@sd-angular/core 19.0.0-beta.70 → 19.0.0-beta.72

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 (57) hide show
  1. package/assets/scss/ckeditor5.scss +1 -2
  2. package/components/modal/index.d.ts +1 -1
  3. package/components/modal/src/modal.component.d.ts +24 -0
  4. package/components/upload-file/src/configurations/upload-file.configuration.d.ts +33 -0
  5. package/components/upload-file/src/upload-file.component.d.ts +5 -2
  6. package/fesm2022/sd-angular-core-components-document-builder.mjs +1 -1
  7. package/fesm2022/sd-angular-core-components-document-builder.mjs.map +1 -1
  8. package/fesm2022/sd-angular-core-components-import-excel.mjs +1 -1
  9. package/fesm2022/sd-angular-core-components-import-excel.mjs.map +1 -1
  10. package/fesm2022/sd-angular-core-components-modal.mjs +57 -91
  11. package/fesm2022/sd-angular-core-components-modal.mjs.map +1 -1
  12. package/fesm2022/sd-angular-core-components-preview.mjs +1 -1
  13. package/fesm2022/sd-angular-core-components-preview.mjs.map +1 -1
  14. package/fesm2022/sd-angular-core-components-side-drawer.mjs +2 -2
  15. package/fesm2022/sd-angular-core-components-side-drawer.mjs.map +1 -1
  16. package/fesm2022/sd-angular-core-components-table.mjs +9 -7
  17. package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
  18. package/fesm2022/sd-angular-core-components-upload-file.mjs +62 -10
  19. package/fesm2022/sd-angular-core-components-upload-file.mjs.map +1 -1
  20. package/fesm2022/sd-angular-core-components-workflow.mjs +13 -13
  21. package/fesm2022/sd-angular-core-components-workflow.mjs.map +1 -1
  22. package/fesm2022/sd-angular-core-forms-chip-calendar.mjs +158 -197
  23. package/fesm2022/sd-angular-core-forms-chip-calendar.mjs.map +1 -1
  24. package/fesm2022/sd-angular-core-forms-chip.mjs +173 -203
  25. package/fesm2022/sd-angular-core-forms-chip.mjs.map +1 -1
  26. package/fesm2022/sd-angular-core-modules-layout.mjs +2 -3
  27. package/fesm2022/sd-angular-core-modules-layout.mjs.map +1 -1
  28. package/fesm2022/sd-angular-core-modules-permission.mjs +160 -74
  29. package/fesm2022/sd-angular-core-modules-permission.mjs.map +1 -1
  30. package/fesm2022/sd-angular-core.mjs +0 -1
  31. package/fesm2022/sd-angular-core.mjs.map +1 -1
  32. package/forms/chip/src/chip.component.d.ts +35 -44
  33. package/forms/chip-calendar/src/chip-calendar.component.d.ts +35 -42
  34. package/modules/layout/services/menu/menu.model.d.ts +1 -0
  35. package/modules/permission/src/configurations/permission.configuration.d.ts +56 -2
  36. package/modules/permission/src/directives/permission.directive.d.ts +5 -8
  37. package/modules/permission/src/guards/permission.guard.d.ts +2 -1
  38. package/modules/permission/src/services/permission.service.d.ts +6 -9
  39. package/package.json +44 -52
  40. package/public-api.d.ts +0 -1
  41. package/sd-angular-core-19.0.0-beta.72.tgz +0 -0
  42. package/components/modal/src/modal/modal.component.d.ts +0 -31
  43. package/fesm2022/sd-angular-core-guards-permission.mjs +0 -155
  44. package/fesm2022/sd-angular-core-guards-permission.mjs.map +0 -1
  45. package/fesm2022/sd-angular-core-guards.mjs +0 -6
  46. package/fesm2022/sd-angular-core-guards.mjs.map +0 -1
  47. package/guards/index.d.ts +0 -1
  48. package/guards/permission/index.d.ts +0 -4
  49. package/guards/permission/src/configurations/index.d.ts +0 -1
  50. package/guards/permission/src/configurations/permission.configuration.d.ts +0 -8
  51. package/guards/permission/src/directives/index.d.ts +0 -1
  52. package/guards/permission/src/directives/permission.directive.d.ts +0 -12
  53. package/guards/permission/src/guards/index.d.ts +0 -1
  54. package/guards/permission/src/guards/permission.guard.d.ts +0 -13
  55. package/guards/permission/src/services/index.d.ts +0 -1
  56. package/guards/permission/src/services/permission.service.d.ts +0 -15
  57. package/sd-angular-core-19.0.0-beta.70.tgz +0 -0
@@ -1,12 +1,14 @@
1
+ import { ENTER, COMMA } from '@angular/cdk/keycodes';
1
2
  import * as i1 from '@angular/common';
2
3
  import { CommonModule } from '@angular/common';
3
4
  import * as i0 from '@angular/core';
