@histoire/vendors 1.0.0-alpha.1 → 1.0.0-alpha.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 (34) hide show
  1. package/dist/client/b-floating-vue.js +1 -1
  2. package/dist/client/b-iconify.js +142 -255
  3. package/dist/client/b-pinia.js +3 -3
  4. package/dist/client/b-scroll.js +1 -1
  5. package/dist/client/b-vue-use.js +1200 -764
  6. package/dist/client/b-vue.js +1 -1
  7. package/dist/client/node_modules/@babel/parser/package.json +2 -2
  8. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +127 -164
  9. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +16 -6
  10. package/dist/client/node_modules/@babel/types/lib/index.d.ts +1168 -1157
  11. package/dist/client/node_modules/@babel/types/package.json +12 -12
  12. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +59 -6
  13. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +9 -2
  14. package/dist/client/node_modules/@iconify/vue/package.json +14 -14
  15. package/dist/client/node_modules/@vueuse/core/index.d.ts +486 -236
  16. package/dist/client/node_modules/@vueuse/core/package.json +18 -6
  17. package/dist/client/node_modules/@vueuse/metadata/package.json +11 -4
  18. package/dist/client/node_modules/@vueuse/shared/index.d.ts +50 -16
  19. package/dist/client/node_modules/@vueuse/shared/package.json +15 -3
  20. package/dist/client/node_modules/pinia/dist/pinia.d.ts +1 -1
  21. package/dist/client/node_modules/pinia/package.json +1 -1
  22. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +9 -9
  23. package/dist/client/node_modules/postcss/lib/comment.d.ts +7 -7
  24. package/dist/client/node_modules/postcss/lib/container.d.ts +45 -48
  25. package/dist/client/node_modules/postcss/lib/declaration.d.ts +9 -9
  26. package/dist/client/node_modules/postcss/lib/input.d.ts +15 -17
  27. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
  28. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
  29. package/dist/client/node_modules/postcss/lib/node.d.ts +8 -8
  30. package/dist/client/node_modules/postcss/lib/result.d.ts +10 -10
  31. package/dist/client/node_modules/postcss/lib/rule.d.ts +8 -8
  32. package/dist/client/node_modules/postcss/package.json +1 -1
  33. package/dist/client/vue.runtime.esm-bundler.js +1 -1
  34. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass, r as renderSlot, a as normalizeProps, g as guardReactiveProps, b as nextTick, w as withScopeId, p as pushScopeId, e as popScopeId, f as createBlock, h as createBaseVNode, i as resolveComponent, j as normalizeStyle, k as withKeys, F as Fragment, l as createCommentVNode, m as mergeProps, q as withCtx, s as createVNode, t as toDisplayString, u as ref, v as createApp, x as h$1 } from './vue.runtime.esm-bundler.js';
1
+ import { d as defineComponent, c as createElementBlock, o as openBlock, n as normalizeClass, r as renderSlot, a as normalizeProps, g as guardReactiveProps, b as nextTick, w as withScopeId, p as pushScopeId, e as popScopeId, f as createBlock, h as createBaseVNode, i as resolveComponent, j as withKeys, k as normalizeStyle, l as createCommentVNode, F as Fragment, m as mergeProps, q as withCtx, s as createVNode, t as toDisplayString, u as ref, v as createApp, x as h$1 } from './vue.runtime.esm-bundler.js';
2
2
 
