@openelement/ui 1.0.0-alpha.15 → 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 +34 -172
- package/README.md +10 -33
- 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 +104 -92
- package/src/index.d.ts +7 -8
- package/src/index.js +7 -8
- package/src/input-machine.js +33 -0
- package/src/open-button.d.ts +34 -393
- package/src/open-button.generated.js +592 -0
- package/src/open-button.js +115 -1065
- package/src/open-code-block.d.ts +15 -177
- package/src/open-code-block.generated.js +293 -0
- package/src/open-code-block.js +112 -249
- package/src/open-dialog.d.ts +22 -263
- package/src/open-dialog.generated.js +501 -0
- package/src/open-dialog.js +137 -667
- package/src/open-dropdown.css +6 -0
- package/src/open-dropdown.d.ts +15 -220
- package/src/open-dropdown.generated.js +211 -0
- package/src/open-dropdown.js +74 -365
- package/src/open-input.css +23 -6
- package/src/open-input.d.ts +35 -440
- package/src/open-input.generated.js +685 -0
- package/src/open-input.js +161 -1748
- package/src/open-theme-toggle.d.ts +19 -192
- package/src/open-theme-toggle.generated.js +564 -0
- package/src/open-theme-toggle.js +209 -531
- package/src/theme-contract.js +40 -0
- 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 branch (no-JS navigation survives SSR), `variant`/`size` pick the styled surface, and the disabled state follows the reflected host attribute.",
|
|
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,62 +75,64 @@
|
|
|
73
75
|
"hydrate": "load",
|
|
74
76
|
"status": "stable",
|
|
75
77
|
"module": "@openelement/ui/open-button",
|
|
76
|
-
"export": "
|
|
78
|
+
"export": "OpenButtonElement",
|
|
77
79
|
"tailwind": {
|
|
78
80
|
"required": true,
|
|
79
81
|
"sources": [
|
|
80
82
|
"./src/theme.css"
|
|
81
83
|
]
|
|
82
|
-
}
|
|
84
|
+
},
|
|
85
|
+
"root": "shadow",
|
|
86
|
+
"styles": [
|
|
87
|
+
"./open-button.css"
|
|
88
|
+
],
|
|
89
|
+
"ssrHostExport": "OpenButton__ssrHost"
|
|
83
90
|
}
|
|
84
91
|
},
|
|
85
92
|
{
|
|
86
93
|
"tagName": "open-input",
|
|
87
|
-
"className": "
|
|
88
|
-
"
|
|
89
|
-
"description": "Form-associated text input with a label, an inline error slot, and native constraint validation (required → valueMissing via setValidity).",
|
|
94
|
+
"className": "OpenInputElement",
|
|
95
|
+
"description": "Form-associated text input with a label, an error slot and native validity.",
|
|
90
96
|
"attributes": [
|
|
91
97
|
{
|
|
92
98
|
"name": "type",
|
|
93
99
|
"type": "string",
|
|
94
|
-
"
|
|
100
|
+
"default": "text"
|
|
95
101
|
},
|
|
96
102
|
{
|
|
97
103
|
"name": "placeholder",
|
|
98
104
|
"type": "string",
|
|
99
|
-
"
|
|
105
|
+
"default": ""
|
|
100
106
|
},
|
|
101
107
|
{
|
|
102
108
|
"name": "label",
|
|
103
109
|
"type": "string",
|
|
104
|
-
"
|
|
110
|
+
"default": ""
|
|
105
111
|
},
|
|
106
112
|
{
|
|
107
113
|
"name": "name",
|
|
108
114
|
"type": "string",
|
|
109
|
-
"
|
|
115
|
+
"default": ""
|
|
110
116
|
},
|
|
111
117
|
{
|
|
112
118
|
"name": "value",
|
|
113
119
|
"type": "string",
|
|
114
|
-
"
|
|
120
|
+
"default": ""
|
|
115
121
|
},
|
|
116
122
|
{
|
|
117
123
|
"name": "disabled",
|
|
118
124
|
"type": "boolean",
|
|
119
|
-
"description": "disabled attribute",
|
|
120
125
|
"default": "false"
|
|
121
126
|
},
|
|
122
127
|
{
|
|
123
128
|
"name": "required",
|
|
124
129
|
"type": "boolean",
|
|
125
|
-
"description": "required attribute",
|
|
126
130
|
"default": "false"
|
|
127
131
|
},
|
|
128
132
|
{
|
|
129
133
|
"name": "error",
|
|
130
134
|
"type": "string",
|
|
131
|
-
"
|
|
135
|
+
"default": ""
|
|
132
136
|
}
|
|
133
137
|
],
|
|
134
138
|
"events": [
|
|
@@ -155,20 +159,16 @@
|
|
|
155
159
|
],
|
|
156
160
|
"cssParts": [
|
|
157
161
|
{
|
|
158
|
-
"name": "wrapper"
|
|
159
|
-
"description": "The outer input-wrapper div"
|
|
162
|
+
"name": "wrapper"
|
|
160
163
|
},
|
|
161
164
|
{
|
|
162
|
-
"name": "label"
|
|
163
|
-
"description": "The label element"
|
|
165
|
+
"name": "label"
|
|
164
166
|
},
|
|
165
167
|
{
|
|
166
|
-
"name": "control"
|
|
167
|
-
"description": "The input element"
|
|
168
|
+
"name": "control"
|
|
168
169
|
},
|
|
169
170
|
{
|
|
170
|
-
"name": "error"
|
|
171
|
-
"description": "The error message small element"
|
|
171
|
+
"name": "error"
|
|
172
172
|
}
|
|
173
173
|
],
|
|
174
174
|
"openElement": {
|
|
@@ -178,25 +178,29 @@
|
|
|
178
178
|
"hydrate": "load",
|
|
179
179
|
"status": "experimental",
|
|
180
180
|
"module": "@openelement/ui/open-input",
|
|
181
|
-
"export": "
|
|
181
|
+
"export": "OpenInputElement",
|
|
182
182
|
"tailwind": {
|
|
183
183
|
"required": true,
|
|
184
184
|
"sources": [
|
|
185
185
|
"./src/theme.css"
|
|
186
186
|
]
|
|
187
|
-
}
|
|
187
|
+
},
|
|
188
|
+
"root": "shadow",
|
|
189
|
+
"styles": [
|
|
190
|
+
"./open-input.css"
|
|
191
|
+
],
|
|
192
|
+
"ssrHostExport": "OpenInput__ssrHost"
|
|
188
193
|
}
|
|
189
194
|
},
|
|
190
195
|
{
|
|
191
196
|
"tagName": "open-theme-toggle",
|
|
192
|
-
"className": "
|
|
193
|
-
"superclassName": "OpenElement",
|
|
197
|
+
"className": "OpenThemeToggleElement",
|
|
194
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.",
|
|
195
199
|
"attributes": [
|
|
196
200
|
{
|
|
197
201
|
"name": "theme",
|
|
198
202
|
"type": "string",
|
|
199
|
-
"
|
|
203
|
+
"default": "dark"
|
|
200
204
|
}
|
|
201
205
|
],
|
|
202
206
|
"events": [
|
|
@@ -208,16 +212,13 @@
|
|
|
208
212
|
],
|
|
209
213
|
"cssParts": [
|
|
210
214
|
{
|
|
211
|
-
"name": "toggle"
|
|
212
|
-
"description": "The button element"
|
|
215
|
+
"name": "toggle"
|
|
213
216
|
},
|
|
214
217
|
{
|
|
215
|
-
"name": "icon-sun"
|
|
216
|
-
"description": "The sun SVG icon"
|
|
218
|
+
"name": "icon-sun"
|
|
217
219
|
},
|
|
218
220
|
{
|
|
219
|
-
"name": "icon-moon"
|
|
220
|
-
"description": "The moon SVG icon"
|
|
221
|
+
"name": "icon-moon"
|
|
221
222
|
}
|
|
222
223
|
],
|
|
223
224
|
"openElement": {
|
|
@@ -227,30 +228,32 @@
|
|
|
227
228
|
"hydrate": "load",
|
|
228
229
|
"status": "stable",
|
|
229
230
|
"module": "@openelement/ui/open-theme-toggle",
|
|
230
|
-
"export": "
|
|
231
|
+
"export": "OpenThemeToggleElement",
|
|
231
232
|
"tailwind": {
|
|
232
233
|
"required": true,
|
|
233
234
|
"sources": [
|
|
234
235
|
"./src/theme.css"
|
|
235
236
|
]
|
|
236
|
-
}
|
|
237
|
+
},
|
|
238
|
+
"root": "shadow",
|
|
239
|
+
"styles": [
|
|
240
|
+
"./open-theme-toggle.css"
|
|
241
|
+
],
|
|
242
|
+
"ssrHostExport": "OpenThemeToggle__ssrHost"
|
|
237
243
|
}
|
|
238
244
|
},
|
|
239
245
|
{
|
|
240
246
|
"tagName": "open-code-block",
|
|
241
|
-
"className": "
|
|
242
|
-
"superclassName": "OpenElement",
|
|
247
|
+
"className": "OpenCodeBlockElement",
|
|
243
248
|
"description": "Code block with a copy button.",
|
|
244
249
|
"slots": [
|
|
245
250
|
{
|
|
246
|
-
"name": ""
|
|
247
|
-
"description": "Default slot"
|
|
251
|
+
"name": ""
|
|
248
252
|
}
|
|
249
253
|
],
|
|
250
254
|
"cssParts": [
|
|
251
255
|
{
|
|
252
|
-
"name": "copy"
|
|
253
|
-
"description": "The copy button"
|
|
256
|
+
"name": "copy"
|
|
254
257
|
}
|
|
255
258
|
],
|
|
256
259
|
"openElement": {
|
|
@@ -260,31 +263,41 @@
|
|
|
260
263
|
"hydrate": "idle",
|
|
261
264
|
"status": "stable",
|
|
262
265
|
"module": "@openelement/ui/open-code-block",
|
|
263
|
-
"export": "
|
|
266
|
+
"export": "OpenCodeBlockElement",
|
|
264
267
|
"tailwind": {
|
|
265
268
|
"required": true,
|
|
266
269
|
"sources": [
|
|
267
270
|
"./src/theme.css"
|
|
268
271
|
]
|
|
269
|
-
}
|
|
272
|
+
},
|
|
273
|
+
"root": "shadow",
|
|
274
|
+
"styles": [
|
|
275
|
+
"./open-code-block.css"
|
|
276
|
+
],
|
|
277
|
+
"ssrHostExport": "OpenCodeBlock__ssrHost"
|
|
270
278
|
}
|
|
271
279
|
},
|
|
272
280
|
{
|
|
273
281
|
"tagName": "open-dialog",
|
|
274
|
-
"className": "
|
|
275
|
-
"superclassName": "OpenElement",
|
|
282
|
+
"className": "OpenDialogElement",
|
|
276
283
|
"description": "Dialog component using native <dialog> element + popover API.",
|
|
277
284
|
"attributes": [
|
|
278
285
|
{
|
|
279
286
|
"name": "open",
|
|
280
287
|
"type": "boolean",
|
|
281
|
-
"
|
|
282
|
-
"
|
|
288
|
+
"default": "false",
|
|
289
|
+
"reflects": true
|
|
283
290
|
},
|
|
284
291
|
{
|
|
285
292
|
"name": "label",
|
|
286
293
|
"type": "string",
|
|
287
|
-
"
|
|
294
|
+
"default": ""
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "close-label",
|
|
298
|
+
"type": "string",
|
|
299
|
+
"default": "Close",
|
|
300
|
+
"fieldName": "closeLabel"
|
|
288
301
|
}
|
|
289
302
|
],
|
|
290
303
|
"events": [
|
|
@@ -296,38 +309,30 @@
|
|
|
296
309
|
],
|
|
297
310
|
"slots": [
|
|
298
311
|
{
|
|
299
|
-
"name": ""
|
|
300
|
-
"description": "Default slot"
|
|
312
|
+
"name": ""
|
|
301
313
|
},
|
|
302
314
|
{
|
|
303
|
-
"name": "trigger"
|
|
304
|
-
"description": "The 'trigger' slot"
|
|
315
|
+
"name": "trigger"
|
|
305
316
|
},
|
|
306
317
|
{
|
|
307
|
-
"name": "footer"
|
|
308
|
-
"description": "The 'footer' slot"
|
|
318
|
+
"name": "footer"
|
|
309
319
|
}
|
|
310
320
|
],
|
|
311
321
|
"cssParts": [
|
|
312
322
|
{
|
|
313
|
-
"name": "overlay"
|
|
314
|
-
"description": "The dialog backdrop/element"
|
|
323
|
+
"name": "overlay"
|
|
315
324
|
},
|
|
316
325
|
{
|
|
317
|
-
"name": "header"
|
|
318
|
-
"description": "The header bar"
|
|
326
|
+
"name": "header"
|
|
319
327
|
},
|
|
320
328
|
{
|
|
321
|
-
"name": "close"
|
|
322
|
-
"description": "The close button"
|
|
329
|
+
"name": "close"
|
|
323
330
|
},
|
|
324
331
|
{
|
|
325
|
-
"name": "body"
|
|
326
|
-
"description": "The content area (<slot>)"
|
|
332
|
+
"name": "body"
|
|
327
333
|
},
|
|
328
334
|
{
|
|
329
|
-
"name": "footer"
|
|
330
|
-
"description": "The optional footer slot"
|
|
335
|
+
"name": "footer"
|
|
331
336
|
}
|
|
332
337
|
],
|
|
333
338
|
"openElement": {
|
|
@@ -337,38 +342,39 @@
|
|
|
337
342
|
"hydrate": "idle",
|
|
338
343
|
"status": "experimental",
|
|
339
344
|
"module": "@openelement/ui/open-dialog",
|
|
340
|
-
"export": "
|
|
345
|
+
"export": "OpenDialogElement",
|
|
341
346
|
"tailwind": {
|
|
342
347
|
"required": true,
|
|
343
348
|
"sources": [
|
|
344
349
|
"./src/theme.css"
|
|
345
350
|
]
|
|
346
|
-
}
|
|
351
|
+
},
|
|
352
|
+
"root": "shadow",
|
|
353
|
+
"styles": [
|
|
354
|
+
"./overlay-recipe.css",
|
|
355
|
+
"./open-dialog.css"
|
|
356
|
+
],
|
|
357
|
+
"ssrHostExport": "OpenDialog__ssrHost"
|
|
347
358
|
}
|
|
348
359
|
},
|
|
349
360
|
{
|
|
350
361
|
"tagName": "open-dropdown",
|
|
351
|
-
"className": "
|
|
352
|
-
"superclassName": "OpenElement",
|
|
362
|
+
"className": "OpenDropdownElement",
|
|
353
363
|
"description": "Popover-API dropdown with CSS Anchor Positioning placement.",
|
|
354
364
|
"slots": [
|
|
355
365
|
{
|
|
356
|
-
"name": "
|
|
357
|
-
"description": "Control used to toggle the dropdown"
|
|
366
|
+
"name": ""
|
|
358
367
|
},
|
|
359
368
|
{
|
|
360
|
-
"name": ""
|
|
361
|
-
"description": "Dropdown content"
|
|
369
|
+
"name": "trigger"
|
|
362
370
|
}
|
|
363
371
|
],
|
|
364
372
|
"cssParts": [
|
|
365
373
|
{
|
|
366
|
-
"name": "trigger"
|
|
367
|
-
"description": "Trigger wrapper"
|
|
374
|
+
"name": "trigger"
|
|
368
375
|
},
|
|
369
376
|
{
|
|
370
|
-
"name": "content"
|
|
371
|
-
"description": "Popover content"
|
|
377
|
+
"name": "content"
|
|
372
378
|
}
|
|
373
379
|
],
|
|
374
380
|
"openElement": {
|
|
@@ -378,13 +384,19 @@
|
|
|
378
384
|
"hydrate": "load",
|
|
379
385
|
"status": "experimental",
|
|
380
386
|
"module": "@openelement/ui/open-dropdown",
|
|
381
|
-
"export": "
|
|
387
|
+
"export": "OpenDropdownElement",
|
|
382
388
|
"tailwind": {
|
|
383
389
|
"required": true,
|
|
384
390
|
"sources": [
|
|
385
391
|
"./src/theme.css"
|
|
386
392
|
]
|
|
387
|
-
}
|
|
393
|
+
},
|
|
394
|
+
"root": "shadow",
|
|
395
|
+
"styles": [
|
|
396
|
+
"./overlay-recipe.css",
|
|
397
|
+
"./open-dropdown.css"
|
|
398
|
+
],
|
|
399
|
+
"ssrHostExport": "OpenDropdown__ssrHost"
|
|
388
400
|
}
|
|
389
401
|
}
|
|
390
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 };
|