@pepperi-addons/ngx-composite-lib 0.0.10-beta.9 → 0.0.12-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -122
  2. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js.map +1 -1
  3. package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +771 -0
  4. package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js.map +1 -0
  5. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +119 -0
  6. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js.map +1 -0
  7. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +931 -543
  8. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
  9. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +176 -173
  10. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js.map +1 -1
  11. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
  12. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js.map +1 -1
  13. package/bundles/pepperi-addons-ngx-composite-lib.umd.js +595 -103
  14. package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
  15. package/color-settings/color-settings.component.d.ts +22 -22
  16. package/color-settings/color-settings.model.d.ts +5 -5
  17. package/color-settings/color-settings.module.d.ts +12 -12
  18. package/color-settings/package.json +0 -3
  19. package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
  20. package/color-settings/public-api.d.ts +3 -3
  21. package/core/common/directives/index.d.ts +1 -0
  22. package/core/common/directives/public-api.d.ts +1 -0
  23. package/core/common/directives/reset-configuration-field.directive.d.ts +38 -0
  24. package/core/common/index.d.ts +1 -1
  25. package/core/common/public-api.d.ts +2 -1
  26. package/core/common/services/index.d.ts +1 -1
  27. package/core/common/services/public-api.d.ts +1 -1
  28. package/core/common/services/utilities.service.d.ts +6 -6
  29. package/core/index.d.ts +1 -1
  30. package/core/public-api.d.ts +1 -1
  31. package/dimx-export/dimx.component.d.ts +73 -0
  32. package/dimx-export/dimx.model.d.ts +7 -0
  33. package/dimx-export/dimx.module.d.ts +15 -0
  34. package/dimx-export/dimx.service.d.ts +20 -0
  35. package/dimx-export/package.json +16 -0
  36. package/{draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts → dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts} +5 -5
  37. package/dimx-export/public-api.d.ts +3 -0
  38. package/esm2015/color-settings/color-settings.component.js +82 -81
  39. package/esm2015/color-settings/color-settings.model.js +9 -9
  40. package/esm2015/color-settings/color-settings.module.js +39 -39
  41. package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
  42. package/esm2015/color-settings/public-api.js +6 -6
  43. package/esm2015/core/common/directives/index.js +5 -0
  44. package/esm2015/core/common/directives/public-api.js +5 -0
  45. package/esm2015/core/common/directives/reset-configuration-field.directive.js +153 -0
  46. package/esm2015/core/common/index.js +4 -4
  47. package/esm2015/core/common/public-api.js +6 -5
  48. package/esm2015/core/common/services/index.js +4 -4
  49. package/esm2015/core/common/services/public-api.js +4 -4
  50. package/esm2015/core/common/services/utilities.service.js +18 -18
  51. package/esm2015/core/index.js +4 -4
  52. package/esm2015/core/public-api.js +4 -4
  53. package/esm2015/dimx-export/dimx.component.js +241 -0
  54. package/esm2015/dimx-export/dimx.model.js +8 -0
  55. package/esm2015/dimx-export/dimx.module.js +49 -0
  56. package/esm2015/dimx-export/dimx.service.js +50 -0
  57. package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +5 -0
  58. package/esm2015/dimx-export/public-api.js +7 -0
  59. package/esm2015/file-status-panel/file-status-panel.component.js +34 -0
  60. package/esm2015/file-status-panel/file-status-panel.model.js +8 -0
  61. package/esm2015/file-status-panel/file-status-panel.module.js +40 -0
  62. package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +5 -0
  63. package/esm2015/file-status-panel/public-api.js +7 -0
  64. package/esm2015/generic-list/generic-list.component.js +421 -164
  65. package/esm2015/generic-list/generic-list.model.js +2 -2
  66. package/esm2015/generic-list/generic-list.module.js +64 -52
  67. package/esm2015/generic-list/generic-list.service.js +42 -0
  68. package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
  69. package/esm2015/generic-list/public-api.js +8 -7
  70. package/esm2015/group-buttons-settings/group-buttons-settings.component.js +135 -132
  71. package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
  72. package/esm2015/group-buttons-settings/group-buttons-settings.module.js +46 -46
  73. package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
  74. package/esm2015/group-buttons-settings/public-api.js +6 -6
  75. package/esm2015/ngx-composite-lib.module.js +45 -26
  76. package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
  77. package/esm2015/public-api.js +5 -5
  78. package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
  79. package/esm2015/shadow-settings/public-api.js +6 -6
  80. package/esm2015/shadow-settings/shadow-settings.component.js +72 -72
  81. package/esm2015/shadow-settings/shadow-settings.model.js +8 -8
  82. package/esm2015/shadow-settings/shadow-settings.module.js +43 -43
  83. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -112
  84. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js.map +1 -1
  85. package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +350 -0
  86. package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js.map +1 -0
  87. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +90 -0
  88. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js.map +1 -0
  89. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +509 -203
  90. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
  91. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +167 -164
  92. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js.map +1 -1
  93. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
  94. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js.map +1 -1
  95. package/fesm2015/pepperi-addons-ngx-composite-lib.js +227 -56
  96. package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
  97. package/file-status-panel/file-status-panel.component.d.ts +14 -0
  98. package/file-status-panel/file-status-panel.model.d.ts +6 -0
  99. package/file-status-panel/file-status-panel.module.d.ts +12 -0
  100. package/file-status-panel/package.json +10 -0
  101. package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -0
  102. package/file-status-panel/public-api.d.ts +3 -0
  103. package/generic-list/generic-list.component.d.ts +91 -45
  104. package/generic-list/generic-list.model.d.ts +41 -11
  105. package/generic-list/generic-list.module.d.ts +16 -15
  106. package/generic-list/generic-list.service.d.ts +13 -0
  107. package/generic-list/package.json +0 -1
  108. package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
  109. package/generic-list/public-api.d.ts +4 -3
  110. package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -32
  111. package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
  112. package/group-buttons-settings/group-buttons-settings.module.d.ts +14 -14
  113. package/group-buttons-settings/package.json +0 -3
  114. package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
  115. package/group-buttons-settings/public-api.d.ts +3 -3
  116. package/ngx-composite-lib.module.d.ts +11 -6
  117. package/package.json +2 -2
  118. package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
  119. package/public-api.d.ts +2 -2
  120. package/shadow-settings/package.json +0 -3
  121. package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
  122. package/shadow-settings/public-api.d.ts +3 -3
  123. package/shadow-settings/shadow-settings.component.d.ts +23 -23
  124. package/shadow-settings/shadow-settings.model.d.ts +7 -7
  125. package/shadow-settings/shadow-settings.module.d.ts +13 -13
  126. package/src/assets/i18n/en.ngx-composite-lib.json +5 -2
  127. package/src/core/style/abstracts/variables.scss +0 -1
  128. package/src/core/style/components/general.scss +0 -39
  129. package/styling.scss +3 -6
  130. package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js +0 -112
  131. package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +0 -1
  132. package/draggable-item/draggable-item.component.d.ts +0 -11
  133. package/draggable-item/draggable-item.module.d.ts +0 -11
  134. package/draggable-item/package.json +0 -13
  135. package/draggable-item/public-api.d.ts +0 -2
  136. package/esm2015/draggable-item/draggable-item.component.js +0 -40
  137. package/esm2015/draggable-item/draggable-item.module.js +0 -36
  138. package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +0 -5
  139. package/esm2015/draggable-item/public-api.js +0 -6
  140. package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js +0 -84
  141. package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +0 -1