3
3
  /**
4
4
  * Custom positioning reference element.
@@ -47,7 +47,9 @@ const validateIconName = (icon, allowSimpleName) => {
47
47
  if (!icon) {
48
48
  return false;
49
49
  }
50
- return !!((icon.provider === "" || icon.provider.match(matchIconName)) && (allowSimpleName && icon.prefix === "" || icon.prefix.match(matchIconName)) && icon.name.match(matchIconName));
50
+ return !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
51
+ // Check name: cannot be empty
52
+ ((allowSimpleName && icon.prefix === "" || !!icon.prefix) && !!icon.name);
51
53
  };
52
54
 
53
55
  const defaultIconDimensions = Object.freeze(
@@ -122,7 +124,7 @@ function getIconsTree(data, names) {
122
124
  }
123
125
  return resolved[name];
124
126
  }
125
- (names || Object.keys(icons).concat(Object.keys(aliases))).forEach(resolve);
127
+ (Object.keys(icons).concat(Object.keys(aliases))).forEach(resolve);
126
128
  return resolved;
127
129
  }
128
130
 
@@ -191,10 +193,15 @@ function quicklyValidateIconSet(obj) {
191
193
  const icons = data.icons;
192
194
  for (const name in icons) {
193
195
  const icon = icons[name];
194
- if (!name.match(matchIconName) || typeof icon.body !== "string" || !checkOptionalProps(
195
- icon,
196
- defaultExtendedIconProps
197
- )) {
196
+ if (
197
+ // Name cannot be empty
198
+ !name || // Must have body
199
+ typeof icon.body !== "string" || // Check other props
200
+ !checkOptionalProps(
201
+ icon,
202
+ defaultExtendedIconProps
203
+ )
204
+ ) {
198
205
  return null;
199
206
  }
200
207
  }
@@ -202,10 +209,15 @@ function quicklyValidateIconSet(obj) {
202
209
  for (const name in aliases) {
203
210
  const icon = aliases[name];
204
211
  const parent = icon.parent;
205
- if (!name.match(matchIconName) || typeof parent !== "string" || !icons[parent] && !aliases[parent] || !checkOptionalProps(
206
- icon,
207
- defaultExtendedIconProps
208
- )) {
212
+ if (
213
+ // Name cannot be empty
214
+ !name || // Parent must be set and point to existing icon
215
+ typeof parent !== "string" || !icons[parent] && !aliases[parent] || // Check other props
216
+ !checkOptionalProps(
217
+ icon,
218
+ defaultExtendedIconProps
219
+ )
220
+ ) {
209
221
  return null;
210
222
  }
211
223
  }
@@ -285,7 +297,12 @@ function addIcon(name, data) {
285
297
  return false;
286
298
  }
287
299
  const storage = getStorage(icon.provider, icon.prefix);
288
- return addIconToStorage(storage, icon.name, data);
300
+ if (data) {
301
+ return addIconToStorage(storage, icon.name, data);
302
+ } else {
303
+ storage.missing.add(icon.name);
304
+ return true;
305
+ }
289
306
  }
290
307
  function addCollection(data, provider) {
291
308
  if (typeof data !== "object") {
@@ -299,7 +316,7 @@ function addCollection(data, provider) {
299
316
  if (quicklyValidateIconSet(data)) {
300
317
  data.prefix = "";
301
318
  parseIconSet(data, (name, icon) => {
302
- if (icon && addIcon(name, icon)) {
319
+ if (addIcon(name, icon)) {
303
320
  added = true;
304
321
  }
305
322
  });
@@ -325,7 +342,7 @@ function getIcon(name) {
325
342
  return result ? {
326
343
  ...defaultIconProps,
327
344
  ...result
328
- } : null;
345
+ } : result;
329
346
  }
330
347
 
331
348
  const defaultIconSizeCustomisations = Object.freeze({
@@ -1155,210 +1172,63 @@ function sendAPIQuery(target, query, callback) {
1155
1172
  return redundancy.query(query, send, callback)().abort;
1156
1173
  }
1157
1174
 
1158
- const browserCacheVersion = "iconify2";
1159
- const browserCachePrefix = "iconify";
1160
- const browserCacheCountKey = browserCachePrefix + "-count";
1161
- const browserCacheVersionKey = browserCachePrefix + "-version";
1162
- const browserStorageHour = 36e5;
1163
- const browserStorageCacheExpiration = 168;
1164
- const browserStorageLimit = 50;
1165
-
1166
- function getStoredItem(func, key) {
1167
- try {
1168
- return func.getItem(key);
1169
- } catch (err) {
1170
- }
1171
- }
1172
- function setStoredItem(func, key, value) {
1173
- try {
1174
- func.setItem(key, value);
1175
- return true;
1176
- } catch (err) {
1177
- }
1178
- }
1179
- function removeStoredItem(func, key) {
1180
- try {
1181
- func.removeItem(key);
1182
- } catch (err) {
1183
- }
1184
- }
1185
-
1186
- function setBrowserStorageItemsCount(storage, value) {
1187
- return setStoredItem(storage, browserCacheCountKey, value.toString());
1188
- }
1189
- function getBrowserStorageItemsCount(storage) {
1190
- return parseInt(getStoredItem(storage, browserCacheCountKey)) || 0;
1191
- }
1192
-
1193
- const browserStorageConfig = {
1194
- local: true,
1195
- session: true
1196
- };
1197
- const browserStorageEmptyItems = {
1198
- local: /* @__PURE__ */ new Set(),
1199
- session: /* @__PURE__ */ new Set()
1200
- };
1201
- let browserStorageStatus = false;
1202
- function setBrowserStorageStatus(status) {
1203
- browserStorageStatus = status;
1175
+ function emptyCallback() {
1204
1176
  }
1205
-
1206
- let _window = typeof window === "undefined" ? {} : window;
1207
- function getBrowserStorage(key) {
1208
- const attr = key + "Storage";
1209
- try {
1210
- if (_window && _window[attr] && typeof _window[attr].length === "number") {
1211
- return _window[attr];
1212
- }
1213
- } catch (err) {
1177
+ function loadedNewIcons(storage) {
1178
+ if (!storage.iconsLoaderFlag) {
1179
+ storage.iconsLoaderFlag = true;
1180
+ setTimeout(() => {
1181
+ storage.iconsLoaderFlag = false;
1182
+ updateCallbacks(storage);
1183
+ });
1214
1184
  }
1215
- browserStorageConfig[key] = false;
1216
1185
  }
1217
-
1218
- function iterateBrowserStorage(key, callback) {
1219
- const func = getBrowserStorage(key);
1220
- if (!func) {
1221
- return;
1222
- }
1223
- const version = getStoredItem(func, browserCacheVersionKey);
1224
- if (version !== browserCacheVersion) {
1225
- if (version) {
1226
- const total2 = getBrowserStorageItemsCount(func);
1227
- for (let i = 0; i < total2; i++) {
1228
- removeStoredItem(func, browserCachePrefix + i.toString());
1229
- }
1230
- }
1231
- setStoredItem(func, browserCacheVersionKey, browserCacheVersion);
1232
- setBrowserStorageItemsCount(func, 0);
1233
- return;
1234
- }
1235
- const minTime = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration;
1236
- const parseItem = (index) => {
1237
- const name = browserCachePrefix + index.toString();
1238
- const item = getStoredItem(func, name);
1239
- if (typeof item !== "string") {
1240
- return;
1241
- }
1242
- try {
1243
- const data = JSON.parse(item);
1244
- if (typeof data === "object" && typeof data.cached === "number" && data.cached > minTime && typeof data.provider === "string" && typeof data.data === "object" && typeof data.data.prefix === "string" && // Valid item: run callback
1245
- callback(data, index)) {
1246
- return true;
1247
- }
1248
- } catch (err) {
1249
- }
1250
- removeStoredItem(func, name);
1186
+ function checkIconNamesForAPI(icons) {
1187
+ const valid = [];
1188
+ const invalid = [];
1189
+ icons.forEach((name) => {
1190
+ (name.match(matchIconName) ? valid : invalid).push(name);
1191
+ });
1192
+ return {
1193
+ valid,
1194
+ invalid
1251
1195
  };
1252
- let total = getBrowserStorageItemsCount(func);
1253
- for (let i = total - 1; i >= 0; i--) {
1254
- if (!parseItem(i)) {
1255
- if (i === total - 1) {
1256
- total--;
1257
- setBrowserStorageItemsCount(func, total);
1258
- } else {
1259
- browserStorageEmptyItems[key].add(i);
1260
- }
1261
- }
1262
- }
1263
1196
  }
1264
-
1265
- function initBrowserStorage() {
1266
- if (browserStorageStatus) {
1267
- return;
1268
- }
1269
- setBrowserStorageStatus(true);
1270
- for (const key in browserStorageConfig) {
1271
- iterateBrowserStorage(key, (item) => {
1272
- const iconSet = item.data;
1273
- const provider = item.provider;
1274
- const prefix = iconSet.prefix;
1275
- const storage = getStorage(
1276
- provider,
1277
- prefix
1278
- );
1279
- if (!addIconSet(storage, iconSet).length) {
1280
- return false;
1197
+ function parseLoaderResponse(storage, icons, data) {
1198
+ function checkMissing() {
1199
+ const pending = storage.pendingIcons;
1200
+ icons.forEach((name) => {
1201
+ if (pending) {
1202
+ pending.delete(name);
1203
+ }
1204
+ if (!storage.icons[name]) {
1205
+ storage.missing.add(name);
1281
1206
  }
1282
- const lastModified = iconSet.lastModified || -1;
1283
- storage.lastModifiedCached = storage.lastModifiedCached ? Math.min(storage.lastModifiedCached, lastModified) : lastModified;
1284
- return true;
1285
1207
  });
1286
1208
  }
1287
- }
1288
-
1289
- function updateLastModified(storage, lastModified) {
1290
- const lastValue = storage.lastModifiedCached;
1291
- if (
1292
- // Matches or newer
1293
- lastValue && lastValue >= lastModified
1294
- ) {
1295
- return lastValue === lastModified;
1296
- }
1297
- storage.lastModifiedCached = lastModified;
1298
- if (lastValue) {
1299
- for (const key in browserStorageConfig) {
1300
- iterateBrowserStorage(key, (item) => {
1301
- const iconSet = item.data;
1302
- return item.provider !== storage.provider || iconSet.prefix !== storage.prefix || iconSet.lastModified === lastModified;
1303
- });
1304
- }
1305
- }
1306
- return true;
1307
- }
1308
- function storeInBrowserStorage(storage, data) {
1309
- if (!browserStorageStatus) {
1310
- initBrowserStorage();
1311
- }
1312
- function store(key) {
1313
- let func;
1314
- if (!browserStorageConfig[key] || !(func = getBrowserStorage(key))) {
1315
- return;
1316
- }
1317
- const set = browserStorageEmptyItems[key];
1318
- let index;
1319
- if (set.size) {
1320
- set.delete(index = Array.from(set).shift());
1321
- } else {
1322
- index = getBrowserStorageItemsCount(func);
1323
- if (index >= browserStorageLimit || !setBrowserStorageItemsCount(func, index + 1)) {
1209
+ if (data && typeof data === "object") {
1210
+ try {
1211
+ const parsed = addIconSet(storage, data);
1212
+ if (!parsed.length) {
1213
+ checkMissing();
1324
1214
  return;
1325
1215
  }
1216
+ } catch (err) {
1217
+ console.error(err);
1326
1218
  }
1327
- const item = {
1328
- cached: Math.floor(Date.now() / browserStorageHour),
1329
- provider: storage.provider,
1330
- data
1331
- };
1332
- return setStoredItem(
1333
- func,
1334
- browserCachePrefix + index.toString(),
1335
- JSON.stringify(item)
1336
- );
1337
- }
1338
- if (data.lastModified && !updateLastModified(storage, data.lastModified)) {
1339
- return;
1340
- }
1341
- if (!Object.keys(data.icons).length) {
1342
- return;
1343
- }
1344
- if (data.not_found) {
1345
- data = Object.assign({}, data);
1346
- delete data.not_found;
1347
- }
1348
- if (!store("local")) {
1349
- store("session");
1350
1219
  }
1220
+ checkMissing();
1221
+ loadedNewIcons(storage);
1351
1222
  }
1352
-
1353
- function emptyCallback() {
1354
- }
1355
- function loadedNewIcons(storage) {
1356
- if (!storage.iconsLoaderFlag) {
1357
- storage.iconsLoaderFlag = true;
1358
- setTimeout(() => {
1359
- storage.iconsLoaderFlag = false;
1360
- updateCallbacks(storage);
1223
+ function parsePossiblyAsyncResponse(response, callback) {
1224
+ if (response instanceof Promise) {
1225
+ response.then((data) => {
1226
+ callback(data);
1227
+ }).catch(() => {
1228
+ callback(null);
1361
1229
  });
1230
+ } else {
1231
+ callback(response);
1362
1232
  }
1363
1233
  }
1364
1234
  function loadNewIcons(storage, icons) {
@@ -1374,38 +1244,50 @@ function loadNewIcons(storage, icons) {
1374
1244
  const { provider, prefix } = storage;
1375
1245
  const icons2 = storage.iconsToLoad;
1376
1246
  delete storage.iconsToLoad;
1377
- let api;
1378
- if (!icons2 || !(api = getAPIModule(provider))) {
1247
+ if (!icons2 || !icons2.length) {
1248
+ return;
1249
+ }
1250
+ const customIconLoader = storage.loadIcon;
1251
+ if (storage.loadIcons && (icons2.length > 1 || !customIconLoader)) {
1252
+ parsePossiblyAsyncResponse(
1253
+ storage.loadIcons(icons2, prefix, provider),
1254
+ (data) => {
1255
+ parseLoaderResponse(storage, icons2, data);
1256
+ }
1257
+ );
1258
+ return;
1259
+ }
1260
+ if (customIconLoader) {
1261
+ icons2.forEach((name) => {
1262
+ const response = customIconLoader(name, prefix, provider);
1263
+ parsePossiblyAsyncResponse(response, (data) => {
1264
+ const iconSet = data ? {
1265
+ prefix,
1266
+ icons: {
1267
+ [name]: data
1268
+ }
1269
+ } : null;
1270
+ parseLoaderResponse(storage, [name], iconSet);
1271
+ });
1272
+ });
1273
+ return;
1274
+ }
1275
+ const { valid, invalid } = checkIconNamesForAPI(icons2);
1276
+ if (invalid.length) {
1277
+ parseLoaderResponse(storage, invalid, null);
1278
+ }
1279
+ if (!valid.length) {
1379
1280
  return;
1380
1281
  }
1381
- const params = api.prepare(provider, prefix, icons2);
1282
+ const api = prefix.match(matchIconName) ? getAPIModule(provider) : null;
1283
+ if (!api) {
1284
+ parseLoaderResponse(storage, valid, null);
1285
+ return;
1286
+ }
1287
+ const params = api.prepare(provider, prefix, valid);
1382
1288
  params.forEach((item) => {
1383
1289
  sendAPIQuery(provider, item, (data) => {
1384
- if (typeof data !== "object") {
1385
- item.icons.forEach((name) => {
1386
- storage.missing.add(name);
1387
- });
1388
- } else {
1389
- try {
1390
- const parsed = addIconSet(
1391
- storage,
1392
- data
1393
- );
1394
- if (!parsed.length) {
1395
- return;
1396
- }
1397
- const pending = storage.pendingIcons;
1398
- if (pending) {
1399
- parsed.forEach((name) => {
1400
- pending.delete(name);
1401
- });
1402
- }
1403
- storeInBrowserStorage(storage, data);
1404
- } catch (err) {
1405
- console.error(err);
1406
- }
1407
- }
1408
- loadedNewIcons(storage);
1290
+ parseLoaderResponse(storage, item.icons, data);
1409
1291
  });
1410
1292
  });
1411
1293
  });
@@ -1458,9 +1340,9 @@ const loadIcons = (icons, callback) => {
1458
1340
  }
1459
1341
  });
1460
1342
  sources.forEach((storage) => {
1461
- const { provider, prefix } = storage;
1462
- if (newIcons[provider][prefix].length) {
1463
- loadNewIcons(storage, newIcons[provider][prefix]);
1343
+ const list = newIcons[storage.provider][storage.prefix];
1344
+ if (list.length) {
1345
+ loadNewIcons(storage, list);
1464
1346
  }
1465
1347
  });
1466
1348
  return callback ? storeCallback(callback, sortedIcons, sources) : emptyCallback;
@@ -1488,18 +1370,11 @@ const loadIcon = (icon) => {
1488
1370
  });
1489
1371
  };
1490
1372
 
1491
- function toggleBrowserCache(storage, value) {
1492
- switch (storage) {
1493
- case "local":
1494
- case "session":
1495
- browserStorageConfig[storage] = value;
1496
- break;
1497
- case "all":
1498
- for (const key in browserStorageConfig) {
1499
- browserStorageConfig[key] = value;
1500
- }
1501
- break;
1502
- }
1373
+ function setCustomIconsLoader(loader, prefix, provider) {
1374
+ getStorage(provider || "", prefix).loadIcons = loader;
1375
+ }
1376
+ function setCustomIconLoader(loader, prefix, provider) {
1377
+ getStorage(provider || "", prefix).loadIcon = loader;
1503
1378
  }
1504
1379
 
1505
1380
  function mergeCustomisations(defaults, item) {
@@ -1679,6 +1554,7 @@ props) => {
1679
1554
  case 'style':
1680
1555
  case 'onLoad':
1681
1556
  case 'mode':
1557
+ case 'ssr':
1682
1558
  break;
1683
1559
  // Boolean attributes
1684
1560
  case 'inline':
@@ -1781,15 +1657,19 @@ props) => {
1781
1657
 
1782
1658
  /**
1783
1659
  * Enable cache
1660
+ *
1661
+ * @deprecated No longer used
1784
1662
  */
1785
1663
  function enableCache(storage) {
1786
- toggleBrowserCache(storage, true);
1664
+ //
1787
1665
  }
1788
1666
  /**
1789
1667
  * Disable cache
1668
+ *
1669
+ * @deprecated No longer used
1790
1670
  */
1791
1671
  function disableCache(storage) {
1792
- toggleBrowserCache(storage, false);
1672
+ //
1793
1673
  }
1794
1674
  /**
1795
1675
  * Initialise stuff
@@ -1802,8 +1682,6 @@ setAPIModule('', fetchAPIModule);
1802
1682
  * Browser stuff
1803
1683
  */
1804
1684
  if (typeof document !== 'undefined' && typeof window !== 'undefined') {
1805
- // Set cache and load existing cache
1806
- initBrowserStorage();
1807
1685
  const _window = window;
1808
1686
  // Load icons from global "IconifyPreload"
1809
1687
  if (_window.IconifyPreload !== void 0) {
@@ -1893,7 +1771,7 @@ const Icon = defineComponent({
1893
1771
  }
1894
1772
  },
1895
1773
  // Get data for icon to render or null
1896
- getIcon(icon, onload) {
1774
+ getIcon(icon, onload, customise) {
1897
1775
  // Icon is an object
1898
1776
  if (typeof icon === 'object' &&
1899
1777
  icon !== null &&
@@ -1913,7 +1791,7 @@ const Icon = defineComponent({
1913
1791
  return null;
1914
1792
  }
1915
1793
  // Load icon
1916
- const data = getIconData(iconName);
1794
+ let data = getIconData(iconName);
1917
1795
  if (!data) {
1918
1796
  // Icon data is not available
1919
1797
  if (!this._loadingIcon || this._loadingIcon.name !== icon) {
@@ -1940,6 +1818,15 @@ const Icon = defineComponent({
1940
1818
  onload(icon);
1941
1819
  }
1942
1820
  }
1821
+ // Customise icon
1822
+ if (customise) {
1823
+ // Clone data and customise it
1824
+ data = Object.assign({}, data);
1825
+ const customised = customise(data.body, iconName.name, iconName.prefix, iconName.provider);
1826
+ if (typeof customised === 'string') {
1827
+ data.body = customised;
1828
+ }
1829
+ }
1943
1830
  // Add classes
1944
1831
  const classes = ['iconify'];
1945
1832
  if (iconName.prefix !== '') {
@@ -1957,8 +1844,8 @@ const Icon = defineComponent({
1957
1844
  this.counter;
1958
1845
  const props = this.$attrs;
1959
1846
  // Get icon data
1960
- const icon = (this.iconMounted || props.ssr)
1961
- ? this.getIcon(props.icon, props.onLoad)
1847
+ const icon = this.iconMounted || props.ssr
1848
+ ? this.getIcon(props.icon, props.onLoad, props.customise)
1962
1849
  : null;
1963
1850
  // Validate icon object
1964
1851
  if (!icon) {
@@ -1993,4 +1880,4 @@ const _api = {
1993
1880
  listAPIProviders,
1994
1881
  };
1995
1882
 
1996
- export { Icon, _api, addAPIProvider, addCollection, addIcon, iconToSVG as buildIcon, calculateSize, disableCache, enableCache, getIcon, iconLoaded as iconExists, iconLoaded, listIcons, loadIcon, loadIcons, replaceIDs };
1883
+ export { Icon, _api, addAPIProvider, addCollection, addIcon, iconToSVG as buildIcon, calculateSize, disableCache, enableCache, getIcon, iconLoaded as iconExists, iconLoaded, listIcons, loadIcon, loadIcons, replaceIDs, setCustomIconLoader, setCustomIconsLoader };
@@ -1,4 +1,4 @@
1
- import { y as hasInjectionContext, z as inject, A as toRaw, B as watch, C as unref, D as markRaw, E as effectScope, u as ref, G as isRef, H as isReactive, I as getCurrentScope, J as onScopeDispose, K as toRefs, L as computed, b as nextTick, M as reactive, N as toRef, O as getCurrentInstance } from './vue.runtime.esm-bundler.js';
1
+ import { y as hasInjectionContext, z as inject, A as toRaw, B as watch, C as unref, D as markRaw, E as effectScope, u as ref, G as isRef, H as isReactive, I as getCurrentScope, J as onScopeDispose, K as toRefs, L as computed, M as reactive, b as nextTick, N as toRef, O as getCurrentInstance } from './vue.runtime.esm-bundler.js';
2
2
  import { s as setupDevtoolsPlugin } from './index.js';
3
3
 
4
4
  var isVue2 = false;
@@ -26,8 +26,8 @@ function del(target, key) {
26
26
  }
27
27
 
28
28
  /*!
29
- * pinia v2.3.0
30
- * (c) 2024 Eduardo San Martin Morote
29
+ * pinia v2.3.1
30
+ * (c) 2025 Eduardo San Martin Morote
31
31
  * @license MIT
32
32
  */
33
33
 
@@ -1,4 +1,4 @@
1
- const t=t=>"object"==typeof t&&null!=t&&1===t.nodeType,e$1=(t,e)=>(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t),n=(t,n)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const o=getComputedStyle(t,null);return e$1(o.overflowY,n)||e$1(o.overflowX,n)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return !1},o$1=(t,e,n,o,l,r,i,s)=>r<t&&i>e||r>t&&i<e?0:r<=t&&s<=n||i>=e&&s>=n?r-t-o:i>e&&s<n||r<t&&s>n?i-e+l:0,l=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},r=(e,r)=>{var i,s,d,h;if("undefined"==typeof document)return [];const{scrollMode:c,block:f,inline:u,boundary:a,skipOverflowHiddenElements:g}=r,p="function"==typeof a?a:t=>t!==a;if(!t(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,w=[];let W=e;for(;t(W)&&p(W);){if(W=l(W),W===m){w.push(W);break}null!=W&&W===document.body&&n(W)&&!n(document.documentElement)||null!=W&&n(W,g)&&w.push(W);}const b=null!=(s=null==(i=window.visualViewport)?void 0:i.width)?s:innerWidth,H=null!=(h=null==(d=window.visualViewport)?void 0:d.height)?h:innerHeight,{scrollX:y,scrollY:M}=window,{height:v,width:E,top:x,right:C,bottom:I,left:R}=e.getBoundingClientRect(),{top:T,right:B,bottom:F,left:V}=(t=>{const e=window.getComputedStyle(t);return {top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(e);let k="start"===f||"nearest"===f?x-T:"end"===f?I+F:x+v/2-T+F,D="center"===u?R+E/2-V+B:"end"===u?C+B:R-V;const L=[];for(let t=0;t<w.length;t++){const e=w[t],{height:n,width:l,top:r,right:i,bottom:s,left:d}=e.getBoundingClientRect();if("if-needed"===c&&x>=0&&R>=0&&I<=H&&C<=b&&x>=r&&I<=s&&R>=d&&C<=i)return L;const h=getComputedStyle(e),a=parseInt(h.borderLeftWidth,10),g=parseInt(h.borderTopWidth,10),p=parseInt(h.borderRightWidth,10),W=parseInt(h.borderBottomWidth,10);let T=0,B=0;const F="offsetWidth"in e?e.offsetWidth-e.clientWidth-a-p:0,V="offsetHeight"in e?e.offsetHeight-e.clientHeight-g-W:0,S="offsetWidth"in e?0===e.offsetWidth?0:l/e.offsetWidth:0,X="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(m===e)T="start"===f?k:"end"===f?k-H:"nearest"===f?o$1(M,M+H,H,g,W,M+k,M+k+v,v):k-H/2,B="start"===u?D:"center"===u?D-b/2:"end"===u?D-b:o$1(y,y+b,b,a,p,y+D,y+D+E,E),T=Math.max(0,T+M),B=Math.max(0,B+y);else {T="start"===f?k-r-g:"end"===f?k-s+W+V:"nearest"===f?o$1(r,s,n,g,W+V,k,k+v,v):k-(r+n/2)+V/2,B="start"===u?D-d-a:"center"===u?D-(d+l/2)+F/2:"end"===u?D-i+p+F:o$1(d,i,l,a,p+F,D,D+E,E);const{scrollLeft:t,scrollTop:h}=e;T=0===X?0:Math.max(0,Math.min(h+T/X,e.scrollHeight-n/X+V)),B=0===S?0:Math.max(0,Math.min(t+B/S,e.scrollWidth-l/S+F)),k+=h-T,D+=t-B;}L.push({el:e,top:T,left:B});}return L};
1
+ const t=t=>"object"==typeof t&&null!=t&&1===t.nodeType,e$1=(t,e)=>(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t),n=(t,n)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const o=getComputedStyle(t,null);return e$1(o.overflowY,n)||e$1(o.overflowX,n)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return !1},o$1=(t,e,n,o,l,r,i,s)=>r<t&&i>e||r>t&&i<e?0:r<=t&&s<=n||i>=e&&s>=n?r-t-o:i>e&&s<n||r<t&&s>n?i-e+l:0,l=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},r=(e,r)=>{var i,s,d,h;if("undefined"==typeof document)return [];const{scrollMode:c,block:f,inline:u,boundary:a,skipOverflowHiddenElements:g}=r,p="function"==typeof a?a:t=>t!==a;if(!t(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,w=[];let W=e;for(;t(W)&&p(W);){if(W=l(W),W===m){w.push(W);break}null!=W&&W===document.body&&n(W)&&!n(document.documentElement)||null!=W&&n(W,g)&&w.push(W);}const b=null!=(s=null==(i=window.visualViewport)?void 0:i.width)?s:innerWidth,H=null!=(h=null==(d=window.visualViewport)?void 0:d.height)?h:innerHeight,{scrollX:y,scrollY:M}=window,{height:v,width:E,top:x,right:C,bottom:I,left:R}=e.getBoundingClientRect(),{top:T,right:B,bottom:F,left:V}=(t=>{const e=window.getComputedStyle(t);return {top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(e);let k="start"===f||"nearest"===f?x-T:"end"===f?I+F:x+v/2-T+F,D="center"===u?R+E/2-V+B:"end"===u?C+B:R-V;const L=[];for(let t=0;t<w.length;t++){const e=w[t],{height:l,width:r,top:i,right:s,bottom:d,left:h}=e.getBoundingClientRect();if("if-needed"===c&&x>=0&&R>=0&&I<=H&&C<=b&&(e===m&&!n(e)||x>=i&&I<=d&&R>=h&&C<=s))return L;const a=getComputedStyle(e),g=parseInt(a.borderLeftWidth,10),p=parseInt(a.borderTopWidth,10),W=parseInt(a.borderRightWidth,10),T=parseInt(a.borderBottomWidth,10);let B=0,F=0;const V="offsetWidth"in e?e.offsetWidth-e.clientWidth-g-W:0,S="offsetHeight"in e?e.offsetHeight-e.clientHeight-p-T:0,X="offsetWidth"in e?0===e.offsetWidth?0:r/e.offsetWidth:0,Y="offsetHeight"in e?0===e.offsetHeight?0:l/e.offsetHeight:0;if(m===e)B="start"===f?k:"end"===f?k-H:"nearest"===f?o$1(M,M+H,H,p,T,M+k,M+k+v,v):k-H/2,F="start"===u?D:"center"===u?D-b/2:"end"===u?D-b:o$1(y,y+b,b,g,W,y+D,y+D+E,E),B=Math.max(0,B+M),F=Math.max(0,F+y);else {B="start"===f?k-i-p:"end"===f?k-d+T+S:"nearest"===f?o$1(i,d,l,p,T+S,k,k+v,v):k-(i+l/2)+S/2,F="start"===u?D-h-g:"center"===u?D-(h+r/2)+V/2:"end"===u?D-s+W+V:o$1(h,s,r,g,W+V,D,D+E,E);const{scrollLeft:t,scrollTop:n}=e;B=0===Y?0:Math.max(0,Math.min(n+B/Y,e.scrollHeight-l/Y+S)),F=0===X?0:Math.max(0,Math.min(t+F/X,e.scrollWidth-r/X+V)),k+=n-B,D+=t-F;}L.push({el:e,top:B,left:F});}return L};
2
2
 
3
3
  const o=t=>!1===t?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&0!==Object.keys(t).length)(t)?t:{block:"start",inline:"nearest"};function e(e,r$1){if(!e.isConnected||!(t=>{let o=t;for(;o&&o.parentNode;){if(o.parentNode===document)return !0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode;}return !1})(e))return;const n=(t=>{const o=window.getComputedStyle(t);return {top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((t=>"object"==typeof t&&"function"==typeof t.behavior)(r$1))return r$1.behavior(r(e,r$1));const l="boolean"==typeof r$1||null==r$1?void 0:r$1.behavior;for(const{el:a,top:i,left:s}of r(e,o(r$1))){const t=i-n.top+n.bottom,o=s-n.left+n.right;a.scroll({top:t,left:o,behavior:l});}}
4
4