bromcom-ui 2.8.1-rc.0 → 2.8.1-rc.2
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-01a2410a.entry.js +5 -0
- package/dist/bromcom-ui/{p-b52fe89c.entry.js → p-026a22c1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e6cd7c5.entry.js → p-103314ff.entry.js} +1 -1
- package/dist/bromcom-ui/{p-34af5169.entry.js → p-1a64f637.entry.js} +1 -1
- package/dist/bromcom-ui/p-1e6a0c27.entry.js +5 -0
- package/dist/bromcom-ui/{p-40bdc7f4.entry.js → p-1f7deee4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-985b830e.entry.js → p-2e29836f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b334e60.entry.js → p-32ce5b3d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f7dd4f41.entry.js → p-3567551d.entry.js} +1 -1
- package/dist/bromcom-ui/p-3c065d74.entry.js +5 -0
- package/dist/bromcom-ui/{p-0bb029b9.entry.js → p-4127fc78.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fb13a0d7.entry.js → p-419de710.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0c043993.entry.js → p-43f4cac9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-edea9dfd.entry.js → p-4d331d46.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8804713b.entry.js → p-56106366.entry.js} +1 -1
- package/dist/bromcom-ui/p-58122b12.js +5 -0
- package/dist/bromcom-ui/{p-1622e5dd.entry.js → p-5a828ce3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f58d8231.entry.js → p-5f8993f5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-35d087b1.entry.js → p-612462f9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c91d78bb.entry.js → p-661f583b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-feab9d90.entry.js → p-70d0ec99.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ab3598c2.entry.js → p-78258c6a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-37a28587.js → p-7ba96cf2.js} +1 -1
- package/dist/bromcom-ui/{p-c0c5cb65.entry.js → p-7c3d76b0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-233a1fb4.entry.js → p-7cf1f3de.entry.js} +1 -1
- package/dist/bromcom-ui/{p-afc59b65.entry.js → p-7fca36fc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-36bac522.entry.js → p-80961b1f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5f594403.entry.js → p-889c98a7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f87163ff.entry.js → p-8b855df0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-746e776f.entry.js → p-8c25cbe7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2a93a5a2.entry.js → p-92a86fe4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a3d7bc84.entry.js → p-9bb0596c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4f02061.entry.js → p-a53b91a2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1ab0af09.entry.js → p-a5cd708f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6a2c25e7.js → p-b707b27a.js} +1 -1
- package/dist/bromcom-ui/{p-3f3e0704.entry.js → p-b7cc2017.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b8067e79.entry.js → p-b8d63188.entry.js} +1 -1
- package/dist/bromcom-ui/{p-31c05e88.entry.js → p-b95ef982.entry.js} +1 -1
- package/dist/bromcom-ui/{p-df7b3fed.js → p-b9d70b21.js} +1 -1
- package/dist/bromcom-ui/{p-771ad3a6.entry.js → p-ba6d4f9b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-15322ffb.js → p-ba983d4d.js} +1 -1
- package/dist/bromcom-ui/p-bb7e043b.entry.js +5 -0
- package/dist/bromcom-ui/{p-82aff8b2.entry.js → p-be825c0f.entry.js} +1 -1
- package/dist/bromcom-ui/p-c8e8b60e.entry.js +5 -0
- package/dist/bromcom-ui/{p-eaa0450d.entry.js → p-cd5a2b60.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0d7bb78b.entry.js → p-ce7c5d82.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e9e1004b.entry.js → p-cf31f51c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-98fe21a3.entry.js → p-d47493db.entry.js} +1 -1
- package/dist/bromcom-ui/{p-964e1b9d.entry.js → p-d59d8968.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dab9ce79.entry.js → p-d5a01b74.entry.js} +1 -1
- package/dist/bromcom-ui/{p-84e3a7c2.entry.js → p-d79a5538.entry.js} +1 -1
- package/dist/bromcom-ui/{p-df70c965.entry.js → p-d8dc6cbc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2c6f2c6e.entry.js → p-dac557b6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d6c9225c.entry.js → p-db7096a8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5b21f39a.js → p-dd908a30.js} +1 -1
- package/dist/bromcom-ui/{p-f66df7e2.entry.js → p-e3ea3b39.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eeca9f6a.js → p-e8e33954.js} +1 -1
- package/dist/bromcom-ui/{p-3bb952e7.entry.js → p-f09dbef5.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
- package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button_7.cjs.entry.js +7 -4
- package/dist/cjs/bcm-card.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
- package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
- package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-default.cjs.entry.js +1 -1
- package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-items.cjs.entry.js +1 -1
- package/dist/cjs/bcm-list.cjs.entry.js +23 -22
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popover.cjs.entry.js +12 -5
- package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
- package/dist/cjs/bcm-range.cjs.entry.js +1 -1
- package/dist/cjs/bcm-search.cjs.entry.js +2 -2
- package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bcm-step.cjs.entry.js +2 -2
- package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
- package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
- package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
- package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{generate-411c1529.js → generate-227da8fb.js} +1 -1
- package/dist/cjs/{input-template-741a1078.js → input-template-3af2733b.js} +1 -1
- package/dist/cjs/{json-parse-decarator-661924f2.js → json-parse-decarator-97c404e9.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{number-helper-91446798.js → number-helper-724bd3c0.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
- package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
- package/dist/cjs/{stepper-states-ee18b202.js → stepper-states-c08457f9.js} +1 -1
- package/dist/cjs/{tooltip-helper-dee255e9.js → tooltip-helper-dc91538e.js} +6 -4
- package/dist/cjs/{validators-c131b7c6.js → validators-4277e26c.js} +1 -1
- package/dist/collection/components/molecules/menu/menu.css +9 -9
- package/dist/collection/components/molecules/modal/modal.css +1 -1
- package/dist/collection/components/molecules/popover/popover.js +38 -15
- package/dist/collection/components/molecules/stepper/stepper.js +1 -1
- package/dist/collection/components/molecules/tooltip/tooltip.js +21 -0
- package/dist/collection/components/organism/list/list-tag-control.js +2 -2
- package/dist/collection/components/organism/states/bcm-list2.states.js +19 -18
- package/dist/collection/helper/popover-helper.js +3 -1
- package/dist/collection/helper/tooltip-helper.js +3 -1
- package/dist/components/bcm-list.js +18 -17
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-popover.js +11 -3
- package/dist/components/bcm-stepper.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/tooltip-helper.js +3 -1
- package/dist/components/tooltip.js +4 -0
- package/dist/esm/bcm-accordion.entry.js +1 -1
- package/dist/esm/bcm-alert.entry.js +1 -1
- package/dist/esm/bcm-attendance.entry.js +1 -1
- package/dist/esm/bcm-avatar_2.entry.js +3 -3
- package/dist/esm/bcm-breadcrumb.entry.js +1 -1
- package/dist/esm/bcm-button-group.entry.js +1 -1
- package/dist/esm/bcm-button_7.entry.js +7 -4
- package/dist/esm/bcm-card.entry.js +1 -1
- package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
- package/dist/esm/bcm-chip.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +1 -1
- package/dist/esm/bcm-color-input.entry.js +3 -3
- package/dist/esm/bcm-colorful_2.entry.js +3 -3
- package/dist/esm/bcm-date-picker.entry.js +1 -1
- package/dist/esm/bcm-datetime-picker.entry.js +1 -1
- package/dist/esm/bcm-default.entry.js +1 -1
- package/dist/esm/bcm-drawer.entry.js +3 -3
- package/dist/esm/bcm-dropdown.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +1 -1
- package/dist/esm/bcm-form-2.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +1 -1
- package/dist/esm/bcm-input.entry.js +4 -4
- package/dist/esm/bcm-item.entry.js +1 -1
- package/dist/esm/bcm-items.entry.js +1 -1
- package/dist/esm/bcm-list.entry.js +23 -22
- package/dist/esm/bcm-menu.entry.js +5 -5
- package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
- package/dist/esm/bcm-modal-2-header.entry.js +3 -3
- package/dist/esm/bcm-modal-2.entry.js +3 -3
- package/dist/esm/bcm-modal.entry.js +2 -2
- package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
- package/dist/esm/bcm-popconfirm.entry.js +1 -1
- package/dist/esm/bcm-popover.entry.js +12 -5
- package/dist/esm/bcm-progress.entry.js +1 -1
- package/dist/esm/bcm-radio-group.entry.js +3 -3
- package/dist/esm/bcm-radio.entry.js +3 -3
- package/dist/esm/bcm-range.entry.js +1 -1
- package/dist/esm/bcm-search.entry.js +2 -2
- package/dist/esm/bcm-skeleton.entry.js +1 -1
- package/dist/esm/bcm-step.entry.js +2 -2
- package/dist/esm/bcm-stepper.entry.js +5 -5
- package/dist/esm/bcm-switch.entry.js +1 -1
- package/dist/esm/bcm-tab-group.entry.js +3 -3
- package/dist/esm/bcm-tab-item-header.entry.js +3 -3
- package/dist/esm/bcm-tab-item.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +2 -2
- package/dist/esm/bcm-textarea.entry.js +2 -2
- 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/{generate-3e284764.js → generate-ae8dfae8.js} +1 -1
- package/dist/esm/{input-template-b0adc55c.js → input-template-56b65f6e.js} +1 -1
- package/dist/esm/{json-parse-decarator-5f1e26d4.js → json-parse-decarator-463c98c9.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{number-helper-ca1092d7.js → number-helper-8ae3f523.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +2 -2
- package/dist/esm/old-bcm-popover.entry.js +1 -1
- package/dist/esm/{stepper-states-f8c0fb9b.js → stepper-states-fd4a335e.js} +1 -1
- package/dist/esm/{tooltip-helper-d4a37741.js → tooltip-helper-d3858d00.js} +6 -4
- package/dist/esm/{validators-c025ec38.js → validators-d4d1cbd1.js} +1 -1
- package/dist/types/components/molecules/popover/popover.d.ts +2 -1
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +1 -0
- package/dist/types/components/organism/states/bcm-list2.states.d.ts +1 -1
- package/dist/types/components.d.ts +4 -0
- package/dist/types/helper/popover-helper.d.ts +3 -1
- package/dist/types/helper/tooltip-helper.d.ts +3 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0f41f6e2.entry.js +0 -5
- package/dist/bromcom-ui/p-1362b17e.entry.js +0 -5
- package/dist/bromcom-ui/p-748cb943.entry.js +0 -5
- package/dist/bromcom-ui/p-8a0128e6.entry.js +0 -5
- package/dist/bromcom-ui/p-9f48d505.entry.js +0 -5
- package/dist/bromcom-ui/p-ff408c78.js +0 -5
|
@@ -11,8 +11,8 @@ require('./element-dragger-a8562f82.js');
|
|
|
11
11
|
const popoverPlacement = require('./popover-placement-3c8f3a72.js');
|
|
12
12
|
const floatingUi = require('./floating-ui-74eb26d6.js');
|
|
13
13
|
const index$1 = require('./index-fdbf5226.js');
|
|
14
|
-
const generate = require('./generate-
|
|
15
|
-
const numberHelper = require('./number-helper-
|
|
14
|
+
const generate = require('./generate-227da8fb.js');
|
|
15
|
+
const numberHelper = require('./number-helper-724bd3c0.js');
|
|
16
16
|
const stringHelper = require('./string-helper-45cffee0.js');
|
|
17
17
|
require('./utils-fc077139.js');
|
|
18
18
|
require('./bcm-634604e3.js');
|
|
@@ -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 bcm = require('./bcm-634604e3.js');
|
|
12
|
-
const generate = require('./generate-
|
|
12
|
+
const generate = require('./generate-227da8fb.js');
|
|
13
13
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
14
14
|
require('./colors-e1d142ad.js');
|
|
15
15
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
const index = require('./index-4506fcd7.js');
|
|
8
|
-
const generate = require('./generate-
|
|
8
|
+
const generate = require('./generate-227da8fb.js');
|
|
9
9
|
const index$1 = require('./index-ddfd6d8f.js');
|
|
10
10
|
|
|
11
11
|
const { state } = index.createStore({
|
|
@@ -10,13 +10,13 @@ const utils = require('./utils-fc077139.js');
|
|
|
10
10
|
const floatingUi = require('./floating-ui-74eb26d6.js');
|
|
11
11
|
const colorHelper = require('./color-helper-d6d2028b.js');
|
|
12
12
|
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
-
const generate = require('./generate-
|
|
14
|
-
require('./number-helper-
|
|
15
|
-
require('./validators-
|
|
13
|
+
const generate = require('./generate-227da8fb.js');
|
|
14
|
+
require('./number-helper-724bd3c0.js');
|
|
15
|
+
require('./validators-4277e26c.js');
|
|
16
16
|
const bcm = require('./bcm-634604e3.js');
|
|
17
17
|
|
|
18
18
|
class Tooltip {
|
|
19
|
-
constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, emitShow = () => { }, emitHide = () => { }, }) {
|
|
19
|
+
constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { }, }) {
|
|
20
20
|
this.destroy = () => {
|
|
21
21
|
this.el = document.getElementById(this.id);
|
|
22
22
|
if (this.el) {
|
|
@@ -65,6 +65,7 @@ class Tooltip {
|
|
|
65
65
|
switch (this.trigger) {
|
|
66
66
|
case "click":
|
|
67
67
|
this.target().addEventListener("click", this.toggle.bind(this));
|
|
68
|
+
this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
|
|
68
69
|
break;
|
|
69
70
|
case "hover":
|
|
70
71
|
this.target().addEventListener("mouseenter", this.show.bind(this));
|
|
@@ -140,6 +141,7 @@ class Tooltip {
|
|
|
140
141
|
this.size = size;
|
|
141
142
|
this.openDelay = openDelay;
|
|
142
143
|
this.closeDelay = closeDelay;
|
|
144
|
+
this.autoHide = autoHide;
|
|
143
145
|
this.emitShow = emitShow;
|
|
144
146
|
this.emitHide = emitHide;
|
|
145
147
|
}
|
|
@@ -128,29 +128,29 @@
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.bcm-menu {
|
|
131
|
-
--bcm-menu-color-default: var(--bcm-new-ds-color-slate-
|
|
131
|
+
--bcm-menu-color-default: var(--bcm-new-ds-color-slate-700);
|
|
132
132
|
--bcm-menu-background-color-default: var(--bcm-new-ds-color-transparent);
|
|
133
|
-
--bcm-menu-icon-color-default: var(--bcm-new-ds-color-slate-
|
|
134
|
-
--bcm-menu-color-hover: var(--bcm-new-ds-color-slate-
|
|
133
|
+
--bcm-menu-icon-color-default: var(--bcm-new-ds-color-slate-600);
|
|
134
|
+
--bcm-menu-color-hover: var(--bcm-new-ds-color-slate-800);
|
|
135
135
|
--bcm-menu-background-color-hover: var(--bcm-new-ds-color-slate-50);
|
|
136
|
-
--bcm-menu-icon-color-hover: var(--bcm-new-ds-color-slate-
|
|
136
|
+
--bcm-menu-icon-color-hover: var(--bcm-new-ds-color-slate-700);
|
|
137
137
|
--bcm-menu-color-active: var(--bcm-new-ds-color-white);
|
|
138
|
-
--bcm-menu-background-color-active: var(--bcm-
|
|
138
|
+
--bcm-menu-background-color-active: var(--bcm-color-primary-500);
|
|
139
139
|
--bcm-menu-icon-color-active: var(--bcm-new-ds-color-white);
|
|
140
140
|
--bcm-menu-color-focus-visible: var(--bcm-new-ds-color-white);
|
|
141
|
-
--bcm-menu-background-color-focus-visible: var(--bcm-
|
|
141
|
+
--bcm-menu-background-color-focus-visible: var(--bcm-color-primary-600);
|
|
142
142
|
--bcm-menu-icon-color-focus-visible: var(--bcm-new-ds-color-white);
|
|
143
143
|
--bcm-menu-color-disabled: var(--bcm-new-ds-color-slate-50);
|
|
144
144
|
--bcm-menu-background-color-disabled: var(--bcm-new-ds-color-slate-300);
|
|
145
145
|
--bcm-menu-icon-color-disabled: var(--bcm-new-ds-color-slate-50);
|
|
146
146
|
--bcm-menu-color-active-hover: var(--bcm-new-ds-color-white);
|
|
147
|
-
--bcm-menu-background-color-active-hover: var(--bcm-
|
|
147
|
+
--bcm-menu-background-color-active-hover: var(--bcm-color-primary-400);
|
|
148
148
|
--bcm-menu-icon-color-active-hover: var(--bcm-new-ds-color-white);
|
|
149
149
|
--bcm-menu-color-active-focus-visible: var(--bcm-new-ds-color-white);
|
|
150
|
-
--bcm-menu-background-color-active-focus-visible: var(--bcm-
|
|
150
|
+
--bcm-menu-background-color-active-focus-visible: var(--bcm-color-primary-700);
|
|
151
151
|
--bcm-menu-icon-color-active-focus-visible: var(--bcm-new-ds-color-white);
|
|
152
152
|
--bcm-menu-color-active-active: var(--bcm-new-ds-color-white);
|
|
153
|
-
--bcm-menu-background-color-active-active: var(--bcm-
|
|
153
|
+
--bcm-menu-background-color-active-active: var(--bcm-color-primary-800);
|
|
154
154
|
--bcm-menu-icon-color-active-active: var(--bcm-new-ds-color-white);
|
|
155
155
|
font-family: "Inter", sans-serif;
|
|
156
156
|
font-size: 14px;
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
line-height: calc(16px + 8px);
|
|
229
229
|
font-weight: 500;
|
|
230
230
|
color: var(--bcm-new-ds-color-slate-600);
|
|
231
|
-
background-color: var(--bcm-color-
|
|
231
|
+
background-color: var(--bcm-new-ds-color-slate-100);
|
|
232
232
|
position: relative;
|
|
233
233
|
}
|
|
234
234
|
.bcm-modal__container-header span.full-width {
|
|
@@ -14,9 +14,10 @@ export class BcmPopover {
|
|
|
14
14
|
this.trigger = Bcm.TriggerType.click;
|
|
15
15
|
this.open = false;
|
|
16
16
|
this.color = "white";
|
|
17
|
-
this.targetId = undefined;
|
|
18
17
|
this.openDelay = 0;
|
|
19
18
|
this.closeDelay = 0;
|
|
19
|
+
this.autoHide = false;
|
|
20
|
+
this.targetId = undefined;
|
|
20
21
|
this.popover = undefined;
|
|
21
22
|
}
|
|
22
23
|
emitShow() {
|
|
@@ -35,6 +36,7 @@ export class BcmPopover {
|
|
|
35
36
|
trigger: this.trigger,
|
|
36
37
|
openDelay: this.openDelay,
|
|
37
38
|
closeDelay: this.closeDelay,
|
|
39
|
+
autoHide: this.autoHide,
|
|
38
40
|
emitShow: () => this.emitShow(),
|
|
39
41
|
emitHide: () => this.emitHide(),
|
|
40
42
|
});
|
|
@@ -49,6 +51,9 @@ export class BcmPopover {
|
|
|
49
51
|
this.popover.placement = placement;
|
|
50
52
|
this.popover.color = color;
|
|
51
53
|
this.popover.trigger = trigger;
|
|
54
|
+
this.popover.openDelay = this.openDelay;
|
|
55
|
+
this.popover.closeDelay = this.closeDelay;
|
|
56
|
+
this.popover.autoHide = this.autoHide;
|
|
52
57
|
this.popover.update();
|
|
53
58
|
}
|
|
54
59
|
disconnectedCallback() {
|
|
@@ -205,12 +210,12 @@ export class BcmPopover {
|
|
|
205
210
|
"reflect": false,
|
|
206
211
|
"defaultValue": "\"white\""
|
|
207
212
|
},
|
|
208
|
-
"
|
|
209
|
-
"type": "
|
|
213
|
+
"openDelay": {
|
|
214
|
+
"type": "number",
|
|
210
215
|
"mutable": false,
|
|
211
216
|
"complexType": {
|
|
212
|
-
"original": "
|
|
213
|
-
"resolved": "
|
|
217
|
+
"original": "number",
|
|
218
|
+
"resolved": "number",
|
|
214
219
|
"references": {}
|
|
215
220
|
},
|
|
216
221
|
"required": false,
|
|
@@ -219,10 +224,11 @@ export class BcmPopover {
|
|
|
219
224
|
"tags": [],
|
|
220
225
|
"text": ""
|
|
221
226
|
},
|
|
222
|
-
"attribute": "
|
|
223
|
-
"reflect": false
|
|
227
|
+
"attribute": "open-delay",
|
|
228
|
+
"reflect": false,
|
|
229
|
+
"defaultValue": "0"
|
|
224
230
|
},
|
|
225
|
-
"
|
|
231
|
+
"closeDelay": {
|
|
226
232
|
"type": "number",
|
|
227
233
|
"mutable": false,
|
|
228
234
|
"complexType": {
|
|
@@ -236,16 +242,16 @@ export class BcmPopover {
|
|
|
236
242
|
"tags": [],
|
|
237
243
|
"text": ""
|
|
238
244
|
},
|
|
239
|
-
"attribute": "
|
|
245
|
+
"attribute": "close-delay",
|
|
240
246
|
"reflect": false,
|
|
241
247
|
"defaultValue": "0"
|
|
242
248
|
},
|
|
243
|
-
"
|
|
244
|
-
"type": "
|
|
249
|
+
"autoHide": {
|
|
250
|
+
"type": "boolean",
|
|
245
251
|
"mutable": false,
|
|
246
252
|
"complexType": {
|
|
247
|
-
"original": "
|
|
248
|
-
"resolved": "
|
|
253
|
+
"original": "boolean",
|
|
254
|
+
"resolved": "boolean",
|
|
249
255
|
"references": {}
|
|
250
256
|
},
|
|
251
257
|
"required": false,
|
|
@@ -254,9 +260,26 @@ export class BcmPopover {
|
|
|
254
260
|
"tags": [],
|
|
255
261
|
"text": ""
|
|
256
262
|
},
|
|
257
|
-
"attribute": "
|
|
263
|
+
"attribute": "auto-hide",
|
|
258
264
|
"reflect": false,
|
|
259
|
-
"defaultValue": "
|
|
265
|
+
"defaultValue": "false"
|
|
266
|
+
},
|
|
267
|
+
"targetId": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "string",
|
|
272
|
+
"resolved": "string",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": false,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": ""
|
|
280
|
+
},
|
|
281
|
+
"attribute": "target-id",
|
|
282
|
+
"reflect": false
|
|
260
283
|
}
|
|
261
284
|
};
|
|
262
285
|
}
|
|
@@ -165,7 +165,7 @@ export class BcmStepper {
|
|
|
165
165
|
const lineClasses = item => cs("bcm-stepper__header-line", `bcm-stepper__header-line--${(item === null || item === void 0 ? void 0 : item.disabled) ? "disabled" : (item === null || item === void 0 ? void 0 : item.status) === "error" ? "default" : item === null || item === void 0 ? void 0 : item.status}`);
|
|
166
166
|
const items = this.getItems();
|
|
167
167
|
return (h(Host, { class: hostClasses }, h("span", { hidden: true, id: `bcm-stepper__steps-${this._id}` }, h("slot", null)), h("main", null, h("header", { class: "bcm-stepper__header" }, items === null || items === void 0 ? void 0 : items.map((item, index) => [
|
|
168
|
-
h(StepperHeaderTemplate, Object.assign({}, item, { stepChange: step => this.
|
|
168
|
+
h(StepperHeaderTemplate, Object.assign({}, item, { stepChange: step => this.next(step - 1) })),
|
|
169
169
|
items.length > index + 1 && h("div", { class: lineClasses(item) }),
|
|
170
170
|
])), h("section", { class: "bcm-stepper__body" }, this.data && this.data.length > 0 ? items === null || items === void 0 ? void 0 : items.map(item => h("bcm-step", Object.assign({}, item))) : h("slot", null)))));
|
|
171
171
|
}
|
|
@@ -16,6 +16,7 @@ export class BcmTooltip {
|
|
|
16
16
|
this.size = Bcm.Size.medium;
|
|
17
17
|
this.openDelay = 0;
|
|
18
18
|
this.closeDelay = 0;
|
|
19
|
+
this.autoHide = false;
|
|
19
20
|
this.targetId = undefined;
|
|
20
21
|
this.tooltip = undefined;
|
|
21
22
|
}
|
|
@@ -35,6 +36,7 @@ export class BcmTooltip {
|
|
|
35
36
|
size: this.size,
|
|
36
37
|
openDelay: this.openDelay,
|
|
37
38
|
closeDelay: this.closeDelay,
|
|
39
|
+
autoHide: this.autoHide,
|
|
38
40
|
emitShow: () => this.emitShow(),
|
|
39
41
|
emitHide: () => this.emitHide(),
|
|
40
42
|
});
|
|
@@ -50,6 +52,7 @@ export class BcmTooltip {
|
|
|
50
52
|
this.tooltip.size = this.size;
|
|
51
53
|
this.tooltip.openDelay = this.openDelay;
|
|
52
54
|
this.tooltip.closeDelay = this.closeDelay;
|
|
55
|
+
this.tooltip.autoHide = this.autoHide;
|
|
53
56
|
this.tooltip.update();
|
|
54
57
|
}
|
|
55
58
|
disconnectedCallback() {
|
|
@@ -247,6 +250,24 @@ export class BcmTooltip {
|
|
|
247
250
|
"reflect": false,
|
|
248
251
|
"defaultValue": "0"
|
|
249
252
|
},
|
|
253
|
+
"autoHide": {
|
|
254
|
+
"type": "boolean",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "boolean",
|
|
258
|
+
"resolved": "boolean",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": false,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": ""
|
|
266
|
+
},
|
|
267
|
+
"attribute": "auto-hide",
|
|
268
|
+
"reflect": false,
|
|
269
|
+
"defaultValue": "false"
|
|
270
|
+
},
|
|
250
271
|
"targetId": {
|
|
251
272
|
"type": "string",
|
|
252
273
|
"mutable": false,
|
|
@@ -102,7 +102,7 @@ export class ListTagControl {
|
|
|
102
102
|
const { count, width } = args;
|
|
103
103
|
if (count > 999)
|
|
104
104
|
return '999+' + pluralize('item', count);
|
|
105
|
-
if (width
|
|
105
|
+
if (width >= 100)
|
|
106
106
|
return `${count} ` + pluralize('item', count) + ' selected';
|
|
107
107
|
if (width < 100)
|
|
108
108
|
return `+${count < 10 ? count : '9'}`;
|
|
@@ -116,7 +116,7 @@ export class ListTagControl {
|
|
|
116
116
|
text: otherTagTextControl({ count: otherCounter, width: containerWidth[1] }),
|
|
117
117
|
title: snq(() => otherTags
|
|
118
118
|
.map(tag => this.values.find(value => value.id == tag.dataset.id))
|
|
119
|
-
.sort((a, b) => +a.
|
|
119
|
+
.sort((a, b) => +a.ct - +b.ct)
|
|
120
120
|
.slice(0, 15)
|
|
121
121
|
.map(item => StringHelper.textLimitter(item.tagTitle || item.text, 40, true))
|
|
122
122
|
.toString()
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { createStore } from
|
|
6
|
-
import snq from
|
|
7
|
-
import { Generate } from
|
|
5
|
+
import { createStore } from "@stencil/store";
|
|
6
|
+
import snq from "snq";
|
|
7
|
+
import { Generate } from "../../../helper/generate";
|
|
8
8
|
const { state } = createStore({
|
|
9
9
|
value: new Map(),
|
|
10
10
|
});
|
|
@@ -56,12 +56,12 @@ const setValue = val => {
|
|
|
56
56
|
};
|
|
57
57
|
state.value.set(data.id, data);
|
|
58
58
|
};
|
|
59
|
-
const recursive = (data, options, parentId, parentIndex =
|
|
59
|
+
const recursive = (data, options, parentId, parentIndex = "0.") => {
|
|
60
60
|
let recData = [];
|
|
61
61
|
if (data && data.length > 0) {
|
|
62
|
-
recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign(
|
|
62
|
+
recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ itemObject: item }, item), options), { parentId: snq(() => parentId, null), open: options.allOpen || item.open || false }), ((options.treeview || (!options.treeview && item.type == 'group')) && item.items && item.items.length > 0
|
|
63
63
|
? { items: snq(() => recursive(item.items, options, item.id, `${parentIndex}${index}`), []) }
|
|
64
|
-
: { items: [] }))));
|
|
64
|
+
: { items: [] })), { ct: `${parentIndex}${index}` })));
|
|
65
65
|
}
|
|
66
66
|
return recData;
|
|
67
67
|
};
|
|
@@ -72,10 +72,10 @@ const getValue = id => snq(() => state.value.get(id), {});
|
|
|
72
72
|
const calculateTotalItems = (dataSource, treeview) => {
|
|
73
73
|
let total = 0;
|
|
74
74
|
dataSource.forEach(item => {
|
|
75
|
-
if (treeview || (!treeview && item.type !=
|
|
75
|
+
if (treeview || (!treeview && item.type != "group")) {
|
|
76
76
|
total += 1;
|
|
77
77
|
}
|
|
78
|
-
if ((treeview || (!treeview && item.type ==
|
|
78
|
+
if ((treeview || (!treeview && item.type == "group")) && item.items) {
|
|
79
79
|
total += calculateTotalItems(item.items, treeview);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -205,7 +205,7 @@ const checkedProcess = (id, item, status) => {
|
|
|
205
205
|
const treeview = value.options.treeview;
|
|
206
206
|
if (item) {
|
|
207
207
|
// && !item.hidden => select all bastığımızda hidden olanları seçmemesi içindi
|
|
208
|
-
if (treeview || (!treeview && item.type !=
|
|
208
|
+
if (treeview || (!treeview && item.type != "group")) {
|
|
209
209
|
if (!item.disabled) {
|
|
210
210
|
if (status != undefined) {
|
|
211
211
|
item.checked = status;
|
|
@@ -214,7 +214,7 @@ const checkedProcess = (id, item, status) => {
|
|
|
214
214
|
item.checked = !item.checked;
|
|
215
215
|
}
|
|
216
216
|
item.itemObject.checked = item.checked;
|
|
217
|
-
item.indeterminate = item.checked ?
|
|
217
|
+
item.indeterminate = item.checked ? "determinate" : "uncheck";
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
if (item.items) {
|
|
@@ -241,13 +241,13 @@ const indeterminateStatus = (id, itemId, items) => {
|
|
|
241
241
|
let allUnchecked = true;
|
|
242
242
|
if (item.items) {
|
|
243
243
|
item.items.map(child => {
|
|
244
|
-
(child.checked || child.indeterminate ===
|
|
244
|
+
(child.checked || child.indeterminate === "indeterminate") && (allUnchecked = false);
|
|
245
245
|
!child.checked && (allChecked = false);
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
const indeterminateState = !allChecked && !allUnchecked ?
|
|
248
|
+
const indeterminateState = !allChecked && !allUnchecked ? "indeterminate" : allChecked ? "determinate" : "uncheck";
|
|
249
249
|
item.indeterminate = indeterminateState;
|
|
250
|
-
item.checked = indeterminateState ==
|
|
250
|
+
item.checked = indeterminateState == "determinate" ? true : false;
|
|
251
251
|
item.itemObject.checked = item.checked;
|
|
252
252
|
if (item.parentId) {
|
|
253
253
|
indeterminateStatus(id, item.parentId);
|
|
@@ -399,11 +399,12 @@ const getCheckedList = (id, items) => {
|
|
|
399
399
|
if (dataSource) {
|
|
400
400
|
dataSource.forEach(item => {
|
|
401
401
|
var _a;
|
|
402
|
+
const newItem = Object.assign(Object.assign({}, item.itemObject), { ct: item.ct });
|
|
402
403
|
let foundChild = [];
|
|
403
404
|
let foundItem = [];
|
|
404
405
|
if (item.checked) {
|
|
405
|
-
checkedList.push(
|
|
406
|
-
foundItem.push(Object.assign(Object.assign({},
|
|
406
|
+
checkedList.push(newItem);
|
|
407
|
+
foundItem.push(Object.assign(Object.assign({}, newItem), { items: [] }));
|
|
407
408
|
}
|
|
408
409
|
if (item.items) {
|
|
409
410
|
const found = getCheckedList(id, item.items);
|
|
@@ -416,7 +417,7 @@ const getCheckedList = (id, items) => {
|
|
|
416
417
|
}
|
|
417
418
|
if (foundChild.length > 0) {
|
|
418
419
|
if (foundItem.length == 0) {
|
|
419
|
-
foundItem.push(Object.assign(Object.assign({},
|
|
420
|
+
foundItem.push(Object.assign(Object.assign({}, newItem), { items: [] }));
|
|
420
421
|
}
|
|
421
422
|
foundItem[0].items = foundChild;
|
|
422
423
|
nestedResult.push(foundItem[0]);
|
|
@@ -484,10 +485,10 @@ const setClear = (id, items) => {
|
|
|
484
485
|
var _a, _b, _c;
|
|
485
486
|
item.checked && (item.checked = false);
|
|
486
487
|
item.selected && (item.selected = false);
|
|
487
|
-
item.indeterminate && (item.indeterminate =
|
|
488
|
+
item.indeterminate && (item.indeterminate = "uncheck");
|
|
488
489
|
((_a = item.itemObject) === null || _a === void 0 ? void 0 : _a.checked) && (item.itemObject.checked = false);
|
|
489
490
|
((_b = item.itemObject) === null || _b === void 0 ? void 0 : _b.selected) && (item.itemObject.selected = false);
|
|
490
|
-
((_c = item.itemObject) === null || _c === void 0 ? void 0 : _c.indeterminate) && (item.itemObject.indeterminate =
|
|
491
|
+
((_c = item.itemObject) === null || _c === void 0 ? void 0 : _c.indeterminate) && (item.itemObject.indeterminate = "uncheck");
|
|
491
492
|
if (item.items) {
|
|
492
493
|
setClear(id, item.items);
|
|
493
494
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { delay, FloatingUI } from "@bcm/utils";
|
|
6
6
|
import { ColorHelper, Generate, StringHelper } from "@bcm/helpers";
|
|
7
7
|
export class Popover {
|
|
8
|
-
constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, emitShow = () => { }, emitHide = () => { } }) {
|
|
8
|
+
constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { } }) {
|
|
9
9
|
this.destroy = () => {
|
|
10
10
|
this.el = document.getElementById(this.id);
|
|
11
11
|
if (this.el) {
|
|
@@ -51,6 +51,7 @@ export class Popover {
|
|
|
51
51
|
switch (this.trigger) {
|
|
52
52
|
case "click":
|
|
53
53
|
this.target().addEventListener("click", this.toggle.bind(this));
|
|
54
|
+
this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
|
|
54
55
|
break;
|
|
55
56
|
case "hover":
|
|
56
57
|
this.target().addEventListener("mouseenter", this.show.bind(this));
|
|
@@ -128,6 +129,7 @@ export class Popover {
|
|
|
128
129
|
this.id = targetId + "-popover-box";
|
|
129
130
|
this.openDelay = openDelay;
|
|
130
131
|
this.closeDelay = closeDelay;
|
|
132
|
+
this.autoHide = autoHide;
|
|
131
133
|
this.emitShow = emitShow;
|
|
132
134
|
this.emitHide = emitHide;
|
|
133
135
|
}
|
|
@@ -6,7 +6,7 @@ import { delay, FloatingUI } from "@bcm/utils";
|
|
|
6
6
|
import { ColorHelper, Generate, StringHelper } from "@bcm/helpers";
|
|
7
7
|
import { Bcm } from "@bcm/model";
|
|
8
8
|
export class Tooltip {
|
|
9
|
-
constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, emitShow = () => { }, emitHide = () => { }, }) {
|
|
9
|
+
constructor({ message, targetId, placement = "top", color = "slate-700", trigger = "none", size = "medium", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { }, }) {
|
|
10
10
|
this.destroy = () => {
|
|
11
11
|
this.el = document.getElementById(this.id);
|
|
12
12
|
if (this.el) {
|
|
@@ -55,6 +55,7 @@ export class Tooltip {
|
|
|
55
55
|
switch (this.trigger) {
|
|
56
56
|
case "click":
|
|
57
57
|
this.target().addEventListener("click", this.toggle.bind(this));
|
|
58
|
+
this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
|
|
58
59
|
break;
|
|
59
60
|
case "hover":
|
|
60
61
|
this.target().addEventListener("mouseenter", this.show.bind(this));
|
|
@@ -132,6 +133,7 @@ export class Tooltip {
|
|
|
132
133
|
this.size = size;
|
|
133
134
|
this.openDelay = openDelay;
|
|
134
135
|
this.closeDelay = closeDelay;
|
|
136
|
+
this.autoHide = autoHide;
|
|
135
137
|
this.emitShow = emitShow;
|
|
136
138
|
this.emitHide = emitHide;
|
|
137
139
|
}
|
|
@@ -193,12 +193,12 @@ const setValue = val => {
|
|
|
193
193
|
};
|
|
194
194
|
state.value.set(data.id, data);
|
|
195
195
|
};
|
|
196
|
-
const recursive = (data, options, parentId, parentIndex =
|
|
196
|
+
const recursive = (data, options, parentId, parentIndex = "0.") => {
|
|
197
197
|
let recData = [];
|
|
198
198
|
if (data && data.length > 0) {
|
|
199
|
-
recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign(
|
|
199
|
+
recData = data.map((item, index) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ itemObject: item }, item), options), { parentId: snq(() => parentId, null), open: options.allOpen || item.open || false }), ((options.treeview || (!options.treeview && item.type == 'group')) && item.items && item.items.length > 0
|
|
200
200
|
? { items: snq(() => recursive(item.items, options, item.id, `${parentIndex}${index}`), []) }
|
|
201
|
-
: { items: [] }))));
|
|
201
|
+
: { items: [] })), { ct: `${parentIndex}${index}` })));
|
|
202
202
|
}
|
|
203
203
|
return recData;
|
|
204
204
|
};
|
|
@@ -209,10 +209,10 @@ const getValue = id => snq(() => state.value.get(id), {});
|
|
|
209
209
|
const calculateTotalItems = (dataSource, treeview) => {
|
|
210
210
|
let total = 0;
|
|
211
211
|
dataSource.forEach(item => {
|
|
212
|
-
if (treeview || (!treeview && item.type !=
|
|
212
|
+
if (treeview || (!treeview && item.type != "group")) {
|
|
213
213
|
total += 1;
|
|
214
214
|
}
|
|
215
|
-
if ((treeview || (!treeview && item.type ==
|
|
215
|
+
if ((treeview || (!treeview && item.type == "group")) && item.items) {
|
|
216
216
|
total += calculateTotalItems(item.items, treeview);
|
|
217
217
|
}
|
|
218
218
|
});
|
|
@@ -342,7 +342,7 @@ const checkedProcess = (id, item, status) => {
|
|
|
342
342
|
const treeview = value.options.treeview;
|
|
343
343
|
if (item) {
|
|
344
344
|
// && !item.hidden => select all bastığımızda hidden olanları seçmemesi içindi
|
|
345
|
-
if (treeview || (!treeview && item.type !=
|
|
345
|
+
if (treeview || (!treeview && item.type != "group")) {
|
|
346
346
|
if (!item.disabled) {
|
|
347
347
|
if (status != undefined) {
|
|
348
348
|
item.checked = status;
|
|
@@ -351,7 +351,7 @@ const checkedProcess = (id, item, status) => {
|
|
|
351
351
|
item.checked = !item.checked;
|
|
352
352
|
}
|
|
353
353
|
item.itemObject.checked = item.checked;
|
|
354
|
-
item.indeterminate = item.checked ?
|
|
354
|
+
item.indeterminate = item.checked ? "determinate" : "uncheck";
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
if (item.items) {
|
|
@@ -378,13 +378,13 @@ const indeterminateStatus = (id, itemId, items) => {
|
|
|
378
378
|
let allUnchecked = true;
|
|
379
379
|
if (item.items) {
|
|
380
380
|
item.items.map(child => {
|
|
381
|
-
(child.checked || child.indeterminate ===
|
|
381
|
+
(child.checked || child.indeterminate === "indeterminate") && (allUnchecked = false);
|
|
382
382
|
!child.checked && (allChecked = false);
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
const indeterminateState = !allChecked && !allUnchecked ?
|
|
385
|
+
const indeterminateState = !allChecked && !allUnchecked ? "indeterminate" : allChecked ? "determinate" : "uncheck";
|
|
386
386
|
item.indeterminate = indeterminateState;
|
|
387
|
-
item.checked = indeterminateState ==
|
|
387
|
+
item.checked = indeterminateState == "determinate" ? true : false;
|
|
388
388
|
item.itemObject.checked = item.checked;
|
|
389
389
|
if (item.parentId) {
|
|
390
390
|
indeterminateStatus(id, item.parentId);
|
|
@@ -491,11 +491,12 @@ const getCheckedList = (id, items) => {
|
|
|
491
491
|
if (dataSource) {
|
|
492
492
|
dataSource.forEach(item => {
|
|
493
493
|
var _a;
|
|
494
|
+
const newItem = Object.assign(Object.assign({}, item.itemObject), { ct: item.ct });
|
|
494
495
|
let foundChild = [];
|
|
495
496
|
let foundItem = [];
|
|
496
497
|
if (item.checked) {
|
|
497
|
-
checkedList.push(
|
|
498
|
-
foundItem.push(Object.assign(Object.assign({},
|
|
498
|
+
checkedList.push(newItem);
|
|
499
|
+
foundItem.push(Object.assign(Object.assign({}, newItem), { items: [] }));
|
|
499
500
|
}
|
|
500
501
|
if (item.items) {
|
|
501
502
|
const found = getCheckedList(id, item.items);
|
|
@@ -508,7 +509,7 @@ const getCheckedList = (id, items) => {
|
|
|
508
509
|
}
|
|
509
510
|
if (foundChild.length > 0) {
|
|
510
511
|
if (foundItem.length == 0) {
|
|
511
|
-
foundItem.push(Object.assign(Object.assign({},
|
|
512
|
+
foundItem.push(Object.assign(Object.assign({}, newItem), { items: [] }));
|
|
512
513
|
}
|
|
513
514
|
foundItem[0].items = foundChild;
|
|
514
515
|
nestedResult.push(foundItem[0]);
|
|
@@ -576,10 +577,10 @@ const setClear = (id, items) => {
|
|
|
576
577
|
var _a, _b, _c;
|
|
577
578
|
item.checked && (item.checked = false);
|
|
578
579
|
item.selected && (item.selected = false);
|
|
579
|
-
item.indeterminate && (item.indeterminate =
|
|
580
|
+
item.indeterminate && (item.indeterminate = "uncheck");
|
|
580
581
|
((_a = item.itemObject) === null || _a === void 0 ? void 0 : _a.checked) && (item.itemObject.checked = false);
|
|
581
582
|
((_b = item.itemObject) === null || _b === void 0 ? void 0 : _b.selected) && (item.itemObject.selected = false);
|
|
582
|
-
((_c = item.itemObject) === null || _c === void 0 ? void 0 : _c.indeterminate) && (item.itemObject.indeterminate =
|
|
583
|
+
((_c = item.itemObject) === null || _c === void 0 ? void 0 : _c.indeterminate) && (item.itemObject.indeterminate = "uncheck");
|
|
583
584
|
if (item.items) {
|
|
584
585
|
setClear(id, item.items);
|
|
585
586
|
}
|
|
@@ -933,7 +934,7 @@ class ListTagControl {
|
|
|
933
934
|
const { count, width } = args;
|
|
934
935
|
if (count > 999)
|
|
935
936
|
return '999+' + pluralize('item', count);
|
|
936
|
-
if (width
|
|
937
|
+
if (width >= 100)
|
|
937
938
|
return `${count} ` + pluralize('item', count) + ' selected';
|
|
938
939
|
if (width < 100)
|
|
939
940
|
return `+${count < 10 ? count : '9'}`;
|
|
@@ -947,7 +948,7 @@ class ListTagControl {
|
|
|
947
948
|
text: otherTagTextControl({ count: otherCounter, width: containerWidth[1] }),
|
|
948
949
|
title: snq(() => otherTags
|
|
949
950
|
.map(tag => this.values.find(value => value.id == tag.dataset.id))
|
|
950
|
-
.sort((a, b) => +a.
|
|
951
|
+
.sort((a, b) => +a.ct - +b.ct)
|
|
951
952
|
.slice(0, 15)
|
|
952
953
|
.map(item => StringHelper.textLimitter(item.tagTitle || item.text, 40, true))
|
|
953
954
|
.toString()
|
|
@@ -10,7 +10,7 @@ import { S as SlotTemplate } from './slot-template.js';
|
|
|
10
10
|
import { G as Generate } from './generate.js';
|
|
11
11
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
12
12
|
|
|
13
|
-
const modalCss = "@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-modal{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:100%;height:100%;position:fixed;z-index:-1;opacity:0;top:0;left:0;visibility:hidden;overflow:auto;padding:24px;transition:opacity 0.5s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show{opacity:1;z-index:10500;visibility:visible;transition:opacity 0.2s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show .bcm-modal__container{transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out;transform:translateY(0)}.bcm-modal .overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0;opacity:0.6;background-color:var(--bcm-new-ds-color-slate-900)}.bcm-modal__container{display:flex;flex-direction:column;width:100%;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);z-index:2;transform:translateY(-50px);transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out}.bcm-modal__container.portrait{max-width:312px}.bcm-modal__container.landscape{max-width:475px}.bcm-modal__container.small{max-width:576px}.bcm-modal__container.medium{max-width:768px}.bcm-modal__container.large{max-width:992px}.bcm-modal__container.xlarge{max-width:1024px}.bcm-modal__container.xxlarge{max-width:1200px}.bcm-modal__container.xxxlarge{max-width:1700px}.bcm-modal__container.full-width{width:100%;max-width:100%}.bcm-modal__container.custom-size main{overflow:auto;height:100%;width:100%}.bcm-modal__container-main{color:var(--bcm-color-grey-8);padding:0}.bcm-modal__container-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;padding:12px 24px;font-size:16px;line-height:calc(16px + 8px);font-weight:500;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-color-
|
|
13
|
+
const modalCss = "@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-modal{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:100%;height:100%;position:fixed;z-index:-1;opacity:0;top:0;left:0;visibility:hidden;overflow:auto;padding:24px;transition:opacity 0.5s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show{opacity:1;z-index:10500;visibility:visible;transition:opacity 0.2s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show .bcm-modal__container{transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out;transform:translateY(0)}.bcm-modal .overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0;opacity:0.6;background-color:var(--bcm-new-ds-color-slate-900)}.bcm-modal__container{display:flex;flex-direction:column;width:100%;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);z-index:2;transform:translateY(-50px);transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out}.bcm-modal__container.portrait{max-width:312px}.bcm-modal__container.landscape{max-width:475px}.bcm-modal__container.small{max-width:576px}.bcm-modal__container.medium{max-width:768px}.bcm-modal__container.large{max-width:992px}.bcm-modal__container.xlarge{max-width:1024px}.bcm-modal__container.xxlarge{max-width:1200px}.bcm-modal__container.xxxlarge{max-width:1700px}.bcm-modal__container.full-width{width:100%;max-width:100%}.bcm-modal__container.custom-size main{overflow:auto;height:100%;width:100%}.bcm-modal__container-main{color:var(--bcm-color-grey-8);padding:0}.bcm-modal__container-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;padding:12px 24px;font-size:16px;line-height:calc(16px + 8px);font-weight:500;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100);position:relative}.bcm-modal__container-header span.full-width{width:100%}.bcm-modal__container-header-close{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:8px;cursor:pointer;color:var(--bcm-new-ds-color-slate-500);transition:color 0.1s ease-in-out}.bcm-modal__container-header-close:hover{color:var(--bcm-new-ds-color-slate-600)}.bcm-modal__container-header-close:active{color:var(--bcm-new-ds-color-slate-700)}.bcm-modal__container-header-close:focus-visible{color:var(--bcm-new-ds-color-slate-800)}.bcm-modal__container-header:after{border-radius:8px 8px 0 0;content:\"\";display:block;width:100%;height:4px;background-color:var(--bcm-color-primary-400);position:absolute;top:-4px;left:0}.bcm-modal__container-footer-content{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end;flex-wrap:nowrap;padding:12px 24px 24px;grid-gap:8px}";
|
|
14
14
|
|
|
15
15
|
const BcmModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
16
16
|
constructor() {
|