@pepperi-addons/ngx-composite-lib 0.0.16-beta.5 → 0.0.16-beta.9

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 (127) hide show
  1. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -123
  2. package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +835 -835
  3. package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js.map +1 -1
  4. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +84 -84
  5. package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js +647 -647
  6. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +961 -961
  7. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
  8. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +176 -176
  9. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
  10. package/bundles/pepperi-addons-ngx-composite-lib.umd.js +538 -538
  11. package/color-settings/color-settings.component.d.ts +22 -22
  12. package/color-settings/color-settings.model.d.ts +5 -5
  13. package/color-settings/color-settings.module.d.ts +12 -12
  14. package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
  15. package/color-settings/public-api.d.ts +3 -3
  16. package/core/common/directives/index.d.ts +1 -1
  17. package/core/common/directives/public-api.d.ts +1 -1
  18. package/core/common/directives/reset-configuration-field.directive.d.ts +38 -38
  19. package/core/common/index.d.ts +1 -1
  20. package/core/common/public-api.d.ts +2 -2
  21. package/core/common/services/index.d.ts +1 -1
  22. package/core/common/services/public-api.d.ts +1 -1
  23. package/core/common/services/utilities.service.d.ts +6 -6
  24. package/core/index.d.ts +1 -1
  25. package/core/public-api.d.ts +1 -1
  26. package/dimx-export/dimx.component.d.ts +86 -86
  27. package/dimx-export/dimx.model.d.ts +5 -5
  28. package/dimx-export/dimx.module.d.ts +16 -16
  29. package/dimx-export/dimx.service.d.ts +20 -21
  30. package/dimx-export/index.d.ts +1 -1
  31. package/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts +5 -5
  32. package/dimx-export/public-api.d.ts +3 -3
  33. package/esm2015/color-settings/color-settings.component.js +81 -81
  34. package/esm2015/color-settings/color-settings.model.js +8 -8
  35. package/esm2015/color-settings/color-settings.module.js +39 -39
  36. package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
  37. package/esm2015/color-settings/public-api.js +6 -6
  38. package/esm2015/core/common/directives/index.js +4 -4
  39. package/esm2015/core/common/directives/public-api.js +4 -4
  40. package/esm2015/core/common/directives/reset-configuration-field.directive.js +135 -135
  41. package/esm2015/core/common/index.js +4 -4
  42. package/esm2015/core/common/public-api.js +5 -5
  43. package/esm2015/core/common/services/index.js +4 -4
  44. package/esm2015/core/common/services/public-api.js +4 -4
  45. package/esm2015/core/common/services/utilities.service.js +18 -18
  46. package/esm2015/core/index.js +4 -4
  47. package/esm2015/core/public-api.js +4 -4
  48. package/esm2015/dimx-export/dimx.component.js +335 -335
  49. package/esm2015/dimx-export/dimx.model.js +7 -7
  50. package/esm2015/dimx-export/dimx.module.js +52 -52
  51. package/esm2015/dimx-export/dimx.service.js +50 -50
  52. package/esm2015/dimx-export/index.js +4 -4
  53. package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +4 -4
  54. package/esm2015/dimx-export/public-api.js +6 -6
  55. package/esm2015/file-status-panel/file-status-panel.component.js +38 -38
  56. package/esm2015/file-status-panel/file-status-panel.model.js +8 -8
  57. package/esm2015/file-status-panel/file-status-panel.module.js +47 -47
  58. package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +4 -4
  59. package/esm2015/file-status-panel/public-api.js +6 -6
  60. package/esm2015/generic-form/generic-form.component.js +189 -189
  61. package/esm2015/generic-form/generic-form.model.js +1 -1
  62. package/esm2015/generic-form/generic-form.module.js +73 -73
  63. package/esm2015/generic-form/generic-form.service.js +67 -67
  64. package/esm2015/generic-form/index.js +4 -4
  65. package/esm2015/generic-form/pepperi-addons-ngx-composite-lib-generic-form.js +4 -4
  66. package/esm2015/generic-form/public-api.js +7 -7
  67. package/esm2015/generic-list/generic-list.component.js +417 -417
  68. package/esm2015/generic-list/generic-list.model.js +1 -1
  69. package/esm2015/generic-list/generic-list.module.js +68 -68
  70. package/esm2015/generic-list/generic-list.service.js +113 -113
  71. package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
  72. package/esm2015/generic-list/public-api.js +7 -7
  73. package/esm2015/group-buttons-settings/group-buttons-settings.component.js +134 -134
  74. package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
  75. package/esm2015/group-buttons-settings/group-buttons-settings.module.js +46 -46
  76. package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
  77. package/esm2015/group-buttons-settings/public-api.js +6 -6
  78. package/esm2015/ngx-composite-lib.module.js +44 -44
  79. package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
  80. package/esm2015/public-api.js +5 -5
  81. package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
  82. package/esm2015/shadow-settings/public-api.js +6 -6
  83. package/esm2015/shadow-settings/shadow-settings.component.js +72 -72
  84. package/esm2015/shadow-settings/shadow-settings.model.js +7 -7
  85. package/esm2015/shadow-settings/shadow-settings.module.js +43 -43
  86. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -113
  87. package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +415 -415
  88. package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js.map +1 -1
  89. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +77 -77
  90. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js +301 -301
  91. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +559 -559
  92. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
  93. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +167 -167
  94. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
  95. package/fesm2015/pepperi-addons-ngx-composite-lib.js +197 -197
  96. package/file-status-panel/file-status-panel.component.d.ts +14 -14
  97. package/file-status-panel/file-status-panel.model.d.ts +7 -7
  98. package/file-status-panel/file-status-panel.module.d.ts +14 -14
  99. package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -5
  100. package/file-status-panel/public-api.d.ts +3 -3
  101. package/generic-form/generic-form.component.d.ts +49 -49
  102. package/generic-form/generic-form.model.d.ts +39 -39
  103. package/generic-form/generic-form.module.d.ts +13 -13
  104. package/generic-form/generic-form.service.d.ts +16 -16
  105. package/generic-form/index.d.ts +1 -1
  106. package/generic-form/pepperi-addons-ngx-composite-lib-generic-form.d.ts +5 -5
  107. package/generic-form/public-api.d.ts +4 -4
  108. package/generic-list/generic-list.component.d.ts +99 -99
  109. package/generic-list/generic-list.model.d.ts +50 -50
  110. package/generic-list/generic-list.module.d.ts +18 -18
  111. package/generic-list/generic-list.service.d.ts +42 -42
  112. package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
  113. package/generic-list/public-api.d.ts +4 -4
  114. package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -33
  115. package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
  116. package/group-buttons-settings/group-buttons-settings.module.d.ts +14 -14
  117. package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
  118. package/group-buttons-settings/public-api.d.ts +3 -3
  119. package/ngx-composite-lib.module.d.ts +11 -11
  120. package/package.json +1 -1
  121. package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
  122. package/public-api.d.ts +2 -2
  123. package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
  124. package/shadow-settings/public-api.d.ts +3 -3
  125. package/shadow-settings/shadow-settings.component.d.ts +23 -23
  126. package/shadow-settings/shadow-settings.model.d.ts +7 -7
  127. package/shadow-settings/shadow-settings.module.d.ts +13 -13
