@vonage/vivid 5.31.0 → 5.32.0
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/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +25 -26
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +5 -5
- package/bundled/char-count.cjs +2 -2
- package/bundled/char-count.js +2 -3
- package/bundled/definition4.cjs +17 -10
- package/bundled/definition4.js +17 -10
- package/bundled/form-element.cjs +1 -1
- package/bundled/form-element.js +3 -4
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +11 -10
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +12 -17
- package/bundled/time-selection-picker.template.cjs +1 -1
- package/bundled/time-selection-picker.template.js +7 -9
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +10 -8
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-error-text.js +7 -9
- package/custom-elements.json +4955 -6650
- package/lib/accordion-item/accordion-item.d.ts +13 -7
- package/lib/action-group/action-group.d.ts +13 -7
- package/lib/alert/alert.d.ts +26 -14
- package/lib/audio-player/audio-player.d.ts +13 -7
- package/lib/avatar/avatar.d.ts +13 -7
- package/lib/badge/badge.d.ts +13 -7
- package/lib/banner/banner.d.ts +39 -21
- package/lib/breadcrumb/breadcrumb.d.ts +13 -7
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +13 -7
- package/lib/button/button.d.ts +39 -21
- package/lib/calendar-event/calendar-event.d.ts +13 -7
- package/lib/card/card.d.ts +13 -7
- package/lib/checkbox/checkbox.d.ts +84 -48
- package/lib/color-picker/color-picker.d.ts +98 -56
- package/lib/combobox/combobox.d.ts +98 -56
- package/lib/country-group/country-group.d.ts +26 -14
- package/lib/data-grid/data-grid-cell.d.ts +26 -14
- package/lib/data-grid/data-grid-row.d.ts +13 -7
- package/lib/date-picker/date-picker.d.ts +162 -114
- package/lib/date-range-picker/date-range-picker.d.ts +82 -58
- package/lib/date-time-picker/date-time-picker.d.ts +164 -116
- package/lib/dial-pad/dial-pad.d.ts +13 -7
- package/lib/dialog/dialog.d.ts +26 -14
- package/lib/divider/divider.d.ts +13 -7
- package/lib/fab/fab.d.ts +13 -7
- package/lib/file-picker/file-picker.d.ts +98 -56
- package/lib/header/header.d.ts +13 -7
- package/lib/listbox/listbox.d.ts +41 -23
- package/lib/menu/menu.d.ts +30 -18
- package/lib/menu-item/menu-item.d.ts +39 -21
- package/lib/nav/nav.d.ts +13 -7
- package/lib/nav-disclosure/nav-disclosure.d.ts +26 -14
- package/lib/nav-item/nav-item.d.ts +28 -16
- package/lib/note/note.d.ts +13 -7
- package/lib/number-field/number-field.d.ts +124 -70
- package/lib/optgroup/optgroup.d.ts +13 -7
- package/lib/option/option.d.ts +26 -14
- package/lib/pagination/pagination.d.ts +13 -7
- package/lib/popover/popover.d.ts +26 -14
- package/lib/progress/progress.d.ts +13 -7
- package/lib/progress-ring/progress-ring.d.ts +13 -7
- package/lib/radio/radio.d.ts +45 -27
- package/lib/radio-group/radio-group.d.ts +13 -7
- package/lib/range-slider/range-slider.d.ts +40 -22
- package/lib/rich-text-editor/rich-text-editor.d.ts +30 -18
- package/lib/searchable-select/option-tag.d.ts +13 -7
- package/lib/searchable-select/searchable-select.d.ts +124 -70
- package/lib/select/select.d.ts +124 -70
- package/lib/selectable-box/selectable-box.d.ts +13 -7
- package/lib/simple-color-picker/simple-color-picker.d.ts +31 -19
- package/lib/slider/slider.d.ts +39 -21
- package/lib/split-button/split-button.d.ts +39 -21
- package/lib/status/status.d.ts +13 -7
- package/lib/switch/switch.d.ts +26 -14
- package/lib/tab/tab.d.ts +39 -21
- package/lib/tab-panel/tab-panel.d.ts +13 -7
- package/lib/table/table-cell.d.ts +13 -7
- package/lib/table/table-header-cell.d.ts +13 -7
- package/lib/table/table-row.d.ts +13 -7
- package/lib/table/table-sorting-button.d.ts +26 -14
- package/lib/tag/tag.d.ts +39 -21
- package/lib/tag-group/tag-group.d.ts +13 -7
- package/lib/text-area/text-area.d.ts +112 -64
- package/lib/text-field/text-field.d.ts +125 -71
- package/lib/time-picker/time-picker.d.ts +82 -58
- package/lib/toggletip/toggletip.d.ts +30 -18
- package/lib/tooltip/tooltip.d.ts +30 -18
- package/lib/tree-item/tree-item.d.ts +26 -14
- package/lib/tree-view/tree-view.d.ts +13 -7
- package/lib/video-player/video-player.d.ts +13 -7
- package/listbox/index.cjs +1 -1
- package/listbox/index.js +3 -4
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +5 -1
- package/package.json +7 -7
- package/shared/aria/aria-mixin.d.ts +11 -5
- package/shared/aria/delegates-aria.d.ts +13 -7
- package/shared/aria/host-semantics.d.ts +13 -7
- package/shared/color-picker/base-color-picker.d.ts +14 -8
- package/shared/deprecation/replaced-props.d.ts +12 -6
- package/shared/feedback/feedback-message.d.ts +13 -7
- package/shared/feedback/mixins.d.ts +26 -14
- package/shared/foundation/button/button.d.ts +26 -14
- package/shared/foundation/form-associated/form-associated.d.ts +26 -14
- package/shared/foundation/vivid-element/vivid-element.d.ts +35 -17
- package/shared/framework/reactive-controller.d.ts +12 -6
- package/shared/listbox/with-options-filter.d.ts +14 -8
- package/shared/listbox/with-options.d.ts +28 -16
- package/shared/patterns/affix.d.ts +26 -14
- package/shared/patterns/anchored.d.ts +34 -22
- package/shared/patterns/char-count/char-count.d.ts +14 -8
- package/shared/patterns/form-elements/form-element.d.ts +14 -8
- package/shared/patterns/form-elements/with-contextual-help.d.ts +14 -8
- package/shared/patterns/form-elements/with-error-text.d.ts +18 -12
- package/shared/patterns/form-elements/with-success-text.d.ts +13 -7
- package/shared/patterns/kbd-shortcut.d.ts +13 -7
- package/shared/patterns/linkable.d.ts +13 -7
- package/shared/patterns/localized.d.ts +30 -18
- package/shared/patterns/trapped-focus.d.ts +13 -7
- package/shared/picker-field/mixins/calendar-picker.d.ts +41 -29
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +41 -29
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +13 -7
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +41 -29
- package/shared/picker-field/mixins/single-date-picker.d.ts +41 -29
- package/shared/picker-field/mixins/single-value-picker.d.ts +39 -27
- package/shared/picker-field/mixins/time-selection-picker.d.ts +43 -31
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +82 -58
- package/shared/picker-field/picker-field.d.ts +98 -57
- package/unbundled/anchored.cjs +39 -37
- package/unbundled/anchored.js +39 -37
- package/unbundled/calendar-picker.template.cjs +7 -5
- package/unbundled/calendar-picker.template.js +7 -5
- package/unbundled/char-count.cjs +3 -9
- package/unbundled/char-count.js +3 -9
- package/unbundled/definition5.cjs +17 -10
- package/unbundled/definition5.js +17 -10
- package/unbundled/definition50.cjs +3 -4
- package/unbundled/definition50.js +3 -4
- package/unbundled/definition52.cjs +6 -2
- package/unbundled/definition52.js +6 -2
- package/unbundled/form-element.cjs +3 -4
- package/unbundled/form-element.js +3 -4
- package/unbundled/localized.cjs +15 -11
- package/unbundled/localized.js +15 -11
- package/unbundled/picker-field.template.cjs +22 -24
- package/unbundled/picker-field.template.js +22 -24
- package/unbundled/time-selection-picker.template.cjs +10 -10
- package/unbundled/time-selection-picker.template.js +10 -10
- package/unbundled/vivid-element.cjs +12 -8
- package/unbundled/vivid-element.js +12 -8
- package/unbundled/with-error-text.cjs +11 -10
- package/unbundled/with-error-text.js +11 -10
- package/shared/foundation/vivid-element/vivid-element.browser-spec.d.ts +0 -1
package/lib/tooltip/tooltip.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare const Tooltip_base: {
|
|
|
18
18
|
autocorrect: boolean;
|
|
19
19
|
dir: string;
|
|
20
20
|
draggable: boolean;
|
|
21
|
-
hidden: boolean;
|
|
21
|
+
hidden: boolean | "until-found";
|
|
22
22
|
inert: boolean;
|
|
23
23
|
innerText: string;
|
|
24
24
|
lang: string;
|
|
@@ -36,8 +36,8 @@ declare const Tooltip_base: {
|
|
|
36
36
|
attachInternals(): ElementInternals;
|
|
37
37
|
click(): void;
|
|
38
38
|
hidePopover(): void;
|
|
39
|
-
showPopover(): void;
|
|
40
|
-
togglePopover(options?: boolean): boolean;
|
|
39
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
40
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
41
41
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
42
42
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
43
43
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -51,6 +51,7 @@ declare const Tooltip_base: {
|
|
|
51
51
|
readonly clientTop: number;
|
|
52
52
|
readonly clientWidth: number;
|
|
53
53
|
readonly currentCSSZoom: number;
|
|
54
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
54
55
|
id: string;
|
|
55
56
|
innerHTML: string;
|
|
56
57
|
readonly localName: string;
|
|
@@ -101,6 +102,9 @@ declare const Tooltip_base: {
|
|
|
101
102
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
102
103
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
103
104
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
105
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
106
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
107
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
104
108
|
matches(selectors: string): boolean;
|
|
105
109
|
releasePointerCapture(pointerId: number): void;
|
|
106
110
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -236,6 +240,7 @@ declare const Tooltip_base: {
|
|
|
236
240
|
readonly firstElementChild: Element | null;
|
|
237
241
|
readonly lastElementChild: Element | null;
|
|
238
242
|
append(...nodes: (Node | string)[]): void;
|
|
243
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
239
244
|
prepend(...nodes: (Node | string)[]): void;
|
|
240
245
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
241
246
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -272,6 +277,7 @@ declare const Tooltip_base: {
|
|
|
272
277
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
278
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
274
279
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
280
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
275
281
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
282
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
277
283
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -293,7 +299,7 @@ declare const Tooltip_base: {
|
|
|
293
299
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
294
300
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
295
301
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
296
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
302
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
297
303
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
298
304
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
299
305
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -358,7 +364,7 @@ declare const Tooltip_base: {
|
|
|
358
364
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
359
365
|
autofocus: boolean;
|
|
360
366
|
readonly dataset: DOMStringMap;
|
|
361
|
-
nonce
|
|
367
|
+
nonce: string;
|
|
362
368
|
tabIndex: number;
|
|
363
369
|
blur(): void;
|
|
364
370
|
ariaControls: string | null;
|
|
@@ -417,13 +423,13 @@ declare const Tooltip_base: {
|
|
|
417
423
|
ariaFlowToChanged(prev: string | null, next: string | null): void;
|
|
418
424
|
ariaLabelledByChanged(prev: string | null, next: string | null): void;
|
|
419
425
|
ariaOwnsChanged(prev: string | null, next: string | null): void;
|
|
420
|
-
|
|
426
|
+
_handleReplacedProp(replacedProp: {
|
|
421
427
|
newPropertyName: string;
|
|
422
428
|
deprecatedPropertyName: string;
|
|
423
429
|
fromDeprecated: (v: any) => any;
|
|
424
430
|
toDeprecated?: ((v: any) => any) | undefined;
|
|
425
431
|
}): void;
|
|
426
|
-
|
|
432
|
+
_controllers: Set<import('../../shared/framework/reactive-controller').ReactiveController>;
|
|
427
433
|
_addController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
428
434
|
_removeController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
429
435
|
};
|
|
@@ -434,10 +440,10 @@ declare const Tooltip_base: {
|
|
|
434
440
|
_slottedAnchor?: HTMLElement[];
|
|
435
441
|
_slottedAnchorChanged(): void;
|
|
436
442
|
_anchorEl?: HTMLElement | undefined;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
443
|
+
_updateAnchorEl: () => void;
|
|
444
|
+
_observer?: MutationObserver;
|
|
445
|
+
_observeMissingAnchor: (anchorId: string) => void;
|
|
446
|
+
_cleanupObserverIfNeeded: () => void;
|
|
441
447
|
connectedCallback(): void;
|
|
442
448
|
disconnectedCallback(): void;
|
|
443
449
|
focus(...args: any[]): void;
|
|
@@ -451,7 +457,7 @@ declare const Tooltip_base: {
|
|
|
451
457
|
autocorrect: boolean;
|
|
452
458
|
dir: string;
|
|
453
459
|
draggable: boolean;
|
|
454
|
-
hidden: boolean;
|
|
460
|
+
hidden: boolean | "until-found";
|
|
455
461
|
inert: boolean;
|
|
456
462
|
innerText: string;
|
|
457
463
|
lang: string;
|
|
@@ -469,8 +475,8 @@ declare const Tooltip_base: {
|
|
|
469
475
|
attachInternals(): ElementInternals;
|
|
470
476
|
click(): void;
|
|
471
477
|
hidePopover(): void;
|
|
472
|
-
showPopover(): void;
|
|
473
|
-
togglePopover(options?: boolean): boolean;
|
|
478
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
479
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
474
480
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
475
481
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
476
482
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -484,6 +490,7 @@ declare const Tooltip_base: {
|
|
|
484
490
|
readonly clientTop: number;
|
|
485
491
|
readonly clientWidth: number;
|
|
486
492
|
readonly currentCSSZoom: number;
|
|
493
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
487
494
|
id: string;
|
|
488
495
|
innerHTML: string;
|
|
489
496
|
readonly localName: string;
|
|
@@ -534,6 +541,9 @@ declare const Tooltip_base: {
|
|
|
534
541
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
535
542
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
536
543
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
544
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
545
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
546
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
537
547
|
matches(selectors: string): boolean;
|
|
538
548
|
releasePointerCapture(pointerId: number): void;
|
|
539
549
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -669,6 +679,7 @@ declare const Tooltip_base: {
|
|
|
669
679
|
readonly firstElementChild: Element | null;
|
|
670
680
|
readonly lastElementChild: Element | null;
|
|
671
681
|
append(...nodes: (Node | string)[]): void;
|
|
682
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
672
683
|
prepend(...nodes: (Node | string)[]): void;
|
|
673
684
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
674
685
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -705,6 +716,7 @@ declare const Tooltip_base: {
|
|
|
705
716
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
706
717
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
707
718
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
719
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
708
720
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
709
721
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
710
722
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -726,7 +738,7 @@ declare const Tooltip_base: {
|
|
|
726
738
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
727
739
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
728
740
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
729
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
741
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
730
742
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
731
743
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
732
744
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -791,7 +803,7 @@ declare const Tooltip_base: {
|
|
|
791
803
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
792
804
|
autofocus: boolean;
|
|
793
805
|
readonly dataset: DOMStringMap;
|
|
794
|
-
nonce
|
|
806
|
+
nonce: string;
|
|
795
807
|
tabIndex: number;
|
|
796
808
|
blur(): void;
|
|
797
809
|
ariaControls: string | null;
|
|
@@ -850,13 +862,13 @@ declare const Tooltip_base: {
|
|
|
850
862
|
ariaFlowToChanged(prev: string | null, next: string | null): void;
|
|
851
863
|
ariaLabelledByChanged(prev: string | null, next: string | null): void;
|
|
852
864
|
ariaOwnsChanged(prev: string | null, next: string | null): void;
|
|
853
|
-
|
|
865
|
+
_handleReplacedProp(replacedProp: {
|
|
854
866
|
newPropertyName: string;
|
|
855
867
|
deprecatedPropertyName: string;
|
|
856
868
|
fromDeprecated: (v: any) => any;
|
|
857
869
|
toDeprecated?: ((v: any) => any) | undefined;
|
|
858
870
|
}): void;
|
|
859
|
-
|
|
871
|
+
_controllers: Set<import('../../shared/framework/reactive-controller').ReactiveController>;
|
|
860
872
|
_addController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
861
873
|
_removeController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
862
874
|
};
|
|
@@ -15,7 +15,7 @@ declare const TreeItem_base: {
|
|
|
15
15
|
autocorrect: boolean;
|
|
16
16
|
dir: string;
|
|
17
17
|
draggable: boolean;
|
|
18
|
-
hidden: boolean;
|
|
18
|
+
hidden: boolean | "until-found";
|
|
19
19
|
inert: boolean;
|
|
20
20
|
innerText: string;
|
|
21
21
|
lang: string;
|
|
@@ -33,8 +33,8 @@ declare const TreeItem_base: {
|
|
|
33
33
|
attachInternals(): ElementInternals;
|
|
34
34
|
click(): void;
|
|
35
35
|
hidePopover(): void;
|
|
36
|
-
showPopover(): void;
|
|
37
|
-
togglePopover(options?: boolean): boolean;
|
|
36
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
37
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
38
38
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
39
39
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
40
40
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -48,6 +48,7 @@ declare const TreeItem_base: {
|
|
|
48
48
|
readonly clientTop: number;
|
|
49
49
|
readonly clientWidth: number;
|
|
50
50
|
readonly currentCSSZoom: number;
|
|
51
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
51
52
|
id: string;
|
|
52
53
|
innerHTML: string;
|
|
53
54
|
readonly localName: string;
|
|
@@ -98,6 +99,9 @@ declare const TreeItem_base: {
|
|
|
98
99
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
99
100
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
100
101
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
102
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
103
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
104
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
101
105
|
matches(selectors: string): boolean;
|
|
102
106
|
releasePointerCapture(pointerId: number): void;
|
|
103
107
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -233,6 +237,7 @@ declare const TreeItem_base: {
|
|
|
233
237
|
readonly firstElementChild: Element | null;
|
|
234
238
|
readonly lastElementChild: Element | null;
|
|
235
239
|
append(...nodes: (Node | string)[]): void;
|
|
240
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
236
241
|
prepend(...nodes: (Node | string)[]): void;
|
|
237
242
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
238
243
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -269,6 +274,7 @@ declare const TreeItem_base: {
|
|
|
269
274
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
270
275
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
271
276
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
272
278
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
279
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
274
280
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -290,7 +296,7 @@ declare const TreeItem_base: {
|
|
|
290
296
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
291
297
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
292
298
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
293
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
299
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
294
300
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
295
301
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
296
302
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -355,7 +361,7 @@ declare const TreeItem_base: {
|
|
|
355
361
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
356
362
|
autofocus: boolean;
|
|
357
363
|
readonly dataset: DOMStringMap;
|
|
358
|
-
nonce
|
|
364
|
+
nonce: string;
|
|
359
365
|
tabIndex: number;
|
|
360
366
|
blur(): void;
|
|
361
367
|
ariaControls: string | null;
|
|
@@ -414,13 +420,13 @@ declare const TreeItem_base: {
|
|
|
414
420
|
ariaFlowToChanged(prev: string | null, next: string | null): void;
|
|
415
421
|
ariaLabelledByChanged(prev: string | null, next: string | null): void;
|
|
416
422
|
ariaOwnsChanged(prev: string | null, next: string | null): void;
|
|
417
|
-
|
|
423
|
+
_handleReplacedProp(replacedProp: {
|
|
418
424
|
newPropertyName: string;
|
|
419
425
|
deprecatedPropertyName: string;
|
|
420
426
|
fromDeprecated: (v: any) => any;
|
|
421
427
|
toDeprecated?: ((v: any) => any) | undefined;
|
|
422
428
|
}): void;
|
|
423
|
-
|
|
429
|
+
_controllers: Set<import('../../shared/framework/reactive-controller').ReactiveController>;
|
|
424
430
|
_addController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
425
431
|
_removeController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
426
432
|
};
|
|
@@ -441,7 +447,7 @@ declare const TreeItem_base: {
|
|
|
441
447
|
autocorrect: boolean;
|
|
442
448
|
dir: string;
|
|
443
449
|
draggable: boolean;
|
|
444
|
-
hidden: boolean;
|
|
450
|
+
hidden: boolean | "until-found";
|
|
445
451
|
inert: boolean;
|
|
446
452
|
innerText: string;
|
|
447
453
|
lang: string;
|
|
@@ -459,8 +465,8 @@ declare const TreeItem_base: {
|
|
|
459
465
|
attachInternals(): ElementInternals;
|
|
460
466
|
click(): void;
|
|
461
467
|
hidePopover(): void;
|
|
462
|
-
showPopover(): void;
|
|
463
|
-
togglePopover(options?: boolean): boolean;
|
|
468
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
469
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
464
470
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
465
471
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
466
472
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -474,6 +480,7 @@ declare const TreeItem_base: {
|
|
|
474
480
|
readonly clientTop: number;
|
|
475
481
|
readonly clientWidth: number;
|
|
476
482
|
readonly currentCSSZoom: number;
|
|
483
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
477
484
|
id: string;
|
|
478
485
|
innerHTML: string;
|
|
479
486
|
readonly localName: string;
|
|
@@ -524,6 +531,9 @@ declare const TreeItem_base: {
|
|
|
524
531
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
525
532
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
526
533
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
534
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
535
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
536
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
527
537
|
matches(selectors: string): boolean;
|
|
528
538
|
releasePointerCapture(pointerId: number): void;
|
|
529
539
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -659,6 +669,7 @@ declare const TreeItem_base: {
|
|
|
659
669
|
readonly firstElementChild: Element | null;
|
|
660
670
|
readonly lastElementChild: Element | null;
|
|
661
671
|
append(...nodes: (Node | string)[]): void;
|
|
672
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
662
673
|
prepend(...nodes: (Node | string)[]): void;
|
|
663
674
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
664
675
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -695,6 +706,7 @@ declare const TreeItem_base: {
|
|
|
695
706
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
696
707
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
697
708
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
709
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
698
710
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
699
711
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
700
712
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -716,7 +728,7 @@ declare const TreeItem_base: {
|
|
|
716
728
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
717
729
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
718
730
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
719
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
731
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
720
732
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
721
733
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
722
734
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -781,7 +793,7 @@ declare const TreeItem_base: {
|
|
|
781
793
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
782
794
|
autofocus: boolean;
|
|
783
795
|
readonly dataset: DOMStringMap;
|
|
784
|
-
nonce
|
|
796
|
+
nonce: string;
|
|
785
797
|
tabIndex: number;
|
|
786
798
|
blur(): void;
|
|
787
799
|
ariaControls: string | null;
|
|
@@ -840,13 +852,13 @@ declare const TreeItem_base: {
|
|
|
840
852
|
ariaFlowToChanged(prev: string | null, next: string | null): void;
|
|
841
853
|
ariaLabelledByChanged(prev: string | null, next: string | null): void;
|
|
842
854
|
ariaOwnsChanged(prev: string | null, next: string | null): void;
|
|
843
|
-
|
|
855
|
+
_handleReplacedProp(replacedProp: {
|
|
844
856
|
newPropertyName: string;
|
|
845
857
|
deprecatedPropertyName: string;
|
|
846
858
|
fromDeprecated: (v: any) => any;
|
|
847
859
|
toDeprecated?: ((v: any) => any) | undefined;
|
|
848
860
|
}): void;
|
|
849
|
-
|
|
861
|
+
_controllers: Set<import('../../shared/framework/reactive-controller').ReactiveController>;
|
|
850
862
|
_addController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
851
863
|
_removeController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
852
864
|
};
|
|
@@ -16,7 +16,7 @@ declare const TreeView_base: {
|
|
|
16
16
|
autocorrect: boolean;
|
|
17
17
|
dir: string;
|
|
18
18
|
draggable: boolean;
|
|
19
|
-
hidden: boolean;
|
|
19
|
+
hidden: boolean | "until-found";
|
|
20
20
|
inert: boolean;
|
|
21
21
|
innerText: string;
|
|
22
22
|
lang: string;
|
|
@@ -34,8 +34,8 @@ declare const TreeView_base: {
|
|
|
34
34
|
attachInternals(): ElementInternals;
|
|
35
35
|
click(): void;
|
|
36
36
|
hidePopover(): void;
|
|
37
|
-
showPopover(): void;
|
|
38
|
-
togglePopover(options?: boolean): boolean;
|
|
37
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
38
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
39
39
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
40
40
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
41
41
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -49,6 +49,7 @@ declare const TreeView_base: {
|
|
|
49
49
|
readonly clientTop: number;
|
|
50
50
|
readonly clientWidth: number;
|
|
51
51
|
readonly currentCSSZoom: number;
|
|
52
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
52
53
|
id: string;
|
|
53
54
|
innerHTML: string;
|
|
54
55
|
readonly localName: string;
|
|
@@ -99,6 +100,9 @@ declare const TreeView_base: {
|
|
|
99
100
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
100
101
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
101
102
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
103
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
104
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
105
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
102
106
|
matches(selectors: string): boolean;
|
|
103
107
|
releasePointerCapture(pointerId: number): void;
|
|
104
108
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -234,6 +238,7 @@ declare const TreeView_base: {
|
|
|
234
238
|
readonly firstElementChild: Element | null;
|
|
235
239
|
readonly lastElementChild: Element | null;
|
|
236
240
|
append(...nodes: (Node | string)[]): void;
|
|
241
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
237
242
|
prepend(...nodes: (Node | string)[]): void;
|
|
238
243
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
239
244
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -270,6 +275,7 @@ declare const TreeView_base: {
|
|
|
270
275
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
271
276
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
272
277
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
278
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
279
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
274
280
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
275
281
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -291,7 +297,7 @@ declare const TreeView_base: {
|
|
|
291
297
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
292
298
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
293
299
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
294
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
300
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
295
301
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
296
302
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
297
303
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -356,7 +362,7 @@ declare const TreeView_base: {
|
|
|
356
362
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
357
363
|
autofocus: boolean;
|
|
358
364
|
readonly dataset: DOMStringMap;
|
|
359
|
-
nonce
|
|
365
|
+
nonce: string;
|
|
360
366
|
tabIndex: number;
|
|
361
367
|
blur(): void;
|
|
362
368
|
ariaControls: string | null;
|
|
@@ -415,13 +421,13 @@ declare const TreeView_base: {
|
|
|
415
421
|
ariaFlowToChanged(prev: string | null, next: string | null): void;
|
|
416
422
|
ariaLabelledByChanged(prev: string | null, next: string | null): void;
|
|
417
423
|
ariaOwnsChanged(prev: string | null, next: string | null): void;
|
|
418
|
-
|
|
424
|
+
_handleReplacedProp(replacedProp: {
|
|
419
425
|
newPropertyName: string;
|
|
420
426
|
deprecatedPropertyName: string;
|
|
421
427
|
fromDeprecated: (v: any) => any;
|
|
422
428
|
toDeprecated?: ((v: any) => any) | undefined;
|
|
423
429
|
}): void;
|
|
424
|
-
|
|
430
|
+
_controllers: Set<import('../../shared/framework/reactive-controller.js').ReactiveController>;
|
|
425
431
|
_addController(controller: import('../../shared/framework/reactive-controller.js').ReactiveController): void;
|
|
426
432
|
_removeController(controller: import('../../shared/framework/reactive-controller.js').ReactiveController): void;
|
|
427
433
|
};
|
|
@@ -19,7 +19,7 @@ declare const VideoPlayer_base: {
|
|
|
19
19
|
autocorrect: boolean;
|
|
20
20
|
dir: string;
|
|
21
21
|
draggable: boolean;
|
|
22
|
-
hidden: boolean;
|
|
22
|
+
hidden: boolean | "until-found";
|
|
23
23
|
inert: boolean;
|
|
24
24
|
innerText: string;
|
|
25
25
|
lang: string;
|
|
@@ -37,8 +37,8 @@ declare const VideoPlayer_base: {
|
|
|
37
37
|
attachInternals(): ElementInternals;
|
|
38
38
|
click(): void;
|
|
39
39
|
hidePopover(): void;
|
|
40
|
-
showPopover(): void;
|
|
41
|
-
togglePopover(options?: boolean): boolean;
|
|
40
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
41
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
42
42
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
43
43
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
44
44
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -52,6 +52,7 @@ declare const VideoPlayer_base: {
|
|
|
52
52
|
readonly clientTop: number;
|
|
53
53
|
readonly clientWidth: number;
|
|
54
54
|
readonly currentCSSZoom: number;
|
|
55
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
55
56
|
id: string;
|
|
56
57
|
innerHTML: string;
|
|
57
58
|
readonly localName: string;
|
|
@@ -102,6 +103,9 @@ declare const VideoPlayer_base: {
|
|
|
102
103
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
103
104
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
104
105
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
106
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
107
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
108
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
105
109
|
matches(selectors: string): boolean;
|
|
106
110
|
releasePointerCapture(pointerId: number): void;
|
|
107
111
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -237,6 +241,7 @@ declare const VideoPlayer_base: {
|
|
|
237
241
|
readonly firstElementChild: Element | null;
|
|
238
242
|
readonly lastElementChild: Element | null;
|
|
239
243
|
append(...nodes: (Node | string)[]): void;
|
|
244
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
240
245
|
prepend(...nodes: (Node | string)[]): void;
|
|
241
246
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
242
247
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -273,6 +278,7 @@ declare const VideoPlayer_base: {
|
|
|
273
278
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
274
279
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
275
280
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
281
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
282
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
283
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
278
284
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -294,7 +300,7 @@ declare const VideoPlayer_base: {
|
|
|
294
300
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
295
301
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
296
302
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
297
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
303
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
298
304
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
299
305
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
300
306
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -359,7 +365,7 @@ declare const VideoPlayer_base: {
|
|
|
359
365
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
360
366
|
autofocus: boolean;
|
|
361
367
|
readonly dataset: DOMStringMap;
|
|
362
|
-
nonce
|
|
368
|
+
nonce: string;
|
|
363
369
|
tabIndex: number;
|
|
364
370
|
blur(): void;
|
|
365
371
|
ariaControls: string | null;
|
|
@@ -418,13 +424,13 @@ declare const VideoPlayer_base: {
|
|
|
418
424
|
ariaFlowToChanged(prev: string | null, next: string | null): void;
|
|
419
425
|
ariaLabelledByChanged(prev: string | null, next: string | null): void;
|
|
420
426
|
ariaOwnsChanged(prev: string | null, next: string | null): void;
|
|
421
|
-
|
|
427
|
+
_handleReplacedProp(replacedProp: {
|
|
422
428
|
newPropertyName: string;
|
|
423
429
|
deprecatedPropertyName: string;
|
|
424
430
|
fromDeprecated: (v: any) => any;
|
|
425
431
|
toDeprecated?: ((v: any) => any) | undefined;
|
|
426
432
|
}): void;
|
|
427
|
-
|
|
433
|
+
_controllers: Set<import('../../shared/framework/reactive-controller').ReactiveController>;
|
|
428
434
|
_addController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
429
435
|
_removeController(controller: import('../../shared/framework/reactive-controller').ReactiveController): void;
|
|
430
436
|
};
|
package/listbox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/slotted.cjs"),n=require("../bundled/when.cjs"),r=require("../bundled/decorate.cjs"),i=require("../bundled/aria-binding-directive.cjs"),a=require("../bundled/host-semantics.cjs"),o=require("../bundled/option.cjs"),s=require("../bundled/optgroup.cjs"),c=require("../bundled/extractOptions.cjs");function l(e,t,n,r){let i=[];for(let t of e){t._vvdSearchText=r;let e=!r||n(t,r);t._isNotMatching=!e,!t.hidden&&!t.disabled&&e&&i.push(t)}for(let e of t)if(s.n(e)){let t=Array.from(e.children).some(e=>o.n(e)&&!e._isNotMatching&&!e.hidden);e.style.display=t?``:`none`}return i}var u=t=>{class n extends t{constructor(...e){super(...e),this.searchText=``,this._filteredOptions=[]}_slottedOptionsChanged(){super._slottedOptionsChanged(),this._updateFilter()}searchTextChanged(){this._updateFilter()}optionFilterChanged(){this._updateFilter()}_updateFilter(){this._filteredOptions=l(this._slottedOptions,this._slottedElements,this.optionFilter??((e,t)=>e.text.toLowerCase().includes(t.toLowerCase())),this.searchText)}}return r.t([e.m({attribute:`search-text`,mode:`fromView`})],n.prototype,`searchText`,void 0),r.t([e.A],n.prototype,`optionFilter`,void 0),r.t([e.A],n.prototype,`_filteredOptions`,void 0),n},d=t=>{class n extends t{constructor(...e){super(...e),this._slottedElements=[],this
|
|
1
|
+
const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/slotted.cjs"),n=require("../bundled/when.cjs"),r=require("../bundled/decorate.cjs"),i=require("../bundled/aria-binding-directive.cjs"),a=require("../bundled/host-semantics.cjs"),o=require("../bundled/option.cjs"),s=require("../bundled/optgroup.cjs"),c=require("../bundled/extractOptions.cjs");function l(e,t,n,r){let i=[];for(let t of e){t._vvdSearchText=r;let e=!r||n(t,r);t._isNotMatching=!e,!t.hidden&&!t.disabled&&e&&i.push(t)}for(let e of t)if(s.n(e)){let t=Array.from(e.children).some(e=>o.n(e)&&!e._isNotMatching&&!e.hidden);e.style.display=t?``:`none`}return i}var u=t=>{class n extends t{constructor(...e){super(...e),this.searchText=``,this._filteredOptions=[]}_slottedOptionsChanged(){super._slottedOptionsChanged(),this._updateFilter()}searchTextChanged(){this._updateFilter()}optionFilterChanged(){this._updateFilter()}_updateFilter(){this._filteredOptions=l(this._slottedOptions,this._slottedElements,this.optionFilter??((e,t)=>e.text.toLowerCase().includes(t.toLowerCase())),this.searchText)}}return r.t([e.m({attribute:`search-text`,mode:`fromView`})],n.prototype,`searchText`,void 0),r.t([e.A],n.prototype,`optionFilter`,void 0),r.t([e.A],n.prototype,`_filteredOptions`,void 0),n},d=t=>{class n extends t{constructor(...e){super(...e),this._slottedElements=[],this._onOptgroupChange=()=>{this._slottedElementsChanged()},this._slottedOptions=[]}_slottedElementsChanged(){this._slottedOptions=c.t(this._slottedElements)}connectedCallback(){super.connectedCallback(),this.addEventListener(`optgroup-change`,this._onOptgroupChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`optgroup-change`,this._onOptgroupChange)}_slottedOptionsChanged(){for(let e of this._slottedOptions)e.id||=i.r(`option-`)}}return r.t([e.A],n.prototype,`_slottedElements`,void 0),r.t([e.A],n.prototype,`_slottedOptions`,void 0),n},f=e.p`<slot
|
|
2
2
|
${t.t({filter:(e=>o.n(e)||s.n(e)),flatten:!0,property:`_slottedElements`})}
|
|
3
3
|
>
|
|
4
4
|
</slot>`,p=e=>{let t=e.ctrlKey||e.metaKey;return e.shiftKey&&t?`ShiftMod`:e.shiftKey?`Shift`:t?`Mod`:null},m=(e,t,n,r)=>{if(n.amount===`step`&&r===`Mod`)return null;if(t.selectionMode===`multiple`){if(n.amount===`step`&&r===`Shift`)return{action:{type:`extend-from-anchor`,anchorIndex:e.rangeAnchorIndex??e.activeIndex},replaceExisting:!1};if(n.amount===`limit`&&r===`ShiftMod`)return{action:{type:`select-from-current`},replaceExisting:!1}}return t.selectionBehavior===`replace`?{action:{type:`select`},replaceExisting:!0}:null},h=(e,t)=>t===`Shift`?{action:{type:`select-from-most-recent`},replaceExisting:e.selectionBehavior===`replace`}:t===`Mod`?{action:{type:`toggle`},replaceExisting:!1}:e.selectionBehavior===`replace`?{action:{type:`select`},replaceExisting:!0}:{action:{type:`toggle`},replaceExisting:!1};function g(e,t,n,r){let i=new Set(e),[a,o]=[n,r].sort((e,t)=>e-t),s=[...e];for(let e=a;e<=o;e++){let n=t.selectable.optionValue(e);i.has(n)||s.push(n)}return s}function _(e,t,n,r,i){let a=new Set(e),[o,,s]=[n,r,i].sort((e,t)=>e-t),c=[...e];for(let e=o;e<=s;e++){let i=t.selectable.optionValue(e);e<n&&e<r||e>n&&e>r?a.has(i)&&(c=c.filter(e=>e!==i)):a.has(i)||c.push(i)}return c}function v(e,t){let n=e.values;for(let e=n.length-1;e>=0;e--){let r=t.selectable.optionIndex(n[e]);if(r!==null)return r}return null}function y(e,t,n){let r=t=>({...e,values:t.values??e.values,activeIndex:t.activeIndex??e.activeIndex,rangeAnchorIndex:t.rangeAnchorIndex??null});if(n.type!==`action`)return r({});let i=e.values,{targetIndex:a,selection:o}=n,s=e=>t.selectionMode===`single`&&e.length>1?[e[e.length-1]]:t.requiredSelection!==`none`&&(e.length===0||t.requiredSelection===`selectable`&&!e.some(e=>t.selectable.optionIndex(e)!==null))?i:e,c=t.selectable.optionValue(a),l=o?.replaceExisting?[]:i;switch(o?.action.type){case void 0:return r({activeIndex:a});case`select`:return r({activeIndex:a,values:s(i.includes(c)?i:[...l,c])});case`toggle`:return r({activeIndex:a,values:s(i.includes(c)?l.filter(e=>e!==c):[...l,c])});case`select-from-current`:return r({activeIndex:a,values:s(g(l,t,e.activeIndex,a))});case`select-from-most-recent`:return r({activeIndex:a,values:s(g(l,t,v(e,t)??0,a))});case`extend-from-anchor`:return r({values:s(_(l,t,o.action.anchorIndex,a,e.activeIndex)),activeIndex:a,rangeAnchorIndex:o.action.anchorIndex})}}var b=2e3;function x(e,t,n,r){let i=e.typeahead&&e.typeahead.lastInputMs>r-b?e.typeahead:null;return n.length===1&&(n!==` `||i)?{buffer:(i?.buffer??``)+n,lastInputMs:r}:null}function S(e,t,n){if(n.type!==`typeahead`)return{...e,typeahead:null};let r=n.typeahead;for(let i=(e.activeIndex+1)%t.selectable.numOptions;i!==e.activeIndex;i=(i+1)%t.selectable.numOptions)if(t.selectable.optionText(i).toLowerCase().startsWith(r.buffer.toLowerCase()))return{...y(e,t,{type:`action`,targetIndex:i,selection:n.selection}),typeahead:r};return{...e,typeahead:r}}var C=e=>({numOptions:e.length,optionValue:t=>e[t].value,optionText:t=>e[t].text,optionIndex:t=>{let n=e.findIndex(e=>e.value===t);return n===-1?null:n},isEq:t=>e===t});function w(e,t,n){let r=t.filter(e=>e.selected||n.includes(e.value)).map(e=>e.value),i=e.selectionMode===`single`?1:1/0;return D(e,r.slice(0,i),i)}function T(e){return`activeIndex`in e}function E(e,t,n){let r=n.filter(e=>t.all.optionIndex(e)!==null),i=t.selectionMode===`single`?1:1/0,a=r.slice(0,i);return a=D(t,a,i),{...e,values:a}}function D(e,t,n){return e.requiredSelection===`none`||e.selectable.numOptions===0?t:t.length===0?[e.selectable.optionValue(0)]:e.requiredSelection===`selectable`&&!t.some(t=>e.selectable.optionIndex(t)!==null)?n===1?[e.selectable.optionValue(0)]:[...t,e.selectable.optionValue(0)]:t}function O(e,t,n){let r=w(e,t,n);if(e.selectable.numOptions===0)return k(r);let i=0;for(let t of r){let n=e.selectable.optionIndex(t);if(n!==null){i=n;break}}return{values:r,activeIndex:i,typeahead:null,rangeAnchorIndex:null}}function k(e){return{values:e}}function A(e){switch(e){case`Home`:return{direction:`backward`,amount:`limit`};case`End`:return{direction:`forward`,amount:`limit`};case`PageUp`:return{direction:`backward`,amount:`page`};case`PageDown`:return{direction:`forward`,amount:`page`};case`ArrowUp`:return{direction:`backward`,amount:`step`};case`ArrowDown`:return{direction:`forward`,amount:`step`}}return null}function j(e,t,n,r){let i={backward:0,forward:t-1},a={backward:-1,forward:1},o={step:1,page:n};switch(r.amount){case`limit`:return i[r.direction];case`page`:case`step`:return Math.min(i.forward,Math.max(i.backward,e+a[r.direction]*o[r.amount]))}}var M=10;function N(e,t,n,r){if(!T(e))return null;let i=x(e,t,n.key,r);if(i)return{type:`typeahead`,typeahead:i,selection:t.selectionBehavior===`replace`?{action:{type:`select`},replaceExisting:!0}:null};let a=A(n.key);return a?{type:`action`,targetIndex:j(e.activeIndex,t.selectable.numOptions,M,a),selection:m(e,t,a,p(n))}:n.key===` `?{type:`action`,targetIndex:e.activeIndex,selection:h(t,p(n))}:null}function P(e,t,n,r){return{type:`action`,targetIndex:r,selection:h(t,p(n))}}function F(e,t,n){return e=S(e,t,n),e=y(e,t,n),e}var I=e=>typeof e==`object`&&!!e&&e.nodeType===1,L=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,R=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return L(n.overflowY,t)||L(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},z=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,B=e=>e.parentElement??(e.getRootNode().host||null),V=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!I(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;I(u)&&s(u);){if(u=B(u),u===c){l.push(u);break}u!=null&&u===document.body&&R(u)&&!R(document.documentElement)||u!=null&&R(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:x,left:S}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&(t===c&&!R(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?z(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:z(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?z(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:z(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},H=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function U(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(V(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of V(e,H(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var W=(e,t)=>JSON.stringify(e)===JSON.stringify(t),G=class extends u(d(a.t(e.t))){constructor(...e){super(...e),this.selectionMode=`single`,this.selectionBehavior=`toggle`,this.requiredSelection=`none`,this._hasNoMatches=!1,this._showNoMatchesMessage=!1,this._activeDescendantId=null,this.values=[],this._state=k([]),this._ctx={selectionMode:`single`,selectionBehavior:`toggle`,requiredSelection:`none`,selectable:C([]),all:C([])},this._externalChangeQueued=!1}selectionModeChanged(){this._registerExternalChange()}selectionBehaviorChanged(){this._registerExternalChange()}requiredSelectionChanged(){this._registerExternalChange()}_filteredOptionsChanged(){this._registerExternalChange(),this._updateNoMatchesMessage()}_updateNoMatchesMessage(){this._hasNoMatches=this.searchText!==``&&!this._slottedOptions.some(e=>!e.hidden&&!e._isNotMatching),clearTimeout(this._noMatchesTimer),this._hasNoMatches?this._showNoMatchesMessage||(this._noMatchesTimer=setTimeout(()=>{this._showNoMatchesMessage=!0},10)):this._showNoMatchesMessage=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this._noMatchesTimer)}valuesChanged(){this._state&&!W(this._state.values,this.values)&&this._registerExternalChange()}get value(){return this.values[0]??null}set value(e){this.values=e===null?[]:[e]}_registerExternalChange(){this._externalChangeQueued||(this._externalChangeQueued=!0,queueMicrotask(()=>this._applyPendingExternalChanges()))}_applyPendingExternalChanges(){if(this._externalChangeQueued=!1,!this._ctx.all.isEq(this._slottedOptions)||!this._ctx.selectable.isEq(this._filteredOptions)){this._initializeState();return}let e={...this._ctx,selectionMode:this.selectionMode,selectionBehavior:this.selectionBehavior,requiredSelection:this.requiredSelection};this._ctx=e,this._applyNewState(E(this._state,e,this.values))}_initializeState(){this._ctx={selectionMode:this.selectionMode,selectionBehavior:this.selectionBehavior,requiredSelection:this.requiredSelection,selectable:C(this._filteredOptions),all:C(this._slottedOptions)},this._slottedOptions?.length?this._applyNewState(O(this._ctx,this._slottedOptions,this.values)):(this._state=k([]),this._activeDescendantId=null)}_applyNewState(e){if(T(e)){let t=this._filteredOptions[e.activeIndex];this._activeDescendantId=t.id,U(t,{block:`nearest`,scrollMode:`if-needed`})}else this._activeDescendantId=null;let t=!W(this.values,e.values);this._state=e,this.values=[...e.values],this._updateSlottedOptions(),t&&this.$emit(`change`,void 0,{bubbles:!1,composed:!1})}_updateSlottedOptions(){for(let e of this._slottedOptions)e.selected=this.values.includes(e.value),e._highlighted=!!(this._activeDescendantId&&e.id===this._activeDescendantId)}_onKeydown(e){let t=N(this._state,this._ctx,e,Date.now());return!t||(this._applyNewState(F(this._state,this._ctx,t)),!1)}_onClick(e){let t=e.target.closest(`[data-vvd-component=option]`),n=t?this._filteredOptions.indexOf(t):-1;if(n===-1)return!0;let r=this._state;return this._applyNewState(F(r,this._ctx,P(r,this._ctx,e,n))),!1}};r.t([e.m({attribute:`selection-mode`,mode:`fromView`})],G.prototype,`selectionMode`,void 0),r.t([e.m({attribute:`selection-behavior`,mode:`fromView`})],G.prototype,`selectionBehavior`,void 0),r.t([e.m({attribute:`required-selection`,mode:`fromView`})],G.prototype,`requiredSelection`,void 0),r.t([e.A],G.prototype,`_hasNoMatches`,void 0),r.t([e.A],G.prototype,`_showNoMatchesMessage`,void 0),r.t([e.A],G.prototype,`_activeDescendantId`,void 0),r.t([e.A],G.prototype,`values`,void 0);var K=`:host{--option-text-line-clamp:1;--option-text-secondary-line-clamp:1;outline:none;flex-direction:column;gap:2px;display:flex}:host(:not(:focus-visible)){--_suppressable-focus-shadow:none;--_suppressable-focus-outline:none;--_suppressable-focus-outline-offset:0}.no-matches{padding:8px 16px}`,q=e=>e._hasNoMatches,J=e.u(`listbox`,G,t=>e.p`<template
|
package/listbox/index.js
CHANGED
|
@@ -46,19 +46,18 @@ var g = (t) => {
|
|
|
46
46
|
}, _ = (t) => {
|
|
47
47
|
class n extends t {
|
|
48
48
|
constructor(...e) {
|
|
49
|
-
super(...e), this._slottedElements = [], this
|
|
49
|
+
super(...e), this._slottedElements = [], this._onOptgroupChange = () => {
|
|
50
50
|
this._slottedElementsChanged();
|
|
51
51
|
}, this._slottedOptions = [];
|
|
52
52
|
}
|
|
53
53
|
_slottedElementsChanged() {
|
|
54
54
|
this._slottedOptions = m(this._slottedElements);
|
|
55
55
|
}
|
|
56
|
-
#e;
|
|
57
56
|
connectedCallback() {
|
|
58
|
-
super.connectedCallback(), this.addEventListener("optgroup-change", this
|
|
57
|
+
super.connectedCallback(), this.addEventListener("optgroup-change", this._onOptgroupChange);
|
|
59
58
|
}
|
|
60
59
|
disconnectedCallback() {
|
|
61
|
-
super.disconnectedCallback(), this.removeEventListener("optgroup-change", this
|
|
60
|
+
super.disconnectedCallback(), this.removeEventListener("optgroup-change", this._onOptgroupChange);
|
|
62
61
|
}
|
|
63
62
|
_slottedOptionsChanged() {
|
|
64
63
|
for (let e of this._slottedOptions) e.id ||= l("option-");
|
package/nav-item/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/decorate.cjs"),n=require("../bundled/class-names.cjs"),r=require("../bundled/definition2.cjs"),i=require("../bundled/affix.cjs"),a=require("../bundled/component-enum.cjs"),o=require("../bundled/linkable.cjs");var s=`.control{box-sizing:border-box;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);font:var(--vvd-typography-base);hyphens:auto;inline-size:100%;min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));vertical-align:middle;border-radius:8px;align-items:center;gap:12px;text-decoration:none;display:inline-flex}.control.current{color:var(--_appearance-color-text)}@supports not (color:color-mix(in srgb, var(--one-color), var(--second-color))){.control.current{background-color:var(--_connotation-color-primary)}}.control.current:focus-visible{outline:none;position:relative}.control.current:focus-visible:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:"";inline-size:calc(100% + var(--focus-block-size-addition,4px));display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}.control.icon-only{block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));place-content:center;display:flex;position:relative}.control.icon-only slot[name=meta]{display:block;position:absolute;inset-block-start:calc((calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - 20px) / 2);inset-inline-end:calc((calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - 20px) / 2);transform:translate(50%,-50%)}.control:not(.icon-only){padding-block:10px;padding-inline:16px}.control:not(.current){color:var(--vvd-color-canvas-text);--focus-stroke-gap-color:transparent}.control:not(.current):focus-visible{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host(:dir(rtl)) .icon-only slot[name=meta]{transform:translate(-50%,-50%)}slot[name=icon]{font-size:20px;line-height:1}`,c=a.t([`accent`,`cta`],`accent`),l=a.t([`ghost`,`ghost-light`],`ghost`),u=class extends i.t(o.t(e.t)){constructor(...e){super(...e),this.current=!1}};t.t([e.m],u.prototype,`text`,void 0),t.t([e.m],u.prototype,`connotation`,void 0),t.t([e.m],u.prototype,`appearance`,void 0),t.t([e.n({deprecatedPropertyName:`ariaCurrent`,fromDeprecated:e=>!!e,toDeprecated:e=>e?`page`:null}),e.m({attribute:`current`,mode:`boolean`})],u.prototype,`current`,void 0);var d=e.u(`nav-item`,u,t=>{let r=i.a(t);return e.p`${t=>t._renderLinkElement(e.p`${e=>r(e.icon,i.i.Slot)}
|
|
1
|
+
const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/decorate.cjs"),n=require("../bundled/class-names.cjs"),r=require("../bundled/definition2.cjs"),i=require("../bundled/affix.cjs"),a=require("../bundled/component-enum.cjs"),o=require("../bundled/linkable.cjs");var s=`.control.appearance-subtle{--_appearance-idle-fill:transparent;--_appearance-hover-fill:var(--_connotation-color-faint);--_appearance-active-fill:var(--_connotation-color-soft);--_appearance-disabled-fill:transparent;--_appearance-selected-fill:var(--_connotation-color-dim);--_appearance-selected-text:var(--vvd-color-canvas-text);--_appearance-selectedAndHover-fill:var(--_connotation-color-pale);--_appearance-selectedAndHover-text:var(--vvd-color-canvas-text)}.control{box-sizing:border-box;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);font:var(--vvd-typography-base);hyphens:auto;inline-size:100%;min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));vertical-align:middle;border-radius:8px;align-items:center;gap:12px;text-decoration:none;display:inline-flex}.control.current{color:var(--_appearance-color-text)}@supports not (color:color-mix(in srgb, var(--one-color), var(--second-color))){.control.current{background-color:var(--_connotation-color-primary)}}.control.current:focus-visible{outline:none;position:relative}.control.current:focus-visible:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:"";inline-size:calc(100% + var(--focus-block-size-addition,4px));display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}.control.icon-only{block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));place-content:center;display:flex;position:relative}.control.icon-only slot[name=meta]{display:block;position:absolute;inset-block-start:calc((calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - 20px) / 2);inset-inline-end:calc((calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - 20px) / 2);transform:translate(50%,-50%)}.control:not(.icon-only){padding-block:10px;padding-inline:16px}.control:not(.current){color:var(--vvd-color-canvas-text);--focus-stroke-gap-color:transparent}.control:not(.current):focus-visible{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host(:dir(rtl)) .icon-only slot[name=meta]{transform:translate(-50%,-50%)}slot[name=icon]{font-size:20px;line-height:1}`,c=a.t([`accent`,`cta`],`accent`),l=a.t([`ghost`,`ghost-light`,`subtle`],`ghost`),u=class extends i.t(o.t(e.t)){constructor(...e){super(...e),this.current=!1}};t.t([e.m],u.prototype,`text`,void 0),t.t([e.m],u.prototype,`connotation`,void 0),t.t([e.m],u.prototype,`appearance`,void 0),t.t([e.n({deprecatedPropertyName:`ariaCurrent`,fromDeprecated:e=>!!e,toDeprecated:e=>e?`page`:null}),e.m({attribute:`current`,mode:`boolean`})],u.prototype,`current`,void 0);var d=e.u(`nav-item`,u,t=>{let r=i.a(t);return e.p`${t=>t._renderLinkElement(e.p`${e=>r(e.icon,i.i.Slot)}
|
|
2
2
|
${e=>e.text} <slot name="meta"></slot>`,e=>n.t(`control`,[`icon-only`,!e.text],`connotation-${c.parse(e.connotation)}`,`appearance-${l.parse(e.appearance)}`,`with-idle`,`with-hover`,`with-active`,`with-selected`,`with-selectedAndHover`,[`current selected`,e.current]))}`},[r.t],{styles:s,shadowOptions:{delegatesFocus:!0}});e.d(d)();
|