bromcom-ui 2.5.0-rc.2 → 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.
Files changed (62) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/p-0e73613c.js +1 -0
  3. package/dist/bromcom-ui/{p-60984f26.entry.js → p-3378221a.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-72e4461b.entry.js → p-3384c0dd.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-3c5586f8.entry.js → p-5b146e18.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-9664cfbd.entry.js → p-6df57cdc.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-940de078.entry.js → p-732298e8.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-d94b106f.entry.js → p-754be07c.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-81938067.entry.js → p-7cc7b9cf.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-e8fa0c8f.entry.js → p-8a22757f.entry.js} +1 -1
  11. package/dist/bromcom-ui/p-956416f4.entry.js +1 -0
  12. package/dist/bromcom-ui/{p-fe9f4e08.entry.js → p-a931f0c7.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-8a7139d9.entry.js → p-aab4c95d.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-c92bcc2f.entry.js +1 -0
  15. package/dist/bromcom-ui/p-cba47257.js +1 -0
  16. package/dist/bromcom-ui/{p-45d578c9.js → p-e16ba1ec.js} +1 -1
  17. package/dist/cjs/bcm-button_7.cjs.entry.js +30 -15
  18. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
  19. package/dist/cjs/bcm-checkbox-lite_8.cjs.entry.js +1 -1
  20. package/dist/cjs/bcm-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/bcm-icon-2_2.cjs.entry.js +2 -2
  22. package/dist/cjs/bcm-label_3.cjs.entry.js +2 -2
  23. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  24. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  25. package/dist/cjs/bcm-popover-box.cjs.entry.js +2 -2
  26. package/dist/cjs/bcm-popover.cjs.entry.js +1 -1
  27. package/dist/cjs/bcm-stepper.cjs.entry.js +2 -2
  28. package/dist/cjs/bcm-tag-2.cjs.entry.js +1 -1
  29. package/dist/cjs/{generate-37c6f6bc.js → generate-25ae9875.js} +1 -1
  30. package/dist/cjs/{popover-placement-dacc8fc9.js → popover-placement-dc4baf9a.js} +1 -1
  31. package/dist/cjs/{stepper-states-9b520a5b.js → stepper-states-54176cf8.js} +1 -1
  32. package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
  33. package/dist/collection/components/molecules/states/checkbox-group.states.js +1 -1
  34. package/dist/collection/components/organism/list/list.js +12 -9
  35. package/dist/collection/components/organism/states/bcm-list2.states.js +17 -5
  36. package/dist/collection/templates/checkbox-group-template.js +1 -1
  37. package/dist/collection/templates/list-template.js +1 -1
  38. package/dist/collection/utils/popover-placement.js +1 -1
  39. package/dist/esm/bcm-button_7.entry.js +30 -15
  40. package/dist/esm/bcm-checkbox-group.entry.js +3 -3
  41. package/dist/esm/bcm-checkbox-lite_8.entry.js +1 -1
  42. package/dist/esm/bcm-checkbox.entry.js +2 -2
  43. package/dist/esm/bcm-icon-2_2.entry.js +2 -2
  44. package/dist/esm/bcm-label_3.entry.js +2 -2
  45. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  46. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  47. package/dist/esm/bcm-popover-box.entry.js +2 -2
  48. package/dist/esm/bcm-popover.entry.js +1 -1
  49. package/dist/esm/bcm-stepper.entry.js +2 -2
  50. package/dist/esm/bcm-tag-2.entry.js +1 -1
  51. package/dist/esm/{generate-75cd94f7.js → generate-037ea9b5.js} +1 -1
  52. package/dist/esm/{popover-placement-38aa9b63.js → popover-placement-a105287a.js} +1 -1
  53. package/dist/esm/{stepper-states-9f9dde55.js → stepper-states-c92f3b4e.js} +1 -1
  54. package/dist/types/components/organism/list/list.d.ts +1 -1
  55. package/dist/types/components/organism/states/bcm-list2.states.d.ts +1 -1
  56. package/dist/types/components.d.ts +1 -1
  57. package/dist/types/utils/popover-placement.d.ts +1 -1
  58. package/package.json +1 -1
  59. package/dist/bromcom-ui/p-04198a09.js +0 -1
  60. package/dist/bromcom-ui/p-4e21ab09.entry.js +0 -1
  61. package/dist/bromcom-ui/p-9f47196d.js +0 -1
  62. package/dist/bromcom-ui/p-a356320c.entry.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-37c6f6bc.js');
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-37c6f6bc.js');
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-9b520a5b.js');
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-37c6f6bc.js');
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  const types = require('./types-37c8ced6.js');
4
4
 
5
- const version = "2.5.0-rc.2";
5
+ const version = "2.5.1-rc.1";
6
6
 
7
7
  const allowedDomains = [
8
8
  "localhost",
@@ -14,7 +14,7 @@ const join = (places) => {
14
14
  }
15
15
  return [opposites[places[0]], places[1]].join('-');
16
16
  };
17
- const getPlacement = async (box, host, placement, changePlacement) => {
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(' ');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const snq_es5 = require('./snq.es5-1a8f9645.js');
4
- const generate = require('./generate-37c6f6bc.js');
4
+ const generate = require('./generate-25ae9875.js');
5
5
  const index = require('./index-c74bd3c1.js');
6
6
 
7
7
  const { state } = index.createStore({
@@ -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);
@@ -382,9 +383,11 @@ export class BcmList {
382
383
  async addChecked(ids = [], save = false) {
383
384
  if (ids && ids.length > 0) {
384
385
  if (!save) {
385
- await this.setClear();
386
+ listState.setClear(this._id);
387
+ await delay(10);
386
388
  }
387
- listState.addChecked(this._id, ids);
389
+ await listState.addChecked(this._id, ids);
390
+ await delay(10);
388
391
  this.value = (await this.getCheckedList()).checkedList;
389
392
  this.markForCheck();
390
393
  }
@@ -599,17 +602,17 @@ export class BcmList {
599
602
  }, this.options);
600
603
  io.observe(event.target.lastElementChild);
601
604
  }
602
- calculateLocation() {
605
+ async calculateLocation() {
603
606
  var _a;
604
- const list = document.getElementById(`bcm-list-${this._id}`);
605
- list && (list.style.height = '256px');
606
- if (this.isOpen) {
607
- var placement = this.placement;
607
+ if (this.type != 'listbox') {
608
608
  const list = document.getElementById(`bcm-list-${this._id}`);
609
+ // list && (list.style.height = '256px') //sebebi neydi ki!
610
+ var placement = this.placement;
609
611
  const targetElementId = this.linkedComponent ? this.linkedComponent : `bcm-list-input-${this._id}`;
610
612
  const targetElement = document.getElementById(targetElementId);
611
613
  if (list && targetElement) {
612
614
  getPlacement(list, targetElement, placement, (place) => placement = place);
615
+ await delay(10);
613
616
  const pos = setPosition(placement, targetElement);
614
617
  let captionAreaHeight = 0;
615
618
  if (this.linkedComponent) {
@@ -1644,14 +1647,14 @@ export class BcmList {
1644
1647
  },
1645
1648
  "getSelected": {
1646
1649
  "complexType": {
1647
- "signature": "() => Promise<any[]>",
1650
+ "signature": "() => Promise<any>",
1648
1651
  "parameters": [],
1649
1652
  "references": {
1650
1653
  "Promise": {
1651
1654
  "location": "global"
1652
1655
  }
1653
1656
  },
1654
- "return": "Promise<any[]>"
1657
+ "return": "Promise<any>"
1655
1658
  },
1656
1659
  "docs": {
1657
1660
  "text": "",
@@ -339,14 +339,26 @@ const getParents = (id, itemId, items) => {
339
339
  }
340
340
  return { checkedItems: checkeds !== null && checkeds !== void 0 ? checkeds : [], visibledItems: visibled !== null && visibled !== void 0 ? visibled : [] };
341
341
  };
342
- const getSelected = (id) => {
343
- let selected = [];
344
- const value = getValue(id);
345
- const dataSource = value.dataSource;
342
+ const getSelected = (id, items) => {
343
+ let dataSource;
344
+ let selected = null;
345
+ if (items) {
346
+ dataSource = items;
347
+ }
348
+ else {
349
+ const value = getValue(id);
350
+ dataSource = value.dataSource;
351
+ }
346
352
  if (dataSource) {
347
353
  dataSource.forEach((item) => {
348
354
  if (item.selected) {
349
- selected.push(item.itemObject);
355
+ selected = item.itemObject;
356
+ }
357
+ else if (item.items) {
358
+ const found = getSelected(id, item.items);
359
+ if (found) {
360
+ selected = found;
361
+ }
350
362
  }
351
363
  });
352
364
  }
@@ -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 = async (box, host, placement, changePlacement) => {
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-75cd94f7.js';
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-38aa9b63.js';
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" },
@@ -6527,14 +6527,26 @@ const filterData = (id, ids, items, searchOtherTag) => {
6527
6527
  }
6528
6528
  return { checkedItems: checkeds !== null && checkeds !== void 0 ? checkeds : [], visibledItems: visibled !== null && visibled !== void 0 ? visibled : [] };
6529
6529
  };
6530
- const getSelected = (id) => {
6531
- let selected = [];
6532
- const value = getValue(id);
6533
- const dataSource = value.dataSource;
6530
+ const getSelected = (id, items) => {
6531
+ let dataSource;
6532
+ let selected = null;
6533
+ if (items) {
6534
+ dataSource = items;
6535
+ }
6536
+ else {
6537
+ const value = getValue(id);
6538
+ dataSource = value.dataSource;
6539
+ }
6534
6540
  if (dataSource) {
6535
6541
  dataSource.forEach((item) => {
6536
6542
  if (item.selected) {
6537
- selected.push(item.itemObject);
6543
+ selected = item.itemObject;
6544
+ }
6545
+ else if (item.items) {
6546
+ const found = getSelected(id, item.items);
6547
+ if (found) {
6548
+ selected = found;
6549
+ }
6538
6550
  }
6539
6551
  });
6540
6552
  }
@@ -6899,6 +6911,7 @@ const BcmList = class {
6899
6911
  document.body.appendChild(list);
6900
6912
  }
6901
6913
  }
6914
+ this.calculateLocation();
6902
6915
  }
6903
6916
  disconnectedCallback() {
6904
6917
  listState.removeState(this._id);
@@ -7162,9 +7175,11 @@ const BcmList = class {
7162
7175
  async addChecked(ids = [], save = false) {
7163
7176
  if (ids && ids.length > 0) {
7164
7177
  if (!save) {
7165
- await this.setClear();
7178
+ listState.setClear(this._id);
7179
+ await delay(10);
7166
7180
  }
7167
- listState.addChecked(this._id, ids);
7181
+ await listState.addChecked(this._id, ids);
7182
+ await delay(10);
7168
7183
  this.value = (await this.getCheckedList()).checkedList;
7169
7184
  this.markForCheck();
7170
7185
  }
@@ -7379,17 +7394,17 @@ const BcmList = class {
7379
7394
  }, this.options);
7380
7395
  io.observe(event.target.lastElementChild);
7381
7396
  }
7382
- calculateLocation() {
7397
+ async calculateLocation() {
7383
7398
  var _a;
7384
- const list = document.getElementById(`bcm-list-${this._id}`);
7385
- list && (list.style.height = '256px');
7386
- if (this.isOpen) {
7387
- var placement = this.placement;
7399
+ if (this.type != 'listbox') {
7388
7400
  const list = document.getElementById(`bcm-list-${this._id}`);
7401
+ // list && (list.style.height = '256px') //sebebi neydi ki!
7402
+ var placement = this.placement;
7389
7403
  const targetElementId = this.linkedComponent ? this.linkedComponent : `bcm-list-input-${this._id}`;
7390
7404
  const targetElement = document.getElementById(targetElementId);
7391
7405
  if (list && targetElement) {
7392
7406
  getPlacement(list, targetElement, placement, (place) => placement = place);
7407
+ await delay(10);
7393
7408
  const pos = setPosition(placement, targetElement);
7394
7409
  let captionAreaHeight = 0;
7395
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-75cd94f7.js';
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