bromcom-ui 2.12.3-rc.3-test.0 → 3.0.0-alpha.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/{p-7c5763cc.entry.js → p-03337609.entry.js} +1 -1
- package/dist/bromcom-ui/{p-540fbc32.entry.js → p-10687c62.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c49b6287.entry.js → p-19ed830b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-32c55505.entry.js → p-1a7e1a74.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d59d9687.entry.js → p-1fbec9e4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dd24646a.entry.js → p-2afde14e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-beaec5b8.js → p-2d0ff35e.js} +1 -1
- package/dist/bromcom-ui/{p-7e0e02b3.js → p-31a60231.js} +1 -1
- package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3b079331.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cbcf6d9c.js → p-3be27626.js} +1 -1
- package/dist/bromcom-ui/{p-6bea284a.js → p-499d8454.js} +1 -1
- package/dist/bromcom-ui/{p-a6aa173f.entry.js → p-4a71c61a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-80edaf47.entry.js → p-4cc12992.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c77541f4.js → p-4d2bf0e7.js} +2 -2
- package/dist/bromcom-ui/p-556010cb.js +5 -0
- package/dist/bromcom-ui/{p-a00b053e.entry.js → p-56b9cdf7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b558b0f.entry.js → p-583982a6.entry.js} +1 -1
- package/dist/bromcom-ui/p-59dc2542.js +5 -0
- package/dist/bromcom-ui/{p-fec89309.entry.js → p-5adcfd9b.entry.js} +1 -1
- package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
- package/dist/bromcom-ui/{p-9f5ee998.entry.js → p-5f47e061.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-507db92e.entry.js → p-6d42e250.entry.js} +1 -1
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
- package/dist/bromcom-ui/{p-8c018ae0.js → p-6f2e4c9b.js} +1 -1
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-6f861fed.js} +1 -1
- package/dist/bromcom-ui/{p-d1298c40.js → p-7b21fcb9.js} +1 -1
- package/dist/bromcom-ui/p-815f884d.entry.js +5 -0
- package/dist/bromcom-ui/{p-6657830f.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-974a427c.entry.js → p-8c009880.entry.js} +1 -1
- package/dist/bromcom-ui/p-8d0d0c5b.entry.js +5 -0
- package/dist/bromcom-ui/{p-9850cbce.js → p-8e5e362a.js} +1 -1
- package/dist/bromcom-ui/{p-cf11cdde.entry.js → p-8f062608.entry.js} +1 -1
- package/dist/bromcom-ui/p-9cbf3f1d.entry.js +16 -0
- package/dist/bromcom-ui/{p-aeb4be41.js → p-a2df6c19.js} +1 -1
- package/dist/bromcom-ui/{p-8b8dd8fe.entry.js → p-a2e0a182.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2b42d77e.entry.js → p-a6b4a46d.entry.js} +1 -1
- package/dist/bromcom-ui/p-a6b696de.js +5 -0
- package/dist/bromcom-ui/p-a947136c.entry.js +5 -0
- package/dist/bromcom-ui/{p-fafa70ac.entry.js → p-ac720743.entry.js} +1 -1
- package/dist/bromcom-ui/{p-10f511ff.entry.js → p-b3af25ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-77ef609e.entry.js → p-b46e368e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-25bbe3e6.entry.js → p-bae91cbf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-15402dac.entry.js → p-c10b25e2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-59f7fa84.entry.js → p-c4bf7f7e.entry.js} +1 -1
- package/dist/bromcom-ui/p-c4d524b5.entry.js +5 -0
- package/dist/bromcom-ui/{p-9b59c689.entry.js → p-c5bb29d0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-052005c9.js → p-c7ae8fa9.js} +1 -1
- package/dist/bromcom-ui/{p-5d670fd7.entry.js → p-cc70861b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e8eaa3bb.entry.js → p-d0e56f5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a31644e3.entry.js → p-d49d3d72.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a0d6d680.js → p-d65bc842.js} +1 -1
- package/dist/bromcom-ui/{p-d19d45ed.entry.js → p-dc2d5b2f.entry.js} +1 -1
- package/dist/bromcom-ui/p-dc73abe2.js +5 -0
- package/dist/bromcom-ui/{p-170cf07d.js → p-e037ee2b.js} +1 -1
- package/dist/bromcom-ui/p-e46fde49.js +5 -0
- package/dist/bromcom-ui/{p-87192588.entry.js → p-e499306b.entry.js} +1 -1
- package/dist/bromcom-ui/p-ebd9132c.entry.js +5 -0
- package/dist/bromcom-ui/{p-01e63843.entry.js → p-f5a8e601.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9253d439.entry.js → p-f66c4afa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a486613b.entry.js → p-fdd4cabe.entry.js} +1 -1
- package/dist/cjs/bcm-accordion_68.cjs.entry.js +47182 -0
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-caption.cjs.entry.js +5 -5
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-number-input.cjs.entry.js +6 -6
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +18 -18
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-f8a78504.js} +9 -9
- package/dist/cjs/{generate-bff3fa38.js → generate-e3956756.js} +14 -14
- package/dist/cjs/{global-825d9cd4.js → global-642cd031.js} +1 -1
- package/dist/cjs/{input.style-b5676e6a.js → input.style-bee84fb0.js} +1 -1
- package/dist/cjs/{label-template-e83447b5.js → label-template-fc301e0c.js} +4 -4
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-9bc46d37.js → number-helper-43361f4e.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-dda6f822.js → package-033055fc.js} +1 -1
- package/dist/cjs/{validators-c0eef77a.js → validators-9a6ae72d.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar.style.js +4 -4
- package/dist/collection/components/atoms/badge/badge.style.js +8 -8
- package/dist/collection/components/atoms/button/button.css +90 -92
- package/dist/collection/components/atoms/button/button.js +45 -46
- package/dist/collection/components/atoms/chip/chip.css +27 -29
- package/dist/collection/components/atoms/chip/chip.js +10 -11
- package/dist/collection/components/atoms/divider/divider.css +4 -4
- package/dist/collection/components/atoms/link/link.css +10 -11
- package/dist/collection/components/molecules/accordion/accordion.css +23 -0
- package/dist/collection/components/molecules/accordion/accordion.js +1 -1
- package/dist/collection/components/molecules/alert/alert.css +28 -24
- package/dist/collection/components/molecules/alert/alert.js +26 -36
- package/dist/collection/components/molecules/button-group/button-group.css +15 -23
- package/dist/collection/components/molecules/checkbox/checkbox.css +15 -15
- package/dist/collection/components/molecules/checkbox/checkbox.js +8 -9
- package/dist/collection/components/molecules/color-input/color-input.js +1 -1
- package/dist/collection/components/molecules/empty/empty.js +1 -1
- package/dist/collection/components/molecules/error-layout/error-layout.css +13 -15
- package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +25 -22
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.css +21 -13
- package/dist/collection/components/molecules/input/input.style.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +29 -23
- package/dist/collection/components/molecules/modal/modal.css +21 -27
- package/dist/collection/components/molecules/radio/radio.js +10 -10
- package/dist/collection/components/molecules/range/range.css +5 -8
- package/dist/collection/components/molecules/search/search.css +21 -13
- package/dist/collection/components/molecules/stepper/stepper.css +6 -5
- package/dist/collection/components/molecules/switch/switch.css +22 -21
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -6
- package/dist/collection/components/molecules/textarea/textarea.css +21 -13
- package/dist/collection/components/organism/list/list.css +44 -44
- package/dist/collection/components/other/shortcut/shortcut.js +4 -4
- package/dist/collection/components/other/toast/toast.js +16 -16
- package/dist/collection/components/third-parts/colorful/colorful.css +21 -13
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +13 -9
- package/dist/collection/global/components/_checkbox.css +15 -15
- package/dist/collection/helper/popover-helper.js +5 -5
- package/dist/collection/helper/tooltip-helper.js +6 -6
- package/dist/collection/templates/caption-template.js +9 -9
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +4 -4
- package/dist/collection/templates/step-template.js +4 -4
- package/dist/components/Overflow.js +141 -83
- package/dist/components/avatar.js +6 -6
- package/dist/components/badge.js +9 -9
- package/dist/components/bcm-accordion.js +2 -2
- package/dist/components/bcm-alert.js +28 -41
- package/dist/components/bcm-attendance-actions-comment.js +1 -1
- package/dist/components/bcm-attendance-actions-dropdown.js +1 -1
- package/dist/components/bcm-attendance-actions.js +1 -1
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-checkbox-group.js +1 -1
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-error-layout.js +2 -2
- package/dist/components/bcm-expansion-panel.js +2 -2
- package/dist/components/bcm-input-2.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-popover.js +5 -5
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-shortcut.js +4 -4
- package/dist/components/bcm-stepper.js +6 -6
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-item-header.js +6 -6
- package/dist/components/bcm-toast.js +16 -16
- package/dist/components/button.js +47 -48
- package/dist/components/caption-template.js +9 -9
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +9 -10
- package/dist/components/chip.js +11 -12
- package/dist/components/colorful.js +1 -1
- package/dist/components/divider.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/index4.js +2549 -171
- package/dist/components/index5.js +171 -2549
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.style.js +2 -2
- package/dist/components/label.js +4 -4
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +2 -2
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +10 -10
- package/dist/components/rc-picker.js +2651 -2404
- package/dist/components/search.js +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/step.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/tooltip-helper.js +6 -6
- package/dist/esm/{_commonjsHelpers-82aa9212.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/bcm-accordion_68.entry.js +47111 -0
- package/dist/esm/bcm-attendance-actions-comment.entry.js +11 -11
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +12 -12
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-caption.entry.js +13 -13
- package/dist/esm/bcm-card.entry.js +10 -10
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +8 -8
- package/dist/esm/bcm-datetime-picker.entry.js +12 -12
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-form-2.entry.js +7 -7
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-2.entry.js +10 -10
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +13 -13
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
- package/dist/esm/bcm-modal-2-header.entry.js +11 -11
- package/dist/esm/bcm-modal-2.entry.js +12 -12
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +14 -14
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-react-number.entry.js +3 -3
- package/dist/esm/bcm-result.entry.js +3 -3
- package/dist/esm/bcm-select-group.entry.js +3 -3
- package/dist/esm/bcm-select-option.entry.js +3 -3
- package/dist/esm/bcm-skeleton.entry.js +11 -11
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +12 -12
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +8 -8
- package/dist/esm/bcm-time-picker.entry.js +8 -8
- package/dist/esm/bcm-timeline-item.entry.js +3 -3
- package/dist/esm/bcm-timeline.entry.js +3 -3
- package/dist/esm/bcm-toast.entry.js +24 -24
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-d7953d13.js → caption-template-16dd9444.js} +11 -11
- package/dist/esm/{color-helper-74614f24.js → color-helper-ba15b0d8.js} +2 -2
- package/dist/esm/{colors-dd598eea.js → colors-ed4e7579.js} +1 -1
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
- package/dist/esm/{generate-1281254a.js → generate-d2495751.js} +15 -15
- package/dist/esm/{global-c031697c.js → global-88abdcdc.js} +2 -2
- package/dist/esm/{index-f549811f.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-036974d7.js → index-0d3a56ec.js} +1 -1
- package/dist/esm/{index-0615c2b8.js → index-4614b7f0.js} +1 -1
- package/dist/esm/{input.style-e855c0f3.js → input.style-0ddc0073.js} +1 -1
- package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-b8ca22f2.js} +1 -1
- package/dist/esm/{label-template-a26f76c0.js → label-template-4c3797f4.js} +6 -6
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-778c8f87.js → number-helper-a1e5c9e5.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -11
- package/dist/esm/old-bcm-popover.entry.js +6 -6
- package/dist/esm/{package-08ddc3fa.js → package-7549581c.js} +1 -1
- package/dist/esm/{popover-placement-d12fec40.js → popover-placement-2bf3a181.js} +1 -1
- package/dist/esm/{slot-template-2a19b2db.js → slot-template-e0202c5a.js} +2 -2
- package/dist/esm/{string-helper-3592bdc2.js → string-helper-69203215.js} +1 -1
- package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
- package/dist/esm/{validators-0c6e8dea.js → validators-57df25a7.js} +1 -1
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
- package/dist/types/components/molecules/alert/alert.d.ts +1 -3
- package/dist/types/components.d.ts +0 -2
- package/package.json +1 -1
- package/dist/bromcom-ui/p-04594f76.entry.js +0 -5
- package/dist/bromcom-ui/p-0e110a9f.entry.js +0 -5
- package/dist/bromcom-ui/p-0e5f1168.entry.js +0 -5
- package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
- package/dist/bromcom-ui/p-1baed29d.entry.js +0 -5
- package/dist/bromcom-ui/p-1e61a44c.entry.js +0 -5
- package/dist/bromcom-ui/p-1f93fd33.entry.js +0 -5
- package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-23759244.entry.js +0 -5
- package/dist/bromcom-ui/p-270e1b24.entry.js +0 -5
- package/dist/bromcom-ui/p-27596881.entry.js +0 -5
- package/dist/bromcom-ui/p-29791e4a.entry.js +0 -5
- package/dist/bromcom-ui/p-2bd0545e.js +0 -5
- package/dist/bromcom-ui/p-2cd6cdee.js +0 -5
- package/dist/bromcom-ui/p-3179ce74.entry.js +0 -7
- package/dist/bromcom-ui/p-33166492.entry.js +0 -5
- package/dist/bromcom-ui/p-376a20ed.js +0 -5
- package/dist/bromcom-ui/p-3da7b6c0.entry.js +0 -5
- package/dist/bromcom-ui/p-41276d76.entry.js +0 -5
- package/dist/bromcom-ui/p-412abc6d.entry.js +0 -5
- package/dist/bromcom-ui/p-4393b33e.entry.js +0 -5
- package/dist/bromcom-ui/p-46db5206.js +0 -5
- package/dist/bromcom-ui/p-4834bc26.js +0 -5
- package/dist/bromcom-ui/p-4856568f.entry.js +0 -5
- package/dist/bromcom-ui/p-534f958a.entry.js +0 -5
- package/dist/bromcom-ui/p-65da044b.js +0 -5
- package/dist/bromcom-ui/p-6687afd7.entry.js +0 -5
- package/dist/bromcom-ui/p-6ceb315f.entry.js +0 -5
- package/dist/bromcom-ui/p-74e6d2b6.js +0 -5
- package/dist/bromcom-ui/p-7c45705d.entry.js +0 -5
- package/dist/bromcom-ui/p-7dbfff1b.entry.js +0 -5
- package/dist/bromcom-ui/p-822dda00.js +0 -5
- package/dist/bromcom-ui/p-881853bd.entry.js +0 -5
- package/dist/bromcom-ui/p-8b6d3a37.js +0 -5
- package/dist/bromcom-ui/p-8cd80ac4.entry.js +0 -5
- package/dist/bromcom-ui/p-8f32198d.js +0 -14
- package/dist/bromcom-ui/p-904b0c28.entry.js +0 -5
- package/dist/bromcom-ui/p-926b314d.entry.js +0 -5
- package/dist/bromcom-ui/p-95a797b3.entry.js +0 -5
- package/dist/bromcom-ui/p-9ebe6ef9.entry.js +0 -5
- package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
- package/dist/bromcom-ui/p-a2065e9e.entry.js +0 -5
- package/dist/bromcom-ui/p-a2e5bb35.entry.js +0 -5
- package/dist/bromcom-ui/p-a352f45e.entry.js +0 -5
- package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
- package/dist/bromcom-ui/p-b1084320.entry.js +0 -5
- package/dist/bromcom-ui/p-b301fa40.entry.js +0 -5
- package/dist/bromcom-ui/p-b43e975b.entry.js +0 -5
- package/dist/bromcom-ui/p-b9a88f16.entry.js +0 -5
- package/dist/bromcom-ui/p-bbcb683f.entry.js +0 -5
- package/dist/bromcom-ui/p-bd50c28f.entry.js +0 -5
- package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
- package/dist/bromcom-ui/p-c39e73dc.entry.js +0 -5
- package/dist/bromcom-ui/p-c503526a.entry.js +0 -5
- package/dist/bromcom-ui/p-c63f5261.entry.js +0 -5
- package/dist/bromcom-ui/p-d2bd0293.entry.js +0 -5
- package/dist/bromcom-ui/p-e0ab7b38.js +0 -11
- package/dist/bromcom-ui/p-e1b6f98e.entry.js +0 -5
- package/dist/bromcom-ui/p-e36c7523.entry.js +0 -5
- package/dist/bromcom-ui/p-e5532875.entry.js +0 -5
- package/dist/bromcom-ui/p-e94d2f48.js +0 -5
- package/dist/bromcom-ui/p-ead59725.entry.js +0 -5
- package/dist/bromcom-ui/p-eca0acda.js +0 -5
- package/dist/bromcom-ui/p-ede7ca76.entry.js +0 -5
- package/dist/bromcom-ui/p-eef8f7c7.entry.js +0 -5
- package/dist/bromcom-ui/p-effc088c.entry.js +0 -5
- package/dist/bromcom-ui/p-fc787048.entry.js +0 -5
- package/dist/bromcom-ui/p-ff2b4565.entry.js +0 -5
- package/dist/cjs/Overflow-5a73947b.js +0 -2233
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
- package/dist/cjs/bcm-alert.cjs.entry.js +0 -99
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
- package/dist/cjs/bcm-button.cjs.entry.js +0 -372
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-chip-group.cjs.entry.js +0 -128
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
- package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
- package/dist/cjs/bcm-date_6.cjs.entry.js +0 -15363
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
- package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -64
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
- package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
- package/dist/cjs/bcm-item.cjs.entry.js +0 -72
- package/dist/cjs/bcm-items.cjs.entry.js +0 -49
- package/dist/cjs/bcm-link.cjs.entry.js +0 -51
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -1977
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
- package/dist/cjs/bcm-range.cjs.entry.js +0 -183
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
- package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
- package/dist/cjs/bcm-step.cjs.entry.js +0 -89
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -60
- package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
- package/dist/cjs/bcm-text.cjs.entry.js +0 -49
- package/dist/cjs/index-d321de96.js +0 -193
- package/dist/cjs/input-template-d05a507f.js +0 -92
- package/dist/cjs/json-parse-decarator-b9186302.js +0 -40
- package/dist/cjs/lodash-917168d7.js +0 -17199
- package/dist/cjs/stepper-states-a565a45f.js +0 -85
- package/dist/cjs/tooltip-helper-2e1f4fda.js +0 -158
- package/dist/esm/Overflow-40c63001.js +0 -2217
- package/dist/esm/bcm-accordion.entry.js +0 -70
- package/dist/esm/bcm-alert.entry.js +0 -95
- package/dist/esm/bcm-attendance-actions.entry.js +0 -326
- package/dist/esm/bcm-attendance.entry.js +0 -31
- package/dist/esm/bcm-avatar_2.entry.js +0 -205
- package/dist/esm/bcm-button-group.entry.js +0 -88
- package/dist/esm/bcm-button.entry.js +0 -368
- package/dist/esm/bcm-checkbox-group.entry.js +0 -411
- package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-chip-group.entry.js +0 -124
- package/dist/esm/bcm-chip.entry.js +0 -87
- package/dist/esm/bcm-collapse-group.entry.js +0 -39
- package/dist/esm/bcm-collapse.entry.js +0 -58
- package/dist/esm/bcm-color-input.entry.js +0 -73
- package/dist/esm/bcm-colorful_2.entry.js +0 -246
- package/dist/esm/bcm-date_6.entry.js +0 -15354
- package/dist/esm/bcm-drawer.entry.js +0 -92
- package/dist/esm/bcm-dropdown.entry.js +0 -115
- package/dist/esm/bcm-error-layout.entry.js +0 -60
- package/dist/esm/bcm-expansion-panel.entry.js +0 -112
- package/dist/esm/bcm-input_2.entry.js +0 -545
- package/dist/esm/bcm-item.entry.js +0 -68
- package/dist/esm/bcm-items.entry.js +0 -45
- package/dist/esm/bcm-link.entry.js +0 -47
- package/dist/esm/bcm-list_3.entry.js +0 -1971
- package/dist/esm/bcm-menu.entry.js +0 -147
- package/dist/esm/bcm-modal.entry.js +0 -153
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-old-tag_2.entry.js +0 -140
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
- package/dist/esm/bcm-popconfirm.entry.js +0 -97
- package/dist/esm/bcm-popover.entry.js +0 -226
- package/dist/esm/bcm-progress.entry.js +0 -158
- package/dist/esm/bcm-radio-group.entry.js +0 -157
- package/dist/esm/bcm-radio.entry.js +0 -61
- package/dist/esm/bcm-range.entry.js +0 -179
- package/dist/esm/bcm-select.entry.js +0 -1191
- package/dist/esm/bcm-shortcut.entry.js +0 -61
- package/dist/esm/bcm-step.entry.js +0 -85
- package/dist/esm/bcm-stepper.entry.js +0 -236
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/bcm-tab-group.entry.js +0 -206
- package/dist/esm/bcm-tab-item-header.entry.js +0 -56
- package/dist/esm/bcm-tab-item.entry.js +0 -87
- package/dist/esm/bcm-tab.entry.js +0 -68
- package/dist/esm/bcm-tabs.entry.js +0 -366
- package/dist/esm/bcm-text.entry.js +0 -45
- package/dist/esm/index-7e71bbc8.js +0 -191
- package/dist/esm/input-template-b4045b25.js +0 -90
- package/dist/esm/json-parse-decarator-7d436ec7.js +0 -38
- package/dist/esm/lodash-4197be99.js +0 -17197
- package/dist/esm/stepper-states-325c754b.js +0 -83
- package/dist/esm/tooltip-helper-9c64ad15.js +0 -156
|
@@ -1,210 +0,0 @@
|
|
|
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-c591ecec.js');
|
|
10
|
-
require('./color-helper-dc98a2ca.js');
|
|
11
|
-
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-bff3fa38.js');
|
|
13
|
-
require('./number-helper-9bc46d37.js');
|
|
14
|
-
require('./string-helper-9cdfb273.js');
|
|
15
|
-
require('./validators-c0eef77a.js');
|
|
16
|
-
require('./element-dragger-a8562f82.js');
|
|
17
|
-
const utils = require('./utils-fc077139.js');
|
|
18
|
-
const bcm = require('./bcm-1d1fcf21.js');
|
|
19
|
-
require('./colors-56282b00.js');
|
|
20
|
-
require('./colors-250d0982.js');
|
|
21
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
22
|
-
require('./package-dda6f822.js');
|
|
23
|
-
|
|
24
|
-
const BcmTabGroup = class {
|
|
25
|
-
constructor(hostRef) {
|
|
26
|
-
index.registerInstance(this, hostRef);
|
|
27
|
-
this.tabChange = index.createEvent(this, "bcm-tab-change", 7);
|
|
28
|
-
this._id = generate.Generate.UID();
|
|
29
|
-
this.active = "1";
|
|
30
|
-
this.color = "blue";
|
|
31
|
-
this.size = bcm.Bcm.Size.medium;
|
|
32
|
-
}
|
|
33
|
-
get tabItems() {
|
|
34
|
-
return this.el.querySelectorAll("bcm-tab-item");
|
|
35
|
-
}
|
|
36
|
-
get tabItemHeaders() {
|
|
37
|
-
return this.el.querySelectorAll("bcm-tab-item-header");
|
|
38
|
-
}
|
|
39
|
-
setTabAttributes() {
|
|
40
|
-
this.tabItems.forEach((tab, index) => {
|
|
41
|
-
const itemActive = tab.hasAttribute("active") ? true : false;
|
|
42
|
-
const itemDisabled = tab.hasAttribute("disabled") ? true : false;
|
|
43
|
-
const itemIndex = index + 1;
|
|
44
|
-
tab.setAttribute("index", `${itemIndex}`);
|
|
45
|
-
tab.setAttribute("size", this.size);
|
|
46
|
-
tab.setAttribute("color", this.color);
|
|
47
|
-
tab.removeAttribute("active");
|
|
48
|
-
tab.removeAttribute("disabled");
|
|
49
|
-
if (itemActive) {
|
|
50
|
-
tab.setAttribute("active", "");
|
|
51
|
-
this.active = itemIndex.toString();
|
|
52
|
-
}
|
|
53
|
-
if (itemDisabled) {
|
|
54
|
-
tab.setAttribute("disabled", "");
|
|
55
|
-
}
|
|
56
|
-
// const headerElement = tab.querySelector("bcm-tab-item-header");
|
|
57
|
-
// if (headerElement) {
|
|
58
|
-
// this.setHeaderTabAttributes(headerElement, tab);
|
|
59
|
-
// }
|
|
60
|
-
});
|
|
61
|
-
const isHasActiveTab = Array.from(this.tabItems).some((tab) => tab.hasAttribute("active"));
|
|
62
|
-
if (!isHasActiveTab) {
|
|
63
|
-
this.tabItems[0].setAttribute("active", "");
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
componentWillLoad() {
|
|
67
|
-
this.setTabAttributes();
|
|
68
|
-
}
|
|
69
|
-
handleTabClick(index) {
|
|
70
|
-
var _a, _b;
|
|
71
|
-
if (index) {
|
|
72
|
-
this.active = index.toString();
|
|
73
|
-
}
|
|
74
|
-
if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
75
|
-
this.tabItems.forEach(tab => {
|
|
76
|
-
tab.removeAttribute("active");
|
|
77
|
-
tab.setAttribute("size", this.size);
|
|
78
|
-
tab.setAttribute("color", this.color);
|
|
79
|
-
if (tab.getAttribute("index") == this.active) {
|
|
80
|
-
tab.setAttribute("active", "");
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
if ((_b = this.tabItemHeaders) === null || _b === void 0 ? void 0 : _b.length) {
|
|
85
|
-
this.tabItemHeaders.forEach(tabHeader => {
|
|
86
|
-
tabHeader.removeAttribute("active");
|
|
87
|
-
tabHeader.setAttribute("size", this.size);
|
|
88
|
-
tabHeader.setAttribute("color", this.color);
|
|
89
|
-
if (tabHeader.getAttribute("index") == this.active) {
|
|
90
|
-
tabHeader.setAttribute("active", "");
|
|
91
|
-
// tabHeader.scrollIntoView({
|
|
92
|
-
// behavior: "smooth",
|
|
93
|
-
// block: "start",
|
|
94
|
-
// inline: "center",
|
|
95
|
-
// });
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
this.tabChange.emit(this.active);
|
|
100
|
-
}
|
|
101
|
-
componentDidRender() {
|
|
102
|
-
this.inkBarControl();
|
|
103
|
-
this.handleTabClick();
|
|
104
|
-
}
|
|
105
|
-
componentDidLoad() {
|
|
106
|
-
this.inkBarControl();
|
|
107
|
-
this.observeTabItem();
|
|
108
|
-
}
|
|
109
|
-
async setActive(index) {
|
|
110
|
-
if (index > 0 && index <= this.tabItems.length && index != +this.active) {
|
|
111
|
-
this.handleTabClick(index);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
async refresh() {
|
|
115
|
-
await utils.delay(100);
|
|
116
|
-
index.forceUpdate(this);
|
|
117
|
-
}
|
|
118
|
-
inkBarControl() {
|
|
119
|
-
var _a;
|
|
120
|
-
const inkBar = this.el.querySelector("#ink-bar");
|
|
121
|
-
if (!inkBar || !((_a = this.tabItemHeaders) === null || _a === void 0 ? void 0 : _a.length))
|
|
122
|
-
return;
|
|
123
|
-
for (let i = 0; i < this.tabItemHeaders.length; i++) {
|
|
124
|
-
const tab = this.tabItemHeaders[i];
|
|
125
|
-
const tabIndex = tab.getAttribute("index");
|
|
126
|
-
if (tabIndex === this.active) {
|
|
127
|
-
inkBar.style.width = `${tab.offsetWidth}px`;
|
|
128
|
-
// inkBar.style.top = `${tab.offsetHeight}px`;
|
|
129
|
-
inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
activeChanged(newVal, _oldVal) {
|
|
134
|
-
var _a;
|
|
135
|
-
if (!((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length))
|
|
136
|
-
return;
|
|
137
|
-
const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.getAttribute("index") == newVal);
|
|
138
|
-
if (!isHasActiveTab) {
|
|
139
|
-
this.active = "1";
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
observeTabItem() {
|
|
143
|
-
const callback = (mutationsList, _observer) => {
|
|
144
|
-
for (const mutation of mutationsList) {
|
|
145
|
-
if (mutation.type === "childList") {
|
|
146
|
-
// for (const node of mutation.addedNodes) {
|
|
147
|
-
// if (node.nodeName === "BCM-TAB-ITEM") {
|
|
148
|
-
// // Do something when a bcm-tab-item is added
|
|
149
|
-
// }
|
|
150
|
-
// }
|
|
151
|
-
for (const node of mutation.removedNodes) {
|
|
152
|
-
if (node.nodeName === "BCM-TAB-ITEM") {
|
|
153
|
-
// Do something when a bcm-tab-item is removed
|
|
154
|
-
// console.log("A bcm-tab-item was removed.", node);
|
|
155
|
-
if (node === null || node === void 0 ? void 0 : node.active) {
|
|
156
|
-
this.active = "1";
|
|
157
|
-
}
|
|
158
|
-
this.tabProcess();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
this.observer = new MutationObserver(callback);
|
|
165
|
-
this.observer.observe(this.el, { childList: true });
|
|
166
|
-
}
|
|
167
|
-
tabProcess() {
|
|
168
|
-
this.updateTabHeaders();
|
|
169
|
-
this.regenerateIndex();
|
|
170
|
-
this.refresh();
|
|
171
|
-
this.inkBarControl();
|
|
172
|
-
}
|
|
173
|
-
updateTabHeaders() {
|
|
174
|
-
const tabIds = Array.from(this.tabItems).map(tab => tab.getAttribute("id"));
|
|
175
|
-
const tabHeaderElements = Array.from(this.el.querySelector("#tab-header").querySelectorAll("bcm-tab-item-header"));
|
|
176
|
-
if (tabIds.length !== tabHeaderElements.length) {
|
|
177
|
-
tabHeaderElements.forEach(tabHeader => {
|
|
178
|
-
const tabId = tabHeader.getAttribute("tab-id");
|
|
179
|
-
if (!tabIds.includes(tabId)) {
|
|
180
|
-
tabHeader.remove();
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
regenerateIndex() {
|
|
186
|
-
this.tabItems.forEach((tab, index) => {
|
|
187
|
-
const itemIndex = index + 1;
|
|
188
|
-
tab.setAttribute("index", `${itemIndex}`);
|
|
189
|
-
const headerElement = this.el.querySelector(`bcm-tab-item-header[tab-id="${tab.getAttribute("id")}"]`);
|
|
190
|
-
if (headerElement) {
|
|
191
|
-
headerElement.setAttribute("index", `${itemIndex}`);
|
|
192
|
-
headerElement.style.order = `${itemIndex}`;
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
render() {
|
|
197
|
-
const { color } = this;
|
|
198
|
-
const dc = generate.Generate.getTwColor({
|
|
199
|
-
color: color,
|
|
200
|
-
tones: [700]
|
|
201
|
-
});
|
|
202
|
-
return (index.h(index.Host, { class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, index.h("div", { role: "tablist", "aria-label": "Tab Group", class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header", style: dc }, index.h("div", { id: "ink-bar", class: `tw-bg-default-700 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), index.h("slot", null)));
|
|
203
|
-
}
|
|
204
|
-
get el() { return index.getElement(this); }
|
|
205
|
-
static get watchers() { return {
|
|
206
|
-
"active": ["activeChanged"]
|
|
207
|
-
}; }
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
exports.bcm_tab_group = BcmTabGroup;
|
|
@@ -1,60 +0,0 @@
|
|
|
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-c591ecec.js');
|
|
10
|
-
require('./color-helper-dc98a2ca.js');
|
|
11
|
-
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-bff3fa38.js');
|
|
13
|
-
require('./number-helper-9bc46d37.js');
|
|
14
|
-
require('./string-helper-9cdfb273.js');
|
|
15
|
-
require('./validators-c0eef77a.js');
|
|
16
|
-
require('./element-dragger-a8562f82.js');
|
|
17
|
-
const bcm = require('./bcm-1d1fcf21.js');
|
|
18
|
-
const index$1 = require('./index-95ae50d0.js');
|
|
19
|
-
require('./colors-56282b00.js');
|
|
20
|
-
require('./utils-fc077139.js');
|
|
21
|
-
require('./colors-250d0982.js');
|
|
22
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
23
|
-
require('./package-dda6f822.js');
|
|
24
|
-
|
|
25
|
-
const BcmTabItemHeader = class {
|
|
26
|
-
constructor(hostRef) {
|
|
27
|
-
index.registerInstance(this, hostRef);
|
|
28
|
-
this._id = generate.Generate.UID();
|
|
29
|
-
this.active = false;
|
|
30
|
-
this.disabled = false;
|
|
31
|
-
this.index = undefined;
|
|
32
|
-
this.color = "blue";
|
|
33
|
-
this.size = bcm.Bcm.Size.medium;
|
|
34
|
-
}
|
|
35
|
-
handleClick() {
|
|
36
|
-
var _a;
|
|
37
|
-
if (!this.disabled) {
|
|
38
|
-
(_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.setActive(this.index);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
const { color, size, active, disabled } = this;
|
|
43
|
-
const tabId = this.el.getAttribute("tab-id");
|
|
44
|
-
const disabledClass = "tw-cursor-not-allowed tw-text-gray-500 tw-opacity-50";
|
|
45
|
-
const dc = generate.Generate.getTwColor({
|
|
46
|
-
color: color,
|
|
47
|
-
tones: [700, 800, 900]
|
|
48
|
-
});
|
|
49
|
-
return (index.h(index.Host, { role: "tab", id: `tab-${tabId}`, "aria-selected": active ? "true" : "false", "aria-controls": tabId, onClick: () => this.handleClick(), class: index$1.classnames(`tw-font-medium tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-0 tw-border-solid tw-border-b-[2px] tw-border-b-gray-300 tw-transition-font tw-focus:outline-none`, {
|
|
50
|
-
"tw-text-2 tw-pt-1 tw-pb-1 tw-gap-2": size === bcm.Bcm.Size.small,
|
|
51
|
-
"tw-text-3 tw-pt-2 tw-pb-2.5 tw-gap-2.5": size === bcm.Bcm.Size.medium,
|
|
52
|
-
"tw-text-4 tw-pt-3 tw-pb-3 tw-gap-3": size === bcm.Bcm.Size.large,
|
|
53
|
-
}, disabled ? disabledClass : "tw-cursor-pointer", active
|
|
54
|
-
? `tw-text-default-700 enabled:hover:tw-text-default-800 enabled:active:tw-text-default-900 enabled:focus-visible:tw-text-default-900`
|
|
55
|
-
: "tw-text-gray-700"), style: dc }));
|
|
56
|
-
}
|
|
57
|
-
get el() { return index.getElement(this); }
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
exports.bcm_tab_item_header = BcmTabItemHeader;
|
|
@@ -1,91 +0,0 @@
|
|
|
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-c591ecec.js');
|
|
10
|
-
require('./color-helper-dc98a2ca.js');
|
|
11
|
-
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-bff3fa38.js');
|
|
13
|
-
require('./number-helper-9bc46d37.js');
|
|
14
|
-
require('./string-helper-9cdfb273.js');
|
|
15
|
-
require('./validators-c0eef77a.js');
|
|
16
|
-
require('./element-dragger-a8562f82.js');
|
|
17
|
-
require('./bcm-1d1fcf21.js');
|
|
18
|
-
require('./colors-56282b00.js');
|
|
19
|
-
require('./utils-fc077139.js');
|
|
20
|
-
require('./colors-250d0982.js');
|
|
21
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
22
|
-
require('./package-dda6f822.js');
|
|
23
|
-
|
|
24
|
-
const BcmTabItem = class {
|
|
25
|
-
constructor(hostRef) {
|
|
26
|
-
index.registerInstance(this, hostRef);
|
|
27
|
-
this._id = generate.Generate.UID();
|
|
28
|
-
this.active = false;
|
|
29
|
-
this.disabled = false;
|
|
30
|
-
this.index = undefined;
|
|
31
|
-
}
|
|
32
|
-
componentWillLoad() {
|
|
33
|
-
this.indexControl();
|
|
34
|
-
}
|
|
35
|
-
componentDidRender() {
|
|
36
|
-
this.headerMove();
|
|
37
|
-
}
|
|
38
|
-
getHeaderItem() {
|
|
39
|
-
const headerItem = this.el.querySelector("bcm-tab-item-header");
|
|
40
|
-
if (headerItem) {
|
|
41
|
-
headerItem.setAttribute("index", `${this.index}`);
|
|
42
|
-
headerItem.setAttribute("active", `${this.active}`);
|
|
43
|
-
headerItem.setAttribute("disabled", `${this.disabled}`);
|
|
44
|
-
headerItem.setAttribute("tab-id", `${this._id}`);
|
|
45
|
-
headerItem.style.order = `${this.index}`;
|
|
46
|
-
}
|
|
47
|
-
return headerItem;
|
|
48
|
-
}
|
|
49
|
-
getParentTabGroup() {
|
|
50
|
-
return generate.Generate.findParentElement(this.el, "bcm-tab-group");
|
|
51
|
-
}
|
|
52
|
-
getFindHeaderItem() {
|
|
53
|
-
var _a, _b;
|
|
54
|
-
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}"]`);
|
|
55
|
-
}
|
|
56
|
-
headerMove() {
|
|
57
|
-
var _a, _b, _c, _d;
|
|
58
|
-
if (this.getHeaderItem()) {
|
|
59
|
-
(_a = this.getFindHeaderItem()) === null || _a === void 0 ? void 0 : _a.remove();
|
|
60
|
-
(_c = (_b = this.getParentTabGroup()) === null || _b === void 0 ? void 0 : _b.querySelector("#tab-header")) === null || _c === void 0 ? void 0 : _c.appendChild(this.getHeaderItem());
|
|
61
|
-
(_d = this.el.parentElement) === null || _d === void 0 ? void 0 : _d.refresh();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
indexControl() {
|
|
65
|
-
var _a;
|
|
66
|
-
if (!this.index) {
|
|
67
|
-
(_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.querySelectorAll("bcm-tab-item").forEach((item, index) => {
|
|
68
|
-
if (item === this.el) {
|
|
69
|
-
item.setAttribute("index", `${index + 1}`);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
componentDidLoad() {
|
|
75
|
-
const observer = new MutationObserver(() => {
|
|
76
|
-
this.headerMove();
|
|
77
|
-
});
|
|
78
|
-
observer.observe(this.el, { childList: true, subtree: true });
|
|
79
|
-
}
|
|
80
|
-
render() {
|
|
81
|
-
return (index.h(index.Host, { id: this._id, role: "tabpanel", "aria-labelledby": `tab-${this._id}`, "aria-hidden": !this.active ? "true" : "false", class: {
|
|
82
|
-
"tw-block": this.active,
|
|
83
|
-
"tw-hidden": !this.active,
|
|
84
|
-
"tw-opacity-50": this.disabled,
|
|
85
|
-
"tw-w-full": true,
|
|
86
|
-
} }, index.h("slot", null)));
|
|
87
|
-
}
|
|
88
|
-
get el() { return index.getElement(this); }
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
exports.bcm_tab_item = BcmTabItem;
|
|
@@ -1,72 +0,0 @@
|
|
|
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-c591ecec.js');
|
|
10
|
-
const types = require('./types-3871235f.js');
|
|
11
|
-
const index$1 = require('./index-95ae50d0.js');
|
|
12
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
13
|
-
|
|
14
|
-
const tabCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}:host{display:block}:host(.hidden){display:none}slot[name=icon-suffix]::slotted(bcm-icon){margin-left:10px}slot[name=icon-prefix]::slotted(bcm-icon){margin-right:10px}.tab{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:var(--bcm-tab-vertical-space) 14px var(--bcm-tab-vertical-space) 14px;color:#374151;font-size:14px;line-height:20px;font-weight:500;cursor:pointer;user-select:none}.tab:hover{color:#1f2937}.tab:active{color:#1f2937}.tab:focus-visible{color:#1f2937}.tab.active{color:#1d4ed8}.tab.active::before{content:\"\";bottom:-2px;left:0;width:100%;height:2px;background-color:#1d4ed8;position:absolute;z-index:1}.tab.active:hover{color:#1e40af}.tab.active:active{color:#1e40af}.tab.active:focus-visible{color:#1e40af}.tab:active,.tab:focus{color:var(--bcm-color-prime-blue-7)}.tab[disabled],.tab.disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}.tab.closable:not(.pane){padding-left:0;padding-right:0}.tab.closable .close{margin-left:34px}.tab.pane{border:1px solid transparent;border-bottom:none;border-color:var(--bcm-color-grey-5);background-color:var(--bcm-color-grey-3);border-radius:2px 2px 0 0}.tab.pane.active{background-color:#ffffff}.badge{padding-left:8px;position:relative}.badge.blink:after{content:\"\";position:absolute;top:8px;left:9px;background:black;border-radius:50%;height:7px;width:7px;box-shadow:0 0 0 0 rgba(0, 0, 0, 0);transform:scale(1)}.badge.success:after{animation:pulsesuccess 2s infinite;background-color:#52C41A}.badge.error:after{animation:pulseerror 2s infinite;background-color:#F5222D}.badge.default:after{animation:pulsedefault 2s infinite;background-color:#D9D9D9}.badge.processing:after{animation:pulseprocessing 2s infinite;background-color:#4293CF}.badge.warning:after{animation:pulsewarning 2s infinite;background-color:#FA8C16}@keyframes pulsesuccess{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(82, 196, 26, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulseerror{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(245, 34, 45, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulsedefault{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(217, 217, 217, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulseprocessing{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(66, 147, 207, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulsewarning{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(250, 140, 22, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}";
|
|
15
|
-
|
|
16
|
-
const BcmTab = class {
|
|
17
|
-
constructor(hostRef) {
|
|
18
|
-
index.registerInstance(this, hostRef);
|
|
19
|
-
this.click = index.createEvent(this, "bcm-click", 7);
|
|
20
|
-
this.close = index.createEvent(this, "bcm-close", 7);
|
|
21
|
-
this.type = types.TypeProps.normal;
|
|
22
|
-
this.active = false;
|
|
23
|
-
this.disabled = false;
|
|
24
|
-
this.closable = false;
|
|
25
|
-
this.tabId = (Math.random() * 4).toString(16).replace('.', '');
|
|
26
|
-
this.formControl = null;
|
|
27
|
-
this.hidden = false;
|
|
28
|
-
this.status = 'default';
|
|
29
|
-
this.badge = false;
|
|
30
|
-
this.blink = false;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @desc
|
|
34
|
-
*/
|
|
35
|
-
handleClose() {
|
|
36
|
-
if (this.disabled)
|
|
37
|
-
return;
|
|
38
|
-
this.close.emit();
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @desc
|
|
42
|
-
* @param event
|
|
43
|
-
*/
|
|
44
|
-
handleClick(event) {
|
|
45
|
-
if (this.disabled)
|
|
46
|
-
return;
|
|
47
|
-
const targetElement = event.target;
|
|
48
|
-
// Detect close icon clicked
|
|
49
|
-
// #
|
|
50
|
-
if (String(targetElement.tagName).toLowerCase() == 'bcm-icon' && targetElement.classList.contains('close')) {
|
|
51
|
-
this.close.emit(event);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
this.click.emit(event);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
const { active, disabled, closable } = this;
|
|
59
|
-
const classes = index$1.classnames('tab', [this.type], {
|
|
60
|
-
'active': active,
|
|
61
|
-
'disabled': disabled,
|
|
62
|
-
'closable': closable
|
|
63
|
-
});
|
|
64
|
-
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
|
|
65
|
-
const badgeClasses = index$1.classnames('badge');
|
|
66
|
-
return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes, onClick: (event) => this.handleClick(event) }, index.h("slot", { name: "icon-prefix" }), index.h("slot", null), index.h("slot", { name: "icon-suffix" }), this.closable && (index.h("bcm-icon", { class: "close", icon: "far fa-times" })), this.badge && (index.h("bcm-badge", { blink: true, class: badgeClasses, size: "small", status: this.status })))));
|
|
67
|
-
}
|
|
68
|
-
get el() { return index.getElement(this); }
|
|
69
|
-
};
|
|
70
|
-
BcmTab.style = tabCss;
|
|
71
|
-
|
|
72
|
-
exports.bcm_tab = BcmTab;
|