@haiilo/catalyst-angular 10.10.0 → 10.11.0

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.
@@ -301,11 +301,11 @@ let CatDateInline = class CatDateInline {
301
301
  }
302
302
  };
303
303
  CatDateInline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDateInline, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
304
- CatDateInline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDateInline, selector: "cat-date-inline", inputs: { hint: "hint", max: "max", min: "min", noClear: "noClear", noToday: "noToday", range: "range", value: "value", weeks: "weeks" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
304
+ CatDateInline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDateInline, selector: "cat-date-inline", inputs: { hint: "hint", identifier: "identifier", label: "label", labelHidden: "labelHidden", max: "max", min: "min", noClear: "noClear", noToday: "noToday", range: "range", required: "required", requiredMarker: "requiredMarker", value: "value", weeks: "weeks" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
305
305
  CatDateInline = __decorate([
306
306
  ProxyCmp({
307
- inputs: ['hint', 'max', 'min', 'noClear', 'noToday', 'range', 'value', 'weeks'],
308
- methods: ['select', 'clear', 'resetView']
307
+ inputs: ['hint', 'identifier', 'label', 'labelHidden', 'max', 'min', 'noClear', 'noToday', 'range', 'required', 'requiredMarker', 'value', 'weeks'],
308
+ methods: ['select', 'clear', 'resetView', 'doFocus']
309
309
  })
310
310
  ], CatDateInline);
311
311
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDateInline, decorators: [{
@@ -315,7 +315,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
315
315
  changeDetection: ChangeDetectionStrategy.OnPush,
316
316
  template: '<ng-content></ng-content>',
317
317
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
318
- inputs: ['hint', 'max', 'min', 'noClear', 'noToday', 'range', 'value', 'weeks'],
318
+ inputs: ['hint', 'identifier', 'label', 'labelHidden', 'max', 'min', 'noClear', 'noToday', 'range', 'required', 'requiredMarker', 'value', 'weeks'],
319
319
  }]
320
320
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
321
321
  let CatDatepicker = class CatDatepicker {
@@ -998,7 +998,9 @@ class DateValueAccessor extends ValueAccessor {
998
998
  return super.handleChangeEvent(this.toDate(value));
999
999
  }
1000
1000
  else if (typeof value === 'string') {
1001
- return super.handleChangeEvent(JSON.parse(value).map(this.toDate));
1001
+ const data = JSON.parse(value).map(this.toDate);
1002
+ data[1]?.setHours(23, 59, 59, 999);
1003
+ return super.handleChangeEvent(data);
1002
1004
  }
1003
1005
  super.handleChangeEvent(null);
1004
1006
  }
@@ -1392,6 +1394,8 @@ const CatComponents = [
1392
1394
  CatButtonGroup,
1393
1395
  CatCard,
1394
1396
  CatCheckbox,
1397
+ CatDate,
1398
+ CatDateInline,
1395
1399
  CatDatepicker,
1396
1400
  CatDropdown,
1397
1401
  CatFormGroup,
@@ -1446,7 +1450,7 @@ class CatalystModule {
1446
1450
  }
1447
1451
  }
1448
1452
  CatalystModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatalystModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1449
- CatalystModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CatalystModule, declarations: [CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDatepicker, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, BooleanValueAccessor,
1453
+ CatalystModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CatalystModule, declarations: [CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDate, CatDateInline, CatDatepicker, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, BooleanValueAccessor,
1450
1454
  DateValueAccessor,
1451
1455
  RadioValueAccessor,
1452
1456
  SelectValueAccessor,
@@ -1456,7 +1460,7 @@ CatalystModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
1456
1460
  ValueAccessorDecorator,
1457
1461
  DatetimeComponent, CatDialogComponent,
1458
1462
  CatDialogHeaderComponent,
1459
- CatDialogActionsComponent], imports: [CommonModule, DialogModule], exports: [CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDatepicker, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, BooleanValueAccessor,
1463
+ CatDialogActionsComponent], imports: [CommonModule, DialogModule], exports: [CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDate, CatDateInline, CatDatepicker, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, BooleanValueAccessor,
1460
1464
  DateValueAccessor,
1461
1465
  RadioValueAccessor,
1462
1466
  SelectValueAccessor,