bromcom-ui 2.7.38-rc.9 → 2.8.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/helper/index.ts +1 -0
- package/dist/bromcom-ui/global/helper/toast.ts +136 -0
- package/dist/bromcom-ui/{p-3f4192c8.entry.js → p-0191554f.entry.js} +1 -1
- package/dist/bromcom-ui/p-040f1cc5.entry.js +5 -0
- package/dist/bromcom-ui/{p-2dc55ebd.entry.js → p-05a32a81.entry.js} +1 -1
- 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-fa5118d5.entry.js → p-13f0d66c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c58f338d.entry.js → p-14938158.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2de23a54.entry.js → p-1d77cf0f.entry.js} +1 -1
- package/dist/bromcom-ui/p-21bf2bb5.js +5 -0
- package/dist/bromcom-ui/p-22e08221.entry.js +5 -0
- package/dist/bromcom-ui/p-23cb7133.js +5 -0
- package/dist/bromcom-ui/{p-1eaffb4d.entry.js → p-2552592a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5001042f.js → p-2a2466d0.js} +1 -1
- package/dist/bromcom-ui/{p-c421b369.entry.js → p-2b774123.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dddbb790.entry.js → p-2cac45d6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-444cb95f.entry.js → p-2cdc4578.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9d349123.entry.js → p-2f0e0ecf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4721d58a.entry.js → p-369d6e4f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-969f623c.entry.js → p-3836eb77.entry.js} +1 -1
- package/dist/bromcom-ui/{p-69ef565b.entry.js → p-3d4897d8.entry.js} +1 -1
- package/dist/bromcom-ui/p-4487e8c2.js +5 -0
- package/dist/bromcom-ui/p-4789cc74.entry.js +5 -0
- package/dist/bromcom-ui/{p-5775dcea.js → p-48e9166c.js} +1 -1
- package/dist/bromcom-ui/{p-1d44dbea.entry.js → p-4a123037.entry.js} +1 -1
- package/dist/bromcom-ui/p-4a51c718.entry.js +5 -0
- package/dist/bromcom-ui/{p-cf5ad8a8.entry.js → p-4d556100.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea9667ba.entry.js → p-4fa21c01.entry.js} +1 -1
- package/dist/bromcom-ui/{p-15dcafdc.entry.js → p-53beb481.entry.js} +1 -1
- package/dist/bromcom-ui/p-583d6b09.entry.js +5 -0
- package/dist/bromcom-ui/{p-b00d3d27.entry.js → p-5a5cc30f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-612f6cbc.entry.js → p-5c2bf950.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fc55a7e3.entry.js → p-5d014153.entry.js} +1 -1
- package/dist/bromcom-ui/p-5de651cc.entry.js +5 -0
- package/dist/bromcom-ui/{p-adf96c3b.entry.js → p-5fa48e18.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3126f440.entry.js → p-61709094.entry.js} +1 -1
- package/dist/bromcom-ui/{p-751ee360.entry.js → p-61865ff2.entry.js} +1 -1
- package/dist/bromcom-ui/p-695f6b01.entry.js +5 -0
- package/dist/bromcom-ui/{p-930558cd.js → p-6a473342.js} +1 -1
- package/dist/bromcom-ui/p-7224e112.entry.js +5 -0
- package/dist/bromcom-ui/{p-16ff1ff3.js → p-74595a06.js} +1 -1
- package/dist/bromcom-ui/{p-0a6cf248.entry.js → p-74e46eeb.entry.js} +1 -1
- package/dist/bromcom-ui/p-7c9025cb.js +5 -0
- package/dist/bromcom-ui/{p-2d75fb9d.entry.js → p-7d9a38b0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/p-7f1a79c5.entry.js +5 -0
- package/dist/bromcom-ui/{p-7b7ae0f3.entry.js → p-816c4dc7.entry.js} +1 -1
- package/dist/bromcom-ui/p-86356b26.entry.js +5 -0
- package/dist/bromcom-ui/{p-f7e85c95.entry.js → p-870c903a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba062b3c.js → p-88f7d869.js} +1 -1
- package/dist/bromcom-ui/p-8b60d1db.entry.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/{p-219b3300.entry.js → p-8d1cd79f.entry.js} +1 -1
- package/dist/bromcom-ui/p-8dbe72a1.entry.js +5 -0
- package/dist/bromcom-ui/{p-620afa4f.js → p-8fdcb5e7.js} +1 -1
- package/dist/bromcom-ui/p-91b1efad.entry.js +5 -0
- package/dist/bromcom-ui/{p-57d0c6e7.entry.js → p-97df9122.entry.js} +1 -1
- package/dist/bromcom-ui/p-994e484e.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-2b73f6b1.entry.js → p-9d3a9f5b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4f86851c.entry.js → p-a173ed35.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a8d1397d.js → p-a3ffcb0d.js} +1 -1
- package/dist/bromcom-ui/p-a427f0ee.entry.js +5 -0
- package/dist/bromcom-ui/{p-918acf86.entry.js → p-a9ab4073.entry.js} +1 -1
- package/dist/bromcom-ui/{p-962d32ef.entry.js → p-b1d6b529.entry.js} +1 -1
- package/dist/bromcom-ui/{p-de332baa.entry.js → p-b39f6cb3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d1bd9b8d.entry.js → p-b69abb6f.entry.js} +1 -1
- package/dist/bromcom-ui/p-b8ffc86f.entry.js +5 -0
- package/dist/bromcom-ui/{p-faee01b2.entry.js → p-bb95aa62.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6c77955c.entry.js → p-bc332b5d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-44843df2.entry.js → p-bc97d311.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5a9b78f6.entry.js → p-bdb012c3.entry.js} +1 -1
- package/dist/bromcom-ui/p-c0ac6d54.entry.js +5 -0
- package/dist/bromcom-ui/p-c68f44be.entry.js +5 -0
- package/dist/bromcom-ui/{p-69bffd70.entry.js → p-cf04e7a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e9cea37d.entry.js → p-d4ff4de0.entry.js} +1 -1
- package/dist/bromcom-ui/p-d777677c.entry.js +10 -0
- package/dist/bromcom-ui/p-da540844.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-568f4f45.entry.js → p-e02491ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-e0ec1a36.js +5 -0
- package/dist/bromcom-ui/{p-0b6afb97.entry.js → p-e2b3cb98.entry.js} +1 -1
- package/dist/bromcom-ui/p-e2e7d808.entry.js +5 -0
- package/dist/bromcom-ui/{p-cd8998bd.entry.js → p-ec7f4a12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4b1ed966.entry.js → p-f089027d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9979bd82.entry.js → p-f16ce14a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-08c22a43.entry.js → p-f21a7fc0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-87de49b4.entry.js → p-fe996e86.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9608226.entry.js → p-fea33175.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 +2 -2
- 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.cjs.entry.js → bcm-button_2.cjs.entry.js} +125 -28
- package/dist/cjs/bcm-card.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- 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_7.cjs.entry.js → bcm-colorful_2.cjs.entry.js} +8 -903
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +432 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
- 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-form.cjs.entry.js +1 -1
- package/dist/cjs/bcm-icon.cjs.entry.js +41 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +72 -0
- package/dist/cjs/bcm-input.cjs.entry.js +368 -0
- package/dist/cjs/bcm-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-items.cjs.entry.js +1 -1
- package/dist/cjs/bcm-label_2.cjs.entry.js +148 -0
- package/dist/cjs/bcm-link.cjs.entry.js +1 -1
- package/dist/cjs/bcm-list.cjs.entry.js +13 -12
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +82 -33
- package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio.cjs.entry.js +2 -2
- package/dist/cjs/bcm-range.cjs.entry.js +1 -1
- package/dist/cjs/bcm-search.cjs.entry.js +4 -3
- package/dist/cjs/bcm-select.cjs.entry.js +1 -1
- 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 +55 -29
- package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab-group.cjs.entry.js +85 -98
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +86 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +103 -0
- 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/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{generate-dbed3a63.js → generate-eef61d08.js} +105 -16
- package/dist/cjs/{input-template-79002b88.js → input-template-517c3f53.js} +2 -2
- package/dist/cjs/{json-parse-decarator-65760934.js → json-parse-decarator-c0d7e570.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{number-helper-d77c9113.js → number-helper-652dc22d.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-fae35b0d.js → stepper-states-d00a1313.js} +1 -1
- package/dist/cjs/{tooltip-helper-7beca613.js → tooltip-helper-cd02e32b.js} +36 -6
- package/dist/cjs/{validators-95afb38d.js → validators-7eed007b.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- 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/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/radio.css +1 -0
- 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/organism/states/bcm-list2.states.js +1 -1
- 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/toast/toast.js +365 -0
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/global/components/_checkbox.css +1 -0
- package/dist/collection/global/helper/index.js +5 -0
- package/dist/collection/global/helper/index.ts +1 -0
- package/dist/collection/global/helper/toast.js +114 -0
- package/dist/collection/global/helper/toast.ts +136 -0
- package/dist/collection/helper/generate.js +108 -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 +11 -9
- package/dist/components/bcm-popconfirm.js +1 -1
- package/dist/components/bcm-popover.js +83 -30
- 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/bcm-toast.d.ts +11 -0
- package/dist/components/bcm-toast.js +140 -0
- 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/datetime-picker.js +1 -1
- package/dist/components/generate.js +105 -16
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -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 +1 -1
- 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 +3 -3
- package/dist/esm/bcm-alert.entry.js +4 -4
- package/dist/esm/bcm-attendance.entry.js +4 -4
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +9 -9
- package/dist/esm/bcm-box.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +3 -3
- package/dist/esm/bcm-button-group.entry.js +3 -3
- package/dist/esm/{bcm-button.entry.js → bcm-button_2.entry.js} +124 -28
- package/dist/esm/bcm-card.entry.js +6 -6
- package/dist/esm/bcm-checkbox-group.entry.js +7 -7
- package/dist/esm/bcm-checkbox-lite_9.entry.js +5 -5
- package/dist/esm/bcm-checkbox_2.entry.js +9 -9
- package/dist/esm/bcm-chip.entry.js +6 -6
- package/dist/esm/bcm-collapse-group.entry.js +3 -3
- package/dist/esm/bcm-collapse.entry.js +3 -3
- package/dist/esm/bcm-color-input.entry.js +7 -7
- package/dist/esm/{bcm-colorful_7.entry.js → bcm-colorful_2.entry.js} +15 -905
- package/dist/esm/bcm-colorpicker.entry.js +428 -0
- package/dist/esm/bcm-date-picker.entry.js +4 -4
- package/dist/esm/bcm-datetime-picker.entry.js +8 -8
- package/dist/esm/bcm-default.entry.js +3 -3
- package/dist/esm/bcm-drawer.entry.js +8 -8
- package/dist/esm/bcm-dropdown.entry.js +4 -4
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +5 -5
- package/dist/esm/bcm-form-2.entry.js +3 -3
- package/dist/esm/bcm-form-group.entry.js +2 -2
- package/dist/esm/bcm-form.entry.js +4 -4
- package/dist/esm/bcm-icon.entry.js +37 -0
- package/dist/esm/bcm-input-custom.entry.js +68 -0
- package/dist/esm/bcm-input.entry.js +364 -0
- package/dist/esm/bcm-item.entry.js +5 -5
- package/dist/esm/bcm-items.entry.js +3 -3
- package/dist/esm/bcm-label_2.entry.js +143 -0
- package/dist/esm/bcm-link.entry.js +3 -3
- package/dist/esm/bcm-list.entry.js +22 -21
- package/dist/esm/bcm-menu.entry.js +10 -10
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal.entry.js +4 -4
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-input.entry.js +4 -4
- package/dist/esm/bcm-old-tag_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +5 -5
- package/dist/esm/bcm-popconfirm.entry.js +4 -4
- package/dist/esm/bcm-popover.entry.js +86 -37
- package/dist/esm/bcm-progress.entry.js +5 -5
- package/dist/esm/bcm-radio-group.entry.js +6 -6
- package/dist/esm/bcm-radio.entry.js +7 -7
- package/dist/esm/bcm-range.entry.js +4 -4
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-search.entry.js +8 -7
- 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 +4 -4
- package/dist/esm/bcm-skeleton.entry.js +3 -3
- package/dist/esm/bcm-step.entry.js +5 -5
- package/dist/esm/bcm-stepper.entry.js +56 -30
- package/dist/esm/bcm-switch.entry.js +6 -6
- package/dist/esm/bcm-tab-group.entry.js +86 -99
- package/dist/esm/bcm-tab-item-header.entry.js +82 -0
- package/dist/esm/bcm-tab-item.entry.js +99 -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 +3 -3
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +5 -5
- package/dist/esm/bcm-text.entry.js +5 -5
- package/dist/esm/bcm-textarea.entry.js +6 -6
- package/dist/esm/bcm-time-picker.entry.js +4 -4
- 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-b5e9aa56.js → color-helper-7e202fd8.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{generate-1e46485f.js → generate-5f6567d0.js} +105 -16
- 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-e03cafc5.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-d8836c67.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-b8a2b813.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +6 -6
- package/dist/esm/old-bcm-popover.entry.js +3 -3
- package/dist/esm/{slot-template-5b2da1d3.js → slot-template-64b41ee5.js} +1 -1
- package/dist/esm/{stepper-states-822ebfe9.js → stepper-states-16e0b400.js} +3 -3
- package/dist/esm/{tooltip-helper-aecc821b.js → tooltip-helper-87acf426.js} +38 -8
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-1b3c085a.js → validators-07033707.js} +1 -1
- package/dist/types/components/molecules/popover/popover.d.ts +10 -1
- 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/other/toast/toast.d.ts +25 -0
- package/dist/types/components.d.ts +157 -9
- package/dist/types/global/helper/index.d.ts +1 -0
- package/dist/types/global/helper/toast.d.ts +96 -0
- package/dist/types/helper/generate.d.ts +2 -0
- package/dist/types/helper/popover-helper.d.ts +13 -3
- package/dist/types/helper/tooltip-helper.d.ts +13 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/templates/list-template.d.ts +1 -0
- package/helper/index.d.ts +2 -0
- package/helper/index.d.ts.map +1 -0
- package/helper/index.js +17 -0
- package/helper/toast.d.ts +97 -0
- package/helper/toast.d.ts.map +1 -0
- package/helper/toast.js +115 -0
- package/package.json +8 -5
- package/dist/bromcom-ui/p-053e9893.js +0 -5
- package/dist/bromcom-ui/p-07ebe62b.entry.js +0 -10
- package/dist/bromcom-ui/p-1683b3c0.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-40736ee7.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-7c318b12.js +0 -5
- package/dist/bromcom-ui/p-7dfb39a6.js +0 -5
- package/dist/bromcom-ui/p-7ea09be3.js +0 -5
- package/dist/bromcom-ui/p-8914af05.entry.js +0 -5
- package/dist/bromcom-ui/p-968e2d79.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-ac156ba4.entry.js +0 -5
- package/dist/bromcom-ui/p-c9e1f317.entry.js +0 -5
- package/dist/bromcom-ui/p-e258c81c.entry.js +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator.js';
|
|
7
7
|
import { C as ColorHelper } from './color-helper.js';
|
|
8
8
|
import './validators.js';
|
|
@@ -11,31 +11,39 @@ import './number-helper.js';
|
|
|
11
11
|
import { S as StringHelper } from './string-helper.js';
|
|
12
12
|
import './element-dragger.js';
|
|
13
13
|
import { a as Bcm } from './bcm.js';
|
|
14
|
+
import { d as delay } from './utils.js';
|
|
14
15
|
import { F as FloatingUI } from './floating-ui.js';
|
|
15
16
|
|
|
16
17
|
class Popover {
|
|
17
|
-
constructor({ content, message, targetId, placement =
|
|
18
|
+
constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, emitShow = () => { }, emitHide = () => { } }) {
|
|
19
|
+
this.destroy = () => {
|
|
20
|
+
this.el = document.getElementById(this.id);
|
|
21
|
+
if (this.el) {
|
|
22
|
+
this.el.remove();
|
|
23
|
+
this.emitHide();
|
|
24
|
+
}
|
|
25
|
+
this.removeListener();
|
|
26
|
+
};
|
|
18
27
|
this.bgColor = () => ColorHelper.twColor(this.color, 700);
|
|
19
28
|
this.exepcitonColors = {
|
|
20
|
-
white:
|
|
21
|
-
black:
|
|
29
|
+
white: "slate-300",
|
|
30
|
+
black: "slate-700",
|
|
22
31
|
};
|
|
23
32
|
this.target = () => document.getElementById(this.targetId);
|
|
24
33
|
this.init = () => {
|
|
25
|
-
console.log(this.content, this.message);
|
|
26
34
|
const inner = `<div class="tw-z-[1] tw-rounded tw-py-2 tw-bg-${this.bgColor()}">
|
|
27
|
-
${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` :
|
|
28
|
-
${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` :
|
|
35
|
+
${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` : ""}
|
|
36
|
+
${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` : ""}
|
|
29
37
|
</div>`;
|
|
30
|
-
this.el = Generate.createElement(
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
this.el = Generate.createElement("div", {
|
|
39
|
+
"id": `${this.targetId}-popover-box`,
|
|
40
|
+
"class": `
|
|
33
41
|
tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-${this.bgColor()} tw-text-white tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300
|
|
34
42
|
tw-shadow`,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
"role": "popover",
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
"style": `color: ${ColorHelper.twColorReverse(this.bgColor())}`,
|
|
46
|
+
"innerHTML": inner,
|
|
39
47
|
});
|
|
40
48
|
};
|
|
41
49
|
this.update = () => {
|
|
@@ -46,26 +54,38 @@ class Popover {
|
|
|
46
54
|
}
|
|
47
55
|
};
|
|
48
56
|
this.listener = () => {
|
|
49
|
-
window.addEventListener(
|
|
50
|
-
window.addEventListener(
|
|
51
|
-
window.addEventListener(
|
|
57
|
+
window.addEventListener("resize", this.calculatePosition.bind(this));
|
|
58
|
+
window.addEventListener("scroll", this.calculatePosition.bind(this), true);
|
|
59
|
+
window.addEventListener("wheel", this.calculatePosition.bind(this));
|
|
52
60
|
if (this.trigger && this.target()) {
|
|
53
61
|
switch (this.trigger) {
|
|
54
|
-
case
|
|
55
|
-
this.target().addEventListener(
|
|
62
|
+
case "click":
|
|
63
|
+
this.target().addEventListener("click", this.toggle.bind(this));
|
|
56
64
|
break;
|
|
57
|
-
case
|
|
58
|
-
this.target().addEventListener(
|
|
59
|
-
this.target().addEventListener(
|
|
65
|
+
case "hover":
|
|
66
|
+
this.target().addEventListener("mouseenter", this.show.bind(this));
|
|
67
|
+
this.target().addEventListener("mouseleave", this.hide.bind(this));
|
|
60
68
|
break;
|
|
61
|
-
case
|
|
62
|
-
this.target().addEventListener(
|
|
63
|
-
this.target().addEventListener(
|
|
69
|
+
case "focus":
|
|
70
|
+
this.target().addEventListener("focus", this.show.bind(this), true);
|
|
71
|
+
this.target().addEventListener("blur", this.hide.bind(this), true);
|
|
64
72
|
break;
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
75
|
this.calculatePosition();
|
|
68
76
|
};
|
|
77
|
+
this.removeListener = () => {
|
|
78
|
+
window.removeEventListener("resize", this.calculatePosition.bind(this));
|
|
79
|
+
window.removeEventListener("scroll", this.calculatePosition.bind(this), true);
|
|
80
|
+
window.removeEventListener("wheel", this.calculatePosition.bind(this));
|
|
81
|
+
if (this.target()) {
|
|
82
|
+
this.target().removeEventListener("click", this.toggle.bind(this));
|
|
83
|
+
this.target().removeEventListener("mouseenter", this.show.bind(this));
|
|
84
|
+
this.target().removeEventListener("mouseleave", this.hide.bind(this));
|
|
85
|
+
this.target().removeEventListener("focus", this.show.bind(this), true);
|
|
86
|
+
this.target().removeEventListener("blur", this.hide.bind(this), true);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
69
89
|
this.calculatePosition = () => {
|
|
70
90
|
this.el = document.getElementById(this.id);
|
|
71
91
|
if (this.el) {
|
|
@@ -79,19 +99,23 @@ class Popover {
|
|
|
79
99
|
});
|
|
80
100
|
}
|
|
81
101
|
};
|
|
82
|
-
this.show = () => {
|
|
102
|
+
this.show = async () => {
|
|
83
103
|
if (this.message) {
|
|
84
104
|
this.init();
|
|
105
|
+
await delay(this.openDelay);
|
|
85
106
|
this.calculatePosition();
|
|
107
|
+
this.emitShow();
|
|
86
108
|
}
|
|
87
109
|
else {
|
|
88
110
|
this.hide();
|
|
89
111
|
}
|
|
90
112
|
};
|
|
91
|
-
this.hide = () => {
|
|
113
|
+
this.hide = async () => {
|
|
92
114
|
this.el = document.getElementById(this.id);
|
|
93
115
|
if (this.el) {
|
|
116
|
+
await delay(this.closeDelay);
|
|
94
117
|
this.el.remove();
|
|
118
|
+
this.emitHide();
|
|
95
119
|
}
|
|
96
120
|
};
|
|
97
121
|
this.toggle = () => {
|
|
@@ -109,7 +133,12 @@ class Popover {
|
|
|
109
133
|
this.placement = placement;
|
|
110
134
|
this.color = color;
|
|
111
135
|
this.trigger = trigger;
|
|
112
|
-
this.id = targetId +
|
|
136
|
+
this.id = targetId + "-popover-box";
|
|
137
|
+
this.openDelay = openDelay;
|
|
138
|
+
this.closeDelay = closeDelay;
|
|
139
|
+
this.emitShow = emitShow;
|
|
140
|
+
this.emitHide = emitHide;
|
|
141
|
+
Generate.observeElementRemoval(document.getElementById(this.targetId), this.destroy.bind(this));
|
|
113
142
|
}
|
|
114
143
|
}
|
|
115
144
|
|
|
@@ -127,6 +156,8 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
127
156
|
constructor() {
|
|
128
157
|
super();
|
|
129
158
|
this.__registerHost();
|
|
159
|
+
this.bcmPopoverShow = createEvent(this, "bcmPopoverShow", 7);
|
|
160
|
+
this.bcmPopoverHide = createEvent(this, "bcmPopoverHide", 7);
|
|
130
161
|
this._id = Generate.UID();
|
|
131
162
|
this.message = "";
|
|
132
163
|
this.content = "";
|
|
@@ -134,13 +165,29 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
134
165
|
this.trigger = Bcm.TriggerType.click;
|
|
135
166
|
this.open = false;
|
|
136
167
|
this.color = "white";
|
|
168
|
+
this.targetId = undefined;
|
|
169
|
+
this.openDelay = 0;
|
|
170
|
+
this.closeDelay = 0;
|
|
171
|
+
this.popover = undefined;
|
|
172
|
+
}
|
|
173
|
+
emitShow() {
|
|
174
|
+
this.bcmPopoverShow.emit();
|
|
175
|
+
}
|
|
176
|
+
emitHide() {
|
|
177
|
+
this.bcmPopoverHide.emit();
|
|
178
|
+
}
|
|
179
|
+
componentWillLoad() {
|
|
137
180
|
this.popover = new Popover({
|
|
138
|
-
targetId: this._id,
|
|
181
|
+
targetId: this.targetId || this._id,
|
|
139
182
|
content: this.content,
|
|
140
183
|
message: this.message,
|
|
141
184
|
placement: this.placement,
|
|
142
185
|
color: this.color,
|
|
143
186
|
trigger: this.trigger,
|
|
187
|
+
openDelay: this.openDelay,
|
|
188
|
+
closeDelay: this.closeDelay,
|
|
189
|
+
emitShow: () => this.emitShow(),
|
|
190
|
+
emitHide: () => this.emitHide(),
|
|
144
191
|
});
|
|
145
192
|
}
|
|
146
193
|
componentDidLoad() {
|
|
@@ -155,6 +202,9 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
155
202
|
this.popover.trigger = trigger;
|
|
156
203
|
this.popover.update();
|
|
157
204
|
}
|
|
205
|
+
disconnectedCallback() {
|
|
206
|
+
this.popover.destroy();
|
|
207
|
+
}
|
|
158
208
|
async show() {
|
|
159
209
|
this.popover.show();
|
|
160
210
|
}
|
|
@@ -165,7 +215,7 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
165
215
|
this.popover.toggle();
|
|
166
216
|
}
|
|
167
217
|
render() {
|
|
168
|
-
return (h(Host, { "aria-describedby": "popover",
|
|
218
|
+
return (h(Host, { "aria-describedby": "popover", class: "tw-inline-flex tw-h-fit tw-w-fit" }, h("slot", null)));
|
|
169
219
|
}
|
|
170
220
|
get el() { return this; }
|
|
171
221
|
}, [4, "bcm-popover", {
|
|
@@ -176,6 +226,9 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
176
226
|
"trigger": [1],
|
|
177
227
|
"open": [1028],
|
|
178
228
|
"color": [1],
|
|
229
|
+
"targetId": [1, "target-id"],
|
|
230
|
+
"openDelay": [2, "open-delay"],
|
|
231
|
+
"closeDelay": [2, "close-delay"],
|
|
179
232
|
"popover": [32],
|
|
180
233
|
"show": [64],
|
|
181
234
|
"hide": [64],
|
|
@@ -1207,7 +1207,7 @@ const BcmSelect$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
1207
1207
|
'overflow': 'hidden',
|
|
1208
1208
|
'display': 'block'
|
|
1209
1209
|
};
|
|
1210
|
-
return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, h("div", { class: container }, label && h("bcm-label", { onClick: () => this.handleOpen(false), tooltip: this.tooltip, type: captionType, value: label, required: required }), h("div", { id: "selected-container", class: selected, onClick: (e) => this.handleOpen(e)
|
|
1210
|
+
return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, h("div", { class: container }, label && h("bcm-label", { onClick: () => this.handleOpen(false), tooltip: this.tooltip, type: captionType, value: label, required: required }), h("div", { id: "selected-container", class: selected, onClick: (e) => this.handleOpen(e) }, h("span", { class: selectedText, title: this.selectText && (this.selectText) }, (this.selectText && (this.selectText)), ((!this.selectText && (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0)) && (h("span", { id: "tagcontainer", class: "tag-container" }, h("span", null, this.onShowVisibleTags.map((item) => (h("bcm-old-tag", { _internal_id: this._internal_id, customStyle: customStyleTag, onClick: () => this.handleClickTag(), type: "dissmisable", value: item[this.objectMapping['text']], title: item[this.objectMapping['text']], id: item[this.objectMapping['id']], class: "tag" })))), h("span", null, this.onShowHiddenTags.length > 0 && (h("bcm-old-tag", { _internal_id: this._internal_id, title: this.hiddenTagsString, customStyle: customStyleOtherTag, onClick: (e) => this.showHiddenTags(e), color: this.otherTagStatus ? 'prime-blue' : 'grey-9', type: "dissmisable", value: "+ " + this.onShowHiddenTags.length + " item" + (this.onShowHiddenTags.length > 1 ? 's' : '') + " selected", id: "other-tag" })))))), (!(this.selectText || this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) && placeholder && (h("span", { class: "placeholder" }, " ", placeholder, " ")))), h("div", { class: "buttons" }, clearable && value && (h("button", { class: "select-clear-button", onClick: (e) => this.clickClear(e) }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z" })))), h("span", { class: this.isOpen ? 'open' : 'close' }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, h("path", { d: "M168.5 164.2l148 146.8c4.7 4.7 4.7 12.3 0 17l-19.8 19.8c-4.7 4.7-12.3 4.7-17 0L160 229.3 40.3 347.8c-4.7 4.7-12.3 4.7-17 0L3.5 328c-4.7-4.7-4.7-12.3 0-17l148-146.8c4.7-4.7 12.3-4.7 17 0z" }))))), h("div", { class: menu, style: optionViewportStyle }, h("div", { class: optionsViewport })), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
|
|
1211
1211
|
? h("span", { class: captionClasses }, " ", captionError, " ")
|
|
1212
1212
|
: caption && h("span", { class: captionClasses }, " ", caption, " "))))));
|
|
1213
1213
|
}
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { h, proxyCustomElement, HTMLElement, createEvent, forceUpdate, Host } from '@stencil/core/internal/client';
|
|
6
|
-
import { c as classnames } from './index2.js';
|
|
7
6
|
import { G as Generate, s as snq } from './generate.js';
|
|
7
|
+
import { c as classnames } from './index2.js';
|
|
8
|
+
import './color-helper.js';
|
|
9
|
+
import './validators.js';
|
|
10
|
+
import './number-helper.js';
|
|
11
|
+
import './string-helper.js';
|
|
12
|
+
import './element-dragger.js';
|
|
13
|
+
import { g as getChildElements, d as delay } from './utils.js';
|
|
14
|
+
import { a as Bcm } from './bcm.js';
|
|
8
15
|
import { I as IsLoad } from './is-load-decorator.js';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
16
|
+
import './types.js';
|
|
17
|
+
import './types2.js';
|
|
11
18
|
import { s as stepperStates, d as defineCustomElement$2 } from './step.js';
|
|
12
|
-
import { d as defineCustomElement$3 } from './icon.js';
|
|
13
19
|
|
|
14
20
|
const StepperHeaderTemplate = ({ _title, description, status, valid, index, loading, active, stepChange, statusIcon, icon, disabled, headerHidden, }) => {
|
|
15
21
|
const classes = classnames('bcm-stepper__header-item', `bcm-stepper__header-item--${status}`, {
|
|
@@ -89,14 +95,14 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
89
95
|
this.setSteps(this.getItems());
|
|
90
96
|
}
|
|
91
97
|
setSteps(steps) {
|
|
92
|
-
const slots = getChildElements(this.el,
|
|
98
|
+
const slots = getChildElements(this.el, "bcm-step");
|
|
93
99
|
if (slots.length > 0) {
|
|
94
100
|
slots.forEach((item, index) => {
|
|
95
101
|
const step = steps.find(step => !item.headerHidden && step.id === item.id);
|
|
96
102
|
if (step) {
|
|
97
|
-
Generate.setAttributes(item, Object.assign({ title:
|
|
103
|
+
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 })));
|
|
98
104
|
if ((item.hidden = false)) {
|
|
99
|
-
item.removeAttribute(
|
|
105
|
+
item.removeAttribute("hidden");
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
108
|
});
|
|
@@ -112,7 +118,7 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
112
118
|
return stepperStates.getActiveIndex(this.stepperId);
|
|
113
119
|
}
|
|
114
120
|
getSlotElements() {
|
|
115
|
-
return snq(() => getChildElements(this.el,
|
|
121
|
+
return snq(() => getChildElements(this.el, "bcm-step"), []);
|
|
116
122
|
}
|
|
117
123
|
async onStepChange(index) {
|
|
118
124
|
if (index) {
|
|
@@ -143,36 +149,53 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
143
149
|
const step = await this.getCurrentStep();
|
|
144
150
|
const lastStep = this.getItems()[this.getItems().length - 1];
|
|
145
151
|
if (step.valid) {
|
|
146
|
-
this.linear && lastStep.id != step.id && (step.status =
|
|
152
|
+
this.linear && lastStep.id != step.id && (step.status = "success");
|
|
147
153
|
if (index < this.getItems().length) {
|
|
148
154
|
await this.onStepChange(index + 1);
|
|
149
155
|
}
|
|
150
156
|
}
|
|
151
157
|
else {
|
|
152
|
-
step.status =
|
|
158
|
+
step.status = "error";
|
|
153
159
|
}
|
|
154
160
|
forceUpdate(this.el);
|
|
155
161
|
return Promise.resolve(this.getActiveIndex());
|
|
156
162
|
}
|
|
157
|
-
async setActive(index) {
|
|
163
|
+
async setActive(index, force = false) {
|
|
158
164
|
if (!index)
|
|
159
165
|
return;
|
|
160
|
-
if (
|
|
161
|
-
|
|
162
|
-
.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
if (force) {
|
|
167
|
+
if (this.getActiveIndex() < index) {
|
|
168
|
+
while (this.getActiveIndex() < index) {
|
|
169
|
+
await this.next();
|
|
170
|
+
await delay(100);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
while (this.getActiveIndex() > index) {
|
|
175
|
+
await this.prev();
|
|
176
|
+
await delay(100);
|
|
177
|
+
}
|
|
171
178
|
}
|
|
172
179
|
}
|
|
173
180
|
else {
|
|
174
|
-
|
|
175
|
-
|
|
181
|
+
if (this.linear) {
|
|
182
|
+
const prevStepIsValid = this.getItems()
|
|
183
|
+
.filter(item => item.index < index)
|
|
184
|
+
.map(item => ({
|
|
185
|
+
id: item.id,
|
|
186
|
+
status: item.status,
|
|
187
|
+
disabled: item.disabled,
|
|
188
|
+
}))
|
|
189
|
+
.every(item => !item.disabled && (item.status === "success" || item.status === "default"));
|
|
190
|
+
console.log("prevStepIsValid", prevStepIsValid);
|
|
191
|
+
if (prevStepIsValid) {
|
|
192
|
+
await this.next(index - 1);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
stepperStates.setActiveIndex(this.stepperId, index);
|
|
197
|
+
await this.next(index - 1);
|
|
198
|
+
}
|
|
176
199
|
}
|
|
177
200
|
}
|
|
178
201
|
async reset() {
|
|
@@ -192,11 +215,11 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
192
215
|
}
|
|
193
216
|
render() {
|
|
194
217
|
const { hidden, direction, linear, size } = this;
|
|
195
|
-
const hostClasses = classnames(
|
|
196
|
-
|
|
218
|
+
const hostClasses = classnames("bcm-stepper", "bcm-stepper__direction-" + direction, "bcm-stepper__size-" + size, {
|
|
219
|
+
"bcm-stepper__linear": linear,
|
|
197
220
|
hidden,
|
|
198
221
|
});
|
|
199
|
-
const lineClasses = item => classnames(
|
|
222
|
+
const lineClasses = item => classnames("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}`);
|
|
200
223
|
const items = this.getItems();
|
|
201
224
|
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) => [
|
|
202
225
|
h(StepperHeaderTemplate, Object.assign({}, item, { stepChange: step => this.onStepChange(step) })),
|
|
@@ -233,18 +256,13 @@ function defineCustomElement$1() {
|
|
|
233
256
|
if (typeof customElements === "undefined") {
|
|
234
257
|
return;
|
|
235
258
|
}
|
|
236
|
-
const components = ["bcm-stepper", "bcm-
|
|
259
|
+
const components = ["bcm-stepper", "bcm-step"];
|
|
237
260
|
components.forEach(tagName => { switch (tagName) {
|
|
238
261
|
case "bcm-stepper":
|
|
239
262
|
if (!customElements.get(tagName)) {
|
|
240
263
|
customElements.define(tagName, BcmStepper$1);
|
|
241
264
|
}
|
|
242
265
|
break;
|
|
243
|
-
case "bcm-icon":
|
|
244
|
-
if (!customElements.get(tagName)) {
|
|
245
|
-
defineCustomElement$3();
|
|
246
|
-
}
|
|
247
|
-
break;
|
|
248
266
|
case "bcm-step":
|
|
249
267
|
if (!customElements.get(tagName)) {
|
|
250
268
|
defineCustomElement$2();
|
|
@@ -136,7 +136,7 @@ const BcmSwitch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
136
136
|
const bcmSwitchContainer = classnames('bcm-switch__container', `bcm-switch__container--${this.labelPosition}`);
|
|
137
137
|
const switchText = (text) => (size != Bcm.Size.small && (activeText || inactiveText)) && (h("span", { class: text + '-text' }, text == 'active' ? activeText : inactiveText));
|
|
138
138
|
const switchIcon = (text) => (size != Bcm.Size.small && (activeIcon || inactiveIcon)) && h("bcm-icon", { icon: text == 'active' ? activeIcon : inactiveIcon, class: ' icon-' + text });
|
|
139
|
-
return (h(Host, { tabindex: "
|
|
139
|
+
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 })));
|
|
140
140
|
}
|
|
141
141
|
get el() { return this; }
|
|
142
142
|
static get style() { return switchCss; }
|