@egose/shadcn-theme-ng 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/fesm2022/accordion.mjs +19 -19
- package/alert/fesm2022/alert.mjs +16 -16
- package/autocomplete/README.md +64 -0
- package/autocomplete/fesm2022/autocomplete.mjs +543 -0
- package/autocomplete/fesm2022/autocomplete.mjs.map +1 -0
- package/autocomplete/index.d.ts +162 -0
- package/badge/fesm2022/badge.mjs +19 -28
- package/badge/fesm2022/badge.mjs.map +1 -1
- package/badge/index.d.ts +9 -9
- package/basic-alert/fesm2022/basic-alert.mjs +17 -25
- package/basic-alert/fesm2022/basic-alert.mjs.map +1 -1
- package/basic-alert/index.d.ts +7 -7
- package/button/fesm2022/button.mjs +51 -69
- package/button/fesm2022/button.mjs.map +1 -1
- package/button/index.d.ts +20 -20
- package/calendar/fesm2022/calendar.mjs +13 -13
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +6 -6
- package/date-picker/fesm2022/date-picker.mjs +13 -13
- package/dialog/fesm2022/dialog.mjs +31 -31
- package/exports.json +1 -1
- package/form-date-picker/fesm2022/form-date-picker.mjs +3 -3
- package/form-field/fesm2022/form-field.mjs +13 -13
- package/form-searchable-multiselect/README.md +64 -0
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +124 -0
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +1 -0
- package/form-searchable-multiselect/index.d.ts +28 -0
- package/form-select/fesm2022/form-select.mjs +3 -3
- package/form-text-input/fesm2022/form-text-input.mjs +6 -6
- package/form-textarea/fesm2022/form-textarea.mjs +3 -3
- package/icon/fesm2022/icon.mjs +7 -7
- package/input/fesm2022/input.mjs +7 -7
- package/label/fesm2022/label.mjs +7 -7
- package/package.json +21 -5
- package/popover/fesm2022/popover.mjs +10 -10
- package/radio-group/fesm2022/radio-group.mjs +13 -13
- package/searchable-multiselect/README.md +64 -0
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +221 -0
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +1 -0
- package/searchable-multiselect/index.d.ts +50 -0
- package/select/fesm2022/select.mjs +31 -31
- package/separator/README.md +64 -0
- package/separator/fesm2022/separator.mjs +46 -0
- package/separator/fesm2022/separator.mjs.map +1 -0
- package/separator/index.d.ts +19 -0
- package/sonner/fesm2022/sonner.mjs +7 -7
- package/spinner/fesm2022/spinner.mjs +7 -7
- package/switch/fesm2022/switch.mjs +10 -10
- package/tabs/fesm2022/tabs.mjs +19 -19
- package/tooltip/fesm2022/tooltip.mjs +10 -10
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { viewChild, input, output, signal, computed, effect, forwardRef, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import { HlmAutocomplete } from '@egose/shadcn-theme-ng/autocomplete';
|
|
5
|
+
|
|
6
|
+
class EgSearchableMultiselect {
|
|
7
|
+
autoComplete = viewChild(HlmAutocomplete, ...(ngDevMode ? [{ debugName: "autoComplete" }] : []));
|
|
8
|
+
/** Full option list with labels/values */
|
|
9
|
+
options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
10
|
+
placeholder = input('Start typing to add…', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
11
|
+
/** Value: array of selected values (string[]) */
|
|
12
|
+
value = input([], ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
13
|
+
valueChange = output(); // emits string[] of values
|
|
14
|
+
/** Internal state */
|
|
15
|
+
search = signal('', ...(ngDevMode ? [{ debugName: "search" }] : []));
|
|
16
|
+
selectedItems = signal([], ...(ngDevMode ? [{ debugName: "selectedItems" }] : [])); // full objects for display
|
|
17
|
+
isDisabled = false;
|
|
18
|
+
isFormBound = false;
|
|
19
|
+
/** Filtered **labels** for hlm-autocomplete */
|
|
20
|
+
filteredOptionLabels = computed(() => (this.options() || [])
|
|
21
|
+
.filter((opt) => opt.label.toLowerCase().includes(this.search().toLowerCase()) &&
|
|
22
|
+
!this.selectedItems().some((sel) => sel.value === opt.value))
|
|
23
|
+
.map((opt) => opt.label), ...(ngDevMode ? [{ debugName: "filteredOptionLabels" }] : []));
|
|
24
|
+
/** Form callbacks */
|
|
25
|
+
onChange = () => { };
|
|
26
|
+
onTouched = () => { };
|
|
27
|
+
constructor() {
|
|
28
|
+
// Sync `value` input to selectedItems for standalone usage
|
|
29
|
+
effect(() => {
|
|
30
|
+
if (!this.isFormBound) {
|
|
31
|
+
this.updateSelectedFromValues(this.value() || []);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/** Add by label string (from autocomplete) */
|
|
36
|
+
addItemByLabel(label) {
|
|
37
|
+
const opt = this.options()?.find((o) => o.label === label);
|
|
38
|
+
if (opt) {
|
|
39
|
+
this.addItem(opt.value);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/** Add by value string */
|
|
43
|
+
addItem(value) {
|
|
44
|
+
if (!this.selectedItems().some((sel) => sel.value === value)) {
|
|
45
|
+
const opt = this.options()?.find((o) => o.value === value);
|
|
46
|
+
if (!opt)
|
|
47
|
+
return;
|
|
48
|
+
const updatedItems = [...this.selectedItems(), opt];
|
|
49
|
+
this.updateValueFromSelected(updatedItems);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/** Remove by value string */
|
|
53
|
+
removeItem(value) {
|
|
54
|
+
const updatedItems = this.selectedItems().filter((i) => i.value !== value);
|
|
55
|
+
this.updateValueFromSelected(updatedItems);
|
|
56
|
+
}
|
|
57
|
+
/** Clear autocomplete text */
|
|
58
|
+
clearAutocompleteText() {
|
|
59
|
+
this.autoComplete()?.clearText();
|
|
60
|
+
if (this.options().length === this.selectedItems().length) {
|
|
61
|
+
this.autoComplete()?.setPopoverState('closed');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
handleSelect(label) {
|
|
65
|
+
this.clearAutocompleteText();
|
|
66
|
+
}
|
|
67
|
+
/** Map string[] values → full objects */
|
|
68
|
+
updateSelectedFromValues(values) {
|
|
69
|
+
const opts = this.options() || [];
|
|
70
|
+
const matched = opts.filter((o) => values.includes(o.value));
|
|
71
|
+
this.selectedItems.set(matched);
|
|
72
|
+
}
|
|
73
|
+
/** Map full objects → string[] values and emit */
|
|
74
|
+
updateValueFromSelected(items) {
|
|
75
|
+
this.selectedItems.set(items);
|
|
76
|
+
const values = items.map((i) => i.value);
|
|
77
|
+
this.valueChange.emit(values);
|
|
78
|
+
this.onChange(values);
|
|
79
|
+
this.onTouched();
|
|
80
|
+
}
|
|
81
|
+
// --- ControlValueAccessor ---
|
|
82
|
+
writeValue(values) {
|
|
83
|
+
this.isFormBound = true;
|
|
84
|
+
this.updateSelectedFromValues(values || []);
|
|
85
|
+
}
|
|
86
|
+
registerOnChange(fn) {
|
|
87
|
+
this.onChange = fn;
|
|
88
|
+
}
|
|
89
|
+
registerOnTouched(fn) {
|
|
90
|
+
this.onTouched = fn;
|
|
91
|
+
}
|
|
92
|
+
setDisabledState(isDisabled) {
|
|
93
|
+
this.isDisabled = isDisabled;
|
|
94
|
+
}
|
|
95
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EgSearchableMultiselect, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
96
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: EgSearchableMultiselect, isStandalone: true, selector: "eg-searchable-multiselect", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, providers: [
|
|
97
|
+
{
|
|
98
|
+
provide: NG_VALUE_ACCESSOR,
|
|
99
|
+
useExisting: forwardRef(() => EgSearchableMultiselect),
|
|
100
|
+
multi: true,
|
|
101
|
+
},
|
|
102
|
+
], viewQueries: [{ propertyName: "autoComplete", first: true, predicate: HlmAutocomplete, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
103
|
+
<div class="tw:flex tw:flex-col tw:gap-2 tw:w-full">
|
|
104
|
+
<!-- Selected items -->
|
|
105
|
+
<div
|
|
106
|
+
class="tw:flex tw:gap-2 tw:overflow-x-auto tw:whitespace-nowrap
|
|
107
|
+
tw:[scrollbar-width:none] tw:[-ms-overflow-style:none]
|
|
108
|
+
tw:[&::-webkit-scrollbar]:hidden"
|
|
109
|
+
>
|
|
110
|
+
@if (selectedItems().length === 0) {
|
|
111
|
+
<span
|
|
112
|
+
class="tw:bg-gray-100 tw:text-gray-400 tw:rounded-full
|
|
113
|
+
tw:px-2 tw:py-1 tw:inline-flex tw:items-center tw:text-xs"
|
|
114
|
+
>
|
|
115
|
+
{{ placeholder() }}
|
|
116
|
+
</span>
|
|
117
|
+
} @else {
|
|
118
|
+
@for (item of selectedItems(); track item.value) {
|
|
119
|
+
<span
|
|
120
|
+
class="tw:bg-gray-200 tw:rounded-full tw:px-2 tw:py-1
|
|
121
|
+
tw:inline-flex tw:items-center tw:gap-2 tw:text-xs"
|
|
122
|
+
>
|
|
123
|
+
{{ item.label }}
|
|
124
|
+
<button
|
|
125
|
+
type="button"
|
|
126
|
+
(click)="removeItem(item.value)"
|
|
127
|
+
class="tw:bg-transparent tw:border-0 tw:text-gray-600
|
|
128
|
+
tw:hover:text-red-500 tw:cursor-pointer"
|
|
129
|
+
>
|
|
130
|
+
✕
|
|
131
|
+
</button>
|
|
132
|
+
</span>
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<!-- Autocomplete -->
|
|
138
|
+
<hlm-autocomplete
|
|
139
|
+
[filteredOptions]="filteredOptionLabels()"
|
|
140
|
+
[(search)]="search"
|
|
141
|
+
(valueChange)="addItemByLabel($event)"
|
|
142
|
+
[searchPlaceholderText]="this.selectedItems().length.toString() + ' of ' + this.options().length + ' selected'"
|
|
143
|
+
[onSelect]="handleSelect.bind(this)"
|
|
144
|
+
[disabled]="isDisabled"
|
|
145
|
+
/>
|
|
146
|
+
</div>
|
|
147
|
+
`, isInline: true, dependencies: [{ kind: "component", type: HlmAutocomplete, selector: "hlm-autocomplete", inputs: ["onSelect", "class", "autocompleteListClass", "autocompleteEmptyClass", "filteredOptions", "value", "search", "transformValueToSearch", "optionTemplate", "loading", "searchPlaceholderText", "loadingText", "emptyText", "ariaLabelToggleButton", "inputId", "disabled"], outputs: ["valueChange", "searchChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
148
|
+
}
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EgSearchableMultiselect, decorators: [{
|
|
150
|
+
type: Component,
|
|
151
|
+
args: [{
|
|
152
|
+
selector: 'eg-searchable-multiselect',
|
|
153
|
+
standalone: true,
|
|
154
|
+
imports: [HlmAutocomplete],
|
|
155
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
156
|
+
providers: [
|
|
157
|
+
{
|
|
158
|
+
provide: NG_VALUE_ACCESSOR,
|
|
159
|
+
useExisting: forwardRef(() => EgSearchableMultiselect),
|
|
160
|
+
multi: true,
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
template: `
|
|
164
|
+
<div class="tw:flex tw:flex-col tw:gap-2 tw:w-full">
|
|
165
|
+
<!-- Selected items -->
|
|
166
|
+
<div
|
|
167
|
+
class="tw:flex tw:gap-2 tw:overflow-x-auto tw:whitespace-nowrap
|
|
168
|
+
tw:[scrollbar-width:none] tw:[-ms-overflow-style:none]
|
|
169
|
+
tw:[&::-webkit-scrollbar]:hidden"
|
|
170
|
+
>
|
|
171
|
+
@if (selectedItems().length === 0) {
|
|
172
|
+
<span
|
|
173
|
+
class="tw:bg-gray-100 tw:text-gray-400 tw:rounded-full
|
|
174
|
+
tw:px-2 tw:py-1 tw:inline-flex tw:items-center tw:text-xs"
|
|
175
|
+
>
|
|
176
|
+
{{ placeholder() }}
|
|
177
|
+
</span>
|
|
178
|
+
} @else {
|
|
179
|
+
@for (item of selectedItems(); track item.value) {
|
|
180
|
+
<span
|
|
181
|
+
class="tw:bg-gray-200 tw:rounded-full tw:px-2 tw:py-1
|
|
182
|
+
tw:inline-flex tw:items-center tw:gap-2 tw:text-xs"
|
|
183
|
+
>
|
|
184
|
+
{{ item.label }}
|
|
185
|
+
<button
|
|
186
|
+
type="button"
|
|
187
|
+
(click)="removeItem(item.value)"
|
|
188
|
+
class="tw:bg-transparent tw:border-0 tw:text-gray-600
|
|
189
|
+
tw:hover:text-red-500 tw:cursor-pointer"
|
|
190
|
+
>
|
|
191
|
+
✕
|
|
192
|
+
</button>
|
|
193
|
+
</span>
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<!-- Autocomplete -->
|
|
199
|
+
<hlm-autocomplete
|
|
200
|
+
[filteredOptions]="filteredOptionLabels()"
|
|
201
|
+
[(search)]="search"
|
|
202
|
+
(valueChange)="addItemByLabel($event)"
|
|
203
|
+
[searchPlaceholderText]="this.selectedItems().length.toString() + ' of ' + this.options().length + ' selected'"
|
|
204
|
+
[onSelect]="handleSelect.bind(this)"
|
|
205
|
+
[disabled]="isDisabled"
|
|
206
|
+
/>
|
|
207
|
+
</div>
|
|
208
|
+
`,
|
|
209
|
+
}]
|
|
210
|
+
}], ctorParameters: () => [] });
|
|
211
|
+
|
|
212
|
+
/*
|
|
213
|
+
* Public API Surface of searchable-multiselect
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Generated bundle index. Do not edit.
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
export { EgSearchableMultiselect };
|
|
221
|
+
//# sourceMappingURL=searchable-multiselect.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchable-multiselect.mjs","sources":["../../../projects/searchable-multiselect/src/lib/searchable-multiselect.ts","../../../projects/searchable-multiselect/src/public-api.ts","../../../projects/searchable-multiselect/src/searchable-multiselect.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n signal,\n input,\n output,\n viewChild,\n effect,\n forwardRef,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { HlmAutocomplete } from '@egose/shadcn-theme-ng/autocomplete';\n\nexport interface SelectOption {\n label: string;\n value: string;\n}\n\n@Component({\n selector: 'eg-searchable-multiselect',\n standalone: true,\n imports: [HlmAutocomplete],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => EgSearchableMultiselect),\n multi: true,\n },\n ],\n template: `\n <div class=\"tw:flex tw:flex-col tw:gap-2 tw:w-full\">\n <!-- Selected items -->\n <div\n class=\"tw:flex tw:gap-2 tw:overflow-x-auto tw:whitespace-nowrap\n tw:[scrollbar-width:none] tw:[-ms-overflow-style:none]\n tw:[&::-webkit-scrollbar]:hidden\"\n >\n @if (selectedItems().length === 0) {\n <span\n class=\"tw:bg-gray-100 tw:text-gray-400 tw:rounded-full\n tw:px-2 tw:py-1 tw:inline-flex tw:items-center tw:text-xs\"\n >\n {{ placeholder() }}\n </span>\n } @else {\n @for (item of selectedItems(); track item.value) {\n <span\n class=\"tw:bg-gray-200 tw:rounded-full tw:px-2 tw:py-1\n tw:inline-flex tw:items-center tw:gap-2 tw:text-xs\"\n >\n {{ item.label }}\n <button\n type=\"button\"\n (click)=\"removeItem(item.value)\"\n class=\"tw:bg-transparent tw:border-0 tw:text-gray-600\n tw:hover:text-red-500 tw:cursor-pointer\"\n >\n ✕\n </button>\n </span>\n }\n }\n </div>\n\n <!-- Autocomplete -->\n <hlm-autocomplete\n [filteredOptions]=\"filteredOptionLabels()\"\n [(search)]=\"search\"\n (valueChange)=\"addItemByLabel($event)\"\n [searchPlaceholderText]=\"this.selectedItems().length.toString() + ' of ' + this.options().length + ' selected'\"\n [onSelect]=\"handleSelect.bind(this)\"\n [disabled]=\"isDisabled\"\n />\n </div>\n `,\n})\nexport class EgSearchableMultiselect implements ControlValueAccessor {\n autoComplete = viewChild(HlmAutocomplete);\n\n /** Full option list with labels/values */\n options = input<SelectOption[]>([]);\n placeholder = input<string>('Start typing to add…');\n\n /** Value: array of selected values (string[]) */\n value = input<string[]>([]);\n valueChange = output<string[]>(); // emits string[] of values\n\n /** Internal state */\n search = signal<string>('');\n selectedItems = signal<SelectOption[]>([]); // full objects for display\n isDisabled = false;\n private isFormBound = false;\n\n /** Filtered **labels** for hlm-autocomplete */\n filteredOptionLabels = computed(\n () =>\n (this.options() || [])\n .filter(\n (opt) =>\n opt.label.toLowerCase().includes(this.search().toLowerCase()) &&\n !this.selectedItems().some((sel) => sel.value === opt.value),\n )\n .map((opt) => opt.label), // convert to string[] for hlm-autocomplete\n );\n\n /** Form callbacks */\n private onChange: (value: string[]) => void = () => {};\n private onTouched: () => void = () => {};\n\n constructor() {\n // Sync `value` input to selectedItems for standalone usage\n effect(() => {\n if (!this.isFormBound) {\n this.updateSelectedFromValues(this.value() || []);\n }\n });\n }\n\n /** Add by label string (from autocomplete) */\n addItemByLabel(label: string) {\n const opt = this.options()?.find((o) => o.label === label);\n if (opt) {\n this.addItem(opt.value);\n }\n }\n\n /** Add by value string */\n addItem(value: string) {\n if (!this.selectedItems().some((sel) => sel.value === value)) {\n const opt = this.options()?.find((o) => o.value === value);\n if (!opt) return;\n const updatedItems = [...this.selectedItems(), opt];\n this.updateValueFromSelected(updatedItems);\n }\n }\n\n /** Remove by value string */\n removeItem(value: string) {\n const updatedItems = this.selectedItems().filter((i) => i.value !== value);\n this.updateValueFromSelected(updatedItems);\n }\n\n /** Clear autocomplete text */\n clearAutocompleteText() {\n this.autoComplete()?.clearText();\n\n if (this.options().length === this.selectedItems().length) {\n this.autoComplete()?.setPopoverState('closed');\n }\n }\n\n handleSelect(label: string) {\n this.clearAutocompleteText();\n }\n\n /** Map string[] values → full objects */\n private updateSelectedFromValues(values: string[]) {\n const opts = this.options() || [];\n const matched = opts.filter((o) => values.includes(o.value));\n this.selectedItems.set(matched);\n }\n\n /** Map full objects → string[] values and emit */\n private updateValueFromSelected(items: SelectOption[]) {\n this.selectedItems.set(items);\n const values = items.map((i) => i.value);\n this.valueChange.emit(values);\n this.onChange(values);\n this.onTouched();\n }\n\n // --- ControlValueAccessor ---\n writeValue(values: string[] | null): void {\n this.isFormBound = true;\n this.updateSelectedFromValues(values || []);\n }\n\n registerOnChange(fn: (value: string[]) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled = isDisabled;\n }\n}\n","/*\n * Public API Surface of searchable-multiselect\n */\n\nexport * from './lib/searchable-multiselect';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MA8Ea,uBAAuB,CAAA;AAClC,IAAA,YAAY,GAAG,SAAS,CAAC,eAAe,wDAAC;;AAGzC,IAAA,OAAO,GAAG,KAAK,CAAiB,EAAE,mDAAC;AACnC,IAAA,WAAW,GAAG,KAAK,CAAS,sBAAsB,uDAAC;;AAGnD,IAAA,KAAK,GAAG,KAAK,CAAW,EAAE,iDAAC;AAC3B,IAAA,WAAW,GAAG,MAAM,EAAY,CAAC;;AAGjC,IAAA,MAAM,GAAG,MAAM,CAAS,EAAE,kDAAC;AAC3B,IAAA,aAAa,GAAG,MAAM,CAAiB,EAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,eAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC,CAAC;IAC3C,UAAU,GAAG,KAAK;IACV,W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A;AACT,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,6BAA6B,CAAC;AACtD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CT,EAAA,CAAA;AACF,iBAAA;;;AC7ED;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { HlmAutocomplete } from '@egose/shadcn-theme-ng/autocomplete';
|
|
4
|
+
|
|
5
|
+
interface SelectOption {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
declare class EgSearchableMultiselect implements ControlValueAccessor {
|
|
10
|
+
autoComplete: _angular_core.Signal<HlmAutocomplete<any> | undefined>;
|
|
11
|
+
/** Full option list with labels/values */
|
|
12
|
+
options: _angular_core.InputSignal<SelectOption[]>;
|
|
13
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
14
|
+
/** Value: array of selected values (string[]) */
|
|
15
|
+
value: _angular_core.InputSignal<string[]>;
|
|
16
|
+
valueChange: _angular_core.OutputEmitterRef<string[]>;
|
|
17
|
+
/** Internal state */
|
|
18
|
+
search: _angular_core.WritableSignal<string>;
|
|
19
|
+
selectedItems: _angular_core.WritableSignal<SelectOption[]>;
|
|
20
|
+
isDisabled: boolean;
|
|
21
|
+
private isFormBound;
|
|
22
|
+
/** Filtered **labels** for hlm-autocomplete */
|
|
23
|
+
filteredOptionLabels: _angular_core.Signal<string[]>;
|
|
24
|
+
/** Form callbacks */
|
|
25
|
+
private onChange;
|
|
26
|
+
private onTouched;
|
|
27
|
+
constructor();
|
|
28
|
+
/** Add by label string (from autocomplete) */
|
|
29
|
+
addItemByLabel(label: string): void;
|
|
30
|
+
/** Add by value string */
|
|
31
|
+
addItem(value: string): void;
|
|
32
|
+
/** Remove by value string */
|
|
33
|
+
removeItem(value: string): void;
|
|
34
|
+
/** Clear autocomplete text */
|
|
35
|
+
clearAutocompleteText(): void;
|
|
36
|
+
handleSelect(label: string): void;
|
|
37
|
+
/** Map string[] values → full objects */
|
|
38
|
+
private updateSelectedFromValues;
|
|
39
|
+
/** Map full objects → string[] values and emit */
|
|
40
|
+
private updateValueFromSelected;
|
|
41
|
+
writeValue(values: string[] | null): void;
|
|
42
|
+
registerOnChange(fn: (value: string[]) => void): void;
|
|
43
|
+
registerOnTouched(fn: () => void): void;
|
|
44
|
+
setDisabledState(isDisabled: boolean): void;
|
|
45
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EgSearchableMultiselect, never>;
|
|
46
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EgSearchableMultiselect, "eg-searchable-multiselect", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { EgSearchableMultiselect };
|
|
50
|
+
export type { SelectOption };
|
|
@@ -12,10 +12,10 @@ import { cva } from 'class-variance-authority';
|
|
|
12
12
|
class HlmSelect {
|
|
13
13
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
14
14
|
_computedClass = computed(() => hlm('tw:space-y-2', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmSelect, isStandalone: true, selector: "hlm-select, brn-select [hlm]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelect, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: 'hlm-select, brn-select [hlm]',
|
|
@@ -33,10 +33,10 @@ class HlmSelectContent {
|
|
|
33
33
|
_stateProvider = injectExposesStateProvider({ optional: true });
|
|
34
34
|
_sideProvider = injectExposedSideProvider({ optional: true });
|
|
35
35
|
_computedClass = computed(() => hlm('tw:border-border tw:bg-popover tw:text-popover-foreground tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:data-[side=bottom]:slide-in-from-top-2 tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 tw:data-[side=top]:slide-in-from-bottom-2 tw:relative tw:z-50 tw:w-full tw:min-w-[8rem] tw:overflow-hidden tw:rounded-md tw:border tw:p-1 tw:shadow-md tw:data-[side=bottom]:top-[2px] tw:data-[side=top]:bottom-[2px]', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
37
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
37
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmSelectContent, isStandalone: true, selector: "[hlmSelectContent], hlm-select-content", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stickyLabels: { classPropertyName: "stickyLabels", publicName: "stickyLabels", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()", "attr.data-state": "_stateProvider?.state() ?? \"open\"", "attr.data-side": "_sideProvider?.side() ?? \"bottom\"" } }, ngImport: i0 });
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectContent, decorators: [{
|
|
40
40
|
type: Directive,
|
|
41
41
|
args: [{
|
|
42
42
|
selector: '[hlmSelectContent], hlm-select-content',
|
|
@@ -51,10 +51,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
51
51
|
class HlmSelectGroup {
|
|
52
52
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
53
53
|
_computedClass = computed(() => hlm(this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
55
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmSelectGroup, isStandalone: true, selector: "[hlmSelectGroup], hlm-select-group", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnSelectGroup }], ngImport: i0 });
|
|
56
56
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectGroup, decorators: [{
|
|
58
58
|
type: Directive,
|
|
59
59
|
args: [{
|
|
60
60
|
selector: '[hlmSelectGroup], hlm-select-group',
|
|
@@ -70,10 +70,10 @@ class HlmSelectLabel {
|
|
|
70
70
|
_stickyLabels = computed(() => this._selectContent.stickyLabels(), ...(ngDevMode ? [{ debugName: "_stickyLabels" }] : []));
|
|
71
71
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
72
72
|
_computedClass = computed(() => hlm('tw:text-muted-foreground tw:px-2 tw:py-1.5 tw:text-xs', this._stickyLabels() ? 'tw:bg-popover tw:sticky tw:top-0 tw:z-[2] tw:block' : '', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
73
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
74
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
73
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
74
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmSelectLabel, isStandalone: true, selector: "[hlmSelectLabel], hlm-select-label", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnSelectLabel }], ngImport: i0 });
|
|
75
75
|
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectLabel, decorators: [{
|
|
77
77
|
type: Directive,
|
|
78
78
|
args: [{
|
|
79
79
|
selector: '[hlmSelectLabel], hlm-select-label',
|
|
@@ -88,8 +88,8 @@ class HlmSelectOption {
|
|
|
88
88
|
_brnSelectOption = inject(BrnSelectOption, { host: true });
|
|
89
89
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
90
90
|
_computedClass = computed(() => hlm('tw:data-[active]:bg-accent tw:data-[active]:text-accent-foreground tw:[&>ng-icon]:text-muted-foreground tw:*:[span]:last:flex tw:*:[span]:last:items-center tw:*:[span]:last:gap-2 tw:relative tw:flex tw:w-full tw:cursor-default tw:select-none tw:items-center tw:gap-2 tw:rounded-sm tw:py-1.5 tw:pl-2 tw:pr-8 tw:text-sm tw:outline-none tw:data-[disabled]:pointer-events-none tw:data-[disabled]:opacity-50 tw:[&>ng-icon]:pointer-events-none tw:[&>ng-icon]:size-4 tw:[&>ng-icon]:shrink-0', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
91
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
92
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
91
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
92
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: HlmSelectOption, isStandalone: true, selector: "hlm-option", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [provideIcons({ lucideCheck })], hostDirectives: [{ directive: i1.BrnSelectOption, inputs: ["disabled", "disabled", "value", "value"] }], ngImport: i0, template: `
|
|
93
93
|
<span class="tw:absolute tw:right-2 tw:flex tw:size-3.5 tw:items-center tw:justify-center">
|
|
94
94
|
@if (this._brnSelectOption.selected()) {
|
|
95
95
|
<ng-icon hlm size="sm" aria-hidden="true" name="lucideCheck" />
|
|
@@ -99,7 +99,7 @@ class HlmSelectOption {
|
|
|
99
99
|
<ng-content />
|
|
100
100
|
`, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: HlmIcon, selector: "ng-icon[hlm]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
101
101
|
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectOption, decorators: [{
|
|
103
103
|
type: Component,
|
|
104
104
|
args: [{
|
|
105
105
|
selector: 'hlm-option',
|
|
@@ -125,10 +125,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
125
125
|
class HlmSelectScrollDown {
|
|
126
126
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
127
127
|
_computedClass = computed(() => hlm('tw:flex cursor-default tw:items-center tw:justify-center tw:py-1', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
128
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
129
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
128
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectScrollDown, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
129
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmSelectScrollDown, isStandalone: true, selector: "hlm-select-scroll-down", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [provideIcons({ lucideChevronDown })], ngImport: i0, template: ` <ng-icon hlm size="sm" class="tw:ml-2" name="lucideChevronDown" /> `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: HlmIcon, selector: "ng-icon[hlm]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
130
130
|
}
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectScrollDown, decorators: [{
|
|
132
132
|
type: Component,
|
|
133
133
|
args: [{
|
|
134
134
|
selector: 'hlm-select-scroll-down',
|
|
@@ -145,10 +145,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
145
145
|
class HlmSelectScrollUp {
|
|
146
146
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
147
147
|
_computedClass = computed(() => hlm('tw:flex tw:cursor-default tw:items-center tw:justify-center tw:py-1', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
148
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
149
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
148
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectScrollUp, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
149
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmSelectScrollUp, isStandalone: true, selector: "hlm-select-scroll-up", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [provideIcons({ lucideChevronUp })], ngImport: i0, template: ` <ng-icon hlm size="sm" class="tw:ml-2" name="lucideChevronUp" /> `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: HlmIcon, selector: "ng-icon[hlm]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
150
150
|
}
|
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectScrollUp, decorators: [{
|
|
152
152
|
type: Component,
|
|
153
153
|
args: [{
|
|
154
154
|
selector: 'hlm-select-scroll-up',
|
|
@@ -179,8 +179,8 @@ class HlmSelectTrigger {
|
|
|
179
179
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
180
180
|
size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
181
181
|
_computedClass = computed(() => hlm(selectTriggerVariants({ error: this._brnSelect?.errorState() }), this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
182
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
183
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectTrigger, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: HlmSelectTrigger, isStandalone: true, selector: "hlm-select-trigger", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideChevronDown })], queries: [{ propertyName: "_icon", first: true, predicate: HlmIcon, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
184
184
|
<button [class]="_computedClass()" #button egInput brnSelectTrigger type="button" [attr.data-size]="size()">
|
|
185
185
|
<ng-content />
|
|
186
186
|
@if (_icon()) {
|
|
@@ -191,7 +191,7 @@ class HlmSelectTrigger {
|
|
|
191
191
|
</button>
|
|
192
192
|
`, isInline: true, dependencies: [{ kind: "directive", type: BrnSelectTrigger, selector: "[brnSelectTrigger]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: HlmIcon, selector: "ng-icon[hlm]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
193
193
|
}
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectTrigger, decorators: [{
|
|
195
195
|
type: Component,
|
|
196
196
|
args: [{
|
|
197
197
|
selector: 'hlm-select-trigger',
|
|
@@ -214,10 +214,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
214
214
|
class HlmSelectValue {
|
|
215
215
|
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
216
216
|
_computedClass = computed(() => hlm('tw:data-[placeholder]:text-muted-foreground tw:line-clamp-1 tw:flex tw:items-center tw:gap-2', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
217
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
218
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectValue, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
218
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmSelectValue, isStandalone: true, selector: "hlm-select-value,[hlmSelectValue], brn-select-value[hlm]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
|
|
219
219
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectValue, decorators: [{
|
|
221
221
|
type: Directive,
|
|
222
222
|
args: [{
|
|
223
223
|
selector: 'hlm-select-value,[hlmSelectValue], brn-select-value[hlm]',
|
|
@@ -242,8 +242,8 @@ const HlmSelectImports = [
|
|
|
242
242
|
HlmSelectGroup,
|
|
243
243
|
];
|
|
244
244
|
class HlmSelectModule {
|
|
245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
246
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
246
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectModule, imports: [HlmSelectContent,
|
|
247
247
|
HlmSelectTrigger,
|
|
248
248
|
HlmSelectOption,
|
|
249
249
|
HlmSelectValue,
|
|
@@ -260,12 +260,12 @@ class HlmSelectModule {
|
|
|
260
260
|
HlmSelectScrollDown,
|
|
261
261
|
HlmSelectLabel,
|
|
262
262
|
HlmSelectGroup] });
|
|
263
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
263
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectModule, imports: [HlmSelectTrigger,
|
|
264
264
|
HlmSelectOption,
|
|
265
265
|
HlmSelectScrollUp,
|
|
266
266
|
HlmSelectScrollDown] });
|
|
267
267
|
}
|
|
268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSelectModule, decorators: [{
|
|
269
269
|
type: NgModule,
|
|
270
270
|
args: [{
|
|
271
271
|
imports: [...HlmSelectImports],
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Separator
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build separator
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
cd dist/separator
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
40
|
+
```bash
|
|
41
|
+
npm publish
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Running unit tests
|
|
45
|
+
|
|
46
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
ng test
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Running end-to-end tests
|
|
53
|
+
|
|
54
|
+
For end-to-end (e2e) testing, run:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
ng e2e
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
61
|
+
|
|
62
|
+
## Additional Resources
|
|
63
|
+
|
|
64
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, computed, Directive, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@spartan-ng/brain/separator';
|
|
4
|
+
import { BrnSeparator } from '@spartan-ng/brain/separator';
|
|
5
|
+
import { hlm } from '@egose/shadcn-theme-ng/utils';
|
|
6
|
+
|
|
7
|
+
class HlmSeparator {
|
|
8
|
+
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
9
|
+
_computedClass = computed(() => hlm('tw:bg-border tw:inline-flex tw:shrink-0 tw:data-[orientation=horizontal]:h-px tw:data-[orientation=vertical]:h-full tw:data-[orientation=horizontal]:w-full tw:data-[orientation=vertical]:w-px', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmSeparator, isStandalone: true, selector: "[hlmSeparator],hlm-separator", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnSeparator, inputs: ["orientation", "orientation", "decorative", "decorative"] }], ngImport: i0 });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSeparator, decorators: [{
|
|
14
|
+
type: Directive,
|
|
15
|
+
args: [{
|
|
16
|
+
selector: '[hlmSeparator],hlm-separator',
|
|
17
|
+
hostDirectives: [{ directive: BrnSeparator, inputs: ['orientation', 'decorative'] }],
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Public API Surface of separator
|
|
26
|
+
*/
|
|
27
|
+
const HlmSeparatorImports = [HlmSeparator];
|
|
28
|
+
class HlmSeparatorModule {
|
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSeparatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
30
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmSeparatorModule, imports: [HlmSeparator], exports: [HlmSeparator] });
|
|
31
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSeparatorModule });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmSeparatorModule, decorators: [{
|
|
34
|
+
type: NgModule,
|
|
35
|
+
args: [{
|
|
36
|
+
imports: [...HlmSeparatorImports],
|
|
37
|
+
exports: [...HlmSeparatorImports],
|
|
38
|
+
}]
|
|
39
|
+
}] });
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Generated bundle index. Do not edit.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
export { HlmSeparator, HlmSeparatorImports, HlmSeparatorModule };
|
|
46
|
+
//# sourceMappingURL=separator.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.mjs","sources":["../../../projects/separator/src/lib/separator.ts","../../../projects/separator/src/public-api.ts","../../../projects/separator/src/separator.ts"],"sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { BrnSeparator } from '@spartan-ng/brain/separator';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmSeparator],hlm-separator',\n hostDirectives: [{ directive: BrnSeparator, inputs: ['orientation', 'decorative'] }],\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmSeparator {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected _computedClass = computed(() =>\n hlm(\n 'tw:bg-border tw:inline-flex tw:shrink-0 tw:data-[orientation=horizontal]:h-px tw:data-[orientation=vertical]:h-full tw:data-[orientation=horizontal]:w-full tw:data-[orientation=vertical]:w-px',\n this.userClass(),\n ),\n );\n}\n","/*\n * Public API Surface of separator\n */\n\nimport { NgModule } from '@angular/core';\nimport { HlmSeparator } from './lib/separator';\n\nexport * from './lib/separator';\n\nexport const HlmSeparatorImports = [HlmSeparator] as const;\n\n@NgModule({\n imports: [...HlmSeparatorImports],\n exports: [...HlmSeparatorImports],\n})\nexport class HlmSeparatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAYa,YAAY,CAAA;AACP,IAAA,SAAS,GAAG,KAAK,CAAa,EAAE,6CAAI,KAAK,EAAE,OAAO,EAAA,CAAA,GAAA,CAAhB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAC;AAC3D,IAAA,cAAc,GAAG,QAAQ,CAAC,MAClC,GAAG,CACD,iMAAiM,EACjM,IAAI,CAAC,SAAS,EAAE,CACjB,0DACF;uGAPU,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,OAAA,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* as i0 from '@angular/core';
|
|
2
|
+
import { ClassValue } from 'clsx';
|
|
3
|
+
import * as i1 from '@spartan-ng/brain/separator';
|
|
4
|
+
|
|
5
|
+
declare class HlmSeparator {
|
|
6
|
+
readonly userClass: i0.InputSignal<ClassValue>;
|
|
7
|
+
protected _computedClass: i0.Signal<string>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmSeparator, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmSeparator, "[hlmSeparator],hlm-separator", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnSeparator; inputs: { "orientation": "orientation"; "decorative": "decorative"; }; outputs: {}; }]>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const HlmSeparatorImports: readonly [typeof HlmSeparator];
|
|
13
|
+
declare class HlmSeparatorModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmSeparatorModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmSeparatorModule, never, [typeof HlmSeparator], [typeof HlmSeparator]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HlmSeparatorModule>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { HlmSeparator, HlmSeparatorImports, HlmSeparatorModule };
|