use-wc 1.0.0-pre.30 → 1.0.0-pre.32
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 +59 -59
- package/dist/use-wc.d.mts +23 -23
- package/dist/use-wc.mjs +90 -90
- package/package.json +3 -3
- package/vscode.html-custom-data.json +9 -9
package/custom-elements.json
CHANGED
|
@@ -403,12 +403,12 @@
|
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
"kind": "javascript-module",
|
|
406
|
-
"path": "src/elements/use-date/use-date.ts",
|
|
406
|
+
"path": "src/elements/use-date-input/use-date-input.ts",
|
|
407
407
|
"declarations": [
|
|
408
408
|
{
|
|
409
409
|
"kind": "class",
|
|
410
410
|
"description": "Displays a date picker using segmented inputs for year, month, and day.\n\nUses browser locale for formatting and ARIA labels.",
|
|
411
|
-
"name": "
|
|
411
|
+
"name": "UseDateInput",
|
|
412
412
|
"members": [
|
|
413
413
|
{
|
|
414
414
|
"kind": "field",
|
|
@@ -510,25 +510,25 @@
|
|
|
510
510
|
"name": "LitElement",
|
|
511
511
|
"package": "lit"
|
|
512
512
|
},
|
|
513
|
-
"tagName": "use-date",
|
|
513
|
+
"tagName": "use-date-input",
|
|
514
514
|
"customElement": true
|
|
515
515
|
}
|
|
516
516
|
],
|
|
517
517
|
"exports": [
|
|
518
518
|
{
|
|
519
519
|
"kind": "js",
|
|
520
|
-
"name": "
|
|
520
|
+
"name": "UseDateInput",
|
|
521
521
|
"declaration": {
|
|
522
|
-
"name": "
|
|
523
|
-
"module": "src/elements/use-date/use-date.ts"
|
|
522
|
+
"name": "UseDateInput",
|
|
523
|
+
"module": "src/elements/use-date-input/use-date-input.ts"
|
|
524
524
|
}
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
527
|
"kind": "custom-element-definition",
|
|
528
|
-
"name": "use-date",
|
|
528
|
+
"name": "use-date-input",
|
|
529
529
|
"declaration": {
|
|
530
|
-
"name": "
|
|
531
|
-
"module": "src/elements/use-date/use-date.ts"
|
|
530
|
+
"name": "UseDateInput",
|
|
531
|
+
"module": "src/elements/use-date-input/use-date-input.ts"
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
]
|
|
@@ -1258,25 +1258,25 @@
|
|
|
1258
1258
|
},
|
|
1259
1259
|
{
|
|
1260
1260
|
"kind": "javascript-module",
|
|
1261
|
-
"path": "src/elements/use-datetime/use-datetime.ts",
|
|
1261
|
+
"path": "src/elements/use-datetime-input/use-datetime-input.ts",
|
|
1262
1262
|
"declarations": [
|
|
1263
1263
|
{
|
|
1264
1264
|
"kind": "class",
|
|
1265
1265
|
"description": "Displays a date and time picker by combining `use-date` and `use-time`.\n\nThe value format is ISO 8601-like: `YYYY-MM-DDTHH:MM:SS.mmm`.",
|
|
1266
|
-
"name": "
|
|
1266
|
+
"name": "UseDatetimeInput",
|
|
1267
1267
|
"members": [
|
|
1268
1268
|
{
|
|
1269
1269
|
"kind": "field",
|
|
1270
1270
|
"name": "dateElement",
|
|
1271
1271
|
"type": {
|
|
1272
|
-
"text": "
|
|
1272
|
+
"text": "UseDateInput"
|
|
1273
1273
|
}
|
|
1274
1274
|
},
|
|
1275
1275
|
{
|
|
1276
1276
|
"kind": "field",
|
|
1277
1277
|
"name": "timeElement",
|
|
1278
1278
|
"type": {
|
|
1279
|
-
"text": "
|
|
1279
|
+
"text": "UseTimeInput"
|
|
1280
1280
|
}
|
|
1281
1281
|
},
|
|
1282
1282
|
{
|
|
@@ -1454,25 +1454,25 @@
|
|
|
1454
1454
|
"name": "LitElement",
|
|
1455
1455
|
"package": "lit"
|
|
1456
1456
|
},
|
|
1457
|
-
"tagName": "use-datetime",
|
|
1457
|
+
"tagName": "use-datetime-input",
|
|
1458
1458
|
"customElement": true
|
|
1459
1459
|
}
|
|
1460
1460
|
],
|
|
1461
1461
|
"exports": [
|
|
1462
1462
|
{
|
|
1463
1463
|
"kind": "js",
|
|
1464
|
-
"name": "
|
|
1464
|
+
"name": "UseDatetimeInput",
|
|
1465
1465
|
"declaration": {
|
|
1466
|
-
"name": "
|
|
1467
|
-
"module": "src/elements/use-datetime/use-datetime.ts"
|
|
1466
|
+
"name": "UseDatetimeInput",
|
|
1467
|
+
"module": "src/elements/use-datetime-input/use-datetime-input.ts"
|
|
1468
1468
|
}
|
|
1469
1469
|
},
|
|
1470
1470
|
{
|
|
1471
1471
|
"kind": "custom-element-definition",
|
|
1472
|
-
"name": "use-datetime",
|
|
1472
|
+
"name": "use-datetime-input",
|
|
1473
1473
|
"declaration": {
|
|
1474
|
-
"name": "
|
|
1475
|
-
"module": "src/elements/use-datetime/use-datetime.ts"
|
|
1474
|
+
"name": "UseDatetimeInput",
|
|
1475
|
+
"module": "src/elements/use-datetime-input/use-datetime-input.ts"
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
1478
|
]
|
|
@@ -1568,12 +1568,12 @@
|
|
|
1568
1568
|
},
|
|
1569
1569
|
{
|
|
1570
1570
|
"kind": "javascript-module",
|
|
1571
|
-
"path": "src/elements/use-duration/use-duration.ts",
|
|
1571
|
+
"path": "src/elements/use-duration-input/use-duration-input.ts",
|
|
1572
1572
|
"declarations": [
|
|
1573
1573
|
{
|
|
1574
1574
|
"kind": "class",
|
|
1575
1575
|
"description": "Displays the parts of an ISO 8601 duration string using [`Intl.DurationFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat).\n\nUses the [`duration-fns`](https://www.npmjs.com/package/duration-fns) library for parsing ISO 8601 values.\n\n<baseline-status featureId=\"intl-duration-format\"></baseline-status>",
|
|
1576
|
-
"name": "
|
|
1576
|
+
"name": "UseDurationInput",
|
|
1577
1577
|
"members": [
|
|
1578
1578
|
{
|
|
1579
1579
|
"kind": "field",
|
|
@@ -1863,25 +1863,25 @@
|
|
|
1863
1863
|
"name": "LitElement",
|
|
1864
1864
|
"package": "lit"
|
|
1865
1865
|
},
|
|
1866
|
-
"tagName": "use-duration",
|
|
1866
|
+
"tagName": "use-duration-input",
|
|
1867
1867
|
"customElement": true
|
|
1868
1868
|
}
|
|
1869
1869
|
],
|
|
1870
1870
|
"exports": [
|
|
1871
1871
|
{
|
|
1872
1872
|
"kind": "js",
|
|
1873
|
-
"name": "
|
|
1873
|
+
"name": "UseDurationInput",
|
|
1874
1874
|
"declaration": {
|
|
1875
|
-
"name": "
|
|
1876
|
-
"module": "src/elements/use-duration/use-duration.ts"
|
|
1875
|
+
"name": "UseDurationInput",
|
|
1876
|
+
"module": "src/elements/use-duration-input/use-duration-input.ts"
|
|
1877
1877
|
}
|
|
1878
1878
|
},
|
|
1879
1879
|
{
|
|
1880
1880
|
"kind": "custom-element-definition",
|
|
1881
|
-
"name": "use-duration",
|
|
1881
|
+
"name": "use-duration-input",
|
|
1882
1882
|
"declaration": {
|
|
1883
|
-
"name": "
|
|
1884
|
-
"module": "src/elements/use-duration/use-duration.ts"
|
|
1883
|
+
"name": "UseDurationInput",
|
|
1884
|
+
"module": "src/elements/use-duration-input/use-duration-input.ts"
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
1887
|
]
|
|
@@ -2450,12 +2450,12 @@
|
|
|
2450
2450
|
},
|
|
2451
2451
|
{
|
|
2452
2452
|
"kind": "javascript-module",
|
|
2453
|
-
"path": "src/elements/use-listbox/use-listbox.ts",
|
|
2453
|
+
"path": "src/elements/use-listbox-input/use-listbox-input.ts",
|
|
2454
2454
|
"declarations": [
|
|
2455
2455
|
{
|
|
2456
2456
|
"kind": "class",
|
|
2457
2457
|
"description": "",
|
|
2458
|
-
"name": "
|
|
2458
|
+
"name": "UseListboxInput",
|
|
2459
2459
|
"slots": [
|
|
2460
2460
|
{
|
|
2461
2461
|
"description": "NodeList of `use-option` elements",
|
|
@@ -2581,25 +2581,25 @@
|
|
|
2581
2581
|
"name": "LitElement",
|
|
2582
2582
|
"package": "lit"
|
|
2583
2583
|
},
|
|
2584
|
-
"tagName": "use-listbox",
|
|
2584
|
+
"tagName": "use-listbox-input",
|
|
2585
2585
|
"customElement": true
|
|
2586
2586
|
}
|
|
2587
2587
|
],
|
|
2588
2588
|
"exports": [
|
|
2589
2589
|
{
|
|
2590
2590
|
"kind": "js",
|
|
2591
|
-
"name": "
|
|
2591
|
+
"name": "UseListboxInput",
|
|
2592
2592
|
"declaration": {
|
|
2593
|
-
"name": "
|
|
2594
|
-
"module": "src/elements/use-listbox/use-listbox.ts"
|
|
2593
|
+
"name": "UseListboxInput",
|
|
2594
|
+
"module": "src/elements/use-listbox-input/use-listbox-input.ts"
|
|
2595
2595
|
}
|
|
2596
2596
|
},
|
|
2597
2597
|
{
|
|
2598
2598
|
"kind": "custom-element-definition",
|
|
2599
|
-
"name": "use-listbox",
|
|
2599
|
+
"name": "use-listbox-input",
|
|
2600
2600
|
"declaration": {
|
|
2601
|
-
"name": "
|
|
2602
|
-
"module": "src/elements/use-listbox/use-listbox.ts"
|
|
2601
|
+
"name": "UseListboxInput",
|
|
2602
|
+
"module": "src/elements/use-listbox-input/use-listbox-input.ts"
|
|
2603
2603
|
}
|
|
2604
2604
|
}
|
|
2605
2605
|
]
|
|
@@ -2944,7 +2944,7 @@
|
|
|
2944
2944
|
"declarations": [
|
|
2945
2945
|
{
|
|
2946
2946
|
"kind": "class",
|
|
2947
|
-
"description": "`use-option` is a custom element that represents an option in a `use-select` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.",
|
|
2947
|
+
"description": "`use-option` is a custom element that represents an option in a `use-select-input` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.",
|
|
2948
2948
|
"name": "UseOption",
|
|
2949
2949
|
"slots": [
|
|
2950
2950
|
{
|
|
@@ -3085,12 +3085,12 @@
|
|
|
3085
3085
|
},
|
|
3086
3086
|
{
|
|
3087
3087
|
"kind": "javascript-module",
|
|
3088
|
-
"path": "src/elements/use-select/use-select.ts",
|
|
3088
|
+
"path": "src/elements/use-select-input/use-select-input.ts",
|
|
3089
3089
|
"declarations": [
|
|
3090
3090
|
{
|
|
3091
3091
|
"kind": "class",
|
|
3092
|
-
"description": "## Multiple\n\nThe `use-listbox` provides an attribute for selecting multiple options.\n\n## Long term plan\n\nThis web component was built with the intent to be replaced by browser-native `base-select` support once it becomes baseline.\n\n<baseline-status featureId=\"customizable-select\"></baseline-status>",
|
|
3093
|
-
"name": "
|
|
3092
|
+
"description": "## Multiple\n\nThe `use-listbox-input` provides an attribute for selecting multiple options.\n\n## Long term plan\n\nThis web component was built with the intent to be replaced by browser-native `base-select` support once it becomes baseline.\n\n<baseline-status featureId=\"customizable-select\"></baseline-status>",
|
|
3093
|
+
"name": "UseSelectInput",
|
|
3094
3094
|
"slots": [
|
|
3095
3095
|
{
|
|
3096
3096
|
"description": "NodeList of `use-option` elements",
|
|
@@ -3197,37 +3197,37 @@
|
|
|
3197
3197
|
"name": "LitElement",
|
|
3198
3198
|
"package": "lit"
|
|
3199
3199
|
},
|
|
3200
|
-
"tagName": "use-select",
|
|
3200
|
+
"tagName": "use-select-input",
|
|
3201
3201
|
"customElement": true
|
|
3202
3202
|
}
|
|
3203
3203
|
],
|
|
3204
3204
|
"exports": [
|
|
3205
3205
|
{
|
|
3206
3206
|
"kind": "js",
|
|
3207
|
-
"name": "
|
|
3207
|
+
"name": "UseSelectInput",
|
|
3208
3208
|
"declaration": {
|
|
3209
|
-
"name": "
|
|
3210
|
-
"module": "src/elements/use-select/use-select.ts"
|
|
3209
|
+
"name": "UseSelectInput",
|
|
3210
|
+
"module": "src/elements/use-select-input/use-select-input.ts"
|
|
3211
3211
|
}
|
|
3212
3212
|
},
|
|
3213
3213
|
{
|
|
3214
3214
|
"kind": "custom-element-definition",
|
|
3215
|
-
"name": "use-select",
|
|
3215
|
+
"name": "use-select-input",
|
|
3216
3216
|
"declaration": {
|
|
3217
|
-
"name": "
|
|
3218
|
-
"module": "src/elements/use-select/use-select.ts"
|
|
3217
|
+
"name": "UseSelectInput",
|
|
3218
|
+
"module": "src/elements/use-select-input/use-select-input.ts"
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
3221
|
]
|
|
3222
3222
|
},
|
|
3223
3223
|
{
|
|
3224
3224
|
"kind": "javascript-module",
|
|
3225
|
-
"path": "src/elements/use-time/use-time.ts",
|
|
3225
|
+
"path": "src/elements/use-time-input/use-time-input.ts",
|
|
3226
3226
|
"declarations": [
|
|
3227
3227
|
{
|
|
3228
3228
|
"kind": "class",
|
|
3229
3229
|
"description": "Displays time picker using [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat).\n\nAllows users to pick time values with proper localization and formatting.",
|
|
3230
|
-
"name": "
|
|
3230
|
+
"name": "UseTimeInput",
|
|
3231
3231
|
"members": [
|
|
3232
3232
|
{
|
|
3233
3233
|
"kind": "field",
|
|
@@ -3468,25 +3468,25 @@
|
|
|
3468
3468
|
"name": "LitElement",
|
|
3469
3469
|
"package": "lit"
|
|
3470
3470
|
},
|
|
3471
|
-
"tagName": "use-time",
|
|
3471
|
+
"tagName": "use-time-input",
|
|
3472
3472
|
"customElement": true
|
|
3473
3473
|
}
|
|
3474
3474
|
],
|
|
3475
3475
|
"exports": [
|
|
3476
3476
|
{
|
|
3477
3477
|
"kind": "js",
|
|
3478
|
-
"name": "
|
|
3478
|
+
"name": "UseTimeInput",
|
|
3479
3479
|
"declaration": {
|
|
3480
|
-
"name": "
|
|
3481
|
-
"module": "src/elements/use-time/use-time.ts"
|
|
3480
|
+
"name": "UseTimeInput",
|
|
3481
|
+
"module": "src/elements/use-time-input/use-time-input.ts"
|
|
3482
3482
|
}
|
|
3483
3483
|
},
|
|
3484
3484
|
{
|
|
3485
3485
|
"kind": "custom-element-definition",
|
|
3486
|
-
"name": "use-time",
|
|
3486
|
+
"name": "use-time-input",
|
|
3487
3487
|
"declaration": {
|
|
3488
|
-
"name": "
|
|
3489
|
-
"module": "src/elements/use-time/use-time.ts"
|
|
3488
|
+
"name": "UseTimeInput",
|
|
3489
|
+
"module": "src/elements/use-time-input/use-time-input.ts"
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
3492
|
]
|
|
@@ -3643,7 +3643,7 @@
|
|
|
3643
3643
|
"declarations": [
|
|
3644
3644
|
{
|
|
3645
3645
|
"kind": "class",
|
|
3646
|
-
"description": "`use-option` is a custom element that represents an option in a `use-select` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.\n\n## To Do\n\n- [ ] When the parent is no longer disabled, update the items without their own `[disabled]`",
|
|
3646
|
+
"description": "`use-option` is a custom element that represents an option in a `use-select-input` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.\n\n## To Do\n\n- [ ] When the parent is no longer disabled, update the items without their own `[disabled]`",
|
|
3647
3647
|
"name": "UseTreeitem",
|
|
3648
3648
|
"slots": [
|
|
3649
3649
|
{
|
package/dist/use-wc.d.mts
CHANGED
|
@@ -47,7 +47,7 @@ type TemplateResult$1<T extends ResultType = ResultType> = UncompiledTemplateRes
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/elements/use-option/use-option.d.ts
|
|
49
49
|
/**
|
|
50
|
-
* `use-option` is a custom element that represents an option in a `use-select` custom element.
|
|
50
|
+
* `use-option` is a custom element that represents an option in a `use-select-input` custom element.
|
|
51
51
|
*
|
|
52
52
|
* The children of this element are the content of the option and must not contain any interactive elements.
|
|
53
53
|
*
|
|
@@ -80,13 +80,13 @@ declare global {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
-
//#region src/elements/use-date/use-date.d.ts
|
|
83
|
+
//#region src/elements/use-date-input/use-date-input.d.ts
|
|
84
84
|
/**
|
|
85
85
|
* Displays a date picker using segmented inputs for year, month, and day.
|
|
86
86
|
*
|
|
87
87
|
* Uses browser locale for formatting and ARIA labels.
|
|
88
88
|
*/
|
|
89
|
-
declare class
|
|
89
|
+
declare class UseDateInput extends LitElement {
|
|
90
90
|
#private;
|
|
91
91
|
static formAssociated: boolean;
|
|
92
92
|
static shadowRootOptions: {
|
|
@@ -120,7 +120,7 @@ declare class UseDate extends LitElement {
|
|
|
120
120
|
}
|
|
121
121
|
declare global {
|
|
122
122
|
interface HTMLElementTagNameMap {
|
|
123
|
-
"use-date":
|
|
123
|
+
"use-date-input": UseDateInput;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
@@ -188,7 +188,7 @@ declare global {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
//#endregion
|
|
191
|
-
//#region src/elements/use-duration/use-duration.d.ts
|
|
191
|
+
//#region src/elements/use-duration-input/use-duration-input.d.ts
|
|
192
192
|
/**
|
|
193
193
|
* Displays the parts of an ISO 8601 duration string using [`Intl.DurationFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat).
|
|
194
194
|
*
|
|
@@ -196,7 +196,7 @@ declare global {
|
|
|
196
196
|
*
|
|
197
197
|
* <baseline-status featureId="intl-duration-format"></baseline-status>
|
|
198
198
|
*/
|
|
199
|
-
declare class
|
|
199
|
+
declare class UseDurationInput extends LitElement {
|
|
200
200
|
#private;
|
|
201
201
|
static formAssociated: boolean;
|
|
202
202
|
static shadowRootOptions: {
|
|
@@ -244,16 +244,16 @@ declare class UseDuration extends LitElement {
|
|
|
244
244
|
}
|
|
245
245
|
declare global {
|
|
246
246
|
interface HTMLElementTagNameMap {
|
|
247
|
-
"use-duration":
|
|
247
|
+
"use-duration-input": UseDurationInput;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
//#endregion
|
|
251
|
-
//#region src/elements/use-listbox/use-listbox.d.ts
|
|
251
|
+
//#region src/elements/use-listbox-input/use-listbox-input.d.ts
|
|
252
252
|
/**
|
|
253
253
|
* @slot default NodeList of `use-option` elements
|
|
254
254
|
* @slot arrow
|
|
255
255
|
*/
|
|
256
|
-
declare class
|
|
256
|
+
declare class UseListboxInput extends LitElement {
|
|
257
257
|
#private;
|
|
258
258
|
static formAssociated: boolean;
|
|
259
259
|
static shadowRootOptions: {
|
|
@@ -294,15 +294,15 @@ declare class UseListbox extends LitElement {
|
|
|
294
294
|
}
|
|
295
295
|
declare global {
|
|
296
296
|
interface HTMLElementTagNameMap {
|
|
297
|
-
"use-listbox":
|
|
297
|
+
"use-listbox-input": UseListboxInput;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
//#endregion
|
|
301
|
-
//#region src/elements/use-select/use-select.d.ts
|
|
301
|
+
//#region src/elements/use-select-input/use-select-input.d.ts
|
|
302
302
|
/**
|
|
303
303
|
* ## Multiple
|
|
304
304
|
*
|
|
305
|
-
* The `use-listbox` provides an attribute for selecting multiple options.
|
|
305
|
+
* The `use-listbox-input` provides an attribute for selecting multiple options.
|
|
306
306
|
*
|
|
307
307
|
* ## Long term plan
|
|
308
308
|
*
|
|
@@ -313,7 +313,7 @@ declare global {
|
|
|
313
313
|
* @slot default NodeList of `use-option` elements
|
|
314
314
|
* @slot arrow
|
|
315
315
|
*/
|
|
316
|
-
declare class
|
|
316
|
+
declare class UseSelectInput extends LitElement {
|
|
317
317
|
#private;
|
|
318
318
|
static formAssociated: boolean;
|
|
319
319
|
static shadowRootOptions: {
|
|
@@ -350,17 +350,17 @@ declare class UseSelect extends LitElement {
|
|
|
350
350
|
}
|
|
351
351
|
declare global {
|
|
352
352
|
interface HTMLElementTagNameMap {
|
|
353
|
-
"use-select":
|
|
353
|
+
"use-select-input": UseSelectInput;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
//#endregion
|
|
357
|
-
//#region src/elements/use-time/use-time.d.ts
|
|
357
|
+
//#region src/elements/use-time-input/use-time-input.d.ts
|
|
358
358
|
/**
|
|
359
359
|
* Displays time picker using [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat).
|
|
360
360
|
*
|
|
361
361
|
* Allows users to pick time values with proper localization and formatting.
|
|
362
362
|
*/
|
|
363
|
-
declare class
|
|
363
|
+
declare class UseTimeInput extends LitElement {
|
|
364
364
|
#private;
|
|
365
365
|
static formAssociated: boolean;
|
|
366
366
|
static shadowRootOptions: {
|
|
@@ -403,13 +403,13 @@ declare class UseTime extends LitElement {
|
|
|
403
403
|
}
|
|
404
404
|
declare global {
|
|
405
405
|
interface HTMLElementTagNameMap {
|
|
406
|
-
"use-time":
|
|
406
|
+
"use-time-input": UseTimeInput;
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
//#endregion
|
|
410
410
|
//#region src/elements/use-treeitem/use-treeitem.d.ts
|
|
411
411
|
/**
|
|
412
|
-
* `use-option` is a custom element that represents an option in a `use-select` custom element.
|
|
412
|
+
* `use-option` is a custom element that represents an option in a `use-select-input` custom element.
|
|
413
413
|
*
|
|
414
414
|
* The children of this element are the content of the option and must not contain any interactive elements.
|
|
415
415
|
*
|
|
@@ -908,13 +908,13 @@ declare global {
|
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
//#endregion
|
|
911
|
-
//#region src/elements/use-datetime/use-datetime.d.ts
|
|
911
|
+
//#region src/elements/use-datetime-input/use-datetime-input.d.ts
|
|
912
912
|
/**
|
|
913
913
|
* Displays a date and time picker by combining `use-date` and `use-time`.
|
|
914
914
|
*
|
|
915
915
|
* The value format is ISO 8601-like: `YYYY-MM-DDTHH:MM:SS.mmm`.
|
|
916
916
|
*/
|
|
917
|
-
declare class
|
|
917
|
+
declare class UseDatetimeInput extends LitElement {
|
|
918
918
|
#private;
|
|
919
919
|
static formAssociated: boolean;
|
|
920
920
|
static shadowRootOptions: {
|
|
@@ -925,8 +925,8 @@ declare class UseDatetime extends LitElement {
|
|
|
925
925
|
slotAssignment?: SlotAssignmentMode | undefined;
|
|
926
926
|
delegatesFocus: boolean;
|
|
927
927
|
};
|
|
928
|
-
dateElement:
|
|
929
|
-
timeElement:
|
|
928
|
+
dateElement: UseDateInput;
|
|
929
|
+
timeElement: UseTimeInput;
|
|
930
930
|
constructor();
|
|
931
931
|
get id(): string;
|
|
932
932
|
set id(val: string);
|
|
@@ -979,4 +979,4 @@ declare global {
|
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
//#endregion
|
|
982
|
-
export { UseCalendarBase, UseCalendarRenderDay,
|
|
982
|
+
export { UseCalendarBase, UseCalendarRenderDay, UseDateInput, UseDatePicker, UseDatetimeInput, UseDropdown, UseDurationInput, UseFocusgroup, UseListboxInput, UseMenu, UseMonthPicker, UseMonthPickerRenderMonth, UseOption, UseScrollarea, UseSelectInput, UseTimeInput, UseTree, UseTreeitem, UseWeekPicker, UseWidget };
|
package/dist/use-wc.mjs
CHANGED
|
@@ -218,8 +218,8 @@ function parseISOWeek(week) {
|
|
|
218
218
|
return monday;
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
|
-
//#region src/elements/use-date/use-date.ts
|
|
222
|
-
let
|
|
221
|
+
//#region src/elements/use-date-input/use-date-input.ts
|
|
222
|
+
let UseDateInput = class UseDateInput extends LitElement {
|
|
223
223
|
static {
|
|
224
224
|
this.formAssociated = true;
|
|
225
225
|
}
|
|
@@ -406,20 +406,20 @@ let UseDate = class UseDate extends LitElement {
|
|
|
406
406
|
`;
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
|
-
__decorate([query("input[part=\"segment-input segment-input-year\"]")],
|
|
410
|
-
__decorate([query("input[part=\"segment-input segment-input-month\"]")],
|
|
411
|
-
__decorate([query("input[part=\"segment-input segment-input-day\"]")],
|
|
412
|
-
__decorate([property({ type: Boolean })],
|
|
409
|
+
__decorate([query("input[part=\"segment-input segment-input-year\"]")], UseDateInput.prototype, "yearInput", void 0);
|
|
410
|
+
__decorate([query("input[part=\"segment-input segment-input-month\"]")], UseDateInput.prototype, "monthInput", void 0);
|
|
411
|
+
__decorate([query("input[part=\"segment-input segment-input-day\"]")], UseDateInput.prototype, "dayInput", void 0);
|
|
412
|
+
__decorate([property({ type: Boolean })], UseDateInput.prototype, "disabled", null);
|
|
413
413
|
__decorate([property({
|
|
414
414
|
type: Boolean,
|
|
415
415
|
attribute: "readonly"
|
|
416
|
-
})],
|
|
417
|
-
__decorate([property({ type: String })],
|
|
416
|
+
})], UseDateInput.prototype, "readOnly", null);
|
|
417
|
+
__decorate([property({ type: String })], UseDateInput.prototype, "value", null);
|
|
418
418
|
__decorate([property({
|
|
419
419
|
type: String,
|
|
420
420
|
attribute: true
|
|
421
|
-
})],
|
|
422
|
-
|
|
421
|
+
})], UseDateInput.prototype, "locale", void 0);
|
|
422
|
+
UseDateInput = __decorate([customElement("use-date-input")], UseDateInput);
|
|
423
423
|
//#endregion
|
|
424
424
|
//#region src/elements/use-dropdown/use-dropdown.ts
|
|
425
425
|
var _UseDropdown;
|
|
@@ -660,7 +660,7 @@ __decorate([property({ type: Boolean })], UseDropdown.prototype, "disabled", nul
|
|
|
660
660
|
__decorate([property()], UseDropdown.prototype, "label", void 0);
|
|
661
661
|
UseDropdown = _UseDropdown = __decorate([customElement("use-dropdown")], UseDropdown);
|
|
662
662
|
//#endregion
|
|
663
|
-
//#region src/elements/use-duration/use-duration.ts
|
|
663
|
+
//#region src/elements/use-duration-input/use-duration-input.ts
|
|
664
664
|
const ISO_DURATION_SEGMENTS = {
|
|
665
665
|
year: "years",
|
|
666
666
|
month: "months",
|
|
@@ -671,7 +671,7 @@ const ISO_DURATION_SEGMENTS = {
|
|
|
671
671
|
second: "seconds",
|
|
672
672
|
millisecond: "milliseconds"
|
|
673
673
|
};
|
|
674
|
-
let
|
|
674
|
+
let UseDurationInput = class UseDurationInput extends LitElement {
|
|
675
675
|
static {
|
|
676
676
|
this.formAssociated = true;
|
|
677
677
|
}
|
|
@@ -852,65 +852,65 @@ let UseDuration = class UseDuration extends LitElement {
|
|
|
852
852
|
`;
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
|
-
__decorate([query("input[part=\"segment-input segment-input-year\"]")],
|
|
856
|
-
__decorate([query("input[part=\"segment-input segment-input-month\"]")],
|
|
857
|
-
__decorate([query("input[part=\"segment-input segment-input-week\"]")],
|
|
858
|
-
__decorate([query("input[part=\"segment-input segment-input-day\"]")],
|
|
859
|
-
__decorate([query("input[part=\"segment-input segment-input-hour\"]")],
|
|
860
|
-
__decorate([query("input[part=\"segment-input segment-input-minute\"]")],
|
|
861
|
-
__decorate([query("input[part=\"segment-input segment-input-second\"]")],
|
|
862
|
-
__decorate([query("input[part=\"segment-input segment-input-millisecond\"]")],
|
|
855
|
+
__decorate([query("input[part=\"segment-input segment-input-year\"]")], UseDurationInput.prototype, "yearInput", void 0);
|
|
856
|
+
__decorate([query("input[part=\"segment-input segment-input-month\"]")], UseDurationInput.prototype, "monthInput", void 0);
|
|
857
|
+
__decorate([query("input[part=\"segment-input segment-input-week\"]")], UseDurationInput.prototype, "weekInput", void 0);
|
|
858
|
+
__decorate([query("input[part=\"segment-input segment-input-day\"]")], UseDurationInput.prototype, "dayInput", void 0);
|
|
859
|
+
__decorate([query("input[part=\"segment-input segment-input-hour\"]")], UseDurationInput.prototype, "hourInput", void 0);
|
|
860
|
+
__decorate([query("input[part=\"segment-input segment-input-minute\"]")], UseDurationInput.prototype, "minuteInput", void 0);
|
|
861
|
+
__decorate([query("input[part=\"segment-input segment-input-second\"]")], UseDurationInput.prototype, "secondInput", void 0);
|
|
862
|
+
__decorate([query("input[part=\"segment-input segment-input-millisecond\"]")], UseDurationInput.prototype, "millisecondInput", void 0);
|
|
863
863
|
__decorate([property({
|
|
864
864
|
type: Boolean,
|
|
865
865
|
attribute: true
|
|
866
|
-
})],
|
|
866
|
+
})], UseDurationInput.prototype, "years", void 0);
|
|
867
867
|
__decorate([property({
|
|
868
868
|
type: Boolean,
|
|
869
869
|
attribute: true
|
|
870
|
-
})],
|
|
870
|
+
})], UseDurationInput.prototype, "months", void 0);
|
|
871
871
|
__decorate([property({
|
|
872
872
|
type: Boolean,
|
|
873
873
|
attribute: true
|
|
874
|
-
})],
|
|
874
|
+
})], UseDurationInput.prototype, "weeks", void 0);
|
|
875
875
|
__decorate([property({
|
|
876
876
|
type: Boolean,
|
|
877
877
|
attribute: true
|
|
878
|
-
})],
|
|
878
|
+
})], UseDurationInput.prototype, "days", void 0);
|
|
879
879
|
__decorate([property({
|
|
880
880
|
type: Boolean,
|
|
881
881
|
attribute: true
|
|
882
|
-
})],
|
|
882
|
+
})], UseDurationInput.prototype, "hours", void 0);
|
|
883
883
|
__decorate([property({
|
|
884
884
|
type: Boolean,
|
|
885
885
|
attribute: true
|
|
886
|
-
})],
|
|
886
|
+
})], UseDurationInput.prototype, "minutes", void 0);
|
|
887
887
|
__decorate([property({
|
|
888
888
|
type: Boolean,
|
|
889
889
|
attribute: true
|
|
890
|
-
})],
|
|
890
|
+
})], UseDurationInput.prototype, "seconds", void 0);
|
|
891
891
|
__decorate([property({
|
|
892
892
|
type: Boolean,
|
|
893
893
|
attribute: true
|
|
894
|
-
})],
|
|
895
|
-
__decorate([property({ type: Boolean })],
|
|
894
|
+
})], UseDurationInput.prototype, "milliseconds", void 0);
|
|
895
|
+
__decorate([property({ type: Boolean })], UseDurationInput.prototype, "disabled", null);
|
|
896
896
|
__decorate([property({
|
|
897
897
|
type: Boolean,
|
|
898
898
|
attribute: "readonly"
|
|
899
|
-
})],
|
|
900
|
-
__decorate([property({ type: String })],
|
|
899
|
+
})], UseDurationInput.prototype, "readOnly", null);
|
|
900
|
+
__decorate([property({ type: String })], UseDurationInput.prototype, "value", null);
|
|
901
901
|
__decorate([property({
|
|
902
902
|
type: String,
|
|
903
903
|
attribute: true
|
|
904
|
-
})],
|
|
904
|
+
})], UseDurationInput.prototype, "locale", void 0);
|
|
905
905
|
__decorate([property({
|
|
906
906
|
type: String,
|
|
907
907
|
attribute: true
|
|
908
|
-
})],
|
|
909
|
-
|
|
908
|
+
})], UseDurationInput.prototype, "format", void 0);
|
|
909
|
+
UseDurationInput = __decorate([customElement("use-duration-input")], UseDurationInput);
|
|
910
910
|
//#endregion
|
|
911
|
-
//#region src/elements/use-listbox/use-listbox.ts
|
|
911
|
+
//#region src/elements/use-listbox-input/use-listbox-input.ts
|
|
912
912
|
const FORM_DATA_KEY$2 = "__value";
|
|
913
|
-
let
|
|
913
|
+
let UseListboxInput = class UseListboxInput extends LitElement {
|
|
914
914
|
static {
|
|
915
915
|
this.formAssociated = true;
|
|
916
916
|
}
|
|
@@ -1089,20 +1089,20 @@ let UseListbox = class UseListbox extends LitElement {
|
|
|
1089
1089
|
`;
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
1092
|
-
__decorate([property()],
|
|
1093
|
-
__decorate([property()],
|
|
1092
|
+
__decorate([property()], UseListboxInput.prototype, "name", void 0);
|
|
1093
|
+
__decorate([property()], UseListboxInput.prototype, "placeholder", void 0);
|
|
1094
1094
|
__decorate([property({
|
|
1095
1095
|
type: Boolean,
|
|
1096
1096
|
reflect: true
|
|
1097
|
-
})],
|
|
1098
|
-
__decorate([property({ type: Boolean })],
|
|
1099
|
-
__decorate([queryAssignedElements({ selector: "use-option" })],
|
|
1100
|
-
__decorate([query("[part=\"listbox\"]", true)],
|
|
1101
|
-
|
|
1097
|
+
})], UseListboxInput.prototype, "multiple", void 0);
|
|
1098
|
+
__decorate([property({ type: Boolean })], UseListboxInput.prototype, "disabled", null);
|
|
1099
|
+
__decorate([queryAssignedElements({ selector: "use-option" })], UseListboxInput.prototype, "options", void 0);
|
|
1100
|
+
__decorate([query("[part=\"listbox\"]", true)], UseListboxInput.prototype, "listbox", void 0);
|
|
1101
|
+
UseListboxInput = __decorate([customElement("use-listbox-input")], UseListboxInput);
|
|
1102
1102
|
//#endregion
|
|
1103
|
-
//#region src/elements/use-select/use-select.ts
|
|
1103
|
+
//#region src/elements/use-select-input/use-select-input.ts
|
|
1104
1104
|
const FORM_DATA_KEY$1 = "__value";
|
|
1105
|
-
let
|
|
1105
|
+
let UseSelectInput = class UseSelectInput extends LitElement {
|
|
1106
1106
|
static {
|
|
1107
1107
|
this.formAssociated = true;
|
|
1108
1108
|
}
|
|
@@ -1327,15 +1327,15 @@ let UseSelect = class UseSelect extends LitElement {
|
|
|
1327
1327
|
`;
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
-
__decorate([property()],
|
|
1331
|
-
__decorate([property()],
|
|
1332
|
-
__decorate([property({ type: Boolean })],
|
|
1333
|
-
__decorate([queryAssignedElements({ selector: "use-option" })],
|
|
1334
|
-
__decorate([query("[part=\"trigger-label\"]", true)],
|
|
1335
|
-
|
|
1330
|
+
__decorate([property()], UseSelectInput.prototype, "name", void 0);
|
|
1331
|
+
__decorate([property()], UseSelectInput.prototype, "placeholder", void 0);
|
|
1332
|
+
__decorate([property({ type: Boolean })], UseSelectInput.prototype, "disabled", null);
|
|
1333
|
+
__decorate([queryAssignedElements({ selector: "use-option" })], UseSelectInput.prototype, "options", void 0);
|
|
1334
|
+
__decorate([query("[part=\"trigger-label\"]", true)], UseSelectInput.prototype, "label", void 0);
|
|
1335
|
+
UseSelectInput = __decorate([customElement("use-select-input")], UseSelectInput);
|
|
1336
1336
|
//#endregion
|
|
1337
|
-
//#region src/elements/use-time/use-time.ts
|
|
1338
|
-
let
|
|
1337
|
+
//#region src/elements/use-time-input/use-time-input.ts
|
|
1338
|
+
let UseTimeInput = class UseTimeInput extends LitElement {
|
|
1339
1339
|
static {
|
|
1340
1340
|
this.formAssociated = true;
|
|
1341
1341
|
}
|
|
@@ -1661,50 +1661,50 @@ let UseTime = class UseTime extends LitElement {
|
|
|
1661
1661
|
__decorate([property({
|
|
1662
1662
|
type: Boolean,
|
|
1663
1663
|
attribute: true
|
|
1664
|
-
})],
|
|
1664
|
+
})], UseTimeInput.prototype, "hours", void 0);
|
|
1665
1665
|
__decorate([property({
|
|
1666
1666
|
type: Boolean,
|
|
1667
1667
|
attribute: true
|
|
1668
|
-
})],
|
|
1668
|
+
})], UseTimeInput.prototype, "minutes", void 0);
|
|
1669
1669
|
__decorate([property({
|
|
1670
1670
|
type: Boolean,
|
|
1671
1671
|
attribute: true
|
|
1672
|
-
})],
|
|
1672
|
+
})], UseTimeInput.prototype, "seconds", void 0);
|
|
1673
1673
|
__decorate([property({
|
|
1674
1674
|
type: Boolean,
|
|
1675
1675
|
attribute: true
|
|
1676
|
-
})],
|
|
1676
|
+
})], UseTimeInput.prototype, "fractionalSeconds", void 0);
|
|
1677
1677
|
__decorate([property({
|
|
1678
1678
|
type: Boolean,
|
|
1679
1679
|
attribute: true
|
|
1680
|
-
})],
|
|
1680
|
+
})], UseTimeInput.prototype, "dayPeriod", void 0);
|
|
1681
1681
|
__decorate([property({
|
|
1682
1682
|
type: String,
|
|
1683
1683
|
attribute: true
|
|
1684
|
-
})],
|
|
1685
|
-
__decorate([query("input[part=\"segment-input segment-input-hour\"]")],
|
|
1686
|
-
__decorate([query("input[part=\"segment-input segment-input-minute\"]")],
|
|
1687
|
-
__decorate([query("input[part=\"segment-input segment-input-second\"]")],
|
|
1688
|
-
__decorate([query("input[part=\"segment-input segment-input-fractionalSecond\"]")],
|
|
1689
|
-
__decorate([query("input[part=\"segment-input segment-input-dayPeriod\"]")],
|
|
1690
|
-
__decorate([property({ type: Boolean })],
|
|
1684
|
+
})], UseTimeInput.prototype, "hourFormat", void 0);
|
|
1685
|
+
__decorate([query("input[part=\"segment-input segment-input-hour\"]")], UseTimeInput.prototype, "hourInput", void 0);
|
|
1686
|
+
__decorate([query("input[part=\"segment-input segment-input-minute\"]")], UseTimeInput.prototype, "minuteInput", void 0);
|
|
1687
|
+
__decorate([query("input[part=\"segment-input segment-input-second\"]")], UseTimeInput.prototype, "secondInput", void 0);
|
|
1688
|
+
__decorate([query("input[part=\"segment-input segment-input-fractionalSecond\"]")], UseTimeInput.prototype, "fractionalSecondInput", void 0);
|
|
1689
|
+
__decorate([query("input[part=\"segment-input segment-input-dayPeriod\"]")], UseTimeInput.prototype, "dayPeriodInput", void 0);
|
|
1690
|
+
__decorate([property({ type: Boolean })], UseTimeInput.prototype, "disabled", null);
|
|
1691
1691
|
__decorate([property({
|
|
1692
1692
|
type: Boolean,
|
|
1693
1693
|
attribute: "readonly"
|
|
1694
|
-
})],
|
|
1694
|
+
})], UseTimeInput.prototype, "readOnly", null);
|
|
1695
1695
|
__decorate([property({
|
|
1696
1696
|
type: String,
|
|
1697
1697
|
attribute: true
|
|
1698
|
-
})],
|
|
1698
|
+
})], UseTimeInput.prototype, "value", null);
|
|
1699
1699
|
__decorate([property({
|
|
1700
1700
|
type: String,
|
|
1701
1701
|
attribute: true
|
|
1702
|
-
})],
|
|
1702
|
+
})], UseTimeInput.prototype, "locale", void 0);
|
|
1703
1703
|
__decorate([property({
|
|
1704
1704
|
type: String,
|
|
1705
1705
|
attribute: true
|
|
1706
|
-
})],
|
|
1707
|
-
|
|
1706
|
+
})], UseTimeInput.prototype, "format", void 0);
|
|
1707
|
+
UseTimeInput = __decorate([customElement("use-time-input")], UseTimeInput);
|
|
1708
1708
|
//#endregion
|
|
1709
1709
|
//#region src/elements/use-treeitem/use-treeitem.ts
|
|
1710
1710
|
var _UseTreeitem;
|
|
@@ -3922,8 +3922,8 @@ __decorate([property({ type: Boolean })], UseMonthPicker.prototype, "disabled",
|
|
|
3922
3922
|
__decorate([property({ type: String })], UseMonthPicker.prototype, "value", null);
|
|
3923
3923
|
UseMonthPicker = __decorate([customElement("use-month-picker")], UseMonthPicker);
|
|
3924
3924
|
//#endregion
|
|
3925
|
-
//#region src/elements/use-datetime/use-datetime.ts
|
|
3926
|
-
let
|
|
3925
|
+
//#region src/elements/use-datetime-input/use-datetime-input.ts
|
|
3926
|
+
let UseDatetimeInput = class UseDatetimeInput extends LitElement {
|
|
3927
3927
|
static {
|
|
3928
3928
|
this.formAssociated = true;
|
|
3929
3929
|
}
|
|
@@ -4003,7 +4003,7 @@ let UseDatetime = class UseDatetime extends LitElement {
|
|
|
4003
4003
|
}
|
|
4004
4004
|
render() {
|
|
4005
4005
|
return html`
|
|
4006
|
-
<use-date
|
|
4006
|
+
<use-date-input
|
|
4007
4007
|
part="date"
|
|
4008
4008
|
value=${this.#dateValue}
|
|
4009
4009
|
.disabled=${this.disabled}
|
|
@@ -4011,8 +4011,8 @@ let UseDatetime = class UseDatetime extends LitElement {
|
|
|
4011
4011
|
.locale=${this.locale}
|
|
4012
4012
|
@input=${this.#handleInput}
|
|
4013
4013
|
exportparts="segment-input, segment-literal"
|
|
4014
|
-
></use-date>
|
|
4015
|
-
<use-time
|
|
4014
|
+
></use-date-input>
|
|
4015
|
+
<use-time-input
|
|
4016
4016
|
part="time"
|
|
4017
4017
|
value=${this.#timeValue}
|
|
4018
4018
|
.disabled=${this.disabled}
|
|
@@ -4026,7 +4026,7 @@ let UseDatetime = class UseDatetime extends LitElement {
|
|
|
4026
4026
|
.hourFormat=${this.hourFormat}
|
|
4027
4027
|
@input=${this.#handleInput}
|
|
4028
4028
|
exportparts="segment-input, segment-literal, segment-input-dayPeriod"
|
|
4029
|
-
></use-time>
|
|
4029
|
+
></use-time-input>
|
|
4030
4030
|
`;
|
|
4031
4031
|
}
|
|
4032
4032
|
static {
|
|
@@ -4039,43 +4039,43 @@ let UseDatetime = class UseDatetime extends LitElement {
|
|
|
4039
4039
|
`;
|
|
4040
4040
|
}
|
|
4041
4041
|
};
|
|
4042
|
-
__decorate([query("use-date", true)],
|
|
4043
|
-
__decorate([query("use-time", true)],
|
|
4044
|
-
__decorate([property({ type: Boolean })],
|
|
4042
|
+
__decorate([query("use-date-input", true)], UseDatetimeInput.prototype, "dateElement", void 0);
|
|
4043
|
+
__decorate([query("use-time-input", true)], UseDatetimeInput.prototype, "timeElement", void 0);
|
|
4044
|
+
__decorate([property({ type: Boolean })], UseDatetimeInput.prototype, "disabled", null);
|
|
4045
4045
|
__decorate([property({
|
|
4046
4046
|
type: Boolean,
|
|
4047
4047
|
attribute: "readonly"
|
|
4048
|
-
})],
|
|
4048
|
+
})], UseDatetimeInput.prototype, "readOnly", null);
|
|
4049
4049
|
__decorate([property({
|
|
4050
4050
|
type: String,
|
|
4051
4051
|
attribute: true
|
|
4052
|
-
})],
|
|
4052
|
+
})], UseDatetimeInput.prototype, "locale", void 0);
|
|
4053
4053
|
__decorate([property({
|
|
4054
4054
|
type: Boolean,
|
|
4055
4055
|
attribute: true
|
|
4056
|
-
})],
|
|
4056
|
+
})], UseDatetimeInput.prototype, "hours", void 0);
|
|
4057
4057
|
__decorate([property({
|
|
4058
4058
|
type: Boolean,
|
|
4059
4059
|
attribute: true
|
|
4060
|
-
})],
|
|
4060
|
+
})], UseDatetimeInput.prototype, "minutes", void 0);
|
|
4061
4061
|
__decorate([property({
|
|
4062
4062
|
type: Boolean,
|
|
4063
4063
|
attribute: true
|
|
4064
|
-
})],
|
|
4064
|
+
})], UseDatetimeInput.prototype, "seconds", void 0);
|
|
4065
4065
|
__decorate([property({
|
|
4066
4066
|
type: Boolean,
|
|
4067
4067
|
attribute: true
|
|
4068
|
-
})],
|
|
4068
|
+
})], UseDatetimeInput.prototype, "fractionalSeconds", void 0);
|
|
4069
4069
|
__decorate([property({
|
|
4070
4070
|
type: Boolean,
|
|
4071
4071
|
attribute: true
|
|
4072
|
-
})],
|
|
4072
|
+
})], UseDatetimeInput.prototype, "dayPeriod", void 0);
|
|
4073
4073
|
__decorate([property({
|
|
4074
4074
|
type: String,
|
|
4075
4075
|
attribute: true
|
|
4076
|
-
})],
|
|
4077
|
-
__decorate([property({ type: String })],
|
|
4078
|
-
|
|
4076
|
+
})], UseDatetimeInput.prototype, "hourFormat", void 0);
|
|
4077
|
+
__decorate([property({ type: String })], UseDatetimeInput.prototype, "value", null);
|
|
4078
|
+
UseDatetimeInput = __decorate([customElement("use-datetime-input")], UseDatetimeInput);
|
|
4079
4079
|
//#endregion
|
|
4080
4080
|
//#region src/elements/use-scrollarea/use-scrollarea.ts
|
|
4081
4081
|
let UseScrollarea = class UseScrollarea extends LitElement {
|
|
@@ -4135,4 +4135,4 @@ let UseScrollarea = class UseScrollarea extends LitElement {
|
|
|
4135
4135
|
};
|
|
4136
4136
|
UseScrollarea = __decorate([customElement("use-scrollarea")], UseScrollarea);
|
|
4137
4137
|
//#endregion
|
|
4138
|
-
export { UseCalendarBase,
|
|
4138
|
+
export { UseCalendarBase, UseDateInput, UseDatePicker, UseDatetimeInput, UseDropdown, UseDurationInput, UseFocusgroup, UseListboxInput, UseMenu, UseMonthPicker, UseOption, UseScrollarea, UseSelectInput, UseTimeInput, UseTree, UseTreeitem, UseWeekPicker, UseWidget };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-wc",
|
|
3
|
-
"version": "1.0.0-pre.
|
|
3
|
+
"version": "1.0.0-pre.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://usewc.com",
|
|
6
6
|
"bugs": "https://github.com/dang-rabbits/use-wc/issues",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"./package.json": "./package.json"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"
|
|
26
|
+
"pack": "tsc && vp run analyze && vp pack",
|
|
27
27
|
"preview": "vp preview",
|
|
28
28
|
"analyze": "custom-elements-manifest analyze",
|
|
29
29
|
"storybook": "storybook dev -p ${PORT:-6006}",
|
|
30
|
-
"build
|
|
30
|
+
"build": "vp run pack && storybook build",
|
|
31
31
|
"test": "vp test",
|
|
32
32
|
"check": "vp check ./src",
|
|
33
33
|
"prepare": "vp config"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"tags": [
|
|
5
5
|
{
|
|
6
|
-
"name": "use-date",
|
|
6
|
+
"name": "use-date-input",
|
|
7
7
|
"description": "Displays a date picker using segmented inputs for year, month, and day.\n\nUses browser locale for formatting and ARIA labels.\n---\n",
|
|
8
8
|
"attributes": [
|
|
9
9
|
{ "name": "disabled", "values": [] },
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"references": []
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
"name": "use-datetime",
|
|
56
|
+
"name": "use-datetime-input",
|
|
57
57
|
"description": "Displays a date and time picker by combining `use-date` and `use-time`.\n\nThe value format is ISO 8601-like: `YYYY-MM-DDTHH:MM:SS.mmm`.\n---\n",
|
|
58
58
|
"attributes": [
|
|
59
59
|
{ "name": "disabled", "values": [] },
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"references": []
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
"name": "use-duration",
|
|
85
|
+
"name": "use-duration-input",
|
|
86
86
|
"description": "Displays the parts of an ISO 8601 duration string using [`Intl.DurationFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat).\n\nUses the [`duration-fns`](https://www.npmjs.com/package/duration-fns) library for parsing ISO 8601 values.\n\n<baseline-status featureId=\"intl-duration-format\"></baseline-status>\n---\n",
|
|
87
87
|
"attributes": [
|
|
88
88
|
{ "name": "years", "values": [] },
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"references": []
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
"name": "use-listbox",
|
|
182
|
+
"name": "use-listbox-input",
|
|
183
183
|
"description": "\n---\n\n\n### **Events:**\n - **use-change**\n\n### **Slots:**\n - **default** - NodeList of `use-option` elements\n- **arrow** - undefined",
|
|
184
184
|
"attributes": [
|
|
185
185
|
{ "name": "name", "values": [] },
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
"name": "use-option",
|
|
245
|
-
"description": "`use-option` is a custom element that represents an option in a `use-select` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.\n---\n\n\n### **Slots:**\n - **selected-indicator** - undefined\n- _default_ - undefined",
|
|
245
|
+
"description": "`use-option` is a custom element that represents an option in a `use-select-input` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.\n---\n\n\n### **Slots:**\n - **selected-indicator** - undefined\n- _default_ - undefined",
|
|
246
246
|
"attributes": [
|
|
247
247
|
{ "name": "selected", "values": [] },
|
|
248
248
|
{ "name": "disabled", "values": [] },
|
|
@@ -257,8 +257,8 @@
|
|
|
257
257
|
"references": []
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
|
-
"name": "use-select",
|
|
261
|
-
"description": "## Multiple\n\nThe `use-listbox` provides an attribute for selecting multiple options.\n\n## Long term plan\n\nThis web component was built with the intent to be replaced by browser-native `base-select` support once it becomes baseline.\n\n<baseline-status featureId=\"customizable-select\"></baseline-status>\n---\n\n\n### **Slots:**\n - **default** - NodeList of `use-option` elements\n- **arrow** - undefined",
|
|
260
|
+
"name": "use-select-input",
|
|
261
|
+
"description": "## Multiple\n\nThe `use-listbox-input` provides an attribute for selecting multiple options.\n\n## Long term plan\n\nThis web component was built with the intent to be replaced by browser-native `base-select` support once it becomes baseline.\n\n<baseline-status featureId=\"customizable-select\"></baseline-status>\n---\n\n\n### **Slots:**\n - **default** - NodeList of `use-option` elements\n- **arrow** - undefined",
|
|
262
262
|
"attributes": [
|
|
263
263
|
{ "name": "name", "values": [] },
|
|
264
264
|
{ "name": "placeholder", "values": [] },
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"references": []
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
"name": "use-time",
|
|
270
|
+
"name": "use-time-input",
|
|
271
271
|
"description": "Displays time picker using [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat).\n\nAllows users to pick time values with proper localization and formatting.\n---\n\n\n### **Events:**\n - **input**",
|
|
272
272
|
"attributes": [
|
|
273
273
|
{ "name": "hours", "values": [] },
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
"name": "use-treeitem",
|
|
310
|
-
"description": "`use-option` is a custom element that represents an option in a `use-select` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.\n\n## To Do\n\n- [ ] When the parent is no longer disabled, update the items without their own `[disabled]`\n---\n\n\n### **Slots:**\n - **selected-indicator** - undefined\n- _default_ - undefined",
|
|
310
|
+
"description": "`use-option` is a custom element that represents an option in a `use-select-input` custom element.\n\nThe children of this element are the content of the option and must not contain any interactive elements.\n\n## To Do\n\n- [ ] When the parent is no longer disabled, update the items without their own `[disabled]`\n---\n\n\n### **Slots:**\n - **selected-indicator** - undefined\n- _default_ - undefined",
|
|
311
311
|
"attributes": [
|
|
312
312
|
{ "name": "selected", "values": [] },
|
|
313
313
|
{ "name": "disabled", "values": [] },
|