@colijnit/corecomponents_v12 259.1.4 → 259.1.5
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 +38 -178
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +16 -17
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +17 -18
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +15 -18
- package/fesm2015/colijnit-corecomponents_v12.js +15 -143
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/simple-grid/simple-grid.component.d.ts +7 -9
- package/package.json +1 -1
|
@@ -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('@colijnit/mainapi/build/model/co-document.bo'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('
|
|
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', '
|
|
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.
|
|
5
|
-
})(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, coDocument_bo, i1, portal,
|
|
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('@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', '@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.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, userRightType_enum, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
26
|
var TWEEN__namespace = /*#__PURE__*/_interopNamespace(TWEEN);
|
|
27
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
-
var XLSX__namespace = /*#__PURE__*/_interopNamespace(XLSX);
|
|
29
28
|
|
|
30
29
|
/******************************************************************************
|
|
31
30
|
Copyright (c) Microsoft Corporation.
|
|
@@ -9957,150 +9956,13 @@
|
|
|
9957
9956
|
handleMouseUp: [{ type: i0.HostListener, args: ['document:mouseup', ['$event'],] }]
|
|
9958
9957
|
};
|
|
9959
9958
|
|
|
9960
|
-
var ExcelExportService = /** @class */ (function () {
|
|
9961
|
-
function ExcelExportService() {
|
|
9962
|
-
}
|
|
9963
|
-
/**
|
|
9964
|
-
* Export data to Excel file
|
|
9965
|
-
* @param data - Array of objects to export
|
|
9966
|
-
* @param columns - Column configuration (optional)
|
|
9967
|
-
* @param fileName - Name of the exported file
|
|
9968
|
-
* @param sheetName - Name of the Excel sheet
|
|
9969
|
-
*/
|
|
9970
|
-
ExcelExportService.prototype.exportToExcel = function (data, columns, fileName, sheetName) {
|
|
9971
|
-
var _this = this;
|
|
9972
|
-
if (fileName === void 0) { fileName = 'export'; }
|
|
9973
|
-
if (sheetName === void 0) { sheetName = 'Sheet1'; }
|
|
9974
|
-
// If columns are specified, transform data to match column structure
|
|
9975
|
-
var exportData = data;
|
|
9976
|
-
if (columns && columns.length > 0) {
|
|
9977
|
-
exportData = data.map(function (item) {
|
|
9978
|
-
var newItem = {};
|
|
9979
|
-
columns.forEach(function (col) {
|
|
9980
|
-
newItem[col.header] = _this.getFlatValue(item, col.key);
|
|
9981
|
-
});
|
|
9982
|
-
return newItem;
|
|
9983
|
-
});
|
|
9984
|
-
}
|
|
9985
|
-
// Create workbook and worksheet
|
|
9986
|
-
var wb = XLSX__namespace.utils.book_new();
|
|
9987
|
-
var ws = XLSX__namespace.utils.json_to_sheet(exportData);
|
|
9988
|
-
// Set column widths if specified
|
|
9989
|
-
if (columns && columns.some(function (col) { return col.width; })) {
|
|
9990
|
-
var colWidths = columns.map(function (col) { return ({ wch: col.width || 20 }); });
|
|
9991
|
-
ws['!cols'] = colWidths;
|
|
9992
|
-
}
|
|
9993
|
-
// Add worksheet to workbook
|
|
9994
|
-
XLSX__namespace.utils.book_append_sheet(wb, ws, sheetName);
|
|
9995
|
-
// Save file
|
|
9996
|
-
XLSX__namespace.writeFile(wb, fileName + ".xlsx");
|
|
9997
|
-
};
|
|
9998
|
-
/**
|
|
9999
|
-
* Export multiple sheets to one Excel file
|
|
10000
|
-
* @param sheets - Array of sheet data
|
|
10001
|
-
* @param fileName - Name of the exported file
|
|
10002
|
-
*/
|
|
10003
|
-
ExcelExportService.prototype.exportMultipleSheets = function (sheets, fileName) {
|
|
10004
|
-
var _this = this;
|
|
10005
|
-
if (fileName === void 0) { fileName = 'multi-sheet-export'; }
|
|
10006
|
-
var wb = XLSX__namespace.utils.book_new();
|
|
10007
|
-
sheets.forEach(function (sheet) {
|
|
10008
|
-
var exportData = sheet.data;
|
|
10009
|
-
if (sheet.columns && sheet.columns.length > 0) {
|
|
10010
|
-
exportData = sheet.data.map(function (item) {
|
|
10011
|
-
var newItem = {};
|
|
10012
|
-
sheet.columns.forEach(function (col) {
|
|
10013
|
-
newItem[col.header] = _this.getNestedValue(item, col.key);
|
|
10014
|
-
});
|
|
10015
|
-
return newItem;
|
|
10016
|
-
});
|
|
10017
|
-
}
|
|
10018
|
-
var ws = XLSX__namespace.utils.json_to_sheet(exportData);
|
|
10019
|
-
if (sheet.columns && sheet.columns.some(function (col) { return col.width; })) {
|
|
10020
|
-
var colWidths = sheet.columns.map(function (col) { return ({ wch: col.width || 20 }); });
|
|
10021
|
-
ws['!cols'] = colWidths;
|
|
10022
|
-
}
|
|
10023
|
-
XLSX__namespace.utils.book_append_sheet(wb, ws, sheet.sheetName);
|
|
10024
|
-
});
|
|
10025
|
-
XLSX__namespace.writeFile(wb, fileName + ".xlsx");
|
|
10026
|
-
};
|
|
10027
|
-
/**
|
|
10028
|
-
* Export HTML table to Excel
|
|
10029
|
-
* @param tableId - ID of the HTML table element
|
|
10030
|
-
* @param fileName - Name of the exported file
|
|
10031
|
-
* @param sheetName - Name of the Excel sheet
|
|
10032
|
-
*/
|
|
10033
|
-
ExcelExportService.prototype.exportTableToExcel = function (tableId, fileName, sheetName) {
|
|
10034
|
-
if (fileName === void 0) { fileName = 'table-export'; }
|
|
10035
|
-
if (sheetName === void 0) { sheetName = 'Sheet1'; }
|
|
10036
|
-
var table = document.getElementById(tableId);
|
|
10037
|
-
if (!table) {
|
|
10038
|
-
console.error("Table with ID '" + tableId + "' not found");
|
|
10039
|
-
return;
|
|
10040
|
-
}
|
|
10041
|
-
var wb = XLSX__namespace.utils.book_new();
|
|
10042
|
-
var ws = XLSX__namespace.utils.table_to_sheet(table);
|
|
10043
|
-
XLSX__namespace.utils.book_append_sheet(wb, ws, sheetName);
|
|
10044
|
-
XLSX__namespace.writeFile(wb, fileName + ".xlsx");
|
|
10045
|
-
};
|
|
10046
|
-
/**
|
|
10047
|
-
* Get nested object value using dot notation
|
|
10048
|
-
* @param obj - Object to search in
|
|
10049
|
-
* @param path - Dot notation path (e.g., 'user.address.city')
|
|
10050
|
-
*/
|
|
10051
|
-
ExcelExportService.prototype.getNestedValue = function (obj, path) {
|
|
10052
|
-
return path.split('.').reduce(function (current, key) {
|
|
10053
|
-
return current && current[key] !== undefined ? current[key] : '';
|
|
10054
|
-
}, obj);
|
|
10055
|
-
};
|
|
10056
|
-
ExcelExportService.prototype.getFlatValue = function (obj, key) {
|
|
10057
|
-
return obj && obj[key] !== undefined ? obj[key] : '';
|
|
10058
|
-
};
|
|
10059
|
-
/**
|
|
10060
|
-
* Format date for Excel export
|
|
10061
|
-
* @param date - Date to format
|
|
10062
|
-
* @param format - Format string (default: 'MM/DD/YYYY')
|
|
10063
|
-
*/
|
|
10064
|
-
ExcelExportService.prototype.formatDateForExport = function (date, format) {
|
|
10065
|
-
if (format === void 0) { format = 'MM/DD/YYYY'; }
|
|
10066
|
-
if (!date) {
|
|
10067
|
-
return '';
|
|
10068
|
-
}
|
|
10069
|
-
var d = new Date(date);
|
|
10070
|
-
if (isNaN(d.getTime())) {
|
|
10071
|
-
return '';
|
|
10072
|
-
}
|
|
10073
|
-
var month = (d.getMonth() + 1).toString().padStart(2, '0');
|
|
10074
|
-
var day = d.getDate().toString().padStart(2, '0');
|
|
10075
|
-
var year = d.getFullYear();
|
|
10076
|
-
switch (format) {
|
|
10077
|
-
case 'MM/DD/YYYY':
|
|
10078
|
-
return month + "/" + day + "/" + year;
|
|
10079
|
-
case 'DD/MM/YYYY':
|
|
10080
|
-
return day + "/" + month + "/" + year;
|
|
10081
|
-
case 'YYYY-MM-DD':
|
|
10082
|
-
return year + "-" + month + "-" + day;
|
|
10083
|
-
default:
|
|
10084
|
-
return d.toLocaleDateString();
|
|
10085
|
-
}
|
|
10086
|
-
};
|
|
10087
|
-
return ExcelExportService;
|
|
10088
|
-
}());
|
|
10089
|
-
ExcelExportService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ExcelExportService_Factory() { return new ExcelExportService(); }, token: ExcelExportService, providedIn: "root" });
|
|
10090
|
-
ExcelExportService.decorators = [
|
|
10091
|
-
{ type: i0.Injectable, args: [{
|
|
10092
|
-
providedIn: 'root'
|
|
10093
|
-
},] }
|
|
10094
|
-
];
|
|
10095
|
-
|
|
10096
9959
|
var SimpleGridComponent = /** @class */ (function (_super) {
|
|
10097
9960
|
__extends(SimpleGridComponent, _super);
|
|
10098
|
-
function SimpleGridComponent(icons, _changeDetection, _formMaster
|
|
9961
|
+
function SimpleGridComponent(icons, _changeDetection, _formMaster) {
|
|
10099
9962
|
var _this = _super.call(this) || this;
|
|
10100
9963
|
_this.icons = icons;
|
|
10101
9964
|
_this._changeDetection = _changeDetection;
|
|
10102
9965
|
_this._formMaster = _formMaster;
|
|
10103
|
-
_this.excelExportService = excelExportService;
|
|
10104
9966
|
_this.defaultTextAlign = exports.ColumnAlign.Left;
|
|
10105
9967
|
_this.showAdd = false;
|
|
10106
9968
|
_this.showDelete = false;
|
|
@@ -10530,6 +10392,22 @@
|
|
|
10530
10392
|
// 'Sheet1'
|
|
10531
10393
|
// );
|
|
10532
10394
|
};
|
|
10395
|
+
SimpleGridComponent.prototype.goToPreviousPage = function () {
|
|
10396
|
+
this.currentPage -= 1;
|
|
10397
|
+
};
|
|
10398
|
+
SimpleGridComponent.prototype.goToNextPage = function () {
|
|
10399
|
+
this.currentPage += 1;
|
|
10400
|
+
};
|
|
10401
|
+
SimpleGridComponent.prototype.setCurrentPage = function (page) {
|
|
10402
|
+
this.currentPage = page;
|
|
10403
|
+
};
|
|
10404
|
+
Object.defineProperty(SimpleGridComponent.prototype, "isNewRow", {
|
|
10405
|
+
get: function () {
|
|
10406
|
+
return this._newRow;
|
|
10407
|
+
},
|
|
10408
|
+
enumerable: false,
|
|
10409
|
+
configurable: true
|
|
10410
|
+
});
|
|
10533
10411
|
SimpleGridComponent.prototype._filterSelectedOrReturnAll = function (items) {
|
|
10534
10412
|
var hasSelectedTrue = items.some(function (item) { return item.selected === true; });
|
|
10535
10413
|
return hasSelectedTrue ? items.filter(function (item) { return item.selected === true; }) : items;
|
|
@@ -10677,15 +10555,6 @@
|
|
|
10677
10555
|
}
|
|
10678
10556
|
this._detectChanges();
|
|
10679
10557
|
};
|
|
10680
|
-
SimpleGridComponent.prototype.goToPreviousPage = function () {
|
|
10681
|
-
this.currentPage -= 1;
|
|
10682
|
-
};
|
|
10683
|
-
SimpleGridComponent.prototype.goToNextPage = function () {
|
|
10684
|
-
this.currentPage += 1;
|
|
10685
|
-
};
|
|
10686
|
-
SimpleGridComponent.prototype.setCurrentPage = function (page) {
|
|
10687
|
-
this.currentPage = page;
|
|
10688
|
-
};
|
|
10689
10558
|
SimpleGridComponent.prototype._detectChanges = function () {
|
|
10690
10559
|
this._changeDetection.detectChanges();
|
|
10691
10560
|
};
|
|
@@ -10697,13 +10566,6 @@
|
|
|
10697
10566
|
this.editing = false;
|
|
10698
10567
|
this.rowToEdit = undefined;
|
|
10699
10568
|
};
|
|
10700
|
-
Object.defineProperty(SimpleGridComponent.prototype, "isNewRow", {
|
|
10701
|
-
get: function () {
|
|
10702
|
-
return this._newRow;
|
|
10703
|
-
},
|
|
10704
|
-
enumerable: false,
|
|
10705
|
-
configurable: true
|
|
10706
|
-
});
|
|
10707
10569
|
return SimpleGridComponent;
|
|
10708
10570
|
}(BaseSimpleGridComponent));
|
|
10709
10571
|
SimpleGridComponent.decorators = [
|
|
@@ -10718,8 +10580,7 @@
|
|
|
10718
10580
|
SimpleGridComponent.ctorParameters = function () { return [
|
|
10719
10581
|
{ type: IconCacheService },
|
|
10720
10582
|
{ type: i0.ChangeDetectorRef },
|
|
10721
|
-
{ type: FormMasterService }
|
|
10722
|
-
{ type: ExcelExportService }
|
|
10583
|
+
{ type: FormMasterService }
|
|
10723
10584
|
]; };
|
|
10724
10585
|
SimpleGridComponent.propDecorators = {
|
|
10725
10586
|
headerCells: [{ type: i0.ViewChildren, args: ['headerCell',] }],
|
|
@@ -15415,22 +15276,21 @@
|
|
|
15415
15276
|
exports.showHideDialog = showHideDialog;
|
|
15416
15277
|
exports["ɵa"] = InputBoolean;
|
|
15417
15278
|
exports["ɵb"] = RippleModule;
|
|
15418
|
-
exports["ɵba"] =
|
|
15419
|
-
exports["ɵbb"] =
|
|
15420
|
-
exports["ɵbc"] =
|
|
15421
|
-
exports["ɵbd"] =
|
|
15422
|
-
exports["ɵbe"] =
|
|
15423
|
-
exports["ɵbf"] =
|
|
15424
|
-
exports["ɵbg"] =
|
|
15425
|
-
exports["ɵbh"] =
|
|
15426
|
-
exports["ɵbi"] =
|
|
15427
|
-
exports["ɵbj"] =
|
|
15428
|
-
exports["ɵbk"] =
|
|
15429
|
-
exports["ɵbl"] =
|
|
15430
|
-
exports["ɵbm"] =
|
|
15431
|
-
exports["ɵbn"] =
|
|
15432
|
-
exports["ɵbo"] =
|
|
15433
|
-
exports["ɵbp"] = HourSchedulingTestObjectComponent;
|
|
15279
|
+
exports["ɵba"] = PaginationService;
|
|
15280
|
+
exports["ɵbb"] = PaginatePipe;
|
|
15281
|
+
exports["ɵbc"] = SimpleGridCellComponent;
|
|
15282
|
+
exports["ɵbd"] = ListOfValuesMultiselectPopupComponent;
|
|
15283
|
+
exports["ɵbe"] = ConfirmationDialogComponent;
|
|
15284
|
+
exports["ɵbf"] = DialogBaseComponent;
|
|
15285
|
+
exports["ɵbg"] = CoreDynamicComponentService;
|
|
15286
|
+
exports["ɵbh"] = PrependPipeModule;
|
|
15287
|
+
exports["ɵbi"] = PrependPipe;
|
|
15288
|
+
exports["ɵbj"] = CheckmarkOverlayComponent;
|
|
15289
|
+
exports["ɵbk"] = ScannerService;
|
|
15290
|
+
exports["ɵbl"] = TooltipModule;
|
|
15291
|
+
exports["ɵbm"] = TooltipComponent;
|
|
15292
|
+
exports["ɵbn"] = TooltipDirective;
|
|
15293
|
+
exports["ɵbo"] = HourSchedulingTestObjectComponent;
|
|
15434
15294
|
exports["ɵc"] = MD_RIPPLE_GLOBAL_OPTIONS;
|
|
15435
15295
|
exports["ɵd"] = CoRippleDirective;
|
|
15436
15296
|
exports["ɵe"] = CoViewportRulerService;
|
|
@@ -15454,7 +15314,7 @@
|
|
|
15454
15314
|
exports["ɵw"] = CalendarTemplateComponent;
|
|
15455
15315
|
exports["ɵx"] = PopupShowerService;
|
|
15456
15316
|
exports["ɵy"] = BaseSimpleGridComponent;
|
|
15457
|
-
exports["ɵz"] =
|
|
15317
|
+
exports["ɵz"] = ObserveVisibilityDirective;
|
|
15458
15318
|
|
|
15459
15319
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
15460
15320
|
|