@taiga-ui/icons 2.61.0 → 3.0.0-rc.2

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 (47) hide show
  1. package/bundles/taiga-ui-icons-scripts.umd.js +350 -268
  2. package/bundles/taiga-ui-icons-scripts.umd.js.map +1 -1
  3. package/bundles/taiga-ui-icons.umd.js +12 -269
  4. package/bundles/taiga-ui-icons.umd.js.map +1 -1
  5. package/esm2015/all.js +1 -1
  6. package/esm2015/constants/icons.js +1 -1
  7. package/esm2015/public-api.js +1 -1
  8. package/esm2015/scripts/convert-all-compile-file-to-all-file.js +1 -1
  9. package/esm2015/scripts/delete-all-to-compile-file.js +1 -1
  10. package/esm2015/scripts/index.js +1 -1
  11. package/esm2015/scripts/post-prettier-format.js +1 -1
  12. package/esm2015/scripts/prepare-all-to-compile-file.js +1 -1
  13. package/esm2015/scripts/process-icons.js +2 -4
  14. package/esm2015/scripts/rollup-svgo.js +1 -1
  15. package/esm2015/scripts/taiga-ui-icons-scripts.js +1 -1
  16. package/esm2015/taiga-ui-icons.js +1 -1
  17. package/fesm2015/taiga-ui-icons-scripts.js +1 -3
  18. package/fesm2015/taiga-ui-icons-scripts.js.map +1 -1
  19. package/fesm2015/taiga-ui-icons.js.map +1 -1
  20. package/package.json +7 -10
  21. package/scripts/package.json +2 -5
  22. package/scripts/taiga-ui-icons-scripts.d.ts +1 -0
  23. package/taiga-ui-icons.d.ts +1 -0
  24. package/bundles/taiga-ui-icons-scripts.umd.min.js +0 -2
  25. package/bundles/taiga-ui-icons-scripts.umd.min.js.map +0 -1
  26. package/bundles/taiga-ui-icons.umd.min.js +0 -2
  27. package/bundles/taiga-ui-icons.umd.min.js.map +0 -1
  28. package/esm5/all.js +0 -228
  29. package/esm5/constants/icons.js +0 -33
  30. package/esm5/public-api.js +0 -6
  31. package/esm5/scripts/convert-all-compile-file-to-all-file.js +0 -69
  32. package/esm5/scripts/delete-all-to-compile-file.js +0 -10
  33. package/esm5/scripts/index.js +0 -7
  34. package/esm5/scripts/post-prettier-format.js +0 -10
  35. package/esm5/scripts/prepare-all-to-compile-file.js +0 -25
  36. package/esm5/scripts/process-icons.js +0 -65
  37. package/esm5/scripts/rollup-svgo.js +0 -38
  38. package/esm5/scripts/taiga-ui-icons-scripts.js +0 -5
  39. package/esm5/taiga-ui-icons.js +0 -5
  40. package/fesm5/taiga-ui-icons-scripts.js +0 -216
  41. package/fesm5/taiga-ui-icons-scripts.js.map +0 -1
  42. package/fesm5/taiga-ui-icons.js +0 -270
  43. package/fesm5/taiga-ui-icons.js.map +0 -1
  44. package/scripts/rollup-pluginutils.d.ts +0 -5
  45. package/scripts/taiga-ui-icons-scripts.metadata.json +0 -1
  46. package/svg.d.ts +0 -9
  47. package/taiga-ui-icons.metadata.json +0 -1
@@ -1,264 +1,344 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rollup'), require('rollup-plugin-typescript2'), require('@rollup/pluginutils'), require('svgo'), require('fs'), require('prettier'), require('path')) :
3
3
  typeof define === 'function' && define.amd ? define('@taiga-ui/icons/scripts', ['exports', 'rollup', 'rollup-plugin-typescript2', '@rollup/pluginutils', 'svgo', 'fs', 'prettier', 'path'], factory) :
