@coolon/angular-ui-powerups 12.4.0 → 12.4.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/coolon-angular-ui-powerups-cypress.umd.js +14 -34
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +111 -110
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/esm2015/cypress/component-builder.js +3 -3
- package/esm2015/cypress/component-builder.js.map +1 -1
- package/esm2015/cypress/component-builder.metadata.json +1 -1
- package/esm2015/cypress/components/aup-abstract-table.js +3 -3
- package/esm2015/cypress/components/aup-abstract-table.js.map +1 -1
- package/esm2015/cypress/components/aup-abstract-table.metadata.json +1 -1
- package/esm2015/cypress/components/aup-command.js +2 -2
- package/esm2015/cypress/components/aup-command.js.map +1 -1
- package/esm2015/cypress/components/aup-command.metadata.json +1 -1
- package/esm2015/cypress/components/aup-tree-table.js +1 -1
- package/esm2015/cypress/components/aup-tree-table.js.map +1 -1
- package/esm2015/cypress/components/aup-tree-table.metadata.json +1 -1
- package/esm2015/cypress/page-element.js +3 -3
- package/esm2015/cypress/page-element.js.map +1 -1
- package/esm2015/cypress/page-element.metadata.json +1 -1
- package/esm2015/cypress/page.js +3 -3
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.js +1 -1
- package/esm2015/lib/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.js +4 -4
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +2 -2
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face.js +8 -8
- package/esm2015/lib/components/commands/command-face.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +3 -3
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -1
- package/esm2015/lib/components/tables/abstract-table-model.js +3 -3
- 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/column-list-model.js +2 -2
- package/esm2015/lib/components/tables/column-list-model.js.map +1 -1
- package/esm2015/lib/components/tables/column-list-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/column-model.js +12 -12
- package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
- package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/decorated-tree-node.js +3 -3
- package/esm2015/lib/components/tables/tree-table/decorated-tree-node.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js +2 -2
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js +2 -2
- 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/esm2015/lib/components/text/markdown/markdown.component.js +3 -3
- package/esm2015/lib/components/text/markdown/markdown.component.js.map +1 -1
- package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +1 -1
- package/esm2015/lib/directives/highlight.pipe.js +2 -2
- package/esm2015/lib/directives/highlight.pipe.js.map +1 -1
- package/esm2015/lib/directives/highlight.pipe.metadata.json +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +3 -3
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/abstract-dialog.component.js +2 -2
- package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-body/activity-body.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +3 -3
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.js +2 -2
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-title/activity-title.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +2 -2
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js +2 -2
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.metadata.json +1 -1
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js +2 -2
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +1 -1
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.metadata.json +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +8 -5
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js +3 -3
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js +2 -2
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.metadata.json +1 -1
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +2 -2
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +3 -3
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-definition.js +5 -5
- package/esm2015/lib/place/place-definition.js.map +1 -1
- package/esm2015/lib/place/place-definition.metadata.json +1 -1
- package/esm2015/lib/place/place-history.js +8 -8
- package/esm2015/lib/place/place-history.js.map +1 -1
- package/esm2015/lib/place/place-history.metadata.json +1 -1
- package/esm2015/lib/place/place.decorator.js +2 -2
- package/esm2015/lib/place/place.decorator.js.map +1 -1
- package/esm2015/lib/place/place.decorator.metadata.json +1 -1
- package/esm2015/lib/place/route/formatter.js +3 -3
- package/esm2015/lib/place/route/formatter.js.map +1 -1
- package/esm2015/lib/place/route/parameter-definition.js +8 -8
- package/esm2015/lib/place/route/parameter-definition.js.map +1 -1
- package/esm2015/lib/place/route/parameter-definition.metadata.json +1 -1
- package/esm2015/lib/place/url-snapshot.js +3 -3
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/url-snapshot.metadata.json +1 -1
- package/esm2015/lib/place/visit.js +5 -5
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +10 -10
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +84 -82
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +10 -9
- package/schematics/place-routes/place-class-scanner.js +5 -5
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/place-routes/place-def.js +5 -5
- package/schematics/place-routes/place-def.js.map +1 -1
- package/schematics/utils/import-def.js +4 -4
- package/schematics/utils/import-def.js.map +1 -1
- package/schematics/utils/method-scanner.js +6 -6
- package/schematics/utils/method-scanner.js.map +1 -1
- package/schematics/utils/path-helper.js +4 -4
- package/schematics/utils/path-helper.js.map +1 -1
- package/schematics/utils/source-file-scanner.js +5 -5
- package/schematics/utils/source-file-scanner.js.map +1 -1
- package/schematics/utils/source-file-utilities.js +2 -2
- package/schematics/utils/source-file-utilities.js.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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('marked'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator
|
|
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', 'marked', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator
|
|
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.
|
|
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,
|
|
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-es'), require('marked'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator'), 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('lodash'), require('@angular/cdk/overlay'), require('@angular/material/list'), require('reflect-metadata'), require('@angular/animations'), require('wake-event')) :
|
|
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-es', 'marked', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator', 'typescript-string-enums', 'resize-observer-polyfill', 'immer', '@angular/cdk/a11y', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', 'lodash', '@angular/cdk/overlay', '@angular/material/list', 'reflect-metadata', '@angular/animations', 'wake-event'], factory) :
|
|
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.lodashEs, global.marked, global.typescriptUtilities, global.fastMemoizeDecorator, global.typescriptStringEnums, global.ResizeObserver, global.produce, global.ng.cdk.a11y, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.lodash, global.ng.cdk.overlay, global.ng.material.list, 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, lodashEs, marked, typescriptUtilities, fastMemoizeDecorator, typescriptStringEnums, ResizeObserver, produce, a11y, flexLayout, i1, i1$1, lodash, overlay, list, 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
|
|
|
@@ -26,8 +26,6 @@
|
|
|
26
26
|
|
|
27
27
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
28
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
29
|
-
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
30
|
-
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
31
29
|
var ResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(ResizeObserver);
|
|
32
30
|
var produce__default = /*#__PURE__*/_interopDefaultLegacy(produce);
|
|
33
31
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
@@ -685,7 +683,7 @@
|
|
|
685
683
|
var _a;
|
|
686
684
|
var model = searchModel !== null && searchModel !== void 0 ? searchModel : (_a = this.highlightContext) === null || _a === void 0 ? void 0 : _a.aupHighlightTextModel;
|
|
687
685
|
var searchText = model === null || model === void 0 ? void 0 : model.value;
|
|
688
|
-
if (
|
|
686
|
+
if (lodashEs.isEmpty(searchText) || !lodashEs.isString(value)) {
|
|
689
687
|
return value;
|
|
690
688
|
}
|
|
691
689
|
// Match in a case insensitive manner
|
|
@@ -816,7 +814,7 @@
|
|
|
816
814
|
{ type: i0.Component, args: [{
|
|
817
815
|
selector: 'aup-busy-overlay',
|
|
818
816
|
template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
|
|
819
|
-
styles: [":host{position:relative}div.busy-overlay-backdrop{z-index:10;z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"]
|
|
817
|
+
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:stretch}div.busy-overlay-backdrop{z-index:10;z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"]
|
|
820
818
|
},] }
|
|
821
819
|
];
|
|
822
820
|
BusyOverlayComponent.ctorParameters = function () { return []; };
|
|
@@ -938,7 +936,7 @@
|
|
|
938
936
|
return this._columnCount;
|
|
939
937
|
},
|
|
940
938
|
set: function (count) {
|
|
941
|
-
if (!
|
|
939
|
+
if (!lodashEs.isNil(count) && (!lodashEs.isInteger(count) || count < 1)) {
|
|
942
940
|
typescriptUtilities.lang.illegalState('columnCount must be a positive integer or nil');
|
|
943
941
|
}
|
|
944
942
|
this._columnCount = count;
|
|
@@ -953,7 +951,7 @@
|
|
|
953
951
|
};
|
|
954
952
|
Object.defineProperty(CardContainerComponent.prototype, "isAutoColumns", {
|
|
955
953
|
get: function () {
|
|
956
|
-
return
|
|
954
|
+
return lodashEs.isNil(this._columnCount);
|
|
957
955
|
},
|
|
958
956
|
enumerable: false,
|
|
959
957
|
configurable: true
|
|
@@ -967,7 +965,7 @@
|
|
|
967
965
|
});
|
|
968
966
|
CardContainerComponent.prototype.updateColumnCountStyles = function () {
|
|
969
967
|
var el = this.elementRef.nativeElement;
|
|
970
|
-
if (
|
|
968
|
+
if (lodashEs.isNil(this._columnCount)) {
|
|
971
969
|
el.style.setProperty('--aup-card-container-column-count', '');
|
|
972
970
|
}
|
|
973
971
|
else {
|
|
@@ -1085,27 +1083,27 @@
|
|
|
1085
1083
|
RAISED: 'raised'
|
|
1086
1084
|
});
|
|
1087
1085
|
function getColorOf(face) {
|
|
1088
|
-
return
|
|
1086
|
+
return lodashEs.isFunction(face === null || face === void 0 ? void 0 : face.color) ? face.color() : undefined;
|
|
1089
1087
|
}
|
|
1090
1088
|
CommandFace.getColorOf = getColorOf;
|
|
1091
1089
|
function getStyleOf(face) {
|
|
1092
|
-
return
|
|
1090
|
+
return lodashEs.isFunction(face === null || face === void 0 ? void 0 : face.style) ? face.style() : undefined;
|
|
1093
1091
|
}
|
|
1094
1092
|
CommandFace.getStyleOf = getStyleOf;
|
|
1095
1093
|
function getIconOf(face) {
|
|
1096
|
-
return
|
|
1094
|
+
return lodashEs.isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
|
|
1097
1095
|
}
|
|
1098
1096
|
CommandFace.getIconOf = getIconOf;
|
|
1099
1097
|
function getIconPositionOf(face) {
|
|
1100
|
-
return
|
|
1098
|
+
return lodashEs.isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
|
|
1101
1099
|
}
|
|
1102
1100
|
CommandFace.getIconPositionOf = getIconPositionOf;
|
|
1103
1101
|
function getTooltipOf(face) {
|
|
1104
|
-
return
|
|
1102
|
+
return lodashEs.isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
|
|
1105
1103
|
}
|
|
1106
1104
|
CommandFace.getTooltipOf = getTooltipOf;
|
|
1107
1105
|
function getTextOf(face) {
|
|
1108
|
-
return
|
|
1106
|
+
return lodashEs.isFunction(face === null || face === void 0 ? void 0 : face.text) ? face.text() : undefined;
|
|
1109
1107
|
}
|
|
1110
1108
|
CommandFace.getTextOf = getTextOf;
|
|
1111
1109
|
var Adapter = /** @class */ (function () {
|
|
@@ -1171,42 +1169,42 @@
|
|
|
1171
1169
|
return Adapter;
|
|
1172
1170
|
}());
|
|
1173
1171
|
__decorate([
|
|
1174
|
-
|
|
1172
|
+
fastMemoizeDecorator.Memoize(),
|
|
1175
1173
|
__metadata("design:type", Object),
|
|
1176
1174
|
__metadata("design:paramtypes", [])
|
|
1177
1175
|
], Adapter.prototype, "text", null);
|
|
1178
1176
|
__decorate([
|
|
1179
|
-
|
|
1177
|
+
fastMemoizeDecorator.Memoize(),
|
|
1180
1178
|
__metadata("design:type", Object),
|
|
1181
1179
|
__metadata("design:paramtypes", [])
|
|
1182
1180
|
], Adapter.prototype, "icon", null);
|
|
1183
1181
|
__decorate([
|
|
1184
|
-
|
|
1182
|
+
fastMemoizeDecorator.Memoize(),
|
|
1185
1183
|
__metadata("design:type", Object),
|
|
1186
1184
|
__metadata("design:paramtypes", [])
|
|
1187
1185
|
], Adapter.prototype, "iconPosition", null);
|
|
1188
1186
|
__decorate([
|
|
1189
|
-
|
|
1187
|
+
fastMemoizeDecorator.Memoize(),
|
|
1190
1188
|
__metadata("design:type", Object),
|
|
1191
1189
|
__metadata("design:paramtypes", [])
|
|
1192
1190
|
], Adapter.prototype, "tooltip", null);
|
|
1193
1191
|
__decorate([
|
|
1194
|
-
|
|
1192
|
+
fastMemoizeDecorator.Memoize(),
|
|
1195
1193
|
__metadata("design:type", Boolean),
|
|
1196
1194
|
__metadata("design:paramtypes", [])
|
|
1197
1195
|
], Adapter.prototype, "iconPositionStart", null);
|
|
1198
1196
|
__decorate([
|
|
1199
|
-
|
|
1197
|
+
fastMemoizeDecorator.Memoize(),
|
|
1200
1198
|
__metadata("design:type", Boolean),
|
|
1201
1199
|
__metadata("design:paramtypes", [])
|
|
1202
1200
|
], Adapter.prototype, "iconPositionEnd", null);
|
|
1203
1201
|
__decorate([
|
|
1204
|
-
|
|
1202
|
+
fastMemoizeDecorator.Memoize(),
|
|
1205
1203
|
__metadata("design:type", String),
|
|
1206
1204
|
__metadata("design:paramtypes", [])
|
|
1207
1205
|
], Adapter.prototype, "color", null);
|
|
1208
1206
|
__decorate([
|
|
1209
|
-
|
|
1207
|
+
fastMemoizeDecorator.Memoize(),
|
|
1210
1208
|
__metadata("design:type", String),
|
|
1211
1209
|
__metadata("design:paramtypes", [])
|
|
1212
1210
|
], Adapter.prototype, "style", null);
|
|
@@ -1356,7 +1354,7 @@
|
|
|
1356
1354
|
_this.color$ = chain(_this.activeFace$).map(function (f) { return exports.CommandFace.getColorOf(f); });
|
|
1357
1355
|
_this.tooltip$ = chain(_this.activeFace$).map(function (f) { return exports.CommandFace.getTooltipOf(f); });
|
|
1358
1356
|
_this.iconOnly$ = _this.faces$.select(function (face) {
|
|
1359
|
-
return
|
|
1357
|
+
return lodashEs.isEmpty(exports.CommandFace.getTextOf(face)) && !lodashEs.isEmpty(exports.CommandFace.getIconOf(face));
|
|
1360
1358
|
}).count().equals(_this.faces$.count());
|
|
1361
1359
|
return _this;
|
|
1362
1360
|
}
|
|
@@ -2209,10 +2207,10 @@
|
|
|
2209
2207
|
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
2210
2208
|
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;
|
|
2211
2209
|
var lowerCaseFilterValue = chain(_this.filterValue)
|
|
2212
|
-
.map(function (v) { return
|
|
2210
|
+
.map(function (v) { return lodashEs.isString(v) ? v.toLowerCase() : ''; });
|
|
2213
2211
|
_this.filteredOptions = chain(_this.optionsModel)
|
|
2214
2212
|
.select(function (option) {
|
|
2215
|
-
return
|
|
2213
|
+
return lodashEs.isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
|
|
2216
2214
|
}, { dependsOn: lowerCaseFilterValue });
|
|
2217
2215
|
return _this;
|
|
2218
2216
|
}
|
|
@@ -3274,7 +3272,7 @@
|
|
|
3274
3272
|
};
|
|
3275
3273
|
ColumnModel.prototype.onRendererAttached = function (host, component) {
|
|
3276
3274
|
this._cellRendererPortalRef.onPortalAttached(host, component);
|
|
3277
|
-
if (
|
|
3275
|
+
if (lodashEs.isFunction(component === null || component === void 0 ? void 0 : component.matches)) {
|
|
3278
3276
|
this._cellRendererTextSearchPredicate = function (row, text) { return component.matches(row, text); };
|
|
3279
3277
|
}
|
|
3280
3278
|
else {
|
|
@@ -3298,13 +3296,13 @@
|
|
|
3298
3296
|
return ColumnModel;
|
|
3299
3297
|
}(pectin.GarbageCollector));
|
|
3300
3298
|
__decorate([
|
|
3301
|
-
|
|
3299
|
+
fastMemoizeDecorator.Memoize(),
|
|
3302
3300
|
__metadata("design:type", Function),
|
|
3303
3301
|
__metadata("design:paramtypes", []),
|
|
3304
3302
|
__metadata("design:returntype", String)
|
|
3305
3303
|
], ColumnModel.prototype, "getHeaderText", null);
|
|
3306
3304
|
__decorate([
|
|
3307
|
-
|
|
3305
|
+
fastMemoizeDecorator.Memoize(),
|
|
3308
3306
|
__metadata("design:type", Function),
|
|
3309
3307
|
__metadata("design:paramtypes", []),
|
|
3310
3308
|
__metadata("design:returntype", Object)
|
|
@@ -3325,11 +3323,11 @@
|
|
|
3325
3323
|
var _this = this;
|
|
3326
3324
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3327
3325
|
if (firstTime) {
|
|
3328
|
-
if (
|
|
3326
|
+
if (lodashEs.isFunction(onComponentInitOrOptions)) {
|
|
3329
3327
|
onComponentInitOrOptions(component);
|
|
3330
3328
|
}
|
|
3331
3329
|
else {
|
|
3332
|
-
if (
|
|
3330
|
+
if (lodashEs.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3333
3331
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3334
3332
|
}
|
|
3335
3333
|
}
|
|
@@ -3354,7 +3352,7 @@
|
|
|
3354
3352
|
component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;
|
|
3355
3353
|
var disableEditCallback = false;
|
|
3356
3354
|
if (firstTime) {
|
|
3357
|
-
if (
|
|
3355
|
+
if (lodashEs.isFunction(options === null || options === void 0 ? void 0 : options.onComponentInit)) {
|
|
3358
3356
|
options.onComponentInit(component);
|
|
3359
3357
|
}
|
|
3360
3358
|
// install our edit callback
|
|
@@ -3369,7 +3367,7 @@
|
|
|
3369
3367
|
disableEditCallback = true;
|
|
3370
3368
|
component.value = rowData.row[_this.property];
|
|
3371
3369
|
disableEditCallback = false;
|
|
3372
|
-
if (!
|
|
3370
|
+
if (!lodashEs.isFunction(options) && lodashEs.isFunction(options === null || options === void 0 ? void 0 : options.onRowUpdate)) {
|
|
3373
3371
|
options.onRowUpdate(component, rowData.row);
|
|
3374
3372
|
}
|
|
3375
3373
|
}));
|
|
@@ -3378,7 +3376,7 @@
|
|
|
3378
3376
|
PropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, onComponentInit) {
|
|
3379
3377
|
var _this = this;
|
|
3380
3378
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3381
|
-
var initialiser =
|
|
3379
|
+
var initialiser = lodashEs.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;
|
|
3382
3380
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3383
3381
|
var formValueModel = editSession.form.pluck(_this.property);
|
|
3384
3382
|
if (validators) {
|
|
@@ -3423,7 +3421,7 @@
|
|
|
3423
3421
|
ListPropertyColumnModel.prototype.cellEditor = function (editor, validatorsOrInitialiser, initialiseComponent) {
|
|
3424
3422
|
var _this = this;
|
|
3425
3423
|
var validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;
|
|
3426
|
-
var initialiser =
|
|
3424
|
+
var initialiser = lodashEs.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;
|
|
3427
3425
|
this.configureCellEditor(new CellEditorPortalRef(editor, function (component, editSession) {
|
|
3428
3426
|
var formListModel = editSession.form.pluckList(_this.property);
|
|
3429
3427
|
if (validators) {
|
|
@@ -3458,17 +3456,17 @@
|
|
|
3458
3456
|
var _this = this;
|
|
3459
3457
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
|
|
3460
3458
|
if (firstTime) {
|
|
3461
|
-
if (
|
|
3459
|
+
if (lodashEs.isFunction(onComponentInitOrOptions)) {
|
|
3462
3460
|
onComponentInitOrOptions(component);
|
|
3463
3461
|
}
|
|
3464
3462
|
else {
|
|
3465
|
-
if (
|
|
3463
|
+
if (lodashEs.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
|
|
3466
3464
|
onComponentInitOrOptions.onComponentInit(component);
|
|
3467
3465
|
}
|
|
3468
3466
|
}
|
|
3469
3467
|
}
|
|
3470
3468
|
component.value = _this.getValue(rowData.row);
|
|
3471
|
-
if (!
|
|
3469
|
+
if (!lodashEs.isFunction(onComponentInitOrOptions) && lodashEs.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
|
|
3472
3470
|
onComponentInitOrOptions.onRowUpdate(component, rowData.row);
|
|
3473
3471
|
}
|
|
3474
3472
|
}));
|
|
@@ -3935,7 +3933,7 @@
|
|
|
3935
3933
|
}
|
|
3936
3934
|
this.registerDisposable(column);
|
|
3937
3935
|
this.runInTransaction(function () {
|
|
3938
|
-
if (!
|
|
3936
|
+
if (!lodashEs.isNil(index)) {
|
|
3939
3937
|
_this._allColumns.insert(index, column);
|
|
3940
3938
|
}
|
|
3941
3939
|
else {
|
|
@@ -4060,7 +4058,7 @@
|
|
|
4060
4058
|
this.selectionColumnModel = new SelectionColumnModel(columnId, function () { return _this.getColumnTextProperties(columnId); }, selectionModel);
|
|
4061
4059
|
this.addRowClass('aup-row-selected', function (row) { return _this.selectionColumnModel.isSelected(row); });
|
|
4062
4060
|
var selectionColumnModel = this.addColumn(this.selectionColumnModel, 0);
|
|
4063
|
-
if (!
|
|
4061
|
+
if (!lodashEs.isNil(visible)) {
|
|
4064
4062
|
selectionColumnModel.visibleWhile(visible instanceof pectin.ValueModel ? visible : pectin.ValueModel.constant(visible));
|
|
4065
4063
|
}
|
|
4066
4064
|
return selectionColumnModel;
|
|
@@ -4068,7 +4066,7 @@
|
|
|
4068
4066
|
AbstractTableModel.prototype.addEditControls = function (saveCommandFactory, formFactory) {
|
|
4069
4067
|
var _this = this;
|
|
4070
4068
|
this.saveCommandFactory = saveCommandFactory;
|
|
4071
|
-
if (
|
|
4069
|
+
if (lodashEs.isFunction(formFactory)) {
|
|
4072
4070
|
this._createForm = formFactory;
|
|
4073
4071
|
}
|
|
4074
4072
|
var columnId = 'editControls';
|
|
@@ -4421,11 +4419,11 @@
|
|
|
4421
4419
|
return this.parent ? this.parent[treeNodeDecorator].children.length > 1 : false;
|
|
4422
4420
|
};
|
|
4423
4421
|
// find(predicate: Predicate<T>): T {
|
|
4424
|
-
// return
|
|
4422
|
+
// return find(this.descendants(), predicate);
|
|
4425
4423
|
// }
|
|
4426
4424
|
//
|
|
4427
4425
|
// select(predicate: Predicate<T>): T[] {
|
|
4428
|
-
// return
|
|
4426
|
+
// return filter(this.descendants(), predicate);
|
|
4429
4427
|
// }
|
|
4430
4428
|
//
|
|
4431
4429
|
// flattenInto(array: T[]): T[] {
|
|
@@ -4473,60 +4471,60 @@
|
|
|
4473
4471
|
return Decorator;
|
|
4474
4472
|
}());
|
|
4475
4473
|
__decorate([
|
|
4476
|
-
|
|
4474
|
+
fastMemoizeDecorator.Memoize(),
|
|
4477
4475
|
__metadata("design:type", Array),
|
|
4478
4476
|
__metadata("design:paramtypes", [])
|
|
4479
4477
|
], Decorator.prototype, "children", null);
|
|
4480
4478
|
__decorate([
|
|
4481
|
-
|
|
4479
|
+
fastMemoizeDecorator.Memoize(),
|
|
4482
4480
|
__metadata("design:type", Function),
|
|
4483
4481
|
__metadata("design:paramtypes", []),
|
|
4484
4482
|
__metadata("design:returntype", Array)
|
|
4485
4483
|
], Decorator.prototype, "siblingsBefore", null);
|
|
4486
4484
|
__decorate([
|
|
4487
|
-
|
|
4485
|
+
fastMemoizeDecorator.Memoize(),
|
|
4488
4486
|
__metadata("design:type", Function),
|
|
4489
4487
|
__metadata("design:paramtypes", []),
|
|
4490
4488
|
__metadata("design:returntype", Array)
|
|
4491
4489
|
], Decorator.prototype, "siblingsAfter", null);
|
|
4492
4490
|
__decorate([
|
|
4493
|
-
|
|
4491
|
+
fastMemoizeDecorator.Memoize(),
|
|
4494
4492
|
__metadata("design:type", Function),
|
|
4495
4493
|
__metadata("design:paramtypes", []),
|
|
4496
4494
|
__metadata("design:returntype", Array)
|
|
4497
4495
|
], Decorator.prototype, "siblings", null);
|
|
4498
4496
|
__decorate([
|
|
4499
|
-
|
|
4497
|
+
fastMemoizeDecorator.Memoize(),
|
|
4500
4498
|
__metadata("design:type", Function),
|
|
4501
4499
|
__metadata("design:paramtypes", []),
|
|
4502
4500
|
__metadata("design:returntype", Boolean)
|
|
4503
4501
|
], Decorator.prototype, "isFirstChild", null);
|
|
4504
4502
|
__decorate([
|
|
4505
|
-
|
|
4503
|
+
fastMemoizeDecorator.Memoize(),
|
|
4506
4504
|
__metadata("design:type", Function),
|
|
4507
4505
|
__metadata("design:paramtypes", []),
|
|
4508
4506
|
__metadata("design:returntype", void 0)
|
|
4509
4507
|
], Decorator.prototype, "myIndex", null);
|
|
4510
4508
|
__decorate([
|
|
4511
|
-
|
|
4509
|
+
fastMemoizeDecorator.Memoize(),
|
|
4512
4510
|
__metadata("design:type", Function),
|
|
4513
4511
|
__metadata("design:paramtypes", []),
|
|
4514
4512
|
__metadata("design:returntype", Boolean)
|
|
4515
4513
|
], Decorator.prototype, "isLastChild", null);
|
|
4516
4514
|
__decorate([
|
|
4517
|
-
|
|
4515
|
+
fastMemoizeDecorator.Memoize(),
|
|
4518
4516
|
__metadata("design:type", Function),
|
|
4519
4517
|
__metadata("design:paramtypes", []),
|
|
4520
4518
|
__metadata("design:returntype", Boolean)
|
|
4521
4519
|
], Decorator.prototype, "hasSiblings", null);
|
|
4522
4520
|
__decorate([
|
|
4523
|
-
|
|
4521
|
+
fastMemoizeDecorator.Memoize(),
|
|
4524
4522
|
__metadata("design:type", Function),
|
|
4525
4523
|
__metadata("design:paramtypes", []),
|
|
4526
4524
|
__metadata("design:returntype", Array)
|
|
4527
4525
|
], Decorator.prototype, "ancestors", null);
|
|
4528
4526
|
__decorate([
|
|
4529
|
-
|
|
4527
|
+
fastMemoizeDecorator.Memoize(),
|
|
4530
4528
|
__metadata("design:type", Number),
|
|
4531
4529
|
__metadata("design:paramtypes", [])
|
|
4532
4530
|
], Decorator.prototype, "depth", null);
|
|
@@ -4741,7 +4739,7 @@
|
|
|
4741
4739
|
component.treeTableModel = _this.expansionModel;
|
|
4742
4740
|
}
|
|
4743
4741
|
component.value = rowData.row;
|
|
4744
|
-
component.label =
|
|
4742
|
+
component.label = lodashEs.isNil(_this.labelProperty) ? undefined : rowData.row[_this.labelProperty];
|
|
4745
4743
|
component.iconFactory = _this.iconFactory;
|
|
4746
4744
|
}));
|
|
4747
4745
|
return this;
|
|
@@ -4769,7 +4767,7 @@
|
|
|
4769
4767
|
_this.treeExpansionModel = new TreeExpansionModel(function (row) { return _this.identityOf(row); });
|
|
4770
4768
|
if (builder)
|
|
4771
4769
|
builder(_this);
|
|
4772
|
-
var childExtractor =
|
|
4770
|
+
var childExtractor = lodashEs.isFunction(childAccessor) ? childAccessor : function (row) { return row[childAccessor]; };
|
|
4773
4771
|
_this.flattenedDataSource = _this.registerDisposable(new FlattenedTreeListModel(source, childExtractor, _this.treeExpansionModel));
|
|
4774
4772
|
_this.setDataSource(_this.flattenedDataSource);
|
|
4775
4773
|
_this.addRowClass('aup-node-collapsed', function (row) { return _this.isCollapsed(row); });
|
|
@@ -5105,7 +5103,7 @@
|
|
|
5105
5103
|
var _this = this;
|
|
5106
5104
|
var when = pectin.Dsl.disposeWith(this).when;
|
|
5107
5105
|
when(this.content$).changes(function (content) { return _this.renderContent(content); }, { initialValue: 'triggerChangeUnlessNil' });
|
|
5108
|
-
if (
|
|
5106
|
+
if (lodashEs.isNil(this.content) && !lodashEs.isEmpty(this.element.nativeElement.innerHTML)) {
|
|
5109
5107
|
this.renderContent(this.extractInnerContent(this.element.nativeElement.innerHTML));
|
|
5110
5108
|
}
|
|
5111
5109
|
};
|
|
@@ -5118,7 +5116,7 @@
|
|
|
5118
5116
|
return lines.map(function (l) { return l.substr(prefix); }).join('\n');
|
|
5119
5117
|
};
|
|
5120
5118
|
MarkdownComponent.prototype.renderContent = function (content) {
|
|
5121
|
-
if (!
|
|
5119
|
+
if (!lodashEs.isNil(content)) {
|
|
5122
5120
|
var markdown = this.inline ?
|
|
5123
5121
|
this.markdownService.renderInline(content) :
|
|
5124
5122
|
this.markdownService.render(content);
|
|
@@ -5495,11 +5493,11 @@
|
|
|
5495
5493
|
}
|
|
5496
5494
|
Alert.getContent = getContent;
|
|
5497
5495
|
function getTitle(alert) {
|
|
5498
|
-
return
|
|
5496
|
+
return lodashEs.isFunction(alert.title) ? alert.title() : undefined;
|
|
5499
5497
|
}
|
|
5500
5498
|
Alert.getTitle = getTitle;
|
|
5501
5499
|
function getColor(alert) {
|
|
5502
|
-
return
|
|
5500
|
+
return lodashEs.isFunction(alert.color) ? alert.color() : undefined;
|
|
5503
5501
|
}
|
|
5504
5502
|
Alert.getColor = getColor;
|
|
5505
5503
|
})(exports.Alert || (exports.Alert = {}));
|
|
@@ -5540,7 +5538,7 @@
|
|
|
5540
5538
|
};
|
|
5541
5539
|
AbstractDialogComponent.prototype.isDestructive = function () {
|
|
5542
5540
|
// @ts-ignore
|
|
5543
|
-
return
|
|
5541
|
+
return lodash.isFunction(this.config['destructive']) && this.config.destructive();
|
|
5544
5542
|
};
|
|
5545
5543
|
return AbstractDialogComponent;
|
|
5546
5544
|
}(Activity));
|
|
@@ -5924,7 +5922,7 @@
|
|
|
5924
5922
|
if (!this.isActive()) {
|
|
5925
5923
|
typescriptUtilities.lang.illegalState('no activity in progress');
|
|
5926
5924
|
}
|
|
5927
|
-
return
|
|
5925
|
+
return lodashEs.findLast(this.activityRefs, function (tab) { return !tab.isComplete(); });
|
|
5928
5926
|
};
|
|
5929
5927
|
/**
|
|
5930
5928
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
@@ -6068,7 +6066,7 @@
|
|
|
6068
6066
|
{ type: i0.Component, args: [{
|
|
6069
6067
|
selector: 'aup-activity-container',
|
|
6070
6068
|
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busyModel]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n",
|
|
6071
|
-
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}\n"]
|
|
6069
|
+
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"]
|
|
6072
6070
|
},] }
|
|
6073
6071
|
];
|
|
6074
6072
|
ActivityContainerComponent.ctorParameters = function () { return []; };
|
|
@@ -6107,7 +6105,7 @@
|
|
|
6107
6105
|
}
|
|
6108
6106
|
Object.defineProperty(ActivityTitleComponent.prototype, "hasTransparentBackground", {
|
|
6109
6107
|
get: function () {
|
|
6110
|
-
return
|
|
6108
|
+
return lodashEs.isNil(this._hasUserTransparentBackground) ? !this._color : this._hasUserTransparentBackground;
|
|
6111
6109
|
},
|
|
6112
6110
|
/**
|
|
6113
6111
|
* Adjusts layout to ensure the title and body are cleanly separated with even
|
|
@@ -6517,7 +6515,7 @@
|
|
|
6517
6515
|
{ type: i0.Component, args: [{
|
|
6518
6516
|
selector: 'aup-in-place-interaction-context',
|
|
6519
6517
|
template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\" [animationDuration]=\"animationDuration\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
|
|
6520
|
-
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}\n"]
|
|
6518
|
+
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-activity-container{flex:1}\n"]
|
|
6521
6519
|
},] }
|
|
6522
6520
|
];
|
|
6523
6521
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
@@ -6853,7 +6851,7 @@
|
|
|
6853
6851
|
});
|
|
6854
6852
|
};
|
|
6855
6853
|
InteractionContextTriggerFor.prototype.prepareActivityData = function () {
|
|
6856
|
-
return
|
|
6854
|
+
return lodashEs.isFunction(this.activityDataFactory()) ? this.activityDataFactory() : this.activityData;
|
|
6857
6855
|
};
|
|
6858
6856
|
return InteractionContextTriggerFor;
|
|
6859
6857
|
}(pectin.GarbageCollector));
|
|
@@ -6962,7 +6960,7 @@
|
|
|
6962
6960
|
}
|
|
6963
6961
|
};
|
|
6964
6962
|
InputActivity.prototype.shouldCancelOnEscape = function () {
|
|
6965
|
-
return
|
|
6963
|
+
return lodashEs.isNil(this.data.cancelOnEscape) // we default to true..
|
|
6966
6964
|
|| this.data.cancelOnEscape;
|
|
6967
6965
|
};
|
|
6968
6966
|
return InputActivity;
|
|
@@ -7307,7 +7305,7 @@
|
|
|
7307
7305
|
// deviceDescription.isNil()
|
|
7308
7306
|
).areTruthy();
|
|
7309
7307
|
this.displayValue = chain(this.editorModel.valueModel).map(function (v) {
|
|
7310
|
-
return
|
|
7308
|
+
return lodashEs.isEmpty(v) ? _this.placeHolderModel.value : v;
|
|
7311
7309
|
}, { dependsOn: this.placeHolderModel, allowNil: true });
|
|
7312
7310
|
};
|
|
7313
7311
|
InlineStringEditorComponent.prototype.createInputActivityData = function () {
|
|
@@ -7562,11 +7560,11 @@
|
|
|
7562
7560
|
};
|
|
7563
7561
|
ParameterDefinition.prototype.prepareCustomSanitiser = function (injector) {
|
|
7564
7562
|
var customSanitiser = this.options.getOptional('sanitiser', null);
|
|
7565
|
-
if (
|
|
7563
|
+
if (lodashEs.isFunction(customSanitiser)) {
|
|
7566
7564
|
return injector.get(customSanitiser);
|
|
7567
7565
|
}
|
|
7568
|
-
if (
|
|
7569
|
-
return
|
|
7566
|
+
if (lodashEs.isObject(customSanitiser)) {
|
|
7567
|
+
return lodashEs.isFunction(customSanitiser['sanitise']) ?
|
|
7570
7568
|
customSanitiser :
|
|
7571
7569
|
typescriptUtilities.lang.illegalState("expected @VisitParameter({sanitiser: ...}) for " + this.propertyName + " to be a constructor or instance of ParameterSanitiser, got: " + customSanitiser);
|
|
7572
7570
|
}
|
|
@@ -7588,7 +7586,7 @@
|
|
|
7588
7586
|
return _this;
|
|
7589
7587
|
}
|
|
7590
7588
|
RouteId.prototype.isEmptyValue = function (value) {
|
|
7591
|
-
return
|
|
7589
|
+
return lodashEs.isNil(value);
|
|
7592
7590
|
};
|
|
7593
7591
|
RouteId.prototype.hasChanged = function (a, b) {
|
|
7594
7592
|
return a !== b;
|
|
@@ -7606,7 +7604,7 @@
|
|
|
7606
7604
|
return _this;
|
|
7607
7605
|
}
|
|
7608
7606
|
ValueParameter.prototype.isEmptyValue = function (value) {
|
|
7609
|
-
return
|
|
7607
|
+
return lodashEs.isNil(value);
|
|
7610
7608
|
};
|
|
7611
7609
|
ValueParameter.prototype.hasChanged = function (a, b) {
|
|
7612
7610
|
return a !== b;
|
|
@@ -7624,10 +7622,10 @@
|
|
|
7624
7622
|
return _this;
|
|
7625
7623
|
}
|
|
7626
7624
|
ArrayParameter.prototype.isEmptyValue = function (value) {
|
|
7627
|
-
return
|
|
7625
|
+
return lodashEs.isNil(value) || value.length < 1;
|
|
7628
7626
|
};
|
|
7629
7627
|
ArrayParameter.prototype.hasChanged = function (a, b) {
|
|
7630
|
-
return !
|
|
7628
|
+
return !lodashEs.isEqual(a, b);
|
|
7631
7629
|
};
|
|
7632
7630
|
return ArrayParameter;
|
|
7633
7631
|
}(ParameterDefinition));
|
|
@@ -7676,13 +7674,13 @@
|
|
|
7676
7674
|
};
|
|
7677
7675
|
PlaceDefinition.prototype.getPlaceData = function (key, defaultValue) {
|
|
7678
7676
|
return this.data ?
|
|
7679
|
-
|
|
7677
|
+
lodashEs.isNil(this.data[key]) ? defaultValue : this.data[key] :
|
|
7680
7678
|
defaultValue;
|
|
7681
7679
|
};
|
|
7682
7680
|
PlaceDefinition.prototype.searchPlaceData = function (keys, defaultValue) {
|
|
7683
7681
|
var _this = this;
|
|
7684
7682
|
if (this.data) {
|
|
7685
|
-
var found = keys.find(function (key) { return !
|
|
7683
|
+
var found = keys.find(function (key) { return !lodashEs.isNil(_this.data[key]); });
|
|
7686
7684
|
return found ? this.data[found] : defaultValue;
|
|
7687
7685
|
}
|
|
7688
7686
|
else {
|
|
@@ -7752,7 +7750,7 @@
|
|
|
7752
7750
|
// because our id routes redirect if the id isn't present we always have a id
|
|
7753
7751
|
// parameter in our params. This will bugger our remember and defaultvalue sanitisation
|
|
7754
7752
|
// as it'll see that the id is present (event thought its a blank string).
|
|
7755
|
-
if (!
|
|
7753
|
+
if (!lodashEs.isEmpty(value)) {
|
|
7756
7754
|
result[def.name] = def.urlFormat.parse(value);
|
|
7757
7755
|
}
|
|
7758
7756
|
}
|
|
@@ -7767,19 +7765,19 @@
|
|
|
7767
7765
|
return PlaceDefinition;
|
|
7768
7766
|
}());
|
|
7769
7767
|
__decorate([
|
|
7770
|
-
|
|
7768
|
+
fastMemoizeDecorator.Memoize(),
|
|
7771
7769
|
__metadata("design:type", Function),
|
|
7772
7770
|
__metadata("design:paramtypes", []),
|
|
7773
7771
|
__metadata("design:returntype", exports.ParameterDefinition)
|
|
7774
7772
|
], PlaceDefinition.prototype, "getRouteIdParameterDef", null);
|
|
7775
7773
|
__decorate([
|
|
7776
|
-
|
|
7774
|
+
fastMemoizeDecorator.Memoize(),
|
|
7777
7775
|
__metadata("design:type", Function),
|
|
7778
7776
|
__metadata("design:paramtypes", [Object]),
|
|
7779
7777
|
__metadata("design:returntype", Array)
|
|
7780
7778
|
], PlaceDefinition.prototype, "getRouteParameterDefs", null);
|
|
7781
7779
|
__decorate([
|
|
7782
|
-
|
|
7780
|
+
fastMemoizeDecorator.Memoize(),
|
|
7783
7781
|
__metadata("design:type", Function),
|
|
7784
7782
|
__metadata("design:paramtypes", [Object]),
|
|
7785
7783
|
__metadata("design:returntype", Array)
|
|
@@ -7872,8 +7870,8 @@
|
|
|
7872
7870
|
// Now we need to initialise the binding direction. If we have a value in the Url then we should always push
|
|
7873
7871
|
// that to the view. If we don't and the view already has a value (e.g. a selection model has already initialised in the
|
|
7874
7872
|
// component constructor) then we should push that to the route.
|
|
7875
|
-
var isInVisit = !
|
|
7876
|
-
var isInModel = !
|
|
7873
|
+
var isInVisit = !lodashEs.isNil(initialVisit.getParameterValue(parameterDef));
|
|
7874
|
+
var isInModel = !lodashEs.isNil(model.value);
|
|
7877
7875
|
if (!isInVisit && isInModel) {
|
|
7878
7876
|
binding.writeLeft(); // push it to the route
|
|
7879
7877
|
}
|
|
@@ -8068,7 +8066,7 @@
|
|
|
8068
8066
|
if (!(this.isPrimaryComponent && this.routerInteractionAdapter.isModalActive())) return [3 /*break*/, 3];
|
|
8069
8067
|
routeIds = this.urlService.getActiveInteractionIdsFromUrl(nextState.url);
|
|
8070
8068
|
currentIds = this.routerInteractionAdapter.getActiveInteractionContextIds();
|
|
8071
|
-
if (!!
|
|
8069
|
+
if (!!lodashEs.isEqual(currentIds, routeIds)) return [3 /*break*/, 2];
|
|
8072
8070
|
return [4 /*yield*/, this.routerInteractionAdapter.cancelCurrentModalInteraction()];
|
|
8073
8071
|
case 1:
|
|
8074
8072
|
_a.sent();
|
|
@@ -8430,7 +8428,7 @@
|
|
|
8430
8428
|
var currentIds = this.interactionServiceAdapter.getActiveInteractionContextIds();
|
|
8431
8429
|
var previousIds = this.urlService.getCurrentLocationUrlSnapshot().getInteractionIds();
|
|
8432
8430
|
// console.log(`---> synchroniseInteractionIds`, { is: currentIds.join(','), was: previousIds.join(',') });
|
|
8433
|
-
if (
|
|
8431
|
+
if (lodashEs.isEqual(currentIds, previousIds)) {
|
|
8434
8432
|
// console.log('### Activity context ids were the same, skipping');
|
|
8435
8433
|
this.context.finishRoutingSession();
|
|
8436
8434
|
}
|
|
@@ -8910,7 +8908,7 @@
|
|
|
8910
8908
|
return !!((_a = this._previousVisits) === null || _a === void 0 ? void 0 : _a.getVisitFor(placeDef));
|
|
8911
8909
|
};
|
|
8912
8910
|
PlaceHistory.prototype.getMostRecentVisitFor = function (placeDef) {
|
|
8913
|
-
return
|
|
8911
|
+
return lodashEs.first(this.getHistory(placeDef));
|
|
8914
8912
|
};
|
|
8915
8913
|
PlaceHistory.prototype.getHistory = function (placeDef) {
|
|
8916
8914
|
var history = this._archive.get(placeDef);
|
|
@@ -8927,7 +8925,7 @@
|
|
|
8927
8925
|
var _this = this;
|
|
8928
8926
|
visits.forEach(function (state) {
|
|
8929
8927
|
var history = _this.getHistory(state.placeDefinition);
|
|
8930
|
-
var previousState =
|
|
8928
|
+
var previousState = lodashEs.first(history);
|
|
8931
8929
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
8932
8930
|
history.unshift(state); // LIFO
|
|
8933
8931
|
_this.setHistory(state.placeDefinition, history.slice(0, _this.placeHistoryDepth));
|
|
@@ -8980,7 +8978,7 @@
|
|
|
8980
8978
|
// return Object.keys(parameters).reduce((acc, key) => {
|
|
8981
8979
|
// const matchValue = parameters[key];
|
|
8982
8980
|
// const visitValue = state.get(key);
|
|
8983
|
-
// const matched = matchValue === '*' ? !
|
|
8981
|
+
// const matched = matchValue === '*' ? !isNil(visitValue) : visitValue == matchValue;
|
|
8984
8982
|
// // Logger.get(this).info(`matched=${matched}`, parameters, visitValue);
|
|
8985
8983
|
// return acc && matched;
|
|
8986
8984
|
// }, true);
|
|
@@ -8989,18 +8987,18 @@
|
|
|
8989
8987
|
// }
|
|
8990
8988
|
//
|
|
8991
8989
|
// last(): Visit.State {
|
|
8992
|
-
// return
|
|
8990
|
+
// return findLast(this._history, visit => this._matches(visit))
|
|
8993
8991
|
// }
|
|
8994
8992
|
//
|
|
8995
8993
|
// // @trace
|
|
8996
8994
|
// allThatMatch(): Visit.State[] {
|
|
8997
|
-
// return
|
|
8995
|
+
// return filter(this._history, visit => this._matches(visit)).slice(-this._limit);
|
|
8998
8996
|
// }
|
|
8999
8997
|
//
|
|
9000
8998
|
// // @trace
|
|
9001
8999
|
// mostRecentValueOf<T=any>(param: string, defaultValue: T = null): T {
|
|
9002
|
-
// const lastStateWithParam =
|
|
9003
|
-
// return
|
|
9000
|
+
// const lastStateWithParam = findLast(this.allThatMatch(), state => !isNil(state.get(param)));
|
|
9001
|
+
// return isNil(lastStateWithParam) ? defaultValue : lastStateWithParam.get(param);
|
|
9004
9002
|
// }
|
|
9005
9003
|
//
|
|
9006
9004
|
// limit(limit: number): this {
|
|
@@ -9051,7 +9049,7 @@
|
|
|
9051
9049
|
};
|
|
9052
9050
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
9053
9051
|
get: function () {
|
|
9054
|
-
return
|
|
9052
|
+
return lodashEs.uniq(this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []));
|
|
9055
9053
|
},
|
|
9056
9054
|
enumerable: false,
|
|
9057
9055
|
configurable: true
|
|
@@ -9059,7 +9057,7 @@
|
|
|
9059
9057
|
return ConsolidatedParameterMap;
|
|
9060
9058
|
}());
|
|
9061
9059
|
__decorate([
|
|
9062
|
-
|
|
9060
|
+
fastMemoizeDecorator.Memoize(),
|
|
9063
9061
|
__metadata("design:type", Array),
|
|
9064
9062
|
__metadata("design:paramtypes", [])
|
|
9065
9063
|
], ConsolidatedParameterMap.prototype, "keys", null);
|
|
@@ -9099,7 +9097,7 @@
|
|
|
9099
9097
|
};
|
|
9100
9098
|
// @Trace()
|
|
9101
9099
|
Visit.prototype.hasRouteId = function () {
|
|
9102
|
-
return !
|
|
9100
|
+
return !lodashEs.isNil(this.getRouteId());
|
|
9103
9101
|
};
|
|
9104
9102
|
/**
|
|
9105
9103
|
* Returns the value of the place parameter with the specified name. The parameter
|
|
@@ -9108,7 +9106,7 @@
|
|
|
9108
9106
|
* @param parameter the visit parameter definition
|
|
9109
9107
|
*/
|
|
9110
9108
|
Visit.prototype.getParameterValue = function (parameter) {
|
|
9111
|
-
return
|
|
9109
|
+
return lodashEs.isString(parameter) ? this.visitParameters[parameter] : this.visitParameters[parameter.name];
|
|
9112
9110
|
};
|
|
9113
9111
|
// @Trace()
|
|
9114
9112
|
Visit.prototype.hasParameter = function (parameterDef) {
|
|
@@ -9146,11 +9144,11 @@
|
|
|
9146
9144
|
var currentParams = this.placeDefinition.getFormattedRouteParameters(this, true);
|
|
9147
9145
|
var otherParams = this.placeDefinition.getFormattedRouteParameters(other, true);
|
|
9148
9146
|
// console.log({currentParams, otherParams});
|
|
9149
|
-
var sameRouteParameters =
|
|
9147
|
+
var sameRouteParameters = lodashEs.isEqual(currentParams, otherParams);
|
|
9150
9148
|
return !samePlace || !sameRouteParameters;
|
|
9151
9149
|
};
|
|
9152
9150
|
Visit.prototype.hasChangedFrom = function (other) {
|
|
9153
|
-
var sameNonRouteParameters =
|
|
9151
|
+
var sameNonRouteParameters = lodashEs.isEqual(this.placeDefinition.getNonRouteParameters(this), this.placeDefinition.getNonRouteParameters(other));
|
|
9154
9152
|
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
9155
9153
|
};
|
|
9156
9154
|
Visit.prototype.toDebugString = function () {
|
|
@@ -9222,7 +9220,7 @@
|
|
|
9222
9220
|
return this.getInteractionIds().length > 0;
|
|
9223
9221
|
};
|
|
9224
9222
|
UrlSnapshot.prototype.hasInteractionIds = function (ids) {
|
|
9225
|
-
return
|
|
9223
|
+
return lodashEs.isEqual(this.getInteractionIds(), ids);
|
|
9226
9224
|
};
|
|
9227
9225
|
// @Trace()
|
|
9228
9226
|
UrlSnapshot.prototype.updateInteractionIds = function (ids) {
|
|
@@ -9249,7 +9247,7 @@
|
|
|
9249
9247
|
return UrlSnapshot;
|
|
9250
9248
|
}());
|
|
9251
9249
|
__decorate([
|
|
9252
|
-
|
|
9250
|
+
fastMemoizeDecorator.Memoize(),
|
|
9253
9251
|
__metadata("design:type", Function),
|
|
9254
9252
|
__metadata("design:paramtypes", []),
|
|
9255
9253
|
__metadata("design:returntype", Array)
|
|
@@ -9790,11 +9788,11 @@
|
|
|
9790
9788
|
var placeIndex = 0;
|
|
9791
9789
|
if (activatePlaceType.value) {
|
|
9792
9790
|
placeIndex = placesInOrder.indexOf(activatePlaceType.value);
|
|
9793
|
-
if (
|
|
9791
|
+
if (lodashEs.isNil(_this.initialPlaceIndex)) {
|
|
9794
9792
|
_this.initialPlaceIndex = placeIndex;
|
|
9795
9793
|
}
|
|
9796
9794
|
}
|
|
9797
|
-
return
|
|
9795
|
+
return lodashEs.isNil(_this.initialPlaceIndex) ? 0 : placeIndex - _this.initialPlaceIndex;
|
|
9798
9796
|
}, { dependsOn: activatePlaceType });
|
|
9799
9797
|
_this.animationSupported = _this.placesInAnimationOrder.count().isGreaterThan(0);
|
|
9800
9798
|
_this.animationEnabled = valueOf.all(_this.animateModel, _this.animationSupported).areTruthy();
|
|
@@ -9913,6 +9911,7 @@
|
|
|
9913
9911
|
var visitModel = new pectin.MutableValueModel(routerVisit);
|
|
9914
9912
|
pectin.DebugContext.tag(visitModel, "PlaceOutletComponent[" + activePlace.constructor.name + ")].visitModel");
|
|
9915
9913
|
activePlace.initialiseVisit(routerVisit, function (current, previous) {
|
|
9914
|
+
console.log("initialiseVisitCallback", { routerVisitModel: _this.routerVisitModel.value });
|
|
9916
9915
|
_this.pushVisitChangeToRoute(previous, current);
|
|
9917
9916
|
});
|
|
9918
9917
|
var finishPlaceLoad = function () {
|
|
@@ -9931,6 +9930,7 @@
|
|
|
9931
9930
|
var _a = pectin.Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
|
|
9932
9931
|
when(this.routerVisitModel)
|
|
9933
9932
|
.changes(function (visit) {
|
|
9933
|
+
console.log("routerVisitModel.change", { routerVisitModel: _this.routerVisitModel.value });
|
|
9934
9934
|
_this.pushVisitChangeToComponent(activePlace, visit);
|
|
9935
9935
|
}, {
|
|
9936
9936
|
unless: valueOf.any(this._isPushingVisitToRoute, this.routerVisitModel.isNil()).areTruthy()
|
|
@@ -9941,6 +9941,7 @@
|
|
|
9941
9941
|
};
|
|
9942
9942
|
PlaceOutletComponent.prototype.pushVisitChangeToRoute = function (previous, current) {
|
|
9943
9943
|
return __awaiter(this, void 0, void 0, function () {
|
|
9944
|
+
var routerVisit;
|
|
9944
9945
|
return __generator(this, function (_a) {
|
|
9945
9946
|
switch (_a.label) {
|
|
9946
9947
|
case 0:
|
|
@@ -9954,9 +9955,9 @@
|
|
|
9954
9955
|
this._isPushingVisitToRoute.value = false;
|
|
9955
9956
|
return [7 /*endfinally*/];
|
|
9956
9957
|
case 3:
|
|
9957
|
-
|
|
9958
|
-
if (current.hasRoutingChangedFrom(
|
|
9959
|
-
this.pushVisitChangeToComponent(this.activePlaceModel.value,
|
|
9958
|
+
routerVisit = this.routerVisitModel.value;
|
|
9959
|
+
if (routerVisit && current.hasRoutingChangedFrom(routerVisit)) {
|
|
9960
|
+
this.pushVisitChangeToComponent(this.activePlaceModel.value, routerVisit);
|
|
9960
9961
|
}
|
|
9961
9962
|
return [2 /*return*/];
|
|
9962
9963
|
}
|
|
@@ -10099,7 +10100,7 @@
|
|
|
10099
10100
|
__metadata("design:type", pectin.ValueModel)
|
|
10100
10101
|
], AbstractPlaceNavigationComponent.prototype, "placeOutletModel", void 0);
|
|
10101
10102
|
__decorate([
|
|
10102
|
-
|
|
10103
|
+
fastMemoizeDecorator.Memoize(),
|
|
10103
10104
|
__metadata("design:type", Function),
|
|
10104
10105
|
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
10105
10106
|
__metadata("design:returntype", Object)
|
|
@@ -10415,7 +10416,7 @@
|
|
|
10415
10416
|
return function (target) {
|
|
10416
10417
|
var _a;
|
|
10417
10418
|
if (exports.PlaceComponent.isPlaceComponentConstructor(target)) {
|
|
10418
|
-
exports.PlaceComponent.injectDefinition(target, new PlaceDefinition(target, options.path,
|
|
10419
|
+
exports.PlaceComponent.injectDefinition(target, new PlaceDefinition(target, options.path, lodashEs.isNil(options.authenticate) ? true : options.authenticate, (_a = options.role) !== null && _a !== void 0 ? _a : options.roles, options.data, exports.PlaceComponent.getRouteParameters(target), (options.children || []).map(function (c) { return exports.PlaceComponent.getDefinition(c); })));
|
|
10419
10420
|
if (options.roles) {
|
|
10420
10421
|
console.warn(target.name + " @Place({roles: string[]}) is deprecated. Use @Place({role:any}) instead");
|
|
10421
10422
|
}
|
|
@@ -10653,11 +10654,11 @@
|
|
|
10653
10654
|
function NumberType() {
|
|
10654
10655
|
}
|
|
10655
10656
|
NumberType.prototype.format = function (value) {
|
|
10656
|
-
return
|
|
10657
|
+
return lodashEs.isNumber(value) && !isNaN(value) ? "" + value : null;
|
|
10657
10658
|
};
|
|
10658
10659
|
NumberType.prototype.parse = function (value) {
|
|
10659
10660
|
var parsed = Number.parseFloat(value);
|
|
10660
|
-
return
|
|
10661
|
+
return lodashEs.isNaN(parsed) ? null : parsed;
|
|
10661
10662
|
};
|
|
10662
10663
|
return NumberType;
|
|
10663
10664
|
}());
|