@colijnit/corecomponents_v12 259.1.0 → 259.1.2
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 +137 -247
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12-259.1.0.tgz +0 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.component.js +2 -2
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +242 -193
- package/esm2015/lib/core/utils/file-utils.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +254 -333
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/simple-grid/simple-grid.component.d.ts +5 -2
- package/lib/components/simple-grid/style/_layout.scss +1 -0
- package/lib/core/utils/file-utils.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/core/enum/co-document-image-display-kind.enum.js +0 -7
- package/esm2015/lib/core/enum/object-right-type.enum.js +0 -7
- package/esm2015/lib/core/enum/table-name.enum.js +0 -81
- package/esm2015/lib/core/model/co-document-right.bo.js +0 -3
- package/esm2015/lib/core/model/co-document.bo.js +0 -121
- package/lib/core/enum/co-document-image-display-kind.enum.d.ts +0 -5
- package/lib/core/enum/object-right-type.enum.d.ts +0 -5
- package/lib/core/enum/table-name.enum.d.ts +0 -79
- package/lib/core/model/co-document-right.bo.d.ts +0 -6
- package/lib/core/model/co-document.bo.d.ts +0 -61
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/cdk/drag-drop'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('xlsx'), require('@colijnit/ioneconnector/build/enum/user-right-type.enum'), require('@angular/cdk/scrolling'), require('@colijnit/ioneconnector/build/utils/array-utils'), require('@colijnit/ioneconnector/build/model/default-get-object-configurations-params'), require('@colijnit/ioneconnector/build/model/object-configuration')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/forms', 'rxjs', '@angular/platform-browser', '@angular/animations', '@angular/common', '@angular/common/http', 'rxjs/operators', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/cdk/drag-drop', '@angular/cdk/overlay', '@angular/cdk/portal', 'xlsx', '@colijnit/ioneconnector/build/enum/user-right-type.enum', '@angular/cdk/scrolling', '@colijnit/ioneconnector/build/utils/array-utils', '@colijnit/ioneconnector/build/model/default-get-object-configurations-params', '@colijnit/ioneconnector/build/model/object-configuration'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.forms, global.rxjs, global.ng.platformBrowser, global.ng.animations, global.ng.common, global.ng.common.http, global.rxjs.operators, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.cdk.dragDrop, global.ng.cdk.overlay, global.ng.cdk.portal, global.XLSX, global.userRightType_enum, global.ng.cdk.scrolling, global.arrayUtils, global.defaultGetObjectConfigurationsParams, global.objectConfiguration));
|
|
5
|
-
})(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, i1, portal, XLSX, userRightType_enum, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/cdk/drag-drop'), require('@colijnit/mainapi/build/model/co-document.bo'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('xlsx'), require('@colijnit/ioneconnector/build/enum/user-right-type.enum'), require('@angular/cdk/scrolling'), require('@colijnit/ioneconnector/build/utils/array-utils'), require('@colijnit/ioneconnector/build/model/default-get-object-configurations-params'), require('@colijnit/ioneconnector/build/model/object-configuration')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/forms', 'rxjs', '@angular/platform-browser', '@angular/animations', '@angular/common', '@angular/common/http', 'rxjs/operators', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/cdk/drag-drop', '@colijnit/mainapi/build/model/co-document.bo', '@angular/cdk/overlay', '@angular/cdk/portal', 'xlsx', '@colijnit/ioneconnector/build/enum/user-right-type.enum', '@angular/cdk/scrolling', '@colijnit/ioneconnector/build/utils/array-utils', '@colijnit/ioneconnector/build/model/default-get-object-configurations-params', '@colijnit/ioneconnector/build/model/object-configuration'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.forms, global.rxjs, global.ng.platformBrowser, global.ng.animations, global.ng.common, global.ng.common.http, global.rxjs.operators, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.cdk.dragDrop, global.coDocument_bo, global.ng.cdk.overlay, global.ng.cdk.portal, global.XLSX, global.userRightType_enum, global.ng.cdk.scrolling, global.arrayUtils, global.defaultGetObjectConfigurationsParams, global.objectConfiguration));
|
|
5
|
+
})(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, coDocument_bo, i1, portal, XLSX, userRightType_enum, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -5532,7 +5532,7 @@
|
|
|
5532
5532
|
GridToolbarComponent.decorators = [
|
|
5533
5533
|
{ type: i0.Component, args: [{
|
|
5534
5534
|
selector: "co-grid-toolbar",
|
|
5535
|
-
template: "\n <div class=\"grid-toolbar-wrapper\">\n <co-icon *ngIf=\"showEdit\" [iconData]=\"iconsService.getIcon(icons.PenToSquareSolid)\" [title]=\"'edit'\" (click)=\"editClick.emit($event)\"></co-icon>\n <co-icon *ngIf=\"showEdit\" [iconData]=\"iconsService.getIcon(icons.RotateLeftSolid)\" [title]=\"'cancel'\" (click)=\"cancelClick.emit()\"></co-icon>\n <co-icon *ngIf=\"showEdit\" [iconData]=\"iconsService.getIcon(icons.FloppyDiskSolid)\" [title]=\"'save'\" (click)=\"saveClick.emit()\"></co-icon>\n <co-icon *ngIf=\"showAdd || showEdit\" [iconData]=\"iconsService.getIcon(icons.PlusSolid)\" [title]=\"'add'\" (click)=\"addClick.emit()\"></co-icon>\n
|
|
5535
|
+
template: "\n <div class=\"grid-toolbar-wrapper\">\n <co-icon *ngIf=\"showEdit\" [iconData]=\"iconsService.getIcon(icons.PenToSquareSolid)\" [title]=\"'edit'\" (click)=\"editClick.emit($event)\"></co-icon>\n <co-icon *ngIf=\"showEdit\" [iconData]=\"iconsService.getIcon(icons.RotateLeftSolid)\" [title]=\"'cancel'\" (click)=\"cancelClick.emit()\"></co-icon>\n <co-icon *ngIf=\"showEdit\" [iconData]=\"iconsService.getIcon(icons.FloppyDiskSolid)\" [title]=\"'save'\" (click)=\"saveClick.emit()\"></co-icon>\n <co-icon *ngIf=\"showAdd || showEdit\" [iconData]=\"iconsService.getIcon(icons.PlusSolid)\" [title]=\"'add'\" (click)=\"addClick.emit()\"></co-icon>\n <co-icon *ngIf=\"showDelete\" [iconData]=\"iconsService.getIcon(icons.TrashCanSolid)\" [title]=\"'delete'\" [class.disabled]=\"!deleteEnabled\" (click)=\"handleDeleteClick()\"></co-icon>\n </div>\n ",
|
|
5536
5536
|
encapsulation: i0.ViewEncapsulation.None
|
|
5537
5537
|
},] }
|
|
5538
5538
|
];
|
|
@@ -8575,183 +8575,6 @@
|
|
|
8575
8575
|
FileTypeInternal[FileTypeInternal["Undefined"] = 8] = "Undefined";
|
|
8576
8576
|
})(FileTypeInternal || (FileTypeInternal = {}));
|
|
8577
8577
|
|
|
8578
|
-
// DOM_BESTANDSSOORT
|
|
8579
|
-
var FileType;
|
|
8580
|
-
(function (FileType) {
|
|
8581
|
-
// DOC: Document
|
|
8582
|
-
FileType["Document"] = "DOC";
|
|
8583
|
-
// IMG: Afbeelding
|
|
8584
|
-
FileType["Image"] = "IMG";
|
|
8585
|
-
// SDWEB: Digitale handtekening
|
|
8586
|
-
FileType["DigitalSignature"] = "SDWEB";
|
|
8587
|
-
})(FileType || (FileType = {}));
|
|
8588
|
-
|
|
8589
|
-
var CoDocumentImageDisplayKind;
|
|
8590
|
-
(function (CoDocumentImageDisplayKind) {
|
|
8591
|
-
CoDocumentImageDisplayKind["NormalImage"] = "N";
|
|
8592
|
-
CoDocumentImageDisplayKind["LayeredImage"] = "L";
|
|
8593
|
-
CoDocumentImageDisplayKind["Avatar"] = "A";
|
|
8594
|
-
})(CoDocumentImageDisplayKind || (CoDocumentImageDisplayKind = {}));
|
|
8595
|
-
|
|
8596
|
-
var ObjectRightType;
|
|
8597
|
-
(function (ObjectRightType) {
|
|
8598
|
-
ObjectRightType[ObjectRightType["NoAccess"] = 0] = "NoAccess";
|
|
8599
|
-
ObjectRightType[ObjectRightType["ReadOnly"] = 1] = "ReadOnly";
|
|
8600
|
-
ObjectRightType[ObjectRightType["ReadWrite"] = 2] = "ReadWrite";
|
|
8601
|
-
})(ObjectRightType || (ObjectRightType = {}));
|
|
8602
|
-
|
|
8603
|
-
// See DocumentDTO.
|
|
8604
|
-
var CoDocument = /** @class */ (function () {
|
|
8605
|
-
function CoDocument() {
|
|
8606
|
-
// @ComplexArray(CoDocumentRight)
|
|
8607
|
-
this.rights = [];
|
|
8608
|
-
this.retailFormulas = [];
|
|
8609
|
-
//
|
|
8610
|
-
// @NoDbField()
|
|
8611
|
-
// @ComplexField(Subject)
|
|
8612
|
-
this.documentBodyChange = new rxjs.Subject();
|
|
8613
|
-
}
|
|
8614
|
-
Object.defineProperty(CoDocument.prototype, "documentId", {
|
|
8615
|
-
get: function () {
|
|
8616
|
-
return this._documentId;
|
|
8617
|
-
},
|
|
8618
|
-
set: function (value) {
|
|
8619
|
-
this._documentId = value;
|
|
8620
|
-
// this._idObject.docId = value;
|
|
8621
|
-
},
|
|
8622
|
-
enumerable: false,
|
|
8623
|
-
configurable: true
|
|
8624
|
-
});
|
|
8625
|
-
Object.defineProperty(CoDocument.prototype, "documentBody", {
|
|
8626
|
-
get: function () {
|
|
8627
|
-
return this._documentBody;
|
|
8628
|
-
},
|
|
8629
|
-
set: function (documentBody) {
|
|
8630
|
-
var prev = this._documentBody;
|
|
8631
|
-
this._documentBody = documentBody;
|
|
8632
|
-
if (prev !== this._documentBody) {
|
|
8633
|
-
this.documentBodyChange.next(this._documentBody);
|
|
8634
|
-
}
|
|
8635
|
-
},
|
|
8636
|
-
enumerable: false,
|
|
8637
|
-
configurable: true
|
|
8638
|
-
});
|
|
8639
|
-
Object.defineProperty(CoDocument.prototype, "fileTypeInternal", {
|
|
8640
|
-
// @NoDbField()
|
|
8641
|
-
// public idForLink: number;
|
|
8642
|
-
// The internal file type of this document (the MimeType iOneJS uses internally)
|
|
8643
|
-
get: function () {
|
|
8644
|
-
if (!this._fileTypeInternal) {
|
|
8645
|
-
var fileType = FileUtils.FileNameToFileTypeInternal(this.fileName);
|
|
8646
|
-
if (fileType) {
|
|
8647
|
-
this._fileTypeInternal = fileType;
|
|
8648
|
-
}
|
|
8649
|
-
}
|
|
8650
|
-
return this._fileTypeInternal;
|
|
8651
|
-
},
|
|
8652
|
-
enumerable: false,
|
|
8653
|
-
configurable: true
|
|
8654
|
-
});
|
|
8655
|
-
Object.defineProperty(CoDocument.prototype, "mimeTypeInternal", {
|
|
8656
|
-
/**
|
|
8657
|
-
* The mimetype of this document: uses database-fetched this.mimeType, or calculates / guesses the mime type of the document
|
|
8658
|
-
* if that was not set.
|
|
8659
|
-
*/
|
|
8660
|
-
get: function () {
|
|
8661
|
-
if (this._mimeTypeInternal) {
|
|
8662
|
-
return this._mimeTypeInternal;
|
|
8663
|
-
}
|
|
8664
|
-
else {
|
|
8665
|
-
this._initMimetypeInternal();
|
|
8666
|
-
return this._mimeTypeInternal;
|
|
8667
|
-
}
|
|
8668
|
-
},
|
|
8669
|
-
set: function (value) {
|
|
8670
|
-
this._mimeTypeInternal = value;
|
|
8671
|
-
},
|
|
8672
|
-
enumerable: false,
|
|
8673
|
-
configurable: true
|
|
8674
|
-
});
|
|
8675
|
-
Object.defineProperty(CoDocument.prototype, "bodyAsDataUri", {
|
|
8676
|
-
// Gives either the document-(prio) or the thumbnail body. Or undefined if not exist.
|
|
8677
|
-
get: function () {
|
|
8678
|
-
if (this._documentBody) {
|
|
8679
|
-
return this.documentBodyAsDataUri;
|
|
8680
|
-
}
|
|
8681
|
-
else if (this.thumbnailBody) {
|
|
8682
|
-
return this.thumbnailBodyAsDataUri;
|
|
8683
|
-
}
|
|
8684
|
-
},
|
|
8685
|
-
enumerable: false,
|
|
8686
|
-
configurable: true
|
|
8687
|
-
});
|
|
8688
|
-
Object.defineProperty(CoDocument.prototype, "documentBodyAsDataUri", {
|
|
8689
|
-
// The body of this document as a data uri. The data uri also contains the mimetype in its string, and the fact that it's base64.
|
|
8690
|
-
get: function () {
|
|
8691
|
-
try {
|
|
8692
|
-
return FileUtils.DocumentBodyToDataUri(this.documentBody, this.mimeTypeInternal);
|
|
8693
|
-
}
|
|
8694
|
-
catch (error) {
|
|
8695
|
-
return "";
|
|
8696
|
-
}
|
|
8697
|
-
},
|
|
8698
|
-
enumerable: false,
|
|
8699
|
-
configurable: true
|
|
8700
|
-
});
|
|
8701
|
-
Object.defineProperty(CoDocument.prototype, "thumbnailBodyAsDataUri", {
|
|
8702
|
-
// The Thumbnailbody of this document as a data uri. The data uri also contains the mimetype in its string, and the fact that it's base64.
|
|
8703
|
-
get: function () {
|
|
8704
|
-
try {
|
|
8705
|
-
return FileUtils.DocumentBodyToDataUri(this.thumbnailBody, this.mimeTypeInternal);
|
|
8706
|
-
}
|
|
8707
|
-
catch (error) {
|
|
8708
|
-
return "";
|
|
8709
|
-
}
|
|
8710
|
-
},
|
|
8711
|
-
enumerable: false,
|
|
8712
|
-
configurable: true
|
|
8713
|
-
});
|
|
8714
|
-
Object.defineProperty(CoDocument.prototype, "isAvatar", {
|
|
8715
|
-
get: function () {
|
|
8716
|
-
return this.imageDisplayKind === CoDocumentImageDisplayKind.Avatar;
|
|
8717
|
-
},
|
|
8718
|
-
enumerable: false,
|
|
8719
|
-
configurable: true
|
|
8720
|
-
});
|
|
8721
|
-
Object.defineProperty(CoDocument.prototype, "readonly", {
|
|
8722
|
-
//
|
|
8723
|
-
// @NoDbField()
|
|
8724
|
-
// private _idObject: any = {};
|
|
8725
|
-
get: function () {
|
|
8726
|
-
return this.rightLevel === ObjectRightType.ReadOnly;
|
|
8727
|
-
},
|
|
8728
|
-
enumerable: false,
|
|
8729
|
-
configurable: true
|
|
8730
|
-
});
|
|
8731
|
-
CoDocument.prototype.getId = function () {
|
|
8732
|
-
return this.documentId;
|
|
8733
|
-
};
|
|
8734
|
-
// Returns whether this is an image document or not.
|
|
8735
|
-
CoDocument.prototype.isImageDocument = function () {
|
|
8736
|
-
return (this.fileTypeInternal === FileTypeInternal.Image);
|
|
8737
|
-
};
|
|
8738
|
-
// @BoSerializerStep()
|
|
8739
|
-
CoDocument.prototype.preventOverridingThumbnailToEmpty = function () {
|
|
8740
|
-
if (!this.thumbnailBody) {
|
|
8741
|
-
this.thumbnailBody = this._documentBody;
|
|
8742
|
-
}
|
|
8743
|
-
};
|
|
8744
|
-
// POSTCONDITION: this._mimeTypeInternal contains, to our best abilities, the true mimeType of this document, a-la "image/jpg"
|
|
8745
|
-
CoDocument.prototype._initMimetypeInternal = function () {
|
|
8746
|
-
// if no fileType, default to FileType.Image for internal mimetype initialization
|
|
8747
|
-
if ((this.fileType === FileType.Image || !this.fileType) && this.fileName) {
|
|
8748
|
-
var fileExtension = this.fileName.substr(this.fileName.lastIndexOf(".") + 1);
|
|
8749
|
-
this._mimeTypeInternal = "image/" + fileExtension;
|
|
8750
|
-
}
|
|
8751
|
-
};
|
|
8752
|
-
return CoDocument;
|
|
8753
|
-
}());
|
|
8754
|
-
|
|
8755
8578
|
// for refcode CV_DOCUMENTATIE.DOC_TYPE
|
|
8756
8579
|
var CoDocumentType;
|
|
8757
8580
|
(function (CoDocumentType) {
|
|
@@ -8763,6 +8586,17 @@
|
|
|
8763
8586
|
CoDocumentType["SaveAsLinkOnDefaultLocation"] = "LW";
|
|
8764
8587
|
})(CoDocumentType || (CoDocumentType = {}));
|
|
8765
8588
|
|
|
8589
|
+
// DOM_BESTANDSSOORT
|
|
8590
|
+
var FileType;
|
|
8591
|
+
(function (FileType) {
|
|
8592
|
+
// DOC: Document
|
|
8593
|
+
FileType["Document"] = "DOC";
|
|
8594
|
+
// IMG: Afbeelding
|
|
8595
|
+
FileType["Image"] = "IMG";
|
|
8596
|
+
// SDWEB: Digitale handtekening
|
|
8597
|
+
FileType["DigitalSignature"] = "SDWEB";
|
|
8598
|
+
})(FileType || (FileType = {}));
|
|
8599
|
+
|
|
8766
8600
|
var MaxUploadSize = 3145728; // 3Mb
|
|
8767
8601
|
// @dynamic
|
|
8768
8602
|
var FileUtils = /** @class */ (function () {
|
|
@@ -8825,7 +8659,7 @@
|
|
|
8825
8659
|
}
|
|
8826
8660
|
var fileName;
|
|
8827
8661
|
var mimeType;
|
|
8828
|
-
if (file instanceof CoDocument) {
|
|
8662
|
+
if (file instanceof coDocument_bo.CoDocument) {
|
|
8829
8663
|
fileName = file.fileName;
|
|
8830
8664
|
mimeType = file.mimeTypeInternal;
|
|
8831
8665
|
}
|
|
@@ -8870,7 +8704,7 @@
|
|
|
8870
8704
|
// Checks filesize of given file and returns false if size exceeds maximum upload size.
|
|
8871
8705
|
FileUtils.CheckMaxUploadSize = function (file) {
|
|
8872
8706
|
var fileSize = 0;
|
|
8873
|
-
if (file instanceof CoDocument) {
|
|
8707
|
+
if (file instanceof coDocument_bo.CoDocument) {
|
|
8874
8708
|
fileSize = NumberUtils.ParseInt(file.fileSize);
|
|
8875
8709
|
}
|
|
8876
8710
|
else {
|
|
@@ -9001,7 +8835,7 @@
|
|
|
9001
8835
|
reader.readAsDataURL(file);
|
|
9002
8836
|
reader.onloadend = function (event) {
|
|
9003
8837
|
if (event.target.readyState === 2) {
|
|
9004
|
-
var coDocument = new CoDocument();
|
|
8838
|
+
var coDocument = new coDocument_bo.CoDocument();
|
|
9005
8839
|
coDocument.fileSize = file.size.toString();
|
|
9006
8840
|
coDocument.mimeTypeInternal = file.type;
|
|
9007
8841
|
coDocument.mimeType = file.type;
|
|
@@ -10244,6 +10078,7 @@
|
|
|
10244
10078
|
_this.showGridSettings = false;
|
|
10245
10079
|
_this.rowsPerPage = 50;
|
|
10246
10080
|
_this.showColumnSort = false;
|
|
10081
|
+
_this.showRowButtons = false;
|
|
10247
10082
|
_this.editing = false;
|
|
10248
10083
|
_this.isSettingsMenuOpen = false;
|
|
10249
10084
|
_this.editRowIndex = -1;
|
|
@@ -10305,13 +10140,13 @@
|
|
|
10305
10140
|
SimpleGridComponent.prototype.isRowDisabled = function (row, index) {
|
|
10306
10141
|
return __awaiter(this, void 0, void 0, function () {
|
|
10307
10142
|
var disabled, idxRow;
|
|
10308
|
-
return __generator(this, function (
|
|
10309
|
-
switch (
|
|
10143
|
+
return __generator(this, function (_c) {
|
|
10144
|
+
switch (_c.label) {
|
|
10310
10145
|
case 0:
|
|
10311
10146
|
if (!(this.rowDisabledFn && (typeof this.rowDisabledFn === 'function'))) return [3 /*break*/, 2];
|
|
10312
10147
|
return [4 /*yield*/, this.rowDisabledFn.call(this, row)];
|
|
10313
10148
|
case 1:
|
|
10314
|
-
disabled =
|
|
10149
|
+
disabled = _c.sent();
|
|
10315
10150
|
idxRow = this.disabledRows.indexOf(index);
|
|
10316
10151
|
if (disabled) {
|
|
10317
10152
|
if (idxRow < 0) {
|
|
@@ -10331,38 +10166,57 @@
|
|
|
10331
10166
|
};
|
|
10332
10167
|
SimpleGridComponent.prototype.addNewRow = function () {
|
|
10333
10168
|
return __awaiter(this, void 0, void 0, function () {
|
|
10334
|
-
var valid,
|
|
10335
|
-
|
|
10336
|
-
|
|
10169
|
+
var valid, relativeIndex, _c, _d;
|
|
10170
|
+
var _this = this;
|
|
10171
|
+
return __generator(this, function (_e) {
|
|
10172
|
+
switch (_e.label) {
|
|
10337
10173
|
case 0:
|
|
10338
|
-
if (!this.inlineEdit) return [3 /*break*/,
|
|
10174
|
+
if (!this.inlineEdit) return [3 /*break*/, 6];
|
|
10339
10175
|
valid = this.validateAndSave();
|
|
10340
|
-
if (!valid) return [3 /*break*/,
|
|
10341
|
-
this.
|
|
10176
|
+
if (!valid) return [3 /*break*/, 5];
|
|
10177
|
+
this._newRowReference = {};
|
|
10178
|
+
this.data.push(this._newRowReference);
|
|
10342
10179
|
this._detectChanges();
|
|
10343
10180
|
this._newRow = true;
|
|
10344
10181
|
this.editing = true;
|
|
10345
|
-
if (!(this.rowsPerPage && this.data.length > this.rowsPerPage)) return [3 /*break*/,
|
|
10346
|
-
// navigate to
|
|
10182
|
+
if (!(this.rowsPerPage && this.data.length > this.rowsPerPage)) return [3 /*break*/, 2];
|
|
10183
|
+
// navigate to last page
|
|
10347
10184
|
this.currentPage = Math.ceil(this.data.length / this.rowsPerPage);
|
|
10348
|
-
|
|
10349
|
-
this.selectedRowIndex =
|
|
10350
|
-
this.
|
|
10351
|
-
|
|
10185
|
+
relativeIndex = (this.data.length - 1) % this.rowsPerPage;
|
|
10186
|
+
this.selectedRowIndex = relativeIndex;
|
|
10187
|
+
this.editRowIndex = relativeIndex;
|
|
10188
|
+
// store reference
|
|
10189
|
+
this.rowToEdit = this._newRowReference;
|
|
10190
|
+
_c = this;
|
|
10191
|
+
return [4 /*yield*/, this._nextAvailableCellToEdit(true)];
|
|
10352
10192
|
case 1:
|
|
10193
|
+
_c.editCellIndex = _e.sent();
|
|
10194
|
+
setTimeout(function () {
|
|
10195
|
+
var _a, _b;
|
|
10196
|
+
var el = (_b = (_a = _this.rowElements) === null || _a === void 0 ? void 0 : _a.last) === null || _b === void 0 ? void 0 : _b.nativeElement;
|
|
10197
|
+
if (el) {
|
|
10198
|
+
el.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
10199
|
+
}
|
|
10200
|
+
}, 200);
|
|
10201
|
+
// reset reference to the new row after editCellIndex
|
|
10202
|
+
this.rowToEdit = this._newRowReference;
|
|
10203
|
+
return [3 /*break*/, 4];
|
|
10204
|
+
case 2:
|
|
10353
10205
|
this.editRowIndex = this.data.length - 1;
|
|
10354
|
-
this.rowToEdit = this.
|
|
10355
|
-
|
|
10206
|
+
this.rowToEdit = this._newRowReference;
|
|
10207
|
+
_d = this;
|
|
10356
10208
|
return [4 /*yield*/, this._nextAvailableCellToEdit(true)];
|
|
10357
|
-
case
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
_b.label = 3;
|
|
10361
|
-
case 3: return [3 /*break*/, 5];
|
|
10209
|
+
case 3:
|
|
10210
|
+
_d.editCellIndex = _e.sent();
|
|
10211
|
+
_e.label = 4;
|
|
10362
10212
|
case 4:
|
|
10213
|
+
this._detectChanges();
|
|
10214
|
+
_e.label = 5;
|
|
10215
|
+
case 5: return [3 /*break*/, 7];
|
|
10216
|
+
case 6:
|
|
10363
10217
|
this.addRow.next();
|
|
10364
|
-
|
|
10365
|
-
case
|
|
10218
|
+
_e.label = 7;
|
|
10219
|
+
case 7: return [2 /*return*/];
|
|
10366
10220
|
}
|
|
10367
10221
|
});
|
|
10368
10222
|
});
|
|
@@ -10394,35 +10248,54 @@
|
|
|
10394
10248
|
this._detectChanges();
|
|
10395
10249
|
};
|
|
10396
10250
|
SimpleGridComponent.prototype.removeRow = function () {
|
|
10397
|
-
this.
|
|
10251
|
+
var absoluteIndex = this.selectedRowIndex;
|
|
10252
|
+
if (this.rowsPerPage) {
|
|
10253
|
+
absoluteIndex = (this.currentPage - 1) * this.rowsPerPage + this.selectedRowIndex;
|
|
10254
|
+
}
|
|
10255
|
+
this.deleteRow.next(this.data[absoluteIndex]);
|
|
10256
|
+
if (this.currentPage !== 1) {
|
|
10257
|
+
this.currentPage = 1;
|
|
10258
|
+
this.selectedRowIndex = -1;
|
|
10259
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
10260
|
+
}
|
|
10261
|
+
this._detectChanges();
|
|
10398
10262
|
};
|
|
10399
|
-
SimpleGridComponent.prototype.handleClickRow = function (event, index
|
|
10263
|
+
SimpleGridComponent.prototype.handleClickRow = function (event, index) {
|
|
10400
10264
|
var _this = this;
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10265
|
+
if (this.inlineEdit && this.showRowButtons && !this.editing) {
|
|
10266
|
+
this.editing = false;
|
|
10267
|
+
}
|
|
10268
|
+
else {
|
|
10269
|
+
setTimeout(function () {
|
|
10270
|
+
if (_this._doubleClicked) {
|
|
10271
|
+
return;
|
|
10272
|
+
}
|
|
10273
|
+
_this.selectTheRow(index);
|
|
10274
|
+
if (_this.inlineEdit && !_this.showRowButtons) {
|
|
10275
|
+
_this.editRow(event, true, index);
|
|
10276
|
+
}
|
|
10277
|
+
}, 200);
|
|
10278
|
+
}
|
|
10407
10279
|
};
|
|
10408
10280
|
SimpleGridComponent.prototype.selectTheRow = function (index, emit) {
|
|
10409
10281
|
if (emit === void 0) { emit = true; }
|
|
10410
10282
|
if (this.selectedRowIndex === -1 || (this.selectedRowIndex !== index && ((this.editing && this.validateAndSave()) || !this.editing))) {
|
|
10411
10283
|
this.selectedRowIndex = index;
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10284
|
+
var absoluteIndex = this.rowsPerPage ? (this.currentPage - 1) * this.rowsPerPage + index : index;
|
|
10285
|
+
if (emit) {
|
|
10286
|
+
this.selectRow.next(this.data[absoluteIndex]);
|
|
10287
|
+
}
|
|
10415
10288
|
}
|
|
10416
10289
|
this._detectChanges();
|
|
10417
10290
|
};
|
|
10418
10291
|
SimpleGridComponent.prototype.handleDblClickRow = function (event, index, row) {
|
|
10419
10292
|
return __awaiter(this, void 0, void 0, function () {
|
|
10420
10293
|
var canEdit;
|
|
10421
|
-
return __generator(this, function (
|
|
10422
|
-
switch (
|
|
10294
|
+
return __generator(this, function (_c) {
|
|
10295
|
+
switch (_c.label) {
|
|
10423
10296
|
case 0: return [4 /*yield*/, this.isRowDisabled(row, index)];
|
|
10424
10297
|
case 1:
|
|
10425
|
-
if (
|
|
10298
|
+
if (_c.sent()) {
|
|
10426
10299
|
this.selectedRowIndex = -1;
|
|
10427
10300
|
return [2 /*return*/];
|
|
10428
10301
|
}
|
|
@@ -10430,14 +10303,14 @@
|
|
|
10430
10303
|
if (!(this.canRowBeEdittedFn && typeof this.canRowBeEdittedFn === 'function')) return [3 /*break*/, 3];
|
|
10431
10304
|
return [4 /*yield*/, this.canRowBeEdittedFn.call(this, row)];
|
|
10432
10305
|
case 2:
|
|
10433
|
-
canEdit =
|
|
10434
|
-
|
|
10306
|
+
canEdit = _c.sent();
|
|
10307
|
+
_c.label = 3;
|
|
10435
10308
|
case 3:
|
|
10436
10309
|
if (canEdit) {
|
|
10437
10310
|
this._doubleClicked = true;
|
|
10438
10311
|
this.dblClickRow.next(this.data[index]);
|
|
10439
10312
|
this.selectTheRow(index, false);
|
|
10440
|
-
if (this.inlineEdit) {
|
|
10313
|
+
if (this.inlineEdit && !this.showRowButtons) {
|
|
10441
10314
|
this.editRow(event);
|
|
10442
10315
|
}
|
|
10443
10316
|
}
|
|
@@ -10450,22 +10323,22 @@
|
|
|
10450
10323
|
SimpleGridComponent.prototype.editRow = function (event, selectCell, rowIndex) {
|
|
10451
10324
|
if (selectCell === void 0) { selectCell = true; }
|
|
10452
10325
|
return __awaiter(this, void 0, void 0, function () {
|
|
10453
|
-
var
|
|
10454
|
-
return __generator(this, function (
|
|
10455
|
-
switch (
|
|
10326
|
+
var _c;
|
|
10327
|
+
return __generator(this, function (_d) {
|
|
10328
|
+
switch (_d.label) {
|
|
10456
10329
|
case 0:
|
|
10457
10330
|
if (rowIndex !== undefined) {
|
|
10458
|
-
this.selectTheRow(rowIndex
|
|
10331
|
+
this.selectTheRow(rowIndex);
|
|
10459
10332
|
}
|
|
10333
|
+
this.editing = true;
|
|
10460
10334
|
this.editRowIndex = this.selectedRowIndex;
|
|
10461
10335
|
this.rowToEdit = this.data[this.editRowIndex];
|
|
10462
|
-
this.
|
|
10463
|
-
|
|
10464
|
-
_a = this;
|
|
10336
|
+
if (!(this.showRowButtons && this.inlineEdit && selectCell)) return [3 /*break*/, 2];
|
|
10337
|
+
_c = this;
|
|
10465
10338
|
return [4 /*yield*/, this._nextAvailableCellToEdit(true)];
|
|
10466
10339
|
case 1:
|
|
10467
|
-
|
|
10468
|
-
|
|
10340
|
+
_c.editCellIndex = _d.sent();
|
|
10341
|
+
_d.label = 2;
|
|
10469
10342
|
case 2:
|
|
10470
10343
|
this._detectChanges();
|
|
10471
10344
|
return [2 /*return*/];
|
|
@@ -10475,27 +10348,25 @@
|
|
|
10475
10348
|
};
|
|
10476
10349
|
SimpleGridComponent.prototype.handleCellClick = function (event, row, rowIndex, cellIndex) {
|
|
10477
10350
|
return __awaiter(this, void 0, void 0, function () {
|
|
10478
|
-
return __generator(this, function (
|
|
10479
|
-
switch (
|
|
10351
|
+
return __generator(this, function (_c) {
|
|
10352
|
+
switch (_c.label) {
|
|
10480
10353
|
case 0:
|
|
10481
10354
|
if (!this.editOnCellClick) return [3 /*break*/, 2];
|
|
10482
10355
|
return [4 /*yield*/, this.isRowDisabled(row, rowIndex)];
|
|
10483
10356
|
case 1:
|
|
10484
|
-
if (
|
|
10357
|
+
if (_c.sent()) {
|
|
10485
10358
|
this.selectedRowIndex = -1;
|
|
10486
10359
|
return [2 /*return*/];
|
|
10487
10360
|
}
|
|
10488
|
-
this.selectTheRow(rowIndex, false);
|
|
10489
10361
|
if (this.inlineEdit) {
|
|
10490
10362
|
this.editRowIndex = rowIndex;
|
|
10491
10363
|
this.editCellIndex = cellIndex;
|
|
10492
10364
|
this.editing = true;
|
|
10493
|
-
this.editRow(event, false);
|
|
10494
10365
|
}
|
|
10495
10366
|
return [3 /*break*/, 3];
|
|
10496
10367
|
case 2:
|
|
10497
10368
|
this.editCellIndex = cellIndex;
|
|
10498
|
-
|
|
10369
|
+
_c.label = 3;
|
|
10499
10370
|
case 3:
|
|
10500
10371
|
this._detectChanges();
|
|
10501
10372
|
return [2 /*return*/];
|
|
@@ -10583,7 +10454,7 @@
|
|
|
10583
10454
|
var value = row[col.key];
|
|
10584
10455
|
if (value instanceof Date) {
|
|
10585
10456
|
var formattedDate = value.toISOString().split('T')[0];
|
|
10586
|
-
var
|
|
10457
|
+
var _c = __read(formattedDate.split('-'), 3), year = _c[0], month = _c[1], day = _c[2];
|
|
10587
10458
|
return day + "-" + month + "-" + year;
|
|
10588
10459
|
}
|
|
10589
10460
|
else if (typeof value === 'number') {
|
|
@@ -10603,7 +10474,7 @@
|
|
|
10603
10474
|
if (!value)
|
|
10604
10475
|
return '';
|
|
10605
10476
|
if (typeof value === 'string' && value.includes('T00:00:00')) {
|
|
10606
|
-
var
|
|
10477
|
+
var _d = __read(value.replace('T00:00:00', '').split('-'), 3), year = _d[0], month = _d[1], day = _d[2];
|
|
10607
10478
|
return day + "-" + month + "-" + year;
|
|
10608
10479
|
}
|
|
10609
10480
|
return String(value);
|
|
@@ -10748,9 +10619,26 @@
|
|
|
10748
10619
|
};
|
|
10749
10620
|
SimpleGridComponent.prototype._saveRow = function (stopediting) {
|
|
10750
10621
|
if (stopediting === void 0) { stopediting = true; }
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
this.
|
|
10622
|
+
if (this._newRow) {
|
|
10623
|
+
this.saveRow.next(this._newRowReference);
|
|
10624
|
+
this._newRowReference = null; // clear
|
|
10625
|
+
}
|
|
10626
|
+
else {
|
|
10627
|
+
var index = -1; // existing row
|
|
10628
|
+
if (this.rowsPerPage) {
|
|
10629
|
+
index = (this.currentPage - 1) * this.rowsPerPage + this.editRowIndex;
|
|
10630
|
+
}
|
|
10631
|
+
else {
|
|
10632
|
+
index = this.editRowIndex;
|
|
10633
|
+
}
|
|
10634
|
+
if (index >= 0 && index < this.data.length) {
|
|
10635
|
+
this.saveRow.next(this.data[index]);
|
|
10636
|
+
}
|
|
10637
|
+
}
|
|
10638
|
+
if (this.currentPage !== 1) {
|
|
10639
|
+
this.currentPage = 1;
|
|
10640
|
+
this.selectedRowIndex = -1;
|
|
10641
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
10754
10642
|
}
|
|
10755
10643
|
this._newRow = false;
|
|
10756
10644
|
if (stopediting) {
|
|
@@ -10790,7 +10678,7 @@
|
|
|
10790
10678
|
SimpleGridComponent.decorators = [
|
|
10791
10679
|
{ type: i0.Component, args: [{
|
|
10792
10680
|
selector: 'co-simple-grid',
|
|
10793
|
-
template: "\n
|
|
10681
|
+
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 || ' '\"\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>\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 ",
|
|
10794
10682
|
providers: [FormMasterService],
|
|
10795
10683
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
10796
10684
|
encapsulation: i0.ViewEncapsulation.None
|
|
@@ -10804,6 +10692,7 @@
|
|
|
10804
10692
|
]; };
|
|
10805
10693
|
SimpleGridComponent.propDecorators = {
|
|
10806
10694
|
headerCells: [{ type: i0.ViewChildren, args: ['headerCell',] }],
|
|
10695
|
+
rowElements: [{ type: i0.ViewChildren, args: ['rowElement',] }],
|
|
10807
10696
|
showAdd: [{ type: i0.Input }],
|
|
10808
10697
|
showDelete: [{ type: i0.Input }],
|
|
10809
10698
|
editOnCellClick: [{ type: i0.Input }],
|
|
@@ -10812,6 +10701,7 @@
|
|
|
10812
10701
|
rowsPerPage: [{ type: i0.Input }],
|
|
10813
10702
|
rowDisabledFn: [{ type: i0.Input }],
|
|
10814
10703
|
showColumnSort: [{ type: i0.Input }],
|
|
10704
|
+
showRowButtons: [{ type: i0.Input }],
|
|
10815
10705
|
canRowBeEdittedFn: [{ type: i0.Input }],
|
|
10816
10706
|
showClass: [{ type: i0.HostBinding, args: ['class.co-simple-grid',] }],
|
|
10817
10707
|
handleKeyDown: [{ type: i0.HostListener, args: ['keydown', ['$event'],] }]
|