@@ -1,110 +1,602 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
3
- typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib', ['exports', '@angular/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["pepperi-addons"] = global["pepperi-addons"] || {}, global["pepperi-addons"]["ngx-composite-lib"] = {}), global.ng.core));
5
- })(this, (function (exports, i0) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@pepperi-addons/ngx-lib/icon'), require('@ngx-translate/core')) :
3
+ typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib', ['exports', '@angular/core', '@pepperi-addons/ngx-lib/icon', '@ngx-translate/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["pepperi-addons"] = global["pepperi-addons"] || {}, global["pepperi-addons"]["ngx-composite-lib"] = {}), global.ng.core, global.i1, global.translate));
5
+ })(this, (function (exports, i0, i1, i2) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
20
18
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
19
+ });
23
20
  }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
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;
345
+ }
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
497
+ }] } });
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
+ }]
535
+ }], ctorParameters: function () { return [{ type: i1__namespace.PepIconRegistry }]; } });
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
+ }]
553
+ }], ctorParameters: function () { return []; } });
554
+
555
+ /*
556
+ * Public API Surface of ngx-composite-lib/core/common/services
557
+ */
558
+
559
+ /*
560
+ * export from ngx-composite-lib/core/common/services
561
+ */
562
+
563
+ /*
564
+ * Public API Surface of ngx-composite-lib/core/common/directives
565
+ */
566
+
567
+ /*
568
+ * export from ngx-composite-lib/core/common/directives
569
+ */
570
+
571
+ /*
572
+ * Public API Surface of ngx-composite-lib/core/common
573
+ */
574
+
575
+ /*
576
+ * export from ngx-composite-lib/core/common
577
+ */
578
+
579
+ /*
580
+ * Public API Surface of ngx-composite-lib/core
581
+ */
582
+
583
+ /*
584
+ * export from ngx-composite-lib/core
585
+ */
586
+
587
+ /*
588
+ * Public API Surface of ngx-composite-lib
589
+ */
590
+
591
+ /**
592
+ * Generated bundle index. Do not edit.
593
+ */
594
+
595
+ exports.PepCompositeLibUtilitiesService = PepCompositeLibUtilitiesService;
596
+ exports.PepNgxCompositeLibModule = PepNgxCompositeLibModule;
597
+ exports.PepResetConfigurationFieldDirective = PepResetConfigurationFieldDirective;
24
598
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
-
27
- // import { TranslateModule } from '@ngx-translate/core';
28
- // import { CommonModule } from '@angular/common';
29
- // import { HttpClientModule } from '@angular/common/http';
30
- // import { ReactiveFormsModule } from '@angular/forms';
31
- var PepNgxCompositeLibModule = /** @class */ (function () {
32
- function PepNgxCompositeLibModule() {
33
- }
34
- return PepNgxCompositeLibModule;
35
- }());
36
- PepNgxCompositeLibModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
37
- PepNgxCompositeLibModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule });
38
- PepNgxCompositeLibModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, imports: [[
39
- // CommonModule, HttpClientModule, ReactiveFormsModule
40
- ]] });
41
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepNgxCompositeLibModule, decorators: [{
42
- type: i0.NgModule,
43
- args: [{
44
- declarations: [],
45
- imports: [
46
- // CommonModule, HttpClientModule, ReactiveFormsModule
47
- ],
48
- exports: [
49
- // TranslateModule
50
- ]
51
- }]
52
- }] });
53
-
54
- /*
55
- This service is for utillity usege.
56
- */
57
- var PepCompositeLibUtilitiesService = /** @class */ (function () {
58
- function PepCompositeLibUtilitiesService() {
59
- //
60
- }
61
- return PepCompositeLibUtilitiesService;
62
- }());
63
- PepCompositeLibUtilitiesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
64
- PepCompositeLibUtilitiesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, providedIn: 'root' });
65
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepCompositeLibUtilitiesService, decorators: [{
66
- type: i0.Injectable,
67
- args: [{
68
- providedIn: 'root',
69
- }]
70
- }], ctorParameters: function () { return []; } });
71
-
72
- /*
73
- * Public API Surface of ngx-composite-lib/core/common/services
74
- */
75
-
76
- /*
77
- * export from ngx-composite-lib/core/common/services
78
- */
79
-
80
- /*
81
- * Public API Surface of ngx-composite-lib/core/common
82
- */
83
-
84
- /*
85
- * export from ngx-composite-lib/core/common
86
- */
87
-
88
- /*
89
- * Public API Surface of ngx-composite-lib/core
90
- */
91
-
92
- /*
93
- * export from ngx-composite-lib/core
94
- */
95
-
96
- /*
97
- * Public API Surface of ngx-composite-lib
98
- */
99
-
100
- /**
101
- * Generated bundle index. Do not edit.
102
- */
103
-
104
- exports.PepCompositeLibUtilitiesService = PepCompositeLibUtilitiesService;
105
- exports.PepNgxCompositeLibModule = PepNgxCompositeLibModule;
106
-
107
- Object.defineProperty(exports, '__esModule', { value: true });
599
+ Object.defineProperty(exports, '__esModule', { value: true });
108
600
 
109
601
  }));
110
602
  //# sourceMappingURL=pepperi-addons-ngx-composite-lib.umd.js.map