use-wc 1.0.0-pre.32 → 1.0.0-pre.34

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.
@@ -169,14 +169,6 @@
169
169
  "attribute": "month",
170
170
  "reflects": true
171
171
  },
172
- {
173
- "kind": "field",
174
- "name": "locale",
175
- "type": {
176
- "text": "string"
177
- },
178
- "attribute": "locale"
179
- },
180
172
  {
181
173
  "kind": "field",
182
174
  "name": "controls",
@@ -305,13 +297,6 @@
305
297
  "description": "1-12",
306
298
  "fieldName": "month"
307
299
  },
308
- {
309
- "name": "locale",
310
- "type": {
311
- "text": "string"
312
- },
313
- "fieldName": "locale"
314
- },
315
300
  {
316
301
  "name": "controls",
317
302
  "type": {
@@ -381,22 +366,97 @@
381
366
  },
382
367
  "description": "Last date in the visible range. Accepts ISO 8601 date strings or `'max'` to use the same value as `max`",
383
368
  "fieldName": "end"
369
+ },
370
+ {
371
+ "name": "lang",
372
+ "type": {
373
+ "text": "string"
374
+ },
375
+ "fieldName": "lang",
376
+ "inheritedFrom": {
377
+ "name": "UseLocaleElement",
378
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
379
+ }
380
+ }
381
+ ],
382
+ "superclass": {
383
+ "name": "UseLocaleElement",
384
+ "module": "/src/elements/use-locale-element/use-locale-element"
385
+ }
386
+ }
387
+ ],
388
+ "exports": [
389
+ {
390
+ "kind": "js",
391
+ "name": "UseCalendarBase",
392
+ "declaration": {
393
+ "name": "UseCalendarBase",
394
+ "module": "src/elements/use-calendar-base/use-calendar-base.ts"
395
+ }
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "kind": "javascript-module",
401
+ "path": "src/elements/use-calendarday/use-calendarday.ts",
402
+ "declarations": [
403
+ {
404
+ "kind": "class",
405
+ "description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.",
406
+ "name": "UseCalendarday",
407
+ "slots": [
408
+ {
409
+ "description": "slot for custom day content (replaces the day number)",
410
+ "name": "default"
411
+ }
412
+ ],
413
+ "members": [
414
+ {
415
+ "kind": "field",
416
+ "name": "date",
417
+ "type": {
418
+ "text": "string"
419
+ },
420
+ "attribute": "date"
421
+ },
422
+ {
423
+ "kind": "field",
424
+ "name": "day",
425
+ "readonly": true
426
+ }
427
+ ],
428
+ "attributes": [
429
+ {
430
+ "name": "date",
431
+ "type": {
432
+ "text": "string"
433
+ },
434
+ "fieldName": "date"
384
435
  }
385
436
  ],
386
437
  "superclass": {
387
438
  "name": "LitElement",
388
439
  "package": "lit"
389
440
  },
441
+ "tagName": "use-calendarday",
390
442
  "customElement": true
391
443
  }
392
444
  ],
393
445
  "exports": [
394
446
  {
395
447
  "kind": "js",
396
- "name": "UseCalendarBase",
448
+ "name": "UseCalendarday",
397
449
  "declaration": {
398
- "name": "UseCalendarBase",
399
- "module": "src/elements/use-calendar-base/use-calendar-base.ts"
450
+ "name": "UseCalendarday",
451
+ "module": "src/elements/use-calendarday/use-calendarday.ts"
452
+ }
453
+ },
454
+ {
455
+ "kind": "custom-element-definition",
456
+ "name": "use-calendarday",
457
+ "declaration": {
458
+ "name": "UseCalendarday",
459
+ "module": "src/elements/use-calendarday/use-calendarday.ts"
400
460
  }
401
461
  }
402
462
  ]
@@ -461,15 +521,6 @@
461
521
  },
462
522
  "default": "YYYY-MM-DD",
463
523
  "attribute": "value"
464
- },
465
- {
466
- "kind": "field",
467
- "name": "locale",
468
- "type": {
469
- "text": "string"
470
- },
471
- "default": "User's browser language or 'en-US'",
472
- "attribute": "locale"
473
524
  }
