@colijnit/corecomponents_v12 257.1.16 → 257.1.18

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 (24) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +94 -32
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12-257.1.17.tgz +0 -0
  4. package/colijnit-corecomponents_v12.metadata.json +1 -1
  5. package/esm2015/lib/components/base/base-input.component.js +8 -1
  6. package/esm2015/lib/components/button/button.component.js +1 -1
  7. package/esm2015/lib/components/filter-item/filter-item.component.js +2 -2
  8. package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +20 -2
  9. package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +65 -30
  10. package/esm2015/lib/components/list-of-values/list-of-values.component.js +1 -1
  11. package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +2 -1
  12. package/esm2015/lib/interfaces/screen-config-adapter.component.interface.js +1 -1
  13. package/esm2015/lib/service/base-module-screen-config.service.js +2 -2
  14. package/fesm2015/colijnit-corecomponents_v12.js +93 -32
  15. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  16. package/lib/components/base/base-input.component.d.ts +4 -0
  17. package/lib/components/button/button.component.d.ts +2 -0
  18. package/lib/components/calendar/style/_layout.scss +14 -14
  19. package/lib/components/calendar/style/_material-definition.scss +3 -3
  20. package/lib/components/filter-item/filter-item.component.d.ts +2 -0
  21. package/lib/components/input-date-picker/input-date-picker.component.d.ts +2 -0
  22. package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +5 -0
  23. package/lib/interfaces/screen-config-adapter.component.interface.d.ts +2 -0
  24. package/package.json +1 -1
@@ -2358,6 +2358,16 @@
2358
2358
  enumerable: false,
2359
2359
  configurable: true
2360
2360
  });
