@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
|
@@ -425,10 +425,9 @@ export class PdsTooltip {
|
|
|
425
425
|
this.lastCopiedHtml = null;
|
|
426
426
|
}
|
|
427
427
|
render() {
|
|
428
|
-
|
|
429
|
-
return (h(Host, { key: '475ff12d4be035e3effa894353e7948b42a23489', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, h("span", { key: '3375dfb5bb86ba373bc5d617f4a53171505631d1', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
428
|
+
return (h(Host, { key: '8e9f4aac519caacca9d7e7bc92a714e09ecc756f', class: { 'pds-tooltip--is-open': this.opened } }, h("span", { key: 'f4a706e2b5bb68ac171c25ae02ae23555860c165', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
430
429
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
431
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: '
|
|
430
|
+
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: '7548da298a2295f40fd1c6a9b4f1e597f687b80e' })), h("div", { key: 'e19be5edd901bc8a6f96ace445451a976b92e447', class: "pds-tooltip__content-slot-wrapper", hidden: true }, h("slot", { key: '0616e0468350750019afb736d79ac9f49ace4730', name: "content" }))));
|
|
432
431
|
}
|
|
433
432
|
static get is() { return "pds-tooltip"; }
|
|
434
433
|
static get originalStyleUrls() {
|
|
@@ -474,7 +473,7 @@ export class PdsTooltip {
|
|
|
474
473
|
"optional": false,
|
|
475
474
|
"docs": {
|
|
476
475
|
"tags": [],
|
|
477
|
-
"text": "A unique identifier used
|
|
476
|
+
"text": "A unique identifier for this component instance, used to build its portal element's `id`.\nDoes not set the host element's `id` attribute \u2014 set `id` directly if you need one."
|
|
478
477
|
},
|
|
479
478
|
"getter": false,
|
|
480
479
|
"setter": false,
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-11-
|
|
2
|
+
"timestamp": "2026-11-13T19:28:55",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.43.5",
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"mutable": false,
|
|
314
314
|
"attr": "component-id",
|
|
315
315
|
"reflectToAttr": false,
|
|
316
|
-
"docs": "A unique identifier
|
|
316
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
317
317
|
"docsTags": [
|
|
318
318
|
{
|
|
319
319
|
"name": "defaultValue",
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
"mutable": false,
|
|
448
448
|
"attr": "component-id",
|
|
449
449
|
"reflectToAttr": false,
|
|
450
|
-
"docs": "A unique identifier
|
|
450
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
451
451
|
"docsTags": [],
|
|
452
452
|
"values": [
|
|
453
453
|
{
|
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
"mutable": false,
|
|
847
847
|
"attr": "component-id",
|
|
848
848
|
"reflectToAttr": false,
|
|
849
|
-
"docs": "A unique identifier
|
|
849
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
850
850
|
"docsTags": [],
|
|
851
851
|
"values": [
|
|
852
852
|
{
|
|
@@ -12187,7 +12187,7 @@
|
|
|
12187
12187
|
"mutable": false,
|
|
12188
12188
|
"attr": "component-id",
|
|
12189
12189
|
"reflectToAttr": false,
|
|
12190
|
-
"docs": "A unique identifier
|
|
12190
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
12191
12191
|
"docsTags": [],
|
|
12192
12192
|
"values": [
|
|
12193
12193
|
{
|
|
@@ -13149,7 +13149,7 @@
|
|
|
13149
13149
|
"mutable": false,
|
|
13150
13150
|
"attr": "component-id",
|
|
13151
13151
|
"reflectToAttr": false,
|
|
13152
|
-
"docs": "A unique identifier
|
|
13152
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
13153
13153
|
"docsTags": [],
|
|
13154
13154
|
"values": [
|
|
13155
13155
|
{
|
|
@@ -15256,7 +15256,7 @@
|
|
|
15256
15256
|
"mutable": false,
|
|
15257
15257
|
"attr": "component-id",
|
|
15258
15258
|
"reflectToAttr": false,
|
|
15259
|
-
"docs": "A unique identifier
|
|
15259
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
15260
15260
|
"docsTags": [],
|
|
15261
15261
|
"values": [
|
|
15262
15262
|
{
|
|
@@ -16884,7 +16884,7 @@
|
|
|
16884
16884
|
"mutable": false,
|
|
16885
16885
|
"attr": "component-id",
|
|
16886
16886
|
"reflectToAttr": false,
|
|
16887
|
-
"docs": "A unique identifier
|
|
16887
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
16888
16888
|
"docsTags": [],
|
|
16889
16889
|
"values": [
|
|
16890
16890
|
{
|
|
@@ -17444,7 +17444,7 @@
|
|
|
17444
17444
|
"mutable": false,
|
|
17445
17445
|
"attr": "component-id",
|
|
17446
17446
|
"reflectToAttr": false,
|
|
17447
|
-
"docs": "A unique identifier
|
|
17447
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
17448
17448
|
"docsTags": [],
|
|
17449
17449
|
"values": [
|
|
17450
17450
|
{
|
|
@@ -17631,7 +17631,7 @@
|
|
|
17631
17631
|
"mutable": false,
|
|
17632
17632
|
"attr": "component-id",
|
|
17633
17633
|
"reflectToAttr": false,
|
|
17634
|
-
"docs": "A unique identifier
|
|
17634
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
17635
17635
|
"docsTags": [],
|
|
17636
17636
|
"values": [
|
|
17637
17637
|
{
|
|
@@ -17972,7 +17972,7 @@
|
|
|
17972
17972
|
"mutable": false,
|
|
17973
17973
|
"attr": "component-id",
|
|
17974
17974
|
"reflectToAttr": false,
|
|
17975
|
-
"docs": "A unique identifier
|
|
17975
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
17976
17976
|
"docsTags": [],
|
|
17977
17977
|
"values": [
|
|
17978
17978
|
{
|
|
@@ -18070,7 +18070,7 @@
|
|
|
18070
18070
|
"mutable": false,
|
|
18071
18071
|
"attr": "component-id",
|
|
18072
18072
|
"reflectToAttr": false,
|
|
18073
|
-
"docs": "A unique identifier used
|
|
18073
|
+
"docs": "A unique identifier for this component instance, used to build its internal popover's `id`.\nDoes not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
18074
18074
|
"docsTags": [],
|
|
18075
18075
|
"values": [
|
|
18076
18076
|
{
|
|
@@ -18386,7 +18386,7 @@
|
|
|
18386
18386
|
"mutable": false,
|
|
18387
18387
|
"attr": "component-id",
|
|
18388
18388
|
"reflectToAttr": false,
|
|
18389
|
-
"docs": "A unique identifier
|
|
18389
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
18390
18390
|
"docsTags": [],
|
|
18391
18391
|
"values": [
|
|
18392
18392
|
{
|
|
@@ -18464,7 +18464,7 @@
|
|
|
18464
18464
|
"mutable": false,
|
|
18465
18465
|
"attr": "component-id",
|
|
18466
18466
|
"reflectToAttr": false,
|
|
18467
|
-
"docs": "A unique identifier
|
|
18467
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
18468
18468
|
"docsTags": [],
|
|
18469
18469
|
"values": [
|
|
18470
18470
|
{
|
|
@@ -20769,8 +20769,8 @@
|
|
|
20769
20769
|
"filePath": "src/components/pds-multiselect/pds-multiselect.tsx",
|
|
20770
20770
|
"encapsulation": "shadow",
|
|
20771
20771
|
"tag": "pds-multiselect",
|
|
20772
|
-
"readme": "# pds-multiselect\n\nA multiselect component that allows users to select multiple options from a searchable dropdown list. By default the trigger shows how many
|
|
20773
|
-
"docs": "A multiselect component that allows users to select multiple options from a searchable dropdown list. By default the trigger shows how many
|
|
20772
|
+
"readme": "# pds-multiselect\n\nA multiselect component that allows users to select multiple options from a searchable dropdown list. By default the trigger shows the selected item's name when one is selected and how many are selected when there are more; set `selected-display=\"pill\"` to show them as removable pills instead.\n\n## Features\n\n- **Selected Display**: The selected item's name or a count in the trigger by default, or removable pills with `selected-display=\"pill\"`\n- **Typeahead Search**: Filter options as you type\n- **Checkbox Options**: Clear selection state with real checkboxes in the dropdown\n- **Async Support**: Fetch options from a URL endpoint or manage data externally\n- **Infinite Scroll**: Automatic pagination when scrolling to the bottom\n- **Keyboard Navigation**: Full keyboard support for accessibility\n- **Form Integration**: Works with native forms and FormData\n",
|
|
20773
|
+
"docs": "A multiselect component that allows users to select multiple options from a searchable dropdown list. By default the trigger shows the selected item's name when one is selected and how many are selected when there are more; set `selected-display=\"pill\"` to show them as removable pills instead.",
|
|
20774
20774
|
"docsTags": [
|
|
20775
20775
|
{
|
|
20776
20776
|
"name": "slot",
|
|
@@ -21923,7 +21923,7 @@
|
|
|
21923
21923
|
"mutable": false,
|
|
21924
21924
|
"attr": "selected-count-label-one",
|
|
21925
21925
|
"reflectToAttr": false,
|
|
21926
|
-
"docs": "Singular form of the selected-count trigger text. Pass a translated string to localize it; `{count}` is interpolated.",
|
|
21926
|
+
"docs": "Singular form of the selected-count trigger text. Pass a translated string to localize it; `{count}` is interpolated.\nA 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.",
|
|
21927
21927
|
"docsTags": [
|
|
21928
21928
|
{
|
|
21929
21929
|
"name": "defaultValue",
|
|
@@ -21988,7 +21988,7 @@
|
|
|
21988
21988
|
"mutable": false,
|
|
21989
21989
|
"attr": "selected-count-labels",
|
|
21990
21990
|
"reflectToAttr": false,
|
|
21991
|
-
"docs": "Full CLDR plural forms for the selected-count trigger text, for locales with more than the English `one`/`other` categories (e.g. Polish `few`/`many`, Arabic `zero`/`two`). Accepts an object property or a JSON string attribute keyed by CLDR category — `{ one, other, few, many, two, zero }`. Any form omitted here falls back to `selectedCountLabelOne`/`selectedCountLabelOther`. `{count}` is interpolated.",
|
|
21991
|
+
"docs": "Full CLDR plural forms for the selected-count trigger text, for locales with more than the English `one`/`other` categories (e.g. Polish `few`/`many`, Arabic `zero`/`two`). Accepts an object property or a JSON string attribute keyed by CLDR category — `{ one, other, few, many, two, zero }`. Any form omitted here falls back to `selectedCountLabelOne`/`selectedCountLabelOther`. `{count}` is interpolated. A single selection shows the item's name instead of any form, unless the item has no text.",
|
|
21992
21992
|
"docsTags": [
|
|
21993
21993
|
{
|
|
21994
21994
|
"name": "defaultValue",
|
|
@@ -22040,7 +22040,7 @@
|
|
|
22040
22040
|
"mutable": false,
|
|
22041
22041
|
"attr": "selected-display",
|
|
22042
22042
|
"reflectToAttr": false,
|
|
22043
|
-
"docs": "Display mode for selected items outside the dropdown panel.\n`'count'` shows
|
|
22043
|
+
"docs": "Display mode for selected items outside the dropdown panel.\n`'count'` shows the item's name in the trigger when one is selected and\n\"N items\" text otherwise (default). `'pill'` renders selected items as\ndismissible pds-chip tags.",
|
|
22044
22044
|
"docsTags": [
|
|
22045
22045
|
{
|
|
22046
22046
|
"name": "default",
|
|
@@ -22436,7 +22436,7 @@
|
|
|
22436
22436
|
"mutable": false,
|
|
22437
22437
|
"attr": "component-id",
|
|
22438
22438
|
"reflectToAttr": false,
|
|
22439
|
-
"docs": "A unique identifier used
|
|
22439
|
+
"docs": "A unique identifier for this component instance, used to build its portal element's `id`.\nDoes not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
22440
22440
|
"docsTags": [],
|
|
22441
22441
|
"values": [
|
|
22442
22442
|
{
|
|
@@ -23051,7 +23051,7 @@
|
|
|
23051
23051
|
"mutable": false,
|
|
23052
23052
|
"attr": "component-id",
|
|
23053
23053
|
"reflectToAttr": false,
|
|
23054
|
-
"docs": "A unique identifier
|
|
23054
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
23055
23055
|
"docsTags": [],
|
|
23056
23056
|
"values": [
|
|
23057
23057
|
{
|
|
@@ -23551,7 +23551,7 @@
|
|
|
23551
23551
|
"mutable": false,
|
|
23552
23552
|
"attr": "component-id",
|
|
23553
23553
|
"reflectToAttr": false,
|
|
23554
|
-
"docs": "A unique identifier used
|
|
23554
|
+
"docs": "A unique identifier for this component instance, used to build its helper and error message `id`s.\nDoes not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
23555
23555
|
"docsTags": [],
|
|
23556
23556
|
"values": [
|
|
23557
23557
|
{
|
|
@@ -24982,7 +24982,7 @@
|
|
|
24982
24982
|
"mutable": false,
|
|
24983
24983
|
"attr": "component-id",
|
|
24984
24984
|
"reflectToAttr": false,
|
|
24985
|
-
"docs": "A unique identifier
|
|
24985
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
24986
24986
|
"docsTags": [],
|
|
24987
24987
|
"values": [
|
|
24988
24988
|
{
|
|
@@ -25300,7 +25300,7 @@
|
|
|
25300
25300
|
"mutable": false,
|
|
25301
25301
|
"attr": "component-id",
|
|
25302
25302
|
"reflectToAttr": false,
|
|
25303
|
-
"docs": "A unique identifier
|
|
25303
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
25304
25304
|
"docsTags": [],
|
|
25305
25305
|
"values": [
|
|
25306
25306
|
{
|
|
@@ -25522,7 +25522,7 @@
|
|
|
25522
25522
|
"mutable": false,
|
|
25523
25523
|
"attr": "error-message",
|
|
25524
25524
|
"reflectToAttr": false,
|
|
25525
|
-
"docs": "Displays message
|
|
25525
|
+
"docs": "Displays an error message below the switch. It becomes the switch's accessible description only while `invalid` is set.",
|
|
25526
25526
|
"docsTags": [],
|
|
25527
25527
|
"values": [
|
|
25528
25528
|
{
|
|
@@ -25545,7 +25545,7 @@
|
|
|
25545
25545
|
"mutable": false,
|
|
25546
25546
|
"attr": "helper-message",
|
|
25547
25547
|
"reflectToAttr": false,
|
|
25548
|
-
"docs": "Displays
|
|
25548
|
+
"docs": "Displays a message or hint below the switch.",
|
|
25549
25549
|
"docsTags": [],
|
|
25550
25550
|
"values": [
|
|
25551
25551
|
{
|
|
@@ -25591,7 +25591,7 @@
|
|
|
25591
25591
|
"mutable": false,
|
|
25592
25592
|
"attr": "invalid",
|
|
25593
25593
|
"reflectToAttr": false,
|
|
25594
|
-
"docs": "Determines
|
|
25594
|
+
"docs": "Determines whether or not the switch is invalid.",
|
|
25595
25595
|
"docsTags": [
|
|
25596
25596
|
{
|
|
25597
25597
|
"name": "default",
|
|
@@ -25620,7 +25620,7 @@
|
|
|
25620
25620
|
"mutable": false,
|
|
25621
25621
|
"attr": "label",
|
|
25622
25622
|
"reflectToAttr": false,
|
|
25623
|
-
"docs": "
|
|
25623
|
+
"docs": "Text to be displayed as the switch label.",
|
|
25624
25624
|
"docsTags": [],
|
|
25625
25625
|
"values": [
|
|
25626
25626
|
{
|
|
@@ -25749,7 +25749,7 @@
|
|
|
25749
25749
|
},
|
|
25750
25750
|
"cancelable": true,
|
|
25751
25751
|
"composed": true,
|
|
25752
|
-
"docs": "
|
|
25752
|
+
"docs": "Emitted when the user toggles the switch, by a click or `Space`. `detail` is the native `change` event, so read\nthe new state from the switch's `checked`.\n\nThis event will not emit when programmatically setting the `checked` property.",
|
|
25753
25753
|
"docsTags": []
|
|
25754
25754
|
}
|
|
25755
25755
|
],
|
|
@@ -26062,7 +26062,7 @@
|
|
|
26062
26062
|
"mutable": false,
|
|
26063
26063
|
"attr": "component-id",
|
|
26064
26064
|
"reflectToAttr": false,
|
|
26065
|
-
"docs": "A unique identifier
|
|
26065
|
+
"docs": "A unique identifier for this component instance. Does not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
26066
26066
|
"docsTags": [],
|
|
26067
26067
|
"values": [
|
|
26068
26068
|
{
|
|
@@ -27137,7 +27137,7 @@
|
|
|
27137
27137
|
"mutable": false,
|
|
27138
27138
|
"attr": "component-id",
|
|
27139
27139
|
"reflectToAttr": false,
|
|
27140
|
-
"docs": "A unique identifier
|
|
27140
|
+
"docs": "A unique identifier for this component instance, passed down to its tabs and panels.\nDoes not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
27141
27141
|
"docsTags": [],
|
|
27142
27142
|
"values": [
|
|
27143
27143
|
{
|
|
@@ -28695,7 +28695,7 @@
|
|
|
28695
28695
|
"mutable": false,
|
|
28696
28696
|
"attr": "component-id",
|
|
28697
28697
|
"reflectToAttr": false,
|
|
28698
|
-
"docs": "A unique identifier used
|
|
28698
|
+
"docs": "A unique identifier for this component instance, used to build its portal element's `id`.\nDoes not set the host element's `id` attribute — set `id` directly if you need one.",
|
|
28699
28699
|
"docsTags": [],
|
|
28700
28700
|
"values": [
|
|
28701
28701
|
{
|
|
@@ -30,7 +30,7 @@ const PdsAccordion = class {
|
|
|
30
30
|
this.detailsEl.addEventListener('toggle', this.handleToggle);
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
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' })))));
|
|
34
34
|
}
|
|
35
35
|
static get watchers() { return {
|
|
36
36
|
"isOpen": [{
|
|
@@ -77,7 +77,7 @@ const PdsAlert = class {
|
|
|
77
77
|
};
|
|
78
78
|
// Get the icon name based on the current variant
|
|
79
79
|
const iconName = iconMap[this.variant] || iconMap.default;
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
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)" })))))));
|
|
81
81
|
}
|
|
82
82
|
get el() { return getElement(this); }
|
|
83
83
|
};
|
|
@@ -151,7 +151,7 @@ const PdsAvatar = class {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
render() {
|
|
154
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: '237598a069d4a3b1281b10b516c01c6d479ca3e9', class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
155
155
|
}
|
|
156
156
|
get el() { return getElement(this); }
|
|
157
157
|
static get watchers() { return {
|
|
@@ -256,7 +256,7 @@ const PdsButton = class {
|
|
|
256
256
|
// Hide text when loading or iconOnly is true
|
|
257
257
|
const hideText = this.loading || this.iconOnly;
|
|
258
258
|
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()));
|
|
259
|
-
return (h(Host,
|
|
259
|
+
return (h(Host, { "aria-disabled": this.disabled ? 'true' : null, onClick: this.handleClick, onFocusin: this.handleFocusIn, variant: this.variant }, h(ContentElement, Object.assign({}, attributes()), content)));
|
|
260
260
|
}
|
|
261
261
|
static get delegatesFocus() { return true; }
|
|
262
262
|
get el() { return getElement(this); }
|
|
@@ -243,7 +243,7 @@ const PdsChip = class {
|
|
|
243
243
|
const hostClass = this.classNames();
|
|
244
244
|
const hostStyles = this.hostStyles;
|
|
245
245
|
this.hostKeeper.record(hostClass, hostStyles);
|
|
246
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: '7f9ee3000b4a68726730ee8019f5b866a2f53ae7', class: hostClass, style: hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
247
247
|
}
|
|
248
248
|
get el() { return getElement(this); }
|
|
249
249
|
};
|
|
@@ -115,7 +115,7 @@ const PdsCopytext = class {
|
|
|
115
115
|
render() {
|
|
116
116
|
const hostClass = this.classNames();
|
|
117
117
|
this.hostKeeper.record(hostClass);
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
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: copy, size: "16px" }))));
|
|
119
119
|
}
|
|
120
120
|
get el() { return getElement(this); }
|
|
121
121
|
static get watchers() { return {
|
|
@@ -31,7 +31,7 @@ const PdsDivider = class {
|
|
|
31
31
|
return classNames.join(' ');
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
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() }))));
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
PdsDivider.style = pdsDividerCss();
|
|
@@ -133,7 +133,7 @@ const PdsDropdownMenuItem = class {
|
|
|
133
133
|
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;
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: '974b6da459ec11c49a0105b1b2f26eb134440d18', class: {
|
|
137
137
|
'is-disabled': this.disabled,
|
|
138
138
|
'is-informational': this.informational,
|
|
139
139
|
'destructive': !this.disabled && !this.informational && this.destructive
|
|
@@ -13,7 +13,7 @@ const PdsDropdownMenuSeparator = class {
|
|
|
13
13
|
this.disabled = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '247de1e84622fc816f541e95da022c7d07b3852c' }, h("hr", { key: 'd66e06eee972fa962003152a4ec7703d7c66d620' })));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
PdsDropdownMenuSeparator.style = pdsDropdownMenuSeparatorCss();
|
|
@@ -442,7 +442,7 @@ const PdsDropdownMenu = class {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
render() {
|
|
445
|
-
return (h(Host, { key: '
|
|
445
|
+
return (h(Host, { key: '3baa07d7761a581606704b5e79e68d7bc585ff36' }, h("slot", { key: '527afc60b7b6f7c869c62924fd00791de2538955', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), h("pds-box", { key: '2efeff541331bc0b39ed271984c680e14892ed0b', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", part: "menu-panel" }, h("div", { key: '591d61a9c12e10aef64638f1f51073321bddae69', class: { 'pds-dropdown-menu__header': true, 'is-hidden': !this.hasHeader } }, h("slot", { key: 'c3a7fd69e0074be99508ae6b6c14bbd78fbc1f03', name: "header", onSlotchange: this.handleHeaderSlotChange })), h("div", { key: '84c4f0cb77eadc86a5bb2b59c4b33f8691d2adfb', class: "pds-dropdown-menu__items", role: "menu", "aria-orientation": "vertical" }, h("slot", { key: '8c16bfd158a2be6009545562940c38ca433e1c47', onSlotchange: this.handleSlotChange })))));
|
|
446
446
|
}
|
|
447
447
|
get host() { return getElement(this); }
|
|
448
448
|
};
|
|
@@ -501,7 +501,7 @@ const PdsFilter = class {
|
|
|
501
501
|
return null;
|
|
502
502
|
}
|
|
503
503
|
render() {
|
|
504
|
-
return (h(Host, { key: '
|
|
504
|
+
return (h(Host, { key: 'ae727227de30a285588182dce73fa4867e66bb89' }, 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 }, h("span", { key: '05fb0de22068e9fcc79d8903a617513db0d71da1', class: "pds-filter__button-content", part: "button-content" }, this.renderIcon(), this.text && (h("span", { key: '4589b7fc0aed1ab3d7e6c06fea123553d2b77a3e', class: "pds-filter__button-text", part: "button-text" }, this.text)), this.renderDropdownIcon())), this.variant !== 'clear' && (h("div", { key: '4cbad5c76e8e28eb4a09d4a2c8a3d7c30024f114', ref: el => this.popoverEl = el, id: `${this.componentId}-popover`, class: "pds-filter__popover", popover: "auto", part: "popover" }, h("slot", { key: 'c915f596e9d9efe1a7b1bd2edcf9b704d986438d' })))));
|
|
505
505
|
}
|
|
506
506
|
get el() { return getElement(this); }
|
|
507
507
|
};
|
|
@@ -8,7 +8,7 @@ const PdsFilters = class {
|
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '4a5ed2d7e80d82be9517682ee66e464fa61ea45b' }, h("div", { key: '7cabd4f934c17b14268c28f9ce99e8900795c516', class: "pds-filters" }, h("slot", { key: 'a1d01f1be8885c3cf68f98df59d67f56709f00e8' }))));
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
PdsFilters.style = pdsFiltersCss();
|
|
@@ -153,10 +153,10 @@ const PdsImage = class {
|
|
|
153
153
|
const ratioStyle = hasRatio
|
|
154
154
|
? { aspectRatio: this.imageRatio(), objectFit: this.fit }
|
|
155
155
|
: undefined;
|
|
156
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: 'f01ae0cef8a08b686a62affe14e58661115f1e2e', class: {
|
|
157
157
|
'pds-image': true,
|
|
158
158
|
'pds-image--has-ratio': hasRatio,
|
|
159
|
-
}
|
|
159
|
+
} }, 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) })));
|
|
160
160
|
}
|
|
161
161
|
static get watchers() { return {
|
|
162
162
|
"src": [{
|
|
@@ -8,7 +8,7 @@ import { b as bindTruncationTooltips } from './truncation-tooltip-CkIWm6Z-.js';
|
|
|
8
8
|
import './keep-hydrated-BgNaWLoS.js';
|
|
9
9
|
import './portal-target-CKRzRKdO.js';
|
|
10
10
|
|
|
11
|
-
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}`;
|
|
11
|
+
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}`;
|
|
12
12
|
|
|
13
13
|
// Names only: pds-icon's `icon` prop also fetches URLs and data: SVGs, unsanitized.
|
|
14
14
|
const PINE_ICON_NAME = /^[a-z0-9-]+$/i;
|
|
@@ -90,6 +90,7 @@ const PdsMultiselect = class {
|
|
|
90
90
|
this.pillRemoveLabel = 'Remove';
|
|
91
91
|
/**
|
|
92
92
|
* Singular form of the selected-count trigger text. Pass a translated string to localize it; `{count}` is interpolated.
|
|
93
|
+
* 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.
|
|
93
94
|
* @defaultValue '{count} item'
|
|
94
95
|
*/
|
|
95
96
|
this.selectedCountLabelOne = '{count} item';
|
|
@@ -145,8 +146,9 @@ const PdsMultiselect = class {
|
|
|
145
146
|
this.hideSelectedItems = false;
|
|
146
147
|
/**
|
|
147
148
|
* Display mode for selected items outside the dropdown panel.
|
|
148
|
-
* `'count'` shows
|
|
149
|
-
*
|
|
149
|
+
* `'count'` shows the item's name in the trigger when one is selected and
|
|
150
|
+
* "N items" text otherwise (default). `'pill'` renders selected items as
|
|
151
|
+
* dismissible pds-chip tags.
|
|
150
152
|
* @default 'count'
|
|
151
153
|
*/
|
|
152
154
|
this.selectedDisplay = 'count';
|
|
@@ -1279,6 +1281,7 @@ const PdsMultiselect = class {
|
|
|
1279
1281
|
return (h("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--below", "aria-label": this.selectedItemsLabel }, this.selectedItems.map(item => (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)))));
|
|
1280
1282
|
}
|
|
1281
1283
|
getTriggerText() {
|
|
1284
|
+
var _a;
|
|
1282
1285
|
const count = this.selectedItems.length;
|
|
1283
1286
|
if (count === 0 || (this.selectedDisplay === 'pill' && this.pillPosition === 'below')) {
|
|
1284
1287
|
// Fall back to a non-empty string: the trigger's accessible name comes from
|
|
@@ -1286,8 +1289,24 @@ const PdsMultiselect = class {
|
|
|
1286
1289
|
// (WCAG 4.1.2). The prop is localizable; this last-resort default is not.
|
|
1287
1290
|
return this.placeholder || 'Select...';
|
|
1288
1291
|
}
|
|
1292
|
+
// One selection shows its name; the count only says something once there's more than one.
|
|
1293
|
+
// An option without text still falls back to the count, so the trigger is never nameless.
|
|
1294
|
+
if (count === 1 && ((_a = this.selectedItems[0].text) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
1295
|
+
return this.selectedItems[0].text;
|
|
1296
|
+
}
|
|
1289
1297
|
return pluralize(this.el, count, this.resolveCountForms());
|
|
1290
1298
|
}
|
|
1299
|
+
/**
|
|
1300
|
+
* The text that sets the trigger's width. A single selection's name could be any length, so the
|
|
1301
|
+
* trigger keeps the width the count would give it and the name truncates inside that, rather than
|
|
1302
|
+
* widening a multiselect that has no width of its own.
|
|
1303
|
+
*/
|
|
1304
|
+
getTriggerSizerText() {
|
|
1305
|
+
const text = this.getTriggerText();
|
|
1306
|
+
const count = this.selectedItems.length;
|
|
1307
|
+
const showsName = count === 1 && text === this.selectedItems[0].text && !(this.selectedDisplay === 'pill' && this.pillPosition === 'below');
|
|
1308
|
+
return showsName ? pluralize(this.el, count, this.resolveCountForms()) : text;
|
|
1309
|
+
}
|
|
1291
1310
|
/**
|
|
1292
1311
|
* The `one`/`other` props are the ergonomic English defaults; `selectedCountLabels`
|
|
1293
1312
|
* (object or JSON-string attribute) layers full CLDR forms on top for locales
|
|
@@ -1314,10 +1333,10 @@ const PdsMultiselect = class {
|
|
|
1314
1333
|
}
|
|
1315
1334
|
render() {
|
|
1316
1335
|
const hasSelections = this.selectedItems.length > 0;
|
|
1317
|
-
return (h(Host, { key: '
|
|
1336
|
+
return (h(Host, { key: '12298f9692ac8644230195cc1abe0e26bb5715a9', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '5d98f9edae2f471d9662c65454fbef7b2dec83e1', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (h("label", { key: '2f6d4162d0649978bc53c34327b6149dc971fd4c', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
|
|
1318
1337
|
'pds-multiselect__label': true,
|
|
1319
1338
|
'visually-hidden': this.hideLabel,
|
|
1320
|
-
} }, this.label)), h("div", { key: '
|
|
1339
|
+
} }, this.label)), h("div", { key: '7a337e876c8fff854e5b9a067ef89b9d5136df4f', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), style: { width: this.triggerWidth } }, this.slottedTriggerEl ? (h("slot", { name: "trigger" })) : this.selectedDisplay === 'pill' && this.pillPosition === 'inline' ? (h("div", { ref: el => (this.pillInlineTriggerEl = el || undefined), part: "trigger", class: {
|
|
1321
1340
|
'pds-multiselect__trigger': true,
|
|
1322
1341
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
1323
1342
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
@@ -1330,10 +1349,10 @@ const PdsMultiselect = class {
|
|
|
1330
1349
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
1331
1350
|
'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
|
|
1332
1351
|
'pds-multiselect__trigger--has-value': hasSelections,
|
|
1333
|
-
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": 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 }, h("span", { class: {
|
|
1352
|
+
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": 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 }, h("span", { class: "pds-multiselect__trigger-label" }, h("span", { class: "pds-multiselect__trigger-sizer", "aria-hidden": "true" }, this.getTriggerSizerText()), h("span", { class: {
|
|
1334
1353
|
'pds-multiselect__trigger-text': true,
|
|
1335
1354
|
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
1336
|
-
} }, this.getTriggerText()), h("pds-icon", { "aria-hidden": "true", class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), h("span", { key: '
|
|
1355
|
+
} }, this.getTriggerText())), h("pds-icon", { "aria-hidden": "true", class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), h("span", { key: 'd3cf5bb64a6c296c84af30628698559c0c904117', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (h("p", { key: 'a711280151ff360758143906a76fa2d25f4078a9', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (h("p", { key: '17411d6bb55843f45f8d7ee410b627de846eed65', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '446ffc0ed08b7856f0ef8c49bdf06b6011404a12', "aria-hidden": "true", icon: danger, size: "small" }), this.errorMessage)), h("div", { key: 'a83ed6c5d84cbf38f267f7e15bd871d09534c554', style: { display: 'none' } }, h("slot", { key: '294ce6a2bd4405854161aed5d8166fcc86e211e3' })))));
|
|
1337
1356
|
}
|
|
1338
1357
|
static get formAssociated() { return true; }
|
|
1339
1358
|
get el() { return getElement(this); }
|