@ojiepermana/angular-component 22.0.44 → 22.0.46
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 +9 -11
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +100 -32
- package/fesm2022/ojiepermana-angular-component-alert.mjs +5 -9
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +7 -13
- package/fesm2022/ojiepermana-angular-component-badge.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +16 -19
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +4 -7
- package/fesm2022/ojiepermana-angular-component-button.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +7 -5
- package/fesm2022/ojiepermana-angular-component-card.mjs +8 -15
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +15 -18
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +40 -11
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +8 -6
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +36 -16
- package/fesm2022/ojiepermana-angular-component-command.mjs +25 -21
- package/fesm2022/ojiepermana-angular-component-composer.mjs +15 -18
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +36 -11
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +85 -30
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +31 -26
- package/fesm2022/ojiepermana-angular-component-editor.mjs +37 -28
- package/fesm2022/ojiepermana-angular-component-empty.mjs +7 -13
- package/fesm2022/ojiepermana-angular-component-form.mjs +32 -24
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-icon.mjs +51 -6
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +17 -15
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +15 -14
- package/fesm2022/ojiepermana-angular-component-input.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-item.mjs +11 -21
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +27 -26
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +3 -5
- package/fesm2022/ojiepermana-angular-component-label.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +6 -6
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +3 -3
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +25 -12
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +22 -13
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +70 -36
- package/fesm2022/ojiepermana-angular-component-progress.mjs +7 -5
- package/fesm2022/ojiepermana-angular-component-radio.mjs +21 -10
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +22 -11
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +8 -6
- package/fesm2022/ojiepermana-angular-component-select.mjs +29 -17
- package/fesm2022/ojiepermana-angular-component-separator.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +89 -30
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-slider.mjs +25 -13
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +6 -5
- package/fesm2022/ojiepermana-angular-component-switch.mjs +17 -8
- package/fesm2022/ojiepermana-angular-component-table.mjs +9 -17
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +5 -9
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +22 -17
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +12 -6
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +2 -3
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +7 -6
- package/package.json +10 -1
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +42 -3
- package/types/ojiepermana-angular-component-combobox.d.ts +4 -1
- package/types/ojiepermana-angular-component-command.d.ts +7 -2
- package/types/ojiepermana-angular-component-dialog.d.ts +33 -3
- package/types/ojiepermana-angular-component-form.d.ts +9 -0
- package/types/ojiepermana-angular-component-icon.d.ts +48 -1
- package/types/ojiepermana-angular-component-radio.d.ts +4 -1
- package/types/ojiepermana-angular-component-sheet.d.ts +33 -3
- package/types/ojiepermana-angular-component-timeline.d.ts +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, computed,
|
|
2
|
+
import { input, booleanAttribute, computed, Component } from '@angular/core';
|
|
3
3
|
import { cn } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
|
|
5
5
|
const kanbanColumnWidthClasses = {
|
|
@@ -13,16 +13,17 @@ class KanbanComponent {
|
|
|
13
13
|
dense = input(false, { ...(ngDevMode ? { debugName: "dense" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
14
14
|
class = input('', /* @ts-ignore */
|
|
15
15
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
16
|
-
classes = computed(() => cn('flex w-full min-w-0 gap-[var(--kanban-column-gap)] overflow-x-auto pb-3 text-sm text-foreground', '[--kanban-card-gap:calc(var(--spacing)*3)] [--kanban-column-gap:calc(var(--spacing)*4)]', kanbanColumnWidthClasses[this.columnWidth()], this.dense()
|
|
16
|
+
classes = computed(() => cn('flex w-full min-w-0 gap-[var(--kanban-column-gap)] overflow-x-auto pb-3 text-sm text-foreground', '[--kanban-card-gap:calc(var(--spacing)*3)] [--kanban-column-gap:calc(var(--spacing)*4)]', kanbanColumnWidthClasses[this.columnWidth()], this.dense()
|
|
17
|
+
? '[--kanban-card-gap:calc(var(--spacing)*2)] [--kanban-column-gap:calc(var(--spacing)*3)]'
|
|
18
|
+
: '', this.class()), /* @ts-ignore */
|
|
17
19
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
18
20
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanComponent, isStandalone: true, selector: "Kanban", inputs: { columnWidth: { classPropertyName: "columnWidth", publicName: "columnWidth", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban\"", "attr.data-column-width": "columnWidth()", "attr.data-dense": "dense() ? \"\" : null" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanComponent, isStandalone: true, selector: "Kanban", inputs: { columnWidth: { classPropertyName: "columnWidth", publicName: "columnWidth", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban\"", "attr.data-column-width": "columnWidth()", "attr.data-dense": "dense() ? \"\" : null" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
20
22
|
}
|
|
21
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanComponent, decorators: [{
|
|
22
24
|
type: Component,
|
|
23
25
|
args: [{
|
|
24
26
|
selector: 'Kanban',
|
|
25
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
27
|
host: {
|
|
27
28
|
'[class]': 'classes()',
|
|
28
29
|
'[attr.data-slot]': '"kanban"',
|
|
@@ -38,13 +39,12 @@ class KanbanColumnComponent {
|
|
|
38
39
|
classes = computed(() => cn('flex max-h-full min-h-0 w-[var(--kanban-column-width)] shrink-0 flex-col overflow-hidden rounded-lg border border-border bg-muted/35 text-foreground shadow-sm', this.class()), /* @ts-ignore */
|
|
39
40
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
40
41
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnComponent, isStandalone: true, selector: "KanbanColumn", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnComponent, isStandalone: true, selector: "KanbanColumn", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
42
43
|
}
|
|
43
44
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnComponent, decorators: [{
|
|
44
45
|
type: Component,
|
|
45
46
|
args: [{
|
|
46
47
|
selector: 'KanbanColumn',
|
|
47
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
48
48
|
host: {
|
|
49
49
|
'[class]': 'classes()',
|
|
50
50
|
'[attr.data-slot]': '"kanban-column"',
|
|
@@ -79,16 +79,20 @@ class KanbanColumnHeaderComponent {
|
|
|
79
79
|
<div class="order-1 min-w-0 flex-1">
|
|
80
80
|
@if (heading()) {
|
|
81
81
|
<div class="flex min-w-0 items-center gap-2">
|
|
82
|
-
<h3 class="truncate text-sm font-semibold leading-none text-foreground">
|
|
82
|
+
<h3 class="truncate text-sm font-semibold leading-none text-foreground">
|
|
83
|
+
{{ heading() }}
|
|
84
|
+
</h3>
|
|
83
85
|
@if (displayCount() !== null) {
|
|
84
86
|
<span
|
|
85
|
-
class="inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground"
|
|
87
|
+
class="inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground"
|
|
88
|
+
>
|
|
86
89
|
{{ displayCount() }}
|
|
87
90
|
</span>
|
|
88
91
|
}
|
|
89
92
|
@if (badge()) {
|
|
90
93
|
<span
|
|
91
|
-
class="inline-flex shrink-0 items-center rounded-md border border-border bg-background px-1.5 py-0.5 text-xs font-medium text-muted-foreground"
|
|
94
|
+
class="inline-flex shrink-0 items-center rounded-md border border-border bg-background px-1.5 py-0.5 text-xs font-medium text-muted-foreground"
|
|
95
|
+
>
|
|
92
96
|
{{ badge() }}
|
|
93
97
|
</span>
|
|
94
98
|
}
|
|
@@ -101,13 +105,12 @@ class KanbanColumnHeaderComponent {
|
|
|
101
105
|
|
|
102
106
|
<ng-content />
|
|
103
107
|
</div>
|
|
104
|
-
`, isInline: true
|
|
108
|
+
`, isInline: true });
|
|
105
109
|
}
|
|
106
110
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnHeaderComponent, decorators: [{
|
|
107
111
|
type: Component,
|
|
108
112
|
args: [{
|
|
109
113
|
selector: 'KanbanColumnHeader',
|
|
110
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
111
114
|
host: {
|
|
112
115
|
'[class]': 'classes()',
|
|
113
116
|
'[attr.data-slot]': '"kanban-column-header"',
|
|
@@ -120,16 +123,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImpor
|
|
|
120
123
|
<div class="order-1 min-w-0 flex-1">
|
|
121
124
|
@if (heading()) {
|
|
122
125
|
<div class="flex min-w-0 items-center gap-2">
|
|
123
|
-
<h3 class="truncate text-sm font-semibold leading-none text-foreground">
|
|
126
|
+
<h3 class="truncate text-sm font-semibold leading-none text-foreground">
|
|
127
|
+
{{ heading() }}
|
|
128
|
+
</h3>
|
|
124
129
|
@if (displayCount() !== null) {
|
|
125
130
|
<span
|
|
126
|
-
class="inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground"
|
|
131
|
+
class="inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground"
|
|
132
|
+
>
|
|
127
133
|
{{ displayCount() }}
|
|
128
134
|
</span>
|
|
129
135
|
}
|
|
130
136
|
@if (badge()) {
|
|
131
137
|
<span
|
|
132
|
-
class="inline-flex shrink-0 items-center rounded-md border border-border bg-background px-1.5 py-0.5 text-xs font-medium text-muted-foreground"
|
|
138
|
+
class="inline-flex shrink-0 items-center rounded-md border border-border bg-background px-1.5 py-0.5 text-xs font-medium text-muted-foreground"
|
|
139
|
+
>
|
|
133
140
|
{{ badge() }}
|
|
134
141
|
</span>
|
|
135
142
|
}
|
|
@@ -151,13 +158,12 @@ class KanbanColumnActionsComponent {
|
|
|
151
158
|
classes = computed(() => cn('inline-flex items-center gap-1', this.class()), /* @ts-ignore */
|
|
152
159
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
153
160
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
154
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnActionsComponent, isStandalone: true, selector: "KanbanColumnActions, [KanbanColumnActions]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column-actions\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
161
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnActionsComponent, isStandalone: true, selector: "KanbanColumnActions, [KanbanColumnActions]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column-actions\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
155
162
|
}
|
|
156
163
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnActionsComponent, decorators: [{
|
|
157
164
|
type: Component,
|
|
158
165
|
args: [{
|
|
159
166
|
selector: 'KanbanColumnActions, [KanbanColumnActions]',
|
|
160
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
161
167
|
host: {
|
|
162
168
|
'[class]': 'classes()',
|
|
163
169
|
'[attr.data-slot]': '"kanban-column-actions"',
|
|
@@ -171,13 +177,12 @@ class KanbanColumnCardsComponent {
|
|
|
171
177
|
classes = computed(() => cn('flex min-h-0 flex-1 flex-col gap-[var(--kanban-card-gap)] overflow-y-auto p-2', this.class()), /* @ts-ignore */
|
|
172
178
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
173
179
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnCardsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
174
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnCardsComponent, isStandalone: true, selector: "KanbanColumnCards", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column-cards\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
180
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnCardsComponent, isStandalone: true, selector: "KanbanColumnCards", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column-cards\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
175
181
|
}
|
|
176
182
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnCardsComponent, decorators: [{
|
|
177
183
|
type: Component,
|
|
178
184
|
args: [{
|
|
179
185
|
selector: 'KanbanColumnCards',
|
|
180
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
181
186
|
host: {
|
|
182
187
|
'[class]': 'classes()',
|
|
183
188
|
'[attr.data-slot]': '"kanban-column-cards"',
|
|
@@ -191,13 +196,12 @@ class KanbanColumnFooterComponent {
|
|
|
191
196
|
classes = computed(() => cn('flex flex-col gap-2 border-t border-border/80 px-2 py-2', this.class()), /* @ts-ignore */
|
|
192
197
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
193
198
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
194
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnFooterComponent, isStandalone: true, selector: "KanbanColumnFooter", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column-footer\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
199
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanColumnFooterComponent, isStandalone: true, selector: "KanbanColumnFooter", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-column-footer\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
195
200
|
}
|
|
196
201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanColumnFooterComponent, decorators: [{
|
|
197
202
|
type: Component,
|
|
198
203
|
args: [{
|
|
199
204
|
selector: 'KanbanColumnFooter',
|
|
200
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
201
205
|
host: {
|
|
202
206
|
'[class]': 'classes()',
|
|
203
207
|
'[attr.data-slot]': '"kanban-column-footer"',
|
|
@@ -231,13 +235,12 @@ class KanbanCardComponent {
|
|
|
231
235
|
|
|
232
236
|
<ng-content />
|
|
233
237
|
</div>
|
|
234
|
-
`, isInline: true
|
|
238
|
+
`, isInline: true });
|
|
235
239
|
}
|
|
236
240
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanCardComponent, decorators: [{
|
|
237
241
|
type: Component,
|
|
238
242
|
args: [{
|
|
239
243
|
selector: 'KanbanCard, button[KanbanCard], a[KanbanCard]',
|
|
240
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
241
244
|
host: {
|
|
242
245
|
'[class]': 'classes()',
|
|
243
246
|
'[attr.data-slot]': '"kanban-card"',
|
|
@@ -271,13 +274,12 @@ class KanbanCardHeaderComponent {
|
|
|
271
274
|
classes = computed(() => cn('flex min-w-0 flex-wrap items-center gap-1.5', this.class()), /* @ts-ignore */
|
|
272
275
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
273
276
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
274
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanCardHeaderComponent, isStandalone: true, selector: "KanbanCardHeader, [KanbanCardHeader]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-card-header\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
277
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanCardHeaderComponent, isStandalone: true, selector: "KanbanCardHeader, [KanbanCardHeader]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-card-header\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
275
278
|
}
|
|
276
279
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanCardHeaderComponent, decorators: [{
|
|
277
280
|
type: Component,
|
|
278
281
|
args: [{
|
|
279
282
|
selector: 'KanbanCardHeader, [KanbanCardHeader]',
|
|
280
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
281
283
|
host: {
|
|
282
284
|
'[class]': 'classes()',
|
|
283
285
|
'[attr.data-slot]': '"kanban-card-header"',
|
|
@@ -291,13 +293,12 @@ class KanbanCardFooterComponent {
|
|
|
291
293
|
classes = computed(() => cn('flex min-w-0 items-center justify-between gap-2 text-xs text-muted-foreground', this.class()), /* @ts-ignore */
|
|
292
294
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
293
295
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanCardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
294
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanCardFooterComponent, isStandalone: true, selector: "KanbanCardFooter, [KanbanCardFooter]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-card-footer\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
296
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KanbanCardFooterComponent, isStandalone: true, selector: "KanbanCardFooter, [KanbanCardFooter]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kanban-card-footer\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
295
297
|
}
|
|
296
298
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KanbanCardFooterComponent, decorators: [{
|
|
297
299
|
type: Component,
|
|
298
300
|
args: [{
|
|
299
301
|
selector: 'KanbanCardFooter, [KanbanCardFooter]',
|
|
300
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
301
302
|
host: {
|
|
302
303
|
'[class]': 'classes()',
|
|
303
304
|
'[attr.data-slot]': '"kanban-card-footer"',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed,
|
|
2
|
+
import { input, computed, Component } from '@angular/core';
|
|
3
3
|
import { cn } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
|
|
5
5
|
class KbdComponent {
|
|
@@ -12,13 +12,12 @@ class KbdComponent {
|
|
|
12
12
|
].join(' '), this.class()), /* @ts-ignore */
|
|
13
13
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
14
14
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KbdComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KbdComponent, isStandalone: true, selector: "Kbd, [Kbd]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kbd\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
15
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KbdComponent, isStandalone: true, selector: "Kbd, [Kbd]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kbd\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
16
16
|
}
|
|
17
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KbdComponent, decorators: [{
|
|
18
18
|
type: Component,
|
|
19
19
|
args: [{
|
|
20
20
|
selector: 'Kbd, [Kbd]',
|
|
21
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
21
|
host: {
|
|
23
22
|
'[class]': 'classes()',
|
|
24
23
|
'[attr.data-slot]': '"kbd"',
|
|
@@ -32,13 +31,12 @@ class KbdGroupComponent {
|
|
|
32
31
|
classes = computed(() => cn('inline-flex flex-wrap items-center gap-1.5', this.class()), /* @ts-ignore */
|
|
33
32
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
34
33
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KbdGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KbdGroupComponent, isStandalone: true, selector: "KbdGroup, [KbdGroup]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kbd-group\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: KbdGroupComponent, isStandalone: true, selector: "KbdGroup, [KbdGroup]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"kbd-group\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
36
35
|
}
|
|
37
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: KbdGroupComponent, decorators: [{
|
|
38
37
|
type: Component,
|
|
39
38
|
args: [{
|
|
40
39
|
selector: 'KbdGroup, [KbdGroup]',
|
|
41
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42
40
|
host: {
|
|
43
41
|
'[class]': 'classes()',
|
|
44
42
|
'[attr.data-slot]': '"kbd-group"',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed,
|
|
2
|
+
import { input, computed, Component } from '@angular/core';
|
|
3
3
|
import { cn } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
|
|
5
5
|
class LabelComponent {
|
|
@@ -10,13 +10,12 @@ class LabelComponent {
|
|
|
10
10
|
classes = computed(() => cn('text-sm font-medium leading-none text-foreground', 'peer-disabled:cursor-not-allowed peer-disabled:opacity-70', this.class()), /* @ts-ignore */
|
|
11
11
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
12
12
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: LabelComponent, isStandalone: true, selector: "Label, label[Label]", inputs: { for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.for": "for() || null" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
13
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: LabelComponent, isStandalone: true, selector: "Label, label[Label]", inputs: { for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.for": "for() || null" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
14
14
|
}
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: LabelComponent, decorators: [{
|
|
16
16
|
type: Component,
|
|
17
17
|
args: [{
|
|
18
18
|
selector: 'Label, label[Label]',
|
|
19
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
19
|
host: {
|
|
21
20
|
'[class]': 'classes()',
|
|
22
21
|
'[attr.for]': 'for() || null',
|
|
@@ -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 { input, inject, ElementRef, signal, computed, ContentChildren, forwardRef,
|
|
4
|
+
import { input, inject, ElementRef, signal, computed, ContentChildren, forwardRef, Component, TemplateRef, Directive, output, ViewContainerRef, DestroyRef } from '@angular/core';
|
|
5
5
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { connectedPositionFor, cn } from '@ojiepermana/angular-component/utils';
|
|
7
7
|
import { merge } from 'rxjs';
|
|
@@ -119,13 +119,12 @@ class MenubarComponent {
|
|
|
119
119
|
return getComputedStyle(this.host.nativeElement).direction === 'rtl' ? -1 : 1;
|
|
120
120
|
}
|
|
121
121
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: MenubarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: MenubarComponent, isStandalone: true, selector: "Menubar", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menubar\"" } }, queries: [{ propertyName: "triggers", predicate: i0.forwardRef(() => MenubarTriggerDirective), descendants: true }], ngImport: i0, template: `<ng-content />`, isInline: true
|
|
122
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: MenubarComponent, isStandalone: true, selector: "Menubar", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menubar\"" } }, queries: [{ propertyName: "triggers", predicate: i0.forwardRef(() => MenubarTriggerDirective), descendants: true }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
123
123
|
}
|
|
124
124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: MenubarComponent, decorators: [{
|
|
125
125
|
type: Component,
|
|
126
126
|
args: [{
|
|
127
127
|
selector: 'Menubar',
|
|
128
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
129
128
|
host: {
|
|
130
129
|
'[class]': 'classes()',
|
|
131
130
|
'[attr.role]': '"menubar"',
|
|
@@ -139,13 +138,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImpor
|
|
|
139
138
|
}] } });
|
|
140
139
|
class MenubarMenuComponent {
|
|
141
140
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: MenubarMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.4", type: MenubarMenuComponent, isStandalone: true, selector: "MenubarMenu", host: { classAttribute: "contents" }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
141
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.4", type: MenubarMenuComponent, isStandalone: true, selector: "MenubarMenu", host: { classAttribute: "contents" }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
143
142
|
}
|
|
144
143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: MenubarMenuComponent, decorators: [{
|
|
145
144
|
type: Component,
|
|
146
145
|
args: [{
|
|
147
146
|
selector: 'MenubarMenu',
|
|
148
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
149
147
|
host: {
|
|
150
148
|
class: 'contents',
|
|
151
149
|
},
|
|
@@ -208,7 +206,9 @@ class MenubarTriggerDirective {
|
|
|
208
206
|
const portal = new TemplatePortal(this.MenubarTrigger().template, this.vcr);
|
|
209
207
|
overlayRef.attach(portal);
|
|
210
208
|
this.overlayRef = overlayRef;
|
|
211
|
-
merge(overlayRef
|
|
209
|
+
merge(overlayRef
|
|
210
|
+
.outsidePointerEvents()
|
|
211
|
+
.pipe(filter((event) => !this.el.nativeElement.contains(event.target))), overlayRef.keydownEvents().pipe(filter((event) => event.key === 'Escape')), overlayRef.detachments())
|
|
212
212
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
213
213
|
.subscribe(() => this.close());
|
|
214
214
|
this.isOpen.set(true);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, input, computed,
|
|
2
|
+
import { inject, ElementRef, input, computed, Component, Directive } from '@angular/core';
|
|
3
3
|
import { cn } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
|
|
5
5
|
const BASE = [
|
|
@@ -20,11 +20,11 @@ class NativeSelectComponent {
|
|
|
20
20
|
this.el.nativeElement.focus();
|
|
21
21
|
}
|
|
22
22
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NativeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NativeSelectComponent, isStandalone: true, selector: "select[NativeSelect]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .75rem center;background-repeat:no-repeat;background-size:1rem 1rem}:host([dir=\"rtl\"]){background-position:left .75rem center;padding-left:2.5rem;padding-right:.75rem}:host([multiple]),:host([size]:not([size=\"1\"])){background-image:none;padding-left:.75rem;padding-right:.75rem}\n"]
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NativeSelectComponent, isStandalone: true, selector: "select[NativeSelect]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .75rem center;background-repeat:no-repeat;background-size:1rem 1rem}:host([dir=\"rtl\"]){background-position:left .75rem center;padding-left:2.5rem;padding-right:.75rem}:host([multiple]),:host([size]:not([size=\"1\"])){background-image:none;padding-left:.75rem;padding-right:.75rem}\n"] });
|
|
24
24
|
}
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NativeSelectComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
|
-
args: [{ selector: 'select[NativeSelect]',
|
|
27
|
+
args: [{ selector: 'select[NativeSelect]', host: { '[class]': 'classes()' }, template: '<ng-content />', styles: [":host{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .75rem center;background-repeat:no-repeat;background-size:1rem 1rem}:host([dir=\"rtl\"]){background-position:left .75rem center;padding-left:2.5rem;padding-right:.75rem}:host([multiple]),:host([size]:not([size=\"1\"])){background-image:none;padding-left:.75rem;padding-right:.75rem}\n"] }]
|
|
28
28
|
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
29
29
|
|
|
30
30
|
class NativeSelectOptionDirective {
|
|
@@ -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, ElementRef, input, Directive, signal, computed, ContentChildren, forwardRef,
|
|
4
|
+
import { inject, ElementRef, input, Directive, signal, computed, ContentChildren, forwardRef, Component, TemplateRef, output, ViewContainerRef, DestroyRef } from '@angular/core';
|
|
5
5
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { connectedPositionFor, cn } from '@ojiepermana/angular-component/utils';
|
|
7
7
|
import { merge } from 'rxjs';
|
|
@@ -101,7 +101,9 @@ class NavigationMenuComponent {
|
|
|
101
101
|
}
|
|
102
102
|
enabledItems() {
|
|
103
103
|
return this.items
|
|
104
|
-
? this.items
|
|
104
|
+
? this.items
|
|
105
|
+
.toArray()
|
|
106
|
+
.filter((item) => !item.disabled() && item.isWithin(this.host.nativeElement))
|
|
105
107
|
: [];
|
|
106
108
|
}
|
|
107
109
|
resolveItem(target) {
|
|
@@ -150,13 +152,12 @@ class NavigationMenuComponent {
|
|
|
150
152
|
return getComputedStyle(this.host.nativeElement).direction === 'rtl' ? -1 : 1;
|
|
151
153
|
}
|
|
152
154
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
153
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuComponent, isStandalone: true, selector: "NavigationMenu", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($any($event))" }, properties: { "class": "classes()", "attr.role": "\"navigation\"", "attr.aria-label": "ariaLabel() || null" } }, queries: [{ propertyName: "items", predicate: i0.forwardRef(() => NavigationMenuRootItem), descendants: true }], ngImport: i0, template: `<ng-content />`, isInline: true
|
|
155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuComponent, isStandalone: true, selector: "NavigationMenu", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($any($event))" }, properties: { "class": "classes()", "attr.role": "\"navigation\"", "attr.aria-label": "ariaLabel() || null" } }, queries: [{ propertyName: "items", predicate: i0.forwardRef(() => NavigationMenuRootItem), descendants: true }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
154
156
|
}
|
|
155
157
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuComponent, decorators: [{
|
|
156
158
|
type: Component,
|
|
157
159
|
args: [{
|
|
158
160
|
selector: 'NavigationMenu',
|
|
159
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
160
161
|
host: {
|
|
161
162
|
'[class]': 'classes()',
|
|
162
163
|
'[attr.role]': '"navigation"',
|
|
@@ -175,13 +176,12 @@ class NavigationMenuListComponent {
|
|
|
175
176
|
classes = computed(() => cn('group flex flex-1 list-none items-center justify-center gap-1', this.class()), /* @ts-ignore */
|
|
176
177
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
177
178
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuListComponent, isStandalone: true, selector: "NavigationMenuList", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"menubar\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
179
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuListComponent, isStandalone: true, selector: "NavigationMenuList", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"menubar\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
179
180
|
}
|
|
180
181
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuListComponent, decorators: [{
|
|
181
182
|
type: Component,
|
|
182
183
|
args: [{
|
|
183
184
|
selector: 'NavigationMenuList',
|
|
184
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
185
185
|
host: {
|
|
186
186
|
'[class]': 'classes()',
|
|
187
187
|
'[attr.role]': '"menubar"',
|
|
@@ -195,13 +195,12 @@ class NavigationMenuItemComponent {
|
|
|
195
195
|
classes = computed(() => cn('relative', this.class()), /* @ts-ignore */
|
|
196
196
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
197
197
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
198
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuItemComponent, isStandalone: true, selector: "NavigationMenuItem", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true
|
|
198
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuItemComponent, isStandalone: true, selector: "NavigationMenuItem", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
199
199
|
}
|
|
200
200
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuItemComponent, decorators: [{
|
|
201
201
|
type: Component,
|
|
202
202
|
args: [{
|
|
203
203
|
selector: 'NavigationMenuItem',
|
|
204
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
205
204
|
host: {
|
|
206
205
|
'[class]': 'classes()',
|
|
207
206
|
},
|
|
@@ -322,14 +321,24 @@ class NavigationMenuTriggerDirective extends NavigationMenuRootItem {
|
|
|
322
321
|
firstItem?.focus();
|
|
323
322
|
}
|
|
324
323
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
325
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuTriggerDirective, isStandalone: true, selector: "[NavigationMenuTrigger]", inputs: { NavigationMenuTrigger: { classPropertyName: "NavigationMenuTrigger", publicName: "NavigationMenuTrigger", isSignal: true, isRequired: true, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "click": "toggle()", "keydown.enter": "openFromKeyboard($any($event), false)", "keydown.space": "openFromKeyboard($any($event), false)", "keydown.arrowDown": "openFromKeyboard($any($event), true)", "focus": "syncActiveState()", "mouseenter": "openFromHover()" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.aria-haspopup": "\"menu\"", "attr.aria-expanded": "isOpen()", "attr.data-state": "isOpen() ? \"open\" : \"closed\"", "attr.tabindex": "tabIndex()", "attr.disabled": "disabled() ? \"\" : null" } }, providers: [
|
|
324
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuTriggerDirective, isStandalone: true, selector: "[NavigationMenuTrigger]", inputs: { NavigationMenuTrigger: { classPropertyName: "NavigationMenuTrigger", publicName: "NavigationMenuTrigger", isSignal: true, isRequired: true, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "click": "toggle()", "keydown.enter": "openFromKeyboard($any($event), false)", "keydown.space": "openFromKeyboard($any($event), false)", "keydown.arrowDown": "openFromKeyboard($any($event), true)", "focus": "syncActiveState()", "mouseenter": "openFromHover()" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.aria-haspopup": "\"menu\"", "attr.aria-expanded": "isOpen()", "attr.data-state": "isOpen() ? \"open\" : \"closed\"", "attr.tabindex": "tabIndex()", "attr.disabled": "disabled() ? \"\" : null" } }, providers: [
|
|
325
|
+
{
|
|
326
|
+
provide: NavigationMenuRootItem,
|
|
327
|
+
useExisting: forwardRef(() => NavigationMenuTriggerDirective),
|
|
328
|
+
},
|
|
329
|
+
], exportAs: ["NavigationMenuTrigger"], usesInheritance: true, ngImport: i0 });
|
|
326
330
|
}
|
|
327
331
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuTriggerDirective, decorators: [{
|
|
328
332
|
type: Directive,
|
|
329
333
|
args: [{
|
|
330
334
|
selector: '[NavigationMenuTrigger]',
|
|
331
335
|
exportAs: 'NavigationMenuTrigger',
|
|
332
|
-
providers: [
|
|
336
|
+
providers: [
|
|
337
|
+
{
|
|
338
|
+
provide: NavigationMenuRootItem,
|
|
339
|
+
useExisting: forwardRef(() => NavigationMenuTriggerDirective),
|
|
340
|
+
},
|
|
341
|
+
],
|
|
333
342
|
host: {
|
|
334
343
|
'[class]': 'classes()',
|
|
335
344
|
'[attr.role]': '"menuitem"',
|
|
@@ -380,14 +389,18 @@ class NavigationMenuLinkDirective extends NavigationMenuRootItem {
|
|
|
380
389
|
}
|
|
381
390
|
}
|
|
382
391
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuLinkDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
383
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuLinkDirective, isStandalone: true, selector: "a[NavigationMenuLink], button[NavigationMenuLink]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focus": "syncActiveState()", "click": "preventDisabled($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.tabindex": "tabIndex()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.data-variant": "variant()" } }, providers: [
|
|
392
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: NavigationMenuLinkDirective, isStandalone: true, selector: "a[NavigationMenuLink], button[NavigationMenuLink]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focus": "syncActiveState()", "click": "preventDisabled($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.tabindex": "tabIndex()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.data-variant": "variant()" } }, providers: [
|
|
393
|
+
{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) },
|
|
394
|
+
], exportAs: ["NavigationMenuLink"], usesInheritance: true, ngImport: i0 });
|
|
384
395
|
}
|
|
385
396
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: NavigationMenuLinkDirective, decorators: [{
|
|
386
397
|
type: Directive,
|
|
387
398
|
args: [{
|
|
388
399
|
selector: 'a[NavigationMenuLink], button[NavigationMenuLink]',
|
|
389
400
|
exportAs: 'NavigationMenuLink',
|
|
390
|
-
providers: [
|
|
401
|
+
providers: [
|
|
402
|
+
{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) },
|
|
403
|
+
],
|
|
391
404
|
host: {
|
|
392
405
|
'[class]': 'classes()',
|
|
393
406
|
'[attr.role]': '"menuitem"',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buttonVariants } from '@ojiepermana/angular-component/button';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { model, input, computed,
|
|
3
|
+
import { model, input, computed, Component } from '@angular/core';
|
|
4
4
|
import { cn } from '@ojiepermana/angular-component/utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -78,7 +78,8 @@ class PaginationComponent {
|
|
|
78
78
|
[disabled]="page() <= 1 || null"
|
|
79
79
|
[attr.aria-label]="previousAriaLabel()"
|
|
80
80
|
[class]="navClasses(previousText().length > 0)"
|
|
81
|
-
(click)="go(page() - 1)"
|
|
81
|
+
(click)="go(page() - 1)"
|
|
82
|
+
>
|
|
82
83
|
<svg
|
|
83
84
|
aria-hidden="true"
|
|
84
85
|
class="h-4 w-4"
|
|
@@ -87,7 +88,8 @@ class PaginationComponent {
|
|
|
87
88
|
stroke="currentColor"
|
|
88
89
|
stroke-width="2"
|
|
89
90
|
stroke-linecap="round"
|
|
90
|
-
stroke-linejoin="round"
|
|
91
|
+
stroke-linejoin="round"
|
|
92
|
+
>
|
|
91
93
|
<polyline points="15 18 9 12 15 6" />
|
|
92
94
|
</svg>
|
|
93
95
|
@if (previousText()) {
|
|
@@ -103,7 +105,8 @@ class PaginationComponent {
|
|
|
103
105
|
type="button"
|
|
104
106
|
[attr.aria-current]="p.value === page() ? 'page' : null"
|
|
105
107
|
[class]="pageClasses(p.value === page())"
|
|
106
|
-
(click)="go(p.value)"
|
|
108
|
+
(click)="go(p.value)"
|
|
109
|
+
>
|
|
107
110
|
{{ formatPageLabel()(p.value) }}
|
|
108
111
|
</button>
|
|
109
112
|
} @else {
|
|
@@ -118,7 +121,8 @@ class PaginationComponent {
|
|
|
118
121
|
[disabled]="page() >= total() || null"
|
|
119
122
|
[attr.aria-label]="nextAriaLabel()"
|
|
120
123
|
[class]="navClasses(nextText().length > 0)"
|
|
121
|
-
(click)="go(page() + 1)"
|
|
124
|
+
(click)="go(page() + 1)"
|
|
125
|
+
>
|
|
122
126
|
@if (nextText()) {
|
|
123
127
|
<span>{{ nextText() }}</span>
|
|
124
128
|
}
|
|
@@ -130,19 +134,19 @@ class PaginationComponent {
|
|
|
130
134
|
stroke="currentColor"
|
|
131
135
|
stroke-width="2"
|
|
132
136
|
stroke-linecap="round"
|
|
133
|
-
stroke-linejoin="round"
|
|
137
|
+
stroke-linejoin="round"
|
|
138
|
+
>
|
|
134
139
|
<polyline points="9 18 15 12 9 6" />
|
|
135
140
|
</svg>
|
|
136
141
|
</button>
|
|
137
142
|
</li>
|
|
138
143
|
</ul>
|
|
139
|
-
`, isInline: true
|
|
144
|
+
`, isInline: true });
|
|
140
145
|
}
|
|
141
146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
142
147
|
type: Component,
|
|
143
148
|
args: [{
|
|
144
149
|
selector: 'Pagination, nav[Pagination]',
|
|
145
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
146
150
|
host: {
|
|
147
151
|
role: 'navigation',
|
|
148
152
|
'aria-label': 'pagination',
|
|
@@ -156,7 +160,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImpor
|
|
|
156
160
|
[disabled]="page() <= 1 || null"
|
|
157
161
|
[attr.aria-label]="previousAriaLabel()"
|
|
158
162
|
[class]="navClasses(previousText().length > 0)"
|
|
159
|
-
(click)="go(page() - 1)"
|
|
163
|
+
(click)="go(page() - 1)"
|
|
164
|
+
>
|
|
160
165
|
<svg
|
|
161
166
|
aria-hidden="true"
|
|
162
167
|
class="h-4 w-4"
|
|
@@ -165,7 +170,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImpor
|
|
|
165
170
|
stroke="currentColor"
|
|
166
171
|
stroke-width="2"
|
|
167
172
|
stroke-linecap="round"
|
|
168
|
-
stroke-linejoin="round"
|
|
173
|
+
stroke-linejoin="round"
|
|
174
|
+
>
|
|
169
175
|
<polyline points="15 18 9 12 15 6" />
|
|
170
176
|
</svg>
|
|
171
177
|
@if (previousText()) {
|
|
@@ -181,7 +187,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImpor
|
|
|
181
187
|
type="button"
|
|
182
188
|
[attr.aria-current]="p.value === page() ? 'page' : null"
|
|
183
189
|
[class]="pageClasses(p.value === page())"
|
|
184
|
-
(click)="go(p.value)"
|
|
190
|
+
(click)="go(p.value)"
|
|
191
|
+
>
|
|
185
192
|
{{ formatPageLabel()(p.value) }}
|
|
186
193
|
</button>
|
|
187
194
|
} @else {
|
|
@@ -196,7 +203,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImpor
|
|
|
196
203
|
[disabled]="page() >= total() || null"
|
|
197
204
|
[attr.aria-label]="nextAriaLabel()"
|
|
198
205
|
[class]="navClasses(nextText().length > 0)"
|
|
199
|
-
(click)="go(page() + 1)"
|
|
206
|
+
(click)="go(page() + 1)"
|
|
207
|
+
>
|
|
200
208
|
@if (nextText()) {
|
|
201
209
|
<span>{{ nextText() }}</span>
|
|
202
210
|
}
|
|
@@ -208,7 +216,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImpor
|
|
|
208
216
|
stroke="currentColor"
|
|
209
217
|
stroke-width="2"
|
|
210
218
|
stroke-linecap="round"
|
|
211
|
-
stroke-linejoin="round"
|
|
219
|
+
stroke-linejoin="round"
|
|
220
|
+
>
|
|
212
221
|
<polyline points="9 18 15 12 9 6" />
|
|
213
222
|
</svg>
|
|
214
223
|
</button>
|