bromcom-ui 2.5.1-rc.0 → 2.5.1-rc.1
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-0e73613c.js +1 -0
- package/dist/bromcom-ui/{p-b54c3ad0.entry.js → p-3378221a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-70315245.entry.js → p-3384c0dd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3b6be122.entry.js → p-5b146e18.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6915e504.entry.js → p-6df57cdc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-20ec27ec.entry.js → p-732298e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7889da04.entry.js → p-754be07c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8afa4999.entry.js → p-7cc7b9cf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-96b1c9b0.entry.js → p-8a22757f.entry.js} +1 -1
- package/dist/bromcom-ui/p-956416f4.entry.js +1 -0
- package/dist/bromcom-ui/{p-13c275a9.entry.js → p-a931f0c7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-652b281b.entry.js → p-aab4c95d.entry.js} +1 -1
- package/dist/bromcom-ui/p-c92bcc2f.entry.js +1 -0
- package/dist/bromcom-ui/p-cba47257.js +1 -0
- package/dist/bromcom-ui/{p-6523921e.js → p-e16ba1ec.js} +1 -1
- package/dist/cjs/bcm-button_7.cjs.entry.js +9 -8
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox-lite_8.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/bcm-icon-2_2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-label_3.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popover-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +1 -1
- package/dist/cjs/bcm-stepper.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tag-2.cjs.entry.js +1 -1
- package/dist/cjs/{generate-64f4a6fb.js → generate-25ae9875.js} +1 -1
- package/dist/cjs/{popover-placement-dacc8fc9.js → popover-placement-dc4baf9a.js} +1 -1
- package/dist/cjs/{stepper-states-4e2b19e1.js → stepper-states-54176cf8.js} +1 -1
- package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
- package/dist/collection/components/molecules/states/checkbox-group.states.js +1 -1
- package/dist/collection/components/organism/list/list.js +6 -5
- package/dist/collection/templates/checkbox-group-template.js +1 -1
- package/dist/collection/templates/list-template.js +1 -1
- package/dist/collection/utils/popover-placement.js +1 -1
- package/dist/esm/bcm-button_7.entry.js +9 -8
- package/dist/esm/bcm-checkbox-group.entry.js +3 -3
- package/dist/esm/bcm-checkbox-lite_8.entry.js +1 -1
- package/dist/esm/bcm-checkbox.entry.js +2 -2
- package/dist/esm/bcm-icon-2_2.entry.js +2 -2
- package/dist/esm/bcm-label_3.entry.js +2 -2
- package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
- package/dist/esm/bcm-popconfirm.entry.js +1 -1
- package/dist/esm/bcm-popover-box.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +1 -1
- package/dist/esm/bcm-stepper.entry.js +2 -2
- package/dist/esm/bcm-tag-2.entry.js +1 -1
- package/dist/esm/{generate-2075e06d.js → generate-037ea9b5.js} +1 -1
- package/dist/esm/{popover-placement-38aa9b63.js → popover-placement-a105287a.js} +1 -1
- package/dist/esm/{stepper-states-ad4c80a8.js → stepper-states-c92f3b4e.js} +1 -1
- package/dist/types/utils/popover-placement.d.ts +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-324edde8.entry.js +0 -1
- package/dist/bromcom-ui/p-3a6586fc.js +0 -1
- package/dist/bromcom-ui/p-57d3d8e3.entry.js +0 -1
- package/dist/bromcom-ui/p-9f47196d.js +0 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-c0971ca7.js');
|
|
6
6
|
const index$1 = require('./index-e5510943.js');
|
|
7
7
|
require('./types-37c8ced6.js');
|
|
8
|
-
const generate = require('./generate-
|
|
8
|
+
const generate = require('./generate-25ae9875.js');
|
|
9
9
|
const bcm = require('./bcm-5dcc129b.js');
|
|
10
10
|
const propertyDecorators = require('./property-decorators-476df1c5.js');
|
|
11
11
|
|
|
@@ -8,10 +8,10 @@ const utils = require('./utils-cc4b560e.js');
|
|
|
8
8
|
const snq_es5 = require('./snq.es5-1a8f9645.js');
|
|
9
9
|
const jsonParseDecarator = require('./json-parse-decarator-c4de75ac.js');
|
|
10
10
|
require('./types-37c8ced6.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-25ae9875.js');
|
|
12
12
|
const bcm = require('./bcm-5dcc129b.js');
|
|
13
13
|
require('./index-c74bd3c1.js');
|
|
14
|
-
const stepperStates = require('./stepper-states-
|
|
14
|
+
const stepperStates = require('./stepper-states-54176cf8.js');
|
|
15
15
|
|
|
16
16
|
const StepperHeaderTemplate = ({ title, description, status, valid, index: index$2, loading, active, stepChange, statusIcon, icon, disabled, headerHidden }) => {
|
|
17
17
|
const classes = index.classnames('bcm-stepper__header-item', `bcm-stepper__header-item--${status}`, {
|
|
@@ -8,7 +8,7 @@ const colors = require('./colors-7fb8d76f.js');
|
|
|
8
8
|
const utils = require('./utils-cc4b560e.js');
|
|
9
9
|
require('./snq.es5-1a8f9645.js');
|
|
10
10
|
require('./types-37c8ced6.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-25ae9875.js');
|
|
12
12
|
const numberHelper = require('./number-helper-3cb4fe28.js');
|
|
13
13
|
const bcm = require('./bcm-5dcc129b.js');
|
|
14
14
|
|
|
@@ -14,7 +14,7 @@ const join = (places) => {
|
|
|
14
14
|
}
|
|
15
15
|
return [opposites[places[0]], places[1]].join('-');
|
|
16
16
|
};
|
|
17
|
-
const getPlacement =
|
|
17
|
+
const getPlacement = (box, host, placement, changePlacement) => {
|
|
18
18
|
const { width, height } = box.getBoundingClientRect();
|
|
19
19
|
const { left, right, top, bottom } = host.getBoundingClientRect();
|
|
20
20
|
const places = stringHelper.StringHelper.textContains(placement, '-') ? placement.split('-') : placement.split(' ');
|
|
@@ -115,7 +115,7 @@ export class BcmCheckbox {
|
|
|
115
115
|
h("span", { hidden: true },
|
|
116
116
|
h("slot", null)),
|
|
117
117
|
label && h("bcm-label", { type: captionType, value: label, required: required }),
|
|
118
|
-
h("input", { id: `input-${_id}`, type: "checkbox", checked: checked, disabled: disabled, required: required, readOnly: readOnly, onChange: () => this.handleChange(), ref: el => (this.inputElement = el) }),
|
|
118
|
+
h("input", { id: `input-${_id}`, type: "checkbox", checked: checked, disabled: disabled, required: required, readOnly: readOnly, onChange: () => { !disabled && !readOnly && (this.handleChange()); }, ref: el => (this.inputElement = el) }),
|
|
119
119
|
h("label", { class: bcmCheckboxLabelClass, htmlFor: `input-${_id}` },
|
|
120
120
|
h("span", { class: bcmCheckboxIconClass },
|
|
121
121
|
h("bcm-icon", { icon: "component-check", size: "small", type: "default" })),
|
|
@@ -32,7 +32,7 @@ const setValue = async ({ fullWidth, optionType, buttonStyle, size, disabled, de
|
|
|
32
32
|
buttonStyle && (child.buttonStyle = buttonStyle);
|
|
33
33
|
size && (child.size = size);
|
|
34
34
|
defaultCheckedItems && (defaultCheckedItems.find(e => e === child.name) && (child.checked = true));
|
|
35
|
-
child.disabled = disabled;
|
|
35
|
+
disabled && (child.disabled = disabled);
|
|
36
36
|
child.noCaption = noCaption;
|
|
37
37
|
return {
|
|
38
38
|
id: child.id || Generate.UID(),
|
|
@@ -119,6 +119,7 @@ export class BcmList {
|
|
|
119
119
|
document.body.appendChild(list);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
+
this.calculateLocation();
|
|
122
123
|
}
|
|
123
124
|
disconnectedCallback() {
|
|
124
125
|
listState.removeState(this._id);
|
|
@@ -601,17 +602,17 @@ export class BcmList {
|
|
|
601
602
|
}, this.options);
|
|
602
603
|
io.observe(event.target.lastElementChild);
|
|
603
604
|
}
|
|
604
|
-
calculateLocation() {
|
|
605
|
+
async calculateLocation() {
|
|
605
606
|
var _a;
|
|
606
|
-
|
|
607
|
-
list && (list.style.height = '256px');
|
|
608
|
-
if (this.isOpen) {
|
|
609
|
-
var placement = this.placement;
|
|
607
|
+
if (this.type != 'listbox') {
|
|
610
608
|
const list = document.getElementById(`bcm-list-${this._id}`);
|
|
609
|
+
// list && (list.style.height = '256px') //sebebi neydi ki!
|
|
610
|
+
var placement = this.placement;
|
|
611
611
|
const targetElementId = this.linkedComponent ? this.linkedComponent : `bcm-list-input-${this._id}`;
|
|
612
612
|
const targetElement = document.getElementById(targetElementId);
|
|
613
613
|
if (list && targetElement) {
|
|
614
614
|
getPlacement(list, targetElement, placement, (place) => placement = place);
|
|
615
|
+
await delay(10);
|
|
615
616
|
const pos = setPosition(placement, targetElement);
|
|
616
617
|
let captionAreaHeight = 0;
|
|
617
618
|
if (this.linkedComponent) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
export const CheckboxGroupTemplate = ({ customStyle, groupContainerClasses, onBcmSelect, items }) => {
|
|
3
3
|
return (h("div", { class: groupContainerClasses, style: customStyle }, items.childs && items.childs.map((checkbox) => {
|
|
4
|
-
return (h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, required: checkbox.required, noCaption: checkbox.noCaption, optionType: checkbox.optionType, buttonStyle: checkbox.buttonStyle, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { onBcmSelect(checkbox.id), e.preventDefault(); } }, checkbox.slot || checkbox.label));
|
|
4
|
+
return (h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, required: checkbox.required, noCaption: checkbox.noCaption, optionType: checkbox.optionType, buttonStyle: checkbox.buttonStyle, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { !checkbox.disabled && (onBcmSelect(checkbox.id), e.preventDefault()); } }, checkbox.slot || checkbox.label));
|
|
5
5
|
})));
|
|
6
6
|
};
|
|
@@ -4,7 +4,7 @@ import { ListItemTemplate } from './list-item-template';
|
|
|
4
4
|
export const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, data, width, height, size, searchPlaceholder, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable }) => {
|
|
5
5
|
const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
|
|
6
6
|
return (h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, style: { '--height': height, '--width': width } },
|
|
7
|
-
searchable && (h("section", { class: "bcm-list__container-search" },
|
|
7
|
+
data && searchable && (h("section", { class: "bcm-list__container-search" },
|
|
8
8
|
h("bcm-search-2", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder }))),
|
|
9
9
|
h("main", { onScroll: (e) => onScrollEvent(e), class: "scrolling" },
|
|
10
10
|
checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h("section", { class: "bcm-list__container-select-all" },
|
|
@@ -11,7 +11,7 @@ const join = (places) => {
|
|
|
11
11
|
}
|
|
12
12
|
return [opposites[places[0]], places[1]].join('-');
|
|
13
13
|
};
|
|
14
|
-
export const getPlacement =
|
|
14
|
+
export const getPlacement = (box, host, placement, changePlacement) => {
|
|
15
15
|
const { width, height } = box.getBoundingClientRect();
|
|
16
16
|
const { left, right, top, bottom } = host.getBoundingClientRect();
|
|
17
17
|
const places = StringHelper.textContains(placement, '-') ? placement.split('-') : placement.split(' ');
|
|
@@ -6,14 +6,14 @@ import { C as ColorHelper } from './color-helper-beb0ba19.js';
|
|
|
6
6
|
import { s as snq } from './snq.es5-946822b8.js';
|
|
7
7
|
import { J as JsonParse } from './json-parse-decarator-c6372800.js';
|
|
8
8
|
import './types-911a8837.js';
|
|
9
|
-
import { G as Generate } from './generate-
|
|
9
|
+
import { G as Generate } from './generate-037ea9b5.js';
|
|
10
10
|
import { N as NumberHelper } from './number-helper-8115f1ec.js';
|
|
11
11
|
import { B as Bcm } from './bcm-1571bb45.js';
|
|
12
12
|
import { S as StringHelper } from './string-helper-cfa6df93.js';
|
|
13
13
|
import { C as CaptionTemplate } from './caption-template-c2ebdbce.js';
|
|
14
14
|
import { S as SlotTemplate } from './slot-template-4c1d3540.js';
|
|
15
15
|
import { L as LabelTemplate } from './label-template-b404837e.js';
|
|
16
|
-
import { g as getPlacement, s as setPosition } from './popover-placement-
|
|
16
|
+
import { g as getPlacement, s as setPosition } from './popover-placement-a105287a.js';
|
|
17
17
|
import { c as createStore } from './index-3c5b7898.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -6221,7 +6221,7 @@ const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size, selecte
|
|
|
6221
6221
|
const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, data, width, height, size, searchPlaceholder, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable }) => {
|
|
6222
6222
|
const showSelectAll = !(treeview && searchFound > 0) && !(searchFound > 0);
|
|
6223
6223
|
return (h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, style: { '--height': height, '--width': width } },
|
|
6224
|
-
searchable && (h("section", { class: "bcm-list__container-search" },
|
|
6224
|
+
data && searchable && (h("section", { class: "bcm-list__container-search" },
|
|
6225
6225
|
h("bcm-search-2", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder }))),
|
|
6226
6226
|
h("main", { onScroll: (e) => onScrollEvent(e), class: "scrolling" },
|
|
6227
6227
|
checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h("section", { class: "bcm-list__container-select-all" },
|
|
@@ -6911,6 +6911,7 @@ const BcmList = class {
|
|
|
6911
6911
|
document.body.appendChild(list);
|
|
6912
6912
|
}
|
|
6913
6913
|
}
|
|
6914
|
+
this.calculateLocation();
|
|
6914
6915
|
}
|
|
6915
6916
|
disconnectedCallback() {
|
|
6916
6917
|
listState.removeState(this._id);
|
|
@@ -7393,17 +7394,17 @@ const BcmList = class {
|
|
|
7393
7394
|
}, this.options);
|
|
7394
7395
|
io.observe(event.target.lastElementChild);
|
|
7395
7396
|
}
|
|
7396
|
-
calculateLocation() {
|
|
7397
|
+
async calculateLocation() {
|
|
7397
7398
|
var _a;
|
|
7398
|
-
|
|
7399
|
-
list && (list.style.height = '256px');
|
|
7400
|
-
if (this.isOpen) {
|
|
7401
|
-
var placement = this.placement;
|
|
7399
|
+
if (this.type != 'listbox') {
|
|
7402
7400
|
const list = document.getElementById(`bcm-list-${this._id}`);
|
|
7401
|
+
// list && (list.style.height = '256px') //sebebi neydi ki!
|
|
7402
|
+
var placement = this.placement;
|
|
7403
7403
|
const targetElementId = this.linkedComponent ? this.linkedComponent : `bcm-list-input-${this._id}`;
|
|
7404
7404
|
const targetElement = document.getElementById(targetElementId);
|
|
7405
7405
|
if (list && targetElement) {
|
|
7406
7406
|
getPlacement(list, targetElement, placement, (place) => placement = place);
|
|
7407
|
+
await delay(10);
|
|
7407
7408
|
const pos = setPosition(placement, targetElement);
|
|
7408
7409
|
let captionAreaHeight = 0;
|
|
7409
7410
|
if (this.linkedComponent) {
|
|
@@ -3,7 +3,7 @@ import { c as classnames } from './index-1597de83.js';
|
|
|
3
3
|
import { d as delay, g as getChildElements } from './utils-dc14ca19.js';
|
|
4
4
|
import { s as snq } from './snq.es5-946822b8.js';
|
|
5
5
|
import './types-911a8837.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-037ea9b5.js';
|
|
7
7
|
import { B as Bcm } from './bcm-1571bb45.js';
|
|
8
8
|
import './string-helper-cfa6df93.js';
|
|
9
9
|
import './slot-template-4c1d3540.js';
|
|
@@ -41,7 +41,7 @@ const setValue = async ({ fullWidth, optionType, buttonStyle, size, disabled, de
|
|
|
41
41
|
buttonStyle && (child.buttonStyle = buttonStyle);
|
|
42
42
|
size && (child.size = size);
|
|
43
43
|
defaultCheckedItems && (defaultCheckedItems.find(e => e === child.name) && (child.checked = true));
|
|
44
|
-
child.disabled = disabled;
|
|
44
|
+
disabled && (child.disabled = disabled);
|
|
45
45
|
child.noCaption = noCaption;
|
|
46
46
|
return {
|
|
47
47
|
id: child.id || Generate.UID(),
|
|
@@ -182,7 +182,7 @@ const checkBoxGroupState = {
|
|
|
182
182
|
|
|
183
183
|
const CheckboxGroupTemplate = ({ customStyle, groupContainerClasses, onBcmSelect, items }) => {
|
|
184
184
|
return (h("div", { class: groupContainerClasses, style: customStyle }, items.childs && items.childs.map((checkbox) => {
|
|
185
|
-
return (h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, required: checkbox.required, noCaption: checkbox.noCaption, optionType: checkbox.optionType, buttonStyle: checkbox.buttonStyle, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { onBcmSelect(checkbox.id), e.preventDefault(); } }, checkbox.slot || checkbox.label));
|
|
185
|
+
return (h("bcm-checkbox", { id: checkbox.id, name: checkbox.name, color: checkbox.color, checked: checkbox.checked, disabled: checkbox.disabled, required: checkbox.required, noCaption: checkbox.noCaption, optionType: checkbox.optionType, buttonStyle: checkbox.buttonStyle, size: checkbox.size, "full-width": checkbox.fullWidth, onClick: (e) => { !checkbox.disabled && (onBcmSelect(checkbox.id), e.preventDefault()); } }, checkbox.slot || checkbox.label));
|
|
186
186
|
})));
|
|
187
187
|
};
|
|
188
188
|
|