@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.
- package/bundles/taiga-ui-icons-scripts.umd.js +350 -268
- package/bundles/taiga-ui-icons-scripts.umd.js.map +1 -1
- package/bundles/taiga-ui-icons.umd.js +12 -269
- package/bundles/taiga-ui-icons.umd.js.map +1 -1
- package/esm2015/all.js +1 -1
- package/esm2015/constants/icons.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/esm2015/scripts/convert-all-compile-file-to-all-file.js +1 -1
- package/esm2015/scripts/delete-all-to-compile-file.js +1 -1
- package/esm2015/scripts/index.js +1 -1
- package/esm2015/scripts/post-prettier-format.js +1 -1
- package/esm2015/scripts/prepare-all-to-compile-file.js +1 -1
- package/esm2015/scripts/process-icons.js +2 -4
- package/esm2015/scripts/rollup-svgo.js +1 -1
- package/esm2015/scripts/taiga-ui-icons-scripts.js +1 -1
- package/esm2015/taiga-ui-icons.js +1 -1
- package/fesm2015/taiga-ui-icons-scripts.js +1 -3
- package/fesm2015/taiga-ui-icons-scripts.js.map +1 -1
- package/fesm2015/taiga-ui-icons.js.map +1 -1
- package/package.json +7 -10
- package/scripts/package.json +2 -5
- package/scripts/taiga-ui-icons-scripts.d.ts +1 -0
- package/taiga-ui-icons.d.ts +1 -0
- package/bundles/taiga-ui-icons-scripts.umd.min.js +0 -2
- package/bundles/taiga-ui-icons-scripts.umd.min.js.map +0 -1
- package/bundles/taiga-ui-icons.umd.min.js +0 -2
- package/bundles/taiga-ui-icons.umd.min.js.map +0 -1
- package/esm5/all.js +0 -228
- package/esm5/constants/icons.js +0 -33
- package/esm5/public-api.js +0 -6
- package/esm5/scripts/convert-all-compile-file-to-all-file.js +0 -69
- package/esm5/scripts/delete-all-to-compile-file.js +0 -10
- package/esm5/scripts/index.js +0 -7
- package/esm5/scripts/post-prettier-format.js +0 -10
- package/esm5/scripts/prepare-all-to-compile-file.js +0 -25
- package/esm5/scripts/process-icons.js +0 -65
- package/esm5/scripts/rollup-svgo.js +0 -38
- package/esm5/scripts/taiga-ui-icons-scripts.js +0 -5
- package/esm5/taiga-ui-icons.js +0 -5
- package/fesm5/taiga-ui-icons-scripts.js +0 -216
- package/fesm5/taiga-ui-icons-scripts.js.map +0 -1
- package/fesm5/taiga-ui-icons.js +0 -270
- package/fesm5/taiga-ui-icons.js.map +0 -1
- package/scripts/rollup-pluginutils.d.ts +0 -5
- package/scripts/taiga-ui-icons-scripts.metadata.json +0 -1
- package/svg.d.ts +0 -9
- 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[
|
|
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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
if (
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return
|
|
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(
|
|
261
|
-
var
|
|
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,
|
|
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
|
-
|
|
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 =
|
|
372
|
-
var formatted =
|
|
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
|
|
410
|
-
if (src.includes("id=\"" +
|
|
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,
|
|
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=\"" +
|
|
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
|