@colijnit/corecomponents_v12 259.1.21 → 259.1.22

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 (23) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +73 -16
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.metadata.json +1 -1
  4. package/esm2015/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component.js +36 -33
  5. package/esm2015/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.module.js +20 -0
  6. package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.js +10 -5
  7. package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module.js +3 -4
  8. package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +61 -32
  9. package/esm2015/lib/components/list-of-values/list-of-values.component.js +4 -1
  10. package/esm2015/lib/components/list-of-values/list-of-values.module.js +4 -2
  11. package/esm2015/lib/components/simple-grid/simple-grid.component.js +28 -28
  12. package/esm2015/public-api.js +2 -1
  13. package/fesm2015/colijnit-corecomponents_v12.js +154 -97
  14. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  15. package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component.d.ts +1 -1
  16. package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.module.d.ts +2 -0
  17. package/lib/components/hour-scheduling-expandable/style/_layout.scss +1 -0
  18. package/lib/components/list-of-values/list-of-values-popup.component.d.ts +4 -0
  19. package/lib/components/list-of-values/list-of-values.component.d.ts +1 -0
  20. package/lib/components/list-of-values/style/_layout.scss +7 -0
  21. package/lib/components/simple-grid/style/_layout.scss +47 -8
  22. package/package.json +1 -1
  23. package/public-api.d.ts +1 -0
