@wrrdev/fenix-ui 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_virtual/preload-helper.js +13 -5
- package/dist/_virtual/preload-helper.js.map +1 -1
- package/dist/assets/fenix-icons-DmgotBzD.woff2 +0 -0
- package/dist/components/alert/alert.js +2 -2
- package/dist/components/confirmpopup/confirmpopup.js +2 -2
- package/dist/components/toast/toast.js +2 -2
- package/dist/fenix-ui2.esm.js +1 -2
- package/dist/fenix-ui2.esm.js.map +1 -1
- package/dist/fenix-ui3.esm.js +17 -9
- package/dist/fenix-ui3.esm.js.map +1 -1
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +1 -2
- package/dist/icons/index.js.map +1 -1
- package/package.json +1 -1
package/dist/fenix-ui3.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["fenix-ui2.esm.js","assets/base-css-BifSeW2H.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./fenix-ui2.esm.js","./assets/base-css-BifSeW2H.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __typeError = (msg) => {
|
|
3
3
|
throw TypeError(msg);
|
|
4
4
|
};
|
|
@@ -4194,26 +4194,34 @@ function defineFxDialog() {
|
|
|
4194
4194
|
}
|
|
4195
4195
|
defineFxDialog();
|
|
4196
4196
|
const scriptRel = "modulepreload";
|
|
4197
|
-
const assetsURL = function(dep) {
|
|
4198
|
-
return
|
|
4197
|
+
const assetsURL = function(dep, importerUrl) {
|
|
4198
|
+
return new URL(dep, importerUrl).href;
|
|
4199
4199
|
};
|
|
4200
4200
|
const seen = {};
|
|
4201
4201
|
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
4202
4202
|
let promise = Promise.resolve();
|
|
4203
4203
|
if (deps && deps.length > 0) {
|
|
4204
|
-
document.getElementsByTagName("link");
|
|
4204
|
+
const links = document.getElementsByTagName("link");
|
|
4205
4205
|
const cspNonceMeta = document.querySelector(
|
|
4206
4206
|
"meta[property=csp-nonce]"
|
|
4207
4207
|
);
|
|
4208
4208
|
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
4209
4209
|
promise = Promise.allSettled(
|
|
4210
4210
|
deps.map((dep) => {
|
|
4211
|
-
dep = assetsURL(dep);
|
|
4211
|
+
dep = assetsURL(dep, importerUrl);
|
|
4212
4212
|
if (dep in seen) return;
|
|
4213
4213
|
seen[dep] = true;
|
|
4214
4214
|
const isCss = dep.endsWith(".css");
|
|
4215
4215
|
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
4216
|
-
|
|
4216
|
+
const isBaseRelative = !!importerUrl;
|
|
4217
|
+
if (isBaseRelative) {
|
|
4218
|
+
for (let i = links.length - 1; i >= 0; i--) {
|
|
4219
|
+
const link2 = links[i];
|
|
4220
|
+
if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) {
|
|
4221
|
+
return;
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
} else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
|
|
4217
4225
|
return;
|
|
4218
4226
|
}
|
|
4219
4227
|
const link = document.createElement("link");
|
|
@@ -4280,7 +4288,7 @@ const _FxConfirmPopup = class _FxConfirmPopup extends FxElement {
|
|
|
4280
4288
|
const message = this.getAttr("message");
|
|
4281
4289
|
const icon = this.getAttr("icon");
|
|
4282
4290
|
const iconIsFx = isFenixIconName(icon);
|
|
4283
|
-
if (iconIsFx) void __vitePreload(() => import("./fenix-ui2.esm.js"), true ? __vite__mapDeps([0,1]) : void 0);
|
|
4291
|
+
if (iconIsFx) void __vitePreload(() => import("./fenix-ui2.esm.js"), true ? __vite__mapDeps([0,1]) : void 0, import.meta.url);
|
|
4284
4292
|
const acceptLabel = this.getAttr("accept-label", "Sim");
|
|
4285
4293
|
const rejectLabel = this.getAttr("reject-label", "Não");
|
|
4286
4294
|
this.setTemplate(`
|
|
@@ -6830,7 +6838,7 @@ render_fn = function() {
|
|
|
6830
6838
|
const color = KIND_COLOR[kind] ?? KIND_COLOR.info;
|
|
6831
6839
|
const iconName = this.getAttribute("icon");
|
|
6832
6840
|
const isFxIcon = !!iconName && /^[a-z][a-z0-9_]*$/.test(iconName);
|
|
6833
|
-
if (isFxIcon) void __vitePreload(() => import("./fenix-ui2.esm.js"), true ? __vite__mapDeps([0,1]) : void 0);
|
|
6841
|
+
if (isFxIcon) void __vitePreload(() => import("./fenix-ui2.esm.js"), true ? __vite__mapDeps([0,1]) : void 0, import.meta.url);
|
|
6834
6842
|
const iconContent = isFxIcon ? iconName : KIND_ICON[kind] ?? KIND_ICON.info;
|
|
6835
6843
|
this.shadowRoot.innerHTML = `
|
|
6836
6844
|
<style>${CARD_CSS}</style>
|
|
@@ -7592,7 +7600,7 @@ const _FxAlert = class _FxAlert extends FxElement {
|
|
|
7592
7600
|
const variant = this.getAttr("variant", "info");
|
|
7593
7601
|
const title = this.getAttr("title");
|
|
7594
7602
|
const iconName = this.getAttr("icon");
|
|
7595
|
-
if (isFenixIconName(iconName)) void __vitePreload(() => import("./fenix-ui2.esm.js"), true ? __vite__mapDeps([0,1]) : void 0);
|
|
7603
|
+
if (isFenixIconName(iconName)) void __vitePreload(() => import("./fenix-ui2.esm.js"), true ? __vite__mapDeps([0,1]) : void 0, import.meta.url);
|
|
7596
7604
|
const icons = {
|
|
7597
7605
|
info: "ℹ",
|
|
7598
7606
|
success: "✓",
|