@@ -26,570 +26,570 @@
26
26
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
27
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
28
 
29
- /*! *****************************************************************************
30
- Copyright (c) Microsoft Corporation.
31
-
32
- Permission to use, copy, modify, and/or distribute this software for any
33
- purpose with or without fee is hereby granted.
34
-
35
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
- PERFORMANCE OF THIS SOFTWARE.
42
- ***************************************************************************** */
43
- /* global Reflect, Promise */
44
- var extendStatics = function (d, b) {
45
- extendStatics = Object.setPrototypeOf ||
46
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47
- function (d, b) { for (var p in b)
48
- if (Object.prototype.hasOwnProperty.call(b, p))
49
- d[p] = b[p]; };
50
- return extendStatics(d, b);
51
- };
52
- function __extends(d, b) {
53
- if (typeof b !== "function" && b !== null)
54
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55
- extendStatics(d, b);
56
- function __() { this.constructor = d; }
57
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58
- }
59
- var __assign = function () {
60
- __assign = Object.assign || function __assign(t) {
61
- for (var s, i = 1, n = arguments.length; i < n; i++) {
62
- s = arguments[i];
63
- for (var p in s)
64
- if (Object.prototype.hasOwnProperty.call(s, p))
65
- t[p] = s[p];
66
- }
67
- return t;
68
- };
69
- return __assign.apply(this, arguments);
70
- };
71
- function __rest(s, e) {
72
- var t = {};
73
- for (var p in s)
74
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
75
- t[p] = s[p];
76
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
77
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
79
- t[p[i]] = s[p[i]];
80
- }
81
- return t;
82
- }
83
- function __decorate(decorators, target, key, desc) {
84
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
85
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
86
- r = Reflect.decorate(decorators, target, key, desc);
87
- else
88
- for (var i = decorators.length - 1; i >= 0; i--)
89
- if (d = decorators[i])
90
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
- return c > 3 && r && Object.defineProperty(target, key, r), r;
92
- }
93
- function __param(paramIndex, decorator) {
94
- return function (target, key) { decorator(target, key, paramIndex); };
95
- }
96
- function __metadata(metadataKey, metadataValue) {
97
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
98
- return Reflect.metadata(metadataKey, metadataValue);
99
- }
100
- function __awaiter(thisArg, _arguments, P, generator) {
101
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
102
- return new (P || (P = Promise))(function (resolve, reject) {
103
- function fulfilled(value) { try {
104
- step(generator.next(value));
105
- }
106
- catch (e) {
107
- reject(e);
108
- } }
109
- function rejected(value) { try {
110
- step(generator["throw"](value));
111
- }
112
- catch (e) {
113
- reject(e);
114
- } }
115
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
116
- step((generator = generator.apply(thisArg, _arguments || [])).next());
117
- });
118
- }
119
- function __generator(thisArg, body) {
120
- var _ = { label: 0, sent: function () { if (t[0] & 1)
121
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
122
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
123
- function verb(n) { return function (v) { return step([n, v]); }; }
124
- function step(op) {
125
- if (f)
126
- throw new TypeError("Generator is already executing.");
127
- while (_)
128
- try {
129
- 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)
130
- return t;
131
- if (y = 0, t)
132
- op = [op[0] & 2, t.value];
133
- switch (op[0]) {
134
- case 0:
135
- case 1:
136
- t = op;
137
- break;
138
- case 4:
139
- _.label++;
140
- return { value: op[1], done: false };
141
- case 5:
142
- _.label++;
143
- y = op[1];
144
- op = [0];
145
- continue;
146
- case 7:
147
- op = _.ops.pop();
148
- _.trys.pop();
149
- continue;
150
- default:
151
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
152
- _ = 0;
153
- continue;
154
- }
155
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
156
- _.label = op[1];
157
- break;
158
- }
159
- if (op[0] === 6 && _.label < t[1]) {
160
- _.label = t[1];
161
- t = op;
162
- break;
163
- }
164
- if (t && _.label < t[2]) {
165
- _.label = t[2];
166
- _.ops.push(op);
167
- break;
168
- }
169
- if (t[2])
170
- _.ops.pop();
171
- _.trys.pop();
172
- continue;
173
- }
174
- op = body.call(thisArg, _);
175
- }
176
- catch (e) {
177
- op = [6, e];
178
- y = 0;
179
- }
180
- finally {
181
- f = t = 0;
182
- }
183
- if (op[0] & 5)
184
- throw op[1];
185
- return { value: op[0] ? op[1] : void 0, done: true };
186
- }
187
- }
188
- var __createBinding = Object.create ? (function (o, m, k, k2) {
189
- if (k2 === undefined)
190
- k2 = k;
191
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
192
- }) : (function (o, m, k, k2) {
193
- if (k2 === undefined)
194
- k2 = k;
195
- o[k2] = m[k];
196
- });
197
- function __exportStar(m, o) {
198
- for (var p in m)
199
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
200
- __createBinding(o, m, p);
201
- }
202
- function __values(o) {
203
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
204
- if (m)
205
- return m.call(o);
206
- if (o && typeof o.length === "number")
207
- return {
208
- next: function () {
209
- if (o && i >= o.length)
210
- o = void 0;
211
- return { value: o && o[i++], done: !o };
212
- }
213
- };
214
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
215
- }
216
- function __read(o, n) {
217
- var m = typeof Symbol === "function" && o[Symbol.iterator];
218
- if (!m)
219
- return o;
220
- var i = m.call(o), r, ar = [], e;
221
- try {
222
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
223
- ar.push(r.value);
224
- }
225
- catch (error) {
226
- e = { error: error };
227
- }
228
- finally {
229
- try {
230
- if (r && !r.done && (m = i["return"]))
231
- m.call(i);
232
- }
233
- finally {
234
- if (e)
235
- throw e.error;
236
- }
237
- }
238
- return ar;
239
- }
240
- /** @deprecated */
241
- function __spread() {
242
- for (var ar = [], i = 0; i < arguments.length; i++)
243
- ar = ar.concat(__read(arguments[i]));
244
- return ar;
245
- }
246
- /** @deprecated */
247
- function __spreadArrays() {
248
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
249
- s += arguments[i].length;
250
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
251
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
252
- r[k] = a[j];
253
- return r;
254
- }
255
- function __spreadArray(to, from, pack) {
256
- if (pack || arguments.length === 2)
257
- for (var i = 0, l = from.length, ar; i < l; i++) {
258
- if (ar || !(i in from)) {
259
- if (!ar)
260
- ar = Array.prototype.slice.call(from, 0, i);
261
- ar[i] = from[i];
262
- }
263
- }
264
- return to.concat(ar || Array.prototype.slice.call(from));
265
- }
266
- function __await(v) {
267
- return this instanceof __await ? (this.v = v, this) : new __await(v);
268
- }
269
- function __asyncGenerator(thisArg, _arguments, generator) {
270
- if (!Symbol.asyncIterator)
271
- throw new TypeError("Symbol.asyncIterator is not defined.");
272
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
273
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
274
- function verb(n) { if (g[n])
275
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
276
- function resume(n, v) { try {
277
- step(g[n](v));
278
- }
279
- catch (e) {
280
- settle(q[0][3], e);
281
- } }
282
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
283
- function fulfill(value) { resume("next", value); }
284
- function reject(value) { resume("throw", value); }
285
- function settle(f, v) { if (f(v), q.shift(), q.length)
286
- resume(q[0][0], q[0][1]); }
287
- }
288
- function __asyncDelegator(o) {
289
- var i, p;
290
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
291
- 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; }
292
- }
293
- function __asyncValues(o) {
294
- if (!Symbol.asyncIterator)
295
- throw new TypeError("Symbol.asyncIterator is not defined.");
296
- var m = o[Symbol.asyncIterator], i;
297
- 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);
298
- 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); }); }; }
299
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
300
- }
301
- function __makeTemplateObject(cooked, raw) {
302
- if (Object.defineProperty) {
303
- Object.defineProperty(cooked, "raw", { value: raw });
304
- }
305
- else {
306
- cooked.raw = raw;
307
- }
308
- return cooked;
309
- }
310
- ;
311
- var __setModuleDefault = Object.create ? (function (o, v) {
312
- Object.defineProperty(o, "default", { enumerable: true, value: v });
313
- }) : function (o, v) {
314
- o["default"] = v;
315
- };
316
- function __importStar(mod) {
317
- if (mod && mod.__esModule)
318
- return mod;
319
- var result = {};
320
- if (mod != null)
321
- for (var k in mod)
322
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
323
- __createBinding(result, mod, k);
324
- __setModuleDefault(result, mod);
325
- return result;
326
- }
327
- function __importDefault(mod) {
328
- return (mod && mod.__esModule) ? mod : { default: mod };
329
- }
330
- function __classPrivateFieldGet(receiver, state, kind, f) {
331
- if (kind === "a" && !f)
332
- throw new TypeError("Private accessor was defined without a getter");
333
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
334
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
335
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
336
- }
337
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
338
- if (kind === "m")
339
- throw new TypeError("Private method is not writable");
340
- if (kind === "a" && !f)
341
- throw new TypeError("Private accessor was defined without a setter");
342
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
343
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
344
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
29
+ /*! *****************************************************************************
30
+ Copyright (c) Microsoft Corporation.
31
+
32
+ Permission to use, copy, modify, and/or distribute this software for any
33
+ purpose with or without fee is hereby granted.
34
+
35
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
+ PERFORMANCE OF THIS SOFTWARE.
42
+ ***************************************************************************** */
43
+ /* global Reflect, Promise */
44
+ var extendStatics = function (d, b) {
45
+ extendStatics = Object.setPrototypeOf ||
46
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47
+ function (d, b) { for (var p in b)
48
+ if (Object.prototype.hasOwnProperty.call(b, p))
49
+ d[p] = b[p]; };
50
+ return extendStatics(d, b);
51
+ };
52
+ function __extends(d, b) {
53
+ if (typeof b !== "function" && b !== null)
54
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55
+ extendStatics(d, b);
56
+ function __() { this.constructor = d; }
57
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58
+ }
59
+ var __assign = function () {
60
+ __assign = Object.assign || function __assign(t) {
61
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
62
+ s = arguments[i];
63
+ for (var p in s)
64
+ if (Object.prototype.hasOwnProperty.call(s, p))
65
+ t[p] = s[p];
66
+ }
67
+ return t;
68
+ };
69
+ return __assign.apply(this, arguments);
70
+ };
71
+ function __rest(s, e) {
72
+ var t = {};
73
+ for (var p in s)
74
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
75
+ t[p] = s[p];
76
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
77
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
79
+ t[p[i]] = s[p[i]];
80
+ }
81
+ return t;
82
+ }
83
+ function __decorate(decorators, target, key, desc) {
84
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
85
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
86
+ r = Reflect.decorate(decorators, target, key, desc);
87
+ else
88
+ for (var i = decorators.length - 1; i >= 0; i--)
89
+ if (d = decorators[i])
90
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
92
+ }
93
+ function __param(paramIndex, decorator) {
94
+ return function (target, key) { decorator(target, key, paramIndex); };
95
+ }
96
+ function __metadata(metadataKey, metadataValue) {
97
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
98
+ return Reflect.metadata(metadataKey, metadataValue);
99
+ }
100
+ function __awaiter(thisArg, _arguments, P, generator) {
101
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
102
+ return new (P || (P = Promise))(function (resolve, reject) {
103
+ function fulfilled(value) { try {
104
+ step(generator.next(value));
105
+ }
106
+ catch (e) {
107
+ reject(e);
108
+ } }
109
+ function rejected(value) { try {
110
+ step(generator["throw"](value));
111
+ }
112
+ catch (e) {
113
+ reject(e);
114
+ } }
115
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
116
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
117
+ });
118
+ }
119
+ function __generator(thisArg, body) {
120
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
121
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
122
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
123
+ function verb(n) { return function (v) { return step([n, v]); }; }
124
+ function step(op) {
125
+ if (f)
126
+ throw new TypeError("Generator is already executing.");
127
+ while (_)
128
+ try {
129
+ 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)
130
+ return t;
131
+ if (y = 0, t)
132
+ op = [op[0] & 2, t.value];
133
+ switch (op[0]) {
134
+ case 0:
135
+ case 1:
136
+ t = op;
137
+ break;
138
+ case 4:
139
+ _.label++;
140
+ return { value: op[1], done: false };
141
+ case 5:
142
+ _.label++;
143
+ y = op[1];
144
+ op = [0];
145
+ continue;
146
+ case 7:
147
+ op = _.ops.pop();
148
+ _.trys.pop();
149
+ continue;
150
+ default:
151
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
152
+ _ = 0;
153
+ continue;
154
+ }
155
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
156
+ _.label = op[1];
157
+ break;
158
+ }
159
+ if (op[0] === 6 && _.label < t[1]) {
160
+ _.label = t[1];
161
+ t = op;
162
+ break;
163
+ }
164
+ if (t && _.label < t[2]) {
165
+ _.label = t[2];
166
+ _.ops.push(op);
167
+ break;
168
+ }
169
+ if (t[2])
170
+ _.ops.pop();
171
+ _.trys.pop();
172
+ continue;
173
+ }
174
+ op = body.call(thisArg, _);
175
+ }
176
+ catch (e) {
177
+ op = [6, e];
178
+ y = 0;
179
+ }
180
+ finally {
181
+ f = t = 0;
182
+ }
183
+ if (op[0] & 5)
184
+ throw op[1];
185
+ return { value: op[0] ? op[1] : void 0, done: true };
186
+ }
187
+ }
188
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
189
+ if (k2 === undefined)
190
+ k2 = k;
191
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
192
+ }) : (function (o, m, k, k2) {
193
+ if (k2 === undefined)
194
+ k2 = k;
195
+ o[k2] = m[k];
196
+ });
197
+ function __exportStar(m, o) {
198
+ for (var p in m)
199
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
200
+ __createBinding(o, m, p);
201
+ }
202
+ function __values(o) {
203
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
204
+ if (m)
205
+ return m.call(o);
206
+ if (o && typeof o.length === "number")
207
+ return {
208
+ next: function () {
209
+ if (o && i >= o.length)
210
+ o = void 0;
211
+ return { value: o && o[i++], done: !o };
212
+ }
213
+ };
214
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
215
+ }
216
+ function __read(o, n) {
217
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
218
+ if (!m)
219
+ return o;
220
+ var i = m.call(o), r, ar = [], e;
221
+ try {
222
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
223
+ ar.push(r.value);
224
+ }
225
+ catch (error) {
226
+ e = { error: error };
227
+ }
228
+ finally {
229
+ try {
230
+ if (r && !r.done && (m = i["return"]))
231
+ m.call(i);
232
+ }
233
+ finally {
234
+ if (e)
235
+ throw e.error;
236
+ }
237
+ }
238
+ return ar;
239
+ }
240
+ /** @deprecated */
241
+ function __spread() {
242
+ for (var ar = [], i = 0; i < arguments.length; i++)
243
+ ar = ar.concat(__read(arguments[i]));
244
+ return ar;
245
+ }
246
+ /** @deprecated */
247
+ function __spreadArrays() {
248
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
249
+ s += arguments[i].length;
250
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
251
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
252
+ r[k] = a[j];
253
+ return r;
254
+ }
255
+ function __spreadArray(to, from, pack) {
256
+ if (pack || arguments.length === 2)
257
+ for (var i = 0, l = from.length, ar; i < l; i++) {
258
+ if (ar || !(i in from)) {
259
+ if (!ar)
260
+ ar = Array.prototype.slice.call(from, 0, i);
261
+ ar[i] = from[i];
262
+ }
263
+ }
264
+ return to.concat(ar || Array.prototype.slice.call(from));
265
+ }
266
+ function __await(v) {
267
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
268
+ }
269
+ function __asyncGenerator(thisArg, _arguments, generator) {
270
+ if (!Symbol.asyncIterator)
271
+ throw new TypeError("Symbol.asyncIterator is not defined.");
272
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
273
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
274
+ function verb(n) { if (g[n])
275
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
276
+ function resume(n, v) { try {
277
+ step(g[n](v));
278
+ }
279
+ catch (e) {
280
+ settle(q[0][3], e);
281
+ } }
282
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
283
+ function fulfill(value) { resume("next", value); }
284
+ function reject(value) { resume("throw", value); }
285
+ function settle(f, v) { if (f(v), q.shift(), q.length)
286
+ resume(q[0][0], q[0][1]); }
287
+ }
288
+ function __asyncDelegator(o) {
289
+ var i, p;
290
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
291
+ 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; }
292
+ }
293
+ function __asyncValues(o) {
294
+ if (!Symbol.asyncIterator)
295
+ throw new TypeError("Symbol.asyncIterator is not defined.");
296
+ var m = o[Symbol.asyncIterator], i;
297
+ 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);
298
+ 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); }); }; }
299
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
300
+ }
301
+ function __makeTemplateObject(cooked, raw) {
302
+ if (Object.defineProperty) {
303
+ Object.defineProperty(cooked, "raw", { value: raw });
304
+ }
305
+ else {
306
+ cooked.raw = raw;
307
+ }
308
+ return cooked;
309
+ }
310
+ ;
311
+ var __setModuleDefault = Object.create ? (function (o, v) {
312
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
313
+ }) : function (o, v) {
314
+ o["default"] = v;
315
+ };
316
+ function __importStar(mod) {
317
+ if (mod && mod.__esModule)
318
+ return mod;
319
+ var result = {};
320
+ if (mod != null)
321
+ for (var k in mod)
322
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
323
+ __createBinding(result, mod, k);
324
+ __setModuleDefault(result, mod);
325
+ return result;
326
+ }
327
+ function __importDefault(mod) {
328
+ return (mod && mod.__esModule) ? mod : { default: mod };
329
+ }
330
+ function __classPrivateFieldGet(receiver, state, kind, f) {
331
+ if (kind === "a" && !f)
332
+ throw new TypeError("Private accessor was defined without a getter");
333
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
334
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
335
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
336
+ }
337
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
338
+ if (kind === "m")
339
+ throw new TypeError("Private method is not writable");
340
+ if (kind === "a" && !f)
341
+ throw new TypeError("Private accessor was defined without a setter");
342
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
343
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
344
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
345
345
  }
