bromcom-ui 2.9.0-rc.14 → 2.9.0-rc.16
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.esm.js +1 -1
- package/dist/bromcom-ui/{p-6e592196.entry.js → p-00f70814.entry.js} +1 -1
- package/dist/bromcom-ui/p-030f76e1.entry.js +5 -0
- package/dist/bromcom-ui/p-0720cb6f.js +5 -0
- package/dist/bromcom-ui/{p-4798d827.js → p-07c3eb8e.js} +1 -1
- package/dist/bromcom-ui/p-08f8f54b.entry.js +5 -0
- package/dist/bromcom-ui/{p-74d95615.js → p-0c82b9dd.js} +1 -1
- package/dist/bromcom-ui/p-11bbdf4e.entry.js +5 -0
- package/dist/bromcom-ui/{p-fd37157c.entry.js → p-1842c0ae.entry.js} +1 -1
- package/dist/bromcom-ui/p-1c67fb2c.entry.js +5 -0
- package/dist/bromcom-ui/{p-ba3c6657.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-df185078.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a42921be.entry.js → p-2062bcad.entry.js} +1 -1
- package/dist/bromcom-ui/p-227574bd.entry.js +5 -0
- package/dist/bromcom-ui/{p-1e439cb9.entry.js → p-29e0998f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/{p-43a16ce4.js → p-2c5a0863.js} +1 -1
- package/dist/bromcom-ui/p-33e572c7.entry.js +5 -0
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/{p-1cadeabe.entry.js → p-3932096b.entry.js} +1 -1
- package/dist/bromcom-ui/p-46169c1c.entry.js +5 -0
- package/dist/bromcom-ui/{p-9314d7ed.entry.js → p-46207bba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b5754c6.entry.js → p-4676e8f0.entry.js} +1 -1
- package/dist/bromcom-ui/p-49283813.entry.js +5 -0
- package/dist/bromcom-ui/{p-123d6355.entry.js → p-4e79863b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5f9c9549.entry.js → p-5017ff5e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f6648bd1.js → p-512cb112.js} +1 -1
- package/dist/bromcom-ui/p-5436ea4f.entry.js +5 -0
- package/dist/bromcom-ui/{p-8fcf6a44.js → p-550a0676.js} +1 -1
- package/dist/bromcom-ui/{p-7b486021.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-37488f1a.entry.js → p-5871767a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8d7c1af0.entry.js → p-5a8e767a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c111486.entry.js → p-60bb78b8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3078fcd2.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-d421811f.entry.js → p-657d2834.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ebe49b26.entry.js → p-660a8daa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/p-6a45c5a6.js +5 -0
- package/dist/bromcom-ui/{p-034bbcdd.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/{p-1359971c.entry.js → p-7585daca.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0332d483.js → p-78baef69.js} +1 -1
- package/dist/bromcom-ui/{p-c17a1c9c.entry.js → p-7ab25e89.entry.js} +1 -1
- package/dist/bromcom-ui/p-7c8623d0.entry.js +5 -0
- package/dist/bromcom-ui/p-7cb30513.js +5 -0
- package/dist/bromcom-ui/{p-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/p-7f7ba6ac.entry.js +13 -0
- package/dist/bromcom-ui/p-83f4cf84.entry.js +5 -0
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-dbbe85a2.entry.js → p-86cd7eac.entry.js} +1 -1
- package/dist/bromcom-ui/p-89bea864.entry.js +5 -0
- package/dist/bromcom-ui/{p-6a7e07a9.entry.js → p-8be78066.entry.js} +1 -1
- package/dist/bromcom-ui/{p-461a8ad1.js → p-8c4d1c0d.js} +1 -1
- package/dist/bromcom-ui/{p-d28142f9.entry.js → p-8d288e04.entry.js} +1 -1
- package/dist/bromcom-ui/p-8ecd7dc7.entry.js +5 -0
- package/dist/bromcom-ui/{p-6b7f2b84.entry.js → p-8efaea12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a2ab6adb.entry.js → p-8f9077af.entry.js} +1 -1
- package/dist/bromcom-ui/{p-88c10970.entry.js → p-90914449.entry.js} +1 -1
- package/dist/bromcom-ui/p-9850cbce.js +5 -0
- package/dist/bromcom-ui/{p-02ad5557.entry.js → p-9e9fbc23.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dc8305dc.js → p-a1b1750c.js} +1 -1
- package/dist/bromcom-ui/{p-4e33341b.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6ab403d2.entry.js → p-b4ab469f.entry.js} +1 -1
- package/dist/bromcom-ui/p-b5500fbe.entry.js +5 -0
- package/dist/bromcom-ui/{p-d8cadf00.entry.js → p-b609b1ff.entry.js} +1 -1
- package/dist/bromcom-ui/p-b81e8f91.js +5 -0
- package/dist/bromcom-ui/{p-3a06c6b1.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e7728eb8.entry.js → p-c9124af7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9d12a9da.entry.js → p-c9c7067e.entry.js} +1 -1
- package/dist/bromcom-ui/p-ccf0872d.js +5 -0
- package/dist/bromcom-ui/p-cf3cf447.entry.js +5 -0
- package/dist/bromcom-ui/{p-91246af3.js → p-d153c7fc.js} +1 -1
- package/dist/bromcom-ui/p-d245e0a0.js +5 -0
- package/dist/bromcom-ui/{p-00c15b34.entry.js → p-d35d3363.entry.js} +1 -1
- package/dist/bromcom-ui/p-d380e82d.entry.js +5 -0
- package/dist/bromcom-ui/{p-8a117641.entry.js → p-d492f0ff.entry.js} +1 -1
- package/dist/bromcom-ui/{p-84e87c10.entry.js → p-d4a47122.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4df7fdfe.entry.js → p-d50e62e3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-774708c3.js → p-d6e1a945.js} +1 -1
- package/dist/bromcom-ui/p-d7c46622.entry.js +5 -0
- package/dist/bromcom-ui/p-df191eb4.entry.js +5 -0
- package/dist/bromcom-ui/{p-395c780d.entry.js → p-df2eb6bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-12a73bfa.entry.js → p-e10682a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3006537d.entry.js → p-e4486524.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e096c551.entry.js → p-e8f4e425.entry.js} +1 -1
- package/dist/bromcom-ui/p-eb62dda7.entry.js +5 -0
- package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dec4ea67.entry.js → p-f644d1b8.entry.js} +1 -1
- package/dist/bromcom-ui/p-f711588b.js +5 -0
- package/dist/bromcom-ui/p-ff9a9423.entry.js +5 -0
- package/dist/bromcom-ui/{p-b284e383.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/cjs/{bcm-03727f3b.js → bcm-7f703055.js} +28 -27
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +6 -7
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +4 -4
- package/dist/cjs/{bcm-button_9.cjs.entry.js → bcm-button_14.cjs.entry.js} +16738 -892
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +7 -7
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-chip-group.cjs.entry.js +8 -9
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +6 -7
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +6 -7
- package/dist/cjs/bcm-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
- package/dist/cjs/bcm-form.cjs.entry.js +3 -3
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
- package/dist/cjs/bcm-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-items.cjs.entry.js +4 -4
- package/dist/cjs/bcm-link.cjs.entry.js +1 -1
- package/dist/cjs/bcm-list_3.cjs.entry.js +28 -29
- package/dist/cjs/bcm-menu.cjs.entry.js +9 -10
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -7
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -7
- package/dist/cjs/bcm-modal-2.cjs.entry.js +6 -7
- package/dist/cjs/bcm-modal.cjs.entry.js +5 -5
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
- package/dist/cjs/bcm-popover.cjs.entry.js +7 -8
- package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
- package/dist/cjs/bcm-radio-group.cjs.entry.js +7 -8
- package/dist/cjs/bcm-radio.cjs.entry.js +6 -7
- package/dist/cjs/bcm-range.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +7 -8
- package/dist/cjs/bcm-switch.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -7
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +6 -7
- package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -7
- package/dist/cjs/bcm-table.cjs.entry.js +6 -7
- package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
- package/dist/cjs/bcm-text.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +163 -0
- package/dist/cjs/bcm-toast.cjs.entry.js +4 -4
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{floating-ui-baa45717.js → floating-ui-b441ea7c.js} +1 -1
- package/dist/cjs/{generate-3ece348b.js → generate-91a65294.js} +1 -1
- package/dist/cjs/{global-6ab24771.js → global-b209d1e4.js} +1 -1
- package/dist/cjs/{index-e05a7c6f.js → index-7eed931f.js} +1625 -24
- package/dist/cjs/{input-template-dba31783.js → input-template-dc157fc2.js} +2 -2
- package/dist/cjs/{is-load-decorator-7575fbd2.js → is-load-decorator-15036f37.js} +2 -1
- package/dist/cjs/{json-parse-decarator-1987a7bd.js → json-parse-decarator-32a5151e.js} +1 -1
- package/dist/cjs/{label-template-15c3c0ed.js → label-template-80235581.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-f80c6c41.js → number-helper-c44b719b.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/{package-338cedd9.js → package-acdd89a1.js} +1 -1
- package/dist/cjs/{popover-placement-8866eab1.js → popover-placement-f20020a6.js} +1 -1
- package/dist/cjs/{slot-template-de6a91b1.js → slot-template-873b0cd5.js} +1 -1
- package/dist/cjs/{stepper-states-310b6127.js → stepper-states-c188e535.js} +1 -1
- package/dist/cjs/{string-helper-9b392049.js → string-helper-fda7cbba.js} +1 -1
- package/dist/cjs/{tooltip-helper-1a672e09.js → tooltip-helper-a3643a7d.js} +6 -7
- package/dist/cjs/{validators-c318271a.js → validators-74e507fb.js} +6 -1
- package/dist/collection/components/atoms/button/button.css +55 -0
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +16 -14
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/organism/list/list.js +19 -0
- package/dist/collection/components/third-parts/rc-picker/date.js +163 -19
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +912 -366
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +210 -33
- package/dist/collection/decorators/is-load-decorator.js +2 -1
- package/dist/collection/models/bcm.js +28 -27
- package/dist/components/bcm-date.js +54 -12
- package/dist/components/bcm.js +28 -27
- package/dist/components/button.js +1 -1
- package/dist/components/datetime-picker.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/is-load-decorator.js +2 -1
- package/dist/components/list.js +2 -0
- package/dist/components/rc-picker.js +64 -29
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/bcm-accordion.entry.js +4 -4
- package/dist/esm/bcm-alert.entry.js +7 -7
- package/dist/esm/bcm-attendance.entry.js +4 -4
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +9 -10
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-button-group.entry.js +7 -7
- package/dist/esm/{bcm-button_9.entry.js → bcm-button_14.entry.js} +16738 -897
- package/dist/esm/bcm-card.entry.js +9 -9
- package/dist/esm/bcm-checkbox-group.entry.js +10 -10
- package/dist/esm/bcm-checkbox-lite_9.entry.js +6 -6
- package/dist/esm/bcm-checkbox_2.entry.js +11 -11
- package/dist/esm/bcm-chip-group.entry.js +13 -14
- package/dist/esm/bcm-chip.entry.js +6 -6
- package/dist/esm/bcm-collapse.entry.js +5 -5
- package/dist/esm/bcm-color-input.entry.js +9 -10
- package/dist/esm/bcm-colorpicker.entry.js +2 -2
- package/dist/esm/{bcm-ac17222c.js → bcm-d45dc47d.js} +28 -27
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-drawer.entry.js +10 -11
- package/dist/esm/bcm-dropdown.entry.js +8 -8
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +8 -8
- package/dist/esm/bcm-form.entry.js +5 -5
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +305 -0
- package/dist/esm/bcm-item.entry.js +7 -7
- package/dist/esm/bcm-items.entry.js +6 -6
- package/dist/esm/bcm-link.entry.js +3 -3
- package/dist/esm/bcm-list_3.entry.js +19 -20
- package/dist/esm/bcm-menu.entry.js +13 -14
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal-2-footer.entry.js +10 -11
- package/dist/esm/bcm-modal-2-header.entry.js +9 -10
- package/dist/esm/bcm-modal-2.entry.js +10 -11
- package/dist/esm/bcm-modal.entry.js +8 -8
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-tag_2.entry.js +2 -2
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +9 -9
- package/dist/esm/bcm-popconfirm.entry.js +6 -6
- package/dist/esm/bcm-popover.entry.js +10 -11
- package/dist/esm/bcm-progress.entry.js +7 -7
- package/dist/esm/bcm-radio-group.entry.js +12 -13
- package/dist/esm/bcm-radio.entry.js +10 -11
- package/dist/esm/bcm-range.entry.js +6 -6
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-select-group.entry.js +2 -2
- package/dist/esm/bcm-select-option.entry.js +2 -2
- package/dist/esm/bcm-select.entry.js +4 -4
- package/dist/esm/bcm-skeleton.entry.js +4 -4
- package/dist/esm/bcm-step.entry.js +6 -6
- package/dist/esm/bcm-stepper.entry.js +11 -12
- package/dist/esm/bcm-switch.entry.js +8 -8
- package/dist/esm/bcm-tab-group.entry.js +9 -10
- package/dist/esm/bcm-tab-item-header.entry.js +10 -11
- package/dist/esm/bcm-tab-item.entry.js +9 -10
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +2 -2
- package/dist/esm/bcm-table.entry.js +10 -11
- package/dist/esm/bcm-tabs-content.entry.js +2 -2
- package/dist/esm/bcm-tabs.entry.js +2 -2
- package/dist/esm/bcm-tag.entry.js +7 -7
- package/dist/esm/bcm-text.entry.js +7 -7
- package/dist/esm/bcm-textarea.entry.js +159 -0
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +7 -7
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-e973a48c.js → caption-template-d47f338f.js} +1 -1
- package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-71b610e7.js} +1 -1
- package/dist/esm/{colors-e1c31f79.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{floating-ui-54c52eaa.js → floating-ui-8a0c54d6.js} +1 -1
- package/dist/esm/{generate-87200d1c.js → generate-77508025.js} +2 -2
- package/dist/esm/{global-50960b0d.js → global-473e45f0.js} +1 -1
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-a6d9d0af.js → index-e4b6a4ce.js} +1612 -26
- package/dist/esm/{input-template-ab70223f.js → input-template-83fefdcc.js} +3 -3
- package/dist/esm/{is-load-decorator-6784aa87.js → is-load-decorator-8277e3b8.js} +2 -1
- package/dist/esm/{json-parse-decarator-a56bad01.js → json-parse-decarator-7221b8e2.js} +1 -1
- package/dist/esm/{label-template-62e49c38.js → label-template-946d4062.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-d3485207.js → number-helper-9ffb551c.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -10
- package/dist/esm/old-bcm-popover.entry.js +6 -6
- package/dist/esm/{package-e0503891.js → package-a7b14d41.js} +1 -1
- package/dist/esm/{popover-placement-7cce412f.js → popover-placement-be68c848.js} +1 -1
- package/dist/esm/{slot-template-7447145d.js → slot-template-fcc7846e.js} +1 -1
- package/dist/esm/{stepper-states-8ed538e6.js → stepper-states-d032d06a.js} +1 -1
- package/dist/esm/{string-helper-5ef67a66.js → string-helper-b0e05041.js} +2 -2
- package/dist/esm/{tooltip-helper-c8970f99.js → tooltip-helper-04d51591.js} +7 -8
- package/dist/esm/{validators-3438f640.js → validators-39c53eb5.js} +6 -2
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +5 -17
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/third-parts/rc-picker/date.d.ts +16 -2
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +10 -2
- package/dist/types/components.d.ts +41 -12
- package/dist/types/models/bcm.d.ts +247 -235
- package/package.json +1 -1
- package/dist/bromcom-ui/p-013e2754.entry.js +0 -5
- package/dist/bromcom-ui/p-109e236f.entry.js +0 -5
- package/dist/bromcom-ui/p-18cec6df.js +0 -5
- package/dist/bromcom-ui/p-1b6cf687.entry.js +0 -5
- package/dist/bromcom-ui/p-23c35e1b.js +0 -5
- package/dist/bromcom-ui/p-3182df7e.js +0 -10
- package/dist/bromcom-ui/p-36086f27.entry.js +0 -5
- package/dist/bromcom-ui/p-36e8b68d.entry.js +0 -5
- package/dist/bromcom-ui/p-3ade1099.js +0 -5
- package/dist/bromcom-ui/p-3d135c37.entry.js +0 -5
- package/dist/bromcom-ui/p-43a6794f.entry.js +0 -5
- package/dist/bromcom-ui/p-44ca28fa.entry.js +0 -5
- package/dist/bromcom-ui/p-489cf42b.entry.js +0 -5
- package/dist/bromcom-ui/p-49f37d54.js +0 -5
- package/dist/bromcom-ui/p-4a6505b5.entry.js +0 -5
- package/dist/bromcom-ui/p-51ea1c7b.entry.js +0 -5
- package/dist/bromcom-ui/p-59749f31.entry.js +0 -5
- package/dist/bromcom-ui/p-5bc314e4.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-6ed4b153.entry.js +0 -5
- package/dist/bromcom-ui/p-73c223c8.entry.js +0 -5
- package/dist/bromcom-ui/p-7853a51e.entry.js +0 -5
- package/dist/bromcom-ui/p-7e3209a0.js +0 -14
- package/dist/bromcom-ui/p-88485410.entry.js +0 -5
- package/dist/bromcom-ui/p-891889f6.entry.js +0 -5
- package/dist/bromcom-ui/p-89f1571f.entry.js +0 -5
- package/dist/bromcom-ui/p-95fa989d.entry.js +0 -5
- package/dist/bromcom-ui/p-a7ed0981.entry.js +0 -5
- package/dist/bromcom-ui/p-b27f3556.js +0 -5
- package/dist/bromcom-ui/p-b48b8c98.entry.js +0 -5
- package/dist/bromcom-ui/p-b712ba6c.js +0 -5
- package/dist/bromcom-ui/p-b82685e4.js +0 -12
- package/dist/bromcom-ui/p-bb9aa7d4.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-d3d07c8c.js +0 -5
- package/dist/bromcom-ui/p-e1877ee9.js +0 -5
- package/dist/bromcom-ui/p-ebf322d6.entry.js +0 -5
- package/dist/bromcom-ui/p-f659324d.entry.js +0 -5
- package/dist/bromcom-ui/p-fdcde7e8.entry.js +0 -5
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
- package/dist/cjs/bcm-date.cjs.entry.js +0 -124
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1451
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -212
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -8150
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -150
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/index-c08b35b2.js +0 -1610
- package/dist/cjs/moment-c1a71617.js +0 -5689
- package/dist/esm/bcm-date-picker.entry.js +0 -178
- package/dist/esm/bcm-date.entry.js +0 -120
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1447
- package/dist/esm/bcm-form-2.entry.js +0 -208
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-rc-picker.entry.js +0 -8146
- package/dist/esm/bcm-time-picker.entry.js +0 -146
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/index-c4568336.js +0 -1594
- package/dist/esm/moment-24231dde.js +0 -5686
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { Bcm } from "@bcm/model";
|
|
1
6
|
import moment from "moment";
|
|
2
7
|
import Picker from "rc-picker";
|
|
3
8
|
import momentGenerateConfig from "rc-picker/lib/generate/moment";
|
|
4
9
|
import enUS from "rc-picker/lib/locale/en_US";
|
|
10
|
+
import cs from "classnames";
|
|
5
11
|
import React from "react";
|
|
6
12
|
import ReactDOM from "react-dom";
|
|
7
13
|
export class BcmRcPicker {
|
|
@@ -10,9 +16,16 @@ export class BcmRcPicker {
|
|
|
10
16
|
this.type = "date";
|
|
11
17
|
this.format = undefined;
|
|
12
18
|
this.placeholder = undefined;
|
|
19
|
+
this.size = Bcm.Size.medium;
|
|
13
20
|
this.showTime = undefined;
|
|
14
21
|
this.showToday = undefined;
|
|
15
22
|
this.showNow = undefined;
|
|
23
|
+
this.showHour = undefined;
|
|
24
|
+
this.showMinute = undefined;
|
|
25
|
+
this.showSecond = undefined;
|
|
26
|
+
this.use12Hours = undefined;
|
|
27
|
+
this.error = undefined;
|
|
28
|
+
this.disabled = undefined;
|
|
16
29
|
this.clearable = false;
|
|
17
30
|
this.defaultValue = undefined;
|
|
18
31
|
this.newValue = undefined;
|
|
@@ -24,57 +37,79 @@ export class BcmRcPicker {
|
|
|
24
37
|
this.setValue(newValue);
|
|
25
38
|
this.bcmRCPickerChange.emit(newValue ? moment(newValue) : null);
|
|
26
39
|
}
|
|
27
|
-
|
|
28
|
-
if (
|
|
29
|
-
this.newValue = moment(
|
|
40
|
+
async set(value) {
|
|
41
|
+
if (value && value != "invalid date") {
|
|
42
|
+
this.newValue = moment(value);
|
|
43
|
+
this.handleChange(moment(value));
|
|
30
44
|
}
|
|
31
45
|
}
|
|
32
46
|
componentDidRender() {
|
|
33
47
|
// const onSelect = (newValue: Moment) => {
|
|
34
48
|
// // console.log("Select:", newValue);
|
|
35
49
|
// };
|
|
36
|
-
const props = Object.assign(Object.assign(Object.assign({}, (this.format && { format: this.format })), (this.clearable && { allowClear: this.clearable })), (this.placeholder && { placeholder: this.placeholder }));
|
|
50
|
+
const props = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (this.format && { format: this.format })), (this.clearable && { allowClear: this.clearable })), (this.placeholder && { placeholder: this.placeholder })), (this.error && { error: this.error })), (this.disabled && { disabled: this.disabled }));
|
|
37
51
|
const options = {
|
|
38
52
|
time: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
53
|
+
// showTime: this.showTime,
|
|
54
|
+
// showToday: this.showToday,
|
|
55
|
+
showNow: this.showNow,
|
|
56
|
+
showHour: this.showHour,
|
|
57
|
+
showMinute: this.showMinute,
|
|
58
|
+
showSecond: this.showSecond,
|
|
59
|
+
use12Hours: this.use12Hours,
|
|
60
|
+
format: this.format,
|
|
45
61
|
hourStep: 1,
|
|
46
|
-
minuteStep:
|
|
62
|
+
minuteStep: 1,
|
|
47
63
|
secondStep: 1,
|
|
48
64
|
hideDisabledOptions: false,
|
|
49
|
-
defaultValue: moment("08:00", "HH:mm"),
|
|
65
|
+
// defaultValue: moment("08:00", "HH:mm"),
|
|
50
66
|
disabledTime: () => ({
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
67
|
+
// disabledHours: () => [0, 1, 2, 3, 4, 5, 6, 7, 13, 18, 19, 20, 21, 22, 23],
|
|
68
|
+
// disabledMinutes: () => [1, 2, 3],
|
|
69
|
+
// disabledSeconds: () => [1, 2, 3],
|
|
54
70
|
}),
|
|
55
71
|
active: true,
|
|
56
72
|
},
|
|
57
73
|
date: {
|
|
58
|
-
format:
|
|
74
|
+
format: this.format,
|
|
75
|
+
showToday: this.showToday,
|
|
59
76
|
},
|
|
60
77
|
datetime: {
|
|
61
78
|
showTime: true,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
79
|
+
showNow: this.showNow,
|
|
80
|
+
showHour: this.showHour,
|
|
81
|
+
showMinute: this.showMinute,
|
|
82
|
+
showSecond: this.showSecond,
|
|
83
|
+
use12Hours: this.use12Hours,
|
|
84
|
+
format: this.format,
|
|
85
|
+
showToday: this.showToday,
|
|
67
86
|
},
|
|
68
87
|
};
|
|
69
88
|
const sharedProps = Object.assign(Object.assign(Object.assign(Object.assign({ generateConfig: momentGenerateConfig, value: this.newValue,
|
|
70
|
-
// onSelect,
|
|
71
|
-
onChange: (newValue) => this.handleChange(newValue) }, props), { picker: this.type
|
|
72
|
-
|
|
89
|
+
// onSelect: (newValue: Moment) => this.handleChange(newValue),
|
|
90
|
+
onChange: (newValue) => this.handleChange(newValue) }, props), { picker: this.type,
|
|
91
|
+
// presets: [
|
|
92
|
+
// {
|
|
93
|
+
// label: "Hello World!",
|
|
94
|
+
// value: moment(),
|
|
95
|
+
// },
|
|
96
|
+
// {
|
|
97
|
+
// label: "Now",
|
|
98
|
+
// value: () => moment(),
|
|
99
|
+
// },
|
|
100
|
+
// ]
|
|
101
|
+
// showTime: true,
|
|
102
|
+
// showSecond: false,
|
|
103
|
+
prefixCls: "bcm-date", suffixIcon: " " }), options[this.type]), { autofocus: true });
|
|
104
|
+
ReactDOM.render(React.createElement(Picker, Object.assign(Object.assign({}, sharedProps), { locale: enUS, className: cs("bcm-date--" + this.type, {
|
|
105
|
+
[`bcm-date--${this.size}`]: this.size,
|
|
106
|
+
[`bcm-date--error`]: this.error,
|
|
107
|
+
}) })), this.el);
|
|
73
108
|
}
|
|
74
109
|
static get is() { return "bcm-rc-picker"; }
|
|
75
110
|
static get originalStyleUrls() {
|
|
76
111
|
return {
|
|
77
|
-
"$": ["rc-picker.
|
|
112
|
+
"$": ["rc-picker.scss"]
|
|
78
113
|
};
|
|
79
114
|
}
|
|
80
115
|
static get styleUrls() {
|
|
@@ -105,8 +140,8 @@ export class BcmRcPicker {
|
|
|
105
140
|
"type": "string",
|
|
106
141
|
"mutable": false,
|
|
107
142
|
"complexType": {
|
|
108
|
-
"original": "\"time\" | \"date\" | \"week\" | \"month\" | \"year\"",
|
|
109
|
-
"resolved": "\"date\" | \"month\" | \"time\" | \"week\" | \"year\"",
|
|
143
|
+
"original": "\"time\" | \"date\" | \"week\" | \"month\" | \"year\" | \"datetime\"",
|
|
144
|
+
"resolved": "\"date\" | \"datetime\" | \"month\" | \"time\" | \"week\" | \"year\"",
|
|
110
145
|
"references": {}
|
|
111
146
|
},
|
|
112
147
|
"required": false,
|
|
@@ -153,6 +188,29 @@ export class BcmRcPicker {
|
|
|
153
188
|
"attribute": "placeholder",
|
|
154
189
|
"reflect": false
|
|
155
190
|
},
|
|
191
|
+
"size": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "SizeTypes",
|
|
196
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
197
|
+
"references": {
|
|
198
|
+
"SizeTypes": {
|
|
199
|
+
"location": "import",
|
|
200
|
+
"path": "@bcm/model"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"attribute": "size",
|
|
211
|
+
"reflect": true,
|
|
212
|
+
"defaultValue": "Bcm.Size.medium"
|
|
213
|
+
},
|
|
156
214
|
"showTime": {
|
|
157
215
|
"type": "any",
|
|
158
216
|
"mutable": false,
|
|
@@ -204,6 +262,108 @@ export class BcmRcPicker {
|
|
|
204
262
|
"attribute": "show-now",
|
|
205
263
|
"reflect": false
|
|
206
264
|
},
|
|
265
|
+
"showHour": {
|
|
266
|
+
"type": "any",
|
|
267
|
+
"mutable": false,
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "any",
|
|
270
|
+
"resolved": "any",
|
|
271
|
+
"references": {}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": false,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": ""
|
|
278
|
+
},
|
|
279
|
+
"attribute": "show-hour",
|
|
280
|
+
"reflect": false
|
|
281
|
+
},
|
|
282
|
+
"showMinute": {
|
|
283
|
+
"type": "any",
|
|
284
|
+
"mutable": false,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "any",
|
|
287
|
+
"resolved": "any",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": false,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": ""
|
|
295
|
+
},
|
|
296
|
+
"attribute": "show-minute",
|
|
297
|
+
"reflect": false
|
|
298
|
+
},
|
|
299
|
+
"showSecond": {
|
|
300
|
+
"type": "any",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "any",
|
|
304
|
+
"resolved": "any",
|
|
305
|
+
"references": {}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": false,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": ""
|
|
312
|
+
},
|
|
313
|
+
"attribute": "show-second",
|
|
314
|
+
"reflect": false
|
|
315
|
+
},
|
|
316
|
+
"use12Hours": {
|
|
317
|
+
"type": "any",
|
|
318
|
+
"mutable": false,
|
|
319
|
+
"complexType": {
|
|
320
|
+
"original": "any",
|
|
321
|
+
"resolved": "any",
|
|
322
|
+
"references": {}
|
|
323
|
+
},
|
|
324
|
+
"required": false,
|
|
325
|
+
"optional": false,
|
|
326
|
+
"docs": {
|
|
327
|
+
"tags": [],
|
|
328
|
+
"text": ""
|
|
329
|
+
},
|
|
330
|
+
"attribute": "use-1-2-hours",
|
|
331
|
+
"reflect": false
|
|
332
|
+
},
|
|
333
|
+
"error": {
|
|
334
|
+
"type": "any",
|
|
335
|
+
"mutable": false,
|
|
336
|
+
"complexType": {
|
|
337
|
+
"original": "any",
|
|
338
|
+
"resolved": "any",
|
|
339
|
+
"references": {}
|
|
340
|
+
},
|
|
341
|
+
"required": false,
|
|
342
|
+
"optional": false,
|
|
343
|
+
"docs": {
|
|
344
|
+
"tags": [],
|
|
345
|
+
"text": ""
|
|
346
|
+
},
|
|
347
|
+
"attribute": "error",
|
|
348
|
+
"reflect": false
|
|
349
|
+
},
|
|
350
|
+
"disabled": {
|
|
351
|
+
"type": "any",
|
|
352
|
+
"mutable": false,
|
|
353
|
+
"complexType": {
|
|
354
|
+
"original": "any",
|
|
355
|
+
"resolved": "any",
|
|
356
|
+
"references": {}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": false,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"attribute": "disabled",
|
|
365
|
+
"reflect": false
|
|
366
|
+
},
|
|
207
367
|
"clearable": {
|
|
208
368
|
"type": "boolean",
|
|
209
369
|
"mutable": false,
|
|
@@ -248,11 +408,28 @@ export class BcmRcPicker {
|
|
|
248
408
|
}
|
|
249
409
|
}];
|
|
250
410
|
}
|
|
251
|
-
static get
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
|
|
411
|
+
static get methods() {
|
|
412
|
+
return {
|
|
413
|
+
"set": {
|
|
414
|
+
"complexType": {
|
|
415
|
+
"signature": "(value: any) => Promise<void>",
|
|
416
|
+
"parameters": [{
|
|
417
|
+
"tags": [],
|
|
418
|
+
"text": ""
|
|
419
|
+
}],
|
|
420
|
+
"references": {
|
|
421
|
+
"Promise": {
|
|
422
|
+
"location": "global"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"return": "Promise<void>"
|
|
426
|
+
},
|
|
427
|
+
"docs": {
|
|
428
|
+
"text": "",
|
|
429
|
+
"tags": []
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
};
|
|
257
433
|
}
|
|
434
|
+
static get elementRef() { return "el"; }
|
|
258
435
|
}
|
|
@@ -8,8 +8,9 @@ export function IsLoad() {
|
|
|
8
8
|
const { componentDidLoad } = proto;
|
|
9
9
|
proto.componentDidLoad = function () {
|
|
10
10
|
const host = getElement(this);
|
|
11
|
+
const { openIntersecting } = host;
|
|
11
12
|
initProps(host);
|
|
12
|
-
registerAttrReflect(host);
|
|
13
|
+
openIntersecting && registerAttrReflect(host);
|
|
13
14
|
return componentDidLoad && componentDidLoad.call(this);
|
|
14
15
|
};
|
|
15
16
|
};
|
|
@@ -81,6 +81,7 @@ export var Bcm;
|
|
|
81
81
|
Kind["solid"] = "solid";
|
|
82
82
|
Kind["ghost"] = "ghost";
|
|
83
83
|
Kind["link"] = "link";
|
|
84
|
+
Kind["ghost-link"] = "ghost-link";
|
|
84
85
|
})(Kind = Bcm.Kind || (Bcm.Kind = {}));
|
|
85
86
|
let ButtonType;
|
|
86
87
|
(function (ButtonType) {
|
|
@@ -395,33 +396,33 @@ export var Bcm;
|
|
|
395
396
|
KeyCode[KeyCode["a"] = 65] = "a";
|
|
396
397
|
})(KeyCode = Bcm.KeyCode || (Bcm.KeyCode = {}));
|
|
397
398
|
Bcm.FormErrorMessages = {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
399
|
+
"email": "Please enter a valid email address",
|
|
400
|
+
"password": "Please enter a valid password",
|
|
401
|
+
"url": "Please enter a valid URL",
|
|
402
|
+
"phone": "Please enter a valid phone number",
|
|
403
|
+
"search": "Please enter a valid search term",
|
|
404
|
+
"number": "Please enter a valid number",
|
|
405
|
+
"text": "Please enter a valid text",
|
|
406
|
+
"required": "This field is required",
|
|
407
|
+
"minlength": "This field must be at least {0} characters long",
|
|
408
|
+
"maxlength": "This field must be at most {0} characters long",
|
|
409
|
+
"min": "This field must be at least {0}",
|
|
410
|
+
"max": "This field must be at most {0}",
|
|
411
|
+
"between": "This field must be between {0} and {1}",
|
|
412
|
+
"pattern": "Please use a valid format",
|
|
413
|
+
"date": "Please enter a valid date",
|
|
414
|
+
"time": "Please enter a valid time",
|
|
415
|
+
"datetime": "Please enter a valid date and time",
|
|
416
|
+
"datetime-local": "Please enter a valid date and time",
|
|
417
|
+
"month": "Please enter a valid month",
|
|
418
|
+
"week": "Please enter a valid week",
|
|
419
|
+
"color": "Please enter a valid color",
|
|
420
|
+
"file": "Please enter a valid file",
|
|
421
|
+
"range": "Please enter a valid range",
|
|
422
|
+
"radio": "Please select a valid option",
|
|
423
|
+
"checkbox": "Please select a valid option",
|
|
424
|
+
"select": "Please select a valid option",
|
|
425
|
+
"multiple": "Please select a valid option",
|
|
425
426
|
};
|
|
426
427
|
let IndeterminateType;
|
|
427
428
|
(function (IndeterminateType) {
|
|
@@ -37,21 +37,44 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
37
37
|
this.value = this.getValueObject(e.detail);
|
|
38
38
|
this.change.emit(this.value);
|
|
39
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
|
+
};
|
|
40
62
|
this.getValueObject = (value) => {
|
|
41
63
|
if (value && hooks(value).isValid()) {
|
|
42
|
-
return {
|
|
43
|
-
isValid: hooks(value).isValid(),
|
|
44
|
-
date: hooks(value).toDate(),
|
|
45
|
-
timestamp: hooks(value).valueOf(),
|
|
46
|
-
dateObject: {
|
|
64
|
+
return Object.assign({ isValid: hooks(value).isValid(), date: hooks(value).toDate(), timestamp: hooks(value).valueOf(), dateObject: {
|
|
47
65
|
year: hooks(value).year(),
|
|
48
66
|
day: hooks(value).date(),
|
|
49
67
|
month: hooks(value).month(),
|
|
50
68
|
dayOfWeek: hooks(value).day(),
|
|
51
69
|
monthFirstDay: hooks(value).startOf("month").day(),
|
|
70
|
+
}, value: hooks(value).format(this.getFormat()) }, this.type === "time" && {
|
|
71
|
+
time: hooks(value).format(this.getFormat()),
|
|
72
|
+
timeObject: {
|
|
73
|
+
hour: hooks(value).hour(),
|
|
74
|
+
minute: hooks(value).minute(),
|
|
75
|
+
second: hooks(value).second(),
|
|
52
76
|
},
|
|
53
|
-
|
|
54
|
-
};
|
|
77
|
+
});
|
|
55
78
|
}
|
|
56
79
|
else {
|
|
57
80
|
return null;
|
|
@@ -66,15 +89,21 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
66
89
|
this.fullWidth = false;
|
|
67
90
|
this.required = false;
|
|
68
91
|
this.clearable = false;
|
|
92
|
+
this.noMargin = false;
|
|
69
93
|
this.caption = undefined;
|
|
70
94
|
this.noCaption = false;
|
|
71
95
|
this.captionType = Bcm.Status.default;
|
|
72
96
|
this.captionError = undefined;
|
|
73
|
-
this.type =
|
|
74
|
-
this.format =
|
|
97
|
+
this.type = "date";
|
|
98
|
+
this.format = undefined;
|
|
75
99
|
this.showTime = false;
|
|
76
100
|
this.showToday = true;
|
|
77
101
|
this.showNow = true;
|
|
102
|
+
this.showHour = true;
|
|
103
|
+
this.showMinute = true;
|
|
104
|
+
this.showSecond = false;
|
|
105
|
+
this.use12Hours = false;
|
|
106
|
+
this.disabled = false;
|
|
78
107
|
}
|
|
79
108
|
async getValue() {
|
|
80
109
|
var _a;
|
|
@@ -85,7 +114,8 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
85
114
|
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
|
|
86
115
|
}
|
|
87
116
|
async set(value) {
|
|
88
|
-
this.value = value;
|
|
117
|
+
// this.value = value;
|
|
118
|
+
this.getPickerElement().set(value);
|
|
89
119
|
}
|
|
90
120
|
async setClear() {
|
|
91
121
|
this.value = null;
|
|
@@ -101,9 +131,15 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
101
131
|
var _a;
|
|
102
132
|
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.isValid) || false;
|
|
103
133
|
}
|
|
134
|
+
getPickerElement() {
|
|
135
|
+
return this.el.querySelector("bcm-rc-picker");
|
|
136
|
+
}
|
|
104
137
|
render() {
|
|
105
138
|
const { label, size, captionType, required, _id } = this;
|
|
106
|
-
return (h(Host, { class: classnames("bcm-ui-element bcm-ui-
|
|
139
|
+
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", {
|
|
140
|
+
"tw-max-w-[256px]": !this.fullWidth,
|
|
141
|
+
"tw-mb-2": !this.noMargin,
|
|
142
|
+
}) }, label && h(LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), h("bcm-rc-picker", { id: _id + "-picker", onBcmRCPickerChange: e => this.onChange(e), type: this.type, format: this.getFormat(), clearable: this.clearable, val: this.value, class: classnames("w-full tw-flex"), size: size, placeholder: this.placeholder, showTime: this.showTime, showToday: this.showToday, showNow: this.showNow, showHour: this.showHour, showMinute: this.showMinute, showSecond: this.showSecond, use12Hours: this.use12Hours, error: this.captionType === "error", disabled: this.disabled }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
|
|
107
143
|
}
|
|
108
144
|
get el() { return this; }
|
|
109
145
|
}, [0, "bcm-date", {
|
|
@@ -116,15 +152,21 @@ const BcmDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
116
152
|
"fullWidth": [4, "full-width"],
|
|
117
153
|
"required": [4],
|
|
118
154
|
"clearable": [4],
|
|
155
|
+
"noMargin": [4, "no-margin"],
|
|
119
156
|
"caption": [1],
|
|
120
157
|
"noCaption": [4, "no-caption"],
|
|
121
158
|
"captionType": [1025, "caption-type"],
|
|
122
159
|
"captionError": [1025, "caption-error"],
|
|
123
160
|
"type": [1],
|
|
124
|
-
"format": [
|
|
161
|
+
"format": [8],
|
|
125
162
|
"showTime": [4, "show-time"],
|
|
126
163
|
"showToday": [4, "show-today"],
|
|
127
164
|
"showNow": [4, "show-now"],
|
|
165
|
+
"showHour": [4, "show-hour"],
|
|
166
|
+
"showMinute": [4, "show-minute"],
|
|
167
|
+
"showSecond": [4, "show-second"],
|
|
168
|
+
"use12Hours": [4, "use-1-2-hours"],
|
|
169
|
+
"disabled": [4],
|
|
128
170
|
"getValue": [64],
|
|
129
171
|
"get": [64],
|
|
130
172
|
"set": [64],
|
package/dist/components/bcm.js
CHANGED
|
@@ -73,6 +73,7 @@ var Bcm;
|
|
|
73
73
|
Kind["solid"] = "solid";
|
|
74
74
|
Kind["ghost"] = "ghost";
|
|
75
75
|
Kind["link"] = "link";
|
|
76
|
+
Kind["ghost-link"] = "ghost-link";
|
|
76
77
|
})(Bcm.Kind || (Bcm.Kind = {}));
|
|
77
78
|
(function (ButtonType) {
|
|
78
79
|
ButtonType["button"] = "button";
|
|
@@ -378,33 +379,33 @@ var Bcm;
|
|
|
378
379
|
KeyCode[KeyCode["a"] = 65] = "a";
|
|
379
380
|
})(Bcm.KeyCode || (Bcm.KeyCode = {}));
|
|
380
381
|
Bcm.FormErrorMessages = {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
382
|
+
"email": "Please enter a valid email address",
|
|
383
|
+
"password": "Please enter a valid password",
|
|
384
|
+
"url": "Please enter a valid URL",
|
|
385
|
+
"phone": "Please enter a valid phone number",
|
|
386
|
+
"search": "Please enter a valid search term",
|
|
387
|
+
"number": "Please enter a valid number",
|
|
388
|
+
"text": "Please enter a valid text",
|
|
389
|
+
"required": "This field is required",
|
|
390
|
+
"minlength": "This field must be at least {0} characters long",
|
|
391
|
+
"maxlength": "This field must be at most {0} characters long",
|
|
392
|
+
"min": "This field must be at least {0}",
|
|
393
|
+
"max": "This field must be at most {0}",
|
|
394
|
+
"between": "This field must be between {0} and {1}",
|
|
395
|
+
"pattern": "Please use a valid format",
|
|
396
|
+
"date": "Please enter a valid date",
|
|
397
|
+
"time": "Please enter a valid time",
|
|
398
|
+
"datetime": "Please enter a valid date and time",
|
|
399
|
+
"datetime-local": "Please enter a valid date and time",
|
|
400
|
+
"month": "Please enter a valid month",
|
|
401
|
+
"week": "Please enter a valid week",
|
|
402
|
+
"color": "Please enter a valid color",
|
|
403
|
+
"file": "Please enter a valid file",
|
|
404
|
+
"range": "Please enter a valid range",
|
|
405
|
+
"radio": "Please select a valid option",
|
|
406
|
+
"checkbox": "Please select a valid option",
|
|
407
|
+
"select": "Please select a valid option",
|
|
408
|
+
"multiple": "Please select a valid option",
|
|
408
409
|
};
|
|
409
410
|
(function (IndeterminateType) {
|
|
410
411
|
IndeterminateType["uncheck"] = "uncheck";
|