474
525
  ],
475
526
  "attributes": [
@@ -498,17 +549,20 @@
498
549
  "fieldName": "value"
499
550
  },
500
551
  {
501
- "name": "locale",
552
+ "name": "lang",
502
553
  "type": {
503
554
  "text": "string"
504
555
  },
505
- "default": "User's browser language or 'en-US'",
506
- "fieldName": "locale"
556
+ "fieldName": "lang",
557
+ "inheritedFrom": {
558
+ "name": "UseLocaleElement",
559
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
560
+ }
507
561
  }
508
562
  ],
509
563
  "superclass": {
510
- "name": "LitElement",
511
- "package": "lit"
564
+ "name": "UseLocaleElement",
565
+ "module": "/src/elements/use-locale-element/use-locale-element"
512
566
  },
513
567
  "tagName": "use-date-input",
514
568
  "customElement": true
@@ -533,71 +587,6 @@
533
587
  }
534
588
  ]
535
589
  },
536
- {
537
- "kind": "javascript-module",
538
- "path": "src/elements/use-calendarday/use-calendarday.ts",
539
- "declarations": [
540
- {
541
- "kind": "class",
542
- "description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.",
543
- "name": "UseCalendarday",
544
- "slots": [
545
- {
546
- "description": "slot for custom day content (replaces the day number)",
547
- "name": "default"
548
- }
549
- ],
550
- "members": [
551
- {
552
- "kind": "field",
553
- "name": "date",
554
- "type": {
555
- "text": "string"
556
- },
557
- "attribute": "date"
558
- },
559
- {
560
- "kind": "field",
561
- "name": "day",
562
- "readonly": true
563
- }
564
- ],
565
- "attributes": [
566
- {
567
- "name": "date",
568
- "type": {
569
- "text": "string"
570
- },
571
- "fieldName": "date"
572
- }
573
- ],
574
- "superclass": {
575
- "name": "LitElement",
576
- "package": "lit"
577
- },
578
- "tagName": "use-calendarday",
579
- "customElement": true
580
- }
581
- ],
582
- "exports": [
583
- {
584
- "kind": "js",
585
- "name": "UseCalendarday",
586
- "declaration": {
587
- "name": "UseCalendarday",
588
- "module": "src/elements/use-calendarday/use-calendarday.ts"
589
- }
590
- },
591
- {
592
- "kind": "custom-element-definition",
593
- "name": "use-calendarday",
594
- "declaration": {
595
- "name": "UseCalendarday",
596
- "module": "src/elements/use-calendarday/use-calendarday.ts"
597
- }
598
- }
599
- ]
600
- },
601
590
  {
602
591
  "kind": "javascript-module",
603
592
  "path": "src/elements/use-date-picker/use-date-picker.ts",
@@ -642,18 +631,6 @@
642
631
  "module": "src/elements/use-calendar-base/use-calendar-base.ts"
643
632
  }
644
633
  },
645
- {
646
- "kind": "field",
647
- "name": "locale",
648
- "type": {
649
- "text": "string"
650
- },
651
- "attribute": "locale",
652
- "inheritedFrom": {
653
- "name": "UseCalendarBase",
654
- "module": "src/elements/use-calendar-base/use-calendar-base.ts"
655
- }
656
- },
657
634
  {
658
635
  "kind": "field",
659
636
  "name": "controls",
@@ -1117,17 +1094,6 @@
1117
1094
  "module": "src/elements/use-calendar-base/use-calendar-base.ts"
1118
1095
  }
1119
1096
  },
