@pure-ds/core 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/CSS-INTELLISENSE-LIMITATION.md +98 -0
  2. package/CSS-INTELLISENSE-QUICK-REF.md +238 -0
  3. package/INTELLISENSE.md +384 -0
  4. package/LICENSE +15 -0
  5. package/custom-elements-manifest.config.js +30 -0
  6. package/custom-elements.json +2003 -0
  7. package/dist/types/index.d.ts +2 -0
  8. package/dist/types/packages/pds-configurator/src/figma-export.d.ts +13 -0
  9. package/dist/types/packages/pds-configurator/src/figma-export.d.ts.map +1 -0
  10. package/dist/types/packages/pds-configurator/src/pds-config-form.d.ts +2 -0
  11. package/dist/types/packages/pds-configurator/src/pds-config-form.d.ts.map +1 -0
  12. package/dist/types/packages/pds-configurator/src/pds-configurator.d.ts +2 -0
  13. package/dist/types/packages/pds-configurator/src/pds-configurator.d.ts.map +1 -0
  14. package/dist/types/packages/pds-configurator/src/pds-demo.d.ts +2 -0
  15. package/dist/types/packages/pds-configurator/src/pds-demo.d.ts.map +1 -0
  16. package/dist/types/pds.config.d.ts +13 -0
  17. package/dist/types/pds.config.d.ts.map +1 -0
  18. package/dist/types/pds.d.ts +408 -0
  19. package/dist/types/public/assets/js/app.d.ts +2 -0
  20. package/dist/types/public/assets/js/app.d.ts.map +1 -0
  21. package/dist/types/public/assets/js/pds.d.ts +23 -0
  22. package/dist/types/public/assets/js/pds.d.ts.map +1 -0
  23. package/dist/types/public/assets/pds/components/pds-calendar.d.ts +23 -0
  24. package/dist/types/public/assets/pds/components/pds-calendar.d.ts.map +1 -0
  25. package/dist/types/public/assets/pds/components/pds-drawer.d.ts +2 -0
  26. package/dist/types/public/assets/pds/components/pds-drawer.d.ts.map +1 -0
  27. package/dist/types/public/assets/pds/components/pds-icon.d.ts +53 -0
  28. package/dist/types/public/assets/pds/components/pds-icon.d.ts.map +1 -0
  29. package/dist/types/public/assets/pds/components/pds-jsonform.d.ts +104 -0
  30. package/dist/types/public/assets/pds/components/pds-jsonform.d.ts.map +1 -0
  31. package/dist/types/public/assets/pds/components/pds-richtext.d.ts +121 -0
  32. package/dist/types/public/assets/pds/components/pds-richtext.d.ts.map +1 -0
  33. package/dist/types/public/assets/pds/components/pds-scrollrow.d.ts +61 -0
  34. package/dist/types/public/assets/pds/components/pds-scrollrow.d.ts.map +1 -0
  35. package/dist/types/public/assets/pds/components/pds-splitpanel.d.ts +1 -0
  36. package/dist/types/public/assets/pds/components/pds-splitpanel.d.ts.map +1 -0
  37. package/dist/types/public/assets/pds/components/pds-tabstrip.d.ts +39 -0
  38. package/dist/types/public/assets/pds/components/pds-tabstrip.d.ts.map +1 -0
  39. package/dist/types/public/assets/pds/components/pds-toaster.d.ts +111 -0
  40. package/dist/types/public/assets/pds/components/pds-toaster.d.ts.map +1 -0
  41. package/dist/types/public/assets/pds/components/pds-upload.d.ts +83 -0
  42. package/dist/types/public/assets/pds/components/pds-upload.d.ts.map +1 -0
  43. package/dist/types/src/js/app.d.ts +2 -0
  44. package/dist/types/src/js/app.d.ts.map +1 -0
  45. package/dist/types/src/js/common/ask.d.ts +22 -0
  46. package/dist/types/src/js/common/ask.d.ts.map +1 -0
  47. package/dist/types/src/js/common/common.d.ts +3 -0
  48. package/dist/types/src/js/common/common.d.ts.map +1 -0
  49. package/dist/types/src/js/common/font-loader.d.ts +24 -0
  50. package/dist/types/src/js/common/font-loader.d.ts.map +1 -0
  51. package/dist/types/src/js/common/msg.d.ts +3 -0
  52. package/dist/types/src/js/common/msg.d.ts.map +1 -0
  53. package/dist/types/src/js/lit.d.ts +25 -0
  54. package/dist/types/src/js/lit.d.ts.map +1 -0
  55. package/dist/types/src/js/pds-configurator/figma-export.d.ts +13 -0
  56. package/dist/types/src/js/pds-configurator/figma-export.d.ts.map +1 -0
  57. package/dist/types/src/js/pds-configurator/pds-config-form.d.ts +2 -0
  58. package/dist/types/src/js/pds-configurator/pds-config-form.d.ts.map +1 -0
  59. package/dist/types/src/js/pds-configurator/pds-configurator.d.ts +2 -0
  60. package/dist/types/src/js/pds-configurator/pds-configurator.d.ts.map +1 -0
  61. package/dist/types/src/js/pds-configurator/pds-demo.d.ts +2 -0
  62. package/dist/types/src/js/pds-configurator/pds-demo.d.ts.map +1 -0
  63. package/dist/types/src/js/pds-core/pds-config.d.ts +758 -0
  64. package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -0
  65. package/dist/types/src/js/pds-core/pds-enhancer-metadata.d.ts +6 -0
  66. package/dist/types/src/js/pds-core/pds-enhancer-metadata.d.ts.map +1 -0
  67. package/dist/types/src/js/pds-core/pds-enhancers.d.ts +14 -0
  68. package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -0
  69. package/dist/types/src/js/pds-core/pds-enums.d.ts +87 -0
  70. package/dist/types/src/js/pds-core/pds-enums.d.ts.map +1 -0
  71. package/dist/types/src/js/pds-core/pds-generator.d.ts +741 -0
  72. package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -0
  73. package/dist/types/src/js/pds-core/pds-ontology.d.ts +48 -0
  74. package/dist/types/src/js/pds-core/pds-ontology.d.ts.map +1 -0
  75. package/dist/types/src/js/pds-core/pds-paths.d.ts +37 -0
  76. package/dist/types/src/js/pds-core/pds-paths.d.ts.map +1 -0
  77. package/dist/types/src/js/pds-core/pds-query.d.ts +102 -0
  78. package/dist/types/src/js/pds-core/pds-query.d.ts.map +1 -0
  79. package/dist/types/src/js/pds-core/pds-registry.d.ts +40 -0
  80. package/dist/types/src/js/pds-core/pds-registry.d.ts.map +1 -0
  81. package/dist/types/src/js/pds.d.ts +109 -0
  82. package/dist/types/src/js/pds.d.ts.map +1 -0
  83. package/dist/types/src/pds-core/pds-api.d.ts +31 -0
  84. package/dist/types/src/pds-core/pds-api.d.ts.map +1 -0
  85. package/package.json +104 -0
  86. package/packages/pds-cli/README.md +15 -0
  87. package/packages/pds-cli/bin/generate-css-data.js +565 -0
  88. package/packages/pds-cli/bin/generate-manifest.js +352 -0
  89. package/packages/pds-cli/bin/pds-build-icons.js +152 -0
  90. package/packages/pds-cli/bin/pds-dx.js +114 -0
  91. package/packages/pds-cli/bin/pds-static.js +556 -0
  92. package/packages/pds-cli/bin/pds.js +127 -0
  93. package/packages/pds-cli/bin/postinstall.js +380 -0
  94. package/packages/pds-cli/bin/sync-assets.js +252 -0
  95. package/packages/pds-cli/lib/asset-roots.js +47 -0
  96. package/packages/pds-cli/lib/fs-writer.js +75 -0
  97. package/pds.css-data.json +5 -0
  98. package/pds.html-data.json +5 -0
  99. package/public/assets/js/app.js +5719 -0
  100. package/public/assets/js/lit.js +131 -0
  101. package/public/assets/js/pds.js +3423 -0
  102. package/public/assets/pds/components/pds-calendar.js +837 -0
  103. package/public/assets/pds/components/pds-drawer.js +857 -0
  104. package/public/assets/pds/components/pds-icon.js +338 -0
  105. package/public/assets/pds/components/pds-jsonform.js +1775 -0
  106. package/public/assets/pds/components/pds-richtext.js +1035 -0
  107. package/public/assets/pds/components/pds-scrollrow.js +331 -0
  108. package/public/assets/pds/components/pds-splitpanel.js +401 -0
  109. package/public/assets/pds/components/pds-tabstrip.js +251 -0
  110. package/public/assets/pds/components/pds-toaster.js +446 -0
  111. package/public/assets/pds/components/pds-upload.js +657 -0
  112. package/public/assets/pds/custom-elements.json +2003 -0
  113. package/public/assets/pds/icons/pds-icons.svg +498 -0
  114. package/public/assets/pds/pds-css-complete.json +1861 -0
  115. package/public/assets/pds/pds.css-data.json +2152 -0
  116. package/public/assets/pds/vscode-custom-data.json +824 -0
  117. package/readme.md +1870 -0
  118. package/src/js/pds-core/pds-config.js +1162 -0
  119. package/src/js/pds-core/pds-enhancer-metadata.js +75 -0
  120. package/src/js/pds-core/pds-enhancers.js +357 -0
  121. package/src/js/pds-core/pds-enums.js +86 -0
  122. package/src/js/pds-core/pds-generator.js +5317 -0
  123. package/src/js/pds-core/pds-ontology.js +256 -0
  124. package/src/js/pds-core/pds-paths.js +109 -0
  125. package/src/js/pds-core/pds-query.js +571 -0
  126. package/src/js/pds-core/pds-registry.js +129 -0
  127. package/src/js/pds-core/pds.d.ts +129 -0
  128. package/src/js/pds.d.ts +408 -0
  129. package/src/js/pds.js +1579 -0
