@colijnit/corecomponents_v12 259.1.20 → 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.
- package/bundles/colijnit-corecomponents_v12.umd.js +78 -39
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component.js +36 -33
- package/esm2015/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.module.js +20 -0
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.js +10 -5
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module.js +3 -4
- package/esm2015/lib/components/list-of-icons/list-of-icons.component.js +29 -32
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +61 -32
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +4 -1
- package/esm2015/lib/components/list-of-values/list-of-values.module.js +4 -2
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +28 -28
- package/esm2015/lib/model/icon-list-item.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-corecomponents_v12.js +182 -140
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component.d.ts +1 -1
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.module.d.ts +2 -0
- package/lib/components/hour-scheduling-expandable/style/_layout.scss +1 -0
- package/lib/components/list-of-icons/list-of-icons.component.d.ts +1 -3
- package/lib/components/list-of-icons/style/_layout.scss +3 -2
- package/lib/components/list-of-values/list-of-values-popup.component.d.ts +4 -0
- package/lib/components/list-of-values/list-of-values.component.d.ts +1 -0
- package/lib/components/list-of-values/style/_layout.scss +7 -0
- package/lib/components/simple-grid/style/_layout.scss +47 -8
- package/lib/model/icon-list-item.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2015/lib/core/enum/batch-delivery-category.enum.js +0 -13
- package/lib/core/enum/batch-delivery-category.enum.d.ts +0 -10
|
@@ -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 || ' '\" [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 <
|
|
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 || ' '\" [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.
|
|
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
|
|
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,
|
|
@@ -12367,22 +12396,8 @@
|
|
|
12367
12396
|
},] }
|
|
12368
12397
|
];
|
|
12369
12398
|
|
|
12370
|
-
// Values are corresponding dictionary keys in text_nl.
|
|
12371
|
-
var BatchDeliveryCategory;
|
|
12372
|
-
(function (BatchDeliveryCategory) {
|
|
12373
|
-
BatchDeliveryCategory["Overview"] = "OVERVIEW";
|
|
12374
|
-
BatchDeliveryCategory["Purchase"] = "COST_OF_SALES";
|
|
12375
|
-
BatchDeliveryCategory["Allocate"] = "ALLOCATION";
|
|
12376
|
-
BatchDeliveryCategory["Logistics"] = "LOGISTICS";
|
|
12377
|
-
BatchDeliveryCategory["DeliveryOrder"] = "DELIVERY_ORDER";
|
|
12378
|
-
BatchDeliveryCategory["Invoice"] = "INVOICE";
|
|
12379
|
-
BatchDeliveryCategory["ToPick"] = "TO_PICK";
|
|
12380
|
-
BatchDeliveryCategory["Picked"] = "PICKED";
|
|
12381
|
-
})(BatchDeliveryCategory || (BatchDeliveryCategory = {}));
|
|
12382
|
-
|
|
12383
12399
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
12384
|
-
function ListOfIconsComponent(
|
|
12385
|
-
this.iconCacheService = iconCacheService;
|
|
12400
|
+
function ListOfIconsComponent(icons) {
|
|
12386
12401
|
this.icons = icons;
|
|
12387
12402
|
this.iconSize = 25;
|
|
12388
12403
|
this.itemSelected = new i0.EventEmitter();
|
|
@@ -12390,10 +12405,6 @@
|
|
|
12390
12405
|
this.showMenu = false;
|
|
12391
12406
|
this.showSubCategories = false;
|
|
12392
12407
|
this._collection = [];
|
|
12393
|
-
this.subCategories = [
|
|
12394
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.BoxesPackingRegular), label: BatchDeliveryCategory.ToPick },
|
|
12395
|
-
{ icon: this.iconCacheService.getIcon(this.Icon.RegularBoxesPackingCircleCheck), label: BatchDeliveryCategory.Picked }
|
|
12396
|
-
];
|
|
12397
12408
|
}
|
|
12398
12409
|
Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
|
|
12399
12410
|
get: function () {
|
|
@@ -12418,7 +12429,7 @@
|
|
|
12418
12429
|
this.showMenu = !this.showMenu;
|
|
12419
12430
|
};
|
|
12420
12431
|
ListOfIconsComponent.prototype.selectItem = function (item) {
|
|
12421
|
-
if (item.
|
|
12432
|
+
if (item.children) {
|
|
12422
12433
|
this.showSubCategories = !this.showSubCategories;
|
|
12423
12434
|
return;
|
|
12424
12435
|
}
|
|
@@ -12427,8 +12438,9 @@
|
|
|
12427
12438
|
this.itemSelected.emit(this.activeItem);
|
|
12428
12439
|
};
|
|
12429
12440
|
ListOfIconsComponent.prototype.handlePickingCategoryClicked = function (subCategory) {
|
|
12430
|
-
this.
|
|
12441
|
+
this.activeItem = subCategory;
|
|
12431
12442
|
this.showMenu = false;
|
|
12443
|
+
this.itemSelected.emit(subCategory);
|
|
12432
12444
|
this.showSubCategories = false;
|
|
12433
12445
|
};
|
|
12434
12446
|
ListOfIconsComponent.prototype.onClickOutside = function () {
|
|
@@ -12440,12 +12452,11 @@
|
|
|
12440
12452
|
ListOfIconsComponent.decorators = [
|
|
12441
12453
|
{ type: i0.Component, args: [{
|
|
12442
12454
|
selector: 'co-list-of-icons',
|
|
12443
|
-
template: "\n
|
|
12455
|
+
template: "\n <div class=\"icon-item active\" [class.menu-opened]=\"showMenu\" (click)=\"toggleMenu()\">\n <co-icon [iconData]=\"activeItem.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <co-icon *ngIf=\"!showMenu\" class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.CaretDownSolid)\"></co-icon>\n <co-icon *ngIf=\"showMenu\" class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.CaretUpSolid)\"></co-icon>\n </div>\n <div class=\"dropdown-menu\" *ngIf=\"showMenu\" (clickOutside)=\"onClickOutside()\">\n <div class=\"icon-item\" *ngFor=\"let item of collection\" (click)=\"selectItem(item)\"\n [class.active]=\"item === activeItem\">\n <co-icon [iconData]=\"item.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <div class=\"label\" [textContent]=\"item.label | coreLocalize\"></div>\n <div class=\"picking-type-wrapper\" *ngIf=\"showSubCategories && item.children?.length > 0\">\n <div\n class=\"button-wrapper\"\n *ngFor=\"let subCategory of item.children\"\n (click)=\"handlePickingCategoryClicked(subCategory)\">\n <co-icon\n class=\"co-transaction-button-bar-icon\"\n [iconData]=\"subCategory.icon\"\n [style.width.px]=\"iconSize\"\n [style.height.px]=\"iconSize\">\n </co-icon>\n <span class=\"button-title\" [textContent]=\"subCategory.label | coreLocalize\"></span>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
12444
12456
|
encapsulation: i0.ViewEncapsulation.None
|
|
12445
12457
|
},] }
|
|
12446
12458
|
];
|
|
12447
12459
|
ListOfIconsComponent.ctorParameters = function () { return [
|
|
12448
|
-
{ type: IconCacheService },
|
|
12449
12460
|
{ type: IconCacheService }
|
|
12450
12461
|
]; };
|
|
12451
12462
|
ListOfIconsComponent.propDecorators = {
|
|
@@ -15149,6 +15160,11 @@
|
|
|
15149
15160
|
};
|
|
15150
15161
|
HourSchedulingExpandableComponent.prototype.handleDrop = function (dragEvent, hour) {
|
|
15151
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
|
+
}
|
|
15152
15168
|
if (this.currentDraggingObject) {
|
|
15153
15169
|
//The order was scheduled and needs to be moved
|
|
15154
15170
|
var start = this.currentDraggingObject.start;
|
|
@@ -15166,17 +15182,17 @@
|
|
|
15166
15182
|
scheduledObject.top = this.timeDifference(this.schedule[this.childProp][this.startTimeProp], scheduledObject.start);
|
|
15167
15183
|
scheduledObject.height = this.timeDifference(scheduledObject.start, scheduledObject.end);
|
|
15168
15184
|
this.timeChangeEvent.emit(originalObject);
|
|
15169
|
-
this.currentDraggingObject = undefined;
|
|
15170
15185
|
}
|
|
15186
|
+
this.currentDraggingObject = undefined;
|
|
15171
15187
|
}
|
|
15172
15188
|
else {
|
|
15173
15189
|
var parsed = this.tryParseJSONObject(dragEvent.dataTransfer.getData("text"));
|
|
15174
15190
|
if (!parsed) {
|
|
15175
15191
|
this.newObjectPlanEvent.emit({ currentHour: hour, data: parsed.toString() });
|
|
15176
|
-
return;
|
|
15177
15192
|
}
|
|
15178
|
-
|
|
15179
|
-
|
|
15193
|
+
else {
|
|
15194
|
+
this.moveBetweenCalendarsEvent.emit({ hour: hour, data: parsed });
|
|
15195
|
+
}
|
|
15180
15196
|
}
|
|
15181
15197
|
};
|
|
15182
15198
|
HourSchedulingExpandableComponent.prototype.allowDrop = function (event, hour) {
|
|
@@ -15363,8 +15379,10 @@
|
|
|
15363
15379
|
return true;
|
|
15364
15380
|
};
|
|
15365
15381
|
HourSchedulingExpandableTemplateComponent.prototype.onExpandableDragStart = function (event, obj, onDragStartCustom) {
|
|
15366
|
-
|
|
15367
|
-
|
|
15382
|
+
event.dataTransfer.setData('text', JSON.stringify({ obj: obj }));
|
|
15383
|
+
if (onDragStartCustom) {
|
|
15384
|
+
onDragStartCustom === null || onDragStartCustom === void 0 ? void 0 : onDragStartCustom.call(obj);
|
|
15385
|
+
}
|
|
15368
15386
|
};
|
|
15369
15387
|
HourSchedulingExpandableTemplateComponent.prototype.calculateLeftAndWidthOfObjects = function () {
|
|
15370
15388
|
var layoutData = new Array(this._objects.length);
|
|
@@ -15376,8 +15394,9 @@
|
|
|
15376
15394
|
var overlapGroups = [];
|
|
15377
15395
|
var processed = new Set();
|
|
15378
15396
|
for (var i = 0; i < this._objects.length; i++) {
|
|
15379
|
-
if (processed.has(i))
|
|
15397
|
+
if (processed.has(i)) {
|
|
15380
15398
|
continue;
|
|
15399
|
+
}
|
|
15381
15400
|
var group = [i];
|
|
15382
15401
|
var objA = this._objects[i];
|
|
15383
15402
|
var startA = new Date(objA.start);
|
|
@@ -15411,8 +15430,8 @@
|
|
|
15411
15430
|
}());
|
|
15412
15431
|
HourSchedulingExpandableTemplateComponent.decorators = [
|
|
15413
15432
|
{ type: i0.Component, args: [{
|
|
15414
|
-
selector:
|
|
15415
|
-
template: "\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 ",
|
|
15416
15435
|
encapsulation: i0.ViewEncapsulation.None
|
|
15417
15436
|
},] }
|
|
15418
15437
|
];
|
|
@@ -15424,9 +15443,29 @@
|
|
|
15424
15443
|
onSelectBlock: [{ type: i0.Input }],
|
|
15425
15444
|
startTimeProp: [{ type: i0.Input }],
|
|
15426
15445
|
endTimeProp: [{ type: i0.Input }],
|
|
15427
|
-
showClass: [{ type: i0.HostBinding, args: [
|
|
15446
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-hour-scheduling-expandable-template',] }]
|
|
15428
15447
|
};
|
|
15429
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
|
+
|
|
15430
15469
|
var HourSchedulingTestObjectComponent = /** @class */ (function () {
|
|
15431
15470
|
function HourSchedulingTestObjectComponent() {
|
|
15432
15471
|
}
|
|
@@ -15480,14 +15519,13 @@
|
|
|
15480
15519
|
imports: [
|
|
15481
15520
|
common.CommonModule,
|
|
15482
15521
|
HourSchedulingComponentModule,
|
|
15522
|
+
HourSchedulingExpandableTemplateModule
|
|
15483
15523
|
],
|
|
15484
15524
|
declarations: [
|
|
15485
15525
|
HourSchedulingExpandableComponent,
|
|
15486
|
-
HourSchedulingExpandableTemplateComponent
|
|
15487
15526
|
],
|
|
15488
15527
|
exports: [
|
|
15489
15528
|
HourSchedulingExpandableComponent,
|
|
15490
|
-
HourSchedulingExpandableTemplateComponent
|
|
15491
15529
|
],
|
|
15492
15530
|
providers: [common.DatePipe]
|
|
15493
15531
|
},] }
|
|
@@ -15554,6 +15592,7 @@
|
|
|
15554
15592
|
exports.HourSchedulingExpandableComponent = HourSchedulingExpandableComponent;
|
|
15555
15593
|
exports.HourSchedulingExpandableComponentModule = HourSchedulingExpandableComponentModule;
|
|
15556
15594
|
exports.HourSchedulingExpandableTemplateComponent = HourSchedulingExpandableTemplateComponent;
|
|
15595
|
+
exports.HourSchedulingExpandableTemplateModule = HourSchedulingExpandableTemplateModule;
|
|
15557
15596
|
exports.IconCacheService = IconCacheService;
|
|
15558
15597
|
exports.IconCollapseHandleComponent = IconCollapseHandleComponent;
|
|
15559
15598
|
exports.IconCollapseHandleModule = IconCollapseHandleModule;
|