@colijnit/corecomponents_v12 12.2.12 → 12.2.14
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 +723 -281
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +11 -7
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +12 -8
- package/esm2015/lib/components/base/dialog-base.component.js +6 -0
- package/esm2015/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.js +79 -0
- package/esm2015/lib/components/core-dialog/core-dialog.module.js +39 -0
- package/esm2015/lib/components/core-dialog/core-dialog.service.js +67 -0
- package/esm2015/lib/components/core-dialog/core-dynamic-component.service.js +93 -0
- package/esm2015/lib/components/filter-item/filter-item.component.js +145 -145
- package/esm2015/lib/components/input-scanner/bar-code-scanner.js +23 -0
- package/esm2015/lib/components/input-scanner/input-scanner.component.js +69 -0
- package/esm2015/lib/components/input-scanner/input-scanner.module.js +21 -0
- package/esm2015/lib/components/input-scanner/scanner.service.js +28 -0
- package/esm2015/lib/components/input-search/input-search.component.js +2 -1
- package/esm2015/lib/components/input-text/input-text.component.js +2 -1
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +37 -27
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +55 -35
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +4 -2
- package/esm2015/lib/components/validation-error/validation-error.component.js +6 -6
- package/esm2015/lib/core/enum/core-components-icon.enum.js +2 -1
- package/esm2015/lib/core/model/core-components-icon-svg.js +2 -1
- package/esm2015/lib/interfaces/dialog-response.interface.js +2 -0
- package/esm2015/lib/interfaces/scanner-input.interface.js +2 -0
- package/esm2015/lib/model/enum/app-button-type.enum.js +11 -0
- package/esm2015/lib/model/enum/app-popup-type.enum.js +8 -0
- 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/esm2015/public-api.js +16 -11
- package/fesm2015/colijnit-corecomponents_v12.js +870 -425
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/dialog-base.component.d.ts +4 -0
- package/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +20 -0
- package/lib/components/core-dialog/confirmation-dialog/style/_layout.scss +30 -0
- package/lib/components/core-dialog/confirmation-dialog/style/_material-definition.scss +2 -0
- package/lib/components/core-dialog/confirmation-dialog/style/_theme.scss +6 -0
- package/lib/components/core-dialog/confirmation-dialog/style/material.scss +4 -0
- package/lib/components/core-dialog/core-dialog.module.d.ts +4 -0
- package/lib/components/core-dialog/core-dialog.service.d.ts +15 -0
- package/lib/components/core-dialog/core-dynamic-component.service.d.ts +12 -0
- package/lib/components/core-dialog/style/_layout.scss +6 -0
- package/lib/components/core-dialog/style/_material-definition.scss +0 -0
- package/lib/components/core-dialog/style/_theme.scss +6 -0
- package/lib/components/core-dialog/style/material.scss +4 -0
- package/lib/components/input-scanner/bar-code-scanner.d.ts +7 -0
- package/lib/components/input-scanner/input-scanner.component.d.ts +23 -0
- package/lib/components/input-scanner/input-scanner.module.d.ts +2 -0
- package/lib/components/input-scanner/scanner.service.d.ts +11 -0
- package/lib/components/input-scanner/style/_layout.scss +4 -0
- package/lib/components/input-scanner/style/_material-definition.scss +0 -0
- package/lib/components/input-scanner/style/_theme.scss +4 -0
- package/lib/components/input-scanner/style/material.scss +4 -0
- package/lib/components/simple-grid/simple-grid-cell.component.d.ts +4 -2
- package/lib/components/simple-grid/simple-grid.component.d.ts +5 -3
- package/lib/components/simple-grid/style/_layout.scss +30 -4
- package/lib/components/simple-grid/style/_material-definition.scss +9 -2
- package/lib/components/simple-grid/style/_theme.scss +3 -0
- package/lib/core/enum/core-components-icon.enum.d.ts +1 -0
- package/lib/interfaces/dialog-response.interface.d.ts +6 -0
- package/lib/interfaces/scanner-input.interface.d.ts +3 -0
- package/lib/model/enum/app-button-type.enum.d.ts +9 -0
- package/lib/model/enum/app-popup-type.enum.d.ts +6 -0
- 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/public-api.d.ts +15 -10
- 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
|
@@ -1041,6 +1041,7 @@ var CoreComponentsIcon;
|
|
|
1041
1041
|
CoreComponentsIcon["CashRegisterSimple"] = "cash_register_simple";
|
|
1042
1042
|
CoreComponentsIcon["ChangeLocation"] = "change_location";
|
|
1043
1043
|
CoreComponentsIcon["Check"] = "check";
|
|
1044
|
+
CoreComponentsIcon["CheckDuotone"] = "check_duotone";
|
|
1044
1045
|
CoreComponentsIcon["CheckRound"] = "check_round";
|
|
1045
1046
|
CoreComponentsIcon["CheckRoundOpen"] = "check_round_open";
|
|
1046
1047
|
CoreComponentsIcon["CheckSimple"] = "check_simple";
|
|
@@ -1339,6 +1340,7 @@ const CoreComponentsIconSvg = {
|
|
|
1339
1340
|
"cash_register_simple": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path style= \"fill: #484f60\" d=\"M288 0C305.7 0 320 14.33 320 32V96C320 113.7 305.7 128 288 128H208V160H424.1C456.6 160 483.5 183.1 488.2 214.4L510.9 364.1C511.6 368.8 512 373.6 512 378.4V448C512 483.3 483.3 512 448 512H64C28.65 512 0 483.3 0 448V378.4C0 373.6 .3622 368.8 1.083 364.1L23.76 214.4C28.5 183.1 55.39 160 87.03 160H143.1V128H63.1C46.33 128 31.1 113.7 31.1 96V32C31.1 14.33 46.33 0 63.1 0L288 0zM96 48C87.16 48 80 55.16 80 64C80 72.84 87.16 80 96 80H256C264.8 80 272 72.84 272 64C272 55.16 264.8 48 256 48H96zM80 448H432C440.8 448 448 440.8 448 432C448 423.2 440.8 416 432 416H80C71.16 416 64 423.2 64 432C64 440.8 71.16 448 80 448zM112 216C98.75 216 88 226.7 88 240C88 253.3 98.75 264 112 264C125.3 264 136 253.3 136 240C136 226.7 125.3 216 112 216zM208 264C221.3 264 232 253.3 232 240C232 226.7 221.3 216 208 216C194.7 216 184 226.7 184 240C184 253.3 194.7 264 208 264zM160 296C146.7 296 136 306.7 136 320C136 333.3 146.7 344 160 344C173.3 344 184 333.3 184 320C184 306.7 173.3 296 160 296zM304 264C317.3 264 328 253.3 328 240C328 226.7 317.3 216 304 216C290.7 216 280 226.7 280 240C280 253.3 290.7 264 304 264zM256 296C242.7 296 232 306.7 232 320C232 333.3 242.7 344 256 344C269.3 344 280 333.3 280 320C280 306.7 269.3 296 256 296zM400 264C413.3 264 424 253.3 424 240C424 226.7 413.3 216 400 216C386.7 216 376 226.7 376 240C376 253.3 386.7 264 400 264zM352 296C338.7 296 328 306.7 328 320C328 333.3 338.7 344 352 344C365.3 344 376 333.3 376 320C376 306.7 365.3 296 352 296z\"/></svg>",
|
|
1340
1341
|
"change_location": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"16.96 25 24.27 32.31 24.27 27.76 29.09 27.76 29.09 22.23 24.27 22.23 24.27 17.69 16.96 25\" fill=\"#484f60\"/><polygon points=\"16.21 23.18 10 23.18 10 26.82 16.21 26.82 14.39 25 16.21 23.18\" fill=\"#484f60\"/><polygon points=\"10 14.77 10 18.4 20.99 18.4 24.63 14.77 10 14.77\" fill=\"#484f60\"/><polygon points=\"10 31.6 10 35.23 24.63 35.23 20.99 31.6 10 31.6\" fill=\"#484f60\"/><polygon points=\"31.35 13.84 35.45 11.47 39.55 13.83 35.45 16.2 31.35 13.84\" fill=\"#484f60\"/><polygon points=\"40 19.32 39.99 14.59 35.89 16.96 35.9 18.05 39.06 19.86 40 19.32\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"35.02 16.96 30.91 14.6 30.92 19.34 31.84 19.87 35.02 18.03 35.02 16.96\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"31.35 22.26 35.45 19.88 39.55 22.24 35.45 24.62 31.35 22.26\" fill=\"#484f60\"/><polygon points=\"40 27.74 39.99 23 35.89 25.38 35.9 26.46 39.06 28.28 40 27.74\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"35.02 25.38 30.91 23.02 30.92 27.75 31.84 28.29 35.02 26.45 35.02 25.38\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"31.35 30.67 35.45 28.3 39.55 30.66 35.45 33.03 31.35 30.67\" fill=\"#484f60\"/><polygon points=\"35.89 33.79 39.99 31.42 40 36.15 35.9 38.53 35.89 33.79\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"30.92 36.17 30.91 31.43 35.02 33.8 35.03 38.53 30.92 36.17\" fill=\"#484f60\" opacity=\"0.25\"/></svg>",
|
|
1341
1342
|
"check": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"16.97 22.92 20.78 28.61 29.96 13 36.16 13 20.78 37 13.84 26.9 16.97 22.92\" fill=\"#484f60\"/></svg>",
|
|
1343
|
+
"check_duotone": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><defs><style>.fa-secondary{opacity:.4}</style></defs><path class=\"fa-primary\" d=\"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z\"/></svg>",
|
|
1342
1344
|
"check_round": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M25,10A15,15,0,1,0,40,25,15,15,0,0,0,25,10ZM23,34l-6.24-9.09,2.81-3.59L23,26.45,27.66,16h5.58Z\" fill=\"#484f60\"/></svg>",
|
|
1343
1345
|
"check_round_open": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#2A363B\" d=\"M40.5,25.5C40.5,34,33.5,41,25,41S9.5,34,9.5,25.5S16.5,10,25,10S40.5,16.9,40.5,25.5z M10.5,25.5C10.5,33.5,17,40,25,40s14.5-6.5,14.5-14.5S33,11,25,11S10.5,17.5,10.5,25.5z\"/></g><polygon fill=\"#2A363B\" points=\"19.9,24 22.5,28 29,17.1 33.3,17.1 22.5,33.9 17.7,26.8 \"/></svg>",
|
|
1344
1346
|
"check_simple": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon fill=\"#2A363B\" points=\"19.9,24 22.5,28 29,17.1 33.3,17.1 22.5,33.9 17.7,26.8 \"/></svg>",
|
|
@@ -1647,12 +1649,12 @@ ValidationErrorComponent.decorators = [
|
|
|
1647
1649
|
{ type: Component, args: [{
|
|
1648
1650
|
selector: "co-validation-error",
|
|
1649
1651
|
template: `
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1652
|
+
<div class="validation-error-wrapper" [overlay]="parentForOverlay">
|
|
1653
|
+
<div class="validation-error-content">
|
|
1654
|
+
<co-icon [iconData]="icons.getIcon(Icons.InformationRoundOpen)"></co-icon>
|
|
1655
|
+
<div class="validation-error-message" [textContent]="error | coreLocalize"></div>
|
|
1656
|
+
</div>
|
|
1654
1657
|
</div>
|
|
1655
|
-
</div>
|
|
1656
1658
|
`,
|
|
1657
1659
|
animations: [],
|
|
1658
1660
|
encapsulation: ViewEncapsulation.None
|
|
@@ -5789,6 +5791,7 @@ InputTextComponent.decorators = [
|
|
|
5789
5791
|
[required]="required"
|
|
5790
5792
|
(ngModelChange)="modelChange.emit($event)"
|
|
5791
5793
|
(keydown)="digitsOnly ? excludeNonDigitChars($event) : true"
|
|
5794
|
+
(keyup)="keyUp.emit($event)"
|
|
5792
5795
|
>
|
|
5793
5796
|
<ng-container *ngIf="useContent">
|
|
5794
5797
|
<div class="input-content-wrapper">
|
|
@@ -5898,7 +5901,7 @@ AppendPipeModule.decorators = [
|
|
|
5898
5901
|
];
|
|
5899
5902
|
|
|
5900
5903
|
// The localization service, providing peers with text translation functionality.
|
|
5901
|
-
class
|
|
5904
|
+
class CoreDictionaryService {
|
|
5902
5905
|
constructor() {
|
|
5903
5906
|
// Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
|
|
5904
5907
|
this._placeholder = "|~";
|
|
@@ -5921,7 +5924,7 @@ class DictionaryService {
|
|
|
5921
5924
|
return text;
|
|
5922
5925
|
}
|
|
5923
5926
|
}
|
|
5924
|
-
|
|
5927
|
+
CoreDictionaryService.decorators = [
|
|
5925
5928
|
{ type: Injectable }
|
|
5926
5929
|
];
|
|
5927
5930
|
|
|
@@ -5937,10 +5940,10 @@ CoreComponentsTranslationService.decorators = [
|
|
|
5937
5940
|
{ type: Injectable }
|
|
5938
5941
|
];
|
|
5939
5942
|
CoreComponentsTranslationService.ctorParameters = () => [
|
|
5940
|
-
{ type:
|
|
5943
|
+
{ type: CoreDictionaryService }
|
|
5941
5944
|
];
|
|
5942
5945
|
|
|
5943
|
-
class
|
|
5946
|
+
class CoreLocalizePipe {
|
|
5944
5947
|
constructor(_dictionaryService) {
|
|
5945
5948
|
this._dictionaryService = _dictionaryService;
|
|
5946
5949
|
}
|
|
@@ -5955,13 +5958,13 @@ class LocalizePipe {
|
|
|
5955
5958
|
return this._dictionaryService.get(value, upperCaseFirst, ...replace);
|
|
5956
5959
|
}
|
|
5957
5960
|
}
|
|
5958
|
-
|
|
5961
|
+
CoreLocalizePipe.decorators = [
|
|
5959
5962
|
{ type: Pipe, args: [{
|
|
5960
|
-
name: "
|
|
5963
|
+
name: "coreLocalize"
|
|
5961
5964
|
},] }
|
|
5962
5965
|
];
|
|
5963
|
-
|
|
5964
|
-
{ type:
|
|
5966
|
+
CoreLocalizePipe.ctorParameters = () => [
|
|
5967
|
+
{ type: CoreDictionaryService }
|
|
5965
5968
|
];
|
|
5966
5969
|
|
|
5967
5970
|
class CoreComponentsTranslationModule {
|
|
@@ -5977,14 +5980,14 @@ class CoreComponentsTranslationModule {
|
|
|
5977
5980
|
CoreComponentsTranslationModule.decorators = [
|
|
5978
5981
|
{ type: NgModule, args: [{
|
|
5979
5982
|
declarations: [
|
|
5980
|
-
|
|
5983
|
+
CoreLocalizePipe
|
|
5981
5984
|
],
|
|
5982
5985
|
providers: [
|
|
5983
5986
|
CoreComponentsTranslationService,
|
|
5984
|
-
|
|
5987
|
+
CoreDictionaryService
|
|
5985
5988
|
],
|
|
5986
5989
|
exports: [
|
|
5987
|
-
|
|
5990
|
+
CoreLocalizePipe
|
|
5988
5991
|
]
|
|
5989
5992
|
},] }
|
|
5990
5993
|
];
|
|
@@ -7630,6 +7633,7 @@ InputSearchComponent.decorators = [
|
|
|
7630
7633
|
(modelChange)="modelChange.emit($event)"
|
|
7631
7634
|
(leftIconClick)="leftIconClick.emit($event)"
|
|
7632
7635
|
(rightIconClick)="rightIconClick.emit($event)"
|
|
7636
|
+
(keyup)="keyUp.emit($event)"
|
|
7633
7637
|
></co-input-text>
|
|
7634
7638
|
`,
|
|
7635
7639
|
providers: [
|
|
@@ -9241,6 +9245,9 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9241
9245
|
this.validateAndSave();
|
|
9242
9246
|
}
|
|
9243
9247
|
}
|
|
9248
|
+
handleClickOutsideRow() {
|
|
9249
|
+
this.validateAndSave();
|
|
9250
|
+
}
|
|
9244
9251
|
isRowDisabled(row) {
|
|
9245
9252
|
if (this.rowDisabledFn && (typeof this.rowDisabledFn === 'function')) {
|
|
9246
9253
|
return this.rowDisabledFn.call(this, row);
|
|
@@ -9257,25 +9264,25 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9257
9264
|
return !!singleColumn;
|
|
9258
9265
|
}
|
|
9259
9266
|
addNewRow() {
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
this.editRowIndex = this.data.length - 1;
|
|
9267
|
-
this._nextAvailableCellToEdit(true).then((index) => {
|
|
9268
|
-
this.editCellIndex = index;
|
|
9267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9268
|
+
if (this.inlineEdit) {
|
|
9269
|
+
const valid = this.validateAndSave();
|
|
9270
|
+
// this._detectChanges();
|
|
9271
|
+
if (valid) {
|
|
9272
|
+
this.data.push({});
|
|
9269
9273
|
this._detectChanges();
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
+
this._newRow = true;
|
|
9275
|
+
this.editing = true;
|
|
9276
|
+
this.editRowIndex = this.data.length - 1;
|
|
9277
|
+
this.rowToEdit = this.data[this.editRowIndex];
|
|
9278
|
+
this.editCellIndex = yield this._nextAvailableCellToEdit(true);
|
|
9279
|
+
this._detectChanges();
|
|
9280
|
+
}
|
|
9274
9281
|
}
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
}
|
|
9282
|
+
else {
|
|
9283
|
+
this.addRow.next();
|
|
9284
|
+
}
|
|
9285
|
+
});
|
|
9279
9286
|
}
|
|
9280
9287
|
validateAndSave(stopediting = true) {
|
|
9281
9288
|
if (!this.editing) {
|
|
@@ -9299,8 +9306,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9299
9306
|
else {
|
|
9300
9307
|
this.data[this.editRowIndex] = this.rowToEdit;
|
|
9301
9308
|
}
|
|
9302
|
-
this.
|
|
9303
|
-
this.editing = false;
|
|
9309
|
+
this._resetEdit();
|
|
9304
9310
|
this._detectChanges();
|
|
9305
9311
|
}
|
|
9306
9312
|
removeRow() {
|
|
@@ -9319,7 +9325,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9319
9325
|
}, 200);
|
|
9320
9326
|
}
|
|
9321
9327
|
selectTheRow(index, emit = true) {
|
|
9322
|
-
if (this.selectedRowIndex !== index && ((this.editing && this.validateAndSave()) || !this.editing)) {
|
|
9328
|
+
if (this.selectedRowIndex === -1 || (this.selectedRowIndex !== index && ((this.editing && this.validateAndSave()) || !this.editing))) {
|
|
9323
9329
|
this.selectedRowIndex = index;
|
|
9324
9330
|
}
|
|
9325
9331
|
if (emit) {
|
|
@@ -9340,17 +9346,29 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9340
9346
|
}
|
|
9341
9347
|
this._resetDblClick();
|
|
9342
9348
|
}
|
|
9343
|
-
editRow(event) {
|
|
9349
|
+
editRow(event, selectCell = true) {
|
|
9344
9350
|
this.editRowIndex = this.selectedRowIndex;
|
|
9345
9351
|
this.rowToEdit = this.data[this.editRowIndex];
|
|
9346
9352
|
this.editing = true;
|
|
9347
|
-
|
|
9348
|
-
this.
|
|
9349
|
-
|
|
9353
|
+
if (selectCell) {
|
|
9354
|
+
this._nextAvailableCellToEdit(true).then((index) => {
|
|
9355
|
+
this.editCellIndex = index;
|
|
9356
|
+
});
|
|
9357
|
+
}
|
|
9350
9358
|
this._detectChanges();
|
|
9351
9359
|
}
|
|
9352
|
-
handleCellClick(
|
|
9353
|
-
this.
|
|
9360
|
+
handleCellClick(event, row, rowIndex, cellIndex) {
|
|
9361
|
+
if (this.isRowDisabled(row)) {
|
|
9362
|
+
this.selectedRowIndex = -1;
|
|
9363
|
+
return;
|
|
9364
|
+
}
|
|
9365
|
+
this.selectTheRow(rowIndex, false);
|
|
9366
|
+
if (this.inlineEdit) {
|
|
9367
|
+
this.editRowIndex = rowIndex;
|
|
9368
|
+
this.editCellIndex = cellIndex;
|
|
9369
|
+
this.editing = true;
|
|
9370
|
+
this.editRow(event, false);
|
|
9371
|
+
}
|
|
9354
9372
|
this._detectChanges();
|
|
9355
9373
|
}
|
|
9356
9374
|
_resetDblClick() {
|
|
@@ -9466,10 +9484,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9466
9484
|
}
|
|
9467
9485
|
this._newRow = false;
|
|
9468
9486
|
if (stopediting) {
|
|
9469
|
-
this.
|
|
9470
|
-
this.editCellIndex = -1;
|
|
9471
|
-
this.editing = false;
|
|
9472
|
-
this.rowToEdit = undefined;
|
|
9487
|
+
this._resetEdit();
|
|
9473
9488
|
}
|
|
9474
9489
|
this._detectChanges();
|
|
9475
9490
|
}
|
|
@@ -9485,6 +9500,14 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9485
9500
|
_detectChanges() {
|
|
9486
9501
|
this._changeDetection.detectChanges();
|
|
9487
9502
|
}
|
|
9503
|
+
_resetEdit() {
|
|
9504
|
+
this._newRow = false;
|
|
9505
|
+
this.selectedRowIndex = -1;
|
|
9506
|
+
this.editRowIndex = -1;
|
|
9507
|
+
this.editCellIndex = -1;
|
|
9508
|
+
this.editing = false;
|
|
9509
|
+
this.rowToEdit = undefined;
|
|
9510
|
+
}
|
|
9488
9511
|
}
|
|
9489
9512
|
SimpleGridComponent.decorators = [
|
|
9490
9513
|
{ type: Component, args: [{
|
|
@@ -9501,7 +9524,7 @@ SimpleGridComponent.decorators = [
|
|
|
9501
9524
|
(cancelClick)="cancelEditRow()"
|
|
9502
9525
|
(deleteClick)="removeRow()"
|
|
9503
9526
|
></co-grid-toolbar>
|
|
9504
|
-
<table class="simple-grid-table">
|
|
9527
|
+
<table class="simple-grid-table" [clickOutside]="editing" (clickOutside)="handleClickOutsideRow()">
|
|
9505
9528
|
<colgroup>
|
|
9506
9529
|
<col *ngFor="let column of headerColumns; let index = index"
|
|
9507
9530
|
[class.simple-grid-column-auto-fit]="column.autoFit"
|
|
@@ -9530,7 +9553,7 @@ SimpleGridComponent.decorators = [
|
|
|
9530
9553
|
</thead>
|
|
9531
9554
|
<tbody #dropList cdkDropList cdkDropListOrientation="vertical"
|
|
9532
9555
|
class="simple-grid-drag-drop-list"
|
|
9533
|
-
[cdkDropListDisabled]="!dragDropEnabled"
|
|
9556
|
+
[cdkDropListDisabled]="!dragDropEnabled || editing"
|
|
9534
9557
|
[cdkDropListData]="data"
|
|
9535
9558
|
[cdkDropListEnterPredicate]="handleCanDragDrop"
|
|
9536
9559
|
(cdkDropListDropped)="handleDrop($event)">
|
|
@@ -9555,8 +9578,8 @@ SimpleGridComponent.decorators = [
|
|
|
9555
9578
|
[column]="column"
|
|
9556
9579
|
[row]="row"
|
|
9557
9580
|
[editMode]="inlineEdit && editing && rowIndex === editRowIndex"
|
|
9558
|
-
[fieldEditMode]="editCellIndex === columnIndex"
|
|
9559
|
-
(cellClick)="handleCellClick(columnIndex)"
|
|
9581
|
+
[fieldEditMode]="editCellIndex === columnIndex && rowIndex === editRowIndex"
|
|
9582
|
+
(cellClick)="handleCellClick($event, row, rowIndex, columnIndex)"
|
|
9560
9583
|
></co-simple-grid-cell>
|
|
9561
9584
|
<div *ngIf="column.resizable" class="simple-grid-column-sizer-placeholder"></div>
|
|
9562
9585
|
</td>
|
|
@@ -10097,11 +10120,17 @@ class SimpleGridCellComponent {
|
|
|
10097
10120
|
constructor(_changeDetector) {
|
|
10098
10121
|
this._changeDetector = _changeDetector;
|
|
10099
10122
|
this.defaultTextAlign = ColumnAlign.Left;
|
|
10100
|
-
this.
|
|
10123
|
+
this._editMode = false;
|
|
10101
10124
|
this.cellClick = new EventEmitter();
|
|
10102
10125
|
this._fieldEditMode = false;
|
|
10103
10126
|
this._focused = false;
|
|
10104
10127
|
}
|
|
10128
|
+
get editMode() {
|
|
10129
|
+
return this._editMode;
|
|
10130
|
+
}
|
|
10131
|
+
set editMode(value) {
|
|
10132
|
+
this._editMode = value;
|
|
10133
|
+
}
|
|
10105
10134
|
set editTemplateContent(template) {
|
|
10106
10135
|
if (template) {
|
|
10107
10136
|
this._editTemplate = template;
|
|
@@ -10136,7 +10165,7 @@ class SimpleGridCellComponent {
|
|
|
10136
10165
|
}
|
|
10137
10166
|
}
|
|
10138
10167
|
_setFocusComponent() {
|
|
10139
|
-
if (this.
|
|
10168
|
+
if (this._editMode && this.fieldEditMode) {
|
|
10140
10169
|
const element = this._getElement();
|
|
10141
10170
|
if (element) {
|
|
10142
10171
|
const focusEvent = this._createNewEvent(element, 'focus');
|
|
@@ -10207,31 +10236,35 @@ SimpleGridCellComponent.decorators = [
|
|
|
10207
10236
|
{ type: Component, args: [{
|
|
10208
10237
|
selector: "co-simple-grid-cell",
|
|
10209
10238
|
template: `
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10239
|
+
<div class="simple-grid-column-cell-value" [ngClass]="column.textAlign ? column.textAlign : defaultTextAlign">
|
|
10240
|
+
<ng-container *ngIf="editMode; else noInlineEdit">
|
|
10241
|
+
<div class="simple-grid-column-cell-field">
|
|
10242
|
+
<ng-container #editTemplate *ngIf="column.editTemplate; else noEditTemplate"
|
|
10243
|
+
[ngTemplateOutlet]="column.editTemplate"
|
|
10244
|
+
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
10245
|
+
<ng-template #noEditTemplate>
|
|
10246
|
+
<ng-container *ngIf="column.template; else noTemplate">
|
|
10247
|
+
<ng-container [ngTemplateOutlet]="column.template"
|
|
10248
|
+
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
10249
|
+
</ng-container>
|
|
10250
|
+
<ng-template #noTemplate>
|
|
10251
|
+
<co-input-text [(model)]="row[column.field]" [required]="column.required"></co-input-text>
|
|
10252
|
+
</ng-template>
|
|
10253
|
+
</ng-template>
|
|
10254
|
+
</div>
|
|
10219
10255
|
</ng-container>
|
|
10220
|
-
<ng-template #
|
|
10221
|
-
|
|
10256
|
+
<ng-template #noInlineEdit>
|
|
10257
|
+
<div class="simple-grid-column-cell-field">
|
|
10258
|
+
<ng-container *ngIf="column.template; else noTemplate">
|
|
10259
|
+
<ng-container [ngTemplateOutlet]="column.template"
|
|
10260
|
+
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
10261
|
+
</ng-container>
|
|
10262
|
+
<ng-template #noTemplate>
|
|
10263
|
+
<span [textContent]="column.getFieldValue(row[column.field])"></span>
|
|
10264
|
+
</ng-template>
|
|
10265
|
+
</div>
|
|
10222
10266
|
</ng-template>
|
|
10223
|
-
|
|
10224
|
-
</ng-container>
|
|
10225
|
-
<ng-template #noInlineEdit>
|
|
10226
|
-
<ng-container *ngIf="column.template; else noTemplate">
|
|
10227
|
-
<ng-container [ngTemplateOutlet]="column.template"
|
|
10228
|
-
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
10229
|
-
</ng-container>
|
|
10230
|
-
<ng-template #noTemplate>
|
|
10231
|
-
<span [textContent]="column.getFieldValue(row[column.field])"></span>
|
|
10232
|
-
</ng-template>
|
|
10233
|
-
</ng-template>
|
|
10234
|
-
</div>
|
|
10267
|
+
</div>
|
|
10235
10268
|
`,
|
|
10236
10269
|
encapsulation: ViewEncapsulation.None
|
|
10237
10270
|
},] }
|
|
@@ -10240,12 +10273,12 @@ SimpleGridCellComponent.ctorParameters = () => [
|
|
|
10240
10273
|
{ type: ChangeDetectorRef }
|
|
10241
10274
|
];
|
|
10242
10275
|
SimpleGridCellComponent.propDecorators = {
|
|
10276
|
+
editMode: [{ type: Input }],
|
|
10243
10277
|
editTemplateContent: [{ type: ViewChild, args: ["editTemplate", { read: BaseInputComponent },] }],
|
|
10244
10278
|
noEditTemplateContent: [{ type: ViewChild, args: ["noEditTemplate",] }],
|
|
10245
10279
|
noTemplateContent: [{ type: ViewChild, args: ["noTemplate",] }],
|
|
10246
10280
|
column: [{ type: Input }],
|
|
10247
10281
|
row: [{ type: Input }],
|
|
10248
|
-
editMode: [{ type: Input }],
|
|
10249
10282
|
fieldEditMode: [{ type: Input }],
|
|
10250
10283
|
cellClick: [{ type: Output }],
|
|
10251
10284
|
showClass: [{ type: HostBinding, args: ["class.co-simple-grid-cell",] }],
|
|
@@ -10329,7 +10362,8 @@ SimpleGridModule.decorators = [
|
|
|
10329
10362
|
FormModule,
|
|
10330
10363
|
ObserveVisibilityModule,
|
|
10331
10364
|
PaginationModule,
|
|
10332
|
-
PaginationBarModule
|
|
10365
|
+
PaginationBarModule,
|
|
10366
|
+
ClickoutsideModule
|
|
10333
10367
|
],
|
|
10334
10368
|
declarations: [
|
|
10335
10369
|
SimpleGridComponent,
|
|
@@ -11121,80 +11155,284 @@ ColorPickerModule.decorators = [
|
|
|
11121
11155
|
},] }
|
|
11122
11156
|
];
|
|
11123
11157
|
|
|
11124
|
-
class
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11158
|
+
class CoreDynamicComponentService {
|
|
11159
|
+
constructor(_compFactoryResolver, appRef, injector) {
|
|
11160
|
+
this._compFactoryResolver = _compFactoryResolver;
|
|
11161
|
+
this.appRef = appRef;
|
|
11162
|
+
this.injector = injector;
|
|
11163
|
+
this._componentRefs = [];
|
|
11164
|
+
}
|
|
11165
|
+
getComponentRefs() {
|
|
11166
|
+
return this._componentRefs;
|
|
11167
|
+
}
|
|
11168
|
+
createAndReturnComponentRef(componentClass, inputs) {
|
|
11169
|
+
return new Promise((resolve) => {
|
|
11170
|
+
const componentRef = this._compFactoryResolver
|
|
11171
|
+
.resolveComponentFactory(componentClass)
|
|
11172
|
+
.create(this.injector);
|
|
11173
|
+
if (inputs) {
|
|
11174
|
+
for (let property in inputs) {
|
|
11175
|
+
if (inputs.hasOwnProperty(property)) {
|
|
11176
|
+
componentRef.instance[property] = inputs[property];
|
|
11177
|
+
}
|
|
11178
|
+
}
|
|
11179
|
+
}
|
|
11180
|
+
this.appRef.attachView(componentRef.hostView);
|
|
11181
|
+
const domElem = componentRef.hostView
|
|
11182
|
+
.rootNodes[0];
|
|
11183
|
+
document.body.appendChild(domElem);
|
|
11184
|
+
componentRef.onDestroy(() => {
|
|
11185
|
+
this.appRef.detachView(componentRef.hostView);
|
|
11186
|
+
});
|
|
11187
|
+
resolve(componentRef);
|
|
11188
|
+
});
|
|
11189
|
+
}
|
|
11190
|
+
createComponent(componentClass, inputs, outputs, providers) {
|
|
11191
|
+
return new Promise((resolve) => {
|
|
11192
|
+
if (providers) {
|
|
11193
|
+
Injector.create(providers, this.injector);
|
|
11194
|
+
}
|
|
11195
|
+
const componentRef = this._compFactoryResolver
|
|
11196
|
+
.resolveComponentFactory(componentClass)
|
|
11197
|
+
.create(this.injector);
|
|
11198
|
+
this._componentRefs.push(componentRef);
|
|
11199
|
+
if (inputs) {
|
|
11200
|
+
for (let property in inputs) {
|
|
11201
|
+
if (inputs.hasOwnProperty(property)) {
|
|
11202
|
+
componentRef.instance[property] = inputs[property];
|
|
11203
|
+
}
|
|
11204
|
+
}
|
|
11205
|
+
}
|
|
11206
|
+
if (outputs) {
|
|
11207
|
+
for (let event in outputs) {
|
|
11208
|
+
if (outputs.hasOwnProperty(event)) {
|
|
11209
|
+
componentRef.instance[event].subscribe(() => outputs[event]());
|
|
11210
|
+
}
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11213
|
+
this.appRef.attachView(componentRef.hostView);
|
|
11214
|
+
const domElem = componentRef.hostView
|
|
11215
|
+
.rootNodes[0];
|
|
11216
|
+
document.body.appendChild(domElem);
|
|
11217
|
+
componentRef.onDestroy(() => {
|
|
11218
|
+
this.appRef.detachView(componentRef.hostView);
|
|
11219
|
+
});
|
|
11220
|
+
componentRef.instance.onClose = (button, output, rememberChoice) => {
|
|
11221
|
+
const idx = this._componentRefs.indexOf(componentRef);
|
|
11222
|
+
this.appRef.detachView(componentRef.hostView);
|
|
11223
|
+
this._componentRefs[idx] = undefined;
|
|
11224
|
+
this._componentRefs.splice(idx, 1);
|
|
11225
|
+
if (outputs) {
|
|
11226
|
+
for (let event in outputs) {
|
|
11227
|
+
if (outputs.hasOwnProperty(event)) {
|
|
11228
|
+
componentRef.instance[event].unsubscribe();
|
|
11229
|
+
}
|
|
11230
|
+
}
|
|
11231
|
+
}
|
|
11232
|
+
resolve({ button: button, output: output ? output : undefined, rememberChoice: rememberChoice });
|
|
11233
|
+
};
|
|
11234
|
+
});
|
|
11130
11235
|
}
|
|
11131
11236
|
}
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11237
|
+
CoreDynamicComponentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CoreDynamicComponentService_Factory() { return new CoreDynamicComponentService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR)); }, token: CoreDynamicComponentService, providedIn: "root" });
|
|
11238
|
+
CoreDynamicComponentService.decorators = [
|
|
11239
|
+
{ type: Injectable, args: [{
|
|
11240
|
+
providedIn: "root"
|
|
11136
11241
|
},] }
|
|
11242
|
+
];
|
|
11243
|
+
CoreDynamicComponentService.ctorParameters = () => [
|
|
11244
|
+
{ type: ComponentFactoryResolver },
|
|
11245
|
+
{ type: ApplicationRef },
|
|
11246
|
+
{ type: Injector }
|
|
11137
11247
|
];
|
|
11138
11248
|
|
|
11139
|
-
|
|
11249
|
+
var AppPopupType;
|
|
11250
|
+
(function (AppPopupType) {
|
|
11251
|
+
AppPopupType[AppPopupType["Error"] = 0] = "Error";
|
|
11252
|
+
AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
|
|
11253
|
+
AppPopupType[AppPopupType["Information"] = 2] = "Information";
|
|
11254
|
+
AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
|
|
11255
|
+
})(AppPopupType || (AppPopupType = {}));
|
|
11256
|
+
|
|
11257
|
+
var AppPopupButtonType;
|
|
11258
|
+
(function (AppPopupButtonType) {
|
|
11259
|
+
AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
|
|
11260
|
+
AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
|
|
11261
|
+
AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
|
|
11262
|
+
AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
|
|
11263
|
+
AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
|
|
11264
|
+
AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
|
|
11265
|
+
AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
|
|
11266
|
+
})(AppPopupButtonType || (AppPopupButtonType = {}));
|
|
11267
|
+
|
|
11268
|
+
class DialogBaseComponent {
|
|
11269
|
+
onClose(eventType, output, rememberChoice) {
|
|
11270
|
+
return;
|
|
11271
|
+
}
|
|
11272
|
+
}
|
|
11273
|
+
|
|
11274
|
+
class ConfirmationDialogComponent extends DialogBaseComponent {
|
|
11275
|
+
constructor(iconCacheService) {
|
|
11276
|
+
super();
|
|
11277
|
+
this.iconCacheService = iconCacheService;
|
|
11278
|
+
this.icons = CoreComponentsIcon;
|
|
11279
|
+
this.ptype = AppPopupType;
|
|
11280
|
+
this.showRememberCheckbox = false;
|
|
11281
|
+
this.rememberChoice = false;
|
|
11282
|
+
}
|
|
11283
|
+
showClass() {
|
|
11284
|
+
return true;
|
|
11285
|
+
}
|
|
11286
|
+
handleYesClick(event) {
|
|
11287
|
+
this.onClose(AppPopupButtonType.Yes, undefined, this.rememberChoice);
|
|
11288
|
+
}
|
|
11289
|
+
handleNoClick(event) {
|
|
11290
|
+
this.onClose(AppPopupButtonType.No, undefined, this.rememberChoice);
|
|
11291
|
+
}
|
|
11292
|
+
handleOkClick(event) {
|
|
11293
|
+
this.onClose(AppPopupButtonType.Ok, undefined, this.rememberChoice);
|
|
11294
|
+
}
|
|
11140
11295
|
}
|
|
11141
|
-
|
|
11142
|
-
{ type:
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11147
|
-
|
|
11148
|
-
|
|
11296
|
+
ConfirmationDialogComponent.decorators = [
|
|
11297
|
+
{ type: Component, args: [{
|
|
11298
|
+
selector: "co-confirmation-dialog",
|
|
11299
|
+
template: `
|
|
11300
|
+
<co-dialog [showCloseIcon]="false" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
|
|
11301
|
+
<div class="confirmation-dialog-wrapper">
|
|
11302
|
+
<div class="text" [innerHTML]="text"></div>
|
|
11303
|
+
<co-collapsible [headerTitle]="'DETAILS' | coreLocalize" [iconData]="iconCacheService.getIcon(icons.TriangleDown)" *ngIf="details">
|
|
11304
|
+
<div class="dialog-details" [innerHTML]="details"></div>
|
|
11305
|
+
</co-collapsible>
|
|
11306
|
+
</div>
|
|
11307
|
+
</co-dialog>
|
|
11308
|
+
<ng-template #headerTemplate>
|
|
11309
|
+
<div class="co-dialog-header-title" [textContent]="title"></div>
|
|
11310
|
+
</ng-template>
|
|
11311
|
+
<ng-template #footerTemplate>
|
|
11312
|
+
<div class="co-dialog-footer-button-wrapper">
|
|
11313
|
+
<ng-container *ngIf="type === ptype.Confirmation">
|
|
11314
|
+
<co-button class="save-button"
|
|
11315
|
+
[label]="'YES' | coreLocalize"
|
|
11316
|
+
(click)="handleYesClick($event)"></co-button>
|
|
11317
|
+
<co-button class="close-button"
|
|
11318
|
+
[label]="'NO' | coreLocalize"
|
|
11319
|
+
(click)="handleNoClick($event)"></co-button>
|
|
11320
|
+
</ng-container>
|
|
11321
|
+
<ng-container *ngIf="type === ptype.Information || type === ptype.Error || type === ptype.Warning">
|
|
11322
|
+
<co-button class="save-button"
|
|
11323
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
11324
|
+
(click)="handleYesClick($event)"></co-button>
|
|
11325
|
+
</ng-container>
|
|
11326
|
+
</div>
|
|
11327
|
+
<ng-container *ngIf="showRememberCheckbox">
|
|
11328
|
+
<co-input-checkbox [label]="'REMEMBER_CHOICE' | coreLocalize" [(model)]="rememberChoice"></co-input-checkbox>
|
|
11329
|
+
</ng-container>
|
|
11330
|
+
</ng-template>
|
|
11331
|
+
`,
|
|
11332
|
+
encapsulation: ViewEncapsulation.None
|
|
11149
11333
|
},] }
|
|
11150
|
-
];
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
}
|
|
11161
|
-
}
|
|
11334
|
+
];
|
|
11335
|
+
ConfirmationDialogComponent.ctorParameters = () => [
|
|
11336
|
+
{ type: IconCacheService }
|
|
11337
|
+
];
|
|
11338
|
+
ConfirmationDialogComponent.propDecorators = {
|
|
11339
|
+
title: [{ type: Input }],
|
|
11340
|
+
text: [{ type: Input }],
|
|
11341
|
+
details: [{ type: Input }],
|
|
11342
|
+
type: [{ type: Input }],
|
|
11343
|
+
showRememberCheckbox: [{ type: Input }],
|
|
11344
|
+
showClass: [{ type: HostBinding, args: ["class.co-confirmation-dialog",] }]
|
|
11345
|
+
};
|
|
11162
11346
|
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11347
|
+
class CoreDialogService {
|
|
11348
|
+
constructor(_compFactoryResolver, appRef, injector, dynamicComponentService) {
|
|
11349
|
+
this._compFactoryResolver = _compFactoryResolver;
|
|
11350
|
+
this.appRef = appRef;
|
|
11351
|
+
this.injector = injector;
|
|
11352
|
+
this.dynamicComponentService = dynamicComponentService;
|
|
11353
|
+
this._componentRefs = [];
|
|
11354
|
+
}
|
|
11355
|
+
showYesNo(title, text, showRememberChoice = false) {
|
|
11356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11357
|
+
const data = {
|
|
11358
|
+
title: title,
|
|
11359
|
+
text: text,
|
|
11360
|
+
type: AppPopupType.Confirmation,
|
|
11361
|
+
showRememberCheckbox: showRememberChoice
|
|
11362
|
+
};
|
|
11363
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
11364
|
+
});
|
|
11365
|
+
}
|
|
11366
|
+
showError(message, details) {
|
|
11367
|
+
const data = {
|
|
11368
|
+
title: 'ERROR',
|
|
11369
|
+
text: message,
|
|
11370
|
+
type: AppPopupType.Error
|
|
11371
|
+
};
|
|
11372
|
+
if (details) {
|
|
11373
|
+
data.details = details;
|
|
11171
11374
|
}
|
|
11172
|
-
|
|
11173
|
-
}
|
|
11174
|
-
// @returns undefined if valid, or an error string if there's an error
|
|
11175
|
-
function getValidatePasswordErrorString(password, username) {
|
|
11176
|
-
const minimumPasswordLength = 10;
|
|
11177
|
-
const lengthOk = password && minimumPasswordLength <= password.length;
|
|
11178
|
-
if (!lengthOk) {
|
|
11179
|
-
return "PASSWORD_MUST_BE_10_CHARACTERS";
|
|
11375
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
11180
11376
|
}
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11377
|
+
showInformation(message) {
|
|
11378
|
+
const data = {
|
|
11379
|
+
title: 'INFORMATION',
|
|
11380
|
+
text: message,
|
|
11381
|
+
type: AppPopupType.Information
|
|
11382
|
+
};
|
|
11383
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
11186
11384
|
}
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11385
|
+
showWarning(message) {
|
|
11386
|
+
const data = {
|
|
11387
|
+
title: 'WARNING',
|
|
11388
|
+
text: message,
|
|
11389
|
+
type: AppPopupType.Warning
|
|
11390
|
+
};
|
|
11391
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
11190
11392
|
}
|
|
11191
|
-
}
|
|
11393
|
+
}
|
|
11394
|
+
CoreDialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CoreDialogService_Factory() { return new CoreDialogService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(CoreDynamicComponentService)); }, token: CoreDialogService, providedIn: "root" });
|
|
11395
|
+
CoreDialogService.decorators = [
|
|
11396
|
+
{ type: Injectable, args: [{
|
|
11397
|
+
providedIn: "root"
|
|
11398
|
+
},] }
|
|
11399
|
+
];
|
|
11400
|
+
CoreDialogService.ctorParameters = () => [
|
|
11401
|
+
{ type: ComponentFactoryResolver },
|
|
11402
|
+
{ type: ApplicationRef },
|
|
11403
|
+
{ type: Injector },
|
|
11404
|
+
{ type: CoreDynamicComponentService }
|
|
11405
|
+
];
|
|
11192
11406
|
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11407
|
+
class CoreDialogModule {
|
|
11408
|
+
static forRoot() {
|
|
11409
|
+
return {
|
|
11410
|
+
ngModule: CoreDialogModule,
|
|
11411
|
+
providers: [
|
|
11412
|
+
CoreDialogService
|
|
11413
|
+
]
|
|
11414
|
+
};
|
|
11415
|
+
}
|
|
11416
|
+
}
|
|
11417
|
+
CoreDialogModule.decorators = [
|
|
11418
|
+
{ type: NgModule, args: [{
|
|
11419
|
+
imports: [
|
|
11420
|
+
CommonModule,
|
|
11421
|
+
CoDialogModule,
|
|
11422
|
+
CollapsibleModule,
|
|
11423
|
+
CoreComponentsTranslationModule,
|
|
11424
|
+
ButtonModule,
|
|
11425
|
+
InputCheckboxModule
|
|
11426
|
+
],
|
|
11427
|
+
declarations: [
|
|
11428
|
+
ConfirmationDialogComponent
|
|
11429
|
+
],
|
|
11430
|
+
providers: [
|
|
11431
|
+
CoreDialogService
|
|
11432
|
+
],
|
|
11433
|
+
exports: []
|
|
11434
|
+
},] }
|
|
11435
|
+
];
|
|
11198
11436
|
|
|
11199
11437
|
class FilterItemComponent {
|
|
11200
11438
|
constructor(iconService, _changeDetector) {
|
|
@@ -11655,153 +11893,153 @@ FilterItemComponent.decorators = [
|
|
|
11655
11893
|
{ type: Component, args: [{
|
|
11656
11894
|
selector: "co-filter-item",
|
|
11657
11895
|
template: `
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
</div>
|
|
11673
|
-
<ng-template #collectionContent>
|
|
11674
|
-
<div class="co-filter-item-collection-content" *ngIf="mode === modes.Filterlist || mode === modes.SingleSelectList
|
|
11675
|
-
|| mode === modes.SelectListWithNumberOutput || mode === modes.SelectListWithStringCollectionOutput">
|
|
11676
|
-
<co-input-text
|
|
11677
|
-
*ngIf="collection?.length > 10 || minSearchCharsToLoadCollection"
|
|
11678
|
-
[placeholder]="searchPlaceholder"
|
|
11679
|
-
[model]="filterText"
|
|
11680
|
-
(modelChange)="applyFilter($event)"
|
|
11681
|
-
>
|
|
11682
|
-
</co-input-text>
|
|
11683
|
-
<div class="no-results" *ngIf="filteredCollection?.length === 0">
|
|
11684
|
-
<span [textContent]="noResultsLabel"></span>
|
|
11685
|
-
</div>
|
|
11686
|
-
<div class="co-filter-item-collection-results">
|
|
11687
|
-
<ng-container
|
|
11688
|
-
*ngFor="let option of filteredCollection; let index = index">
|
|
11689
|
-
<div class="co-filter-item-collection-result-item" *ngIf="index < limitTo || showAllResults">
|
|
11690
|
-
<co-input-checkbox *ngIf="mode !== modes.SingleSelectList"
|
|
11691
|
-
[label]="option.description"
|
|
11692
|
-
[model]="option.checked"
|
|
11693
|
-
[clickableLabel]="false"
|
|
11694
|
-
(modelChange)="handleModelChange(option)"
|
|
11695
|
-
></co-input-checkbox>
|
|
11696
|
-
<co-input-radio-button *ngIf="mode === modes.SingleSelectList"
|
|
11697
|
-
[label]="option.description"
|
|
11698
|
-
[model]="option.checked"
|
|
11699
|
-
(modelChange)="handleModelChange(option)"
|
|
11700
|
-
></co-input-radio-button>
|
|
11701
|
-
<div class="co-filter-item-amount" *ngIf="option.count"
|
|
11702
|
-
[textContent]="option.count.toString() | append: ')' | prepend: ' ('"
|
|
11703
|
-
></div>
|
|
11896
|
+
<div class="co-filter-item-header">
|
|
11897
|
+
<co-collapsible
|
|
11898
|
+
[headerTitle]="placeholder"
|
|
11899
|
+
[expandButtonLast]="true"
|
|
11900
|
+
[iconData]="iconService.getIcon(icons.ArrowPointDown)"
|
|
11901
|
+
[expanded]="expanded"
|
|
11902
|
+
[showButton]="showButton"
|
|
11903
|
+
[buttonText]="filterButtonLabel"
|
|
11904
|
+
(buttonClicked)="onButtonClicked()"
|
|
11905
|
+
>
|
|
11906
|
+
<div class="co-filter-item-collapsable-content">
|
|
11907
|
+
<div class="co-filter-item-custom-content" *ngIf="customContent; else collectionContent"
|
|
11908
|
+
(keydown)="showButton=true" (mousedown)="showButton=true">
|
|
11909
|
+
<ng-content></ng-content>
|
|
11704
11910
|
</div>
|
|
11911
|
+
<ng-template #collectionContent>
|
|
11912
|
+
<div class="co-filter-item-collection-content" *ngIf="mode === modes.Filterlist || mode === modes.SingleSelectList
|
|
11913
|
+
|| mode === modes.SelectListWithNumberOutput || mode === modes.SelectListWithStringCollectionOutput">
|
|
11914
|
+
<co-input-text
|
|
11915
|
+
*ngIf="collection?.length > 10 || minSearchCharsToLoadCollection"
|
|
11916
|
+
[placeholder]="searchPlaceholder"
|
|
11917
|
+
[model]="filterText"
|
|
11918
|
+
(modelChange)="applyFilter($event)"
|
|
11919
|
+
>
|
|
11920
|
+
</co-input-text>
|
|
11921
|
+
<div class="no-results" *ngIf="filteredCollection?.length === 0">
|
|
11922
|
+
<span [textContent]="noResultsLabel"></span>
|
|
11923
|
+
</div>
|
|
11924
|
+
<div class="co-filter-item-collection-results">
|
|
11925
|
+
<ng-container
|
|
11926
|
+
*ngFor="let option of filteredCollection; let index = index">
|
|
11927
|
+
<div class="co-filter-item-collection-result-item" *ngIf="index < limitTo || showAllResults">
|
|
11928
|
+
<co-input-checkbox *ngIf="mode !== modes.SingleSelectList"
|
|
11929
|
+
[label]="option.description"
|
|
11930
|
+
[model]="option.checked"
|
|
11931
|
+
[clickableLabel]="false"
|
|
11932
|
+
(modelChange)="handleModelChange(option)"
|
|
11933
|
+
></co-input-checkbox>
|
|
11934
|
+
<co-input-radio-button *ngIf="mode === modes.SingleSelectList"
|
|
11935
|
+
[label]="option.description"
|
|
11936
|
+
[model]="option.checked"
|
|
11937
|
+
(modelChange)="handleModelChange(option)"
|
|
11938
|
+
></co-input-radio-button>
|
|
11939
|
+
<div class="co-filter-item-amount" *ngIf="option.count"
|
|
11940
|
+
[textContent]="option.count.toString() | append: ')' | prepend: ' ('"
|
|
11941
|
+
></div>
|
|
11942
|
+
</div>
|
|
11705
11943
|
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11944
|
+
</ng-container>
|
|
11945
|
+
</div>
|
|
11946
|
+
<div class="co-filter-show-more-or-less" *ngIf="!showAllResults">
|
|
11947
|
+
<div class="co-filter-show-more clickable"
|
|
11948
|
+
*ngIf="moreToShow()">
|
|
11949
|
+
<a (click)="increaseLimit()">
|
|
11950
|
+
<co-icon [iconData]="iconService.getIcon(icons.ArrowPointDown)"></co-icon>
|
|
11951
|
+
<span [textContent]="showMoreLabel"></span>
|
|
11952
|
+
</a>
|
|
11953
|
+
</div>
|
|
11954
|
+
<div class="co-filter-show-less clickable"
|
|
11955
|
+
*ngIf="lessToShow()">
|
|
11956
|
+
<a (click)="setToInitialLimit()">
|
|
11957
|
+
<co-icon [iconData]="iconService.getIcon(icons.ArrowPointUp)"></co-icon>
|
|
11958
|
+
<span [textContent]="showLessLabel"></span>
|
|
11959
|
+
</a>
|
|
11960
|
+
</div>
|
|
11961
|
+
</div>
|
|
11962
|
+
</div>
|
|
11963
|
+
<div class="co-filter-item-slider-content" *ngIf="mode === modes.Slider">
|
|
11964
|
+
<co-input-text
|
|
11965
|
+
class="slider-from"
|
|
11966
|
+
[type]="'number'"
|
|
11967
|
+
[digitsOnly]="true"
|
|
11968
|
+
[hideArrowButtons]="true"
|
|
11969
|
+
[excludePlusMinus]="true"
|
|
11970
|
+
[label]="'FROM' | coreLocalize"
|
|
11971
|
+
[(model)]="sliderMin"
|
|
11972
|
+
(focusout)="handleModelChange(sliderMin)"
|
|
11973
|
+
></co-input-text>
|
|
11974
|
+
<co-input-text
|
|
11975
|
+
class="slider-to"
|
|
11976
|
+
[type]="'number'"
|
|
11977
|
+
[digitsOnly]="true"
|
|
11978
|
+
[hideArrowButtons]="true"
|
|
11979
|
+
[excludePlusMinus]="true"
|
|
11980
|
+
[label]="'TO' | coreLocalize"
|
|
11981
|
+
[(model)]="sliderMax"
|
|
11982
|
+
(focusout)="handleModelChange(sliderMax)"
|
|
11983
|
+
></co-input-text>
|
|
11984
|
+
</div>
|
|
11985
|
+
<div class="co-filter-item-slider-content" *ngIf="mode === modes.NullableSlider">
|
|
11986
|
+
<co-input-text
|
|
11987
|
+
class="slider-from"
|
|
11988
|
+
[type]="'number'"
|
|
11989
|
+
[digitsOnly]="true"
|
|
11990
|
+
[hideArrowButtons]="true"
|
|
11991
|
+
[excludePlusMinus]="true"
|
|
11992
|
+
[label]="'FROM' | coreLocalize"
|
|
11993
|
+
[(model)]="sliderMin"
|
|
11994
|
+
(focusout)="handleModelChange(sliderMin)"
|
|
11995
|
+
></co-input-text>
|
|
11996
|
+
<co-input-text
|
|
11997
|
+
class="slider-to"
|
|
11998
|
+
[type]="'number'"
|
|
11999
|
+
[digitsOnly]="true"
|
|
12000
|
+
[hideArrowButtons]="true"
|
|
12001
|
+
[excludePlusMinus]="true"
|
|
12002
|
+
[label]="'TO' | coreLocalize"
|
|
12003
|
+
[(model)]="sliderMax"
|
|
12004
|
+
(focusout)="handleModelChange(sliderMax)"
|
|
12005
|
+
></co-input-text>
|
|
12006
|
+
</div>
|
|
12007
|
+
<div class="co-filter-item-checkbox-content" *ngIf="mode === modes.Checkbox ">
|
|
12008
|
+
<co-input-checkbox
|
|
12009
|
+
[(model)]="model"
|
|
12010
|
+
(modelChange)="handleModelChange($event)"
|
|
12011
|
+
[label]="placeholder">
|
|
12012
|
+
</co-input-checkbox>
|
|
12013
|
+
</div>
|
|
12014
|
+
<div class="co-filter-item-checkbox-content"
|
|
12015
|
+
*ngIf="mode === modes.CheckboxToText || mode === modes.CheckboxToSimpleText || mode === modes.CheckboxToBinary">
|
|
12016
|
+
<co-input-checkbox
|
|
12017
|
+
[(model)]="checkBoxToTextModel"
|
|
12018
|
+
(modelChange)="handleModelChange($event)"
|
|
12019
|
+
[label]="placeholder"></co-input-checkbox>
|
|
12020
|
+
</div>
|
|
12021
|
+
<div class="co-filter-item-textfield-content" *ngIf="mode === modes.TextField">
|
|
12022
|
+
<co-input-text
|
|
12023
|
+
[(model)]="model"
|
|
12024
|
+
(modelChange)="handleModelChange($event)"></co-input-text>
|
|
12025
|
+
</div>
|
|
12026
|
+
<div class="co-filter-item-dateField-content" *ngIf="mode === modes.DateField">
|
|
12027
|
+
<co-input-date
|
|
12028
|
+
[(model)]="model"
|
|
12029
|
+
(modelChange)="handleModelChange($event)"
|
|
12030
|
+
></co-input-date>
|
|
12031
|
+
</div>
|
|
12032
|
+
<div class="co-filter-item-dateField-content" *ngIf="mode === modes.DateRangeField">
|
|
12033
|
+
<co-input-date-range
|
|
12034
|
+
[model]="[dateRangeStart, dateRangeEnd]"
|
|
12035
|
+
(modelChange)="handleModelChange($event)"
|
|
12036
|
+
[placeholder]="'SELECT_DATE' | coreLocalize">
|
|
12037
|
+
</co-input-date-range>
|
|
12038
|
+
</div>
|
|
12039
|
+
</ng-template>
|
|
11723
12040
|
</div>
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
<co-input-text
|
|
11727
|
-
class="slider-from"
|
|
11728
|
-
[type]="'number'"
|
|
11729
|
-
[digitsOnly]="true"
|
|
11730
|
-
[hideArrowButtons]="true"
|
|
11731
|
-
[excludePlusMinus]="true"
|
|
11732
|
-
[label]="'FROM' | localize"
|
|
11733
|
-
[(model)]="sliderMin"
|
|
11734
|
-
(focusout)="handleModelChange(sliderMin)"
|
|
11735
|
-
></co-input-text>
|
|
11736
|
-
<co-input-text
|
|
11737
|
-
class="slider-to"
|
|
11738
|
-
[type]="'number'"
|
|
11739
|
-
[digitsOnly]="true"
|
|
11740
|
-
[hideArrowButtons]="true"
|
|
11741
|
-
[excludePlusMinus]="true"
|
|
11742
|
-
[label]="'TO' | localize"
|
|
11743
|
-
[(model)]="sliderMax"
|
|
11744
|
-
(focusout)="handleModelChange(sliderMax)"
|
|
11745
|
-
></co-input-text>
|
|
11746
|
-
</div>
|
|
11747
|
-
<div class="co-filter-item-slider-content" *ngIf="mode === modes.NullableSlider">
|
|
11748
|
-
<co-input-text
|
|
11749
|
-
class="slider-from"
|
|
11750
|
-
[type]="'number'"
|
|
11751
|
-
[digitsOnly]="true"
|
|
11752
|
-
[hideArrowButtons]="true"
|
|
11753
|
-
[excludePlusMinus]="true"
|
|
11754
|
-
[label]="'FROM' | localize"
|
|
11755
|
-
[(model)]="sliderMin"
|
|
11756
|
-
(focusout)="handleModelChange(sliderMin)"
|
|
11757
|
-
></co-input-text>
|
|
11758
|
-
<co-input-text
|
|
11759
|
-
class="slider-to"
|
|
11760
|
-
[type]="'number'"
|
|
11761
|
-
[digitsOnly]="true"
|
|
11762
|
-
[hideArrowButtons]="true"
|
|
11763
|
-
[excludePlusMinus]="true"
|
|
11764
|
-
[label]="'TO' | localize"
|
|
11765
|
-
[(model)]="sliderMax"
|
|
11766
|
-
(focusout)="handleModelChange(sliderMax)"
|
|
11767
|
-
></co-input-text>
|
|
11768
|
-
</div>
|
|
11769
|
-
<div class="co-filter-item-checkbox-content" *ngIf="mode === modes.Checkbox ">
|
|
11770
|
-
<co-input-checkbox
|
|
11771
|
-
[(model)]="model"
|
|
11772
|
-
(modelChange)="handleModelChange($event)"
|
|
11773
|
-
[label]="placeholder">
|
|
11774
|
-
</co-input-checkbox>
|
|
11775
|
-
</div>
|
|
11776
|
-
<div class="co-filter-item-checkbox-content"
|
|
11777
|
-
*ngIf="mode === modes.CheckboxToText || mode === modes.CheckboxToSimpleText || mode === modes.CheckboxToBinary">
|
|
11778
|
-
<co-input-checkbox
|
|
11779
|
-
[(model)]="checkBoxToTextModel"
|
|
11780
|
-
(modelChange)="handleModelChange($event)"
|
|
11781
|
-
[label]="placeholder"></co-input-checkbox>
|
|
11782
|
-
</div>
|
|
11783
|
-
<div class="co-filter-item-textfield-content" *ngIf="mode === modes.TextField">
|
|
11784
|
-
<co-input-text
|
|
11785
|
-
[(model)]="model"
|
|
11786
|
-
(modelChange)="handleModelChange($event)"></co-input-text>
|
|
11787
|
-
</div>
|
|
11788
|
-
<div class="co-filter-item-dateField-content" *ngIf="mode === modes.DateField">
|
|
11789
|
-
<co-input-date
|
|
11790
|
-
[(model)]="model"
|
|
11791
|
-
(modelChange)="handleModelChange($event)"
|
|
11792
|
-
></co-input-date>
|
|
11793
|
-
</div>
|
|
11794
|
-
<div class="co-filter-item-dateField-content" *ngIf="mode === modes.DateRangeField">
|
|
11795
|
-
<co-input-date-range
|
|
11796
|
-
[model]="[dateRangeStart, dateRangeEnd]"
|
|
11797
|
-
(modelChange)="handleModelChange($event)"
|
|
11798
|
-
[placeholder]="'SELECT_DATE' | localize">
|
|
11799
|
-
</co-input-date-range>
|
|
11800
|
-
</div>
|
|
11801
|
-
</ng-template>
|
|
11802
|
-
</div>
|
|
11803
|
-
</co-collapsible>
|
|
11804
|
-
</div>
|
|
12041
|
+
</co-collapsible>
|
|
12042
|
+
</div>
|
|
11805
12043
|
|
|
11806
12044
|
`,
|
|
11807
12045
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -11895,27 +12133,357 @@ FilterItemModule.decorators = [
|
|
|
11895
12133
|
},] }
|
|
11896
12134
|
];
|
|
11897
12135
|
|
|
11898
|
-
class
|
|
11899
|
-
constructor(
|
|
11900
|
-
this.
|
|
11901
|
-
this.
|
|
11902
|
-
this.
|
|
11903
|
-
this.
|
|
11904
|
-
this.
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
this._hostElement = value;
|
|
11909
|
-
// this._positionTooltip();
|
|
11910
|
-
}
|
|
11911
|
-
get hostElement() {
|
|
11912
|
-
return this._hostElement;
|
|
12136
|
+
class CheckmarkOverlayComponent {
|
|
12137
|
+
constructor(_renderer) {
|
|
12138
|
+
this._renderer = _renderer;
|
|
12139
|
+
this.showOverlay = false;
|
|
12140
|
+
this.showWrapper = false;
|
|
12141
|
+
this._visible = false;
|
|
12142
|
+
this._handleAnimationIteration = (event) => {
|
|
12143
|
+
this.animateDivs.forEach(a => this._renderer.removeClass(a.nativeElement, 'animate'));
|
|
12144
|
+
event.currentTarget.removeEventListener('animationiteration', this._handleAnimationIteration);
|
|
12145
|
+
};
|
|
11913
12146
|
}
|
|
11914
|
-
|
|
11915
|
-
|
|
12147
|
+
set content(children) {
|
|
12148
|
+
this.animateDivs = children.toArray();
|
|
12149
|
+
this._checkAnimation();
|
|
11916
12150
|
}
|
|
11917
|
-
|
|
11918
|
-
|
|
12151
|
+
set visible(value) {
|
|
12152
|
+
if (value) {
|
|
12153
|
+
this.showOverlay = true;
|
|
12154
|
+
this.showWrapper = true;
|
|
12155
|
+
}
|
|
12156
|
+
else {
|
|
12157
|
+
setTimeout(() => this.showOverlay = false, 800);
|
|
12158
|
+
setTimeout(() => this.showWrapper = false, 600);
|
|
12159
|
+
}
|
|
12160
|
+
this._visible = value;
|
|
12161
|
+
this._checkAnimation();
|
|
12162
|
+
this._checkAnimationFinished();
|
|
12163
|
+
}
|
|
12164
|
+
get visible() {
|
|
12165
|
+
return this._visible;
|
|
12166
|
+
}
|
|
12167
|
+
showClass() {
|
|
12168
|
+
return true;
|
|
12169
|
+
}
|
|
12170
|
+
_checkAnimation() {
|
|
12171
|
+
if (this.visible && this.animateDivs) {
|
|
12172
|
+
this.animateDivs.forEach(a => this._renderer.addClass(a.nativeElement, 'animate'));
|
|
12173
|
+
}
|
|
12174
|
+
}
|
|
12175
|
+
_checkAnimationFinished() {
|
|
12176
|
+
if (!this.visible && this.animateDivs) {
|
|
12177
|
+
this.animateDivs.forEach(a => {
|
|
12178
|
+
a.nativeElement.addEventListener('animationiteration', this._handleAnimationIteration);
|
|
12179
|
+
});
|
|
12180
|
+
}
|
|
12181
|
+
}
|
|
12182
|
+
}
|
|
12183
|
+
CheckmarkOverlayComponent.decorators = [
|
|
12184
|
+
{ type: Component, args: [{
|
|
12185
|
+
selector: "co-checkmark-overlay",
|
|
12186
|
+
template: `
|
|
12187
|
+
<div *ngIf="showOverlay">
|
|
12188
|
+
<div class="checkmark-overlay-wrapper" *ngIf="showWrapper" @showHideSaveCancel>
|
|
12189
|
+
<div class="checkmark-buttons-button save" [class.finished]="!visible">
|
|
12190
|
+
<div class="save-button-spinner">
|
|
12191
|
+
<div #animatediv></div>
|
|
12192
|
+
<div #animatediv></div>
|
|
12193
|
+
<div #animatediv></div>
|
|
12194
|
+
<div #animatediv></div>
|
|
12195
|
+
</div>
|
|
12196
|
+
<div class="spinner-checkmark" *ngIf="!visible && successful"></div>
|
|
12197
|
+
</div>
|
|
12198
|
+
</div>
|
|
12199
|
+
</div>
|
|
12200
|
+
`,
|
|
12201
|
+
animations: [
|
|
12202
|
+
trigger('showHideSaveCancel', [
|
|
12203
|
+
state('*', style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
12204
|
+
state('void', style({ transform: 'scaleY(0)', opacity: 0 })),
|
|
12205
|
+
transition('void <=> *', animate(200))
|
|
12206
|
+
]),
|
|
12207
|
+
],
|
|
12208
|
+
encapsulation: ViewEncapsulation.None
|
|
12209
|
+
},] }
|
|
12210
|
+
];
|
|
12211
|
+
CheckmarkOverlayComponent.ctorParameters = () => [
|
|
12212
|
+
{ type: Renderer2 }
|
|
12213
|
+
];
|
|
12214
|
+
CheckmarkOverlayComponent.propDecorators = {
|
|
12215
|
+
content: [{ type: ViewChildren, args: ['animatediv', { read: ElementRef },] }],
|
|
12216
|
+
visible: [{ type: Input }],
|
|
12217
|
+
successful: [{ type: Input }],
|
|
12218
|
+
showClass: [{ type: HostBinding, args: ["class.co-checkmark-overlay",] }]
|
|
12219
|
+
};
|
|
12220
|
+
|
|
12221
|
+
class CheckmarkOverlayModule {
|
|
12222
|
+
}
|
|
12223
|
+
CheckmarkOverlayModule.decorators = [
|
|
12224
|
+
{ type: NgModule, args: [{
|
|
12225
|
+
imports: [
|
|
12226
|
+
CommonModule
|
|
12227
|
+
],
|
|
12228
|
+
declarations: [
|
|
12229
|
+
CheckmarkOverlayComponent
|
|
12230
|
+
],
|
|
12231
|
+
exports: [
|
|
12232
|
+
CheckmarkOverlayComponent
|
|
12233
|
+
]
|
|
12234
|
+
},] }
|
|
12235
|
+
];
|
|
12236
|
+
|
|
12237
|
+
class FilterItemViewmodel {
|
|
12238
|
+
constructor(code, description, checked, count, valueName) {
|
|
12239
|
+
this.checked = false;
|
|
12240
|
+
this.code = code;
|
|
12241
|
+
this.description = description === null || description === void 0 ? void 0 : description.toString();
|
|
12242
|
+
this.checked = checked;
|
|
12243
|
+
this.count = count;
|
|
12244
|
+
this.valueName = valueName;
|
|
12245
|
+
}
|
|
12246
|
+
codeAsNumber() { return NumberUtils.ParseInt(this.code); }
|
|
12247
|
+
}
|
|
12248
|
+
|
|
12249
|
+
class FilterViewmodel {
|
|
12250
|
+
constructor(collection, fields) {
|
|
12251
|
+
this.filterItems = [];
|
|
12252
|
+
collection.forEach((item) => {
|
|
12253
|
+
var _a, _b, _c;
|
|
12254
|
+
this.filterItems.push(new FilterItemViewmodel(item[fields.value], item[fields.text], (_a = item.checked) !== null && _a !== void 0 ? _a : false, (_b = item.count) !== null && _b !== void 0 ? _b : null, (_c = item.valueName) !== null && _c !== void 0 ? _c : null));
|
|
12255
|
+
});
|
|
12256
|
+
}
|
|
12257
|
+
}
|
|
12258
|
+
|
|
12259
|
+
class BarCodeScanner {
|
|
12260
|
+
constructor() {
|
|
12261
|
+
this._buffer = [];
|
|
12262
|
+
this._keyPress = (event) => {
|
|
12263
|
+
if (event.key === "Enter") {
|
|
12264
|
+
document.dispatchEvent(this._createScanEvent());
|
|
12265
|
+
this._buffer.length = 0;
|
|
12266
|
+
}
|
|
12267
|
+
else {
|
|
12268
|
+
const str = event.key;
|
|
12269
|
+
this._buffer.push(str);
|
|
12270
|
+
}
|
|
12271
|
+
};
|
|
12272
|
+
document.addEventListener('keypress', this._keyPress);
|
|
12273
|
+
}
|
|
12274
|
+
close() {
|
|
12275
|
+
document.removeEventListener('keypress', this._keyPress);
|
|
12276
|
+
}
|
|
12277
|
+
_createScanEvent() {
|
|
12278
|
+
return new CustomEvent("barcodescanned", { detail: this._buffer.join("") });
|
|
12279
|
+
}
|
|
12280
|
+
}
|
|
12281
|
+
|
|
12282
|
+
class ScannerService {
|
|
12283
|
+
constructor(_ngZone) {
|
|
12284
|
+
this._ngZone = _ngZone;
|
|
12285
|
+
this.barCodeScanner = new BarCodeScanner();
|
|
12286
|
+
this._barCodeScanned = (event) => {
|
|
12287
|
+
if (this._activeInput) {
|
|
12288
|
+
this._activeInput.triggerCodeScanned(event.detail);
|
|
12289
|
+
}
|
|
12290
|
+
};
|
|
12291
|
+
document.addEventListener("barcodescanned", this._barCodeScanned);
|
|
12292
|
+
}
|
|
12293
|
+
ngOnDestroy() {
|
|
12294
|
+
document.removeEventListener("barcodescanned", this._barCodeScanned);
|
|
12295
|
+
this.barCodeScanner.close();
|
|
12296
|
+
}
|
|
12297
|
+
registerInput(input) {
|
|
12298
|
+
this._activeInput = input;
|
|
12299
|
+
}
|
|
12300
|
+
}
|
|
12301
|
+
ScannerService.decorators = [
|
|
12302
|
+
{ type: Injectable }
|
|
12303
|
+
];
|
|
12304
|
+
ScannerService.ctorParameters = () => [
|
|
12305
|
+
{ type: NgZone }
|
|
12306
|
+
];
|
|
12307
|
+
|
|
12308
|
+
class InputScannerComponent {
|
|
12309
|
+
constructor(_scannerService) {
|
|
12310
|
+
this._scannerService = _scannerService;
|
|
12311
|
+
this.centerLabel = false;
|
|
12312
|
+
this.useLeftIcon = false;
|
|
12313
|
+
this.useRightIcon = false;
|
|
12314
|
+
this.modelChange = new EventEmitter();
|
|
12315
|
+
this.leftIconClick = new EventEmitter();
|
|
12316
|
+
this.rightIconClick = new EventEmitter();
|
|
12317
|
+
this.search = new EventEmitter();
|
|
12318
|
+
this.barCodeScanned = new EventEmitter();
|
|
12319
|
+
this._scannerService.registerInput(this);
|
|
12320
|
+
}
|
|
12321
|
+
showClass() {
|
|
12322
|
+
return true;
|
|
12323
|
+
}
|
|
12324
|
+
triggerCodeScanned(code) {
|
|
12325
|
+
this.model = code;
|
|
12326
|
+
this.barCodeScanned.next(this.model);
|
|
12327
|
+
}
|
|
12328
|
+
}
|
|
12329
|
+
InputScannerComponent.decorators = [
|
|
12330
|
+
{ type: Component, args: [{
|
|
12331
|
+
selector: 'co-input-scanner',
|
|
12332
|
+
template: `
|
|
12333
|
+
<co-input-search
|
|
12334
|
+
[(model)]="model"
|
|
12335
|
+
[customCssClass]="customCssClass"
|
|
12336
|
+
[placeholder]="placeholder"
|
|
12337
|
+
[centerLabel]="centerLabel"
|
|
12338
|
+
[useLeftIcon]="useLeftIcon"
|
|
12339
|
+
[leftIconData]="leftIconData"
|
|
12340
|
+
[useRightIcon]="useRightIcon"
|
|
12341
|
+
[rightIconData]="rightIconData"
|
|
12342
|
+
(leftIconClick)="leftIconClick.emit($event)"
|
|
12343
|
+
(rightIconClick)="rightIconClick.emit($event)"
|
|
12344
|
+
(search)="search.emit($event)"
|
|
12345
|
+
></co-input-search>
|
|
12346
|
+
`,
|
|
12347
|
+
providers: [
|
|
12348
|
+
ScannerService,
|
|
12349
|
+
OverlayService
|
|
12350
|
+
],
|
|
12351
|
+
encapsulation: ViewEncapsulation.None
|
|
12352
|
+
},] }
|
|
12353
|
+
];
|
|
12354
|
+
InputScannerComponent.ctorParameters = () => [
|
|
12355
|
+
{ type: ScannerService }
|
|
12356
|
+
];
|
|
12357
|
+
InputScannerComponent.propDecorators = {
|
|
12358
|
+
model: [{ type: Input }],
|
|
12359
|
+
placeholder: [{ type: Input }],
|
|
12360
|
+
centerLabel: [{ type: Input }],
|
|
12361
|
+
useLeftIcon: [{ type: Input }],
|
|
12362
|
+
useRightIcon: [{ type: Input }],
|
|
12363
|
+
leftIconData: [{ type: Input }],
|
|
12364
|
+
rightIconData: [{ type: Input }],
|
|
12365
|
+
customCssClass: [{ type: Input }],
|
|
12366
|
+
modelChange: [{ type: Output }],
|
|
12367
|
+
leftIconClick: [{ type: Output }],
|
|
12368
|
+
rightIconClick: [{ type: Output }],
|
|
12369
|
+
search: [{ type: Output }],
|
|
12370
|
+
barCodeScanned: [{ type: Output }],
|
|
12371
|
+
showClass: [{ type: HostBinding, args: ['class.co-input-scanner',] }]
|
|
12372
|
+
};
|
|
12373
|
+
|
|
12374
|
+
class InputScannerModule {
|
|
12375
|
+
}
|
|
12376
|
+
InputScannerModule.decorators = [
|
|
12377
|
+
{ type: NgModule, args: [{
|
|
12378
|
+
imports: [
|
|
12379
|
+
CommonModule,
|
|
12380
|
+
InputSearchModule
|
|
12381
|
+
],
|
|
12382
|
+
declarations: [
|
|
12383
|
+
InputScannerComponent
|
|
12384
|
+
],
|
|
12385
|
+
exports: [
|
|
12386
|
+
InputScannerComponent
|
|
12387
|
+
]
|
|
12388
|
+
},] }
|
|
12389
|
+
];
|
|
12390
|
+
|
|
12391
|
+
class FilterPipe {
|
|
12392
|
+
transform(items, field, value) {
|
|
12393
|
+
if (!items || !field) {
|
|
12394
|
+
return items;
|
|
12395
|
+
}
|
|
12396
|
+
return items.filter(item => item[field] === value);
|
|
12397
|
+
}
|
|
12398
|
+
}
|
|
12399
|
+
FilterPipe.decorators = [
|
|
12400
|
+
{ type: Pipe, args: [{
|
|
12401
|
+
name: "filter",
|
|
12402
|
+
pure: false
|
|
12403
|
+
},] }
|
|
12404
|
+
];
|
|
12405
|
+
|
|
12406
|
+
class FilterPipeModule {
|
|
12407
|
+
}
|
|
12408
|
+
FilterPipeModule.decorators = [
|
|
12409
|
+
{ type: NgModule, args: [{
|
|
12410
|
+
declarations: [
|
|
12411
|
+
FilterPipe
|
|
12412
|
+
],
|
|
12413
|
+
exports: [
|
|
12414
|
+
FilterPipe
|
|
12415
|
+
]
|
|
12416
|
+
},] }
|
|
12417
|
+
];
|
|
12418
|
+
|
|
12419
|
+
function equalValidator(valueGetterFn) {
|
|
12420
|
+
return function (control) {
|
|
12421
|
+
let isValid = true;
|
|
12422
|
+
if (valueGetterFn) {
|
|
12423
|
+
const mustBeEqualTo = valueGetterFn.call(this);
|
|
12424
|
+
isValid = control.value === mustBeEqualTo;
|
|
12425
|
+
}
|
|
12426
|
+
return isValid ? null : { "equality": "MESSAGE_FIELD_WRONG_VALUE" };
|
|
12427
|
+
};
|
|
12428
|
+
}
|
|
12429
|
+
|
|
12430
|
+
function passwordValidator(userNameGetterFn) {
|
|
12431
|
+
return function (control) {
|
|
12432
|
+
if (control && control.value) {
|
|
12433
|
+
const username = userNameGetterFn.call(this);
|
|
12434
|
+
const errorString = getValidatePasswordErrorString(StringUtils.ToStringOrDefault(control.value), username);
|
|
12435
|
+
if (errorString) {
|
|
12436
|
+
return { "password": errorString };
|
|
12437
|
+
}
|
|
12438
|
+
}
|
|
12439
|
+
};
|
|
12440
|
+
}
|
|
12441
|
+
// @returns undefined if valid, or an error string if there's an error
|
|
12442
|
+
function getValidatePasswordErrorString(password, username) {
|
|
12443
|
+
const minimumPasswordLength = 10;
|
|
12444
|
+
const lengthOk = password && minimumPasswordLength <= password.length;
|
|
12445
|
+
if (!lengthOk) {
|
|
12446
|
+
return "PASSWORD_MUST_BE_10_CHARACTERS";
|
|
12447
|
+
}
|
|
12448
|
+
const atLeastOneNumber = RegExp(".*[0-9].*").test(password);
|
|
12449
|
+
const atLeastOneLetter = RegExp(".*[a-zA-Z].*").test(password);
|
|
12450
|
+
const atLeastOneSpecial = RegExp(".*[!@#$%&*()'+,\\-./:;<=>?\\[\\]^_`{|}\\\\].*").test(password);
|
|
12451
|
+
if (!atLeastOneNumber || !atLeastOneLetter || !atLeastOneSpecial) {
|
|
12452
|
+
return "PASSWORD_MUST_CONTAIN_LETTER_NUMBER_SPECIAL";
|
|
12453
|
+
}
|
|
12454
|
+
const hasUsernameInPassword = username && RegExp(".*" + username.trim() + ".*", "i").test(password);
|
|
12455
|
+
if (hasUsernameInPassword) {
|
|
12456
|
+
return "PASSWORD_CONTAINS_USERNAME";
|
|
12457
|
+
}
|
|
12458
|
+
}
|
|
12459
|
+
|
|
12460
|
+
function emailValidator(control) {
|
|
12461
|
+
const emailRegex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
12462
|
+
const isValid = !!emailRegex.test(control.value);
|
|
12463
|
+
return isValid ? null : { 'email': 'MESSAGE_EMAIL_NOT_CORRECT' };
|
|
12464
|
+
}
|
|
12465
|
+
|
|
12466
|
+
class TooltipComponent {
|
|
12467
|
+
constructor(_elementRef, _changeDetector) {
|
|
12468
|
+
this._elementRef = _elementRef;
|
|
12469
|
+
this._changeDetector = _changeDetector;
|
|
12470
|
+
this.top = -100;
|
|
12471
|
+
this.left = -100;
|
|
12472
|
+
this.bottom = false;
|
|
12473
|
+
this.animate = true;
|
|
12474
|
+
}
|
|
12475
|
+
set hostElement(value) {
|
|
12476
|
+
this._hostElement = value;
|
|
12477
|
+
// this._positionTooltip();
|
|
12478
|
+
}
|
|
12479
|
+
get hostElement() {
|
|
12480
|
+
return this._hostElement;
|
|
12481
|
+
}
|
|
12482
|
+
showClass() {
|
|
12483
|
+
return true;
|
|
12484
|
+
}
|
|
12485
|
+
ngAfterViewInit() {
|
|
12486
|
+
setTimeout(() => {
|
|
11919
12487
|
this._positionTooltip();
|
|
11920
12488
|
});
|
|
11921
12489
|
}
|
|
@@ -12077,107 +12645,6 @@ TooltipDirectiveModule.decorators = [
|
|
|
12077
12645
|
},] }
|
|
12078
12646
|
];
|
|
12079
12647
|
|
|
12080
|
-
class CheckmarkOverlayComponent {
|
|
12081
|
-
constructor(_renderer) {
|
|
12082
|
-
this._renderer = _renderer;
|
|
12083
|
-
this.showOverlay = false;
|
|
12084
|
-
this.showWrapper = false;
|
|
12085
|
-
this._visible = false;
|
|
12086
|
-
this._handleAnimationIteration = (event) => {
|
|
12087
|
-
this.animateDivs.forEach(a => this._renderer.removeClass(a.nativeElement, 'animate'));
|
|
12088
|
-
event.currentTarget.removeEventListener('animationiteration', this._handleAnimationIteration);
|
|
12089
|
-
};
|
|
12090
|
-
}
|
|
12091
|
-
set content(children) {
|
|
12092
|
-
this.animateDivs = children.toArray();
|
|
12093
|
-
this._checkAnimation();
|
|
12094
|
-
}
|
|
12095
|
-
set visible(value) {
|
|
12096
|
-
if (value) {
|
|
12097
|
-
this.showOverlay = true;
|
|
12098
|
-
this.showWrapper = true;
|
|
12099
|
-
}
|
|
12100
|
-
else {
|
|
12101
|
-
setTimeout(() => this.showOverlay = false, 800);
|
|
12102
|
-
setTimeout(() => this.showWrapper = false, 600);
|
|
12103
|
-
}
|
|
12104
|
-
this._visible = value;
|
|
12105
|
-
this._checkAnimation();
|
|
12106
|
-
this._checkAnimationFinished();
|
|
12107
|
-
}
|
|
12108
|
-
get visible() {
|
|
12109
|
-
return this._visible;
|
|
12110
|
-
}
|
|
12111
|
-
showClass() {
|
|
12112
|
-
return true;
|
|
12113
|
-
}
|
|
12114
|
-
_checkAnimation() {
|
|
12115
|
-
if (this.visible && this.animateDivs) {
|
|
12116
|
-
this.animateDivs.forEach(a => this._renderer.addClass(a.nativeElement, 'animate'));
|
|
12117
|
-
}
|
|
12118
|
-
}
|
|
12119
|
-
_checkAnimationFinished() {
|
|
12120
|
-
if (!this.visible && this.animateDivs) {
|
|
12121
|
-
this.animateDivs.forEach(a => {
|
|
12122
|
-
a.nativeElement.addEventListener('animationiteration', this._handleAnimationIteration);
|
|
12123
|
-
});
|
|
12124
|
-
}
|
|
12125
|
-
}
|
|
12126
|
-
}
|
|
12127
|
-
CheckmarkOverlayComponent.decorators = [
|
|
12128
|
-
{ type: Component, args: [{
|
|
12129
|
-
selector: "co-checkmark-overlay",
|
|
12130
|
-
template: `
|
|
12131
|
-
<div *ngIf="showOverlay">
|
|
12132
|
-
<div class="checkmark-overlay-wrapper" *ngIf="showWrapper" @showHideSaveCancel>
|
|
12133
|
-
<div class="checkmark-buttons-button save" [class.finished]="!visible">
|
|
12134
|
-
<div class="save-button-spinner">
|
|
12135
|
-
<div #animatediv></div>
|
|
12136
|
-
<div #animatediv></div>
|
|
12137
|
-
<div #animatediv></div>
|
|
12138
|
-
<div #animatediv></div>
|
|
12139
|
-
</div>
|
|
12140
|
-
<div class="spinner-checkmark" *ngIf="!visible && successful"></div>
|
|
12141
|
-
</div>
|
|
12142
|
-
</div>
|
|
12143
|
-
</div>
|
|
12144
|
-
`,
|
|
12145
|
-
animations: [
|
|
12146
|
-
trigger('showHideSaveCancel', [
|
|
12147
|
-
state('*', style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
12148
|
-
state('void', style({ transform: 'scaleY(0)', opacity: 0 })),
|
|
12149
|
-
transition('void <=> *', animate(200))
|
|
12150
|
-
]),
|
|
12151
|
-
],
|
|
12152
|
-
encapsulation: ViewEncapsulation.None
|
|
12153
|
-
},] }
|
|
12154
|
-
];
|
|
12155
|
-
CheckmarkOverlayComponent.ctorParameters = () => [
|
|
12156
|
-
{ type: Renderer2 }
|
|
12157
|
-
];
|
|
12158
|
-
CheckmarkOverlayComponent.propDecorators = {
|
|
12159
|
-
content: [{ type: ViewChildren, args: ['animatediv', { read: ElementRef },] }],
|
|
12160
|
-
visible: [{ type: Input }],
|
|
12161
|
-
successful: [{ type: Input }],
|
|
12162
|
-
showClass: [{ type: HostBinding, args: ["class.co-checkmark-overlay",] }]
|
|
12163
|
-
};
|
|
12164
|
-
|
|
12165
|
-
class CheckmarkOverlayModule {
|
|
12166
|
-
}
|
|
12167
|
-
CheckmarkOverlayModule.decorators = [
|
|
12168
|
-
{ type: NgModule, args: [{
|
|
12169
|
-
imports: [
|
|
12170
|
-
CommonModule
|
|
12171
|
-
],
|
|
12172
|
-
declarations: [
|
|
12173
|
-
CheckmarkOverlayComponent
|
|
12174
|
-
],
|
|
12175
|
-
exports: [
|
|
12176
|
-
CheckmarkOverlayComponent
|
|
12177
|
-
]
|
|
12178
|
-
},] }
|
|
12179
|
-
];
|
|
12180
|
-
|
|
12181
12648
|
class BaseModuleScreenConfigService {
|
|
12182
12649
|
constructor() {
|
|
12183
12650
|
// emits the params of the loaded config, each time when a new config was loaded
|
|
@@ -12583,28 +13050,6 @@ ScreenConfigurationModule.decorators = [
|
|
|
12583
13050
|
},] }
|
|
12584
13051
|
];
|
|
12585
13052
|
|
|
12586
|
-
class FilterItemViewmodel {
|
|
12587
|
-
constructor(code, description, checked, count, valueName) {
|
|
12588
|
-
this.checked = false;
|
|
12589
|
-
this.code = code;
|
|
12590
|
-
this.description = description === null || description === void 0 ? void 0 : description.toString();
|
|
12591
|
-
this.checked = checked;
|
|
12592
|
-
this.count = count;
|
|
12593
|
-
this.valueName = valueName;
|
|
12594
|
-
}
|
|
12595
|
-
codeAsNumber() { return NumberUtils.ParseInt(this.code); }
|
|
12596
|
-
}
|
|
12597
|
-
|
|
12598
|
-
class FilterViewmodel {
|
|
12599
|
-
constructor(collection, fields) {
|
|
12600
|
-
this.filterItems = [];
|
|
12601
|
-
collection.forEach((item) => {
|
|
12602
|
-
var _a, _b, _c;
|
|
12603
|
-
this.filterItems.push(new FilterItemViewmodel(item[fields.value], item[fields.text], (_a = item.checked) !== null && _a !== void 0 ? _a : false, (_b = item.count) !== null && _b !== void 0 ? _b : null, (_c = item.valueName) !== null && _c !== void 0 ? _c : null));
|
|
12604
|
-
});
|
|
12605
|
-
}
|
|
12606
|
-
}
|
|
12607
|
-
|
|
12608
13053
|
class ColorSequenceService {
|
|
12609
13054
|
constructor() {
|
|
12610
13055
|
this.colors = new Map();
|
|
@@ -12634,5 +13079,5 @@ ColorSequenceService.decorators = [
|
|
|
12634
13079
|
* Generated bundle index. Do not edit.
|
|
12635
13080
|
*/
|
|
12636
13081
|
|
|
12637
|
-
export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, PaginationService as ɵba, PaginatePipe as ɵbb, SimpleGridCellComponent as ɵbc, ListOfValuesMultiselectPopupComponent as ɵbd,
|
|
13082
|
+
export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, PaginationService as ɵba, PaginatePipe as ɵbb, SimpleGridCellComponent as ɵbc, ListOfValuesMultiselectPopupComponent as ɵbd, ConfirmationDialogComponent as ɵbe, DialogBaseComponent as ɵbf, CoreDynamicComponentService as ɵbg, PrependPipeModule as ɵbh, PrependPipe as ɵbi, CheckmarkOverlayComponent as ɵbj, ScannerService as ɵbk, TooltipModule as ɵbl, TooltipComponent as ɵbm, TooltipDirective as ɵbn, MD_RIPPLE_GLOBAL_OPTIONS as ɵc, CoRippleDirective as ɵd, CoViewportRulerService as ɵe, CoScrollDispatcherService as ɵf, CoScrollableDirective as ɵg, StopClickModule as ɵh, StopClickDirective as ɵi, BaseModule as ɵj, AppendPipeModule as ɵk, AppendPipe as ɵl, ValidationErrorModule as ɵm, OverlayDirective as ɵn, OverlayParentDirective as ɵo, CoreLocalizePipe as ɵp, CoreDictionaryService as ɵq, ValidationErrorComponent as ɵr, CommitButtonsModule as ɵs, CommitButtonsComponent as ɵt, ClickOutsideDirective as ɵu, ClickOutsideMasterService as ɵv, CalendarTemplateComponent as ɵw, PopupShowerService as ɵx, BaseSimpleGridComponent as ɵy, ObserveVisibilityDirective as ɵz };
|
|
12638
13083
|
//# sourceMappingURL=colijnit-corecomponents_v12.js.map
|