@voidable/ui 0.6.1 → 0.8.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/README.md +168 -9
- package/dist/angular/index.d.ts +20 -0
- package/dist/angular/index.js +78 -0
- package/dist/autoloader-core.d.ts +45 -0
- package/dist/autoloader-table.generated.d.ts +5 -0
- package/dist/autoloader.d.ts +13 -0
- package/dist/autoloader.js +229 -0
- package/dist/base.d.ts +173 -2
- package/dist/base.js +2 -9
- package/dist/chunks/base-CMruMbxC.js +824 -0
- package/dist/chunks/disclosure-Bj_49GcC.js +23 -0
- package/dist/chunks/dismiss-Drsy_dE5.js +37 -0
- package/dist/chunks/form-control-C0vH6gii.js +300 -0
- package/dist/chunks/keyboard-MQpfTX5I.js +46 -0
- package/dist/chunks/keyboard-activation-CV0m4hkn.js +29 -0
- package/dist/chunks/modal-D_YVy2vg.js +71 -0
- package/dist/chunks/overlay-BywGMcDW.js +467 -0
- package/dist/chunks/parts-D30c8OoG.js +229 -0
- package/dist/chunks/{shape-FJvZa8FW.js → shape-C_LW7EjG.js} +12 -4
- package/dist/components/accordion.d.ts +38 -10
- package/dist/components/accordion.js +51 -53
- package/dist/components/action-input.d.ts +64 -6
- package/dist/components/action-input.js +84 -41
- package/dist/components/alert.d.ts +24 -10
- package/dist/components/alert.js +26 -27
- package/dist/components/avatar.d.ts +8 -2
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.d.ts +8 -3
- package/dist/components/badge.js +2 -2
- package/dist/components/banner.d.ts +21 -10
- package/dist/components/banner.js +27 -27
- package/dist/components/bar-chart.d.ts +30 -6
- package/dist/components/bar-chart.js +29 -39
- package/dist/components/breadcrumbs.d.ts +19 -6
- package/dist/components/breadcrumbs.js +16 -22
- package/dist/components/button.d.ts +64 -10
- package/dist/components/button.js +70 -26
- package/dist/components/calendar.d.ts +65 -10
- package/dist/components/calendar.js +157 -106
- package/dist/components/card.d.ts +14 -9
- package/dist/components/card.js +8 -22
- package/dist/components/carousel.d.ts +65 -14
- package/dist/components/carousel.js +84 -93
- package/dist/components/charts/scale.d.ts +0 -1
- package/dist/components/charts/shape.d.ts +0 -1
- package/dist/components/checkbox-group.d.ts +38 -5
- package/dist/components/checkbox-group.js +61 -20
- package/dist/components/checkbox.d.ts +53 -7
- package/dist/components/checkbox.js +66 -29
- package/dist/components/collapsible.d.ts +29 -9
- package/dist/components/collapsible.js +42 -44
- package/dist/components/color-picker.d.ts +20 -4
- package/dist/components/color-picker.js +35 -29
- package/dist/components/combobox.d.ts +84 -10
- package/dist/components/combobox.js +142 -45
- package/dist/components/compose-input.d.ts +8 -1
- package/dist/components/compose-input.js +9 -3
- package/dist/components/dialog.d.ts +24 -20
- package/dist/components/dialog.js +8 -57
- package/dist/components/divider.d.ts +8 -1
- package/dist/components/divider.js +3 -3
- package/dist/components/donut-chart.d.ts +28 -5
- package/dist/components/donut-chart.js +55 -54
- package/dist/components/drawer.d.ts +19 -18
- package/dist/components/drawer.js +9 -53
- package/dist/components/dropdown-menu.d.ts +62 -7
- package/dist/components/dropdown-menu.js +124 -33
- package/dist/components/editable.d.ts +37 -3
- package/dist/components/editable.js +45 -24
- package/dist/components/error-fallback.d.ts +36 -5
- package/dist/components/error-fallback.js +73 -23
- package/dist/components/field.d.ts +38 -4
- package/dist/components/field.js +63 -21
- package/dist/components/file-upload.d.ts +23 -2
- package/dist/components/file-upload.js +47 -24
- package/dist/components/gauge.d.ts +48 -9
- package/dist/components/gauge.js +57 -55
- package/dist/components/hamburger.d.ts +19 -4
- package/dist/components/hamburger.js +28 -19
- package/dist/components/hover-card.d.ts +40 -14
- package/dist/components/hover-card.js +76 -59
- package/dist/components/indicator.d.ts +18 -7
- package/dist/components/indicator.js +16 -18
- package/dist/components/input.d.ts +70 -5
- package/dist/components/input.js +83 -20
- package/dist/components/line-chart.d.ts +27 -5
- package/dist/components/line-chart.js +19 -21
- package/dist/components/list.d.ts +10 -1
- package/dist/components/list.js +3 -3
- package/dist/components/menu.d.ts +67 -21
- package/dist/components/menu.js +116 -115
- package/dist/components/multiselect.d.ts +108 -13
- package/dist/components/multiselect.js +207 -70
- package/dist/components/nav-bar.d.ts +12 -7
- package/dist/components/nav-bar.js +11 -21
- package/dist/components/nav-menu.d.ts +52 -12
- package/dist/components/nav-menu.js +68 -70
- package/dist/components/number-input.d.ts +76 -8
- package/dist/components/number-input.js +117 -51
- package/dist/components/pagination.d.ts +19 -1
- package/dist/components/pagination.js +68 -7
- package/dist/components/panel.d.ts +16 -8
- package/dist/components/panel.js +20 -20
- package/dist/components/pin-input.d.ts +41 -4
- package/dist/components/pin-input.js +45 -27
- package/dist/components/popover.d.ts +29 -11
- package/dist/components/popover.js +47 -35
- package/dist/components/progress.d.ts +7 -3
- package/dist/components/progress.js +3 -3
- package/dist/components/radio-group.d.ts +30 -5
- package/dist/components/radio-group.js +56 -19
- package/dist/components/radio.d.ts +47 -7
- package/dist/components/radio.js +68 -29
- package/dist/components/scroll-area.d.ts +8 -5
- package/dist/components/scroll-area.js +19 -20
- package/dist/components/segmented-control.d.ts +52 -8
- package/dist/components/segmented-control.js +66 -36
- package/dist/components/select.d.ts +59 -12
- package/dist/components/select.js +96 -46
- package/dist/components/sidebar.d.ts +22 -3
- package/dist/components/sidebar.js +20 -10
- package/dist/components/skeleton.d.ts +5 -2
- package/dist/components/skeleton.js +4 -4
- package/dist/components/slider.d.ts +27 -5
- package/dist/components/slider.js +29 -17
- package/dist/components/spinner.d.ts +6 -2
- package/dist/components/spinner.js +3 -3
- package/dist/components/stat.d.ts +21 -4
- package/dist/components/stat.js +7 -3
- package/dist/components/status-dot.d.ts +4 -1
- package/dist/components/status-dot.js +3 -3
- package/dist/components/stepper.d.ts +5 -1
- package/dist/components/stepper.js +2 -2
- package/dist/components/switch.d.ts +24 -5
- package/dist/components/switch.js +37 -19
- package/dist/components/table.d.ts +51 -2
- package/dist/components/table.js +157 -8
- package/dist/components/tabs.d.ts +49 -17
- package/dist/components/tabs.js +85 -54
- package/dist/components/tag.d.ts +17 -7
- package/dist/components/tag.js +19 -21
- package/dist/components/tags-input.d.ts +33 -4
- package/dist/components/tags-input.js +40 -30
- package/dist/components/textarea.d.ts +61 -5
- package/dist/components/textarea.js +58 -21
- package/dist/components/toast.d.ts +89 -15
- package/dist/components/toast.js +105 -30
- package/dist/components/toggle-group.d.ts +30 -3
- package/dist/components/toggle-group.js +43 -16
- package/dist/components/toggle.d.ts +25 -4
- package/dist/components/toggle.js +28 -18
- package/dist/components/tooltip.d.ts +31 -12
- package/dist/components/tooltip.js +62 -28
- package/dist/components.json +1518 -0
- package/dist/custom-elements.json +31817 -0
- package/dist/dev/index.d.ts +40 -0
- package/dist/dev/rules.d.ts +46 -0
- package/dist/dev/table.generated.d.ts +8 -0
- package/dist/dev/types.d.ts +113 -0
- package/dist/dev.js +3364 -0
- package/dist/disclosure.d.ts +30 -0
- package/dist/dismiss.d.ts +20 -0
- package/dist/form-control.d.ts +92 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +24 -24
- package/dist/keyboard-activation.d.ts +31 -0
- package/dist/keyboard.d.ts +32 -0
- package/dist/modal.d.ts +44 -0
- package/dist/overlay.d.ts +249 -0
- package/dist/parts.d.ts +171 -0
- package/dist/projection.d.ts +370 -0
- package/dist/types/elements.d.ts +648 -0
- package/dist/types/react.d.ts +163 -0
- package/dist/types/solid.d.ts +164 -0
- package/dist/types/solid2.d.ts +161 -0
- package/dist/types/svelte.d.ts +154 -0
- package/dist/types/vue.d.ts +156 -0
- package/dist/vscode.html-custom-data.json +6004 -0
- package/dist/web-types.json +8365 -0
- package/package.json +113 -21
- package/dist/base.d.ts.map +0 -1
- package/dist/components/accordion.d.ts.map +0 -1
- package/dist/components/action-input.d.ts.map +0 -1
- package/dist/components/alert.d.ts.map +0 -1
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/banner.d.ts.map +0 -1
- package/dist/components/bar-chart.d.ts.map +0 -1
- package/dist/components/breadcrumbs.d.ts.map +0 -1
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/calendar.d.ts.map +0 -1
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/charts/scale.d.ts.map +0 -1
- package/dist/components/charts/shape.d.ts.map +0 -1
- package/dist/components/checkbox-group.d.ts.map +0 -1
- package/dist/components/checkbox.d.ts.map +0 -1
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/color-picker.d.ts.map +0 -1
- package/dist/components/combobox.d.ts.map +0 -1
- package/dist/components/compose-input.d.ts.map +0 -1
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/divider.d.ts.map +0 -1
- package/dist/components/donut-chart.d.ts.map +0 -1
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/editable.d.ts.map +0 -1
- package/dist/components/error-fallback.d.ts.map +0 -1
- package/dist/components/field.d.ts.map +0 -1
- package/dist/components/file-upload.d.ts.map +0 -1
- package/dist/components/gauge.d.ts.map +0 -1
- package/dist/components/hamburger.d.ts.map +0 -1
- package/dist/components/hover-card.d.ts.map +0 -1
- package/dist/components/indicator.d.ts.map +0 -1
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/line-chart.d.ts.map +0 -1
- package/dist/components/list.d.ts.map +0 -1
- package/dist/components/menu.d.ts.map +0 -1
- package/dist/components/multiselect.d.ts.map +0 -1
- package/dist/components/nav-bar.d.ts.map +0 -1
- package/dist/components/nav-menu.d.ts.map +0 -1
- package/dist/components/number-input.d.ts.map +0 -1
- package/dist/components/pagination.d.ts.map +0 -1
- package/dist/components/panel.d.ts.map +0 -1
- package/dist/components/pin-input.d.ts.map +0 -1
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio.d.ts.map +0 -1
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/segmented-control.d.ts.map +0 -1
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/sidebar.d.ts.map +0 -1
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/slider.d.ts.map +0 -1
- package/dist/components/spinner.d.ts.map +0 -1
- package/dist/components/stat.d.ts.map +0 -1
- package/dist/components/status-dot.d.ts.map +0 -1
- package/dist/components/stepper.d.ts.map +0 -1
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/table.d.ts.map +0 -1
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/tag.d.ts.map +0 -1
- package/dist/components/tags-input.d.ts.map +0 -1
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/toast.d.ts.map +0 -1
- package/dist/components/toggle-group.d.ts.map +0 -1
- package/dist/components/toggle.d.ts.map +0 -1
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
package/dist/base.d.ts
CHANGED
|
@@ -1,5 +1,176 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { PROJECTION_KEY, ProjectionController } from './projection.js';
|
|
3
|
+
/** Same key as parts.ts's MORPH_PARTICIPANTS (a registered symbol, so base needs no import of parts.ts). */
|
|
4
|
+
declare const MORPH_PARTICIPANTS: unique symbol;
|
|
2
5
|
export declare class VoidElement extends LitElement {
|
|
6
|
+
#private;
|
|
7
|
+
/** @internal The element's projection controller (see ProjectionController). */
|
|
8
|
+
[PROJECTION_KEY]?: ProjectionController;
|
|
9
|
+
/** @internal Controllers that carry what they wrote on parts into the server's markup (see parts.ts). */
|
|
10
|
+
[MORPH_PARTICIPANTS]?: Array<{
|
|
11
|
+
voidBeforeMorph(incoming: Element): void;
|
|
12
|
+
isCopy?(incoming: Element): boolean;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Client state that no reflected attribute carries and the server never
|
|
16
|
+
* renders, such as text typed but not committed yet: property name -> the
|
|
17
|
+
* attribute whose change by the server discards it (the property is set to
|
|
18
|
+
* `null` so the server's value shows), or `null` to keep it whatever the
|
|
19
|
+
* server sends. Morphs leave these properties alone otherwise; the component
|
|
20
|
+
* renders them in place of the committed value while they are set.
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* static override clientState = { _pendingText: 'value' };
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
static clientState?: Record<string, string | null>;
|
|
27
|
+
/**
|
|
28
|
+
* Attributes whose value the user is editing while focus is inside the
|
|
29
|
+
* element (the text of an input): a morph that arrives then never applies
|
|
30
|
+
* the server's value of these, as a browser never rewrites what a user typed
|
|
31
|
+
* into a native field from its `value` attribute. The server's value still
|
|
32
|
+
* becomes the baseline, and the next morph after focus has left applies a
|
|
33
|
+
* server change as usual. This is what keeps every keystroke when each one
|
|
34
|
+
* round-trips to the server and comes back a few keys behind (Livewire's
|
|
35
|
+
* `$wire.set` on `void-input`, LiveView's `phx-change` echo).
|
|
36
|
+
*
|
|
37
|
+
* ```ts
|
|
38
|
+
* static override editState = ['value'];
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
static editState?: readonly string[];
|
|
42
|
+
/**
|
|
43
|
+
* Where `aria-label` and `aria-labelledby` written on the host go, for a
|
|
44
|
+
* component whose host is not the control (a `void-select` renders a native
|
|
45
|
+
* `<select>`): a selector for the element(s) inside that are named. The
|
|
46
|
+
* host's attributes are moved onto them (a name on an element with no role
|
|
47
|
+
* is ignored and invalid), so `<void-select aria-label="Country">` names the
|
|
48
|
+
* select as `<void-field label="Country">` does. An `aria-labelledby` that
|
|
49
|
+
* `void-field` (or the author) wrote on the inner control itself is left
|
|
50
|
+
* alone. Set the attribute again to change the name, set it to an empty
|
|
51
|
+
* string to remove it; a morph to server markup without it removes it too.
|
|
52
|
+
*
|
|
53
|
+
* ```ts
|
|
54
|
+
* static override labelTarget = 'select';
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
static labelTarget?: string;
|
|
58
|
+
static get observedAttributes(): string[];
|
|
3
59
|
createRenderRoot(): this;
|
|
60
|
+
connectedCallback(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Moved within the document with `Element.moveBefore` (how projection parks
|
|
63
|
+
* and restores nodes around a morph): nothing to tear down or set up, so the
|
|
64
|
+
* browser runs this instead of disconnectedCallback plus connectedCallback.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
connectedMoveCallback(): void;
|
|
68
|
+
protected shouldUpdate(changed: PropertyValues): boolean;
|
|
69
|
+
protected update(changed: PropertyValues): void;
|
|
70
|
+
/**
|
|
71
|
+
* Sets (a string, or `true` for an empty value) or removes (`null`, `false`,
|
|
72
|
+
* `undefined`) an attribute this component manages on its own host, such as
|
|
73
|
+
* `role`, `tabindex` or `aria-checked`. Use it instead of `this.setAttribute`
|
|
74
|
+
* for every host attribute that is not a reflected property: the value is
|
|
75
|
+
* remembered, survives morphs whose server markup does not carry it, and is
|
|
76
|
+
* restored if something else removes it. A different value written by someone
|
|
77
|
+
* else (server markup that sets the attribute) is left alone.
|
|
78
|
+
*/
|
|
79
|
+
protected setHostAttribute(name: string, value: string | boolean | null | undefined): void;
|
|
80
|
+
/**
|
|
81
|
+
* Sets (or, with `null` / `undefined` / `''`, removes) a CSS custom property on
|
|
82
|
+
* the host's inline style that this component manages, with the same morph
|
|
83
|
+
* guarantees as {@link setHostAttribute}.
|
|
84
|
+
*/
|
|
85
|
+
protected setHostStyle(property: string, value: string | null | undefined): void;
|
|
86
|
+
removeAttribute(name: string): void;
|
|
87
|
+
removeAttributeNS(namespace: string | null, name: string): void;
|
|
88
|
+
toggleAttribute(name: string, force?: boolean): boolean;
|
|
89
|
+
setAttribute(name: string, value: string): void;
|
|
90
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
91
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
92
|
+
removeChild<T extends Node>(child: T): T;
|
|
93
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
94
|
+
get textContent(): string;
|
|
95
|
+
set textContent(value: string | null);
|
|
96
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
97
|
+
/**
|
|
98
|
+
* Supported pre-morph hook for server-driven DOM morphing (Turbo / idiomorph,
|
|
99
|
+
* Livewire / Alpine morph, LiveView / morphdom). The Void UI adapters call it on
|
|
100
|
+
* every `void-*` element right before the morph compares it with the server's
|
|
101
|
+
* version (`turbo:before-morph-element`, Livewire's `morph.updating`, LiveView's
|
|
102
|
+
* `dom.onBeforeElUpdated`); call it yourself when driving a morph by hand.
|
|
103
|
+
*
|
|
104
|
+
* - `incoming` is the server's version of this element, when the morpher
|
|
105
|
+
* exposes it. For every reflected property, an attribute the server changed
|
|
106
|
+
* since its last render (compared with what this element recorded) is left
|
|
107
|
+
* as the server sends it, so the server wins; every other reflected
|
|
108
|
+
* attribute is made to match the live element, so the morph keeps the
|
|
109
|
+
* client's state (a toggle the user pressed, a dialog the user opened, the
|
|
110
|
+
* defaults Lit reflected). Attributes the component manages on its host
|
|
111
|
+
* (`role`, `tabindex`, `aria-*` set with {@link setHostAttribute}, owned
|
|
112
|
+
* style custom properties) are copied onto it where the server markup does
|
|
113
|
+
* not set them. {@link VoidElement.clientState} the server overrode is
|
|
114
|
+
* discarded, and {@link morphedCallback} runs once the morph has finished.
|
|
115
|
+
* The adapters call this hook only for the server's version of an element.
|
|
116
|
+
* `incoming` may also be a detached copy of a rendered element (LiveView
|
|
117
|
+
* morphs the live element to a clone it patched while the element was
|
|
118
|
+
* locked): its copied chrome is dropped, its consumer content lifted back
|
|
119
|
+
* onto it, and it is treated as carrying no server change.
|
|
120
|
+
* - The rendered chrome is taken out of the element and parked, and consumer
|
|
121
|
+
* children are moved out of the rendered wrappers back onto the element in
|
|
122
|
+
* their original order, so the element looks like its server markup and the
|
|
123
|
+
* morph diffs like with like. Nothing is destroyed: on re-projection the same
|
|
124
|
+
* nodes go back, so native inputs keep their identity, typed text, focus and
|
|
125
|
+
* selection (where `Element.moveBefore` exists, parked nodes wait in one hidden
|
|
126
|
+
* `<void-projection-park>` under `<html>` and stay connected; elsewhere focus
|
|
127
|
+
* is restored after the move). Properties are untouched.
|
|
128
|
+
*
|
|
129
|
+
* The element re-projects on its own in a microtask, so the morph must run
|
|
130
|
+
* synchronously after this call (Turbo, idiomorph, morphdom and Livewire all
|
|
131
|
+
* do); otherwise call {@link voidAfterMorph} once it has finished.
|
|
132
|
+
*
|
|
133
|
+
* Re-entrant: a second call before the element has re-projected (two morphs
|
|
134
|
+
* in one task, as LiveView runs a patch and the patch that undoes a lock)
|
|
135
|
+
* applies the state rule to the new `incoming` and leaves the element parked.
|
|
136
|
+
*
|
|
137
|
+
* Returns true if the element is parked (now or by an earlier call that has
|
|
138
|
+
* not re-projected yet), false if it has nothing to park (the component
|
|
139
|
+
* renders nothing of its own or has not rendered yet). Safe to call on any
|
|
140
|
+
* element, any number of times.
|
|
141
|
+
*/
|
|
142
|
+
voidBeforeMorph(incoming?: Element | null): boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Supported check for adapters whose morpher can leave an element out (Turbo:
|
|
145
|
+
* cancelling `turbo:before-morph-element`; Livewire: `skip()`): returns true
|
|
146
|
+
* when `incoming`, the server's version of this element, is identical
|
|
147
|
+
* (attributes and content) to the server's previous render of it. Under the
|
|
148
|
+
* state rule such a morph would change nothing the server controls and keep
|
|
149
|
+
* everything else, so the element and its subtree can be skipped, which
|
|
150
|
+
* makes a morph of an unchanged page close to free. Otherwise it records
|
|
151
|
+
* `incoming` as the server's markup and returns false; call
|
|
152
|
+
* {@link voidBeforeMorph} next. Call it before anything modifies `incoming`.
|
|
153
|
+
*/
|
|
154
|
+
voidUnchanged(incoming: Element): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Re-projects after {@link voidBeforeMorph} without waiting for the scheduled
|
|
157
|
+
* update. Resolves once the element has rendered. A no-op for elements that are
|
|
158
|
+
* not parked.
|
|
159
|
+
*/
|
|
160
|
+
voidAfterMorph(): Promise<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* Called after a server-driven morph that changed some of this element's
|
|
163
|
+
* property-backed attributes (`names`), once the element has applied them.
|
|
164
|
+
* Form controls take the server's new value as their reset default here, as
|
|
165
|
+
* a native input's defaultValue follows its value attribute.
|
|
166
|
+
*/
|
|
167
|
+
protected serverChangedCallback(names: ReadonlySet<string>): void;
|
|
168
|
+
/**
|
|
169
|
+
* Called once a server-driven morph of this element has finished, after the
|
|
170
|
+
* updates it caused. Components whose state lives in their children (a group
|
|
171
|
+
* that marks its pressed toggle or checked item) re-apply it here: the morph
|
|
172
|
+
* may have replaced children or added ones that do not carry it yet.
|
|
173
|
+
*/
|
|
174
|
+
protected morphedCallback(): void;
|
|
4
175
|
}
|
|
5
|
-
|
|
176
|
+
export {};
|
package/dist/base.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var t = class extends e {
|
|
4
|
-
createRenderRoot() {
|
|
5
|
-
return this;
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { t as VoidElement };
|
|
1
|
+
import { t as e } from "./chunks/base-CMruMbxC.js";
|
|
2
|
+
export { e as VoidElement };
|