@4byte/shared-lib 0.0.1 → 0.0.3

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/fesm2022/4byte-shared-lib.mjs +1315 -0
  2. package/fesm2022/4byte-shared-lib.mjs.map +1 -0
  3. package/package.json +15 -27
  4. package/types/4byte-shared-lib.d.ts +351 -0
  5. package/.editorconfig +0 -17
  6. package/.prettierrc +0 -12
  7. package/.vscode/extensions.json +0 -4
  8. package/.vscode/launch.json +0 -20
  9. package/.vscode/mcp.json +0 -9
  10. package/.vscode/tasks.json +0 -42
  11. package/angular.json +0 -211
  12. package/ng-package.json +0 -11
  13. package/projects/storybook-host/.storybook/main.ts +0 -20
  14. package/projects/storybook-host/.storybook/preview.ts +0 -74
  15. package/projects/storybook-host/.storybook/tsconfig.doc.json +0 -10
  16. package/projects/storybook-host/.storybook/tsconfig.json +0 -22
  17. package/projects/storybook-host/.storybook/tutorial/Installation.mdx +0 -6
  18. package/projects/storybook-host/.storybook/tutorial/Introduction.mdx +0 -18
  19. package/projects/storybook-host/.storybook/tutorial/Theming.mdx +0 -14
  20. package/projects/storybook-host/.storybook/typings.d.ts +0 -4
  21. package/projects/storybook-host/documentation.json +0 -605
  22. package/projects/storybook-host/public/favicon.ico +0 -0
  23. package/projects/storybook-host/src/app/app.config.ts +0 -8
  24. package/projects/storybook-host/src/app/app.css +0 -0
  25. package/projects/storybook-host/src/app/app.html +0 -343
  26. package/projects/storybook-host/src/app/app.ts +0 -11
  27. package/projects/storybook-host/src/index.html +0 -13
  28. package/projects/storybook-host/src/main.ts +0 -6
  29. package/projects/storybook-host/src/stories/assets/accessibility.png +0 -0
  30. package/projects/storybook-host/src/stories/assets/accessibility.svg +0 -1
  31. package/projects/storybook-host/src/stories/assets/addon-library.png +0 -0
  32. package/projects/storybook-host/src/stories/assets/assets.png +0 -0
  33. package/projects/storybook-host/src/stories/assets/avif-test-image.avif +0 -0
  34. package/projects/storybook-host/src/stories/assets/context.png +0 -0
  35. package/projects/storybook-host/src/stories/assets/discord.svg +0 -1
  36. package/projects/storybook-host/src/stories/assets/docs.png +0 -0
  37. package/projects/storybook-host/src/stories/assets/figma-plugin.png +0 -0
  38. package/projects/storybook-host/src/stories/assets/github.svg +0 -1
  39. package/projects/storybook-host/src/stories/assets/share.png +0 -0
  40. package/projects/storybook-host/src/stories/assets/styling.png +0 -0
  41. package/projects/storybook-host/src/stories/assets/testing.png +0 -0
  42. package/projects/storybook-host/src/stories/assets/theming.png +0 -0
  43. package/projects/storybook-host/src/stories/assets/tutorials.svg +0 -1
  44. package/projects/storybook-host/src/stories/assets/youtube.svg +0 -1
  45. package/projects/storybook-host/src/stories/button.component.ts +0 -50
  46. package/projects/storybook-host/src/stories/button.css +0 -30
  47. package/projects/storybook-host/src/stories/button.stories.ts +0 -49
  48. package/projects/storybook-host/src/stories/header.component.ts +0 -78
  49. package/projects/storybook-host/src/stories/header.css +0 -32
  50. package/projects/storybook-host/src/stories/header.stories.ts +0 -33
  51. package/projects/storybook-host/src/stories/page.component.ts +0 -84
  52. package/projects/storybook-host/src/stories/page.css +0 -68
  53. package/projects/storybook-host/src/stories/page.stories.ts +0 -32
  54. package/projects/storybook-host/src/stories/user.ts +0 -3
  55. package/projects/storybook-host/src/styles.css +0 -1
  56. package/projects/storybook-host/tsconfig.app.json +0 -15
  57. package/projects/storybook-host/tsconfig.spec.json +0 -15
  58. package/src/lib/components/byte-button/byte-button-group/byte-button-group.css +0 -27
  59. package/src/lib/components/byte-button/byte-button-group/byte-button-group.html +0 -6
  60. package/src/lib/components/byte-button/byte-button-group/byte-button-group.spec.ts +0 -22
  61. package/src/lib/components/byte-button/byte-button-group/byte-button-group.ts +0 -35
  62. package/src/lib/components/byte-button/byte-button.css +0 -0
  63. package/src/lib/components/byte-button/byte-button.directive.ts +0 -17
  64. package/src/lib/components/byte-button/byte-button.html +0 -29
  65. package/src/lib/components/byte-button/byte-button.module.ts +0 -19
  66. package/src/lib/components/byte-button/byte-button.stories.ts +0 -449
  67. package/src/lib/components/byte-button/byte-button.ts +0 -129
  68. package/src/lib/components/byte-dialog/byte-dialog.css +0 -0
  69. package/src/lib/components/byte-dialog/byte-dialog.directive.ts +0 -21
  70. package/src/lib/components/byte-dialog/byte-dialog.html +0 -47
  71. package/src/lib/components/byte-dialog/byte-dialog.module.ts +0 -21
  72. package/src/lib/components/byte-dialog/byte-dialog.spec.ts +0 -22
  73. package/src/lib/components/byte-dialog/byte-dialog.ts +0 -121
  74. package/src/lib/components/byte-dialog/byte.dialog.stories.ts +0 -215
  75. package/src/lib/components/byte-input/byte-input.css +0 -29
  76. package/src/lib/components/byte-input/byte-input.html +0 -58
  77. package/src/lib/components/byte-input/byte-input.spec.ts +0 -22
  78. package/src/lib/components/byte-input/byte-input.stories.ts +0 -60
  79. package/src/lib/components/byte-input/byte-input.ts +0 -97
  80. package/src/lib/components/byte-select/byte-select.css +0 -16
  81. package/src/lib/components/byte-select/byte-select.directive.ts +0 -61
  82. package/src/lib/components/byte-select/byte-select.html +0 -101
  83. package/src/lib/components/byte-select/byte-select.module.ts +0 -26
  84. package/src/lib/components/byte-select/byte-select.spec.ts +0 -22
  85. package/src/lib/components/byte-select/byte-select.stories.ts +0 -194
  86. package/src/lib/components/byte-select/byte-select.ts +0 -168
  87. package/src/lib/components/byte-select/index.ts +0 -3
  88. package/src/lib/components/byte-sidebar/byte-sidebar.css +0 -0
  89. package/src/lib/components/byte-sidebar/byte-sidebar.directive.ts +0 -11
  90. package/src/lib/components/byte-sidebar/byte-sidebar.html +0 -31
  91. package/src/lib/components/byte-sidebar/byte-sidebar.module.ts +0 -16
  92. package/src/lib/components/byte-sidebar/byte-sidebar.spec.ts +0 -22
  93. package/src/lib/components/byte-sidebar/byte-sidebar.stories.ts +0 -190
  94. package/src/lib/components/byte-sidebar/byte-sidebar.ts +0 -108
  95. package/src/lib/components/byte-table/byte-table.css +0 -0
  96. package/src/lib/components/byte-table/byte-table.directive.ts +0 -49
  97. package/src/lib/components/byte-table/byte-table.html +0 -102
  98. package/src/lib/components/byte-table/byte-table.module.ts +0 -33
  99. package/src/lib/components/byte-table/byte-table.spec.ts +0 -22
  100. package/src/lib/components/byte-table/byte-table.stories.ts +0 -296
  101. package/src/lib/components/byte-table/byte-table.ts +0 -162
  102. package/src/lib/components/calendar/calendar.css +0 -16
  103. package/src/lib/components/calendar/calendar.html +0 -15
  104. package/src/lib/components/calendar/calendar.spec.ts +0 -22
  105. package/src/lib/components/calendar/calendar.stories.ts +0 -153
  106. package/src/lib/components/calendar/calendar.ts +0 -89
  107. package/src/lib/components/select/select.css +0 -16
  108. package/src/lib/components/select/select.html +0 -14
  109. package/src/lib/components/select/select.spec.ts +0 -22
  110. package/src/lib/components/select/select.ts +0 -73
  111. package/src/lib/config/empresa-ui.token.ts +0 -5
  112. package/src/lib/providers/empresa-ui-config.ts +0 -8
  113. package/src/lib/providers/provide-empresa-ui.ts +0 -42
  114. package/src/lib/themes/CRM-Theme.ts +0 -34
  115. package/src/lib/themes/aura.ts +0 -3
  116. package/src/lib/themes/index.ts +0 -2
  117. package/src/lib/themes/registry.ts +0 -9
  118. package/src/lib/utils/inject-prime-icons.ts +0 -12
  119. package/src/public-api.ts +0 -30
  120. package/tsconfig.json +0 -45
  121. package/tsconfig.lib.json +0 -11
  122. package/tsconfig.lib.prod.json +0 -9
  123. package/tsconfig.spec.json +0 -8
