use-wc 1.0.0-pre.33 → 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.
- package/custom-elements.json +164 -65
- package/dist/use-wc.d.mts +35 -1
- package/dist/use-wc.mjs +91 -1
- package/package.json +1 -1
- package/vscode.html-custom-data.json +33 -6
package/custom-elements.json
CHANGED
|
@@ -396,6 +396,71 @@
|
|
|
396
396
|
}
|
|
397
397
|
]
|
|
398
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"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"superclass": {
|
|
438
|
+
"name": "LitElement",
|
|
439
|
+
"package": "lit"
|
|
440
|
+
},
|
|
441
|
+
"tagName": "use-calendarday",
|
|
442
|
+
"customElement": true
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"exports": [
|
|
446
|
+
{
|
|
447
|
+
"kind": "js",
|
|
448
|
+
"name": "UseCalendarday",
|
|
449
|
+
"declaration": {
|
|
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"
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
399
464
|
{
|
|
400
465
|
"kind": "javascript-module",
|
|
401
466
|
"path": "src/elements/use-date-input/use-date-input.ts",
|
|
@@ -522,71 +587,6 @@
|
|
|
522
587
|
}
|
|
523
588
|
]
|
|
524
589
|
},
|
|
525
|
-
{
|
|
526
|
-
"kind": "javascript-module",
|
|
527
|
-
"path": "src/elements/use-calendarday/use-calendarday.ts",
|
|
528
|
-
"declarations": [
|
|
529
|
-
{
|
|
530
|
-
"kind": "class",
|
|
531
|
-
"description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.",
|
|
532
|
-
"name": "UseCalendarday",
|
|
533
|
-
"slots": [
|
|
534
|
-
{
|
|
535
|
-
"description": "slot for custom day content (replaces the day number)",
|
|
536
|
-
"name": "default"
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
"members": [
|
|
540
|
-
{
|
|
541
|
-
"kind": "field",
|
|
542
|
-
"name": "date",
|
|
543
|
-
"type": {
|
|
544
|
-
"text": "string"
|
|
545
|
-
},
|
|
546
|
-
"attribute": "date"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"kind": "field",
|
|
550
|
-
"name": "day",
|
|
551
|
-
"readonly": true
|
|
552
|
-
}
|
|
553
|
-
],
|
|
554
|
-
"attributes": [
|
|
555
|
-
{
|
|
556
|
-
"name": "date",
|
|
557
|
-
"type": {
|
|
558
|
-
"text": "string"
|
|
559
|
-
},
|
|
560
|
-
"fieldName": "date"
|
|
561
|
-
}
|
|
562
|
-
],
|
|
563
|
-
"superclass": {
|
|
564
|
-
"name": "LitElement",
|
|
565
|
-
"package": "lit"
|
|
566
|
-
},
|
|
567
|
-
"tagName": "use-calendarday",
|
|
568
|
-
"customElement": true
|
|
569
|
-
}
|
|
570
|
-
],
|
|
571
|
-
"exports": [
|
|
572
|
-
{
|
|
573
|
-
"kind": "js",
|
|
574
|
-
"name": "UseCalendarday",
|
|
575
|
-
"declaration": {
|
|
576
|
-
"name": "UseCalendarday",
|
|
577
|
-
"module": "src/elements/use-calendarday/use-calendarday.ts"
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"kind": "custom-element-definition",
|
|
582
|
-
"name": "use-calendarday",
|
|
583
|
-
"declaration": {
|
|
584
|
-
"name": "UseCalendarday",
|
|
585
|
-
"module": "src/elements/use-calendarday/use-calendarday.ts"
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
]
|
|
589
|
-
},
|
|
590
590
|
{
|
|
591
591
|
"kind": "javascript-module",
|
|
592
592
|
"path": "src/elements/use-date-picker/use-date-picker.ts",
|
|
@@ -2413,6 +2413,105 @@
|
|
|
2413
2413
|
}
|
|
2414
2414
|
]
|
|
2415
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
|
+
},
|
|
2416
2515
|
{
|
|
2417
2516
|
"kind": "javascript-module",
|
|
2418
2517
|
"path": "src/elements/use-listbox-input/use-listbox-input.ts",
|
package/dist/use-wc.d.mts
CHANGED
|
@@ -984,4 +984,38 @@ declare global {
|
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
986
|
//#endregion
|
|
987
|
-
|
|
987
|
+
//#region src/elements/use-intl-datetime/use-intl-datetime.d.ts
|
|
988
|
+
/**
|
|
989
|
+
* Displays a localized, human-readable representation of a date, time, or datetime.
|
|
990
|
+
* Renders a semantic `<time>` element in its shadow root with a machine-readable
|
|
991
|
+
* `datetime` attribute and formatted inner text.
|
|
992
|
+
*
|
|
993
|
+
* Set `datestyle`, `timestyle`, or both to control what is formatted and how.
|
|
994
|
+
* The presence of each attribute determines the format mode:
|
|
995
|
+
* - `datestyle` only → date formatting
|
|
996
|
+
* - `timestyle` only → time formatting
|
|
997
|
+
* - both → date and time formatting
|
|
998
|
+
*
|
|
999
|
+
* Locale is resolved from the nearest ancestor `[lang]` attribute, or
|
|
1000
|
+
* `navigator.language` if none is found. Set `lang` directly on the element to override.
|
|
1001
|
+
*
|
|
1002
|
+
* @attr {string} value - ISO date/time string or Unix timestamp (ms)
|
|
1003
|
+
* @attr {string} datestyle - Date format style: `short` | `medium` | `long` | `full`
|
|
1004
|
+
* @attr {string} timestyle - Time format style: `short` | `medium` | `long` | `full`
|
|
1005
|
+
* @attr {string} lang - BCP 47 locale tag. Inherits from nearest ancestor `[lang]` if not set.
|
|
1006
|
+
*/
|
|
1007
|
+
declare class UseIntlDatetime extends UseLocaleElement {
|
|
1008
|
+
#private;
|
|
1009
|
+
static styles: lit.CSSResult;
|
|
1010
|
+
value?: string;
|
|
1011
|
+
datestyle?: string;
|
|
1012
|
+
timestyle?: string;
|
|
1013
|
+
render(): TemplateResult$1<1>;
|
|
1014
|
+
}
|
|
1015
|
+
declare global {
|
|
1016
|
+
interface HTMLElementTagNameMap {
|
|
1017
|
+
"use-intl-datetime": UseIntlDatetime;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
//#endregion
|
|
1021
|
+
export { UseCalendarBase, UseCalendarRenderDay, UseDateInput, UseDatePicker, UseDatetimeInput, UseDropdown, UseDurationInput, UseFocusgroup, UseIntlDatetime, UseListboxInput, UseMenu, UseMonthPicker, UseMonthPickerRenderMonth, UseOption, UseScrollarea, UseSelectInput, UseTimeInput, UseTree, UseTreeitem, UseWeekPicker, UseWidget };
|
package/dist/use-wc.mjs
CHANGED
|
@@ -4171,4 +4171,94 @@ let UseScrollarea = class UseScrollarea extends LitElement {
|
|
|
4171
4171
|
};
|
|
4172
4172
|
UseScrollarea = __decorate([customElement("use-scrollarea")], UseScrollarea);
|
|
4173
4173
|
//#endregion
|
|
4174
|
-
|
|
4174
|
+
//#region src/elements/use-intl-datetime/use-intl-datetime.ts
|
|
4175
|
+
const DATE_TIME_STYLES = [
|
|
4176
|
+
"short",
|
|
4177
|
+
"medium",
|
|
4178
|
+
"long",
|
|
4179
|
+
"full"
|
|
4180
|
+
];
|
|
4181
|
+
const TIME_PATTERN = /^(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?$/;
|
|
4182
|
+
let UseIntlDatetime = class UseIntlDatetime extends UseLocaleElement {
|
|
4183
|
+
static {
|
|
4184
|
+
this.styles = css`
|
|
4185
|
+
:host {
|
|
4186
|
+
display: contents;
|
|
4187
|
+
}
|
|
4188
|
+
`;
|
|
4189
|
+
}
|
|
4190
|
+
#parseDate(value) {
|
|
4191
|
+
if (!value) return null;
|
|
4192
|
+
const asNumber = Number(value);
|
|
4193
|
+
if (!isNaN(asNumber) && value.trim() !== "") return new Date(asNumber);
|
|
4194
|
+
const parsedDate = new Date(value);
|
|
4195
|
+
return isNaN(parsedDate.getTime()) ? null : parsedDate;
|
|
4196
|
+
}
|
|
4197
|
+
#resolveDateStyle() {
|
|
4198
|
+
return DATE_TIME_STYLES.includes(this.datestyle) ? this.datestyle : "medium";
|
|
4199
|
+
}
|
|
4200
|
+
#resolveTimeStyle() {
|
|
4201
|
+
return DATE_TIME_STYLES.includes(this.timestyle) ? this.timestyle : "medium";
|
|
4202
|
+
}
|
|
4203
|
+
#computeFormatted() {
|
|
4204
|
+
const value = this.value ?? "";
|
|
4205
|
+
const locale = this.lang;
|
|
4206
|
+
const hasDateStyle = this.datestyle !== void 0;
|
|
4207
|
+
const hasTimeStyle = this.timestyle !== void 0;
|
|
4208
|
+
if (!value || !hasDateStyle && !hasTimeStyle) return null;
|
|
4209
|
+
try {
|
|
4210
|
+
if (hasDateStyle && !hasTimeStyle) {
|
|
4211
|
+
const parsedDate = this.#parseDate(value);
|
|
4212
|
+
if (!parsedDate) return null;
|
|
4213
|
+
return {
|
|
4214
|
+
datetimeAttr: parsedDate.toISOString().split("T")[0],
|
|
4215
|
+
text: new Intl.DateTimeFormat(locale, { dateStyle: this.#resolveDateStyle() }).format(parsedDate)
|
|
4216
|
+
};
|
|
4217
|
+
}
|
|
4218
|
+
if (hasTimeStyle && !hasDateStyle) {
|
|
4219
|
+
const timeMatch = TIME_PATTERN.exec(value);
|
|
4220
|
+
let parsedDate;
|
|
4221
|
+
let datetimeAttr;
|
|
4222
|
+
if (timeMatch) {
|
|
4223
|
+
const hours = timeMatch[1];
|
|
4224
|
+
const minutes = timeMatch[2];
|
|
4225
|
+
const seconds = timeMatch[3] ?? "00";
|
|
4226
|
+
parsedDate = /* @__PURE__ */ new Date();
|
|
4227
|
+
parsedDate.setHours(parseInt(hours, 10), parseInt(minutes, 10), parseInt(seconds, 10), 0);
|
|
4228
|
+
datetimeAttr = `${hours}:${minutes}:${seconds}`;
|
|
4229
|
+
} else {
|
|
4230
|
+
const fromTimestamp = this.#parseDate(value);
|
|
4231
|
+
if (!fromTimestamp) return null;
|
|
4232
|
+
parsedDate = fromTimestamp;
|
|
4233
|
+
datetimeAttr = `${String(parsedDate.getHours()).padStart(2, "0")}:${String(parsedDate.getMinutes()).padStart(2, "0")}:${String(parsedDate.getSeconds()).padStart(2, "0")}`;
|
|
4234
|
+
}
|
|
4235
|
+
return {
|
|
4236
|
+
datetimeAttr,
|
|
4237
|
+
text: new Intl.DateTimeFormat(locale, { timeStyle: this.#resolveTimeStyle() }).format(parsedDate)
|
|
4238
|
+
};
|
|
4239
|
+
}
|
|
4240
|
+
const parsedDate = this.#parseDate(value);
|
|
4241
|
+
if (!parsedDate) return null;
|
|
4242
|
+
return {
|
|
4243
|
+
datetimeAttr: parsedDate.toISOString(),
|
|
4244
|
+
text: new Intl.DateTimeFormat(locale, {
|
|
4245
|
+
dateStyle: this.#resolveDateStyle(),
|
|
4246
|
+
timeStyle: this.#resolveTimeStyle()
|
|
4247
|
+
}).format(parsedDate)
|
|
4248
|
+
};
|
|
4249
|
+
} catch {
|
|
4250
|
+
return null;
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
4253
|
+
render() {
|
|
4254
|
+
const result = this.#computeFormatted();
|
|
4255
|
+
if (!result) return html`<time></time>`;
|
|
4256
|
+
return html`<time datetime=${result.datetimeAttr}>${result.text}</time>`;
|
|
4257
|
+
}
|
|
4258
|
+
};
|
|
4259
|
+
__decorate([property({ type: String })], UseIntlDatetime.prototype, "value", void 0);
|
|
4260
|
+
__decorate([property({ type: String })], UseIntlDatetime.prototype, "datestyle", void 0);
|
|
4261
|
+
__decorate([property({ type: String })], UseIntlDatetime.prototype, "timestyle", void 0);
|
|
4262
|
+
UseIntlDatetime = __decorate([customElement("use-intl-datetime")], UseIntlDatetime);
|
|
4263
|
+
//#endregion
|
|
4264
|
+
export { UseCalendarBase, UseDateInput, UseDatePicker, UseDatetimeInput, UseDropdown, UseDurationInput, UseFocusgroup, UseIntlDatetime, UseListboxInput, UseMenu, UseMonthPicker, UseOption, UseScrollarea, UseSelectInput, UseTimeInput, UseTree, UseTreeitem, UseWeekPicker, UseWidget };
|
package/package.json
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "use-calendarday",
|
|
7
|
+
"description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.\n---\n\n\n### **Slots:**\n - **default** - slot for custom day content (replaces the day number)",
|
|
8
|
+
"attributes": [{ "name": "date", "values": [] }],
|
|
9
|
+
"references": []
|
|
10
|
+
},
|
|
5
11
|
{
|
|
6
12
|
"name": "use-date-input",
|
|
7
13
|
"description": "Displays a date picker using segmented inputs for year, month, and day.\n\nUses browser locale for formatting and ARIA labels.\n---\n",
|
|
@@ -13,12 +19,6 @@
|
|
|
13
19
|
],
|
|
14
20
|
"references": []
|
|
15
21
|
},
|
|
16
|
-
{
|
|
17
|
-
"name": "use-calendarday",
|
|
18
|
-
"description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.\n---\n\n\n### **Slots:**\n - **default** - slot for custom day content (replaces the day number)",
|
|
19
|
-
"attributes": [{ "name": "date", "values": [] }],
|
|
20
|
-
"references": []
|
|
21
|
-
},
|
|
22
22
|
{
|
|
23
23
|
"name": "use-date-picker",
|
|
24
24
|
"description": "A day-granularity date picker. Value format: YYYY-MM-DD.\n---\n\n\n### **Events:**\n - **use-change** - Fired on selection with detail `{ value: string }`\n\n### **Slots:**\n - **header-start** - Content before the title in the header\n- **title** - Title showing the month and year\n- **controls** - Navigation controls (previous, today, next buttons)\n- **header-end** - Content after the controls in the header\n- **date-{YYYY-MM-DD}** - Per-date content that replaces the default day number\n\n### **CSS Parts:**\n - **header** - The header container\n- **title** - The title text\n- **title-month** - The month part of the title\n- **title-literal** - Literal text in the title\n- **title-year** - The year part of the title\n- **controls** - The controls slot container\n- **control** - Individual control button\n- **control-previous** - Previous month button\n- **control-today** - Today button\n- **control-next** - Next month button\n- **grid** - The main calendar grid\n- **grid-header** - The header row with day names\n- **grid-header-cell** - Individual day name header cell\n- **grid-body** - The container for calendar weeks\n- **row** - A row of days\n- **day** - A day cell\n- **day-empty** - An empty day cell (from previous/next month)\n- **day-selected** - A selected day cell\n- **day-today** - The current date cell\n- **day-disabled** - A disabled date cell\n- **title-button** - The clickable button wrapping the month/year title\n- **picker** - The scrollable month/year picker panel (replaces grid when open)\n- **picker-year-section** - Container for one year's label and month grid\n- **picker-year-label** - The year heading inside a year section\n- **picker-months** - The 4-column month grid inside a year section\n- **picker-month** - An individual month button\n- **picker-month-current** - Applied to the currently selected month button",
|
|
@@ -178,6 +178,33 @@
|
|
|
178
178
|
],
|
|
179
179
|
"references": []
|
|
180
180
|
},
|
|
181
|
+
{
|
|
182
|
+
"name": "use-intl-datetime",
|
|
183
|
+
"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.\n---\n",
|
|
184
|
+
"attributes": [
|
|
185
|
+
{
|
|
186
|
+
"name": "value",
|
|
187
|
+
"description": "ISO date/time string or Unix timestamp (ms)",
|
|
188
|
+
"values": []
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "datestyle",
|
|
192
|
+
"description": "Date format style: `short` | `medium` | `long` | `full`",
|
|
193
|
+
"values": []
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "timestyle",
|
|
197
|
+
"description": "Time format style: `short` | `medium` | `long` | `full`",
|
|
198
|
+
"values": []
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "lang",
|
|
202
|
+
"description": "BCP 47 locale tag. Inherits from nearest ancestor `[lang]` if not set.",
|
|
203
|
+
"values": []
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"references": []
|
|
207
|
+
},
|
|
181
208
|
{
|
|
182
209
|
"name": "use-listbox-input",
|
|
183
210
|
"description": "\n---\n\n\n### **Events:**\n - **use-change**\n\n### **Slots:**\n - **default** - NodeList of `use-option` elements\n- **arrow** - undefined",
|