ngx-smz-ui 4.3.8 → 4.4.2

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.
@@ -716,7 +716,7 @@ const CONTROL_FUNCTIONS = {
716
716
  [SmzControlType.LIST]: {
717
717
  initialize: (input, config) => {
718
718
  // input.defaultValue = cloneDeep(input.options);
719
- input.options = cloneDeep(input.options);
719
+ input.options = cloneDeep(input.defaultValue);
720
720
  if (input.editMode == null)
721
721
  input.editMode = 'dialog';
722
722
  },
@@ -10411,12 +10411,9 @@ class SmzFormGroupBuilder {
10411
10411
  }
10412
10412
  return new SmzFormFileBuilder(this, input);
10413
10413
  }
10414
- list(property, label, options, defaultValue) {
10414
+ list(property, label, defaultValue) {
10415
10415
  let input = this.group.children.find(x => x.propertyName == property);
10416
10416
  if (input == null) {
10417
- if (label == null || options == null) {
10418
- throw Error('Label and options are required for list.');
10419
- }
10420
10417
  input = {
10421
10418
  propertyName: property,
10422
10419
  type: SmzControlType.LIST,
@@ -10424,7 +10421,6 @@ class SmzFormGroupBuilder {
10424
10421
  defaultValue,
10425
10422
  height: '200px',
10426
10423
  showFilter: false,
10427
- options,
10428
10424
  askBeforeRemoveItem: false,
10429
10425
  showAddButton: false,
10430
10426
  allowBatchCreation: false,
@@ -10439,8 +10435,8 @@ class SmzFormGroupBuilder {
10439
10435
  this.group.children.push(input);
10440
10436
  }
10441
10437
  else {
10442
- if (label != null || options != null || defaultValue != null) {
10443
- throw Error('Label, options and defaultValue come from uiDefinitions and cannot be changed.');
10438
+ if (label != null || defaultValue != null) {
10439
+ throw Error('Label, defaultValue come from uiDefinitions and cannot be changed.');
10444
10440
  }
10445
10441
  }
10446
10442
  return new SmzFormListBuilder(this, input);
@@ -17261,13 +17257,13 @@ const ContentConvertions = [
17261
17257
  isOrderable: true,
17262
17258
  isGlobalFilterable: true,
17263
17259
  filterType: SmzFilterType.DATE,
17264
- content: () => ({ type: SmzContentType.TEXT, data: null }),
17260
+ content: () => ({ type: SmzContentType.CALENDAR, data: { format: 'shortDate' } }),
17265
17261
  editable: (input) => ({
17266
17262
  property: input.propertyName,
17267
17263
  type: SmzEditableType.CALENDAR,
17268
17264
  data: null,
17269
17265
  validatorsPreset: input.validatorsPreset,
17270
- defaultCreationValue: new Date()
17266
+ defaultCreationValue: new Date(),
17271
17267
  }),
17272
17268
  },
17273
17269
  {