@pure-ds/core 0.5.60 → 0.6.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.
Files changed (43) hide show
  1. package/dist/types/packages/pds-configurator/src/pds-home-content.d.ts +375 -0
  2. package/dist/types/packages/pds-configurator/src/pds-home-content.d.ts.map +1 -0
  3. package/dist/types/packages/pds-configurator/src/pds-home.d.ts +2 -0
  4. package/dist/types/packages/pds-configurator/src/pds-home.d.ts.map +1 -0
  5. package/dist/types/pds.config.d.ts +4 -8
  6. package/dist/types/pds.config.d.ts.map +1 -1
  7. package/dist/types/pds.d.ts +3 -1
  8. package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
  9. package/dist/types/public/assets/js/pds.d.ts.map +1 -1
  10. package/dist/types/public/assets/pds/components/pds-live-edit.d.ts +150 -0
  11. package/dist/types/public/assets/pds/components/pds-live-edit.d.ts.map +1 -0
  12. package/dist/types/public/assets/pds/components/pds-omnibox.d.ts +2 -0
  13. package/dist/types/public/assets/pds/components/pds-omnibox.d.ts.map +1 -1
  14. package/dist/types/public/assets/pds/components/pds-richtext.d.ts.map +1 -1
  15. package/dist/types/public/assets/pds/components/pds-theme.d.ts +5 -0
  16. package/dist/types/public/assets/pds/components/pds-theme.d.ts.map +1 -1
  17. package/dist/types/src/js/pds-core/pds-config.d.ts +457 -0
  18. package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -1
  19. package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -1
  20. package/dist/types/src/js/pds-core/pds-live.d.ts.map +1 -1
  21. package/dist/types/src/js/pds-core/pds-ontology.d.ts.map +1 -1
  22. package/dist/types/src/js/pds-core/pds-start-helpers.d.ts.map +1 -1
  23. package/dist/types/src/js/pds-core/pds-theme-utils.d.ts +6 -0
  24. package/dist/types/src/js/pds-core/pds-theme-utils.d.ts.map +1 -0
  25. package/dist/types/src/js/pds.d.ts.map +1 -1
  26. package/package.json +1 -4
  27. package/packages/pds-cli/bin/templates/bootstrap/pds.config.js +9 -2
  28. package/public/assets/js/app.js +106 -5636
  29. package/public/assets/js/pds-manager.js +156 -156
  30. package/public/assets/js/pds.js +7 -7
  31. package/public/assets/pds/components/pds-live-edit.js +1555 -0
  32. package/public/assets/pds/components/pds-omnibox.js +558 -369
  33. package/public/assets/pds/components/pds-richtext.js +57 -7
  34. package/public/assets/pds/components/pds-theme.js +58 -0
  35. package/readme.md +2 -2
  36. package/src/js/pds-core/pds-config.js +705 -1
  37. package/src/js/pds-core/pds-enhancers.js +61 -4
  38. package/src/js/pds-core/pds-live.js +545 -437
  39. package/src/js/pds-core/pds-ontology.js +8 -0
  40. package/src/js/pds-core/pds-start-helpers.js +15 -0
  41. package/src/js/pds-core/pds-theme-utils.js +33 -0
  42. package/src/js/pds.d.ts +3 -1
  43. package/src/js/pds.js +22 -0
