bromcom-ui 2.9.0-rc.8 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/global.js +6 -0
- package/dist/bromcom-ui/global/helper/toast.ts +2 -0
- package/dist/bromcom-ui/p-08c75801.js +5 -0
- package/dist/bromcom-ui/p-0dacfdbc.entry.js +5 -0
- package/dist/bromcom-ui/{p-24f0e23a.entry.js → p-13f6e1a7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5c3e9ac9.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/p-170cf07d.js +6 -0
- package/dist/bromcom-ui/p-19634d99.js +5 -0
- package/dist/bromcom-ui/{p-e4477593.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-48f85544.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6bcaf906.entry.js → p-1cfe5a5d.entry.js} +1 -1
- package/dist/bromcom-ui/p-20ba9769.entry.js +5 -0
- package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-65f01d32.entry.js → p-22eb4e12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f331e009.entry.js → p-26290ed5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-240151d4.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/{p-73ca7c0a.entry.js → p-2b822458.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dbc4c30c.js → p-2c5a0863.js} +1 -1
- package/dist/bromcom-ui/p-304bfa08.entry.js +5 -0
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/p-399bce44.entry.js +5 -0
- package/dist/bromcom-ui/p-41cea609.entry.js +7 -0
- package/dist/bromcom-ui/{p-6c3e9e10.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/p-434c170e.js +5 -0
- package/dist/bromcom-ui/{p-d0bb9a84.entry.js → p-440bbaaa.entry.js} +1 -1
- package/dist/bromcom-ui/p-47400be4.entry.js +5 -0
- package/dist/bromcom-ui/{p-f5bed571.entry.js → p-4a2de9ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-4f42085a.entry.js +5 -0
- package/dist/bromcom-ui/{p-ff48f5b2.entry.js → p-5232e011.entry.js} +1 -1
- package/dist/bromcom-ui/p-53e91ae6.js +5 -0
- package/dist/bromcom-ui/{p-c75519d5.js → p-54211561.js} +1 -1
- package/dist/bromcom-ui/{p-dc2c4b14.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/p-5871767a.entry.js +5 -0
- package/dist/bromcom-ui/{p-45767d1d.entry.js → p-588165ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-5916e844.entry.js +5 -0
- package/dist/bromcom-ui/{p-499bb928.entry.js → p-5fb0f815.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2fc584c4.js → p-61db1f1f.js} +1 -1
- package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d389b202.entry.js → p-647de93f.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-03134b6f.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd51d347.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/p-6cf1e8a2.entry.js +5 -0
- package/dist/bromcom-ui/{p-4aa0e6b1.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/p-73ec379d.entry.js +5 -0
- package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/p-75ec5cc6.entry.js +5 -0
- package/dist/bromcom-ui/p-784a7bb0.entry.js +5 -0
- package/dist/bromcom-ui/p-78f0fe00.js +5 -0
- package/dist/bromcom-ui/p-7b05abe8.entry.js +5 -0
- package/dist/bromcom-ui/{p-d995750a.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/p-7cb30513.js +5 -0
- package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/p-80ee3d97.entry.js +5 -0
- package/dist/bromcom-ui/p-822d590f.entry.js +5 -0
- package/dist/bromcom-ui/p-85eedabc.js +5 -0
- package/dist/bromcom-ui/p-89a28750.entry.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/p-8f45ba5f.entry.js +5 -0
- package/dist/bromcom-ui/p-9075a184.entry.js +5 -0
- package/dist/bromcom-ui/{p-f58c1fbe.entry.js → p-913c55ee.entry.js} +1 -1
- package/dist/bromcom-ui/p-9164639f.entry.js +5 -0
- package/dist/bromcom-ui/p-9850cbce.js +5 -0
- package/dist/bromcom-ui/{p-8bcfe3b3.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/p-9bd5f3b4.entry.js +5 -0
- package/dist/bromcom-ui/{p-6aeaef2a.entry.js → p-a006e404.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e9842c26.js → p-a0ba474b.js} +1 -1
- package/dist/bromcom-ui/{p-b60bcecf.js → p-a1b1750c.js} +1 -1
- package/dist/bromcom-ui/{p-8fcb5846.js → p-a2c364af.js} +1 -1
- package/dist/bromcom-ui/p-a40a5474.entry.js +5 -0
- package/dist/bromcom-ui/{p-7c6e3ae5.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/p-a9eb0321.js +315 -0
- package/dist/bromcom-ui/{p-2acd6bee.entry.js → p-ab0b4d1e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2caa75a4.entry.js → p-b4f033b4.entry.js} +1 -1
- package/dist/bromcom-ui/p-b81e8f91.js +5 -0
- package/dist/bromcom-ui/{p-503feae9.entry.js → p-b8a8bd1d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4ac5904.js → p-b901e1ce.js} +1 -1
- package/dist/bromcom-ui/p-ba74a838.entry.js +5 -0
- package/dist/bromcom-ui/{p-c42dffea.entry.js → p-ba949d4a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f4538abb.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fb4b5224.entry.js → p-bd2b6de5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ebee9f45.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-908b1b5d.js → p-c8751181.js} +1 -1
- package/dist/bromcom-ui/p-ccf0872d.js +5 -0
- package/dist/bromcom-ui/p-cf659967.entry.js +5 -0
- package/dist/bromcom-ui/{p-8d0ca8c2.js → p-d153c7fc.js} +1 -1
- package/dist/bromcom-ui/p-d3db9e02.entry.js +5 -0
- package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ec36d0c0.entry.js → p-d68c2c0a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e5a0d8f6.entry.js → p-d724cfa9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-af0a447d.entry.js → p-d7ca94e1.entry.js} +1 -1
- package/dist/bromcom-ui/p-dd49ae28.entry.js +5 -0
- package/dist/bromcom-ui/p-e2294927.entry.js +5 -0
- package/dist/bromcom-ui/{p-1b1f4b44.entry.js → p-e688b044.entry.js} +1 -1
- package/dist/bromcom-ui/p-ec0224fb.entry.js +5 -0
- package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1be22601.entry.js → p-ef8c5b55.entry.js} +1 -1
- package/dist/bromcom-ui/p-f711588b.js +5 -0
- package/dist/bromcom-ui/p-fe1f2413.entry.js +5 -0
- package/dist/bromcom-ui/{p-a82f2b2a.entry.js → p-fe83cdd3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/bromcom-ui/static/message-bot.svg +2 -2
- package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
- package/dist/cjs/{bcm-ab921827.js → bcm-7f703055.js} +33 -31
- package/dist/cjs/bcm-accordion.cjs.entry.js +5 -5
- package/dist/cjs/bcm-alert.cjs.entry.js +9 -9
- package/dist/cjs/bcm-attendance.cjs.entry.js +5 -5
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
- package/dist/cjs/bcm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -6
- package/dist/cjs/bcm-button-group.cjs.entry.js +11 -11
- package/dist/cjs/bcm-button_15.cjs.entry.js +35172 -0
- package/dist/cjs/bcm-card.cjs.entry.js +10 -10
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +29 -29
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -10
- package/dist/cjs/{bcm-checkbox.cjs.entry.js → bcm-checkbox_2.cjs.entry.js} +28 -17
- package/dist/cjs/bcm-chip-group.cjs.entry.js +15 -16
- package/dist/cjs/bcm-chip.cjs.entry.js +7 -7
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +6 -6
- package/dist/cjs/bcm-color-input.cjs.entry.js +10 -11
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-default.cjs.entry.js +5 -5
- package/dist/cjs/bcm-drawer.cjs.entry.js +13 -14
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -9
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -6
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +6 -6
- package/dist/cjs/bcm-list_3.cjs.entry.js +169 -1691
- package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
- package/dist/cjs/bcm-message.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -12
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -11
- package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -13
- package/dist/cjs/bcm-modal.cjs.entry.js +11 -11
- package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -10
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -9
- package/dist/cjs/bcm-popover.cjs.entry.js +229 -0
- package/dist/cjs/bcm-progress.cjs.entry.js +9 -9
- package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -18
- package/dist/cjs/bcm-radio.cjs.entry.js +18 -19
- package/dist/cjs/bcm-range.cjs.entry.js +10 -10
- package/dist/cjs/bcm-result.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select.cjs.entry.js +5 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/bcm-step.cjs.entry.js +8 -8
- package/dist/cjs/bcm-stepper.cjs.entry.js +15 -16
- package/dist/cjs/bcm-switch.cjs.entry.js +15 -15
- package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
- package/dist/cjs/bcm-table.cjs.entry.js +7648 -38
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +19 -19
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +13 -13
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
- package/dist/cjs/bcm-toast.cjs.entry.js +38 -19
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +5 -4
- package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
- package/dist/cjs/{color-helper-7ab15732.js → color-helper-c3a819ea.js} +1 -1
- package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
- package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-b441ea7c.js} +2 -2
- package/dist/cjs/{generate-cae9c0fb.js → generate-1dfe001a.js} +2 -2
- package/dist/cjs/{global-3ce50f9f.js → global-4a6abd46.js} +6 -1
- package/dist/cjs/index-5279dea2.js +2571 -0
- package/dist/cjs/{index-906fb4e5.js → index-7eed931f.js} +1631 -25
- package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
- package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
- package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
- package/dist/cjs/{input-template-a7f8f2e9.js → input-template-41868c68.js} +8 -8
- package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-15036f37.js} +3 -2
- package/dist/cjs/{json-parse-decarator-34a3d26e.js → json-parse-decarator-f29c368a.js} +2 -2
- package/dist/cjs/{label-template-4d5f99a5.js → label-template-80235581.js} +5 -5
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{number-helper-101d8aa8.js → number-helper-2b9c1f9d.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -11
- package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -9
- package/dist/cjs/{package-ed8b3296.js → package-66b81414.js} +1 -1
- package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-f20020a6.js} +1 -1
- package/dist/cjs/{slot-template-d70ea082.js → slot-template-873b0cd5.js} +2 -2
- package/dist/cjs/{stepper-states-308c8d3e.js → stepper-states-6ccb8ab3.js} +3 -3
- package/dist/cjs/{string-helper-d681e5c7.js → string-helper-fda7cbba.js} +5 -5
- package/dist/cjs/tooltip-helper-0eb3ef13.js +157 -0
- package/dist/cjs/{validators-26badb68.js → validators-97a46a9e.js} +6 -1
- package/dist/cjs/watermark-2c23c8f1.js +47499 -0
- package/dist/collection/assets/csv.svg +9 -0
- package/dist/collection/assets/excel.svg +9 -0
- package/dist/collection/assets/pdf.svg +9 -0
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/atoms/avatar/avatar.js +21 -23
- package/dist/collection/components/atoms/avatar/avatar.style.js +24 -21
- package/dist/collection/components/atoms/badge/badge.js +2 -1
- package/dist/collection/components/atoms/badge/badge.style.js +36 -24
- package/dist/collection/components/atoms/button/button.css +55 -0
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/icon/static/message-bot.svg +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.js +1 -1
- package/dist/collection/components/molecules/input/input.js +0 -2
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +291 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +751 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
- package/dist/collection/components/molecules/linked/linked.js +5 -29
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +1 -1
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
- package/dist/collection/components/organism/form/form.js +1 -0
- package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
- package/dist/collection/components/organism/list/list.css +1 -1
- package/dist/collection/components/organism/list/list.js +63 -22
- package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
- package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
- package/dist/collection/components/other/toast/toast.js +48 -11
- package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +862 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1009 -0
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +550 -0
- package/dist/collection/components/third-parts/table/table-definations.js +42 -0
- package/dist/collection/components/third-parts/table/table.css +136 -0
- package/dist/collection/components/third-parts/table/table.js +288 -0
- package/dist/collection/decorators/bcm-decorator.js +28 -0
- package/dist/collection/decorators/event-decorator.js +31 -0
- package/dist/collection/decorators/index.js +1 -0
- package/dist/collection/decorators/is-load-decorator.js +2 -1
- package/dist/collection/global/global.js +6 -0
- package/dist/collection/global/helper/toast.js +1 -0
- package/dist/collection/global/helper/toast.ts +2 -0
- package/dist/collection/helper/string-helper.js +2 -2
- package/dist/collection/models/bcm.js +29 -27
- package/dist/collection/templates/index.js +2 -0
- package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
- package/dist/collection/templates/toolbar-template.js +15 -0
- package/dist/components/_commonjsHelpers.js +16 -1
- package/dist/components/avatar.js +46 -44
- package/dist/components/badge.js +39 -70
- package/dist/components/bcm-chip-group.js +14 -8
- package/dist/components/bcm-date-picker.js +4 -2
- package/dist/components/bcm-date.d.ts +11 -0
- package/dist/components/bcm-date.js +232 -0
- package/dist/components/bcm-form-2.js +4 -1
- package/dist/components/bcm-form.js +1 -0
- package/dist/components/bcm-input-dropdown.d.ts +11 -0
- package/dist/components/bcm-input-dropdown.js +395 -0
- package/dist/components/bcm-rc-picker.d.ts +11 -0
- package/dist/components/bcm-rc-picker.js +10 -0
- package/dist/components/bcm-table.js +55128 -41
- package/dist/components/bcm-textarea.js +1 -214
- package/dist/components/bcm-time-picker.js +4 -2
- package/dist/components/bcm-toast.js +30 -10
- package/dist/components/bcm.js +29 -27
- package/dist/components/button.js +1 -1
- package/dist/components/chip.js +12 -6
- package/dist/components/colors2.js +1 -1
- package/dist/components/datetime-picker.js +5 -2
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +9 -1
- package/dist/components/index3.js +5 -1
- package/dist/components/index5.js +2569 -0
- package/dist/components/input.js +0 -2
- package/dist/components/is-load-decorator.js +2 -1
- package/dist/components/linked.js +5 -11
- package/dist/components/list.js +22 -8
- package/dist/components/raf.js +1594 -0
- package/dist/components/rc-overflow.js +32 -1557
- package/dist/components/rc-picker.js +14030 -0
- package/dist/components/string-helper.js +2 -2
- package/dist/components/textarea.js +220 -0
- package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-7002e5de.js} +16 -1
- package/dist/esm/bcm-accordion.entry.js +5 -5
- package/dist/esm/bcm-alert.entry.js +9 -9
- package/dist/esm/bcm-attendance.entry.js +5 -5
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-avatar_2.entry.js +204 -0
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-button-group.entry.js +8 -8
- package/dist/esm/bcm-button_15.entry.js +35154 -0
- package/dist/esm/bcm-card.entry.js +11 -11
- package/dist/esm/bcm-checkbox-group.entry.js +19 -19
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
- package/dist/esm/{bcm-checkbox.entry.js → bcm-checkbox_2.entry.js} +24 -14
- package/dist/esm/bcm-chip-group.entry.js +16 -17
- package/dist/esm/bcm-chip.entry.js +8 -8
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +12 -13
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/{bcm-9f50af9c.js → bcm-d45dc47d.js} +30 -28
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-drawer.entry.js +13 -14
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +10 -10
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +305 -0
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-list_3.entry.js +93 -1615
- package/dist/esm/bcm-menu.entry.js +146 -0
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +13 -14
- package/dist/esm/bcm-modal-2-header.entry.js +12 -13
- package/dist/esm/bcm-modal-2.entry.js +13 -14
- package/dist/esm/bcm-modal.entry.js +9 -9
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-old-tag_2.entry.js +4 -4
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +11 -11
- package/dist/esm/bcm-popconfirm.entry.js +7 -7
- package/dist/esm/bcm-popover.entry.js +225 -0
- package/dist/esm/bcm-progress.entry.js +9 -9
- package/dist/esm/bcm-radio-group.entry.js +15 -16
- package/dist/esm/bcm-radio.entry.js +13 -14
- package/dist/esm/bcm-range.entry.js +8 -8
- package/dist/esm/bcm-result.entry.js +3 -3
- package/dist/esm/bcm-select-group.entry.js +3 -3
- package/dist/esm/bcm-select-option.entry.js +3 -3
- package/dist/esm/bcm-select.entry.js +6 -6
- package/dist/esm/bcm-skeleton.entry.js +5 -5
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +15 -16
- package/dist/esm/bcm-switch.entry.js +10 -10
- package/dist/esm/bcm-tab-group.entry.js +205 -0
- package/dist/esm/bcm-tab-item-header.entry.js +54 -0
- package/dist/esm/bcm-tab-item.entry.js +86 -0
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +7649 -39
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -9
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-textarea.entry.js +11 -11
- package/dist/esm/bcm-timeline-item.entry.js +3 -3
- package/dist/esm/bcm-timeline.entry.js +3 -3
- package/dist/esm/bcm-toast.entry.js +38 -19
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +6 -5
- package/dist/esm/{caption-template-34a1cb44.js → caption-template-d47f338f.js} +2 -2
- package/dist/esm/{color-helper-116755ed.js → color-helper-845ba523.js} +2 -2
- package/dist/esm/{colors-44c95e7e.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{floating-ui-e7341329.js → floating-ui-8a0c54d6.js} +1 -1
- package/dist/esm/{generate-e008f24f.js → generate-7a1258c4.js} +2 -2
- package/dist/esm/{global-9c04f017.js → global-032592ad.js} +6 -1
- package/dist/esm/{index-ed9652af.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-348b16ad.js → index-0615c2b8.js} +3 -1
- package/dist/esm/index-3bc8c6e3.js +2569 -0
- package/dist/esm/{index-0052017c.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/{index-6310a048.js → index-e4b6a4ce.js} +1616 -26
- package/dist/esm/{input-template-0bdd4dda.js → input-template-68c29fde.js} +4 -4
- package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-8277e3b8.js} +3 -2
- package/dist/esm/{json-parse-decarator-40fc5701.js → json-parse-decarator-2945634b.js} +2 -2
- package/dist/esm/{label-template-98dafeb3.js → label-template-946d4062.js} +4 -4
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{number-helper-ddce4326.js → number-helper-fe7d1aca.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +13 -13
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-00ece356.js → package-acbf2052.js} +1 -1
- package/dist/esm/{popover-placement-78f86f15.js → popover-placement-be68c848.js} +1 -1
- package/dist/esm/{slot-template-672e941d.js → slot-template-fcc7846e.js} +2 -2
- package/dist/esm/{stepper-states-56644bc7.js → stepper-states-9ab8511e.js} +3 -3
- package/dist/esm/{string-helper-6bd24967.js → string-helper-b0e05041.js} +4 -4
- package/dist/esm/tooltip-helper-e5246812.js +155 -0
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-77fbe47e.js → validators-22975416.js} +6 -2
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/atoms/avatar/avatar.d.ts +0 -2
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -5
- package/dist/types/components/atoms/badge/badge.style.d.ts +174 -4
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +51 -0
- package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
- package/dist/types/components/molecules/linked/linked.d.ts +1 -3
- package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +4 -0
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
- package/dist/types/components/other/toast/toast.d.ts +2 -0
- package/dist/types/components/third-parts/rc-picker/date.d.ts +175 -0
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +47 -0
- package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
- package/dist/types/components/third-parts/table/table.d.ts +37 -0
- package/dist/types/components.d.ts +244 -3
- package/dist/types/decorators/bcm-decorator.d.ts +2 -0
- package/dist/types/decorators/event-decorator.d.ts +2 -0
- package/dist/types/decorators/index.d.ts +1 -0
- package/dist/types/global/helper/toast.d.ts +2 -0
- package/dist/types/models/bcm.d.ts +256 -236
- package/dist/types/templates/index.d.ts +2 -0
- package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
- package/dist/types/templates/toolbar-template.d.ts +13 -0
- package/helper/toast.d.ts +2 -0
- package/helper/toast.d.ts.map +1 -1
- package/helper/toast.js +1 -0
- package/package.json +9 -3
- package/dist/bromcom-ui/p-019b44bb.entry.js +0 -5
- package/dist/bromcom-ui/p-01a50abe.entry.js +0 -5
- package/dist/bromcom-ui/p-065e0f32.entry.js +0 -5
- package/dist/bromcom-ui/p-0cb5a92d.entry.js +0 -5
- package/dist/bromcom-ui/p-0f52bab9.entry.js +0 -5
- package/dist/bromcom-ui/p-15758356.entry.js +0 -5
- package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
- package/dist/bromcom-ui/p-235023cc.entry.js +0 -5
- package/dist/bromcom-ui/p-2a7bdc8b.entry.js +0 -5
- package/dist/bromcom-ui/p-32028f4f.entry.js +0 -5
- package/dist/bromcom-ui/p-3a68eca1.js +0 -5
- package/dist/bromcom-ui/p-4484ed7d.entry.js +0 -5
- package/dist/bromcom-ui/p-4f8b00bc.entry.js +0 -5
- package/dist/bromcom-ui/p-4fd78dbb.entry.js +0 -5
- package/dist/bromcom-ui/p-54c0916c.js +0 -5
- package/dist/bromcom-ui/p-5d89f348.entry.js +0 -5
- package/dist/bromcom-ui/p-61c4745d.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-663766cf.entry.js +0 -5
- package/dist/bromcom-ui/p-6d7fe687.js +0 -6
- package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
- package/dist/bromcom-ui/p-74b2d896.js +0 -5
- package/dist/bromcom-ui/p-7f529bbe.entry.js +0 -5
- package/dist/bromcom-ui/p-9fe802bc.entry.js +0 -5
- package/dist/bromcom-ui/p-a19320bb.entry.js +0 -13
- package/dist/bromcom-ui/p-a429e85b.js +0 -5
- package/dist/bromcom-ui/p-a56e8c98.js +0 -5
- package/dist/bromcom-ui/p-a8033cda.entry.js +0 -5
- package/dist/bromcom-ui/p-a9692ed3.entry.js +0 -5
- package/dist/bromcom-ui/p-b1c83bb8.entry.js +0 -5
- package/dist/bromcom-ui/p-bddbd954.entry.js +0 -5
- package/dist/bromcom-ui/p-c49d038e.js +0 -5
- package/dist/bromcom-ui/p-c799b397.entry.js +0 -5
- package/dist/bromcom-ui/p-cf0ab7f0.entry.js +0 -5
- package/dist/bromcom-ui/p-d65a1e21.js +0 -11
- package/dist/bromcom-ui/p-d7f10f7f.js +0 -5
- package/dist/bromcom-ui/p-dd422dd1.js +0 -5
- package/dist/bromcom-ui/p-e09fa0dc.entry.js +0 -5
- package/dist/bromcom-ui/p-e32d9cfc.js +0 -5
- package/dist/bromcom-ui/p-ec6b45ba.entry.js +0 -5
- package/dist/bromcom-ui/p-f645d9ae.entry.js +0 -5
- package/dist/bromcom-ui/p-fdc3e5b8.entry.js +0 -5
- package/dist/cjs/bcm-avatar.cjs.entry.js +0 -127
- package/dist/cjs/bcm-badge_15.cjs.entry.js +0 -1739
- package/dist/cjs/bcm-colorful.cjs.entry.js +0 -17227
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -181
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1449
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -209
- package/dist/cjs/bcm-form.cjs.entry.js +0 -488
- package/dist/cjs/bcm-input.cjs.entry.js +0 -371
- package/dist/cjs/bcm-label.cjs.entry.js +0 -45
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -149
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/index-b08b037a.js +0 -52
- package/dist/collection/components/other/data-table/table.css +0 -130
- package/dist/collection/components/other/data-table/table.js +0 -88
- package/dist/esm/bcm-avatar.entry.js +0 -123
- package/dist/esm/bcm-badge_15.entry.js +0 -1721
- package/dist/esm/bcm-colorful.entry.js +0 -17223
- package/dist/esm/bcm-date-picker.entry.js +0 -177
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1445
- package/dist/esm/bcm-form-2.entry.js +0 -205
- package/dist/esm/bcm-form.entry.js +0 -484
- package/dist/esm/bcm-input.entry.js +0 -367
- package/dist/esm/bcm-label.entry.js +0 -41
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -145
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/index-962dec74.js +0 -50
- package/dist/types/components/other/data-table/table.d.ts +0 -8
|
@@ -10,37 +10,41 @@ import './number-helper.js';
|
|
|
10
10
|
import './string-helper.js';
|
|
11
11
|
import './element-dragger.js';
|
|
12
12
|
import { a as Bcm } from './bcm.js';
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as ce } from './index5.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './badge.js';
|
|
14
15
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
15
16
|
|
|
16
|
-
const avatarStyle =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
const avatarStyle = ce({
|
|
18
|
+
slots: {
|
|
19
|
+
base: "bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",
|
|
20
|
+
image: "tw-w-full tw-h-full",
|
|
21
|
+
badge: "",
|
|
22
|
+
},
|
|
22
23
|
variants: {
|
|
23
24
|
size: {
|
|
24
|
-
small:
|
|
25
|
-
medium:
|
|
26
|
-
large:
|
|
25
|
+
small: "bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",
|
|
26
|
+
medium: "bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",
|
|
27
|
+
large: "bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10",
|
|
27
28
|
},
|
|
28
29
|
shape: {
|
|
29
|
-
ellipse:
|
|
30
|
-
|
|
30
|
+
ellipse: {
|
|
31
|
+
base: "bcm-avatar__shape-ellipse tw-rounded-full",
|
|
32
|
+
image: "tw-rounded-full",
|
|
33
|
+
badge: "tw-top-0 tw-right-0",
|
|
34
|
+
},
|
|
35
|
+
square: {
|
|
36
|
+
base: "bcm-avatar__shape-square tw-rounded",
|
|
37
|
+
image: "tw-rounded",
|
|
38
|
+
badge: "tw--top-0.5 tw--right-0.5",
|
|
39
|
+
},
|
|
31
40
|
},
|
|
32
41
|
status: {
|
|
33
|
-
true:
|
|
42
|
+
true: {
|
|
43
|
+
base: "bcm-avatar__status tw-relative",
|
|
44
|
+
badge: "tw-absolute",
|
|
45
|
+
},
|
|
34
46
|
},
|
|
35
47
|
},
|
|
36
|
-
compoundVariants: [
|
|
37
|
-
{
|
|
38
|
-
size: "medium",
|
|
39
|
-
shape: "ellipse",
|
|
40
|
-
status: false,
|
|
41
|
-
class: "",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
48
|
defaultVariants: {
|
|
45
49
|
size: "medium",
|
|
46
50
|
shape: "ellipse",
|
|
@@ -69,33 +73,12 @@ const BcmAvatar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
69
73
|
const initials = words.map(word => word.charAt(0).toUpperCase()).join("");
|
|
70
74
|
return initials.substring(0, 2);
|
|
71
75
|
}
|
|
72
|
-
renderContent() {
|
|
73
|
-
if (this.isFallback) {
|
|
74
|
-
if (this.name) {
|
|
75
|
-
return this.getFirstLetters(this.name);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.renderDefaultIcon();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
else if (this.image) {
|
|
82
|
-
return this.renderImage();
|
|
83
|
-
}
|
|
84
|
-
else if (this.name) {
|
|
85
|
-
return this.getFirstLetters(this.name);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
return this.renderDefaultIcon();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
76
|
renderDefaultIcon() {
|
|
92
77
|
return h("bcm-icon", { icon: this.icon });
|
|
93
78
|
}
|
|
94
|
-
renderImage() {
|
|
95
|
-
return h("img", { onError: () => (this.isFallback = true), src: this.image, alt: this.alt });
|
|
96
|
-
}
|
|
97
79
|
render() {
|
|
98
80
|
const { shape, size, status, color, blink } = this;
|
|
81
|
+
const { base, badge, image } = avatarStyle({ size, shape, status: !!status });
|
|
99
82
|
const dc = Generate.getTwColor({
|
|
100
83
|
color: color,
|
|
101
84
|
tones: {
|
|
@@ -111,7 +94,26 @@ const BcmAvatar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
111
94
|
fontSize: `${+size / 3}px`,
|
|
112
95
|
}
|
|
113
96
|
: {};
|
|
114
|
-
|
|
97
|
+
const RenderContent = () => {
|
|
98
|
+
if (this.isFallback) {
|
|
99
|
+
if (this.name) {
|
|
100
|
+
return this.getFirstLetters(this.name);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return this.renderDefaultIcon();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
else if (this.image) {
|
|
107
|
+
return h("img", { class: image(), onError: () => (this.isFallback = true), src: this.image, alt: this.alt });
|
|
108
|
+
}
|
|
109
|
+
else if (this.name) {
|
|
110
|
+
return this.getFirstLetters(this.name);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
return this.renderDefaultIcon();
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
return (h(Host, { role: "img", "aria-label": this.alt || this.name || "Avatar", class: base(), style: Object.assign(Object.assign({}, dc), customSize) }, h(RenderContent, null), status && h("bcm-badge", { class: badge(), status: status, blink: blink, "aria-hidden": "true" }), h("slot", null)));
|
|
115
117
|
}
|
|
116
118
|
get el() { return this; }
|
|
117
119
|
}, [4, "bcm-avatar", {
|
package/dist/components/badge.js
CHANGED
|
@@ -10,81 +10,49 @@ import './number-helper.js';
|
|
|
10
10
|
import './string-helper.js';
|
|
11
11
|
import './element-dragger.js';
|
|
12
12
|
import { a as Bcm } from './bcm.js';
|
|
13
|
+
import { c as ce } from './index5.js';
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (variantProp === null) return null;
|
|
27
|
-
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
28
|
-
return variants[variant][variantKey];
|
|
29
|
-
});
|
|
30
|
-
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
|
31
|
-
let [key, value] = param;
|
|
32
|
-
if (value === undefined) {
|
|
33
|
-
return acc;
|
|
34
|
-
}
|
|
35
|
-
acc[key] = value;
|
|
36
|
-
return acc;
|
|
37
|
-
}, {});
|
|
38
|
-
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
|
|
39
|
-
let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
|
|
40
|
-
return Object.entries(compoundVariantOptions).every((param)=>{
|
|
41
|
-
let [key, value] = param;
|
|
42
|
-
return Array.isArray(value) ? value.includes({
|
|
43
|
-
...defaultVariants,
|
|
44
|
-
...propsWithoutUndefined
|
|
45
|
-
}[key]) : ({
|
|
46
|
-
...defaultVariants,
|
|
47
|
-
...propsWithoutUndefined
|
|
48
|
-
})[key] === value;
|
|
49
|
-
}) ? [
|
|
50
|
-
...acc,
|
|
51
|
-
cvClass,
|
|
52
|
-
cvClassName
|
|
53
|
-
] : acc;
|
|
54
|
-
}, []);
|
|
55
|
-
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const badgeStyle = cva([
|
|
60
|
-
"bcm-badge__dot bcm-ui-element bcm-ui-content-display",
|
|
61
|
-
"tw-flex tw-items-center tw-justify-center tw-flex-row",
|
|
62
|
-
"tw-rounded-full tw-text-center",
|
|
63
|
-
"tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
|
|
64
|
-
" tw-whitespace-nowrap [&>*:empty]:tw-hidden",
|
|
65
|
-
], {
|
|
15
|
+
const badgeStyle = ce({
|
|
16
|
+
slots: {
|
|
17
|
+
host: "bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",
|
|
18
|
+
base: [
|
|
19
|
+
"bcm-badge__dot",
|
|
20
|
+
"tw-flex tw-items-center tw-justify-center tw-flex-row",
|
|
21
|
+
"tw-rounded-full tw-text-center",
|
|
22
|
+
"tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
|
|
23
|
+
"tw-whitespace-nowrap",
|
|
24
|
+
],
|
|
25
|
+
dotText: "empty:tw-hidden",
|
|
26
|
+
},
|
|
66
27
|
variants: {
|
|
67
28
|
size: {
|
|
68
|
-
small:
|
|
69
|
-
|
|
70
|
-
|
|
29
|
+
small: {
|
|
30
|
+
host: "tw-text-2 tw-gap-1",
|
|
31
|
+
base: "bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",
|
|
32
|
+
dotText: "tw-px-1.5 tw-min-w-4",
|
|
33
|
+
},
|
|
34
|
+
medium: {
|
|
35
|
+
host: "tw-text-3 tw-gap-1.5",
|
|
36
|
+
base: "bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",
|
|
37
|
+
dotText: "tw-px-1.5 tw-min-w-5",
|
|
38
|
+
},
|
|
39
|
+
large: {
|
|
40
|
+
host: "tw-text-4 tw-gap-2",
|
|
41
|
+
base: "bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",
|
|
42
|
+
dotText: "tw-px-2 tw-min-w-6",
|
|
43
|
+
},
|
|
71
44
|
},
|
|
72
45
|
blink: {
|
|
73
|
-
true:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
46
|
+
true: {
|
|
47
|
+
base: [
|
|
48
|
+
"bcm-badge__dot-blink tw-relative",
|
|
49
|
+
"after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]",
|
|
50
|
+
"after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full",
|
|
51
|
+
"after:tw-animate-blink after:tw-pointer-events-none",
|
|
52
|
+
],
|
|
53
|
+
},
|
|
79
54
|
},
|
|
80
55
|
},
|
|
81
|
-
compoundVariants: [
|
|
82
|
-
{
|
|
83
|
-
size: "medium",
|
|
84
|
-
blink: false,
|
|
85
|
-
class: "",
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
56
|
defaultVariants: {
|
|
89
57
|
size: "medium",
|
|
90
58
|
blink: false,
|
|
@@ -120,7 +88,8 @@ const BcmBadge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
120
88
|
variable: "--bcm-badge",
|
|
121
89
|
});
|
|
122
90
|
const style = Object.assign(Object.assign({}, dc), (dc["--bcm-badge-bg"] && { "--bcm-badge-text": ColorHelper.reverseColor(dc["--bcm-badge-bg"]) }));
|
|
123
|
-
|
|
91
|
+
const { base, dotText, host } = badgeStyle({ size, blink });
|
|
92
|
+
return (h(Host, { class: host(), role: "status", "aria-live": "polite" }, h("div", { class: base(), style: style }, h("span", { class: dotText(), role: "presentation", "aria-hidden": "true" }, value), h("span", { class: "tw-sr-only" }, value)), h("slot", null)));
|
|
124
93
|
}
|
|
125
94
|
get el() { return this; }
|
|
126
95
|
}, [4, "bcm-badge", {
|
|
@@ -145,4 +114,4 @@ function defineCustomElement() {
|
|
|
145
114
|
} });
|
|
146
115
|
}
|
|
147
116
|
|
|
148
|
-
export { BcmBadge as B,
|
|
117
|
+
export { BcmBadge as B, defineCustomElement as d };
|
|
@@ -15,10 +15,11 @@ import { c as classnames } from './index2.js';
|
|
|
15
15
|
import './types.js';
|
|
16
16
|
import { L as LabelTemplate } from './label-template.js';
|
|
17
17
|
import './types2.js';
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
18
|
+
import { d as defineCustomElement$a } from './avatar.js';
|
|
19
|
+
import { d as defineCustomElement$9 } from './badge.js';
|
|
20
|
+
import { d as defineCustomElement$8 } from './chip.js';
|
|
21
|
+
import { d as defineCustomElement$7 } from './icon.js';
|
|
22
|
+
import { d as defineCustomElement$6 } from './label.js';
|
|
22
23
|
import { d as defineCustomElement$5 } from './list.js';
|
|
23
24
|
import { d as defineCustomElement$4 } from './rc-overflow.js';
|
|
24
25
|
import { d as defineCustomElement$3 } from './search.js';
|
|
@@ -138,7 +139,7 @@ function defineCustomElement$1() {
|
|
|
138
139
|
if (typeof customElements === "undefined") {
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
|
-
const components = ["bcm-chip-group", "bcm-avatar", "bcm-badge", "bcm-chip", "bcm-icon", "bcm-list", "bcm-rc-overflow", "bcm-search", "bcm-tooltip"];
|
|
142
|
+
const components = ["bcm-chip-group", "bcm-avatar", "bcm-badge", "bcm-chip", "bcm-icon", "bcm-label", "bcm-list", "bcm-rc-overflow", "bcm-search", "bcm-tooltip"];
|
|
142
143
|
components.forEach(tagName => { switch (tagName) {
|
|
143
144
|
case "bcm-chip-group":
|
|
144
145
|
if (!customElements.get(tagName)) {
|
|
@@ -147,20 +148,25 @@ function defineCustomElement$1() {
|
|
|
147
148
|
break;
|
|
148
149
|
case "bcm-avatar":
|
|
149
150
|
if (!customElements.get(tagName)) {
|
|
150
|
-
defineCustomElement$
|
|
151
|
+
defineCustomElement$a();
|
|
151
152
|
}
|
|
152
153
|
break;
|
|
153
154
|
case "bcm-badge":
|
|
154
155
|
if (!customElements.get(tagName)) {
|
|
155
|
-
defineCustomElement$
|
|
156
|
+
defineCustomElement$9();
|
|
156
157
|
}
|
|
157
158
|
break;
|
|
158
159
|
case "bcm-chip":
|
|
159
160
|
if (!customElements.get(tagName)) {
|
|
160
|
-
defineCustomElement$
|
|
161
|
+
defineCustomElement$8();
|
|
161
162
|
}
|
|
162
163
|
break;
|
|
163
164
|
case "bcm-icon":
|
|
165
|
+
if (!customElements.get(tagName)) {
|
|
166
|
+
defineCustomElement$7();
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
case "bcm-label":
|
|
164
170
|
if (!customElements.get(tagName)) {
|
|
165
171
|
defineCustomElement$6();
|
|
166
172
|
}
|
|
@@ -15,7 +15,7 @@ import { d as defineCustomElement$4 } from './label.js';
|
|
|
15
15
|
import { d as defineCustomElement$3 } from './old-input.js';
|
|
16
16
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
17
17
|
|
|
18
|
-
const datePickerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-
|
|
18
|
+
const datePickerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
|
|
19
19
|
|
|
20
20
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
21
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -45,6 +45,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
45
45
|
this.placeholder = undefined;
|
|
46
46
|
this.disabledDates = '';
|
|
47
47
|
this.disabled = false;
|
|
48
|
+
this.noMargin = false;
|
|
48
49
|
this.noCaption = false;
|
|
49
50
|
this.caption = '';
|
|
50
51
|
this.captionError = undefined;
|
|
@@ -165,7 +166,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
165
166
|
'full-width': this.fullWidth,
|
|
166
167
|
'linked-component': this.linkedComponent,
|
|
167
168
|
});
|
|
168
|
-
return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement })));
|
|
169
|
+
return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement, noMargin: this.noMargin })));
|
|
169
170
|
}
|
|
170
171
|
get el() { return this; }
|
|
171
172
|
static get watchers() { return {
|
|
@@ -187,6 +188,7 @@ const BcmDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
187
188
|
"placeholder": [1025],
|
|
188
189
|
"disabledDates": [1032, "disableddates"],
|
|
189
190
|
"disabled": [1028],
|
|
191
|
+
"noMargin": [1028, "no-margin"],
|
|
190
192
|
"noCaption": [1028, "no-caption"],
|
|
191
193
|
"caption": [1025],
|
|
192
194
|
"captionError": [1025, "caption-error"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BcmDate extends Components.BcmDate, HTMLElement {}
|
|
4
|
+
export const BcmDate: {
|
|
5
|
+
prototype: BcmDate;
|
|
6
|
+
new (): BcmDate;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
// type a göre format belirleme işlemi
|
|
41
|
+
this.getFormat = () => {
|
|
42
|
+
if (!this.format) {
|
|
43
|
+
switch (this.type) {
|
|
44
|
+
case "time":
|
|
45
|
+
return this.showSecond ? "HH:mm:ss" : this.showMinute ? "HH:mm" : "HH";
|
|
46
|
+
case "date":
|
|
47
|
+
return "DD/MM/YYYY";
|
|
48
|
+
case "datetime":
|
|
49
|
+
return this.showSecond ? "DD/MM/YYYY HH:mm:ss" : this.showMinute ? "DD/MM/YYYY HH:mm" : "DD/MM/YYYY HH";
|
|
50
|
+
case "week":
|
|
51
|
+
return "YYYY-wo";
|
|
52
|
+
case "month":
|
|
53
|
+
return "MM/YYYY";
|
|
54
|
+
case "year":
|
|
55
|
+
return "YYYY";
|
|
56
|
+
default:
|
|
57
|
+
return "DD/MM/YYYY";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return this.format;
|
|
61
|
+
};
|
|
62
|
+
this.getValueObject = (value) => {
|
|
63
|
+
if (this.range) {
|
|
64
|
+
return this.getRangeValueObject(value);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
return this.createValueObject(value);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
this.getRangeValueObject = (value) => {
|
|
71
|
+
const [start, end] = value._i || [];
|
|
72
|
+
const startObject = this.createValueObject(start);
|
|
73
|
+
const endObject = this.createValueObject(end);
|
|
74
|
+
return Object.assign({ isValid: startObject.isValid && endObject.isValid, start: startObject, end: endObject, date: [startObject.date, endObject.date], timestamp: [startObject.timestamp, endObject.timestamp], value: `${startObject.value} - ${endObject.value}` }, (this.type === "time" && {
|
|
75
|
+
time: `${startObject.time} - ${endObject.time}`,
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
this.createValueObject = (value) => {
|
|
79
|
+
if (value && hooks(value).isValid()) {
|
|
80
|
+
return Object.assign({ isValid: hooks(value).isValid(), date: hooks(value).toDate(), timestamp: hooks(value).valueOf(), dateObject: {
|
|
81
|
+
year: hooks(value).year(),
|
|
82
|
+
day: hooks(value).date(),
|
|
83
|
+
month: hooks(value).month(),
|
|
84
|
+
dayOfWeek: hooks(value).day(),
|
|
85
|
+
monthFirstDay: hooks(value).startOf("month").day(),
|
|
86
|
+
}, value: hooks(value).format(this.getFormat()) }, (this.type === "time" && {
|
|
87
|
+
time: hooks(value).format(this.getFormat()),
|
|
88
|
+
timeObject: {
|
|
89
|
+
hour: hooks(value).hour(),
|
|
90
|
+
minute: hooks(value).minute(),
|
|
91
|
+
second: hooks(value).second(),
|
|
92
|
+
},
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
this._id = Generate.UID();
|
|
100
|
+
this.label = undefined;
|
|
101
|
+
this.placeholder = undefined;
|
|
102
|
+
this.size = Bcm.Size.medium;
|
|
103
|
+
this.fullWidth = false;
|
|
104
|
+
this.required = false;
|
|
105
|
+
this.clearable = false;
|
|
106
|
+
this.disabled = false;
|
|
107
|
+
this.noMargin = false;
|
|
108
|
+
this.caption = undefined;
|
|
109
|
+
this.noCaption = false;
|
|
110
|
+
this.captionType = Bcm.Status.default;
|
|
111
|
+
this.captionError = undefined;
|
|
112
|
+
this.name = undefined;
|
|
113
|
+
this.value = undefined;
|
|
114
|
+
this.type = "date";
|
|
115
|
+
this.format = undefined;
|
|
116
|
+
this.range = false;
|
|
117
|
+
this.showTime = false;
|
|
118
|
+
this.showNow = true;
|
|
119
|
+
this.showHour = true;
|
|
120
|
+
this.showMinute = true;
|
|
121
|
+
this.showSecond = false;
|
|
122
|
+
this.use12Hours = false;
|
|
123
|
+
this.hourStep = 1;
|
|
124
|
+
this.minuteStep = 1;
|
|
125
|
+
this.secondStep = 1;
|
|
126
|
+
this.hideDisabledOptions = false;
|
|
127
|
+
this.disabledTime = undefined;
|
|
128
|
+
this.showToday = true;
|
|
129
|
+
this.disabledDates = undefined;
|
|
130
|
+
}
|
|
131
|
+
async getValue() {
|
|
132
|
+
return this.value;
|
|
133
|
+
}
|
|
134
|
+
async get() {
|
|
135
|
+
var _a;
|
|
136
|
+
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
|
|
137
|
+
}
|
|
138
|
+
async set(value) {
|
|
139
|
+
// this.value = value;
|
|
140
|
+
this.getPickerElement().set(value);
|
|
141
|
+
}
|
|
142
|
+
async setClear() {
|
|
143
|
+
this.getPickerElement().set(null);
|
|
144
|
+
}
|
|
145
|
+
async resetCaption() {
|
|
146
|
+
this.captionType = "default";
|
|
147
|
+
this.captionError = null;
|
|
148
|
+
}
|
|
149
|
+
async getInput() {
|
|
150
|
+
return this.el.querySelector("input");
|
|
151
|
+
}
|
|
152
|
+
async isValid() {
|
|
153
|
+
var _a;
|
|
154
|
+
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.isValid) || false;
|
|
155
|
+
}
|
|
156
|
+
getPickerElement() {
|
|
157
|
+
return this.el.querySelector("bcm-rc-picker");
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
const { label, size, captionType, required, _id } = this;
|
|
161
|
+
return (h(Host, { class: classnames("bcm-ui-element bcm-ui-input", "tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col", {
|
|
162
|
+
"tw-max-w-[256px]": !this.fullWidth,
|
|
163
|
+
"tw-mb-2": !this.noMargin,
|
|
164
|
+
}) }, label && h(LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), h("bcm-rc-picker", { id: _id + "-picker", class: classnames("w-full tw-flex"), onBcmRCPickerChange: e => this.onChange(e), disabled: this.disabled, clearable: this.clearable, size: size, placeholder: this.placeholder, error: this.captionType === "error", type: this.type, format: this.getFormat(), range: this.range, showToday: this.showToday, disabledDates: this.disabledDates, showTime: this.showTime, showNow: this.showNow, showHour: this.showHour, showMinute: this.showMinute, showSecond: this.showSecond, use12Hours: this.use12Hours, hourStep: this.hourStep, minuteStep: this.minuteStep, secondStep: this.secondStep, hideDisabledOptions: this.hideDisabledOptions, disabledTime: this.disabledTime }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
|
|
165
|
+
}
|
|
166
|
+
get el() { return this; }
|
|
167
|
+
}, [0, "bcm-date", {
|
|
168
|
+
"_id": [513, "id"],
|
|
169
|
+
"label": [1],
|
|
170
|
+
"placeholder": [1],
|
|
171
|
+
"size": [1],
|
|
172
|
+
"fullWidth": [4, "full-width"],
|
|
173
|
+
"required": [4],
|
|
174
|
+
"clearable": [4],
|
|
175
|
+
"disabled": [4],
|
|
176
|
+
"noMargin": [4, "no-margin"],
|
|
177
|
+
"caption": [1],
|
|
178
|
+
"noCaption": [4, "no-caption"],
|
|
179
|
+
"captionType": [1025, "caption-type"],
|
|
180
|
+
"captionError": [1025, "caption-error"],
|
|
181
|
+
"name": [1],
|
|
182
|
+
"value": [1032],
|
|
183
|
+
"type": [1],
|
|
184
|
+
"format": [8],
|
|
185
|
+
"range": [4],
|
|
186
|
+
"showTime": [4, "show-time"],
|
|
187
|
+
"showNow": [4, "show-now"],
|
|
188
|
+
"showHour": [4, "show-hour"],
|
|
189
|
+
"showMinute": [4, "show-minute"],
|
|
190
|
+
"showSecond": [4, "show-second"],
|
|
191
|
+
"use12Hours": [4, "use-1-2-hours"],
|
|
192
|
+
"hourStep": [2, "hour-step"],
|
|
193
|
+
"minuteStep": [2, "minute-step"],
|
|
194
|
+
"secondStep": [2, "second-step"],
|
|
195
|
+
"hideDisabledOptions": [4, "hide-disabled-options"],
|
|
196
|
+
"disabledTime": [8, "disabled-time"],
|
|
197
|
+
"showToday": [4, "show-today"],
|
|
198
|
+
"disabledDates": [8, "disabled-dates"],
|
|
199
|
+
"getValue": [64],
|
|
200
|
+
"get": [64],
|
|
201
|
+
"set": [64],
|
|
202
|
+
"setClear": [64],
|
|
203
|
+
"resetCaption": [64],
|
|
204
|
+
"getInput": [64],
|
|
205
|
+
"isValid": [64]
|
|
206
|
+
}]);
|
|
207
|
+
__decorate([
|
|
208
|
+
IsLoad()
|
|
209
|
+
], BcmDate$1.prototype, "el", void 0);
|
|
210
|
+
function defineCustomElement$1() {
|
|
211
|
+
if (typeof customElements === "undefined") {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
const components = ["bcm-date", "bcm-rc-picker"];
|
|
215
|
+
components.forEach(tagName => { switch (tagName) {
|
|
216
|
+
case "bcm-date":
|
|
217
|
+
if (!customElements.get(tagName)) {
|
|
218
|
+
customElements.define(tagName, BcmDate$1);
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
case "bcm-rc-picker":
|
|
222
|
+
if (!customElements.get(tagName)) {
|
|
223
|
+
defineCustomElement$2();
|
|
224
|
+
}
|
|
225
|
+
break;
|
|
226
|
+
} });
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const BcmDate = BcmDate$1;
|
|
230
|
+
const defineCustomElement = defineCustomElement$1;
|
|
231
|
+
|
|
232
|
+
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;
|