bromcom-ui 2.9.0-rc.13 → 2.9.0-rc.15
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/global/helper/toast.ts +2 -0
- package/dist/bromcom-ui/p-01557c50.entry.js +5 -0
- package/dist/bromcom-ui/p-041126d7.entry.js +5 -0
- package/dist/bromcom-ui/{p-4798d827.js → p-07c3eb8e.js} +1 -1
- package/dist/bromcom-ui/{p-bb624967.entry.js → p-10f6df36.entry.js} +1 -1
- 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-43ef6b1c.entry.js → p-1f5d0561.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dd714afe.entry.js → p-245a569e.entry.js} +1 -1
- package/dist/bromcom-ui/p-250ab35e.entry.js +13 -0
- package/dist/bromcom-ui/{p-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/p-2dd61eee.entry.js +5 -0
- package/dist/bromcom-ui/{p-bc8e5ac3.entry.js → p-2e480f64.entry.js} +1 -1
- package/dist/bromcom-ui/p-33602526.entry.js +5 -0
- package/dist/bromcom-ui/p-3432a82d.js +19 -0
- package/dist/bromcom-ui/{p-4d6407a3.entry.js → p-3a992769.entry.js} +1 -1
- package/dist/bromcom-ui/{p-37488f1a.entry.js → p-3b9a3c38.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7a54258a.entry.js → p-438e38a8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9314d7ed.entry.js → p-46207bba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7ee5abfd.entry.js → p-4961dc1f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d06ebea4.entry.js → p-4b0275bf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-123d6355.entry.js → p-4e79863b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e592196.entry.js → p-560ce7f5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7b486021.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-91246af3.js → p-5855a3ac.js} +1 -1
- package/dist/bromcom-ui/{p-1f03b8aa.entry.js → p-5ea0ebfd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7665baa1.js → p-5ee90aab.js} +1 -1
- package/dist/bromcom-ui/{p-a9654609.entry.js → p-5f0daba7.entry.js} +1 -1
- package/dist/bromcom-ui/p-61193b4a.js +5 -0
- package/dist/bromcom-ui/{p-eec6999c.entry.js → p-616eb967.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3078fcd2.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e2f92d0b.js → p-63e7f7ca.js} +1 -1
- package/dist/bromcom-ui/p-64a2dd84.entry.js +5 -0
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/p-689cff39.entry.js +5 -0
- package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/p-6bd58eb2.entry.js +5 -0
- package/dist/bromcom-ui/{p-034bbcdd.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/p-71a5cbd0.entry.js +5 -0
- package/dist/bromcom-ui/{p-ed46db87.entry.js → p-7441ea36.entry.js} +1 -1
- package/dist/bromcom-ui/{p-43a16ce4.js → p-74f28bd6.js} +1 -1
- package/dist/bromcom-ui/p-75668f78.entry.js +5 -0
- package/dist/bromcom-ui/{p-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/p-7e289ea9.entry.js +5 -0
- package/dist/bromcom-ui/p-84f08fc7.entry.js +5 -0
- package/dist/bromcom-ui/{p-70126b4c.entry.js → p-854d7f14.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/p-89155301.entry.js +5 -0
- package/dist/bromcom-ui/{p-da7a34c6.entry.js → p-8994c73d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a14e70a5.entry.js → p-8adc3340.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0829f2b8.entry.js → p-9215fe3e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-695a9db8.entry.js → p-921e14a0.entry.js} +1 -1
- package/dist/bromcom-ui/p-9850cbce.js +5 -0
- package/dist/bromcom-ui/p-986da63d.entry.js +5 -0
- package/dist/bromcom-ui/p-98fddc9a.entry.js +5 -0
- package/dist/bromcom-ui/{p-6937c867.entry.js → p-9b786a19.entry.js} +1 -1
- package/dist/bromcom-ui/p-9d4504f2.js +5 -0
- package/dist/bromcom-ui/{p-7c511f8d.entry.js → p-a107ad5c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-83f55410.entry.js → p-a389094e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4e33341b.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eebbf79a.entry.js → p-a7d791f3.entry.js} +1 -1
- package/dist/bromcom-ui/p-aa7af475.entry.js +5 -0
- package/dist/bromcom-ui/{p-d1f32bbd.entry.js → p-acae5107.entry.js} +1 -1
- package/dist/bromcom-ui/p-adf9975b.js +5 -0
- package/dist/bromcom-ui/p-af3a04fa.entry.js +5 -0
- package/dist/bromcom-ui/p-b0c257dc.entry.js +5 -0
- package/dist/bromcom-ui/{p-ae0bd7c0.entry.js → p-b10f0360.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a2ab6adb.entry.js → p-b3ed20fd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6ab403d2.entry.js → p-b4ab469f.entry.js} +1 -1
- package/dist/bromcom-ui/p-b4dedf15.js +5 -0
- 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-ebe49b26.entry.js → p-bb43edd6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e59b12e2.js → p-bb4c1bd7.js} +1 -1
- package/dist/bromcom-ui/p-c1863294.entry.js +5 -0
- package/dist/bromcom-ui/p-c778dc08.js +5 -0
- package/dist/bromcom-ui/{p-9d12a9da.entry.js → p-c9c7067e.entry.js} +1 -1
- package/dist/bromcom-ui/p-d3c73f06.entry.js +5 -0
- package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f93356af.entry.js → p-da961102.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e6938871.js → p-dc408605.js} +1 -1
- package/dist/bromcom-ui/{p-dc8305dc.js → p-df49c771.js} +1 -1
- package/dist/bromcom-ui/p-e161ca50.entry.js +5 -0
- package/dist/bromcom-ui/{p-f84247f5.entry.js → p-e906f698.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d34a30c.entry.js → p-ed0327fa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9bfb2dcc.js → p-f4c1f369.js} +1 -1
- package/dist/bromcom-ui/{p-1456cfcb.js → p-f6aefdd0.js} +1 -1
- package/dist/bromcom-ui/{p-d09aa96b.entry.js → p-f96a3dfc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6802f81b.entry.js → p-fbd1bec7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b284e383.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/cjs/{bcm-03727f3b.js → bcm-2f1e54ba.js} +27 -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} +16737 -891
- 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 +9 -4
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{floating-ui-baa45717.js → floating-ui-b8cf8165.js} +1 -1
- package/dist/cjs/{generate-d1447176.js → generate-a8f024e6.js} +1 -1
- package/dist/cjs/{global-cb2f8825.js → global-a2abdfa3.js} +1 -1
- package/dist/cjs/{index-e05a7c6f.js → index-7eed931f.js} +1625 -24
- package/dist/cjs/{input-template-096e89a6.js → input-template-b7d69c48.js} +2 -2
- package/dist/cjs/{is-load-decorator-7575fbd2.js → is-load-decorator-15036f37.js} +2 -1
- package/dist/cjs/{json-parse-decarator-5b03f2c1.js → json-parse-decarator-4ca20ea1.js} +1 -1
- package/dist/cjs/{label-template-15c3c0ed.js → label-template-7549bfd3.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-963bdfd3.js → number-helper-10130b47.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-8e8fd90e.js → package-e4999946.js} +1 -1
- package/dist/cjs/{popover-placement-8866eab1.js → popover-placement-e2d2de50.js} +1 -1
- package/dist/cjs/{slot-template-de6a91b1.js → slot-template-c6d74441.js} +1 -1
- package/dist/cjs/{stepper-states-35ea924b.js → stepper-states-1fc0765b.js} +1 -1
- package/dist/cjs/{string-helper-9b392049.js → string-helper-77273186.js} +1 -1
- package/dist/cjs/{tooltip-helper-e51cfadd.js → tooltip-helper-57810baa.js} +6 -7
- package/dist/cjs/{validators-b3ac8a39.js → validators-b6b4447d.js} +6 -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/other/toast/toast.js +23 -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/global/helper/toast.js +1 -0
- package/dist/collection/global/helper/toast.ts +2 -0
- package/dist/collection/models/bcm.js +27 -27
- package/dist/components/bcm-date.js +54 -12
- package/dist/components/bcm-toast.js +6 -0
- package/dist/components/bcm.js +27 -27
- 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-ac17222c.js → bcm-40f18097.js} +27 -27
- 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} +16737 -896
- 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-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 +12 -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-fa2d9209.js} +1 -1
- package/dist/esm/{generate-8591a0f0.js → generate-ad35cf8e.js} +2 -2
- package/dist/esm/{global-e7818ee3.js → global-4ab30789.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-6519906b.js → input-template-25434b4d.js} +3 -3
- package/dist/esm/{is-load-decorator-6784aa87.js → is-load-decorator-8277e3b8.js} +2 -1
- package/dist/esm/{json-parse-decarator-58846417.js → json-parse-decarator-6ef9274a.js} +1 -1
- package/dist/esm/{label-template-62e49c38.js → label-template-9cddb5ed.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-6ef9165b.js → number-helper-32d36561.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-569c91f0.js → package-a8541483.js} +1 -1
- package/dist/esm/{popover-placement-7cce412f.js → popover-placement-bc0c4fdf.js} +1 -1
- package/dist/esm/{slot-template-7447145d.js → slot-template-d37d0312.js} +1 -1
- package/dist/esm/{stepper-states-14adccae.js → stepper-states-bc4dc077.js} +1 -1
- package/dist/esm/{string-helper-5ef67a66.js → string-helper-5a67b5cc.js} +2 -2
- package/dist/esm/{tooltip-helper-3c146a26.js → tooltip-helper-4624c4e4.js} +7 -8
- package/dist/esm/{validators-358cf956.js → validators-5606ad07.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/other/toast/toast.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 +43 -12
- package/dist/types/global/helper/toast.d.ts +2 -0
- package/dist/types/models/bcm.d.ts +246 -235
- package/helper/toast.d.ts +2 -0
- package/helper/toast.d.ts.map +1 -1
- package/helper/toast.js +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-055a6833.entry.js +0 -5
- package/dist/bromcom-ui/p-06d549b0.js +0 -5
- package/dist/bromcom-ui/p-113960b6.entry.js +0 -5
- package/dist/bromcom-ui/p-1f9ff376.js +0 -5
- package/dist/bromcom-ui/p-2e1e73a2.entry.js +0 -5
- package/dist/bromcom-ui/p-3182df7e.js +0 -10
- package/dist/bromcom-ui/p-34ee0df2.entry.js +0 -5
- package/dist/bromcom-ui/p-3ade1099.js +0 -5
- package/dist/bromcom-ui/p-3bd899cc.entry.js +0 -5
- package/dist/bromcom-ui/p-3e7facaa.entry.js +0 -5
- package/dist/bromcom-ui/p-44ca28fa.entry.js +0 -5
- package/dist/bromcom-ui/p-49f37d54.js +0 -5
- package/dist/bromcom-ui/p-578c6af9.entry.js +0 -5
- package/dist/bromcom-ui/p-58012cb7.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-6430d123.entry.js +0 -5
- package/dist/bromcom-ui/p-7508498f.entry.js +0 -5
- package/dist/bromcom-ui/p-79c91f16.entry.js +0 -5
- package/dist/bromcom-ui/p-7e3209a0.js +0 -14
- package/dist/bromcom-ui/p-80785946.entry.js +0 -5
- package/dist/bromcom-ui/p-83571dfd.js +0 -5
- package/dist/bromcom-ui/p-8b8400e5.entry.js +0 -5
- package/dist/bromcom-ui/p-92726393.entry.js +0 -5
- package/dist/bromcom-ui/p-92fa8670.entry.js +0 -5
- package/dist/bromcom-ui/p-95fa989d.entry.js +0 -5
- package/dist/bromcom-ui/p-97d84d54.entry.js +0 -5
- package/dist/bromcom-ui/p-98ff534a.entry.js +0 -5
- package/dist/bromcom-ui/p-aacfa5bb.entry.js +0 -5
- package/dist/bromcom-ui/p-b0583ca8.entry.js +0 -5
- package/dist/bromcom-ui/p-b0fb9ee3.entry.js +0 -5
- package/dist/bromcom-ui/p-b82685e4.js +0 -12
- package/dist/bromcom-ui/p-b9945590.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-cd8880a4.entry.js +0 -5
- package/dist/bromcom-ui/p-d3d07c8c.js +0 -5
- package/dist/bromcom-ui/p-d9f92297.entry.js +0 -5
- package/dist/bromcom-ui/p-e1877ee9.js +0 -5
- package/dist/bromcom-ui/p-f6a4bf6e.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
- /package/dist/bromcom-ui/{p-23c35e1b.js → p-65c5eac0.js} +0 -0
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{a as t}from"./p-23c35e1b.js";function e(t){return t.split("-")[1]}function n(t){return"y"===t?"height":"width"}function o(t){return t.split("-")[0]}function r(t){return["top","bottom"].includes(o(t))?"x":"y"}function i(t,i,a){let{reference:l,floating:c}=t;const s=l.x+l.width/2-c.width/2,f=l.y+l.height/2-c.height/2,u=r(i),d=n(u),m=l[d]/2-c[d]/2,p="x"===u;let y;switch(o(i)){case"top":y={x:s,y:l.y-c.height};break;case"bottom":y={x:s,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-c.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(i)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:c,elements:s,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=e,h=a(y),g=s[p?"floating"===m?"reference":"floating":m],w=l(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:f})),x="floating"===m?{...c.floating,x:o,y:r}:c.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},A=l(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:b,strategy:f}):x);return{top:(w.top-A.top+h.top)/v.y,bottom:(A.bottom-w.bottom+h.bottom)/v.y,left:(w.left-A.left+h.left)/v.x,right:(A.right-w.right+h.right)/v.x}}const s=Math.min,f=Math.max;function u(t,e,n){return f(t,s(e,n))}const d=["top","right","bottom","left"],m={left:"right",right:"left",bottom:"top",top:"bottom"};function p(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}const y={start:"end",end:"start"};function h(t){return t.replace(/start|end/g,(t=>y[t]))}const g=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(i){var a;const{placement:l,middlewareData:s,rects:f,initialPlacement:u,platform:d,elements:m}=i,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...A}=t,H=o(l),k=o(u)===u,O=await(null==d.isRTL?void 0:d.isRTL(m.floating)),R=w||(k||!v?[p(u)]:function(t){const e=p(t);return[h(t),e,h(e)]}(u));w||"none"===b||R.push(...function(t,n,r,i){const a=e(t);let l=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:a;default:return[]}}(o(t),"start"===r,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(h)))),l}(u,v,b,O));const $=[u,...R],j=await c(i,A),M=[];let P=(null==(a=s.flip)?void 0:a.overflows)||[];if(y&&M.push(j[H]),g){const{main:t,cross:o}=function(t,o,i){void 0===i&&(i=!1);const a=e(t),l=r(t),c=n(l);let s="x"===l?a===(i?"end":"start")?"right":"left":"start"===a?"bottom":"top";return o.reference[c]>o.floating[c]&&(s=p(s)),{main:s,cross:p(s)}}(l,f,O);M.push(j[t],j[o])}if(P=[...P,{placement:l,overflows:M}],!M.every((t=>t<=0))){var C,D;const t=((null==(C=s.flip)?void 0:C.index)||0)+1,e=$[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(D=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!n)switch(x){case"bestFit":{var F;const t=null==(F=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:F[0];t&&(n=t);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}}};function w(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function x(t){return d.some((e=>t[e]>=0))}function b(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function v(t){return b(t).getComputedStyle(t)}function A(t){return t instanceof b(t).Node}function H(t){return A(t)?(t.nodeName||"").toLowerCase():""}let k;function O(){if(k)return k;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(k=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),k):navigator.userAgent}function R(t){return t instanceof b(t).HTMLElement}function $(t){return t instanceof b(t).Element}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b(t).ShadowRoot||t instanceof ShadowRoot)}function M(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function P(t){return["table","td","th"].includes(H(t))}function C(t){const e=/firefox/i.test(O()),n=v(t),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function D(){return/^((?!chrome|android).)*safari/i.test(O())}function F(t){return["html","body","#document"].includes(H(t))}const S=Math.min,B=Math.max,T=Math.round;function L(t){const e=v(t);let n=parseFloat(e.width),o=parseFloat(e.height);const r=R(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=T(n)!==i||T(o)!==a;return l&&(n=i,o=a),{width:n,height:o,fallback:l}}function E(t){return $(t)?t:t.contextElement}const z={x:1,y:1};function N(t){const e=E(t);if(!R(e))return z;const n=e.getBoundingClientRect(),{width:o,height:r,fallback:i}=L(e);let a=(i?T(n.width):n.width)/o,l=(i?T(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function W(t,e,n,o){var r,i;void 0===e&&(e=!1),void 0===n&&(n=!1);const a=t.getBoundingClientRect(),c=E(t);let s=z;e&&(o?$(o)&&(s=N(o)):s=N(t));const f=c?b(c):window,u=D()&&n;let d=(a.left+(u&&(null==(r=f.visualViewport)?void 0:r.offsetLeft)||0))/s.x,m=(a.top+(u&&(null==(i=f.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(c){const t=b(c),e=o&&$(o)?b(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=N(n),e=n.getBoundingClientRect(),o=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(o.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(o.paddingTop))*t.y,d*=t.x,m*=t.y,p*=t.x,y*=t.y,d+=e.x,m+=e.y,n=b(n).frameElement}}return l({width:p,height:y,x:d,y:m})}function V(t){return((A(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){return W(V(t)).left+X(t).scrollLeft}function _(t){if("html"===H(t))return t;const e=t.assignedSlot||t.parentNode||j(t)&&t.host||V(t);return j(e)?e.host:e}function q(t){const e=_(t);return F(e)?e.ownerDocument.body:R(e)&&M(e)?e:q(e)}function G(t,e){var n;void 0===e&&(e=[]);const o=q(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),i=b(o);return r?e.concat(i,i.visualViewport||[],M(o)?o:[]):e.concat(o,G(o))}function I(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=b(t),o=V(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=D();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,n);else if("document"===e)o=function(t){const e=V(t),n=X(t),o=t.ownerDocument.body,r=B(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=B(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Y(t);const l=-n.scrollTop;return"rtl"===v(o).direction&&(a+=B(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(V(t));else if($(e))o=function(t,e){const n=W(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=R(t)?N(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n={...e};if(D()){var r,i;const e=b(t);n.x-=(null==(r=e.visualViewport)?void 0:r.offsetLeft)||0,n.y-=(null==(i=e.visualViewport)?void 0:i.offsetTop)||0}o=n}return l(o)}function J(t,e){return R(t)&&"fixed"!==v(t).position?e?e(t):t.offsetParent:null}function K(t,e){const n=b(t);if(!R(t))return n;let o=J(t,e);for(;o&&P(o)&&"static"===v(o).position;)o=J(o,e);return o&&("html"===H(o)||"body"===H(o)&&"static"===v(o).position&&!C(o))?n:o||function(t){let e=_(t);for(;R(e)&&!F(e);){if(C(e))return e;e=_(e)}return null}(t)||n}function Q(t,e,n){const o=R(e),r=V(e),i=W(t,!0,"fixed"===n,e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==H(e)||M(r))&&(a=X(e)),R(e)){const t=W(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Y(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const U={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=G(t).filter((t=>$(t)&&"body"!==H(t))),r=null;const i="fixed"===v(t).position;let a=i?_(t):t;for(;$(a)&&!F(a);){const t=v(a),e=C(a);"fixed"===t.position?r=null:(i?e||r:e||"static"!==t.position||!r||!["absolute","fixed"].includes(r.position))?r=t:o=o.filter((t=>t!==a)),a=_(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],a=i.reduce(((t,n)=>{const o=I(e,n,r);return t.top=B(o.top,t.top),t.right=S(o.right,t.right),t.bottom=S(o.bottom,t.bottom),t.left=B(o.left,t.left),t}),I(e,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=R(n),i=V(n);if(n===i)return e;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==H(n)||M(i))&&(a=X(n)),R(n))){const t=W(n);l=N(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}},isElement:$,getDimensions:function(t){return L(t)},getOffsetParent:K,getDocumentElement:V,getScale:N,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||K,i=this.getDimensions;return{reference:Q(e,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===v(t).direction},Z=l=>{const{ref:d,floating:m,placement:p=t.Placement.bottom,offset:y=0,arrow:h=!1,arrowColor:b="tw-bg-slate-700",autoHidden:v=!0,autoSize:A=!1,style:H={}}=l;let k=[(O=y,void 0===O&&(O=0),{name:"offset",options:O,async fn(t){const{x:n,y:i}=t,a=await async function(t,n){const{placement:i,platform:a,elements:l}=t,c=await(null==a.isRTL?void 0:a.isRTL(l.floating)),s=o(i),f=e(i),u="x"===r(i),d=["left","top"].includes(s)?-1:1,m=c&&u?-1:1,p="function"==typeof n?n(t):n;let{mainAxis:y,crossAxis:h,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof g&&(h="end"===f?-1*g:g),u?{x:h*m,y:y*d}:{x:y*d,y:h*m}}(t,O);return{x:n+a.x,y:i+a.y,data:a}}}),g(),(R={padding:5},void 0===R&&(R={}),{name:"shift",options:R,async fn(t){const{x:e,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...f}=R,d={x:e,y:n},m=await c(t,f),p=r(o(i)),y="x"===p?"y":"x";let h=d[p],g=d[y];a&&(h=u(h+m["y"===p?"top":"left"],h,h-m["y"===p?"bottom":"right"])),l&&(g=u(g+m["y"===y?"top":"left"],g,g-m["y"===y?"bottom":"right"]));const w=s.fn({...t,[p]:h,[y]:g});return{...w,data:{x:w.x-e,y:w.y-n}}}})];var O,R;v&&k.push(function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:n="referenceHidden",...o}=t,{rects:r}=e;switch(n){case"referenceHidden":{const t=w(await c(e,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:x(t)}}}case"escaped":{const t=w(await c(e,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:x(t)}}}default:return{}}}}}({padding:10})),H&&Object.assign(m.style,Object.assign(Object.assign({},H.height&&{height:H.height}),H.minHeight&&{minHeight:H.minHeight}));const $=["auto","100%","100vh","100vw","inherit","initial","unset",void 0].some((t=>t==(null==H?void 0:H.height)));A&&$&&k.push(function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(n){const{placement:i,rects:a,platform:l,elements:u}=n,{apply:d=(()=>{}),...m}=t,p=await c(n,m),y=o(i),h=e(i),g="x"===r(i),{width:w,height:x}=a.floating;let b,v;"top"===y||"bottom"===y?(b=y,v=h===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(v=y,b="end"===h?"top":"bottom");const A=x-p[b],H=w-p[v];let k=A,O=H;if(g?O=s(w-p.right-p.left,H):k=s(x-p.bottom-p.top,A),!n.middlewareData.shift&&!h){const t=f(p.left,0),e=f(p.right,0),n=f(p.top,0),o=f(p.bottom,0);g?O=w-2*(0!==t||0!==e?t+e:f(p.left,p.right)):k=x-2*(0!==n||0!==o?n+o:f(p.top,p.bottom))}await d({...n,availableWidth:O,availableHeight:k});const R=await l.getDimensions(u.floating);return w!==R.width||x!==R.height?{reset:{rects:!0}}:{}}}}({apply({availableHeight:t}){const e=`${t>window.innerHeight?window.innerHeight-10:t}px`;Object.assign(m.style,{maxHeight:`${H.maxHeight&&e>=H.maxHeight?H.maxHeight:e}`})},padding:5}));let j=document.getElementById(`${m.id}-arrow`);h&&(j||(j=document.createElement("div"),j.setAttribute("id",`${m.id}-arrow`)),j.setAttribute("class",`tw-absolute tw-w-2 tw-h-2 ${b} tw-transform tw-z-[-1] tw-opacity-0 tw-transition-opacity tw-duration-300 \n tw-shadow \n `),m.prepend(j),k.push((t=>({name:"arrow",options:t,async fn(o){const{element:i,padding:l=0}=t||{},{x:c,y:s,placement:f,rects:d,platform:m,elements:p}=o;if(null==i)return{};const y=a(l),h={x:c,y:s},g=r(f),w=n(g),x=await m.getDimensions(i),b="y"===g,v=b?"top":"left",A=b?"bottom":"right",H=b?"clientHeight":"clientWidth",k=d.reference[w]+d.reference[g]-h[g]-d.floating[w],O=h[g]-d.reference[g],R=await(null==m.getOffsetParent?void 0:m.getOffsetParent(i));let $=R?R[H]:0;$&&await(null==m.isElement?void 0:m.isElement(R))||($=p.floating[H]||d.floating[w]);const j=y[v],M=$-x[w]-y[A],P=$/2-x[w]/2+(k/2-O/2),C=u(j,P,M),D=null!=e(f)&&P!=C&&d.reference[w]/2-(P<j?y[v]:y[A])-x[w]/2<0;return{[g]:h[g]-(D?P<j?j-P:M-P:0),data:{[g]:C,centerOffset:P-C}}}}))({element:j,padding:4}))),((t,e,n)=>{const o=new Map,r={platform:U,...n},a={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:l}=n,c=a.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:d}=i(f,o,s),m=o,p={},y=0;for(let n=0;n<c.length;n++){const{name:a,fn:h}=c[n],{x:g,y:w,data:x,reset:b}=await h({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,d=null!=w?w:d,p={...p,[a]:{...p[a],...x}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:d}=i(f,m,s))),n=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,e,{...r,platform:a})})(d,m,{placement:p,middleware:k}).then((({x:t,y:e,placement:n,middlewareData:o})=>{const{referenceHidden:r}=v?o.hide:{referenceHidden:!1};if(Object.assign(m.style,{top:"0",left:"0",transform:`translate(${Math.round(t)}px,${Math.round(e)}px)`,opacity:r?"0":"1",visibility:r?"hidden":"visible"}),r){const t=new CustomEvent("bcm-floating-is-hide",{detail:{id:m.id}});document.dispatchEvent(t),"true"!==m.getAttribute("outside-of-the-screen")&&m.setAttribute("outside-of-the-screen","true")}else"true"===m.getAttribute("outside-of-the-screen")&&m.removeAttribute("outside-of-the-screen");if(h){const{x:t,y:e}=o.arrow,i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],a={top:"rotate(45deg)",right:"rotate(135deg)",bottom:"rotate(-135deg)",left:"rotate(-45deg)"}[n.split("-")[0]];Object.assign(j.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[i]:"-4px",opacity:1,visibility:r?"hidden":"visible",transform:a})}}))};export{Z as F}
|
|
5
|
+
import{a as t}from"./p-65c5eac0.js";function e(t){return t.split("-")[1]}function n(t){return"y"===t?"height":"width"}function o(t){return t.split("-")[0]}function r(t){return["top","bottom"].includes(o(t))?"x":"y"}function i(t,i,a){let{reference:l,floating:c}=t;const s=l.x+l.width/2-c.width/2,f=l.y+l.height/2-c.height/2,u=r(i),d=n(u),m=l[d]/2-c[d]/2,p="x"===u;let y;switch(o(i)){case"top":y={x:s,y:l.y-c.height};break;case"bottom":y={x:s,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-c.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(i)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:c,elements:s,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=e,h=a(y),g=s[p?"floating"===m?"reference":"floating":m],w=l(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:f})),x="floating"===m?{...c.floating,x:o,y:r}:c.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},A=l(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:b,strategy:f}):x);return{top:(w.top-A.top+h.top)/v.y,bottom:(A.bottom-w.bottom+h.bottom)/v.y,left:(w.left-A.left+h.left)/v.x,right:(A.right-w.right+h.right)/v.x}}const s=Math.min,f=Math.max;function u(t,e,n){return f(t,s(e,n))}const d=["top","right","bottom","left"],m={left:"right",right:"left",bottom:"top",top:"bottom"};function p(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}const y={start:"end",end:"start"};function h(t){return t.replace(/start|end/g,(t=>y[t]))}const g=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(i){var a;const{placement:l,middlewareData:s,rects:f,initialPlacement:u,platform:d,elements:m}=i,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...A}=t,H=o(l),k=o(u)===u,O=await(null==d.isRTL?void 0:d.isRTL(m.floating)),R=w||(k||!v?[p(u)]:function(t){const e=p(t);return[h(t),e,h(e)]}(u));w||"none"===b||R.push(...function(t,n,r,i){const a=e(t);let l=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:a;default:return[]}}(o(t),"start"===r,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(h)))),l}(u,v,b,O));const $=[u,...R],j=await c(i,A),M=[];let P=(null==(a=s.flip)?void 0:a.overflows)||[];if(y&&M.push(j[H]),g){const{main:t,cross:o}=function(t,o,i){void 0===i&&(i=!1);const a=e(t),l=r(t),c=n(l);let s="x"===l?a===(i?"end":"start")?"right":"left":"start"===a?"bottom":"top";return o.reference[c]>o.floating[c]&&(s=p(s)),{main:s,cross:p(s)}}(l,f,O);M.push(j[t],j[o])}if(P=[...P,{placement:l,overflows:M}],!M.every((t=>t<=0))){var C,D;const t=((null==(C=s.flip)?void 0:C.index)||0)+1,e=$[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(D=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!n)switch(x){case"bestFit":{var F;const t=null==(F=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:F[0];t&&(n=t);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}}};function w(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function x(t){return d.some((e=>t[e]>=0))}function b(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function v(t){return b(t).getComputedStyle(t)}function A(t){return t instanceof b(t).Node}function H(t){return A(t)?(t.nodeName||"").toLowerCase():""}let k;function O(){if(k)return k;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(k=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),k):navigator.userAgent}function R(t){return t instanceof b(t).HTMLElement}function $(t){return t instanceof b(t).Element}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b(t).ShadowRoot||t instanceof ShadowRoot)}function M(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function P(t){return["table","td","th"].includes(H(t))}function C(t){const e=/firefox/i.test(O()),n=v(t),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function D(){return/^((?!chrome|android).)*safari/i.test(O())}function F(t){return["html","body","#document"].includes(H(t))}const S=Math.min,B=Math.max,T=Math.round;function L(t){const e=v(t);let n=parseFloat(e.width),o=parseFloat(e.height);const r=R(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=T(n)!==i||T(o)!==a;return l&&(n=i,o=a),{width:n,height:o,fallback:l}}function E(t){return $(t)?t:t.contextElement}const z={x:1,y:1};function N(t){const e=E(t);if(!R(e))return z;const n=e.getBoundingClientRect(),{width:o,height:r,fallback:i}=L(e);let a=(i?T(n.width):n.width)/o,l=(i?T(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function W(t,e,n,o){var r,i;void 0===e&&(e=!1),void 0===n&&(n=!1);const a=t.getBoundingClientRect(),c=E(t);let s=z;e&&(o?$(o)&&(s=N(o)):s=N(t));const f=c?b(c):window,u=D()&&n;let d=(a.left+(u&&(null==(r=f.visualViewport)?void 0:r.offsetLeft)||0))/s.x,m=(a.top+(u&&(null==(i=f.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(c){const t=b(c),e=o&&$(o)?b(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=N(n),e=n.getBoundingClientRect(),o=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(o.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(o.paddingTop))*t.y,d*=t.x,m*=t.y,p*=t.x,y*=t.y,d+=e.x,m+=e.y,n=b(n).frameElement}}return l({width:p,height:y,x:d,y:m})}function V(t){return((A(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){return W(V(t)).left+X(t).scrollLeft}function _(t){if("html"===H(t))return t;const e=t.assignedSlot||t.parentNode||j(t)&&t.host||V(t);return j(e)?e.host:e}function q(t){const e=_(t);return F(e)?e.ownerDocument.body:R(e)&&M(e)?e:q(e)}function G(t,e){var n;void 0===e&&(e=[]);const o=q(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),i=b(o);return r?e.concat(i,i.visualViewport||[],M(o)?o:[]):e.concat(o,G(o))}function I(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=b(t),o=V(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=D();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,n);else if("document"===e)o=function(t){const e=V(t),n=X(t),o=t.ownerDocument.body,r=B(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=B(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Y(t);const l=-n.scrollTop;return"rtl"===v(o).direction&&(a+=B(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(V(t));else if($(e))o=function(t,e){const n=W(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=R(t)?N(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n={...e};if(D()){var r,i;const e=b(t);n.x-=(null==(r=e.visualViewport)?void 0:r.offsetLeft)||0,n.y-=(null==(i=e.visualViewport)?void 0:i.offsetTop)||0}o=n}return l(o)}function J(t,e){return R(t)&&"fixed"!==v(t).position?e?e(t):t.offsetParent:null}function K(t,e){const n=b(t);if(!R(t))return n;let o=J(t,e);for(;o&&P(o)&&"static"===v(o).position;)o=J(o,e);return o&&("html"===H(o)||"body"===H(o)&&"static"===v(o).position&&!C(o))?n:o||function(t){let e=_(t);for(;R(e)&&!F(e);){if(C(e))return e;e=_(e)}return null}(t)||n}function Q(t,e,n){const o=R(e),r=V(e),i=W(t,!0,"fixed"===n,e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==H(e)||M(r))&&(a=X(e)),R(e)){const t=W(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Y(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const U={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=G(t).filter((t=>$(t)&&"body"!==H(t))),r=null;const i="fixed"===v(t).position;let a=i?_(t):t;for(;$(a)&&!F(a);){const t=v(a),e=C(a);"fixed"===t.position?r=null:(i?e||r:e||"static"!==t.position||!r||!["absolute","fixed"].includes(r.position))?r=t:o=o.filter((t=>t!==a)),a=_(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],a=i.reduce(((t,n)=>{const o=I(e,n,r);return t.top=B(o.top,t.top),t.right=S(o.right,t.right),t.bottom=S(o.bottom,t.bottom),t.left=B(o.left,t.left),t}),I(e,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=R(n),i=V(n);if(n===i)return e;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==H(n)||M(i))&&(a=X(n)),R(n))){const t=W(n);l=N(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}},isElement:$,getDimensions:function(t){return L(t)},getOffsetParent:K,getDocumentElement:V,getScale:N,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||K,i=this.getDimensions;return{reference:Q(e,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===v(t).direction},Z=l=>{const{ref:d,floating:m,placement:p=t.Placement.bottom,offset:y=0,arrow:h=!1,arrowColor:b="tw-bg-slate-700",autoHidden:v=!0,autoSize:A=!1,style:H={}}=l;let k=[(O=y,void 0===O&&(O=0),{name:"offset",options:O,async fn(t){const{x:n,y:i}=t,a=await async function(t,n){const{placement:i,platform:a,elements:l}=t,c=await(null==a.isRTL?void 0:a.isRTL(l.floating)),s=o(i),f=e(i),u="x"===r(i),d=["left","top"].includes(s)?-1:1,m=c&&u?-1:1,p="function"==typeof n?n(t):n;let{mainAxis:y,crossAxis:h,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof g&&(h="end"===f?-1*g:g),u?{x:h*m,y:y*d}:{x:y*d,y:h*m}}(t,O);return{x:n+a.x,y:i+a.y,data:a}}}),g(),(R={padding:5},void 0===R&&(R={}),{name:"shift",options:R,async fn(t){const{x:e,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...f}=R,d={x:e,y:n},m=await c(t,f),p=r(o(i)),y="x"===p?"y":"x";let h=d[p],g=d[y];a&&(h=u(h+m["y"===p?"top":"left"],h,h-m["y"===p?"bottom":"right"])),l&&(g=u(g+m["y"===y?"top":"left"],g,g-m["y"===y?"bottom":"right"]));const w=s.fn({...t,[p]:h,[y]:g});return{...w,data:{x:w.x-e,y:w.y-n}}}})];var O,R;v&&k.push(function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:n="referenceHidden",...o}=t,{rects:r}=e;switch(n){case"referenceHidden":{const t=w(await c(e,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:x(t)}}}case"escaped":{const t=w(await c(e,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:x(t)}}}default:return{}}}}}({padding:10})),H&&Object.assign(m.style,Object.assign(Object.assign({},H.height&&{height:H.height}),H.minHeight&&{minHeight:H.minHeight}));const $=["auto","100%","100vh","100vw","inherit","initial","unset",void 0].some((t=>t==(null==H?void 0:H.height)));A&&$&&k.push(function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(n){const{placement:i,rects:a,platform:l,elements:u}=n,{apply:d=(()=>{}),...m}=t,p=await c(n,m),y=o(i),h=e(i),g="x"===r(i),{width:w,height:x}=a.floating;let b,v;"top"===y||"bottom"===y?(b=y,v=h===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(v=y,b="end"===h?"top":"bottom");const A=x-p[b],H=w-p[v];let k=A,O=H;if(g?O=s(w-p.right-p.left,H):k=s(x-p.bottom-p.top,A),!n.middlewareData.shift&&!h){const t=f(p.left,0),e=f(p.right,0),n=f(p.top,0),o=f(p.bottom,0);g?O=w-2*(0!==t||0!==e?t+e:f(p.left,p.right)):k=x-2*(0!==n||0!==o?n+o:f(p.top,p.bottom))}await d({...n,availableWidth:O,availableHeight:k});const R=await l.getDimensions(u.floating);return w!==R.width||x!==R.height?{reset:{rects:!0}}:{}}}}({apply({availableHeight:t}){const e=`${t>window.innerHeight?window.innerHeight-10:t}px`;Object.assign(m.style,{maxHeight:`${H.maxHeight&&e>=H.maxHeight?H.maxHeight:e}`})},padding:5}));let j=document.getElementById(`${m.id}-arrow`);h&&(j||(j=document.createElement("div"),j.setAttribute("id",`${m.id}-arrow`)),j.setAttribute("class",`tw-absolute tw-w-2 tw-h-2 ${b} tw-transform tw-z-[-1] tw-opacity-0 tw-transition-opacity tw-duration-300 \n tw-shadow \n `),m.prepend(j),k.push((t=>({name:"arrow",options:t,async fn(o){const{element:i,padding:l=0}=t||{},{x:c,y:s,placement:f,rects:d,platform:m,elements:p}=o;if(null==i)return{};const y=a(l),h={x:c,y:s},g=r(f),w=n(g),x=await m.getDimensions(i),b="y"===g,v=b?"top":"left",A=b?"bottom":"right",H=b?"clientHeight":"clientWidth",k=d.reference[w]+d.reference[g]-h[g]-d.floating[w],O=h[g]-d.reference[g],R=await(null==m.getOffsetParent?void 0:m.getOffsetParent(i));let $=R?R[H]:0;$&&await(null==m.isElement?void 0:m.isElement(R))||($=p.floating[H]||d.floating[w]);const j=y[v],M=$-x[w]-y[A],P=$/2-x[w]/2+(k/2-O/2),C=u(j,P,M),D=null!=e(f)&&P!=C&&d.reference[w]/2-(P<j?y[v]:y[A])-x[w]/2<0;return{[g]:h[g]-(D?P<j?j-P:M-P:0),data:{[g]:C,centerOffset:P-C}}}}))({element:j,padding:4}))),((t,e,n)=>{const o=new Map,r={platform:U,...n},a={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:l}=n,c=a.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:d}=i(f,o,s),m=o,p={},y=0;for(let n=0;n<c.length;n++){const{name:a,fn:h}=c[n],{x:g,y:w,data:x,reset:b}=await h({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,d=null!=w?w:d,p={...p,[a]:{...p[a],...x}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:d}=i(f,m,s))),n=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,e,{...r,platform:a})})(d,m,{placement:p,middleware:k}).then((({x:t,y:e,placement:n,middlewareData:o})=>{const{referenceHidden:r}=v?o.hide:{referenceHidden:!1};if(Object.assign(m.style,{top:"0",left:"0",transform:`translate(${Math.round(t)}px,${Math.round(e)}px)`,opacity:r?"0":"1",visibility:r?"hidden":"visible"}),r){const t=new CustomEvent("bcm-floating-is-hide",{detail:{id:m.id}});document.dispatchEvent(t),"true"!==m.getAttribute("outside-of-the-screen")&&m.setAttribute("outside-of-the-screen","true")}else"true"===m.getAttribute("outside-of-the-screen")&&m.removeAttribute("outside-of-the-screen");if(h){const{x:t,y:e}=o.arrow,i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],a={top:"rotate(45deg)",right:"rotate(135deg)",bottom:"rotate(-135deg)",left:"rotate(-45deg)"}[n.split("-")[0]];Object.assign(j.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[i]:"-4px",opacity:1,visibility:r?"hidden":"visible",transform:a})}}))};export{Z as F}
|