@pepperi-addons/ngx-composite-lib 0.0.16-beta.35 → 0.0.16-beta.36

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