bromcom-ui 2.9.0-rc.2 → 2.9.0-rc.20
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 +19 -5
- package/dist/bromcom-ui/global/helper/toast.ts +2 -0
- package/dist/bromcom-ui/{p-4eb98beb.entry.js → p-027fcca4.entry.js} +1 -1
- package/dist/bromcom-ui/p-03a43724.entry.js +5 -0
- package/dist/bromcom-ui/p-05b33e0a.entry.js +5 -0
- package/dist/bromcom-ui/p-08c75801.js +5 -0
- package/dist/bromcom-ui/p-1289ca7c.entry.js +5 -0
- package/dist/bromcom-ui/{p-4cd8a7c8.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/p-15ac2f9b.entry.js +5 -0
- package/dist/bromcom-ui/p-15f4b17b.js +5 -0
- package/dist/bromcom-ui/p-170cf07d.js +6 -0
- package/dist/bromcom-ui/p-1bc0cea5.entry.js +5 -0
- package/dist/bromcom-ui/p-1c344eb6.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-1f431229.entry.js +5 -0
- package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ee8aa496.js → p-23b91029.js} +1 -1
- package/dist/bromcom-ui/p-24ae2291.entry.js +5 -0
- package/dist/bromcom-ui/p-2621356f.entry.js +5 -0
- package/dist/bromcom-ui/{p-68abefd2.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-dbc4c30c.js → p-2c5a0863.js} +1 -1
- package/dist/bromcom-ui/{p-9e58b42a.js → p-2e003abd.js} +1 -1
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/p-42c4f7ba.entry.js +5 -0
- package/dist/bromcom-ui/{p-30788121.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/p-4605fc71.entry.js +5 -0
- package/dist/bromcom-ui/p-4b963ea9.entry.js +5 -0
- package/dist/bromcom-ui/p-4e7dc8c5.entry.js +5 -0
- package/dist/bromcom-ui/p-4fc4adf7.entry.js +5 -0
- package/dist/bromcom-ui/p-50623c4a.entry.js +5 -0
- package/dist/bromcom-ui/p-562262b5.entry.js +5 -0
- 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-03eaa3e0.entry.js → p-5afb94fb.entry.js} +1 -1
- package/dist/bromcom-ui/p-5b0c89b9.js +5 -0
- package/dist/bromcom-ui/p-5b5aa96d.js +5 -0
- package/dist/bromcom-ui/{p-795bdb81.entry.js → p-5c1ee978.entry.js} +1 -1
- package/dist/bromcom-ui/p-5ea466da.entry.js +5 -0
- package/dist/bromcom-ui/p-6037f210.entry.js +5 -0
- package/dist/bromcom-ui/p-61b74ccf.entry.js +5 -0
- package/dist/bromcom-ui/p-61db1f1f.js +5 -0
- package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/p-62a4589f.entry.js +5 -0
- package/dist/bromcom-ui/{p-f81dfa79.entry.js → p-62c15599.entry.js} +1 -1
- package/dist/bromcom-ui/{p-476474f5.js → p-641cd771.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/p-65a4b1e3.js +5 -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-4aa0e6b1.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/p-72372580.entry.js +5 -0
- package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
- 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-7ceea271.entry.js +5 -0
- package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/p-7d700834.entry.js +5 -0
- package/dist/bromcom-ui/{p-d832cf50.entry.js → p-80ee3d97.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c3f145fe.entry.js → p-83d1fd59.entry.js} +1 -1
- package/dist/bromcom-ui/p-8520b17f.entry.js +5 -0
- package/dist/bromcom-ui/{p-1bd9bd4d.entry.js → p-856d05cb.entry.js} +1 -1
- package/dist/bromcom-ui/p-85a95c62.entry.js +5 -0
- package/dist/bromcom-ui/p-85eedabc.js +5 -0
- package/dist/bromcom-ui/p-89779d2b.entry.js +5 -0
- package/dist/bromcom-ui/{p-932f2502.entry.js → p-9473c602.entry.js} +1 -1
- package/dist/bromcom-ui/p-9850cbce.js +5 -0
- package/dist/bromcom-ui/{p-1647559e.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/p-9c43f91b.entry.js +5 -0
- package/dist/bromcom-ui/{p-b60bcecf.js → p-a1b1750c.js} +1 -1
- 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-ac77ad0b.entry.js +5 -0
- package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
- package/dist/bromcom-ui/p-b1f32d16.entry.js +5 -0
- package/dist/bromcom-ui/p-b2cabcb8.entry.js +7 -0
- package/dist/bromcom-ui/p-b81e8f91.js +5 -0
- package/dist/bromcom-ui/{p-f4538abb.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/p-be19827b.entry.js +5 -0
- package/dist/bromcom-ui/{p-c9d687bb.entry.js → p-be1a3642.entry.js} +1 -1
- package/dist/bromcom-ui/p-bfb1129e.entry.js +5 -0
- package/dist/bromcom-ui/p-c09188a5.entry.js +5 -0
- package/dist/bromcom-ui/{p-dc9466d6.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-c5647ba3.entry.js +5 -0
- package/dist/bromcom-ui/p-ca8f539d.entry.js +5 -0
- package/dist/bromcom-ui/p-ccf0872d.js +5 -0
- package/dist/bromcom-ui/{p-8d0ca8c2.js → p-d153c7fc.js} +1 -1
- package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/p-d8cca259.entry.js +5 -0
- package/dist/bromcom-ui/p-dadc4391.entry.js +5 -0
- package/dist/bromcom-ui/p-daf17207.entry.js +5 -0
- package/dist/bromcom-ui/{p-5648b456.entry.js → p-e688b044.entry.js} +1 -1
- package/dist/bromcom-ui/p-eacf5375.entry.js +5 -0
- package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-edeb7592.js +5 -0
- package/dist/bromcom-ui/p-ee5cd93c.entry.js +5 -0
- package/dist/bromcom-ui/p-f47f9452.entry.js +5 -0
- package/dist/bromcom-ui/{p-84e8e5ee.entry.js → p-f53de6bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-f711588b.js +5 -0
- package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/bromcom-ui/{assets/icon → 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 -4
- package/dist/cjs/bcm-alert.cjs.entry.js +9 -8
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -4
- 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 -5
- package/dist/cjs/bcm-button-group.cjs.entry.js +11 -10
- package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-button_15.cjs.entry.js} +17123 -5494
- package/dist/cjs/bcm-card.cjs.entry.js +10 -9
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +15 -14
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -9
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +18 -17
- package/dist/cjs/bcm-chip-group.cjs.entry.js +128 -0
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +6 -5
- package/dist/cjs/bcm-color-input.cjs.entry.js +10 -10
- 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 -4
- package/dist/cjs/bcm-drawer.cjs.entry.js +13 -13
- package/dist/cjs/bcm-dropdown.cjs.entry.js +12 -11
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -8
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -5
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
- package/dist/cjs/bcm-item.cjs.entry.js +9 -8
- package/dist/cjs/bcm-items.cjs.entry.js +8 -7
- package/dist/cjs/bcm-link.cjs.entry.js +6 -6
- package/dist/cjs/bcm-list_3.cjs.entry.js +2504 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +15 -14
- package/dist/cjs/bcm-message.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -11
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -10
- package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -12
- package/dist/cjs/bcm-modal.cjs.entry.js +11 -10
- 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 -9
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -8
- package/dist/cjs/bcm-popover.cjs.entry.js +27 -23
- package/dist/cjs/bcm-progress.cjs.entry.js +9 -8
- package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -17
- package/dist/cjs/bcm-radio.cjs.entry.js +18 -18
- package/dist/cjs/bcm-range.cjs.entry.js +10 -9
- 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 -4
- package/dist/cjs/bcm-step.cjs.entry.js +8 -7
- package/dist/cjs/bcm-stepper.cjs.entry.js +15 -15
- package/dist/cjs/bcm-switch.cjs.entry.js +15 -14
- package/dist/cjs/bcm-tab-group.cjs.entry.js +16 -12
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +23 -38
- package/dist/cjs/bcm-tab-item.cjs.entry.js +10 -10
- 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 -18
- package/dist/cjs/bcm-text.cjs.entry.js +8 -8
- package/dist/cjs/bcm-textarea.cjs.entry.js +13 -12
- 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 -18
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +5 -3
- package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
- package/dist/cjs/{color-helper-d6d2028b.js → color-helper-c3a819ea.js} +28 -2
- 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-7a3874e6.js → generate-e4ab2b4f.js} +57 -8
- package/dist/cjs/global-daef09f5.js +27 -0
- package/dist/cjs/index-5279dea2.js +2571 -0
- package/dist/cjs/index-7eed931f.js +2146 -0
- 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-e084bbd6.js → input-template-df664530.js} +8 -8
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-15036f37.js} +3 -2
- package/dist/cjs/{json-parse-decarator-4109072c.js → json-parse-decarator-6fc25e8b.js} +2 -2
- package/dist/cjs/{label-template-4d5f99a5.js → label-template-80235581.js} +5 -5
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{number-helper-74aaf353.js → number-helper-503ec94b.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -10
- package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -8
- package/dist/cjs/package-f2f16e36.js +9 -0
- 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-200cd290.js → stepper-states-7cd499d8.js} +3 -3
- package/dist/cjs/{string-helper-d681e5c7.js → string-helper-fda7cbba.js} +5 -5
- package/dist/cjs/{tooltip-helper-78dc5455.js → tooltip-helper-84c3e624.js} +22 -15
- package/dist/cjs/{validators-bb44ca0c.js → validators-9f203109.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 +94 -81
- package/dist/collection/components/atoms/avatar/avatar.style.js +42 -0
- package/dist/collection/components/atoms/badge/badge.js +30 -90
- package/dist/collection/components/atoms/badge/badge.style.js +51 -0
- 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/icon.js +4 -3
- package/dist/collection/{assets/icon → 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 +4 -6
- 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/items/items.js +1 -1
- package/dist/collection/components/molecules/linked/linked.js +17 -29
- package/dist/collection/components/molecules/menu/menu.js +1 -0
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
- package/dist/collection/components/molecules/tooltip/tooltip.js +2 -2
- 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 +36 -2
- 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/typography/typography.js +1 -1
- 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 +19 -5
- package/dist/collection/global/helper/toast.js +1 -0
- package/dist/collection/global/helper/toast.ts +2 -0
- package/dist/collection/helper/color-helper.js +27 -1
- package/dist/collection/helper/generate.js +54 -4
- package/dist/collection/helper/popover-helper.js +13 -9
- package/dist/collection/helper/string-helper.js +2 -2
- package/dist/collection/helper/tooltip-helper.js +12 -4
- 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 +93 -52
- package/dist/components/badge.js +77 -45
- 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-items.js +1 -1
- package/dist/components/bcm-popover.js +14 -10
- package/dist/components/bcm-rc-picker.d.ts +11 -0
- package/dist/components/bcm-rc-picker.js +10 -0
- package/dist/components/bcm-tab-group.js +5 -1
- package/dist/components/bcm-tab-item-header.js +11 -26
- 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/color-helper.js +27 -1
- package/dist/components/colors2.js +1 -1
- package/dist/components/datetime-picker.js +20 -3
- package/dist/components/generate.js +57 -7
- package/dist/components/icon.js +4 -3
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +17 -3
- package/dist/components/index3.js +5 -1
- package/dist/components/index5.js +2569 -0
- package/dist/components/input.js +4 -6
- package/dist/components/is-load-decorator.js +2 -1
- package/dist/components/linked.js +17 -11
- package/dist/components/list.js +22 -8
- package/dist/components/menu.js +1 -0
- 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/components/tooltip-helper.js +12 -4
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.js +1 -1
- package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-7002e5de.js} +16 -1
- package/dist/esm/bcm-accordion.entry.js +5 -4
- package/dist/esm/bcm-alert.entry.js +9 -8
- package/dist/esm/bcm-attendance.entry.js +5 -4
- 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 -5
- package/dist/esm/bcm-button-group.entry.js +8 -7
- package/dist/esm/{bcm-avatar_15.entry.js → bcm-button_15.entry.js} +17114 -5485
- package/dist/esm/bcm-card.entry.js +10 -9
- package/dist/esm/bcm-checkbox-group.entry.js +12 -11
- package/dist/esm/bcm-checkbox-lite_9.entry.js +7 -6
- package/dist/esm/bcm-checkbox_2.entry.js +13 -12
- package/dist/esm/bcm-chip-group.entry.js +124 -0
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse-group.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +6 -5
- package/dist/esm/bcm-color-input.entry.js +10 -10
- package/dist/esm/bcm-colorpicker.entry.js +3 -3
- 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 -4
- package/dist/esm/bcm-drawer.entry.js +11 -11
- package/dist/esm/bcm-dropdown.entry.js +9 -8
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +9 -8
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +6 -5
- package/dist/esm/bcm-input-dropdown.entry.js +305 -0
- package/dist/esm/bcm-item.entry.js +8 -7
- package/dist/esm/bcm-items.entry.js +8 -7
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-list_3.entry.js +2498 -0
- package/dist/esm/bcm-menu.entry.js +15 -14
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
- package/dist/esm/bcm-modal-2-header.entry.js +10 -10
- package/dist/esm/bcm-modal-2.entry.js +11 -11
- package/dist/esm/bcm-modal.entry.js +9 -8
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-old-tag_2.entry.js +3 -3
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +10 -9
- package/dist/esm/bcm-popconfirm.entry.js +7 -6
- package/dist/esm/bcm-popover.entry.js +25 -21
- package/dist/esm/bcm-progress.entry.js +8 -7
- package/dist/esm/bcm-radio-group.entry.js +13 -13
- package/dist/esm/bcm-radio.entry.js +11 -11
- package/dist/esm/bcm-range.entry.js +7 -6
- 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 +5 -4
- package/dist/esm/bcm-step.entry.js +8 -7
- package/dist/esm/bcm-stepper.entry.js +13 -13
- package/dist/esm/bcm-switch.entry.js +9 -8
- package/dist/esm/bcm-tab-group.entry.js +15 -11
- package/dist/esm/bcm-tab-item-header.entry.js +22 -37
- package/dist/esm/bcm-tab-item.entry.js +10 -10
- 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 +3 -3
- package/dist/esm/bcm-tabs.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +8 -7
- package/dist/esm/bcm-text.entry.js +8 -8
- package/dist/esm/bcm-textarea.entry.js +10 -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 +37 -17
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +6 -4
- package/dist/esm/{caption-template-34a1cb44.js → caption-template-d47f338f.js} +2 -2
- package/dist/esm/{color-helper-e8ce23d7.js → color-helper-845ba523.js} +28 -2
- package/dist/esm/{colors-44c95e7e.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-8a0c54d6.js} +1 -1
- package/dist/esm/{generate-1d92d93f.js → generate-57891049.js} +56 -7
- package/dist/esm/global-8776af02.js +25 -0
- 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-e4b6a4ce.js +2127 -0
- package/dist/esm/{input-template-56856d9f.js → input-template-4fa1fd77.js} +4 -4
- package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-8277e3b8.js} +3 -2
- package/dist/esm/{json-parse-decarator-e7df9b9c.js → json-parse-decarator-7b5467e6.js} +2 -2
- package/dist/esm/{label-template-98dafeb3.js → label-template-946d4062.js} +4 -4
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{number-helper-81eade81.js → number-helper-be8c3021.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -10
- package/dist/esm/old-bcm-popover.entry.js +7 -6
- package/dist/esm/package-9a6c49c8.js +7 -0
- 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-0f148601.js → stepper-states-a8cd98ea.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-b0e05041.js} +4 -4
- package/dist/esm/{tooltip-helper-4ca9442e.js → tooltip-helper-4a1a3abe.js} +19 -12
- package/dist/esm/{validators-7e3c0c33.js → validators-37ce5ff0.js} +6 -2
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/atoms/avatar/avatar.d.ts +6 -10
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -0
- package/dist/types/components/atoms/badge/badge.d.ts +3 -7
- package/dist/types/components/atoms/badge/badge.style.d.ts +174 -0
- 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 +2 -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 +2 -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 +255 -16
- 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/helper/color-helper.d.ts +22 -2
- package/dist/types/helper/generate.d.ts +21 -1
- package/dist/types/helper/popover-helper.d.ts +0 -5
- package/dist/types/helper/tooltip-helper.d.ts +0 -1
- 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 +15 -6
- package/dist/bromcom-ui/p-013cab7e.entry.js +0 -5
- package/dist/bromcom-ui/p-086b7209.entry.js +0 -5
- package/dist/bromcom-ui/p-09fb72c8.entry.js +0 -19
- package/dist/bromcom-ui/p-10c75cb9.entry.js +0 -5
- package/dist/bromcom-ui/p-1246d793.entry.js +0 -5
- package/dist/bromcom-ui/p-1992f372.entry.js +0 -5
- package/dist/bromcom-ui/p-21fbc7e9.entry.js +0 -5
- package/dist/bromcom-ui/p-254c9a65.entry.js +0 -5
- package/dist/bromcom-ui/p-2640e867.entry.js +0 -5
- package/dist/bromcom-ui/p-2c95ea4e.entry.js +0 -5
- package/dist/bromcom-ui/p-2d90806c.entry.js +0 -5
- package/dist/bromcom-ui/p-2fc1a879.js +0 -5
- package/dist/bromcom-ui/p-30a3320f.entry.js +0 -5
- package/dist/bromcom-ui/p-3be85482.entry.js +0 -5
- package/dist/bromcom-ui/p-4d80d43d.entry.js +0 -5
- package/dist/bromcom-ui/p-4f8b00bc.entry.js +0 -5
- package/dist/bromcom-ui/p-4fb382d4.entry.js +0 -5
- package/dist/bromcom-ui/p-4ffd862d.entry.js +0 -5
- package/dist/bromcom-ui/p-54c0916c.js +0 -5
- package/dist/bromcom-ui/p-5a666fa2.entry.js +0 -5
- package/dist/bromcom-ui/p-60d506ec.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-6ae7abc5.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-75985eee.entry.js +0 -5
- package/dist/bromcom-ui/p-772a214f.js +0 -5
- package/dist/bromcom-ui/p-7d9ac287.entry.js +0 -5
- package/dist/bromcom-ui/p-843905c8.js +0 -5
- package/dist/bromcom-ui/p-8b85e07e.entry.js +0 -5
- package/dist/bromcom-ui/p-8c9d109c.entry.js +0 -5
- package/dist/bromcom-ui/p-8df71f89.js +0 -5
- package/dist/bromcom-ui/p-92030c09.entry.js +0 -5
- package/dist/bromcom-ui/p-a24f0a35.js +0 -5
- package/dist/bromcom-ui/p-a429e85b.js +0 -5
- package/dist/bromcom-ui/p-a56e8c98.js +0 -5
- package/dist/bromcom-ui/p-a9ae49af.entry.js +0 -5
- package/dist/bromcom-ui/p-af79c33b.entry.js +0 -5
- package/dist/bromcom-ui/p-b838f085.entry.js +0 -5
- package/dist/bromcom-ui/p-bca6437e.entry.js +0 -5
- package/dist/bromcom-ui/p-c43622d4.entry.js +0 -5
- package/dist/bromcom-ui/p-c49d038e.js +0 -5
- package/dist/bromcom-ui/p-c773080c.entry.js +0 -5
- package/dist/bromcom-ui/p-cacd60e0.entry.js +0 -5
- package/dist/bromcom-ui/p-d50efcac.entry.js +0 -5
- package/dist/bromcom-ui/p-d65a1e21.js +0 -11
- package/dist/bromcom-ui/p-d6953024.js +0 -5
- package/dist/bromcom-ui/p-d9211598.entry.js +0 -5
- package/dist/bromcom-ui/p-dc0cd6dc.entry.js +0 -5
- package/dist/bromcom-ui/p-e4045493.entry.js +0 -5
- package/dist/bromcom-ui/p-e8578e1b.entry.js +0 -5
- package/dist/bromcom-ui/p-f316a3df.entry.js +0 -5
- package/dist/bromcom-ui/p-f4defa95.entry.js +0 -5
- package/dist/bromcom-ui/p-fc0e0762.entry.js +0 -5
- package/dist/bromcom-ui/p-ff4fb57e.entry.js +0 -5
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -180
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1434
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -208
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -148
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/global-b0d21446.js +0 -15
- package/dist/collection/components/atoms/avatar/avatar.css +0 -198
- package/dist/collection/components/atoms/badge/badge.css +0 -231
- 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-date-picker.entry.js +0 -176
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1430
- package/dist/esm/bcm-form-2.entry.js +0 -204
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -144
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/global-4fad925b.js +0 -13
- package/dist/types/components/other/data-table/table.d.ts +0 -8
|
@@ -81,6 +81,7 @@ export var Bcm;
|
|
|
81
81
|
Kind["solid"] = "solid";
|
|
82
82
|
Kind["ghost"] = "ghost";
|
|
83
83
|
Kind["link"] = "link";
|
|
84
|
+
Kind["ghost-link"] = "ghost-link";
|
|
84
85
|
})(Kind = Bcm.Kind || (Bcm.Kind = {}));
|
|
85
86
|
let ButtonType;
|
|
86
87
|
(function (ButtonType) {
|
|
@@ -395,33 +396,33 @@ export var Bcm;
|
|
|
395
396
|
KeyCode[KeyCode["a"] = 65] = "a";
|
|
396
397
|
})(KeyCode = Bcm.KeyCode || (Bcm.KeyCode = {}));
|
|
397
398
|
Bcm.FormErrorMessages = {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
399
|
+
"email": "Please enter a valid email address",
|
|
400
|
+
"password": "Please enter a valid password",
|
|
401
|
+
"url": "Please enter a valid URL",
|
|
402
|
+
"phone": "Please enter a valid phone number",
|
|
403
|
+
"search": "Please enter a valid search term",
|
|
404
|
+
"number": "Please enter a valid number",
|
|
405
|
+
"text": "Please enter a valid text",
|
|
406
|
+
"required": "This field is required",
|
|
407
|
+
"minlength": "This field must be at least {0} characters long",
|
|
408
|
+
"maxlength": "This field must be at most {0} characters long",
|
|
409
|
+
"min": "This field must be at least {0}",
|
|
410
|
+
"max": "This field must be at most {0}",
|
|
411
|
+
"between": "This field must be between {0} and {1}",
|
|
412
|
+
"pattern": "Please use a valid format",
|
|
413
|
+
"date": "Please enter a valid date",
|
|
414
|
+
"time": "Please enter a valid time",
|
|
415
|
+
"datetime": "Please enter a valid date and time",
|
|
416
|
+
"datetime-local": "Please enter a valid date and time",
|
|
417
|
+
"month": "Please enter a valid month",
|
|
418
|
+
"week": "Please enter a valid week",
|
|
419
|
+
"color": "Please enter a valid color",
|
|
420
|
+
"file": "Please enter a valid file",
|
|
421
|
+
"range": "Please enter a valid range",
|
|
422
|
+
"radio": "Please select a valid option",
|
|
423
|
+
"checkbox": "Please select a valid option",
|
|
424
|
+
"select": "Please select a valid option",
|
|
425
|
+
"multiple": "Please select a valid option",
|
|
425
426
|
};
|
|
426
427
|
let IndeterminateType;
|
|
427
428
|
(function (IndeterminateType) {
|
|
@@ -456,6 +457,7 @@ export var Bcm;
|
|
|
456
457
|
TriggerType["hover"] = "hover";
|
|
457
458
|
TriggerType["click"] = "click";
|
|
458
459
|
TriggerType["focus"] = "focus";
|
|
460
|
+
TriggerType["custom"] = "custom";
|
|
459
461
|
})(TriggerType = Bcm.TriggerType || (Bcm.TriggerType = {}));
|
|
460
462
|
let ListType;
|
|
461
463
|
(function (ListType) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { StringHelper } from "@bcm/helpers";
|
|
6
|
+
import { Fragment, h } from "@stencil/core";
|
|
7
|
+
export const ToolbarHamburgerTemplate = ({ hamburgerMenuId, config, column, extensions, onHideColumn, onSelectExportType }) => {
|
|
8
|
+
const { showColumnButton, showExportButton, showNewButton } = config;
|
|
9
|
+
return (h(Fragment, null, h("bcm-linked", { class: "lg:tw-hidden md:tw-hidden", "target-id": hamburgerMenuId, "main-linked": true }, h("div", { class: "tw-shadow-custom tw-w-full tw-min-w-[180px] tw-flex-col tw-gap-2 tw-p-4" }, showNewButton && (h("bcm-item", { color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", null, "New")))), showColumnButton && (h("bcm-item", { id: hamburgerMenuId + "-hamburger-linked", color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", { class: "tw-mr-2" }, "Add Column"), h("i", { class: "fas fa-chevron-right" })))), showExportButton && (h("bcm-item", { id: hamburgerMenuId + "-hamburger-extentions", color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", { class: "tw-mr-2" }, "Exports"), h("i", { class: "fas fa-chevron-right" })))))), h("bcm-linked", { trigger: "hover", "target-id": hamburgerMenuId + "-hamburger-linked", placement: "left-start", "hide-delay": "200" }, h(Fragment, null, h("div", { class: "tw-shadow-custom tw-w-full tw-min-w-[200px] tw-flex-col tw-gap-2 tw-p-4" }, column === null || column === void 0 ? void 0 : column.map(col => {
|
|
10
|
+
return (h("bcm-item", { color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", null, StringHelper.capitalize(col.id)), h("bcm-switch", { disabled: col.disabled, accessKey: col.id, id: col.id, class: "tw-mt-2", "no-caption": true, checked: true, "onBcm-change": e => onHideColumn({ checked: e.detail, id: col.id }) }))));
|
|
11
|
+
})))), h("bcm-linked", { trigger: "hover", "target-id": hamburgerMenuId + "-hamburger-extentions", placement: "left-start", "hide-delay": "200" }, h(Fragment, null, h("div", { class: "tw-shadow-custom tw-flex tw-w-full tw-min-w-[200px] tw-flex-col tw-gap-2 tw-p-4" }, extensions === null || extensions === void 0 ? void 0 : extensions.map(ext => {
|
|
12
|
+
return (h("div", { class: "tw-flex tw-w-full tw-flex-1 tw-cursor-pointer tw-flex-row tw-items-center tw-justify-start tw-gap-2 tw-rounded tw-bg-white tw-px-3 tw-py-[5px] tw-font-sans tw-text-size-4 tw-font-medium tw-antialiased hover:tw-bg-slate-100", onClick: () => onSelectExportType(ext) }, h("span", null, h("i", { class: "tw-text-size-5 " + ext.icon })), h("span", null, ext.text)));
|
|
13
|
+
}))))));
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { StringHelper } from "@bcm/helpers";
|
|
6
|
+
import { Fragment, h } from "@stencil/core";
|
|
7
|
+
import { ToolbarHamburgerTemplate } from "./toolbar-hamburger-template";
|
|
8
|
+
export const ToolbarTemplate = ({ columns, config, extensions, tableId, onHideColumn, onSearch, onSelectExportType }) => {
|
|
9
|
+
const { showColumnButton, showExportButton, showNewButton, showFilterButton, showSearchInput } = config;
|
|
10
|
+
return (h("div", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-between" }, h("div", { class: "tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-2" }, h("slot", { name: "left" }), showFilterButton && (h("bcm-dropdown", { kind: "ghost" }, h("bcm-icon", { icon: "far fa-filter" }), "Filter", h("bcm-badge", { color: "blue", size: "small", value: "1" }, "1"))), showSearchInput && h("bcm-input", { class: "!tw-mb-0", placeholder: "Search", type: "search", "no-caption": true, "onBcm-input": e => onSearch(e.detail) })), h("div", null), h("div", { class: "tw-flex tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-gap-2", id: "test" }, h("slot", { name: "right" }), showNewButton && h("bcm-button", { icon: "fas fa-plus" }, "New"), showColumnButton && (h("section", { class: "tw-hidden lg:tw-block md:tw-block" }, h("bcm-dropdown", { kind: "ghost", placement: "bottom-end" }, h("bcm-icon", { icon: "far fa-plus" }), "Add Column", h(Fragment, null, h("bcm-content", { class: "tw-hidden lg:tw-block md:tw-block" }, h("div", { class: "tw-shadow-custom tw-w-full tw-min-w-[256px] tw-flex-col tw-gap-2 tw-p-4" }, columns === null || columns === void 0 ? void 0 : columns.map(col => {
|
|
11
|
+
return (h("bcm-item", { color: "white" }, h("div", { class: "tw-flex tw-h-4 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1 tw-font-medium" }, h("span", null, StringHelper.capitalize(col.id)), h("bcm-switch", { class: "!tw-mt-2", disabled: col.disabled, "onBcm-change": e => onHideColumn({ checked: e.detail, id: col.id }), accessKey: col.id, id: col.id, "no-caption": true, checked: true }))));
|
|
12
|
+
}))))))), showExportButton && (h("section", { class: "tw-hidden lg:tw-block md:tw-block" }, (extensions === null || extensions === void 0 ? void 0 : extensions.length) > 1 && (h("bcm-dropdown", { id: tableId + "extention-content", selectable: false, kind: "ghost", class: "!tw-font-medium" }, "Export As", h("bcm-content", { class: "tw-hidden lg:tw-block md:tw-block" }, h("div", { class: "tw-shadow-custom tw-flex tw-w-full tw-min-w-[200px] tw-flex-col tw-gap-2 tw-p-4" }, extensions === null || extensions === void 0 ? void 0 : extensions.map(ext => {
|
|
13
|
+
return (h("div", { class: "tw-flex tw-w-full tw-flex-1 tw-cursor-pointer tw-flex-row tw-items-center tw-justify-start tw-gap-2 tw-rounded tw-bg-white tw-px-3 tw-py-[5px] tw-font-sans tw-text-size-4 tw-font-medium tw-antialiased hover:tw-bg-slate-100", onClick: () => onSelectExportType(ext) }, h("span", null, h("i", { class: "tw-text-size-5 " + ext.icon })), h("span", null, ext.text)));
|
|
14
|
+
}))))), (extensions === null || extensions === void 0 ? void 0 : extensions.length) == 1 && (h("bcm-button", { outline: true, onClick: () => onSelectExportType(extensions[0]) }, h("img", { src: "assets/" + extensions[0].path }), " Export as ", extensions[0].text))))), h("bcm-button", { outline: true, id: tableId + "-hamburger-menu", class: "sm:tw-block lg:tw-hidden md:tw-hidden", icon: "fas fa-bars" }), h(ToolbarHamburgerTemplate, { hamburgerMenuId: tableId + "-hamburger-menu", config: config, column: columns, extensions: extensions, onHideColumn: onHideColumn, onSelectExportType: onSelectExportType })));
|
|
15
|
+
};
|
|
@@ -18,8 +18,23 @@ function createCommonjsModule(fn, basedir, module) {
|
|
|
18
18
|
}, fn(module, module.exports), module.exports;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
function getAugmentedNamespace(n) {
|
|
22
|
+
if (n.__esModule) return n;
|
|
23
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
24
|
+
Object.keys(n).forEach(function (k) {
|
|
25
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
26
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return n[k];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return a;
|
|
34
|
+
}
|
|
35
|
+
|
|
21
36
|
function commonjsRequire () {
|
|
22
37
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
23
38
|
}
|
|
24
39
|
|
|
25
|
-
export { commonjsGlobal as a, createCommonjsModule as c,
|
|
40
|
+
export { commonjsGlobal as a, getDefaultExportFromCjs as b, createCommonjsModule as c, getAugmentedNamespace as g };
|
|
@@ -3,89 +3,130 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
6
|
-
import
|
|
6
|
+
import './color-helper.js';
|
|
7
7
|
import './validators.js';
|
|
8
8
|
import { G as Generate } from './generate.js';
|
|
9
|
-
import
|
|
9
|
+
import './number-helper.js';
|
|
10
10
|
import './string-helper.js';
|
|
11
11
|
import './element-dragger.js';
|
|
12
12
|
import { a as Bcm } from './bcm.js';
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as ce } from './index5.js';
|
|
14
14
|
import { d as defineCustomElement$2 } from './badge.js';
|
|
15
15
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const avatarStyle = ce({
|
|
18
|
+
slots: {
|
|
19
|
+
base: "bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",
|
|
20
|
+
image: "tw-w-full tw-h-full",
|
|
21
|
+
badge: "",
|
|
22
|
+
},
|
|
23
|
+
variants: {
|
|
24
|
+
size: {
|
|
25
|
+
small: "bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",
|
|
26
|
+
medium: "bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",
|
|
27
|
+
large: "bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10",
|
|
28
|
+
},
|
|
29
|
+
shape: {
|
|
30
|
+
ellipse: {
|
|
31
|
+
base: "bcm-avatar__shape-ellipse tw-rounded-full",
|
|
32
|
+
image: "tw-rounded-full",
|
|
33
|
+
badge: "tw-top-0 tw-right-0",
|
|
34
|
+
},
|
|
35
|
+
square: {
|
|
36
|
+
base: "bcm-avatar__shape-square tw-rounded",
|
|
37
|
+
image: "tw-rounded",
|
|
38
|
+
badge: "tw--top-0.5 tw--right-0.5",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
status: {
|
|
42
|
+
true: {
|
|
43
|
+
base: "bcm-avatar__status tw-relative",
|
|
44
|
+
badge: "tw-absolute",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
size: "medium",
|
|
50
|
+
shape: "ellipse",
|
|
51
|
+
status: false,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
18
54
|
|
|
19
55
|
const BcmAvatar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
20
56
|
constructor() {
|
|
21
57
|
super();
|
|
22
58
|
this.__registerHost();
|
|
23
59
|
this._id = Generate.UID();
|
|
24
|
-
this.hidden = false;
|
|
25
60
|
this.image = undefined;
|
|
26
61
|
this.name = undefined;
|
|
27
62
|
this.alt = undefined;
|
|
28
63
|
this.shape = Bcm.Shape.ellipse;
|
|
29
64
|
this.size = Bcm.Size.medium;
|
|
30
65
|
this.color = undefined;
|
|
66
|
+
this.icon = "fas fa-user";
|
|
31
67
|
this.status = undefined;
|
|
68
|
+
this.blink = false;
|
|
32
69
|
this.isFallback = false;
|
|
33
70
|
}
|
|
34
|
-
componentWillLoad() {
|
|
35
|
-
this.name = this.name && this.name.trim() || '';
|
|
36
|
-
}
|
|
37
|
-
handleError() {
|
|
38
|
-
this.isFallback = true;
|
|
39
|
-
}
|
|
40
|
-
getCustomSizes(customSize) {
|
|
41
|
-
return Math.round(parseInt(customSize) / 3);
|
|
42
|
-
}
|
|
43
71
|
getFirstLetters(name) {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return splitted[0].charAt(0) + splitted[splitted.length - 1].charAt(0);
|
|
72
|
+
const words = name.split(" ");
|
|
73
|
+
const initials = words.map(word => word.charAt(0).toUpperCase()).join("");
|
|
74
|
+
return initials.substring(0, 2);
|
|
48
75
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
let { color } = this;
|
|
52
|
-
!color && (color = 'slate');
|
|
53
|
-
let height = NumberHelper.toNumber(size);
|
|
54
|
-
let fontSize = Math.round(parseInt(height) / 3);
|
|
55
|
-
const prefix = `--bcm-avatar`;
|
|
56
|
-
return {
|
|
57
|
-
[`${prefix}-color`]: ColorHelper.dsColor(`${color}-600`),
|
|
58
|
-
[`${prefix}-background-color`]: ColorHelper.dsColor(`${color}-100`),
|
|
59
|
-
[`${prefix}-height`]: `${height}px`,
|
|
60
|
-
[`${prefix}-font-size`]: `${fontSize}px`
|
|
61
|
-
};
|
|
76
|
+
renderDefaultIcon() {
|
|
77
|
+
return h("bcm-icon", { icon: this.icon });
|
|
62
78
|
}
|
|
63
79
|
render() {
|
|
64
|
-
const {
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
80
|
+
const { shape, size, status, color, blink } = this;
|
|
81
|
+
const { base, badge, image } = avatarStyle({ size, shape, status: !!status });
|
|
82
|
+
const dc = Generate.getTwColor({
|
|
83
|
+
color: color,
|
|
84
|
+
tones: {
|
|
85
|
+
200: ["bg"],
|
|
86
|
+
700: ["text"],
|
|
87
|
+
},
|
|
88
|
+
variable: "--bcm-avatar",
|
|
69
89
|
});
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
:
|
|
75
|
-
|
|
90
|
+
const customSize = !Object.keys(Bcm.BaseSize).includes(size)
|
|
91
|
+
? {
|
|
92
|
+
width: `${size}px`,
|
|
93
|
+
height: `${size}px`,
|
|
94
|
+
fontSize: `${+size / 3}px`,
|
|
95
|
+
}
|
|
96
|
+
: {};
|
|
97
|
+
const RenderContent = () => {
|
|
98
|
+
if (this.isFallback) {
|
|
99
|
+
if (this.name) {
|
|
100
|
+
return this.getFirstLetters(this.name);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return this.renderDefaultIcon();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
else if (this.image) {
|
|
107
|
+
return h("img", { class: image(), onError: () => (this.isFallback = true), src: this.image, alt: this.alt });
|
|
108
|
+
}
|
|
109
|
+
else if (this.name) {
|
|
110
|
+
return this.getFirstLetters(this.name);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
return this.renderDefaultIcon();
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
return (h(Host, { role: "img", "aria-label": this.alt || this.name || "Avatar", class: base(), style: Object.assign(Object.assign({}, dc), customSize) }, h(RenderContent, null), status && h("bcm-badge", { class: badge(), status: status, blink: blink, "aria-hidden": "true" }), h("slot", null)));
|
|
76
117
|
}
|
|
77
118
|
get el() { return this; }
|
|
78
|
-
static get style() { return avatarCss; }
|
|
79
119
|
}, [4, "bcm-avatar", {
|
|
80
|
-
"_id": [
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"status": [
|
|
120
|
+
"_id": [513, "id"],
|
|
121
|
+
"image": [1],
|
|
122
|
+
"name": [1],
|
|
123
|
+
"alt": [1],
|
|
124
|
+
"shape": [1],
|
|
125
|
+
"size": [1],
|
|
126
|
+
"color": [1],
|
|
127
|
+
"icon": [1],
|
|
128
|
+
"status": [1],
|
|
129
|
+
"blink": [4],
|
|
89
130
|
"isFallback": [32]
|
|
90
131
|
}]);
|
|
91
132
|
function defineCustomElement() {
|
package/dist/components/badge.js
CHANGED
|
@@ -3,70 +3,102 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
6
|
-
import { c as classnames } from './index2.js';
|
|
7
|
-
import { a as Bcm } from './bcm.js';
|
|
8
|
-
import { G as Generate } from './generate.js';
|
|
9
|
-
import { S as SlotTemplate } from './slot-template.js';
|
|
10
6
|
import { C as ColorHelper } from './color-helper.js';
|
|
7
|
+
import './validators.js';
|
|
8
|
+
import { G as Generate } from './generate.js';
|
|
9
|
+
import './number-helper.js';
|
|
10
|
+
import './string-helper.js';
|
|
11
|
+
import './element-dragger.js';
|
|
12
|
+
import { a as Bcm } from './bcm.js';
|
|
13
|
+
import { c as ce } from './index5.js';
|
|
11
14
|
|
|
12
|
-
const
|
|
15
|
+
const badgeStyle = ce({
|
|
16
|
+
slots: {
|
|
17
|
+
host: "bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",
|
|
18
|
+
base: [
|
|
19
|
+
"bcm-badge__dot",
|
|
20
|
+
"tw-flex tw-items-center tw-justify-center tw-flex-row",
|
|
21
|
+
"tw-rounded-full tw-text-center",
|
|
22
|
+
"tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
|
|
23
|
+
"tw-whitespace-nowrap",
|
|
24
|
+
],
|
|
25
|
+
dotText: "empty:tw-hidden",
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
small: {
|
|
30
|
+
host: "tw-text-2 tw-gap-1",
|
|
31
|
+
base: "bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",
|
|
32
|
+
dotText: "tw-px-1.5 tw-min-w-4",
|
|
33
|
+
},
|
|
34
|
+
medium: {
|
|
35
|
+
host: "tw-text-3 tw-gap-1.5",
|
|
36
|
+
base: "bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",
|
|
37
|
+
dotText: "tw-px-1.5 tw-min-w-5",
|
|
38
|
+
},
|
|
39
|
+
large: {
|
|
40
|
+
host: "tw-text-4 tw-gap-2",
|
|
41
|
+
base: "bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",
|
|
42
|
+
dotText: "tw-px-2 tw-min-w-6",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
blink: {
|
|
46
|
+
true: {
|
|
47
|
+
base: [
|
|
48
|
+
"bcm-badge__dot-blink tw-relative",
|
|
49
|
+
"after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]",
|
|
50
|
+
"after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full",
|
|
51
|
+
"after:tw-animate-blink after:tw-pointer-events-none",
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
size: "medium",
|
|
58
|
+
blink: false,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
13
61
|
|
|
14
62
|
const BcmBadge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
15
63
|
constructor() {
|
|
16
64
|
super();
|
|
17
65
|
this.__registerHost();
|
|
66
|
+
this.statusColors = {
|
|
67
|
+
info: "blue",
|
|
68
|
+
error: "red",
|
|
69
|
+
warning: "amber",
|
|
70
|
+
success: "emerald",
|
|
71
|
+
};
|
|
18
72
|
this._id = Generate.UID();
|
|
19
|
-
this.hidden = false;
|
|
20
73
|
this.blink = false;
|
|
21
74
|
this.value = undefined;
|
|
22
75
|
this.color = undefined;
|
|
23
76
|
this.size = Bcm.Size.medium;
|
|
24
77
|
this.status = undefined;
|
|
25
|
-
this._slot = undefined;
|
|
26
|
-
}
|
|
27
|
-
setStyleVariables() {
|
|
28
|
-
const { status, value } = this;
|
|
29
|
-
let { color } = this;
|
|
30
|
-
const statusColors = {
|
|
31
|
-
'info': 'blue',
|
|
32
|
-
'error': 'red',
|
|
33
|
-
'warning': 'amber',
|
|
34
|
-
'success': 'emerald',
|
|
35
|
-
'default': 'slate'
|
|
36
|
-
};
|
|
37
|
-
!!status && (color = statusColors[status]);
|
|
38
|
-
!color && (color = 'slate');
|
|
39
|
-
const prefix = `--bcm-badge`;
|
|
40
|
-
const spacing = !!value && value.length > 1 ? '8' : '4';
|
|
41
|
-
return {
|
|
42
|
-
[`${prefix}-color`]: ColorHelper.reverseColor(ColorHelper.dsColor(`${color}`)),
|
|
43
|
-
[`${prefix}-background-color`]: ColorHelper.dsColor(`${color}`),
|
|
44
|
-
[`${prefix}-spacing`]: `${spacing}px`
|
|
45
|
-
};
|
|
46
78
|
}
|
|
47
79
|
render() {
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
80
|
+
const { blink, value, size, color, status } = this;
|
|
81
|
+
const _color = this.statusColors[status] || color;
|
|
82
|
+
const { tone, colorName } = ColorHelper.parseColor(_color);
|
|
83
|
+
const dc = Generate.getTwColor({
|
|
84
|
+
color: colorName,
|
|
85
|
+
tones: {
|
|
86
|
+
[tone]: ["bg"],
|
|
87
|
+
},
|
|
88
|
+
variable: "--bcm-badge",
|
|
56
89
|
});
|
|
57
|
-
|
|
90
|
+
const style = Object.assign(Object.assign({}, dc), (dc["--bcm-badge-bg"] && { "--bcm-badge-text": ColorHelper.reverseColor(dc["--bcm-badge-bg"]) }));
|
|
91
|
+
const { base, dotText, host } = badgeStyle({ size, blink });
|
|
92
|
+
return (h(Host, { class: host(), role: "status", "aria-live": "polite" }, h("div", { class: base(), style: style }, h("span", { class: dotText(), role: "presentation", "aria-hidden": "true" }, value), h("span", { class: "tw-sr-only" }, value)), h("slot", null)));
|
|
58
93
|
}
|
|
59
94
|
get el() { return this; }
|
|
60
|
-
static get style() { return badgeCss; }
|
|
61
95
|
}, [4, "bcm-badge", {
|
|
62
|
-
"_id": [
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"status": [1025],
|
|
69
|
-
"_slot": [1032, "slot"]
|
|
96
|
+
"_id": [513, "id"],
|
|
97
|
+
"blink": [4],
|
|
98
|
+
"value": [1],
|
|
99
|
+
"color": [8],
|
|
100
|
+
"size": [1],
|
|
101
|
+
"status": [1]
|
|
70
102
|
}]);
|
|
71
103
|
function defineCustomElement() {
|
|
72
104
|
if (typeof customElements === "undefined") {
|
|
@@ -15,10 +15,11 @@ import { c as classnames } from './index2.js';
|
|
|
15
15
|
import './types.js';
|
|
16
16
|
import { L as LabelTemplate } from './label-template.js';
|
|
17
17
|
import './types2.js';
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
18
|
+
import { d as defineCustomElement$a } from './avatar.js';
|
|
19
|
+
import { d as defineCustomElement$9 } from './badge.js';
|
|
20
|
+
import { d as defineCustomElement$8 } from './chip.js';
|
|
21
|
+
import { d as defineCustomElement$7 } from './icon.js';
|
|
22
|
+
import { d as defineCustomElement$6 } from './label.js';
|
|
22
23
|
import { d as defineCustomElement$5 } from './list.js';
|
|
23
24
|
import { d as defineCustomElement$4 } from './rc-overflow.js';
|
|
24
25
|
import { d as defineCustomElement$3 } from './search.js';
|
|
@@ -138,7 +139,7 @@ function defineCustomElement$1() {
|
|
|
138
139
|
if (typeof customElements === "undefined") {
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
|
-
const components = ["bcm-chip-group", "bcm-avatar", "bcm-badge", "bcm-chip", "bcm-icon", "bcm-list", "bcm-rc-overflow", "bcm-search", "bcm-tooltip"];
|
|
142
|
+
const components = ["bcm-chip-group", "bcm-avatar", "bcm-badge", "bcm-chip", "bcm-icon", "bcm-label", "bcm-list", "bcm-rc-overflow", "bcm-search", "bcm-tooltip"];
|
|
142
143
|
components.forEach(tagName => { switch (tagName) {
|
|
143
144
|
case "bcm-chip-group":
|
|
144
145
|
if (!customElements.get(tagName)) {
|
|
@@ -147,20 +148,25 @@ function defineCustomElement$1() {
|
|
|
147
148
|
break;
|
|
148
149
|
case "bcm-avatar":
|
|
149
150
|
if (!customElements.get(tagName)) {
|
|
150
|
-
defineCustomElement$
|
|
151
|
+
defineCustomElement$a();
|
|
151
152
|
}
|
|
152
153
|
break;
|
|
153
154
|
case "bcm-badge":
|
|
154
155
|
if (!customElements.get(tagName)) {
|
|
155
|
-
defineCustomElement$
|
|
156
|
+
defineCustomElement$9();
|
|
156
157
|
}
|
|
157
158
|
break;
|
|
158
159
|
case "bcm-chip":
|
|
159
160
|
if (!customElements.get(tagName)) {
|
|
160
|
-
defineCustomElement$
|
|
161
|
+
defineCustomElement$8();
|
|
161
162
|
}
|
|
162
163
|
break;
|
|
163
164
|
case "bcm-icon":
|
|
165
|
+
if (!customElements.get(tagName)) {
|
|
166
|
+
defineCustomElement$7();
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
case "bcm-label":
|
|
164
170
|
if (!customElements.get(tagName)) {
|
|
165
171
|
defineCustomElement$6();
|
|
166
172
|
}
|
|
@@ -15,7 +15,7 @@ import { d as defineCustomElement$4 } from './label.js';
|
|
|
15
15
|
import { d as defineCustomElement$3 } from './old-input.js';
|
|
16
16
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
17
17
|
|
|
18
|
-
const datePickerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-
|
|
18
|
+
const datePickerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
|
|
19
19
|
|
|
20
20
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
21
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -45,6 +45,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
45
45
|
this.placeholder = undefined;
|
|
46
46
|
this.disabledDates = '';
|
|
47
47
|
this.disabled = false;
|
|
48
|
+
this.noMargin = false;
|
|
48
49
|
this.noCaption = false;
|
|
49
50
|
this.caption = '';
|
|
50
51
|
this.captionError = undefined;
|
|
@@ -165,7 +166,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
165
166
|
'full-width': this.fullWidth,
|
|
166
167
|
'linked-component': this.linkedComponent,
|
|
167
168
|
});
|
|
168
|
-
return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement })));
|
|
169
|
+
return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement, noMargin: this.noMargin })));
|
|
169
170
|
}
|
|
170
171
|
get el() { return this; }
|
|
171
172
|
static get watchers() { return {
|
|
@@ -187,6 +188,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
187
188
|
"placeholder": [1025],
|
|
188
189
|
"disabledDates": [1032, "disableddates"],
|
|
189
190
|
"disabled": [1028],
|
|
191
|
+
"noMargin": [1028, "no-margin"],
|
|
190
192
|
"noCaption": [1028, "no-caption"],
|
|
191
193
|
"caption": [1025],
|
|
192
194
|
"captionError": [1025, "caption-error"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BcmDate extends Components.BcmDate, HTMLElement {}
|
|
4
|
+
export const BcmDate: {
|
|
5
|
+
prototype: BcmDate;
|
|
6
|
+
new (): BcmDate;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|