@nova-design-system/nova-angular 3.2.0 → 3.3.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.
@@ -212,14 +212,14 @@ let NvCalendar = class NvCalendar {
212
212
  this.z = z;
213
213
  c.detach();
214
214
  this.el = r.nativeElement;
215
- proxyOutputs(this, this.el, ['singleDateChange', 'rangeDateChange']);
215
+ proxyOutputs(this, this.el, ['singleDateChange', 'rangeDateChange', 'valueChanged']);
216
216
  }
217
217
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvCalendar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
218
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: NvCalendar, selector: "nv-calendar", inputs: { dateFormat: "dateFormat", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", max: "max", min: "min", numberOfCalendars: "numberOfCalendars", rangeValue: "rangeValue", selectionType: "selectionType", shortcuts: "shortcuts", shortcutsPlacement: "shortcutsPlacement", showActions: "showActions", showWeekNumbers: "showWeekNumbers", singleValue: "singleValue" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
218
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: NvCalendar, selector: "nv-calendar", inputs: { dateFormat: "dateFormat", disabledDates: "disabledDates", firstDayOfWeek: "firstDayOfWeek", locale: "locale", max: "max", min: "min", numberOfCalendars: "numberOfCalendars", rangeValue: "rangeValue", selectionType: "selectionType", shortcuts: "shortcuts", shortcutsPlacement: "shortcutsPlacement", showActions: "showActions", showWeekNumbers: "showWeekNumbers", singleValue: "singleValue", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
219
219
  };
220
220
  NvCalendar = __decorate([
221
221
  ProxyCmp({
222
- inputs: ['dateFormat', 'disabledDates', 'firstDayOfWeek', 'locale', 'max', 'min', 'numberOfCalendars', 'rangeValue', 'selectionType', 'shortcuts', 'shortcutsPlacement', 'showActions', 'showWeekNumbers', 'singleValue']
222
+ inputs: ['dateFormat', 'disabledDates', 'firstDayOfWeek', 'locale', 'max', 'min', 'numberOfCalendars', 'rangeValue', 'selectionType', 'shortcuts', 'shortcutsPlacement', 'showActions', 'showWeekNumbers', 'singleValue', 'value']
223
223
  })
224
224
  ], NvCalendar);
225
225
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvCalendar, decorators: [{
@@ -229,7 +229,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
229
229
  changeDetection: ChangeDetectionStrategy.OnPush,
230
230
  template: '<ng-content></ng-content>',
231
231
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
232
- inputs: ['dateFormat', 'disabledDates', 'firstDayOfWeek', 'locale', 'max', 'min', 'numberOfCalendars', 'rangeValue', 'selectionType', 'shortcuts', 'shortcutsPlacement', 'showActions', 'showWeekNumbers', 'singleValue'],
232
+ inputs: ['dateFormat', 'disabledDates', 'firstDayOfWeek', 'locale', 'max', 'min', 'numberOfCalendars', 'rangeValue', 'selectionType', 'shortcuts', 'shortcutsPlacement', 'showActions', 'showWeekNumbers', 'singleValue', 'value'],
233
233
  }]
234
234
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
235
235
  let NvCol = class NvCol {
@@ -410,7 +410,7 @@ let NvFielddate = class NvFielddate {
410
410
  this.z = z;
411
411
  c.detach();
412
412
  this.el = r.nativeElement;
413
- proxyOutputs(this, this.el, ['dateChange']);
413
+ proxyOutputs(this, this.el, ['valueChanged']);
414
414
  }
415
415
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvFielddate, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
416
416
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: NvFielddate, selector: "nv-fielddate", inputs: { autofocus: "autofocus", dateFormat: "dateFormat", description: "description", disabled: "disabled", disabledDates: "disabledDates", error: "error", errorDescription: "errorDescription", firstDayOfWeek: "firstDayOfWeek", fluid: "fluid", inputId: "inputId", label: "label", locale: "locale", max: "max", min: "min", name: "name", numberOfCalendars: "numberOfCalendars", placeholder: "placeholder", readonly: "readonly", required: "required", shortcuts: "shortcuts", shortcutsPlacement: "shortcutsPlacement", showActions: "showActions", showWeekNumbers: "showWeekNumbers", success: "success", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
@@ -435,7 +435,7 @@ let NvFielddaterange = class NvFielddaterange {
435
435
  this.z = z;
436
436
  c.detach();
437
437
  this.el = r.nativeElement;
438
- proxyOutputs(this, this.el, ['dateRangeChange']);
438
+ proxyOutputs(this, this.el, ['dateRangeChange', 'valueChanged']);
439
439
  }
440
440
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvFielddaterange, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
441
441
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: NvFielddaterange, selector: "nv-fielddaterange", inputs: { autofocus: "autofocus", dateFormat: "dateFormat", description: "description", disabled: "disabled", disabledDates: "disabledDates", endInputId: "endInputId", endName: "endName", endPlaceholder: "endPlaceholder", error: "error", errorDescription: "errorDescription", firstDayOfWeek: "firstDayOfWeek", fluid: "fluid", label: "label", locale: "locale", max: "max", min: "min", numberOfCalendars: "numberOfCalendars", readonly: "readonly", required: "required", shortcuts: "shortcuts", shortcutsPlacement: "shortcutsPlacement", showActions: "showActions", showWeekNumbers: "showWeekNumbers", startInputId: "startInputId", startName: "startName", startPlaceholder: "startPlaceholder", success: "success", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
@@ -1168,6 +1168,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
1168
1168
  type: HostListener,
1169
1169
  args: ['hiddenChanged', ['$event']]
1170
1170
  }] } });
