bromcom-ui 2.9.0-rc.8 → 2.9.0-rc.9
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/{p-bd51d347.entry.js → p-01416407.entry.js} +1 -1
- package/dist/bromcom-ui/{p-499bb928.entry.js → p-0261a41f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4aa0e6b1.js → p-034bbcdd.js} +1 -1
- package/dist/bromcom-ui/{p-fb4b5224.entry.js → p-041d35e1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-73ca7c0a.entry.js → p-0b390d63.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5c3e9ac9.entry.js → p-123d6355.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0cb5a92d.entry.js → p-13c84181.entry.js} +1 -1
- package/dist/bromcom-ui/p-14c7e2a8.js +297 -0
- package/dist/bromcom-ui/p-170cf07d.js +6 -0
- package/dist/bromcom-ui/{p-1be22601.entry.js → p-173a5459.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a429e85b.js → p-23c35e1b.js} +1 -1
- package/dist/bromcom-ui/{p-45767d1d.entry.js → p-27089653.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f58c1fbe.entry.js → p-27c24ba2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-28f78dd4.entry.js} +1 -1
- package/dist/bromcom-ui/p-2a9053d8.js +5 -0
- package/dist/bromcom-ui/{p-af0a447d.entry.js → p-2ad0514a.entry.js} +1 -1
- package/dist/bromcom-ui/p-2d4a0a66.entry.js +5 -0
- package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-3078fcd2.entry.js} +1 -1
- package/dist/bromcom-ui/p-3182df7e.js +10 -0
- package/dist/bromcom-ui/{p-2a7bdc8b.entry.js → p-33cb3b7a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-65f01d32.entry.js → p-3788e33d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a82f2b2a.entry.js → p-39342bfb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-3960cae8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f4538abb.entry.js → p-3a06c6b1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-54c0916c.js → p-3ade1099.js} +1 -1
- package/dist/bromcom-ui/{p-e5a0d8f6.entry.js → p-3bcaa275.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ebee9f45.entry.js → p-3d730230.entry.js} +1 -1
- package/dist/bromcom-ui/p-3f67e615.js +5 -0
- package/dist/bromcom-ui/{p-0f52bab9.entry.js → p-41143361.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b1c83bb8.entry.js → p-44ca28fa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4ac5904.js → p-477c5bae.js} +1 -1
- package/dist/bromcom-ui/{p-2fc584c4.js → p-4798d827.js} +1 -1
- package/dist/bromcom-ui/{p-d389b202.entry.js → p-485d801c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7c6e3ae5.entry.js → p-4e33341b.entry.js} +1 -1
- package/dist/bromcom-ui/p-52989d8c.entry.js +5 -0
- package/dist/bromcom-ui/{p-4484ed7d.entry.js → p-55309a20.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d0bb9a84.entry.js → p-55b60edb.entry.js} +1 -1
- package/dist/bromcom-ui/p-5600c817.js +5 -0
- package/dist/bromcom-ui/{p-9fe802bc.entry.js → p-620aa5b0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-065e0f32.entry.js → p-626c26aa.entry.js} +1 -1
- package/dist/bromcom-ui/p-62ea396b.entry.js +5 -0
- package/dist/bromcom-ui/{p-235023cc.entry.js → p-667876ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-03134b6f.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fdc3e5b8.entry.js → p-68bf022e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f331e009.entry.js → p-6ab403d2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-24f0e23a.entry.js → p-6cc47ae0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c799b397.entry.js → p-6f375d08.entry.js} +1 -1
- package/dist/bromcom-ui/{p-908b1b5d.js → p-7236f21c.js} +1 -1
- package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/{p-dc2c4b14.entry.js → p-7b486021.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d995750a.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2caa75a4.entry.js → p-7cb2df5d.entry.js} +1 -1
- package/dist/bromcom-ui/p-7e3209a0.js +14 -0
- package/dist/bromcom-ui/{p-240151d4.entry.js → p-7f1612df.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4fd78dbb.entry.js → p-7f22af84.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8fcb5846.js → p-81d6b4a9.js} +1 -1
- package/dist/bromcom-ui/{p-ec36d0c0.entry.js → p-81f7a8cf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ec6b45ba.entry.js → p-833b0234.entry.js} +1 -1
- package/dist/bromcom-ui/{p-32028f4f.entry.js → p-875dcc4e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d7f10f7f.js → p-8b7f2c93.js} +1 -1
- package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-8c3535b6.entry.js} +1 -1
- package/dist/bromcom-ui/p-9166c160.entry.js +5 -0
- package/dist/bromcom-ui/{p-6c3e9e10.entry.js → p-9314d7ed.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a9692ed3.entry.js → p-9682f59f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8bcfe3b3.entry.js → p-9d12a9da.entry.js} +1 -1
- package/dist/bromcom-ui/p-a231503d.js +5 -0
- package/dist/bromcom-ui/{p-5d89f348.entry.js → p-a2f55c7e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-503feae9.entry.js → p-a3837b59.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61c4745d.entry.js → p-a7bc8330.entry.js} +1 -1
- package/dist/bromcom-ui/p-a9842acd.entry.js +5 -0
- package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-b284e383.entry.js} +1 -1
- package/dist/bromcom-ui/p-b82685e4.js +12 -0
- package/dist/bromcom-ui/{p-e4477593.entry.js → p-ba3c6657.entry.js} +1 -1
- package/dist/bromcom-ui/p-ba7e96a8.entry.js +5 -0
- package/dist/bromcom-ui/p-ba89b896.entry.js +5 -0
- package/dist/bromcom-ui/p-bed627ab.js +11 -0
- package/dist/bromcom-ui/{p-c42dffea.entry.js → p-c05f56ab.entry.js} +1 -1
- package/dist/bromcom-ui/p-c0d7b05e.js +5 -0
- package/dist/bromcom-ui/{p-6aeaef2a.entry.js → p-c5c61430.entry.js} +1 -1
- package/dist/bromcom-ui/p-c7757dd5.entry.js +5 -0
- package/dist/bromcom-ui/{p-6bcaf906.entry.js → p-c82fc2b1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c75519d5.js → p-c87ea210.js} +1 -1
- package/dist/bromcom-ui/{p-1b1f4b44.entry.js → p-cea71a01.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8d0ca8c2.js → p-cff8ef93.js} +1 -1
- package/dist/bromcom-ui/p-d0b993c1.entry.js +5 -0
- package/dist/bromcom-ui/{p-7f529bbe.entry.js → p-d20f131e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f5bed571.entry.js → p-d88bc175.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ff48f5b2.entry.js → p-da4bd91f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b60bcecf.js → p-dc8305dc.js} +1 -1
- package/dist/bromcom-ui/p-de6dcf0d.entry.js +5 -0
- package/dist/bromcom-ui/{p-48f85544.entry.js → p-df185078.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dbc4c30c.js → p-e1689f47.js} +1 -1
- package/dist/bromcom-ui/p-e1877ee9.js +5 -0
- package/dist/bromcom-ui/p-e45c1546.js +5 -0
- package/dist/bromcom-ui/p-e705fda8.entry.js +5 -0
- package/dist/bromcom-ui/{p-4f8b00bc.entry.js → p-ec04b3a4.entry.js} +1 -1
- package/dist/bromcom-ui/p-f3fb3196.entry.js +5 -0
- package/dist/bromcom-ui/{p-2acd6bee.entry.js → p-f6e549ce.entry.js} +1 -1
- package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
- package/dist/cjs/ag-grid-enterprise.auto.esm-cf48f6b2.js +111638 -0
- 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.cjs.entry.js +10 -10
- package/dist/cjs/bcm-badge_15.cjs.entry.js +17 -17
- 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 +8 -8
- package/dist/cjs/bcm-card.cjs.entry.js +10 -10
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +12 -12
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +7 -7
- package/dist/cjs/bcm-checkbox.cjs.entry.js +12 -12
- package/dist/cjs/bcm-chip-group.cjs.entry.js +14 -14
- 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 -10
- package/dist/cjs/{bcm-colorful.cjs.entry.js → bcm-colorful_2.cjs.entry.js} +363 -3
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-date-picker.cjs.entry.js +8 -8
- package/dist/cjs/bcm-date.cjs.entry.js +124 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +12 -12
- package/dist/cjs/bcm-default.cjs.entry.js +5 -5
- package/dist/cjs/bcm-drawer.cjs.entry.js +11 -11
- 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-ab921827.js → bcm-fd724fe9.js} +1 -0
- package/dist/cjs/bcm-form-2.cjs.entry.js +12 -9
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form.cjs.entry.js +7 -6
- package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -6
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +218 -0
- package/dist/cjs/bcm-label.cjs.entry.js +10 -10
- package/dist/cjs/bcm-link.cjs.entry.js +4 -4
- package/dist/cjs/bcm-list_3.cjs.entry.js +147 -1671
- 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 +11 -11
- package/dist/cjs/bcm-modal.cjs.entry.js +9 -9
- package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
- package/dist/cjs/bcm-old-input.cjs.entry.js +4 -4
- 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 +7 -7
- package/dist/cjs/bcm-progress.cjs.entry.js +8 -8
- package/dist/cjs/bcm-radio-group.cjs.entry.js +13 -13
- package/dist/cjs/bcm-radio.cjs.entry.js +11 -11
- package/dist/cjs/bcm-range.cjs.entry.js +7 -7
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +8120 -0
- 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 +13 -13
- package/dist/cjs/bcm-switch.cjs.entry.js +9 -9
- 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 +236 -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 +8 -8
- package/dist/cjs/bcm-textarea.cjs.entry.js +10 -10
- package/dist/cjs/bcm-time-picker.cjs.entry.js +8 -8
- 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 +8 -8
- 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-5f42f872.js} +1 -1
- package/dist/cjs/{generate-cae9c0fb.js → generate-7e161828.js} +2 -2
- package/dist/cjs/{global-3ce50f9f.js → global-01094a23.js} +6 -1
- package/dist/cjs/index-3d67f613.js +1610 -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/{index-906fb4e5.js → index-e05a7c6f.js} +6 -1
- package/dist/cjs/{input-template-a7f8f2e9.js → input-template-c8d5ae30.js} +4 -4
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-7575fbd2.js} +1 -1
- package/dist/cjs/{json-parse-decarator-34a3d26e.js → json-parse-decarator-d9d1452c.js} +2 -2
- package/dist/cjs/{label-template-4d5f99a5.js → label-template-8738acbd.js} +4 -4
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/moment-c1a71617.js +5689 -0
- package/dist/cjs/{number-helper-101d8aa8.js → number-helper-c26ca8a7.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -11
- package/dist/cjs/old-bcm-popover.cjs.entry.js +7 -7
- package/dist/cjs/{package-ed8b3296.js → package-016f287a.js} +1 -1
- package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-2161105e.js} +1 -1
- package/dist/cjs/{slot-template-d70ea082.js → slot-template-bc4e1c50.js} +2 -2
- package/dist/cjs/{stepper-states-308c8d3e.js → stepper-states-2a864ea5.js} +3 -3
- package/dist/cjs/{string-helper-d681e5c7.js → string-helper-c432b17c.js} +2 -2
- package/dist/cjs/{validators-26badb68.js → validators-5ca90062.js} +1 -1
- 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/{other/data-table/table.css → molecules/input-dropdown/input-dropdown.css} +4 -5
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +664 -0
- package/dist/collection/components/molecules/linked/linked.js +2 -2
- 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/form/form.js +1 -0
- package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
- package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +572 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +366 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +228 -0
- package/dist/collection/components/third-parts/table/table-definations.js +42 -0
- package/dist/collection/components/third-parts/table/table.css +7169 -0
- package/dist/collection/components/third-parts/table/table.js +284 -0
- package/dist/collection/global/global.js +6 -0
- package/dist/collection/models/bcm.js +1 -0
- 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/bcm-date.d.ts +11 -0
- package/dist/components/bcm-date.js +161 -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 +296 -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 +111873 -41
- package/dist/components/bcm.js +1 -0
- package/dist/components/colors2.js +1 -1
- 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/linked.js +1 -1
- package/dist/components/raf.js +1594 -0
- package/dist/components/rc-overflow.js +32 -1557
- package/dist/components/rc-picker.js +13821 -0
- package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-be0d4ec8.js} +16 -1
- package/dist/esm/ag-grid-enterprise.auto.esm-9c29ba78.js +111635 -0
- package/dist/esm/{bcm-9f50af9c.js → bcm-ac17222c.js} +1 -0
- 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.entry.js +10 -10
- package/dist/esm/bcm-badge_15.entry.js +17 -17
- 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-card.entry.js +10 -10
- package/dist/esm/bcm-checkbox-group.entry.js +12 -12
- package/dist/esm/bcm-checkbox-lite_9.entry.js +7 -7
- package/dist/esm/bcm-checkbox.entry.js +12 -12
- package/dist/esm/bcm-chip-group.entry.js +14 -14
- package/dist/esm/bcm-chip.entry.js +7 -7
- package/dist/esm/bcm-collapse-group.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +10 -10
- package/dist/esm/{bcm-colorful.entry.js → bcm-colorful_2.entry.js} +363 -4
- package/dist/esm/bcm-colorpicker.entry.js +3 -3
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +8 -8
- package/dist/esm/bcm-date.entry.js +120 -0
- package/dist/esm/bcm-datetime-picker.entry.js +12 -12
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-drawer.entry.js +11 -11
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +9 -9
- package/dist/esm/bcm-form-2.entry.js +12 -9
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-form.entry.js +7 -6
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +214 -0
- package/dist/esm/bcm-label.entry.js +10 -10
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-list_3.entry.js +85 -1609
- 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 -9
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-old-input.entry.js +4 -4
- 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 -10
- package/dist/esm/bcm-popconfirm.entry.js +7 -7
- package/dist/esm/bcm-progress.entry.js +8 -8
- 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 -7
- package/dist/esm/bcm-rc-picker.entry.js +8116 -0
- 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 -5
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +13 -13
- package/dist/esm/bcm-switch.entry.js +9 -9
- 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 +236 -38
- 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 -8
- package/dist/esm/bcm-textarea.entry.js +10 -10
- package/dist/esm/bcm-time-picker.entry.js +8 -8
- 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 +8 -8
- 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-e973a48c.js} +2 -2
- package/dist/esm/{color-helper-116755ed.js → color-helper-c4fa9ebc.js} +1 -1
- package/dist/esm/{colors-44c95e7e.js → colors-e1c31f79.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-54c52eaa.js} +1 -1
- package/dist/esm/{generate-e008f24f.js → generate-903ca965.js} +2 -2
- package/dist/esm/{global-9c04f017.js → global-9b1304a4.js} +6 -1
- package/dist/esm/{index-348b16ad.js → index-0615c2b8.js} +3 -1
- package/dist/esm/{index-0052017c.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/{index-6310a048.js → index-a6d9d0af.js} +6 -2
- package/dist/esm/{index-ed9652af.js → index-b84bc8c9.js} +1 -1
- package/dist/esm/index-c4568336.js +1594 -0
- package/dist/esm/{input-template-0bdd4dda.js → input-template-332be34e.js} +4 -4
- package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-6784aa87.js} +1 -1
- package/dist/esm/{json-parse-decarator-40fc5701.js → json-parse-decarator-498602a3.js} +2 -2
- package/dist/esm/{label-template-98dafeb3.js → label-template-f156f33f.js} +4 -4
- package/dist/esm/loader.js +6 -5
- package/dist/esm/moment-24231dde.js +5686 -0
- package/dist/esm/{number-helper-ddce4326.js → number-helper-3809b83b.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -11
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-00ece356.js → package-9887f1c0.js} +1 -1
- package/dist/esm/{popover-placement-78f86f15.js → popover-placement-018109c4.js} +1 -1
- package/dist/esm/{slot-template-672e941d.js → slot-template-46035685.js} +2 -2
- package/dist/esm/{stepper-states-56644bc7.js → stepper-states-372c3c9c.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-4a28f775.js} +2 -2
- package/dist/esm/{validators-77fbe47e.js → validators-c8f34de9.js} +1 -1
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +54 -0
- package/dist/types/components/third-parts/rc-picker/date.d.ts +46 -0
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +20 -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 +170 -3
- package/dist/types/models/bcm.d.ts +9 -1
- 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/package.json +7 -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-15758356.entry.js +0 -5
- package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
- package/dist/bromcom-ui/p-3a68eca1.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-a19320bb.entry.js +0 -13
- package/dist/bromcom-ui/p-a56e8c98.js +0 -5
- package/dist/bromcom-ui/p-a8033cda.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-cf0ab7f0.entry.js +0 -5
- package/dist/bromcom-ui/p-d65a1e21.js +0 -11
- package/dist/bromcom-ui/p-e09fa0dc.entry.js +0 -5
- package/dist/bromcom-ui/p-e32d9cfc.js +0 -5
- package/dist/bromcom-ui/p-e9842c26.js +0 -5
- package/dist/bromcom-ui/p-f645d9ae.entry.js +0 -5
- package/dist/cjs/bcm-input.cjs.entry.js +0 -371
- package/dist/collection/components/other/data-table/table.js +0 -88
- package/dist/esm/bcm-input.entry.js +0 -367
- package/dist/types/components/other/data-table/table.d.ts +0 -8
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { Generate } from "@bcm/helpers";
|
|
6
|
+
import { ToolbarTemplate } from "@bcm/template";
|
|
7
|
+
import { Host, h } from "@stencil/core";
|
|
8
|
+
import { Grid } from "ag-grid-enterprise";
|
|
9
|
+
import cs from "classnames";
|
|
10
|
+
import snq from "snq";
|
|
11
|
+
import { ExportTypes, tableOptions } from "./table-definations";
|
|
12
|
+
export class BcmTable {
|
|
13
|
+
constructor() {
|
|
14
|
+
this._id = Generate.UID();
|
|
15
|
+
this.gridOptions = {};
|
|
16
|
+
this.extensions = "csv";
|
|
17
|
+
this.height = "250px";
|
|
18
|
+
this.showToolbar = false;
|
|
19
|
+
this.showFooter = false;
|
|
20
|
+
this.toolBarConfig = {
|
|
21
|
+
showNewButton: false,
|
|
22
|
+
showExportButton: true,
|
|
23
|
+
showColumnButton: true,
|
|
24
|
+
showFilterButton: false,
|
|
25
|
+
showSearchInput: true,
|
|
26
|
+
};
|
|
27
|
+
this.agGrid = null;
|
|
28
|
+
this.columns = undefined;
|
|
29
|
+
this.fileTypes = [];
|
|
30
|
+
this.isReady = false;
|
|
31
|
+
this.footerOptions = {
|
|
32
|
+
statusBar: {
|
|
33
|
+
statusPanels: [
|
|
34
|
+
{ statusPanel: "agTotalAndFilteredRowCountComponent", align: "left" },
|
|
35
|
+
{ statusPanel: "agTotalRowCountComponent", align: "right" },
|
|
36
|
+
{ statusPanel: "agFilteredRowCountComponent" },
|
|
37
|
+
{ statusPanel: "agSelectedRowCountComponent" },
|
|
38
|
+
{ statusPanel: "agAggregationComponent" },
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
get grid() {
|
|
44
|
+
var _a;
|
|
45
|
+
return (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridOptions;
|
|
46
|
+
}
|
|
47
|
+
componentDidLoad() {
|
|
48
|
+
this.initGrid();
|
|
49
|
+
}
|
|
50
|
+
initGrid() {
|
|
51
|
+
var _a;
|
|
52
|
+
const agGridDiv = this.el.querySelector(`#bcm-table-${this._id}`);
|
|
53
|
+
if (!agGridDiv)
|
|
54
|
+
return;
|
|
55
|
+
const options = Object.assign(Object.assign(Object.assign({}, tableOptions), Object.assign({}, (this.showFooter && this.footerOptions))), this.gridOptions);
|
|
56
|
+
(_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
57
|
+
this.agGrid = new Grid(agGridDiv, Object.assign(Object.assign({}, options), { onGridReady: params => this.initToolbar(params) }));
|
|
58
|
+
}
|
|
59
|
+
initToolbar(params) {
|
|
60
|
+
this.columns = snq(() => { var _a; return (_a = params === null || params === void 0 ? void 0 : params.api) === null || _a === void 0 ? void 0 : _a.getColumnDefs(); }, [])
|
|
61
|
+
.filter(Boolean)
|
|
62
|
+
.filter((col) => !col.hide)
|
|
63
|
+
.map((column) => {
|
|
64
|
+
var _a, _b, _c, _d, _e;
|
|
65
|
+
return ({
|
|
66
|
+
id: column.colId,
|
|
67
|
+
type: (_c = (_b = (_a = column === null || column === void 0 ? void 0 : column.filterParams) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase()) !== null && _c !== void 0 ? _c : "text",
|
|
68
|
+
disabled: (_e = (_d = column === null || column === void 0 ? void 0 : column.filterParams) === null || _d === void 0 ? void 0 : _d.disabledColumn) !== null && _e !== void 0 ? _e : false,
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
this.fileTypes = snq(() => {
|
|
72
|
+
var _a;
|
|
73
|
+
return (_a = this.extensions
|
|
74
|
+
.toLowerCase()
|
|
75
|
+
.split(",")) === null || _a === void 0 ? void 0 : _a.map((extention) => extention.trim()).map((extention) => ExportTypes[extention]);
|
|
76
|
+
}, []);
|
|
77
|
+
this.isReady = true;
|
|
78
|
+
}
|
|
79
|
+
handleColumnVisible({ checked, id }) {
|
|
80
|
+
if (!id)
|
|
81
|
+
return;
|
|
82
|
+
this.grid.columnApi.setColumnVisible(id, checked);
|
|
83
|
+
}
|
|
84
|
+
handleFileType({ text }) {
|
|
85
|
+
if (!text)
|
|
86
|
+
return;
|
|
87
|
+
switch (text.toLowerCase()) {
|
|
88
|
+
case "csv":
|
|
89
|
+
this.grid.api.exportDataAsCsv();
|
|
90
|
+
break;
|
|
91
|
+
case "excel":
|
|
92
|
+
this.grid.api.exportDataAsExcel();
|
|
93
|
+
break;
|
|
94
|
+
case "pdf":
|
|
95
|
+
alert("PDF export is not supported yet");
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
handleSearch(text) {
|
|
100
|
+
if (text === undefined)
|
|
101
|
+
return;
|
|
102
|
+
this.grid.api.setQuickFilter(text);
|
|
103
|
+
if (this.grid.api.getDisplayedRowCount() === 0) {
|
|
104
|
+
this.grid.api.showNoRowsOverlay();
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
this.grid.api.hideOverlay();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
watchHandler(newValue, oldValue) {
|
|
111
|
+
if (newValue !== oldValue) {
|
|
112
|
+
this.initGrid();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
const { _id, height, toolBarConfig, columns } = this;
|
|
117
|
+
return (h(Host, null, h("div", { class: cs("bcm-ui-element bcm-ui-table bcm-table", "tw-flex tw-w-full tw-flex-col tw-gap-2", {
|
|
118
|
+
"tw-hidden": !this.isReady,
|
|
119
|
+
}) }, this.showToolbar && (h(ToolbarTemplate, { tableId: _id, config: toolBarConfig, columns: columns, onHideColumn: e => this.handleColumnVisible(e), onSearch: e => this.handleSearch(e), onSelectExportType: e => this.handleFileType(e), extensions: this.fileTypes })), h("div", { id: `bcm-table-${this._id}`, class: "ag-theme-bcm", style: { height } }))));
|
|
120
|
+
}
|
|
121
|
+
static get is() { return "bcm-table"; }
|
|
122
|
+
static get originalStyleUrls() {
|
|
123
|
+
return {
|
|
124
|
+
"$": ["table.scss"]
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static get styleUrls() {
|
|
128
|
+
return {
|
|
129
|
+
"$": ["table.css"]
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
static get properties() {
|
|
133
|
+
return {
|
|
134
|
+
"_id": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"mutable": true,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "string",
|
|
139
|
+
"resolved": "string",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": ""
|
|
147
|
+
},
|
|
148
|
+
"attribute": "_id",
|
|
149
|
+
"reflect": true,
|
|
150
|
+
"defaultValue": "Generate.UID()"
|
|
151
|
+
},
|
|
152
|
+
"gridOptions": {
|
|
153
|
+
"type": "unknown",
|
|
154
|
+
"mutable": true,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "GridOptions",
|
|
157
|
+
"resolved": "GridOptions<any>",
|
|
158
|
+
"references": {
|
|
159
|
+
"GridOptions": {
|
|
160
|
+
"location": "import",
|
|
161
|
+
"path": "ag-grid-enterprise"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"defaultValue": "{}"
|
|
172
|
+
},
|
|
173
|
+
"extensions": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"mutable": true,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "string",
|
|
178
|
+
"resolved": "string",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": ""
|
|
186
|
+
},
|
|
187
|
+
"attribute": "extensions",
|
|
188
|
+
"reflect": true,
|
|
189
|
+
"defaultValue": "\"csv\""
|
|
190
|
+
},
|
|
191
|
+
"height": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": true,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "string",
|
|
196
|
+
"resolved": "string",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": false,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": ""
|
|
204
|
+
},
|
|
205
|
+
"attribute": "height",
|
|
206
|
+
"reflect": true,
|
|
207
|
+
"defaultValue": "\"250px\""
|
|
208
|
+
},
|
|
209
|
+
"showToolbar": {
|
|
210
|
+
"type": "boolean",
|
|
211
|
+
"mutable": false,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "boolean",
|
|
214
|
+
"resolved": "boolean",
|
|
215
|
+
"references": {}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": ""
|
|
222
|
+
},
|
|
223
|
+
"attribute": "show-toolbar",
|
|
224
|
+
"reflect": true,
|
|
225
|
+
"defaultValue": "false"
|
|
226
|
+
},
|
|
227
|
+
"showFooter": {
|
|
228
|
+
"type": "boolean",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "boolean",
|
|
232
|
+
"resolved": "boolean",
|
|
233
|
+
"references": {}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": false,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"attribute": "show-footer",
|
|
242
|
+
"reflect": true,
|
|
243
|
+
"defaultValue": "false"
|
|
244
|
+
},
|
|
245
|
+
"toolBarConfig": {
|
|
246
|
+
"type": "unknown",
|
|
247
|
+
"mutable": true,
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "Bcm.ToolBarButtonProps",
|
|
250
|
+
"resolved": "ToolBarButtonProps",
|
|
251
|
+
"references": {
|
|
252
|
+
"Bcm": {
|
|
253
|
+
"location": "import",
|
|
254
|
+
"path": "@bcm/model"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": ""
|
|
263
|
+
},
|
|
264
|
+
"defaultValue": "{\n showNewButton: false,\n showExportButton: true,\n showColumnButton: true,\n showFilterButton: false,\n showSearchInput: true,\n }"
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
static get states() {
|
|
269
|
+
return {
|
|
270
|
+
"agGrid": {},
|
|
271
|
+
"columns": {},
|
|
272
|
+
"fileTypes": {},
|
|
273
|
+
"isReady": {},
|
|
274
|
+
"footerOptions": {}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
static get elementRef() { return "el"; }
|
|
278
|
+
static get watchers() {
|
|
279
|
+
return [{
|
|
280
|
+
"propName": "gridOptions",
|
|
281
|
+
"methodName": "watchHandler"
|
|
282
|
+
}];
|
|
283
|
+
}
|
|
284
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { version } from "../../package.json";
|
|
2
|
+
import { LicenseManager } from "ag-grid-enterprise";
|
|
3
|
+
import { Env } from "@stencil/core";
|
|
2
4
|
|
|
3
5
|
window.bcm = (function () {
|
|
4
6
|
return {
|
|
@@ -17,6 +19,10 @@ function addHeadScript(obj) {
|
|
|
17
19
|
|
|
18
20
|
addHeadScript({ src: "https://kit.fontawesome.com/5e86bea963.js", crossOrigin: "anonymous" });
|
|
19
21
|
|
|
22
|
+
(() => {
|
|
23
|
+
LicenseManager.setLicenseKey(Env["AG_GRID_LICENSE_KEY"]);
|
|
24
|
+
})();
|
|
25
|
+
|
|
20
26
|
async function fetchJSON(url = null) {
|
|
21
27
|
const response = await fetch(url);
|
|
22
28
|
return await response.json();
|
|
@@ -456,6 +456,7 @@ export var Bcm;
|
|
|
456
456
|
TriggerType["hover"] = "hover";
|
|
457
457
|
TriggerType["click"] = "click";
|
|
458
458
|
TriggerType["focus"] = "focus";
|
|
459
|
+
TriggerType["custom"] = "custom";
|
|
459
460
|
})(TriggerType = Bcm.TriggerType || (Bcm.TriggerType = {}));
|
|
460
461
|
let ListType;
|
|
461
462
|
(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 };
|
|
@@ -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;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
|
+
import { I as IsLoad } from './is-load-decorator.js';
|
|
7
|
+
import './color-helper.js';
|
|
8
|
+
import './validators.js';
|
|
9
|
+
import { G as Generate } from './generate.js';
|
|
10
|
+
import './number-helper.js';
|
|
11
|
+
import './string-helper.js';
|
|
12
|
+
import './element-dragger.js';
|
|
13
|
+
import { a as Bcm } from './bcm.js';
|
|
14
|
+
import { C as CaptionTemplate } from './caption-template.js';
|
|
15
|
+
import { c as classnames } from './index2.js';
|
|
16
|
+
import './types.js';
|
|
17
|
+
import { L as LabelTemplate } from './label-template.js';
|
|
18
|
+
import './types2.js';
|
|
19
|
+
import { h as hooks, d as defineCustomElement$2 } from './rc-picker.js';
|
|
20
|
+
|
|
21
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
24
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
25
|
+
else
|
|
26
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
27
|
+
if (d = decorators[i])
|
|
28
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
+
};
|
|
31
|
+
const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
this.__registerHost();
|
|
35
|
+
this.change = createEvent(this, "bcm-change", 7);
|
|
36
|
+
this.onChange = (e) => {
|
|
37
|
+
this.value = this.getValueObject(e.detail);
|
|
38
|
+
this.change.emit(this.value);
|
|
39
|
+
};
|
|
40
|
+
this.getValueObject = (value) => {
|
|
41
|
+
if (value && hooks(value).isValid()) {
|
|
42
|
+
return {
|
|
43
|
+
isValid: hooks(value).isValid(),
|
|
44
|
+
date: hooks(value).toDate(),
|
|
45
|
+
timestamp: hooks(value).valueOf(),
|
|
46
|
+
dateObject: {
|
|
47
|
+
year: hooks(value).year(),
|
|
48
|
+
day: hooks(value).date(),
|
|
49
|
+
month: hooks(value).month(),
|
|
50
|
+
dayOfWeek: hooks(value).day(),
|
|
51
|
+
monthFirstDay: hooks(value).startOf("month").day(),
|
|
52
|
+
},
|
|
53
|
+
value: hooks(value).format(this.format),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
this._id = Generate.UID();
|
|
61
|
+
this.name = undefined;
|
|
62
|
+
this.value = undefined;
|
|
63
|
+
this.label = undefined;
|
|
64
|
+
this.placeholder = undefined;
|
|
65
|
+
this.size = Bcm.Size.medium;
|
|
66
|
+
this.fullWidth = false;
|
|
67
|
+
this.required = false;
|
|
68
|
+
this.clearable = false;
|
|
69
|
+
this.caption = undefined;
|
|
70
|
+
this.noCaption = false;
|
|
71
|
+
this.captionType = Bcm.Status.default;
|
|
72
|
+
this.captionError = undefined;
|
|
73
|
+
this.type = undefined;
|
|
74
|
+
this.format = "DD/MM/YYYY";
|
|
75
|
+
this.showTime = false;
|
|
76
|
+
this.showToday = true;
|
|
77
|
+
this.showNow = true;
|
|
78
|
+
}
|
|
79
|
+
async getValue() {
|
|
80
|
+
var _a;
|
|
81
|
+
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.value) || null;
|
|
82
|
+
}
|
|
83
|
+
async get() {
|
|
84
|
+
var _a;
|
|
85
|
+
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
|
|
86
|
+
}
|
|
87
|
+
async set(value) {
|
|
88
|
+
this.value = value;
|
|
89
|
+
}
|
|
90
|
+
async setClear() {
|
|
91
|
+
this.value = null;
|
|
92
|
+
}
|
|
93
|
+
async resetCaption() {
|
|
94
|
+
this.captionType = "default";
|
|
95
|
+
this.captionError = null;
|
|
96
|
+
}
|
|
97
|
+
async getInput() {
|
|
98
|
+
return this.el.querySelector("input");
|
|
99
|
+
}
|
|
100
|
+
async isValid() {
|
|
101
|
+
var _a;
|
|
102
|
+
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.isValid) || false;
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
const { label, size, captionType, required, _id } = this;
|
|
106
|
+
return (h(Host, { class: classnames("bcm-ui-element bcm-ui-action", "tw-inline-flex tw-flex-col") }, label && h(LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), h("bcm-rc-picker", { onBcmRCPickerChange: e => this.onChange(e), type: this.type, format: this.format, "show-time": this.showTime, clearable: this.clearable, val: this.value }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
|
|
107
|
+
}
|
|
108
|
+
get el() { return this; }
|
|
109
|
+
}, [0, "bcm-date", {
|
|
110
|
+
"_id": [513, "id"],
|
|
111
|
+
"name": [1],
|
|
112
|
+
"value": [1032],
|
|
113
|
+
"label": [1],
|
|
114
|
+
"placeholder": [1],
|
|
115
|
+
"size": [1],
|
|
116
|
+
"fullWidth": [4, "full-width"],
|
|
117
|
+
"required": [4],
|
|
118
|
+
"clearable": [4],
|
|
119
|
+
"caption": [1],
|
|
120
|
+
"noCaption": [4, "no-caption"],
|
|
121
|
+
"captionType": [1025, "caption-type"],
|
|
122
|
+
"captionError": [1025, "caption-error"],
|
|
123
|
+
"type": [1],
|
|
124
|
+
"format": [1],
|
|
125
|
+
"showTime": [4, "show-time"],
|
|
126
|
+
"showToday": [4, "show-today"],
|
|
127
|
+
"showNow": [4, "show-now"],
|
|
128
|
+
"getValue": [64],
|
|
129
|
+
"get": [64],
|
|
130
|
+
"set": [64],
|
|
131
|
+
"setClear": [64],
|
|
132
|
+
"resetCaption": [64],
|
|
133
|
+
"getInput": [64],
|
|
134
|
+
"isValid": [64]
|
|
135
|
+
}]);
|
|
136
|
+
__decorate([
|
|
137
|
+
IsLoad()
|
|
138
|
+
], BcmDate$1.prototype, "el", void 0);
|
|
139
|
+
function defineCustomElement$1() {
|
|
140
|
+
if (typeof customElements === "undefined") {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const components = ["bcm-date", "bcm-rc-picker"];
|
|
144
|
+
components.forEach(tagName => { switch (tagName) {
|
|
145
|
+
case "bcm-date":
|
|
146
|
+
if (!customElements.get(tagName)) {
|
|
147
|
+
customElements.define(tagName, BcmDate$1);
|
|
148
|
+
}
|
|
149
|
+
break;
|
|
150
|
+
case "bcm-rc-picker":
|
|
151
|
+
if (!customElements.get(tagName)) {
|
|
152
|
+
defineCustomElement$2();
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
} });
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const BcmDate = BcmDate$1;
|
|
159
|
+
const defineCustomElement = defineCustomElement$1;
|
|
160
|
+
|
|
161
|
+
export { BcmDate, defineCustomElement };
|
|
@@ -20,12 +20,15 @@ const BcmFormComponents = [
|
|
|
20
20
|
'BCM-FORM-GROUP',
|
|
21
21
|
'BCM-LIST',
|
|
22
22
|
'BCM-COLORPICKER',
|
|
23
|
+
'BCM-DATE',
|
|
23
24
|
'BCM-DATE-PICKER',
|
|
24
25
|
'BCM-TIME-PICKER',
|
|
25
26
|
'BCM-DATETIME-PICKER',
|
|
26
27
|
'BCM-SELECT',
|
|
27
28
|
'BCM-LISTBOX',
|
|
28
|
-
'BCM-CHIP-GROUP',
|
|
29
|
+
'BCM-CHIP-GROUP',
|
|
30
|
+
'BCM-INPUT-DROPDOWN'
|
|
31
|
+
//... to be added to v3
|
|
29
32
|
];
|
|
30
33
|
|
|
31
34
|
const form2Css = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}";
|
|
@@ -96,6 +96,7 @@ const BcmForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
96
96
|
LIST: 'list',
|
|
97
97
|
//
|
|
98
98
|
COLORPICKER: 'colorpicker',
|
|
99
|
+
DATE: 'date',
|
|
99
100
|
// picker aslında tek komponent hepsi datetimepicker
|
|
100
101
|
DATE_PICKER: 'date-picker',
|
|
101
102
|
TIME_PICKER: 'time-picker',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BcmInputDropdown extends Components.BcmInputDropdown, HTMLElement {}
|
|
4
|
+
export const BcmInputDropdown: {
|
|
5
|
+
prototype: BcmInputDropdown;
|
|
6
|
+
new (): BcmInputDropdown;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|