@pure-ds/core 0.5.61 → 0.6.2
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/dist/types/packages/pds-configurator/src/pds-home-content.d.ts +375 -0
- package/dist/types/packages/pds-configurator/src/pds-home-content.d.ts.map +1 -0
- package/dist/types/packages/pds-configurator/src/pds-home.d.ts +2 -0
- package/dist/types/packages/pds-configurator/src/pds-home.d.ts.map +1 -0
- package/dist/types/pds.config.d.ts +2 -2
- package/dist/types/pds.config.d.ts.map +1 -1
- package/dist/types/pds.d.ts +3 -0
- package/dist/types/public/assets/js/pds-manager.d.ts +144 -429
- package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
- package/dist/types/public/assets/js/pds.d.ts +3 -4
- package/dist/types/public/assets/js/pds.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts +150 -0
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts.map +1 -0
- package/dist/types/public/assets/pds/components/pds-omnibox.d.ts +2 -0
- package/dist/types/public/assets/pds/components/pds-omnibox.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-richtext.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-theme.d.ts +5 -10
- package/dist/types/public/assets/pds/components/pds-theme.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-config.d.ts +3 -0
- package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-live.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-ontology.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-theme-utils.d.ts +6 -0
- package/dist/types/src/js/pds-core/pds-theme-utils.d.ts.map +1 -0
- package/dist/types/src/js/pds.d.ts.map +1 -1
- package/package.json +1 -4
- package/packages/pds-cli/bin/templates/bootstrap/pds.config.js +1 -1
- package/public/assets/js/app.js +106 -5636
- package/public/assets/js/pds-manager.js +137 -137
- package/public/assets/js/pds.js +7 -7
- package/public/assets/pds/components/pds-live-edit.js +1555 -0
- package/public/assets/pds/components/pds-omnibox.js +558 -369
- package/public/assets/pds/components/pds-richtext.js +57 -7
- package/public/assets/pds/components/pds-theme.js +59 -39
- package/readme.md +2 -2
- package/src/js/pds-core/pds-config.js +21 -3
- package/src/js/pds-core/pds-enhancers.js +61 -4
- package/src/js/pds-core/pds-live.js +180 -1
- package/src/js/pds-core/pds-ontology.js +8 -0
- package/src/js/pds-core/pds-theme-utils.js +33 -0
- package/src/js/pds.d.ts +3 -0
- package/src/js/pds.js +22 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":"AA66TA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QApgME;;;WAGG;;;QAgCH;;;;;;WAMG;;;;;QA8EH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAogHH;;;WAGG;;;;;;QAwrBH;;WAEG;;;;;;;;QAoFH;;;;;;WAMG;;;;;;QAsKH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgpDJ"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export var PDS: {
|
|
2
2
|
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
3
3
|
dispatchEvent(event: Event): boolean;
|
|
4
4
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { w as PDS, jt as applyResolvedTheme, Ot as setupSystemListenerIfNeeded };
|
|
6
|
+
export function applyResolvedTheme(raw: any): void;
|
|
7
|
+
export function setupSystemListenerIfNeeded(raw: any): void;
|
|
9
8
|
//# sourceMappingURL=pds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"
|
|
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/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,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":"
|
|
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;;
|
|
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"}
|
|
@@ -3,26 +3,21 @@
|
|
|
3
3
|
* keeps its UI in sync with programmatic theme changes.
|
|
4
4
|
*
|
|
5
5
|
* @element pds-theme
|
|
6
|
-
* @attr {string} label - Optional legend text (defaults to "Theme").
|
|
7
6
|
*/
|
|
8
7
|
declare const THEME_OPTIONS: {
|
|
9
8
|
value: string;
|
|
10
9
|
label: string;
|
|
11
10
|
icon: string;
|
|
12
11
|
}[];
|
|
13
|
-
declare const DEFAULT_LABEL: "Theme";
|
|
14
12
|
declare const LAYERS: string[];
|
|
13
|
+
declare const DEFAULT_THEMES: string[];
|
|
14
|
+
declare const VALID_THEMES: Set<string>;
|
|
15
|
+
declare function normalizePresetThemes(preset: any): any;
|
|
16
|
+
declare function resolveThemePreference(preference: any): string;
|
|
17
|
+
declare function isPresetThemeCompatible(preset: any, themePreference: any): any;
|
|
15
18
|
declare class PdsTheme extends HTMLElement {
|
|
16
|
-
static get observedAttributes(): string[];
|
|
17
19
|
connectedCallback(): void;
|
|
18
20
|
disconnectedCallback(): void;
|
|
19
|
-
attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
|
|
20
|
-
set label(value: string);
|
|
21
|
-
/**
|
|
22
|
-
* Gets the legend/aria-label text to display.
|
|
23
|
-
* @returns {string}
|
|
24
|
-
*/
|
|
25
|
-
get label(): string;
|
|
26
21
|
#private;
|
|
27
22
|
}
|
|
28
23
|
//# sourceMappingURL=pds-theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-theme.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-theme.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pds-theme.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-theme.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH;;;;IAIE;AAEF,+BAAmE;AACnE,uCAAyC;AACzC,wCAA6C;AAE7C,yDAMC;AAED,iEAeC;AAED,iFAIC;AAED;IAUE,0BAOC;IAED,6BAEC;;CAqHF"}
|
|
@@ -124,6 +124,7 @@ export const presets: {
|
|
|
124
124
|
id: string;
|
|
125
125
|
name: string;
|
|
126
126
|
tags: string[];
|
|
127
|
+
themes: string[];
|
|
127
128
|
description: string;
|
|
128
129
|
colors: {
|
|
129
130
|
primary: string;
|
|
@@ -351,6 +352,7 @@ export const presets: {
|
|
|
351
352
|
"pastel-play": {
|
|
352
353
|
id: string;
|
|
353
354
|
name: string;
|
|
355
|
+
themes: string[];
|
|
354
356
|
description: string;
|
|
355
357
|
colors: {
|
|
356
358
|
primary: string;
|
|
@@ -1206,6 +1208,7 @@ export type PDSInitConfig = {
|
|
|
1206
1208
|
autoDefine?: PDSAutoDefineConfig;
|
|
1207
1209
|
managerURL?: string;
|
|
1208
1210
|
manager?: any;
|
|
1211
|
+
liveEdit?: boolean;
|
|
1209
1212
|
log?: any;
|
|
1210
1213
|
};
|
|
1211
1214
|
//# sourceMappingURL=pds-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-config.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-config.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-config.js"],"names":[],"mappings":"AAwqBA;;UAUC;AAED;;UAUC;AAqnCD;;;;;;GAMG;AACH,kCAJW,MAAM,WACN,MAAM,WACH,GAAG,EAAA,QAchB;AAvqCD;;;GAGG;AACH,sCAGE;AA0BF;;;GAGG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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mB;iBACnB,MAAM;cACN,GAAG;eACH,OAAO;UACP,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"AA6fA;;;;;GAKG;AACH;;;IAGI;AA1eJ,mDAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"AAuSA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyPC;0BA5hByB,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-ontology.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-ontology.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-ontology.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-ontology.js"],"names":[],"mappings":"AAyvBA;;;;;;GAMG;AACH,iDALW,WAAW,iBAEnB;IAAwB,QAAQ,EAAxB,MAAM;CACd,GAAU,MAAO,IAAI,CAmKvB;AAED;;;GAGG;AACH,mCAFa,MAAM,EAAE,CAQpB;AAED;;;;;GAKG;AACH,sCAJW,MAAM,kBAEJ,KAAQ,CAoCpB;AAED;;;;GAIG;AACH,wCAHW,MAAM,OAUhB;AAED;;;GAGG;AACH,8BAFa,MAAM,EAAE,CAWpB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function normalizePresetThemes(preset: any): any;
|
|
2
|
+
export function resolveThemePreference(preference: any, { preferDocument }?: {
|
|
3
|
+
preferDocument?: boolean;
|
|
4
|
+
}): string;
|
|
5
|
+
export function isPresetThemeCompatible(preset: any, themePreference: any): any;
|
|
6
|
+
//# sourceMappingURL=pds-theme-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-theme-utils.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-theme-utils.js"],"names":[],"mappings":"AAGA,wDAMC;AAED;;WAeC;AAED,gFAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../src/js/pds.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../src/js/pds.js"],"names":[],"mappings":"AA6LA,mDAsBC;AAGD,4DAuCC;;;;;;;;;;;;;;;;;;;;;;;;;cApOa,OAAO,4BAA4B,EAAE,WAAW;;;;iBAChD,CAAC,SAAS,CAAC,EAAE,OAAO,6BAA6B,EAAE,SAAS,KAAK,IAAI;;;;iBACrE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;qBAChG,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;sBAC7E,CAAC,GAAG,EAAC,MAAM,KAAK,aAAa;;AAW3C,+BAA+B;AAC/B,kBADW,MAAM,GAAG,OAAO,CACD;AArC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH;CAAoC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pure-ds/core",
|
|
3
3
|
"shortname": "pds",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"description": "Pure Design System - Why develop a Design System when you can generate one?",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"import": "./public/assets/js/pds.js"
|
|
40
40
|
},
|
|
41
41
|
"./pds-core": "./src/js/pds.js",
|
|
42
|
-
"./pds-configurator": "./public/assets/js/pds-configurator.js",
|
|
43
42
|
"./auto-define/*": "./public/auto-define/*"
|
|
44
43
|
},
|
|
45
44
|
"files": [
|
|
@@ -59,9 +58,7 @@
|
|
|
59
58
|
"packages/pds-cli/lib/",
|
|
60
59
|
"src/js/pds.d.ts",
|
|
61
60
|
"src/js/pds.js",
|
|
62
|
-
"src/js/pds-configurator.js",
|
|
63
61
|
"src/js/pds-core/",
|
|
64
|
-
"src/js/pds-configurator/",
|
|
65
62
|
"custom-elements.json",
|
|
66
63
|
"custom-elements-manifest.config.js",
|
|
67
64
|
"pds.html-data.json",
|