1171
+ class NvCalendarValueAccessor extends ValueAccessor {
1172
+ constructor(el) {
1173
+ super(el);
1174
+ }
1175
+ handleValueChanged(event) {
1176
+ this.handleChangeEvent(event.target.value);
1177
+ }
1178
+ writeValue(value) {
1179
+ this.el.nativeElement.value = this.lastValue = value;
1180
+ }
1181
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvCalendarValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1182
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.9", type: NvCalendarValueAccessor, selector: "nv-calendar", host: { listeners: { "valueChanged": "handleValueChanged($event)" } }, providers: [
1183
+ {
1184
+ provide: NG_VALUE_ACCESSOR,
1185
+ useExisting: NvCalendarValueAccessor,
1186
+ multi: true,
1187
+ },
1188
+ ], usesInheritance: true, ngImport: i0 }); }
1189
+ }
1190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvCalendarValueAccessor, decorators: [{
1191
+ type: Directive,
1192
+ args: [{
1193
+ selector: 'nv-calendar',
1194
+ providers: [
1195
+ {
1196
+ provide: NG_VALUE_ACCESSOR,
1197
+ useExisting: NvCalendarValueAccessor,
1198
+ multi: true,
1199
+ },
1200
+ ],
1201
+ }]
1202
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { handleValueChanged: [{
1203
+ type: HostListener,
1204
+ args: ['valueChanged', ['$event']]
1205
+ }] } });
1171
1206
  class NvDialogValueAccessor extends ValueAccessor {
1172
1207
  constructor(el) {
1173
1208
  super(el);
@@ -1238,6 +1273,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
1238
1273
  type: HostListener,
1239
1274
  args: ['checkedChanged', ['$event']]
1240
1275
  }] } });