@@ -0,0 +1,375 @@
1
+ export const HOME_CONTENT: ({
2
+ id: string;
3
+ type: string;
4
+ title: string;
5
+ lead: string;
6
+ logo: string;
7
+ blocks?: undefined;
8
+ surfaceClass?: undefined;
9
+ customKey?: undefined;
10
+ } | {
11
+ id: string;
12
+ type: string;
13
+ title: string;
14
+ lead: string;
15
+ blocks: {
16
+ type: string;
17
+ cardVariant: string;
18
+ cards: ({
19
+ title: string;
20
+ body: string;
21
+ icon: string;
22
+ extra: string;
23
+ } | {
24
+ title: string;
25
+ body: string;
26
+ icon: string;
27
+ extra?: undefined;
28
+ })[];
29
+ }[];
30
+ logo?: undefined;
31
+ surfaceClass?: undefined;
32
+ customKey?: undefined;
33
+ } | {
34
+ id: string;
35
+ type: string;
36
+ surfaceClass: string;
37
+ title: string;
38
+ lead: string;
39
+ blocks: ({
40
+ type: string;
41
+ cardLayout: string;
42
+ cardVariant: string;
43
+ cardIconSize: string;
44
+ cards: {
45
+ title: string;
46
+ body: string;
47
+ icon: string;
48
+ }[];
49
+ variant?: undefined;
50
+ icon?: undefined;
51
+ title?: undefined;
52
+ body?: undefined;
53
+ } | {
54
+ type: string;
55
+ variant: string;
56
+ icon: string;
57
+ title: string;
58
+ body: string;
59
+ cardLayout?: undefined;
60
+ cardVariant?: undefined;
61
+ cardIconSize?: undefined;
62
+ cards?: undefined;
63
+ })[];
64
+ logo?: undefined;
65
+ customKey?: undefined;
66
+ } | {
67
+ id: string;
68
+ type: string;
69
+ title: string;
70
+ lead: string;
71
+ blocks: {
72
+ type: string;
73
+ items: {
74
+ title: string;
75
+ body: string;
76
+ icon: string;
77
+ }[];
78
+ }[];
79
+ logo?: undefined;
80
+ surfaceClass?: undefined;
81
+ customKey?: undefined;
82
+ } | {
83
+ id: string;
84
+ type: string;
85
+ customKey: string;
86
+ surfaceClass: string;
87
+ title: string;
88
+ lead: string;
89
+ blocks: {
90
+ type: string;
91
+ items: {
92
+ title: string;
93
+ price: string;
94
+ description: string;
95
+ image: string;
96
+ }[];
97
+ }[];
98
+ logo?: undefined;
99
+ } | {
100
+ id: string;
101
+ type: string;
102
+ customKey: string;
103
+ title: string;
104
+ lead: string;
105
+ blocks: {
106
+ type: string;
107
+ id: string;
108
+ schema: {
109
+ type: string;
110
+ required: string[];
111
+ properties: {
112
+ identity: {
113
+ type: string;
114
+ title: string;
115
+ required: string[];
116
+ properties: {
117
+ fullName: {
118
+ type: string;
119
+ title: string;
120
+ minLength: number;
121
+ examples: string[];
122
+ };
123
+ email: {
124
+ type: string;
125
+ format: string;
126
+ title: string;
127
+ examples: string[];
128
+ };
129
+ company: {
130
+ type: string;
131
+ title: string;
132
+ examples: string[];
133
+ };
134
+ role: {
135
+ type: string;
136
+ title: string;
137
+ examples: string[];
138
+ };
139
+ };
140
+ };
141
+ project: {
142
+ type: string;
143
+ title: string;
144
+ required: string[];
145
+ properties: {
146
+ projectType: {
147
+ type: string;
148
+ title: string;
149
+ oneOf: {
150
+ const: string;
151
+ title: string;
152
+ }[];
153
+ };
154
+ otherProject: {
155
+ type: string;
156
+ maxLength: number;
157
+ title: string;
158
+ examples: string[];
159
+ };
160
+ goals: {
161
+ type: string;
162
+ maxLength: number;
163
+ examples: string[];
164
+ };
165
+ };
166
+ };
167
+ content: {
168
+ type: string;
169
+ title: string;
170
+ properties: {
171
+ notes: {
172
+ type: string;
173
+ title: string;
174
+ examples: string[];
175
+ };
176
+ assets: {
177
+ type: string;
178
+ title: string;
179
+ };
180
+ };
181
+ };
182
+ preferences: {
183
+ type: string;
184
+ title: string;
185
+ required: string[];
186
+ properties: {
187
+ updates: {
188
+ type: string;
189
+ title: string;
190
+ };
191
+ darkPreview: {
192
+ type: string;
193
+ title: string;
194
+ };
195
+ acceptTerms: {
196
+ type: string;
197
+ title: string;
198
+ };
199
+ };
200
+ };
201
+ };
202
+ };
203
+ uiSchema: {
204
+ "/identity": {
205
+ "ui:layout": string;
206
+ "ui:layoutOptions": {
207
+ columns: string;
208
+ autoSize: string;
209
+ gap: string;
210
+ };
211
+ };
212
+ "/identity/fullName": {
213
+ "ui:icon": string;
214
+ "ui:autocomplete": string;
215
+ };
216
+ "/identity/email": {
217
+ "ui:icon": string;
218
+ "ui:autocomplete": string;
219
+ };
220
+ "/identity/company": {
221
+ "ui:icon": string;
222
+ };
223
+ "/identity/role": {
224
+ "ui:widget": string;
225
+ };
226
+ "/project": {
227
+ "ui:layout": string;
228
+ "ui:layoutOptions": {
229
+ columns: string;
230
+ autoSize: string;
231
+ gap: string;
232
+ };
233
+ };
234
+ "/project/projectType": {
235
+ "ui:class": string;
236
+ };
237
+ "/project/otherProject": {
238
+ "ui:visibleWhen": {
239
+ "/project/projectType": string;
240
+ };
241
+ "ui:requiredWhen": {
242
+ "/project/projectType": string;
243
+ };
244
+ };
245
+ "/project/goals": {
246
+ "ui:widget": string;
247
+ "ui:rows": number;
248
+ };
249
+ "/content": {
250
+ "ui:layout": string;
251
+ "ui:layoutOptions": {
252
+ columns: string;
253
+ autoSize: string;
254
+ gap: string;
255
+ };
256
+ };
257
+ "/content/notes": {
258
+ "ui:widget": string;
259
+ };
260
+ "/content/assets": {
261
+ "ui:widget": string;
262
+ "ui:icon": string;
263
+ };
264
+ "/preferences": {
265
+ "ui:layout": string;
266
+ "ui:layoutOptions": {
267
+ columns: string;
268
+ autoSize: string;
269
+ gap: string;
270
+ };
271
+ };
272
+ "/preferences/updates": {};
273
+ "/preferences/darkPreview": {};
274
+ "/preferences/acceptTerms": {};
275
+ };
276
+ options: {
277
+ widgets: {
278
+ booleans: string;
279
+ };
280
+ enhancements: {
281
+ icons: boolean;
282
+ datalists: boolean;
283
+ rangeOutput: boolean;
284
+ };
285
+ };
286
+ }[];
287
+ logo?: undefined;
288
+ surfaceClass?: undefined;
289
+ } | {
290
+ id: string;
291
+ type: string;
292
+ customKey: string;
293
+ surfaceClass: string;
294
+ title: string;
295
+ lead: string;
296
+ blocks: ({
297
+ type: string;
298
+ cardVariant: string;
299
+ cardLayout: string;
300
+ cardIconSize: string;
301
+ cards: {
302
+ title: string;
303
+ body: string;
304
+ icon: string;
305
+ }[];
306
+ title?: undefined;
307
+ lead?: undefined;
308
+ items?: undefined;
309
+ variant?: undefined;
310
+ icon?: undefined;
311
+ body?: undefined;
312
+ text?: undefined;
313
+ href?: undefined;
314
+ } | {
315
+ type: string;
316
+ title: string;
317
+ lead: string;
318
+ items: {
319
+ title: string;
320
+ body: string;
321
+ icon: string;
322
+ }[];
323
+ cardVariant?: undefined;
324
+ cardLayout?: undefined;
325
+ cardIconSize?: undefined;
326
+ cards?: undefined;
327
+ variant?: undefined;
328
+ icon?: undefined;
329
+ body?: undefined;
330
+ text?: undefined;
331
+ href?: undefined;
332
+ } | {
333
+ type: string;
334
+ variant: string;
335
+ icon: string;
336
+ title: string;
337
+ body: string;
338
+ cardVariant?: undefined;
339
+ cardLayout?: undefined;
340
+ cardIconSize?: undefined;
341
+ cards?: undefined;
342
+ lead?: undefined;
343
+ items?: undefined;
344
+ text?: undefined;
345
+ href?: undefined;
346
+ } | {
347
+ type: string;
348
+ text: string;
349
+ icon: string;
350
+ href: string;
351
+ cardVariant?: undefined;
352
+ cardLayout?: undefined;
353
+ cardIconSize?: undefined;
354
+ cards?: undefined;
355
+ title?: undefined;
356
+ lead?: undefined;
357
+ items?: undefined;
358
+ variant?: undefined;
359
+ body?: undefined;
360
+ })[];
361
+ logo?: undefined;
362
+ } | {
363
+ id: string;
364
+ type: string;
365
+ customKey: string;
366
+ title: string;
367
+ lead: string;
368
+ blocks: {
369
+ type: string;
370
+ command: string;
371
+ }[];
372
+ logo?: undefined;
373
+ surfaceClass?: undefined;
374
+ })[];
375
+ //# sourceMappingURL=pds-home-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-home-content.d.ts","sourceRoot":"","sources":["../../../../../packages/pds-configurator/src/pds-home-content.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2fE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pds-home.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-home.d.ts","sourceRoot":"","sources":["../../../../../packages/pds-configurator/src/pds-home.js"],"names":[],"mappings":""}
@@ -1,9 +1,5 @@
1
- export namespace config {
2
- let mode: string;
3
- let preset: string;
4
- namespace autoDefine {
5
- let predefine: string[];
6
- }
7
- function log(level: any, message: any, ...data: any[]): void;
8
- }
1
+ /** @typedef {import("./src/js/pds-core/pds-config").PDSInitConfig} PDSInitConfig */
2
+ /** @type {PDSInitConfig} */
3
+ export const config: PDSInitConfig;
4
+ export type PDSInitConfig = import("./src/js/pds-core/pds-config").PDSInitConfig;
9
5
  //# sourceMappingURL=pds.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pds.config.d.ts","sourceRoot":"","sources":["../../pds.config.js"],"names":[],"mappings":";;;;;;IAQE,6DAEC"}