@@ -10839,7 +10839,7 @@
10839
10839
  SimpleGridComponent.decorators = [
10840
10840
  { type: i0.Component, args: [{
10841
10841
  selector: 'co-simple-grid',
10842
- template: "\n <co-grid-toolbar\n *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\n <table\n id=\"simple-grid-table\"\n class=\"simple-grid-table\"\n [clickOutside]=\"editing\"\n (clickOutside)=\"handleClickOutsideRow()\">\n <colgroup>\n <col\n *ngFor=\"let column of headerColumnsCopy; 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\n scope=\"col\"\n #headerCell\n class=\"simple-grid-column-header\"\n *ngFor=\"let column of headerColumnsCopy; let index = index\">\n <div\n class=\"simple-grid-column-header-wrapper\"\n [class.resizable]=\"resizable\"\n [class.selected]=\"column.isSelected\"\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\n class=\"simple-grid-column-header-label\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [class.with-menu]=\"showGridSettings\"\n [class.with-sort]=\"showColumnSort\"\n [textContent]=\"column.headerText || '&nbsp;'\" [title]=\"column.headerText\"\n (click)=\"showColumnSort ? sortColumn(column, column.field) : toggleColumnMenu(column)\">\n </div>\n\n <div class=\"sort-column\" *ngIf=\"showColumnSort\">\n <co-button\n (click)=\"sortColumn(column, column?.field)\"\n [iconData]=\"icons.getIcon(Icons.ArrowUpArrowDown)\">\n </co-button>\n </div>\n\n <div class=\"column-menu\" *ngIf=\"column.isSelected\">\n <h3 [textContent]=\"'COLUMN_OPTIONS' | coreLocalize\"></h3>\n <ul>\n <li (click)=\"hideColumn(column)\">Hide Column</li>\n <li (click)=\"sortColumn(column, column.field)\">Sort Column</li>\n </ul>\n </div>\n </ng-template>\n <div\n *ngIf=\"resizable && column.resizable\"\n class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\">\n </div>\n </div>\n </th>\n </tr>\n\n <div *ngIf=\"showGridSettings\" class=\"grid-settings\">\n <co-button\n [class.selected]=\"isSettingsMenuOpen\"\n [iconData]=\"icons.getIcon(Icons.CogWheels)\"\n (click)=\"toggleSettingsMenu()\">\n </co-button>\n\n <div class=\"settings-menu\" *ngIf=\"isSettingsMenuOpen\">\n <h3 [textContent]=\"'GRID_OPTIONS' | coreLocalize\"></h3>\n <ul>\n <li (click)=\"exportToExcel()\">Export to Excel</li>\n <li *ngIf=\"headerColumnsCopy.length !== headerColumns.length\" (click)=\"showAllColumns()\">\n Show All Columns\n </li>\n </ul>\n </div>\n </div>\n </thead>\n <tbody\n #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 <co-form class=\"simple-grid-row-form\">\n <tr\n #rowElement\n class=\"simple-grid-row\"\n [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"getIsRowDisabled(rowIndex)\"\n [class.editing]=\"rowIndex === editRowIndex\"\n *ngFor=\"let row of (!!rowsPerPage ? (data | paginate: {itemsPerPage: rowsPerPage, currentPage: currentPage}) : data); last as last; let rowIndex = index\"\n cdkDrag\n (click)=\"handleClickRow($event, rowIndex)\" (dblclick)=\"handleDblClickRow($event, rowIndex, row)\"\n (visibilityChange)=\"rowVisible.next(row)\"\n (mouseenter)=\"hoveredRowIndex = rowIndex\"\n (mouseleave)=\"hoveredRowIndex = -1\"\n >\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumnsCopy.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 headerColumnsCopy; 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 *ngIf=\"inlineEdit && showRowButtons\">\n <div class=\"icons-container\" *ngIf=\"!editing\">\n <co-icon class=\"icon-item icon-edit\"\n [iconData]=\"icons.getIcon(Icons.PenToSquareSolid)\" *ngIf=\"hoveredRowIndex === rowIndex\"\n (click)=\"editRow($event, true, rowIndex); $event.stopPropagation()\"></co-icon>\n <co-icon class=\"icon-item icon-delete\"\n [iconData]=\"icons.getIcon(Icons.TrashBin)\" *ngIf=\"hoveredRowIndex === rowIndex\"\n (click)=\"selectTheRow(rowIndex); removeRow();\"></co-icon>\n </div>\n <div class=\"icons-container\">\n <co-button class=\"save-button\"\n *ngIf=\"editing && (selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex))\"\n [iconData]=\"icons.getIcon(Icons.CheckDuotone)\"\n (click)=\"validateAndSave(); $event.stopPropagation()\"></co-button>\n <co-button class=\"close-button\"\n *ngIf=\"editing && (selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex))\"\n [iconData]=\"icons.getIcon(Icons.CrossSkinny)\"\n (click)=\"cancelEditRow(); $event.stopPropagation() \"></co-button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!(inlineEdit && showRowButtons) && showDelete\">\n <div class=\"icons-container\">\n <co-icon class=\"icon-item icon-delete\"\n [iconData]=\"icons.getIcon(Icons.TrashBin)\" *ngIf=\"hoveredRowIndex === rowIndex\"\n (click)=\"selectTheRow(rowIndex); removeRow();\">\n </co-icon>\n </div>\n </ng-container>\n </ng-container>\n </tr>\n </co-form>\n </tbody>\n </table>\n <co-pagination-bar\n *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 ",
10842
+ template: "\n <co-grid-toolbar\n *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\n <table\n id=\"simple-grid-table\"\n class=\"simple-grid-table\"\n [clickOutside]=\"editing\"\n (clickOutside)=\"handleClickOutsideRow()\">\n <colgroup>\n <col\n *ngFor=\"let column of headerColumnsCopy; 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 <col\n *ngIf=\"((inlineEdit && showRowButtons) || (showDelete && !showRowButtons)) && (hoveredRowIndex >= 0 || selectedRowIndex >= 0 || isNewRow)\"\n [class.icons-col]=\"true\"\n [class.col-width-row-buttons]=\"inlineEdit && showRowButtons\"\n [class.col-width-delete]=\"!showRowButtons && showDelete\">\n </colgroup>\n <thead>\n <tr>\n <th\n scope=\"col\"\n #headerCell\n class=\"simple-grid-column-header\"\n *ngFor=\"let column of headerColumnsCopy; let index = index\">\n <div\n class=\"simple-grid-column-header-wrapper\"\n [class.resizable]=\"resizable\"\n [class.selected]=\"column.isSelected\"\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\n class=\"simple-grid-column-header-label\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [class.with-menu]=\"showGridSettings\"\n [class.with-sort]=\"showColumnSort\"\n [textContent]=\"column.headerText || '&nbsp;'\" [title]=\"column.headerText\"\n (click)=\"showColumnSort ? sortColumn(column, column.field) : toggleColumnMenu(column)\">\n </div>\n\n <div class=\"sort-column\" *ngIf=\"showColumnSort\">\n <co-button\n (click)=\"sortColumn(column, column?.field)\"\n [iconData]=\"icons.getIcon(Icons.ArrowUpArrowDown)\">\n </co-button>\n </div>\n\n <div class=\"column-menu\" *ngIf=\"column.isSelected\">\n <h3 [textContent]=\"'COLUMN_OPTIONS' | coreLocalize\"></h3>\n <ul>\n <li (click)=\"hideColumn(column)\">Hide Column</li>\n <li (click)=\"sortColumn(column, column.field)\">Sort Column</li>\n </ul>\n </div>\n </ng-template>\n <div\n *ngIf=\"resizable && column.resizable\"\n class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\">\n </div>\n </div>\n </th>\n </tr>\n\n <div *ngIf=\"showGridSettings\" class=\"grid-settings\">\n <co-button\n [class.selected]=\"isSettingsMenuOpen\"\n [iconData]=\"icons.getIcon(Icons.CogWheels)\"\n (click)=\"toggleSettingsMenu()\">\n </co-button>\n\n <div class=\"settings-menu\" *ngIf=\"isSettingsMenuOpen\">\n <h3 [textContent]=\"'GRID_OPTIONS' | coreLocalize\"></h3>\n <ul>\n <li (click)=\"exportToExcel()\">Export to Excel</li>\n <li *ngIf=\"headerColumnsCopy.length !== headerColumns.length\" (click)=\"showAllColumns()\">\n Show All Columns\n </li>\n </ul>\n </div>\n </div>\n </thead>\n <tbody\n #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 <co-form class=\"simple-grid-row-form\">\n <tr\n #rowElement\n class=\"simple-grid-row\"\n [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"getIsRowDisabled(rowIndex)\"\n [class.editing]=\"rowIndex === editRowIndex\"\n *ngFor=\"let row of (!!rowsPerPage ? (data | paginate: {itemsPerPage: rowsPerPage, currentPage: currentPage}) : data); last as last; let rowIndex = index\"\n cdkDrag\n (click)=\"handleClickRow($event, rowIndex)\" (dblclick)=\"handleDblClickRow($event, rowIndex, row)\"\n (visibilityChange)=\"rowVisible.next(row)\"\n (mouseenter)=\"hoveredRowIndex = rowIndex\"\n (mouseleave)=\"hoveredRowIndex = -1\"\n >\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumnsCopy.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 headerColumnsCopy; 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 *ngIf=\"(inlineEdit && showRowButtons) || (showDelete && !showRowButtons)\">\n <td class=\"icons-container\"\n *ngIf=\"(editRowIndex <= -1 && selectedRowIndex === -1 && hoveredRowIndex === rowIndex) || selectedRowIndex === rowIndex || (isNewRow && rowIndex === editRowIndex)\">\n <ng-container>\n <co-icon class=\"icon-item icon-edit\"\n *ngIf=\"!editing && (inlineEdit && showRowButtons)\"\n [iconData]=\"icons.getIcon(Icons.PenToSquareSolid)\"\n (click)=\"editRow($event, true, rowIndex); $event.stopPropagation()\"></co-icon>\n <co-icon class=\"icon-item icon-delete\"\n [iconData]=\"icons.getIcon(Icons.TrashBin)\"\n *ngIf=\"(!editing && (inlineEdit || !inlineEdit) && showRowButtons) || (!showRowButtons && showDelete)\"\n (click)=\"selectTheRow(rowIndex); removeRow();\"></co-icon>\n </ng-container>\n <ng-container *ngIf=\"editing && inlineEdit && showRowButtons && (selectedRowIndex === rowIndex || isNewRow)\">\n <co-button class=\"save-button\"\n [iconData]=\"icons.getIcon(Icons.CheckDuotone)\"\n (click)=\"validateAndSave(); $event.stopPropagation()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"icons.getIcon(Icons.CrossSkinny)\"\n (click)=\"cancelEditRow(); $event.stopPropagation() \"></co-button>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n </tr>\n </co-form>\n </tbody>\n </table>\n <co-pagination-bar\n *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 ",
10843
10843
  providers: [FormMasterService],
10844
10844
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
10845
10845
  encapsulation: i0.ViewEncapsulation.None
@@ -11697,6 +11697,7 @@
11697
11697
  this.iconCacheService = iconCacheService;
11698
11698
  this._elementRef = _elementRef;
11699
11699
  this.multiselect = false;
11700
+ this.showToggleAll = false;
11700
11701
  this.displayField = 'description';
11701
11702
  this.searchDisabled = false;
11702
11703
  this.modelChange = new i0.EventEmitter();
@@ -11704,6 +11705,7 @@
11704
11705
  this.keyDown = new i0.EventEmitter();
11705
11706
  this.viewModels = [];
11706
11707
  this.viewModelsMain = [];
11708
+ this.allSelected = false;
11707
11709
  this._collection = [];
11708
11710
  this._searchTerm = '';
11709
11711
  this._lovItems = [];
@@ -11784,12 +11786,13 @@
11784
11786
  case KeyboardKey.Up:
11785
11787
  this.selectNextOption(true);
11786
11788
  return false;
11787
- case KeyboardKey.SpaceBar:
11789
+ case KeyboardKey.Enter:
11788
11790
  if (this.highLightModel) {
11789
11791
  this.selectViewModel(this.highLightModel, false);
11790
11792
  }
11791
11793
  else {
11792
11794
  this.keyDown.next(event);
11795
+ return true;
11793
11796
  }
11794
11797
  return false;
11795
11798
  default:
@@ -11874,6 +11877,27 @@
11874
11877
  this._scrollIntoView();
11875
11878
  }
11876
11879
  };
11880
+ ListOfValuesPopupComponent.prototype.selectAll = function () {
11881
+ if (this.viewModels.length > 0) {
11882
+ this.viewModels.forEach(function (vm) { return vm.checked = true; });
11883
+ this.selectOptions();
11884
+ }
11885
+ };
11886
+ ListOfValuesPopupComponent.prototype.toggleAll = function () {
11887
+ if (!this.allSelected) {
11888
+ if (this.viewModels.length > 0) {
11889
+ this.viewModels.forEach(function (vm) { return vm.checked = true; });
11890
+ this.selectOptions();
11891
+ }
11892
+ }
11893
+ else {
11894
+ if (this.viewModels.length > 0) {
11895
+ this.viewModels.forEach(function (vm) { return vm.checked = false; });
11896
+ this.selectOptions();
11897
+ }
11898
+ }
11899
+ this.allSelected = !this.allSelected;
11900
+ };
11877
11901
  ListOfValuesPopupComponent.prototype._prepareViewModelsMain = function () {
11878
11902
  var _this = this;
11879
11903
  this.viewModelsMain.length = 0;
@@ -11917,7 +11941,7 @@
11917
11941
  ListOfValuesPopupComponent.decorators = [
11918
11942
  { type: i0.Component, args: [{
11919
11943
  selector: 'co-list-of-values-popup',
11920
- template: "\n <div class=\"lov-options\" [overlay]=\"parentForOverlay\" [inheritWidth]=\"true\" [ngClass]=\"customCssClass\"\n id=\"lov-popup\"\n role=\"listbox\" [tabindex]=\"-1\"\n (clickOutside)=\"closePopup.emit($event)\">\n <co-input-search *ngIf=\"multiselect\"\n tabindex=\"-1\"\n [(model)]=\"searchTerm\"\n [placeholder]=\"searchPlaceholder\"\n (keydown)=\"handleInputKeyDown($event)\"\n (modelChange)=\"filterViewModels()\"></co-input-search>\n <ul class=\"dropdown-list\" #dropDownList>\n <li\n #lovItem\n *ngFor=\"let viewModel of viewModels; let index = index\"\n [class.selected]=\"viewModel === highLightModel || viewModels.length === 1\"\n (click)=\"selectViewModel(viewModel, !multiselect)\"\n role=\"option\">\n <ng-container *ngIf=\"!multiselect\">\n <co-icon *ngIf=\"viewModel.model[optionIcon]\" class=\"input-text-left-icon\" [iconData]=\"iconCacheService.getIcon(viewModel.model[optionIcon])\">\n </co-icon>\n <span class=\"lov-options-text\" [textContent]=\"viewModel.model[displayField]\"></span>\n </ng-container>\n <ng-container *ngIf=\"multiselect\">\n <co-input-checkbox [model]=\"viewModel.checked\"\n (modelChange)=\"selectViewModel(viewModel, false)\"></co-input-checkbox>\n <span class=\"lov-options-text\" [textContent]=\"viewModel.model[displayField]\"></span>\n </ng-container>\n </li>\n </ul>\n </div>\n ",
11944
+ template: "\n <div class=\"lov-options\" [overlay]=\"parentForOverlay\" [inheritWidth]=\"true\" [ngClass]=\"customCssClass\"\n id=\"lov-popup\"\n role=\"listbox\" [tabindex]=\"-1\"\n (clickOutside)=\"closePopup.emit($event)\">\n <co-input-search *ngIf=\"multiselect\"\n tabindex=\"-1\"\n [(model)]=\"searchTerm\"\n [placeholder]=\"searchPlaceholder\"\n (keydown)=\"handleInputKeyDown($event)\"\n (modelChange)=\"filterViewModels()\"></co-input-search>\n <div class=\"row gap\" *ngIf=\"showToggleAll && multiselect\">\n <co-input-checkbox [model]=\"allSelected\" (modelChange)=\"toggleAll()\"></co-input-checkbox>\n <span [textContent]=\"'DESELECT_ALL' | coreLocalize\" (click)=\"toggleAll()\"></span>\n </div>\n <ul class=\"dropdown-list\" #dropDownList>\n <li\n #lovItem\n *ngFor=\"let viewModel of viewModels; let index = index\"\n [class.selected]=\"viewModel === highLightModel || viewModels.length === 1\"\n (click)=\"selectViewModel(viewModel, !multiselect)\"\n role=\"option\">\n <ng-container *ngIf=\"!multiselect\">\n <co-icon *ngIf=\"viewModel.model[optionIcon]\" class=\"input-text-left-icon\" [iconData]=\"iconCacheService.getIcon(viewModel.model[optionIcon])\">\n </co-icon>\n <span class=\"lov-options-text\" [textContent]=\"viewModel.model[displayField]\"></span>\n </ng-container>\n <ng-container *ngIf=\"multiselect\">\n <co-input-checkbox [model]=\"viewModel.checked\"\n (modelChange)=\"selectViewModel(viewModel, false)\"></co-input-checkbox>\n <span class=\"lov-options-text\" [textContent]=\"viewModel.model[displayField]\"></span>\n </ng-container>\n </li>\n </ul>\n </div>\n ",
11921
11945
  encapsulation: i0.ViewEncapsulation.None
11922
11946
  },] }
11923
11947
  ];
@@ -11931,6 +11955,7 @@
11931
11955
  inputSearch: [{ type: i0.ViewChild, args: [InputSearchComponent,] }],
11932
11956
  model: [{ type: i0.Input }],
11933
11957
  multiselect: [{ type: i0.Input }],
11958
+ showToggleAll: [{ type: i0.Input }],
11934
11959
  displayField: [{ type: i0.Input }],
11935
11960
  searchPlaceholder: [{ type: i0.Input }],
11936
11961
  customCssClass: [{ type: i0.Input }],
@@ -11958,6 +11983,7 @@
11958
11983
  _this.elementRef = elementRef;
11959
11984
  _this.icons = exports.CoreComponentsIcon;
11960
11985
  _this.multiselect = false;
11986
+ _this.showToggleAll = false;
11961
11987
  _this.largeCollection = false;
11962
11988
  _this.displayField = 'description';
11963
11989
  _this.searchDisabled = false;
@@ -12117,6 +12143,7 @@
12117
12143
  searchPlaceholder: this.searchPlaceholder,
12118
12144
  displayField: this.displayField,
12119
12145
  multiselect: this.multiselect,
12146
+ showToggleAll: this.showToggleAll,
12120
12147
  model: this.model,
12121
12148
  collection: this.collection,
12122
12149
  optionIcon: this.optionIcon,
@@ -12226,6 +12253,7 @@
12226
12253
  model: [{ type: i0.Input }],
12227
12254
  parentForOverlay: [{ type: i0.ViewChild, args: ['parentForOverlay', { read: i0.ElementRef },] }],
12228
12255
  multiselect: [{ type: i0.HostBinding, args: ['class.custom-height',] }, { type: i0.HostBinding, args: ['class.multi-select',] }, { type: i0.Input }],
12256
+ showToggleAll: [{ type: i0.Input }],
12229
12257
  largeCollection: [{ type: i0.Input }],
12230
12258
  displayField: [{ type: i0.Input }],
12231
12259
  optionIcon: [{ type: i0.Input }],
@@ -12354,7 +12382,8 @@
12354
12382
  OverlayModule,
12355
12383
  ClickoutsideModule,
12356
12384
  IconModule,
12357
- InputSearchModule
12385
+ InputSearchModule,
12386
+ CoreComponentsTranslationModule
12358
12387
  ],
12359
12388
  declarations: [
12360
12389
  ListOfValuesComponent,
@@ -15131,6 +15160,11 @@
15131
15160
  };
15132
15161
  HourSchedulingExpandableComponent.prototype.handleDrop = function (dragEvent, hour) {
15133
15162
  var _this = this;
15163
+ dragEvent.preventDefault();
15164
+ dragEvent.stopPropagation();
15165
+ if (!this.schedule[this.objectsProp] || !this.schedule[this.objectsProp].find(function (object) { var _a; return object[_this.idProp] === _this.currentDraggingObject && ((_a = _this.currentDraggingObject) === null || _a === void 0 ? void 0 : _a.id); })) {
15166
+ this.currentDraggingObject = undefined;
15167
+ }
15134
15168
  if (this.currentDraggingObject) {
15135
15169
  //The order was scheduled and needs to be moved
15136
15170
  var start = this.currentDraggingObject.start;
@@ -15148,17 +15182,17 @@
15148
15182
  scheduledObject.top = this.timeDifference(this.schedule[this.childProp][this.startTimeProp], scheduledObject.start);
15149
15183
  scheduledObject.height = this.timeDifference(scheduledObject.start, scheduledObject.end);
15150
15184
  this.timeChangeEvent.emit(originalObject);
15151
- this.currentDraggingObject = undefined;
15152
15185
  }
15186
+ this.currentDraggingObject = undefined;
15153
15187
  }
15154
15188
  else {
15155
15189
  var parsed = this.tryParseJSONObject(dragEvent.dataTransfer.getData("text"));
15156
15190
  if (!parsed) {
15157
15191
  this.newObjectPlanEvent.emit({ currentHour: hour, data: parsed.toString() });
15158
- return;
15159
15192
  }
15160
- //Move between calendars is still too buggy
15161
- // this.moveBetweenCalendarsEvent.emit({hour: hour, data: parsed});
15193
+ else {
15194
+ this.moveBetweenCalendarsEvent.emit({ hour: hour, data: parsed });
15195
+ }
15162
15196
  }
15163
15197
  };
15164
15198
  HourSchedulingExpandableComponent.prototype.allowDrop = function (event, hour) {
@@ -15345,8 +15379,10 @@
15345
15379
  return true;
15346
15380
  };
15347
15381
  HourSchedulingExpandableTemplateComponent.prototype.onExpandableDragStart = function (event, obj, onDragStartCustom) {
15348
- onDragStartCustom === null || onDragStartCustom === void 0 ? void 0 : onDragStartCustom.call(obj);
15349
- event.dataTransfer.setData("text", JSON.stringify({ obj: obj }));
15382
+ event.dataTransfer.setData('text', JSON.stringify({ obj: obj }));
15383
+ if (onDragStartCustom) {
15384
+ onDragStartCustom === null || onDragStartCustom === void 0 ? void 0 : onDragStartCustom.call(obj);
15385
+ }
15350
15386
  };
15351
15387
  HourSchedulingExpandableTemplateComponent.prototype.calculateLeftAndWidthOfObjects = function () {
15352
15388
  var layoutData = new Array(this._objects.length);
@@ -15358,8 +15394,9 @@
15358
15394
  var overlapGroups = [];
15359
15395
  var processed = new Set();
15360
15396
  for (var i = 0; i < this._objects.length; i++) {
15361
- if (processed.has(i))
15397
+ if (processed.has(i)) {
15362
15398
  continue;
15399
+ }
15363
15400
  var group = [i];
15364
15401
  var objA = this._objects[i];
15365
15402
  var startA = new Date(objA.start);
@@ -15393,8 +15430,8 @@
15393
15430
  }());
15394
15431
  HourSchedulingExpandableTemplateComponent.decorators = [
15395
15432
  { type: i0.Component, args: [{
15396
- selector: "co-hour-scheduling-expandable-template",
15397
- template: "\n \n <div\n *ngFor=\"let obj of objects\"\n [class]=\"'custom-scheduled-object'\"\n [class.selected]=\"obj.selected\"\n [draggable]=\"!obj.selected\"\n [style.--height]=\"obj.height + 'px'\"\n [style.--top]=\"obj.top + 'px'\"\n [style.--left]=\"layouts[objects.indexOf(obj)].leftPercent + '%'\"\n [style.--width]=\"layouts[objects.indexOf(obj)].widthPercent + '%'\"\n (click)=\"onSelectBlock(obj)\"\n (dragstart)=\"onExpandableDragStart($event, obj, onDragStartCustom(obj) )\">\n\n <div\n *ngIf=\"obj.selected\"\n class=\"top-resizer\"\n (mousedown)=\"onResizeStart($event, obj, 'top')\"></div>\n <ng-template\n [ngTemplateOutlet]=\"objectTemplate\"\n [ngTemplateOutletContext]=\"{\n object: obj\n }\"\n >\n </ng-template>\n <div *ngIf=\"obj.selected\"\n class=\"bottom-resizer\"\n (mousedown)=\"onResizeStart($event, obj, 'bottom')\"></div>\n </div>\n ",
15433
+ selector: 'co-hour-scheduling-expandable-template',
15434
+ template: "\n\n <div\n *ngFor=\"let obj of objects\"\n [class]=\"'custom-scheduled-object'\"\n [class.selected]=\"obj.selected\"\n [draggable]=\"!obj.selected\"\n [style.--height]=\"obj.height + 'px'\"\n [style.--top]=\"obj.top + 'px'\"\n [style.--left]=\"layouts[objects.indexOf(obj)].leftPercent + '%'\"\n [style.--width]=\"layouts[objects.indexOf(obj)].widthPercent + '%'\"\n (click)=\"onSelectBlock(obj)\"\n (dragstart)=\"onExpandableDragStart($event, obj, onDragStartCustom(obj) )\">\n\n <div\n *ngIf=\"obj.selected\"\n class=\"top-resizer\"\n (mousedown)=\"onResizeStart($event, obj, 'top')\"></div>\n <ng-template\n [ngTemplateOutlet]=\"objectTemplate\"\n [ngTemplateOutletContext]=\"{\n object: obj\n }\"\n >\n </ng-template>\n <div *ngIf=\"obj.selected\"\n class=\"bottom-resizer\"\n (mousedown)=\"onResizeStart($event, obj, 'bottom')\"></div>\n </div>\n ",
15398
15435
  encapsulation: i0.ViewEncapsulation.None
15399
15436
  },] }
15400
15437
  ];
@@ -15406,9 +15443,29 @@
15406
15443
  onSelectBlock: [{ type: i0.Input }],
15407
15444
  startTimeProp: [{ type: i0.Input }],
15408
15445
  endTimeProp: [{ type: i0.Input }],
15409
- showClass: [{ type: i0.HostBinding, args: ["class.co-hour-scheduling-expandable-template",] }]
15446
+ showClass: [{ type: i0.HostBinding, args: ['class.co-hour-scheduling-expandable-template',] }]
15410
15447
  };