1276
+ class NvFielddateValueAccessor extends ValueAccessor {
1277
+ constructor(el) {
1278
+ super(el);
1279
+ }
1280
+ handleValueChanged(event) {
1281
+ this.handleChangeEvent(event.target.value);
1282
+ }
1283
+ writeValue(value) {
1284
+ this.el.nativeElement.value = this.lastValue = value;
1285
+ }
1286
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvFielddateValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1287
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.9", type: NvFielddateValueAccessor, selector: "nv-fielddate", host: { listeners: { "valueChanged": "handleValueChanged($event)" } }, providers: [
1288
+ {
1289
+ provide: NG_VALUE_ACCESSOR,
1290
+ useExisting: NvFielddateValueAccessor,
1291
+ multi: true,
1292
+ },
1293
+ ], usesInheritance: true, ngImport: i0 }); }
1294
+ }
1295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvFielddateValueAccessor, decorators: [{
1296
+ type: Directive,
1297
+ args: [{
1298
+ selector: 'nv-fielddate',
1299
+ providers: [
1300
+ {
1301
+ provide: NG_VALUE_ACCESSOR,
1302
+ useExisting: NvFielddateValueAccessor,
1303
+ multi: true,
1304
+ },
1305
+ ],
1306
+ }]
1307
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { handleValueChanged: [{
1308
+ type: HostListener,
1309
+ args: ['valueChanged', ['$event']]
1310
+ }] } });
1311
+ class NvFielddaterangeValueAccessor extends ValueAccessor {
1312
+ constructor(el) {
1313
+ super(el);
1314
+ }
1315
+ handleValueChanged(event) {
1316
+ this.handleChangeEvent(event.target.value);
1317
+ }
1318
+ writeValue(value) {
1319
+ this.el.nativeElement.value = this.lastValue = value;
1320
+ }
1321
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvFielddaterangeValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1322
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.9", type: NvFielddaterangeValueAccessor, selector: "nv-fielddaterange", host: { listeners: { "valueChanged": "handleValueChanged($event)" } }, providers: [
1323
+ {
1324
+ provide: NG_VALUE_ACCESSOR,
1325
+ useExisting: NvFielddaterangeValueAccessor,
1326
+ multi: true,
1327
+ },
1328
+ ], usesInheritance: true, ngImport: i0 }); }
1329
+ }
1330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NvFielddaterangeValueAccessor, decorators: [{
1331
+ type: Directive,
1332
+ args: [{
1333
+ selector: 'nv-fielddaterange',
1334
+ providers: [
1335
+ {
1336
+ provide: NG_VALUE_ACCESSOR,
1337
+ useExisting: NvFielddaterangeValueAccessor,
1338
+ multi: true,
1339
+ },
1340
+ ],
1341
+ }]
1342
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { handleValueChanged: [{
1343
+ type: HostListener,
1344
+ args: ['valueChanged', ['$event']]
1345
+ }] } });
1241
1346
  class NvFielddropdownValueAccessor extends ValueAccessor {
1242
1347
  constructor(el) {
1243
1348
  super(el);
@@ -1625,8 +1730,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
1625
1730
  }] } });
1626
1731
  const VALUE_ACCESSORS = [
1627
1732
  NvAlertValueAccessor,
1733
+ NvCalendarValueAccessor,
1628
1734
  NvDialogValueAccessor,
1629
1735
  NvFieldcheckboxValueAccessor,
1736
+ NvFielddateValueAccessor,
1737
+ NvFielddaterangeValueAccessor,
1630
1738
  NvFielddropdownValueAccessor,
1631
1739
  NvFieldmultiselectValueAccessor,
1632
1740
  NvFieldnumberValueAccessor,
@@ -1666,7 +1774,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
1666
1774
  }] });
