@edsis/angular 21.1.4 → 21.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/.npmignore +2 -0
  2. package/README.md +123 -88
  3. package/brand/etos/README.md +273 -0
  4. package/brand/etos/package.json +4 -0
  5. package/chart/README.md +0 -0
  6. package/chart/package.json +4 -0
  7. package/collection.json +30 -0
  8. package/component/package.json +4 -0
  9. package/etos/styles/color.css +73 -0
  10. package/etos/styles/index.css +7 -0
  11. package/etos/styles/layout.css +21 -0
  12. package/etos/styles/package.css +15 -0
  13. package/etos/styles/style.css +53 -0
  14. package/fesm2022/ojiepermana-angular-brand-etos.mjs +1060 -0
  15. package/fesm2022/ojiepermana-angular-brand-etos.mjs.map +1 -0
  16. package/fesm2022/ojiepermana-angular-chart.mjs +3714 -0
  17. package/fesm2022/ojiepermana-angular-chart.mjs.map +1 -0
  18. package/fesm2022/ojiepermana-angular-component.mjs +4069 -0
  19. package/fesm2022/ojiepermana-angular-component.mjs.map +1 -0
  20. package/fesm2022/ojiepermana-angular-generator-api.mjs +67 -0
  21. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +1 -0
  22. package/fesm2022/ojiepermana-angular-layout.mjs +457 -0
  23. package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -0
  24. package/fesm2022/ojiepermana-angular-navigation.mjs +2315 -0
  25. package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -0
  26. package/fesm2022/ojiepermana-angular-theme.mjs +407 -0
  27. package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -0
  28. package/fesm2022/ojiepermana-angular.mjs +22 -0
  29. package/fesm2022/ojiepermana-angular.mjs.map +1 -0
  30. package/generator/api/README.md +246 -0
  31. package/generator/api/bin/package.json +3 -0
  32. package/generator/api/bin/schematics/init/index.js +88 -0
  33. package/generator/api/bin/schematics/ng-add/index.js +108 -0
  34. package/generator/api/bin/schematics/sdk/index.js +76 -0
  35. package/generator/api/bin/src/config/loader.js +41 -0
  36. package/generator/api/bin/src/config/schema.js +56 -0
  37. package/generator/api/bin/src/emit/client.js +246 -0
  38. package/generator/api/bin/src/emit/metadata.js +295 -0
  39. package/generator/api/bin/src/emit/models.js +106 -0
  40. package/generator/api/bin/src/emit/navigation.js +56 -0
  41. package/generator/api/bin/src/emit/operations.js +122 -0
  42. package/generator/api/bin/src/emit/public-api.js +54 -0
  43. package/generator/api/bin/src/emit/services.js +87 -0
  44. package/generator/api/bin/src/engine.js +65 -0
  45. package/generator/api/bin/src/layout/per-domain.js +355 -0
  46. package/generator/api/bin/src/parser/bundle.js +25 -0
  47. package/generator/api/bin/src/parser/ir.js +320 -0
  48. package/generator/api/bin/src/parser/types.js +7 -0
  49. package/generator/api/bin/src/render/template.js +58 -0
  50. package/generator/api/bin/src/writer/index.js +236 -0
  51. package/generator/api/package.json +4 -0
  52. package/generator/api/schematics/init/schema.json +19 -0
  53. package/generator/api/schematics/ng-add/schema.json +14 -0
  54. package/generator/api/schematics/sdk/schema.json +19 -0
  55. package/generator/api/sdk.config.example.json +22 -0
  56. package/generator/guide/README.md +84 -0
  57. package/generator/guide/bin/package.json +3 -0
  58. package/generator/guide/bin/schematics/build/index.js +35 -0
  59. package/generator/guide/bin/schematics/init/index.js +70 -0
  60. package/generator/guide/bin/src/config/loader.js +50 -0
  61. package/generator/guide/bin/src/config/schema.js +12 -0
  62. package/generator/guide/bin/src/engine/component.js +73 -0
  63. package/generator/guide/bin/src/engine/frontmatter.js +42 -0
  64. package/generator/guide/bin/src/engine/index.js +42 -0
  65. package/generator/guide/bin/src/engine/naming.js +39 -0
  66. package/generator/guide/bin/src/engine/render.js +18 -0
  67. package/generator/guide/bin/src/engine/routes.js +106 -0
  68. package/generator/guide/bin/src/engine/walk.js +35 -0
  69. package/generator/guide/guide.config.example.json +9 -0
  70. package/generator/guide/schematics/build/schema.json +14 -0
  71. package/generator/guide/schematics/init/schema.json +19 -0
  72. package/layout/package.json +4 -0
  73. package/navigation/package.json +4 -0
  74. package/package.json +102 -39
  75. package/theme/package.json +4 -0
  76. package/theme/styles/etos.css +6 -0
  77. package/theme/styles/index.css +32 -0
  78. package/theme/styles/themes/library/_components.css +81 -0
  79. package/theme/styles/themes/library/_layers.css +15 -0
  80. package/theme/styles/themes/library/_material-overrides.css +254 -0
  81. package/theme/styles/themes/library/_tokens.css +55 -0
  82. package/theme/styles/themes/library/color/amber.css +31 -0
  83. package/theme/styles/themes/library/color/base.css +36 -0
  84. package/theme/styles/themes/library/color/blue.css +31 -0
  85. package/theme/styles/themes/library/color/cyan.css +31 -0
  86. package/theme/styles/themes/library/color/emerald.css +31 -0
  87. package/theme/styles/themes/library/color/fuchsia.css +31 -0
  88. package/theme/styles/themes/library/color/green.css +31 -0
  89. package/theme/styles/themes/library/color/index.css +22 -0
  90. package/theme/styles/themes/library/color/indigo.css +31 -0
  91. package/theme/styles/themes/library/color/lime.css +31 -0
  92. package/theme/styles/themes/library/color/orange.css +31 -0
  93. package/theme/styles/themes/library/color/pink.css +31 -0
  94. package/theme/styles/themes/library/color/purple.css +31 -0
  95. package/theme/styles/themes/library/color/red.css +31 -0
  96. package/theme/styles/themes/library/color/rose.css +31 -0
  97. package/theme/styles/themes/library/color/sky.css +31 -0
  98. package/theme/styles/themes/library/color/teal.css +31 -0
  99. package/theme/styles/themes/library/color/violet.css +31 -0
  100. package/theme/styles/themes/library/color/yellow.css +31 -0
  101. package/theme/styles/themes/library/style/brutal.css +50 -0
  102. package/theme/styles/themes/library/style/default.css +54 -0
  103. package/theme/styles/themes/library/style/index.css +8 -0
  104. package/theme/styles/themes/library/style/sharp.css +50 -0
  105. package/theme/styles/themes/library/style/soft.css +50 -0
  106. package/theme/styles/themes/mode/dark.css +20 -0
  107. package/theme/styles/themes/mode/index.css +6 -0
  108. package/theme/styles/themes/mode/light.css +24 -0
  109. package/theme/styles/themes/tailwind.css +114 -0
  110. package/types/ojiepermana-angular-brand-etos.d.ts +162 -0
  111. package/types/ojiepermana-angular-chart.d.ts +1094 -0
  112. package/types/ojiepermana-angular-component.d.ts +1386 -0
  113. package/types/ojiepermana-angular-generator-api.d.ts +85 -0
  114. package/types/ojiepermana-angular-layout.d.ts +163 -0
  115. package/types/ojiepermana-angular-navigation.d.ts +388 -0
  116. package/types/ojiepermana-angular-theme.d.ts +171 -0
  117. package/types/ojiepermana-angular.d.ts +3 -0
  118. package/fesm2022/edsis-angular-auth.mjs +0 -1209
  119. package/fesm2022/edsis-angular-auth.mjs.map +0 -1
  120. package/fesm2022/edsis-angular-sdk-access.mjs +0 -1364
  121. package/fesm2022/edsis-angular-sdk-access.mjs.map +0 -1
  122. package/fesm2022/edsis-angular-sdk-approval.mjs +0 -1258
  123. package/fesm2022/edsis-angular-sdk-approval.mjs.map +0 -1
  124. package/fesm2022/edsis-angular-sdk-auth.mjs +0 -253
  125. package/fesm2022/edsis-angular-sdk-auth.mjs.map +0 -1
  126. package/fesm2022/edsis-angular-sdk-employee.mjs +0 -283
  127. package/fesm2022/edsis-angular-sdk-employee.mjs.map +0 -1
  128. package/fesm2022/edsis-angular-sdk-health.mjs +0 -95
  129. package/fesm2022/edsis-angular-sdk-health.mjs.map +0 -1
  130. package/fesm2022/edsis-angular-sdk-shared.mjs +0 -2740
  131. package/fesm2022/edsis-angular-sdk-shared.mjs.map +0 -1
  132. package/fesm2022/edsis-angular-sdk-storage.mjs +0 -287
  133. package/fesm2022/edsis-angular-sdk-storage.mjs.map +0 -1
  134. package/fesm2022/edsis-angular-sdk-user.mjs +0 -488
  135. package/fesm2022/edsis-angular-sdk-user.mjs.map +0 -1
  136. package/fesm2022/edsis-angular-sdk.mjs +0 -6730
  137. package/fesm2022/edsis-angular-sdk.mjs.map +0 -1
  138. package/fesm2022/edsis-angular.mjs +0 -8
  139. package/fesm2022/edsis-angular.mjs.map +0 -1
  140. package/types/edsis-angular-auth.d.ts +0 -119
  141. package/types/edsis-angular-sdk-access.d.ts +0 -546
  142. package/types/edsis-angular-sdk-approval.d.ts +0 -637
  143. package/types/edsis-angular-sdk-auth.d.ts +0 -127
  144. package/types/edsis-angular-sdk-employee.d.ts +0 -158
  145. package/types/edsis-angular-sdk-health.d.ts +0 -34
  146. package/types/edsis-angular-sdk-shared.d.ts +0 -176
  147. package/types/edsis-angular-sdk-storage.d.ts +0 -101
  148. package/types/edsis-angular-sdk-user.d.ts +0 -188
  149. package/types/edsis-angular-sdk.d.ts +0 -1927
  150. package/types/edsis-angular.d.ts +0 -2
