@pine-ds/core 3.29.0 → 3.31.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/form.js +1 -1
- package/components/pds-avatar.js +1 -1
- package/components/pds-checkbox2.js +1 -1
- package/components/pds-combobox.js +2 -2
- package/components/pds-input.js +1 -1
- package/components/pds-modal-content.js +1 -1
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal.js +1 -1
- package/components/pds-multiselect.js +1 -1
- package/components/pds-radio-group.js +1 -1
- package/components/pds-radio.js +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-switch.js +1 -1
- package/components/pds-tab.js +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-textarea.js +1 -1
- package/components/pds-tooltip.js +1 -1
- package/components/reconnected-content.js +1 -0
- package/dist/cjs/{form-CpM5Z8q7.js → form-MhwfKTuo.js} +11 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/pds-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/pds-combobox.cjs.entry.js +34 -4
- package/dist/cjs/pds-input.cjs.entry.js +3 -3
- package/dist/cjs/pds-modal-content.cjs.entry.js +7 -2
- package/dist/cjs/pds-modal-footer.cjs.entry.js +7 -1
- package/dist/cjs/pds-modal-header.cjs.entry.js +7 -1
- package/dist/cjs/pds-modal.cjs.entry.js +40 -5
- package/dist/cjs/pds-multiselect.cjs.entry.js +5 -5
- package/dist/cjs/pds-radio-group.cjs.entry.js +20 -4
- package/dist/cjs/pds-radio.cjs.entry.js +17 -5
- package/dist/cjs/pds-select.cjs.entry.js +8 -3
- package/dist/cjs/pds-sortable-item.cjs.entry.js +14 -1
- package/dist/cjs/pds-switch.cjs.entry.js +4 -4
- package/dist/cjs/pds-tab.cjs.entry.js +5 -0
- package/dist/cjs/pds-tabpanel.cjs.entry.js +6 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +4 -4
- package/dist/cjs/pds-tooltip.cjs.entry.js +32 -2
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/cjs/reconnected-content-CpnEQcTp.js +29 -0
- package/dist/collection/components/pds-avatar/pds-avatar.js +3 -2
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +3 -3
- package/dist/collection/components/pds-combobox/pds-combobox.css +33 -1
- package/dist/collection/components/pds-combobox/pds-combobox.js +107 -3
- package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +60 -0
- package/dist/collection/components/pds-input/pds-input.css +1 -1
- package/dist/collection/components/pds-input/pds-input.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +7 -2
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +7 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +7 -1
- package/dist/collection/components/pds-modal/pds-modal.js +63 -5
- package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +77 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +2 -2
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
- package/dist/collection/components/pds-radio/pds-radio.css +6 -0
- package/dist/collection/components/pds-radio/pds-radio.js +15 -3
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +19 -3
- package/dist/collection/components/pds-select/pds-select.css +1 -1
- package/dist/collection/components/pds-select/pds-select.js +7 -2
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +14 -1
- package/dist/collection/components/pds-switch/pds-switch.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +5 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +6 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +3 -3
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +32 -2
- package/dist/collection/utils/form.js +11 -7
- package/dist/collection/utils/reconnected-content.js +25 -0
- package/dist/collection/utils/test/reconnect-safety.js +31 -0
- package/dist/docs.json +129 -1
- package/dist/esm/{form-C3xDZBme.js → form-BuRbS7Hp.js} +11 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pds-avatar.entry.js +2 -2
- package/dist/esm/pds-checkbox.entry.js +4 -4
- package/dist/esm/pds-combobox.entry.js +34 -4
- package/dist/esm/pds-input.entry.js +3 -3
- package/dist/esm/pds-modal-content.entry.js +7 -2
- package/dist/esm/pds-modal-footer.entry.js +8 -2
- package/dist/esm/pds-modal-header.entry.js +8 -2
- package/dist/esm/pds-modal.entry.js +40 -5
- package/dist/esm/pds-multiselect.entry.js +5 -5
- package/dist/esm/pds-radio-group.entry.js +20 -4
- package/dist/esm/pds-radio.entry.js +17 -5
- package/dist/esm/pds-select.entry.js +8 -3
- package/dist/esm/pds-sortable-item.entry.js +14 -1
- package/dist/esm/pds-switch.entry.js +4 -4
- package/dist/esm/pds-tab.entry.js +5 -0
- package/dist/esm/pds-tabpanel.entry.js +6 -1
- package/dist/esm/pds-textarea.entry.js +4 -4
- package/dist/esm/pds-tooltip.entry.js +32 -2
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm/reconnected-content-RFpTWV6r.js +27 -0
- package/dist/esm-es5/form-BuRbS7Hp.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +2 -2
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js +1 -1
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
- package/dist/esm-es5/pds-modal-header.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-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/reconnected-content-RFpTWV6r.js +1 -0
- package/dist/pine-core/p-08b0d298.entry.js +1 -0
- package/dist/pine-core/p-0aa85901.entry.js +2 -0
- package/dist/pine-core/p-16f13b17.entry.js +1 -0
- package/dist/pine-core/p-17d4a99a.system.entry.js +1 -0
- package/dist/pine-core/p-18ae43e3.entry.js +1 -0
- package/dist/pine-core/p-1b1ec833.system.entry.js +3 -0
- package/dist/pine-core/p-1b8ac76c.system.entry.js +1 -0
- package/dist/pine-core/p-1e87e72a.entry.js +1 -0
- package/dist/pine-core/p-2c5fe3d9.system.entry.js +1 -0
- package/dist/pine-core/{p-978b848b.system.entry.js → p-31679dbc.system.entry.js} +1 -1
- package/dist/pine-core/p-36fc1ade.system.entry.js +1 -0
- package/dist/pine-core/{p-5f4d2c5c.system.entry.js → p-3cece186.system.entry.js} +1 -1
- package/dist/pine-core/p-419e711c.entry.js +1 -0
- package/dist/pine-core/p-43268325.system.entry.js +1 -0
- package/dist/pine-core/p-5d1228cb.entry.js +1 -0
- package/dist/pine-core/p-6630f428.system.entry.js +1 -0
- package/dist/pine-core/{p-82af7d58.system.entry.js → p-69372e72.system.entry.js} +1 -1
- package/dist/pine-core/p-73619cfc.system.entry.js +1 -0
- package/dist/pine-core/p-73b40545.system.entry.js +1 -0
- package/dist/pine-core/p-7ad6f313.entry.js +1 -0
- package/dist/pine-core/p-7e146a45.entry.js +1 -0
- package/dist/pine-core/{p-ba54470a.system.entry.js → p-86d12f3c.system.entry.js} +1 -1
- package/dist/pine-core/p-950dd70e.system.entry.js +1 -0
- package/dist/pine-core/p-B1rytYxP.system.js +1 -1
- package/dist/pine-core/p-BbXp4qBM.system.js +1 -0
- package/dist/pine-core/p-BuRbS7Hp.js +1 -0
- package/dist/pine-core/p-BxIzb-Wc.system.js +1 -0
- package/dist/pine-core/p-RFpTWV6r.js +1 -0
- package/dist/pine-core/p-a0edb4ad.entry.js +1 -0
- package/dist/pine-core/p-af1e2778.entry.js +1 -0
- package/dist/pine-core/p-b1e5e8b1.system.entry.js +1 -0
- package/dist/pine-core/p-b3b44b80.entry.js +1 -0
- package/dist/pine-core/p-b759dc21.entry.js +1 -0
- package/dist/pine-core/{p-dc48f603.entry.js → p-caf73216.entry.js} +1 -1
- package/dist/pine-core/p-cd2370d0.system.entry.js +1 -0
- package/dist/pine-core/{p-3c6300a8.system.entry.js → p-cd407bed.system.entry.js} +1 -1
- package/dist/pine-core/p-d12a93d6.entry.js +1 -0
- package/dist/pine-core/p-dfa70d20.entry.js +1 -0
- package/dist/pine-core/p-f145e018.entry.js +1 -0
- package/dist/pine-core/p-f7cbdb81.system.entry.js +1 -0
- package/dist/pine-core/p-fef6694d.entry.js +1 -0
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-avatar/pds-avatar.d.ts +1 -0
- package/dist/types/components/pds-combobox/pds-combobox.d.ts +18 -0
- package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +1 -0
- package/dist/types/components/pds-modal/pds-modal-footer/pds-modal-footer.d.ts +2 -0
- package/dist/types/components/pds-modal/pds-modal-header/pds-modal-header.d.ts +2 -0
- package/dist/types/components/pds-modal/pds-modal.d.ts +11 -0
- package/dist/types/components/pds-radio/pds-radio.d.ts +1 -0
- package/dist/types/components/pds-radio-group/pds-radio-group.d.ts +1 -0
- package/dist/types/components/pds-select/pds-select.d.ts +1 -0
- package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +1 -0
- package/dist/types/components/pds-tabs/pds-tab/pds-tab.d.ts +1 -0
- package/dist/types/components/pds-tabs/pds-tabpanel/pds-tabpanel.d.ts +1 -0
- package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +42 -0
- package/dist/types/{home/runner/work/pine/pine → private/tmp/claude-501/-Users-qjason-Documents-GitHub/dc3bfd4f-fc9e-49b8-b152-4257ab4ca83c/scratchpad/pine-publish-backfill}/libs/core/.stencil/scripts/vscode-custom-data-generator.d.ts +1 -1
- package/dist/types/utils/form.d.ts +4 -1
- package/dist/types/utils/reconnected-content.d.ts +14 -0
- package/dist/types/utils/test/reconnect-safety.d.ts +11 -0
- package/dist/vscode.html-data.json +10909 -0
- package/hydrate/index.js +248 -50
- package/hydrate/index.mjs +248 -50
- package/package.json +2 -2
- package/dist/esm-es5/form-C3xDZBme.js +0 -1
- package/dist/pine-core/p-02805a93.system.entry.js +0 -1
- package/dist/pine-core/p-02977c6f.entry.js +0 -1
- package/dist/pine-core/p-054f7011.entry.js +0 -1
- package/dist/pine-core/p-092a72d2.system.entry.js +0 -1
- package/dist/pine-core/p-0d6daa35.entry.js +0 -1
- package/dist/pine-core/p-12154189.system.entry.js +0 -1
- package/dist/pine-core/p-1deded6e.system.entry.js +0 -1
- package/dist/pine-core/p-1fb985bb.entry.js +0 -1
- package/dist/pine-core/p-2a74b396.entry.js +0 -1
- package/dist/pine-core/p-39ad92fc.entry.js +0 -1
- package/dist/pine-core/p-507e831f.system.entry.js +0 -1
- package/dist/pine-core/p-5c229a7f.entry.js +0 -1
- package/dist/pine-core/p-69e47ffc.system.entry.js +0 -1
- package/dist/pine-core/p-6fb68ad1.entry.js +0 -1
- package/dist/pine-core/p-72a1b563.system.entry.js +0 -1
- package/dist/pine-core/p-7a7954b2.system.entry.js +0 -1
- package/dist/pine-core/p-7d15b65e.entry.js +0 -1
- package/dist/pine-core/p-902b5790.entry.js +0 -2
- package/dist/pine-core/p-9aaee1e9.system.entry.js +0 -1
- package/dist/pine-core/p-9ba86e34.entry.js +0 -1
- package/dist/pine-core/p-9f041a63.system.entry.js +0 -3
- package/dist/pine-core/p-B1u-QvFn.system.js +0 -1
- package/dist/pine-core/p-C3xDZBme.js +0 -1
- package/dist/pine-core/p-b0674b8d.entry.js +0 -1
- package/dist/pine-core/p-c1932447.entry.js +0 -1
- package/dist/pine-core/p-ce715993.entry.js +0 -1
- package/dist/pine-core/p-d037308b.entry.js +0 -1
- package/dist/pine-core/p-e0fb06ea.system.entry.js +0 -1
- package/dist/pine-core/p-e4b69d10.entry.js +0 -1
- package/dist/pine-core/p-e81b4d04.system.entry.js +0 -1
- package/dist/pine-core/p-fb10caff.system.entry.js +0 -1
- package/dist/pine-core/p-ff3399ed.entry.js +0 -1
|
@@ -28,6 +28,16 @@ export declare class PdsModal {
|
|
|
28
28
|
* @default true
|
|
29
29
|
*/
|
|
30
30
|
scrollable: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the modal opens outside the browser top layer as a non-modal dialog.
|
|
33
|
+
* When `true` it opens with `dialog.show()` instead of `dialog.showModal()`, so
|
|
34
|
+
* overlays rendered elsewhere in the DOM (file pickers, editor menus) can display
|
|
35
|
+
* above it via `z-index`. The page is not made inert and focus is not trapped in
|
|
36
|
+
* this mode. Read when the modal opens; changing it while the modal is open is
|
|
37
|
+
* not supported.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
disableTopLayer: boolean;
|
|
31
41
|
/**
|
|
32
42
|
* Emitted when the modal is opened
|
|
33
43
|
*/
|
|
@@ -41,6 +51,7 @@ export declare class PdsModal {
|
|
|
41
51
|
*/
|
|
42
52
|
focusableElementsArray: HTMLElement[];
|
|
43
53
|
componentDidLoad(): void;
|
|
54
|
+
componentDidRender(): void;
|
|
44
55
|
disconnectedCallback(): void;
|
|
45
56
|
handleOpenChange(newValue: boolean): void;
|
|
46
57
|
/**
|
|
@@ -58,7 +58,10 @@ export declare class PdsTooltip {
|
|
|
58
58
|
handleOpenToggle(newValue: boolean, oldValue: boolean): void;
|
|
59
59
|
componentWillLoad(): void;
|
|
60
60
|
componentDidLoad(): void;
|
|
61
|
+
private hasCheckedReconnect;
|
|
62
|
+
connectedCallback(): void;
|
|
61
63
|
disconnectedCallback(): void;
|
|
64
|
+
private unwrapReconnectedSlots;
|
|
62
65
|
componentDidRender(): void;
|
|
63
66
|
/**
|
|
64
67
|
* Shows the tooltip by enabling the opened property
|
|
@@ -942,6 +942,10 @@ export namespace Components {
|
|
|
942
942
|
* @default 'neutral'
|
|
943
943
|
*/
|
|
944
944
|
"chipSentiment": ChipSentimentType;
|
|
945
|
+
/**
|
|
946
|
+
* Clears the selected value and resets the component.
|
|
947
|
+
*/
|
|
948
|
+
"clear": () => Promise<void>;
|
|
945
949
|
/**
|
|
946
950
|
* A unique identifier used for the underlying component `id` attribute.
|
|
947
951
|
*/
|
|
@@ -981,6 +985,10 @@ export namespace Components {
|
|
|
981
985
|
* @default '236px'
|
|
982
986
|
*/
|
|
983
987
|
"dropdownWidth": string;
|
|
988
|
+
/**
|
|
989
|
+
* Error message to display.
|
|
990
|
+
*/
|
|
991
|
+
"errorMessage"?: string;
|
|
984
992
|
/**
|
|
985
993
|
* Timeout in milliseconds for async fetch requests.
|
|
986
994
|
* @default 30000
|
|
@@ -994,11 +1002,19 @@ export namespace Components {
|
|
|
994
1002
|
* Gets the value of the currently selected option.
|
|
995
1003
|
*/
|
|
996
1004
|
"getSelectedValue": () => Promise<string | null>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Helper message to display below the combobox.
|
|
1007
|
+
*/
|
|
1008
|
+
"helperMessage"?: string;
|
|
997
1009
|
/**
|
|
998
1010
|
* Visually hides the label text for instances where only the combobox should be displayed. The visible `<label>` is omitted (same pattern as `pds-select`) so label spacing does not reserve layout; the trigger uses `aria-label` so the name stays available to assistive technology.
|
|
999
1011
|
* @default false
|
|
1000
1012
|
*/
|
|
1001
1013
|
"hideLabel": boolean;
|
|
1014
|
+
/**
|
|
1015
|
+
* If true, the combobox is in an invalid state.
|
|
1016
|
+
*/
|
|
1017
|
+
"invalid"?: boolean;
|
|
1002
1018
|
/**
|
|
1003
1019
|
* Text to be displayed as the combobox label.
|
|
1004
1020
|
*/
|
|
@@ -1464,6 +1480,11 @@ export namespace Components {
|
|
|
1464
1480
|
* A unique identifier used for the underlying component `id` attribute.
|
|
1465
1481
|
*/
|
|
1466
1482
|
"componentId": string;
|
|
1483
|
+
/**
|
|
1484
|
+
* Whether the modal opens outside the browser top layer as a non-modal dialog. When `true` it opens with `dialog.show()` instead of `dialog.showModal()`, so overlays rendered elsewhere in the DOM (file pickers, editor menus) can display above it via `z-index`. The page is not made inert and focus is not trapped in this mode. Read when the modal opens; changing it while the modal is open is not supported.
|
|
1485
|
+
* @default false
|
|
1486
|
+
*/
|
|
1487
|
+
"disableTopLayer": boolean;
|
|
1467
1488
|
/**
|
|
1468
1489
|
* Closes the modal
|
|
1469
1490
|
*/
|
|
@@ -4240,6 +4261,10 @@ declare namespace LocalJSX {
|
|
|
4240
4261
|
* @default '236px'
|
|
4241
4262
|
*/
|
|
4242
4263
|
"dropdownWidth"?: string;
|
|
4264
|
+
/**
|
|
4265
|
+
* Error message to display.
|
|
4266
|
+
*/
|
|
4267
|
+
"errorMessage"?: string;
|
|
4243
4268
|
/**
|
|
4244
4269
|
* Timeout in milliseconds for async fetch requests.
|
|
4245
4270
|
* @default 30000
|
|
@@ -4253,11 +4278,19 @@ declare namespace LocalJSX {
|
|
|
4253
4278
|
* Function to format async results. Receives raw API response item.
|
|
4254
4279
|
*/
|
|
4255
4280
|
"formatResult"?: (item: unknown) => ComboboxOption;
|
|
4281
|
+
/**
|
|
4282
|
+
* Helper message to display below the combobox.
|
|
4283
|
+
*/
|
|
4284
|
+
"helperMessage"?: string;
|
|
4256
4285
|
/**
|
|
4257
4286
|
* Visually hides the label text for instances where only the combobox should be displayed. The visible `<label>` is omitted (same pattern as `pds-select`) so label spacing does not reserve layout; the trigger uses `aria-label` so the name stays available to assistive technology.
|
|
4258
4287
|
* @default false
|
|
4259
4288
|
*/
|
|
4260
4289
|
"hideLabel"?: boolean;
|
|
4290
|
+
/**
|
|
4291
|
+
* If true, the combobox is in an invalid state.
|
|
4292
|
+
*/
|
|
4293
|
+
"invalid"?: boolean;
|
|
4261
4294
|
/**
|
|
4262
4295
|
* Text to be displayed as the combobox label.
|
|
4263
4296
|
*/
|
|
@@ -4759,6 +4792,11 @@ declare namespace LocalJSX {
|
|
|
4759
4792
|
* A unique identifier used for the underlying component `id` attribute.
|
|
4760
4793
|
*/
|
|
4761
4794
|
"componentId"?: string;
|
|
4795
|
+
/**
|
|
4796
|
+
* Whether the modal opens outside the browser top layer as a non-modal dialog. When `true` it opens with `dialog.show()` instead of `dialog.showModal()`, so overlays rendered elsewhere in the DOM (file pickers, editor menus) can display above it via `z-index`. The page is not made inert and focus is not trapped in this mode. Read when the modal opens; changing it while the modal is open is not supported.
|
|
4797
|
+
* @default false
|
|
4798
|
+
*/
|
|
4799
|
+
"disableTopLayer"?: boolean;
|
|
4762
4800
|
/**
|
|
4763
4801
|
* Emitted when the modal is closed
|
|
4764
4802
|
*/
|
|
@@ -6049,10 +6087,13 @@ declare namespace LocalJSX {
|
|
|
6049
6087
|
"customOptionLayouts": boolean;
|
|
6050
6088
|
"customTriggerContent": boolean;
|
|
6051
6089
|
"disabled": boolean;
|
|
6090
|
+
"errorMessage": string;
|
|
6052
6091
|
"dropdownPlacement": 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
6053
6092
|
"dropdownWidth": string;
|
|
6054
6093
|
"dropdownMount": 'host' | 'body';
|
|
6094
|
+
"helperMessage": string;
|
|
6055
6095
|
"hideLabel": boolean;
|
|
6096
|
+
"invalid": boolean;
|
|
6056
6097
|
"label": string;
|
|
6057
6098
|
"maxHeight": string;
|
|
6058
6099
|
"mode": 'filter' | 'select-only';
|
|
@@ -6186,6 +6227,7 @@ declare namespace LocalJSX {
|
|
|
6186
6227
|
"open": boolean;
|
|
6187
6228
|
"size": 'sm' | 'md' | 'lg' | 'fullscreen';
|
|
6188
6229
|
"scrollable": boolean;
|
|
6230
|
+
"disableTopLayer": boolean;
|
|
6189
6231
|
}
|
|
6190
6232
|
interface PdsModalContentAttributes {
|
|
6191
6233
|
"border": 'none' | 'both' | 'top' | 'bottom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonDocs } from '
|
|
1
|
+
import { JsonDocs } from '../../../../../../../../../../../stencil-public-runtime';
|
|
2
2
|
export declare function generateVSCodeCustomData(docs: JsonDocs, outputPath: string): void;
|
|
3
3
|
export default function vscodeCustomDataOutputTarget(outputPath?: string): {
|
|
4
4
|
type: "docs-custom";
|
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
export declare const messageId: (id: string, messageType: string) => string;
|
|
5
5
|
/**
|
|
6
6
|
* Assign aria-description id to relate messages with form element
|
|
7
|
+
*
|
|
8
|
+
* Returns the error message id when invalid, otherwise the helper message id.
|
|
9
|
+
* Pass only messages the component renders — a described id must exist in the DOM.
|
|
7
10
|
*/
|
|
8
|
-
export declare const assignDescription: (id: string, invalid: boolean, helperMessage
|
|
11
|
+
export declare const assignDescription: (id: string, invalid: boolean, helperMessage?: string, errorMessage?: string) => string;
|
|
9
12
|
/**
|
|
10
13
|
* Updates the `invalid` prop of a form element based on it's values validity
|
|
11
14
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unwraps a stale copy of a light-DOM (`shadow: false`) component's own wrapper,
|
|
3
|
+
* left behind when a page-cache (Turbo, browser bfcache) reconnect nests a
|
|
4
|
+
* component's previous render inside its freshly rendered one. Call from
|
|
5
|
+
* `componentDidRender` with the element that directly contains the rendered
|
|
6
|
+
* `<slot>` and the selector that identifies "another one of me." Unwraps in
|
|
7
|
+
* place (move-then-remove) so nested content is never lost.
|
|
8
|
+
*
|
|
9
|
+
* `contentSelector` is only needed when the wrapper itself further nests a
|
|
10
|
+
* separate content element (e.g. pds-tab's `<a class="pds-tab">` wrapping a
|
|
11
|
+
* `.pds-tab__content` div) — omit it when the wrapper's own children are the
|
|
12
|
+
* slotted content (e.g. pds-tabpanel's `.pds-tabpanel` div).
|
|
13
|
+
*/
|
|
14
|
+
export declare function unwrapReconnectedContent(container: Element | null, selector: string, contentSelector?: string): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic guard against the page-cache (Turbo, browser bfcache) reconnect bug class:
|
|
3
|
+
* a light-DOM (`shadow: false` or `scoped: true`) component that wraps its slotted
|
|
4
|
+
* content in a rendered element is reconnected over its own prior render, nesting
|
|
5
|
+
* (or duplicating, or losing) content.
|
|
6
|
+
*
|
|
7
|
+
* Hydrates `html`, re-parses the resulting markup the way a cache restore reconnects
|
|
8
|
+
* a component over its own output, and asserts no duplicate `id`s and no content
|
|
9
|
+
* loss or duplication survive the second pass.
|
|
10
|
+
*/
|
|
11
|
+
export declare function expectReconnectSafe(components: unknown[], html: string): Promise<void>;
|