@semantic-ui/component
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -15,8 +15,8 @@ { | ||
"dependencies": { | ||
"@semantic-ui/query": "^0.0.26", | ||
"@semantic-ui/reactivity": "^0.0.26", | ||
"@semantic-ui/templating": "^0.0.26", | ||
"@semantic-ui/utils": "^0.0.26" | ||
"@semantic-ui/query": "^0.0.27", | ||
"@semantic-ui/reactivity": "^0.0.27", | ||
"@semantic-ui/templating": "^0.0.27", | ||
"@semantic-ui/utils": "^0.0.27" | ||
}, | ||
"version": "0.0.26" | ||
"version": "0.0.27" | ||
} |
@@ -134,2 +134,3 @@ import { unsafeCSS } from 'lit'; | ||
} | ||
// make this easier to access in dom | ||
this.tpl = this.template.tpl; | ||
@@ -136,0 +137,0 @@ } |
@@ -5,3 +5,3 @@ import { nothing } from 'lit'; | ||
import { Reaction } from '@semantic-ui/reactivity'; | ||
import { each, isEqual } from '@semantic-ui/utils'; | ||
import { each } from '@semantic-ui/utils'; | ||
@@ -8,0 +8,0 @@ export class ReactiveConditionalDirective extends AsyncDirective { |
@@ -7,9 +7,9 @@ import { nothing } from 'lit'; | ||
import { Reaction } from '@semantic-ui/reactivity'; | ||
import { inArray } from '@semantic-ui/utils'; | ||
import { isArray, isObject, inArray } from '@semantic-ui/utils'; | ||
import { ifDefined } from 'lit/directives/if-defined.js'; | ||
export class ReactiveDataDirective extends AsyncDirective { | ||
constructor(partInfo) { | ||
super(partInfo); | ||
this.partInfo = partInfo; | ||
this.reaction = null; | ||
@@ -33,2 +33,6 @@ } | ||
} | ||
// we need to serialize arrays and objects that are rendered to html | ||
if(isArray(reactiveValue) || isObject(reactiveValue)) { | ||
reactiveValue = JSON.stringify(reactiveValue); | ||
} | ||
return reactiveValue; | ||
@@ -35,0 +39,0 @@ }; |
@@ -37,3 +37,3 @@ import { directive } from 'lit/directive.js'; | ||
// clone if it has changed | ||
this.template = template.clone({ data: unpackData(data) }); | ||
this.template = template.clone({ templateName: templateName, data: unpackData(data) }); | ||
return true; | ||
@@ -40,0 +40,0 @@ }; |
@@ -183,3 +183,4 @@ import { LitElement } from 'lit'; | ||
// these are functions that can only be set on the DOM el but do not have attributes | ||
// these are values that can only be set on the DOM el as properties | ||
// but do not have attributes -- for instance functions | ||
each(componentSpec.properties, (name) => { | ||
@@ -320,2 +321,5 @@ const propertyType = componentSpec.propertyTypes[name]; | ||
}); | ||
if(property == 'activeFile') { | ||
console.log('getting setting', settings, property, get(settings, property)); | ||
} | ||
return get(settings, property); | ||
@@ -322,0 +326,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51635
1528
+ Added@semantic-ui/query@0.0.27(transitive)
+ Added@semantic-ui/reactivity@0.0.27(transitive)
+ Added@semantic-ui/templating@0.0.27(transitive)
+ Added@semantic-ui/utils@0.0.27(transitive)
- Removed@semantic-ui/query@0.0.26(transitive)
- Removed@semantic-ui/reactivity@0.0.26(transitive)
- Removed@semantic-ui/templating@0.0.26(transitive)
- Removed@semantic-ui/utils@0.0.26(transitive)
Updated@semantic-ui/query@^0.0.27
Updated@semantic-ui/utils@^0.0.27