bromcom-ui 2.4.34 → 2.4.37
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-055022f2.entry.js → p-0a24018a.entry.js} +1 -1
- package/dist/bromcom-ui/p-0f32662d.js +1 -0
- package/dist/bromcom-ui/p-20d1fe2f.js +1 -0
- package/dist/bromcom-ui/{p-34a197df.js → p-3ccd76e6.js} +1 -1
- package/dist/bromcom-ui/{p-6c00e018.entry.js → p-5ebc9d83.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e71116e9.entry.js → p-8d11a373.entry.js} +1 -1
- package/dist/bromcom-ui/p-a36f3cae.entry.js +1 -0
- package/dist/bromcom-ui/p-a437dce1.entry.js +1 -0
- package/dist/bromcom-ui/{p-677fc81c.entry.js → p-bbd684a5.entry.js} +1 -1
- package/dist/bromcom-ui/p-bd5c8891.entry.js +1 -0
- package/dist/bromcom-ui/{p-971c4e35.entry.js → p-c91af148.entry.js} +1 -1
- package/dist/bromcom-ui/{p-afc38f38.entry.js → p-ca7337d8.entry.js} +1 -1
- package/dist/cjs/bcm-button_12.cjs.entry.js +37 -26
- package/dist/cjs/bcm-icon-2_2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popover-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +1 -1
- package/dist/cjs/bcm-select.cjs.entry.js +1 -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-acd42354.js → generate-56162a07.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/{stepper-states-82ab195a.js → stepper-states-83349125.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 +1 -1
- package/dist/collection/components/molecules/tooltip/tooltip-box.css +1 -1
- package/dist/collection/components/organism/form/form.js +20 -1
- package/dist/collection/components/organism/list/list.js +27 -22
- package/dist/collection/decorators/json-parse-decarator.js +15 -2
- package/dist/collection/templates/input-template.js +5 -2
- package/dist/esm/bcm-button_12.entry.js +37 -26
- package/dist/esm/bcm-icon-2_2.entry.js +2 -2
- package/dist/esm/bcm-popconfirm-box.entry.js +10 -2
- package/dist/esm/bcm-popconfirm.entry.js +1 -1
- package/dist/esm/bcm-popover-box.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +1 -1
- package/dist/esm/bcm-select.entry.js +1 -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-a10528eb.js → generate-34fc2887.js} +1 -1
- package/dist/esm/json-parse-decarator-c6372800.js +34 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{stepper-states-2ae7dca5.js → stepper-states-ca00e945.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/form/form.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +1 -3
- package/dist/types/components.d.ts +5 -0
- package/dist/types/decorators/json-parse-decarator.d.ts +1 -1
- package/dist/types/templates/input-template.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-119f660a.js +0 -1
- package/dist/bromcom-ui/p-1550abeb.entry.js +0 -1
- package/dist/bromcom-ui/p-b9f40215.entry.js +0 -1
- package/dist/bromcom-ui/p-c11595ee.entry.js +0 -1
- package/dist/bromcom-ui/p-c7a6f7d8.js +0 -1
- package/dist/esm/json-parse-decarator-8563927a.js +0 -21
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./p-74df82e2.js";import{s as n}from"./p-6d018a8f.js";function s(s){return(o,r)=>{const{connectedCallback:i}=o;o.connectedCallback=function(){const o=t(this);if(o[r]){const t=n((()=>o.hasAttribute(s)?o.getAttribute(s).valueOf():o[s].valueOf()),null);t&&(this[r]=n((()=>"string"==typeof t?JSON.parse(t):t),[]),o.removeAttribute(s))}return i&&i.call(this)}}}export{s as J}
|
|
@@ -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 };
|