2361
+ Object.defineProperty(BaseInputComponent.prototype, "defaultValue", {
2362
+ get: function () {
2363
+ return this._defaultValue;
2364
+ },
2365
+ set: function (defaultValue) {
2366
+ this._defaultValue = defaultValue;
2367
+ },
2368
+ enumerable: false,
2369
+ configurable: true
2370
+ });
2361
2371
  Object.defineProperty(BaseInputComponent.prototype, "readonly", {
2362
2372
  get: function () {
2363
2373
  return this.forceReadonly || this._readonly;
@@ -3145,6 +3155,7 @@
3145
3155
  businessObjectId: [{ type: i0.Input }],
3146
3156
  disabled: [{ type: i0.Input }],
3147
3157
  maxLength: [{ type: i0.Input }],
3158
+ defaultValue: [{ type: i0.Input }],
3148
3159
  forcedMaxLength: [{ type: i0.Input }],
3149
3160
  readonly: [{ type: i0.Input }],
3150
3161
  forceReadonly: [{ type: i0.Input }],
@@ -5968,6 +5979,23 @@
5968
5979
  this.overlayService.removeComponent(this._calendarComponentRef);
5969
5980
  }
5970
5981
  };
5982
+ InputDatePickerComponent.prototype.finalizeDate = function () {
5983
+ if (this.isValidDateString(this.modelAsString)) {
5984
+ var _a = __read(this.modelAsString.split('-').map(Number), 3), year = _a[0], month = _a[1], day = _a[2];
5985
+ var date = new Date(year, month - 1, day);
5986
+ this.setModel(date);
5987
+ }
5988
+ };
5989
+ InputDatePickerComponent.prototype.isValidDateString = function (value) {
5990
+ var regex = /^\d{4}-\d{2}-\d{2}$/;
5991
+ if (!regex.test(value))
5992
+ return false;
5993
+ var _a = __read(value.split('-').map(Number), 3), year = _a[0], month = _a[1], day = _a[2];
5994
+ var date = new Date(year, month - 1, day);
5995
+ return (date.getFullYear() === year &&
5996
+ date.getMonth() === month - 1 &&
5997
+ date.getDate() === day);
5998
+ };
5971
5999
  InputDatePickerComponent.prototype.handleDateChange = function (value) {
5972
6000
  if (value) {
5973
6001
  this.setModel(new Date(value));
@@ -5995,7 +6023,7 @@
5995
6023
  InputDatePickerComponent.decorators = [
5996
6024
  { type: i0.Component, args: [{
5997
6025
  selector: 'co-input-date',
5998
- template: "\n <co-input-text (clickOutside)=\"toggleCalendar(false)\" overlayParent #parentForOverlay=\"overlayParent\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [(model)]=\"modelAsString\"\n [rightIcon]=\"rightIcon\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [placeholder]=\"placeholder\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"toggleCalendar(true)\"\n (blur)=\"handleDateChange(modelAsString)\"\n (clearIconClick)=\"handleClearIconClicked()\"\n [emptyPlace]=\"true\"\n ></co-input-text>\n ",
6026
+ template: "\n <co-input-text (clickOutside)=\"toggleCalendar(false)\" overlayParent #parentForOverlay=\"overlayParent\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [(model)]=\"modelAsString\"\n [rightIcon]=\"rightIcon\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [placeholder]=\"placeholder\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"toggleCalendar(true)\"\n (modelChange)=\"modelAsString = $event\"\n (clearIconClick)=\"handleClearIconClicked()\"\n [emptyPlace]=\"true\"\n (keyup.enter)=\"finalizeDate()\"\n ></co-input-text>\n ",
5999
6027
  providers: [
6000
6028
  OverlayService, {
6001
6029
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDatePickerComponent; })
@@ -7385,7 +7413,10 @@
7385
7413
  var InputDateRangePickerComponent = /** @class */ (function (_super) {
7386
7414
  __extends(InputDateRangePickerComponent, _super);
7387
7415
  function InputDateRangePickerComponent() {
7388
- return _super !== null && _super.apply(this, arguments) || this;
7416
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
7417
+ _this.EARLIEST_DATE = new Date(1900, 0, 1); // 1900-01-01
7418
+ _this.LATEST_DATE = new Date(2100, 11, 31); // 2100-12-31
7419
+ return _this;
7389
7420
  }
7390
7421
  InputDateRangePickerComponent.prototype.showClass = function () {
7391
7422
  return true;
@@ -7428,50 +7459,80 @@
7428
7459
  }
7429
7460
  };
7430
7461
  InputDateRangePickerComponent.prototype.handleFirstDateChanged = function (value) {
7431
- if (value) {
7432
- if (!this.model) {
7433
- this.setModel([]);
7462
+ var _this = this;
7463
+ setTimeout(function () {
7464
+ var _a, _b;
7465
+ if (_this.isValidDateString(value)) {
7466
+ var _c = __read(value.split('-').map(Number), 3), year = _c[0], month = _c[1], day = _c[2];
7467
+ var date = new Date(year, month - 1, day);
7468
+ if (!_this.model)
7469
+ _this.setModel([]);
7470
+ _this.setModel([date, (_b = (_a = _this.model) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : null]);
7434
7471
  }
7435
- this.setModel([new Date(value), this.model[1] ? this.model[1] : null]);
7436
- }
7472
+ });
7437
7473
  };
7438
7474
  InputDateRangePickerComponent.prototype.handleSecondDateChanged = function (value) {
7439
- if (value) {
7440
- if (!this.model) {
7441
- this.setModel([]);
7475
+ var _this = this;
7476
+ setTimeout(function () {
7477
+ var _a, _b;
7478
+ if (_this.isValidDateString(value)) {
7479
+ var _c = __read(value.split('-').map(Number), 3), year = _c[0], month = _c[1], day = _c[2];
7480
+ var date = new Date(year, month - 1, day);
7481
+ if (!_this.model)
7482
+ _this.setModel([]);
7483
+ _this.setModel([(_b = (_a = _this.model) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null, date]);
7442
7484
  }
7443
- this.setModel([this.model[0] ? this.model[0] : null, new Date(value)]);
7485
+ });
7486
+ };
7487
+ InputDateRangePickerComponent.prototype.finalizeDates = function () {
7488
+ var startDate = this.EARLIEST_DATE;
7489
+ var endDate = this.LATEST_DATE;
7490
+ if (this.isValidDateString(this.firstDateAsString)) {
7491
+ var _c = __read(this.firstDateAsString.split('-').map(Number), 3), y = _c[0], m = _c[1], d = _c[2];
7492
+ startDate = new Date(y, m - 1, d);
7444
7493
  }
7494
+ if (this.isValidDateString(this.secondDateAsString)) {
7495
+ var _d = __read(this.secondDateAsString.split('-').map(Number), 3), y = _d[0], m = _d[1], d = _d[2];
7496
+ endDate = new Date(y, m - 1, d);
7497
+ }
7498
+ this.setModel([startDate, endDate]);
7499
+ };
7500
+ InputDateRangePickerComponent.prototype.isValidDateString = function (value) {
7501
+ var regex = /^\d{4}-\d{2}-\d{2}$/;
7502
+ if (!regex.test(value))
7503
+ return false;
7504
+ var _c = __read(value.split('-'), 3), yearStr = _c[0], monthStr = _c[1], dayStr = _c[2];
7505
+ var _d = __read([Number(yearStr), Number(monthStr), Number(dayStr)], 3), year = _d[0], month = _d[1], day = _d[2];
7506
+ // Prevent ancient years or too-far future
7507
+ if (year < 1900 || year > 2100)
7508
+ return false;
7509
+ var date = new Date(year, month - 1, day);
7510
+ return (date.getFullYear() === year &&
7511
+ date.getMonth() === month - 1 &&
7512
+ date.getDate() === day);
7445
7513
  };
7446
7514
  InputDateRangePickerComponent.prototype.modelSet = function () {
7447
7515
  this.setModelAsString();
7448
7516
  };
7449
7517
  InputDateRangePickerComponent.prototype.setModelAsString = function () {
7450
- if (this.model[0]) {
7451
- var year = this.model[0].toLocaleString("default", { year: "numeric" });
7452
- var month = this.model[0].toLocaleString("default", { month: "2-digit" });
7453
- var day = this.model[0].toLocaleString("default", { day: "2-digit" });
7454
- this.firstDateAsString = year + "-" + month + "-" + day;
7455
- }
7456
- else {
7457
- this.firstDateAsString = "";
7458
- }
7459
- if (this.model[1]) {
7460
- var year = this.model[1].toLocaleString("default", { year: "numeric" });
7461
- var month = this.model[1].toLocaleString("default", { month: "2-digit" });
7462
- var day = this.model[1].toLocaleString("default", { day: "2-digit" });
7463
- this.secondDateAsString = year + "-" + month + "-" + day;
7464
- }
7465
- else {
7466
- this.secondDateAsString = "";
7467
- }
7518
+ var _a, _b;
7519
+ var isStartDefault = ((_a = this.model[0]) === null || _a === void 0 ? void 0 : _a.getTime()) === this.EARLIEST_DATE.getTime();
7520
+ var isEndDefault = ((_b = this.model[1]) === null || _b === void 0 ? void 0 : _b.getTime()) === this.LATEST_DATE.getTime();
7521
+ this.firstDateAsString = (!this.model[0] || isStartDefault) ? '' : this.formatDate(this.model[0]);
7522
+ this.secondDateAsString = (!this.model[1] || isEndDefault) ? '' : this.formatDate(this.model[1]);
7523
+ };
7524
+ InputDateRangePickerComponent.prototype.formatDate = function (date) {
7525
+ var year = date.toLocaleString("default", { year: "numeric" });
7526
+ var month = date.toLocaleString("default", { month: "2-digit" });
7527
+ var day = date.toLocaleString("default", { day: "2-digit" });
7528
+ return year + "-" + month + "-" + day;
7468
7529
  };
7469
7530
  return InputDateRangePickerComponent;
7470
7531
  }(BaseInputDatePickerDirective));
7471
7532
  InputDateRangePickerComponent.decorators = [
7472
7533
  { type: i0.Component, args: [{
7473
7534
  selector: 'co-input-date-range',
7474
- template: "\n <div class=\"inputs-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-input-text #firstInput class=\"no-focus-line custom-height\"\n [(model)]=\"firstDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleFirstDateChanged(firstDateAsString)\"\n (clearIconClick)=\"clearDate(0)\"\n (click)=\"handleFirstInputClick($event)\"\n [emptyPlace]=\"true\"\n ></co-input-text>\n <co-input-text #secondInput class=\"no-focus-line custom-height\"\n [(model)]= \"secondDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [rightIcon]=\"rightIcon\"\n (rightIconClick)=\"toggleCalendar()\"\n (blur)=\"handleSecondDateChanged(secondDateAsString)\"\n (clearIconClick)=\"clearDate(1)\"\n (click)=\"handleSecondInputClick($event)\"\n [emptyPlace]=\"true\"\n ></co-input-text>\n </div>\n ",
7535
+ template: "\n <div class=\"inputs-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-input-text #firstInput class=\"no-focus-line custom-height\"\n [(model)]=\"firstDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [placeholder]=\"placeholder\"\n (modelChange)=\"handleFirstDateChanged(firstDateAsString)\"\n (clearIconClick)=\"clearDate(0)\"\n (click)=\"handleFirstInputClick($event)\"\n [emptyPlace]=\"true\"\n (keyup.enter)=\"finalizeDates()\"\n ></co-input-text>\n <co-input-text #secondInput class=\"no-focus-line custom-height\"\n [(model)]= \"secondDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [rightIcon]=\"rightIcon\"\n (rightIconClick)=\"toggleCalendar()\"\n (modelChange)=\"handleSecondDateChanged(secondDateAsString)\"\n (clearIconClick)=\"clearDate(1)\"\n (click)=\"handleSecondInputClick($event)\"\n [emptyPlace]=\"true\"\n (keyup.enter)=\"finalizeDates()\"\n ></co-input-text>\n </div>\n ",
7475
7536
  providers: [
7476
7537
  OverlayService,
7477
7538
  {
@@ -12944,7 +13005,7 @@
12944
13005
  FilterItemComponent.decorators = [
12945
13006
  { type: i0.Component, args: [{
12946
13007
  selector: "co-filter-item",
12947
- template: "\n <div class=\"co-filter-item-header\">\n <co-collapsible\n [headerTitle]=\"placeholder\"\n [expandButtonLast]=\"true\"\n [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"\n [expanded]=\"expanded\"\n [showButton]=\"showButton\"\n [buttonText]=\"filterButtonLabel\"\n (buttonClicked)=\"onButtonClicked()\"\n >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\"\n (keydown)=\"showButton=true\" (mousedown)=\"showButton=true\">\n <ng-content></ng-content>\n </div>\n <ng-template #collectionContent>\n <div class=\"co-filter-item-collection-content\" *ngIf=\"mode === modes.Filterlist || mode === modes.SingleSelectList\n || mode === modes.SelectListWithNumberOutput || mode === modes.SelectListWithStringCollectionOutput\">\n <co-input-text\n *ngIf=\"collection?.length > 10 || minSearchCharsToLoadCollection\"\n [placeholder]=\"searchPlaceholder\"\n [model]=\"filterText\"\n (modelChange)=\"onModelChange($event)\"\n [readonly]=\"readonly\"\n >\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <div class=\"no-results\" *ngIf=\"filteredCollection?.length === 0\">\n <span [textContent]=\"noResultsLabel\"></span>\n </div>\n <div class=\"co-filter-item-collection-results\">\n <ng-container\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || showAllResults\">\n <co-input-checkbox *ngIf=\"mode !== modes.SingleSelectList\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n [clickableLabel]=\"false\"\n (modelChange)=\"handleModelChange(option)\"\n [readonly]=\"readonly\"\n ></co-input-checkbox>\n <co-input-radio-button *ngIf=\"mode === modes.SingleSelectList\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n [readonly]=\"readonly\"\n ></co-input-radio-button>\n <div class=\"co-filter-item-amount\" *ngIf=\"option.count\"\n [textContent]=\"option.count.toString() | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n\n </ng-container>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"!showAllResults\">\n <div class=\"co-filter-show-more clickable\"\n *ngIf=\"moreToShow()\">\n <a (click)=\"increaseLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"></co-icon>\n <span [textContent]=\"showMoreLabel\"></span>\n </a>\n </div>\n <div class=\"co-filter-show-less clickable\"\n *ngIf=\"lessToShow()\">\n <a (click)=\"setToInitialLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointUp)\"></co-icon>\n <span [textContent]=\"showLessLabel\"></span>\n </a>\n </div>\n </div>\n </div>\n <div class=\"co-filter-item-slider-content\" *ngIf=\"mode === modes.Slider\">\n <co-input-text\n class=\"slider-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | coreLocalize\"\n [(model)]=\"sliderMin\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMin)\"\n ></co-input-text>\n <co-input-text\n class=\"slider-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | coreLocalize\"\n [(model)]=\"sliderMax\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMax)\"\n ></co-input-text>\n </div>\n <div class=\"co-filter-item-slider-content\" *ngIf=\"mode === modes.NullableSlider\">\n <co-input-text\n class=\"slider-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | coreLocalize\"\n [(model)]=\"sliderMin\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMin)\"\n ></co-input-text>\n <co-input-text\n class=\"slider-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | coreLocalize\"\n [(model)]=\"sliderMax\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMax)\"\n ></co-input-text>\n </div>\n <div class=\"co-filter-item-checkbox-content\" *ngIf=\"mode === modes.Checkbox \">\n <co-input-checkbox\n [(model)]=\"model\"\n (modelChange)=\"handleModelChange($event)\"\n [readonly]=\"readonly\"\n [label]=\"placeholder\">\n </co-input-checkbox>\n </div>\n <div class=\"co-filter-item-checkbox-content\"\n *ngIf=\"mode === modes.CheckboxToText || mode === modes.CheckboxToSimpleText || mode === modes.CheckboxToBinary\">\n <co-input-checkbox\n [(model)]=\"checkBoxToTextModel\"\n (modelChange)=\"handleModelChange($event)\"\n [readonly]=\"readonly\"\n [label]=\"placeholder\"></co-input-checkbox>\n </div>\n <div class=\"co-filter-item-textfield-content\" *ngIf=\"mode === modes.TextField\">\n <co-input-text\n [(model)]=\"model\" [readonly]=\"readonly\"\n (modelChange)=\"handleModelChange($event)\"></co-input-text>\n </div>\n <div class=\"co-filter-item-dateField-content\" *ngIf=\"mode === modes.DateField\">\n <co-input-date\n [(model)]=\"model\" [readonly]=\"readonly\"\n (modelChange)=\"handleModelChange($event)\"\n ></co-input-date>\n </div>\n <div class=\"co-filter-item-dateField-content\" *ngIf=\"mode === modes.DateRangeField\">\n <co-input-date-range [readonly]=\"readonly\"\n [model]=\"[dateRangeStart, dateRangeEnd]\"\n (modelChange)=\"handleModelChange($event)\"\n [placeholder]=\"'SELECT_DATE' | coreLocalize\">\n </co-input-date-range>\n </div>\n </ng-template>\n </div>\n </co-collapsible>\n </div>\n\n ",
13008
+ template: "\n <div class=\"co-filter-item-header\">\n <co-collapsible\n [headerTitle]=\"placeholder\"\n [expandButtonLast]=\"true\"\n [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"\n [expanded]=\"expanded\"\n [showButton]=\"showButton\"\n [buttonText]=\"filterButtonLabel\"\n (buttonClicked)=\"onButtonClicked()\"\n >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\"\n (keydown)=\"showButton=true\" (mousedown)=\"showButton=true\">\n <ng-content></ng-content>\n </div>\n <ng-template #collectionContent>\n <div class=\"co-filter-item-collection-content\" *ngIf=\"mode === modes.Filterlist || mode === modes.SingleSelectList\n || mode === modes.SelectListWithNumberOutput || mode === modes.SelectListWithStringCollectionOutput\">\n <co-input-text\n *ngIf=\"collection?.length > 10 || minSearchCharsToLoadCollection\"\n [placeholder]=\"searchPlaceholder\"\n [model]=\"filterText\"\n (modelChange)=\"onModelChange($event)\"\n [readonly]=\"readonly\"\n >\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <div class=\"no-results\" *ngIf=\"filteredCollection?.length === 0\">\n <span [textContent]=\"noResultsLabel\"></span>\n </div>\n <div class=\"co-filter-item-collection-results\">\n <ng-container\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || showAllResults\">\n <co-input-checkbox *ngIf=\"mode !== modes.SingleSelectList\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n [clickableLabel]=\"false\"\n (modelChange)=\"handleModelChange(option)\"\n [readonly]=\"readonly\"\n ></co-input-checkbox>\n <co-input-radio-button *ngIf=\"mode === modes.SingleSelectList\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n [readonly]=\"readonly\"\n ></co-input-radio-button>\n <div class=\"co-filter-item-amount\" *ngIf=\"option.count\"\n [textContent]=\"option.count.toString() | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n\n </ng-container>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"!showAllResults\">\n <div class=\"co-filter-show-more clickable\"\n *ngIf=\"moreToShow()\">\n <a (click)=\"increaseLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"></co-icon>\n <span [textContent]=\"showMoreLabel\"></span>\n </a>\n </div>\n <div class=\"co-filter-show-less clickable\"\n *ngIf=\"lessToShow()\">\n <a (click)=\"setToInitialLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointUp)\"></co-icon>\n <span [textContent]=\"showLessLabel\"></span>\n </a>\n </div>\n </div>\n </div>\n <div class=\"co-filter-item-slider-content\" *ngIf=\"mode === modes.Slider\">\n <co-input-text\n class=\"slider-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | coreLocalize\"\n [(model)]=\"sliderMin\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMin)\"\n ></co-input-text>\n <co-input-text\n class=\"slider-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | coreLocalize\"\n [(model)]=\"sliderMax\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMax)\"\n ></co-input-text>\n </div>\n <div class=\"co-filter-item-slider-content\" *ngIf=\"mode === modes.NullableSlider\">\n <co-input-text\n class=\"slider-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | coreLocalize\"\n [(model)]=\"sliderMin\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMin)\"\n ></co-input-text>\n <co-input-text\n class=\"slider-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | coreLocalize\"\n [(model)]=\"sliderMax\"\n [readonly]=\"readonly\"\n (focusout)=\"handleModelChange(sliderMax)\"\n ></co-input-text>\n </div>\n <div class=\"co-filter-item-checkbox-content\" *ngIf=\"mode === modes.Checkbox \">\n <co-input-checkbox\n [(model)]=\"model\"\n (modelChange)=\"handleModelChange($event)\"\n [readonly]=\"readonly\"\n [label]=\"placeholder\">\n </co-input-checkbox>\n </div>\n <div class=\"co-filter-item-checkbox-content\"\n *ngIf=\"mode === modes.CheckboxToText || mode === modes.CheckboxToSimpleText || mode === modes.CheckboxToBinary\">\n <co-input-checkbox\n [(model)]=\"checkBoxToTextModel\"\n (modelChange)=\"handleModelChange($event)\"\n [readonly]=\"readonly\"\n [label]=\"placeholder\"></co-input-checkbox>\n </div>\n <div class=\"co-filter-item-textfield-content\" *ngIf=\"mode === modes.TextField\">\n <co-input-text\n [(model)]=\"model\" [readonly]=\"readonly\"\n (modelChange)=\"handleModelChange($event)\"></co-input-text>\n </div>\n <div class=\"co-filter-item-dateField-content\" *ngIf=\"mode === modes.DateField\">\n <co-input-date\n [(model)]=\"model\" [readonly]=\"readonly\"\n (modelChange)=\"handleModelChange($event)\"\n ></co-input-date>\n </div>\n <div class=\"co-filter-item-dateField-content\" *ngIf=\"mode === modes.DateRangeField\">\n <co-input-date-range [readonly]=\"readonly\"\n [model]=\"[dateRangeStart, dateRangeEnd]\"\n (modelChange)=\"handleModelChange($event)\"\n [placeholder]=\"'Kies datum' | coreLocalize\">\n </co-input-date-range>\n </div>\n </ng-template>\n </div>\n </co-collapsible>\n </div>\n\n ",
12948
13009
  encapsulation: i0.ViewEncapsulation.None,
12949
13010
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
12950
13011
  providers: [{
@@ -13805,7 +13866,7 @@
13805
13866
  };
13806
13867
  BaseModuleScreenConfigService.prototype.getDefaultValue = function (configName) {
13807
13868
  var objectConfig = this._objectConfigsMap.get(configName);
13808
- return objectConfig ? objectConfig.getDefaultValue() : undefined;
13869
+ return objectConfig ? objectConfig.defaultValue : undefined;
13809
13870
  };
13810
13871
  BaseModuleScreenConfigService.prototype.getDefaultStringValue = function (configName) {
13811
13872
  var objectConfig = this._objectConfigsMap.get(configName);
@@ -14042,6 +14103,7 @@
14042
14103
  this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
14043
14104
  this.hostComponent.decimals = myCfgObj.scale;
14044
14105
  this.hostComponent.maxLength = myCfgObj.maxLength;
14106
+ this.hostComponent.defaultValue = myCfgObj.defaultValue;
14045
14107
  if ('configObject' in this.hostComponent) {
14046
14108
  this.hostComponent.configObject = myCfgObj;
14047
14109
  }