@rxap/components 12.0.10-alpha.0 → 13.0.0-next.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.
Files changed (69) hide show
  1. package/_theming.scss +1 -1
  2. package/esm2020/index.mjs +33 -0
  3. package/esm2020/lib/button/button.component.mjs +309 -0
  4. package/esm2020/lib/button/button.component.module.mjs +50 -0
  5. package/esm2020/lib/confirm/confirm.component.mjs +24 -0
  6. package/esm2020/lib/confirm/confirm.component.module.mjs +35 -0
  7. package/esm2020/lib/confirm/confirm.directive.mjs +86 -0
  8. package/{esm2015/lib/copy-to-clipboard/copy-to-clipboard.component.js → esm2020/lib/copy-to-clipboard/copy-to-clipboard.component.mjs} +5 -10
  9. package/esm2020/lib/copy-to-clipboard/copy-to-clipboard.component.module.mjs +46 -0
  10. package/esm2020/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.mjs +30 -0
  11. package/esm2020/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.mjs +34 -0
  12. package/esm2020/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.mjs +23 -0
  13. package/esm2020/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.mjs +34 -0
  14. package/esm2020/lib/empty-router-outlet/empty-router-outlet.component.mjs +12 -0
  15. package/esm2020/lib/empty-router-outlet/empty-router-outlet.component.module.mjs +22 -0
  16. package/esm2020/lib/json-viewer/json-viewer.component.mjs +172 -0
  17. package/esm2020/lib/json-viewer/json-viewer.component.module.mjs +22 -0
  18. package/esm2020/lib/json-viewer/json-viewer.tokens.mjs +24 -0
  19. package/{esm2015/lib/navigate-back-button/navigate-back-button.component.js → esm2020/lib/navigate-back-button/navigate-back-button.component.mjs} +5 -11
  20. package/esm2020/lib/navigate-back-button/navigate-back-button.component.module.mjs +30 -0
  21. package/esm2020/rxap-components.mjs +5 -0
  22. package/fesm2015/rxap-components.mjs +928 -0
  23. package/fesm2015/rxap-components.mjs.map +1 -0
  24. package/{fesm2015/rxap-components.js → fesm2020/rxap-components.mjs} +77 -124
  25. package/fesm2020/rxap-components.mjs.map +1 -0
  26. package/package.json +34 -20
  27. package/src/schematics/ng-add/index.js +1 -1
  28. package/src/schematics/ng-add/index.js.map +1 -1
  29. package/bundles/rxap-components.umd.js +0 -1433
  30. package/bundles/rxap-components.umd.js.map +0 -1
  31. package/esm2015/index.js +0 -33
  32. package/esm2015/index.js.map +0 -1
  33. package/esm2015/lib/button/button.component.js +0 -317
  34. package/esm2015/lib/button/button.component.js.map +0 -1
  35. package/esm2015/lib/button/button.component.module.js +0 -50
  36. package/esm2015/lib/button/button.component.module.js.map +0 -1
  37. package/esm2015/lib/confirm/confirm.component.js +0 -30
  38. package/esm2015/lib/confirm/confirm.component.js.map +0 -1
  39. package/esm2015/lib/confirm/confirm.component.module.js +0 -35
  40. package/esm2015/lib/confirm/confirm.component.module.js.map +0 -1
  41. package/esm2015/lib/confirm/confirm.directive.js +0 -87
  42. package/esm2015/lib/confirm/confirm.directive.js.map +0 -1
  43. package/esm2015/lib/copy-to-clipboard/copy-to-clipboard.component.js.map +0 -1
  44. package/esm2015/lib/copy-to-clipboard/copy-to-clipboard.component.module.js +0 -46
  45. package/esm2015/lib/copy-to-clipboard/copy-to-clipboard.component.module.js.map +0 -1
  46. package/esm2015/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.js +0 -36
  47. package/esm2015/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.js.map +0 -1
  48. package/esm2015/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.js +0 -34
  49. package/esm2015/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.module.js.map +0 -1
  50. package/esm2015/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.js +0 -29
  51. package/esm2015/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.js.map +0 -1
  52. package/esm2015/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.js +0 -34
  53. package/esm2015/lib/dark-mode-toggle-button/dark-mode-toggle-button.component.module.js.map +0 -1
  54. package/esm2015/lib/empty-router-outlet/empty-router-outlet.component.js +0 -15
  55. package/esm2015/lib/empty-router-outlet/empty-router-outlet.component.js.map +0 -1
  56. package/esm2015/lib/empty-router-outlet/empty-router-outlet.component.module.js +0 -22
  57. package/esm2015/lib/empty-router-outlet/empty-router-outlet.component.module.js.map +0 -1
  58. package/esm2015/lib/json-viewer/json-viewer.component.js +0 -178
  59. package/esm2015/lib/json-viewer/json-viewer.component.js.map +0 -1
  60. package/esm2015/lib/json-viewer/json-viewer.component.module.js +0 -22
  61. package/esm2015/lib/json-viewer/json-viewer.component.module.js.map +0 -1
  62. package/esm2015/lib/json-viewer/json-viewer.tokens.js +0 -24
  63. package/esm2015/lib/json-viewer/json-viewer.tokens.js.map +0 -1
  64. package/esm2015/lib/navigate-back-button/navigate-back-button.component.js.map +0 -1
  65. package/esm2015/lib/navigate-back-button/navigate-back-button.component.module.js +0 -30
  66. package/esm2015/lib/navigate-back-button/navigate-back-button.component.module.js.map +0 -1
  67. package/esm2015/rxap-components.js +0 -5
  68. package/esm2015/rxap-components.js.map +0 -1
  69. package/fesm2015/rxap-components.js.map +0 -1
