@fluid-topics/ftds-chip-group 2.2.8 → 2.2.10
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.
- package/build/ftds-chip-group.light.js +10 -6
- package/build/ftds-chip-group.min.js +10 -6
- package/package.json +11 -11
|
@@ -2361,11 +2361,15 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
2361
2361
|
<ftds-button @focusin=${this.close}
|
|
2362
2362
|
secondary
|
|
2363
2363
|
part="opening-button"
|
|
2364
|
-
icon
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
label
|
|
2368
|
-
|
|
2364
|
+
.icon=${this.openButtonIcon}
|
|
2365
|
+
.iconVariant=${this.openButtonIconVariant}
|
|
2366
|
+
.family=${this.openButtonFamily}
|
|
2367
|
+
.label=${this.openButtonLabel}
|
|
2368
|
+
.tooltipPosition=${this.openButtonTooltipPosition}
|
|
2369
|
+
size="${this.openButtonSize}"
|
|
2370
|
+
aria-haspopup="true"
|
|
2371
|
+
aria-expanded="${this.opened}"
|
|
2372
|
+
aria-controls="${this.wrapperId}"
|
|
2369
2373
|
@click=${this.open}>
|
|
2370
2374
|
</ftds-button>
|
|
2371
2375
|
`}renderClosingButton(){return ze.html`
|
|
@@ -2400,7 +2404,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
2400
2404
|
<div part="popover-sections">
|
|
2401
2405
|
<slot name="sections" part="popover-sections-slot"></slot>
|
|
2402
2406
|
</div>
|
|
2403
|
-
`}hideUnusedSlots(){var t,o,n;(t=this.popoverLinkTypography)===null||t===void 0||t.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(o=this.popoverContentDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(n=this.popoverSectionsDiv)===null||n===void 0||n.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(t){return(0,wr.unslotText)(t).trim().length===0}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var t;this.close(),(t=this.openingElement)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof F&&this.openingElement.showTooltip()}async positionWrapper(){var t,o;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:l}=await(0,wr.computeOffsetAutoPosition)(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${l}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(t=this.closingButton)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((o=this.closingButton)===null||o===void 0||o.showTooltip())}};$.styles=Y0;$.elementDefinitions={"ftds-typography":de,"ftds-button":F};te([(0,Z.property)()],$.prototype,"closeButtonLabel",void 0);te([(0,Z.property)()],$.prototype,"openButtonIcon",void 0);te([(0,Z.property)()],$.prototype,"openButtonIconVariant",void 0);te([(0,Z.property)()],$.prototype,"openButtonLabel",void 0);te([(0,Z.property)()],$.prototype,"openButtonTooltipPosition",void 0);te([(0,Z.property)({type:Boolean})],$.prototype,"opened",void 0);te([(0,Z.property)({type:Boolean})],$.prototype,"hidden",void 0);te([(0,Z.property)({type:it})],$.prototype,"openButtonFamily",void 0);te([(0,Z.state)()],$.prototype,"isTriggerSlotAssigned",void 0);te([(0,Z.property)()],$.prototype,"heading",void 0);te([(0,Z.property)()],$.prototype,"margins",void 0);te([(0,Z.query)('[part="wrapper"]')],$.prototype,"popoverWrapper",void 0);te([(0,Z.query)('slot[name="trigger"]')],$.prototype,"triggerSlot",void 0);te([(0,Z.query)('[part="opening-button"]')],$.prototype,"openingButton",void 0);te([(0,Z.query)('[part="closing-button"]')],$.prototype,"closingButton",void 0);te([(0,Z.query)('[part="content"]')],$.prototype,"popoverContentDiv",void 0);te([(0,Z.query)('[part="popover-content-slot"]')],$.prototype,"popoverContentSlot",void 0);te([(0,Z.query)('[part="popover-link"]')],$.prototype,"slottedLinkContent",void 0);te([(0,Z.query)('[part="popover-link-typography"]')],$.prototype,"popoverLinkTypography",void 0);te([(0,Z.query)('[part="popover-sections"]')],$.prototype,"popoverSectionsDiv",void 0);te([(0,Z.query)('[part="popover-sections-slot"]')],$.prototype,"popoverSectionsSlot",void 0);var ho=v(H()),go=v(ae()),Bn=v(P());var X0=v(H());var Q0=X0.css`
|
|
2407
|
+
`}hideUnusedSlots(){var t,o,n;(t=this.popoverLinkTypography)===null||t===void 0||t.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(o=this.popoverContentDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(n=this.popoverSectionsDiv)===null||n===void 0||n.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(t){return(0,wr.unslotText)(t).trim().length===0}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var t;this.close(),(t=this.openingElement)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof F&&this.openingElement.showTooltip()}async positionWrapper(){var t,o;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:l}=await(0,wr.computeOffsetAutoPosition)(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${l}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(t=this.closingButton)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((o=this.closingButton)===null||o===void 0||o.showTooltip())}};$.styles=Y0;$.elementDefinitions={"ftds-typography":de,"ftds-button":F};te([(0,Z.property)()],$.prototype,"closeButtonLabel",void 0);te([(0,Z.property)({type:p})],$.prototype,"openButtonIcon",void 0);te([(0,Z.property)({type:u})],$.prototype,"openButtonIconVariant",void 0);te([(0,Z.property)()],$.prototype,"openButtonLabel",void 0);te([(0,Z.property)()],$.prototype,"openButtonTooltipPosition",void 0);te([(0,Z.property)({type:Boolean})],$.prototype,"opened",void 0);te([(0,Z.property)({type:Boolean})],$.prototype,"hidden",void 0);te([(0,Z.property)({type:it})],$.prototype,"openButtonFamily",void 0);te([(0,Z.state)()],$.prototype,"isTriggerSlotAssigned",void 0);te([(0,Z.property)()],$.prototype,"heading",void 0);te([(0,Z.property)()],$.prototype,"margins",void 0);te([(0,Z.query)('[part="wrapper"]')],$.prototype,"popoverWrapper",void 0);te([(0,Z.query)('slot[name="trigger"]')],$.prototype,"triggerSlot",void 0);te([(0,Z.query)('[part="opening-button"]')],$.prototype,"openingButton",void 0);te([(0,Z.query)('[part="closing-button"]')],$.prototype,"closingButton",void 0);te([(0,Z.query)('[part="content"]')],$.prototype,"popoverContentDiv",void 0);te([(0,Z.query)('[part="popover-content-slot"]')],$.prototype,"popoverContentSlot",void 0);te([(0,Z.query)('[part="popover-link"]')],$.prototype,"slottedLinkContent",void 0);te([(0,Z.query)('[part="popover-link-typography"]')],$.prototype,"popoverLinkTypography",void 0);te([(0,Z.query)('[part="popover-sections"]')],$.prototype,"popoverSectionsDiv",void 0);te([(0,Z.query)('[part="popover-sections-slot"]')],$.prototype,"popoverSectionsSlot",void 0);var ho=v(H()),go=v(ae()),Bn=v(P());var X0=v(H());var Q0=X0.css`
|
|
2404
2408
|
.ftds-popover-section--heading ftds-typography {
|
|
2405
2409
|
flex-grow: 1;
|
|
2406
2410
|
flex-shrink: 1;
|
|
@@ -2441,11 +2441,15 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
2441
2441
|
<ftds-button @focusin=${this.close}
|
|
2442
2442
|
secondary
|
|
2443
2443
|
part="opening-button"
|
|
2444
|
-
icon
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
label
|
|
2448
|
-
|
|
2444
|
+
.icon=${this.openButtonIcon}
|
|
2445
|
+
.iconVariant=${this.openButtonIconVariant}
|
|
2446
|
+
.family=${this.openButtonFamily}
|
|
2447
|
+
.label=${this.openButtonLabel}
|
|
2448
|
+
.tooltipPosition=${this.openButtonTooltipPosition}
|
|
2449
|
+
size="${this.openButtonSize}"
|
|
2450
|
+
aria-haspopup="true"
|
|
2451
|
+
aria-expanded="${this.opened}"
|
|
2452
|
+
aria-controls="${this.wrapperId}"
|
|
2449
2453
|
@click=${this.open}>
|
|
2450
2454
|
</ftds-button>
|
|
2451
2455
|
`}renderClosingButton(){return $`
|
|
@@ -2480,7 +2484,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
2480
2484
|
<div part="popover-sections">
|
|
2481
2485
|
<slot name="sections" part="popover-sections-slot"></slot>
|
|
2482
2486
|
</div>
|
|
2483
|
-
`}hideUnusedSlots(){var e,r,o;(e=this.popoverLinkTypography)===null||e===void 0||e.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(r=this.popoverContentDiv)===null||r===void 0||r.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(o=this.popoverSectionsDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(e){return St(e).trim().length===0}updated(e){super.updated(e),e.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var e;this.close(),(e=this.openingElement)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof q&&this.openingElement.showTooltip()}async positionWrapper(){var e,r;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:c}=await Ti(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${c}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(e=this.closingButton)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((r=this.closingButton)===null||r===void 0||r.showTooltip())}};Y.styles=f4;Y.elementDefinitions={"ftds-typography":ve,"ftds-button":q};le([E()],Y.prototype,"closeButtonLabel",void 0);le([E()],Y.prototype,"openButtonIcon",void 0);le([E()],Y.prototype,"openButtonIconVariant",void 0);le([E()],Y.prototype,"openButtonLabel",void 0);le([E()],Y.prototype,"openButtonTooltipPosition",void 0);le([E({type:Boolean})],Y.prototype,"opened",void 0);le([E({type:Boolean})],Y.prototype,"hidden",void 0);le([E({type:xe})],Y.prototype,"openButtonFamily",void 0);le([Q()],Y.prototype,"isTriggerSlotAssigned",void 0);le([E()],Y.prototype,"heading",void 0);le([E()],Y.prototype,"margins",void 0);le([X('[part="wrapper"]')],Y.prototype,"popoverWrapper",void 0);le([X('slot[name="trigger"]')],Y.prototype,"triggerSlot",void 0);le([X('[part="opening-button"]')],Y.prototype,"openingButton",void 0);le([X('[part="closing-button"]')],Y.prototype,"closingButton",void 0);le([X('[part="content"]')],Y.prototype,"popoverContentDiv",void 0);le([X('[part="popover-content-slot"]')],Y.prototype,"popoverContentSlot",void 0);le([X('[part="popover-link"]')],Y.prototype,"slottedLinkContent",void 0);le([X('[part="popover-link-typography"]')],Y.prototype,"popoverLinkTypography",void 0);le([X('[part="popover-sections"]')],Y.prototype,"popoverSectionsDiv",void 0);le([X('[part="popover-sections-slot"]')],Y.prototype,"popoverSectionsSlot",void 0);var p4=z`
|
|
2487
|
+
`}hideUnusedSlots(){var e,r,o;(e=this.popoverLinkTypography)===null||e===void 0||e.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(r=this.popoverContentDiv)===null||r===void 0||r.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(o=this.popoverSectionsDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(e){return St(e).trim().length===0}updated(e){super.updated(e),e.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var e;this.close(),(e=this.openingElement)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof q&&this.openingElement.showTooltip()}async positionWrapper(){var e,r;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:c}=await Ti(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${c}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(e=this.closingButton)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((r=this.closingButton)===null||r===void 0||r.showTooltip())}};Y.styles=f4;Y.elementDefinitions={"ftds-typography":ve,"ftds-button":q};le([E()],Y.prototype,"closeButtonLabel",void 0);le([E({type:h})],Y.prototype,"openButtonIcon",void 0);le([E({type:p})],Y.prototype,"openButtonIconVariant",void 0);le([E()],Y.prototype,"openButtonLabel",void 0);le([E()],Y.prototype,"openButtonTooltipPosition",void 0);le([E({type:Boolean})],Y.prototype,"opened",void 0);le([E({type:Boolean})],Y.prototype,"hidden",void 0);le([E({type:xe})],Y.prototype,"openButtonFamily",void 0);le([Q()],Y.prototype,"isTriggerSlotAssigned",void 0);le([E()],Y.prototype,"heading",void 0);le([E()],Y.prototype,"margins",void 0);le([X('[part="wrapper"]')],Y.prototype,"popoverWrapper",void 0);le([X('slot[name="trigger"]')],Y.prototype,"triggerSlot",void 0);le([X('[part="opening-button"]')],Y.prototype,"openingButton",void 0);le([X('[part="closing-button"]')],Y.prototype,"closingButton",void 0);le([X('[part="content"]')],Y.prototype,"popoverContentDiv",void 0);le([X('[part="popover-content-slot"]')],Y.prototype,"popoverContentSlot",void 0);le([X('[part="popover-link"]')],Y.prototype,"slottedLinkContent",void 0);le([X('[part="popover-link-typography"]')],Y.prototype,"popoverLinkTypography",void 0);le([X('[part="popover-sections"]')],Y.prototype,"popoverSectionsDiv",void 0);le([X('[part="popover-sections-slot"]')],Y.prototype,"popoverSectionsSlot",void 0);var p4=z`
|
|
2484
2488
|
.ftds-popover-section--heading ftds-typography {
|
|
2485
2489
|
flex-grow: 1;
|
|
2486
2490
|
flex-shrink: 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ftds-chip-group",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.10",
|
|
4
4
|
"description": "A generic Fluid Topics chip",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,18 +20,18 @@
|
|
|
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-tooltip": "2.2.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
26
|
-
"@fluid-topics/ftds-button": "2.2.
|
|
27
|
-
"@fluid-topics/ftds-chip": "2.2.
|
|
28
|
-
"@fluid-topics/ftds-icon": "2.2.
|
|
29
|
-
"@fluid-topics/ftds-popover": "2.2.
|
|
30
|
-
"@fluid-topics/ftds-typography": "2.2.
|
|
23
|
+
"@fluid-topics/ft-i18n": "2.2.10",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "2.2.10",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "2.2.10",
|
|
26
|
+
"@fluid-topics/ftds-button": "2.2.10",
|
|
27
|
+
"@fluid-topics/ftds-chip": "2.2.10",
|
|
28
|
+
"@fluid-topics/ftds-icon": "2.2.10",
|
|
29
|
+
"@fluid-topics/ftds-popover": "2.2.10",
|
|
30
|
+
"@fluid-topics/ftds-typography": "2.2.10",
|
|
31
31
|
"lit": "3.3.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@fluid-topics/ft-wc-test-utils": "2.2.
|
|
34
|
+
"@fluid-topics/ft-wc-test-utils": "2.2.10"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "6d512a5adc05ec93a10f0c7cafd20a6ebb5adfee"
|
|
37
37
|
}
|