@deepfuture/dui-components 0.0.12 → 0.0.13

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.
Files changed (89) hide show
  1. package/_deprecated/center/center.js +2 -2
  2. package/_deprecated/hstack/hstack.js +79 -33
  3. package/_deprecated/page-inset/page-inset.js +104 -56
  4. package/_deprecated/vstack/vstack.js +61 -19
  5. package/accordion/accordion-item.js +217 -147
  6. package/accordion/accordion.js +214 -149
  7. package/alert-dialog/alert-dialog-close.js +2 -2
  8. package/alert-dialog/alert-dialog-popup.js +230 -166
  9. package/alert-dialog/alert-dialog-trigger.js +2 -2
  10. package/alert-dialog/alert-dialog.js +128 -73
  11. package/avatar/avatar.js +175 -115
  12. package/badge/badge.js +2 -2
  13. package/breadcrumb/breadcrumb-ellipsis.js +2 -2
  14. package/breadcrumb/breadcrumb-item.js +2 -2
  15. package/breadcrumb/breadcrumb-link.js +2 -2
  16. package/breadcrumb/breadcrumb-page.js +2 -2
  17. package/breadcrumb/breadcrumb-separator.js +2 -2
  18. package/breadcrumb/breadcrumb.js +2 -2
  19. package/button/button.js +109 -65
  20. package/calendar/calendar.js +368 -290
  21. package/checkbox/checkbox-group.js +146 -87
  22. package/checkbox/checkbox.js +232 -167
  23. package/collapsible/collapsible.js +210 -132
  24. package/combobox/combobox.js +318 -252
  25. package/command/command-empty.js +67 -25
  26. package/command/command-group.js +87 -47
  27. package/command/command-input.js +84 -44
  28. package/command/command-item.js +168 -124
  29. package/command/command-list.js +60 -18
  30. package/command/command-separator.js +2 -2
  31. package/command/command-shortcut.js +2 -2
  32. package/command/command.js +297 -232
  33. package/data-table/data-table.js +225 -153
  34. package/dialog/dialog-close.js +2 -2
  35. package/dialog/dialog-popup.js +247 -181
  36. package/dialog/dialog-trigger.js +2 -2
  37. package/dialog/dialog.js +128 -73
  38. package/dropzone/dropzone.js +310 -249
  39. package/icon/icon.js +2 -2
  40. package/input/input.js +204 -143
  41. package/link/link.js +62 -24
  42. package/menu/menu-item.js +66 -24
  43. package/menu/menu.js +189 -136
  44. package/menubar/menubar.js +142 -91
  45. package/number-field/number-field.js +277 -204
  46. package/package.json +2 -2
  47. package/popover/popover-close.js +2 -2
  48. package/popover/popover-popup.js +126 -76
  49. package/popover/popover-trigger.js +2 -2
  50. package/popover/popover.js +181 -120
  51. package/portal/portal.js +128 -86
  52. package/preview-card/preview-card-popup.js +114 -66
  53. package/preview-card/preview-card-trigger.js +2 -2
  54. package/preview-card/preview-card.js +211 -142
  55. package/progress/progress.js +91 -45
  56. package/radio/radio-group.js +153 -90
  57. package/radio/radio.js +137 -94
  58. package/scroll-area/scroll-area.js +382 -283
  59. package/select/select.js +260 -203
  60. package/separator/separator.js +60 -18
  61. package/sidebar/sidebar-content.js +2 -2
  62. package/sidebar/sidebar-footer.js +2 -2
  63. package/sidebar/sidebar-group-label.js +2 -2
  64. package/sidebar/sidebar-group.js +2 -2
  65. package/sidebar/sidebar-header.js +2 -2
  66. package/sidebar/sidebar-inset.js +2 -2
  67. package/sidebar/sidebar-menu-button.js +118 -74
  68. package/sidebar/sidebar-menu-item.js +2 -2
  69. package/sidebar/sidebar-menu.js +2 -2
  70. package/sidebar/sidebar-provider.js +202 -129
  71. package/sidebar/sidebar-separator.js +2 -2
  72. package/sidebar/sidebar-trigger.js +2 -2
  73. package/sidebar/sidebar.js +150 -85
  74. package/slider/slider.js +217 -159
  75. package/spinner/spinner.js +70 -28
  76. package/switch/switch.js +174 -111
  77. package/tabs/tab.js +89 -47
  78. package/tabs/tabs-indicator.js +2 -2
  79. package/tabs/tabs-list.js +92 -54
  80. package/tabs/tabs-panel.js +90 -44
  81. package/tabs/tabs.js +130 -71
  82. package/textarea/textarea.js +153 -95
  83. package/toggle/toggle-group.js +184 -125
  84. package/toggle/toggle.js +131 -76
  85. package/toolbar/toolbar.js +79 -33
  86. package/tooltip/tooltip-popup.js +108 -60
  87. package/tooltip/tooltip-trigger.js +93 -55
  88. package/tooltip/tooltip.js +225 -154
  89. package/trunc/trunc.js +78 -34
