@semantic-ui/component
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "@semantic-ui/component", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"type": "module", | ||
@@ -15,16 +15,8 @@ "main": "src/index.js", | ||
}, | ||
"scripts": { | ||
"publish": "wireit" | ||
}, | ||
"wireit": { | ||
"publish": { | ||
"command": "npm publish" | ||
} | ||
}, | ||
"dependencies": { | ||
"@semantic-ui/query": "latest", | ||
"@semantic-ui/reactivity": "latest", | ||
"@semantic-ui/templating": "latest", | ||
"@semantic-ui/utils": "latest" | ||
"@semantic-ui/query": "^0.0.1", | ||
"@semantic-ui/reactivity": "^0.0.1", | ||
"@semantic-ui/templating": "^0.0.1", | ||
"@semantic-ui/utils": "^0.0.1" | ||
} | ||
} |
@@ -7,3 +7,3 @@ import { nothing, noChange } from 'lit'; | ||
import { Reaction } from '@semantic-ui/reactivity'; | ||
import { hashCode, clone, isEqual, each, isObject, isString } from '@semantic-ui/utils'; | ||
import { hashCode, clone, isEqual, each, isPlainObject, isString } from '@semantic-ui/utils'; | ||
@@ -63,4 +63,4 @@ const generateMap = (list, start, end) => { | ||
let items = this.eachCondition.over() || []; | ||
items = items.map((item) => { | ||
if (isObject(item)) { | ||
items = items.map((item, index) => { | ||
if (isPlainObject(item) && !this.getItemID(item, index)) { | ||
item._hash = hashCode(item); | ||
@@ -90,3 +90,3 @@ } | ||
getItemID(item, index) { | ||
if (isObject(item)) { | ||
if (isPlainObject(item)) { | ||
return item._id || item.id || item.key || item.hash || item._hash || index; | ||
@@ -93,0 +93,0 @@ } |
export { getText } from '@semantic-ui/utils'; | ||
export { adoptStylesheet } from './helpers/adopt-stylesheet.js'; | ||
export { scopeStyles } from './helpers/scope-styles.js'; | ||
export { extractComponentSpec } from './helpers/extract-component-spec.js'; | ||
export { extractCSS } from './helpers/extract-css.js'; | ||
export { createComponent } from './create-component.js'; | ||
@@ -6,0 +8,0 @@ export { WebComponentBase } from './web-component.js'; |
@@ -390,7 +390,7 @@ import { LitElement } from 'lit'; | ||
// Rendered DOM (either shadow or regular) | ||
$(selector, root = this?.renderRoot || this.shadowRoot) { | ||
$(selector, { root = this?.renderRoot || this.shadowRoot} = {}) { | ||
if (!root) { | ||
console.error('Cannot query DOM until element has rendered.'); | ||
} | ||
return $(selector, root); | ||
return $(selector, { root }); | ||
} | ||
@@ -400,3 +400,3 @@ | ||
$$(selector) { | ||
return $(selector, this.originalDOM.content); | ||
return $(selector, { root: this.originalDOM.content }); | ||
} | ||
@@ -403,0 +403,0 @@ |
47414
14
1443
+ Added@semantic-ui/component@0.0.1(transitive)
+ Added@semantic-ui/query@0.0.1(transitive)
+ Added@semantic-ui/reactivity@0.0.1(transitive)
+ Added@semantic-ui/templating@0.0.1(transitive)
+ Added@semantic-ui/utils@0.0.1(transitive)
- Removed@semantic-ui/query@0.8.3(transitive)
- Removed@semantic-ui/reactivity@0.8.3(transitive)
- Removed@semantic-ui/renderer@0.8.3(transitive)
- Removed@semantic-ui/templating@0.8.3(transitive)
- Removed@semantic-ui/utils@0.8.3(transitive)
Updated@semantic-ui/query@^0.0.1
Updated@semantic-ui/utils@^0.0.1