wj-elements 0.1.77 → 0.1.78

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.
@@ -164,20 +164,20 @@ class WjePermissionsApi {
164
164
  this._permissionKey = "permissions";
165
165
  }
166
166
  static set permissionKey(value) {
167
- this._permissionKey = value || "permissions";
167
+ WjePermissionsApi._permissionKey = value || "permissions";
168
168
  }
169
169
  static get permissionKey() {
170
- return this._permissionKey;
170
+ return WjePermissionsApi._permissionKey;
171
171
  }
172
172
  static set permissions(value) {
173
- window.localStorage.setItem(this._permissionKey, value);
173
+ window.localStorage.setItem(WjePermissionsApi.permissionKey, value);
174
174
  }
175
175
  /**
176
176
  * Returns the permissions.
177
177
  * @returns {*}
178
178
  */
179
179
  static get permissions() {
180
- return window.localStorage.getItem(this._permissionKey) || [];
180
+ return window.localStorage.getItem(WjePermissionsApi.permissionKey) || [];
181
181
  }
182
182
  /**
183
183
  * Checks if the permission is included.
package/dist/wje-icon.js CHANGED
@@ -110,7 +110,7 @@ const getName = (iconName) => {
110
110
  };
111
111
  const getNamedUrl = (iconName, filled = false) => {
112
112
  const path = `${filled ? "filled" : "outline"}/${iconName}.svg`;
113
- let url = new URL("http://localhost:5174/dist/assets/img/icons/" + path);
113
+ let url = new URL(process.env.VITE_API_URL + process.env.VITE_ASSETS_URL + path);
114
114
  return url.href;
115
115
  };
116
116
  const styles = '/*\n[ WJ Icon ]\n*/\n\n:host {\n width: var(--wje-icon-size);\n height: var(--wje-icon-size);\n display: block;\n}\n\n.native-icon {\n display: flex;\n align-items: center;\n}\n\nsvg {\n width: 100%;\n height: 100%;\n stroke-width: var(--wje-icon-stroke);\n color: var(--wje-icon-color);\n}\n\n/*STROKE*/\n:host([stroke="1"]) {\n --wje-icon-stroke: 1;\n}\n\n:host([stroke="1.25"]) {\n --wje-icon-stroke: 1.25;\n}\n\n:host([stroke="1.5"]) {\n --wje-icon-stroke: 1.5;\n}\n\n:host([stroke="1.75"]) {\n --wje-icon-stroke: 1.75;\n}\n\n:host([stroke="2"]) {\n --wje-icon-stroke: 2;\n}\n\n/*SIZE*/\n:host([size="2x-small"]) {\n --wje-icon-size: var(--wje-size-2x-small);\n}\n\n:host([size="x-small"]) {\n --wje-icon-size: var(--wje-size-x-small);\n}\n\n:host([size="small"]) {\n --wje-icon-size: var(--wje-size-small);\n}\n\n:host([size="medium"]) {\n --wje-icon-size: var(--wje-size-medium);\n}\n\n:host([size="large"]) {\n --wje-icon-size: var(--wje-size-large);\n}\n\n:host([size="x-large"]) {\n --wje-icon-size: var(--wje-size-x-large);\n}\n\n:host([size="2x-large"]) {\n --wje-icon-size: var(--wje-size-2x-large);\n}\n\n:host([size="3x-large"]) {\n --wje-icon-size: var(--wje-size-3x-large);\n}\n\n:host([size="4x-large"]) {\n --wje-icon-size: var(--wje-size-4x-large);\n}\n\n/*COLOR*/\n:host([color="primary"]) .native-icon {\n color: var(--wje-color-primary-9);\n}\n\n:host([color="complete"]) .native-icon {\n color: var(--wje-color-complete-9);\n}\n\n:host([color="success"]) .native-icon {\n color: var(--wje-color-success-9);\n}\n\n:host([color="warning"]) .native-icon {\n color: var(--wje-color-warning-9);\n}\n\n:host([color="danger"]) .native-icon {\n color: var(--wje-color-danger-9);\n}\n\n:host([color="info"]) .native-icon {\n color: var(--wje-color-info-9);\n}\n\n:host([color="menu"]) .native-icon {\n color: var(--wje-color-contrast-9);\n}';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wj-elements",
3
3
  "description": "WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.",
4
- "version": "0.1.77",
4
+ "version": "0.1.78",
5
5
  "homepage": "https://github.com/lencys/wj-elements",
6
6
  "author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
7
7
  "license": "MIT",