@egose/shadcn-theme-ng-tw 0.0.14

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 (123) hide show
  1. package/README.md +2 -0
  2. package/accordion/README.md +64 -0
  3. package/accordion/fesm2022/accordion.mjs +155 -0
  4. package/accordion/fesm2022/accordion.mjs.map +1 -0
  5. package/accordion/index.d.ts +49 -0
  6. package/alert/README.md +64 -0
  7. package/alert/fesm2022/alert.mjs +189 -0
  8. package/alert/fesm2022/alert.mjs.map +1 -0
  9. package/alert/index.d.ts +49 -0
  10. package/autocomplete/README.md +64 -0
  11. package/autocomplete/fesm2022/autocomplete.mjs +543 -0
  12. package/autocomplete/fesm2022/autocomplete.mjs.map +1 -0
  13. package/autocomplete/index.d.ts +162 -0
  14. package/badge/README.md +64 -0
  15. package/badge/fesm2022/badge.mjs +137 -0
  16. package/badge/fesm2022/badge.mjs.map +1 -0
  17. package/badge/index.d.ts +33 -0
  18. package/basic-alert/README.md +64 -0
  19. package/basic-alert/fesm2022/basic-alert.mjs +103 -0
  20. package/basic-alert/fesm2022/basic-alert.mjs.map +1 -0
  21. package/basic-alert/index.d.ts +14 -0
  22. package/button/README.md +64 -0
  23. package/button/fesm2022/button.mjs +282 -0
  24. package/button/fesm2022/button.mjs.map +1 -0
  25. package/button/index.d.ts +52 -0
  26. package/calendar/README.md +64 -0
  27. package/calendar/fesm2022/calendar.mjs +637 -0
  28. package/calendar/fesm2022/calendar.mjs.map +1 -0
  29. package/calendar/index.d.ts +111 -0
  30. package/confirmation-dialog/README.md +64 -0
  31. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +93 -0
  32. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +1 -0
  33. package/confirmation-dialog/index.d.ts +24 -0
  34. package/date-picker/README.md +64 -0
  35. package/date-picker/fesm2022/date-picker.mjs +599 -0
  36. package/date-picker/fesm2022/date-picker.mjs.map +1 -0
  37. package/date-picker/index.d.ts +227 -0
  38. package/dialog/README.md +64 -0
  39. package/dialog/fesm2022/dialog.mjs +278 -0
  40. package/dialog/fesm2022/dialog.mjs.map +1 -0
  41. package/dialog/index.d.ts +89 -0
  42. package/exports.json +1 -0
  43. package/form-date-picker/README.md +64 -0
  44. package/form-date-picker/fesm2022/form-date-picker.mjs +146 -0
  45. package/form-date-picker/fesm2022/form-date-picker.mjs.map +1 -0
  46. package/form-date-picker/index.d.ts +32 -0
  47. package/form-field/README.md +64 -0
  48. package/form-field/fesm2022/form-field.mjs +112 -0
  49. package/form-field/fesm2022/form-field.mjs.map +1 -0
  50. package/form-field/index.d.ts +37 -0
  51. package/form-searchable-multiselect/README.md +64 -0
  52. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +124 -0
  53. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +1 -0
  54. package/form-searchable-multiselect/index.d.ts +28 -0
  55. package/form-select/README.md +64 -0
  56. package/form-select/fesm2022/form-select.mjs +165 -0
  57. package/form-select/fesm2022/form-select.mjs.map +1 -0
  58. package/form-select/index.d.ts +33 -0
  59. package/form-text-input/README.md +64 -0
  60. package/form-text-input/fesm2022/form-text-input.mjs +197 -0
  61. package/form-text-input/fesm2022/form-text-input.mjs.map +1 -0
  62. package/form-text-input/index.d.ts +47 -0
  63. package/form-textarea/README.md +64 -0
  64. package/form-textarea/fesm2022/form-textarea.mjs +156 -0
  65. package/form-textarea/fesm2022/form-textarea.mjs.map +1 -0
  66. package/form-textarea/index.d.ts +33 -0
  67. package/icon/README.md +64 -0
  68. package/icon/fesm2022/icon.mjs +71 -0
  69. package/icon/fesm2022/icon.mjs.map +1 -0
  70. package/icon/index.d.ts +27 -0
  71. package/input/README.md +64 -0
  72. package/input/fesm2022/input.mjs +97 -0
  73. package/input/fesm2022/input.mjs.map +1 -0
  74. package/input/index.d.ts +41 -0
  75. package/label/README.md +64 -0
  76. package/label/fesm2022/label.mjs +51 -0
  77. package/label/fesm2022/label.mjs.map +1 -0
  78. package/label/index.d.ts +19 -0
  79. package/package.json +139 -0
  80. package/popover/README.md +64 -0
  81. package/popover/fesm2022/popover.mjs +69 -0
  82. package/popover/fesm2022/popover.mjs.map +1 -0
  83. package/popover/index.d.ts +30 -0
  84. package/radio-group/README.md +64 -0
  85. package/radio-group/fesm2022/radio-group.mjs +170 -0
  86. package/radio-group/fesm2022/radio-group.mjs.map +1 -0
  87. package/radio-group/index.d.ts +63 -0
  88. package/searchable-multiselect/README.md +64 -0
  89. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +221 -0
  90. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +1 -0
  91. package/searchable-multiselect/index.d.ts +50 -0
  92. package/select/README.md +64 -0
  93. package/select/fesm2022/select.mjs +281 -0
  94. package/select/fesm2022/select.mjs.map +1 -0
  95. package/select/index.d.ts +92 -0
  96. package/separator/README.md +64 -0
  97. package/separator/fesm2022/separator.mjs +46 -0
  98. package/separator/fesm2022/separator.mjs.map +1 -0
  99. package/separator/index.d.ts +19 -0
  100. package/sonner/README.md +64 -0
  101. package/sonner/fesm2022/sonner.mjs +110 -0
  102. package/sonner/fesm2022/sonner.mjs.map +1 -0
  103. package/sonner/index.d.ts +32 -0
  104. package/spinner/README.md +64 -0
  105. package/spinner/fesm2022/spinner.mjs +67 -0
  106. package/spinner/fesm2022/spinner.mjs.map +1 -0
  107. package/spinner/index.d.ts +25 -0
  108. package/switch/README.md +64 -0
  109. package/switch/fesm2022/switch.mjs +139 -0
  110. package/switch/fesm2022/switch.mjs.map +1 -0
  111. package/switch/index.d.ts +56 -0
  112. package/tabs/README.md +64 -0
  113. package/tabs/fesm2022/tabs.mjs +258 -0
  114. package/tabs/fesm2022/tabs.mjs.map +1 -0
  115. package/tabs/index.d.ts +71 -0
  116. package/tooltip/README.md +64 -0
  117. package/tooltip/fesm2022/tooltip.mjs +93 -0
  118. package/tooltip/fesm2022/tooltip.mjs.map +1 -0
  119. package/tooltip/index.d.ts +21 -0
  120. package/utils/README.md +64 -0
  121. package/utils/fesm2022/utils.mjs +17 -0
  122. package/utils/fesm2022/utils.mjs.map +1 -0
  123. package/utils/index.d.ts +5 -0
