bromcom-ui 2.9.0-rc.8 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/global.js +6 -0
- package/dist/bromcom-ui/global/helper/toast.ts +2 -0
- package/dist/bromcom-ui/p-08c75801.js +5 -0
- package/dist/bromcom-ui/p-0dacfdbc.entry.js +5 -0
- package/dist/bromcom-ui/{p-24f0e23a.entry.js → p-13f6e1a7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5c3e9ac9.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/p-170cf07d.js +6 -0
- package/dist/bromcom-ui/p-19634d99.js +5 -0
- package/dist/bromcom-ui/{p-e4477593.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-48f85544.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6bcaf906.entry.js → p-1cfe5a5d.entry.js} +1 -1
- package/dist/bromcom-ui/p-20ba9769.entry.js +5 -0
- package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-65f01d32.entry.js → p-22eb4e12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f331e009.entry.js → p-26290ed5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-240151d4.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/{p-73ca7c0a.entry.js → p-2b822458.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dbc4c30c.js → p-2c5a0863.js} +1 -1
- package/dist/bromcom-ui/p-304bfa08.entry.js +5 -0
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/p-399bce44.entry.js +5 -0
- package/dist/bromcom-ui/p-41cea609.entry.js +7 -0
- package/dist/bromcom-ui/{p-6c3e9e10.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/p-434c170e.js +5 -0
- package/dist/bromcom-ui/{p-d0bb9a84.entry.js → p-440bbaaa.entry.js} +1 -1
- package/dist/bromcom-ui/p-47400be4.entry.js +5 -0
- package/dist/bromcom-ui/{p-f5bed571.entry.js → p-4a2de9ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-4f42085a.entry.js +5 -0
- package/dist/bromcom-ui/{p-ff48f5b2.entry.js → p-5232e011.entry.js} +1 -1
- package/dist/bromcom-ui/p-53e91ae6.js +5 -0
- package/dist/bromcom-ui/{p-c75519d5.js → p-54211561.js} +1 -1
- package/dist/bromcom-ui/{p-dc2c4b14.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/p-5871767a.entry.js +5 -0
- package/dist/bromcom-ui/{p-45767d1d.entry.js → p-588165ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-5916e844.entry.js +5 -0
- package/dist/bromcom-ui/{p-499bb928.entry.js → p-5fb0f815.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2fc584c4.js → p-61db1f1f.js} +1 -1
- package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d389b202.entry.js → p-647de93f.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-03134b6f.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd51d347.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/p-6cf1e8a2.entry.js +5 -0
- package/dist/bromcom-ui/{p-4aa0e6b1.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/p-73ec379d.entry.js +5 -0
- package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/p-75ec5cc6.entry.js +5 -0
- package/dist/bromcom-ui/p-784a7bb0.entry.js +5 -0
- package/dist/bromcom-ui/p-78f0fe00.js +5 -0
- package/dist/bromcom-ui/p-7b05abe8.entry.js +5 -0
- package/dist/bromcom-ui/{p-d995750a.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/p-7cb30513.js +5 -0
- package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/p-80ee3d97.entry.js +5 -0
- package/dist/bromcom-ui/p-822d590f.entry.js +5 -0
- package/dist/bromcom-ui/p-85eedabc.js +5 -0
- package/dist/bromcom-ui/p-89a28750.entry.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/p-8f45ba5f.entry.js +5 -0
- package/dist/bromcom-ui/p-9075a184.entry.js +5 -0
- package/dist/bromcom-ui/{p-f58c1fbe.entry.js → p-913c55ee.entry.js} +1 -1
- package/dist/bromcom-ui/p-9164639f.entry.js +5 -0
- package/dist/bromcom-ui/p-9850cbce.js +5 -0
- package/dist/bromcom-ui/{p-8bcfe3b3.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/p-9bd5f3b4.entry.js +5 -0
- package/dist/bromcom-ui/{p-6aeaef2a.entry.js → p-a006e404.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e9842c26.js → p-a0ba474b.js} +1 -1
- package/dist/bromcom-ui/{p-b60bcecf.js → p-a1b1750c.js} +1 -1
- package/dist/bromcom-ui/{p-8fcb5846.js → p-a2c364af.js} +1 -1
- package/dist/bromcom-ui/p-a40a5474.entry.js +5 -0
- package/dist/bromcom-ui/{p-7c6e3ae5.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/p-a9eb0321.js +315 -0
- package/dist/bromcom-ui/{p-2acd6bee.entry.js → p-ab0b4d1e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2caa75a4.entry.js → p-b4f033b4.entry.js} +1 -1
- package/dist/bromcom-ui/p-b81e8f91.js +5 -0
- package/dist/bromcom-ui/{p-503feae9.entry.js → p-b8a8bd1d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4ac5904.js → p-b901e1ce.js} +1 -1
- package/dist/bromcom-ui/p-ba74a838.entry.js +5 -0
- package/dist/bromcom-ui/{p-c42dffea.entry.js → p-ba949d4a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f4538abb.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fb4b5224.entry.js → p-bd2b6de5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ebee9f45.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-908b1b5d.js → p-c8751181.js} +1 -1
- package/dist/bromcom-ui/p-ccf0872d.js +5 -0
- package/dist/bromcom-ui/p-cf659967.entry.js +5 -0
- package/dist/bromcom-ui/{p-8d0ca8c2.js → p-d153c7fc.js} +1 -1
- package/dist/bromcom-ui/p-d3db9e02.entry.js +5 -0
- package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ec36d0c0.entry.js → p-d68c2c0a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e5a0d8f6.entry.js → p-d724cfa9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-af0a447d.entry.js → p-d7ca94e1.entry.js} +1 -1
- package/dist/bromcom-ui/p-dd49ae28.entry.js +5 -0
- package/dist/bromcom-ui/p-e2294927.entry.js +5 -0
- package/dist/bromcom-ui/{p-1b1f4b44.entry.js → p-e688b044.entry.js} +1 -1
- package/dist/bromcom-ui/p-ec0224fb.entry.js +5 -0
- package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1be22601.entry.js → p-ef8c5b55.entry.js} +1 -1
- package/dist/bromcom-ui/p-f711588b.js +5 -0
- package/dist/bromcom-ui/p-fe1f2413.entry.js +5 -0
- package/dist/bromcom-ui/{p-a82f2b2a.entry.js → p-fe83cdd3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/bromcom-ui/static/message-bot.svg +2 -2
- package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
- package/dist/cjs/{bcm-ab921827.js → bcm-7f703055.js} +33 -31
- package/dist/cjs/bcm-accordion.cjs.entry.js +5 -5
- package/dist/cjs/bcm-alert.cjs.entry.js +9 -9
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -5
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
- package/dist/cjs/bcm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -6
- package/dist/cjs/bcm-button-group.cjs.entry.js +11 -11
- package/dist/cjs/bcm-button_15.cjs.entry.js +35172 -0
- package/dist/cjs/bcm-card.cjs.entry.js +10 -10
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +29 -29
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -10
- package/dist/cjs/{bcm-checkbox.cjs.entry.js → bcm-checkbox_2.cjs.entry.js} +28 -17
- package/dist/cjs/bcm-chip-group.cjs.entry.js +15 -16
- package/dist/cjs/bcm-chip.cjs.entry.js +7 -7
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +6 -6
- package/dist/cjs/bcm-color-input.cjs.entry.js +10 -11
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-default.cjs.entry.js +5 -5
- package/dist/cjs/bcm-drawer.cjs.entry.js +13 -14
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -9
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -6
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +6 -6
- package/dist/cjs/bcm-list_3.cjs.entry.js +169 -1691
- package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
- package/dist/cjs/bcm-message.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -12
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -11
- package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -13
- package/dist/cjs/bcm-modal.cjs.entry.js +11 -11
- package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -10
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -9
- package/dist/cjs/bcm-popover.cjs.entry.js +229 -0
- package/dist/cjs/bcm-progress.cjs.entry.js +9 -9
- package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -18
- package/dist/cjs/bcm-radio.cjs.entry.js +18 -19
- package/dist/cjs/bcm-range.cjs.entry.js +10 -10
- package/dist/cjs/bcm-result.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select.cjs.entry.js +5 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/bcm-step.cjs.entry.js +8 -8
- package/dist/cjs/bcm-stepper.cjs.entry.js +15 -16
- package/dist/cjs/bcm-switch.cjs.entry.js +15 -15
- package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
- package/dist/cjs/bcm-table.cjs.entry.js +7648 -38
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +19 -19
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +13 -13
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
- package/dist/cjs/bcm-toast.cjs.entry.js +38 -19
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +5 -4
- package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
- package/dist/cjs/{color-helper-7ab15732.js → color-helper-c3a819ea.js} +1 -1
- package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
- package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-b441ea7c.js} +2 -2
- package/dist/cjs/{generate-cae9c0fb.js → generate-1dfe001a.js} +2 -2
- package/dist/cjs/{global-3ce50f9f.js → global-4a6abd46.js} +6 -1
- package/dist/cjs/index-5279dea2.js +2571 -0
- package/dist/cjs/{index-906fb4e5.js → index-7eed931f.js} +1631 -25
- package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
- package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
- package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
- package/dist/cjs/{input-template-a7f8f2e9.js → input-template-41868c68.js} +8 -8
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-15036f37.js} +3 -2
- package/dist/cjs/{json-parse-decarator-34a3d26e.js → json-parse-decarator-f29c368a.js} +2 -2
- package/dist/cjs/{label-template-4d5f99a5.js → label-template-80235581.js} +5 -5
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{number-helper-101d8aa8.js → number-helper-2b9c1f9d.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -11
- package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -9
- package/dist/cjs/{package-ed8b3296.js → package-66b81414.js} +1 -1
- package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-f20020a6.js} +1 -1
- package/dist/cjs/{slot-template-d70ea082.js → slot-template-873b0cd5.js} +2 -2
- package/dist/cjs/{stepper-states-308c8d3e.js → stepper-states-6ccb8ab3.js} +3 -3
- package/dist/cjs/{string-helper-d681e5c7.js → string-helper-fda7cbba.js} +5 -5
- package/dist/cjs/tooltip-helper-0eb3ef13.js +157 -0
- package/dist/cjs/{validators-26badb68.js → validators-97a46a9e.js} +6 -1
- package/dist/cjs/watermark-2c23c8f1.js +47499 -0
- package/dist/collection/assets/csv.svg +9 -0
- package/dist/collection/assets/excel.svg +9 -0
- package/dist/collection/assets/pdf.svg +9 -0
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/atoms/avatar/avatar.js +21 -23
- package/dist/collection/components/atoms/avatar/avatar.style.js +24 -21
- package/dist/collection/components/atoms/badge/badge.js +2 -1
- package/dist/collection/components/atoms/badge/badge.style.js +36 -24
- package/dist/collection/components/atoms/button/button.css +55 -0
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/icon/static/message-bot.svg +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.js +1 -1
- package/dist/collection/components/molecules/input/input.js +0 -2
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +291 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +751 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
- package/dist/collection/components/molecules/linked/linked.js +5 -29
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +1 -1
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
- package/dist/collection/components/organism/form/form.js +1 -0
- package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
- package/dist/collection/components/organism/list/list.css +1 -1
- package/dist/collection/components/organism/list/list.js +63 -22
- package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
- package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
- package/dist/collection/components/other/toast/toast.js +48 -11
- package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +862 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1009 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +550 -0
- package/dist/collection/components/third-parts/table/table-definations.js +42 -0
- package/dist/collection/components/third-parts/table/table.css +136 -0
- package/dist/collection/components/third-parts/table/table.js +288 -0
- package/dist/collection/decorators/bcm-decorator.js +28 -0
- package/dist/collection/decorators/event-decorator.js +31 -0
- package/dist/collection/decorators/index.js +1 -0
- package/dist/collection/decorators/is-load-decorator.js +2 -1
- package/dist/collection/global/global.js +6 -0
- package/dist/collection/global/helper/toast.js +1 -0
- package/dist/collection/global/helper/toast.ts +2 -0
- package/dist/collection/helper/string-helper.js +2 -2
- package/dist/collection/models/bcm.js +29 -27
- package/dist/collection/templates/index.js +2 -0
- package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
- package/dist/collection/templates/toolbar-template.js +15 -0
- package/dist/components/_commonjsHelpers.js +16 -1
- package/dist/components/avatar.js +46 -44
- package/dist/components/badge.js +39 -70
- package/dist/components/bcm-chip-group.js +14 -8
- package/dist/components/bcm-date-picker.js +4 -2
- package/dist/components/bcm-date.d.ts +11 -0
- package/dist/components/bcm-date.js +232 -0
- package/dist/components/bcm-form-2.js +4 -1
- package/dist/components/bcm-form.js +1 -0
- package/dist/components/bcm-input-dropdown.d.ts +11 -0
- package/dist/components/bcm-input-dropdown.js +395 -0
- package/dist/components/bcm-rc-picker.d.ts +11 -0
- package/dist/components/bcm-rc-picker.js +10 -0
- package/dist/components/bcm-table.js +55128 -41
- package/dist/components/bcm-textarea.js +1 -214
- package/dist/components/bcm-time-picker.js +4 -2
- package/dist/components/bcm-toast.js +30 -10
- package/dist/components/bcm.js +29 -27
- package/dist/components/button.js +1 -1
- package/dist/components/chip.js +12 -6
- package/dist/components/colors2.js +1 -1
- package/dist/components/datetime-picker.js +5 -2
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +9 -1
- package/dist/components/index3.js +5 -1
- package/dist/components/index5.js +2569 -0
- package/dist/components/input.js +0 -2
- package/dist/components/is-load-decorator.js +2 -1
- package/dist/components/linked.js +5 -11
- package/dist/components/list.js +22 -8
- package/dist/components/raf.js +1594 -0
- package/dist/components/rc-overflow.js +32 -1557
- package/dist/components/rc-picker.js +14030 -0
- package/dist/components/string-helper.js +2 -2
- package/dist/components/textarea.js +220 -0
- package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-7002e5de.js} +16 -1
- package/dist/esm/bcm-accordion.entry.js +5 -5
- package/dist/esm/bcm-alert.entry.js +9 -9
- package/dist/esm/bcm-attendance.entry.js +5 -5
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-avatar_2.entry.js +204 -0
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-button-group.entry.js +8 -8
- package/dist/esm/bcm-button_15.entry.js +35154 -0
- package/dist/esm/bcm-card.entry.js +11 -11
- package/dist/esm/bcm-checkbox-group.entry.js +19 -19
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
- package/dist/esm/{bcm-checkbox.entry.js → bcm-checkbox_2.entry.js} +24 -14
- package/dist/esm/bcm-chip-group.entry.js +16 -17
- package/dist/esm/bcm-chip.entry.js +8 -8
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +12 -13
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/{bcm-9f50af9c.js → bcm-d45dc47d.js} +30 -28
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-drawer.entry.js +13 -14
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +10 -10
- 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 +305 -0
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-list_3.entry.js +93 -1615
- package/dist/esm/bcm-menu.entry.js +146 -0
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +13 -14
- package/dist/esm/bcm-modal-2-header.entry.js +12 -13
- package/dist/esm/bcm-modal-2.entry.js +13 -14
- package/dist/esm/bcm-modal.entry.js +9 -9
- package/dist/esm/bcm-notification.entry.js +3 -3
- 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-popconfirm-box.entry.js +11 -11
- package/dist/esm/bcm-popconfirm.entry.js +7 -7
- package/dist/esm/bcm-popover.entry.js +225 -0
- package/dist/esm/bcm-progress.entry.js +9 -9
- package/dist/esm/bcm-radio-group.entry.js +15 -16
- package/dist/esm/bcm-radio.entry.js +13 -14
- package/dist/esm/bcm-range.entry.js +8 -8
- 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 +6 -6
- package/dist/esm/bcm-skeleton.entry.js +5 -5
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +15 -16
- package/dist/esm/bcm-switch.entry.js +10 -10
- package/dist/esm/bcm-tab-group.entry.js +205 -0
- package/dist/esm/bcm-tab-item-header.entry.js +54 -0
- package/dist/esm/bcm-tab-item.entry.js +86 -0
- 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 +7649 -39
- 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-text.entry.js +45 -0
- package/dist/esm/bcm-textarea.entry.js +11 -11
- 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 +38 -19
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +6 -5
- package/dist/esm/{caption-template-34a1cb44.js → caption-template-d47f338f.js} +2 -2
- package/dist/esm/{color-helper-116755ed.js → color-helper-845ba523.js} +2 -2
- package/dist/esm/{colors-44c95e7e.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-8a0c54d6.js} +1 -1
- package/dist/esm/{generate-e008f24f.js → generate-7a1258c4.js} +2 -2
- package/dist/esm/{global-9c04f017.js → global-032592ad.js} +6 -1
- package/dist/esm/{index-ed9652af.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-348b16ad.js → index-0615c2b8.js} +3 -1
- package/dist/esm/index-3bc8c6e3.js +2569 -0
- package/dist/esm/{index-0052017c.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/{index-6310a048.js → index-e4b6a4ce.js} +1616 -26
- package/dist/esm/{input-template-0bdd4dda.js → input-template-68c29fde.js} +4 -4
- package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-8277e3b8.js} +3 -2
- package/dist/esm/{json-parse-decarator-40fc5701.js → json-parse-decarator-2945634b.js} +2 -2
- package/dist/esm/{label-template-98dafeb3.js → label-template-946d4062.js} +4 -4
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{number-helper-ddce4326.js → number-helper-fe7d1aca.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +13 -13
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-00ece356.js → package-acbf2052.js} +1 -1
- package/dist/esm/{popover-placement-78f86f15.js → popover-placement-be68c848.js} +1 -1
- package/dist/esm/{slot-template-672e941d.js → slot-template-fcc7846e.js} +2 -2
- package/dist/esm/{stepper-states-56644bc7.js → stepper-states-9ab8511e.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-b0e05041.js} +4 -4
- package/dist/esm/tooltip-helper-e5246812.js +155 -0
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-77fbe47e.js → validators-22975416.js} +6 -2
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/atoms/avatar/avatar.d.ts +0 -2
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -5
- package/dist/types/components/atoms/badge/badge.style.d.ts +174 -4
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +51 -0
- package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
- package/dist/types/components/molecules/linked/linked.d.ts +1 -3
- package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +4 -0
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
- package/dist/types/components/other/toast/toast.d.ts +2 -0
- package/dist/types/components/third-parts/rc-picker/date.d.ts +175 -0
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +47 -0
- package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
- package/dist/types/components/third-parts/table/table.d.ts +37 -0
- package/dist/types/components.d.ts +244 -3
- package/dist/types/decorators/bcm-decorator.d.ts +2 -0
- package/dist/types/decorators/event-decorator.d.ts +2 -0
- package/dist/types/decorators/index.d.ts +1 -0
- package/dist/types/global/helper/toast.d.ts +2 -0
- package/dist/types/models/bcm.d.ts +256 -236
- package/dist/types/templates/index.d.ts +2 -0
- package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
- package/dist/types/templates/toolbar-template.d.ts +13 -0
- package/helper/toast.d.ts +2 -0
- package/helper/toast.d.ts.map +1 -1
- package/helper/toast.js +1 -0
- package/package.json +9 -3
- package/dist/bromcom-ui/p-019b44bb.entry.js +0 -5
- package/dist/bromcom-ui/p-01a50abe.entry.js +0 -5
- package/dist/bromcom-ui/p-065e0f32.entry.js +0 -5
- package/dist/bromcom-ui/p-0cb5a92d.entry.js +0 -5
- package/dist/bromcom-ui/p-0f52bab9.entry.js +0 -5
- package/dist/bromcom-ui/p-15758356.entry.js +0 -5
- package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
- package/dist/bromcom-ui/p-235023cc.entry.js +0 -5
- package/dist/bromcom-ui/p-2a7bdc8b.entry.js +0 -5
- package/dist/bromcom-ui/p-32028f4f.entry.js +0 -5
- package/dist/bromcom-ui/p-3a68eca1.js +0 -5
- package/dist/bromcom-ui/p-4484ed7d.entry.js +0 -5
- package/dist/bromcom-ui/p-4f8b00bc.entry.js +0 -5
- package/dist/bromcom-ui/p-4fd78dbb.entry.js +0 -5
- package/dist/bromcom-ui/p-54c0916c.js +0 -5
- package/dist/bromcom-ui/p-5d89f348.entry.js +0 -5
- package/dist/bromcom-ui/p-61c4745d.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-663766cf.entry.js +0 -5
- package/dist/bromcom-ui/p-6d7fe687.js +0 -6
- package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
- package/dist/bromcom-ui/p-74b2d896.js +0 -5
- package/dist/bromcom-ui/p-7f529bbe.entry.js +0 -5
- package/dist/bromcom-ui/p-9fe802bc.entry.js +0 -5
- package/dist/bromcom-ui/p-a19320bb.entry.js +0 -13
- package/dist/bromcom-ui/p-a429e85b.js +0 -5
- package/dist/bromcom-ui/p-a56e8c98.js +0 -5
- package/dist/bromcom-ui/p-a8033cda.entry.js +0 -5
- package/dist/bromcom-ui/p-a9692ed3.entry.js +0 -5
- package/dist/bromcom-ui/p-b1c83bb8.entry.js +0 -5
- package/dist/bromcom-ui/p-bddbd954.entry.js +0 -5
- package/dist/bromcom-ui/p-c49d038e.js +0 -5
- package/dist/bromcom-ui/p-c799b397.entry.js +0 -5
- package/dist/bromcom-ui/p-cf0ab7f0.entry.js +0 -5
- package/dist/bromcom-ui/p-d65a1e21.js +0 -11
- package/dist/bromcom-ui/p-d7f10f7f.js +0 -5
- package/dist/bromcom-ui/p-dd422dd1.js +0 -5
- package/dist/bromcom-ui/p-e09fa0dc.entry.js +0 -5
- package/dist/bromcom-ui/p-e32d9cfc.js +0 -5
- package/dist/bromcom-ui/p-ec6b45ba.entry.js +0 -5
- package/dist/bromcom-ui/p-f645d9ae.entry.js +0 -5
- package/dist/bromcom-ui/p-fdc3e5b8.entry.js +0 -5
- package/dist/cjs/bcm-avatar.cjs.entry.js +0 -127
- package/dist/cjs/bcm-badge_15.cjs.entry.js +0 -1739
- package/dist/cjs/bcm-colorful.cjs.entry.js +0 -17227
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -181
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1449
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -209
- package/dist/cjs/bcm-form.cjs.entry.js +0 -488
- package/dist/cjs/bcm-input.cjs.entry.js +0 -371
- package/dist/cjs/bcm-label.cjs.entry.js +0 -45
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -149
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/index-b08b037a.js +0 -52
- package/dist/collection/components/other/data-table/table.css +0 -130
- package/dist/collection/components/other/data-table/table.js +0 -88
- package/dist/esm/bcm-avatar.entry.js +0 -123
- package/dist/esm/bcm-badge_15.entry.js +0 -1721
- package/dist/esm/bcm-colorful.entry.js +0 -17223
- package/dist/esm/bcm-date-picker.entry.js +0 -177
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1445
- package/dist/esm/bcm-form-2.entry.js +0 -205
- package/dist/esm/bcm-form.entry.js +0 -484
- package/dist/esm/bcm-input.entry.js +0 -367
- package/dist/esm/bcm-label.entry.js +0 -41
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -145
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/index-962dec74.js +0 -50
- package/dist/types/components/other/data-table/table.d.ts +0 -8
|
@@ -0,0 +1,205 @@
|
|
|
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-845ba523.js';
|
|
7
|
+
import './validators-22975416.js';
|
|
8
|
+
import { G as Generate } from './generate-7a1258c4.js';
|
|
9
|
+
import './number-helper-fe7d1aca.js';
|
|
10
|
+
import './string-helper-b0e05041.js';
|
|
11
|
+
import './element-dragger-89bb52fd.js';
|
|
12
|
+
import { d as delay } from './utils-57652744.js';
|
|
13
|
+
import { a as Bcm } from './bcm-d45dc47d.js';
|
|
14
|
+
import './colors-1d7854ea.js';
|
|
15
|
+
import './colors-ebea297f.js';
|
|
16
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
17
|
+
import './package-acbf2052.js';
|
|
18
|
+
|
|
19
|
+
const BcmTabGroup = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
registerInstance(this, hostRef);
|
|
22
|
+
this.tabChange = createEvent(this, "bcm-tab-change", 7);
|
|
23
|
+
this._id = Generate.UID();
|
|
24
|
+
this.active = "1";
|
|
25
|
+
this.color = "blue";
|
|
26
|
+
this.size = Bcm.Size.medium;
|
|
27
|
+
}
|
|
28
|
+
get tabItems() {
|
|
29
|
+
return this.el.querySelectorAll("bcm-tab-item");
|
|
30
|
+
}
|
|
31
|
+
get tabItemHeaders() {
|
|
32
|
+
return this.el.querySelectorAll("bcm-tab-item-header");
|
|
33
|
+
}
|
|
34
|
+
setTabAttributes() {
|
|
35
|
+
this.tabItems.forEach((tab, index) => {
|
|
36
|
+
const itemActive = tab.hasAttribute("active") ? true : false;
|
|
37
|
+
const itemDisabled = tab.hasAttribute("disabled") ? true : false;
|
|
38
|
+
const itemIndex = index + 1;
|
|
39
|
+
tab.setAttribute("index", `${itemIndex}`);
|
|
40
|
+
tab.setAttribute("size", this.size);
|
|
41
|
+
tab.setAttribute("color", this.color);
|
|
42
|
+
tab.removeAttribute("active");
|
|
43
|
+
tab.removeAttribute("disabled");
|
|
44
|
+
if (itemActive) {
|
|
45
|
+
tab.setAttribute("active", "");
|
|
46
|
+
this.active = itemIndex.toString();
|
|
47
|
+
}
|
|
48
|
+
if (itemDisabled) {
|
|
49
|
+
tab.setAttribute("disabled", "");
|
|
50
|
+
}
|
|
51
|
+
// const headerElement = tab.querySelector("bcm-tab-item-header");
|
|
52
|
+
// if (headerElement) {
|
|
53
|
+
// this.setHeaderTabAttributes(headerElement, tab);
|
|
54
|
+
// }
|
|
55
|
+
});
|
|
56
|
+
const isHasActiveTab = Array.from(this.tabItems).some((tab) => tab.hasAttribute("active"));
|
|
57
|
+
if (!isHasActiveTab) {
|
|
58
|
+
this.tabItems[0].setAttribute("active", "");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
componentWillLoad() {
|
|
62
|
+
this.setTabAttributes();
|
|
63
|
+
}
|
|
64
|
+
handleTabClick(index) {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
if (index) {
|
|
67
|
+
this.active = index.toString();
|
|
68
|
+
}
|
|
69
|
+
if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
70
|
+
this.tabItems.forEach(tab => {
|
|
71
|
+
tab.removeAttribute("active");
|
|
72
|
+
tab.setAttribute("size", this.size);
|
|
73
|
+
tab.setAttribute("color", this.color);
|
|
74
|
+
if (tab.getAttribute("index") == this.active) {
|
|
75
|
+
tab.setAttribute("active", "");
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if ((_b = this.tabItemHeaders) === null || _b === void 0 ? void 0 : _b.length) {
|
|
80
|
+
this.tabItemHeaders.forEach(tabHeader => {
|
|
81
|
+
tabHeader.removeAttribute("active");
|
|
82
|
+
tabHeader.setAttribute("size", this.size);
|
|
83
|
+
tabHeader.setAttribute("color", this.color);
|
|
84
|
+
if (tabHeader.getAttribute("index") == this.active) {
|
|
85
|
+
tabHeader.setAttribute("active", "");
|
|
86
|
+
// tabHeader.scrollIntoView({
|
|
87
|
+
// behavior: "smooth",
|
|
88
|
+
// block: "start",
|
|
89
|
+
// inline: "center",
|
|
90
|
+
// });
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
this.tabChange.emit(this.active);
|
|
95
|
+
}
|
|
96
|
+
componentDidRender() {
|
|
97
|
+
this.inkBarControl();
|
|
98
|
+
this.handleTabClick();
|
|
99
|
+
}
|
|
100
|
+
componentDidLoad() {
|
|
101
|
+
this.inkBarControl();
|
|
102
|
+
this.observeTabItem();
|
|
103
|
+
}
|
|
104
|
+
async setActive(index) {
|
|
105
|
+
if (index > 0 && index <= this.tabItems.length && index != +this.active) {
|
|
106
|
+
this.handleTabClick(index);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
async refresh() {
|
|
110
|
+
await delay(100);
|
|
111
|
+
forceUpdate(this);
|
|
112
|
+
}
|
|
113
|
+
inkBarControl() {
|
|
114
|
+
var _a;
|
|
115
|
+
const inkBar = this.el.querySelector("#ink-bar");
|
|
116
|
+
if (!inkBar || !((_a = this.tabItemHeaders) === null || _a === void 0 ? void 0 : _a.length))
|
|
117
|
+
return;
|
|
118
|
+
for (let i = 0; i < this.tabItemHeaders.length; i++) {
|
|
119
|
+
const tab = this.tabItemHeaders[i];
|
|
120
|
+
const tabIndex = tab.getAttribute("index");
|
|
121
|
+
if (tabIndex === this.active) {
|
|
122
|
+
inkBar.style.width = `${tab.offsetWidth}px`;
|
|
123
|
+
// inkBar.style.top = `${tab.offsetHeight}px`;
|
|
124
|
+
inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
activeChanged(newVal, _oldVal) {
|
|
129
|
+
var _a;
|
|
130
|
+
if (!((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length))
|
|
131
|
+
return;
|
|
132
|
+
const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.getAttribute("index") == newVal);
|
|
133
|
+
if (!isHasActiveTab) {
|
|
134
|
+
this.active = "1";
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
observeTabItem() {
|
|
138
|
+
const callback = (mutationsList, _observer) => {
|
|
139
|
+
for (const mutation of mutationsList) {
|
|
140
|
+
if (mutation.type === "childList") {
|
|
141
|
+
// for (const node of mutation.addedNodes) {
|
|
142
|
+
// if (node.nodeName === "BCM-TAB-ITEM") {
|
|
143
|
+
// // Do something when a bcm-tab-item is added
|
|
144
|
+
// }
|
|
145
|
+
// }
|
|
146
|
+
for (const node of mutation.removedNodes) {
|
|
147
|
+
if (node.nodeName === "BCM-TAB-ITEM") {
|
|
148
|
+
// Do something when a bcm-tab-item is removed
|
|
149
|
+
// console.log("A bcm-tab-item was removed.", node);
|
|
150
|
+
if (node === null || node === void 0 ? void 0 : node.active) {
|
|
151
|
+
this.active = "1";
|
|
152
|
+
}
|
|
153
|
+
this.tabProcess();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
this.observer = new MutationObserver(callback);
|
|
160
|
+
this.observer.observe(this.el, { childList: true });
|
|
161
|
+
}
|
|
162
|
+
tabProcess() {
|
|
163
|
+
this.updateTabHeaders();
|
|
164
|
+
this.regenerateIndex();
|
|
165
|
+
this.refresh();
|
|
166
|
+
this.inkBarControl();
|
|
167
|
+
}
|
|
168
|
+
updateTabHeaders() {
|
|
169
|
+
const tabIds = Array.from(this.tabItems).map(tab => tab.getAttribute("id"));
|
|
170
|
+
const tabHeaderElements = Array.from(this.el.querySelector("#tab-header").querySelectorAll("bcm-tab-item-header"));
|
|
171
|
+
if (tabIds.length !== tabHeaderElements.length) {
|
|
172
|
+
tabHeaderElements.forEach(tabHeader => {
|
|
173
|
+
const tabId = tabHeader.getAttribute("tab-id");
|
|
174
|
+
if (!tabIds.includes(tabId)) {
|
|
175
|
+
tabHeader.remove();
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
regenerateIndex() {
|
|
181
|
+
this.tabItems.forEach((tab, index) => {
|
|
182
|
+
const itemIndex = index + 1;
|
|
183
|
+
tab.setAttribute("index", `${itemIndex}`);
|
|
184
|
+
const headerElement = this.el.querySelector(`bcm-tab-item-header[tab-id="${tab.getAttribute("id")}"]`);
|
|
185
|
+
if (headerElement) {
|
|
186
|
+
headerElement.setAttribute("index", `${itemIndex}`);
|
|
187
|
+
headerElement.style.order = `${itemIndex}`;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
render() {
|
|
192
|
+
const { color } = this;
|
|
193
|
+
const dc = Generate.getTwColor({
|
|
194
|
+
color: color,
|
|
195
|
+
tones: [500]
|
|
196
|
+
});
|
|
197
|
+
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)));
|
|
198
|
+
}
|
|
199
|
+
get el() { return getElement(this); }
|
|
200
|
+
static get watchers() { return {
|
|
201
|
+
"active": ["activeChanged"]
|
|
202
|
+
}; }
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export { BcmTabGroup as bcm_tab_group };
|
|
@@ -0,0 +1,54 @@
|
|
|
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-845ba523.js';
|
|
7
|
+
import './validators-22975416.js';
|
|
8
|
+
import { G as Generate } from './generate-7a1258c4.js';
|
|
9
|
+
import './number-helper-fe7d1aca.js';
|
|
10
|
+
import './string-helper-b0e05041.js';
|
|
11
|
+
import './element-dragger-89bb52fd.js';
|
|
12
|
+
import { a as Bcm } from './bcm-d45dc47d.js';
|
|
13
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
14
|
+
import './colors-1d7854ea.js';
|
|
15
|
+
import './utils-57652744.js';
|
|
16
|
+
import './colors-ebea297f.js';
|
|
17
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
18
|
+
import './package-acbf2052.js';
|
|
19
|
+
|
|
20
|
+
const BcmTabItemHeader = 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
|
+
this.color = "blue";
|
|
28
|
+
this.size = Bcm.Size.medium;
|
|
29
|
+
}
|
|
30
|
+
handleClick() {
|
|
31
|
+
var _a;
|
|
32
|
+
if (!this.disabled) {
|
|
33
|
+
(_a = Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.setActive(this.index);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
const { color, size, active, disabled } = this;
|
|
38
|
+
const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
|
|
39
|
+
const dc = Generate.getTwColor({
|
|
40
|
+
color: color,
|
|
41
|
+
tones: [500, 600, 700, 800]
|
|
42
|
+
});
|
|
43
|
+
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`, {
|
|
44
|
+
"tw-text-2 tw-py-1 tw-gap-2": size === Bcm.Size.small,
|
|
45
|
+
"tw-text-3 tw-py-2 tw-gap-3": size === Bcm.Size.medium,
|
|
46
|
+
"tw-text-4 tw-py-3 tw-gap-4": size === Bcm.Size.large,
|
|
47
|
+
}, disabled ? disabledClass : "tw-cursor-pointer", active
|
|
48
|
+
? `tw-text-default-500 enabled:hover:tw-text-default-600 enabled:active:tw-text-default-700 enabled:focus-visible:tw-text-default-800`
|
|
49
|
+
: "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 }));
|
|
50
|
+
}
|
|
51
|
+
get el() { return getElement(this); }
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { BcmTabItemHeader as bcm_tab_item_header };
|
|
@@ -0,0 +1,86 @@
|
|
|
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-845ba523.js';
|
|
7
|
+
import './validators-22975416.js';
|
|
8
|
+
import { G as Generate } from './generate-7a1258c4.js';
|
|
9
|
+
import './number-helper-fe7d1aca.js';
|
|
10
|
+
import './string-helper-b0e05041.js';
|
|
11
|
+
import './element-dragger-89bb52fd.js';
|
|
12
|
+
import './bcm-d45dc47d.js';
|
|
13
|
+
import './colors-1d7854ea.js';
|
|
14
|
+
import './utils-57652744.js';
|
|
15
|
+
import './colors-ebea297f.js';
|
|
16
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
17
|
+
import './package-acbf2052.js';
|
|
18
|
+
|
|
19
|
+
const BcmTabItem = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
registerInstance(this, hostRef);
|
|
22
|
+
this._id = Generate.UID();
|
|
23
|
+
this.active = false;
|
|
24
|
+
this.disabled = false;
|
|
25
|
+
this.index = undefined;
|
|
26
|
+
}
|
|
27
|
+
componentWillLoad() {
|
|
28
|
+
this.indexControl();
|
|
29
|
+
}
|
|
30
|
+
componentDidRender() {
|
|
31
|
+
this.headerMove();
|
|
32
|
+
}
|
|
33
|
+
getHeaderItem() {
|
|
34
|
+
const headerItem = this.el.querySelector("bcm-tab-item-header");
|
|
35
|
+
if (headerItem) {
|
|
36
|
+
headerItem.setAttribute("index", `${this.index}`);
|
|
37
|
+
headerItem.setAttribute("active", `${this.active}`);
|
|
38
|
+
headerItem.setAttribute("disabled", `${this.disabled}`);
|
|
39
|
+
headerItem.setAttribute("tab-id", `${this._id}`);
|
|
40
|
+
headerItem.style.order = `${this.index}`;
|
|
41
|
+
}
|
|
42
|
+
return headerItem;
|
|
43
|
+
}
|
|
44
|
+
getParentTabGroup() {
|
|
45
|
+
return Generate.findParentElement(this.el, "bcm-tab-group");
|
|
46
|
+
}
|
|
47
|
+
getFindHeaderItem() {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
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}"]`);
|
|
50
|
+
}
|
|
51
|
+
headerMove() {
|
|
52
|
+
var _a, _b, _c, _d;
|
|
53
|
+
if (this.getHeaderItem()) {
|
|
54
|
+
(_a = this.getFindHeaderItem()) === null || _a === void 0 ? void 0 : _a.remove();
|
|
55
|
+
(_c = (_b = this.getParentTabGroup()) === null || _b === void 0 ? void 0 : _b.querySelector("#tab-header")) === null || _c === void 0 ? void 0 : _c.appendChild(this.getHeaderItem());
|
|
56
|
+
(_d = this.el.parentElement) === null || _d === void 0 ? void 0 : _d.refresh();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
indexControl() {
|
|
60
|
+
var _a;
|
|
61
|
+
if (!this.index) {
|
|
62
|
+
(_a = Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.querySelectorAll("bcm-tab-item").forEach((item, index) => {
|
|
63
|
+
if (item === this.el) {
|
|
64
|
+
item.setAttribute("index", `${index + 1}`);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
componentDidLoad() {
|
|
70
|
+
const observer = new MutationObserver(() => {
|
|
71
|
+
this.headerMove();
|
|
72
|
+
});
|
|
73
|
+
observer.observe(this.el, { childList: true, subtree: true });
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return (h(Host, { id: this._id, role: "tabpanel", "aria-labelledby": `tab-${this._id}`, "aria-hidden": `${!this.active}`, class: {
|
|
77
|
+
"tw-block": this.active,
|
|
78
|
+
"tw-hidden": !this.active,
|
|
79
|
+
"tw-opacity-50": this.disabled,
|
|
80
|
+
"tw-w-full": true,
|
|
81
|
+
} }, h("slot", null)));
|
|
82
|
+
}
|
|
83
|
+
get el() { return getElement(this); }
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export { BcmTabItem as bcm_tab_item };
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
8
8
|
|
|
9
9
|
const tabPaneCss = "@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{width:100%;display:block}:host(.hidden){display:none}:host(:not(.active)){height:0 !important;overflow:hidden;padding:0 !important}:host(.active){display:block}";
|
|
10
10
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
6
|
import { T as TypeProps } from './types-b211a5eb.js';
|
|
7
|
-
import { c as classnames } from './index-
|
|
8
|
-
import './_commonjsHelpers-
|
|
7
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
8
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
9
9
|
|
|
10
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
11
|
|