@@ -0,0 +1,4069 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ import * as i0 from '@angular/core';
4
+ import { Directive, input, model, computed, forwardRef, ChangeDetectionStrategy, Component, inject, signal, output, viewChild, ElementRef, DestroyRef, ViewContainerRef, effect, untracked, ContentChildren, TemplateRef, Injectable, InjectionToken } from '@angular/core';
5
+ import { cva } from 'class-variance-authority';
6
+ import { MatCalendar, MatDatepicker, MatDatepickerInput, MatDatepickerToggle } from '@angular/material/datepicker';
7
+ import * as i1 from '@angular/forms';
8
+ import { NG_VALUE_ACCESSOR, FormControl, ReactiveFormsModule, NgControl } from '@angular/forms';
9
+ import { MatCheckbox } from '@angular/material/checkbox';
10
+ import { Overlay } from '@angular/cdk/overlay';
11
+ import { TemplatePortal } from '@angular/cdk/portal';
12
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
13
+ import { merge } from 'rxjs';
14
+ import { filter } from 'rxjs/operators';
15
+ import { MatFormField } from '@angular/material/form-field';
16
+ import { MatInput } from '@angular/material/input';
17
+ import { FocusTrapFactory, FocusKeyManager } from '@angular/cdk/a11y';
18
+ import { DOCUMENT } from '@angular/common';
19
+ import { MatRadioGroup, MatRadioButton } from '@angular/material/radio';
20
+ import { MatSelect } from '@angular/material/select';
21
+ import { MatOption } from '@angular/material/core';
22
+ import { MatSlideToggle } from '@angular/material/slide-toggle';
23
+ import { MatSnackBar } from '@angular/material/snack-bar';
24
+ import * as i1$1 from '@angular/material/tooltip';
25
+ import { MatTooltip } from '@angular/material/tooltip';
26
+ import { DomSanitizer } from '@angular/platform-browser';
27
+
28
+ /**
29
+ * Concatenate and dedupe Tailwind class names.
30
+ *
31
+ * @example
32
+ * cn('px-2 py-1', condition && 'bg-primary', props.class)
33
+ */
34
+ function cn(...inputs) {
35
+ return twMerge(clsx(inputs));
36
+ }
37
+
38
+ class AccordionContextBase {
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
40
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: AccordionContextBase, isStandalone: true, ngImport: i0 });
41
+ }
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionContextBase, decorators: [{
43
+ type: Directive
44
+ }] });
45
+ class AccordionComponent extends AccordionContextBase {
46
+ type = input('single', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
47
+ collapsible = input(true, ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
48
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
49
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
50
+ classes = computed(() => cn('block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
51
+ openSet = computed(() => {
52
+ const v = this.value();
53
+ if (v == null)
54
+ return new Set();
55
+ return new Set(Array.isArray(v) ? v : [v]);
56
+ }, ...(ngDevMode ? [{ debugName: "openSet" }] : /* istanbul ignore next */ []));
57
+ isOpen(value) {
58
+ return this.openSet().has(value);
59
+ }
60
+ toggle(value) {
61
+ const isMulti = this.type() === 'multiple';
62
+ const current = this.openSet();
63
+ const open = current.has(value);
64
+ if (isMulti) {
65
+ const next = new Set(current);
66
+ open ? next.delete(value) : next.add(value);
67
+ this.value.set([...next]);
68
+ }
69
+ else {
70
+ if (open) {
71
+ if (this.collapsible())
72
+ this.value.set(null);
73
+ }
74
+ else {
75
+ this.value.set(value);
76
+ }
77
+ }
78
+ }
79
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
80
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AccordionComponent, isStandalone: true, selector: "ui-accordion", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "classes()" } }, providers: [{ provide: AccordionContextBase, useExisting: forwardRef(() => AccordionComponent) }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
81
+ }
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionComponent, decorators: [{
83
+ type: Component,
84
+ args: [{
85
+ selector: 'ui-accordion',
86
+ changeDetection: ChangeDetectionStrategy.OnPush,
87
+ providers: [{ provide: AccordionContextBase, useExisting: forwardRef(() => AccordionComponent) }],
88
+ host: { '[class]': 'classes()' },
89
+ template: `<ng-content />`,
90
+ }]
91
+ }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
92
+ class AccordionItemComponent {
93
+ ctx = inject(AccordionContextBase);
94
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
95
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
96
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
97
+ triggerId = `ui-accordion-trigger-${nextId$1()}`;
98
+ contentId = `ui-accordion-content-${nextId$1()}`;
99
+ classes = computed(() => cn('border-b', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
100
+ open = computed(() => this.ctx.isOpen(this.value()), ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
101
+ toggle() {
102
+ if (!this.disabled())
103
+ this.ctx.toggle(this.value());
104
+ }
105
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
106
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AccordionItemComponent, isStandalone: true, selector: "ui-accordion-item", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-state": "open() ? \"open\" : \"closed\"", "attr.data-disabled": "disabled() ? \"\" : null" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
107
+ }
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionItemComponent, decorators: [{
109
+ type: Component,
110
+ args: [{
111
+ selector: 'ui-accordion-item',
112
+ changeDetection: ChangeDetectionStrategy.OnPush,
113
+ host: {
114
+ '[class]': 'classes()',
115
+ '[attr.data-state]': 'open() ? "open" : "closed"',
116
+ '[attr.data-disabled]': 'disabled() ? "" : null',
117
+ },
118
+ template: `<ng-content />`,
119
+ }]
120
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
121
+ class AccordionTriggerComponent {
122
+ item = inject(AccordionItemComponent);
123
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
124
+ classes = computed(() => cn('flex flex-1 w-full items-center justify-between py-4 text-sm font-medium', 'transition-all hover:underline', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', 'disabled:pointer-events-none disabled:opacity-50', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
125
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
126
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AccordionTriggerComponent, isStandalone: true, selector: "button[ui-accordion-trigger]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "item.toggle()" }, properties: { "class": "classes()", "attr.id": "item.triggerId", "attr.aria-controls": "item.contentId", "attr.aria-expanded": "item.open()", "attr.data-state": "item.open() ? \"open\" : \"closed\"", "disabled": "item.disabled() || null" } }, ngImport: i0, template: `
127
+ <ng-content />
128
+ <svg
129
+ aria-hidden="true"
130
+ class="h-4 w-4 shrink-0 transition-transform duration-200"
131
+ [class.rotate-180]="item.open()"
132
+ viewBox="0 0 24 24"
133
+ fill="none"
134
+ stroke="currentColor"
135
+ stroke-width="2"
136
+ stroke-linecap="round"
137
+ stroke-linejoin="round">
138
+ <polyline points="6 9 12 15 18 9" />
139
+ </svg>
140
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
141
+ }
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionTriggerComponent, decorators: [{
143
+ type: Component,
144
+ args: [{
145
+ selector: 'button[ui-accordion-trigger]',
146
+ changeDetection: ChangeDetectionStrategy.OnPush,
147
+ host: {
148
+ '[class]': 'classes()',
149
+ type: 'button',
150
+ '[attr.id]': 'item.triggerId',
151
+ '[attr.aria-controls]': 'item.contentId',
152
+ '[attr.aria-expanded]': 'item.open()',
153
+ '[attr.data-state]': 'item.open() ? "open" : "closed"',
154
+ '[disabled]': 'item.disabled() || null',
155
+ '(click)': 'item.toggle()',
156
+ },
157
+ template: `
158
+ <ng-content />
159
+ <svg
160
+ aria-hidden="true"
161
+ class="h-4 w-4 shrink-0 transition-transform duration-200"
162
+ [class.rotate-180]="item.open()"
163
+ viewBox="0 0 24 24"
164
+ fill="none"
165
+ stroke="currentColor"
166
+ stroke-width="2"
167
+ stroke-linecap="round"
168
+ stroke-linejoin="round">
169
+ <polyline points="6 9 12 15 18 9" />
170
+ </svg>
171
+ `,
172
+ }]
173
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
174
+ class AccordionContentComponent {
175
+ item = inject(AccordionItemComponent);
176
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
177
+ classes = computed(() => cn('overflow-hidden text-sm', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
178
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
179
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AccordionContentComponent, isStandalone: true, selector: "ui-accordion-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "item.contentId", "attr.role": "\"region\"", "attr.aria-labelledby": "item.triggerId", "attr.data-state": "item.open() ? \"open\" : \"closed\"", "hidden": "!item.open()" } }, ngImport: i0, template: `<div class="pb-4 pt-0 text-sm"><ng-content /></div>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
180
+ }
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AccordionContentComponent, decorators: [{
182
+ type: Component,
183
+ args: [{
184
+ selector: 'ui-accordion-content',
185
+ changeDetection: ChangeDetectionStrategy.OnPush,
186
+ host: {
187
+ '[class]': 'classes()',
188
+ '[attr.id]': 'item.contentId',
189
+ '[attr.role]': '"region"',
190
+ '[attr.aria-labelledby]': 'item.triggerId',
191
+ '[attr.data-state]': 'item.open() ? "open" : "closed"',
192
+ '[hidden]': '!item.open()',
193
+ },
194
+ template: `<div class="pb-4 pt-0 text-sm"><ng-content /></div>`,
195
+ }]
196
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
197
+ let _id = 0;
198
+ function nextId$1() {
199
+ return ++_id;
200
+ }
201
+
202
+ const alertVariants = cva([
203
+ 'relative w-full rounded-lg border p-4',
204
+ '[&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px]',
205
+ '[&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground',
206
+ ].join(' '), {
207
+ variants: {
208
+ variant: {
209
+ default: 'bg-background text-foreground',
210
+ destructive: 'border-destructive/50 text-destructive [&>svg]:text-destructive dark:border-destructive',
211
+ },
212
+ },
213
+ defaultVariants: { variant: 'default' },
214
+ });
215
+
216
+ class AlertComponent {
217
+ variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
218
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
219
+ classes = computed(() => cn(alertVariants({ variant: this.variant() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
220
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
221
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AlertComponent, isStandalone: true, selector: "ui-alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"alert\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
222
+ }
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AlertComponent, decorators: [{
224
+ type: Component,
225
+ args: [{
226
+ selector: 'ui-alert',
227
+ changeDetection: ChangeDetectionStrategy.OnPush,
228
+ host: {
229
+ '[class]': 'classes()',
230
+ '[attr.role]': '"alert"',
231
+ },
232
+ template: `<ng-content />`,
233
+ }]
234
+ }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
235
+ class AlertTitleComponent {
236
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
237
+ classes = computed(() => cn('mb-1 font-medium leading-none tracking-tight', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
238
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AlertTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
239
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AlertTitleComponent, isStandalone: true, selector: "ui-alert-title, h5[ui-alert-title]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
240
+ }
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AlertTitleComponent, decorators: [{
242
+ type: Component,
243
+ args: [{
244
+ selector: 'ui-alert-title, h5[ui-alert-title]',
245
+ changeDetection: ChangeDetectionStrategy.OnPush,
246
+ host: { '[class]': 'classes()' },
247
+ template: `<ng-content />`,
248
+ }]
249
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
250
+ class AlertDescriptionComponent {
251
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
252
+ classes = computed(() => cn('text-sm [&_p]:leading-relaxed', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
253
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AlertDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
254
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AlertDescriptionComponent, isStandalone: true, selector: "ui-alert-description", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
255
+ }
256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AlertDescriptionComponent, decorators: [{
257
+ type: Component,
258
+ args: [{
259
+ selector: 'ui-alert-description',
260
+ changeDetection: ChangeDetectionStrategy.OnPush,
261
+ host: { '[class]': 'classes()' },
262
+ template: `<ng-content />`,
263
+ }]
264
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
265
+
266
+ class AvatarComponent {
267
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
268
+ classes = computed(() => cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
269
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
270
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AvatarComponent, isStandalone: true, selector: "ui-avatar", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
271
+ }
272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AvatarComponent, decorators: [{
273
+ type: Component,
274
+ args: [{
275
+ selector: 'ui-avatar',
276
+ changeDetection: ChangeDetectionStrategy.OnPush,
277
+ host: { '[class]': 'classes()' },
278
+ template: `<ng-content />`,
279
+ }]
280
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
281
+ class AvatarImageComponent {
282
+ src = input.required(...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
283
+ alt = input('', ...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
284
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
285
+ failed = signal(false, ...(ngDevMode ? [{ debugName: "failed" }] : /* istanbul ignore next */ []));
286
+ classes = computed(() => cn('aspect-square h-full w-full object-cover', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
287
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AvatarImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
288
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: AvatarImageComponent, isStandalone: true, selector: "ui-avatar-image", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: true, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
289
+ @if (!failed()) {
290
+ <img [src]="src()" [alt]="alt()" [class]="classes()" (error)="failed.set(true)" />
291
+ }
292
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
293
+ }
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AvatarImageComponent, decorators: [{
295
+ type: Component,
296
+ args: [{
297
+ selector: 'ui-avatar-image',
298
+ changeDetection: ChangeDetectionStrategy.OnPush,
299
+ template: `
300
+ @if (!failed()) {
301
+ <img [src]="src()" [alt]="alt()" [class]="classes()" (error)="failed.set(true)" />
302
+ }
303
+ `,
304
+ }]
305
+ }], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: true }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
306
+ class AvatarFallbackComponent {
307
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
308
+ classes = computed(() => cn('flex h-full w-full items-center justify-center rounded-full bg-muted text-sm font-medium text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
309
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AvatarFallbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
310
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: AvatarFallbackComponent, isStandalone: true, selector: "ui-avatar-fallback", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
311
+ }
312
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AvatarFallbackComponent, decorators: [{
313
+ type: Component,
314
+ args: [{
315
+ selector: 'ui-avatar-fallback',
316
+ changeDetection: ChangeDetectionStrategy.OnPush,
317
+ host: { '[class]': 'classes()' },
318
+ template: `<ng-content />`,
319
+ }]
320
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
321
+
322
+ const badgeVariants = cva([
323
+ 'inline-flex items-center rounded-full border px-2.5 py-0.5',
324
+ 'text-xs font-semibold transition-colors',
325
+ 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
326
+ ].join(' '), {
327
+ variants: {
328
+ variant: {
329
+ default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
330
+ secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
331
+ destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
332
+ outline: 'text-foreground',
333
+ },
334
+ },
335
+ defaultVariants: { variant: 'default' },
336
+ });
337
+
338
+ class BadgeComponent {
339
+ variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
340
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
341
+ classes = computed(() => cn(badgeVariants({ variant: this.variant() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
342
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
343
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BadgeComponent, isStandalone: true, selector: "ui-badge, span[ui-badge]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
344
+ }
345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BadgeComponent, decorators: [{
346
+ type: Component,
347
+ args: [{
348
+ selector: 'ui-badge, span[ui-badge]',
349
+ changeDetection: ChangeDetectionStrategy.OnPush,
350
+ host: { '[class]': 'classes()' },
351
+ template: `<ng-content />`,
352
+ }]
353
+ }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
354
+
355
+ class BreadcrumbComponent {
356
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
357
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BreadcrumbComponent, isStandalone: true, selector: "ui-breadcrumb, nav[ui-breadcrumb]", host: { properties: { "attr.aria-label": "\"breadcrumb\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
358
+ }
359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbComponent, decorators: [{
360
+ type: Component,
361
+ args: [{
362
+ selector: 'ui-breadcrumb, nav[ui-breadcrumb]',
363
+ changeDetection: ChangeDetectionStrategy.OnPush,
364
+ host: {
365
+ '[attr.aria-label]': '"breadcrumb"',
366
+ },
367
+ template: `<ng-content />`,
368
+ }]
369
+ }] });
370
+ class BreadcrumbListComponent {
371
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
372
+ classes = computed(() => cn('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
373
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
374
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BreadcrumbListComponent, isStandalone: true, selector: "ol[ui-breadcrumb-list]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
375
+ }
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbListComponent, decorators: [{
377
+ type: Component,
378
+ args: [{
379
+ selector: 'ol[ui-breadcrumb-list]',
380
+ changeDetection: ChangeDetectionStrategy.OnPush,
381
+ host: { '[class]': 'classes()' },
382
+ template: `<ng-content />`,
383
+ }]
384
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
385
+ class BreadcrumbItemComponent {
386
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
387
+ classes = computed(() => cn('inline-flex items-center gap-1.5', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
388
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
389
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BreadcrumbItemComponent, isStandalone: true, selector: "li[ui-breadcrumb-item]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
390
+ }
391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbItemComponent, decorators: [{
392
+ type: Component,
393
+ args: [{
394
+ selector: 'li[ui-breadcrumb-item]',
395
+ changeDetection: ChangeDetectionStrategy.OnPush,
396
+ host: { '[class]': 'classes()' },
397
+ template: `<ng-content />`,
398
+ }]
399
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
400
+ class BreadcrumbLinkComponent {
401
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
402
+ classes = computed(() => cn('transition-colors hover:text-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
403
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
404
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BreadcrumbLinkComponent, isStandalone: true, selector: "a[ui-breadcrumb-link]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
405
+ }
406
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbLinkComponent, decorators: [{
407
+ type: Component,
408
+ args: [{
409
+ selector: 'a[ui-breadcrumb-link]',
410
+ changeDetection: ChangeDetectionStrategy.OnPush,
411
+ host: { '[class]': 'classes()' },
412
+ template: `<ng-content />`,
413
+ }]
414
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
415
+ class BreadcrumbPageComponent {
416
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
417
+ classes = computed(() => cn('font-normal text-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
418
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
419
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BreadcrumbPageComponent, isStandalone: true, selector: "span[ui-breadcrumb-page]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "link", "aria-disabled": "true", "aria-current": "page" }, properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
420
+ }
421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbPageComponent, decorators: [{
422
+ type: Component,
423
+ args: [{
424
+ selector: 'span[ui-breadcrumb-page]',
425
+ changeDetection: ChangeDetectionStrategy.OnPush,
426
+ host: {
427
+ '[class]': 'classes()',
428
+ role: 'link',
429
+ 'aria-disabled': 'true',
430
+ 'aria-current': 'page',
431
+ },
432
+ template: `<ng-content />`,
433
+ }]
434
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
435
+ class BreadcrumbSeparatorComponent {
436
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
437
+ classes = computed(() => cn('[&>svg]:size-3.5', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
438
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
439
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BreadcrumbSeparatorComponent, isStandalone: true, selector: "li[ui-breadcrumb-separator]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "presentation", "aria-hidden": "true" }, properties: { "class": "classes()" } }, ngImport: i0, template: `
440
+ <ng-content>
441
+ <svg
442
+ class="h-3.5 w-3.5"
443
+ viewBox="0 0 24 24"
444
+ fill="none"
445
+ stroke="currentColor"
446
+ stroke-width="2"
447
+ stroke-linecap="round"
448
+ stroke-linejoin="round">
449
+ <polyline points="9 18 15 12 9 6" />
450
+ </svg>
451
+ </ng-content>
452
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
453
+ }
454
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbSeparatorComponent, decorators: [{
455
+ type: Component,
456
+ args: [{
457
+ selector: 'li[ui-breadcrumb-separator]',
458
+ changeDetection: ChangeDetectionStrategy.OnPush,
459
+ host: {
460
+ '[class]': 'classes()',
461
+ role: 'presentation',
462
+ 'aria-hidden': 'true',
463
+ },
464
+ template: `
465
+ <ng-content>
466
+ <svg
467
+ class="h-3.5 w-3.5"
468
+ viewBox="0 0 24 24"
469
+ fill="none"
470
+ stroke="currentColor"
471
+ stroke-width="2"
472
+ stroke-linecap="round"
473
+ stroke-linejoin="round">
474
+ <polyline points="9 18 15 12 9 6" />
475
+ </svg>
476
+ </ng-content>
477
+ `,
478
+ }]
479
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
480
+ class BreadcrumbEllipsisComponent {
481
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
482
+ classes = computed(() => cn('flex h-9 w-9 items-center justify-center', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
483
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbEllipsisComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
484
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BreadcrumbEllipsisComponent, isStandalone: true, selector: "span[ui-breadcrumb-ellipsis]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "presentation", "aria-hidden": "true" }, properties: { "class": "classes()" } }, ngImport: i0, template: `
485
+ <svg
486
+ class="h-4 w-4"
487
+ viewBox="0 0 24 24"
488
+ fill="none"
489
+ stroke="currentColor"
490
+ stroke-width="2"
491
+ stroke-linecap="round"
492
+ stroke-linejoin="round">
493
+ <circle cx="12" cy="12" r="1" />
494
+ <circle cx="19" cy="12" r="1" />
495
+ <circle cx="5" cy="12" r="1" />
496
+ </svg>
497
+ <span class="sr-only">More</span>
498
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
499
+ }
500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BreadcrumbEllipsisComponent, decorators: [{
501
+ type: Component,
502
+ args: [{
503
+ selector: 'span[ui-breadcrumb-ellipsis]',
504
+ changeDetection: ChangeDetectionStrategy.OnPush,
505
+ host: {
506
+ '[class]': 'classes()',
507
+ role: 'presentation',
508
+ 'aria-hidden': 'true',
509
+ },
510
+ template: `
511
+ <svg
512
+ class="h-4 w-4"
513
+ viewBox="0 0 24 24"
514
+ fill="none"
515
+ stroke="currentColor"
516
+ stroke-width="2"
517
+ stroke-linecap="round"
518
+ stroke-linejoin="round">
519
+ <circle cx="12" cy="12" r="1" />
520
+ <circle cx="19" cy="12" r="1" />
521
+ <circle cx="5" cy="12" r="1" />
522
+ </svg>
523
+ <span class="sr-only">More</span>
524
+ `,
525
+ }]
526
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
527
+
528
+ const buttonVariants = cva([
529
+ 'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap',
530
+ 'rounded-md text-sm font-medium',
531
+ 'transition-colors',
532
+ 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',
533
+ 'disabled:pointer-events-none disabled:opacity-50',
534
+ '[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
535
+ ].join(' '), {
536
+ variants: {
537
+ variant: {
538
+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',
539
+ destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
540
+ outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
541
+ secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
542
+ ghost: 'hover:bg-accent hover:text-accent-foreground',
543
+ link: 'text-primary underline-offset-4 hover:underline',
544
+ },
545
+ size: {
546
+ default: 'h-9 px-4 py-2',
547
+ sm: 'h-8 rounded-md px-3 text-xs',
548
+ lg: 'h-10 rounded-md px-8',
549
+ icon: 'h-9 w-9',
550
+ },
551
+ },
552
+ defaultVariants: { variant: 'default', size: 'default' },
553
+ });
554
+
555
+ /**
556
+ * Button component (native <button>, no Material).
557
+ * Use on `<button>` or `<a>` via the attribute selectors.
558
+ */
559
+ class ButtonComponent {
560
+ variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
561
+ size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
562
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
563
+ classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
564
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
565
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: ButtonComponent, isStandalone: true, selector: "button[ui-button], a[ui-button]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-variant": "variant()", "attr.data-size": "size()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
566
+ }
567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ButtonComponent, decorators: [{
568
+ type: Component,
569
+ args: [{
570
+ selector: 'button[ui-button], a[ui-button]',
571
+ changeDetection: ChangeDetectionStrategy.OnPush,
572
+ host: {
573
+ '[class]': 'classes()',
574
+ '[attr.data-variant]': 'variant()',
575
+ '[attr.data-size]': 'size()',
576
+ },
577
+ template: `<ng-content />`,
578
+ }]
579
+ }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
580
+
581
+ /**
582
+ * Inline calendar built on MatCalendar. Requires a date adapter provider in the
583
+ * consumer app (e.g. `provideNativeDateAdapter()` from `@angular/material/core`).
584
+ */
585
+ class CalendarComponent {
586
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
587
+ min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
588
+ max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
589
+ startAt = input(null, ...(ngDevMode ? [{ debugName: "startAt" }] : /* istanbul ignore next */ []));
590
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
591
+ classes = computed(() => cn('', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
592
+ onChangeFn = () => { };
593
+ onTouchedFn = () => { };
594
+ onSelect(d) {
595
+ this.value.set(d);
596
+ this.onChangeFn(d);
597
+ this.onTouchedFn();
598
+ }
599
+ writeValue(v) {
600
+ this.value.set(v);
601
+ }
602
+ registerOnChange(fn) {
603
+ this.onChangeFn = fn;
604
+ }
605
+ registerOnTouched(fn) {
606
+ this.onTouchedFn = fn;
607
+ }
608
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
609
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CalendarComponent, isStandalone: true, selector: "ui-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, startAt: { classPropertyName: "startAt", publicName: "startAt", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "classes()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendarComponent), multi: true }], ngImport: i0, template: `
610
+ <mat-calendar
611
+ class="ui-calendar"
612
+ [selected]="value()"
613
+ [minDate]="min()"
614
+ [maxDate]="max()"
615
+ [startAt]="startAt()"
616
+ (selectedChange)="onSelect($event)" />
617
+ `, isInline: true, styles: [":host{display:inline-block;padding:.75rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.ui-calendar{display:block}\n"], dependencies: [{ kind: "component", type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
618
+ }
619
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CalendarComponent, decorators: [{
620
+ type: Component,
621
+ args: [{ selector: 'ui-calendar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendar], host: { '[class]': 'classes()' }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendarComponent), multi: true }], template: `
622
+ <mat-calendar
623
+ class="ui-calendar"
624
+ [selected]="value()"
625
+ [minDate]="min()"
626
+ [maxDate]="max()"
627
+ [startAt]="startAt()"
628
+ (selectedChange)="onSelect($event)" />
629
+ `, styles: [":host{display:inline-block;padding:.75rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.ui-calendar{display:block}\n"] }]
630
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], startAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "startAt", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
631
+
632
+ class CardComponent {
633
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
634
+ classes = computed(() => cn('rounded-lg border bg-card text-card-foreground shadow-sm', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
635
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
636
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CardComponent, isStandalone: true, selector: "ui-card", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
637
+ }
638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardComponent, decorators: [{
639
+ type: Component,
640
+ args: [{
641
+ selector: 'ui-card',
642
+ changeDetection: ChangeDetectionStrategy.OnPush,
643
+ host: { '[class]': 'classes()' },
644
+ template: `<ng-content />`,
645
+ }]
646
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
647
+
648
+ class CardHeaderComponent {
649
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
650
+ classes = computed(() => cn('flex flex-col gap-1.5 p-6', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
651
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
652
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CardHeaderComponent, isStandalone: true, selector: "ui-card-header", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
653
+ }
654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardHeaderComponent, decorators: [{
655
+ type: Component,
656
+ args: [{
657
+ selector: 'ui-card-header',
658
+ changeDetection: ChangeDetectionStrategy.OnPush,
659
+ host: { '[class]': 'classes()' },
660
+ template: `<ng-content />`,
661
+ }]
662
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
663
+
664
+ class CardTitleComponent {
665
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
666
+ classes = computed(() => cn('text-lg font-semibold leading-none tracking-tight', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
667
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
668
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CardTitleComponent, isStandalone: true, selector: "ui-card-title, h3[ui-card-title]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
669
+ }
670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardTitleComponent, decorators: [{
671
+ type: Component,
672
+ args: [{
673
+ selector: 'ui-card-title, h3[ui-card-title]',
674
+ changeDetection: ChangeDetectionStrategy.OnPush,
675
+ host: { '[class]': 'classes()' },
676
+ template: `<ng-content />`,
677
+ }]
678
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
679
+
680
+ class CardDescriptionComponent {
681
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
682
+ classes = computed(() => cn('text-sm text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
683
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
684
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CardDescriptionComponent, isStandalone: true, selector: "ui-card-description, p[ui-card-description]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
685
+ }
686
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardDescriptionComponent, decorators: [{
687
+ type: Component,
688
+ args: [{
689
+ selector: 'ui-card-description, p[ui-card-description]',
690
+ changeDetection: ChangeDetectionStrategy.OnPush,
691
+ host: { '[class]': 'classes()' },
692
+ template: `<ng-content />`,
693
+ }]
694
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
695
+
696
+ class CardContentComponent {
697
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
698
+ classes = computed(() => cn('p-6 pt-0', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
699
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
700
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CardContentComponent, isStandalone: true, selector: "ui-card-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
701
+ }
702
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardContentComponent, decorators: [{
703
+ type: Component,
704
+ args: [{
705
+ selector: 'ui-card-content',
706
+ changeDetection: ChangeDetectionStrategy.OnPush,
707
+ host: { '[class]': 'classes()' },
708
+ template: `<ng-content />`,
709
+ }]
710
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
711
+
712
+ class CardFooterComponent {
713
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
714
+ classes = computed(() => cn('flex items-center p-6 pt-0', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
715
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
716
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CardFooterComponent, isStandalone: true, selector: "ui-card-footer", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
717
+ }
718
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CardFooterComponent, decorators: [{
719
+ type: Component,
720
+ args: [{
721
+ selector: 'ui-card-footer',
722
+ changeDetection: ChangeDetectionStrategy.OnPush,
723
+ host: { '[class]': 'classes()' },
724
+ template: `<ng-content />`,
725
+ }]
726
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
727
+
728
+ class CheckboxComponent {
729
+ indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
730
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
731
+ ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
732
+ ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
733
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
734
+ checkedChange = output();
735
+ ref = viewChild.required('ref');
736
+ checked = signal(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
737
+ disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
738
+ classes = computed(() => cn('ui-checkbox', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
739
+ onChange = () => { };
740
+ onTouched = () => { };
741
+ handleChange(e) {
742
+ this.checked.set(e.checked);
743
+ this.onChange(e.checked);
744
+ this.onTouched();
745
+ this.checkedChange.emit(e.checked);
746
+ }
747
+ focus() {
748
+ this.ref().focus();
749
+ }
750
+ writeValue(v) {
751
+ this.checked.set(!!v);
752
+ }
753
+ registerOnChange(fn) {
754
+ this.onChange = fn;
755
+ }
756
+ registerOnTouched(fn) {
757
+ this.onTouched = fn;
758
+ }
759
+ setDisabledState(d) {
760
+ this.disabled.set(d);
761
+ }
762
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
763
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: CheckboxComponent, isStandalone: true, selector: "ui-checkbox", inputs: { indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CheckboxComponent), multi: true }], viewQueries: [{ propertyName: "ref", first: true, predicate: ["ref"], descendants: true, isSignal: true }], ngImport: i0, template: `
764
+ <mat-checkbox
765
+ #ref
766
+ disableRipple
767
+ [class]="classes()"
768
+ [checked]="checked()"
769
+ [disabled]="disabled()"
770
+ [indeterminate]="indeterminate()"
771
+ [required]="required()"
772
+ [attr.aria-label]="ariaLabel()"
773
+ [attr.aria-labelledby]="ariaLabelledby()"
774
+ (change)="handleChange($event)">
775
+ <ng-content />
776
+ </mat-checkbox>
777
+ `, isInline: true, styles: [":host{display:inline-flex}:host ::ng-deep .mat-mdc-checkbox{--mdc-checkbox-selected-icon-color: hsl(var(--primary));--mdc-checkbox-selected-focus-icon-color: hsl(var(--primary));--mdc-checkbox-selected-hover-icon-color: hsl(var(--primary));--mdc-checkbox-selected-pressed-icon-color: hsl(var(--primary));--mdc-checkbox-unselected-icon-color: hsl(var(--input));--mdc-checkbox-unselected-focus-icon-color: hsl(var(--input));--mdc-checkbox-unselected-hover-icon-color: hsl(var(--input));--mdc-checkbox-selected-checkmark-color: hsl(var(--primary-foreground));--mdc-checkbox-selected-focus-state-layer-color: transparent;--mdc-checkbox-selected-hover-state-layer-color: transparent;--mdc-checkbox-selected-pressed-state-layer-color: transparent;--mdc-checkbox-unselected-focus-state-layer-color: transparent;--mdc-checkbox-unselected-hover-state-layer-color: transparent;--mdc-checkbox-unselected-pressed-state-layer-color: transparent;--mdc-checkbox-state-layer-size: 1rem}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__ripple,:host ::ng-deep .mat-mdc-checkbox .mat-mdc-checkbox-ripple,:host ::ng-deep .mat-mdc-checkbox .mat-mdc-focus-indicator{display:none}:host ::ng-deep .mat-mdc-checkbox .mat-mdc-checkbox-touch-target{display:none}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox{padding:0;margin:0;flex:0 0 1rem;width:1rem;height:1rem}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{top:0;left:0;width:1rem;height:1rem;border-radius:var(--radius-sm);border-width:var(--border-width)}:host ::ng-deep .mat-mdc-checkbox .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-checkbox .mdc-label{padding:0;margin:0;cursor:pointer}\n"], dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
778
+ }
779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CheckboxComponent, decorators: [{
780
+ type: Component,
781
+ args: [{ selector: 'ui-checkbox', imports: [MatCheckbox], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CheckboxComponent), multi: true }], template: `
782
+ <mat-checkbox
783
+ #ref
784
+ disableRipple
785
+ [class]="classes()"
786
+ [checked]="checked()"
787
+ [disabled]="disabled()"
788
+ [indeterminate]="indeterminate()"
789
+ [required]="required()"
790
+ [attr.aria-label]="ariaLabel()"
791
+ [attr.aria-labelledby]="ariaLabelledby()"
792
+ (change)="handleChange($event)">
793
+ <ng-content />
794
+ </mat-checkbox>
795
+ `, styles: [":host{display:inline-flex}:host ::ng-deep .mat-mdc-checkbox{--mdc-checkbox-selected-icon-color: hsl(var(--primary));--mdc-checkbox-selected-focus-icon-color: hsl(var(--primary));--mdc-checkbox-selected-hover-icon-color: hsl(var(--primary));--mdc-checkbox-selected-pressed-icon-color: hsl(var(--primary));--mdc-checkbox-unselected-icon-color: hsl(var(--input));--mdc-checkbox-unselected-focus-icon-color: hsl(var(--input));--mdc-checkbox-unselected-hover-icon-color: hsl(var(--input));--mdc-checkbox-selected-checkmark-color: hsl(var(--primary-foreground));--mdc-checkbox-selected-focus-state-layer-color: transparent;--mdc-checkbox-selected-hover-state-layer-color: transparent;--mdc-checkbox-selected-pressed-state-layer-color: transparent;--mdc-checkbox-unselected-focus-state-layer-color: transparent;--mdc-checkbox-unselected-hover-state-layer-color: transparent;--mdc-checkbox-unselected-pressed-state-layer-color: transparent;--mdc-checkbox-state-layer-size: 1rem}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__ripple,:host ::ng-deep .mat-mdc-checkbox .mat-mdc-checkbox-ripple,:host ::ng-deep .mat-mdc-checkbox .mat-mdc-focus-indicator{display:none}:host ::ng-deep .mat-mdc-checkbox .mat-mdc-checkbox-touch-target{display:none}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox{padding:0;margin:0;flex:0 0 1rem;width:1rem;height:1rem}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{top:0;left:0;width:1rem;height:1rem;border-radius:var(--radius-sm);border-width:var(--border-width)}:host ::ng-deep .mat-mdc-checkbox .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-checkbox .mdc-label{padding:0;margin:0;cursor:pointer}\n"] }]
796
+ }], propDecorators: { indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], checkedChange: [{ type: i0.Output, args: ["checkedChange"] }], ref: [{ type: i0.ViewChild, args: ['ref', { isSignal: true }] }] } });
797
+
798
+ /** Base class exposed to children for context lookup. */
799
+ class CommandContextBase {
800
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
801
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: CommandContextBase, isStandalone: true, ngImport: i0 });
802
+ }
803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandContextBase, decorators: [{
804
+ type: Directive
805
+ }] });
806
+ class CommandComponent extends CommandContextBase {
807
+ query = model('', ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
808
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
809
+ items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
810
+ activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
811
+ classes = computed(() => cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
812
+ matches(text) {
813
+ const q = this.query().trim().toLowerCase();
814
+ if (!q)
815
+ return true;
816
+ return text.toLowerCase().includes(q);
817
+ }
818
+ registerItem(item) {
819
+ this.items.update((list) => [...list, item]);
820
+ }
821
+ unregisterItem(item) {
822
+ this.items.update((list) => list.filter((i) => i !== item));
823
+ }
824
+ /** Items currently visible (not filtered out). */
825
+ visibleItems() {
826
+ return this.items().filter((it) => it.visible());
827
+ }
828
+ focusNext(delta) {
829
+ const vis = this.visibleItems();
830
+ if (vis.length === 0)
831
+ return;
832
+ const active = vis.findIndex((i) => i.active());
833
+ const idx = active < 0 ? 0 : (active + delta + vis.length) % vis.length;
834
+ vis.forEach((i, k) => i._setActive(k === idx));
835
+ vis[idx].focus();
836
+ }
837
+ focusFirst() {
838
+ const vis = this.visibleItems();
839
+ vis.forEach((i, k) => i._setActive(k === 0));
840
+ vis[0]?.focus();
841
+ }
842
+ /** Returns the first visible item's text if any. Used when user hits Enter with no active. */
843
+ getActive() {
844
+ return this.visibleItems().find((i) => i.active()) ?? this.visibleItems()[0] ?? null;
845
+ }
846
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
847
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CommandComponent, isStandalone: true, selector: "ui-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, changeDetection: i0.ChangeDetectionStrategy.OnPush });
848
+ }
849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandComponent, decorators: [{
850
+ type: Component,
851
+ args: [{
852
+ selector: 'ui-command',
853
+ changeDetection: ChangeDetectionStrategy.OnPush,
854
+ providers: [{ provide: CommandContextBase, useExisting: forwardRef(() => CommandComponent) }],
855
+ host: { '[class]': 'classes()' },
856
+ template: `<ng-content />`,
857
+ }]
858
+ }], propDecorators: { query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
859
+ class CommandInputComponent {
860
+ ctx = inject(CommandComponent);
861
+ placeholder = input('Type a command or search…', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
862
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
863
+ classes = computed(() => cn('flex h-11 w-full rounded-md bg-transparent px-3 py-3 text-sm outline-none', 'placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', 'border-b border-border', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
864
+ onInput(e) {
865
+ this.ctx.query.set(e.target.value);
866
+ queueMicrotask(() => this.ctx.focusFirst());
867
+ }
868
+ onArrow(e, delta) {
869
+ e.preventDefault();
870
+ this.ctx.focusNext(delta);
871
+ }
872
+ onEnter(e) {
873
+ const active = this.ctx.getActive();
874
+ if (active) {
875
+ e.preventDefault();
876
+ active._select(e);
877
+ }
878
+ }
879
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
880
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CommandInputComponent, isStandalone: true, selector: "input[ui-command-input]", 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()", "value": "ctx.query()", "placeholder": "placeholder()" } }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
881
+ }
882
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandInputComponent, decorators: [{
883
+ type: Component,
884
+ args: [{
885
+ selector: 'input[ui-command-input]',
886
+ changeDetection: ChangeDetectionStrategy.OnPush,
887
+ host: {
888
+ '[class]': 'classes()',
889
+ type: 'text',
890
+ role: 'combobox',
891
+ 'aria-autocomplete': 'list',
892
+ 'aria-expanded': 'true',
893
+ autocomplete: 'off',
894
+ '[value]': 'ctx.query()',
895
+ '[placeholder]': 'placeholder()',
896
+ '(input)': 'onInput($any($event))',
897
+ '(keydown.arrowDown)': 'onArrow($any($event), 1)',
898
+ '(keydown.arrowUp)': 'onArrow($any($event), -1)',
899
+ '(keydown.enter)': 'onEnter($any($event))',
900
+ },
901
+ template: ``,
902
+ }]
903
+ }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
904
+ class CommandListComponent {
905
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
906
+ classes = computed(() => cn('max-h-[300px] overflow-y-auto overflow-x-hidden p-1', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
907
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
908
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CommandListComponent, isStandalone: true, selector: "ui-command-list", 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, changeDetection: i0.ChangeDetectionStrategy.OnPush });
909
+ }
910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandListComponent, decorators: [{
911
+ type: Component,
912
+ args: [{
913
+ selector: 'ui-command-list',
914
+ changeDetection: ChangeDetectionStrategy.OnPush,
915
+ host: { '[class]': 'classes()', role: 'listbox' },
916
+ template: `<ng-content />`,
917
+ }]
918
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
919
+ class CommandEmptyComponent {
920
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
921
+ classes = computed(() => cn('py-6 text-center text-sm text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
922
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandEmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
923
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CommandEmptyComponent, isStandalone: true, selector: "ui-command-empty", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content>No results found.</ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
924
+ }
925
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandEmptyComponent, decorators: [{
926
+ type: Component,
927
+ args: [{
928
+ selector: 'ui-command-empty',
929
+ changeDetection: ChangeDetectionStrategy.OnPush,
930
+ host: { '[class]': 'classes()' },
931
+ template: `<ng-content>No results found.</ng-content>`,
932
+ }]
933
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
934
+ class CommandGroupComponent {
935
+ heading = input(null, ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
936
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
937
+ classes = computed(() => cn('overflow-hidden p-1 text-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
938
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
939
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: CommandGroupComponent, isStandalone: true, selector: "ui-command-group", 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: `
940
+ @if (heading()) {
941
+ <div class="px-2 py-1.5 text-xs font-medium text-muted-foreground">{{ heading() }}</div>
942
+ }
943
+ <ng-content />
944
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
945
+ }
946
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandGroupComponent, decorators: [{
947
+ type: Component,
948
+ args: [{
949
+ selector: 'ui-command-group',
950
+ changeDetection: ChangeDetectionStrategy.OnPush,
951
+ host: { '[class]': 'classes()', role: 'group' },
952
+ template: `
953
+ @if (heading()) {
954
+ <div class="px-2 py-1.5 text-xs font-medium text-muted-foreground">{{ heading() }}</div>
955
+ }
956
+ <ng-content />
957
+ `,
958
+ }]
959
+ }], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
960
+ class CommandSeparatorComponent {
961
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
962
+ classes = computed(() => cn('-mx-1 h-px bg-border block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
963
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
964
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CommandSeparatorComponent, isStandalone: true, selector: "ui-command-separator", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
965
+ }
966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandSeparatorComponent, decorators: [{
967
+ type: Component,
968
+ args: [{
969
+ selector: 'ui-command-separator',
970
+ changeDetection: ChangeDetectionStrategy.OnPush,
971
+ host: { '[class]': 'classes()', role: 'separator' },
972
+ template: '',
973
+ }]
974
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
975
+ class CommandItemComponent {
976
+ ctx = inject(CommandComponent);
977
+ el = inject(ElementRef);
978
+ value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
979
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
980
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
981
+ selected = output();
982
+ active = signal(false, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
983
+ visible = computed(() => {
984
+ const text = this.value() || this.el.nativeElement.textContent || '';
985
+ return this.ctx.matches(text);
986
+ }, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
987
+ classes = computed(() => cn('relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none', 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground', 'data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
988
+ constructor() {
989
+ this.ctx.registerItem(this);
990
+ inject(DestroyRef).onDestroy(() => this.ctx.unregisterItem(this));
991
+ }
992
+ focus() {
993
+ this.el.nativeElement.focus();
994
+ }
995
+ _setActive(active) {
996
+ this.active.set(active);
997
+ }
998
+ _select(e) {
999
+ if (this.disabled())
1000
+ return;
1001
+ this.selected.emit(e);
1002
+ }
1003
+ onHover() {
1004
+ if (this.disabled())
1005
+ return;
1006
+ // Mark this item active; deactivate siblings.
1007
+ this.ctx._activateOnly?.(this);
1008
+ this._setActive(true);
1009
+ }
1010
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1011
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CommandItemComponent, isStandalone: true, selector: "ui-command-item, button[ui-command-item]", 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.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, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1012
+ }
1013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandItemComponent, decorators: [{
1014
+ type: Component,
1015
+ args: [{
1016
+ selector: 'ui-command-item, button[ui-command-item]',
1017
+ changeDetection: ChangeDetectionStrategy.OnPush,
1018
+ host: {
1019
+ '[class]': 'classes()',
1020
+ '[attr.role]': '"option"',
1021
+ '[attr.tabindex]': '-1',
1022
+ '[attr.aria-selected]': 'active()',
1023
+ '[attr.data-active]': 'active() ? "true" : null',
1024
+ '[attr.data-disabled]': 'disabled() ? "true" : null',
1025
+ '[hidden]': '!visible()',
1026
+ '(click)': '_select($any($event))',
1027
+ '(mousemove)': 'onHover()',
1028
+ },
1029
+ template: `<ng-content />`,
1030
+ }]
1031
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }] } });
1032
+ class CommandShortcutComponent {
1033
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1034
+ classes = computed(() => cn('ml-auto text-xs tracking-widest text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1035
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandShortcutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1036
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: CommandShortcutComponent, isStandalone: true, selector: "span[ui-command-shortcut]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1037
+ }
1038
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CommandShortcutComponent, decorators: [{
1039
+ type: Component,
1040
+ args: [{
1041
+ selector: 'span[ui-command-shortcut]',
1042
+ changeDetection: ChangeDetectionStrategy.OnPush,
1043
+ host: { '[class]': 'classes()' },
1044
+ template: `<ng-content />`,
1045
+ }]
1046
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1047
+
1048
+ /**
1049
+ * Combobox with searchable option list. Options passed via `[options]`.
1050
+ * Emits two-way `value` and supports forms via ControlValueAccessor.
1051
+ */
1052
+ class ComboboxComponent {
1053
+ overlay = inject(Overlay);
1054
+ vcr = inject(ViewContainerRef);
1055
+ destroyRef = inject(DestroyRef);
1056
+ options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
1057
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1058
+ placeholder = input('Select…', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
1059
+ searchPlaceholder = input('Search…', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
1060
+ emptyText = input('No results found.', ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
1061
+ disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
1062
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1063
+ valueChange = output();
1064
+ trigger = viewChild.required('trigger');
1065
+ panel = viewChild.required('panel');
1066
+ overlayRef = null;
1067
+ isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
1068
+ classes = computed(() => cn('inline-block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1069
+ triggerClasses = computed(() => cn(buttonVariants({ variant: 'outline', size: 'default' }), 'w-[200px] justify-between'), ...(ngDevMode ? [{ debugName: "triggerClasses" }] : /* istanbul ignore next */ []));
1070
+ selectedLabel = computed(() => {
1071
+ const v = this.value();
1072
+ return this.options().find((o) => o.value === v)?.label ?? '';
1073
+ }, ...(ngDevMode ? [{ debugName: "selectedLabel" }] : /* istanbul ignore next */ []));
1074
+ onChangeFn = () => { };
1075
+ onTouchedFn = () => { };
1076
+ isSelected(opt) {
1077
+ return opt.value === this.value();
1078
+ }
1079
+ toggle() {
1080
+ if (this.disabled())
1081
+ return;
1082
+ this.isOpen() ? this.close() : this.open();
1083
+ }
1084
+ open() {
1085
+ if (this.isOpen())
1086
+ return;
1087
+ const triggerEl = this.trigger().nativeElement;
1088
+ triggerEl.style.setProperty('--ui-combobox-trigger-width', triggerEl.offsetWidth + 'px');
1089
+ this.overlayRef = this.overlay.create({
1090
+ positionStrategy: this.overlay
1091
+ .position()
1092
+ .flexibleConnectedTo(triggerEl)
1093
+ .withPositions([
1094
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },
1095
+ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },
1096
+ ]),
1097
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
1098
+ hasBackdrop: false,
1099
+ panelClass: 'ui-combobox-panel',
1100
+ minWidth: triggerEl.offsetWidth,
1101
+ });
1102
+ const portal = new TemplatePortal(this.panel(), this.vcr);
1103
+ this.overlayRef.attach(portal);
1104
+ merge(this.overlayRef.outsidePointerEvents().pipe(filter((e) => !triggerEl.contains(e.target))), this.overlayRef.keydownEvents().pipe(filter((e) => e.key === 'Escape')), this.overlayRef.detachments())
1105
+ .pipe(takeUntilDestroyed(this.destroyRef))
1106
+ .subscribe(() => this.close());
1107
+ this.isOpen.set(true);
1108
+ // Focus search input after attach tick
1109
+ queueMicrotask(() => this.overlayRef?.overlayElement.querySelector('input')?.focus());
1110
+ }
1111
+ close() {
1112
+ if (!this.isOpen())
1113
+ return;
1114
+ this.overlayRef?.dispose();
1115
+ this.overlayRef = null;
1116
+ this.isOpen.set(false);
1117
+ this.trigger().nativeElement.focus();
1118
+ this.onTouchedFn();
1119
+ }
1120
+ pick(opt) {
1121
+ if (opt.disabled)
1122
+ return;
1123
+ const next = opt.value === this.value() ? null : opt.value;
1124
+ this.value.set(next);
1125
+ this.onChangeFn(next);
1126
+ this.valueChange.emit(next);
1127
+ this.close();
1128
+ }
1129
+ writeValue(v) {
1130
+ this.value.set(v);
1131
+ }
1132
+ registerOnChange(fn) {
1133
+ this.onChangeFn = fn;
1134
+ }
1135
+ registerOnTouched(fn) {
1136
+ this.onTouchedFn = fn;
1137
+ }
1138
+ setDisabledState(state) {
1139
+ this.disabled.set(state);
1140
+ }
1141
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ComboboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1142
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ComboboxComponent, isStandalone: true, selector: "ui-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", valueChange: "valueChange" }, host: { properties: { "class": "classes()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ComboboxComponent), multi: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: `
1143
+ <button
1144
+ #trigger
1145
+ type="button"
1146
+ role="combobox"
1147
+ [attr.aria-expanded]="isOpen()"
1148
+ [attr.aria-controls]="isOpen() ? 'ui-combobox-panel' : null"
1149
+ [class]="triggerClasses()"
1150
+ [disabled]="disabled() || null"
1151
+ (click)="toggle()">
1152
+ <span [class.text-muted-foreground]="!selectedLabel()">
1153
+ {{ selectedLabel() || placeholder() }}
1154
+ </span>
1155
+ <svg
1156
+ class="ml-2 h-4 w-4 shrink-0 opacity-50"
1157
+ viewBox="0 0 24 24"
1158
+ fill="none"
1159
+ stroke="currentColor"
1160
+ stroke-width="2"
1161
+ stroke-linecap="round"
1162
+ stroke-linejoin="round">
1163
+ <polyline points="6 9 12 15 18 9" />
1164
+ </svg>
1165
+ </button>
1166
+
1167
+ <ng-template #panel>
1168
+ <div
1169
+ id="ui-combobox-panel"
1170
+ class="w-[var(--ui-combobox-trigger-width)] rounded-md border bg-popover text-popover-foreground shadow-md">
1171
+ <ui-command>
1172
+ <input ui-command-input [placeholder]="searchPlaceholder()" />
1173
+ <ui-command-list>
1174
+ <ui-command-empty>{{ emptyText() }}</ui-command-empty>
1175
+ <ui-command-group>
1176
+ @for (opt of options(); track opt.value) {
1177
+ <button
1178
+ type="button"
1179
+ ui-command-item
1180
+ [value]="opt.label"
1181
+ [disabled]="!!opt.disabled"
1182
+ (selected)="pick(opt)">
1183
+ {{ opt.label }}
1184
+ @if (isSelected(opt)) {
1185
+ <svg
1186
+ class="ml-auto h-4 w-4"
1187
+ viewBox="0 0 24 24"
1188
+ fill="none"
1189
+ stroke="currentColor"
1190
+ stroke-width="2"
1191
+ stroke-linecap="round"
1192
+ stroke-linejoin="round">
1193
+ <polyline points="20 6 9 17 4 12" />
1194
+ </svg>
1195
+ }
1196
+ </button>
1197
+ }
1198
+ </ui-command-group>
1199
+ </ui-command-list>
1200
+ </ui-command>
1201
+ </div>
1202
+ </ng-template>
1203
+ `, isInline: true, dependencies: [{ kind: "component", type: CommandComponent, selector: "ui-command", inputs: ["query", "class"], outputs: ["queryChange"] }, { kind: "component", type: CommandInputComponent, selector: "input[ui-command-input]", inputs: ["placeholder", "class"] }, { kind: "component", type: CommandListComponent, selector: "ui-command-list", inputs: ["class"] }, { kind: "component", type: CommandEmptyComponent, selector: "ui-command-empty", inputs: ["class"] }, { kind: "component", type: CommandGroupComponent, selector: "ui-command-group", inputs: ["heading", "class"] }, { kind: "component", type: CommandItemComponent, selector: "ui-command-item, button[ui-command-item]", inputs: ["value", "disabled", "class"], outputs: ["selected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1204
+ }
1205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ComboboxComponent, decorators: [{
1206
+ type: Component,
1207
+ args: [{
1208
+ selector: 'ui-combobox',
1209
+ changeDetection: ChangeDetectionStrategy.OnPush,
1210
+ imports: [
1211
+ CommandComponent,
1212
+ CommandInputComponent,
1213
+ CommandListComponent,
1214
+ CommandEmptyComponent,
1215
+ CommandGroupComponent,
1216
+ CommandItemComponent,
1217
+ ],
1218
+ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ComboboxComponent), multi: true }],
1219
+ host: { '[class]': 'classes()' },
1220
+ template: `
1221
+ <button
1222
+ #trigger
1223
+ type="button"
1224
+ role="combobox"
1225
+ [attr.aria-expanded]="isOpen()"
1226
+ [attr.aria-controls]="isOpen() ? 'ui-combobox-panel' : null"
1227
+ [class]="triggerClasses()"
1228
+ [disabled]="disabled() || null"
1229
+ (click)="toggle()">
1230
+ <span [class.text-muted-foreground]="!selectedLabel()">
1231
+ {{ selectedLabel() || placeholder() }}
1232
+ </span>
1233
+ <svg
1234
+ class="ml-2 h-4 w-4 shrink-0 opacity-50"
1235
+ viewBox="0 0 24 24"
1236
+ fill="none"
1237
+ stroke="currentColor"
1238
+ stroke-width="2"
1239
+ stroke-linecap="round"
1240
+ stroke-linejoin="round">
1241
+ <polyline points="6 9 12 15 18 9" />
1242
+ </svg>
1243
+ </button>
1244
+
1245
+ <ng-template #panel>
1246
+ <div
1247
+ id="ui-combobox-panel"
1248
+ class="w-[var(--ui-combobox-trigger-width)] rounded-md border bg-popover text-popover-foreground shadow-md">
1249
+ <ui-command>
1250
+ <input ui-command-input [placeholder]="searchPlaceholder()" />
1251
+ <ui-command-list>
1252
+ <ui-command-empty>{{ emptyText() }}</ui-command-empty>
1253
+ <ui-command-group>
1254
+ @for (opt of options(); track opt.value) {
1255
+ <button
1256
+ type="button"
1257
+ ui-command-item
1258
+ [value]="opt.label"
1259
+ [disabled]="!!opt.disabled"
1260
+ (selected)="pick(opt)">
1261
+ {{ opt.label }}
1262
+ @if (isSelected(opt)) {
1263
+ <svg
1264
+ class="ml-auto h-4 w-4"
1265
+ viewBox="0 0 24 24"
1266
+ fill="none"
1267
+ stroke="currentColor"
1268
+ stroke-width="2"
1269
+ stroke-linecap="round"
1270
+ stroke-linejoin="round">
1271
+ <polyline points="20 6 9 17 4 12" />
1272
+ </svg>
1273
+ }
1274
+ </button>
1275
+ }
1276
+ </ui-command-group>
1277
+ </ui-command-list>
1278
+ </ui-command>
1279
+ </div>
1280
+ </ng-template>
1281
+ `,
1282
+ }]
1283
+ }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
1284
+
1285
+ /**
1286
+ * Opens a menu anchored to the cursor when the host fires `contextmenu`.
1287
+ * Reuses `<ng-template uiMenuContent>` from the dropdown-menu entry.
1288
+ *
1289
+ * @example
1290
+ * <div [uiContextMenuTrigger]="menu" class="p-12 border">Right-click me</div>
1291
+ * <ng-template uiMenuContent #menu>
1292
+ * <ui-menu-surface>
1293
+ * <button ui-menu-item>Copy</button>
1294
+ * <button ui-menu-item>Paste</button>
1295
+ * </ui-menu-surface>
1296
+ * </ng-template>
1297
+ */
1298
+ class ContextMenuTriggerDirective {
1299
+ overlay = inject(Overlay);
1300
+ vcr = inject(ViewContainerRef);
1301
+ el = inject(ElementRef);
1302
+ destroyRef = inject(DestroyRef);
1303
+ uiContextMenuTrigger = input.required(...(ngDevMode ? [{ debugName: "uiContextMenuTrigger" }] : /* istanbul ignore next */ []));
1304
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
1305
+ openedChange = output();
1306
+ overlayRef = null;
1307
+ isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
1308
+ onContextMenu(event) {
1309
+ if (this.disabled())
1310
+ return;
1311
+ event.preventDefault();
1312
+ this.close();
1313
+ this.openAt(event.clientX, event.clientY);
1314
+ }
1315
+ openAt(x, y) {
1316
+ this.overlayRef = this.overlay.create({
1317
+ positionStrategy: this.overlay
1318
+ .position()
1319
+ .flexibleConnectedTo({ x, y })
1320
+ .withPositions([
1321
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },
1322
+ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' },
1323
+ { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top' },
1324
+ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom' },
1325
+ ]),
1326
+ scrollStrategy: this.overlay.scrollStrategies.close(),
1327
+ hasBackdrop: false,
1328
+ panelClass: 'ui-menu-panel',
1329
+ });
1330
+ const portal = new TemplatePortal(this.uiContextMenuTrigger().template, this.vcr);
1331
+ this.overlayRef.attach(portal);
1332
+ merge(this.overlayRef.outsidePointerEvents(), this.overlayRef.keydownEvents().pipe(filter((e) => e.key === 'Escape')), this.overlayRef.detachments())
1333
+ .pipe(takeUntilDestroyed(this.destroyRef))
1334
+ .subscribe(() => this.close());
1335
+ this.isOpen.set(true);
1336
+ this.openedChange.emit(true);
1337
+ }
1338
+ close() {
1339
+ if (!this.overlayRef)
1340
+ return;
1341
+ this.overlayRef.dispose();
1342
+ this.overlayRef = null;
1343
+ this.isOpen.set(false);
1344
+ this.openedChange.emit(false);
1345
+ }
1346
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ContextMenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1347
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: ContextMenuTriggerDirective, isStandalone: true, selector: "[uiContextMenuTrigger]", inputs: { uiContextMenuTrigger: { classPropertyName: "uiContextMenuTrigger", publicName: "uiContextMenuTrigger", 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)" } }, exportAs: ["uiContextMenuTrigger"], ngImport: i0 });
1348
+ }
1349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ContextMenuTriggerDirective, decorators: [{
1350
+ type: Directive,
1351
+ args: [{
1352
+ selector: '[uiContextMenuTrigger]',
1353
+ exportAs: 'uiContextMenuTrigger',
1354
+ host: {
1355
+ '(contextmenu)': 'onContextMenu($event)',
1356
+ },
1357
+ }]
1358
+ }], propDecorators: { uiContextMenuTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiContextMenuTrigger", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
1359
+
1360
+ /**
1361
+ * Popup date picker. Requires a date adapter provider in the consumer app
1362
+ * (e.g. `provideNativeDateAdapter()` from `@angular/material/core`).
1363
+ */
1364
+ class DatePickerComponent {
1365
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1366
+ placeholder = input('Pick a date', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
1367
+ min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
1368
+ max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
1369
+ disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
1370
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1371
+ classes = computed(() => cn('inline-block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1372
+ control = new FormControl(null);
1373
+ onChangeFn = () => { };
1374
+ onTouchedFn = () => { };
1375
+ constructor() {
1376
+ effect(() => {
1377
+ const next = this.value();
1378
+ if (this.control.value !== next) {
1379
+ this.control.setValue(next, { emitEvent: false });
1380
+ }
1381
+ });
1382
+ effect(() => {
1383
+ const d = this.disabled();
1384
+ d ? this.control.disable({ emitEvent: false }) : this.control.enable({ emitEvent: false });
1385
+ });
1386
+ this.control.valueChanges.pipe(takeUntilDestroyed(inject(DestroyRef))).subscribe((next) => {
1387
+ untracked(() => this.value.set(next));
1388
+ this.onChangeFn(next);
1389
+ this.onTouchedFn();
1390
+ });
1391
+ }
1392
+ writeValue(v) {
1393
+ this.value.set(v);
1394
+ }
1395
+ registerOnChange(fn) {
1396
+ this.onChangeFn = fn;
1397
+ }
1398
+ registerOnTouched(fn) {
1399
+ this.onTouchedFn = fn;
1400
+ }
1401
+ setDisabledState(state) {
1402
+ this.disabled.set(state);
1403
+ }
1404
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1405
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: DatePickerComponent, isStandalone: true, selector: "ui-date-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", 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: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatePickerComponent), multi: true }], ngImport: i0, template: `
1406
+ <mat-form-field class="ui-date-picker" appearance="outline" subscriptSizing="dynamic">
1407
+ <input
1408
+ matInput
1409
+ [matDatepicker]="picker"
1410
+ [placeholder]="placeholder()"
1411
+ [min]="min()"
1412
+ [max]="max()"
1413
+ [formControl]="control" />
1414
+ <mat-datepicker-toggle matIconSuffix [for]="picker" />
1415
+ <mat-datepicker #picker panelClass="ui-datepicker-panel" />
1416
+ </mat-form-field>
1417
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1418
+ }
1419
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DatePickerComponent, decorators: [{
1420
+ type: Component,
1421
+ args: [{
1422
+ selector: 'ui-date-picker',
1423
+ changeDetection: ChangeDetectionStrategy.OnPush,
1424
+ imports: [ReactiveFormsModule, MatFormField, MatInput, MatDatepicker, MatDatepickerInput, MatDatepickerToggle],
1425
+ host: { '[class]': 'classes()' },
1426
+ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatePickerComponent), multi: true }],
1427
+ template: `
1428
+ <mat-form-field class="ui-date-picker" appearance="outline" subscriptSizing="dynamic">
1429
+ <input
1430
+ matInput
1431
+ [matDatepicker]="picker"
1432
+ [placeholder]="placeholder()"
1433
+ [min]="min()"
1434
+ [max]="max()"
1435
+ [formControl]="control" />
1436
+ <mat-datepicker-toggle matIconSuffix [for]="picker" />
1437
+ <mat-datepicker #picker panelClass="ui-datepicker-panel" />
1438
+ </mat-form-field>
1439
+ `,
1440
+ }]
1441
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1442
+
1443
+ /**
1444
+ * Declarative modal dialog. Renders into the body via CDK overlay when
1445
+ * `open` becomes `true`. Focus is trapped inside; restored to trigger on close.
1446
+ *
1447
+ * @example
1448
+ * <button ui-button (click)="open.set(true)">Open</button>
1449
+ * <ui-dialog [(open)]="open">
1450
+ * <ui-dialog-header>
1451
+ * <ui-dialog-title>Are you sure?</ui-dialog-title>
1452
+ * <ui-dialog-description>This action cannot be undone.</ui-dialog-description>
1453
+ * </ui-dialog-header>
1454
+ * <ui-dialog-footer>
1455
+ * <button ui-button variant="outline" (click)="open.set(false)">Cancel</button>
1456
+ * <button ui-button variant="destructive" (click)="confirm()">Delete</button>
1457
+ * </ui-dialog-footer>
1458
+ * </ui-dialog>
1459
+ */
1460
+ class DialogComponent {
1461
+ overlay = inject(Overlay);
1462
+ vcr = inject(ViewContainerRef);
1463
+ trapFactory = inject(FocusTrapFactory);
1464
+ doc = inject(DOCUMENT);
1465
+ destroyRef = inject(DestroyRef);
1466
+ open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
1467
+ closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
1468
+ closeOnBackdropClick = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []));
1469
+ labelledBy = input(null, { ...(ngDevMode ? { debugName: "labelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
1470
+ describedBy = input(null, { ...(ngDevMode ? { debugName: "describedBy" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
1471
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1472
+ openedChange = output();
1473
+ tpl = viewChild.required('tpl');
1474
+ overlayRef = null;
1475
+ focusTrap = null;
1476
+ previousFocus = null;
1477
+ surfaceClasses = computed(() => cn('relative grid w-full max-w-lg gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200', this.class()), ...(ngDevMode ? [{ debugName: "surfaceClasses" }] : /* istanbul ignore next */ []));
1478
+ constructor() {
1479
+ effect(() => {
1480
+ this.open() ? this.attach() : this.detach();
1481
+ });
1482
+ }
1483
+ attach() {
1484
+ if (this.overlayRef)
1485
+ return;
1486
+ this.previousFocus = this.doc.activeElement;
1487
+ this.overlayRef = this.overlay.create({
1488
+ hasBackdrop: true,
1489
+ backdropClass: 'ui-dialog-backdrop',
1490
+ panelClass: 'ui-dialog-panel',
1491
+ scrollStrategy: this.overlay.scrollStrategies.block(),
1492
+ positionStrategy: this.overlay.position().global().centerHorizontally().centerVertically(),
1493
+ });
1494
+ const portal = new TemplatePortal(this.tpl(), this.vcr);
1495
+ this.overlayRef.attach(portal);
1496
+ this.focusTrap = this.trapFactory.create(this.overlayRef.hostElement);
1497
+ this.focusTrap.focusInitialElementWhenReady();
1498
+ if (this.closeOnBackdropClick()) {
1499
+ this.overlayRef
1500
+ .backdropClick()
1501
+ .pipe(takeUntilDestroyed(this.destroyRef))
1502
+ .subscribe(() => this.requestClose());
1503
+ }
1504
+ this.overlayRef
1505
+ .keydownEvents()
1506
+ .pipe(takeUntilDestroyed(this.destroyRef), filter((e) => e.key === 'Escape' && this.closeOnEscape()))
1507
+ .subscribe((e) => {
1508
+ e.preventDefault();
1509
+ this.requestClose();
1510
+ });
1511
+ this.openedChange.emit(true);
1512
+ }
1513
+ detach() {
1514
+ if (!this.overlayRef)
1515
+ return;
1516
+ this.focusTrap?.destroy();
1517
+ this.focusTrap = null;
1518
+ this.overlayRef.dispose();
1519
+ this.overlayRef = null;
1520
+ this.previousFocus?.focus?.();
1521
+ this.openedChange.emit(false);
1522
+ }
1523
+ requestClose() {
1524
+ this.open.set(false);
1525
+ }
1526
+ close() {
1527
+ this.requestClose();
1528
+ }
1529
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1530
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: DialogComponent, isStandalone: true, selector: "ui-dialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, labelledBy: { classPropertyName: "labelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, describedBy: { classPropertyName: "describedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", openedChange: "openedChange" }, viewQueries: [{ propertyName: "tpl", first: true, predicate: ["tpl"], descendants: true, isSignal: true }], ngImport: i0, template: `
1531
+ <ng-template #tpl>
1532
+ <div
1533
+ class="ui-dialog-surface"
1534
+ role="dialog"
1535
+ aria-modal="true"
1536
+ [attr.aria-labelledby]="labelledBy()"
1537
+ [attr.aria-describedby]="describedBy()"
1538
+ [class]="surfaceClasses()">
1539
+ <ng-content />
1540
+ </div>
1541
+ </ng-template>
1542
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1543
+ }
1544
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogComponent, decorators: [{
1545
+ type: Component,
1546
+ args: [{
1547
+ selector: 'ui-dialog',
1548
+ changeDetection: ChangeDetectionStrategy.OnPush,
1549
+ template: `
1550
+ <ng-template #tpl>
1551
+ <div
1552
+ class="ui-dialog-surface"
1553
+ role="dialog"
1554
+ aria-modal="true"
1555
+ [attr.aria-labelledby]="labelledBy()"
1556
+ [attr.aria-describedby]="describedBy()"
1557
+ [class]="surfaceClasses()">
1558
+ <ng-content />
1559
+ </div>
1560
+ </ng-template>
1561
+ `,
1562
+ }]
1563
+ }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnBackdropClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdropClick", required: false }] }], labelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }], tpl: [{ type: i0.ViewChild, args: ['tpl', { isSignal: true }] }] } });
1564
+
1565
+ class DialogHeaderComponent {
1566
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1567
+ classes = computed(() => cn('flex flex-col gap-1.5 text-center sm:text-left', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1568
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1569
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: DialogHeaderComponent, isStandalone: true, selector: "ui-dialog-header", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1570
+ }
1571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogHeaderComponent, decorators: [{
1572
+ type: Component,
1573
+ args: [{
1574
+ selector: 'ui-dialog-header',
1575
+ changeDetection: ChangeDetectionStrategy.OnPush,
1576
+ host: { '[class]': 'classes()' },
1577
+ template: `<ng-content />`,
1578
+ }]
1579
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1580
+ class DialogTitleComponent {
1581
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1582
+ classes = computed(() => cn('text-lg font-semibold leading-none tracking-tight', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1583
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1584
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: DialogTitleComponent, isStandalone: true, selector: "ui-dialog-title, h2[ui-dialog-title]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1585
+ }
1586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogTitleComponent, decorators: [{
1587
+ type: Component,
1588
+ args: [{
1589
+ selector: 'ui-dialog-title, h2[ui-dialog-title]',
1590
+ changeDetection: ChangeDetectionStrategy.OnPush,
1591
+ host: { '[class]': 'classes()' },
1592
+ template: `<ng-content />`,
1593
+ }]
1594
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1595
+ class DialogDescriptionComponent {
1596
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1597
+ classes = computed(() => cn('text-sm text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1598
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1599
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: DialogDescriptionComponent, isStandalone: true, selector: "ui-dialog-description, p[ui-dialog-description]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1600
+ }
1601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogDescriptionComponent, decorators: [{
1602
+ type: Component,
1603
+ args: [{
1604
+ selector: 'ui-dialog-description, p[ui-dialog-description]',
1605
+ changeDetection: ChangeDetectionStrategy.OnPush,
1606
+ host: { '[class]': 'classes()' },
1607
+ template: `<ng-content />`,
1608
+ }]
1609
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1610
+ class DialogContentComponent {
1611
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1612
+ classes = computed(() => cn('grid gap-4', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1613
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1614
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: DialogContentComponent, isStandalone: true, selector: "ui-dialog-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1615
+ }
1616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogContentComponent, decorators: [{
1617
+ type: Component,
1618
+ args: [{
1619
+ selector: 'ui-dialog-content',
1620
+ changeDetection: ChangeDetectionStrategy.OnPush,
1621
+ host: { '[class]': 'classes()' },
1622
+ template: `<ng-content />`,
1623
+ }]
1624
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1625
+ class DialogFooterComponent {
1626
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1627
+ classes = computed(() => cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-2', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1628
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1629
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: DialogFooterComponent, isStandalone: true, selector: "ui-dialog-footer", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1630
+ }
1631
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DialogFooterComponent, decorators: [{
1632
+ type: Component,
1633
+ args: [{
1634
+ selector: 'ui-dialog-footer',
1635
+ changeDetection: ChangeDetectionStrategy.OnPush,
1636
+ host: { '[class]': 'classes()' },
1637
+ template: `<ng-content />`,
1638
+ }]
1639
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1640
+
1641
+ class MenuItemComponent {
1642
+ el = inject(ElementRef);
1643
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
1644
+ inset = input(false, ...(ngDevMode ? [{ debugName: "inset" }] : /* istanbul ignore next */ []));
1645
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1646
+ selected = output();
1647
+ classes = computed(() => cn('relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none', 'transition-colors focus:bg-accent focus:text-accent-foreground', 'data-[inset=true]:pl-8', 'aria-disabled:pointer-events-none aria-disabled:opacity-50', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1648
+ focus() {
1649
+ this.el.nativeElement.focus();
1650
+ }
1651
+ getLabel() {
1652
+ return this.el.nativeElement.textContent?.trim() ?? '';
1653
+ }
1654
+ handleClick(e) {
1655
+ if (this.disabled())
1656
+ return;
1657
+ this.selected.emit(e);
1658
+ }
1659
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1660
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: MenuItemComponent, isStandalone: true, selector: "ui-menu-item, button[ui-menu-item]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected" }, host: { listeners: { "click": "handleClick($any($event))", "keydown.enter": "handleClick($any($event))", "keydown.space": "handleClick($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.tabindex": "disabled() ? -1 : -1", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.data-inset": "inset() ? \"true\" : null" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1661
+ }
1662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuItemComponent, decorators: [{
1663
+ type: Component,
1664
+ args: [{
1665
+ selector: 'ui-menu-item, button[ui-menu-item]',
1666
+ changeDetection: ChangeDetectionStrategy.OnPush,
1667
+ host: {
1668
+ '[class]': 'classes()',
1669
+ '[attr.role]': '"menuitem"',
1670
+ '[attr.tabindex]': 'disabled() ? -1 : -1',
1671
+ '[attr.aria-disabled]': 'disabled() ? "true" : null',
1672
+ '[attr.data-inset]': 'inset() ? "true" : null',
1673
+ '(click)': 'handleClick($any($event))',
1674
+ '(keydown.enter)': 'handleClick($any($event))',
1675
+ '(keydown.space)': 'handleClick($any($event))',
1676
+ },
1677
+ template: `<ng-content />`,
1678
+ }]
1679
+ }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }] } });
1680
+ class MenuSeparatorComponent {
1681
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1682
+ classes = computed(() => cn('-mx-1 my-1 h-px bg-muted block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1683
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1684
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: MenuSeparatorComponent, isStandalone: true, selector: "ui-menu-separator", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"separator\"", "attr.aria-orientation": "\"horizontal\"" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1685
+ }
1686
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuSeparatorComponent, decorators: [{
1687
+ type: Component,
1688
+ args: [{
1689
+ selector: 'ui-menu-separator',
1690
+ changeDetection: ChangeDetectionStrategy.OnPush,
1691
+ host: {
1692
+ '[class]': 'classes()',
1693
+ '[attr.role]': '"separator"',
1694
+ '[attr.aria-orientation]': '"horizontal"',
1695
+ },
1696
+ template: '',
1697
+ }]
1698
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1699
+ class MenuLabelComponent {
1700
+ inset = input(false, ...(ngDevMode ? [{ debugName: "inset" }] : /* istanbul ignore next */ []));
1701
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1702
+ classes = computed(() => cn('px-2 py-1.5 text-sm font-semibold text-foreground', this.inset() ? 'pl-8' : '', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1703
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1704
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: MenuLabelComponent, isStandalone: true, selector: "ui-menu-label", inputs: { inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1705
+ }
1706
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuLabelComponent, decorators: [{
1707
+ type: Component,
1708
+ args: [{
1709
+ selector: 'ui-menu-label',
1710
+ changeDetection: ChangeDetectionStrategy.OnPush,
1711
+ host: { '[class]': 'classes()' },
1712
+ template: `<ng-content />`,
1713
+ }]
1714
+ }], propDecorators: { inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1715
+ class MenuShortcutComponent {
1716
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1717
+ classes = computed(() => cn('ml-auto text-xs tracking-widest text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1718
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuShortcutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1719
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: MenuShortcutComponent, isStandalone: true, selector: "ui-menu-shortcut, span[ui-menu-shortcut]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1720
+ }
1721
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuShortcutComponent, decorators: [{
1722
+ type: Component,
1723
+ args: [{
1724
+ selector: 'ui-menu-shortcut, span[ui-menu-shortcut]',
1725
+ changeDetection: ChangeDetectionStrategy.OnPush,
1726
+ host: { '[class]': 'classes()' },
1727
+ template: `<ng-content />`,
1728
+ }]
1729
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1730
+
1731
+ /**
1732
+ * Surface rendered inside the overlay. Hosts keyboard navigation for its items.
1733
+ */
1734
+ class MenuSurfaceComponent {
1735
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1736
+ items;
1737
+ closeRequested = output();
1738
+ keyManager = null;
1739
+ classes = computed(() => cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1740
+ ngAfterContentInit() {
1741
+ this.keyManager = new FocusKeyManager(this.items)
1742
+ .withWrap()
1743
+ .withTypeAhead();
1744
+ // Focus the first enabled item when the menu opens.
1745
+ queueMicrotask(() => this.keyManager?.setFirstItemActive());
1746
+ }
1747
+ onArrow(e, delta) {
1748
+ e.preventDefault();
1749
+ if (!this.keyManager)
1750
+ return;
1751
+ delta > 0 ? this.keyManager.setNextItemActive() : this.keyManager.setPreviousItemActive();
1752
+ }
1753
+ onHome(e) {
1754
+ e.preventDefault();
1755
+ this.keyManager?.setFirstItemActive();
1756
+ }
1757
+ onEnd(e) {
1758
+ e.preventDefault();
1759
+ this.keyManager?.setLastItemActive();
1760
+ }
1761
+ onTab(e) {
1762
+ e.preventDefault();
1763
+ this.closeRequested.emit();
1764
+ }
1765
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuSurfaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1766
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: MenuSurfaceComponent, isStandalone: true, selector: "ui-menu-surface", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closeRequested: "closeRequested" }, host: { attributes: { "tabindex": "-1" }, listeners: { "keydown.arrowDown": "onArrow($any($event), 1)", "keydown.arrowUp": "onArrow($any($event), -1)", "keydown.home": "onHome($any($event))", "keydown.end": "onEnd($any($event))", "keydown.tab": "onTab($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menu\"" } }, queries: [{ propertyName: "items", predicate: MenuItemComponent, descendants: true }], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1767
+ }
1768
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuSurfaceComponent, decorators: [{
1769
+ type: Component,
1770
+ args: [{
1771
+ selector: 'ui-menu-surface',
1772
+ changeDetection: ChangeDetectionStrategy.OnPush,
1773
+ host: {
1774
+ '[class]': 'classes()',
1775
+ '[attr.role]': '"menu"',
1776
+ tabindex: '-1',
1777
+ '(keydown.arrowDown)': 'onArrow($any($event), 1)',
1778
+ '(keydown.arrowUp)': 'onArrow($any($event), -1)',
1779
+ '(keydown.home)': 'onHome($any($event))',
1780
+ '(keydown.end)': 'onEnd($any($event))',
1781
+ '(keydown.tab)': 'onTab($any($event))',
1782
+ },
1783
+ template: `<ng-content />`,
1784
+ }]
1785
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], items: [{
1786
+ type: ContentChildren,
1787
+ args: [MenuItemComponent, { descendants: true }]
1788
+ }], closeRequested: [{ type: i0.Output, args: ["closeRequested"] }] } });
1789
+ /**
1790
+ * Wraps an `<ng-template>` that holds `<ui-menu-surface>` + items.
1791
+ */
1792
+ class MenuContentDirective {
1793
+ template = inject(TemplateRef);
1794
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1795
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: MenuContentDirective, isStandalone: true, selector: "ng-template[uiMenuContent]", exportAs: ["uiMenuContent"], ngImport: i0 });
1796
+ }
1797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuContentDirective, decorators: [{
1798
+ type: Directive,
1799
+ args: [{
1800
+ selector: 'ng-template[uiMenuContent]',
1801
+ exportAs: 'uiMenuContent',
1802
+ }]
1803
+ }] });
1804
+
1805
+ function position(side, align) {
1806
+ const ax = align === 'start' ? 'start' : align === 'end' ? 'end' : 'center';
1807
+ const ay = align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center';
1808
+ switch (side) {
1809
+ case 'bottom':
1810
+ return { originX: ax, originY: 'bottom', overlayX: ax, overlayY: 'top', offsetY: 4 };
1811
+ case 'top':
1812
+ return { originX: ax, originY: 'top', overlayX: ax, overlayY: 'bottom', offsetY: -4 };
1813
+ case 'right':
1814
+ return { originX: 'end', originY: ay, overlayX: 'start', overlayY: ay, offsetX: 4 };
1815
+ case 'left':
1816
+ return { originX: 'start', originY: ay, overlayX: 'end', overlayY: ay, offsetX: -4 };
1817
+ }
1818
+ }
1819
+ /**
1820
+ * Opens an `<ng-template uiMenuContent>` anchored to the trigger element.
1821
+ */
1822
+ class MenuTriggerDirective {
1823
+ overlay = inject(Overlay);
1824
+ vcr = inject(ViewContainerRef);
1825
+ el = inject(ElementRef);
1826
+ destroyRef = inject(DestroyRef);
1827
+ uiMenuTrigger = input.required(...(ngDevMode ? [{ debugName: "uiMenuTrigger" }] : /* istanbul ignore next */ []));
1828
+ side = input('bottom', ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
1829
+ align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
1830
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
1831
+ openedChange = output();
1832
+ overlayRef = null;
1833
+ isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
1834
+ toggle() {
1835
+ if (this.disabled())
1836
+ return;
1837
+ this.isOpen() ? this.close() : this.open();
1838
+ }
1839
+ openAndFocus(e) {
1840
+ if (this.disabled())
1841
+ return;
1842
+ e.preventDefault();
1843
+ this.open();
1844
+ }
1845
+ open() {
1846
+ if (this.isOpen() || this.disabled())
1847
+ return;
1848
+ const primary = position(this.side(), this.align());
1849
+ const fallback = position(this.side() === 'top' ? 'bottom' : this.side() === 'bottom' ? 'top' : this.side(), this.align());
1850
+ this.overlayRef = this.overlay.create({
1851
+ positionStrategy: this.overlay.position().flexibleConnectedTo(this.el).withPositions([primary, fallback]),
1852
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
1853
+ hasBackdrop: false,
1854
+ panelClass: 'ui-menu-panel',
1855
+ });
1856
+ const portal = new TemplatePortal(this.uiMenuTrigger().template, this.vcr);
1857
+ this.overlayRef.attach(portal);
1858
+ merge(this.overlayRef.outsidePointerEvents().pipe(filter((e) => !this.el.nativeElement.contains(e.target))), this.overlayRef.keydownEvents().pipe(filter((e) => e.key === 'Escape')), this.overlayRef.detachments())
1859
+ .pipe(takeUntilDestroyed(this.destroyRef))
1860
+ .subscribe(() => this.close());
1861
+ this.isOpen.set(true);
1862
+ this.openedChange.emit(true);
1863
+ }
1864
+ close() {
1865
+ if (!this.isOpen())
1866
+ return;
1867
+ this.overlayRef?.dispose();
1868
+ this.overlayRef = null;
1869
+ this.isOpen.set(false);
1870
+ this.openedChange.emit(false);
1871
+ // Restore focus to trigger
1872
+ this.el.nativeElement.focus();
1873
+ }
1874
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1875
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: MenuTriggerDirective, isStandalone: true, selector: "[uiMenuTrigger]", inputs: { uiMenuTrigger: { classPropertyName: "uiMenuTrigger", publicName: "uiMenuTrigger", isSignal: true, isRequired: true, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "click": "toggle()", "keydown.enter": "openAndFocus($any($event))", "keydown.space": "openAndFocus($any($event))", "keydown.arrowDown": "openAndFocus($any($event))" }, properties: { "attr.aria-haspopup": "\"menu\"", "attr.aria-expanded": "isOpen()" } }, exportAs: ["uiMenuTrigger"], ngImport: i0 });
1876
+ }
1877
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuTriggerDirective, decorators: [{
1878
+ type: Directive,
1879
+ args: [{
1880
+ selector: '[uiMenuTrigger]',
1881
+ exportAs: 'uiMenuTrigger',
1882
+ host: {
1883
+ '[attr.aria-haspopup]': '"menu"',
1884
+ '[attr.aria-expanded]': 'isOpen()',
1885
+ '(click)': 'toggle()',
1886
+ '(keydown.enter)': 'openAndFocus($any($event))',
1887
+ '(keydown.space)': 'openAndFocus($any($event))',
1888
+ '(keydown.arrowDown)': 'openAndFocus($any($event))',
1889
+ },
1890
+ }]
1891
+ }], propDecorators: { uiMenuTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiMenuTrigger", required: true }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
1892
+
1893
+ let nextId = 0;
1894
+ /**
1895
+ * Backing store for a single `<ui-form-field>`. Provided on the component
1896
+ * so descendant parts (label, description, message, control) can inject it.
1897
+ */
1898
+ class FormFieldContext {
1899
+ uid = ++nextId;
1900
+ controlId = `ui-form-field-${this.uid}`;
1901
+ descriptionId = `${this.controlId}-description`;
1902
+ messageId = `${this.controlId}-message`;
1903
+ control = signal(null, ...(ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []));
1904
+ hasDescription = signal(false, ...(ngDevMode ? [{ debugName: "hasDescription" }] : /* istanbul ignore next */ []));
1905
+ hasMessage = signal(false, ...(ngDevMode ? [{ debugName: "hasMessage" }] : /* istanbul ignore next */ []));
1906
+ statusTick = signal(0, ...(ngDevMode ? [{ debugName: "statusTick" }] : /* istanbul ignore next */ []));
1907
+ invalid = computed(() => {
1908
+ this.statusTick();
1909
+ const c = this.control();
1910
+ return !!c && c.invalid && (c.touched || c.dirty);
1911
+ }, ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
1912
+ firstError = computed(() => {
1913
+ this.statusTick();
1914
+ const c = this.control();
1915
+ if (!c?.errors)
1916
+ return null;
1917
+ const keys = Object.keys(c.errors);
1918
+ return keys.length > 0 ? keys[0] : null;
1919
+ }, ...(ngDevMode ? [{ debugName: "firstError" }] : /* istanbul ignore next */ []));
1920
+ describedBy = computed(() => {
1921
+ const parts = [];
1922
+ if (this.hasDescription())
1923
+ parts.push(this.descriptionId);
1924
+ if (this.hasMessage() && this.invalid())
1925
+ parts.push(this.messageId);
1926
+ return parts.length > 0 ? parts.join(' ') : null;
1927
+ }, ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
1928
+ constructor() {
1929
+ // Re-run computed() above whenever the control's status changes.
1930
+ effect((onCleanup) => {
1931
+ const c = this.control();
1932
+ if (!c)
1933
+ return;
1934
+ const sub = c.statusChanges.subscribe(() => this.statusTick.update((n) => n + 1));
1935
+ onCleanup(() => sub.unsubscribe());
1936
+ });
1937
+ }
1938
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormFieldContext, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1939
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormFieldContext });
1940
+ }
1941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormFieldContext, decorators: [{
1942
+ type: Injectable
1943
+ }], ctorParameters: () => [] });
1944
+
1945
+ /**
1946
+ * Groups a label, control, description, and validation message.
1947
+ * Provides ids + invalid state to descendants via {@link FormFieldContext}.
1948
+ */
1949
+ class FormFieldComponent {
1950
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1951
+ classes = computed(() => cn('flex flex-col gap-2', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1952
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1953
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: FormFieldComponent, isStandalone: true, selector: "ui-form-field", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, providers: [FormFieldContext], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1954
+ }
1955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormFieldComponent, decorators: [{
1956
+ type: Component,
1957
+ args: [{
1958
+ selector: 'ui-form-field',
1959
+ changeDetection: ChangeDetectionStrategy.OnPush,
1960
+ providers: [FormFieldContext],
1961
+ host: { '[class]': 'classes()' },
1962
+ template: `<ng-content />`,
1963
+ }]
1964
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1965
+
1966
+ class FormLabelComponent {
1967
+ ctx = inject(FormFieldContext);
1968
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1969
+ classes = computed(() => cn('text-sm font-medium leading-none', this.ctx.invalid() ? 'text-destructive' : 'text-foreground', 'peer-disabled:cursor-not-allowed peer-disabled:opacity-70', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1970
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1971
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: FormLabelComponent, isStandalone: true, selector: "ui-form-label, label[ui-form-label]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.for": "ctx.controlId" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1972
+ }
1973
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormLabelComponent, decorators: [{
1974
+ type: Component,
1975
+ args: [{
1976
+ selector: 'ui-form-label, label[ui-form-label]',
1977
+ changeDetection: ChangeDetectionStrategy.OnPush,
1978
+ host: {
1979
+ '[class]': 'classes()',
1980
+ '[attr.for]': 'ctx.controlId',
1981
+ },
1982
+ template: `<ng-content />`,
1983
+ }]
1984
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
1985
+
1986
+ class FormDescriptionComponent {
1987
+ ctx = inject(FormFieldContext);
1988
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
1989
+ classes = computed(() => cn('text-sm text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1990
+ ngOnInit() {
1991
+ this.ctx.hasDescription.set(true);
1992
+ }
1993
+ ngOnDestroy() {
1994
+ this.ctx.hasDescription.set(false);
1995
+ }
1996
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1997
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: FormDescriptionComponent, isStandalone: true, selector: "ui-form-description, p[ui-form-description]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "ctx.descriptionId" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1998
+ }
1999
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormDescriptionComponent, decorators: [{
2000
+ type: Component,
2001
+ args: [{
2002
+ selector: 'ui-form-description, p[ui-form-description]',
2003
+ changeDetection: ChangeDetectionStrategy.OnPush,
2004
+ host: {
2005
+ '[class]': 'classes()',
2006
+ '[attr.id]': 'ctx.descriptionId',
2007
+ },
2008
+ template: `<ng-content />`,
2009
+ }]
2010
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2011
+
2012
+ /**
2013
+ * Renders validation errors for the field's control.
2014
+ * By default, surfaces the first error key. Provide custom content to override.
2015
+ */
2016
+ class FormMessageComponent {
2017
+ ctx = inject(FormFieldContext);
2018
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2019
+ show = computed(() => this.ctx.invalid(), ...(ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []));
2020
+ classes = computed(() => cn('text-sm font-medium text-destructive', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2021
+ ngOnInit() {
2022
+ this.ctx.hasMessage.set(true);
2023
+ }
2024
+ ngOnDestroy() {
2025
+ this.ctx.hasMessage.set(false);
2026
+ }
2027
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2028
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: FormMessageComponent, isStandalone: true, selector: "ui-form-message, p[ui-form-message]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "ctx.messageId", "attr.role": "\"alert\"", "attr.aria-live": "\"polite\"" } }, ngImport: i0, template: `
2029
+ @if (show()) {
2030
+ <ng-content>{{ ctx.firstError() }}</ng-content>
2031
+ }
2032
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2033
+ }
2034
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormMessageComponent, decorators: [{
2035
+ type: Component,
2036
+ args: [{
2037
+ selector: 'ui-form-message, p[ui-form-message]',
2038
+ changeDetection: ChangeDetectionStrategy.OnPush,
2039
+ host: {
2040
+ '[class]': 'classes()',
2041
+ '[attr.id]': 'ctx.messageId',
2042
+ '[attr.role]': '"alert"',
2043
+ '[attr.aria-live]': '"polite"',
2044
+ },
2045
+ template: `
2046
+ @if (show()) {
2047
+ <ng-content>{{ ctx.firstError() }}</ng-content>
2048
+ }
2049
+ `,
2050
+ }]
2051
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2052
+
2053
+ /**
2054
+ * Attach to the native form control inside a `<ui-form-field>` to auto-wire:
2055
+ * - `id` ↔ `<ui-form-label for>`
2056
+ * - `aria-describedby` ↔ description + error message
2057
+ * - `aria-invalid` ↔ control validity (after touch/dirty)
2058
+ *
2059
+ * @example
2060
+ * <ui-form-field>
2061
+ * <ui-form-label>Email</ui-form-label>
2062
+ * <input ui-input uiFormControl [formControl]="email" />
2063
+ * <ui-form-description>We'll never share it.</ui-form-description>
2064
+ * <ui-form-message />
2065
+ * </ui-form-field>
2066
+ */
2067
+ class FormControlDirective {
2068
+ ctx = inject(FormFieldContext);
2069
+ ngControl = inject(NgControl, { optional: true, self: true });
2070
+ ngOnInit() {
2071
+ if (this.ngControl?.control) {
2072
+ this.ctx.control.set(this.ngControl.control);
2073
+ }
2074
+ }
2075
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2076
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: FormControlDirective, isStandalone: true, selector: "[uiFormControl]", host: { properties: { "attr.id": "ctx.controlId", "attr.aria-describedby": "ctx.describedBy()", "attr.aria-invalid": "ctx.invalid() ? \"true\" : null" } }, ngImport: i0 });
2077
+ }
2078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormControlDirective, decorators: [{
2079
+ type: Directive,
2080
+ args: [{
2081
+ selector: '[uiFormControl]',
2082
+ host: {
2083
+ '[attr.id]': 'ctx.controlId',
2084
+ '[attr.aria-describedby]': 'ctx.describedBy()',
2085
+ '[attr.aria-invalid]': 'ctx.invalid() ? "true" : null',
2086
+ },
2087
+ }]
2088
+ }] });
2089
+
2090
+ const BASE = [
2091
+ 'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1',
2092
+ 'text-sm shadow-sm transition-colors',
2093
+ 'file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground',
2094
+ 'placeholder:text-muted-foreground',
2095
+ 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',
2096
+ 'disabled:cursor-not-allowed disabled:opacity-50',
2097
+ 'aria-[invalid=true]:border-destructive aria-[invalid=true]:focus-visible:ring-destructive',
2098
+ ].join(' ');
2099
+ /**
2100
+ * Styled native `<input>`. Works with Angular's DefaultValueAccessor,
2101
+ * so `ngModel` and reactive forms just work.
2102
+ */
2103
+ class InputComponent {
2104
+ el = inject(ElementRef);
2105
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2106
+ classes = computed(() => cn(BASE, this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2107
+ focus() {
2108
+ this.el.nativeElement.focus();
2109
+ }
2110
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2111
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: InputComponent, isStandalone: true, selector: "input[ui-input]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2112
+ }
2113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: InputComponent, decorators: [{
2114
+ type: Component,
2115
+ args: [{
2116
+ selector: 'input[ui-input]',
2117
+ changeDetection: ChangeDetectionStrategy.OnPush,
2118
+ host: { '[class]': 'classes()' },
2119
+ template: '',
2120
+ }]
2121
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2122
+
2123
+ class LabelComponent {
2124
+ for = input(null, ...(ngDevMode ? [{ debugName: "for" }] : /* istanbul ignore next */ []));
2125
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2126
+ classes = computed(() => cn('text-sm font-medium leading-none text-foreground', 'peer-disabled:cursor-not-allowed peer-disabled:opacity-70', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2127
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2128
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: LabelComponent, isStandalone: true, selector: "ui-label, label[ui-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, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2129
+ }
2130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LabelComponent, decorators: [{
2131
+ type: Component,
2132
+ args: [{
2133
+ selector: 'ui-label, label[ui-label]',
2134
+ changeDetection: ChangeDetectionStrategy.OnPush,
2135
+ host: {
2136
+ '[class]': 'classes()',
2137
+ '[attr.for]': 'for() || null',
2138
+ },
2139
+ template: `<ng-content />`,
2140
+ }]
2141
+ }], propDecorators: { for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2142
+
2143
+ /**
2144
+ * Simple pagination. Emits the desired page via `(pageChange)` and reflects
2145
+ * the current page through the `page` model input.
2146
+ */
2147
+ class PaginationComponent {
2148
+ page = model(1, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
2149
+ total = input(1, ...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
2150
+ /** Number of sibling pages on each side of current. */
2151
+ siblingCount = input(1, ...(ngDevMode ? [{ debugName: "siblingCount" }] : /* istanbul ignore next */ []));
2152
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2153
+ pageChange = output();
2154
+ classes = computed(() => cn('mx-auto flex w-full justify-center', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2155
+ pages = computed(() => {
2156
+ const total = Math.max(1, this.total());
2157
+ const current = Math.min(Math.max(1, this.page()), total);
2158
+ const siblings = Math.max(0, this.siblingCount());
2159
+ const range = [];
2160
+ const start = Math.max(2, current - siblings);
2161
+ const end = Math.min(total - 1, current + siblings);
2162
+ range.push({ key: 'p-1', kind: 'page', value: 1 });
2163
+ if (start > 2)
2164
+ range.push({ key: 'e-start', kind: 'ellipsis', value: -1 });
2165
+ for (let i = start; i <= end; i++)
2166
+ range.push({ key: `p-${i}`, kind: 'page', value: i });
2167
+ if (end < total - 1)
2168
+ range.push({ key: 'e-end', kind: 'ellipsis', value: -1 });
2169
+ if (total > 1)
2170
+ range.push({ key: `p-${total}`, kind: 'page', value: total });
2171
+ return range;
2172
+ }, ...(ngDevMode ? [{ debugName: "pages" }] : /* istanbul ignore next */ []));
2173
+ navClasses() {
2174
+ return cn(buttonVariants({ variant: 'ghost', size: 'default' }), 'gap-1 pl-2.5 pr-2.5');
2175
+ }
2176
+ pageClasses(active) {
2177
+ return cn(buttonVariants({ variant: active ? 'outline' : 'ghost', size: 'icon' }), 'h-9 w-9');
2178
+ }
2179
+ go(target) {
2180
+ const total = Math.max(1, this.total());
2181
+ const next = Math.min(Math.max(1, target), total);
2182
+ if (next === this.page())
2183
+ return;
2184
+ this.page.set(next);
2185
+ this.pageChange.emit(next);
2186
+ }
2187
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2188
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: PaginationComponent, isStandalone: true, selector: "ui-pagination, nav[ui-pagination]", inputs: { page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, siblingCount: { classPropertyName: "siblingCount", publicName: "siblingCount", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "pageChange", pageChange: "pageChange" }, host: { attributes: { "role": "navigation", "aria-label": "pagination" }, properties: { "class": "classes()" } }, ngImport: i0, template: `
2189
+ <ul class="flex flex-row items-center gap-1">
2190
+ <li>
2191
+ <button
2192
+ type="button"
2193
+ [disabled]="page() <= 1 || null"
2194
+ [attr.aria-label]="'Go to previous page'"
2195
+ [class]="navClasses()"
2196
+ (click)="go(page() - 1)">
2197
+ <svg
2198
+ class="h-4 w-4"
2199
+ viewBox="0 0 24 24"
2200
+ fill="none"
2201
+ stroke="currentColor"
2202
+ stroke-width="2"
2203
+ stroke-linecap="round"
2204
+ stroke-linejoin="round">
2205
+ <polyline points="15 18 9 12 15 6" />
2206
+ </svg>
2207
+ <span>Previous</span>
2208
+ </button>
2209
+ </li>
2210
+
2211
+ @for (p of pages(); track p.key) {
2212
+ <li>
2213
+ @if (p.kind === 'page') {
2214
+ <button
2215
+ type="button"
2216
+ [attr.aria-current]="p.value === page() ? 'page' : null"
2217
+ [class]="pageClasses(p.value === page())"
2218
+ (click)="go(p.value)">
2219
+ {{ p.value }}
2220
+ </button>
2221
+ } @else {
2222
+ <span class="flex h-9 w-9 items-center justify-center" aria-hidden="true">…</span>
2223
+ }
2224
+ </li>
2225
+ }
2226
+
2227
+ <li>
2228
+ <button
2229
+ type="button"
2230
+ [disabled]="page() >= total() || null"
2231
+ [attr.aria-label]="'Go to next page'"
2232
+ [class]="navClasses()"
2233
+ (click)="go(page() + 1)">
2234
+ <span>Next</span>
2235
+ <svg
2236
+ class="h-4 w-4"
2237
+ viewBox="0 0 24 24"
2238
+ fill="none"
2239
+ stroke="currentColor"
2240
+ stroke-width="2"
2241
+ stroke-linecap="round"
2242
+ stroke-linejoin="round">
2243
+ <polyline points="9 18 15 12 9 6" />
2244
+ </svg>
2245
+ </button>
2246
+ </li>
2247
+ </ul>
2248
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2249
+ }
2250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PaginationComponent, decorators: [{
2251
+ type: Component,
2252
+ args: [{
2253
+ selector: 'ui-pagination, nav[ui-pagination]',
2254
+ changeDetection: ChangeDetectionStrategy.OnPush,
2255
+ host: {
2256
+ role: 'navigation',
2257
+ 'aria-label': 'pagination',
2258
+ '[class]': 'classes()',
2259
+ },
2260
+ template: `
2261
+ <ul class="flex flex-row items-center gap-1">
2262
+ <li>
2263
+ <button
2264
+ type="button"
2265
+ [disabled]="page() <= 1 || null"
2266
+ [attr.aria-label]="'Go to previous page'"
2267
+ [class]="navClasses()"
2268
+ (click)="go(page() - 1)">
2269
+ <svg
2270
+ class="h-4 w-4"
2271
+ viewBox="0 0 24 24"
2272
+ fill="none"
2273
+ stroke="currentColor"
2274
+ stroke-width="2"
2275
+ stroke-linecap="round"
2276
+ stroke-linejoin="round">
2277
+ <polyline points="15 18 9 12 15 6" />
2278
+ </svg>
2279
+ <span>Previous</span>
2280
+ </button>
2281
+ </li>
2282
+
2283
+ @for (p of pages(); track p.key) {
2284
+ <li>
2285
+ @if (p.kind === 'page') {
2286
+ <button
2287
+ type="button"
2288
+ [attr.aria-current]="p.value === page() ? 'page' : null"
2289
+ [class]="pageClasses(p.value === page())"
2290
+ (click)="go(p.value)">
2291
+ {{ p.value }}
2292
+ </button>
2293
+ } @else {
2294
+ <span class="flex h-9 w-9 items-center justify-center" aria-hidden="true">…</span>
2295
+ }
2296
+ </li>
2297
+ }
2298
+
2299
+ <li>
2300
+ <button
2301
+ type="button"
2302
+ [disabled]="page() >= total() || null"
2303
+ [attr.aria-label]="'Go to next page'"
2304
+ [class]="navClasses()"
2305
+ (click)="go(page() + 1)">
2306
+ <span>Next</span>
2307
+ <svg
2308
+ class="h-4 w-4"
2309
+ viewBox="0 0 24 24"
2310
+ fill="none"
2311
+ stroke="currentColor"
2312
+ stroke-width="2"
2313
+ stroke-linecap="round"
2314
+ stroke-linejoin="round">
2315
+ <polyline points="9 18 15 12 9 6" />
2316
+ </svg>
2317
+ </button>
2318
+ </li>
2319
+ </ul>
2320
+ `,
2321
+ }]
2322
+ }], propDecorators: { page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], siblingCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "siblingCount", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }] } });
2323
+
2324
+ /**
2325
+ * Wraps a template that will be rendered inside a popover overlay.
2326
+ * Must be used on an `<ng-template>` element.
2327
+ *
2328
+ * @example
2329
+ * <ng-template uiPopoverContent #popover>
2330
+ * <div class="p-4">Content</div>
2331
+ * </ng-template>
2332
+ */
2333
+ class PopoverContentDirective {
2334
+ template = inject(TemplateRef);
2335
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PopoverContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2336
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: PopoverContentDirective, isStandalone: true, selector: "ng-template[uiPopoverContent]", exportAs: ["uiPopoverContent"], ngImport: i0 });
2337
+ }
2338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PopoverContentDirective, decorators: [{
2339
+ type: Directive,
2340
+ args: [{
2341
+ selector: 'ng-template[uiPopoverContent]',
2342
+ exportAs: 'uiPopoverContent',
2343
+ }]
2344
+ }] });
2345
+
2346
+ const POPOVER_TRIGGER_DEFAULTS = new InjectionToken('POPOVER_TRIGGER_DEFAULTS');
2347
+ const POSITION_ANCHORS = {
2348
+ top: (a) => ({
2349
+ originX: a === 'start' ? 'start' : a === 'end' ? 'end' : 'center',
2350
+ originY: 'top',
2351
+ overlayX: a === 'start' ? 'start' : a === 'end' ? 'end' : 'center',
2352
+ overlayY: 'bottom',
2353
+ }),
2354
+ bottom: (a) => ({
2355
+ originX: a === 'start' ? 'start' : a === 'end' ? 'end' : 'center',
2356
+ originY: 'bottom',
2357
+ overlayX: a === 'start' ? 'start' : a === 'end' ? 'end' : 'center',
2358
+ overlayY: 'top',
2359
+ }),
2360
+ left: (a) => ({
2361
+ originX: 'start',
2362
+ originY: a === 'start' ? 'top' : a === 'end' ? 'bottom' : 'center',
2363
+ overlayX: 'end',
2364
+ overlayY: a === 'start' ? 'top' : a === 'end' ? 'bottom' : 'center',
2365
+ }),
2366
+ right: (a) => ({
2367
+ originX: 'end',
2368
+ originY: a === 'start' ? 'top' : a === 'end' ? 'bottom' : 'center',
2369
+ overlayX: 'start',
2370
+ overlayY: a === 'start' ? 'top' : a === 'end' ? 'bottom' : 'center',
2371
+ }),
2372
+ };
2373
+ function positionFor(side, align, sideOffset) {
2374
+ const anchor = POSITION_ANCHORS[side](align);
2375
+ if (side === 'top') {
2376
+ return { ...anchor, offsetY: -sideOffset };
2377
+ }
2378
+ if (side === 'bottom') {
2379
+ return { ...anchor, offsetY: sideOffset };
2380
+ }
2381
+ if (side === 'left') {
2382
+ return { ...anchor, offsetX: -sideOffset };
2383
+ }
2384
+ return { ...anchor, offsetX: sideOffset };
2385
+ }
2386
+ /**
2387
+ * Toggle a `<ng-template uiPopoverContent>` anchored to the host element.
2388
+ *
2389
+ * @example
2390
+ * <button ui-button [uiPopoverTrigger]="pop">Open</button>
2391
+ * <ng-template uiPopoverContent #pop>
2392
+ * <div class="w-64 p-4">…</div>
2393
+ * </ng-template>
2394
+ */
2395
+ class PopoverTriggerDirective {
2396
+ overlay = inject(Overlay);
2397
+ vcr = inject(ViewContainerRef);
2398
+ el = inject(ElementRef);
2399
+ destroyRef = inject(DestroyRef);
2400
+ defaults = inject(POPOVER_TRIGGER_DEFAULTS, { optional: true });
2401
+ uiPopoverTrigger = input.required(...(ngDevMode ? [{ debugName: "uiPopoverTrigger" }] : /* istanbul ignore next */ []));
2402
+ side = input(undefined, ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
2403
+ align = input(undefined, ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
2404
+ sideOffset = input(undefined, ...(ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []));
2405
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
2406
+ openedChange = output();
2407
+ overlayRef = null;
2408
+ isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
2409
+ toggle() {
2410
+ if (this.disabled())
2411
+ return;
2412
+ this.isOpen() ? this.close() : this.open();
2413
+ }
2414
+ onKeyboardToggle(event) {
2415
+ if (this.disabled() || this.usesNativeKeyboardActivation()) {
2416
+ return;
2417
+ }
2418
+ event.preventDefault();
2419
+ this.toggle();
2420
+ }
2421
+ open() {
2422
+ if (this.isOpen() || this.disabled())
2423
+ return;
2424
+ const side = this.side() ?? this.defaults?.side?.() ?? 'bottom';
2425
+ const align = this.align() ?? this.defaults?.align?.() ?? 'center';
2426
+ const sideOffset = this.sideOffset() ?? this.defaults?.sideOffset?.() ?? 8;
2427
+ const primary = positionFor(side, align, sideOffset);
2428
+ const fallback = positionFor(this.oppositeSide(side), align, sideOffset);
2429
+ const positionStrategy = this.overlay
2430
+ .position()
2431
+ .flexibleConnectedTo(this.el)
2432
+ .withPositions([primary, fallback])
2433
+ .withPush(false)
2434
+ .withFlexibleDimensions(false);
2435
+ this.overlayRef = this.overlay.create({
2436
+ positionStrategy,
2437
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
2438
+ hasBackdrop: false,
2439
+ panelClass: 'ui-popover-panel',
2440
+ });
2441
+ const portal = new TemplatePortal(this.uiPopoverTrigger().template, this.vcr);
2442
+ this.overlayRef.attach(portal);
2443
+ merge(this.overlayRef.outsidePointerEvents().pipe(filter((e) => !this.el.nativeElement.contains(e.target))), this.overlayRef.keydownEvents().pipe(filter((e) => e.key === 'Escape')), this.overlayRef.detachments())
2444
+ .pipe(takeUntilDestroyed(this.destroyRef))
2445
+ .subscribe(() => this.close());
2446
+ this.isOpen.set(true);
2447
+ this.openedChange.emit(true);
2448
+ }
2449
+ close() {
2450
+ if (!this.isOpen())
2451
+ return;
2452
+ this.overlayRef?.dispose();
2453
+ this.overlayRef = null;
2454
+ this.isOpen.set(false);
2455
+ this.openedChange.emit(false);
2456
+ }
2457
+ oppositeSide(side) {
2458
+ return side === 'top' ? 'bottom' : side === 'bottom' ? 'top' : side === 'left' ? 'right' : 'left';
2459
+ }
2460
+ usesNativeKeyboardActivation() {
2461
+ const host = this.el.nativeElement;
2462
+ const tagName = host.tagName;
2463
+ return (tagName === 'BUTTON' ||
2464
+ tagName === 'INPUT' ||
2465
+ tagName === 'SELECT' ||
2466
+ tagName === 'TEXTAREA' ||
2467
+ tagName === 'SUMMARY' ||
2468
+ (tagName === 'A' && host.hasAttribute('href')));
2469
+ }
2470
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PopoverTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2471
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: PopoverTriggerDirective, isStandalone: true, selector: "[uiPopoverTrigger]", inputs: { uiPopoverTrigger: { classPropertyName: "uiPopoverTrigger", publicName: "uiPopoverTrigger", isSignal: true, isRequired: true, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "click": "toggle()", "keydown.enter": "onKeyboardToggle($event)", "keydown.space": "onKeyboardToggle($event)", "keydown.escape": "close()" }, properties: { "attr.aria-expanded": "isOpen()", "attr.aria-haspopup": "\"dialog\"" } }, exportAs: ["uiPopoverTrigger"], ngImport: i0 });
2472
+ }
2473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PopoverTriggerDirective, decorators: [{
2474
+ type: Directive,
2475
+ args: [{
2476
+ selector: '[uiPopoverTrigger]',
2477
+ exportAs: 'uiPopoverTrigger',
2478
+ host: {
2479
+ '[attr.aria-expanded]': 'isOpen()',
2480
+ '[attr.aria-haspopup]': '"dialog"',
2481
+ '(click)': 'toggle()',
2482
+ '(keydown.enter)': 'onKeyboardToggle($event)',
2483
+ '(keydown.space)': 'onKeyboardToggle($event)',
2484
+ '(keydown.escape)': 'close()',
2485
+ },
2486
+ }]
2487
+ }], propDecorators: { uiPopoverTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiPopoverTrigger", required: true }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
2488
+
2489
+ class ProgressComponent {
2490
+ value = input(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2491
+ max = input(100, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
2492
+ indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
2493
+ ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
2494
+ ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
2495
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2496
+ clamped = computed(() => {
2497
+ const v = this.value() ?? 0;
2498
+ return Math.max(0, Math.min(this.max(), v));
2499
+ }, ...(ngDevMode ? [{ debugName: "clamped" }] : /* istanbul ignore next */ []));
2500
+ indicatorTransform = computed(() => {
2501
+ if (this.indeterminate())
2502
+ return 'translateX(-100%)';
2503
+ const pct = (this.clamped() / this.max()) * 100;
2504
+ return `translateX(-${100 - pct}%)`;
2505
+ }, ...(ngDevMode ? [{ debugName: "indicatorTransform" }] : /* istanbul ignore next */ []));
2506
+ classes = computed(() => cn('relative h-2 w-full overflow-hidden rounded-full bg-secondary', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2507
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2508
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: ProgressComponent, isStandalone: true, selector: "ui-progress", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"progressbar\"", "attr.aria-valuemin": "0", "attr.aria-valuemax": "max()", "attr.aria-valuenow": "indeterminate() ? null : clamped()", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledby()", "attr.data-state": "indeterminate() ? \"indeterminate\" : \"determinate\"" } }, ngImport: i0, template: `
2509
+ <div
2510
+ class="ui-progress-indicator h-full w-full flex-1 bg-primary transition-transform"
2511
+ [style.transform]="indicatorTransform()"></div>
2512
+ `, isInline: true, styles: [":host{display:block}:host[data-state=indeterminate] .ui-progress-indicator{animation:ui-progress-indeterminate 1.5s cubic-bezier(.65,.815,.735,.395) infinite}@keyframes ui-progress-indeterminate{0%{transform:translate(-100%)}to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){:host[data-state=indeterminate] .ui-progress-indicator{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2513
+ }
2514
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ProgressComponent, decorators: [{
2515
+ type: Component,
2516
+ args: [{ selector: 'ui-progress', changeDetection: ChangeDetectionStrategy.OnPush, host: {
2517
+ '[class]': 'classes()',
2518
+ '[attr.role]': '"progressbar"',
2519
+ '[attr.aria-valuemin]': '0',
2520
+ '[attr.aria-valuemax]': 'max()',
2521
+ '[attr.aria-valuenow]': 'indeterminate() ? null : clamped()',
2522
+ '[attr.aria-label]': 'ariaLabel()',
2523
+ '[attr.aria-labelledby]': 'ariaLabelledby()',
2524
+ '[attr.data-state]': 'indeterminate() ? "indeterminate" : "determinate"',
2525
+ }, template: `
2526
+ <div
2527
+ class="ui-progress-indicator h-full w-full flex-1 bg-primary transition-transform"
2528
+ [style.transform]="indicatorTransform()"></div>
2529
+ `, styles: [":host{display:block}:host[data-state=indeterminate] .ui-progress-indicator{animation:ui-progress-indeterminate 1.5s cubic-bezier(.65,.815,.735,.395) infinite}@keyframes ui-progress-indeterminate{0%{transform:translate(-100%)}to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){:host[data-state=indeterminate] .ui-progress-indicator{animation:none}}\n"] }]
2530
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2531
+
2532
+ class RadioGroupComponent {
2533
+ name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
2534
+ orientation = input('vertical', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
2535
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2536
+ valueChange = output();
2537
+ ref = viewChild.required('ref');
2538
+ value = signal(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2539
+ disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
2540
+ classes = computed(() => cn('ui-radio-group grid gap-2', this.orientation() === 'horizontal' ? 'grid-flow-col auto-cols-max' : '', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2541
+ onChange = () => { };
2542
+ onTouched = () => { };
2543
+ handleChange(e) {
2544
+ this.value.set(e.value);
2545
+ this.onChange(e.value);
2546
+ this.onTouched();
2547
+ this.valueChange.emit(e.value);
2548
+ }
2549
+ focus() {
2550
+ this.ref()._radios?.first?.focus();
2551
+ }
2552
+ writeValue(v) {
2553
+ this.value.set(v ?? null);
2554
+ }
2555
+ registerOnChange(fn) {
2556
+ this.onChange = fn;
2557
+ }
2558
+ registerOnTouched(fn) {
2559
+ this.onTouched = fn;
2560
+ }
2561
+ setDisabledState(d) {
2562
+ this.disabled.set(d);
2563
+ }
2564
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2565
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: RadioGroupComponent, isStandalone: true, selector: "ui-radio-group", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RadioGroupComponent), multi: true }], viewQueries: [{ propertyName: "ref", first: true, predicate: ["ref"], descendants: true, isSignal: true }], ngImport: i0, template: `
2566
+ <mat-radio-group
2567
+ #ref
2568
+ [class]="classes()"
2569
+ [value]="value()"
2570
+ [disabled]="disabled()"
2571
+ [name]="name()"
2572
+ (change)="handleChange($event)">
2573
+ <ng-content />
2574
+ </mat-radio-group>
2575
+ `, isInline: true, styles: [":host{display:block}:host ::ng-deep .mat-mdc-radio-button{--mdc-radio-state-layer-size: 1rem;--mdc-radio-selected-icon-color: hsl(var(--primary));--mdc-radio-selected-focus-icon-color: hsl(var(--primary));--mdc-radio-selected-hover-icon-color: hsl(var(--primary));--mdc-radio-selected-pressed-icon-color: hsl(var(--primary));--mdc-radio-unselected-icon-color: hsl(var(--input));--mdc-radio-unselected-focus-icon-color: hsl(var(--input));--mdc-radio-unselected-hover-icon-color: hsl(var(--input));--mdc-radio-unselected-pressed-icon-color: hsl(var(--input));--mat-radio-ripple-color: transparent;--mat-radio-checked-ripple-color: transparent}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background:before,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-ripple,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-focus-indicator,:host ::ng-deep .mat-mdc-radio-button .mat-ripple{display:none}:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-touch-target{display:none}:host ::ng-deep .mat-mdc-radio-button .mdc-radio{padding:0;margin:0;flex:0 0 1rem;width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control{width:1rem;height:1rem;top:0;left:0}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background{width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-radio-button .mdc-label{padding:0;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2576
+ }
2577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RadioGroupComponent, decorators: [{
2578
+ type: Component,
2579
+ args: [{ selector: 'ui-radio-group', imports: [MatRadioGroup], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RadioGroupComponent), multi: true }], template: `
2580
+ <mat-radio-group
2581
+ #ref
2582
+ [class]="classes()"
2583
+ [value]="value()"
2584
+ [disabled]="disabled()"
2585
+ [name]="name()"
2586
+ (change)="handleChange($event)">
2587
+ <ng-content />
2588
+ </mat-radio-group>
2589
+ `, styles: [":host{display:block}:host ::ng-deep .mat-mdc-radio-button{--mdc-radio-state-layer-size: 1rem;--mdc-radio-selected-icon-color: hsl(var(--primary));--mdc-radio-selected-focus-icon-color: hsl(var(--primary));--mdc-radio-selected-hover-icon-color: hsl(var(--primary));--mdc-radio-selected-pressed-icon-color: hsl(var(--primary));--mdc-radio-unselected-icon-color: hsl(var(--input));--mdc-radio-unselected-focus-icon-color: hsl(var(--input));--mdc-radio-unselected-hover-icon-color: hsl(var(--input));--mdc-radio-unselected-pressed-icon-color: hsl(var(--input));--mat-radio-ripple-color: transparent;--mat-radio-checked-ripple-color: transparent}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background:before,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-ripple,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-focus-indicator,:host ::ng-deep .mat-mdc-radio-button .mat-ripple{display:none}:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-touch-target{display:none}:host ::ng-deep .mat-mdc-radio-button .mdc-radio{padding:0;margin:0;flex:0 0 1rem;width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control{width:1rem;height:1rem;top:0;left:0}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background{width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-radio-button .mdc-label{padding:0;cursor:pointer}\n"] }]
2590
+ }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], ref: [{ type: i0.ViewChild, args: ['ref', { isSignal: true }] }] } });
2591
+ class RadioComponent {
2592
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2593
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
2594
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2595
+ classes = computed(() => cn('ui-radio', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2596
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2597
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: RadioComponent, isStandalone: true, selector: "ui-radio", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
2598
+ <mat-radio-button disableRipple [class]="classes()" [value]="value()" [disabled]="disabled()">
2599
+ <ng-content />
2600
+ </mat-radio-button>
2601
+ `, isInline: true, styles: [":host{display:block}:host ::ng-deep .mat-mdc-radio-button{--mdc-radio-state-layer-size: 1rem;--mdc-radio-selected-icon-color: hsl(var(--primary));--mdc-radio-selected-focus-icon-color: hsl(var(--primary));--mdc-radio-selected-hover-icon-color: hsl(var(--primary));--mdc-radio-selected-pressed-icon-color: hsl(var(--primary));--mdc-radio-unselected-icon-color: hsl(var(--input));--mdc-radio-unselected-focus-icon-color: hsl(var(--input));--mdc-radio-unselected-hover-icon-color: hsl(var(--input));--mdc-radio-unselected-pressed-icon-color: hsl(var(--input));--mat-radio-ripple-color: transparent;--mat-radio-checked-ripple-color: transparent}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background:before,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-ripple,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-focus-indicator,:host ::ng-deep .mat-mdc-radio-button .mat-ripple{display:none}:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-touch-target{display:none}:host ::ng-deep .mat-mdc-radio-button .mdc-radio{padding:0;margin:0;flex:0 0 1rem;width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control{width:1rem;height:1rem;top:0;left:0}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background{width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-radio-button .mdc-label{padding:0;cursor:pointer}\n"], dependencies: [{ kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2602
+ }
2603
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RadioComponent, decorators: [{
2604
+ type: Component,
2605
+ args: [{ selector: 'ui-radio', imports: [MatRadioButton], changeDetection: ChangeDetectionStrategy.OnPush, template: `
2606
+ <mat-radio-button disableRipple [class]="classes()" [value]="value()" [disabled]="disabled()">
2607
+ <ng-content />
2608
+ </mat-radio-button>
2609
+ `, styles: [":host{display:block}:host ::ng-deep .mat-mdc-radio-button{--mdc-radio-state-layer-size: 1rem;--mdc-radio-selected-icon-color: hsl(var(--primary));--mdc-radio-selected-focus-icon-color: hsl(var(--primary));--mdc-radio-selected-hover-icon-color: hsl(var(--primary));--mdc-radio-selected-pressed-icon-color: hsl(var(--primary));--mdc-radio-unselected-icon-color: hsl(var(--input));--mdc-radio-unselected-focus-icon-color: hsl(var(--input));--mdc-radio-unselected-hover-icon-color: hsl(var(--input));--mdc-radio-unselected-pressed-icon-color: hsl(var(--input));--mat-radio-ripple-color: transparent;--mat-radio-checked-ripple-color: transparent}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background:before,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-ripple,:host ::ng-deep .mat-mdc-radio-button .mat-mdc-focus-indicator,:host ::ng-deep .mat-mdc-radio-button .mat-ripple{display:none}:host ::ng-deep .mat-mdc-radio-button .mat-mdc-radio-touch-target{display:none}:host ::ng-deep .mat-mdc-radio-button .mdc-radio{padding:0;margin:0;flex:0 0 1rem;width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control{width:1rem;height:1rem;top:0;left:0}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__background{width:1rem;height:1rem}:host ::ng-deep .mat-mdc-radio-button .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-radio-button .mdc-label{padding:0;cursor:pointer}\n"] }]
2610
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2611
+
2612
+ /**
2613
+ * Lightweight scroll area using native scrollbars styled via CSS.
2614
+ * Fully accessible — real scrolling, keyboard, wheel, momentum.
2615
+ */
2616
+ class ScrollAreaComponent {
2617
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2618
+ viewportClass = input('', ...(ngDevMode ? [{ debugName: "viewportClass" }] : /* istanbul ignore next */ []));
2619
+ classes = computed(() => cn('relative overflow-hidden', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2620
+ viewportClasses = computed(() => cn('ui-scroll-area-viewport h-full w-full', this.viewportClass()), ...(ngDevMode ? [{ debugName: "viewportClasses" }] : /* istanbul ignore next */ []));
2621
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ScrollAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2622
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: ScrollAreaComponent, isStandalone: true, selector: "ui-scroll-area", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, viewportClass: { classPropertyName: "viewportClass", publicName: "viewportClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<div [class]="viewportClasses()"><ng-content /></div>`, isInline: true, styles: [":host{display:block;overflow:hidden;position:relative}.ui-scroll-area-viewport{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--tw-scrollbar-thumb, hsl(var(--border))) var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar{width:10px;height:10px}.ui-scroll-area-viewport::-webkit-scrollbar-track{background:var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:var(--tw-scrollbar-thumb, hsl(var(--border)));border:var(--border-width) solid transparent;background-clip:padding-box;border-radius:var(--radius-lg)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb:hover{background:var(--ui-scrollbar-thumb-hover, var(--tw-scrollbar-thumb, hsl(var(--muted-foreground))));background-clip:padding-box}@media(forced-colors:active){.ui-scroll-area-viewport{scrollbar-width:auto;scrollbar-color:auto}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:CanvasText;border-color:transparent}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2623
+ }
2624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ScrollAreaComponent, decorators: [{
2625
+ type: Component,
2626
+ args: [{ selector: 'ui-scroll-area', changeDetection: ChangeDetectionStrategy.OnPush, host: {
2627
+ '[class]': 'classes()',
2628
+ }, template: `<div [class]="viewportClasses()"><ng-content /></div>`, styles: [":host{display:block;overflow:hidden;position:relative}.ui-scroll-area-viewport{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--tw-scrollbar-thumb, hsl(var(--border))) var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar{width:10px;height:10px}.ui-scroll-area-viewport::-webkit-scrollbar-track{background:var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:var(--tw-scrollbar-thumb, hsl(var(--border)));border:var(--border-width) solid transparent;background-clip:padding-box;border-radius:var(--radius-lg)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb:hover{background:var(--ui-scrollbar-thumb-hover, var(--tw-scrollbar-thumb, hsl(var(--muted-foreground))));background-clip:padding-box}@media(forced-colors:active){.ui-scroll-area-viewport{scrollbar-width:auto;scrollbar-color:auto}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:CanvasText;border-color:transparent}}\n"] }]
2629
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], viewportClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportClass", required: false }] }] } });
2630
+
2631
+ class SelectComponent {
2632
+ placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
2633
+ multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
2634
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
2635
+ ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
2636
+ ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
2637
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2638
+ valueChange = output();
2639
+ openedChange = output();
2640
+ ref = viewChild.required('ref');
2641
+ value = signal(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2642
+ disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
2643
+ classes = computed(() => cn('ui-select-field w-full', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2644
+ onChange = () => { };
2645
+ onTouched = () => { };
2646
+ handleChange(e) {
2647
+ this.value.set(e.value);
2648
+ this.onChange(e.value);
2649
+ this.onTouched();
2650
+ this.valueChange.emit(e.value);
2651
+ }
2652
+ open() {
2653
+ this.ref().open();
2654
+ }
2655
+ close() {
2656
+ this.ref().close();
2657
+ }
2658
+ focus() {
2659
+ this.ref().focus();
2660
+ }
2661
+ writeValue(v) {
2662
+ this.value.set(v);
2663
+ }
2664
+ registerOnChange(fn) {
2665
+ this.onChange = fn;
2666
+ }
2667
+ registerOnTouched(fn) {
2668
+ this.onTouched = fn;
2669
+ }
2670
+ setDisabledState(d) {
2671
+ this.disabled.set(d);
2672
+ }
2673
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2674
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: SelectComponent, isStandalone: true, selector: "ui-select", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", openedChange: "openedChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SelectComponent), multi: true }], viewQueries: [{ propertyName: "ref", first: true, predicate: ["ref"], descendants: true, isSignal: true }], ngImport: i0, template: `
2675
+ <mat-form-field [class]="classes()" subscriptSizing="dynamic">
2676
+ <mat-select
2677
+ #ref
2678
+ disableRipple
2679
+ panelClass="ui-select-panel"
2680
+ [value]="value()"
2681
+ [disabled]="disabled()"
2682
+ [multiple]="multiple()"
2683
+ [placeholder]="placeholder()"
2684
+ [required]="required()"
2685
+ [attr.aria-label]="ariaLabel()"
2686
+ [attr.aria-labelledby]="ariaLabelledby()"
2687
+ (selectionChange)="handleChange($event)"
2688
+ (openedChange)="openedChange.emit($event)">
2689
+ <ng-content />
2690
+ </mat-select>
2691
+ </mat-form-field>
2692
+ `, isInline: true, styles: [":host{display:block;width:100%}:host ::ng-deep .mat-mdc-form-field{--mat-form-field-container-height: 2.25rem;--mat-form-field-container-vertical-padding: 0;--mat-form-field-filled-with-label-container-padding-top: 0;--mat-form-field-filled-with-label-container-padding-bottom: 0;--mdc-outlined-text-field-container-shape: calc(var(--radius) - .125rem);--mdc-outlined-text-field-outline-color: hsl(var(--input));--mdc-outlined-text-field-hover-outline-color: hsl(var(--input));--mdc-outlined-text-field-focus-outline-color: hsl(var(--ring));--mdc-outlined-text-field-input-text-color: hsl(var(--foreground));--mdc-outlined-text-field-label-text-color: hsl(var(--muted-foreground));--mdc-outlined-text-field-hover-label-text-color: hsl(var(--muted-foreground));--mdc-outlined-text-field-focus-label-text-color: hsl(var(--muted-foreground));--mdc-outlined-text-field-disabled-outline-color: hsl(var(--input) / .5);--mdc-outlined-text-field-disabled-input-text-color: hsl(var(--muted-foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);width:100%}:host ::ng-deep .mat-mdc-text-field-wrapper{background:transparent;padding:0 .75rem}:host ::ng-deep .mat-mdc-form-field-infix{min-height:2.25rem;padding:.5rem 0;width:auto}:host ::ng-deep .mat-mdc-form-field-subscript-wrapper{display:none}:host ::ng-deep .mdc-floating-label,:host ::ng-deep .mat-mdc-floating-label,:host ::ng-deep .mdc-notched-outline__notch .mdc-floating-label{display:none}:host ::ng-deep .mdc-notched-outline__notch{padding:0;border-left:none;border-right:none}:host ::ng-deep .mat-mdc-select-value{color:hsl(var(--foreground))}:host ::ng-deep .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}:host ::ng-deep .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}\n"], dependencies: [{ kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2693
+ }
2694
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SelectComponent, decorators: [{
2695
+ type: Component,
2696
+ args: [{ selector: 'ui-select', imports: [MatFormField, MatSelect], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SelectComponent), multi: true }], template: `
2697
+ <mat-form-field [class]="classes()" subscriptSizing="dynamic">
2698
+ <mat-select
2699
+ #ref
2700
+ disableRipple
2701
+ panelClass="ui-select-panel"
2702
+ [value]="value()"
2703
+ [disabled]="disabled()"
2704
+ [multiple]="multiple()"
2705
+ [placeholder]="placeholder()"
2706
+ [required]="required()"
2707
+ [attr.aria-label]="ariaLabel()"
2708
+ [attr.aria-labelledby]="ariaLabelledby()"
2709
+ (selectionChange)="handleChange($event)"
2710
+ (openedChange)="openedChange.emit($event)">
2711
+ <ng-content />
2712
+ </mat-select>
2713
+ </mat-form-field>
2714
+ `, styles: [":host{display:block;width:100%}:host ::ng-deep .mat-mdc-form-field{--mat-form-field-container-height: 2.25rem;--mat-form-field-container-vertical-padding: 0;--mat-form-field-filled-with-label-container-padding-top: 0;--mat-form-field-filled-with-label-container-padding-bottom: 0;--mdc-outlined-text-field-container-shape: calc(var(--radius) - .125rem);--mdc-outlined-text-field-outline-color: hsl(var(--input));--mdc-outlined-text-field-hover-outline-color: hsl(var(--input));--mdc-outlined-text-field-focus-outline-color: hsl(var(--ring));--mdc-outlined-text-field-input-text-color: hsl(var(--foreground));--mdc-outlined-text-field-label-text-color: hsl(var(--muted-foreground));--mdc-outlined-text-field-hover-label-text-color: hsl(var(--muted-foreground));--mdc-outlined-text-field-focus-label-text-color: hsl(var(--muted-foreground));--mdc-outlined-text-field-disabled-outline-color: hsl(var(--input) / .5);--mdc-outlined-text-field-disabled-input-text-color: hsl(var(--muted-foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);width:100%}:host ::ng-deep .mat-mdc-text-field-wrapper{background:transparent;padding:0 .75rem}:host ::ng-deep .mat-mdc-form-field-infix{min-height:2.25rem;padding:.5rem 0;width:auto}:host ::ng-deep .mat-mdc-form-field-subscript-wrapper{display:none}:host ::ng-deep .mdc-floating-label,:host ::ng-deep .mat-mdc-floating-label,:host ::ng-deep .mdc-notched-outline__notch .mdc-floating-label{display:none}:host ::ng-deep .mdc-notched-outline__notch{padding:0;border-left:none;border-right:none}:host ::ng-deep .mat-mdc-select-value{color:hsl(var(--foreground))}:host ::ng-deep .mat-mdc-select-placeholder{color:hsl(var(--muted-foreground))}:host ::ng-deep .mat-mdc-select-arrow{color:hsl(var(--muted-foreground))}\n"] }]
2715
+ }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }], ref: [{ type: i0.ViewChild, args: ['ref', { isSignal: true }] }] } });
2716
+
2717
+ /**
2718
+ * Option for `<ui-select>`. Wraps `mat-option` so the underlying `mat-select`
2719
+ * can still discover it via `@ContentChildren(MatOption, { descendants: true })`.
2720
+ */
2721
+ class OptionComponent {
2722
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2723
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
2724
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2725
+ classes = computed(() => cn('contents', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2726
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2727
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: OptionComponent, isStandalone: true, selector: "ui-option", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `
2728
+ <mat-option [value]="value()" [disabled]="disabled()">
2729
+ <ng-content />
2730
+ </mat-option>
2731
+ `, isInline: true, dependencies: [{ kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2732
+ }
2733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OptionComponent, decorators: [{
2734
+ type: Component,
2735
+ args: [{
2736
+ selector: 'ui-option',
2737
+ imports: [MatOption],
2738
+ changeDetection: ChangeDetectionStrategy.OnPush,
2739
+ host: { '[class]': 'classes()' },
2740
+ template: `
2741
+ <mat-option [value]="value()" [disabled]="disabled()">
2742
+ <ng-content />
2743
+ </mat-option>
2744
+ `,
2745
+ }]
2746
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2747
+
2748
+ class SeparatorComponent {
2749
+ orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
2750
+ decorative = input(true, ...(ngDevMode ? [{ debugName: "decorative" }] : /* istanbul ignore next */ []));
2751
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2752
+ classes = computed(() => cn('shrink-0 bg-border', this.orientation() === 'horizontal' ? 'h-px w-full' : 'h-full w-px', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2753
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2754
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SeparatorComponent, isStandalone: true, selector: "ui-separator", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "decorative() ? \"none\" : \"separator\"", "attr.aria-orientation": "decorative() ? null : orientation()", "attr.data-orientation": "orientation()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2755
+ }
2756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SeparatorComponent, decorators: [{
2757
+ type: Component,
2758
+ args: [{
2759
+ selector: 'ui-separator',
2760
+ changeDetection: ChangeDetectionStrategy.OnPush,
2761
+ host: {
2762
+ '[class]': 'classes()',
2763
+ '[attr.role]': 'decorative() ? "none" : "separator"',
2764
+ '[attr.aria-orientation]': 'decorative() ? null : orientation()',
2765
+ '[attr.data-orientation]': 'orientation()',
2766
+ },
2767
+ template: '',
2768
+ }]
2769
+ }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2770
+
2771
+ const SIDE_BASE = {
2772
+ top: 'inset-x-0 top-0 border-b',
2773
+ bottom: 'inset-x-0 bottom-0 border-t',
2774
+ left: 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
2775
+ right: 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',
2776
+ };
2777
+ const SIDE_ENTER_FROM = {
2778
+ top: 'translateY(-100%)',
2779
+ bottom: 'translateY(100%)',
2780
+ left: 'translateX(-100%)',
2781
+ right: 'translateX(100%)',
2782
+ };
2783
+ class SheetComponent {
2784
+ overlay = inject(Overlay);
2785
+ vcr = inject(ViewContainerRef);
2786
+ trapFactory = inject(FocusTrapFactory);
2787
+ doc = inject(DOCUMENT);
2788
+ destroyRef = inject(DestroyRef);
2789
+ open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
2790
+ side = input('right', ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
2791
+ closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
2792
+ closeOnBackdropClick = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []));
2793
+ labelledBy = input(null, { ...(ngDevMode ? { debugName: "labelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
2794
+ describedBy = input(null, { ...(ngDevMode ? { debugName: "describedBy" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
2795
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2796
+ openedChange = output();
2797
+ tpl = viewChild.required('tpl');
2798
+ overlayRef = null;
2799
+ focusTrap = null;
2800
+ previousFocus = null;
2801
+ surfaceClasses = computed(() => cn('gap-4 p-6 flex flex-col', SIDE_BASE[this.side()], this.class()), ...(ngDevMode ? [{ debugName: "surfaceClasses" }] : /* istanbul ignore next */ []));
2802
+ enterFrom = computed(() => SIDE_ENTER_FROM[this.side()], ...(ngDevMode ? [{ debugName: "enterFrom" }] : /* istanbul ignore next */ []));
2803
+ constructor() {
2804
+ effect(() => {
2805
+ this.open() ? this.attach() : this.detach();
2806
+ });
2807
+ }
2808
+ attach() {
2809
+ if (this.overlayRef)
2810
+ return;
2811
+ this.previousFocus = this.doc.activeElement;
2812
+ this.overlayRef = this.overlay.create({
2813
+ hasBackdrop: true,
2814
+ backdropClass: 'ui-dialog-backdrop',
2815
+ panelClass: 'ui-sheet-panel',
2816
+ scrollStrategy: this.overlay.scrollStrategies.block(),
2817
+ positionStrategy: this.overlay.position().global(),
2818
+ });
2819
+ const portal = new TemplatePortal(this.tpl(), this.vcr);
2820
+ this.overlayRef.attach(portal);
2821
+ this.focusTrap = this.trapFactory.create(this.overlayRef.hostElement);
2822
+ this.focusTrap.focusInitialElementWhenReady();
2823
+ if (this.closeOnBackdropClick()) {
2824
+ this.overlayRef
2825
+ .backdropClick()
2826
+ .pipe(takeUntilDestroyed(this.destroyRef))
2827
+ .subscribe(() => this.open.set(false));
2828
+ }
2829
+ this.overlayRef
2830
+ .keydownEvents()
2831
+ .pipe(takeUntilDestroyed(this.destroyRef), filter((e) => e.key === 'Escape' && this.closeOnEscape()))
2832
+ .subscribe((e) => {
2833
+ e.preventDefault();
2834
+ this.open.set(false);
2835
+ });
2836
+ this.openedChange.emit(true);
2837
+ }
2838
+ detach() {
2839
+ if (!this.overlayRef)
2840
+ return;
2841
+ this.focusTrap?.destroy();
2842
+ this.focusTrap = null;
2843
+ this.overlayRef.dispose();
2844
+ this.overlayRef = null;
2845
+ this.previousFocus?.focus?.();
2846
+ this.openedChange.emit(false);
2847
+ }
2848
+ close() {
2849
+ this.open.set(false);
2850
+ }
2851
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2852
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: SheetComponent, isStandalone: true, selector: "ui-sheet", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, labelledBy: { classPropertyName: "labelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, describedBy: { classPropertyName: "describedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", openedChange: "openedChange" }, viewQueries: [{ propertyName: "tpl", first: true, predicate: ["tpl"], descendants: true, isSignal: true }], ngImport: i0, template: `
2853
+ <ng-template #tpl>
2854
+ <div
2855
+ class="ui-sheet-surface fixed z-50 bg-background shadow-lg transition ease-in-out"
2856
+ role="dialog"
2857
+ aria-modal="true"
2858
+ [attr.aria-labelledby]="labelledBy()"
2859
+ [attr.aria-describedby]="describedBy()"
2860
+ [class]="surfaceClasses()"
2861
+ [style.--ui-sheet-from]="enterFrom()">
2862
+ <ng-content />
2863
+ </div>
2864
+ </ng-template>
2865
+ `, isInline: true, styles: [".ui-sheet-surface{animation:ui-sheet-in .3s cubic-bezier(.2,0,0,1)}@keyframes ui-sheet-in{0%{transform:var(--ui-sheet-from)}to{transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ui-sheet-surface{animation-duration:0ms}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2866
+ }
2867
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetComponent, decorators: [{
2868
+ type: Component,
2869
+ args: [{ selector: 'ui-sheet', changeDetection: ChangeDetectionStrategy.OnPush, template: `
2870
+ <ng-template #tpl>
2871
+ <div
2872
+ class="ui-sheet-surface fixed z-50 bg-background shadow-lg transition ease-in-out"
2873
+ role="dialog"
2874
+ aria-modal="true"
2875
+ [attr.aria-labelledby]="labelledBy()"
2876
+ [attr.aria-describedby]="describedBy()"
2877
+ [class]="surfaceClasses()"
2878
+ [style.--ui-sheet-from]="enterFrom()">
2879
+ <ng-content />
2880
+ </div>
2881
+ </ng-template>
2882
+ `, styles: [".ui-sheet-surface{animation:ui-sheet-in .3s cubic-bezier(.2,0,0,1)}@keyframes ui-sheet-in{0%{transform:var(--ui-sheet-from)}to{transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ui-sheet-surface{animation-duration:0ms}}\n"] }]
2883
+ }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnBackdropClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdropClick", required: false }] }], labelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }], tpl: [{ type: i0.ViewChild, args: ['tpl', { isSignal: true }] }] } });
2884
+
2885
+ class SheetHeaderComponent {
2886
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2887
+ classes = computed(() => cn('flex flex-col gap-2 text-center sm:text-left', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2888
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2889
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SheetHeaderComponent, isStandalone: true, selector: "ui-sheet-header", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2890
+ }
2891
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetHeaderComponent, decorators: [{
2892
+ type: Component,
2893
+ args: [{
2894
+ selector: 'ui-sheet-header',
2895
+ changeDetection: ChangeDetectionStrategy.OnPush,
2896
+ host: { '[class]': 'classes()' },
2897
+ template: `<ng-content />`,
2898
+ }]
2899
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2900
+ class SheetTitleComponent {
2901
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2902
+ classes = computed(() => cn('text-lg font-semibold text-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2903
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2904
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SheetTitleComponent, isStandalone: true, selector: "ui-sheet-title, h2[ui-sheet-title]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2905
+ }
2906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetTitleComponent, decorators: [{
2907
+ type: Component,
2908
+ args: [{
2909
+ selector: 'ui-sheet-title, h2[ui-sheet-title]',
2910
+ changeDetection: ChangeDetectionStrategy.OnPush,
2911
+ host: { '[class]': 'classes()' },
2912
+ template: `<ng-content />`,
2913
+ }]
2914
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2915
+ class SheetDescriptionComponent {
2916
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2917
+ classes = computed(() => cn('text-sm text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2918
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2919
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SheetDescriptionComponent, isStandalone: true, selector: "ui-sheet-description, p[ui-sheet-description]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2920
+ }
2921
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetDescriptionComponent, decorators: [{
2922
+ type: Component,
2923
+ args: [{
2924
+ selector: 'ui-sheet-description, p[ui-sheet-description]',
2925
+ changeDetection: ChangeDetectionStrategy.OnPush,
2926
+ host: { '[class]': 'classes()' },
2927
+ template: `<ng-content />`,
2928
+ }]
2929
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2930
+ class SheetContentComponent {
2931
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2932
+ classes = computed(() => cn('flex-1 overflow-auto', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2933
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2934
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SheetContentComponent, isStandalone: true, selector: "ui-sheet-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2935
+ }
2936
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetContentComponent, decorators: [{
2937
+ type: Component,
2938
+ args: [{
2939
+ selector: 'ui-sheet-content',
2940
+ changeDetection: ChangeDetectionStrategy.OnPush,
2941
+ host: { '[class]': 'classes()' },
2942
+ template: `<ng-content />`,
2943
+ }]
2944
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2945
+ class SheetFooterComponent {
2946
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2947
+ classes = computed(() => cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2948
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2949
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SheetFooterComponent, isStandalone: true, selector: "ui-sheet-footer", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2950
+ }
2951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SheetFooterComponent, decorators: [{
2952
+ type: Component,
2953
+ args: [{
2954
+ selector: 'ui-sheet-footer',
2955
+ changeDetection: ChangeDetectionStrategy.OnPush,
2956
+ host: { '[class]': 'classes()' },
2957
+ template: `<ng-content />`,
2958
+ }]
2959
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2960
+
2961
+ class SkeletonComponent {
2962
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2963
+ classes = computed(() => cn('animate-pulse rounded-md bg-muted', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2964
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2965
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SkeletonComponent, isStandalone: true, selector: "ui-skeleton", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.aria-hidden": "\"true\"" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2966
+ }
2967
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SkeletonComponent, decorators: [{
2968
+ type: Component,
2969
+ args: [{
2970
+ selector: 'ui-skeleton',
2971
+ changeDetection: ChangeDetectionStrategy.OnPush,
2972
+ host: {
2973
+ '[class]': 'classes()',
2974
+ '[attr.aria-hidden]': '"true"',
2975
+ },
2976
+ template: '',
2977
+ }]
2978
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2979
+
2980
+ /**
2981
+ * Styled native range input. Works with `ngModel` / `FormControl` via
2982
+ * Angular's built-in `RangeValueAccessor`. Keyboard + ARIA handled by the browser.
2983
+ */
2984
+ class SliderComponent {
2985
+ el = inject(ElementRef);
2986
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
2987
+ classes = computed(() => cn('ui-slider relative w-full appearance-none bg-transparent', 'focus-visible:outline-none', 'disabled:pointer-events-none disabled:opacity-50', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
2988
+ focus() {
2989
+ this.el.nativeElement.focus();
2990
+ }
2991
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2992
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: SliderComponent, isStandalone: true, selector: "input[type=range][ui-slider]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, styles: [":host.ui-slider{height:1.25rem;cursor:pointer}:host.ui-slider::-webkit-slider-runnable-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-moz-range-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-.25rem;width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.ui-slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2993
+ }
2994
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SliderComponent, decorators: [{
2995
+ type: Component,
2996
+ args: [{ selector: 'input[type=range][ui-slider]', changeDetection: ChangeDetectionStrategy.OnPush, host: { '[class]': 'classes()' }, template: '', styles: [":host.ui-slider{height:1.25rem;cursor:pointer}:host.ui-slider::-webkit-slider-runnable-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-moz-range-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-.25rem;width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.ui-slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"] }]
2997
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2998
+
2999
+ /**
3000
+ * Switch — shadcn-styled wrapper around `mat-slide-toggle`.
3001
+ */
3002
+ class SwitchComponent {
3003
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
3004
+ ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
3005
+ ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
3006
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3007
+ checkedChange = output();
3008
+ ref = viewChild.required('ref');
3009
+ checked = signal(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
3010
+ disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
3011
+ classes = computed(() => cn('ui-switch', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3012
+ onChange = () => { };
3013
+ onTouched = () => { };
3014
+ handleChange(e) {
3015
+ this.checked.set(e.checked);
3016
+ this.onChange(e.checked);
3017
+ this.onTouched();
3018
+ this.checkedChange.emit(e.checked);
3019
+ }
3020
+ focus() {
3021
+ this.ref().focus();
3022
+ }
3023
+ writeValue(v) {
3024
+ this.checked.set(!!v);
3025
+ }
3026
+ registerOnChange(fn) {
3027
+ this.onChange = fn;
3028
+ }
3029
+ registerOnTouched(fn) {
3030
+ this.onTouched = fn;
3031
+ }
3032
+ setDisabledState(d) {
3033
+ this.disabled.set(d);
3034
+ }
3035
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3036
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.13", type: SwitchComponent, isStandalone: true, selector: "ui-switch", inputs: { required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SwitchComponent), multi: true }], viewQueries: [{ propertyName: "ref", first: true, predicate: ["ref"], descendants: true, isSignal: true }], ngImport: i0, template: `
3037
+ <mat-slide-toggle
3038
+ #ref
3039
+ hideIcon
3040
+ disableRipple
3041
+ [class]="classes()"
3042
+ [checked]="checked()"
3043
+ [disabled]="disabled()"
3044
+ [required]="required()"
3045
+ [attr.aria-label]="ariaLabel()"
3046
+ [attr.aria-labelledby]="ariaLabelledby()"
3047
+ (change)="handleChange($event)">
3048
+ <ng-content />
3049
+ </mat-slide-toggle>
3050
+ `, isInline: true, styles: [":host{display:inline-flex}:host ::ng-deep .mat-mdc-slide-toggle{--mdc-switch-track-width: 2rem;--mdc-switch-track-height: 1.15rem;--mdc-switch-track-shape: 9999px;--mdc-switch-handle-shape: 9999px;--mdc-switch-handle-width: .875rem;--mdc-switch-handle-height: .875rem;--mdc-switch-state-layer-size: 0;--mdc-switch-selected-track-color: hsl(var(--primary));--mdc-switch-selected-focus-track-color: hsl(var(--primary));--mdc-switch-selected-hover-track-color: hsl(var(--primary));--mdc-switch-selected-pressed-track-color: hsl(var(--primary));--mdc-switch-unselected-track-color: hsl(var(--input));--mdc-switch-unselected-focus-track-color: hsl(var(--input));--mdc-switch-unselected-hover-track-color: hsl(var(--input));--mdc-switch-unselected-pressed-track-color: hsl(var(--input));--mdc-switch-selected-handle-color: hsl(var(--primary-foreground));--mdc-switch-selected-focus-handle-color: hsl(var(--primary-foreground));--mdc-switch-selected-hover-handle-color: hsl(var(--primary-foreground));--mdc-switch-selected-pressed-handle-color: hsl(var(--primary-foreground));--mdc-switch-unselected-handle-color: hsl(var(--background));--mdc-switch-unselected-focus-handle-color: hsl(var(--background));--mdc-switch-unselected-hover-handle-color: hsl(var(--background));--mdc-switch-unselected-pressed-handle-color: hsl(var(--background));--mdc-switch-selected-icon-color: transparent;--mdc-switch-unselected-icon-color: transparent}:host ::ng-deep .mat-mdc-slide-toggle .mdc-switch__ripple,:host ::ng-deep .mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,:host ::ng-deep .mat-mdc-slide-toggle .mat-mdc-focus-indicator{display:none}:host ::ng-deep .mat-mdc-slide-toggle .mdc-switch__icons{display:none}:host ::ng-deep .mat-mdc-slide-toggle .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-slide-toggle .mdc-label{padding:0;cursor:pointer}\n"], dependencies: [{ kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3051
+ }
3052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SwitchComponent, decorators: [{
3053
+ type: Component,
3054
+ args: [{ selector: 'ui-switch', imports: [MatSlideToggle], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SwitchComponent), multi: true }], template: `
3055
+ <mat-slide-toggle
3056
+ #ref
3057
+ hideIcon
3058
+ disableRipple
3059
+ [class]="classes()"
3060
+ [checked]="checked()"
3061
+ [disabled]="disabled()"
3062
+ [required]="required()"
3063
+ [attr.aria-label]="ariaLabel()"
3064
+ [attr.aria-labelledby]="ariaLabelledby()"
3065
+ (change)="handleChange($event)">
3066
+ <ng-content />
3067
+ </mat-slide-toggle>
3068
+ `, styles: [":host{display:inline-flex}:host ::ng-deep .mat-mdc-slide-toggle{--mdc-switch-track-width: 2rem;--mdc-switch-track-height: 1.15rem;--mdc-switch-track-shape: 9999px;--mdc-switch-handle-shape: 9999px;--mdc-switch-handle-width: .875rem;--mdc-switch-handle-height: .875rem;--mdc-switch-state-layer-size: 0;--mdc-switch-selected-track-color: hsl(var(--primary));--mdc-switch-selected-focus-track-color: hsl(var(--primary));--mdc-switch-selected-hover-track-color: hsl(var(--primary));--mdc-switch-selected-pressed-track-color: hsl(var(--primary));--mdc-switch-unselected-track-color: hsl(var(--input));--mdc-switch-unselected-focus-track-color: hsl(var(--input));--mdc-switch-unselected-hover-track-color: hsl(var(--input));--mdc-switch-unselected-pressed-track-color: hsl(var(--input));--mdc-switch-selected-handle-color: hsl(var(--primary-foreground));--mdc-switch-selected-focus-handle-color: hsl(var(--primary-foreground));--mdc-switch-selected-hover-handle-color: hsl(var(--primary-foreground));--mdc-switch-selected-pressed-handle-color: hsl(var(--primary-foreground));--mdc-switch-unselected-handle-color: hsl(var(--background));--mdc-switch-unselected-focus-handle-color: hsl(var(--background));--mdc-switch-unselected-hover-handle-color: hsl(var(--background));--mdc-switch-unselected-pressed-handle-color: hsl(var(--background));--mdc-switch-selected-icon-color: transparent;--mdc-switch-unselected-icon-color: transparent}:host ::ng-deep .mat-mdc-slide-toggle .mdc-switch__ripple,:host ::ng-deep .mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,:host ::ng-deep .mat-mdc-slide-toggle .mat-mdc-focus-indicator{display:none}:host ::ng-deep .mat-mdc-slide-toggle .mdc-switch__icons{display:none}:host ::ng-deep .mat-mdc-slide-toggle .mdc-form-field{gap:.5rem;color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}:host ::ng-deep .mat-mdc-slide-toggle .mdc-label{padding:0;cursor:pointer}\n"] }]
3069
+ }], propDecorators: { required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], checkedChange: [{ type: i0.Output, args: ["checkedChange"] }], ref: [{ type: i0.ViewChild, args: ['ref', { isSignal: true }] }] } });
3070
+
3071
+ class TableComponent {
3072
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3073
+ classes = computed(() => cn('w-full caption-bottom text-sm', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3074
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3075
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableComponent, isStandalone: true, selector: "ui-table", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "relative w-full overflow-auto block" }, ngImport: i0, template: `
3076
+ <table [class]="classes()">
3077
+ <ng-content />
3078
+ </table>
3079
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3080
+ }
3081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableComponent, decorators: [{
3082
+ type: Component,
3083
+ args: [{
3084
+ selector: 'ui-table',
3085
+ changeDetection: ChangeDetectionStrategy.OnPush,
3086
+ host: { class: 'relative w-full overflow-auto block' },
3087
+ template: `
3088
+ <table [class]="classes()">
3089
+ <ng-content />
3090
+ </table>
3091
+ `,
3092
+ }]
3093
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3094
+ class TableHeaderComponent {
3095
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3096
+ classes = computed(() => cn('[&_tr]:border-b', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3097
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3098
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableHeaderComponent, isStandalone: true, selector: "thead[ui-table-header]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3099
+ }
3100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableHeaderComponent, decorators: [{
3101
+ type: Component,
3102
+ args: [{
3103
+ selector: 'thead[ui-table-header]',
3104
+ changeDetection: ChangeDetectionStrategy.OnPush,
3105
+ host: { '[class]': 'classes()' },
3106
+ template: `<ng-content />`,
3107
+ }]
3108
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3109
+ class TableBodyComponent {
3110
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3111
+ classes = computed(() => cn('[&_tr:last-child]:border-0', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3112
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3113
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableBodyComponent, isStandalone: true, selector: "tbody[ui-table-body]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3114
+ }
3115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableBodyComponent, decorators: [{
3116
+ type: Component,
3117
+ args: [{
3118
+ selector: 'tbody[ui-table-body]',
3119
+ changeDetection: ChangeDetectionStrategy.OnPush,
3120
+ host: { '[class]': 'classes()' },
3121
+ template: `<ng-content />`,
3122
+ }]
3123
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3124
+ class TableFooterComponent {
3125
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3126
+ classes = computed(() => cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3127
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3128
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableFooterComponent, isStandalone: true, selector: "tfoot[ui-table-footer]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3129
+ }
3130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableFooterComponent, decorators: [{
3131
+ type: Component,
3132
+ args: [{
3133
+ selector: 'tfoot[ui-table-footer]',
3134
+ changeDetection: ChangeDetectionStrategy.OnPush,
3135
+ host: { '[class]': 'classes()' },
3136
+ template: `<ng-content />`,
3137
+ }]
3138
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3139
+ class TableRowComponent {
3140
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3141
+ classes = computed(() => cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3142
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3143
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableRowComponent, isStandalone: true, selector: "tr[ui-table-row]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3144
+ }
3145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableRowComponent, decorators: [{
3146
+ type: Component,
3147
+ args: [{
3148
+ selector: 'tr[ui-table-row]',
3149
+ changeDetection: ChangeDetectionStrategy.OnPush,
3150
+ host: { '[class]': 'classes()' },
3151
+ template: `<ng-content />`,
3152
+ }]
3153
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3154
+ class TableHeadComponent {
3155
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3156
+ classes = computed(() => cn('h-10 px-2 text-left align-middle font-medium text-muted-foreground', '[&:has([role=checkbox])]:pr-0', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3157
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableHeadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3158
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableHeadComponent, isStandalone: true, selector: "th[ui-table-head]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3159
+ }
3160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableHeadComponent, decorators: [{
3161
+ type: Component,
3162
+ args: [{
3163
+ selector: 'th[ui-table-head]',
3164
+ changeDetection: ChangeDetectionStrategy.OnPush,
3165
+ host: { '[class]': 'classes()' },
3166
+ template: `<ng-content />`,
3167
+ }]
3168
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3169
+ class TableCellComponent {
3170
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3171
+ classes = computed(() => cn('p-2 align-middle [&:has([role=checkbox])]:pr-0', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3172
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3173
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableCellComponent, isStandalone: true, selector: "td[ui-table-cell]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3174
+ }
3175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableCellComponent, decorators: [{
3176
+ type: Component,
3177
+ args: [{
3178
+ selector: 'td[ui-table-cell]',
3179
+ changeDetection: ChangeDetectionStrategy.OnPush,
3180
+ host: { '[class]': 'classes()' },
3181
+ template: `<ng-content />`,
3182
+ }]
3183
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3184
+ class TableCaptionComponent {
3185
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3186
+ classes = computed(() => cn('mt-4 text-sm text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3187
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableCaptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3188
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TableCaptionComponent, isStandalone: true, selector: "caption[ui-table-caption]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3189
+ }
3190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableCaptionComponent, decorators: [{
3191
+ type: Component,
3192
+ args: [{
3193
+ selector: 'caption[ui-table-caption]',
3194
+ changeDetection: ChangeDetectionStrategy.OnPush,
3195
+ host: { '[class]': 'classes()' },
3196
+ template: `<ng-content />`,
3197
+ }]
3198
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3199
+
3200
+ /**
3201
+ * Shared state for a tabs group. Children read the active value and register
3202
+ * themselves so the group can drive roving-tabindex keyboard navigation.
3203
+ */
3204
+ class TabsContextBase {
3205
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3206
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: TabsContextBase, isStandalone: true, ngImport: i0 });
3207
+ }
3208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsContextBase, decorators: [{
3209
+ type: Directive
3210
+ }] });
3211
+ class TabsComponent extends TabsContextBase {
3212
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
3213
+ orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
3214
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3215
+ triggers = new Map();
3216
+ classes = computed(() => cn(this.orientation() === 'vertical' ? 'flex gap-4' : 'block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3217
+ register(el, value) {
3218
+ this.triggers.set(el, value);
3219
+ if (this.value() == null)
3220
+ this.value.set(value);
3221
+ }
3222
+ unregister(el) {
3223
+ this.triggers.delete(el);
3224
+ }
3225
+ activate(value, focus = false) {
3226
+ this.value.set(value);
3227
+ if (focus) {
3228
+ for (const [el, v] of this.triggers)
3229
+ if (v === value)
3230
+ el.focus();
3231
+ }
3232
+ }
3233
+ focusNext(from, delta) {
3234
+ const list = [...this.triggers.keys()];
3235
+ const idx = list.indexOf(from);
3236
+ if (idx < 0 || list.length === 0)
3237
+ return;
3238
+ const next = list[(idx + delta + list.length) % list.length];
3239
+ const val = this.triggers.get(next);
3240
+ if (val)
3241
+ this.activate(val, true);
3242
+ }
3243
+ focusFirst() {
3244
+ const first = this.triggers.keys().next().value;
3245
+ const val = first ? this.triggers.get(first) : null;
3246
+ if (val)
3247
+ this.activate(val, true);
3248
+ }
3249
+ focusLast() {
3250
+ const list = [...this.triggers.keys()];
3251
+ const last = list[list.length - 1];
3252
+ const val = last ? this.triggers.get(last) : null;
3253
+ if (val)
3254
+ this.activate(val, true);
3255
+ }
3256
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3257
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TabsComponent, isStandalone: true, selector: "ui-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "classes()", "attr.data-orientation": "orientation()" } }, providers: [{ provide: TabsContextBase, useExisting: forwardRef(() => TabsComponent) }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3258
+ }
3259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsComponent, decorators: [{
3260
+ type: Component,
3261
+ args: [{
3262
+ selector: 'ui-tabs',
3263
+ changeDetection: ChangeDetectionStrategy.OnPush,
3264
+ providers: [{ provide: TabsContextBase, useExisting: forwardRef(() => TabsComponent) }],
3265
+ host: {
3266
+ '[class]': 'classes()',
3267
+ '[attr.data-orientation]': 'orientation()',
3268
+ },
3269
+ template: `<ng-content />`,
3270
+ }]
3271
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3272
+ class TabsListComponent {
3273
+ ctx = inject(TabsComponent);
3274
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3275
+ classes = computed(() => cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3276
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3277
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TabsListComponent, isStandalone: true, selector: "ui-tabs-list", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"tablist\"", "attr.aria-orientation": "ctx.orientation()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3278
+ }
3279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsListComponent, decorators: [{
3280
+ type: Component,
3281
+ args: [{
3282
+ selector: 'ui-tabs-list',
3283
+ changeDetection: ChangeDetectionStrategy.OnPush,
3284
+ host: {
3285
+ '[class]': 'classes()',
3286
+ '[attr.role]': '"tablist"',
3287
+ '[attr.aria-orientation]': 'ctx.orientation()',
3288
+ },
3289
+ template: `<ng-content />`,
3290
+ }]
3291
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3292
+ class TabsTriggerComponent {
3293
+ ctx = inject(TabsComponent);
3294
+ el = inject(ElementRef);
3295
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
3296
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
3297
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3298
+ selected = computed(() => this.ctx.value() === this.value(), ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
3299
+ classes = computed(() => cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium', 'ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', 'disabled:pointer-events-none disabled:opacity-50', 'data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3300
+ ngOnInit() {
3301
+ this.ctx.register(this.el.nativeElement, this.value());
3302
+ }
3303
+ ngOnDestroy() {
3304
+ this.ctx.unregister(this.el.nativeElement);
3305
+ }
3306
+ onClick() {
3307
+ if (this.disabled())
3308
+ return;
3309
+ this.ctx.activate(this.value());
3310
+ }
3311
+ onArrow(e, delta, axis) {
3312
+ if (this.ctx.orientation() !== axis)
3313
+ return;
3314
+ e.preventDefault();
3315
+ this.ctx.focusNext(this.el.nativeElement, delta);
3316
+ }
3317
+ onHome(e) {
3318
+ e.preventDefault();
3319
+ this.ctx.focusFirst();
3320
+ }
3321
+ onEnd(e) {
3322
+ e.preventDefault();
3323
+ this.ctx.focusLast();
3324
+ }
3325
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3326
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TabsTriggerComponent, isStandalone: true, selector: "button[ui-tabs-trigger]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "onClick()", "keydown.arrowRight": "onArrow($any($event), 1, \"horizontal\")", "keydown.arrowLeft": "onArrow($any($event), -1, \"horizontal\")", "keydown.arrowDown": "onArrow($any($event), 1, \"vertical\")", "keydown.arrowUp": "onArrow($any($event), -1, \"vertical\")", "keydown.home": "onHome($any($event))", "keydown.end": "onEnd($any($event))" }, properties: { "class": "classes()", "attr.role": "\"tab\"", "attr.aria-selected": "selected()", "attr.tabindex": "selected() ? 0 : -1", "attr.data-state": "selected() ? \"active\" : \"inactive\"", "disabled": "disabled() || null" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3327
+ }
3328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsTriggerComponent, decorators: [{
3329
+ type: Component,
3330
+ args: [{
3331
+ selector: 'button[ui-tabs-trigger]',
3332
+ changeDetection: ChangeDetectionStrategy.OnPush,
3333
+ host: {
3334
+ '[class]': 'classes()',
3335
+ type: 'button',
3336
+ '[attr.role]': '"tab"',
3337
+ '[attr.aria-selected]': 'selected()',
3338
+ '[attr.tabindex]': 'selected() ? 0 : -1',
3339
+ '[attr.data-state]': 'selected() ? "active" : "inactive"',
3340
+ '[disabled]': 'disabled() || null',
3341
+ '(click)': 'onClick()',
3342
+ '(keydown.arrowRight)': 'onArrow($any($event), 1, "horizontal")',
3343
+ '(keydown.arrowLeft)': 'onArrow($any($event), -1, "horizontal")',
3344
+ '(keydown.arrowDown)': 'onArrow($any($event), 1, "vertical")',
3345
+ '(keydown.arrowUp)': 'onArrow($any($event), -1, "vertical")',
3346
+ '(keydown.home)': 'onHome($any($event))',
3347
+ '(keydown.end)': 'onEnd($any($event))',
3348
+ },
3349
+ template: `<ng-content />`,
3350
+ }]
3351
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3352
+ class TabsContentComponent {
3353
+ ctx = inject(TabsComponent);
3354
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
3355
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3356
+ active = computed(() => this.ctx.value() === this.value(), ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
3357
+ classes = computed(() => cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3358
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3359
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: TabsContentComponent, isStandalone: true, selector: "ui-tabs-content", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tabindex": "0" }, properties: { "class": "classes()", "attr.role": "\"tabpanel\"", "attr.data-state": "active() ? \"active\" : \"inactive\"", "hidden": "!active()" } }, ngImport: i0, template: `@if (active()) {
3360
+ <ng-content />
3361
+ }`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3362
+ }
3363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TabsContentComponent, decorators: [{
3364
+ type: Component,
3365
+ args: [{
3366
+ selector: 'ui-tabs-content',
3367
+ changeDetection: ChangeDetectionStrategy.OnPush,
3368
+ host: {
3369
+ '[class]': 'classes()',
3370
+ '[attr.role]': '"tabpanel"',
3371
+ '[attr.data-state]': 'active() ? "active" : "inactive"',
3372
+ '[hidden]': '!active()',
3373
+ tabindex: '0',
3374
+ },
3375
+ template: `@if (active()) {
3376
+ <ng-content />
3377
+ }`,
3378
+ }]
3379
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3380
+
3381
+ class TextareaComponent {
3382
+ el = inject(ElementRef);
3383
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3384
+ classes = computed(() => cn([
3385
+ 'flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2',
3386
+ 'text-sm shadow-sm transition-colors',
3387
+ 'placeholder:text-muted-foreground',
3388
+ 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',
3389
+ 'disabled:cursor-not-allowed disabled:opacity-50',
3390
+ 'aria-[invalid=true]:border-destructive aria-[invalid=true]:focus-visible:ring-destructive',
3391
+ ].join(' '), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3392
+ focus() {
3393
+ this.el.nativeElement.focus();
3394
+ }
3395
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3396
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: TextareaComponent, isStandalone: true, selector: "textarea[ui-textarea]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3397
+ }
3398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TextareaComponent, decorators: [{
3399
+ type: Component,
3400
+ args: [{
3401
+ selector: 'textarea[ui-textarea]',
3402
+ changeDetection: ChangeDetectionStrategy.OnPush,
3403
+ host: { '[class]': 'classes()' },
3404
+ template: '',
3405
+ }]
3406
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3407
+
3408
+ /**
3409
+ * Thin, opinionated wrapper over MatSnackBar that applies shadcn styling
3410
+ * via `panelClass: ui-toast-panel` and variant data attributes.
3411
+ */
3412
+ class ToastService {
3413
+ snack = inject(MatSnackBar);
3414
+ show(options) {
3415
+ const message = options.title
3416
+ ? options.description
3417
+ ? `${options.title}\n${options.description}`
3418
+ : options.title
3419
+ : (options.description ?? '');
3420
+ const variant = options.variant ?? 'default';
3421
+ return this.snack.open(message, options.action ?? '', {
3422
+ duration: options.durationMs ?? 5000,
3423
+ horizontalPosition: options.horizontalPosition ?? 'end',
3424
+ verticalPosition: options.verticalPosition ?? 'bottom',
3425
+ panelClass: ['ui-toast-panel', `ui-toast-${variant}`],
3426
+ });
3427
+ }
3428
+ success(opts) {
3429
+ return this.show({ ...opts, variant: 'success' });
3430
+ }
3431
+ error(opts) {
3432
+ return this.show({ ...opts, variant: 'destructive' });
3433
+ }
3434
+ dismiss() {
3435
+ this.snack.dismiss();
3436
+ }
3437
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3438
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToastService, providedIn: 'root' });
3439
+ }
3440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToastService, decorators: [{
3441
+ type: Injectable,
3442
+ args: [{ providedIn: 'root' }]
3443
+ }] });
3444
+
3445
+ /**
3446
+ * Shadcn-styled tooltip directive. Thin wrapper around `matTooltip` that
3447
+ * forces the shadcn panel class and sensible defaults.
3448
+ *
3449
+ * @example
3450
+ * <button ui-button [uiTooltip]="'Save changes'" uiTooltipPosition="above">Save</button>
3451
+ */
3452
+ class TooltipDirective {
3453
+ tooltip = inject(MatTooltip, { host: true });
3454
+ uiTooltip = input('', ...(ngDevMode ? [{ debugName: "uiTooltip" }] : /* istanbul ignore next */ []));
3455
+ constructor() {
3456
+ this.tooltip.tooltipClass = 'ui-tooltip-panel';
3457
+ effect(() => {
3458
+ this.tooltip.message = this.uiTooltip();
3459
+ });
3460
+ }
3461
+ show() {
3462
+ this.tooltip.show();
3463
+ }
3464
+ hide() {
3465
+ this.tooltip.hide();
3466
+ }
3467
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3468
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: TooltipDirective, isStandalone: true, selector: "[uiTooltip]", inputs: { uiTooltip: { classPropertyName: "uiTooltip", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["uiTooltip"], hostDirectives: [{ directive: i1$1.MatTooltip, inputs: ["matTooltipPosition", "uiTooltipPosition", "matTooltipDisabled", "uiTooltipDisabled", "matTooltipShowDelay", "uiTooltipShowDelay", "matTooltipHideDelay", "uiTooltipHideDelay", "matTooltipTouchGestures", "uiTooltipTouchGestures"] }], ngImport: i0 });
3469
+ }
3470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TooltipDirective, decorators: [{
3471
+ type: Directive,
3472
+ args: [{
3473
+ selector: '[uiTooltip]',
3474
+ hostDirectives: [
3475
+ {
3476
+ directive: MatTooltip,
3477
+ inputs: [
3478
+ 'matTooltipPosition: uiTooltipPosition',
3479
+ 'matTooltipDisabled: uiTooltipDisabled',
3480
+ 'matTooltipShowDelay: uiTooltipShowDelay',
3481
+ 'matTooltipHideDelay: uiTooltipHideDelay',
3482
+ 'matTooltipTouchGestures: uiTooltipTouchGestures',
3483
+ ],
3484
+ },
3485
+ ],
3486
+ exportAs: 'uiTooltip',
3487
+ }]
3488
+ }], ctorParameters: () => [], propDecorators: { uiTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiTooltip", required: false }] }] } });
3489
+
3490
+ const THEME_PANEL_THEME_PORT = new InjectionToken('THEME_PANEL_THEME_PORT');
3491
+ const THEME_PANEL_LAYOUT_PORT = new InjectionToken('THEME_PANEL_LAYOUT_PORT');
3492
+ const THEME_COLOR_OPTIONS = [
3493
+ { value: 'base', label: 'Base', swatchClass: 'bg-zinc-800' },
3494
+ { value: 'red', label: 'Red', swatchClass: 'bg-red-500' },
3495
+ { value: 'orange', label: 'Orange', swatchClass: 'bg-orange-500' },
3496
+ { value: 'amber', label: 'Amber', swatchClass: 'bg-amber-400' },
3497
+ { value: 'yellow', label: 'Yellow', swatchClass: 'bg-yellow-400' },
3498
+ { value: 'lime', label: 'Lime', swatchClass: 'bg-lime-400' },
3499
+ { value: 'green', label: 'Green', swatchClass: 'bg-green-600' },
3500
+ { value: 'emerald', label: 'Emerald', swatchClass: 'bg-emerald-600' },
3501
+ { value: 'teal', label: 'Teal', swatchClass: 'bg-teal-600' },
3502
+ { value: 'cyan', label: 'Cyan', swatchClass: 'bg-cyan-600' },
3503
+ { value: 'sky', label: 'Sky', swatchClass: 'bg-sky-600' },
3504
+ { value: 'blue', label: 'Blue', swatchClass: 'bg-blue-500' },
3505
+ { value: 'indigo', label: 'Indigo', swatchClass: 'bg-indigo-500' },
3506
+ { value: 'violet', label: 'Violet', swatchClass: 'bg-violet-500' },
3507
+ { value: 'purple', label: 'Purple', swatchClass: 'bg-purple-500' },
3508
+ { value: 'fuchsia', label: 'Fuchsia', swatchClass: 'bg-fuchsia-600' },
3509
+ { value: 'pink', label: 'Pink', swatchClass: 'bg-pink-600' },
3510
+ { value: 'rose', label: 'Rose', swatchClass: 'bg-rose-500' },
3511
+ ];
3512
+ const THEME_MODE_OPTIONS = [
3513
+ { value: 'light', label: 'Light', icon: 'sun' },
3514
+ { value: 'dark', label: 'Dark', icon: 'moon' },
3515
+ { value: 'system', label: 'System', icon: 'system' },
3516
+ ];
3517
+ const THEME_STYLE_OPTIONS = [
3518
+ { value: 'default', label: 'Default', icon: 'default-style' },
3519
+ { value: 'sharp', label: 'Sharp', icon: 'sharp-style' },
3520
+ { value: 'brutal', label: 'Brutal', icon: 'brutal-style' },
3521
+ { value: 'soft', label: 'Soft', icon: 'soft-style' },
3522
+ ];
3523
+ const LAYOUT_MODE_OPTIONS = [
3524
+ { value: 'vertical', label: 'Vertical', icon: 'vertical-layout' },
3525
+ { value: 'horizontal', label: 'Horizontal', icon: 'horizontal-layout' },
3526
+ { value: 'empty', label: 'Empty', icon: 'empty-layout' },
3527
+ ];
3528
+ const LAYOUT_WIDTH_OPTIONS = [
3529
+ { value: 'full', label: 'Full', icon: 'full-width' },
3530
+ { value: 'container', label: 'Container', icon: 'container-width' },
3531
+ { value: 'wide', label: 'Wide', icon: 'wide-width' },
3532
+ ];
3533
+ class ThemePanelComponent {
3534
+ sanitizer = inject(DomSanitizer);
3535
+ themePort = inject(THEME_PANEL_THEME_PORT, { optional: true });
3536
+ layoutPort = inject(THEME_PANEL_LAYOUT_PORT, { optional: true });
3537
+ connected = input(true, ...(ngDevMode ? [{ debugName: "connected" }] : /* istanbul ignore next */ []));
3538
+ class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
3539
+ title = input('Theme panel', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
3540
+ description = input('', ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
3541
+ userName = input('', ...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
3542
+ userSubtitle = input('', ...(ngDevMode ? [{ debugName: "userSubtitle" }] : /* istanbul ignore next */ []));
3543
+ userInitials = input('', ...(ngDevMode ? [{ debugName: "userInitials" }] : /* istanbul ignore next */ []));
3544
+ themeColor = input('base', ...(ngDevMode ? [{ debugName: "themeColor" }] : /* istanbul ignore next */ []));
3545
+ themeMode = input('light', ...(ngDevMode ? [{ debugName: "themeMode" }] : /* istanbul ignore next */ []));
3546
+ themeStyle = input('default', ...(ngDevMode ? [{ debugName: "themeStyle" }] : /* istanbul ignore next */ []));
3547
+ layoutMode = input('vertical', ...(ngDevMode ? [{ debugName: "layoutMode" }] : /* istanbul ignore next */ []));
3548
+ layoutWidth = input('container', ...(ngDevMode ? [{ debugName: "layoutWidth" }] : /* istanbul ignore next */ []));
3549
+ themeColorChange = output();
3550
+ themeModeChange = output();
3551
+ themeStyleChange = output();
3552
+ layoutModeChange = output();
3553
+ layoutWidthChange = output();
3554
+ currentThemeColor = signal(this.themeColor(), ...(ngDevMode ? [{ debugName: "currentThemeColor" }] : /* istanbul ignore next */ []));
3555
+ currentThemeMode = signal(this.themeMode(), ...(ngDevMode ? [{ debugName: "currentThemeMode" }] : /* istanbul ignore next */ []));
3556
+ currentThemeStyle = signal(this.themeStyle(), ...(ngDevMode ? [{ debugName: "currentThemeStyle" }] : /* istanbul ignore next */ []));
3557
+ currentLayoutMode = signal(this.layoutMode(), ...(ngDevMode ? [{ debugName: "currentLayoutMode" }] : /* istanbul ignore next */ []));
3558
+ currentLayoutWidth = signal(this.layoutWidth(), ...(ngDevMode ? [{ debugName: "currentLayoutWidth" }] : /* istanbul ignore next */ []));
3559
+ themeColorOptions = THEME_COLOR_OPTIONS;
3560
+ themeModeOptions = THEME_MODE_OPTIONS;
3561
+ themeStyleOptions = THEME_STYLE_OPTIONS;
3562
+ layoutModeOptions = LAYOUT_MODE_OPTIONS;
3563
+ layoutWidthOptions = LAYOUT_WIDTH_OPTIONS;
3564
+ hostClasses = computed(() => cn('block overflow-hidden rounded-lg border border-border/70 bg-card text-card-foreground shadow-sm', this.class()), ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
3565
+ hasUserHeader = computed(() => !!this.userName().trim() || !!this.userSubtitle().trim(), ...(ngDevMode ? [{ debugName: "hasUserHeader" }] : /* istanbul ignore next */ []));
3566
+ resolvedUserInitials = computed(() => this.userInitials().trim() || this.toInitials(this.userName() || this.title()), ...(ngDevMode ? [{ debugName: "resolvedUserInitials" }] : /* istanbul ignore next */ []));
3567
+ currentThemeColorLabel = computed(() => this.themeColorOptions.find((option) => option.value === this.currentThemeColor())?.label ?? '', ...(ngDevMode ? [{ debugName: "currentThemeColorLabel" }] : /* istanbul ignore next */ []));
3568
+ constructor() {
3569
+ effect(() => {
3570
+ this.currentThemeColor.set(this.connected() && this.themePort ? this.themePort.color() : this.themeColor());
3571
+ });
3572
+ effect(() => {
3573
+ this.currentThemeMode.set(this.connected() && this.themePort ? this.themePort.scheme() : this.themeMode());
3574
+ });
3575
+ effect(() => {
3576
+ this.currentThemeStyle.set(this.connected() && this.themePort ? this.themePort.style() : this.themeStyle());
3577
+ });
3578
+ effect(() => {
3579
+ this.currentLayoutMode.set(this.connected() && this.layoutPort ? this.layoutPort.mode() : this.layoutMode());
3580
+ });
3581
+ effect(() => {
3582
+ this.currentLayoutWidth.set(this.connected() && this.layoutPort ? this.layoutPort.width() : this.layoutWidth());
3583
+ });
3584
+ }
3585
+ setThemeColor(color) {
3586
+ this.currentThemeColor.set(color);
3587
+ this.themePort?.setColor(color);
3588
+ this.themeColorChange.emit(color);
3589
+ }
3590
+ setThemeMode(mode) {
3591
+ this.currentThemeMode.set(mode);
3592
+ this.themePort?.setScheme(mode);
3593
+ this.themeModeChange.emit(mode);
3594
+ }
3595
+ setThemeStyle(style) {
3596
+ this.currentThemeStyle.set(style);
3597
+ this.themePort?.setStyle(style);
3598
+ this.themeStyleChange.emit(style);
3599
+ }
3600
+ setLayoutMode(mode) {
3601
+ this.currentLayoutMode.set(mode);
3602
+ this.layoutPort?.setMode(mode);
3603
+ this.layoutModeChange.emit(mode);
3604
+ }
3605
+ setLayoutWidth(width) {
3606
+ this.currentLayoutWidth.set(width);
3607
+ this.layoutPort?.setWidth(width);
3608
+ this.layoutWidthChange.emit(width);
3609
+ }
3610
+ sectionEyebrowClasses() {
3611
+ return 'text-[0.72rem] font-semibold uppercase tracking-[0.22em] text-muted-foreground';
3612
+ }
3613
+ segmentedOptionClasses(active) {
3614
+ return cn('rounded-[calc(var(--layout-frame-radius)-2px)] px-3', active
3615
+ ? 'border border-border/70 bg-background shadow-sm hover:bg-background'
3616
+ : 'text-muted-foreground hover:bg-background/70 hover:text-foreground');
3617
+ }
3618
+ swatchButtonClasses(active) {
3619
+ return cn('size-9 rounded-full p-0', active
3620
+ ? 'border border-border/70 bg-background shadow-sm hover:bg-background'
3621
+ : 'border border-transparent hover:bg-background/70');
3622
+ }
3623
+ optionIconClasses(active) {
3624
+ return cn('inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-4', active ? 'text-foreground' : 'text-muted-foreground');
3625
+ }
3626
+ colorSwatchClasses(swatchClass, isActive) {
3627
+ return cn('size-4 rounded-full border border-black/10 shadow-sm', swatchClass, isActive ? 'ring-2 ring-ring ring-offset-2 ring-offset-background' : '');
3628
+ }
3629
+ iconSvg(name) {
3630
+ return this.sanitizer.bypassSecurityTrustHtml(this.rawIconSvg(name));
3631
+ }
3632
+ rawIconSvg(name) {
3633
+ switch (name) {
3634
+ case 'sun':
3635
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"></circle><path d="M12 2.5v2.2"></path><path d="M12 19.3v2.2"></path><path d="M4.93 4.93 6.5 6.5"></path><path d="M17.5 17.5 19.07 19.07"></path><path d="M2.5 12h2.2"></path><path d="M19.3 12h2.2"></path><path d="M4.93 19.07 6.5 17.5"></path><path d="M17.5 6.5 19.07 4.93"></path></svg>';
3636
+ case 'moon':
3637
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M20.4 14.8A8.8 8.8 0 1 1 9.2 3.6a7.2 7.2 0 0 0 11.2 11.2Z"></path></svg>';
3638
+ case 'system':
3639
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="4.5" width="17" height="11.5" rx="1.8"></rect><path d="M9 19.5h6"></path><path d="M12 16v3.5"></path></svg>';
3640
+ case 'default-style':
3641
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="14" height="14" rx="4"></rect></svg>';
3642
+ case 'sharp-style':
3643
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="14" height="14" rx="1"></rect></svg>';
3644
+ case 'brutal-style':
3645
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 7.5h14"></path><path d="M5 12h14"></path><path d="M5 16.5h14"></path></svg>';
3646
+ case 'soft-style':
3647
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M7.5 9A4.5 4.5 0 0 1 12 4.5h1A4.5 4.5 0 0 1 17.5 9v1A4.5 4.5 0 0 1 13 14.5h-1A4.5 4.5 0 0 1 7.5 10Z"></path><path d="M6.5 15.5c1.3 2 3.2 3 5.5 3s4.2-1 5.5-3"></path></svg>';
3648
+ case 'vertical-layout':
3649
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="5" width="16" height="14" rx="2"></rect><path d="M9 5v14"></path></svg>';
3650
+ case 'horizontal-layout':
3651
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="5" width="16" height="14" rx="2"></rect><path d="M4 10h16"></path></svg>';
3652
+ case 'empty-layout':
3653
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="4.5" y="5.5" width="15" height="13" rx="2"></rect></svg>';
3654
+ case 'full-width':
3655
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 8V5h3"></path><path d="M20 8V5h-3"></path><path d="M4 16v3h3"></path><path d="M20 16v3h-3"></path><path d="M8 5H4"></path><path d="M20 5h-4"></path><path d="M8 19H4"></path><path d="M20 19h-4"></path></svg>';
3656
+ case 'container-width':
3657
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="6" width="16" height="12" rx="2"></rect><path d="M9 9.5h6"></path><path d="M9 14.5h6"></path></svg>';
3658
+ case 'wide-width':
3659
+ return '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="6" width="18" height="12" rx="2"></rect><path d="M7 9.5h10"></path><path d="M7 14.5h10"></path></svg>';
3660
+ }
3661
+ }
3662
+ toInitials(value) {
3663
+ const words = value
3664
+ .split(/\s+/)
3665
+ .map((item) => item.trim())
3666
+ .filter(Boolean)
3667
+ .slice(0, 2);
3668
+ if (!words.length) {
3669
+ return 'UI';
3670
+ }
3671
+ return words.map((word) => word[0]?.toUpperCase() ?? '').join('');
3672
+ }
3673
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3674
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ThemePanelComponent, isStandalone: true, selector: "ui-theme-panel", inputs: { connected: { classPropertyName: "connected", publicName: "connected", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: false, transformFunction: null }, userSubtitle: { classPropertyName: "userSubtitle", publicName: "userSubtitle", isSignal: true, isRequired: false, transformFunction: null }, userInitials: { classPropertyName: "userInitials", publicName: "userInitials", isSignal: true, isRequired: false, transformFunction: null }, themeColor: { classPropertyName: "themeColor", publicName: "themeColor", isSignal: true, isRequired: false, transformFunction: null }, themeMode: { classPropertyName: "themeMode", publicName: "themeMode", isSignal: true, isRequired: false, transformFunction: null }, themeStyle: { classPropertyName: "themeStyle", publicName: "themeStyle", isSignal: true, isRequired: false, transformFunction: null }, layoutMode: { classPropertyName: "layoutMode", publicName: "layoutMode", isSignal: true, isRequired: false, transformFunction: null }, layoutWidth: { classPropertyName: "layoutWidth", publicName: "layoutWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { themeColorChange: "themeColorChange", themeModeChange: "themeModeChange", themeStyleChange: "themeStyleChange", layoutModeChange: "layoutModeChange", layoutWidthChange: "layoutWidthChange" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: `
3675
+ <div class="flex flex-col gap-4 p-4">
3676
+ @if (hasUserHeader()) {
3677
+ <header class="flex items-center gap-3 px-1 pt-1">
3678
+ <span class="flex size-14 items-center justify-center rounded-full bg-primary/10 text-primary">
3679
+ <span
3680
+ class="flex size-11 items-center justify-center rounded-full bg-primary text-xs font-semibold tracking-[0.22em] text-primary-foreground">
3681
+ {{ resolvedUserInitials() }}
3682
+ </span>
3683
+ </span>
3684
+
3685
+ <div class="min-w-0 flex-1">
3686
+ <h2 class="truncate text-[1.05rem] font-semibold leading-none tracking-tight text-foreground">
3687
+ {{ userName() }}
3688
+ </h2>
3689
+ @if (userSubtitle(); as subtitle) {
3690
+ <p class="mt-1 text-sm leading-none text-muted-foreground">{{ subtitle }}</p>
3691
+ }
3692
+ </div>
3693
+ </header>
3694
+ } @else {
3695
+ <header class="space-y-1 px-1 pt-1">
3696
+ <h2 class="text-base font-semibold tracking-tight text-foreground">{{ title() }}</h2>
3697
+ @if (description(); as text) {
3698
+ <p class="text-sm leading-6 text-muted-foreground">{{ text }}</p>
3699
+ }
3700
+ </header>
3701
+ }
3702
+
3703
+ <div class="grid gap-4">
3704
+ <section data-setting="theme-mode" [attr.data-current]="currentThemeMode()" class="space-y-2">
3705
+ <div class="px-1">
3706
+ <p [class]="sectionEyebrowClasses()">Mode</p>
3707
+ </div>
3708
+
3709
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
3710
+ <div class="grid grid-cols-3 gap-1" role="group" aria-label="Theme mode">
3711
+ @for (option of themeModeOptions; track option.value) {
3712
+ <button
3713
+ type="button"
3714
+ ui-button
3715
+ size="sm"
3716
+ variant="ghost"
3717
+ data-setting-option="theme-mode"
3718
+ [attr.data-value]="option.value"
3719
+ [attr.aria-pressed]="currentThemeMode() === option.value"
3720
+ [class]="segmentedOptionClasses(currentThemeMode() === option.value)"
3721
+ (click)="setThemeMode(option.value)">
3722
+ <span class="inline-flex items-center gap-2.5">
3723
+ <span
3724
+ aria-hidden="true"
3725
+ [class]="optionIconClasses(currentThemeMode() === option.value)"
3726
+ [innerHTML]="iconSvg(option.icon!)"></span>
3727
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
3728
+ </span>
3729
+ </button>
3730
+ }
3731
+ </div>
3732
+ </div>
3733
+ </section>
3734
+
3735
+ <section data-setting="theme-color" [attr.data-current]="currentThemeColor()" class="space-y-2">
3736
+ <div class="flex items-center justify-between gap-3 px-1">
3737
+ <p [class]="sectionEyebrowClasses()">Color</p>
3738
+ <p class="text-xs font-semibold text-muted-foreground">{{ currentThemeColorLabel() }}</p>
3739
+ </div>
3740
+
3741
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-1">
3742
+ <div class="grid grid-cols-6 justify-items-center gap-1" role="group" aria-label="Theme color">
3743
+ @for (option of themeColorOptions; track option.value) {
3744
+ <button
3745
+ type="button"
3746
+ ui-button
3747
+ size="icon"
3748
+ variant="ghost"
3749
+ data-setting-option="theme-color"
3750
+ [attr.data-value]="option.value"
3751
+ [attr.aria-label]="'Theme color ' + option.label"
3752
+ [attr.aria-pressed]="currentThemeColor() === option.value"
3753
+ [class]="swatchButtonClasses(currentThemeColor() === option.value)"
3754
+ (click)="setThemeColor(option.value)">
3755
+ <span
3756
+ aria-hidden="true"
3757
+ [class]="colorSwatchClasses(option.swatchClass, currentThemeColor() === option.value)"></span>
3758
+ <span class="sr-only">{{ option.label }}</span>
3759
+ </button>
3760
+ }
3761
+ </div>
3762
+ </div>
3763
+ </section>
3764
+
3765
+ <section data-setting="theme-style" [attr.data-current]="currentThemeStyle()" class="space-y-2">
3766
+ <div class="px-1">
3767
+ <p [class]="sectionEyebrowClasses()">Style</p>
3768
+ </div>
3769
+
3770
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
3771
+ <div class="grid grid-cols-2 gap-1 sm:grid-cols-4" role="group" aria-label="Theme style">
3772
+ @for (option of themeStyleOptions; track option.value) {
3773
+ <button
3774
+ type="button"
3775
+ ui-button
3776
+ size="sm"
3777
+ variant="ghost"
3778
+ data-setting-option="theme-style"
3779
+ [attr.data-value]="option.value"
3780
+ [attr.aria-pressed]="currentThemeStyle() === option.value"
3781
+ [class]="segmentedOptionClasses(currentThemeStyle() === option.value)"
3782
+ (click)="setThemeStyle(option.value)">
3783
+ <span class="inline-flex items-center gap-2.5">
3784
+ <span
3785
+ aria-hidden="true"
3786
+ [class]="optionIconClasses(currentThemeStyle() === option.value)"
3787
+ [innerHTML]="iconSvg(option.icon!)"></span>
3788
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
3789
+ </span>
3790
+ </button>
3791
+ }
3792
+ </div>
3793
+ </div>
3794
+ </section>
3795
+
3796
+ <section data-setting="layout-mode" [attr.data-current]="currentLayoutMode()" class="space-y-2">
3797
+ <div class="px-1">
3798
+ <p [class]="sectionEyebrowClasses()">Layout</p>
3799
+ </div>
3800
+
3801
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
3802
+ <div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout mode">
3803
+ @for (option of layoutModeOptions; track option.value) {
3804
+ <button
3805
+ type="button"
3806
+ ui-button
3807
+ size="sm"
3808
+ variant="ghost"
3809
+ data-setting-option="layout-mode"
3810
+ [attr.data-value]="option.value"
3811
+ [attr.aria-pressed]="currentLayoutMode() === option.value"
3812
+ [class]="segmentedOptionClasses(currentLayoutMode() === option.value)"
3813
+ (click)="setLayoutMode(option.value)">
3814
+ <span class="inline-flex items-center gap-2.5">
3815
+ <span
3816
+ aria-hidden="true"
3817
+ [class]="optionIconClasses(currentLayoutMode() === option.value)"
3818
+ [innerHTML]="iconSvg(option.icon!)"></span>
3819
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
3820
+ </span>
3821
+ </button>
3822
+ }
3823
+ </div>
3824
+ </div>
3825
+ </section>
3826
+
3827
+ <section data-setting="layout-width" [attr.data-current]="currentLayoutWidth()" class="space-y-2">
3828
+ <div class="px-1">
3829
+ <p [class]="sectionEyebrowClasses()">Width</p>
3830
+ </div>
3831
+
3832
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
3833
+ <div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout width">
3834
+ @for (option of layoutWidthOptions; track option.value) {
3835
+ <button
3836
+ type="button"
3837
+ ui-button
3838
+ size="sm"
3839
+ variant="ghost"
3840
+ data-setting-option="layout-width"
3841
+ [attr.data-value]="option.value"
3842
+ [attr.aria-pressed]="currentLayoutWidth() === option.value"
3843
+ [class]="segmentedOptionClasses(currentLayoutWidth() === option.value)"
3844
+ (click)="setLayoutWidth(option.value)">
3845
+ <span class="inline-flex items-center gap-2.5">
3846
+ <span
3847
+ aria-hidden="true"
3848
+ [class]="optionIconClasses(currentLayoutWidth() === option.value)"
3849
+ [innerHTML]="iconSvg(option.icon!)"></span>
3850
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
3851
+ </span>
3852
+ </button>
3853
+ }
3854
+ </div>
3855
+ </div>
3856
+ </section>
3857
+ </div>
3858
+ </div>
3859
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[ui-button], a[ui-button]", inputs: ["variant", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3860
+ }
3861
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemePanelComponent, decorators: [{
3862
+ type: Component,
3863
+ args: [{
3864
+ selector: 'ui-theme-panel',
3865
+ imports: [ButtonComponent],
3866
+ changeDetection: ChangeDetectionStrategy.OnPush,
3867
+ host: {
3868
+ '[class]': 'hostClasses()',
3869
+ },
3870
+ template: `
3871
+ <div class="flex flex-col gap-4 p-4">
3872
+ @if (hasUserHeader()) {
3873
+ <header class="flex items-center gap-3 px-1 pt-1">
3874
+ <span class="flex size-14 items-center justify-center rounded-full bg-primary/10 text-primary">
3875
+ <span
3876
+ class="flex size-11 items-center justify-center rounded-full bg-primary text-xs font-semibold tracking-[0.22em] text-primary-foreground">
3877
+ {{ resolvedUserInitials() }}
3878
+ </span>
3879
+ </span>
3880
+
3881
+ <div class="min-w-0 flex-1">
3882
+ <h2 class="truncate text-[1.05rem] font-semibold leading-none tracking-tight text-foreground">
3883
+ {{ userName() }}
3884
+ </h2>
3885
+ @if (userSubtitle(); as subtitle) {
3886
+ <p class="mt-1 text-sm leading-none text-muted-foreground">{{ subtitle }}</p>
3887
+ }
3888
+ </div>
3889
+ </header>
3890
+ } @else {
3891
+ <header class="space-y-1 px-1 pt-1">
3892
+ <h2 class="text-base font-semibold tracking-tight text-foreground">{{ title() }}</h2>
3893
+ @if (description(); as text) {
3894
+ <p class="text-sm leading-6 text-muted-foreground">{{ text }}</p>
3895
+ }
3896
+ </header>
3897
+ }
3898
+
3899
+ <div class="grid gap-4">
3900
+ <section data-setting="theme-mode" [attr.data-current]="currentThemeMode()" class="space-y-2">
3901
+ <div class="px-1">
3902
+ <p [class]="sectionEyebrowClasses()">Mode</p>
3903
+ </div>
3904
+
3905
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
3906
+ <div class="grid grid-cols-3 gap-1" role="group" aria-label="Theme mode">
3907
+ @for (option of themeModeOptions; track option.value) {
3908
+ <button
3909
+ type="button"
3910
+ ui-button
3911
+ size="sm"
3912
+ variant="ghost"
3913
+ data-setting-option="theme-mode"
3914
+ [attr.data-value]="option.value"
3915
+ [attr.aria-pressed]="currentThemeMode() === option.value"
3916
+ [class]="segmentedOptionClasses(currentThemeMode() === option.value)"
3917
+ (click)="setThemeMode(option.value)">
3918
+ <span class="inline-flex items-center gap-2.5">
3919
+ <span
3920
+ aria-hidden="true"
3921
+ [class]="optionIconClasses(currentThemeMode() === option.value)"
3922
+ [innerHTML]="iconSvg(option.icon!)"></span>
3923
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
3924
+ </span>
3925
+ </button>
3926
+ }
3927
+ </div>
3928
+ </div>
3929
+ </section>
3930
+
3931
+ <section data-setting="theme-color" [attr.data-current]="currentThemeColor()" class="space-y-2">
3932
+ <div class="flex items-center justify-between gap-3 px-1">
3933
+ <p [class]="sectionEyebrowClasses()">Color</p>
3934
+ <p class="text-xs font-semibold text-muted-foreground">{{ currentThemeColorLabel() }}</p>
3935
+ </div>
3936
+
3937
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-1">
3938
+ <div class="grid grid-cols-6 justify-items-center gap-1" role="group" aria-label="Theme color">
3939
+ @for (option of themeColorOptions; track option.value) {
3940
+ <button
3941
+ type="button"
3942
+ ui-button
3943
+ size="icon"
3944
+ variant="ghost"
3945
+ data-setting-option="theme-color"
3946
+ [attr.data-value]="option.value"
3947
+ [attr.aria-label]="'Theme color ' + option.label"
3948
+ [attr.aria-pressed]="currentThemeColor() === option.value"
3949
+ [class]="swatchButtonClasses(currentThemeColor() === option.value)"
3950
+ (click)="setThemeColor(option.value)">
3951
+ <span
3952
+ aria-hidden="true"
3953
+ [class]="colorSwatchClasses(option.swatchClass, currentThemeColor() === option.value)"></span>
3954
+ <span class="sr-only">{{ option.label }}</span>
3955
+ </button>
3956
+ }
3957
+ </div>
3958
+ </div>
3959
+ </section>
3960
+
3961
+ <section data-setting="theme-style" [attr.data-current]="currentThemeStyle()" class="space-y-2">
3962
+ <div class="px-1">
3963
+ <p [class]="sectionEyebrowClasses()">Style</p>
3964
+ </div>
3965
+
3966
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
3967
+ <div class="grid grid-cols-2 gap-1 sm:grid-cols-4" role="group" aria-label="Theme style">
3968
+ @for (option of themeStyleOptions; track option.value) {
3969
+ <button
3970
+ type="button"
3971
+ ui-button
3972
+ size="sm"
3973
+ variant="ghost"
3974
+ data-setting-option="theme-style"
3975
+ [attr.data-value]="option.value"
3976
+ [attr.aria-pressed]="currentThemeStyle() === option.value"
3977
+ [class]="segmentedOptionClasses(currentThemeStyle() === option.value)"
3978
+ (click)="setThemeStyle(option.value)">
3979
+ <span class="inline-flex items-center gap-2.5">
3980
+ <span
3981
+ aria-hidden="true"
3982
+ [class]="optionIconClasses(currentThemeStyle() === option.value)"
3983
+ [innerHTML]="iconSvg(option.icon!)"></span>
3984
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
3985
+ </span>
3986
+ </button>
3987
+ }
3988
+ </div>
3989
+ </div>
3990
+ </section>
3991
+
3992
+ <section data-setting="layout-mode" [attr.data-current]="currentLayoutMode()" class="space-y-2">
3993
+ <div class="px-1">
3994
+ <p [class]="sectionEyebrowClasses()">Layout</p>
3995
+ </div>
3996
+
3997
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
3998
+ <div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout mode">
3999
+ @for (option of layoutModeOptions; track option.value) {
4000
+ <button
4001
+ type="button"
4002
+ ui-button
4003
+ size="sm"
4004
+ variant="ghost"
4005
+ data-setting-option="layout-mode"
4006
+ [attr.data-value]="option.value"
4007
+ [attr.aria-pressed]="currentLayoutMode() === option.value"
4008
+ [class]="segmentedOptionClasses(currentLayoutMode() === option.value)"
4009
+ (click)="setLayoutMode(option.value)">
4010
+ <span class="inline-flex items-center gap-2.5">
4011
+ <span
4012
+ aria-hidden="true"
4013
+ [class]="optionIconClasses(currentLayoutMode() === option.value)"
4014
+ [innerHTML]="iconSvg(option.icon!)"></span>
4015
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
4016
+ </span>
4017
+ </button>
4018
+ }
4019
+ </div>
4020
+ </div>
4021
+ </section>
4022
+
4023
+ <section data-setting="layout-width" [attr.data-current]="currentLayoutWidth()" class="space-y-2">
4024
+ <div class="px-1">
4025
+ <p [class]="sectionEyebrowClasses()">Width</p>
4026
+ </div>
4027
+
4028
+ <div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
4029
+ <div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout width">
4030
+ @for (option of layoutWidthOptions; track option.value) {
4031
+ <button
4032
+ type="button"
4033
+ ui-button
4034
+ size="sm"
4035
+ variant="ghost"
4036
+ data-setting-option="layout-width"
4037
+ [attr.data-value]="option.value"
4038
+ [attr.aria-pressed]="currentLayoutWidth() === option.value"
4039
+ [class]="segmentedOptionClasses(currentLayoutWidth() === option.value)"
4040
+ (click)="setLayoutWidth(option.value)">
4041
+ <span class="inline-flex items-center gap-2.5">
4042
+ <span
4043
+ aria-hidden="true"
4044
+ [class]="optionIconClasses(currentLayoutWidth() === option.value)"
4045
+ [innerHTML]="iconSvg(option.icon!)"></span>
4046
+ <span class="text-sm font-semibold leading-none">{{ option.label }}</span>
4047
+ </span>
4048
+ </button>
4049
+ }
4050
+ </div>
4051
+ </div>
4052
+ </section>
4053
+ </div>
4054
+ </div>
4055
+ `,
4056
+ }]
4057
+ }], ctorParameters: () => [], propDecorators: { connected: [{ type: i0.Input, args: [{ isSignal: true, alias: "connected", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: false }] }], userSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "userSubtitle", required: false }] }], userInitials: [{ type: i0.Input, args: [{ isSignal: true, alias: "userInitials", required: false }] }], themeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeColor", required: false }] }], themeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeMode", required: false }] }], themeStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeStyle", required: false }] }], layoutMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutMode", required: false }] }], layoutWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutWidth", required: false }] }], themeColorChange: [{ type: i0.Output, args: ["themeColorChange"] }], themeModeChange: [{ type: i0.Output, args: ["themeModeChange"] }], themeStyleChange: [{ type: i0.Output, args: ["themeStyleChange"] }], layoutModeChange: [{ type: i0.Output, args: ["layoutModeChange"] }], layoutWidthChange: [{ type: i0.Output, args: ["layoutWidthChange"] }] } });
4058
+
4059
+ /*
4060
+ * Public API Surface of @edsis/angular/component
4061
+ */
4062
+ // Core
4063
+
4064
+ /**
4065
+ * Generated bundle index. Do not edit.
4066
+ */
4067
+
4068
+ export { AccordionComponent, AccordionContentComponent, AccordionContextBase, AccordionItemComponent, AccordionTriggerComponent, AlertComponent, AlertDescriptionComponent, AlertTitleComponent, AvatarComponent, AvatarFallbackComponent, AvatarImageComponent, BadgeComponent, BreadcrumbComponent, BreadcrumbEllipsisComponent, BreadcrumbItemComponent, BreadcrumbLinkComponent, BreadcrumbListComponent, BreadcrumbPageComponent, BreadcrumbSeparatorComponent, ButtonComponent, CalendarComponent, CardComponent, CardContentComponent, CardDescriptionComponent, CardFooterComponent, CardHeaderComponent, CardTitleComponent, CheckboxComponent, ComboboxComponent, CommandComponent, CommandContextBase, CommandEmptyComponent, CommandGroupComponent, CommandInputComponent, CommandItemComponent, CommandListComponent, CommandSeparatorComponent, CommandShortcutComponent, ContextMenuTriggerDirective, DatePickerComponent, DialogComponent, DialogContentComponent, DialogDescriptionComponent, DialogFooterComponent, DialogHeaderComponent, DialogTitleComponent, FormControlDirective, FormDescriptionComponent, FormFieldComponent, FormFieldContext, FormLabelComponent, FormMessageComponent, InputComponent, LabelComponent, MenuContentDirective, MenuItemComponent, MenuLabelComponent, MenuSeparatorComponent, MenuShortcutComponent, MenuSurfaceComponent, MenuTriggerDirective, OptionComponent, POPOVER_TRIGGER_DEFAULTS, PaginationComponent, PopoverContentDirective, PopoverTriggerDirective, ProgressComponent, RadioComponent, RadioGroupComponent, ScrollAreaComponent, SelectComponent, SeparatorComponent, SheetComponent, SheetContentComponent, SheetDescriptionComponent, SheetFooterComponent, SheetHeaderComponent, SheetTitleComponent, SkeletonComponent, SliderComponent, SwitchComponent, THEME_PANEL_LAYOUT_PORT, THEME_PANEL_THEME_PORT, TableBodyComponent, TableCaptionComponent, TableCellComponent, TableComponent, TableFooterComponent, TableHeadComponent, TableHeaderComponent, TableRowComponent, TabsComponent, TabsContentComponent, TabsContextBase, TabsListComponent, TabsTriggerComponent, TextareaComponent, ThemePanelComponent, ToastService, TooltipDirective, alertVariants, badgeVariants, buttonVariants, cn };
4069
+ //# sourceMappingURL=ojiepermana-angular-component.mjs.map