@@ -1,9 +1,37 @@
1
1
  /** Ported from original DUI: deep-future-app/app/client/components/dui/command */
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
4
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
5
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
6
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
7
+ var _, done = false;
8
+ for (var i = decorators.length - 1; i >= 0; i--) {
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;
7
35
  };
8
36
  import { css, html, LitElement } from "lit";
9
37
  import { property } from "lit/decorators.js";
@@ -30,121 +58,147 @@ const styles = css `
30
58
  outline: none;
31
59
  }
32
60
  `;
33
- export class DuiCommandItem extends LitElement {
34
- static { this.tagName = "dui-command-item"; }
35
- static { this.styles = [base, styles]; }
36
- #value_accessor_storage = "";
37
- /** The value this item represents. */
38
- get value() { return this.#value_accessor_storage; }
39
- set value(value) { this.#value_accessor_storage = value; }
40
- #keywords_accessor_storage = [];
41
- /** Additional search keywords. */
42
- get keywords() { return this.#keywords_accessor_storage; }
43
- set keywords(value) { this.#keywords_accessor_storage = value; }
44
- #disabled_accessor_storage = false;
45
- /** Whether this item is disabled. */
46
- get disabled() { return this.#disabled_accessor_storage; }
47
- set disabled(value) { this.#disabled_accessor_storage = value; }
48
- #_ctx_accessor_storage;
49
- get _ctx() { return this.#_ctx_accessor_storage; }
50
- set _ctx(value) { this.#_ctx_accessor_storage = value; }
51
- #id = nextItemId();
52
- // Track previous own-property values to avoid infinite update loops
53
- #prevValue = undefined;
54
- #prevKeywords = undefined;
55
- #prevDisabled = undefined;
56
- #registered = false;
57
- get #isSelected() {
58
- return this._ctx?.selectedItemId === this.#id;
59
- }
60
- get #isVisible() {
61
- if (!this._ctx)
62
- return true;
63
- return this._ctx.getScore(this.#id) > 0;
64
- }
65
- #getGroupId() {
66
- const groupHost = this.closest("[data-group-id]");
67
- return groupHost?.getAttribute("data-group-id") ?? undefined;
68
- }
69
- #buildEntry() {
70
- return {
71
- id: this.#id,
72
- value: this.value,
73
- keywords: this.keywords,
74
- textContent: this.textContent?.trim() ?? "",
75
- disabled: this.disabled,
76
- groupId: this.#getGroupId(),
77
- };
78
- }
79
- connectedCallback() {
80
- super.connectedCallback();
81
- // Defer registration to next frame so context is available
82
- requestAnimationFrame(() => {
83
- if (!this.isConnected)
84
- return;
85
- this._ctx?.registerItem(this.#buildEntry());
86
- this.#registered = true;
87
- this.#prevValue = this.value;
88
- this.#prevKeywords = this.keywords;
89
- this.#prevDisabled = this.disabled;
90
- });
91
- }
92
- disconnectedCallback() {
93
- super.disconnectedCallback();
94
- this._ctx?.unregisterItem(this.#id);
95
- this.#registered = false;
96
- }
97
- willUpdate() {
98
- // Only call updateItem when own properties change, not on every context update
99
- if (this.#registered) {
100
- const valueChanged = this.#prevValue !== this.value;
101
- const keywordsChanged = this.#prevKeywords !== this.keywords;
102
- const disabledChanged = this.#prevDisabled !== this.disabled;
103
- if (valueChanged || keywordsChanged || disabledChanged) {
104
- this._ctx?.updateItem(this.#buildEntry());
61
+ let DuiCommandItem = (() => {
62
+ let _classSuper = LitElement;
63
+ let _value_decorators;
64
+ let _value_initializers = [];
65
+ let _value_extraInitializers = [];
66
+ let _keywords_decorators;
67
+ let _keywords_initializers = [];
68
+ let _keywords_extraInitializers = [];
69
+ let _disabled_decorators;
70
+ let _disabled_initializers = [];
71
+ let _disabled_extraInitializers = [];
72
+ let __ctx_decorators;
73
+ let __ctx_initializers = [];
74
+ let __ctx_extraInitializers = [];
75
+ return class DuiCommandItem extends _classSuper {
76
+ static {
77
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
78
+ _value_decorators = [property({ type: String })];
79
+ _keywords_decorators = [property({ type: Array, attribute: false })];
80
+ _disabled_decorators = [property({ type: Boolean })];
81
+ __ctx_decorators = [consume({ context: commandContext, subscribe: true })];
82
+ __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);
83
+ __esDecorate(this, null, _keywords_decorators, { kind: "accessor", name: "keywords", static: false, private: false, access: { has: obj => "keywords" in obj, get: obj => obj.keywords, set: (obj, value) => { obj.keywords = value; } }, metadata: _metadata }, _keywords_initializers, _keywords_extraInitializers);
84
+ __esDecorate(this, null, _disabled_decorators, { kind: "accessor", name: "disabled", static: false, private: false, access: { has: obj => "disabled" in obj, get: obj => obj.disabled, set: (obj, value) => { obj.disabled = value; } }, metadata: _metadata }, _disabled_initializers, _disabled_extraInitializers);
85
+ __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);
86
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
87
+ }
88
+ static tagName = "dui-command-item";
89
+ static styles = [base, styles];
90
+ #value_accessor_storage = __runInitializers(this, _value_initializers, "");
91
+ /** The value this item represents. */
92
+ get value() { return this.#value_accessor_storage; }
93
+ set value(value) { this.#value_accessor_storage = value; }
94
+ #keywords_accessor_storage = (__runInitializers(this, _value_extraInitializers), __runInitializers(this, _keywords_initializers, []));
95
+ /** Additional search keywords. */
96
+ get keywords() { return this.#keywords_accessor_storage; }
97
+ set keywords(value) { this.#keywords_accessor_storage = value; }
98
+ #disabled_accessor_storage = (__runInitializers(this, _keywords_extraInitializers), __runInitializers(this, _disabled_initializers, false));
99
+ /** Whether this item is disabled. */
100
+ get disabled() { return this.#disabled_accessor_storage; }
101
+ set disabled(value) { this.#disabled_accessor_storage = value; }
102
+ #_ctx_accessor_storage = (__runInitializers(this, _disabled_extraInitializers), __runInitializers(this, __ctx_initializers, void 0));
103
+ get _ctx() { return this.#_ctx_accessor_storage; }
104
+ set _ctx(value) { this.#_ctx_accessor_storage = value; }
105
+ #id = (__runInitializers(this, __ctx_extraInitializers), nextItemId());
106
+ // Track previous own-property values to avoid infinite update loops
107
+ #prevValue = undefined;
108
+ #prevKeywords = undefined;
109
+ #prevDisabled = undefined;
110
+ #registered = false;
111
+ get #isSelected() {
112
+ return this._ctx?.selectedItemId === this.#id;
113
+ }
114
+ get #isVisible() {
115
+ if (!this._ctx)
116
+ return true;
117
+ return this._ctx.getScore(this.#id) > 0;
118
+ }
119
+ #getGroupId() {
120
+ const groupHost = this.closest("[data-group-id]");
121
+ return groupHost?.getAttribute("data-group-id") ?? undefined;
122
+ }
123
+ #buildEntry() {
124
+ return {
125
+ id: this.#id,
126
+ value: this.value,
127
+ keywords: this.keywords,
128
+ textContent: this.textContent?.trim() ?? "",
129
+ disabled: this.disabled,
130
+ groupId: this.#getGroupId(),
131
+ };
132
+ }
133
+ connectedCallback() {
134
+ super.connectedCallback();
135
+ // Defer registration to next frame so context is available
136
+ requestAnimationFrame(() => {
137
+ if (!this.isConnected)
138
+ return;
139
+ this._ctx?.registerItem(this.#buildEntry());
140
+ this.#registered = true;
105
141
  this.#prevValue = this.value;
106
142
  this.#prevKeywords = this.keywords;
107
143
  this.#prevDisabled = this.disabled;
108
- }
144
+ });
109
145
  }
110
- // Toggle data-hidden attribute
111
- if (this._ctx?.shouldFilter) {
112
- if (!this.#isVisible) {
113
- this.setAttribute("data-hidden", "");
146
+ disconnectedCallback() {
147
+ super.disconnectedCallback();
148
+ this._ctx?.unregisterItem(this.#id);
149
+ this.#registered = false;
150
+ }
151
+ willUpdate() {
152
+ // Only call updateItem when own properties change, not on every context update
153
+ if (this.#registered) {
154
+ const valueChanged = this.#prevValue !== this.value;
155
+ const keywordsChanged = this.#prevKeywords !== this.keywords;
156
+ const disabledChanged = this.#prevDisabled !== this.disabled;
157
+ if (valueChanged || keywordsChanged || disabledChanged) {
158
+ this._ctx?.updateItem(this.#buildEntry());
159
+ this.#prevValue = this.value;
160
+ this.#prevKeywords = this.keywords;
161
+ this.#prevDisabled = this.disabled;
162
+ }
163
+ }
164
+ // Toggle data-hidden attribute
165
+ if (this._ctx?.shouldFilter) {
166
+ if (!this.#isVisible) {
167
+ this.setAttribute("data-hidden", "");
168
+ }
169
+ else {
170
+ this.removeAttribute("data-hidden");
171
+ }
114
172
  }
115
173
  else {
116
174
  this.removeAttribute("data-hidden");
117
175
  }
176
+ // Update selected attribute
177
+ if (this.#isSelected) {
178
+ this.setAttribute("data-selected", "");
179
+ }
180
+ else {
181
+ this.removeAttribute("data-selected");
182
+ }
118
183
  }
119
- else {
120
- this.removeAttribute("data-hidden");
121
- }
122
- // Update selected attribute
123
- if (this.#isSelected) {
124
- this.setAttribute("data-selected", "");
125
- }
126
- else {
127
- this.removeAttribute("data-selected");
128
- }
129
- }
130
- updated() {
131
- // Scroll into view when selected
132
- if (this.#isSelected) {
133
- this.scrollIntoView({ block: "nearest" });
134
- }
135
- }
136
- #handleMouseMove = () => {
137
- if (!this.disabled && this._ctx?.selectedItemId !== this.#id) {
138
- this._ctx?.selectItem(this.#id);
139
- }
140
- };
141
- #handleClick = () => {
142
- if (!this.disabled) {
143
- this._ctx?.handleItemSelect(this.value);
184
+ updated() {
185
+ // Scroll into view when selected
186
+ if (this.#isSelected) {
187
+ this.scrollIntoView({ block: "nearest" });
188
+ }
144
189
  }
145
- };
146
- render() {
147
- return html `
190
+ #handleMouseMove = () => {
191
+ if (!this.disabled && this._ctx?.selectedItemId !== this.#id) {
192
+ this._ctx?.selectItem(this.#id);
193
+ }
194
+ };
195
+ #handleClick = () => {
196
+ if (!this.disabled) {
197
+ this._ctx?.handleItemSelect(this.value);
198
+ }
199
+ };
200
+ render() {
201
+ return html `
148
202
  <div
149
203
  class="Item"
150
204
  role="option"
@@ -159,17 +213,7 @@ export class DuiCommandItem extends LitElement {
159
213
  <slot></slot>
160
214
  </div>
161
215
  `;
162
- }
163
- }
164
- __decorate([
165
- property({ type: String })
166
- ], DuiCommandItem.prototype, "value", null);
167
- __decorate([
168
- property({ type: Array, attribute: false })
169
- ], DuiCommandItem.prototype, "keywords", null);
170
- __decorate([
171
- property({ type: Boolean })
172
- ], DuiCommandItem.prototype, "disabled", null);
173
- __decorate([
174
- consume({ context: commandContext, subscribe: true })
175
- ], DuiCommandItem.prototype, "_ctx", null);
216
+ }
217
+ };
218
+ })();
219
+ export { DuiCommandItem };
@@ -1,9 +1,37 @@
1
1
  /** Ported from original DUI: deep-future-app/app/client/components/dui/command */
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
4
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
5
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
6
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
7
+ var _, done = false;
8
+ for (var i = decorators.length - 1; i >= 0; i--) {
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;
7
35
  };
8
36
  import { css, html, LitElement } from "lit";
9
37
  import { consume } from "@lit/context";
@@ -18,14 +46,25 @@ const styles = css `
18
46
  overflow: hidden;
19
47
  }
20
48
  `;
21
- export class DuiCommandList extends LitElement {
22
- static { this.tagName = "dui-command-list"; }
23
- static { this.styles = [base, styles]; }
24
- #_ctx_accessor_storage;
25
- get _ctx() { return this.#_ctx_accessor_storage; }
26
- set _ctx(value) { this.#_ctx_accessor_storage = value; }
27
- render() {
28
- return html `
49
+ let DuiCommandList = (() => {
50
+ let _classSuper = LitElement;
51
+ let __ctx_decorators;
52
+ let __ctx_initializers = [];
53
+ let __ctx_extraInitializers = [];
54
+ return class DuiCommandList extends _classSuper {
55
+ static {
56
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
57
+ __ctx_decorators = [consume({ context: commandContext, subscribe: true })];
58
+ __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);
59
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
60
+ }
61
+ static tagName = "dui-command-list";
62
+ static styles = [base, styles];
63
+ #_ctx_accessor_storage = __runInitializers(this, __ctx_initializers, void 0);
64
+ get _ctx() { return this.#_ctx_accessor_storage; }
65
+ set _ctx(value) { this.#_ctx_accessor_storage = value; }
66
+ render() {
67
+ return html `
29
68
  <dui-scroll-area>
30
69
  <div
31
70
  class="List"
@@ -36,8 +75,11 @@ export class DuiCommandList extends LitElement {
36
75
  </div>
37
76
  </dui-scroll-area>
38
77
  `;
39
- }
40
- }
41
- __decorate([
42
- consume({ context: commandContext, subscribe: true })
43
- ], DuiCommandList.prototype, "_ctx", null);
78
+ }
79
+ constructor() {
80
+ super(...arguments);
81
+ __runInitializers(this, __ctx_extraInitializers);
82
+ }
83
+ };
84
+ })();
85
+ export { DuiCommandList };
@@ -7,8 +7,8 @@ const styles = css `
7
7
  }
8
8
  `;
9
9
  export class DuiCommandSeparator extends LitElement {
10
- static { this.tagName = "dui-command-separator"; }
11
- static { this.styles = [base, styles]; }
10
+ static tagName = "dui-command-separator";
11
+ static styles = [base, styles];
12
12
  render() {
13
13
  return html `<div class="Separator" role="separator"></div>`;
14
14
  }
@@ -8,8 +8,8 @@ const styles = css `
8
8
  }
9
9
  `;
10
10
  export class DuiCommandShortcut extends LitElement {
11
- static { this.tagName = "dui-command-shortcut"; }
12
- static { this.styles = [base, styles]; }
11
+ static tagName = "dui-command-shortcut";
12
+ static styles = [base, styles];
13
13
  render() {
14
14
  return html `<span class="Shortcut"><slot></slot></span>`;
15
15
  }