@deepfuture/dui-components 0.0.20 → 1.0.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 +56 -65
- package/_install.js +11 -0
- package/accordion/accordion-item.d.ts +3 -20
- package/accordion/accordion-item.js +93 -292
- package/accordion/accordion.d.ts +3 -18
- package/accordion/accordion.js +9 -247
- package/accordion/index.d.ts +6 -6
- package/accordion/index.js +5 -5
- package/alert-dialog/alert-dialog-close.d.ts +3 -14
- package/alert-dialog/alert-dialog-close.js +4 -34
- package/alert-dialog/alert-dialog-popup.d.ts +3 -32
- package/alert-dialog/alert-dialog-popup.js +68 -317
- package/alert-dialog/alert-dialog-trigger.d.ts +3 -14
- package/alert-dialog/alert-dialog-trigger.js +4 -51
- package/alert-dialog/alert-dialog.d.ts +3 -30
- package/alert-dialog/alert-dialog.js +8 -158
- package/alert-dialog/index.d.ts +11 -11
- package/alert-dialog/index.js +9 -9
- package/all.d.ts +159 -123
- package/all.js +134 -231
- package/avatar/avatar.d.ts +3 -39
- package/avatar/avatar.js +18 -238
- package/avatar/index.d.ts +4 -4
- package/avatar/index.js +3 -3
- package/badge/badge.d.ts +3 -10
- package/badge/badge.js +88 -22
- package/badge/index.d.ts +2 -3
- package/badge/index.js +2 -3
- package/breadcrumb/breadcrumb-ellipsis.d.ts +3 -12
- package/breadcrumb/breadcrumb-ellipsis.js +8 -34
- package/breadcrumb/breadcrumb-item.d.ts +3 -11
- package/breadcrumb/breadcrumb-item.js +7 -26
- package/breadcrumb/breadcrumb-link.d.ts +3 -12
- package/breadcrumb/breadcrumb-link.js +16 -26
- package/breadcrumb/breadcrumb-page.d.ts +3 -11
- package/breadcrumb/breadcrumb-page.js +8 -31
- package/breadcrumb/breadcrumb-separator.d.ts +3 -12
- package/breadcrumb/breadcrumb-separator.js +8 -31
- package/breadcrumb/breadcrumb.d.ts +3 -12
- package/breadcrumb/breadcrumb.js +10 -33
- package/breadcrumb/index.d.ts +12 -13
- package/breadcrumb/index.js +12 -13
- package/button/button.d.ts +3 -32
- package/button/button.js +221 -165
- package/button/index.d.ts +3 -3
- package/button/index.js +3 -3
- package/calendar/calendar.d.ts +3 -31
- package/calendar/calendar.js +71 -481
- package/calendar/index.d.ts +3 -3
- package/calendar/index.js +3 -3
- package/card/card.d.ts +3 -27
- package/card/card.js +80 -163
- package/card/index.d.ts +2 -3
- package/card/index.js +2 -3
- package/card-grid/card-grid.d.ts +3 -15
- package/card-grid/card-grid.js +8 -106
- package/card-grid/index.d.ts +2 -3
- package/card-grid/index.js +2 -3
- package/checkbox/checkbox-group.d.ts +3 -34
- package/checkbox/checkbox-group.js +11 -188
- package/checkbox/checkbox.d.ts +3 -47
- package/checkbox/checkbox.js +43 -341
- package/checkbox/index.d.ts +6 -6
- package/checkbox/index.js +5 -5
- package/collapsible/collapsible.d.ts +3 -20
- package/collapsible/collapsible.js +83 -277
- package/collapsible/index.d.ts +3 -3
- package/collapsible/index.js +3 -3
- package/combobox/combobox.d.ts +3 -47
- package/combobox/combobox.js +136 -538
- package/combobox/index.d.ts +4 -4
- package/combobox/index.js +3 -3
- package/command/command-empty.d.ts +3 -8
- package/command/command-empty.js +10 -88
- package/command/command-group.d.ts +3 -13
- package/command/command-group.js +15 -114
- package/command/command-input.d.ts +3 -11
- package/command/command-input.js +20 -136
- package/command/command-item.d.ts +3 -18
- package/command/command-item.js +24 -212
- package/command/command-list.d.ts +3 -7
- package/command/command-list.js +11 -79
- package/command/command-separator.d.ts +3 -5
- package/command/command-separator.js +10 -11
- package/command/command-shortcut.d.ts +3 -5
- package/command/command-shortcut.js +9 -12
- package/command/command.d.ts +3 -23
- package/command/command.js +10 -339
- package/command/index.d.ts +17 -19
- package/command/index.js +16 -18
- package/data-table/data-table.d.ts +3 -57
- package/data-table/data-table.js +86 -449
- package/data-table/index.d.ts +3 -4
- package/data-table/index.js +2 -3
- package/dialog/dialog-close.d.ts +3 -14
- package/dialog/dialog-close.js +4 -34
- package/dialog/dialog-popup.d.ts +3 -34
- package/dialog/dialog-popup.js +70 -336
- package/dialog/dialog-trigger.d.ts +3 -14
- package/dialog/dialog-trigger.js +4 -51
- package/dialog/dialog.d.ts +3 -30
- package/dialog/dialog.js +8 -158
- package/dialog/index.d.ts +11 -11
- package/dialog/index.js +9 -9
- package/dropzone/dropzone.d.ts +3 -72
- package/dropzone/dropzone.js +29 -407
- package/dropzone/index.d.ts +4 -4
- package/dropzone/index.js +3 -3
- package/field/field.d.ts +3 -30
- package/field/field.js +34 -353
- package/field/index.d.ts +1 -0
- package/field/index.js +1 -0
- package/fieldset/fieldset.d.ts +3 -18
- package/fieldset/fieldset.js +21 -110
- package/fieldset/index.d.ts +1 -0
- package/fieldset/index.js +1 -0
- package/icon/icon.d.ts +3 -15
- package/icon/icon.js +4 -33
- package/icon/index.d.ts +2 -3
- package/icon/index.js +2 -3
- package/input/index.d.ts +3 -3
- package/input/index.js +3 -3
- package/input/input.d.ts +3 -49
- package/input/input.js +57 -238
- package/menu/index.d.ts +4 -5
- package/menu/index.js +4 -5
- package/menu/menu-item.d.ts +3 -13
- package/menu/menu-item.js +41 -91
- package/menu/menu.d.ts +3 -15
- package/menu/menu.js +27 -277
- package/menubar/index.d.ts +3 -4
- package/menubar/index.js +2 -3
- package/menubar/menubar.d.ts +3 -19
- package/menubar/menubar.js +12 -183
- package/number-field/index.d.ts +3 -3
- package/number-field/index.js +3 -3
- package/number-field/number-field.d.ts +3 -55
- package/number-field/number-field.js +205 -698
- package/package.json +126 -113
- package/popover/index.d.ts +11 -11
- package/popover/index.js +9 -9
- package/popover/popover-close.d.ts +3 -12
- package/popover/popover-close.js +4 -32
- package/popover/popover-popup.d.ts +3 -18
- package/popover/popover-popup.js +28 -205
- package/popover/popover-trigger.d.ts +3 -13
- package/popover/popover-trigger.js +4 -73
- package/popover/popover.d.ts +3 -29
- package/popover/popover.js +8 -207
- package/portal/index.d.ts +3 -4
- package/portal/index.js +2 -3
- package/portal/portal.d.ts +3 -27
- package/portal/portal.js +8 -157
- package/preview-card/index.d.ts +9 -9
- package/preview-card/index.js +7 -7
- package/preview-card/preview-card-popup.d.ts +3 -14
- package/preview-card/preview-card-popup.js +29 -193
- package/preview-card/preview-card-trigger.d.ts +3 -12
- package/preview-card/preview-card-trigger.js +4 -74
- package/preview-card/preview-card.d.ts +3 -33
- package/preview-card/preview-card.js +8 -239
- package/progress/index.d.ts +2 -3
- package/progress/index.js +2 -3
- package/progress/progress.d.ts +3 -17
- package/progress/progress.js +28 -130
- package/radio/index.d.ts +6 -6
- package/radio/index.js +5 -5
- package/radio/radio-group.d.ts +3 -37
- package/radio/radio-group.js +8 -200
- package/radio/radio.d.ts +3 -28
- package/radio/radio.js +38 -213
- package/scroll-area/index.d.ts +2 -3
- package/scroll-area/index.js +2 -3
- package/scroll-area/scroll-area.d.ts +3 -36
- package/scroll-area/scroll-area.js +25 -546
- package/select/index.d.ts +3 -4
- package/select/index.js +2 -3
- package/select/select.d.ts +3 -37
- package/select/select.js +115 -403
- package/separator/index.d.ts +2 -3
- package/separator/index.js +2 -3
- package/separator/separator.d.ts +3 -10
- package/separator/separator.js +23 -84
- package/sidebar/index.d.ts +29 -29
- package/sidebar/index.js +27 -32
- package/sidebar/sidebar-content.d.ts +3 -12
- package/sidebar/sidebar-content.js +7 -29
- package/sidebar/sidebar-footer.d.ts +3 -10
- package/sidebar/sidebar-footer.js +7 -20
- package/sidebar/sidebar-group-label.d.ts +3 -15
- package/sidebar/sidebar-group-label.js +17 -41
- package/sidebar/sidebar-group.d.ts +3 -13
- package/sidebar/sidebar-group.js +7 -24
- package/sidebar/sidebar-header.d.ts +3 -10
- package/sidebar/sidebar-header.js +7 -16
- package/sidebar/sidebar-inset.d.ts +3 -13
- package/sidebar/sidebar-inset.js +7 -28
- package/sidebar/sidebar-menu-button.d.ts +3 -26
- package/sidebar/sidebar-menu-button.js +60 -217
- package/sidebar/sidebar-menu-item.d.ts +3 -10
- package/sidebar/sidebar-menu-item.js +7 -19
- package/sidebar/sidebar-menu.d.ts +3 -12
- package/sidebar/sidebar-menu.js +7 -25
- package/sidebar/sidebar-provider.d.ts +3 -34
- package/sidebar/sidebar-provider.js +22 -232
- package/sidebar/sidebar-separator.d.ts +3 -10
- package/sidebar/sidebar-separator.js +9 -19
- package/sidebar/sidebar-trigger.d.ts +3 -14
- package/sidebar/sidebar-trigger.js +10 -46
- package/sidebar/sidebar.d.ts +3 -19
- package/sidebar/sidebar.js +65 -262
- package/slider/index.d.ts +3 -3
- package/slider/index.js +3 -3
- package/slider/slider.d.ts +3 -45
- package/slider/slider.js +97 -382
- package/spinner/index.d.ts +2 -3
- package/spinner/index.js +2 -3
- package/spinner/spinner.d.ts +3 -11
- package/spinner/spinner.js +20 -163
- package/split-button/index.d.ts +3 -1
- package/split-button/index.js +3 -1
- package/split-button/split-button.d.ts +3 -31
- package/split-button/split-button.js +307 -384
- package/stepper/index.d.ts +3 -3
- package/stepper/index.js +3 -3
- package/stepper/stepper.d.ts +3 -41
- package/stepper/stepper.js +57 -381
- package/switch/index.d.ts +3 -3
- package/switch/index.js +3 -3
- package/switch/switch.d.ts +3 -30
- package/switch/switch.js +63 -228
- package/tabs/index.d.ts +12 -12
- package/tabs/index.js +11 -11
- package/tabs/tab.d.ts +3 -14
- package/tabs/tab.js +33 -131
- package/tabs/tabs-indicator.d.ts +3 -9
- package/tabs/tabs-indicator.js +17 -22
- package/tabs/tabs-list.d.ts +3 -15
- package/tabs/tabs-list.js +14 -113
- package/tabs/tabs-panel.d.ts +3 -16
- package/tabs/tabs-panel.js +32 -114
- package/tabs/tabs.d.ts +3 -22
- package/tabs/tabs.js +8 -170
- package/textarea/index.d.ts +4 -4
- package/textarea/index.js +3 -3
- package/textarea/textarea.d.ts +3 -36
- package/textarea/textarea.js +63 -220
- package/toggle/index.d.ts +6 -6
- package/toggle/index.js +5 -5
- package/toggle/toggle-group.d.ts +3 -27
- package/toggle/toggle-group.js +9 -224
- package/toggle/toggle.d.ts +3 -26
- package/toggle/toggle.js +94 -178
- package/tokens/properties.css +361 -0
- package/tokens/prose.css +250 -0
- package/tokens/prose.d.ts +2 -0
- package/tokens/prose.js +4 -0
- package/tokens/tokens-raw.d.ts +2 -0
- package/tokens/tokens-raw.js +2 -0
- package/tokens/tokens.css +409 -0
- package/tokens/tokens.d.ts +2 -0
- package/tokens/tokens.js +5 -0
- package/toolbar/index.d.ts +2 -3
- package/toolbar/index.js +2 -3
- package/toolbar/toolbar.d.ts +3 -11
- package/toolbar/toolbar.js +25 -116
- package/tooltip/index.d.ts +9 -9
- package/tooltip/index.js +7 -7
- package/tooltip/tooltip-popup.d.ts +3 -14
- package/tooltip/tooltip-popup.js +32 -185
- package/tooltip/tooltip-trigger.d.ts +3 -14
- package/tooltip/tooltip-trigger.js +5 -148
- package/tooltip/tooltip.d.ts +3 -35
- package/tooltip/tooltip.js +8 -253
- package/trunc/index.d.ts +2 -3
- package/trunc/index.js +2 -3
- package/trunc/trunc.d.ts +3 -17
- package/trunc/trunc.js +10 -108
- package/_deprecated/center/center.d.ts +0 -14
- package/_deprecated/center/center.js +0 -37
- package/_deprecated/center/index.d.ts +0 -3
- package/_deprecated/center/index.js +0 -3
- package/_deprecated/center/register.js +0 -4
- package/_deprecated/hstack/hstack.d.ts +0 -25
- package/_deprecated/hstack/hstack.js +0 -187
- package/_deprecated/hstack/index.d.ts +0 -4
- package/_deprecated/hstack/index.js +0 -3
- package/_deprecated/hstack/register.d.ts +0 -1
- package/_deprecated/hstack/register.js +0 -4
- package/_deprecated/page-inset/index.d.ts +0 -3
- package/_deprecated/page-inset/index.js +0 -3
- package/_deprecated/page-inset/page-inset.d.ts +0 -28
- package/_deprecated/page-inset/page-inset.js +0 -151
- package/_deprecated/page-inset/register.d.ts +0 -1
- package/_deprecated/page-inset/register.js +0 -4
- package/_deprecated/vstack/index.d.ts +0 -3
- package/_deprecated/vstack/index.js +0 -3
- package/_deprecated/vstack/register.d.ts +0 -1
- package/_deprecated/vstack/register.js +0 -4
- package/_deprecated/vstack/vstack.d.ts +0 -17
- package/_deprecated/vstack/vstack.js +0 -125
- package/accordion/accordion-context.d.ts +0 -15
- package/accordion/accordion-context.js +0 -3
- package/alert-dialog/alert-dialog-context.d.ts +0 -13
- package/alert-dialog/alert-dialog-context.js +0 -3
- package/checkbox/checkbox-group-context.d.ts +0 -11
- package/checkbox/checkbox-group-context.js +0 -3
- package/command/command-context.d.ts +0 -30
- package/command/command-context.js +0 -3
- package/command/command-score.d.ts +0 -6
- package/command/command-score.js +0 -31
- package/dialog/dialog-context.d.ts +0 -13
- package/dialog/dialog-context.js +0 -3
- package/global.d.ts +0 -179
- package/menubar/menubar-context.d.ts +0 -9
- package/menubar/menubar-context.js +0 -2
- package/popover/popover-context.d.ts +0 -17
- package/popover/popover-context.js +0 -3
- package/preview-card/preview-card-context.d.ts +0 -16
- package/preview-card/preview-card-context.js +0 -3
- package/radio/radio-group-context.d.ts +0 -11
- package/radio/radio-group-context.js +0 -2
- package/sidebar/sidebar-context.d.ts +0 -15
- package/sidebar/sidebar-context.js +0 -3
- package/split-button/register.d.ts +0 -1
- package/split-button/register.js +0 -4
- package/tabs/tabs-context.d.ts +0 -8
- package/tabs/tabs-context.js +0 -2
- package/toggle/toggle-group-context.d.ts +0 -9
- package/toggle/toggle-group-context.js +0 -2
- package/tooltip/tooltip-context.d.ts +0 -17
- package/tooltip/tooltip-context.js +0 -3
- /package/{_deprecated/center/register.d.ts → _install.d.ts} +0 -0
|
@@ -1,239 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var context = {};
|
|
10
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
-
if (kind === "accessor") {
|
|
15
|
-
if (result === void 0) continue;
|
|
16
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
-
}
|
|
21
|
-
else if (_ = accept(result)) {
|
|
22
|
-
if (kind === "field") initializers.unshift(_);
|
|
23
|
-
else descriptor[key] = _;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
-
done = true;
|
|
28
|
-
};
|
|
29
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
-
var useValue = arguments.length > 2;
|
|
31
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
-
}
|
|
34
|
-
return useValue ? value : void 0;
|
|
35
|
-
};
|
|
36
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
39
|
-
};
|
|
40
|
-
import { css, html, LitElement } from "lit";
|
|
41
|
-
import { property, state } from "lit/decorators.js";
|
|
42
|
-
import { provide } from "@lit/context";
|
|
43
|
-
import { base } from "@deepfuture/dui-core/base";
|
|
44
|
-
import { customEvent } from "@deepfuture/dui-core/event";
|
|
45
|
-
import { previewCardContext, } from "./preview-card-context.js";
|
|
46
|
-
export const openChangeEvent = customEvent("open-change", { bubbles: true, composed: true });
|
|
47
|
-
const hostStyles = css `
|
|
48
|
-
:host {
|
|
49
|
-
display: contents;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
/**
|
|
53
|
-
* `<dui-preview-card>` — A preview card root that provides context for trigger and popup.
|
|
54
|
-
*
|
|
55
|
-
* @slot - Default slot for dui-preview-card-trigger and dui-preview-card-popup.
|
|
56
|
-
* @fires open-change - Dispatched when the preview card opens or closes.
|
|
57
|
-
*/
|
|
58
|
-
let DuiPreviewCard = (() => {
|
|
59
|
-
let _classSuper = LitElement;
|
|
60
|
-
let _open_decorators;
|
|
61
|
-
let _open_initializers = [];
|
|
62
|
-
let _open_extraInitializers = [];
|
|
63
|
-
let _defaultOpen_decorators;
|
|
64
|
-
let _defaultOpen_initializers = [];
|
|
65
|
-
let _defaultOpen_extraInitializers = [];
|
|
66
|
-
let _side_decorators;
|
|
67
|
-
let _side_initializers = [];
|
|
68
|
-
let _side_extraInitializers = [];
|
|
69
|
-
let _sideOffset_decorators;
|
|
70
|
-
let _sideOffset_initializers = [];
|
|
71
|
-
let _sideOffset_extraInitializers = [];
|
|
72
|
-
let _delay_decorators;
|
|
73
|
-
let _delay_initializers = [];
|
|
74
|
-
let _delay_extraInitializers = [];
|
|
75
|
-
let _closeDelay_decorators;
|
|
76
|
-
let _closeDelay_initializers = [];
|
|
77
|
-
let _closeDelay_extraInitializers = [];
|
|
78
|
-
let _private_internalOpen_decorators;
|
|
79
|
-
let _private_internalOpen_initializers = [];
|
|
80
|
-
let _private_internalOpen_extraInitializers = [];
|
|
81
|
-
let _private_internalOpen_descriptor;
|
|
82
|
-
let _private_triggerEl_decorators;
|
|
83
|
-
let _private_triggerEl_initializers = [];
|
|
84
|
-
let _private_triggerEl_extraInitializers = [];
|
|
85
|
-
let _private_triggerEl_descriptor;
|
|
86
|
-
let __ctx_decorators;
|
|
87
|
-
let __ctx_initializers = [];
|
|
88
|
-
let __ctx_extraInitializers = [];
|
|
89
|
-
return class DuiPreviewCard extends _classSuper {
|
|
90
|
-
static {
|
|
91
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
92
|
-
_open_decorators = [property({ type: Boolean, reflect: true })];
|
|
93
|
-
_defaultOpen_decorators = [property({ type: Boolean, attribute: "default-open" })];
|
|
94
|
-
_side_decorators = [property({ reflect: true })];
|
|
95
|
-
_sideOffset_decorators = [property({ type: Number, attribute: "side-offset" })];
|
|
96
|
-
_delay_decorators = [property({ type: Number })];
|
|
97
|
-
_closeDelay_decorators = [property({ type: Number, attribute: "close-delay" })];
|
|
98
|
-
_private_internalOpen_decorators = [state()];
|
|
99
|
-
_private_triggerEl_decorators = [state()];
|
|
100
|
-
__ctx_decorators = [provide({ context: previewCardContext }), state()];
|
|
101
|
-
__esDecorate(this, null, _open_decorators, { kind: "accessor", name: "open", static: false, private: false, access: { has: obj => "open" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);
|
|
102
|
-
__esDecorate(this, null, _defaultOpen_decorators, { kind: "accessor", name: "defaultOpen", static: false, private: false, access: { has: obj => "defaultOpen" in obj, get: obj => obj.defaultOpen, set: (obj, value) => { obj.defaultOpen = value; } }, metadata: _metadata }, _defaultOpen_initializers, _defaultOpen_extraInitializers);
|
|
103
|
-
__esDecorate(this, null, _side_decorators, { kind: "accessor", name: "side", static: false, private: false, access: { has: obj => "side" in obj, get: obj => obj.side, set: (obj, value) => { obj.side = value; } }, metadata: _metadata }, _side_initializers, _side_extraInitializers);
|
|
104
|
-
__esDecorate(this, null, _sideOffset_decorators, { kind: "accessor", name: "sideOffset", static: false, private: false, access: { has: obj => "sideOffset" in obj, get: obj => obj.sideOffset, set: (obj, value) => { obj.sideOffset = value; } }, metadata: _metadata }, _sideOffset_initializers, _sideOffset_extraInitializers);
|
|
105
|
-
__esDecorate(this, null, _delay_decorators, { kind: "accessor", name: "delay", static: false, private: false, access: { has: obj => "delay" in obj, get: obj => obj.delay, set: (obj, value) => { obj.delay = value; } }, metadata: _metadata }, _delay_initializers, _delay_extraInitializers);
|
|
106
|
-
__esDecorate(this, null, _closeDelay_decorators, { kind: "accessor", name: "closeDelay", static: false, private: false, access: { has: obj => "closeDelay" in obj, get: obj => obj.closeDelay, set: (obj, value) => { obj.closeDelay = value; } }, metadata: _metadata }, _closeDelay_initializers, _closeDelay_extraInitializers);
|
|
107
|
-
__esDecorate(this, _private_internalOpen_descriptor = { get: __setFunctionName(function () { return this.#internalOpen_accessor_storage; }, "#internalOpen", "get"), set: __setFunctionName(function (value) { this.#internalOpen_accessor_storage = value; }, "#internalOpen", "set") }, _private_internalOpen_decorators, { kind: "accessor", name: "#internalOpen", static: false, private: true, access: { has: obj => #internalOpen in obj, get: obj => obj.#internalOpen, set: (obj, value) => { obj.#internalOpen = value; } }, metadata: _metadata }, _private_internalOpen_initializers, _private_internalOpen_extraInitializers);
|
|
108
|
-
__esDecorate(this, _private_triggerEl_descriptor = { get: __setFunctionName(function () { return this.#triggerEl_accessor_storage; }, "#triggerEl", "get"), set: __setFunctionName(function (value) { this.#triggerEl_accessor_storage = value; }, "#triggerEl", "set") }, _private_triggerEl_decorators, { kind: "accessor", name: "#triggerEl", static: false, private: true, access: { has: obj => #triggerEl in obj, get: obj => obj.#triggerEl, set: (obj, value) => { obj.#triggerEl = value; } }, metadata: _metadata }, _private_triggerEl_initializers, _private_triggerEl_extraInitializers);
|
|
109
|
-
__esDecorate(this, null, __ctx_decorators, { kind: "accessor", name: "_ctx", static: false, private: false, access: { has: obj => "_ctx" in obj, get: obj => obj._ctx, set: (obj, value) => { obj._ctx = value; } }, metadata: _metadata }, __ctx_initializers, __ctx_extraInitializers);
|
|
110
|
-
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
111
|
-
}
|
|
112
|
-
static tagName = "dui-preview-card";
|
|
113
|
-
static styles = [base, hostStyles];
|
|
114
|
-
#open_accessor_storage = __runInitializers(this, _open_initializers, false);
|
|
115
|
-
/** Controlled open state. */
|
|
116
|
-
get open() { return this.#open_accessor_storage; }
|
|
117
|
-
set open(value) { this.#open_accessor_storage = value; }
|
|
118
|
-
#defaultOpen_accessor_storage = (__runInitializers(this, _open_extraInitializers), __runInitializers(this, _defaultOpen_initializers, false));
|
|
119
|
-
/** Default open state for uncontrolled usage. */
|
|
120
|
-
get defaultOpen() { return this.#defaultOpen_accessor_storage; }
|
|
121
|
-
set defaultOpen(value) { this.#defaultOpen_accessor_storage = value; }
|
|
122
|
-
#side_accessor_storage = (__runInitializers(this, _defaultOpen_extraInitializers), __runInitializers(this, _side_initializers, "top"));
|
|
123
|
-
/** Which side of the trigger the preview card appears on. */
|
|
124
|
-
get side() { return this.#side_accessor_storage; }
|
|
125
|
-
set side(value) { this.#side_accessor_storage = value; }
|
|
126
|
-
#sideOffset_accessor_storage = (__runInitializers(this, _side_extraInitializers), __runInitializers(this, _sideOffset_initializers, 8));
|
|
127
|
-
/** Offset from the trigger in pixels. */
|
|
128
|
-
get sideOffset() { return this.#sideOffset_accessor_storage; }
|
|
129
|
-
set sideOffset(value) { this.#sideOffset_accessor_storage = value; }
|
|
130
|
-
#delay_accessor_storage = (__runInitializers(this, _sideOffset_extraInitializers), __runInitializers(this, _delay_initializers, 400));
|
|
131
|
-
/** Delay before opening in milliseconds. */
|
|
132
|
-
get delay() { return this.#delay_accessor_storage; }
|
|
133
|
-
set delay(value) { this.#delay_accessor_storage = value; }
|
|
134
|
-
#closeDelay_accessor_storage = (__runInitializers(this, _delay_extraInitializers), __runInitializers(this, _closeDelay_initializers, 300));
|
|
135
|
-
/** Delay before closing in milliseconds. */
|
|
136
|
-
get closeDelay() { return this.#closeDelay_accessor_storage; }
|
|
137
|
-
set closeDelay(value) { this.#closeDelay_accessor_storage = value; }
|
|
138
|
-
#internalOpen_accessor_storage = (__runInitializers(this, _closeDelay_extraInitializers), __runInitializers(this, _private_internalOpen_initializers, false));
|
|
139
|
-
get #internalOpen() { return _private_internalOpen_descriptor.get.call(this); }
|
|
140
|
-
set #internalOpen(value) { return _private_internalOpen_descriptor.set.call(this, value); }
|
|
141
|
-
#triggerEl_accessor_storage = (__runInitializers(this, _private_internalOpen_extraInitializers), __runInitializers(this, _private_triggerEl_initializers, void 0));
|
|
142
|
-
get #triggerEl() { return _private_triggerEl_descriptor.get.call(this); }
|
|
143
|
-
set #triggerEl(value) { return _private_triggerEl_descriptor.set.call(this, value); }
|
|
144
|
-
#openTimeout = __runInitializers(this, _private_triggerEl_extraInitializers);
|
|
145
|
-
#closeTimeout;
|
|
146
|
-
#triggerId = `preview-card-trigger-${crypto.randomUUID().slice(0, 8)}`;
|
|
147
|
-
#popupId = `preview-card-popup-${crypto.randomUUID().slice(0, 8)}`;
|
|
148
|
-
#_ctx_accessor_storage = __runInitializers(this, __ctx_initializers, {
|
|
149
|
-
open: false,
|
|
150
|
-
triggerId: this.#triggerId,
|
|
151
|
-
popupId: this.#popupId,
|
|
152
|
-
side: "top",
|
|
153
|
-
sideOffset: 8,
|
|
154
|
-
triggerEl: undefined,
|
|
155
|
-
openPreviewCard: () => this.#scheduleOpen(),
|
|
156
|
-
closePreviewCard: () => this.#scheduleClose(),
|
|
157
|
-
setTriggerEl: (el) => this.#setTriggerEl(el),
|
|
158
|
-
});
|
|
159
|
-
get _ctx() { return this.#_ctx_accessor_storage; }
|
|
160
|
-
set _ctx(value) { this.#_ctx_accessor_storage = value; }
|
|
161
|
-
connectedCallback() {
|
|
162
|
-
super.connectedCallback();
|
|
163
|
-
if (this.defaultOpen) {
|
|
164
|
-
this.#internalOpen = true;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
disconnectedCallback() {
|
|
168
|
-
super.disconnectedCallback();
|
|
169
|
-
this.#clearTimeouts();
|
|
170
|
-
}
|
|
171
|
-
willUpdate(changed) {
|
|
172
|
-
const isOpen = this.open || this.#internalOpen;
|
|
173
|
-
if (changed.has("open") ||
|
|
174
|
-
changed.has("side") ||
|
|
175
|
-
changed.has("sideOffset") ||
|
|
176
|
-
this._ctx.open !== isOpen ||
|
|
177
|
-
this._ctx.triggerEl !== this.#triggerEl) {
|
|
178
|
-
this._ctx = {
|
|
179
|
-
...this._ctx,
|
|
180
|
-
open: isOpen,
|
|
181
|
-
side: this.side,
|
|
182
|
-
sideOffset: this.sideOffset,
|
|
183
|
-
triggerEl: this.#triggerEl,
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
#clearTimeouts() {
|
|
188
|
-
if (this.#openTimeout) {
|
|
189
|
-
clearTimeout(this.#openTimeout);
|
|
190
|
-
this.#openTimeout = undefined;
|
|
191
|
-
}
|
|
192
|
-
if (this.#closeTimeout) {
|
|
193
|
-
clearTimeout(this.#closeTimeout);
|
|
194
|
-
this.#closeTimeout = undefined;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
#scheduleOpen() {
|
|
198
|
-
this.#clearTimeouts();
|
|
199
|
-
if (this.delay <= 0) {
|
|
200
|
-
this.#doOpen();
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
this.#openTimeout = setTimeout(() => this.#doOpen(), this.delay);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
#scheduleClose() {
|
|
207
|
-
this.#clearTimeouts();
|
|
208
|
-
if (this.closeDelay <= 0) {
|
|
209
|
-
this.#doClose();
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
this.#closeTimeout = setTimeout(() => this.#doClose(), this.closeDelay);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
#doOpen() {
|
|
216
|
-
if (this.#internalOpen)
|
|
217
|
-
return;
|
|
218
|
-
this.#internalOpen = true;
|
|
219
|
-
this.dispatchEvent(openChangeEvent({ open: true }));
|
|
220
|
-
}
|
|
221
|
-
#doClose() {
|
|
222
|
-
if (!this.#internalOpen)
|
|
223
|
-
return;
|
|
224
|
-
this.#internalOpen = false;
|
|
225
|
-
this.dispatchEvent(openChangeEvent({ open: false }));
|
|
226
|
-
}
|
|
227
|
-
#setTriggerEl(el) {
|
|
228
|
-
this.#triggerEl = el;
|
|
229
|
-
}
|
|
230
|
-
render() {
|
|
231
|
-
return html `<slot></slot>`;
|
|
232
|
-
}
|
|
233
|
-
constructor() {
|
|
234
|
-
super(...arguments);
|
|
235
|
-
__runInitializers(this, __ctx_extraInitializers);
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
})();
|
|
239
|
-
export { DuiPreviewCard };
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
import { DuiPreviewCardPrimitive } from "@deepfuture/dui-primitives/preview-card";
|
|
3
|
+
import "../_install.js";
|
|
4
|
+
const styles = css ``;
|
|
5
|
+
export class DuiPreviewCard extends DuiPreviewCardPrimitive {
|
|
6
|
+
static styles = [...DuiPreviewCardPrimitive.styles, styles];
|
|
7
|
+
}
|
|
8
|
+
customElements.define(DuiPreviewCard.tagName, DuiPreviewCard);
|
package/progress/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { DuiProgress };
|
|
3
|
-
export declare const progressFamily: (typeof DuiProgress)[];
|
|
1
|
+
import "./progress.js";
|
|
2
|
+
export { DuiProgress } from "./progress.js";
|
package/progress/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { DuiProgress };
|
|
3
|
-
export const progressFamily = [DuiProgress];
|
|
1
|
+
import "./progress.js";
|
|
2
|
+
export { DuiProgress } from "./progress.js";
|
package/progress/progress.d.ts
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* Set `value` to a number for determinate progress, or leave `null` for indeterminate.
|
|
6
|
-
*
|
|
7
|
-
* @csspart root - The outer container.
|
|
8
|
-
* @csspart track - The progress track.
|
|
9
|
-
* @csspart indicator - The filled indicator.
|
|
10
|
-
*/
|
|
11
|
-
export declare class DuiProgress extends LitElement {
|
|
12
|
-
#private;
|
|
13
|
-
static tagName: "dui-progress";
|
|
1
|
+
import { DuiProgressPrimitive } from "@deepfuture/dui-primitives/progress";
|
|
2
|
+
import "../_install.js";
|
|
3
|
+
export declare class DuiProgress extends DuiProgressPrimitive {
|
|
14
4
|
static styles: import("lit").CSSResult[];
|
|
15
|
-
accessor value: number | null;
|
|
16
|
-
accessor min: number;
|
|
17
|
-
accessor max: number;
|
|
18
|
-
render(): TemplateResult;
|
|
19
5
|
}
|
package/progress/progress.js
CHANGED
|
@@ -1,140 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
5
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
6
|
-
var _, done = false;
|
|
7
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8
|
-
var context = {};
|
|
9
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
11
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
12
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
13
|
-
if (kind === "accessor") {
|
|
14
|
-
if (result === void 0) continue;
|
|
15
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
16
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
17
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
18
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
19
|
-
}
|
|
20
|
-
else if (_ = accept(result)) {
|
|
21
|
-
if (kind === "field") initializers.unshift(_);
|
|
22
|
-
else descriptor[key] = _;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
26
|
-
done = true;
|
|
27
|
-
};
|
|
28
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
29
|
-
var useValue = arguments.length > 2;
|
|
30
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
31
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
32
|
-
}
|
|
33
|
-
return useValue ? value : void 0;
|
|
34
|
-
};
|
|
35
|
-
import { css, html, LitElement, nothing } from "lit";
|
|
36
|
-
import { property } from "lit/decorators.js";
|
|
37
|
-
import { base } from "@deepfuture/dui-core/base";
|
|
38
|
-
/** Structural styles only — layout CSS. */
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
import { DuiProgressPrimitive } from "@deepfuture/dui-primitives/progress";
|
|
3
|
+
import "../_install.js";
|
|
39
4
|
const styles = css `
|
|
40
5
|
:host {
|
|
41
|
-
|
|
6
|
+
--progress-height: var(--space-2);
|
|
42
7
|
}
|
|
43
8
|
|
|
44
9
|
[part="track"] {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
10
|
+
height: var(--progress-height);
|
|
11
|
+
background: color-mix(in oklch, var(--foreground) 08%, transparent);
|
|
12
|
+
border-radius: var(--radius-full);
|
|
48
13
|
}
|
|
49
14
|
|
|
50
15
|
[part="indicator"] {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
16
|
+
background: var(--accent);
|
|
17
|
+
border-radius: var(--radius-full);
|
|
18
|
+
transition: width var(--duration-normal) var(--ease-out-3);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[part="root"][data-indeterminate] [part="indicator"] {
|
|
22
|
+
width: 40% !important;
|
|
23
|
+
animation: progress-indeterminate 1.5s ease-in-out infinite;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes progress-indeterminate {
|
|
27
|
+
0% {
|
|
28
|
+
left: -40%;
|
|
29
|
+
}
|
|
30
|
+
100% {
|
|
31
|
+
left: 100%;
|
|
32
|
+
}
|
|
56
33
|
}
|
|
57
34
|
`;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
* @csspart root - The outer container.
|
|
64
|
-
* @csspart track - The progress track.
|
|
65
|
-
* @csspart indicator - The filled indicator.
|
|
66
|
-
*/
|
|
67
|
-
let DuiProgress = (() => {
|
|
68
|
-
let _classSuper = LitElement;
|
|
69
|
-
let _value_decorators;
|
|
70
|
-
let _value_initializers = [];
|
|
71
|
-
let _value_extraInitializers = [];
|
|
72
|
-
let _min_decorators;
|
|
73
|
-
let _min_initializers = [];
|
|
74
|
-
let _min_extraInitializers = [];
|
|
75
|
-
let _max_decorators;
|
|
76
|
-
let _max_initializers = [];
|
|
77
|
-
let _max_extraInitializers = [];
|
|
78
|
-
return class DuiProgress extends _classSuper {
|
|
79
|
-
static {
|
|
80
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
81
|
-
_value_decorators = [property({ type: Number })];
|
|
82
|
-
_min_decorators = [property({ type: Number })];
|
|
83
|
-
_max_decorators = [property({ type: Number })];
|
|
84
|
-
__esDecorate(this, null, _value_decorators, { kind: "accessor", name: "value", static: false, private: false, access: { has: obj => "value" in obj, get: obj => obj.value, set: (obj, value) => { obj.value = value; } }, metadata: _metadata }, _value_initializers, _value_extraInitializers);
|
|
85
|
-
__esDecorate(this, null, _min_decorators, { kind: "accessor", name: "min", static: false, private: false, access: { has: obj => "min" in obj, get: obj => obj.min, set: (obj, value) => { obj.min = value; } }, metadata: _metadata }, _min_initializers, _min_extraInitializers);
|
|
86
|
-
__esDecorate(this, null, _max_decorators, { kind: "accessor", name: "max", static: false, private: false, access: { has: obj => "max" in obj, get: obj => obj.max, set: (obj, value) => { obj.max = value; } }, metadata: _metadata }, _max_initializers, _max_extraInitializers);
|
|
87
|
-
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
88
|
-
}
|
|
89
|
-
static tagName = "dui-progress";
|
|
90
|
-
static styles = [base, styles];
|
|
91
|
-
#value_accessor_storage = __runInitializers(this, _value_initializers, null);
|
|
92
|
-
get value() { return this.#value_accessor_storage; }
|
|
93
|
-
set value(value) { this.#value_accessor_storage = value; }
|
|
94
|
-
#min_accessor_storage = (__runInitializers(this, _value_extraInitializers), __runInitializers(this, _min_initializers, 0));
|
|
95
|
-
get min() { return this.#min_accessor_storage; }
|
|
96
|
-
set min(value) { this.#min_accessor_storage = value; }
|
|
97
|
-
#max_accessor_storage = (__runInitializers(this, _min_extraInitializers), __runInitializers(this, _max_initializers, 100));
|
|
98
|
-
get max() { return this.#max_accessor_storage; }
|
|
99
|
-
set max(value) { this.#max_accessor_storage = value; }
|
|
100
|
-
get #percent() {
|
|
101
|
-
if (this.value === null)
|
|
102
|
-
return 0;
|
|
103
|
-
const range = this.max - this.min;
|
|
104
|
-
if (range <= 0)
|
|
105
|
-
return 0;
|
|
106
|
-
return Math.max(0, Math.min(100, ((this.value - this.min) / range) * 100));
|
|
107
|
-
}
|
|
108
|
-
get #isIndeterminate() {
|
|
109
|
-
return this.value === null;
|
|
110
|
-
}
|
|
111
|
-
get #isComplete() {
|
|
112
|
-
return this.value !== null && this.value >= this.max;
|
|
113
|
-
}
|
|
114
|
-
render() {
|
|
115
|
-
const percent = this.#percent;
|
|
116
|
-
return html `
|
|
117
|
-
<div
|
|
118
|
-
part="root"
|
|
119
|
-
role="progressbar"
|
|
120
|
-
aria-valuenow="${this.value ?? nothing}"
|
|
121
|
-
aria-valuemin="${this.min}"
|
|
122
|
-
aria-valuemax="${this.max}"
|
|
123
|
-
?data-complete="${this.#isComplete}"
|
|
124
|
-
?data-progressing="${!this.#isIndeterminate && !this.#isComplete}"
|
|
125
|
-
?data-indeterminate="${this.#isIndeterminate}"
|
|
126
|
-
style="--progress-value: ${percent}%"
|
|
127
|
-
>
|
|
128
|
-
<div part="track">
|
|
129
|
-
<div part="indicator"></div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
`;
|
|
133
|
-
}
|
|
134
|
-
constructor() {
|
|
135
|
-
super(...arguments);
|
|
136
|
-
__runInitializers(this, _max_extraInitializers);
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
})();
|
|
140
|
-
export { DuiProgress };
|
|
35
|
+
export class DuiProgress extends DuiProgressPrimitive {
|
|
36
|
+
static styles = [...DuiProgressPrimitive.styles, styles];
|
|
37
|
+
}
|
|
38
|
+
customElements.define(DuiProgress.tagName, DuiProgress);
|
package/radio/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { DuiRadioGroup
|
|
5
|
-
export type { RadioGroupContext } from "
|
|
6
|
-
export
|
|
1
|
+
import "./radio.js";
|
|
2
|
+
import "./radio-group.js";
|
|
3
|
+
export { DuiRadio } from "./radio.js";
|
|
4
|
+
export { DuiRadioGroup } from "./radio-group.js";
|
|
5
|
+
export type { RadioGroupContext } from "@deepfuture/dui-primitives/radio";
|
|
6
|
+
export { valueChangeEvent } from "@deepfuture/dui-primitives/radio";
|
package/radio/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { DuiRadioGroup
|
|
5
|
-
export
|
|
1
|
+
import "./radio.js";
|
|
2
|
+
import "./radio-group.js";
|
|
3
|
+
export { DuiRadio } from "./radio.js";
|
|
4
|
+
export { DuiRadioGroup } from "./radio-group.js";
|
|
5
|
+
export { valueChangeEvent } from "@deepfuture/dui-primitives/radio";
|
package/radio/radio-group.d.ts
CHANGED
|
@@ -1,39 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export declare const valueChangeEvent: (detail: {
|
|
5
|
-
value: string;
|
|
6
|
-
}) => CustomEvent<{
|
|
7
|
-
value: string;
|
|
8
|
-
}>;
|
|
9
|
-
/**
|
|
10
|
-
* `<dui-radio-group>` — Groups multiple radio buttons with shared state.
|
|
11
|
-
*
|
|
12
|
-
* Only one radio can be selected at a time within a group. Supports
|
|
13
|
-
* controlled and uncontrolled usage.
|
|
14
|
-
*
|
|
15
|
-
* @slot - Default slot for `<dui-radio>` children.
|
|
16
|
-
* @csspart root - The group container element.
|
|
17
|
-
* @fires value-change - Fired when the selected value changes. Detail: { value: string }
|
|
18
|
-
*/
|
|
19
|
-
export declare class DuiRadioGroup extends LitElement {
|
|
20
|
-
#private;
|
|
21
|
-
static tagName: "dui-radio-group";
|
|
1
|
+
import { DuiRadioGroupPrimitive } from "@deepfuture/dui-primitives/radio";
|
|
2
|
+
import "../_install.js";
|
|
3
|
+
export declare class DuiRadioGroup extends DuiRadioGroupPrimitive {
|
|
22
4
|
static styles: import("lit").CSSResult[];
|
|
23
|
-
/** The name attribute for form submission. */
|
|
24
|
-
accessor name: string | undefined;
|
|
25
|
-
/** Selected value (controlled). */
|
|
26
|
-
accessor value: string | undefined;
|
|
27
|
-
/** Initial selected value for uncontrolled usage. */
|
|
28
|
-
accessor defaultValue: string | undefined;
|
|
29
|
-
/** Whether all radios in the group are disabled. */
|
|
30
|
-
accessor disabled: boolean;
|
|
31
|
-
/** Whether all radios in the group are read-only. */
|
|
32
|
-
accessor readOnly: boolean;
|
|
33
|
-
/** Whether a selection is required. */
|
|
34
|
-
accessor required: boolean;
|
|
35
|
-
accessor _ctx: RadioGroupContext;
|
|
36
|
-
connectedCallback(): void;
|
|
37
|
-
willUpdate(): void;
|
|
38
|
-
render(): TemplateResult;
|
|
39
5
|
}
|