@charcoal-ui/icons 2.5.0 → 2.7.0
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/dist/PixivIcon.d.ts +35 -35
- package/dist/PixivIcon.d.ts.map +1 -1
- package/dist/PixivIcon.story.d.ts +39 -39
- package/dist/PixivIcon.test.d.ts +1 -1
- package/dist/charcoalIconFiles.d.ts +5 -5
- package/dist/charcoalIconFiles.d.ts.map +1 -1
- package/dist/index.cjs.js +344 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +14 -14
- package/dist/index.esm.js +311 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/loaders/CharcoalIconFilesLoader.d.ts +13 -13
- package/dist/loaders/CharcoalIconFilesLoader.d.ts.map +1 -1
- package/dist/loaders/CustomIconLoader.d.ts +12 -12
- package/dist/loaders/Loadable.d.ts +3 -3
- package/dist/loaders/PixivIconLoadError.d.ts +3 -3
- package/dist/loaders/PixivIconLoadError.d.ts.map +1 -1
- package/dist/loaders/index.d.ts +2 -2
- package/dist/ssr.d.ts +1 -1
- package/package.json +14 -14
- package/src/PixivIcon.ts +1 -1
- package/src/loaders/PixivIconLoadError.ts +1 -2
- package/dist/index.cjs +0 -603
- package/dist/index.cjs.map +0 -1
- package/dist/index.modern.js +0 -394
- package/dist/index.modern.js.map +0 -1
- package/dist/index.module.js +0 -595
- package/dist/index.module.js.map +0 -1
package/dist/index.module.js
DELETED
|
@@ -1,595 +0,0 @@
|
|
|
1
|
-
import warning from 'warning';
|
|
2
|
-
import charcoalIconFiles from '@charcoal-ui/icon-files';
|
|
3
|
-
import DOMPurify from 'dompurify';
|
|
4
|
-
|
|
5
|
-
function _defineProperties(target, props) {
|
|
6
|
-
for (var i = 0; i < props.length; i++) {
|
|
7
|
-
var descriptor = props[i];
|
|
8
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
9
|
-
descriptor.configurable = true;
|
|
10
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
11
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
16
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
19
|
-
writable: false
|
|
20
|
-
});
|
|
21
|
-
return Constructor;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _extends() {
|
|
25
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
26
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
27
|
-
var source = arguments[i];
|
|
28
|
-
|
|
29
|
-
for (var key in source) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return target;
|
|
37
|
-
};
|
|
38
|
-
return _extends.apply(this, arguments);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function _inheritsLoose(subClass, superClass) {
|
|
42
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
43
|
-
subClass.prototype.constructor = subClass;
|
|
44
|
-
|
|
45
|
-
_setPrototypeOf(subClass, superClass);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _getPrototypeOf(o) {
|
|
49
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
50
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
51
|
-
};
|
|
52
|
-
return _getPrototypeOf(o);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function _setPrototypeOf(o, p) {
|
|
56
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
57
|
-
o.__proto__ = p;
|
|
58
|
-
return o;
|
|
59
|
-
};
|
|
60
|
-
return _setPrototypeOf(o, p);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function _isNativeReflectConstruct() {
|
|
64
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
65
|
-
if (Reflect.construct.sham) return false;
|
|
66
|
-
if (typeof Proxy === "function") return true;
|
|
67
|
-
|
|
68
|
-
try {
|
|
69
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
70
|
-
return true;
|
|
71
|
-
} catch (e) {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function _construct(Parent, args, Class) {
|
|
77
|
-
if (_isNativeReflectConstruct()) {
|
|
78
|
-
_construct = Reflect.construct.bind();
|
|
79
|
-
} else {
|
|
80
|
-
_construct = function _construct(Parent, args, Class) {
|
|
81
|
-
var a = [null];
|
|
82
|
-
a.push.apply(a, args);
|
|
83
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
84
|
-
var instance = new Constructor();
|
|
85
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
86
|
-
return instance;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return _construct.apply(null, arguments);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function _isNativeFunction(fn) {
|
|
94
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function _wrapNativeSuper(Class) {
|
|
98
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
99
|
-
|
|
100
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
101
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
102
|
-
|
|
103
|
-
if (typeof Class !== "function") {
|
|
104
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
if (typeof _cache !== "undefined") {
|
|
108
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
109
|
-
|
|
110
|
-
_cache.set(Class, Wrapper);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function Wrapper() {
|
|
114
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
118
|
-
constructor: {
|
|
119
|
-
value: Wrapper,
|
|
120
|
-
enumerable: false,
|
|
121
|
-
writable: true,
|
|
122
|
-
configurable: true
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
return _setPrototypeOf(Wrapper, Class);
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
return _wrapNativeSuper(Class);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function _assertThisInitialized(self) {
|
|
132
|
-
if (self === void 0) {
|
|
133
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return self;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
var KNOWN_ICON_FILES = Object.keys(charcoalIconFiles);
|
|
140
|
-
function isKnownIconFile(name) {
|
|
141
|
-
return name in charcoalIconFiles;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
var PixivIconLoadError = /*#__PURE__*/function (_Error) {
|
|
145
|
-
_inheritsLoose(PixivIconLoadError, _Error);
|
|
146
|
-
|
|
147
|
-
function PixivIconLoadError(name, cause) {
|
|
148
|
-
var _this;
|
|
149
|
-
|
|
150
|
-
var message = formatMessage(name, cause); // TODO: TypeScript 4.6+ になるとここに `{ cause }` が渡せる
|
|
151
|
-
|
|
152
|
-
_this = _Error.call(this, message) || this;
|
|
153
|
-
_this.name = 'PixivIconLoadError';
|
|
154
|
-
Object.setPrototypeOf(_assertThisInitialized(_this), (this instanceof PixivIconLoadError ? this.constructor : void 0).prototype);
|
|
155
|
-
return _this;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return PixivIconLoadError;
|
|
159
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
160
|
-
|
|
161
|
-
function formatMessage(name, cause) {
|
|
162
|
-
var message = "Failed to fetch <pixiv-icon name=\"" + name + "\">";
|
|
163
|
-
|
|
164
|
-
if (cause == null) {
|
|
165
|
-
return message;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (cause instanceof Error) {
|
|
169
|
-
return message + ": " + cause.toString() + ")";
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return message + ": " + JSON.stringify(cause) + ")";
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* `@charcoal-ui/icon-files` に収録されているアイコンを取ってくる
|
|
177
|
-
*/
|
|
178
|
-
|
|
179
|
-
var CharcoalIconFilesLoader = /*#__PURE__*/function () {
|
|
180
|
-
function CharcoalIconFilesLoader(name) {
|
|
181
|
-
this._name = void 0;
|
|
182
|
-
this._resultSvg = undefined;
|
|
183
|
-
this._promise = undefined;
|
|
184
|
-
this._name = name;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
var _proto = CharcoalIconFilesLoader.prototype;
|
|
188
|
-
|
|
189
|
-
_proto.fetch = function fetch() {
|
|
190
|
-
try {
|
|
191
|
-
var _this2 = this;
|
|
192
|
-
|
|
193
|
-
if (_this2._resultSvg !== undefined) {
|
|
194
|
-
return Promise.resolve(_this2._resultSvg);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
if (_this2._promise) {
|
|
198
|
-
return Promise.resolve(_this2._promise);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
_this2._promise = _this2.importIconFile().then(function (svg) {
|
|
202
|
-
_this2._resultSvg = svg;
|
|
203
|
-
return _this2._resultSvg;
|
|
204
|
-
})["catch"](function (e) {
|
|
205
|
-
throw new PixivIconLoadError(_this2._name, e);
|
|
206
|
-
})["finally"](function () {
|
|
207
|
-
_this2._promise = undefined;
|
|
208
|
-
});
|
|
209
|
-
return Promise.resolve(_this2._promise);
|
|
210
|
-
} catch (e) {
|
|
211
|
-
return Promise.reject(e);
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
_createClass(CharcoalIconFilesLoader, [{
|
|
216
|
-
key: "importIconFile",
|
|
217
|
-
get: function get() {
|
|
218
|
-
return charcoalIconFiles[this._name];
|
|
219
|
-
}
|
|
220
|
-
}]);
|
|
221
|
-
|
|
222
|
-
return CharcoalIconFilesLoader;
|
|
223
|
-
}();
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* `PixivIcon.extend()` で登録されたカスタムのアイコンを取得する
|
|
227
|
-
*/
|
|
228
|
-
|
|
229
|
-
var CustomIconLoader = /*#__PURE__*/function () {
|
|
230
|
-
function CustomIconLoader(name, filePathOrUrl) {
|
|
231
|
-
this._name = void 0;
|
|
232
|
-
this._filePathOrUrl = void 0;
|
|
233
|
-
this._resultSvg = undefined;
|
|
234
|
-
this._promise = undefined;
|
|
235
|
-
this._name = name;
|
|
236
|
-
this._filePathOrUrl = filePathOrUrl;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
var _proto = CustomIconLoader.prototype;
|
|
240
|
-
|
|
241
|
-
_proto.fetch = function (_fetch) {
|
|
242
|
-
function fetch() {
|
|
243
|
-
return _fetch.apply(this, arguments);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
fetch.toString = function () {
|
|
247
|
-
return _fetch.toString();
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
return fetch;
|
|
251
|
-
}(function () {
|
|
252
|
-
try {
|
|
253
|
-
var _this2 = this;
|
|
254
|
-
|
|
255
|
-
if (_this2._resultSvg !== undefined) {
|
|
256
|
-
return Promise.resolve(_this2._resultSvg);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (_this2._promise) {
|
|
260
|
-
return Promise.resolve(_this2._promise);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
_this2._promise = fetch(_this2._filePathOrUrl).then(function (response) {
|
|
264
|
-
if (!response.ok) {
|
|
265
|
-
throw new PixivIconLoadError(_this2._name, 'Response is not ok');
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
return response.text();
|
|
269
|
-
}).then(function (svg) {
|
|
270
|
-
_this2._resultSvg = svg;
|
|
271
|
-
return _this2._resultSvg;
|
|
272
|
-
})["catch"](function (e) {
|
|
273
|
-
if (e instanceof PixivIconLoadError) {
|
|
274
|
-
throw e;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
throw new PixivIconLoadError(_this2._name, e);
|
|
278
|
-
})["finally"](function () {
|
|
279
|
-
_this2._promise = undefined;
|
|
280
|
-
});
|
|
281
|
-
return Promise.resolve(_this2._promise);
|
|
282
|
-
} catch (e) {
|
|
283
|
-
return Promise.reject(e);
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
return CustomIconLoader;
|
|
288
|
-
}();
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* icon をロードするオブジェクトのプール。Loader のインスタンスは作り次第ここに入れる
|
|
292
|
-
*
|
|
293
|
-
* 同じアイコンへの複数回のリクエストが起きないためには、Loader がこの中でユニークでないと行けない
|
|
294
|
-
*/
|
|
295
|
-
|
|
296
|
-
var getIcon = function getIcon(name) {
|
|
297
|
-
try {
|
|
298
|
-
var loader = resolveIconLoader(name);
|
|
299
|
-
|
|
300
|
-
if (loader == null) {
|
|
301
|
-
throw new PixivIconLoadError(name, 'Loader was not found');
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
return Promise.resolve(loader.fetch()["catch"](function (e) {
|
|
305
|
-
if (e instanceof PixivIconLoadError) {
|
|
306
|
-
throw e;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
throw new PixivIconLoadError(name, e);
|
|
310
|
-
}));
|
|
311
|
-
} catch (e) {
|
|
312
|
-
return Promise.reject(e);
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
var loaders = new Map();
|
|
316
|
-
function addCustomIcon(name, filePathOrUrl) {
|
|
317
|
-
loaders.set(name, new CustomIconLoader(name, filePathOrUrl));
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
function resolveIconLoader(name) {
|
|
321
|
-
// 登録済み or キャッシュ済みの場合
|
|
322
|
-
// addCustomIcon で登録された CustomIconLoader は常にこっちを通る
|
|
323
|
-
var registeredLoader = loaders.get(name);
|
|
324
|
-
|
|
325
|
-
if (registeredLoader) {
|
|
326
|
-
return registeredLoader;
|
|
327
|
-
} // `@charcoal-ui/icon-files` に収録されているアイコンにはこれを返す
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
if (isKnownIconFile(name)) {
|
|
331
|
-
var charcoalIconFilesLoader = new CharcoalIconFilesLoader(name);
|
|
332
|
-
loaders.set(name, charcoalIconFilesLoader);
|
|
333
|
-
return charcoalIconFilesLoader;
|
|
334
|
-
} // 存在しないアイコンにはこれを返す
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
return null;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
var __SERVER__ = typeof window === 'undefined';
|
|
341
|
-
var CAN_USE_DOM = typeof HTMLElement !== 'undefined'; // Workaround: `extends HTMLELement` の形式でないとbabelのトランスパイルがおかしくなる
|
|
342
|
-
|
|
343
|
-
if (__SERVER__ || !CAN_USE_DOM) {
|
|
344
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
|
|
345
|
-
globalThis.HTMLElement = /*#__PURE__*/function () {
|
|
346
|
-
function _class() {}
|
|
347
|
-
|
|
348
|
-
return _class;
|
|
349
|
-
}();
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
var attributes = ['name', 'scale', 'unsafe-non-guideline-scale'];
|
|
353
|
-
var ROOT_MARGIN = 50;
|
|
354
|
-
var PixivIcon = /*#__PURE__*/function (_HTMLElement) {
|
|
355
|
-
_inheritsLoose(PixivIcon, _HTMLElement);
|
|
356
|
-
|
|
357
|
-
PixivIcon.extend = function extend(map) {
|
|
358
|
-
warning(!__SERVER__, 'Using `PixivIcon.extend()` on server has no effect');
|
|
359
|
-
|
|
360
|
-
if (__SERVER__) {
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
Object.entries(map).forEach(function (_ref) {
|
|
365
|
-
var name = _ref[0],
|
|
366
|
-
filePathOrUrl = _ref[1];
|
|
367
|
-
|
|
368
|
-
if (!name.includes('/')) {
|
|
369
|
-
throw new TypeError(name + " is not a valid icon name. \"name\" must be named like [size]/[Name].");
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
addCustomIcon(name, filePathOrUrl);
|
|
373
|
-
});
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
function PixivIcon() {
|
|
377
|
-
var _this;
|
|
378
|
-
|
|
379
|
-
_this = _HTMLElement.call(this) || this;
|
|
380
|
-
_this.svgContent = void 0;
|
|
381
|
-
_this.observer = void 0;
|
|
382
|
-
_this.isVisible = false;
|
|
383
|
-
|
|
384
|
-
_this.attachShadow({
|
|
385
|
-
mode: 'open'
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
return _this;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
var _proto = PixivIcon.prototype;
|
|
392
|
-
|
|
393
|
-
_proto.connectedCallback = function connectedCallback() {
|
|
394
|
-
try {
|
|
395
|
-
var _this3 = this;
|
|
396
|
-
|
|
397
|
-
_this3.render();
|
|
398
|
-
|
|
399
|
-
return Promise.resolve(_this3.waitUntilVisible()).then(function () {
|
|
400
|
-
_this3.isVisible = true;
|
|
401
|
-
return Promise.resolve(_this3.loadSvg(_this3.props.name)).then(function () {});
|
|
402
|
-
});
|
|
403
|
-
} catch (e) {
|
|
404
|
-
return Promise.reject(e);
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
_proto.disconnectedCallback = function disconnectedCallback() {
|
|
409
|
-
var _this$observer;
|
|
410
|
-
|
|
411
|
-
(_this$observer = this.observer) == null ? void 0 : _this$observer.disconnect();
|
|
412
|
-
this.observer = undefined;
|
|
413
|
-
this.isVisible = false;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
_proto.attributeChangedCallback = function attributeChangedCallback(attr, _oldValue, newValue) {
|
|
417
|
-
// 非表示の場合はロードしない
|
|
418
|
-
if (!this.isVisible) {
|
|
419
|
-
return;
|
|
420
|
-
} // name が変更された場合必ず再読み込みを試みる
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
if (attr === 'name') {
|
|
424
|
-
void this.loadSvg(newValue);
|
|
425
|
-
return;
|
|
426
|
-
} // SVG が読み込み済み && scale などの変更だけならそこだけ反映すればいい
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
if (this.svgContent !== undefined) {
|
|
430
|
-
this.render();
|
|
431
|
-
return;
|
|
432
|
-
} // まだ SVG が読み込めてないなら load
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
void this.loadSvg(this.props.name);
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
_proto.render = function render() {
|
|
439
|
-
var _this$forceResizedSiz;
|
|
440
|
-
|
|
441
|
-
var size = (_this$forceResizedSiz = this.forceResizedSize) != null ? _this$forceResizedSiz : this.scaledSize;
|
|
442
|
-
var style = DOMPurify.sanitize("<style>\n :host {\n display: inline-flex;\n --size: " + size + "px;\n }\n\n svg {\n width: var(--size);\n height: var(--size);\n }\n</style>", {
|
|
443
|
-
ALLOWED_TAGS: ['style'],
|
|
444
|
-
FORCE_BODY: true
|
|
445
|
-
});
|
|
446
|
-
var svg = DOMPurify.sanitize(this.svgContent !== undefined ? this.svgContent : "<svg viewBox=\"0 0 " + size + " " + size + "\"></svg>", {
|
|
447
|
-
USE_PROFILES: {
|
|
448
|
-
svg: true,
|
|
449
|
-
svgFilters: true
|
|
450
|
-
}
|
|
451
|
-
}); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
452
|
-
|
|
453
|
-
this.shadowRoot.innerHTML = style + svg;
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
_proto.loadSvg = function loadSvg(name) {
|
|
457
|
-
try {
|
|
458
|
-
var _this5 = this;
|
|
459
|
-
|
|
460
|
-
return Promise.resolve(getIcon(name)).then(function (_getIcon) {
|
|
461
|
-
_this5.svgContent = _getIcon;
|
|
462
|
-
|
|
463
|
-
_this5.render();
|
|
464
|
-
});
|
|
465
|
-
} catch (e) {
|
|
466
|
-
return Promise.reject(e);
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
_proto.waitUntilVisible = function waitUntilVisible() {
|
|
471
|
-
var _this6 = this;
|
|
472
|
-
|
|
473
|
-
return new Promise(function (resolve) {
|
|
474
|
-
_this6.observer = new IntersectionObserver(function (_ref2) {
|
|
475
|
-
var first = _ref2[0];
|
|
476
|
-
|
|
477
|
-
if (first.isIntersecting) {
|
|
478
|
-
var _this6$observer;
|
|
479
|
-
|
|
480
|
-
(_this6$observer = _this6.observer) == null ? void 0 : _this6$observer.disconnect();
|
|
481
|
-
_this6.observer = undefined;
|
|
482
|
-
resolve();
|
|
483
|
-
}
|
|
484
|
-
}, {
|
|
485
|
-
rootMargin: ROOT_MARGIN + "px"
|
|
486
|
-
});
|
|
487
|
-
|
|
488
|
-
_this6.observer.observe(_this6);
|
|
489
|
-
});
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
_createClass(PixivIcon, [{
|
|
493
|
-
key: "props",
|
|
494
|
-
get: function get() {
|
|
495
|
-
var _this7 = this;
|
|
496
|
-
|
|
497
|
-
var partial = Object.fromEntries(attributes.map(function (attribute) {
|
|
498
|
-
return [attribute, _this7.getAttribute(attribute)];
|
|
499
|
-
}));
|
|
500
|
-
var name = partial.name;
|
|
501
|
-
|
|
502
|
-
if (name === null) {
|
|
503
|
-
throw new TypeError('property "name" is required.');
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
if (!name.includes('/')) {
|
|
507
|
-
throw new TypeError(name + " is not a valid icon name. \"name\" must be named like [size]/[Name].");
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
return _extends({}, partial, {
|
|
511
|
-
name: name
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
}, {
|
|
515
|
-
key: "forceResizedSize",
|
|
516
|
-
get: function get() {
|
|
517
|
-
if (this.props['unsafe-non-guideline-scale'] === null) {
|
|
518
|
-
return null;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
var _this$props$name$spli = this.props.name.split('/'),
|
|
522
|
-
size = _this$props$name$spli[0];
|
|
523
|
-
|
|
524
|
-
var scale = Number(this.props['unsafe-non-guideline-scale']);
|
|
525
|
-
|
|
526
|
-
switch (size) {
|
|
527
|
-
case 'Inline':
|
|
528
|
-
{
|
|
529
|
-
return 16 * scale;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
default:
|
|
533
|
-
{
|
|
534
|
-
return Number(size) * scale;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}, {
|
|
539
|
-
key: "scaledSize",
|
|
540
|
-
get: function get() {
|
|
541
|
-
var _this$props$scale;
|
|
542
|
-
|
|
543
|
-
var _this$props$name$spli2 = this.props.name.split('/'),
|
|
544
|
-
size = _this$props$name$spli2[0];
|
|
545
|
-
|
|
546
|
-
var scale = Number((_this$props$scale = this.props.scale) != null ? _this$props$scale : '1');
|
|
547
|
-
|
|
548
|
-
switch (size) {
|
|
549
|
-
case 'Inline':
|
|
550
|
-
{
|
|
551
|
-
switch (scale) {
|
|
552
|
-
case 2:
|
|
553
|
-
{
|
|
554
|
-
return 32;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
default:
|
|
558
|
-
{
|
|
559
|
-
return 16;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
case '24':
|
|
565
|
-
{
|
|
566
|
-
return Number(size) * scale;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
default:
|
|
570
|
-
{
|
|
571
|
-
return Number(size);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}], [{
|
|
576
|
-
key: "observedAttributes",
|
|
577
|
-
get: function get() {
|
|
578
|
-
return attributes;
|
|
579
|
-
}
|
|
580
|
-
}]);
|
|
581
|
-
|
|
582
|
-
return PixivIcon;
|
|
583
|
-
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
584
|
-
PixivIcon.tagName = 'pixiv-icon';
|
|
585
|
-
|
|
586
|
-
if (!__SERVER__) {
|
|
587
|
-
// TODO: HMR対応
|
|
588
|
-
if (!window.customElements.get(PixivIcon.tagName)) {
|
|
589
|
-
window.PixivIcon = PixivIcon;
|
|
590
|
-
window.customElements.define(PixivIcon.tagName, PixivIcon);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
export { KNOWN_ICON_FILES, PixivIcon, PixivIconLoadError };
|
|
595
|
-
//# sourceMappingURL=index.module.js.map
|
package/dist/index.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.js","sources":["../src/charcoalIconFiles.ts","../src/loaders/PixivIconLoadError.ts","../src/loaders/CharcoalIconFilesLoader.ts","../src/loaders/CustomIconLoader.ts","../src/loaders/index.ts","../src/ssr.ts","../src/PixivIcon.ts","../src/index.ts"],"sourcesContent":["import charcoalIconFiles from '@charcoal-ui/icon-files'\n\nexport default charcoalIconFiles\nexport type KnownIconFile = keyof typeof charcoalIconFiles\nexport const KNOWN_ICON_FILES = Object.keys(\n charcoalIconFiles\n) as KnownIconFile[]\n\nexport function isKnownIconFile(name: string): name is KnownIconFile {\n return name in charcoalIconFiles\n}\n","export class PixivIconLoadError extends Error {\n constructor(name: string, cause: unknown) {\n const message = formatMessage(name, cause)\n\n // TODO: TypeScript 4.6+ になるとここに `{ cause }` が渡せる\n super(message)\n this.name = 'PixivIconLoadError'\n Object.setPrototypeOf(this, new.target.prototype)\n }\n}\n\nfunction formatMessage(name: string, cause: unknown) {\n const message = `Failed to fetch <pixiv-icon name=\"${name}\">`\n if (cause == null) {\n return message\n }\n\n if (cause instanceof Error) {\n return `${message}: ${cause.toString()})`\n }\n\n return `${message}: ${JSON.stringify(cause)})`\n}\n","import { PixivIconLoadError } from './PixivIconLoadError'\nimport { Loadable } from './Loadable'\nimport charcoalIconFiles, { KnownIconFile } from '../charcoalIconFiles'\n\n/**\n * `@charcoal-ui/icon-files` に収録されているアイコンを取ってくる\n */\nexport class CharcoalIconFilesLoader implements Loadable {\n private _name: KnownIconFile\n private _resultSvg: string | undefined = undefined\n private _promise: Promise<string> | undefined = undefined\n\n constructor(name: KnownIconFile) {\n this._name = name\n }\n\n get importIconFile() {\n return charcoalIconFiles[this._name]\n }\n\n async fetch(): Promise<string> {\n if (this._resultSvg !== undefined) {\n return this._resultSvg\n }\n\n if (this._promise) {\n return this._promise\n }\n\n this._promise = this.importIconFile()\n .then((svg) => {\n this._resultSvg = svg\n return this._resultSvg\n })\n .catch((e) => {\n throw new PixivIconLoadError(this._name, e)\n })\n .finally(() => {\n this._promise = undefined\n })\n\n return this._promise\n }\n}\n","import { PixivIconLoadError } from './PixivIconLoadError'\nimport { Loadable } from './Loadable'\n\n/**\n * `PixivIcon.extend()` で登録されたカスタムのアイコンを取得する\n */\nexport class CustomIconLoader implements Loadable {\n private _name: string\n private _filePathOrUrl: string\n private _resultSvg: string | undefined = undefined\n private _promise: Promise<string> | undefined = undefined\n\n constructor(name: string, filePathOrUrl: string) {\n this._name = name\n this._filePathOrUrl = filePathOrUrl\n }\n\n async fetch(): Promise<string> {\n if (this._resultSvg !== undefined) {\n return this._resultSvg\n }\n\n if (this._promise) {\n return this._promise\n }\n\n this._promise = fetch(this._filePathOrUrl)\n .then((response) => {\n if (!response.ok) {\n throw new PixivIconLoadError(this._name, 'Response is not ok')\n }\n\n return response.text()\n })\n .then((svg) => {\n this._resultSvg = svg\n return this._resultSvg\n })\n .catch((e) => {\n if (e instanceof PixivIconLoadError) {\n throw e\n }\n throw new PixivIconLoadError(this._name, e)\n })\n .finally(() => {\n this._promise = undefined\n })\n\n return this._promise\n }\n}\n","import { isKnownIconFile } from '../charcoalIconFiles'\nimport { CharcoalIconFilesLoader } from './CharcoalIconFilesLoader'\nimport { CustomIconLoader } from './CustomIconLoader'\nimport { Loadable } from './Loadable'\nimport { PixivIconLoadError } from './PixivIconLoadError'\n\n/**\n * icon をロードするオブジェクトのプール。Loader のインスタンスは作り次第ここに入れる\n *\n * 同じアイコンへの複数回のリクエストが起きないためには、Loader がこの中でユニークでないと行けない\n */\nconst loaders = new Map<string, Loadable>()\n\nexport function addCustomIcon(name: string, filePathOrUrl: string) {\n loaders.set(name, new CustomIconLoader(name, filePathOrUrl))\n}\n\nexport async function getIcon(name: string) {\n const loader = resolveIconLoader(name)\n if (loader == null) {\n throw new PixivIconLoadError(name, 'Loader was not found')\n }\n\n return loader.fetch().catch((e) => {\n if (e instanceof PixivIconLoadError) {\n throw e\n }\n\n throw new PixivIconLoadError(name, e)\n })\n}\n\nfunction resolveIconLoader(name: string) {\n // 登録済み or キャッシュ済みの場合\n // addCustomIcon で登録された CustomIconLoader は常にこっちを通る\n const registeredLoader = loaders.get(name)\n if (registeredLoader) {\n return registeredLoader\n }\n\n // `@charcoal-ui/icon-files` に収録されているアイコンにはこれを返す\n if (isKnownIconFile(name)) {\n const charcoalIconFilesLoader = new CharcoalIconFilesLoader(name)\n\n loaders.set(name, charcoalIconFilesLoader)\n return charcoalIconFilesLoader\n }\n\n // 存在しないアイコンにはこれを返す\n return null\n}\n","export const __SERVER__ = typeof window === 'undefined'\n\nconst CAN_USE_DOM = typeof HTMLElement !== 'undefined'\n\n// Workaround: `extends HTMLELement` の形式でないとbabelのトランスパイルがおかしくなる\nif (__SERVER__ || !CAN_USE_DOM) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any\n globalThis.HTMLElement = class {} as any\n}\n","import type React from 'react'\nimport warning from 'warning'\nimport { KnownIconFile } from './charcoalIconFiles'\nimport { getIcon, addCustomIcon } from './loaders'\nimport { __SERVER__ } from './ssr'\nimport DOMPurify from 'dompurify'\n\nconst attributes = ['name', 'scale', 'unsafe-non-guideline-scale'] as const\n\nconst ROOT_MARGIN = 50\n\nexport interface KnownIconType extends Record<KnownIconFile, unknown> {}\n\nexport interface Props\n extends Omit<\n React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>,\n 'className' | 'css'\n > {\n name: keyof KnownIconType\n scale?: 1 | 2 | 3 | '1' | '2' | '3'\n 'unsafe-non-guideline-scale'?: number | string\n\n // CustomElements は className が使えない。class と書く必要がある\n // https://ja.reactjs.org/docs/web-components.html#using-web-components-in-react\n class?: string\n}\n\ntype ExtendedIconFile = Exclude<keyof KnownIconType, KnownIconFile>\ntype Extended = [ExtendedIconFile] extends [never] // NOTE: ExtendedIconFileがneverならKnownIconTypeは拡張されていない\n ? false\n : true\n\nexport class PixivIcon extends HTMLElement {\n static readonly tagName = 'pixiv-icon'\n\n static extend(\n map: Extended extends true\n ? Record<ExtendedIconFile, string>\n : Record<string, string>\n ) {\n warning(!__SERVER__, 'Using `PixivIcon.extend()` on server has no effect')\n if (__SERVER__) {\n return\n }\n\n Object.entries(map).forEach(([name, filePathOrUrl]) => {\n if (!name.includes('/')) {\n throw new TypeError(\n `${name} is not a valid icon name. \"name\" must be named like [size]/[Name].`\n )\n }\n\n addCustomIcon(name, filePathOrUrl)\n })\n }\n\n static get observedAttributes() {\n return attributes\n }\n\n private svgContent?: string\n private observer?: IntersectionObserver\n private isVisible = false\n\n get props() {\n const partial = Object.fromEntries(\n attributes.map((attribute) => [attribute, this.getAttribute(attribute)])\n ) as Record<typeof attributes[number], string | null>\n\n const name = partial.name\n\n if (name === null) {\n throw new TypeError('property \"name\" is required.')\n }\n\n if (!name.includes('/')) {\n throw new TypeError(\n `${name} is not a valid icon name. \"name\" must be named like [size]/[Name].`\n )\n }\n\n return {\n ...partial,\n name,\n }\n }\n\n get forceResizedSize() {\n if (this.props['unsafe-non-guideline-scale'] === null) {\n return null\n }\n\n const [size] = this.props.name.split('/')\n const scale = Number(this.props['unsafe-non-guideline-scale'])\n\n switch (size) {\n case 'Inline': {\n return 16 * scale\n }\n\n default: {\n return Number(size) * scale\n }\n }\n }\n\n get scaledSize() {\n const [size] = this.props.name.split('/')\n\n const scale = Number(this.props.scale ?? '1')\n\n switch (size) {\n case 'Inline': {\n switch (scale) {\n case 2: {\n return 32\n }\n\n default: {\n return 16\n }\n }\n }\n\n case '24': {\n return Number(size) * scale\n }\n\n default: {\n return Number(size)\n }\n }\n }\n\n constructor() {\n super()\n this.attachShadow({ mode: 'open' })\n }\n\n async connectedCallback() {\n this.render()\n await this.waitUntilVisible()\n this.isVisible = true\n await this.loadSvg(this.props.name)\n }\n\n disconnectedCallback() {\n this.observer?.disconnect()\n this.observer = undefined\n this.isVisible = false\n }\n\n attributeChangedCallback(\n attr: string,\n _oldValue: string | null,\n newValue: string\n ) {\n // 非表示の場合はロードしない\n if (!this.isVisible) {\n return\n }\n\n // name が変更された場合必ず再読み込みを試みる\n if (attr === 'name') {\n void this.loadSvg(newValue)\n return\n }\n\n // SVG が読み込み済み && scale などの変更だけならそこだけ反映すればいい\n if (this.svgContent !== undefined) {\n this.render()\n return\n }\n\n // まだ SVG が読み込めてないなら load\n void this.loadSvg(this.props.name)\n }\n\n render() {\n const size = this.forceResizedSize ?? this.scaledSize\n\n const style = DOMPurify.sanitize(\n `<style>\n :host {\n display: inline-flex;\n --size: ${size}px;\n }\n\n svg {\n width: var(--size);\n height: var(--size);\n }\n</style>`,\n { ALLOWED_TAGS: ['style'], FORCE_BODY: true }\n )\n\n const svg = DOMPurify.sanitize(\n this.svgContent !== undefined\n ? this.svgContent\n : `<svg viewBox=\"0 0 ${size} ${size}\"></svg>`,\n { USE_PROFILES: { svg: true, svgFilters: true } }\n )\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.shadowRoot!.innerHTML = style + svg\n }\n\n private async loadSvg(name: string) {\n this.svgContent = await getIcon(name)\n this.render()\n }\n\n private waitUntilVisible() {\n return new Promise<void>((resolve) => {\n this.observer = new IntersectionObserver(\n ([first]) => {\n if (first.isIntersecting) {\n this.observer?.disconnect()\n this.observer = undefined\n resolve()\n }\n },\n { rootMargin: `${ROOT_MARGIN}px` }\n )\n\n this.observer.observe(this)\n })\n }\n}\n","import { PixivIcon, Props } from './PixivIcon'\nimport { __SERVER__ } from './ssr'\nexport { PixivIcon, type KnownIconType, type Props } from './PixivIcon'\nexport { KNOWN_ICON_FILES } from './charcoalIconFiles'\nexport { PixivIconLoadError } from './loaders/PixivIconLoadError'\n\ndeclare global {\n interface Window {\n PixivIcon: typeof PixivIcon\n }\n\n // eslint-disable-next-line @typescript-eslint/no-namespace\n export namespace JSX {\n interface IntrinsicElements {\n 'pixiv-icon': Props\n }\n }\n}\n\nif (!__SERVER__) {\n // TODO: HMR対応\n if (!window.customElements.get(PixivIcon.tagName)) {\n window.PixivIcon = PixivIcon\n window.customElements.define(PixivIcon.tagName, PixivIcon)\n }\n}\n"],"names":["KNOWN_ICON_FILES","Object","keys","charcoalIconFiles","isKnownIconFile","name","PixivIconLoadError","cause","message","formatMessage","setPrototypeOf","prototype","Error","toString","JSON","stringify","CharcoalIconFilesLoader","_name","_resultSvg","undefined","_promise","fetch","importIconFile","then","svg","e","CustomIconLoader","filePathOrUrl","_filePathOrUrl","response","ok","text","getIcon","loader","resolveIconLoader","loaders","Map","addCustomIcon","set","registeredLoader","get","charcoalIconFilesLoader","__SERVER__","window","CAN_USE_DOM","HTMLElement","globalThis","attributes","ROOT_MARGIN","PixivIcon","extend","map","warning","entries","forEach","includes","TypeError","svgContent","observer","isVisible","attachShadow","mode","connectedCallback","render","waitUntilVisible","loadSvg","props","disconnectedCallback","disconnect","attributeChangedCallback","attr","_oldValue","newValue","size","forceResizedSize","scaledSize","style","DOMPurify","sanitize","ALLOWED_TAGS","FORCE_BODY","USE_PROFILES","svgFilters","shadowRoot","innerHTML","Promise","resolve","IntersectionObserver","first","isIntersecting","rootMargin","observe","partial","fromEntries","attribute","getAttribute","split","scale","Number","tagName","customElements","define"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAMA,gBAAgB,GAAGC,MAAM,CAACC,IAAP,CAC9BC,iBAD8B,EAAzB;AAID,SAAUC,eAAV,CAA0BC,IAA1B,EAAsC;EAC1C,OAAOA,IAAI,IAAIF,iBAAf,CAAA;AACD;;ACVD,IAAaG,kBAAb,gBAAA,UAAA,MAAA,EAAA;AAAA,EAAA,cAAA,CAAA,kBAAA,EAAA,MAAA,CAAA,CAAA;;EACE,SAAYD,kBAAAA,CAAAA,IAAZ,EAA0BE,KAA1B,EAAwC;AAAA,IAAA,IAAA,KAAA,CAAA;;IACtC,IAAMC,OAAO,GAAGC,aAAa,CAACJ,IAAD,EAAOE,KAAP,CAA7B,CADsC;;AAItC,IAAA,KAAA,GAAA,MAAA,CAAA,IAAA,CAAA,IAAA,EAAMC,OAAN,CAAA,IAAA,IAAA,CAAA;IACA,KAAKH,CAAAA,IAAL,GAAY,oBAAZ,CAAA;AACAJ,IAAAA,MAAM,CAACS,cAAP,CAA4B,sBAAA,CAAA,KAAA,CAAA,EAAA,CAAA,IAAA,YAAA,kBAAA,GAAA,IAAA,CAAA,WAAA,GAAA,KAAA,CAAA,EAAWC,SAAvC,CAAA,CAAA;AANsC,IAAA,OAAA,KAAA,CAAA;AAOvC,GAAA;;AARH,EAAA,OAAA,kBAAA,CAAA;AAAA,CAAA,eAAA,gBAAA,CAAwCC,KAAxC,CAAA,EAAA;;AAWA,SAASH,aAAT,CAAuBJ,IAAvB,EAAqC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