bromcom-ui 2.3.23 → 2.3.24
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-013b6f5d.entry.js +1 -0
- package/dist/bromcom-ui/p-2ac10f7e.entry.js +1 -0
- package/dist/bromcom-ui/p-50580ac4.entry.js +1 -0
- package/dist/bromcom-ui/p-7c8feaee.entry.js +1 -0
- package/dist/bromcom-ui/p-8742c05d.entry.js +1 -0
- package/dist/bromcom-ui/p-907fa2b4.entry.js +1 -0
- package/dist/bromcom-ui/p-a0cf36ff.entry.js +1 -0
- package/dist/cjs/bcm-badge_10.cjs.entry.js +25 -3
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +19 -3
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +8 -4
- package/dist/cjs/bcm-checkbox.cjs.entry.js +14 -1
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +22 -4
- package/dist/cjs/bcm-collapse.cjs.entry.js +4 -2
- package/dist/cjs/bcm-switch.cjs.entry.js +28 -4
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/molecules/checkbox/checkbox-lite.js +24 -2
- package/dist/collection/components/molecules/checkbox/checkbox.css +34 -3
- package/dist/collection/components/molecules/checkbox/checkbox.js +50 -1
- package/dist/collection/components/molecules/checkbox/group.js +51 -3
- package/dist/collection/components/molecules/collapse/collapse.css +3 -0
- package/dist/collection/components/molecules/collapse/collapse.js +21 -1
- package/dist/collection/components/molecules/collapse/group.js +58 -4
- package/dist/collection/components/molecules/input/input.css +4 -0
- package/dist/collection/components/molecules/input/input.js +20 -1
- package/dist/collection/components/molecules/search/search.js +1 -1
- package/dist/collection/components/molecules/switch/switch.css +45 -1
- package/dist/collection/components/molecules/switch/switch.js +185 -4
- package/dist/collection/components/organism/form/form.js +22 -0
- package/dist/collection/utils/validation.js +1 -1
- package/dist/esm/bcm-badge_10.entry.js +26 -4
- package/dist/esm/bcm-checkbox-group.entry.js +19 -3
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -4
- package/dist/esm/bcm-checkbox.entry.js +14 -1
- package/dist/esm/bcm-collapse-group.entry.js +22 -4
- package/dist/esm/bcm-collapse.entry.js +4 -2
- package/dist/esm/bcm-switch.entry.js +28 -4
- package/dist/esm/bromcom-ui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +1 -0
- package/dist/types/components/molecules/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/molecules/checkbox/group.d.ts +2 -0
- package/dist/types/components/molecules/collapse/collapse.d.ts +1 -0
- package/dist/types/components/molecules/collapse/group.d.ts +4 -1
- package/dist/types/components/molecules/input/input.d.ts +1 -0
- package/dist/types/components/molecules/switch/switch.d.ts +11 -0
- package/dist/types/components/organism/form/form.d.ts +1 -0
- package/dist/types/components.d.ts +28 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-088e3939.entry.js +0 -1
- package/dist/bromcom-ui/p-2dce84ef.entry.js +0 -1
- package/dist/bromcom-ui/p-860cb26e.entry.js +0 -1
- package/dist/bromcom-ui/p-bbf3492f.entry.js +0 -1
- package/dist/bromcom-ui/p-c3b61cd2.entry.js +0 -1
- package/dist/bromcom-ui/p-ef860975.entry.js +0 -1
- package/dist/bromcom-ui/p-f11cabd5.entry.js +0 -1
|
@@ -27,6 +27,8 @@ export declare class BcmCheckbox {
|
|
|
27
27
|
caption: string;
|
|
28
28
|
captionError: string;
|
|
29
29
|
captionType: 'primary' | 'success' | 'warning' | 'error' | 'default';
|
|
30
|
+
captionCache: string;
|
|
31
|
+
captionTypeCache: any;
|
|
30
32
|
/**
|
|
31
33
|
* Component Events
|
|
32
34
|
*/
|
|
@@ -37,6 +39,8 @@ export declare class BcmCheckbox {
|
|
|
37
39
|
* @ComponentMethod
|
|
38
40
|
*/
|
|
39
41
|
connectedCallback(): void;
|
|
42
|
+
setClear(): Promise<void>;
|
|
43
|
+
resetCaption(): Promise<void>;
|
|
40
44
|
componentDidLoad(): void;
|
|
41
45
|
/**
|
|
42
46
|
* @desc
|
|
@@ -12,13 +12,24 @@ export declare class BcmSwitch {
|
|
|
12
12
|
hidden: boolean;
|
|
13
13
|
value: any;
|
|
14
14
|
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
noCaption: boolean;
|
|
18
|
+
caption: string;
|
|
19
|
+
captionError: string;
|
|
20
|
+
captionType: 'primary' | 'success' | 'warning' | 'error' | 'default';
|
|
21
|
+
captionCache: string;
|
|
22
|
+
captionTypeCache: any;
|
|
15
23
|
change: EventEmitter;
|
|
16
24
|
focus: EventEmitter;
|
|
17
25
|
blur: EventEmitter;
|
|
26
|
+
connectedCallback(): void;
|
|
18
27
|
handleClick(): void;
|
|
19
28
|
componentDidLoad(): void;
|
|
20
29
|
handleFocus(): void;
|
|
21
30
|
handleBlur(): void;
|
|
22
31
|
componentWillRender(): void;
|
|
32
|
+
setClear(): Promise<void>;
|
|
33
|
+
resetCaption(): Promise<void>;
|
|
23
34
|
render(): any;
|
|
24
35
|
}
|
|
@@ -23,6 +23,7 @@ export declare class BcmForm {
|
|
|
23
23
|
getInputs(): void;
|
|
24
24
|
getItemValue(item: any): any;
|
|
25
25
|
isWrapperComponent(item: string): boolean;
|
|
26
|
+
isGroupComponent(item: string): boolean;
|
|
26
27
|
userFormData(): Promise<any>;
|
|
27
28
|
handleChange(e: any): Promise<void>;
|
|
28
29
|
render(): any;
|
|
@@ -120,6 +120,8 @@ export namespace Components {
|
|
|
120
120
|
"optionType": 'default' | 'button';
|
|
121
121
|
"readOnly": boolean;
|
|
122
122
|
"required": boolean;
|
|
123
|
+
"resetCaption": () => Promise<void>;
|
|
124
|
+
"setClear": () => Promise<void>;
|
|
123
125
|
"size": 'small' | 'medium' | 'large';
|
|
124
126
|
/**
|
|
125
127
|
* Component Properties
|
|
@@ -158,6 +160,8 @@ export namespace Components {
|
|
|
158
160
|
"noCaption": boolean;
|
|
159
161
|
"optionType": 'default' | 'button';
|
|
160
162
|
"required": boolean;
|
|
163
|
+
"resetCaption": () => Promise<void>;
|
|
164
|
+
"setClear": () => Promise<void>;
|
|
161
165
|
"size": 'small' | 'medium' | 'large';
|
|
162
166
|
"value": any;
|
|
163
167
|
}
|
|
@@ -167,6 +171,7 @@ export namespace Components {
|
|
|
167
171
|
"checked": boolean;
|
|
168
172
|
"disabled": boolean;
|
|
169
173
|
"hidden": boolean;
|
|
174
|
+
"indeterminate": boolean;
|
|
170
175
|
"name": string;
|
|
171
176
|
"noCaption": boolean;
|
|
172
177
|
"readOnly": boolean;
|
|
@@ -180,11 +185,14 @@ export namespace Components {
|
|
|
180
185
|
"borderless": boolean;
|
|
181
186
|
"collapseId": string;
|
|
182
187
|
"hidden": boolean;
|
|
188
|
+
"noBorder": boolean;
|
|
183
189
|
"open": boolean;
|
|
184
190
|
}
|
|
185
191
|
interface BcmCollapseGroup {
|
|
186
192
|
"borderless": boolean;
|
|
187
193
|
"hidden": boolean;
|
|
194
|
+
"multiple": boolean;
|
|
195
|
+
"open": boolean;
|
|
188
196
|
}
|
|
189
197
|
interface BcmColorpicker {
|
|
190
198
|
/**
|
|
@@ -468,6 +476,7 @@ export namespace Components {
|
|
|
468
476
|
"name": string;
|
|
469
477
|
"noCaption": boolean;
|
|
470
478
|
"noDefaultIcon": boolean;
|
|
479
|
+
"noMargin": boolean;
|
|
471
480
|
"passwordToggle": boolean;
|
|
472
481
|
"placeholder": string;
|
|
473
482
|
"readonly": boolean;
|
|
@@ -952,13 +961,21 @@ export namespace Components {
|
|
|
952
961
|
interface BcmSwitch {
|
|
953
962
|
"activeIcon": string;
|
|
954
963
|
"activeText": string;
|
|
964
|
+
"caption": string;
|
|
965
|
+
"captionError": string;
|
|
966
|
+
"captionType": 'primary' | 'success' | 'warning' | 'error' | 'default';
|
|
955
967
|
"checked": boolean;
|
|
956
968
|
"disabled": boolean;
|
|
957
969
|
"hidden": boolean;
|
|
958
970
|
"inactiveIcon": string;
|
|
959
971
|
"inactiveText": string;
|
|
972
|
+
"label": string;
|
|
960
973
|
"name": string;
|
|
974
|
+
"noCaption": boolean;
|
|
961
975
|
"pending": boolean;
|
|
976
|
+
"required": boolean;
|
|
977
|
+
"resetCaption": () => Promise<void>;
|
|
978
|
+
"setClear": () => Promise<void>;
|
|
962
979
|
"size": 'small' | 'medium';
|
|
963
980
|
"value": any;
|
|
964
981
|
}
|
|
@@ -1924,6 +1941,7 @@ declare namespace LocalJSX {
|
|
|
1924
1941
|
"checked"?: boolean;
|
|
1925
1942
|
"disabled"?: boolean;
|
|
1926
1943
|
"hidden"?: boolean;
|
|
1944
|
+
"indeterminate"?: boolean;
|
|
1927
1945
|
"name"?: string;
|
|
1928
1946
|
"noCaption"?: boolean;
|
|
1929
1947
|
"readOnly"?: boolean;
|
|
@@ -1937,12 +1955,15 @@ declare namespace LocalJSX {
|
|
|
1937
1955
|
"borderless"?: boolean;
|
|
1938
1956
|
"collapseId"?: string;
|
|
1939
1957
|
"hidden"?: boolean;
|
|
1958
|
+
"noBorder"?: boolean;
|
|
1940
1959
|
"onBcm-collapse-open"?: (event: CustomEvent<any>) => void;
|
|
1941
1960
|
"open"?: boolean;
|
|
1942
1961
|
}
|
|
1943
1962
|
interface BcmCollapseGroup {
|
|
1944
1963
|
"borderless"?: boolean;
|
|
1945
1964
|
"hidden"?: boolean;
|
|
1965
|
+
"multiple"?: boolean;
|
|
1966
|
+
"open"?: boolean;
|
|
1946
1967
|
}
|
|
1947
1968
|
interface BcmColorpicker {
|
|
1948
1969
|
/**
|
|
@@ -2196,6 +2217,7 @@ declare namespace LocalJSX {
|
|
|
2196
2217
|
"name"?: string;
|
|
2197
2218
|
"noCaption"?: boolean;
|
|
2198
2219
|
"noDefaultIcon"?: boolean;
|
|
2220
|
+
"noMargin"?: boolean;
|
|
2199
2221
|
"onBcm-blur"?: (event: CustomEvent<any>) => void;
|
|
2200
2222
|
"onBcm-change"?: (event: CustomEvent<any>) => void;
|
|
2201
2223
|
"onBcm-clear"?: (event: CustomEvent<any>) => void;
|
|
@@ -2662,16 +2684,22 @@ declare namespace LocalJSX {
|
|
|
2662
2684
|
interface BcmSwitch {
|
|
2663
2685
|
"activeIcon"?: string;
|
|
2664
2686
|
"activeText"?: string;
|
|
2687
|
+
"caption"?: string;
|
|
2688
|
+
"captionError"?: string;
|
|
2689
|
+
"captionType"?: 'primary' | 'success' | 'warning' | 'error' | 'default';
|
|
2665
2690
|
"checked"?: boolean;
|
|
2666
2691
|
"disabled"?: boolean;
|
|
2667
2692
|
"hidden"?: boolean;
|
|
2668
2693
|
"inactiveIcon"?: string;
|
|
2669
2694
|
"inactiveText"?: string;
|
|
2695
|
+
"label"?: string;
|
|
2670
2696
|
"name"?: string;
|
|
2697
|
+
"noCaption"?: boolean;
|
|
2671
2698
|
"onBcm-blur"?: (event: CustomEvent<any>) => void;
|
|
2672
2699
|
"onBcm-change"?: (event: CustomEvent<any>) => void;
|
|
2673
2700
|
"onBcm-focus"?: (event: CustomEvent<any>) => void;
|
|
2674
2701
|
"pending"?: boolean;
|
|
2702
|
+
"required"?: boolean;
|
|
2675
2703
|
"size"?: 'small' | 'medium';
|
|
2676
2704
|
"value"?: any;
|
|
2677
2705
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,H as o,g as r}from"./p-6e0d3067.js";import{c as l}from"./p-5525b672.js";const n=class{constructor(t){s(this,t),this.openId=null,this.borderless=!1,this.hidden=!1}handleOpen(s){if(this.host===s.target.parentElement){const t=s.detail;this.host.querySelectorAll("bcm-collapse").forEach((s=>{s.open=s.id===t}))}}render(){const s=l(this.hidden?"hidden":null);return t(o,{class:s},t("slot",null))}get host(){return r(this)}};export{n as bcm_collapse_group}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as o,h as s,H as i}from"./p-6e0d3067.js";import{c as l}from"./p-5525b672.js";let r=0;const t=class{constructor(s){e(this,s),this.bcmCollapseOpen=o(this,"bcm-collapse-open",7),this.borderless=!1,this.open=!1,this.collapseId="collapse-"+ ++r,this.hidden=!1}componentDidRender(){this.open&&this.bcmCollapseOpen.emit(this.collapseId)}handleClick(){this.open=!this.open,this.open&&this.bcmCollapseOpen.emit(this.collapseId)}render(){const e=l("collapse",{borderless:this.borderless,open:this.open}),o=l(this.hidden?"hidden":null);return s(i,{class:o,id:this.collapseId},s("details",{class:e,open:this.open},s("summary",{class:"collapse-header size-2",onClick:()=>this.handleClick()},s("bcm-icon",{class:"collapse-icon",size:16,icon:this.open?"caret-down":"caret-right",type:"fill",color:"grey-10"}),s("slot",{name:"title"})),s("div",{class:"collapse-body"},s("slot",{name:"body"}))))}};t.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}*{box-sizing:border-box}::-webkit-details-marker{display:none}:host{display:block}:host(.hidden){display:none}:host(:not(:first-child)) .collapse{border-top:none}.collapse{border:1px solid var(--bcm-color-grey-5)}.collapse.borderless{border:none;border-bottom:1px solid var(--bcm-color-grey-5)}.collapse.borderless .collapse-header{border-bottom:none}.collapse.borderless .collapse-body{background-color:var(--bcm-color-grey-2);padding:0 40px 16px}.collapse:not(.open) .collapse-header{border-bottom:none}.collapse-header{display:flex;align-items:center;color:var(--bcm-color-grey-9);padding:16px;background-color:var(--bcm-color-grey-2);border-bottom:1px solid var(--bcm-color-grey-5);cursor:default}.collapse-header:focus{outline:none}.collapse-header .collapse-icon{margin-right:8px}.collapse-body{padding:16px;background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8)}';export{t as bcm_collapse}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as e,h as t,H as n}from"./p-6e0d3067.js";import{c as o}from"./p-5525b672.js";const c=class{constructor(t){i(this,t),this.change=e(this,"bcm-change",7),this.focus=e(this,"bcm-focus",7),this.blur=e(this,"bcm-blur",7),this.checked=!1,this.size="medium",this.pending=!1,this.disabled=!1,this.hidden=!1,this.value=""}handleClick(){this.checked=this.input.checked,this.value=this.checked,this.change.emit(this.checked)}componentDidLoad(){this.value=this.checked}handleFocus(){this.focus.emit()}handleBlur(){this.blur.emit()}componentWillRender(){this.pending&&(this.disabled=!0)}render(){const{checked:i,size:e,activeIcon:c,inactiveIcon:s,activeText:a,inactiveText:r,pending:l,disabled:h}=this,p=o("container",e,{"switch-checked":i,disabled:h}),d=o("wrapper",{checked:i,disabled:h}),x=i=>i&&"medium"===e,b="medium"===e,m=o(this.hidden?"hidden":null);return t(n,{class:m},t("label",{class:d},x(r)&&t("span",{class:"inactive-text size-1"},r),t("div",{class:p},b&&t("bcm-icon",{icon:c,size:14,class:"icon-active"}),t("span",{class:"handle"},l&&t("span",{class:"spinner"})),b&&t("bcm-icon",{icon:s,size:14,class:"icon-inactive"})),t("input",{onClick:()=>this.handleClick(),onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur(),ref:i=>this.input=i,checked:i,type:"checkbox",class:"switch",disabled:h}),x(a)&&t("span",{class:"active-text size-1"},a)))}};c.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block}:host(.hidden){display:none}*{box-sizing:border-box}.wrapper{display:inline-flex;align-items:center}.wrapper .active-text{color:var(--bcm-color-prime-blue-6);margin-left:4px}.wrapper .inactive-text{color:var(--bcm-color-grey-6);margin-right:4px}.container{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-color-grey-6);position:relative}.container .handle{padding:1px;position:absolute;background-color:var(--bcm-color-grey-1);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:all 0.2s ease-in-out;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 5px rgba(0, 0, 0, 0.1)}.container .icon-active{opacity:0}.container .icon-inactive{opacity:1}.container.small{width:28px;height:16px;padding:4px}.container.small .handle{width:12px;height:12px;left:4px}.container.small.switch-checked .handle{left:12px}.container.small:active:not(.disabled) .handle{width:16px}.container.small:active.switch-checked:not(.disabled) .handle{left:8px}.container.small .spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-color-grey-1);border-top-color:var(--bcm-color-grey-6);animation:spinner 1.5s linear infinite}.container.medium{width:44px;height:22px;padding:4px}.container.medium .handle{width:16px;height:16px;left:4px}.container.medium.switch-checked .handle{left:24px}.container.medium:active:not(.disabled) .handle{width:22px}.container.medium:active.switch-checked:not(.disabled) .handle{left:18px}.container.medium .spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-color-grey-1);border-top-color:var(--bcm-color-grey-6);animation:spinner 1.5s linear infinite}.container.switch-checked{background-color:var(--bcm-color-prime-blue-6)}.container.switch-checked .icon-active{color:var(--bcm-color-grey-1);opacity:1}.container.switch-checked .icon-inactive{opacity:0}.container.switch-checked .spinner{border-top-color:var(--bcm-color-prime-blue-6)}.wrapper.disabled{opacity:40%;cursor:not-allowed}@keyframes spinner{to{transform:rotate(360deg)}}input[type=checkbox]{position:absolute;width:0;height:0;opacity:0}';export{c as bcm_switch}
|