@pine-ds/core 4.6.0 → 4.7.1
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-box2.js +1 -1
- package/components/pds-checkbox2.js +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-combobox.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-drawer.js +1 -1
- package/components/pds-dropdown-menu-item.js +1 -1
- package/components/pds-dropdown-menu.js +1 -1
- package/components/pds-modal2.js +1 -1
- package/components/pds-multiselect.js +1 -1
- package/components/pds-popover.js +1 -1
- package/components/pds-radio.js +1 -1
- package/components/pds-row.js +1 -1
- package/components/pds-switch.js +1 -1
- package/components/pds-table-cell2.js +1 -1
- package/components/pds-text2.js +1 -1
- package/components/truncation-tooltip.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +96 -96
- package/dist/cjs/pds-checkbox.cjs.entry.js +16 -4
- package/dist/cjs/pds-chip.cjs.entry.js +34 -9
- package/dist/cjs/pds-combobox.cjs.entry.js +47 -4
- package/dist/cjs/pds-copytext.cjs.entry.js +7 -2
- package/dist/cjs/pds-drawer.cjs.entry.js +23 -10
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +9 -5
- package/dist/cjs/pds-modal.cjs.entry.js +175 -49
- package/dist/cjs/pds-multiselect.cjs.entry.js +40 -9
- package/dist/cjs/pds-popover.cjs.entry.js +170 -26
- package/dist/cjs/pds-radio.cjs.entry.js +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +7 -7
- package/dist/cjs/pds-switch.cjs.entry.js +15 -3
- package/dist/cjs/pds-table-cell.cjs.entry.js +24 -4
- package/dist/cjs/pds-text.cjs.entry.js +17 -9
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/cjs/{truncation-tooltip-CYgQfBLt.js → truncation-tooltip-DO9xli2e.js} +7 -7
- package/dist/collection/components/pds-box/pds-box.js +96 -96
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +4 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +15 -3
- package/dist/collection/components/pds-chip/pds-chip.js +33 -8
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +17 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +48 -5
- package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +6 -1
- package/dist/collection/components/pds-drawer/pds-drawer.css +4 -1
- package/dist/collection/components/pds-drawer/pds-drawer.js +54 -17
- package/dist/collection/components/pds-drawer/stories/pds-drawer.stories.js +6 -1
- 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.js +15 -5
- package/dist/collection/components/pds-modal/pds-modal.js +180 -50
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +4 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +42 -11
- package/dist/collection/components/pds-popover/pds-popover.js +171 -27
- package/dist/collection/components/pds-radio/pds-radio.css +6 -0
- package/dist/collection/components/pds-row/pds-row.js +7 -7
- package/dist/collection/components/pds-switch/pds-switch.js +15 -3
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +23 -3
- package/dist/collection/components/pds-text/pds-text.js +16 -8
- package/dist/collection/utils/truncation-tooltip.js +7 -7
- package/dist/docs.json +48 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pds-box.entry.js +96 -96
- package/dist/esm/pds-checkbox.entry.js +16 -4
- package/dist/esm/pds-chip.entry.js +34 -9
- package/dist/esm/pds-combobox.entry.js +47 -4
- package/dist/esm/pds-copytext.entry.js +7 -2
- package/dist/esm/pds-drawer.entry.js +23 -10
- package/dist/esm/pds-dropdown-menu-item.entry.js +2 -2
- package/dist/esm/pds-dropdown-menu.entry.js +9 -5
- package/dist/esm/pds-modal.entry.js +175 -49
- package/dist/esm/pds-multiselect.entry.js +40 -9
- package/dist/esm/pds-popover.entry.js +171 -27
- package/dist/esm/pds-radio.entry.js +1 -1
- package/dist/esm/pds-row.entry.js +7 -7
- package/dist/esm/pds-switch.entry.js +15 -3
- package/dist/esm/pds-table-cell.entry.js +24 -4
- package/dist/esm/pds-text.entry.js +17 -9
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm/{truncation-tooltip-_902ENWC.js → truncation-tooltip-DRXsdKk1.js} +7 -7
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-drawer.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-modal.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-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/truncation-tooltip-DRXsdKk1.js +1 -0
- package/dist/pine-core/{p-9af131d6.system.entry.js → p-11d98408.system.entry.js} +1 -1
- package/dist/pine-core/p-153ba77b.entry.js +1 -0
- package/dist/pine-core/p-355e4cf9.entry.js +1 -0
- package/dist/pine-core/p-4435fff6.system.entry.js +1 -0
- package/dist/pine-core/p-576cf904.system.entry.js +1 -0
- package/dist/pine-core/{p-4f94b4f1.system.entry.js → p-645a482b.system.entry.js} +1 -1
- package/dist/pine-core/{p-4fa63723.system.entry.js → p-6d603d16.system.entry.js} +1 -1
- package/dist/pine-core/p-74a05bcc.entry.js +1 -0
- package/dist/pine-core/p-7fa66cad.entry.js +1 -0
- package/dist/pine-core/p-80a698ae.entry.js +1 -0
- package/dist/pine-core/{p-bf7ee3b7.system.entry.js → p-80e6f3a0.system.entry.js} +1 -1
- package/dist/pine-core/p-88ff1604.entry.js +1 -0
- package/dist/pine-core/p-92ae6082.entry.js +1 -0
- package/dist/pine-core/{p-6eec23a7.system.entry.js → p-97d0b89e.system.entry.js} +1 -1
- package/dist/pine-core/p-993d1043.entry.js +1 -0
- package/dist/pine-core/p-CuSNnuFu.system.js +1 -1
- package/dist/pine-core/p-JtdHT_W5.js +1 -0
- package/dist/pine-core/p-a787b34a.system.entry.js +1 -0
- package/dist/pine-core/p-a939b471.entry.js +1 -0
- package/dist/pine-core/p-aa032a5e.system.entry.js +1 -0
- package/dist/pine-core/{p-646afbca.system.entry.js → p-b60ac7eb.system.entry.js} +1 -1
- package/dist/pine-core/p-bb73ad66.entry.js +2 -0
- package/dist/pine-core/p-bd26a5e8.entry.js +1 -0
- package/dist/pine-core/p-bf5887e8.system.entry.js +1 -0
- package/dist/pine-core/p-c36b490e.entry.js +1 -0
- package/dist/pine-core/p-c81d8ac8.entry.js +1 -0
- package/dist/pine-core/p-ca0a8f5c.entry.js +1 -0
- package/dist/pine-core/p-ca0d48e8.entry.js +1 -0
- package/dist/pine-core/p-cfc52b95.system.entry.js +1 -0
- package/dist/pine-core/{p-ba1f65c2.system.entry.js → p-d8570b4b.system.entry.js} +1 -1
- package/dist/pine-core/{p-9e0f920a.system.entry.js → p-e7a95a49.system.entry.js} +1 -1
- package/dist/pine-core/p-e803f629.system.entry.js +1 -0
- package/dist/pine-core/{p-df539c42.system.entry.js → p-e836f3ec.system.entry.js} +2 -2
- package/dist/pine-core/{p-b8e8a4ce.entry.js → p-f474d7de.entry.js} +1 -1
- package/dist/pine-core/{p-CBu9UrXr.system.js → p-qhdoK1Jp.system.js} +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +4 -0
- package/dist/types/components/pds-combobox/pds-combobox.d.ts +7 -1
- package/dist/types/components/pds-drawer/pds-drawer.d.ts +21 -9
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +1 -0
- package/dist/types/components/pds-modal/pds-modal.d.ts +16 -3
- package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +10 -3
- package/dist/types/components/pds-popover/pds-popover.d.ts +31 -1
- package/dist/types/components/pds-switch/pds-switch.d.ts +4 -0
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +3 -0
- package/dist/types/components/pds-text/pds-text.d.ts +1 -0
- package/dist/types/components.d.ts +47 -32
- package/dist/types/utils/truncation-tooltip.d.ts +15 -2
- package/dist/vscode.html-data.json +11 -4
- package/hydrate/index.js +698 -253
- package/hydrate/index.mjs +698 -253
- package/package.json +2 -2
- package/dist/esm-es5/truncation-tooltip-_902ENWC.js +0 -1
- package/dist/pine-core/p-01c9b8f3.entry.js +0 -1
- package/dist/pine-core/p-258d5e83.entry.js +0 -1
- package/dist/pine-core/p-3c27088f.system.entry.js +0 -1
- package/dist/pine-core/p-4849fda7.entry.js +0 -1
- package/dist/pine-core/p-4de8f333.entry.js +0 -1
- package/dist/pine-core/p-550c2fd3.entry.js +0 -1
- package/dist/pine-core/p-6bf853c9.entry.js +0 -1
- package/dist/pine-core/p-6d3610f9.entry.js +0 -1
- package/dist/pine-core/p-73eb47fa.entry.js +0 -1
- package/dist/pine-core/p-7f367db4.system.entry.js +0 -1
- package/dist/pine-core/p-84e9b7da.entry.js +0 -1
- package/dist/pine-core/p-9a0083dd.system.entry.js +0 -1
- package/dist/pine-core/p-CnM3cCof.js +0 -1
- package/dist/pine-core/p-a3735199.entry.js +0 -1
- package/dist/pine-core/p-a85a6ab9.system.entry.js +0 -1
- package/dist/pine-core/p-cf08a6dd.system.entry.js +0 -1
- package/dist/pine-core/p-da103a54.system.entry.js +0 -1
- package/dist/pine-core/p-e800a2b1.entry.js +0 -1
- package/dist/pine-core/p-eb5465ce.entry.js +0 -1
- package/dist/pine-core/p-ec5428fb.entry.js +0 -1
- package/dist/pine-core/p-ed4b979e.entry.js +0 -1
- package/dist/pine-core/p-f1f17940.entry.js +0 -2
- package/dist/pine-core/p-f25e4731.system.entry.js +0 -1
|
@@ -24,18 +24,18 @@ const PdsBox = class {
|
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
26
|
const boxClasses = `
|
|
27
|
-
${this.alignItems
|
|
28
|
-
${this.alignItemsXs
|
|
29
|
-
${this.alignItemsSm
|
|
30
|
-
${this.alignItemsMd
|
|
31
|
-
${this.alignItemsLg
|
|
32
|
-
${this.alignItemsXl
|
|
33
|
-
${this.alignSelf
|
|
34
|
-
${this.alignSelfXs
|
|
35
|
-
${this.alignSelfSm
|
|
36
|
-
${this.alignSelfMd
|
|
37
|
-
${this.alignSelfLg
|
|
38
|
-
${this.alignSelfXl
|
|
27
|
+
${this.alignItems != null && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}
|
|
28
|
+
${this.alignItemsXs != null && this.alignItemsXs.trim() !== '' ? `pds-align-items-xs-${this.alignItemsXs}` : ''}
|
|
29
|
+
${this.alignItemsSm != null && this.alignItemsSm.trim() !== '' ? `pds-align-items-sm-${this.alignItemsSm}` : ''}
|
|
30
|
+
${this.alignItemsMd != null && this.alignItemsMd.trim() !== '' ? `pds-align-items-md-${this.alignItemsMd}` : ''}
|
|
31
|
+
${this.alignItemsLg != null && this.alignItemsLg.trim() !== '' ? `pds-align-items-lg-${this.alignItemsLg}` : ''}
|
|
32
|
+
${this.alignItemsXl != null && this.alignItemsXl.trim() !== '' ? `pds-align-items-xl-${this.alignItemsXl}` : ''}
|
|
33
|
+
${this.alignSelf != null && this.alignSelf.trim() !== '' ? `pds-align-self-${this.alignSelf}` : ''}
|
|
34
|
+
${this.alignSelfXs != null && this.alignSelfXs.trim() !== '' ? `pds-align-self-xs-${this.alignSelfXs}` : ''}
|
|
35
|
+
${this.alignSelfSm != null && this.alignSelfSm.trim() !== '' ? `pds-align-self-sm-${this.alignSelfSm}` : ''}
|
|
36
|
+
${this.alignSelfMd != null && this.alignSelfMd.trim() !== '' ? `pds-align-self-md-${this.alignSelfMd}` : ''}
|
|
37
|
+
${this.alignSelfLg != null && this.alignSelfLg.trim() !== '' ? `pds-align-self-lg-${this.alignSelfLg}` : ''}
|
|
38
|
+
${this.alignSelfXl != null && this.alignSelfXl.trim() !== '' ? `pds-align-self-xl-${this.alignSelfXl}` : ''}
|
|
39
39
|
${this.auto ? 'pds-box--auto' : ''}
|
|
40
40
|
${this.autoXs ? 'pds-box--auto-xs' : ''}
|
|
41
41
|
${this.autoSm ? 'pds-box--auto-sm' : ''}
|
|
@@ -51,101 +51,101 @@ const PdsBox = class {
|
|
|
51
51
|
${this.borderInlineStart === false ? 'pds-box--border-inline-start-none' : ''}
|
|
52
52
|
${this.borderInlineEnd === true ? 'pds-box--border-inline-end' : ''}
|
|
53
53
|
${this.borderInlineEnd === false ? 'pds-box--border-inline-end-none' : ''}
|
|
54
|
-
${this.borderRadius
|
|
55
|
-
${this.direction
|
|
56
|
-
${this.display
|
|
54
|
+
${this.borderRadius != null && this.borderRadius.trim() !== '' ? `pds-border-radius-${this.borderRadius}` : ''}
|
|
55
|
+
${this.direction != null && this.direction.trim() !== '' ? `pds-box-direction-${this.direction}` : ''}
|
|
56
|
+
${this.display != null && this.display.trim() !== '' ? `pds-box--display-${this.display}` : ''}
|
|
57
57
|
${this.fit ? 'pds-box--fit' : ''}
|
|
58
58
|
${this.fitXs ? 'pds-box--fit-xs' : ''}
|
|
59
59
|
${this.fitSm ? 'pds-box--fit-sm' : ''}
|
|
60
60
|
${this.fitMd ? 'pds-box--fit-md' : ''}
|
|
61
61
|
${this.fitLg ? 'pds-box--fit-lg' : ''}
|
|
62
62
|
${this.fitXl ? 'pds-box--fit-xl' : ''}
|
|
63
|
-
${this.gap
|
|
64
|
-
${this.gapXs
|
|
65
|
-
${this.gapSm
|
|
66
|
-
${this.gapMd
|
|
67
|
-
${this.gapLg
|
|
68
|
-
${this.gapXl
|
|
63
|
+
${this.gap != null && this.gap.trim() !== '' ? `pds-box-gap-${this.gap}` : ''}
|
|
64
|
+
${this.gapXs != null && this.gapXs.trim() !== '' ? `pds-box-gap-xs-${this.gapXs}` : ''}
|
|
65
|
+
${this.gapSm != null && this.gapSm.trim() !== '' ? `pds-box-gap-sm-${this.gapSm}` : ''}
|
|
66
|
+
${this.gapMd != null && this.gapMd.trim() !== '' ? `pds-box-gap-md-${this.gapMd}` : ''}
|
|
67
|
+
${this.gapLg != null && this.gapLg.trim() !== '' ? `pds-box-gap-lg-${this.gapLg}` : ''}
|
|
68
|
+
${this.gapXl != null && this.gapXl.trim() !== '' ? `pds-box-gap-xl-${this.gapXl}` : ''}
|
|
69
69
|
${this.wrap ? 'pds-box--wrap' : ''}
|
|
70
70
|
${this.wrapXs ? 'pds-box--wrap-xs' : ''}
|
|
71
71
|
${this.wrapSm ? 'pds-box--wrap-sm' : ''}
|
|
72
72
|
${this.wrapMd ? 'pds-box--wrap-md' : ''}
|
|
73
73
|
${this.wrapLg ? 'pds-box--wrap-lg' : ''}
|
|
74
74
|
${this.wrapXl ? 'pds-box--wrap-xl' : ''}
|
|
75
|
-
${this.flex
|
|
76
|
-
${this.justifyContent
|
|
77
|
-
${this.justifyContentXs
|
|
78
|
-
${this.justifyContentSm
|
|
79
|
-
${this.justifyContentMd
|
|
80
|
-
${this.justifyContentLg
|
|
81
|
-
${this.justifyContentXl
|
|
82
|
-
${this.marginBlockStart
|
|
83
|
-
${this.marginBlockStartXs
|
|
84
|
-
${this.marginBlockStartSm
|
|
85
|
-
${this.marginBlockStartMd
|
|
86
|
-
${this.marginBlockStartLg
|
|
87
|
-
${this.marginBlockStartXl
|
|
88
|
-
${this.marginInlineStart
|
|
89
|
-
${this.marginInlineStartXs
|
|
90
|
-
${this.marginInlineStartSm
|
|
91
|
-
${this.marginInlineStartMd
|
|
92
|
-
${this.marginInlineStartLg
|
|
93
|
-
${this.marginInlineStartXl
|
|
94
|
-
${this.marginInlineEnd
|
|
95
|
-
${this.marginInlineEndXs
|
|
96
|
-
${this.marginInlineEndSm
|
|
97
|
-
${this.marginInlineEndMd
|
|
98
|
-
${this.marginInlineEndLg
|
|
99
|
-
${this.marginInlineEndXl
|
|
100
|
-
${this.marginBlockEnd
|
|
101
|
-
${this.marginBlockEndXs
|
|
102
|
-
${this.marginBlockEndSm
|
|
103
|
-
${this.marginBlockEndMd
|
|
104
|
-
${this.marginBlockEndLg
|
|
105
|
-
${this.marginBlockEndXl
|
|
106
|
-
${this.offset
|
|
107
|
-
${this.offsetXs
|
|
108
|
-
${this.offsetSm
|
|
109
|
-
${this.offsetMd
|
|
110
|
-
${this.offsetLg
|
|
111
|
-
${this.offsetXl
|
|
112
|
-
${this.padding
|
|
113
|
-
${this.paddingXs
|
|
114
|
-
${this.paddingSm
|
|
115
|
-
${this.paddingMd
|
|
116
|
-
${this.paddingLg
|
|
117
|
-
${this.paddingXl
|
|
118
|
-
${this.paddingBlockStart
|
|
119
|
-
${this.paddingBlockStartXs
|
|
120
|
-
${this.paddingBlockStartSm
|
|
121
|
-
${this.paddingBlockStartMd
|
|
122
|
-
${this.paddingBlockStartLg
|
|
123
|
-
${this.paddingBlockStartXl
|
|
124
|
-
${this.paddingBlockEnd
|
|
125
|
-
${this.paddingBlockEndXs
|
|
126
|
-
${this.paddingBlockEndSm
|
|
127
|
-
${this.paddingBlockEndMd
|
|
128
|
-
${this.paddingBlockEndLg
|
|
129
|
-
${this.paddingBlockEndXl
|
|
130
|
-
${this.paddingInlineStart
|
|
131
|
-
${this.paddingInlineStartXs
|
|
132
|
-
${this.paddingInlineStartSm
|
|
133
|
-
${this.paddingInlineStartMd
|
|
134
|
-
${this.paddingInlineStartLg
|
|
135
|
-
${this.paddingInlineStartXl
|
|
136
|
-
${this.paddingInlineEnd
|
|
137
|
-
${this.paddingInlineEndXs
|
|
138
|
-
${this.paddingInlineEndSm
|
|
139
|
-
${this.paddingInlineEndMd
|
|
140
|
-
${this.paddingInlineEndLg
|
|
141
|
-
${this.paddingInlineEndXl
|
|
142
|
-
${this.shadow
|
|
143
|
-
${this.size
|
|
144
|
-
${this.sizeXs
|
|
145
|
-
${this.sizeSm
|
|
146
|
-
${this.sizeMd
|
|
147
|
-
${this.sizeLg
|
|
148
|
-
${this.sizeXl
|
|
75
|
+
${this.flex != null && this.flex.trim() !== '' && ['none', 'grow', 'shrink'].includes(this.flex) ? `pds-box--flex-${this.flex}` : ''}
|
|
76
|
+
${this.justifyContent != null && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}
|
|
77
|
+
${this.justifyContentXs != null && this.justifyContentXs.trim() !== '' ? `pds-justify-content-xs-${this.justifyContentXs}` : ''}
|
|
78
|
+
${this.justifyContentSm != null && this.justifyContentSm.trim() !== '' ? `pds-justify-content-sm-${this.justifyContentSm}` : ''}
|
|
79
|
+
${this.justifyContentMd != null && this.justifyContentMd.trim() !== '' ? `pds-justify-content-md-${this.justifyContentMd}` : ''}
|
|
80
|
+
${this.justifyContentLg != null && this.justifyContentLg.trim() !== '' ? `pds-justify-content-lg-${this.justifyContentLg}` : ''}
|
|
81
|
+
${this.justifyContentXl != null && this.justifyContentXl.trim() !== '' ? `pds-justify-content-xl-${this.justifyContentXl}` : ''}
|
|
82
|
+
${this.marginBlockStart != null && this.marginBlockStart.trim() !== '' ? `pds-margin-block-start-${this.marginBlockStart}` : ''}
|
|
83
|
+
${this.marginBlockStartXs != null && this.marginBlockStartXs.trim() !== '' ? `pds-margin-block-start-xs-${this.marginBlockStartXs}` : ''}
|
|
84
|
+
${this.marginBlockStartSm != null && this.marginBlockStartSm.trim() !== '' ? `pds-margin-block-start-sm-${this.marginBlockStartSm}` : ''}
|
|
85
|
+
${this.marginBlockStartMd != null && this.marginBlockStartMd.trim() !== '' ? `pds-margin-block-start-md-${this.marginBlockStartMd}` : ''}
|
|
86
|
+
${this.marginBlockStartLg != null && this.marginBlockStartLg.trim() !== '' ? `pds-margin-block-start-lg-${this.marginBlockStartLg}` : ''}
|
|
87
|
+
${this.marginBlockStartXl != null && this.marginBlockStartXl.trim() !== '' ? `pds-margin-block-start-xl-${this.marginBlockStartXl}` : ''}
|
|
88
|
+
${this.marginInlineStart != null && this.marginInlineStart.trim() !== '' ? `pds-margin-inline-start-${this.marginInlineStart}` : ''}
|
|
89
|
+
${this.marginInlineStartXs != null && this.marginInlineStartXs.trim() !== '' ? `pds-margin-inline-start-xs-${this.marginInlineStartXs}` : ''}
|
|
90
|
+
${this.marginInlineStartSm != null && this.marginInlineStartSm.trim() !== '' ? `pds-margin-inline-start-sm-${this.marginInlineStartSm}` : ''}
|
|
91
|
+
${this.marginInlineStartMd != null && this.marginInlineStartMd.trim() !== '' ? `pds-margin-inline-start-md-${this.marginInlineStartMd}` : ''}
|
|
92
|
+
${this.marginInlineStartLg != null && this.marginInlineStartLg.trim() !== '' ? `pds-margin-inline-start-lg-${this.marginInlineStartLg}` : ''}
|
|
93
|
+
${this.marginInlineStartXl != null && this.marginInlineStartXl.trim() !== '' ? `pds-margin-inline-start-xl-${this.marginInlineStartXl}` : ''}
|
|
94
|
+
${this.marginInlineEnd != null && this.marginInlineEnd.trim() !== '' ? `pds-margin-inline-end-${this.marginInlineEnd}` : ''}
|
|
95
|
+
${this.marginInlineEndXs != null && this.marginInlineEndXs.trim() !== '' ? `pds-margin-inline-end-xs-${this.marginInlineEndXs}` : ''}
|
|
96
|
+
${this.marginInlineEndSm != null && this.marginInlineEndSm.trim() !== '' ? `pds-margin-inline-end-sm-${this.marginInlineEndSm}` : ''}
|
|
97
|
+
${this.marginInlineEndMd != null && this.marginInlineEndMd.trim() !== '' ? `pds-margin-inline-end-md-${this.marginInlineEndMd}` : ''}
|
|
98
|
+
${this.marginInlineEndLg != null && this.marginInlineEndLg.trim() !== '' ? `pds-margin-inline-end-lg-${this.marginInlineEndLg}` : ''}
|
|
99
|
+
${this.marginInlineEndXl != null && this.marginInlineEndXl.trim() !== '' ? `pds-margin-inline-end-xl-${this.marginInlineEndXl}` : ''}
|
|
100
|
+
${this.marginBlockEnd != null && this.marginBlockEnd.trim() !== '' ? `pds-margin-block-end-${this.marginBlockEnd}` : ''}
|
|
101
|
+
${this.marginBlockEndXs != null && this.marginBlockEndXs.trim() !== '' ? `pds-margin-block-end-xs-${this.marginBlockEndXs}` : ''}
|
|
102
|
+
${this.marginBlockEndSm != null && this.marginBlockEndSm.trim() !== '' ? `pds-margin-block-end-sm-${this.marginBlockEndSm}` : ''}
|
|
103
|
+
${this.marginBlockEndMd != null && this.marginBlockEndMd.trim() !== '' ? `pds-margin-block-end-md-${this.marginBlockEndMd}` : ''}
|
|
104
|
+
${this.marginBlockEndLg != null && this.marginBlockEndLg.trim() !== '' ? `pds-margin-block-end-lg-${this.marginBlockEndLg}` : ''}
|
|
105
|
+
${this.marginBlockEndXl != null && this.marginBlockEndXl.trim() !== '' ? `pds-margin-block-end-xl-${this.marginBlockEndXl}` : ''}
|
|
106
|
+
${this.offset != null && this.offset.trim() !== '' ? `pds-box-offset-${this.offset}` : ''}
|
|
107
|
+
${this.offsetXs != null && this.offsetXs.trim() !== '' ? `pds-box-offset-xs-${this.offsetXs}` : ''}
|
|
108
|
+
${this.offsetSm != null && this.offsetSm.trim() !== '' ? `pds-box-offset-sm-${this.offsetSm}` : ''}
|
|
109
|
+
${this.offsetMd != null && this.offsetMd.trim() !== '' ? `pds-box-offset-md-${this.offsetMd}` : ''}
|
|
110
|
+
${this.offsetLg != null && this.offsetLg.trim() !== '' ? `pds-box-offset-lg-${this.offsetLg}` : ''}
|
|
111
|
+
${this.offsetXl != null && this.offsetXl.trim() !== '' ? `pds-box-offset-xl-${this.offsetXl}` : ''}
|
|
112
|
+
${this.padding != null && this.padding.trim() !== '' ? `pds-padding-${this.padding}` : ''}
|
|
113
|
+
${this.paddingXs != null && this.paddingXs.trim() !== '' ? `pds-padding-xs-${this.paddingXs}` : ''}
|
|
114
|
+
${this.paddingSm != null && this.paddingSm.trim() !== '' ? `pds-padding-sm-${this.paddingSm}` : ''}
|
|
115
|
+
${this.paddingMd != null && this.paddingMd.trim() !== '' ? `pds-padding-md-${this.paddingMd}` : ''}
|
|
116
|
+
${this.paddingLg != null && this.paddingLg.trim() !== '' ? `pds-padding-lg-${this.paddingLg}` : ''}
|
|
117
|
+
${this.paddingXl != null && this.paddingXl.trim() !== '' ? `pds-padding-xl-${this.paddingXl}` : ''}
|
|
118
|
+
${this.paddingBlockStart != null && this.paddingBlockStart.trim() !== '' ? `pds-padding-block-start-${this.paddingBlockStart}` : ''}
|
|
119
|
+
${this.paddingBlockStartXs != null && this.paddingBlockStartXs.trim() !== '' ? `pds-padding-block-start-xs-${this.paddingBlockStartXs}` : ''}
|
|
120
|
+
${this.paddingBlockStartSm != null && this.paddingBlockStartSm.trim() !== '' ? `pds-padding-block-start-sm-${this.paddingBlockStartSm}` : ''}
|
|
121
|
+
${this.paddingBlockStartMd != null && this.paddingBlockStartMd.trim() !== '' ? `pds-padding-block-start-md-${this.paddingBlockStartMd}` : ''}
|
|
122
|
+
${this.paddingBlockStartLg != null && this.paddingBlockStartLg.trim() !== '' ? `pds-padding-block-start-lg-${this.paddingBlockStartLg}` : ''}
|
|
123
|
+
${this.paddingBlockStartXl != null && this.paddingBlockStartXl.trim() !== '' ? `pds-padding-block-start-xl-${this.paddingBlockStartXl}` : ''}
|
|
124
|
+
${this.paddingBlockEnd != null && this.paddingBlockEnd.trim() !== '' ? `pds-padding-block-end-${this.paddingBlockEnd}` : ''}
|
|
125
|
+
${this.paddingBlockEndXs != null && this.paddingBlockEndXs.trim() !== '' ? `pds-padding-block-end-xs-${this.paddingBlockEndXs}` : ''}
|
|
126
|
+
${this.paddingBlockEndSm != null && this.paddingBlockEndSm.trim() !== '' ? `pds-padding-block-end-sm-${this.paddingBlockEndSm}` : ''}
|
|
127
|
+
${this.paddingBlockEndMd != null && this.paddingBlockEndMd.trim() !== '' ? `pds-padding-block-end-md-${this.paddingBlockEndMd}` : ''}
|
|
128
|
+
${this.paddingBlockEndLg != null && this.paddingBlockEndLg.trim() !== '' ? `pds-padding-block-end-lg-${this.paddingBlockEndLg}` : ''}
|
|
129
|
+
${this.paddingBlockEndXl != null && this.paddingBlockEndXl.trim() !== '' ? `pds-padding-block-end-xl-${this.paddingBlockEndXl}` : ''}
|
|
130
|
+
${this.paddingInlineStart != null && this.paddingInlineStart.trim() !== '' ? `pds-padding-inline-start-${this.paddingInlineStart}` : ''}
|
|
131
|
+
${this.paddingInlineStartXs != null && this.paddingInlineStartXs.trim() !== '' ? `pds-padding-inline-start-xs-${this.paddingInlineStartXs}` : ''}
|
|
132
|
+
${this.paddingInlineStartSm != null && this.paddingInlineStartSm.trim() !== '' ? `pds-padding-inline-start-sm-${this.paddingInlineStartSm}` : ''}
|
|
133
|
+
${this.paddingInlineStartMd != null && this.paddingInlineStartMd.trim() !== '' ? `pds-padding-inline-start-md-${this.paddingInlineStartMd}` : ''}
|
|
134
|
+
${this.paddingInlineStartLg != null && this.paddingInlineStartLg.trim() !== '' ? `pds-padding-inline-start-lg-${this.paddingInlineStartLg}` : ''}
|
|
135
|
+
${this.paddingInlineStartXl != null && this.paddingInlineStartXl.trim() !== '' ? `pds-padding-inline-start-xl-${this.paddingInlineStartXl}` : ''}
|
|
136
|
+
${this.paddingInlineEnd != null && this.paddingInlineEnd.trim() !== '' ? `pds-padding-inline-end-${this.paddingInlineEnd}` : ''}
|
|
137
|
+
${this.paddingInlineEndXs != null && this.paddingInlineEndXs.trim() !== '' ? `pds-padding-inline-end-xs-${this.paddingInlineEndXs}` : ''}
|
|
138
|
+
${this.paddingInlineEndSm != null && this.paddingInlineEndSm.trim() !== '' ? `pds-padding-inline-end-sm-${this.paddingInlineEndSm}` : ''}
|
|
139
|
+
${this.paddingInlineEndMd != null && this.paddingInlineEndMd.trim() !== '' ? `pds-padding-inline-end-md-${this.paddingInlineEndMd}` : ''}
|
|
140
|
+
${this.paddingInlineEndLg != null && this.paddingInlineEndLg.trim() !== '' ? `pds-padding-inline-end-lg-${this.paddingInlineEndLg}` : ''}
|
|
141
|
+
${this.paddingInlineEndXl != null && this.paddingInlineEndXl.trim() !== '' ? `pds-padding-inline-end-xl-${this.paddingInlineEndXl}` : ''}
|
|
142
|
+
${this.shadow != null && this.shadow.trim() !== '' ? `pds-shadow-${this.shadow}` : ''}
|
|
143
|
+
${this.size != null && this.size.trim() !== '' ? `pds-box pds-box-${this.size}` : ''}
|
|
144
|
+
${this.sizeXs != null && this.sizeXs.trim() !== '' ? `pds-box-xs-${this.sizeXs}` : ''}
|
|
145
|
+
${this.sizeSm != null && this.sizeSm.trim() !== '' ? `pds-box-sm-${this.sizeSm}` : ''}
|
|
146
|
+
${this.sizeMd != null && this.sizeMd.trim() !== '' ? `pds-box-md-${this.sizeMd}` : ''}
|
|
147
|
+
${this.sizeLg != null && this.sizeLg.trim() !== '' ? `pds-box-lg-${this.sizeLg}` : ''}
|
|
148
|
+
${this.sizeXl != null && this.sizeXl.trim() !== '' ? `pds-box-xl-${this.sizeXl}` : ''}
|
|
149
149
|
${this.size == undefined &&
|
|
150
150
|
this.sizeSm == undefined &&
|
|
151
151
|
this.sizeMd == undefined &&
|
|
@@ -157,7 +157,7 @@ const PdsBox = class {
|
|
|
157
157
|
const normalizedBorder = utils.normalizeColorValue(this.borderColor);
|
|
158
158
|
const boxInlineStyles = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (normalizedBackground && { '--color-background-box': normalizedBackground })), (normalizedBorder && { '--color-border-box': normalizedBorder })), (this.minHeight && { '--sizing-min-height-box': this.minHeight })), (this.minWidth && { '--sizing-min-width-box': this.minWidth })), (this.flex && !['none', 'grow', 'shrink'].includes(this.flex) && { 'flex': this.flex }));
|
|
159
159
|
this.hostKeeper.record(boxClasses, boxInlineStyles);
|
|
160
|
-
return (index.h(index.Host, { key: '
|
|
160
|
+
return (index.h(index.Host, { key: '8a1348247b5a4c546759232f0f155721798797e5', class: boxClasses, style: boxInlineStyles }));
|
|
161
161
|
}
|
|
162
162
|
get el() { return index.getElement(this); }
|
|
163
163
|
};
|
|
@@ -8,7 +8,7 @@ require('./keep-hydrated-CiXgkEYd.js');
|
|
|
8
8
|
|
|
9
9
|
const labelCss = () => `:host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}`;
|
|
10
10
|
|
|
11
|
-
const pdsCheckboxCss = () => `:host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}:host(.is-invalid) input{border-color:var(--pine-color-border-danger)}:host(.is-invalid) input:checked{background:var(--pine-color-danger)}:host(.is-invalid) input:checked::after{border-color:var(--pine-color-white)}:host(.is-invalid) input:checked:hover{background:var(--pine-color-danger-hover);border-color:var(--pine-color-border-danger-hover)}:host(.is-invalid) input:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}:host(.is-invalid) label,:host(.is-invalid) .pds-checkbox__message--error{color:var(--pine-color-text-message-danger)}:host(.is-indeterminate) input{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}:host(.is-indeterminate) input:hover{background:var(--pine-color-accent);border-color:var(--pine-color-accent-hover)}:host(.is-indeterminate) input::after{border:1px solid var(--pine-color-text-primary);-webkit-border-after:var(--pine-border-width-none);border-block-end:var(--pine-border-width-none);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg);width:4px}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-2xs);-ms-flex:none;flex:none;height:var(--pine-dimension-sm);margin:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025);position:relative;width:var(--pine-dimension-sm)}input:hover{background:var(--pine-color-background-container-hover);border:var(--pine-border-hover)}input:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input:checked::after{border:1px solid var(--pine-color-text-primary);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -60%) rotate(43deg);transform:translate(-50%, -60%) rotate(43deg);width:4px}input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input:disabled:checked{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled)}input:disabled:checked::after{border-color:var(--pine-color-border)}input:disabled+label{cursor:not-allowed}input:disabled~.pds-checkbox__message{color:var(--pine-color-text-disabled)}input:focus-visible{outline:var(--pine-outline-focus)}:host-context([dir=rtl]) input:checked::after{-webkit-transform:translate(-50%, -60%) rotate(-43deg);transform:translate(-50%, -60%) rotate(-43deg)}label{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs)}:host(.has-label-slot) label{-ms-flex-align:center;align-items:center}:host(.has-label-slot) input{-webkit-margin-before:0;margin-block-start:0}.visually-hidden{border:0;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:0;position:absolute;white-space:nowrap;width:1px}.pds-checkbox__message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:6px;margin-block-start:6px;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);width:100%}.pds-checkbox__message--error{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-checkbox__message--error pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}`;
|
|
11
|
+
const pdsCheckboxCss = () => `:host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}:host(.is-invalid) input{border-color:var(--pine-color-border-danger)}:host(.is-invalid) input:checked{background:var(--pine-color-danger)}:host(.is-invalid) input:checked::after{border-color:var(--pine-color-white)}:host(.is-invalid) input:checked:hover{background:var(--pine-color-danger-hover);border-color:var(--pine-color-border-danger-hover)}:host(.is-invalid) input:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}:host(.is-invalid) label,:host(.is-invalid) .pds-checkbox__message--error{color:var(--pine-color-text-message-danger)}:host(.is-indeterminate) input{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}:host(.is-indeterminate) input:hover{background:var(--pine-color-accent);border-color:var(--pine-color-accent-hover)}:host(.is-indeterminate) input::after{border:1px solid var(--pine-color-text-primary);-webkit-border-after:var(--pine-border-width-none);border-block-end:var(--pine-border-width-none);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg);width:4px}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-2xs);-ms-flex:none;flex:none;height:var(--pine-dimension-sm);margin:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025);position:relative;width:var(--pine-dimension-sm)}input:hover{background:var(--pine-color-background-container-hover);border:var(--pine-border-hover)}input:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input:checked::after{border:1px solid var(--pine-color-text-primary);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -60%) rotate(43deg);transform:translate(-50%, -60%) rotate(43deg);width:4px}input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input:disabled:checked{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled)}input:disabled:checked::after{border-color:var(--pine-color-border)}input:disabled+label{cursor:not-allowed}input:disabled~.pds-checkbox__message{color:var(--pine-color-text-disabled)}input:focus-visible{outline:var(--pine-outline-focus)}:host-context([dir=rtl]) input:checked::after{-webkit-transform:translate(-50%, -60%) rotate(-43deg);transform:translate(-50%, -60%) rotate(-43deg)}label{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs)}:host(.has-label-slot) label{-ms-flex-align:center;align-items:center}:host(.has-label-slot) label,:host(.has-label-slot) label>span{min-width:0}:host(.has-label-slot) input{-webkit-margin-before:0;margin-block-start:0}.visually-hidden{border:0;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:0;position:absolute;white-space:nowrap;width:1px}.pds-checkbox__message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:6px;margin-block-start:6px;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);width:100%}.pds-checkbox__message--error{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-checkbox__message--error pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}`;
|
|
12
12
|
|
|
13
13
|
const PdsCheckbox = class {
|
|
14
14
|
constructor(hostRef) {
|
|
@@ -105,6 +105,18 @@ const PdsCheckbox = class {
|
|
|
105
105
|
this.checked = state === (this.value || 'on');
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Form Associated Custom Elements API: Called when the form is disabled
|
|
110
|
+
*/
|
|
111
|
+
formDisabledCallback(disabled) {
|
|
112
|
+
// Also fires when this element's own `disabled` attribute is merely present, even as the
|
|
113
|
+
// literal string "false" (a consumer's or React's attribute serialization can write that) —
|
|
114
|
+
// the platform treats any value as disabled, independent of fieldset state. A real disabled
|
|
115
|
+
// fieldset ancestor confirms this is genuinely that, not this element's own attribute.
|
|
116
|
+
if (disabled && !this.el.closest('fieldset[disabled]'))
|
|
117
|
+
return;
|
|
118
|
+
this.disabled = disabled;
|
|
119
|
+
}
|
|
108
120
|
componentWillLoad() {
|
|
109
121
|
this.inheritedAttributes = Object.assign({}, attributes.inheritAriaAttributes(this.el));
|
|
110
122
|
this.updateHasLabelSlot();
|
|
@@ -112,9 +124,9 @@ const PdsCheckbox = class {
|
|
|
112
124
|
render() {
|
|
113
125
|
const hostClass = this.classNames();
|
|
114
126
|
this.hostKeeper.record(hostClass);
|
|
115
|
-
return (index.h(index.Host, { key: '
|
|
116
|
-
index.h("div", { key: '
|
|
117
|
-
index.h("div", { key: '
|
|
127
|
+
return (index.h(index.Host, { key: 'bbe09a5e9eb55f62b2921b09a04ddc9476a871ae', class: hostClass }, index.h("label", { key: 'fa1856d9306eb8c0c19618ea5e2619ea20c3c51d', htmlFor: this.componentId }, index.h("input", Object.assign({ key: '8537d97a8e69a17d0d563306dac179e393885dda', type: "checkbox", "aria-describedby": form.assignDescription(this.componentId, this.invalid, this.helperMessage, this.errorMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput }, this.inheritedAttributes)), index.h("span", { key: 'e523922889c80a2d18243cb560cd855bab95803d', class: this.hideLabel ? 'visually-hidden' : '' }, index.h("slot", { key: 'b6ff34ecbc346d254a0211bfa610823feedb486b', name: "label", onSlotchange: this.updateHasLabelSlot }), !this.hasLabelSlot && this.label)), this.helperMessage &&
|
|
128
|
+
index.h("div", { key: '55dcca850dff0aa93d9ba63d6827d9155ac35dab', class: 'pds-checkbox__message', id: form.messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
129
|
+
index.h("div", { key: '5af843679994d29f084d41e90e41e0939c951063', class: `pds-checkbox__message pds-checkbox__message--error`, id: form.messageId(this.componentId, 'error'), "aria-live": "assertive" }, index.h("pds-icon", { key: '10f7efe5d4b252d9dea6f398eff973ba32506898', icon: index$1.danger, size: "small" }), this.errorMessage)));
|
|
118
130
|
}
|
|
119
131
|
static get formAssociated() { return true; }
|
|
120
132
|
get el() { return index.getElement(this); }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-jl_Q819j.js');
|
|
4
4
|
var index$1 = require('./index-5Azb8EQG.js');
|
|
5
5
|
var attributes = require('./attributes-BJ7KBHql.js');
|
|
6
|
-
var truncationTooltip = require('./truncation-tooltip-
|
|
6
|
+
var truncationTooltip = require('./truncation-tooltip-DO9xli2e.js');
|
|
7
7
|
var utils = require('./utils-BhRmyxT8.js');
|
|
8
8
|
require('./keep-hydrated-CiXgkEYd.js');
|
|
9
9
|
require('./floating-ui.dom-Dc8Anyel.js');
|
|
@@ -22,6 +22,26 @@ const SENTIMENT_DOT_COLORS = {
|
|
|
22
22
|
success: 'var(--pine-chip-color-success-dot)',
|
|
23
23
|
warning: 'var(--pine-chip-color-warning-dot)',
|
|
24
24
|
};
|
|
25
|
+
// Controls a chip can sit inside that already take focus, so a clipped label adds no tab stop of its own.
|
|
26
|
+
// Not any `[tabindex]`: a focusable scroll region full of chips would show every chip's tooltip at once.
|
|
27
|
+
const FOCUSABLE_WRAPPER = 'a[href], button, summary, pds-button, pds-link, pds-tab, pds-dropdown-menu-item, [role="option"]';
|
|
28
|
+
// Beside the listbox and level with the option, so the tooltip never covers the other options.
|
|
29
|
+
function besideListbox(wrapper) {
|
|
30
|
+
const option = (wrapper === null || wrapper === void 0 ? void 0 : wrapper.matches('[role="option"]')) ? wrapper : null;
|
|
31
|
+
const listbox = option === null || option === void 0 ? void 0 : option.closest('[role="listbox"]');
|
|
32
|
+
if (!option || !listbox)
|
|
33
|
+
return {};
|
|
34
|
+
return {
|
|
35
|
+
placement: 'right',
|
|
36
|
+
reference: {
|
|
37
|
+
getBoundingClientRect: () => {
|
|
38
|
+
const { top, bottom, height } = option.getBoundingClientRect();
|
|
39
|
+
const { left, right, width } = listbox.getBoundingClientRect();
|
|
40
|
+
return { x: left, y: top, top, left, bottom, right, width, height };
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
25
45
|
const PdsChip = class {
|
|
26
46
|
constructor(hostRef) {
|
|
27
47
|
index.registerInstance(this, hostRef);
|
|
@@ -56,6 +76,11 @@ const PdsChip = class {
|
|
|
56
76
|
}
|
|
57
77
|
connectedCallback() {
|
|
58
78
|
this.hostKeeper.connect(this.el);
|
|
79
|
+
// A moved chip reconnects without re-rendering, so componentDidRender won't re-bind what
|
|
80
|
+
// disconnectedCallback tore down. Before the first render there's no label, and it binds there.
|
|
81
|
+
if (this.maxWidth && this.labelTextEl) {
|
|
82
|
+
this.initTruncationTooltip();
|
|
83
|
+
}
|
|
59
84
|
}
|
|
60
85
|
// Bind (and re-bind) here, not just on load: changing variant/size remounts
|
|
61
86
|
// the label span, so the tooltip has to re-attach to the current node or it
|
|
@@ -80,16 +105,15 @@ const PdsChip = class {
|
|
|
80
105
|
initTruncationTooltip() {
|
|
81
106
|
this.destroyTruncationTooltip();
|
|
82
107
|
if (this.labelTextEl) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
contentEl: this.labelTextEl,
|
|
86
|
-
getTooltipText: () => this.el.textContent || '',
|
|
108
|
+
const wrapper = this.el.closest(FOCUSABLE_WRAPPER);
|
|
109
|
+
this.truncationCleanup = truncationTooltip.setupTruncationTooltip(Object.assign({ hostEl: this.el, contentEl: this.labelTextEl, getTooltipText: () => this.el.textContent || '',
|
|
87
110
|
// The dropdown variant's label span already sits inside
|
|
88
111
|
// `<button class="pds-chip__button">`, which is already focusable and
|
|
89
112
|
// bubbles focusin to the host — a tabindex on the span too would nest
|
|
90
113
|
// a second tab stop inside the button.
|
|
91
|
-
manageTabIndex: this.effectiveVariant !== 'dropdown',
|
|
92
|
-
|
|
114
|
+
manageTabIndex: this.effectiveVariant !== 'dropdown' && !wrapper,
|
|
115
|
+
// A wrapping control sits outside the host, so its focus never reaches the host's listener.
|
|
116
|
+
focusEl: wrapper !== null && wrapper !== void 0 ? wrapper : this.el }, besideListbox(wrapper)));
|
|
93
117
|
this.tooltipBoundEl = this.labelTextEl;
|
|
94
118
|
}
|
|
95
119
|
}
|
|
@@ -146,7 +170,8 @@ const PdsChip = class {
|
|
|
146
170
|
// label span already sits inside `<button class="pds-chip__button">`,
|
|
147
171
|
// which is already focusable and bubbles focusin to the host, so
|
|
148
172
|
// initTruncationTooltip passes `manageTabIndex: false` there to avoid
|
|
149
|
-
// nesting a second tab stop inside the button.
|
|
173
|
+
// nesting a second tab stop inside the button. The same goes for a chip
|
|
174
|
+
// inside a consumer's own focusable control (FOCUSABLE_WRAPPER).
|
|
150
175
|
const chipContent = isDropdown ? (index.h("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && index.h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && index.h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), index.h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, index.h("slot", null)), index.h("pds-icon", { icon: index$1.downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (index.h("span", { class: "pds-chip__label" }, this.icon && index.h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && index.h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), index.h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, index.h("slot", null))));
|
|
151
176
|
return chipContent;
|
|
152
177
|
}
|
|
@@ -220,7 +245,7 @@ const PdsChip = class {
|
|
|
220
245
|
const hostClass = this.classNames();
|
|
221
246
|
const hostStyles = this.hostStyles;
|
|
222
247
|
this.hostKeeper.record(hostClass, hostStyles);
|
|
223
|
-
return (index.h(index.Host, { key: '
|
|
248
|
+
return (index.h(index.Host, { key: 'f82d84a7f0a4f1c980d47bf75cd4ffeef042607d', class: hostClass, id: this.componentId, style: hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
224
249
|
}
|
|
225
250
|
get el() { return index.getElement(this); }
|
|
226
251
|
};
|
|
@@ -2155,6 +2155,9 @@ const PdsCombobox = class {
|
|
|
2155
2155
|
};
|
|
2156
2156
|
// Handler for button trigger click
|
|
2157
2157
|
this.onButtonTriggerClick = () => {
|
|
2158
|
+
// The button and chip triggers are divs, so a click reaches them even while disabled.
|
|
2159
|
+
if (this.disabled)
|
|
2160
|
+
return;
|
|
2158
2161
|
this.isOpen = !this.isOpen;
|
|
2159
2162
|
if (this.isOpen) {
|
|
2160
2163
|
this.prepareExpandFilterListOnOpen();
|
|
@@ -2174,6 +2177,13 @@ const PdsCombobox = class {
|
|
|
2174
2177
|
};
|
|
2175
2178
|
// Handler for button trigger keyboard events
|
|
2176
2179
|
this.onButtonTriggerKeyDown = (e) => {
|
|
2180
|
+
// Disabled takes it out of the tab order, but setFocus() or a click can still focus it.
|
|
2181
|
+
if (this.disabled) {
|
|
2182
|
+
// Keep Space from scrolling the page, as on a native disabled button.
|
|
2183
|
+
if (e.key === ' ')
|
|
2184
|
+
e.preventDefault();
|
|
2185
|
+
return;
|
|
2186
|
+
}
|
|
2177
2187
|
// Escape closes an open group before the dropdown. Other keys reach the tree through handleKeyDown.
|
|
2178
2188
|
if (this.isOpen && e.key === 'Escape' && this.handleGroupedPanelKey(e))
|
|
2179
2189
|
return;
|
|
@@ -2194,8 +2204,9 @@ const PdsCombobox = class {
|
|
|
2194
2204
|
}, 0);
|
|
2195
2205
|
}
|
|
2196
2206
|
else if (e.key === 'Escape') {
|
|
2197
|
-
|
|
2207
|
+
// Only an open dropdown claims Escape; a closed one leaves it to a modal or popover around it.
|
|
2198
2208
|
if (this.isOpen) {
|
|
2209
|
+
e.preventDefault();
|
|
2199
2210
|
this.isOpen = false;
|
|
2200
2211
|
this.highlightedIndex = -1;
|
|
2201
2212
|
this.clearExpandFilterList();
|
|
@@ -2306,6 +2317,18 @@ const PdsCombobox = class {
|
|
|
2306
2317
|
this.internals = this.el.attachInternals();
|
|
2307
2318
|
}
|
|
2308
2319
|
}
|
|
2320
|
+
/**
|
|
2321
|
+
* Form Associated Custom Elements API: Called when the form is disabled
|
|
2322
|
+
*/
|
|
2323
|
+
formDisabledCallback(disabled) {
|
|
2324
|
+
// Also fires when this element's own `disabled` attribute is merely present, even as the
|
|
2325
|
+
// literal string "false" (a consumer's or React's attribute serialization can write that) —
|
|
2326
|
+
// the platform treats any value as disabled, independent of fieldset state. A real disabled
|
|
2327
|
+
// fieldset ancestor confirms this is genuinely that, not this element's own attribute.
|
|
2328
|
+
if (disabled && !this.el.closest('fieldset[disabled]'))
|
|
2329
|
+
return;
|
|
2330
|
+
this.disabled = disabled;
|
|
2331
|
+
}
|
|
2309
2332
|
componentWillLoad() {
|
|
2310
2333
|
this.originalSearchEmitter = this.pdsComboboxSearch;
|
|
2311
2334
|
this.updateOptions();
|
|
@@ -2440,6 +2463,22 @@ const PdsCombobox = class {
|
|
|
2440
2463
|
if (this.isOpen && this.hidesPanelSearch && this.panelTreeEl)
|
|
2441
2464
|
this.focusPanel(this.panelTreeEl);
|
|
2442
2465
|
}
|
|
2466
|
+
disabledChanged(disabled) {
|
|
2467
|
+
var _a, _b, _c, _d, _e;
|
|
2468
|
+
if (!disabled || !this.isOpen)
|
|
2469
|
+
return;
|
|
2470
|
+
const shadowActive = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) !== null && _b !== void 0 ? _b : null;
|
|
2471
|
+
const focusInDropdown = !!((_d = (_c = this.portalEl) === null || _c === void 0 ? void 0 : _c.shadowRoot) === null || _d === void 0 ? void 0 : _d.activeElement) || (!!shadowActive && !!((_e = this.listboxEl) === null || _e === void 0 ? void 0 : _e.contains(shadowActive)));
|
|
2472
|
+
this.isOpen = false;
|
|
2473
|
+
this.highlightedIndex = -1;
|
|
2474
|
+
this.isArrowKeyNavigationMode = false;
|
|
2475
|
+
this.clearExpandFilterList();
|
|
2476
|
+
this.updateAriaActiveDescendant();
|
|
2477
|
+
// Closing removes the search field or option that held focus. A button or chip trigger can still
|
|
2478
|
+
// take it (aria-disabled), so focus doesn't fall to the page; a disabled input can't, as natively.
|
|
2479
|
+
if (focusInDropdown && this.trigger !== 'input')
|
|
2480
|
+
this.restoreFocusToTrigger();
|
|
2481
|
+
}
|
|
2443
2482
|
isOpenChanged(isOpen) {
|
|
2444
2483
|
if (!isOpen) {
|
|
2445
2484
|
this.revealedGroupLabel = null;
|
|
@@ -3577,7 +3616,8 @@ const PdsCombobox = class {
|
|
|
3577
3616
|
return this.selectedOption ? this.selectedOption.value : null;
|
|
3578
3617
|
}
|
|
3579
3618
|
/**
|
|
3580
|
-
* Clears the selected value and resets the component.
|
|
3619
|
+
* Clears the selected value and resets the component. Works while disabled too, as setting a
|
|
3620
|
+
* native control's value from script does.
|
|
3581
3621
|
*/
|
|
3582
3622
|
async clear() {
|
|
3583
3623
|
const hadValue = this.value !== '' || this.displayText !== '';
|
|
@@ -4154,13 +4194,13 @@ const PdsCombobox = class {
|
|
|
4154
4194
|
]
|
|
4155
4195
|
.filter(Boolean)
|
|
4156
4196
|
.join(' ');
|
|
4157
|
-
return (index.h(index.Host, { key: '
|
|
4197
|
+
return (index.h(index.Host, { key: 'ead770a3b7ba531a1cfdc6b02aef6d7159481ed0', "aria-disabled": this.disabled ? 'true' : null }, index.h("div", { key: '3ca6fd299acd1db8a0e476eee5f7606bc6153625', class: "pds-combobox", tabIndex: -1, onFocusout: this.onComboboxFocusOut, part: "combobox" }, this.hasVisibleLabel && (index.h("label", { key: '44c72d099c5ccddce18400b9d3c66158f485de05', htmlFor: this.trigger === 'input' ? this.componentId : undefined, id: this.labelId, class: "pds-combobox__label", onClick: this.onLabelClick }, this.label)), this.trigger === 'input' ? (index.h("div", { class: "pds-combobox__input-wrapper", style: { width: this.triggerWidth } }, index.h("input", { ref: el => {
|
|
4158
4198
|
this.inputEl = el;
|
|
4159
4199
|
this.triggerEl = el;
|
|
4160
4200
|
}, class: {
|
|
4161
4201
|
'pds-combobox__input': true,
|
|
4162
4202
|
'pds-combobox__input--invalid': this.isInvalid(),
|
|
4163
|
-
}, type: "text", role: "combobox", "aria-autocomplete": "list", "aria-haspopup": this.inputPopupRole === 'tree' ? 'tree' : undefined, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), index.h("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (index.h("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (index.h("div", { class: triggerClass, style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), this.renderMessages(), index.h("div", { key: '
|
|
4203
|
+
}, type: "text", role: "combobox", "aria-autocomplete": "list", "aria-haspopup": this.inputPopupRole === 'tree' ? 'tree' : undefined, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), index.h("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (index.h("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (index.h("div", { class: triggerClass, style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), this.renderMessages(), index.h("div", { key: '349af9dc6fdae018d4443b178e21b1627fcc85ca', style: { display: 'none' } }, index.h("slot", { key: '9af42db6d08f148b7d7b5e4b3199f7c9af7699a4', onSlotchange: () => this.updateOptions() })), this.renderDropdown(), this.groupDisplay !== 'inline' && [
|
|
4164
4204
|
index.h("span", { key: "drill-status", class: "visually-hidden", role: "status", "aria-live": "polite" }, this.isOpen && this.effectiveGroupDisplay === 'drill-in' && this.openGroup !== null ? this.openGroup.label : ''),
|
|
4165
4205
|
// Its own region: sharing one, revealing a row then opening it would leave the text the
|
|
4166
4206
|
// same, and opening the group would go unannounced.
|
|
@@ -4179,6 +4219,9 @@ const PdsCombobox = class {
|
|
|
4179
4219
|
"flyoutFallback": [{
|
|
4180
4220
|
"flyoutFallbackChanged": 0
|
|
4181
4221
|
}],
|
|
4222
|
+
"disabled": [{
|
|
4223
|
+
"disabledChanged": 0
|
|
4224
|
+
}],
|
|
4182
4225
|
"isOpen": [{
|
|
4183
4226
|
"isOpenChanged": 0
|
|
4184
4227
|
}],
|
|
@@ -4,7 +4,7 @@ var index = require('./index-jl_Q819j.js');
|
|
|
4
4
|
var attributes = require('./attributes-BJ7KBHql.js');
|
|
5
5
|
var index$1 = require('./index-5Azb8EQG.js');
|
|
6
6
|
var reflectedAttributeDefault = require('./reflected-attribute-default-DVYHG6O1.js');
|
|
7
|
-
var truncationTooltip = require('./truncation-tooltip-
|
|
7
|
+
var truncationTooltip = require('./truncation-tooltip-DO9xli2e.js');
|
|
8
8
|
require('./keep-hydrated-CiXgkEYd.js');
|
|
9
9
|
require('./floating-ui.dom-Dc8Anyel.js');
|
|
10
10
|
|
|
@@ -49,6 +49,11 @@ const PdsCopytext = class {
|
|
|
49
49
|
}
|
|
50
50
|
connectedCallback() {
|
|
51
51
|
this.hostKeeper.connect(this.el);
|
|
52
|
+
// componentDidLoad runs once, so a moved element re-binds here what disconnectedCallback tore
|
|
53
|
+
// down. Before the first render there's no valueSpanEl yet, and componentDidLoad binds it.
|
|
54
|
+
if (this.truncate && this.valueSpanEl) {
|
|
55
|
+
this.initTruncationTooltip();
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
restoreBorderDefault(newValue) {
|
|
54
59
|
this.border = reflectedAttributeDefault.restoreReflectedDefault(this.el, 'border', newValue, true);
|
|
@@ -111,7 +116,7 @@ const PdsCopytext = class {
|
|
|
111
116
|
render() {
|
|
112
117
|
const hostClass = this.classNames();
|
|
113
118
|
this.hostKeeper.record(hostClass);
|
|
114
|
-
return (index.h(index.Host, { key: '
|
|
119
|
+
return (index.h(index.Host, { key: 'a3517b135fc3e3677e30b6ad5811c1170a819b65', class: hostClass, id: this.componentId }, index.h("pds-button", { key: '02f56bed02ed3963a3d80a92148d6619a845224a', type: "button", variant: "unstyled", onClick: this.handleClick }, index.h("span", { key: '95fd1284e3d227b74dab613eb71f5385c3a0be29', ref: (el) => this.valueSpanEl = el }, this.value), index.h("pds-icon", { key: '21af67a8c9165e56d2d2b0cf19df7c7e3f290c72', "aria-hidden": "true", icon: index$1.copy, size: "16px" }))));
|
|
115
120
|
}
|
|
116
121
|
get el() { return index.getElement(this); }
|
|
117
122
|
static get watchers() { return {
|