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
|
@@ -6,9 +6,22 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index$1 = require('./index-
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const _commonjsHelpers = require('./_commonjsHelpers-
|
|
9
|
+
const index$1 = require('./index-c591ecec.js');
|
|
10
|
+
const index = require('./index-e05a7c6f.js');
|
|
11
|
+
const _commonjsHelpers = require('./_commonjsHelpers-ed84c3ca.js');
|
|
12
|
+
const generate = require('./generate-7e161828.js');
|
|
13
|
+
const numberHelper = require('./number-helper-c26ca8a7.js');
|
|
14
|
+
const stringHelper = require('./string-helper-c432b17c.js');
|
|
15
|
+
const validators = require('./validators-5ca90062.js');
|
|
16
|
+
const bcm = require('./bcm-fd724fe9.js');
|
|
17
|
+
const captionTemplate = require('./caption-template-81dbc490.js');
|
|
18
|
+
const inputTemplate = require('./input-template-c8d5ae30.js');
|
|
19
|
+
const index$2 = require('./index-95ae50d0.js');
|
|
20
|
+
const utils = require('./utils-fc077139.js');
|
|
21
|
+
const isLoadDecorator = require('./is-load-decorator-7575fbd2.js');
|
|
22
|
+
require('./package-016f287a.js');
|
|
23
|
+
require('./colors-078851ec.js');
|
|
24
|
+
require('./types-cc4adee7.js');
|
|
12
25
|
|
|
13
26
|
function u(){return (u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e}).apply(this,arguments)}function c(e,r){if(null==e)return {};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function i(e){var t=index.react.useRef(e),n=index.react.useRef(function(e){t.current&&t.current(e);});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},f=function(e){return "touches"in e},v=function(e){return e&&e.ownerDocument.defaultView||self},d=function(e,r,t){var n=e.getBoundingClientRect(),o=f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return {left:s((o.pageX-(n.left+v(e).pageXOffset))/n.width),top:s((o.pageY-(n.top+v(e).pageYOffset))/n.height)}},h=function(e){!f(e)&&e.preventDefault();},m=index.react.memo(function(o){var a=o.onMove,l=o.onKey,s=c(o,["onMove","onKey"]),m=index.react.useRef(null),g=i(a),p=i(l),b=index.react.useRef(null),_=index.react.useRef(!1),x=index.react.useMemo(function(){var e=function(e){h(e),(f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1);},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r);}return [function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier);}n.focus(),g(d(n,r,b.current)),t(!0);}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}));},t]},[p,g]),C=x[0],E=x[1],H=x[2];return index.react.useEffect(function(){return H},[H]),index.react.createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),g=function(e){return e.filter(Boolean).join(" ")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return index.react.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},index.react.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},x=function(e){return L(C(e))},C=function(e){return "#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return {h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return "hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return {r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):"";return "#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return {h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},S=index.react.memo(function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return index.react.createElement("div",{className:o},index.react.createElement(m,{onMove:function(e){n({h:360*e.left});},onKey:function(e){n({h:s(t+360*e.left,0,360)});},"aria-label":"Hue","aria-valuenow":b(t),"aria-valuemax":"360","aria-valuemin":"0"},index.react.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=index.react.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return index.react.createElement("div",{className:"react-colorful__saturation",style:o},index.react.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top});},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)});},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},index.react.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return !0;for(var t in e)if(e[t]!==r[t])return !1;return !0},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=index.react.useState(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=index.react.useRef({color:t,hsva:s});index.react.useEffect(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r);}},[t,e]),index.react.useEffect(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r));},[s,e,u]);var d=index.react.useCallback(function(e){f(function(r){return Object.assign({},r,e)});},[]);return [s,d]}var V="undefined"!=typeof window?index.react.useLayoutEffect:index.react.useEffect,$=function(){return ("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute("nonce",n),r.head.appendChild(t);}},[]);},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=index.react.useRef(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return index.react.createElement("div",u({},s,{ref:f,className:m}),index.react.createElement(T,{hsva:d,onChange:h}),index.react.createElement(S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return index.react.createElement(U,u({},r,{colorModel:W}))};
|
|
14
27
|
|
|
@@ -17224,4 +17237,351 @@ const BcmColorful = class {
|
|
|
17224
17237
|
};
|
|
17225
17238
|
BcmColorful.style = colorfulCss;
|
|
17226
17239
|
|
|
17240
|
+
const inputCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
|
|
17241
|
+
|
|
17242
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17243
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17244
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
17245
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
17246
|
+
else
|
|
17247
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
17248
|
+
if (d = decorators[i])
|
|
17249
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17250
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17251
|
+
};
|
|
17252
|
+
const BcmInput = class {
|
|
17253
|
+
constructor(hostRef) {
|
|
17254
|
+
index$1.registerInstance(this, hostRef);
|
|
17255
|
+
this.focus = index$1.createEvent(this, "bcm-focus", 7);
|
|
17256
|
+
this.blur = index$1.createEvent(this, "bcm-blur", 7);
|
|
17257
|
+
this.clear = index$1.createEvent(this, "bcm-clear", 7);
|
|
17258
|
+
this.change = index$1.createEvent(this, "bcm-change", 7);
|
|
17259
|
+
this.input = index$1.createEvent(this, "bcm-input", 7);
|
|
17260
|
+
this.isBlur = false;
|
|
17261
|
+
this._id = generate.Generate.UID();
|
|
17262
|
+
this._internal_id = generate.Generate.UID();
|
|
17263
|
+
this.value = '';
|
|
17264
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
17265
|
+
this.label = undefined;
|
|
17266
|
+
this.pattern = undefined;
|
|
17267
|
+
this.tooltip = undefined;
|
|
17268
|
+
this.placeholder = undefined;
|
|
17269
|
+
this.disabled = false;
|
|
17270
|
+
this.readonly = false;
|
|
17271
|
+
this.clearable = false;
|
|
17272
|
+
this.autocomplete = false;
|
|
17273
|
+
this.name = undefined;
|
|
17274
|
+
this.type = bcm.Bcm$1.InputType.text;
|
|
17275
|
+
this.hidden = false;
|
|
17276
|
+
this.required = false;
|
|
17277
|
+
this.fullWidth = false;
|
|
17278
|
+
this.noDefaultIcon = undefined;
|
|
17279
|
+
this.disableWatchValue = false // datetimepicker
|
|
17280
|
+
;
|
|
17281
|
+
this.passwordToggle = false // type password
|
|
17282
|
+
;
|
|
17283
|
+
this.maxLength = null;
|
|
17284
|
+
this.unitPrefix = null;
|
|
17285
|
+
this.unit = undefined;
|
|
17286
|
+
this.decimal = true;
|
|
17287
|
+
this.min = undefined;
|
|
17288
|
+
this.max = undefined;
|
|
17289
|
+
this.step = undefined;
|
|
17290
|
+
this.caption = undefined;
|
|
17291
|
+
this.noCaption = false;
|
|
17292
|
+
this.captionType = bcm.Bcm$1.Status.default;
|
|
17293
|
+
this.captionError = undefined;
|
|
17294
|
+
this.customErrorMessage = undefined;
|
|
17295
|
+
this._prefix = undefined;
|
|
17296
|
+
this._suffix = undefined;
|
|
17297
|
+
this.captionCache = undefined;
|
|
17298
|
+
this.captionTypeCache = undefined;
|
|
17299
|
+
this.inValid = false;
|
|
17300
|
+
this.valueCache = '';
|
|
17301
|
+
this.focused = false;
|
|
17302
|
+
this.isPasswordVisible = false;
|
|
17303
|
+
}
|
|
17304
|
+
connectedCallback() {
|
|
17305
|
+
this.valueCache = this.value;
|
|
17306
|
+
this.captionCache = this.caption;
|
|
17307
|
+
this.captionTypeCache = this.captionType;
|
|
17308
|
+
}
|
|
17309
|
+
componentWillRender() {
|
|
17310
|
+
const { type, isBlur, value } = this;
|
|
17311
|
+
if (value) {
|
|
17312
|
+
this.value.length > 0 && (this.checkPattern());
|
|
17313
|
+
switch (type) {
|
|
17314
|
+
case "number":
|
|
17315
|
+
{
|
|
17316
|
+
!this.checkValid("number") && (this.validationRange());
|
|
17317
|
+
}
|
|
17318
|
+
break;
|
|
17319
|
+
case "email":
|
|
17320
|
+
{
|
|
17321
|
+
isBlur && (this.checkValid("email"));
|
|
17322
|
+
}
|
|
17323
|
+
break;
|
|
17324
|
+
case "tel":
|
|
17325
|
+
{
|
|
17326
|
+
isBlur && (this.checkValid("phone"));
|
|
17327
|
+
}
|
|
17328
|
+
break;
|
|
17329
|
+
}
|
|
17330
|
+
}
|
|
17331
|
+
else {
|
|
17332
|
+
!this.required && (this.resetCaption());
|
|
17333
|
+
}
|
|
17334
|
+
}
|
|
17335
|
+
async onBcmFocus() {
|
|
17336
|
+
this.inputElement.focus();
|
|
17337
|
+
}
|
|
17338
|
+
async onBcmBlur() {
|
|
17339
|
+
this.inputElement.blur();
|
|
17340
|
+
}
|
|
17341
|
+
async onBcmSelect() {
|
|
17342
|
+
this.inputElement.select();
|
|
17343
|
+
}
|
|
17344
|
+
async set(data) {
|
|
17345
|
+
await this.setValue(data);
|
|
17346
|
+
}
|
|
17347
|
+
async get() {
|
|
17348
|
+
return this.value || null;
|
|
17349
|
+
}
|
|
17350
|
+
async setValue(value) {
|
|
17351
|
+
this.inputElement.value = value;
|
|
17352
|
+
this.handleChange();
|
|
17353
|
+
return value;
|
|
17354
|
+
}
|
|
17355
|
+
async setClear() {
|
|
17356
|
+
this.inputElement.value = '';
|
|
17357
|
+
this.value = '';
|
|
17358
|
+
await utils.delay(10);
|
|
17359
|
+
return Promise.resolve();
|
|
17360
|
+
}
|
|
17361
|
+
async resetCaption() {
|
|
17362
|
+
await utils.delay(10);
|
|
17363
|
+
this.caption = this.captionCache;
|
|
17364
|
+
this.captionType = this.captionTypeCache;
|
|
17365
|
+
this.captionError = null;
|
|
17366
|
+
this.inValid = false;
|
|
17367
|
+
await utils.delay(10);
|
|
17368
|
+
return Promise.resolve();
|
|
17369
|
+
}
|
|
17370
|
+
async getValue() {
|
|
17371
|
+
return this.value;
|
|
17372
|
+
}
|
|
17373
|
+
watchValue(newValue) {
|
|
17374
|
+
this.inputElement.value = newValue;
|
|
17375
|
+
if (!this.disableWatchValue && this.type != "number") {
|
|
17376
|
+
this.handleChange();
|
|
17377
|
+
}
|
|
17378
|
+
}
|
|
17379
|
+
listenKeyDown(e) {
|
|
17380
|
+
if (!this.disabled && !this.readonly) {
|
|
17381
|
+
this.onBcmFocus();
|
|
17382
|
+
if (this.type == "number") {
|
|
17383
|
+
var which = e.which || 0;
|
|
17384
|
+
var key = e.key;
|
|
17385
|
+
if (which == 38) { // up arrow
|
|
17386
|
+
e.preventDefault(),
|
|
17387
|
+
this.stepUpOrDown('up');
|
|
17388
|
+
}
|
|
17389
|
+
if (which == 40) { // down arrow
|
|
17390
|
+
e.preventDefault(),
|
|
17391
|
+
this.stepUpOrDown('down');
|
|
17392
|
+
}
|
|
17393
|
+
if ((which == 190 || which == 110 || key == ".") && this.value.indexOf(".") > -1) { //.
|
|
17394
|
+
e.preventDefault();
|
|
17395
|
+
}
|
|
17396
|
+
if ((which == 189 || which == 109 || key == "-")) { //-
|
|
17397
|
+
if (this.value.charAt(0) == '-' || this.value.indexOf("-") > -1) {
|
|
17398
|
+
e.preventDefault();
|
|
17399
|
+
}
|
|
17400
|
+
}
|
|
17401
|
+
}
|
|
17402
|
+
}
|
|
17403
|
+
}
|
|
17404
|
+
handleFocus() {
|
|
17405
|
+
this.focused = true;
|
|
17406
|
+
this.focus.emit();
|
|
17407
|
+
this.whatchHasFocus();
|
|
17408
|
+
}
|
|
17409
|
+
handleBlur() {
|
|
17410
|
+
this.focused = false;
|
|
17411
|
+
this.isBlur = true;
|
|
17412
|
+
this.whatchHasFocus();
|
|
17413
|
+
this.blur.emit();
|
|
17414
|
+
}
|
|
17415
|
+
handleChange() {
|
|
17416
|
+
this.valueSync();
|
|
17417
|
+
}
|
|
17418
|
+
handleInput() {
|
|
17419
|
+
if (this.type == "number" && this.maxLength) {
|
|
17420
|
+
const inputValue = this.inputElement.value;
|
|
17421
|
+
if (inputValue && inputValue.length > 0 && inputValue.length > this.maxLength) {
|
|
17422
|
+
this.inputElement.value = inputValue.substring(0, this.maxLength);
|
|
17423
|
+
}
|
|
17424
|
+
}
|
|
17425
|
+
this.valueSync();
|
|
17426
|
+
}
|
|
17427
|
+
valueSync() {
|
|
17428
|
+
if (this.value != this.inputElement.value) {
|
|
17429
|
+
this.value = this.inputElement.value;
|
|
17430
|
+
this.change.emit(this.value);
|
|
17431
|
+
return true;
|
|
17432
|
+
}
|
|
17433
|
+
this.input.emit(this.value);
|
|
17434
|
+
return false;
|
|
17435
|
+
}
|
|
17436
|
+
handleClear(e) {
|
|
17437
|
+
this.inputElement.value = '';
|
|
17438
|
+
this.value = '';
|
|
17439
|
+
this.inputElement.focus();
|
|
17440
|
+
this.clear.emit(e);
|
|
17441
|
+
this.change.emit(this.value);
|
|
17442
|
+
e.stopPropagation();
|
|
17443
|
+
}
|
|
17444
|
+
changePasswordVisibility() {
|
|
17445
|
+
this.isPasswordVisible = !this.isPasswordVisible;
|
|
17446
|
+
}
|
|
17447
|
+
setCaption(caption = null, captionType = null) {
|
|
17448
|
+
this.caption = caption || this.captionCache;
|
|
17449
|
+
this.captionType = captionType || this.captionTypeCache;
|
|
17450
|
+
this.captionError = captionType == "error" ? caption : null;
|
|
17451
|
+
}
|
|
17452
|
+
stepUpOrDown(type) {
|
|
17453
|
+
if (!this.inValid && !this.disabled && !this.readonly) {
|
|
17454
|
+
let step = +(this.step) || 1;
|
|
17455
|
+
let val = +(this.value);
|
|
17456
|
+
if (type == 'up') {
|
|
17457
|
+
val = +(val + step);
|
|
17458
|
+
}
|
|
17459
|
+
else {
|
|
17460
|
+
val = +(val - step);
|
|
17461
|
+
}
|
|
17462
|
+
this.value = val.toString();
|
|
17463
|
+
this.change.emit(this.value);
|
|
17464
|
+
}
|
|
17465
|
+
}
|
|
17466
|
+
validationRange() {
|
|
17467
|
+
const { min, max, value } = this;
|
|
17468
|
+
if (value !== undefined) {
|
|
17469
|
+
if ((min !== undefined) && (max !== undefined)) {
|
|
17470
|
+
if (value < min || value > max) {
|
|
17471
|
+
this.setCaption(stringHelper.StringHelper.getMessage('between', [min, max]), "error");
|
|
17472
|
+
return false;
|
|
17473
|
+
}
|
|
17474
|
+
}
|
|
17475
|
+
else if (min !== undefined) {
|
|
17476
|
+
if (value < min) {
|
|
17477
|
+
this.setCaption(stringHelper.StringHelper.getMessage('min', [min]), "error");
|
|
17478
|
+
return false;
|
|
17479
|
+
}
|
|
17480
|
+
}
|
|
17481
|
+
else if (max !== undefined) {
|
|
17482
|
+
if (value > max) {
|
|
17483
|
+
this.setCaption(stringHelper.StringHelper.getMessage('max', [max]), "error");
|
|
17484
|
+
return false;
|
|
17485
|
+
}
|
|
17486
|
+
}
|
|
17487
|
+
}
|
|
17488
|
+
this.setCaption();
|
|
17489
|
+
return true;
|
|
17490
|
+
}
|
|
17491
|
+
checkPattern() {
|
|
17492
|
+
const { pattern, value } = this;
|
|
17493
|
+
if (pattern) {
|
|
17494
|
+
if (validators.Validators.pattern(value, pattern)) {
|
|
17495
|
+
this.setCaption();
|
|
17496
|
+
this.inValid = false;
|
|
17497
|
+
}
|
|
17498
|
+
else {
|
|
17499
|
+
this.setCaption(stringHelper.StringHelper.getMessage('pattern'), "error");
|
|
17500
|
+
this.inValid = true;
|
|
17501
|
+
}
|
|
17502
|
+
}
|
|
17503
|
+
}
|
|
17504
|
+
checkValid(type) {
|
|
17505
|
+
const { value } = this;
|
|
17506
|
+
if (validators.Validators.isValidate(value, type)) {
|
|
17507
|
+
this.setCaption();
|
|
17508
|
+
this.inValid = false;
|
|
17509
|
+
}
|
|
17510
|
+
else {
|
|
17511
|
+
this.setCaption(stringHelper.StringHelper.getMessage(type), "error");
|
|
17512
|
+
this.inValid = true;
|
|
17513
|
+
}
|
|
17514
|
+
return this.inValid;
|
|
17515
|
+
}
|
|
17516
|
+
whatchHasFocus() {
|
|
17517
|
+
const { type, focused, valueCache, inValid } = this;
|
|
17518
|
+
if (type == bcm.Bcm$1.InputType.number && inValid) {
|
|
17519
|
+
console.log("whatchHasFocus");
|
|
17520
|
+
if (focused) {
|
|
17521
|
+
this.value = '';
|
|
17522
|
+
}
|
|
17523
|
+
else {
|
|
17524
|
+
if (!stringHelper.StringHelper.isNullOrEmpty(this.value)) {
|
|
17525
|
+
this.value = this.value ? this.fixToNumber(this.value) : '';
|
|
17526
|
+
}
|
|
17527
|
+
else {
|
|
17528
|
+
this.value = valueCache;
|
|
17529
|
+
}
|
|
17530
|
+
}
|
|
17531
|
+
}
|
|
17532
|
+
}
|
|
17533
|
+
fixToNumber(val) {
|
|
17534
|
+
if (val) {
|
|
17535
|
+
const decLen = numberHelper.NumberHelper.getDecimalLength(this.step);
|
|
17536
|
+
return decLen > 0 ? numberHelper.NumberHelper.parseFloatFixed(val, decLen) : val;
|
|
17537
|
+
}
|
|
17538
|
+
return val;
|
|
17539
|
+
}
|
|
17540
|
+
eyeDropper() {
|
|
17541
|
+
const eyeDropper = new window.EyeDropper();
|
|
17542
|
+
eyeDropper
|
|
17543
|
+
.open()
|
|
17544
|
+
.then((color) => {
|
|
17545
|
+
console.log("color: ", color.sRGBHex);
|
|
17546
|
+
this.setValue(color.sRGBHex);
|
|
17547
|
+
})
|
|
17548
|
+
.catch((error) => {
|
|
17549
|
+
if (error.name === "NotAllowedError") {
|
|
17550
|
+
console.log("Permission to access sensor was denied.");
|
|
17551
|
+
}
|
|
17552
|
+
else if (error.name === "NotSupportedError") {
|
|
17553
|
+
console.log("Sensor not supported.");
|
|
17554
|
+
}
|
|
17555
|
+
});
|
|
17556
|
+
}
|
|
17557
|
+
isEyeDropperSupported() {
|
|
17558
|
+
return typeof window !== "undefined" && "EyeDropper" in window;
|
|
17559
|
+
}
|
|
17560
|
+
toggleLinked() {
|
|
17561
|
+
const linkedElement = document.getElementById(`${this._id}-linked`);
|
|
17562
|
+
if (linkedElement) {
|
|
17563
|
+
linkedElement.toggle();
|
|
17564
|
+
}
|
|
17565
|
+
}
|
|
17566
|
+
render() {
|
|
17567
|
+
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, focused, unitPrefix, noCaption, required, hidden, _id, autocomplete } = this;
|
|
17568
|
+
const isActiveClearable = (value === null || value === void 0 ? void 0 : value.length) > 0 && clearable;
|
|
17569
|
+
const hostClasses = index$2.classnames('bcm-input', `bcm-input__container--${size}`, {
|
|
17570
|
+
hidden,
|
|
17571
|
+
// 'no-margin': noMargin,
|
|
17572
|
+
'full-width': fullWidth
|
|
17573
|
+
});
|
|
17574
|
+
return (index$1.h(index$1.Host, { onfocus: () => this.onBcmFocus(), class: hostClasses, onClick: () => this.onBcmFocus() }, label && index$1.h("bcm-label", { onClick: () => this.toggleLinked(), tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: _id }), index$1.h(inputTemplate.InputTemplate, { id: _id, type: type, value: value, pattern: this.pattern, placeholder: placeholder, disabled: disabled, readonly: readonly, clearable: isActiveClearable, passwordToggle: passwordToggle, isPasswordVisible: isPasswordVisible, noDefaultIcon: noDefaultIcon, focused: focused, inValid: inValid, unitPrefix: unitPrefix, maxLength: this.maxLength, internalId: this._internal_id, captionType: captionType, unit: unit, size: size, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), steps: (e) => this.stepUpOrDown(e), changePasswordVisibility: () => this.changePasswordVisibility(), handleClear: (e) => this.handleClear(e), eyeDropper: () => this.eyeDropper(), isEyeDropperSupported: () => this.isEyeDropperSupported(), ref: (el) => this.inputElement = el, _suffix: this._suffix, _prefix: this._prefix, autocomplete: autocomplete }), index$1.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage }), type == bcm.Bcm$1.InputType.color &&
|
|
17575
|
+
index$1.h("bcm-linked", { targetId: this._id + "-container", id: this._id + "-linked" }, index$1.h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.setValue(e.detail) }))));
|
|
17576
|
+
}
|
|
17577
|
+
static get watchers() { return {
|
|
17578
|
+
"value": ["watchValue"]
|
|
17579
|
+
}; }
|
|
17580
|
+
};
|
|
17581
|
+
__decorate([
|
|
17582
|
+
isLoadDecorator.IsLoad()
|
|
17583
|
+
], BcmInput.prototype, "inputElement", void 0);
|
|
17584
|
+
BcmInput.style = inputCss;
|
|
17585
|
+
|
|
17227
17586
|
exports.bcm_colorful = BcmColorful;
|
|
17587
|
+
exports.bcm_input = BcmInput;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
10
|
const elementDragger = require('./element-dragger-a8562f82.js');
|
|
11
|
-
const index$1 = require('./index-
|
|
11
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
12
12
|
require('./utils-fc077139.js');
|
|
13
|
-
require('./_commonjsHelpers-
|
|
13
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
14
|
|
|
15
15
|
const colorpickerCss = "@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{position:relative;margin:0 0 8px 0}.color-picker{position:relative;width:200px}.color-picker.open .picker{opacity:1;visibility:visible;transform:scale(1) translateY(56px)}.picker{width:300px;position:absolute;top:0;z-index:1;background-color:#ffffff;border:1px solid #F6F6F6;box-shadow:0px 3px 3.6px 0.4px rgba(0, 0, 0, 0.15);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px)}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.input{display:flex;cursor:pointer;border:1px solid var(--bcm-color-grey-5);border-radius:2px}.color{position:relative;width:100%;height:166px;user-select:none}.color img{width:100%;height:100%;user-select:none;pointer-events:none}.color-indicator{position:absolute;top:0;left:0;width:17px;height:17px;border:1px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.25);transform:translate(0, 0);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.colors{position:relative;width:100%;height:16px;margin-top:8px}.colors img{width:100%;user-select:none;pointer-events:none}.colors-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;user-select:none}.colors-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.transparency{position:relative;width:100%;height:16px;margin-top:8px}.transparency-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;background:transparent none repeat center center/20px}.transparency-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box}.colors-transparency{padding:16px}.active-color{display:flex;align-items:center;width:100%;height:30px}.active-color .color-thumb{width:100%;height:100%;background-color:transparent;border-radius:1px 0 0 1px}.active-color .color-text{font-size:14px;color:#656565;margin-left:8px}.icon{display:flex;align-items:center;justify-content:center;cursor:pointer;width:30px;color:var(--bcm-color-grey-6)}.color-input{border:none;width:100%;padding:10px;outline:none;-webkit-tap-highlight-color:transparent}";
|
|
16
16
|
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
10
|
-
const index$1 = require('./index-
|
|
11
|
-
const isLoadDecorator = require('./is-load-decorator-
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
+
const isLoadDecorator = require('./is-load-decorator-7575fbd2.js');
|
|
12
12
|
const datetimeHelper = require('./datetime-helper-eaf4fadb.js');
|
|
13
|
-
const generate = require('./generate-
|
|
14
|
-
const bcm = require('./bcm-
|
|
13
|
+
const generate = require('./generate-7e161828.js');
|
|
14
|
+
const bcm = require('./bcm-fd724fe9.js');
|
|
15
15
|
const utils = require('./utils-fc077139.js');
|
|
16
|
-
require('./_commonjsHelpers-
|
|
17
|
-
require('./package-
|
|
18
|
-
require('./colors-
|
|
16
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
17
|
+
require('./package-016f287a.js');
|
|
18
|
+
require('./colors-078851ec.js');
|
|
19
19
|
|
|
20
20
|
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-block;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
|
|
21
21
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const isLoadDecorator = require('./is-load-decorator-7575fbd2.js');
|
|
11
|
+
require('./color-helper-c3a819ea.js');
|
|
12
|
+
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
+
const generate = require('./generate-7e161828.js');
|
|
14
|
+
require('./number-helper-c26ca8a7.js');
|
|
15
|
+
require('./string-helper-c432b17c.js');
|
|
16
|
+
require('./validators-5ca90062.js');
|
|
17
|
+
require('./element-dragger-a8562f82.js');
|
|
18
|
+
const bcm = require('./bcm-fd724fe9.js');
|
|
19
|
+
const captionTemplate = require('./caption-template-81dbc490.js');
|
|
20
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
21
|
+
require('./types-cc4adee7.js');
|
|
22
|
+
const labelTemplate = require('./label-template-8738acbd.js');
|
|
23
|
+
require('./types-7523fd99.js');
|
|
24
|
+
const moment = require('./moment-c1a71617.js');
|
|
25
|
+
require('./colors-56282b00.js');
|
|
26
|
+
require('./utils-fc077139.js');
|
|
27
|
+
require('./colors-078851ec.js');
|
|
28
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
29
|
+
require('./package-016f287a.js');
|
|
30
|
+
require('./slot-template-bc4e1c50.js');
|
|
31
|
+
|
|
32
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
33
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
35
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
36
|
+
else
|
|
37
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
38
|
+
if (d = decorators[i])
|
|
39
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
+
};
|
|
42
|
+
const BcmDate = class {
|
|
43
|
+
constructor(hostRef) {
|
|
44
|
+
index.registerInstance(this, hostRef);
|
|
45
|
+
this.change = index.createEvent(this, "bcm-change", 7);
|
|
46
|
+
this.onChange = (e) => {
|
|
47
|
+
this.value = this.getValueObject(e.detail);
|
|
48
|
+
this.change.emit(this.value);
|
|
49
|
+
};
|
|
50
|
+
this.getValueObject = (value) => {
|
|
51
|
+
if (value && moment.hooks(value).isValid()) {
|
|
52
|
+
return {
|
|
53
|
+
isValid: moment.hooks(value).isValid(),
|
|
54
|
+
date: moment.hooks(value).toDate(),
|
|
55
|
+
timestamp: moment.hooks(value).valueOf(),
|
|
56
|
+
dateObject: {
|
|
57
|
+
year: moment.hooks(value).year(),
|
|
58
|
+
day: moment.hooks(value).date(),
|
|
59
|
+
month: moment.hooks(value).month(),
|
|
60
|
+
dayOfWeek: moment.hooks(value).day(),
|
|
61
|
+
monthFirstDay: moment.hooks(value).startOf("month").day(),
|
|
62
|
+
},
|
|
63
|
+
value: moment.hooks(value).format(this.format),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
this._id = generate.Generate.UID();
|
|
71
|
+
this.name = undefined;
|
|
72
|
+
this.value = undefined;
|
|
73
|
+
this.label = undefined;
|
|
74
|
+
this.placeholder = undefined;
|
|
75
|
+
this.size = bcm.Bcm.Size.medium;
|
|
76
|
+
this.fullWidth = false;
|
|
77
|
+
this.required = false;
|
|
78
|
+
this.clearable = false;
|
|
79
|
+
this.caption = undefined;
|
|
80
|
+
this.noCaption = false;
|
|
81
|
+
this.captionType = bcm.Bcm.Status.default;
|
|
82
|
+
this.captionError = undefined;
|
|
83
|
+
this.type = undefined;
|
|
84
|
+
this.format = "DD/MM/YYYY";
|
|
85
|
+
this.showTime = false;
|
|
86
|
+
this.showToday = true;
|
|
87
|
+
this.showNow = true;
|
|
88
|
+
}
|
|
89
|
+
async getValue() {
|
|
90
|
+
var _a;
|
|
91
|
+
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.value) || null;
|
|
92
|
+
}
|
|
93
|
+
async get() {
|
|
94
|
+
var _a;
|
|
95
|
+
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
|
|
96
|
+
}
|
|
97
|
+
async set(value) {
|
|
98
|
+
this.value = value;
|
|
99
|
+
}
|
|
100
|
+
async setClear() {
|
|
101
|
+
this.value = null;
|
|
102
|
+
}
|
|
103
|
+
async resetCaption() {
|
|
104
|
+
this.captionType = "default";
|
|
105
|
+
this.captionError = null;
|
|
106
|
+
}
|
|
107
|
+
async getInput() {
|
|
108
|
+
return this.el.querySelector("input");
|
|
109
|
+
}
|
|
110
|
+
async isValid() {
|
|
111
|
+
var _a;
|
|
112
|
+
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.isValid) || false;
|
|
113
|
+
}
|
|
114
|
+
render() {
|
|
115
|
+
const { label, size, captionType, required, _id } = this;
|
|
116
|
+
return (index.h(index.Host, { class: index$1.classnames("bcm-ui-element bcm-ui-action", "tw-inline-flex tw-flex-col") }, label && index.h(labelTemplate.LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), index.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 }), index.h(captionTemplate.CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
|
|
117
|
+
}
|
|
118
|
+
get el() { return index.getElement(this); }
|
|
119
|
+
};
|
|
120
|
+
__decorate([
|
|
121
|
+
isLoadDecorator.IsLoad()
|
|
122
|
+
], BcmDate.prototype, "el", void 0);
|
|
123
|
+
|
|
124
|
+
exports.bcm_date = BcmDate;
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
10
|
const elementDragger = require('./element-dragger-a8562f82.js');
|
|
11
|
-
const index$1 = require('./index-
|
|
11
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
12
12
|
const datetimeHelper = require('./datetime-helper-eaf4fadb.js');
|
|
13
13
|
const utils = require('./utils-fc077139.js');
|
|
14
|
-
const generate = require('./generate-
|
|
15
|
-
const bcm = require('./bcm-
|
|
16
|
-
const popoverPlacement = require('./popover-placement-
|
|
17
|
-
const labelTemplate = require('./label-template-
|
|
18
|
-
const isLoadDecorator = require('./is-load-decorator-
|
|
19
|
-
require('./_commonjsHelpers-
|
|
20
|
-
require('./package-
|
|
21
|
-
require('./colors-
|
|
22
|
-
require('./string-helper-
|
|
23
|
-
require('./slot-template-
|
|
14
|
+
const generate = require('./generate-7e161828.js');
|
|
15
|
+
const bcm = require('./bcm-fd724fe9.js');
|
|
16
|
+
const popoverPlacement = require('./popover-placement-2161105e.js');
|
|
17
|
+
const labelTemplate = require('./label-template-8738acbd.js');
|
|
18
|
+
const isLoadDecorator = require('./is-load-decorator-7575fbd2.js');
|
|
19
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
20
|
+
require('./package-016f287a.js');
|
|
21
|
+
require('./colors-078851ec.js');
|
|
22
|
+
require('./string-helper-c432b17c.js');
|
|
23
|
+
require('./slot-template-bc4e1c50.js');
|
|
24
24
|
|
|
25
25
|
var Months;
|
|
26
26
|
(function (Months) {
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
10
|
-
const generate = require('./generate-
|
|
11
|
-
require('./package-
|
|
12
|
-
require('./colors-
|
|
13
|
-
require('./_commonjsHelpers-
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const generate = require('./generate-7e161828.js');
|
|
11
|
+
require('./package-016f287a.js');
|
|
12
|
+
require('./colors-078851ec.js');
|
|
13
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
14
|
|
|
15
15
|
const defaultCss = "@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}";
|
|
16
16
|
|