Repository navigation
Expand file tree
/
Copy pathcustom-elements.json
More file actions
276 lines (276 loc) · 25.6 KB
/
Copy pathcustom-elements.json
File metadata and controls
276 lines (276 loc) · 25.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
{
"schemaVersion": "1.0.0",
"readme": "README.md",
"modules": [
{
"kind": "javascript-module",
"path": "dist/PropertyGrid.js",
"declarations": [
{
"kind": "class",
"name": "PropertyGrid",
"members": [
{
"kind": "field", "name": "getSpecialEditorForType",
"type": { "text": "(property: IProperty, currentValue: any, propertyPath: string, wbRender: WbRenderEventType, additionalInfo?: any) => Promise<HTMLElement | null>" },
"description": "JavaScript-only async editor replacement hook, including array/dictionary collections; null retains default fallback. Supports pre-upgrade assignment; stale async results are ignored. Not automatically copied into collection draft grids. Commit replacements through setPropertyValue."
},
{
"kind": "field",
"name": "additionalStyleSheets",
"type": { "text": "readonly CSSStyleSheet[]" },
"default": "[]",
"description": "JavaScript-only per-instance constructed sheets adopted after built-in sheets. Assignment and retrieval defensively copy the list; native adoption errors surface. Supports pre-upgrade assignment."
},
{
"kind": "field",
"name": "rowHeight",
"type": { "text": "number" },
"default": "22",
"attribute": "row-height",
"description": "Fixed row height in CSS pixels. Finite numbers >= 4 only; invalid assignments throw RangeError and retain the previous value. Synchronizes numeric/CSS geometry, scrolling the retained focused row into the updated viewport before virtualization; preserves pending editing and feedback classes across resize. Supports pre-upgrade assignment."
},
{
"kind": "field", "name": "nameColumnRatio", "type": { "text": "number" }, "default": "0.5",
"attribute": "name-column-ratio",
"description": "Finite relative name-column share strictly between 0 and 1; invalid assignments throw RangeError and retain state. Updates numeric weights, clears dragged custom widths and resizes without rebuilding editors; retains row/cell validation feedback. Supports pre-upgrade assignment."
},
{
"kind": "field", "name": "showHead", "type": { "text": "boolean" }, "default": "false", "attribute": "show-head",
"description": "Live type-name header visibility; updates display without refresh and scrolls the retained focused row into the resized viewport before virtualization. Supports pre-upgrade assignment."
},
{
"kind": "field", "name": "showDescription", "type": { "text": "boolean" }, "default": "true", "attribute": "show-description",
"description": "Live description visibility; updates display without refresh and scrolls the retained focused row into the resized viewport before virtualization. Supports pre-upgrade assignment. Use the property to hide the default-visible region."
},
{
"kind": "field",
"name": "noCategory",
"type": {
"text": "boolean"
}
},
{
"kind": "field",
"name": "hideProperties",
"type": {
"text": "string"
}
},
{
"kind": "field",
"name": "expanded",
"type": {
"text": "boolean"
}
},
{
"kind": "field",
"name": "selectedObject",
"type": {
"text": "object"
}
},
{
"kind": "field",
"name": "typeName",
"type": {
"text": "string"
}
},
{
"kind": "field",
"name": "getTypeInfo",
"type": {
"text": "(obj: any, type: string) => Promise<ITypeInfo>"
}
},
{
"kind": "field",
"name": "typeDefinitions",
"type": {
"text": "object"
}
}
],
"attributes": [
{ "name": "name-column-ratio", "fieldName": "nameColumnRatio", "description": "Initial decimal parseFloat value at readiness, default 0.5; must be finite and strictly between 0 and 1. Overrides pre-readiness assignments. Later attribute changes are not reactive; use nameColumnRatio live." },
{ "name": "show-head", "fieldName": "showHead", "description": "Initial presence-based Boolean (even false text means true), default false. Overrides pre-readiness assignment; use showHead live." },
{ "name": "show-description", "fieldName": "showDescription", "description": "Initial presence-based Boolean (even false text means true), default true. Overrides pre-readiness assignment; use showDescription = false to hide, or the property for live changes." },
{
"name": "row-height",
"fieldName": "rowHeight",
"description": "Initial height at readiness, default 22px, parsed once with decimal parseFloat: 28px/28malformed means 28; 0x20 parses as 0 and is rejected without changing state. Results must be finite and >= 4. Takes precedence over pre-readiness property assignment. Use rowHeight for live changes; later attribute changes are not reactive."
},
{
"name": "no-category",
"fieldName": "noCategory"
},
{
"name": "hide-properties",
"fieldName": "hideProperties"
},
{
"name": "expanded",
"fieldName": "expanded"
},
{
"name": "selected-object",
"fieldName": "selectedObject"
},
{
"name": "type-name",
"fieldName": "typeName"
},
{
"name": "type-definitions",
"fieldName": "typeDefinitions"
}
],
"events": [
{
"name": "property-changed",
"description": "Is raised when a properties value changed"
}
],
"cssParts": [
{ "name": "collection-editor", "description": "Compact collection leaf editor wrapper" },
{ "name": "collection-summary", "description": "Collection count/null/missing summary" },
{ "name": "collection-edit", "description": "Labelled Edit button" },
{ "name": "collection-dialog", "description": "Native modal outside virtual rows; closed dialogs retain native hiding" },
{ "name": "collection-title", "description": "Modal accessible heading" },
{ "name": "collection-body", "description": "Responsive wrapping modal body" },
{ "name": "collection-entries", "description": "Selection and entry actions area" },
{ "name": "collection-label", "description": "Modal field label" },
{ "name": "collection-list", "description": "Items/keys native selection list" },
{ "name": "collection-toolbar", "description": "Add/remove/reorder toolbar" },
{ "name": "collection-item", "description": "Selected draft item area" },
{ "name": "collection-key", "description": "Literal dictionary key input" },
{ "name": "collection-grid", "description": "Nested draft grid host with edit-owned pending state across virtual rows and async readiness; its shadow controls use their own parts and inherited tokens/forwarded instance sheets" },
{ "name": "collection-null", "description": "Nullable collection choice label" },
{ "name": "collection-null-toggle", "description": "Set to null checkbox inside modal" },
{ "name": "collection-error", "description": "Visible validation/factory/unsupported-value alert" },
{ "name": "collection-footer", "description": "Cancel/Apply footer" },
{ "name": "collection-action", "description": "Modal action button" },
{ "name": "collection-apply", "description": "Apply replacement button" },
{ "name": "container", "description": "Overall grid layout" },
{ "name": "header", "description": "Optional type-name header" },
{ "name": "tree-container", "description": "Tree layout wrapper" },
{ "name": "tree", "description": "Wunderbaum tree element; fixed row geometry must be changed with rowHeight" },
{ "name": "description", "description": "Description region" },
{ "name": "description-title", "description": "Selected property title" },
{ "name": "description-text", "description": "Selected property description/default value" },
{ "name": "row", "description": "Every rendered category, object or leaf row" },
{ "name": "category-row", "description": "Category row" },
{ "name": "object-row", "description": "Nested-type row" },
{ "name": "property-name", "description": "Name cell, including category/object rows" },
{ "name": "property-value", "description": "Value cell when present; colspan rows may omit it" },
{ "name": "expander", "description": "Expand/collapse indicator" },
{ "name": "editor", "description": "Editor root and native input/select/textarea/button light-DOM descendants, including controls created during connection or inserted later/from another document; nested shadow roots are not traversed" },
{ "name": "editor-input", "description": "Native input control; also receives editor-<input.type>" },
{ "name": "editor-text", "description": "Text input" },
{ "name": "editor-number", "description": "Number input" },
{ "name": "editor-checkbox", "description": "Checkbox input" },
{ "name": "editor-color", "description": "Color input" },
{ "name": "editor-select", "description": "Native select" },
{ "name": "editor-textarea", "description": "Native textarea" },
{ "name": "editor-button", "description": "Native button" },
{ "name": "editor-wrapper", "description": "Built-in nullable/any wrapper" },
{ "name": "nullable-editor", "description": "Nullable wrapper; collection drafts also use it for explicit named-object enable/default creation" },
{ "name": "nullable-toggle", "description": "Nullable checkbox; checked means enabled, and collection drafts preserve untouched null/missing parents" },
{ "name": "any-editor", "description": "Any-type wrapper" },
{ "name": "any-type-selector", "description": "Any-type select" }
],
"cssProperties": [
{ "name": "--pg-collection-background", "default": "var(--pg-background, #fff)", "description": "Modal surface" },
{ "name": "--pg-collection-color", "default": "var(--pg-color, #56534c)", "description": "Modal text" },
{ "name": "--pg-collection-border", "default": "1px solid var(--pg-border-color, #56534c)", "description": "Modal border" },
{ "name": "--pg-collection-radius", "default": "6px", "description": "Modal border radius" },
{ "name": "--pg-collection-padding", "default": "16px", "description": "Modal padding" },
{ "name": "--pg-collection-backdrop", "default": "rgb(0 0 0 / 35%)", "description": "Native modal backdrop" },
{ "name": "--pg-collection-error-color", "default": "#b42318", "description": "Modal validation and factory error color" },
{ "name": "--pg-collection-button-hover-background", "default": "color-mix(in srgb, var(--pg-editor-background, ButtonFace) 88%, var(--pg-editor-color, ButtonText))", "description": "Enabled collection Edit and dialog button hover background. Without color-mix support falls back to --pg-hover-background or #e5f3fb. Disabled buttons do not receive hover styles." },
{ "name": "--pg-collection-button-hover-color", "default": "var(--pg-editor-color, ButtonText)", "description": "Enabled collection Edit and dialog button hover text color" },
{ "name": "--pg-row-background", "default": "transparent", "description": "Low-priority zero-specificity layered background-color only, excluding hover/active/selected; preserves author backgrounds and renderer images" },
{ "name": "--pg-alternate-row-background", "default": "var(--pg-row-background, transparent)", "description": "Layered alternate background-color with stable virtualization parity; author and interaction states win; images preserved" },
{ "name": "--pg-category-background", "default": "var(--pg-row-background, transparent)", "description": "Layered category background-color only; author and interaction states win; images preserved" },
{ "name": "--pg-row-separator-color", "default": "var(--wb-grid-color)", "description": "Opt-in native row bottom border color; requires inherited CSS style-query support. Missing new tokens leave original borders untouched; interaction/focus/feedback excluded" },
{ "name": "--pg-cell-separator-color", "default": "var(--wb-grid-color)", "description": "Opt-in native grid-cell right border color; requires inherited CSS style-query support. Missing tokens preserve original last-cell behavior; validation/error/busy feedback excluded" },
{ "name": "--pg-row-separator-style", "default": "solid", "description": "Opt-in solid/dashed/dotted native bottom border; none is 1px solid transparent, never zero-width or pseudo paint. Requires CSS style queries; interaction/focus/feedback excluded. Built-in separator specificity leaves later authored class/part borders able to win" },
{ "name": "--pg-cell-separator-style", "default": "solid", "description": "Opt-in solid/dashed/dotted native grid-cell right border; none is 1px solid transparent. Requires CSS style queries; feedback excluded and later authored class/part borders can win" },
{ "name": "--pg-cell-padding-x", "default": "2px", "description": "Horizontal cell padding bridged to wb-col-padding-x" },
{ "name": "--pg-category-name-inset", "default": "0px", "description": "Extra local category name-cell padding, not per-depth indentation" },
{ "name": "--pg-indent", "default": "20px", "description": "Per-depth hierarchy indentation; expander slot stays 20px. Requires inherited CSS style queries; labels adjust to the available name-cell width." },
{ "name": "--pg-category-font-weight", "default": "inherit", "description": "Category row font weight" },
{ "name": "--pg-description-font-weight", "default": "inherit", "description": "Description region font weight" },
{ "name": "--pg-description-min-height", "default": "auto", "description": "Optional description region minimum height" },
{ "name": "--pg-description-max-height", "default": "none", "description": "Optional description maximum height with scrolling overflow" },
{ "name": "--pg-editor-height", "default": "native (21px for existing form-control)", "description": "Requires inherited CSS style queries. Only when defined, adds capped text/select/textarea/button height and minimum width. Value cells and built-in wrappers center editors by default. Checkbox/radio and wrapper roots retain existing sizing, including 21px form-control roots. Layered native sizing preserves ordinary author rules; eligible form-control heights explicitly consume the token." },
{ "name": "--pg-editor-focus-style", "default": "native", "description": "Focus-visible outline style" },
{ "name": "--pg-editor-focus-width", "default": "native", "description": "Focus-visible outline width" },
{ "name": "--pg-background", "default": "#ffffff", "description": "Tree background; outer container otherwise transparent" },
{ "name": "--pg-color", "default": "#56534c", "description": "Tree text; other regions otherwise inherit" },
{ "name": "--pg-border-color", "default": "#56534c", "description": "Tree border color" },
{ "name": "--pg-grid-color", "default": "#dedede", "description": "Row and cell separator color" },
{ "name": "--pg-focus-color", "default": "#275dc5", "description": "Focused tree border and editor outline fallback" },
{ "name": "--pg-hover-background", "default": "rgb(247.1401574803, 251.5590551181, 253.6598425197)", "description": "Hovered row background" },
{ "name": "--pg-hover-border-color", "default": "transparent sides (focus color for focused rows), var(--wb-grid-color) bottom", "description": "Nonactive/nonselected hovered row border color" },
{ "name": "--pg-selected-background", "default": "#e5f3fb (focused), #f0f0f0 (unfocused)", "description": "Active/selected row background" },
{ "name": "--pg-selected-border-color", "default": "#70c0e7 (focused), rgb(171.5, 171.5, 171.5) (unfocused)", "description": "Active/selected row border" },
{ "name": "--pg-selected-hover-background", "default": "#dceff8 (focused), #eaeaea (unfocused)", "description": "Active/selected hovered background" },
{ "name": "--pg-selected-hover-border-color", "default": "#26a0da", "description": "Active hovered border" },
{ "name": "--pg-font-family", "default": "Helvetica, sans-serif (tree)", "description": "Inherited typography; other regions retain their defaults" },
{ "name": "--pg-font-size", "default": "14px (tree)", "description": "Tree font size; container otherwise inherits" },
{ "name": "--pg-tree-border", "default": "2px solid var(--wb-border-color)", "description": "Tree border; focus changes its color" },
{ "name": "--pg-tree-radius", "default": "4px", "description": "Tree border radius" },
{ "name": "--pg-header-background", "default": "#f0f0f0", "description": "Type header background" },
{ "name": "--pg-header-color", "default": "inherit", "description": "Type header text" },
{ "name": "--pg-header-border", "default": "1px lightgray solid", "description": "Type header bottom border" },
{ "name": "--pg-header-font-size", "default": "10pt", "description": "Type header font size" },
{ "name": "--pg-header-font-weight", "default": "inherit", "description": "Type header weight" },
{ "name": "--pg-header-padding", "default": "0 0 0 5px", "description": "Type header padding" },
{ "name": "--pg-description-background", "default": "#e6e6e6", "description": "Description background" },
{ "name": "--pg-description-color", "default": "inherit", "description": "Description text" },
{ "name": "--pg-description-border", "default": "none", "description": "Description top border" },
{ "name": "--pg-description-font-family", "default": "var(--pg-font-family, tahoma, arial, helvetica)", "description": "Description font family" },
{ "name": "--pg-description-font-size", "default": "10pt", "description": "Description font size" },
{ "name": "--pg-description-padding", "default": "5px", "description": "Description padding" },
{ "name": "--pg-description-title-margin", "default": "1.33em 0", "description": "Description title margin" },
{ "name": "--pg-description-title-font-weight", "default": "bold", "description": "Description title weight" },
{ "name": "--pg-description-text-margin", "default": "1em 0", "description": "Description text margin" },
{ "name": "--pg-editor-background", "default": "native", "description": "Native editor background" },
{ "name": "--pg-editor-color", "default": "native", "description": "Native editor text" },
{ "name": "--pg-editor-border", "default": "native / none for direct Wunderbaum editors", "description": "Native editor border" },
{ "name": "--pg-editor-radius", "default": "native", "description": "Editor border radius" },
{ "name": "--pg-editor-padding", "default": "native", "description": "Editor padding; inline styles still take precedence" },
{ "name": "--pg-editor-padding-inline", "default": "native / --pg-editor-padding", "description": "Optional inline-axis padding override for native editors and collection buttons/keys; block padding unchanged. Requires inherited CSS style queries. Author rules still take precedence." },
{ "name": "--pg-editor-font-family", "default": "var(--pg-font-family, native)", "description": "Editor font family" },
{ "name": "--pg-editor-font-size", "default": "native", "description": "Editor font size" },
{ "name": "--pg-editor-accent-color", "default": "auto", "description": "Native checkbox/radio accent" },
{ "name": "--pg-editor-focus-border", "default": "1px dashed #70c0e7 (direct only)", "description": "Original focused direct input/select border. Nested non-checkbox/radio input/select controls consume explicit tokens only via low-priority inherited CSS style queries; missing tokens add no fallback focus border. Author rules win." },
{ "name": "--pg-editor-focus-color", "default": "var(--pg-focus-color, native)", "description": "Editor focus-visible outline color" },
{ "name": "--pg-expander-size", "default": "12px", "description": "Expander background image size, both axes" },
{ "name": "--pg-expander-position", "default": "3px 3px", "description": "Expander background position" },
{ "name": "--pg-expander-filter", "default": "none", "description": "Expander image filter" },
{ "name": "--pg-expander-opacity", "default": "1", "description": "Expander opacity" }
],
"superclass": {
"name": "BaseCustomWebComponentConstructorAppend"
},
"tagName": "node-projects-property-grid",
"customElement": true
}
],
"exports": [
{
"kind": "custom-element-definition",
"name": "node-projects-property-grid",
"declaration": {
"name": "PropertyGrid",
"module": "dist/PropertyGrid.js"
}
}
]
}
]
}