@openelement/ui 1.0.0-alpha.14 → 1.0.0-alpha.16
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/CUSTOMIZATION.md +106 -112
- package/README.md +19 -39
- package/custom-elements.json +369 -0
- package/package.json +3 -2
- package/src/button-machine.js +54 -0
- package/src/component-config.js +7 -0
- package/src/component-recipes.js +2 -24
- package/src/copy-feedback.js +32 -0
- package/src/dialog-machine.js +104 -0
- package/src/dropdown-machine.js +253 -0
- package/src/generated-manifest.json +135 -87
- package/src/index.d.ts +7 -8
- package/src/index.js +7 -8
- package/src/input-machine.js +33 -0
- package/src/open-button.css +119 -108
- package/src/open-button.d.ts +34 -342
- package/src/open-button.generated.js +592 -0
- package/src/open-button.js +115 -1140
- package/src/open-code-block.css +24 -44
- package/src/open-code-block.d.ts +15 -175
- package/src/open-code-block.generated.js +293 -0
- package/src/open-code-block.js +112 -224
- package/src/open-dialog.css +114 -127
- package/src/open-dialog.d.ts +22 -261
- package/src/open-dialog.generated.js +501 -0
- package/src/open-dialog.js +137 -632
- package/src/open-dropdown.css +26 -26
- package/src/open-dropdown.d.ts +15 -218
- package/src/open-dropdown.generated.js +211 -0
- package/src/open-dropdown.js +74 -355
- package/src/open-input.css +69 -74
- package/src/open-input.d.ts +34 -461
- package/src/open-input.generated.js +685 -0
- package/src/open-input.js +161 -1802
- package/src/open-theme-toggle.css +37 -47
- package/src/open-theme-toggle.d.ts +19 -190
- package/src/open-theme-toggle.generated.js +564 -0
- package/src/open-theme-toggle.js +209 -509
- package/src/theme-contract.js +40 -0
- package/src/theme.css +26 -8
- package/src/control-recipe.css +0 -21
- package/src/register.d.ts +0 -4
- package/src/register.js +0 -22
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$comment": "GENERATED FILE - do not edit. Regenerate with: pnpm --filter @openelement/ui run generate:ui-manifest (drift gate: ui-manifest:check).",
|
|
3
3
|
"schemaVersion": "1.0.0",
|
|
4
4
|
"packageName": "@openelement/ui",
|
|
5
|
-
"version": "1.0.0-alpha.
|
|
5
|
+
"version": "1.0.0-alpha.16",
|
|
6
6
|
"description": "Semantic Web Component library for openElement",
|
|
7
7
|
"author": "openElement",
|
|
8
8
|
"license": "MIT",
|
|
@@ -11,40 +11,44 @@
|
|
|
11
11
|
"declarations": [
|
|
12
12
|
{
|
|
13
13
|
"tagName": "open-button",
|
|
14
|
-
"className": "
|
|
15
|
-
"
|
|
16
|
-
"description": "Button or link control: an `href` property switches the compiled anchor",
|
|
14
|
+
"className": "OpenButtonElement",
|
|
15
|
+
"description": "Button or link control with variant/size surfaces and form participation.",
|
|
17
16
|
"attributes": [
|
|
18
17
|
{
|
|
19
18
|
"name": "variant",
|
|
20
19
|
"type": "string",
|
|
21
|
-
"
|
|
20
|
+
"default": "default",
|
|
21
|
+
"reflects": true
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "size",
|
|
25
25
|
"type": "string",
|
|
26
|
-
"
|
|
26
|
+
"default": "md",
|
|
27
|
+
"reflects": true
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
"name": "disabled",
|
|
30
31
|
"type": "boolean",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
32
|
+
"default": "false",
|
|
33
|
+
"reflects": true
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
36
|
"name": "href",
|
|
36
37
|
"type": "string",
|
|
37
|
-
"
|
|
38
|
+
"default": "",
|
|
39
|
+
"reflects": true
|
|
38
40
|
},
|
|
39
41
|
{
|
|
40
42
|
"name": "target",
|
|
41
43
|
"type": "string",
|
|
42
|
-
"
|
|
44
|
+
"default": "",
|
|
45
|
+
"reflects": true
|
|
43
46
|
},
|
|
44
47
|
{
|
|
45
48
|
"name": "type",
|
|
46
49
|
"type": "string",
|
|
47
|
-
"
|
|
50
|
+
"default": "button",
|
|
51
|
+
"reflects": true
|
|
48
52
|
}
|
|
49
53
|
],
|
|
50
54
|
"events": [
|
|
@@ -56,14 +60,12 @@
|
|
|
56
60
|
],
|
|
57
61
|
"slots": [
|
|
58
62
|
{
|
|
59
|
-
"name": ""
|
|
60
|
-
"description": "Default slot"
|
|
63
|
+
"name": ""
|
|
61
64
|
}
|
|
62
65
|
],
|
|
63
66
|
"cssParts": [
|
|
64
67
|
{
|
|
65
|
-
"name": "control"
|
|
66
|
-
"description": "The visible button or anchor element"
|
|
68
|
+
"name": "control"
|
|
67
69
|
}
|
|
68
70
|
],
|
|
69
71
|
"openElement": {
|
|
@@ -73,56 +75,64 @@
|
|
|
73
75
|
"hydrate": "load",
|
|
74
76
|
"status": "stable",
|
|
75
77
|
"module": "@openelement/ui/open-button",
|
|
76
|
-
"export": "
|
|
78
|
+
"export": "OpenButtonElement",
|
|
79
|
+
"tailwind": {
|
|
80
|
+
"required": true,
|
|
81
|
+
"sources": [
|
|
82
|
+
"./src/theme.css"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"root": "shadow",
|
|
86
|
+
"styles": [
|
|
87
|
+
"./open-button.css"
|
|
88
|
+
],
|
|
89
|
+
"ssrHostExport": "OpenButton__ssrHost"
|
|
77
90
|
}
|
|
78
91
|
},
|
|
79
92
|
{
|
|
80
93
|
"tagName": "open-input",
|
|
81
|
-
"className": "
|
|
82
|
-
"
|
|
83
|
-
"description": "Form-associated text input with a label, an inline error slot, and native",
|
|
94
|
+
"className": "OpenInputElement",
|
|
95
|
+
"description": "Form-associated text input with a label, an error slot and native validity.",
|
|
84
96
|
"attributes": [
|
|
85
97
|
{
|
|
86
98
|
"name": "type",
|
|
87
99
|
"type": "string",
|
|
88
|
-
"
|
|
100
|
+
"default": "text"
|
|
89
101
|
},
|
|
90
102
|
{
|
|
91
103
|
"name": "placeholder",
|
|
92
104
|
"type": "string",
|
|
93
|
-
"
|
|
105
|
+
"default": ""
|
|
94
106
|
},
|
|
95
107
|
{
|
|
96
108
|
"name": "label",
|
|
97
109
|
"type": "string",
|
|
98
|
-
"
|
|
110
|
+
"default": ""
|
|
99
111
|
},
|
|
100
112
|
{
|
|
101
113
|
"name": "name",
|
|
102
114
|
"type": "string",
|
|
103
|
-
"
|
|
115
|
+
"default": ""
|
|
104
116
|
},
|
|
105
117
|
{
|
|
106
118
|
"name": "value",
|
|
107
119
|
"type": "string",
|
|
108
|
-
"
|
|
120
|
+
"default": ""
|
|
109
121
|
},
|
|
110
122
|
{
|
|
111
123
|
"name": "disabled",
|
|
112
124
|
"type": "boolean",
|
|
113
|
-
"description": "disabled attribute",
|
|
114
125
|
"default": "false"
|
|
115
126
|
},
|
|
116
127
|
{
|
|
117
128
|
"name": "required",
|
|
118
129
|
"type": "boolean",
|
|
119
|
-
"description": "required attribute",
|
|
120
130
|
"default": "false"
|
|
121
131
|
},
|
|
122
132
|
{
|
|
123
133
|
"name": "error",
|
|
124
134
|
"type": "string",
|
|
125
|
-
"
|
|
135
|
+
"default": ""
|
|
126
136
|
}
|
|
127
137
|
],
|
|
128
138
|
"events": [
|
|
@@ -149,20 +159,16 @@
|
|
|
149
159
|
],
|
|
150
160
|
"cssParts": [
|
|
151
161
|
{
|
|
152
|
-
"name": "wrapper"
|
|
153
|
-
"description": "The outer input-wrapper div"
|
|
162
|
+
"name": "wrapper"
|
|
154
163
|
},
|
|
155
164
|
{
|
|
156
|
-
"name": "label"
|
|
157
|
-
"description": "The label element"
|
|
165
|
+
"name": "label"
|
|
158
166
|
},
|
|
159
167
|
{
|
|
160
|
-
"name": "control"
|
|
161
|
-
"description": "The input element"
|
|
168
|
+
"name": "control"
|
|
162
169
|
},
|
|
163
170
|
{
|
|
164
|
-
"name": "error"
|
|
165
|
-
"description": "The error message small element"
|
|
171
|
+
"name": "error"
|
|
166
172
|
}
|
|
167
173
|
],
|
|
168
174
|
"openElement": {
|
|
@@ -172,19 +178,29 @@
|
|
|
172
178
|
"hydrate": "load",
|
|
173
179
|
"status": "experimental",
|
|
174
180
|
"module": "@openelement/ui/open-input",
|
|
175
|
-
"export": "
|
|
181
|
+
"export": "OpenInputElement",
|
|
182
|
+
"tailwind": {
|
|
183
|
+
"required": true,
|
|
184
|
+
"sources": [
|
|
185
|
+
"./src/theme.css"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"root": "shadow",
|
|
189
|
+
"styles": [
|
|
190
|
+
"./open-input.css"
|
|
191
|
+
],
|
|
192
|
+
"ssrHostExport": "OpenInput__ssrHost"
|
|
176
193
|
}
|
|
177
194
|
},
|
|
178
195
|
{
|
|
179
196
|
"tagName": "open-theme-toggle",
|
|
180
|
-
"className": "
|
|
181
|
-
"
|
|
182
|
-
"description": "Theme toggle button for dark/light mode: reads and flips the document's",
|
|
197
|
+
"className": "OpenThemeToggleElement",
|
|
198
|
+
"description": "Theme toggle button for dark/light mode: reads and flips the document's `data-theme` (with an initialization priority chain) and persists the choice; icon visibility follows the current theme attribute.",
|
|
183
199
|
"attributes": [
|
|
184
200
|
{
|
|
185
201
|
"name": "theme",
|
|
186
202
|
"type": "string",
|
|
187
|
-
"
|
|
203
|
+
"default": "dark"
|
|
188
204
|
}
|
|
189
205
|
],
|
|
190
206
|
"events": [
|
|
@@ -196,16 +212,13 @@
|
|
|
196
212
|
],
|
|
197
213
|
"cssParts": [
|
|
198
214
|
{
|
|
199
|
-
"name": "toggle"
|
|
200
|
-
"description": "The button element"
|
|
215
|
+
"name": "toggle"
|
|
201
216
|
},
|
|
202
217
|
{
|
|
203
|
-
"name": "icon-sun"
|
|
204
|
-
"description": "The sun SVG icon"
|
|
218
|
+
"name": "icon-sun"
|
|
205
219
|
},
|
|
206
220
|
{
|
|
207
|
-
"name": "icon-moon"
|
|
208
|
-
"description": "The moon SVG icon"
|
|
221
|
+
"name": "icon-moon"
|
|
209
222
|
}
|
|
210
223
|
],
|
|
211
224
|
"openElement": {
|
|
@@ -215,24 +228,32 @@
|
|
|
215
228
|
"hydrate": "load",
|
|
216
229
|
"status": "stable",
|
|
217
230
|
"module": "@openelement/ui/open-theme-toggle",
|
|
218
|
-
"export": "
|
|
231
|
+
"export": "OpenThemeToggleElement",
|
|
232
|
+
"tailwind": {
|
|
233
|
+
"required": true,
|
|
234
|
+
"sources": [
|
|
235
|
+
"./src/theme.css"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"root": "shadow",
|
|
239
|
+
"styles": [
|
|
240
|
+
"./open-theme-toggle.css"
|
|
241
|
+
],
|
|
242
|
+
"ssrHostExport": "OpenThemeToggle__ssrHost"
|
|
219
243
|
}
|
|
220
244
|
},
|
|
221
245
|
{
|
|
222
246
|
"tagName": "open-code-block",
|
|
223
|
-
"className": "
|
|
224
|
-
"superclassName": "OpenElement",
|
|
247
|
+
"className": "OpenCodeBlockElement",
|
|
225
248
|
"description": "Code block with a copy button.",
|
|
226
249
|
"slots": [
|
|
227
250
|
{
|
|
228
|
-
"name": ""
|
|
229
|
-
"description": "Default slot"
|
|
251
|
+
"name": ""
|
|
230
252
|
}
|
|
231
253
|
],
|
|
232
254
|
"cssParts": [
|
|
233
255
|
{
|
|
234
|
-
"name": "copy"
|
|
235
|
-
"description": "The copy button"
|
|
256
|
+
"name": "copy"
|
|
236
257
|
}
|
|
237
258
|
],
|
|
238
259
|
"openElement": {
|
|
@@ -242,25 +263,41 @@
|
|
|
242
263
|
"hydrate": "idle",
|
|
243
264
|
"status": "stable",
|
|
244
265
|
"module": "@openelement/ui/open-code-block",
|
|
245
|
-
"export": "
|
|
266
|
+
"export": "OpenCodeBlockElement",
|
|
267
|
+
"tailwind": {
|
|
268
|
+
"required": true,
|
|
269
|
+
"sources": [
|
|
270
|
+
"./src/theme.css"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
"root": "shadow",
|
|
274
|
+
"styles": [
|
|
275
|
+
"./open-code-block.css"
|
|
276
|
+
],
|
|
277
|
+
"ssrHostExport": "OpenCodeBlock__ssrHost"
|
|
246
278
|
}
|
|
247
279
|
},
|
|
248
280
|
{
|
|
249
281
|
"tagName": "open-dialog",
|
|
250
|
-
"className": "
|
|
251
|
-
"superclassName": "OpenElement",
|
|
282
|
+
"className": "OpenDialogElement",
|
|
252
283
|
"description": "Dialog component using native <dialog> element + popover API.",
|
|
253
284
|
"attributes": [
|
|
254
285
|
{
|
|
255
286
|
"name": "open",
|
|
256
287
|
"type": "boolean",
|
|
257
|
-
"
|
|
258
|
-
"
|
|
288
|
+
"default": "false",
|
|
289
|
+
"reflects": true
|
|
259
290
|
},
|
|
260
291
|
{
|
|
261
292
|
"name": "label",
|
|
262
293
|
"type": "string",
|
|
263
|
-
"
|
|
294
|
+
"default": ""
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "close-label",
|
|
298
|
+
"type": "string",
|
|
299
|
+
"default": "Close",
|
|
300
|
+
"fieldName": "closeLabel"
|
|
264
301
|
}
|
|
265
302
|
],
|
|
266
303
|
"events": [
|
|
@@ -272,38 +309,30 @@
|
|
|
272
309
|
],
|
|
273
310
|
"slots": [
|
|
274
311
|
{
|
|
275
|
-
"name": ""
|
|
276
|
-
"description": "Default slot"
|
|
312
|
+
"name": ""
|
|
277
313
|
},
|
|
278
314
|
{
|
|
279
|
-
"name": "trigger"
|
|
280
|
-
"description": "The 'trigger' slot"
|
|
315
|
+
"name": "trigger"
|
|
281
316
|
},
|
|
282
317
|
{
|
|
283
|
-
"name": "footer"
|
|
284
|
-
"description": "The 'footer' slot"
|
|
318
|
+
"name": "footer"
|
|
285
319
|
}
|
|
286
320
|
],
|
|
287
321
|
"cssParts": [
|
|
288
322
|
{
|
|
289
|
-
"name": "overlay"
|
|
290
|
-
"description": "The dialog backdrop/element"
|
|
323
|
+
"name": "overlay"
|
|
291
324
|
},
|
|
292
325
|
{
|
|
293
|
-
"name": "header"
|
|
294
|
-
"description": "The header bar"
|
|
326
|
+
"name": "header"
|
|
295
327
|
},
|
|
296
328
|
{
|
|
297
|
-
"name": "close"
|
|
298
|
-
"description": "The close button"
|
|
329
|
+
"name": "close"
|
|
299
330
|
},
|
|
300
331
|
{
|
|
301
|
-
"name": "body"
|
|
302
|
-
"description": "The content area (<slot>)"
|
|
332
|
+
"name": "body"
|
|
303
333
|
},
|
|
304
334
|
{
|
|
305
|
-
"name": "footer"
|
|
306
|
-
"description": "The optional footer slot"
|
|
335
|
+
"name": "footer"
|
|
307
336
|
}
|
|
308
337
|
],
|
|
309
338
|
"openElement": {
|
|
@@ -313,32 +342,39 @@
|
|
|
313
342
|
"hydrate": "idle",
|
|
314
343
|
"status": "experimental",
|
|
315
344
|
"module": "@openelement/ui/open-dialog",
|
|
316
|
-
"export": "
|
|
345
|
+
"export": "OpenDialogElement",
|
|
346
|
+
"tailwind": {
|
|
347
|
+
"required": true,
|
|
348
|
+
"sources": [
|
|
349
|
+
"./src/theme.css"
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
"root": "shadow",
|
|
353
|
+
"styles": [
|
|
354
|
+
"./overlay-recipe.css",
|
|
355
|
+
"./open-dialog.css"
|
|
356
|
+
],
|
|
357
|
+
"ssrHostExport": "OpenDialog__ssrHost"
|
|
317
358
|
}
|
|
318
359
|
},
|
|
319
360
|
{
|
|
320
361
|
"tagName": "open-dropdown",
|
|
321
|
-
"className": "
|
|
322
|
-
"superclassName": "OpenElement",
|
|
362
|
+
"className": "OpenDropdownElement",
|
|
323
363
|
"description": "Popover-API dropdown with CSS Anchor Positioning placement.",
|
|
324
364
|
"slots": [
|
|
325
365
|
{
|
|
326
|
-
"name": "
|
|
327
|
-
"description": "Control used to toggle the dropdown"
|
|
366
|
+
"name": ""
|
|
328
367
|
},
|
|
329
368
|
{
|
|
330
|
-
"name": ""
|
|
331
|
-
"description": "Dropdown content"
|
|
369
|
+
"name": "trigger"
|
|
332
370
|
}
|
|
333
371
|
],
|
|
334
372
|
"cssParts": [
|
|
335
373
|
{
|
|
336
|
-
"name": "trigger"
|
|
337
|
-
"description": "Trigger wrapper"
|
|
374
|
+
"name": "trigger"
|
|
338
375
|
},
|
|
339
376
|
{
|
|
340
|
-
"name": "content"
|
|
341
|
-
"description": "Popover content"
|
|
377
|
+
"name": "content"
|
|
342
378
|
}
|
|
343
379
|
],
|
|
344
380
|
"openElement": {
|
|
@@ -348,7 +384,19 @@
|
|
|
348
384
|
"hydrate": "load",
|
|
349
385
|
"status": "experimental",
|
|
350
386
|
"module": "@openelement/ui/open-dropdown",
|
|
351
|
-
"export": "
|
|
387
|
+
"export": "OpenDropdownElement",
|
|
388
|
+
"tailwind": {
|
|
389
|
+
"required": true,
|
|
390
|
+
"sources": [
|
|
391
|
+
"./src/theme.css"
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"root": "shadow",
|
|
395
|
+
"styles": [
|
|
396
|
+
"./overlay-recipe.css",
|
|
397
|
+
"./open-dropdown.css"
|
|
398
|
+
],
|
|
399
|
+
"ssrHostExport": "OpenDropdown__ssrHost"
|
|
352
400
|
}
|
|
353
401
|
}
|
|
354
402
|
]
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { readInstanceState, writeInstanceState } from "./instance-state.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import OpenButton from "./open-button.js";
|
|
3
|
+
import OpenInput from "./open-input.js";
|
|
4
|
+
import OpenCodeBlock from "./open-code-block.js";
|
|
5
|
+
import OpenThemeToggle from "./open-theme-toggle.js";
|
|
6
|
+
import OpenDialog from "./open-dialog.js";
|
|
7
|
+
import OpenDropdown from "./open-dropdown.js";
|
|
8
8
|
import { manifest } from "./manifest.js";
|
|
9
|
-
|
|
10
|
-
export { OpenButton, OpenCodeBlock, OpenDialog, OpenDropdown, OpenInput, OpenThemeToggle, manifest, readInstanceState, registerOpenUi, writeInstanceState };
|
|
9
|
+
export { OpenButton, OpenCodeBlock, OpenDialog, OpenDropdown, OpenInput, OpenThemeToggle, manifest, readInstanceState, writeInstanceState };
|
package/src/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { readInstanceState, writeInstanceState } from "./instance-state.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import OpenButton from "./open-button.js";
|
|
3
|
+
import OpenInput from "./open-input.js";
|
|
4
|
+
import OpenCodeBlock from "./open-code-block.js";
|
|
5
|
+
import OpenThemeToggle from "./open-theme-toggle.js";
|
|
6
|
+
import OpenDialog from "./open-dialog.js";
|
|
7
|
+
import OpenDropdown from "./open-dropdown.js";
|
|
8
8
|
import { manifest } from "./manifest.js";
|
|
9
|
-
|
|
10
|
-
export { OpenButton, OpenCodeBlock, OpenDialog, OpenDropdown, OpenInput, OpenThemeToggle, manifest, readInstanceState, registerOpenUi, writeInstanceState };
|
|
9
|
+
export { OpenButton, OpenCodeBlock, OpenDialog, OpenDropdown, OpenInput, OpenThemeToggle, manifest, readInstanceState, writeInstanceState };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/input-machine.ts
|
|
2
|
+
function innerControl(host) {
|
|
3
|
+
return host.shadowRoot?.querySelector("[part=control]") ?? null;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Project the declared `value` row onto the control's LIVE property, skipping a
|
|
7
|
+
* write the control already satisfies so a user's typing is never clobbered.
|
|
8
|
+
*/
|
|
9
|
+
function syncInputValue(host) {
|
|
10
|
+
const control = innerControl(host);
|
|
11
|
+
if (control === null || control.value === host.value) return;
|
|
12
|
+
control.value = host.value;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Keep the control's `disabled` in step with the author row and the platform's
|
|
16
|
+
* fieldset state (which reaches this leaf only as the shell's
|
|
17
|
+
* `:state(disabled)`).
|
|
18
|
+
*/
|
|
19
|
+
function syncInputDisabled(host) {
|
|
20
|
+
const control = innerControl(host);
|
|
21
|
+
if (control === null) return;
|
|
22
|
+
let fieldsetDisabled = false;
|
|
23
|
+
try {
|
|
24
|
+
fieldsetDisabled = host.matches(":state(disabled)") && !host.disabled;
|
|
25
|
+
} catch {
|
|
26
|
+
fieldsetDisabled = false;
|
|
27
|
+
}
|
|
28
|
+
const next = host.disabled || fieldsetDisabled;
|
|
29
|
+
if (control.disabled === next) return;
|
|
30
|
+
control.disabled = next;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { syncInputDisabled, syncInputValue };
|