1120
- {
1121
- "name": "locale",
1122
- "type": {
1123
- "text": "string"
1124
- },
1125
- "fieldName": "locale",
1126
- "inheritedFrom": {
1127
- "name": "UseCalendarBase",
1128
- "module": "src/elements/use-calendar-base/use-calendar-base.ts"
1129
- }
1130
- },
1131
1097
  {
1132
1098
  "name": "controls",
1133
1099
  "type": {
@@ -1233,6 +1199,17 @@
1233
1199
  "name": "UseCalendarBase",
1234
1200
  "module": "src/elements/use-calendar-base/use-calendar-base.ts"
1235
1201
  }
1202
+ },
1203
+ {
1204
+ "name": "lang",
1205
+ "type": {
1206
+ "text": "string"
1207
+ },
1208
+ "fieldName": "lang",
1209
+ "inheritedFrom": {
1210
+ "name": "UseLocaleElement",
1211
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
1212
+ }
1236
1213
  }
1237
1214
  ]
1238
1215
  }
@@ -1299,15 +1276,6 @@
1299
1276
  },
1300
1277
  "attribute": "readonly"
1301
1278
  },
1302
- {
1303
- "kind": "field",
1304
- "name": "locale",
1305
- "type": {
1306
- "text": "string"
1307
- },
1308
- "default": "User's browser language or 'en-US'",
1309
- "attribute": "locale"
1310
- },
1311
1279
  {
1312
1280
  "kind": "field",
1313
1281
  "name": "hours",
@@ -1386,14 +1354,6 @@
1386
1354
  },
1387
1355
  "fieldName": "readOnly"
1388
1356
  },
1389
- {
1390
- "name": "locale",
1391
- "type": {
1392
- "text": "string"
1393
- },
1394
- "default": "User's browser language or 'en-US'",
1395
- "fieldName": "locale"
1396
- },
1397
1357
  {
1398
1358
  "name": "hours",
1399
1359
  "type": {
@@ -1448,11 +1408,22 @@
1448
1408
  },
1449
1409
  "default": "''",
1450
1410
  "fieldName": "value"
1411
+ },
1412
+ {
1413
+ "name": "lang",
1414
+ "type": {
1415
+ "text": "string"
1416
+ },
1417
+ "fieldName": "lang",
1418
+ "inheritedFrom": {
1419
+ "name": "UseLocaleElement",
1420
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
1421
+ }
1451
1422
  }
1452
1423
  ],
1453
1424
  "superclass": {
1454
- "name": "LitElement",
1455
- "package": "lit"
1425
+ "name": "UseLocaleElement",
1426
+ "module": "/src/elements/use-locale-element/use-locale-element"
1456
1427
  },
1457
1428
  "tagName": "use-datetime-input",
1458
1429
  "customElement": true
@@ -1734,15 +1705,6 @@
1734
1705
  "default": "PT0S",
1735
1706
  "attribute": "value"
1736
1707
  },
1737
- {
1738
- "kind": "field",
1739
- "name": "locale",
1740
- "type": {
1741
- "text": "string"
1742
- },
1743
- "default": "User's browser language or 'en-US'",
1744
- "attribute": "locale"
1745
- },
1746
1708
  {
1747
1709
  "kind": "field",
1748
1710
  "name": "format",
@@ -1842,14 +1804,6 @@
1842
1804
  "default": "PT0S",
1843
1805
  "fieldName": "value"
1844
1806
  },
1845
- {
1846
- "name": "locale",
1847
- "type": {
1848
- "text": "string"
1849
- },
1850
- "default": "User's browser language or 'en-US'",
1851
- "fieldName": "locale"
1852
- },
1853
1807
  {
1854
1808
  "name": "format",
1855
1809
  "type": {
@@ -1857,11 +1811,22 @@
1857
1811
  },
1858
1812
  "default": "\"short\"",
1859
1813
  "fieldName": "format"
1814
+ },
1815
+ {
1816
+ "name": "lang",
1817
+ "type": {
1818
+ "text": "string"
1819
+ },
1820
+ "fieldName": "lang",
1821
+ "inheritedFrom": {
1822
+ "name": "UseLocaleElement",
1823
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
1824
+ }
1860
1825
  }
