@htmlplus/element 3.2.1 → 3.2.3
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.
|
@@ -10,7 +10,7 @@ declare function Bind(): (target: Object, key: PropertyKey, descriptor: Property
|
|
|
10
10
|
interface HTMLPlusElement {
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
declare function Provider(namespace: string): (target: HTMLPlusElement, key: PropertyKey
|
|
13
|
+
declare function Provider(namespace: string): (target: HTMLPlusElement, key: PropertyKey) => void;
|
|
14
14
|
declare function Consumer(namespace: string): (target: HTMLPlusElement, key: PropertyKey) => void;
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -1329,7 +1329,7 @@ function Bind() {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
function Provider(namespace) {
|
|
1332
|
-
return function (target, key
|
|
1332
|
+
return function (target, key) {
|
|
1333
1333
|
const symbol = Symbol();
|
|
1334
1334
|
const [MAIN, SUB] = namespace.split('.');
|
|
1335
1335
|
const prefix = `${KEY}:${MAIN}`;
|
|
@@ -1338,7 +1338,7 @@ function Provider(namespace) {
|
|
|
1338
1338
|
};
|
|
1339
1339
|
const update = (instance) => {
|
|
1340
1340
|
const options = {};
|
|
1341
|
-
options.detail =
|
|
1341
|
+
options.detail = instance[key];
|
|
1342
1342
|
dispatch(instance, `${prefix}:update`, options);
|
|
1343
1343
|
if (!SUB)
|
|
1344
1344
|
return;
|
|
@@ -1353,7 +1353,7 @@ function Provider(namespace) {
|
|
|
1353
1353
|
};
|
|
1354
1354
|
const onPresence = (event) => {
|
|
1355
1355
|
event.stopPropagation();
|
|
1356
|
-
event.detail(this,
|
|
1356
|
+
event.detail(this, this[key]);
|
|
1357
1357
|
};
|
|
1358
1358
|
on(this, `${prefix}:presence`, onPresence);
|
|
1359
1359
|
cleanups(this).set(prefix, cleanup);
|
package/dist/client.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as Bind, C as Config, a as ConfigOptions, n as Consumer, D as Debounce, p as Direction, E as Element, v as Event, r as EventEmitter, u as EventOptions, H as Host, I as IsRTL, w as Listen, L as ListenOptions, M as Method, y as Property, x as PropertyOptions, P as Provider, Q as Query, z as QueryAll, S as Slots, A as State, F as Style, W as Watch, c as classes, d as direction, b as dispatch, g as getConfig, h as host, i as isCSSColor, f as isRTL, k as off, o as on, q as query, j as queryAll, m as setConfig, s as slots, t as toCSSColor, e as toCSSUnit, l as toUnit } from './client-
|
|
1
|
+
export { B as Bind, C as Config, a as ConfigOptions, n as Consumer, D as Debounce, p as Direction, E as Element, v as Event, r as EventEmitter, u as EventOptions, H as Host, I as IsRTL, w as Listen, L as ListenOptions, M as Method, y as Property, x as PropertyOptions, P as Provider, Q as Query, z as QueryAll, S as Slots, A as State, F as Style, W as Watch, c as classes, d as direction, b as dispatch, g as getConfig, h as host, i as isCSSColor, f as isRTL, k as off, o as on, q as query, j as queryAll, m as setConfig, s as slots, t as toCSSColor, e as toCSSUnit, l as toUnit } from './client-B2DGXsxR.js';
|
package/dist/client.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { B as Bind, C as Consumer, D as Debounce, m as Direction, E as Element, n as Event, H as Host, I as IsRTL, L as Listen, M as Method, p as Property, P as Provider, Q as Query, r as QueryAll, S as Slots, u as State, v as Style, W as Watch, c as classes, d as direction, a as dispatch, g as getConfig, h as host, i as isCSSColor, e as isRTL, j as off, o as on, q as query, f as queryAll, l as setConfig, s as slots, t as toCSSColor, b as toCSSUnit, k as toUnit } from './client-
|
|
1
|
+
export { B as Bind, C as Consumer, D as Debounce, m as Direction, E as Element, n as Event, H as Host, I as IsRTL, L as Listen, M as Method, p as Property, P as Provider, Q as Query, r as QueryAll, S as Slots, u as State, v as Style, W as Watch, c as classes, d as direction, a as dispatch, g as getConfig, h as host, i as isCSSColor, e as isRTL, j as off, o as on, q as query, f as queryAll, l as setConfig, s as slots, t as toCSSColor, b as toCSSUnit, k as toUnit } from './client-aQIGQIWV.js';
|
|
2
2
|
import 'change-case';
|
|
3
3
|
import './constants.js';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { G as attributes, J as html, K as styles } from './client-
|
|
1
|
+
export { G as attributes, J as html, K as styles } from './client-B2DGXsxR.js';
|
package/dist/internal.js
CHANGED