bromcom-ui 2.3.54 → 2.3.58
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.css +0 -0
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/index.esm.js +0 -0
- package/dist/bromcom-ui/p-12493dbc.entry.js +1 -0
- package/dist/bromcom-ui/{p-a18a0cc4.entry.js → p-13d038f5.entry.js} +1 -1
- package/dist/bromcom-ui/p-1429a2b4.js +1 -0
- package/dist/bromcom-ui/{p-4b7f14ed.entry.js → p-20d03fa1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-774ff4d9.entry.js → p-30c1cd7f.entry.js} +1 -1
- package/dist/bromcom-ui/p-37750343.entry.js +1 -0
- package/dist/bromcom-ui/p-3f797656.entry.js +1 -0
- package/dist/bromcom-ui/{p-4396ee3b.entry.js → p-4092f5f1.entry.js} +1 -1
- package/dist/bromcom-ui/p-4a41ef80.entry.js +1 -0
- package/dist/bromcom-ui/p-4cb268d2.js +1 -0
- package/dist/bromcom-ui/p-53e9b679.entry.js +1 -0
- package/dist/bromcom-ui/{p-09753e05.js → p-554d326a.js} +1 -1
- package/dist/bromcom-ui/p-68ff64de.js +1 -0
- package/dist/bromcom-ui/p-7238d22f.entry.js +1 -0
- package/dist/bromcom-ui/p-7f1cd976.entry.js +1 -0
- package/dist/bromcom-ui/p-811c24d7.entry.js +1 -0
- package/dist/bromcom-ui/p-8851e01e.entry.js +1 -0
- package/dist/bromcom-ui/{p-1a2724a0.entry.js → p-92e3e240.entry.js} +1 -1
- package/dist/bromcom-ui/p-9ffff762.entry.js +1 -0
- package/dist/bromcom-ui/p-a6ef098a.entry.js +1 -0
- package/dist/bromcom-ui/p-af7e4741.entry.js +1 -0
- package/dist/bromcom-ui/{p-0d336381.entry.js → p-afb68492.entry.js} +1 -1
- package/dist/bromcom-ui/p-bbf99620.entry.js +1 -0
- package/dist/bromcom-ui/p-bc50aa86.entry.js +1 -0
- package/dist/bromcom-ui/p-e21a8f2d.entry.js +1 -0
- package/dist/bromcom-ui/p-e450ebda.entry.js +1 -0
- package/dist/bromcom-ui/p-e8307da9.entry.js +1 -0
- package/dist/bromcom-ui/{p-26b3d5d0.entry.js → p-e8771d32.entry.js} +1 -1
- package/dist/bromcom-ui/p-f067821e.entry.js +1 -0
- package/dist/bromcom-ui/p-f12743d8.entry.js +1 -0
- package/dist/bromcom-ui/p-ff5e57d3.entry.js +1 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +7 -26
- package/dist/cjs/bcm-badge.cjs.entry.js +50 -0
- package/dist/cjs/{bcm-badge_20.cjs.entry.js → bcm-button_11.cjs.entry.js} +1209 -2835
- package/dist/cjs/bcm-checkbox-lite_4.cjs.entry.js +291 -0
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
- package/dist/cjs/{bcm-datetime-picker_2.cjs.entry.js → bcm-datetime-picker.cjs.entry.js} +3 -137
- package/dist/cjs/bcm-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/bcm-list-item_2.cjs.entry.js +197 -0
- package/dist/cjs/bcm-list-select.cjs.entry.js +658 -0
- package/dist/cjs/bcm-list.cjs.entry.js +1204 -0
- package/dist/cjs/{bcm-empty_6.cjs.entry.js → bcm-listbox_5.cjs.entry.js} +10 -77
- package/dist/cjs/bcm-modal.cjs.entry.js +197 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/bcm-pulldown-group_2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-pulldown.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +124 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +104 -0
- package/dist/cjs/bcm-select.cjs.entry.js +68 -8
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +51 -0
- package/dist/cjs/bcm-tab.cjs.entry.js +72 -0
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +43 -0
- package/dist/cjs/bcm-tabs.cjs.entry.js +361 -0
- package/dist/cjs/bcm-text.cjs.entry.js +28 -0
- package/dist/cjs/bcm-upload.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{element-dragger-36fcb296.js → element-dragger-4a91c708.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/types-37c8ced6.js +16 -0
- package/dist/cjs/types-f53bc841.js +19 -0
- package/dist/cjs/{utils-43fda566.js → utils-60414768.js} +25 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/label/label.css +70 -0
- package/dist/collection/components/atoms/label/label.js +203 -0
- package/dist/collection/components/molecules/checkbox/group.js +19 -6
- package/dist/collection/components/molecules/input/input.js +39 -7
- package/dist/collection/components/molecules/list/list-item.css +1 -0
- package/dist/collection/components/molecules/list/list-select.css +10 -5
- package/dist/collection/components/molecules/list/list-select.js +232 -34
- package/dist/collection/components/molecules/list/list.css +24 -2
- package/dist/collection/components/molecules/list/list.js +391 -119
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +1 -0
- package/dist/collection/components/molecules/popconfirm/popconfirm.css +1 -0
- package/dist/collection/components/molecules/popover/popover-box.css +1 -0
- package/dist/collection/components/molecules/popover/popover.css +1 -0
- package/dist/collection/components/molecules/radio/group.js +19 -6
- package/dist/collection/components/molecules/search/search.js +2 -2
- package/dist/collection/components/molecules/select/select.js +85 -12
- package/dist/collection/components/molecules/switch/switch.css +0 -1
- package/dist/collection/components/molecules/switch/switch.js +20 -7
- package/dist/collection/components/molecules/textarea/textarea.css +4 -1
- package/dist/collection/components/molecules/textarea/textarea.js +33 -17
- package/dist/collection/components/molecules/tooltip/tooltip-box.css +1 -0
- package/dist/collection/components/molecules/tooltip/tooltip.css +1 -0
- package/dist/collection/components/organism/colorpicker/colorpicker.js +19 -6
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/organism/form/form.js +5 -4
- package/dist/collection/components/organism/listbox/listbox.js +27 -17
- package/dist/collection/helper/color-helper.js +33 -0
- package/dist/collection/helper/generate.js +47 -0
- package/dist/collection/helper/number-helper.js +10 -0
- package/dist/collection/helper/string-helper.js +21 -0
- package/dist/collection/helper/validators.js +21 -0
- package/dist/collection/models/bcm-types.js +1 -0
- package/dist/collection/models/bcm.js +451 -0
- package/dist/collection/templates/caption-template.js +22 -0
- package/dist/collection/templates/label-template.js +16 -0
- package/dist/collection/templates/slot-template.js +6 -0
- package/dist/collection/utils/utils.js +24 -0
- package/dist/esm/bcm-alert.entry.js +1 -20
- package/dist/esm/bcm-badge.entry.js +46 -0
- package/dist/esm/{bcm-badge_20.entry.js → bcm-button_11.entry.js} +1204 -2821
- package/dist/esm/bcm-checkbox-lite_4.entry.js +284 -0
- package/dist/esm/bcm-colorpicker.entry.js +3 -3
- package/dist/esm/{bcm-datetime-picker_2.entry.js → bcm-datetime-picker.entry.js} +4 -137
- package/dist/esm/bcm-dropdown.entry.js +1 -1
- package/dist/esm/bcm-list-item_2.entry.js +192 -0
- package/dist/esm/bcm-list-select.entry.js +654 -0
- package/dist/esm/bcm-list.entry.js +1200 -0
- package/dist/esm/{bcm-empty_6.entry.js → bcm-listbox_5.entry.js} +12 -78
- package/dist/esm/bcm-modal.entry.js +193 -0
- package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
- package/dist/esm/bcm-popconfirm.entry.js +2 -2
- package/dist/esm/bcm-popover-box.entry.js +1 -1
- package/dist/esm/bcm-popover.entry.js +2 -2
- package/dist/esm/bcm-pulldown-group_2.entry.js +1 -1
- package/dist/esm/bcm-pulldown.entry.js +1 -1
- package/dist/esm/bcm-radio-group.entry.js +120 -0
- package/dist/esm/bcm-radio.entry.js +100 -0
- package/dist/esm/bcm-select.entry.js +68 -8
- package/dist/esm/bcm-tab-pane.entry.js +47 -0
- package/dist/esm/bcm-tab.entry.js +68 -0
- package/dist/esm/bcm-tabs-content.entry.js +39 -0
- package/dist/esm/bcm-tabs.entry.js +357 -0
- package/dist/esm/bcm-text.entry.js +24 -0
- package/dist/esm/bcm-upload.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +1 -1
- package/dist/esm/{element-dragger-03ac2a5e.js → element-dragger-97a8f373.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/css-shim.js +0 -0
- package/dist/esm/types-4b11eac9.js +28 -0
- package/dist/esm/types-911a8837.js +21 -0
- package/dist/esm/{utils-b7fba7c4.js → utils-de9aee67.js} +25 -1
- package/dist/types/assets/icons/index.d.ts +0 -0
- package/dist/types/assets/icons/index.example.d.ts +0 -0
- package/dist/types/components/atoms/avatar/avatar.d.ts +0 -0
- package/dist/types/components/atoms/badge/badge.d.ts +0 -0
- package/dist/types/components/atoms/button/button.d.ts +0 -0
- package/dist/types/components/atoms/divider/divider.d.ts +0 -0
- package/dist/types/components/atoms/icon/icon.d.ts +0 -0
- package/dist/types/components/atoms/icon/types.d.ts +0 -0
- package/dist/types/components/atoms/label/label.d.ts +16 -0
- package/dist/types/components/atoms/tag/tag.d.ts +0 -0
- package/dist/types/components/atoms/text/text.d.ts +0 -0
- package/dist/types/components/molecules/card/card-footer.d.ts +0 -0
- package/dist/types/components/molecules/card/card-header.d.ts +0 -0
- package/dist/types/components/molecules/card/card.d.ts +0 -0
- package/dist/types/components/molecules/checkbox/checkbox.d.ts +0 -0
- package/dist/types/components/molecules/checkbox/group.d.ts +1 -0
- package/dist/types/components/molecules/input/input.d.ts +2 -0
- package/dist/types/components/molecules/list/list-select.d.ts +24 -4
- package/dist/types/components/molecules/list/list.d.ts +13 -3
- package/dist/types/components/molecules/radio/group.d.ts +1 -0
- package/dist/types/components/molecules/radio/radio.d.ts +0 -0
- package/dist/types/components/molecules/select/group.d.ts +0 -0
- package/dist/types/components/molecules/select/option.d.ts +0 -0
- package/dist/types/components/molecules/select/select.d.ts +1 -0
- package/dist/types/components/molecules/switch/switch.d.ts +1 -0
- package/dist/types/components/molecules/textarea/textarea.d.ts +3 -2
- package/dist/types/components/organism/colorpicker/colorpicker.d.ts +1 -0
- package/dist/types/components/organism/listbox/listbox.d.ts +1 -0
- package/dist/types/components.d.ts +95 -12
- package/dist/types/global/variables/colors.d.ts +0 -0
- package/dist/types/helper/color-helper.d.ts +9 -0
- package/dist/types/helper/generate.d.ts +10 -0
- package/dist/types/helper/number-helper.d.ts +9 -0
- package/dist/types/helper/string-helper.d.ts +20 -0
- package/dist/types/helper/validators.d.ts +8 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/models/bcm-types.d.ts +19 -0
- package/dist/types/models/bcm.d.ts +447 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -0
- package/dist/types/templates/caption-template.d.ts +12 -0
- package/dist/types/templates/label-template.d.ts +12 -0
- package/dist/types/templates/slot-template.d.ts +8 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +0 -0
- package/loader/index.cjs.js +0 -0
- package/loader/index.d.ts +0 -0
- package/loader/index.es2017.js +0 -0
- package/loader/index.js +0 -0
- package/loader/package.json +0 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-013b6f5d.entry.js +0 -1
- package/dist/bromcom-ui/p-0532e299.entry.js +0 -1
- package/dist/bromcom-ui/p-0aa53bdb.entry.js +0 -1
- package/dist/bromcom-ui/p-2c1ee381.entry.js +0 -1
- package/dist/bromcom-ui/p-607bc9b3.entry.js +0 -1
- package/dist/bromcom-ui/p-6355c903.entry.js +0 -1
- package/dist/bromcom-ui/p-6bd805f1.entry.js +0 -1
- package/dist/bromcom-ui/p-77a480ff.entry.js +0 -1
- package/dist/bromcom-ui/p-a88256f2.entry.js +0 -1
- package/dist/bromcom-ui/p-b92324e7.js +0 -1
- package/dist/bromcom-ui/p-ba219861.entry.js +0 -1
- package/dist/bromcom-ui/p-cdfd9ba0.entry.js +0 -1
- package/dist/bromcom-ui/p-cf6b0656.entry.js +0 -1
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -273
- package/dist/cjs/bcm-checkbox.cjs.entry.js +0 -143
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -86
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -136
- package/dist/cjs/bcm-tooltip-box.cjs.entry.js +0 -36
- package/dist/esm/bcm-checkbox-group.entry.js +0 -269
- package/dist/esm/bcm-checkbox.entry.js +0 -139
- package/dist/esm/bcm-switch.entry.js +0 -82
- package/dist/esm/bcm-textarea.entry.js +0 -132
- package/dist/esm/bcm-tooltip-box.entry.js +0 -32
|
@@ -4,70 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ce8878ec.js');
|
|
6
6
|
const index$1 = require('./index-2f62bdaf.js');
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 'image' prop predefined values
|
|
11
|
-
*/
|
|
12
|
-
var ImageProps;
|
|
13
|
-
(function (ImageProps) {
|
|
14
|
-
ImageProps["default"] = "default.svg";
|
|
15
|
-
ImageProps["simple"] = "simple.svg";
|
|
16
|
-
})(ImageProps || (ImageProps = {}));
|
|
17
|
-
/**
|
|
18
|
-
* 'size' prop predefined values
|
|
19
|
-
*/
|
|
20
|
-
var SizeProps;
|
|
21
|
-
(function (SizeProps) {
|
|
22
|
-
SizeProps["small"] = "small";
|
|
23
|
-
SizeProps["medium"] = "medium";
|
|
24
|
-
SizeProps["big"] = "big";
|
|
25
|
-
})(SizeProps || (SizeProps = {}));
|
|
26
|
-
|
|
27
|
-
const emptyCss = "@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:block}:host(.hidden){display:none}.empty.small{max-width:100px}.empty.medium{max-width:140px}.empty.big{max-width:200px}.text{font-size:14px;color:var(--bcm-color-grey-8)}.content{text-align:center}img{max-width:100%}";
|
|
28
|
-
|
|
29
|
-
const BcmEmpty = class {
|
|
30
|
-
constructor(hostRef) {
|
|
31
|
-
index.registerInstance(this, hostRef);
|
|
32
|
-
/**
|
|
33
|
-
* Component Properties
|
|
34
|
-
*/
|
|
35
|
-
this._image = ImageProps.default;
|
|
36
|
-
this.size = SizeProps.medium;
|
|
37
|
-
this.hidden = false;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @ComponentMethod
|
|
41
|
-
*/
|
|
42
|
-
componentWillLoad() {
|
|
43
|
-
this.parseImage(this._image);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @desc
|
|
47
|
-
* @param newValue
|
|
48
|
-
* @returns {void}
|
|
49
|
-
*/
|
|
50
|
-
parseImage(newValue) {
|
|
51
|
-
if (newValue) {
|
|
52
|
-
newValue in ImageProps
|
|
53
|
-
? this.image = ImageProps[newValue]
|
|
54
|
-
: this.image = ImageProps.default;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
const classes = index$1.classnames('empty', {
|
|
59
|
-
[this.size]: this.size
|
|
60
|
-
});
|
|
61
|
-
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
|
|
62
|
-
return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes }, index.h("img", { src: index.getAssetPath(`./static/${this.image}`) }), index.h("div", { class: "content" }, this.text && (index.h("span", { class: "text" }, this.text)), index.h("slot", null)))));
|
|
63
|
-
}
|
|
64
|
-
static get assetsDirs() { return ["static"]; }
|
|
65
|
-
get el() { return index.getElement(this); }
|
|
66
|
-
static get watchers() { return {
|
|
67
|
-
"_image": ["parseImage"]
|
|
68
|
-
}; }
|
|
69
|
-
};
|
|
70
|
-
BcmEmpty.style = emptyCss;
|
|
7
|
+
const utils = require('./utils-60414768.js');
|
|
71
8
|
|
|
72
9
|
const listboxCss = "@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:block;width:fit-content;height:fit-content;background-color:#ffffff}:host(.hidden){display:none}:host(.flex){width:100%;height:100%}:host(.flex) .bcm-listbox{max-height:100%;max-width:100%;height:100%;min-width:100%}:host(.full-width){width:100%}:host(.full-width) .bcm-listbox{max-width:100%;min-width:100%}.bcm-listbox{flex:1;background-color:var(--bcm-color-grey-1);width:fit-content;display:flex;flex-direction:column;height:100%;width:100%;min-width:256px;max-width:256px;min-height:auto;max-height:300px;box-sizing:border-box;border:1px solid var(--bcm-color-grey-5)}.bcm-listbox-list{flex:1;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;border-bottom:none}.bcm-listbox-list.loading{min-height:150px;position:relative;margin:0 8px 8px 8px}.bcm-listbox-list .loading{display:none;align-items:center;justify-content:center;height:100%;width:100%;position:absolute;background-color:rgba(255, 255, 255, 0.03)}.bcm-listbox-list .loading.show{display:flex}.bcm-listbox-list .list-container.hidden{display:none}.bcm-listbox .search{padding:8px;padding-bottom:0}.bcm-listbox .search.hidden{display:none !important}.bcm-listbox .empty{display:none;align-items:center;justify-content:center;flex:1;height:100%}.bcm-listbox .empty.show{display:flex}.bcm-listbox-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-color-grey-3)}.label{display:block;color:var(--bcm-color-grey-9);margin-bottom:4px}.listbox-item{display:flex;align-items:stretch;justify-content:flex-start;flex-direction:column;color:var(--bcm-color-grey-8);user-select:none;background-color:var(--bcm-color-grey-1)}.listbox-item.hidden{display:none}.listbox-item .divider{padding:0 8px}.listbox-item-container{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;padding-left:8px;width:100%}.listbox-item-container .check-content{display:flex;align-items:center;justify-content:flex-start;width:16px;min-width:16px;margin-right:4px}.listbox-item-container .check-content .indeterminate{width:16px;height:16px;position:relative;display:block;padding-right:8px;cursor:pointer}.listbox-item-container .check-content .indeterminate:after{content:\"\";position:absolute;top:50%;left:9px;width:10px;height:10px;background-color:var(--bcm-color-prime-blue-6);transform:translate(-50%, -50%);opacity:1;z-index:1}.listbox-item-container .check-content .indeterminate:before{content:\"\";position:absolute;top:-1px;left:0px;width:16px;height:100%;border-radius:2px;background-color:transparent;border:1px solid var(--bcm-color-grey-5);opacity:1;z-index:2}.listbox-item-container .check-content .indeterminate:hover:before{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}.listbox-item-container-text-content{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;cursor:pointer;width:100%;padding:4px 8px 4px 4px}.listbox-item-container.disabled{color:var(--bcm-color-grey-6)}.listbox-item-container.selected{color:var(--bcm-color-prime-blue-6)}.listbox-item-container.selected:hover:not(.disabled){color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}.listbox-item-container:hover:not(.disabled),.listbox-item-container:active:not(.disabled){color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}.caption-area{margin-bottom:8px;min-height:20px}.input-caption{display:block}.error.label{color:var(--bcm-color-red-6) !important}.error.bcm-listbox{border:1px solid var(--bcm-color-red-6) !important}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.input-large{height:38px}.input-medium{height:30px}.input-small{height:20px}";
|
|
73
10
|
|
|
@@ -368,6 +305,7 @@ const BcmListbox = class {
|
|
|
368
305
|
? this.size = _config['size']
|
|
369
306
|
: this.size = 'medium';
|
|
370
307
|
}
|
|
308
|
+
this.searchSub = this.objectMapping['items'];
|
|
371
309
|
if (_config['mapping']) {
|
|
372
310
|
if (_config['mapping']['id']) {
|
|
373
311
|
this.objectMapping['id'] = String(_config['mapping']['id']);
|
|
@@ -403,15 +341,14 @@ const BcmListbox = class {
|
|
|
403
341
|
if (_config['mapping']['selected']) {
|
|
404
342
|
this.objectMapping['selected'] = _config['mapping']['selected'];
|
|
405
343
|
}
|
|
406
|
-
if (
|
|
407
|
-
|
|
408
|
-
this.objectMapping['items'] = _config['mapping']['items'];
|
|
409
|
-
this.searchSub = this.objectMapping['items'];
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
344
|
+
if (_config['mapping']['items']) {
|
|
345
|
+
this.objectMapping['items'] = _config['mapping']['items'];
|
|
413
346
|
this.searchSub = this.objectMapping['items'];
|
|
414
347
|
}
|
|
348
|
+
// if ( this.treeview ) {
|
|
349
|
+
// }else{
|
|
350
|
+
// this.searchSub = this.objectMapping['items']
|
|
351
|
+
// }
|
|
415
352
|
}
|
|
416
353
|
sessionStorage.setItem(this._internal_id + "-config", JSON.stringify(_config));
|
|
417
354
|
// forceUpdate(this.el)
|
|
@@ -658,7 +595,7 @@ const BcmListbox = class {
|
|
|
658
595
|
// this.listboxChecked.emit(item[this.objectMapping['id']])
|
|
659
596
|
// }
|
|
660
597
|
// }
|
|
661
|
-
return (index.h("bcm-listbox-item", Object.assign({ _internal_id: this._internal_id, id: String(item[this.objectMapping['id']]), text: item[this.objectMapping['text']] }, (item[this.objectMapping['icon']] && { icon: item[this.objectMapping['icon']] }), (item[this.objectMapping['avatar']] && { avatar: item[this.objectMapping['avatar']] }), (item[this.objectMapping['avatarName']] && { avatarName: item[this.objectMapping['avatarName']] }), (item[this.objectMapping['avatarImage']] && { avatarImage: item[this.objectMapping['avatarImage']] }), (item[this.objectMapping['secondaryText']] && { secondaryText: item[this.objectMapping['secondaryText']] }), (item[this.objectMapping['tooltipText']] && { tooltipText: item[this.objectMapping['tooltipText']] }), (item[this.objectMapping['checked']] === true && { checked: item[this.objectMapping['checked']] }), (item[this.objectMapping['disabled']] === true && { disabled: true }), (item[this.objectMapping['selected']] === true && this.checkboxes == false && { selected: item[this.objectMapping['selected']] }), (this.template && { template: this.template }), (this.checkboxes && { checkboxes: true }), (this.size && { size: this.size }), { itemObject: item, objectMapping: this.objectMapping })));
|
|
598
|
+
return (index.h("bcm-listbox-item", Object.assign({ _internal_id: this._internal_id, id: String(item[this.objectMapping['id']]), text: item[this.objectMapping['text']] }, (item[this.objectMapping['icon']] && { icon: item[this.objectMapping['icon']] }), (item[this.objectMapping['avatar']] && { avatar: item[this.objectMapping['avatar']] }), (item[this.objectMapping['avatarName']] && { avatarName: item[this.objectMapping['avatarName']] }), (item[this.objectMapping['avatarImage']] && { avatarImage: item[this.objectMapping['avatarImage']] }), (item[this.objectMapping['secondaryText']] && { secondaryText: item[this.objectMapping['secondaryText']] }), (item[this.objectMapping['tooltipText']] && { tooltipText: item[this.objectMapping['tooltipText']] }), (Boolean(item[this.objectMapping['checked']]) === Boolean(true) && { checked: Boolean(item[this.objectMapping['checked']]) }), (item[this.objectMapping['disabled']] === true && { disabled: true }), (Boolean(item[this.objectMapping['selected']]) === Boolean(true) && this.checkboxes == false && { selected: Boolean(item[this.objectMapping['selected']]) }), (this.template && { template: this.template }), (this.checkboxes && { checkboxes: true }), (this.size && { size: this.size }), { itemObject: item, objectMapping: this.objectMapping })));
|
|
662
599
|
}
|
|
663
600
|
/**
|
|
664
601
|
* @desc
|
|
@@ -953,10 +890,7 @@ const BcmListbox = class {
|
|
|
953
890
|
customStyles = Object.assign(Object.assign({}, customStyles), { 'height': this.height });
|
|
954
891
|
}
|
|
955
892
|
const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
956
|
-
|
|
957
|
-
'error': captionType == 'error' ? true : false
|
|
958
|
-
});
|
|
959
|
-
return (index.h(index.Host, { class: hostClasses, style: customStyles, "bcm-internal-id": this._internal_id }, !innerComponent && label && index.h("label", { class: labelClasses }, " ", label, " ", required && ('*'), " "), treeview === true && (index.h("bcm-treeview", { _internal_id: this._internal_id })), treeview == false && (index.h("div", { class: bcmListbox, style: customStyles }, search && (index.h("div", { class: "search", id: "search", style: { 'display': String(showSearch) == 'false' ? 'none' : 'block' } }, index.h("bcm-search", { _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, searchValue: searchText, "on-bcm-focus": () => this.handleFocus(true), "on-bcm-blur": () => this.handleFocus(false), data: searchData, returnField: returnField, searchFields: searchFields, searchSub: searchSub, clearable: true }), index.h("bcm-divider", null))), index.h("div", { id: "bcm-listbox-list", class: "bcm-listbox-list loading", style: customStylesList }, checkboxes && (index.h("div", { class: classes, id: "checkall" }, index.h("div", { class: classesContainer, onClick: () => this.handleIndeterminateClick() }, index.h("div", { class: "check-content" }, indeterminateState == 'indeterminate' && (index.h("span", { class: "indeterminate" })) || (index.h("bcm-checkbox", { onClick: (e) => this.handleCheckboxClick(e), checked: checked, noCaption: true }))), index.h("div", { class: textContent }, "Select All")), index.h("div", { class: "divider" }, index.h("bcm-divider", null)))),
|
|
893
|
+
return (index.h(index.Host, { class: hostClasses, style: customStyles, "bcm-internal-id": this._internal_id }, !innerComponent && label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), treeview === true && (index.h("bcm-treeview", { _internal_id: this._internal_id })), treeview == false && (index.h("div", { class: bcmListbox, style: customStyles }, search && (index.h("div", { class: "search", id: "search", style: { 'display': String(showSearch) == 'false' ? 'none' : 'block' } }, index.h("bcm-search", { _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, searchValue: searchText, "on-bcm-focus": () => this.handleFocus(true), "on-bcm-blur": () => this.handleFocus(false), data: searchData, returnField: returnField, searchFields: searchFields, searchSub: searchSub, clearable: true }), index.h("bcm-divider", null))), index.h("div", { id: "bcm-listbox-list", class: "bcm-listbox-list loading", style: customStylesList }, checkboxes && (index.h("div", { class: classes, id: "checkall" }, index.h("div", { class: classesContainer, onClick: () => this.handleIndeterminateClick() }, index.h("div", { class: "check-content" }, indeterminateState == 'indeterminate' && (index.h("span", { class: "indeterminate" })) || (index.h("bcm-checkbox", { onClick: (e) => this.handleCheckboxClick(e), checked: checked, noCaption: true }))), index.h("div", { class: textContent }, "Select All")), index.h("div", { class: "divider" }, index.h("bcm-divider", null)))),
|
|
960
894
|
// this.empty == false && (
|
|
961
895
|
index.h("div", { id: "list-container", class: listContainer, style: listContainerStyle }, this.items.length !== 0 && this.items.map((item) => ((item.type === 'group' ? this.recursiveGroupRenderer(item) : this.itemRenderer(item)))))
|
|
962
896
|
// )
|
|
@@ -2311,7 +2245,6 @@ const BcmtreeviewItem = class {
|
|
|
2311
2245
|
};
|
|
2312
2246
|
BcmtreeviewItem.style = treeviewItemCss;
|
|
2313
2247
|
|
|
2314
|
-
exports.bcm_empty = BcmEmpty;
|
|
2315
2248
|
exports.bcm_listbox = BcmListbox;
|
|
2316
2249
|
exports.bcm_listbox_group = BcmListboxGroup;
|
|
2317
2250
|
exports.bcm_listbox_item = BcmListboxItem;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-ce8878ec.js');
|
|
6
|
+
const index$1 = require('./index-2f62bdaf.js');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 'status' prop predefined values
|
|
10
|
+
*/
|
|
11
|
+
var StatusProps;
|
|
12
|
+
(function (StatusProps) {
|
|
13
|
+
StatusProps["info"] = "info";
|
|
14
|
+
StatusProps["error"] = "error";
|
|
15
|
+
StatusProps["warning"] = "warning";
|
|
16
|
+
StatusProps["success"] = "success";
|
|
17
|
+
StatusProps["none"] = "none";
|
|
18
|
+
})(StatusProps || (StatusProps = {}));
|
|
19
|
+
/**
|
|
20
|
+
* 'type' prop predefined values
|
|
21
|
+
*/
|
|
22
|
+
var TypeProps;
|
|
23
|
+
(function (TypeProps) {
|
|
24
|
+
TypeProps["modal"] = "modal";
|
|
25
|
+
TypeProps["information"] = "information";
|
|
26
|
+
TypeProps["confirmation"] = "confirmation";
|
|
27
|
+
})(TypeProps || (TypeProps = {}));
|
|
28
|
+
/**
|
|
29
|
+
* 'type' prop predefined values
|
|
30
|
+
*/
|
|
31
|
+
var OrientationProps;
|
|
32
|
+
(function (OrientationProps) {
|
|
33
|
+
OrientationProps["portrait"] = "portrait";
|
|
34
|
+
OrientationProps["landscape"] = "landscape";
|
|
35
|
+
})(OrientationProps || (OrientationProps = {}));
|
|
36
|
+
|
|
37
|
+
const modalCss = "@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:block}:host(.hidden){display:none}.modal{display:flex;position:fixed;justify-content:center;align-items:flex-start;top:0;left:0;opacity:0;margin:0;padding:80px 40px 40px;overflow:hidden;overflow-y:auto;background-color:rgba(0, 0, 0, 0.5);box-sizing:border-box;z-index:-1000;width:100vw;height:100vh;visibility:hidden}.modal.show{visibility:visible;top:0;opacity:1;z-index:10500}.overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0}.card{display:flex;flex-direction:column;width:100%;box-shadow:0px 4px 12px rgba(0, 0, 0, 0.15);border-radius:2px;background-color:#fff;z-index:2}.card.portrait{max-width:312px}.card.landscape{max-width:475px}.card.small{width:576px}.card.medium{width:768px}.card.large{width:992px}.card.x-large{width:1024px}.card.xx-large{width:1200px}.card.xxx-large{width:1700px}.card.full-width{width:100%}.text-content{font-size:14px;line-height:22px;color:var(--bcm-color-grey-8);padding:0}.title{position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:24px;font-size:16px;line-height:24px;font-weight:500;color:var(--bcm-color-grey-9)}.title bcm-icon{margin-right:8px}p:not(.with-status){margin:0}p.with-status{padding-left:32px}header{position:relative;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;font-size:16px;line-height:24px;font-weight:500;color:var(--bcm-color-grey-9);background-color:var(--bcm-color-grey-2);border-bottom:1px solid var(--bcm-color-grey-5)}header bcm-icon{cursor:pointer}footer{position:relative;display:flex;align-items:flex-start;justify-content:flex-end;padding:10px 16px;border-top:1px solid var(--bcm-color-grey-5);background-color:var(--bcm-color-grey-2)}footer bcm-button+bcm-button{margin-left:8px}.footer{display:flex;align-items:flex-start;justify-content:flex-end}.footer bcm-button+bcm-button{margin-left:8px}";
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @desc
|
|
41
|
+
* @param str
|
|
42
|
+
*/
|
|
43
|
+
const lowercase = (str) => str.toLowerCase();
|
|
44
|
+
const BcmModal = class {
|
|
45
|
+
constructor(hostRef) {
|
|
46
|
+
index.registerInstance(this, hostRef);
|
|
47
|
+
this.ok = index.createEvent(this, "bcm-ok", 7);
|
|
48
|
+
this.cancel = index.createEvent(this, "bcm-cancel", 7);
|
|
49
|
+
this.slotHeader = false;
|
|
50
|
+
this.slotContent = false;
|
|
51
|
+
this.slotFooter = false;
|
|
52
|
+
this.slotHeaderHtml = '';
|
|
53
|
+
this.slotContentHtml = '';
|
|
54
|
+
this.slotFooterHtml = '';
|
|
55
|
+
this.bodyStyleOverflow = '';
|
|
56
|
+
this.type = TypeProps.modal;
|
|
57
|
+
this.status = StatusProps.none;
|
|
58
|
+
this.okText = 'OK';
|
|
59
|
+
this.cancelText = 'Cancel';
|
|
60
|
+
this.isShow = false;
|
|
61
|
+
this.hidden = false;
|
|
62
|
+
this.size = 'medium';
|
|
63
|
+
this.fullWidth = false;
|
|
64
|
+
this.backdrop = true;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @StencilMethod
|
|
68
|
+
*/
|
|
69
|
+
componentWillLoad() {
|
|
70
|
+
if (this.type !== TypeProps.modal && this.status === StatusProps.none)
|
|
71
|
+
this.status = StatusProps.info;
|
|
72
|
+
// if ( this.el.querySelector('bcm-modal-header') ) {
|
|
73
|
+
// this.slotHeaderHtml = this.el.querySelector('bcm-modal-header').innerHTML
|
|
74
|
+
// this.slotHeader = true
|
|
75
|
+
// }
|
|
76
|
+
// if ( this.el.querySelector('bcm-modal-content') ) {
|
|
77
|
+
// this.slotContentHtml = this.el.querySelector('bcm-modal-content').outerHTML
|
|
78
|
+
// this.slotContent = true
|
|
79
|
+
// }
|
|
80
|
+
// if ( this.el.querySelector('bcm-modal-footer') ) {
|
|
81
|
+
// this.slotFooter = true
|
|
82
|
+
// }
|
|
83
|
+
}
|
|
84
|
+
componentDidRender() {
|
|
85
|
+
const slot = this.el.shadowRoot.querySelector('slot').assignedElements();
|
|
86
|
+
slot.map(el => {
|
|
87
|
+
if (String(el.tagName).toLowerCase() === 'bcm-modal-header') {
|
|
88
|
+
el.slot = 'header';
|
|
89
|
+
this.headerArea = true;
|
|
90
|
+
}
|
|
91
|
+
if (String(el.tagName).toLowerCase() === 'bcm-modal-footer') {
|
|
92
|
+
el.slot = 'footer';
|
|
93
|
+
this.footerArea = true;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @desc
|
|
99
|
+
* @returns {BcmIcon}
|
|
100
|
+
*/
|
|
101
|
+
getIcon() {
|
|
102
|
+
switch (this.status) {
|
|
103
|
+
case StatusProps.info:
|
|
104
|
+
return index.h("bcm-icon", { type: "outlined", icon: "info-circle", size: "medium", color: "prime-blue-6" });
|
|
105
|
+
case StatusProps.error:
|
|
106
|
+
return index.h("bcm-icon", { type: "outlined", icon: "close-circle", size: "medium", color: "red-6" });
|
|
107
|
+
case StatusProps.warning:
|
|
108
|
+
return index.h("bcm-icon", { type: "outlined", icon: "exclamation-circle", size: "medium", color: "warmyellow-6" });
|
|
109
|
+
case StatusProps.success:
|
|
110
|
+
return index.h("bcm-icon", { type: "outlined", icon: "check-circle", size: "medium", color: "green-6" });
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @desc
|
|
115
|
+
*/
|
|
116
|
+
handleOk() {
|
|
117
|
+
this.ok.emit();
|
|
118
|
+
this.isShow = false;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @desc
|
|
122
|
+
*/
|
|
123
|
+
handleCancel() {
|
|
124
|
+
this.cancel.emit();
|
|
125
|
+
this.isShow = false;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @desc
|
|
129
|
+
* @returns {BcmIcon}
|
|
130
|
+
*/
|
|
131
|
+
getFooterActions() {
|
|
132
|
+
return ((this.footerArea && (index.h("footer", null, " ", index.h("slot", { name: "footer" }), " "))));
|
|
133
|
+
}
|
|
134
|
+
handleSubmit(e) {
|
|
135
|
+
if (lowercase(e.target.nodeName) === 'bcm-button') {
|
|
136
|
+
if (e.target.dataDismiss) {
|
|
137
|
+
this.dismiss();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @desc Removes component itself
|
|
143
|
+
*/
|
|
144
|
+
dismiss() {
|
|
145
|
+
this.isShow = false;
|
|
146
|
+
document.querySelector("body").style.overflow = this.bodyStyleOverflow;
|
|
147
|
+
// this.el.remove()
|
|
148
|
+
}
|
|
149
|
+
handleBackdrop() {
|
|
150
|
+
if (this.backdrop == true) {
|
|
151
|
+
this.dismiss();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @desc
|
|
156
|
+
*/
|
|
157
|
+
async hide() {
|
|
158
|
+
this.dismiss();
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @desc
|
|
162
|
+
*/
|
|
163
|
+
async show() {
|
|
164
|
+
this.isShow = true;
|
|
165
|
+
if (document.querySelector("body").style.overflow != "hidden") {
|
|
166
|
+
this.bodyStyleOverflow = document.querySelector("body").style.overflow;
|
|
167
|
+
}
|
|
168
|
+
document.querySelector("body").style.overflow = "hidden";
|
|
169
|
+
// const bcmTabs = this.el.querySelector('bcm-tabs')
|
|
170
|
+
// if ( bcmTabs ) {
|
|
171
|
+
// var getActiveTab = await bcmTabs.getActiveTab()
|
|
172
|
+
// bcmTabs.active( getActiveTab )
|
|
173
|
+
// }
|
|
174
|
+
}
|
|
175
|
+
keyboardNavigation(e) {
|
|
176
|
+
if (this.backdrop == true) {
|
|
177
|
+
const which = e.which || 0;
|
|
178
|
+
if (which == 27) {
|
|
179
|
+
e.preventDefault();
|
|
180
|
+
this.dismiss();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
render() {
|
|
185
|
+
const { type, status, headerTitle, isShow, headerArea, size, fullWidth } = this;
|
|
186
|
+
const cardClasses = index$1.classnames('card', status, size, fullWidth ? 'full-width' : null);
|
|
187
|
+
const modal = index$1.classnames('modal', {
|
|
188
|
+
'show': isShow
|
|
189
|
+
});
|
|
190
|
+
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
|
|
191
|
+
return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: modal }, index.h("div", { class: "overlay", onClick: () => this.handleBackdrop() }), index.h("div", { class: cardClasses }, type === TypeProps.modal && (headerArea && (index.h("header", null, index.h("slot", { name: "header" }), " ", index.h("bcm-icon", { icon: "close", color: "grey-10", onClick: () => this.dismiss() })))), index.h("div", { class: "text-content" }, type !== TypeProps.modal && (index.h("span", { class: "title" }, this.getIcon(), headerArea && (index.h("slot", { name: "header" })), !headerArea && (headerTitle))), index.h("p", { class: type !== TypeProps.modal ? 'with-status' : '' }, index.h("slot", null)), type !== TypeProps.modal && this.getFooterActions()), type === TypeProps.modal && (this.getFooterActions())))));
|
|
192
|
+
}
|
|
193
|
+
get el() { return index.getElement(this); }
|
|
194
|
+
};
|
|
195
|
+
BcmModal.style = modalCss;
|
|
196
|
+
|
|
197
|
+
exports.bcm_modal = BcmModal;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-ce8878ec.js');
|
|
6
6
|
const index$1 = require('./index-2f62bdaf.js');
|
|
7
7
|
|
|
8
|
-
const popconfirmBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm-box{position:relative;}.popconfirm-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm-box .box .content{display:flex}.popconfirm-box .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm-box .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm-box .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popconfirm-box.open .box,.popconfirm-box.open::after{display:block}.popconfirm-box.top .box{bottom:100%;margin-bottom:16px}.popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm-box.bottom .box{top:100%;margin-top:16px}.popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm-box.left .box{right:100%;margin-right:16px}.popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm-box.right .box{left:100%;margin-left:16px}.popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm-box.top.center .box,.popconfirm-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm-box.top.center::after,.popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm-box.top.start .box,.popconfirm-box.bottom.start .box{left:0}.popconfirm-box.top.start::after,.popconfirm-box.bottom.start::after{left:16px}.popconfirm-box.top.end .box,.popconfirm-box.bottom.end .box{right:0}.popconfirm-box.top.end::after,.popconfirm-box.bottom.end::after{right:16px}.popconfirm-box.left.center .box,.popconfirm-box.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm-box.left.center::after,.popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm-box.left.start .box,.popconfirm-box.right.start .box{top:0}.popconfirm-box.left.start::after,.popconfirm-box.right.start::after{top:12px}.popconfirm-box.left.end .box,.popconfirm-box.right.end .box{bottom:0}.popconfirm-box.left.end::after,.popconfirm-box.right.end::after{bottom:12px}";
|
|
8
|
+
const popconfirmBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm-box{position:relative;}.popconfirm-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm-box .box .content{display:flex}.popconfirm-box .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm-box .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm-box .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popconfirm-box.open .box,.popconfirm-box.open::after{display:block}.popconfirm-box.top .box{bottom:100%;margin-bottom:16px}.popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm-box.bottom .box{top:100%;margin-top:16px}.popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm-box.left .box{right:100%;margin-right:16px}.popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm-box.right .box{left:100%;margin-left:16px}.popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm-box.top.center .box,.popconfirm-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm-box.top.center::after,.popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm-box.top.start .box,.popconfirm-box.bottom.start .box{left:0}.popconfirm-box.top.start::after,.popconfirm-box.bottom.start::after{left:16px}.popconfirm-box.top.end .box,.popconfirm-box.bottom.end .box{right:0}.popconfirm-box.top.end::after,.popconfirm-box.bottom.end::after{right:16px}.popconfirm-box.left.center .box,.popconfirm-box.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm-box.left.center::after,.popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm-box.left.start .box,.popconfirm-box.right.start .box{top:0}.popconfirm-box.left.start::after,.popconfirm-box.right.start::after{top:12px}.popconfirm-box.left.end .box,.popconfirm-box.right.end .box{bottom:0}.popconfirm-box.left.end::after,.popconfirm-box.right.end::after{bottom:12px}";
|
|
9
9
|
|
|
10
10
|
const statuses = {
|
|
11
11
|
error: ['close-circle', 'red-6'],
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ce8878ec.js');
|
|
6
6
|
const index$1 = require('./index-2f62bdaf.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-60414768.js');
|
|
8
8
|
const popoverPlacement = require('./popover-placement-ac023521.js');
|
|
9
9
|
|
|
10
|
-
const popconfirmCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm{position:relative;}.popconfirm .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm .box .content{display:flex}.popconfirm .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popconfirm.open .box,.popconfirm.open::after{display:block}.popconfirm.top .box{bottom:100%;margin-bottom:16px}.popconfirm.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm.bottom .box{top:100%;margin-top:16px}.popconfirm.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm.left .box{right:100%;margin-right:16px}.popconfirm.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm.right .box{left:100%;margin-left:16px}.popconfirm.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm.top.center .box,.popconfirm.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm.top.center::after,.popconfirm.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm.top.start .box,.popconfirm.bottom.start .box{left:0}.popconfirm.top.start::after,.popconfirm.bottom.start::after{left:16px}.popconfirm.top.end .box,.popconfirm.bottom.end .box{right:0}.popconfirm.top.end::after,.popconfirm.bottom.end::after{right:16px}.popconfirm.left.center .box,.popconfirm.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm.left.center::after,.popconfirm.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm.left.start .box,.popconfirm.right.start .box{top:0}.popconfirm.left.start::after,.popconfirm.right.start::after{top:12px}.popconfirm.left.end .box,.popconfirm.right.end .box{bottom:0}.popconfirm.left.end::after,.popconfirm.right.end::after{bottom:12px}";
|
|
10
|
+
const popconfirmCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm{position:relative;}.popconfirm .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm .box .content{display:flex}.popconfirm .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popconfirm.open .box,.popconfirm.open::after{display:block}.popconfirm.top .box{bottom:100%;margin-bottom:16px}.popconfirm.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm.bottom .box{top:100%;margin-top:16px}.popconfirm.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm.left .box{right:100%;margin-right:16px}.popconfirm.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm.right .box{left:100%;margin-left:16px}.popconfirm.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm.top.center .box,.popconfirm.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm.top.center::after,.popconfirm.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm.top.start .box,.popconfirm.bottom.start .box{left:0}.popconfirm.top.start::after,.popconfirm.bottom.start::after{left:16px}.popconfirm.top.end .box,.popconfirm.bottom.end .box{right:0}.popconfirm.top.end::after,.popconfirm.bottom.end::after{right:16px}.popconfirm.left.center .box,.popconfirm.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm.left.center::after,.popconfirm.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm.left.start .box,.popconfirm.right.start .box{top:0}.popconfirm.left.start::after,.popconfirm.right.start::after{top:12px}.popconfirm.left.end .box,.popconfirm.right.end .box{bottom:0}.popconfirm.left.end::after,.popconfirm.right.end::after{bottom:12px}";
|
|
11
11
|
|
|
12
12
|
const BcmPopconfirm = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-ce8878ec.js');
|
|
6
6
|
const index$1 = require('./index-2f62bdaf.js');
|
|
7
7
|
|
|
8
|
-
const popoverBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover-box{position:relative;}.popover-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover-box .box .heading,.popover-box .box .content{display:block}.popover-box .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover-box .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popover-box.open .box,.popover-box.open::after{display:block}.popover-box.top .box{bottom:100%;margin-bottom:16px}.popover-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover-box.bottom .box{top:100%;margin-top:16px}.popover-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover-box.left .box{right:100%;margin-right:16px}.popover-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover-box.right .box{left:100%;margin-left:16px}.popover-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover-box.top.center .box,.popover-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popover-box.top.center::after,.popover-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popover-box.top.start .box,.popover-box.bottom.start .box{left:0}.popover-box.top.start::after,.popover-box.bottom.start::after{left:16px}.popover-box.top.end .box,.popover-box.bottom.end .box{right:0}.popover-box.top.end::after,.popover-box.bottom.end::after{right:16px}.popover-box.left.center .box,.popover-box.right.center .box{top:50%;transform:translateY(-50%)}.popover-box.left.center::after,.popover-box.right.center::after{top:50%;transform:translateY(-50%)}.popover-box.left.start .box,.popover-box.right.start .box{top:0}.popover-box.left.start::after,.popover-box.right.start::after{top:12px}.popover-box.left.end .box,.popover-box.right.end .box{bottom:0}.popover-box.left.end::after,.popover-box.right.end::after{bottom:12px}";
|
|
8
|
+
const popoverBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover-box{position:relative;}.popover-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover-box .box .heading,.popover-box .box .content{display:block}.popover-box .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover-box .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popover-box.open .box,.popover-box.open::after{display:block}.popover-box.top .box{bottom:100%;margin-bottom:16px}.popover-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover-box.bottom .box{top:100%;margin-top:16px}.popover-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover-box.left .box{right:100%;margin-right:16px}.popover-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover-box.right .box{left:100%;margin-left:16px}.popover-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover-box.top.center .box,.popover-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popover-box.top.center::after,.popover-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popover-box.top.start .box,.popover-box.bottom.start .box{left:0}.popover-box.top.start::after,.popover-box.bottom.start::after{left:16px}.popover-box.top.end .box,.popover-box.bottom.end .box{right:0}.popover-box.top.end::after,.popover-box.bottom.end::after{right:16px}.popover-box.left.center .box,.popover-box.right.center .box{top:50%;transform:translateY(-50%)}.popover-box.left.center::after,.popover-box.right.center::after{top:50%;transform:translateY(-50%)}.popover-box.left.start .box,.popover-box.right.start .box{top:0}.popover-box.left.start::after,.popover-box.right.start::after{top:12px}.popover-box.left.end .box,.popover-box.right.end .box{bottom:0}.popover-box.left.end::after,.popover-box.right.end::after{bottom:12px}";
|
|
9
9
|
|
|
10
10
|
const BcmPopoverBox = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ce8878ec.js');
|
|
6
6
|
const index$1 = require('./index-2f62bdaf.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-60414768.js');
|
|
8
8
|
const popoverPlacement = require('./popover-placement-ac023521.js');
|
|
9
9
|
|
|
10
|
-
const popoverCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover{position:relative;}.popover .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover .box .heading,.popover .box .content{display:block}.popover .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popover.open .box,.popover.open::after{display:block}.popover.top .box{bottom:100%;margin-bottom:16px}.popover.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover.bottom .box{top:100%;margin-top:16px}.popover.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover.left .box{right:100%;margin-right:16px}.popover.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover.right .box{left:100%;margin-left:16px}.popover.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover.top.center .box,.popover.bottom.center .box{left:50%;transform:translateX(-50%)}.popover.top.center::after,.popover.bottom.center::after{left:50%;transform:translateX(-50%)}.popover.top.start .box,.popover.bottom.start .box{left:0}.popover.top.start::after,.popover.bottom.start::after{left:16px}.popover.top.end .box,.popover.bottom.end .box{right:0}.popover.top.end::after,.popover.bottom.end::after{right:16px}.popover.left.center .box,.popover.right.center .box{top:50%;transform:translateY(-50%)}.popover.left.center::after,.popover.right.center::after{top:50%;transform:translateY(-50%)}.popover.left.start .box,.popover.right.start .box{top:0}.popover.left.start::after,.popover.right.start::after{top:12px}.popover.left.end .box,.popover.right.end .box{bottom:0}.popover.left.end::after,.popover.right.end::after{bottom:12px}";
|
|
10
|
+
const popoverCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover{position:relative;}.popover .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover .box .heading,.popover .box .content{display:block}.popover .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popover.open .box,.popover.open::after{display:block}.popover.top .box{bottom:100%;margin-bottom:16px}.popover.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover.bottom .box{top:100%;margin-top:16px}.popover.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover.left .box{right:100%;margin-right:16px}.popover.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover.right .box{left:100%;margin-left:16px}.popover.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover.top.center .box,.popover.bottom.center .box{left:50%;transform:translateX(-50%)}.popover.top.center::after,.popover.bottom.center::after{left:50%;transform:translateX(-50%)}.popover.top.start .box,.popover.bottom.start .box{left:0}.popover.top.start::after,.popover.bottom.start::after{left:16px}.popover.top.end .box,.popover.bottom.end .box{right:0}.popover.top.end::after,.popover.bottom.end::after{right:16px}.popover.left.center .box,.popover.right.center .box{top:50%;transform:translateY(-50%)}.popover.left.center::after,.popover.right.center::after{top:50%;transform:translateY(-50%)}.popover.left.start .box,.popover.right.start .box{top:0}.popover.left.start::after,.popover.right.start::after{top:12px}.popover.left.end .box,.popover.right.end .box{bottom:0}.popover.left.end::after,.popover.right.end::after{bottom:12px}";
|
|
11
11
|
|
|
12
12
|
const BcmPopover = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ce8878ec.js');
|
|
6
6
|
const index$1 = require('./index-2f62bdaf.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-60414768.js');
|
|
8
8
|
|
|
9
9
|
const pulldownGroupCss = "@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:block}@media screen and (min-width: 576px){:host{width:100%}}:host(.hidden){display:none}.pulldown-group{--const-padding-vertical-sub:12px;--const-padding-horizontal-sub:40px;--group-shadow:0px 4px 4px rgba(0, 0, 0, 0.25)}.pulldown-group ::slotted(bcm-pulldown-item){--padding-vertical-sub:var(--const-padding-vertical-sub);--padding-horizontal-sub:var(--const-padding-horizontal-sub);--hover-color:var(--bcm-color-prime-blue-6);--selected-bg-color:var(--bcm-color-prime-blue-6)}.pulldown-group.open .title{color:var(--bcm-color-prime-blue-6)}.pulldown-group.open .inner{display:block}.inner{position:absolute;top:calc(100% + 5px);display:none;transition:height 0.3s ease;background-color:#ffffff;border-radius:2px;box-shadow:var(--group-shadow)}@media screen and (min-width: 576px){.inner{position:relative;box-shadow:none}}.title{display:flex;align-items:center;justify-content:space-between;font-size:14px;line-height:22px;color:var(--bcm-color-grey-7);cursor:pointer;padding:8px 8px;height:100%}.title .text-content{display:flex;align-items:center}.title .collapse-icon{margin-left:8px}.title ::slotted(bcm-icon){margin-right:10px}.title:hover{color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}@media screen and (min-width: 576px){.title{padding:var(--const-padding-vertical-sub) var(--const-padding-horizontal-sub)}}.pulldown-group.sub-group .title{padding:var(--const-padding-vertical-sub) var(--const-padding-horizontal-sub);white-space:nowrap}.pulldown-group.sub-group .inner{position:relative;box-shadow:none}.pulldown-group.sub-group.right{position:relative;--nowrap-sub:nowrap}.pulldown-group.sub-group.right .inner{position:absolute;top:0;left:100%;margin-left:2px;box-shadow:var(--group-shadow)}@media screen and (min-width: 576px){.pulldown-group.sub-group.right .inner{position:relative;left:0;box-shadow:none}}";
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ce8878ec.js');
|
|
6
6
|
const index$1 = require('./index-2f62bdaf.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-60414768.js');
|
|
8
8
|
|
|
9
9
|
const pulldownCss = "@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:block}:host(.hidden){display:none}.pulldown{position:relative;display:flex;align-items:center;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);background-color:#ffffff}@media screen and (min-width: 576px){.pulldown{flex-direction:column;align-items:flex-start}}@media screen and (min-width: 576px){.pulldown>*{width:100%}}::slotted(*){height:100%}";
|
|
10
10
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-ce8878ec.js');
|
|
6
|
+
const index$1 = require('./index-2f62bdaf.js');
|
|
7
|
+
|
|
8
|
+
const groupCss = "@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:block;margin:0 0 8px 0}:host(.hidden){display:none}:host(.error) label{color:var(--bcm-color-red-6) !important}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.radio-group{display:flex}.radio-group.horizontal{flex-direction:row;margin-bottom:5px}.radio-group.horizontal ::slotted(bcm-radio:not(:last-of-type)){margin-right:16px}.radio-group.horizontal bcm-radio:not(:last-of-type){margin-right:16px}.radio-group.vertical{flex-direction:column}.radio-group.vertical label{margin-bottom:4px}.radio-group.vertical ::slotted(bcm-radio:not(:last-of-type)){margin-bottom:8px}.radio-group.vertical bcm-radio:not(:last-of-type){margin-bottom:8px}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);padding-right:4px;margin-right:8px;margin-bottom:8px}.caption-area{min-height:20px}.input-caption{display:block}";
|
|
9
|
+
|
|
10
|
+
const BcmRadioGroup = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.change = index.createEvent(this, "bcm-change", 7);
|
|
14
|
+
this.childRadios = [];
|
|
15
|
+
this.direction = 'horizontal';
|
|
16
|
+
this.optionType = 'default';
|
|
17
|
+
this.buttonStyle = 'solid';
|
|
18
|
+
this.size = 'medium';
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
this.hidden = false;
|
|
21
|
+
this.label = null;
|
|
22
|
+
this.required = false;
|
|
23
|
+
this.noCaption = false;
|
|
24
|
+
this.captionType = 'default';
|
|
25
|
+
this.radioOptions = [];
|
|
26
|
+
this.usingSlots = true;
|
|
27
|
+
}
|
|
28
|
+
async setData(_data) {
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
this.options = _data;
|
|
31
|
+
}, 100);
|
|
32
|
+
return Promise.resolve(true);
|
|
33
|
+
}
|
|
34
|
+
async getValue() {
|
|
35
|
+
return this.value;
|
|
36
|
+
}
|
|
37
|
+
async check(value) {
|
|
38
|
+
this.defaultValue = value;
|
|
39
|
+
this.value = value;
|
|
40
|
+
}
|
|
41
|
+
async setClear() {
|
|
42
|
+
this.value = '';
|
|
43
|
+
}
|
|
44
|
+
async resetCaption() {
|
|
45
|
+
this.caption = this.captionCache;
|
|
46
|
+
this.captionType = this.captionTypeCache;
|
|
47
|
+
this.captionError = null;
|
|
48
|
+
}
|
|
49
|
+
parseOptions(newValue) {
|
|
50
|
+
if (newValue) {
|
|
51
|
+
typeof newValue === 'string'
|
|
52
|
+
? this.radioOptions = JSON.parse(newValue)
|
|
53
|
+
: this.radioOptions = newValue;
|
|
54
|
+
if (this.radioOptions.length > 0)
|
|
55
|
+
this.usingSlots = false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// If checked radio changes, emits change event
|
|
59
|
+
handleChange(newValue) {
|
|
60
|
+
this.change.emit(newValue);
|
|
61
|
+
}
|
|
62
|
+
// Controls radios styles and states
|
|
63
|
+
controlRadio(elements) {
|
|
64
|
+
elements.forEach((radio) => {
|
|
65
|
+
radio.checked = this.value ? radio.value === this.value : this.defaultValue ? radio.value === this.defaultValue : null;
|
|
66
|
+
radio.disabled = this.disabled;
|
|
67
|
+
radio.optionType = this.optionType;
|
|
68
|
+
radio.buttonStyle = this.buttonStyle;
|
|
69
|
+
radio.size = this.size;
|
|
70
|
+
radio.addEventListener('bcm-change', (e) => {
|
|
71
|
+
e.stopPropagation();
|
|
72
|
+
if (e.detail.checked) {
|
|
73
|
+
this.value = radio.value;
|
|
74
|
+
}
|
|
75
|
+
}, { once: true });
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
connectedCallback() {
|
|
79
|
+
this.captionCache = this.caption;
|
|
80
|
+
this.captionTypeCache = this.captionType;
|
|
81
|
+
}
|
|
82
|
+
componentWillLoad() {
|
|
83
|
+
this.parseOptions(this.options);
|
|
84
|
+
}
|
|
85
|
+
componentDidRender() {
|
|
86
|
+
let elements = [];
|
|
87
|
+
if (this.usingSlots) {
|
|
88
|
+
elements = this.host.shadowRoot.querySelector('slot').assignedElements();
|
|
89
|
+
this.childRadios = [];
|
|
90
|
+
elements.map(el => {
|
|
91
|
+
String(el.tagName).toLowerCase() == 'bcm-radio' && this.childRadios.push(el);
|
|
92
|
+
});
|
|
93
|
+
this.controlRadio(this.childRadios);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
elements = Array.from(this.host.shadowRoot.querySelectorAll('bcm-radio'));
|
|
97
|
+
this.controlRadio(elements);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
render() {
|
|
101
|
+
const { label, required, noCaption, caption, captionError, captionType } = this;
|
|
102
|
+
const classes = index$1.classnames('radio-group', {
|
|
103
|
+
[this.direction]: this.optionType === 'default'
|
|
104
|
+
});
|
|
105
|
+
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
|
|
106
|
+
'error': captionType == 'error' ? true : false
|
|
107
|
+
});
|
|
108
|
+
const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
109
|
+
if (this.radioOptions) {
|
|
110
|
+
return (index.h(index.Host, { class: hostClasses }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), index.h("div", { class: classes }, this.radioOptions && this.radioOptions.map(radio => (index.h("bcm-radio", { value: radio.value, disabled: radio.disabled, checked: radio.checked }, " ", radio.label, " "))), index.h("slot", null)), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
|
|
111
|
+
? index.h("span", { class: captionClasses }, " ", captionError, " ")
|
|
112
|
+
: caption && index.h("span", { class: captionClasses }, " ", caption, " ")))));
|
|
113
|
+
}
|
|
114
|
+
return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes }, index.h("slot", null))));
|
|
115
|
+
}
|
|
116
|
+
get host() { return index.getElement(this); }
|
|
117
|
+
static get watchers() { return {
|
|
118
|
+
"options": ["parseOptions"],
|
|
119
|
+
"value": ["handleChange"]
|
|
120
|
+
}; }
|
|
121
|
+
};
|
|
122
|
+
BcmRadioGroup.style = groupCss;
|
|
123
|
+
|
|
124
|
+
exports.bcm_radio_group = BcmRadioGroup;
|