1861
1826
  ],
1862
1827
  "superclass": {
1863
- "name": "LitElement",
1864
- "package": "lit"
1828
+ "name": "UseLocaleElement",
1829
+ "module": "/src/elements/use-locale-element/use-locale-element"
1865
1830
  },
1866
1831
  "tagName": "use-duration-input",
1867
1832
  "customElement": true
@@ -2448,6 +2413,105 @@
2448
2413
  }
2449
2414
  ]
2450
2415
  },
2416
+ {
2417
+ "kind": "javascript-module",
2418
+ "path": "src/elements/use-intl-datetime/use-intl-datetime.ts",
2419
+ "declarations": [
2420
+ {
2421
+ "kind": "class",
2422
+ "description": "Displays a localized, human-readable representation of a date, time, or datetime.\nRenders a semantic `<time>` element in its shadow root with a machine-readable\n`datetime` attribute and formatted inner text.\n\nSet `datestyle`, `timestyle`, or both to control what is formatted and how.\nThe presence of each attribute determines the format mode:\n- `datestyle` only → date formatting\n- `timestyle` only → time formatting\n- both → date and time formatting\n\nLocale is resolved from the nearest ancestor `[lang]` attribute, or\n`navigator.language` if none is found. Set `lang` directly on the element to override.",
2423
+ "name": "UseIntlDatetime",
2424
+ "members": [
2425
+ {
2426
+ "kind": "field",
2427
+ "name": "value",
2428
+ "type": {
2429
+ "text": "string | undefined"
2430
+ },
2431
+ "attribute": "value"
2432
+ },
2433
+ {
2434
+ "kind": "field",
2435
+ "name": "datestyle",
2436
+ "type": {
2437
+ "text": "string | undefined"
2438
+ },
2439
+ "attribute": "datestyle"
2440
+ },
2441
+ {
2442
+ "kind": "field",
2443
+ "name": "timestyle",
2444
+ "type": {
2445
+ "text": "string | undefined"
2446
+ },
2447
+ "attribute": "timestyle"
2448
+ }
2449
+ ],
2450
+ "attributes": [
2451
+ {
2452
+ "type": {
2453
+ "text": "string | undefined"
2454
+ },
2455
+ "description": "ISO date/time string or Unix timestamp (ms)",
2456
+ "name": "value",
2457
+ "fieldName": "value"
2458
+ },
2459
+ {
2460
+ "type": {
2461
+ "text": "string | undefined"
2462
+ },
2463
+ "description": "Date format style: `short` | `medium` | `long` | `full`",
2464
+ "name": "datestyle",
2465
+ "fieldName": "datestyle"
2466
+ },
2467
+ {
2468
+ "type": {
2469
+ "text": "string | undefined"
2470
+ },
2471
+ "description": "Time format style: `short` | `medium` | `long` | `full`",
2472
+ "name": "timestyle",
2473
+ "fieldName": "timestyle"
2474
+ },
2475
+ {
2476
+ "name": "lang",
2477
+ "type": {
2478
+ "text": "string"
2479
+ },
2480
+ "fieldName": "lang",
2481
+ "description": "BCP 47 locale tag. Inherits from nearest ancestor `[lang]` if not set.",
2482
+ "inheritedFrom": {
2483
+ "name": "UseLocaleElement",
2484
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
2485
+ }
2486
+ }
2487
+ ],
2488
+ "superclass": {
2489
+ "name": "UseLocaleElement",
2490
+ "module": "/src/elements/use-locale-element/use-locale-element"
2491
+ },
2492
+ "tagName": "use-intl-datetime",
2493
+ "customElement": true
2494
+ }
2495
+ ],
2496
+ "exports": [
2497
+ {
2498
+ "kind": "js",
2499
+ "name": "UseIntlDatetime",
2500
+ "declaration": {
2501
+ "name": "UseIntlDatetime",
2502
+ "module": "src/elements/use-intl-datetime/use-intl-datetime.ts"
2503
+ }
2504
+ },
2505
+ {
2506
+ "kind": "custom-element-definition",
2507
+ "name": "use-intl-datetime",
2508
+ "declaration": {
2509
+ "name": "UseIntlDatetime",
2510
+ "module": "src/elements/use-intl-datetime/use-intl-datetime.ts"
2511
+ }
2512
+ }
2513
+ ]
2514
+ },
2451
2515
  {
2452
2516
  "kind": "javascript-module",
2453
2517
  "path": "src/elements/use-listbox-input/use-listbox-input.ts",
@@ -2604,6 +2668,42 @@
2604
2668
  }
