@fluid-topics/ft-search-bar 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1216,7 +1216,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
1216
1216
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1217
1217
|
@option-change=${this.optionsChanged}></slot>
|
|
1218
1218
|
</div>
|
|
1219
|
-
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i,o,s,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(s=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===s?void 0:s.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=o<0?"ft-filter--level-center":"ft-filter--level-left";return i.html`
|
|
1219
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,i,o,s,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(s=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===s?void 0:s.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=o<0?"ft-filter--level-center":"ft-filter--level-left";return i.html`
|
|
1220
1220
|
${this.raiseSelectedOptions&&e.length>0?i.html`
|
|
1221
1221
|
<ft-filter-level
|
|
1222
1222
|
filterId="${this.id}"
|
|
@@ -1349,7 +1349,7 @@ class Mi extends Tt{constructor(t){if(super(t),this.et=tt,t.type!==Ut)throw Erro
|
|
|
1349
1349
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1350
1350
|
@option-change=${this.optionsChanged}></slot>
|
|
1351
1351
|
</div>
|
|
1352
|
-
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i,o,s,r;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(r=null===(s=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===s?void 0:s.hasHiddenValues)&&void 0!==r&&r}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return Q`
|
|
1352
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,i,o,s,r;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(r=null===(s=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===s?void 0:s.hasHiddenValues)&&void 0!==r&&r}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return Q`
|
|
1353
1353
|
${this.raiseSelectedOptions&&e.length>0?Q`
|
|
1354
1354
|
<ft-filter-level
|
|
1355
1355
|
filterId="${this.id}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-bar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Search bar component using Fluid Topics public API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-accordion": "1.0.
|
|
23
|
-
"@fluid-topics/ft-button": "1.0.
|
|
24
|
-
"@fluid-topics/ft-chip": "1.0.
|
|
25
|
-
"@fluid-topics/ft-filter": "1.0.
|
|
26
|
-
"@fluid-topics/ft-icon": "1.0.
|
|
27
|
-
"@fluid-topics/ft-select": "1.0.
|
|
28
|
-
"@fluid-topics/ft-size-watcher": "1.0.
|
|
29
|
-
"@fluid-topics/ft-skeleton": "1.0.
|
|
30
|
-
"@fluid-topics/ft-snap-scroll": "1.0.
|
|
31
|
-
"@fluid-topics/ft-tooltip": "1.0.
|
|
32
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
33
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-accordion": "1.0.11",
|
|
23
|
+
"@fluid-topics/ft-button": "1.0.11",
|
|
24
|
+
"@fluid-topics/ft-chip": "1.0.11",
|
|
25
|
+
"@fluid-topics/ft-filter": "1.0.11",
|
|
26
|
+
"@fluid-topics/ft-icon": "1.0.11",
|
|
27
|
+
"@fluid-topics/ft-select": "1.0.11",
|
|
28
|
+
"@fluid-topics/ft-size-watcher": "1.0.11",
|
|
29
|
+
"@fluid-topics/ft-skeleton": "1.0.11",
|
|
30
|
+
"@fluid-topics/ft-snap-scroll": "1.0.11",
|
|
31
|
+
"@fluid-topics/ft-tooltip": "1.0.11",
|
|
32
|
+
"@fluid-topics/ft-typography": "1.0.11",
|
|
33
|
+
"@fluid-topics/ft-wc-utils": "1.0.11",
|
|
34
34
|
"lit": "2.7.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@fluid-topics/public-api": "1.0.34"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "96a368bb07212723b70ce83e4a5e0f9a27777cc2"
|
|
43
43
|
}
|