@digdir/designsystemet-web 0.0.0-chore-remove-cli-tsx-20260701060359
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/LICENSE +7 -0
- package/README.md +333 -0
- package/dist/cjs/_vendors/@oddbird/popover-polyfill/dist/popover-fn.cjs +64 -0
- package/dist/cjs/_vendors/@oddbird/popover-polyfill/dist/popover-fn.cjs.map +1 -0
- package/dist/cjs/_vendors/invokers-polyfill/invoker.cjs +2 -0
- package/dist/cjs/_vendors/invokers-polyfill/invoker.cjs.map +1 -0
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/breadcrumbs/breadcrumbs.cjs +2 -0
- package/dist/cjs/breadcrumbs/breadcrumbs.cjs.map +1 -0
- package/dist/cjs/clickdelegatefor/clickdelegatefor.cjs +2 -0
- package/dist/cjs/clickdelegatefor/clickdelegatefor.cjs.map +1 -0
- package/dist/cjs/details/details.cjs +1 -0
- package/dist/cjs/dialog/dialog.cjs +2 -0
- package/dist/cjs/dialog/dialog.cjs.map +1 -0
- package/dist/cjs/error-summary/error-summary.cjs +3 -0
- package/dist/cjs/error-summary/error-summary.cjs.map +1 -0
- package/dist/cjs/field/field.cjs +2 -0
- package/dist/cjs/field/field.cjs.map +1 -0
- package/dist/cjs/fieldset/fieldset.cjs +2 -0
- package/dist/cjs/fieldset/fieldset.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/invokers/invokers.cjs +2 -0
- package/dist/cjs/invokers/invokers.cjs.map +1 -0
- package/dist/cjs/pagination/pagination.cjs +2 -0
- package/dist/cjs/pagination/pagination.cjs.map +1 -0
- package/dist/cjs/popover/popover.cjs +2 -0
- package/dist/cjs/popover/popover.cjs.map +1 -0
- package/dist/cjs/readonly/readonly.cjs +2 -0
- package/dist/cjs/readonly/readonly.cjs.map +1 -0
- package/dist/cjs/suggestion/suggestion.cjs +2 -0
- package/dist/cjs/suggestion/suggestion.cjs.map +1 -0
- package/dist/cjs/tabs/tabs.cjs +2 -0
- package/dist/cjs/tabs/tabs.cjs.map +1 -0
- package/dist/cjs/toggle-group/toggle-group.cjs +2 -0
- package/dist/cjs/toggle-group/toggle-group.cjs.map +1 -0
- package/dist/cjs/tooltip/tooltip.cjs +2 -0
- package/dist/cjs/tooltip/tooltip.cjs.map +1 -0
- package/dist/cjs/utils/utils.cjs +2 -0
- package/dist/cjs/utils/utils.cjs.map +1 -0
- package/dist/custom-elements.json +542 -0
- package/dist/esm/_vendors/@oddbird/popover-polyfill/dist/popover-fn.js +64 -0
- package/dist/esm/_vendors/@oddbird/popover-polyfill/dist/popover-fn.js.map +1 -0
- package/dist/esm/_vendors/invokers-polyfill/invoker.js +2 -0
- package/dist/esm/_vendors/invokers-polyfill/invoker.js.map +1 -0
- package/dist/esm/breadcrumbs/breadcrumbs.js +2 -0
- package/dist/esm/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/esm/clickdelegatefor/clickdelegatefor.js +2 -0
- package/dist/esm/clickdelegatefor/clickdelegatefor.js.map +1 -0
- package/dist/esm/details/details.js +1 -0
- package/dist/esm/dialog/dialog.js +2 -0
- package/dist/esm/dialog/dialog.js.map +1 -0
- package/dist/esm/error-summary/error-summary.js +3 -0
- package/dist/esm/error-summary/error-summary.js.map +1 -0
- package/dist/esm/field/field.js +2 -0
- package/dist/esm/field/field.js.map +1 -0
- package/dist/esm/fieldset/fieldset.js +2 -0
- package/dist/esm/fieldset/fieldset.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/invokers/invokers.js +2 -0
- package/dist/esm/invokers/invokers.js.map +1 -0
- package/dist/esm/pagination/pagination.js +2 -0
- package/dist/esm/pagination/pagination.js.map +1 -0
- package/dist/esm/popover/popover.js +2 -0
- package/dist/esm/popover/popover.js.map +1 -0
- package/dist/esm/readonly/readonly.js +2 -0
- package/dist/esm/readonly/readonly.js.map +1 -0
- package/dist/esm/suggestion/suggestion.js +2 -0
- package/dist/esm/suggestion/suggestion.js.map +1 -0
- package/dist/esm/tabs/tabs.js +2 -0
- package/dist/esm/tabs/tabs.js.map +1 -0
- package/dist/esm/toggle-group/toggle-group.js +2 -0
- package/dist/esm/toggle-group/toggle-group.js.map +1 -0
- package/dist/esm/tooltip/tooltip.js +2 -0
- package/dist/esm/tooltip/tooltip.js.map +1 -0
- package/dist/esm/utils/utils.js +2 -0
- package/dist/esm/utils/utils.js.map +1 -0
- package/dist/index.d.ts +351 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1584 -0
- package/dist/index.js.map +1 -0
- package/dist/umd/index.js +83 -0
- package/dist/umd/index.js.map +1 -0
- package/dist/vscode.html-custom-data.json +60 -0
- package/package.json +132 -0
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/index.ts",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "*",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "*",
|
|
15
|
+
"package": "@u-elements/u-datalist"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "js",
|
|
20
|
+
"name": "*",
|
|
21
|
+
"declaration": {
|
|
22
|
+
"name": "*",
|
|
23
|
+
"module": "src/breadcrumbs/breadcrumbs"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "js",
|
|
28
|
+
"name": "*",
|
|
29
|
+
"declaration": {
|
|
30
|
+
"name": "*",
|
|
31
|
+
"module": "src/error-summary/error-summary"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "js",
|
|
36
|
+
"name": "*",
|
|
37
|
+
"declaration": {
|
|
38
|
+
"name": "*",
|
|
39
|
+
"module": "src/field/field"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"kind": "js",
|
|
44
|
+
"name": "*",
|
|
45
|
+
"declaration": {
|
|
46
|
+
"name": "*",
|
|
47
|
+
"module": "src/pagination/pagination"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "js",
|
|
52
|
+
"name": "*",
|
|
53
|
+
"declaration": {
|
|
54
|
+
"name": "*",
|
|
55
|
+
"module": "src/suggestion/suggestion"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"kind": "js",
|
|
60
|
+
"name": "*",
|
|
61
|
+
"declaration": {
|
|
62
|
+
"name": "*",
|
|
63
|
+
"module": "src/tabs/tabs"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "js",
|
|
68
|
+
"name": "*",
|
|
69
|
+
"declaration": {
|
|
70
|
+
"name": "*",
|
|
71
|
+
"module": "src/tooltip/tooltip"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"kind": "javascript-module",
|
|
78
|
+
"path": "src/breadcrumbs/breadcrumbs.ts",
|
|
79
|
+
"declarations": [
|
|
80
|
+
{
|
|
81
|
+
"kind": "class",
|
|
82
|
+
"description": "",
|
|
83
|
+
"name": "DSBreadcrumbsElement",
|
|
84
|
+
"members": [
|
|
85
|
+
{
|
|
86
|
+
"kind": "field",
|
|
87
|
+
"name": "_items",
|
|
88
|
+
"type": {
|
|
89
|
+
"text": "HTMLCollectionOf<HTMLAnchorElement> | undefined"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"kind": "field",
|
|
94
|
+
"name": "_label",
|
|
95
|
+
"type": {
|
|
96
|
+
"text": "string | null"
|
|
97
|
+
},
|
|
98
|
+
"default": "null"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "field",
|
|
102
|
+
"name": "_unresize",
|
|
103
|
+
"type": {
|
|
104
|
+
"text": "() => void | undefined"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"kind": "field",
|
|
109
|
+
"name": "_unmutate",
|
|
110
|
+
"type": {
|
|
111
|
+
"text": "() => void | undefined"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"superclass": {
|
|
116
|
+
"name": "DSElement",
|
|
117
|
+
"module": "/src/utils/utils"
|
|
118
|
+
},
|
|
119
|
+
"tagName": "ds-breadcrumbs",
|
|
120
|
+
"customElement": true
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"exports": [
|
|
124
|
+
{
|
|
125
|
+
"kind": "js",
|
|
126
|
+
"name": "DSBreadcrumbsElement",
|
|
127
|
+
"declaration": {
|
|
128
|
+
"name": "DSBreadcrumbsElement",
|
|
129
|
+
"module": "src/breadcrumbs/breadcrumbs.ts"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"kind": "custom-element-definition",
|
|
134
|
+
"name": "ds-breadcrumbs",
|
|
135
|
+
"declaration": {
|
|
136
|
+
"name": "DSBreadcrumbsElement",
|
|
137
|
+
"module": "src/breadcrumbs/breadcrumbs.ts"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"kind": "javascript-module",
|
|
144
|
+
"path": "src/clickdelegatefor/clickdelegatefor.ts",
|
|
145
|
+
"declarations": [],
|
|
146
|
+
"exports": []
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"kind": "javascript-module",
|
|
150
|
+
"path": "src/details/details.ts",
|
|
151
|
+
"declarations": [],
|
|
152
|
+
"exports": []
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "javascript-module",
|
|
156
|
+
"path": "src/dialog/dialog.ts",
|
|
157
|
+
"declarations": [],
|
|
158
|
+
"exports": []
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"kind": "javascript-module",
|
|
162
|
+
"path": "src/error-summary/error-summary.ts",
|
|
163
|
+
"declarations": [
|
|
164
|
+
{
|
|
165
|
+
"kind": "class",
|
|
166
|
+
"description": "",
|
|
167
|
+
"name": "DSErrorSummaryElement",
|
|
168
|
+
"members": [
|
|
169
|
+
{
|
|
170
|
+
"kind": "field",
|
|
171
|
+
"name": "_unmutate",
|
|
172
|
+
"type": {
|
|
173
|
+
"text": "() => void | undefined"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"kind": "method",
|
|
178
|
+
"name": "handleEvent",
|
|
179
|
+
"parameters": [
|
|
180
|
+
{
|
|
181
|
+
"name": "{ target }",
|
|
182
|
+
"type": {
|
|
183
|
+
"text": "Event"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"superclass": {
|
|
190
|
+
"name": "DSElement",
|
|
191
|
+
"module": "/src/utils/utils"
|
|
192
|
+
},
|
|
193
|
+
"tagName": "ds-error-summary",
|
|
194
|
+
"customElement": true
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"exports": [
|
|
198
|
+
{
|
|
199
|
+
"kind": "js",
|
|
200
|
+
"name": "DSErrorSummaryElement",
|
|
201
|
+
"declaration": {
|
|
202
|
+
"name": "DSErrorSummaryElement",
|
|
203
|
+
"module": "src/error-summary/error-summary.ts"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"kind": "custom-element-definition",
|
|
208
|
+
"name": "ds-error-summary",
|
|
209
|
+
"declaration": {
|
|
210
|
+
"name": "DSErrorSummaryElement",
|
|
211
|
+
"module": "src/error-summary/error-summary.ts"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "javascript-module",
|
|
218
|
+
"path": "src/field/field.ts",
|
|
219
|
+
"declarations": [
|
|
220
|
+
{
|
|
221
|
+
"kind": "class",
|
|
222
|
+
"description": "",
|
|
223
|
+
"name": "DSFieldElement",
|
|
224
|
+
"superclass": {
|
|
225
|
+
"name": "DSElement",
|
|
226
|
+
"module": "/src/utils/utils"
|
|
227
|
+
},
|
|
228
|
+
"tagName": "ds-field",
|
|
229
|
+
"customElement": true
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"exports": [
|
|
233
|
+
{
|
|
234
|
+
"kind": "js",
|
|
235
|
+
"name": "DSFieldElement",
|
|
236
|
+
"declaration": {
|
|
237
|
+
"name": "DSFieldElement",
|
|
238
|
+
"module": "src/field/field.ts"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"kind": "custom-element-definition",
|
|
243
|
+
"name": "ds-field",
|
|
244
|
+
"declaration": {
|
|
245
|
+
"name": "DSFieldElement",
|
|
246
|
+
"module": "src/field/field.ts"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"kind": "javascript-module",
|
|
253
|
+
"path": "src/fieldset/fieldset.ts",
|
|
254
|
+
"declarations": [],
|
|
255
|
+
"exports": []
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"kind": "javascript-module",
|
|
259
|
+
"path": "src/invokers/invokers.ts",
|
|
260
|
+
"declarations": [],
|
|
261
|
+
"exports": []
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "javascript-module",
|
|
265
|
+
"path": "src/pagination/pagination.ts",
|
|
266
|
+
"declarations": [
|
|
267
|
+
{
|
|
268
|
+
"kind": "function",
|
|
269
|
+
"name": "pagination",
|
|
270
|
+
"parameters": [
|
|
271
|
+
{
|
|
272
|
+
"name": "{ current = 1, total = 10, show = 7 }"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "class",
|
|
278
|
+
"description": "",
|
|
279
|
+
"name": "DSPaginationElement",
|
|
280
|
+
"members": [
|
|
281
|
+
{
|
|
282
|
+
"kind": "field",
|
|
283
|
+
"name": "_unmutate",
|
|
284
|
+
"type": {
|
|
285
|
+
"text": "() => void | undefined"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"kind": "field",
|
|
290
|
+
"name": "_render",
|
|
291
|
+
"type": {
|
|
292
|
+
"text": "() => void | undefined"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"superclass": {
|
|
297
|
+
"name": "DSElement",
|
|
298
|
+
"module": "/src/utils/utils"
|
|
299
|
+
},
|
|
300
|
+
"tagName": "ds-pagination",
|
|
301
|
+
"customElement": true
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"exports": [
|
|
305
|
+
{
|
|
306
|
+
"kind": "js",
|
|
307
|
+
"name": "pagination",
|
|
308
|
+
"declaration": {
|
|
309
|
+
"name": "pagination",
|
|
310
|
+
"module": "src/pagination/pagination.ts"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"kind": "js",
|
|
315
|
+
"name": "DSPaginationElement",
|
|
316
|
+
"declaration": {
|
|
317
|
+
"name": "DSPaginationElement",
|
|
318
|
+
"module": "src/pagination/pagination.ts"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"kind": "custom-element-definition",
|
|
323
|
+
"name": "ds-pagination",
|
|
324
|
+
"declaration": {
|
|
325
|
+
"name": "DSPaginationElement",
|
|
326
|
+
"module": "src/pagination/pagination.ts"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"kind": "javascript-module",
|
|
333
|
+
"path": "src/popover/popover.ts",
|
|
334
|
+
"declarations": [
|
|
335
|
+
{
|
|
336
|
+
"kind": "variable",
|
|
337
|
+
"name": "placement"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"exports": []
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"kind": "javascript-module",
|
|
344
|
+
"path": "src/readonly/readonly.ts",
|
|
345
|
+
"declarations": [],
|
|
346
|
+
"exports": []
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"kind": "javascript-module",
|
|
350
|
+
"path": "src/suggestion/suggestion.ts",
|
|
351
|
+
"declarations": [
|
|
352
|
+
{
|
|
353
|
+
"kind": "class",
|
|
354
|
+
"description": "",
|
|
355
|
+
"name": "DSSuggestionElement",
|
|
356
|
+
"members": [
|
|
357
|
+
{
|
|
358
|
+
"kind": "field",
|
|
359
|
+
"name": "_unmutate",
|
|
360
|
+
"type": {
|
|
361
|
+
"text": "ReturnType<typeof onMutation> | undefined"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"superclass": {
|
|
366
|
+
"name": "UHTMLComboboxElement",
|
|
367
|
+
"package": "@u-elements/u-combobox"
|
|
368
|
+
},
|
|
369
|
+
"tagName": "ds-suggestion",
|
|
370
|
+
"customElement": true
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"exports": [
|
|
374
|
+
{
|
|
375
|
+
"kind": "js",
|
|
376
|
+
"name": "DSSuggestionElement",
|
|
377
|
+
"declaration": {
|
|
378
|
+
"name": "DSSuggestionElement",
|
|
379
|
+
"module": "src/suggestion/suggestion.ts"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"kind": "custom-element-definition",
|
|
384
|
+
"name": "ds-suggestion",
|
|
385
|
+
"declaration": {
|
|
386
|
+
"name": "DSSuggestionElement",
|
|
387
|
+
"module": "src/suggestion/suggestion.ts"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"kind": "javascript-module",
|
|
394
|
+
"path": "src/tabs/tabs.ts",
|
|
395
|
+
"declarations": [
|
|
396
|
+
{
|
|
397
|
+
"kind": "class",
|
|
398
|
+
"description": "",
|
|
399
|
+
"name": "DSTabsElement",
|
|
400
|
+
"superclass": {
|
|
401
|
+
"module": "src/tabs/tabs.ts"
|
|
402
|
+
},
|
|
403
|
+
"tagName": "ds-tabs",
|
|
404
|
+
"customElement": true
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"kind": "class",
|
|
408
|
+
"description": "",
|
|
409
|
+
"name": "DSTabListElement",
|
|
410
|
+
"superclass": {
|
|
411
|
+
"module": "src/tabs/tabs.ts"
|
|
412
|
+
},
|
|
413
|
+
"tagName": "ds-tablist",
|
|
414
|
+
"customElement": true
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"kind": "class",
|
|
418
|
+
"description": "",
|
|
419
|
+
"name": "DSTabElement",
|
|
420
|
+
"superclass": {
|
|
421
|
+
"module": "src/tabs/tabs.ts"
|
|
422
|
+
},
|
|
423
|
+
"tagName": "ds-tab",
|
|
424
|
+
"customElement": true
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"kind": "class",
|
|
428
|
+
"description": "",
|
|
429
|
+
"name": "DSTabPanelElement",
|
|
430
|
+
"superclass": {
|
|
431
|
+
"module": "src/tabs/tabs.ts"
|
|
432
|
+
},
|
|
433
|
+
"tagName": "ds-tabpanel",
|
|
434
|
+
"customElement": true
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"exports": [
|
|
438
|
+
{
|
|
439
|
+
"kind": "js",
|
|
440
|
+
"name": "DSTabsElement",
|
|
441
|
+
"declaration": {
|
|
442
|
+
"name": "DSTabsElement",
|
|
443
|
+
"module": "src/tabs/tabs.ts"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"kind": "js",
|
|
448
|
+
"name": "DSTabListElement",
|
|
449
|
+
"declaration": {
|
|
450
|
+
"name": "DSTabListElement",
|
|
451
|
+
"module": "src/tabs/tabs.ts"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"kind": "js",
|
|
456
|
+
"name": "DSTabElement",
|
|
457
|
+
"declaration": {
|
|
458
|
+
"name": "DSTabElement",
|
|
459
|
+
"module": "src/tabs/tabs.ts"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"kind": "js",
|
|
464
|
+
"name": "DSTabPanelElement",
|
|
465
|
+
"declaration": {
|
|
466
|
+
"name": "DSTabPanelElement",
|
|
467
|
+
"module": "src/tabs/tabs.ts"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"kind": "custom-element-definition",
|
|
472
|
+
"name": "ds-tabs",
|
|
473
|
+
"declaration": {
|
|
474
|
+
"name": "DSTabsElement",
|
|
475
|
+
"module": "src/tabs/tabs.ts"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"kind": "custom-element-definition",
|
|
480
|
+
"name": "ds-tablist",
|
|
481
|
+
"declaration": {
|
|
482
|
+
"name": "DSTabListElement",
|
|
483
|
+
"module": "src/tabs/tabs.ts"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"kind": "custom-element-definition",
|
|
488
|
+
"name": "ds-tab",
|
|
489
|
+
"declaration": {
|
|
490
|
+
"name": "DSTabElement",
|
|
491
|
+
"module": "src/tabs/tabs.ts"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"kind": "custom-element-definition",
|
|
496
|
+
"name": "ds-tabpanel",
|
|
497
|
+
"declaration": {
|
|
498
|
+
"name": "DSTabPanelElement",
|
|
499
|
+
"module": "src/tabs/tabs.ts"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"kind": "javascript-module",
|
|
506
|
+
"path": "src/toggle-group/toggle-group.ts",
|
|
507
|
+
"declarations": [],
|
|
508
|
+
"exports": []
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"kind": "javascript-module",
|
|
512
|
+
"path": "src/tooltip/tooltip.ts",
|
|
513
|
+
"declarations": [
|
|
514
|
+
{
|
|
515
|
+
"kind": "function",
|
|
516
|
+
"name": "setTooltipElement",
|
|
517
|
+
"parameters": [
|
|
518
|
+
{
|
|
519
|
+
"name": "el",
|
|
520
|
+
"optional": true,
|
|
521
|
+
"type": {
|
|
522
|
+
"text": "HTMLElement | null"
|
|
523
|
+
},
|
|
524
|
+
"description": "The HTMLElement to use as tooltip"
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"description": "setTooltipElement"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"exports": [
|
|
531
|
+
{
|
|
532
|
+
"kind": "js",
|
|
533
|
+
"name": "setTooltipElement",
|
|
534
|
+
"declaration": {
|
|
535
|
+
"name": "setTooltipElement",
|
|
536
|
+
"module": "src/tooltip/tooltip.ts"
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
]
|
|
542
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var e=class extends Event{oldState;newState;constructor(e,{oldState:t=``,newState:n=``,...r}={}){super(e,r),this.oldState=String(t||``),this.newState=String(n||``)}},t=new WeakMap;function n(n,r,i){t.set(n,setTimeout(()=>{t.has(n)&&n.dispatchEvent(new e(`toggle`,{cancelable:!1,oldState:r,newState:i}))},0))}var r=globalThis.ShadowRoot||function(){},i=globalThis.HTMLDialogElement||function(){},a=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap;function l(e){return c.get(e)||`hidden`}var u=new WeakMap;function d(e){return[...e].pop()}function f(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let n=l(t);e.popoverTargetAction===`show`&&n===`showing`||e.popoverTargetAction===`hide`&&n===`hidden`||(n===`showing`?D(t,!0,!0):p(t,!1)&&(u.set(t,e),E(t)))}function p(e,t){return!(e.popover!==`auto`&&e.popover!==`manual`&&e.popover!==`hint`||!e.isConnected||t&&l(e)!==`showing`||!t&&l(e)!==`hidden`||e instanceof i&&e.hasAttribute(`open`)||document.fullscreenElement===e)}function m(e){if(!e)return 0;let t=o.get(document)||new Set,n=s.get(document)||new Set;return n.has(e)?[...n].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function h(e){let t=y(e),n=b(e);return m(t)>m(n)?t:n}function g(e){let t,n=s.get(e)||new Set,r=o.get(e)||new Set,i=n.size>0?n:r.size>0?r:null;return i?(t=d(i),t.isConnected?t:(i.delete(t),g(e))):null}function _(e){for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function v(e){return typeof e.getRootNode==`function`?e.getRootNode():e.parentNode?v(e.parentNode):e}function y(e){for(;e;){if(e instanceof HTMLElement&&e.popover===`auto`&&c.get(e)===`showing`)return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||v(e),e instanceof r&&(e=e.host),e instanceof Document)return}}function b(e){for(;e;){let t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||v(e),e instanceof r&&(e=e.host),e instanceof Document)return}}function x(e,t){let n=new Map,r=0;for(let e of t||[])n.set(e,r),r+=1;n.set(e,r),r+=1;let i=null;function a(t){if(!t)return;let r=!1,a=null,o=null;for(;!r;){if(a=y(t)||null,a===null||!n.has(a))return;(e.popover===`hint`||a.popover===`auto`)&&(r=!0),r||(t=a.parentElement)}o=n.get(a),(i===null||n.get(i)<o)&&(i=a)}return a(e.parentElement||v(e)),i}function S(e){return e.hidden||e instanceof r||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type===`hidden`||e instanceof HTMLAnchorElement&&e.href===``?!1:typeof e.tabIndex==`number`&&e.tabIndex!==-1}function C(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let n=t.querySelector(`[autofocus]`);if(n)return n;{let e=t.querySelectorAll(`slot`);for(let t of e){let e=t.assignedElements({flatten:!0});for(let t of e)if(t.hasAttribute(`autofocus`))return t;else if(n=t.querySelector(`[autofocus]`),n)return n}}let r=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){if(S(i))return i;i=r.nextNode()}}function w(e){var t;(t=C(e))==null||t.focus()}var T=new WeakMap;function E(t){if(!p(t,!1))return;let r=t.ownerDocument;if(!t.dispatchEvent(new e(`beforetoggle`,{cancelable:!0,oldState:`closed`,newState:`open`}))||!p(t,!1))return;let i=!1,l=t.popover,d=null,f=x(t,o.get(r)||new Set),m=x(t,s.get(r)||new Set);if(l===`auto`&&(k(s.get(r)||new Set,i,!0),j(f||r,i,!0),d=`auto`),l===`hint`&&(m?(j(m,i,!0),d=`hint`):(k(s.get(r)||new Set,i,!0),f?(j(f,i,!0),d=`auto`):d=`hint`)),l===`auto`||l===`hint`){if(l!==t.popover||!p(t,!1))return;g(r)||(i=!0),d===`auto`?(o.has(r)||o.set(r,new Set),o.get(r).add(t)):d===`hint`&&(s.has(r)||s.set(r,new Set),s.get(r).add(t))}T.delete(t);let h=r.activeElement;t.classList.add(`:popover-open`),c.set(t,`showing`),a.has(r)||a.set(r,new Set),a.get(r).add(t),F(u.get(t),!0),w(t),i&&h&&t.popover===`auto`&&T.set(t,h),n(t,`closed`,`open`)}function D(t,r=!1,i=!1){var l,f;if(!p(t,!0))return;let m=t.ownerDocument;if([`auto`,`hint`].includes(t.popover)&&(j(t,r,i),!p(t,!0)))return;let h=o.get(m)||new Set,g=h.has(t)&&d(h)===t;if(F(u.get(t),!1),u.delete(t),i&&(t.dispatchEvent(new e(`beforetoggle`,{oldState:`open`,newState:`closed`})),g&&d(h)!==t&&j(t,r,i),!p(t,!0)))return;(l=a.get(m))==null||l.delete(t),h.delete(t),(f=s.get(m))==null||f.delete(t),t.classList.remove(`:popover-open`),c.set(t,`hidden`),i&&n(t,`open`,`closed`);let _=T.get(t);_&&(T.delete(t),r&&_.focus())}function O(e,t=!1,n=!1){let r=g(e);for(;r;)D(r,t,n),r=g(e)}function k(e,t=!1,n=!1){let r=_(e);for(;r;)D(r,t,n),r=_(e)}function A(e,t,n,r){let i=!1,a=!1;for(;i||!a;){a=!0;let o=null,s=!1;for(let n of t)if(n===e)s=!0;else if(s){o=n;break}if(!o)return;for(;l(o)===`showing`&&t.size;)D(d(t),n,r);t.has(e)&&d(t)!==e&&(i=!0),i&&(r=!1)}}function j(e,t,n){let r=e.ownerDocument||e;if(e instanceof Document)return O(r,t,n);if(s.get(r)?.has(e)){A(e,s.get(r),t,n);return}k(s.get(r)||new Set,t,n),o.get(r)?.has(e)&&A(e,o.get(r),t,n)}var M=new WeakMap;function N(e){if(!e.isTrusted)return;let t=e.composedPath()[0];if(!t)return;let n=t.ownerDocument;if(!g(n))return;let r=h(t);if(r&&e.type===`pointerdown`)M.set(n,r);else if(e.type===`pointerup`){let e=M.get(n)===r;M.delete(n),e&&j(r||n,!1,!0)}}var P=new WeakMap;function F(e,t=!1){if(!e)return;P.has(e)||P.set(e,e.getAttribute(`aria-expanded`));let n=e.popoverTargetElement;if(n instanceof HTMLElement&&n.popover===`auto`)e.setAttribute(`aria-expanded`,String(t));else{let t=P.get(e);t?e.setAttribute(`aria-expanded`,t):e.removeAttribute(`aria-expanded`)}}var I=globalThis.ShadowRoot||function(){};function L(){return typeof HTMLElement<`u`&&typeof HTMLElement.prototype==`object`&&`popover`in HTMLElement.prototype}function R(e,t,n){let r=e[t];Object.defineProperty(e,t,{value(e){return r.call(this,n(e))}})}var z=/(^|[^\\]):popover-open\b/g;function B(){return typeof globalThis.CSSLayerBlockRule==`function`}function V(){let e=B();return`
|
|
2
|
+
${e?`@layer popover-polyfill {`:``}
|
|
3
|
+
:where([popover]) {
|
|
4
|
+
position: fixed;
|
|
5
|
+
z-index: 2147483647;
|
|
6
|
+
inset: 0;
|
|
7
|
+
padding: 0.25em;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
height: fit-content;
|
|
10
|
+
border-width: initial;
|
|
11
|
+
border-color: initial;
|
|
12
|
+
border-image: initial;
|
|
13
|
+
border-style: solid;
|
|
14
|
+
background-color: canvas;
|
|
15
|
+
color: canvastext;
|
|
16
|
+
overflow: auto;
|
|
17
|
+
margin: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([popover]:not(.\\:popover-open)) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where(dialog[popover].\\:popover-open) {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(dialog[popover][open]) {
|
|
29
|
+
display: revert;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where([anchor].\\:popover-open) {
|
|
33
|
+
inset: auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where([anchor]:popover-open) {
|
|
37
|
+
inset: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@supports not (background-color: canvas) {
|
|
41
|
+
:where([popover]) {
|
|
42
|
+
background-color: white;
|
|
43
|
+
color: black;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@supports (width: -moz-fit-content) {
|
|
48
|
+
:where([popover]) {
|
|
49
|
+
width: -moz-fit-content;
|
|
50
|
+
height: -moz-fit-content;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@supports not (inset: 0) {
|
|
55
|
+
:where([popover]) {
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
${e?`}`:``}
|
|
63
|
+
`}var H=null;function U(e){let t=V();if(H===null)try{H=new CSSStyleSheet,H.replaceSync(t)}catch{H=!1}if(H===!1){let n=document.createElement(`style`);n.textContent=t,e instanceof Document?e.head.prepend(n):e.prepend(n)}else e.adoptedStyleSheets=[H,...e.adoptedStyleSheets]}function W(){if(typeof window>`u`)return;window.ToggleEvent=window.ToggleEvent||e;function t(e){return e?.includes(`:popover-open`)&&(e=e.replace(z,`$1.\\:popover-open`)),e}R(Document.prototype,`querySelector`,t),R(Document.prototype,`querySelectorAll`,t),R(Element.prototype,`querySelector`,t),R(Element.prototype,`querySelectorAll`,t),R(Element.prototype,`matches`,t),R(Element.prototype,`closest`,t),R(DocumentFragment.prototype,`querySelectorAll`,t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute(`popover`))return null;let e=(this.getAttribute(`popover`)||``).toLowerCase();return e===``||e==`auto`?`auto`:e==`hint`?`hint`:`manual`},set(e){e===null?this.removeAttribute(`popover`):this.setAttribute(`popover`,e)}},showPopover:{enumerable:!0,configurable:!0,value(e={}){E(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){D(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e={}){return typeof e==`boolean`&&(e={force:e}),c.get(this)===`showing`&&e.force===void 0||e.force===!1?D(this,!0,!0):(e.force===void 0||e.force===!0)&&E(this),c.get(this)===`showing`}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){let t=n.call(this,e);return U(t),t}}});let r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let e=r.call(this);return e.shadowRoot&&U(e.shadowRoot),e}}});let i=new WeakMap;function a(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(e===null)this.removeAttribute(`popovertarget`),i.delete(this);else if(e instanceof Element)this.setAttribute(`popovertarget`,``),i.set(this,e);else throw TypeError(`popoverTargetElement must be an element or null`)},get(){if(this.localName!==`button`&&this.localName!==`input`||this.localName===`input`&&this.type!==`reset`&&this.type!==`image`&&this.type!==`button`||this.disabled||this.form&&this.type===`submit`)return null;let e=i.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return i.delete(this),null;let t=v(this),n=this.getAttribute(`popovertarget`);return(t instanceof Document||t instanceof I)&&n&&t.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let e=(this.getAttribute(`popovertargetaction`)||``).toLowerCase();return e===`show`||e===`hide`?e:`toggle`},set(e){this.setAttribute(`popovertargetaction`,e)}}})}a(HTMLButtonElement),a(HTMLInputElement);let o=e=>{if(e.defaultPrevented)return;let t=e.composedPath(),n=t[0];if(!(n instanceof Element)||n?.shadowRoot)return;let r=v(n);if(!(r instanceof I||r instanceof Document))return;let i=t.find(e=>e.matches?.call(e,`[popovertargetaction],[popovertarget]`));if(i){f(i),e.preventDefault();return}},s=e=>{let t=e.key,n=e.target;!e.defaultPrevented&&n&&(t===`Escape`||t===`Esc`)&&j(n.ownerDocument,!0,!0)};(e=>{e.addEventListener(`click`,o),e.addEventListener(`keydown`,s),e.addEventListener(`pointerdown`,N),e.addEventListener(`pointerup`,N)})(document),U(document)}export{W as apply,U as injectStyles,L as isSupported};
|
|
64
|
+
//# sourceMappingURL=popover-fn.js.map
|