346
346
 
347
- var PepResetConfigurationFieldDirective = /** @class */ (function () {
348
- function PepResetConfigurationFieldDirective(renderer, element, pepIconService, translate) {
349
- var _this = this;
350
- this.renderer = renderer;
351
- this.element = element;
352
- this.pepIconService = pepIconService;
353
- this.translate = translate;
354
- this.resetFieldKey = '';
355
- this.resetHostEvents = new i0.EventEmitter();
356
- this._disabled = false;
357
- this._hideReset = false;
358
- this._dir = 'ltr';
359
- // styleType: PepStyleType = 'weak';
360
- // styleStateType: PepStyleStateType = 'system';
361
- this.sizeType = 'sm';
362
- this.resetPosition = 'bottom-end';
363
- // Create the buton container.
364
- this.buttonContainer = this.renderer.createElement('div');
365
- this.translate.get('GENERAL.RESET_HINT').toPromise().then(function (hint) {
366
- _this.renderer.setAttribute(_this.buttonContainer, 'title', hint);
367
- });
368
- }
369
- Object.defineProperty(PepResetConfigurationFieldDirective.prototype, "disabled", {
370
- get: function () {
371
- return this._disabled;
372
- },
373
- set: function (value) {
374
- this._disabled = value;
375
- this.renderer.setStyle(this.buttonContainer, 'visibility', this.getVisibility());
376
- },
377
- enumerable: false,
378
- configurable: true
379
- });
380
- Object.defineProperty(PepResetConfigurationFieldDirective.prototype, "hideReset", {
381
- get: function () {
382
- return this._hideReset;
383
- },
384
- set: function (value) {
385
- this._hideReset = value;
386
- this.renderer.setStyle(this.buttonContainer, 'visibility', this.getVisibility());
387
- },
388
- enumerable: false,
389
- configurable: true
390
- });
391
- Object.defineProperty(PepResetConfigurationFieldDirective.prototype, "dir", {
392
- get: function () {
393
- return this._dir;
394
- },
395
- set: function (value) {
396
- this._dir = value;
397
- this.renderer.setStyle(this.buttonContainer, 'float', this.getFloat());
398
- },
399
- enumerable: false,
400
- configurable: true
401
- });
402
- PepResetConfigurationFieldDirective.prototype.getVisibility = function () {
403
- return this.disabled || this.hideReset ? 'hidden' : 'visible';
404
- };
405
- PepResetConfigurationFieldDirective.prototype.getFloat = function () {
406
- return this.dir === 'rtl' ? 'left' : 'right';
407
- };
408
- PepResetConfigurationFieldDirective.prototype.setButtonContainerStyle = function () {
409
- var css = "\n display: flex;\n justify-content: flex-end;\n float: " + this.getFloat() + ";\n margin-bottom: 1rem;\n ";
410
- this.buttonContainer.setAttribute("style", css);
411
- };
412
- PepResetConfigurationFieldDirective.prototype.setButtonStyle = function (button) {
413
- var css = "\n display: flex !important;\n align-items: center !important;\n height: 1rem !important;\n line-height: unset !important;\n padding: unset !important;\n background: unset !important;\n font-size: var(--pep-button-2xs-font-size) !important;\n visibility: " + this.getVisibility() + ";\n ";
414
- button.setAttribute("style", css);
415
- };
416
- PepResetConfigurationFieldDirective.prototype.setSvgStyle = function (svg) {
417
- var css = "\n transform: rotate(270deg);\n width: 0.75rem;\n ";
418
- svg.setAttribute('style', css);
419
- };
420
- PepResetConfigurationFieldDirective.prototype.getResetElement = function () {
421
- return __awaiter(this, void 0, void 0, function () {
422
- var button, svgIcon;
423
- var _this = this;
424
- return __generator(this, function (_b) {
425
- switch (_b.label) {
426
- case 0:
427
- this.setButtonContainerStyle();
428
- this.renderer.addClass(this.buttonContainer, 'pep-reset-configuration-field-container');
429
- button = this.renderer.createElement('button');
430
- return [4 /*yield*/, this.translate.get('ACTIONS.RESET').toPromise().then(function (resetText) {
431
- var buttonText = _this.renderer.createText(resetText);
432
- _this.renderer.appendChild(button, buttonText);
433
- })];
434
- case 1:
435
- _b.sent();
436
- this.renderer.addClass(button, 'pep-button');
437
- // this.renderer.addClass(button, this.styleType);
438
- // this.renderer.addClass(button, this.styleStateType);
439
- this.renderer.addClass(button, 'color-link');
440
- this.renderer.addClass(button, this.sizeType);
441
- this.setButtonStyle(button);
442
- // this.renderer.addClass(button, 'reset-configuration-field-button');
443
- this.unlistener = this.renderer.listen(button, 'click', function () { return _this.onResetClicked(); });
444
- this.renderer.appendChild(this.buttonContainer, button);
445
- svgIcon = this.pepIconService.getSvgIcon(i1.pepIconDeviceResponsive.name);
446
- this.setSvgStyle(svgIcon);
447
- this.renderer.appendChild(this.buttonContainer, svgIcon);
448
- return [2 /*return*/, this.buttonContainer];
449
- }
450
- });
451
- });
452
- };
453
- PepResetConfigurationFieldDirective.prototype.ngAfterViewInit = function () {
454
- var _this = this;
455
- this.getResetElement().then(function (element) {
456
- var _a;
457
- if (_this.resetPosition === 'top-end' && ((_a = _this.element.nativeElement.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
458
- _this.renderer.insertBefore(_this.element.nativeElement, element, _this.element.nativeElement.children[0]);
459
- }
460
- else {
461
- _this.renderer.appendChild(_this.element.nativeElement, element);
462
- }
463
- });
464
- };
465
- PepResetConfigurationFieldDirective.prototype.ngOnDestroy = function () {
466
- if (this.unlistener) {
467
- this.unlistener();
468
- }
469
- };
470
- PepResetConfigurationFieldDirective.prototype.onResetClicked = function () {
471
- this.resetHostEvents.emit({
472
- action: 'set-configuration-field',
473
- key: this.resetFieldKey,
474
- value: undefined
475
- });
476
- };
477
- return PepResetConfigurationFieldDirective;
478
- }());
479
- PepResetConfigurationFieldDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepResetConfigurationFieldDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }, { token: i1__namespace.PepIconService }, { token: i2__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
480
- PepResetConfigurationFieldDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: PepResetConfigurationFieldDirective, selector: "[pepResetConfigurationField]", inputs: { resetFieldKey: ["pepResetConfigurationField", "resetFieldKey"], resetHostEvents: "resetHostEvents", disabled: "disabled", hideReset: "hideReset", dir: "dir" }, ngImport: i0__namespace });
481
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepResetConfigurationFieldDirective, decorators: [{
482
- type: i0.Directive,
483
- args: [{
484
- selector: '[pepResetConfigurationField]',
485
- }]
486
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }, { type: i1__namespace.PepIconService }, { type: i2__namespace.TranslateService }]; }, propDecorators: { resetFieldKey: [{
487
- type: i0.Input,
488
- args: ['pepResetConfigurationField']
489
- }], resetHostEvents: [{
490
- type: i0.Input
491
- }], disabled: [{
492
- type: i0.Input
493
- }], hideReset: [{
494
- type: i0.Input
495
- }], dir: [{
496
- type: i0.Input
347
+ var PepResetConfigurationFieldDirective = /** @class */ (function () {
348
+ function PepResetConfigurationFieldDirective(renderer, element, pepIconService, translate) {
349
+ var _this = this;
350
+ this.renderer = renderer;
351
+ this.element = element;
352
+ this.pepIconService = pepIconService;
353
+ this.translate = translate;
354
+ this.resetFieldKey = '';
355
+ this.resetHostEvents = new i0.EventEmitter();
356
+ this._disabled = false;
357
+ this._hideReset = false;
358
+ this._dir = 'ltr';
359
+ // styleType: PepStyleType = 'weak';
360
+ // styleStateType: PepStyleStateType = 'system';
361
+ this.sizeType = 'sm';
362
+ this.resetPosition = 'bottom-end';
363
+ // Create the buton container.
364
+ this.buttonContainer = this.renderer.createElement('div');
365
+ this.translate.get('GENERAL.RESET_HINT').toPromise().then(function (hint) {
366
+ _this.renderer.setAttribute(_this.buttonContainer, 'title', hint);
367
+ });
368
+ }
369
+ Object.defineProperty(PepResetConfigurationFieldDirective.prototype, "disabled", {
370
+ get: function () {
371
+ return this._disabled;
372
+ },
373
+ set: function (value) {
374
+ this._disabled = value;
375
+ this.renderer.setStyle(this.buttonContainer, 'visibility', this.getVisibility());
376
+ },
377
+ enumerable: false,
378
+ configurable: true
379
+ });
380
+ Object.defineProperty(PepResetConfigurationFieldDirective.prototype, "hideReset", {
381
+ get: function () {
382
+ return this._hideReset;
383
+ },
384
+ set: function (value) {
385
+ this._hideReset = value;
386
+ this.renderer.setStyle(this.buttonContainer, 'visibility', this.getVisibility());
387
+ },
388
+ enumerable: false,
389
+ configurable: true
390
+ });
391
+ Object.defineProperty(PepResetConfigurationFieldDirective.prototype, "dir", {
392
+ get: function () {
393
+ return this._dir;
394
+ },
395
+ set: function (value) {
396
+ this._dir = value;
397
+ this.renderer.setStyle(this.buttonContainer, 'float', this.getFloat());
398
+ },
399
+ enumerable: false,
400
+ configurable: true
401
+ });
402
+ PepResetConfigurationFieldDirective.prototype.getVisibility = function () {
403
+ return this.disabled || this.hideReset ? 'hidden' : 'visible';
404
+ };
405
+ PepResetConfigurationFieldDirective.prototype.getFloat = function () {
406
+ return this.dir === 'rtl' ? 'left' : 'right';
407
+ };
408
+ PepResetConfigurationFieldDirective.prototype.setButtonContainerStyle = function () {
409
+ var css = "\n display: flex;\n justify-content: flex-end;\n float: " + this.getFloat() + ";\n margin-bottom: 1rem;\n ";
410
+ this.buttonContainer.setAttribute("style", css);
411
+ };
412
+ PepResetConfigurationFieldDirective.prototype.setButtonStyle = function (button) {
413
+ var css = "\n display: flex !important;\n align-items: center !important;\n height: 1rem !important;\n line-height: unset !important;\n padding: unset !important;\n background: unset !important;\n font-size: var(--pep-button-2xs-font-size) !important;\n visibility: " + this.getVisibility() + ";\n ";
414
+ button.setAttribute("style", css);
415
+ };
416
+ PepResetConfigurationFieldDirective.prototype.setSvgStyle = function (svg) {
417
+ var css = "\n transform: rotate(270deg);\n width: 0.75rem;\n ";
418
+ svg.setAttribute('style', css);
419
+ };
420
+ PepResetConfigurationFieldDirective.prototype.getResetElement = function () {
421
+ return __awaiter(this, void 0, void 0, function () {
422
+ var button, svgIcon;
423
+ var _this = this;
424
+ return __generator(this, function (_b) {
425
+ switch (_b.label) {
426
+ case 0:
427
+ this.setButtonContainerStyle();
428
+ this.renderer.addClass(this.buttonContainer, 'pep-reset-configuration-field-container');
429
+ button = this.renderer.createElement('button');
430
+ return [4 /*yield*/, this.translate.get('ACTIONS.RESET').toPromise().then(function (resetText) {
431
+ var buttonText = _this.renderer.createText(resetText);
432
+ _this.renderer.appendChild(button, buttonText);
433
+ })];
434
+ case 1:
435
+ _b.sent();
436
+ this.renderer.addClass(button, 'pep-button');
437
+ // this.renderer.addClass(button, this.styleType);
438
+ // this.renderer.addClass(button, this.styleStateType);
439
+ this.renderer.addClass(button, 'color-link');
440
+ this.renderer.addClass(button, this.sizeType);
441
+ this.setButtonStyle(button);
442
+ // this.renderer.addClass(button, 'reset-configuration-field-button');
443
+ this.unlistener = this.renderer.listen(button, 'click', function () { return _this.onResetClicked(); });
444
+ this.renderer.appendChild(this.buttonContainer, button);
445
+ svgIcon = this.pepIconService.getSvgIcon(i1.pepIconDeviceResponsive.name);
446
+ this.setSvgStyle(svgIcon);
447
+ this.renderer.appendChild(this.buttonContainer, svgIcon);
448
+ return [2 /*return*/, this.buttonContainer];
449
+ }
450
+ });
451
+ });
452
+ };
453
+ PepResetConfigurationFieldDirective.prototype.ngAfterViewInit = function () {
454
+ var _this = this;
455
+ this.getResetElement().then(function (element) {
456
+ var _a;
457
+ if (_this.resetPosition === 'top-end' && ((_a = _this.element.nativeElement.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
458
+ _this.renderer.insertBefore(_this.element.nativeElement, element, _this.element.nativeElement.children[0]);
459
+ }
460
+ else {
461
+ _this.renderer.appendChild(_this.element.nativeElement, element);
462
+ }
463
+ });
464
+ };
465
+ PepResetConfigurationFieldDirective.prototype.ngOnDestroy = function () {
466
+ if (this.unlistener) {
467
+ this.unlistener();
468
+ }
469
+ };
470
+ PepResetConfigurationFieldDirective.prototype.onResetClicked = function () {
471
+ this.resetHostEvents.emit({
472
+ action: 'set-configuration-field',
473
+ key: this.resetFieldKey,
474
+ value: undefined
475
+ });
476
+ };
477
+ return PepResetConfigurationFieldDirective;
478
+ }());
479
+ PepResetConfigurationFieldDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepResetConfigurationFieldDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }, { token: i1__namespace.PepIconService }, { token: i2__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
480
+ PepResetConfigurationFieldDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: PepResetConfigurationFieldDirective, selector: "[pepResetConfigurationField]", inputs: { resetFieldKey: ["pepResetConfigurationField", "resetFieldKey"], resetHostEvents: "resetHostEvents", disabled: "disabled", hideReset: "hideReset", dir: "dir" }, ngImport: i0__namespace });
481
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepResetConfigurationFieldDirective, decorators: [{
482
+ type: i0.Directive,
483
+ args: [{
484
+ selector: '[pepResetConfigurationField]',
485
+ }]
486
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }, { type: i1__namespace.PepIconService }, { type: i2__namespace.TranslateService }]; }, propDecorators: { resetFieldKey: [{
487
+ type: i0.Input,
488
+ args: ['pepResetConfigurationField']
489
+ }], resetHostEvents: [{
490
+ type: i0.Input
491
+ }], disabled: [{
492
+ type: i0.Input
493
+ }], hideReset: [{
494
+ type: i0.Input
495
+ }], dir: [{
496
+ type: i0.Input
497
497
  }] } });
