@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.
Files changed (69) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +742 -260
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.d.ts +9 -5
  4. package/colijnit-corecomponents_v12.metadata.json +1 -1
  5. package/esm2015/colijnit-corecomponents_v12.js +10 -6
  6. package/esm2015/lib/components/base/dialog-base.component.js +6 -0
  7. package/esm2015/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.js +79 -0
  8. package/esm2015/lib/components/core-dialog/core-dialog.module.js +39 -0
  9. package/esm2015/lib/components/core-dialog/core-dialog.service.js +67 -0
  10. package/esm2015/lib/components/core-dialog/core-dynamic-component.service.js +93 -0
  11. package/esm2015/lib/components/input-scanner/bar-code-scanner.js +23 -0
  12. package/esm2015/lib/components/input-scanner/input-scanner.component.js +69 -0
  13. package/esm2015/lib/components/input-scanner/input-scanner.module.js +21 -0
  14. package/esm2015/lib/components/input-scanner/scanner.service.js +28 -0
  15. package/esm2015/lib/components/input-search/input-search.component.js +2 -1
  16. package/esm2015/lib/components/input-text/input-text.component.js +2 -1
  17. package/esm2015/lib/components/loader/loader.component.js +84 -0
  18. package/esm2015/lib/components/loader/loader.module.js +19 -0
  19. package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +37 -27
  20. package/esm2015/lib/components/simple-grid/simple-grid.component.js +55 -35
  21. package/esm2015/lib/components/simple-grid/simple-grid.module.js +4 -2
  22. package/esm2015/lib/core/enum/core-components-icon.enum.js +2 -1
  23. package/esm2015/lib/core/model/core-components-icon-svg.js +2 -1
  24. package/esm2015/lib/interfaces/dialog-response.interface.js +2 -0
  25. package/esm2015/lib/interfaces/scanner-input.interface.js +2 -0
  26. package/esm2015/lib/model/enum/app-button-type.enum.js +11 -0
  27. package/esm2015/lib/model/enum/app-popup-type.enum.js +8 -0
  28. package/esm2015/public-api.js +18 -11
  29. package/fesm2015/colijnit-corecomponents_v12.js +814 -270
  30. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  31. package/lib/components/base/dialog-base.component.d.ts +4 -0
  32. package/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +20 -0
  33. package/lib/components/core-dialog/confirmation-dialog/style/_layout.scss +30 -0
  34. package/lib/components/core-dialog/confirmation-dialog/style/_material-definition.scss +2 -0
  35. package/lib/components/core-dialog/confirmation-dialog/style/_theme.scss +6 -0
  36. package/lib/components/core-dialog/confirmation-dialog/style/material.scss +4 -0
  37. package/lib/components/core-dialog/core-dialog.module.d.ts +4 -0
  38. package/lib/components/core-dialog/core-dialog.service.d.ts +15 -0
  39. package/lib/components/core-dialog/core-dynamic-component.service.d.ts +12 -0
  40. package/lib/components/core-dialog/style/_layout.scss +6 -0
  41. package/lib/components/core-dialog/style/_material-definition.scss +0 -0
  42. package/lib/components/core-dialog/style/_theme.scss +6 -0
  43. package/lib/components/core-dialog/style/material.scss +4 -0
  44. package/lib/components/input-scanner/bar-code-scanner.d.ts +7 -0
  45. package/lib/components/input-scanner/input-scanner.component.d.ts +23 -0
  46. package/lib/components/input-scanner/input-scanner.module.d.ts +2 -0
  47. package/lib/components/input-scanner/scanner.service.d.ts +11 -0
  48. package/lib/components/input-scanner/style/_layout.scss +4 -0
  49. package/lib/components/input-scanner/style/_material-definition.scss +0 -0
  50. package/lib/components/input-scanner/style/_theme.scss +4 -0
  51. package/lib/components/input-scanner/style/material.scss +4 -0
  52. package/lib/components/loader/loader.component.d.ts +3 -0
  53. package/lib/components/loader/loader.module.d.ts +2 -0
  54. package/lib/components/loader/style/_layout.scss +65 -0
  55. package/lib/components/loader/style/_material-definition.scss +7 -0
  56. package/lib/components/loader/style/_theme.scss +4 -0
  57. package/lib/components/loader/style/material.scss +4 -0
  58. package/lib/components/simple-grid/simple-grid-cell.component.d.ts +4 -2
  59. package/lib/components/simple-grid/simple-grid.component.d.ts +5 -3
  60. package/lib/components/simple-grid/style/_layout.scss +30 -4
  61. package/lib/components/simple-grid/style/_material-definition.scss +9 -2
  62. package/lib/components/simple-grid/style/_theme.scss +3 -0
  63. package/lib/core/enum/core-components-icon.enum.d.ts +1 -0
  64. package/lib/interfaces/dialog-response.interface.d.ts +6 -0
  65. package/lib/interfaces/scanner-input.interface.d.ts +3 -0
  66. package/lib/model/enum/app-button-type.enum.d.ts +9 -0
  67. package/lib/model/enum/app-popup-type.enum.d.ts +6 -0
  68. package/package.json +1 -1
  69. package/public-api.d.ts +17 -10