1
+ {"version":3,"file":"pds.config.d.ts","sourceRoot":"","sources":["../../pds.config.js"],"names":[],"mappings":"AAEA,oFAAoF;AAEpF,4BAA4B;AAC5B,qBADW,aAAa,CAYtB;4BAdY,OAAO,8BAA8B,EAAE,aAAa"}
@@ -104,6 +104,9 @@ export interface CompiledState {
104
104
  };
105
105
  }
106
106
 
107
+ /** Public config types for editor IntelliSense */
108
+ export type PDSInitConfig = import("./pds-core/pds-config.js").PDSInitConfig;
109
+
107
110
  /**
108
111
  * Generator - programmatic API to produce tokens, layered CSS and helper modules from a config.
109
112
  * Typical usage:
@@ -286,7 +289,6 @@ export class PDS extends EventTarget {
286
289
  // live-only
287
290
  preloadStyles?: boolean;
288
291
  criticalLayers?: string[];
289
- applyConfiguratorStyles?: boolean;
290
292
  managerURL?: string;
291
293
  // static-only
292
294
  staticPaths?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":"AA2uSA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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G;;;;;;;;QAoFH;;;;;;WAMG;;;;;;QAsKH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgpDJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"AA2nEA;;;;EAAwB;AAmFxB,mDAiBC;AACD,4DAqCC"}
1
+ {"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"AAs1HA;;;;EAAwB;AAmFxB,mDAiBC;AACD,4DAqCC"}
@@ -0,0 +1,150 @@
1
+ declare function isHoverCapable(): boolean;
2
+ declare function ensureStyles(): void;
3
+ declare function isSelectorSupported(selector: any): boolean;
4
+ declare function collectSelectors(): {
5
+ selector: string;
6
+ list: any[];
7
+ };
8
+ declare function shallowClone(value: any): any;
9
+ declare function deepMerge(target?: {}, source?: {}): {};
10
+ declare function titleize(value: any): string;
11
+ declare function getValueAtPath(obj: any, pathSegments: any): any;
12
+ declare function setValueAtPath(target: any, pathSegments: any, value: any): void;
13
+ declare function setValueAtJsonPath(target: any, jsonPath: any, value: any): void;
14
+ declare function normalizePaths(paths: any): any[];
15
+ declare function collectRelationPathsByCategory(): {};
16
+ declare function collectPathsFromRelations(target: any): any[];
17
+ declare function collectQuickRulePaths(target: any): string[];
18
+ declare function filterPathsByContext(target: any, paths: any): any;
19
+ declare function getActiveTheme(): {
20
+ value: string;
21
+ isDark: boolean;
22
+ };
23
+ declare function getSpacingOffset(): number;
24
+ declare function ensureColorNormalizer(): any;
25
+ declare function normalizeCssColor(value: any): string;
26
+ declare function rgbToHex(value: any): string;
27
+ declare function normalizeHexColor(value: any): any;
28
+ declare function toColorInputValue(value: any): any;
29
+ declare function getCustomPropertyNames(style: any): any[];
30
+ declare function makeTokenMatchers(relations: any): any[];
31
+ declare function addToValueMap(map: any, key: any, value: any): void;
32
+ declare function getTokenIndex(): any;
33
+ declare function collectVarRefsFromInline(element: any): Set<any>;
34
+ declare function collectScanTargets(target: any, limit?: number): any[];
35
+ declare function collectPathsFromComputedStyles(target: any): any[] | {
36
+ paths: any[];
37
+ hints: {};
38
+ debug: {
39
+ vars: any[];
40
+ paths: any[];
41
+ };
42
+ };
43
+ declare function collectQuickContext(target: any): {
44
+ paths: any[];
45
+ hints: any;
46
+ debug: any;
47
+ };
48
+ declare function collectDrawerPaths(quickPaths: any): any[];
49
+ declare function buildSchemaFromPaths(paths: any, design: any, hints?: {}): {
50
+ schema: {
51
+ type: string;
52
+ properties: {};
53
+ };
54
+ uiSchema: {};
55
+ };
56
+ declare function getGeneratorClass(): Promise<any>;
57
+ declare function applyDesignPatch(patch: any): Promise<void>;
58
+ declare function getStoredConfig(): any;
59
+ declare function setStoredConfig(nextConfig: any): void;
60
+ declare function getPresetOptions(): {
61
+ id: any;
62
+ name: any;
63
+ }[];
64
+ declare function getActivePresetId(): any;
65
+ declare function applyPresetSelection(presetId: any): Promise<void>;
66
+ declare function setFormSchemas(form: any, schema: any, uiSchema: any, design: any): void;
67
+ declare function buildForm(paths: any, design: any, onChange: any, hints?: {}): Promise<import("../../../../src/js/pds").SchemaForm>;
68
+ declare const PDS: any;
69
+ declare const EDITOR_TAG: "pds-live-edit";
70
+ declare const STYLE_ID: "pds-live-editor-styles";
71
+ declare const TARGET_ATTR: "data-pds-live-target";
72
+ declare const DROPDOWN_CLASS: "pds-live-editor-dropdown";
73
+ declare const MARKER_CLASS: "pds-live-editor-marker";
74
+ declare namespace CATEGORY_ICONS {
75
+ let colors: string;
76
+ let typography: string;
77
+ let spatialRhythm: string;
78
+ let shape: string;
79
+ let layout: string;
80
+ let behavior: string;
81
+ let layers: string;
82
+ let icons: string;
83
+ }
84
+ declare const QUICK_RULES: {
85
+ selector: string;
86
+ paths: string[];
87
+ }[];
88
+ declare const DEFAULT_QUICK_PATHS: string[];
89
+ declare const QUICK_STYLE_PROPERTIES: string[];
90
+ declare const INLINE_VAR_REGEX: RegExp;
91
+ declare const COLOR_VALUE_REGEX: RegExp;
92
+ declare let cachedTokenIndex: any;
93
+ declare let cachedTokenIndexMeta: any;
94
+ declare let colorNormalizer: any;
95
+ declare const GLOBAL_LAYOUT_PATHS: Set<string>;
96
+ declare const FORM_CONTEXT_PATHS: Set<string>;
97
+ declare const SURFACE_CONTEXT_PATHS: Set<string>;
98
+ declare const DARK_MODE_PATH_MARKER: ".darkMode.";
99
+ declare const QUICK_EDIT_LIMIT: 4;
100
+ declare const DROPDOWN_VIEWPORT_PADDING: 8;
101
+ declare class PdsLiveEdit extends HTMLElement {
102
+ _boundMouseOver: any;
103
+ _boundMouseOut: any;
104
+ _boundMouseMove: any;
105
+ _boundReposition: any;
106
+ _activeTarget: any;
107
+ _activeDropdown: HTMLElement;
108
+ _holdOpen: boolean;
109
+ _closeTimer: number;
110
+ _drawer: HTMLElement;
111
+ _pendingPatch: any;
112
+ _applyTimer: any;
113
+ _selectors: {
114
+ selector: string;
115
+ list: any[];
116
+ };
117
+ _lastPointer: {
118
+ x: any;
119
+ y: any;
120
+ };
121
+ _boundDocPointer: any;
122
+ _boundDocKeydown: any;
123
+ _connected: boolean;
124
+ connectedCallback(): void;
125
+ disconnectedCallback(): void;
126
+ _teardown(): void;
127
+ _handleMouseOver(event: any): void;
128
+ _handleMouseOut(event: any): void;
129
+ _findEditableTarget(node: any): any;
130
+ _showForTarget(target: any): void;
131
+ _removeActiveUI(): void;
132
+ _addDocumentListeners(): void;
133
+ _removeDocumentListeners(): void;
134
+ _handleDocumentPointer(event: any): void;
135
+ _handleDocumentKeydown(event: any): void;
136
+ _scheduleClose(): void;
137
+ _clearCloseTimer(): void;
138
+ _addRepositionListeners(): void;
139
+ _removeRepositionListeners(): void;
140
+ _repositionDropdown(): void;
141
+ _positionDropdown(target: any, dropdown: any): void;
142
+ _handleMouseMove(event: any): void;
143
+ _isPointerWithinSafeZone(): boolean;
144
+ _buildDropdown(target: any, quickPaths: any, hints: any, debug: any): HTMLElement;
145
+ _renderQuickForm(container: any, paths: any, design: any, hints: any): Promise<void>;
146
+ _openDrawer(target: any, quickPaths: any): Promise<void>;
147
+ _handleValueChange(event: any): void;
148
+ _schedulePatch(patch: any): void;
149
+ }
150
+ //# sourceMappingURL=pds-live-edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-live-edit.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-edit.js"],"names":[],"mappings":"AAsIA,2CAGC;AAED,sCAkEC;AAED,6DAgBC;AAED;;;EAoCC;AAED,+CAGC;AAED,yDAWC;AAED,8CAOC;AAED,kEAOC;AAED,kFAaC;AAED,kFAeC;AAED,mDAWC;AAED,sDAUC;AAED,+DAmBC;AAED,8DAQC;AAED,oEAmBC;AAED;;;EAKC;AAED,4CASC;AAED,8CAcC;AAED,uDAOC;AAED,8CAWC;AAED,oDAUC;AAED,oDAOC;AAED,2DAQC;AAED,0DAeC;AAED,qEAQC;AAED,sCAqDC;AAED,kEAYC;AAED,wEAMC;AAED;;;;;;;EAmFC;AAED;;;;EAqBC;AAED,4DAUC;AAED;;;;;;EA4GC;AAED,mDAOC;AAED,6DAyHC;AAED,wCAWC;AAED,wDAKC;AAED;;;IASC;AAED,0CAGC;AAED,oEAOC;AAED,0FAIC;AAED,qIA8BC;AAlhCD,uBAA2B;AAE3B,0BAAmB,eAAe,CAAC;AACnC,wBAAiB,wBAAwB,CAAC;AAC1C,2BAAoB,sBAAsB,CAAC;AAC3C,8BAAuB,0BAA0B,CAAC;AAClD,4BAAqB,wBAAwB,CAAC;;;;;;;;;;;AAa9C;;;IAqCE;AAEF,4CAIE;AAEF,+CA+BE;AAEF,uCAAoD;AACpD,wCAAiF;AAEjF,kCAA4B;AAC5B,sCAAgC;AAChC,iCAA2B;AAE3B,+CAWG;AAEH,8CAKG;AAEH,iDAIG;AAEH,qCAA8B,YAAY,CAAC;AAC3C,gCAAyB,CAAC,CAAC;AAC3B,yCAAkC,CAAC,CAAC;AAg5BpC;IAGI,qBAAuD;IACvD,oBAAqD;IACrD,qBAAuD;IACvD,sBAA2D;IAC3D,mBAAyB;IACzB,6BAA2B;IAC3B,mBAAsB;IACtB,oBAAuB;IACvB,qBAAmB;IACnB,mBAAyB;IACzB,iBAAuB;IACvB;;;MAAsB;IACtB;;;MAAwB;IACxB,sBAA8D;IAC9D,sBAA8D;IAC9D,oBAAuB;IAGzB,0BAcC;IAED,6BAEC;IAED,kBAaC;IAED,mCASC;IAED,kCAEC;IAED,oCAeC;IAED,kCAqBC;IAED,wBAaC;IAED,8BAIC;IAED,iCAIC;IAED,yCAOC;IAED,yCAKC;IAED,uBAaC;IAED,yBAKC;IAED,gCAIC;IAED,mCAIC;IAED,4BAOC;IAED,oDA+DC;IAED,mCAGC;IAED,oCAWC;IAED,kFAqEC;IAED,qFAOC;IAED,yDA0HC;IAED,qCASC;IAED,iCAYC;CACF"}
@@ -20,6 +20,8 @@ export class PdsOmnibox extends HTMLElement {
20
20
  get autocomplete(): string;
21
21
  set icon(value: string);
22
22
  get icon(): string;
23
+ set itemGrid(value: string);
24
+ get itemGrid(): string;
23
25
  formAssociatedCallback(): void;
24
26
  formDisabledCallback(disabled: any): void;
25
27
  formResetCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"pds-omnibox.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-omnibox.js"],"names":[],"mappings":"AAmBA;IACC,+BAA6B;IAE7B,0CAEC;IAuBD,0BAUC;IAED,6BAOC;IAED,wEAGC;IAMD,yBAEC;IAND,oBAEC;IAUD,wBAGC;IAPD,mBAEC;IAWD,+BAGC;IAPD,0BAEC;IAWD,sBAIC;IARD,iBAEC;IAYD,6BAGC;IAPD,wBAEC;IAWD,6BAGC;IAPD,wBAEC;IAWD,gCAGC;IAPD,2BAEC;IAWD,wBAGC;IAPD,mBAEC;IAOD,+BAA2B;IAE3B,0CAGC;IAED,0BAEC;IAED,2CAEC;IAED,qBAEC;IAED,sBAEC;;CA6bD"}
1
+ {"version":3,"file":"pds-omnibox.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-omnibox.js"],"names":[],"mappings":"AAoBA;IACE,+BAA6B;IAE7B,0CAWC;IAuBD,0BAaC;IAED,6BAgBC;IAED,wEAGC;IAMD,yBAEC;IAND,oBAEC;IAUD,wBAGC;IAPD,mBAEC;IAWD,+BAGC;IAPD,0BAEC;IAWD,sBAIC;IARD,iBAEC;IAYD,6BAGC;IAPD,wBAEC;IAWD,6BAGC;IAPD,wBAEC;IAWD,gCAGC;IAPD,2BAEC;IAWD,wBAGC;IAPD,mBAEC;IAWD,4BAGC;IAPD,uBAEC;IAOD,+BAA2B;IAE3B,0CAGC;IAED,0BAEC;IAED,2CAEC;IAED,qBAEC;IAED,sBAEC;;CA2lBF"}
@@ -1 +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"}
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;;CAwuBF"}
@@ -12,6 +12,11 @@ declare const THEME_OPTIONS: {
12
12
  }[];
13
13
  declare const DEFAULT_LABEL: "Theme";
14
14
  declare const LAYERS: string[];
15
+ declare const DEFAULT_THEMES: string[];
16
+ declare const VALID_THEMES: Set<string>;
17
+ declare function normalizePresetThemes(preset: any): any;
18
+ declare function resolveThemePreference(preference: any): string;
19
+ declare function isPresetThemeCompatible(preset: any, themePreference: any): any;
15
20
  declare class PdsTheme extends HTMLElement {
16
21
  static get observedAttributes(): string[];
17
22
  connectedCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"pds-theme.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-theme.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH;;;;IAIE;AAEF,6BAAsB,OAAO,CAAC;AAC9B,+BAAmE;AAEnE;IACE,0CAEC;IAUD,0BAQC;IAED,6BAEC;IAED,wEAKC;IAUD,iBANa,MAAM,EAYlB;IAdD;;;OAGG;IACH,aAFa,MAAM,CAIlB;;CA6GF"}
1
+ {"version":3,"file":"pds-theme.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-theme.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH;;;;IAIE;AAEF,6BAAsB,OAAO,CAAC;AAC9B,+BAAmE;AACnE,uCAAyC;AACzC,wCAA6C;AAE7C,yDAMC;AAED,iEAeC;AAED,iFAIC;AAED;IACE,0CAEC;IAUD,0BAQC;IAED,6BAEC;IAED,wEAKC;IAUD,iBANa,MAAM,EAYlB;IAdD;;;OAGG;IACH,aAFa,MAAM,CAIlB;;CAsIF"}