@@ -0,0 +1,104 @@
1
+ /**
2
+ * <pds-jsonform>
3
+ *
4
+ * Form Actions:
5
+ * By default, the form includes Submit and Reset buttons inside the <form> element.
6
+ *
7
+ * Usage options:
8
+ * 1. Default buttons:
9
+ * <pds-jsonform .jsonSchema=${schema}></pds-jsonform>
10
+ *
11
+ * 2. Customize labels:
12
+ * <pds-jsonform .jsonSchema=${schema} submit-label="Save" reset-label="Clear"></pds-jsonform>
13
+ *
14
+ * 3. Hide reset button:
15
+ * <pds-jsonform .jsonSchema=${schema} hide-reset></pds-jsonform>
16
+ *
17
+ * 4. Add extra buttons (slot):
18
+ * <pds-jsonform .jsonSchema=${schema}>
19
+ * <button type="button" slot="actions" @click=${...}>Cancel</button>
20
+ * </pds-jsonform>
21
+ *
22
+ * 5. Completely custom actions (hides default buttons):
23
+ * <pds-jsonform .jsonSchema=${schema} hide-actions>
24
+ * <div slot="actions" style="display: flex; gap: 1rem;">
25
+ * <button type="submit" class="btn btn-primary">Custom Submit</button>
26
+ * <button type="button" class="btn">Custom Action</button>
27
+ * </div>
28
+ * </pds-jsonform>
29
+ */
30
+ export class SchemaForm {
31
+ static properties: {
32
+ jsonSchema: {
33
+ type: ObjectConstructor;
34
+ attribute: string;
35
+ };
36
+ uiSchema: {
37
+ type: ObjectConstructor;
38
+ attribute: string;
39
+ };
40
+ options: {
41
+ type: ObjectConstructor;
42
+ };
43
+ values: {
44
+ type: ObjectConstructor;
45
+ };
46
+ action: {
47
+ type: StringConstructor;
48
+ };
49
+ method: {
50
+ type: StringConstructor;
51
+ };
52
+ disabled: {
53
+ type: BooleanConstructor;
54
+ reflect: boolean;
55
+ };
56
+ hideActions: {
57
+ type: BooleanConstructor;
58
+ attribute: string;
59
+ };
60
+ submitLabel: {
61
+ type: StringConstructor;
62
+ attribute: string;
63
+ };
64
+ resetLabel: {
65
+ type: StringConstructor;
66
+ attribute: string;
67
+ };
68
+ hideReset: {
69
+ type: BooleanConstructor;
70
+ attribute: string;
71
+ };
72
+ hideSubmit: {
73
+ type: BooleanConstructor;
74
+ attribute: string;
75
+ };
76
+ hideLegend: {
77
+ type: BooleanConstructor;
78
+ attribute: string;
79
+ };
80
+ };
81
+ createRenderRoot(): this;
82
+ jsonSchema: any;
83
+ uiSchema: any;
84
+ options: any;
85
+ values: any;
86
+ method: string;
87
+ hideActions: boolean;
88
+ submitLabel: string;
89
+ resetLabel: string;
90
+ hideReset: boolean;
91
+ hideLegend: boolean;
92
+ defineRenderer(widgetKey: any, fn: any): void;
93
+ useValidator(fn: any): void;
94
+ getValuesFlat(): {};
95
+ serialize(): {
96
+ json: {};
97
+ formData: FormData;
98
+ };
99
+ submit(): Promise<any>;
100
+ willUpdate(changed: any): void;
101
+ render(): any;
102
+ #private;
103
+ }
104
+ //# sourceMappingURL=pds-jsonform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-jsonform.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-jsonform.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcE;IAGF,yBAEC;IAYC,gBAA2B;IAC3B,cAAyB;IACzB,aAAwB;IACxB,YAAuB;IACvB,eAAoB;IACpB,qBAAwB;IACxB,oBAA2B;IAC3B,mBAAyB;IACzB,mBAAsB;IACtB,oBAAuB;IAiBzB,8CAEC;IACD,4BAEC;IAGD,oBAEC;IAeD;;;MAIC;IAED,uBAEC;IAGD,+BAyBC;IA6ND,cA8CC;;CA6yCF"}
@@ -0,0 +1,121 @@
1
+ export class RichText extends HTMLElement {
2
+ static formAssociated: boolean;
3
+ static get observedAttributes(): string[];
4
+ _submitOnEnter: boolean;
5
+ _toolbar: boolean;
6
+ _spellcheck: boolean;
7
+ _value: string;
8
+ _placeholder: string;
9
+ _disabled: boolean;
10
+ _required: boolean;
11
+ _format: string;
12
+ /**
13
+ * Update the form field name.
14
+ * @param {string|null} v
15
+ */
16
+ set name(v: string | null);
17
+ /**
18
+ * Current form field name used when serialising via `FormData`.
19
+ * @returns {string}
20
+ */
21
+ get name(): string;
22
+ /**
23
+ * Set the placeholder text.
24
+ * @param {string|null} v
25
+ */
26
+ set placeholder(v: string | null);
27
+ /**
28
+ * Placeholder text shown while the editor is empty.
29
+ * @returns {string}
30
+ */
31
+ get placeholder(): string;
32
+ /**
33
+ * Enable or disable user input.
34
+ * @param {boolean} v
35
+ */
36
+ set disabled(v: boolean);
37
+ /**
38
+ * Indicates whether user input is enabled.
39
+ * @returns {boolean}
40
+ */
41
+ get disabled(): boolean;
42
+ /**
43
+ * Toggle required validation.
44
+ * @param {boolean} v
45
+ */
46
+ set required(v: boolean);
47
+ /**
48
+ * Whether the control participates in required form validation.
49
+ * @returns {boolean}
50
+ */
51
+ get required(): boolean;
52
+ /**
53
+ * Enable or disable submit-on-enter behaviour.
54
+ * @param {boolean} v
55
+ */
56
+ set submitOnEnter(v: boolean);
57
+ /**
58
+ * Submit-on-enter behaviour flag.
59
+ * @returns {boolean}
60
+ */
61
+ get submitOnEnter(): boolean;
62
+ /**
63
+ * Show or hide the formatting toolbar.
64
+ * @param {boolean} v
65
+ */
66
+ set toolbar(v: boolean);
67
+ /**
68
+ * Whether the formatting toolbar is rendered.
69
+ * @returns {boolean}
70
+ */
71
+ get toolbar(): boolean;
72
+ /**
73
+ * Change the output format for future values.
74
+ * @param {string|null} v
75
+ */
76
+ set format(v: string | null);
77
+ /**
78
+ * Current output format for the value (HTML or Markdown).
79
+ * @returns {"html"|"markdown"}
80
+ */
81
+ get format(): "html" | "markdown";
82
+ /**
83
+ * Update the editor value programmatically.
84
+ * @param {string|null} v
85
+ */
86
+ set value(v: string | null);
87
+ /**
88
+ * Serialised editor contents respecting the configured `format`.
89
+ * @returns {string}
90
+ */
91
+ get value(): string;
92
+ /**
93
+ * Reflect attribute mutations into the corresponding property state.
94
+ * @param {string} name
95
+ * @param {string|null} oldV
96
+ * @param {string|null} newV
97
+ */
98
+ attributeChangedCallback(name: string, oldV: string | null, newV: string | null): void;
99
+ /**
100
+ * Reference to the associated HTMLFormElement, when applicable.
101
+ * @returns {HTMLFormElement|null}
102
+ */
103
+ get form(): HTMLFormElement | null;
104
+ /**
105
+ * Run native form validation against the control.
106
+ * @returns {boolean}
107
+ */
108
+ checkValidity(): boolean;
109
+ /**
110
+ * Report validity using the browser's built-in UI.
111
+ * @returns {boolean}
112
+ */
113
+ reportValidity(): boolean;
114
+ /**
115
+ * Attach DOM, adopted styles, and hydrate the initial value on connect.
116
+ * @returns {Promise<void>}
117
+ */
118
+ connectedCallback(): Promise<void>;
119
+ #private;
120
+ }
121
+ //# sourceMappingURL=pds-richtext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-richtext.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-richtext.js"],"names":[],"mappings":"AAyCA;IAYE,+BAA6B;IAE7B,0CAYC;IAMC,wBAA2B;IAC3B,kBAAoB;IACpB,qBAAuB;IACvB,eAAgB;IAChB,qBAAsB;IACtB,mBAAsB;IACtB,mBAAsB;IACtB,gBAAqB;IAavB;;;OAGG;IACH,YAFW,MAAM,GAAC,IAAI,EAKrB;IAdD;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAgBD;;;OAGG;IACH,mBAFW,MAAM,GAAC,IAAI,EAMrB;IAfD;;;OAGG;IACH,mBAFa,MAAM,CAIlB;IAiBD;;;OAGG;IACH,gBAFW,OAAO,EAQjB;IAjBD;;;OAGG;IACH,gBAFa,OAAO,CAInB;IAmBD;;;OAGG;IACH,gBAFW,OAAO,EAMjB;IAfD;;;OAGG;IACH,gBAFa,OAAO,CAInB;IAiBD;;;OAGG;IACH,qBAFW,OAAO,EAMjB;IAfD;;;OAGG;IACH,qBAFa,OAAO,CAInB;IAkCD;;;OAGG;IACH,eAFW,OAAO,EAOjB;IAhBD;;;OAGG;IACH,eAFa,OAAO,CAInB;IAkBD;;;OAGG;IACH,cAFW,MAAM,GAAC,IAAI,EAUrB;IAnBD;;;OAGG;IACH,cAFa,MAAM,GAAC,UAAU,CAI7B;IAqBD;;;OAGG;IACH,aAFW,MAAM,GAAC,IAAI,EAiBrB;IA1BD;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAsBD;;;;;OAKG;IACH,+BAJW,MAAM,QACN,MAAM,GAAC,IAAI,QACX,MAAM,GAAC,IAAI,QAgCrB;IAqBD;;;OAGG;IACH,YAFa,eAAe,GAAC,IAAI,CAIhC;IACD;;;OAGG;IACH,iBAFa,OAAO,CAInB;IACD;;;OAGG;IACH,kBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,qBAFa,OAAO,CAAC,IAAI,CAAC,CAQzB;;CAsrBF"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Horizontal scrolling row with optional heading and snap alignment controls.
3
+ *
4
+ * @element pds-scrollrow
5
+ * @slot default - Scrollable tile content
6
+ * @slot heading - Optional heading content rendered in the component header
7
+ * @csspart viewport - The scrollable container element
8
+ *
9
+ * @attr {string} label - Accessible label for the scroll region; also used as fallback heading copy
10
+ * @attr {"start"|"center"} snap - Snap alignment for tiles when scrolling (default: start)
11
+ */
12
+ declare class PdsScrollrow extends HTMLElement {
13
+ static get observedAttributes(): string[];
14
+ static "__#private@#COMPONENT_CSS": string;
15
+ /**
16
+ * Update the accessible label and optional fallback heading text.
17
+ * @param {string|null} val
18
+ */
19
+ set label(val: string | null);
20
+ /**
21
+ * Accessible label applied to the scroll region.
22
+ * @returns {string|null}
23
+ */
24
+ get label(): string | null;
25
+ /**
26
+ * Adjust the scroll snap alignment.
27
+ * @param {string|null} val
28
+ */
29
+ set snap(val: string | null);
30
+ /**
31
+ * Current scroll snap alignment strategy.
32
+ * @returns {"start"|"center"}
33
+ */
34
+ get snap(): "start" | "center";
35
+ /**
36
+ * Lifecycle hook called when the element is inserted into the document.
37
+ */
38
+ connectedCallback(): void;
39
+ /**
40
+ * Lifecycle hook called when the element is removed from the document.
41
+ */
42
+ disconnectedCallback(): void;
43
+ /**
44
+ * Respond to attribute mutations for `label` and `snap`.
45
+ * @param {string} name
46
+ * @param {string|null} oldValue
47
+ * @param {string|null} newValue
48
+ */
49
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
50
+ /**
51
+ * Render or rerender the component shadow DOM.
52
+ */
53
+ render(): void;
54
+ /**
55
+ * Scroll the viewport by roughly one page in the indicated direction.
56
+ * @param {Event} e
57
+ */
58
+ doPage(e: Event): void;
59
+ #private;
60
+ }
61
+ //# sourceMappingURL=pds-scrollrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-scrollrow.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-scrollrow.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH;IAME,0CAEC;IAOD,2CA8CE;IA+BF;;;OAGG;IACH,eAFW,MAAM,GAAC,IAAI,EAKrB;IAfD;;;OAGG;IACH,aAFa,MAAM,GAAC,IAAI,CAKvB;IAgBD;;;OAGG;IACH,cAFW,MAAM,GAAC,IAAI,EAKrB;IAdD;;;OAGG;IACH,YAFa,OAAO,GAAC,QAAQ,CAI5B;IAUD;;OAEG;IACH,0BAQC;IAED;;OAEG;IACH,6BAEC;IAED;;;;;OAKG;IACH,+BAJW,MAAM,YACN,MAAM,GAAC,IAAI,YACX,MAAM,GAAC,IAAI,QAsCrB;IAED;;OAEG;IACH,eAmCC;IA4CD;;;OAGG;IACH,UAFW,KAAK,QAMf;;CA4CF"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=pds-splitpanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-splitpanel.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-splitpanel.js"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @element pds-tabpanel
3
+ *
4
+ * @attr {string} label - Label for the tab button
5
+ * @attr {string} id - Unique identifier for the panel (auto-generated if not provided)
6
+ *
7
+ * @slot - Content of the tab panel
8
+ */
9
+ declare class TabPanel extends HTMLElement {
10
+ connectedCallback(): void;
11
+ _section: HTMLElement;
12
+ /**
13
+ * The inner `<section>` that exposes the panel region semantics.
14
+ * @returns {HTMLElement|null}
15
+ */
16
+ get section(): HTMLElement | null;
17
+ }
18
+ /**
19
+ * Tab navigation component that pairs anchors with `pds-tabpanel` children.
20
+ *
21
+ * @element pds-tabstrip
22
+ * @fires tabchange - Fired when the active tab changes. Detail: `{ oldTab: string|null, newTab: string }`
23
+ *
24
+ * @attr {string} label - Accessible label announced for the tablist
25
+ * @attr {string} selected - Identifier of the currently active panel (synced with the location hash)
26
+ *
27
+ * @slot - Collection of `pds-tabpanel` nodes representing individual tab panels
28
+ *
29
+ * @csspart tabs - Navigation container comprising the clickable tab buttons
30
+ * @cssprop --color-accent-400 - Color of the active tab indicator underline
31
+ */
32
+ declare class TabStrip extends HTMLElement {
33
+ /**
34
+ * Attach event listeners and observe panels once connected.
35
+ */
36
+ connectedCallback(): void;
37
+ #private;
38
+ }
39
+ //# sourceMappingURL=pds-tabstrip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-tabstrip.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-tabstrip.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH;IACE,0BAiBC;IAFG,sBAAuB;IAG3B;;;OAGG;IACH,eAFa,WAAW,GAAC,IAAI,CAI5B;CACF;AAGD;;;;;;;;;;;;;GAaG;AACH;IAoCE;;OAEG;IACH,0BAmCC;;CA4HF"}
@@ -0,0 +1,111 @@
1
+ /**
2
+ * @element pds-toaster
3
+ * @fires pds:toast - Global event for creating toasts
4
+ *
5
+ * @slot - Toast messages are dynamically added to the shadow DOM
6
+ *
7
+ * @cssprop --z-notification - Z-index for toast positioning (default: 9999)
8
+ * @cssprop --transition-normal - Animation duration for toasts
9
+ *
10
+ * @example
11
+ * <pds-toaster></pds-toaster>
12
+ *
13
+ * // Show toast via API
14
+ * toaster.toast('Hello!', { type: 'success' });
15
+ *
16
+ * // Show toast via event
17
+ * PDS.dispatchEvent(new CustomEvent('pds:toast', {
18
+ * detail: { message: 'Hello!', type: 'success' }
19
+ * }));
20
+ */
21
+ export class AppToaster extends HTMLElement {
22
+ toasts: any[];
23
+ /**
24
+ * Prepare styles and begin listening for global `pds:toast` events.
25
+ * @returns {Promise<void>}
26
+ */
27
+ connectedCallback(): Promise<void>;
28
+ _handleToastEvent: (e: any) => void;
29
+ /**
30
+ * Remove toast event listeners when disconnected.
31
+ */
32
+ disconnectedCallback(): void;
33
+ /**
34
+ * Display a toast notification
35
+ * @method toast
36
+ * @public
37
+ * @param {string} message - The message to display
38
+ * @param {Object} [options] - Toast configuration
39
+ * @param {"information"|"success"|"warning"|"error"} [options.type="information"] - Toast type
40
+ * @param {number} [options.duration] - Duration in ms (auto-calculated if not provided)
41
+ * @param {boolean} [options.closable=true] - Whether toast can be closed manually
42
+ * @param {boolean} [options.persistent=false] - If true, toast doesn't auto-dismiss
43
+ * @returns {string} Toast ID
44
+ */
45
+ public toast(message: string, options?: {
46
+ type?: "information" | "success" | "warning" | "error";
47
+ duration?: number;
48
+ closable?: boolean;
49
+ persistent?: boolean;
50
+ }): string;
51
+ /**
52
+ * Build a DOM node representing a single toast notification.
53
+ * @param {string} id
54
+ * @param {string} message
55
+ * @param {"information"|"success"|"warning"|"error"} type
56
+ * @param {boolean} closable
57
+ * @param {number} duration
58
+ * @param {boolean} persistent
59
+ * @returns {HTMLElement}
60
+ */
61
+ createToastElement(id: string, message: string, type: "information" | "success" | "warning" | "error", closable: boolean, duration: number, persistent: boolean): HTMLElement;
62
+ /**
63
+ * Dismiss a toast by ID
64
+ * @method dismissToast
65
+ * @public
66
+ * @param {string} toastId - The ID of the toast to dismiss
67
+ */
68
+ public dismissToast(toastId: string): void;
69
+ /**
70
+ * Close all active toasts.
71
+ */
72
+ dismissAll(): void;
73
+ /**
74
+ * Display a success toast
75
+ * @method toastSuccess
76
+ * @public
77
+ * @param {string} message - The message to display
78
+ * @param {Object} [options] - Toast configuration options
79
+ * @returns {string} Toast ID
80
+ */
81
+ public toastSuccess(message: string, options?: any): string;
82
+ /**
83
+ * Display a warning toast
84
+ * @method toastWarning
85
+ * @public
86
+ * @param {string} message - The message to display
87
+ * @param {Object} [options] - Toast configuration options
88
+ * @returns {string} Toast ID
89
+ */
90
+ public toastWarning(message: string, options?: any): string;
91
+ /**
92
+ * Display an error toast
93
+ * @method toastError
94
+ * @public
95
+ * @param {string} message - The message to display
96
+ * @param {Object} [options] - Toast configuration options
97
+ * @returns {string} Toast ID
98
+ */
99
+ public toastError(message: string, options?: any): string;
100
+ /**
101
+ * Display an information toast
102
+ * @method toastInfo
103
+ * @public
104
+ * @param {string} message - The message to display
105
+ * @param {Object} [options] - Toast configuration options
106
+ * @returns {string} Toast ID
107
+ */
108
+ public toastInfo(message: string, options?: any): string;
109
+ #private;
110
+ }
111
+ //# sourceMappingURL=pds-toaster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-toaster.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-toaster.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAGI,cAAgB;IAGlB;;;OAGG;IACH,qBAFa,OAAO,CAAC,IAAI,CAAC,CA6HzB;IAtHC,oCAGC;IAqHH;;OAEG;IACH,6BAMC;IAED;;;;;;;;;;;OAWG;IACH,sBARW,MAAM,YAEd;QAA4D,IAAI,GAAxD,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO;QACxB,QAAQ,GAAzB,MAAM;QACY,QAAQ,GAA1B,OAAO;QACW,UAAU,GAA5B,OAAO;KACf,GAAU,MAAM,CAqBlB;IA0CD;;;;;;;;;OASG;IACH,uBARW,MAAM,WACN,MAAM,QACN,aAAa,GAAC,SAAS,GAAC,SAAS,GAAC,OAAO,YACzC,OAAO,YACP,MAAM,cACN,OAAO,GACL,WAAW,CAgDvB;IAED;;;;;OAKG;IACH,6BAFW,MAAM,QAkBhB;IAED;;OAEG;IACH,mBAaC;IA2DD;;;;;;;OAOG;IACH,6BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,2BAJW,MAAM,kBAEJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,0BAJW,MAAM,kBAEJ,MAAM,CAIlB;;CACF"}
@@ -0,0 +1,83 @@
1
+ export default UploadArea;
2
+ /**
3
+ * Drag-and-drop file uploader that participates in native forms.
4
+ *
5
+ * @element pds-upload
6
+ * @formAssociated
7
+ *
8
+ * @attr {string} accept - Comma separated list of accepted MIME types and file extensions
9
+ * @attr {boolean} multiple - Allows selecting more than one file
10
+ * @attr {boolean} disabled - Disables interaction with the drop zone and button
11
+ * @attr {number} max-files - Optional cap on the number of files the user may select
12
+ */
13
+ declare class UploadArea extends HTMLElement {
14
+ static get observedAttributes(): string[];
15
+ /**
16
+ * Invoked when the element becomes associated with a `<form>`.
17
+ */
18
+ formAssociatedCallback(): void;
19
+ /**
20
+ * Sync disabled state across internal controls when the host form toggles.
21
+ * @param {boolean} disabled
22
+ */
23
+ formDisabledCallback(disabled: boolean): void;
24
+ /**
25
+ * Clear selected files when the host form resets.
26
+ */
27
+ formResetCallback(): void;
28
+ /**
29
+ * Restore previously submitted files during BFCache or session restores.
30
+ * @param {File[]} state
31
+ */
32
+ formStateRestoreCallback(state: File[]): void;
33
+ /**
34
+ * Value is derived from the selected files and cannot be set manually.
35
+ * @param {string} val
36
+ */
37
+ set value(val: string);
38
+ /**
39
+ * Comma separated list of file names for form serialisation.
40
+ * @returns {string}
41
+ */
42
+ get value(): string;
43
+ /**
44
+ * Run constraint validation leveraging ElementInternals.
45
+ * @returns {boolean}
46
+ */
47
+ checkValidity(): boolean;
48
+ /**
49
+ * Report validity issues using the browser UI.
50
+ * @returns {boolean}
51
+ */
52
+ reportValidity(): boolean;
53
+ /**
54
+ * Clear all selected files and update the UI accordingly.
55
+ */
56
+ clear(): void;
57
+ /**
58
+ * Remove all files and emit a change notification.
59
+ */
60
+ clear(): void;
61
+ /**
62
+ * Lifecycle hook used to upgrade properties and wire event listeners.
63
+ */
64
+ connectedCallback(): void;
65
+ /**
66
+ * Clean up listeners and revoke object URLs when disconnected.
67
+ */
68
+ disconnectedCallback(): void;
69
+ /**
70
+ * Mirror attribute mutations onto the hidden file input.
71
+ * @param {string} name
72
+ * @param {string|null} oldVal
73
+ * @param {string|null} newVal
74
+ */
75
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
76
+ /**
77
+ * Retrieve a shallow copy of the current file selection.
78
+ * @returns {File[]}
79
+ */
80
+ getFiles(): File[];
81
+ #private;
82
+ }
83
+ //# sourceMappingURL=pds-upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-upload.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-upload.js"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;AACH;IACE,0CAEC;IA4LD;;OAEG;IACH,+BAEC;IAED;;;OAGG;IACH,+BAFW,OAAO,QAIjB;IAED;;OAEG;IACH,0BAEC;IAED;;;OAGG;IACH,gCAFW,IAAI,EAAE,QAOhB;IAWD;;;OAGG;IACH,eAFW,MAAM,EAIhB;IAdD;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAUD;;;OAGG;IACH,iBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,kBAFa,OAAO,CAInB;IAED;;OAEG;IACH,cAGC;IAgFD;;OAEG;IACH,cAKC;IA3ED;;OAEG;IACH,0BAkBC;IAED;;OAEG;IACH,6BAYC;IAED;;;;;OAKG;IACH,+BAJW,MAAM,UACN,MAAM,GAAC,IAAI,UACX,MAAM,GAAC,IAAI,QAYrB;IAGD;;;OAGG;IACH,YAFa,IAAI,EAAE,CAIlB;;CA0SF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../src/js/app.js"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Create a PDS-compliant dialog with proper semantic structure
3
+ * @param {string|TemplateResult} message - Message content (string or Lit template)
4
+ * @param {Object} options - Dialog options
5
+ * @returns {Promise} Resolves with result when dialog closes
6
+ */
7
+ export function ask(message: string | TemplateResult, options?: any): Promise<any>;
8
+ /**
9
+ * Show an alert dialog
10
+ * @param {string|TemplateResult} message - Alert message
11
+ * @param {Object} options - Optional dialog options
12
+ * @returns {Promise}
13
+ */
14
+ export function alert(message: string | TemplateResult, options?: any): Promise<any>;
15
+ /**
16
+ * Show a confirmation dialog
17
+ * @param {string|TemplateResult} message - Confirmation message
18
+ * @param {Object} options - Optional dialog options
19
+ * @returns {Promise<boolean>}
20
+ */
21
+ export function confirm(message: string | TemplateResult, options?: any): Promise<boolean>;
22
+ //# sourceMappingURL=ask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../../../../src/js/common/ask.js"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,6BAJW,MAAM,GAAC,cAAc,+BA4J/B;AAED;;;;;GAKG;AACH,+BAJW,MAAM,GAAC,cAAc,+BAc/B;AAED;;;;;GAKG;AACH,iCAJW,MAAM,GAAC,cAAc,kBAEnB,OAAO,CAAC,OAAO,CAAC,CAa5B"}
@@ -0,0 +1,3 @@
1
+ export function isObject(item: any): boolean;
2
+ export function deepMerge(target: any, source: any): any;
3
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/js/common/common.js"],"names":[],"mappings":"AAAA,6CAEC;AAED,yDAeG"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Loads a Google Font dynamically
3
+ * @param {string} fontFamily - The font family to load (can be comma-separated list)
4
+ * @param {Object} options - Loading options
5
+ * @param {number[]} options.weights - Font weights to load (default: [400, 500, 600, 700])
6
+ * @param {boolean} options.italic - Whether to include italic variants (default: false)
7
+ * @returns {Promise<void>}
8
+ */
9
+ export function loadGoogleFont(fontFamily: string, options?: {
10
+ weights: number[];
11
+ italic: boolean;
12
+ }): Promise<void>;
13
+ /**
14
+ * Loads fonts for all font families in a typography config
15
+ * @param {Object} typographyConfig - Typography configuration object
16
+ * @returns {Promise<void>}
17
+ */
18
+ export function loadTypographyFonts(typographyConfig: any): Promise<void>;
19
+ /**
20
+ * Removes previously loaded Google Fonts
21
+ * @param {string} fontName - Optional font name to remove. If not specified, removes all.
22
+ */
23
+ export function unloadGoogleFont(fontName?: string): void;
24
+ //# sourceMappingURL=font-loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font-loader.d.ts","sourceRoot":"","sources":["../../../../../src/js/common/font-loader.js"],"names":[],"mappings":"AAsEA;;;;;;;GAOG;AACH,2CANW,MAAM,YAEd;IAA0B,OAAO,EAAzB,MAAM,EAAE;IACS,MAAM,EAAvB,OAAO;CACf,GAAU,OAAO,CAAC,IAAI,CAAC,CAsEzB;AAED;;;;GAIG;AACH,4DAFa,OAAO,CAAC,IAAI,CAAC,CA6BzB;AAED;;;GAGG;AACH,4CAFW,MAAM,QAehB"}
@@ -0,0 +1,3 @@
1
+ export function joinStringsAndValues(strings: any, values: any, options: any): string;
2
+ export function msg(template: Template | string | StrResult, options?: any): string;
3
+ //# sourceMappingURL=msg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"msg.d.ts","sourceRoot":"","sources":["../../../../../src/js/common/msg.js"],"names":[],"mappings":"AA+CO,sFAMN;AA8BM,8BAHI,QAAQ,GAAG,MAAM,GAAG,SAAS,yBASvC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Loads the strings from a given (5-letter-code) locale
3
+ * @param {String} locale
4
+ */
5
+ export function loadLocale(locale: string): Promise<void>;
6
+ /** @type {typeof import("./lit").html} */
7
+ export const html: typeof import("./lit").html;
8
+ /** @type {typeof import("./lit").css} */
9
+ export const css: typeof import("./lit").css;
10
+ export * from "lit/directives/repeat.js";
11
+ export * from "lit/directives/keyed.js";
12
+ export * from "lit/directives/class-map.js";
13
+ export { ifDefined } from "lit/directives/if-defined.js";
14
+ export { until } from "lit/directives/until.js";
15
+ export { unsafeHTML } from "lit/directives/unsafe-html.js";
16
+ export { unsafeSVG } from "lit/directives/unsafe-svg.js";
17
+ export { msg } from "./common/msg.js";
18
+ import { LitElement } from "lit";
19
+ import { nothing } from "lit";
20
+ import { svg } from "lit";
21
+ import { render } from "lit";
22
+ export { LitElement, nothing, svg, render };
23
+ export { ref, createRef } from "lit/directives/ref.js";
24
+ export { html as staticHtml, unsafeStatic } from "lit/static-html.js";
25
+ //# sourceMappingURL=lit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit.d.ts","sourceRoot":"","sources":["../../../../src/js/lit.js"],"names":[],"mappings":"AA2BA;;;GAGG;AACH,0DAMC;AAhCD,0CAA0C;AAC1C,mBADW,cAAc,OAAO,EAAE,IAAI,CACV;AAE5B,yCAAyC;AACzC,kBADW,cAAc,OAAO,EAAE,GAAG,CACX;;;;;;;;;2BARuD,KAAK;wBAAL,KAAK;oBAAL,KAAK;uBAAL,KAAK"}