@@ -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>",
@@ -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">
@@ -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
- if (this.inlineEdit) {
9261
- const valid = this.validateAndSave();
9262
- this._detectChanges();
9263
- if (valid) {
9264
- this.data.push({});
9265
- this._newRow = true;
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
- this.editing = true;
9272
- this.rowToEdit = this.data[this.data.length - 1];
9273
- this._detectChanges();
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
- else {
9277
- this.addRow.next();
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._newRow = false;
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
- this._nextAvailableCellToEdit(true).then((index) => {
9348
- this.editCellIndex = index;
9349
- });
9353
+ if (selectCell) {
9354
+ this._nextAvailableCellToEdit(true).then((index) => {
9355
+ this.editCellIndex = index;
9356
+ });
9357
+ }
9350
9358
  this._detectChanges();
9351
9359
  }
9352
- handleCellClick(index) {
9353
- this.editCellIndex = index;
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.editRowIndex = -1;
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.editMode = false;
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.editMode && this.fieldEditMode) {
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
- <div class="simple-grid-column-cell-value" [ngClass]="column.textAlign ? column.textAlign : defaultTextAlign">
10211
- <ng-container *ngIf="editMode; else noInlineEdit">
10212
- <ng-container #editTemplate *ngIf="column.editTemplate; else noEditTemplate"
10213
- [ngTemplateOutlet]="column.editTemplate"
10214
- [ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
10215
- <ng-template #noEditTemplate>
10216
- <ng-container *ngIf="column.template; else noTemplate">
10217
- <ng-container [ngTemplateOutlet]="column.template"
10218
- [ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
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 #noTemplate>
10221
- <co-input-text [(model)]="row[column.field]" [required]="column.required"></co-input-text>
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
- </ng-template>
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 FilterPipe {
11125
- transform(items, field, value) {
11126
- if (!items || !field) {
11127
- return items;
11128
- }
11129
- return items.filter(item => item[field] === value);
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
- FilterPipe.decorators = [
11133
- { type: Pipe, args: [{
11134
- name: "filter",
11135
- pure: false
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
- class FilterPipeModule {
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
- FilterPipeModule.decorators = [
11142
- { type: NgModule, args: [{
11143
- declarations: [
11144
- FilterPipe
11145
- ],
11146
- exports: [
11147
- FilterPipe
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
- function equalValidator(valueGetterFn) {
11153
- return function (control) {
11154
- let isValid = true;
11155
- if (valueGetterFn) {
11156
- const mustBeEqualTo = valueGetterFn.call(this);
11157
- isValid = control.value === mustBeEqualTo;
11158
- }
11159
- return isValid ? null : { "equality": "MESSAGE_FIELD_WRONG_VALUE" };
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
- function passwordValidator(userNameGetterFn) {
11164
- return function (control) {
11165
- if (control && control.value) {
11166
- const username = userNameGetterFn.call(this);
11167
- const errorString = getValidatePasswordErrorString(StringUtils.ToStringOrDefault(control.value), username);
11168
- if (errorString) {
11169
- return { "password": errorString };
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
- const atLeastOneNumber = RegExp(".*[0-9].*").test(password);
11182
- const atLeastOneLetter = RegExp(".*[a-zA-Z].*").test(password);
11183
- const atLeastOneSpecial = RegExp(".*[!@#$%&*()'+,\\-./:;<=>?\\[\\]^_`{|}\\\\].*").test(password);
11184
- if (!atLeastOneNumber || !atLeastOneLetter || !atLeastOneSpecial) {
11185
- return "PASSWORD_MUST_CONTAIN_LETTER_NUMBER_SPECIAL";
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
- const hasUsernameInPassword = username && RegExp(".*" + username.trim() + ".*", "i").test(password);
11188
- if (hasUsernameInPassword) {
11189
- return "PASSWORD_CONTAINS_USERNAME";
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
- function emailValidator(control) {
11194
- 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,}))$/;
11195
- const isValid = !!emailRegex.test(control.value);
11196
- return isValid ? null : { 'email': 'MESSAGE_EMAIL_NOT_CORRECT' };
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) {
@@ -11895,37 +12133,466 @@ FilterItemModule.decorators = [
11895
12133
  },] }
11896
12134
  ];
11897
12135
 
11898
- class TooltipComponent {
11899
- constructor(_elementRef, _changeDetector) {
11900
- this._elementRef = _elementRef;
11901
- this._changeDetector = _changeDetector;
11902
- this.top = -100;
11903
- this.left = -100;
11904
- this.bottom = false;
11905
- this.animate = true;
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
+ };
11906
12146
  }
11907
- set hostElement(value) {
11908
- this._hostElement = value;
11909
- // this._positionTooltip();
12147
+ set content(children) {
12148
+ this.animateDivs = children.toArray();
12149
+ this._checkAnimation();
11910
12150
  }
11911
- get hostElement() {
11912
- return this._hostElement;
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;
11913
12166
  }
11914
12167
  showClass() {
11915
12168
  return true;
11916
12169
  }
11917
- ngAfterViewInit() {
11918
- setTimeout(() => {
11919
- this._positionTooltip();
11920
- });
12170
+ _checkAnimation() {
12171
+ if (this.visible && this.animateDivs) {
12172
+ this.animateDivs.forEach(a => this._renderer.addClass(a.nativeElement, 'animate'));
12173
+ }
11921
12174
  }
11922
- _positionTooltip() {
11923
- if (this.hostElement && this._elementRef && this._elementRef.nativeElement) {
11924
- const rect = this.hostElement.getBoundingClientRect();
11925
- const ownRect = this._elementRef.nativeElement.getBoundingClientRect();
11926
- let wantedLeft = rect.left;
11927
- let wantedTop = rect.top - ownRect.height;
11928
- if (wantedTop < 0) { // out of view, move to bottom
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 LoaderComponent {
12392
+ showClass() {
12393
+ return true;
12394
+ }
12395
+ }
12396
+ LoaderComponent.decorators = [
12397
+ { type: Component, args: [{
12398
+ selector: 'co-loader',
12399
+ template: `
12400
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
12401
+ viewBox="0 0 200 200" xml:space="preserve">
12402
+ <defs>
12403
+ <linearGradient id="gradientFade" x1="20%" x2="50%" y1="60%" y2="100%">
12404
+ <stop offset="0%" class="spinner-gradient-stop" />
12405
+ <stop offset="25%" stop-opacity="75%" class="spinner-gradient-stop" />
12406
+ <stop offset="50%" stop-opacity="50%" class="spinner-gradient-stop" />
12407
+ <stop offset="75%" stop-opacity="25%" class="spinner-gradient-stop" />
12408
+ <stop offset="100%" stop-opacity="5%" class="spinner-gradient-stop" />
12409
+ </linearGradient>
12410
+ </defs>
12411
+ <g id="mask">
12412
+ <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"
12413
+ ry="77.58"/>
12414
+ </g>
12415
+ <g>
12416
+ <circle id="ring" class="ring-color" cx="100" cy="100" r="90" fill="transparent" />
12417
+ </g>
12418
+ <g id="js">
12419
+ <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
12420
+ 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
12421
+ l-0.65,0.47c-0.18,0.12-0.42,0.08-0.54-0.1L87.93,149.17z"/>
12422
+ <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
12423
+ 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
12424
+ 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
12425
+ 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
12426
+ 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
12427
+ 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
12428
+ 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
12429
+ C111.17,142.4,109.36,142.92,107.12,142.92z"/>
12430
+ </g>
12431
+ <g id="i">
12432
+ <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
12433
+ c0,0.18-0.14,0.32-0.32,0.32h-3.8C38.25,100.56,38.1,100.42,38.1,100.24z"/>
12434
+ </g>
12435
+ <g id="n">
12436
+ <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
12437
+ 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
12438
+ 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
12439
+ c0,0.18-0.14,0.32-0.32,0.32h-2.35C127.1,107.11,127.01,107.07,126.95,107z"/>
12440
+ </g>
12441
+ <g id="e">
12442
+ <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
12443
+ 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
12444
+ 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
12445
+ 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"/>
12446
+ </g>
12447
+ <g id="o">
12448
+ <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
12449
+ 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
12450
+ 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
12451
+ 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
12452
+ 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
12453
+ 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
12454
+ 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
12455
+ 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
12456
+ 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
12457
+ L67.44,86.2z"/>
12458
+ </g>
12459
+ <g id="smile">
12460
+ <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
12461
+ 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
12462
+ 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
12463
+ 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"/>
12464
+ </g>
12465
+ </svg>
12466
+ `,
12467
+ encapsulation: ViewEncapsulation.None
12468
+ },] }
12469
+ ];
12470
+ LoaderComponent.propDecorators = {
12471
+ showClass: [{ type: HostBinding, args: ['class.co-loader',] }]
12472
+ };
12473
+
12474
+ class LoaderModule {
12475
+ }
12476
+ LoaderModule.decorators = [
12477
+ { type: NgModule, args: [{
12478
+ imports: [
12479
+ CommonModule
12480
+ ],
12481
+ declarations: [
12482
+ LoaderComponent
12483
+ ],
12484
+ exports: [
12485
+ LoaderComponent
12486
+ ]
12487
+ },] }
12488
+ ];
12489
+
12490
+ class FilterPipe {
12491
+ transform(items, field, value) {
12492
+ if (!items || !field) {
12493
+ return items;
12494
+ }
12495
+ return items.filter(item => item[field] === value);
12496
+ }
12497
+ }
12498
+ FilterPipe.decorators = [
12499
+ { type: Pipe, args: [{
12500
+ name: "filter",
12501
+ pure: false
12502
+ },] }
12503
+ ];
12504
+
12505
+ class FilterPipeModule {
12506
+ }
12507
+ FilterPipeModule.decorators = [
12508
+ { type: NgModule, args: [{
12509
+ declarations: [
12510
+ FilterPipe
12511
+ ],
12512
+ exports: [
12513
+ FilterPipe
12514
+ ]
12515
+ },] }
12516
+ ];
12517
+
12518
+ function equalValidator(valueGetterFn) {
12519
+ return function (control) {
12520
+ let isValid = true;
12521
+ if (valueGetterFn) {
12522
+ const mustBeEqualTo = valueGetterFn.call(this);
12523
+ isValid = control.value === mustBeEqualTo;
12524
+ }
12525
+ return isValid ? null : { "equality": "MESSAGE_FIELD_WRONG_VALUE" };
12526
+ };
12527
+ }
12528
+
12529
+ function passwordValidator(userNameGetterFn) {
12530
+ return function (control) {
12531
+ if (control && control.value) {
12532
+ const username = userNameGetterFn.call(this);
12533
+ const errorString = getValidatePasswordErrorString(StringUtils.ToStringOrDefault(control.value), username);
12534
+ if (errorString) {
12535
+ return { "password": errorString };
12536
+ }
12537
+ }
12538
+ };
12539
+ }
12540
+ // @returns undefined if valid, or an error string if there's an error
12541
+ function getValidatePasswordErrorString(password, username) {
12542
+ const minimumPasswordLength = 10;
12543
+ const lengthOk = password && minimumPasswordLength <= password.length;
12544
+ if (!lengthOk) {
12545
+ return "PASSWORD_MUST_BE_10_CHARACTERS";
12546
+ }
12547
+ const atLeastOneNumber = RegExp(".*[0-9].*").test(password);
12548
+ const atLeastOneLetter = RegExp(".*[a-zA-Z].*").test(password);
12549
+ const atLeastOneSpecial = RegExp(".*[!@#$%&*()'+,\\-./:;<=>?\\[\\]^_`{|}\\\\].*").test(password);
12550
+ if (!atLeastOneNumber || !atLeastOneLetter || !atLeastOneSpecial) {
12551
+ return "PASSWORD_MUST_CONTAIN_LETTER_NUMBER_SPECIAL";
12552
+ }
12553
+ const hasUsernameInPassword = username && RegExp(".*" + username.trim() + ".*", "i").test(password);
12554
+ if (hasUsernameInPassword) {
12555
+ return "PASSWORD_CONTAINS_USERNAME";
12556
+ }
12557
+ }
12558
+
12559
+ function emailValidator(control) {
12560
+ 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,}))$/;
12561
+ const isValid = !!emailRegex.test(control.value);
12562
+ return isValid ? null : { 'email': 'MESSAGE_EMAIL_NOT_CORRECT' };
12563
+ }
12564
+
12565
+ class TooltipComponent {
12566
+ constructor(_elementRef, _changeDetector) {
12567
+ this._elementRef = _elementRef;
12568
+ this._changeDetector = _changeDetector;
12569
+ this.top = -100;
12570
+ this.left = -100;
12571
+ this.bottom = false;
12572
+ this.animate = true;
12573
+ }
12574
+ set hostElement(value) {
12575
+ this._hostElement = value;
12576
+ // this._positionTooltip();
12577
+ }
12578
+ get hostElement() {
12579
+ return this._hostElement;
12580
+ }
12581
+ showClass() {
12582
+ return true;
12583
+ }
12584
+ ngAfterViewInit() {
12585
+ setTimeout(() => {
12586
+ this._positionTooltip();
12587
+ });
12588
+ }
12589
+ _positionTooltip() {
12590
+ if (this.hostElement && this._elementRef && this._elementRef.nativeElement) {
12591
+ const rect = this.hostElement.getBoundingClientRect();
12592
+ const ownRect = this._elementRef.nativeElement.getBoundingClientRect();
12593
+ let wantedLeft = rect.left;
12594
+ let wantedTop = rect.top - ownRect.height;
12595
+ if (wantedTop < 0) { // out of view, move to bottom
11929
12596
  this.bottom = true;
11930
12597
  wantedTop = rect.bottom;
11931
12598
  }
@@ -12077,107 +12744,6 @@ TooltipDirectiveModule.decorators = [
12077
12744
  },] }
12078
12745
  ];
12079
12746
 
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
12747
  class BaseModuleScreenConfigService {
12182
12748
  constructor() {
12183
12749
  // emits the params of the loaded config, each time when a new config was loaded
@@ -12583,28 +13149,6 @@ ScreenConfigurationModule.decorators = [
12583
13149
  },] }
12584
13150
  ];
12585
13151
 
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
13152
  class ColorSequenceService {
12609
13153
  constructor() {
12610
13154
  this.colors = new Map();
@@ -12634,5 +13178,5 @@ ColorSequenceService.decorators = [
12634
13178
  * Generated bundle index. Do not edit.
12635
13179
  */
12636
13180
 
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, PrependPipeModule as ɵbe, PrependPipe as ɵbf, TooltipModule as ɵbg, TooltipComponent as ɵbh, TooltipDirective as ɵbi, CheckmarkOverlayComponent as ɵbj, 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 };
13181
+ 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, LoaderComponent, LoaderModule, 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
13182
  //# sourceMappingURL=colijnit-corecomponents_v12.js.map