@ojiepermana/angular-component 22.0.43 → 22.0.45
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/fesm2022/ojiepermana-angular-component-accordion.mjs +21 -23
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +111 -50
- package/fesm2022/ojiepermana-angular-component-alert.mjs +13 -17
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +20 -26
- package/fesm2022/ojiepermana-angular-component-badge.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +32 -35
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +10 -13
- package/fesm2022/ojiepermana-angular-component-button.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +10 -8
- package/fesm2022/ojiepermana-angular-component-card.mjs +22 -29
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +31 -34
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +42 -13
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +19 -17
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +30 -17
- package/fesm2022/ojiepermana-angular-component-command.mjs +29 -37
- package/fesm2022/ojiepermana-angular-component-composer.mjs +31 -34
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +3 -3
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +39 -14
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +100 -45
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +61 -56
- package/fesm2022/ojiepermana-angular-component-editor.mjs +52 -43
- package/fesm2022/ojiepermana-angular-component-empty.mjs +19 -25
- package/fesm2022/ojiepermana-angular-component-form.mjs +41 -49
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +10 -11
- package/fesm2022/ojiepermana-angular-component-icon.mjs +56 -11
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +29 -27
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +29 -28
- package/fesm2022/ojiepermana-angular-component-input.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-item.mjs +31 -41
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +47 -46
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +7 -9
- package/fesm2022/ojiepermana-angular-component-label.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +16 -16
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +11 -11
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +41 -28
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +25 -16
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +78 -50
- package/fesm2022/ojiepermana-angular-component-popover.mjs +6 -6
- package/fesm2022/ojiepermana-angular-component-progress.mjs +10 -8
- package/fesm2022/ojiepermana-angular-component-radio.mjs +17 -13
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +32 -21
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +11 -9
- package/fesm2022/ojiepermana-angular-component-select.mjs +35 -23
- package/fesm2022/ojiepermana-angular-component-separator.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +101 -45
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-slider.mjs +30 -18
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +9 -8
- package/fesm2022/ojiepermana-angular-component-switch.mjs +19 -10
- package/fesm2022/ojiepermana-angular-component-table.mjs +26 -34
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +20 -24
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +28 -28
- package/fesm2022/ojiepermana-angular-component-toast.mjs +3 -3
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +18 -13
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +4 -5
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +20 -19
- package/package.json +10 -1
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +42 -3
- package/types/ojiepermana-angular-component-dialog.d.ts +33 -3
- package/types/ojiepermana-angular-component-icon.d.ts +48 -1
- package/types/ojiepermana-angular-component-sheet.d.ts +33 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, ViewContainerRef, DestroyRef, input, model, signal, computed, viewChild, forwardRef,
|
|
4
|
+
import { inject, ViewContainerRef, DestroyRef, input, model, signal, computed, viewChild, forwardRef, Component } from '@angular/core';
|
|
5
5
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { uniqueId, cn, overlayDismissals } from '@ojiepermana/angular-component/utils';
|
|
@@ -118,8 +118,10 @@ class ComboboxComponent {
|
|
|
118
118
|
setDisabledState(state) {
|
|
119
119
|
this.cvaDisabled.set(state);
|
|
120
120
|
}
|
|
121
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
122
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComboboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: ComboboxComponent, isStandalone: true, selector: "Combobox", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange" }, host: { properties: { "class": "classes()" } }, providers: [
|
|
123
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ComboboxComponent), multi: true },
|
|
124
|
+
], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
123
125
|
<button
|
|
124
126
|
#trigger
|
|
125
127
|
type="button"
|
|
@@ -130,7 +132,8 @@ class ComboboxComponent {
|
|
|
130
132
|
[attr.aria-controls]="isOpen() ? panelId : null"
|
|
131
133
|
[class]="triggerClasses()"
|
|
132
134
|
[disabled]="isDisabled() || null"
|
|
133
|
-
(click)="toggle()"
|
|
135
|
+
(click)="toggle()"
|
|
136
|
+
>
|
|
134
137
|
<span [class.text-muted-foreground]="!selectedLabel()">
|
|
135
138
|
{{ selectedLabel() || placeholder() }}
|
|
136
139
|
</span>
|
|
@@ -141,7 +144,8 @@ class ComboboxComponent {
|
|
|
141
144
|
stroke="currentColor"
|
|
142
145
|
stroke-width="2"
|
|
143
146
|
stroke-linecap="round"
|
|
144
|
-
stroke-linejoin="round"
|
|
147
|
+
stroke-linejoin="round"
|
|
148
|
+
>
|
|
145
149
|
<polyline points="6 9 12 15 18 9" />
|
|
146
150
|
</svg>
|
|
147
151
|
</button>
|
|
@@ -149,7 +153,8 @@ class ComboboxComponent {
|
|
|
149
153
|
<ng-template #panel>
|
|
150
154
|
<div
|
|
151
155
|
[attr.id]="panelId"
|
|
152
|
-
class="w-(--combobox-trigger-width) rounded-md border bg-popover text-popover-foreground shadow-md"
|
|
156
|
+
class="w-(--combobox-trigger-width) rounded-md border bg-popover text-popover-foreground shadow-md"
|
|
157
|
+
>
|
|
153
158
|
<Command>
|
|
154
159
|
<input CommandInput [placeholder]="searchPlaceholder()" />
|
|
155
160
|
<CommandList>
|
|
@@ -161,7 +166,8 @@ class ComboboxComponent {
|
|
|
161
166
|
CommandItem
|
|
162
167
|
[value]="opt.label"
|
|
163
168
|
[disabled]="!!opt.disabled"
|
|
164
|
-
(selected)="pick(opt)"
|
|
169
|
+
(selected)="pick(opt)"
|
|
170
|
+
>
|
|
165
171
|
{{ opt.label }}
|
|
166
172
|
@if (isSelected(opt)) {
|
|
167
173
|
<svg
|
|
@@ -171,7 +177,8 @@ class ComboboxComponent {
|
|
|
171
177
|
stroke="currentColor"
|
|
172
178
|
stroke-width="2"
|
|
173
179
|
stroke-linecap="round"
|
|
174
|
-
stroke-linejoin="round"
|
|
180
|
+
stroke-linejoin="round"
|
|
181
|
+
>
|
|
175
182
|
<polyline points="20 6 9 17 4 12" />
|
|
176
183
|
</svg>
|
|
177
184
|
}
|
|
@@ -182,13 +189,12 @@ class ComboboxComponent {
|
|
|
182
189
|
</Command>
|
|
183
190
|
</div>
|
|
184
191
|
</ng-template>
|
|
185
|
-
`, isInline: true, dependencies: [{ kind: "component", type: CommandComponent, selector: "Command", inputs: ["query", "class"], outputs: ["queryChange"] }, { kind: "component", type: CommandInputComponent, selector: "input[CommandInput]", inputs: ["placeholder", "class"] }, { kind: "component", type: CommandListComponent, selector: "CommandList", inputs: ["class"] }, { kind: "component", type: CommandEmptyComponent, selector: "CommandEmpty", inputs: ["class"] }, { kind: "component", type: CommandGroupComponent, selector: "CommandGroup", inputs: ["heading", "class"] }, { kind: "component", type: CommandItemComponent, selector: "CommandItem, button[CommandItem]", inputs: ["value", "disabled", "class"], outputs: ["selected"] }]
|
|
192
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CommandComponent, selector: "Command", inputs: ["query", "class"], outputs: ["queryChange"] }, { kind: "component", type: CommandInputComponent, selector: "input[CommandInput]", inputs: ["placeholder", "class"] }, { kind: "component", type: CommandListComponent, selector: "CommandList", inputs: ["class"] }, { kind: "component", type: CommandEmptyComponent, selector: "CommandEmpty", inputs: ["class"] }, { kind: "component", type: CommandGroupComponent, selector: "CommandGroup", inputs: ["heading", "class"] }, { kind: "component", type: CommandItemComponent, selector: "CommandItem, button[CommandItem]", inputs: ["value", "disabled", "class"], outputs: ["selected"] }] });
|
|
186
193
|
}
|
|
187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComboboxComponent, decorators: [{
|
|
188
195
|
type: Component,
|
|
189
196
|
args: [{
|
|
190
197
|
selector: 'Combobox',
|
|
191
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
192
198
|
imports: [
|
|
193
199
|
CommandComponent,
|
|
194
200
|
CommandInputComponent,
|
|
@@ -197,7 +203,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
197
203
|
CommandGroupComponent,
|
|
198
204
|
CommandItemComponent,
|
|
199
205
|
],
|
|
200
|
-
providers: [
|
|
206
|
+
providers: [
|
|
207
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ComboboxComponent), multi: true },
|
|
208
|
+
],
|
|
201
209
|
host: { '[class]': 'classes()' },
|
|
202
210
|
template: `
|
|
203
211
|
<button
|
|
@@ -210,7 +218,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
210
218
|
[attr.aria-controls]="isOpen() ? panelId : null"
|
|
211
219
|
[class]="triggerClasses()"
|
|
212
220
|
[disabled]="isDisabled() || null"
|
|
213
|
-
(click)="toggle()"
|
|
221
|
+
(click)="toggle()"
|
|
222
|
+
>
|
|
214
223
|
<span [class.text-muted-foreground]="!selectedLabel()">
|
|
215
224
|
{{ selectedLabel() || placeholder() }}
|
|
216
225
|
</span>
|
|
@@ -221,7 +230,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
221
230
|
stroke="currentColor"
|
|
222
231
|
stroke-width="2"
|
|
223
232
|
stroke-linecap="round"
|
|
224
|
-
stroke-linejoin="round"
|
|
233
|
+
stroke-linejoin="round"
|
|
234
|
+
>
|
|
225
235
|
<polyline points="6 9 12 15 18 9" />
|
|
226
236
|
</svg>
|
|
227
237
|
</button>
|
|
@@ -229,7 +239,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
229
239
|
<ng-template #panel>
|
|
230
240
|
<div
|
|
231
241
|
[attr.id]="panelId"
|
|
232
|
-
class="w-(--combobox-trigger-width) rounded-md border bg-popover text-popover-foreground shadow-md"
|
|
242
|
+
class="w-(--combobox-trigger-width) rounded-md border bg-popover text-popover-foreground shadow-md"
|
|
243
|
+
>
|
|
233
244
|
<Command>
|
|
234
245
|
<input CommandInput [placeholder]="searchPlaceholder()" />
|
|
235
246
|
<CommandList>
|
|
@@ -241,7 +252,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
241
252
|
CommandItem
|
|
242
253
|
[value]="opt.label"
|
|
243
254
|
[disabled]="!!opt.disabled"
|
|
244
|
-
(selected)="pick(opt)"
|
|
255
|
+
(selected)="pick(opt)"
|
|
256
|
+
>
|
|
245
257
|
{{ opt.label }}
|
|
246
258
|
@if (isSelected(opt)) {
|
|
247
259
|
<svg
|
|
@@ -251,7 +263,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
251
263
|
stroke="currentColor"
|
|
252
264
|
stroke-width="2"
|
|
253
265
|
stroke-linecap="round"
|
|
254
|
-
stroke-linejoin="round"
|
|
266
|
+
stroke-linejoin="round"
|
|
267
|
+
>
|
|
255
268
|
<polyline points="20 6 9 17 4 12" />
|
|
256
269
|
</svg>
|
|
257
270
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, model, input, signal, computed, forwardRef,
|
|
2
|
+
import { Directive, model, input, signal, computed, forwardRef, Component, inject, ElementRef, output, DestroyRef } from '@angular/core';
|
|
3
3
|
import { cn, uniqueId } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
|
|
5
5
|
/** Base class exposed to children for context lookup. */
|
|
6
6
|
class CommandContextBase {
|
|
7
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
8
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.4", type: CommandContextBase, isStandalone: true, ngImport: i0 });
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandContextBase, decorators: [{
|
|
11
11
|
type: Directive
|
|
12
12
|
}] });
|
|
13
13
|
class CommandComponent extends CommandContextBase {
|
|
@@ -62,14 +62,13 @@ class CommandComponent extends CommandContextBase {
|
|
|
62
62
|
setActiveItem(activeItem) {
|
|
63
63
|
this.items().forEach((item) => item._setActive(item === activeItem));
|
|
64
64
|
}
|
|
65
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
66
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: CommandComponent, isStandalone: true, selector: "Command", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { query: "queryChange" }, host: { properties: { "class": "classes()" } }, providers: [{ provide: CommandContextBase, useExisting: forwardRef(() => CommandComponent) }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandComponent, decorators: [{
|
|
69
69
|
type: Component,
|
|
70
70
|
args: [{
|
|
71
71
|
selector: 'Command',
|
|
72
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
73
72
|
providers: [{ provide: CommandContextBase, useExisting: forwardRef(() => CommandComponent) }],
|
|
74
73
|
host: { '[class]': 'classes()' },
|
|
75
74
|
template: `<ng-content />`,
|
|
@@ -98,14 +97,13 @@ class CommandInputComponent {
|
|
|
98
97
|
active._select(e);
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
102
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
101
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: CommandInputComponent, isStandalone: true, selector: "input[CommandInput]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "text", "role": "combobox", "aria-autocomplete": "list", "aria-expanded": "true", "autocomplete": "off" }, listeners: { "input": "onInput($any($event))", "keydown.arrowDown": "onArrow($any($event), 1)", "keydown.arrowUp": "onArrow($any($event), -1)", "keydown.enter": "onEnter($any($event))" }, properties: { "class": "classes()", "attr.aria-activedescendant": "ctx.activeDescendantId()", "value": "ctx.query()", "placeholder": "placeholder()" } }, ngImport: i0, template: ``, isInline: true });
|
|
103
102
|
}
|
|
104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandInputComponent, decorators: [{
|
|
105
104
|
type: Component,
|
|
106
105
|
args: [{
|
|
107
106
|
selector: 'input[CommandInput]',
|
|
108
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
109
107
|
host: {
|
|
110
108
|
'[class]': 'classes()',
|
|
111
109
|
type: 'text',
|
|
@@ -129,14 +127,13 @@ class CommandListComponent {
|
|
|
129
127
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
130
128
|
classes = computed(() => cn('max-h-[300px] overflow-y-auto overflow-x-hidden p-1', this.class()), /* @ts-ignore */
|
|
131
129
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
133
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
130
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
131
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: CommandListComponent, isStandalone: true, selector: "CommandList", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listbox" }, properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
134
132
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandListComponent, decorators: [{
|
|
136
134
|
type: Component,
|
|
137
135
|
args: [{
|
|
138
136
|
selector: 'CommandList',
|
|
139
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
137
|
host: { '[class]': 'classes()', role: 'listbox' },
|
|
141
138
|
template: `<ng-content />`,
|
|
142
139
|
}]
|
|
@@ -147,14 +144,13 @@ class CommandEmptyComponent {
|
|
|
147
144
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
148
145
|
classes = computed(() => cn('py-6 text-center text-sm text-muted-foreground', this.class()), /* @ts-ignore */
|
|
149
146
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
150
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
151
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandEmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
148
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: CommandEmptyComponent, isStandalone: true, selector: "CommandEmpty", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "hidden": "ctx.hasVisibleItems()" } }, ngImport: i0, template: `<ng-content>No results found.</ng-content>`, isInline: true });
|
|
152
149
|
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandEmptyComponent, decorators: [{
|
|
154
151
|
type: Component,
|
|
155
152
|
args: [{
|
|
156
153
|
selector: 'CommandEmpty',
|
|
157
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
158
154
|
host: {
|
|
159
155
|
'[class]': 'classes()',
|
|
160
156
|
'[hidden]': 'ctx.hasVisibleItems()',
|
|
@@ -169,19 +165,18 @@ class CommandGroupComponent {
|
|
|
169
165
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
170
166
|
classes = computed(() => cn('overflow-hidden p-1 text-foreground', this.class()), /* @ts-ignore */
|
|
171
167
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
172
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
173
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: CommandGroupComponent, isStandalone: true, selector: "CommandGroup", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class": "classes()" } }, ngImport: i0, template: `
|
|
174
170
|
@if (heading()) {
|
|
175
171
|
<div class="px-2 py-1.5 text-xs font-medium text-muted-foreground">{{ heading() }}</div>
|
|
176
172
|
}
|
|
177
173
|
<ng-content />
|
|
178
|
-
`, isInline: true
|
|
174
|
+
`, isInline: true });
|
|
179
175
|
}
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandGroupComponent, decorators: [{
|
|
181
177
|
type: Component,
|
|
182
178
|
args: [{
|
|
183
179
|
selector: 'CommandGroup',
|
|
184
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
185
180
|
host: { '[class]': 'classes()', role: 'group' },
|
|
186
181
|
template: `
|
|
187
182
|
@if (heading()) {
|
|
@@ -196,14 +191,13 @@ class CommandSeparatorComponent {
|
|
|
196
191
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
197
192
|
classes = computed(() => cn('-mx-1 h-px bg-border block', this.class()), /* @ts-ignore */
|
|
198
193
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
199
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
200
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
194
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
195
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: CommandSeparatorComponent, isStandalone: true, selector: "CommandSeparator", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true });
|
|
201
196
|
}
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandSeparatorComponent, decorators: [{
|
|
203
198
|
type: Component,
|
|
204
199
|
args: [{
|
|
205
200
|
selector: 'CommandSeparator',
|
|
206
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
207
201
|
host: { '[class]': 'classes()', role: 'separator' },
|
|
208
202
|
template: '',
|
|
209
203
|
}]
|
|
@@ -248,14 +242,13 @@ class CommandItemComponent {
|
|
|
248
242
|
return;
|
|
249
243
|
this.ctx.activateOnly(this);
|
|
250
244
|
}
|
|
251
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
252
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
246
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: CommandItemComponent, isStandalone: true, selector: "CommandItem, button[CommandItem]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected" }, host: { listeners: { "click": "_select($any($event))", "mousemove": "onHover()" }, properties: { "class": "classes()", "attr.id": "itemId", "attr.role": "\"option\"", "attr.tabindex": "-1", "attr.aria-selected": "active()", "attr.data-active": "active() ? \"true\" : null", "attr.data-disabled": "disabled() ? \"true\" : null", "hidden": "!visible()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
253
247
|
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandItemComponent, decorators: [{
|
|
255
249
|
type: Component,
|
|
256
250
|
args: [{
|
|
257
251
|
selector: 'CommandItem, button[CommandItem]',
|
|
258
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
259
252
|
host: {
|
|
260
253
|
'[class]': 'classes()',
|
|
261
254
|
'[attr.id]': 'itemId',
|
|
@@ -276,14 +269,13 @@ class CommandShortcutComponent {
|
|
|
276
269
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
277
270
|
classes = computed(() => cn('ml-auto text-xs tracking-widest text-muted-foreground', this.class()), /* @ts-ignore */
|
|
278
271
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
279
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
280
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
272
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandShortcutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
273
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: CommandShortcutComponent, isStandalone: true, selector: "span[CommandShortcut]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
281
274
|
}
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: CommandShortcutComponent, decorators: [{
|
|
283
276
|
type: Component,
|
|
284
277
|
args: [{
|
|
285
278
|
selector: 'span[CommandShortcut]',
|
|
286
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
287
279
|
host: { '[class]': 'classes()' },
|
|
288
280
|
template: `<ng-content />`,
|
|
289
281
|
}]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { numberAttribute, input, booleanAttribute, output, computed,
|
|
2
|
+
import { numberAttribute, input, booleanAttribute, output, computed, Component, inject, ElementRef, signal, forwardRef } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { cn } from '@ojiepermana/angular-component/utils';
|
|
5
5
|
|
|
@@ -56,7 +56,9 @@ class ComposerComponent {
|
|
|
56
56
|
if (this.disabled() || event.key !== 'Enter' || event.defaultPrevented) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
const shouldSubmit = this.submit() === 'enter'
|
|
59
|
+
const shouldSubmit = this.submit() === 'enter'
|
|
60
|
+
? !event.shiftKey && !event.isComposing
|
|
61
|
+
: event.metaKey || event.ctrlKey;
|
|
60
62
|
if (!shouldSubmit) {
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
@@ -75,13 +77,14 @@ class ComposerComponent {
|
|
|
75
77
|
form.requestSubmit();
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
79
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: ComposerComponent, isStandalone: true, selector: "Composer", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, submit: { classPropertyName: "submit", publicName: "submit", isSignal: true, isRequired: false, transformFunction: null }, submitForm: { classPropertyName: "submitForm", publicName: "submitForm", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { submitRequested: "submitRequested" }, host: { properties: { "class": "classes()", "attr.data-slot": "\"composer\"", "attr.data-variant": "variant()", "attr.data-inline": "inline() ? \"true\" : null", "attr.data-disabled": "disabled() ? \"true\" : null", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.aria-invalid": "invalid() ? \"true\" : null", "attr.inert": "disabled() ? \"\" : null" } }, ngImport: i0, template: `
|
|
80
82
|
<div
|
|
81
83
|
data-slot="composer-shell"
|
|
82
84
|
[class]="shellClasses()"
|
|
83
85
|
[attr.data-disabled]="disabled() ? 'true' : null"
|
|
84
|
-
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
86
|
+
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
87
|
+
>
|
|
85
88
|
<ng-content select="ComposerHeader" />
|
|
86
89
|
<div data-slot="composer-body" [class]="bodyClasses()">
|
|
87
90
|
<ng-content select="ComposerActionsLeading" />
|
|
@@ -90,13 +93,12 @@ class ComposerComponent {
|
|
|
90
93
|
</div>
|
|
91
94
|
<ng-content select="ComposerFooter" />
|
|
92
95
|
</div>
|
|
93
|
-
`, isInline: true
|
|
96
|
+
`, isInline: true });
|
|
94
97
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerComponent, decorators: [{
|
|
96
99
|
type: Component,
|
|
97
100
|
args: [{
|
|
98
101
|
selector: 'Composer',
|
|
99
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
100
102
|
host: {
|
|
101
103
|
'[class]': 'classes()',
|
|
102
104
|
'[attr.data-slot]': '"composer"',
|
|
@@ -112,7 +114,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
112
114
|
data-slot="composer-shell"
|
|
113
115
|
[class]="shellClasses()"
|
|
114
116
|
[attr.data-disabled]="disabled() ? 'true' : null"
|
|
115
|
-
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
117
|
+
[attr.aria-invalid]="invalid() ? 'true' : null"
|
|
118
|
+
>
|
|
116
119
|
<ng-content select="ComposerHeader" />
|
|
117
120
|
<div data-slot="composer-body" [class]="bodyClasses()">
|
|
118
121
|
<ng-content select="ComposerActionsLeading" />
|
|
@@ -129,14 +132,13 @@ class ComposerHeaderComponent {
|
|
|
129
132
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
130
133
|
classes = computed(() => cn('flex min-w-0 flex-wrap gap-2 border-b border-[hsl(var(--border)/var(--opacity-70))] px-2.5 py-2', this.class()), /* @ts-ignore */
|
|
131
134
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
133
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: ComposerHeaderComponent, isStandalone: true, selector: "ComposerHeader", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"composer-header\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
134
137
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerHeaderComponent, decorators: [{
|
|
136
139
|
type: Component,
|
|
137
140
|
args: [{
|
|
138
141
|
selector: 'ComposerHeader',
|
|
139
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
142
|
host: {
|
|
141
143
|
'[class]': 'classes()',
|
|
142
144
|
'[attr.data-slot]': '"composer-header"',
|
|
@@ -149,14 +151,13 @@ class ComposerFooterComponent {
|
|
|
149
151
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
150
152
|
classes = computed(() => cn('border-t border-[hsl(var(--border)/var(--opacity-70))] px-2.5 py-1.5 text-xs leading-5 text-muted-foreground', this.class()), /* @ts-ignore */
|
|
151
153
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
152
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
153
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: ComposerFooterComponent, isStandalone: true, selector: "ComposerFooter", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"composer-footer\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
154
156
|
}
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerFooterComponent, decorators: [{
|
|
156
158
|
type: Component,
|
|
157
159
|
args: [{
|
|
158
160
|
selector: 'ComposerFooter',
|
|
159
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
160
161
|
host: {
|
|
161
162
|
'[class]': 'classes()',
|
|
162
163
|
'[attr.data-slot]': '"composer-footer"',
|
|
@@ -169,14 +170,13 @@ class ComposerActionsLeadingComponent {
|
|
|
169
170
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
170
171
|
classes = computed(() => cn('flex min-h-8 shrink-0 items-center gap-1', this.class()), /* @ts-ignore */
|
|
171
172
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
172
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
173
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
173
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerActionsLeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
174
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: ComposerActionsLeadingComponent, isStandalone: true, selector: "ComposerActionsLeading", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"composer-actions-leading\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
174
175
|
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerActionsLeadingComponent, decorators: [{
|
|
176
177
|
type: Component,
|
|
177
178
|
args: [{
|
|
178
179
|
selector: 'ComposerActionsLeading',
|
|
179
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
180
180
|
host: {
|
|
181
181
|
'[class]': 'classes()',
|
|
182
182
|
'[attr.data-slot]': '"composer-actions-leading"',
|
|
@@ -189,14 +189,13 @@ class ComposerActionsTrailingComponent {
|
|
|
189
189
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
190
190
|
classes = computed(() => cn('flex min-h-8 shrink-0 items-center justify-end gap-1', this.class()), /* @ts-ignore */
|
|
191
191
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
192
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
193
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
192
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerActionsTrailingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
193
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: ComposerActionsTrailingComponent, isStandalone: true, selector: "ComposerActionsTrailing", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"composer-actions-trailing\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
194
194
|
}
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerActionsTrailingComponent, decorators: [{
|
|
196
196
|
type: Component,
|
|
197
197
|
args: [{
|
|
198
198
|
selector: 'ComposerActionsTrailing',
|
|
199
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
200
199
|
host: {
|
|
201
200
|
'[class]': 'classes()',
|
|
202
201
|
'[attr.data-slot]': '"composer-actions-trailing"',
|
|
@@ -219,14 +218,13 @@ class ComposerInputComponent {
|
|
|
219
218
|
handleKeydown(event) {
|
|
220
219
|
this.composer?.handleInputKeydown(event);
|
|
221
220
|
}
|
|
222
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
223
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
221
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: ComposerInputComponent, isStandalone: true, selector: "ComposerInput", inputs: { disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "aria-invalid", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "handleKeydown($event)" }, properties: { "class": "classes()", "attr.data-slot": "\"composer-input\"", "attr.data-disabled": "disabled() ? \"true\" : null", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.aria-invalid": "invalid() ? \"true\" : null" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
224
223
|
}
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerInputComponent, decorators: [{
|
|
226
225
|
type: Component,
|
|
227
226
|
args: [{
|
|
228
227
|
selector: 'ComposerInput',
|
|
229
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
230
228
|
host: {
|
|
231
229
|
'[class]': 'classes()',
|
|
232
230
|
'[attr.data-slot]': '"composer-input"',
|
|
@@ -309,20 +307,19 @@ class ComposerTextareaComponent {
|
|
|
309
307
|
const lineHeight = Number.parseFloat(getComputedStyle(textarea).lineHeight);
|
|
310
308
|
return Number.isFinite(lineHeight) ? lineHeight : 24;
|
|
311
309
|
}
|
|
312
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
313
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
311
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: ComposerTextareaComponent, isStandalone: true, selector: "textarea[ComposerInput]", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "aria-invalid", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "handleInput()", "blur": "handleBlur()", "keydown": "handleKeydown($event)" }, properties: { "class": "classes()", "attr.data-slot": "\"composer-input\"", "attr.rows": "rows()", "attr.disabled": "disabled() ? \"\" : null", "attr.aria-invalid": "invalid() ? \"true\" : null" } }, providers: [
|
|
314
312
|
{
|
|
315
313
|
provide: NG_VALUE_ACCESSOR,
|
|
316
314
|
useExisting: forwardRef(() => ComposerTextareaComponent),
|
|
317
315
|
multi: true,
|
|
318
316
|
},
|
|
319
|
-
], ngImport: i0, template: '', isInline: true
|
|
317
|
+
], ngImport: i0, template: '', isInline: true });
|
|
320
318
|
}
|
|
321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ComposerTextareaComponent, decorators: [{
|
|
322
320
|
type: Component,
|
|
323
321
|
args: [{
|
|
324
322
|
selector: 'textarea[ComposerInput]',
|
|
325
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
326
323
|
providers: [
|
|
327
324
|
{
|
|
328
325
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -85,10 +85,10 @@ class ContextMenuTriggerDirective {
|
|
|
85
85
|
this.openedChange.emit(false);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
89
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ContextMenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
89
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: ContextMenuTriggerDirective, isStandalone: true, selector: "[ContextMenuTrigger]", inputs: { ContextMenuTrigger: { classPropertyName: "ContextMenuTrigger", publicName: "ContextMenuTrigger", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "contextmenu": "onContextMenu($event)", "keydown": "onKeyDown($event)" } }, exportAs: ["ContextMenuTrigger"], ngImport: i0 });
|
|
90
90
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ContextMenuTriggerDirective, decorators: [{
|
|
92
92
|
type: Directive,
|
|
93
93
|
args: [{
|
|
94
94
|
selector: '[ContextMenuTrigger]',
|