498
498
 
499
- var utilitiesList = [
500
- PepResetConfigurationFieldDirective
501
- ];
502
- var PepNgxCompositeLibModule = /** @class */ (function () {
503
- function PepNgxCompositeLibModule(pepIconRegistry) {
504
- this.pepIconRegistry = pepIconRegistry;
505
- this.pepIconRegistry.registerIcons([
506
- i1.pepIconDeviceResponsive
507
- ]);
508
- }
509
- return PepNgxCompositeLibModule;
510
- }());
511
- PepNgxCompositeLibModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, deps: [{ token: i1__namespace.PepIconRegistry }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
512
- PepNgxCompositeLibModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, declarations: [PepResetConfigurationFieldDirective], imports: [
513
- // CommonModule, HttpClientModule, ReactiveFormsModule
514
- i1.PepIconModule
515
- ], exports: [PepResetConfigurationFieldDirective] });
516
- PepNgxCompositeLibModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, imports: [[
517
- // CommonModule, HttpClientModule, ReactiveFormsModule
518
- i1.PepIconModule,
519
- ]] });
520
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, decorators: [{
521
- type: i0.NgModule,
522
- args: [{
523
- declarations: [
524
- utilitiesList
525
- ],
526
- imports: [
527
- // CommonModule, HttpClientModule, ReactiveFormsModule
528
- i1.PepIconModule,
529
- ],
530
- exports: [
531
- utilitiesList
532
- // TranslateModule
533
- ]
534
- }]
499
+ var utilitiesList = [
500
+ PepResetConfigurationFieldDirective
501
+ ];
502
+ var PepNgxCompositeLibModule = /** @class */ (function () {
503
+ function PepNgxCompositeLibModule(pepIconRegistry) {
504
+ this.pepIconRegistry = pepIconRegistry;
505
+ this.pepIconRegistry.registerIcons([
506
+ i1.pepIconDeviceResponsive
507
+ ]);
508
+ }
509
+ return PepNgxCompositeLibModule;
510
+ }());
511
+ PepNgxCompositeLibModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, deps: [{ token: i1__namespace.PepIconRegistry }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
512
+ PepNgxCompositeLibModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, declarations: [PepResetConfigurationFieldDirective], imports: [
513
+ // CommonModule, HttpClientModule, ReactiveFormsModule
514
+ i1.PepIconModule
515
+ ], exports: [PepResetConfigurationFieldDirective] });
516
+ PepNgxCompositeLibModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, imports: [[
517
+ // CommonModule, HttpClientModule, ReactiveFormsModule
518
+ i1.PepIconModule,
519
+ ]] });
520
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, decorators: [{
521
+ type: i0.NgModule,
522
+ args: [{
523
+ declarations: [
524
+ utilitiesList
525
+ ],
526
+ imports: [
527
+ // CommonModule, HttpClientModule, ReactiveFormsModule
528
+ i1.PepIconModule,
529
+ ],
530
+ exports: [
531
+ utilitiesList
532
+ // TranslateModule
533
+ ]
534
+ }]
535
535
  }], ctorParameters: function () { return [{ type: i1__namespace.PepIconRegistry }]; } });