2605
2669
  ]
2606
2670
  },
2671
+ {
2672
+ "kind": "javascript-module",
2673
+ "path": "src/elements/use-locale-element/use-locale-element.ts",
2674
+ "declarations": [
2675
+ {
2676
+ "kind": "class",
2677
+ "description": "",
2678
+ "name": "UseLocaleElement",
2679
+ "members": [],
2680
+ "attributes": [
2681
+ {
2682
+ "name": "lang",
2683
+ "type": {
2684
+ "text": "string"
2685
+ },
2686
+ "fieldName": "lang"
2687
+ }
2688
+ ],
2689
+ "superclass": {
2690
+ "name": "LitElement",
2691
+ "package": "lit"
2692
+ },
2693
+ "customElement": true
2694
+ }
2695
+ ],
2696
+ "exports": [
2697
+ {
2698
+ "kind": "js",
2699
+ "name": "UseLocaleElement",
2700
+ "declaration": {
2701
+ "name": "UseLocaleElement",
2702
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
2703
+ }
2704
+ }
2705
+ ]
2706
+ },
2607
2707
  {
2608
2708
  "kind": "javascript-module",
2609
2709
  "path": "src/elements/use-menu/use-menu.ts",
@@ -2756,15 +2856,6 @@
2756
2856
  "attribute": "year",
2757
2857
  "reflects": true
2758
2858
  },
2759
- {
2760
- "kind": "field",
2761
- "name": "locale",
2762
- "type": {
2763
- "text": "string"
2764
- },
2765
- "description": "BCP 47 locale tag used for month name localisation. Defaults to `navigator.language`.",
2766
- "attribute": "locale"
2767
- },
2768
2859
  {
2769
2860
  "kind": "field",
2770
2861
  "name": "min",
@@ -2859,14 +2950,6 @@
2859
2950
  "description": "Year currently shown in the grid. Defaults to the current year, or the year of the initial value attribute.",
2860
2951
  "fieldName": "year"
2861
2952
  },
2862
- {
2863
- "name": "locale",
2864
- "type": {
2865
- "text": "string"
2866
- },
2867
- "description": "BCP 47 locale tag used for month name localisation. Defaults to `navigator.language`.",
2868
- "fieldName": "locale"
2869
- },
2870
2953
  {
2871
2954
  "name": "min",
2872
2955
  "type": {
@@ -2909,11 +2992,22 @@
2909
2992
  },
2910
2993
  "description": "Selected ISO 8601 year-month (`YYYY-MM`). Empty string means no selection.",
2911
2994
  "fieldName": "value"
2995
+ },
2996
+ {
2997
+ "name": "lang",
2998
+ "type": {
2999
+ "text": "string"
3000
+ },
3001
+ "fieldName": "lang",
3002
+ "inheritedFrom": {
3003
+ "name": "UseLocaleElement",
3004
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
3005
+ }
2912
3006
  }
2913
3007
  ],
2914
3008
  "superclass": {
2915
- "name": "LitElement",
2916
- "package": "lit"
3009
+ "name": "UseLocaleElement",
3010
+ "module": "/src/elements/use-locale-element/use-locale-element"
2917
3011
  },
