@haiilo/catalyst-angular 10.3.1 → 10.5.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.
@@ -278,7 +278,7 @@ CatDate.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2
278
278
  CatDate = __decorate([
279
279
  ProxyCmp({
280
280
  inputs: ['autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'name', 'nativeAttributes', 'placeholder', 'placement', 'readonly', 'required', 'requiredMarker', 'textPrefix', 'textSuffix', 'value'],
281
- methods: ['select', 'doFocus', 'doBlur', 'clear']
281
+ methods: ['doFocus', 'doBlur', 'clear']
282
282
  })
283
283
  ], CatDate);
284
284
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CatDate, decorators: [{
@@ -291,6 +291,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
291
291
  inputs: ['autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'name', 'nativeAttributes', 'placeholder', 'placement', 'readonly', 'required', 'requiredMarker', 'textPrefix', 'textSuffix', 'value'],
292
292
  }]
293
293
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
294
+ let CatDateInline = class CatDateInline {
295
+ constructor(c, r, z) {
296
+ this.z = z;
297
+ c.detach();
298
+ this.el = r.nativeElement;
299
+ proxyOutputs(this, this.el, ['catChange']);
300
+ }
301
+ };
302
+ CatDateInline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CatDateInline, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
303
+ CatDateInline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: CatDateInline, selector: "cat-date-inline", inputs: { max: "max", min: "min", noClear: "noClear", noHint: "noHint", noToday: "noToday", noWeeks: "noWeeks", range: "range", size: "size", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
304
+ CatDateInline = __decorate([
305
+ ProxyCmp({
306
+ inputs: ['max', 'min', 'noClear', 'noHint', 'noToday', 'noWeeks', 'range', 'size', 'value'],
307
+ methods: ['select', 'clear', 'resetView']
308
+ })
309
+ ], CatDateInline);
310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CatDateInline, decorators: [{
311
+ type: Component,
312
+ args: [{
313
+ selector: 'cat-date-inline',
314
+ changeDetection: ChangeDetectionStrategy.OnPush,
315
+ template: '<ng-content></ng-content>',
316
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
317
+ inputs: ['max', 'min', 'noClear', 'noHint', 'noToday', 'noWeeks', 'range', 'size', 'value'],
318
+ }]
319
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
294
320
  let CatDatepicker = class CatDatepicker {
295
321
  constructor(c, r, z) {
296
322
  this.z = z;
@@ -1015,7 +1041,7 @@ class TextValueAccessor extends ValueAccessor {
1015
1041
  }
1016
1042
  }
1017
1043
  TextValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TextValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1018
- TextValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TextValueAccessor, selector: "cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline, cat-date, cat-time", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
1044
+ TextValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TextValueAccessor, selector: "cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline, cat-date, cat-date-inline, cat-time", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
1019
1045
  {
1020
1046
  provide: NG_VALUE_ACCESSOR,
1021
1047
  useExisting: TextValueAccessor,
@@ -1026,7 +1052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
1026
1052
  type: Directive,
1027
1053
  args: [{
1028
1054
  /* tslint:disable-next-line:directive-selector */
1029
- selector: 'cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline, cat-date, cat-time',
1055
+ selector: 'cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline, cat-date, cat-date-inline, cat-time',
1030
1056
  host: {
1031
1057
  '(catChange)': 'handleChangeEvent($event.target.value)'
1032
1058
  },
@@ -1203,6 +1229,16 @@ class CatDialogService {
1203
1229
  * @returns The return value of the dialog.
1204
1230
  */
1205
1231
  open(component, config) {
1232
+ return this.openWithRef(component, config).closed;
1233
+ }
1234
+ /**
1235
+ * Opens a modal dialog containing the given component and returns a reference to the dialog.
1236
+ *
1237
+ * @param component - The component to render as dialog content.
1238
+ * @param config - The dialog configuration.
1239
+ * @returns A reference to the just opened dialog.
1240
+ */
1241
+ openWithRef(component, config) {
1206
1242
  const panelClass = config?.panelClass ?? [];
1207
1243
  return this.dialog.open(component, {
1208
1244
  backdropClass: 'cat-backdrop',
@@ -1213,7 +1249,7 @@ class CatDialogService {
1213
1249
  maxHeight: 'calc(100vh - 64px)',
1214
1250
  maxWidth: 'calc(100vw - 64px)',
1215
1251
  ...config
1216
- }).closed;
1252
+ });
1217
1253
  }
1218
1254
  /**
1219
1255
  * Closes all open dialogs.
@@ -1235,5 +1271,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
1235
1271
  * Generated bundle index. Do not edit.
1236
1272
  */
1237
1273
 
1238
- export { BooleanValueAccessor, CAT_I18N_REGISTRY_TOKEN, CAT_ICON_REGISTRY_TOKEN, CAT_LOG_TOKEN, CAT_NOTIFICATION_SERVICE_TOKEN, CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDate, CatDatepicker, CatDatepickerInline, CatDialogActionsComponent, CatDialogComponent, CatDialogHeaderComponent, CatDialogService, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSelectDemo, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatTime, CatToggle, CatTooltip, CatalystModule, RadioValueAccessor, SelectValueAccessor, SelectValueAccessorDecorator, TextValueAccessor, ValueAccessor, ValueAccessorDecorator };
1274
+ export { BooleanValueAccessor, CAT_I18N_REGISTRY_TOKEN, CAT_ICON_REGISTRY_TOKEN, CAT_LOG_TOKEN, CAT_NOTIFICATION_SERVICE_TOKEN, CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDate, CatDateInline, CatDatepicker, CatDatepickerInline, CatDialogActionsComponent, CatDialogComponent, CatDialogHeaderComponent, CatDialogService, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSelectDemo, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatTime, CatToggle, CatTooltip, CatalystModule, RadioValueAccessor, SelectValueAccessor, SelectValueAccessorDecorator, TextValueAccessor, ValueAccessor, ValueAccessorDecorator };
1239
1275
  //# sourceMappingURL=haiilo-catalyst-angular.mjs.map