536
536
 
537
- /*
538
- This service is for utillity usege.
539
- */
540
- var PepCompositeLibUtilitiesService = /** @class */ (function () {
541
- function PepCompositeLibUtilitiesService() {
542
- //
543
- }
544
- return PepCompositeLibUtilitiesService;
545
- }());
546
- PepCompositeLibUtilitiesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
547
- PepCompositeLibUtilitiesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, providedIn: 'root' });
548
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, decorators: [{
549
- type: i0.Injectable,
550
- args: [{
551
- providedIn: 'root',
552
- }]
537
+ /*
538
+ This service is for utillity usege.
539
+ */
540
+ var PepCompositeLibUtilitiesService = /** @class */ (function () {
541
+ function PepCompositeLibUtilitiesService() {
542
+ //
543
+ }
544
+ return PepCompositeLibUtilitiesService;
545
+ }());
546
+ PepCompositeLibUtilitiesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
547
+ PepCompositeLibUtilitiesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, providedIn: 'root' });
548
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, decorators: [{
549
+ type: i0.Injectable,
550
+ args: [{
551
+ providedIn: 'root',
552
+ }]
553
553
  }], ctorParameters: function () { return []; } });
554
554
 
555
- /*
556
- * Public API Surface of ngx-composite-lib/core/common/services
555
+ /*
556
+ * Public API Surface of ngx-composite-lib/core/common/services
557
557
  */