4
- import { Pipe, EventEmitter, ContentChild, ViewChild, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
5
+ import { Pipe, inject, ChangeDetectorRef, input, booleanAttribute, output, contentChild, effect, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
5
6
  import * as i2 from '@angular/forms';
6
- import { NgForm, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import { FormControl, NgForm, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
7
8
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
8
9
  import * as i6 from '@angular/material/chips';
9
10
  import { MatChipsModule } from '@angular/material/chips';
11
+ import { MatNativeDateModule } from '@angular/material/core';
10
12
  import * as i7 from '@angular/material/datepicker';
11
13
  import { MatDatepickerModule, MatCalendar } from '@angular/material/datepicker';
12
14
  import { MatFormFieldModule } from '@angular/material/form-field';
@@ -19,7 +21,9 @@ import { MatMenuModule, MatMenuTrigger } from '@angular/material/menu';
19
21
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
20
22
  import * as i4 from '@angular/material/tooltip';
21
23
  import { MatTooltipModule } from '@angular/material/tooltip';
24
+ import { SdView } from '@sd-angular/core/components/view';
22
25
  import { SdViewDefDirective, SdLabelDefDirective } from '@sd-angular/core/forms/directives';
26
+ import { SdLabel } from '@sd-angular/core/forms/label';
23
27
  import { SdFormControl } from '@sd-angular/core/forms/models';
24
28
  import { DateUtilities } from '@sd-angular/core/utilities';
25
29
  import { Subscription } from 'rxjs';
@@ -43,7 +47,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
43
47
  }]
44
48
  }], ctorParameters: () => [] });
45
49
 
