@coolon/angular-ui-powerups 12.4.0-alpha.59 → 12.4.0-alpha.60
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/coolon-angular-ui-powerups-cypress.umd.js +6 -8
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +64 -53
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.js +6 -2
- package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js +12 -3
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +18 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/tables/abstract-table-model.d.ts +2 -1
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
- package/package.json +12 -12
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-bar'), require('@angular/material/progress-spinner'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@angular/platform-browser'), require('lodash'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('typescript-string-enums'), require('resize-observer-polyfill'), require('immer'), require('@angular/cdk/a11y'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('wake-event')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-bar', '@angular/material/progress-spinner', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@angular/platform-browser', 'lodash', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator/dist/src', 'typescript-string-enums', 'resize-observer-polyfill', 'immer', '@angular/cdk/a11y', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'wake-event'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon[
|
|
5
|
-
}(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, progressBar, progressSpinner, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, platformBrowser, _, typescriptUtilities, src, typescriptStringEnums, ResizeObserver, produce, a11y, flexLayout, i1, i1$1, overlay, list, fastMemoizeDecorator, reflectMetadata, animations$1, wakeEvent) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon["angular-ui-powerups"] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.icon, global.ng.material.menu, global.ng.material.progressBar, global.ng.material.progressSpinner, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.ng.platformBrowser, global._, global.typescriptUtilities, global.src, global.typescriptStringEnums, global.ResizeObserver, global.produce, global.ng.cdk.a11y, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.wakeEvent));
|
|
5
|
+
})(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, progressBar, progressSpinner, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, platformBrowser, _, typescriptUtilities, src, typescriptStringEnums, ResizeObserver, produce, a11y, flexLayout, i1, i1$1, overlay, list, fastMemoizeDecorator, reflectMetadata, animations$1, wakeEvent) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -15,14 +15,12 @@
|
|
|
15
15
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
16
|
Object.defineProperty(n, k, d.get ? d : {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return e[k];
|
|
20
|
-
}
|
|
18
|
+
get: function () { return e[k]; }
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
|
-
n[
|
|
23
|
+
n["default"] = e;
|
|
26
24
|
return Object.freeze(n);
|
|
27
25
|
}
|
|
28
26
|
|
|
@@ -271,7 +269,7 @@
|
|
|
271
269
|
ar[i] = from[i];
|
|
272
270
|
}
|
|
273
271
|
}
|
|
274
|
-
return to.concat(ar || from);
|
|
272
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
275
273
|
}
|
|
276
274
|
function __await(v) {
|
|
277
275
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -687,7 +685,7 @@
|
|
|
687
685
|
var _a;
|
|
688
686
|
var model = searchModel !== null && searchModel !== void 0 ? searchModel : (_a = this.highlightContext) === null || _a === void 0 ? void 0 : _a.aupHighlightTextModel;
|
|
689
687
|
var searchText = model === null || model === void 0 ? void 0 : model.value;
|
|
690
|
-
if (___default[
|
|
688
|
+
if (___default["default"].isEmpty(searchText) || !___default["default"].isString(value)) {
|
|
691
689
|
return value;
|
|
692
690
|
}
|
|
693
691
|
// Match in a case insensitive manner
|
|
@@ -1026,27 +1024,27 @@
|
|
|
1026
1024
|
RAISED: 'raised'
|
|
1027
1025
|
});
|
|
1028
1026
|
function getColorOf(face) {
|
|
1029
|
-
return ___default[
|
|
1027
|
+
return ___default["default"].isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
1030
1028
|
}
|
|
1031
1029
|
CommandFace.getColorOf = getColorOf;
|
|
1032
1030
|
function getStyleOf(face) {
|
|
1033
|
-
return ___default[
|
|
1031
|
+
return ___default["default"].isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
1034
1032
|
}
|
|
1035
1033
|
CommandFace.getStyleOf = getStyleOf;
|
|
1036
1034
|
function getIconOf(face) {
|
|
1037
|
-
return ___default[
|
|
1035
|
+
return ___default["default"].isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
1038
1036
|
}
|
|
1039
1037
|
CommandFace.getIconOf = getIconOf;
|
|
1040
1038
|
function getIconPositionOf(face) {
|
|
1041
|
-
return ___default[
|
|
1039
|
+
return ___default["default"].isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
|
|
1042
1040
|
}
|
|
1043
1041
|
CommandFace.getIconPositionOf = getIconPositionOf;
|
|
1044
1042
|
function getTooltipOf(face) {
|
|
1045
|
-
return ___default[
|
|
1043
|
+
return ___default["default"].isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
1046
1044
|
}
|
|
1047
1045
|
CommandFace.getTooltipOf = getTooltipOf;
|
|
1048
1046
|
function getTextOf(face) {
|
|
1049
|
-
return ___default[
|
|
1047
|
+
return ___default["default"].isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
1050
1048
|
}
|
|
1051
1049
|
CommandFace.getTextOf = getTextOf;
|
|
1052
1050
|
var Adapter = /** @class */ (function () {
|
|
@@ -1289,7 +1287,7 @@
|
|
|
1289
1287
|
_this.colorModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getColorOf(f); });
|
|
1290
1288
|
_this.tooltipModel = chain(_this.activeFace).map(function (f) { return exports.CommandFace.getTooltipOf(f); });
|
|
1291
1289
|
_this.iconOnly = _this.faces.select(function (face) {
|
|
1292
|
-
return ___default[
|
|
1290
|
+
return ___default["default"].isEmpty(exports.CommandFace.getTextOf(face)) && !___default["default"].isEmpty(exports.CommandFace.getIconOf(face));
|
|
1293
1291
|
}).count().equals(_this.faces.count());
|
|
1294
1292
|
return _this;
|
|
1295
1293
|
}
|
|
@@ -2142,10 +2140,10 @@
|
|
|
2142
2140
|
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2143
2141
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
2144
2142
|
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
2145
|
-
.map(function (v) { return ___default[
|
|
2143
|
+
.map(function (v) { return ___default["default"].isString(v) ? v.toLowerCase() : ''; });
|
|
2146
2144
|
_this.filteredOptions = chain(_this.optionsModel)
|
|
2147
2145
|
.select(function (option) {
|
|
2148
|
-
return ___default[
|
|
2146
|
+
return ___default["default"].isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
2149
2147
|
}, { dependsOn: lowerCaseFilterValue });
|
|
2150
2148
|
return _this;
|
|
2151
2149
|
}
|
|
@@ -2768,7 +2766,7 @@
|
|
|
2768
2766
|
ResizeAwareComponent.prototype.ngAfterViewInit = function () {
|
|
2769
2767
|
var _this = this;
|
|
2770
2768
|
var element = this.elementRef.nativeElement;
|
|
2771
|
-
var ro = new ResizeObserver__default[
|
|
2769
|
+
var ro = new ResizeObserver__default["default"](function (entries, observer) {
|
|
2772
2770
|
_this.ngZone.run(function () { return _this._updateBounds(); });
|
|
2773
2771
|
});
|
|
2774
2772
|
ro.observe(element);
|
|
@@ -3208,17 +3206,17 @@
|
|
|
3208
3206
|
var _this = this;
|
|
3209
3207
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3210
3208
|
if (firstTime) {
|
|
3211
|
-
if (___default[
|
|
3209
|
+
if (___default["default"].isFunction(onComponentInitOrOptions)) {
|
|
3212
3210
|
onComponentInitOrOptions(component);
|
|
3213
3211
|
}
|
|
3214
3212
|
else {
|
|
3215
|
-
if (___default[
|
|
3213
|
+
if (___default["default"].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3216
3214
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3217
3215
|
}
|
|
3218
3216
|
}
|
|
3219
3217
|
}
|
|
3220
3218
|
component.value = _this._format(rowData.row[_this.property]);
|
|
3221
|
-
if (!___default[
|
|
3219
|
+
if (!___default["default"].isFunction(onComponentInitOrOptions) && ___default["default"].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
3222
3220
|
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3223
3221
|
}
|
|
3224
3222
|
}));
|
|
@@ -3240,7 +3238,7 @@
|
|
|
3240
3238
|
component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
3241
3239
|
var disableEditCallback = false;
|
|
3242
3240
|
if (firstTime) {
|
|
3243
|
-
if (___default[
|
|
3241
|
+
if (___default["default"].isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
|
|
3244
3242
|
options.onComponentInit(component);
|
|
3245
3243
|
}
|
|
3246
3244
|
// install our edit callback
|
|
@@ -3255,7 +3253,7 @@
|
|
|
3255
3253
|
disableEditCallback = true;
|
|
3256
3254
|
component.value = rowData.row[_this.property];
|
|
3257
3255
|
disableEditCallback = false;
|
|
3258
|
-
if (!___default[
|
|
3256
|
+
if (!___default["default"].isFunction(options) && ___default["default"].isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
|
|
3259
3257
|
options.onRowUpdate(component, rowData.row);
|
|
3260
3258
|
}
|
|
3261
3259
|
}));
|
|
@@ -3264,7 +3262,7 @@
|
|
|
3264
3262
|
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, onComponentInit) {
|
|
3265
3263
|
var _this = this;
|
|
3266
3264
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3267
|
-
var initialiser = ___default[
|
|
3265
|
+
var initialiser = ___default["default"].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
3268
3266
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3269
3267
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
3270
3268
|
if (validators) {
|
|
@@ -3306,7 +3304,7 @@
|
|
|
3306
3304
|
ListPropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3307
3305
|
var _this = this;
|
|
3308
3306
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3309
|
-
var initialiser = ___default[
|
|
3307
|
+
var initialiser = ___default["default"].isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3310
3308
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3311
3309
|
var formListModel = editSession.form.pluckList(_this.property);
|
|
3312
3310
|
if (validators) {
|
|
@@ -3341,17 +3339,17 @@
|
|
|
3341
3339
|
var _this = this;
|
|
3342
3340
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3343
3341
|
if (firstTime) {
|
|
3344
|
-
if (___default[
|
|
3342
|
+
if (___default["default"].isFunction(onComponentInitOrOptions)) {
|
|
3345
3343
|
onComponentInitOrOptions(component);
|
|
3346
3344
|
}
|
|
3347
3345
|
else {
|
|
3348
|
-
if (___default[
|
|
3346
|
+
if (___default["default"].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3349
3347
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3350
3348
|
}
|
|
3351
3349
|
}
|
|
3352
3350
|
}
|
|
3353
3351
|
component.value = _this.getValue(rowData.row);
|
|
3354
|
-
if (!___default[
|
|
3352
|
+
if (!___default["default"].isFunction(onComponentInitOrOptions) && ___default["default"].isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
3355
3353
|
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3356
3354
|
}
|
|
3357
3355
|
}));
|
|
@@ -3850,7 +3848,7 @@
|
|
|
3850
3848
|
// if (!this._liveRowValue.value[immerable]) {
|
|
3851
3849
|
// console.warn()
|
|
3852
3850
|
// }
|
|
3853
|
-
_this._liveRowValue.value = produce__default[
|
|
3851
|
+
_this._liveRowValue.value = produce__default["default"](_this._liveRowValue.value, function (draft) {
|
|
3854
3852
|
_this.form.writeDirtyStateTo(draft);
|
|
3855
3853
|
});
|
|
3856
3854
|
});
|
|
@@ -4024,12 +4022,16 @@
|
|
|
4024
4022
|
return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
|
|
4025
4023
|
};
|
|
4026
4024
|
AbstractTableModel.prototype.isRowSelectionEnabled = function () {
|
|
4027
|
-
return this.
|
|
4025
|
+
return this.hasUserSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;
|
|
4028
4026
|
};
|
|
4029
|
-
AbstractTableModel.prototype.
|
|
4027
|
+
AbstractTableModel.prototype.hasUserSelectionModel = function () {
|
|
4030
4028
|
var _a;
|
|
4031
4029
|
return !!((_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate());
|
|
4032
4030
|
};
|
|
4031
|
+
AbstractTableModel.prototype.getSelectionModel = function () {
|
|
4032
|
+
var _a;
|
|
4033
|
+
return (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel;
|
|
4034
|
+
};
|
|
4033
4035
|
AbstractTableModel.prototype.isHoverEnabled = function () {
|
|
4034
4036
|
return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;
|
|
4035
4037
|
};
|
|
@@ -4458,7 +4460,9 @@
|
|
|
4458
4460
|
configurable: true
|
|
4459
4461
|
});
|
|
4460
4462
|
// @Trace()
|
|
4461
|
-
TreeLabelCellRendererComponent.prototype.expandOrCollapse = function (node) {
|
|
4463
|
+
TreeLabelCellRendererComponent.prototype.expandOrCollapse = function ($event, node) {
|
|
4464
|
+
$event.preventDefault();
|
|
4465
|
+
$event.stopPropagation();
|
|
4462
4466
|
this.expansionModel.isCollapsed(node) ? this.expansionModel.expand(node) : this.expansionModel.collapse(node);
|
|
4463
4467
|
};
|
|
4464
4468
|
return TreeLabelCellRendererComponent;
|
|
@@ -4466,7 +4470,7 @@
|
|
|
4466
4470
|
exports.TreeLabelCellRendererComponent.decorators = [
|
|
4467
4471
|
{ type: i0.Component, args: [{
|
|
4468
4472
|
selector: 'aup-tree-label-cell-renderer',
|
|
4469
|
-
template: "<div class=\"tree-icons\">\n <aup-tree-inheritance-icon *ngFor=\"let iconClass of iconList.value\" [type]=\"iconClass\"></aup-tree-inheritance-icon>\n <aup-icon *ngIf=\"iconModel.value\"\n [icon]=\"iconModel.value\"\n [class.clickable]=\"canExpand.value || canCollapse.value\"\n (click)=\"expandOrCollapse(node)\" ></aup-icon>\n</div>\n<div class=\"label\">{{label}}</div>\n",
|
|
4473
|
+
template: "<div class=\"tree-icons\">\n <aup-tree-inheritance-icon *ngFor=\"let iconClass of iconList.value\" [type]=\"iconClass\"></aup-tree-inheritance-icon>\n <aup-icon *ngIf=\"iconModel.value\"\n [icon]=\"iconModel.value\"\n [class.clickable]=\"canExpand.value || canCollapse.value\"\n (click)=\"expandOrCollapse($event, node)\" ></aup-icon>\n</div>\n<div class=\"label\">{{label}}</div>\n",
|
|
4470
4474
|
styles: [":host{--line-color: #ddd;--node-color: #999;display:inline-flex;flex-direction:row;align-items:stretch}:host div.label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;padding-left:6px}:host div.tree-icons{display:grid;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:1fr;align-items:stretch;justify-content:stretch}:host div.tree-icons aup-icon{align-self:center;color:var(--node-color)}:host div.tree-icons aup-icon.clickable{cursor:pointer}:host div.tree-icons aup-tree-inheritance-icon,:host div.tree-icons aup-icon{margin-left:4px}\n"]
|
|
4471
4475
|
},] }
|
|
4472
4476
|
];
|
|
@@ -4484,7 +4488,14 @@
|
|
|
4484
4488
|
__metadata("design:type", Object)
|
|
4485
4489
|
], exports.TreeLabelCellRendererComponent.prototype, "value", void 0);
|
|
4486
4490
|
(function (TreeLabelCellRendererComponent) {
|
|
4487
|
-
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) {
|
|
4491
|
+
TreeLabelCellRendererComponent.DEFAULT_ICON_FACTORY = function (node, expanded, defaultIcon) {
|
|
4492
|
+
var isLeaf = exports.DecoratedTreeNode.getDecorator(node).isLeaf();
|
|
4493
|
+
return isLeaf ?
|
|
4494
|
+
undefined :
|
|
4495
|
+
expanded ?
|
|
4496
|
+
'mat:expand_more' :
|
|
4497
|
+
'mat:chevron_right';
|
|
4498
|
+
};
|
|
4488
4499
|
})(exports.TreeLabelCellRendererComponent || (exports.TreeLabelCellRendererComponent = {}));
|
|
4489
4500
|
|
|
4490
4501
|
var FlattenedTreeListModel = /** @class */ (function (_super) {
|
|
@@ -4601,7 +4612,7 @@
|
|
|
4601
4612
|
component.expansionModel = _this.expansionModel;
|
|
4602
4613
|
}
|
|
4603
4614
|
component.value = rowData.row;
|
|
4604
|
-
component.label = ___default[
|
|
4615
|
+
component.label = ___default["default"].isNil(_this.labelProperty) ? undefined : rowData.row[_this.labelProperty];
|
|
4605
4616
|
component.iconFactory = _this.iconFactory;
|
|
4606
4617
|
}));
|
|
4607
4618
|
return this;
|
|
@@ -5635,7 +5646,7 @@
|
|
|
5635
5646
|
if (!this.isActive()) {
|
|
5636
5647
|
typescriptUtilities.lang.illegalState('no activity in progress');
|
|
5637
5648
|
}
|
|
5638
|
-
return ___default[
|
|
5649
|
+
return ___default["default"].findLast(this.activityRefs, function (tab) { return !tab.isComplete(); });
|
|
5639
5650
|
};
|
|
5640
5651
|
/**
|
|
5641
5652
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -5818,7 +5829,7 @@
|
|
|
5818
5829
|
}
|
|
5819
5830
|
Object.defineProperty(ActivityTitleComponent.prototype, "hasTransparentBackground", {
|
|
5820
5831
|
get: function () {
|
|
5821
|
-
return ___default[
|
|
5832
|
+
return ___default["default"].isNil(this._hasUserTransparentBackground) ? !this._color : this._hasUserTransparentBackground;
|
|
5822
5833
|
},
|
|
5823
5834
|
/**
|
|
5824
5835
|
* Adjusts layout to ensure the title and body are cleanly separated with even
|
|
@@ -6561,7 +6572,7 @@
|
|
|
6561
6572
|
});
|
|
6562
6573
|
};
|
|
6563
6574
|
InteractionContextTriggerFor.prototype.prepareActivityData = function () {
|
|
6564
|
-
return ___default[
|
|
6575
|
+
return ___default["default"].isFunction(this.activityDataFactory()) ? this.activityDataFactory() : this.activityData;
|
|
6565
6576
|
};
|
|
6566
6577
|
return InteractionContextTriggerFor;
|
|
6567
6578
|
}(pectin.GarbageCollector));
|
|
@@ -7262,7 +7273,7 @@
|
|
|
7262
7273
|
return _this;
|
|
7263
7274
|
}
|
|
7264
7275
|
RouteId.prototype.isEmptyValue = function (value) {
|
|
7265
|
-
return ___default[
|
|
7276
|
+
return ___default["default"].isNil(value);
|
|
7266
7277
|
};
|
|
7267
7278
|
RouteId.prototype.hasChanged = function (a, b) {
|
|
7268
7279
|
return a !== b;
|
|
@@ -7280,7 +7291,7 @@
|
|
|
7280
7291
|
return _this;
|
|
7281
7292
|
}
|
|
7282
7293
|
ValueParameter.prototype.isEmptyValue = function (value) {
|
|
7283
|
-
return ___default[
|
|
7294
|
+
return ___default["default"].isNil(value);
|
|
7284
7295
|
};
|
|
7285
7296
|
ValueParameter.prototype.hasChanged = function (a, b) {
|
|
7286
7297
|
return a !== b;
|
|
@@ -7298,10 +7309,10 @@
|
|
|
7298
7309
|
return _this;
|
|
7299
7310
|
}
|
|
7300
7311
|
ArrayParameter.prototype.isEmptyValue = function (value) {
|
|
7301
|
-
return ___default[
|
|
7312
|
+
return ___default["default"].isNil(value) || value.length < 1;
|
|
7302
7313
|
};
|
|
7303
7314
|
ArrayParameter.prototype.hasChanged = function (a, b) {
|
|
7304
|
-
return !___default[
|
|
7315
|
+
return !___default["default"].isEqual(a, b);
|
|
7305
7316
|
};
|
|
7306
7317
|
return ArrayParameter;
|
|
7307
7318
|
}(ParameterDefinition));
|
|
@@ -7350,13 +7361,13 @@
|
|
|
7350
7361
|
};
|
|
7351
7362
|
PlaceDefinition.prototype.getPlaceData = function (key, defaultValue) {
|
|
7352
7363
|
return this.data ?
|
|
7353
|
-
___default[
|
|
7364
|
+
___default["default"].isNil(this.data[key]) ? defaultValue : this.data[key] :
|
|
7354
7365
|
defaultValue;
|
|
7355
7366
|
};
|
|
7356
7367
|
PlaceDefinition.prototype.searchPlaceData = function (keys, defaultValue) {
|
|
7357
7368
|
var _this = this;
|
|
7358
7369
|
if (this.data) {
|
|
7359
|
-
var found = keys.find(function (key) { return !___default[
|
|
7370
|
+
var found = keys.find(function (key) { return !___default["default"].isNil(_this.data[key]); });
|
|
7360
7371
|
return found ? this.data[found] : defaultValue;
|
|
7361
7372
|
}
|
|
7362
7373
|
else {
|
|
@@ -7426,7 +7437,7 @@
|
|
|
7426
7437
|
// because our id routes redirect if the id isn't present we always have a id
|
|
7427
7438
|
// parameter in our params. This will bugger our remember and defaultvalue sanitisation
|
|
7428
7439
|
// as it'll see that the id is present (event thought its a blank string).
|
|
7429
|
-
if (!___default[
|
|
7440
|
+
if (!___default["default"].isEmpty(value)) {
|
|
7430
7441
|
result[def.name] = def.urlFormat.parse(value);
|
|
7431
7442
|
}
|
|
7432
7443
|
}
|
|
@@ -8104,7 +8115,7 @@
|
|
|
8104
8115
|
var currentIds = this.interactionServiceAdapter.getActiveInteractionContextIds();
|
|
8105
8116
|
var previousIds = this.urlService.getCurrentLocationUrlSnapshot().getInteractionIds();
|
|
8106
8117
|
// console.log(`---> synchroniseInteractionIds`, { is: currentIds.join(','), was: previousIds.join(',') });
|
|
8107
|
-
if (___default[
|
|
8118
|
+
if (___default["default"].isEqual(currentIds, previousIds)) {
|
|
8108
8119
|
// console.log('### Activity context ids were the same, skipping');
|
|
8109
8120
|
this.context.finishRoutingSession();
|
|
8110
8121
|
}
|
|
@@ -8584,7 +8595,7 @@
|
|
|
8584
8595
|
return !!((_a = this._previousVisits) === null || _a === void 0 ? void 0 : _a.getVisitFor(placeDef));
|
|
8585
8596
|
};
|
|
8586
8597
|
PlaceHistory.prototype.getMostRecentVisitFor = function (placeDef) {
|
|
8587
|
-
return ___default[
|
|
8598
|
+
return ___default["default"].first(this.getHistory(placeDef));
|
|
8588
8599
|
};
|
|
8589
8600
|
PlaceHistory.prototype.getHistory = function (placeDef) {
|
|
8590
8601
|
var history = this._archive.get(placeDef);
|
|
@@ -8601,7 +8612,7 @@
|
|
|
8601
8612
|
var _this = this;
|
|
8602
8613
|
visits.forEach(function (state) {
|
|
8603
8614
|
var history = _this.getHistory(state.placeDefinition);
|
|
8604
|
-
var previousState = ___default[
|
|
8615
|
+
var previousState = ___default["default"].first(history);
|
|
8605
8616
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
8606
8617
|
history.unshift(state); // LIFO
|
|
8607
8618
|
_this.setHistory(state.placeDefinition, history.slice(0, _this.placeHistoryDepth));
|
|
@@ -8896,7 +8907,7 @@
|
|
|
8896
8907
|
return this.getInteractionIds().length > 0;
|
|
8897
8908
|
};
|
|
8898
8909
|
UrlSnapshot.prototype.hasInteractionIds = function (ids) {
|
|
8899
|
-
return ___default[
|
|
8910
|
+
return ___default["default"].isEqual(this.getInteractionIds(), ids);
|
|
8900
8911
|
};
|
|
8901
8912
|
// @Trace()
|
|
8902
8913
|
UrlSnapshot.prototype.updateInteractionIds = function (ids) {
|
|
@@ -10310,11 +10321,11 @@
|
|
|
10310
10321
|
function NumberType() {
|
|
10311
10322
|
}
|
|
10312
10323
|
NumberType.prototype.format = function (value) {
|
|
10313
|
-
return ___default[
|
|
10324
|
+
return ___default["default"].isNumber(value) && !___default["default"].isNaN(value) ? "" + value : null;
|
|
10314
10325
|
};
|
|
10315
10326
|
NumberType.prototype.parse = function (value) {
|
|
10316
10327
|
var parsed = Number.parseFloat(value);
|
|
10317
|
-
return ___default[
|
|
10328
|
+
return ___default["default"].isNaN(parsed) ? null : parsed;
|
|
10318
10329
|
};
|
|
10319
10330
|
return NumberType;
|
|
10320
10331
|
}());
|
|
@@ -10646,9 +10657,9 @@
|
|
|
10646
10657
|
exports.slideDownOnEnterAnimation = slideDownOnEnterAnimation;
|
|
10647
10658
|
exports.slideRightOnEnterAnimation = slideRightOnEnterAnimation;
|
|
10648
10659
|
exports.treeNodeDecorator = treeNodeDecorator;
|
|
10649
|
-
exports
|
|
10660
|
+
exports["ɵ0"] = ɵ0;
|
|
10650
10661
|
|
|
10651
10662
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10652
10663
|
|
|
10653
|
-
}))
|
|
10664
|
+
}));
|
|
10654
10665
|
//# sourceMappingURL=coolon-angular-ui-powerups.umd.js.map
|