bromcom-ui 2.12.3 → 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-4ca7e0e7.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-e0cc8f86.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-21bacc22.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-6bdf0cbc.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-3f34cf2a.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-3aaa60b9.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-ef5cba72.js → p-59dc2542.js} +1 -1
- package/dist/bromcom-ui/{p-d623e891.entry.js → p-5adcfd9b.entry.js} +1 -1
- package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
- package/dist/bromcom-ui/{p-375e9750.entry.js → p-5f47e061.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-d6b1465a.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-8fa7d3c3.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-0715c523.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-a2e0a182.entry.js +5 -0
- 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-bb6f4952.entry.js → p-ac720743.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3288f732.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-d53c9b92.entry.js → p-bae91cbf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1141f58d.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-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-5d266fd0.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-cb7d5481.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-083126ea.entry.js → p-e499306b.entry.js} +1 -1
- package/dist/bromcom-ui/p-ebd9132c.entry.js +5 -0
- package/dist/bromcom-ui/{p-1812bfb7.entry.js → p-f5a8e601.entry.js} +1 -1
- package/dist/bromcom-ui/{p-19b32974.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 +3 -3
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bcm-caption.cjs.entry.js +4 -4
- package/dist/cjs/bcm-card.cjs.entry.js +1 -1
- 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-form-2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-number-input.cjs.entry.js +5 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/bcm-table.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
- package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-toast.cjs.entry.js +17 -17
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-f8a78504.js} +9 -9
- package/dist/cjs/{generate-b43c3d3b.js → generate-e3956756.js} +13 -13
- 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 +1 -1
- package/dist/cjs/{number-helper-a708fa79.js → number-helper-43361f4e.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/{validators-84d8ae28.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/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 +10 -10
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +11 -11
- 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 +5 -5
- package/dist/esm/bcm-caption.entry.js +12 -12
- package/dist/esm/bcm-card.entry.js +9 -9
- 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 +7 -7
- package/dist/esm/bcm-datetime-picker.entry.js +11 -11
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-form-2.entry.js +6 -6
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-2.entry.js +9 -9
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +12 -12
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
- package/dist/esm/bcm-modal-2-header.entry.js +10 -10
- package/dist/esm/bcm-modal-2.entry.js +11 -11
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +13 -13
- 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 +10 -10
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +11 -11
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +7 -7
- package/dist/esm/bcm-time-picker.entry.js +7 -7
- 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 +23 -23
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +4 -4
- 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-d009624a.js → generate-d2495751.js} +14 -14
- package/dist/esm/{global-f1d14ca8.js → global-88abdcdc.js} +1 -1
- 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 +4 -4
- package/dist/esm/{number-helper-b7a7a318.js → number-helper-a1e5c9e5.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -10
- package/dist/esm/old-bcm-popover.entry.js +5 -5
- 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-5519219e.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-01dde034.entry.js +0 -5
- package/dist/bromcom-ui/p-01ffa0a9.entry.js +0 -5
- package/dist/bromcom-ui/p-096837b5.entry.js +0 -5
- package/dist/bromcom-ui/p-09cb8ce4.entry.js +0 -5
- package/dist/bromcom-ui/p-0a3ce86e.entry.js +0 -5
- package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
- package/dist/bromcom-ui/p-177e1e89.entry.js +0 -5
- package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-270e1b24.entry.js +0 -5
- package/dist/bromcom-ui/p-29bc95a1.entry.js +0 -5
- package/dist/bromcom-ui/p-2b02c9d5.entry.js +0 -5
- package/dist/bromcom-ui/p-2b0c3160.entry.js +0 -5
- package/dist/bromcom-ui/p-2cd6cdee.js +0 -5
- package/dist/bromcom-ui/p-2e96086c.entry.js +0 -5
- package/dist/bromcom-ui/p-349400c6.entry.js +0 -5
- package/dist/bromcom-ui/p-376a20ed.js +0 -5
- package/dist/bromcom-ui/p-41276d76.entry.js +0 -5
- package/dist/bromcom-ui/p-4393b33e.entry.js +0 -5
- package/dist/bromcom-ui/p-45a24494.entry.js +0 -5
- package/dist/bromcom-ui/p-4874c7d0.entry.js +0 -5
- package/dist/bromcom-ui/p-49bc13a0.entry.js +0 -5
- package/dist/bromcom-ui/p-4bd65d2f.entry.js +0 -5
- package/dist/bromcom-ui/p-4e03575c.entry.js +0 -7
- package/dist/bromcom-ui/p-4f0bf943.entry.js +0 -5
- package/dist/bromcom-ui/p-6404c57b.entry.js +0 -5
- package/dist/bromcom-ui/p-68b95b96.entry.js +0 -5
- package/dist/bromcom-ui/p-74e6d2b6.js +0 -5
- package/dist/bromcom-ui/p-790ff40a.entry.js +0 -5
- package/dist/bromcom-ui/p-7c3dcd4e.entry.js +0 -5
- package/dist/bromcom-ui/p-7dbfff1b.entry.js +0 -5
- package/dist/bromcom-ui/p-7fa0942c.js +0 -5
- package/dist/bromcom-ui/p-8256af97.entry.js +0 -5
- package/dist/bromcom-ui/p-85936d14.entry.js +0 -5
- package/dist/bromcom-ui/p-8b6d3a37.js +0 -5
- package/dist/bromcom-ui/p-8bc7d1dc.entry.js +0 -5
- package/dist/bromcom-ui/p-8d17c696.entry.js +0 -5
- package/dist/bromcom-ui/p-8f32198d.js +0 -14
- package/dist/bromcom-ui/p-8f519009.entry.js +0 -5
- package/dist/bromcom-ui/p-904b0c28.entry.js +0 -5
- package/dist/bromcom-ui/p-915fd3f1.entry.js +0 -5
- package/dist/bromcom-ui/p-93c2058f.entry.js +0 -5
- package/dist/bromcom-ui/p-96d7ab4a.entry.js +0 -5
- package/dist/bromcom-ui/p-9c0bc44a.js +0 -5
- package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
- package/dist/bromcom-ui/p-a23e04ba.entry.js +0 -5
- package/dist/bromcom-ui/p-a6b1a008.entry.js +0 -5
- package/dist/bromcom-ui/p-ab0ad97f.js +0 -5
- package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
- package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
- package/dist/bromcom-ui/p-c1c51cf2.entry.js +0 -5
- package/dist/bromcom-ui/p-cbb99519.entry.js +0 -5
- package/dist/bromcom-ui/p-cedb9ca3.js +0 -5
- package/dist/bromcom-ui/p-d0cd1d32.entry.js +0 -5
- package/dist/bromcom-ui/p-d231f047.entry.js +0 -5
- package/dist/bromcom-ui/p-d44ec0ea.entry.js +0 -5
- package/dist/bromcom-ui/p-d5f03511.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-e25c4375.entry.js +0 -5
- package/dist/bromcom-ui/p-e29aebf7.entry.js +0 -5
- package/dist/bromcom-ui/p-eaa94da0.entry.js +0 -5
- package/dist/bromcom-ui/p-ec957130.entry.js +0 -5
- package/dist/bromcom-ui/p-eca0acda.js +0 -5
- package/dist/bromcom-ui/p-f5074bd8.js +0 -5
- package/dist/bromcom-ui/p-fb081ff7.entry.js +0 -5
- package/dist/bromcom-ui/p-fc787048.entry.js +0 -5
- package/dist/bromcom-ui/p-fdf2e30b.entry.js +0 -5
- package/dist/bromcom-ui/p-feed1c5a.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-ccfbe214.js +0 -92
- package/dist/cjs/json-parse-decarator-f1c0961d.js +0 -40
- package/dist/cjs/lodash-917168d7.js +0 -17199
- package/dist/cjs/stepper-states-e293bcd3.js +0 -85
- package/dist/cjs/tooltip-helper-311d3baa.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-f22c62aa.js +0 -90
- package/dist/esm/json-parse-decarator-56846a0c.js +0 -38
- package/dist/esm/lodash-4197be99.js +0 -17197
- package/dist/esm/stepper-states-ec0b9c40.js +0 -83
- package/dist/esm/tooltip-helper-ddb8b9e3.js +0 -156
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { S as SizeProps, T as TypeProps, D as DirectionProps } from './types-b211a5eb.js';
|
|
7
|
-
import { d as delay, c as getChilds } from './utils-57652744.js';
|
|
8
|
-
import { c as classnames } from './index-f549811f.js';
|
|
9
|
-
import './_commonjsHelpers-82aa9212.js';
|
|
10
|
-
|
|
11
|
-
const tabsCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.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}:host{display:block}:host(.hidden){display:none}::slotted(bcm-tab:not(:last-child)){margin-right:32px}.tabs{position:relative;display:flex;flex-wrap:wrap}.tabs.large{--bcm-tab-vertical-space:16px;--bcm-tab-font-size:16px;--bcm-tab-line-height:24px}.tabs.medium{--bcm-tab-vertical-space:11px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.small{--bcm-tab-vertical-space:7px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.pane{--bcm-tab-vertical-space:9px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.full-width{width:100%;display:flex;align-items:center;justify-content:center}.tabs.full-width ::slotted(bcm-tab){flex:1}.tabs.underline:after{content:\"\";margin-top:0;z-index:0;left:0;width:100%;height:2px;background-color:var(--bcm-color-grey-4)}.tabs.animatable:before{transition:all 0.4s ease}.tabs.pane ::slotted(bcm-tab:not(:last-child)){margin-right:2px}.tabs.pane:before{display:none}.tabs.vertical{flex-direction:column;width:fit-content}.tabs.vertical:before{content:\"\";position:absolute;top:var(--bcm-tabs-line-top);left:var(--bcm-tabs-line-left);right:var(--bcm-tabs-line-right);width:var(--bcm-tabs-line-width);height:var(--bcm-tabs-line-height);background-color:var(--bcm-color-prime-blue-6)}.tabs.vertical ::slotted(bcm-tab){margin-right:0}";
|
|
12
|
-
|
|
13
|
-
const BcmTabs = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
registerInstance(this, hostRef);
|
|
16
|
-
this.click = createEvent(this, "bcm-click", 7);
|
|
17
|
-
this.change = createEvent(this, "bcm-change", 7);
|
|
18
|
-
this.bcmTabsActiveItem = createEvent(this, "bcm-tabs-active-item", 7);
|
|
19
|
-
/**
|
|
20
|
-
* Component Private variables
|
|
21
|
-
*/
|
|
22
|
-
this.tabs = [];
|
|
23
|
-
this.firstInit = true;
|
|
24
|
-
this.count = 0;
|
|
25
|
-
this.size = SizeProps.large;
|
|
26
|
-
this.type = TypeProps.normal;
|
|
27
|
-
this.direction = DirectionProps.horizontal;
|
|
28
|
-
this.hidden = false;
|
|
29
|
-
this.fullWidth = false;
|
|
30
|
-
this.underline = true;
|
|
31
|
-
this.activeChild = 1;
|
|
32
|
-
this.lineOpts = { top: '0px', left: '0px', right: '0px', width: '0px', height: '0px' };
|
|
33
|
-
this.prevButton = null;
|
|
34
|
-
this.nextButton = null;
|
|
35
|
-
this.completeButton = null;
|
|
36
|
-
this.prevButtonState = 'disabled';
|
|
37
|
-
this.nextButtonState = 'disabled';
|
|
38
|
-
this.completeButtonState = 'disabled';
|
|
39
|
-
}
|
|
40
|
-
async config(_config) {
|
|
41
|
-
if (_config['prevButton']) {
|
|
42
|
-
if (_config['prevButton']['id']) {
|
|
43
|
-
var prevButtonId = "#" + _config['prevButton']['id'];
|
|
44
|
-
this.prevButton = document.querySelector(prevButtonId);
|
|
45
|
-
}
|
|
46
|
-
if (_config['prevButton']['state']) {
|
|
47
|
-
this.prevButtonState = _config['prevButton']['state'];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if (_config['nextButton']) {
|
|
51
|
-
if (_config['nextButton']['id']) {
|
|
52
|
-
var nextButtonId = "#" + _config['nextButton']['id'];
|
|
53
|
-
this.nextButton = document.querySelector(nextButtonId);
|
|
54
|
-
}
|
|
55
|
-
if (_config['nextButton']['state']) {
|
|
56
|
-
this.nextButtonState = _config['nextButton']['state'];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (_config['completeButton']) {
|
|
60
|
-
if (_config['completeButton']['id']) {
|
|
61
|
-
var completeButtonId = "#" + _config['completeButton']['id'];
|
|
62
|
-
this.completeButton = document.querySelector(completeButtonId);
|
|
63
|
-
}
|
|
64
|
-
if (_config['completeButton']['state']) {
|
|
65
|
-
this.completeButtonState = _config['completeButton']['state'];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
this.buttonControl();
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
async next() {
|
|
72
|
-
var getFormId = "#" + this.tabs[this.getActive() - 1]["formControl"];
|
|
73
|
-
var getForm = document.querySelector(getFormId);
|
|
74
|
-
var formData = null;
|
|
75
|
-
if (getForm) {
|
|
76
|
-
formData = await getForm.submit();
|
|
77
|
-
}
|
|
78
|
-
if ((getForm && formData.isValid) || !getForm) {
|
|
79
|
-
this.activeChild = this.getActive() + 1;
|
|
80
|
-
this.active(this.tabs[this.getActive() - 1]["tabId"]);
|
|
81
|
-
}
|
|
82
|
-
return formData;
|
|
83
|
-
}
|
|
84
|
-
async prev() {
|
|
85
|
-
this.activeChild = this.getActive() - 1;
|
|
86
|
-
this.active(this.tabs[this.getActive() - 1]["tabId"]);
|
|
87
|
-
return this.activeChild;
|
|
88
|
-
}
|
|
89
|
-
async complete() {
|
|
90
|
-
const tabStatuses = [];
|
|
91
|
-
var isValid = true;
|
|
92
|
-
this.tabs.forEach(element => {
|
|
93
|
-
if (element['formControl']) {
|
|
94
|
-
const getFormId = "#" + element["formControl"];
|
|
95
|
-
const getForm = document.querySelector(getFormId);
|
|
96
|
-
if (getForm) {
|
|
97
|
-
tabStatuses.push(getForm.submit());
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
const allStatuses = await Promise.all(tabStatuses);
|
|
102
|
-
allStatuses.forEach(item => {
|
|
103
|
-
if (item.isValid === false) {
|
|
104
|
-
isValid = false;
|
|
105
|
-
if (item.formName) {
|
|
106
|
-
const formId = this.tabs.filter((input) => input['formControl'] == item.formName)[0]['tabId'];
|
|
107
|
-
this.active(formId);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
return { isValid: isValid, Forms: allStatuses };
|
|
112
|
-
}
|
|
113
|
-
async active(id) {
|
|
114
|
-
var i = 0;
|
|
115
|
-
this.activeChild = -1,
|
|
116
|
-
await delay(100);
|
|
117
|
-
getChilds(this.el, 'bcm-tab').forEach(items => {
|
|
118
|
-
i++,
|
|
119
|
-
items.tabId == id && (items.disabled = false,
|
|
120
|
-
items.active = true,
|
|
121
|
-
this.bcmTabsActiveItem.emit(items.tabId),
|
|
122
|
-
this.activeChild = i);
|
|
123
|
-
items.tabId != id && (items.active = false);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
async getActiveTab() {
|
|
127
|
-
return this.tabs[this.getActive() - 1]["tabId"];
|
|
128
|
-
}
|
|
129
|
-
async getActiveIndex() {
|
|
130
|
-
return this.getActive();
|
|
131
|
-
}
|
|
132
|
-
async error(id, blink = false) {
|
|
133
|
-
getChilds(this.el, 'bcm-tab').forEach(items => {
|
|
134
|
-
items.tabId == id && (items.badge = true,
|
|
135
|
-
items.blink = blink,
|
|
136
|
-
items.status = "error");
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
async info(id, blink = false) {
|
|
140
|
-
getChilds(this.el, 'bcm-tab').forEach(items => {
|
|
141
|
-
items.tabId == id && (items.badge = true,
|
|
142
|
-
items.blink = blink,
|
|
143
|
-
items.status = "processing");
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
async warning(id, blink = false) {
|
|
147
|
-
getChilds(this.el, 'bcm-tab').forEach(items => {
|
|
148
|
-
items.tabId == id && (items.badge = true,
|
|
149
|
-
items.blink = blink,
|
|
150
|
-
items.status = "warning");
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
async success(id, blink = false) {
|
|
154
|
-
getChilds(this.el, 'bcm-tab').forEach(items => {
|
|
155
|
-
items.tabId == id && (items.badge = true,
|
|
156
|
-
items.blink = blink,
|
|
157
|
-
items.status = "success");
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
async statusReset(id) {
|
|
161
|
-
getChilds(this.el, 'bcm-tab').forEach(items => {
|
|
162
|
-
items.tabId == id && (items.badge = false,
|
|
163
|
-
items.blink = false,
|
|
164
|
-
items.status = "default");
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
buttonControl() {
|
|
168
|
-
if (this.prevButton) {
|
|
169
|
-
if (this.activeChild == 1) {
|
|
170
|
-
this.prevButton.setAttribute(this.prevButtonState, "true");
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
this.prevButton.removeAttribute(this.prevButtonState);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
if (this.nextButton) {
|
|
177
|
-
if (this.getActive() == this.count) {
|
|
178
|
-
this.nextButton.setAttribute(this.nextButtonState, "true");
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
this.nextButton.removeAttribute(this.nextButtonState);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
if (this.completeButton) {
|
|
185
|
-
if (this.getActive() == this.count) {
|
|
186
|
-
this.completeButton.removeAttribute(this.completeButtonState);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
this.completeButton.setAttribute(this.completeButtonState, "true");
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* @ComponentMethod
|
|
195
|
-
*/
|
|
196
|
-
componentDidRender() {
|
|
197
|
-
if (!this.firstInit)
|
|
198
|
-
return;
|
|
199
|
-
let slotElements;
|
|
200
|
-
slotElements = this.el.shadowRoot.querySelector('slot').assignedElements();
|
|
201
|
-
this.tabs = [];
|
|
202
|
-
this.activeChild = this.getActive();
|
|
203
|
-
var isActive = false;
|
|
204
|
-
var firstId = null;
|
|
205
|
-
var i = 0;
|
|
206
|
-
// Get only bcm-tab elements from
|
|
207
|
-
// slot childs
|
|
208
|
-
slotElements.map((element) => {
|
|
209
|
-
i++;
|
|
210
|
-
this.type == "stepper" && (element.disabled = true);
|
|
211
|
-
if (!firstId) {
|
|
212
|
-
firstId = element.tabId;
|
|
213
|
-
}
|
|
214
|
-
if (String(element.tagName).toLowerCase() == 'bcm-tab') {
|
|
215
|
-
element.type = this.type;
|
|
216
|
-
// Activate default tab
|
|
217
|
-
// #
|
|
218
|
-
if (this.tabs.push(element) - 1 == this.activeChild) {
|
|
219
|
-
this.activateChild(this.activeChild);
|
|
220
|
-
isActive = true;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
this.count = i;
|
|
224
|
-
});
|
|
225
|
-
if (!isActive) {
|
|
226
|
-
this.active(firstId);
|
|
227
|
-
}
|
|
228
|
-
setTimeout(() => {
|
|
229
|
-
this.el.shadowRoot.querySelector('.tabs').classList.add('animatable');
|
|
230
|
-
}, 500);
|
|
231
|
-
}
|
|
232
|
-
componentDidLoad() {
|
|
233
|
-
getChilds(this.el, 'bcm-tab').forEach(items => {
|
|
234
|
-
items.active && (this.bcmTabsActiveItem.emit(items.tabId), items.disabled = false);
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
getActive() {
|
|
238
|
-
const childs = getChilds(this.el, 'bcm-tab');
|
|
239
|
-
const childIndex = childs.findIndex(child => child.active);
|
|
240
|
-
return childIndex >= 0 ? childIndex + 1 : 1;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* @desc
|
|
244
|
-
*/
|
|
245
|
-
getChildIdx(child) {
|
|
246
|
-
let i = 1;
|
|
247
|
-
while (child.previousElementSibling) {
|
|
248
|
-
child = child.previousElementSibling;
|
|
249
|
-
i++;
|
|
250
|
-
}
|
|
251
|
-
return i;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* @desc
|
|
255
|
-
* @param idx
|
|
256
|
-
*/
|
|
257
|
-
activateChild(idx) {
|
|
258
|
-
idx = idx - 1;
|
|
259
|
-
const child = this.tabs[idx];
|
|
260
|
-
if (child) {
|
|
261
|
-
this.tabs.forEach((tab) => tab.active = false);
|
|
262
|
-
child.active = true;
|
|
263
|
-
child.disabled = false;
|
|
264
|
-
this.transformLine(idx);
|
|
265
|
-
this.firstInit && forceUpdate(this.el);
|
|
266
|
-
this.firstInit = false;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* @desc
|
|
271
|
-
* @param idx
|
|
272
|
-
*/
|
|
273
|
-
transformLine(idx) {
|
|
274
|
-
const tab = this.tabs[idx];
|
|
275
|
-
const rect = tab.getBoundingClientRect();
|
|
276
|
-
const top = (rect.top + window.pageYOffset);
|
|
277
|
-
const left = (rect.left + window.pageXOffset);
|
|
278
|
-
const width = rect.width;
|
|
279
|
-
const height = rect.height;
|
|
280
|
-
if (this.direction == 'horizontal') {
|
|
281
|
-
// this.lineOpts.top = (tab.offsetTop + tab.offsetHeight) + 'px'
|
|
282
|
-
this.lineOpts.top = top + height + 'px';
|
|
283
|
-
// this.lineOpts.left = tab.offsetLeft + 'px'
|
|
284
|
-
this.lineOpts.left = left + 'px';
|
|
285
|
-
// this.lineOpts.width = tab.offsetWidth + 'px'
|
|
286
|
-
this.lineOpts.width = width + 'px';
|
|
287
|
-
this.lineOpts.right = 'unset';
|
|
288
|
-
this.lineOpts.height = '2px';
|
|
289
|
-
}
|
|
290
|
-
else {
|
|
291
|
-
// this.lineOpts.top = tab.offsetTop + 'px'
|
|
292
|
-
this.lineOpts.top = top + 'px';
|
|
293
|
-
this.lineOpts.left = 'unset';
|
|
294
|
-
this.lineOpts.right = '0';
|
|
295
|
-
this.lineOpts.width = '2px';
|
|
296
|
-
// this.lineOpts.height = tab.offsetHeight + 'px'
|
|
297
|
-
this.lineOpts.height = height + 'px';
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* @desc
|
|
302
|
-
*/
|
|
303
|
-
getLineTransform() {
|
|
304
|
-
return {
|
|
305
|
-
'--bcm-tabs-line-top': this.lineOpts.top,
|
|
306
|
-
'--bcm-tabs-line-left': this.lineOpts.left,
|
|
307
|
-
'--bcm-tabs-line-width': this.lineOpts.width,
|
|
308
|
-
'--bcm-tabs-line-right': this.lineOpts.right,
|
|
309
|
-
'--bcm-tabs-line-height': this.lineOpts.height
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* @desc
|
|
314
|
-
* @param event
|
|
315
|
-
*/
|
|
316
|
-
handleTabClick(event) {
|
|
317
|
-
const targetElement = event.target;
|
|
318
|
-
const childIdx = this.getChildIdx(targetElement);
|
|
319
|
-
this.activeChild = null;
|
|
320
|
-
this.activeChild = childIdx;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @desc
|
|
324
|
-
* @param event
|
|
325
|
-
*/
|
|
326
|
-
handleTabClose(event) {
|
|
327
|
-
const targetElement = event.target;
|
|
328
|
-
const childIdx = this.getChildIdx(targetElement);
|
|
329
|
-
// Remove element
|
|
330
|
-
// #
|
|
331
|
-
targetElement.remove();
|
|
332
|
-
this.tabs.splice(childIdx - 1, 1);
|
|
333
|
-
if (childIdx === this.activeChild) {
|
|
334
|
-
this.activeChild = 1;
|
|
335
|
-
this.activateChild(1);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* @desc
|
|
340
|
-
* @param newValue
|
|
341
|
-
*/
|
|
342
|
-
activeChildChange(newValue) {
|
|
343
|
-
this.activateChild(newValue);
|
|
344
|
-
this.change.emit(newValue);
|
|
345
|
-
this.buttonControl();
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* @desc
|
|
349
|
-
*/
|
|
350
|
-
windowResize() {
|
|
351
|
-
this.transformLine(this.activeChild - 1);
|
|
352
|
-
forceUpdate(this.el);
|
|
353
|
-
}
|
|
354
|
-
render() {
|
|
355
|
-
const classes = classnames('tabs', [this.direction], [this.size], [this.type], this.fullWidth ? 'full-width' : null, this.underline ? 'underline' : null);
|
|
356
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
357
|
-
return (h(Host, { class: hostClasses }, h("div", { class: classes, style: this.getLineTransform(), "on-bcm-click": (event) => this.handleTabClick(event), "on-bcm-close": (event) => this.handleTabClose(event) }, h("slot", null))));
|
|
358
|
-
}
|
|
359
|
-
get el() { return getElement(this); }
|
|
360
|
-
static get watchers() { return {
|
|
361
|
-
"activeChild": ["activeChildChange"]
|
|
362
|
-
}; }
|
|
363
|
-
};
|
|
364
|
-
BcmTabs.style = tabsCss;
|
|
365
|
-
|
|
366
|
-
export { BcmTabs as bcm_tabs };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { c as classnames } from './index-f549811f.js';
|
|
7
|
-
import { C as ColorHelper } from './color-helper-74614f24.js';
|
|
8
|
-
import { S as SlotTemplate } from './slot-template-2a19b2db.js';
|
|
9
|
-
import './_commonjsHelpers-82aa9212.js';
|
|
10
|
-
import './colors-1d7854ea.js';
|
|
11
|
-
import './utils-57652744.js';
|
|
12
|
-
import './colors-dd598eea.js';
|
|
13
|
-
import './string-helper-3592bdc2.js';
|
|
14
|
-
import './bcm-a50d55ba.js';
|
|
15
|
-
|
|
16
|
-
const textCss = "@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}.bcm-text{display:inline;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-text.hidden{display:none}.bcm-text__paragraph{margin:0;padding:0}.bcm-text__font-size-1{font-size:10px;line-height:calc(10px + 8px)}.bcm-text__font-size-2{font-size:12px;line-height:calc(12px + 8px)}.bcm-text__font-size-3{font-size:14px;line-height:calc(14px + 8px)}.bcm-text__font-size-4{font-size:16px;line-height:calc(16px + 8px)}.bcm-text__font-size-5{font-size:18px;line-height:calc(18px + 8px)}.bcm-text__font-size-6{font-size:20px;line-height:calc(20px + 8px)}.bcm-text__font-size-7{font-size:24px;line-height:calc(24px + 8px)}.bcm-text__font-size-8{font-size:32px;line-height:calc(32px + 8px)}.bcm-text__font-size-9{font-size:40px;line-height:calc(40px + 8px)}";
|
|
17
|
-
|
|
18
|
-
const BcmText = class {
|
|
19
|
-
constructor(hostRef) {
|
|
20
|
-
registerInstance(this, hostRef);
|
|
21
|
-
this.hidden = false;
|
|
22
|
-
this.scale = undefined;
|
|
23
|
-
this.weight = "400";
|
|
24
|
-
this.color = "slate";
|
|
25
|
-
this.text = undefined;
|
|
26
|
-
this.fontSize = 4;
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
const { hidden, scale, weight, color, fontSize } = this;
|
|
30
|
-
const hostClasses = classnames('bcm-text', {
|
|
31
|
-
hidden
|
|
32
|
-
});
|
|
33
|
-
const classes = classnames('bcm-text__paragraph', `bcm-text__font-size-${fontSize}`, scale);
|
|
34
|
-
const fontWeight = +weight || 400;
|
|
35
|
-
const style = {
|
|
36
|
-
color: ColorHelper.dsColor(color),
|
|
37
|
-
fontWeight
|
|
38
|
-
};
|
|
39
|
-
return (h(Host, { class: hostClasses }, h("span", { hidden: true }, h("slot", null)), h("p", { class: classes, style: Object.assign({}, style) }, h(SlotTemplate, { value: this.text }))));
|
|
40
|
-
}
|
|
41
|
-
get el() { return getElement(this); }
|
|
42
|
-
};
|
|
43
|
-
BcmText.style = textCss;
|
|
44
|
-
|
|
45
|
-
export { BcmText as bcm_text };
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { d as getRenderingRef, f as forceUpdate } from './index-0615c2b8.js';
|
|
6
|
-
|
|
7
|
-
const appendToMap = (map, propName, value) => {
|
|
8
|
-
const items = map.get(propName);
|
|
9
|
-
if (!items) {
|
|
10
|
-
map.set(propName, [value]);
|
|
11
|
-
}
|
|
12
|
-
else if (!items.includes(value)) {
|
|
13
|
-
items.push(value);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
const debounce = (fn, ms) => {
|
|
17
|
-
let timeoutId;
|
|
18
|
-
return (...args) => {
|
|
19
|
-
if (timeoutId) {
|
|
20
|
-
clearTimeout(timeoutId);
|
|
21
|
-
}
|
|
22
|
-
timeoutId = setTimeout(() => {
|
|
23
|
-
timeoutId = 0;
|
|
24
|
-
fn(...args);
|
|
25
|
-
}, ms);
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Check if a possible element isConnected.
|
|
31
|
-
* The property might not be there, so we check for it.
|
|
32
|
-
*
|
|
33
|
-
* We want it to return true if isConnected is not a property,
|
|
34
|
-
* otherwise we would remove these elements and would not update.
|
|
35
|
-
*
|
|
36
|
-
* Better leak in Edge than to be useless.
|
|
37
|
-
*/
|
|
38
|
-
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
39
|
-
const cleanupElements = debounce((map) => {
|
|
40
|
-
for (let key of map.keys()) {
|
|
41
|
-
map.set(key, map.get(key).filter(isConnected));
|
|
42
|
-
}
|
|
43
|
-
}, 2000);
|
|
44
|
-
const stencilSubscription = () => {
|
|
45
|
-
if (typeof getRenderingRef !== 'function') {
|
|
46
|
-
// If we are not in a stencil project, we do nothing.
|
|
47
|
-
// This function is not really exported by @stencil/core.
|
|
48
|
-
return {};
|
|
49
|
-
}
|
|
50
|
-
const elmsToUpdate = new Map();
|
|
51
|
-
return {
|
|
52
|
-
dispose: () => elmsToUpdate.clear(),
|
|
53
|
-
get: (propName) => {
|
|
54
|
-
const elm = getRenderingRef();
|
|
55
|
-
if (elm) {
|
|
56
|
-
appendToMap(elmsToUpdate, propName, elm);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
set: (propName) => {
|
|
60
|
-
const elements = elmsToUpdate.get(propName);
|
|
61
|
-
if (elements) {
|
|
62
|
-
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
|
63
|
-
}
|
|
64
|
-
cleanupElements(elmsToUpdate);
|
|
65
|
-
},
|
|
66
|
-
reset: () => {
|
|
67
|
-
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
|
68
|
-
cleanupElements(elmsToUpdate);
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
74
|
-
let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
|
|
75
|
-
const handlers = {
|
|
76
|
-
dispose: [],
|
|
77
|
-
get: [],
|
|
78
|
-
set: [],
|
|
79
|
-
reset: [],
|
|
80
|
-
};
|
|
81
|
-
const reset = () => {
|
|
82
|
-
states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
|
|
83
|
-
handlers.reset.forEach((cb) => cb());
|
|
84
|
-
};
|
|
85
|
-
const dispose = () => {
|
|
86
|
-
// Call first dispose as resetting the state would
|
|
87
|
-
// cause less updates ;)
|
|
88
|
-
handlers.dispose.forEach((cb) => cb());
|
|
89
|
-
reset();
|
|
90
|
-
};
|
|
91
|
-
const get = (propName) => {
|
|
92
|
-
handlers.get.forEach((cb) => cb(propName));
|
|
93
|
-
return states.get(propName);
|
|
94
|
-
};
|
|
95
|
-
const set = (propName, value) => {
|
|
96
|
-
const oldValue = states.get(propName);
|
|
97
|
-
if (shouldUpdate(value, oldValue, propName)) {
|
|
98
|
-
states.set(propName, value);
|
|
99
|
-
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
const state = (typeof Proxy === 'undefined'
|
|
103
|
-
? {}
|
|
104
|
-
: new Proxy(defaultState, {
|
|
105
|
-
get(_, propName) {
|
|
106
|
-
return get(propName);
|
|
107
|
-
},
|
|
108
|
-
ownKeys(_) {
|
|
109
|
-
return Array.from(states.keys());
|
|
110
|
-
},
|
|
111
|
-
getOwnPropertyDescriptor() {
|
|
112
|
-
return {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
configurable: true,
|
|
115
|
-
};
|
|
116
|
-
},
|
|
117
|
-
has(_, propName) {
|
|
118
|
-
return states.has(propName);
|
|
119
|
-
},
|
|
120
|
-
set(_, propName, value) {
|
|
121
|
-
set(propName, value);
|
|
122
|
-
return true;
|
|
123
|
-
},
|
|
124
|
-
}));
|
|
125
|
-
const on = (eventName, callback) => {
|
|
126
|
-
handlers[eventName].push(callback);
|
|
127
|
-
return () => {
|
|
128
|
-
removeFromArray(handlers[eventName], callback);
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
const onChange = (propName, cb) => {
|
|
132
|
-
const unSet = on('set', (key, newValue) => {
|
|
133
|
-
if (key === propName) {
|
|
134
|
-
cb(newValue);
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
const unReset = on('reset', () => cb(defaultState[propName]));
|
|
138
|
-
return () => {
|
|
139
|
-
unSet();
|
|
140
|
-
unReset();
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
const use = (...subscriptions) => {
|
|
144
|
-
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
|
145
|
-
if (subscription.set) {
|
|
146
|
-
unsubs.push(on('set', subscription.set));
|
|
147
|
-
}
|
|
148
|
-
if (subscription.get) {
|
|
149
|
-
unsubs.push(on('get', subscription.get));
|
|
150
|
-
}
|
|
151
|
-
if (subscription.reset) {
|
|
152
|
-
unsubs.push(on('reset', subscription.reset));
|
|
153
|
-
}
|
|
154
|
-
if (subscription.dispose) {
|
|
155
|
-
unsubs.push(on('dispose', subscription.dispose));
|
|
156
|
-
}
|
|
157
|
-
return unsubs;
|
|
158
|
-
}, []);
|
|
159
|
-
return () => unsubs.forEach((unsub) => unsub());
|
|
160
|
-
};
|
|
161
|
-
const forceUpdate = (key) => {
|
|
162
|
-
const oldValue = states.get(key);
|
|
163
|
-
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
164
|
-
};
|
|
165
|
-
return {
|
|
166
|
-
state,
|
|
167
|
-
get,
|
|
168
|
-
set,
|
|
169
|
-
on,
|
|
170
|
-
onChange,
|
|
171
|
-
use,
|
|
172
|
-
dispose,
|
|
173
|
-
reset,
|
|
174
|
-
forceUpdate,
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
const removeFromArray = (array, item) => {
|
|
178
|
-
const index = array.indexOf(item);
|
|
179
|
-
if (index >= 0) {
|
|
180
|
-
array[index] = array[array.length - 1];
|
|
181
|
-
array.length--;
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
const createStore = (defaultState, shouldUpdate) => {
|
|
186
|
-
const map = createObservableMap(defaultState, shouldUpdate);
|
|
187
|
-
map.use(stencilSubscription());
|
|
188
|
-
return map;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
export { createStore as c };
|