bromcom-ui 2.12.0-test.0 → 2.12.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-053dc717.entry.js +5 -0
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-0bda558d.js} +1 -1
- package/dist/bromcom-ui/{p-e6755449.js → p-101b76f5.js} +1 -1
- package/dist/bromcom-ui/{p-ba3c6657.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-df185078.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/p-3238bf36.js +5 -0
- package/dist/bromcom-ui/{p-195c5945.entry.js → p-3517ff07.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-35f2e15a.js} +1 -1
- package/dist/bromcom-ui/p-3f0f1f9e.entry.js +5 -0
- package/dist/bromcom-ui/p-41055402.js +5 -0
- package/dist/bromcom-ui/p-43c578cf.js +5 -0
- package/dist/bromcom-ui/p-47325924.entry.js +5 -0
- package/dist/bromcom-ui/{p-816fbffd.js → p-499d8454.js} +1 -1
- package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
- package/dist/bromcom-ui/{p-b175108e.js → p-5027dcf6.js} +1 -1
- package/dist/bromcom-ui/{p-4689c10d.entry.js → p-508796a2.entry.js} +1 -1
- package/dist/bromcom-ui/p-561de187.entry.js +5 -0
- package/dist/bromcom-ui/{p-91873347.entry.js → p-594a57c3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ebcb30ef.entry.js → p-5c4ff3cb.entry.js} +1 -1
- package/dist/bromcom-ui/p-5dea2654.entry.js +5 -0
- package/dist/bromcom-ui/{p-3078fcd2.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/p-65b8b97c.entry.js +5 -0
- package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/p-6db476de.entry.js +5 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- 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-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-de5a0e24.entry.js → p-7f48f82f.entry.js} +1 -1
- package/dist/bromcom-ui/p-84f5330f.js +5 -0
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/p-8664c6c9.entry.js +5 -0
- package/dist/bromcom-ui/{p-2fbae1fa.entry.js → p-866a46c4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-be7e5e83.js → p-8e683b32.js} +1 -1
- package/dist/bromcom-ui/{p-7c43d2ac.entry.js → p-8f76d87d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-90b3e6b7.entry.js → p-9cc8712c.entry.js} +1 -1
- package/dist/bromcom-ui/p-9cf19610.entry.js +16 -0
- package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/{p-2fdde750.entry.js → p-acbe93cd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c4d3aee2.js → p-ad94ca44.js} +1 -1
- package/dist/bromcom-ui/{p-3a06c6b1.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b3fe26a3.entry.js → p-bdc78a44.entry.js} +1 -1
- package/dist/bromcom-ui/{p-56fca120.entry.js → p-c179c3de.entry.js} +1 -1
- package/dist/bromcom-ui/{p-57d2c129.entry.js → p-c714d51e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c1c4d275.entry.js → p-cb91ad56.entry.js} +1 -1
- package/dist/bromcom-ui/p-d1298c40.js +5 -0
- package/dist/bromcom-ui/{p-5f04686a.entry.js → p-d18c83d3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd640601.entry.js → p-d91ccc41.entry.js} +1 -1
- package/dist/bromcom-ui/p-dbd2c7e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-edefa88b.entry.js +5 -0
- package/dist/bromcom-ui/{p-e2e529ef.entry.js → p-ef220df3.entry.js} +1 -1
- package/dist/bromcom-ui/p-f0e30624.entry.js +5 -0
- package/dist/bromcom-ui/{p-f06f42dc.entry.js → p-f9723b42.entry.js} +1 -1
- package/dist/bromcom-ui/{p-68fb3f60.entry.js → p-f9c5be5a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d971ec3b.entry.js → p-faeb018a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-94fd1636.entry.js → p-fdbd5b5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9a7a32e.entry.js → p-fed90a82.entry.js} +1 -1
- package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
- package/dist/cjs/bcm-accordion_63.cjs.entry.js +46086 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-input-2.cjs.entry.js +153 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
- package/dist/cjs/bcm-number-input.cjs.entry.js +297 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
- package/dist/cjs/bcm-range.cjs.entry.js +6 -6
- package/dist/cjs/bcm-react-number.cjs.entry.js +1230 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
- package/dist/cjs/bcm-table.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
- package/dist/cjs/{generate-c09a3ff3.js → generate-c1f827bd.js} +1 -1
- package/dist/cjs/{global-6b15ed51.js → global-c2f538b0.js} +1 -1
- package/dist/cjs/input.style-b5676e6a.js +122 -0
- package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-243f0583.js → number-helper-804e5165.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/{package-6483ada2.js → package-2ca614d5.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-d1aa81f0.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-29229e8f.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-1ee6dc21.js} +6 -4
- package/dist/cjs/{validators-e7423b70.js → validators-45979497.js} +1 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/badge/badge.js +1 -1
- package/dist/collection/components/atoms/badge/badge.style.js +1 -1
- package/dist/collection/components/atoms/button/button.css +13 -13
- package/dist/collection/components/atoms/button/button.js +14 -14
- package/dist/collection/components/atoms/chip/chip.css +4 -4
- package/dist/collection/components/atoms/chip/chip.js +3 -3
- package/dist/collection/components/atoms/link/link.css +9 -3
- package/dist/collection/components/molecules/checkbox/group.css +2 -2
- package/dist/collection/components/molecules/checkbox/group.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +4 -4
- package/dist/collection/components/molecules/modal/modal.css +1 -1
- package/dist/collection/components/molecules/number-input/number-input.js +2 -2
- package/dist/collection/components/molecules/number-input/react-input.js +1 -1
- package/dist/collection/components/molecules/radio/radio-group.js +1 -1
- package/dist/collection/components/molecules/radio/radio.js +1 -1
- package/dist/collection/components/molecules/range/range.js +1 -1
- package/dist/collection/components/molecules/switch/switch.css +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- package/dist/collection/components/organism/list/list.css +2 -2
- package/dist/collection/components/organism/list/list.js +3 -3
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other_deprecated/select/select.css +1 -1
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/components/other_deprecated/tabs/tab.css +15 -15
- package/dist/collection/helper/string-helper.js +4 -2
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
- package/dist/collection/stories/ui-library/components/list/country.js +186 -0
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/caption-template.js +2 -2
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +1 -1
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +3 -9
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/bcm-attendance.js +1 -1
- package/dist/components/bcm-checkbox-group.js +2 -2
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-error-layout.js +1 -1
- package/dist/components/bcm-expansion-panel.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-number-input.js +1 -1
- package/dist/components/bcm-radio-group.js +1 -1
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-select.js +2 -2
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +2 -2
- package/dist/components/bcm-tab-item-header.js +5 -5
- package/dist/components/bcm-tab.js +1 -1
- package/dist/components/button.js +16 -16
- package/dist/components/caption-template.js +2 -2
- package/dist/components/chip.js +4 -4
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +8 -14
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/string-helper.js +4 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion_63.entry.js +46020 -0
- package/dist/esm/bcm-alert.entry.js +6 -6
- 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 +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-caption.entry.js +13 -13
- package/dist/esm/bcm-card.entry.js +9 -9
- package/dist/esm/bcm-chip-group.entry.js +14 -14
- package/dist/esm/bcm-colorpicker.entry.js +4 -4
- 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-error-layout.entry.js +3 -3
- package/dist/esm/bcm-form-2.entry.js +6 -6
- package/dist/esm/bcm-input-2.entry.js +149 -0
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +14 -14
- package/dist/esm/bcm-message.entry.js +2 -2
- 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 +12 -12
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +293 -0
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popover.entry.js +11 -11
- package/dist/esm/bcm-range.entry.js +8 -8
- package/dist/esm/bcm-react-number.entry.js +1226 -0
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-select-group.entry.js +2 -2
- package/dist/esm/bcm-select-option.entry.js +2 -2
- package/dist/esm/bcm-skeleton.entry.js +10 -10
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-table.entry.js +11 -11
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +8 -8
- package/dist/esm/bcm-time-picker.entry.js +7 -7
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +8 -8
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-5c43c733.js → caption-template-3cd42c3b.js} +3 -3
- package/dist/esm/{color-helper-c0bb1d8a.js → color-helper-ba15b0d8.js} +2 -2
- package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-bcc4b036.js → generate-fb762c9f.js} +2 -2
- package/dist/esm/{global-158eb485.js → global-b4060f1f.js} +1 -1
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
- package/dist/esm/input.style-e855c0f3.js +120 -0
- package/dist/esm/{label-template-c15569c4.js → label-template-ef97aadb.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-f6f2817c.js → number-helper-0cbe6443.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -10
- package/dist/esm/old-bcm-popover.entry.js +6 -6
- package/dist/esm/{package-255a905d.js → package-67609610.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-1b15cc99.js} +1 -1
- package/dist/esm/{slot-template-7c36d3be.js → slot-template-0d958dcc.js} +1 -1
- package/dist/esm/{string-helper-85990695.js → string-helper-b4602002.js} +6 -4
- package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
- package/dist/esm/{validators-2052b679.js → validators-e7ccc273.js} +1 -1
- package/dist/types/stories/ui-library/components/list/country.d.ts +6 -0
- package/dist/types/templates/list-template.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0218b337.js +0 -5
- package/dist/bromcom-ui/p-055e4575.entry.js +0 -5
- package/dist/bromcom-ui/p-0a1c01fa.entry.js +0 -5
- package/dist/bromcom-ui/p-0d207b61.entry.js +0 -5
- package/dist/bromcom-ui/p-183bc78f.entry.js +0 -5
- package/dist/bromcom-ui/p-1e793658.entry.js +0 -5
- package/dist/bromcom-ui/p-2ab4e748.entry.js +0 -5
- package/dist/bromcom-ui/p-30a06f92.js +0 -5
- package/dist/bromcom-ui/p-310cab1a.js +0 -14
- package/dist/bromcom-ui/p-39eb3017.entry.js +0 -5
- package/dist/bromcom-ui/p-3dba7987.js +0 -5
- package/dist/bromcom-ui/p-3e63aea1.entry.js +0 -5
- package/dist/bromcom-ui/p-3f8853a8.entry.js +0 -5
- package/dist/bromcom-ui/p-4e33341b.entry.js +0 -5
- package/dist/bromcom-ui/p-516eb821.entry.js +0 -5
- package/dist/bromcom-ui/p-54c2dc4e.entry.js +0 -5
- package/dist/bromcom-ui/p-59294a5a.entry.js +0 -5
- package/dist/bromcom-ui/p-5a6caa99.entry.js +0 -5
- package/dist/bromcom-ui/p-5bea1cd3.entry.js +0 -5
- package/dist/bromcom-ui/p-5e50d99c.entry.js +0 -5
- package/dist/bromcom-ui/p-619d632d.entry.js +0 -5
- package/dist/bromcom-ui/p-67a6f0b1.entry.js +0 -5
- package/dist/bromcom-ui/p-6b55a1fe.js +0 -5
- package/dist/bromcom-ui/p-70761906.entry.js +0 -5
- package/dist/bromcom-ui/p-72bbcca6.entry.js +0 -5
- package/dist/bromcom-ui/p-74cedefe.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-7edab876.entry.js +0 -5
- package/dist/bromcom-ui/p-86bfeae7.entry.js +0 -5
- package/dist/bromcom-ui/p-8858f845.entry.js +0 -5
- package/dist/bromcom-ui/p-89cffdc1.entry.js +0 -5
- package/dist/bromcom-ui/p-8de5e85a.entry.js +0 -5
- package/dist/bromcom-ui/p-8e2fc0fb.entry.js +0 -5
- package/dist/bromcom-ui/p-8eec338f.entry.js +0 -5
- package/dist/bromcom-ui/p-903d62ff.entry.js +0 -5
- package/dist/bromcom-ui/p-91c0ab1c.entry.js +0 -5
- package/dist/bromcom-ui/p-a5830216.entry.js +0 -5
- package/dist/bromcom-ui/p-a8fd6d69.js +0 -5
- package/dist/bromcom-ui/p-aaed6cc7.js +0 -5
- package/dist/bromcom-ui/p-b284e383.entry.js +0 -5
- package/dist/bromcom-ui/p-b378aff5.entry.js +0 -5
- package/dist/bromcom-ui/p-b4548f75.entry.js +0 -5
- package/dist/bromcom-ui/p-bba4602d.entry.js +0 -5
- package/dist/bromcom-ui/p-be970dce.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-bf2dcc43.entry.js +0 -5
- package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
- package/dist/bromcom-ui/p-c2620166.entry.js +0 -5
- package/dist/bromcom-ui/p-c4b075da.entry.js +0 -5
- package/dist/bromcom-ui/p-c7a3c347.entry.js +0 -5
- package/dist/bromcom-ui/p-c9aa4a0d.entry.js +0 -5
- package/dist/bromcom-ui/p-cfffca09.entry.js +0 -5
- package/dist/bromcom-ui/p-d0dc95ae.js +0 -5
- package/dist/bromcom-ui/p-d2f863d9.js +0 -5
- package/dist/bromcom-ui/p-d9157255.entry.js +0 -5
- package/dist/bromcom-ui/p-e0aa747b.entry.js +0 -5
- package/dist/bromcom-ui/p-e61cd999.entry.js +0 -5
- package/dist/bromcom-ui/p-e671e409.entry.js +0 -5
- package/dist/bromcom-ui/p-ed1fb15d.entry.js +0 -5
- package/dist/bromcom-ui/p-f144de37.entry.js +0 -5
- package/dist/bromcom-ui/p-f1550bf5.entry.js +0 -5
- package/dist/bromcom-ui/p-fd8a6bb8.entry.js +0 -5
- package/dist/bromcom-ui/p-fe39eea8.js +0 -5
- package/dist/cjs/Overflow-7a86d378.js +0 -2233
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
- 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_11.cjs.entry.js +0 -3340
- 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.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-date.cjs.entry.js +0 -182
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
- 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 -1972
- 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-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-rc-picker.cjs.entry.js +0 -9986
- 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 -59
- 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/bcm-textarea.cjs.entry.js +0 -163
- package/dist/cjs/input-template-8ca49c2e.js +0 -92
- package/dist/cjs/json-parse-decarator-d32b1b4a.js +0 -40
- package/dist/cjs/lodash-917168d7.js +0 -17199
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/cjs/stepper-states-4e435c7d.js +0 -85
- package/dist/cjs/tooltip-helper-31cc88d8.js +0 -158
- package/dist/esm/Overflow-32a0ec34.js +0 -2217
- package/dist/esm/bcm-accordion.entry.js +0 -70
- 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_11.entry.js +0 -3326
- 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.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-date.entry.js +0 -178
- package/dist/esm/bcm-drawer.entry.js +0 -92
- package/dist/esm/bcm-dropdown.entry.js +0 -115
- package/dist/esm/bcm-expansion-panel.entry.js +0 -112
- 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 -1966
- 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-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-rc-picker.entry.js +0 -9982
- 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 -55
- 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/bcm-textarea.entry.js +0 -159
- package/dist/esm/input-template-673e33b3.js +0 -90
- package/dist/esm/json-parse-decarator-c5dee289.js +0 -38
- package/dist/esm/lodash-0a4396a7.js +0 -17197
- package/dist/esm/moment-15cd9198.js +0 -4598
- package/dist/esm/stepper-states-aef71cbc.js +0 -83
- package/dist/esm/tooltip-helper-b27db4cd.js +0 -156
|
@@ -1,206 +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 './color-helper-c0bb1d8a.js';
|
|
7
|
-
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-bcc4b036.js';
|
|
9
|
-
import './number-helper-f6f2817c.js';
|
|
10
|
-
import './string-helper-85990695.js';
|
|
11
|
-
import './validators-2052b679.js';
|
|
12
|
-
import './element-dragger-89bb52fd.js';
|
|
13
|
-
import { d as delay } from './utils-57652744.js';
|
|
14
|
-
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
15
|
-
import './colors-1d7854ea.js';
|
|
16
|
-
import './colors-df32bb43.js';
|
|
17
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
18
|
-
import './package-255a905d.js';
|
|
19
|
-
|
|
20
|
-
const BcmTabGroup = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
registerInstance(this, hostRef);
|
|
23
|
-
this.tabChange = createEvent(this, "bcm-tab-change", 7);
|
|
24
|
-
this._id = Generate.UID();
|
|
25
|
-
this.active = "1";
|
|
26
|
-
this.color = "blue";
|
|
27
|
-
this.size = Bcm.Size.medium;
|
|
28
|
-
}
|
|
29
|
-
get tabItems() {
|
|
30
|
-
return this.el.querySelectorAll("bcm-tab-item");
|
|
31
|
-
}
|
|
32
|
-
get tabItemHeaders() {
|
|
33
|
-
return this.el.querySelectorAll("bcm-tab-item-header");
|
|
34
|
-
}
|
|
35
|
-
setTabAttributes() {
|
|
36
|
-
this.tabItems.forEach((tab, index) => {
|
|
37
|
-
const itemActive = tab.hasAttribute("active") ? true : false;
|
|
38
|
-
const itemDisabled = tab.hasAttribute("disabled") ? true : false;
|
|
39
|
-
const itemIndex = index + 1;
|
|
40
|
-
tab.setAttribute("index", `${itemIndex}`);
|
|
41
|
-
tab.setAttribute("size", this.size);
|
|
42
|
-
tab.setAttribute("color", this.color);
|
|
43
|
-
tab.removeAttribute("active");
|
|
44
|
-
tab.removeAttribute("disabled");
|
|
45
|
-
if (itemActive) {
|
|
46
|
-
tab.setAttribute("active", "");
|
|
47
|
-
this.active = itemIndex.toString();
|
|
48
|
-
}
|
|
49
|
-
if (itemDisabled) {
|
|
50
|
-
tab.setAttribute("disabled", "");
|
|
51
|
-
}
|
|
52
|
-
// const headerElement = tab.querySelector("bcm-tab-item-header");
|
|
53
|
-
// if (headerElement) {
|
|
54
|
-
// this.setHeaderTabAttributes(headerElement, tab);
|
|
55
|
-
// }
|
|
56
|
-
});
|
|
57
|
-
const isHasActiveTab = Array.from(this.tabItems).some((tab) => tab.hasAttribute("active"));
|
|
58
|
-
if (!isHasActiveTab) {
|
|
59
|
-
this.tabItems[0].setAttribute("active", "");
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
componentWillLoad() {
|
|
63
|
-
this.setTabAttributes();
|
|
64
|
-
}
|
|
65
|
-
handleTabClick(index) {
|
|
66
|
-
var _a, _b;
|
|
67
|
-
if (index) {
|
|
68
|
-
this.active = index.toString();
|
|
69
|
-
}
|
|
70
|
-
if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
71
|
-
this.tabItems.forEach(tab => {
|
|
72
|
-
tab.removeAttribute("active");
|
|
73
|
-
tab.setAttribute("size", this.size);
|
|
74
|
-
tab.setAttribute("color", this.color);
|
|
75
|
-
if (tab.getAttribute("index") == this.active) {
|
|
76
|
-
tab.setAttribute("active", "");
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
if ((_b = this.tabItemHeaders) === null || _b === void 0 ? void 0 : _b.length) {
|
|
81
|
-
this.tabItemHeaders.forEach(tabHeader => {
|
|
82
|
-
tabHeader.removeAttribute("active");
|
|
83
|
-
tabHeader.setAttribute("size", this.size);
|
|
84
|
-
tabHeader.setAttribute("color", this.color);
|
|
85
|
-
if (tabHeader.getAttribute("index") == this.active) {
|
|
86
|
-
tabHeader.setAttribute("active", "");
|
|
87
|
-
// tabHeader.scrollIntoView({
|
|
88
|
-
// behavior: "smooth",
|
|
89
|
-
// block: "start",
|
|
90
|
-
// inline: "center",
|
|
91
|
-
// });
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
this.tabChange.emit(this.active);
|
|
96
|
-
}
|
|
97
|
-
componentDidRender() {
|
|
98
|
-
this.inkBarControl();
|
|
99
|
-
this.handleTabClick();
|
|
100
|
-
}
|
|
101
|
-
componentDidLoad() {
|
|
102
|
-
this.inkBarControl();
|
|
103
|
-
this.observeTabItem();
|
|
104
|
-
}
|
|
105
|
-
async setActive(index) {
|
|
106
|
-
if (index > 0 && index <= this.tabItems.length && index != +this.active) {
|
|
107
|
-
this.handleTabClick(index);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
async refresh() {
|
|
111
|
-
await delay(100);
|
|
112
|
-
forceUpdate(this);
|
|
113
|
-
}
|
|
114
|
-
inkBarControl() {
|
|
115
|
-
var _a;
|
|
116
|
-
const inkBar = this.el.querySelector("#ink-bar");
|
|
117
|
-
if (!inkBar || !((_a = this.tabItemHeaders) === null || _a === void 0 ? void 0 : _a.length))
|
|
118
|
-
return;
|
|
119
|
-
for (let i = 0; i < this.tabItemHeaders.length; i++) {
|
|
120
|
-
const tab = this.tabItemHeaders[i];
|
|
121
|
-
const tabIndex = tab.getAttribute("index");
|
|
122
|
-
if (tabIndex === this.active) {
|
|
123
|
-
inkBar.style.width = `${tab.offsetWidth}px`;
|
|
124
|
-
// inkBar.style.top = `${tab.offsetHeight}px`;
|
|
125
|
-
inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
activeChanged(newVal, _oldVal) {
|
|
130
|
-
var _a;
|
|
131
|
-
if (!((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length))
|
|
132
|
-
return;
|
|
133
|
-
const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.getAttribute("index") == newVal);
|
|
134
|
-
if (!isHasActiveTab) {
|
|
135
|
-
this.active = "1";
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
observeTabItem() {
|
|
139
|
-
const callback = (mutationsList, _observer) => {
|
|
140
|
-
for (const mutation of mutationsList) {
|
|
141
|
-
if (mutation.type === "childList") {
|
|
142
|
-
// for (const node of mutation.addedNodes) {
|
|
143
|
-
// if (node.nodeName === "BCM-TAB-ITEM") {
|
|
144
|
-
// // Do something when a bcm-tab-item is added
|
|
145
|
-
// }
|
|
146
|
-
// }
|
|
147
|
-
for (const node of mutation.removedNodes) {
|
|
148
|
-
if (node.nodeName === "BCM-TAB-ITEM") {
|
|
149
|
-
// Do something when a bcm-tab-item is removed
|
|
150
|
-
// console.log("A bcm-tab-item was removed.", node);
|
|
151
|
-
if (node === null || node === void 0 ? void 0 : node.active) {
|
|
152
|
-
this.active = "1";
|
|
153
|
-
}
|
|
154
|
-
this.tabProcess();
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
this.observer = new MutationObserver(callback);
|
|
161
|
-
this.observer.observe(this.el, { childList: true });
|
|
162
|
-
}
|
|
163
|
-
tabProcess() {
|
|
164
|
-
this.updateTabHeaders();
|
|
165
|
-
this.regenerateIndex();
|
|
166
|
-
this.refresh();
|
|
167
|
-
this.inkBarControl();
|
|
168
|
-
}
|
|
169
|
-
updateTabHeaders() {
|
|
170
|
-
const tabIds = Array.from(this.tabItems).map(tab => tab.getAttribute("id"));
|
|
171
|
-
const tabHeaderElements = Array.from(this.el.querySelector("#tab-header").querySelectorAll("bcm-tab-item-header"));
|
|
172
|
-
if (tabIds.length !== tabHeaderElements.length) {
|
|
173
|
-
tabHeaderElements.forEach(tabHeader => {
|
|
174
|
-
const tabId = tabHeader.getAttribute("tab-id");
|
|
175
|
-
if (!tabIds.includes(tabId)) {
|
|
176
|
-
tabHeader.remove();
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
regenerateIndex() {
|
|
182
|
-
this.tabItems.forEach((tab, index) => {
|
|
183
|
-
const itemIndex = index + 1;
|
|
184
|
-
tab.setAttribute("index", `${itemIndex}`);
|
|
185
|
-
const headerElement = this.el.querySelector(`bcm-tab-item-header[tab-id="${tab.getAttribute("id")}"]`);
|
|
186
|
-
if (headerElement) {
|
|
187
|
-
headerElement.setAttribute("index", `${itemIndex}`);
|
|
188
|
-
headerElement.style.order = `${itemIndex}`;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
render() {
|
|
193
|
-
const { color } = this;
|
|
194
|
-
const dc = Generate.getTwColor({
|
|
195
|
-
color: color,
|
|
196
|
-
tones: [500]
|
|
197
|
-
});
|
|
198
|
-
return (h(Host, { role: "tablist", "aria-label": "Tab Group", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, h("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header", style: dc }, h("div", { id: "ink-bar", class: `tw-bg-default-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), h("slot", null)));
|
|
199
|
-
}
|
|
200
|
-
get el() { return getElement(this); }
|
|
201
|
-
static get watchers() { return {
|
|
202
|
-
"active": ["activeChanged"]
|
|
203
|
-
}; }
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export { BcmTabGroup as bcm_tab_group };
|
|
@@ -1,55 +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 './color-helper-c0bb1d8a.js';
|
|
7
|
-
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-bcc4b036.js';
|
|
9
|
-
import './number-helper-f6f2817c.js';
|
|
10
|
-
import './string-helper-85990695.js';
|
|
11
|
-
import './validators-2052b679.js';
|
|
12
|
-
import './element-dragger-89bb52fd.js';
|
|
13
|
-
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
14
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
15
|
-
import './colors-1d7854ea.js';
|
|
16
|
-
import './utils-57652744.js';
|
|
17
|
-
import './colors-df32bb43.js';
|
|
18
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
19
|
-
import './package-255a905d.js';
|
|
20
|
-
|
|
21
|
-
const BcmTabItemHeader = class {
|
|
22
|
-
constructor(hostRef) {
|
|
23
|
-
registerInstance(this, hostRef);
|
|
24
|
-
this._id = Generate.UID();
|
|
25
|
-
this.active = false;
|
|
26
|
-
this.disabled = false;
|
|
27
|
-
this.index = undefined;
|
|
28
|
-
this.color = "blue";
|
|
29
|
-
this.size = Bcm.Size.medium;
|
|
30
|
-
}
|
|
31
|
-
handleClick() {
|
|
32
|
-
var _a;
|
|
33
|
-
if (!this.disabled) {
|
|
34
|
-
(_a = Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.setActive(this.index);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
const { color, size, active, disabled } = this;
|
|
39
|
-
const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
|
|
40
|
-
const dc = Generate.getTwColor({
|
|
41
|
-
color: color,
|
|
42
|
-
tones: [500, 600, 700, 800]
|
|
43
|
-
});
|
|
44
|
-
return (h(Host, { onClick: () => this.handleClick(), class: classnames(`tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-focus:outline-none`, {
|
|
45
|
-
"tw-text-2 tw-py-1 tw-gap-2": size === Bcm.Size.small,
|
|
46
|
-
"tw-text-3 tw-py-2 tw-gap-3": size === Bcm.Size.medium,
|
|
47
|
-
"tw-text-4 tw-py-3 tw-gap-4": size === Bcm.Size.large,
|
|
48
|
-
}, disabled ? disabledClass : "tw-cursor-pointer", active
|
|
49
|
-
? `tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800`
|
|
50
|
-
: "tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600"), style: dc }));
|
|
51
|
-
}
|
|
52
|
-
get el() { return getElement(this); }
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export { BcmTabItemHeader as bcm_tab_item_header };
|
|
@@ -1,87 +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 './color-helper-c0bb1d8a.js';
|
|
7
|
-
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-bcc4b036.js';
|
|
9
|
-
import './number-helper-f6f2817c.js';
|
|
10
|
-
import './string-helper-85990695.js';
|
|
11
|
-
import './validators-2052b679.js';
|
|
12
|
-
import './element-dragger-89bb52fd.js';
|
|
13
|
-
import './bcm-a50d55ba.js';
|
|
14
|
-
import './colors-1d7854ea.js';
|
|
15
|
-
import './utils-57652744.js';
|
|
16
|
-
import './colors-df32bb43.js';
|
|
17
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
18
|
-
import './package-255a905d.js';
|
|
19
|
-
|
|
20
|
-
const BcmTabItem = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
registerInstance(this, hostRef);
|
|
23
|
-
this._id = Generate.UID();
|
|
24
|
-
this.active = false;
|
|
25
|
-
this.disabled = false;
|
|
26
|
-
this.index = undefined;
|
|
27
|
-
}
|
|
28
|
-
componentWillLoad() {
|
|
29
|
-
this.indexControl();
|
|
30
|
-
}
|
|
31
|
-
componentDidRender() {
|
|
32
|
-
this.headerMove();
|
|
33
|
-
}
|
|
34
|
-
getHeaderItem() {
|
|
35
|
-
const headerItem = this.el.querySelector("bcm-tab-item-header");
|
|
36
|
-
if (headerItem) {
|
|
37
|
-
headerItem.setAttribute("index", `${this.index}`);
|
|
38
|
-
headerItem.setAttribute("active", `${this.active}`);
|
|
39
|
-
headerItem.setAttribute("disabled", `${this.disabled}`);
|
|
40
|
-
headerItem.setAttribute("tab-id", `${this._id}`);
|
|
41
|
-
headerItem.style.order = `${this.index}`;
|
|
42
|
-
}
|
|
43
|
-
return headerItem;
|
|
44
|
-
}
|
|
45
|
-
getParentTabGroup() {
|
|
46
|
-
return Generate.findParentElement(this.el, "bcm-tab-group");
|
|
47
|
-
}
|
|
48
|
-
getFindHeaderItem() {
|
|
49
|
-
var _a, _b;
|
|
50
|
-
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}"]`);
|
|
51
|
-
}
|
|
52
|
-
headerMove() {
|
|
53
|
-
var _a, _b, _c, _d;
|
|
54
|
-
if (this.getHeaderItem()) {
|
|
55
|
-
(_a = this.getFindHeaderItem()) === null || _a === void 0 ? void 0 : _a.remove();
|
|
56
|
-
(_c = (_b = this.getParentTabGroup()) === null || _b === void 0 ? void 0 : _b.querySelector("#tab-header")) === null || _c === void 0 ? void 0 : _c.appendChild(this.getHeaderItem());
|
|
57
|
-
(_d = this.el.parentElement) === null || _d === void 0 ? void 0 : _d.refresh();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
indexControl() {
|
|
61
|
-
var _a;
|
|
62
|
-
if (!this.index) {
|
|
63
|
-
(_a = Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.querySelectorAll("bcm-tab-item").forEach((item, index) => {
|
|
64
|
-
if (item === this.el) {
|
|
65
|
-
item.setAttribute("index", `${index + 1}`);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
componentDidLoad() {
|
|
71
|
-
const observer = new MutationObserver(() => {
|
|
72
|
-
this.headerMove();
|
|
73
|
-
});
|
|
74
|
-
observer.observe(this.el, { childList: true, subtree: true });
|
|
75
|
-
}
|
|
76
|
-
render() {
|
|
77
|
-
return (h(Host, { id: this._id, role: "tabpanel", "aria-labelledby": `tab-${this._id}`, "aria-hidden": `${!this.active}`, class: {
|
|
78
|
-
"tw-block": this.active,
|
|
79
|
-
"tw-hidden": !this.active,
|
|
80
|
-
"tw-opacity-50": this.disabled,
|
|
81
|
-
"tw-w-full": true,
|
|
82
|
-
} }, h("slot", null)));
|
|
83
|
-
}
|
|
84
|
-
get el() { return getElement(this); }
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export { BcmTabItem as bcm_tab_item };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { T as TypeProps } from './types-b211a5eb.js';
|
|
7
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
8
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
9
|
-
|
|
10
|
-
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\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;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:var(--bcm-new-ds-color-slate-500);font-size:12px;line-height:calc(12px + 8px);cursor:pointer;user-select:none}.tab:hover{color:var(--bcm-new-ds-color-slate-600)}.tab:active{color:var(--bcm-new-ds-color-slate-700)}.tab:focus-visible{color:var(--bcm-new-ds-color-slate-800)}.tab.active{color:var(--bcm-new-ds-color-blue-500)}.tab.active::before{content:\"\";bottom:-2px;left:0;width:100%;height:2px;background-color:var(--bcm-new-ds-color-blue-500);position:absolute;z-index:1}.tab.active:hover{color:var(--bcm-new-ds-color-blue-600)}.tab.active:active{color:var(--bcm-new-ds-color-blue-700)}.tab.active:focus-visible{color:var(--bcm-new-ds-color-blue-800)}.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)}}";
|
|
11
|
-
|
|
12
|
-
const BcmTab = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
this.click = createEvent(this, "bcm-click", 7);
|
|
16
|
-
this.close = createEvent(this, "bcm-close", 7);
|
|
17
|
-
this.type = TypeProps.normal;
|
|
18
|
-
this.active = false;
|
|
19
|
-
this.disabled = false;
|
|
20
|
-
this.closable = false;
|
|
21
|
-
this.tabId = (Math.random() * 4).toString(16).replace('.', '');
|
|
22
|
-
this.formControl = null;
|
|
23
|
-
this.hidden = false;
|
|
24
|
-
this.status = 'default';
|
|
25
|
-
this.badge = false;
|
|
26
|
-
this.blink = false;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @desc
|
|
30
|
-
*/
|
|
31
|
-
handleClose() {
|
|
32
|
-
if (this.disabled)
|
|
33
|
-
return;
|
|
34
|
-
this.close.emit();
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @desc
|
|
38
|
-
* @param event
|
|
39
|
-
*/
|
|
40
|
-
handleClick(event) {
|
|
41
|
-
if (this.disabled)
|
|
42
|
-
return;
|
|
43
|
-
const targetElement = event.target;
|
|
44
|
-
// Detect close icon clicked
|
|
45
|
-
// #
|
|
46
|
-
if (String(targetElement.tagName).toLowerCase() == 'bcm-icon' && targetElement.classList.contains('close')) {
|
|
47
|
-
this.close.emit(event);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
this.click.emit(event);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
const { active, disabled, closable } = this;
|
|
55
|
-
const classes = classnames('tab', [this.type], {
|
|
56
|
-
'active': active,
|
|
57
|
-
'disabled': disabled,
|
|
58
|
-
'closable': closable
|
|
59
|
-
});
|
|
60
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
61
|
-
const badgeClasses = classnames('badge');
|
|
62
|
-
return (h(Host, { class: hostClasses }, h("div", { class: classes, onClick: (event) => this.handleClick(event) }, h("slot", { name: "icon-prefix" }), h("slot", null), h("slot", { name: "icon-suffix" }), this.closable && (h("bcm-icon", { class: "close", icon: "far fa-times" })), this.badge && (h("bcm-badge", { blink: true, class: badgeClasses, size: "small", status: this.status })))));
|
|
63
|
-
}
|
|
64
|
-
get el() { return getElement(this); }
|
|
65
|
-
};
|
|
66
|
-
BcmTab.style = tabCss;
|
|
67
|
-
|
|
68
|
-
export { BcmTab as bcm_tab };
|