1667
1775
  class NovaComponentsValueAccessorModule {
1668
1776
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NovaComponentsValueAccessorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1669
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.9", ngImport: i0, type: NovaComponentsValueAccessorModule, declarations: [NvAlertValueAccessor, NvDialogValueAccessor, NvFieldcheckboxValueAccessor, NvFielddropdownValueAccessor, NvFieldmultiselectValueAccessor, NvFieldnumberValueAccessor, NvFieldpasswordValueAccessor, NvFieldradioValueAccessor, NvFieldselectValueAccessor, NvFieldsliderValueAccessor, NvFieldtextValueAccessor, NvFieldtextareaValueAccessor, NvPopoverValueAccessor, NvToggleValueAccessor], exports: [NvAlertValueAccessor, NvDialogValueAccessor, NvFieldcheckboxValueAccessor, NvFielddropdownValueAccessor, NvFieldmultiselectValueAccessor, NvFieldnumberValueAccessor, NvFieldpasswordValueAccessor, NvFieldradioValueAccessor, NvFieldselectValueAccessor, NvFieldsliderValueAccessor, NvFieldtextValueAccessor, NvFieldtextareaValueAccessor, NvPopoverValueAccessor, NvToggleValueAccessor] }); }
1777
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.9", ngImport: i0, type: NovaComponentsValueAccessorModule, declarations: [NvAlertValueAccessor, NvCalendarValueAccessor, NvDialogValueAccessor, NvFieldcheckboxValueAccessor, NvFielddateValueAccessor, NvFielddaterangeValueAccessor, NvFielddropdownValueAccessor, NvFieldmultiselectValueAccessor, NvFieldnumberValueAccessor, NvFieldpasswordValueAccessor, NvFieldradioValueAccessor, NvFieldselectValueAccessor, NvFieldsliderValueAccessor, NvFieldtextValueAccessor, NvFieldtextareaValueAccessor, NvPopoverValueAccessor, NvToggleValueAccessor], exports: [NvAlertValueAccessor, NvCalendarValueAccessor, NvDialogValueAccessor, NvFieldcheckboxValueAccessor, NvFielddateValueAccessor, NvFielddaterangeValueAccessor, NvFielddropdownValueAccessor, NvFieldmultiselectValueAccessor, NvFieldnumberValueAccessor, NvFieldpasswordValueAccessor, NvFieldradioValueAccessor, NvFieldselectValueAccessor, NvFieldsliderValueAccessor, NvFieldtextValueAccessor, NvFieldtextareaValueAccessor, NvPopoverValueAccessor, NvToggleValueAccessor] }); }
1670
1778
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NovaComponentsValueAccessorModule }); }
1671
1779
  }
1672
1780
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: NovaComponentsValueAccessorModule, decorators: [{
@@ -1685,5 +1793,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
1685
1793
  * Generated bundle index. Do not edit.
1686
1794
  */
1687
1795
 
1688
- export { NovaComponentsModule, NovaComponentsValueAccessorModule, NvAlert, NvAlertValueAccessor, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvCalendar, NvCol, NvDatagrid, NvDatagridcolumn, NvDialog, NvDialogValueAccessor, NvDialogfooter, NvDialogheader, NvFieldcheckbox, NvFieldcheckboxValueAccessor, NvFielddate, NvFielddaterange, NvFielddropdown, NvFielddropdownValueAccessor, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldmultiselectValueAccessor, NvFieldnumber, NvFieldnumberValueAccessor, NvFieldpassword, NvFieldpasswordValueAccessor, NvFieldradio, NvFieldradioValueAccessor, NvFieldselect, NvFieldselectValueAccessor, NvFieldslider, NvFieldsliderValueAccessor, NvFieldtext, NvFieldtextValueAccessor, NvFieldtextarea, NvFieldtextareaValueAccessor, NvFieldtime, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvPopover, NvPopoverValueAccessor, NvRow, NvStack, NvTable, NvTablecolumn, NvToggle, NvToggleValueAccessor, NvTooltip, VALUE_ACCESSORS, provideNovaComponents };
1796
+ export { NovaComponentsModule, NovaComponentsValueAccessorModule, NvAlert, NvAlertValueAccessor, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvCalendar, NvCalendarValueAccessor, NvCol, NvDatagrid, NvDatagridcolumn, NvDialog, NvDialogValueAccessor, NvDialogfooter, NvDialogheader, NvFieldcheckbox, NvFieldcheckboxValueAccessor, NvFielddate, NvFielddateValueAccessor, NvFielddaterange, NvFielddaterangeValueAccessor, NvFielddropdown, NvFielddropdownValueAccessor, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldmultiselectValueAccessor, NvFieldnumber, NvFieldnumberValueAccessor, NvFieldpassword, NvFieldpasswordValueAccessor, NvFieldradio, NvFieldradioValueAccessor, NvFieldselect, NvFieldselectValueAccessor, NvFieldslider, NvFieldsliderValueAccessor, NvFieldtext, NvFieldtextValueAccessor, NvFieldtextarea, NvFieldtextareaValueAccessor, NvFieldtime, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvPopover, NvPopoverValueAccessor, NvRow, NvStack, NvTable, NvTablecolumn, NvToggle, NvToggleValueAccessor, NvTooltip, VALUE_ACCESSORS, provideNovaComponents };
1689
1797
  //# sourceMappingURL=nova-components.mjs.map