@pure-ds/core 0.6.8 → 0.6.10
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/custom-elements.json +71 -28
- package/dist/types/pds.d.ts +30 -0
- package/dist/types/public/assets/js/pds-manager.d.ts +146 -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-form.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts +1 -169
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-omnibox.d.ts +0 -2
- package/dist/types/public/assets/pds/components/pds-omnibox.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-config.d.ts +1306 -13
- package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-enhancers-meta.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-generator.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-start-helpers.d.ts +1 -4
- package/dist/types/src/js/pds-core/pds-start-helpers.d.ts.map +1 -1
- package/dist/types/src/js/pds-manager.d.ts +1 -0
- package/dist/types/src/js/pds.d.ts.map +1 -1
- package/package.json +2 -2
- package/packages/pds-cli/bin/pds-static.js +16 -1
- package/public/assets/js/app.js +21 -21
- package/public/assets/js/pds-manager.js +291 -161
- package/public/assets/js/pds.js +16 -16
- package/public/assets/pds/components/pds-form.js +124 -27
- package/public/assets/pds/components/pds-live-edit.js +1214 -104
- package/public/assets/pds/components/pds-omnibox.js +10 -18
- package/public/assets/pds/custom-elements.json +71 -28
- package/public/assets/pds/pds-css-complete.json +1 -6
- package/public/assets/pds/pds.css-data.json +5 -35
- package/src/js/pds-core/pds-config.js +822 -31
- package/src/js/pds-core/pds-enhancers-meta.js +11 -0
- package/src/js/pds-core/pds-enhancers.js +113 -5
- package/src/js/pds-core/pds-generator.js +183 -23
- package/src/js/pds-core/pds-live.js +177 -2
- package/src/js/pds-core/pds-ontology.js +6 -0
- package/src/js/pds-core/pds-start-helpers.js +14 -6
- package/src/js/pds.d.ts +30 -0
- package/src/js/pds.js +36 -60
|
@@ -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":"AAywUA,4EA8CC;AAutBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA59ME;;;WAGG;;;QAgCH;;;;;;WAMG;;;;;QA8EH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwtHH;;;WAGG;;;;;;QAwrBH;;WAEG;;;;;;;;QAoFH;;;;;;WAMG;;;;;;QAsKH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+5DJ"}
|
|
@@ -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 { x as PDS, Yt as applyResolvedTheme, Xt 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":"AA+
|
|
1
|
+
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"AA+uEA;;;;EAAwB;AAqGxB,mDAiBC;AACD,4DAqCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-form.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-form.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-form.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-form.js"],"names":[],"mappings":"AAiCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcE;IAGF,yBAEC;IAgBC,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;IAkBD;;;MAIC;IAED,uBAEC;IAED,cAIC;IAED,0BAcC;IAGD,+BAyBC;IA2eD,cA4CC;;CA6tDF"}
|
|
@@ -1,170 +1,2 @@
|
|
|
1
|
-
|
|
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 getEnumOptions(path: any): any;
|
|
15
|
-
declare function normalizeEnumValue(path: any, value: any): any;
|
|
16
|
-
declare function normalizePaths(paths: any): any[];
|
|
17
|
-
declare function collectRelationPathsByCategory(): {};
|
|
18
|
-
declare function collectPathsFromRelations(target: any): any[];
|
|
19
|
-
declare function collectQuickRulePaths(target: any): string[];
|
|
20
|
-
declare function pathExistsInDesign(path: any, design: any): boolean;
|
|
21
|
-
declare function filterPathsByContext(target: any, paths: any): any;
|
|
22
|
-
declare function getActiveTheme(): {
|
|
23
|
-
value: string;
|
|
24
|
-
isDark: boolean;
|
|
25
|
-
};
|
|
26
|
-
declare function getSpacingOffset(): number;
|
|
27
|
-
declare function ensureColorNormalizer(): any;
|
|
28
|
-
declare function normalizeCssColor(value: any): string;
|
|
29
|
-
declare function rgbToHex(value: any): string;
|
|
30
|
-
declare function normalizeHexColor(value: any): any;
|
|
31
|
-
declare function toColorInputValue(value: any): any;
|
|
32
|
-
declare function getCustomPropertyNames(style: any): any[];
|
|
33
|
-
declare function makeTokenMatchers(relations: any): any[];
|
|
34
|
-
declare function addToValueMap(map: any, key: any, value: any): void;
|
|
35
|
-
declare function getTokenIndex(): any;
|
|
36
|
-
declare function extractAllVarRefs(text: any): Set<any>;
|
|
37
|
-
declare function collectVarRefsFromInline(element: any): Set<any>;
|
|
38
|
-
declare function collectScanTargets(target: any, limit?: number): any[];
|
|
39
|
-
declare function collectVarRefsFromMatchingRules(element: any): Set<any>;
|
|
40
|
-
declare function collectPathsFromComputedStyles(target: any): any[] | {
|
|
41
|
-
paths: any[];
|
|
42
|
-
hints: {};
|
|
43
|
-
debug: {
|
|
44
|
-
vars: any[];
|
|
45
|
-
paths: any[];
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
declare function collectQuickContext(target: any): {
|
|
49
|
-
paths: any[];
|
|
50
|
-
hints: any;
|
|
51
|
-
debug: any;
|
|
52
|
-
};
|
|
53
|
-
declare function collectDrawerPaths(quickPaths: any): any[];
|
|
54
|
-
declare function buildSchemaFromPaths(paths: any, design: any, hints?: {}): {
|
|
55
|
-
schema: {
|
|
56
|
-
type: string;
|
|
57
|
-
properties: {};
|
|
58
|
-
};
|
|
59
|
-
uiSchema: {};
|
|
60
|
-
};
|
|
61
|
-
declare function getGeneratorClass(): Promise<any>;
|
|
62
|
-
declare function applyDesignPatch(patch: any): Promise<void>;
|
|
63
|
-
declare function getStoredConfig(): any;
|
|
64
|
-
declare function setStoredConfig(nextConfig: any): void;
|
|
65
|
-
declare function getPresetOptions(): {
|
|
66
|
-
id: any;
|
|
67
|
-
name: any;
|
|
68
|
-
}[];
|
|
69
|
-
declare function getActivePresetId(): any;
|
|
70
|
-
declare function applyPresetSelection(presetId: any): Promise<void>;
|
|
71
|
-
declare function setFormSchemas(form: any, schema: any, uiSchema: any, design: any): void;
|
|
72
|
-
declare function buildForm(paths: any, design: any, onSubmit: any, onUndo: any, hints?: {}): Promise<{
|
|
73
|
-
form: import("../../../../src/js/pds").SchemaForm;
|
|
74
|
-
applyBtn: HTMLButtonElement;
|
|
75
|
-
undoBtn: HTMLButtonElement;
|
|
76
|
-
}>;
|
|
77
|
-
declare const PDS: any;
|
|
78
|
-
declare const EDITOR_TAG: "pds-live-edit";
|
|
79
|
-
declare const STYLE_ID: "pds-live-editor-styles";
|
|
80
|
-
declare const TARGET_ATTR: "data-pds-live-target";
|
|
81
|
-
declare const DROPDOWN_CLASS: "pds-live-editor-dropdown";
|
|
82
|
-
declare const MARKER_CLASS: "pds-live-editor-marker";
|
|
83
|
-
declare namespace CATEGORY_ICONS {
|
|
84
|
-
let colors: string;
|
|
85
|
-
let typography: string;
|
|
86
|
-
let spatialRhythm: string;
|
|
87
|
-
let shape: string;
|
|
88
|
-
let layout: string;
|
|
89
|
-
let behavior: string;
|
|
90
|
-
let layers: string;
|
|
91
|
-
let icons: string;
|
|
92
|
-
}
|
|
93
|
-
declare const QUICK_RULES: {
|
|
94
|
-
selector: string;
|
|
95
|
-
paths: string[];
|
|
96
|
-
}[];
|
|
97
|
-
declare const DEFAULT_QUICK_PATHS: string[];
|
|
98
|
-
declare const QUICK_STYLE_PROPERTIES: string[];
|
|
99
|
-
declare const INLINE_VAR_REGEX: RegExp;
|
|
100
|
-
declare const CUSTOM_PROP_REGEX: RegExp;
|
|
101
|
-
declare const COLOR_VALUE_REGEX: RegExp;
|
|
102
|
-
declare const ENUM_FIELD_OPTIONS: {
|
|
103
|
-
"shape.borderWidth": string[];
|
|
104
|
-
};
|
|
105
|
-
declare let cachedTokenIndex: any;
|
|
106
|
-
declare let cachedTokenIndexMeta: any;
|
|
107
|
-
declare let colorNormalizer: any;
|
|
108
|
-
declare const GLOBAL_LAYOUT_PATHS: Set<string>;
|
|
109
|
-
declare const FORM_CONTEXT_PATHS: Set<string>;
|
|
110
|
-
declare const SURFACE_CONTEXT_PATHS: Set<string>;
|
|
111
|
-
declare const DARK_MODE_PATH_MARKER: ".darkMode.";
|
|
112
|
-
declare const QUICK_EDIT_LIMIT: 4;
|
|
113
|
-
declare const DROPDOWN_VIEWPORT_PADDING: 8;
|
|
114
|
-
declare class PdsLiveEdit extends HTMLElement {
|
|
115
|
-
_boundMouseOver: any;
|
|
116
|
-
_boundMouseOut: any;
|
|
117
|
-
_boundMouseMove: any;
|
|
118
|
-
_boundReposition: any;
|
|
119
|
-
_activeTarget: any;
|
|
120
|
-
_activeDropdown: HTMLElement;
|
|
121
|
-
_holdOpen: boolean;
|
|
122
|
-
_closeTimer: number;
|
|
123
|
-
_drawer: HTMLElement;
|
|
124
|
-
_selectors: {
|
|
125
|
-
selector: string;
|
|
126
|
-
list: any[];
|
|
127
|
-
};
|
|
128
|
-
_lastPointer: {
|
|
129
|
-
x: any;
|
|
130
|
-
y: any;
|
|
131
|
-
};
|
|
132
|
-
_boundDocKeydown: any;
|
|
133
|
-
_connected: boolean;
|
|
134
|
-
_undoStack: any[];
|
|
135
|
-
_dropdownMenuOpen: boolean;
|
|
136
|
-
_dropdownObserver: MutationObserver;
|
|
137
|
-
connectedCallback(): void;
|
|
138
|
-
disconnectedCallback(): void;
|
|
139
|
-
_teardown(): void;
|
|
140
|
-
_handleMouseOver(event: any): void;
|
|
141
|
-
_handleMouseOut(event: any): void;
|
|
142
|
-
_findEditableTarget(node: any): any;
|
|
143
|
-
_showForTarget(target: any): void;
|
|
144
|
-
_removeActiveUI(): void;
|
|
145
|
-
_addDocumentListeners(): void;
|
|
146
|
-
_removeDocumentListeners(): void;
|
|
147
|
-
_handleDocumentKeydown(event: any): void;
|
|
148
|
-
_scheduleClose(): void;
|
|
149
|
-
_clearCloseTimer(): void;
|
|
150
|
-
_addRepositionListeners(): void;
|
|
151
|
-
_removeRepositionListeners(): void;
|
|
152
|
-
_repositionDropdown(): void;
|
|
153
|
-
_positionDropdown(target: any, dropdown: any): void;
|
|
154
|
-
_handleMouseMove(event: any): void;
|
|
155
|
-
_addMouseMoveListener(): void;
|
|
156
|
-
_removeMouseMoveListener(): void;
|
|
157
|
-
_addMouseOverListener(): void;
|
|
158
|
-
_removeMouseOverListener(): void;
|
|
159
|
-
_watchDropdownState(): void;
|
|
160
|
-
_watchDropdownState(): void;
|
|
161
|
-
_unwatchDropdownState(): void;
|
|
162
|
-
_unwatchDropdownState(): void;
|
|
163
|
-
_isPointerWithinSafeZone(): boolean;
|
|
164
|
-
_buildDropdown(target: any, quickPaths: any, hints: any, debug: any): HTMLElement;
|
|
165
|
-
_renderQuickForm(container: any, footer: any, paths: any, design: any, hints: any, target: any, quickPaths: any): Promise<void>;
|
|
166
|
-
_openDrawer(target: any, quickPaths: any): Promise<void>;
|
|
167
|
-
_handleFormSubmit(event: any, form: any): Promise<void>;
|
|
168
|
-
_handleUndo(): Promise<void>;
|
|
169
|
-
}
|
|
1
|
+
export {};
|
|
170
2
|
//# sourceMappingURL=pds-live-edit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-live-edit.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-edit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-live-edit.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-edit.js"],"names":[],"mappings":""}
|
|
@@ -20,8 +20,6 @@ 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;
|
|
25
23
|
formAssociatedCallback(): void;
|
|
26
24
|
formDisabledCallback(disabled: any): void;
|
|
27
25
|
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":"AAmBA;IACE,+BAA6B;IAE7B,0CAUC;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;IAOD,+BAA2B;IAE3B,0CAGC;IAED,0BAEC;IAED,2CAEC;IAED,qBAEC;IAED,sBAEC;;CA8lBF"}
|