46
- class SdChipErrotStateMatcher {
50
+ class SdChipCalendarErrorStateMatcher {
47
51
  formControl;
48
52
  constructor(formControl) {
49
53
  this.formControl = formControl;
@@ -54,233 +58,234 @@ class SdChipErrotStateMatcher {
54
58
  }
55
59
  }
56
60
  class SdChipCalendar {
57
- ref;
58
- menuTrigger;
59
- calendar;
60
- autoId;
61
- set _autoId(val) {
62
- if (!val) {
63
- return;
64
- }
65
- this.autoId = `forms-chip-calendar-${val}`;
66
- }
61
+ #ref = inject(ChangeDetectorRef);
62
+ #subscription = new Subscription();
67
63
  #name = uuid.v4();
68
- set _name(val) {
69
- if (val) {
70
- this.#name = val;
71
- }
72
- }
73
- appearance = 'outline';
74
- floatLabel = 'auto';
75
- size = 'md';
76
64
  #form;
77
- set form(val) {
78
- if (val) {
79
- if (val instanceof NgForm) {
80
- this.#form = val.form;
65
+ #isBlurring = false;
66
+ menuTrigger;
67
+ calendar;
68
+ autoId = input();
69
+ name = input();
70
+ appearance = input('outline');
71
+ floatLabel = input('auto');
72
+ size = input('md');
73
+ form = input();
74
+ label = input('');
75
+ placeholder = input();
76
+ removable = input(true);
77
+ hideInlineError = input(false, { transform: booleanAttribute });
78
+ model = input();
79
+ required = input(false, { transform: booleanAttribute });
80
+ min = input(0);
81
+ max = input(0);
82
+ disabled = input(false, { transform: booleanAttribute });
83
+ viewed = input(false, { transform: booleanAttribute });
84
+ hyperlink = input();
85
+ modelChange = output();
86
+ sdChange = output();
87
+ input;
88
+ sdViewDef = contentChild(SdViewDefDirective);
89
+ sdLabelDef = contentChild(SdLabelDefDirective);
90
+ sdLabelTemplate = contentChild('sdLabel');
91
+ sdValueTemplate = contentChild('sdValue');
92
+ isFocused = false;
93
+ #inputControl = new FormControl();
94
+ #formControl = new SdFormControl();
95
+ #matcher;
96
+ separatorKeysCodes = [ENTER, COMMA];
97
+ constructor() {
98
+ effect(() => {
99
+ const formInput = this.form();
100
+ if (formInput) {
101
+ if (formInput instanceof NgForm) {
102
+ this.#form = formInput.form;
103
+ }
104
+ else {
105
+ this.#form = formInput;
106
+ }
107
+ }
108
+ });
109
+ effect(() => {
110
+ this.required();
111
+ this.min();
112
+ this.max();
113
+ this.#updateValidator();
114
+ });
115
+ effect(() => {
116
+ const values = this.model();
117
+ if (Array.isArray(values)) {
118
+ this.#formControl.setValue(values);
119
+ }
120
+ });
121
+ effect(() => {
122
+ const isDisabled = this.disabled();
123
+ if (isDisabled) {
124
+ this.#formControl.disable();
125
+ this.#inputControl.disable();
81
126
  }
82
127
  else {
83
- this.#form = val;
128
+ this.#formControl.enable();
129
+ this.#inputControl.enable();
84
130
  }
85
- }
86
- }
87
- label = '';
88
- placeholder;
89
- removable = true;
90
- set _removable(val) {
91
- this.removable = val === '' || val;
92
- }
93
- hideInlineError = false;
94
- set _hideInlineError(val) {
95
- this.hideInlineError = val === '' || !!val;
96
- }
97
- // Model
98
- set model(values) {
99
- if (!Array.isArray(values)) {
100
- values = [];
101
- }
102
- this.formControl.setValue(values);
103
- }
104
- // Validator
105
- required = false;
106
- set _required(val) {
107
- this.required = val === '' || !!val;
108
- this.#updateValidator();
131
+ });
132
+ effect(() => {
133
+ const nameVal = this.name();
134
+ if (nameVal) {
135
+ this.#name = nameVal;
136
+ }
137
+ });
138
+ this.#matcher = new SdChipCalendarErrorStateMatcher(this.#formControl);
109
139
  }
110
- min;
111
- set pMin(val) {
112
- this.min = +val || 0;
113
- this.#updateValidator();
140
+ get formControl() {
141
+ return this.#formControl;
114
142
  }
115
- max;
116
- set pMax(val) {
117
- this.max = +val || 0;
118
- this.#updateValidator();
143
+ get inputControl() {
144
+ return this.#inputControl;
119
145
  }
120
- modelChange = new EventEmitter();
121
- // Optional
122
- set disabled(val) {
123
- val = val === '' || val;
124
- if (val) {
125
- this.formControl.disable();
126
- this.inputControl.disable();
127
- }
128
- else {
129
- this.formControl.enable();
130
- this.inputControl.enable();
131
- }
132
- }
133
- sdChange = new EventEmitter();
134
- input;
135
- sdView;
136
- sdLabelDef;
137
- isBlurring = false;
138
- isFocused = false;
139
- inputControl = new FormControl();
140
- formControl = new SdFormControl();
141
- matcher = new SdChipErrotStateMatcher(this.formControl);
142
- /**
143
- * Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.
144
- * Dùng getter (không phải computed) vì đây là component cũ dùng @Input decorator.
145
- */
146
146
  get errorTooltipMessage() {
147
- const errors = this.formControl.errors;
147
+ const errors = this.#formControl.errors;
148
148
  if (!errors)
149
149
  return undefined;
150
150
  if (errors['required'])
151
- return 'Vui lòng nhập thông tin';
151
+ return 'Vui lòng nhập thông tin';
152
152
  if (errors['minlength'])
153
- return `Vui lòng nhập ít nhất ${this.min} giá trị`;
153
+ return `Vui lòng nhập ít nhất ${this.min()} giá trị`;
154
154
  if (errors['maxlength'])
155
- return `Vui lòng nhập tối đa ${this.max} giá trị`;
155
+ return `Vui lòng nhập tối đa ${this.max()} giá trị`;
156
156
  return undefined;
157
157
  }
158
- #subscription = new Subscription();
159
- constructor(ref) {
160
- this.ref = ref;
158
+ get matcher() {
159
+ return this.#matcher;
161
160
  }
162
161
  ngAfterViewInit() {
163
- this.#subscription.add(this.formControl.sdChanges.subscribe(() => {
164
- this.ref.markForCheck();
162
+ this.#subscription.add(this.#formControl.sdChanges.subscribe(() => {
163
+ this.#ref.markForCheck();
165
164
  }));
166
- this.#form?.addControl(this.#name, this.formControl);
165
+ this.#form?.addControl(this.#name, this.#formControl);
167
166
  }
168
167
  ngOnDestroy() {
169
168
  this.#form?.removeControl(this.#name);
170
169
  this.#subscription.unsubscribe();
171
170
  }
172
171
  #updateValidator = () => {
173
- this.formControl.clearValidators();
174
- this.formControl.clearAsyncValidators();
172
+ this.#formControl.clearValidators();
173
+ this.#formControl.clearAsyncValidators();
175
174
  const validators = [];
176
175
  const asyncValidators = [];
177
- if (this.required) {
176
+ if (this.required()) {
178
177
  validators.push(Validators.required);
179
178
  }
180
- if (this.min > 0) {
181
- validators.push(Validators.minLength(this.min));
179
+ if (this.min() > 0) {
180
+ validators.push(Validators.minLength(this.min()));
182
181
  }
183
- if (this.max > 0) {
184
- validators.push(Validators.maxLength(this.max));
182
+ if (this.max() > 0) {
183
+ validators.push(Validators.maxLength(this.max()));
185
184
  }
186
- this.formControl.setValidators(validators);
187
- this.formControl.setAsyncValidators(asyncValidators);
188
- this.formControl.updateValueAndValidity();
185
+ this.#formControl.setValidators(validators);
186
+ this.#formControl.setAsyncValidators(asyncValidators);
187
+ this.#formControl.updateValueAndValidity();
189
188
  };
190
- onClickChip = ($event, item) => {
191
- $event.stopPropagation();
192
- $event.stopImmediatePropagation();
193
- if (!this.formControl.disabled) {
189
+ #clickChip = (event, item) => {
190
+ event.stopPropagation();
191
+ event.stopImmediatePropagation();
192
+ if (!this.#formControl.disabled) {
194
193
  this.#focus();
195
194
  }
196
195
  };
197
- onRemove = (item) => {
198
- const values = this.formControl.value ?? [];
196
+ #remove = (item) => {
197
+ const values = this.#formControl.value ?? [];
199
198
  if (typeof item === 'string') {
200
- this.formControl.setValue(values.filter(value => item !== value));
201
- this.modelChange.emit(this.formControl.value);
202
- this.sdChange.emit(this.formControl.value);
199
+ this.#formControl.setValue(values.filter(value => item !== value));
200
+ this.modelChange.emit(this.#formControl.value);
201
+ this.sdChange.emit(this.#formControl.value);
203
202
  }
204
- this.inputControl.setValue('');
203
+ this.#inputControl.setValue('');
205
204
  this.#focus();
206
205
  };
207
- onSelect = (event) => {
206
+ #select = (event) => {
208
207
  const item = event.option.value;
209
- const values = this.formControl.value ?? [];
208
+ const values = this.#formControl.value ?? [];
210
209
  if (item) {
211
210
  if (typeof item === 'string' || typeof item === 'number') {
212
211
  if (!values.includes(item)) {
213
212
  values.push(item);
214
- this.formControl.setValue(values);
215
- this.modelChange.emit(this.formControl.value);
216
- this.sdChange.emit(this.formControl.value);
213
+ this.#formControl.setValue(values);
214
+ this.modelChange.emit(this.#formControl.value);
215
+ this.sdChange.emit(this.#formControl.value);
217
216
  }
218
217
  }
219
218
  this.input.nativeElement.value = '';
220
- this.inputControl.setValue('', {
219
+ this.#inputControl.setValue('', {
221
220
  emitEvent: false,
222
221
  });
223
222
  }
224
223
  };
225
- onClick = () => {
226
- if (this.sdView?.templateRef) {
227
- if (!this.formControl.disabled && !this.isFocused) {
224
+ #onClick = () => {
225
+ if (this.sdViewDef()?.templateRef) {
226
+ if (!this.#formControl.disabled && !this.isFocused) {
228
227
  this.#focus();
229
228
  }
230
229
  }
231
230
  };
232
231
  #focus = () => {
233
232
  this.isFocused = true;
234
- this.isBlurring = false;
233
+ this.#isBlurring = false;
235
234
  setTimeout(() => {
236
235
  if (this.isFocused) {
237
236
  this.input?.nativeElement?.focus();
238
237
  }
239
238
  }, 100);
240
239
  };
241
- onClear = ($event) => {
242
- $event?.stopPropagation();
243
- this.inputControl.setValue('');
244
- this.formControl.setValue([]);
245
- this.modelChange.emit(this.formControl.value);
246
- this.sdChange.emit(this.formControl.value);
247
- this.ref.detectChanges();
240
+ #clear = (evt) => {
241
+ evt?.stopPropagation();
242
+ this.#inputControl.setValue('');
243
+ this.#formControl.setValue([]);
244
+ this.modelChange.emit(this.#formControl.value);
245
+ this.sdChange.emit(this.#formControl.value);
246
+ this.#ref.detectChanges();
248
247
  };
249
- onSelectDate = (date) => {
248
+ #selectDate = (date) => {
250
249
  const value = DateUtilities.toFormat(date, 'yyyy/MM/dd');
251
- const values = this.formControl.value ?? [];
250
+ const values = this.#formControl.value ?? [];
252
251
  if (value) {
253
252
  if (!values.includes(value)) {
254
- // Nếu chưa có thì add vào
255
253
  values.push(value);
256
- this.formControl.setValue(values);
257
- this.modelChange.emit(this.formControl.value);
258
- this.sdChange.emit(this.formControl.value);
254
+ this.#formControl.setValue(values);
255
+ this.modelChange.emit(this.#formControl.value);
256
+ this.sdChange.emit(this.#formControl.value);
259
257
  }
260
258
  else {
261
- // Nếu rồi thì remove
262
- this.formControl.setValue(values.filter(date => value !== date));
263
- this.modelChange.emit(this.formControl.value);
264
- this.sdChange.emit(this.formControl.value);
259
+ this.#formControl.setValue(values.filter(date => value !== date));
260
+ this.modelChange.emit(this.#formControl.value);
261
+ this.sdChange.emit(this.#formControl.value);
265
262
  }
266
263
  this.calendar.updateTodaysDate();
267
- this.ref.markForCheck();
264
+ this.#ref.markForCheck();
268
265
  }
269
266
  };
270
- onCloseCalendar() {
267
+ #closeCalendar = () => {
271
268
  this.isFocused = false;
272
269
  this.input.nativeElement.blur();
273
- }
274
- dateClass = (cellDate) => {
275
- const dates = this.formControl.value || [];
270
+ };
271
+ #dateClass = (cellDate) => {
272
+ const dates = this.#formControl.value || [];
276
273
  if (Array.isArray(dates)) {
277
274
  const selected = dates.some(date => date === DateUtilities.toFormat(cellDate, 'yyyy/MM/dd'));
278
275
  return selected ? 'sd-chip-calendar-selected-date' : '';
279
276
  }
280
277
  return '';
281
278
  };
282
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdChipCalendar, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
283
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: SdChipCalendar, isStandalone: true, selector: "sd-chip-calendar", inputs: { _autoId: ["autoId", "_autoId"], _name: ["name", "_name"], appearance: "appearance", floatLabel: "floatLabel", size: "size", form: "form", label: "label", placeholder: "placeholder", _removable: ["removable", "_removable"], _hideInlineError: ["hideInlineError", "_hideInlineError"], model: "model", _required: ["required", "_required"], pMin: ["min", "pMin"], pMax: ["max", "pMax"], disabled: "disabled" }, outputs: { modelChange: "modelChange", sdChange: "sdChange" }, queries: [{ propertyName: "sdView", first: true, predicate: SdViewDefDirective, descendants: true }, { propertyName: "sdLabelDef", first: true, predicate: SdLabelDefDirective, descendants: true }], viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }, { propertyName: "calendar", first: true, predicate: MatCalendar, descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "@let labelTemplate = sdLabelDef?.templateRef;\r\n@let viewTemplate = sdView?.templateRef;\r\n@let errMsg = errorTooltipMessage;\r\n\r\n@if (!appearance && labelTemplate) {\r\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\r\n}\r\n@if (!appearance && label && !labelTemplate) {\r\n <div class=\"d-block mb-0 T14M\">{{ label }} <span class=\"text-danger mb-2\" *ngIf=\"required\">*</span></div>\r\n}\r\n<div\r\n class=\"d-flex align-items-center\"\r\n [class.sd-view]=\"viewTemplate\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\"\r\n aria-hidden=\"true\">\r\n @if (viewTemplate && !isFocused) {\r\n <ng-container *ngTemplateOutlet=\"viewTemplate; context: { value: formControl.value }\"></ng-container>\r\n } @else {\r\n <mat-form-field\r\n [class.sd-md]=\"size === 'md'\"\r\n [class.sd-sm]=\"size === 'sm'\"\r\n [class.hide-inline-error]=\"hideInlineError\"\r\n [appearance]=\"appearance\"\r\n [floatLabel]=\"floatLabel\">\r\n @if (appearance && label) {\r\n <mat-label>{{ label }}</mat-label>\r\n }\r\n <mat-chip-grid [formControl]=\"formControl\" #chipList>\r\n @for (item of formControl.value; track item) {\r\n @if (item) {\r\n <mat-chip-row\r\n [removable]=\"removable\"\r\n (removed)=\"onRemove(item)\"\r\n [disabled]=\"inputControl.disabled\"\r\n (click)=\"onClickChip($event, item)\"\r\n [value]=\"item\">\r\n <span>{{ item | date: 'dd/MM/yyyy' }}</span>\r\n @if (!inputControl.disabled && item | sdRemovableChip: removable) {\r\n <mat-icon matChipRemove>cancel</mat-icon>\r\n }\r\n </mat-chip-row>\r\n }\r\n }\r\n\r\n <input\r\n [formControl]=\"inputControl\"\r\n [placeholder]=\"placeholder || label\"\r\n [matChipInputFor]=\"chipList\"\r\n autocomplete=\"off\"\r\n [errorStateMatcher]=\"matcher\"\r\n [matMenuTriggerFor]=\"calendarMenu\"\r\n [required]=\"required\"\r\n matInput\r\n [attr.data-autoId]=\"autoId\"\r\n readonly\r\n #input />\r\n </mat-chip-grid>\r\n\r\n <mat-menu #calendarMenu=\"matMenu\" overlapTrigger=\"false\" (closed)=\"onCloseCalendar()\">\r\n <div style=\"width: 280px\" (click)=\"$event.stopPropagation()\" aria-hidden=\"true\">\r\n <mat-calendar (selectedChange)=\"onSelectDate($event)\" [dateClass]=\"dateClass\"> </mat-calendar>\r\n </div>\r\n </mat-menu>\r\n <!-- <mat-datepicker [dateClass]=\"dateClass\" (closed)=\"onPickerClosed()\" #picker></mat-datepicker> -->\r\n @if (hideInlineError && errMsg && formControl.touched) {\r\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"errMsg\" matTooltipPosition=\"above\"> error </mat-icon>\r\n }\r\n\r\n @if (!hideInlineError && errMsg && formControl.touched) {\r\n <mat-error>{{ errMsg }}</mat-error>\r\n }\r\n </mat-form-field>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{padding-top:5px;display:block}:host ::ng-deep .mat-mdc-form-field.no-padding-wrapper .mat-mdc-text-field-wrapper{padding-bottom:0}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip{padding:7px 10px;min-height:26px}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{padding:7px 7px 7px 10px}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}:host{display:block}mat-form-field{width:100%}mat-chip-listbox{display:flex;flex-wrap:wrap;gap:4px}::ng-deep .sd-chip-calendar-selected-date .mat-calendar-body-cell-content{background-color:var(--sd-primary-light)!important;color:var(--sd-primary)!important;border-radius:50%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i6.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i6.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i6.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i6.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i7.MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i8.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i8.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "pipe", type: SdRemovableChipPipe, name: "sdRemovableChip" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
279
+ onClickChip = (event, item) => this.#clickChip(event, item);
280
+ onRemove = (item) => this.#remove(item);
281
+ onSelect = (event) => this.#select(event);
282
+ onClick = () => this.#onClick();
283
+ onClear = (evt) => this.#clear(evt);
284
+ onSelectDate = (date) => this.#selectDate(date);
285
+ onCloseCalendar = () => this.#closeCalendar();
286
+ dateClass = (cellDate) => this.#dateClass(cellDate);
287
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdChipCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
288
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: SdChipCalendar, isStandalone: true, selector: "sd-chip-calendar", inputs: { autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, hideInlineError: { classPropertyName: "hideInlineError", publicName: "hideInlineError", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, hyperlink: { classPropertyName: "hyperlink", publicName: "hyperlink", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modelChange: "modelChange", sdChange: "sdChange" }, queries: [{ propertyName: "sdViewDef", first: true, predicate: SdViewDefDirective, descendants: true, isSignal: true }, { propertyName: "sdLabelDef", first: true, predicate: SdLabelDefDirective, descendants: true, isSignal: true }, { propertyName: "sdLabelTemplate", first: true, predicate: ["sdLabel"], descendants: true, isSignal: true }, { propertyName: "sdValueTemplate", first: true, predicate: ["sdValue"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }, { propertyName: "calendar", first: true, predicate: MatCalendar, descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "@let _lbl = label();\r\n@let _app = appearance();\r\n@let _req = required();\r\n@let _viewed = viewed();\r\n@let _hideErr = hideInlineError();\r\n@let _viewDef = sdViewDef();\r\n@let _labelTemplate = (sdLabelTemplate() ?? sdLabelDef()?.templateRef) || undefined;\r\n@let _valueTemplate = (sdValueTemplate() ?? _viewDef?.templateRef) || undefined;\r\n@let _errMsg = errorTooltipMessage;\r\n\r\n@if (_viewed) {\r\n <sd-view\r\n [label]=\"_lbl\"\r\n [labelTemplate]=\"_labelTemplate\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"_valueTemplate\">\r\n </sd-view>\r\n} @else {\r\n @if (!_app && _labelTemplate) {\r\n <ng-container *ngTemplateOutlet=\"_labelTemplate\"></ng-container>\r\n }\r\n @if (!_app && _lbl && !_labelTemplate) {\r\n <sd-label [label]=\"_lbl\" [required]=\"_req\"></sd-label>\r\n }\r\n\r\n <div\r\n class=\"d-flex align-items-center\"\r\n [class.sd-view]=\"!!_viewDef?.templateRef\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\"\r\n aria-hidden=\"true\">\r\n @if (_viewDef?.templateRef && !isFocused) {\r\n <ng-container *ngTemplateOutlet=\"_viewDef!.templateRef; context: { value: formControl.value }\"></ng-container>\r\n } @else {\r\n <mat-form-field\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideErr\"\r\n [appearance]=\"_app\"\r\n [floatLabel]=\"floatLabel()\">\r\n @if (_app && _lbl) {\r\n <mat-label>{{ _lbl }}</mat-label>\r\n }\r\n <mat-chip-grid [formControl]=\"formControl\" #chipList [class.sd-md]=\"size() === 'md'\" [class.sd-sm]=\"size() === 'sm'\">\r\n @for (item of formControl.value; track item) {\r\n @if (item) {\r\n <mat-chip-row\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [removable]=\"removable()\"\r\n (removed)=\"onRemove(item)\"\r\n [disabled]=\"inputControl.disabled\"\r\n (click)=\"onClickChip($event, item)\"\r\n [value]=\"item\">\r\n <span>{{ item | date: 'dd/MM/yyyy' }}</span>\r\n @if (!inputControl.disabled && item | sdRemovableChip: removable()) {\r\n <mat-icon matChipRemove>cancel</mat-icon>\r\n }\r\n </mat-chip-row>\r\n }\r\n }\r\n\r\n <input\r\n class=\"sd-chip-input\"\r\n [formControl]=\"inputControl\"\r\n [placeholder]=\"placeholder() || _lbl\"\r\n [matChipInputFor]=\"chipList\"\r\n autocomplete=\"off\"\r\n [errorStateMatcher]=\"matcher\"\r\n [matMenuTriggerFor]=\"calendarMenu\"\r\n [required]=\"_req\"\r\n matInput\r\n [attr.data-autoId]=\"autoId()\"\r\n readonly\r\n #input />\r\n </mat-chip-grid>\r\n\r\n <mat-menu #calendarMenu=\"matMenu\" overlapTrigger=\"false\" (closed)=\"onCloseCalendar()\">\r\n <div style=\"width: 280px\" (click)=\"$event.stopPropagation()\" aria-hidden=\"true\">\r\n <mat-calendar (selectedChange)=\"onSelectDate($event)\" [dateClass]=\"dateClass\"> </mat-calendar>\r\n </div>\r\n </mat-menu>\r\n @if (_hideErr && _errMsg && formControl.touched) {\r\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errMsg\" matTooltipPosition=\"above\"> error </mat-icon>\r\n }\r\n\r\n @if (!_hideErr && _errMsg && formControl.touched) {\r\n <mat-error>{{ _errMsg }}</mat-error>\r\n }\r\n </mat-form-field>\r\n }\r\n </div>\r\n}\r\n", styles: ["@charset \"UTF-8\";.text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{padding-top:5px;display:block}:host ::ng-deep .mat-mdc-form-field.no-padding-wrapper .mat-mdc-text-field-wrapper{padding-bottom:0}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip{padding:7px 10px;min-height:26px}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{padding:7px 7px 7px 10px}:host ::ng-deep .mat-mdc-chip-row.sd-sm{--mdc-chip-label-text-size: 12px;--mdc-chip-container-height: 20px}:host ::ng-deep .mat-mdc-chip-set.sd-md{margin-top:10px}:host ::ng-deep .mat-mdc-chip-set.sd-sm{margin-top:2px}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}:host{display:block}mat-form-field{width:100%}mat-chip-listbox{display:flex;flex-wrap:wrap;gap:4px}::ng-deep .sd-chip-calendar-selected-date .mat-calendar-body-cell-content{background-color:var(--sd-primary-light)!important;color:var(--sd-primary)!important;border-radius:50%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i6.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i6.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i6.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i6.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i7.MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }, { kind: "ngmodule", type: MatNativeDateModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i8.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i8.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText"] }, { kind: "component", type: SdView, selector: "sd-view", inputs: ["label", "value", "display", "hyperlink", "labelTemplate", "valueTemplate"] }, { kind: "pipe", type: SdRemovableChipPipe, name: "sdRemovableChip" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
284
289
  }
285
290
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdChipCalendar, decorators: [{
286
291
  type: Component,
@@ -296,65 +301,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
296
301
  MatProgressSpinnerModule,
297
302
  MatChipsModule,
298
303
  MatDatepickerModule,
304
+ MatNativeDateModule,
299
305
  MatMenuModule,
306
+ SdLabel,
307
+ SdView,
300
308
  SdRemovableChipPipe,
301
- ], template: "@let labelTemplate = sdLabelDef?.templateRef;\r\n@let viewTemplate = sdView?.templateRef;\r\n@let errMsg = errorTooltipMessage;\r\n\r\n@if (!appearance && labelTemplate) {\r\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\r\n}\r\n@if (!appearance && label && !labelTemplate) {\r\n <div class=\"d-block mb-0 T14M\">{{ label }} <span class=\"text-danger mb-2\" *ngIf=\"required\">*</span></div>\r\n}\r\n<div\r\n class=\"d-flex align-items-center\"\r\n [class.sd-view]=\"viewTemplate\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\"\r\n aria-hidden=\"true\">\r\n @if (viewTemplate && !isFocused) {\r\n <ng-container *ngTemplateOutlet=\"viewTemplate; context: { value: formControl.value }\"></ng-container>\r\n } @else {\r\n <mat-form-field\r\n [class.sd-md]=\"size === 'md'\"\r\n [class.sd-sm]=\"size === 'sm'\"\r\n [class.hide-inline-error]=\"hideInlineError\"\r\n [appearance]=\"appearance\"\r\n [floatLabel]=\"floatLabel\">\r\n @if (appearance && label) {\r\n <mat-label>{{ label }}</mat-label>\r\n }\r\n <mat-chip-grid [formControl]=\"formControl\" #chipList>\r\n @for (item of formControl.value; track item) {\r\n @if (item) {\r\n <mat-chip-row\r\n [removable]=\"removable\"\r\n (removed)=\"onRemove(item)\"\r\n [disabled]=\"inputControl.disabled\"\r\n (click)=\"onClickChip($event, item)\"\r\n [value]=\"item\">\r\n <span>{{ item | date: 'dd/MM/yyyy' }}</span>\r\n @if (!inputControl.disabled && item | sdRemovableChip: removable) {\r\n <mat-icon matChipRemove>cancel</mat-icon>\r\n }\r\n </mat-chip-row>\r\n }\r\n }\r\n\r\n <input\r\n [formControl]=\"inputControl\"\r\n [placeholder]=\"placeholder || label\"\r\n [matChipInputFor]=\"chipList\"\r\n autocomplete=\"off\"\r\n [errorStateMatcher]=\"matcher\"\r\n [matMenuTriggerFor]=\"calendarMenu\"\r\n [required]=\"required\"\r\n matInput\r\n [attr.data-autoId]=\"autoId\"\r\n readonly\r\n #input />\r\n </mat-chip-grid>\r\n\r\n <mat-menu #calendarMenu=\"matMenu\" overlapTrigger=\"false\" (closed)=\"onCloseCalendar()\">\r\n <div style=\"width: 280px\" (click)=\"$event.stopPropagation()\" aria-hidden=\"true\">\r\n <mat-calendar (selectedChange)=\"onSelectDate($event)\" [dateClass]=\"dateClass\"> </mat-calendar>\r\n </div>\r\n </mat-menu>\r\n <!-- <mat-datepicker [dateClass]=\"dateClass\" (closed)=\"onPickerClosed()\" #picker></mat-datepicker> -->\r\n @if (hideInlineError && errMsg && formControl.touched) {\r\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"errMsg\" matTooltipPosition=\"above\"> error </mat-icon>\r\n }\r\n\r\n @if (!hideInlineError && errMsg && formControl.touched) {\r\n <mat-error>{{ errMsg }}</mat-error>\r\n }\r\n </mat-form-field>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{padding-top:5px;display:block}:host ::ng-deep .mat-mdc-form-field.no-padding-wrapper .mat-mdc-text-field-wrapper{padding-bottom:0}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip{padding:7px 10px;min-height:26px}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{padding:7px 7px 7px 10px}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}:host{display:block}mat-form-field{width:100%}mat-chip-listbox{display:flex;flex-wrap:wrap;gap:4px}::ng-deep .sd-chip-calendar-selected-date .mat-calendar-body-cell-content{background-color:var(--sd-primary-light)!important;color:var(--sd-primary)!important;border-radius:50%}\n"] }]
302
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { menuTrigger: [{
309
+ ], template: "@let _lbl = label();\r\n@let _app = appearance();\r\n@let _req = required();\r\n@let _viewed = viewed();\r\n@let _hideErr = hideInlineError();\r\n@let _viewDef = sdViewDef();\r\n@let _labelTemplate = (sdLabelTemplate() ?? sdLabelDef()?.templateRef) || undefined;\r\n@let _valueTemplate = (sdValueTemplate() ?? _viewDef?.templateRef) || undefined;\r\n@let _errMsg = errorTooltipMessage;\r\n\r\n@if (_viewed) {\r\n <sd-view\r\n [label]=\"_lbl\"\r\n [labelTemplate]=\"_labelTemplate\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"_valueTemplate\">\r\n </sd-view>\r\n} @else {\r\n @if (!_app && _labelTemplate) {\r\n <ng-container *ngTemplateOutlet=\"_labelTemplate\"></ng-container>\r\n }\r\n @if (!_app && _lbl && !_labelTemplate) {\r\n <sd-label [label]=\"_lbl\" [required]=\"_req\"></sd-label>\r\n }\r\n\r\n <div\r\n class=\"d-flex align-items-center\"\r\n [class.sd-view]=\"!!_viewDef?.templateRef\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\"\r\n aria-hidden=\"true\">\r\n @if (_viewDef?.templateRef && !isFocused) {\r\n <ng-container *ngTemplateOutlet=\"_viewDef!.templateRef; context: { value: formControl.value }\"></ng-container>\r\n } @else {\r\n <mat-form-field\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideErr\"\r\n [appearance]=\"_app\"\r\n [floatLabel]=\"floatLabel()\">\r\n @if (_app && _lbl) {\r\n <mat-label>{{ _lbl }}</mat-label>\r\n }\r\n <mat-chip-grid [formControl]=\"formControl\" #chipList [class.sd-md]=\"size() === 'md'\" [class.sd-sm]=\"size() === 'sm'\">\r\n @for (item of formControl.value; track item) {\r\n @if (item) {\r\n <mat-chip-row\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [removable]=\"removable()\"\r\n (removed)=\"onRemove(item)\"\r\n [disabled]=\"inputControl.disabled\"\r\n (click)=\"onClickChip($event, item)\"\r\n [value]=\"item\">\r\n <span>{{ item | date: 'dd/MM/yyyy' }}</span>\r\n @if (!inputControl.disabled && item | sdRemovableChip: removable()) {\r\n <mat-icon matChipRemove>cancel</mat-icon>\r\n }\r\n </mat-chip-row>\r\n }\r\n }\r\n\r\n <input\r\n class=\"sd-chip-input\"\r\n [formControl]=\"inputControl\"\r\n [placeholder]=\"placeholder() || _lbl\"\r\n [matChipInputFor]=\"chipList\"\r\n autocomplete=\"off\"\r\n [errorStateMatcher]=\"matcher\"\r\n [matMenuTriggerFor]=\"calendarMenu\"\r\n [required]=\"_req\"\r\n matInput\r\n [attr.data-autoId]=\"autoId()\"\r\n readonly\r\n #input />\r\n </mat-chip-grid>\r\n\r\n <mat-menu #calendarMenu=\"matMenu\" overlapTrigger=\"false\" (closed)=\"onCloseCalendar()\">\r\n <div style=\"width: 280px\" (click)=\"$event.stopPropagation()\" aria-hidden=\"true\">\r\n <mat-calendar (selectedChange)=\"onSelectDate($event)\" [dateClass]=\"dateClass\"> </mat-calendar>\r\n </div>\r\n </mat-menu>\r\n @if (_hideErr && _errMsg && formControl.touched) {\r\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errMsg\" matTooltipPosition=\"above\"> error </mat-icon>\r\n }\r\n\r\n @if (!_hideErr && _errMsg && formControl.touched) {\r\n <mat-error>{{ _errMsg }}</mat-error>\r\n }\r\n </mat-form-field>\r\n }\r\n </div>\r\n}\r\n", styles: ["@charset \"UTF-8\";.text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{padding-top:5px;display:block}:host ::ng-deep .mat-mdc-form-field.no-padding-wrapper .mat-mdc-text-field-wrapper{padding-bottom:0}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip{padding:7px 10px;min-height:26px}:host ::ng-deep mat-form-field.c-md .mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{padding:7px 7px 7px 10px}:host ::ng-deep .mat-mdc-chip-row.sd-sm{--mdc-chip-label-text-size: 12px;--mdc-chip-container-height: 20px}:host ::ng-deep .mat-mdc-chip-set.sd-md{margin-top:10px}:host ::ng-deep .mat-mdc-chip-set.sd-sm{margin-top:2px}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}:host{display:block}mat-form-field{width:100%}mat-chip-listbox{display:flex;flex-wrap:wrap;gap:4px}::ng-deep .sd-chip-calendar-selected-date .mat-calendar-body-cell-content{background-color:var(--sd-primary-light)!important;color:var(--sd-primary)!important;border-radius:50%}\n"] }]
310
+ }], ctorParameters: () => [], propDecorators: { menuTrigger: [{
303
311
  type: ViewChild,
304
312
  args: [MatMenuTrigger]
305
313
  }], calendar: [{
306
314
  type: ViewChild,
307
315
  args: [MatCalendar]
308
- }], _autoId: [{
309
- type: Input,
310
- args: ['autoId']
311
- }], _name: [{
312
- type: Input,
313
- args: ['name']
314
- }], appearance: [{
315
- type: Input
316
- }], floatLabel: [{
317
- type: Input
318
- }], size: [{
319
- type: Input
320
- }], form: [{
321
- type: Input
322
- }], label: [{
323
- type: Input
324
- }], placeholder: [{
325
- type: Input
326
- }], _removable: [{
327
- type: Input,
328
- args: ['removable']
329
- }], _hideInlineError: [{
330
- type: Input,
331
- args: ['hideInlineError']
332
- }], model: [{
333
- type: Input
334
- }], _required: [{
335
- type: Input,
336
- args: ['required']
337
- }], pMin: [{
338
- type: Input,
339
- args: ['min']
340
- }], pMax: [{
341
- type: Input,
342
- args: ['max']
343
- }], modelChange: [{
344
- type: Output
345
- }], disabled: [{
346
- type: Input
347
- }], sdChange: [{
348
- type: Output
349
316
  }], input: [{
350
317
  type: ViewChild,
351
318
  args: ['input']
352
- }], sdView: [{
353
- type: ContentChild,
354
- args: [SdViewDefDirective]
355
- }], sdLabelDef: [{
356
- type: ContentChild,
357
- args: [SdLabelDefDirective]
358
319
  }] } });
359
320
 
360
321
  /**