@colijnit/corecomponents_v12 260.1.15 → 260.1.17
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.
- package/bundles/colijnit-corecomponents_v12.umd.js +74 -34
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/base/base-input.component.js +5 -16
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.component.js +2 -2
- package/esm2015/lib/components/filter-item/filter-item.component.js +55 -8
- package/esm2015/lib/components/input-text/input-text.component.js +3 -1
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +53 -53
- package/esm2015/lib/core/enum/filterItem-mode.enum.js +9 -3
- package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +122 -78
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +1 -3
- package/lib/components/filter-item/filter-item.component.d.ts +3 -0
- package/lib/core/enum/filterItem-mode.enum.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2222,7 +2222,7 @@
|
|
|
2222
2222
|
CommitButtonsComponent.decorators = [
|
|
2223
2223
|
{ type: i0.Component, args: [{
|
|
2224
2224
|
selector: 'co-commit-buttons',
|
|
2225
|
-
template: "\n <div class=\"commit-buttons-wrapper\" [overlay]=\"parentForOverlay\" [rightAlign]=\"true\" @showHideSaveCancel>\n <div class=\"commit-buttons-button save\" [class.finished]=\"commitFinished\"\n (click)=\"commitClick.emit($event)\">\n <div class=\"save-button-spinner\" *ngIf=\"committing\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <svg class=\"checkmark\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 52 52\" *ngIf=\"firstShow || commitFinished\">\n <path class=\"checkmark-check\" [class.first-show]=\"firstShow\" fill=\"none\" d=\"M14.1 27.2l7.1 7.2 16.7-16.8\"/></svg>\n </div>\n <div class=\"commit-buttons-button cancel\" (click)=\"cancelClick.emit($event)\">\n <div class=\"cancel-button\"></div>\n </div>\n </div>\n ",
|
|
2225
|
+
template: "\n <div class=\"commit-buttons-wrapper\" [overlay]=\"parentForOverlay\" [rightAlign]=\"true\" @showHideSaveCancel>\n <div class=\"commit-buttons-button save\" [class.finished]=\"commitFinished\"\n (click)=\"commitClick.emit($event)\">\n <div class=\"save-button-spinner\" *ngIf=\"committing\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <svg class=\"checkmark\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 52 52\" *ngIf=\"firstShow || commitFinished\">\n <path class=\"checkmark-check\" [class.first-show]=\"firstShow\" fill=\"none\" d=\"M14.1 27.2l7.1 7.2 16.7-16.8\"/></svg>\n </div>\n <div class=\"commit-buttons-button cancel\" (mousedown)=\"$event.preventDefault()\" (click)=\"cancelClick.emit($event)\">\n <div class=\"cancel-button\"></div>\n </div>\n </div>\n ",
|
|
2226
2226
|
animations: [
|
|
2227
2227
|
animations.trigger('showHideSaveCancel', [
|
|
2228
2228
|
animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
@@ -2291,8 +2291,8 @@
|
|
|
2291
2291
|
this.excludeUserModelChange = false;
|
|
2292
2292
|
this.noFormGroupControl = false;
|
|
2293
2293
|
this.keepFocus = false;
|
|
2294
|
-
this.canceled = false;
|
|
2295
2294
|
this.validationError = '';
|
|
2295
|
+
this.shouldCommit = true;
|
|
2296
2296
|
this._markedAsUserTouched = false;
|
|
2297
2297
|
this._destroyed = false;
|
|
2298
2298
|
this._hasOnPushCdStrategy = false;
|
|
@@ -2709,8 +2709,7 @@
|
|
|
2709
2709
|
this.input = undefined;
|
|
2710
2710
|
};
|
|
2711
2711
|
BaseInputComponent.prototype.cancelClick = function (event) {
|
|
2712
|
-
this.
|
|
2713
|
-
this.conditionResolver(this.canceled);
|
|
2712
|
+
this.shouldCommit = false;
|
|
2714
2713
|
this.keepFocus = true;
|
|
2715
2714
|
if (this._initialModelSet) {
|
|
2716
2715
|
this.model = this._initialModel;
|
|
@@ -2764,34 +2763,19 @@
|
|
|
2764
2763
|
}
|
|
2765
2764
|
this.focus.next();
|
|
2766
2765
|
};
|
|
2767
|
-
BaseInputComponent.prototype.waitForCancelCondition = function () {
|
|
2768
|
-
var _this = this;
|
|
2769
|
-
return new Promise(function (resolve) {
|
|
2770
|
-
_this.conditionResolver = resolve; // Save the resolver to be called later
|
|
2771
|
-
});
|
|
2772
|
-
};
|
|
2773
2766
|
BaseInputComponent.prototype.doBlur = function (event, handleCommit) {
|
|
2774
2767
|
if (handleCommit === void 0) { handleCommit = true; }
|
|
2775
2768
|
return __awaiter(this, void 0, void 0, function () {
|
|
2776
|
-
var cancelTimeout, result;
|
|
2777
2769
|
var _this = this;
|
|
2778
2770
|
return __generator(this, function (_a) {
|
|
2779
2771
|
switch (_a.label) {
|
|
2780
2772
|
case 0:
|
|
2781
|
-
|
|
2782
|
-
return [4 /*yield*/, Promise.race([this.waitForCancelCondition(), cancelTimeout])];
|
|
2783
|
-
case 1:
|
|
2784
|
-
result = _a.sent();
|
|
2785
|
-
// If canceled
|
|
2786
|
-
if (result) {
|
|
2787
|
-
return [2 /*return*/];
|
|
2788
|
-
}
|
|
2789
|
-
if (!(this.showSaveCancel && handleCommit && this._modelDirtyForCommit)) return [3 /*break*/, 3];
|
|
2773
|
+
if (!(this.showSaveCancel && handleCommit && this._modelDirtyForCommit && this.shouldCommit)) return [3 /*break*/, 2];
|
|
2790
2774
|
return [4 /*yield*/, this._handleCommit(event, false)];
|
|
2791
|
-
case
|
|
2775
|
+
case 1:
|
|
2792
2776
|
_a.sent();
|
|
2793
|
-
_a.label =
|
|
2794
|
-
case
|
|
2777
|
+
_a.label = 2;
|
|
2778
|
+
case 2:
|
|
2795
2779
|
setTimeout(function () {
|
|
2796
2780
|
if (_this.keepFocus || _this.keepFocussed) {
|
|
2797
2781
|
if (event) {
|
|
@@ -2935,6 +2919,7 @@
|
|
|
2935
2919
|
return [2 /*return*/, true];
|
|
2936
2920
|
}
|
|
2937
2921
|
this.keepFocus = true;
|
|
2922
|
+
this.shouldCommit = true;
|
|
2938
2923
|
if (this._commitButtonsComponentRef) {
|
|
2939
2924
|
this._commitButtonsComponentRef.instance.commitFinished = false;
|
|
2940
2925
|
this._commitButtonsComponentRef.instance.committing = true;
|
|
@@ -5787,12 +5772,18 @@
|
|
|
5787
5772
|
// It's value will be passed along directly as a boolean.
|
|
5788
5773
|
FilterItemMode["Checkbox"] = "checkbox";
|
|
5789
5774
|
//This mode makes the Filter display a simple checkBox.
|
|
5790
|
-
// It's value will be passed along as either a '
|
|
5775
|
+
// It's value will be passed along as either a 'J' or and 'N'.
|
|
5791
5776
|
FilterItemMode["CheckboxToSimpleText"] = "checkboxToSimpleText";
|
|
5792
5777
|
//This mode makes the Filter display a simple checkBox.
|
|
5793
|
-
// It's value will be passed along as either a "?='
|
|
5778
|
+
// It's value will be passed along as either a "?='J'" or and "?='N'".
|
|
5794
5779
|
FilterItemMode["CheckboxToText"] = "checkboxToText";
|
|
5795
5780
|
//This mode makes the Filter display a simple checkBox.
|
|
5781
|
+
// It's value will be passed along as either a 'T' or and 'F'.
|
|
5782
|
+
FilterItemMode["CheckboxToTFSimpleText"] = "checkboxToTFSimpleText";
|
|
5783
|
+
//This mode makes the Filter display a simple checkBox.
|
|
5784
|
+
// It's value will be passed along as either a "?='T'" or and "?='F'".
|
|
5785
|
+
FilterItemMode["CheckboxToTFText"] = "checkboxToTFText";
|
|
5786
|
+
//This mode makes the Filter display a simple checkBox.
|
|
5796
5787
|
// It's value will be passed along as either a 1 or and 0.
|
|
5797
5788
|
FilterItemMode["CheckboxToBinary"] = "checkboxToBinary";
|
|
5798
5789
|
})(exports.FilterItemMode || (exports.FilterItemMode = {}));
|
|
@@ -6451,6 +6442,8 @@
|
|
|
6451
6442
|
};
|
|
6452
6443
|
InputTextComponent.prototype.clearInput = function (event) {
|
|
6453
6444
|
this.setModel(null);
|
|
6445
|
+
this.keepFocus = true;
|
|
6446
|
+
this.shouldCommit = false;
|
|
6454
6447
|
this.clearIconClick.emit(event);
|
|
6455
6448
|
};
|
|
6456
6449
|
InputTextComponent.prototype.handleKeyDownInput = function (event) {
|
|
@@ -12253,7 +12246,7 @@
|
|
|
12253
12246
|
ListOfValuesComponent.decorators = [
|
|
12254
12247
|
{ type: i0.Component, args: [{
|
|
12255
12248
|
selector: 'co-list-of-values',
|
|
12256
|
-
template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? selectedModels : selectedModel\"\n [placeholder]=\"label\"\n [myFormInputInstance]=\"this\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n\n <co-input-text\n *ngIf=\"largeCollection\"\n [model]=\"filterText\"\n [placeholder]=\"label\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (modelChange)=\"onModelChange($event)\">\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <input type=\"hidden\" [ngModel]=\"model\">\n ",
|
|
12249
|
+
template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? ((!selectedModels || selectedModels.length === 0) ? null : selectedModels ) : selectedModel\"\n [placeholder]=\"label\"\n [myFormInputInstance]=\"this\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n\n <co-input-text\n *ngIf=\"largeCollection\"\n [model]=\"filterText\"\n [placeholder]=\"label\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (modelChange)=\"onModelChange($event)\">\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <input type=\"hidden\" [ngModel]=\"(selectedModels && selectedModels.length) || selectedModel ? model : null\">\n ",
|
|
12257
12250
|
providers: [
|
|
12258
12251
|
OverlayService,
|
|
12259
12252
|
{
|
|
@@ -13034,10 +13027,18 @@
|
|
|
13034
13027
|
this.showButton = true;
|
|
13035
13028
|
this._createModelForCheckboxToText();
|
|
13036
13029
|
break;
|
|
13030
|
+
case this.modes.CheckboxToTFText:
|
|
13031
|
+
this.showButton = true;
|
|
13032
|
+
this._createModelForCheckboxToTFText();
|
|
13033
|
+
break;
|
|
13037
13034
|
case this.modes.CheckboxToSimpleText:
|
|
13038
13035
|
this.showButton = true;
|
|
13039
13036
|
this._createModelForCheckboxToSimpleText();
|
|
13040
13037
|
break;
|
|
13038
|
+
case this.modes.CheckboxToTFSimpleText:
|
|
13039
|
+
this.showButton = true;
|
|
13040
|
+
this._createModelForCheckboxToTFSimpleText();
|
|
13041
|
+
break;
|
|
13041
13042
|
case this.modes.CheckboxToBinary:
|
|
13042
13043
|
this.showButton = true;
|
|
13043
13044
|
this._createModelForCheckboxToBinary();
|
|
@@ -13184,6 +13185,10 @@
|
|
|
13184
13185
|
case this.modes.CheckboxToSimpleText:
|
|
13185
13186
|
this._readModelForCheckboxToText(newModel);
|
|
13186
13187
|
break;
|
|
13188
|
+
case this.modes.CheckboxToTFText:
|
|
13189
|
+
case this.modes.CheckboxToTFSimpleText:
|
|
13190
|
+
this._readModelForCheckboxToTFText(newModel);
|
|
13191
|
+
break;
|
|
13187
13192
|
case this.modes.CheckboxToBinary:
|
|
13188
13193
|
this._readModelForCheckboxToBinary(newModel);
|
|
13189
13194
|
break;
|
|
@@ -13288,6 +13293,14 @@
|
|
|
13288
13293
|
this._model = "?='N'";
|
|
13289
13294
|
}
|
|
13290
13295
|
};
|
|
13296
|
+
FilterItemComponent.prototype._createModelForCheckboxToTFText = function () {
|
|
13297
|
+
if (this.checkBoxToTextModel) {
|
|
13298
|
+
this._model = "?='T'";
|
|
13299
|
+
}
|
|
13300
|
+
else {
|
|
13301
|
+
this._model = "?='F'";
|
|
13302
|
+
}
|
|
13303
|
+
};
|
|
13291
13304
|
FilterItemComponent.prototype._createModelForCheckboxToSimpleText = function () {
|
|
13292
13305
|
if (this.checkBoxToTextModel) {
|
|
13293
13306
|
this._model = "J";
|
|
@@ -13296,6 +13309,14 @@
|
|
|
13296
13309
|
this._model = "N";
|
|
13297
13310
|
}
|
|
13298
13311
|
};
|
|
13312
|
+
FilterItemComponent.prototype._createModelForCheckboxToTFSimpleText = function () {
|
|
13313
|
+
if (this.checkBoxToTextModel) {
|
|
13314
|
+
this._model = "T";
|
|
13315
|
+
}
|
|
13316
|
+
else {
|
|
13317
|
+
this._model = "F";
|
|
13318
|
+
}
|
|
13319
|
+
};
|
|
13299
13320
|
FilterItemComponent.prototype._createModelForCheckboxToBinary = function () {
|
|
13300
13321
|
if (this.checkBoxToTextModel) {
|
|
13301
13322
|
this._model = 1;
|
|
@@ -13439,6 +13460,15 @@
|
|
|
13439
13460
|
this.checkBoxToTextModel = false;
|
|
13440
13461
|
}
|
|
13441
13462
|
};
|
|
13463
|
+
FilterItemComponent.prototype._readModelForCheckboxToTFText = function (checkboxToTextModel) {
|
|
13464
|
+
this._model = checkboxToTextModel;
|
|
13465
|
+
if (checkboxToTextModel !== undefined && checkboxToTextModel !== null) {
|
|
13466
|
+
this.checkBoxToTextModel = (checkboxToTextModel.indexOf('T') > -1);
|
|
13467
|
+
}
|
|
13468
|
+
else {
|
|
13469
|
+
this.checkBoxToTextModel = false;
|
|
13470
|
+
}
|
|
13471
|
+
};
|
|
13442
13472
|
FilterItemComponent.prototype._readModelForCheckboxToBinary = function (checkboxToBinary) {
|
|
13443
13473
|
this._model = checkboxToBinary;
|
|
13444
13474
|
if (checkboxToBinary !== undefined && checkboxToBinary !== null) {
|
|
@@ -13572,12 +13602,20 @@
|
|
|
13572
13602
|
};
|
|
13573
13603
|
FilterItemComponent.prototype._applyDefaultForCheckboxToText = function () {
|
|
13574
13604
|
var defaultString = this.defaultValue.toString().toUpperCase();
|
|
13575
|
-
this.checkBoxToTextModel = (defaultString === 'J' || defaultString === 'Y' || defaultString === 'TRUE');
|
|
13576
|
-
|
|
13577
|
-
this.
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
this.
|
|
13605
|
+
this.checkBoxToTextModel = (defaultString === 'J' || defaultString === 'T' || defaultString === 'Y' || defaultString === 'TRUE');
|
|
13606
|
+
switch (this.mode) {
|
|
13607
|
+
case this.modes.CheckboxToText:
|
|
13608
|
+
this._createModelForCheckboxToText();
|
|
13609
|
+
break;
|
|
13610
|
+
case this.modes.CheckboxToSimpleText:
|
|
13611
|
+
this._createModelForCheckboxToSimpleText();
|
|
13612
|
+
break;
|
|
13613
|
+
case this.modes.CheckboxToTFText:
|
|
13614
|
+
this._createModelForCheckboxToTFText();
|
|
13615
|
+
break;
|
|
13616
|
+
case this.modes.CheckboxToTFSimpleText:
|
|
13617
|
+
this._createModelForCheckboxToTFSimpleText();
|
|
13618
|
+
break;
|
|
13581
13619
|
}
|
|
13582
13620
|
this.modelChange.emit(this._model);
|
|
13583
13621
|
this.showButton = true;
|
|
@@ -13682,6 +13720,8 @@
|
|
|
13682
13720
|
break;
|
|
13683
13721
|
case this.modes.CheckboxToText:
|
|
13684
13722
|
case this.modes.CheckboxToSimpleText:
|
|
13723
|
+
case this.modes.CheckboxToTFText:
|
|
13724
|
+
case this.modes.CheckboxToTFSimpleText:
|
|
13685
13725
|
this._applyDefaultForCheckboxToText();
|
|
13686
13726
|
break;
|
|
13687
13727
|
case this.modes.CheckboxToBinary:
|
|
@@ -13707,7 +13747,7 @@
|
|
|
13707
13747
|
FilterItemComponent.decorators = [
|
|
13708
13748
|
{ type: i0.Component, args: [{
|
|
13709
13749
|
selector: "co-filter-item",
|
|
13710
|
-
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 (modelChange)=\"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 (modelChange)=\"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 (modelChange)=\"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 (modelChange)=\"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 #dateInput\n [(model)]=\"dateFieldValue\" [readonly]=\"readonly\" [firstDayOfWeek]=\"firstDayOfWeek\"\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\" [firstDayOfWeek]=\"firstDayOfWeek\"\n #dateRangeInput\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 ",
|
|
13750
|
+
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 (modelChange)=\"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 (modelChange)=\"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 (modelChange)=\"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 (modelChange)=\"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 || mode === modes.CheckboxToTFSimpleText || mode === modes.CheckboxToTFText\">\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 #dateInput\n [(model)]=\"dateFieldValue\" [readonly]=\"readonly\" [firstDayOfWeek]=\"firstDayOfWeek\"\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\" [firstDayOfWeek]=\"firstDayOfWeek\"\n #dateRangeInput\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 ",
|
|
13711
13751
|
encapsulation: i0.ViewEncapsulation.None,
|
|
13712
13752
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
13713
13753
|
providers: [{
|
|
@@ -14840,7 +14880,7 @@
|
|
|
14840
14880
|
if (myCfgObj) {
|
|
14841
14881
|
this._setHostVisible(myCfgObj.immediatelyVisible());
|
|
14842
14882
|
if (!this.screenConfigNativeElement) {
|
|
14843
|
-
this.hostComponent.required = myCfgObj.isRequired();
|
|
14883
|
+
this.hostComponent.required = this.hostComponent.required || myCfgObj.isRequired();
|
|
14844
14884
|
this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
|
|
14845
14885
|
this.hostComponent.decimals = myCfgObj.scale;
|
|
14846
14886
|
this.hostComponent.maxLength = myCfgObj.maxLength;
|