bromcom-ui 2.4.33 → 2.4.36
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/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-20d1fe2f.js +1 -0
- package/dist/bromcom-ui/{p-e62a5e66.entry.js → p-3c80b3d1.entry.js} +1 -1
- package/dist/bromcom-ui/p-4692fcb5.entry.js +1 -0
- package/dist/bromcom-ui/p-86e8b9f9.js +1 -0
- package/dist/bromcom-ui/p-aa697b33.entry.js +1 -0
- package/dist/bromcom-ui/{p-68d9dd67.js → p-aec76b3f.js} +1 -1
- package/dist/bromcom-ui/p-bd5c8891.entry.js +1 -0
- package/dist/bromcom-ui/{p-3ed8c65b.entry.js → p-c932bf84.entry.js} +1 -1
- package/dist/bromcom-ui/p-dca52f7c.entry.js +1 -0
- package/dist/bromcom-ui/p-e1aca7d8.js +1 -0
- package/dist/bromcom-ui/p-f3f44735.entry.js +1 -0
- package/dist/cjs/{bcm-button_12.cjs.entry.js → bcm-button_16.cjs.entry.js} +359 -23
- package/dist/cjs/bcm-icon-2_2.cjs.entry.js +5 -6
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -2
- package/dist/cjs/bcm-select-box.cjs.entry.js +38 -0
- package/dist/cjs/bcm-select.cjs.entry.js +6 -1
- package/dist/cjs/bcm-stepper.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag-2.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{generate-84dce6ea.js → generate-fd0d9bf7.js} +1 -1
- package/dist/cjs/{json-parse-decarator-89653e78.js → json-parse-decarator-c4de75ac.js} +15 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{color-helper-04636625.js → property-decorators-c405d518.js} +35 -0
- package/dist/cjs/{stepper-states-c11f78f7.js → stepper-states-f72dd3a0.js} +1 -1
- package/dist/collection/components/atoms/text/text.js +21 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +1 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +28 -0
- package/dist/collection/components/molecules/popover/popover-box.css +1 -1
- package/dist/collection/components/molecules/select/select.js +6 -1
- package/dist/collection/components/molecules/tooltip/tooltip-box.css +1 -1
- package/dist/collection/components/organism/list/list.js +13 -13
- package/dist/collection/decorators/json-parse-decarator.js +15 -2
- package/dist/esm/{bcm-button_12.entry.js → bcm-button_16.entry.js} +353 -21
- package/dist/esm/bcm-icon-2_2.entry.js +3 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +10 -2
- package/dist/esm/bcm-select-box.entry.js +34 -0
- package/dist/esm/bcm-select.entry.js +6 -1
- package/dist/esm/bcm-stepper.entry.js +3 -3
- package/dist/esm/bcm-tag-2.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +1 -1
- package/dist/esm/{generate-5aa9d89a.js → generate-ab40fc9f.js} +1 -1
- package/dist/esm/json-parse-decarator-c6372800.js +34 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{color-helper-ff728802.js → property-decorators-d09918fe.js} +35 -1
- package/dist/esm/{stepper-states-525936b7.js → stepper-states-6e6fed70.js} +1 -1
- package/dist/types/components/atoms/text/text.d.ts +3 -1
- package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +2 -0
- package/dist/types/components/organism/list/list.d.ts +0 -2
- package/dist/types/components.d.ts +3 -0
- package/dist/types/decorators/json-parse-decarator.d.ts +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-052ac20b.entry.js +0 -1
- package/dist/bromcom-ui/p-072c24b5.js +0 -1
- package/dist/bromcom-ui/p-40b3e4b9.js +0 -1
- package/dist/bromcom-ui/p-43a2dc90.js +0 -1
- package/dist/bromcom-ui/p-61385f1e.entry.js +0 -1
- package/dist/bromcom-ui/p-9330c810.entry.js +0 -1
- package/dist/bromcom-ui/p-a6b11a46.entry.js +0 -1
- package/dist/bromcom-ui/p-a8800df8.entry.js +0 -1
- package/dist/bromcom-ui/p-c7a6f7d8.js +0 -1
- package/dist/bromcom-ui/p-d1dc11c5.entry.js +0 -1
- package/dist/bromcom-ui/p-d3c5255a.entry.js +0 -1
- package/dist/bromcom-ui/p-d665b89d.entry.js +0 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -98
- package/dist/cjs/bcm-popover-box.cjs.entry.js +0 -78
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -95
- package/dist/cjs/bcm-select-box_2.cjs.entry.js +0 -138
- package/dist/cjs/property-decorators-476df1c5.js +0 -38
- package/dist/esm/bcm-popconfirm.entry.js +0 -94
- package/dist/esm/bcm-popover-box.entry.js +0 -74
- package/dist/esm/bcm-popover.entry.js +0 -91
- package/dist/esm/bcm-select-box_2.entry.js +0 -133
- package/dist/esm/json-parse-decarator-8563927a.js +0 -21
- package/dist/esm/property-decorators-681ae42e.js +0 -36
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { g as getElement } from './index-2a0ccf17.js';
|
|
2
|
-
import { s as snq } from './snq.es5-946822b8.js';
|
|
3
|
-
|
|
4
|
-
function JsonParse(attribute) {
|
|
5
|
-
return (proto, propName) => {
|
|
6
|
-
const { connectedCallback } = proto;
|
|
7
|
-
proto.connectedCallback = function () {
|
|
8
|
-
const host = getElement(this);
|
|
9
|
-
if (host[propName]) {
|
|
10
|
-
const value = snq(() => host.hasAttribute(attribute) ? host.getAttribute(attribute).valueOf() : host[attribute].valueOf(), null);
|
|
11
|
-
if (value) {
|
|
12
|
-
this[propName] = snq(() => typeof value === 'string' ? JSON.parse(value) : value, []);
|
|
13
|
-
host.removeAttribute(attribute);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return connectedCallback && connectedCallback.call(this);
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { JsonParse as J };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { g as getElement } from './index-2a0ccf17.js';
|
|
2
|
-
|
|
3
|
-
function AttrReflect(attribute) {
|
|
4
|
-
return (proto, propName) => {
|
|
5
|
-
const { connectedCallback } = proto;
|
|
6
|
-
proto.connectedCallback = function () {
|
|
7
|
-
const host = getElement(this);
|
|
8
|
-
registerAttrReflect(this, host, propName, attribute);
|
|
9
|
-
return connectedCallback && connectedCallback.call(this);
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function registerAttrReflect(component, element, propName, attribute) {
|
|
14
|
-
if ("IntersectionObserver" in window) {
|
|
15
|
-
let io = new IntersectionObserver((data) => {
|
|
16
|
-
if (data[0].isIntersecting) {
|
|
17
|
-
initProps(component, element, propName, attribute);
|
|
18
|
-
io.disconnect();
|
|
19
|
-
io = null;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
io.observe(element);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
// fall back to setTimeout for Safari and IE
|
|
26
|
-
setTimeout(() => {
|
|
27
|
-
initProps(component, element, propName, attribute);
|
|
28
|
-
}, 300);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function initProps(component, element, propName, attribute) {
|
|
32
|
-
component[propName] = element[attribute];
|
|
33
|
-
element.removeAttribute(attribute);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { AttrReflect as A };
|