bromcom-ui 2.8.1 → 2.9.0-rc.0
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-4899fba4.entry.js → p-0906c9b4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e7028542.entry.js → p-0ee4e283.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4dac52f8.entry.js → p-0fdbbbe8.entry.js} +1 -1
- package/dist/bromcom-ui/p-14378828.entry.js +5 -0
- package/dist/bromcom-ui/{p-251bfa4c.entry.js → p-15fa3329.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9c9babdd.entry.js → p-1c5a2111.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e0618f5d.entry.js → p-20ac20d4.entry.js} +1 -1
- package/dist/bromcom-ui/p-24aefda6.js +1 -1
- package/dist/bromcom-ui/p-2cb4a196.entry.js +5 -0
- package/dist/bromcom-ui/p-2ea24a6e.js +1 -1
- package/dist/bromcom-ui/{p-0ee1ff83.entry.js → p-344a4674.entry.js} +1 -1
- package/dist/bromcom-ui/p-3ad545f0.entry.js +5 -0
- package/dist/bromcom-ui/{p-90894817.entry.js → p-40a5e4fc.entry.js} +1 -1
- package/dist/bromcom-ui/p-440afdfa.entry.js +5 -0
- package/dist/bromcom-ui/{p-94293d46.entry.js → p-4b34b3f9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a3aa9b2a.entry.js → p-55001c80.entry.js} +1 -1
- package/dist/bromcom-ui/{p-625af6e2.entry.js → p-5f288af5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-274465b7.entry.js → p-70b428e8.entry.js} +1 -1
- package/dist/bromcom-ui/p-89b21290.entry.js +5 -0
- package/dist/bromcom-ui/p-8d0ca8c2.js +1 -1
- package/dist/bromcom-ui/{p-e82340a2.entry.js → p-9b10d955.entry.js} +1 -1
- package/dist/bromcom-ui/{p-47b69111.entry.js → p-9c7e9b5d.entry.js} +1 -1
- package/dist/bromcom-ui/p-a0a3fd94.entry.js +5 -0
- package/dist/bromcom-ui/{p-f4f4e410.entry.js → p-a2046742.entry.js} +1 -1
- package/dist/bromcom-ui/p-a429e85b.js +1 -1
- package/dist/bromcom-ui/p-a97ee69d.entry.js +19 -0
- package/dist/bromcom-ui/{p-2fc1ab9a.entry.js → p-ab55def1.entry.js} +1 -1
- package/dist/bromcom-ui/p-b60bcecf.js +1 -1
- package/dist/bromcom-ui/{p-a8a4460a.entry.js → p-c9b10de5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-160ef457.entry.js → p-cad8f786.entry.js} +1 -1
- package/dist/bromcom-ui/{p-140b10d1.entry.js → p-e008411a.entry.js} +1 -1
- package/dist/bromcom-ui/p-e0f440b4.js +1 -1
- package/dist/bromcom-ui/{p-c15e0e77.entry.js → p-e3cafc0d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0d693b8b.entry.js → p-e606c42b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-86b8672d.entry.js → p-e66821e5.entry.js} +1 -1
- package/dist/cjs/{bcm-634604e3.js → bcm-ab921827.js} +4 -4
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/{bcm-colorful_2.cjs.entry.js → bcm-avatar_15.cjs.entry.js} +6232 -149
- package/dist/cjs/bcm-button-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-card.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +416 -0
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +4 -4
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +193 -0
- package/dist/cjs/bcm-color-input.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +7 -7
- package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +4 -3
- package/dist/cjs/bcm-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +2 -2
- package/dist/cjs/bcm-link.cjs.entry.js +3 -3
- package/dist/cjs/bcm-menu.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +2 -2
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +2 -2
- package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal.cjs.entry.js +5 -5
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +3 -3
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
- package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +6 -6
- package/dist/cjs/bcm-radio.cjs.entry.js +9 -9
- package/dist/cjs/bcm-range.cjs.entry.js +4 -4
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-stepper.cjs.entry.js +4 -4
- package/dist/cjs/bcm-switch.cjs.entry.js +7 -7
- package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tag.cjs.entry.js +12 -12
- package/dist/cjs/bcm-text.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +5 -5
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +9 -9
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{floating-ui-74eb26d6.js → floating-ui-c9fc2202.js} +2 -2
- package/dist/cjs/{input-template-4617f909.js → input-template-1441e468.js} +5 -5
- package/dist/cjs/{label-template-cc69bc21.js → label-template-4d5f99a5.js} +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +4 -4
- package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/{popover-placement-3c8f3a72.js → popover-placement-ccb40073.js} +1 -1
- package/dist/cjs/{slot-template-3e59d7d8.js → slot-template-d70ea082.js} +1 -1
- package/dist/cjs/{string-helper-45cffee0.js → string-helper-d681e5c7.js} +2 -2
- package/dist/cjs/{tooltip-helper-2e8b879b.js → tooltip-helper-235b26ea.js} +6 -6
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/chip/chip-group.js +292 -0
- package/dist/collection/components/atoms/chip/chip.js +107 -26
- package/dist/collection/components/organism/form/form.js +1 -0
- package/dist/collection/components/organism/form-2/bcm-form-components.js +1 -0
- package/dist/collection/components/organism/list/list.css +3 -0
- package/dist/components/bcm-chip-group.d.ts +11 -0
- package/dist/components/bcm-chip-group.js +174 -0
- package/dist/components/bcm-chip.js +1 -100
- package/dist/components/bcm-form-2.js +1 -0
- package/dist/components/bcm-form.js +1 -0
- package/dist/components/bcm-list.js +1 -1702
- package/dist/{esm/bcm-chip.entry.js → components/chip.js} +110 -33
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/{esm/bcm-list.entry.js → components/list.js} +136 -31
- package/dist/esm/bcm-9f50af9c.js +1 -1
- package/dist/esm/{bcm-colorful_2.entry.js → bcm-avatar_15.entry.js} +6219 -149
- package/dist/esm/bcm-button-group.entry.js +1 -1
- package/dist/esm/bcm-checkbox-group.entry.js +412 -0
- package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
- package/dist/esm/bcm-checkbox_2.entry.js +188 -0
- package/dist/esm/bcm-date-picker.entry.js +1 -1
- package/dist/esm/bcm-datetime-picker.entry.js +1 -1
- package/dist/esm/bcm-drawer.entry.js +1 -1
- package/dist/esm/bcm-dropdown.entry.js +1 -1
- package/dist/esm/bcm-form-2.entry.js +2 -1
- package/dist/esm/bcm-item.entry.js +1 -1
- package/dist/esm/bcm-link.entry.js +1 -1
- package/dist/esm/bcm-modal-2.entry.js +1 -1
- package/dist/esm/bcm-modal.entry.js +1 -1
- package/dist/esm/bcm-popconfirm.entry.js +1 -1
- package/dist/esm/bcm-popover.entry.js +1 -1
- package/dist/esm/bcm-progress.entry.js +1 -1
- package/dist/esm/bcm-radio-group.entry.js +1 -1
- package/dist/esm/bcm-radio.entry.js +1 -1
- package/dist/esm/bcm-range.entry.js +1 -1
- package/dist/esm/bcm-stepper.entry.js +1 -1
- package/dist/esm/bcm-switch.entry.js +1 -1
- package/dist/esm/bcm-tab-group.entry.js +1 -1
- package/dist/esm/bcm-tab-item-header.entry.js +1 -1
- package/dist/esm/bcm-tag.entry.js +1 -1
- package/dist/esm/bcm-textarea.entry.js +1 -1
- package/dist/esm/bcm-time-picker.entry.js +1 -1
- package/dist/esm/bcm-toast.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +1 -1
- package/dist/esm/floating-ui-e7341329.js +1 -1
- package/dist/esm/input-template-e1df6efd.js +1 -1
- package/dist/esm/label-template-d74fe788.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/old-bcm-popover.entry.js +1 -1
- package/dist/esm/string-helper-6bd24967.js +1 -1
- package/dist/esm/tooltip-helper-10b64c23.js +1 -1
- package/dist/types/components/atoms/chip/chip-group.d.ts +22 -0
- package/dist/types/components/atoms/chip/chip.d.ts +18 -13
- package/dist/types/components.d.ts +47 -4
- package/package.json +1 -1
- package/dist/bromcom-ui/p-111c4b6a.entry.js +0 -5
- package/dist/bromcom-ui/p-121eca04.entry.js +0 -5
- package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
- package/dist/bromcom-ui/p-55837df1.entry.js +0 -5
- package/dist/bromcom-ui/p-8c62e1ca.entry.js +0 -5
- package/dist/bromcom-ui/p-9d23288e.entry.js +0 -5
- package/dist/bromcom-ui/p-b4f40047.entry.js +0 -5
- package/dist/bromcom-ui/p-b5ba17a4.entry.js +0 -13
- package/dist/bromcom-ui/p-b85bdadc.entry.js +0 -5
- package/dist/bromcom-ui/p-cbb3c1f0.entry.js +0 -5
- package/dist/bromcom-ui/p-d155cf69.entry.js +0 -5
- package/dist/bromcom-ui/p-f3d550ed.entry.js +0 -5
- package/dist/bromcom-ui/p-fdc8effc.entry.js +0 -5
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -139
- package/dist/cjs/bcm-button_7.cjs.entry.js +0 -1521
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -74
- package/dist/cjs/bcm-input.cjs.entry.js +0 -370
- package/dist/cjs/bcm-list.cjs.entry.js +0 -1607
- package/dist/cjs/bcm-rc-overflow_2.cjs.entry.js +0 -2443
- package/dist/cjs/bcm-typography.cjs.entry.js +0 -21
- package/dist/cjs/index-906fb4e5.js +0 -540
- package/dist/esm/bcm-avatar_2.entry.js +0 -134
- package/dist/esm/bcm-button_7.entry.js +0 -1511
- package/dist/esm/bcm-input.entry.js +0 -366
- package/dist/esm/bcm-rc-overflow_2.entry.js +0 -2438
- package/dist/esm/bcm-typography.entry.js +0 -17
- package/dist/esm/index-6310a048.js +0 -537
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-ddfd6d8f.js');
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const generate = require('./generate-21143214.js');
|
|
12
|
-
const bcm = require('./bcm-
|
|
12
|
+
const bcm = require('./bcm-ab921827.js');
|
|
13
13
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
14
14
|
require('./colors-e1d142ad.js');
|
|
15
15
|
|
|
@@ -27,8 +27,8 @@ const BcmPopconfirm = class {
|
|
|
27
27
|
this.status = 'warning';
|
|
28
28
|
this.cancelText = "No";
|
|
29
29
|
this.okeyText = "Yes";
|
|
30
|
-
this.placement = bcm.Bcm.Placement.top;
|
|
31
|
-
this.trigger = bcm.Bcm.TriggerType.click;
|
|
30
|
+
this.placement = bcm.Bcm$1.Placement.top;
|
|
31
|
+
this.trigger = bcm.Bcm$1.TriggerType.click;
|
|
32
32
|
this.open = false;
|
|
33
33
|
this.hidden = false;
|
|
34
34
|
}
|
|
@@ -11,12 +11,12 @@ const colorHelper = require('./color-helper-d6d2028b.js');
|
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
13
|
require('./number-helper-08a7ff70.js');
|
|
14
|
-
const stringHelper = require('./string-helper-
|
|
14
|
+
const stringHelper = require('./string-helper-d681e5c7.js');
|
|
15
15
|
require('./validators-6a0077a8.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
|
-
const bcm = require('./bcm-
|
|
17
|
+
const bcm = require('./bcm-ab921827.js');
|
|
18
18
|
const utils = require('./utils-fc077139.js');
|
|
19
|
-
const floatingUi = require('./floating-ui-
|
|
19
|
+
const floatingUi = require('./floating-ui-c9fc2202.js');
|
|
20
20
|
require('./colors-56282b00.js');
|
|
21
21
|
require('./colors-e1d142ad.js');
|
|
22
22
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
@@ -158,8 +158,8 @@ const BcmPopover = class {
|
|
|
158
158
|
this._id = generate.Generate.UID();
|
|
159
159
|
this.message = "";
|
|
160
160
|
this.content = "";
|
|
161
|
-
this.placement = bcm.Bcm
|
|
162
|
-
this.trigger = bcm.Bcm
|
|
161
|
+
this.placement = bcm.Bcm.Placement.top;
|
|
162
|
+
this.trigger = bcm.Bcm.TriggerType.click;
|
|
163
163
|
this.open = false;
|
|
164
164
|
this.color = "white";
|
|
165
165
|
this.openDelay = 0;
|
|
@@ -10,7 +10,7 @@ const index = require('./index-ddfd6d8f.js');
|
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const colorHelper = require('./color-helper-d6d2028b.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
|
-
const bcm = require('./bcm-
|
|
13
|
+
const bcm = require('./bcm-ab921827.js');
|
|
14
14
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
15
15
|
require('./colors-56282b00.js');
|
|
16
16
|
require('./utils-fc077139.js');
|
|
@@ -49,7 +49,7 @@ const BcmProgress = class {
|
|
|
49
49
|
this._id = generate.Generate.UID();
|
|
50
50
|
this.value = 0;
|
|
51
51
|
this.max = 100;
|
|
52
|
-
this.size = bcm.Bcm.Size.medium;
|
|
52
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
53
53
|
this.type = "line-rounded";
|
|
54
54
|
this.info = null;
|
|
55
55
|
this.error = false;
|
|
@@ -11,11 +11,11 @@ require('./color-helper-d6d2028b.js');
|
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
13
|
require('./number-helper-08a7ff70.js');
|
|
14
|
-
require('./string-helper-
|
|
14
|
+
require('./string-helper-d681e5c7.js');
|
|
15
15
|
require('./validators-6a0077a8.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
17
|
const utils = require('./utils-fc077139.js');
|
|
18
|
-
const bcm = require('./bcm-
|
|
18
|
+
const bcm = require('./bcm-ab921827.js');
|
|
19
19
|
const captionTemplate = require('./caption-template-8d099fd6.js');
|
|
20
20
|
const index$1 = require('./index-fdbf5226.js');
|
|
21
21
|
require('./types-cc4adee7.js');
|
|
@@ -44,18 +44,18 @@ const BcmRadioGroup = class {
|
|
|
44
44
|
this.name = undefined;
|
|
45
45
|
this.value = null;
|
|
46
46
|
this.defaultValue = undefined;
|
|
47
|
-
this.size = bcm.Bcm
|
|
47
|
+
this.size = bcm.Bcm.Size.medium;
|
|
48
48
|
this.disabled = undefined;
|
|
49
49
|
this.hidden = false;
|
|
50
50
|
this.required = false;
|
|
51
51
|
this.gap = undefined;
|
|
52
|
-
this.direction = bcm.Bcm
|
|
52
|
+
this.direction = bcm.Bcm.Direction.horizontal;
|
|
53
53
|
this.fullWidth = false;
|
|
54
54
|
this.items = [];
|
|
55
55
|
this.caption = undefined;
|
|
56
56
|
this.noCaption = false;
|
|
57
57
|
this.captionError = undefined;
|
|
58
|
-
this.captionType = bcm.Bcm
|
|
58
|
+
this.captionType = bcm.Bcm.Status.default;
|
|
59
59
|
this.captionCache = undefined;
|
|
60
60
|
this.captionTypeCache = undefined;
|
|
61
61
|
}
|
|
@@ -144,7 +144,7 @@ const BcmRadioGroup = class {
|
|
|
144
144
|
render() {
|
|
145
145
|
var _a, _b;
|
|
146
146
|
const { direction, fullWidth, gap, label, size, required, disabled, caption, captionError, captionType, noCaption } = this;
|
|
147
|
-
return (index.h(index.Host, { role: "radio-group", class: "tw-mb-2 tw-flex tw-flex-col" }, label && index.h("bcm-label", { type: captionType, value: label, required: required }), index.h("div", { class: index$1.classnames("tw-flex tw-flex-wrap", direction == bcm.Bcm
|
|
147
|
+
return (index.h(index.Host, { role: "radio-group", class: "tw-mb-2 tw-flex tw-flex-col" }, label && index.h("bcm-label", { type: captionType, value: label, required: required }), index.h("div", { class: index$1.classnames("tw-flex tw-flex-wrap", direction == bcm.Bcm.Direction.horizontal ? "tw-flex-row" : "tw-flex-col", fullWidth && "tw-w-full"), style: { "gap": gap } }, index.h("slot", null), ((_a = this.Items) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
148
148
|
((_b = this.Items) === null || _b === void 0 ? void 0 : _b.map(item => (index.h("bcm-radio", { id: item.id, value: item.value, disabled: disabled || item.disabled, checked: item.checked, color: item.color, size: size }, item.label))))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
149
149
|
}
|
|
150
150
|
get el() { return index.getElement(this); }
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-ddfd6d8f.js');
|
|
10
|
-
const bcm = require('./bcm-
|
|
10
|
+
const bcm = require('./bcm-ab921827.js');
|
|
11
11
|
require('./color-helper-d6d2028b.js');
|
|
12
12
|
require('./datetime-helper-eaf4fadb.js');
|
|
13
13
|
const generate = require('./generate-21143214.js');
|
|
14
14
|
require('./number-helper-08a7ff70.js');
|
|
15
|
-
require('./string-helper-
|
|
15
|
+
require('./string-helper-d681e5c7.js');
|
|
16
16
|
require('./validators-6a0077a8.js');
|
|
17
17
|
require('./element-dragger-a8562f82.js');
|
|
18
18
|
const index$1 = require('./index-fdbf5226.js');
|
|
@@ -31,7 +31,7 @@ const BcmRadio = class {
|
|
|
31
31
|
this.checked = undefined;
|
|
32
32
|
this.value = undefined;
|
|
33
33
|
this.disabled = false;
|
|
34
|
-
this.size = bcm.Bcm
|
|
34
|
+
this.size = bcm.Bcm.Size.medium;
|
|
35
35
|
this.color = undefined;
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
@@ -39,13 +39,13 @@ const BcmRadio = class {
|
|
|
39
39
|
return (index.h(index.Host, { class: index$1.classnames("tw-cursor-pointer tw-font-sans tw-mb-1.5 tw-mt-1", {
|
|
40
40
|
"tw-cursor-pointer tw-text-slate-600": !disabled,
|
|
41
41
|
"tw-cursor-not-allowed tw-text-slate-400": disabled,
|
|
42
|
-
"tw-text-1": size === bcm.Bcm
|
|
43
|
-
"tw-text-2.5": size === bcm.Bcm
|
|
44
|
-
"tw-text-4": size === bcm.Bcm
|
|
42
|
+
"tw-text-1": size === bcm.Bcm.Size.small,
|
|
43
|
+
"tw-text-2.5": size === bcm.Bcm.Size.medium,
|
|
44
|
+
"tw-text-4": size === bcm.Bcm.Size.large,
|
|
45
45
|
}), style: (generate.Generate.getTwColor(color)) }, index.h("label", { class: index$1.classnames("tw-inline-flex tw-flex-row tw-gap-2 tw-mr-2 tw-items-center", disabled ? "tw-cursor-not-allowed" : "tw-cursor-pointer"), htmlFor: _id + '-input' }, index.h("input", { id: _id + '-input', type: "radio", value: value, checked: checked, disabled: disabled, class: index$1.classnames("tw-flex tw-items-center tw-justify-center", "tw-relative tw-appearance-none tw-border tw-rounded-full tw-cursor-pointer tw-transition tw-ease-in-out ", "tw-m-0", "before:tw-content-[''] before:tw-absolute before:tw-rounded-full", {
|
|
46
|
-
"tw-w-4 tw-h-4 before:tw-w-2.5 before:tw-h-2.5": size === bcm.Bcm
|
|
47
|
-
"tw-w-3.5 tw-h-3.5 before:tw-w-2 before:tw-h-2": size === bcm.Bcm
|
|
48
|
-
"tw-w-4.5 tw-h-4.5 before:tw-w-3 before:tw-h-3": size === bcm.Bcm
|
|
46
|
+
"tw-w-4 tw-h-4 before:tw-w-2.5 before:tw-h-2.5": size === bcm.Bcm.Size.medium,
|
|
47
|
+
"tw-w-3.5 tw-h-3.5 before:tw-w-2 before:tw-h-2": size === bcm.Bcm.Size.small,
|
|
48
|
+
"tw-w-4.5 tw-h-4.5 before:tw-w-3 before:tw-h-3": size === bcm.Bcm.Size.large,
|
|
49
49
|
}, "focus:tw-outline-none focus:tw-shadow-outline",
|
|
50
50
|
// default
|
|
51
51
|
`tw-border-slate-400 tw-bg-slate-50`, `checked:tw-border-default-500`, `checked:before:tw-bg-default-500`,
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-ddfd6d8f.js');
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const generate = require('./generate-21143214.js');
|
|
12
|
-
const bcm = require('./bcm-
|
|
12
|
+
const bcm = require('./bcm-ab921827.js');
|
|
13
13
|
const utils = require('./utils-fc077139.js');
|
|
14
14
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
15
15
|
require('./colors-e1d142ad.js');
|
|
@@ -27,7 +27,7 @@ const BcmRange = class {
|
|
|
27
27
|
this.value = 0;
|
|
28
28
|
this.height = "326px";
|
|
29
29
|
this.name = undefined;
|
|
30
|
-
this.direction = bcm.Bcm.Direction.horizontal;
|
|
30
|
+
this.direction = bcm.Bcm$1.Direction.horizontal;
|
|
31
31
|
this._prefix = undefined;
|
|
32
32
|
this._suffix = undefined;
|
|
33
33
|
this.multiple = false;
|
|
@@ -52,7 +52,7 @@ const BcmRange = class {
|
|
|
52
52
|
}
|
|
53
53
|
generate.Generate.createComponent('bcm-tooltip-box', {
|
|
54
54
|
id: 'box-' + this._id,
|
|
55
|
-
placement: this.direction === bcm.Bcm.Direction.horizontal ? bcm.Bcm.Placement.top : bcm.Bcm.Placement.left,
|
|
55
|
+
placement: this.direction === bcm.Bcm$1.Direction.horizontal ? bcm.Bcm$1.Placement.top : bcm.Bcm$1.Placement.left,
|
|
56
56
|
color: 'blue'
|
|
57
57
|
}, null);
|
|
58
58
|
}
|
|
@@ -173,7 +173,7 @@ const BcmRange = class {
|
|
|
173
173
|
height: '100%',
|
|
174
174
|
width: height,
|
|
175
175
|
};
|
|
176
|
-
return (index.h(index.Host, { class: hostClasses, style: direction == bcm.Bcm.Direction.vertical && { height: height } }, index.h("div", { class: "bcm-range__container", style: direction == bcm.Bcm.Direction.vertical && verticalStyle }, index.h("input", { type: "range", id: `input-left-${this._id}`, min: leftMin, max: max, step: step, onChange: (event) => { this.syncValues('left', event); this.handleChange(); }, onInput: (event) => { this.syncValues('left', event); this.getTooltip('left').hide(); this.getTooltip('left').show(); }, onMouseOver: () => { this.getThumb('left').classList.add('hover'); this.getTooltip('left').show(); }, onMouseOut: () => { this.getThumb('left').classList.remove('hover'); this.getTooltip('left').hide(); }, value: this.leftValue, class: { 'single': !this.multiple } }), index.h("input", { type: "range", id: `input-right-${this._id}`, min: min, max: max, onChange: (event) => { this.syncValues('right', event); this.handleChange(); }, onInput: (event) => { this.syncValues('right', event); this.getTooltip('right').hide(); this.getTooltip('right').show(); }, onMouseOver: () => { this.getThumb('right').classList.add('hover'); this.getTooltip('right').show(); }, onMouseOut: () => { this.getThumb('right').classList.remove('hover'); this.getTooltip('right').hide(); }, step: step, value: this.rightValue }), index.h("div", { class: "bcm-range__container-bar" }, index.h("div", { class: "ticks" }, index.h(Ticks, null)), index.h("div", { class: "bcm-range__container-bar-track" }), index.h("div", { class: "bcm-range__container-bar-range", id: "bcm-range__thumb-range" }), index.h("div", { class: "bcm-range__container-bar-thumb left", id: `bcm-range__thumb-left-${this._id}` }, index.h("span", null)), index.h("div", { class: "bcm-range__container-bar-thumb right", id: `bcm-range__thumb-right-${this._id}` }, index.h("span", null))), index.h("div", { class: "touch" }, index.h(Touch, null)))));
|
|
176
|
+
return (index.h(index.Host, { class: hostClasses, style: direction == bcm.Bcm$1.Direction.vertical && { height: height } }, index.h("div", { class: "bcm-range__container", style: direction == bcm.Bcm$1.Direction.vertical && verticalStyle }, index.h("input", { type: "range", id: `input-left-${this._id}`, min: leftMin, max: max, step: step, onChange: (event) => { this.syncValues('left', event); this.handleChange(); }, onInput: (event) => { this.syncValues('left', event); this.getTooltip('left').hide(); this.getTooltip('left').show(); }, onMouseOver: () => { this.getThumb('left').classList.add('hover'); this.getTooltip('left').show(); }, onMouseOut: () => { this.getThumb('left').classList.remove('hover'); this.getTooltip('left').hide(); }, value: this.leftValue, class: { 'single': !this.multiple } }), index.h("input", { type: "range", id: `input-right-${this._id}`, min: min, max: max, onChange: (event) => { this.syncValues('right', event); this.handleChange(); }, onInput: (event) => { this.syncValues('right', event); this.getTooltip('right').hide(); this.getTooltip('right').show(); }, onMouseOver: () => { this.getThumb('right').classList.add('hover'); this.getTooltip('right').show(); }, onMouseOut: () => { this.getThumb('right').classList.remove('hover'); this.getTooltip('right').hide(); }, step: step, value: this.rightValue }), index.h("div", { class: "bcm-range__container-bar" }, index.h("div", { class: "ticks" }, index.h(Ticks, null)), index.h("div", { class: "bcm-range__container-bar-track" }), index.h("div", { class: "bcm-range__container-bar-range", id: "bcm-range__thumb-range" }), index.h("div", { class: "bcm-range__container-bar-thumb left", id: `bcm-range__thumb-left-${this._id}` }, index.h("span", null)), index.h("div", { class: "bcm-range__container-bar-thumb right", id: `bcm-range__thumb-right-${this._id}` }, index.h("span", null))), index.h("div", { class: "touch" }, index.h(Touch, null)))));
|
|
177
177
|
}
|
|
178
178
|
get el() { return index.getElement(this); }
|
|
179
179
|
};
|
|
@@ -8,10 +8,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-ddfd6d8f.js');
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
|
-
const stringHelper = require('./string-helper-
|
|
11
|
+
const stringHelper = require('./string-helper-d681e5c7.js');
|
|
12
12
|
const utils = require('./utils-fc077139.js');
|
|
13
13
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
14
|
-
require('./bcm-
|
|
14
|
+
require('./bcm-ab921827.js');
|
|
15
15
|
|
|
16
16
|
const selectCss = "@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}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-block;width:100%;margin:0}:host(.hidden){display:none}.container{display:block;max-width:256px;position:relative}.container.full-width{width:100%;max-width:100%}.selected{width:100%;box-sizing:border-box;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);display:flex;justify-content:space-between;align-items:center;border:1px solid var(--bcm-color-grey-5);user-select:none;cursor:pointer}.selected:hover:not(.disabled){border-color:var(--bcm-color-prime-blue-5)}.selected:hover:not(.disabled) .select-clear-button{opacity:1}.selected:focus:not(.disabled){border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.selected:focus:not(.disabled) .select-clear-button{opacity:1}.selected:focus{outline:none}.selected.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8);cursor:not-allowed}.selected .buttons{padding:8px;height:100%;display:flex;align-items:center;justify-content:center}.selected .selected-text{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;padding:0 8px;width:100%}.selected .selected-tags{padding:0 4px;height:100%}.selected .tag-container{height:100%;display:flex;align-items:center;justify-content:flex-start;grid-gap:2px}.selected .tag-container>span{height:100%;align-items:center;justify-content:flex-start;display:flex;grid-gap:2px}.selected .tag-container .tag{max-width:200px}.selected .tag-container #other-tag{cursor:pointer}.selected .open,.selected .close{display:inline-flex}.selected .close{transform:rotate(180deg)}.selected .placeholder{color:var(--bcm-color-grey-6);user-select:none;font-size:14px;height:100%;display:flex;align-items:center;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.options-viewport{display:inline-block}.option-container{display:block;position:absolute;background-color:var(--bcm-color-grey-1);box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15);box-sizing:border-box;width:100%;z-index:10000}.option-container.alignment-left{left:0}.option-container.alignment-right{right:0}.option-container.hidden{display:none}.option-container .search{position:sticky;padding:8px;margin-bottom:4px}.option-container .search:after{content:\"\";position:absolute;bottom:0;height:1px;width:calc(100% - 16px);background-color:var(--bcm-color-grey-5)}.options-viewport{display:block}.options-viewport bcm-select-option,.options-viewport ::slotted(bcm-select-option){white-space:normal}.options-viewport.hidden{display:none}.options-viewport.vertical{height:fit-content;max-height:200px}.options-viewport.horizontal:not(.flex){overflow-x:auto;width:100%}.options-viewport.horizontal:not(.flex) bcm-select-option,.options-viewport.horizontal:not(.flex) ::slotted(bcm-select-option){white-space:nowrap}.items{display:flex;flex-direction:column}.buttons{display:flex}.select-clear-button{display:inline-flex;align-items:center;outline:none;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;opacity:0}.label{display:block;color:var(--bcm-color-grey-9)}.caption-area{min-height:20px}.input-caption{display:block}.selected-large{height:40px}.selected-medium{height:32px}.selected-small{height:24px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .selected{border:1px solid var(--bcm-color-red-6) !important}";
|
|
17
17
|
|
|
@@ -11,11 +11,11 @@ require('./color-helper-d6d2028b.js');
|
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
13
|
require('./number-helper-08a7ff70.js');
|
|
14
|
-
require('./string-helper-
|
|
14
|
+
require('./string-helper-d681e5c7.js');
|
|
15
15
|
require('./validators-6a0077a8.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
17
|
const utils = require('./utils-fc077139.js');
|
|
18
|
-
const bcm = require('./bcm-
|
|
18
|
+
const bcm = require('./bcm-ab921827.js');
|
|
19
19
|
const index = require('./index-fdbf5226.js');
|
|
20
20
|
require('./types-cc4adee7.js');
|
|
21
21
|
require('./types-7523fd99.js');
|
|
@@ -55,9 +55,9 @@ const BcmStepper = class {
|
|
|
55
55
|
this.bcmStepperBeforeChange = index$1.createEvent(this, "bcm-step-before-change", 7);
|
|
56
56
|
this.hidden = false;
|
|
57
57
|
this._id = generate.Generate.UID();
|
|
58
|
-
this.direction = bcm.Bcm
|
|
58
|
+
this.direction = bcm.Bcm.Direction.horizontal;
|
|
59
59
|
this.linear = false;
|
|
60
|
-
this.size = bcm.Bcm
|
|
60
|
+
this.size = bcm.Bcm.Size.medium;
|
|
61
61
|
this.icon = false;
|
|
62
62
|
this.active = 1;
|
|
63
63
|
this.stepperId = generate.Generate.UID();
|
|
@@ -10,7 +10,7 @@ const index = require('./index-ddfd6d8f.js');
|
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-137dded1.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
|
-
const bcm = require('./bcm-
|
|
13
|
+
const bcm = require('./bcm-ab921827.js');
|
|
14
14
|
const captionTemplate = require('./caption-template-8d099fd6.js');
|
|
15
15
|
const utils = require('./utils-fc077139.js');
|
|
16
16
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
@@ -42,7 +42,7 @@ const BcmSwitch = class {
|
|
|
42
42
|
this.name = undefined;
|
|
43
43
|
this.disabled = false;
|
|
44
44
|
this.required = false;
|
|
45
|
-
this.size = bcm.Bcm.Size.medium;
|
|
45
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
46
46
|
this.readonly = false;
|
|
47
47
|
this.activeIcon = undefined;
|
|
48
48
|
this.activeText = undefined;
|
|
@@ -55,7 +55,7 @@ const BcmSwitch = class {
|
|
|
55
55
|
this.caption = undefined;
|
|
56
56
|
this.noCaption = false;
|
|
57
57
|
this.captionError = undefined;
|
|
58
|
-
this.captionType = bcm.Bcm.Status.default;
|
|
58
|
+
this.captionType = bcm.Bcm$1.Status.default;
|
|
59
59
|
this.captionCache = undefined;
|
|
60
60
|
this.captionTypeCache = undefined;
|
|
61
61
|
}
|
|
@@ -111,7 +111,7 @@ const BcmSwitch = class {
|
|
|
111
111
|
return Promise.resolve();
|
|
112
112
|
}
|
|
113
113
|
handleKeyUp(ev) {
|
|
114
|
-
if (ev.keyCode == bcm.Bcm.KeyCode.space || ev.keyCode == bcm.Bcm.KeyCode.enter) {
|
|
114
|
+
if (ev.keyCode == bcm.Bcm$1.KeyCode.space || ev.keyCode == bcm.Bcm$1.KeyCode.enter) {
|
|
115
115
|
if (!this.disabled && !this.readonly) {
|
|
116
116
|
this.inputElement.checked = !this.inputElement.checked;
|
|
117
117
|
this.handleChange();
|
|
@@ -134,10 +134,10 @@ const BcmSwitch = class {
|
|
|
134
134
|
disabled,
|
|
135
135
|
readonly
|
|
136
136
|
});
|
|
137
|
-
const bcmSwitchLabel = index$1.classnames('bcm-switch__label', 'input-size-' + bcm.Bcm.Size[size]);
|
|
137
|
+
const bcmSwitchLabel = index$1.classnames('bcm-switch__label', 'input-size-' + bcm.Bcm$1.Size[size]);
|
|
138
138
|
const bcmSwitchContainer = index$1.classnames('bcm-switch__container', `bcm-switch__container--${this.labelPosition}`);
|
|
139
|
-
const switchText = (text) => (size != bcm.Bcm.Size.small && (activeText || inactiveText)) && (index.h("span", { class: text + '-text' }, text == 'active' ? activeText : inactiveText));
|
|
140
|
-
const switchIcon = (text) => (size != bcm.Bcm.Size.small && (activeIcon || inactiveIcon)) && index.h("bcm-icon", { icon: text == 'active' ? activeIcon : inactiveIcon, class: ' icon-' + text });
|
|
139
|
+
const switchText = (text) => (size != bcm.Bcm$1.Size.small && (activeText || inactiveText)) && (index.h("span", { class: text + '-text' }, text == 'active' ? activeText : inactiveText));
|
|
140
|
+
const switchIcon = (text) => (size != bcm.Bcm$1.Size.small && (activeIcon || inactiveIcon)) && index.h("bcm-icon", { icon: text == 'active' ? activeIcon : inactiveIcon, class: ' icon-' + text });
|
|
141
141
|
return (index.h(index.Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), class: bcmSwitchClasses }, index.h("span", { hidden: true }, index.h("slot", null)), index.h("div", { class: bcmSwitchContainer }, label && index.h("bcm-label", { htmlFor: _internal_id, tooltip: this.tooltip, type: captionType, value: label, required: required }), index.h("input", { id: _internal_id, onChange: () => this.handleChange(), ref: el => (this.inputElement = el), checked: checked, type: "checkbox", class: "switch", disabled: disabled || readonly }), index.h("label", { htmlFor: _internal_id, class: bcmSwitchLabel }, switchText('inactive'), index.h("div", { class: classes }, switchIcon('active'), index.h("span", { class: "handle" }, pending && index.h("span", { class: "switch-spinner" })), switchIcon('inactive')), switchText('active'))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
142
142
|
}
|
|
143
143
|
get el() { return index.getElement(this); }
|
|
@@ -11,11 +11,11 @@ require('./color-helper-d6d2028b.js');
|
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
13
|
require('./number-helper-08a7ff70.js');
|
|
14
|
-
require('./string-helper-
|
|
14
|
+
require('./string-helper-d681e5c7.js');
|
|
15
15
|
require('./validators-6a0077a8.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
17
|
const utils = require('./utils-fc077139.js');
|
|
18
|
-
const bcm = require('./bcm-
|
|
18
|
+
const bcm = require('./bcm-ab921827.js');
|
|
19
19
|
require('./colors-56282b00.js');
|
|
20
20
|
require('./colors-e1d142ad.js');
|
|
21
21
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
@@ -27,7 +27,7 @@ const BcmTabGroup = class {
|
|
|
27
27
|
this._id = generate.Generate.UID();
|
|
28
28
|
this.active = "1";
|
|
29
29
|
this.color = "blue";
|
|
30
|
-
this.size = bcm.Bcm
|
|
30
|
+
this.size = bcm.Bcm.Size.medium;
|
|
31
31
|
}
|
|
32
32
|
get tabItems() {
|
|
33
33
|
return this.el.querySelectorAll("bcm-tab-item");
|
|
@@ -11,10 +11,10 @@ require('./color-helper-d6d2028b.js');
|
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
13
|
require('./number-helper-08a7ff70.js');
|
|
14
|
-
require('./string-helper-
|
|
14
|
+
require('./string-helper-d681e5c7.js');
|
|
15
15
|
require('./validators-6a0077a8.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
|
-
const bcm = require('./bcm-
|
|
17
|
+
const bcm = require('./bcm-ab921827.js');
|
|
18
18
|
const index$1 = require('./index-fdbf5226.js');
|
|
19
19
|
require('./colors-56282b00.js');
|
|
20
20
|
require('./utils-fc077139.js');
|
|
@@ -29,7 +29,7 @@ const BcmTabItemHeader = class {
|
|
|
29
29
|
this.disabled = false;
|
|
30
30
|
this.index = undefined;
|
|
31
31
|
this.color = "blue";
|
|
32
|
-
this.size = bcm.Bcm
|
|
32
|
+
this.size = bcm.Bcm.Size.medium;
|
|
33
33
|
}
|
|
34
34
|
handleClick() {
|
|
35
35
|
var _a;
|
|
@@ -41,17 +41,17 @@ const BcmTabItemHeader = class {
|
|
|
41
41
|
const { color, size, active, disabled } = this;
|
|
42
42
|
let fontSize, padding, gap;
|
|
43
43
|
switch (size) {
|
|
44
|
-
case bcm.Bcm
|
|
44
|
+
case bcm.Bcm.Size.small:
|
|
45
45
|
fontSize = "2";
|
|
46
46
|
padding = "1";
|
|
47
47
|
gap = "2";
|
|
48
48
|
break;
|
|
49
|
-
case bcm.Bcm
|
|
49
|
+
case bcm.Bcm.Size.medium:
|
|
50
50
|
fontSize = "3";
|
|
51
51
|
padding = "2";
|
|
52
52
|
gap = "3";
|
|
53
53
|
break;
|
|
54
|
-
case bcm.Bcm
|
|
54
|
+
case bcm.Bcm.Size.large:
|
|
55
55
|
fontSize = "4";
|
|
56
56
|
padding = "3";
|
|
57
57
|
gap = "4";
|
|
@@ -11,10 +11,10 @@ require('./color-helper-d6d2028b.js');
|
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
13
|
require('./number-helper-08a7ff70.js');
|
|
14
|
-
require('./string-helper-
|
|
14
|
+
require('./string-helper-d681e5c7.js');
|
|
15
15
|
require('./validators-6a0077a8.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
|
-
require('./bcm-
|
|
17
|
+
require('./bcm-ab921827.js');
|
|
18
18
|
require('./colors-56282b00.js');
|
|
19
19
|
require('./utils-fc077139.js');
|
|
20
20
|
require('./colors-e1d142ad.js');
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index$1 = require('./index-ddfd6d8f.js');
|
|
10
10
|
const generate = require('./generate-21143214.js');
|
|
11
|
-
const bcm = require('./bcm-
|
|
11
|
+
const bcm = require('./bcm-ab921827.js');
|
|
12
12
|
const index = require('./index-fdbf5226.js');
|
|
13
13
|
const numberHelper = require('./number-helper-08a7ff70.js');
|
|
14
14
|
const utils = require('./utils-fc077139.js');
|
|
@@ -18,9 +18,9 @@ require('./colors-e1d142ad.js');
|
|
|
18
18
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
19
19
|
|
|
20
20
|
const TagTemplate = ({ _id, color, customStyle, size, checked, hidden, value, type, onDismiss, onSelect }) => {
|
|
21
|
-
!size && (size = bcm.Bcm.FontSize['size-1']);
|
|
21
|
+
!size && (size = bcm.Bcm$1.FontSize['size-1']);
|
|
22
22
|
const getColor = (color) => {
|
|
23
|
-
if ((type === bcm.Bcm.TagType.basic || type == bcm.Bcm.TagType.dismissable) && types.ColorProps[color])
|
|
23
|
+
if ((type === bcm.Bcm$1.TagType.basic || type == bcm.Bcm$1.TagType.dismissable) && types.ColorProps[color])
|
|
24
24
|
return {
|
|
25
25
|
color: utils.extractColor(colors.ColorPalette, types.ColorProps[color] + '-6'),
|
|
26
26
|
borderColor: utils.extractColor(colors.ColorPalette, types.ColorProps[color] + '-3'),
|
|
@@ -29,10 +29,10 @@ const TagTemplate = ({ _id, color, customStyle, size, checked, hidden, value, ty
|
|
|
29
29
|
};
|
|
30
30
|
const getSize = (size, returnNumber = false) => {
|
|
31
31
|
if (numberHelper.NumberHelper.isNumber(size)) {
|
|
32
|
-
size = bcm.Bcm.FontSize["size-" + size] || bcm.Bcm.FontSize["size-4"];
|
|
32
|
+
size = bcm.Bcm$1.FontSize["size-" + size] || bcm.Bcm$1.FontSize["size-4"];
|
|
33
33
|
}
|
|
34
34
|
if (returnNumber) {
|
|
35
|
-
return +(bcm.Bcm.FontSizeValue[size] || bcm.Bcm.FontSizeValue['size-4']) + 2;
|
|
35
|
+
return +(bcm.Bcm$1.FontSizeValue[size] || bcm.Bcm$1.FontSizeValue['size-4']) + 2;
|
|
36
36
|
}
|
|
37
37
|
return size;
|
|
38
38
|
};
|
|
@@ -44,11 +44,11 @@ const TagTemplate = ({ _id, color, customStyle, size, checked, hidden, value, ty
|
|
|
44
44
|
index$1.h("span", { hidden: true },
|
|
45
45
|
index$1.h("slot", null)),
|
|
46
46
|
index$1.h("span", { class: classes, style: getColor(color), onClick: (e) => onSelect(e) },
|
|
47
|
-
type === bcm.Bcm.TagType.add && (index$1.h("span", { class: "left" },
|
|
47
|
+
type === bcm.Bcm$1.TagType.add && (index$1.h("span", { class: "left" },
|
|
48
48
|
index$1.h("bcm-icon", { icon: "far fa-plus" }))),
|
|
49
|
-
type === bcm.Bcm.TagType.checkable && index$1.h("input", { type: "checkbox", checked: checked }),
|
|
49
|
+
type === bcm.Bcm$1.TagType.checkable && index$1.h("input", { type: "checkbox", checked: checked }),
|
|
50
50
|
index$1.h("span", { class: "value", style: customStyle }, value),
|
|
51
|
-
type === bcm.Bcm.TagType.dismissable && (index$1.h("span", { class: "right close-button", onClick: (e) => onDismiss(e) },
|
|
51
|
+
type === bcm.Bcm$1.TagType.dismissable && (index$1.h("span", { class: "right close-button", onClick: (e) => onDismiss(e) },
|
|
52
52
|
index$1.h("bcm-icon", { icon: "fal fa-times" }))))));
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -62,17 +62,17 @@ const BcmTag = class {
|
|
|
62
62
|
this._internal_id = generate.Generate.UID();
|
|
63
63
|
this.hidden = false;
|
|
64
64
|
this.value = '';
|
|
65
|
-
this.type = bcm.Bcm.TagType.basic;
|
|
65
|
+
this.type = bcm.Bcm$1.TagType.basic;
|
|
66
66
|
this.checked = false;
|
|
67
67
|
this.color = undefined;
|
|
68
68
|
this.customStyle = undefined;
|
|
69
69
|
this.itemObject = undefined;
|
|
70
|
-
this.size = bcm.Bcm.FontSize['size-1'];
|
|
70
|
+
this.size = bcm.Bcm$1.FontSize['size-1'];
|
|
71
71
|
this.closeFunc = (e) => e;
|
|
72
72
|
this.selectFunc = (e) => e;
|
|
73
73
|
}
|
|
74
74
|
handleClick() {
|
|
75
|
-
this.type === bcm.Bcm.TagType.checkable && this.handleChecked();
|
|
75
|
+
this.type === bcm.Bcm$1.TagType.checkable && this.handleChecked();
|
|
76
76
|
}
|
|
77
77
|
handleClose() {
|
|
78
78
|
this.tagDismissable.emit(this.el);
|
|
@@ -83,7 +83,7 @@ const BcmTag = class {
|
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
85
|
const { type, color, value, customStyle, size, hidden, checked } = this;
|
|
86
|
-
return (index$1.h(TagTemplate, { size: size, hidden: hidden, color: color, customStyle: customStyle, checked: checked, value: value, type: bcm.Bcm.TagType[type], onSelect: (e) => { this.bcmTagSelect.emit(e); this.selectFunc({ event: e, id: this._id }); }, onDismiss: (e) => { this.handleClose(); this.closeFunc(e); } }));
|
|
86
|
+
return (index$1.h(TagTemplate, { size: size, hidden: hidden, color: color, customStyle: customStyle, checked: checked, value: value, type: bcm.Bcm$1.TagType[type], onSelect: (e) => { this.bcmTagSelect.emit(e); this.selectFunc({ event: e, id: this._id }); }, onDismiss: (e) => { this.handleClose(); this.closeFunc(e); } }));
|
|
87
87
|
}
|
|
88
88
|
get el() { return index$1.getElement(this); }
|
|
89
89
|
};
|
|
@@ -9,13 +9,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-ddfd6d8f.js');
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const colorHelper = require('./color-helper-d6d2028b.js');
|
|
12
|
-
const slotTemplate = require('./slot-template-
|
|
12
|
+
const slotTemplate = require('./slot-template-d70ea082.js');
|
|
13
13
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
14
14
|
require('./colors-56282b00.js');
|
|
15
15
|
require('./utils-fc077139.js');
|
|
16
16
|
require('./colors-e1d142ad.js');
|
|
17
|
-
require('./string-helper-
|
|
18
|
-
require('./bcm-
|
|
17
|
+
require('./string-helper-d681e5c7.js');
|
|
18
|
+
require('./bcm-ab921827.js');
|
|
19
19
|
|
|
20
20
|
const textCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .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}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-text{display:inline;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-text.hidden{display:none}.bcm-text__paragraph{margin:0;padding:0}.bcm-text__font-size-1{font-size:10px;line-height:calc(10px + 8px)}.bcm-text__font-size-2{font-size:12px;line-height:calc(12px + 8px)}.bcm-text__font-size-3{font-size:14px;line-height:calc(14px + 8px)}.bcm-text__font-size-4{font-size:16px;line-height:calc(16px + 8px)}.bcm-text__font-size-5{font-size:18px;line-height:calc(18px + 8px)}.bcm-text__font-size-6{font-size:20px;line-height:calc(20px + 8px)}.bcm-text__font-size-7{font-size:24px;line-height:calc(24px + 8px)}.bcm-text__font-size-8{font-size:32px;line-height:calc(32px + 8px)}.bcm-text__font-size-9{font-size:40px;line-height:calc(40px + 8px)}";
|
|
21
21
|
|
|
@@ -10,9 +10,9 @@ const index = require('./index-ddfd6d8f.js');
|
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-137dded1.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
|
-
const bcm = require('./bcm-
|
|
13
|
+
const bcm = require('./bcm-ab921827.js');
|
|
14
14
|
const captionTemplate = require('./caption-template-8d099fd6.js');
|
|
15
|
-
const inputTemplate = require('./input-template-
|
|
15
|
+
const inputTemplate = require('./input-template-1441e468.js');
|
|
16
16
|
const utils = require('./utils-fc077139.js');
|
|
17
17
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
18
18
|
require('./colors-e1d142ad.js');
|
|
@@ -59,9 +59,9 @@ const BcmTextarea = class {
|
|
|
59
59
|
this.caption = undefined;
|
|
60
60
|
this.noCaption = false;
|
|
61
61
|
this.captionError = undefined;
|
|
62
|
-
this.captionType = bcm.Bcm.Status.default;
|
|
62
|
+
this.captionType = bcm.Bcm$1.Status.default;
|
|
63
63
|
this.rows = 3;
|
|
64
|
-
this.size = bcm.Bcm.Size.medium;
|
|
64
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
65
65
|
this.disabled = undefined;
|
|
66
66
|
this.readonly = false;
|
|
67
67
|
this.clearable = undefined;
|
|
@@ -147,7 +147,7 @@ const BcmTextarea = class {
|
|
|
147
147
|
hidden,
|
|
148
148
|
'full-width': fullWidth,
|
|
149
149
|
});
|
|
150
|
-
return (index.h(index.Host, { class: hostClasses }, label && index.h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), index.h(inputTemplate.InputTemplate, { elementType: bcm.Bcm.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
|
|
150
|
+
return (index.h(index.Host, { class: hostClasses }, label && index.h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), index.h(inputTemplate.InputTemplate, { elementType: bcm.Bcm$1.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
|
|
151
151
|
}
|
|
152
152
|
get el() { return index.getElement(this); }
|
|
153
153
|
static get watchers() { return {
|
|
@@ -10,7 +10,7 @@ const index = require('./index-ddfd6d8f.js');
|
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-137dded1.js');
|
|
12
12
|
const generate = require('./generate-21143214.js');
|
|
13
|
-
const bcm = require('./bcm-
|
|
13
|
+
const bcm = require('./bcm-ab921827.js');
|
|
14
14
|
const utils = require('./utils-fc077139.js');
|
|
15
15
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
16
16
|
require('./colors-e1d142ad.js');
|
|
@@ -45,7 +45,7 @@ const BcmTimePicker = class {
|
|
|
45
45
|
this.captionError = undefined;
|
|
46
46
|
this.captionType = 'default';
|
|
47
47
|
this.alignment = undefined;
|
|
48
|
-
this.placement = bcm.Bcm.Placement['bottom-start'];
|
|
48
|
+
this.placement = bcm.Bcm$1.Placement['bottom-start'];
|
|
49
49
|
this.linkedComponent = undefined;
|
|
50
50
|
this.clearable = false;
|
|
51
51
|
}
|
|
@@ -9,8 +9,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-ddfd6d8f.js');
|
|
10
10
|
const index$1 = require('./index-fdbf5226.js');
|
|
11
11
|
const generate = require('./generate-21143214.js');
|
|
12
|
-
const stringHelper = require('./string-helper-
|
|
13
|
-
const bcm = require('./bcm-
|
|
12
|
+
const stringHelper = require('./string-helper-d681e5c7.js');
|
|
13
|
+
const bcm = require('./bcm-ab921827.js');
|
|
14
14
|
const utils = require('./utils-fc077139.js');
|
|
15
15
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
16
16
|
require('./colors-e1d142ad.js');
|
|
@@ -26,7 +26,7 @@ const BcmToast = class {
|
|
|
26
26
|
this.message = "";
|
|
27
27
|
this.description = "";
|
|
28
28
|
this.duration = 3000;
|
|
29
|
-
this.position = bcm.Bcm.Placement.bottom;
|
|
29
|
+
this.position = bcm.Bcm$1.Placement.bottom;
|
|
30
30
|
this.messageIcon = undefined;
|
|
31
31
|
this.viewButton = false;
|
|
32
32
|
this.closeButton = true;
|
|
@@ -68,12 +68,12 @@ const BcmToast = class {
|
|
|
68
68
|
"tw-p-4": !this.description,
|
|
69
69
|
"tw-p-6": this.description,
|
|
70
70
|
}, "tw-fixed tw-z-50", "tw-transform tw-transition tw-duration-300 tw-ease-in-out ", {
|
|
71
|
-
"tw-inset-x-0 tw-top-4 tw-mx-auto": this.position === bcm.Bcm.Placement.top,
|
|
72
|
-
"tw-inset-x-0 tw-bottom-4 tw-mx-auto": this.position === bcm.Bcm.Placement.bottom,
|
|
73
|
-
"tw-top-4 tw-left-4": this.position === bcm.Bcm.Placement["top-start"],
|
|
74
|
-
"tw-top-4 tw-right-4": this.position === bcm.Bcm.Placement["top-end"],
|
|
75
|
-
"tw-bottom-4 tw-left-4": this.position === bcm.Bcm.Placement["bottom-start"],
|
|
76
|
-
"tw-bottom-4 tw-right-4": this.position === bcm.Bcm.Placement["bottom-end"],
|
|
71
|
+
"tw-inset-x-0 tw-top-4 tw-mx-auto": this.position === bcm.Bcm$1.Placement.top,
|
|
72
|
+
"tw-inset-x-0 tw-bottom-4 tw-mx-auto": this.position === bcm.Bcm$1.Placement.bottom,
|
|
73
|
+
"tw-top-4 tw-left-4": this.position === bcm.Bcm$1.Placement["top-start"],
|
|
74
|
+
"tw-top-4 tw-right-4": this.position === bcm.Bcm$1.Placement["top-end"],
|
|
75
|
+
"tw-bottom-4 tw-left-4": this.position === bcm.Bcm$1.Placement["bottom-start"],
|
|
76
|
+
"tw-bottom-4 tw-right-4": this.position === bcm.Bcm$1.Placement["bottom-end"],
|
|
77
77
|
"tw-translate-y-0 tw-opacity-100 ": this.visibleContainer,
|
|
78
78
|
"tw-opacity-0": !this.visibleContainer,
|
|
79
79
|
"tw-translate-y-[-100%]": !this.visibleContainer && this.position.split("-")[0] === "top",
|