@fluid-topics/ftds-combobox 2.2.13 → 2.2.14
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.
|
@@ -1177,6 +1177,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1177
1177
|
max-width: 100%;
|
|
1178
1178
|
display: flex;
|
|
1179
1179
|
flex-wrap: wrap;
|
|
1180
|
+
align-items: center;
|
|
1180
1181
|
gap: ${We.verticalGap} ${We.horizontalGap};
|
|
1181
1182
|
padding-left: 0;
|
|
1182
1183
|
margin: ${c.spacing1} 0;
|
|
@@ -2527,7 +2528,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2527
2528
|
</div>
|
|
2528
2529
|
</ftds-popover>
|
|
2529
2530
|
</li>
|
|
2530
|
-
`}renderChip(t){var r,n,a,i;return Ta.html`
|
|
2531
|
+
`}renderChip(t){var r,n,a,i,s;return Ta.html`
|
|
2531
2532
|
<li>
|
|
2532
2533
|
<ft-tooltip
|
|
2533
2534
|
text="${(r=t.label)!==null&&r!==void 0?r:t.value}"
|
|
@@ -2537,15 +2538,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2537
2538
|
exportparts="chip"
|
|
2538
2539
|
?removable=${this.removable}
|
|
2539
2540
|
.family=${(n=t.family)!==null&&n!==void 0?n:zt.DesignSystemFamily.neutral}
|
|
2540
|
-
.icon=${this.getFamilyIcon(t.family)}
|
|
2541
|
-
.iconVariant=${
|
|
2542
|
-
.removeButtonLabel=${(
|
|
2541
|
+
.icon=${(a=t.icon)!==null&&a!==void 0?a:this.getFamilyIcon(t.family)}
|
|
2542
|
+
.iconVariant=${this.getIconVariant(t.icon,t.iconVariant)}
|
|
2543
|
+
.removeButtonLabel=${(i=t.removeLabel)!==null&&i!==void 0?i:an.messages.defaultRemoveLabel()}
|
|
2543
2544
|
@remove=${()=>this.onChipRemoved(t)}>
|
|
2544
|
-
${(
|
|
2545
|
+
${(s=t.label)!==null&&s!==void 0?s:t.value}
|
|
2545
2546
|
</ftds-chip>
|
|
2546
2547
|
</ft-tooltip>
|
|
2547
2548
|
</li>
|
|
2548
|
-
`}onChipRemoved(t){this.lastRemovedChipIndex=this.chips.findIndex(r=>r.value===t.value),this.dispatchEvent(new zo(t))}handleFocusOnChipDeleted(t){var r;let n=Array.from((r=this.allChips)!==null&&r!==void 0?r:[]);n.length!==0&&(n[t]?this.focusChip(n[t]):this.focusChip(n[t-1]))}async focusChip(t){var r;await t.updateComplete;let n=(r=t.shadowRoot)===null||r===void 0?void 0:r.querySelector(".ftds-chip--remove-button");await n?.updateComplete,n?.focus()}toggleExtraChips(t){this.isPopoverOpened=t.detail.opened}getFamilyIcon(t){if(t===zt.DesignSystemFamily.warning)return p.TRIANGLE_EXCLAMATION}};Pe.elementDefinitions={"ftds-chip":we,"ftds-popover":j,"ftds-typography":ae,"ft-tooltip":ie};Pe.styles=S1;po([(0,Nr.property)({type:Boolean})],Pe.prototype,"removable",void 0);po([(0,zt.numberProperty)()],Pe.prototype,"maxNumberOfChips",void 0);po([(0,Nr.property)()],Pe.prototype,"popoverTitle",void 0);po([(0,zt.jsonProperty)([])],Pe.prototype,"chips",void 0);po([(0,Nr.state)()],Pe.prototype,"isPopoverOpened",void 0);po([(0,Nr.queryAll)(".chip-group-chip")],Pe.prototype,"allChips",void 0);var i4=b(N());var a4={"ftds-chip-group":Pe};(0,i4.customElements)(a4);var zr=Kt.build("ftdsComboboxMultiValue"),s4={selectAll:"Select All",valueAdded:"{0} added",valueRemoved:"{0} removed",removeValueLabel:"Remove {0}",numberOfSelectedValuesAriaLabel:"{0} selected values","numberOfSelectedValuesAriaLabel[\\=1]":"1 selected value","numberOfSelectedValuesAriaLabel[\\=0]":"No selected value"};var Ge=b(B()),Ae=b(te());var N4=b(In()),Is=b($e());function It(e,t,r){return e?t(e):r?.(e)}var _e=b(N());var yt=Kt.build("ftdsBaseCombobox"),c4={maxSuggestionsLabel:"{0} first results.",maxSuggestionsAriaLabel:"Only showing the {0} first results, please refine your search.",refineYourSearchLabel:"Refine your search.",noResultLabel:"No option",newValueLabel:"New value"};var Fa=b(B()),L=b(N());var l4=b(B());var ue=b(N()),ce={fontSize:ue.FtCssVariableFactory.extend("--ftds-input-label-font-size","",Ur.fontSize),fontSizeRaised:ue.FtCssVariableFactory.extend("--ftds-input-label-font-size-raised","",or.fontSize),lineHeight:ue.FtCssVariableFactory.extend("--ftds-input-label-line-height","",or.lineHeight),color:ue.FtCssVariableFactory.extend("--ftds-input-label-color","",ue.semantic.contentGlobalSubtle),largeFieldHeight:ue.FtCssVariableFactory.create("--ftds-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:ue.FtCssVariableFactory.extend("--ftds-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:ue.FtCssVariableFactory.extend("--ftds-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:ue.FtCssVariableFactory.create("--ftds-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:ue.FtCssVariableFactory.create("--ftds-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:ue.FtCssVariableFactory.extend("--ftds-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:ue.FtCssVariableFactory.create("--ftds-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:ue.FtCssVariableFactory.create("--ftds-input-label-additional-padding-right","","SIZE","0px"),verticalSpacing:ue.FtCssVariableFactory.create("--ftds-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ue.FtCssVariableFactory.create("--ftds-input-label-horizontal-spacing","","SIZE","12px")},d4=[l4.css`
|
|
2549
|
+
`}onChipRemoved(t){this.lastRemovedChipIndex=this.chips.findIndex(r=>r.value===t.value),this.dispatchEvent(new zo(t))}handleFocusOnChipDeleted(t){var r;let n=Array.from((r=this.allChips)!==null&&r!==void 0?r:[]);n.length!==0&&(n[t]?this.focusChip(n[t]):this.focusChip(n[t-1]))}async focusChip(t){var r;await t.updateComplete;let n=(r=t.shadowRoot)===null||r===void 0?void 0:r.querySelector(".ftds-chip--remove-button");await n?.updateComplete,n?.focus()}toggleExtraChips(t){this.isPopoverOpened=t.detail.opened}getFamilyIcon(t){if(t===zt.DesignSystemFamily.warning)return p.TRIANGLE_EXCLAMATION}getIconVariant(t,r){return t?r??f.regular:f.solid}};Pe.elementDefinitions={"ftds-chip":we,"ftds-popover":j,"ftds-typography":ae,"ft-tooltip":ie};Pe.styles=S1;po([(0,Nr.property)({type:Boolean})],Pe.prototype,"removable",void 0);po([(0,zt.numberProperty)()],Pe.prototype,"maxNumberOfChips",void 0);po([(0,Nr.property)()],Pe.prototype,"popoverTitle",void 0);po([(0,zt.jsonProperty)([])],Pe.prototype,"chips",void 0);po([(0,Nr.state)()],Pe.prototype,"isPopoverOpened",void 0);po([(0,Nr.queryAll)(".chip-group-chip")],Pe.prototype,"allChips",void 0);var i4=b(N());var a4={"ftds-chip-group":Pe};(0,i4.customElements)(a4);var zr=Kt.build("ftdsComboboxMultiValue"),s4={selectAll:"Select All",valueAdded:"{0} added",valueRemoved:"{0} removed",removeValueLabel:"Remove {0}",numberOfSelectedValuesAriaLabel:"{0} selected values","numberOfSelectedValuesAriaLabel[\\=1]":"1 selected value","numberOfSelectedValuesAriaLabel[\\=0]":"No selected value"};var Ge=b(B()),Ae=b(te());var N4=b(In()),Is=b($e());function It(e,t,r){return e?t(e):r?.(e)}var _e=b(N());var yt=Kt.build("ftdsBaseCombobox"),c4={maxSuggestionsLabel:"{0} first results.",maxSuggestionsAriaLabel:"Only showing the {0} first results, please refine your search.",refineYourSearchLabel:"Refine your search.",noResultLabel:"No option",newValueLabel:"New value"};var Fa=b(B()),L=b(N());var l4=b(B());var ue=b(N()),ce={fontSize:ue.FtCssVariableFactory.extend("--ftds-input-label-font-size","",Ur.fontSize),fontSizeRaised:ue.FtCssVariableFactory.extend("--ftds-input-label-font-size-raised","",or.fontSize),lineHeight:ue.FtCssVariableFactory.extend("--ftds-input-label-line-height","",or.lineHeight),color:ue.FtCssVariableFactory.extend("--ftds-input-label-color","",ue.semantic.contentGlobalSubtle),largeFieldHeight:ue.FtCssVariableFactory.create("--ftds-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:ue.FtCssVariableFactory.extend("--ftds-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:ue.FtCssVariableFactory.extend("--ftds-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:ue.FtCssVariableFactory.create("--ftds-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:ue.FtCssVariableFactory.create("--ftds-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:ue.FtCssVariableFactory.extend("--ftds-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:ue.FtCssVariableFactory.create("--ftds-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:ue.FtCssVariableFactory.create("--ftds-input-label-additional-padding-right","","SIZE","0px"),verticalSpacing:ue.FtCssVariableFactory.create("--ftds-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ue.FtCssVariableFactory.create("--ftds-input-label-horizontal-spacing","","SIZE","12px")},d4=[l4.css`
|
|
2549
2550
|
|
|
2550
2551
|
:root {
|
|
2551
2552
|
--field-height: ${ce.largeFieldHeight};
|
|
@@ -1257,6 +1257,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
1257
1257
|
max-width: 100%;
|
|
1258
1258
|
display: flex;
|
|
1259
1259
|
flex-wrap: wrap;
|
|
1260
|
+
align-items: center;
|
|
1260
1261
|
gap: ${Ke.verticalGap} ${Ke.horizontalGap};
|
|
1261
1262
|
padding-left: 0;
|
|
1262
1263
|
margin: ${l.spacing1} 0;
|
|
@@ -2607,7 +2608,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
2607
2608
|
</div>
|
|
2608
2609
|
</ftds-popover>
|
|
2609
2610
|
</li>
|
|
2610
|
-
`}renderChip(e){var r,o,i,a;return _`
|
|
2611
|
+
`}renderChip(e){var r,o,i,a,s;return _`
|
|
2611
2612
|
<li>
|
|
2612
2613
|
<ft-tooltip
|
|
2613
2614
|
text="${(r=e.label)!==null&&r!==void 0?r:e.value}"
|
|
@@ -2617,15 +2618,15 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
2617
2618
|
exportparts="chip"
|
|
2618
2619
|
?removable=${this.removable}
|
|
2619
2620
|
.family=${(o=e.family)!==null&&o!==void 0?o:oe.neutral}
|
|
2620
|
-
.icon=${this.getFamilyIcon(e.family)}
|
|
2621
|
-
.iconVariant=${
|
|
2622
|
-
.removeButtonLabel=${(
|
|
2621
|
+
.icon=${(i=e.icon)!==null&&i!==void 0?i:this.getFamilyIcon(e.family)}
|
|
2622
|
+
.iconVariant=${this.getIconVariant(e.icon,e.iconVariant)}
|
|
2623
|
+
.removeButtonLabel=${(a=e.removeLabel)!==null&&a!==void 0?a:wn.messages.defaultRemoveLabel()}
|
|
2623
2624
|
@remove=${()=>this.onChipRemoved(e)}>
|
|
2624
|
-
${(
|
|
2625
|
+
${(s=e.label)!==null&&s!==void 0?s:e.value}
|
|
2625
2626
|
</ftds-chip>
|
|
2626
2627
|
</ft-tooltip>
|
|
2627
2628
|
</li>
|
|
2628
|
-
`}onChipRemoved(e){this.lastRemovedChipIndex=this.chips.findIndex(r=>r.value===e.value),this.dispatchEvent(new vn(e))}handleFocusOnChipDeleted(e){var r;let o=Array.from((r=this.allChips)!==null&&r!==void 0?r:[]);o.length!==0&&(o[e]?this.focusChip(o[e]):this.focusChip(o[e-1]))}async focusChip(e){var r;await e.updateComplete;let o=(r=e.shadowRoot)===null||r===void 0?void 0:r.querySelector(".ftds-chip--remove-button");await o?.updateComplete,o?.focus()}toggleExtraChips(e){this.isPopoverOpened=e.detail.opened}getFamilyIcon(e){if(e===oe.warning)return h.TRIANGLE_EXCLAMATION}};Ve.elementDefinitions={"ftds-chip":$e,"ftds-popover":ie,"ftds-typography":me,"ft-tooltip":ge};Ve.styles=ru;Io([v({type:Boolean})],Ve.prototype,"removable",void 0);Io([lt()],Ve.prototype,"maxNumberOfChips",void 0);Io([v()],Ve.prototype,"popoverTitle",void 0);Io([De([])],Ve.prototype,"chips",void 0);Io([K()],Ve.prototype,"isPopoverOpened",void 0);Io([ua(".chip-group-chip")],Ve.prototype,"allChips",void 0);var qu={"ftds-chip-group":Ve};J(qu);var Vr=rr.build("ftdsComboboxMultiValue"),Yu={selectAll:"Select All",valueAdded:"{0} added",valueRemoved:"{0} removed",removeValueLabel:"Remove {0}",numberOfSelectedValuesAriaLabel:"{0} selected values","numberOfSelectedValuesAriaLabel[\\=1]":"1 selected value","numberOfSelectedValuesAriaLabel[\\=0]":"No selected value"};var Mt=rr.build("ftdsBaseCombobox"),Xu={maxSuggestionsLabel:"{0} first results.",maxSuggestionsAriaLabel:"Only showing the {0} first results, please refine your search.",refineYourSearchLabel:"Refine your search.",noResultLabel:"No option",newValueLabel:"New value"};var be={fontSize:n.extend("--ftds-input-label-font-size","",Et.fontSize),fontSizeRaised:n.extend("--ftds-input-label-font-size-raised","",dt.fontSize),lineHeight:n.extend("--ftds-input-label-line-height","",dt.lineHeight),color:n.extend("--ftds-input-label-color","",u.contentGlobalSubtle),largeFieldHeight:n.create("--ftds-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:n.extend("--ftds-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:n.extend("--ftds-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:n.create("--ftds-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:n.create("--ftds-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:n.extend("--ftds-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:n.create("--ftds-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:n.create("--ftds-input-label-additional-padding-right","","SIZE","0px"),verticalSpacing:n.create("--ftds-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:n.create("--ftds-input-label-horizontal-spacing","","SIZE","12px")},Qu=[N`
|
|
2629
|
+
`}onChipRemoved(e){this.lastRemovedChipIndex=this.chips.findIndex(r=>r.value===e.value),this.dispatchEvent(new vn(e))}handleFocusOnChipDeleted(e){var r;let o=Array.from((r=this.allChips)!==null&&r!==void 0?r:[]);o.length!==0&&(o[e]?this.focusChip(o[e]):this.focusChip(o[e-1]))}async focusChip(e){var r;await e.updateComplete;let o=(r=e.shadowRoot)===null||r===void 0?void 0:r.querySelector(".ftds-chip--remove-button");await o?.updateComplete,o?.focus()}toggleExtraChips(e){this.isPopoverOpened=e.detail.opened}getFamilyIcon(e){if(e===oe.warning)return h.TRIANGLE_EXCLAMATION}getIconVariant(e,r){return e?r??f.regular:f.solid}};Ve.elementDefinitions={"ftds-chip":$e,"ftds-popover":ie,"ftds-typography":me,"ft-tooltip":ge};Ve.styles=ru;Io([v({type:Boolean})],Ve.prototype,"removable",void 0);Io([lt()],Ve.prototype,"maxNumberOfChips",void 0);Io([v()],Ve.prototype,"popoverTitle",void 0);Io([De([])],Ve.prototype,"chips",void 0);Io([K()],Ve.prototype,"isPopoverOpened",void 0);Io([ua(".chip-group-chip")],Ve.prototype,"allChips",void 0);var qu={"ftds-chip-group":Ve};J(qu);var Vr=rr.build("ftdsComboboxMultiValue"),Yu={selectAll:"Select All",valueAdded:"{0} added",valueRemoved:"{0} removed",removeValueLabel:"Remove {0}",numberOfSelectedValuesAriaLabel:"{0} selected values","numberOfSelectedValuesAriaLabel[\\=1]":"1 selected value","numberOfSelectedValuesAriaLabel[\\=0]":"No selected value"};var Mt=rr.build("ftdsBaseCombobox"),Xu={maxSuggestionsLabel:"{0} first results.",maxSuggestionsAriaLabel:"Only showing the {0} first results, please refine your search.",refineYourSearchLabel:"Refine your search.",noResultLabel:"No option",newValueLabel:"New value"};var be={fontSize:n.extend("--ftds-input-label-font-size","",Et.fontSize),fontSizeRaised:n.extend("--ftds-input-label-font-size-raised","",dt.fontSize),lineHeight:n.extend("--ftds-input-label-line-height","",dt.lineHeight),color:n.extend("--ftds-input-label-color","",u.contentGlobalSubtle),largeFieldHeight:n.create("--ftds-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:n.extend("--ftds-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:n.extend("--ftds-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:n.create("--ftds-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:n.create("--ftds-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:n.extend("--ftds-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:n.create("--ftds-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:n.create("--ftds-input-label-additional-padding-right","","SIZE","0px"),verticalSpacing:n.create("--ftds-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:n.create("--ftds-input-label-horizontal-spacing","","SIZE","12px")},Qu=[N`
|
|
2629
2630
|
|
|
2630
2631
|
:root {
|
|
2631
2632
|
--field-height: ${be.largeFieldHeight};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ftds-combobox",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
4
4
|
"description": "Single-select combobox for the Fluid Topics Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fluid-topics/design-system-variables": "3.8.0",
|
|
23
|
-
"@fluid-topics/ft-i18n": "2.2.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
25
|
-
"@fluid-topics/ftds-base-input": "2.2.
|
|
26
|
-
"@fluid-topics/ftds-chip-group": "2.2.
|
|
27
|
-
"@fluid-topics/ftds-icon": "2.2.
|
|
28
|
-
"@fluid-topics/ftds-notice": "2.2.
|
|
29
|
-
"@fluid-topics/ftds-typography": "2.2.
|
|
23
|
+
"@fluid-topics/ft-i18n": "2.2.14",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "2.2.14",
|
|
25
|
+
"@fluid-topics/ftds-base-input": "2.2.14",
|
|
26
|
+
"@fluid-topics/ftds-chip-group": "2.2.14",
|
|
27
|
+
"@fluid-topics/ftds-icon": "2.2.14",
|
|
28
|
+
"@fluid-topics/ftds-notice": "2.2.14",
|
|
29
|
+
"@fluid-topics/ftds-typography": "2.2.14",
|
|
30
30
|
"lit": "3.3.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@fluid-topics/ft-wc-test-utils": "2.2.
|
|
33
|
+
"@fluid-topics/ft-wc-test-utils": "2.2.14"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "854d6984b9b23dbce23a195e12814084a8317fa5"
|
|
36
36
|
}
|