wj-elements 0.0.22 → 0.0.24
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/wj-icon.js +0 -1
- package/dist/wj-router-outlet.js +0 -1
- package/dist/wj-routerx.js +4 -1
- package/package.json +2 -2
package/dist/wj-icon.js
CHANGED
|
@@ -113,7 +113,6 @@ const getNamedUrl = (iconName) => {
|
|
|
113
113
|
let parsedUrl = new URL(import.meta.url);
|
|
114
114
|
let pathName = parsedUrl.pathname;
|
|
115
115
|
let folderPath = pathName.substring(0, pathName.lastIndexOf("/"));
|
|
116
|
-
console.log(folderPath, parsedUrl, pathName, parsedUrl.origin + folderPath + path);
|
|
117
116
|
return new URL(parsedUrl.origin + folderPath + path).href;
|
|
118
117
|
};
|
|
119
118
|
const styles = "/*\n[ WJ Icon ]\n*/\n:host(.wj-color-primary) {\n --wj-icon-color: var(--wj-color-primary);\n}\n\n:host(.wj-color-complete) {\n --wj-icon-color: var(--wj-color-complete);\n}\n\n:host(.wj-color-success) {\n --wj-icon-color: var(--wj-color-success);\n}\n\n:host(.wj-color-warning) {\n --wj-icon-color: var(--wj-color-warning);\n}\n\n:host(.wj-color-danger) {\n --wj-icon-color: var(--wj-color-danger);\n}\n\n:host(.wj-color-info) {\n --wj-icon-color: var(--wj-color-info);\n}\n\n:host {\n --wj-icon-size: 1rem;\n --wj-icon-width: var(--wj-icon-size, 100%);\n --wj-icon-height: var(--wj-icon-size, 100%);\n display: inline-block;\n width: var(--wj-icon-width);\n height: var(--wj-icon-height);\n contain: strict;\n fill: currentColor;\n box-sizing: content-box !important;\n}\n\n.icon-inner, svg {\n display: block;\n width: var(--wj-icon-width);\n height: var(--wj-icon-height);\n}\n\n:host(.wj-size-small) {\n --wj-icon-size: 18px;\n}\n\n:host(.wj-size-large) {\n --wj-icon-size: 32px;\n}\n\n:host(.wj-size) {\n font-size: var(--wj-icon-size);\n}\n\n:host(.wj-color) {\n color: var(--wj-icon-color) !important;\n}";
|
package/dist/wj-router-outlet.js
CHANGED
package/dist/wj-routerx.js
CHANGED
|
@@ -1500,7 +1500,10 @@ class Routerx extends WJElement {
|
|
|
1500
1500
|
const attributeName = attributes[i].name;
|
|
1501
1501
|
const attributeValue = attributes[i].value;
|
|
1502
1502
|
if (attributeName === "component" && attributeValue.indexOf(".js") > -1) {
|
|
1503
|
-
obj.component = () => import(
|
|
1503
|
+
obj.component = () => import(
|
|
1504
|
+
/* @vite-ignore */
|
|
1505
|
+
attributeValue
|
|
1506
|
+
);
|
|
1504
1507
|
} else {
|
|
1505
1508
|
if (attributeName !== "shadow") {
|
|
1506
1509
|
obj[attributeName] = attributeValue;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wj-elements",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.24",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"./dist"
|
|
8
8
|
],
|
|
9
9
|
"module": "./dist/wj-master.js",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"dev": "vite",
|
|
11
|
+
"dev": "vite --force",
|
|
12
12
|
"build": "vite build",
|
|
13
13
|
"preview": "vite preview",
|
|
14
14
|
"watch": "vite build --watch"
|