@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
|
@@ -22,18 +22,18 @@ const PdsBox = class {
|
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
const boxClasses = `
|
|
25
|
-
${this.alignItems
|
|
26
|
-
${this.alignItemsXs
|
|
27
|
-
${this.alignItemsSm
|
|
28
|
-
${this.alignItemsMd
|
|
29
|
-
${this.alignItemsLg
|
|
30
|
-
${this.alignItemsXl
|
|
31
|
-
${this.alignSelf
|
|
32
|
-
${this.alignSelfXs
|
|
33
|
-
${this.alignSelfSm
|
|
34
|
-
${this.alignSelfMd
|
|
35
|
-
${this.alignSelfLg
|
|
36
|
-
${this.alignSelfXl
|
|
25
|
+
${this.alignItems != null && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}
|
|
26
|
+
${this.alignItemsXs != null && this.alignItemsXs.trim() !== '' ? `pds-align-items-xs-${this.alignItemsXs}` : ''}
|
|
27
|
+
${this.alignItemsSm != null && this.alignItemsSm.trim() !== '' ? `pds-align-items-sm-${this.alignItemsSm}` : ''}
|
|
28
|
+
${this.alignItemsMd != null && this.alignItemsMd.trim() !== '' ? `pds-align-items-md-${this.alignItemsMd}` : ''}
|
|
29
|
+
${this.alignItemsLg != null && this.alignItemsLg.trim() !== '' ? `pds-align-items-lg-${this.alignItemsLg}` : ''}
|
|
30
|
+
${this.alignItemsXl != null && this.alignItemsXl.trim() !== '' ? `pds-align-items-xl-${this.alignItemsXl}` : ''}
|
|
31
|
+
${this.alignSelf != null && this.alignSelf.trim() !== '' ? `pds-align-self-${this.alignSelf}` : ''}
|
|
32
|
+
${this.alignSelfXs != null && this.alignSelfXs.trim() !== '' ? `pds-align-self-xs-${this.alignSelfXs}` : ''}
|
|
33
|
+
${this.alignSelfSm != null && this.alignSelfSm.trim() !== '' ? `pds-align-self-sm-${this.alignSelfSm}` : ''}
|
|
34
|
+
${this.alignSelfMd != null && this.alignSelfMd.trim() !== '' ? `pds-align-self-md-${this.alignSelfMd}` : ''}
|
|
35
|
+
${this.alignSelfLg != null && this.alignSelfLg.trim() !== '' ? `pds-align-self-lg-${this.alignSelfLg}` : ''}
|
|
36
|
+
${this.alignSelfXl != null && this.alignSelfXl.trim() !== '' ? `pds-align-self-xl-${this.alignSelfXl}` : ''}
|
|
37
37
|
${this.auto ? 'pds-box--auto' : ''}
|
|
38
38
|
${this.autoXs ? 'pds-box--auto-xs' : ''}
|
|
39
39
|
${this.autoSm ? 'pds-box--auto-sm' : ''}
|
|
@@ -49,101 +49,101 @@ const PdsBox = class {
|
|
|
49
49
|
${this.borderInlineStart === false ? 'pds-box--border-inline-start-none' : ''}
|
|
50
50
|
${this.borderInlineEnd === true ? 'pds-box--border-inline-end' : ''}
|
|
51
51
|
${this.borderInlineEnd === false ? 'pds-box--border-inline-end-none' : ''}
|
|
52
|
-
${this.borderRadius
|
|
53
|
-
${this.direction
|
|
54
|
-
${this.display
|
|
52
|
+
${this.borderRadius != null && this.borderRadius.trim() !== '' ? `pds-border-radius-${this.borderRadius}` : ''}
|
|
53
|
+
${this.direction != null && this.direction.trim() !== '' ? `pds-box-direction-${this.direction}` : ''}
|
|
54
|
+
${this.display != null && this.display.trim() !== '' ? `pds-box--display-${this.display}` : ''}
|
|
55
55
|
${this.fit ? 'pds-box--fit' : ''}
|
|
56
56
|
${this.fitXs ? 'pds-box--fit-xs' : ''}
|
|
57
57
|
${this.fitSm ? 'pds-box--fit-sm' : ''}
|
|
58
58
|
${this.fitMd ? 'pds-box--fit-md' : ''}
|
|
59
59
|
${this.fitLg ? 'pds-box--fit-lg' : ''}
|
|
60
60
|
${this.fitXl ? 'pds-box--fit-xl' : ''}
|
|
61
|
-
${this.gap
|
|
62
|
-
${this.gapXs
|
|
63
|
-
${this.gapSm
|
|
64
|
-
${this.gapMd
|
|
65
|
-
${this.gapLg
|
|
66
|
-
${this.gapXl
|
|
61
|
+
${this.gap != null && this.gap.trim() !== '' ? `pds-box-gap-${this.gap}` : ''}
|
|
62
|
+
${this.gapXs != null && this.gapXs.trim() !== '' ? `pds-box-gap-xs-${this.gapXs}` : ''}
|
|
63
|
+
${this.gapSm != null && this.gapSm.trim() !== '' ? `pds-box-gap-sm-${this.gapSm}` : ''}
|
|
64
|
+
${this.gapMd != null && this.gapMd.trim() !== '' ? `pds-box-gap-md-${this.gapMd}` : ''}
|
|
65
|
+
${this.gapLg != null && this.gapLg.trim() !== '' ? `pds-box-gap-lg-${this.gapLg}` : ''}
|
|
66
|
+
${this.gapXl != null && this.gapXl.trim() !== '' ? `pds-box-gap-xl-${this.gapXl}` : ''}
|
|
67
67
|
${this.wrap ? 'pds-box--wrap' : ''}
|
|
68
68
|
${this.wrapXs ? 'pds-box--wrap-xs' : ''}
|
|
69
69
|
${this.wrapSm ? 'pds-box--wrap-sm' : ''}
|
|
70
70
|
${this.wrapMd ? 'pds-box--wrap-md' : ''}
|
|
71
71
|
${this.wrapLg ? 'pds-box--wrap-lg' : ''}
|
|
72
72
|
${this.wrapXl ? 'pds-box--wrap-xl' : ''}
|
|
73
|
-
${this.flex
|
|
74
|
-
${this.justifyContent
|
|
75
|
-
${this.justifyContentXs
|
|
76
|
-
${this.justifyContentSm
|
|
77
|
-
${this.justifyContentMd
|
|
78
|
-
${this.justifyContentLg
|
|
79
|
-
${this.justifyContentXl
|
|
80
|
-
${this.marginBlockStart
|
|
81
|
-
${this.marginBlockStartXs
|
|
82
|
-
${this.marginBlockStartSm
|
|
83
|
-
${this.marginBlockStartMd
|
|
84
|
-
${this.marginBlockStartLg
|
|
85
|
-
${this.marginBlockStartXl
|
|
86
|
-
${this.marginInlineStart
|
|
87
|
-
${this.marginInlineStartXs
|
|
88
|
-
${this.marginInlineStartSm
|
|
89
|
-
${this.marginInlineStartMd
|
|
90
|
-
${this.marginInlineStartLg
|
|
91
|
-
${this.marginInlineStartXl
|
|
92
|
-
${this.marginInlineEnd
|
|
93
|
-
${this.marginInlineEndXs
|
|
94
|
-
${this.marginInlineEndSm
|
|
95
|
-
${this.marginInlineEndMd
|
|
96
|
-
${this.marginInlineEndLg
|
|
97
|
-
${this.marginInlineEndXl
|
|
98
|
-
${this.marginBlockEnd
|
|
99
|
-
${this.marginBlockEndXs
|
|
100
|
-
${this.marginBlockEndSm
|
|
101
|
-
${this.marginBlockEndMd
|
|
102
|
-
${this.marginBlockEndLg
|
|
103
|
-
${this.marginBlockEndXl
|
|
104
|
-
${this.offset
|
|
105
|
-
${this.offsetXs
|
|
106
|
-
${this.offsetSm
|
|
107
|
-
${this.offsetMd
|
|
108
|
-
${this.offsetLg
|
|
109
|
-
${this.offsetXl
|
|
110
|
-
${this.padding
|
|
111
|
-
${this.paddingXs
|
|
112
|
-
${this.paddingSm
|
|
113
|
-
${this.paddingMd
|
|
114
|
-
${this.paddingLg
|
|
115
|
-
${this.paddingXl
|
|
116
|
-
${this.paddingBlockStart
|
|
117
|
-
${this.paddingBlockStartXs
|
|
118
|
-
${this.paddingBlockStartSm
|
|
119
|
-
${this.paddingBlockStartMd
|
|
120
|
-
${this.paddingBlockStartLg
|
|
121
|
-
${this.paddingBlockStartXl
|
|
122
|
-
${this.paddingBlockEnd
|
|
123
|
-
${this.paddingBlockEndXs
|
|
124
|
-
${this.paddingBlockEndSm
|
|
125
|
-
${this.paddingBlockEndMd
|
|
126
|
-
${this.paddingBlockEndLg
|
|
127
|
-
${this.paddingBlockEndXl
|
|
128
|
-
${this.paddingInlineStart
|
|
129
|
-
${this.paddingInlineStartXs
|
|
130
|
-
${this.paddingInlineStartSm
|
|
131
|
-
${this.paddingInlineStartMd
|
|
132
|
-
${this.paddingInlineStartLg
|
|
133
|
-
${this.paddingInlineStartXl
|
|
134
|
-
${this.paddingInlineEnd
|
|
135
|
-
${this.paddingInlineEndXs
|
|
136
|
-
${this.paddingInlineEndSm
|
|
137
|
-
${this.paddingInlineEndMd
|
|
138
|
-
${this.paddingInlineEndLg
|
|
139
|
-
${this.paddingInlineEndXl
|
|
140
|
-
${this.shadow
|
|
141
|
-
${this.size
|
|
142
|
-
${this.sizeXs
|
|
143
|
-
${this.sizeSm
|
|
144
|
-
${this.sizeMd
|
|
145
|
-
${this.sizeLg
|
|
146
|
-
${this.sizeXl
|
|
73
|
+
${this.flex != null && this.flex.trim() !== '' && ['none', 'grow', 'shrink'].includes(this.flex) ? `pds-box--flex-${this.flex}` : ''}
|
|
74
|
+
${this.justifyContent != null && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}
|
|
75
|
+
${this.justifyContentXs != null && this.justifyContentXs.trim() !== '' ? `pds-justify-content-xs-${this.justifyContentXs}` : ''}
|
|
76
|
+
${this.justifyContentSm != null && this.justifyContentSm.trim() !== '' ? `pds-justify-content-sm-${this.justifyContentSm}` : ''}
|
|
77
|
+
${this.justifyContentMd != null && this.justifyContentMd.trim() !== '' ? `pds-justify-content-md-${this.justifyContentMd}` : ''}
|
|
78
|
+
${this.justifyContentLg != null && this.justifyContentLg.trim() !== '' ? `pds-justify-content-lg-${this.justifyContentLg}` : ''}
|
|
79
|
+
${this.justifyContentXl != null && this.justifyContentXl.trim() !== '' ? `pds-justify-content-xl-${this.justifyContentXl}` : ''}
|
|
80
|
+
${this.marginBlockStart != null && this.marginBlockStart.trim() !== '' ? `pds-margin-block-start-${this.marginBlockStart}` : ''}
|
|
81
|
+
${this.marginBlockStartXs != null && this.marginBlockStartXs.trim() !== '' ? `pds-margin-block-start-xs-${this.marginBlockStartXs}` : ''}
|
|
82
|
+
${this.marginBlockStartSm != null && this.marginBlockStartSm.trim() !== '' ? `pds-margin-block-start-sm-${this.marginBlockStartSm}` : ''}
|
|
83
|
+
${this.marginBlockStartMd != null && this.marginBlockStartMd.trim() !== '' ? `pds-margin-block-start-md-${this.marginBlockStartMd}` : ''}
|
|
84
|
+
${this.marginBlockStartLg != null && this.marginBlockStartLg.trim() !== '' ? `pds-margin-block-start-lg-${this.marginBlockStartLg}` : ''}
|
|
85
|
+
${this.marginBlockStartXl != null && this.marginBlockStartXl.trim() !== '' ? `pds-margin-block-start-xl-${this.marginBlockStartXl}` : ''}
|
|
86
|
+
${this.marginInlineStart != null && this.marginInlineStart.trim() !== '' ? `pds-margin-inline-start-${this.marginInlineStart}` : ''}
|
|
87
|
+
${this.marginInlineStartXs != null && this.marginInlineStartXs.trim() !== '' ? `pds-margin-inline-start-xs-${this.marginInlineStartXs}` : ''}
|
|
88
|
+
${this.marginInlineStartSm != null && this.marginInlineStartSm.trim() !== '' ? `pds-margin-inline-start-sm-${this.marginInlineStartSm}` : ''}
|
|
89
|
+
${this.marginInlineStartMd != null && this.marginInlineStartMd.trim() !== '' ? `pds-margin-inline-start-md-${this.marginInlineStartMd}` : ''}
|
|
90
|
+
${this.marginInlineStartLg != null && this.marginInlineStartLg.trim() !== '' ? `pds-margin-inline-start-lg-${this.marginInlineStartLg}` : ''}
|
|
91
|
+
${this.marginInlineStartXl != null && this.marginInlineStartXl.trim() !== '' ? `pds-margin-inline-start-xl-${this.marginInlineStartXl}` : ''}
|
|
92
|
+
${this.marginInlineEnd != null && this.marginInlineEnd.trim() !== '' ? `pds-margin-inline-end-${this.marginInlineEnd}` : ''}
|
|
93
|
+
${this.marginInlineEndXs != null && this.marginInlineEndXs.trim() !== '' ? `pds-margin-inline-end-xs-${this.marginInlineEndXs}` : ''}
|
|
94
|
+
${this.marginInlineEndSm != null && this.marginInlineEndSm.trim() !== '' ? `pds-margin-inline-end-sm-${this.marginInlineEndSm}` : ''}
|
|
95
|
+
${this.marginInlineEndMd != null && this.marginInlineEndMd.trim() !== '' ? `pds-margin-inline-end-md-${this.marginInlineEndMd}` : ''}
|
|
96
|
+
${this.marginInlineEndLg != null && this.marginInlineEndLg.trim() !== '' ? `pds-margin-inline-end-lg-${this.marginInlineEndLg}` : ''}
|
|
97
|
+
${this.marginInlineEndXl != null && this.marginInlineEndXl.trim() !== '' ? `pds-margin-inline-end-xl-${this.marginInlineEndXl}` : ''}
|
|
98
|
+
${this.marginBlockEnd != null && this.marginBlockEnd.trim() !== '' ? `pds-margin-block-end-${this.marginBlockEnd}` : ''}
|
|
99
|
+
${this.marginBlockEndXs != null && this.marginBlockEndXs.trim() !== '' ? `pds-margin-block-end-xs-${this.marginBlockEndXs}` : ''}
|
|
100
|
+
${this.marginBlockEndSm != null && this.marginBlockEndSm.trim() !== '' ? `pds-margin-block-end-sm-${this.marginBlockEndSm}` : ''}
|
|
101
|
+
${this.marginBlockEndMd != null && this.marginBlockEndMd.trim() !== '' ? `pds-margin-block-end-md-${this.marginBlockEndMd}` : ''}
|
|
102
|
+
${this.marginBlockEndLg != null && this.marginBlockEndLg.trim() !== '' ? `pds-margin-block-end-lg-${this.marginBlockEndLg}` : ''}
|
|
103
|
+
${this.marginBlockEndXl != null && this.marginBlockEndXl.trim() !== '' ? `pds-margin-block-end-xl-${this.marginBlockEndXl}` : ''}
|
|
104
|
+
${this.offset != null && this.offset.trim() !== '' ? `pds-box-offset-${this.offset}` : ''}
|
|
105
|
+
${this.offsetXs != null && this.offsetXs.trim() !== '' ? `pds-box-offset-xs-${this.offsetXs}` : ''}
|
|
106
|
+
${this.offsetSm != null && this.offsetSm.trim() !== '' ? `pds-box-offset-sm-${this.offsetSm}` : ''}
|
|
107
|
+
${this.offsetMd != null && this.offsetMd.trim() !== '' ? `pds-box-offset-md-${this.offsetMd}` : ''}
|
|
108
|
+
${this.offsetLg != null && this.offsetLg.trim() !== '' ? `pds-box-offset-lg-${this.offsetLg}` : ''}
|
|
109
|
+
${this.offsetXl != null && this.offsetXl.trim() !== '' ? `pds-box-offset-xl-${this.offsetXl}` : ''}
|
|
110
|
+
${this.padding != null && this.padding.trim() !== '' ? `pds-padding-${this.padding}` : ''}
|
|
111
|
+
${this.paddingXs != null && this.paddingXs.trim() !== '' ? `pds-padding-xs-${this.paddingXs}` : ''}
|
|
112
|
+
${this.paddingSm != null && this.paddingSm.trim() !== '' ? `pds-padding-sm-${this.paddingSm}` : ''}
|
|
113
|
+
${this.paddingMd != null && this.paddingMd.trim() !== '' ? `pds-padding-md-${this.paddingMd}` : ''}
|
|
114
|
+
${this.paddingLg != null && this.paddingLg.trim() !== '' ? `pds-padding-lg-${this.paddingLg}` : ''}
|
|
115
|
+
${this.paddingXl != null && this.paddingXl.trim() !== '' ? `pds-padding-xl-${this.paddingXl}` : ''}
|
|
116
|
+
${this.paddingBlockStart != null && this.paddingBlockStart.trim() !== '' ? `pds-padding-block-start-${this.paddingBlockStart}` : ''}
|
|
117
|
+
${this.paddingBlockStartXs != null && this.paddingBlockStartXs.trim() !== '' ? `pds-padding-block-start-xs-${this.paddingBlockStartXs}` : ''}
|
|
118
|
+
${this.paddingBlockStartSm != null && this.paddingBlockStartSm.trim() !== '' ? `pds-padding-block-start-sm-${this.paddingBlockStartSm}` : ''}
|
|
119
|
+
${this.paddingBlockStartMd != null && this.paddingBlockStartMd.trim() !== '' ? `pds-padding-block-start-md-${this.paddingBlockStartMd}` : ''}
|
|
120
|
+
${this.paddingBlockStartLg != null && this.paddingBlockStartLg.trim() !== '' ? `pds-padding-block-start-lg-${this.paddingBlockStartLg}` : ''}
|
|
121
|
+
${this.paddingBlockStartXl != null && this.paddingBlockStartXl.trim() !== '' ? `pds-padding-block-start-xl-${this.paddingBlockStartXl}` : ''}
|
|
122
|
+
${this.paddingBlockEnd != null && this.paddingBlockEnd.trim() !== '' ? `pds-padding-block-end-${this.paddingBlockEnd}` : ''}
|
|
123
|
+
${this.paddingBlockEndXs != null && this.paddingBlockEndXs.trim() !== '' ? `pds-padding-block-end-xs-${this.paddingBlockEndXs}` : ''}
|
|
124
|
+
${this.paddingBlockEndSm != null && this.paddingBlockEndSm.trim() !== '' ? `pds-padding-block-end-sm-${this.paddingBlockEndSm}` : ''}
|
|
125
|
+
${this.paddingBlockEndMd != null && this.paddingBlockEndMd.trim() !== '' ? `pds-padding-block-end-md-${this.paddingBlockEndMd}` : ''}
|
|
126
|
+
${this.paddingBlockEndLg != null && this.paddingBlockEndLg.trim() !== '' ? `pds-padding-block-end-lg-${this.paddingBlockEndLg}` : ''}
|
|
127
|
+
${this.paddingBlockEndXl != null && this.paddingBlockEndXl.trim() !== '' ? `pds-padding-block-end-xl-${this.paddingBlockEndXl}` : ''}
|
|
128
|
+
${this.paddingInlineStart != null && this.paddingInlineStart.trim() !== '' ? `pds-padding-inline-start-${this.paddingInlineStart}` : ''}
|
|
129
|
+
${this.paddingInlineStartXs != null && this.paddingInlineStartXs.trim() !== '' ? `pds-padding-inline-start-xs-${this.paddingInlineStartXs}` : ''}
|
|
130
|
+
${this.paddingInlineStartSm != null && this.paddingInlineStartSm.trim() !== '' ? `pds-padding-inline-start-sm-${this.paddingInlineStartSm}` : ''}
|
|
131
|
+
${this.paddingInlineStartMd != null && this.paddingInlineStartMd.trim() !== '' ? `pds-padding-inline-start-md-${this.paddingInlineStartMd}` : ''}
|
|
132
|
+
${this.paddingInlineStartLg != null && this.paddingInlineStartLg.trim() !== '' ? `pds-padding-inline-start-lg-${this.paddingInlineStartLg}` : ''}
|
|
133
|
+
${this.paddingInlineStartXl != null && this.paddingInlineStartXl.trim() !== '' ? `pds-padding-inline-start-xl-${this.paddingInlineStartXl}` : ''}
|
|
134
|
+
${this.paddingInlineEnd != null && this.paddingInlineEnd.trim() !== '' ? `pds-padding-inline-end-${this.paddingInlineEnd}` : ''}
|
|
135
|
+
${this.paddingInlineEndXs != null && this.paddingInlineEndXs.trim() !== '' ? `pds-padding-inline-end-xs-${this.paddingInlineEndXs}` : ''}
|
|
136
|
+
${this.paddingInlineEndSm != null && this.paddingInlineEndSm.trim() !== '' ? `pds-padding-inline-end-sm-${this.paddingInlineEndSm}` : ''}
|
|
137
|
+
${this.paddingInlineEndMd != null && this.paddingInlineEndMd.trim() !== '' ? `pds-padding-inline-end-md-${this.paddingInlineEndMd}` : ''}
|
|
138
|
+
${this.paddingInlineEndLg != null && this.paddingInlineEndLg.trim() !== '' ? `pds-padding-inline-end-lg-${this.paddingInlineEndLg}` : ''}
|
|
139
|
+
${this.paddingInlineEndXl != null && this.paddingInlineEndXl.trim() !== '' ? `pds-padding-inline-end-xl-${this.paddingInlineEndXl}` : ''}
|
|
140
|
+
${this.shadow != null && this.shadow.trim() !== '' ? `pds-shadow-${this.shadow}` : ''}
|
|
141
|
+
${this.size != null && this.size.trim() !== '' ? `pds-box pds-box-${this.size}` : ''}
|
|
142
|
+
${this.sizeXs != null && this.sizeXs.trim() !== '' ? `pds-box-xs-${this.sizeXs}` : ''}
|
|
143
|
+
${this.sizeSm != null && this.sizeSm.trim() !== '' ? `pds-box-sm-${this.sizeSm}` : ''}
|
|
144
|
+
${this.sizeMd != null && this.sizeMd.trim() !== '' ? `pds-box-md-${this.sizeMd}` : ''}
|
|
145
|
+
${this.sizeLg != null && this.sizeLg.trim() !== '' ? `pds-box-lg-${this.sizeLg}` : ''}
|
|
146
|
+
${this.sizeXl != null && this.sizeXl.trim() !== '' ? `pds-box-xl-${this.sizeXl}` : ''}
|
|
147
147
|
${this.size == undefined &&
|
|
148
148
|
this.sizeSm == undefined &&
|
|
149
149
|
this.sizeMd == undefined &&
|
|
@@ -155,7 +155,7 @@ const PdsBox = class {
|
|
|
155
155
|
const normalizedBorder = normalizeColorValue(this.borderColor);
|
|
156
156
|
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 }));
|
|
157
157
|
this.hostKeeper.record(boxClasses, boxInlineStyles);
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: '8a1348247b5a4c546759232f0f155721798797e5', class: boxClasses, style: boxInlineStyles }));
|
|
159
159
|
}
|
|
160
160
|
get el() { return getElement(this); }
|
|
161
161
|
};
|
|
@@ -6,7 +6,7 @@ import './keep-hydrated-BLG6RDBt.js';
|
|
|
6
6
|
|
|
7
7
|
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)}`;
|
|
8
8
|
|
|
9
|
-
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)}`;
|
|
9
|
+
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)}`;
|
|
10
10
|
|
|
11
11
|
const PdsCheckbox = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -103,6 +103,18 @@ const PdsCheckbox = class {
|
|
|
103
103
|
this.checked = state === (this.value || 'on');
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Form Associated Custom Elements API: Called when the form is disabled
|
|
108
|
+
*/
|
|
109
|
+
formDisabledCallback(disabled) {
|
|
110
|
+
// Also fires when this element's own `disabled` attribute is merely present, even as the
|
|
111
|
+
// literal string "false" (a consumer's or React's attribute serialization can write that) —
|
|
112
|
+
// the platform treats any value as disabled, independent of fieldset state. A real disabled
|
|
113
|
+
// fieldset ancestor confirms this is genuinely that, not this element's own attribute.
|
|
114
|
+
if (disabled && !this.el.closest('fieldset[disabled]'))
|
|
115
|
+
return;
|
|
116
|
+
this.disabled = disabled;
|
|
117
|
+
}
|
|
106
118
|
componentWillLoad() {
|
|
107
119
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
108
120
|
this.updateHasLabelSlot();
|
|
@@ -110,9 +122,9 @@ const PdsCheckbox = class {
|
|
|
110
122
|
render() {
|
|
111
123
|
const hostClass = this.classNames();
|
|
112
124
|
this.hostKeeper.record(hostClass);
|
|
113
|
-
return (h(Host, { key: '
|
|
114
|
-
h("div", { key: '
|
|
115
|
-
h("div", { key: '
|
|
125
|
+
return (h(Host, { key: 'bbe09a5e9eb55f62b2921b09a04ddc9476a871ae', class: hostClass }, h("label", { key: 'fa1856d9306eb8c0c19618ea5e2619ea20c3c51d', htmlFor: this.componentId }, h("input", Object.assign({ key: '8537d97a8e69a17d0d563306dac179e393885dda', type: "checkbox", "aria-describedby": 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)), h("span", { key: 'e523922889c80a2d18243cb560cd855bab95803d', class: this.hideLabel ? 'visually-hidden' : '' }, h("slot", { key: 'b6ff34ecbc346d254a0211bfa610823feedb486b', name: "label", onSlotchange: this.updateHasLabelSlot }), !this.hasLabelSlot && this.label)), this.helperMessage &&
|
|
126
|
+
h("div", { key: '55dcca850dff0aa93d9ba63d6827d9155ac35dab', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
127
|
+
h("div", { key: '5af843679994d29f084d41e90e41e0939c951063', class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '10f7efe5d4b252d9dea6f398eff973ba32506898', icon: danger, size: "small" }), this.errorMessage)));
|
|
116
128
|
}
|
|
117
129
|
static get formAssociated() { return true; }
|
|
118
130
|
get el() { return getElement(this); }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-Cw9J31qd.js';
|
|
2
2
|
import { d as downSmall, r as remove } from './index-BJXk71tO.js';
|
|
3
3
|
import { H as HostStylingKeeper } from './attributes-WXw_I_uJ.js';
|
|
4
|
-
import { s as setupTruncationTooltip } from './truncation-tooltip-
|
|
4
|
+
import { s as setupTruncationTooltip } from './truncation-tooltip-DRXsdKk1.js';
|
|
5
5
|
import { n as normalizeColorValue } from './utils-OYK5-nwe.js';
|
|
6
6
|
import './keep-hydrated-BLG6RDBt.js';
|
|
7
7
|
import './floating-ui.dom-BPqJgIq6.js';
|
|
@@ -20,6 +20,26 @@ const SENTIMENT_DOT_COLORS = {
|
|
|
20
20
|
success: 'var(--pine-chip-color-success-dot)',
|
|
21
21
|
warning: 'var(--pine-chip-color-warning-dot)',
|
|
22
22
|
};
|
|
23
|
+
// Controls a chip can sit inside that already take focus, so a clipped label adds no tab stop of its own.
|
|
24
|
+
// Not any `[tabindex]`: a focusable scroll region full of chips would show every chip's tooltip at once.
|
|
25
|
+
const FOCUSABLE_WRAPPER = 'a[href], button, summary, pds-button, pds-link, pds-tab, pds-dropdown-menu-item, [role="option"]';
|
|
26
|
+
// Beside the listbox and level with the option, so the tooltip never covers the other options.
|
|
27
|
+
function besideListbox(wrapper) {
|
|
28
|
+
const option = (wrapper === null || wrapper === void 0 ? void 0 : wrapper.matches('[role="option"]')) ? wrapper : null;
|
|
29
|
+
const listbox = option === null || option === void 0 ? void 0 : option.closest('[role="listbox"]');
|
|
30
|
+
if (!option || !listbox)
|
|
31
|
+
return {};
|
|
32
|
+
return {
|
|
33
|
+
placement: 'right',
|
|
34
|
+
reference: {
|
|
35
|
+
getBoundingClientRect: () => {
|
|
36
|
+
const { top, bottom, height } = option.getBoundingClientRect();
|
|
37
|
+
const { left, right, width } = listbox.getBoundingClientRect();
|
|
38
|
+
return { x: left, y: top, top, left, bottom, right, width, height };
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
23
43
|
const PdsChip = class {
|
|
24
44
|
constructor(hostRef) {
|
|
25
45
|
registerInstance(this, hostRef);
|
|
@@ -54,6 +74,11 @@ const PdsChip = class {
|
|
|
54
74
|
}
|
|
55
75
|
connectedCallback() {
|
|
56
76
|
this.hostKeeper.connect(this.el);
|
|
77
|
+
// A moved chip reconnects without re-rendering, so componentDidRender won't re-bind what
|
|
78
|
+
// disconnectedCallback tore down. Before the first render there's no label, and it binds there.
|
|
79
|
+
if (this.maxWidth && this.labelTextEl) {
|
|
80
|
+
this.initTruncationTooltip();
|
|
81
|
+
}
|
|
57
82
|
}
|
|
58
83
|
// Bind (and re-bind) here, not just on load: changing variant/size remounts
|
|
59
84
|
// the label span, so the tooltip has to re-attach to the current node or it
|
|
@@ -78,16 +103,15 @@ const PdsChip = class {
|
|
|
78
103
|
initTruncationTooltip() {
|
|
79
104
|
this.destroyTruncationTooltip();
|
|
80
105
|
if (this.labelTextEl) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
contentEl: this.labelTextEl,
|
|
84
|
-
getTooltipText: () => this.el.textContent || '',
|
|
106
|
+
const wrapper = this.el.closest(FOCUSABLE_WRAPPER);
|
|
107
|
+
this.truncationCleanup = setupTruncationTooltip(Object.assign({ hostEl: this.el, contentEl: this.labelTextEl, getTooltipText: () => this.el.textContent || '',
|
|
85
108
|
// The dropdown variant's label span already sits inside
|
|
86
109
|
// `<button class="pds-chip__button">`, which is already focusable and
|
|
87
110
|
// bubbles focusin to the host — a tabindex on the span too would nest
|
|
88
111
|
// a second tab stop inside the button.
|
|
89
|
-
manageTabIndex: this.effectiveVariant !== 'dropdown',
|
|
90
|
-
|
|
112
|
+
manageTabIndex: this.effectiveVariant !== 'dropdown' && !wrapper,
|
|
113
|
+
// A wrapping control sits outside the host, so its focus never reaches the host's listener.
|
|
114
|
+
focusEl: wrapper !== null && wrapper !== void 0 ? wrapper : this.el }, besideListbox(wrapper)));
|
|
91
115
|
this.tooltipBoundEl = this.labelTextEl;
|
|
92
116
|
}
|
|
93
117
|
}
|
|
@@ -144,7 +168,8 @@ const PdsChip = class {
|
|
|
144
168
|
// label span already sits inside `<button class="pds-chip__button">`,
|
|
145
169
|
// which is already focusable and bubbles focusin to the host, so
|
|
146
170
|
// initTruncationTooltip passes `manageTabIndex: false` there to avoid
|
|
147
|
-
// nesting a second tab stop inside the button.
|
|
171
|
+
// nesting a second tab stop inside the button. The same goes for a chip
|
|
172
|
+
// inside a consumer's own focusable control (FOCUSABLE_WRAPPER).
|
|
148
173
|
const chipContent = isDropdown ? (h("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null)), h("pds-icon", { icon: downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (h("span", { class: "pds-chip__label" }, this.icon && h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null))));
|
|
149
174
|
return chipContent;
|
|
150
175
|
}
|
|
@@ -218,7 +243,7 @@ const PdsChip = class {
|
|
|
218
243
|
const hostClass = this.classNames();
|
|
219
244
|
const hostStyles = this.hostStyles;
|
|
220
245
|
this.hostKeeper.record(hostClass, hostStyles);
|
|
221
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: 'f82d84a7f0a4f1c980d47bf75cd4ffeef042607d', class: hostClass, id: this.componentId, style: hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
222
247
|
}
|
|
223
248
|
get el() { return getElement(this); }
|
|
224
249
|
};
|
|
@@ -2153,6 +2153,9 @@ const PdsCombobox = class {
|
|
|
2153
2153
|
};
|
|
2154
2154
|
// Handler for button trigger click
|
|
2155
2155
|
this.onButtonTriggerClick = () => {
|
|
2156
|
+
// The button and chip triggers are divs, so a click reaches them even while disabled.
|
|
2157
|
+
if (this.disabled)
|
|
2158
|
+
return;
|
|
2156
2159
|
this.isOpen = !this.isOpen;
|
|
2157
2160
|
if (this.isOpen) {
|
|
2158
2161
|
this.prepareExpandFilterListOnOpen();
|
|
@@ -2172,6 +2175,13 @@ const PdsCombobox = class {
|
|
|
2172
2175
|
};
|
|
2173
2176
|
// Handler for button trigger keyboard events
|
|
2174
2177
|
this.onButtonTriggerKeyDown = (e) => {
|
|
2178
|
+
// Disabled takes it out of the tab order, but setFocus() or a click can still focus it.
|
|
2179
|
+
if (this.disabled) {
|
|
2180
|
+
// Keep Space from scrolling the page, as on a native disabled button.
|
|
2181
|
+
if (e.key === ' ')
|
|
2182
|
+
e.preventDefault();
|
|
2183
|
+
return;
|
|
2184
|
+
}
|
|
2175
2185
|
// Escape closes an open group before the dropdown. Other keys reach the tree through handleKeyDown.
|
|
2176
2186
|
if (this.isOpen && e.key === 'Escape' && this.handleGroupedPanelKey(e))
|
|
2177
2187
|
return;
|
|
@@ -2192,8 +2202,9 @@ const PdsCombobox = class {
|
|
|
2192
2202
|
}, 0);
|
|
2193
2203
|
}
|
|
2194
2204
|
else if (e.key === 'Escape') {
|
|
2195
|
-
|
|
2205
|
+
// Only an open dropdown claims Escape; a closed one leaves it to a modal or popover around it.
|
|
2196
2206
|
if (this.isOpen) {
|
|
2207
|
+
e.preventDefault();
|
|
2197
2208
|
this.isOpen = false;
|
|
2198
2209
|
this.highlightedIndex = -1;
|
|
2199
2210
|
this.clearExpandFilterList();
|
|
@@ -2304,6 +2315,18 @@ const PdsCombobox = class {
|
|
|
2304
2315
|
this.internals = this.el.attachInternals();
|
|
2305
2316
|
}
|
|
2306
2317
|
}
|
|
2318
|
+
/**
|
|
2319
|
+
* Form Associated Custom Elements API: Called when the form is disabled
|
|
2320
|
+
*/
|
|
2321
|
+
formDisabledCallback(disabled) {
|
|
2322
|
+
// Also fires when this element's own `disabled` attribute is merely present, even as the
|
|
2323
|
+
// literal string "false" (a consumer's or React's attribute serialization can write that) —
|
|
2324
|
+
// the platform treats any value as disabled, independent of fieldset state. A real disabled
|
|
2325
|
+
// fieldset ancestor confirms this is genuinely that, not this element's own attribute.
|
|
2326
|
+
if (disabled && !this.el.closest('fieldset[disabled]'))
|
|
2327
|
+
return;
|
|
2328
|
+
this.disabled = disabled;
|
|
2329
|
+
}
|
|
2307
2330
|
componentWillLoad() {
|
|
2308
2331
|
this.originalSearchEmitter = this.pdsComboboxSearch;
|
|
2309
2332
|
this.updateOptions();
|
|
@@ -2438,6 +2461,22 @@ const PdsCombobox = class {
|
|
|
2438
2461
|
if (this.isOpen && this.hidesPanelSearch && this.panelTreeEl)
|
|
2439
2462
|
this.focusPanel(this.panelTreeEl);
|
|
2440
2463
|
}
|
|
2464
|
+
disabledChanged(disabled) {
|
|
2465
|
+
var _a, _b, _c, _d, _e;
|
|
2466
|
+
if (!disabled || !this.isOpen)
|
|
2467
|
+
return;
|
|
2468
|
+
const shadowActive = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) !== null && _b !== void 0 ? _b : null;
|
|
2469
|
+
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)));
|
|
2470
|
+
this.isOpen = false;
|
|
2471
|
+
this.highlightedIndex = -1;
|
|
2472
|
+
this.isArrowKeyNavigationMode = false;
|
|
2473
|
+
this.clearExpandFilterList();
|
|
2474
|
+
this.updateAriaActiveDescendant();
|
|
2475
|
+
// Closing removes the search field or option that held focus. A button or chip trigger can still
|
|
2476
|
+
// take it (aria-disabled), so focus doesn't fall to the page; a disabled input can't, as natively.
|
|
2477
|
+
if (focusInDropdown && this.trigger !== 'input')
|
|
2478
|
+
this.restoreFocusToTrigger();
|
|
2479
|
+
}
|
|
2441
2480
|
isOpenChanged(isOpen) {
|
|
2442
2481
|
if (!isOpen) {
|
|
2443
2482
|
this.revealedGroupLabel = null;
|
|
@@ -3575,7 +3614,8 @@ const PdsCombobox = class {
|
|
|
3575
3614
|
return this.selectedOption ? this.selectedOption.value : null;
|
|
3576
3615
|
}
|
|
3577
3616
|
/**
|
|
3578
|
-
* Clears the selected value and resets the component.
|
|
3617
|
+
* Clears the selected value and resets the component. Works while disabled too, as setting a
|
|
3618
|
+
* native control's value from script does.
|
|
3579
3619
|
*/
|
|
3580
3620
|
async clear() {
|
|
3581
3621
|
const hadValue = this.value !== '' || this.displayText !== '';
|
|
@@ -4152,13 +4192,13 @@ const PdsCombobox = class {
|
|
|
4152
4192
|
]
|
|
4153
4193
|
.filter(Boolean)
|
|
4154
4194
|
.join(' ');
|
|
4155
|
-
return (h(Host, { key: '
|
|
4195
|
+
return (h(Host, { key: 'ead770a3b7ba531a1cfdc6b02aef6d7159481ed0', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '3ca6fd299acd1db8a0e476eee5f7606bc6153625', class: "pds-combobox", tabIndex: -1, onFocusout: this.onComboboxFocusOut, part: "combobox" }, this.hasVisibleLabel && (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' ? (h("div", { class: "pds-combobox__input-wrapper", style: { width: this.triggerWidth } }, h("input", { ref: el => {
|
|
4156
4196
|
this.inputEl = el;
|
|
4157
4197
|
this.triggerEl = el;
|
|
4158
4198
|
}, class: {
|
|
4159
4199
|
'pds-combobox__input': true,
|
|
4160
4200
|
'pds-combobox__input--invalid': this.isInvalid(),
|
|
4161
|
-
}, type: "text", role: "combobox", "aria-autocomplete": "list", "aria-haspopup": this.inputPopupRole === 'tree' ? 'tree' : undefined, "aria-controls": this.listboxId, "aria-describedby": 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" }), h("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (h("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": 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())) : (h("div", { class: triggerClass, style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": 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(), h("div", { key: '
|
|
4201
|
+
}, type: "text", role: "combobox", "aria-autocomplete": "list", "aria-haspopup": this.inputPopupRole === 'tree' ? 'tree' : undefined, "aria-controls": this.listboxId, "aria-describedby": 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" }), h("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (h("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": 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())) : (h("div", { class: triggerClass, style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": 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(), h("div", { key: '349af9dc6fdae018d4443b178e21b1627fcc85ca', style: { display: 'none' } }, h("slot", { key: '9af42db6d08f148b7d7b5e4b3199f7c9af7699a4', onSlotchange: () => this.updateOptions() })), this.renderDropdown(), this.groupDisplay !== 'inline' && [
|
|
4162
4202
|
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 : ''),
|
|
4163
4203
|
// Its own region: sharing one, revealing a row then opening it would leave the text the
|
|
4164
4204
|
// same, and opening the group would go unannounced.
|
|
@@ -4177,6 +4217,9 @@ const PdsCombobox = class {
|
|
|
4177
4217
|
"flyoutFallback": [{
|
|
4178
4218
|
"flyoutFallbackChanged": 0
|
|
4179
4219
|
}],
|
|
4220
|
+
"disabled": [{
|
|
4221
|
+
"disabledChanged": 0
|
|
4222
|
+
}],
|
|
4180
4223
|
"isOpen": [{
|
|
4181
4224
|
"isOpenChanged": 0
|
|
4182
4225
|
}],
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement
|
|
|
2
2
|
import { H as HostStylingKeeper } from './attributes-WXw_I_uJ.js';
|
|
3
3
|
import { a as copy } from './index-BJXk71tO.js';
|
|
4
4
|
import { r as restoreReflectedDefault } from './reflected-attribute-default-t3idJwV0.js';
|
|
5
|
-
import { s as setupTruncationTooltip } from './truncation-tooltip-
|
|
5
|
+
import { s as setupTruncationTooltip } from './truncation-tooltip-DRXsdKk1.js';
|
|
6
6
|
import './keep-hydrated-BLG6RDBt.js';
|
|
7
7
|
import './floating-ui.dom-BPqJgIq6.js';
|
|
8
8
|
|
|
@@ -47,6 +47,11 @@ const PdsCopytext = class {
|
|
|
47
47
|
}
|
|
48
48
|
connectedCallback() {
|
|
49
49
|
this.hostKeeper.connect(this.el);
|
|
50
|
+
// componentDidLoad runs once, so a moved element re-binds here what disconnectedCallback tore
|
|
51
|
+
// down. Before the first render there's no valueSpanEl yet, and componentDidLoad binds it.
|
|
52
|
+
if (this.truncate && this.valueSpanEl) {
|
|
53
|
+
this.initTruncationTooltip();
|
|
54
|
+
}
|
|
50
55
|
}
|
|
51
56
|
restoreBorderDefault(newValue) {
|
|
52
57
|
this.border = restoreReflectedDefault(this.el, 'border', newValue, true);
|
|
@@ -109,7 +114,7 @@ const PdsCopytext = class {
|
|
|
109
114
|
render() {
|
|
110
115
|
const hostClass = this.classNames();
|
|
111
116
|
this.hostKeeper.record(hostClass);
|
|
112
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: 'a3517b135fc3e3677e30b6ad5811c1170a819b65', class: hostClass, id: this.componentId }, h("pds-button", { key: '02f56bed02ed3963a3d80a92148d6619a845224a', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: '95fd1284e3d227b74dab613eb71f5385c3a0be29', ref: (el) => this.valueSpanEl = el }, this.value), h("pds-icon", { key: '21af67a8c9165e56d2d2b0cf19df7c7e3f290c72', "aria-hidden": "true", icon: copy, size: "16px" }))));
|
|
113
118
|
}
|
|
114
119
|
get el() { return getElement(this); }
|
|
115
120
|
static get watchers() { return {
|