bromcom-ui 2.9.0-rc.1 → 2.9.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/global.js +19 -5
- package/dist/bromcom-ui/{p-bc840f30.entry.js → p-01416407.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4aa0e6b1.js → p-034bbcdd.js} +1 -1
- package/dist/bromcom-ui/p-042efd5e.entry.js +5 -0
- package/dist/bromcom-ui/p-068d918e.entry.js +5 -0
- package/dist/bromcom-ui/p-0976ff0f.entry.js +5 -0
- package/dist/bromcom-ui/p-0a7f3cd6.entry.js +5 -0
- package/dist/bromcom-ui/p-0b0ff7ee.entry.js +5 -0
- package/dist/bromcom-ui/p-0ce0079c.entry.js +5 -0
- package/dist/bromcom-ui/p-0ff006e8.entry.js +5 -0
- package/dist/bromcom-ui/p-104a32ce.entry.js +5 -0
- package/dist/bromcom-ui/p-12304c2d.entry.js +5 -0
- package/dist/bromcom-ui/{p-f937f362.entry.js → p-123d6355.entry.js} +1 -1
- package/dist/bromcom-ui/p-132d4301.entry.js +5 -0
- package/dist/bromcom-ui/p-1701ff2a.entry.js +5 -0
- package/dist/bromcom-ui/p-170cf07d.js +6 -0
- package/dist/bromcom-ui/p-19c7cea5.entry.js +5 -0
- package/dist/bromcom-ui/{p-5618ee1e.entry.js → p-1b96dbbf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-037a40a6.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-2608b100.entry.js +5 -0
- package/dist/bromcom-ui/{p-f8c20298.entry.js → p-28f78dd4.entry.js} +1 -1
- package/dist/bromcom-ui/p-2a9053d8.js +5 -0
- package/dist/bromcom-ui/p-2ba8bfb9.js +5 -0
- package/dist/bromcom-ui/p-2c21b28a.entry.js +5 -0
- package/dist/bromcom-ui/p-2d4a0a66.entry.js +5 -0
- package/dist/bromcom-ui/{p-c80ab24a.entry.js → p-3078fcd2.entry.js} +1 -1
- package/dist/bromcom-ui/p-3182df7e.js +10 -0
- package/dist/bromcom-ui/p-324bf5e5.entry.js +5 -0
- package/dist/bromcom-ui/p-37084b52.entry.js +5 -0
- package/dist/bromcom-ui/p-37488f1a.entry.js +5 -0
- package/dist/bromcom-ui/{p-05b0bdce.entry.js → p-3960cae8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-63b14659.entry.js → p-3a06c6b1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c23b6240.js → p-3ade1099.js} +1 -1
- package/dist/bromcom-ui/{p-799af572.js → p-3bd27fdd.js} +1 -1
- package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
- package/dist/bromcom-ui/{p-494ebf69.entry.js → p-3d730230.entry.js} +1 -1
- package/dist/bromcom-ui/p-3db7cc9b.entry.js +5 -0
- package/dist/bromcom-ui/{p-d8cc24f0.entry.js → p-44ca28fa.entry.js} +1 -1
- package/dist/bromcom-ui/p-45ca98b5.entry.js +5 -0
- package/dist/bromcom-ui/p-4707aa4d.entry.js +5 -0
- package/dist/bromcom-ui/p-4798d827.js +5 -0
- package/dist/bromcom-ui/{p-12543c4f.js → p-49bb8e10.js} +1 -1
- package/dist/bromcom-ui/p-4ae97c02.entry.js +5 -0
- package/dist/bromcom-ui/p-4c21b17f.js +5 -0
- package/dist/bromcom-ui/{p-842a5926.entry.js → p-4e33341b.entry.js} +1 -1
- package/dist/bromcom-ui/p-5101acb3.js +5 -0
- package/dist/bromcom-ui/p-5600c817.js +5 -0
- package/dist/bromcom-ui/p-56317397.entry.js +5 -0
- package/dist/bromcom-ui/p-57a08b2c.entry.js +5 -0
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
- package/dist/bromcom-ui/p-5dc1d0fc.entry.js +5 -0
- package/dist/bromcom-ui/p-5fbb57f6.entry.js +5 -0
- package/dist/bromcom-ui/p-62eb13d4.entry.js +5 -0
- package/dist/bromcom-ui/p-63337aa3.entry.js +5 -0
- package/dist/bromcom-ui/{p-f82afa9d.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8f78fe1c.entry.js → p-6ab403d2.entry.js} +1 -1
- package/dist/bromcom-ui/p-6cff5185.entry.js +5 -0
- package/dist/bromcom-ui/p-6e577849.entry.js +5 -0
- package/dist/bromcom-ui/p-7014cade.entry.js +5 -0
- package/dist/bromcom-ui/p-74798533.entry.js +5 -0
- package/dist/bromcom-ui/{p-a60a2dd0.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/{p-54bcf02f.js → p-76595c93.js} +1 -1
- package/dist/bromcom-ui/p-78f57233.entry.js +5 -0
- package/dist/bromcom-ui/{p-5c059eba.entry.js → p-7b486021.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f7e29f3e.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/p-7e3209a0.js +14 -0
- package/dist/bromcom-ui/{p-961dc8e1.entry.js → p-7f1612df.entry.js} +1 -1
- package/dist/bromcom-ui/p-82671aa3.entry.js +5 -0
- package/dist/bromcom-ui/p-8403e81f.entry.js +5 -0
- package/dist/bromcom-ui/p-8b6dbd63.entry.js +5 -0
- package/dist/bromcom-ui/{p-53820462.entry.js → p-8c3535b6.entry.js} +1 -1
- package/dist/bromcom-ui/p-8eb5ed81.entry.js +5 -0
- package/dist/bromcom-ui/{p-76cb3798.entry.js → p-9314d7ed.entry.js} +1 -1
- package/dist/bromcom-ui/p-941b7517.entry.js +5 -0
- package/dist/bromcom-ui/p-94f43ce3.entry.js +5 -0
- package/dist/bromcom-ui/p-9519a9e4.entry.js +5 -0
- package/dist/bromcom-ui/p-95fa989d.entry.js +5 -0
- package/dist/bromcom-ui/p-9bf657da.entry.js +5 -0
- package/dist/bromcom-ui/{p-23309057.entry.js → p-9d12a9da.entry.js} +1 -1
- package/dist/bromcom-ui/p-a4e3b170.entry.js +5 -0
- package/dist/bromcom-ui/p-a9eb0321.js +315 -0
- package/dist/bromcom-ui/{p-4fcf03c1.entry.js → p-ae57f046.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d69fb13b.entry.js → p-b284e383.entry.js} +1 -1
- package/dist/bromcom-ui/p-b4caa7af.entry.js +5 -0
- package/dist/bromcom-ui/p-b82685e4.js +12 -0
- package/dist/bromcom-ui/{p-7d662231.entry.js → p-ba3c6657.entry.js} +1 -1
- package/dist/bromcom-ui/p-bdec3fa0.entry.js +5 -0
- package/dist/bromcom-ui/p-bdf80844.entry.js +5 -0
- package/dist/bromcom-ui/p-bebbec89.entry.js +5 -0
- package/dist/bromcom-ui/p-bed627ab.js +11 -0
- package/dist/bromcom-ui/p-c8a64f05.entry.js +5 -0
- package/dist/bromcom-ui/p-c8d647c1.entry.js +5 -0
- package/dist/bromcom-ui/{p-cb6d3c4e.js → p-cb522ae0.js} +1 -1
- package/dist/bromcom-ui/p-cbb2de64.entry.js +5 -0
- package/dist/bromcom-ui/p-ce3b1f49.entry.js +5 -0
- package/dist/bromcom-ui/{p-f3ed187a.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-d2670b77.entry.js +5 -0
- package/dist/bromcom-ui/p-d896a91f.entry.js +5 -0
- package/dist/bromcom-ui/{p-b60bcecf.js → p-dc8305dc.js} +1 -1
- package/dist/bromcom-ui/{p-2afef4b5.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-c8e13fd7.js → p-e1877ee9.js} +1 -1
- package/dist/bromcom-ui/p-e45c1546.js +5 -0
- package/dist/bromcom-ui/p-e59b1f37.entry.js +5 -0
- package/dist/bromcom-ui/p-eaaf03db.js +5 -0
- package/dist/bromcom-ui/p-edfa7c7b.entry.js +5 -0
- package/dist/bromcom-ui/p-f0061666.entry.js +5 -0
- package/dist/bromcom-ui/p-f8a91bd5.js +5 -0
- package/dist/bromcom-ui/static/message-bot.svg +10 -0
- package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
- package/dist/cjs/{bcm-ab921827.js → bcm-03727f3b.js} +5 -4
- package/dist/cjs/bcm-accordion.cjs.entry.js +5 -4
- package/dist/cjs/bcm-alert.cjs.entry.js +9 -8
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -4
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +2770 -0
- package/dist/cjs/bcm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -5
- package/dist/cjs/bcm-button-group.cjs.entry.js +11 -10
- package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-button_8.cjs.entry.js} +423 -5456
- package/dist/cjs/bcm-card.cjs.entry.js +10 -9
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +15 -14
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -9
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +18 -17
- package/dist/cjs/bcm-chip-group.cjs.entry.js +129 -0
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +6 -5
- package/dist/cjs/bcm-color-input.cjs.entry.js +10 -9
- 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 +9 -8
- package/dist/cjs/bcm-date.cjs.entry.js +124 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +29 -14
- package/dist/cjs/bcm-default.cjs.entry.js +5 -4
- package/dist/cjs/bcm-drawer.cjs.entry.js +13 -12
- package/dist/cjs/bcm-dropdown.cjs.entry.js +12 -11
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -8
- package/dist/cjs/bcm-form-2.cjs.entry.js +13 -9
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form.cjs.entry.js +489 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -5
- package/dist/cjs/bcm-item.cjs.entry.js +9 -8
- package/dist/cjs/bcm-items.cjs.entry.js +8 -7
- package/dist/cjs/bcm-link.cjs.entry.js +6 -6
- package/dist/cjs/bcm-list_3.cjs.entry.js +2503 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +15 -13
- package/dist/cjs/bcm-message.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -10
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -9
- package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -11
- package/dist/cjs/bcm-modal.cjs.entry.js +11 -10
- package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
- package/dist/cjs/bcm-old-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 -9
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -8
- package/dist/cjs/bcm-popover.cjs.entry.js +27 -22
- package/dist/cjs/bcm-progress.cjs.entry.js +9 -8
- package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -16
- package/dist/cjs/bcm-radio.cjs.entry.js +18 -17
- package/dist/cjs/bcm-range.cjs.entry.js +10 -9
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +8150 -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 -4
- package/dist/cjs/bcm-step.cjs.entry.js +8 -7
- package/dist/cjs/bcm-stepper.cjs.entry.js +15 -14
- package/dist/cjs/bcm-switch.cjs.entry.js +15 -14
- package/dist/cjs/bcm-tab-group.cjs.entry.js +16 -11
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +23 -37
- package/dist/cjs/bcm-tab-item.cjs.entry.js +10 -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 +7649 -38
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +19 -18
- package/dist/cjs/bcm-text.cjs.entry.js +8 -8
- package/dist/cjs/bcm-textarea.cjs.entry.js +13 -12
- package/dist/cjs/bcm-time-picker.cjs.entry.js +9 -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 +15 -14
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +5 -3
- package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
- package/dist/cjs/{color-helper-d6d2028b.js → color-helper-c3a819ea.js} +28 -2
- package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
- package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-baa45717.js} +2 -2
- package/dist/cjs/{generate-de243a66.js → generate-84a14c1a.js} +57 -8
- package/dist/cjs/global-5e41fa4e.js +27 -0
- package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
- package/dist/cjs/index-c08b35b2.js +1610 -0
- 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-e05a7c6f.js +545 -0
- package/dist/cjs/{input-template-4c532c3a.js → input-template-b5038151.js} +8 -8
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-7575fbd2.js} +1 -1
- package/dist/cjs/{json-parse-decarator-f61061cf.js → json-parse-decarator-c18e611d.js} +2 -2
- package/dist/cjs/{label-template-4d5f99a5.js → label-template-8d34230f.js} +5 -5
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/moment-c1a71617.js +5689 -0
- package/dist/cjs/{number-helper-dedd64eb.js → number-helper-59448c42.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -10
- package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -8
- package/dist/cjs/package-fe10d578.js +9 -0
- package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-86ece590.js} +1 -1
- package/dist/cjs/{slot-template-d70ea082.js → slot-template-758beb71.js} +2 -2
- package/dist/cjs/{stepper-states-faff7944.js → stepper-states-deb53239.js} +3 -3
- package/dist/cjs/{string-helper-d681e5c7.js → string-helper-b89a9828.js} +3 -3
- package/dist/cjs/{tooltip-helper-edce6fd0.js → tooltip-helper-5b2ee66d.js} +22 -14
- package/dist/cjs/{validators-e5a6ef69.js → validators-d89fdce5.js} +1 -1
- package/dist/cjs/watermark-2c23c8f1.js +47499 -0
- package/dist/collection/assets/csv.svg +9 -0
- package/dist/collection/assets/excel.svg +9 -0
- package/dist/collection/assets/pdf.svg +9 -0
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/atoms/avatar/avatar.js +94 -81
- package/dist/collection/components/atoms/avatar/avatar.style.js +42 -0
- package/dist/collection/components/atoms/badge/badge.js +30 -90
- package/dist/collection/components/atoms/badge/badge.style.js +48 -0
- package/dist/collection/components/atoms/icon/icon.js +15 -3
- package/dist/collection/components/atoms/icon/static/message-bot.svg +10 -0
- package/dist/collection/components/molecules/input/input.js +4 -4
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +284 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +698 -0
- package/dist/collection/components/molecules/items/items.js +1 -1
- package/dist/collection/components/molecules/linked/linked.js +14 -2
- package/dist/collection/components/molecules/menu/menu.js +1 -0
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
- package/dist/collection/components/molecules/tooltip/tooltip.js +2 -2
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +15 -1
- package/dist/collection/components/organism/form/form.js +1 -0
- package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
- package/dist/collection/components/organism/list/list.js +21 -2
- package/dist/collection/components/other/typography/typography.js +1 -1
- package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +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 +258 -0
- package/dist/collection/components/third-parts/table/table-definations.js +42 -0
- package/dist/collection/components/third-parts/table/table.css +136 -0
- package/dist/collection/components/third-parts/table/table.js +288 -0
- package/dist/collection/decorators/bcm-decorator.js +28 -0
- package/dist/collection/decorators/event-decorator.js +31 -0
- package/dist/collection/decorators/index.js +1 -0
- package/dist/collection/global/global.js +19 -5
- package/dist/collection/helper/color-helper.js +27 -1
- package/dist/collection/helper/generate.js +54 -4
- package/dist/collection/helper/popover-helper.js +13 -9
- package/dist/collection/helper/tooltip-helper.js +12 -4
- 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/avatar.js +93 -53
- package/dist/components/badge.js +2638 -46
- 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 +330 -0
- package/dist/components/bcm-items.js +1 -1
- package/dist/components/bcm-popover.js +14 -10
- package/dist/components/bcm-rc-picker.d.ts +11 -0
- package/dist/components/bcm-rc-picker.js +10 -0
- package/dist/components/bcm-tab-group.js +5 -1
- package/dist/components/bcm-tab-item-header.js +11 -26
- package/dist/components/bcm-table.js +55128 -41
- package/dist/components/bcm.js +1 -0
- package/dist/components/color-helper.js +27 -1
- package/dist/components/colors2.js +1 -1
- package/dist/components/datetime-picker.js +15 -1
- package/dist/components/generate.js +57 -7
- package/dist/components/icon.js +15 -3
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +17 -3
- package/dist/components/index3.js +5 -1
- package/dist/components/input.js +4 -4
- package/dist/components/linked.js +13 -1
- package/dist/components/list.js +4 -2
- package/dist/components/menu.js +1 -0
- package/dist/components/raf.js +1594 -0
- package/dist/components/rc-overflow.js +32 -1557
- package/dist/components/rc-picker.js +13851 -0
- package/dist/components/tooltip-helper.js +12 -4
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.js +1 -1
- package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-be0d4ec8.js} +16 -1
- package/dist/esm/{bcm-9f50af9c.js → bcm-ac17222c.js} +2 -1
- package/dist/esm/bcm-accordion.entry.js +5 -4
- package/dist/esm/bcm-alert.entry.js +9 -8
- package/dist/esm/bcm-attendance.entry.js +5 -4
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-avatar_2.entry.js +2765 -0
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -5
- package/dist/esm/bcm-button-group.entry.js +8 -7
- package/dist/esm/{bcm-avatar_15.entry.js → bcm-button_8.entry.js} +438 -5464
- package/dist/esm/bcm-card.entry.js +11 -10
- package/dist/esm/bcm-checkbox-group.entry.js +13 -12
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -7
- package/dist/esm/bcm-checkbox_2.entry.js +14 -13
- package/dist/esm/bcm-chip-group.entry.js +125 -0
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +6 -5
- package/dist/esm/bcm-color-input.entry.js +12 -11
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +9 -8
- package/dist/esm/bcm-date.entry.js +120 -0
- package/dist/esm/bcm-datetime-picker.entry.js +29 -14
- package/dist/esm/bcm-default.entry.js +5 -4
- package/dist/esm/bcm-drawer.entry.js +13 -12
- package/dist/esm/bcm-dropdown.entry.js +9 -8
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +10 -9
- package/dist/esm/bcm-form-2.entry.js +12 -8
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-form.entry.js +485 -0
- package/dist/esm/bcm-input-custom.entry.js +6 -5
- package/dist/esm/bcm-item.entry.js +9 -8
- package/dist/esm/bcm-items.entry.js +8 -7
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-list_3.entry.js +2497 -0
- package/dist/esm/bcm-menu.entry.js +17 -15
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +13 -12
- package/dist/esm/bcm-modal-2-header.entry.js +12 -11
- package/dist/esm/bcm-modal-2.entry.js +13 -12
- package/dist/esm/bcm-modal.entry.js +9 -8
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-old-input.entry.js +5 -5
- package/dist/esm/bcm-old-tag_2.entry.js +4 -4
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +11 -10
- package/dist/esm/bcm-popconfirm.entry.js +7 -6
- package/dist/esm/bcm-popover.entry.js +27 -22
- package/dist/esm/bcm-progress.entry.js +9 -8
- package/dist/esm/bcm-radio-group.entry.js +15 -14
- package/dist/esm/bcm-radio.entry.js +13 -12
- package/dist/esm/bcm-range.entry.js +8 -7
- package/dist/esm/bcm-rc-picker.entry.js +8146 -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 +6 -6
- package/dist/esm/bcm-skeleton.entry.js +5 -4
- package/dist/esm/bcm-step.entry.js +8 -7
- package/dist/esm/bcm-stepper.entry.js +15 -14
- package/dist/esm/bcm-switch.entry.js +10 -9
- package/dist/esm/bcm-tab-group.entry.js +17 -12
- package/dist/esm/bcm-tab-item-header.entry.js +24 -38
- package/dist/esm/bcm-tab-item.entry.js +12 -11
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +7650 -39
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -8
- package/dist/esm/bcm-text.entry.js +9 -9
- package/dist/esm/bcm-textarea.entry.js +11 -10
- package/dist/esm/bcm-time-picker.entry.js +9 -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 +9 -8
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +6 -4
- package/dist/esm/{caption-template-da16ba7b.js → caption-template-e973a48c.js} +2 -2
- package/dist/esm/{color-helper-e8ce23d7.js → color-helper-c4fa9ebc.js} +29 -3
- package/dist/esm/{colors-44c95e7e.js → colors-e1c31f79.js} +1 -1
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-54c52eaa.js} +1 -1
- package/dist/esm/{generate-61676bf1.js → generate-77bbe272.js} +56 -7
- package/dist/esm/global-1b5f8bb5.js +25 -0
- package/dist/esm/{index-39133086.js → index-0615c2b8.js} +3 -1
- package/dist/esm/{index-93e36fdb.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/index-a6d9d0af.js +541 -0
- package/dist/esm/{index-ed9652af.js → index-b84bc8c9.js} +1 -1
- package/dist/esm/index-c4568336.js +1594 -0
- package/dist/esm/{input-template-606f7441.js → input-template-bf10f00a.js} +4 -4
- package/dist/esm/{is-load-decorator-bc14ec4b.js → is-load-decorator-6784aa87.js} +1 -1
- package/dist/esm/{json-parse-decarator-2303670f.js → json-parse-decarator-7a13e271.js} +2 -2
- package/dist/esm/{label-template-d74fe788.js → label-template-f156f33f.js} +4 -4
- package/dist/esm/loader.js +6 -4
- package/dist/esm/moment-24231dde.js +5686 -0
- package/dist/esm/{number-helper-4ef4df19.js → number-helper-787aa192.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +13 -12
- package/dist/esm/old-bcm-popover.entry.js +7 -6
- package/dist/esm/package-42b4a30f.js +7 -0
- package/dist/esm/{popover-placement-78f86f15.js → popover-placement-018109c4.js} +1 -1
- package/dist/esm/{slot-template-5b2db362.js → slot-template-46035685.js} +2 -2
- package/dist/esm/{stepper-states-9bb5528f.js → stepper-states-9f10dd4d.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-4a28f775.js} +2 -2
- package/dist/esm/{tooltip-helper-79e225e7.js → tooltip-helper-a6101f5d.js} +21 -13
- package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
- package/dist/esm/{validators-c4a5912c.js → validators-0ba6d217.js} +1 -1
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/atoms/avatar/avatar.d.ts +6 -10
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -0
- package/dist/types/components/atoms/badge/badge.d.ts +3 -7
- package/dist/types/components/atoms/badge/badge.style.d.ts +153 -0
- package/dist/types/components/atoms/icon/icon.d.ts +1 -0
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +55 -0
- package/dist/types/components/molecules/linked/linked.d.ts +1 -0
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +1 -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 +183 -16
- package/dist/types/decorators/bcm-decorator.d.ts +2 -0
- package/dist/types/decorators/event-decorator.d.ts +2 -0
- package/dist/types/decorators/index.d.ts +1 -0
- package/dist/types/helper/color-helper.d.ts +22 -2
- package/dist/types/helper/generate.d.ts +21 -1
- package/dist/types/helper/popover-helper.d.ts +0 -5
- package/dist/types/helper/tooltip-helper.d.ts +0 -1
- package/dist/types/models/bcm.d.ts +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 +16 -7
- package/dist/bromcom-ui/p-043beeb5.entry.js +0 -5
- package/dist/bromcom-ui/p-08fb3095.js +0 -5
- package/dist/bromcom-ui/p-0a28fd61.entry.js +0 -5
- package/dist/bromcom-ui/p-0c07940d.entry.js +0 -5
- package/dist/bromcom-ui/p-0d9741fc.entry.js +0 -5
- package/dist/bromcom-ui/p-11629904.entry.js +0 -5
- package/dist/bromcom-ui/p-11e7f04b.entry.js +0 -5
- package/dist/bromcom-ui/p-139b0cfc.entry.js +0 -5
- package/dist/bromcom-ui/p-195c4c41.entry.js +0 -5
- package/dist/bromcom-ui/p-1b8982a8.entry.js +0 -5
- package/dist/bromcom-ui/p-24aefda6.js +0 -5
- package/dist/bromcom-ui/p-25cfdc1c.entry.js +0 -5
- package/dist/bromcom-ui/p-27a8f8cc.entry.js +0 -5
- package/dist/bromcom-ui/p-3731f4fb.entry.js +0 -5
- package/dist/bromcom-ui/p-431b023c.js +0 -5
- package/dist/bromcom-ui/p-43bb2a7c.entry.js +0 -5
- package/dist/bromcom-ui/p-440afdfa.entry.js +0 -5
- package/dist/bromcom-ui/p-465c6839.entry.js +0 -5
- package/dist/bromcom-ui/p-49105365.entry.js +0 -5
- package/dist/bromcom-ui/p-4be5dbb6.entry.js +0 -5
- package/dist/bromcom-ui/p-4fcc0d21.entry.js +0 -5
- package/dist/bromcom-ui/p-61f2613f.entry.js +0 -5
- package/dist/bromcom-ui/p-62adb1ff.entry.js +0 -5
- package/dist/bromcom-ui/p-68e2ddc3.entry.js +0 -5
- package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
- package/dist/bromcom-ui/p-772a214f.js +0 -5
- package/dist/bromcom-ui/p-78bfd81b.entry.js +0 -5
- package/dist/bromcom-ui/p-79fd816c.js +0 -5
- package/dist/bromcom-ui/p-7b09e9b1.entry.js +0 -5
- package/dist/bromcom-ui/p-7ce49866.entry.js +0 -5
- package/dist/bromcom-ui/p-843905c8.js +0 -5
- package/dist/bromcom-ui/p-908e7c36.entry.js +0 -5
- package/dist/bromcom-ui/p-92bf3f86.js +0 -5
- package/dist/bromcom-ui/p-9bdcbb1a.entry.js +0 -5
- package/dist/bromcom-ui/p-9be7f6be.entry.js +0 -5
- package/dist/bromcom-ui/p-a104f436.entry.js +0 -5
- package/dist/bromcom-ui/p-a1b02a4a.entry.js +0 -5
- package/dist/bromcom-ui/p-abd0ebef.entry.js +0 -5
- package/dist/bromcom-ui/p-b0353da0.entry.js +0 -19
- package/dist/bromcom-ui/p-b640b81a.entry.js +0 -5
- package/dist/bromcom-ui/p-b7d6857f.entry.js +0 -5
- package/dist/bromcom-ui/p-bad06cf8.entry.js +0 -5
- package/dist/bromcom-ui/p-c41e87a2.entry.js +0 -5
- package/dist/bromcom-ui/p-c6c6529b.entry.js +0 -5
- package/dist/bromcom-ui/p-cb0afdd3.entry.js +0 -5
- package/dist/bromcom-ui/p-cc470d2a.entry.js +0 -5
- package/dist/bromcom-ui/p-d0b8b715.entry.js +0 -5
- package/dist/bromcom-ui/p-d18196f9.entry.js +0 -5
- package/dist/bromcom-ui/p-d5b645ba.entry.js +0 -5
- package/dist/bromcom-ui/p-d65a1e21.js +0 -11
- package/dist/bromcom-ui/p-d78958e3.entry.js +0 -5
- package/dist/bromcom-ui/p-da1055cb.js +0 -6
- package/dist/bromcom-ui/p-dc19c6f4.entry.js +0 -5
- package/dist/bromcom-ui/p-ded0661d.entry.js +0 -5
- package/dist/bromcom-ui/p-e150d373.entry.js +0 -5
- package/dist/bromcom-ui/p-f053aa86.entry.js +0 -5
- package/dist/bromcom-ui/p-f589ac2d.entry.js +0 -5
- package/dist/bromcom-ui/p-f606f90c.entry.js +0 -5
- package/dist/bromcom-ui/p-ff488369.entry.js +0 -5
- package/dist/cjs/global-b0d21446.js +0 -15
- package/dist/collection/components/atoms/avatar/avatar.css +0 -198
- package/dist/collection/components/atoms/badge/badge.css +0 -231
- package/dist/collection/components/other/data-table/table.css +0 -130
- package/dist/collection/components/other/data-table/table.js +0 -88
- package/dist/esm/global-4fad925b.js +0 -13
- package/dist/types/components/other/data-table/table.d.ts +0 -8
|
@@ -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;
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
6
|
+
import './color-helper.js';
|
|
7
|
+
import './validators.js';
|
|
8
|
+
import { G as Generate } from './generate.js';
|
|
9
|
+
import './number-helper.js';
|
|
10
|
+
import { S as StringHelper } from './string-helper.js';
|
|
11
|
+
import './element-dragger.js';
|
|
12
|
+
import { d as delay, p as pluralize } from './utils.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 './types2.js';
|
|
18
|
+
import { d as defineCustomElement$8 } from './button.js';
|
|
19
|
+
import { d as defineCustomElement$7 } from './colorful.js';
|
|
20
|
+
import { d as defineCustomElement$6 } from './icon.js';
|
|
21
|
+
import { d as defineCustomElement$5 } from './input.js';
|
|
22
|
+
import { d as defineCustomElement$4 } from './label.js';
|
|
23
|
+
import { d as defineCustomElement$3 } from './linked.js';
|
|
24
|
+
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
25
|
+
|
|
26
|
+
const inputDropdownCss = "@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\"); .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}.bcm-input-dropdown .dropdown-input-button i{transition:transform 0.2s ease-in-out}.bcm-input-dropdown .dropdown-input-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}";
|
|
27
|
+
|
|
28
|
+
const InputDropdown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.__registerHost();
|
|
32
|
+
this.change = createEvent(this, "bcm-change", 7);
|
|
33
|
+
this.onChangeDropdown = createEvent(this, "bcm-input-dropdown-change", 7);
|
|
34
|
+
this.handleKeyPress = e => {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
if (((_b = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.length) >= +this.maxCharacterLimit) {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
this.onClickSave = () => {
|
|
42
|
+
const lateMin = +this.lateMinutes;
|
|
43
|
+
if (lateMin > 0) {
|
|
44
|
+
this.value = Object.assign(Object.assign({}, this.value), { late: lateMin });
|
|
45
|
+
this.onChangeDropdown.emit(this.value);
|
|
46
|
+
this.onCloseLateContent();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
this._id = Generate.UID();
|
|
50
|
+
this.value = undefined;
|
|
51
|
+
this.defaultValue = undefined;
|
|
52
|
+
this.lateKey = "L";
|
|
53
|
+
this.maxCharacterLimit = 1;
|
|
54
|
+
this.size = Bcm.Size.medium;
|
|
55
|
+
this.label = undefined;
|
|
56
|
+
this.placeholder = undefined;
|
|
57
|
+
this.fullWidth = false;
|
|
58
|
+
this.disabled = false;
|
|
59
|
+
this.required = false;
|
|
60
|
+
this.readonly = false;
|
|
61
|
+
this.componentIsActive = false;
|
|
62
|
+
this.data = [
|
|
63
|
+
{ key: "/", value: "Present", color: "#00b050" },
|
|
64
|
+
{ key: "B", value: "Educated off site (NOT dual registration)", color: "#ffc000" },
|
|
65
|
+
{ key: "C", value: "Other authorised circumstance", color: "#ff0000" },
|
|
66
|
+
{ key: "D", value: "Dual registration", color: "#0070c0" },
|
|
67
|
+
{ key: "E", value: "Excluded", color: "#ff0000" },
|
|
68
|
+
{ key: "F", value: "Free Study", color: "#ffc000" },
|
|
69
|
+
{ key: "I", value: "Illness", color: "#ff0000" },
|
|
70
|
+
{ key: "J", value: "Interview", color: "#ffc000" },
|
|
71
|
+
{ key: "L", value: "Late before reg. closed", color: "#ffc000" },
|
|
72
|
+
];
|
|
73
|
+
this.caption = undefined;
|
|
74
|
+
this.noCaption = false;
|
|
75
|
+
this.captionType = Bcm.Status.default;
|
|
76
|
+
this.captionError = undefined;
|
|
77
|
+
this.customErrorMessage = undefined;
|
|
78
|
+
this.invalid = false;
|
|
79
|
+
this.captionCache = undefined;
|
|
80
|
+
this.captionTypeCache = undefined;
|
|
81
|
+
this.activeSaveButton = true;
|
|
82
|
+
this.lateMinutes = 0;
|
|
83
|
+
}
|
|
84
|
+
get content() {
|
|
85
|
+
return document.getElementById(this._id + "-input-dropdown-main-content");
|
|
86
|
+
}
|
|
87
|
+
get lateContent() {
|
|
88
|
+
return document.getElementById(this._id + "-input-dropdown-late-content");
|
|
89
|
+
}
|
|
90
|
+
get isLate() {
|
|
91
|
+
return () => { var _a; return StringHelper.lowercase((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) == StringHelper.lowercase(this.lateKey); };
|
|
92
|
+
}
|
|
93
|
+
onCloseMainContent() {
|
|
94
|
+
this.content && this.content.hide();
|
|
95
|
+
}
|
|
96
|
+
onCloseLateContent() {
|
|
97
|
+
this.lateContent && this.lateContent.hide();
|
|
98
|
+
}
|
|
99
|
+
connectedCallback() {
|
|
100
|
+
this.captionCache = this.caption;
|
|
101
|
+
this.captionTypeCache = this.captionType;
|
|
102
|
+
}
|
|
103
|
+
componentWillLoad() {
|
|
104
|
+
if (this.defaultValue) {
|
|
105
|
+
this.value = {
|
|
106
|
+
key: this.defaultValue,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
async set(data) {
|
|
111
|
+
this.data = typeof data === "string" ? JSON.parse(data) : data;
|
|
112
|
+
}
|
|
113
|
+
async get() {
|
|
114
|
+
return this.value;
|
|
115
|
+
}
|
|
116
|
+
async setClear() {
|
|
117
|
+
this.value = "";
|
|
118
|
+
return Promise.resolve();
|
|
119
|
+
}
|
|
120
|
+
async resetCaption() {
|
|
121
|
+
this.caption = this.captionCache;
|
|
122
|
+
this.captionType = this.captionTypeCache;
|
|
123
|
+
this.captionError = null;
|
|
124
|
+
this.invalid = false;
|
|
125
|
+
return Promise.resolve();
|
|
126
|
+
}
|
|
127
|
+
clickListener(e) {
|
|
128
|
+
var _a, _b;
|
|
129
|
+
const isSelf = Generate.findEventPath(e, this.el);
|
|
130
|
+
const isLinked = Generate.findEventPathWithNodeName(e, "BCM-LINKED");
|
|
131
|
+
if (!isSelf && !isLinked && ((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLowerCase()) != this.lateKey.toLowerCase()) {
|
|
132
|
+
this.onCloseLateContent();
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
async handleInput(e) {
|
|
137
|
+
var _a, _b, _c, _d;
|
|
138
|
+
const value = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
139
|
+
const maxLengthExceeded = (value === null || value === void 0 ? void 0 : value.length) >= +this.maxCharacterLimit;
|
|
140
|
+
if (maxLengthExceeded) {
|
|
141
|
+
const item = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === value.toLowerCase(); });
|
|
142
|
+
if (item) {
|
|
143
|
+
this.value = item;
|
|
144
|
+
this._input.style.color = item.color;
|
|
145
|
+
this.invalid = false;
|
|
146
|
+
if (this.isLate()) {
|
|
147
|
+
(_c = this.lateContent) === null || _c === void 0 ? void 0 : _c.show();
|
|
148
|
+
await delay(60);
|
|
149
|
+
document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
(_d = this.lateContent) === null || _d === void 0 ? void 0 : _d.hide();
|
|
153
|
+
}
|
|
154
|
+
this.onChangeDropdown.emit(item);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
this.value = e.target.value;
|
|
158
|
+
this.content && this.content.show();
|
|
159
|
+
this._input.style.color = "#ff0000";
|
|
160
|
+
this.invalid = true;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.onCloseMainContent();
|
|
165
|
+
this.value = null;
|
|
166
|
+
this._input.style.color = "#000000";
|
|
167
|
+
this.invalid = false;
|
|
168
|
+
}
|
|
169
|
+
this.change.emit();
|
|
170
|
+
}
|
|
171
|
+
async onClick(item) {
|
|
172
|
+
var _a, _b;
|
|
173
|
+
this.value = item;
|
|
174
|
+
this.invalid = false;
|
|
175
|
+
this._input.style.color = item.color;
|
|
176
|
+
this.onCloseMainContent();
|
|
177
|
+
if (this.isLate()) {
|
|
178
|
+
(_a = this.lateContent) === null || _a === void 0 ? void 0 : _a.show();
|
|
179
|
+
await delay(60);
|
|
180
|
+
document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
(_b = this.lateContent) === null || _b === void 0 ? void 0 : _b.hide();
|
|
184
|
+
}
|
|
185
|
+
this.onChangeDropdown.emit(item);
|
|
186
|
+
this.change.emit();
|
|
187
|
+
}
|
|
188
|
+
render() {
|
|
189
|
+
const { label, size, noCaption, captionType, captionError, caption, required, invalid, disabled, readonly, value, fullWidth, lateMinutes } = this;
|
|
190
|
+
const color = invalid || captionType === "error" ? "red" : "primary";
|
|
191
|
+
const theme = Generate.getTwColor({ color });
|
|
192
|
+
const iconSizes = {
|
|
193
|
+
[Bcm.Size.small]: "tw-text-2",
|
|
194
|
+
[Bcm.Size.medium]: "tw-text-3 ",
|
|
195
|
+
[Bcm.Size.large]: "tw-text-4 ",
|
|
196
|
+
}[size];
|
|
197
|
+
const fontSizes = {
|
|
198
|
+
[Bcm.Size.small]: "tw-text-2",
|
|
199
|
+
[Bcm.Size.medium]: "tw-text-3",
|
|
200
|
+
[Bcm.Size.large]: "tw-text-4",
|
|
201
|
+
}[size];
|
|
202
|
+
const isError = invalid || captionType === "error";
|
|
203
|
+
const RenderMainContent = () => {
|
|
204
|
+
var _a;
|
|
205
|
+
return (h("bcm-linked", { id: this._id + "-input-dropdown-main-content", "target-id": this._id + "-dropdown-input-button", placement: "bottom-end" }, this.componentIsActive ? (h("div", { class: `tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700 ${fontSizes}` }, this.invalid && (h("li", { class: classnames("tw-flex tw-w-full tw-flex-row tw-items-center tw-gap-3 tw-rounded tw-bg-red-100 tw-px-4 tw-py-2") }, h("span", { class: "tw-text-red-900" }, h("i", { class: iconSizes + " far fa-exclamation-circle" })), h("span", null, "There is not mark you entered, please use"))), (_a = this.data) === null || _a === void 0 ? void 0 :
|
|
206
|
+
_a.map(item => {
|
|
207
|
+
var _a;
|
|
208
|
+
return (h("li", { onClick: () => this.onClick(item), class: classnames("tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100", {
|
|
209
|
+
"tw-bg-primary-200": ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) == item.key,
|
|
210
|
+
}) }, h("span", null, " ", item.key), " - ", h("span", null, item.value)));
|
|
211
|
+
}))) : null));
|
|
212
|
+
};
|
|
213
|
+
const RenderLateContent = () => {
|
|
214
|
+
var _a;
|
|
215
|
+
return (h("bcm-linked", { id: this._id + "-input-dropdown-late-content", "target-id": this._id, trigger: "custom", placement: "right", "onBcm-open": ({ detail }) => {
|
|
216
|
+
var _a;
|
|
217
|
+
if (detail) {
|
|
218
|
+
(_a = this.el.querySelector("#" + this._id + "-input-dropdown-late-content-input")) === null || _a === void 0 ? void 0 : _a.onBcmFocus();
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
this._input.focus();
|
|
222
|
+
}
|
|
223
|
+
} }, this.componentIsActive ? (h("div", { class: "tw-flex tw-h-fit tw-w-full !tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-4 tw-rounded tw-p-4 tw-shadow-2" }, h("div", { class: "tw-flex tw-w-full tw-flex-col tw-items-start tw-justify-center tw-gap-3" }, h("header", { 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-center tw-gap-2" }, h("i", { class: "tw-text-size-4 fas fa-clock tw-text-amber-600" }), h("bcm-label", { class: "!tw-mb-0", size: "large", value: "Minutes Late", required: true })), h("div", { class: " tw-flex tw-h-4 tw-w-4 tw-flex-row tw-items-center tw-justify-center", onClick: () => this.onCloseLateContent() }, h("i", { class: "tw-text-size-4 fas fa-times tw-text-slate-600" }))), h("bcm-input", { id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, "no-caption": true, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.late, placeholder: "Enter Minus Late", required: true, "onBcm-change": (e) => (this.lateMinutes = +e.detail), onKeyDown: e => {
|
|
224
|
+
if (e.key === "Enter") {
|
|
225
|
+
this.onClickSave();
|
|
226
|
+
}
|
|
227
|
+
} })), h("section", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end" }, h("bcm-button", { size: "small", variant: "save", color: "blue", disabled: +lateMinutes < 1, onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
228
|
+
};
|
|
229
|
+
return (h(Host, { class: classnames("bcm-ui-element bcm-ui-inputs bcm-input-dropdown tw-flex tw-w-full tw-flex-col tw-items-start tw-justify-center tw-gap-1", {
|
|
230
|
+
"tw-max-w-[86px]": size == Bcm.Size.small,
|
|
231
|
+
"tw-max-w-[92px]": size == Bcm.Size.medium,
|
|
232
|
+
"tw-max-w-[108px]": !fullWidth,
|
|
233
|
+
"tw-max-w-none": fullWidth,
|
|
234
|
+
}), onClick: () => (this.componentIsActive = true), onFocus: () => (this._input.focus(), (this.componentIsActive = true)) }, label && h("bcm-label", { htmlFor: this._id + "-dropdown-input", size: size, value: label, required: required }), h("div", { "aria-disabled": disabled ? "true" : "false", "aria-readonly": readonly ? "true" : "false", "aria-invalid": isError ? "true" : "false", tabIndex: disabled || readonly ? -1 : 0, onFocus: () => (this._input.focus(), (this.componentIsActive = true)), style: Object.assign({}, theme), class: classnames("tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-font-medium", "aria-disabled:tw-cursor-not-allowed aria-disabled:tw-bg-slate-100", "aria-readonly:tw-cursor-text aria-readonly:tw-bg-slate-100", "aria-invalid:tw-border-default-600 aria-invalid:tw-bg-default-50", {
|
|
235
|
+
"tw-h-6 tw-pr-0.5 tw-py-0.5 tw-pl-1 tw-gap-1": size == Bcm.Size.small,
|
|
236
|
+
"tw-h-7 tw-pr-0.5 tw-py-0.5 tw-pl-2 tw-gap-2": size == Bcm.Size.medium,
|
|
237
|
+
"tw-h-10 tw-pr-[4px] tw-py-1 tw-pl-3 tw-gap-3": size == Bcm.Size.large,
|
|
238
|
+
"hover:tw-border-default-600 hover:tw-bg-default-50": !disabled && !readonly && !isError,
|
|
239
|
+
"tw-outline-none focus:tw-ring-2 focus:tw-ring-default-400": !disabled && !readonly && !isError,
|
|
240
|
+
}) }, h("div", { class: " tw-flex tw-w-full tw-min-w-[42px] tw-flex-row tw-items-center tw-justify-center" }, value && (value === null || value === void 0 ? void 0 : value.late) && (h("bcm-tooltip", { message: `${lateMinutes} ${pluralize("Minute", lateMinutes)} Late`, trigger: "hover" }, h("i", { class: iconSizes + " fas fa-clock", onClick: () => this.lateContent.show() }))), captionType == Bcm.Status.error && h("i", { class: iconSizes + " tw-text-default-500" + " fas fa-exclamation-circle" }), h("input", { class: classnames("tw-font-sans", "tw-h-full tw-w-full tw-bg-transparent tw-text-center tw-font-semibold !tw-uppercase tw-outline-none ", "disabled:tw-cursor-not-allowed disabled:tw-text-slate-400", "readonly:tw-text-slate-700 readonly:tw-cursor-text", `${fontSizes}`), id: this._id + "-dropdown-input", type: "text", tabIndex: -1, disabled: disabled, placeholder: this.placeholder, value: value === null || value === void 0 ? void 0 : value.key, required: this.required, readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el), onFocus: () => this._input.select() })), h("button", { id: this._id + "-dropdown-input-button", class: classnames("dropdown-input-button", "tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none", "tw-border tw-border-solid tw-border-slate-300 tw-bg-slate-50 tw-font-medium tw-text-slate-600", "hover:tw-border-slate-400 hover:tw-bg-slate-200", "tw-min-w-[32px]", "tw-cursor-pointer", "disabled:tw-cursor-not-allowed disabled:tw-text-slate-400", "readonly:tw-text-slate-700 readonly:tw-cursor-text", {
|
|
241
|
+
"tw-h-[18px] tw-text-1 tw-leading-none": size == Bcm.Size.small,
|
|
242
|
+
"tw-h-[22px] tw-text-2": size == Bcm.Size.medium,
|
|
243
|
+
"tw-h-[30px] tw-text-2": size == Bcm.Size.large,
|
|
244
|
+
}), "aria-label": "dropdown", "aria-haspopup": "true", "aria-expanded": "false", disabled: disabled || readonly, tabIndex: -1 }, h("i", { class: "fas fa-chevron-down" })), h(RenderMainContent, null), h(RenderLateContent, null)), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage })));
|
|
245
|
+
}
|
|
246
|
+
get el() { return this; }
|
|
247
|
+
static get style() { return inputDropdownCss; }
|
|
248
|
+
}, [0, "bcm-input-dropdown", {
|
|
249
|
+
"_id": [513, "id"],
|
|
250
|
+
"value": [1032],
|
|
251
|
+
"defaultValue": [1032, "default-value"],
|
|
252
|
+
"lateKey": [1025, "late-key"],
|
|
253
|
+
"maxCharacterLimit": [1026, "max-character-limit"],
|
|
254
|
+
"size": [1],
|
|
255
|
+
"label": [1],
|
|
256
|
+
"placeholder": [1],
|
|
257
|
+
"fullWidth": [516, "full-width"],
|
|
258
|
+
"disabled": [4],
|
|
259
|
+
"required": [4],
|
|
260
|
+
"readonly": [4],
|
|
261
|
+
"data": [16],
|
|
262
|
+
"caption": [1025],
|
|
263
|
+
"noCaption": [1028, "no-caption"],
|
|
264
|
+
"captionType": [1025, "caption-type"],
|
|
265
|
+
"captionError": [1025, "caption-error"],
|
|
266
|
+
"customErrorMessage": [1025, "custom-error-message"],
|
|
267
|
+
"componentIsActive": [32],
|
|
268
|
+
"invalid": [32],
|
|
269
|
+
"captionCache": [32],
|
|
270
|
+
"captionTypeCache": [32],
|
|
271
|
+
"activeSaveButton": [32],
|
|
272
|
+
"lateMinutes": [32],
|
|
273
|
+
"set": [64],
|
|
274
|
+
"get": [64],
|
|
275
|
+
"setClear": [64],
|
|
276
|
+
"resetCaption": [64]
|
|
277
|
+
}, [[6, "click", "clickListener"]]]);
|
|
278
|
+
function defineCustomElement$1() {
|
|
279
|
+
if (typeof customElements === "undefined") {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
const components = ["bcm-input-dropdown", "bcm-button", "bcm-colorful", "bcm-icon", "bcm-input", "bcm-label", "bcm-linked", "bcm-tooltip"];
|
|
283
|
+
components.forEach(tagName => { switch (tagName) {
|
|
284
|
+
case "bcm-input-dropdown":
|
|
285
|
+
if (!customElements.get(tagName)) {
|
|
286
|
+
customElements.define(tagName, InputDropdown);
|
|
287
|
+
}
|
|
288
|
+
break;
|
|
289
|
+
case "bcm-button":
|
|
290
|
+
if (!customElements.get(tagName)) {
|
|
291
|
+
defineCustomElement$8();
|
|
292
|
+
}
|
|
293
|
+
break;
|
|
294
|
+
case "bcm-colorful":
|
|
295
|
+
if (!customElements.get(tagName)) {
|
|
296
|
+
defineCustomElement$7();
|
|
297
|
+
}
|
|
298
|
+
break;
|
|
299
|
+
case "bcm-icon":
|
|
300
|
+
if (!customElements.get(tagName)) {
|
|
301
|
+
defineCustomElement$6();
|
|
302
|
+
}
|
|
303
|
+
break;
|
|
304
|
+
case "bcm-input":
|
|
305
|
+
if (!customElements.get(tagName)) {
|
|
306
|
+
defineCustomElement$5();
|
|
307
|
+
}
|
|
308
|
+
break;
|
|
309
|
+
case "bcm-label":
|
|
310
|
+
if (!customElements.get(tagName)) {
|
|
311
|
+
defineCustomElement$4();
|
|
312
|
+
}
|
|
313
|
+
break;
|
|
314
|
+
case "bcm-linked":
|
|
315
|
+
if (!customElements.get(tagName)) {
|
|
316
|
+
defineCustomElement$3();
|
|
317
|
+
}
|
|
318
|
+
break;
|
|
319
|
+
case "bcm-tooltip":
|
|
320
|
+
if (!customElements.get(tagName)) {
|
|
321
|
+
defineCustomElement$2();
|
|
322
|
+
}
|
|
323
|
+
break;
|
|
324
|
+
} });
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
const BcmInputDropdown = InputDropdown;
|
|
328
|
+
const defineCustomElement = defineCustomElement$1;
|
|
329
|
+
|
|
330
|
+
export { BcmInputDropdown, defineCustomElement };
|
|
@@ -25,7 +25,7 @@ const BcmItems$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
25
25
|
const item = element;
|
|
26
26
|
const textContent = (_a = item === null || item === void 0 ? void 0 : item.innerHTML) === null || _a === void 0 ? void 0 : _a.replace(/<bcm-item>.*<\/bcm-item>/g, '').replace(/<bcm-item .*>.*<\/bcm-item>/g, '').replace(/<!--(.|\s)*?-->/g, '').trim();
|
|
27
27
|
const checkAttr = (attr) => StringHelper.elementBooleanCheck(element.getAttribute(attr));
|
|
28
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ id: element.getAttribute('id') || Generate.UID(), text: element.getAttribute('text') || textContent }, (element.innerHTML.trim() && { isHtmlContent: element.textContent.length > 0 ? (element.innerHTML.trim()) : null })), (checkAttr('disabled') && { disabled: checkAttr('disabled') })), (checkAttr('selected') && { selected: checkAttr('selected') })), (checkAttr('checked') && { checked: checkAttr('checked') })), (checkAttr('readonly') && { readonly: checkAttr('readonly') })), (checkAttr('active') && { active: checkAttr('active') })), (checkAttr('icon') && { icon: element.getAttribute('icon') })), (checkAttr('link') && { link: element.getAttribute('link') }));
|
|
28
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ id: element.getAttribute('id') || Generate.UID(), text: element.getAttribute('text') || textContent }, (element.innerHTML.trim() && { isHtmlContent: element.textContent.length > 0 ? (element.innerHTML.trim()) : null })), (checkAttr('disabled') && { disabled: checkAttr('disabled') })), (checkAttr('selected') && { selected: checkAttr('selected') })), (checkAttr('hidden') && { hidden: checkAttr('hidden') })), (checkAttr('checked') && { checked: checkAttr('checked') })), (checkAttr('readonly') && { readonly: checkAttr('readonly') })), (checkAttr('active') && { active: checkAttr('active') })), (checkAttr('icon') && { icon: element.getAttribute('icon') })), (checkAttr('link') && { link: element.getAttribute('link') }));
|
|
29
29
|
}
|
|
30
30
|
nestedItems(element) {
|
|
31
31
|
return snq(() => Array.from(element === null || element === void 0 ? void 0 : element.children).map((child) => {
|
|
@@ -23,25 +23,29 @@ class Popover {
|
|
|
23
23
|
}
|
|
24
24
|
this.removeListener();
|
|
25
25
|
};
|
|
26
|
-
this.bgColor = () => ColorHelper.twColor(this.color, 700);
|
|
27
|
-
this.exepcitonColors = {
|
|
28
|
-
white: "slate-300",
|
|
29
|
-
black: "slate-700",
|
|
30
|
-
};
|
|
31
26
|
this.target = () => document.getElementById(this.targetId);
|
|
32
27
|
this.init = () => {
|
|
33
|
-
const
|
|
28
|
+
const { tone, colorName } = ColorHelper.parseColor(this.color, 700);
|
|
29
|
+
const dc = Generate.getTwColor({
|
|
30
|
+
color: colorName,
|
|
31
|
+
tones: {
|
|
32
|
+
[tone]: ["bg"],
|
|
33
|
+
},
|
|
34
|
+
variable: "--bcm-popover",
|
|
35
|
+
});
|
|
36
|
+
const style = Object.assign(Object.assign({}, dc), (dc["--bcm-popover-bg"] && { "--bcm-popover-text": ColorHelper.reverseColor(dc["--bcm-popover-bg"]) }));
|
|
37
|
+
const inner = `<div class="tw-z-[1] tw-rounded tw-py-2">
|
|
34
38
|
${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` : ""}
|
|
35
39
|
${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` : ""}
|
|
36
40
|
</div>`;
|
|
37
41
|
this.el = Generate.createElement("div", {
|
|
38
42
|
"id": `${this.targetId}-popover-box`,
|
|
39
43
|
"class": `
|
|
40
|
-
tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg
|
|
44
|
+
tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-[--bcm-popover-bg] tw-text-[--bcm-popover-text] tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300
|
|
41
45
|
tw-shadow`,
|
|
42
46
|
"role": "popover",
|
|
43
47
|
"aria-hidden": "true",
|
|
44
|
-
"style":
|
|
48
|
+
"style": ColorHelper.generateStyleString(style),
|
|
45
49
|
"innerHTML": inner,
|
|
46
50
|
});
|
|
47
51
|
};
|
|
@@ -95,7 +99,7 @@ class Popover {
|
|
|
95
99
|
placement: this.placement,
|
|
96
100
|
offset: 8,
|
|
97
101
|
arrow: true,
|
|
98
|
-
arrowColor: `tw-bg
|
|
102
|
+
arrowColor: `tw-bg-[--bcm-popover-bg]`,
|
|
99
103
|
});
|
|
100
104
|
}
|
|
101
105
|
};
|
|
@@ -210,7 +214,7 @@ const BcmPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
210
214
|
this.popover.toggle();
|
|
211
215
|
}
|
|
212
216
|
render() {
|
|
213
|
-
return (h(Host, {
|
|
217
|
+
return (h(Host, { class: "tw-inline-flex tw-h-fit tw-w-fit", role: "tooltip", "aria-hidden": "true" }, h("slot", null)));
|
|
214
218
|
}
|
|
215
219
|
get el() { return this; }
|
|
216
220
|
}, [4, "bcm-popover", {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BcmRcPicker extends Components.BcmRcPicker, HTMLElement {}
|
|
4
|
+
export const BcmRcPicker: {
|
|
5
|
+
prototype: BcmRcPicker;
|
|
6
|
+
new (): BcmRcPicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { B as BcmRcPicker$1, d as defineCustomElement$1 } from './rc-picker.js';
|
|
6
|
+
|
|
7
|
+
const BcmRcPicker = BcmRcPicker$1;
|
|
8
|
+
const defineCustomElement = defineCustomElement$1;
|
|
9
|
+
|
|
10
|
+
export { BcmRcPicker, defineCustomElement };
|
|
@@ -187,7 +187,11 @@ const BcmTabGroup$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
189
|
const { color } = this;
|
|
190
|
-
|
|
190
|
+
const dc = Generate.getTwColor({
|
|
191
|
+
color: color,
|
|
192
|
+
tones: [500]
|
|
193
|
+
});
|
|
194
|
+
return (h(Host, { role: "tablist", "aria-label": "Tab Group", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, h("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header", style: dc }, h("div", { id: "ink-bar", class: `tw-bg-default-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), h("slot", null)));
|
|
191
195
|
}
|
|
192
196
|
get el() { return this; }
|
|
193
197
|
static get watchers() { return {
|