@colijnit/corecomponents_v12 12.2.12 → 12.2.13
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 +21 -21
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +2 -2
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +3 -3
- package/esm2015/lib/components/filter-item/filter-item.component.js +145 -145
- package/esm2015/lib/components/validation-error/validation-error.component.js +6 -6
- package/esm2015/lib/translation/core-components-translation.module.js +6 -6
- package/esm2015/lib/translation/core-components-translation.service.js +3 -3
- package/esm2015/lib/translation/core-dictionary.service.js +29 -0
- package/esm2015/lib/translation/core-localize.pipe.js +26 -0
- package/fesm2015/colijnit-corecomponents_v12.js +161 -161
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/translation/core-components-translation.service.d.ts +2 -2
- package/lib/translation/{dictionary.service.d.ts → core-dictionary.service.d.ts} +1 -1
- package/lib/translation/core-localize.pipe.d.ts +7 -0
- package/package.json +1 -1
- package/esm2015/lib/translation/dictionary.service.js +0 -29
- package/esm2015/lib/translation/localize.pipe.js +0 -26
- package/lib/translation/localize.pipe.d.ts +0 -7
|
@@ -2034,7 +2034,7 @@
|
|
|
2034
2034
|
ValidationErrorComponent.decorators = [
|
|
2035
2035
|
{ type: i0.Component, args: [{
|
|
2036
2036
|
selector: "co-validation-error",
|
|
2037
|
-
template: "\n
|
|
2037
|
+
template: "\n <div class=\"validation-error-wrapper\" [overlay]=\"parentForOverlay\">\n <div class=\"validation-error-content\">\n <co-icon [iconData]=\"icons.getIcon(Icons.InformationRoundOpen)\"></co-icon>\n <div class=\"validation-error-message\" [textContent]=\"error | coreLocalize\"></div>\n </div>\n </div>\n ",
|
|
2038
2038
|
animations: [],
|
|
2039
2039
|
encapsulation: i0.ViewEncapsulation.None
|
|
2040
2040
|
},] }
|
|
@@ -6405,8 +6405,8 @@
|
|
|
6405
6405
|
];
|
|
6406
6406
|
|
|
6407
6407
|
// The localization service, providing peers with text translation functionality.
|
|
6408
|
-
var
|
|
6409
|
-
function
|
|
6408
|
+
var CoreDictionaryService = /** @class */ (function () {
|
|
6409
|
+
function CoreDictionaryService() {
|
|
6410
6410
|
// Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
|
|
6411
6411
|
this._placeholder = "|~";
|
|
6412
6412
|
}
|
|
@@ -6417,7 +6417,7 @@
|
|
|
6417
6417
|
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
6418
6418
|
* @returns {string} The translated text for given dictionary key
|
|
6419
6419
|
*/
|
|
6420
|
-
|
|
6420
|
+
CoreDictionaryService.prototype.get = function (key, upperCaseFirst) {
|
|
6421
6421
|
if (upperCaseFirst === void 0) { upperCaseFirst = true; }
|
|
6422
6422
|
var replacementTexts = [];
|
|
6423
6423
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -6432,9 +6432,9 @@
|
|
|
6432
6432
|
}
|
|
6433
6433
|
return text;
|
|
6434
6434
|
};
|
|
6435
|
-
return
|
|
6435
|
+
return CoreDictionaryService;
|
|
6436
6436
|
}());
|
|
6437
|
-
|
|
6437
|
+
CoreDictionaryService.decorators = [
|
|
6438
6438
|
{ type: i0.Injectable }
|
|
6439
6439
|
];
|
|
6440
6440
|
|
|
@@ -6451,14 +6451,14 @@
|
|
|
6451
6451
|
{ type: i0.Injectable }
|
|
6452
6452
|
];
|
|
6453
6453
|
CoreComponentsTranslationService.ctorParameters = function () { return [
|
|
6454
|
-
{ type:
|
|
6454
|
+
{ type: CoreDictionaryService }
|
|
6455
6455
|
]; };
|
|
6456
6456
|
|
|
6457
|
-
var
|
|
6458
|
-
function
|
|
6457
|
+
var CoreLocalizePipe = /** @class */ (function () {
|
|
6458
|
+
function CoreLocalizePipe(_dictionaryService) {
|
|
6459
6459
|
this._dictionaryService = _dictionaryService;
|
|
6460
6460
|
}
|
|
6461
|
-
|
|
6461
|
+
CoreLocalizePipe.prototype.transform = function (value, upperCaseFirst, replace) {
|
|
6462
6462
|
var _a;
|
|
6463
6463
|
if (upperCaseFirst === void 0) { upperCaseFirst = true; }
|
|
6464
6464
|
if (replace === void 0) { replace = []; }
|
|
@@ -6471,15 +6471,15 @@
|
|
|
6471
6471
|
}
|
|
6472
6472
|
return (_a = this._dictionaryService).get.apply(_a, __spreadArray([value, upperCaseFirst], __read(replace)));
|
|
6473
6473
|
};
|
|
6474
|
-
return
|
|
6474
|
+
return CoreLocalizePipe;
|
|
6475
6475
|
}());
|
|
6476
|
-
|
|
6476
|
+
CoreLocalizePipe.decorators = [
|
|
6477
6477
|
{ type: i0.Pipe, args: [{
|
|
6478
|
-
name: "
|
|
6478
|
+
name: "coreLocalize"
|
|
6479
6479
|
},] }
|
|
6480
6480
|
];
|
|
6481
|
-
|
|
6482
|
-
{ type:
|
|
6481
|
+
CoreLocalizePipe.ctorParameters = function () { return [
|
|
6482
|
+
{ type: CoreDictionaryService }
|
|
6483
6483
|
]; };
|
|
6484
6484
|
|
|
6485
6485
|
var CoreComponentsTranslationModule = /** @class */ (function () {
|
|
@@ -6498,14 +6498,14 @@
|
|
|
6498
6498
|
CoreComponentsTranslationModule.decorators = [
|
|
6499
6499
|
{ type: i0.NgModule, args: [{
|
|
6500
6500
|
declarations: [
|
|
6501
|
-
|
|
6501
|
+
CoreLocalizePipe
|
|
6502
6502
|
],
|
|
6503
6503
|
providers: [
|
|
6504
6504
|
CoreComponentsTranslationService,
|
|
6505
|
-
|
|
6505
|
+
CoreDictionaryService
|
|
6506
6506
|
],
|
|
6507
6507
|
exports: [
|
|
6508
|
-
|
|
6508
|
+
CoreLocalizePipe
|
|
6509
6509
|
]
|
|
6510
6510
|
},] }
|
|
6511
6511
|
];
|
|
@@ -12252,7 +12252,7 @@
|
|
|
12252
12252
|
FilterItemComponent.decorators = [
|
|
12253
12253
|
{ type: i0.Component, args: [{
|
|
12254
12254
|
selector: "co-filter-item",
|
|
12255
|
-
template: "\n
|
|
12255
|
+
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)=\"applyFilter($event)\"\n >\n </co-input-text>\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 ></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 ></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 (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 (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 (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 (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 [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 [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\"\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\"\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\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 ",
|
|
12256
12256
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12257
12257
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
12258
12258
|
},] }
|
|
@@ -13296,8 +13296,8 @@
|
|
|
13296
13296
|
exports["ɵm"] = ValidationErrorModule;
|
|
13297
13297
|
exports["ɵn"] = OverlayDirective;
|
|
13298
13298
|
exports["ɵo"] = OverlayParentDirective;
|
|
13299
|
-
exports["ɵp"] =
|
|
13300
|
-
exports["ɵq"] =
|
|
13299
|
+
exports["ɵp"] = CoreLocalizePipe;
|
|
13300
|
+
exports["ɵq"] = CoreDictionaryService;
|
|
13301
13301
|
exports["ɵr"] = ValidationErrorComponent;
|
|
13302
13302
|
exports["ɵs"] = CommitButtonsModule;
|
|
13303
13303
|
exports["ɵt"] = CommitButtonsComponent;
|