@ngx-stoui/core 12.1.5 → 13.0.1
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/esm2020/index.mjs +18 -0
- package/esm2020/lib/abstract-and-interfaces/keyPress.enum.mjs +140 -0
- package/esm2020/lib/sto-directives/context-menu.directive.mjs +35 -0
- package/esm2020/lib/sto-directives/date-form-field-click.directive.mjs +45 -0
- package/esm2020/lib/sto-directives/directives.module.mjs +56 -0
- package/esm2020/lib/sto-directives/index.mjs +7 -0
- package/esm2020/lib/sto-directives/menu-overlay.directive.mjs +47 -0
- package/esm2020/lib/sto-directives/quick-keys.directive.mjs +78 -0
- package/esm2020/lib/sto-directives/sto-grid.directive.mjs +106 -0
- package/esm2020/lib/sto-directives/sto-select-text-on-focus.directive.mjs +58 -0
- package/esm2020/lib/sto-pipes/currency-format.pipe.mjs +35 -0
- package/esm2020/lib/sto-pipes/date-format.pipe.mjs +47 -0
- package/esm2020/lib/sto-pipes/keys.pipe.mjs +27 -0
- package/esm2020/lib/sto-pipes/number-format.pipe.mjs +78 -0
- package/esm2020/lib/sto-pipes/sto-pipes.module.mjs +51 -0
- package/esm2020/lib/sto-pipes/with-unit.mjs +43 -0
- package/esm2020/lib/sto-pipes/yes-no.mjs +21 -0
- package/esm2020/lib/sto-user-preference/sto-user-preference.component.mjs +45 -0
- package/esm2020/lib/sto-user-preference/sto-user-preference.module.mjs +27 -0
- package/esm2020/lib/sto-user-preference/sto-user-preference.service.mjs +39 -0
- package/esm2020/ngx-stoui-core.mjs +5 -0
- package/fesm2015/ngx-stoui-core.mjs +926 -0
- package/fesm2015/ngx-stoui-core.mjs.map +1 -0
- package/{fesm2015/ngx-stoui-core.js → fesm2020/ngx-stoui-core.mjs} +69 -72
- package/fesm2020/ngx-stoui-core.mjs.map +1 -0
- package/ngx-stoui.css +136 -137
- package/package.json +21 -8
- package/style/grid.scss +6 -2
- package/style/sto-dialog.scss +1 -1
- package/style/theme/_appheader.scss +1 -1
- package/style/theme/_card.scss +1 -1
- package/style/theme/_colors.scss +1 -1
- package/style/theme/_datatable.scss +1 -1
- package/style/theme/_drawer.scss +1 -1
- package/style/theme/_filterpanel.scss +1 -1
- package/style/theme/_input-overrides.scss +1 -1
- package/style/theme/_message-panel.scss +1 -1
- package/style/theme/_sto-indicators.scss +1 -1
- package/style/theme/_theme-variables.scss +1 -1
- package/style/theme/_theme.scss +1 -1
- package/style/theme/_typography.scss +1 -1
- package/style/theme.scss +1 -1
- package/bundles/ngx-stoui-core.umd.js +0 -1350
- package/bundles/ngx-stoui-core.umd.js.map +0 -1
- package/esm2015/index.js +0 -18
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/abstract-and-interfaces/keyPress.enum.js +0 -140
- package/esm2015/lib/abstract-and-interfaces/keyPress.enum.js.map +0 -1
- package/esm2015/lib/sto-directives/context-menu.directive.js +0 -35
- package/esm2015/lib/sto-directives/context-menu.directive.js.map +0 -1
- package/esm2015/lib/sto-directives/date-form-field-click.directive.js +0 -45
- package/esm2015/lib/sto-directives/date-form-field-click.directive.js.map +0 -1
- package/esm2015/lib/sto-directives/directives.module.js +0 -56
- package/esm2015/lib/sto-directives/directives.module.js.map +0 -1
- package/esm2015/lib/sto-directives/index.js +0 -7
- package/esm2015/lib/sto-directives/index.js.map +0 -1
- package/esm2015/lib/sto-directives/menu-overlay.directive.js +0 -47
- package/esm2015/lib/sto-directives/menu-overlay.directive.js.map +0 -1
- package/esm2015/lib/sto-directives/quick-keys.directive.js +0 -78
- package/esm2015/lib/sto-directives/quick-keys.directive.js.map +0 -1
- package/esm2015/lib/sto-directives/sto-grid.directive.js +0 -106
- package/esm2015/lib/sto-directives/sto-grid.directive.js.map +0 -1
- package/esm2015/lib/sto-directives/sto-select-text-on-focus.directive.js +0 -58
- package/esm2015/lib/sto-directives/sto-select-text-on-focus.directive.js.map +0 -1
- package/esm2015/lib/sto-pipes/currency-format.pipe.js +0 -35
- package/esm2015/lib/sto-pipes/currency-format.pipe.js.map +0 -1
- package/esm2015/lib/sto-pipes/date-format.pipe.js +0 -47
- package/esm2015/lib/sto-pipes/date-format.pipe.js.map +0 -1
- package/esm2015/lib/sto-pipes/keys.pipe.js +0 -27
- package/esm2015/lib/sto-pipes/keys.pipe.js.map +0 -1
- package/esm2015/lib/sto-pipes/number-format.pipe.js +0 -78
- package/esm2015/lib/sto-pipes/number-format.pipe.js.map +0 -1
- package/esm2015/lib/sto-pipes/sto-pipes.module.js +0 -51
- package/esm2015/lib/sto-pipes/sto-pipes.module.js.map +0 -1
- package/esm2015/lib/sto-pipes/with-unit.js +0 -43
- package/esm2015/lib/sto-pipes/with-unit.js.map +0 -1
- package/esm2015/lib/sto-pipes/yes-no.js +0 -21
- package/esm2015/lib/sto-pipes/yes-no.js.map +0 -1
- package/esm2015/lib/sto-user-preference/sto-user-preference.component.js +0 -48
- package/esm2015/lib/sto-user-preference/sto-user-preference.component.js.map +0 -1
- package/esm2015/lib/sto-user-preference/sto-user-preference.module.js +0 -27
- package/esm2015/lib/sto-user-preference/sto-user-preference.module.js.map +0 -1
- package/esm2015/lib/sto-user-preference/sto-user-preference.service.js +0 -39
- package/esm2015/lib/sto-user-preference/sto-user-preference.service.js.map +0 -1
- package/esm2015/ngx-stoui-core.js +0 -5
- package/esm2015/ngx-stoui-core.js.map +0 -1
- package/fesm2015/ngx-stoui-core.js.map +0 -1
|
@@ -1,1350 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/input'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/layout'), require('@angular/material/menu'), require('date-fns'), require('@angular/forms'), require('@angular/material/expansion')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@ngx-stoui/core', ['exports', '@angular/core', '@angular/common', '@angular/material/input', 'rxjs', 'rxjs/operators', '@angular/cdk/layout', '@angular/material/menu', 'date-fns', '@angular/forms', '@angular/material/expansion'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ngx-stoui'] = global['ngx-stoui'] || {}, global['ngx-stoui'].core = {}), global.ng.core, global.ng.common, global.ng.material.input, global.rxjs, global.rxjs.operators, global.ng.cdk.layout, global.ng.material.menu, global.dateFns, global.ng.forms, global.ng.material.expansion));
|
|
5
|
-
}(this, (function (exports, i0, i4, input, rxjs, operators, layout, i1, dateFns, i1$1, i3) { '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 () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
29
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
31
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
MIT License
|
|
35
|
-
|
|
36
|
-
Copyright (c) 2017 Nathan Friend
|
|
37
|
-
|
|
38
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
39
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
40
|
-
in the Software without restriction, including without limitation the rights
|
|
41
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
42
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
43
|
-
furnished to do so, subject to the following conditions:
|
|
44
|
-
|
|
45
|
-
The above copyright notice and this permission notice shall be included in all
|
|
46
|
-
copies or substantial portions of the Software.
|
|
47
|
-
|
|
48
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
49
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
50
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
51
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
52
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
53
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
54
|
-
SOFTWARE. **/
|
|
55
|
-
exports.Key = void 0;
|
|
56
|
-
(function (Key) {
|
|
57
|
-
Key[Key["Backspace"] = 8] = "Backspace";
|
|
58
|
-
Key[Key["Tab"] = 9] = "Tab";
|
|
59
|
-
Key[Key["Enter"] = 13] = "Enter";
|
|
60
|
-
Key[Key["Shift"] = 16] = "Shift";
|
|
61
|
-
Key[Key["Ctrl"] = 17] = "Ctrl";
|
|
62
|
-
Key[Key["Alt"] = 18] = "Alt";
|
|
63
|
-
Key[Key["PauseBreak"] = 19] = "PauseBreak";
|
|
64
|
-
Key[Key["CapsLock"] = 20] = "CapsLock";
|
|
65
|
-
Key[Key["Escape"] = 27] = "Escape";
|
|
66
|
-
Key[Key["Space"] = 32] = "Space";
|
|
67
|
-
Key[Key["PageUp"] = 33] = "PageUp";
|
|
68
|
-
Key[Key["PageDown"] = 34] = "PageDown";
|
|
69
|
-
Key[Key["End"] = 35] = "End";
|
|
70
|
-
Key[Key["Home"] = 36] = "Home";
|
|
71
|
-
Key[Key["LeftArrow"] = 37] = "LeftArrow";
|
|
72
|
-
Key[Key["UpArrow"] = 38] = "UpArrow";
|
|
73
|
-
Key[Key["RightArrow"] = 39] = "RightArrow";
|
|
74
|
-
Key[Key["DownArrow"] = 40] = "DownArrow";
|
|
75
|
-
Key[Key["Insert"] = 45] = "Insert";
|
|
76
|
-
Key[Key["Delete"] = 46] = "Delete";
|
|
77
|
-
Key[Key["Zero"] = 48] = "Zero";
|
|
78
|
-
Key[Key["ClosedParen"] = 48] = "ClosedParen";
|
|
79
|
-
Key[Key["One"] = 49] = "One";
|
|
80
|
-
Key[Key["ExclamationMark"] = 49] = "ExclamationMark";
|
|
81
|
-
Key[Key["Two"] = 50] = "Two";
|
|
82
|
-
Key[Key["AtSign"] = 50] = "AtSign";
|
|
83
|
-
Key[Key["Three"] = 51] = "Three";
|
|
84
|
-
Key[Key["PoundSign"] = 51] = "PoundSign";
|
|
85
|
-
Key[Key["Hash"] = 51] = "Hash";
|
|
86
|
-
Key[Key["Four"] = 52] = "Four";
|
|
87
|
-
Key[Key["DollarSign"] = 52] = "DollarSign";
|
|
88
|
-
Key[Key["Five"] = 53] = "Five";
|
|
89
|
-
Key[Key["PercentSign"] = 53] = "PercentSign";
|
|
90
|
-
Key[Key["Six"] = 54] = "Six";
|
|
91
|
-
Key[Key["Caret"] = 54] = "Caret";
|
|
92
|
-
Key[Key["Hat"] = 54] = "Hat";
|
|
93
|
-
Key[Key["Seven"] = 55] = "Seven";
|
|
94
|
-
Key[Key["Ampersand"] = 55] = "Ampersand";
|
|
95
|
-
Key[Key["Eight"] = 56] = "Eight";
|
|
96
|
-
Key[Key["Star"] = 56] = "Star";
|
|
97
|
-
Key[Key["Asterik"] = 56] = "Asterik";
|
|
98
|
-
Key[Key["Nine"] = 57] = "Nine";
|
|
99
|
-
Key[Key["OpenParen"] = 57] = "OpenParen";
|
|
100
|
-
Key[Key["A"] = 65] = "A";
|
|
101
|
-
Key[Key["B"] = 66] = "B";
|
|
102
|
-
Key[Key["C"] = 67] = "C";
|
|
103
|
-
Key[Key["D"] = 68] = "D";
|
|
104
|
-
Key[Key["E"] = 69] = "E";
|
|
105
|
-
Key[Key["F"] = 70] = "F";
|
|
106
|
-
Key[Key["G"] = 71] = "G";
|
|
107
|
-
Key[Key["H"] = 72] = "H";
|
|
108
|
-
Key[Key["I"] = 73] = "I";
|
|
109
|
-
Key[Key["J"] = 74] = "J";
|
|
110
|
-
Key[Key["K"] = 75] = "K";
|
|
111
|
-
Key[Key["L"] = 76] = "L";
|
|
112
|
-
Key[Key["M"] = 77] = "M";
|
|
113
|
-
Key[Key["N"] = 78] = "N";
|
|
114
|
-
Key[Key["O"] = 79] = "O";
|
|
115
|
-
Key[Key["P"] = 80] = "P";
|
|
116
|
-
Key[Key["Q"] = 81] = "Q";
|
|
117
|
-
Key[Key["R"] = 82] = "R";
|
|
118
|
-
Key[Key["S"] = 83] = "S";
|
|
119
|
-
Key[Key["T"] = 84] = "T";
|
|
120
|
-
Key[Key["U"] = 85] = "U";
|
|
121
|
-
Key[Key["V"] = 86] = "V";
|
|
122
|
-
Key[Key["W"] = 87] = "W";
|
|
123
|
-
Key[Key["X"] = 88] = "X";
|
|
124
|
-
Key[Key["Y"] = 89] = "Y";
|
|
125
|
-
Key[Key["Z"] = 90] = "Z";
|
|
126
|
-
Key[Key["LeftWindowKey"] = 91] = "LeftWindowKey";
|
|
127
|
-
Key[Key["RightWindowKey"] = 92] = "RightWindowKey";
|
|
128
|
-
Key[Key["SelectKey"] = 93] = "SelectKey";
|
|
129
|
-
Key[Key["Numpad0"] = 96] = "Numpad0";
|
|
130
|
-
Key[Key["Numpad1"] = 97] = "Numpad1";
|
|
131
|
-
Key[Key["Numpad2"] = 98] = "Numpad2";
|
|
132
|
-
Key[Key["Numpad3"] = 99] = "Numpad3";
|
|
133
|
-
Key[Key["Numpad4"] = 100] = "Numpad4";
|
|
134
|
-
Key[Key["Numpad5"] = 101] = "Numpad5";
|
|
135
|
-
Key[Key["Numpad6"] = 102] = "Numpad6";
|
|
136
|
-
Key[Key["Numpad7"] = 103] = "Numpad7";
|
|
137
|
-
Key[Key["Numpad8"] = 104] = "Numpad8";
|
|
138
|
-
Key[Key["Numpad9"] = 105] = "Numpad9";
|
|
139
|
-
Key[Key["Multiply"] = 106] = "Multiply";
|
|
140
|
-
Key[Key["Add"] = 107] = "Add";
|
|
141
|
-
Key[Key["Subtract"] = 109] = "Subtract";
|
|
142
|
-
Key[Key["DecimalPoint"] = 110] = "DecimalPoint";
|
|
143
|
-
Key[Key["Divide"] = 111] = "Divide";
|
|
144
|
-
Key[Key["F1"] = 112] = "F1";
|
|
145
|
-
Key[Key["F2"] = 113] = "F2";
|
|
146
|
-
Key[Key["F3"] = 114] = "F3";
|
|
147
|
-
Key[Key["F4"] = 115] = "F4";
|
|
148
|
-
Key[Key["F5"] = 116] = "F5";
|
|
149
|
-
Key[Key["F6"] = 117] = "F6";
|
|
150
|
-
Key[Key["F7"] = 118] = "F7";
|
|
151
|
-
Key[Key["F8"] = 119] = "F8";
|
|
152
|
-
Key[Key["F9"] = 120] = "F9";
|
|
153
|
-
Key[Key["F10"] = 121] = "F10";
|
|
154
|
-
Key[Key["F11"] = 122] = "F11";
|
|
155
|
-
Key[Key["F12"] = 123] = "F12";
|
|
156
|
-
Key[Key["NumLock"] = 144] = "NumLock";
|
|
157
|
-
Key[Key["ScrollLock"] = 145] = "ScrollLock";
|
|
158
|
-
Key[Key["SemiColon"] = 186] = "SemiColon";
|
|
159
|
-
Key[Key["Equals"] = 187] = "Equals";
|
|
160
|
-
Key[Key["Comma"] = 188] = "Comma";
|
|
161
|
-
Key[Key["Dash"] = 189] = "Dash";
|
|
162
|
-
Key[Key["Period"] = 190] = "Period";
|
|
163
|
-
Key[Key["UnderScore"] = 189] = "UnderScore";
|
|
164
|
-
Key[Key["PlusSign"] = 187] = "PlusSign";
|
|
165
|
-
Key[Key["ForwardSlash"] = 191] = "ForwardSlash";
|
|
166
|
-
Key[Key["Tilde"] = 192] = "Tilde";
|
|
167
|
-
Key[Key["GraveAccent"] = 192] = "GraveAccent";
|
|
168
|
-
Key[Key["OpenBracket"] = 219] = "OpenBracket";
|
|
169
|
-
Key[Key["ClosedBracket"] = 221] = "ClosedBracket";
|
|
170
|
-
Key[Key["Quote"] = 222] = "Quote";
|
|
171
|
-
})(exports.Key || (exports.Key = {}));
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* QuickKeysDirective is used to implement shortcut keys on DOM elements, e.g to submit or reset a form on enter/escape
|
|
175
|
-
* <form quickKeys (quickSubmit)="save()" (quickCancel)="reset()">
|
|
176
|
-
*/
|
|
177
|
-
var QuickKeysDirective = /** @class */ (function () {
|
|
178
|
-
function QuickKeysDirective() {
|
|
179
|
-
/**
|
|
180
|
-
* Emits when ctrl + enter is clicked in combination
|
|
181
|
-
* <form (quickSubmit)="save()">
|
|
182
|
-
*/
|
|
183
|
-
this.quickSubmit = new i0.EventEmitter();
|
|
184
|
-
/**
|
|
185
|
-
* Emits when escape is clicked
|
|
186
|
-
* <form (quickCancel)="cancel()">
|
|
187
|
-
*/
|
|
188
|
-
this.quickCancel = new i0.EventEmitter();
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Listens on the host element for any keyup events
|
|
192
|
-
* @param e
|
|
193
|
-
*/
|
|
194
|
-
QuickKeysDirective.prototype.onKeyUp = function (e) {
|
|
195
|
-
if (this.formGroup) {
|
|
196
|
-
this.handleFormKeys(e);
|
|
197
|
-
}
|
|
198
|
-
this.handleGenericKeydown(e);
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* Handler for generic keydowns, such as cancel events to close drawers
|
|
202
|
-
* @param e
|
|
203
|
-
* void
|
|
204
|
-
*/
|
|
205
|
-
QuickKeysDirective.prototype.handleGenericKeydown = function (e) {
|
|
206
|
-
// Shortcuts that are useful outside of forms
|
|
207
|
-
if (e.keyCode === exports.Key.Escape) {
|
|
208
|
-
this.quickCancel.emit();
|
|
209
|
-
}
|
|
210
|
-
if (!this.formGroup && e.keyCode === exports.Key.Enter && e.ctrlKey) {
|
|
211
|
-
this.quickSubmit.emit();
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* Handler for form specific shortcuts, such as saving the form
|
|
216
|
-
* @param e
|
|
217
|
-
*/
|
|
218
|
-
QuickKeysDirective.prototype.handleFormKeys = function (e) {
|
|
219
|
-
if (this.formGroup.pristine) {
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
if (e.keyCode === exports.Key.Enter && e.ctrlKey) {
|
|
223
|
-
this.quickSubmit.emit();
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
return QuickKeysDirective;
|
|
227
|
-
}());
|
|
228
|
-
QuickKeysDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: QuickKeysDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
229
|
-
QuickKeysDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: QuickKeysDirective, selector: "[stoQuickKeys]", inputs: { quickKeys: "quickKeys", formGroup: "formGroup" }, outputs: { quickSubmit: "quickSubmit", quickCancel: "quickCancel" }, host: { listeners: { "keyup": "onKeyUp($event)" } }, ngImport: i0__namespace });
|
|
230
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: QuickKeysDirective, decorators: [{
|
|
231
|
-
type: i0.Directive,
|
|
232
|
-
args: [{
|
|
233
|
-
selector: '[stoQuickKeys]'
|
|
234
|
-
}]
|
|
235
|
-
}], propDecorators: { quickKeys: [{
|
|
236
|
-
type: i0.Input
|
|
237
|
-
}], formGroup: [{
|
|
238
|
-
type: i0.Input
|
|
239
|
-
}], quickSubmit: [{
|
|
240
|
-
type: i0.Output
|
|
241
|
-
}], quickCancel: [{
|
|
242
|
-
type: i0.Output
|
|
243
|
-
}], onKeyUp: [{
|
|
244
|
-
type: i0.HostListener,
|
|
245
|
-
args: ['keyup', ['$event']]
|
|
246
|
-
}] } });
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Directive that can be placed on mat-form-fields that contains a mat-datepicker.
|
|
250
|
-
* This directive has two tasks:
|
|
251
|
-
* Clicking anywhere on the mat-form-field will open the datepicker dialog
|
|
252
|
-
* When the datepicker is closed in any manner, we shift focus back to the datepicker input
|
|
253
|
-
*/
|
|
254
|
-
var DateFormFieldClickDirective = /** @class */ (function () {
|
|
255
|
-
function DateFormFieldClickDirective() {
|
|
256
|
-
this.destroy$ = new rxjs.Subject();
|
|
257
|
-
}
|
|
258
|
-
DateFormFieldClickDirective.prototype.clickEvent = function () {
|
|
259
|
-
this.stoDateFormFieldClick.open();
|
|
260
|
-
};
|
|
261
|
-
DateFormFieldClickDirective.prototype.ngOnInit = function () {
|
|
262
|
-
var _this = this;
|
|
263
|
-
this.stoDateFormFieldClick.closedStream
|
|
264
|
-
.pipe(operators.takeUntil(this.destroy$)).subscribe(function () { return _this.inputs.first.focus(); });
|
|
265
|
-
};
|
|
266
|
-
DateFormFieldClickDirective.prototype.ngOnDestroy = function () {
|
|
267
|
-
this.destroy$.next(true);
|
|
268
|
-
this.destroy$.complete();
|
|
269
|
-
};
|
|
270
|
-
return DateFormFieldClickDirective;
|
|
271
|
-
}());
|
|
272
|
-
DateFormFieldClickDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: DateFormFieldClickDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
273
|
-
DateFormFieldClickDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: DateFormFieldClickDirective, selector: "[stoDateFormFieldClick]", inputs: { stoDateFormFieldClick: "stoDateFormFieldClick" }, host: { listeners: { "click": "clickEvent()" } }, queries: [{ propertyName: "inputs", predicate: input.MatInput }], ngImport: i0__namespace });
|
|
274
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: DateFormFieldClickDirective, decorators: [{
|
|
275
|
-
type: i0.Directive,
|
|
276
|
-
args: [{
|
|
277
|
-
selector: '[stoDateFormFieldClick]'
|
|
278
|
-
}]
|
|
279
|
-
}], propDecorators: { inputs: [{
|
|
280
|
-
type: i0.ContentChildren,
|
|
281
|
-
args: [input.MatInput]
|
|
282
|
-
}], stoDateFormFieldClick: [{
|
|
283
|
-
type: i0.Input
|
|
284
|
-
}], clickEvent: [{
|
|
285
|
-
type: i0.HostListener,
|
|
286
|
-
args: ['click']
|
|
287
|
-
}] } });
|
|
288
|
-
|
|
289
|
-
var preferenceKey = 'TOPS_IM:UserPreferences';
|
|
290
|
-
var StoUserPreferenceService = /** @class */ (function () {
|
|
291
|
-
function StoUserPreferenceService() {
|
|
292
|
-
this.hasSelectTextOnFocusEnabled = new rxjs.BehaviorSubject(true);
|
|
293
|
-
this.default = {
|
|
294
|
-
hasSelectTextOnFocusEnabled: true
|
|
295
|
-
};
|
|
296
|
-
var sessionPreferences = {};
|
|
297
|
-
var sessionPreferencesString = this.getPreferences();
|
|
298
|
-
try {
|
|
299
|
-
sessionPreferences = JSON.parse(sessionPreferencesString);
|
|
300
|
-
}
|
|
301
|
-
catch (e) {
|
|
302
|
-
console.error('Unable to parse the preferences from local storage. Loading default');
|
|
303
|
-
}
|
|
304
|
-
this.preferences = Object.assign(Object.assign({}, this.default), sessionPreferences);
|
|
305
|
-
this.setHasSelectTextOnFocusEnabled(this.preferences.hasSelectTextOnFocusEnabled);
|
|
306
|
-
}
|
|
307
|
-
StoUserPreferenceService.prototype.setHasSelectTextOnFocusEnabled = function (value) {
|
|
308
|
-
this.hasSelectTextOnFocusEnabled.next(value);
|
|
309
|
-
this.preferences.hasSelectTextOnFocusEnabled = value;
|
|
310
|
-
this.setPreferences(this.preferences);
|
|
311
|
-
};
|
|
312
|
-
StoUserPreferenceService.prototype.getPreferences = function () {
|
|
313
|
-
return sessionStorage.getItem(preferenceKey) || '{}';
|
|
314
|
-
};
|
|
315
|
-
StoUserPreferenceService.prototype.setPreferences = function (value) {
|
|
316
|
-
sessionStorage.setItem(preferenceKey, JSON.stringify(value));
|
|
317
|
-
};
|
|
318
|
-
return StoUserPreferenceService;
|
|
319
|
-
}());
|
|
320
|
-
StoUserPreferenceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
321
|
-
StoUserPreferenceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceService });
|
|
322
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceService, decorators: [{
|
|
323
|
-
type: i0.Injectable
|
|
324
|
-
}], ctorParameters: function () { return []; } });
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* stoSelectTextOnFocus listens for input focus events, and selects the contents of the input
|
|
328
|
-
* A user service is established in {@link StoUserPreferenceService} that allows a user to toggle this feature
|
|
329
|
-
*/
|
|
330
|
-
var StoSelectTextOnFocusDirective = /** @class */ (function () {
|
|
331
|
-
function StoSelectTextOnFocusDirective(elementRef, userPreferenceService) {
|
|
332
|
-
this.elementRef = elementRef;
|
|
333
|
-
this.userPreferenceService = userPreferenceService;
|
|
334
|
-
this.destroyed$ = new rxjs.Subject();
|
|
335
|
-
this._el = this.elementRef.nativeElement;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Listens for focus events on the host (input) element, and focuses if applicable
|
|
339
|
-
*/
|
|
340
|
-
StoSelectTextOnFocusDirective.prototype.onFocus = function () {
|
|
341
|
-
if (this._hasSelectTextOnFocusEnabled && this._el.readOnly === false) {
|
|
342
|
-
this._el.select();
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
/**
|
|
346
|
-
* Subscribes to changes in {@link StoUserPreferenceService}, and binds the variable accordingly.
|
|
347
|
-
*/
|
|
348
|
-
StoSelectTextOnFocusDirective.prototype.ngOnInit = function () {
|
|
349
|
-
var _this = this;
|
|
350
|
-
if (this.userPreferenceService) {
|
|
351
|
-
this.userPreferenceService.hasSelectTextOnFocusEnabled
|
|
352
|
-
.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (hasSelectTextOnFocusEnabled) {
|
|
353
|
-
_this._hasSelectTextOnFocusEnabled = hasSelectTextOnFocusEnabled;
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
StoSelectTextOnFocusDirective.prototype.ngOnDestroy = function () {
|
|
358
|
-
this.destroyed$.next(true);
|
|
359
|
-
this.destroyed$.complete();
|
|
360
|
-
};
|
|
361
|
-
return StoSelectTextOnFocusDirective;
|
|
362
|
-
}());
|
|
363
|
-
StoSelectTextOnFocusDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoSelectTextOnFocusDirective, deps: [{ token: i0__namespace.ElementRef }, { token: StoUserPreferenceService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
364
|
-
StoSelectTextOnFocusDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: StoSelectTextOnFocusDirective, selector: "[stoSelectTextOnFocus]", host: { listeners: { "focus": "onFocus()", "dblclick": "onFocus()" } }, ngImport: i0__namespace });
|
|
365
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoSelectTextOnFocusDirective, decorators: [{
|
|
366
|
-
type: i0.Directive,
|
|
367
|
-
args: [{
|
|
368
|
-
selector: '[stoSelectTextOnFocus]'
|
|
369
|
-
}]
|
|
370
|
-
}], ctorParameters: function () {
|
|
371
|
-
return [{ type: i0__namespace.ElementRef }, { type: StoUserPreferenceService, decorators: [{
|
|
372
|
-
type: i0.Optional
|
|
373
|
-
}] }];
|
|
374
|
-
}, propDecorators: { onFocus: [{
|
|
375
|
-
type: i0.HostListener,
|
|
376
|
-
args: ['focus']
|
|
377
|
-
}, {
|
|
378
|
-
type: i0.HostListener,
|
|
379
|
-
args: ['dblclick']
|
|
380
|
-
}] } });
|
|
381
|
-
|
|
382
|
-
/*! *****************************************************************************
|
|
383
|
-
Copyright (c) Microsoft Corporation.
|
|
384
|
-
|
|
385
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
386
|
-
purpose with or without fee is hereby granted.
|
|
387
|
-
|
|
388
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
389
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
390
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
391
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
392
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
393
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
394
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
395
|
-
***************************************************************************** */
|
|
396
|
-
/* global Reflect, Promise */
|
|
397
|
-
var extendStatics = function (d, b) {
|
|
398
|
-
extendStatics = Object.setPrototypeOf ||
|
|
399
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
400
|
-
function (d, b) { for (var p in b)
|
|
401
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
402
|
-
d[p] = b[p]; };
|
|
403
|
-
return extendStatics(d, b);
|
|
404
|
-
};
|
|
405
|
-
function __extends(d, b) {
|
|
406
|
-
if (typeof b !== "function" && b !== null)
|
|
407
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
408
|
-
extendStatics(d, b);
|
|
409
|
-
function __() { this.constructor = d; }
|
|
410
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
411
|
-
}
|
|
412
|
-
var __assign = function () {
|
|
413
|
-
__assign = Object.assign || function __assign(t) {
|
|
414
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
415
|
-
s = arguments[i];
|
|
416
|
-
for (var p in s)
|
|
417
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
418
|
-
t[p] = s[p];
|
|
419
|
-
}
|
|
420
|
-
return t;
|
|
421
|
-
};
|
|
422
|
-
return __assign.apply(this, arguments);
|
|
423
|
-
};
|
|
424
|
-
function __rest(s, e) {
|
|
425
|
-
var t = {};
|
|
426
|
-
for (var p in s)
|
|
427
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
428
|
-
t[p] = s[p];
|
|
429
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
430
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
431
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
432
|
-
t[p[i]] = s[p[i]];
|
|
433
|
-
}
|
|
434
|
-
return t;
|
|
435
|
-
}
|
|
436
|
-
function __decorate(decorators, target, key, desc) {
|
|
437
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
438
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
439
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
440
|
-
else
|
|
441
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
442
|
-
if (d = decorators[i])
|
|
443
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
444
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
445
|
-
}
|
|
446
|
-
function __param(paramIndex, decorator) {
|
|
447
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
448
|
-
}
|
|
449
|
-
function __metadata(metadataKey, metadataValue) {
|
|
450
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
451
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
452
|
-
}
|
|
453
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
454
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
455
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
456
|
-
function fulfilled(value) { try {
|
|
457
|
-
step(generator.next(value));
|
|
458
|
-
}
|
|
459
|
-
catch (e) {
|
|
460
|
-
reject(e);
|
|
461
|
-
} }
|
|
462
|
-
function rejected(value) { try {
|
|
463
|
-
step(generator["throw"](value));
|
|
464
|
-
}
|
|
465
|
-
catch (e) {
|
|
466
|
-
reject(e);
|
|
467
|
-
} }
|
|
468
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
469
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
function __generator(thisArg, body) {
|
|
473
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
474
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
475
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
476
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
477
|
-
function step(op) {
|
|
478
|
-
if (f)
|
|
479
|
-
throw new TypeError("Generator is already executing.");
|
|
480
|
-
while (_)
|
|
481
|
-
try {
|
|
482
|
-
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)
|
|
483
|
-
return t;
|
|
484
|
-
if (y = 0, t)
|
|
485
|
-
op = [op[0] & 2, t.value];
|
|
486
|
-
switch (op[0]) {
|
|
487
|
-
case 0:
|
|
488
|
-
case 1:
|
|
489
|
-
t = op;
|
|
490
|
-
break;
|
|
491
|
-
case 4:
|
|
492
|
-
_.label++;
|
|
493
|
-
return { value: op[1], done: false };
|
|
494
|
-
case 5:
|
|
495
|
-
_.label++;
|
|
496
|
-
y = op[1];
|
|
497
|
-
op = [0];
|
|
498
|
-
continue;
|
|
499
|
-
case 7:
|
|
500
|
-
op = _.ops.pop();
|
|
501
|
-
_.trys.pop();
|
|
502
|
-
continue;
|
|
503
|
-
default:
|
|
504
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
505
|
-
_ = 0;
|
|
506
|
-
continue;
|
|
507
|
-
}
|
|
508
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
509
|
-
_.label = op[1];
|
|
510
|
-
break;
|
|
511
|
-
}
|
|
512
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
513
|
-
_.label = t[1];
|
|
514
|
-
t = op;
|
|
515
|
-
break;
|
|
516
|
-
}
|
|
517
|
-
if (t && _.label < t[2]) {
|
|
518
|
-
_.label = t[2];
|
|
519
|
-
_.ops.push(op);
|
|
520
|
-
break;
|
|
521
|
-
}
|
|
522
|
-
if (t[2])
|
|
523
|
-
_.ops.pop();
|
|
524
|
-
_.trys.pop();
|
|
525
|
-
continue;
|
|
526
|
-
}
|
|
527
|
-
op = body.call(thisArg, _);
|
|
528
|
-
}
|
|
529
|
-
catch (e) {
|
|
530
|
-
op = [6, e];
|
|
531
|
-
y = 0;
|
|
532
|
-
}
|
|
533
|
-
finally {
|
|
534
|
-
f = t = 0;
|
|
535
|
-
}
|
|
536
|
-
if (op[0] & 5)
|
|
537
|
-
throw op[1];
|
|
538
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
542
|
-
if (k2 === undefined)
|
|
543
|
-
k2 = k;
|
|
544
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
545
|
-
}) : (function (o, m, k, k2) {
|
|
546
|
-
if (k2 === undefined)
|
|
547
|
-
k2 = k;
|
|
548
|
-
o[k2] = m[k];
|
|
549
|
-
});
|
|
550
|
-
function __exportStar(m, o) {
|
|
551
|
-
for (var p in m)
|
|
552
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
553
|
-
__createBinding(o, m, p);
|
|
554
|
-
}
|
|
555
|
-
function __values(o) {
|
|
556
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
557
|
-
if (m)
|
|
558
|
-
return m.call(o);
|
|
559
|
-
if (o && typeof o.length === "number")
|
|
560
|
-
return {
|
|
561
|
-
next: function () {
|
|
562
|
-
if (o && i >= o.length)
|
|
563
|
-
o = void 0;
|
|
564
|
-
return { value: o && o[i++], done: !o };
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
568
|
-
}
|
|
569
|
-
function __read(o, n) {
|
|
570
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
571
|
-
if (!m)
|
|
572
|
-
return o;
|
|
573
|
-
var i = m.call(o), r, ar = [], e;
|
|
574
|
-
try {
|
|
575
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
576
|
-
ar.push(r.value);
|
|
577
|
-
}
|
|
578
|
-
catch (error) {
|
|
579
|
-
e = { error: error };
|
|
580
|
-
}
|
|
581
|
-
finally {
|
|
582
|
-
try {
|
|
583
|
-
if (r && !r.done && (m = i["return"]))
|
|
584
|
-
m.call(i);
|
|
585
|
-
}
|
|
586
|
-
finally {
|
|
587
|
-
if (e)
|
|
588
|
-
throw e.error;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
return ar;
|
|
592
|
-
}
|
|
593
|
-
/** @deprecated */
|
|
594
|
-
function __spread() {
|
|
595
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
596
|
-
ar = ar.concat(__read(arguments[i]));
|
|
597
|
-
return ar;
|
|
598
|
-
}
|
|
599
|
-
/** @deprecated */
|
|
600
|
-
function __spreadArrays() {
|
|
601
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
602
|
-
s += arguments[i].length;
|
|
603
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
604
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
605
|
-
r[k] = a[j];
|
|
606
|
-
return r;
|
|
607
|
-
}
|
|
608
|
-
function __spreadArray(to, from) {
|
|
609
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
610
|
-
to[j] = from[i];
|
|
611
|
-
return to;
|
|
612
|
-
}
|
|
613
|
-
function __await(v) {
|
|
614
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
615
|
-
}
|
|
616
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
617
|
-
if (!Symbol.asyncIterator)
|
|
618
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
619
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
620
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
621
|
-
function verb(n) { if (g[n])
|
|
622
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
623
|
-
function resume(n, v) { try {
|
|
624
|
-
step(g[n](v));
|
|
625
|
-
}
|
|
626
|
-
catch (e) {
|
|
627
|
-
settle(q[0][3], e);
|
|
628
|
-
} }
|
|
629
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
630
|
-
function fulfill(value) { resume("next", value); }
|
|
631
|
-
function reject(value) { resume("throw", value); }
|
|
632
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
633
|
-
resume(q[0][0], q[0][1]); }
|
|
634
|
-
}
|
|
635
|
-
function __asyncDelegator(o) {
|
|
636
|
-
var i, p;
|
|
637
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
638
|
-
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; }
|
|
639
|
-
}
|
|
640
|
-
function __asyncValues(o) {
|
|
641
|
-
if (!Symbol.asyncIterator)
|
|
642
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
643
|
-
var m = o[Symbol.asyncIterator], i;
|
|
644
|
-
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);
|
|
645
|
-
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); }); }; }
|
|
646
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
647
|
-
}
|
|
648
|
-
function __makeTemplateObject(cooked, raw) {
|
|
649
|
-
if (Object.defineProperty) {
|
|
650
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
651
|
-
}
|
|
652
|
-
else {
|
|
653
|
-
cooked.raw = raw;
|
|
654
|
-
}
|
|
655
|
-
return cooked;
|
|
656
|
-
}
|
|
657
|
-
;
|
|
658
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
659
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
660
|
-
}) : function (o, v) {
|
|
661
|
-
o["default"] = v;
|
|
662
|
-
};
|
|
663
|
-
function __importStar(mod) {
|
|
664
|
-
if (mod && mod.__esModule)
|
|
665
|
-
return mod;
|
|
666
|
-
var result = {};
|
|
667
|
-
if (mod != null)
|
|
668
|
-
for (var k in mod)
|
|
669
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
670
|
-
__createBinding(result, mod, k);
|
|
671
|
-
__setModuleDefault(result, mod);
|
|
672
|
-
return result;
|
|
673
|
-
}
|
|
674
|
-
function __importDefault(mod) {
|
|
675
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
676
|
-
}
|
|
677
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
678
|
-
if (kind === "a" && !f)
|
|
679
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
680
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
681
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
682
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
683
|
-
}
|
|
684
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
685
|
-
if (kind === "m")
|
|
686
|
-
throw new TypeError("Private method is not writable");
|
|
687
|
-
if (kind === "a" && !f)
|
|
688
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
689
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
690
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
691
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
var getClass = function (width, small, large) {
|
|
695
|
-
if (small === void 0) { small = 400; }
|
|
696
|
-
if (large === void 0) { large = 800; }
|
|
697
|
-
var cols = 1;
|
|
698
|
-
if (width > small) {
|
|
699
|
-
cols += 1;
|
|
700
|
-
}
|
|
701
|
-
if (width > large) {
|
|
702
|
-
cols += 2;
|
|
703
|
-
}
|
|
704
|
-
return "sto-f-grid--" + cols;
|
|
705
|
-
};
|
|
706
|
-
var ALL_GRIDS = ['sto-f-grid--1', 'sto-f-grid--2', 'sto-f-grid--4', 'sto-f-grid--6'];
|
|
707
|
-
var StoGridSpacerDirective = /** @class */ (function () {
|
|
708
|
-
function StoGridSpacerDirective() {
|
|
709
|
-
this.useClass = true;
|
|
710
|
-
}
|
|
711
|
-
return StoGridSpacerDirective;
|
|
712
|
-
}());
|
|
713
|
-
StoGridSpacerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoGridSpacerDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
714
|
-
StoGridSpacerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: StoGridSpacerDirective, selector: "[stoGridSpacer]", host: { properties: { "class.sto-f-grid__col": "this.useClass", "class.sto-f-grid__col--spacer": "this.useClass" } }, ngImport: i0__namespace });
|
|
715
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoGridSpacerDirective, decorators: [{
|
|
716
|
-
type: i0.Directive,
|
|
717
|
-
args: [{ selector: '[stoGridSpacer]' }]
|
|
718
|
-
}], propDecorators: { useClass: [{
|
|
719
|
-
type: i0.HostBinding,
|
|
720
|
-
args: ['class.sto-f-grid__col']
|
|
721
|
-
}, {
|
|
722
|
-
type: i0.HostBinding,
|
|
723
|
-
args: ['class.sto-f-grid__col--spacer']
|
|
724
|
-
}] } });
|
|
725
|
-
var StoGridColumnDirective = /** @class */ (function () {
|
|
726
|
-
function StoGridColumnDirective() {
|
|
727
|
-
this.useClass = true;
|
|
728
|
-
}
|
|
729
|
-
return StoGridColumnDirective;
|
|
730
|
-
}());
|
|
731
|
-
StoGridColumnDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoGridColumnDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
732
|
-
StoGridColumnDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: StoGridColumnDirective, selector: "[stoGridColumn]", inputs: { stoGridColumnDouble: "stoGridColumnDouble" }, host: { properties: { "class.sto-f-grid__col": "this.useClass", "class.sto-f-grid__col--2": "this.stoGridColumnDouble" } }, ngImport: i0__namespace });
|
|
733
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoGridColumnDirective, decorators: [{
|
|
734
|
-
type: i0.Directive,
|
|
735
|
-
args: [{ selector: '[stoGridColumn]' }]
|
|
736
|
-
}], propDecorators: { useClass: [{
|
|
737
|
-
type: i0.HostBinding,
|
|
738
|
-
args: ['class.sto-f-grid__col']
|
|
739
|
-
}], stoGridColumnDouble: [{
|
|
740
|
-
type: i0.HostBinding,
|
|
741
|
-
args: ['class.sto-f-grid__col--2']
|
|
742
|
-
}, {
|
|
743
|
-
type: i0.Input
|
|
744
|
-
}] } });
|
|
745
|
-
var StoGridDirective = /** @class */ (function () {
|
|
746
|
-
function StoGridDirective(elRef) {
|
|
747
|
-
this.elRef = elRef;
|
|
748
|
-
this.maxWidth = 1000;
|
|
749
|
-
this.minWidth = 250;
|
|
750
|
-
this.baseClass = true;
|
|
751
|
-
}
|
|
752
|
-
StoGridDirective.prototype.ngAfterViewInit = function () {
|
|
753
|
-
var _this = this;
|
|
754
|
-
var el = this.elRef.nativeElement;
|
|
755
|
-
this.observer = new ResizeObserver(function (entries) {
|
|
756
|
-
var e_1, _a, _b;
|
|
757
|
-
try {
|
|
758
|
-
for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {
|
|
759
|
-
var entry = entries_1_1.value;
|
|
760
|
-
var cr = entry.contentRect;
|
|
761
|
-
var width = cr.width;
|
|
762
|
-
var breakpoints = _this.breakpoints || { 2: 400, 4: 800 };
|
|
763
|
-
var gridType = getClass(width, breakpoints[2], breakpoints[4]);
|
|
764
|
-
if (!el.classList.contains(gridType)) {
|
|
765
|
-
(_b = el.classList).remove.apply(_b, __spreadArray([], __read(ALL_GRIDS)));
|
|
766
|
-
el.classList.add(gridType);
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
771
|
-
finally {
|
|
772
|
-
try {
|
|
773
|
-
if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1);
|
|
774
|
-
}
|
|
775
|
-
finally { if (e_1) throw e_1.error; }
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
this.observer.observe(this.elRef.nativeElement);
|
|
779
|
-
};
|
|
780
|
-
StoGridDirective.prototype.ngOnDestroy = function () {
|
|
781
|
-
if (this.observer) {
|
|
782
|
-
this.observer.disconnect();
|
|
783
|
-
}
|
|
784
|
-
};
|
|
785
|
-
return StoGridDirective;
|
|
786
|
-
}());
|
|
787
|
-
StoGridDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoGridDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
788
|
-
StoGridDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: StoGridDirective, selector: "[stoGrid]", inputs: { maxWidth: "maxWidth", minWidth: "minWidth", breakpoints: "breakpoints" }, host: { properties: { "style.max-width.px": "this.maxWidth", "style.min-width.px": "this.minWidth", "class.sto-f-grid": "this.baseClass" } }, queries: [{ propertyName: "columns", predicate: StoGridColumnDirective, read: i0.ElementRef }], exportAs: ["stoGrid"], ngImport: i0__namespace });
|
|
789
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoGridDirective, decorators: [{
|
|
790
|
-
type: i0.Directive,
|
|
791
|
-
args: [{
|
|
792
|
-
selector: '[stoGrid]',
|
|
793
|
-
exportAs: 'stoGrid'
|
|
794
|
-
}]
|
|
795
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { maxWidth: [{
|
|
796
|
-
type: i0.HostBinding,
|
|
797
|
-
args: ['style.max-width.px']
|
|
798
|
-
}, {
|
|
799
|
-
type: i0.Input
|
|
800
|
-
}], minWidth: [{
|
|
801
|
-
type: i0.HostBinding,
|
|
802
|
-
args: ['style.min-width.px']
|
|
803
|
-
}, {
|
|
804
|
-
type: i0.Input
|
|
805
|
-
}], baseClass: [{
|
|
806
|
-
type: i0.HostBinding,
|
|
807
|
-
args: ['class.sto-f-grid']
|
|
808
|
-
}], columns: [{
|
|
809
|
-
type: i0.ContentChildren,
|
|
810
|
-
args: [StoGridColumnDirective, { read: i0.ElementRef }]
|
|
811
|
-
}], breakpoints: [{
|
|
812
|
-
type: i0.Input
|
|
813
|
-
}] } });
|
|
814
|
-
|
|
815
|
-
var MenuOverlayDirective = /** @class */ (function () {
|
|
816
|
-
function MenuOverlayDirective(trigger, el) {
|
|
817
|
-
var _this = this;
|
|
818
|
-
this.trigger = trigger;
|
|
819
|
-
this.left = 0;
|
|
820
|
-
this.top = 0;
|
|
821
|
-
this.menu = trigger.menu;
|
|
822
|
-
this.trigger.menuOpened.pipe(operators.switchMap(function () { return rxjs.fromEvent(document, 'click')
|
|
823
|
-
.pipe(operators.take(1)); })).subscribe(function () {
|
|
824
|
-
_this.trigger.closeMenu();
|
|
825
|
-
});
|
|
826
|
-
this.setStyle(el.nativeElement);
|
|
827
|
-
}
|
|
828
|
-
MenuOverlayDirective.prototype.updatePosition = function (event) {
|
|
829
|
-
this.left = event.x;
|
|
830
|
-
this.top = event.y;
|
|
831
|
-
};
|
|
832
|
-
MenuOverlayDirective.prototype.setStyle = function (element) {
|
|
833
|
-
element.style.overflow = 'hidden';
|
|
834
|
-
element.style.position = 'fixed';
|
|
835
|
-
element.style.height = '1px';
|
|
836
|
-
element.style.width = '1px';
|
|
837
|
-
};
|
|
838
|
-
return MenuOverlayDirective;
|
|
839
|
-
}());
|
|
840
|
-
MenuOverlayDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: MenuOverlayDirective, deps: [{ token: i1__namespace.MatMenuTrigger, host: true }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
841
|
-
MenuOverlayDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: MenuOverlayDirective, selector: "[stoMenuOverlay]", host: { properties: { "style.left.px": "this.left", "style.top.px": "this.top" } }, exportAs: ["stoMenuOverlay"], ngImport: i0__namespace });
|
|
842
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: MenuOverlayDirective, decorators: [{
|
|
843
|
-
type: i0.Directive,
|
|
844
|
-
args: [{
|
|
845
|
-
selector: '[stoMenuOverlay]',
|
|
846
|
-
exportAs: 'stoMenuOverlay'
|
|
847
|
-
}]
|
|
848
|
-
}], ctorParameters: function () {
|
|
849
|
-
return [{ type: i1__namespace.MatMenuTrigger, decorators: [{
|
|
850
|
-
type: i0.Host
|
|
851
|
-
}] }, { type: i0__namespace.ElementRef }];
|
|
852
|
-
}, propDecorators: { left: [{
|
|
853
|
-
type: i0.HostBinding,
|
|
854
|
-
args: ['style.left.px']
|
|
855
|
-
}], top: [{
|
|
856
|
-
type: i0.HostBinding,
|
|
857
|
-
args: ['style.top.px']
|
|
858
|
-
}] } });
|
|
859
|
-
|
|
860
|
-
var ContextMenuDirective = /** @class */ (function () {
|
|
861
|
-
function ContextMenuDirective() {
|
|
862
|
-
}
|
|
863
|
-
ContextMenuDirective.prototype.contextMenu = function (event) {
|
|
864
|
-
var _this = this;
|
|
865
|
-
event.preventDefault();
|
|
866
|
-
if (this.menuTrigger.menuOpen) {
|
|
867
|
-
this.menuTrigger.closeMenu();
|
|
868
|
-
}
|
|
869
|
-
this.overlayDirective.updatePosition(event);
|
|
870
|
-
setTimeout(function () {
|
|
871
|
-
_this.menuTrigger.menuData = _this.menuContext;
|
|
872
|
-
_this.menuTrigger.openMenu();
|
|
873
|
-
}, 150);
|
|
874
|
-
};
|
|
875
|
-
return ContextMenuDirective;
|
|
876
|
-
}());
|
|
877
|
-
ContextMenuDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: ContextMenuDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
878
|
-
ContextMenuDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: ContextMenuDirective, selector: "[stoContextMenu]", inputs: { menuTrigger: "menuTrigger", overlayDirective: "overlayDirective", menuContext: "menuContext" }, host: { listeners: { "contextmenu": "contextMenu($event)" } }, ngImport: i0__namespace });
|
|
879
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: ContextMenuDirective, decorators: [{
|
|
880
|
-
type: i0.Directive,
|
|
881
|
-
args: [{
|
|
882
|
-
selector: '[stoContextMenu]'
|
|
883
|
-
}]
|
|
884
|
-
}], propDecorators: { menuTrigger: [{
|
|
885
|
-
type: i0.Input
|
|
886
|
-
}], overlayDirective: [{
|
|
887
|
-
type: i0.Input
|
|
888
|
-
}], menuContext: [{
|
|
889
|
-
type: i0.Input
|
|
890
|
-
}], contextMenu: [{
|
|
891
|
-
type: i0.HostListener,
|
|
892
|
-
args: ['contextmenu', ['$event']]
|
|
893
|
-
}] } });
|
|
894
|
-
|
|
895
|
-
var StoDirectivesModule = /** @class */ (function () {
|
|
896
|
-
function StoDirectivesModule() {
|
|
897
|
-
}
|
|
898
|
-
return StoDirectivesModule;
|
|
899
|
-
}());
|
|
900
|
-
StoDirectivesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoDirectivesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
901
|
-
StoDirectivesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoDirectivesModule, declarations: [QuickKeysDirective,
|
|
902
|
-
DateFormFieldClickDirective,
|
|
903
|
-
StoSelectTextOnFocusDirective,
|
|
904
|
-
StoGridDirective,
|
|
905
|
-
StoGridColumnDirective,
|
|
906
|
-
StoGridSpacerDirective,
|
|
907
|
-
MenuOverlayDirective,
|
|
908
|
-
ContextMenuDirective], imports: [i4.CommonModule, layout.LayoutModule], exports: [QuickKeysDirective,
|
|
909
|
-
DateFormFieldClickDirective,
|
|
910
|
-
StoSelectTextOnFocusDirective,
|
|
911
|
-
StoGridDirective,
|
|
912
|
-
StoGridColumnDirective,
|
|
913
|
-
StoGridSpacerDirective,
|
|
914
|
-
MenuOverlayDirective,
|
|
915
|
-
ContextMenuDirective] });
|
|
916
|
-
StoDirectivesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoDirectivesModule, imports: [[i4.CommonModule, layout.LayoutModule]] });
|
|
917
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoDirectivesModule, decorators: [{
|
|
918
|
-
type: i0.NgModule,
|
|
919
|
-
args: [{
|
|
920
|
-
imports: [i4.CommonModule, layout.LayoutModule],
|
|
921
|
-
declarations: [
|
|
922
|
-
QuickKeysDirective,
|
|
923
|
-
DateFormFieldClickDirective,
|
|
924
|
-
StoSelectTextOnFocusDirective,
|
|
925
|
-
StoGridDirective,
|
|
926
|
-
StoGridColumnDirective,
|
|
927
|
-
StoGridSpacerDirective,
|
|
928
|
-
MenuOverlayDirective,
|
|
929
|
-
ContextMenuDirective
|
|
930
|
-
],
|
|
931
|
-
exports: [
|
|
932
|
-
QuickKeysDirective,
|
|
933
|
-
DateFormFieldClickDirective,
|
|
934
|
-
StoSelectTextOnFocusDirective,
|
|
935
|
-
StoGridDirective,
|
|
936
|
-
StoGridColumnDirective,
|
|
937
|
-
StoGridSpacerDirective,
|
|
938
|
-
MenuOverlayDirective,
|
|
939
|
-
ContextMenuDirective
|
|
940
|
-
]
|
|
941
|
-
}]
|
|
942
|
-
}] });
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* Formats numbers to use our standard formatting (d ddd,ddd)
|
|
946
|
-
*
|
|
947
|
-
* @example
|
|
948
|
-
*
|
|
949
|
-
* {{ 1234,32 | numberFormat }} -> 1 234,320
|
|
950
|
-
* {{ 1234,32 | numberFormat:'M3' }} -> 1 234,320 M3
|
|
951
|
-
* {{ -1234,32 | numberFormat:'M3':true }} -> 1 234,320 M3
|
|
952
|
-
* {{ 1234,32 | numberFormat:'M3':false:false }} -> 1 234 M3
|
|
953
|
-
* {{ 1234,32 | numberFormat:'M3':false:true:5 }} -> 1 234,32000 M3
|
|
954
|
-
*/
|
|
955
|
-
var NumberFormatPipe = /** @class */ (function () {
|
|
956
|
-
function NumberFormatPipe() {
|
|
957
|
-
}
|
|
958
|
-
NumberFormatPipe.prototype.transform = function (value, unit, abs, appendDecimals, numberOfDecimals) {
|
|
959
|
-
if (unit === void 0) { unit = ''; }
|
|
960
|
-
if (appendDecimals === void 0) { appendDecimals = true; }
|
|
961
|
-
if (numberOfDecimals === void 0) { numberOfDecimals = 3; }
|
|
962
|
-
if (value !== 0 && !value) {
|
|
963
|
-
return '';
|
|
964
|
-
}
|
|
965
|
-
if (typeof value === 'string') {
|
|
966
|
-
var newValue = parseFloat(value);
|
|
967
|
-
if (isNaN(newValue)) {
|
|
968
|
-
return null;
|
|
969
|
-
}
|
|
970
|
-
value = newValue;
|
|
971
|
-
}
|
|
972
|
-
if (abs) {
|
|
973
|
-
value = Math.abs(value);
|
|
974
|
-
}
|
|
975
|
-
// We absolute the value to ensure that the rounding rules is always away from zero.
|
|
976
|
-
// 1.5 => 2 and -1.5 => -2
|
|
977
|
-
var isNegativeNumber = value < 0;
|
|
978
|
-
value = Math.abs(value);
|
|
979
|
-
if (!appendDecimals) {
|
|
980
|
-
value = Math.round(value);
|
|
981
|
-
}
|
|
982
|
-
if (!isNaN(value) && appendDecimals) {
|
|
983
|
-
value = parseFloat(this.toFixed(value, numberOfDecimals));
|
|
984
|
-
}
|
|
985
|
-
// Turn negative numbers back, but only if value is not -0
|
|
986
|
-
// eslint-disable-next-line no-compare-neg-zero
|
|
987
|
-
if (isNegativeNumber && value !== -0) {
|
|
988
|
-
value = value * -1;
|
|
989
|
-
}
|
|
990
|
-
var localized = this.prettyPrintValue(value, appendDecimals, numberOfDecimals);
|
|
991
|
-
return localized.replace(/,/g, ' ').replace('.', ',') + ("" + (unit ? ' ' + unit : ''));
|
|
992
|
-
};
|
|
993
|
-
NumberFormatPipe.prototype.prettyPrintValue = function (value, appendDecimals, numberOfDecimals) {
|
|
994
|
-
var intlOptions = { minimumFractionDigits: numberOfDecimals, maximumFractionDigits: numberOfDecimals };
|
|
995
|
-
var intl = new Intl.NumberFormat('en-US', intlOptions).format(value);
|
|
996
|
-
var split = intl.split('.');
|
|
997
|
-
var localized = split[0];
|
|
998
|
-
if (appendDecimals) {
|
|
999
|
-
var decimals = split.length === 2 ? split[1] : '';
|
|
1000
|
-
split[1] = decimals.padEnd(numberOfDecimals, '0');
|
|
1001
|
-
localized = split.join('.');
|
|
1002
|
-
}
|
|
1003
|
-
return localized;
|
|
1004
|
-
};
|
|
1005
|
-
// Normal toFixed has some issues: https://stackoverflow.com/questions/10015027/javascript-tofixed-not-rounding
|
|
1006
|
-
NumberFormatPipe.prototype.toFixed = function (num, precision) {
|
|
1007
|
-
// This method also has some issues - namely, it's unable to parse negative numbers with huge floating points
|
|
1008
|
-
// -8.185452315956354e-12 becomes NaN
|
|
1009
|
-
var returnValue = (+(Math.round(+(num + 'e' + precision)) + 'e' + -precision));
|
|
1010
|
-
if (isNaN(returnValue)) {
|
|
1011
|
-
returnValue = parseFloat(num.toFixed(precision));
|
|
1012
|
-
}
|
|
1013
|
-
return returnValue.toFixed(precision);
|
|
1014
|
-
};
|
|
1015
|
-
return NumberFormatPipe;
|
|
1016
|
-
}());
|
|
1017
|
-
NumberFormatPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: NumberFormatPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1018
|
-
NumberFormatPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: NumberFormatPipe, name: "numberFormat" });
|
|
1019
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: NumberFormatPipe, decorators: [{
|
|
1020
|
-
type: i0.Pipe,
|
|
1021
|
-
args: [{
|
|
1022
|
-
name: 'numberFormat'
|
|
1023
|
-
}]
|
|
1024
|
-
}] });
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* Pipe used to transform numbers to a currency format
|
|
1028
|
-
*
|
|
1029
|
-
* @example
|
|
1030
|
-
*
|
|
1031
|
-
* <span>{{ 5000.5824 | currentFormat:'$':3 }}</span>
|
|
1032
|
-
* Results in
|
|
1033
|
-
* <span>5 000,582 $</span>
|
|
1034
|
-
*/
|
|
1035
|
-
var CurrencyFormatPipe = /** @class */ (function () {
|
|
1036
|
-
function CurrencyFormatPipe() {
|
|
1037
|
-
}
|
|
1038
|
-
CurrencyFormatPipe.prototype.transform = function (value, unit, maximumFractionDigits) {
|
|
1039
|
-
if (unit === void 0) { unit = ''; }
|
|
1040
|
-
if (maximumFractionDigits === void 0) { maximumFractionDigits = 3; }
|
|
1041
|
-
if (!value) {
|
|
1042
|
-
return null;
|
|
1043
|
-
}
|
|
1044
|
-
if (typeof value === 'string') {
|
|
1045
|
-
value = parseFloat(value);
|
|
1046
|
-
if (isNaN(value)) {
|
|
1047
|
-
return '';
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
var intl = new Intl.NumberFormat('en-US', { maximumFractionDigits: maximumFractionDigits }).format(value);
|
|
1051
|
-
return intl.replace(/,/g, ' ').replace('.', ',') + (" " + unit);
|
|
1052
|
-
};
|
|
1053
|
-
return CurrencyFormatPipe;
|
|
1054
|
-
}());
|
|
1055
|
-
CurrencyFormatPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: CurrencyFormatPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1056
|
-
CurrencyFormatPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: CurrencyFormatPipe, name: "currencyFormat" });
|
|
1057
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: CurrencyFormatPipe, decorators: [{
|
|
1058
|
-
type: i0.Pipe,
|
|
1059
|
-
args: [{
|
|
1060
|
-
name: 'currencyFormat'
|
|
1061
|
-
}]
|
|
1062
|
-
}] });
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* Transforms an Object to an Array.
|
|
1066
|
-
*
|
|
1067
|
-
* @example
|
|
1068
|
-
*
|
|
1069
|
-
* public obj = {a: 1, b: 2, c: 3};
|
|
1070
|
-
* <span *ngFor="let key of obj | keys "> {{ obj[key] }}, </span> -> 1, 2, 3,
|
|
1071
|
-
*/
|
|
1072
|
-
var KeysPipe = /** @class */ (function () {
|
|
1073
|
-
function KeysPipe() {
|
|
1074
|
-
}
|
|
1075
|
-
KeysPipe.prototype.transform = function (value) {
|
|
1076
|
-
if (value) {
|
|
1077
|
-
return Object.keys(value);
|
|
1078
|
-
}
|
|
1079
|
-
return [];
|
|
1080
|
-
};
|
|
1081
|
-
return KeysPipe;
|
|
1082
|
-
}());
|
|
1083
|
-
KeysPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: KeysPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1084
|
-
KeysPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: KeysPipe, name: "keys" });
|
|
1085
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: KeysPipe, decorators: [{
|
|
1086
|
-
type: i0.Pipe,
|
|
1087
|
-
args: [{
|
|
1088
|
-
name: 'keys'
|
|
1089
|
-
}]
|
|
1090
|
-
}] });
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* Pipe used to transform dates, based on our default formats.
|
|
1094
|
-
*
|
|
1095
|
-
* @example
|
|
1096
|
-
*
|
|
1097
|
-
* public date = "2018-08-27 14:00:30"
|
|
1098
|
-
* <span>{{ date | dateFormat }}</span> -> Aug 27, 2018
|
|
1099
|
-
* <span>{{ date | dateFormat:'long' }}</span> -> Monday Aug 27, 2018
|
|
1100
|
-
*/
|
|
1101
|
-
var DateFormatPipe = /** @class */ (function () {
|
|
1102
|
-
function DateFormatPipe() {
|
|
1103
|
-
}
|
|
1104
|
-
DateFormatPipe.prototype.transform = function (value, format) {
|
|
1105
|
-
if (!value) {
|
|
1106
|
-
return null;
|
|
1107
|
-
}
|
|
1108
|
-
if (typeof value === 'string') {
|
|
1109
|
-
value = new Date(value);
|
|
1110
|
-
}
|
|
1111
|
-
switch (format) {
|
|
1112
|
-
case 'long':
|
|
1113
|
-
return dateFns.format(value, 'EEEE MMM d, yyyy');
|
|
1114
|
-
case 'short':
|
|
1115
|
-
return dateFns.format(value, 'yyyy-MM-dd');
|
|
1116
|
-
case 'datetime':
|
|
1117
|
-
return dateFns.format(value, 'MMM d, yyyy, HH:mm');
|
|
1118
|
-
case 'datetimezone':
|
|
1119
|
-
return dateFns.format(value, "MMM d, yyyy, HH:mm:ss ('UTC'xxx)");
|
|
1120
|
-
case 'datetime-long':
|
|
1121
|
-
return dateFns.format(value, 'EEEE MMM dd, yyyy, HH:mm');
|
|
1122
|
-
case 'datetime-short':
|
|
1123
|
-
return dateFns.format(value, 'yyyy-MM-dd, HH:mm');
|
|
1124
|
-
default:
|
|
1125
|
-
return dateFns.format(value, 'MMM d, yyyy');
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
return DateFormatPipe;
|
|
1129
|
-
}());
|
|
1130
|
-
DateFormatPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: DateFormatPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1131
|
-
DateFormatPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: DateFormatPipe, name: "formatDate" });
|
|
1132
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: DateFormatPipe, decorators: [{
|
|
1133
|
-
type: i0.Pipe,
|
|
1134
|
-
args: [{
|
|
1135
|
-
name: 'formatDate'
|
|
1136
|
-
}]
|
|
1137
|
-
}] });
|
|
1138
|
-
|
|
1139
|
-
var GetUnit = /** @class */ (function () {
|
|
1140
|
-
function GetUnit() {
|
|
1141
|
-
}
|
|
1142
|
-
GetUnit.prototype.transform = function (value, withParens) {
|
|
1143
|
-
if (value) {
|
|
1144
|
-
var arr = value.split('(');
|
|
1145
|
-
if (arr.length > 0) {
|
|
1146
|
-
if (withParens) {
|
|
1147
|
-
value = '(' + arr[1];
|
|
1148
|
-
}
|
|
1149
|
-
else {
|
|
1150
|
-
arr[1].slice(0, -1);
|
|
1151
|
-
value = arr[1].slice(0, -1);
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
return value;
|
|
1156
|
-
};
|
|
1157
|
-
return GetUnit;
|
|
1158
|
-
}());
|
|
1159
|
-
GetUnit.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: GetUnit, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1160
|
-
GetUnit.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: GetUnit, name: "getUnit" });
|
|
1161
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: GetUnit, decorators: [{
|
|
1162
|
-
type: i0.Pipe,
|
|
1163
|
-
args: [{ name: 'getUnit' }]
|
|
1164
|
-
}] });
|
|
1165
|
-
var ExcludeUnit = /** @class */ (function () {
|
|
1166
|
-
function ExcludeUnit() {
|
|
1167
|
-
}
|
|
1168
|
-
ExcludeUnit.prototype.transform = function (value) {
|
|
1169
|
-
if (value) {
|
|
1170
|
-
var arr = value.split('(');
|
|
1171
|
-
if (arr.length > 0) {
|
|
1172
|
-
value = arr[0];
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
return value;
|
|
1176
|
-
};
|
|
1177
|
-
return ExcludeUnit;
|
|
1178
|
-
}());
|
|
1179
|
-
ExcludeUnit.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: ExcludeUnit, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1180
|
-
ExcludeUnit.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: ExcludeUnit, name: "excludeUnit" });
|
|
1181
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: ExcludeUnit, decorators: [{
|
|
1182
|
-
type: i0.Pipe,
|
|
1183
|
-
args: [{ name: 'excludeUnit' }]
|
|
1184
|
-
}] });
|
|
1185
|
-
|
|
1186
|
-
var YesNoPipe = /** @class */ (function () {
|
|
1187
|
-
function YesNoPipe() {
|
|
1188
|
-
}
|
|
1189
|
-
YesNoPipe.prototype.transform = function (value, ignoreNulls) {
|
|
1190
|
-
if (ignoreNulls === void 0) { ignoreNulls = false; }
|
|
1191
|
-
var valueStr = '';
|
|
1192
|
-
if (ignoreNulls) {
|
|
1193
|
-
valueStr = value ? 'Yes' : value === false ? 'No' : '';
|
|
1194
|
-
}
|
|
1195
|
-
else {
|
|
1196
|
-
valueStr = value ? 'Yes' : 'No';
|
|
1197
|
-
}
|
|
1198
|
-
return valueStr;
|
|
1199
|
-
};
|
|
1200
|
-
return YesNoPipe;
|
|
1201
|
-
}());
|
|
1202
|
-
YesNoPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: YesNoPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1203
|
-
YesNoPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: YesNoPipe, name: "yesNo" });
|
|
1204
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: YesNoPipe, decorators: [{
|
|
1205
|
-
type: i0.Pipe,
|
|
1206
|
-
args: [{ name: 'yesNo' }]
|
|
1207
|
-
}] });
|
|
1208
|
-
|
|
1209
|
-
var StoPipesModule = /** @class */ (function () {
|
|
1210
|
-
function StoPipesModule() {
|
|
1211
|
-
}
|
|
1212
|
-
return StoPipesModule;
|
|
1213
|
-
}());
|
|
1214
|
-
StoPipesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoPipesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1215
|
-
StoPipesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoPipesModule, declarations: [DateFormatPipe,
|
|
1216
|
-
KeysPipe,
|
|
1217
|
-
NumberFormatPipe,
|
|
1218
|
-
CurrencyFormatPipe,
|
|
1219
|
-
GetUnit,
|
|
1220
|
-
ExcludeUnit,
|
|
1221
|
-
YesNoPipe], imports: [i4.CommonModule], exports: [DateFormatPipe,
|
|
1222
|
-
KeysPipe,
|
|
1223
|
-
NumberFormatPipe,
|
|
1224
|
-
CurrencyFormatPipe,
|
|
1225
|
-
GetUnit,
|
|
1226
|
-
ExcludeUnit,
|
|
1227
|
-
YesNoPipe] });
|
|
1228
|
-
StoPipesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoPipesModule, imports: [[i4.CommonModule]] });
|
|
1229
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoPipesModule, decorators: [{
|
|
1230
|
-
type: i0.NgModule,
|
|
1231
|
-
args: [{
|
|
1232
|
-
imports: [i4.CommonModule],
|
|
1233
|
-
declarations: [
|
|
1234
|
-
DateFormatPipe,
|
|
1235
|
-
KeysPipe,
|
|
1236
|
-
NumberFormatPipe,
|
|
1237
|
-
CurrencyFormatPipe,
|
|
1238
|
-
GetUnit,
|
|
1239
|
-
ExcludeUnit,
|
|
1240
|
-
YesNoPipe
|
|
1241
|
-
],
|
|
1242
|
-
exports: [
|
|
1243
|
-
DateFormatPipe,
|
|
1244
|
-
KeysPipe,
|
|
1245
|
-
NumberFormatPipe,
|
|
1246
|
-
CurrencyFormatPipe,
|
|
1247
|
-
GetUnit,
|
|
1248
|
-
ExcludeUnit,
|
|
1249
|
-
YesNoPipe
|
|
1250
|
-
]
|
|
1251
|
-
}]
|
|
1252
|
-
}] });
|
|
1253
|
-
|
|
1254
|
-
var StoUserPreferenceComponent = /** @class */ (function () {
|
|
1255
|
-
function StoUserPreferenceComponent(fb, service) {
|
|
1256
|
-
this.fb = fb;
|
|
1257
|
-
this.service = service;
|
|
1258
|
-
this.destroyed$ = new rxjs.Subject();
|
|
1259
|
-
}
|
|
1260
|
-
StoUserPreferenceComponent.prototype.initForm = function (value) {
|
|
1261
|
-
var _this = this;
|
|
1262
|
-
var _a;
|
|
1263
|
-
this.form = this.fb.group({
|
|
1264
|
-
hasSelectTextOnFocusEnabled: [value]
|
|
1265
|
-
});
|
|
1266
|
-
(_a = this.form.get('hasSelectTextOnFocusEnabled')) === null || _a === void 0 ? void 0 : _a.valueChanges.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (hasSelectTextOnFocusEnabled) {
|
|
1267
|
-
_this.service.setHasSelectTextOnFocusEnabled(hasSelectTextOnFocusEnabled);
|
|
1268
|
-
});
|
|
1269
|
-
};
|
|
1270
|
-
StoUserPreferenceComponent.prototype.ngOnInit = function () {
|
|
1271
|
-
var _this = this;
|
|
1272
|
-
this.service.hasSelectTextOnFocusEnabled.asObservable()
|
|
1273
|
-
.pipe(operators.take(1))
|
|
1274
|
-
.subscribe(function (value) {
|
|
1275
|
-
_this.initForm(value);
|
|
1276
|
-
});
|
|
1277
|
-
};
|
|
1278
|
-
StoUserPreferenceComponent.prototype.ngOnDestroy = function () {
|
|
1279
|
-
this.destroyed$.next(true);
|
|
1280
|
-
this.destroyed$.complete();
|
|
1281
|
-
};
|
|
1282
|
-
return StoUserPreferenceComponent;
|
|
1283
|
-
}());
|
|
1284
|
-
StoUserPreferenceComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: StoUserPreferenceService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1285
|
-
StoUserPreferenceComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.0", type: StoUserPreferenceComponent, selector: "sto-user-preference", ngImport: i0__namespace, template: "<mat-expansion-panel [expanded]=\"false\">\n <mat-expansion-panel-header>\n <mat-panel-title>Settings<span style=\"opacity: 0.36\"> (beta)</span></mat-panel-title>\n </mat-expansion-panel-header>\n <div *ngIf=\"form\" class=\"sto-grid sto-grid--4\">\n\n <ng-content></ng-content>\n\n </div>\n</mat-expansion-panel>\n", styles: [""], components: [{ type: i3__namespace.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i3__namespace.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight"] }], directives: [{ type: i3__namespace.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1286
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceComponent, decorators: [{
|
|
1287
|
-
type: i0.Component,
|
|
1288
|
-
args: [{
|
|
1289
|
-
selector: 'sto-user-preference',
|
|
1290
|
-
templateUrl: './sto-user-preference.component.html',
|
|
1291
|
-
styleUrls: ['./sto-user-preference.component.css']
|
|
1292
|
-
}]
|
|
1293
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: StoUserPreferenceService }]; } });
|
|
1294
|
-
|
|
1295
|
-
var StoUserPreferenceModule = /** @class */ (function () {
|
|
1296
|
-
function StoUserPreferenceModule() {
|
|
1297
|
-
}
|
|
1298
|
-
StoUserPreferenceModule.forRoot = function () {
|
|
1299
|
-
return {
|
|
1300
|
-
ngModule: StoUserPreferenceModule,
|
|
1301
|
-
providers: [StoUserPreferenceService]
|
|
1302
|
-
};
|
|
1303
|
-
};
|
|
1304
|
-
return StoUserPreferenceModule;
|
|
1305
|
-
}());
|
|
1306
|
-
StoUserPreferenceModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1307
|
-
StoUserPreferenceModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceModule, declarations: [StoUserPreferenceComponent], imports: [i4.CommonModule, i3.MatExpansionModule, i1$1.ReactiveFormsModule, i1$1.FormsModule], exports: [StoUserPreferenceComponent] });
|
|
1308
|
-
StoUserPreferenceModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceModule, imports: [[i4.CommonModule, i3.MatExpansionModule, i1$1.ReactiveFormsModule, i1$1.FormsModule]] });
|
|
1309
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: StoUserPreferenceModule, decorators: [{
|
|
1310
|
-
type: i0.NgModule,
|
|
1311
|
-
args: [{
|
|
1312
|
-
imports: [i4.CommonModule, i3.MatExpansionModule, i1$1.ReactiveFormsModule, i1$1.FormsModule],
|
|
1313
|
-
exports: [StoUserPreferenceComponent],
|
|
1314
|
-
declarations: [StoUserPreferenceComponent]
|
|
1315
|
-
}]
|
|
1316
|
-
}] });
|
|
1317
|
-
|
|
1318
|
-
/*
|
|
1319
|
-
* Public API Surface of @ngx-stoui/core
|
|
1320
|
-
*/
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* Generated bundle index. Do not edit.
|
|
1324
|
-
*/
|
|
1325
|
-
|
|
1326
|
-
exports.ContextMenuDirective = ContextMenuDirective;
|
|
1327
|
-
exports.CurrencyFormatPipe = CurrencyFormatPipe;
|
|
1328
|
-
exports.DateFormFieldClickDirective = DateFormFieldClickDirective;
|
|
1329
|
-
exports.DateFormatPipe = DateFormatPipe;
|
|
1330
|
-
exports.ExcludeUnit = ExcludeUnit;
|
|
1331
|
-
exports.GetUnit = GetUnit;
|
|
1332
|
-
exports.KeysPipe = KeysPipe;
|
|
1333
|
-
exports.MenuOverlayDirective = MenuOverlayDirective;
|
|
1334
|
-
exports.NumberFormatPipe = NumberFormatPipe;
|
|
1335
|
-
exports.QuickKeysDirective = QuickKeysDirective;
|
|
1336
|
-
exports.StoDirectivesModule = StoDirectivesModule;
|
|
1337
|
-
exports.StoGridColumnDirective = StoGridColumnDirective;
|
|
1338
|
-
exports.StoGridDirective = StoGridDirective;
|
|
1339
|
-
exports.StoGridSpacerDirective = StoGridSpacerDirective;
|
|
1340
|
-
exports.StoPipesModule = StoPipesModule;
|
|
1341
|
-
exports.StoSelectTextOnFocusDirective = StoSelectTextOnFocusDirective;
|
|
1342
|
-
exports.StoUserPreferenceComponent = StoUserPreferenceComponent;
|
|
1343
|
-
exports.StoUserPreferenceModule = StoUserPreferenceModule;
|
|
1344
|
-
exports.StoUserPreferenceService = StoUserPreferenceService;
|
|
1345
|
-
exports.YesNoPipe = YesNoPipe;
|
|
1346
|
-
|
|
1347
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1348
|
-
|
|
1349
|
-
})));
|
|
1350
|
-
//# sourceMappingURL=ngx-stoui-core.umd.js.map
|