@pine-ds/core 4.12.0 → 5.0.0
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/components/pds-accordion.js +1 -1
- package/components/pds-alert.js +1 -1
- package/components/pds-avatar.js +1 -1
- package/components/pds-button2.js +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-divider.js +1 -1
- package/components/pds-dropdown-menu-item.js +1 -1
- package/components/pds-dropdown-menu-separator.js +1 -1
- package/components/pds-dropdown-menu.js +1 -1
- package/components/pds-filter.js +1 -1
- package/components/pds-filters.js +1 -1
- package/components/pds-image.js +1 -1
- package/components/pds-multiselect.js +1 -1
- package/components/pds-popover.js +1 -1
- package/components/pds-property.js +1 -1
- package/components/pds-radio-group.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +1 -1
- package/components/pds-switch.js +1 -1
- package/components/pds-table.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-tooltip.js +1 -1
- package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/pds-alert.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/pds-filter.cjs.entry.js +1 -1
- package/dist/cjs/pds-filters.cjs.entry.js +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +2 -2
- package/dist/cjs/pds-multiselect.cjs.entry.js +26 -7
- package/dist/cjs/pds-popover.cjs.entry.js +1 -1
- package/dist/cjs/pds-property.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio-group.cjs.entry.js +20 -15
- package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +5 -5
- package/dist/cjs/pds-table.cjs.entry.js +2 -2
- package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js +2 -3
- package/dist/collection/components/pds-accordion/pds-accordion.js +2 -2
- package/dist/collection/components/pds-alert/pds-alert.js +2 -2
- package/dist/collection/components/pds-avatar/pds-avatar.js +2 -2
- package/dist/collection/components/pds-button/pds-button.js +2 -2
- package/dist/collection/components/pds-chip/pds-chip.js +2 -2
- package/dist/collection/components/pds-copytext/pds-copytext.js +2 -2
- package/dist/collection/components/pds-divider/pds-divider.js +2 -2
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +2 -2
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +2 -2
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +2 -2
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +2 -2
- package/dist/collection/components/pds-filters/pds-filters.js +2 -2
- package/dist/collection/components/pds-image/pds-image.js +3 -3
- package/dist/collection/components/pds-input/stories/pds-input.stories.js +1 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +21 -2
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +28 -9
- package/dist/collection/components/pds-multiselect/stories/pds-multiselect.stories.js +2 -2
- package/dist/collection/components/pds-popover/pds-popover.js +2 -2
- package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +1 -1
- package/dist/collection/components/pds-property/pds-property.js +2 -2
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +21 -16
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +3 -3
- package/dist/collection/components/pds-sortable/pds-sortable.js +2 -2
- package/dist/collection/components/pds-switch/pds-switch.js +10 -10
- package/dist/collection/components/pds-table/pds-table.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tabs.js +2 -2
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +3 -4
- package/dist/docs.json +32 -32
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-alert.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-chip.entry.js +1 -1
- package/dist/esm/pds-copytext.entry.js +1 -1
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm/pds-filter.entry.js +1 -1
- package/dist/esm/pds-filters.entry.js +1 -1
- package/dist/esm/pds-image.entry.js +2 -2
- package/dist/esm/pds-multiselect.entry.js +26 -7
- package/dist/esm/pds-popover.entry.js +1 -1
- package/dist/esm/pds-property.entry.js +1 -1
- package/dist/esm/pds-radio-group.entry.js +20 -15
- package/dist/esm/pds-sortable-item.entry.js +2 -2
- package/dist/esm/pds-sortable.entry.js +1 -1
- package/dist/esm/pds-switch.entry.js +5 -5
- package/dist/esm/pds-table.entry.js +2 -2
- package/dist/esm/pds-tabs.entry.js +1 -1
- package/dist/esm/pds-tooltip.entry.js +2 -3
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-alert.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-filter.entry.js +1 -1
- package/dist/esm-es5/pds-filters.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js +1 -1
- package/dist/esm-es5/pds-popover.entry.js +1 -1
- package/dist/esm-es5/pds-property.entry.js +1 -1
- package/dist/esm-es5/pds-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-table.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/pine-core/{p-d676926d.system.entry.js → p-191eb9e5.system.entry.js} +1 -1
- package/dist/pine-core/{p-736ea7dd.entry.js → p-1d4ecc35.entry.js} +1 -1
- package/dist/pine-core/{p-ddf4b9b5.system.entry.js → p-1e0c9738.system.entry.js} +1 -1
- package/dist/pine-core/{p-e4ebea88.system.entry.js → p-2482e4ab.system.entry.js} +1 -1
- package/dist/pine-core/p-3338fc2e.entry.js +1 -0
- package/dist/pine-core/{p-00891b8d.system.entry.js → p-34d22a45.system.entry.js} +1 -1
- package/dist/pine-core/p-35b90796.entry.js +1 -0
- package/dist/pine-core/p-38148f5b.entry.js +1 -0
- package/dist/pine-core/{p-51680c9c.system.entry.js → p-39264dfb.system.entry.js} +1 -1
- package/dist/pine-core/{p-0a7570dd.system.entry.js → p-3aed0418.system.entry.js} +1 -1
- package/dist/pine-core/{p-d1283e8d.entry.js → p-3dd879fd.entry.js} +1 -1
- package/dist/pine-core/p-3f1c05cd.system.entry.js +1 -0
- package/dist/pine-core/{p-b00b07e3.entry.js → p-42376f2c.entry.js} +1 -1
- package/dist/pine-core/p-4263038f.entry.js +1 -0
- package/dist/pine-core/{p-2ddcd845.system.entry.js → p-563baadd.system.entry.js} +1 -1
- package/dist/pine-core/p-587bd9ed.entry.js +1 -0
- package/dist/pine-core/p-5c7dfa7a.entry.js +1 -0
- package/dist/pine-core/{p-16fceef6.system.entry.js → p-63d47dd4.system.entry.js} +1 -1
- package/dist/pine-core/{p-55535481.system.entry.js → p-66e61921.system.entry.js} +1 -1
- package/dist/pine-core/p-6a965119.entry.js +1 -0
- package/dist/pine-core/{p-8afd5f5b.system.entry.js → p-6fdc6df9.system.entry.js} +1 -1
- package/dist/pine-core/{p-8e17a6d8.system.entry.js → p-863ff553.system.entry.js} +1 -1
- package/dist/pine-core/{p-de3b319e.system.entry.js → p-87cadd6f.system.entry.js} +1 -1
- package/dist/pine-core/{p-e2541eeb.entry.js → p-8db554fe.entry.js} +1 -1
- package/dist/pine-core/{p-60e65fe0.system.entry.js → p-931a0ccd.system.entry.js} +1 -1
- package/dist/pine-core/p-94fd9595.entry.js +1 -0
- package/dist/pine-core/{p-c9630934.system.entry.js → p-96bccf85.system.entry.js} +1 -1
- package/dist/pine-core/p-9a63bf72.entry.js +1 -0
- package/dist/pine-core/{p-f9bdaadd.system.entry.js → p-9da10cfb.system.entry.js} +1 -1
- package/dist/pine-core/p-XK45dzWR.system.js +1 -1
- package/dist/pine-core/{p-57edd301.system.entry.js → p-a0fa77b1.system.entry.js} +1 -1
- package/dist/pine-core/p-a1575919.entry.js +1 -0
- package/dist/pine-core/p-aae96744.entry.js +1 -0
- package/dist/pine-core/p-b379d9bc.system.entry.js +1 -0
- package/dist/pine-core/p-badde164.entry.js +1 -0
- package/dist/pine-core/p-c65f4eaa.system.entry.js +1 -0
- package/dist/pine-core/{p-97145eee.system.entry.js → p-c6c5ada6.system.entry.js} +1 -1
- package/dist/pine-core/p-d4b0122f.system.entry.js +1 -0
- package/dist/pine-core/{p-1ab52531.system.entry.js → p-d61a0fe8.system.entry.js} +1 -1
- package/dist/pine-core/{p-1a013a5c.system.entry.js → p-de3f4a28.system.entry.js} +1 -1
- package/dist/pine-core/p-e334af06.entry.js +1 -0
- package/dist/pine-core/p-e4216ff6.entry.js +1 -0
- package/dist/pine-core/p-e68044b3.entry.js +1 -0
- package/dist/pine-core/p-e75d8bc1.entry.js +1 -0
- package/dist/pine-core/{p-a5e9c583.entry.js → p-e871cfce.entry.js} +1 -1
- package/dist/pine-core/{p-8deeda07.entry.js → p-eee042d3.entry.js} +1 -1
- package/dist/pine-core/{p-1edef412.entry.js → p-f65127f1.entry.js} +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-accordion/pds-accordion.d.ts +1 -1
- package/dist/types/components/pds-alert/pds-alert.d.ts +1 -1
- package/dist/types/components/pds-avatar/pds-avatar.d.ts +1 -1
- package/dist/types/components/pds-button/pds-button.d.ts +1 -1
- package/dist/types/components/pds-chip/pds-chip.d.ts +1 -1
- package/dist/types/components/pds-copytext/pds-copytext.d.ts +1 -1
- package/dist/types/components/pds-divider/pds-divider.d.ts +1 -1
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +1 -1
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.d.ts +1 -1
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +1 -1
- package/dist/types/components/pds-filters/pds-filter/pds-filter.d.ts +2 -1
- package/dist/types/components/pds-filters/pds-filters.d.ts +1 -1
- package/dist/types/components/pds-image/pds-image.d.ts +1 -1
- package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +11 -3
- package/dist/types/components/pds-popover/pds-popover.d.ts +2 -1
- package/dist/types/components/pds-property/pds-property.d.ts +1 -1
- package/dist/types/components/pds-radio-group/pds-radio-group.d.ts +2 -1
- package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +1 -1
- package/dist/types/components/pds-sortable/pds-sortable.d.ts +1 -1
- package/dist/types/components/pds-switch/pds-switch.d.ts +8 -5
- package/dist/types/components/pds-table/pds-table.d.ts +1 -1
- package/dist/types/components/pds-tabs/pds-tabs.d.ts +2 -1
- package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +2 -1
- package/dist/types/components.d.ts +57 -57
- package/dist/vscode.html-data.json +30 -30
- package/hydrate/index.js +75 -52
- package/hydrate/index.mjs +75 -52
- package/package.json +2 -2
- package/dist/pine-core/p-1f998e3e.entry.js +0 -1
- package/dist/pine-core/p-2b6becc2.entry.js +0 -1
- package/dist/pine-core/p-3c229091.entry.js +0 -1
- package/dist/pine-core/p-5d582798.entry.js +0 -1
- package/dist/pine-core/p-627a94da.entry.js +0 -1
- package/dist/pine-core/p-72ff5ad2.system.entry.js +0 -1
- package/dist/pine-core/p-84d4ae26.entry.js +0 -1
- package/dist/pine-core/p-a4ce12ef.entry.js +0 -1
- package/dist/pine-core/p-b7b29392.entry.js +0 -1
- package/dist/pine-core/p-bdab6c9f.entry.js +0 -1
- package/dist/pine-core/p-c1dc7692.entry.js +0 -1
- package/dist/pine-core/p-cb9227f6.system.entry.js +0 -1
- package/dist/pine-core/p-ceef0eb1.entry.js +0 -1
- package/dist/pine-core/p-e554bd64.entry.js +0 -1
- package/dist/pine-core/p-e6427c87.entry.js +0 -1
- package/dist/pine-core/p-e7002cee.entry.js +0 -1
- package/dist/pine-core/p-e72e8b8f.entry.js +0 -1
- package/dist/pine-core/p-ef3a855f.system.entry.js +0 -1
- package/dist/pine-core/p-f9063262.system.entry.js +0 -1
- package/dist/pine-core/p-fea4296d.entry.js +0 -1
|
@@ -15,7 +15,7 @@ const PdsDropdownMenuSeparator = class {
|
|
|
15
15
|
this.disabled = false;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: '247de1e84622fc816f541e95da022c7d07b3852c' }, index.h("hr", { key: 'd66e06eee972fa962003152a4ec7703d7c66d620' })));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
PdsDropdownMenuSeparator.style = pdsDropdownMenuSeparatorCss();
|
|
@@ -444,7 +444,7 @@ const PdsDropdownMenu = class {
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
render() {
|
|
447
|
-
return (index.h(index.Host, { key: '
|
|
447
|
+
return (index.h(index.Host, { key: '3baa07d7761a581606704b5e79e68d7bc585ff36' }, index.h("slot", { key: '527afc60b7b6f7c869c62924fd00791de2538955', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), index.h("pds-box", { key: '2efeff541331bc0b39ed271984c680e14892ed0b', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", part: "menu-panel" }, index.h("div", { key: '591d61a9c12e10aef64638f1f51073321bddae69', class: { 'pds-dropdown-menu__header': true, 'is-hidden': !this.hasHeader } }, index.h("slot", { key: 'c3a7fd69e0074be99508ae6b6c14bbd78fbc1f03', name: "header", onSlotchange: this.handleHeaderSlotChange })), index.h("div", { key: '84c4f0cb77eadc86a5bb2b59c4b33f8691d2adfb', class: "pds-dropdown-menu__items", role: "menu", "aria-orientation": "vertical" }, index.h("slot", { key: '8c16bfd158a2be6009545562940c38ca433e1c47', onSlotchange: this.handleSlotChange })))));
|
|
448
448
|
}
|
|
449
449
|
get host() { return index.getElement(this); }
|
|
450
450
|
};
|
|
@@ -503,7 +503,7 @@ const PdsFilter = class {
|
|
|
503
503
|
return null;
|
|
504
504
|
}
|
|
505
505
|
render() {
|
|
506
|
-
return (index.h(index.Host, { key: '
|
|
506
|
+
return (index.h(index.Host, { key: 'ae727227de30a285588182dce73fa4867e66bb89' }, index.h("button", { key: '45ff52e203ff936d42c9ba037066756035d74d98', class: this.getTriggerClasses(), type: "button", popoverTarget: this.variant !== 'clear' ? `${this.componentId}-popover` : undefined, popoverTargetAction: this.variant !== 'clear' ? 'toggle' : undefined, onKeyDown: this.variant === 'clear' ? this.handleKeyDown : undefined, onClick: (event) => this.handleClick(event), part: "button", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": this.variant !== 'clear' ? 'true' : undefined, "aria-controls": this.variant !== 'clear' ? `${this.componentId}-popover` : undefined }, index.h("span", { key: '05fb0de22068e9fcc79d8903a617513db0d71da1', class: "pds-filter__button-content", part: "button-content" }, this.renderIcon(), this.text && (index.h("span", { key: '4589b7fc0aed1ab3d7e6c06fea123553d2b77a3e', class: "pds-filter__button-text", part: "button-text" }, this.text)), this.renderDropdownIcon())), this.variant !== 'clear' && (index.h("div", { key: '4cbad5c76e8e28eb4a09d4a2c8a3d7c30024f114', ref: el => this.popoverEl = el, id: `${this.componentId}-popover`, class: "pds-filter__popover", popover: "auto", part: "popover" }, index.h("slot", { key: 'c915f596e9d9efe1a7b1bd2edcf9b704d986438d' })))));
|
|
507
507
|
}
|
|
508
508
|
get el() { return index.getElement(this); }
|
|
509
509
|
};
|
|
@@ -10,7 +10,7 @@ const PdsFilters = class {
|
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (index.h(index.Host, { key: '
|
|
13
|
+
return (index.h(index.Host, { key: '4a5ed2d7e80d82be9517682ee66e464fa61ea45b' }, index.h("div", { key: '7cabd4f934c17b14268c28f9ce99e8900795c516', class: "pds-filters" }, index.h("slot", { key: 'a1d01f1be8885c3cf68f98df59d67f56709f00e8' }))));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
PdsFilters.style = pdsFiltersCss();
|
|
@@ -155,10 +155,10 @@ const PdsImage = class {
|
|
|
155
155
|
const ratioStyle = hasRatio
|
|
156
156
|
? { aspectRatio: this.imageRatio(), objectFit: this.fit }
|
|
157
157
|
: undefined;
|
|
158
|
-
return (index.h(index.Host, { key: '
|
|
158
|
+
return (index.h(index.Host, { key: 'f01ae0cef8a08b686a62affe14e58661115f1e2e', class: {
|
|
159
159
|
'pds-image': true,
|
|
160
160
|
'pds-image--has-ratio': hasRatio,
|
|
161
|
-
}
|
|
161
|
+
} }, index.h("img", { key: '3e609d3b73154ea5c83ae2df58352b0021075373', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, style: ratioStyle, width: this.width, onLoad: this.emitLoad, onError: this.emitError, ref: (el) => (this.imageEl = el) })));
|
|
162
162
|
}
|
|
163
163
|
static get watchers() { return {
|
|
164
164
|
"src": [{
|
|
@@ -10,7 +10,7 @@ var truncationTooltip = require('./truncation-tooltip-CM5HgRHh.js');
|
|
|
10
10
|
require('./keep-hydrated-AKoh0DG4.js');
|
|
11
11
|
require('./portal-target-e8WQ6dLx.js');
|
|
12
12
|
|
|
13
|
-
const pdsMultiselectCss = () => `:host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__pill-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs)}.pds-multiselect__pill-list--inline{-ms-flex:1;flex:1;min-width:0}.pds-multiselect__pill-list--below{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-multiselect__pill-overflow{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);white-space:nowrap}.pds-multiselect__trigger--pill-inline{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger--pill-inline:focus-within:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--invalid:focus-within{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__pill-toggle{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-multiselect__pill-toggle:focus{outline:3px solid transparent}.pds-multiselect__trigger--disabled .pds-multiselect__pill-toggle{cursor:not-allowed;pointer-events:none}.pds-multiselect__panel{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:fixed;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-active);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__group-header{color:var(--pine-color-text-muted);display:block;font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-sm) var(--pine-dimension-xs) var(--pine-dimension-2xs);text-transform:uppercase}.pds-multiselect__listbox>li:first-child>.pds-multiselect__group-header{-webkit-padding-before:var(--pine-dimension-xs);padding-block-start:var(--pine-dimension-xs)}.pds-multiselect__group-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{min-width:var(--pine-dimension-none);pointer-events:none;width:100%}.pds-multiselect__option pds-chip{pointer-events:auto}.pds-multiselect__option:hover:not(.pds-multiselect__option--disabled),.pds-multiselect__option.pds-multiselect__option--highlighted:not(.pds-multiselect__option--disabled){background:var(--pine-color-background-muted)}.pds-multiselect__option.pds-multiselect__option--disabled{cursor:not-allowed;opacity:0.5}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__option-action{-ms-flex-align:center;align-items:center;block-size:var(--pine-dimension-md);color:var(--pine-color-icon);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;inline-size:var(--pine-dimension-md);-ms-flex-pack:center;justify-content:center;-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__footer{-webkit-border-before:var(--pine-border);border-block-start:var(--pine-border);border-block-start-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm-medium);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}`;
|
|
13
|
+
const pdsMultiselectCss = () => `:host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-label{display:grid;-ms-flex:1;flex:1;grid-template-columns:minmax(0, 1fr);min-width:0}.pds-multiselect__trigger-sizer{grid-area:1/1;overflow:hidden;visibility:hidden;white-space:nowrap}.pds-multiselect__trigger-label>.pds-multiselect__trigger-text{contain:inline-size;grid-area:1/1}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__pill-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs)}.pds-multiselect__pill-list--inline{-ms-flex:1;flex:1;min-width:0}.pds-multiselect__pill-list--below{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-multiselect__pill-overflow{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);white-space:nowrap}.pds-multiselect__trigger--pill-inline{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger--pill-inline:focus-within:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--invalid:focus-within{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__pill-toggle{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-multiselect__pill-toggle:focus{outline:3px solid transparent}.pds-multiselect__trigger--disabled .pds-multiselect__pill-toggle{cursor:not-allowed;pointer-events:none}.pds-multiselect__panel{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:fixed;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-active);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__group-header{color:var(--pine-color-text-muted);display:block;font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-sm) var(--pine-dimension-sm) var(--pine-dimension-2xs);text-transform:uppercase}.pds-multiselect__listbox>li:first-child>.pds-multiselect__group-header{-webkit-padding-before:var(--pine-dimension-xs);padding-block-start:var(--pine-dimension-xs)}.pds-multiselect__group-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{min-width:var(--pine-dimension-none);pointer-events:none;width:100%}.pds-multiselect__option pds-chip{pointer-events:auto}.pds-multiselect__option:hover:not(.pds-multiselect__option--disabled),.pds-multiselect__option.pds-multiselect__option--highlighted:not(.pds-multiselect__option--disabled){background:var(--pine-color-background-muted)}.pds-multiselect__option.pds-multiselect__option--disabled{cursor:not-allowed;opacity:0.5}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__option-action{-ms-flex-align:center;align-items:center;block-size:var(--pine-dimension-md);color:var(--pine-color-icon);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;inline-size:var(--pine-dimension-md);-ms-flex-pack:center;justify-content:center;-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__footer{-webkit-border-before:var(--pine-border);border-block-start:var(--pine-border);border-block-start-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm-medium);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}`;
|
|
14
14
|
|
|
15
15
|
// Names only: pds-icon's `icon` prop also fetches URLs and data: SVGs, unsanitized.
|
|
16
16
|
const PINE_ICON_NAME = /^[a-z0-9-]+$/i;
|
|
@@ -92,6 +92,7 @@ const PdsMultiselect = class {
|
|
|
92
92
|
this.pillRemoveLabel = 'Remove';
|
|
93
93
|
/**
|
|
94
94
|
* Singular form of the selected-count trigger text. Pass a translated string to localize it; `{count}` is interpolated.
|
|
95
|
+
* A single selection shows the item's name instead, so this applies to other counts that a locale's plural rules treat as singular, and to a single selection whose item has no text.
|
|
95
96
|
* @defaultValue '{count} item'
|
|
96
97
|
*/
|
|
97
98
|
this.selectedCountLabelOne = '{count} item';
|
|
@@ -147,8 +148,9 @@ const PdsMultiselect = class {
|
|
|
147
148
|
this.hideSelectedItems = false;
|
|
148
149
|
/**
|
|
149
150
|
* Display mode for selected items outside the dropdown panel.
|
|
150
|
-
* `'count'` shows
|
|
151
|
-
*
|
|
151
|
+
* `'count'` shows the item's name in the trigger when one is selected and
|
|
152
|
+
* "N items" text otherwise (default). `'pill'` renders selected items as
|
|
153
|
+
* dismissible pds-chip tags.
|
|
152
154
|
* @default 'count'
|
|
153
155
|
*/
|
|
154
156
|
this.selectedDisplay = 'count';
|
|
@@ -1281,6 +1283,7 @@ const PdsMultiselect = class {
|
|
|
1281
1283
|
return (index.h("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--below", "aria-label": this.selectedItemsLabel }, this.selectedItems.map(item => (index.h("pds-chip", { key: String(item.id), "component-id": `${this.componentId}-pill-${item.id}`, variant: variant, size: "md", sentiment: "neutral", "dismiss-label": this.pillRemoveLabel, onPdsTagCloseClick: this.handlePillRemove(item) }, item.text)))));
|
|
1282
1284
|
}
|
|
1283
1285
|
getTriggerText() {
|
|
1286
|
+
var _a;
|
|
1284
1287
|
const count = this.selectedItems.length;
|
|
1285
1288
|
if (count === 0 || (this.selectedDisplay === 'pill' && this.pillPosition === 'below')) {
|
|
1286
1289
|
// Fall back to a non-empty string: the trigger's accessible name comes from
|
|
@@ -1288,8 +1291,24 @@ const PdsMultiselect = class {
|
|
|
1288
1291
|
// (WCAG 4.1.2). The prop is localizable; this last-resort default is not.
|
|
1289
1292
|
return this.placeholder || 'Select...';
|
|
1290
1293
|
}
|
|
1294
|
+
// One selection shows its name; the count only says something once there's more than one.
|
|
1295
|
+
// An option without text still falls back to the count, so the trigger is never nameless.
|
|
1296
|
+
if (count === 1 && ((_a = this.selectedItems[0].text) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
1297
|
+
return this.selectedItems[0].text;
|
|
1298
|
+
}
|
|
1291
1299
|
return i18nFormat.pluralize(this.el, count, this.resolveCountForms());
|
|
1292
1300
|
}
|
|
1301
|
+
/**
|
|
1302
|
+
* The text that sets the trigger's width. A single selection's name could be any length, so the
|
|
1303
|
+
* trigger keeps the width the count would give it and the name truncates inside that, rather than
|
|
1304
|
+
* widening a multiselect that has no width of its own.
|
|
1305
|
+
*/
|
|
1306
|
+
getTriggerSizerText() {
|
|
1307
|
+
const text = this.getTriggerText();
|
|
1308
|
+
const count = this.selectedItems.length;
|
|
1309
|
+
const showsName = count === 1 && text === this.selectedItems[0].text && !(this.selectedDisplay === 'pill' && this.pillPosition === 'below');
|
|
1310
|
+
return showsName ? i18nFormat.pluralize(this.el, count, this.resolveCountForms()) : text;
|
|
1311
|
+
}
|
|
1293
1312
|
/**
|
|
1294
1313
|
* The `one`/`other` props are the ergonomic English defaults; `selectedCountLabels`
|
|
1295
1314
|
* (object or JSON-string attribute) layers full CLDR forms on top for locales
|
|
@@ -1316,10 +1335,10 @@ const PdsMultiselect = class {
|
|
|
1316
1335
|
}
|
|
1317
1336
|
render() {
|
|
1318
1337
|
const hasSelections = this.selectedItems.length > 0;
|
|
1319
|
-
return (index.h(index.Host, { key: '
|
|
1338
|
+
return (index.h(index.Host, { key: '12298f9692ac8644230195cc1abe0e26bb5715a9', "aria-disabled": this.disabled ? 'true' : null }, index.h("div", { key: '5d98f9edae2f471d9662c65454fbef7b2dec83e1', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (index.h("label", { key: '2f6d4162d0649978bc53c34327b6149dc971fd4c', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
|
|
1320
1339
|
'pds-multiselect__label': true,
|
|
1321
1340
|
'visually-hidden': this.hideLabel,
|
|
1322
|
-
} }, this.label)), index.h("div", { key: '
|
|
1341
|
+
} }, this.label)), index.h("div", { key: '7a337e876c8fff854e5b9a067ef89b9d5136df4f', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), style: { width: this.triggerWidth } }, this.slottedTriggerEl ? (index.h("slot", { name: "trigger" })) : this.selectedDisplay === 'pill' && this.pillPosition === 'inline' ? (index.h("div", { ref: el => (this.pillInlineTriggerEl = el || undefined), part: "trigger", class: {
|
|
1323
1342
|
'pds-multiselect__trigger': true,
|
|
1324
1343
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
1325
1344
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
@@ -1332,10 +1351,10 @@ const PdsMultiselect = class {
|
|
|
1332
1351
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
1333
1352
|
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
1334
1353
|
'pds-multiselect__trigger--has-value': hasSelections,
|
|
1335
|
-
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": form.assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.helperMessage, this.errorMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, index.h("span", { class: {
|
|
1354
|
+
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": form.assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.helperMessage, this.errorMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, index.h("span", { class: "pds-multiselect__trigger-label" }, index.h("span", { class: "pds-multiselect__trigger-sizer", "aria-hidden": "true" }, this.getTriggerSizerText()), index.h("span", { class: {
|
|
1336
1355
|
'pds-multiselect__trigger-text': true,
|
|
1337
1356
|
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
1338
|
-
} }, this.getTriggerText()), index.h("pds-icon", { "aria-hidden": "true", class: "pds-multiselect__icon", icon: index$1.enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), index.h("span", { key: '
|
|
1357
|
+
} }, this.getTriggerText())), index.h("pds-icon", { "aria-hidden": "true", class: "pds-multiselect__icon", icon: index$1.enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), index.h("span", { key: 'd3cf5bb64a6c296c84af30628698559c0c904117', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (index.h("p", { key: 'a711280151ff360758143906a76fa2d25f4078a9', class: "pds-multiselect__helper", id: form.messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (index.h("p", { key: '17411d6bb55843f45f8d7ee410b627de846eed65', class: "pds-multiselect__error", id: form.messageId(this.componentId, 'error') }, index.h("pds-icon", { key: '446ffc0ed08b7856f0ef8c49bdf06b6011404a12', "aria-hidden": "true", icon: index$1.danger, size: "small" }), this.errorMessage)), index.h("div", { key: 'a83ed6c5d84cbf38f267f7e15bd871d09534c554', style: { display: 'none' } }, index.h("slot", { key: '294ce6a2bd4405854161aed5d8166fcc86e211e3' })))));
|
|
1339
1358
|
}
|
|
1340
1359
|
static get formAssociated() { return true; }
|
|
1341
1360
|
get el() { return index.getElement(this); }
|
|
@@ -1079,7 +1079,7 @@ const PdsPopover = class {
|
|
|
1079
1079
|
portal.style.left = `${left - origin.left}px`;
|
|
1080
1080
|
}
|
|
1081
1081
|
render() {
|
|
1082
|
-
return (index.h(index.Host, { key: '
|
|
1082
|
+
return (index.h(index.Host, { key: '1767e44f8f0fba0938cc99fefdeb786cf9131384' }, index.h("span", { key: 'b5369451958d62562f007d600e7567809f281bfb', class: "pds-popover__trigger-wrapper" }, index.h("slot", { key: '30a8273c6365eff7fd8265966ae09d66ac84e0a9', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), index.h("span", { key: 'a562458380244ca76af047edd00d40d012bc30ce', class: "pds-popover__tab-guard", ref: (el) => (this.tabGuardEl = el !== null && el !== void 0 ? el : null), onFocus: this.handleTabGuardFocus }), index.h("div", { key: '36db874a9f1bcdf0dc52d9cce368c5fc4f296b62', class: "pds-popover__content-slot-wrapper" }, index.h("slot", { key: '295f000fcdcaa4ef5249f4e98ed83cbd467351b0', onSlotchange: this.handleContentSlotChange }))));
|
|
1083
1083
|
}
|
|
1084
1084
|
get el() { return index.getElement(this); }
|
|
1085
1085
|
static get watchers() { return {
|
|
@@ -14,7 +14,7 @@ const PdsProperty = class {
|
|
|
14
14
|
this.icon = 'star';
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '1bdcebaa09a696b18871651ef2615d0d400ddbb8' }, index.h("pds-box", { key: 'a4dc57f9e758b78fe3d4f2c096fadec53288e47b', "align-items": "center", gap: "xs" }, index.h("pds-icon", { key: '2a89c7e1231163b5e4ac20d3d0c3d43af414a11a', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), index.h("slot", { key: '4c4d2ee5ed05ad2ec53bbe4f79fa11c04c8eb44d' }))));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
PdsProperty.style = pdsPropertyCss();
|
|
@@ -8,6 +8,8 @@ require('./keep-hydrated-AKoh0DG4.js');
|
|
|
8
8
|
|
|
9
9
|
const pdsRadioGroupCss = () => `.sc-pds-radio-group-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--pine-dimension-sm)}.is-invalid.sc-pds-radio-group-h .pds-radio-group__message--error.sc-pds-radio-group{color:var(--pine-color-text-message-danger)}.pds-radio-group__label.sc-pds-radio-group{color:var(--pine-color-text-label);font:var(--pine-typography-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-radio-group__radios.sc-pds-radio-group{display:-ms-flexbox;display:flex;gap:var(--pds-radio-group-gap, var(--pine-dimension-xs))}.pds-radio-group__radios--row.sc-pds-radio-group{-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.pds-radio-group__radios--column.sc-pds-radio-group{-ms-flex-direction:column;flex-direction:column}.pds-radio-group__message.sc-pds-radio-group{color:var(--pine-color-text-message);font:var(--pine-typography-body);width:100%}.pds-radio-group__message--error.sc-pds-radio-group{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-radio-group__message--error.sc-pds-radio-group pds-icon.sc-pds-radio-group{-webkit-margin-before:var(--pine-dimension-050);margin-block-start:var(--pine-dimension-050)}`;
|
|
10
10
|
|
|
11
|
+
// The label and message ids a group without component-id generates for itself.
|
|
12
|
+
const STALE_REFERENCE = /^radio-group-.+__(label|helper-message|error-message)$/;
|
|
11
13
|
const PdsRadioGroup = class {
|
|
12
14
|
constructor(hostRef) {
|
|
13
15
|
index.registerInstance(this, hostRef);
|
|
@@ -125,18 +127,21 @@ const PdsRadioGroup = class {
|
|
|
125
127
|
: `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
|
|
126
128
|
this._groupId = `radio-group-${uniqueId}`;
|
|
127
129
|
}
|
|
128
|
-
// A restored or cloned host still
|
|
129
|
-
//
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
130
|
+
// A restored or cloned host can still carry the ARIA references an earlier instance wrote, pointing at that
|
|
131
|
+
// instance's label and messages. Drop those tokens so this render writes its own, and keep any others.
|
|
132
|
+
['aria-labelledby', 'aria-describedby'].forEach((name) => {
|
|
133
|
+
var _a;
|
|
134
|
+
const ids = (_a = this.el.getAttribute(name)) === null || _a === void 0 ? void 0 : _a.split(/\s+/).filter(Boolean);
|
|
135
|
+
if (!ids)
|
|
136
|
+
return;
|
|
137
|
+
const kept = ids.filter((id) => !STALE_REFERENCE.test(id) || id.startsWith(`${this._groupId}__`));
|
|
138
|
+
if (kept.length === ids.length)
|
|
139
|
+
return;
|
|
140
|
+
if (kept.length)
|
|
141
|
+
this.el.setAttribute(name, kept.join(' '));
|
|
142
|
+
else
|
|
143
|
+
this.el.removeAttribute(name);
|
|
144
|
+
});
|
|
140
145
|
}
|
|
141
146
|
componentDidLoad() {
|
|
142
147
|
if (!this.name) {
|
|
@@ -226,13 +231,13 @@ const PdsRadioGroup = class {
|
|
|
226
231
|
'aria-describedby': ariaDescribedBy,
|
|
227
232
|
'aria-labelledby': ariaLabelledBy === this.labelId ? ariaLabelledBy : undefined,
|
|
228
233
|
});
|
|
229
|
-
return (index.h(index.Host, { key: '
|
|
234
|
+
return (index.h(index.Host, { key: 'd379f29bc62f1855c1a244c3edd800b390a98f54', class: hostClass, role: "radiogroup", "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, style: {
|
|
230
235
|
'--pds-radio-group-gap': gapValue,
|
|
231
|
-
} }, this.groupLabel && (index.h("div", { key: '
|
|
236
|
+
} }, this.groupLabel && (index.h("div", { key: 'e2db8af21186405b0c7b6c23422e34b46ca6bbbe', class: "pds-radio-group__label", id: this.labelId }, this.groupLabel)), index.h("div", { key: 'f818e2b84374979cda34d635ff6e9d1982d67c46', class: {
|
|
232
237
|
'pds-radio-group__radios': true,
|
|
233
238
|
'pds-radio-group__radios--row': this.direction === 'row',
|
|
234
239
|
'pds-radio-group__radios--column': this.direction === 'column',
|
|
235
|
-
} }, index.h("slot", { key: '
|
|
240
|
+
} }, index.h("slot", { key: 'f4d61c9495773c33119fcddf270f5a4d345e507b', onSlotchange: () => this.updateChildRadios() })), this.helperMessage && (index.h("div", { key: '9ba493a3baf04085fba52f9f825024210122f0b5', class: "pds-radio-group__message", id: form.messageId(this._groupId, 'helper') }, this.helperMessage)), this.errorMessage && (index.h("div", { key: '3a11a19683b897b565d615d888c7f9357e0e1ed3', class: "pds-radio-group__message pds-radio-group__message--error", id: form.messageId(this._groupId, 'error'), "aria-live": "assertive" }, index.h("pds-icon", { key: 'c57a25a382cbcc216fffeab849eca06a78cb4b60', "aria-hidden": "true", icon: index$1.danger, size: "small" }), this.errorMessage))));
|
|
236
241
|
}
|
|
237
242
|
get el() { return index.getElement(this); }
|
|
238
243
|
static get watchers() { return {
|
|
@@ -71,10 +71,10 @@ const PdsSortableItem = class {
|
|
|
71
71
|
this.hostKeeper.record(hostClasses);
|
|
72
72
|
const existingHandle = this.el.querySelector('.pds-sortable-item__handle');
|
|
73
73
|
const wasPressed = (existingHandle === null || existingHandle === void 0 ? void 0 : existingHandle.getAttribute('aria-pressed')) === 'true';
|
|
74
|
-
return (index.h(index.Host, { key: '
|
|
74
|
+
return (index.h(index.Host, { key: '93566ff82e0603508392df14f6ecec11872e822c', class: hostClasses }, (this.showHandle || reorderable) && (index.h("div", { key: 'c3c6bd592ab827a0fc513c101b5afec8acc62cf4', class: {
|
|
75
75
|
'pds-sortable-item__handle': true,
|
|
76
76
|
'pds-sortable-item__handle--hidden': !this.showHandle,
|
|
77
|
-
}, role: reorderable ? 'button' : undefined, tabindex: reorderable ? '0' : undefined, "aria-label": reorderable ? i18nFormat.formatMessage(sortable.handleLabel, { item: sortableLabel.sortableItemLabel(this.el) }) : undefined, "aria-pressed": reorderable ? String(wasPressed) : undefined }, index.h("pds-icon", { key: '
|
|
77
|
+
}, role: reorderable ? 'button' : undefined, tabindex: reorderable ? '0' : undefined, "aria-label": reorderable ? i18nFormat.formatMessage(sortable.handleLabel, { item: sortableLabel.sortableItemLabel(this.el) }) : undefined, "aria-pressed": reorderable ? String(wasPressed) : undefined }, index.h("pds-icon", { key: 'a71dd5c7c7d368ec0ef326d7f86f33bcaeecf238', "aria-hidden": "true", icon: index$1.handle }))), index.h("slot", { key: 'cf372e7f7a234829b77ae28604bfdbdced27b1e8' }), this.enableActions && (index.h("div", { key: 'abf8848c6c5ed09ddcf1b09be21f0ba851385f10', class: "pds-sortable-item__actions" }, index.h("slot", { key: 'e6b3b897c17529f5d803d72e6fcbeed66880f083', name: "sortable-item-actions" })))));
|
|
78
78
|
}
|
|
79
79
|
get el() { return index.getElement(this); }
|
|
80
80
|
};
|
|
@@ -3069,7 +3069,7 @@ const PdsSortable = class {
|
|
|
3069
3069
|
render() {
|
|
3070
3070
|
const classNames = this.classNames();
|
|
3071
3071
|
this.hostKeeper.record(classNames);
|
|
3072
|
-
return (index$1.h(index$1.Host, { key: '
|
|
3072
|
+
return (index$1.h(index$1.Host, { key: 'f758a8b71485f09185ba511b304c48c3fcdb5298', class: classNames, onFocusin: this.handleFocusIn, onFocusout: this.handleFocusOut, onKeyDown: this.handleKeyDown, onClick: this.handleClick }, index$1.h("slot", { key: 'fecbafc235475dc67fb1d7fe051c42d2a51b4bfe' })));
|
|
3073
3073
|
}
|
|
3074
3074
|
get el() { return index$1.getElement(this); }
|
|
3075
3075
|
static get watchers() { return {
|
|
@@ -31,7 +31,7 @@ const PdsSwitch = class {
|
|
|
31
31
|
*/
|
|
32
32
|
this.disabled = false;
|
|
33
33
|
/**
|
|
34
|
-
* Determines
|
|
34
|
+
* Determines whether or not the switch is invalid.
|
|
35
35
|
*/
|
|
36
36
|
this.invalid = false;
|
|
37
37
|
/**
|
|
@@ -182,12 +182,12 @@ const PdsSwitch = class {
|
|
|
182
182
|
const hostClass = this.switchClassNames();
|
|
183
183
|
const ariaDisabled = this.isDisabled() ? 'true' : null;
|
|
184
184
|
this.hostKeeper.record(hostClass, {}, { 'aria-disabled': ariaDisabled });
|
|
185
|
-
return (index.h(index.Host, { key: '
|
|
185
|
+
return (index.h(index.Host, { key: '4c6f12c064caead89979cc4aa0ef25c4581381c3', class: hostClass, "aria-disabled": ariaDisabled }, index.h("label", { key: 'c97164a6d6318be6cbcc026373e3d5c0a9316d56', htmlFor: this.componentId }, index.h("input", Object.assign({ key: 'dfaf7408c3fbbed38bd0732ff156e53f57235100', "aria-describedby": this.ownDescriptionId(), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.isDisabled(), id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate,
|
|
186
186
|
// A description added after the switch, or replaced by a framework or a DOM morph, is picked up by the
|
|
187
187
|
// time focus reaches the switch and it's announced.
|
|
188
|
-
onFocus: this.forwardDescription, ref: (el) => (this.inputEl = el), required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), index.h("span", { key: '
|
|
189
|
-
index.h("div", { key: '
|
|
190
|
-
index.h("div", { key: '
|
|
188
|
+
onFocus: this.forwardDescription, ref: (el) => (this.inputEl = el), required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), index.h("span", { key: '5e621fa2881bb2d1eddd3dcbc33173f3cf49bd93', class: this.hideLabel ? 'visually-hidden' : '' }, index.h("slot", { key: 'ef682ce320b8d9f2897676af97e0b4d55c55358a', name: "label", onSlotchange: this.updateHasLabelSlot }), !this.hasLabelSlot && this.label)), this.helperMessage &&
|
|
189
|
+
index.h("div", { key: '145da644abc8829de20ca6f9c4532f5341dec441', class: `pds-switch__message`, id: form.messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
190
|
+
index.h("div", { key: '7766e34f6daaf760d78aec6f08b64f0de15deb4c', class: `pds-switch__message pds-switch__message--error`, id: form.messageId(this.componentId, 'error'), "aria-live": "assertive" }, index.h("pds-icon", { key: '74dfd91aabf60608e8278ef84119466a2143ffc7', "aria-hidden": "true", icon: index$1.danger, size: "small" }), this.errorMessage)));
|
|
191
191
|
}
|
|
192
192
|
static get formAssociated() { return true; }
|
|
193
193
|
get el() { return index.getElement(this); }
|
|
@@ -495,9 +495,9 @@ const PdsTable = class {
|
|
|
495
495
|
}
|
|
496
496
|
render() {
|
|
497
497
|
if (this.responsive) {
|
|
498
|
-
return (index.h(index.Host, { class: `${this.classNames()} pds-table-responsive-host`,
|
|
498
|
+
return (index.h(index.Host, { class: `${this.classNames()} pds-table-responsive-host`, role: "grid", selectable: this.selectable, tabindex: "0", part: "table responsive-table" }, index.h("div", { class: "scroll-shadow-left", part: "scroll-shadow-left" }), index.h("div", { class: "scroll-shadow-right", part: "scroll-shadow-right" }), index.h("div", { class: "pds-table-responsive-container", part: "responsive-container" }, index.h("div", { class: "pds-table-responsive-wrapper", part: "responsive-wrapper" }, index.h("div", { class: this.classNames(), part: "table-inner" }, index.h("slot", null))))));
|
|
499
499
|
}
|
|
500
|
-
return (index.h(index.Host, { class: this.classNames(),
|
|
500
|
+
return (index.h(index.Host, { class: this.classNames(), role: "grid", selectable: this.selectable, tabindex: "0", part: "table" }, index.h("slot", null)));
|
|
501
501
|
}
|
|
502
502
|
get el() { return index.getElement(this); }
|
|
503
503
|
static get watchers() { return {
|
|
@@ -278,7 +278,7 @@ const PdsTabs = class {
|
|
|
278
278
|
// Only the classes: `active-tab-name` backs the mutable activeTabName prop, so a morph that drops
|
|
279
279
|
// it is a prop change, not a strip.
|
|
280
280
|
this.hostKeeper.record(hostClass);
|
|
281
|
-
return (index.h(index.Host, { key: '
|
|
281
|
+
return (index.h(index.Host, { key: '6ededb588230706dc0848164e991694490436bf1', "active-tab-name": this.activeTabName, class: hostClass }, tabList, index.h("slot", { key: '68d090b7b6a3bae74ceb66e1487ce96666a38c6e', name: "tabpanels" })));
|
|
282
282
|
}
|
|
283
283
|
get el() { return index.getElement(this); }
|
|
284
284
|
};
|
|
@@ -426,10 +426,9 @@ const PdsTooltip = class {
|
|
|
426
426
|
this.lastCopiedHtml = null;
|
|
427
427
|
}
|
|
428
428
|
render() {
|
|
429
|
-
|
|
430
|
-
return (index.h(index.Host, { key: '475ff12d4be035e3effa894353e7948b42a23489', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, index.h("span", { key: '3375dfb5bb86ba373bc5d617f4a53171505631d1', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
429
|
+
return (index.h(index.Host, { key: '8e9f4aac519caacca9d7e7bc92a714e09ecc756f', class: { 'pds-tooltip--is-open': this.opened } }, index.h("span", { key: 'f4a706e2b5bb68ac171c25ae02ae23555860c165', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
431
430
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
432
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, index.h("slot", { key: '
|
|
431
|
+
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, index.h("slot", { key: '7548da298a2295f40fd1c6a9b4f1e597f687b80e' })), index.h("div", { key: 'e19be5edd901bc8a6f96ace445451a976b92e447', class: "pds-tooltip__content-slot-wrapper", hidden: true }, index.h("slot", { key: '0616e0468350750019afb736d79ac9f49ace4730', name: "content" }))));
|
|
433
432
|
}
|
|
434
433
|
get el() { return index.getElement(this); }
|
|
435
434
|
static get watchers() { return {
|
|
@@ -31,7 +31,7 @@ export class PdsAccordion {
|
|
|
31
31
|
this.detailsEl.addEventListener('toggle', this.handleToggle);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '245ae62c7427cfcad6eb6c3213c9b13aada4de79', class: "pds-accordion" }, h("details", Object.assign({ key: 'f69707beaacf2d10d75d604042fa8ed99b345db1' }, this.getOpenAttribute(), { ref: (el) => (this.detailsEl = el) }), h("summary", { key: '0329e0502b344834f2180c9ecd17136416dc8700', part: "accordion-button" }, h("slot", { key: '59085adef7239c0e697ae4a0d0104d7a9a95c8d6', name: "label" }, "Details"), h("pds-icon", { key: '7ea87ae13f047de27cf469c48bc3bad90f5a01e7', "aria-hidden": "true", icon: downSmall, part: "accordion-icon" })), h("div", { key: '1e4febc7cbe2da9ffdd2f6a11802cca22f5b2573', part: "accordion-body", class: "pds-accordion__body" }, h("slot", { key: 'fcee6efccbc7233a83b62a443172a42c0f800aea' })))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "pds-accordion"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,7 +62,7 @@ export class PdsAccordion {
|
|
|
62
62
|
"name": "defaultValue",
|
|
63
63
|
"text": "null"
|
|
64
64
|
}],
|
|
65
|
-
"text": "A unique identifier
|
|
65
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
66
66
|
},
|
|
67
67
|
"getter": false,
|
|
68
68
|
"setter": false,
|
|
@@ -74,7 +74,7 @@ export class PdsAlert {
|
|
|
74
74
|
};
|
|
75
75
|
// Get the icon name based on the current variant
|
|
76
76
|
const iconName = iconMap[this.variant] || iconMap.default;
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '1fc2d61c1740070616eb7819ff6a919241ce1f6e', class: "pds-alert", variant: this.variant }, h("pds-box", { key: 'd6ba30218ebbf89532a8a6c3d5db9b2e5321748a', class: `pds-alert__container pds-alert__container--${this.variant}`, "background-color": "var(--pds-alert-background)", "border-color": "var(--pds-alert-border-color)", "border-radius": "md", border: true, display: "block" }, h("pds-box", { key: 'c08f2c190c1d5a9bb95c7e6351dd615a3441a48d', gap: "sm", display: "flex", "align-items": this.small ? "center" : undefined }, severity && h("span", { key: '8ca461e81ac655fa0f9ee837a5f4d2380f9dc0a0', class: "visually-hidden" }, severity), !this.hideIcon && (h("pds-icon", { key: '79583456f1b9b0a167afe296fc09aaa1ceb64209', class: `pds-alert__icon ${this.small ? 'pds-alert__icon--small' : ''}`, color: "var(--pds-alert-color-icon)", icon: iconName, size: "var(--pds-alert-icon-size)", "aria-hidden": "true" })), h("pds-box", { key: 'f72b9ebea3fa5158d033c462b764f4135c3df240', class: "pds-alert__content-wrapper", direction: "column", gap: "xs", flex: "grow" }, this.heading && !this.small && (h("pds-text", { key: '6f023c4c98fbe50be53f531fa648690bb086946c', class: "pds-alert__heading", color: "var(--pds-alert-color-text)", size: "h5", tag: "h3", weight: "medium" }, this.heading)), this.renderContent()), this.dismissible && (h("button", { key: 'e366272888d222b184d8e56a74364abbb2b0799f', class: "pds-alert__dismiss", type: "button", part: "dismiss", "aria-label": this.dismissLabel, onClick: this.handleCloseClick }, h("pds-icon", { key: '10907ac14c1b24fbc73c2484e1e066c7e6c14ee2', icon: "remove", size: "var(--pds-alert-icon-size)", "aria-hidden": "true", color: "var(--pds-alert-color-dismiss)" })))))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "pds-alert"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -102,7 +102,7 @@ export class PdsAlert {
|
|
|
102
102
|
"optional": false,
|
|
103
103
|
"docs": {
|
|
104
104
|
"tags": [],
|
|
105
|
-
"text": "A unique identifier
|
|
105
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
106
106
|
},
|
|
107
107
|
"getter": false,
|
|
108
108
|
"setter": false,
|
|
@@ -152,7 +152,7 @@ export class PdsAvatar {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
|
-
return (h(Host, { key: '
|
|
155
|
+
return (h(Host, { key: '237598a069d4a3b1281b10b516c01c6d479ca3e9', class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
156
156
|
}
|
|
157
157
|
static get is() { return "pds-avatar"; }
|
|
158
158
|
static get encapsulation() { return "shadow"; }
|
|
@@ -248,7 +248,7 @@ export class PdsAvatar {
|
|
|
248
248
|
"optional": false,
|
|
249
249
|
"docs": {
|
|
250
250
|
"tags": [],
|
|
251
|
-
"text": "A unique identifier
|
|
251
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
252
252
|
},
|
|
253
253
|
"getter": false,
|
|
254
254
|
"setter": false,
|
|
@@ -261,7 +261,7 @@ export class PdsButton {
|
|
|
261
261
|
// Hide text when loading or iconOnly is true
|
|
262
262
|
const hideText = this.loading || this.iconOnly;
|
|
263
263
|
const content = (h("div", { class: "pds-button__content", part: "button-content" }, this.renderStartContent(), h("span", { class: `pds-button__text ${hideText ? 'pds-button__text--hidden' : ''}`, part: "button-text" }, h("slot", null)), this.loading && (h("span", { class: "pds-button__loader" }, h("pds-loader", { "is-loading": true, size: "var(--pine-font-size-body-2xl)", variant: "spinner", exportparts: "loader-svg" }, "Loading..."))), this.renderEndContent()));
|
|
264
|
-
return (h(Host,
|
|
264
|
+
return (h(Host, { "aria-disabled": this.disabled ? 'true' : null, onClick: this.handleClick, onFocusin: this.handleFocusIn, variant: this.variant }, h(ContentElement, Object.assign({}, attributes()), content)));
|
|
265
265
|
}
|
|
266
266
|
static get is() { return "pds-button"; }
|
|
267
267
|
static get encapsulation() { return "shadow"; }
|
|
@@ -290,7 +290,7 @@ export class PdsButton {
|
|
|
290
290
|
"optional": false,
|
|
291
291
|
"docs": {
|
|
292
292
|
"tags": [],
|
|
293
|
-
"text": "A unique identifier
|
|
293
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
294
294
|
},
|
|
295
295
|
"getter": false,
|
|
296
296
|
"setter": false,
|
|
@@ -239,7 +239,7 @@ export class PdsChip {
|
|
|
239
239
|
const hostClass = this.classNames();
|
|
240
240
|
const hostStyles = this.hostStyles;
|
|
241
241
|
this.hostKeeper.record(hostClass, hostStyles);
|
|
242
|
-
return (h(Host, { key: '
|
|
242
|
+
return (h(Host, { key: '7f9ee3000b4a68726730ee8019f5b866a2f53ae7', class: hostClass, style: hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
243
243
|
}
|
|
244
244
|
static get is() { return "pds-chip"; }
|
|
245
245
|
static get encapsulation() { return "shadow"; }
|
|
@@ -267,7 +267,7 @@ export class PdsChip {
|
|
|
267
267
|
"optional": false,
|
|
268
268
|
"docs": {
|
|
269
269
|
"tags": [],
|
|
270
|
-
"text": "A unique identifier
|
|
270
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
271
271
|
},
|
|
272
272
|
"getter": false,
|
|
273
273
|
"setter": false,
|
|
@@ -107,7 +107,7 @@ export class PdsCopytext {
|
|
|
107
107
|
render() {
|
|
108
108
|
const hostClass = this.classNames();
|
|
109
109
|
this.hostKeeper.record(hostClass);
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '088bbb25115146cf5ebce5ba98596ac987982ca1', class: hostClass }, h("pds-button", { key: 'c6ca05402e3957f129e95f8545ebfb0393baf648', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: '95b0114960772b8d41ac1c55140eed73844be54b', ref: (el) => this.valueSpanEl = el }, this.value), h("pds-icon", { key: '49a1a13daf1bd9d875f6bc518f7002dc33652863', "aria-hidden": "true", icon: copyIcon, size: "16px" }))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "pds-copytext"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -158,7 +158,7 @@ export class PdsCopytext {
|
|
|
158
158
|
"optional": false,
|
|
159
159
|
"docs": {
|
|
160
160
|
"tags": [],
|
|
161
|
-
"text": "A unique identifier
|
|
161
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
162
162
|
},
|
|
163
163
|
"getter": false,
|
|
164
164
|
"setter": false,
|
|
@@ -29,7 +29,7 @@ export class PdsDivider {
|
|
|
29
29
|
return classNames.join(' ');
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '27f21f0697085d75414da7e626b44f5c0ad5b0b3' }, this.hasLabel ? (h("div", { class: this.classNames(), role: "separator", "aria-label": this.label }, h("span", { class: "pds-divider__label", part: "label", "aria-hidden": "true" }, this.label))) : (h("hr", { class: this.classNames() }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "pds-divider"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class PdsDivider {
|
|
|
57
57
|
"optional": false,
|
|
58
58
|
"docs": {
|
|
59
59
|
"tags": [],
|
|
60
|
-
"text": "A unique identifier
|
|
60
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
61
61
|
},
|
|
62
62
|
"getter": false,
|
|
63
63
|
"setter": false,
|
|
@@ -132,7 +132,7 @@ export class PdsDropdownMenuItem {
|
|
|
132
132
|
return (_d = (_c = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('pds-link')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('a')) !== null && _d !== void 0 ? _d : null;
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
return (h(Host, { key: '
|
|
135
|
+
return (h(Host, { key: '974b6da459ec11c49a0105b1b2f26eb134440d18', class: {
|
|
136
136
|
'is-disabled': this.disabled,
|
|
137
137
|
'is-informational': this.informational,
|
|
138
138
|
'destructive': !this.disabled && !this.informational && this.destructive
|
|
@@ -167,7 +167,7 @@ export class PdsDropdownMenuItem {
|
|
|
167
167
|
"optional": false,
|
|
168
168
|
"docs": {
|
|
169
169
|
"tags": [],
|
|
170
|
-
"text": "A unique identifier
|
|
170
|
+
"text": "A unique identifier for this component instance. Does not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
171
171
|
},
|
|
172
172
|
"getter": false,
|
|
173
173
|
"setter": false,
|