@@ -0,0 +1,1315 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, makeEnvironmentProviders, provideEnvironmentInitializer, forwardRef, Input, ChangeDetectionStrategy, Component, Directive, ContentChild, NgModule, EventEmitter, Output } from '@angular/core';
3
+ import { providePrimeNG } from 'primeng/config';
4
+ import Aura from '@primeuix/themes/aura';
5
+ import { definePreset } from '@primeuix/themes';
6
+ import * as i1 from '@angular/forms';
7
+ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
8
+ import * as i2 from 'primeng/datepicker';
9
+ import { DatePickerModule } from 'primeng/datepicker';
10
+ import * as i2$1 from 'primeng/select';
11
+ import { SelectModule } from 'primeng/select';
12
+ import { NgTemplateOutlet } from '@angular/common';
13
+ import * as i2$2 from 'primeng/api';
14
+ import * as i3 from 'primeng/inputnumber';
15
+ import { InputNumberModule } from 'primeng/inputnumber';
16
+ import * as i6 from 'primeng/inputotp';
17
+ import { InputOtpModule } from 'primeng/inputotp';
18
+ import * as i2$3 from 'primeng/inputtext';
19
+ import { InputTextModule } from 'primeng/inputtext';
20
+ import * as i5 from 'primeng/password';
21
+ import { PasswordModule } from 'primeng/password';
22
+ import * as i4 from 'primeng/textarea';
23
+ import { TextareaModule } from 'primeng/textarea';
24
+ import * as i1$1 from '@angular/platform-browser';
25
+ import * as i1$2 from 'primeng/button';
26
+ import { ButtonModule } from 'primeng/button';
27
+ import * as i1$3 from 'primeng/buttongroup';
28
+ import { ButtonGroupModule } from 'primeng/buttongroup';
29
+ import * as i1$4 from 'primeng/table';
30
+ import { TableModule } from 'primeng/table';
31
+ import * as i1$5 from 'primeng/drawer';
32
+ import { DrawerModule } from 'primeng/drawer';
33
+ import * as i1$6 from 'primeng/dialog';
34
+ import { DialogModule } from 'primeng/dialog';
35
+
36
+ const EMPRESA_UI_CONFIG = new InjectionToken('EMPRESA_UI_CONFIG');
37
+
38
+ const AuraTheme = Aura;
39
+
40
+ const CRMTheme = definePreset(Aura, {
41
+ semantic: {
42
+ primary: {
43
+ 50: '#EEF4FF',
44
+ 100: '#DCE8FF',
45
+ 200: '#B9D1FF',
46
+ 300: '#8FB4FF',
47
+ 400: '#5F91F5',
48
+ 500: '#2F6FE4',
49
+ 600: '#1F58C4',
50
+ 700: '#18489D',
51
+ 800: '#123574',
52
+ 900: '#0A2453',
53
+ 950: '#00011F'
54
+ }
55
+ /* secondary: {
56
+ 50: '#F8FAFC',
57
+ 100: '#F1F5F9',
58
+ 200: '#E2E8F0',
59
+ 300: '#CBD5E1',
60
+ 400: '#94A3B8',
61
+ 500: '#64748B',
62
+ 600: '#475569',
63
+ 700: '#334155',
64
+ 800: '#1E293B',
65
+ 900: '#0F172A',
66
+ 950: '#020617'
67
+ } */
68
+ }
69
+ });
70
+
71
+ const EMPRESA_THEMES = {
72
+ aura: AuraTheme,
73
+ crm: CRMTheme,
74
+ };
75
+
76
+ const PRIME_ICONS_LINK_ID = 'empresa-ui-prime-icons';
77
+ const PRIME_ICONS_VERSION = '7.0.0';
78
+ function injectPrimeIconsStylesheet() {
79
+ if (document.getElementById(PRIME_ICONS_LINK_ID))
80
+ return;
81
+ const link = document.createElement('link');
82
+ link.id = PRIME_ICONS_LINK_ID;
83
+ link.rel = 'stylesheet';
84
+ link.href = `https://cdn.jsdelivr.net/npm/primeicons@${PRIME_ICONS_VERSION}/primeicons.css`;
85
+ document.head.appendChild(link);
86
+ }
87
+
88
+ function provideEmpresaUI(config = {}) {
89
+ const theme = EMPRESA_THEMES[config.theme ?? 'crm'];
90
+ return makeEnvironmentProviders([
91
+ providePrimeNG({
92
+ theme: {
93
+ preset: theme,
94
+ options: {
95
+ darkModeSelector: false
96
+ }
97
+ }
98
+ }),
99
+ {
100
+ provide: EMPRESA_UI_CONFIG,
101
+ useValue: config
102
+ },
103
+ provideEnvironmentInitializer(() => injectPrimeIconsStylesheet()),
104
+ ]);
105
+ }
106
+
107
+ class Calendar {
108
+ dateFormat = 'dd/mm/yy';
109
+ placeholder = 'dd/mm/yyyy';
110
+ showIcon = true;
111
+ disabled = false;
112
+ minDate;
113
+ maxDate;
114
+ readonlyInput = false;
115
+ showClear = false;
116
+ inputId = '';
117
+ name = '';
118
+ value = null;
119
+ onChange = () => { };
120
+ onTouched = () => { };
121
+ writeValue(value) {
122
+ this.value = value;
123
+ }
124
+ registerOnChange(fn) {
125
+ this.onChange = fn;
126
+ }
127
+ registerOnTouched(fn) {
128
+ this.onTouched = fn;
129
+ }
130
+ setDisabledState(isDisabled) {
131
+ this.disabled = isDisabled;
132
+ }
133
+ onValueChange(value) {
134
+ this.value = value;
135
+ this.onChange(value);
136
+ this.onTouched();
137
+ }
138
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: Calendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
139
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: Calendar, isStandalone: true, selector: "byte-calendar", inputs: { dateFormat: "dateFormat", placeholder: "placeholder", showIcon: "showIcon", disabled: "disabled", minDate: "minDate", maxDate: "maxDate", readonlyInput: "readonlyInput", showClear: "showClear", inputId: "inputId", name: "name" }, providers: [
140
+ {
141
+ provide: NG_VALUE_ACCESSOR,
142
+ useExisting: forwardRef(() => Calendar),
143
+ multi: true
144
+ }
145
+ ], ngImport: i0, template: "<p-datepicker\n [(ngModel)]=\"value\"\n [dateFormat]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [showIcon]=\"showIcon\"\n [disabled]=\"disabled\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [readonlyInput]=\"readonlyInput\"\n [showClear]=\"showClear\"\n [inputId]=\"inputId\"\n [name]=\"name\"\n (ngModelChange)=\"onValueChange($event)\"\n appendTo=\"body\"\n/>", styles: [":host{display:block;width:100%}:host ::ng-deep .p-inputtext,:host ::ng-deep .p-inputnumber,:host ::ng-deep .p-textarea,:host ::ng-deep .p-datepicker,:host ::ng-deep .p-select{width:100%}:host ::ng-deep .p-inputnumber-input{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
146
+ }
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: Calendar, decorators: [{
148
+ type: Component,
149
+ args: [{ selector: 'byte-calendar', standalone: true, imports: [
150
+ FormsModule,
151
+ DatePickerModule
152
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
153
+ {
154
+ provide: NG_VALUE_ACCESSOR,
155
+ useExisting: forwardRef(() => Calendar),
156
+ multi: true
157
+ }
158
+ ], template: "<p-datepicker\n [(ngModel)]=\"value\"\n [dateFormat]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [showIcon]=\"showIcon\"\n [disabled]=\"disabled\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [readonlyInput]=\"readonlyInput\"\n [showClear]=\"showClear\"\n [inputId]=\"inputId\"\n [name]=\"name\"\n (ngModelChange)=\"onValueChange($event)\"\n appendTo=\"body\"\n/>", styles: [":host{display:block;width:100%}:host ::ng-deep .p-inputtext,:host ::ng-deep .p-inputnumber,:host ::ng-deep .p-textarea,:host ::ng-deep .p-datepicker,:host ::ng-deep .p-select{width:100%}:host ::ng-deep .p-inputnumber-input{width:100%}\n"] }]
159
+ }], propDecorators: { dateFormat: [{
160
+ type: Input
161
+ }], placeholder: [{
162
+ type: Input
163
+ }], showIcon: [{
164
+ type: Input
165
+ }], disabled: [{
166
+ type: Input
167
+ }], minDate: [{
168
+ type: Input
169
+ }], maxDate: [{
170
+ type: Input
171
+ }], readonlyInput: [{
172
+ type: Input
173
+ }], showClear: [{
174
+ type: Input
175
+ }], inputId: [{
176
+ type: Input
177
+ }], name: [{
178
+ type: Input
179
+ }] } });
180
+
181
+ class ByteSelectSelectedItemDirective {
182
+ template;
183
+ constructor(template) {
184
+ this.template = template;
185
+ }
186
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectSelectedItemDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
187
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteSelectSelectedItemDirective, isStandalone: true, selector: "ng-template[byteSelectSelectedItem]", ngImport: i0 });
188
+ }
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectSelectedItemDirective, decorators: [{
190
+ type: Directive,
191
+ args: [{
192
+ selector: 'ng-template[byteSelectSelectedItem]',
193
+ standalone: true
194
+ }]
195
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
196
+ class ByteSelectItemDirective {
197
+ template;
198
+ constructor(template) {
199
+ this.template = template;
200
+ }
201
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectItemDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
202
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteSelectItemDirective, isStandalone: true, selector: "ng-template[byteSelectItem]", ngImport: i0 });
203
+ }
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectItemDirective, decorators: [{
205
+ type: Directive,
206
+ args: [{
207
+ selector: 'ng-template[byteSelectItem]',
208
+ standalone: true
209
+ }]
210
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
211
+ class ByteSelectHeaderDirective {
212
+ template;
213
+ constructor(template) {
214
+ this.template = template;
215
+ }
216
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
217
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteSelectHeaderDirective, isStandalone: true, selector: "ng-template[byteSelectHeader]", ngImport: i0 });
218
+ }
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectHeaderDirective, decorators: [{
220
+ type: Directive,
221
+ args: [{
222
+ selector: 'ng-template[byteSelectHeader]',
223
+ standalone: true
224
+ }]
225
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
226
+ class ByteSelectFooterDirective {
227
+ template;
228
+ constructor(template) {
229
+ this.template = template;
230
+ }
231
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectFooterDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
232
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteSelectFooterDirective, isStandalone: true, selector: "ng-template[byteSelectFooter]", ngImport: i0 });
233
+ }
234
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectFooterDirective, decorators: [{
235
+ type: Directive,
236
+ args: [{
237
+ selector: 'ng-template[byteSelectFooter]',
238
+ standalone: true
239
+ }]
240
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
241
+ class ByteSelectEmptyDirective {
242
+ template;
243
+ constructor(template) {
244
+ this.template = template;
245
+ }
246
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectEmptyDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
247
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteSelectEmptyDirective, isStandalone: true, selector: "ng-template[byteSelectEmpty]", ngImport: i0 });
248
+ }
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectEmptyDirective, decorators: [{
250
+ type: Directive,
251
+ args: [{
252
+ selector: 'ng-template[byteSelectEmpty]',
253
+ standalone: true
254
+ }]
255
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
256
+ class ByteSelectEmptyFilterDirective {
257
+ template;
258
+ constructor(template) {
259
+ this.template = template;
260
+ }
261
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectEmptyFilterDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
262
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteSelectEmptyFilterDirective, isStandalone: true, selector: "ng-template[byteSelectEmptyFilter]", ngImport: i0 });
263
+ }
264
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectEmptyFilterDirective, decorators: [{
265
+ type: Directive,
266
+ args: [{
267
+ selector: 'ng-template[byteSelectEmptyFilter]',
268
+ standalone: true
269
+ }]
270
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
271
+
272
+ class ByteSelect {
273
+ // =====================================================
274
+ // INPUTS
275
+ // =====================================================
276
+ options = [];
277
+ optionLabel = '';
278
+ optionValue = '';
279
+ placeholder = 'Seleccione';
280
+ disabled = false;
281
+ inputId = '';
282
+ name = '';
283
+ filter = false;
284
+ filterBy = '';
285
+ showClear = false;
286
+ // =====================================================
287
+ // CUSTOM TEMPLATES
288
+ // =====================================================
289
+ selectedItemTemplate;
290
+ itemTemplate;
291
+ headerTemplate;
292
+ footerTemplate;
293
+ emptyTemplate;
294
+ emptyFilterTemplate;
295
+ // =====================================================
296
+ // VALUE
297
+ // =====================================================
298
+ value = null;
299
+ // =====================================================
300
+ // CONTROL VALUE ACCESSOR
301
+ // =====================================================
302
+ onChange = () => { };
303
+ onTouched = () => { };
304
+ writeValue(value) {
305
+ this.value = value;
306
+ }
307
+ registerOnChange(fn) {
308
+ this.onChange = fn;
309
+ }
310
+ registerOnTouched(fn) {
311
+ this.onTouched = fn;
312
+ }
313
+ setDisabledState(isDisabled) {
314
+ this.disabled = isDisabled;
315
+ }
316
+ // =====================================================
317
+ // CHANGE
318
+ // =====================================================
319
+ onValueChange(value) {
320
+ this.value = value;
321
+ this.onChange(value);
322
+ this.onTouched();
323
+ }
324
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
325
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ByteSelect, isStandalone: true, selector: "byte-select", inputs: { options: "options", optionLabel: "optionLabel", optionValue: "optionValue", placeholder: "placeholder", disabled: "disabled", inputId: "inputId", name: "name", filter: "filter", filterBy: "filterBy", showClear: "showClear" }, providers: [
326
+ {
327
+ provide: NG_VALUE_ACCESSOR,
328
+ useExisting: forwardRef(() => ByteSelect),
329
+ multi: true
330
+ }
331
+ ], queries: [{ propertyName: "selectedItemTemplate", first: true, predicate: ByteSelectSelectedItemDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ByteSelectItemDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ByteSelectHeaderDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ByteSelectFooterDirective, descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: ByteSelectEmptyDirective, descendants: true }, { propertyName: "emptyFilterTemplate", first: true, predicate: ByteSelectEmptyFilterDirective, descendants: true }], ngImport: i0, template: "<p-select\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [inputId]=\"inputId\"\n [name]=\"name\"\n [filter]=\"filter\"\n [filterBy]=\"filterBy\"\n [showClear]=\"showClear\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n appendTo=\"body\"\n>\n\n @if (selectedItemTemplate) {\n\n <ng-template\n pTemplate=\"selectedItem\"\n let-selectedOption\n >\n\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption\n }\"\n />\n\n </ng-template>\n\n }\n\n @if (itemTemplate) {\n\n <ng-template\n pTemplate=\"item\"\n let-option\n >\n\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: option\n }\"\n />\n\n </ng-template>\n\n }\n\n @if (headerTemplate) {\n\n <ng-template pTemplate=\"header\">\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n @if (footerTemplate) {\n\n <ng-template pTemplate=\"footer\">\n\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n @if (emptyTemplate) {\n\n <ng-template pTemplate=\"empty\">\n\n <ng-container\n [ngTemplateOutlet]=\"emptyTemplate.template\"\n />\n\n </ng-template>\n\n } \n\n @if (emptyFilterTemplate) {\n\n <ng-template pTemplate=\"emptyfilter\">\n\n <ng-container\n [ngTemplateOutlet]=\"emptyFilterTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n</p-select>", styles: [":host{display:block;width:100%}:host ::ng-deep .p-inputtext,:host ::ng-deep .p-inputnumber,:host ::ng-deep .p-textarea,:host ::ng-deep .p-datepicker,:host ::ng-deep .p-select{width:100%}:host ::ng-deep .p-inputnumber-input{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
332
+ }
333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelect, decorators: [{
334
+ type: Component,
335
+ args: [{ selector: 'byte-select', imports: [
336
+ FormsModule,
337
+ SelectModule,
338
+ NgTemplateOutlet,
339
+ ByteSelectSelectedItemDirective,
340
+ ByteSelectItemDirective,
341
+ ByteSelectHeaderDirective,
342
+ ByteSelectFooterDirective,
343
+ ByteSelectEmptyDirective,
344
+ ByteSelectEmptyFilterDirective
345
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
346
+ {
347
+ provide: NG_VALUE_ACCESSOR,
348
+ useExisting: forwardRef(() => ByteSelect),
349
+ multi: true
350
+ }
351
+ ], template: "<p-select\n [options]=\"options\"\n [optionLabel]=\"optionLabel\"\n [optionValue]=\"optionValue\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [inputId]=\"inputId\"\n [name]=\"name\"\n [filter]=\"filter\"\n [filterBy]=\"filterBy\"\n [showClear]=\"showClear\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n appendTo=\"body\"\n>\n\n @if (selectedItemTemplate) {\n\n <ng-template\n pTemplate=\"selectedItem\"\n let-selectedOption\n >\n\n <ng-container\n [ngTemplateOutlet]=\"selectedItemTemplate.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption\n }\"\n />\n\n </ng-template>\n\n }\n\n @if (itemTemplate) {\n\n <ng-template\n pTemplate=\"item\"\n let-option\n >\n\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: option\n }\"\n />\n\n </ng-template>\n\n }\n\n @if (headerTemplate) {\n\n <ng-template pTemplate=\"header\">\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n @if (footerTemplate) {\n\n <ng-template pTemplate=\"footer\">\n\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n @if (emptyTemplate) {\n\n <ng-template pTemplate=\"empty\">\n\n <ng-container\n [ngTemplateOutlet]=\"emptyTemplate.template\"\n />\n\n </ng-template>\n\n } \n\n @if (emptyFilterTemplate) {\n\n <ng-template pTemplate=\"emptyfilter\">\n\n <ng-container\n [ngTemplateOutlet]=\"emptyFilterTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n</p-select>", styles: [":host{display:block;width:100%}:host ::ng-deep .p-inputtext,:host ::ng-deep .p-inputnumber,:host ::ng-deep .p-textarea,:host ::ng-deep .p-datepicker,:host ::ng-deep .p-select{width:100%}:host ::ng-deep .p-inputnumber-input{width:100%}\n"] }]
352
+ }], propDecorators: { options: [{
353
+ type: Input
354
+ }], optionLabel: [{
355
+ type: Input
356
+ }], optionValue: [{
357
+ type: Input
358
+ }], placeholder: [{
359
+ type: Input
360
+ }], disabled: [{
361
+ type: Input
362
+ }], inputId: [{
363
+ type: Input
364
+ }], name: [{
365
+ type: Input
366
+ }], filter: [{
367
+ type: Input
368
+ }], filterBy: [{
369
+ type: Input
370
+ }], showClear: [{
371
+ type: Input
372
+ }], selectedItemTemplate: [{
373
+ type: ContentChild,
374
+ args: [ByteSelectSelectedItemDirective]
375
+ }], itemTemplate: [{
376
+ type: ContentChild,
377
+ args: [ByteSelectItemDirective]
378
+ }], headerTemplate: [{
379
+ type: ContentChild,
380
+ args: [ByteSelectHeaderDirective]
381
+ }], footerTemplate: [{
382
+ type: ContentChild,
383
+ args: [ByteSelectFooterDirective]
384
+ }], emptyTemplate: [{
385
+ type: ContentChild,
386
+ args: [ByteSelectEmptyDirective]
387
+ }], emptyFilterTemplate: [{
388
+ type: ContentChild,
389
+ args: [ByteSelectEmptyFilterDirective]
390
+ }] } });
391
+
392
+ class ByteSelectModule {
393
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
394
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectModule, imports: [ByteSelect,
395
+ ByteSelectEmptyDirective,
396
+ ByteSelectEmptyFilterDirective,
397
+ ByteSelectFooterDirective,
398
+ ByteSelectHeaderDirective,
399
+ ByteSelectItemDirective,
400
+ ByteSelectSelectedItemDirective], exports: [ByteSelect,
401
+ ByteSelectEmptyDirective,
402
+ ByteSelectEmptyFilterDirective,
403
+ ByteSelectFooterDirective,
404
+ ByteSelectHeaderDirective,
405
+ ByteSelectItemDirective,
406
+ ByteSelectSelectedItemDirective] });
407
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectModule, imports: [ByteSelect] });
408
+ }
409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSelectModule, decorators: [{
410
+ type: NgModule,
411
+ args: [{
412
+ imports: [
413
+ ByteSelect,
414
+ ByteSelectEmptyDirective,
415
+ ByteSelectEmptyFilterDirective,
416
+ ByteSelectFooterDirective,
417
+ ByteSelectHeaderDirective,
418
+ ByteSelectItemDirective,
419
+ ByteSelectSelectedItemDirective
420
+ ],
421
+ exports: [
422
+ ByteSelect,
423
+ ByteSelectEmptyDirective,
424
+ ByteSelectEmptyFilterDirective,
425
+ ByteSelectFooterDirective,
426
+ ByteSelectHeaderDirective,
427
+ ByteSelectItemDirective,
428
+ ByteSelectSelectedItemDirective
429
+ ]
430
+ }]
431
+ }] });
432
+
433
+ // ⚠️ Archivo generado automáticamente. No editar a mano.
434
+ const ICON_REGISTRY = {
435
+ 'actions': `<svg width="4" height="16" viewBox="0 0 4 16" fill="none" xmlns="http://www.w3.org/2000/svg">
436
+ <path d="M1.83333 8.5C2.29357 8.5 2.66667 8.1269 2.66667 7.66667C2.66667 7.20643 2.29357 6.83333 1.83333 6.83333C1.3731 6.83333 1 7.20643 1 7.66667C1 8.1269 1.3731 8.5 1.83333 8.5Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
437
+ <path d="M1.83333 2.66667C2.29357 2.66667 2.66667 2.29357 2.66667 1.83333C2.66667 1.3731 2.29357 1 1.83333 1C1.3731 1 1 1.3731 1 1.83333C1 2.29357 1.3731 2.66667 1.83333 2.66667Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
438
+ <path d="M1.83333 14.3333C2.29357 14.3333 2.66667 13.9602 2.66667 13.5C2.66667 13.0398 2.29357 12.6667 1.83333 12.6667C1.3731 12.6667 1 13.0398 1 13.5C1 13.9602 1.3731 14.3333 1.83333 14.3333Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
439
+ </svg>
440
+ `,
441
+ 'calendar': `<svg width="17" height="18" viewBox="0 0 17 18" fill="none" xmlns="http://www.w3.org/2000/svg">
442
+ <path d="M5.16667 1V3.5M11.8333 1V3.5M1 6.83333H16M2.66667 1.83333H14.3333C15.2538 1.83333 16 2.57953 16 3.5V15.1667C16 16.0871 15.2538 16.8333 14.3333 16.8333H2.66667C1.74619 16.8333 1 16.0871 1 15.1667V3.5C1 2.57953 1.74619 1.83333 2.66667 1.83333Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
443
+ </svg>
444
+ `,
445
+ 'chevron-down': `<svg width="12" height="7" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg">
446
+ <path d="M1 1L6 6L11 1" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
447
+ </svg>
448
+ `,
449
+ 'contact': `<svg width="16" height="19" viewBox="0 0 16 19" fill="none" xmlns="http://www.w3.org/2000/svg">
450
+ <path d="M10.1667 10.1667C10.1667 9.50363 9.90327 8.86774 9.43443 8.3989C8.96559 7.93006 8.32971 7.66667 7.66667 7.66667M7.66667 7.66667C7.00363 7.66667 6.36774 7.93006 5.8989 8.3989C5.43006 8.86774 5.16667 9.50363 5.16667 10.1667M7.66667 7.66667C8.58714 7.66667 9.33333 6.92047 9.33333 6C9.33333 5.07953 8.58714 4.33333 7.66667 4.33333C6.74619 4.33333 6 5.07953 6 6C6 6.92047 6.74619 7.66667 7.66667 7.66667ZM1 15.5833V3.08333C1 2.5308 1.21949 2.00089 1.61019 1.61019C2.00089 1.21949 2.5308 1 3.08333 1H13.5C13.721 1 13.933 1.0878 14.0893 1.24408C14.2455 1.40036 14.3333 1.61232 14.3333 1.83333V13.5M1 15.5833C1 16.1359 1.21949 16.6658 1.61019 17.0565C2.00089 17.4472 2.5308 17.6667 3.08333 17.6667H13.5C13.721 17.6667 13.933 17.5789 14.0893 17.4226C14.2455 17.2663 14.3333 17.0543 14.3333 16.8333V13.5M1 15.5833C1 15.0308 1.21949 14.5009 1.61019 14.1102C2.00089 13.7195 2.5308 13.5 3.08333 13.5H14.3333" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
451
+ </svg>
452
+ `,
453
+ 'dashboard': `<svg width="19" height="15" viewBox="0 0 19 15" fill="none" xmlns="http://www.w3.org/2000/svg">
454
+ <path d="M9.33333 9.3337L12.6667 6.00037M2.11667 13.5004C1.38518 12.2335 1.00006 10.7965 1 9.33365C0.999944 7.87081 1.38496 6.43373 2.11635 5.16685C2.84774 3.89997 3.89973 2.84794 5.16657 2.11651C6.43342 1.38507 7.87049 1 9.33333 1C10.7962 1 12.2332 1.38507 13.5001 2.11651C14.7669 2.84794 15.8189 3.89997 16.5503 5.16685C17.2817 6.43373 17.6667 7.87081 17.6667 9.33365C17.6666 10.7965 17.2815 12.2335 16.55 13.5004" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
455
+ </svg>
456
+ `,
457
+ 'email': `<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg">
458
+ <path d="M18.0001 4L10.3577 9.727C10.0984 9.90421 9.8038 9.99755 9.50389 9.99755C9.20398 9.99755 8.9094 9.90421 8.65006 9.727L1.00006 4M2.70006 1H16.3001C17.2389 1 18.0001 1.89543 18.0001 3V15C18.0001 16.1046 17.2389 17 16.3001 17H2.70006C1.76118 17 1.00006 16.1046 1.00006 15V3C1.00006 1.89543 1.76118 1 2.70006 1Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
459
+ </svg>
460
+ `,
461
+ 'filter': `<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg">
462
+ <path d="M7.66637 15.1667C7.66629 15.3215 7.70937 15.4733 7.79077 15.6051C7.87217 15.7368 7.98867 15.8433 8.1272 15.9125L9.79387 16.7458C9.92095 16.8093 10.0622 16.8393 10.2041 16.8329C10.346 16.8264 10.4839 16.7838 10.6047 16.7091C10.7255 16.6344 10.8253 16.53 10.8944 16.4059C10.9635 16.2818 10.9998 16.1421 10.9997 16V10.1667C10.9999 9.75365 11.1534 9.35542 11.4305 9.04917L17.4497 2.39167C17.5576 2.27213 17.6285 2.1239 17.6539 1.9649C17.6794 1.8059 17.6582 1.64294 17.593 1.49573C17.5277 1.34851 17.4212 1.22335 17.2864 1.13538C17.1515 1.0474 16.9941 1.00038 16.833 1H1.83303C1.67187 1.00006 1.51419 1.04685 1.37907 1.1347C1.24396 1.22255 1.13722 1.34769 1.07179 1.49497C1.00635 1.64225 0.985022 1.80534 1.01039 1.96449C1.03575 2.12364 1.10672 2.27203 1.2147 2.39167L7.23553 9.04917C7.51265 9.35542 7.66618 9.75365 7.66637 10.1667V15.1667Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
463
+ </svg>
464
+ `,
465
+ 'lock': `<svg width="17" height="19" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
466
+ <path d="M4.33333 7.66667V5.16667C4.33333 4.0616 4.77232 3.00179 5.55372 2.22039C6.33512 1.43899 7.39493 1 8.5 1C9.60507 1 10.6649 1.43899 11.4463 2.22039C12.2277 3.00179 12.6667 4.0616 12.6667 5.16667V7.66667M9.33333 12.6667C9.33333 13.1269 8.96024 13.5 8.5 13.5C8.03976 13.5 7.66667 13.1269 7.66667 12.6667C7.66667 12.2064 8.03976 11.8333 8.5 11.8333C8.96024 11.8333 9.33333 12.2064 9.33333 12.6667ZM2.66667 7.66667H14.3333C15.2538 7.66667 16 8.41286 16 9.33333V16C16 16.9205 15.2538 17.6667 14.3333 17.6667H2.66667C1.74619 17.6667 1 16.9205 1 16V9.33333C1 8.41286 1.74619 7.66667 2.66667 7.66667Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
467
+ </svg>
468
+ `,
469
+ 'map-pin': `<svg width="18" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">
470
+ <path d="M9.601 18.8193C11.461 17.3739 17 12.6938 17 8.20009C17 6.29051 16.1571 4.45914 14.6569 3.10886C13.1566 1.75858 11.1217 1 9 1C6.87827 1 4.84344 1.75858 3.34315 3.10886C1.84285 4.45914 1 6.29051 1 8.20009C1 12.6938 6.539 17.3739 8.399 18.8193C8.57228 18.9366 8.7832 19 9 19C9.2168 19 9.42772 18.9366 9.601 18.8193Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
471
+ <path d="M9 10.9001C10.6569 10.9001 12 9.69128 12 8.20009C12 6.7089 10.6569 5.50006 9 5.50006C7.34315 5.50006 6 6.7089 6 8.20009C6 9.69128 7.34315 10.9001 9 10.9001Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
472
+ </svg>
473
+ `,
474
+ 'open-eye': `<svg width="19" height="14" viewBox="0 0 19 14" fill="none" xmlns="http://www.w3.org/2000/svg">
475
+ <path d="M1.05209 6.54282C0.982637 6.72992 0.982637 6.93572 1.05209 7.12282C1.7285 8.76294 2.87668 10.1653 4.35106 11.1521C5.82544 12.1389 7.55962 12.6656 9.33375 12.6656C11.1079 12.6656 12.8421 12.1389 14.3164 11.1521C15.7908 10.1653 16.939 8.76294 17.6154 7.12282C17.6849 6.93572 17.6849 6.72992 17.6154 6.54282C16.939 4.9027 15.7908 3.50035 14.3164 2.51357C12.8421 1.52678 11.1079 1 9.33375 1C7.55962 1 5.82544 1.52678 4.35106 2.51357C2.87668 3.50035 1.7285 4.9027 1.05209 6.54282Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
476
+ <path d="M9.33375 9.33282C10.7145 9.33282 11.8338 8.21353 11.8338 6.83282C11.8338 5.45211 10.7145 4.33282 9.33375 4.33282C7.95304 4.33282 6.83375 5.45211 6.83375 6.83282C6.83375 8.21353 7.95304 9.33282 9.33375 9.33282Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
477
+ </svg>
478
+ `,
479
+ 'plus': `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
480
+ <path d="M1 6.83333H12.6667M6.83333 1V12.6667" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
481
+ </svg>
482
+ `,
483
+ 'report': `<svg width="16" height="19" viewBox="0 0 16 19" fill="none" xmlns="http://www.w3.org/2000/svg">
484
+ <path d="M9.33333 1H2.66667C2.22464 1 1.80072 1.1756 1.48816 1.48816C1.17559 1.80072 1 2.22464 1 2.66667V16C1 16.442 1.17559 16.866 1.48816 17.1785C1.80072 17.4911 2.22464 17.6667 2.66667 17.6667H12.6667C13.1087 17.6667 13.5326 17.4911 13.8452 17.1785C14.1577 16.866 14.3333 16.442 14.3333 16V6M9.33333 1C9.59713 0.999575 9.8584 1.05134 10.1021 1.15231C10.3458 1.25328 10.5671 1.40147 10.7533 1.58834L13.7433 4.57834C13.9307 4.76459 14.0793 4.98612 14.1806 5.23014C14.2818 5.47415 14.3338 5.73581 14.3333 6M9.33333 1V5.16667C9.33333 5.38768 9.42113 5.59964 9.57741 5.75592C9.73369 5.9122 9.94565 6 10.1667 6L14.3333 6M4.33333 9.33334H11M6 8.5V10.1667M4.33333 13.5H11M9.33333 12.6667V14.3333" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
485
+ </svg>
486
+ `,
487
+ 'sales': `<svg width="16" height="19" viewBox="0 0 16 19" fill="none" xmlns="http://www.w3.org/2000/svg">
488
+ <path d="M7.66667 13.5038V5.17046M11 6.0038H6C5.55797 6.0038 5.13405 6.17939 4.82149 6.49195C4.50893 6.80451 4.33333 7.22843 4.33333 7.67046C4.33333 8.11249 4.50893 8.53641 4.82149 8.84897C5.13405 9.16153 5.55797 9.33713 6 9.33713H9.33333C9.77536 9.33713 10.1993 9.51272 10.5118 9.82528C10.8244 10.1378 11 10.5618 11 11.0038C11 11.4458 10.8244 11.8697 10.5118 12.1823C10.1993 12.4949 9.77536 12.6705 9.33333 12.6705H4.33333M1 1.83713C1 1.61612 1.0878 1.40415 1.24408 1.24787C1.40036 1.09159 1.61232 1.0038 1.83333 1.0038C2.03968 1.00266 2.24206 1.06048 2.41667 1.17046L3.19417 1.67046C3.36836 1.78178 3.57077 1.84092 3.7775 1.84092C3.98423 1.84092 4.18664 1.78178 4.36083 1.67046L5.13917 1.17046C5.31336 1.05915 5.51577 1 5.7225 1C5.92923 1 6.13164 1.05915 6.30583 1.17046L7.08333 1.67046C7.25753 1.78178 7.45994 1.84092 7.66667 1.84092C7.87339 1.84092 8.0758 1.78178 8.25 1.67046L9.0275 1.17046C9.2017 1.05915 9.40411 1 9.61083 1C9.81756 1 10.02 1.05915 10.1942 1.17046L10.9725 1.67046C11.1467 1.78178 11.3491 1.84092 11.5558 1.84092C11.7626 1.84092 11.965 1.78178 12.1392 1.67046L12.9167 1.17046C13.0913 1.06048 13.2937 1.00266 13.5 1.0038C13.721 1.0038 13.933 1.09159 14.0893 1.24787C14.2455 1.40415 14.3333 1.61612 14.3333 1.83713V16.8371C14.3333 17.0581 14.2455 17.2701 14.0893 17.4264C13.933 17.5827 13.721 17.6705 13.5 17.6705C13.2937 17.6716 13.0913 17.6138 12.9167 17.5038L12.1392 17.0038C11.965 16.8925 11.7626 16.8333 11.5558 16.8333C11.3491 16.8333 11.1467 16.8925 10.9725 17.0038L10.1942 17.5038C10.02 17.6151 9.81756 17.6743 9.61083 17.6743C9.40411 17.6743 9.2017 17.6151 9.0275 17.5038L8.25 17.0038C8.0758 16.8925 7.87339 16.8333 7.66667 16.8333C7.45994 16.8333 7.25753 16.8925 7.08333 17.0038L6.30583 17.5038C6.13164 17.6151 5.92923 17.6743 5.7225 17.6743C5.51577 17.6743 5.31336 17.6151 5.13917 17.5038L4.36083 17.0038C4.18664 16.8925 3.98423 16.8333 3.7775 16.8333C3.57077 16.8333 3.36836 16.8925 3.19417 17.0038L2.41667 17.5038C2.24206 17.6138 2.03968 17.6716 1.83333 17.6705C1.61232 17.6705 1.40036 17.5827 1.24408 17.4264C1.0878 17.2701 1 17.0581 1 16.8371V1.83713Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
489
+ </svg>
490
+ `,
491
+ 'search': `<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
492
+ <path d="M16 16L12.3833 12.3833M14.3333 7.66667C14.3333 11.3486 11.3486 14.3333 7.66667 14.3333C3.98477 14.3333 1 11.3486 1 7.66667C1 3.98477 3.98477 1 7.66667 1C11.3486 1 14.3333 3.98477 14.3333 7.66667Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
493
+ </svg>
494
+ `,
495
+ 'settings': `<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
496
+ <path d="M8.5 7.89167L5.16667 2.11667M8.5 10.775L5.16667 16.55M9.33333 17.6667V16M9.33333 16C13.0152 16 16 13.0152 16 9.33333C16 5.65143 13.0152 2.66667 9.33333 2.66667M9.33333 16C5.65143 16 2.66667 13.0152 2.66667 9.33333M9.33333 1V2.66667M9.33333 2.66667C5.65143 2.66667 2.66667 5.65143 2.66667 9.33333M11 9.33333H17.6667M11 9.33333C11 10.2538 10.2538 11 9.33333 11C8.41286 11 7.66667 10.2538 7.66667 9.33333C7.66667 8.41286 8.41286 7.66667 9.33333 7.66667C10.2538 7.66667 11 8.41286 11 9.33333ZM13.5 16.55L12.6667 15.1083M13.5 2.11667L12.6667 3.55833M1 9.33333H2.66667M16.55 13.5L15.1083 12.6667M16.55 5.16667L15.1083 6M2.11667 13.5L3.55833 12.6667M2.11667 5.16667L3.55833 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
497
+ </svg>
498
+ `,
499
+ 'trash': `<svg width="17" height="19" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
500
+ <path d="M6.83333 8.5V13.5M10.1667 8.5V13.5M14.3333 4.33333V16C14.3333 16.442 14.1577 16.866 13.8452 17.1785C13.5326 17.4911 13.1087 17.6667 12.6667 17.6667H4.33333C3.89131 17.6667 3.46738 17.4911 3.15482 17.1785C2.84226 16.866 2.66667 16.442 2.66667 16V4.33333M1 4.33333H16M5.16667 4.33333V2.66667C5.16667 2.22464 5.34226 1.80072 5.65482 1.48816C5.96738 1.17559 6.39131 1 6.83333 1H10.1667C10.6087 1 11.0326 1.17559 11.3452 1.48816C11.6577 1.80072 11.8333 2.22464 11.8333 2.66667V4.33333" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
501
+ </svg>
502
+ `,
503
+ 'upload': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
504
+ <path d="M10 1V13M5 6L10 1L15 6M19 13V17C19 17.5304 18.7893 18.0391 18.4142 18.4142C18.0391 18.7893 17.5304 19 17 19H3C2.46957 19 1.96086 18.7893 1.58579 18.4142C1.21071 18.0391 1 17.5304 1 17V13" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
505
+ </svg>
506
+ `,
507
+ 'user': `<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
508
+ <path d="M5.16667 16.5517V15.1667C5.16667 14.7246 5.34226 14.3007 5.65482 13.9882C5.96738 13.6756 6.39131 13.5 6.83333 13.5H11.8333C12.2754 13.5 12.6993 13.6756 13.0118 13.9882C13.3244 14.3007 13.5 14.7246 13.5 15.1667V16.5517M17.6667 9.33333C17.6667 13.9357 13.9357 17.6667 9.33333 17.6667C4.73096 17.6667 1 13.9357 1 9.33333C1 4.73096 4.73096 1 9.33333 1C13.9357 1 17.6667 4.73096 17.6667 9.33333ZM11.8333 7.66667C11.8333 9.04738 10.714 10.1667 9.33333 10.1667C7.95262 10.1667 6.83333 9.04738 6.83333 7.66667C6.83333 6.28595 7.95262 5.16667 9.33333 5.16667C10.714 5.16667 11.8333 6.28595 11.8333 7.66667Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
509
+ </svg>
510
+ `,
511
+ };
512
+
513
+ class ByteIcon {
514
+ sanitizer;
515
+ size = 20;
516
+ svg = '';
517
+ set icon(name) {
518
+ const raw = ICON_REGISTRY[name];
519
+ if (!raw) {
520
+ console.warn(`[byte-icon] icono "${name}" no existe en el registro`);
521
+ this.svg = '';
522
+ return;
523
+ }
524
+ this.svg = this.sanitizer.bypassSecurityTrustHtml(raw);
525
+ }
526
+ constructor(sanitizer) {
527
+ this.sanitizer = sanitizer;
528
+ }
529
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteIcon, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
530
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: ByteIcon, isStandalone: true, selector: "byte-icon", inputs: { size: "size", icon: "icon" }, ngImport: i0, template: `<span class="byte-icon" [style.width.px]="size" [style.height.px]="size" [innerHTML]="svg"></span>`, isInline: true, styles: [":host{display:inline-flex;line-height:0}.byte-icon{display:inline-flex;align-items:center;justify-content:center}.byte-icon svg{width:100%;height:100%;stroke:currentColor;fill:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
531
+ }
532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteIcon, decorators: [{
533
+ type: Component,
534
+ args: [{ selector: 'byte-icon', standalone: true, template: `<span class="byte-icon" [style.width.px]="size" [style.height.px]="size" [innerHTML]="svg"></span>`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex;line-height:0}.byte-icon{display:inline-flex;align-items:center;justify-content:center}.byte-icon svg{width:100%;height:100%;stroke:currentColor;fill:none}\n"] }]
535
+ }], ctorParameters: () => [{ type: i1$1.DomSanitizer }], propDecorators: { size: [{
536
+ type: Input
537
+ }], icon: [{
538
+ type: Input
539
+ }] } });
540
+
541
+ // Tipos que sí admiten icono lateral
542
+ const TYPES_WITH_ICON = ['text', 'number', 'password'];
543
+ class ByteInput {
544
+ typeInput = 'text';
545
+ label = '';
546
+ error = '';
547
+ placeholder = '';
548
+ disabled = false;
549
+ required = false;
550
+ inputId = '';
551
+ name = '';
552
+ rows = 3;
553
+ min;
554
+ max;
555
+ step = 1;
556
+ maxlength = null;
557
+ icon = '';
558
+ iconSize = 20;
559
+ /** Marca el control como inválido (borde/color de error) */
560
+ invalid = false;
561
+ /** Cantidad de dígitos para el tipo "otp" */
562
+ otpLength = 4;
563
+ value = null;
564
+ onChange = () => { };
565
+ onTouched = () => { };
566
+ get showIcon() {
567
+ return !!this.icon && TYPES_WITH_ICON.includes(this.typeInput);
568
+ }
569
+ writeValue(value) {
570
+ this.value = value;
571
+ }
572
+ registerOnChange(fn) {
573
+ this.onChange = fn;
574
+ }
575
+ registerOnTouched(fn) {
576
+ this.onTouched = fn;
577
+ }
578
+ setDisabledState(isDisabled) {
579
+ this.disabled = isDisabled;
580
+ }
581
+ onValueChange(value) {
582
+ this.value = value;
583
+ this.onChange(value);
584
+ this.onTouched();
585
+ }
586
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
587
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ByteInput, isStandalone: true, selector: "byte-input", inputs: { typeInput: "typeInput", label: "label", error: "error", placeholder: "placeholder", disabled: "disabled", required: "required", inputId: "inputId", name: "name", rows: "rows", min: "min", max: "max", step: "step", maxlength: "maxlength", icon: "icon", iconSize: "iconSize", invalid: "invalid", otpLength: "otpLength" }, providers: [
588
+ {
589
+ provide: NG_VALUE_ACCESSOR,
590
+ useExisting: forwardRef(() => ByteInput),
591
+ multi: true
592
+ }
593
+ ], ngImport: i0, template: "@if (label) {\n <label [for]=\"inputId\" class=\"byte-input-label\" [class.byte-input-label--invalid]=\"invalid\">\n {{ label }}\n @if (required) {\n <span>*</span>\n }\n </label>\n}\n\n<div\n class=\"byte-input-wrapper\"\n [class.byte-input-wrapper--disabled]=\"disabled\"\n [class.byte-input-wrapper--invalid]=\"invalid\"\n>\n\n @if (showIcon) {\n <byte-icon class=\"byte-input-icon\" [icon]=\"icon\" [size]=\"16\"></byte-icon>\n }\n\n @if (typeInput === 'text') {\n\n <input\n pInputText\n [id]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [ngModel]=\"value\"\n [maxlength]=\"maxlength\"\n [invalid]=\"invalid\"\n [class.byte-input--has-icon]=\"showIcon\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n } @else if (typeInput === 'number') {\n\n <p-inputnumber\n [inputId]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n [ngModel]=\"value\"\n [invalid]=\"invalid\"\n [class.byte-input--has-icon]=\"showIcon\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n } @else if (typeInput === 'area') {\n\n <textarea\n pTextarea\n [id]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [rows]=\"rows\"\n [ngModel]=\"value\"\n [invalid]=\"invalid\"\n (ngModelChange)=\"onValueChange($event)\"\n ></textarea>\n\n } @else if (typeInput === 'password') {\n\n <p-password\n [inputId]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [ngModel]=\"value\"\n [toggleMask]=\"true\"\n [feedback]=\"false\"\n [invalid]=\"invalid\"\n [class.byte-input--has-icon]=\"showIcon\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n } @else if (typeInput === 'otp') {\n\n <p-inputotp\n [name]=\"name\"\n [length]=\"otpLength\"\n [disabled]=\"disabled\"\n [ngModel]=\"value\"\n [invalid]=\"invalid\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n }\n\n</div>\n\n@if (error) {\n <small class=\"byte-input-error\">\n {{ error }}\n </small>\n}", styles: [":host{display:block;width:100%}:host ::ng-deep .p-inputtext,:host ::ng-deep .p-inputnumber,:host ::ng-deep .p-textarea,:host ::ng-deep .p-datepicker,:host ::ng-deep .p-select{width:100%}:host ::ng-deep .p-inputnumber-input{width:100%}:host ::ng-deep .p-inputotp-input{width:2.25rem}.byte-input-label{display:block;margin-bottom:.5rem;font-size:.88rem}.byte-input-error{display:block;margin-top:.5rem;font-size:.7rem;color:var(--p-red-500, #ef4444)}.byte-input-label--invalid{color:var(--p-red-500, #ef4444)}.byte-input-wrapper{position:relative;display:flex;align-items:center}.byte-input-icon{position:absolute;left:.75rem;color:var(--p-text-muted-color, #6c757d);pointer-events:none;z-index:2;transition:color .15s ease}.byte-input-wrapper:focus-within .byte-input-icon{color:var(--p-primary-color, #3B82F6)}.byte-input-wrapper--disabled .byte-input-icon{color:var(--p-text-disabled-color, #cbd5e1)}.byte-input-wrapper--invalid .byte-input-icon{color:var(--p-red-500, #ef4444)}input.byte-input--has-icon,textarea.byte-input--has-icon{padding-left:2.5rem}.byte-input-wrapper ::ng-deep .p-password{width:100%}.byte-input-wrapper ::ng-deep p-password.byte-input--has-icon input{padding-left:2.5rem}.byte-input-wrapper ::ng-deep p-inputnumber.byte-input--has-icon input{padding-left:2.5rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$3.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i3.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: TextareaModule }, { kind: "directive", type: i4.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i5.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "toggleMask", "inputStyleClass", "styleClass", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "tabindex", "appendTo", "motionOptions", "overlayOptions"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: InputOtpModule }, { kind: "component", type: i6.InputOtp, selector: "p-inputOtp, p-inputotp, p-input-otp", inputs: ["readonly", "tabindex", "length", "styleClass", "mask", "integerOnly", "autofocus", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: ByteIcon, selector: "byte-icon", inputs: ["size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
594
+ }
595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteInput, decorators: [{
596
+ type: Component,
597
+ args: [{ selector: 'byte-input', standalone: true, imports: [
598
+ FormsModule,
599
+ InputTextModule,
600
+ InputNumberModule,
601
+ TextareaModule,
602
+ PasswordModule,
603
+ InputOtpModule,
604
+ ByteIcon
605
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
606
+ {
607
+ provide: NG_VALUE_ACCESSOR,
608
+ useExisting: forwardRef(() => ByteInput),
609
+ multi: true
610
+ }
611
+ ], template: "@if (label) {\n <label [for]=\"inputId\" class=\"byte-input-label\" [class.byte-input-label--invalid]=\"invalid\">\n {{ label }}\n @if (required) {\n <span>*</span>\n }\n </label>\n}\n\n<div\n class=\"byte-input-wrapper\"\n [class.byte-input-wrapper--disabled]=\"disabled\"\n [class.byte-input-wrapper--invalid]=\"invalid\"\n>\n\n @if (showIcon) {\n <byte-icon class=\"byte-input-icon\" [icon]=\"icon\" [size]=\"16\"></byte-icon>\n }\n\n @if (typeInput === 'text') {\n\n <input\n pInputText\n [id]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [ngModel]=\"value\"\n [maxlength]=\"maxlength\"\n [invalid]=\"invalid\"\n [class.byte-input--has-icon]=\"showIcon\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n } @else if (typeInput === 'number') {\n\n <p-inputnumber\n [inputId]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n [ngModel]=\"value\"\n [invalid]=\"invalid\"\n [class.byte-input--has-icon]=\"showIcon\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n } @else if (typeInput === 'area') {\n\n <textarea\n pTextarea\n [id]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [rows]=\"rows\"\n [ngModel]=\"value\"\n [invalid]=\"invalid\"\n (ngModelChange)=\"onValueChange($event)\"\n ></textarea>\n\n } @else if (typeInput === 'password') {\n\n <p-password\n [inputId]=\"inputId\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [ngModel]=\"value\"\n [toggleMask]=\"true\"\n [feedback]=\"false\"\n [invalid]=\"invalid\"\n [class.byte-input--has-icon]=\"showIcon\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n } @else if (typeInput === 'otp') {\n\n <p-inputotp\n [name]=\"name\"\n [length]=\"otpLength\"\n [disabled]=\"disabled\"\n [ngModel]=\"value\"\n [invalid]=\"invalid\"\n (ngModelChange)=\"onValueChange($event)\"\n />\n\n }\n\n</div>\n\n@if (error) {\n <small class=\"byte-input-error\">\n {{ error }}\n </small>\n}", styles: [":host{display:block;width:100%}:host ::ng-deep .p-inputtext,:host ::ng-deep .p-inputnumber,:host ::ng-deep .p-textarea,:host ::ng-deep .p-datepicker,:host ::ng-deep .p-select{width:100%}:host ::ng-deep .p-inputnumber-input{width:100%}:host ::ng-deep .p-inputotp-input{width:2.25rem}.byte-input-label{display:block;margin-bottom:.5rem;font-size:.88rem}.byte-input-error{display:block;margin-top:.5rem;font-size:.7rem;color:var(--p-red-500, #ef4444)}.byte-input-label--invalid{color:var(--p-red-500, #ef4444)}.byte-input-wrapper{position:relative;display:flex;align-items:center}.byte-input-icon{position:absolute;left:.75rem;color:var(--p-text-muted-color, #6c757d);pointer-events:none;z-index:2;transition:color .15s ease}.byte-input-wrapper:focus-within .byte-input-icon{color:var(--p-primary-color, #3B82F6)}.byte-input-wrapper--disabled .byte-input-icon{color:var(--p-text-disabled-color, #cbd5e1)}.byte-input-wrapper--invalid .byte-input-icon{color:var(--p-red-500, #ef4444)}input.byte-input--has-icon,textarea.byte-input--has-icon{padding-left:2.5rem}.byte-input-wrapper ::ng-deep .p-password{width:100%}.byte-input-wrapper ::ng-deep p-password.byte-input--has-icon input{padding-left:2.5rem}.byte-input-wrapper ::ng-deep p-inputnumber.byte-input--has-icon input{padding-left:2.5rem}\n"] }]
612
+ }], propDecorators: { typeInput: [{
613
+ type: Input
614
+ }], label: [{
615
+ type: Input
616
+ }], error: [{
617
+ type: Input
618
+ }], placeholder: [{
619
+ type: Input
620
+ }], disabled: [{
621
+ type: Input
622
+ }], required: [{
623
+ type: Input
624
+ }], inputId: [{
625
+ type: Input
626
+ }], name: [{
627
+ type: Input
628
+ }], rows: [{
629
+ type: Input
630
+ }], min: [{
631
+ type: Input
632
+ }], max: [{
633
+ type: Input
634
+ }], step: [{
635
+ type: Input
636
+ }], maxlength: [{
637
+ type: Input
638
+ }], icon: [{
639
+ type: Input
640
+ }], iconSize: [{
641
+ type: Input
642
+ }], invalid: [{
643
+ type: Input
644
+ }], otpLength: [{
645
+ type: Input
646
+ }] } });
647
+
648
+ class ByteButtonContentDirective {
649
+ template;
650
+ constructor(template) {
651
+ this.template = template;
652
+ }
653
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonContentDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
654
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteButtonContentDirective, isStandalone: true, selector: "ng-template[byteButtonContent]", ngImport: i0 });
655
+ }
656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonContentDirective, decorators: [{
657
+ type: Directive,
658
+ args: [{
659
+ selector: 'ng-template[byteButtonContent]',
660
+ standalone: true
661
+ }]
662
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
663
+
664
+ class ByteButton {
665
+ // =====================================================
666
+ // INPUTS
667
+ // =====================================================
668
+ label = '';
669
+ icon = '';
670
+ iconPos = 'left';
671
+ severity;
672
+ variant;
673
+ size;
674
+ disabled = false;
675
+ loading = false;
676
+ loadingIcon = '';
677
+ raised = false;
678
+ rounded = false;
679
+ text = false;
680
+ outlined = false;
681
+ link = false;
682
+ plain = false;
683
+ fluid = false;
684
+ type = 'button';
685
+ buttonProps = {};
686
+ // =====================================================
687
+ // CUSTOM TEMPLATE
688
+ // =====================================================
689
+ contentTemplate;
690
+ // =====================================================
691
+ // OUTPUT
692
+ // =====================================================
693
+ clicked = new EventEmitter();
694
+ // =====================================================
695
+ // CLICK
696
+ // =====================================================
697
+ onButtonClick(event) {
698
+ this.clicked.emit(event);
699
+ }
700
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
701
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ByteButton, isStandalone: true, selector: "byte-button", inputs: { label: "label", icon: "icon", iconPos: "iconPos", severity: "severity", variant: "variant", size: "size", disabled: "disabled", loading: "loading", loadingIcon: "loadingIcon", raised: "raised", rounded: "rounded", text: "text", outlined: "outlined", link: "link", plain: "plain", fluid: "fluid", type: "type", buttonProps: "buttonProps" }, outputs: { clicked: "clicked" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ByteButtonContentDirective, descendants: true }], ngImport: i0, template: "<p-button\n [label]=\"label\"\n [iconPos]=\"iconPos\"\n [severity]=\"severity\"\n [variant]=\"variant\"\n [size]=\"size\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [raised]=\"raised\"\n [rounded]=\"rounded\"\n [text]=\"text\"\n [outlined]=\"outlined\"\n [link]=\"link\"\n [plain]=\"plain\"\n [fluid]=\"fluid\"\n [type]=\"type\"\n [buttonProps]=\"buttonProps\"\n (onClick)=\"onButtonClick($event)\"\n>\n @if (icon) {\n <ng-template pTemplate=\"icon\">\n <byte-icon [icon]=\"icon\" [size]=\"14\"></byte-icon>\n </ng-template>\n }\n\n @if (contentTemplate) {\n <ng-template pTemplate=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTemplate.template\" />\n </ng-template>\n }\n</p-button>", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$2.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ByteIcon, selector: "byte-icon", inputs: ["size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
702
+ }
703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButton, decorators: [{
704
+ type: Component,
705
+ args: [{ selector: 'byte-button', imports: [
706
+ ButtonModule,
707
+ NgTemplateOutlet,
708
+ ByteButtonContentDirective,
709
+ ByteIcon
710
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-button\n [label]=\"label\"\n [iconPos]=\"iconPos\"\n [severity]=\"severity\"\n [variant]=\"variant\"\n [size]=\"size\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [raised]=\"raised\"\n [rounded]=\"rounded\"\n [text]=\"text\"\n [outlined]=\"outlined\"\n [link]=\"link\"\n [plain]=\"plain\"\n [fluid]=\"fluid\"\n [type]=\"type\"\n [buttonProps]=\"buttonProps\"\n (onClick)=\"onButtonClick($event)\"\n>\n @if (icon) {\n <ng-template pTemplate=\"icon\">\n <byte-icon [icon]=\"icon\" [size]=\"14\"></byte-icon>\n </ng-template>\n }\n\n @if (contentTemplate) {\n <ng-template pTemplate=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTemplate.template\" />\n </ng-template>\n }\n</p-button>" }]
711
+ }], propDecorators: { label: [{
712
+ type: Input
713
+ }], icon: [{
714
+ type: Input
715
+ }], iconPos: [{
716
+ type: Input
717
+ }], severity: [{
718
+ type: Input
719
+ }], variant: [{
720
+ type: Input
721
+ }], size: [{
722
+ type: Input
723
+ }], disabled: [{
724
+ type: Input
725
+ }], loading: [{
726
+ type: Input
727
+ }], loadingIcon: [{
728
+ type: Input
729
+ }], raised: [{
730
+ type: Input
731
+ }], rounded: [{
732
+ type: Input
733
+ }], text: [{
734
+ type: Input
735
+ }], outlined: [{
736
+ type: Input
737
+ }], link: [{
738
+ type: Input
739
+ }], plain: [{
740
+ type: Input
741
+ }], fluid: [{
742
+ type: Input
743
+ }], type: [{
744
+ type: Input
745
+ }], buttonProps: [{
746
+ type: Input
747
+ }], contentTemplate: [{
748
+ type: ContentChild,
749
+ args: [ByteButtonContentDirective]
750
+ }], clicked: [{
751
+ type: Output
752
+ }] } });
753
+
754
+ class ByteButtonGroup {
755
+ // =====================================================
756
+ // INPUTS
757
+ // =====================================================
758
+ style;
759
+ styleClass;
760
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
761
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: ByteButtonGroup, isStandalone: true, selector: "byte-button-group", inputs: { style: "style", styleClass: "styleClass" }, ngImport: i0, template: "<p-buttonGroup\n [style]=\"style\"\n [class]=\"styleClass\"\n>\n <ng-content />\n</p-buttonGroup>", styles: [":host{display:inline-flex}\n"], dependencies: [{ kind: "ngmodule", type: ButtonGroupModule }, { kind: "component", type: i1$3.ButtonGroup, selector: "p-buttonGroup, p-buttongroup, p-button-group" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
762
+ }
763
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonGroup, decorators: [{
764
+ type: Component,
765
+ args: [{ selector: 'byte-button-group', imports: [
766
+ ButtonGroupModule
767
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-buttonGroup\n [style]=\"style\"\n [class]=\"styleClass\"\n>\n <ng-content />\n</p-buttonGroup>", styles: [":host{display:inline-flex}\n"] }]
768
+ }], propDecorators: { style: [{
769
+ type: Input
770
+ }], styleClass: [{
771
+ type: Input
772
+ }] } });
773
+
774
+ class ByteButtonModule {
775
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
776
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonModule, imports: [ByteButton,
777
+ ByteButtonContentDirective,
778
+ ByteButtonGroup], exports: [ByteButton,
779
+ ByteButtonContentDirective,
780
+ ByteButtonGroup] });
781
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonModule, imports: [ByteButton,
782
+ ByteButtonGroup] });
783
+ }
784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteButtonModule, decorators: [{
785
+ type: NgModule,
786
+ args: [{
787
+ imports: [
788
+ ByteButton,
789
+ ByteButtonContentDirective,
790
+ ByteButtonGroup
791
+ ],
792
+ exports: [
793
+ ByteButton,
794
+ ByteButtonContentDirective,
795
+ ByteButtonGroup
796
+ ]
797
+ }]
798
+ }] });
799
+
800
+ class ByteTableCaptionDirective {
801
+ template;
802
+ constructor(template) {
803
+ this.template = template;
804
+ }
805
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableCaptionDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
806
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteTableCaptionDirective, isStandalone: true, selector: "ng-template[byteTableCaption]", ngImport: i0 });
807
+ }
808
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableCaptionDirective, decorators: [{
809
+ type: Directive,
810
+ args: [{
811
+ selector: 'ng-template[byteTableCaption]',
812
+ standalone: true
813
+ }]
814
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
815
+ class ByteTableHeaderDirective {
816
+ template;
817
+ constructor(template) {
818
+ this.template = template;
819
+ }
820
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
821
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteTableHeaderDirective, isStandalone: true, selector: "ng-template[byteTableHeader]", ngImport: i0 });
822
+ }
823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableHeaderDirective, decorators: [{
824
+ type: Directive,
825
+ args: [{
826
+ selector: 'ng-template[byteTableHeader]',
827
+ standalone: true
828
+ }]
829
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
830
+ class ByteTableBodyDirective {
831
+ template;
832
+ constructor(template) {
833
+ this.template = template;
834
+ }
835
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableBodyDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
836
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteTableBodyDirective, isStandalone: true, selector: "ng-template[byteTableBody]", ngImport: i0 });
837
+ }
838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableBodyDirective, decorators: [{
839
+ type: Directive,
840
+ args: [{
841
+ selector: 'ng-template[byteTableBody]',
842
+ standalone: true
843
+ }]
844
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
845
+ class ByteTableFooterDirective {
846
+ template;
847
+ constructor(template) {
848
+ this.template = template;
849
+ }
850
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableFooterDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
851
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteTableFooterDirective, isStandalone: true, selector: "ng-template[byteTableFooter]", ngImport: i0 });
852
+ }
853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableFooterDirective, decorators: [{
854
+ type: Directive,
855
+ args: [{
856
+ selector: 'ng-template[byteTableFooter]',
857
+ standalone: true
858
+ }]
859
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
860
+ class ByteTableEmptyMessageDirective {
861
+ template;
862
+ constructor(template) {
863
+ this.template = template;
864
+ }
865
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableEmptyMessageDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
866
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteTableEmptyMessageDirective, isStandalone: true, selector: "ng-template[byteTableEmptyMessage]", ngImport: i0 });
867
+ }
868
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableEmptyMessageDirective, decorators: [{
869
+ type: Directive,
870
+ args: [{
871
+ selector: 'ng-template[byteTableEmptyMessage]',
872
+ standalone: true
873
+ }]
874
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
875
+ class ByteTableSummaryDirective {
876
+ template;
877
+ constructor(template) {
878
+ this.template = template;
879
+ }
880
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableSummaryDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
881
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteTableSummaryDirective, isStandalone: true, selector: "ng-template[byteTableSummary]", ngImport: i0 });
882
+ }
883
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableSummaryDirective, decorators: [{
884
+ type: Directive,
885
+ args: [{
886
+ selector: 'ng-template[byteTableSummary]',
887
+ standalone: true
888
+ }]
889
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
890
+
891
+ class ByteTable {
892
+ // =====================================================
893
+ // INPUTS
894
+ // =====================================================
895
+ value = [];
896
+ columns = [];
897
+ paginator = false;
898
+ rows = 10;
899
+ rowsPerPageOptions = [10, 25, 50];
900
+ loading = false;
901
+ sortField = '';
902
+ sortOrder = 1;
903
+ selectionMode = null;
904
+ dataKey = '';
905
+ scrollable = false;
906
+ tableStyle = null;
907
+ // =====================================================
908
+ // CUSTOM TEMPLATES
909
+ // =====================================================
910
+ captionTemplate;
911
+ headerTemplate;
912
+ bodyTemplate;
913
+ footerTemplate;
914
+ emptyMessageTemplate;
915
+ summaryTemplate;
916
+ // =====================================================
917
+ // SELECTION (CVA)
918
+ // =====================================================
919
+ selection = null;
920
+ onChange = () => { };
921
+ onTouched = () => { };
922
+ writeValue(value) {
923
+ this.selection = value;
924
+ }
925
+ registerOnChange(fn) {
926
+ this.onChange = fn;
927
+ }
928
+ registerOnTouched(fn) {
929
+ this.onTouched = fn;
930
+ }
931
+ setDisabledState(isDisabled) {
932
+ // p-table no tiene un "disabled" nativo global; se puede usar
933
+ // para deshabilitar selección si lo necesitas más adelante.
934
+ }
935
+ onSelectionChange(value) {
936
+ this.selection = value;
937
+ this.onChange(value);
938
+ this.onTouched();
939
+ }
940
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
941
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ByteTable, isStandalone: true, selector: "byte-table", inputs: { value: "value", columns: "columns", paginator: "paginator", rows: "rows", rowsPerPageOptions: "rowsPerPageOptions", loading: "loading", sortField: "sortField", sortOrder: "sortOrder", selectionMode: "selectionMode", dataKey: "dataKey", scrollable: "scrollable", tableStyle: "tableStyle" }, providers: [
942
+ {
943
+ provide: NG_VALUE_ACCESSOR,
944
+ useExisting: forwardRef(() => ByteTable),
945
+ multi: true
946
+ }
947
+ ], queries: [{ propertyName: "captionTemplate", first: true, predicate: ByteTableCaptionDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ByteTableHeaderDirective, descendants: true }, { propertyName: "bodyTemplate", first: true, predicate: ByteTableBodyDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ByteTableFooterDirective, descendants: true }, { propertyName: "emptyMessageTemplate", first: true, predicate: ByteTableEmptyMessageDirective, descendants: true }, { propertyName: "summaryTemplate", first: true, predicate: ByteTableSummaryDirective, descendants: true }], ngImport: i0, template: "<p-table\n [value]=\"value\"\n [columns]=\"columns\"\n [paginator]=\"paginator\"\n [rows]=\"rows\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [loading]=\"loading\"\n [sortField]=\"sortField\"\n [sortOrder]=\"sortOrder\"\n [selectionMode]=\"selectionMode\"\n [(selection)]=\"selection\"\n (selectionChange)=\"onSelectionChange($event)\"\n [dataKey]=\"dataKey\"\n [scrollable]=\"scrollable\"\n [tableStyle]=\"tableStyle\"\n>\n\n @if (captionTemplate) {\n\n <ng-template pTemplate=\"caption\">\n\n <ng-container [ngTemplateOutlet]=\"captionTemplate.template\" />\n\n </ng-template>\n\n }\n\n @if (headerTemplate) {\n\n <ng-template\n pTemplate=\"header\"\n let-columns\n >\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: columns }\"\n />\n\n </ng-template>\n\n }\n\n @if (bodyTemplate) {\n\n <ng-template\n pTemplate=\"body\"\n let-rowData\n let-columns=\"columns\"\n let-rowIndex=\"rowIndex\"\n >\n\n <ng-container\n [ngTemplateOutlet]=\"bodyTemplate.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: rowData,\n columns: columns,\n rowIndex: rowIndex\n }\"\n />\n\n </ng-template>\n\n }\n\n @if (footerTemplate) {\n\n <ng-template\n pTemplate=\"footer\"\n let-columns\n >\n\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: columns }\"\n />\n\n </ng-template>\n\n }\n\n @if (emptyMessageTemplate) {\n\n <ng-template pTemplate=\"emptymessage\">\n\n <ng-container [ngTemplateOutlet]=\"emptyMessageTemplate.template\" />\n\n </ng-template>\n\n }\n\n @if (summaryTemplate) {\n\n <ng-template pTemplate=\"summary\">\n\n <ng-container [ngTemplateOutlet]=\"summaryTemplate.template\" />\n\n </ng-template>\n\n }\n\n</p-table>", styles: [""], dependencies: [{ kind: "ngmodule", type: TableModule }, { kind: "component", type: i1$4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
948
+ }
949
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTable, decorators: [{
950
+ type: Component,
951
+ args: [{ selector: 'byte-table', imports: [
952
+ TableModule,
953
+ NgTemplateOutlet,
954
+ ByteTableCaptionDirective,
955
+ ByteTableHeaderDirective,
956
+ ByteTableBodyDirective,
957
+ ByteTableFooterDirective,
958
+ ByteTableEmptyMessageDirective,
959
+ ByteTableSummaryDirective
960
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
961
+ {
962
+ provide: NG_VALUE_ACCESSOR,
963
+ useExisting: forwardRef(() => ByteTable),
964
+ multi: true
965
+ }
966
+ ], template: "<p-table\n [value]=\"value\"\n [columns]=\"columns\"\n [paginator]=\"paginator\"\n [rows]=\"rows\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [loading]=\"loading\"\n [sortField]=\"sortField\"\n [sortOrder]=\"sortOrder\"\n [selectionMode]=\"selectionMode\"\n [(selection)]=\"selection\"\n (selectionChange)=\"onSelectionChange($event)\"\n [dataKey]=\"dataKey\"\n [scrollable]=\"scrollable\"\n [tableStyle]=\"tableStyle\"\n>\n\n @if (captionTemplate) {\n\n <ng-template pTemplate=\"caption\">\n\n <ng-container [ngTemplateOutlet]=\"captionTemplate.template\" />\n\n </ng-template>\n\n }\n\n @if (headerTemplate) {\n\n <ng-template\n pTemplate=\"header\"\n let-columns\n >\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: columns }\"\n />\n\n </ng-template>\n\n }\n\n @if (bodyTemplate) {\n\n <ng-template\n pTemplate=\"body\"\n let-rowData\n let-columns=\"columns\"\n let-rowIndex=\"rowIndex\"\n >\n\n <ng-container\n [ngTemplateOutlet]=\"bodyTemplate.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: rowData,\n columns: columns,\n rowIndex: rowIndex\n }\"\n />\n\n </ng-template>\n\n }\n\n @if (footerTemplate) {\n\n <ng-template\n pTemplate=\"footer\"\n let-columns\n >\n\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: columns }\"\n />\n\n </ng-template>\n\n }\n\n @if (emptyMessageTemplate) {\n\n <ng-template pTemplate=\"emptymessage\">\n\n <ng-container [ngTemplateOutlet]=\"emptyMessageTemplate.template\" />\n\n </ng-template>\n\n }\n\n @if (summaryTemplate) {\n\n <ng-template pTemplate=\"summary\">\n\n <ng-container [ngTemplateOutlet]=\"summaryTemplate.template\" />\n\n </ng-template>\n\n }\n\n</p-table>" }]
967
+ }], propDecorators: { value: [{
968
+ type: Input
969
+ }], columns: [{
970
+ type: Input
971
+ }], paginator: [{
972
+ type: Input
973
+ }], rows: [{
974
+ type: Input
975
+ }], rowsPerPageOptions: [{
976
+ type: Input
977
+ }], loading: [{
978
+ type: Input
979
+ }], sortField: [{
980
+ type: Input
981
+ }], sortOrder: [{
982
+ type: Input
983
+ }], selectionMode: [{
984
+ type: Input
985
+ }], dataKey: [{
986
+ type: Input
987
+ }], scrollable: [{
988
+ type: Input
989
+ }], tableStyle: [{
990
+ type: Input
991
+ }], captionTemplate: [{
992
+ type: ContentChild,
993
+ args: [ByteTableCaptionDirective]
994
+ }], headerTemplate: [{
995
+ type: ContentChild,
996
+ args: [ByteTableHeaderDirective]
997
+ }], bodyTemplate: [{
998
+ type: ContentChild,
999
+ args: [ByteTableBodyDirective]
1000
+ }], footerTemplate: [{
1001
+ type: ContentChild,
1002
+ args: [ByteTableFooterDirective]
1003
+ }], emptyMessageTemplate: [{
1004
+ type: ContentChild,
1005
+ args: [ByteTableEmptyMessageDirective]
1006
+ }], summaryTemplate: [{
1007
+ type: ContentChild,
1008
+ args: [ByteTableSummaryDirective]
1009
+ }] } });
1010
+
1011
+ class ByteTableModule {
1012
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1013
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.22", ngImport: i0, type: ByteTableModule, imports: [ByteTable,
1014
+ ByteTableCaptionDirective,
1015
+ ByteTableHeaderDirective,
1016
+ ByteTableBodyDirective,
1017
+ ByteTableFooterDirective,
1018
+ ByteTableEmptyMessageDirective,
1019
+ ByteTableSummaryDirective], exports: [ByteTable,
1020
+ ByteTableCaptionDirective,
1021
+ ByteTableHeaderDirective,
1022
+ ByteTableBodyDirective,
1023
+ ByteTableFooterDirective,
1024
+ ByteTableEmptyMessageDirective,
1025
+ ByteTableSummaryDirective] });
1026
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableModule, imports: [ByteTable] });
1027
+ }
1028
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteTableModule, decorators: [{
1029
+ type: NgModule,
1030
+ args: [{
1031
+ imports: [
1032
+ ByteTable,
1033
+ ByteTableCaptionDirective,
1034
+ ByteTableHeaderDirective,
1035
+ ByteTableBodyDirective,
1036
+ ByteTableFooterDirective,
1037
+ ByteTableEmptyMessageDirective,
1038
+ ByteTableSummaryDirective
1039
+ ],
1040
+ exports: [
1041
+ ByteTable,
1042
+ ByteTableCaptionDirective,
1043
+ ByteTableHeaderDirective,
1044
+ ByteTableBodyDirective,
1045
+ ByteTableFooterDirective,
1046
+ ByteTableEmptyMessageDirective,
1047
+ ByteTableSummaryDirective
1048
+ ]
1049
+ }]
1050
+ }] });
1051
+
1052
+ class ByteSidebarHeaderDirective {
1053
+ template;
1054
+ constructor(template) {
1055
+ this.template = template;
1056
+ }
1057
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebarHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
1058
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteSidebarHeaderDirective, isStandalone: true, selector: "ng-template[byteSidebarHeader]", ngImport: i0 });
1059
+ }
1060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebarHeaderDirective, decorators: [{
1061
+ type: Directive,
1062
+ args: [{
1063
+ selector: 'ng-template[byteSidebarHeader]',
1064
+ standalone: true
1065
+ }]
1066
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
1067
+
1068
+ class ByteSidebar {
1069
+ cdRef;
1070
+ constructor(cdRef) {
1071
+ this.cdRef = cdRef;
1072
+ }
1073
+ // =====================================================
1074
+ // INPUTS
1075
+ // =====================================================
1076
+ visible = false;
1077
+ position = 'left';
1078
+ modal = true;
1079
+ dismissible = true;
1080
+ closeOnEscape = true;
1081
+ showCloseIcon = true;
1082
+ blockScroll = false;
1083
+ style = null;
1084
+ styleClass = '';
1085
+ autoZIndex = true;
1086
+ baseZIndex = 0;
1087
+ // =====================================================
1088
+ // OUTPUTS
1089
+ // =====================================================
1090
+ visibleChange = new EventEmitter();
1091
+ // =====================================================
1092
+ // CUSTOM TEMPLATES
1093
+ // =====================================================
1094
+ headerTemplate;
1095
+ // =====================================================
1096
+ // CHANGE
1097
+ // =====================================================
1098
+ onVisibleChange(value) {
1099
+ this.visible = value;
1100
+ this.visibleChange.emit(value);
1101
+ this.cdRef.markForCheck();
1102
+ }
1103
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebar, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1104
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ByteSidebar, isStandalone: true, selector: "byte-sidebar", inputs: { visible: "visible", position: "position", modal: "modal", dismissible: "dismissible", closeOnEscape: "closeOnEscape", showCloseIcon: "showCloseIcon", blockScroll: "blockScroll", style: "style", styleClass: "styleClass", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex" }, outputs: { visibleChange: "visibleChange" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ByteSidebarHeaderDirective, descendants: true }], ngImport: i0, template: "<p-drawer\n [visible]=\"visible\"\n (visibleChange)=\"onVisibleChange($event)\"\n [position]=\"position\"\n [modal]=\"modal\"\n [dismissible]=\"dismissible\"\n [closeOnEscape]=\"closeOnEscape\"\n [showCloseIcon]=\"showCloseIcon\"\n [blockScroll]=\"blockScroll\"\n [style]=\"style\"\n [styleClass]=\"styleClass\"\n [autoZIndex]=\"autoZIndex\"\n [baseZIndex]=\"baseZIndex\"\n appendTo=\"body\"\n>\n\n @if (headerTemplate) {\n\n <ng-template pTemplate=\"header\">\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n <ng-content></ng-content>\n\n</p-drawer>", styles: [""], dependencies: [{ kind: "ngmodule", type: DrawerModule }, { kind: "component", type: i1$5.Drawer, selector: "p-drawer", inputs: ["appendTo", "motionOptions", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "closeButtonProps", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen", "header", "maskStyle", "closable"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1105
+ }
1106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebar, decorators: [{
1107
+ type: Component,
1108
+ args: [{ selector: 'byte-sidebar', imports: [
1109
+ DrawerModule,
1110
+ NgTemplateOutlet,
1111
+ ByteSidebarHeaderDirective
1112
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-drawer\n [visible]=\"visible\"\n (visibleChange)=\"onVisibleChange($event)\"\n [position]=\"position\"\n [modal]=\"modal\"\n [dismissible]=\"dismissible\"\n [closeOnEscape]=\"closeOnEscape\"\n [showCloseIcon]=\"showCloseIcon\"\n [blockScroll]=\"blockScroll\"\n [style]=\"style\"\n [styleClass]=\"styleClass\"\n [autoZIndex]=\"autoZIndex\"\n [baseZIndex]=\"baseZIndex\"\n appendTo=\"body\"\n>\n\n @if (headerTemplate) {\n\n <ng-template pTemplate=\"header\">\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n <ng-content></ng-content>\n\n</p-drawer>" }]
1113
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { visible: [{
1114
+ type: Input
1115
+ }], position: [{
1116
+ type: Input
1117
+ }], modal: [{
1118
+ type: Input
1119
+ }], dismissible: [{
1120
+ type: Input
1121
+ }], closeOnEscape: [{
1122
+ type: Input
1123
+ }], showCloseIcon: [{
1124
+ type: Input
1125
+ }], blockScroll: [{
1126
+ type: Input
1127
+ }], style: [{
1128
+ type: Input
1129
+ }], styleClass: [{
1130
+ type: Input
1131
+ }], autoZIndex: [{
1132
+ type: Input
1133
+ }], baseZIndex: [{
1134
+ type: Input
1135
+ }], visibleChange: [{
1136
+ type: Output
1137
+ }], headerTemplate: [{
1138
+ type: ContentChild,
1139
+ args: [ByteSidebarHeaderDirective]
1140
+ }] } });
1141
+
1142
+ class ByteSidebarModule {
1143
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1144
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebarModule, imports: [ByteSidebar,
1145
+ ByteSidebarHeaderDirective], exports: [ByteSidebar,
1146
+ ByteSidebarHeaderDirective] });
1147
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebarModule, imports: [ByteSidebar] });
1148
+ }
1149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteSidebarModule, decorators: [{
1150
+ type: NgModule,
1151
+ args: [{
1152
+ imports: [
1153
+ ByteSidebar,
1154
+ ByteSidebarHeaderDirective
1155
+ ],
1156
+ exports: [
1157
+ ByteSidebar,
1158
+ ByteSidebarHeaderDirective
1159
+ ]
1160
+ }]
1161
+ }] });
1162
+
1163
+ class ByteDialogHeaderDirective {
1164
+ template;
1165
+ constructor(template) {
1166
+ this.template = template;
1167
+ }
1168
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
1169
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteDialogHeaderDirective, isStandalone: true, selector: "ng-template[byteDialogHeader]", ngImport: i0 });
1170
+ }
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogHeaderDirective, decorators: [{
1172
+ type: Directive,
1173
+ args: [{
1174
+ selector: 'ng-template[byteDialogHeader]',
1175
+ standalone: true
1176
+ }]
1177
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
1178
+ class ByteDialogFooterDirective {
1179
+ template;
1180
+ constructor(template) {
1181
+ this.template = template;
1182
+ }
1183
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogFooterDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
1184
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: ByteDialogFooterDirective, isStandalone: true, selector: "ng-template[byteDialogFooter]", ngImport: i0 });
1185
+ }
1186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogFooterDirective, decorators: [{
1187
+ type: Directive,
1188
+ args: [{
1189
+ selector: 'ng-template[byteDialogFooter]',
1190
+ standalone: true
1191
+ }]
1192
+ }], ctorParameters: () => [{ type: i0.TemplateRef }] });
1193
+
1194
+ class ByteDialog {
1195
+ // =====================================================
1196
+ // INPUTS
1197
+ // =====================================================
1198
+ visible = false;
1199
+ header = '';
1200
+ modal = true;
1201
+ closable = true;
1202
+ draggable = true;
1203
+ resizable = false;
1204
+ dismissableMask = false;
1205
+ closeOnEscape = true;
1206
+ maximizable = false;
1207
+ blockScroll = true;
1208
+ position = 'center';
1209
+ style = null;
1210
+ styleClass = '';
1211
+ contentStyle = null;
1212
+ breakpoints = null;
1213
+ // =====================================================
1214
+ // OUTPUTS
1215
+ // =====================================================
1216
+ visibleChange = new EventEmitter();
1217
+ // =====================================================
1218
+ // CUSTOM TEMPLATES
1219
+ // =====================================================
1220
+ headerTemplate;
1221
+ footerTemplate;
1222
+ // =====================================================
1223
+ // CHANGE
1224
+ // =====================================================
1225
+ onVisibleChange(value) {
1226
+ this.visible = value;
1227
+ this.visibleChange.emit(value);
1228
+ }
1229
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
1230
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ByteDialog, isStandalone: true, selector: "byte-dialog", inputs: { visible: "visible", header: "header", modal: "modal", closable: "closable", draggable: "draggable", resizable: "resizable", dismissableMask: "dismissableMask", closeOnEscape: "closeOnEscape", maximizable: "maximizable", blockScroll: "blockScroll", position: "position", style: "style", styleClass: "styleClass", contentStyle: "contentStyle", breakpoints: "breakpoints" }, outputs: { visibleChange: "visibleChange" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ByteDialogHeaderDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ByteDialogFooterDirective, descendants: true }], ngImport: i0, template: "<p-dialog\n [(visible)]=\"visible\"\n (visibleChange)=\"onVisibleChange($event)\"\n [header]=\"header\"\n [modal]=\"modal\"\n [closable]=\"closable\"\n [draggable]=\"draggable\"\n [resizable]=\"resizable\"\n [dismissableMask]=\"dismissableMask\"\n [closeOnEscape]=\"closeOnEscape\"\n [maximizable]=\"maximizable\"\n [blockScroll]=\"blockScroll\"\n [position]=\"position\"\n [style]=\"style\"\n [styleClass]=\"styleClass\"\n [contentStyle]=\"contentStyle\"\n [breakpoints]=\"breakpoints\"\n appendTo=\"body\"\n>\n\n @if (headerTemplate) {\n\n <ng-template pTemplate=\"header\">\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n <ng-content></ng-content>\n\n @if (footerTemplate) {\n\n <ng-template pTemplate=\"footer\">\n\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n</p-dialog>", styles: [""], dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "component", type: i1$6.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i2$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1231
+ }
1232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialog, decorators: [{
1233
+ type: Component,
1234
+ args: [{ selector: 'byte-dialog', imports: [
1235
+ DialogModule,
1236
+ NgTemplateOutlet,
1237
+ ByteDialogHeaderDirective,
1238
+ ByteDialogFooterDirective
1239
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-dialog\n [(visible)]=\"visible\"\n (visibleChange)=\"onVisibleChange($event)\"\n [header]=\"header\"\n [modal]=\"modal\"\n [closable]=\"closable\"\n [draggable]=\"draggable\"\n [resizable]=\"resizable\"\n [dismissableMask]=\"dismissableMask\"\n [closeOnEscape]=\"closeOnEscape\"\n [maximizable]=\"maximizable\"\n [blockScroll]=\"blockScroll\"\n [position]=\"position\"\n [style]=\"style\"\n [styleClass]=\"styleClass\"\n [contentStyle]=\"contentStyle\"\n [breakpoints]=\"breakpoints\"\n appendTo=\"body\"\n>\n\n @if (headerTemplate) {\n\n <ng-template pTemplate=\"header\">\n\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n <ng-content></ng-content>\n\n @if (footerTemplate) {\n\n <ng-template pTemplate=\"footer\">\n\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate.template\"\n />\n\n </ng-template>\n\n }\n\n</p-dialog>" }]
1240
+ }], propDecorators: { visible: [{
1241
+ type: Input
1242
+ }], header: [{
1243
+ type: Input
1244
+ }], modal: [{
1245
+ type: Input
1246
+ }], closable: [{
1247
+ type: Input
1248
+ }], draggable: [{
1249
+ type: Input
1250
+ }], resizable: [{
1251
+ type: Input
1252
+ }], dismissableMask: [{
1253
+ type: Input
1254
+ }], closeOnEscape: [{
1255
+ type: Input
1256
+ }], maximizable: [{
1257
+ type: Input
1258
+ }], blockScroll: [{
1259
+ type: Input
1260
+ }], position: [{
1261
+ type: Input
1262
+ }], style: [{
1263
+ type: Input
1264
+ }], styleClass: [{
1265
+ type: Input
1266
+ }], contentStyle: [{
1267
+ type: Input
1268
+ }], breakpoints: [{
1269
+ type: Input
1270
+ }], visibleChange: [{
1271
+ type: Output
1272
+ }], headerTemplate: [{
1273
+ type: ContentChild,
1274
+ args: [ByteDialogHeaderDirective]
1275
+ }], footerTemplate: [{
1276
+ type: ContentChild,
1277
+ args: [ByteDialogFooterDirective]
1278
+ }] } });
1279
+
1280
+ class ByteDialogModule {
1281
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1282
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogModule, imports: [ByteDialog,
1283
+ ByteDialogHeaderDirective,
1284
+ ByteDialogFooterDirective], exports: [ByteDialog,
1285
+ ByteDialogHeaderDirective,
1286
+ ByteDialogFooterDirective] });
1287
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogModule, imports: [ByteDialog] });
1288
+ }
1289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ByteDialogModule, decorators: [{
1290
+ type: NgModule,
1291
+ args: [{
1292
+ imports: [
1293
+ ByteDialog,
1294
+ ByteDialogHeaderDirective,
1295
+ ByteDialogFooterDirective
1296
+ ],
1297
+ exports: [
1298
+ ByteDialog,
1299
+ ByteDialogHeaderDirective,
1300
+ ByteDialogFooterDirective
1301
+ ]
1302
+ }]
1303
+ }] });
1304
+
1305
+ /*
1306
+ * Public API Surface of shared-ui
1307
+ */
1308
+ //export * from './lib/shared-ui';
1309
+
1310
+ /**
1311
+ * Generated bundle index. Do not edit.
1312
+ */
1313
+
1314
+ export { ByteButton, ByteButtonContentDirective, ByteButtonGroup, ByteButtonModule, ByteDialog, ByteDialogFooterDirective, ByteDialogHeaderDirective, ByteDialogModule, ByteInput, ByteSelect, ByteSelectEmptyDirective, ByteSelectEmptyFilterDirective, ByteSelectFooterDirective, ByteSelectHeaderDirective, ByteSelectItemDirective, ByteSelectModule, ByteSelectSelectedItemDirective, ByteSidebar, ByteSidebarHeaderDirective, ByteSidebarModule, ByteTable, ByteTableBodyDirective, ByteTableCaptionDirective, ByteTableEmptyMessageDirective, ByteTableFooterDirective, ByteTableHeaderDirective, ByteTableModule, ByteTableSummaryDirective, Calendar, provideEmpresaUI };
1315
+ //# sourceMappingURL=4byte-shared-lib.mjs.map