15411
15448
 
15449
+ var HourSchedulingExpandableTemplateModule = /** @class */ (function () {
15450
+ function HourSchedulingExpandableTemplateModule() {
15451
+ }
15452
+ return HourSchedulingExpandableTemplateModule;
15453
+ }());
15454
+ HourSchedulingExpandableTemplateModule.decorators = [
15455
+ { type: i0.NgModule, args: [{
15456
+ imports: [
15457
+ common.CommonModule,
15458
+ ],
15459
+ declarations: [
15460
+ HourSchedulingExpandableTemplateComponent
15461
+ ],
15462
+ exports: [
15463
+ HourSchedulingExpandableTemplateComponent
15464
+ ],
15465
+ providers: [common.DatePipe]
15466
+ },] }
15467
+ ];
15468
+
15412
15469
  var HourSchedulingTestObjectComponent = /** @class */ (function () {
15413
15470
  function HourSchedulingTestObjectComponent() {
15414
15471
  }
@@ -15462,14 +15519,13 @@
15462
15519
  imports: [
15463
15520
  common.CommonModule,
15464
15521
  HourSchedulingComponentModule,
15522
+ HourSchedulingExpandableTemplateModule
15465
15523
  ],
15466
15524
  declarations: [
15467
15525
  HourSchedulingExpandableComponent,
15468
- HourSchedulingExpandableTemplateComponent
15469
15526
  ],
15470
15527
  exports: [
15471
15528
  HourSchedulingExpandableComponent,
15472
- HourSchedulingExpandableTemplateComponent
15473
15529
  ],
15474
15530
  providers: [common.DatePipe]
15475
15531
  },] }
@@ -15536,6 +15592,7 @@
15536
15592
  exports.HourSchedulingExpandableComponent = HourSchedulingExpandableComponent;
15537
15593
  exports.HourSchedulingExpandableComponentModule = HourSchedulingExpandableComponentModule;
15538
15594
  exports.HourSchedulingExpandableTemplateComponent = HourSchedulingExpandableTemplateComponent;
15595
+ exports.HourSchedulingExpandableTemplateModule = HourSchedulingExpandableTemplateModule;
15539
15596
  exports.IconCacheService = IconCacheService;
15540
15597
  exports.IconCollapseHandleComponent = IconCollapseHandleComponent;
15541
15598
  exports.IconCollapseHandleModule = IconCollapseHandleModule;