@skyux/ag-grid 5.6.2 → 6.0.0-beta.0
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/documentation.json +5 -5
- package/esm2020/index.mjs +28 -0
- package/esm2020/lib/modules/ag-grid/ag-grid-adapter.service.mjs +55 -0
- package/esm2020/lib/modules/ag-grid/ag-grid-data-manager-adapter.directive.mjs +211 -0
- package/esm2020/lib/modules/ag-grid/ag-grid-row-delete.component.mjs +77 -0
- package/esm2020/lib/modules/ag-grid/ag-grid-row-delete.directive.mjs +229 -0
- package/esm2020/lib/modules/ag-grid/ag-grid-wrapper.component.mjs +92 -0
- package/esm2020/lib/modules/ag-grid/ag-grid.module.mjs +101 -0
- package/esm2020/lib/modules/ag-grid/ag-grid.service.mjs +408 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.mjs +36 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.module.mjs +20 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.mjs +52 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.module.mjs +20 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.mjs +70 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.module.mjs +19 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.mjs +68 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.module.mjs +38 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.mjs +44 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.module.mjs +19 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.mjs +44 -0
- package/esm2020/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.module.mjs +19 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency-validator.component.mjs +39 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.mjs +48 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.module.mjs +47 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.mjs +29 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.module.mjs +19 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.component.mjs +62 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.module.mjs +20 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.component.mjs +36 -0
- package/esm2020/lib/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.module.mjs +18 -0
- package/esm2020/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.mjs +78 -0
- package/esm2020/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator.module.mjs +20 -0
- package/esm2020/lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/ag-grid-row-delete-config.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/ag-grid-row-delete-contents.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/autocomplete-properties.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-class.mjs +17 -0
- package/esm2020/lib/modules/ag-grid/types/cell-editor-autocomplete-params.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-editor-currency-params.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-editor-datepicker-params.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-editor-lookup-params.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-renderer-currency-params.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-renderer-lookup-params.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-renderer-validator-params.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/cell-type.mjs +93 -0
- package/esm2020/lib/modules/ag-grid/types/currency-properties.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/datepicker-properties.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/header-class.mjs +8 -0
- package/esm2020/lib/modules/ag-grid/types/lookup-properties.mjs +26 -0
- package/esm2020/lib/modules/ag-grid/types/sky-grid-options.mjs +2 -0
- package/esm2020/lib/modules/ag-grid/types/validator-options.mjs +2 -0
- package/esm2020/lib/modules/shared/sky-ag-grid-resources.module.mjs +71 -0
- package/esm2020/skyux-ag-grid.mjs +5 -0
- package/fesm2015/{skyux-ag-grid.js → skyux-ag-grid.mjs} +195 -264
- package/fesm2015/skyux-ag-grid.mjs.map +1 -0
- package/fesm2020/skyux-ag-grid.mjs +2084 -0
- package/fesm2020/skyux-ag-grid.mjs.map +1 -0
- package/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.module.d.ts +2 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.module.d.ts +2 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.module.d.ts +2 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.module.d.ts +2 -2
- package/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.module.d.ts +2 -2
- package/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.module.d.ts +2 -2
- package/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.module.d.ts +2 -2
- package/lib/modules/shared/sky-ag-grid-resources.module.d.ts +14 -0
- package/package.json +33 -20
- package/bundles/skyux-ag-grid.umd.js +0 -2566
- package/esm2015/index.js +0 -28
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/ag-grid-adapter.service.js +0 -55
- package/esm2015/lib/modules/ag-grid/ag-grid-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/ag-grid-data-manager-adapter.directive.js +0 -211
- package/esm2015/lib/modules/ag-grid/ag-grid-data-manager-adapter.directive.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/ag-grid-row-delete.component.js +0 -77
- package/esm2015/lib/modules/ag-grid/ag-grid-row-delete.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/ag-grid-row-delete.directive.js +0 -230
- package/esm2015/lib/modules/ag-grid/ag-grid-row-delete.directive.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/ag-grid-wrapper.component.js +0 -96
- package/esm2015/lib/modules/ag-grid/ag-grid-wrapper.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/ag-grid.module.js +0 -122
- package/esm2015/lib/modules/ag-grid/ag-grid.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/ag-grid.service.js +0 -355
- package/esm2015/lib/modules/ag-grid/ag-grid.service.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.js +0 -41
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.module.js +0 -20
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.js +0 -57
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.module.js +0 -20
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.js +0 -77
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.module.js +0 -19
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.js +0 -74
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.module.js +0 -38
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js +0 -49
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.module.js +0 -19
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js +0 -49
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.module.js +0 -19
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency-validator.component.js +0 -43
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency-validator.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.js +0 -54
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.module.js +0 -47
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.js +0 -35
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.module.js +0 -19
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.component.js +0 -68
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.module.js +0 -20
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-row-selector/cell-renderer-row-selector.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.component.js +0 -41
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.module.js +0 -18
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-validator-tooltip/cell-renderer-validator-tooltip.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js +0 -83
- package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator.module.js +0 -20
- package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator.module.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-config.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-config.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-contents.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-contents.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/autocomplete-properties.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/autocomplete-properties.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-class.js +0 -17
- package/esm2015/lib/modules/ag-grid/types/cell-class.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-autocomplete-params.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/cell-editor-autocomplete-params.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-currency-params.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/cell-editor-currency-params.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-datepicker-params.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/cell-editor-datepicker-params.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-lookup-params.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/cell-editor-lookup-params.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-currency-params.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-currency-params.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-lookup-params.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-lookup-params.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-validator-params.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-validator-params.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/cell-type.js +0 -93
- package/esm2015/lib/modules/ag-grid/types/cell-type.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/currency-properties.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/currency-properties.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/datepicker-properties.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/datepicker-properties.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/header-class.js +0 -8
- package/esm2015/lib/modules/ag-grid/types/header-class.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/lookup-properties.js +0 -26
- package/esm2015/lib/modules/ag-grid/types/lookup-properties.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/sky-grid-options.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/sky-grid-options.js.map +0 -1
- package/esm2015/lib/modules/ag-grid/types/validator-options.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/validator-options.js.map +0 -1
- package/esm2015/lib/modules/shared/ag-grid-resources.module.js +0 -68
- package/esm2015/lib/modules/shared/ag-grid-resources.module.js.map +0 -1
- package/esm2015/skyux-ag-grid.js +0 -5
- package/esm2015/skyux-ag-grid.js.map +0 -1
- package/fesm2015/skyux-ag-grid.js.map +0 -1
- package/lib/modules/shared/ag-grid-resources.module.d.ts +0 -14
|
@@ -1,2566 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@skyux/core'), require('@skyux/data-manager'), require('@skyux/layout'), require('ag-grid-angular'), require('rxjs'), require('rxjs/operators'), require('@skyux/lookup'), require('@angular/forms'), require('@skyux/i18n'), require('@skyux/autonumeric'), require('ag-grid-community'), require('@skyux/theme'), require('@skyux/datetime'), require('@skyux/forms'), require('@skyux/popovers'), require('@skyux/indicators')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@skyux/ag-grid', ['exports', '@angular/common', '@angular/core', '@skyux/core', '@skyux/data-manager', '@skyux/layout', 'ag-grid-angular', 'rxjs', 'rxjs/operators', '@skyux/lookup', '@angular/forms', '@skyux/i18n', '@skyux/autonumeric', 'ag-grid-community', '@skyux/theme', '@skyux/datetime', '@skyux/forms', '@skyux/popovers', '@skyux/indicators'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["ag-grid"] = {}), global.ng.common, global.ng.core, global.i1, global.i1$1, global.i1$2, global.agGridAngular, global.rxjs, global.rxjs.operators, global.i1$3, global.ng.forms, global.i3$1, global.i2, global.agGridCommunity, global.i1$5, global.i2$1, global.i1$6, global.i2$2, global.i1$7));
|
|
5
|
-
})(this, (function (exports, i3, i0, i1, i1$1, i1$2, agGridAngular, rxjs, operators, i1$3, i1$4, i3$1, i2, agGridCommunity, i1$5, i2$1, i1$6, i2$2, i1$7) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
26
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
27
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
30
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
31
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
32
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
33
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
34
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
35
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
36
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
37
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
38
|
-
var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
|
|
39
|
-
|
|
40
|
-
/*! *****************************************************************************
|
|
41
|
-
Copyright (c) Microsoft Corporation.
|
|
42
|
-
|
|
43
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
44
|
-
purpose with or without fee is hereby granted.
|
|
45
|
-
|
|
46
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
47
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
48
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
49
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
50
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
51
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
52
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
53
|
-
***************************************************************************** */
|
|
54
|
-
/* global Reflect, Promise */
|
|
55
|
-
var extendStatics = function (d, b) {
|
|
56
|
-
extendStatics = Object.setPrototypeOf ||
|
|
57
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
58
|
-
function (d, b) { for (var p in b)
|
|
59
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
60
|
-
d[p] = b[p]; };
|
|
61
|
-
return extendStatics(d, b);
|
|
62
|
-
};
|
|
63
|
-
function __extends(d, b) {
|
|
64
|
-
if (typeof b !== "function" && b !== null)
|
|
65
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
66
|
-
extendStatics(d, b);
|
|
67
|
-
function __() { this.constructor = d; }
|
|
68
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
69
|
-
}
|
|
70
|
-
var __assign = function () {
|
|
71
|
-
__assign = Object.assign || function __assign(t) {
|
|
72
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
73
|
-
s = arguments[i];
|
|
74
|
-
for (var p in s)
|
|
75
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
76
|
-
t[p] = s[p];
|
|
77
|
-
}
|
|
78
|
-
return t;
|
|
79
|
-
};
|
|
80
|
-
return __assign.apply(this, arguments);
|
|
81
|
-
};
|
|
82
|
-
function __rest(s, e) {
|
|
83
|
-
var t = {};
|
|
84
|
-
for (var p in s)
|
|
85
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
86
|
-
t[p] = s[p];
|
|
87
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
88
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
89
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
90
|
-
t[p[i]] = s[p[i]];
|
|
91
|
-
}
|
|
92
|
-
return t;
|
|
93
|
-
}
|
|
94
|
-
function __decorate(decorators, target, key, desc) {
|
|
95
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
96
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
97
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
98
|
-
else
|
|
99
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
100
|
-
if (d = decorators[i])
|
|
101
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
102
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
103
|
-
}
|
|
104
|
-
function __param(paramIndex, decorator) {
|
|
105
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
106
|
-
}
|
|
107
|
-
function __metadata(metadataKey, metadataValue) {
|
|
108
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
109
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
110
|
-
}
|
|
111
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
112
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
113
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
114
|
-
function fulfilled(value) { try {
|
|
115
|
-
step(generator.next(value));
|
|
116
|
-
}
|
|
117
|
-
catch (e) {
|
|
118
|
-
reject(e);
|
|
119
|
-
} }
|
|
120
|
-
function rejected(value) { try {
|
|
121
|
-
step(generator["throw"](value));
|
|
122
|
-
}
|
|
123
|
-
catch (e) {
|
|
124
|
-
reject(e);
|
|
125
|
-
} }
|
|
126
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
127
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function __generator(thisArg, body) {
|
|
131
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
132
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
133
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
134
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
135
|
-
function step(op) {
|
|
136
|
-
if (f)
|
|
137
|
-
throw new TypeError("Generator is already executing.");
|
|
138
|
-
while (_)
|
|
139
|
-
try {
|
|
140
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
141
|
-
return t;
|
|
142
|
-
if (y = 0, t)
|
|
143
|
-
op = [op[0] & 2, t.value];
|
|
144
|
-
switch (op[0]) {
|
|
145
|
-
case 0:
|
|
146
|
-
case 1:
|
|
147
|
-
t = op;
|
|
148
|
-
break;
|
|
149
|
-
case 4:
|
|
150
|
-
_.label++;
|
|
151
|
-
return { value: op[1], done: false };
|
|
152
|
-
case 5:
|
|
153
|
-
_.label++;
|
|
154
|
-
y = op[1];
|
|
155
|
-
op = [0];
|
|
156
|
-
continue;
|
|
157
|
-
case 7:
|
|
158
|
-
op = _.ops.pop();
|
|
159
|
-
_.trys.pop();
|
|
160
|
-
continue;
|
|
161
|
-
default:
|
|
162
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
163
|
-
_ = 0;
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
167
|
-
_.label = op[1];
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
171
|
-
_.label = t[1];
|
|
172
|
-
t = op;
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
if (t && _.label < t[2]) {
|
|
176
|
-
_.label = t[2];
|
|
177
|
-
_.ops.push(op);
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
if (t[2])
|
|
181
|
-
_.ops.pop();
|
|
182
|
-
_.trys.pop();
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
op = body.call(thisArg, _);
|
|
186
|
-
}
|
|
187
|
-
catch (e) {
|
|
188
|
-
op = [6, e];
|
|
189
|
-
y = 0;
|
|
190
|
-
}
|
|
191
|
-
finally {
|
|
192
|
-
f = t = 0;
|
|
193
|
-
}
|
|
194
|
-
if (op[0] & 5)
|
|
195
|
-
throw op[1];
|
|
196
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
200
|
-
if (k2 === undefined)
|
|
201
|
-
k2 = k;
|
|
202
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
203
|
-
}) : (function (o, m, k, k2) {
|
|
204
|
-
if (k2 === undefined)
|
|
205
|
-
k2 = k;
|
|
206
|
-
o[k2] = m[k];
|
|
207
|
-
});
|
|
208
|
-
function __exportStar(m, o) {
|
|
209
|
-
for (var p in m)
|
|
210
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
211
|
-
__createBinding(o, m, p);
|
|
212
|
-
}
|
|
213
|
-
function __values(o) {
|
|
214
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
215
|
-
if (m)
|
|
216
|
-
return m.call(o);
|
|
217
|
-
if (o && typeof o.length === "number")
|
|
218
|
-
return {
|
|
219
|
-
next: function () {
|
|
220
|
-
if (o && i >= o.length)
|
|
221
|
-
o = void 0;
|
|
222
|
-
return { value: o && o[i++], done: !o };
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
226
|
-
}
|
|
227
|
-
function __read(o, n) {
|
|
228
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
229
|
-
if (!m)
|
|
230
|
-
return o;
|
|
231
|
-
var i = m.call(o), r, ar = [], e;
|
|
232
|
-
try {
|
|
233
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
234
|
-
ar.push(r.value);
|
|
235
|
-
}
|
|
236
|
-
catch (error) {
|
|
237
|
-
e = { error: error };
|
|
238
|
-
}
|
|
239
|
-
finally {
|
|
240
|
-
try {
|
|
241
|
-
if (r && !r.done && (m = i["return"]))
|
|
242
|
-
m.call(i);
|
|
243
|
-
}
|
|
244
|
-
finally {
|
|
245
|
-
if (e)
|
|
246
|
-
throw e.error;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return ar;
|
|
250
|
-
}
|
|
251
|
-
/** @deprecated */
|
|
252
|
-
function __spread() {
|
|
253
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
254
|
-
ar = ar.concat(__read(arguments[i]));
|
|
255
|
-
return ar;
|
|
256
|
-
}
|
|
257
|
-
/** @deprecated */
|
|
258
|
-
function __spreadArrays() {
|
|
259
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
260
|
-
s += arguments[i].length;
|
|
261
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
262
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
263
|
-
r[k] = a[j];
|
|
264
|
-
return r;
|
|
265
|
-
}
|
|
266
|
-
function __spreadArray(to, from, pack) {
|
|
267
|
-
if (pack || arguments.length === 2)
|
|
268
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
269
|
-
if (ar || !(i in from)) {
|
|
270
|
-
if (!ar)
|
|
271
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
272
|
-
ar[i] = from[i];
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
276
|
-
}
|
|
277
|
-
function __await(v) {
|
|
278
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
279
|
-
}
|
|
280
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
281
|
-
if (!Symbol.asyncIterator)
|
|
282
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
283
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
284
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
285
|
-
function verb(n) { if (g[n])
|
|
286
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
287
|
-
function resume(n, v) { try {
|
|
288
|
-
step(g[n](v));
|
|
289
|
-
}
|
|
290
|
-
catch (e) {
|
|
291
|
-
settle(q[0][3], e);
|
|
292
|
-
} }
|
|
293
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
294
|
-
function fulfill(value) { resume("next", value); }
|
|
295
|
-
function reject(value) { resume("throw", value); }
|
|
296
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
297
|
-
resume(q[0][0], q[0][1]); }
|
|
298
|
-
}
|
|
299
|
-
function __asyncDelegator(o) {
|
|
300
|
-
var i, p;
|
|
301
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
302
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
303
|
-
}
|
|
304
|
-
function __asyncValues(o) {
|
|
305
|
-
if (!Symbol.asyncIterator)
|
|
306
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
307
|
-
var m = o[Symbol.asyncIterator], i;
|
|
308
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
309
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
310
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
311
|
-
}
|
|
312
|
-
function __makeTemplateObject(cooked, raw) {
|
|
313
|
-
if (Object.defineProperty) {
|
|
314
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
cooked.raw = raw;
|
|
318
|
-
}
|
|
319
|
-
return cooked;
|
|
320
|
-
}
|
|
321
|
-
;
|
|
322
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
323
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
324
|
-
}) : function (o, v) {
|
|
325
|
-
o["default"] = v;
|
|
326
|
-
};
|
|
327
|
-
function __importStar(mod) {
|
|
328
|
-
if (mod && mod.__esModule)
|
|
329
|
-
return mod;
|
|
330
|
-
var result = {};
|
|
331
|
-
if (mod != null)
|
|
332
|
-
for (var k in mod)
|
|
333
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
334
|
-
__createBinding(result, mod, k);
|
|
335
|
-
__setModuleDefault(result, mod);
|
|
336
|
-
return result;
|
|
337
|
-
}
|
|
338
|
-
function __importDefault(mod) {
|
|
339
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
340
|
-
}
|
|
341
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
342
|
-
if (kind === "a" && !f)
|
|
343
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
344
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
345
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
346
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
347
|
-
}
|
|
348
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
349
|
-
if (kind === "m")
|
|
350
|
-
throw new TypeError("Private method is not writable");
|
|
351
|
-
if (kind === "a" && !f)
|
|
352
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
353
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
354
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
355
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
var SkyAgGridAdapterService = /** @class */ (function () {
|
|
359
|
-
function SkyAgGridAdapterService(skyAdapterService) {
|
|
360
|
-
this.skyAdapterService = skyAdapterService;
|
|
361
|
-
}
|
|
362
|
-
SkyAgGridAdapterService.prototype.getElementOrParentWithClass = function (element, className) {
|
|
363
|
-
if (element && element.classList.contains(className)) {
|
|
364
|
-
return element;
|
|
365
|
-
}
|
|
366
|
-
else if (element.parentElement) {
|
|
367
|
-
return this.getElementOrParentWithClass(element.parentElement, className);
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
SkyAgGridAdapterService.prototype.setFocusedElementById = function (parentEl, selector) {
|
|
371
|
-
var element = parentEl.querySelector("#" + selector);
|
|
372
|
-
/* istanbul ignore else */
|
|
373
|
-
if (element) {
|
|
374
|
-
element.focus();
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
SkyAgGridAdapterService.prototype.getFocusedElement = function () {
|
|
378
|
-
return document.activeElement;
|
|
379
|
-
};
|
|
380
|
-
SkyAgGridAdapterService.prototype.getNextFocusableElement = function (currentEl, parentEl, moveFocusLeft) {
|
|
381
|
-
if (parentEl) {
|
|
382
|
-
var focusableChildren = this.skyAdapterService.getFocusableChildren(parentEl);
|
|
383
|
-
var currentElementIndex = focusableChildren.indexOf(currentEl);
|
|
384
|
-
var nextIndex = moveFocusLeft
|
|
385
|
-
? currentElementIndex - 1
|
|
386
|
-
: currentElementIndex + 1;
|
|
387
|
-
if ((!moveFocusLeft && focusableChildren.length >= nextIndex) ||
|
|
388
|
-
(moveFocusLeft && nextIndex >= 0)) {
|
|
389
|
-
return focusableChildren[nextIndex];
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
SkyAgGridAdapterService.prototype.focusOnFocusableChildren = function (element) {
|
|
394
|
-
var focusableChildren = this.skyAdapterService.getFocusableChildren(element);
|
|
395
|
-
if (focusableChildren.length) {
|
|
396
|
-
focusableChildren[0].focus();
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
return SkyAgGridAdapterService;
|
|
400
|
-
}());
|
|
401
|
-
SkyAgGridAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridAdapterService, deps: [{ token: i1__namespace.SkyCoreAdapterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
402
|
-
SkyAgGridAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridAdapterService, providedIn: 'root' });
|
|
403
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridAdapterService, decorators: [{
|
|
404
|
-
type: i0.Injectable,
|
|
405
|
-
args: [{
|
|
406
|
-
providedIn: 'root',
|
|
407
|
-
}]
|
|
408
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.SkyCoreAdapterService }]; } });
|
|
409
|
-
|
|
410
|
-
var idIndex = 0;
|
|
411
|
-
/**
|
|
412
|
-
* @internal
|
|
413
|
-
*/
|
|
414
|
-
var SkyAgGridWrapperComponent = /** @class */ (function () {
|
|
415
|
-
function SkyAgGridWrapperComponent(adapterService, changeDetector, elementRef) {
|
|
416
|
-
this.adapterService = adapterService;
|
|
417
|
-
this.changeDetector = changeDetector;
|
|
418
|
-
this.elementRef = elementRef;
|
|
419
|
-
this._viewkeeperClasses = [];
|
|
420
|
-
idIndex++;
|
|
421
|
-
this.afterAnchorId = 'sky-ag-grid-nav-anchor-after-' + idIndex;
|
|
422
|
-
this.beforeAnchorId = 'sky-ag-grid-nav-anchor-before-' + idIndex;
|
|
423
|
-
this.gridId = 'sky-ag-grid-' + idIndex;
|
|
424
|
-
}
|
|
425
|
-
Object.defineProperty(SkyAgGridWrapperComponent.prototype, "viewkeeperClasses", {
|
|
426
|
-
get: function () {
|
|
427
|
-
return this._viewkeeperClasses;
|
|
428
|
-
},
|
|
429
|
-
set: function (value) {
|
|
430
|
-
this._viewkeeperClasses = value;
|
|
431
|
-
this.changeDetector.markForCheck();
|
|
432
|
-
},
|
|
433
|
-
enumerable: false,
|
|
434
|
-
configurable: true
|
|
435
|
-
});
|
|
436
|
-
SkyAgGridWrapperComponent.prototype.ngAfterContentInit = function () {
|
|
437
|
-
if (this.agGrid.gridOptions &&
|
|
438
|
-
this.agGrid.gridOptions.domLayout === 'autoHeight') {
|
|
439
|
-
this.viewkeeperClasses.push('.ag-header');
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
SkyAgGridWrapperComponent.prototype.onGridKeydown = function (event) {
|
|
443
|
-
if (this.agGrid && !this.isInEditMode && event.key === 'Tab') {
|
|
444
|
-
var idToFocus = event.shiftKey
|
|
445
|
-
? this.beforeAnchorId
|
|
446
|
-
: this.afterAnchorId;
|
|
447
|
-
this.adapterService.setFocusedElementById(this.elementRef.nativeElement, idToFocus);
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
SkyAgGridWrapperComponent.prototype.onAnchorFocus = function (event) {
|
|
451
|
-
var gridId = this.gridId;
|
|
452
|
-
var relatedTarget = event.relatedTarget;
|
|
453
|
-
var previousFocusedId = relatedTarget && relatedTarget.id;
|
|
454
|
-
var previousWasCell = relatedTarget &&
|
|
455
|
-
!!this.adapterService.getElementOrParentWithClass(relatedTarget, 'ag-cell');
|
|
456
|
-
if (previousFocusedId !== gridId && !previousWasCell) {
|
|
457
|
-
var columns = this.agGrid.columnApi.getAllDisplayedColumns();
|
|
458
|
-
var firstColumn = columns && columns[0];
|
|
459
|
-
var rowIndex = this.agGrid.api.getFirstDisplayedRow();
|
|
460
|
-
if (firstColumn && rowIndex >= 0) {
|
|
461
|
-
this.agGrid.api.setFocusedCell(rowIndex, firstColumn);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
Object.defineProperty(SkyAgGridWrapperComponent.prototype, "isInEditMode", {
|
|
466
|
-
get: function () {
|
|
467
|
-
/* Sanity check */
|
|
468
|
-
/* istanbul ignore else */
|
|
469
|
-
if (this.agGrid && this.agGrid.api) {
|
|
470
|
-
var primaryGridEditing = this.agGrid.api.getEditingCells().length > 0;
|
|
471
|
-
if (primaryGridEditing) {
|
|
472
|
-
return true;
|
|
473
|
-
}
|
|
474
|
-
else {
|
|
475
|
-
var innerEditing_1 = false;
|
|
476
|
-
this.agGrid.api.forEachDetailGridInfo(function (detailGrid) {
|
|
477
|
-
if (detailGrid.api.getEditingCells().length > 0) {
|
|
478
|
-
innerEditing_1 = true;
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
return innerEditing_1;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
return false;
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
enumerable: false,
|
|
489
|
-
configurable: true
|
|
490
|
-
});
|
|
491
|
-
return SkyAgGridWrapperComponent;
|
|
492
|
-
}());
|
|
493
|
-
SkyAgGridWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridWrapperComponent, deps: [{ token: SkyAgGridAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
494
|
-
SkyAgGridWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridWrapperComponent, selector: "sky-ag-grid-wrapper", queries: [{ propertyName: "agGrid", first: true, predicate: agGridAngular.AgGridAngular, descendants: true, static: true }], ngImport: i0__namespace, template: "<span\n class=\"nav-anchor\"\n tabindex=\"0\"\n [id]=\"beforeAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n<div\n class=\"sky-ag-grid\"\n tabindex=\"0\"\n [id]=\"gridId\"\n [skyViewkeeper]=\"viewkeeperClasses\"\n (keydown)=\"onGridKeydown($event)\"\n>\n <ng-content></ng-content>\n</div>\n<span\n tabindex=\"0\"\n class=\"nav-anchor\"\n [id]=\"afterAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n", directives: [{ type: i1__namespace.λ3, selector: "[skyViewkeeper]", inputs: ["skyViewkeeper"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
495
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridWrapperComponent, decorators: [{
|
|
496
|
-
type: i0.Component,
|
|
497
|
-
args: [{
|
|
498
|
-
selector: 'sky-ag-grid-wrapper',
|
|
499
|
-
template: "<span\n class=\"nav-anchor\"\n tabindex=\"0\"\n [id]=\"beforeAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n<div\n class=\"sky-ag-grid\"\n tabindex=\"0\"\n [id]=\"gridId\"\n [skyViewkeeper]=\"viewkeeperClasses\"\n (keydown)=\"onGridKeydown($event)\"\n>\n <ng-content></ng-content>\n</div>\n<span\n tabindex=\"0\"\n class=\"nav-anchor\"\n [id]=\"afterAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n",
|
|
500
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
501
|
-
}]
|
|
502
|
-
}], ctorParameters: function () { return [{ type: SkyAgGridAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }]; }, propDecorators: { agGrid: [{
|
|
503
|
-
type: i0.ContentChild,
|
|
504
|
-
args: [agGridAngular.AgGridAngular, {
|
|
505
|
-
static: true,
|
|
506
|
-
}]
|
|
507
|
-
}] } });
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* @internal
|
|
511
|
-
*/
|
|
512
|
-
var SkyAgGridDataManagerAdapterDirective = /** @class */ (function () {
|
|
513
|
-
function SkyAgGridDataManagerAdapterDirective(changeDetector, dataManagerSvc) {
|
|
514
|
-
this.changeDetector = changeDetector;
|
|
515
|
-
this.dataManagerSvc = dataManagerSvc;
|
|
516
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
517
|
-
}
|
|
518
|
-
SkyAgGridDataManagerAdapterDirective.prototype.ngAfterContentInit = function () {
|
|
519
|
-
var _this = this;
|
|
520
|
-
this.dataManagerSvc.setViewkeeperClasses(this.viewId, ['.ag-header']);
|
|
521
|
-
this.viewConfig = this.dataManagerSvc.getViewById(this.viewId);
|
|
522
|
-
this.checkForAgGrid();
|
|
523
|
-
this.checkForSkyAgGridWrapper();
|
|
524
|
-
this.agGridList.changes
|
|
525
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
526
|
-
.subscribe(function () { return _this.checkForAgGrid(); });
|
|
527
|
-
this.skyAgGridWrapperList.changes
|
|
528
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
529
|
-
.subscribe(function () { return _this.checkForSkyAgGridWrapper(); });
|
|
530
|
-
};
|
|
531
|
-
SkyAgGridDataManagerAdapterDirective.prototype.ngOnDestroy = function () {
|
|
532
|
-
this.ngUnsubscribe.next();
|
|
533
|
-
this.ngUnsubscribe.complete();
|
|
534
|
-
};
|
|
535
|
-
SkyAgGridDataManagerAdapterDirective.prototype.checkForAgGrid = function () {
|
|
536
|
-
var agGridCount = this.agGridList.length;
|
|
537
|
-
/* istanbul ignore else */
|
|
538
|
-
if (agGridCount === 0) {
|
|
539
|
-
this.unregisterAgGrid();
|
|
540
|
-
}
|
|
541
|
-
else if (this.agGridList.first !== this.currentAgGrid) {
|
|
542
|
-
this.registerAgGrid();
|
|
543
|
-
}
|
|
544
|
-
if (agGridCount > 1) {
|
|
545
|
-
console.warn('More than one ag-grid child component was found. Using the first ag-Grid.');
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
SkyAgGridDataManagerAdapterDirective.prototype.checkForSkyAgGridWrapper = function () {
|
|
549
|
-
var skyAgGridWrapperCount = this.skyAgGridWrapperList.length;
|
|
550
|
-
/* istanbul ignore else */
|
|
551
|
-
if (skyAgGridWrapperCount === 0) {
|
|
552
|
-
this.unregisterSkyAgGridWrapper();
|
|
553
|
-
}
|
|
554
|
-
else if (this.skyAgGridWrapperList.first !== this.currentSkyAgGridWrapper) {
|
|
555
|
-
this.registerSkyAgGridWrapper();
|
|
556
|
-
}
|
|
557
|
-
if (skyAgGridWrapperCount > 1) {
|
|
558
|
-
console.warn('More than one ag-grid child component was found. Using the first ag-Grid.');
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
SkyAgGridDataManagerAdapterDirective.prototype.unregisterAgGrid = function () {
|
|
562
|
-
this.currentAgGrid = undefined;
|
|
563
|
-
/* istanbul ignore if */
|
|
564
|
-
if (this.dataStateSub) {
|
|
565
|
-
this.dataStateSub.unsubscribe();
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
SkyAgGridDataManagerAdapterDirective.prototype.unregisterSkyAgGridWrapper = function () {
|
|
569
|
-
this.currentSkyAgGridWrapper = undefined;
|
|
570
|
-
};
|
|
571
|
-
SkyAgGridDataManagerAdapterDirective.prototype.registerSkyAgGridWrapper = function () {
|
|
572
|
-
var _this = this;
|
|
573
|
-
this.unregisterSkyAgGridWrapper();
|
|
574
|
-
this.currentSkyAgGridWrapper = this.skyAgGridWrapperList.first;
|
|
575
|
-
setTimeout(function () {
|
|
576
|
-
if (_this.currentSkyAgGridWrapper) {
|
|
577
|
-
_this.currentSkyAgGridWrapper.viewkeeperClasses = [];
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
};
|
|
581
|
-
SkyAgGridDataManagerAdapterDirective.prototype.registerAgGrid = function () {
|
|
582
|
-
var _this = this;
|
|
583
|
-
this.unregisterAgGrid();
|
|
584
|
-
var agGrid = this.agGridList.first;
|
|
585
|
-
this.currentAgGrid = agGrid;
|
|
586
|
-
agGrid.gridReady.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
587
|
-
_this.viewConfig.onSelectAllClick = _this.selectAll.bind(_this);
|
|
588
|
-
_this.viewConfig.onClearAllClick = _this.clearAll.bind(_this);
|
|
589
|
-
_this.dataManagerSvc.updateViewConfig(_this.viewConfig);
|
|
590
|
-
_this.dataStateSub = _this.dataManagerSvc
|
|
591
|
-
.getDataStateUpdates(_this.viewConfig.id)
|
|
592
|
-
.pipe(operators.takeUntil(_this.ngUnsubscribe))
|
|
593
|
-
.subscribe(function (dataState) {
|
|
594
|
-
_this.currentDataState = dataState;
|
|
595
|
-
_this.displayColumns(dataState);
|
|
596
|
-
});
|
|
597
|
-
agGrid.api.sizeColumnsToFit();
|
|
598
|
-
});
|
|
599
|
-
agGrid.columnMoved
|
|
600
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.filter(function (event) { return ![
|
|
601
|
-
'gridInitializing',
|
|
602
|
-
'uiColumnResized',
|
|
603
|
-
'uiColumnDragged',
|
|
604
|
-
'api',
|
|
605
|
-
].includes(event.source); }))
|
|
606
|
-
.subscribe(function (value) {
|
|
607
|
-
_this.updateColumnsInCurrentDataState(value.columnApi);
|
|
608
|
-
});
|
|
609
|
-
var currentColumns;
|
|
610
|
-
agGrid.dragStarted
|
|
611
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
612
|
-
.subscribe(function (value) {
|
|
613
|
-
currentColumns = _this.getColumnOrder(value.columnApi);
|
|
614
|
-
});
|
|
615
|
-
agGrid.dragStopped
|
|
616
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
617
|
-
.subscribe(function (value) {
|
|
618
|
-
var newColumns = _this.getColumnOrder(value.columnApi);
|
|
619
|
-
var hasChanged = currentColumns.findIndex(function (colId, i) { return colId !== newColumns[i]; });
|
|
620
|
-
if (hasChanged > -1) {
|
|
621
|
-
_this.updateColumnsInCurrentDataState(value.columnApi);
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
agGrid.rowSelected
|
|
625
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
626
|
-
.subscribe(function (event) {
|
|
627
|
-
var row = event.node;
|
|
628
|
-
var selectedIds = _this.currentDataState.selectedIds || [];
|
|
629
|
-
var rowIndex = selectedIds.indexOf(row.data.id);
|
|
630
|
-
if (row.isSelected() && rowIndex === -1) {
|
|
631
|
-
selectedIds.push(row.data.id);
|
|
632
|
-
}
|
|
633
|
-
else if (!row.isSelected() && rowIndex !== -1) {
|
|
634
|
-
selectedIds.splice(rowIndex, 1);
|
|
635
|
-
}
|
|
636
|
-
_this.currentDataState.selectedIds = selectedIds;
|
|
637
|
-
_this.dataManagerSvc.updateDataState(_this.currentDataState, _this.viewConfig.id);
|
|
638
|
-
_this.changeDetector.markForCheck();
|
|
639
|
-
});
|
|
640
|
-
agGrid.sortChanged.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
641
|
-
var gridColumnStates = agGrid.columnApi.getColumnState();
|
|
642
|
-
var sortOption;
|
|
643
|
-
/* istanbul ignore else */
|
|
644
|
-
if (gridColumnStates.length) {
|
|
645
|
-
var activeSortColumnState_1 = gridColumnStates.find(function (aGridColumnState) { return aGridColumnState.sortIndex === 0; });
|
|
646
|
-
var dataManagerConfig = _this.dataManagerSvc.getCurrentDataManagerConfig();
|
|
647
|
-
/* istanbul ignore else */
|
|
648
|
-
if (dataManagerConfig.sortOptions && activeSortColumnState_1) {
|
|
649
|
-
sortOption = dataManagerConfig.sortOptions.find(function (option) {
|
|
650
|
-
return (option.propertyName === activeSortColumnState_1.colId &&
|
|
651
|
-
option.descending === (activeSortColumnState_1.sort === 'desc'));
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
else {
|
|
655
|
-
sortOption = undefined;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
_this.currentDataState.activeSortOption = sortOption;
|
|
659
|
-
_this.dataManagerSvc.updateDataState(_this.currentDataState, _this.viewConfig.id);
|
|
660
|
-
});
|
|
661
|
-
};
|
|
662
|
-
SkyAgGridDataManagerAdapterDirective.prototype.updateColumnsInCurrentDataState = function (columnApi) {
|
|
663
|
-
var columnOrder = this.getColumnOrder(columnApi);
|
|
664
|
-
var viewState = this.currentDataState.getViewStateById(this.viewConfig.id);
|
|
665
|
-
viewState.displayedColumnIds = columnOrder;
|
|
666
|
-
this.dataManagerSvc.updateDataState(this.currentDataState.addOrUpdateView(this.viewConfig.id, viewState), this.viewConfig.id);
|
|
667
|
-
};
|
|
668
|
-
SkyAgGridDataManagerAdapterDirective.prototype.getColumnOrder = function (columnApi) {
|
|
669
|
-
return columnApi
|
|
670
|
-
.getAllDisplayedVirtualColumns()
|
|
671
|
-
.map(function (col) { return col.getColDef().colId; });
|
|
672
|
-
};
|
|
673
|
-
SkyAgGridDataManagerAdapterDirective.prototype.displayColumns = function (dataState) {
|
|
674
|
-
var e_1, _a;
|
|
675
|
-
var agGrid = this.currentAgGrid;
|
|
676
|
-
var viewState = dataState.getViewStateById(this.viewConfig.id);
|
|
677
|
-
var displayedColumnIds = [];
|
|
678
|
-
/*istanbul ignore else*/
|
|
679
|
-
if (viewState.displayedColumnIds) {
|
|
680
|
-
displayedColumnIds = viewState.displayedColumnIds;
|
|
681
|
-
}
|
|
682
|
-
var columns = agGrid.columnApi.getAllColumns();
|
|
683
|
-
try {
|
|
684
|
-
for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
|
|
685
|
-
var column = columns_1_1.value;
|
|
686
|
-
var colId = column.getColId();
|
|
687
|
-
var colIndex = displayedColumnIds.indexOf(colId);
|
|
688
|
-
agGrid.columnApi.setColumnVisible(colId, colIndex !== -1);
|
|
689
|
-
agGrid.columnApi.moveColumn(colId, colIndex);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
693
|
-
finally {
|
|
694
|
-
try {
|
|
695
|
-
if (columns_1_1 && !columns_1_1.done && (_a = columns_1.return)) _a.call(columns_1);
|
|
696
|
-
}
|
|
697
|
-
finally { if (e_1) throw e_1.error; }
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
SkyAgGridDataManagerAdapterDirective.prototype.selectAll = function () {
|
|
701
|
-
var agGrid = this.agGridList.first;
|
|
702
|
-
agGrid.api.selectAll();
|
|
703
|
-
};
|
|
704
|
-
SkyAgGridDataManagerAdapterDirective.prototype.clearAll = function () {
|
|
705
|
-
var agGrid = this.agGridList.first;
|
|
706
|
-
agGrid.api.deselectAll();
|
|
707
|
-
};
|
|
708
|
-
return SkyAgGridDataManagerAdapterDirective;
|
|
709
|
-
}());
|
|
710
|
-
SkyAgGridDataManagerAdapterDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridDataManagerAdapterDirective, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$1.SkyDataManagerService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
711
|
-
SkyAgGridDataManagerAdapterDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridDataManagerAdapterDirective, selector: "[skyAgGridDataManagerAdapter]", inputs: { viewId: "viewId" }, queries: [{ propertyName: "agGridList", predicate: agGridAngular.AgGridAngular, descendants: true }, { propertyName: "skyAgGridWrapperList", predicate: SkyAgGridWrapperComponent, descendants: true }], ngImport: i0__namespace });
|
|
712
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridDataManagerAdapterDirective, decorators: [{
|
|
713
|
-
type: i0.Directive,
|
|
714
|
-
args: [{
|
|
715
|
-
selector: '[skyAgGridDataManagerAdapter]',
|
|
716
|
-
}]
|
|
717
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$1.SkyDataManagerService }]; }, propDecorators: { viewId: [{
|
|
718
|
-
type: i0.Input
|
|
719
|
-
}], agGridList: [{
|
|
720
|
-
type: i0.ContentChildren,
|
|
721
|
-
args: [agGridAngular.AgGridAngular, { descendants: true }]
|
|
722
|
-
}], skyAgGridWrapperList: [{
|
|
723
|
-
type: i0.ContentChildren,
|
|
724
|
-
args: [SkyAgGridWrapperComponent, { descendants: true }]
|
|
725
|
-
}] } });
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* Component for rendering the inline delete template in the overlay.
|
|
729
|
-
* @internal
|
|
730
|
-
*/
|
|
731
|
-
var SkyAgGridRowDeleteComponent = /** @class */ (function () {
|
|
732
|
-
function SkyAgGridRowDeleteComponent() {
|
|
733
|
-
}
|
|
734
|
-
return SkyAgGridRowDeleteComponent;
|
|
735
|
-
}());
|
|
736
|
-
SkyAgGridRowDeleteComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridRowDeleteComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
737
|
-
SkyAgGridRowDeleteComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridRowDeleteComponent, selector: "ng-component", viewQueries: [{ propertyName: "inlineDeleteTemplateRef", first: true, predicate: ["inlineDeleteTemplateRef"], descendants: true, read: i0.TemplateRef }, { propertyName: "inlineDeleteRefs", predicate: ["inlineDeleteRef"], descendants: true }], ngImport: i0__namespace, template: "\n <ng-template\n let-row\n let-tableWidth=\"tableWidth()\"\n let-getRowDeleteItem=\"getRowDeleteItem\"\n let-cancelRowDelete=\"cancelRowDelete\"\n let-confirmRowDelete=\"confirmRowDelete\"\n #inlineDeleteTemplateRef\n >\n <div\n class=\"sky-ag-grid-row-delete\"\n [id]=\"'row-delete-ref-' + row.id\"\n [ngStyle]=\"{\n height: row.rowHeight + 'px',\n position: 'fixed',\n width: tableWidth + 'px'\n }\"\n #inlineDeleteRef\n >\n <sky-inline-delete\n [pending]=\"getRowDeleteItem(row).pending\"\n (cancelTriggered)=\"cancelRowDelete(row)\"\n (deleteTriggered)=\"confirmRowDelete(row)\"\n ></sky-inline-delete>\n </div>\n </ng-template>\n ", isInline: true, components: [{ type: i1__namespace$2.λ8, selector: "sky-inline-delete", inputs: ["pending"], outputs: ["cancelTriggered", "deleteTriggered"] }], directives: [{ type: i3__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
738
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridRowDeleteComponent, decorators: [{
|
|
739
|
-
type: i0.Component,
|
|
740
|
-
args: [{
|
|
741
|
-
template: "\n <ng-template\n let-row\n let-tableWidth=\"tableWidth()\"\n let-getRowDeleteItem=\"getRowDeleteItem\"\n let-cancelRowDelete=\"cancelRowDelete\"\n let-confirmRowDelete=\"confirmRowDelete\"\n #inlineDeleteTemplateRef\n >\n <div\n class=\"sky-ag-grid-row-delete\"\n [id]=\"'row-delete-ref-' + row.id\"\n [ngStyle]=\"{\n height: row.rowHeight + 'px',\n position: 'fixed',\n width: tableWidth + 'px'\n }\"\n #inlineDeleteRef\n >\n <sky-inline-delete\n [pending]=\"getRowDeleteItem(row).pending\"\n (cancelTriggered)=\"cancelRowDelete(row)\"\n (deleteTriggered)=\"confirmRowDelete(row)\"\n ></sky-inline-delete>\n </div>\n </ng-template>\n ",
|
|
742
|
-
}]
|
|
743
|
-
}], propDecorators: { inlineDeleteRefs: [{
|
|
744
|
-
type: i0.ViewChildren,
|
|
745
|
-
args: ['inlineDeleteRef']
|
|
746
|
-
}], inlineDeleteTemplateRef: [{
|
|
747
|
-
type: i0.ViewChild,
|
|
748
|
-
args: ['inlineDeleteTemplateRef', { read: i0.TemplateRef }]
|
|
749
|
-
}] } });
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* @internal
|
|
753
|
-
*/
|
|
754
|
-
var SkyAgGridRowDeleteDirective = /** @class */ (function () {
|
|
755
|
-
function SkyAgGridRowDeleteDirective(affixService, changeDetector, elementRef, resolver, overlayService, viewContainerRef) {
|
|
756
|
-
this.affixService = affixService;
|
|
757
|
-
this.changeDetector = changeDetector;
|
|
758
|
-
this.elementRef = elementRef;
|
|
759
|
-
this.resolver = resolver;
|
|
760
|
-
this.overlayService = overlayService;
|
|
761
|
-
this.viewContainerRef = viewContainerRef;
|
|
762
|
-
/**
|
|
763
|
-
* Emits a `SkyAgGridRowDeleteCancelArgs` object when a row's inline delete is cancelled.
|
|
764
|
-
*/
|
|
765
|
-
this.rowDeleteCancel = new i0.EventEmitter();
|
|
766
|
-
/**
|
|
767
|
-
* Emits a `SkyAgGridRowDeleteConfirmArgs` object when a row's inline delete is confirmed.
|
|
768
|
-
*/
|
|
769
|
-
this.rowDeleteConfirm = new i0.EventEmitter();
|
|
770
|
-
/**
|
|
771
|
-
* Emits when the list of ids of the data in the rows where inline deletes are shown changes.
|
|
772
|
-
*/
|
|
773
|
-
this.rowDeleteIdsChange = new i0.EventEmitter();
|
|
774
|
-
this.rowDeleteConfigs = [];
|
|
775
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
776
|
-
this.rowDeleteContents = {};
|
|
777
|
-
}
|
|
778
|
-
Object.defineProperty(SkyAgGridRowDeleteDirective.prototype, "rowDeleteIds", {
|
|
779
|
-
get: function () {
|
|
780
|
-
return this._rowDeleteIds;
|
|
781
|
-
},
|
|
782
|
-
/**
|
|
783
|
-
* Specifies the ids of the data in the rows on which inline delete's should be shown.
|
|
784
|
-
*/
|
|
785
|
-
set: function (value) {
|
|
786
|
-
var e_1, _b, e_2, _c, e_3, _d;
|
|
787
|
-
var _this = this;
|
|
788
|
-
this._rowDeleteIds = value;
|
|
789
|
-
if (!value) {
|
|
790
|
-
try {
|
|
791
|
-
for (var _e = __values(this.rowDeleteConfigs), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
792
|
-
var config = _f.value;
|
|
793
|
-
this.destroyRowDelete(config.id);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
797
|
-
finally {
|
|
798
|
-
try {
|
|
799
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
800
|
-
}
|
|
801
|
-
finally { if (e_1) throw e_1.error; }
|
|
802
|
-
}
|
|
803
|
-
this.changeDetector.markForCheck();
|
|
804
|
-
return;
|
|
805
|
-
}
|
|
806
|
-
var _loop_1 = function (id) {
|
|
807
|
-
var existingConfig = this_1.rowDeleteConfigs.find(function (config) { return config.id === id; });
|
|
808
|
-
if (existingConfig) {
|
|
809
|
-
existingConfig.pending = false;
|
|
810
|
-
}
|
|
811
|
-
else {
|
|
812
|
-
this_1.rowDeleteConfigs.push({
|
|
813
|
-
id: id,
|
|
814
|
-
pending: false,
|
|
815
|
-
});
|
|
816
|
-
var overlay_1 = this_1.overlayService.create({
|
|
817
|
-
enableScroll: true,
|
|
818
|
-
showBackdrop: false,
|
|
819
|
-
closeOnNavigation: true,
|
|
820
|
-
enableClose: false,
|
|
821
|
-
enablePointerEvents: true,
|
|
822
|
-
});
|
|
823
|
-
overlay_1.attachTemplate(this_1.rowDeleteComponent.inlineDeleteTemplateRef, {
|
|
824
|
-
$implicit: this_1.agGrid.api.getRowNode(id),
|
|
825
|
-
tableWidth: function () {
|
|
826
|
-
return _this.tableWidth;
|
|
827
|
-
},
|
|
828
|
-
getRowDeleteItem: function (row) { return _this.getRowDeleteItem(row); },
|
|
829
|
-
cancelRowDelete: function (row) { return _this.cancelRowDelete(row); },
|
|
830
|
-
confirmRowDelete: function (row) { return _this.confirmRowDelete(row); },
|
|
831
|
-
});
|
|
832
|
-
/**
|
|
833
|
-
* We are manually setting the z-index here because overlays will always be on top of
|
|
834
|
-
* the omnibar. This manual setting is 2 less than the omnibar's z-index of 1000 and one less than
|
|
835
|
-
* the header row's viewkeeper which is 999. We discussed changing the overlay service to allow for this
|
|
836
|
-
* but decided against that change at this time due to its niche nature.
|
|
837
|
-
*/
|
|
838
|
-
overlay_1.componentRef.instance.zIndex = '998';
|
|
839
|
-
setTimeout(function () {
|
|
840
|
-
var inlineDeleteRef = _this.rowDeleteComponent.inlineDeleteRefs
|
|
841
|
-
.toArray()
|
|
842
|
-
.find(function (elRef) {
|
|
843
|
-
return elRef.nativeElement.id === 'row-delete-ref-' + id;
|
|
844
|
-
});
|
|
845
|
-
var affixer = _this.affixService.createAffixer(inlineDeleteRef);
|
|
846
|
-
_this.affixToRow(affixer, id);
|
|
847
|
-
_this.rowDeleteContents[id] = {
|
|
848
|
-
affixer: affixer,
|
|
849
|
-
overlay: overlay_1,
|
|
850
|
-
};
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
};
|
|
854
|
-
var this_1 = this;
|
|
855
|
-
try {
|
|
856
|
-
for (var value_1 = __values(value), value_1_1 = value_1.next(); !value_1_1.done; value_1_1 = value_1.next()) {
|
|
857
|
-
var id = value_1_1.value;
|
|
858
|
-
_loop_1(id);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
862
|
-
finally {
|
|
863
|
-
try {
|
|
864
|
-
if (value_1_1 && !value_1_1.done && (_c = value_1.return)) _c.call(value_1);
|
|
865
|
-
}
|
|
866
|
-
finally { if (e_2) throw e_2.error; }
|
|
867
|
-
}
|
|
868
|
-
try {
|
|
869
|
-
for (var _g = __values(this.rowDeleteConfigs), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
870
|
-
var config = _h.value;
|
|
871
|
-
if (value.indexOf(config.id) < 0) {
|
|
872
|
-
this.destroyRowDelete(config.id);
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
877
|
-
finally {
|
|
878
|
-
try {
|
|
879
|
-
if (_h && !_h.done && (_d = _g.return)) _d.call(_g);
|
|
880
|
-
}
|
|
881
|
-
finally { if (e_3) throw e_3.error; }
|
|
882
|
-
}
|
|
883
|
-
this.changeDetector.markForCheck();
|
|
884
|
-
},
|
|
885
|
-
enumerable: false,
|
|
886
|
-
configurable: true
|
|
887
|
-
});
|
|
888
|
-
Object.defineProperty(SkyAgGridRowDeleteDirective.prototype, "tableWidth", {
|
|
889
|
-
get: function () {
|
|
890
|
-
return this.elementRef.nativeElement.querySelectorAll('.sky-ag-grid')[0]
|
|
891
|
-
.offsetWidth;
|
|
892
|
-
},
|
|
893
|
-
enumerable: false,
|
|
894
|
-
configurable: true
|
|
895
|
-
});
|
|
896
|
-
SkyAgGridRowDeleteDirective.prototype.ngAfterContentInit = function () {
|
|
897
|
-
var _this = this;
|
|
898
|
-
var factory = this.resolver.resolveComponentFactory(SkyAgGridRowDeleteComponent);
|
|
899
|
-
this.rowDeleteComponent =
|
|
900
|
-
this.viewContainerRef.createComponent(factory).instance;
|
|
901
|
-
this.agGrid.rowDataChanged
|
|
902
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
903
|
-
.subscribe(function () {
|
|
904
|
-
_this.updateRowDeleteStates();
|
|
905
|
-
});
|
|
906
|
-
this.agGrid.rowDataUpdated
|
|
907
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
908
|
-
.subscribe(function () {
|
|
909
|
-
_this.updateRowDeleteStates();
|
|
910
|
-
});
|
|
911
|
-
this.agGrid.sortChanged
|
|
912
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
913
|
-
.subscribe(function () {
|
|
914
|
-
_this.updateRowDeleteStates();
|
|
915
|
-
});
|
|
916
|
-
this.agGrid.filterChanged
|
|
917
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
918
|
-
.subscribe(function () {
|
|
919
|
-
_this.updateRowDeleteStates();
|
|
920
|
-
});
|
|
921
|
-
this.agGrid.getRowNodeId = function (data) {
|
|
922
|
-
return data.id.toString();
|
|
923
|
-
};
|
|
924
|
-
};
|
|
925
|
-
SkyAgGridRowDeleteDirective.prototype.ngOnDestroy = function () {
|
|
926
|
-
var _this = this;
|
|
927
|
-
this.ngUnsubscribe.next();
|
|
928
|
-
this.ngUnsubscribe.complete();
|
|
929
|
-
Object.keys(this.rowDeleteContents).forEach(function (id) {
|
|
930
|
-
_this.destroyRowDelete(id);
|
|
931
|
-
});
|
|
932
|
-
};
|
|
933
|
-
SkyAgGridRowDeleteDirective.prototype.cancelRowDelete = function (row) {
|
|
934
|
-
this.rowDeleteConfigs = this.rowDeleteConfigs.filter(function (config) { return config.id !== row.id; });
|
|
935
|
-
this.rowDeleteCancel.emit({ id: row.id });
|
|
936
|
-
this.destroyRowDelete(row.id);
|
|
937
|
-
};
|
|
938
|
-
SkyAgGridRowDeleteDirective.prototype.confirmRowDelete = function (row) {
|
|
939
|
-
this.rowDeleteConfigs.find(function (config) { return config.id === row.id; }).pending = true;
|
|
940
|
-
this.rowDeleteConfirm.emit({ id: row.id });
|
|
941
|
-
};
|
|
942
|
-
SkyAgGridRowDeleteDirective.prototype.getRowDeleteItem = function (row) {
|
|
943
|
-
return this.rowDeleteConfigs.find(function (rowDelete) { return rowDelete.id === row.id; });
|
|
944
|
-
};
|
|
945
|
-
SkyAgGridRowDeleteDirective.prototype.affixToRow = function (affixer, id) {
|
|
946
|
-
var rowElement = this.elementRef.nativeElement.querySelector("\n [row-id=\"" + id + "\"] div[aria-colindex=\"1\"],\n .ag-row.sky-ag-grid-row-" + id + " div[aria-colindex=\"1\"]\n ");
|
|
947
|
-
// This covers cases where AG Grid places the column index on an inner element (such as with the `enableCellTextSelection` option)
|
|
948
|
-
// This appears to have been fixed by AG Grid in version 24 and so it is not testable after that version.
|
|
949
|
-
/* istanbul ignore if */
|
|
950
|
-
if (!rowElement) {
|
|
951
|
-
var columns = this.elementRef.nativeElement.querySelectorAll('[row-id="' + id + '"] > div');
|
|
952
|
-
for (var i = 0; i < columns.length; i++) {
|
|
953
|
-
if (columns[i].querySelector('[aria-colindex="1"]')) {
|
|
954
|
-
rowElement = columns[i];
|
|
955
|
-
break;
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
affixer.affixTo(rowElement, {
|
|
960
|
-
autoFitContext: i1.SkyAffixAutoFitContext.Viewport,
|
|
961
|
-
isSticky: true,
|
|
962
|
-
placement: 'above',
|
|
963
|
-
verticalAlignment: 'top',
|
|
964
|
-
horizontalAlignment: 'left',
|
|
965
|
-
enableAutoFit: false,
|
|
966
|
-
});
|
|
967
|
-
};
|
|
968
|
-
SkyAgGridRowDeleteDirective.prototype.destroyRowDelete = function (id) {
|
|
969
|
-
var _a;
|
|
970
|
-
var rowDeleteContents = this.rowDeleteContents[id];
|
|
971
|
-
/* sanity check */
|
|
972
|
-
/* istanbul ignore else */
|
|
973
|
-
if (rowDeleteContents) {
|
|
974
|
-
rowDeleteContents.affixer.destroy();
|
|
975
|
-
this.overlayService.close(rowDeleteContents.overlay);
|
|
976
|
-
delete this.rowDeleteContents[id];
|
|
977
|
-
this.rowDeleteConfigs = this.rowDeleteConfigs.filter(function (config) { return config.id !== id; });
|
|
978
|
-
this._rowDeleteIds = (_a = this.rowDeleteIds) === null || _a === void 0 ? void 0 : _a.filter(function (arrayId) { return arrayId !== id; });
|
|
979
|
-
this.rowDeleteIdsChange.emit(this._rowDeleteIds);
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
SkyAgGridRowDeleteDirective.prototype.updateRowDeleteStates = function () {
|
|
983
|
-
var _this = this;
|
|
984
|
-
this.rowDeleteConfigs.forEach(function (config) {
|
|
985
|
-
if (!_this.agGrid.api.getRowNode(config.id)) {
|
|
986
|
-
_this.destroyRowDelete(config.id);
|
|
987
|
-
}
|
|
988
|
-
else {
|
|
989
|
-
// We must reaffix things when the data changes because the rows rerender and the previous element that the delete was affixed
|
|
990
|
-
// to is destroyed.
|
|
991
|
-
_this.affixToRow(_this.rowDeleteContents[config.id].affixer, config.id);
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
this.changeDetector.markForCheck();
|
|
995
|
-
};
|
|
996
|
-
return SkyAgGridRowDeleteDirective;
|
|
997
|
-
}());
|
|
998
|
-
SkyAgGridRowDeleteDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridRowDeleteDirective, deps: [{ token: i1__namespace.SkyAffixService }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i1__namespace.SkyOverlayService }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
999
|
-
SkyAgGridRowDeleteDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridRowDeleteDirective, selector: "[skyAgGridRowDelete]", inputs: { rowDeleteIds: "rowDeleteIds" }, outputs: { rowDeleteCancel: "rowDeleteCancel", rowDeleteConfirm: "rowDeleteConfirm", rowDeleteIdsChange: "rowDeleteIdsChange" }, queries: [{ propertyName: "agGrid", first: true, predicate: agGridAngular.AgGridAngular, descendants: true }], ngImport: i0__namespace });
|
|
1000
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridRowDeleteDirective, decorators: [{
|
|
1001
|
-
type: i0.Directive,
|
|
1002
|
-
args: [{
|
|
1003
|
-
selector: '[skyAgGridRowDelete]',
|
|
1004
|
-
}]
|
|
1005
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAffixService }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i1__namespace.SkyOverlayService }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { rowDeleteIds: [{
|
|
1006
|
-
type: i0.Input
|
|
1007
|
-
}], rowDeleteCancel: [{
|
|
1008
|
-
type: i0.Output
|
|
1009
|
-
}], rowDeleteConfirm: [{
|
|
1010
|
-
type: i0.Output
|
|
1011
|
-
}], rowDeleteIdsChange: [{
|
|
1012
|
-
type: i0.Output
|
|
1013
|
-
}], agGrid: [{
|
|
1014
|
-
type: i0.ContentChild,
|
|
1015
|
-
args: [agGridAngular.AgGridAngular]
|
|
1016
|
-
}] } });
|
|
1017
|
-
|
|
1018
|
-
/**
|
|
1019
|
-
* @internal
|
|
1020
|
-
*/
|
|
1021
|
-
var SkyAgGridCellEditorAutocompleteComponent = /** @class */ (function () {
|
|
1022
|
-
function SkyAgGridCellEditorAutocompleteComponent() {
|
|
1023
|
-
this.skyComponentProperties = {};
|
|
1024
|
-
}
|
|
1025
|
-
SkyAgGridCellEditorAutocompleteComponent.prototype.agInit = function (params) {
|
|
1026
|
-
this.params = params;
|
|
1027
|
-
this.currentSelection = this.params.value;
|
|
1028
|
-
this.columnHeader = this.params.colDef && this.params.colDef.headerName;
|
|
1029
|
-
this.rowNumber = this.params.rowIndex + 1;
|
|
1030
|
-
this.skyComponentProperties = this.params.skyComponentProperties || {};
|
|
1031
|
-
};
|
|
1032
|
-
SkyAgGridCellEditorAutocompleteComponent.prototype.afterGuiAttached = function () {
|
|
1033
|
-
this.input.nativeElement.focus();
|
|
1034
|
-
};
|
|
1035
|
-
SkyAgGridCellEditorAutocompleteComponent.prototype.getValue = function () {
|
|
1036
|
-
return this.currentSelection;
|
|
1037
|
-
};
|
|
1038
|
-
return SkyAgGridCellEditorAutocompleteComponent;
|
|
1039
|
-
}());
|
|
1040
|
-
SkyAgGridCellEditorAutocompleteComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorAutocompleteComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1041
|
-
SkyAgGridCellEditorAutocompleteComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorAutocompleteComponent, selector: "sky-ag-grid-cell-editor-autocomplete", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorAutocomplete"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<div class=\"sky-ag-grid-cell-editor-autocomplete\">\n <sky-autocomplete\n [data]=\"skyComponentProperties.data\"\n [debounceTime]=\"skyComponentProperties.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties.descriptorProperty\"\n [propertiesToSearch]=\"skyComponentProperties.propertiesToSearch\"\n [search]=\"skyComponentProperties.search\"\n [searchFilters]=\"skyComponentProperties.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties.searchTextMinimumCharacters\n \"\n (selectionChange)=\"\n skyComponentProperties.selectionChange &&\n skyComponentProperties.selectionChange($event)\n \"\n >\n <input\n skyAutocomplete\n #skyCellEditorAutocomplete\n type=\"text\"\n [(ngModel)]=\"currentSelection\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_autocomplete_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n />\n </sky-autocomplete>\n</div>\n", styles: ["sky-autocomplete input{border:none;box-shadow:none}\n"], components: [{ type: i1__namespace$3.λ2, selector: "sky-autocomplete", inputs: ["ariaLabelledBy", "data", "debounceTime", "descriptorProperty", "enableShowMore", "messageStream", "wrapperClass", "propertiesToSearch", "search", "searchResultTemplate", "searchTextMinimumCharacters", "searchFilters", "searchResultsLimit", "showAddButton", "noResultsFoundText", "searchAsyncDisabled"], outputs: ["addClick", "showMoreClick", "selectionChange", "searchAsync"] }], directives: [{ type: i1__namespace$3.λ1, selector: "input[skyAutocomplete], textarea[skyAutocomplete]", inputs: ["autocompleteAttribute", "disabled"] }, { type: i1__namespace$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1042
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorAutocompleteComponent, decorators: [{
|
|
1043
|
-
type: i0.Component,
|
|
1044
|
-
args: [{
|
|
1045
|
-
selector: 'sky-ag-grid-cell-editor-autocomplete',
|
|
1046
|
-
template: "<div class=\"sky-ag-grid-cell-editor-autocomplete\">\n <sky-autocomplete\n [data]=\"skyComponentProperties.data\"\n [debounceTime]=\"skyComponentProperties.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties.descriptorProperty\"\n [propertiesToSearch]=\"skyComponentProperties.propertiesToSearch\"\n [search]=\"skyComponentProperties.search\"\n [searchFilters]=\"skyComponentProperties.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties.searchTextMinimumCharacters\n \"\n (selectionChange)=\"\n skyComponentProperties.selectionChange &&\n skyComponentProperties.selectionChange($event)\n \"\n >\n <input\n skyAutocomplete\n #skyCellEditorAutocomplete\n type=\"text\"\n [(ngModel)]=\"currentSelection\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_autocomplete_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n />\n </sky-autocomplete>\n</div>\n",
|
|
1047
|
-
styles: ["sky-autocomplete input{border:none;box-shadow:none}\n"],
|
|
1048
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1049
|
-
}]
|
|
1050
|
-
}], propDecorators: { input: [{
|
|
1051
|
-
type: i0.ViewChild,
|
|
1052
|
-
args: ['skyCellEditorAutocomplete', { read: i0.ElementRef }]
|
|
1053
|
-
}] } });
|
|
1054
|
-
|
|
1055
|
-
/**
|
|
1056
|
-
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
1057
|
-
* The contents of this file were automatically generated by
|
|
1058
|
-
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/ag-grid' schematic.
|
|
1059
|
-
* To update this file, simply rerun the command.
|
|
1060
|
-
*/
|
|
1061
|
-
var RESOURCES = {
|
|
1062
|
-
'EN-US': {
|
|
1063
|
-
sky_ag_grid_row_selector_aria_label: {
|
|
1064
|
-
message: 'Row selector for row {0}',
|
|
1065
|
-
},
|
|
1066
|
-
sky_ag_grid_cell_editor_number_aria_label: {
|
|
1067
|
-
message: 'Editable number {0} for row {1}',
|
|
1068
|
-
},
|
|
1069
|
-
sky_ag_grid_cell_editor_text_aria_label: {
|
|
1070
|
-
message: 'Editable text {0} for row {1}',
|
|
1071
|
-
},
|
|
1072
|
-
sky_ag_grid_cell_editor_autocomplete_aria_label: {
|
|
1073
|
-
message: 'Editable autocomplete {0} for row {1}',
|
|
1074
|
-
},
|
|
1075
|
-
sky_ag_grid_cell_renderer_currency_aria_label: {
|
|
1076
|
-
message: 'Editable currency {0} for row {1}',
|
|
1077
|
-
},
|
|
1078
|
-
sky_ag_grid_cell_renderer_number_validator_message: {
|
|
1079
|
-
message: 'Please enter a valid number',
|
|
1080
|
-
},
|
|
1081
|
-
sky_ag_grid_cell_renderer_currency_validator_message: {
|
|
1082
|
-
message: 'Please enter a valid currency',
|
|
1083
|
-
},
|
|
1084
|
-
skyux_lookup_tokens_summary: { message: '{0} items selected' },
|
|
1085
|
-
},
|
|
1086
|
-
};
|
|
1087
|
-
var AgGridResourcesProvider = /** @class */ (function () {
|
|
1088
|
-
function AgGridResourcesProvider() {
|
|
1089
|
-
}
|
|
1090
|
-
AgGridResourcesProvider.prototype.getString = function (localeInfo, name) {
|
|
1091
|
-
return i3$1.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
1092
|
-
};
|
|
1093
|
-
return AgGridResourcesProvider;
|
|
1094
|
-
}());
|
|
1095
|
-
/**
|
|
1096
|
-
* Import into any component library module that needs to use resource strings.
|
|
1097
|
-
*/
|
|
1098
|
-
var AgGridResourcesModule = /** @class */ (function () {
|
|
1099
|
-
function AgGridResourcesModule() {
|
|
1100
|
-
}
|
|
1101
|
-
return AgGridResourcesModule;
|
|
1102
|
-
}());
|
|
1103
|
-
AgGridResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AgGridResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1104
|
-
AgGridResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AgGridResourcesModule, exports: [i3$1.SkyI18nModule] });
|
|
1105
|
-
AgGridResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AgGridResourcesModule, providers: [
|
|
1106
|
-
{
|
|
1107
|
-
provide: i3$1.SKY_LIB_RESOURCES_PROVIDERS,
|
|
1108
|
-
useClass: AgGridResourcesProvider,
|
|
1109
|
-
multi: true,
|
|
1110
|
-
},
|
|
1111
|
-
], imports: [i3$1.SkyI18nModule] });
|
|
1112
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AgGridResourcesModule, decorators: [{
|
|
1113
|
-
type: i0.NgModule,
|
|
1114
|
-
args: [{
|
|
1115
|
-
exports: [i3$1.SkyI18nModule],
|
|
1116
|
-
providers: [
|
|
1117
|
-
{
|
|
1118
|
-
provide: i3$1.SKY_LIB_RESOURCES_PROVIDERS,
|
|
1119
|
-
useClass: AgGridResourcesProvider,
|
|
1120
|
-
multi: true,
|
|
1121
|
-
},
|
|
1122
|
-
],
|
|
1123
|
-
}]
|
|
1124
|
-
}] });
|
|
1125
|
-
|
|
1126
|
-
var SkyAgGridCellEditorAutocompleteModule = /** @class */ (function () {
|
|
1127
|
-
function SkyAgGridCellEditorAutocompleteModule() {
|
|
1128
|
-
}
|
|
1129
|
-
return SkyAgGridCellEditorAutocompleteModule;
|
|
1130
|
-
}());
|
|
1131
|
-
SkyAgGridCellEditorAutocompleteModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorAutocompleteModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1132
|
-
SkyAgGridCellEditorAutocompleteModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorAutocompleteModule, declarations: [SkyAgGridCellEditorAutocompleteComponent], imports: [i1$4.FormsModule, AgGridResourcesModule, i1$3.SkyAutocompleteModule], exports: [SkyAgGridCellEditorAutocompleteComponent] });
|
|
1133
|
-
SkyAgGridCellEditorAutocompleteModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorAutocompleteModule, imports: [[i1$4.FormsModule, AgGridResourcesModule, i1$3.SkyAutocompleteModule]] });
|
|
1134
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorAutocompleteModule, decorators: [{
|
|
1135
|
-
type: i0.NgModule,
|
|
1136
|
-
args: [{
|
|
1137
|
-
imports: [i1$4.FormsModule, AgGridResourcesModule, i1$3.SkyAutocompleteModule],
|
|
1138
|
-
declarations: [SkyAgGridCellEditorAutocompleteComponent],
|
|
1139
|
-
exports: [SkyAgGridCellEditorAutocompleteComponent],
|
|
1140
|
-
}]
|
|
1141
|
-
}] });
|
|
1142
|
-
|
|
1143
|
-
/**
|
|
1144
|
-
* @internal
|
|
1145
|
-
*/
|
|
1146
|
-
var SkyAgGridCellEditorCurrencyComponent = /** @class */ (function () {
|
|
1147
|
-
function SkyAgGridCellEditorCurrencyComponent() {
|
|
1148
|
-
this.skyComponentProperties = {};
|
|
1149
|
-
}
|
|
1150
|
-
/**
|
|
1151
|
-
* agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
|
|
1152
|
-
* @param params The cell editor params that include data about the cell, column, row, and grid.
|
|
1153
|
-
*/
|
|
1154
|
-
SkyAgGridCellEditorCurrencyComponent.prototype.agInit = function (params) {
|
|
1155
|
-
this.params = params;
|
|
1156
|
-
this.value = this.params.value;
|
|
1157
|
-
this.columnHeader = this.params.colDef.headerName;
|
|
1158
|
-
this.rowNumber = this.params.rowIndex + 1;
|
|
1159
|
-
this.columnWidth = this.params.column.getActualWidth();
|
|
1160
|
-
this.rowHeightWithoutBorders =
|
|
1161
|
-
this.params.node && this.params.node.rowHeight - 4;
|
|
1162
|
-
this.skyComponentProperties = this.params.skyComponentProperties || {
|
|
1163
|
-
decimalPlaces: 2,
|
|
1164
|
-
currencySymbol: '$',
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
/**
|
|
1168
|
-
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
1169
|
-
*/
|
|
1170
|
-
SkyAgGridCellEditorCurrencyComponent.prototype.afterGuiAttached = function () {
|
|
1171
|
-
this.input.nativeElement.focus();
|
|
1172
|
-
};
|
|
1173
|
-
/**
|
|
1174
|
-
* getValue is called by agGrid when editing is stopped to get the new value of the cell.
|
|
1175
|
-
*/
|
|
1176
|
-
SkyAgGridCellEditorCurrencyComponent.prototype.getValue = function () {
|
|
1177
|
-
return this.value;
|
|
1178
|
-
};
|
|
1179
|
-
return SkyAgGridCellEditorCurrencyComponent;
|
|
1180
|
-
}());
|
|
1181
|
-
SkyAgGridCellEditorCurrencyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorCurrencyComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1182
|
-
SkyAgGridCellEditorCurrencyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorCurrencyComponent, selector: "sky-ag-grid-cell-editor-currency", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorCurrency"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_currency_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n [skyAutonumeric]=\"skyComponentProperties\"\n #skyCellEditorCurrency\n/>\n", styles: ["input{border:none;padding-left:11px}\n"], directives: [{ type: i1__namespace$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2__namespace.λ1, selector: "input[skyAutonumeric]", inputs: ["skyAutonumeric"] }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1183
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorCurrencyComponent, decorators: [{
|
|
1184
|
-
type: i0.Component,
|
|
1185
|
-
args: [{
|
|
1186
|
-
selector: 'sky-ag-grid-cell-editor-currency',
|
|
1187
|
-
template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_currency_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n [skyAutonumeric]=\"skyComponentProperties\"\n #skyCellEditorCurrency\n/>\n",
|
|
1188
|
-
styles: ["input{border:none;padding-left:11px}\n"],
|
|
1189
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1190
|
-
}]
|
|
1191
|
-
}], propDecorators: { input: [{
|
|
1192
|
-
type: i0.ViewChild,
|
|
1193
|
-
args: ['skyCellEditorCurrency', { read: i0.ElementRef }]
|
|
1194
|
-
}] } });
|
|
1195
|
-
|
|
1196
|
-
var SkyAgGridCellEditorCurrencyModule = /** @class */ (function () {
|
|
1197
|
-
function SkyAgGridCellEditorCurrencyModule() {
|
|
1198
|
-
}
|
|
1199
|
-
return SkyAgGridCellEditorCurrencyModule;
|
|
1200
|
-
}());
|
|
1201
|
-
SkyAgGridCellEditorCurrencyModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorCurrencyModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1202
|
-
SkyAgGridCellEditorCurrencyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorCurrencyModule, declarations: [SkyAgGridCellEditorCurrencyComponent], imports: [AgGridResourcesModule, i1$4.FormsModule, i2.SkyAutonumericModule], exports: [SkyAgGridCellEditorCurrencyComponent] });
|
|
1203
|
-
SkyAgGridCellEditorCurrencyModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorCurrencyModule, imports: [[AgGridResourcesModule, i1$4.FormsModule, i2.SkyAutonumericModule]] });
|
|
1204
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorCurrencyModule, decorators: [{
|
|
1205
|
-
type: i0.NgModule,
|
|
1206
|
-
args: [{
|
|
1207
|
-
imports: [AgGridResourcesModule, i1$4.FormsModule, i2.SkyAutonumericModule],
|
|
1208
|
-
declarations: [SkyAgGridCellEditorCurrencyComponent],
|
|
1209
|
-
exports: [SkyAgGridCellEditorCurrencyComponent],
|
|
1210
|
-
}]
|
|
1211
|
-
}] });
|
|
1212
|
-
|
|
1213
|
-
/**
|
|
1214
|
-
* @internal
|
|
1215
|
-
*/
|
|
1216
|
-
var SkyAgGridCellEditorDatepickerComponent = /** @class */ (function (_super) {
|
|
1217
|
-
__extends(SkyAgGridCellEditorDatepickerComponent, _super);
|
|
1218
|
-
function SkyAgGridCellEditorDatepickerComponent(themeSvc) {
|
|
1219
|
-
var _this = _super.call(this) || this;
|
|
1220
|
-
_this.themeSvc = themeSvc;
|
|
1221
|
-
_this.skyComponentProperties = {};
|
|
1222
|
-
return _this;
|
|
1223
|
-
}
|
|
1224
|
-
/**
|
|
1225
|
-
* agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
|
|
1226
|
-
* @param params The cell editor params that include data about the cell, column, row, and grid.
|
|
1227
|
-
*/
|
|
1228
|
-
SkyAgGridCellEditorDatepickerComponent.prototype.agInit = function (params) {
|
|
1229
|
-
var _this = this;
|
|
1230
|
-
var _a;
|
|
1231
|
-
this.params = params;
|
|
1232
|
-
this.currentDate = this.params.value;
|
|
1233
|
-
this.skyComponentProperties = this.params.skyComponentProperties || {};
|
|
1234
|
-
this.columnWidth = this.params.column.getActualWidth();
|
|
1235
|
-
this.columnWidthWithoutBorders = this.columnWidth - 2;
|
|
1236
|
-
this.rowHeightWithoutBorders =
|
|
1237
|
-
this.params.node && this.params.node.rowHeight - 3;
|
|
1238
|
-
(_a = this.themeSvc) === null || _a === void 0 ? void 0 : _a.settingsChange.subscribe(function (themeSettings) {
|
|
1239
|
-
if (themeSettings.currentSettings.theme.name === 'modern') {
|
|
1240
|
-
_this.columnWidthWithoutBorders = _this.columnWidth;
|
|
1241
|
-
_this.rowHeightWithoutBorders =
|
|
1242
|
-
_this.params.node && _this.params.node.rowHeight;
|
|
1243
|
-
}
|
|
1244
|
-
else {
|
|
1245
|
-
_this.columnWidthWithoutBorders = _this.columnWidth - 2;
|
|
1246
|
-
_this.rowHeightWithoutBorders =
|
|
1247
|
-
_this.params.node && _this.params.node.rowHeight - 3;
|
|
1248
|
-
}
|
|
1249
|
-
});
|
|
1250
|
-
};
|
|
1251
|
-
/**
|
|
1252
|
-
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
1253
|
-
*/
|
|
1254
|
-
SkyAgGridCellEditorDatepickerComponent.prototype.afterGuiAttached = function () {
|
|
1255
|
-
this.focusOnDatepickerInput();
|
|
1256
|
-
};
|
|
1257
|
-
/**
|
|
1258
|
-
* getValue is called by agGrid when editing is stopped to get the new value of the cell.
|
|
1259
|
-
*/
|
|
1260
|
-
SkyAgGridCellEditorDatepickerComponent.prototype.getValue = function () {
|
|
1261
|
-
this.datepickerInput.nativeElement.blur();
|
|
1262
|
-
return this.currentDate;
|
|
1263
|
-
};
|
|
1264
|
-
SkyAgGridCellEditorDatepickerComponent.prototype.focusOnDatepickerInput = function () {
|
|
1265
|
-
this.datepickerInput.nativeElement.focus();
|
|
1266
|
-
};
|
|
1267
|
-
return SkyAgGridCellEditorDatepickerComponent;
|
|
1268
|
-
}(agGridCommunity.PopupComponent));
|
|
1269
|
-
SkyAgGridCellEditorDatepickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorDatepickerComponent, deps: [{ token: i1__namespace$5.SkyThemeService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1270
|
-
SkyAgGridCellEditorDatepickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorDatepickerComponent, selector: "sky-ag-grid-cell-editor-datepicker", viewQueries: [{ propertyName: "datepickerInput", first: true, predicate: ["skyCellEditorDatepickerInput"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<div\n class=\"sky-ag-grid-cell-editor-datepicker\"\n [style.width.px]=\"columnWidthWithoutBorders\"\n>\n <sky-datepicker\n data-sky-id=\"cell-datepicker\"\n pickerClass=\"ag-custom-component-popup\"\n >\n <input\n skyDatepickerInput\n [disabled]=\"skyComponentProperties.disabled\"\n [minDate]=\"skyComponentProperties.minDate\"\n [maxDate]=\"skyComponentProperties.maxDate\"\n [dateFormat]=\"skyComponentProperties.dateFormat\"\n [startingDay]=\"skyComponentProperties.startingDay\"\n [skyDatepickerNoValidate]=\"skyComponentProperties.skyDatepickerNoValidate\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"currentDate\"\n #skyCellEditorDatepickerInput\n />\n </sky-datepicker>\n</div>\n", styles: [".sky-ag-grid-cell-editor-datepicker{position:relative;top:1px;left:1px}.sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{box-shadow:none;border-width:1px;border-style:solid;border-color:transparent #cdcfd2 transparent transparent}.sky-ag-grid-cell-editor-datepicker sky-datepicker .sky-input-group-datepicker-btn{border-radius:0}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker{position:static;top:initial;left:initial}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{border-radius:0;border:1px solid #1870B8}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control:focus{border-width:2px!important}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker{position:static;top:initial;left:initial}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{border-radius:0;border:1px solid #1870B8}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control:focus{border-width:2px!important}\n"], components: [{ type: i2__namespace$1.λ2, selector: "sky-datepicker", inputs: ["pickerClass"], outputs: ["calendarDateRangeChange"] }], directives: [{ type: i1__namespace$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2__namespace$1.λ3, selector: "[skyDatepickerInput]", inputs: ["dateFormat", "disabled", "maxDate", "minDate", "skyDatepickerInput", "skyDatepickerNoValidate", "startingDay", "strict"] }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1271
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorDatepickerComponent, decorators: [{
|
|
1272
|
-
type: i0.Component,
|
|
1273
|
-
args: [{
|
|
1274
|
-
selector: 'sky-ag-grid-cell-editor-datepicker',
|
|
1275
|
-
template: "<div\n class=\"sky-ag-grid-cell-editor-datepicker\"\n [style.width.px]=\"columnWidthWithoutBorders\"\n>\n <sky-datepicker\n data-sky-id=\"cell-datepicker\"\n pickerClass=\"ag-custom-component-popup\"\n >\n <input\n skyDatepickerInput\n [disabled]=\"skyComponentProperties.disabled\"\n [minDate]=\"skyComponentProperties.minDate\"\n [maxDate]=\"skyComponentProperties.maxDate\"\n [dateFormat]=\"skyComponentProperties.dateFormat\"\n [startingDay]=\"skyComponentProperties.startingDay\"\n [skyDatepickerNoValidate]=\"skyComponentProperties.skyDatepickerNoValidate\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"currentDate\"\n #skyCellEditorDatepickerInput\n />\n </sky-datepicker>\n</div>\n",
|
|
1276
|
-
styles: [".sky-ag-grid-cell-editor-datepicker{position:relative;top:1px;left:1px}.sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{box-shadow:none;border-width:1px;border-style:solid;border-color:transparent #cdcfd2 transparent transparent}.sky-ag-grid-cell-editor-datepicker sky-datepicker .sky-input-group-datepicker-btn{border-radius:0}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker{position:static;top:initial;left:initial}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{border-radius:0;border:1px solid #1870B8}:host-context(.sky-theme-modern) .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control:focus{border-width:2px!important}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker{position:static;top:initial;left:initial}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{border-radius:0;border:1px solid #1870B8}.sky-theme-modern .sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control:focus{border-width:2px!important}\n"],
|
|
1277
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1278
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1279
|
-
}]
|
|
1280
|
-
}], ctorParameters: function () {
|
|
1281
|
-
return [{ type: i1__namespace$5.SkyThemeService, decorators: [{
|
|
1282
|
-
type: i0.Optional
|
|
1283
|
-
}] }];
|
|
1284
|
-
}, propDecorators: { datepickerInput: [{
|
|
1285
|
-
type: i0.ViewChild,
|
|
1286
|
-
args: ['skyCellEditorDatepickerInput', { read: i0.ElementRef }]
|
|
1287
|
-
}] } });
|
|
1288
|
-
|
|
1289
|
-
var SkyAgGridCellEditorDatepickerModule = /** @class */ (function () {
|
|
1290
|
-
function SkyAgGridCellEditorDatepickerModule() {
|
|
1291
|
-
}
|
|
1292
|
-
return SkyAgGridCellEditorDatepickerModule;
|
|
1293
|
-
}());
|
|
1294
|
-
SkyAgGridCellEditorDatepickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorDatepickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1295
|
-
SkyAgGridCellEditorDatepickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorDatepickerModule, declarations: [SkyAgGridCellEditorDatepickerComponent], imports: [i2$1.SkyDatepickerModule, i1$4.FormsModule], exports: [SkyAgGridCellEditorDatepickerComponent] });
|
|
1296
|
-
SkyAgGridCellEditorDatepickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorDatepickerModule, imports: [[i2$1.SkyDatepickerModule, i1$4.FormsModule]] });
|
|
1297
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorDatepickerModule, decorators: [{
|
|
1298
|
-
type: i0.NgModule,
|
|
1299
|
-
args: [{
|
|
1300
|
-
imports: [i2$1.SkyDatepickerModule, i1$4.FormsModule],
|
|
1301
|
-
declarations: [SkyAgGridCellEditorDatepickerComponent],
|
|
1302
|
-
exports: [SkyAgGridCellEditorDatepickerComponent],
|
|
1303
|
-
}]
|
|
1304
|
-
}] });
|
|
1305
|
-
|
|
1306
|
-
function applySkyLookupPropertiesDefaults(skyLookupProperties) {
|
|
1307
|
-
return {
|
|
1308
|
-
addClick: skyLookupProperties.addClick || undefined,
|
|
1309
|
-
ariaLabel: skyLookupProperties.ariaLabel || '',
|
|
1310
|
-
autocompleteAttribute: skyLookupProperties.autocompleteAttribute || 'off',
|
|
1311
|
-
data: skyLookupProperties.data || [],
|
|
1312
|
-
debounceTime: skyLookupProperties.debounceTime || 0,
|
|
1313
|
-
descriptorProperty: skyLookupProperties.descriptorProperty || 'name',
|
|
1314
|
-
disabled: skyLookupProperties.disabled || false,
|
|
1315
|
-
enableShowMore: skyLookupProperties.enableShowMore || false,
|
|
1316
|
-
idProperty: skyLookupProperties.idProperty || undefined,
|
|
1317
|
-
placeholderText: skyLookupProperties.placeholderText || '',
|
|
1318
|
-
propertiesToSearch: skyLookupProperties.propertiesToSearch || undefined,
|
|
1319
|
-
search: skyLookupProperties.search || undefined,
|
|
1320
|
-
searchAsync: skyLookupProperties.searchAsync || undefined,
|
|
1321
|
-
searchFilters: skyLookupProperties.searchFilters || [],
|
|
1322
|
-
searchResultsLimit: skyLookupProperties.searchResultsLimit || undefined,
|
|
1323
|
-
searchResultTemplate: skyLookupProperties.searchResultTemplate || undefined,
|
|
1324
|
-
searchTextMinimumCharacters: skyLookupProperties.searchTextMinimumCharacters || 1,
|
|
1325
|
-
selectMode: skyLookupProperties.selectMode || undefined,
|
|
1326
|
-
showAddButton: skyLookupProperties.showAddButton || false,
|
|
1327
|
-
showMoreConfig: skyLookupProperties.showMoreConfig || {},
|
|
1328
|
-
wrapperClass: 'ag-custom-component-popup',
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
var SkyAgGridCellEditorLookupComponent = /** @class */ (function () {
|
|
1333
|
-
function SkyAgGridCellEditorLookupComponent(changeDetector, elementRef) {
|
|
1334
|
-
this.changeDetector = changeDetector;
|
|
1335
|
-
this.elementRef = elementRef;
|
|
1336
|
-
this.isAlive = false;
|
|
1337
|
-
this.lookupForm = new i1$4.FormGroup({
|
|
1338
|
-
currentSelection: new i1$4.FormControl({
|
|
1339
|
-
value: [],
|
|
1340
|
-
disabled: false,
|
|
1341
|
-
}),
|
|
1342
|
-
});
|
|
1343
|
-
this.useAsyncSearch = false;
|
|
1344
|
-
}
|
|
1345
|
-
SkyAgGridCellEditorLookupComponent.prototype.agInit = function (params) {
|
|
1346
|
-
this.params = params;
|
|
1347
|
-
if (!Array.isArray(this.params.value)) {
|
|
1348
|
-
throw new Error("Lookup value must be an array");
|
|
1349
|
-
}
|
|
1350
|
-
var control = this.lookupForm.get('currentSelection');
|
|
1351
|
-
control.setValue(this.params.value);
|
|
1352
|
-
if (this.params.skyComponentProperties.disabled) {
|
|
1353
|
-
control.disable();
|
|
1354
|
-
}
|
|
1355
|
-
this.skyComponentProperties = this.updateComponentProperties(this.params);
|
|
1356
|
-
this.useAsyncSearch =
|
|
1357
|
-
typeof this.skyComponentProperties.searchAsync === 'function';
|
|
1358
|
-
this.isAlive = true;
|
|
1359
|
-
this.changeDetector.markForCheck();
|
|
1360
|
-
};
|
|
1361
|
-
SkyAgGridCellEditorLookupComponent.prototype.isCancelAfterEnd = function () {
|
|
1362
|
-
// Shut down components to commit values before final value syncs to grid.
|
|
1363
|
-
this.isAlive = false;
|
|
1364
|
-
this.changeDetector.detectChanges();
|
|
1365
|
-
return false;
|
|
1366
|
-
};
|
|
1367
|
-
SkyAgGridCellEditorLookupComponent.prototype.getGui = function () {
|
|
1368
|
-
return this.elementRef.nativeElement;
|
|
1369
|
-
};
|
|
1370
|
-
SkyAgGridCellEditorLookupComponent.prototype.getValue = function () {
|
|
1371
|
-
return this.lookupForm.get('currentSelection').value;
|
|
1372
|
-
};
|
|
1373
|
-
SkyAgGridCellEditorLookupComponent.prototype.isPopup = function () {
|
|
1374
|
-
return true;
|
|
1375
|
-
};
|
|
1376
|
-
/*istanbul ignore next*/
|
|
1377
|
-
SkyAgGridCellEditorLookupComponent.prototype.afterGuiAttached = function () {
|
|
1378
|
-
var _a;
|
|
1379
|
-
(_a = this.elementRef.nativeElement.querySelector('.sky-lookup-input')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1380
|
-
};
|
|
1381
|
-
SkyAgGridCellEditorLookupComponent.prototype.updateComponentProperties = function (params) {
|
|
1382
|
-
var skyLookupProperties = params.skyComponentProperties;
|
|
1383
|
-
return applySkyLookupPropertiesDefaults(skyLookupProperties);
|
|
1384
|
-
};
|
|
1385
|
-
return SkyAgGridCellEditorLookupComponent;
|
|
1386
|
-
}());
|
|
1387
|
-
SkyAgGridCellEditorLookupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorLookupComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1388
|
-
SkyAgGridCellEditorLookupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorLookupComponent, selector: "sky-ag-grid-cell-editor-lookup", ngImport: i0__namespace, template: "<sky-input-box\n *ngIf=\"isAlive && useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n (searchAsync)=\"skyComponentProperties.searchAsync($event)\"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n<sky-input-box\n *ngIf=\"isAlive && !useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [search]=\"skyComponentProperties?.search\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n", styles: [":host{display:block}\n"], components: [{ type: i1__namespace$6.λ10, selector: "sky-input-box", inputs: ["hasErrors", "disabled"] }, { type: i1__namespace$3.λ4, selector: "sky-lookup", inputs: ["ariaLabel", "ariaLabelledBy", "autocompleteAttribute", "data", "disabled", "enableShowMore", "placeholderText", "idProperty", "showAddButton", "showMoreConfig", "selectMode", "wrapperClass"], outputs: ["addClick"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1389
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorLookupComponent, decorators: [{
|
|
1390
|
-
type: i0.Component,
|
|
1391
|
-
args: [{
|
|
1392
|
-
selector: 'sky-ag-grid-cell-editor-lookup',
|
|
1393
|
-
template: "<sky-input-box\n *ngIf=\"isAlive && useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n (searchAsync)=\"skyComponentProperties.searchAsync($event)\"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n<sky-input-box\n *ngIf=\"isAlive && !useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [search]=\"skyComponentProperties?.search\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n",
|
|
1394
|
-
styles: [":host{display:block}\n"],
|
|
1395
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1396
|
-
}]
|
|
1397
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }]; } });
|
|
1398
|
-
|
|
1399
|
-
var SkyAgGridCellEditorLookupModule = /** @class */ (function () {
|
|
1400
|
-
function SkyAgGridCellEditorLookupModule() {
|
|
1401
|
-
}
|
|
1402
|
-
return SkyAgGridCellEditorLookupModule;
|
|
1403
|
-
}());
|
|
1404
|
-
SkyAgGridCellEditorLookupModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorLookupModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1405
|
-
SkyAgGridCellEditorLookupModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorLookupModule, declarations: [SkyAgGridCellEditorLookupComponent], imports: [i3.CommonModule,
|
|
1406
|
-
i1$4.ReactiveFormsModule,
|
|
1407
|
-
i3$1.SkyI18nModule,
|
|
1408
|
-
i1$6.SkyInputBoxModule,
|
|
1409
|
-
i1$3.SkyLookupModule], exports: [SkyAgGridCellEditorLookupComponent] });
|
|
1410
|
-
SkyAgGridCellEditorLookupModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorLookupModule, imports: [[
|
|
1411
|
-
i3.CommonModule,
|
|
1412
|
-
i1$4.ReactiveFormsModule,
|
|
1413
|
-
i3$1.SkyI18nModule,
|
|
1414
|
-
i1$6.SkyInputBoxModule,
|
|
1415
|
-
i1$3.SkyLookupModule,
|
|
1416
|
-
]] });
|
|
1417
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorLookupModule, decorators: [{
|
|
1418
|
-
type: i0.NgModule,
|
|
1419
|
-
args: [{
|
|
1420
|
-
declarations: [SkyAgGridCellEditorLookupComponent],
|
|
1421
|
-
exports: [SkyAgGridCellEditorLookupComponent],
|
|
1422
|
-
imports: [
|
|
1423
|
-
i3.CommonModule,
|
|
1424
|
-
i1$4.ReactiveFormsModule,
|
|
1425
|
-
i3$1.SkyI18nModule,
|
|
1426
|
-
i1$6.SkyInputBoxModule,
|
|
1427
|
-
i1$3.SkyLookupModule,
|
|
1428
|
-
],
|
|
1429
|
-
}]
|
|
1430
|
-
}] });
|
|
1431
|
-
|
|
1432
|
-
/**
|
|
1433
|
-
* @internal
|
|
1434
|
-
*/
|
|
1435
|
-
var SkyAgGridCellEditorNumberComponent = /** @class */ (function () {
|
|
1436
|
-
function SkyAgGridCellEditorNumberComponent() {
|
|
1437
|
-
}
|
|
1438
|
-
/**
|
|
1439
|
-
* agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
|
|
1440
|
-
* @param params The cell editor params that include data about the cell, column, row, and grid.
|
|
1441
|
-
*/
|
|
1442
|
-
SkyAgGridCellEditorNumberComponent.prototype.agInit = function (params) {
|
|
1443
|
-
this.params = params;
|
|
1444
|
-
this.value = this.params.value;
|
|
1445
|
-
this.columnHeader = this.params.colDef.headerName;
|
|
1446
|
-
this.rowNumber = this.params.rowIndex + 1;
|
|
1447
|
-
this.columnWidth = this.params.column.getActualWidth();
|
|
1448
|
-
this.rowHeightWithoutBorders =
|
|
1449
|
-
this.params.node && this.params.node.rowHeight - 4;
|
|
1450
|
-
};
|
|
1451
|
-
/**
|
|
1452
|
-
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
1453
|
-
*/
|
|
1454
|
-
SkyAgGridCellEditorNumberComponent.prototype.afterGuiAttached = function () {
|
|
1455
|
-
this.input.nativeElement.focus();
|
|
1456
|
-
};
|
|
1457
|
-
/**
|
|
1458
|
-
* getValue is called by agGrid when editing is stopped to get the new value of the cell.
|
|
1459
|
-
*/
|
|
1460
|
-
SkyAgGridCellEditorNumberComponent.prototype.getValue = function () {
|
|
1461
|
-
return this.value;
|
|
1462
|
-
};
|
|
1463
|
-
return SkyAgGridCellEditorNumberComponent;
|
|
1464
|
-
}());
|
|
1465
|
-
SkyAgGridCellEditorNumberComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorNumberComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1466
|
-
SkyAgGridCellEditorNumberComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorNumberComponent, selector: "sky-ag-grid-cell-editor-number", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorNumber"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<input\n type=\"number\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_number_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n #skyCellEditorNumber\n/>\n", styles: ["input{border:none;text-align:right}\n"], directives: [{ type: i1__namespace$4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i1__namespace$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1467
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorNumberComponent, decorators: [{
|
|
1468
|
-
type: i0.Component,
|
|
1469
|
-
args: [{
|
|
1470
|
-
selector: 'sky-ag-grid-cell-editor-number',
|
|
1471
|
-
template: "<input\n type=\"number\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_number_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n #skyCellEditorNumber\n/>\n",
|
|
1472
|
-
styles: ["input{border:none;text-align:right}\n"],
|
|
1473
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1474
|
-
}]
|
|
1475
|
-
}], propDecorators: { input: [{
|
|
1476
|
-
type: i0.ViewChild,
|
|
1477
|
-
args: ['skyCellEditorNumber', { read: i0.ElementRef }]
|
|
1478
|
-
}] } });
|
|
1479
|
-
|
|
1480
|
-
var SkyAgGridCellEditorNumberModule = /** @class */ (function () {
|
|
1481
|
-
function SkyAgGridCellEditorNumberModule() {
|
|
1482
|
-
}
|
|
1483
|
-
return SkyAgGridCellEditorNumberModule;
|
|
1484
|
-
}());
|
|
1485
|
-
SkyAgGridCellEditorNumberModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorNumberModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1486
|
-
SkyAgGridCellEditorNumberModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorNumberModule, declarations: [SkyAgGridCellEditorNumberComponent], imports: [AgGridResourcesModule, i1$4.FormsModule], exports: [SkyAgGridCellEditorNumberComponent] });
|
|
1487
|
-
SkyAgGridCellEditorNumberModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorNumberModule, imports: [[AgGridResourcesModule, i1$4.FormsModule]] });
|
|
1488
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorNumberModule, decorators: [{
|
|
1489
|
-
type: i0.NgModule,
|
|
1490
|
-
args: [{
|
|
1491
|
-
imports: [AgGridResourcesModule, i1$4.FormsModule],
|
|
1492
|
-
declarations: [SkyAgGridCellEditorNumberComponent],
|
|
1493
|
-
exports: [SkyAgGridCellEditorNumberComponent],
|
|
1494
|
-
}]
|
|
1495
|
-
}] });
|
|
1496
|
-
|
|
1497
|
-
/**
|
|
1498
|
-
* @internal
|
|
1499
|
-
*/
|
|
1500
|
-
var SkyAgGridCellEditorTextComponent = /** @class */ (function () {
|
|
1501
|
-
function SkyAgGridCellEditorTextComponent() {
|
|
1502
|
-
}
|
|
1503
|
-
/**
|
|
1504
|
-
* agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.
|
|
1505
|
-
* @param params The cell editor params that include data about the cell, column, row, and grid.
|
|
1506
|
-
*/
|
|
1507
|
-
SkyAgGridCellEditorTextComponent.prototype.agInit = function (params) {
|
|
1508
|
-
this.params = params;
|
|
1509
|
-
this.value = this.params.charPress || this.params.value;
|
|
1510
|
-
this.columnHeader = this.params.colDef.headerName;
|
|
1511
|
-
this.rowNumber = this.params.rowIndex + 1;
|
|
1512
|
-
this.columnWidth = this.params.column.getActualWidth();
|
|
1513
|
-
this.rowHeightWithoutBorders =
|
|
1514
|
-
this.params.node && this.params.node.rowHeight - 4;
|
|
1515
|
-
};
|
|
1516
|
-
/**
|
|
1517
|
-
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
1518
|
-
*/
|
|
1519
|
-
SkyAgGridCellEditorTextComponent.prototype.afterGuiAttached = function () {
|
|
1520
|
-
this.input.nativeElement.focus();
|
|
1521
|
-
};
|
|
1522
|
-
/**
|
|
1523
|
-
* getValue is called by agGrid when editing is stopped to get the new value of the cell.
|
|
1524
|
-
*/
|
|
1525
|
-
SkyAgGridCellEditorTextComponent.prototype.getValue = function () {
|
|
1526
|
-
return this.value;
|
|
1527
|
-
};
|
|
1528
|
-
return SkyAgGridCellEditorTextComponent;
|
|
1529
|
-
}());
|
|
1530
|
-
SkyAgGridCellEditorTextComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorTextComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1531
|
-
SkyAgGridCellEditorTextComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorTextComponent, selector: "sky-ag-grid-cell-editor-text", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorText"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n #skyCellEditorText\n/>\n", styles: ["input{border:none;padding-left:11px}\n"], directives: [{ type: i1__namespace$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1532
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorTextComponent, decorators: [{
|
|
1533
|
-
type: i0.Component,
|
|
1534
|
-
args: [{
|
|
1535
|
-
selector: 'sky-ag-grid-cell-editor-text',
|
|
1536
|
-
template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n #skyCellEditorText\n/>\n",
|
|
1537
|
-
styles: ["input{border:none;padding-left:11px}\n"],
|
|
1538
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1539
|
-
}]
|
|
1540
|
-
}], propDecorators: { input: [{
|
|
1541
|
-
type: i0.ViewChild,
|
|
1542
|
-
args: ['skyCellEditorText', { read: i0.ElementRef }]
|
|
1543
|
-
}] } });
|
|
1544
|
-
|
|
1545
|
-
var SkyAgGridCellEditorTextModule = /** @class */ (function () {
|
|
1546
|
-
function SkyAgGridCellEditorTextModule() {
|
|
1547
|
-
}
|
|
1548
|
-
return SkyAgGridCellEditorTextModule;
|
|
1549
|
-
}());
|
|
1550
|
-
SkyAgGridCellEditorTextModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorTextModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1551
|
-
SkyAgGridCellEditorTextModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorTextModule, declarations: [SkyAgGridCellEditorTextComponent], imports: [AgGridResourcesModule, i1$4.FormsModule], exports: [SkyAgGridCellEditorTextComponent] });
|
|
1552
|
-
SkyAgGridCellEditorTextModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorTextModule, imports: [[AgGridResourcesModule, i1$4.FormsModule]] });
|
|
1553
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellEditorTextModule, decorators: [{
|
|
1554
|
-
type: i0.NgModule,
|
|
1555
|
-
args: [{
|
|
1556
|
-
imports: [AgGridResourcesModule, i1$4.FormsModule],
|
|
1557
|
-
declarations: [SkyAgGridCellEditorTextComponent],
|
|
1558
|
-
exports: [SkyAgGridCellEditorTextComponent],
|
|
1559
|
-
}]
|
|
1560
|
-
}] });
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* @internal
|
|
1564
|
-
*/
|
|
1565
|
-
var SkyAgGridCellValidatorTooltipComponent = /** @class */ (function () {
|
|
1566
|
-
function SkyAgGridCellValidatorTooltipComponent(changeDetector, zone) {
|
|
1567
|
-
this.changeDetector = changeDetector;
|
|
1568
|
-
this.zone = zone;
|
|
1569
|
-
this.indicatorShouldShow = true;
|
|
1570
|
-
this.popoverMessageStream = new rxjs.Subject();
|
|
1571
|
-
}
|
|
1572
|
-
Object.defineProperty(SkyAgGridCellValidatorTooltipComponent.prototype, "params", {
|
|
1573
|
-
set: function (value) {
|
|
1574
|
-
var _this = this;
|
|
1575
|
-
var _a, _b, _c, _d, _e;
|
|
1576
|
-
this.cellRendererParams = value;
|
|
1577
|
-
/*istanbul ignore next*/
|
|
1578
|
-
(_a = this.cellRendererParams.api) === null || _a === void 0 ? void 0 : _a.addEventListener(agGridCommunity.Events.EVENT_CELL_FOCUSED, function (eventParams) {
|
|
1579
|
-
// We want to close any popovers that are opened when other cells are focused, but open a popover if the current cell is focused.
|
|
1580
|
-
if (eventParams.column.getColId() !==
|
|
1581
|
-
_this.cellRendererParams.column.getColId() ||
|
|
1582
|
-
eventParams.rowIndex !== _this.cellRendererParams.rowIndex) {
|
|
1583
|
-
_this.hidePopover();
|
|
1584
|
-
}
|
|
1585
|
-
});
|
|
1586
|
-
/*istanbul ignore next*/
|
|
1587
|
-
(_b = this.cellRendererParams.eGridCell) === null || _b === void 0 ? void 0 : _b.addEventListener('keyup', function (event) {
|
|
1588
|
-
if (['ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowUp'].includes(event.key)) {
|
|
1589
|
-
_this.showPopover();
|
|
1590
|
-
}
|
|
1591
|
-
});
|
|
1592
|
-
/*istanbul ignore next*/
|
|
1593
|
-
(_c = this.cellRendererParams.api) === null || _c === void 0 ? void 0 : _c.addEventListener(agGridCommunity.Events.EVENT_CELL_EDITING_STARTED, function () {
|
|
1594
|
-
_this.hidePopover();
|
|
1595
|
-
});
|
|
1596
|
-
if (typeof ((_d = this.cellRendererParams.skyComponentProperties) === null || _d === void 0 ? void 0 : _d.validatorMessage) === 'function') {
|
|
1597
|
-
this.validatorMessage =
|
|
1598
|
-
this.cellRendererParams.skyComponentProperties.validatorMessage(this.cellRendererParams.value, this.cellRendererParams.data, this.cellRendererParams.rowIndex);
|
|
1599
|
-
}
|
|
1600
|
-
else {
|
|
1601
|
-
this.validatorMessage =
|
|
1602
|
-
(_e = this.cellRendererParams.skyComponentProperties) === null || _e === void 0 ? void 0 : _e.validatorMessage;
|
|
1603
|
-
}
|
|
1604
|
-
this.changeDetector.markForCheck();
|
|
1605
|
-
},
|
|
1606
|
-
enumerable: false,
|
|
1607
|
-
configurable: true
|
|
1608
|
-
});
|
|
1609
|
-
SkyAgGridCellValidatorTooltipComponent.prototype.hideIndicator = function () {
|
|
1610
|
-
var _this = this;
|
|
1611
|
-
this.zone.run(function () {
|
|
1612
|
-
_this.indicatorShouldShow = false;
|
|
1613
|
-
_this.changeDetector.detectChanges();
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
|
-
SkyAgGridCellValidatorTooltipComponent.prototype.hidePopover = function () {
|
|
1617
|
-
this.popoverMessageStream.next({ type: i2$2.SkyPopoverMessageType.Close });
|
|
1618
|
-
};
|
|
1619
|
-
SkyAgGridCellValidatorTooltipComponent.prototype.showIndicator = function () {
|
|
1620
|
-
var _this = this;
|
|
1621
|
-
this.zone.run(function () {
|
|
1622
|
-
_this.indicatorShouldShow = true;
|
|
1623
|
-
_this.changeDetector.detectChanges();
|
|
1624
|
-
});
|
|
1625
|
-
};
|
|
1626
|
-
SkyAgGridCellValidatorTooltipComponent.prototype.showPopover = function () {
|
|
1627
|
-
this.popoverMessageStream.next({ type: i2$2.SkyPopoverMessageType.Open });
|
|
1628
|
-
};
|
|
1629
|
-
return SkyAgGridCellValidatorTooltipComponent;
|
|
1630
|
-
}());
|
|
1631
|
-
SkyAgGridCellValidatorTooltipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellValidatorTooltipComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1632
|
-
SkyAgGridCellValidatorTooltipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: { params: "params" }, ngImport: i0__namespace, template: "<div\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n class=\"sky-validator-cell\"\n>\n <ng-content></ng-content>\n <sky-status-indicator\n *ngIf=\"indicatorShouldShow\"\n descriptionType=\"none\"\n indicatorType=\"danger\"\n class=\"sky-pull-right\"\n ></sky-status-indicator>\n</div>\n<sky-popover\n #validatorPopover\n (popoverClosed)=\"showIndicator()\"\n (popoverOpened)=\"hideIndicator()\"\n popoverType=\"danger\"\n>\n {{ validatorMessage }}\n</sky-popover>\n", styles: [":host div.sky-validator-cell{height:100%;width:100%}:host div.sky-validator-cell:focus{outline:none}\n"], components: [{ type: i1__namespace$7.λ10, selector: "sky-status-indicator", inputs: ["indicatorType", "descriptionType", "customDescription"] }, { type: i2__namespace$2.λ6, selector: "sky-popover", inputs: ["alignment", "dismissOnBlur", "placement", "popoverTitle", "popoverType"], outputs: ["popoverClosed", "popoverOpened"] }], directives: [{ type: i2__namespace$2.λ7, selector: "[skyPopover]", inputs: ["skyPopover", "skyPopoverAlignment", "skyPopoverMessageStream", "skyPopoverPlacement", "skyPopoverTrigger"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1633
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellValidatorTooltipComponent, decorators: [{
|
|
1634
|
-
type: i0.Component,
|
|
1635
|
-
args: [{
|
|
1636
|
-
selector: 'sky-ag-grid-cell-validator-tooltip',
|
|
1637
|
-
styles: [":host div.sky-validator-cell{height:100%;width:100%}:host div.sky-validator-cell:focus{outline:none}\n"],
|
|
1638
|
-
template: "<div\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n class=\"sky-validator-cell\"\n>\n <ng-content></ng-content>\n <sky-status-indicator\n *ngIf=\"indicatorShouldShow\"\n descriptionType=\"none\"\n indicatorType=\"danger\"\n class=\"sky-pull-right\"\n ></sky-status-indicator>\n</div>\n<sky-popover\n #validatorPopover\n (popoverClosed)=\"showIndicator()\"\n (popoverOpened)=\"hideIndicator()\"\n popoverType=\"danger\"\n>\n {{ validatorMessage }}\n</sky-popover>\n",
|
|
1639
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1640
|
-
}]
|
|
1641
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { params: [{
|
|
1642
|
-
type: i0.Input
|
|
1643
|
-
}] } });
|
|
1644
|
-
|
|
1645
|
-
/**
|
|
1646
|
-
* @internal
|
|
1647
|
-
*/
|
|
1648
|
-
var SkyAgGridCellRendererCurrencyComponent = /** @class */ (function () {
|
|
1649
|
-
function SkyAgGridCellRendererCurrencyComponent() {
|
|
1650
|
-
this.skyComponentProperties = {};
|
|
1651
|
-
this.numericOptions = {};
|
|
1652
|
-
}
|
|
1653
|
-
Object.defineProperty(SkyAgGridCellRendererCurrencyComponent.prototype, "params", {
|
|
1654
|
-
set: function (value) {
|
|
1655
|
-
this.agInit(value);
|
|
1656
|
-
},
|
|
1657
|
-
enumerable: false,
|
|
1658
|
-
configurable: true
|
|
1659
|
-
});
|
|
1660
|
-
/**
|
|
1661
|
-
* agInit is called by agGrid once after the renderer is created and provides the renderer with the information it needs.
|
|
1662
|
-
* @param params The cell renderer params that include data about the cell, column, row, and grid.
|
|
1663
|
-
*/
|
|
1664
|
-
SkyAgGridCellRendererCurrencyComponent.prototype.agInit = function (params) {
|
|
1665
|
-
this.updateProperties(params);
|
|
1666
|
-
};
|
|
1667
|
-
SkyAgGridCellRendererCurrencyComponent.prototype.refresh = function (params) {
|
|
1668
|
-
return false;
|
|
1669
|
-
};
|
|
1670
|
-
SkyAgGridCellRendererCurrencyComponent.prototype.updateProperties = function (params) {
|
|
1671
|
-
var _a;
|
|
1672
|
-
this._params = params;
|
|
1673
|
-
this.value = this._params.value;
|
|
1674
|
-
this.columnHeader = this._params.colDef && this._params.colDef.headerName;
|
|
1675
|
-
this.rowNumber = this._params.rowIndex + 1;
|
|
1676
|
-
this.columnWidth = (_a = this._params.column) === null || _a === void 0 ? void 0 : _a.getActualWidth();
|
|
1677
|
-
this.rowHeightWithoutBorders =
|
|
1678
|
-
this._params.node && this._params.node.rowHeight - 4;
|
|
1679
|
-
this.skyComponentProperties = this._params.skyComponentProperties || {};
|
|
1680
|
-
this.skyComponentProperties.format = 'currency';
|
|
1681
|
-
this.skyComponentProperties.minDigits = 2;
|
|
1682
|
-
this.skyComponentProperties.truncate = false;
|
|
1683
|
-
};
|
|
1684
|
-
return SkyAgGridCellRendererCurrencyComponent;
|
|
1685
|
-
}());
|
|
1686
|
-
SkyAgGridCellRendererCurrencyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1687
|
-
SkyAgGridCellRendererCurrencyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellRendererCurrencyComponent, selector: "sky-ag-grid-cell-renderer-currency", inputs: { params: "params" }, ngImport: i0__namespace, template: "<span\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_renderer_currency_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n>\n {{ value | skyNumeric: skyComponentProperties }}\n</span>\n", styles: ["input{border:none;padding-left:11px}\n"], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe, "skyNumeric": i1__namespace.SkyNumericPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1688
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyComponent, decorators: [{
|
|
1689
|
-
type: i0.Component,
|
|
1690
|
-
args: [{
|
|
1691
|
-
selector: 'sky-ag-grid-cell-renderer-currency',
|
|
1692
|
-
template: "<span\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_renderer_currency_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n>\n {{ value | skyNumeric: skyComponentProperties }}\n</span>\n",
|
|
1693
|
-
styles: ["input{border:none;padding-left:11px}\n"],
|
|
1694
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1695
|
-
}]
|
|
1696
|
-
}], propDecorators: { params: [{
|
|
1697
|
-
type: i0.Input
|
|
1698
|
-
}] } });
|
|
1699
|
-
|
|
1700
|
-
/**
|
|
1701
|
-
* @internal
|
|
1702
|
-
*/
|
|
1703
|
-
var SkyAgGridCellRendererCurrencyValidatorComponent = /** @class */ (function () {
|
|
1704
|
-
function SkyAgGridCellRendererCurrencyValidatorComponent(changeDetector) {
|
|
1705
|
-
this.changeDetector = changeDetector;
|
|
1706
|
-
}
|
|
1707
|
-
Object.defineProperty(SkyAgGridCellRendererCurrencyValidatorComponent.prototype, "parameters", {
|
|
1708
|
-
set: function (value) {
|
|
1709
|
-
this.agInit(value);
|
|
1710
|
-
},
|
|
1711
|
-
enumerable: false,
|
|
1712
|
-
configurable: true
|
|
1713
|
-
});
|
|
1714
|
-
/**
|
|
1715
|
-
* agInit is called by agGrid once after the renderer is created and provides the renderer with the information it needs.
|
|
1716
|
-
* @param params The cell renderer params that include data about the cell, column, row, and grid.
|
|
1717
|
-
*/
|
|
1718
|
-
SkyAgGridCellRendererCurrencyValidatorComponent.prototype.agInit = function (params) {
|
|
1719
|
-
this.cellRendererParams = params;
|
|
1720
|
-
this.changeDetector.markForCheck();
|
|
1721
|
-
};
|
|
1722
|
-
SkyAgGridCellRendererCurrencyValidatorComponent.prototype.isNumeric = function (value) {
|
|
1723
|
-
return !isNaN(parseFloat(value));
|
|
1724
|
-
};
|
|
1725
|
-
SkyAgGridCellRendererCurrencyValidatorComponent.prototype.refresh = function (params) {
|
|
1726
|
-
return false;
|
|
1727
|
-
};
|
|
1728
|
-
return SkyAgGridCellRendererCurrencyValidatorComponent;
|
|
1729
|
-
}());
|
|
1730
|
-
SkyAgGridCellRendererCurrencyValidatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyValidatorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1731
|
-
SkyAgGridCellRendererCurrencyValidatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellRendererCurrencyValidatorComponent, selector: "sky-ag-grid-cell-renderer-currency-validator", inputs: { parameters: "parameters" }, ngImport: i0__namespace, template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n <sky-ag-grid-cell-renderer-currency\n *ngIf=\"isNumeric(cellRendererParams.value); else rawValue\"\n [params]=\"cellRendererParams\"\n ></sky-ag-grid-cell-renderer-currency>\n <ng-template #rawValue>{{ cellRendererParams.value }}</ng-template>\n</sky-ag-grid-cell-validator-tooltip>\n", components: [{ type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: ["params"] }, { type: SkyAgGridCellRendererCurrencyComponent, selector: "sky-ag-grid-cell-renderer-currency", inputs: ["params"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1732
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyValidatorComponent, decorators: [{
|
|
1733
|
-
type: i0.Component,
|
|
1734
|
-
args: [{
|
|
1735
|
-
selector: 'sky-ag-grid-cell-renderer-currency-validator',
|
|
1736
|
-
template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n <sky-ag-grid-cell-renderer-currency\n *ngIf=\"isNumeric(cellRendererParams.value); else rawValue\"\n [params]=\"cellRendererParams\"\n ></sky-ag-grid-cell-renderer-currency>\n <ng-template #rawValue>{{ cellRendererParams.value }}</ng-template>\n</sky-ag-grid-cell-validator-tooltip>\n",
|
|
1737
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1738
|
-
}]
|
|
1739
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { parameters: [{
|
|
1740
|
-
type: i0.Input
|
|
1741
|
-
}] } });
|
|
1742
|
-
|
|
1743
|
-
var SkyAgGridCellValidatorModule = /** @class */ (function () {
|
|
1744
|
-
function SkyAgGridCellValidatorModule() {
|
|
1745
|
-
}
|
|
1746
|
-
return SkyAgGridCellValidatorModule;
|
|
1747
|
-
}());
|
|
1748
|
-
SkyAgGridCellValidatorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellValidatorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1749
|
-
SkyAgGridCellValidatorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellValidatorModule, declarations: [SkyAgGridCellValidatorTooltipComponent], imports: [i3.CommonModule, i2$2.SkyPopoverModule, i1$7.SkyStatusIndicatorModule], exports: [SkyAgGridCellValidatorTooltipComponent] });
|
|
1750
|
-
SkyAgGridCellValidatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellValidatorModule, imports: [[i3.CommonModule, i2$2.SkyPopoverModule, i1$7.SkyStatusIndicatorModule]] });
|
|
1751
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellValidatorModule, decorators: [{
|
|
1752
|
-
type: i0.NgModule,
|
|
1753
|
-
args: [{
|
|
1754
|
-
declarations: [SkyAgGridCellValidatorTooltipComponent],
|
|
1755
|
-
exports: [SkyAgGridCellValidatorTooltipComponent],
|
|
1756
|
-
imports: [i3.CommonModule, i2$2.SkyPopoverModule, i1$7.SkyStatusIndicatorModule],
|
|
1757
|
-
}]
|
|
1758
|
-
}] });
|
|
1759
|
-
|
|
1760
|
-
var SkyAgGridCellRendererCurrencyModule = /** @class */ (function () {
|
|
1761
|
-
function SkyAgGridCellRendererCurrencyModule() {
|
|
1762
|
-
}
|
|
1763
|
-
return SkyAgGridCellRendererCurrencyModule;
|
|
1764
|
-
}());
|
|
1765
|
-
SkyAgGridCellRendererCurrencyModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1766
|
-
SkyAgGridCellRendererCurrencyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyModule, declarations: [SkyAgGridCellRendererCurrencyComponent,
|
|
1767
|
-
SkyAgGridCellRendererCurrencyValidatorComponent], imports: [i3.CommonModule,
|
|
1768
|
-
AgGridResourcesModule,
|
|
1769
|
-
SkyAgGridCellValidatorModule,
|
|
1770
|
-
i1$4.FormsModule,
|
|
1771
|
-
i1.SkyNumericModule], exports: [SkyAgGridCellRendererCurrencyComponent,
|
|
1772
|
-
SkyAgGridCellRendererCurrencyValidatorComponent] });
|
|
1773
|
-
SkyAgGridCellRendererCurrencyModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyModule, imports: [[
|
|
1774
|
-
i3.CommonModule,
|
|
1775
|
-
AgGridResourcesModule,
|
|
1776
|
-
SkyAgGridCellValidatorModule,
|
|
1777
|
-
i1$4.FormsModule,
|
|
1778
|
-
i1.SkyNumericModule,
|
|
1779
|
-
]] });
|
|
1780
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererCurrencyModule, decorators: [{
|
|
1781
|
-
type: i0.NgModule,
|
|
1782
|
-
args: [{
|
|
1783
|
-
imports: [
|
|
1784
|
-
i3.CommonModule,
|
|
1785
|
-
AgGridResourcesModule,
|
|
1786
|
-
SkyAgGridCellValidatorModule,
|
|
1787
|
-
i1$4.FormsModule,
|
|
1788
|
-
i1.SkyNumericModule,
|
|
1789
|
-
],
|
|
1790
|
-
declarations: [
|
|
1791
|
-
SkyAgGridCellRendererCurrencyComponent,
|
|
1792
|
-
SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
1793
|
-
],
|
|
1794
|
-
exports: [
|
|
1795
|
-
SkyAgGridCellRendererCurrencyComponent,
|
|
1796
|
-
SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
1797
|
-
],
|
|
1798
|
-
}]
|
|
1799
|
-
}] });
|
|
1800
|
-
|
|
1801
|
-
var SkyAgGridCellRendererLookupComponent = /** @class */ (function () {
|
|
1802
|
-
function SkyAgGridCellRendererLookupComponent(changeDetector) {
|
|
1803
|
-
this.changeDetector = changeDetector;
|
|
1804
|
-
this.value = '';
|
|
1805
|
-
this.summaryCount = 0;
|
|
1806
|
-
}
|
|
1807
|
-
SkyAgGridCellRendererLookupComponent.prototype.agInit = function (params) {
|
|
1808
|
-
var _a;
|
|
1809
|
-
this.lookupProperties = applySkyLookupPropertiesDefaults(params);
|
|
1810
|
-
this.summaryCount = ((_a = params.value) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
1811
|
-
this.value = "" + params.valueFormatted;
|
|
1812
|
-
this.changeDetector.markForCheck();
|
|
1813
|
-
};
|
|
1814
|
-
SkyAgGridCellRendererLookupComponent.prototype.refresh = function (params) {
|
|
1815
|
-
this.agInit(params);
|
|
1816
|
-
return true;
|
|
1817
|
-
};
|
|
1818
|
-
return SkyAgGridCellRendererLookupComponent;
|
|
1819
|
-
}());
|
|
1820
|
-
SkyAgGridCellRendererLookupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererLookupComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1821
|
-
SkyAgGridCellRendererLookupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellRendererLookupComponent, selector: "sky-cell-renderer-lookup", ngImport: i0__namespace, template: "<ng-container *ngIf=\"summaryCount > 5; else showValue\">\n {{ 'skyux_lookup_tokens_summary' | skyLibResources: summaryCount }}\n</ng-container>\n<ng-template #showValue>{{ value }}</ng-template>\n", styles: [":host{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1822
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererLookupComponent, decorators: [{
|
|
1823
|
-
type: i0.Component,
|
|
1824
|
-
args: [{
|
|
1825
|
-
selector: 'sky-cell-renderer-lookup',
|
|
1826
|
-
template: "<ng-container *ngIf=\"summaryCount > 5; else showValue\">\n {{ 'skyux_lookup_tokens_summary' | skyLibResources: summaryCount }}\n</ng-container>\n<ng-template #showValue>{{ value }}</ng-template>\n",
|
|
1827
|
-
styles: [":host{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],
|
|
1828
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1829
|
-
}]
|
|
1830
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; } });
|
|
1831
|
-
|
|
1832
|
-
var SkyAgGridCellRendererLookupModule = /** @class */ (function () {
|
|
1833
|
-
function SkyAgGridCellRendererLookupModule() {
|
|
1834
|
-
}
|
|
1835
|
-
return SkyAgGridCellRendererLookupModule;
|
|
1836
|
-
}());
|
|
1837
|
-
SkyAgGridCellRendererLookupModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererLookupModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1838
|
-
SkyAgGridCellRendererLookupModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererLookupModule, declarations: [SkyAgGridCellRendererLookupComponent], imports: [i3.CommonModule, AgGridResourcesModule], exports: [SkyAgGridCellRendererLookupComponent] });
|
|
1839
|
-
SkyAgGridCellRendererLookupModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererLookupModule, imports: [[i3.CommonModule, AgGridResourcesModule]] });
|
|
1840
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererLookupModule, decorators: [{
|
|
1841
|
-
type: i0.NgModule,
|
|
1842
|
-
args: [{
|
|
1843
|
-
declarations: [SkyAgGridCellRendererLookupComponent],
|
|
1844
|
-
exports: [SkyAgGridCellRendererLookupComponent],
|
|
1845
|
-
imports: [i3.CommonModule, AgGridResourcesModule],
|
|
1846
|
-
}]
|
|
1847
|
-
}] });
|
|
1848
|
-
|
|
1849
|
-
/**
|
|
1850
|
-
* @internal
|
|
1851
|
-
*/
|
|
1852
|
-
var SkyAgGridCellRendererRowSelectorComponent = /** @class */ (function () {
|
|
1853
|
-
function SkyAgGridCellRendererRowSelectorComponent(changeDetection) {
|
|
1854
|
-
this.changeDetection = changeDetection;
|
|
1855
|
-
}
|
|
1856
|
-
/**
|
|
1857
|
-
* agInit is called by agGrid once after the cell is created and provides the renderer with the information it needs.
|
|
1858
|
-
* @param params The cell renderer params that include data about the cell, column, row, and grid.
|
|
1859
|
-
*/
|
|
1860
|
-
SkyAgGridCellRendererRowSelectorComponent.prototype.agInit = function (params) {
|
|
1861
|
-
var _this = this;
|
|
1862
|
-
this.params = params;
|
|
1863
|
-
this.dataField = this.params.colDef && this.params.colDef.field;
|
|
1864
|
-
this.rowNode = this.params.node;
|
|
1865
|
-
this.rowNumber = this.params.rowIndex + 1;
|
|
1866
|
-
if (this.dataField) {
|
|
1867
|
-
this.checked = this.params.value;
|
|
1868
|
-
this.rowNode.setSelected(this.checked);
|
|
1869
|
-
}
|
|
1870
|
-
else {
|
|
1871
|
-
this.checked = this.rowNode.isSelected();
|
|
1872
|
-
}
|
|
1873
|
-
this.rowNode.addEventListener(agGridCommunity.RowNode.EVENT_ROW_SELECTED, function (event) {
|
|
1874
|
-
_this.rowSelectedListener(event);
|
|
1875
|
-
});
|
|
1876
|
-
};
|
|
1877
|
-
/**
|
|
1878
|
-
* Used by agGrid to update cell value after a user triggers a refresh. It updates the cell DOM and returns true when the refresh is
|
|
1879
|
-
* successful, or false if the cell should be destroyed and rerendered. If consumers have external logic that changes the value of a
|
|
1880
|
-
* checkbox cell, rerendering it will gurantee the change applies without knowing the consumer's implementation.
|
|
1881
|
-
*/
|
|
1882
|
-
SkyAgGridCellRendererRowSelectorComponent.prototype.refresh = function () {
|
|
1883
|
-
return false;
|
|
1884
|
-
};
|
|
1885
|
-
SkyAgGridCellRendererRowSelectorComponent.prototype.updateRow = function () {
|
|
1886
|
-
this.rowNode.setSelected(this.checked);
|
|
1887
|
-
if (this.dataField) {
|
|
1888
|
-
this.rowNode.data[this.dataField] = this.checked;
|
|
1889
|
-
}
|
|
1890
|
-
};
|
|
1891
|
-
SkyAgGridCellRendererRowSelectorComponent.prototype.rowSelectedListener = function (event) {
|
|
1892
|
-
this.checked = event.node.isSelected();
|
|
1893
|
-
if (this.dataField) {
|
|
1894
|
-
this.rowNode.data[this.dataField] = this.checked;
|
|
1895
|
-
}
|
|
1896
|
-
this.changeDetection.markForCheck();
|
|
1897
|
-
};
|
|
1898
|
-
return SkyAgGridCellRendererRowSelectorComponent;
|
|
1899
|
-
}());
|
|
1900
|
-
SkyAgGridCellRendererRowSelectorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererRowSelectorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1901
|
-
SkyAgGridCellRendererRowSelectorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellRendererRowSelectorComponent, selector: "sky-ag-grid-cell-renderer-row-selector", ngImport: i0__namespace, template: "<sky-checkbox\n data-sky-id=\"row-checkbox\"\n tabindex=\"-1\"\n [label]=\"'sky_ag_grid_row_selector_aria_label' | skyLibResources: rowNumber\"\n [attr.aria-label]=\"\n 'sky_ag_grid_row_selector_aria_label' | skyLibResources: rowNumber\n \"\n [(ngModel)]=\"checked\"\n (change)=\"updateRow()\"\n>\n</sky-checkbox>\n", styles: [".sky-ag-grid-cell-row-selector .sky-switch-control{top:-6px}\n"], components: [{ type: i1__namespace$6.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }], directives: [{ type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1902
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererRowSelectorComponent, decorators: [{
|
|
1903
|
-
type: i0.Component,
|
|
1904
|
-
args: [{
|
|
1905
|
-
selector: 'sky-ag-grid-cell-renderer-row-selector',
|
|
1906
|
-
template: "<sky-checkbox\n data-sky-id=\"row-checkbox\"\n tabindex=\"-1\"\n [label]=\"'sky_ag_grid_row_selector_aria_label' | skyLibResources: rowNumber\"\n [attr.aria-label]=\"\n 'sky_ag_grid_row_selector_aria_label' | skyLibResources: rowNumber\n \"\n [(ngModel)]=\"checked\"\n (change)=\"updateRow()\"\n>\n</sky-checkbox>\n",
|
|
1907
|
-
styles: [".sky-ag-grid-cell-row-selector .sky-switch-control{top:-6px}\n"],
|
|
1908
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1909
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1910
|
-
}]
|
|
1911
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; } });
|
|
1912
|
-
|
|
1913
|
-
var SkyAgGridCellRendererRowSelectorModule = /** @class */ (function () {
|
|
1914
|
-
function SkyAgGridCellRendererRowSelectorModule() {
|
|
1915
|
-
}
|
|
1916
|
-
return SkyAgGridCellRendererRowSelectorModule;
|
|
1917
|
-
}());
|
|
1918
|
-
SkyAgGridCellRendererRowSelectorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererRowSelectorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1919
|
-
SkyAgGridCellRendererRowSelectorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererRowSelectorModule, declarations: [SkyAgGridCellRendererRowSelectorComponent], imports: [AgGridResourcesModule, i1$6.SkyCheckboxModule, i1$4.FormsModule], exports: [SkyAgGridCellRendererRowSelectorComponent] });
|
|
1920
|
-
SkyAgGridCellRendererRowSelectorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererRowSelectorModule, imports: [[AgGridResourcesModule, i1$6.SkyCheckboxModule, i1$4.FormsModule]] });
|
|
1921
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererRowSelectorModule, decorators: [{
|
|
1922
|
-
type: i0.NgModule,
|
|
1923
|
-
args: [{
|
|
1924
|
-
imports: [AgGridResourcesModule, i1$6.SkyCheckboxModule, i1$4.FormsModule],
|
|
1925
|
-
declarations: [SkyAgGridCellRendererRowSelectorComponent],
|
|
1926
|
-
exports: [SkyAgGridCellRendererRowSelectorComponent],
|
|
1927
|
-
}]
|
|
1928
|
-
}] });
|
|
1929
|
-
|
|
1930
|
-
/**
|
|
1931
|
-
* @internal
|
|
1932
|
-
*/
|
|
1933
|
-
var SkyAgGridCellRendererValidatorTooltipComponent = /** @class */ (function () {
|
|
1934
|
-
function SkyAgGridCellRendererValidatorTooltipComponent(changeDetector) {
|
|
1935
|
-
this.changeDetector = changeDetector;
|
|
1936
|
-
}
|
|
1937
|
-
Object.defineProperty(SkyAgGridCellRendererValidatorTooltipComponent.prototype, "params", {
|
|
1938
|
-
set: function (value) {
|
|
1939
|
-
this.agInit(value);
|
|
1940
|
-
},
|
|
1941
|
-
enumerable: false,
|
|
1942
|
-
configurable: true
|
|
1943
|
-
});
|
|
1944
|
-
SkyAgGridCellRendererValidatorTooltipComponent.prototype.agInit = function (params) {
|
|
1945
|
-
var _a;
|
|
1946
|
-
this.cellRendererParams = params;
|
|
1947
|
-
if (typeof ((_a = params.colDef) === null || _a === void 0 ? void 0 : _a.valueFormatter) === 'function') {
|
|
1948
|
-
this.value = params.colDef.valueFormatter(params);
|
|
1949
|
-
}
|
|
1950
|
-
else {
|
|
1951
|
-
this.value = params.value;
|
|
1952
|
-
}
|
|
1953
|
-
this.changeDetector.markForCheck();
|
|
1954
|
-
};
|
|
1955
|
-
SkyAgGridCellRendererValidatorTooltipComponent.prototype.refresh = function (params) {
|
|
1956
|
-
return false;
|
|
1957
|
-
};
|
|
1958
|
-
return SkyAgGridCellRendererValidatorTooltipComponent;
|
|
1959
|
-
}());
|
|
1960
|
-
SkyAgGridCellRendererValidatorTooltipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererValidatorTooltipComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1961
|
-
SkyAgGridCellRendererValidatorTooltipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellRendererValidatorTooltipComponent, selector: "sky-ag-grid-cell-renderer-validator-tooltip", inputs: { params: "params" }, ngImport: i0__namespace, template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n {{ value }}\n</sky-ag-grid-cell-validator-tooltip>\n", components: [{ type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: ["params"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1962
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererValidatorTooltipComponent, decorators: [{
|
|
1963
|
-
type: i0.Component,
|
|
1964
|
-
args: [{
|
|
1965
|
-
selector: 'sky-ag-grid-cell-renderer-validator-tooltip',
|
|
1966
|
-
template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n {{ value }}\n</sky-ag-grid-cell-validator-tooltip>\n",
|
|
1967
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1968
|
-
}]
|
|
1969
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { params: [{
|
|
1970
|
-
type: i0.Input
|
|
1971
|
-
}] } });
|
|
1972
|
-
|
|
1973
|
-
var SkyAgGridCellRendererValidatorTooltipModule = /** @class */ (function () {
|
|
1974
|
-
function SkyAgGridCellRendererValidatorTooltipModule() {
|
|
1975
|
-
}
|
|
1976
|
-
return SkyAgGridCellRendererValidatorTooltipModule;
|
|
1977
|
-
}());
|
|
1978
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererValidatorTooltipModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1979
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererValidatorTooltipModule, declarations: [SkyAgGridCellRendererValidatorTooltipComponent], imports: [SkyAgGridCellValidatorModule], exports: [SkyAgGridCellRendererValidatorTooltipComponent] });
|
|
1980
|
-
SkyAgGridCellRendererValidatorTooltipModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererValidatorTooltipModule, imports: [[SkyAgGridCellValidatorModule]] });
|
|
1981
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridCellRendererValidatorTooltipModule, decorators: [{
|
|
1982
|
-
type: i0.NgModule,
|
|
1983
|
-
args: [{
|
|
1984
|
-
declarations: [SkyAgGridCellRendererValidatorTooltipComponent],
|
|
1985
|
-
exports: [SkyAgGridCellRendererValidatorTooltipComponent],
|
|
1986
|
-
imports: [SkyAgGridCellValidatorModule],
|
|
1987
|
-
}]
|
|
1988
|
-
}] });
|
|
1989
|
-
|
|
1990
|
-
var SkyAgGridModule = /** @class */ (function () {
|
|
1991
|
-
function SkyAgGridModule() {
|
|
1992
|
-
}
|
|
1993
|
-
return SkyAgGridModule;
|
|
1994
|
-
}());
|
|
1995
|
-
SkyAgGridModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1996
|
-
SkyAgGridModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridModule, declarations: [SkyAgGridDataManagerAdapterDirective,
|
|
1997
|
-
SkyAgGridRowDeleteComponent,
|
|
1998
|
-
SkyAgGridRowDeleteDirective,
|
|
1999
|
-
SkyAgGridWrapperComponent], imports: [agGridAngular.AgGridModule,
|
|
2000
|
-
i3.CommonModule,
|
|
2001
|
-
SkyAgGridCellEditorAutocompleteModule,
|
|
2002
|
-
SkyAgGridCellEditorDatepickerModule,
|
|
2003
|
-
SkyAgGridCellEditorLookupModule,
|
|
2004
|
-
SkyAgGridCellEditorNumberModule,
|
|
2005
|
-
SkyAgGridCellEditorCurrencyModule,
|
|
2006
|
-
SkyAgGridCellRendererCurrencyModule,
|
|
2007
|
-
SkyAgGridCellRendererLookupModule,
|
|
2008
|
-
SkyAgGridCellRendererRowSelectorModule,
|
|
2009
|
-
SkyAgGridCellRendererValidatorTooltipModule,
|
|
2010
|
-
SkyAgGridCellValidatorModule,
|
|
2011
|
-
SkyAgGridCellEditorTextModule,
|
|
2012
|
-
i1$1.SkyDataManagerModule,
|
|
2013
|
-
i1$2.SkyInlineDeleteModule,
|
|
2014
|
-
i1.SkyViewkeeperModule], exports: [SkyAgGridDataManagerAdapterDirective,
|
|
2015
|
-
SkyAgGridRowDeleteComponent,
|
|
2016
|
-
SkyAgGridRowDeleteDirective,
|
|
2017
|
-
SkyAgGridWrapperComponent] });
|
|
2018
|
-
SkyAgGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridModule, imports: [[
|
|
2019
|
-
agGridAngular.AgGridModule,
|
|
2020
|
-
i3.CommonModule,
|
|
2021
|
-
SkyAgGridCellEditorAutocompleteModule,
|
|
2022
|
-
SkyAgGridCellEditorDatepickerModule,
|
|
2023
|
-
SkyAgGridCellEditorLookupModule,
|
|
2024
|
-
SkyAgGridCellEditorNumberModule,
|
|
2025
|
-
SkyAgGridCellEditorCurrencyModule,
|
|
2026
|
-
SkyAgGridCellRendererCurrencyModule,
|
|
2027
|
-
SkyAgGridCellRendererLookupModule,
|
|
2028
|
-
SkyAgGridCellRendererRowSelectorModule,
|
|
2029
|
-
SkyAgGridCellRendererValidatorTooltipModule,
|
|
2030
|
-
SkyAgGridCellValidatorModule,
|
|
2031
|
-
SkyAgGridCellEditorTextModule,
|
|
2032
|
-
i1$1.SkyDataManagerModule,
|
|
2033
|
-
i1$2.SkyInlineDeleteModule,
|
|
2034
|
-
i1.SkyViewkeeperModule,
|
|
2035
|
-
]] });
|
|
2036
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridModule, decorators: [{
|
|
2037
|
-
type: i0.NgModule,
|
|
2038
|
-
args: [{
|
|
2039
|
-
declarations: [
|
|
2040
|
-
SkyAgGridDataManagerAdapterDirective,
|
|
2041
|
-
SkyAgGridRowDeleteComponent,
|
|
2042
|
-
SkyAgGridRowDeleteDirective,
|
|
2043
|
-
SkyAgGridWrapperComponent,
|
|
2044
|
-
],
|
|
2045
|
-
imports: [
|
|
2046
|
-
agGridAngular.AgGridModule,
|
|
2047
|
-
i3.CommonModule,
|
|
2048
|
-
SkyAgGridCellEditorAutocompleteModule,
|
|
2049
|
-
SkyAgGridCellEditorDatepickerModule,
|
|
2050
|
-
SkyAgGridCellEditorLookupModule,
|
|
2051
|
-
SkyAgGridCellEditorNumberModule,
|
|
2052
|
-
SkyAgGridCellEditorCurrencyModule,
|
|
2053
|
-
SkyAgGridCellRendererCurrencyModule,
|
|
2054
|
-
SkyAgGridCellRendererLookupModule,
|
|
2055
|
-
SkyAgGridCellRendererRowSelectorModule,
|
|
2056
|
-
SkyAgGridCellRendererValidatorTooltipModule,
|
|
2057
|
-
SkyAgGridCellValidatorModule,
|
|
2058
|
-
SkyAgGridCellEditorTextModule,
|
|
2059
|
-
i1$1.SkyDataManagerModule,
|
|
2060
|
-
i1$2.SkyInlineDeleteModule,
|
|
2061
|
-
i1.SkyViewkeeperModule,
|
|
2062
|
-
],
|
|
2063
|
-
exports: [
|
|
2064
|
-
SkyAgGridDataManagerAdapterDirective,
|
|
2065
|
-
SkyAgGridRowDeleteComponent,
|
|
2066
|
-
SkyAgGridRowDeleteDirective,
|
|
2067
|
-
SkyAgGridWrapperComponent,
|
|
2068
|
-
],
|
|
2069
|
-
entryComponents: [
|
|
2070
|
-
SkyAgGridCellEditorAutocompleteComponent,
|
|
2071
|
-
SkyAgGridCellEditorDatepickerComponent,
|
|
2072
|
-
SkyAgGridCellEditorNumberComponent,
|
|
2073
|
-
SkyAgGridCellEditorCurrencyComponent,
|
|
2074
|
-
SkyAgGridCellRendererCurrencyComponent,
|
|
2075
|
-
SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
2076
|
-
SkyAgGridCellRendererRowSelectorComponent,
|
|
2077
|
-
SkyAgGridCellRendererValidatorTooltipComponent,
|
|
2078
|
-
SkyAgGridCellEditorTextComponent,
|
|
2079
|
-
SkyAgGridRowDeleteComponent,
|
|
2080
|
-
],
|
|
2081
|
-
}]
|
|
2082
|
-
}] });
|
|
2083
|
-
|
|
2084
|
-
/**
|
|
2085
|
-
* @internal
|
|
2086
|
-
*/
|
|
2087
|
-
exports.SkyCellClass = void 0;
|
|
2088
|
-
(function (SkyCellClass) {
|
|
2089
|
-
SkyCellClass["Autocomplete"] = "sky-ag-grid-cell-autocomplete";
|
|
2090
|
-
SkyCellClass["Currency"] = "sky-ag-grid-cell-currency";
|
|
2091
|
-
SkyCellClass["Date"] = "sky-ag-grid-cell-date";
|
|
2092
|
-
SkyCellClass["Editable"] = "sky-ag-grid-cell-editable";
|
|
2093
|
-
SkyCellClass["Invalid"] = "sky-ag-grid-cell-invalid";
|
|
2094
|
-
SkyCellClass["Lookup"] = "sky-ag-grid-cell-lookup";
|
|
2095
|
-
SkyCellClass["Number"] = "sky-ag-grid-cell-number";
|
|
2096
|
-
SkyCellClass["RowSelector"] = "sky-ag-grid-cell-row-selector";
|
|
2097
|
-
SkyCellClass["Text"] = "sky-ag-grid-cell-text";
|
|
2098
|
-
SkyCellClass["Uneditable"] = "sky-ag-grid-cell-uneditable";
|
|
2099
|
-
})(exports.SkyCellClass || (exports.SkyCellClass = {}));
|
|
2100
|
-
|
|
2101
|
-
/**
|
|
2102
|
-
* These column types can be used by setting the AG Grid [column definition `type`](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing) to one of the following values.
|
|
2103
|
-
* <br/>
|
|
2104
|
-
* Any [SKY UX component](https://developer.blackbaud.com/skyux/components) can be made into a [cell editor](https://www.ag-grid.com/javascript-grid-cell-editor/) or [cell renderer](https://www.ag-grid.com/javascript-grid-cell-rendering-components/) component. If you would like to use a component that does not have a column definition yet, please consider [contributing it](https://developer.blackbaud.com/skyux/contribute/contribution-process) to the SKY UX data entry grid module, or [file an issue](https://developer.blackbaud.com/skyux/contribute/contribution-process/file-issue) in the [`@skyux/ag-grid` repo](https://github.com/blackbaud/skyux-ag-grid).
|
|
2105
|
-
*/
|
|
2106
|
-
exports.SkyCellType = void 0;
|
|
2107
|
-
(function (SkyCellType) {
|
|
2108
|
-
/**
|
|
2109
|
-
* **Edit mode**
|
|
2110
|
-
* <br/>
|
|
2111
|
-
* Specifies that cells in the column will be edited as [SKY UX autocomplete components](https://developer.blackbaud.com/skyux/components/autocomplete). You can set any of the autocomplete component's properties by passing `SkyCellEditorAutocompleteParams` in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing). These params can be updated as other cell edits are made or [provided dynamically](https://www.ag-grid.com/javascript-grid-cell-editing/#dynamic-parameters) based on other cell values. See the demo for an example. Text can be entered and a value selected from the provided list.
|
|
2112
|
-
* <br/><br/>
|
|
2113
|
-
* **Read-only mode**
|
|
2114
|
-
* <br/>
|
|
2115
|
-
* Specifies that cells the column will display the currently selected value's name property by default. If the autocomplete needs to show a different property or needs to be formatted in any way, you can [define a `valueFormatter`](https://www.ag-grid.com/javascript-grid-value-formatters/) on the column definition.
|
|
2116
|
-
*/
|
|
2117
|
-
SkyCellType["Autocomplete"] = "skyCellAutocomplete";
|
|
2118
|
-
/**
|
|
2119
|
-
* **Edit mode**
|
|
2120
|
-
* <br/>
|
|
2121
|
-
* Specifies that cells in the column will be edited as a currency amount.
|
|
2122
|
-
* <br/><br/>
|
|
2123
|
-
* **Read-only mode**
|
|
2124
|
-
* <br/>
|
|
2125
|
-
* Formats the display as currency using [SKY UX numeric components](https://developer.blackbaud.com/skyux/components/numeric).
|
|
2126
|
-
*/
|
|
2127
|
-
SkyCellType["Currency"] = "skyCellCurrency";
|
|
2128
|
-
/**
|
|
2129
|
-
* **Edit and read-only modes**
|
|
2130
|
-
* <br/>
|
|
2131
|
-
* Combines SkyCellType.Currency and SkyCellType.Validator, where the value is displayed as a currency and passed to a validator function.
|
|
2132
|
-
*/
|
|
2133
|
-
SkyCellType["CurrencyValidator"] = "skyCellCurrencyValidator";
|
|
2134
|
-
/**
|
|
2135
|
-
* **Edit mode**
|
|
2136
|
-
* <br/>
|
|
2137
|
-
* Specifies that cells in the column will be edited as [SKY UX datepicker components](https://developer.blackbaud.com/skyux/components/datepicker). You can set any of the datepicker component's properties by passing `SkyCellEditorDatepickerParams` in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing). These params can be updated as other cell edits are made or [provided dynamically](https://www.ag-grid.com/javascript-grid-cell-editing/#dynamic-parameters) based on other cell values. See the demo for an example. Date values can be entered.
|
|
2138
|
-
* <br/><br/>
|
|
2139
|
-
* **Read-only mode**
|
|
2140
|
-
* <br/>
|
|
2141
|
-
* Specifies that cells in the column will display the currently selected date formatted as `MM-DD-YYYY`, or the date format of the locale passed to `getGridOptions()`. If you would like to overwrite this format, you can [define a `valueFormatter`](https://www.ag-grid.com/javascript-grid-value-formatters/) on the column definition. See the demo for an example.
|
|
2142
|
-
*/
|
|
2143
|
-
SkyCellType["Date"] = "skyCellDate";
|
|
2144
|
-
/**
|
|
2145
|
-
* **Edit mode**
|
|
2146
|
-
* <br/>
|
|
2147
|
-
* Specifies that cells in the column will be edited as [SKY UX lookup components](https://developer.blackbaud.com/skyux-v5/components/lookup). You can set any of the lookup component's properties by passing `SkyCellEditorLookupParams` in the [column definition's `cellEditorParams` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing). These params can be updated as other cell edits are made or [provided dynamically](https://www.ag-grid.com/javascript-grid-cell-editing/#dynamic-parameters) based on other cell values. See the demo for an example. Text can be entered and a value selected from the provided list.
|
|
2148
|
-
* <br/><br/>
|
|
2149
|
-
* **Read-only mode**
|
|
2150
|
-
* <br/>
|
|
2151
|
-
* Specifies that cells the column will display, by default, either: the name(s) of the selected value(s) if there are less than 6, or a summary count of the values if there are more than 5. If the lookup needs to show a different property or needs to be formatted in any way, you can [define a `valueFormatter`](https://www.ag-grid.com/javascript-grid-value-formatters/) on the column definition.
|
|
2152
|
-
*/
|
|
2153
|
-
SkyCellType["Lookup"] = "skyCellLookup";
|
|
2154
|
-
/**
|
|
2155
|
-
* **Edit mode**
|
|
2156
|
-
* <br/>
|
|
2157
|
-
* Specifies that cells in the column will be edited as HTML number `inputs`. Only numbers can be entered.
|
|
2158
|
-
* <br/><br/>
|
|
2159
|
-
* **Read-only mode**
|
|
2160
|
-
* <br/>
|
|
2161
|
-
* Specifies that cells in the column will render as the number value.
|
|
2162
|
-
*/
|
|
2163
|
-
SkyCellType["Number"] = "skyCellNumber";
|
|
2164
|
-
/**
|
|
2165
|
-
* **Edit and read-only modes**
|
|
2166
|
-
* <br/>
|
|
2167
|
-
* Combines SkyCellType.Number and SkyCellType.Validator, where the value is displayed as a number and passed to a validator function.
|
|
2168
|
-
*/
|
|
2169
|
-
SkyCellType["NumberValidator"] = "skyCellNumberValidator";
|
|
2170
|
-
/**
|
|
2171
|
-
* **Edit and read-only modes**
|
|
2172
|
-
* <br/>
|
|
2173
|
-
* Specifies that cells in the column will render as [SKY UX checkbox components](https://developer.blackbaud.com/skyux/components/checkbox). It allows the user to select multiple rows, and adds a highlight to selected rows. The [Ag Grid `rowNode`](https://www.ag-grid.com/javascript-grid-row-node/) will be updated to reflect the selected state.
|
|
2174
|
-
*/
|
|
2175
|
-
SkyCellType["RowSelector"] = "skyCellRowSelector";
|
|
2176
|
-
/**
|
|
2177
|
-
* **Edit mode**
|
|
2178
|
-
* <br/>
|
|
2179
|
-
* Specifies that cells in the column will be edited as HTML text `inputs`. Any characters can be entered.
|
|
2180
|
-
* <br/><br/>
|
|
2181
|
-
* **Read-only mode**
|
|
2182
|
-
* <br/>
|
|
2183
|
-
* Specifies cells in the column will render as their string value.
|
|
2184
|
-
*/
|
|
2185
|
-
SkyCellType["Text"] = "skyCellText";
|
|
2186
|
-
/**
|
|
2187
|
-
* **Edit and read-only modes**
|
|
2188
|
-
* <br/>
|
|
2189
|
-
* Specifies cell in the column will be passed to a validator function which flags erroneous entries. You can set the validator function and message by passing them to [column definition's `cellRendererParams` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing) as `skyComponentProperties.validator` and `skyComponentProperties.validatorMessage`. SkyCellType.Validator can be combined with other cell types, such as SkyCellType.Autocomplete or SkyCellType.Date, by using the array syntax for the [column definition's `type` property](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing).
|
|
2190
|
-
*/
|
|
2191
|
-
SkyCellType["Validator"] = "skyCellValidator";
|
|
2192
|
-
})(exports.SkyCellType || (exports.SkyCellType = {}));
|
|
2193
|
-
|
|
2194
|
-
/**
|
|
2195
|
-
* @internal
|
|
2196
|
-
*/
|
|
2197
|
-
exports.SkyHeaderClass = void 0;
|
|
2198
|
-
(function (SkyHeaderClass) {
|
|
2199
|
-
SkyHeaderClass["RightAligned"] = "sky-ag-grid-header-right-aligned";
|
|
2200
|
-
})(exports.SkyHeaderClass || (exports.SkyHeaderClass = {}));
|
|
2201
|
-
|
|
2202
|
-
function autocompleteComparator(value1, value2) {
|
|
2203
|
-
if (value1 && value2) {
|
|
2204
|
-
if (value1.name > value2.name) {
|
|
2205
|
-
return 1;
|
|
2206
|
-
}
|
|
2207
|
-
if (value1.name < value2.name) {
|
|
2208
|
-
return -1;
|
|
2209
|
-
}
|
|
2210
|
-
return 0;
|
|
2211
|
-
}
|
|
2212
|
-
return value1 ? 1 : -1;
|
|
2213
|
-
}
|
|
2214
|
-
function autocompleteFormatter(params) {
|
|
2215
|
-
return params.value && params.value.name;
|
|
2216
|
-
}
|
|
2217
|
-
function dateComparator(date1, date2) {
|
|
2218
|
-
var date1value = date1;
|
|
2219
|
-
var date2value = date2;
|
|
2220
|
-
if (typeof date1value === 'string') {
|
|
2221
|
-
date1value = new Date(date1);
|
|
2222
|
-
}
|
|
2223
|
-
if (typeof date2value === 'string') {
|
|
2224
|
-
date2value = new Date(date2);
|
|
2225
|
-
}
|
|
2226
|
-
if (date1value && date2value) {
|
|
2227
|
-
if (date1value > date2value) {
|
|
2228
|
-
return 1;
|
|
2229
|
-
}
|
|
2230
|
-
if (date1value < date2value) {
|
|
2231
|
-
return -1;
|
|
2232
|
-
}
|
|
2233
|
-
return 0;
|
|
2234
|
-
}
|
|
2235
|
-
return date1value ? 1 : -1;
|
|
2236
|
-
}
|
|
2237
|
-
function getValidatorCellRendererSelector(component, fallback) {
|
|
2238
|
-
return function (params) {
|
|
2239
|
-
var _a, _b;
|
|
2240
|
-
if (params.colDef &&
|
|
2241
|
-
typeof ((_b = (_a = params.colDef.cellRendererParams) === null || _a === void 0 ? void 0 : _a.skyComponentProperties) === null || _b === void 0 ? void 0 : _b.validator) === 'function') {
|
|
2242
|
-
if (!params.colDef.cellRendererParams.skyComponentProperties.validator(params.value, params.data, params.rowIndex)) {
|
|
2243
|
-
return {
|
|
2244
|
-
component: component,
|
|
2245
|
-
params: Object.assign({}, params.colDef.cellRendererParams),
|
|
2246
|
-
};
|
|
2247
|
-
}
|
|
2248
|
-
}
|
|
2249
|
-
return fallback;
|
|
2250
|
-
};
|
|
2251
|
-
}
|
|
2252
|
-
var rowNodeId = -1;
|
|
2253
|
-
/**
|
|
2254
|
-
* `SkyAgGridService` provides methods to get AG Grid `gridOptions` to ensure grids match SKY UX functionality. The `gridOptions` can be overridden, and include registered SKY UX column types.
|
|
2255
|
-
*/
|
|
2256
|
-
var SkyAgGridService = /** @class */ (function () {
|
|
2257
|
-
function SkyAgGridService(agGridAdapterService, themeSvc, resources) {
|
|
2258
|
-
var _this = this;
|
|
2259
|
-
this.agGridAdapterService = agGridAdapterService;
|
|
2260
|
-
this.themeSvc = themeSvc;
|
|
2261
|
-
this.resources = resources;
|
|
2262
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
2263
|
-
/*istanbul ignore else*/
|
|
2264
|
-
if (this.themeSvc) {
|
|
2265
|
-
this.themeSvc.settingsChange
|
|
2266
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2267
|
-
.subscribe(function (settingsChange) { return (_this.currentTheme = settingsChange.currentSettings); });
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
SkyAgGridService.prototype.ngOnDestroy = function () {
|
|
2271
|
-
this.ngUnsubscribe.next();
|
|
2272
|
-
this.ngUnsubscribe.complete();
|
|
2273
|
-
};
|
|
2274
|
-
/**
|
|
2275
|
-
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/javascript-grid-properties/) with default SKY UX options, styling, and cell renderers registered for read-only grids.
|
|
2276
|
-
* @param args
|
|
2277
|
-
* @returns
|
|
2278
|
-
*/
|
|
2279
|
-
SkyAgGridService.prototype.getGridOptions = function (args) {
|
|
2280
|
-
var defaultGridOptions = this.getDefaultGridOptions(args);
|
|
2281
|
-
var mergedGridOptions = this.mergeGridOptions(defaultGridOptions, args.gridOptions);
|
|
2282
|
-
return mergedGridOptions;
|
|
2283
|
-
};
|
|
2284
|
-
/**
|
|
2285
|
-
* Returns [AG Grid `gridOptions`](https://www.ag-grid.com/javascript-grid-properties/) with default SKY UX options, styling, and cell editors registered for editable grids.
|
|
2286
|
-
* @param args
|
|
2287
|
-
* @returns
|
|
2288
|
-
*/
|
|
2289
|
-
SkyAgGridService.prototype.getEditableGridOptions = function (args) {
|
|
2290
|
-
var defaultGridOptions = this.getDefaultEditableGridOptions(args);
|
|
2291
|
-
var mergedGridOptions = this.mergeGridOptions(defaultGridOptions, args.gridOptions);
|
|
2292
|
-
return mergedGridOptions;
|
|
2293
|
-
};
|
|
2294
|
-
SkyAgGridService.prototype.mergeGridOptions = function (defaultGridOptions, providedGridOptions) {
|
|
2295
|
-
var mergedGridOptions = Object.assign(Object.assign(Object.assign({}, defaultGridOptions), providedGridOptions), { columnTypes: Object.assign(Object.assign({}, providedGridOptions.columnTypes), defaultGridOptions.columnTypes), defaultColDef: Object.assign(Object.assign(Object.assign({}, defaultGridOptions.defaultColDef), providedGridOptions.defaultColDef), {
|
|
2296
|
-
// allow consumers to override all defaultColDef properties except cellClassRules, which we reserve for styling
|
|
2297
|
-
cellClassRules: defaultGridOptions.defaultColDef.cellClassRules
|
|
2298
|
-
}), icons: Object.assign(Object.assign({}, defaultGridOptions.icons), providedGridOptions.icons) });
|
|
2299
|
-
return mergedGridOptions;
|
|
2300
|
-
};
|
|
2301
|
-
SkyAgGridService.prototype.getDefaultGridOptions = function (args) {
|
|
2302
|
-
var _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
2303
|
-
var _this = this;
|
|
2304
|
-
var _a, _b, _c, _d, _e, _f;
|
|
2305
|
-
// cellClassRules can be functions or string expressions
|
|
2306
|
-
var cellClassRuleTrueExpression = 'true';
|
|
2307
|
-
function getEditableFn(isUneditable) {
|
|
2308
|
-
return function (params) {
|
|
2309
|
-
var isEditable = params.colDef.editable;
|
|
2310
|
-
if (typeof isEditable === 'function') {
|
|
2311
|
-
var column = params.columnApi.getColumn(params.colDef.field);
|
|
2312
|
-
isEditable = isEditable(Object.assign(Object.assign({}, params), { column: column }));
|
|
2313
|
-
}
|
|
2314
|
-
return isUneditable ? !isEditable : isEditable;
|
|
2315
|
-
};
|
|
2316
|
-
}
|
|
2317
|
-
var editableCellClassRules = (_g = {},
|
|
2318
|
-
_g[exports.SkyCellClass.Editable] = getEditableFn(),
|
|
2319
|
-
_g[exports.SkyCellClass.Uneditable] = getEditableFn(true),
|
|
2320
|
-
_g);
|
|
2321
|
-
function getValidatorFn() {
|
|
2322
|
-
return function (param) {
|
|
2323
|
-
var _a, _b;
|
|
2324
|
-
if (param.colDef &&
|
|
2325
|
-
typeof ((_b = (_a = param.colDef.cellRendererParams) === null || _a === void 0 ? void 0 : _a.skyComponentProperties) === null || _b === void 0 ? void 0 : _b.validator) === 'function') {
|
|
2326
|
-
return !param.colDef.cellRendererParams.skyComponentProperties.validator(param.value, param.data, param.rowIndex);
|
|
2327
|
-
}
|
|
2328
|
-
return false;
|
|
2329
|
-
};
|
|
2330
|
-
}
|
|
2331
|
-
var validatorCellClassRules = (_h = {},
|
|
2332
|
-
_h[exports.SkyCellClass.Invalid] = getValidatorFn(),
|
|
2333
|
-
_h);
|
|
2334
|
-
var defaultSkyGridOptions = {
|
|
2335
|
-
columnTypes: (_j = {},
|
|
2336
|
-
_j[exports.SkyCellType.Autocomplete] = {
|
|
2337
|
-
cellClassRules: Object.assign((_k = {}, _k[exports.SkyCellClass.Autocomplete] = cellClassRuleTrueExpression, _k), editableCellClassRules),
|
|
2338
|
-
cellEditorFramework: SkyAgGridCellEditorAutocompleteComponent,
|
|
2339
|
-
valueFormatter: autocompleteFormatter,
|
|
2340
|
-
comparator: autocompleteComparator,
|
|
2341
|
-
minWidth: 185,
|
|
2342
|
-
},
|
|
2343
|
-
_j[exports.SkyCellType.Currency] = {
|
|
2344
|
-
cellClassRules: Object.assign(Object.assign((_l = {}, _l[exports.SkyCellClass.Currency] = cellClassRuleTrueExpression, _l), validatorCellClassRules), editableCellClassRules),
|
|
2345
|
-
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-currency-validator', { component: 'sky-ag-grid-cell-renderer-currency' }),
|
|
2346
|
-
cellEditorFramework: SkyAgGridCellEditorCurrencyComponent,
|
|
2347
|
-
headerClass: exports.SkyHeaderClass.RightAligned,
|
|
2348
|
-
minWidth: 185,
|
|
2349
|
-
},
|
|
2350
|
-
_j[exports.SkyCellType.Date] = {
|
|
2351
|
-
cellClassRules: Object.assign((_m = {}, _m[exports.SkyCellClass.Date] = cellClassRuleTrueExpression, _m), editableCellClassRules),
|
|
2352
|
-
cellEditorFramework: SkyAgGridCellEditorDatepickerComponent,
|
|
2353
|
-
comparator: dateComparator,
|
|
2354
|
-
minWidth: ((_b = (_a = this.currentTheme) === null || _a === void 0 ? void 0 : _a.theme) === null || _b === void 0 ? void 0 : _b.name) === 'modern' ? 180 : 160,
|
|
2355
|
-
valueFormatter: function (params) { return _this.dateFormatter(params, args.locale); },
|
|
2356
|
-
},
|
|
2357
|
-
_j[exports.SkyCellType.Lookup] = {
|
|
2358
|
-
cellClassRules: Object.assign((_o = {}, _o[exports.SkyCellClass.Lookup] = cellClassRuleTrueExpression, _o), editableCellClassRules),
|
|
2359
|
-
cellEditorFramework: SkyAgGridCellEditorLookupComponent,
|
|
2360
|
-
cellRendererFramework: SkyAgGridCellRendererLookupComponent,
|
|
2361
|
-
valueFormatter: function (params) {
|
|
2362
|
-
var lookupProperties = applySkyLookupPropertiesDefaults(params);
|
|
2363
|
-
return (params.value || [])
|
|
2364
|
-
.map(function (value) {
|
|
2365
|
-
return value[lookupProperties.descriptorProperty];
|
|
2366
|
-
})
|
|
2367
|
-
.filter(function (value) { return value !== '' && value !== undefined; })
|
|
2368
|
-
.join('; ');
|
|
2369
|
-
},
|
|
2370
|
-
minWidth: 185,
|
|
2371
|
-
},
|
|
2372
|
-
_j[exports.SkyCellType.Number] = {
|
|
2373
|
-
cellClassRules: Object.assign((_p = {}, _p[exports.SkyCellClass.Number] = cellClassRuleTrueExpression, _p), editableCellClassRules),
|
|
2374
|
-
cellEditorFramework: SkyAgGridCellEditorNumberComponent,
|
|
2375
|
-
headerClass: exports.SkyHeaderClass.RightAligned,
|
|
2376
|
-
},
|
|
2377
|
-
_j[exports.SkyCellType.RowSelector] = {
|
|
2378
|
-
cellClassRules: (_q = {},
|
|
2379
|
-
_q[exports.SkyCellClass.RowSelector] = cellClassRuleTrueExpression,
|
|
2380
|
-
_q[exports.SkyCellClass.Uneditable] = cellClassRuleTrueExpression,
|
|
2381
|
-
_q),
|
|
2382
|
-
cellRendererFramework: SkyAgGridCellRendererRowSelectorComponent,
|
|
2383
|
-
headerName: '',
|
|
2384
|
-
minWidth: 55,
|
|
2385
|
-
maxWidth: 55,
|
|
2386
|
-
sortable: false,
|
|
2387
|
-
width: 55,
|
|
2388
|
-
},
|
|
2389
|
-
_j[exports.SkyCellType.Text] = {
|
|
2390
|
-
cellClassRules: Object.assign((_r = {}, _r[exports.SkyCellClass.Text] = cellClassRuleTrueExpression, _r), editableCellClassRules),
|
|
2391
|
-
cellEditorFramework: SkyAgGridCellEditorTextComponent,
|
|
2392
|
-
},
|
|
2393
|
-
_j[exports.SkyCellType.Validator] = {
|
|
2394
|
-
cellClassRules: Object.assign(Object.assign({}, validatorCellClassRules), editableCellClassRules),
|
|
2395
|
-
cellRendererSelector: getValidatorCellRendererSelector('sky-ag-grid-cell-renderer-validator-tooltip'),
|
|
2396
|
-
},
|
|
2397
|
-
_j),
|
|
2398
|
-
defaultColDef: {
|
|
2399
|
-
cellClassRules: editableCellClassRules,
|
|
2400
|
-
minWidth: 100,
|
|
2401
|
-
resizable: true,
|
|
2402
|
-
sortable: true,
|
|
2403
|
-
suppressKeyboardEvent: function (keypress) { return _this.suppressTab(keypress); },
|
|
2404
|
-
},
|
|
2405
|
-
domLayout: 'autoHeight',
|
|
2406
|
-
enterMovesDownAfterEdit: true,
|
|
2407
|
-
frameworkComponents: {
|
|
2408
|
-
'sky-ag-grid-cell-renderer-currency': SkyAgGridCellRendererCurrencyComponent,
|
|
2409
|
-
'sky-ag-grid-cell-renderer-currency-validator': SkyAgGridCellRendererCurrencyValidatorComponent,
|
|
2410
|
-
'sky-ag-grid-cell-renderer-validator-tooltip': SkyAgGridCellRendererValidatorTooltipComponent,
|
|
2411
|
-
},
|
|
2412
|
-
getRowNodeId: function (data) {
|
|
2413
|
-
if ('id' in data && data.id !== undefined) {
|
|
2414
|
-
return "" + data.id;
|
|
2415
|
-
}
|
|
2416
|
-
return "" + rowNodeId--;
|
|
2417
|
-
},
|
|
2418
|
-
getRowClass: function (params) {
|
|
2419
|
-
if (params.node.id) {
|
|
2420
|
-
return "sky-ag-grid-row-" + params.node.id;
|
|
2421
|
-
}
|
|
2422
|
-
else {
|
|
2423
|
-
return undefined;
|
|
2424
|
-
}
|
|
2425
|
-
},
|
|
2426
|
-
headerHeight: ((_d = (_c = this.currentTheme) === null || _c === void 0 ? void 0 : _c.theme) === null || _d === void 0 ? void 0 : _d.name) === 'modern' ? 60 : 37,
|
|
2427
|
-
icons: {
|
|
2428
|
-
sortDescending: this.getIconTemplate('caret-down'),
|
|
2429
|
-
sortAscending: this.getIconTemplate('caret-up'),
|
|
2430
|
-
columnMoveMove: this.getIconTemplate('arrows'),
|
|
2431
|
-
columnMoveHide: this.getIconTemplate('arrows'),
|
|
2432
|
-
columnMoveLeft: this.getIconTemplate('arrows'),
|
|
2433
|
-
columnMoveRight: this.getIconTemplate('arrows'),
|
|
2434
|
-
columnMovePin: this.getIconTemplate('arrows'),
|
|
2435
|
-
},
|
|
2436
|
-
onCellFocused: function () { return _this.onCellFocused(); },
|
|
2437
|
-
rowHeight: ((_f = (_e = this.currentTheme) === null || _e === void 0 ? void 0 : _e.theme) === null || _f === void 0 ? void 0 : _f.name) === 'modern' ? 60 : 38,
|
|
2438
|
-
rowMultiSelectWithClick: true,
|
|
2439
|
-
rowSelection: 'multiple',
|
|
2440
|
-
singleClickEdit: true,
|
|
2441
|
-
// tslint:disable-next-line: no-null-keyword
|
|
2442
|
-
sortingOrder: ['desc', 'asc', null],
|
|
2443
|
-
stopEditingWhenGridLosesFocus: false,
|
|
2444
|
-
suppressRowClickSelection: true,
|
|
2445
|
-
suppressDragLeaveHidesColumns: true,
|
|
2446
|
-
};
|
|
2447
|
-
defaultSkyGridOptions.columnTypes[exports.SkyCellType.CurrencyValidator] = Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[exports.SkyCellType.Currency]), { cellRendererParams: {
|
|
2448
|
-
skyComponentProperties: {
|
|
2449
|
-
validator: function (value, data, rowIndex) {
|
|
2450
|
-
return !!("" + (value || '')).match(/^[^0-9]*(\d+[,.]?)+\d*[^0-9]*$/);
|
|
2451
|
-
},
|
|
2452
|
-
validatorMessage: 'Please enter a valid currency',
|
|
2453
|
-
},
|
|
2454
|
-
} });
|
|
2455
|
-
/*istanbul ignore else*/
|
|
2456
|
-
if (this.resources) {
|
|
2457
|
-
this.resources
|
|
2458
|
-
.getString('sky_ag_grid_cell_renderer_currency_validator_message')
|
|
2459
|
-
.subscribe(function (value) {
|
|
2460
|
-
defaultSkyGridOptions.columnTypes[exports.SkyCellType.CurrencyValidator].cellRendererParams.skyComponentProperties.validatorMessage = value;
|
|
2461
|
-
});
|
|
2462
|
-
}
|
|
2463
|
-
defaultSkyGridOptions.columnTypes[exports.SkyCellType.NumberValidator] = Object.assign(Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[exports.SkyCellType.Validator]), defaultSkyGridOptions.columnTypes[exports.SkyCellType.Number]), { cellClassRules: Object.assign(Object.assign({}, defaultSkyGridOptions.columnTypes[exports.SkyCellType.Validator]
|
|
2464
|
-
.cellClassRules), defaultSkyGridOptions.columnTypes[exports.SkyCellType.Number].cellClassRules), cellRendererParams: {
|
|
2465
|
-
skyComponentProperties: {
|
|
2466
|
-
validator: function (value, data, rowIndex) {
|
|
2467
|
-
return !!value && !isNaN(parseFloat(value));
|
|
2468
|
-
},
|
|
2469
|
-
validatorMessage: 'Please enter a valid number',
|
|
2470
|
-
},
|
|
2471
|
-
} });
|
|
2472
|
-
/*istanbul ignore else*/
|
|
2473
|
-
if (this.resources) {
|
|
2474
|
-
this.resources
|
|
2475
|
-
.getString('sky_ag_grid_cell_renderer_number_validator_message')
|
|
2476
|
-
.subscribe(function (value) {
|
|
2477
|
-
defaultSkyGridOptions.columnTypes[exports.SkyCellType.NumberValidator].cellRendererParams.skyComponentProperties.validatorMessage = value;
|
|
2478
|
-
});
|
|
2479
|
-
}
|
|
2480
|
-
return defaultSkyGridOptions;
|
|
2481
|
-
};
|
|
2482
|
-
SkyAgGridService.prototype.onCellFocused = function () {
|
|
2483
|
-
var currentElement = this.agGridAdapterService.getFocusedElement();
|
|
2484
|
-
this.agGridAdapterService.focusOnFocusableChildren(currentElement);
|
|
2485
|
-
};
|
|
2486
|
-
SkyAgGridService.prototype.getDefaultEditableGridOptions = function (args) {
|
|
2487
|
-
var defaultGridOptions = this.getDefaultGridOptions(args);
|
|
2488
|
-
defaultGridOptions.rowSelection = 'none';
|
|
2489
|
-
return defaultGridOptions;
|
|
2490
|
-
};
|
|
2491
|
-
SkyAgGridService.prototype.dateFormatter = function (params, locale) {
|
|
2492
|
-
if (locale === void 0) { locale = 'en-us'; }
|
|
2493
|
-
var dateConfig = { year: 'numeric', month: '2-digit', day: '2-digit' };
|
|
2494
|
-
var date = params.value;
|
|
2495
|
-
if (date && typeof date === 'string') {
|
|
2496
|
-
date = new Date(params.value);
|
|
2497
|
-
}
|
|
2498
|
-
var formattedDate = date &&
|
|
2499
|
-
date.toLocaleDateString &&
|
|
2500
|
-
date.toLocaleDateString(locale, dateConfig);
|
|
2501
|
-
if (date && date.getTime && !isNaN(date.getTime())) {
|
|
2502
|
-
return formattedDate;
|
|
2503
|
-
}
|
|
2504
|
-
};
|
|
2505
|
-
SkyAgGridService.prototype.getIconTemplate = function (iconName) {
|
|
2506
|
-
return "<i class=\"fa fa-" + iconName + "\"></i>";
|
|
2507
|
-
};
|
|
2508
|
-
SkyAgGridService.prototype.suppressTab = function (params) {
|
|
2509
|
-
if (params.event.code === 'Tab') {
|
|
2510
|
-
if (params.editing) {
|
|
2511
|
-
var currentlyFocusedEl = this.agGridAdapterService.getFocusedElement();
|
|
2512
|
-
// inline cell editors have the 'ag-cell' class, while popup editors have the 'ag-popup-editor' class
|
|
2513
|
-
var cellEl = this.agGridAdapterService.getElementOrParentWithClass(currentlyFocusedEl, 'ag-cell');
|
|
2514
|
-
var popupEl = this.agGridAdapterService.getElementOrParentWithClass(currentlyFocusedEl, 'ag-popup-editor');
|
|
2515
|
-
var parentEl = cellEl || popupEl;
|
|
2516
|
-
var nextFocusableElementInCell = this.agGridAdapterService.getNextFocusableElement(currentlyFocusedEl, parentEl, params.event.shiftKey);
|
|
2517
|
-
return !!nextFocusableElementInCell;
|
|
2518
|
-
}
|
|
2519
|
-
return true;
|
|
2520
|
-
}
|
|
2521
|
-
return false;
|
|
2522
|
-
};
|
|
2523
|
-
return SkyAgGridService;
|
|
2524
|
-
}());
|
|
2525
|
-
SkyAgGridService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridService, deps: [{ token: SkyAgGridAdapterService }, { token: i1__namespace$5.SkyThemeService, optional: true }, { token: i3__namespace$1.SkyLibResourcesService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2526
|
-
SkyAgGridService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridService, providedIn: 'any' });
|
|
2527
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyAgGridService, decorators: [{
|
|
2528
|
-
type: i0.Injectable,
|
|
2529
|
-
args: [{
|
|
2530
|
-
providedIn: 'any',
|
|
2531
|
-
}]
|
|
2532
|
-
}], ctorParameters: function () {
|
|
2533
|
-
return [{ type: SkyAgGridAdapterService }, { type: i1__namespace$5.SkyThemeService, decorators: [{
|
|
2534
|
-
type: i0.Optional
|
|
2535
|
-
}] }, { type: i3__namespace$1.SkyLibResourcesService, decorators: [{
|
|
2536
|
-
type: i0.Optional
|
|
2537
|
-
}] }];
|
|
2538
|
-
} });
|
|
2539
|
-
|
|
2540
|
-
// Export any types that should be included in the root.
|
|
2541
|
-
|
|
2542
|
-
/**
|
|
2543
|
-
* Generated bundle index. Do not edit.
|
|
2544
|
-
*/
|
|
2545
|
-
|
|
2546
|
-
exports.SkyAgGridModule = SkyAgGridModule;
|
|
2547
|
-
exports.SkyAgGridService = SkyAgGridService;
|
|
2548
|
-
exports["λ1"] = SkyAgGridCellEditorAutocompleteComponent;
|
|
2549
|
-
exports["λ10"] = SkyAgGridCellRendererValidatorTooltipComponent;
|
|
2550
|
-
exports["λ11"] = SkyAgGridCellValidatorTooltipComponent;
|
|
2551
|
-
exports["λ12"] = SkyAgGridWrapperComponent;
|
|
2552
|
-
exports["λ13"] = SkyAgGridRowDeleteDirective;
|
|
2553
|
-
exports["λ14"] = SkyAgGridDataManagerAdapterDirective;
|
|
2554
|
-
exports["λ2"] = SkyAgGridCellEditorTextComponent;
|
|
2555
|
-
exports["λ3"] = SkyAgGridCellEditorCurrencyComponent;
|
|
2556
|
-
exports["λ4"] = SkyAgGridCellEditorNumberComponent;
|
|
2557
|
-
exports["λ5"] = SkyAgGridCellEditorDatepickerComponent;
|
|
2558
|
-
exports["λ6"] = SkyAgGridRowDeleteComponent;
|
|
2559
|
-
exports["λ7"] = SkyAgGridCellRendererRowSelectorComponent;
|
|
2560
|
-
exports["λ8"] = SkyAgGridCellRendererCurrencyValidatorComponent;
|
|
2561
|
-
exports["λ9"] = SkyAgGridCellRendererCurrencyComponent;
|
|
2562
|
-
|
|
2563
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2564
|
-
|
|
2565
|
-
}));
|
|
2566
|
-
//# sourceMappingURL=skyux-ag-grid.umd.js.map
|