@colijnit/corecomponents_v12 12.2.15 → 12.2.17
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 +161 -39
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/form/form.component.js +2 -2
- package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +2 -2
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +2 -1
- package/esm2015/lib/components/loader/loader.component.js +3 -3
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +8 -1
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +72 -38
- package/esm2015/lib/components/tile-select/tile-select.component.js +36 -0
- package/esm2015/lib/components/tile-select/tile-select.module.js +21 -0
- package/esm2015/lib/directives/overlay/overlay.directive.js +8 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +143 -43
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/loader/style/_layout.scss +22 -4
- package/lib/components/loader/style/_material-definition.scss +1 -1
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +2 -0
- package/lib/components/simple-grid/simple-grid.component.d.ts +10 -3
- package/lib/components/tile-select/style/_layout.scss +42 -0
- package/lib/components/tile-select/style/_material-definition.scss +18 -0
- package/lib/components/tile-select/style/_theme.scss +34 -0
- package/lib/components/tile-select/style/material.scss +4 -0
- package/lib/components/tile-select/tile-select.component.d.ts +8 -0
- package/lib/components/tile-select/tile-select.module.d.ts +2 -0
- package/lib/style/_variables.scss +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -5420,7 +5420,7 @@
|
|
|
5420
5420
|
}());
|
|
5421
5421
|
FormComponent.decorators = [
|
|
5422
5422
|
{ type: i0.Component, args: [{
|
|
5423
|
-
selector: "co-form
|
|
5423
|
+
selector: "co-form",
|
|
5424
5424
|
template: "\n <ng-content></ng-content>\n ",
|
|
5425
5425
|
encapsulation: i0.ViewEncapsulation.None
|
|
5426
5426
|
},] }
|
|
@@ -6118,7 +6118,13 @@
|
|
|
6118
6118
|
this._elementRef.nativeElement.style.width = parentRect.width + "px";
|
|
6119
6119
|
}
|
|
6120
6120
|
if (this.rightAlign) {
|
|
6121
|
-
|
|
6121
|
+
var left = (parentRect.right - elementRect.width);
|
|
6122
|
+
if (this.keepInView) {
|
|
6123
|
+
var viewToKeepIn = this.view ? this.view : window;
|
|
6124
|
+
var viewLeft = viewToKeepIn.offsetLeft || 0;
|
|
6125
|
+
left = Math.max(left, viewLeft);
|
|
6126
|
+
}
|
|
6127
|
+
this._elementRef.nativeElement.style.left = left + "px";
|
|
6122
6128
|
}
|
|
6123
6129
|
else if (this.fullSize) {
|
|
6124
6130
|
this._elementRef.nativeElement.style.left = "0px";
|
|
@@ -8070,7 +8076,7 @@
|
|
|
8070
8076
|
event.preventDefault();
|
|
8071
8077
|
event.stopPropagation();
|
|
8072
8078
|
if (!this.readonly) {
|
|
8073
|
-
this.model =
|
|
8079
|
+
this.model = true;
|
|
8074
8080
|
this.modelChange.next(this.model);
|
|
8075
8081
|
if (this.control) {
|
|
8076
8082
|
this.control.markAsDirty({ onlySelf: true });
|
|
@@ -9700,6 +9706,7 @@
|
|
|
9700
9706
|
this.columns = [];
|
|
9701
9707
|
this.headerColumns = [];
|
|
9702
9708
|
this._data = [];
|
|
9709
|
+
this.disabledRows = [];
|
|
9703
9710
|
this._prepared = false;
|
|
9704
9711
|
}
|
|
9705
9712
|
Object.defineProperty(BaseSimpleGridComponent.prototype, "content", {
|
|
@@ -9771,6 +9778,8 @@
|
|
|
9771
9778
|
BaseSimpleGridComponent.prototype.singleColumnIndex = function (row) {
|
|
9772
9779
|
return row.singleColumnIndex;
|
|
9773
9780
|
};
|
|
9781
|
+
BaseSimpleGridComponent.prototype.prepareDataRow = function (row, index) {
|
|
9782
|
+
};
|
|
9774
9783
|
BaseSimpleGridComponent.prototype._setColumns = function (columns) {
|
|
9775
9784
|
var _a;
|
|
9776
9785
|
(_a = this.columns).push.apply(_a, __spreadArray([], __read(columns)));
|
|
@@ -9780,6 +9789,7 @@
|
|
|
9780
9789
|
if (this._prepared) {
|
|
9781
9790
|
return;
|
|
9782
9791
|
}
|
|
9792
|
+
this.disabledRows.length = 0;
|
|
9783
9793
|
if (this.columns && this.columns.length > 0) {
|
|
9784
9794
|
this.headerColumns = this.columns.filter(function (c) { return !c.singleColumn; });
|
|
9785
9795
|
var singleColumnIndex = -1;
|
|
@@ -9799,6 +9809,9 @@
|
|
|
9799
9809
|
}
|
|
9800
9810
|
}
|
|
9801
9811
|
}
|
|
9812
|
+
for (var i = 0; i < this.data.length; i++) {
|
|
9813
|
+
this.prepareDataRow(this.data[i], i);
|
|
9814
|
+
}
|
|
9802
9815
|
this._prepared = true;
|
|
9803
9816
|
}
|
|
9804
9817
|
this._resizeColumnsToFit();
|
|
@@ -9853,6 +9866,7 @@
|
|
|
9853
9866
|
_this.defaultTextAlign = exports.ColumnAlign.Left;
|
|
9854
9867
|
_this.showAdd = false;
|
|
9855
9868
|
_this.showDelete = false;
|
|
9869
|
+
_this.editOnCellClick = true;
|
|
9856
9870
|
_this.rightToolbar = false;
|
|
9857
9871
|
_this.rowsPerPage = 1000;
|
|
9858
9872
|
_this.editing = false;
|
|
@@ -9904,13 +9918,35 @@
|
|
|
9904
9918
|
SimpleGridComponent.prototype.handleClickOutsideRow = function () {
|
|
9905
9919
|
this.validateAndSave();
|
|
9906
9920
|
};
|
|
9907
|
-
SimpleGridComponent.prototype.
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9921
|
+
SimpleGridComponent.prototype.getIsRowDisabled = function (idx) {
|
|
9922
|
+
return this.disabledRows.indexOf(idx) > -1;
|
|
9923
|
+
};
|
|
9924
|
+
SimpleGridComponent.prototype.isRowDisabled = function (row, index) {
|
|
9925
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9926
|
+
var disabled, idxRow;
|
|
9927
|
+
return __generator(this, function (_a) {
|
|
9928
|
+
switch (_a.label) {
|
|
9929
|
+
case 0:
|
|
9930
|
+
if (!(this.rowDisabledFn && (typeof this.rowDisabledFn === 'function'))) return [3 /*break*/, 2];
|
|
9931
|
+
return [4 /*yield*/, this.rowDisabledFn.call(this, row)];
|
|
9932
|
+
case 1:
|
|
9933
|
+
disabled = _a.sent();
|
|
9934
|
+
idxRow = this.disabledRows.indexOf(index);
|
|
9935
|
+
if (disabled) {
|
|
9936
|
+
if (idxRow < 0) {
|
|
9937
|
+
this.disabledRows.push(index);
|
|
9938
|
+
}
|
|
9939
|
+
}
|
|
9940
|
+
else {
|
|
9941
|
+
if (idxRow > -1) {
|
|
9942
|
+
this.disabledRows.splice(idxRow, 1);
|
|
9943
|
+
}
|
|
9944
|
+
}
|
|
9945
|
+
return [2 /*return*/, disabled];
|
|
9946
|
+
case 2: return [2 /*return*/, false];
|
|
9947
|
+
}
|
|
9948
|
+
});
|
|
9949
|
+
});
|
|
9914
9950
|
};
|
|
9915
9951
|
SimpleGridComponent.prototype.isSingleColumn = function (column) {
|
|
9916
9952
|
return column.singleColumn;
|
|
@@ -9981,10 +10017,6 @@
|
|
|
9981
10017
|
};
|
|
9982
10018
|
SimpleGridComponent.prototype.handleClickRow = function (event, index, row) {
|
|
9983
10019
|
var _this = this;
|
|
9984
|
-
if (this.isRowDisabled(row)) {
|
|
9985
|
-
this.selectedRowIndex = -1;
|
|
9986
|
-
return;
|
|
9987
|
-
}
|
|
9988
10020
|
setTimeout(function () {
|
|
9989
10021
|
if (_this._doubleClicked) {
|
|
9990
10022
|
return;
|
|
@@ -10003,17 +10035,36 @@
|
|
|
10003
10035
|
this._detectChanges();
|
|
10004
10036
|
};
|
|
10005
10037
|
SimpleGridComponent.prototype.handleDblClickRow = function (event, index, row) {
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
return
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10038
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10039
|
+
var canEdit;
|
|
10040
|
+
return __generator(this, function (_a) {
|
|
10041
|
+
switch (_a.label) {
|
|
10042
|
+
case 0: return [4 /*yield*/, this.isRowDisabled(row, index)];
|
|
10043
|
+
case 1:
|
|
10044
|
+
if (_a.sent()) {
|
|
10045
|
+
this.selectedRowIndex = -1;
|
|
10046
|
+
return [2 /*return*/];
|
|
10047
|
+
}
|
|
10048
|
+
canEdit = true;
|
|
10049
|
+
if (!(this.canRowBeEdittedFn && typeof this.canRowBeEdittedFn === 'function')) return [3 /*break*/, 3];
|
|
10050
|
+
return [4 /*yield*/, this.canRowBeEdittedFn.call(this, row)];
|
|
10051
|
+
case 2:
|
|
10052
|
+
canEdit = _a.sent();
|
|
10053
|
+
_a.label = 3;
|
|
10054
|
+
case 3:
|
|
10055
|
+
if (canEdit) {
|
|
10056
|
+
this._doubleClicked = true;
|
|
10057
|
+
this.dblClickRow.next(this.data[index]);
|
|
10058
|
+
this.selectTheRow(index, false);
|
|
10059
|
+
if (this.inlineEdit) {
|
|
10060
|
+
this.editRow(event);
|
|
10061
|
+
}
|
|
10062
|
+
}
|
|
10063
|
+
this._resetDblClick();
|
|
10064
|
+
return [2 /*return*/];
|
|
10065
|
+
}
|
|
10066
|
+
});
|
|
10067
|
+
});
|
|
10017
10068
|
};
|
|
10018
10069
|
SimpleGridComponent.prototype.editRow = function (event, selectCell) {
|
|
10019
10070
|
var _this = this;
|
|
@@ -10029,18 +10080,37 @@
|
|
|
10029
10080
|
this._detectChanges();
|
|
10030
10081
|
};
|
|
10031
10082
|
SimpleGridComponent.prototype.handleCellClick = function (event, row, rowIndex, cellIndex) {
|
|
10032
|
-
|
|
10033
|
-
this
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10083
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10084
|
+
return __generator(this, function (_a) {
|
|
10085
|
+
switch (_a.label) {
|
|
10086
|
+
case 0:
|
|
10087
|
+
if (!this.editOnCellClick) return [3 /*break*/, 2];
|
|
10088
|
+
return [4 /*yield*/, this.isRowDisabled(row, rowIndex)];
|
|
10089
|
+
case 1:
|
|
10090
|
+
if (_a.sent()) {
|
|
10091
|
+
this.selectedRowIndex = -1;
|
|
10092
|
+
return [2 /*return*/];
|
|
10093
|
+
}
|
|
10094
|
+
this.selectTheRow(rowIndex, false);
|
|
10095
|
+
if (this.inlineEdit) {
|
|
10096
|
+
this.editRowIndex = rowIndex;
|
|
10097
|
+
this.editCellIndex = cellIndex;
|
|
10098
|
+
this.editing = true;
|
|
10099
|
+
this.editRow(event, false);
|
|
10100
|
+
}
|
|
10101
|
+
return [3 /*break*/, 3];
|
|
10102
|
+
case 2:
|
|
10103
|
+
this.editCellIndex = cellIndex;
|
|
10104
|
+
_a.label = 3;
|
|
10105
|
+
case 3:
|
|
10106
|
+
this._detectChanges();
|
|
10107
|
+
return [2 /*return*/];
|
|
10108
|
+
}
|
|
10109
|
+
});
|
|
10110
|
+
});
|
|
10111
|
+
};
|
|
10112
|
+
SimpleGridComponent.prototype.prepareDataRow = function (row, index) {
|
|
10113
|
+
this.isRowDisabled(row, index);
|
|
10044
10114
|
};
|
|
10045
10115
|
SimpleGridComponent.prototype._resetDblClick = function () {
|
|
10046
10116
|
var _this = this;
|
|
@@ -10190,7 +10260,7 @@
|
|
|
10190
10260
|
SimpleGridComponent.decorators = [
|
|
10191
10261
|
{ type: i0.Component, args: [{
|
|
10192
10262
|
selector: 'co-simple-grid',
|
|
10193
|
-
template: "\n <co-grid-toolbar *ngIf=\"showToolbar\" [class.right]=\"rightToolbar\"\n [showEdit]=\"showEdit\"\n [showAdd]=\"showAdd\"\n [showDelete]=\"showDelete\"\n [deleteEnabled]=\"selectedRowIndex > -1\"\n (addClick)=\"addNewRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n (deleteClick)=\"removeRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\" [clickOutside]=\"editing\" (clickOutside)=\"handleClickOutsideRow()\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\"\n [class.simple-grid-column-auto-fit]=\"column.autoFit\"\n [style.width.px]=\"column.width\"\n [style.min-width.px]=\"MIN_COLUMN_WIDTH\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\">\n <ng-container *ngIf=\"column.headerTemplate; else noHeaderTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #noHeaderTemplate>\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText || ' '\"\n ></div>\n </ng-template>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled || editing\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"
|
|
10263
|
+
template: "\n <co-grid-toolbar *ngIf=\"showToolbar\" [class.right]=\"rightToolbar\"\n [showEdit]=\"showEdit\"\n [showAdd]=\"showAdd\"\n [showDelete]=\"showDelete\"\n [deleteEnabled]=\"selectedRowIndex > -1\"\n (addClick)=\"addNewRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n (deleteClick)=\"removeRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\" [clickOutside]=\"editing\" (clickOutside)=\"handleClickOutsideRow()\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\"\n [class.simple-grid-column-auto-fit]=\"column.autoFit\"\n [style.width.px]=\"column.width\"\n [style.min-width.px]=\"MIN_COLUMN_WIDTH\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\">\n <ng-container *ngIf=\"column.headerTemplate; else noHeaderTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #noHeaderTemplate>\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText || ' '\"\n ></div>\n </ng-template>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled || editing\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"getIsRowDisabled(rowIndex)\"\n [class.editing]=\"rowIndex === editRowIndex\" *ngFor=\"let row of (!!rowsPerPage ? (data | paginate: {itemsPerPage: rowsPerPage, currentPage: currentPage}) : data); last as last; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex, row)\" (dblclick)=\"handleDblClickRow($event, rowIndex, row)\" (visibilityChange)=\"rowVisible.next(row)\">\n <co-form class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editing && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex && rowIndex === editRowIndex\"\n (cellClick)=\"handleCellClick($event, row, rowIndex, columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form>\n </tr>\n </tbody>\n </table>\n <co-pagination-bar *ngIf=\"data?.length > rowsPerPage\" class=\"pagination-bar\"\n [itemsPerPage]=\"rowsPerPage\"\n [currentPage]=\"currentPage\"\n [totalItems]=\"data.length\"\n [autoHide]=\"true\"\n (previousClick)=\"goToPreviousPage()\"\n (nextClick)=\"goToNextPage()\"\n (pageClick)=\"setCurrentPage($event)\"\n ></co-pagination-bar>\n ",
|
|
10194
10264
|
providers: [
|
|
10195
10265
|
FormMasterService
|
|
10196
10266
|
],
|
|
@@ -10206,9 +10276,11 @@
|
|
|
10206
10276
|
headerCells: [{ type: i0.ViewChildren, args: ['headerCell',] }],
|
|
10207
10277
|
showAdd: [{ type: i0.Input }],
|
|
10208
10278
|
showDelete: [{ type: i0.Input }],
|
|
10279
|
+
editOnCellClick: [{ type: i0.Input }],
|
|
10209
10280
|
rightToolbar: [{ type: i0.Input }],
|
|
10210
10281
|
rowsPerPage: [{ type: i0.Input }],
|
|
10211
10282
|
rowDisabledFn: [{ type: i0.Input }],
|
|
10283
|
+
canRowBeEdittedFn: [{ type: i0.Input }],
|
|
10212
10284
|
showClass: [{ type: i0.HostBinding, args: ['class.co-simple-grid',] }],
|
|
10213
10285
|
handleKeyDown: [{ type: i0.HostListener, args: ['keydown', ['$event'],] }]
|
|
10214
10286
|
};
|
|
@@ -11411,6 +11483,7 @@
|
|
|
11411
11483
|
}
|
|
11412
11484
|
this.model = option;
|
|
11413
11485
|
this.modelChange.emit(this.model);
|
|
11486
|
+
this.detectChanges();
|
|
11414
11487
|
};
|
|
11415
11488
|
ListOfValuesComponent.prototype.closePopup = function () {
|
|
11416
11489
|
this.keepFocussed = false;
|
|
@@ -12845,7 +12918,7 @@
|
|
|
12845
12918
|
LoaderComponent.decorators = [
|
|
12846
12919
|
{ type: i0.Component, args: [{
|
|
12847
12920
|
selector: 'co-loader',
|
|
12848
|
-
template: "\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 200 200\" xml:space=\"preserve\">\n <defs>\n <linearGradient id=\"gradientFade\" x1=\"20%\" x2=\"50%\" y1=\"60%\" y2=\"100%\">\n <stop offset=\"0%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"25%\" stop-opacity=\"75%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"50%\" stop-opacity=\"50%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"75%\" stop-opacity=\"25%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"100%\" stop-opacity=\"5%\" class=\"spinner-gradient-stop\" />\n </linearGradient>\n </defs> \n <g id=\"mask\">\n <ellipse transform=\"matrix(0.7071 -0.7071 0.7071 0.7071 -41.0887 100.8995)\" class=\"circle\" cx=\"101.25\" cy=\"101.25\" rx=\"77.58\"\n ry=\"77.58\"/>\n </g>\n <g>\n <circle id=\"ring\" class=\"ring-color\" cx=\"100\" cy=\"100\" r=\"90\" fill=\"
|
|
12921
|
+
template: "\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 200 200\" xml:space=\"preserve\">\n <defs>\n <linearGradient id=\"gradientFade\" x1=\"20%\" x2=\"50%\" y1=\"60%\" y2=\"100%\">\n <stop offset=\"0%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"25%\" stop-opacity=\"75%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"50%\" stop-opacity=\"50%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"75%\" stop-opacity=\"25%\" class=\"spinner-gradient-stop\" />\n <stop offset=\"100%\" stop-opacity=\"5%\" class=\"spinner-gradient-stop\" />\n </linearGradient>\n </defs> \n <g id=\"mask\">\n <ellipse transform=\"matrix(0.7071 -0.7071 0.7071 0.7071 -41.0887 100.8995)\" class=\"circle\" cx=\"101.25\" cy=\"101.25\" rx=\"77.58\"\n ry=\"77.58\"/>\n </g>\n <g id=\"ring\" fill=\"none\">\n <circle id=\"ring-loader\" class=\"ring-color\" cx=\"100\" cy=\"100\" r=\"90\" fill=\"none\" />\n </g>\n <g id=\"js\">\n <path class=\"main-color\" d=\"M87.93,149.17c-0.12-0.17-0.08-0.4,0.09-0.52l0.61-0.45c2.92-2.14,4.34-4.61,4.34-7.56l0-20.64h2.47\n c0.74,0,1.34,0.6,1.34,1.34v18.32c0,2.97-0.65,5.4-1.93,7.23c-0.61,0.89-1.25,1.66-1.9,2.28c-0.63,0.6-1.41,1.23-2.3,1.87\n l-0.65,0.47c-0.18,0.12-0.42,0.08-0.54-0.1L87.93,149.17z\"/>\n <path class=\"main-color\" d=\"M107.12,142.92c-2.24,0-4.18-0.59-5.79-1.75l0,0c-0.47-0.34-0.59-1-0.27-1.48l1.06-1.59\n c0.12-0.17,0.35-0.22,0.53-0.11l0.58,0.38c1.18,0.77,2.43,1.14,3.84,1.14c1.36,0,2.39-0.25,3.05-0.75\n c0.59-0.44,0.86-1.04,0.86-1.92c0-0.59-0.22-1.15-0.68-1.71c-0.55-0.67-1.23-1.29-2.02-1.84c-0.85-0.58-1.74-1.22-2.66-1.88\n c-0.97-0.7-1.81-1.55-2.5-2.53c-0.75-1.06-1.12-2.23-1.12-3.46c0-1.67,0.63-3.02,1.89-4.01c1.17-0.93,2.74-1.4,4.66-1.4\n c1.83,0,3.55,0.37,5.13,1.11l0.62,0.29c0.19,0.09,0.27,0.31,0.19,0.5l-1.03,2.37c-0.08,0.19-0.31,0.28-0.5,0.2l-0.64-0.27\n c-1.22-0.52-2.45-0.78-3.64-0.78c-3.01,0-3.01,1.31-3.01,1.94c0,0.63,0.22,1.21,0.68,1.77c0.55,0.67,1.22,1.28,2.01,1.8\n c0.91,0.61,1.8,1.22,2.66,1.82c0.97,0.68,1.82,1.52,2.5,2.47c0.75,1.04,1.13,2.2,1.13,3.44c0,2.05-0.72,3.64-2.14,4.72\n C111.17,142.4,109.36,142.92,107.12,142.92z\"/>\n </g>\n <g id=\"i\">\n <path class=\"second-color\" d=\"M38.1,100.24V80.62c0-0.18,0.14-0.32,0.32-0.32h2.53c0.88,0,1.6,0.72,1.6,1.6v18.34\n c0,0.18-0.14,0.32-0.32,0.32h-3.8C38.25,100.56,38.1,100.42,38.1,100.24z\"/>\n </g>\n <g id=\"n\">\n <path class=\"second-color\" d=\"M126.95,107l-14.97-17.18c-0.19-0.22-0.56-0.09-0.56,0.21v16.62c0,0.18-0.14,0.32-0.32,0.32h-3.8\n c-0.18,0-0.32-0.14-0.32-0.32V82.12c0-0.88,0.72-1.6,1.6-1.6h1.07c0.09,0,0.18,0.04,0.24,0.11l14.97,17.22\n c0.19,0.22,0.56,0.09,0.56-0.21V80.99c0-0.18,0.14-0.32,0.32-0.32h3.8c0.18,0,0.32,0.14,0.32,0.32v25.81\n c0,0.18-0.14,0.32-0.32,0.32h-2.35C127.1,107.11,127.01,107.07,126.95,107z\"/>\n </g>\n <g id=\"e\">\n <path class=\"second-color\" d=\"M150.28,105.37V80.99c0-0.18,0.14-0.32,0.32-0.32h13.12c0.18,0,0.32,0.14,0.32,0.32v3.59\n c0,0.18-0.14,0.32-0.32,0.32h-8.68c-0.18,0-0.32,0.14-0.32,0.32v5.14c0,0.18,0.14,0.32,0.32,0.32h7.77c0.18,0,0.32,0.14,0.32,0.32\n v3.55c0,0.18-0.14,0.32-0.32,0.32h-7.77c-0.18,0-0.32,0.14-0.32,0.32v7.17c0,0.18,0.14,0.32,0.32,0.32h9.04\n c0.18,0,0.32,0.14,0.32,0.32v3.66c0,0.18-0.14,0.32-0.32,0.32h-12.2C151,106.97,150.28,106.25,150.28,105.37z\"/>\n </g>\n <g id=\"o\">\n <path class=\"second-color\" d=\"M67.44,86.2c0.59,0.54,0.68,1.43,0.23,2.09c-0.41,0.6-0.75,1.24-1.01,1.92c-0.42,1.1-0.63,2.31-0.63,3.61\n c0,1.3,0.21,2.51,0.63,3.61c0.42,1.1,1.04,2.1,1.88,2.98c0.82,0.87,1.75,1.53,2.8,1.97c1.04,0.44,2.19,0.66,3.44,0.66\n c1.25,0,2.4-0.22,3.43-0.66c1.04-0.44,1.97-1.09,2.78-1.97c0.83-0.88,1.45-1.88,1.86-2.98c0.42-1.1,0.63-2.31,0.63-3.61\n c0-1.3-0.21-2.51-0.63-3.62c-0.42-1.1-1.04-2.11-1.87-3c-0.81-0.87-1.74-1.53-2.78-1.97c-1.04-0.44-2.18-0.66-3.43-0.66\n c-0.77,0-1.49,0.08-2.18,0.25c-0.75,0.18-1.53-0.19-1.84-0.9l-1.03-2.32c-0.07-0.17,0-0.36,0.17-0.43\n c1.49-0.58,3.12-0.87,4.86-0.87c1.87,0,3.59,0.33,5.17,0.99c1.58,0.66,3,1.64,4.27,2.95c1.26,1.3,2.21,2.76,2.84,4.36\n c0.63,1.6,0.95,3.34,0.95,5.22c0,1.88-0.32,3.62-0.95,5.22c-0.63,1.6-1.58,3.06-2.84,4.36c-1.27,1.31-2.69,2.29-4.27,2.95\n c-1.58,0.66-3.31,0.99-5.17,0.99c-1.87,0-3.6-0.33-5.17-0.99c-1.58-0.66-3-1.64-4.27-2.95c-1.26-1.3-2.21-2.76-2.84-4.36\n c-0.63-1.6-0.95-3.34-0.95-5.22c0-1.88,0.32-3.62,0.95-5.22c0.6-1.51,1.47-2.88,2.63-4.13c0.12-0.13,0.32-0.13,0.45-0.02\n L67.44,86.2z\"/>\n </g>\n <g id=\"smile\">\n <path class=\"main-color\" d=\"M101.26,178.35c-3.73-0.01-7.38-0.28-10.86-0.82c-3.62-0.57-6.94-1.38-9.85-2.4c-3.01-1.05-5.69-2.3-7.94-3.73\n c-1.09-0.71-2.1-1.76-2.99-2.84c0.98,0.74,2.03,1.44,3.16,2.07c2.38,1.38,5.13,2.58,8.16,3.55c5.99,1.93,13.15,2.99,20.17,2.99\n h0.31c7.01,0,14.17-1.06,20.16-2.99c3.03-0.97,5.78-2.16,8.17-3.55c1.12-0.64,2.17-1.32,3.15-2.06c-0.89,1.08-1.89,2.13-2.99,2.83\n c-2.25,1.42-4.92,2.67-7.94,3.72c-2.91,1.02-6.23,1.83-9.85,2.4C108.65,178.07,105,178.35,101.26,178.35z\"/>\n </g>\n </svg>\n ",
|
|
12849
12922
|
encapsulation: i0.ViewEncapsulation.None
|
|
12850
12923
|
},] }
|
|
12851
12924
|
];
|
|
@@ -12872,6 +12945,53 @@
|
|
|
12872
12945
|
},] }
|
|
12873
12946
|
];
|
|
12874
12947
|
|
|
12948
|
+
var TileSelectComponent = /** @class */ (function () {
|
|
12949
|
+
function TileSelectComponent() {
|
|
12950
|
+
this.selected = false;
|
|
12951
|
+
this.readonly = false;
|
|
12952
|
+
this.showRadioButton = true;
|
|
12953
|
+
this.selectedChange = new i0.EventEmitter();
|
|
12954
|
+
}
|
|
12955
|
+
TileSelectComponent.prototype.showClass = function () {
|
|
12956
|
+
return true;
|
|
12957
|
+
};
|
|
12958
|
+
return TileSelectComponent;
|
|
12959
|
+
}());
|
|
12960
|
+
TileSelectComponent.decorators = [
|
|
12961
|
+
{ type: i0.Component, args: [{
|
|
12962
|
+
selector: 'co-tile-select',
|
|
12963
|
+
template: "\n <div class=\"co-tile-wrapper\" (click)=\"selectedChange.emit(selected)\">\n <div class=\"co-tile-select-wrapper\" *ngIf=\"showRadioButton\">\n <co-input-radio-button [model]=\"selected\" [readonly]=\"selected || readonly\" (modelChange)=\"selectedChange.emit($event)\"></co-input-radio-button>\n </div>\n <div class=\"co-tile-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n ",
|
|
12964
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
12965
|
+
},] }
|
|
12966
|
+
];
|
|
12967
|
+
TileSelectComponent.propDecorators = {
|
|
12968
|
+
selected: [{ type: i0.HostBinding, args: ['class.selected',] }, { type: i0.Input }],
|
|
12969
|
+
readonly: [{ type: i0.Input }],
|
|
12970
|
+
showRadioButton: [{ type: i0.Input }],
|
|
12971
|
+
selectedChange: [{ type: i0.Output }],
|
|
12972
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-tile-select',] }]
|
|
12973
|
+
};
|
|
12974
|
+
|
|
12975
|
+
var TileSelectModule = /** @class */ (function () {
|
|
12976
|
+
function TileSelectModule() {
|
|
12977
|
+
}
|
|
12978
|
+
return TileSelectModule;
|
|
12979
|
+
}());
|
|
12980
|
+
TileSelectModule.decorators = [
|
|
12981
|
+
{ type: i0.NgModule, args: [{
|
|
12982
|
+
imports: [
|
|
12983
|
+
common.CommonModule,
|
|
12984
|
+
InputRadioButtonModule
|
|
12985
|
+
],
|
|
12986
|
+
declarations: [
|
|
12987
|
+
TileSelectComponent
|
|
12988
|
+
],
|
|
12989
|
+
exports: [
|
|
12990
|
+
TileSelectComponent
|
|
12991
|
+
]
|
|
12992
|
+
},] }
|
|
12993
|
+
];
|
|
12994
|
+
|
|
12875
12995
|
var FilterPipe = /** @class */ (function () {
|
|
12876
12996
|
function FilterPipe() {
|
|
12877
12997
|
}
|
|
@@ -13738,6 +13858,8 @@
|
|
|
13738
13858
|
exports.TextInputPopupComponent = TextInputPopupComponent;
|
|
13739
13859
|
exports.TileComponent = TileComponent;
|
|
13740
13860
|
exports.TileModule = TileModule;
|
|
13861
|
+
exports.TileSelectComponent = TileSelectComponent;
|
|
13862
|
+
exports.TileSelectModule = TileSelectModule;
|
|
13741
13863
|
exports.TooltipDirectiveModule = TooltipDirectiveModule;
|
|
13742
13864
|
exports.ViewModeButtonsComponent = ViewModeButtonsComponent;
|
|
13743
13865
|
exports.ViewModeButtonsModule = ViewModeButtonsModule;
|