bromcom-ui 2.7.38-rc.8 → 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-d6fe1d25.entry.js → p-0191554f.entry.js} +1 -1
- package/dist/bromcom-ui/p-040f1cc5.entry.js +5 -0
- package/dist/bromcom-ui/{p-2b94d9ac.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-13f0d66c.entry.js +5 -0
- package/dist/bromcom-ui/{p-c58f338d.entry.js → p-14938158.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dd50e75e.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-1e47e597.entry.js → p-2552592a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1f103e82.js → p-2a2466d0.js} +1 -1
- package/dist/bromcom-ui/{p-6d17ae58.entry.js → p-2b774123.entry.js} +1 -1
- package/dist/bromcom-ui/{p-db102b27.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-9164fab5.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-1e2932b4.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-04bd9117.entry.js → p-4d556100.entry.js} +1 -1
- package/dist/bromcom-ui/{p-032a02bb.entry.js → p-4fa21c01.entry.js} +1 -1
- package/dist/bromcom-ui/{p-069a06c8.entry.js → p-53beb481.entry.js} +1 -1
- package/dist/bromcom-ui/p-583d6b09.entry.js +5 -0
- package/dist/bromcom-ui/{p-62a25424.entry.js → p-5a5cc30f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-68454f53.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-91a7f380.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-d2c0f560.entry.js → p-61865ff2.entry.js} +1 -1
- package/dist/bromcom-ui/p-695f6b01.entry.js +5 -0
- package/dist/bromcom-ui/{p-596450d2.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-0f2e6258.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-202dc98b.entry.js → p-816c4dc7.entry.js} +1 -1
- package/dist/bromcom-ui/p-86356b26.entry.js +5 -0
- package/dist/bromcom-ui/{p-3523560a.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-e35cb3f5.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-95518e9b.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-3c4f09cc.entry.js → p-a9ab4073.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6db38bb3.entry.js → p-b1d6b529.entry.js} +1 -1
- package/dist/bromcom-ui/{p-07e03977.entry.js → p-b39f6cb3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-833261c5.entry.js → p-b69abb6f.entry.js} +1 -1
- package/dist/bromcom-ui/p-b8ffc86f.entry.js +5 -0
- package/dist/bromcom-ui/{p-5fa7dfe2.entry.js → p-bb95aa62.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e052c44c.entry.js → p-bc332b5d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e453462d.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-7863b16a.entry.js → p-cf04e7a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f73d76e6.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-eaf81060.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-f21a7fc0.entry.js +5 -0
- package/dist/bromcom-ui/{p-8b24fbfa.entry.js → p-fe996e86.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1e50dee8.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 +7 -6
- 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-b48e38fa.js → generate-eef61d08.js} +105 -16
- package/dist/cjs/{input-template-eae02f62.js → input-template-517c3f53.js} +2 -2
- package/dist/cjs/{json-parse-decarator-3f27a0d5.js → json-parse-decarator-c0d7e570.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{number-helper-d068c11e.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-b5e62af6.js → stepper-states-d00a1313.js} +1 -1
- package/dist/cjs/{tooltip-helper-388e21c9.js → tooltip-helper-cd02e32b.js} +36 -6
- package/dist/cjs/{validators-abb4f619.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 +21 -2
- package/dist/collection/components/molecules/states/search.states.js +6 -6
- 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 +6 -4
- 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 +11 -10
- 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-d89c98d8.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-299c12d1.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-88fb33b1.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-905f45a1.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-79e0d857.js → stepper-states-16e0b400.js} +3 -3
- package/dist/esm/{tooltip-helper-7934cf3c.js → tooltip-helper-87acf426.js} +38 -8
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-18348027.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/states/search.states.d.ts +1 -1
- 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-17c1703c.js +0 -5
- package/dist/bromcom-ui/p-35f6cb3f.entry.js +0 -5
- package/dist/bromcom-ui/p-3f3bb4b0.entry.js +0 -5
- package/dist/bromcom-ui/p-3f4b42d8.entry.js +0 -5
- package/dist/bromcom-ui/p-55a15cf3.entry.js +0 -5
- package/dist/bromcom-ui/p-63472fc4.entry.js +0 -5
- package/dist/bromcom-ui/p-6a04eaf8.entry.js +0 -5
- package/dist/bromcom-ui/p-6db9f7d9.js +0 -5
- package/dist/bromcom-ui/p-73e6ec28.js +0 -5
- package/dist/bromcom-ui/p-82641a80.js +0 -5
- package/dist/bromcom-ui/p-8e86e37b.entry.js +0 -5
- package/dist/bromcom-ui/p-9b8baf8d.entry.js +0 -5
- package/dist/bromcom-ui/p-a961f89b.entry.js +0 -5
- package/dist/bromcom-ui/p-bdfdc63f.entry.js +0 -5
- package/dist/bromcom-ui/p-c5af64c9.entry.js +0 -5
- package/dist/bromcom-ui/p-c630c590.entry.js +0 -5
- package/dist/bromcom-ui/p-cc4d2a88.entry.js +0 -5
- package/dist/bromcom-ui/p-e258c81c.entry.js +0 -5
- package/dist/bromcom-ui/p-e50a57f0.entry.js +0 -10
- package/dist/bromcom-ui/p-f3c48da2.entry.js +0 -5
|
@@ -7,13 +7,22 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index$1 = require('./index-7e2a5376.js');
|
|
10
|
+
const generate = require('./generate-eef61d08.js');
|
|
10
11
|
const index = require('./index-a2b50e51.js');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
require('./color-helper-c9882bd8.js');
|
|
13
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
14
|
+
require('./number-helper-652dc22d.js');
|
|
15
|
+
require('./string-helper-71b10c53.js');
|
|
16
|
+
require('./validators-7eed007b.js');
|
|
17
|
+
require('./element-dragger-a8562f82.js');
|
|
14
18
|
const utils = require('./utils-fc077139.js');
|
|
15
|
-
const
|
|
19
|
+
const bcm = require('./bcm-634604e3.js');
|
|
20
|
+
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
21
|
+
require('./types-cc4adee7.js');
|
|
22
|
+
require('./types-6eb7e028.js');
|
|
23
|
+
const stepperStates = require('./stepper-states-d00a1313.js');
|
|
16
24
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
25
|
+
require('./colors-56282b00.js');
|
|
17
26
|
require('./index-56628fe5.js');
|
|
18
27
|
|
|
19
28
|
const StepperHeaderTemplate = ({ _title, description, status, valid, index: index$2, loading, active, stepChange, statusIcon, icon, disabled, headerHidden, }) => {
|
|
@@ -55,9 +64,9 @@ const BcmStepper = class {
|
|
|
55
64
|
this.bcmStepChange = index$1.createEvent(this, "bcm-step-change", 7);
|
|
56
65
|
this.hidden = false;
|
|
57
66
|
this._id = generate.Generate.UID();
|
|
58
|
-
this.direction = bcm.Bcm.Direction.horizontal;
|
|
67
|
+
this.direction = bcm.Bcm$1.Direction.horizontal;
|
|
59
68
|
this.linear = false;
|
|
60
|
-
this.size = bcm.Bcm.Size.medium;
|
|
69
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
61
70
|
this.icon = false;
|
|
62
71
|
this.active = 1;
|
|
63
72
|
this.stepperId = generate.Generate.UID();
|
|
@@ -93,14 +102,14 @@ const BcmStepper = class {
|
|
|
93
102
|
this.setSteps(this.getItems());
|
|
94
103
|
}
|
|
95
104
|
setSteps(steps) {
|
|
96
|
-
const slots = utils.getChildElements(this.el,
|
|
105
|
+
const slots = utils.getChildElements(this.el, "bcm-step");
|
|
97
106
|
if (slots.length > 0) {
|
|
98
107
|
slots.forEach((item, index) => {
|
|
99
108
|
const step = steps.find(step => !item.headerHidden && step.id === item.id);
|
|
100
109
|
if (step) {
|
|
101
|
-
generate.Generate.setAttributes(item, Object.assign({ title:
|
|
110
|
+
generate.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 })));
|
|
102
111
|
if ((item.hidden = false)) {
|
|
103
|
-
item.removeAttribute(
|
|
112
|
+
item.removeAttribute("hidden");
|
|
104
113
|
}
|
|
105
114
|
}
|
|
106
115
|
});
|
|
@@ -116,7 +125,7 @@ const BcmStepper = class {
|
|
|
116
125
|
return stepperStates.stepperStates.getActiveIndex(this.stepperId);
|
|
117
126
|
}
|
|
118
127
|
getSlotElements() {
|
|
119
|
-
return generate.snq(() => utils.getChildElements(this.el,
|
|
128
|
+
return generate.snq(() => utils.getChildElements(this.el, "bcm-step"), []);
|
|
120
129
|
}
|
|
121
130
|
async onStepChange(index) {
|
|
122
131
|
if (index) {
|
|
@@ -147,36 +156,53 @@ const BcmStepper = class {
|
|
|
147
156
|
const step = await this.getCurrentStep();
|
|
148
157
|
const lastStep = this.getItems()[this.getItems().length - 1];
|
|
149
158
|
if (step.valid) {
|
|
150
|
-
this.linear && lastStep.id != step.id && (step.status =
|
|
159
|
+
this.linear && lastStep.id != step.id && (step.status = "success");
|
|
151
160
|
if (index < this.getItems().length) {
|
|
152
161
|
await this.onStepChange(index + 1);
|
|
153
162
|
}
|
|
154
163
|
}
|
|
155
164
|
else {
|
|
156
|
-
step.status =
|
|
165
|
+
step.status = "error";
|
|
157
166
|
}
|
|
158
167
|
index$1.forceUpdate(this.el);
|
|
159
168
|
return Promise.resolve(this.getActiveIndex());
|
|
160
169
|
}
|
|
161
|
-
async setActive(index) {
|
|
170
|
+
async setActive(index, force = false) {
|
|
162
171
|
if (!index)
|
|
163
172
|
return;
|
|
164
|
-
if (
|
|
165
|
-
|
|
166
|
-
.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
if (force) {
|
|
174
|
+
if (this.getActiveIndex() < index) {
|
|
175
|
+
while (this.getActiveIndex() < index) {
|
|
176
|
+
await this.next();
|
|
177
|
+
await utils.delay(100);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
while (this.getActiveIndex() > index) {
|
|
182
|
+
await this.prev();
|
|
183
|
+
await utils.delay(100);
|
|
184
|
+
}
|
|
175
185
|
}
|
|
176
186
|
}
|
|
177
187
|
else {
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
if (this.linear) {
|
|
189
|
+
const prevStepIsValid = this.getItems()
|
|
190
|
+
.filter(item => item.index < index)
|
|
191
|
+
.map(item => ({
|
|
192
|
+
id: item.id,
|
|
193
|
+
status: item.status,
|
|
194
|
+
disabled: item.disabled,
|
|
195
|
+
}))
|
|
196
|
+
.every(item => !item.disabled && (item.status === "success" || item.status === "default"));
|
|
197
|
+
console.log("prevStepIsValid", prevStepIsValid);
|
|
198
|
+
if (prevStepIsValid) {
|
|
199
|
+
await this.next(index - 1);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
stepperStates.stepperStates.setActiveIndex(this.stepperId, index);
|
|
204
|
+
await this.next(index - 1);
|
|
205
|
+
}
|
|
180
206
|
}
|
|
181
207
|
}
|
|
182
208
|
async reset() {
|
|
@@ -196,11 +222,11 @@ const BcmStepper = class {
|
|
|
196
222
|
}
|
|
197
223
|
render() {
|
|
198
224
|
const { hidden, direction, linear, size } = this;
|
|
199
|
-
const hostClasses = index.classnames(
|
|
200
|
-
|
|
225
|
+
const hostClasses = index.classnames("bcm-stepper", "bcm-stepper__direction-" + direction, "bcm-stepper__size-" + size, {
|
|
226
|
+
"bcm-stepper__linear": linear,
|
|
201
227
|
hidden,
|
|
202
228
|
});
|
|
203
|
-
const lineClasses = item => index.classnames(
|
|
229
|
+
const lineClasses = item => index.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}`);
|
|
204
230
|
const items = this.getItems();
|
|
205
231
|
return (index$1.h(index$1.Host, { class: hostClasses }, index$1.h("span", { hidden: true, id: `bcm-stepper__steps-${this._id}` }, index$1.h("slot", null)), index$1.h("main", null, index$1.h("header", { class: "bcm-stepper__header" }, items === null || items === void 0 ? void 0 : items.map((item, index) => [
|
|
206
232
|
index$1.h(StepperHeaderTemplate, Object.assign({}, item, { stepChange: step => this.onStepChange(step) })),
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const index$1 = require('./index-a2b50e51.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
12
|
-
const generate = require('./generate-
|
|
12
|
+
const generate = require('./generate-eef61d08.js');
|
|
13
13
|
const bcm = require('./bcm-634604e3.js');
|
|
14
14
|
const captionTemplate = require('./caption-template-de4a0064.js');
|
|
15
15
|
const utils = require('./utils-fc077139.js');
|
|
@@ -137,7 +137,7 @@ const BcmSwitch = class {
|
|
|
137
137
|
const bcmSwitchContainer = index$1.classnames('bcm-switch__container', `bcm-switch__container--${this.labelPosition}`);
|
|
138
138
|
const switchText = (text) => (size != bcm.Bcm.Size.small && (activeText || inactiveText)) && (index.h("span", { class: text + '-text' }, text == 'active' ? activeText : inactiveText));
|
|
139
139
|
const switchIcon = (text) => (size != bcm.Bcm.Size.small && (activeIcon || inactiveIcon)) && index.h("bcm-icon", { icon: text == 'active' ? activeIcon : inactiveIcon, class: ' icon-' + text });
|
|
140
|
-
return (index.h(index.Host, { tabindex: "
|
|
140
|
+
return (index.h(index.Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), class: bcmSwitchClasses }, index.h("span", { hidden: true }, index.h("slot", null)), index.h("div", { class: bcmSwitchContainer }, label && index.h("bcm-label", { htmlFor: _internal_id, tooltip: this.tooltip, type: captionType, value: label, required: required }), index.h("input", { id: _internal_id, onChange: () => this.handleChange(), ref: el => (this.inputElement = el), checked: checked, type: "checkbox", class: "switch", disabled: disabled || readonly }), index.h("label", { htmlFor: _internal_id, class: bcmSwitchLabel }, switchText('inactive'), index.h("div", { class: classes }, switchIcon('active'), index.h("span", { class: "handle" }, pending && index.h("span", { class: "switch-spinner" })), switchIcon('inactive')), switchText('active'))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
141
141
|
}
|
|
142
142
|
get el() { return index.getElement(this); }
|
|
143
143
|
};
|
|
@@ -8,9 +8,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
require('./color-helper-c9882bd8.js');
|
|
12
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
+
const generate = require('./generate-eef61d08.js');
|
|
14
|
+
require('./number-helper-652dc22d.js');
|
|
15
|
+
require('./string-helper-71b10c53.js');
|
|
16
|
+
require('./validators-7eed007b.js');
|
|
17
|
+
require('./element-dragger-a8562f82.js');
|
|
18
|
+
const utils = require('./utils-fc077139.js');
|
|
13
19
|
const bcm = require('./bcm-634604e3.js');
|
|
20
|
+
require('./colors-56282b00.js');
|
|
14
21
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
15
22
|
|
|
16
23
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -26,144 +33,124 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
26
33
|
const BcmTabGroup = class {
|
|
27
34
|
constructor(hostRef) {
|
|
28
35
|
index.registerInstance(this, hostRef);
|
|
29
|
-
this.tabChange = index.createEvent(this, "
|
|
30
|
-
this.headerItems = [];
|
|
36
|
+
this.tabChange = index.createEvent(this, "bcm-tab-change", 7);
|
|
31
37
|
this._id = generate.Generate.UID();
|
|
32
38
|
this.active = "1";
|
|
33
39
|
this.color = "blue";
|
|
34
|
-
this.size = bcm.Bcm.Size.medium;
|
|
40
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
41
|
+
}
|
|
42
|
+
get tabItems() {
|
|
43
|
+
return this.el.querySelectorAll("bcm-tab-item");
|
|
44
|
+
}
|
|
45
|
+
get tabItemHeaders() {
|
|
46
|
+
return this.el.querySelectorAll("bcm-tab-item-header");
|
|
35
47
|
}
|
|
36
48
|
connectedCallback() {
|
|
37
49
|
var _a;
|
|
38
|
-
if ((_a = this.tabItems
|
|
39
|
-
this.
|
|
40
|
-
this.tabItems().forEach((tab, index) => {
|
|
50
|
+
if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
51
|
+
this.tabItems.forEach((tab, index) => {
|
|
41
52
|
let itemActive = tab.hasAttribute("active") ? true : false;
|
|
42
53
|
let itemDisabled = tab.hasAttribute("disabled") ? true : false;
|
|
43
54
|
let itemIndex = index + 1;
|
|
44
55
|
tab.setAttribute("index", `${itemIndex}`);
|
|
45
|
-
tab.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
active: itemActive,
|
|
50
|
-
disabled: itemDisabled,
|
|
51
|
-
index: itemIndex,
|
|
52
|
-
};
|
|
53
|
-
const headerItemHeader = tab.querySelector("bcm-tab-item-header");
|
|
54
|
-
if (headerItemHeader) {
|
|
55
|
-
header.content = headerItemHeader.innerHTML;
|
|
56
|
-
headerItemHeader.classList.add("tw-hidden");
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
header.content = tab.getAttribute("label") || `Tab ${itemIndex}`;
|
|
60
|
-
}
|
|
56
|
+
tab.setAttribute("size", this.size);
|
|
57
|
+
tab.setAttribute("color", this.color);
|
|
58
|
+
tab.removeAttribute("active");
|
|
59
|
+
tab.removeAttribute("disabled");
|
|
61
60
|
if (itemActive) {
|
|
62
61
|
tab.setAttribute("active", "");
|
|
63
|
-
tab.classList.add("tw-block");
|
|
64
|
-
tab.classList.remove("tw-hidden");
|
|
65
62
|
this.active = itemIndex.toString();
|
|
66
63
|
}
|
|
67
|
-
|
|
68
|
-
tab.
|
|
69
|
-
tab.classList.remove("tw-block");
|
|
70
|
-
tab.classList.add("tw-hidden");
|
|
64
|
+
if (itemDisabled) {
|
|
65
|
+
tab.setAttribute("disabled", "");
|
|
71
66
|
}
|
|
72
|
-
this.headerItems.push(header);
|
|
73
67
|
});
|
|
74
|
-
const isHasActiveTab = this.
|
|
68
|
+
const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.hasAttribute("active"));
|
|
75
69
|
if (!isHasActiveTab) {
|
|
76
|
-
this.
|
|
77
|
-
this.tabItems()[0].setAttribute("active", "");
|
|
78
|
-
this.tabItems()[0].classList.add("tw-block");
|
|
79
|
-
this.tabItems()[0].classList.remove("tw-hidden");
|
|
70
|
+
this.tabItems[0].setAttribute("active", "");
|
|
80
71
|
}
|
|
81
72
|
}
|
|
82
73
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
tabItems.forEach(tab => {
|
|
95
|
-
const tabIndex = tab.getAttribute("index");
|
|
96
|
-
if (tabIndex == this.active) {
|
|
74
|
+
handleTabClick(index) {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
if (index) {
|
|
77
|
+
this.active = index.toString();
|
|
78
|
+
}
|
|
79
|
+
if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
80
|
+
this.tabItems.forEach(tab => {
|
|
81
|
+
tab.removeAttribute("active");
|
|
82
|
+
tab.setAttribute("size", this.size);
|
|
83
|
+
tab.setAttribute("color", this.color);
|
|
84
|
+
if (tab.getAttribute("index") == this.active) {
|
|
97
85
|
tab.setAttribute("active", "");
|
|
98
|
-
tab.classList.add("tw-block");
|
|
99
|
-
tab.classList.remove("tw-hidden");
|
|
100
86
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
if ((_b = this.tabItemHeaders) === null || _b === void 0 ? void 0 : _b.length) {
|
|
90
|
+
this.tabItemHeaders.forEach(tabHeader => {
|
|
91
|
+
tabHeader.removeAttribute("active");
|
|
92
|
+
tabHeader.setAttribute("size", this.size);
|
|
93
|
+
tabHeader.setAttribute("color", this.color);
|
|
94
|
+
if (tabHeader.getAttribute("index") == this.active) {
|
|
95
|
+
tabHeader.setAttribute("active", "");
|
|
96
|
+
// tabHeader.scrollIntoView({
|
|
97
|
+
// behavior: "smooth",
|
|
98
|
+
// block: "start",
|
|
99
|
+
// inline: "center",
|
|
100
|
+
// });
|
|
105
101
|
}
|
|
106
102
|
});
|
|
107
103
|
}
|
|
108
|
-
this.inkBarControl();
|
|
109
|
-
index.forceUpdate(this);
|
|
110
104
|
this.tabChange.emit(this.active);
|
|
111
105
|
}
|
|
106
|
+
componentDidRender() {
|
|
107
|
+
this.inkBarControl();
|
|
108
|
+
this.handleTabClick();
|
|
109
|
+
}
|
|
112
110
|
componentDidLoad() {
|
|
113
111
|
this.inkBarControl();
|
|
114
112
|
}
|
|
115
113
|
async setActive(index) {
|
|
116
|
-
if (index > 0 && index <= this.
|
|
114
|
+
if (index > 0 && index <= this.tabItems.length && index != +this.active) {
|
|
117
115
|
this.handleTabClick(index);
|
|
118
116
|
}
|
|
119
117
|
}
|
|
118
|
+
async refresh() {
|
|
119
|
+
await utils.delay(100);
|
|
120
|
+
index.forceUpdate(this);
|
|
121
|
+
}
|
|
120
122
|
inkBarControl() {
|
|
123
|
+
var _a;
|
|
121
124
|
const inkBar = this.el.querySelector("#ink-bar");
|
|
122
|
-
if (inkBar)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
125
|
+
if (!inkBar || !((_a = this.tabItemHeaders) === null || _a === void 0 ? void 0 : _a.length))
|
|
126
|
+
return;
|
|
127
|
+
for (let i = 0; i < this.tabItemHeaders.length; i++) {
|
|
128
|
+
const tab = this.tabItemHeaders[i];
|
|
129
|
+
const tabIndex = tab.getAttribute("index");
|
|
130
|
+
if (tabIndex === this.active) {
|
|
131
|
+
inkBar.style.width = `${tab.offsetWidth}px`;
|
|
132
|
+
// inkBar.style.top = `${tab.offsetHeight}px`;
|
|
133
|
+
inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
gap = "2";
|
|
144
|
-
break;
|
|
145
|
-
case bcm.Bcm.Size.medium:
|
|
146
|
-
fontSize = "3";
|
|
147
|
-
padding = "2";
|
|
148
|
-
gap = "3";
|
|
149
|
-
break;
|
|
150
|
-
case bcm.Bcm.Size.large:
|
|
151
|
-
fontSize = "4";
|
|
152
|
-
padding = "3";
|
|
153
|
-
gap = "4";
|
|
154
|
-
break;
|
|
155
|
-
default:
|
|
156
|
-
fontSize = "3";
|
|
157
|
-
padding = "2";
|
|
158
|
-
gap = "3";
|
|
159
|
-
break;
|
|
137
|
+
activeChanged(newVal, _oldVal) {
|
|
138
|
+
var _a;
|
|
139
|
+
if (!((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length))
|
|
140
|
+
return;
|
|
141
|
+
const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.getAttribute("index") == newVal);
|
|
142
|
+
if (!isHasActiveTab) {
|
|
143
|
+
this.active = "1";
|
|
160
144
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
145
|
+
}
|
|
146
|
+
render() {
|
|
147
|
+
const { color } = this;
|
|
148
|
+
return (index.h(index.Host, { role: "tablist", "aria-label": "Tab Group", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, index.h("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header" }, index.h("div", { id: "ink-bar", class: `tw-bg-${color}-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), index.h("slot", null)));
|
|
165
149
|
}
|
|
166
150
|
get el() { return index.getElement(this); }
|
|
151
|
+
static get watchers() { return {
|
|
152
|
+
"active": ["activeChanged"]
|
|
153
|
+
}; }
|
|
167
154
|
};
|
|
168
155
|
__decorate([
|
|
169
156
|
isLoadDecorator.IsLoad()
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-7e2a5376.js');
|
|
10
|
+
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
+
require('./color-helper-c9882bd8.js');
|
|
12
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
+
const generate = require('./generate-eef61d08.js');
|
|
14
|
+
require('./number-helper-652dc22d.js');
|
|
15
|
+
require('./string-helper-71b10c53.js');
|
|
16
|
+
require('./validators-7eed007b.js');
|
|
17
|
+
require('./element-dragger-a8562f82.js');
|
|
18
|
+
const bcm = require('./bcm-634604e3.js');
|
|
19
|
+
const index$1 = require('./index-a2b50e51.js');
|
|
20
|
+
require('./colors-56282b00.js');
|
|
21
|
+
require('./utils-fc077139.js');
|
|
22
|
+
require('./_commonjsHelpers-bd20f4c0.js');
|
|
23
|
+
|
|
24
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
25
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
26
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
27
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
28
|
+
else
|
|
29
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
30
|
+
if (d = decorators[i])
|
|
31
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
32
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33
|
+
};
|
|
34
|
+
const BcmTabItemHeader = class {
|
|
35
|
+
constructor(hostRef) {
|
|
36
|
+
index.registerInstance(this, hostRef);
|
|
37
|
+
this._id = generate.Generate.UID();
|
|
38
|
+
this.active = false;
|
|
39
|
+
this.disabled = false;
|
|
40
|
+
this.index = undefined;
|
|
41
|
+
this.color = "blue";
|
|
42
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
43
|
+
}
|
|
44
|
+
handleClick() {
|
|
45
|
+
var _a;
|
|
46
|
+
if (!this.disabled) {
|
|
47
|
+
(_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.setActive(this.index);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
const { color, size, active, disabled } = this;
|
|
52
|
+
let fontSize, padding, gap;
|
|
53
|
+
switch (size) {
|
|
54
|
+
case bcm.Bcm$1.Size.small:
|
|
55
|
+
fontSize = "2";
|
|
56
|
+
padding = "1";
|
|
57
|
+
gap = "2";
|
|
58
|
+
break;
|
|
59
|
+
case bcm.Bcm$1.Size.medium:
|
|
60
|
+
fontSize = "3";
|
|
61
|
+
padding = "2";
|
|
62
|
+
gap = "3";
|
|
63
|
+
break;
|
|
64
|
+
case bcm.Bcm$1.Size.large:
|
|
65
|
+
fontSize = "4";
|
|
66
|
+
padding = "3";
|
|
67
|
+
gap = "4";
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
fontSize = "3";
|
|
71
|
+
padding = "2";
|
|
72
|
+
gap = "3";
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
|
|
76
|
+
return (index.h(index.Host, { onClick: () => this.handleClick(), class: index$1.classnames(`tw-text-${fontSize} tw-py-${padding} tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-gap-${gap} tw-focus:outline-none tw-mb-${padding}]`, disabled ? disabledClass : "tw-cursor-pointer", active
|
|
77
|
+
? `tw-text-${color}-500 enabled:hover:tw-text-${color}-600 enabled:active:tw-text-${color}-700 enabled:focus-visible:tw-text-${color}-800`
|
|
78
|
+
: "tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600") }));
|
|
79
|
+
}
|
|
80
|
+
get el() { return index.getElement(this); }
|
|
81
|
+
};
|
|
82
|
+
__decorate([
|
|
83
|
+
isLoadDecorator.IsLoad()
|
|
84
|
+
], BcmTabItemHeader.prototype, "el", void 0);
|
|
85
|
+
|
|
86
|
+
exports.bcm_tab_item_header = BcmTabItemHeader;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-7e2a5376.js');
|
|
10
|
+
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
+
require('./color-helper-c9882bd8.js');
|
|
12
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
+
const generate = require('./generate-eef61d08.js');
|
|
14
|
+
require('./number-helper-652dc22d.js');
|
|
15
|
+
require('./string-helper-71b10c53.js');
|
|
16
|
+
require('./validators-7eed007b.js');
|
|
17
|
+
require('./element-dragger-a8562f82.js');
|
|
18
|
+
require('./bcm-634604e3.js');
|
|
19
|
+
require('./colors-56282b00.js');
|
|
20
|
+
require('./utils-fc077139.js');
|
|
21
|
+
require('./_commonjsHelpers-bd20f4c0.js');
|
|
22
|
+
|
|
23
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
25
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
26
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
27
|
+
else
|
|
28
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
29
|
+
if (d = decorators[i])
|
|
30
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
31
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32
|
+
};
|
|
33
|
+
const BcmTabItem = class {
|
|
34
|
+
constructor(hostRef) {
|
|
35
|
+
index.registerInstance(this, hostRef);
|
|
36
|
+
this._id = generate.Generate.UID();
|
|
37
|
+
this.active = false;
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
this.index = undefined;
|
|
40
|
+
}
|
|
41
|
+
componentWillLoad() {
|
|
42
|
+
this.indexControl();
|
|
43
|
+
}
|
|
44
|
+
componentDidRender() {
|
|
45
|
+
this.headerMove();
|
|
46
|
+
}
|
|
47
|
+
getHeaderItem() {
|
|
48
|
+
const headerItem = this.el.querySelector("bcm-tab-item-header");
|
|
49
|
+
if (headerItem) {
|
|
50
|
+
headerItem.setAttribute("index", `${this.index}`);
|
|
51
|
+
headerItem.setAttribute("active", `${this.active}`);
|
|
52
|
+
headerItem.setAttribute("disabled", `${this.disabled}`);
|
|
53
|
+
headerItem.setAttribute("tab-id", `${this._id}`);
|
|
54
|
+
headerItem.style.order = `${this.index}`;
|
|
55
|
+
}
|
|
56
|
+
return headerItem;
|
|
57
|
+
}
|
|
58
|
+
getParentTabGroup() {
|
|
59
|
+
return generate.Generate.findParentElement(this.el, "bcm-tab-group");
|
|
60
|
+
}
|
|
61
|
+
getFindHeaderItem() {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
return (_b = (_a = this.getParentTabGroup()) === null || _a === void 0 ? void 0 : _a.querySelector("#tab-header")) === null || _b === void 0 ? void 0 : _b.querySelector(`bcm-tab-item-header[tab-id="${this._id}"]`);
|
|
64
|
+
}
|
|
65
|
+
headerMove() {
|
|
66
|
+
var _a, _b, _c, _d;
|
|
67
|
+
if (this.getHeaderItem()) {
|
|
68
|
+
(_a = this.getFindHeaderItem()) === null || _a === void 0 ? void 0 : _a.remove();
|
|
69
|
+
(_c = (_b = this.getParentTabGroup()) === null || _b === void 0 ? void 0 : _b.querySelector("#tab-header")) === null || _c === void 0 ? void 0 : _c.appendChild(this.getHeaderItem());
|
|
70
|
+
(_d = this.el.parentElement) === null || _d === void 0 ? void 0 : _d.refresh();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
indexControl() {
|
|
74
|
+
var _a;
|
|
75
|
+
if (!this.index) {
|
|
76
|
+
(_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.querySelectorAll("bcm-tab-item").forEach((item, index) => {
|
|
77
|
+
if (item === this.el) {
|
|
78
|
+
item.setAttribute("index", `${index + 1}`);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
componentDidLoad() {
|
|
84
|
+
const observer = new MutationObserver(() => {
|
|
85
|
+
this.headerMove();
|
|
86
|
+
});
|
|
87
|
+
observer.observe(this.el, { childList: true, subtree: true });
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return (index.h(index.Host, { id: this._id, role: "tabpanel", "aria-labelledby": `tab-${this._id}`, "aria-hidden": `${!this.active}`, class: {
|
|
91
|
+
"tw-block": this.active,
|
|
92
|
+
"tw-hidden": !this.active,
|
|
93
|
+
"tw-opacity-50": this.disabled,
|
|
94
|
+
"tw-w-full": true,
|
|
95
|
+
} }, index.h("slot", null)));
|
|
96
|
+
}
|
|
97
|
+
get el() { return index.getElement(this); }
|
|
98
|
+
};
|
|
99
|
+
__decorate([
|
|
100
|
+
isLoadDecorator.IsLoad()
|
|
101
|
+
], BcmTabItem.prototype, "el", void 0);
|
|
102
|
+
|
|
103
|
+
exports.bcm_tab_item = BcmTabItem;
|
|
@@ -8,10 +8,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index$1 = require('./index-7e2a5376.js');
|
|
10
10
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-eef61d08.js');
|
|
12
12
|
const bcm = require('./bcm-634604e3.js');
|
|
13
13
|
const index = require('./index-a2b50e51.js');
|
|
14
|
-
const numberHelper = require('./number-helper-
|
|
14
|
+
const numberHelper = require('./number-helper-652dc22d.js');
|
|
15
15
|
const utils = require('./utils-fc077139.js');
|
|
16
16
|
const colors = require('./colors-56282b00.js');
|
|
17
17
|
const types = require('./types-6eb7e028.js');
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const index$1 = require('./index-a2b50e51.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
12
|
-
const generate = require('./generate-
|
|
12
|
+
const generate = require('./generate-eef61d08.js');
|
|
13
13
|
const bcm = require('./bcm-634604e3.js');
|
|
14
14
|
const captionTemplate = require('./caption-template-de4a0064.js');
|
|
15
|
-
const inputTemplate = require('./input-template-
|
|
15
|
+
const inputTemplate = require('./input-template-517c3f53.js');
|
|
16
16
|
const utils = require('./utils-fc077139.js');
|
|
17
17
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
18
18
|
require('./types-cc4adee7.js');
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const index$1 = require('./index-a2b50e51.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
12
|
-
const generate = require('./generate-
|
|
12
|
+
const generate = require('./generate-eef61d08.js');
|
|
13
13
|
const bcm = require('./bcm-634604e3.js');
|
|
14
14
|
const utils = require('./utils-fc077139.js');
|
|
15
15
|
require('./_commonjsHelpers-bd20f4c0.js');
|