@colijnit/corecomponents_v12 12.2.13 → 12.2.15
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 +742 -260
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +9 -5
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +10 -6
- 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/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/loader/loader.component.js +84 -0
- package/esm2015/lib/components/loader/loader.module.js +19 -0
- 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/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/public-api.js +18 -11
- package/fesm2015/colijnit-corecomponents_v12.js +814 -270
- 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/loader/loader.component.d.ts +3 -0
- package/lib/components/loader/loader.module.d.ts +2 -0
- package/lib/components/loader/style/_layout.scss +65 -0
- package/lib/components/loader/style/_material-definition.scss +7 -0
- package/lib/components/loader/style/_theme.scss +4 -0
- package/lib/components/loader/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/package.json +1 -1
- package/public-api.d.ts +17 -10
|
@@ -1422,6 +1422,7 @@
|
|
|
1422
1422
|
CoreComponentsIcon["CashRegisterSimple"] = "cash_register_simple";
|
|
1423
1423
|
CoreComponentsIcon["ChangeLocation"] = "change_location";
|
|
1424
1424
|
CoreComponentsIcon["Check"] = "check";
|
|
1425
|
+
CoreComponentsIcon["CheckDuotone"] = "check_duotone";
|
|
1425
1426
|
CoreComponentsIcon["CheckRound"] = "check_round";
|
|
1426
1427
|
CoreComponentsIcon["CheckRoundOpen"] = "check_round_open";
|
|
1427
1428
|
CoreComponentsIcon["CheckSimple"] = "check_simple";
|
|
@@ -1720,6 +1721,7 @@
|
|
|
1720
1721
|
"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>",
|
|
1721
1722
|
"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>",
|
|
1722
1723
|
"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>",
|
|
1724
|
+
"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>",
|
|
1723
1725
|
"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>",
|
|
1724
1726
|
"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>",
|
|
1725
1727
|
"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>",
|
|
@@ -6312,7 +6314,7 @@
|
|
|
6312
6314
|
InputTextComponent.decorators = [
|
|
6313
6315
|
{ type: i0.Component, args: [{
|
|
6314
6316
|
selector: 'co-input-text',
|
|
6315
|
-
template: "\n <div class=\"input-text-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-icon *ngIf=\"leftIcon || leftIconData\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\"\n (click)=\"handleLeftIconClick($event)\" (mousedown)=\"handleLeftIconMouseDown($event)\"\n (mouseup)=\"handleLeftIconMouseUp($event)\"></co-icon>\n <div *ngIf=\"leftIcon || leftIconData\" class=\"spacer left-icon\"></div>\n <div class=\"input-wrapper\">\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <input #input\n [class.input-input-hidden]=\"useContent\"\n [ngClass]=\"align\"\n [type]=\"digitsOnly ? 'number' : type\"\n [pattern]=\"type === 'date' ? pattern : undefined\"\n [ngModel]=\"model\"\n [min]=\"(type === 'number' || type === 'date') && this.min ? this.min : undefined\"\n [max]=\"(type === 'number' || type === 'date') && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n <ng-container *ngIf=\"useContent\">\n <div class=\"input-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <co-icon [class.show]=\"showClearButton && hasValue && focused && !readonly\" class=\"input-text-clear-button\" [icon]=\"icons.CrossSkinny\" (click)=\"clearInput($event)\"></co-icon>\n <div class=\"required-indicator\"></div>\n </div>\n <div *ngIf=\"rightIcon || rightIconData\" class=\"spacer right-icon\"></div>\n <co-icon *ngIf=\"rightIcon || rightIconData\" class=\"input-text-right-icon\" [icon]=\"rightIcon\" [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\" (mousedown)=\"handleRightIconMouseDown($event)\" (mouseup)=\"handleRightIconMouseUp($event)\"></co-icon>\n </div>\n <!--\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n -->\n ",
|
|
6317
|
+
template: "\n <div class=\"input-text-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-icon *ngIf=\"leftIcon || leftIconData\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\"\n (click)=\"handleLeftIconClick($event)\" (mousedown)=\"handleLeftIconMouseDown($event)\"\n (mouseup)=\"handleLeftIconMouseUp($event)\"></co-icon>\n <div *ngIf=\"leftIcon || leftIconData\" class=\"spacer left-icon\"></div>\n <div class=\"input-wrapper\">\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <input #input\n [class.input-input-hidden]=\"useContent\"\n [ngClass]=\"align\"\n [type]=\"digitsOnly ? 'number' : type\"\n [pattern]=\"type === 'date' ? pattern : undefined\"\n [ngModel]=\"model\"\n [min]=\"(type === 'number' || type === 'date') && this.min ? this.min : undefined\"\n [max]=\"(type === 'number' || type === 'date') && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n (keyup)=\"keyUp.emit($event)\"\n >\n <ng-container *ngIf=\"useContent\">\n <div class=\"input-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <co-icon [class.show]=\"showClearButton && hasValue && focused && !readonly\" class=\"input-text-clear-button\" [icon]=\"icons.CrossSkinny\" (click)=\"clearInput($event)\"></co-icon>\n <div class=\"required-indicator\"></div>\n </div>\n <div *ngIf=\"rightIcon || rightIconData\" class=\"spacer right-icon\"></div>\n <co-icon *ngIf=\"rightIcon || rightIconData\" class=\"input-text-right-icon\" [icon]=\"rightIcon\" [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\" (mousedown)=\"handleRightIconMouseDown($event)\" (mouseup)=\"handleRightIconMouseUp($event)\"></co-icon>\n </div>\n <!--\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n -->\n ",
|
|
6316
6318
|
providers: [
|
|
6317
6319
|
OverlayService, {
|
|
6318
6320
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
@@ -8164,7 +8166,7 @@
|
|
|
8164
8166
|
InputSearchComponent.decorators = [
|
|
8165
8167
|
{ type: i0.Component, args: [{
|
|
8166
8168
|
selector: 'co-input-search',
|
|
8167
|
-
template: "\n <co-input-text\n [ngClass]=\"customCssClass\"\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon ? searchIcon : null\"\n [rightIcon]=\"useRightIcon ? searchIcon : null\"\n [leftIconData]=\"useLeftIcon && leftIconData ? leftIconData : undefined\"\n [rightIconData]=\"useRightIcon && rightIconData ? rightIconData : undefined\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"true\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n ></co-input-text>\n ",
|
|
8169
|
+
template: "\n <co-input-text\n [ngClass]=\"customCssClass\"\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon ? searchIcon : null\"\n [rightIcon]=\"useRightIcon ? searchIcon : null\"\n [leftIconData]=\"useLeftIcon && leftIconData ? leftIconData : undefined\"\n [rightIconData]=\"useRightIcon && rightIconData ? rightIconData : undefined\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"true\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n (keyup)=\"keyUp.emit($event)\"\n ></co-input-text>\n ",
|
|
8168
8170
|
providers: [
|
|
8169
8171
|
OverlayService
|
|
8170
8172
|
],
|
|
@@ -9899,6 +9901,9 @@
|
|
|
9899
9901
|
this.validateAndSave();
|
|
9900
9902
|
}
|
|
9901
9903
|
};
|
|
9904
|
+
SimpleGridComponent.prototype.handleClickOutsideRow = function () {
|
|
9905
|
+
this.validateAndSave();
|
|
9906
|
+
};
|
|
9902
9907
|
SimpleGridComponent.prototype.isRowDisabled = function (row) {
|
|
9903
9908
|
if (this.rowDisabledFn && (typeof this.rowDisabledFn === 'function')) {
|
|
9904
9909
|
return this.rowDisabledFn.call(this, row);
|
|
@@ -9916,26 +9921,34 @@
|
|
|
9916
9921
|
return !!singleColumn;
|
|
9917
9922
|
};
|
|
9918
9923
|
SimpleGridComponent.prototype.addNewRow = function () {
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9924
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9925
|
+
var valid, _a;
|
|
9926
|
+
return __generator(this, function (_b) {
|
|
9927
|
+
switch (_b.label) {
|
|
9928
|
+
case 0:
|
|
9929
|
+
if (!this.inlineEdit) return [3 /*break*/, 3];
|
|
9930
|
+
valid = this.validateAndSave();
|
|
9931
|
+
if (!valid) return [3 /*break*/, 2];
|
|
9932
|
+
this.data.push({});
|
|
9933
|
+
this._detectChanges();
|
|
9934
|
+
this._newRow = true;
|
|
9935
|
+
this.editing = true;
|
|
9936
|
+
this.editRowIndex = this.data.length - 1;
|
|
9937
|
+
this.rowToEdit = this.data[this.editRowIndex];
|
|
9938
|
+
_a = this;
|
|
9939
|
+
return [4 /*yield*/, this._nextAvailableCellToEdit(true)];
|
|
9940
|
+
case 1:
|
|
9941
|
+
_a.editCellIndex = _b.sent();
|
|
9942
|
+
this._detectChanges();
|
|
9943
|
+
_b.label = 2;
|
|
9944
|
+
case 2: return [3 /*break*/, 4];
|
|
9945
|
+
case 3:
|
|
9946
|
+
this.addRow.next();
|
|
9947
|
+
_b.label = 4;
|
|
9948
|
+
case 4: return [2 /*return*/];
|
|
9949
|
+
}
|
|
9950
|
+
});
|
|
9951
|
+
});
|
|
9939
9952
|
};
|
|
9940
9953
|
SimpleGridComponent.prototype.validateAndSave = function (stopediting) {
|
|
9941
9954
|
if (stopediting === void 0) { stopediting = true; }
|
|
@@ -9960,8 +9973,7 @@
|
|
|
9960
9973
|
else {
|
|
9961
9974
|
this.data[this.editRowIndex] = this.rowToEdit;
|
|
9962
9975
|
}
|
|
9963
|
-
this.
|
|
9964
|
-
this.editing = false;
|
|
9976
|
+
this._resetEdit();
|
|
9965
9977
|
this._detectChanges();
|
|
9966
9978
|
};
|
|
9967
9979
|
SimpleGridComponent.prototype.removeRow = function () {
|
|
@@ -9982,7 +9994,7 @@
|
|
|
9982
9994
|
};
|
|
9983
9995
|
SimpleGridComponent.prototype.selectTheRow = function (index, emit) {
|
|
9984
9996
|
if (emit === void 0) { emit = true; }
|
|
9985
|
-
if (this.selectedRowIndex !== index && ((this.editing && this.validateAndSave()) || !this.editing)) {
|
|
9997
|
+
if (this.selectedRowIndex === -1 || (this.selectedRowIndex !== index && ((this.editing && this.validateAndSave()) || !this.editing))) {
|
|
9986
9998
|
this.selectedRowIndex = index;
|
|
9987
9999
|
}
|
|
9988
10000
|
if (emit) {
|
|
@@ -10003,18 +10015,31 @@
|
|
|
10003
10015
|
}
|
|
10004
10016
|
this._resetDblClick();
|
|
10005
10017
|
};
|
|
10006
|
-
SimpleGridComponent.prototype.editRow = function (event) {
|
|
10018
|
+
SimpleGridComponent.prototype.editRow = function (event, selectCell) {
|
|
10007
10019
|
var _this = this;
|
|
10020
|
+
if (selectCell === void 0) { selectCell = true; }
|
|
10008
10021
|
this.editRowIndex = this.selectedRowIndex;
|
|
10009
10022
|
this.rowToEdit = this.data[this.editRowIndex];
|
|
10010
10023
|
this.editing = true;
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10024
|
+
if (selectCell) {
|
|
10025
|
+
this._nextAvailableCellToEdit(true).then(function (index) {
|
|
10026
|
+
_this.editCellIndex = index;
|
|
10027
|
+
});
|
|
10028
|
+
}
|
|
10014
10029
|
this._detectChanges();
|
|
10015
10030
|
};
|
|
10016
|
-
SimpleGridComponent.prototype.handleCellClick = function (
|
|
10017
|
-
this.
|
|
10031
|
+
SimpleGridComponent.prototype.handleCellClick = function (event, row, rowIndex, cellIndex) {
|
|
10032
|
+
if (this.isRowDisabled(row)) {
|
|
10033
|
+
this.selectedRowIndex = -1;
|
|
10034
|
+
return;
|
|
10035
|
+
}
|
|
10036
|
+
this.selectTheRow(rowIndex, false);
|
|
10037
|
+
if (this.inlineEdit) {
|
|
10038
|
+
this.editRowIndex = rowIndex;
|
|
10039
|
+
this.editCellIndex = cellIndex;
|
|
10040
|
+
this.editing = true;
|
|
10041
|
+
this.editRow(event, false);
|
|
10042
|
+
}
|
|
10018
10043
|
this._detectChanges();
|
|
10019
10044
|
};
|
|
10020
10045
|
SimpleGridComponent.prototype._resetDblClick = function () {
|
|
@@ -10136,10 +10161,7 @@
|
|
|
10136
10161
|
}
|
|
10137
10162
|
this._newRow = false;
|
|
10138
10163
|
if (stopediting) {
|
|
10139
|
-
this.
|
|
10140
|
-
this.editCellIndex = -1;
|
|
10141
|
-
this.editing = false;
|
|
10142
|
-
this.rowToEdit = undefined;
|
|
10164
|
+
this._resetEdit();
|
|
10143
10165
|
}
|
|
10144
10166
|
this._detectChanges();
|
|
10145
10167
|
};
|
|
@@ -10155,12 +10177,20 @@
|
|
|
10155
10177
|
SimpleGridComponent.prototype._detectChanges = function () {
|
|
10156
10178
|
this._changeDetection.detectChanges();
|
|
10157
10179
|
};
|
|
10180
|
+
SimpleGridComponent.prototype._resetEdit = function () {
|
|
10181
|
+
this._newRow = false;
|
|
10182
|
+
this.selectedRowIndex = -1;
|
|
10183
|
+
this.editRowIndex = -1;
|
|
10184
|
+
this.editCellIndex = -1;
|
|
10185
|
+
this.editing = false;
|
|
10186
|
+
this.rowToEdit = undefined;
|
|
10187
|
+
};
|
|
10158
10188
|
return SimpleGridComponent;
|
|
10159
10189
|
}(BaseSimpleGridComponent));
|
|
10160
10190
|
SimpleGridComponent.decorators = [
|
|
10161
10191
|
{ type: i0.Component, args: [{
|
|
10162
10192
|
selector: 'co-simple-grid',
|
|
10163
|
-
template: "\n <co-grid-toolbar *ngIf=\"showToolbar\" [class.right]=\"rightToolbar\"\n [showEdit]=\"showEdit\"\n [showAdd]=\"showAdd\"\n [showDelete]=\"showDelete\"\n [deleteEnabled]=\"selectedRowIndex > -1\"\n (addClick)=\"addNewRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n (deleteClick)=\"removeRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\"\n [class.simple-grid-column-auto-fit]=\"column.autoFit\"\n [style.width.px]=\"column.width\"\n [style.min-width.px]=\"MIN_COLUMN_WIDTH\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\">\n <ng-container *ngIf=\"column.headerTemplate; else noHeaderTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #noHeaderTemplate>\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText || ' '\"\n ></div>\n </ng-template>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"isRowDisabled(row)\"\n [class.editing]=\"rowIndex === editRowIndex\" *ngFor=\"let row of (!!rowsPerPage ? (data | paginate: {itemsPerPage: rowsPerPage, currentPage: currentPage}) : data); last as last; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex, row)\" (dblclick)=\"handleDblClickRow($event, rowIndex, row)\" (visibilityChange)=\"rowVisible.next(row)\">\n <co-form-test class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editing && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex\"\n (cellClick)=\"handleCellClick(columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form-test>\n </tr>\n </tbody>\n </table>\n <co-pagination-bar *ngIf=\"data?.length > rowsPerPage\" class=\"pagination-bar\"\n [itemsPerPage]=\"rowsPerPage\"\n [currentPage]=\"currentPage\"\n [totalItems]=\"data.length\"\n [autoHide]=\"true\"\n (previousClick)=\"goToPreviousPage()\"\n (nextClick)=\"goToNextPage()\"\n (pageClick)=\"setCurrentPage($event)\"\n ></co-pagination-bar>\n ",
|
|
10193
|
+
template: "\n <co-grid-toolbar *ngIf=\"showToolbar\" [class.right]=\"rightToolbar\"\n [showEdit]=\"showEdit\"\n [showAdd]=\"showAdd\"\n [showDelete]=\"showDelete\"\n [deleteEnabled]=\"selectedRowIndex > -1\"\n (addClick)=\"addNewRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n (deleteClick)=\"removeRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\" [clickOutside]=\"editing\" (clickOutside)=\"handleClickOutsideRow()\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\"\n [class.simple-grid-column-auto-fit]=\"column.autoFit\"\n [style.width.px]=\"column.width\"\n [style.min-width.px]=\"MIN_COLUMN_WIDTH\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\">\n <ng-container *ngIf=\"column.headerTemplate; else noHeaderTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #noHeaderTemplate>\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText || ' '\"\n ></div>\n </ng-template>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled || editing\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"isRowDisabled(row)\"\n [class.editing]=\"rowIndex === editRowIndex\" *ngFor=\"let row of (!!rowsPerPage ? (data | paginate: {itemsPerPage: rowsPerPage, currentPage: currentPage}) : data); last as last; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex, row)\" (dblclick)=\"handleDblClickRow($event, rowIndex, row)\" (visibilityChange)=\"rowVisible.next(row)\">\n <co-form-test class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editing && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex && rowIndex === editRowIndex\"\n (cellClick)=\"handleCellClick($event, row, rowIndex, columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form-test>\n </tr>\n </tbody>\n </table>\n <co-pagination-bar *ngIf=\"data?.length > rowsPerPage\" class=\"pagination-bar\"\n [itemsPerPage]=\"rowsPerPage\"\n [currentPage]=\"currentPage\"\n [totalItems]=\"data.length\"\n [autoHide]=\"true\"\n (previousClick)=\"goToPreviousPage()\"\n (nextClick)=\"goToNextPage()\"\n (pageClick)=\"setCurrentPage($event)\"\n ></co-pagination-bar>\n ",
|
|
10164
10194
|
providers: [
|
|
10165
10195
|
FormMasterService
|
|
10166
10196
|
],
|
|
@@ -10670,11 +10700,21 @@
|
|
|
10670
10700
|
function SimpleGridCellComponent(_changeDetector) {
|
|
10671
10701
|
this._changeDetector = _changeDetector;
|
|
10672
10702
|
this.defaultTextAlign = exports.ColumnAlign.Left;
|
|
10673
|
-
this.
|
|
10703
|
+
this._editMode = false;
|
|
10674
10704
|
this.cellClick = new i0.EventEmitter();
|
|
10675
10705
|
this._fieldEditMode = false;
|
|
10676
10706
|
this._focused = false;
|
|
10677
10707
|
}
|
|
10708
|
+
Object.defineProperty(SimpleGridCellComponent.prototype, "editMode", {
|
|
10709
|
+
get: function () {
|
|
10710
|
+
return this._editMode;
|
|
10711
|
+
},
|
|
10712
|
+
set: function (value) {
|
|
10713
|
+
this._editMode = value;
|
|
10714
|
+
},
|
|
10715
|
+
enumerable: false,
|
|
10716
|
+
configurable: true
|
|
10717
|
+
});
|
|
10678
10718
|
Object.defineProperty(SimpleGridCellComponent.prototype, "editTemplateContent", {
|
|
10679
10719
|
set: function (template) {
|
|
10680
10720
|
if (template) {
|
|
@@ -10725,7 +10765,7 @@
|
|
|
10725
10765
|
}
|
|
10726
10766
|
};
|
|
10727
10767
|
SimpleGridCellComponent.prototype._setFocusComponent = function () {
|
|
10728
|
-
if (this.
|
|
10768
|
+
if (this._editMode && this.fieldEditMode) {
|
|
10729
10769
|
var element = this._getElement();
|
|
10730
10770
|
if (element) {
|
|
10731
10771
|
var focusEvent = this._createNewEvent(element, 'focus');
|
|
@@ -10796,7 +10836,7 @@
|
|
|
10796
10836
|
SimpleGridCellComponent.decorators = [
|
|
10797
10837
|
{ type: i0.Component, args: [{
|
|
10798
10838
|
selector: "co-simple-grid-cell",
|
|
10799
|
-
template: "\n
|
|
10839
|
+
template: "\n <div class=\"simple-grid-column-cell-value\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\">\n <ng-container *ngIf=\"editMode; else noInlineEdit\">\n <div class=\"simple-grid-column-cell-field\">\n <ng-container #editTemplate *ngIf=\"column.editTemplate; else noEditTemplate\"\n [ngTemplateOutlet]=\"column.editTemplate\"\n [ngTemplateOutletContext]=\"{value: row[column.field], row: row}\"></ng-container>\n <ng-template #noEditTemplate>\n <ng-container *ngIf=\"column.template; else noTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{value: row[column.field], row: row}\"></ng-container>\n </ng-container>\n <ng-template #noTemplate>\n <co-input-text [(model)]=\"row[column.field]\" [required]=\"column.required\"></co-input-text>\n </ng-template>\n </ng-template>\n </div>\n </ng-container>\n <ng-template #noInlineEdit>\n <div class=\"simple-grid-column-cell-field\">\n <ng-container *ngIf=\"column.template; else noTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{value: row[column.field], row: row}\"></ng-container>\n </ng-container>\n <ng-template #noTemplate>\n <span [textContent]=\"column.getFieldValue(row[column.field])\"></span>\n </ng-template>\n </div>\n </ng-template>\n </div>\n ",
|
|
10800
10840
|
encapsulation: i0.ViewEncapsulation.None
|
|
10801
10841
|
},] }
|
|
10802
10842
|
];
|
|
@@ -10804,12 +10844,12 @@
|
|
|
10804
10844
|
{ type: i0.ChangeDetectorRef }
|
|
10805
10845
|
]; };
|
|
10806
10846
|
SimpleGridCellComponent.propDecorators = {
|
|
10847
|
+
editMode: [{ type: i0.Input }],
|
|
10807
10848
|
editTemplateContent: [{ type: i0.ViewChild, args: ["editTemplate", { read: BaseInputComponent },] }],
|
|
10808
10849
|
noEditTemplateContent: [{ type: i0.ViewChild, args: ["noEditTemplate",] }],
|
|
10809
10850
|
noTemplateContent: [{ type: i0.ViewChild, args: ["noTemplate",] }],
|
|
10810
10851
|
column: [{ type: i0.Input }],
|
|
10811
10852
|
row: [{ type: i0.Input }],
|
|
10812
|
-
editMode: [{ type: i0.Input }],
|
|
10813
10853
|
fieldEditMode: [{ type: i0.Input }],
|
|
10814
10854
|
cellClick: [{ type: i0.Output }],
|
|
10815
10855
|
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-grid-cell",] }],
|
|
@@ -10901,7 +10941,8 @@
|
|
|
10901
10941
|
FormModule,
|
|
10902
10942
|
ObserveVisibilityModule,
|
|
10903
10943
|
PaginationModule,
|
|
10904
|
-
PaginationBarModule
|
|
10944
|
+
PaginationBarModule,
|
|
10945
|
+
ClickoutsideModule
|
|
10905
10946
|
],
|
|
10906
10947
|
declarations: [
|
|
10907
10948
|
SimpleGridComponent,
|
|
@@ -11662,87 +11703,273 @@
|
|
|
11662
11703
|
},] }
|
|
11663
11704
|
];
|
|
11664
11705
|
|
|
11665
|
-
var
|
|
11666
|
-
function
|
|
11706
|
+
var CoreDynamicComponentService = /** @class */ (function () {
|
|
11707
|
+
function CoreDynamicComponentService(_compFactoryResolver, appRef, injector) {
|
|
11708
|
+
this._compFactoryResolver = _compFactoryResolver;
|
|
11709
|
+
this.appRef = appRef;
|
|
11710
|
+
this.injector = injector;
|
|
11711
|
+
this._componentRefs = [];
|
|
11667
11712
|
}
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11713
|
+
CoreDynamicComponentService.prototype.getComponentRefs = function () {
|
|
11714
|
+
return this._componentRefs;
|
|
11715
|
+
};
|
|
11716
|
+
CoreDynamicComponentService.prototype.createAndReturnComponentRef = function (componentClass, inputs) {
|
|
11717
|
+
var _this = this;
|
|
11718
|
+
return new Promise(function (resolve) {
|
|
11719
|
+
var componentRef = _this._compFactoryResolver
|
|
11720
|
+
.resolveComponentFactory(componentClass)
|
|
11721
|
+
.create(_this.injector);
|
|
11722
|
+
if (inputs) {
|
|
11723
|
+
for (var property in inputs) {
|
|
11724
|
+
if (inputs.hasOwnProperty(property)) {
|
|
11725
|
+
componentRef.instance[property] = inputs[property];
|
|
11726
|
+
}
|
|
11727
|
+
}
|
|
11728
|
+
}
|
|
11729
|
+
_this.appRef.attachView(componentRef.hostView);
|
|
11730
|
+
var domElem = componentRef.hostView
|
|
11731
|
+
.rootNodes[0];
|
|
11732
|
+
document.body.appendChild(domElem);
|
|
11733
|
+
componentRef.onDestroy(function () {
|
|
11734
|
+
_this.appRef.detachView(componentRef.hostView);
|
|
11735
|
+
});
|
|
11736
|
+
resolve(componentRef);
|
|
11737
|
+
});
|
|
11738
|
+
};
|
|
11739
|
+
CoreDynamicComponentService.prototype.createComponent = function (componentClass, inputs, outputs, providers) {
|
|
11740
|
+
var _this = this;
|
|
11741
|
+
return new Promise(function (resolve) {
|
|
11742
|
+
if (providers) {
|
|
11743
|
+
i0.Injector.create(providers, _this.injector);
|
|
11744
|
+
}
|
|
11745
|
+
var componentRef = _this._compFactoryResolver
|
|
11746
|
+
.resolveComponentFactory(componentClass)
|
|
11747
|
+
.create(_this.injector);
|
|
11748
|
+
_this._componentRefs.push(componentRef);
|
|
11749
|
+
if (inputs) {
|
|
11750
|
+
for (var property in inputs) {
|
|
11751
|
+
if (inputs.hasOwnProperty(property)) {
|
|
11752
|
+
componentRef.instance[property] = inputs[property];
|
|
11753
|
+
}
|
|
11754
|
+
}
|
|
11755
|
+
}
|
|
11756
|
+
if (outputs) {
|
|
11757
|
+
var _loop_1 = function (event) {
|
|
11758
|
+
if (outputs.hasOwnProperty(event)) {
|
|
11759
|
+
componentRef.instance[event].subscribe(function () { return outputs[event](); });
|
|
11760
|
+
}
|
|
11761
|
+
};
|
|
11762
|
+
for (var event in outputs) {
|
|
11763
|
+
_loop_1(event);
|
|
11764
|
+
}
|
|
11765
|
+
}
|
|
11766
|
+
_this.appRef.attachView(componentRef.hostView);
|
|
11767
|
+
var domElem = componentRef.hostView
|
|
11768
|
+
.rootNodes[0];
|
|
11769
|
+
document.body.appendChild(domElem);
|
|
11770
|
+
componentRef.onDestroy(function () {
|
|
11771
|
+
_this.appRef.detachView(componentRef.hostView);
|
|
11772
|
+
});
|
|
11773
|
+
componentRef.instance.onClose = function (button, output, rememberChoice) {
|
|
11774
|
+
var idx = _this._componentRefs.indexOf(componentRef);
|
|
11775
|
+
_this.appRef.detachView(componentRef.hostView);
|
|
11776
|
+
_this._componentRefs[idx] = undefined;
|
|
11777
|
+
_this._componentRefs.splice(idx, 1);
|
|
11778
|
+
if (outputs) {
|
|
11779
|
+
for (var event in outputs) {
|
|
11780
|
+
if (outputs.hasOwnProperty(event)) {
|
|
11781
|
+
componentRef.instance[event].unsubscribe();
|
|
11782
|
+
}
|
|
11783
|
+
}
|
|
11784
|
+
}
|
|
11785
|
+
resolve({ button: button, output: output ? output : undefined, rememberChoice: rememberChoice });
|
|
11786
|
+
};
|
|
11787
|
+
});
|
|
11788
|
+
};
|
|
11789
|
+
return CoreDynamicComponentService;
|
|
11790
|
+
}());
|
|
11791
|
+
CoreDynamicComponentService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CoreDynamicComponentService_Factory() { return new CoreDynamicComponentService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i0__namespace.INJECTOR)); }, token: CoreDynamicComponentService, providedIn: "root" });
|
|
11792
|
+
CoreDynamicComponentService.decorators = [
|
|
11793
|
+
{ type: i0.Injectable, args: [{
|
|
11794
|
+
providedIn: "root"
|
|
11795
|
+
},] }
|
|
11796
|
+
];
|
|
11797
|
+
CoreDynamicComponentService.ctorParameters = function () { return [
|
|
11798
|
+
{ type: i0.ComponentFactoryResolver },
|
|
11799
|
+
{ type: i0.ApplicationRef },
|
|
11800
|
+
{ type: i0.Injector }
|
|
11801
|
+
]; };
|
|
11802
|
+
|
|
11803
|
+
var AppPopupType;
|
|
11804
|
+
(function (AppPopupType) {
|
|
11805
|
+
AppPopupType[AppPopupType["Error"] = 0] = "Error";
|
|
11806
|
+
AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
|
|
11807
|
+
AppPopupType[AppPopupType["Information"] = 2] = "Information";
|
|
11808
|
+
AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
|
|
11809
|
+
})(AppPopupType || (AppPopupType = {}));
|
|
11810
|
+
|
|
11811
|
+
var AppPopupButtonType;
|
|
11812
|
+
(function (AppPopupButtonType) {
|
|
11813
|
+
AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
|
|
11814
|
+
AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
|
|
11815
|
+
AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
|
|
11816
|
+
AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
|
|
11817
|
+
AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
|
|
11818
|
+
AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
|
|
11819
|
+
AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
|
|
11820
|
+
})(AppPopupButtonType || (AppPopupButtonType = {}));
|
|
11821
|
+
|
|
11822
|
+
var DialogBaseComponent = /** @class */ (function () {
|
|
11823
|
+
function DialogBaseComponent() {
|
|
11824
|
+
}
|
|
11825
|
+
DialogBaseComponent.prototype.onClose = function (eventType, output, rememberChoice) {
|
|
11826
|
+
return;
|
|
11827
|
+
};
|
|
11828
|
+
return DialogBaseComponent;
|
|
11829
|
+
}());
|
|
11830
|
+
|
|
11831
|
+
var ConfirmationDialogComponent = /** @class */ (function (_super) {
|
|
11832
|
+
__extends(ConfirmationDialogComponent, _super);
|
|
11833
|
+
function ConfirmationDialogComponent(iconCacheService) {
|
|
11834
|
+
var _this = _super.call(this) || this;
|
|
11835
|
+
_this.iconCacheService = iconCacheService;
|
|
11836
|
+
_this.icons = exports.CoreComponentsIcon;
|
|
11837
|
+
_this.ptype = AppPopupType;
|
|
11838
|
+
_this.showRememberCheckbox = false;
|
|
11839
|
+
_this.rememberChoice = false;
|
|
11840
|
+
return _this;
|
|
11841
|
+
}
|
|
11842
|
+
ConfirmationDialogComponent.prototype.showClass = function () {
|
|
11843
|
+
return true;
|
|
11844
|
+
};
|
|
11845
|
+
ConfirmationDialogComponent.prototype.handleYesClick = function (event) {
|
|
11846
|
+
this.onClose(AppPopupButtonType.Yes, undefined, this.rememberChoice);
|
|
11847
|
+
};
|
|
11848
|
+
ConfirmationDialogComponent.prototype.handleNoClick = function (event) {
|
|
11849
|
+
this.onClose(AppPopupButtonType.No, undefined, this.rememberChoice);
|
|
11850
|
+
};
|
|
11851
|
+
ConfirmationDialogComponent.prototype.handleOkClick = function (event) {
|
|
11852
|
+
this.onClose(AppPopupButtonType.Ok, undefined, this.rememberChoice);
|
|
11853
|
+
};
|
|
11854
|
+
return ConfirmationDialogComponent;
|
|
11855
|
+
}(DialogBaseComponent));
|
|
11856
|
+
ConfirmationDialogComponent.decorators = [
|
|
11857
|
+
{ type: i0.Component, args: [{
|
|
11858
|
+
selector: "co-confirmation-dialog",
|
|
11859
|
+
template: "\n <co-dialog [showCloseIcon]=\"false\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\">\n <div class=\"confirmation-dialog-wrapper\">\n <div class=\"text\" [innerHTML]=\"text\"></div>\n <co-collapsible [headerTitle]=\"'DETAILS' | coreLocalize\" [iconData]=\"iconCacheService.getIcon(icons.TriangleDown)\" *ngIf=\"details\">\n <div class=\"dialog-details\" [innerHTML]=\"details\"></div>\n </co-collapsible>\n </div>\n </co-dialog>\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"title\"></div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <ng-container *ngIf=\"type === ptype.Confirmation\">\n <co-button class=\"save-button\"\n [label]=\"'YES' | coreLocalize\"\n (click)=\"handleYesClick($event)\"></co-button>\n <co-button class=\"close-button\"\n [label]=\"'NO' | coreLocalize\"\n (click)=\"handleNoClick($event)\"></co-button>\n </ng-container>\n <ng-container *ngIf=\"type === ptype.Information || type === ptype.Error || type === ptype.Warning\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleYesClick($event)\"></co-button>\n </ng-container>\n </div>\n <ng-container *ngIf=\"showRememberCheckbox\">\n <co-input-checkbox [label]=\"'REMEMBER_CHOICE' | coreLocalize\" [(model)]=\"rememberChoice\"></co-input-checkbox>\n </ng-container>\n </ng-template>\n ",
|
|
11860
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11861
|
+
},] }
|
|
11862
|
+
];
|
|
11863
|
+
ConfirmationDialogComponent.ctorParameters = function () { return [
|
|
11864
|
+
{ type: IconCacheService }
|
|
11865
|
+
]; };
|
|
11866
|
+
ConfirmationDialogComponent.propDecorators = {
|
|
11867
|
+
title: [{ type: i0.Input }],
|
|
11868
|
+
text: [{ type: i0.Input }],
|
|
11869
|
+
details: [{ type: i0.Input }],
|
|
11870
|
+
type: [{ type: i0.Input }],
|
|
11871
|
+
showRememberCheckbox: [{ type: i0.Input }],
|
|
11872
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-confirmation-dialog",] }]
|
|
11873
|
+
};
|
|
11874
|
+
|
|
11875
|
+
var CoreDialogService = /** @class */ (function () {
|
|
11876
|
+
function CoreDialogService(_compFactoryResolver, appRef, injector, dynamicComponentService) {
|
|
11877
|
+
this._compFactoryResolver = _compFactoryResolver;
|
|
11878
|
+
this.appRef = appRef;
|
|
11879
|
+
this.injector = injector;
|
|
11880
|
+
this.dynamicComponentService = dynamicComponentService;
|
|
11881
|
+
this._componentRefs = [];
|
|
11882
|
+
}
|
|
11883
|
+
CoreDialogService.prototype.showYesNo = function (title, text, showRememberChoice) {
|
|
11884
|
+
if (showRememberChoice === void 0) { showRememberChoice = false; }
|
|
11885
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11886
|
+
var data;
|
|
11887
|
+
return __generator(this, function (_a) {
|
|
11888
|
+
data = {
|
|
11889
|
+
title: title,
|
|
11890
|
+
text: text,
|
|
11891
|
+
type: AppPopupType.Confirmation,
|
|
11892
|
+
showRememberCheckbox: showRememberChoice
|
|
11893
|
+
};
|
|
11894
|
+
return [2 /*return*/, this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data)];
|
|
11895
|
+
});
|
|
11896
|
+
});
|
|
11897
|
+
};
|
|
11898
|
+
CoreDialogService.prototype.showError = function (message, details) {
|
|
11899
|
+
var data = {
|
|
11900
|
+
title: 'ERROR',
|
|
11901
|
+
text: message,
|
|
11902
|
+
type: AppPopupType.Error
|
|
11903
|
+
};
|
|
11904
|
+
if (details) {
|
|
11905
|
+
data.details = details;
|
|
11671
11906
|
}
|
|
11672
|
-
return
|
|
11907
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
11673
11908
|
};
|
|
11674
|
-
|
|
11909
|
+
CoreDialogService.prototype.showInformation = function (message) {
|
|
11910
|
+
var data = {
|
|
11911
|
+
title: 'INFORMATION',
|
|
11912
|
+
text: message,
|
|
11913
|
+
type: AppPopupType.Information
|
|
11914
|
+
};
|
|
11915
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
11916
|
+
};
|
|
11917
|
+
CoreDialogService.prototype.showWarning = function (message) {
|
|
11918
|
+
var data = {
|
|
11919
|
+
title: 'WARNING',
|
|
11920
|
+
text: message,
|
|
11921
|
+
type: AppPopupType.Warning
|
|
11922
|
+
};
|
|
11923
|
+
return this.dynamicComponentService.createComponent(ConfirmationDialogComponent, data);
|
|
11924
|
+
};
|
|
11925
|
+
return CoreDialogService;
|
|
11675
11926
|
}());
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11927
|
+
CoreDialogService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CoreDialogService_Factory() { return new CoreDialogService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(CoreDynamicComponentService)); }, token: CoreDialogService, providedIn: "root" });
|
|
11928
|
+
CoreDialogService.decorators = [
|
|
11929
|
+
{ type: i0.Injectable, args: [{
|
|
11930
|
+
providedIn: "root"
|
|
11680
11931
|
},] }
|
|
11681
|
-
];
|
|
11932
|
+
];
|
|
11933
|
+
CoreDialogService.ctorParameters = function () { return [
|
|
11934
|
+
{ type: i0.ComponentFactoryResolver },
|
|
11935
|
+
{ type: i0.ApplicationRef },
|
|
11936
|
+
{ type: i0.Injector },
|
|
11937
|
+
{ type: CoreDynamicComponentService }
|
|
11938
|
+
]; };
|
|
11682
11939
|
|
|
11683
|
-
var
|
|
11684
|
-
function
|
|
11940
|
+
var CoreDialogModule = /** @class */ (function () {
|
|
11941
|
+
function CoreDialogModule() {
|
|
11685
11942
|
}
|
|
11686
|
-
|
|
11943
|
+
CoreDialogModule.forRoot = function () {
|
|
11944
|
+
return {
|
|
11945
|
+
ngModule: CoreDialogModule,
|
|
11946
|
+
providers: [
|
|
11947
|
+
CoreDialogService
|
|
11948
|
+
]
|
|
11949
|
+
};
|
|
11950
|
+
};
|
|
11951
|
+
return CoreDialogModule;
|
|
11687
11952
|
}());
|
|
11688
|
-
|
|
11953
|
+
CoreDialogModule.decorators = [
|
|
11689
11954
|
{ type: i0.NgModule, args: [{
|
|
11955
|
+
imports: [
|
|
11956
|
+
common.CommonModule,
|
|
11957
|
+
CoDialogModule,
|
|
11958
|
+
CollapsibleModule,
|
|
11959
|
+
CoreComponentsTranslationModule,
|
|
11960
|
+
ButtonModule,
|
|
11961
|
+
InputCheckboxModule
|
|
11962
|
+
],
|
|
11690
11963
|
declarations: [
|
|
11691
|
-
|
|
11964
|
+
ConfirmationDialogComponent
|
|
11692
11965
|
],
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
]
|
|
11966
|
+
providers: [
|
|
11967
|
+
CoreDialogService
|
|
11968
|
+
],
|
|
11969
|
+
exports: []
|
|
11696
11970
|
},] }
|
|
11697
11971
|
];
|
|
11698
11972
|
|
|
11699
|
-
function equalValidator(valueGetterFn) {
|
|
11700
|
-
return function (control) {
|
|
11701
|
-
var isValid = true;
|
|
11702
|
-
if (valueGetterFn) {
|
|
11703
|
-
var mustBeEqualTo = valueGetterFn.call(this);
|
|
11704
|
-
isValid = control.value === mustBeEqualTo;
|
|
11705
|
-
}
|
|
11706
|
-
return isValid ? null : { "equality": "MESSAGE_FIELD_WRONG_VALUE" };
|
|
11707
|
-
};
|
|
11708
|
-
}
|
|
11709
|
-
|
|
11710
|
-
function passwordValidator(userNameGetterFn) {
|
|
11711
|
-
return function (control) {
|
|
11712
|
-
if (control && control.value) {
|
|
11713
|
-
var username = userNameGetterFn.call(this);
|
|
11714
|
-
var errorString = getValidatePasswordErrorString(StringUtils.ToStringOrDefault(control.value), username);
|
|
11715
|
-
if (errorString) {
|
|
11716
|
-
return { "password": errorString };
|
|
11717
|
-
}
|
|
11718
|
-
}
|
|
11719
|
-
};
|
|
11720
|
-
}
|
|
11721
|
-
// @returns undefined if valid, or an error string if there's an error
|
|
11722
|
-
function getValidatePasswordErrorString(password, username) {
|
|
11723
|
-
var minimumPasswordLength = 10;
|
|
11724
|
-
var lengthOk = password && minimumPasswordLength <= password.length;
|
|
11725
|
-
if (!lengthOk) {
|
|
11726
|
-
return "PASSWORD_MUST_BE_10_CHARACTERS";
|
|
11727
|
-
}
|
|
11728
|
-
var atLeastOneNumber = RegExp(".*[0-9].*").test(password);
|
|
11729
|
-
var atLeastOneLetter = RegExp(".*[a-zA-Z].*").test(password);
|
|
11730
|
-
var atLeastOneSpecial = RegExp(".*[!@#$%&*()'+,\\-./:;<=>?\\[\\]^_`{|}\\\\].*").test(password);
|
|
11731
|
-
if (!atLeastOneNumber || !atLeastOneLetter || !atLeastOneSpecial) {
|
|
11732
|
-
return "PASSWORD_MUST_CONTAIN_LETTER_NUMBER_SPECIAL";
|
|
11733
|
-
}
|
|
11734
|
-
var hasUsernameInPassword = username && RegExp(".*" + username.trim() + ".*", "i").test(password);
|
|
11735
|
-
if (hasUsernameInPassword) {
|
|
11736
|
-
return "PASSWORD_CONTAINS_USERNAME";
|
|
11737
|
-
}
|
|
11738
|
-
}
|
|
11739
|
-
|
|
11740
|
-
function emailValidator(control) {
|
|
11741
|
-
var 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,}))$/;
|
|
11742
|
-
var isValid = !!emailRegex.test(control.value);
|
|
11743
|
-
return isValid ? null : { 'email': 'MESSAGE_EMAIL_NOT_CORRECT' };
|
|
11744
|
-
}
|
|
11745
|
-
|
|
11746
11973
|
var FilterItemComponent = /** @class */ (function () {
|
|
11747
11974
|
function FilterItemComponent(iconService, _changeDetector) {
|
|
11748
11975
|
this.iconService = iconService;
|
|
@@ -12353,36 +12580,409 @@
|
|
|
12353
12580
|
},] }
|
|
12354
12581
|
];
|
|
12355
12582
|
|
|
12356
|
-
var
|
|
12357
|
-
function
|
|
12358
|
-
|
|
12359
|
-
this.
|
|
12360
|
-
this.
|
|
12361
|
-
this.
|
|
12362
|
-
this.
|
|
12363
|
-
this.
|
|
12583
|
+
var CheckmarkOverlayComponent = /** @class */ (function () {
|
|
12584
|
+
function CheckmarkOverlayComponent(_renderer) {
|
|
12585
|
+
var _this = this;
|
|
12586
|
+
this._renderer = _renderer;
|
|
12587
|
+
this.showOverlay = false;
|
|
12588
|
+
this.showWrapper = false;
|
|
12589
|
+
this._visible = false;
|
|
12590
|
+
this._handleAnimationIteration = function (event) {
|
|
12591
|
+
_this.animateDivs.forEach(function (a) { return _this._renderer.removeClass(a.nativeElement, 'animate'); });
|
|
12592
|
+
event.currentTarget.removeEventListener('animationiteration', _this._handleAnimationIteration);
|
|
12593
|
+
};
|
|
12364
12594
|
}
|
|
12365
|
-
Object.defineProperty(
|
|
12595
|
+
Object.defineProperty(CheckmarkOverlayComponent.prototype, "content", {
|
|
12596
|
+
set: function (children) {
|
|
12597
|
+
this.animateDivs = children.toArray();
|
|
12598
|
+
this._checkAnimation();
|
|
12599
|
+
},
|
|
12600
|
+
enumerable: false,
|
|
12601
|
+
configurable: true
|
|
12602
|
+
});
|
|
12603
|
+
Object.defineProperty(CheckmarkOverlayComponent.prototype, "visible", {
|
|
12366
12604
|
get: function () {
|
|
12367
|
-
return this.
|
|
12605
|
+
return this._visible;
|
|
12368
12606
|
},
|
|
12369
12607
|
set: function (value) {
|
|
12370
|
-
|
|
12371
|
-
|
|
12608
|
+
var _this = this;
|
|
12609
|
+
if (value) {
|
|
12610
|
+
this.showOverlay = true;
|
|
12611
|
+
this.showWrapper = true;
|
|
12612
|
+
}
|
|
12613
|
+
else {
|
|
12614
|
+
setTimeout(function () { return _this.showOverlay = false; }, 800);
|
|
12615
|
+
setTimeout(function () { return _this.showWrapper = false; }, 600);
|
|
12616
|
+
}
|
|
12617
|
+
this._visible = value;
|
|
12618
|
+
this._checkAnimation();
|
|
12619
|
+
this._checkAnimationFinished();
|
|
12372
12620
|
},
|
|
12373
12621
|
enumerable: false,
|
|
12374
12622
|
configurable: true
|
|
12375
12623
|
});
|
|
12376
|
-
|
|
12624
|
+
CheckmarkOverlayComponent.prototype.showClass = function () {
|
|
12377
12625
|
return true;
|
|
12378
12626
|
};
|
|
12379
|
-
|
|
12627
|
+
CheckmarkOverlayComponent.prototype._checkAnimation = function () {
|
|
12380
12628
|
var _this = this;
|
|
12381
|
-
|
|
12382
|
-
_this.
|
|
12383
|
-
}
|
|
12384
|
-
};
|
|
12385
|
-
|
|
12629
|
+
if (this.visible && this.animateDivs) {
|
|
12630
|
+
this.animateDivs.forEach(function (a) { return _this._renderer.addClass(a.nativeElement, 'animate'); });
|
|
12631
|
+
}
|
|
12632
|
+
};
|
|
12633
|
+
CheckmarkOverlayComponent.prototype._checkAnimationFinished = function () {
|
|
12634
|
+
var _this = this;
|
|
12635
|
+
if (!this.visible && this.animateDivs) {
|
|
12636
|
+
this.animateDivs.forEach(function (a) {
|
|
12637
|
+
a.nativeElement.addEventListener('animationiteration', _this._handleAnimationIteration);
|
|
12638
|
+
});
|
|
12639
|
+
}
|
|
12640
|
+
};
|
|
12641
|
+
return CheckmarkOverlayComponent;
|
|
12642
|
+
}());
|
|
12643
|
+
CheckmarkOverlayComponent.decorators = [
|
|
12644
|
+
{ type: i0.Component, args: [{
|
|
12645
|
+
selector: "co-checkmark-overlay",
|
|
12646
|
+
template: "\n <div *ngIf=\"showOverlay\">\n <div class=\"checkmark-overlay-wrapper\" *ngIf=\"showWrapper\" @showHideSaveCancel>\n <div class=\"checkmark-buttons-button save\" [class.finished]=\"!visible\">\n <div class=\"save-button-spinner\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!visible && successful\"></div>\n </div>\n </div>\n </div>\n ",
|
|
12647
|
+
animations: [
|
|
12648
|
+
animations.trigger('showHideSaveCancel', [
|
|
12649
|
+
animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
12650
|
+
animations.state('void', animations.style({ transform: 'scaleY(0)', opacity: 0 })),
|
|
12651
|
+
animations.transition('void <=> *', animations.animate(200))
|
|
12652
|
+
]),
|
|
12653
|
+
],
|
|
12654
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
12655
|
+
},] }
|
|
12656
|
+
];
|
|
12657
|
+
CheckmarkOverlayComponent.ctorParameters = function () { return [
|
|
12658
|
+
{ type: i0.Renderer2 }
|
|
12659
|
+
]; };
|
|
12660
|
+
CheckmarkOverlayComponent.propDecorators = {
|
|
12661
|
+
content: [{ type: i0.ViewChildren, args: ['animatediv', { read: i0.ElementRef },] }],
|
|
12662
|
+
visible: [{ type: i0.Input }],
|
|
12663
|
+
successful: [{ type: i0.Input }],
|
|
12664
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-checkmark-overlay",] }]
|
|
12665
|
+
};
|
|
12666
|
+
|
|
12667
|
+
var CheckmarkOverlayModule = /** @class */ (function () {
|
|
12668
|
+
function CheckmarkOverlayModule() {
|
|
12669
|
+
}
|
|
12670
|
+
return CheckmarkOverlayModule;
|
|
12671
|
+
}());
|
|
12672
|
+
CheckmarkOverlayModule.decorators = [
|
|
12673
|
+
{ type: i0.NgModule, args: [{
|
|
12674
|
+
imports: [
|
|
12675
|
+
common.CommonModule
|
|
12676
|
+
],
|
|
12677
|
+
declarations: [
|
|
12678
|
+
CheckmarkOverlayComponent
|
|
12679
|
+
],
|
|
12680
|
+
exports: [
|
|
12681
|
+
CheckmarkOverlayComponent
|
|
12682
|
+
]
|
|
12683
|
+
},] }
|
|
12684
|
+
];
|
|
12685
|
+
|
|
12686
|
+
var FilterItemViewmodel = /** @class */ (function () {
|
|
12687
|
+
function FilterItemViewmodel(code, description, checked, count, valueName) {
|
|
12688
|
+
this.checked = false;
|
|
12689
|
+
this.code = code;
|
|
12690
|
+
this.description = description === null || description === void 0 ? void 0 : description.toString();
|
|
12691
|
+
this.checked = checked;
|
|
12692
|
+
this.count = count;
|
|
12693
|
+
this.valueName = valueName;
|
|
12694
|
+
}
|
|
12695
|
+
FilterItemViewmodel.prototype.codeAsNumber = function () { return NumberUtils.ParseInt(this.code); };
|
|
12696
|
+
return FilterItemViewmodel;
|
|
12697
|
+
}());
|
|
12698
|
+
|
|
12699
|
+
var FilterViewmodel = /** @class */ (function () {
|
|
12700
|
+
function FilterViewmodel(collection, fields) {
|
|
12701
|
+
var _this = this;
|
|
12702
|
+
this.filterItems = [];
|
|
12703
|
+
collection.forEach(function (item) {
|
|
12704
|
+
var _a, _b, _c;
|
|
12705
|
+
_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));
|
|
12706
|
+
});
|
|
12707
|
+
}
|
|
12708
|
+
return FilterViewmodel;
|
|
12709
|
+
}());
|
|
12710
|
+
|
|
12711
|
+
var BarCodeScanner = /** @class */ (function () {
|
|
12712
|
+
function BarCodeScanner() {
|
|
12713
|
+
var _this = this;
|
|
12714
|
+
this._buffer = [];
|
|
12715
|
+
this._keyPress = function (event) {
|
|
12716
|
+
if (event.key === "Enter") {
|
|
12717
|
+
document.dispatchEvent(_this._createScanEvent());
|
|
12718
|
+
_this._buffer.length = 0;
|
|
12719
|
+
}
|
|
12720
|
+
else {
|
|
12721
|
+
var str = event.key;
|
|
12722
|
+
_this._buffer.push(str);
|
|
12723
|
+
}
|
|
12724
|
+
};
|
|
12725
|
+
document.addEventListener('keypress', this._keyPress);
|
|
12726
|
+
}
|
|
12727
|
+
BarCodeScanner.prototype.close = function () {
|
|
12728
|
+
document.removeEventListener('keypress', this._keyPress);
|
|
12729
|
+
};
|
|
12730
|
+
BarCodeScanner.prototype._createScanEvent = function () {
|
|
12731
|
+
return new CustomEvent("barcodescanned", { detail: this._buffer.join("") });
|
|
12732
|
+
};
|
|
12733
|
+
return BarCodeScanner;
|
|
12734
|
+
}());
|
|
12735
|
+
|
|
12736
|
+
var ScannerService = /** @class */ (function () {
|
|
12737
|
+
function ScannerService(_ngZone) {
|
|
12738
|
+
var _this = this;
|
|
12739
|
+
this._ngZone = _ngZone;
|
|
12740
|
+
this.barCodeScanner = new BarCodeScanner();
|
|
12741
|
+
this._barCodeScanned = function (event) {
|
|
12742
|
+
if (_this._activeInput) {
|
|
12743
|
+
_this._activeInput.triggerCodeScanned(event.detail);
|
|
12744
|
+
}
|
|
12745
|
+
};
|
|
12746
|
+
document.addEventListener("barcodescanned", this._barCodeScanned);
|
|
12747
|
+
}
|
|
12748
|
+
ScannerService.prototype.ngOnDestroy = function () {
|
|
12749
|
+
document.removeEventListener("barcodescanned", this._barCodeScanned);
|
|
12750
|
+
this.barCodeScanner.close();
|
|
12751
|
+
};
|
|
12752
|
+
ScannerService.prototype.registerInput = function (input) {
|
|
12753
|
+
this._activeInput = input;
|
|
12754
|
+
};
|
|
12755
|
+
return ScannerService;
|
|
12756
|
+
}());
|
|
12757
|
+
ScannerService.decorators = [
|
|
12758
|
+
{ type: i0.Injectable }
|
|
12759
|
+
];
|
|
12760
|
+
ScannerService.ctorParameters = function () { return [
|
|
12761
|
+
{ type: i0.NgZone }
|
|
12762
|
+
]; };
|
|
12763
|
+
|
|
12764
|
+
var InputScannerComponent = /** @class */ (function () {
|
|
12765
|
+
function InputScannerComponent(_scannerService) {
|
|
12766
|
+
this._scannerService = _scannerService;
|
|
12767
|
+
this.centerLabel = false;
|
|
12768
|
+
this.useLeftIcon = false;
|
|
12769
|
+
this.useRightIcon = false;
|
|
12770
|
+
this.modelChange = new i0.EventEmitter();
|
|
12771
|
+
this.leftIconClick = new i0.EventEmitter();
|
|
12772
|
+
this.rightIconClick = new i0.EventEmitter();
|
|
12773
|
+
this.search = new i0.EventEmitter();
|
|
12774
|
+
this.barCodeScanned = new i0.EventEmitter();
|
|
12775
|
+
this._scannerService.registerInput(this);
|
|
12776
|
+
}
|
|
12777
|
+
InputScannerComponent.prototype.showClass = function () {
|
|
12778
|
+
return true;
|
|
12779
|
+
};
|
|
12780
|
+
InputScannerComponent.prototype.triggerCodeScanned = function (code) {
|
|
12781
|
+
this.model = code;
|
|
12782
|
+
this.barCodeScanned.next(this.model);
|
|
12783
|
+
};
|
|
12784
|
+
return InputScannerComponent;
|
|
12785
|
+
}());
|
|
12786
|
+
InputScannerComponent.decorators = [
|
|
12787
|
+
{ type: i0.Component, args: [{
|
|
12788
|
+
selector: 'co-input-scanner',
|
|
12789
|
+
template: "\n <co-input-search\n [(model)]=\"model\"\n [customCssClass]=\"customCssClass\"\n [placeholder]=\"placeholder\"\n [centerLabel]=\"centerLabel\"\n [useLeftIcon]=\"useLeftIcon\"\n [leftIconData]=\"leftIconData\"\n [useRightIcon]=\"useRightIcon\"\n [rightIconData]=\"rightIconData\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n (search)=\"search.emit($event)\"\n ></co-input-search>\n ",
|
|
12790
|
+
providers: [
|
|
12791
|
+
ScannerService,
|
|
12792
|
+
OverlayService
|
|
12793
|
+
],
|
|
12794
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
12795
|
+
},] }
|
|
12796
|
+
];
|
|
12797
|
+
InputScannerComponent.ctorParameters = function () { return [
|
|
12798
|
+
{ type: ScannerService }
|
|
12799
|
+
]; };
|
|
12800
|
+
InputScannerComponent.propDecorators = {
|
|
12801
|
+
model: [{ type: i0.Input }],
|
|
12802
|
+
placeholder: [{ type: i0.Input }],
|
|
12803
|
+
centerLabel: [{ type: i0.Input }],
|
|
12804
|
+
useLeftIcon: [{ type: i0.Input }],
|
|
12805
|
+
useRightIcon: [{ type: i0.Input }],
|
|
12806
|
+
leftIconData: [{ type: i0.Input }],
|
|
12807
|
+
rightIconData: [{ type: i0.Input }],
|
|
12808
|
+
customCssClass: [{ type: i0.Input }],
|
|
12809
|
+
modelChange: [{ type: i0.Output }],
|
|
12810
|
+
leftIconClick: [{ type: i0.Output }],
|
|
12811
|
+
rightIconClick: [{ type: i0.Output }],
|
|
12812
|
+
search: [{ type: i0.Output }],
|
|
12813
|
+
barCodeScanned: [{ type: i0.Output }],
|
|
12814
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-input-scanner',] }]
|
|
12815
|
+
};
|
|
12816
|
+
|
|
12817
|
+
var InputScannerModule = /** @class */ (function () {
|
|
12818
|
+
function InputScannerModule() {
|
|
12819
|
+
}
|
|
12820
|
+
return InputScannerModule;
|
|
12821
|
+
}());
|
|
12822
|
+
InputScannerModule.decorators = [
|
|
12823
|
+
{ type: i0.NgModule, args: [{
|
|
12824
|
+
imports: [
|
|
12825
|
+
common.CommonModule,
|
|
12826
|
+
InputSearchModule
|
|
12827
|
+
],
|
|
12828
|
+
declarations: [
|
|
12829
|
+
InputScannerComponent
|
|
12830
|
+
],
|
|
12831
|
+
exports: [
|
|
12832
|
+
InputScannerComponent
|
|
12833
|
+
]
|
|
12834
|
+
},] }
|
|
12835
|
+
];
|
|
12836
|
+
|
|
12837
|
+
var LoaderComponent = /** @class */ (function () {
|
|
12838
|
+
function LoaderComponent() {
|
|
12839
|
+
}
|
|
12840
|
+
LoaderComponent.prototype.showClass = function () {
|
|
12841
|
+
return true;
|
|
12842
|
+
};
|
|
12843
|
+
return LoaderComponent;
|
|
12844
|
+
}());
|
|
12845
|
+
LoaderComponent.decorators = [
|
|
12846
|
+
{ type: i0.Component, args: [{
|
|
12847
|
+
selector: 'co-loader',
|
|
12848
|
+
template: "\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 200 200\" xml:space=\"preserve\">\n <defs>\n <linearGradient id=\"gradientFade\" x1=\"20%\" x2=\"50%\" y1=\"60%\" y2=\"100%\">\n <stop offset=\"0%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"25%\" stop-opacity=\"75%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"50%\" stop-opacity=\"50%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"75%\" stop-opacity=\"25%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"100%\" stop-opacity=\"5%\" class=\"spinner-gradient-stop\" />\n </linearGradient>\n </defs> \n <g id=\"mask\">\n <ellipse transform=\"matrix(0.7071 -0.7071 0.7071 0.7071 -41.0887 100.8995)\" class=\"circle\" cx=\"101.25\" cy=\"101.25\" rx=\"77.58\"\n ry=\"77.58\"/>\n </g>\n <g>\n <circle id=\"ring\" class=\"ring-color\" cx=\"100\" cy=\"100\" r=\"90\" fill=\"transparent\" />\n </g>\n <g id=\"js\">\n <path class=\"main-color\" d=\"M87.93,149.17c-0.12-0.17-0.08-0.4,0.09-0.52l0.61-0.45c2.92-2.14,4.34-4.61,4.34-7.56l0-20.64h2.47\n c0.74,0,1.34,0.6,1.34,1.34v18.32c0,2.97-0.65,5.4-1.93,7.23c-0.61,0.89-1.25,1.66-1.9,2.28c-0.63,0.6-1.41,1.23-2.3,1.87\n l-0.65,0.47c-0.18,0.12-0.42,0.08-0.54-0.1L87.93,149.17z\"/>\n <path class=\"main-color\" d=\"M107.12,142.92c-2.24,0-4.18-0.59-5.79-1.75l0,0c-0.47-0.34-0.59-1-0.27-1.48l1.06-1.59\n c0.12-0.17,0.35-0.22,0.53-0.11l0.58,0.38c1.18,0.77,2.43,1.14,3.84,1.14c1.36,0,2.39-0.25,3.05-0.75\n c0.59-0.44,0.86-1.04,0.86-1.92c0-0.59-0.22-1.15-0.68-1.71c-0.55-0.67-1.23-1.29-2.02-1.84c-0.85-0.58-1.74-1.22-2.66-1.88\n c-0.97-0.7-1.81-1.55-2.5-2.53c-0.75-1.06-1.12-2.23-1.12-3.46c0-1.67,0.63-3.02,1.89-4.01c1.17-0.93,2.74-1.4,4.66-1.4\n c1.83,0,3.55,0.37,5.13,1.11l0.62,0.29c0.19,0.09,0.27,0.31,0.19,0.5l-1.03,2.37c-0.08,0.19-0.31,0.28-0.5,0.2l-0.64-0.27\n c-1.22-0.52-2.45-0.78-3.64-0.78c-3.01,0-3.01,1.31-3.01,1.94c0,0.63,0.22,1.21,0.68,1.77c0.55,0.67,1.22,1.28,2.01,1.8\n c0.91,0.61,1.8,1.22,2.66,1.82c0.97,0.68,1.82,1.52,2.5,2.47c0.75,1.04,1.13,2.2,1.13,3.44c0,2.05-0.72,3.64-2.14,4.72\n C111.17,142.4,109.36,142.92,107.12,142.92z\"/>\n </g>\n <g id=\"i\">\n <path class=\"second-color\" d=\"M38.1,100.24V80.62c0-0.18,0.14-0.32,0.32-0.32h2.53c0.88,0,1.6,0.72,1.6,1.6v18.34\n c0,0.18-0.14,0.32-0.32,0.32h-3.8C38.25,100.56,38.1,100.42,38.1,100.24z\"/>\n </g>\n <g id=\"n\">\n <path class=\"second-color\" d=\"M126.95,107l-14.97-17.18c-0.19-0.22-0.56-0.09-0.56,0.21v16.62c0,0.18-0.14,0.32-0.32,0.32h-3.8\n c-0.18,0-0.32-0.14-0.32-0.32V82.12c0-0.88,0.72-1.6,1.6-1.6h1.07c0.09,0,0.18,0.04,0.24,0.11l14.97,17.22\n c0.19,0.22,0.56,0.09,0.56-0.21V80.99c0-0.18,0.14-0.32,0.32-0.32h3.8c0.18,0,0.32,0.14,0.32,0.32v25.81\n c0,0.18-0.14,0.32-0.32,0.32h-2.35C127.1,107.11,127.01,107.07,126.95,107z\"/>\n </g>\n <g id=\"e\">\n <path class=\"second-color\" d=\"M150.28,105.37V80.99c0-0.18,0.14-0.32,0.32-0.32h13.12c0.18,0,0.32,0.14,0.32,0.32v3.59\n c0,0.18-0.14,0.32-0.32,0.32h-8.68c-0.18,0-0.32,0.14-0.32,0.32v5.14c0,0.18,0.14,0.32,0.32,0.32h7.77c0.18,0,0.32,0.14,0.32,0.32\n v3.55c0,0.18-0.14,0.32-0.32,0.32h-7.77c-0.18,0-0.32,0.14-0.32,0.32v7.17c0,0.18,0.14,0.32,0.32,0.32h9.04\n c0.18,0,0.32,0.14,0.32,0.32v3.66c0,0.18-0.14,0.32-0.32,0.32h-12.2C151,106.97,150.28,106.25,150.28,105.37z\"/>\n </g>\n <g id=\"o\">\n <path class=\"second-color\" d=\"M67.44,86.2c0.59,0.54,0.68,1.43,0.23,2.09c-0.41,0.6-0.75,1.24-1.01,1.92c-0.42,1.1-0.63,2.31-0.63,3.61\n c0,1.3,0.21,2.51,0.63,3.61c0.42,1.1,1.04,2.1,1.88,2.98c0.82,0.87,1.75,1.53,2.8,1.97c1.04,0.44,2.19,0.66,3.44,0.66\n c1.25,0,2.4-0.22,3.43-0.66c1.04-0.44,1.97-1.09,2.78-1.97c0.83-0.88,1.45-1.88,1.86-2.98c0.42-1.1,0.63-2.31,0.63-3.61\n c0-1.3-0.21-2.51-0.63-3.62c-0.42-1.1-1.04-2.11-1.87-3c-0.81-0.87-1.74-1.53-2.78-1.97c-1.04-0.44-2.18-0.66-3.43-0.66\n c-0.77,0-1.49,0.08-2.18,0.25c-0.75,0.18-1.53-0.19-1.84-0.9l-1.03-2.32c-0.07-0.17,0-0.36,0.17-0.43\n c1.49-0.58,3.12-0.87,4.86-0.87c1.87,0,3.59,0.33,5.17,0.99c1.58,0.66,3,1.64,4.27,2.95c1.26,1.3,2.21,2.76,2.84,4.36\n c0.63,1.6,0.95,3.34,0.95,5.22c0,1.88-0.32,3.62-0.95,5.22c-0.63,1.6-1.58,3.06-2.84,4.36c-1.27,1.31-2.69,2.29-4.27,2.95\n c-1.58,0.66-3.31,0.99-5.17,0.99c-1.87,0-3.6-0.33-5.17-0.99c-1.58-0.66-3-1.64-4.27-2.95c-1.26-1.3-2.21-2.76-2.84-4.36\n c-0.63-1.6-0.95-3.34-0.95-5.22c0-1.88,0.32-3.62,0.95-5.22c0.6-1.51,1.47-2.88,2.63-4.13c0.12-0.13,0.32-0.13,0.45-0.02\n L67.44,86.2z\"/>\n </g>\n <g id=\"smile\">\n <path class=\"main-color\" d=\"M101.26,178.35c-3.73-0.01-7.38-0.28-10.86-0.82c-3.62-0.57-6.94-1.38-9.85-2.4c-3.01-1.05-5.69-2.3-7.94-3.73\n c-1.09-0.71-2.1-1.76-2.99-2.84c0.98,0.74,2.03,1.44,3.16,2.07c2.38,1.38,5.13,2.58,8.16,3.55c5.99,1.93,13.15,2.99,20.17,2.99\n h0.31c7.01,0,14.17-1.06,20.16-2.99c3.03-0.97,5.78-2.16,8.17-3.55c1.12-0.64,2.17-1.32,3.15-2.06c-0.89,1.08-1.89,2.13-2.99,2.83\n c-2.25,1.42-4.92,2.67-7.94,3.72c-2.91,1.02-6.23,1.83-9.85,2.4C108.65,178.07,105,178.35,101.26,178.35z\"/>\n </g>\n </svg>\n ",
|
|
12849
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
12850
|
+
},] }
|
|
12851
|
+
];
|
|
12852
|
+
LoaderComponent.propDecorators = {
|
|
12853
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-loader',] }]
|
|
12854
|
+
};
|
|
12855
|
+
|
|
12856
|
+
var LoaderModule = /** @class */ (function () {
|
|
12857
|
+
function LoaderModule() {
|
|
12858
|
+
}
|
|
12859
|
+
return LoaderModule;
|
|
12860
|
+
}());
|
|
12861
|
+
LoaderModule.decorators = [
|
|
12862
|
+
{ type: i0.NgModule, args: [{
|
|
12863
|
+
imports: [
|
|
12864
|
+
common.CommonModule
|
|
12865
|
+
],
|
|
12866
|
+
declarations: [
|
|
12867
|
+
LoaderComponent
|
|
12868
|
+
],
|
|
12869
|
+
exports: [
|
|
12870
|
+
LoaderComponent
|
|
12871
|
+
]
|
|
12872
|
+
},] }
|
|
12873
|
+
];
|
|
12874
|
+
|
|
12875
|
+
var FilterPipe = /** @class */ (function () {
|
|
12876
|
+
function FilterPipe() {
|
|
12877
|
+
}
|
|
12878
|
+
FilterPipe.prototype.transform = function (items, field, value) {
|
|
12879
|
+
if (!items || !field) {
|
|
12880
|
+
return items;
|
|
12881
|
+
}
|
|
12882
|
+
return items.filter(function (item) { return item[field] === value; });
|
|
12883
|
+
};
|
|
12884
|
+
return FilterPipe;
|
|
12885
|
+
}());
|
|
12886
|
+
FilterPipe.decorators = [
|
|
12887
|
+
{ type: i0.Pipe, args: [{
|
|
12888
|
+
name: "filter",
|
|
12889
|
+
pure: false
|
|
12890
|
+
},] }
|
|
12891
|
+
];
|
|
12892
|
+
|
|
12893
|
+
var FilterPipeModule = /** @class */ (function () {
|
|
12894
|
+
function FilterPipeModule() {
|
|
12895
|
+
}
|
|
12896
|
+
return FilterPipeModule;
|
|
12897
|
+
}());
|
|
12898
|
+
FilterPipeModule.decorators = [
|
|
12899
|
+
{ type: i0.NgModule, args: [{
|
|
12900
|
+
declarations: [
|
|
12901
|
+
FilterPipe
|
|
12902
|
+
],
|
|
12903
|
+
exports: [
|
|
12904
|
+
FilterPipe
|
|
12905
|
+
]
|
|
12906
|
+
},] }
|
|
12907
|
+
];
|
|
12908
|
+
|
|
12909
|
+
function equalValidator(valueGetterFn) {
|
|
12910
|
+
return function (control) {
|
|
12911
|
+
var isValid = true;
|
|
12912
|
+
if (valueGetterFn) {
|
|
12913
|
+
var mustBeEqualTo = valueGetterFn.call(this);
|
|
12914
|
+
isValid = control.value === mustBeEqualTo;
|
|
12915
|
+
}
|
|
12916
|
+
return isValid ? null : { "equality": "MESSAGE_FIELD_WRONG_VALUE" };
|
|
12917
|
+
};
|
|
12918
|
+
}
|
|
12919
|
+
|
|
12920
|
+
function passwordValidator(userNameGetterFn) {
|
|
12921
|
+
return function (control) {
|
|
12922
|
+
if (control && control.value) {
|
|
12923
|
+
var username = userNameGetterFn.call(this);
|
|
12924
|
+
var errorString = getValidatePasswordErrorString(StringUtils.ToStringOrDefault(control.value), username);
|
|
12925
|
+
if (errorString) {
|
|
12926
|
+
return { "password": errorString };
|
|
12927
|
+
}
|
|
12928
|
+
}
|
|
12929
|
+
};
|
|
12930
|
+
}
|
|
12931
|
+
// @returns undefined if valid, or an error string if there's an error
|
|
12932
|
+
function getValidatePasswordErrorString(password, username) {
|
|
12933
|
+
var minimumPasswordLength = 10;
|
|
12934
|
+
var lengthOk = password && minimumPasswordLength <= password.length;
|
|
12935
|
+
if (!lengthOk) {
|
|
12936
|
+
return "PASSWORD_MUST_BE_10_CHARACTERS";
|
|
12937
|
+
}
|
|
12938
|
+
var atLeastOneNumber = RegExp(".*[0-9].*").test(password);
|
|
12939
|
+
var atLeastOneLetter = RegExp(".*[a-zA-Z].*").test(password);
|
|
12940
|
+
var atLeastOneSpecial = RegExp(".*[!@#$%&*()'+,\\-./:;<=>?\\[\\]^_`{|}\\\\].*").test(password);
|
|
12941
|
+
if (!atLeastOneNumber || !atLeastOneLetter || !atLeastOneSpecial) {
|
|
12942
|
+
return "PASSWORD_MUST_CONTAIN_LETTER_NUMBER_SPECIAL";
|
|
12943
|
+
}
|
|
12944
|
+
var hasUsernameInPassword = username && RegExp(".*" + username.trim() + ".*", "i").test(password);
|
|
12945
|
+
if (hasUsernameInPassword) {
|
|
12946
|
+
return "PASSWORD_CONTAINS_USERNAME";
|
|
12947
|
+
}
|
|
12948
|
+
}
|
|
12949
|
+
|
|
12950
|
+
function emailValidator(control) {
|
|
12951
|
+
var 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,}))$/;
|
|
12952
|
+
var isValid = !!emailRegex.test(control.value);
|
|
12953
|
+
return isValid ? null : { 'email': 'MESSAGE_EMAIL_NOT_CORRECT' };
|
|
12954
|
+
}
|
|
12955
|
+
|
|
12956
|
+
var TooltipComponent = /** @class */ (function () {
|
|
12957
|
+
function TooltipComponent(_elementRef, _changeDetector) {
|
|
12958
|
+
this._elementRef = _elementRef;
|
|
12959
|
+
this._changeDetector = _changeDetector;
|
|
12960
|
+
this.top = -100;
|
|
12961
|
+
this.left = -100;
|
|
12962
|
+
this.bottom = false;
|
|
12963
|
+
this.animate = true;
|
|
12964
|
+
}
|
|
12965
|
+
Object.defineProperty(TooltipComponent.prototype, "hostElement", {
|
|
12966
|
+
get: function () {
|
|
12967
|
+
return this._hostElement;
|
|
12968
|
+
},
|
|
12969
|
+
set: function (value) {
|
|
12970
|
+
this._hostElement = value;
|
|
12971
|
+
// this._positionTooltip();
|
|
12972
|
+
},
|
|
12973
|
+
enumerable: false,
|
|
12974
|
+
configurable: true
|
|
12975
|
+
});
|
|
12976
|
+
TooltipComponent.prototype.showClass = function () {
|
|
12977
|
+
return true;
|
|
12978
|
+
};
|
|
12979
|
+
TooltipComponent.prototype.ngAfterViewInit = function () {
|
|
12980
|
+
var _this = this;
|
|
12981
|
+
setTimeout(function () {
|
|
12982
|
+
_this._positionTooltip();
|
|
12983
|
+
});
|
|
12984
|
+
};
|
|
12985
|
+
TooltipComponent.prototype._positionTooltip = function () {
|
|
12386
12986
|
if (this.hostElement && this._elementRef && this._elementRef.nativeElement) {
|
|
12387
12987
|
var rect = this.hostElement.getBoundingClientRect();
|
|
12388
12988
|
var ownRect = this._elementRef.nativeElement.getBoundingClientRect();
|
|
@@ -12552,109 +13152,6 @@
|
|
|
12552
13152
|
},] }
|
|
12553
13153
|
];
|
|
12554
13154
|
|
|
12555
|
-
var CheckmarkOverlayComponent = /** @class */ (function () {
|
|
12556
|
-
function CheckmarkOverlayComponent(_renderer) {
|
|
12557
|
-
var _this = this;
|
|
12558
|
-
this._renderer = _renderer;
|
|
12559
|
-
this.showOverlay = false;
|
|
12560
|
-
this.showWrapper = false;
|
|
12561
|
-
this._visible = false;
|
|
12562
|
-
this._handleAnimationIteration = function (event) {
|
|
12563
|
-
_this.animateDivs.forEach(function (a) { return _this._renderer.removeClass(a.nativeElement, 'animate'); });
|
|
12564
|
-
event.currentTarget.removeEventListener('animationiteration', _this._handleAnimationIteration);
|
|
12565
|
-
};
|
|
12566
|
-
}
|
|
12567
|
-
Object.defineProperty(CheckmarkOverlayComponent.prototype, "content", {
|
|
12568
|
-
set: function (children) {
|
|
12569
|
-
this.animateDivs = children.toArray();
|
|
12570
|
-
this._checkAnimation();
|
|
12571
|
-
},
|
|
12572
|
-
enumerable: false,
|
|
12573
|
-
configurable: true
|
|
12574
|
-
});
|
|
12575
|
-
Object.defineProperty(CheckmarkOverlayComponent.prototype, "visible", {
|
|
12576
|
-
get: function () {
|
|
12577
|
-
return this._visible;
|
|
12578
|
-
},
|
|
12579
|
-
set: function (value) {
|
|
12580
|
-
var _this = this;
|
|
12581
|
-
if (value) {
|
|
12582
|
-
this.showOverlay = true;
|
|
12583
|
-
this.showWrapper = true;
|
|
12584
|
-
}
|
|
12585
|
-
else {
|
|
12586
|
-
setTimeout(function () { return _this.showOverlay = false; }, 800);
|
|
12587
|
-
setTimeout(function () { return _this.showWrapper = false; }, 600);
|
|
12588
|
-
}
|
|
12589
|
-
this._visible = value;
|
|
12590
|
-
this._checkAnimation();
|
|
12591
|
-
this._checkAnimationFinished();
|
|
12592
|
-
},
|
|
12593
|
-
enumerable: false,
|
|
12594
|
-
configurable: true
|
|
12595
|
-
});
|
|
12596
|
-
CheckmarkOverlayComponent.prototype.showClass = function () {
|
|
12597
|
-
return true;
|
|
12598
|
-
};
|
|
12599
|
-
CheckmarkOverlayComponent.prototype._checkAnimation = function () {
|
|
12600
|
-
var _this = this;
|
|
12601
|
-
if (this.visible && this.animateDivs) {
|
|
12602
|
-
this.animateDivs.forEach(function (a) { return _this._renderer.addClass(a.nativeElement, 'animate'); });
|
|
12603
|
-
}
|
|
12604
|
-
};
|
|
12605
|
-
CheckmarkOverlayComponent.prototype._checkAnimationFinished = function () {
|
|
12606
|
-
var _this = this;
|
|
12607
|
-
if (!this.visible && this.animateDivs) {
|
|
12608
|
-
this.animateDivs.forEach(function (a) {
|
|
12609
|
-
a.nativeElement.addEventListener('animationiteration', _this._handleAnimationIteration);
|
|
12610
|
-
});
|
|
12611
|
-
}
|
|
12612
|
-
};
|
|
12613
|
-
return CheckmarkOverlayComponent;
|
|
12614
|
-
}());
|
|
12615
|
-
CheckmarkOverlayComponent.decorators = [
|
|
12616
|
-
{ type: i0.Component, args: [{
|
|
12617
|
-
selector: "co-checkmark-overlay",
|
|
12618
|
-
template: "\n <div *ngIf=\"showOverlay\">\n <div class=\"checkmark-overlay-wrapper\" *ngIf=\"showWrapper\" @showHideSaveCancel>\n <div class=\"checkmark-buttons-button save\" [class.finished]=\"!visible\">\n <div class=\"save-button-spinner\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!visible && successful\"></div>\n </div>\n </div>\n </div>\n ",
|
|
12619
|
-
animations: [
|
|
12620
|
-
animations.trigger('showHideSaveCancel', [
|
|
12621
|
-
animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
12622
|
-
animations.state('void', animations.style({ transform: 'scaleY(0)', opacity: 0 })),
|
|
12623
|
-
animations.transition('void <=> *', animations.animate(200))
|
|
12624
|
-
]),
|
|
12625
|
-
],
|
|
12626
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
12627
|
-
},] }
|
|
12628
|
-
];
|
|
12629
|
-
CheckmarkOverlayComponent.ctorParameters = function () { return [
|
|
12630
|
-
{ type: i0.Renderer2 }
|
|
12631
|
-
]; };
|
|
12632
|
-
CheckmarkOverlayComponent.propDecorators = {
|
|
12633
|
-
content: [{ type: i0.ViewChildren, args: ['animatediv', { read: i0.ElementRef },] }],
|
|
12634
|
-
visible: [{ type: i0.Input }],
|
|
12635
|
-
successful: [{ type: i0.Input }],
|
|
12636
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-checkmark-overlay",] }]
|
|
12637
|
-
};
|
|
12638
|
-
|
|
12639
|
-
var CheckmarkOverlayModule = /** @class */ (function () {
|
|
12640
|
-
function CheckmarkOverlayModule() {
|
|
12641
|
-
}
|
|
12642
|
-
return CheckmarkOverlayModule;
|
|
12643
|
-
}());
|
|
12644
|
-
CheckmarkOverlayModule.decorators = [
|
|
12645
|
-
{ type: i0.NgModule, args: [{
|
|
12646
|
-
imports: [
|
|
12647
|
-
common.CommonModule
|
|
12648
|
-
],
|
|
12649
|
-
declarations: [
|
|
12650
|
-
CheckmarkOverlayComponent
|
|
12651
|
-
],
|
|
12652
|
-
exports: [
|
|
12653
|
-
CheckmarkOverlayComponent
|
|
12654
|
-
]
|
|
12655
|
-
},] }
|
|
12656
|
-
];
|
|
12657
|
-
|
|
12658
13155
|
var BaseModuleScreenConfigService = /** @class */ (function () {
|
|
12659
13156
|
function BaseModuleScreenConfigService() {
|
|
12660
13157
|
// emits the params of the loaded config, each time when a new config was loaded
|
|
@@ -13104,31 +13601,6 @@
|
|
|
13104
13601
|
},] }
|
|
13105
13602
|
];
|
|
13106
13603
|
|
|
13107
|
-
var FilterItemViewmodel = /** @class */ (function () {
|
|
13108
|
-
function FilterItemViewmodel(code, description, checked, count, valueName) {
|
|
13109
|
-
this.checked = false;
|
|
13110
|
-
this.code = code;
|
|
13111
|
-
this.description = description === null || description === void 0 ? void 0 : description.toString();
|
|
13112
|
-
this.checked = checked;
|
|
13113
|
-
this.count = count;
|
|
13114
|
-
this.valueName = valueName;
|
|
13115
|
-
}
|
|
13116
|
-
FilterItemViewmodel.prototype.codeAsNumber = function () { return NumberUtils.ParseInt(this.code); };
|
|
13117
|
-
return FilterItemViewmodel;
|
|
13118
|
-
}());
|
|
13119
|
-
|
|
13120
|
-
var FilterViewmodel = /** @class */ (function () {
|
|
13121
|
-
function FilterViewmodel(collection, fields) {
|
|
13122
|
-
var _this = this;
|
|
13123
|
-
this.filterItems = [];
|
|
13124
|
-
collection.forEach(function (item) {
|
|
13125
|
-
var _a, _b, _c;
|
|
13126
|
-
_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));
|
|
13127
|
-
});
|
|
13128
|
-
}
|
|
13129
|
-
return FilterViewmodel;
|
|
13130
|
-
}());
|
|
13131
|
-
|
|
13132
13604
|
var ColorSequenceService = /** @class */ (function () {
|
|
13133
13605
|
function ColorSequenceService() {
|
|
13134
13606
|
this.colors = new Map();
|
|
@@ -13189,6 +13661,8 @@
|
|
|
13189
13661
|
exports.ColorSequenceService = ColorSequenceService;
|
|
13190
13662
|
exports.CoreComponentsTranslationModule = CoreComponentsTranslationModule;
|
|
13191
13663
|
exports.CoreComponentsTranslationService = CoreComponentsTranslationService;
|
|
13664
|
+
exports.CoreDialogModule = CoreDialogModule;
|
|
13665
|
+
exports.CoreDialogService = CoreDialogService;
|
|
13192
13666
|
exports.DoubleCalendarComponent = DoubleCalendarComponent;
|
|
13193
13667
|
exports.DoubleCalendarModule = DoubleCalendarModule;
|
|
13194
13668
|
exports.FilterItemComponent = FilterItemComponent;
|
|
@@ -13222,6 +13696,8 @@
|
|
|
13222
13696
|
exports.InputNumberPickerModule = InputNumberPickerModule;
|
|
13223
13697
|
exports.InputRadioButtonComponent = InputRadioButtonComponent;
|
|
13224
13698
|
exports.InputRadioButtonModule = InputRadioButtonModule;
|
|
13699
|
+
exports.InputScannerComponent = InputScannerComponent;
|
|
13700
|
+
exports.InputScannerModule = InputScannerModule;
|
|
13225
13701
|
exports.InputSearchComponent = InputSearchComponent;
|
|
13226
13702
|
exports.InputSearchModule = InputSearchModule;
|
|
13227
13703
|
exports.InputTextComponent = InputTextComponent;
|
|
@@ -13233,6 +13709,8 @@
|
|
|
13233
13709
|
exports.ListOfValuesComponent = ListOfValuesComponent;
|
|
13234
13710
|
exports.ListOfValuesModule = ListOfValuesModule;
|
|
13235
13711
|
exports.ListOfValuesPopupComponent = ListOfValuesPopupComponent;
|
|
13712
|
+
exports.LoaderComponent = LoaderComponent;
|
|
13713
|
+
exports.LoaderModule = LoaderModule;
|
|
13236
13714
|
exports.NgZoneWrapperService = NgZoneWrapperService;
|
|
13237
13715
|
exports.ObserveVisibilityModule = ObserveVisibilityModule;
|
|
13238
13716
|
exports.OrientationOfDirection = OrientationOfDirection;
|
|
@@ -13277,12 +13755,16 @@
|
|
|
13277
13755
|
exports["ɵbb"] = PaginatePipe;
|
|
13278
13756
|
exports["ɵbc"] = SimpleGridCellComponent;
|
|
13279
13757
|
exports["ɵbd"] = ListOfValuesMultiselectPopupComponent;
|
|
13280
|
-
exports["ɵbe"] =
|
|
13281
|
-
exports["ɵbf"] =
|
|
13282
|
-
exports["ɵbg"] =
|
|
13283
|
-
exports["ɵbh"] =
|
|
13284
|
-
exports["ɵbi"] =
|
|
13758
|
+
exports["ɵbe"] = ConfirmationDialogComponent;
|
|
13759
|
+
exports["ɵbf"] = DialogBaseComponent;
|
|
13760
|
+
exports["ɵbg"] = CoreDynamicComponentService;
|
|
13761
|
+
exports["ɵbh"] = PrependPipeModule;
|
|
13762
|
+
exports["ɵbi"] = PrependPipe;
|
|
13285
13763
|
exports["ɵbj"] = CheckmarkOverlayComponent;
|
|
13764
|
+
exports["ɵbk"] = ScannerService;
|
|
13765
|
+
exports["ɵbl"] = TooltipModule;
|
|
13766
|
+
exports["ɵbm"] = TooltipComponent;
|
|
13767
|
+
exports["ɵbn"] = TooltipDirective;
|
|
13286
13768
|
exports["ɵc"] = MD_RIPPLE_GLOBAL_OPTIONS;
|
|
13287
13769
|
exports["ɵd"] = CoRippleDirective;
|
|
13288
13770
|
exports["ɵe"] = CoViewportRulerService;
|