bromcom-ui 2.11.1-rc.8 → 2.11.1-rc.9-1
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-c7e8dcf7.js → p-0d0e3903.js} +1 -1
- package/dist/bromcom-ui/{p-fb529ec0.entry.js → p-1345d51b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
- package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-1b558b0f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5b76a893.entry.js → p-1d81a0a4.entry.js} +1 -1
- package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-18bc4e04.entry.js → p-270e1b24.entry.js} +1 -1
- package/dist/bromcom-ui/p-2bdf78f5.entry.js +5 -0
- package/dist/bromcom-ui/{p-0999d548.js → p-2c4435e2.js} +1 -1
- package/dist/bromcom-ui/{p-1cac8ccc.js → p-2cd6cdee.js} +1 -1
- package/dist/bromcom-ui/{p-63138ee5.entry.js → p-32c55505.entry.js} +1 -1
- package/dist/bromcom-ui/p-376a20ed.js +5 -0
- package/dist/bromcom-ui/{p-78bdc41e.entry.js → p-3a290e0d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4438d629.entry.js → p-4393b33e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cb190cbb.js → p-46cc4f0c.js} +1 -1
- package/dist/bromcom-ui/p-4cc25225.entry.js +20 -0
- package/dist/bromcom-ui/{p-16e8e9ba.js → p-4d55ba21.js} +1 -1
- package/dist/bromcom-ui/{p-5e4f84aa.entry.js → p-54788d6e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-59f7fa84.entry.js} +1 -1
- package/dist/bromcom-ui/p-5b63bfc6.entry.js +5 -0
- package/dist/bromcom-ui/{p-77b99601.entry.js → p-5be80cce.entry.js} +1 -1
- package/dist/bromcom-ui/{p-468157a0.entry.js → p-5d670fd7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d0e56a89.entry.js → p-5f4a7e27.entry.js} +1 -1
- package/dist/bromcom-ui/{p-745e2913.entry.js → p-65119762.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e45c1546.js → p-6657830f.js} +1 -1
- package/dist/bromcom-ui/{p-3b079331.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/p-6a82a1c6.entry.js +5 -0
- package/dist/bromcom-ui/{p-4798d827.js → p-6bea284a.js} +1 -1
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/{p-1e8559ac.entry.js → p-77b1dbdd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-95a2c489.entry.js → p-77ef609e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1f99c170.entry.js → p-7a590e30.entry.js} +1 -1
- package/dist/bromcom-ui/{p-03337609.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-991ffc23.entry.js → p-7d0d6073.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/{p-d2f863d9.js → p-8b6d3a37.js} +1 -1
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/p-959bd503.entry.js +5 -0
- package/dist/bromcom-ui/{p-79572dc0.entry.js → p-9668c853.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8e5e362a.js → p-9850cbce.js} +1 -1
- package/dist/bromcom-ui/p-991f374c.entry.js +5 -0
- package/dist/bromcom-ui/{p-0efc9196.entry.js → p-9b59c689.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-a0d6d680.js} +1 -1
- package/dist/bromcom-ui/p-a0f44b56.entry.js +5 -0
- package/dist/bromcom-ui/{p-0e362df2.entry.js → p-a20ac74f.entry.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/{p-f39d9d7c.entry.js → p-a32b4186.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e32ab4da.entry.js → p-a486613b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7a89243a.entry.js → p-a6aa173f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0fc9f542.entry.js → p-a9759941.entry.js} +1 -1
- package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
- package/dist/bromcom-ui/p-aeb4be41.js +5 -0
- package/dist/bromcom-ui/{p-5f9b5e9a.entry.js → p-b703f03f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-80eb3fdb.entry.js → p-b72147fd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-beaec5b8.js} +1 -1
- package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-48f5a3c9.entry.js → p-c49b6287.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0c8f2481.entry.js → p-c661de9e.entry.js} +1 -1
- package/dist/bromcom-ui/p-cb7003f0.entry.js +5 -0
- package/dist/bromcom-ui/{p-32a2509b.entry.js → p-cbbadc43.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9686cdb.entry.js → p-ce917a87.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8290f0dc.entry.js → p-cf119021.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a496024a.entry.js → p-d5251ffe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-188b9079.entry.js → p-d59d9687.entry.js} +1 -1
- package/dist/bromcom-ui/p-de0b0192.entry.js +5 -0
- package/dist/bromcom-ui/p-e0ab7b38.js +11 -0
- package/dist/bromcom-ui/p-e72cd4e5.entry.js +5 -0
- package/dist/bromcom-ui/{p-181f2f4a.entry.js → p-e8eaa3bb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-298c652a.entry.js → p-e98016f3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-64da3643.entry.js → p-ea062405.entry.js} +1 -1
- package/dist/bromcom-ui/p-eca0acda.js +5 -0
- package/dist/bromcom-ui/{p-6bdc5130.entry.js → p-ee0bfc38.entry.js} +1 -1
- package/dist/bromcom-ui/p-f990f4c3.js +5 -0
- package/dist/bromcom-ui/{p-08159d00.entry.js → p-f9b59bcc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9119bec.entry.js → p-fc787048.entry.js} +1 -1
- package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
- package/dist/cjs/bcm-accordion_45.cjs.entry.js +23947 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +5 -5
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +10 -10
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/bcm-caption.cjs.entry.js +11 -11
- package/dist/cjs/bcm-card.cjs.entry.js +7 -7
- package/dist/cjs/{bcm-checkbox-lite_9.cjs.entry.js → bcm-checkbox-lite_8.cjs.entry.js} +7 -27
- package/dist/cjs/bcm-chip-group.cjs.entry.js +11 -11
- package/dist/cjs/bcm-collapse.cjs.entry.js +62 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +9 -9
- package/dist/cjs/bcm-default.cjs.entry.js +3 -3
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +12 -12
- package/dist/cjs/bcm-link.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +8 -8
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +8 -8
- package/dist/cjs/bcm-modal-2.cjs.entry.js +9 -9
- package/dist/cjs/bcm-modal.cjs.entry.js +8 -8
- package/dist/cjs/bcm-number-input.cjs.entry.js +11 -11
- package/dist/cjs/bcm-old-input.cjs.entry.js +1 -1
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popover.cjs.entry.js +11 -11
- package/dist/cjs/bcm-range.cjs.entry.js +7 -7
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-skeleton.cjs.entry.js +8 -8
- package/dist/cjs/bcm-table.cjs.entry.js +8 -8
- package/dist/cjs/bcm-tag.cjs.entry.js +16 -16
- package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/bcm-toast.cjs.entry.js +12 -12
- 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/{color-helper-c3a819ea.js → color-helper-dc98a2ca.js} +1 -1
- package/dist/cjs/{colors-078851ec.js → colors-250d0982.js} +13 -7
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
- package/dist/cjs/{generate-06bf97b8.js → generate-c4e28fef.js} +2 -2
- package/dist/cjs/{global-74a88067.js → global-32a72f23.js} +1 -1
- 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-362f0e03.js → number-helper-40bfb2fc.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +8 -8
- package/dist/cjs/old-bcm-popover.cjs.entry.js +6 -6
- package/dist/cjs/{package-92cfcafb.js → package-4a28cfe9.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-02e6101b.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-df7b5b59.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-9cdfb273.js} +2 -2
- package/dist/cjs/{validators-07d7a0c9.js → validators-0f4f7438.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/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/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.js +2 -2
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -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-radio-group.js +1 -1
- package/dist/components/bcm-range.js +1 -1
- 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/button.js +16 -16
- package/dist/components/caption-template.js +2 -2
- package/dist/components/chip.js +4 -4
- package/dist/components/colors2.js +13 -7
- 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/list.js +6 -12
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-82aa9212.js} +1 -1
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion_45.entry.js +23899 -0
- package/dist/esm/bcm-alert.entry.js +8 -8
- package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-caption.entry.js +14 -14
- package/dist/esm/bcm-card.entry.js +10 -10
- package/dist/esm/{bcm-checkbox-lite_9.entry.js → bcm-checkbox-lite_8.entry.js} +10 -29
- package/dist/esm/bcm-chip-group.entry.js +15 -15
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +58 -0
- 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 +9 -9
- package/dist/esm/bcm-datetime-picker.entry.js +13 -13
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-error-layout.entry.js +4 -4
- package/dist/esm/bcm-form-2.entry.js +8 -8
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +15 -15
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
- package/dist/esm/bcm-modal-2-header.entry.js +11 -11
- package/dist/esm/bcm-modal-2.entry.js +13 -13
- package/dist/esm/bcm-modal.entry.js +9 -9
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +14 -14
- package/dist/esm/bcm-old-input.entry.js +5 -5
- package/dist/esm/bcm-old-tag_2.entry.js +4 -4
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popover.entry.js +12 -12
- package/dist/esm/bcm-range.entry.js +9 -9
- 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-select.entry.js +5 -5
- package/dist/esm/bcm-skeleton.entry.js +11 -11
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +12 -12
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -9
- package/dist/esm/bcm-time-picker.entry.js +9 -9
- 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 +9 -9
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-caa3bc94.js → caption-template-d7953d13.js} +4 -4
- package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-74614f24.js} +2 -2
- package/dist/esm/{colors-e1c31f79.js → colors-dd598eea.js} +14 -8
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-2696a8c2.js → generate-7f921cea.js} +2 -2
- package/dist/esm/{global-61bfbbb2.js → global-e270bb55.js} +2 -2
- package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
- package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/{index-b84bc8c9.js → index-f549811f.js} +1 -1
- package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
- package/dist/esm/{label-template-737576c4.js → label-template-a26f76c0.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{lodash-0a4396a7.js → lodash-4197be99.js} +1 -1
- package/dist/esm/{number-helper-738f0f80.js → number-helper-48abae7a.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -11
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-131d6f3d.js → package-52b93905.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-d12fec40.js} +1 -1
- package/dist/esm/{slot-template-08ed1fe4.js → slot-template-2a19b2db.js} +2 -2
- package/dist/esm/{string-helper-85990695.js → string-helper-3592bdc2.js} +2 -2
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-0d91bd42.js → validators-2bf0eca1.js} +1 -1
- package/dist/types/templates/list-template.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-02209931.entry.js +0 -5
- package/dist/bromcom-ui/p-0267a472.entry.js +0 -5
- package/dist/bromcom-ui/p-034bbcdd.js +0 -5
- package/dist/bromcom-ui/p-04e5fdfe.entry.js +0 -5
- package/dist/bromcom-ui/p-0b28fa4e.entry.js +0 -5
- package/dist/bromcom-ui/p-1a33d7a3.entry.js +0 -5
- package/dist/bromcom-ui/p-2297ea95.entry.js +0 -5
- package/dist/bromcom-ui/p-2b3800d3.entry.js +0 -5
- package/dist/bromcom-ui/p-2e1a70ec.entry.js +0 -5
- package/dist/bromcom-ui/p-3089e9c7.js +0 -5
- package/dist/bromcom-ui/p-3182df7e.js +0 -10
- package/dist/bromcom-ui/p-339aca62.entry.js +0 -5
- package/dist/bromcom-ui/p-393f0e15.entry.js +0 -5
- package/dist/bromcom-ui/p-3f0b84a6.entry.js +0 -5
- package/dist/bromcom-ui/p-3f9f5a13.entry.js +0 -5
- package/dist/bromcom-ui/p-4213ba24.js +0 -5
- package/dist/bromcom-ui/p-45a9f416.entry.js +0 -5
- package/dist/bromcom-ui/p-4aa5350f.entry.js +0 -5
- package/dist/bromcom-ui/p-4ad0e51a.entry.js +0 -5
- package/dist/bromcom-ui/p-4d8067b9.entry.js +0 -5
- package/dist/bromcom-ui/p-5199f537.entry.js +0 -5
- package/dist/bromcom-ui/p-52722917.entry.js +0 -5
- package/dist/bromcom-ui/p-5362c0b3.js +0 -5
- package/dist/bromcom-ui/p-57bbbd50.entry.js +0 -5
- package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
- package/dist/bromcom-ui/p-70259bf1.entry.js +0 -5
- package/dist/bromcom-ui/p-734c3522.entry.js +0 -5
- package/dist/bromcom-ui/p-7380fb38.entry.js +0 -5
- package/dist/bromcom-ui/p-76c877e3.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
- package/dist/bromcom-ui/p-7e3209a0.js +0 -14
- package/dist/bromcom-ui/p-7fcb7aec.entry.js +0 -5
- package/dist/bromcom-ui/p-88b59874.entry.js +0 -5
- package/dist/bromcom-ui/p-8ec1a890.js +0 -5
- package/dist/bromcom-ui/p-98a4c883.entry.js +0 -5
- package/dist/bromcom-ui/p-9da2b0d5.entry.js +0 -5
- package/dist/bromcom-ui/p-9e4cb37f.entry.js +0 -5
- package/dist/bromcom-ui/p-a387fa95.entry.js +0 -5
- package/dist/bromcom-ui/p-a436ed99.entry.js +0 -5
- package/dist/bromcom-ui/p-a9aaa5c1.entry.js +0 -5
- package/dist/bromcom-ui/p-bb37a2e6.entry.js +0 -5
- package/dist/bromcom-ui/p-be6595a2.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-c4df05e3.entry.js +0 -5
- package/dist/bromcom-ui/p-d7309e81.entry.js +0 -5
- package/dist/bromcom-ui/p-d88a206a.entry.js +0 -5
- package/dist/bromcom-ui/p-dbde1ce5.entry.js +0 -5
- package/dist/bromcom-ui/p-dc6a4f29.entry.js +0 -5
- package/dist/bromcom-ui/p-e3c66141.js +0 -5
- package/dist/bromcom-ui/p-e55dc873.js +0 -5
- package/dist/bromcom-ui/p-e8075d25.entry.js +0 -5
- package/dist/bromcom-ui/p-e8ef1d0d.js +0 -5
- package/dist/bromcom-ui/p-f27a5636.entry.js +0 -5
- package/dist/bromcom-ui/p-f2850f20.entry.js +0 -5
- package/dist/bromcom-ui/p-f2d598d5.entry.js +0 -5
- package/dist/bromcom-ui/p-f6c83f16.entry.js +0 -5
- package/dist/bromcom-ui/p-fedb8902.entry.js +0 -5
- 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_2.cjs.entry.js +0 -419
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
- 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-color-input.cjs.entry.js +0 -77
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
- 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-form.cjs.entry.js +0 -492
- package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
- 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-label_2.cjs.entry.js +0 -135
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2563
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
- 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 -9391
- 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-text.cjs.entry.js +0 -49
- package/dist/cjs/index-3d67f613.js +0 -1610
- package/dist/cjs/index-e05a7c6f.js +0 -545
- package/dist/cjs/input-template-106fdeb9.js +0 -92
- package/dist/cjs/json-parse-decarator-6cbdad46.js +0 -40
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/cjs/stepper-states-5c4f767b.js +0 -85
- package/dist/cjs/tooltip-helper-9f0c156a.js +0 -158
- 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_2.entry.js +0 -414
- package/dist/esm/bcm-checkbox-group.entry.js +0 -411
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-chip.entry.js +0 -87
- 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.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-form.entry.js +0 -488
- package/dist/esm/bcm-icon.entry.js +0 -35
- 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-label_2.entry.js +0 -130
- package/dist/esm/bcm-list_3.entry.js +0 -2557
- package/dist/esm/bcm-menu.entry.js +0 -147
- 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 -9387
- 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-text.entry.js +0 -45
- package/dist/esm/index-a6d9d0af.js +0 -541
- package/dist/esm/index-c4568336.js +0 -1594
- package/dist/esm/input-template-b2e1b39d.js +0 -90
- package/dist/esm/json-parse-decarator-44a00bc5.js +0 -38
- package/dist/esm/moment-15cd9198.js +0 -4598
- package/dist/esm/stepper-states-66f07873.js +0 -83
- package/dist/esm/tooltip-helper-4b501ffa.js +0 -156
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-c591ecec.js');
|
|
10
|
-
require('./color-helper-c3a819ea.js');
|
|
11
|
-
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-06bf97b8.js');
|
|
13
|
-
require('./number-helper-362f0e03.js');
|
|
14
|
-
require('./string-helper-f9184277.js');
|
|
15
|
-
require('./validators-07d7a0c9.js');
|
|
16
|
-
require('./element-dragger-a8562f82.js');
|
|
17
|
-
const utils = require('./utils-fc077139.js');
|
|
18
|
-
const bcm = require('./bcm-489c9b1a.js');
|
|
19
|
-
require('./colors-56282b00.js');
|
|
20
|
-
require('./colors-078851ec.js');
|
|
21
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
22
|
-
require('./package-92cfcafb.js');
|
|
23
|
-
|
|
24
|
-
const BcmTabGroup = class {
|
|
25
|
-
constructor(hostRef) {
|
|
26
|
-
index.registerInstance(this, hostRef);
|
|
27
|
-
this.tabChange = index.createEvent(this, "bcm-tab-change", 7);
|
|
28
|
-
this._id = generate.Generate.UID();
|
|
29
|
-
this.active = "1";
|
|
30
|
-
this.color = "blue";
|
|
31
|
-
this.size = bcm.Bcm$1.Size.medium;
|
|
32
|
-
}
|
|
33
|
-
get tabItems() {
|
|
34
|
-
return this.el.querySelectorAll("bcm-tab-item");
|
|
35
|
-
}
|
|
36
|
-
get tabItemHeaders() {
|
|
37
|
-
return this.el.querySelectorAll("bcm-tab-item-header");
|
|
38
|
-
}
|
|
39
|
-
setTabAttributes() {
|
|
40
|
-
this.tabItems.forEach((tab, index) => {
|
|
41
|
-
const itemActive = tab.hasAttribute("active") ? true : false;
|
|
42
|
-
const itemDisabled = tab.hasAttribute("disabled") ? true : false;
|
|
43
|
-
const itemIndex = index + 1;
|
|
44
|
-
tab.setAttribute("index", `${itemIndex}`);
|
|
45
|
-
tab.setAttribute("size", this.size);
|
|
46
|
-
tab.setAttribute("color", this.color);
|
|
47
|
-
tab.removeAttribute("active");
|
|
48
|
-
tab.removeAttribute("disabled");
|
|
49
|
-
if (itemActive) {
|
|
50
|
-
tab.setAttribute("active", "");
|
|
51
|
-
this.active = itemIndex.toString();
|
|
52
|
-
}
|
|
53
|
-
if (itemDisabled) {
|
|
54
|
-
tab.setAttribute("disabled", "");
|
|
55
|
-
}
|
|
56
|
-
// const headerElement = tab.querySelector("bcm-tab-item-header");
|
|
57
|
-
// if (headerElement) {
|
|
58
|
-
// this.setHeaderTabAttributes(headerElement, tab);
|
|
59
|
-
// }
|
|
60
|
-
});
|
|
61
|
-
const isHasActiveTab = Array.from(this.tabItems).some((tab) => tab.hasAttribute("active"));
|
|
62
|
-
if (!isHasActiveTab) {
|
|
63
|
-
this.tabItems[0].setAttribute("active", "");
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
componentWillLoad() {
|
|
67
|
-
this.setTabAttributes();
|
|
68
|
-
}
|
|
69
|
-
handleTabClick(index) {
|
|
70
|
-
var _a, _b;
|
|
71
|
-
if (index) {
|
|
72
|
-
this.active = index.toString();
|
|
73
|
-
}
|
|
74
|
-
if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
75
|
-
this.tabItems.forEach(tab => {
|
|
76
|
-
tab.removeAttribute("active");
|
|
77
|
-
tab.setAttribute("size", this.size);
|
|
78
|
-
tab.setAttribute("color", this.color);
|
|
79
|
-
if (tab.getAttribute("index") == this.active) {
|
|
80
|
-
tab.setAttribute("active", "");
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
if ((_b = this.tabItemHeaders) === null || _b === void 0 ? void 0 : _b.length) {
|
|
85
|
-
this.tabItemHeaders.forEach(tabHeader => {
|
|
86
|
-
tabHeader.removeAttribute("active");
|
|
87
|
-
tabHeader.setAttribute("size", this.size);
|
|
88
|
-
tabHeader.setAttribute("color", this.color);
|
|
89
|
-
if (tabHeader.getAttribute("index") == this.active) {
|
|
90
|
-
tabHeader.setAttribute("active", "");
|
|
91
|
-
// tabHeader.scrollIntoView({
|
|
92
|
-
// behavior: "smooth",
|
|
93
|
-
// block: "start",
|
|
94
|
-
// inline: "center",
|
|
95
|
-
// });
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
this.tabChange.emit(this.active);
|
|
100
|
-
}
|
|
101
|
-
componentDidRender() {
|
|
102
|
-
this.inkBarControl();
|
|
103
|
-
this.handleTabClick();
|
|
104
|
-
}
|
|
105
|
-
componentDidLoad() {
|
|
106
|
-
this.inkBarControl();
|
|
107
|
-
this.observeTabItem();
|
|
108
|
-
}
|
|
109
|
-
async setActive(index) {
|
|
110
|
-
if (index > 0 && index <= this.tabItems.length && index != +this.active) {
|
|
111
|
-
this.handleTabClick(index);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
async refresh() {
|
|
115
|
-
await utils.delay(100);
|
|
116
|
-
index.forceUpdate(this);
|
|
117
|
-
}
|
|
118
|
-
inkBarControl() {
|
|
119
|
-
var _a;
|
|
120
|
-
const inkBar = this.el.querySelector("#ink-bar");
|
|
121
|
-
if (!inkBar || !((_a = this.tabItemHeaders) === null || _a === void 0 ? void 0 : _a.length))
|
|
122
|
-
return;
|
|
123
|
-
for (let i = 0; i < this.tabItemHeaders.length; i++) {
|
|
124
|
-
const tab = this.tabItemHeaders[i];
|
|
125
|
-
const tabIndex = tab.getAttribute("index");
|
|
126
|
-
if (tabIndex === this.active) {
|
|
127
|
-
inkBar.style.width = `${tab.offsetWidth}px`;
|
|
128
|
-
// inkBar.style.top = `${tab.offsetHeight}px`;
|
|
129
|
-
inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
activeChanged(newVal, _oldVal) {
|
|
134
|
-
var _a;
|
|
135
|
-
if (!((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length))
|
|
136
|
-
return;
|
|
137
|
-
const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.getAttribute("index") == newVal);
|
|
138
|
-
if (!isHasActiveTab) {
|
|
139
|
-
this.active = "1";
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
observeTabItem() {
|
|
143
|
-
const callback = (mutationsList, _observer) => {
|
|
144
|
-
for (const mutation of mutationsList) {
|
|
145
|
-
if (mutation.type === "childList") {
|
|
146
|
-
// for (const node of mutation.addedNodes) {
|
|
147
|
-
// if (node.nodeName === "BCM-TAB-ITEM") {
|
|
148
|
-
// // Do something when a bcm-tab-item is added
|
|
149
|
-
// }
|
|
150
|
-
// }
|
|
151
|
-
for (const node of mutation.removedNodes) {
|
|
152
|
-
if (node.nodeName === "BCM-TAB-ITEM") {
|
|
153
|
-
// Do something when a bcm-tab-item is removed
|
|
154
|
-
// console.log("A bcm-tab-item was removed.", node);
|
|
155
|
-
if (node === null || node === void 0 ? void 0 : node.active) {
|
|
156
|
-
this.active = "1";
|
|
157
|
-
}
|
|
158
|
-
this.tabProcess();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
this.observer = new MutationObserver(callback);
|
|
165
|
-
this.observer.observe(this.el, { childList: true });
|
|
166
|
-
}
|
|
167
|
-
tabProcess() {
|
|
168
|
-
this.updateTabHeaders();
|
|
169
|
-
this.regenerateIndex();
|
|
170
|
-
this.refresh();
|
|
171
|
-
this.inkBarControl();
|
|
172
|
-
}
|
|
173
|
-
updateTabHeaders() {
|
|
174
|
-
const tabIds = Array.from(this.tabItems).map(tab => tab.getAttribute("id"));
|
|
175
|
-
const tabHeaderElements = Array.from(this.el.querySelector("#tab-header").querySelectorAll("bcm-tab-item-header"));
|
|
176
|
-
if (tabIds.length !== tabHeaderElements.length) {
|
|
177
|
-
tabHeaderElements.forEach(tabHeader => {
|
|
178
|
-
const tabId = tabHeader.getAttribute("tab-id");
|
|
179
|
-
if (!tabIds.includes(tabId)) {
|
|
180
|
-
tabHeader.remove();
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
regenerateIndex() {
|
|
186
|
-
this.tabItems.forEach((tab, index) => {
|
|
187
|
-
const itemIndex = index + 1;
|
|
188
|
-
tab.setAttribute("index", `${itemIndex}`);
|
|
189
|
-
const headerElement = this.el.querySelector(`bcm-tab-item-header[tab-id="${tab.getAttribute("id")}"]`);
|
|
190
|
-
if (headerElement) {
|
|
191
|
-
headerElement.setAttribute("index", `${itemIndex}`);
|
|
192
|
-
headerElement.style.order = `${itemIndex}`;
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
render() {
|
|
197
|
-
const { color } = this;
|
|
198
|
-
const dc = generate.Generate.getTwColor({
|
|
199
|
-
color: color,
|
|
200
|
-
tones: [500]
|
|
201
|
-
});
|
|
202
|
-
return (index.h(index.Host, { role: "tablist", "aria-label": "Tab Group", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, index.h("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header", style: dc }, index.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` })), index.h("slot", null)));
|
|
203
|
-
}
|
|
204
|
-
get el() { return index.getElement(this); }
|
|
205
|
-
static get watchers() { return {
|
|
206
|
-
"active": ["activeChanged"]
|
|
207
|
-
}; }
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
exports.bcm_tab_group = BcmTabGroup;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-c591ecec.js');
|
|
10
|
-
require('./color-helper-c3a819ea.js');
|
|
11
|
-
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-06bf97b8.js');
|
|
13
|
-
require('./number-helper-362f0e03.js');
|
|
14
|
-
require('./string-helper-f9184277.js');
|
|
15
|
-
require('./validators-07d7a0c9.js');
|
|
16
|
-
require('./element-dragger-a8562f82.js');
|
|
17
|
-
const bcm = require('./bcm-489c9b1a.js');
|
|
18
|
-
const index$1 = require('./index-95ae50d0.js');
|
|
19
|
-
require('./colors-56282b00.js');
|
|
20
|
-
require('./utils-fc077139.js');
|
|
21
|
-
require('./colors-078851ec.js');
|
|
22
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
23
|
-
require('./package-92cfcafb.js');
|
|
24
|
-
|
|
25
|
-
const BcmTabItemHeader = class {
|
|
26
|
-
constructor(hostRef) {
|
|
27
|
-
index.registerInstance(this, hostRef);
|
|
28
|
-
this._id = generate.Generate.UID();
|
|
29
|
-
this.active = false;
|
|
30
|
-
this.disabled = false;
|
|
31
|
-
this.index = undefined;
|
|
32
|
-
this.color = "blue";
|
|
33
|
-
this.size = bcm.Bcm$1.Size.medium;
|
|
34
|
-
}
|
|
35
|
-
handleClick() {
|
|
36
|
-
var _a;
|
|
37
|
-
if (!this.disabled) {
|
|
38
|
-
(_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.setActive(this.index);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
const { color, size, active, disabled } = this;
|
|
43
|
-
const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
|
|
44
|
-
const dc = generate.Generate.getTwColor({
|
|
45
|
-
color: color,
|
|
46
|
-
tones: [500, 600, 700, 800]
|
|
47
|
-
});
|
|
48
|
-
return (index.h(index.Host, { onClick: () => this.handleClick(), class: index$1.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`, {
|
|
49
|
-
"tw-text-2 tw-py-1 tw-gap-2": size === bcm.Bcm$1.Size.small,
|
|
50
|
-
"tw-text-3 tw-py-2 tw-gap-3": size === bcm.Bcm$1.Size.medium,
|
|
51
|
-
"tw-text-4 tw-py-3 tw-gap-4": size === bcm.Bcm$1.Size.large,
|
|
52
|
-
}, disabled ? disabledClass : "tw-cursor-pointer", active
|
|
53
|
-
? `tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800`
|
|
54
|
-
: "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 }));
|
|
55
|
-
}
|
|
56
|
-
get el() { return index.getElement(this); }
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
exports.bcm_tab_item_header = BcmTabItemHeader;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-c591ecec.js');
|
|
10
|
-
require('./color-helper-c3a819ea.js');
|
|
11
|
-
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-06bf97b8.js');
|
|
13
|
-
require('./number-helper-362f0e03.js');
|
|
14
|
-
require('./string-helper-f9184277.js');
|
|
15
|
-
require('./validators-07d7a0c9.js');
|
|
16
|
-
require('./element-dragger-a8562f82.js');
|
|
17
|
-
require('./bcm-489c9b1a.js');
|
|
18
|
-
require('./colors-56282b00.js');
|
|
19
|
-
require('./utils-fc077139.js');
|
|
20
|
-
require('./colors-078851ec.js');
|
|
21
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
22
|
-
require('./package-92cfcafb.js');
|
|
23
|
-
|
|
24
|
-
const BcmTabItem = class {
|
|
25
|
-
constructor(hostRef) {
|
|
26
|
-
index.registerInstance(this, hostRef);
|
|
27
|
-
this._id = generate.Generate.UID();
|
|
28
|
-
this.active = false;
|
|
29
|
-
this.disabled = false;
|
|
30
|
-
this.index = undefined;
|
|
31
|
-
}
|
|
32
|
-
componentWillLoad() {
|
|
33
|
-
this.indexControl();
|
|
34
|
-
}
|
|
35
|
-
componentDidRender() {
|
|
36
|
-
this.headerMove();
|
|
37
|
-
}
|
|
38
|
-
getHeaderItem() {
|
|
39
|
-
const headerItem = this.el.querySelector("bcm-tab-item-header");
|
|
40
|
-
if (headerItem) {
|
|
41
|
-
headerItem.setAttribute("index", `${this.index}`);
|
|
42
|
-
headerItem.setAttribute("active", `${this.active}`);
|
|
43
|
-
headerItem.setAttribute("disabled", `${this.disabled}`);
|
|
44
|
-
headerItem.setAttribute("tab-id", `${this._id}`);
|
|
45
|
-
headerItem.style.order = `${this.index}`;
|
|
46
|
-
}
|
|
47
|
-
return headerItem;
|
|
48
|
-
}
|
|
49
|
-
getParentTabGroup() {
|
|
50
|
-
return generate.Generate.findParentElement(this.el, "bcm-tab-group");
|
|
51
|
-
}
|
|
52
|
-
getFindHeaderItem() {
|
|
53
|
-
var _a, _b;
|
|
54
|
-
return (_b = (_a = this.getParentTabGroup()) === null || _a === void 0 ? void 0 : _a.querySelector("#tab-header")) === null || _b === void 0 ? void 0 : _b.querySelector(`bcm-tab-item-header[tab-id="${this._id}"]`);
|
|
55
|
-
}
|
|
56
|
-
headerMove() {
|
|
57
|
-
var _a, _b, _c, _d;
|
|
58
|
-
if (this.getHeaderItem()) {
|
|
59
|
-
(_a = this.getFindHeaderItem()) === null || _a === void 0 ? void 0 : _a.remove();
|
|
60
|
-
(_c = (_b = this.getParentTabGroup()) === null || _b === void 0 ? void 0 : _b.querySelector("#tab-header")) === null || _c === void 0 ? void 0 : _c.appendChild(this.getHeaderItem());
|
|
61
|
-
(_d = this.el.parentElement) === null || _d === void 0 ? void 0 : _d.refresh();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
indexControl() {
|
|
65
|
-
var _a;
|
|
66
|
-
if (!this.index) {
|
|
67
|
-
(_a = generate.Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.querySelectorAll("bcm-tab-item").forEach((item, index) => {
|
|
68
|
-
if (item === this.el) {
|
|
69
|
-
item.setAttribute("index", `${index + 1}`);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
componentDidLoad() {
|
|
75
|
-
const observer = new MutationObserver(() => {
|
|
76
|
-
this.headerMove();
|
|
77
|
-
});
|
|
78
|
-
observer.observe(this.el, { childList: true, subtree: true });
|
|
79
|
-
}
|
|
80
|
-
render() {
|
|
81
|
-
return (index.h(index.Host, { id: this._id, role: "tabpanel", "aria-labelledby": `tab-${this._id}`, "aria-hidden": `${!this.active}`, class: {
|
|
82
|
-
"tw-block": this.active,
|
|
83
|
-
"tw-hidden": !this.active,
|
|
84
|
-
"tw-opacity-50": this.disabled,
|
|
85
|
-
"tw-w-full": true,
|
|
86
|
-
} }, index.h("slot", null)));
|
|
87
|
-
}
|
|
88
|
-
get el() { return index.getElement(this); }
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
exports.bcm_tab_item = BcmTabItem;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-c591ecec.js');
|
|
10
|
-
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
-
const colorHelper = require('./color-helper-c3a819ea.js');
|
|
12
|
-
const slotTemplate = require('./slot-template-c8e2816c.js');
|
|
13
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
|
-
require('./colors-56282b00.js');
|
|
15
|
-
require('./utils-fc077139.js');
|
|
16
|
-
require('./colors-078851ec.js');
|
|
17
|
-
require('./string-helper-f9184277.js');
|
|
18
|
-
require('./bcm-489c9b1a.js');
|
|
19
|
-
|
|
20
|
-
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)}";
|
|
21
|
-
|
|
22
|
-
const BcmText = class {
|
|
23
|
-
constructor(hostRef) {
|
|
24
|
-
index.registerInstance(this, hostRef);
|
|
25
|
-
this.hidden = false;
|
|
26
|
-
this.scale = undefined;
|
|
27
|
-
this.weight = "400";
|
|
28
|
-
this.color = "slate";
|
|
29
|
-
this.text = undefined;
|
|
30
|
-
this.fontSize = 4;
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const { hidden, scale, weight, color, fontSize } = this;
|
|
34
|
-
const hostClasses = index$1.classnames('bcm-text', {
|
|
35
|
-
hidden
|
|
36
|
-
});
|
|
37
|
-
const classes = index$1.classnames('bcm-text__paragraph', `bcm-text__font-size-${fontSize}`, scale);
|
|
38
|
-
const fontWeight = +weight || 400;
|
|
39
|
-
const style = {
|
|
40
|
-
color: colorHelper.ColorHelper.dsColor(color),
|
|
41
|
-
fontWeight
|
|
42
|
-
};
|
|
43
|
-
return (index.h(index.Host, { class: hostClasses }, index.h("span", { hidden: true }, index.h("slot", null)), index.h("p", { class: classes, style: Object.assign({}, style) }, index.h(slotTemplate.SlotTemplate, { value: this.text }))));
|
|
44
|
-
}
|
|
45
|
-
get el() { return index.getElement(this); }
|
|
46
|
-
};
|
|
47
|
-
BcmText.style = textCss;
|
|
48
|
-
|
|
49
|
-
exports.bcm_text = BcmText;
|