@@ -1,1433 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@rxap/utilities'), require('@angular/cdk/overlay'), require('@angular/material/button'), require('@angular/cdk/a11y'), require('@angular/platform-browser/animations'), require('@angular/material/icon'), require('@angular/flex-layout'), require('@angular/cdk/portal'), require('rxjs/operators'), require('rxjs'), require('@rxap/utilities/rxjs'), require('@angular/material/tooltip'), require('@angular/common'), require('@angular/material/core'), require('@rxap/material-directives/icon'), require('@angular/router'), require('@angular/material/snack-bar'), require('@angular/cdk/clipboard'), require('@rxap/services'), require('@rxap/directives')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/components', ['exports', '@angular/core', '@rxap/utilities', '@angular/cdk/overlay', '@angular/material/button', '@angular/cdk/a11y', '@angular/platform-browser/animations', '@angular/material/icon', '@angular/flex-layout', '@angular/cdk/portal', 'rxjs/operators', 'rxjs', '@rxap/utilities/rxjs', '@angular/material/tooltip', '@angular/common', '@angular/material/core', '@rxap/material-directives/icon', '@angular/router', '@angular/material/snack-bar', '@angular/cdk/clipboard', '@rxap/services', '@rxap/directives'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.components = {}), global.ng.core, global.utilities, global.ng.cdk.overlay, global.ng.material.button, global.ng.cdk.a11y, global.ng.platformBrowser.animations, global.ng.material.icon, global.ng.flexLayout, global.ng.cdk.portal, global.rxjs.operators, global.rxjs, global.rxjs$1, global.ng.material.tooltip, global.ng.common, global.ng.material.core, global.i6, global.ng.router, global.ng.material.snackBar, global.ng.cdk.clipboard, global.i5, global.i3$2));
5
- }(this, (function (exports, i0, utilities, i1$1, i1, i8, animations, i2, i3, portal, operators, rxjs, rxjs$1, i2$1, i1$2, i4, i6, i1$3, i4$1, i3$1, i5, i3$2) { '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 i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
29
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
31
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
33
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
34
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
35
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
36
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
37
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
38
- var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
39
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
40
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
41
- var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
42
-
43
- /*! *****************************************************************************
44
- Copyright (c) Microsoft Corporation.
45
-
46
- Permission to use, copy, modify, and/or distribute this software for any
47
- purpose with or without fee is hereby granted.
48
-
49
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
50
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
51
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
52
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
53
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
54
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
55
- PERFORMANCE OF THIS SOFTWARE.
56
- ***************************************************************************** */
57
- /* global Reflect, Promise */
58
- var extendStatics = function (d, b) {
59
- extendStatics = Object.setPrototypeOf ||
60
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
61
- function (d, b) { for (var p in b)
62
- if (Object.prototype.hasOwnProperty.call(b, p))
63
- d[p] = b[p]; };
64
- return extendStatics(d, b);
65
- };
66
- function __extends(d, b) {
67
- if (typeof b !== "function" && b !== null)
68
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69
- extendStatics(d, b);
70
- function __() { this.constructor = d; }
71
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
72
- }
73
- var __assign = function () {
74
- __assign = Object.assign || function __assign(t) {
75
- for (var s, i = 1, n = arguments.length; i < n; i++) {
76
- s = arguments[i];
77
- for (var p in s)
78
- if (Object.prototype.hasOwnProperty.call(s, p))
79
- t[p] = s[p];
80
- }
81
- return t;
82
- };
83
- return __assign.apply(this, arguments);
84
- };
85
- function __rest(s, e) {
86
- var t = {};
87
- for (var p in s)
88
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
89
- t[p] = s[p];
90
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
91
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
92
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
93
- t[p[i]] = s[p[i]];
94
- }
95
- return t;
96
- }
97
- function __decorate(decorators, target, key, desc) {
98
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
99
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
100
- r = Reflect.decorate(decorators, target, key, desc);
101
- else
102
- for (var i = decorators.length - 1; i >= 0; i--)
103
- if (d = decorators[i])
104
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
105
- return c > 3 && r && Object.defineProperty(target, key, r), r;
106
- }
107
- function __param(paramIndex, decorator) {
108
- return function (target, key) { decorator(target, key, paramIndex); };
109
- }
110
- function __metadata(metadataKey, metadataValue) {
111
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
112
- return Reflect.metadata(metadataKey, metadataValue);
113
- }
114
- function __awaiter(thisArg, _arguments, P, generator) {
115
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
116
- return new (P || (P = Promise))(function (resolve, reject) {
117
- function fulfilled(value) { try {
118
- step(generator.next(value));
119
- }
120
- catch (e) {
121
- reject(e);
122
- } }
123
- function rejected(value) { try {
124
- step(generator["throw"](value));
125
- }
126
- catch (e) {
127
- reject(e);
128
- } }
129
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
130
- step((generator = generator.apply(thisArg, _arguments || [])).next());
131
- });
132
- }
133
- function __generator(thisArg, body) {
134
- var _ = { label: 0, sent: function () { if (t[0] & 1)
135
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
136
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
137
- function verb(n) { return function (v) { return step([n, v]); }; }
138
- function step(op) {
139
- if (f)
140
- throw new TypeError("Generator is already executing.");
141
- while (_)
142
- try {
143
- 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)
144
- return t;
145
- if (y = 0, t)
146
- op = [op[0] & 2, t.value];
147
- switch (op[0]) {
148
- case 0:
149
- case 1:
150
- t = op;
151
- break;
152
- case 4:
153
- _.label++;
154
- return { value: op[1], done: false };
155
- case 5:
156
- _.label++;
157
- y = op[1];
158
- op = [0];
159
- continue;
160
- case 7:
161
- op = _.ops.pop();
162
- _.trys.pop();
163
- continue;
164
- default:
165
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
166
- _ = 0;
167
- continue;
168
- }
169
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
170
- _.label = op[1];
171
- break;
172
- }
173
- if (op[0] === 6 && _.label < t[1]) {
174
- _.label = t[1];
175
- t = op;
176
- break;
177
- }
178
- if (t && _.label < t[2]) {
179
- _.label = t[2];
180
- _.ops.push(op);
181
- break;
182
- }
183
- if (t[2])
184
- _.ops.pop();
185
- _.trys.pop();
186
- continue;
187
- }
188
- op = body.call(thisArg, _);
189
- }
190
- catch (e) {
191
- op = [6, e];
192
- y = 0;
193
- }
194
- finally {
195
- f = t = 0;
196
- }
197
- if (op[0] & 5)
198
- throw op[1];
199
- return { value: op[0] ? op[1] : void 0, done: true };
200
- }
201
- }
202
- var __createBinding = Object.create ? (function (o, m, k, k2) {
203
- if (k2 === undefined)
204
- k2 = k;
205
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
206
- }) : (function (o, m, k, k2) {
207
- if (k2 === undefined)
208
- k2 = k;
209
- o[k2] = m[k];
210
- });
211
- function __exportStar(m, o) {
212
- for (var p in m)
213
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
214
- __createBinding(o, m, p);
215
- }
216
- function __values(o) {
217
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
218
- if (m)
219
- return m.call(o);
220
- if (o && typeof o.length === "number")
221
- return {
222
- next: function () {
223
- if (o && i >= o.length)
224
- o = void 0;
225
- return { value: o && o[i++], done: !o };
226
- }
227
- };
228
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
229
- }
230
- function __read(o, n) {
231
- var m = typeof Symbol === "function" && o[Symbol.iterator];
232
- if (!m)
233
- return o;
234
- var i = m.call(o), r, ar = [], e;
235
- try {
236
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
237
- ar.push(r.value);
238
- }
239
- catch (error) {
240
- e = { error: error };
241
- }
242
- finally {
243
- try {
244
- if (r && !r.done && (m = i["return"]))
245
- m.call(i);
246
- }
247
- finally {
248
- if (e)
249
- throw e.error;
250
- }
251
- }
252
- return ar;
253
- }
254
- /** @deprecated */
255
- function __spread() {
256
- for (var ar = [], i = 0; i < arguments.length; i++)
257
- ar = ar.concat(__read(arguments[i]));
258
- return ar;
259
- }
260
- /** @deprecated */
261
- function __spreadArrays() {
262
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
263
- s += arguments[i].length;
264
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
265
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
266
- r[k] = a[j];
267
- return r;
268
- }
269
- function __spreadArray(to, from) {
270
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
271
- to[j] = from[i];
272
- return to;
273
- }
274
- function __await(v) {
275
- return this instanceof __await ? (this.v = v, this) : new __await(v);
276
- }
277
- function __asyncGenerator(thisArg, _arguments, generator) {
278
- if (!Symbol.asyncIterator)
279
- throw new TypeError("Symbol.asyncIterator is not defined.");
280
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
281
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
282
- function verb(n) { if (g[n])
283
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
284
- function resume(n, v) { try {
285
- step(g[n](v));
286
- }
287
- catch (e) {
288
- settle(q[0][3], e);
289
- } }
290
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
291
- function fulfill(value) { resume("next", value); }
292
- function reject(value) { resume("throw", value); }
293
- function settle(f, v) { if (f(v), q.shift(), q.length)
294
- resume(q[0][0], q[0][1]); }
295
- }
296
- function __asyncDelegator(o) {
297
- var i, p;
298
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
299
- 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; }
300
- }
301
- function __asyncValues(o) {
302
- if (!Symbol.asyncIterator)
303
- throw new TypeError("Symbol.asyncIterator is not defined.");
304
- var m = o[Symbol.asyncIterator], i;
305
- 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);
306
- 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); }); }; }
307
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
308
- }
309
- function __makeTemplateObject(cooked, raw) {
310
- if (Object.defineProperty) {
311
- Object.defineProperty(cooked, "raw", { value: raw });
312
- }
313
- else {
314
- cooked.raw = raw;
315
- }
316
- return cooked;
317
- }
318
- ;
319
- var __setModuleDefault = Object.create ? (function (o, v) {
320
- Object.defineProperty(o, "default", { enumerable: true, value: v });
321
- }) : function (o, v) {
322
- o["default"] = v;
323
- };
324
- function __importStar(mod) {
325
- if (mod && mod.__esModule)
326
- return mod;
327
- var result = {};
328
- if (mod != null)
329
- for (var k in mod)
330
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
331
- __createBinding(result, mod, k);
332
- __setModuleDefault(result, mod);
333
- return result;
334
- }
335
- function __importDefault(mod) {
336
- return (mod && mod.__esModule) ? mod : { default: mod };
337
- }
338
- function __classPrivateFieldGet(receiver, state, kind, f) {
339
- if (kind === "a" && !f)
340
- throw new TypeError("Private accessor was defined without a getter");
341
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
342
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
343
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
344
- }
345
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
346
- if (kind === "m")
347
- throw new TypeError("Private method is not writable");
348
- if (kind === "a" && !f)
349
- throw new TypeError("Private accessor was defined without a setter");
350
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
351
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
352
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
353
- }
354
-
355
- var ConfirmComponent = /** @class */ (function () {
356
- function ConfirmComponent() {
357
- this.confirmed = new i0.EventEmitter();
358
- this.unconfirmed = new i0.EventEmitter();
359
- }
360
- return ConfirmComponent;
361
- }());
362
- ConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
363
- ConfirmComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: ConfirmComponent, selector: "rxap-confirm", outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { classAttribute: "rxap-confirm" }, ngImport: i0__namespace, template: "<div class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutGap=\"4px\">\n <button type=\"button\" (click)=\"confirmed.emit()\" class=\"accept\" mat-icon-button>\n <mat-icon>done</mat-icon>\n </button>\n <button type=\"button\" (click)=\"unconfirmed.emit()\" class=\"decline\" mat-icon-button>\n <mat-icon>clear</mat-icon>\n </button>\n</div>\n", styles: [".container{border-radius:8px;padding:4px}"], components: [{ type: i1__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
364
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmComponent, decorators: [{
365
- type: i0.Component,
366
- args: [{
367
- selector: 'rxap-confirm',
368
- templateUrl: './confirm.component.html',
369
- styleUrls: ['./confirm.component.scss'],
370
- host: {
371
- class: 'rxap-confirm'
372
- },
373
- changeDetection: i0.ChangeDetectionStrategy.OnPush
374
- }]
375
- }], propDecorators: { confirmed: [{
376
- type: i0.Output
377
- }], unconfirmed: [{
378
- type: i0.Output
379
- }] } });
380
-
381
- var ConfirmDirective = /** @class */ (function () {
382
- function ConfirmDirective(overlay, elementRef) {
383
- this.overlay = overlay;
384
- this.elementRef = elementRef;
385
- this.confirmed = new i0.EventEmitter();
386
- this.unconfirmed = new i0.EventEmitter();
387
- this.subscription = null;
388
- }
389
- Object.defineProperty(ConfirmDirective.prototype, "eventValue", {
390
- // use a set input to allow auto import detection if the eventValue
391
- // is not set
392
- set: function (value) {
393
- if (value !== '') {
394
- this._eventValue = value;
395
- }
396
- },
397
- enumerable: false,
398
- configurable: true
399
- });
400
- ConfirmDirective.prototype.onClick = function () {
401
- var _this = this;
402
- if (this.subscription) {
403
- return;
404
- }
405
- this.overlayRef = this.overlay.create({
406
- scrollStrategy: this.overlay.scrollStrategies.close(),
407
- positionStrategy: this.overlay
408
- .position()
409
- .flexibleConnectedTo(this.elementRef.nativeElement)
410
- .withPositions([
411
- {
412
- originX: 'start',
413
- originY: 'bottom',
414
- overlayX: 'start',
415
- overlayY: 'top',
416
- },
417
- ])
418
- .withDefaultOffsetY(10),
419
- });
420
- var componentPortal = new portal.ComponentPortal(ConfirmComponent);
421
- var componentRef = this.overlayRef.attach(componentPortal);
422
- this.subscription = new rxjs.Subscription();
423
- this.subscription.add(componentRef.instance.confirmed
424
- .pipe(operators.take(1), operators.tap(function () { return _this.confirmed.emit(_this._eventValue); }), operators.tap(function () { var _a; return (_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose(); }), operators.tap(function () { return (_this.subscription = null); }), operators.tap(function () { var _a; return (_a = _this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe(); }))
425
- .subscribe());
426
- this.subscription.add(componentRef.instance.unconfirmed
427
- .pipe(operators.take(1), operators.tap(function () { return _this.unconfirmed.emit(_this._eventValue); }), operators.tap(function () { var _a; return (_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose(); }), operators.tap(function () { return (_this.subscription = null); }), operators.tap(function () { var _a; return (_a = _this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe(); }))
428
- .subscribe());
429
- this.subscription.add(this.overlayRef
430
- .detachments()
431
- .pipe(operators.take(1), operators.tap(function () { return (_this.subscription = null); }), operators.tap(function () { var _a; return (_a = _this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe(); }))
432
- .subscribe());
433
- };
434
- ConfirmDirective.prototype.ngOnDestroy = function () {
435
- var _a, _b;
436
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
437
- (_b = this.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
438
- };
439
- return ConfirmDirective;
440
- }());
441
- ConfirmDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmDirective, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
442
- ConfirmDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: ConfirmDirective, selector: "[rxapConfirm]", inputs: { eventValue: ["rxapConfirm", "eventValue"] }, outputs: { confirmed: "confirmed", unconfirmed: "unconfirmed" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0__namespace });
443
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmDirective, decorators: [{
444
- type: i0.Directive,
445
- args: [{
446
- selector: '[rxapConfirm]',
447
- }]
448
- }], ctorParameters: function () {
449
- return [{ type: i1__namespace$1.Overlay, decorators: [{
450
- type: i0.Inject,
451
- args: [i1$1.Overlay]
452
- }] }, { type: i0__namespace.ElementRef, decorators: [{
453
- type: i0.Inject,
454
- args: [i0.ElementRef]
455
- }] }];
456
- }, propDecorators: { eventValue: [{
457
- type: i0.Input,
458
- args: ['rxapConfirm']
459
- }], confirmed: [{
460
- type: i0.Output
461
- }], unconfirmed: [{
462
- type: i0.Output
463
- }], onClick: [{
464
- type: i0.HostListener,
465
- args: ['click']
466
- }] } });
467
-
468
- var DEFAULT_ROUND_BUTTON_COLOR = 'accent';
469
- var BUTTON_HOST_ATTRIBUTES = [
470
- 'mat-button',
471
- 'mat-flat-button',
472
- 'mat-icon-button',
473
- 'mat-raised-button',
474
- 'mat-stroked-button',
475
- 'mat-mini-fab',
476
- 'mat-fab',
477
- ];
478
- var ButtonComponent = /** @class */ (function (_super) {
479
- __extends(ButtonComponent, _super);
480
- function ButtonComponent(cdr, overlay, injector, elementRef, _focusMonitor, _animationMode) {
481
- var _this = _super.call(this, elementRef, _focusMonitor, _animationMode) || this;
482
- _this.cdr = cdr;
483
- _this.overlay = overlay;
484
- _this.injector = injector;
485
- _this.elementRef = elementRef;
486
- _this.action = null;
487
- _this.icon = null;
488
- _this.tooltip = '';
489
- _this.tooltipDisabled = false;
490
- _this.label = '';
491
- _this.show = true;
492
- _this.confirm = false;
493
- _this.confirmed$ = new i0.EventEmitter();
494
- _this.unconfirmed$ = new i0.EventEmitter();
495
- _this.types = rxjs$1.ButtonTypes;
496
- _this._subscription = new rxjs.Subscription();
497
- /** Whether the button is icon button. */
498
- _this.isIconButton = _this._hasHostAttributes('mat-icon-button');
499
- _this.isRoundButton = _this._hasHostAttributes('mat-fab', 'mat-mini-fab');
500
- return _this;
501
- }
502
- Object.defineProperty(ButtonComponent.prototype, "svgIcon", {
503
- get: function () {
504
- if (this.icon) {
505
- return utilities.IsSvgIcon(this.icon);
506
- }
507
- return false;
508
- },
509
- enumerable: false,
510
- configurable: true
511
- });
512
- Object.defineProperty(ButtonComponent.prototype, "materialIcon", {
513
- get: function () {
514
- if (this.icon) {
515
- return utilities.IsMaterialIcon(this.icon);
516
- }
517
- return false;
518
- },
519
- enumerable: false,
520
- configurable: true
521
- });
522
- Object.defineProperty(ButtonComponent.prototype, "iconName", {
523
- get: function () {
524
- if (this.icon) {
525
- if (utilities.IsSvgIcon(this.icon)) {
526
- return this.icon.svgIcon;
527
- }
528
- else {
529
- return this.icon.icon;
530
- }
531
- }
532
- return null;
533
- },
534
- enumerable: false,
535
- configurable: true
536
- });
537
- Object.defineProperty(ButtonComponent.prototype, "name", {
538
- get: function () {
539
- return this.definition.name;
540
- },
541
- enumerable: false,
542
- configurable: true
543
- });
544
- ButtonComponent.prototype.contextChange = function (context) {
545
- if (context === void 0) { context = []; }
546
- this.disabled = !!utilities.applyContextToFunctionOrConstant(this.definition.disabled, context, this.disabled);
547
- this.icon = utilities.applyContextToFunctionOrConstant(this.definition.icon, context, this.icon);
548
- this.label = utilities.applyContextToFunctionOrConstant(this.definition.label, context, this.label);
549
- this.tooltip = utilities.applyContextToFunctionOrConstant(this.definition.tooltip, context, this.tooltip);
550
- this.tooltipDisabled = !!utilities.applyContextToFunctionOrConstant(this.definition.tooltipDisabled, context, this.tooltipDisabled);
551
- this.confirm = utilities.applyContextToFunctionOrConstant(this.definition.confirm, context, this.confirm);
552
- this.color = utilities.applyContextToFunctionOrConstant(this.definition.theme, context, this.color);
553
- this.action = utilities.applyContextToFunctionOrConstant(this.definition.action, context, this.action);
554
- if (this.definition.hide) {
555
- this.show = !utilities.applyContextToFunctionOrConstant(this.definition.hide, context, this.show);
556
- }
557
- if (this.definition.show) {
558
- this.show = !!utilities.applyContextToFunctionOrConstant(this.definition.show, context, this.show);
559
- }
560
- };
561
- ButtonComponent.prototype.contextAllChange = function (contextAll) {
562
- var e_1, _a;
563
- if (contextAll === void 0) { contextAll = []; }
564
- this.cdr.detach();
565
- this.show = false;
566
- this.disabled = true;
567
- if (contextAll.length) {
568
- this.contextChange(contextAll[0]);
569
- }
570
- try {
571
- for (var contextAll_1 = __values(contextAll), contextAll_1_1 = contextAll_1.next(); !contextAll_1_1.done; contextAll_1_1 = contextAll_1.next()) {
572
- var context = contextAll_1_1.value;
573
- this.disabled = !!utilities.applyContextToFunctionOrConstant(this.definition.disabled, context, this.disabled);
574
- if (this.definition.hide) {
575
- this.show = !utilities.applyContextToFunctionOrConstant(this.definition.hide, context, this.show);
576
- }
577
- if (this.definition.show) {
578
- this.show = !!utilities.applyContextToFunctionOrConstant(this.definition.show, context, this.show);
579
- }
580
- }
581
- }
582
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
583
- finally {
584
- try {
585
- if (contextAll_1_1 && !contextAll_1_1.done && (_a = contextAll_1.return)) _a.call(contextAll_1);
586
- }
587
- finally { if (e_1) throw e_1.error; }
588
- }
589
- this.cdr.reattach();
590
- };
591
- ButtonComponent.prototype.ngOnChanges = function (changes) {
592
- if (changes.context && !changes.context.firstChange) {
593
- this.contextChange(changes.context.currentValue);
594
- }
595
- if (changes.contextAll && !changes.contextAll.firstChange) {
596
- this.contextAllChange(changes.contextAll.currentValue);
597
- }
598
- };
599
- ButtonComponent.prototype.ngOnInit = function () {
600
- if (this.context) {
601
- this.contextChange(this.context);
602
- }
603
- if (this.contextAll) {
604
- this.contextAllChange(this.contextAll);
605
- }
606
- if (!this.context && !this.contextAll) {
607
- this.contextChange();
608
- }
609
- this.updateClasses();
610
- this._confirmDirective = new ConfirmDirective(this.overlay, this.elementRef);
611
- this._subscription.add(this._confirmDirective.unconfirmed.subscribe(this.unconfirmed$));
612
- this._subscription.add(this._confirmDirective.confirmed.subscribe(this.confirm));
613
- };
614
- ButtonComponent.prototype.onClick = function () {
615
- var _this = this;
616
- if (this.confirm) {
617
- this._confirmDirective.onClick();
618
- }
619
- var actions = this.getActions();
620
- if (actions.length) {
621
- actions.forEach(function (action) {
622
- _this.emitClick(action);
623
- });
624
- }
625
- else {
626
- this.emitClick(null);
627
- }
628
- };
629
- ButtonComponent.prototype.emitClick = function ($event) {
630
- if (this.definition.click$) {
631
- this.definition.click$.next($event !== null && $event !== void 0 ? $event : null);
632
- }
633
- };
634
- ButtonComponent.prototype.getActions = function () {
635
- var _this = this;
636
- if (this.contextAll && this.contextAll.length) {
637
- return this.contextAll
638
- .map(function (context) { return utilities.applyContextToFunctionOrConstant(_this.definition.action, context, null); })
639
- .filter(Boolean);
640
- }
641
- else if (this.action) {
642
- return [this.action];
643
- }
644
- return [];
645
- };
646
- ButtonComponent.prototype._hasHostAttributes = function () {
647
- var e_2, _a;
648
- var attributes = [];
649
- for (var _i = 0; _i < arguments.length; _i++) {
650
- attributes[_i] = arguments[_i];
651
- }
652
- var descriptor = Object.getOwnPropertyDescriptor(this, 'definition');
653
- var hasDefinition = !!descriptor && descriptor.hasOwnProperty('value');
654
- if (hasDefinition) {
655
- try {
656
- for (var attributes_1 = __values(attributes), attributes_1_1 = attributes_1.next(); !attributes_1_1.done; attributes_1_1 = attributes_1.next()) {
657
- var attribute = attributes_1_1.value;
658
- switch (attribute) {
659
- case 'mat-icon-button':
660
- if (this.definition.type === rxjs$1.ButtonTypes.Icon) {
661
- return true;
662
- }
663
- break;
664
- case 'mat-fab':
665
- if (this.definition.type === rxjs$1.ButtonTypes.Fab) {
666
- return true;
667
- }
668
- break;
669
- case 'mat-mini-fab':
670
- if (this.definition.type === rxjs$1.ButtonTypes.MiniFab) {
671
- return true;
672
- }
673
- break;
674
- case 'mat-raised-button':
675
- if (this.definition.type === rxjs$1.ButtonTypes.Raised) {
676
- return true;
677
- }
678
- break;
679
- // TODO : add support for all mat button types
680
- }
681
- }
682
- }
683
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
684
- finally {
685
- try {
686
- if (attributes_1_1 && !attributes_1_1.done && (_a = attributes_1.return)) _a.call(attributes_1);
687
- }
688
- finally { if (e_2) throw e_2.error; }
689
- }
690
- }
691
- return _super.prototype._hasHostAttributes.apply(this, __spreadArray([], __read(attributes)));
692
- };
693
- ButtonComponent.prototype.ngOnDestroy = function () {
694
- _super.prototype.ngOnDestroy.call(this);
695
- this._confirmDirective.ngOnDestroy();
696
- this._subscription.unsubscribe();
697
- };
698
- ButtonComponent.prototype.updateClasses = function () {
699
- var e_3, _a;
700
- this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');
701
- this.isIconButton = this._hasHostAttributes('mat-icon-button');
702
- try {
703
- for (var BUTTON_HOST_ATTRIBUTES_1 = __values(BUTTON_HOST_ATTRIBUTES), BUTTON_HOST_ATTRIBUTES_1_1 = BUTTON_HOST_ATTRIBUTES_1.next(); !BUTTON_HOST_ATTRIBUTES_1_1.done; BUTTON_HOST_ATTRIBUTES_1_1 = BUTTON_HOST_ATTRIBUTES_1.next()) {
704
- var attr = BUTTON_HOST_ATTRIBUTES_1_1.value;
705
- if (this._hasHostAttributes(attr)) {
706
- this._getHostElement().classList.add(attr);
707
- }
708
- }
709
- }
710
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
711
- finally {
712
- try {
713
- if (BUTTON_HOST_ATTRIBUTES_1_1 && !BUTTON_HOST_ATTRIBUTES_1_1.done && (_a = BUTTON_HOST_ATTRIBUTES_1.return)) _a.call(BUTTON_HOST_ATTRIBUTES_1);
714
- }
715
- finally { if (e_3) throw e_3.error; }
716
- }
717
- if (this.isRoundButton) {
718
- this.color = DEFAULT_ROUND_BUTTON_COLOR;
719
- }
720
- };
721
- return ButtonComponent;
722
- }(i1.MatButton));
723
- ButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ButtonComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.Overlay }, { token: i0.INJECTOR }, { token: i0.ElementRef }, { token: i8.FocusMonitor }, { token: animations.ANIMATION_MODULE_TYPE, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
724
- ButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: ButtonComponent, selector: "button[rxap-button]", inputs: { disabled: "disabled", disableRipple: "disableRipple", color: "color", context: "context", contextAll: "contextAll", action: "action", definition: ["rxap-button", "definition"], icon: "icon", tooltip: "tooltip", tooltipDisabled: "tooltipDisabled", label: "label", show: "show", confirm: "confirm" }, outputs: { confirmed$: "confirmed", unconfirmed$: "unconfirmed" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.disabled": "disabled || null", "class._mat-animation-noopable": "_animationMode === \"NoopAnimations\"", "attr.data-svg-icon": "this.svgIcon", "attr.data-material-icon": "this.materialIcon", "attr.data-icon": "this.iconName", "attr.data-name": "this.name", "attr.data-tooltip": "this.tooltip", "attr.data-tooltip-disabled": "this.tooltipDisabled", "attr.data-disabled": "this.label", "attr.data-label": "this.label", "attr.data-show": "this.show", "attr.data-confirm": "this.confirm" }, classAttribute: "mat-focus-indicator" }, usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<span [matTooltipDisabled]=\"tooltipDisabled\" [matTooltip]=\"tooltip\" class=\"mat-button-wrapper\">\n <ng-template\n [ngIfElse]=\"labelOrIconTemplate\"\n [ngIfThen]=\"labelWithIconTemplate\"\n [ngIf]=\"icon && label\">\n </ng-template>\n</span>\n<div [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\" [matRippleCentered]=\"isIconButton\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleTrigger]=\"_getHostElement()\"\n class=\"mat-button-ripple\"\n matRipple></div>\n<div class=\"mat-button-focus-overlay\"></div>\n\n<ng-template #labelTemplate>{{label}}</ng-template>\n<ng-template #labelWithIconTemplate>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".8rem\">\n <mat-icon [inline]=\"true\" [rxapIcon]=\"icon\" fxFlex=\"nogrow\"></mat-icon>\n <span fxFlex=\"nogrow\">{{label}}</span>\n </span>\n</ng-template>\n<ng-template #iconTemplate>\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n</ng-template>\n<ng-template #labelOrIconTemplate>\n <ng-template [ngIfElse]=\"labelTemplate\"\n [ngIfThen]=\"iconTemplate\"\n [ngIf]=\"icon\">\n </ng-template>\n</ng-template>\n", styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media (hover:none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button.mat-button-disabled,.mat-flat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1)}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;-webkit-animation:none;animation:none}.mat-stroked-button{border:1px solid;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-focus-overlay,.mat-stroked-button .mat-button-ripple.mat-ripple{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;border-radius:4px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;-webkit-animation:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;border-radius:4px;overflow:visible;transform:translateZ(0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow .28s cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;-webkit-animation:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple.mat-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-mini-fab,.cdk-high-contrast-active .mat-raised-button{outline:1px solid}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:3px solid}.inline.mat-icon-button{width:inherit;height:inherit;padding:.6rem}.mat-icon-button{line-height:normal}"], components: [{ type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i1__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleRadius", "matRippleDisabled", "matRippleTrigger", "matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleAnimation"], exportAs: ["matRipple"] }, { type: i3__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i6__namespace.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i3__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
725
- __decorate([
726
- utilities.Required,
727
- __metadata("design:type", Object)
728
- ], ButtonComponent.prototype, "definition", void 0);
729
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ButtonComponent, decorators: [{
730
- type: i0.Component,
731
- args: [{
732
- selector: 'button[rxap-button]',
733
- templateUrl: './button.component.html',
734
- styleUrls: ['./button.component.scss'],
735
- inputs: ['disabled', 'disableRipple', 'color'],
736
- host: {
737
- '[attr.disabled]': 'disabled || null',
738
- '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
739
- class: 'mat-focus-indicator',
740
- },
741
- encapsulation: i0.ViewEncapsulation.None,
742
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
743
- }]
744
- }], ctorParameters: function () {
745
- return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
746
- type: i0.Inject,
747
- args: [i0.ChangeDetectorRef]
748
- }] }, { type: i1__namespace$1.Overlay, decorators: [{
749
- type: i0.Inject,
750
- args: [i1$1.Overlay]
751
- }] }, { type: undefined, decorators: [{
752
- type: i0.Inject,
753
- args: [i0.INJECTOR]
754
- }] }, { type: i0__namespace.ElementRef, decorators: [{
755
- type: i0.Inject,
756
- args: [i0.ElementRef]
757
- }] }, { type: i8__namespace.FocusMonitor, decorators: [{
758
- type: i0.Inject,
759
- args: [i8.FocusMonitor]
760
- }] }, { type: undefined, decorators: [{
761
- type: i0.Optional
762
- }, {
763
- type: i0.Inject,
764
- args: [animations.ANIMATION_MODULE_TYPE]
765
- }] }];
766
- }, propDecorators: { svgIcon: [{
767
- type: i0.HostBinding,
768
- args: ['attr.data-svg-icon']
769
- }], materialIcon: [{
770
- type: i0.HostBinding,
771
- args: ['attr.data-material-icon']
772
- }], iconName: [{
773
- type: i0.HostBinding,
774
- args: ['attr.data-icon']
775
- }], name: [{
776
- type: i0.HostBinding,
777
- args: ['attr.data-name']
778
- }], context: [{
779
- type: i0.Input
780
- }], contextAll: [{
781
- type: i0.Input
782
- }], action: [{
783
- type: i0.Input
784
- }], definition: [{
785
- type: i0.Input,
786
- args: ['rxap-button']
787
- }], icon: [{
788
- type: i0.Input
789
- }], tooltip: [{
790
- type: i0.HostBinding,
791
- args: ['attr.data-tooltip']
792
- }, {
793
- type: i0.Input
794
- }], tooltipDisabled: [{
795
- type: i0.HostBinding,
796
- args: ['attr.data-tooltip-disabled']
797
- }, {
798
- type: i0.Input
799
- }], label: [{
800
- type: i0.HostBinding,
801
- args: ['attr.data-disabled']
802
- }, {
803
- type: i0.HostBinding,
804
- args: ['attr.data-label']
805
- }, {
806
- type: i0.Input
807
- }], show: [{
808
- type: i0.HostBinding,
809
- args: ['attr.data-show']
810
- }, {
811
- type: i0.Input
812
- }], confirm: [{
813
- type: i0.HostBinding,
814
- args: ['attr.data-confirm']
815
- }, {
816
- type: i0.Input
817
- }], confirmed$: [{
818
- type: i0.Output,
819
- args: ['confirmed']
820
- }], unconfirmed$: [{
821
- type: i0.Output,
822
- args: ['unconfirmed']
823
- }], onClick: [{
824
- type: i0.HostListener,
825
- args: ['click']
826
- }] } });
827
-
828
- var ConfirmComponentModule = /** @class */ (function () {
829
- function ConfirmComponentModule() {
830
- }
831
- return ConfirmComponentModule;
832
- }());
833
- ConfirmComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
834
- ConfirmComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmComponentModule, declarations: [ConfirmComponent, ConfirmDirective], imports: [i3.FlexModule,
835
- i1.MatButtonModule,
836
- i2.MatIconModule,
837
- i1$1.OverlayModule], exports: [ConfirmComponent, ConfirmDirective] });
838
- ConfirmComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmComponentModule, imports: [[
839
- i3.FlexModule,
840
- i1.MatButtonModule,
841
- i2.MatIconModule,
842
- i1$1.OverlayModule
843
- ]] });
844
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ConfirmComponentModule, decorators: [{
845
- type: i0.NgModule,
846
- args: [{
847
- declarations: [ConfirmComponent, ConfirmDirective],
848
- imports: [
849
- i3.FlexModule,
850
- i1.MatButtonModule,
851
- i2.MatIconModule,
852
- i1$1.OverlayModule
853
- ],
854
- exports: [ConfirmComponent, ConfirmDirective]
855
- }]
856
- }] });
857
-
858
- var ButtonComponentModule = /** @class */ (function () {
859
- function ButtonComponentModule() {
860
- }
861
- return ButtonComponentModule;
862
- }());
863
- ButtonComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ButtonComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
864
- ButtonComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ButtonComponentModule, declarations: [ButtonComponent], imports: [i4.MatRippleModule,
865
- i3.FlexLayoutModule,
866
- i1$2.CommonModule,
867
- i2.MatIconModule,
868
- i1.MatButtonModule,
869
- i2$1.MatTooltipModule,
870
- ConfirmComponentModule,
871
- i6.IconDirectiveModule], exports: [ButtonComponent] });
872
- ButtonComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ButtonComponentModule, imports: [[
873
- i4.MatRippleModule,
874
- i3.FlexLayoutModule,
875
- i1$2.CommonModule,
876
- i2.MatIconModule,
877
- i1.MatButtonModule,
878
- i2$1.MatTooltipModule,
879
- ConfirmComponentModule,
880
- i6.IconDirectiveModule
881
- ]] });
882
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ButtonComponentModule, decorators: [{
883
- type: i0.NgModule,
884
- args: [{
885
- declarations: [ButtonComponent],
886
- imports: [
887
- i4.MatRippleModule,
888
- i3.FlexLayoutModule,
889
- i1$2.CommonModule,
890
- i2.MatIconModule,
891
- i1.MatButtonModule,
892
- i2$1.MatTooltipModule,
893
- ConfirmComponentModule,
894
- i6.IconDirectiveModule
895
- ],
896
- exports: [ButtonComponent]
897
- }]
898
- }] });
899
-
900
- var EmptyRouterOutletComponent = /** @class */ (function () {
901
- function EmptyRouterOutletComponent() {
902
- }
903
- return EmptyRouterOutletComponent;
904
- }());
905
- EmptyRouterOutletComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EmptyRouterOutletComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
906
- EmptyRouterOutletComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: EmptyRouterOutletComponent, selector: "ng-component", ngImport: i0__namespace, template: "<router-outlet></router-outlet>\n", directives: [{ type: i1__namespace$3.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
907
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EmptyRouterOutletComponent, decorators: [{
908
- type: i0.Component,
909
- args: [{
910
- templateUrl: './empty-router-outlet.component.html',
911
- changeDetection: i0.ChangeDetectionStrategy.OnPush
912
- }]
913
- }] });
914
-
915
- var EmptyRouterOutletModule = /** @class */ (function () {
916
- function EmptyRouterOutletModule() {
917
- }
918
- return EmptyRouterOutletModule;
919
- }());
920
- EmptyRouterOutletModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EmptyRouterOutletModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
921
- EmptyRouterOutletModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EmptyRouterOutletModule, declarations: [EmptyRouterOutletComponent], imports: [i1$3.RouterModule], exports: [EmptyRouterOutletComponent] });
922
- EmptyRouterOutletModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EmptyRouterOutletModule, imports: [[
923
- i1$3.RouterModule
924
- ]] });
925
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EmptyRouterOutletModule, decorators: [{
926
- type: i0.NgModule,
927
- args: [{
928
- declarations: [EmptyRouterOutletComponent],
929
- imports: [
930
- i1$3.RouterModule
931
- ],
932
- exports: [EmptyRouterOutletComponent]
933
- }]
934
- }] });
935
-
936
- var JSON_VIEW_IGNORED_PROPERTIES = new i0.InjectionToken('rxap/form-system/inspector/ignored-properties', {
937
- providedIn: 'root',
938
- factory: function () { return [
939
- '_subscriptions',
940
- 'subscriptions',
941
- 'injector',
942
- /\$$/
943
- ]; }
944
- });
945
- var JSON_VIEW_IGNORED_TYPES = new i0.InjectionToken('rxap/form-system/inspector/ignored-types', {
946
- providedIn: 'root',
947
- factory: function () { return [
948
- rxjs.Observable,
949
- Promise,
950
- rxjs.Subscription,
951
- rxjs$1.SubscriptionHandler,
952
- i4.ErrorStateMatcher
953
- ]; }
954
- });
955
-
956
- var JsonViewerComponent = /** @class */ (function () {
957
- function JsonViewerComponent(ignoredProperties, ignoredTypes, cdr) {
958
- this.cdr = cdr;
959
- this.ignoredProperties = [];
960
- this.ignoredTypes = [];
961
- this.subscriptions = new rxjs.Subscription();
962
- this.segments = [];
963
- function flat(acc, cur) {
964
- if (Array.isArray(cur)) {
965
- acc.push.apply(acc, __spreadArray([], __read(cur.reduce(flat, []))));
966
- }
967
- else {
968
- acc.push(cur);
969
- }
970
- return acc;
971
- }
972
- this.ignoredProperties = ignoredProperties.reduce(flat, []);
973
- this.ignoredTypes = ignoredTypes.reduce(flat, []);
974
- }
975
- JsonViewerComponent.prototype.ngOnInit = function () {
976
- this.setInspectValue(this.json);
977
- };
978
- JsonViewerComponent.prototype.ngOnChanges = function (changes) {
979
- var jsonChange = changes['json'];
980
- if (jsonChange) {
981
- this.setInspectValue(jsonChange.currentValue);
982
- }
983
- };
984
- JsonViewerComponent.prototype.cleanObject = function (obj, stack) {
985
- var _this = this;
986
- if (stack === void 0) { stack = []; }
987
- if (stack.some(function (item) { return item === obj; })) {
988
- return '__circular__';
989
- }
990
- stack = stack.slice();
991
- stack.unshift(obj);
992
- return Object
993
- .entries(obj)
994
- .filter(function (_a) {
995
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
996
- return !utilities.isPromiseLike(value);
997
- })
998
- .filter(function (_a) {
999
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
1000
- return !rxjs$1.isTeardownLogic(value);
1001
- })
1002
- .filter(function (_a) {
1003
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
1004
- return _this.ignoredProperties.every(function (ip) { return typeof ip === 'string' ? key !== ip : !key.match(ip); });
1005
- })
1006
- .filter(function (_a) {
1007
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
1008
- return __spreadArray([], __read(_this.ignoredTypes)).every(function (type) { return !(value instanceof type); });
1009
- })
1010
- .map(function (_a) {
1011
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
1012
- if (value && typeof value === 'object') {
1013
- if (Array.isArray(value)) {
1014
- return [key, value.map(function (item) { return _this.cleanObject(item, stack); })];
1015
- }
1016
- if (typeof value === 'object') {
1017
- return [key, _this.cleanObject(value, stack)];
1018
- }
1019
- }
1020
- return [key, value];
1021
- })
1022
- .sort(function (a, b) { return a[0].localeCompare(b[0]); })
1023
- .reduce(function (controlView, _a) {
1024
- var _b;
1025
- var _c = __read(_a, 2), key = _c[0], value = _c[1];
1026
- return (Object.assign(Object.assign({}, controlView), (_b = {}, _b[key] = value, _b)));
1027
- }, {});
1028
- };
1029
- JsonViewerComponent.prototype.setInspectValue = function (json) {
1030
- if (typeof json !== 'object' || json === null || json === undefined) {
1031
- console.warn('The inspection value is not an object!');
1032
- }
1033
- else {
1034
- json = utilities.clone(json);
1035
- var inspectValue = void 0;
1036
- if (typeof json['toJSON'] === 'function') {
1037
- inspectValue = json.toJSON();
1038
- }
1039
- else {
1040
- inspectValue = this.cleanObject(json);
1041
- }
1042
- this.inspectValue = inspectValue;
1043
- this.buildSegments(this.inspectValue);
1044
- this.cdr.markForCheck();
1045
- }
1046
- };
1047
- JsonViewerComponent.prototype.buildSegments = function (inspectValue) {
1048
- var _this = this;
1049
- this.segments = [];
1050
- if (typeof inspectValue === 'object') {
1051
- Object.keys(inspectValue).forEach(function (key) {
1052
- _this.segments.push(_this.parseKeyValue(key, inspectValue[key]));
1053
- });
1054
- }
1055
- else {
1056
- this.segments.push(this.parseKeyValue("(" + typeof inspectValue + ")", inspectValue));
1057
- }
1058
- };
1059
- JsonViewerComponent.prototype.isExpandable = function (segment) {
1060
- return segment.type === 'object' || segment.type === 'array';
1061
- };
1062
- JsonViewerComponent.prototype.toggle = function (segment) {
1063
- if (this.isExpandable(segment)) {
1064
- segment.expanded = !segment.expanded;
1065
- }
1066
- };
1067
- JsonViewerComponent.prototype.parseKeyValue = function (key, value) {
1068
- var segment = {
1069
- key: key,
1070
- value: value,
1071
- type: undefined,
1072
- description: '' + value,
1073
- expanded: this.expanded
1074
- };
1075
- switch (typeof segment.value) {
1076
- case 'number': {
1077
- segment.type = 'number';
1078
- break;
1079
- }
1080
- case 'boolean': {
1081
- segment.type = 'boolean';
1082
- break;
1083
- }
1084
- case 'function': {
1085
- segment.type = 'function';
1086
- break;
1087
- }
1088
- case 'string': {
1089
- segment.type = 'string';
1090
- segment.description = '"' + segment.value + '"';
1091
- break;
1092
- }
1093
- case 'undefined': {
1094
- segment.type = 'undefined';
1095
- segment.description = 'undefined';
1096
- break;
1097
- }
1098
- case 'object': {
1099
- // yea, null is object
1100
- if (segment.value === null) {
1101
- segment.type = 'null';
1102
- segment.description = 'null';
1103
- }
1104
- else if (Array.isArray(segment.value)) {
1105
- segment.type = 'array';
1106
- segment.description = 'Array[' + segment.value.length + '] ' + JSON.stringify(segment.value);
1107
- }
1108
- else if (segment.value instanceof Date) {
1109
- segment.type = 'date';
1110
- }
1111
- else {
1112
- segment.type = 'object';
1113
- segment.description = 'Object ' + JSON.stringify(segment.value);
1114
- }
1115
- break;
1116
- }
1117
- }
1118
- return segment;
1119
- };
1120
- return JsonViewerComponent;
1121
- }());
1122
- JsonViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: JsonViewerComponent, deps: [{ token: JSON_VIEW_IGNORED_PROPERTIES }, { token: JSON_VIEW_IGNORED_TYPES }, { token: i0.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1123
- JsonViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: { json: "json", expanded: "expanded" }, host: { classAttribute: "rxap-json-viewer" }, usesOnChanges: true, ngImport: i0__namespace, template: "<section class=\"container\">\n <section\n *ngFor=\"let segment of segments\"\n [ngClass]=\"['segment', 'segment-type-' + segment.type]\">\n <section\n (click)=\"toggle(segment)\"\n [ngClass]=\"{\n 'segment-main': true,\n 'expandable': isExpandable(segment),\n 'expanded': segment.expanded\n }\">\n <div *ngIf=\"isExpandable(segment)\" class=\"toggler\"></div>\n <span class=\"segment-key\">{{ segment.key }}</span>\n <span class=\"segment-separator\">: </span>\n <span *ngIf=\"!segment.expanded || !isExpandable(segment)\" class=\"segment-value\">{{ segment.description }}</span>\n </section>\n <section *ngIf=\"segment.expanded && isExpandable(segment)\" class=\"children\">\n <rxap-json-viewer [expanded]=\"expanded\" [json]=\"segment.value\"></rxap-json-viewer>\n </section>\n </section>\n</section>\n", styles: ["@charset \"UTF-8\";.container{width:100%;height:100%;overflow:hidden;position:relative}.container .segment{padding:2px;margin:1px 1px 1px 12px}.container .segment .segment-main{word-wrap:break-word}.container .segment .segment-main .toggler{position:absolute;margin-left:-14px;margin-top:3px;vertical-align:middle}.container .segment .segment-main .toggler:after{display:inline-block;content:\"\u25BA\";transition:transform .1s ease-in}.container .segment .children{margin-left:12px}.container .segment-type-array>.segment-main,.container .segment-type-object>.segment-main{white-space:nowrap}.container .expanded>.toggler:after{transform:rotate(90deg)}.container .expandable,.container .expandable>.toggler{cursor:pointer}"], components: [{ type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], directives: [{ type: i1__namespace$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1124
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: JsonViewerComponent, decorators: [{
1125
- type: i0.Component,
1126
- args: [{
1127
- selector: 'rxap-json-viewer',
1128
- templateUrl: './json-viewer.component.html',
1129
- styleUrls: ['./json-viewer.component.scss'],
1130
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1131
- host: { class: 'rxap-json-viewer' }
1132
- }]
1133
- }], ctorParameters: function () {
1134
- return [{ type: Array, decorators: [{
1135
- type: i0.Inject,
1136
- args: [JSON_VIEW_IGNORED_PROPERTIES]
1137
- }] }, { type: Array, decorators: [{
1138
- type: i0.Inject,
1139
- args: [JSON_VIEW_IGNORED_TYPES]
1140
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
1141
- type: i0.Inject,
1142
- args: [i0.ChangeDetectorRef]
1143
- }] }];
1144
- }, propDecorators: { json: [{
1145
- type: i0.Input
1146
- }], expanded: [{
1147
- type: i0.Input
1148
- }] } });
1149
-
1150
- var JsonViewerModule = /** @class */ (function () {
1151
- function JsonViewerModule() {
1152
- }
1153
- return JsonViewerModule;
1154
- }());
1155
- JsonViewerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: JsonViewerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1156
- JsonViewerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: JsonViewerModule, declarations: [JsonViewerComponent], imports: [i1$2.CommonModule], exports: [JsonViewerComponent] });
1157
- JsonViewerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: JsonViewerModule, imports: [[
1158
- i1$2.CommonModule
1159
- ]] });
1160
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: JsonViewerModule, decorators: [{
1161
- type: i0.NgModule,
1162
- args: [{
1163
- declarations: [JsonViewerComponent],
1164
- imports: [
1165
- i1$2.CommonModule
1166
- ],
1167
- exports: [JsonViewerComponent]
1168
- }]
1169
- }] });
1170
-
1171
- var CopyToClipboardButtonComponent = /** @class */ (function () {
1172
- function CopyToClipboardButtonComponent(snackbar) {
1173
- this.snackbar = snackbar;
1174
- this.value = '';
1175
- }
1176
- CopyToClipboardButtonComponent.prototype.copied = function () {
1177
- this.snackbar.open('Erfolgreich in die Zwischenablage kopiert.', 'OK', {
1178
- duration: 2500,
1179
- });
1180
- };
1181
- return CopyToClipboardButtonComponent;
1182
- }());
1183
- CopyToClipboardButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardButtonComponent, deps: [{ token: i4$1.MatSnackBar }], target: i0__namespace.ɵɵFactoryTarget.Component });
1184
- CopyToClipboardButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: { value: "value" }, host: { classAttribute: "rxap-copy-to-clipboard-button" }, ngImport: i0__namespace, template: "<button\n [cdkCopyToClipboard]=\"value\"\n (click)=\"$event.stopPropagation()\"\n (cdkCopyToClipboardCopied)=\"copied()\"\n mat-icon-button\n type=\"button\"\n>\n <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], components: [{ type: i1__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1185
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardButtonComponent, decorators: [{
1186
- type: i0.Component,
1187
- args: [{
1188
- selector: 'rxap-copy-to-clipboard-button',
1189
- templateUrl: './copy-to-clipboard-button.component.html',
1190
- styleUrls: ['./copy-to-clipboard-button.component.scss'],
1191
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1192
- host: { class: 'rxap-copy-to-clipboard-button' },
1193
- }]
1194
- }], ctorParameters: function () {
1195
- return [{ type: i4__namespace$1.MatSnackBar, decorators: [{
1196
- type: i0.Inject,
1197
- args: [i4$1.MatSnackBar]
1198
- }] }];
1199
- }, propDecorators: { value: [{
1200
- type: i0.Input
1201
- }] } });
1202
-
1203
- var CopyToClipboardComponent = /** @class */ (function () {
1204
- function CopyToClipboardComponent() {
1205
- this.active = true;
1206
- this.disabled = false;
1207
- }
1208
- return CopyToClipboardComponent;
1209
- }());
1210
- CopyToClipboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1211
- CopyToClipboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: { active: "active", disabled: "disabled", value: "value" }, ngImport: i0__namespace, template: "<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\".2rem\">\n <rxap-copy-to-clipboard-button fxFlex=\"40px\" *ngIf=\"active\" [value]=\"value\"></rxap-copy-to-clipboard-button>\n <span #ref fxFlex=\"nogrow\" class=\"content\"><ng-content></ng-content></span>\n <span *ngIf=\"!ref.innerHTML.trim()\" fxFlex=\"nogrow\" class=\"content\">{{ value }}</span>\n</div>\n", styles: [""], components: [{ type: CopyToClipboardButtonComponent, selector: "rxap-copy-to-clipboard-button", inputs: ["value"] }], directives: [{ type: i3__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i1__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1212
- __decorate([
1213
- utilities.Required,
1214
- __metadata("design:type", String)
1215
- ], CopyToClipboardComponent.prototype, "value", void 0);
1216
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardComponent, decorators: [{
1217
- type: i0.Component,
1218
- args: [{
1219
- selector: 'rxap-copy-to-clipboard',
1220
- templateUrl: './copy-to-clipboard.component.html',
1221
- styleUrls: ['./copy-to-clipboard.component.scss'],
1222
- changeDetection: i0.ChangeDetectionStrategy.OnPush
1223
- }]
1224
- }], propDecorators: { active: [{
1225
- type: i0.Input
1226
- }], disabled: [{
1227
- type: i0.Input
1228
- }], value: [{
1229
- type: i0.Input
1230
- }] } });
1231
-
1232
- var CopyToClipboardButtonComponentModule = /** @class */ (function () {
1233
- function CopyToClipboardButtonComponentModule() {
1234
- }
1235
- return CopyToClipboardButtonComponentModule;
1236
- }());
1237
- CopyToClipboardButtonComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardButtonComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1238
- CopyToClipboardButtonComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardButtonComponentModule, declarations: [CopyToClipboardButtonComponent], imports: [i2.MatIconModule,
1239
- i1.MatButtonModule,
1240
- i3$1.ClipboardModule,
1241
- i4$1.MatSnackBarModule], exports: [CopyToClipboardButtonComponent] });
1242
- CopyToClipboardButtonComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardButtonComponentModule, imports: [[
1243
- i2.MatIconModule,
1244
- i1.MatButtonModule,
1245
- i3$1.ClipboardModule,
1246
- i4$1.MatSnackBarModule
1247
- ]] });
1248
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardButtonComponentModule, decorators: [{
1249
- type: i0.NgModule,
1250
- args: [{
1251
- declarations: [CopyToClipboardButtonComponent],
1252
- imports: [
1253
- i2.MatIconModule,
1254
- i1.MatButtonModule,
1255
- i3$1.ClipboardModule,
1256
- i4$1.MatSnackBarModule
1257
- ],
1258
- exports: [CopyToClipboardButtonComponent]
1259
- }]
1260
- }] });
1261
-
1262
- var CopyToClipboardModule = /** @class */ (function () {
1263
- function CopyToClipboardModule() {
1264
- }
1265
- return CopyToClipboardModule;
1266
- }());
1267
- CopyToClipboardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1268
- CopyToClipboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardModule, declarations: [CopyToClipboardComponent], imports: [i3.FlexLayoutModule,
1269
- i3$1.ClipboardModule,
1270
- i1$2.CommonModule,
1271
- i2.MatIconModule,
1272
- i1.MatButtonModule,
1273
- i4$1.MatSnackBarModule,
1274
- CopyToClipboardButtonComponentModule], exports: [CopyToClipboardComponent] });
1275
- CopyToClipboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardModule, imports: [[
1276
- i3.FlexLayoutModule,
1277
- i3$1.ClipboardModule,
1278
- i1$2.CommonModule,
1279
- i2.MatIconModule,
1280
- i1.MatButtonModule,
1281
- i4$1.MatSnackBarModule,
1282
- CopyToClipboardButtonComponentModule,
1283
- ]] });
1284
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CopyToClipboardModule, decorators: [{
1285
- type: i0.NgModule,
1286
- args: [{
1287
- declarations: [CopyToClipboardComponent],
1288
- imports: [
1289
- i3.FlexLayoutModule,
1290
- i3$1.ClipboardModule,
1291
- i1$2.CommonModule,
1292
- i2.MatIconModule,
1293
- i1.MatButtonModule,
1294
- i4$1.MatSnackBarModule,
1295
- CopyToClipboardButtonComponentModule,
1296
- ],
1297
- exports: [CopyToClipboardComponent]
1298
- }]
1299
- }] });
1300
-
1301
- var DarkModeToggleButtonComponent = /** @class */ (function () {
1302
- function DarkModeToggleButtonComponent(theme) {
1303
- this.theme = theme;
1304
- }
1305
- return DarkModeToggleButtonComponent;
1306
- }());
1307
- DarkModeToggleButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DarkModeToggleButtonComponent, deps: [{ token: i5.ThemeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1308
- DarkModeToggleButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: DarkModeToggleButtonComponent, selector: "rxap-dark-mode-toggle-button", host: { classAttribute: "rxap-dark-mode-toggle-button" }, ngImport: i0__namespace, template: "<button rxapStopPropagation mat-icon-button (click)=\"theme.toggleDarkTheme()\">\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n</button>\n", styles: [""], components: [{ type: i1__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace$2.StopPropagationDirective, selector: "[rxapStopPropagation]" }, { type: i1__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1309
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DarkModeToggleButtonComponent, decorators: [{
1310
- type: i0.Component,
1311
- args: [{
1312
- selector: 'rxap-dark-mode-toggle-button',
1313
- templateUrl: './dark-mode-toggle-button.component.html',
1314
- styleUrls: ['./dark-mode-toggle-button.component.scss'],
1315
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1316
- host: { class: 'rxap-dark-mode-toggle-button' },
1317
- }]
1318
- }], ctorParameters: function () {
1319
- return [{ type: i5__namespace.ThemeService, decorators: [{
1320
- type: i0.Inject,
1321
- args: [i5.ThemeService]
1322
- }] }];
1323
- } });
1324
-
1325
- var DarkModeToggleButtonComponentModule = /** @class */ (function () {
1326
- function DarkModeToggleButtonComponentModule() {
1327
- }
1328
- return DarkModeToggleButtonComponentModule;
1329
- }());
1330
- DarkModeToggleButtonComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DarkModeToggleButtonComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1331
- DarkModeToggleButtonComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DarkModeToggleButtonComponentModule, declarations: [DarkModeToggleButtonComponent], imports: [i1.MatButtonModule,
1332
- i2.MatIconModule,
1333
- i1$2.CommonModule,
1334
- i3$2.StopPropagationDirectiveModule], exports: [DarkModeToggleButtonComponent] });
1335
- DarkModeToggleButtonComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DarkModeToggleButtonComponentModule, imports: [[
1336
- i1.MatButtonModule,
1337
- i2.MatIconModule,
1338
- i1$2.CommonModule,
1339
- i3$2.StopPropagationDirectiveModule,
1340
- ]] });
1341
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DarkModeToggleButtonComponentModule, decorators: [{
1342
- type: i0.NgModule,
1343
- args: [{
1344
- declarations: [DarkModeToggleButtonComponent],
1345
- imports: [
1346
- i1.MatButtonModule,
1347
- i2.MatIconModule,
1348
- i1$2.CommonModule,
1349
- i3$2.StopPropagationDirectiveModule,
1350
- ],
1351
- exports: [DarkModeToggleButtonComponent]
1352
- }]
1353
- }] });
1354
-
1355
- var NavigateBackButtonComponent = /** @class */ (function () {
1356
- function NavigateBackButtonComponent() {
1357
- }
1358
- NavigateBackButtonComponent.prototype.navigateBack = function () {
1359
- window.history.back();
1360
- };
1361
- return NavigateBackButtonComponent;
1362
- }());
1363
- NavigateBackButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: NavigateBackButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1364
- NavigateBackButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: NavigateBackButtonComponent, selector: "rxap-navigate-back-button", host: { classAttribute: "rxap-navigate-back-button" }, ngImport: i0__namespace, template: "<div fxLayout=\"row\" fxLayoutGap=\"32px\" fxLayoutAlign=\"start center\">\n <div fxFlex=\"nogrow\">\n <button (click)=\"navigateBack()\" mat-stroked-button color=\"accent\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [""], components: [{ type: i1__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i3__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1365
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: NavigateBackButtonComponent, decorators: [{
1366
- type: i0.Component,
1367
- args: [{
1368
- selector: 'rxap-navigate-back-button',
1369
- templateUrl: './navigate-back-button.component.html',
1370
- styleUrls: ['./navigate-back-button.component.scss'],
1371
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1372
- host: { class: 'rxap-navigate-back-button' }
1373
- }]
1374
- }] });
1375
-
1376
- var NavigateBackButtonComponentModule = /** @class */ (function () {
1377
- function NavigateBackButtonComponentModule() {
1378
- }
1379
- return NavigateBackButtonComponentModule;
1380
- }());
1381
- NavigateBackButtonComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: NavigateBackButtonComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1382
- NavigateBackButtonComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: NavigateBackButtonComponentModule, declarations: [NavigateBackButtonComponent], imports: [i3.FlexLayoutModule,
1383
- i1.MatButtonModule,
1384
- i2.MatIconModule], exports: [NavigateBackButtonComponent] });
1385
- NavigateBackButtonComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: NavigateBackButtonComponentModule, imports: [[
1386
- i3.FlexLayoutModule,
1387
- i1.MatButtonModule,
1388
- i2.MatIconModule
1389
- ]] });
1390
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: NavigateBackButtonComponentModule, decorators: [{
1391
- type: i0.NgModule,
1392
- args: [{
1393
- declarations: [NavigateBackButtonComponent],
1394
- imports: [
1395
- i3.FlexLayoutModule,
1396
- i1.MatButtonModule,
1397
- i2.MatIconModule
1398
- ],
1399
- exports: [NavigateBackButtonComponent]
1400
- }]
1401
- }] });
1402
-
1403
- // region button
1404
- // endregion
1405
-
1406
- /**
1407
- * Generated bundle index. Do not edit.
1408
- */
1409
-
1410
- exports.ButtonComponent = ButtonComponent;
1411
- exports.ButtonComponentModule = ButtonComponentModule;
1412
- exports.ConfirmComponent = ConfirmComponent;
1413
- exports.ConfirmComponentModule = ConfirmComponentModule;
1414
- exports.ConfirmDirective = ConfirmDirective;
1415
- exports.CopyToClipboardButtonComponent = CopyToClipboardButtonComponent;
1416
- exports.CopyToClipboardButtonComponentModule = CopyToClipboardButtonComponentModule;
1417
- exports.CopyToClipboardComponent = CopyToClipboardComponent;
1418
- exports.CopyToClipboardModule = CopyToClipboardModule;
1419
- exports.DarkModeToggleButtonComponent = DarkModeToggleButtonComponent;
1420
- exports.DarkModeToggleButtonComponentModule = DarkModeToggleButtonComponentModule;
1421
- exports.EmptyRouterOutletComponent = EmptyRouterOutletComponent;
1422
- exports.EmptyRouterOutletModule = EmptyRouterOutletModule;
1423
- exports.JSON_VIEW_IGNORED_PROPERTIES = JSON_VIEW_IGNORED_PROPERTIES;
1424
- exports.JSON_VIEW_IGNORED_TYPES = JSON_VIEW_IGNORED_TYPES;
1425
- exports.JsonViewerComponent = JsonViewerComponent;
1426
- exports.JsonViewerModule = JsonViewerModule;
1427
- exports.NavigateBackButtonComponent = NavigateBackButtonComponent;
1428
- exports.NavigateBackButtonComponentModule = NavigateBackButtonComponentModule;
1429
-
1430
- Object.defineProperty(exports, '__esModule', { value: true });
1431
-
1432
- })));
1433
- //# sourceMappingURL=rxap-components.umd.js.map