@htmlplus/element 2.13.1 → 2.13.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.
@@ -1,5 +1,5 @@
1
1
  import { kebabCase, camelCase, pascalCase } from 'change-case';
2
- import { API_HOST, STATIC_STYLE, STATIC_TAG, API_STACKS, API_REQUEST, API_CONNECTED, LIFECYCLE_UPDATE, API_STYLE, LIFECYCLE_UPDATED, API_RENDER_COMPLETED, METHOD_RENDER, TYPE_BOOLEAN, TYPE_NUMBER, TYPE_NULL, TYPE_DATE, TYPE_ARRAY, TYPE_OBJECT, TYPE_UNDEFINED, LIFECYCLE_CONNECTED, LIFECYCLE_DISCONNECTED, KEY, API_INSTANCE, MAPPER, LIFECYCLE_CONSTRUCTED, LIFECYCLE_ADOPTED, LIFECYCLE_LOADED } from './constants.js';
2
+ import { API_HOST, STATIC_TAG, API_STACKS, API_REQUEST, API_CONNECTED, LIFECYCLE_UPDATE, STATIC_STYLE, API_STYLE, LIFECYCLE_UPDATED, API_RENDER_COMPLETED, METHOD_RENDER, TYPE_BOOLEAN, TYPE_NUMBER, TYPE_NULL, TYPE_DATE, TYPE_ARRAY, TYPE_OBJECT, TYPE_UNDEFINED, LIFECYCLE_CONNECTED, LIFECYCLE_DISCONNECTED, KEY, API_INSTANCE, MAPPER, LIFECYCLE_CONSTRUCTED, LIFECYCLE_ADOPTED, LIFECYCLE_LOADED } from './constants.js';
3
3
 
4
4
  const appendToMethod = (target, key, handler) => {
5
5
  // Gets the previous function
@@ -264,10 +264,6 @@ const getFramework = (target) => {
264
264
  return 'angular';
265
265
  };
266
266
 
267
- const getStyles = (target) => {
268
- return target.constructor[STATIC_STYLE] ?? target[STATIC_STYLE];
269
- };
270
-
271
267
  const getTag = (target) => {
272
268
  return target.constructor[STATIC_TAG] ?? target[STATIC_TAG];
273
269
  };
@@ -1125,7 +1121,7 @@ const request = (target, name, previous, callback) => {
1125
1121
  });
1126
1122
  // TODO
1127
1123
  (() => {
1128
- const raw = getStyles(target);
1124
+ const raw = target.constructor[STATIC_STYLE];
1129
1125
  if (!raw)
1130
1126
  return;
1131
1127
  const regex1 = /this-([\w-]+)(?:-([\w-]+))?/g;
package/client.js CHANGED
@@ -1,3 +1,3 @@
1
- export { B as Bind, C as Consumer, D as Direction, E as Element, k as Event, H as Host, I as IsRTL, L as Listen, M as Method, l as Property, P as Provider, Q as Query, m as QueryAll, S as Slots, n as State, W as Watch, c as classes, d as direction, a as dispatch, g as getConfig, h as host, i as isCSSColor, b as isRTL, f as off, o as on, q as query, e as queryAll, j as setConfig, s as slots, t as toUnit } from './client-By_MTZkm.js';
1
+ export { B as Bind, C as Consumer, D as Direction, E as Element, k as Event, H as Host, I as IsRTL, L as Listen, M as Method, l as Property, P as Provider, Q as Query, m as QueryAll, S as Slots, n as State, W as Watch, c as classes, d as direction, a as dispatch, g as getConfig, h as host, i as isCSSColor, b as isRTL, f as off, o as on, q as query, e as queryAll, j as setConfig, s as slots, t as toUnit } from './client-B7RqkVf0.js';
2
2
  import 'change-case';
3
3
  import './constants.js';
package/internal.js CHANGED
@@ -1,3 +1,3 @@
1
- export { p as attributes, r as html, u as styles } from './client-By_MTZkm.js';
1
+ export { p as attributes, r as html, u as styles } from './client-B7RqkVf0.js';
2
2
  import 'change-case';
3
3
  import './constants.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlplus/element",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "author": "Masood Abdolian <m.abdolian@gmail.com>",