558
558
 
559
- /*
560
- * export from ngx-composite-lib/core/common/services
559
+ /*
560
+ * export from ngx-composite-lib/core/common/services
561
561
  */
562
562
 
563
- /*
564
- * Public API Surface of ngx-composite-lib/core/common/directives
563
+ /*
564
+ * Public API Surface of ngx-composite-lib/core/common/directives
565
565
  */
566
566
 
567
- /*
568
- * export from ngx-composite-lib/core/common/directives
567
+ /*
568
+ * export from ngx-composite-lib/core/common/directives
569
569
  */
570
570
 
571
- /*
572
- * Public API Surface of ngx-composite-lib/core/common
571
+ /*
572
+ * Public API Surface of ngx-composite-lib/core/common
573
573
  */
574
574
 
575
- /*
576
- * export from ngx-composite-lib/core/common
575
+ /*
576
+ * export from ngx-composite-lib/core/common
577
577
  */
578
578
 
579
- /*
580
- * Public API Surface of ngx-composite-lib/core
579
+ /*
580
+ * Public API Surface of ngx-composite-lib/core
581
581
  */
582
582
 
583
- /*
584
- * export from ngx-composite-lib/core
583
+ /*
584
+ * export from ngx-composite-lib/core
585
585
  */
586
586
 
587
- /*
588
- * Public API Surface of ngx-composite-lib
587
+ /*
588
+ * Public API Surface of ngx-composite-lib
589
589
  */
590
590
 
591
- /**
592
- * Generated bundle index. Do not edit.
591
+ /**
592
+ * Generated bundle index. Do not edit.
593
593
  */
594
594
 
595
595
  exports.PepCompositeLibUtilitiesService = PepCompositeLibUtilitiesService;