@@ -0,0 +1,146 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, Component } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { ReactiveFormsModule, FormGroupDirective, ControlContainer } from '@angular/forms';
5
+ import { HlmFormField, HlmError, HlmHint } from '@egose/shadcn-theme-ng/form-field';
6
+ import { HlmLabel } from '@egose/shadcn-theme-ng/label';
7
+ import { HlmDatePicker } from '@egose/shadcn-theme-ng/date-picker';
8
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
9
+
10
+ let nextId = 0;
11
+ class EgFormDatePicker {
12
+ // Inputs
13
+ label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : []));
14
+ controlName = input('', ...(ngDevMode ? [{ debugName: "controlName" }] : []));
15
+ error = input(undefined, ...(ngDevMode ? [{ debugName: "error" }] : []));
16
+ hint = input(undefined, ...(ngDevMode ? [{ debugName: "hint" }] : []));
17
+ // HTML attributes
18
+ id = input(`eg-form-date-picker-${nextId++}`, ...(ngDevMode ? [{ debugName: "id" }] : []));
19
+ name = input(undefined, ...(ngDevMode ? [{ debugName: "name" }] : []));
20
+ placeholder = input('Pick a date', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
21
+ readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
22
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
23
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
24
+ min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : []));
25
+ max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : []));
26
+ autoCloseOnSelect = input(true, ...(ngDevMode ? [{ debugName: "autoCloseOnSelect" }] : []));
27
+ // Styling
28
+ userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
29
+ labelClass = input('', ...(ngDevMode ? [{ debugName: "labelClass" }] : []));
30
+ pickerClass = input('', ...(ngDevMode ? [{ debugName: "pickerClass" }] : []));
31
+ errorClass = input('', ...(ngDevMode ? [{ debugName: "errorClass" }] : []));
32
+ hintClass = input('', ...(ngDevMode ? [{ debugName: "hintClass" }] : []));
33
+ // Computed classes
34
+ $userClass = computed(() => hlm('tw:flex tw:flex-col', this.userClass()), ...(ngDevMode ? [{ debugName: "$userClass" }] : []));
35
+ $labelClass = computed(() => hlm('tw:mb-1', this.labelClass()), ...(ngDevMode ? [{ debugName: "$labelClass" }] : []));
36
+ $pickerClass = computed(() => hlm('tw:mb-1', this.pickerClass()), ...(ngDevMode ? [{ debugName: "$pickerClass" }] : []));
37
+ $errorClass = computed(() => hlm('tw:mt-0', this.errorClass()), ...(ngDevMode ? [{ debugName: "$errorClass" }] : []));
38
+ $hintClass = computed(() => hlm('tw:mt-0', this.hintClass()), ...(ngDevMode ? [{ debugName: "$hintClass" }] : []));
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EgFormDatePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
40
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: EgFormDatePicker, isStandalone: true, selector: "eg-form-date-picker", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, controlName: { classPropertyName: "controlName", publicName: "controlName", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", 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 }, autoCloseOnSelect: { classPropertyName: "autoCloseOnSelect", publicName: "autoCloseOnSelect", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, labelClass: { classPropertyName: "labelClass", publicName: "labelClass", isSignal: true, isRequired: false, transformFunction: null }, pickerClass: { classPropertyName: "pickerClass", publicName: "pickerClass", isSignal: true, isRequired: false, transformFunction: null }, errorClass: { classPropertyName: "errorClass", publicName: "errorClass", isSignal: true, isRequired: false, transformFunction: null }, hintClass: { classPropertyName: "hintClass", publicName: "hintClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "tw:w-full" }, providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }], ngImport: i0, template: `
41
+ @let lbl = label();
42
+ @let nm = controlName();
43
+ @let err = error();
44
+ @let hnt = hint();
45
+ @let rqrd = required();
46
+
47
+ <hlm-form-field>
48
+ @if (lbl) {
49
+ <span hlmLabel [class]="$labelClass()">{{ lbl }}
50
+ @if (rqrd) {
51
+ <span class="tw:text-red-500">*</span>
52
+ }
53
+ </span>
54
+ }
55
+
56
+ <hlm-date-picker
57
+ [buttonId]="id()"
58
+ [min]="min()"
59
+ [max]="max()"
60
+ [formControlName]="nm"
61
+ [autoCloseOnSelect]="autoCloseOnSelect()"
62
+ [required]="rqrd"
63
+ [class]="$pickerClass()"
64
+ >
65
+ <span>{{ placeholder() }}</span>
66
+ </hlm-date-picker>
67
+
68
+ @if (err) {
69
+ <hlm-error [class]="$errorClass()">
70
+ {{ err }}
71
+ </hlm-error>
72
+ }
73
+
74
+ @if (hnt) {
75
+ <hlm-hint [class]="$hintClass()">
76
+ {{ hnt }}
77
+ </hlm-hint>
78
+ }
79
+ </hlm-form-field>
80
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: HlmFormField, selector: "hlm-form-field", inputs: ["class"] }, { kind: "directive", type: HlmError, selector: "hlm-error", inputs: ["class"] }, { kind: "directive", type: HlmHint, selector: "hlm-hint", inputs: ["class"] }, { kind: "directive", type: HlmLabel, selector: "[hlmLabel]", inputs: ["class"] }, { kind: "component", type: HlmDatePicker, selector: "hlm-date-picker", inputs: ["class", "buttonId", "min", "max", "disabled", "date", "autoCloseOnSelect", "formatDate", "transformDate"], outputs: ["dateChange"] }] });
81
+ }
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EgFormDatePicker, decorators: [{
83
+ type: Component,
84
+ args: [{
85
+ selector: 'eg-form-date-picker',
86
+ standalone: true,
87
+ host: {
88
+ class: 'tw:w-full',
89
+ },
90
+ imports: [ReactiveFormsModule, HlmFormField, HlmError, HlmHint, HlmLabel, HlmDatePicker],
91
+ providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }],
92
+ // prettier-ignore
93
+ template: `
94
+ @let lbl = label();
95
+ @let nm = controlName();
96
+ @let err = error();
97
+ @let hnt = hint();
98
+ @let rqrd = required();
99
+
100
+ <hlm-form-field>
101
+ @if (lbl) {
102
+ <span hlmLabel [class]="$labelClass()">{{ lbl }}
103
+ @if (rqrd) {
104
+ <span class="tw:text-red-500">*</span>
105
+ }
106
+ </span>
107
+ }
108
+
109
+ <hlm-date-picker
110
+ [buttonId]="id()"
111
+ [min]="min()"
112
+ [max]="max()"
113
+ [formControlName]="nm"
114
+ [autoCloseOnSelect]="autoCloseOnSelect()"
115
+ [required]="rqrd"
116
+ [class]="$pickerClass()"
117
+ >
118
+ <span>{{ placeholder() }}</span>
119
+ </hlm-date-picker>
120
+
121
+ @if (err) {
122
+ <hlm-error [class]="$errorClass()">
123
+ {{ err }}
124
+ </hlm-error>
125
+ }
126
+
127
+ @if (hnt) {
128
+ <hlm-hint [class]="$hintClass()">
129
+ {{ hnt }}
130
+ </hlm-hint>
131
+ }
132
+ </hlm-form-field>
133
+ `,
134
+ }]
135
+ }] });
136
+
137
+ /*
138
+ * Public API Surface of form-date-picker
139
+ */
140
+
141
+ /**
142
+ * Generated bundle index. Do not edit.
143
+ */
144
+
145
+ export { EgFormDatePicker };
146
+ //# sourceMappingURL=form-date-picker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-date-picker.mjs","sources":["../../../projects/form-date-picker/src/lib/form-date-picker.ts","../../../projects/form-date-picker/src/public-api.ts","../../../projects/form-date-picker/src/form-date-picker.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { ControlContainer, FormGroupDirective, ReactiveFormsModule } from '@angular/forms';\nimport { HlmFormField, HlmError, HlmHint } from '@egose/shadcn-theme-ng/form-field';\nimport { HlmLabel } from '@egose/shadcn-theme-ng/label';\nimport { HlmDatePicker } from '@egose/shadcn-theme-ng/date-picker';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport { ClassValue } from 'clsx';\n\nlet nextId = 0;\n\n@Component({\n selector: 'eg-form-date-picker',\n standalone: true,\n host: {\n class: 'tw:w-full',\n },\n imports: [ReactiveFormsModule, HlmFormField, HlmError, HlmHint, HlmLabel, HlmDatePicker],\n providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }],\n // prettier-ignore\n template: `\n @let lbl = label();\n @let nm = controlName();\n @let err = error();\n @let hnt = hint();\n @let rqrd = required();\n\n <hlm-form-field>\n @if (lbl) {\n <span hlmLabel [class]=\"$labelClass()\">{{ lbl }}\n @if (rqrd) {\n <span class=\"tw:text-red-500\">*</span>\n }\n </span>\n }\n\n <hlm-date-picker\n [buttonId]=\"id()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [formControlName]=\"nm\"\n [autoCloseOnSelect]=\"autoCloseOnSelect()\"\n [required]=\"rqrd\"\n [class]=\"$pickerClass()\"\n >\n <span>{{ placeholder() }}</span>\n </hlm-date-picker>\n\n @if (err) {\n <hlm-error [class]=\"$errorClass()\">\n {{ err }}\n </hlm-error>\n }\n\n @if (hnt) {\n <hlm-hint [class]=\"$hintClass()\">\n {{ hnt }}\n </hlm-hint>\n }\n </hlm-form-field>\n `,\n})\nexport class EgFormDatePicker {\n // Inputs\n label = input<string | undefined>(undefined);\n controlName = input<string>('');\n error = input<string | undefined>(undefined);\n hint = input<string | undefined>(undefined);\n\n // HTML attributes\n id = input<string>(`eg-form-date-picker-${nextId++}`);\n name = input<string | undefined>(undefined);\n placeholder = input<string>('Pick a date');\n readonly = input<boolean>(false);\n disabled = input<boolean>(false);\n required = input<boolean>(false);\n min = input<Date | string | null>(null);\n max = input<Date | string | null>(null);\n autoCloseOnSelect = input<boolean>(true);\n\n // Styling\n userClass = input<ClassValue>('', { alias: 'class' });\n labelClass = input<string>('');\n pickerClass = input<string>('');\n errorClass = input<string>('');\n hintClass = input<string>('');\n\n // Computed classes\n $userClass = computed(() => hlm('tw:flex tw:flex-col', this.userClass()));\n $labelClass = computed(() => hlm('tw:mb-1', this.labelClass()));\n $pickerClass = computed(() => hlm('tw:mb-1', this.pickerClass()));\n $errorClass = computed(() => hlm('tw:mt-0', this.errorClass()));\n $hintClass = computed(() => hlm('tw:mt-0', this.hintClass()));\n}\n","/*\n * Public API Surface of form-date-picker\n */\n\nexport * from './lib/form-date-picker';\n","/**\n * Generated bundle index. Do not edit.\n */\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AAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,WAAW;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAC;oBACxF,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;;AAE3E,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA;AACF,iBAAA;;;AC5DD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,32 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ClassValue } from 'clsx';
3
+
4
+ declare class EgFormDatePicker {
5
+ label: _angular_core.InputSignal<string | undefined>;
6
+ controlName: _angular_core.InputSignal<string>;
7
+ error: _angular_core.InputSignal<string | undefined>;
8
+ hint: _angular_core.InputSignal<string | undefined>;
9
+ id: _angular_core.InputSignal<string>;
10
+ name: _angular_core.InputSignal<string | undefined>;
11
+ placeholder: _angular_core.InputSignal<string>;
12
+ readonly: _angular_core.InputSignal<boolean>;
13
+ disabled: _angular_core.InputSignal<boolean>;
14
+ required: _angular_core.InputSignal<boolean>;
15
+ min: _angular_core.InputSignal<string | Date | null>;
16
+ max: _angular_core.InputSignal<string | Date | null>;
17
+ autoCloseOnSelect: _angular_core.InputSignal<boolean>;
18
+ userClass: _angular_core.InputSignal<ClassValue>;
19
+ labelClass: _angular_core.InputSignal<string>;
20
+ pickerClass: _angular_core.InputSignal<string>;
21
+ errorClass: _angular_core.InputSignal<string>;
22
+ hintClass: _angular_core.InputSignal<string>;
23
+ $userClass: _angular_core.Signal<string>;
24
+ $labelClass: _angular_core.Signal<string>;
25
+ $pickerClass: _angular_core.Signal<string>;
26
+ $errorClass: _angular_core.Signal<string>;
27
+ $hintClass: _angular_core.Signal<string>;
28
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EgFormDatePicker, never>;
29
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EgFormDatePicker, "eg-form-date-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "controlName": { "alias": "controlName"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "autoCloseOnSelect": { "alias": "autoCloseOnSelect"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "labelClass": { "alias": "labelClass"; "required": false; "isSignal": true; }; "pickerClass": { "alias": "pickerClass"; "required": false; "isSignal": true; }; "errorClass": { "alias": "errorClass"; "required": false; "isSignal": true; }; "hintClass": { "alias": "hintClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
30
+ }
31
+
32
+ export { EgFormDatePicker };
@@ -0,0 +1,64 @@
1
+ # Formfield
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.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 form-field
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/form-field
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,112 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, Directive, contentChild, contentChildren, effect, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
4
+ import { FormGroupDirective, ControlContainer } from '@angular/forms';
5
+ import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
6
+
7
+ class HlmError {
8
+ userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
9
+ _computedClass = computed(() => hlm('tw:text-destructive tw:block tw:text-sm tw:font-medium', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmError, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmError, isStandalone: true, selector: "hlm-error", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
12
+ }
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmError, decorators: [{
14
+ type: Directive,
15
+ args: [{
16
+ selector: 'hlm-error',
17
+ host: {
18
+ '[class]': '_computedClass()',
19
+ },
20
+ }]
21
+ }] });
22
+
23
+ class HlmFormField {
24
+ userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
25
+ _computedClass = computed(() => hlm('tw:block tw:space-y-2', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
26
+ control = contentChild(BrnFormFieldControl, ...(ngDevMode ? [{ debugName: "control" }] : []));
27
+ errorChildren = contentChildren(HlmError, ...(ngDevMode ? [{ debugName: "errorChildren" }] : []));
28
+ _hasDisplayedMessage = computed(() => this.errorChildren() && this.errorChildren().length > 0 && this.control()?.errorState() ? 'error' : 'hint', ...(ngDevMode ? [{ debugName: "_hasDisplayedMessage" }] : []));
29
+ constructor() {
30
+ effect(() => {
31
+ if (!this.control()) {
32
+ throw new Error('hlm-form-field must contain a BrnFormFieldControl.');
33
+ }
34
+ });
35
+ }
36
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmFormField, deps: [], target: i0.ɵɵFactoryTarget.Component });
37
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: HlmFormField, isStandalone: true, selector: "hlm-form-field", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }], queries: [{ propertyName: "control", first: true, predicate: BrnFormFieldControl, descendants: true, isSignal: true }, { propertyName: "errorChildren", predicate: HlmError, isSignal: true }], ngImport: i0, template: `
38
+ <ng-content />
39
+
40
+ @switch (_hasDisplayedMessage()) {
41
+ @case ('error') {
42
+ <ng-content select="hlm-error" />
43
+ }
44
+ @default {
45
+ <ng-content select="hlm-hint" />
46
+ }
47
+ }
48
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmFormField, decorators: [{
51
+ type: Component,
52
+ args: [{
53
+ selector: 'hlm-form-field',
54
+ template: `
55
+ <ng-content />
56
+
57
+ @switch (_hasDisplayedMessage()) {
58
+ @case ('error') {
59
+ <ng-content select="hlm-error" />
60
+ }
61
+ @default {
62
+ <ng-content select="hlm-hint" />
63
+ }
64
+ }
65
+ `,
66
+ providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }],
67
+ host: {
68
+ '[class]': '_computedClass()',
69
+ },
70
+ changeDetection: ChangeDetectionStrategy.OnPush,
71
+ }]
72
+ }], ctorParameters: () => [] });
73
+
74
+ class HlmHint {
75
+ userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
76
+ _computedClass = computed(() => hlm('tw:text-muted-foreground tw:block tw:text-sm', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
77
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmHint, deps: [], target: i0.ɵɵFactoryTarget.Directive });
78
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmHint, isStandalone: true, selector: "hlm-hint", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
79
+ }
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmHint, decorators: [{
81
+ type: Directive,
82
+ args: [{
83
+ selector: 'hlm-hint',
84
+ host: {
85
+ '[class]': '_computedClass()',
86
+ },
87
+ }]
88
+ }] });
89
+
90
+ /*
91
+ * Public API Surface of form-field
92
+ */
93
+ const HlmFormFieldImports = [HlmFormField, HlmError, HlmHint];
94
+ class HlmFormFieldModule {
95
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
96
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmFormFieldModule, imports: [HlmFormField, HlmError, HlmHint], exports: [HlmFormField, HlmError, HlmHint] });
97
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmFormFieldModule });
98
+ }
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmFormFieldModule, decorators: [{
100
+ type: NgModule,
101
+ args: [{
102
+ imports: [...HlmFormFieldImports],
103
+ exports: [...HlmFormFieldImports],
104
+ }]
105
+ }] });
106
+
107
+ /**
108
+ * Generated bundle index. Do not edit.
109
+ */
110
+
111
+ export { HlmError, HlmFormField, HlmFormFieldImports, HlmFormFieldModule, HlmHint };
112
+ //# sourceMappingURL=form-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field.mjs","sources":["../../../projects/form-field/src/lib/error.ts","../../../projects/form-field/src/lib/form-field.ts","../../../projects/form-field/src/lib/hint.ts","../../../projects/form-field/src/public-api.ts","../../../projects/form-field/src/form-field.ts"],"sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport { ClassValue } from 'clsx';\n\n@Directive({\n selector: 'hlm-error',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmError {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm('tw:text-destructive tw:block tw:text-sm tw:font-medium', this.userClass()),\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n effect,\n input,\n} from '@angular/core';\nimport { ControlContainer, FormGroupDirective } from '@angular/forms';\nimport { BrnFormFieldControl } from '@spartan-ng/brain/form-field';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport { ClassValue } from 'clsx';\nimport { HlmError } from './error';\n\n@Component({\n selector: 'hlm-form-field',\n template: `\n <ng-content />\n\n @switch (_hasDisplayedMessage()) {\n @case ('error') {\n <ng-content select=\"hlm-error\" />\n }\n @default {\n <ng-content select=\"hlm-hint\" />\n }\n }\n `,\n providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }],\n host: {\n '[class]': '_computedClass()',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HlmFormField {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => hlm('tw:block tw:space-y-2', this.userClass()));\n public readonly control = contentChild(BrnFormFieldControl);\n\n public readonly errorChildren = contentChildren(HlmError);\n\n protected readonly _hasDisplayedMessage = computed<'error' | 'hint'>(() =>\n this.errorChildren() && this.errorChildren().length > 0 && this.control()?.errorState() ? 'error' : 'hint',\n );\n\n constructor() {\n effect(() => {\n if (!this.control()) {\n throw new Error('hlm-form-field must contain a BrnFormFieldControl.');\n }\n });\n }\n}\n","import { computed, Directive, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport { ClassValue } from 'clsx';\n\n@Directive({\n selector: 'hlm-hint',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmHint {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm('tw:text-muted-foreground tw:block tw:text-sm', this.userClass()),\n );\n}\n","/*\n * Public API Surface of form-field\n */\n\nimport { NgModule } from '@angular/core';\nimport { HlmError } from './lib/error';\nimport { HlmFormField } from './lib/form-field';\nimport { HlmHint } from './lib/hint';\n\nexport * from './lib/error';\nexport * from './lib/form-field';\nexport * from './lib/hint';\n\nexport const HlmFormFieldImports = [HlmFormField, HlmError, HlmHint];\n\n@NgModule({\n imports: [...HlmFormFieldImports],\n exports: [...HlmFormFieldImports],\n})\nexport class HlmFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAUa,QAAQ,CAAA;AACH,IAAA,SAAS,GAAG,KAAK,CAAa,EAAE,6CAAI,KAAK,EAAE,OAAO,EAAA,CAAA,GAAA,CAAhB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAC;AAClD,IAAA,cAAc,GAAG,QAAQ,CAAC,MAC3C,GAAG,CAAC,wDAAwD,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,0DAChF;uGAJU,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBANpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,kBAAkB;AAC9B,qBAAA;AACF,iBAAA;;;MC0BY,YAAY,CAAA;AACP,IAAA,SAAS,GAAG,KAAK,CAAa,EAAE,6CAAI,KAAK,E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,CAAA;;2FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,kBAAkB;AAC9B,qBAAA;AACF,iBAAA;;;ACTD;;AAEG;AAWI,MAAM,mBAAmB,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,OAAO;MAMtD,kBAAkB,CAAA;uGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAlB,kBAAkB,EAAA,OAAA,EAAA,CANK,YAAY,EAAE,QAAQ,EAAE,OAAO,CAAA,EAAA,OAAA,EAAA,CAA/B,YAAY,EAAE,QAAQ,EAAE,OAAO,CAAA,EAAA,CAAA;wGAMtD,kBAAkB,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,mBAAmB,CAAC;AACjC,oBAAA,OAAO,EAAE,CAAC,GAAG,mBAAmB,CAAC;AAClC,iBAAA;;;AClBD;;AAEG;;;;"}
@@ -0,0 +1,37 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ClassValue } from 'clsx';
3
+ import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
4
+
5
+ declare class HlmError {
6
+ readonly userClass: _angular_core.InputSignal<ClassValue>;
7
+ protected readonly _computedClass: _angular_core.Signal<string>;
8
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmError, never>;
9
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmError, "hlm-error", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
11
+
12
+ declare class HlmFormField {
13
+ readonly userClass: _angular_core.InputSignal<ClassValue>;
14
+ protected readonly _computedClass: _angular_core.Signal<string>;
15
+ readonly control: _angular_core.Signal<BrnFormFieldControl | undefined>;
16
+ readonly errorChildren: _angular_core.Signal<readonly HlmError[]>;
17
+ protected readonly _hasDisplayedMessage: _angular_core.Signal<"error" | "hint">;
18
+ constructor();
19
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmFormField, never>;
20
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmFormField, "hlm-form-field", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["control", "errorChildren"], ["*", "hlm-error", "hlm-hint"], true, never>;
21
+ }
22
+
23
+ declare class HlmHint {
24
+ readonly userClass: _angular_core.InputSignal<ClassValue>;
25
+ protected readonly _computedClass: _angular_core.Signal<string>;
26
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmHint, never>;
27
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmHint, "hlm-hint", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
28
+ }
29
+
30
+ declare const HlmFormFieldImports: (typeof HlmError | typeof HlmFormField | typeof HlmHint)[];
31
+ declare class HlmFormFieldModule {
32
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmFormFieldModule, never>;
33
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmFormFieldModule, never, [typeof HlmFormField, typeof HlmError, typeof HlmHint], [typeof HlmFormField, typeof HlmError, typeof HlmHint]>;
34
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmFormFieldModule>;
35
+ }
36
+
37
+ export { HlmError, HlmFormField, HlmFormFieldImports, HlmFormFieldModule, HlmHint };
@@ -0,0 +1,64 @@
1
+ # FormSearchableMultiselect
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 form-searchable-multiselect
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/form-searchable-multiselect
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,124 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, Component } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { ReactiveFormsModule, FormGroupDirective, ControlContainer } from '@angular/forms';
5
+ import { HlmFormField, HlmError, HlmHint } from '@egose/shadcn-theme-ng/form-field';
6
+ import { HlmLabel } from '@egose/shadcn-theme-ng/label';
7
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
8
+ import { EgSearchableMultiselect } from '@egose/shadcn-theme-ng/searchable-multiselect';
9
+
10
+ class EgFormSearchableMultiselect {
11
+ // Form field inputs
12
+ label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : []));
13
+ controlName = input('', ...(ngDevMode ? [{ debugName: "controlName" }] : [])); // required for form binding
14
+ error = input(undefined, ...(ngDevMode ? [{ debugName: "error" }] : []));
15
+ hint = input(undefined, ...(ngDevMode ? [{ debugName: "hint" }] : []));
16
+ // HTML/control attributes
17
+ placeholder = input('Start typing to add…', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
18
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
19
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
20
+ // Multiselect-specific
21
+ options = input([], ...(ngDevMode ? [{ debugName: "options" }] : [])); // [{ label, value }]
22
+ // Styling classes
23
+ userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
24
+ labelClass = input('', ...(ngDevMode ? [{ debugName: "labelClass" }] : []));
25
+ controlClass = input('', ...(ngDevMode ? [{ debugName: "controlClass" }] : [])); // for EgMultiselectAutocomplete
26
+ errorClass = input('', ...(ngDevMode ? [{ debugName: "errorClass" }] : []));
27
+ hintClass = input('', ...(ngDevMode ? [{ debugName: "hintClass" }] : []));
28
+ // Computed class names
29
+ $userClass = computed(() => hlm('tw:flex tw:flex-col', this.userClass()), ...(ngDevMode ? [{ debugName: "$userClass" }] : []));
30
+ $labelClass = computed(() => hlm('tw:mb-1 tw:gap-0', this.labelClass()), ...(ngDevMode ? [{ debugName: "$labelClass" }] : []));
31
+ $controlClass = computed(() => hlm('tw:w-full', this.controlClass()), ...(ngDevMode ? [{ debugName: "$controlClass" }] : []));
32
+ $errorClass = computed(() => hlm('tw:mt-0', this.errorClass()), ...(ngDevMode ? [{ debugName: "$errorClass" }] : []));
33
+ $hintClass = computed(() => hlm('tw:mt-0', this.hintClass()), ...(ngDevMode ? [{ debugName: "$hintClass" }] : []));
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EgFormSearchableMultiselect, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: EgFormSearchableMultiselect, isStandalone: true, selector: "eg-form-searchable-multiselect", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, controlName: { classPropertyName: "controlName", publicName: "controlName", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, labelClass: { classPropertyName: "labelClass", publicName: "labelClass", isSignal: true, isRequired: false, transformFunction: null }, controlClass: { classPropertyName: "controlClass", publicName: "controlClass", isSignal: true, isRequired: false, transformFunction: null }, errorClass: { classPropertyName: "errorClass", publicName: "errorClass", isSignal: true, isRequired: false, transformFunction: null }, hintClass: { classPropertyName: "hintClass", publicName: "hintClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "tw:w-full" }, providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }], ngImport: i0, template: `
36
+ @let lbl = label(); @let nm = controlName(); @let err = error(); @let hnt = hint(); @let rqrd = required();
37
+
38
+ <hlm-form-field>
39
+ @if (lbl) {
40
+ <span hlmLabel [class]="$labelClass()">
41
+ {{ lbl }}
42
+ @if (rqrd) {
43
+ <span class="tw:text-red-500">*</span>
44
+ }
45
+ </span>
46
+ }
47
+
48
+ <eg-searchable-multiselect
49
+ [options]="options()"
50
+ [placeholder]="placeholder()"
51
+ [formControlName]="nm"
52
+ [disabled]="disabled()"
53
+ [required]="rqrd"
54
+ [class]="$controlClass()"
55
+ ></eg-searchable-multiselect>
56
+
57
+ @if (err) {
58
+ <hlm-error [class]="$errorClass()">
59
+ {{ err }}
60
+ </hlm-error>
61
+ } @if (hnt) {
62
+ <hlm-hint [class]="$hintClass()">
63
+ {{ hnt }}
64
+ </hlm-hint>
65
+ }
66
+ </hlm-form-field>
67
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: HlmFormField, selector: "hlm-form-field", inputs: ["class"] }, { kind: "directive", type: HlmError, selector: "hlm-error", inputs: ["class"] }, { kind: "directive", type: HlmHint, selector: "hlm-hint", inputs: ["class"] }, { kind: "directive", type: HlmLabel, selector: "[hlmLabel]", inputs: ["class"] }, { kind: "component", type: EgSearchableMultiselect, selector: "eg-searchable-multiselect", inputs: ["options", "placeholder", "value"], outputs: ["valueChange"] }] });
68
+ }
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: EgFormSearchableMultiselect, decorators: [{
70
+ type: Component,
71
+ args: [{
72
+ selector: 'eg-form-searchable-multiselect',
73
+ standalone: true,
74
+ host: {
75
+ class: 'tw:w-full',
76
+ },
77
+ imports: [ReactiveFormsModule, HlmFormField, HlmError, HlmHint, HlmLabel, EgSearchableMultiselect],
78
+ providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }],
79
+ template: `
80
+ @let lbl = label(); @let nm = controlName(); @let err = error(); @let hnt = hint(); @let rqrd = required();
81
+
82
+ <hlm-form-field>
83
+ @if (lbl) {
84
+ <span hlmLabel [class]="$labelClass()">
85
+ {{ lbl }}
86
+ @if (rqrd) {
87
+ <span class="tw:text-red-500">*</span>
88
+ }
89
+ </span>
90
+ }
91
+
92
+ <eg-searchable-multiselect
93
+ [options]="options()"
94
+ [placeholder]="placeholder()"
95
+ [formControlName]="nm"
96
+ [disabled]="disabled()"
97
+ [required]="rqrd"
98
+ [class]="$controlClass()"
99
+ ></eg-searchable-multiselect>
100
+
101
+ @if (err) {
102
+ <hlm-error [class]="$errorClass()">
103
+ {{ err }}
104
+ </hlm-error>
105
+ } @if (hnt) {
106
+ <hlm-hint [class]="$hintClass()">
107
+ {{ hnt }}
108
+ </hlm-hint>
109
+ }
110
+ </hlm-form-field>
111
+ `,
112
+ }]
113
+ }] });
114
+
115
+ /*
116
+ * Public API Surface of form-searchable-multiselect
117
+ */
118
+
119
+ /**
120
+ * Generated bundle index. Do not edit.
121
+ */
122
+
123
+ export { EgFormSearchableMultiselect };
124
+ //# sourceMappingURL=form-searchable-multiselect.mjs.map