4
- (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].icons = global['taiga-ui'].icons || {}, global['taiga-ui'].icons.scripts = {}), global.rollup, global.typescript, global.pluginutils, global.svgo, global.fs, global.prettier, global.path));
5
- }(this, (function (exports, rollup, typescript, pluginutils, svgo, fs, prettier, path) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].icons = global["taiga-ui"].icons || {}, global["taiga-ui"].icons.scripts = {}), global.rollup, global.typescript, global.pluginutils, global.svgo, global.fs, global.prettier, global.path));
5
+ })(this, (function (exports, rollup, typescript, pluginutils, svgo, fs, prettier, path) { 'use strict';
6
6
 
7
- typescript = typescript && Object.prototype.hasOwnProperty.call(typescript, 'default') ? typescript['default'] : typescript;
8
- var fs__default = 'default' in fs ? fs['default'] : fs;
9
- prettier = prettier && Object.prototype.hasOwnProperty.call(prettier, 'default') ? prettier['default'] : prettier;
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
8
 
11
- /******************************************************************************
12
- Copyright (c) Microsoft Corporation.
13
-
14
- Permission to use, copy, modify, and/or distribute this software for any
15
- purpose with or without fee is hereby granted.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
- PERFORMANCE OF THIS SOFTWARE.
24
- ***************************************************************************** */
25
- /* global Reflect, Promise */
26
-
27
- var extendStatics = function(d, b) {
28
- extendStatics = Object.setPrototypeOf ||
29
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
30
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
31
- return extendStatics(d, b);
32
- };
33
-
34
- function __extends(d, b) {
35
- if (typeof b !== "function" && b !== null)
36
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
37
- extendStatics(d, b);
38
- function __() { this.constructor = d; }
39
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40
- }
41
-
42
- var __assign = function() {
43
- __assign = Object.assign || function __assign(t) {
44
- for (var s, i = 1, n = arguments.length; i < n; i++) {
45
- s = arguments[i];
46
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
47
- }
48
- return t;
49
- };
50
- return __assign.apply(this, arguments);
51
- };
52
-
53
- function __rest(s, e) {
54
- var t = {};
55
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
- t[p] = s[p];
57
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
- t[p[i]] = s[p[i]];
61
- }
62
- return t;
63
- }
64
-
65
- function __decorate(decorators, target, key, desc) {
66
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
67
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
68
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
69
- return c > 3 && r && Object.defineProperty(target, key, r), r;
70
- }
71
-
72
- function __param(paramIndex, decorator) {
73
- return function (target, key) { decorator(target, key, paramIndex); }
74
- }
75
-
76
- function __metadata(metadataKey, metadataValue) {
77
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
78
- }
79
-
80
- function __awaiter(thisArg, _arguments, P, generator) {
81
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
82
- return new (P || (P = Promise))(function (resolve, reject) {
83
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
84
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
85
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
86
- step((generator = generator.apply(thisArg, _arguments || [])).next());
87
- });
88
- }
89
-
90
- function __generator(thisArg, body) {
91
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
92
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
93
- function verb(n) { return function (v) { return step([n, v]); }; }
94
- function step(op) {
95
- if (f) throw new TypeError("Generator is already executing.");
96
- while (_) try {
97
- 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) return t;
98
- if (y = 0, t) op = [op[0] & 2, t.value];
99
- switch (op[0]) {
100
- case 0: case 1: t = op; break;
101
- case 4: _.label++; return { value: op[1], done: false };
102
- case 5: _.label++; y = op[1]; op = [0]; continue;
103
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
104
- default:
105
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
106
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
107
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
108
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
109
- if (t[2]) _.ops.pop();
110
- _.trys.pop(); continue;
111
- }
112
- op = body.call(thisArg, _);
113
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
114
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
115
- }
116
- }
117
-
118
- var __createBinding = Object.create ? (function(o, m, k, k2) {
119
- if (k2 === undefined) k2 = k;
120
- var desc = Object.getOwnPropertyDescriptor(m, k);
121
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
122
- desc = { enumerable: true, get: function() { return m[k]; } };
123
- }
124
- Object.defineProperty(o, k2, desc);
125
- }) : (function(o, m, k, k2) {
126
- if (k2 === undefined) k2 = k;
127
- o[k2] = m[k];
128
- });
129
-
130
- function __exportStar(m, o) {
131
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
132
- }
133
-
134
- function __values(o) {
135
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
136
- if (m) return m.call(o);
137
- if (o && typeof o.length === "number") return {
138
- next: function () {
139
- if (o && i >= o.length) o = void 0;
140
- return { value: o && o[i++], done: !o };
141
- }
142
- };
143
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
144
- }
145
-
146
- function __read(o, n) {
147
- var m = typeof Symbol === "function" && o[Symbol.iterator];
148
- if (!m) return o;
149
- var i = m.call(o), r, ar = [], e;
150
- try {
151
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
152
- }
153
- catch (error) { e = { error: error }; }
154
- finally {
155
- try {
156
- if (r && !r.done && (m = i["return"])) m.call(i);
157
- }
158
- finally { if (e) throw e.error; }
159
- }
160
- return ar;
161
- }
162
-
163
- /** @deprecated */
164
- function __spread() {
165
- for (var ar = [], i = 0; i < arguments.length; i++)
166
- ar = ar.concat(__read(arguments[i]));
167
- return ar;
168
- }
169
-
170
- /** @deprecated */
171
- function __spreadArrays() {
172
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
173
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
174
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
175
- r[k] = a[j];
176
- return r;
177
- }
178
-
179
- function __spreadArray(to, from, pack) {
180
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
181
- if (ar || !(i in from)) {
182
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
183
- ar[i] = from[i];
184
- }
185
- }
186
- return to.concat(ar || Array.prototype.slice.call(from));
187
- }
188
-
189
- function __await(v) {
190
- return this instanceof __await ? (this.v = v, this) : new __await(v);
191
- }
192
-
193
- function __asyncGenerator(thisArg, _arguments, generator) {
194
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
195
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
196
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
197
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
198
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
199
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
200
- function fulfill(value) { resume("next", value); }
201
- function reject(value) { resume("throw", value); }
202
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
203
- }
204
-
205
- function __asyncDelegator(o) {
206
- var i, p;
207
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
208
- 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; }
209
- }
210
-
211
- function __asyncValues(o) {
212
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
213
- var m = o[Symbol.asyncIterator], i;
214
- 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);
215
- 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); }); }; }
216
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
217
- }
218
-
219
- function __makeTemplateObject(cooked, raw) {
220
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
221
- return cooked;
222
- };
223
-
224
- var __setModuleDefault = Object.create ? (function(o, v) {
225
- Object.defineProperty(o, "default", { enumerable: true, value: v });
226
- }) : function(o, v) {
227
- o["default"] = v;
228
- };
229
-
230
- function __importStar(mod) {
231
- if (mod && mod.__esModule) return mod;
232
- var result = {};
233
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
234
- __setModuleDefault(result, mod);
235
- return result;
236
- }
237
-
238
- function __importDefault(mod) {
239
- return (mod && mod.__esModule) ? mod : { default: mod };
240
- }
241
-
242
- function __classPrivateFieldGet(receiver, state, kind, f) {
243
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
244
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
245
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
246
- }
247
-
248
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
249
- if (kind === "m") throw new TypeError("Private method is not writable");
250
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
251
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
252
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
253
- }
254
-
255
- function __classPrivateFieldIn(state, receiver) {
256
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
257
- return typeof state === "function" ? receiver === state : state.has(receiver);
9
+ var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
10
+ var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
11
+ var prettier__default = /*#__PURE__*/_interopDefaultLegacy(prettier);
12
+
13
+ /******************************************************************************
14
+ Copyright (c) Microsoft Corporation.
15
+
16
+ Permission to use, copy, modify, and/or distribute this software for any
17
+ purpose with or without fee is hereby granted.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
20
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
22
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
+ PERFORMANCE OF THIS SOFTWARE.
26
+ ***************************************************************************** */
27
+ /* global Reflect, Promise */
28
+ var extendStatics = function (d, b) {
29
+ extendStatics = Object.setPrototypeOf ||
30
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31
+ function (d, b) { for (var p in b)
32
+ if (Object.prototype.hasOwnProperty.call(b, p))
33
+ d[p] = b[p]; };
34
+ return extendStatics(d, b);
35
+ };
36
+ function __extends(d, b) {
37
+ if (typeof b !== "function" && b !== null)
38
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
39
+ extendStatics(d, b);
40
+ function __() { this.constructor = d; }
41
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
42
+ }
43
+ var __assign = function () {
44
+ __assign = Object.assign || function __assign(t) {
45
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
46
+ s = arguments[i];
47
+ for (var p in s)
48
+ if (Object.prototype.hasOwnProperty.call(s, p))
49
+ t[p] = s[p];
50
+ }
51
+ return t;
52
+ };
53
+ return __assign.apply(this, arguments);
54
+ };
55
+ function __rest(s, e) {
56
+ var t = {};
57
+ for (var p in s)
58
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
59
+ t[p] = s[p];
60
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
61
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
62
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
63
+ t[p[i]] = s[p[i]];
64
+ }
65
+ return t;
66
+ }
67
+ function __decorate(decorators, target, key, desc) {
68
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
69
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
70
+ r = Reflect.decorate(decorators, target, key, desc);
71
+ else
72
+ for (var i = decorators.length - 1; i >= 0; i--)
73
+ if (d = decorators[i])
74
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
75
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
76
+ }
77
+ function __param(paramIndex, decorator) {
78
+ return function (target, key) { decorator(target, key, paramIndex); };
79
+ }
80
+ function __metadata(metadataKey, metadataValue) {
81
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
82
+ return Reflect.metadata(metadataKey, metadataValue);
83
+ }
84
+ function __awaiter(thisArg, _arguments, P, generator) {
85
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
86
+ return new (P || (P = Promise))(function (resolve, reject) {
87
+ function fulfilled(value) { try {
88
+ step(generator.next(value));
89
+ }
90
+ catch (e) {
91
+ reject(e);
92
+ } }
93
+ function rejected(value) { try {
94
+ step(generator["throw"](value));
95
+ }
96
+ catch (e) {
97
+ reject(e);
98
+ } }
99
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
100
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
101
+ });
102
+ }
103
+ function __generator(thisArg, body) {
104
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
105
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
106
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
107
+ function verb(n) { return function (v) { return step([n, v]); }; }
108
+ function step(op) {
109
+ if (f)
110
+ throw new TypeError("Generator is already executing.");
111
+ while (_)
112
+ try {
113
+ 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)
114
+ return t;
115
+ if (y = 0, t)
116
+ op = [op[0] & 2, t.value];
117
+ switch (op[0]) {
118
+ case 0:
119
+ case 1:
120
+ t = op;
121
+ break;
122
+ case 4:
123
+ _.label++;
124
+ return { value: op[1], done: false };
125
+ case 5:
126
+ _.label++;
127
+ y = op[1];
128
+ op = [0];
129
+ continue;
130
+ case 7:
131
+ op = _.ops.pop();
132
+ _.trys.pop();
133
+ continue;
134
+ default:
135
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
136
+ _ = 0;
137
+ continue;
138
+ }
139
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
140
+ _.label = op[1];
141
+ break;
142
+ }
143
+ if (op[0] === 6 && _.label < t[1]) {
144
+ _.label = t[1];
145
+ t = op;
146
+ break;
147
+ }
148
+ if (t && _.label < t[2]) {
149
+ _.label = t[2];
150
+ _.ops.push(op);
151
+ break;
152
+ }
153
+ if (t[2])
154
+ _.ops.pop();
155
+ _.trys.pop();
156
+ continue;
157
+ }
158
+ op = body.call(thisArg, _);
159
+ }
160
+ catch (e) {
161
+ op = [6, e];
162
+ y = 0;
163
+ }
164
+ finally {
165
+ f = t = 0;
166
+ }
167
+ if (op[0] & 5)
168
+ throw op[1];
169
+ return { value: op[0] ? op[1] : void 0, done: true };
170
+ }
171
+ }
172
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
173
+ if (k2 === undefined)
174
+ k2 = k;
175
+ var desc = Object.getOwnPropertyDescriptor(m, k);
176
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
177
+ desc = { enumerable: true, get: function () { return m[k]; } };
178
+ }
179
+ Object.defineProperty(o, k2, desc);
180
+ }) : (function (o, m, k, k2) {
181
+ if (k2 === undefined)
182
+ k2 = k;
183
+ o[k2] = m[k];
184
+ });
185
+ function __exportStar(m, o) {
186
+ for (var p in m)
187
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
188
+ __createBinding(o, m, p);
189
+ }
190
+ function __values(o) {
191
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
192
+ if (m)
193
+ return m.call(o);
194
+ if (o && typeof o.length === "number")
195
+ return {
196
+ next: function () {
197
+ if (o && i >= o.length)
198
+ o = void 0;
199
+ return { value: o && o[i++], done: !o };
200
+ }
201
+ };
202
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
203
+ }
204
+ function __read(o, n) {
205
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
206
+ if (!m)
207
+ return o;
208
+ var i = m.call(o), r, ar = [], e;
209
+ try {
210
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
211
+ ar.push(r.value);
212
+ }
213
+ catch (error) {
214
+ e = { error: error };
215
+ }
216
+ finally {
217
+ try {
218
+ if (r && !r.done && (m = i["return"]))
219
+ m.call(i);
220
+ }
221
+ finally {
222
+ if (e)
223
+ throw e.error;
224
+ }
225
+ }
226
+ return ar;
227
+ }
228
+ /** @deprecated */
229
+ function __spread() {
230
+ for (var ar = [], i = 0; i < arguments.length; i++)
231
+ ar = ar.concat(__read(arguments[i]));
232
+ return ar;
233
+ }
234
+ /** @deprecated */
235
+ function __spreadArrays() {
236
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
237
+ s += arguments[i].length;
238
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
239
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
240
+ r[k] = a[j];
241
+ return r;
242
+ }
243
+ function __spreadArray(to, from, pack) {
244
+ if (pack || arguments.length === 2)
245
+ for (var i = 0, l = from.length, ar; i < l; i++) {
246
+ if (ar || !(i in from)) {
247
+ if (!ar)
248
+ ar = Array.prototype.slice.call(from, 0, i);
249
+ ar[i] = from[i];
250
+ }
251
+ }
252
+ return to.concat(ar || Array.prototype.slice.call(from));
253
+ }
254
+ function __await(v) {
255
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
256
+ }
257
+ function __asyncGenerator(thisArg, _arguments, generator) {
258
+ if (!Symbol.asyncIterator)
259
+ throw new TypeError("Symbol.asyncIterator is not defined.");
260
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
261
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
262
+ function verb(n) { if (g[n])
263
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
264
+ function resume(n, v) { try {
265
+ step(g[n](v));
266
+ }
267
+ catch (e) {
268
+ settle(q[0][3], e);
269
+ } }
270
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
271
+ function fulfill(value) { resume("next", value); }
272
+ function reject(value) { resume("throw", value); }
273
+ function settle(f, v) { if (f(v), q.shift(), q.length)
274
+ resume(q[0][0], q[0][1]); }
275
+ }
276
+ function __asyncDelegator(o) {
277
+ var i, p;
278
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
279
+ 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; }
280
+ }
281
+ function __asyncValues(o) {
282
+ if (!Symbol.asyncIterator)
283
+ throw new TypeError("Symbol.asyncIterator is not defined.");
284
+ var m = o[Symbol.asyncIterator], i;
285
+ 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);
286
+ 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); }); }; }
287
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
288
+ }
289
+ function __makeTemplateObject(cooked, raw) {
290
+ if (Object.defineProperty) {
291
+ Object.defineProperty(cooked, "raw", { value: raw });
292
+ }
293
+ else {
294
+ cooked.raw = raw;
295
+ }
296
+ return cooked;
297
+ }
298
+ ;
299
+ var __setModuleDefault = Object.create ? (function (o, v) {
300
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
301
+ }) : function (o, v) {
302
+ o["default"] = v;
303
+ };
304
+ function __importStar(mod) {
305
+ if (mod && mod.__esModule)
306
+ return mod;
307
+ var result = {};
308
+ if (mod != null)
309
+ for (var k in mod)
310
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
311
+ __createBinding(result, mod, k);
312
+ __setModuleDefault(result, mod);
313
+ return result;
314
+ }
315
+ function __importDefault(mod) {
316
+ return (mod && mod.__esModule) ? mod : { default: mod };
317
+ }
318
+ function __classPrivateFieldGet(receiver, state, kind, f) {
319
+ if (kind === "a" && !f)
320
+ throw new TypeError("Private accessor was defined without a getter");
321
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
322
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
323
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
324
+ }
325
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
326
+ if (kind === "m")
327
+ throw new TypeError("Private method is not writable");
328
+ if (kind === "a" && !f)
329
+ throw new TypeError("Private accessor was defined without a setter");
330
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
331
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
332
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
333
+ }
334
+ function __classPrivateFieldIn(state, receiver) {
335
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
336
+ throw new TypeError("Cannot use 'in' operator on non-object");
337
+ return typeof state === "function" ? receiver === state : state.has(receiver);
258
338
  }
