bromcom-ui 2.7.38-rc.9 → 2.7.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-2b73f6b1.entry.js → p-047c35b1.entry.js} +1 -1
- package/dist/bromcom-ui/p-074c97d3.js +5 -0
- package/dist/bromcom-ui/p-0a8b9f8a.entry.js +5 -0
- package/dist/bromcom-ui/{p-72f741db.entry.js → p-0b77585e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-64b20f43.entry.js → p-0f685aa9.entry.js} +1 -1
- package/dist/bromcom-ui/p-1097cec9.entry.js +5 -0
- package/dist/bromcom-ui/{p-c58f338d.entry.js → p-14938158.entry.js} +1 -1
- package/dist/bromcom-ui/p-1731c4f9.entry.js +10 -0
- package/dist/bromcom-ui/p-19a500b9.entry.js +5 -0
- package/dist/bromcom-ui/p-1aa79294.entry.js +5 -0
- package/dist/bromcom-ui/{p-1d44dbea.entry.js → p-2183c4bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-22e08221.entry.js +5 -0
- package/dist/bromcom-ui/p-24a7260a.entry.js +5 -0
- package/dist/bromcom-ui/{p-568f4f45.entry.js → p-2649e63a.entry.js} +1 -1
- package/dist/bromcom-ui/p-26e2f7ac.entry.js +5 -0
- package/dist/bromcom-ui/p-28079630.entry.js +5 -0
- package/dist/bromcom-ui/p-2867f803.entry.js +5 -0
- package/dist/bromcom-ui/p-3440e465.entry.js +5 -0
- package/dist/bromcom-ui/p-3614e6c5.entry.js +5 -0
- package/dist/bromcom-ui/{p-4721d58a.entry.js → p-369d6e4f.entry.js} +1 -1
- package/dist/bromcom-ui/p-3847b46e.entry.js +5 -0
- package/dist/bromcom-ui/{p-69ef565b.entry.js → p-3d4897d8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7dfb39a6.js → p-3f260a4c.js} +1 -1
- package/dist/bromcom-ui/p-3fccedf3.entry.js +5 -0
- package/dist/bromcom-ui/{p-3126f440.entry.js → p-40df99e2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-969f623c.entry.js → p-4171e9a0.entry.js} +1 -1
- package/dist/bromcom-ui/p-4487e8c2.js +5 -0
- package/dist/bromcom-ui/p-4630dd52.entry.js +5 -0
- package/dist/bromcom-ui/p-4790b60c.js +5 -0
- package/dist/bromcom-ui/{p-5775dcea.js → p-48e9166c.js} +1 -1
- package/dist/bromcom-ui/p-4d0f27cb.js +5 -0
- package/dist/bromcom-ui/p-509e2130.entry.js +5 -0
- package/dist/bromcom-ui/p-52df9b68.entry.js +5 -0
- package/dist/bromcom-ui/p-53062c43.entry.js +5 -0
- package/dist/bromcom-ui/p-5b664dec.js +5 -0
- package/dist/bromcom-ui/p-5de651cc.entry.js +5 -0
- package/dist/bromcom-ui/p-5e7565fe.entry.js +5 -0
- package/dist/bromcom-ui/p-64683551.entry.js +5 -0
- package/dist/bromcom-ui/p-66e9afac.entry.js +5 -0
- package/dist/bromcom-ui/p-6842b4b7.entry.js +5 -0
- package/dist/bromcom-ui/p-696fe6a3.entry.js +5 -0
- package/dist/bromcom-ui/{p-9979bd82.entry.js → p-69cce4d0.entry.js} +1 -1
- package/dist/bromcom-ui/p-6cc9c855.entry.js +5 -0
- package/dist/bromcom-ui/p-73138fc4.entry.js +5 -0
- package/dist/bromcom-ui/{p-16ff1ff3.js → p-74595a06.js} +1 -1
- package/dist/bromcom-ui/{p-4f86851c.entry.js → p-74fb9a64.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba062b3c.js → p-88f7d869.js} +1 -1
- package/dist/bromcom-ui/{p-5001042f.js → p-8994cc96.js} +1 -1
- package/dist/bromcom-ui/p-89b5b86c.entry.js +5 -0
- package/dist/bromcom-ui/{p-219b3300.entry.js → p-8d1cd79f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-57d0c6e7.entry.js → p-97df9122.entry.js} +1 -1
- package/dist/bromcom-ui/p-9812aaa8.entry.js +5 -0
- package/dist/bromcom-ui/p-982562ae.entry.js +5 -0
- package/dist/bromcom-ui/{p-ee9ba6ba.entry.js → p-9a1dc17c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1d77b8a6.js → p-9bef5a59.js} +1 -1
- package/dist/bromcom-ui/p-9df5c5ca.entry.js +5 -0
- package/dist/bromcom-ui/{p-fc55a7e3.entry.js → p-9e0f2680.entry.js} +1 -1
- package/dist/bromcom-ui/p-a1700c81.entry.js +5 -0
- package/dist/bromcom-ui/p-a32c26ec.entry.js +5 -0
- package/dist/bromcom-ui/p-a5982982.entry.js +5 -0
- package/dist/bromcom-ui/p-a6d95251.entry.js +5 -0
- package/dist/bromcom-ui/{p-444cb95f.entry.js → p-ad81c97f.entry.js} +1 -1
- package/dist/bromcom-ui/p-ae458ce8.entry.js +5 -0
- package/dist/bromcom-ui/p-ae5a0d1c.entry.js +5 -0
- package/dist/bromcom-ui/{p-620afa4f.js → p-b303a574.js} +1 -1
- package/dist/bromcom-ui/p-b69fa12b.entry.js +5 -0
- package/dist/bromcom-ui/p-b8f14695.entry.js +5 -0
- package/dist/bromcom-ui/p-b963626d.js +5 -0
- package/dist/bromcom-ui/p-b9e64c93.entry.js +5 -0
- package/dist/bromcom-ui/{p-5a9b78f6.entry.js → p-bdb012c3.entry.js} +1 -1
- package/dist/bromcom-ui/p-c0ea429a.entry.js +5 -0
- package/dist/bromcom-ui/p-c7458ce2.entry.js +5 -0
- package/dist/bromcom-ui/p-d7fc6422.entry.js +5 -0
- package/dist/bromcom-ui/p-d8d1a9d3.entry.js +5 -0
- package/dist/bromcom-ui/{p-a368c325.entry.js → p-dae1cc7b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b9352123.entry.js → p-dc306bd8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-764ae0c1.js → p-de954bc9.js} +1 -1
- package/dist/bromcom-ui/{p-c3ef369d.entry.js → p-dfe8e354.entry.js} +1 -1
- package/dist/bromcom-ui/{p-930558cd.js → p-e118a7f1.js} +1 -1
- package/dist/bromcom-ui/{p-0b6afb97.entry.js → p-ed59e34f.entry.js} +1 -1
- package/dist/bromcom-ui/p-edf79ae6.entry.js +5 -0
- package/dist/bromcom-ui/{p-4b1ed966.entry.js → p-f089027d.entry.js} +1 -1
- package/dist/bromcom-ui/p-f102cc57.entry.js +5 -0
- package/dist/bromcom-ui/p-f116e15f.entry.js +5 -0
- package/dist/bromcom-ui/p-f3669849.entry.js +5 -0
- package/dist/bromcom-ui/{p-ac156ba4.entry.js → p-f7c6b75a.entry.js} +1 -1
- package/dist/bromcom-ui/p-fab02b40.entry.js +5 -0
- package/dist/bromcom-ui/p-face119d.entry.js +5 -0
- package/dist/bromcom-ui/p-fe702e56.entry.js +5 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +3 -1
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -1
- package/dist/cjs/bcm-attendance.cjs.entry.js +4 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +5 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -1
- package/dist/cjs/bcm-button-group.cjs.entry.js +2 -1
- package/dist/cjs/bcm-button.cjs.entry.js +5 -4
- package/dist/cjs/bcm-card.cjs.entry.js +3 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +18 -17
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -2
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +5 -4
- package/dist/cjs/bcm-chip.cjs.entry.js +4 -3
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -1
- package/dist/cjs/bcm-color-input.cjs.entry.js +5 -4
- package/dist/cjs/{bcm-colorful_7.cjs.entry.js → bcm-colorful_2.cjs.entry.js} +10 -904
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +432 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -1
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -2
- package/dist/cjs/bcm-default.cjs.entry.js +3 -1
- package/dist/cjs/bcm-drawer.cjs.entry.js +5 -4
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -2
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -1
- package/dist/cjs/bcm-form.cjs.entry.js +1 -1
- package/dist/cjs/{bcm-list.cjs.entry.js → bcm-icon_3.cjs.entry.js} +365 -94
- package/dist/cjs/bcm-input-custom.cjs.entry.js +73 -0
- package/dist/cjs/bcm-input.cjs.entry.js +369 -0
- package/dist/cjs/bcm-item.cjs.entry.js +3 -2
- package/dist/cjs/bcm-items.cjs.entry.js +3 -2
- package/dist/cjs/bcm-label_2.cjs.entry.js +149 -0
- package/dist/cjs/bcm-link.cjs.entry.js +1 -1
- package/dist/cjs/bcm-menu.cjs.entry.js +7 -6
- package/dist/cjs/bcm-modal.cjs.entry.js +2 -1
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +3 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +84 -34
- package/dist/cjs/bcm-progress.cjs.entry.js +3 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +77 -211
- package/dist/cjs/bcm-radio.cjs.entry.js +36 -77
- package/dist/cjs/bcm-range.cjs.entry.js +2 -1
- package/dist/cjs/bcm-select.cjs.entry.js +1 -1
- package/dist/cjs/bcm-skeleton.cjs.entry.js +3 -1
- package/dist/cjs/bcm-step.cjs.entry.js +3 -2
- package/dist/cjs/bcm-stepper.cjs.entry.js +56 -29
- package/dist/cjs/bcm-switch.cjs.entry.js +3 -2
- package/dist/cjs/bcm-tab-group.cjs.entry.js +86 -98
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +87 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +104 -0
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -2
- package/dist/cjs/bcm-text.cjs.entry.js +2 -1
- package/dist/cjs/bcm-textarea.cjs.entry.js +3 -2
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -1
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/color-helper-0e3e8ce5.js +86 -0
- package/dist/cjs/{color-helper-c9882bd8.js → colors-25c96ed6.js} +4 -81
- package/dist/cjs/{generate-dbed3a63.js → generate-279ee026.js} +131 -29
- package/dist/cjs/{input-template-79002b88.js → input-template-b5da5370.js} +2 -2
- package/dist/cjs/{json-parse-decarator-65760934.js → json-parse-decarator-8201b40b.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{number-helper-d77c9113.js → number-helper-5d3173db.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -2
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -1
- package/dist/cjs/{stepper-states-fae35b0d.js → stepper-states-f4380d04.js} +1 -1
- package/dist/cjs/{tooltip-helper-7beca613.js → tooltip-helper-adaa5f33.js} +37 -7
- package/dist/cjs/{validators-95afb38d.js → validators-ef83a65e.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/chip/chip.js +1 -1
- package/dist/collection/components/atoms/link/link.js +1 -1
- package/dist/collection/components/external-source/bcm-toast-helper.js +20 -0
- package/dist/collection/components/external-source/test.js/bcm-toast-helper.js +20 -0
- package/dist/collection/components/molecules/checkbox/checkbox.css +1 -0
- package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
- package/dist/collection/components/molecules/input/input.js +5 -2
- package/dist/collection/components/molecules/menu/menu.js +1 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +107 -2
- package/dist/collection/components/molecules/radio/{group.js → radio-group.js} +163 -246
- package/dist/collection/components/molecules/radio/radio.js +42 -132
- package/dist/collection/components/molecules/search/search.js +20 -1
- package/dist/collection/components/molecules/stepper/stepper.js +55 -35
- package/dist/collection/components/molecules/switch/switch.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +98 -100
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +186 -0
- package/dist/collection/components/molecules/tab-group/tab-item.js +161 -0
- package/dist/collection/components/molecules/tooltip/tooltip.js +109 -2
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/organism/form/form.js +1 -1
- package/dist/collection/components/organism/list/list.css +1 -0
- package/dist/collection/components/organism/list/list.js +21 -2
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other/input-custom/input-custom.js +249 -0
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/global/components/_checkbox.css +1 -0
- package/dist/collection/helper/generate.js +120 -19
- package/dist/collection/helper/popover-helper.js +57 -29
- package/dist/collection/helper/tooltip-helper.js +33 -4
- package/dist/collection/stories/assets/button/1.svg +35 -0
- package/dist/collection/stories/assets/button/10.svg +24 -0
- package/dist/collection/stories/assets/button/11.svg +24 -0
- package/dist/collection/stories/assets/button/12.svg +24 -0
- package/dist/collection/stories/assets/button/2.svg +28 -0
- package/dist/collection/stories/assets/button/3.svg +41 -0
- package/dist/collection/stories/assets/button/4.svg +9 -0
- package/dist/collection/stories/assets/button/5.svg +65 -0
- package/dist/collection/stories/assets/button/6.svg +68 -0
- package/dist/collection/stories/assets/button/7.svg +203 -0
- package/dist/collection/stories/assets/button/8.svg +316 -0
- package/dist/collection/stories/assets/button/9.svg +9 -0
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +2 -2
- package/dist/components/bcm-attendance.js +1 -1
- package/dist/components/bcm-chip.js +1 -1
- package/dist/components/bcm-form.js +1 -1
- package/dist/components/bcm-input-custom.d.ts +11 -0
- package/dist/components/bcm-input-custom.js +114 -0
- package/dist/components/bcm-list.js +10 -8
- package/dist/components/bcm-popconfirm.js +1 -1
- package/dist/components/bcm-popover.js +83 -30
- package/dist/components/bcm-radio-group.js +88 -230
- package/dist/components/bcm-select.js +1 -1
- package/dist/components/bcm-stepper.js +51 -33
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +84 -98
- package/dist/components/bcm-tab-item-header.d.ts +11 -0
- package/dist/components/bcm-tab-item-header.js +102 -0
- package/dist/components/bcm-tab-item.d.ts +11 -0
- package/dist/components/bcm-tab-item.js +117 -0
- package/dist/components/bcm-tab.js +1 -1
- package/dist/components/bcm-tabs-content.js +1 -1
- package/dist/components/bcm-tabs.js +1 -1
- package/dist/components/bcm-tag.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +2 -2
- package/dist/components/color-helper.js +1 -405
- package/dist/{esm/color-helper-b5e9aa56.js → components/colors2.js} +2 -79
- package/dist/components/datetime-picker.js +1 -1
- package/dist/components/generate.js +117 -16
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +3 -0
- package/dist/components/input-template.js +2 -15
- package/dist/components/input.js +5 -2
- package/dist/components/link.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +38 -82
- package/dist/components/search.js +3 -1
- package/dist/components/tooltip-helper.js +33 -3
- package/dist/components/tooltip.js +29 -3
- package/dist/components/types.js +14 -27
- package/dist/components/types2.js +25 -25
- package/dist/components/types3.js +32 -0
- package/dist/esm/bcm-accordion.entry.js +5 -3
- package/dist/esm/bcm-alert.entry.js +5 -4
- package/dist/esm/bcm-attendance.entry.js +6 -4
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +8 -7
- package/dist/esm/bcm-box.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +4 -3
- package/dist/esm/bcm-button-group.entry.js +4 -3
- package/dist/esm/bcm-button.entry.js +9 -8
- package/dist/esm/bcm-card.entry.js +6 -5
- package/dist/esm/bcm-checkbox-group.entry.js +13 -12
- package/dist/esm/bcm-checkbox-lite_9.entry.js +5 -4
- package/dist/esm/bcm-checkbox_2.entry.js +9 -8
- package/dist/esm/bcm-chip.entry.js +6 -5
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +4 -3
- package/dist/esm/bcm-color-input.entry.js +6 -5
- package/dist/esm/{bcm-colorful_7.entry.js → bcm-colorful_2.entry.js} +15 -904
- package/dist/esm/bcm-colorpicker.entry.js +428 -0
- package/dist/esm/bcm-date-picker.entry.js +4 -3
- package/dist/esm/bcm-datetime-picker.entry.js +7 -6
- package/dist/esm/bcm-default.entry.js +5 -3
- package/dist/esm/bcm-drawer.entry.js +7 -6
- package/dist/esm/bcm-dropdown.entry.js +5 -4
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +5 -4
- package/dist/esm/bcm-form-2.entry.js +4 -3
- package/dist/esm/bcm-form-group.entry.js +2 -2
- package/dist/esm/bcm-form.entry.js +3 -3
- package/dist/esm/{bcm-list.entry.js → bcm-icon_3.entry.js} +324 -55
- package/dist/esm/bcm-input-custom.entry.js +69 -0
- package/dist/esm/bcm-input.entry.js +365 -0
- package/dist/esm/bcm-item.entry.js +5 -4
- package/dist/esm/bcm-items.entry.js +5 -4
- package/dist/esm/bcm-label_2.entry.js +144 -0
- package/dist/esm/bcm-link.entry.js +3 -3
- package/dist/esm/bcm-menu.entry.js +9 -8
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal.entry.js +5 -4
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-input.entry.js +3 -3
- package/dist/esm/bcm-old-tag_2.entry.js +2 -2
- package/dist/esm/bcm-popconfirm-box.entry.js +5 -4
- package/dist/esm/bcm-popconfirm.entry.js +5 -4
- package/dist/esm/bcm-popover.entry.js +86 -36
- package/dist/esm/bcm-progress.entry.js +5 -4
- package/dist/esm/bcm-radio-group.entry.js +74 -208
- package/dist/esm/bcm-radio.entry.js +36 -77
- package/dist/esm/bcm-range.entry.js +4 -3
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-select-group.entry.js +1 -1
- package/dist/esm/bcm-select-option.entry.js +1 -1
- package/dist/esm/bcm-select.entry.js +3 -3
- package/dist/esm/bcm-skeleton.entry.js +5 -3
- package/dist/esm/bcm-step.entry.js +6 -5
- package/dist/esm/bcm-stepper.entry.js +57 -30
- package/dist/esm/bcm-switch.entry.js +6 -5
- package/dist/esm/bcm-tab-group.entry.js +87 -99
- package/dist/esm/bcm-tab-item-header.entry.js +83 -0
- package/dist/esm/bcm-tab-item.entry.js +100 -0
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +2 -2
- package/dist/esm/bcm-table.entry.js +2 -2
- package/dist/esm/bcm-tabs-content.entry.js +2 -2
- package/dist/esm/bcm-tabs.entry.js +2 -2
- package/dist/esm/bcm-tag.entry.js +5 -4
- package/dist/esm/bcm-text.entry.js +5 -4
- package/dist/esm/bcm-textarea.entry.js +6 -5
- package/dist/esm/bcm-time-picker.entry.js +4 -3
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +2 -2
- package/dist/esm/{caption-template-2ef181f9.js → caption-template-389f5bd6.js} +1 -1
- package/dist/esm/color-helper-0277e11a.js +84 -0
- package/dist/esm/colors-fabca483.js +411 -0
- package/dist/esm/{generate-1e46485f.js → generate-c2266936.js} +131 -29
- package/dist/esm/{index-662f4cf5.js → index-6e2d80d7.js} +1 -1
- package/dist/esm/{index-cb0cdd87.js → index-8b349654.js} +1 -1
- package/dist/esm/{input-template-844dc974.js → input-template-36e21911.js} +3 -3
- package/dist/esm/{is-load-decorator-0a59085d.js → is-load-decorator-66e19e04.js} +1 -1
- package/dist/esm/{json-parse-decarator-00aa321e.js → json-parse-decarator-8a7d935f.js} +2 -2
- package/dist/esm/{label-template-d8687efd.js → label-template-eed2dd69.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{number-helper-f2cdb65b.js → number-helper-4b765a19.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +5 -4
- package/dist/esm/old-bcm-popover.entry.js +4 -3
- package/dist/esm/{slot-template-5b2da1d3.js → slot-template-64b41ee5.js} +1 -1
- package/dist/esm/{stepper-states-822ebfe9.js → stepper-states-2d2c383b.js} +3 -3
- package/dist/esm/{tooltip-helper-aecc821b.js → tooltip-helper-71d04ca8.js} +37 -7
- package/dist/esm/{validators-1b3c085a.js → validators-fb7175a3.js} +1 -1
- package/dist/types/components/external-source/bcm-toast-helper.d.ts +12 -0
- package/dist/types/components/external-source/test.js/bcm-toast-helper.d.ts +12 -0
- package/dist/types/components/molecules/popover/popover.d.ts +10 -1
- package/dist/types/components/molecules/radio/{group.d.ts → radio-group.d.ts} +19 -27
- package/dist/types/components/molecules/radio/radio.d.ts +5 -11
- package/dist/types/components/molecules/search/search.d.ts +1 -0
- package/dist/types/components/molecules/stepper/stepper.d.ts +3 -3
- package/dist/types/components/molecules/tab-group/tab-group.d.ts +7 -4
- package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +13 -0
- package/dist/types/components/molecules/tab-group/tab-item.d.ts +17 -0
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +10 -1
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/other/input-custom/input-custom.d.ts +20 -0
- package/dist/types/components.d.ts +136 -42
- package/dist/types/helper/generate.d.ts +3 -0
- package/dist/types/helper/popover-helper.d.ts +13 -3
- package/dist/types/helper/tooltip-helper.d.ts +13 -3
- package/dist/types/templates/list-template.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-053e9893.js +0 -5
- package/dist/bromcom-ui/p-07ebe62b.entry.js +0 -10
- package/dist/bromcom-ui/p-08c22a43.entry.js +0 -5
- package/dist/bromcom-ui/p-0a6cf248.entry.js +0 -5
- package/dist/bromcom-ui/p-15dcafdc.entry.js +0 -5
- package/dist/bromcom-ui/p-1683b3c0.entry.js +0 -5
- package/dist/bromcom-ui/p-1eaffb4d.entry.js +0 -5
- package/dist/bromcom-ui/p-2d75fb9d.entry.js +0 -5
- package/dist/bromcom-ui/p-2dc55ebd.entry.js +0 -5
- package/dist/bromcom-ui/p-2de23a54.entry.js +0 -5
- package/dist/bromcom-ui/p-3118bba1.entry.js +0 -5
- package/dist/bromcom-ui/p-3f3bb4b0.entry.js +0 -5
- package/dist/bromcom-ui/p-3f4192c8.entry.js +0 -5
- package/dist/bromcom-ui/p-40736ee7.entry.js +0 -5
- package/dist/bromcom-ui/p-44843df2.entry.js +0 -5
- package/dist/bromcom-ui/p-612f6cbc.entry.js +0 -5
- package/dist/bromcom-ui/p-69bffd70.entry.js +0 -5
- package/dist/bromcom-ui/p-6c77955c.entry.js +0 -5
- package/dist/bromcom-ui/p-6f98089c.entry.js +0 -5
- package/dist/bromcom-ui/p-6fcb72c6.entry.js +0 -5
- package/dist/bromcom-ui/p-73076cdb.entry.js +0 -5
- package/dist/bromcom-ui/p-751ee360.entry.js +0 -5
- package/dist/bromcom-ui/p-7b7ae0f3.entry.js +0 -5
- package/dist/bromcom-ui/p-7c318b12.js +0 -5
- package/dist/bromcom-ui/p-7ea09be3.js +0 -5
- package/dist/bromcom-ui/p-87de49b4.entry.js +0 -5
- package/dist/bromcom-ui/p-8914af05.entry.js +0 -5
- package/dist/bromcom-ui/p-918acf86.entry.js +0 -5
- package/dist/bromcom-ui/p-962d32ef.entry.js +0 -5
- package/dist/bromcom-ui/p-968e2d79.js +0 -5
- package/dist/bromcom-ui/p-9d349123.entry.js +0 -5
- package/dist/bromcom-ui/p-a3864e85.entry.js +0 -5
- package/dist/bromcom-ui/p-a5077dec.entry.js +0 -5
- package/dist/bromcom-ui/p-a8d1397d.js +0 -5
- package/dist/bromcom-ui/p-adf96c3b.entry.js +0 -5
- package/dist/bromcom-ui/p-b00d3d27.entry.js +0 -5
- package/dist/bromcom-ui/p-c421b369.entry.js +0 -5
- package/dist/bromcom-ui/p-c9e1f317.entry.js +0 -5
- package/dist/bromcom-ui/p-cd8998bd.entry.js +0 -5
- package/dist/bromcom-ui/p-cf5ad8a8.entry.js +0 -5
- package/dist/bromcom-ui/p-d1bd9b8d.entry.js +0 -5
- package/dist/bromcom-ui/p-dddbb790.entry.js +0 -5
- package/dist/bromcom-ui/p-de332baa.entry.js +0 -5
- package/dist/bromcom-ui/p-e258c81c.entry.js +0 -5
- package/dist/bromcom-ui/p-e9cea37d.entry.js +0 -5
- package/dist/bromcom-ui/p-ea9667ba.entry.js +0 -5
- package/dist/bromcom-ui/p-f7e85c95.entry.js +0 -5
- package/dist/bromcom-ui/p-f9608226.entry.js +0 -5
- package/dist/bromcom-ui/p-fa5118d5.entry.js +0 -5
- package/dist/bromcom-ui/p-faee01b2.entry.js +0 -5
- package/dist/cjs/bcm-search.cjs.entry.js +0 -257
- package/dist/collection/components/molecules/radio/group.css +0 -802
- package/dist/collection/components/molecules/radio/radio.css +0 -1286
- package/dist/collection/components/molecules/radio/types.js +0 -30
- package/dist/collection/components/molecules/states/radio-group.states.js +0 -107
- package/dist/esm/bcm-search.entry.js +0 -253
- package/dist/types/components/molecules/radio/types.d.ts +0 -29
- package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -48
|
@@ -2,100 +2,49 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
-
else
|
|
10
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
11
|
-
if (d = decorators[i])
|
|
12
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
|
-
};
|
|
15
5
|
import { h, Host } from "@stencil/core";
|
|
6
|
+
import { Bcm } from "@bcm/model";
|
|
7
|
+
import { Generate } from "@bcm/helpers";
|
|
16
8
|
import cs from 'classnames';
|
|
17
|
-
import { IsLoad } from "../../../decorators/is-load-decorator";
|
|
18
|
-
import { ColorHelper } from "../../../helper/color-helper";
|
|
19
|
-
import { Generate } from "../../../helper/generate";
|
|
20
|
-
import Bcm from "../../../models/bcm";
|
|
21
|
-
import { SlotTemplate } from "../../../templates/slot-template";
|
|
22
9
|
export class BcmRadio {
|
|
23
10
|
constructor() {
|
|
24
11
|
this._id = Generate.UID();
|
|
25
12
|
this.checked = undefined;
|
|
26
13
|
this.value = undefined;
|
|
27
|
-
this.disabled =
|
|
14
|
+
this.disabled = false;
|
|
28
15
|
this.size = Bcm.Size.medium;
|
|
29
|
-
this.
|
|
30
|
-
this.required = false;
|
|
31
|
-
this.color = "blue";
|
|
32
|
-
}
|
|
33
|
-
setColor(color = this.color) {
|
|
34
|
-
if (!color)
|
|
35
|
-
return;
|
|
36
|
-
const prefix = `--bcm-checkbox`;
|
|
37
|
-
return {
|
|
38
|
-
[`${prefix}-primary-color-default`]: ColorHelper.dsColor(color + '-500'),
|
|
39
|
-
[`${prefix}-primary-color-hover`]: ColorHelper.dsColor(color + '-600'),
|
|
40
|
-
[`${prefix}-primary-color-focus-visible`]: ColorHelper.dsColor(color + '-800'),
|
|
41
|
-
[`${prefix}-primary-color-active`]: ColorHelper.dsColor(color + '-700'),
|
|
42
|
-
// [`${prefix}-primary-color-disabled`]: ColorHelper.dsColor(color + '-300'),
|
|
43
|
-
[`${prefix}-secondary-color-default`]: ColorHelper.dsColor('white'),
|
|
44
|
-
[`${prefix}-secondary-color-hover`]: ColorHelper.dsColor('slate-50'),
|
|
45
|
-
[`${prefix}-secondary-color-focus-visible`]: ColorHelper.dsColor('slate-50'),
|
|
46
|
-
[`${prefix}-secondary-color-active`]: ColorHelper.dsColor('slate-50'),
|
|
47
|
-
// [`${prefix}-secondary-color-disabled`]: ColorHelper.dsColor('slate-200')
|
|
48
|
-
};
|
|
16
|
+
this.color = undefined;
|
|
49
17
|
}
|
|
50
18
|
render() {
|
|
51
|
-
const {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
checked,
|
|
74
|
-
disabled,
|
|
75
|
-
required
|
|
76
|
-
});
|
|
77
|
-
const bcmRadioLabelClass = cs('bcm-checkbox__label');
|
|
78
|
-
const bcmCheckboxInputClass = cs('bcm-checkbox__input');
|
|
79
|
-
return (h(Host, { class: bcmRadioHostClasses, onFocus: () => this.focus.emit(), onBlur: () => this.blur.emit(), style: this.setColor(this.color) }, h("span", { hidden: true }, h("slot", null)), h("div", { class: bcmCheckboxInputClass }, h("label", { class: bcmRadioLabelClass }, h("input", { type: "radio", value: value, checked: checked, disabled: disabled }), h("span", { class: cs("bcm-checkbox__label-icon", "bcm-radio__icon", {
|
|
80
|
-
'bcm-checkbox__label-icon-checked': checked,
|
|
81
|
-
}) }, h("span", { class: 'bcm-radio__icon-inner' })), h(SlotTemplate, { className: "slot" })))));
|
|
19
|
+
const { value, size, disabled, checked, _id, color } = this;
|
|
20
|
+
return (h(Host, { class: cs("tw-cursor-pointer tw-font-sans tw-mb-1.5 tw-mt-1", {
|
|
21
|
+
"tw-cursor-pointer tw-text-slate-600": !disabled,
|
|
22
|
+
"tw-cursor-not-allowed tw-text-slate-400": disabled,
|
|
23
|
+
"tw-text-1": size === Bcm.Size.small,
|
|
24
|
+
"tw-text-2.5": size === Bcm.Size.medium,
|
|
25
|
+
"tw-text-4": size === Bcm.Size.large,
|
|
26
|
+
}), style: (Generate.getTwColor(color)) }, h("label", { class: cs("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' }, h("input", { id: _id + '-input', type: "radio", value: value, checked: checked, disabled: disabled, class: cs("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", {
|
|
27
|
+
"tw-w-4 tw-h-4 before:tw-w-2.5 before:tw-h-2.5": size === Bcm.Size.medium,
|
|
28
|
+
"tw-w-3.5 tw-h-3.5 before:tw-w-2 before:tw-h-2": size === Bcm.Size.small,
|
|
29
|
+
"tw-w-4.5 tw-h-4.5 before:tw-w-3 before:tw-h-3": size === Bcm.Size.large,
|
|
30
|
+
}, "focus:tw-outline-none focus:tw-shadow-outline",
|
|
31
|
+
// default
|
|
32
|
+
`tw-border-slate-400 tw-bg-slate-50`, `checked:tw-border-default-500`, `checked:before:tw-bg-default-500`,
|
|
33
|
+
// disabled
|
|
34
|
+
`disabled:tw-border-slate-400 disabled:tw-bg-slate-200 disabled:tw-cursor-not-allowed`, `disabled:checked:tw-border-slate-400`, `disabled:checked:before:tw-bg-slate-400`, !disabled && cs(
|
|
35
|
+
// hover
|
|
36
|
+
`hover:tw-border-default-600`, `hover:checked:tw-border-default-600`, `hover:checked:before:tw-bg-default-600`,
|
|
37
|
+
// focus-visible
|
|
38
|
+
`focus-visible:tw-border-default-800 focus-visible:tw-shadow-sm`, `focus-visible:checked:tw-border-default-800`, `focus-visible:checked:before:tw-bg-default-800`,
|
|
39
|
+
// active
|
|
40
|
+
`active:tw-border-default-700`, `active:checked:tw-border-default-700`, `active:checked:before:tw-bg-default-700`)), onChange: () => this.radioChange.emit(), onFocus: () => this.focus.emit(), onBlur: () => this.blur.emit() }), h("slot", null))));
|
|
82
41
|
}
|
|
83
42
|
static get is() { return "bcm-radio"; }
|
|
84
|
-
static get originalStyleUrls() {
|
|
85
|
-
return {
|
|
86
|
-
"$": ["radio.scss"]
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
static get styleUrls() {
|
|
90
|
-
return {
|
|
91
|
-
"$": ["radio.css"]
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
43
|
static get properties() {
|
|
95
44
|
return {
|
|
96
45
|
"_id": {
|
|
97
46
|
"type": "string",
|
|
98
|
-
"mutable":
|
|
47
|
+
"mutable": false,
|
|
99
48
|
"complexType": {
|
|
100
49
|
"original": "string",
|
|
101
50
|
"resolved": "string",
|
|
@@ -105,7 +54,7 @@ export class BcmRadio {
|
|
|
105
54
|
"optional": false,
|
|
106
55
|
"docs": {
|
|
107
56
|
"tags": [],
|
|
108
|
-
"text": "
|
|
57
|
+
"text": ""
|
|
109
58
|
},
|
|
110
59
|
"attribute": "id",
|
|
111
60
|
"reflect": true,
|
|
@@ -113,7 +62,7 @@ export class BcmRadio {
|
|
|
113
62
|
},
|
|
114
63
|
"checked": {
|
|
115
64
|
"type": "boolean",
|
|
116
|
-
"mutable":
|
|
65
|
+
"mutable": false,
|
|
117
66
|
"complexType": {
|
|
118
67
|
"original": "boolean",
|
|
119
68
|
"resolved": "boolean",
|
|
@@ -130,7 +79,7 @@ export class BcmRadio {
|
|
|
130
79
|
},
|
|
131
80
|
"value": {
|
|
132
81
|
"type": "any",
|
|
133
|
-
"mutable":
|
|
82
|
+
"mutable": false,
|
|
134
83
|
"complexType": {
|
|
135
84
|
"original": "string | number",
|
|
136
85
|
"resolved": "number | string",
|
|
@@ -147,7 +96,7 @@ export class BcmRadio {
|
|
|
147
96
|
},
|
|
148
97
|
"disabled": {
|
|
149
98
|
"type": "boolean",
|
|
150
|
-
"mutable":
|
|
99
|
+
"mutable": false,
|
|
151
100
|
"complexType": {
|
|
152
101
|
"original": "boolean",
|
|
153
102
|
"resolved": "boolean",
|
|
@@ -160,18 +109,19 @@ export class BcmRadio {
|
|
|
160
109
|
"text": ""
|
|
161
110
|
},
|
|
162
111
|
"attribute": "disabled",
|
|
163
|
-
"reflect": false
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"defaultValue": "false"
|
|
164
114
|
},
|
|
165
115
|
"size": {
|
|
166
116
|
"type": "string",
|
|
167
|
-
"mutable":
|
|
117
|
+
"mutable": false,
|
|
168
118
|
"complexType": {
|
|
169
119
|
"original": "SizeTypes",
|
|
170
120
|
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
171
121
|
"references": {
|
|
172
122
|
"SizeTypes": {
|
|
173
123
|
"location": "import",
|
|
174
|
-
"path": "
|
|
124
|
+
"path": "@bcm/model"
|
|
175
125
|
}
|
|
176
126
|
}
|
|
177
127
|
},
|
|
@@ -185,48 +135,12 @@ export class BcmRadio {
|
|
|
185
135
|
"reflect": false,
|
|
186
136
|
"defaultValue": "Bcm.Size.medium"
|
|
187
137
|
},
|
|
188
|
-
"hidden": {
|
|
189
|
-
"type": "boolean",
|
|
190
|
-
"mutable": true,
|
|
191
|
-
"complexType": {
|
|
192
|
-
"original": "boolean",
|
|
193
|
-
"resolved": "boolean",
|
|
194
|
-
"references": {}
|
|
195
|
-
},
|
|
196
|
-
"required": false,
|
|
197
|
-
"optional": false,
|
|
198
|
-
"docs": {
|
|
199
|
-
"tags": [],
|
|
200
|
-
"text": ""
|
|
201
|
-
},
|
|
202
|
-
"attribute": "hidden",
|
|
203
|
-
"reflect": false,
|
|
204
|
-
"defaultValue": "false"
|
|
205
|
-
},
|
|
206
|
-
"required": {
|
|
207
|
-
"type": "boolean",
|
|
208
|
-
"mutable": true,
|
|
209
|
-
"complexType": {
|
|
210
|
-
"original": "boolean",
|
|
211
|
-
"resolved": "boolean",
|
|
212
|
-
"references": {}
|
|
213
|
-
},
|
|
214
|
-
"required": false,
|
|
215
|
-
"optional": false,
|
|
216
|
-
"docs": {
|
|
217
|
-
"tags": [],
|
|
218
|
-
"text": ""
|
|
219
|
-
},
|
|
220
|
-
"attribute": "required",
|
|
221
|
-
"reflect": false,
|
|
222
|
-
"defaultValue": "false"
|
|
223
|
-
},
|
|
224
138
|
"color": {
|
|
225
|
-
"type": "
|
|
226
|
-
"mutable":
|
|
139
|
+
"type": "any",
|
|
140
|
+
"mutable": false,
|
|
227
141
|
"complexType": {
|
|
228
|
-
"original": "
|
|
229
|
-
"resolved": "
|
|
142
|
+
"original": "any",
|
|
143
|
+
"resolved": "any",
|
|
230
144
|
"references": {}
|
|
231
145
|
},
|
|
232
146
|
"required": false,
|
|
@@ -236,15 +150,14 @@ export class BcmRadio {
|
|
|
236
150
|
"text": ""
|
|
237
151
|
},
|
|
238
152
|
"attribute": "color",
|
|
239
|
-
"reflect": false
|
|
240
|
-
"defaultValue": "\"blue\""
|
|
153
|
+
"reflect": false
|
|
241
154
|
}
|
|
242
155
|
};
|
|
243
156
|
}
|
|
244
157
|
static get events() {
|
|
245
158
|
return [{
|
|
246
|
-
"method": "
|
|
247
|
-
"name": "bcm-change",
|
|
159
|
+
"method": "radioChange",
|
|
160
|
+
"name": "bcm-radio-change",
|
|
248
161
|
"bubbles": true,
|
|
249
162
|
"cancelable": true,
|
|
250
163
|
"composed": true,
|
|
@@ -291,6 +204,3 @@ export class BcmRadio {
|
|
|
291
204
|
}
|
|
292
205
|
static get elementRef() { return "el"; }
|
|
293
206
|
}
|
|
294
|
-
__decorate([
|
|
295
|
-
IsLoad()
|
|
296
|
-
], BcmRadio.prototype, "el", void 0);
|
|
@@ -33,6 +33,7 @@ export class BcmSearch {
|
|
|
33
33
|
this.size = Bcm.Size.medium;
|
|
34
34
|
this.limit = 10;
|
|
35
35
|
this.searchIsOnlyChilds = false;
|
|
36
|
+
this.minSearchLength = 2;
|
|
36
37
|
this.data = [];
|
|
37
38
|
this.tick = {};
|
|
38
39
|
this.isActiveClearable = false;
|
|
@@ -87,7 +88,7 @@ export class BcmSearch {
|
|
|
87
88
|
}
|
|
88
89
|
onSearchValue(event, instance) {
|
|
89
90
|
const { value, id } = event.target;
|
|
90
|
-
const searchResult = (value === null || value === void 0 ? void 0 : value.length) >=
|
|
91
|
+
const searchResult = (value === null || value === void 0 ? void 0 : value.length) >= this.minSearchLength ? searchState.searchData(id, value, null) : null;
|
|
91
92
|
const { bcmOnSearch, inputElement } = instance;
|
|
92
93
|
bcmOnSearch.emit({ result: searchResult === null || searchResult === void 0 ? void 0 : searchResult.result, value: inputElement === null || inputElement === void 0 ? void 0 : inputElement.value, matching: searchResult === null || searchResult === void 0 ? void 0 : searchResult.matching, parentIndex: searchResult === null || searchResult === void 0 ? void 0 : searchResult.parentIndex, nestedResult: searchResult === null || searchResult === void 0 ? void 0 : searchResult.nestedResult });
|
|
93
94
|
}
|
|
@@ -257,6 +258,24 @@ export class BcmSearch {
|
|
|
257
258
|
"reflect": false,
|
|
258
259
|
"defaultValue": "false"
|
|
259
260
|
},
|
|
261
|
+
"minSearchLength": {
|
|
262
|
+
"type": "number",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "number",
|
|
266
|
+
"resolved": "number",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": ""
|
|
274
|
+
},
|
|
275
|
+
"attribute": "min-search-length",
|
|
276
|
+
"reflect": false,
|
|
277
|
+
"defaultValue": "2"
|
|
278
|
+
},
|
|
260
279
|
"data": {
|
|
261
280
|
"type": "any",
|
|
262
281
|
"mutable": true,
|
|
@@ -12,15 +12,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
12
12
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
13
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
14
|
};
|
|
15
|
-
import { forceUpdate, h, Host } from
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import stepperStates from
|
|
15
|
+
import { forceUpdate, h, Host } from "@stencil/core";
|
|
16
|
+
import snq from "snq";
|
|
17
|
+
import cs from "classnames";
|
|
18
|
+
import { Generate } from "@bcm/helpers";
|
|
19
|
+
import { IsLoad } from "@bcm/decorator";
|
|
20
|
+
import { StepperHeaderTemplate } from "@bcm/template";
|
|
21
|
+
import { delay, getChildElements } from "@bcm/utils";
|
|
22
|
+
import { Bcm } from "@bcm/model";
|
|
23
|
+
import stepperStates from "../states/stepper-states";
|
|
24
24
|
export class BcmStepper {
|
|
25
25
|
constructor() {
|
|
26
26
|
this.hidden = false;
|
|
@@ -63,14 +63,14 @@ export class BcmStepper {
|
|
|
63
63
|
this.setSteps(this.getItems());
|
|
64
64
|
}
|
|
65
65
|
setSteps(steps) {
|
|
66
|
-
const slots = getChildElements(this.el,
|
|
66
|
+
const slots = getChildElements(this.el, "bcm-step");
|
|
67
67
|
if (slots.length > 0) {
|
|
68
68
|
slots.forEach((item, index) => {
|
|
69
69
|
const step = steps.find(step => !item.headerHidden && step.id === item.id);
|
|
70
70
|
if (step) {
|
|
71
|
-
Generate.setAttributes(item, Object.assign({ title:
|
|
71
|
+
Generate.setAttributes(item, Object.assign({ title: "", _title: step.title || step._title || "", status: step.status || "default", disabled: step.disabled || false, valid: step.valid || true, loading: step.loading || false, index: step.index || index, active: step.active || false, innerHtml: step.innerHtml || "" }, (item.hidden == true && { headerHidden: true })));
|
|
72
72
|
if ((item.hidden = false)) {
|
|
73
|
-
item.removeAttribute(
|
|
73
|
+
item.removeAttribute("hidden");
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
});
|
|
@@ -86,7 +86,7 @@ export class BcmStepper {
|
|
|
86
86
|
return stepperStates.getActiveIndex(this.stepperId);
|
|
87
87
|
}
|
|
88
88
|
getSlotElements() {
|
|
89
|
-
return snq(() => getChildElements(this.el,
|
|
89
|
+
return snq(() => getChildElements(this.el, "bcm-step"), []);
|
|
90
90
|
}
|
|
91
91
|
async onStepChange(index) {
|
|
92
92
|
if (index) {
|
|
@@ -117,36 +117,53 @@ export class BcmStepper {
|
|
|
117
117
|
const step = await this.getCurrentStep();
|
|
118
118
|
const lastStep = this.getItems()[this.getItems().length - 1];
|
|
119
119
|
if (step.valid) {
|
|
120
|
-
this.linear && lastStep.id != step.id && (step.status =
|
|
120
|
+
this.linear && lastStep.id != step.id && (step.status = "success");
|
|
121
121
|
if (index < this.getItems().length) {
|
|
122
122
|
await this.onStepChange(index + 1);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
step.status =
|
|
126
|
+
step.status = "error";
|
|
127
127
|
}
|
|
128
128
|
forceUpdate(this.el);
|
|
129
129
|
return Promise.resolve(this.getActiveIndex());
|
|
130
130
|
}
|
|
131
|
-
async setActive(index) {
|
|
131
|
+
async setActive(index, force = false) {
|
|
132
132
|
if (!index)
|
|
133
133
|
return;
|
|
134
|
-
if (
|
|
135
|
-
|
|
136
|
-
.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
134
|
+
if (force) {
|
|
135
|
+
if (this.getActiveIndex() < index) {
|
|
136
|
+
while (this.getActiveIndex() < index) {
|
|
137
|
+
await this.next();
|
|
138
|
+
await delay(100);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
while (this.getActiveIndex() > index) {
|
|
143
|
+
await this.prev();
|
|
144
|
+
await delay(100);
|
|
145
|
+
}
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
else {
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
if (this.linear) {
|
|
150
|
+
const prevStepIsValid = this.getItems()
|
|
151
|
+
.filter(item => item.index < index)
|
|
152
|
+
.map(item => ({
|
|
153
|
+
id: item.id,
|
|
154
|
+
status: item.status,
|
|
155
|
+
disabled: item.disabled,
|
|
156
|
+
}))
|
|
157
|
+
.every(item => !item.disabled && (item.status === "success" || item.status === "default"));
|
|
158
|
+
console.log("prevStepIsValid", prevStepIsValid);
|
|
159
|
+
if (prevStepIsValid) {
|
|
160
|
+
await this.next(index - 1);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
stepperStates.setActiveIndex(this.stepperId, index);
|
|
165
|
+
await this.next(index - 1);
|
|
166
|
+
}
|
|
150
167
|
}
|
|
151
168
|
}
|
|
152
169
|
async reset() {
|
|
@@ -166,11 +183,11 @@ export class BcmStepper {
|
|
|
166
183
|
}
|
|
167
184
|
render() {
|
|
168
185
|
const { hidden, direction, linear, size } = this;
|
|
169
|
-
const hostClasses = cs(
|
|
170
|
-
|
|
186
|
+
const hostClasses = cs("bcm-stepper", "bcm-stepper__direction-" + direction, "bcm-stepper__size-" + size, {
|
|
187
|
+
"bcm-stepper__linear": linear,
|
|
171
188
|
hidden,
|
|
172
189
|
});
|
|
173
|
-
const lineClasses = item => cs(
|
|
190
|
+
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}`);
|
|
174
191
|
const items = this.getItems();
|
|
175
192
|
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) => [
|
|
176
193
|
h(StepperHeaderTemplate, Object.assign({}, item, { stepChange: step => this.onStepChange(step) })),
|
|
@@ -235,7 +252,7 @@ export class BcmStepper {
|
|
|
235
252
|
"references": {
|
|
236
253
|
"DirectionTypes": {
|
|
237
254
|
"location": "import",
|
|
238
|
-
"path": "
|
|
255
|
+
"path": "@bcm/model"
|
|
239
256
|
}
|
|
240
257
|
}
|
|
241
258
|
},
|
|
@@ -276,7 +293,7 @@ export class BcmStepper {
|
|
|
276
293
|
"references": {
|
|
277
294
|
"SizeTypes": {
|
|
278
295
|
"location": "import",
|
|
279
|
-
"path": "
|
|
296
|
+
"path": "@bcm/model"
|
|
280
297
|
}
|
|
281
298
|
}
|
|
282
299
|
},
|
|
@@ -435,10 +452,13 @@ export class BcmStepper {
|
|
|
435
452
|
},
|
|
436
453
|
"setActive": {
|
|
437
454
|
"complexType": {
|
|
438
|
-
"signature": "(index: number) => Promise<void>",
|
|
455
|
+
"signature": "(index: number, force?: boolean) => Promise<void>",
|
|
439
456
|
"parameters": [{
|
|
440
457
|
"tags": [],
|
|
441
458
|
"text": ""
|
|
459
|
+
}, {
|
|
460
|
+
"tags": [],
|
|
461
|
+
"text": ""
|
|
442
462
|
}],
|
|
443
463
|
"references": {
|
|
444
464
|
"Promise": {
|
|
@@ -125,7 +125,7 @@ export class BcmSwitch {
|
|
|
125
125
|
const bcmSwitchContainer = cs('bcm-switch__container', `bcm-switch__container--${this.labelPosition}`);
|
|
126
126
|
const switchText = (text) => (size != Bcm.Size.small && (activeText || inactiveText)) && (h("span", { class: text + '-text' }, text == 'active' ? activeText : inactiveText));
|
|
127
127
|
const switchIcon = (text) => (size != Bcm.Size.small && (activeIcon || inactiveIcon)) && h("bcm-icon", { icon: text == 'active' ? activeIcon : inactiveIcon, class: ' icon-' + text });
|
|
128
|
-
return (h(Host, { tabindex: "
|
|
128
|
+
return (h(Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), class: bcmSwitchClasses }, h("span", { hidden: true }, h("slot", null)), h("div", { class: bcmSwitchContainer }, label && h("bcm-label", { htmlFor: _internal_id, tooltip: this.tooltip, type: captionType, value: label, required: required }), h("input", { id: _internal_id, onChange: () => this.handleChange(), ref: el => (this.inputElement = el), checked: checked, type: "checkbox", class: "switch", disabled: disabled || readonly }), h("label", { htmlFor: _internal_id, class: bcmSwitchLabel }, switchText('inactive'), h("div", { class: classes }, switchIcon('active'), h("span", { class: "handle" }, pending && h("span", { class: "switch-spinner" })), switchIcon('inactive')), switchText('active'))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
129
129
|
}
|
|
130
130
|
static get is() { return "bcm-switch"; }
|
|
131
131
|
static get originalStyleUrls() {
|