2918
3012
  "tagName": "use-month-picker",
2919
3013
  "customElement": true
@@ -3348,15 +3442,6 @@
3348
3442
  "default": "00:00:00",
3349
3443
  "attribute": "value"
3350
3444
  },
3351
- {
3352
- "kind": "field",
3353
- "name": "locale",
3354
- "type": {
3355
- "text": "string"
3356
- },
3357
- "default": "User's browser language or 'en-US'",
3358
- "attribute": "locale"
3359
- },
3360
3445
  {
3361
3446
  "kind": "field",
3362
3447
  "name": "format",
@@ -3447,14 +3532,6 @@
3447
3532
  "default": "00:00:00",
3448
3533
  "fieldName": "value"
3449
3534
  },
3450
- {
3451
- "name": "locale",
3452
- "type": {
3453
- "text": "string"
3454
- },
3455
- "default": "User's browser language or 'en-US'",
3456
- "fieldName": "locale"
3457
- },
3458
3535
  {
3459
3536
  "name": "format",
3460
3537
  "type": {
@@ -3462,11 +3539,22 @@
3462
3539
  },
3463
3540
  "default": "\"long\"",
3464
3541
  "fieldName": "format"
3542
+ },
3543
+ {
3544
+ "name": "lang",
3545
+ "type": {
3546
+ "text": "string"
3547
+ },
3548
+ "fieldName": "lang",
3549
+ "inheritedFrom": {
3550
+ "name": "UseLocaleElement",
3551
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
3552
+ }
3465
3553
  }
3466
3554
  ],
3467
3555
  "superclass": {
3468
- "name": "LitElement",
3469
- "package": "lit"
3556
+ "name": "UseLocaleElement",
3557
+ "module": "/src/elements/use-locale-element/use-locale-element"
3470
3558
  },
3471
3559
  "tagName": "use-time-input",
3472
3560
  "customElement": true
@@ -3770,18 +3858,6 @@
3770
3858
  "module": "src/elements/use-calendar-base/use-calendar-base.ts"
3771
3859
  }
3772
3860
  },
3773
- {
3774
- "kind": "field",
3775
- "name": "locale",
3776
- "type": {
3777
- "text": "string"
3778
- },
3779
- "attribute": "locale",
3780
- "inheritedFrom": {
3781
- "name": "UseCalendarBase",
3782
- "module": "src/elements/use-calendar-base/use-calendar-base.ts"
3783
- }
3784
- },
3785
3861
  {
3786
3862
  "kind": "field",
3787
3863
  "name": "controls",
@@ -4245,17 +4321,6 @@
4245
4321
  "module": "src/elements/use-calendar-base/use-calendar-base.ts"
4246
4322
  }
4247
4323
  },
4248
- {
4249
- "name": "locale",
4250
- "type": {
4251
- "text": "string"
4252
- },
4253
- "fieldName": "locale",
4254
- "inheritedFrom": {
4255
- "name": "UseCalendarBase",
4256
- "module": "src/elements/use-calendar-base/use-calendar-base.ts"
4257
- }
4258
- },
4259
4324
  {
4260
4325
  "name": "controls",
4261
4326
  "type": {
@@ -4361,6 +4426,17 @@
4361
4426
  "name": "UseCalendarBase",
4362
4427
  "module": "src/elements/use-calendar-base/use-calendar-base.ts"
4363
4428
  }
4429
+ },
4430
+ {
4431
+ "name": "lang",
4432
+ "type": {
4433
+ "text": "string"
4434
+ },
4435
+ "fieldName": "lang",
4436
+ "inheritedFrom": {
4437
+ "name": "UseLocaleElement",
4438
+ "module": "src/elements/use-locale-element/use-locale-element.ts"
4439
+ }
4364
4440
  }
4365
4441
  ]
4366
4442
  }