259
339
 
260
- function rollupSvgo(_a) {
261
- var _b = _a === void 0 ? {} : _a, _c = _b.include, include = _c === void 0 ? "**/*.svg" : _c, exclude = _b.exclude, options = _b.options;
340
+ function rollupSvgo(_b) {
341
+ var _c = _b === void 0 ? {} : _b, _d = _c.include, include = _d === void 0 ? "**/*.svg" : _d, exclude = _c.exclude, options = _c.options;
262
342
  var filter = pluginutils.createFilter(include, exclude);
263
343
  return {
264
344
  name: "rollupSvgo",
@@ -272,7 +352,7 @@
272
352
  var data;
273
353
  var errorMessage;
274
354
  try {
275
- var result = svgo.optimize(svgString, __assign({ path: path }, options));
355
+ var result = svgo.optimize(svgString, Object.assign({ path: path }, options));
276
356
  data = ((_a = result) === null || _a === void 0 ? void 0 : _a.data) || {};
277
357
  errorMessage = result.error;
278
358
  }
@@ -304,7 +384,7 @@
304
384
  input: from,
305
385
  output: { preferConst: true },
306
386
  plugins: [
307
- typescript(prt2Options !== null && prt2Options !== void 0 ? prt2Options : {
387
+ typescript__default["default"](prt2Options !== null && prt2Options !== void 0 ? prt2Options : {
308
388
  cacheRoot: "node_modules/.cache/.rpt2_cache",
309
389
  }),
310
390
  rollupSvgo({
@@ -368,8 +448,8 @@
368
448
 
369
449
  function postPrettierFormat(filePath, prettierConfig) {
370
450
  var bundledBody = fs.readFileSync(filePath, "utf8");
371
- var options = prettier.resolveConfig.sync(prettierConfig !== null && prettierConfig !== void 0 ? prettierConfig : "prettier.config.js");
372
- var formatted = prettier.format(bundledBody, __assign(__assign({}, options), { parser: "typescript" }));
451
+ var options = prettier__default["default"].resolveConfig.sync(prettierConfig !== null && prettierConfig !== void 0 ? prettierConfig : "prettier.config.js");
452
+ var formatted = prettier__default["default"].format(bundledBody, Object.assign(Object.assign({}, options), { parser: "typescript" }));
373
453
  fs.writeFileSync(filePath, formatted);
374
454
  }
375
455
 
@@ -404,18 +484,18 @@
404
484
  try {
405
485
  for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
406
486
  var file = files_1_1.value;
407
- var baseContent = String(fs__default.readFileSync(file));
487
+ var baseContent = String(fs__default["default"].readFileSync(file));
408
488
  var src = interceptor ? interceptor(baseContent) : baseContent;
409
- var name_1 = path.parse(file).base.replace(".svg", "");
410
- if (src.includes("id=\"" + name_1 + "\"")) {
489
+ var name = path.parse(file).base.replace(".svg", "");
490
+ if (src.includes("id=\"" + name + "\"")) {
411
491
  console.info("\u001B[33m%s\u001B[0m", "[skip]:", file);
412
492
  continue;
413
493
  }
414
- var wrapped = wrapIcon(src, name_1);
494
+ var wrapped = wrapIcon(src, name);
415
495
  var final = typeof wrapped === "string"
416
- ? wrapped.replace(START, "<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"" + name_1 + "\" xmlns=\"http://www.w3.org/2000/svg\"><svg") + "</g></svg>"
496
+ ? wrapped.replace(START, "<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"" + name + "\" xmlns=\"http://www.w3.org/2000/svg\"><svg") + "</g></svg>"
417
497
  : "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"" + wrapped.width + "\" height=\"" + wrapped.height + "\">" + wrapped.src + "</svg>";
418
- fs__default.writeFileSync(file, final);
498
+ fs__default["default"].writeFileSync(file, final);
419
499
  console.info("\u001B[32m%s\u001B[0m", "[preprocessed]:", file);
420
500
  }
421
501
  }
@@ -430,9 +510,7 @@
430
510
  function wrapIcon(source, name) {
431
511
  var src = source.slice(Math.max(0, source.indexOf(START)));
432
512
  var attributes = src.slice(0, Math.max(0, src.indexOf(">")));
433
- if (!attributes ||
434
- !attributes.includes(WIDTH_SEARCH) ||
435
- !attributes.includes(HEIGHT_SEARCH)) {
513
+ if (!(attributes === null || attributes === void 0 ? void 0 : attributes.includes(WIDTH_SEARCH)) || !attributes.includes(HEIGHT_SEARCH)) {
436
514
  return src;
437
515
  }
438
516
  var indexOfWidth = attributes.indexOf(WIDTH_SEARCH);
@@ -458,6 +536,10 @@
458
536
  };
459
537
  }
460
538
 
539
+ /**
540
+ * Generated bundle index. Do not edit.
541
+ */
542
+
461
543
  exports.convertAllCompileFileToAllFile = convertAllCompileFileToAllFile;
462
544
  exports.deleteAllToCompileFile = deleteAllToCompileFile;
463
545
  exports.postPrettierFormat = postPrettierFormat;
@@ -467,5 +549,5 @@
467
549
 
468
550
  Object.defineProperty(exports, '__esModule', { value: true });
469
551
 
470
- })));
552
+ }));
471
553
  //# sourceMappingURL=taiga-ui-icons-scripts.umd.js.map