bromcom-ui 2.12.0-test.1 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-053dc717.entry.js +5 -0
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-0bda558d.js} +1 -1
- package/dist/bromcom-ui/{p-482054dc.js → p-101b76f5.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-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/p-3238bf36.js +5 -0
- package/dist/bromcom-ui/{p-965ef00a.entry.js → p-3517ff07.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-35f2e15a.js} +1 -1
- package/dist/bromcom-ui/p-3f0f1f9e.entry.js +5 -0
- package/dist/bromcom-ui/p-41055402.js +5 -0
- package/dist/bromcom-ui/p-43c578cf.js +5 -0
- package/dist/bromcom-ui/p-47325924.entry.js +5 -0
- package/dist/bromcom-ui/{p-816fbffd.js → p-499d8454.js} +1 -1
- package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
- package/dist/bromcom-ui/{p-350e752d.js → p-5027dcf6.js} +1 -1
- package/dist/bromcom-ui/{p-055b38fd.entry.js → p-508796a2.entry.js} +1 -1
- package/dist/bromcom-ui/p-561de187.entry.js +5 -0
- package/dist/bromcom-ui/{p-91873347.entry.js → p-594a57c3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4adb8c83.entry.js → p-5c4ff3cb.entry.js} +1 -1
- package/dist/bromcom-ui/p-5dea2654.entry.js +5 -0
- 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-65b8b97c.entry.js +5 -0
- package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/p-6db476de.entry.js +5 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/{p-8c018ae0.js → p-6f2e4c9b.js} +1 -1
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-6f861fed.js} +1 -1
- package/dist/bromcom-ui/{p-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-efd00594.entry.js → p-7f48f82f.entry.js} +1 -1
- package/dist/bromcom-ui/p-84f5330f.js +5 -0
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/p-8664c6c9.entry.js +5 -0
- package/dist/bromcom-ui/{p-fdd5d6bb.entry.js → p-866a46c4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-be7e5e83.js → p-8e683b32.js} +1 -1
- package/dist/bromcom-ui/{p-1d48da4b.entry.js → p-8f76d87d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b2e1320.entry.js → p-9cc8712c.entry.js} +1 -1
- package/dist/bromcom-ui/p-9cf19610.entry.js +16 -0
- package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/{p-22a0e447.entry.js → p-acbe93cd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cd2293b7.js → p-ad94ca44.js} +1 -1
- package/dist/bromcom-ui/{p-3a06c6b1.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b3fe26a3.entry.js → p-bdc78a44.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fe675eea.entry.js → p-c179c3de.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5c1af163.entry.js → p-c714d51e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9f688a29.entry.js → p-cb91ad56.entry.js} +1 -1
- package/dist/bromcom-ui/p-d1298c40.js +5 -0
- package/dist/bromcom-ui/{p-3f2cf69e.entry.js → p-d18c83d3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d189e27.entry.js → p-d91ccc41.entry.js} +1 -1
- package/dist/bromcom-ui/p-dbd2c7e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9ea56166.entry.js → p-edefa88b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-af4a83dc.entry.js → p-ef220df3.entry.js} +1 -1
- package/dist/bromcom-ui/p-f0e30624.entry.js +5 -0
- package/dist/bromcom-ui/{p-3f1e16ee.entry.js → p-f9723b42.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa5ecfb2.entry.js → p-f9c5be5a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-74252264.entry.js → p-faeb018a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c821b3bf.entry.js → p-fdbd5b5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7bc49347.entry.js → p-fed90a82.entry.js} +1 -1
- package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
- package/dist/cjs/bcm-accordion_63.cjs.entry.js +46086 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-input-2.cjs.entry.js +153 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
- package/dist/cjs/bcm-number-input.cjs.entry.js +297 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
- package/dist/cjs/bcm-range.cjs.entry.js +6 -6
- package/dist/cjs/bcm-react-number.cjs.entry.js +1230 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
- package/dist/cjs/bcm-table.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
- package/dist/cjs/{generate-acac74ce.js → generate-c1f827bd.js} +1 -1
- package/dist/cjs/{global-47ad6c93.js → global-c2f538b0.js} +1 -1
- package/dist/cjs/input.style-b5676e6a.js +122 -0
- package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-fb148ed6.js → number-helper-804e5165.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/{package-c5399090.js → package-2ca614d5.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-d1aa81f0.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-29229e8f.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-1ee6dc21.js} +6 -4
- package/dist/cjs/{validators-a7c046d5.js → validators-45979497.js} +1 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/badge/badge.js +1 -1
- package/dist/collection/components/atoms/badge/badge.style.js +1 -1
- package/dist/collection/components/atoms/button/button.css +13 -13
- package/dist/collection/components/atoms/button/button.js +14 -14
- package/dist/collection/components/atoms/chip/chip.css +4 -4
- package/dist/collection/components/atoms/chip/chip.js +3 -3
- package/dist/collection/components/atoms/link/link.css +9 -3
- package/dist/collection/components/molecules/checkbox/group.css +2 -2
- package/dist/collection/components/molecules/checkbox/group.js +1 -1
- package/dist/collection/components/molecules/color-input/color-input.js +1 -1
- package/dist/collection/components/molecules/empty/empty.js +1 -1
- package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +4 -4
- package/dist/collection/components/molecules/modal/modal.css +1 -1
- package/dist/collection/components/molecules/number-input/react-input.js +1 -1
- package/dist/collection/components/molecules/radio/radio-group.js +1 -1
- package/dist/collection/components/molecules/radio/radio.js +1 -1
- package/dist/collection/components/molecules/range/range.js +1 -1
- package/dist/collection/components/molecules/switch/switch.css +2 -2
- package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
- package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
- package/dist/collection/components/organism/list/list.css +2 -2
- package/dist/collection/components/organism/list/list.js +3 -3
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other_deprecated/select/select.css +1 -1
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/components/other_deprecated/tabs/tab.css +15 -15
- package/dist/collection/helper/string-helper.js +4 -2
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
- package/dist/collection/stories/ui-library/components/list/country.js +186 -0
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/caption-template.js +2 -2
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +1 -1
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +3 -9
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/bcm-attendance.js +1 -1
- package/dist/components/bcm-checkbox-group.js +2 -2
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-error-layout.js +1 -1
- package/dist/components/bcm-expansion-panel.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-radio-group.js +1 -1
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-select.js +2 -2
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +2 -2
- package/dist/components/bcm-tab-item-header.js +5 -5
- package/dist/components/bcm-tab.js +1 -1
- package/dist/components/button.js +16 -16
- package/dist/components/caption-template.js +2 -2
- package/dist/components/chip.js +4 -4
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +8 -14
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/string-helper.js +4 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion_63.entry.js +46020 -0
- package/dist/esm/bcm-alert.entry.js +6 -6
- package/dist/esm/bcm-attendance-actions-comment.entry.js +11 -11
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +12 -12
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-caption.entry.js +13 -13
- package/dist/esm/bcm-card.entry.js +9 -9
- package/dist/esm/bcm-chip-group.entry.js +14 -14
- package/dist/esm/bcm-colorpicker.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +7 -7
- package/dist/esm/bcm-datetime-picker.entry.js +11 -11
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-form-2.entry.js +6 -6
- package/dist/esm/bcm-input-2.entry.js +149 -0
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +14 -14
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
- package/dist/esm/bcm-modal-2-header.entry.js +10 -10
- package/dist/esm/bcm-modal-2.entry.js +12 -12
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +293 -0
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popover.entry.js +11 -11
- package/dist/esm/bcm-range.entry.js +8 -8
- package/dist/esm/bcm-react-number.entry.js +1226 -0
- 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-skeleton.entry.js +10 -10
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-table.entry.js +11 -11
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +8 -8
- package/dist/esm/bcm-time-picker.entry.js +7 -7
- 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 +8 -8
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-5c43c733.js → caption-template-3cd42c3b.js} +3 -3
- package/dist/esm/{color-helper-c0bb1d8a.js → color-helper-ba15b0d8.js} +2 -2
- package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-a1817b7f.js → generate-fb762c9f.js} +2 -2
- package/dist/esm/{global-26b8ded6.js → global-b4060f1f.js} +1 -1
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
- package/dist/esm/input.style-e855c0f3.js +120 -0
- package/dist/esm/{label-template-c15569c4.js → label-template-ef97aadb.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-ccf5aba4.js → number-helper-0cbe6443.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-5d20a20d.js → package-67609610.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-1b15cc99.js} +1 -1
- package/dist/esm/{slot-template-7c36d3be.js → slot-template-0d958dcc.js} +1 -1
- package/dist/esm/{string-helper-85990695.js → string-helper-b4602002.js} +6 -4
- package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
- package/dist/esm/{validators-e63fdc75.js → validators-e7ccc273.js} +1 -1
- package/dist/types/stories/ui-library/components/list/country.d.ts +6 -0
- package/dist/types/templates/list-template.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0389b380.js +0 -5
- package/dist/bromcom-ui/p-0a3d3b7d.entry.js +0 -5
- package/dist/bromcom-ui/p-13eeb974.entry.js +0 -5
- package/dist/bromcom-ui/p-158245f6.entry.js +0 -5
- package/dist/bromcom-ui/p-183bc78f.entry.js +0 -5
- package/dist/bromcom-ui/p-19e378e2.entry.js +0 -5
- package/dist/bromcom-ui/p-1a53401f.entry.js +0 -5
- package/dist/bromcom-ui/p-1c404cc8.entry.js +0 -5
- package/dist/bromcom-ui/p-1d96b6d6.entry.js +0 -5
- package/dist/bromcom-ui/p-28d0fb9d.entry.js +0 -5
- package/dist/bromcom-ui/p-310cab1a.js +0 -14
- package/dist/bromcom-ui/p-3917a612.entry.js +0 -5
- package/dist/bromcom-ui/p-39ae1e94.entry.js +0 -5
- package/dist/bromcom-ui/p-3ea2dda1.js +0 -5
- package/dist/bromcom-ui/p-40584ce5.entry.js +0 -5
- package/dist/bromcom-ui/p-4364285a.entry.js +0 -5
- package/dist/bromcom-ui/p-475d306a.entry.js +0 -5
- package/dist/bromcom-ui/p-4e33341b.entry.js +0 -5
- package/dist/bromcom-ui/p-4ebb85f9.js +0 -5
- package/dist/bromcom-ui/p-516eb821.entry.js +0 -5
- package/dist/bromcom-ui/p-59294a5a.entry.js +0 -5
- package/dist/bromcom-ui/p-5d45ff27.entry.js +0 -5
- package/dist/bromcom-ui/p-65511654.entry.js +0 -5
- package/dist/bromcom-ui/p-7237c3e9.entry.js +0 -5
- package/dist/bromcom-ui/p-72d4ced8.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-7942e17a.entry.js +0 -5
- package/dist/bromcom-ui/p-7edab876.entry.js +0 -5
- package/dist/bromcom-ui/p-83882081.js +0 -5
- package/dist/bromcom-ui/p-85371fa1.entry.js +0 -5
- package/dist/bromcom-ui/p-862e5ce9.js +0 -5
- package/dist/bromcom-ui/p-903d62ff.entry.js +0 -5
- package/dist/bromcom-ui/p-91f15c4d.entry.js +0 -5
- package/dist/bromcom-ui/p-9d95be18.entry.js +0 -5
- package/dist/bromcom-ui/p-a366357e.entry.js +0 -5
- package/dist/bromcom-ui/p-a8fd6d69.js +0 -5
- package/dist/bromcom-ui/p-afb1e0ae.entry.js +0 -5
- package/dist/bromcom-ui/p-b1f75abe.entry.js +0 -5
- package/dist/bromcom-ui/p-b284e383.entry.js +0 -5
- package/dist/bromcom-ui/p-bc0eb2d3.entry.js +0 -5
- package/dist/bromcom-ui/p-bc668762.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
- package/dist/bromcom-ui/p-c2ef6353.entry.js +0 -5
- package/dist/bromcom-ui/p-c5a06d3a.entry.js +0 -5
- package/dist/bromcom-ui/p-c7be0488.entry.js +0 -5
- package/dist/bromcom-ui/p-ca5073d9.entry.js +0 -5
- package/dist/bromcom-ui/p-cce4fa10.entry.js +0 -5
- package/dist/bromcom-ui/p-d2f863d9.js +0 -5
- package/dist/bromcom-ui/p-d36d96af.entry.js +0 -5
- package/dist/bromcom-ui/p-d40c26fb.entry.js +0 -5
- package/dist/bromcom-ui/p-d60c61e8.entry.js +0 -5
- package/dist/bromcom-ui/p-db8aceb9.entry.js +0 -5
- package/dist/bromcom-ui/p-e4a2f8f8.entry.js +0 -5
- package/dist/bromcom-ui/p-e60832d7.entry.js +0 -5
- package/dist/bromcom-ui/p-e8962d4b.entry.js +0 -5
- package/dist/bromcom-ui/p-ec9b0de4.entry.js +0 -5
- package/dist/bromcom-ui/p-ef440eba.entry.js +0 -5
- package/dist/bromcom-ui/p-f144de37.entry.js +0 -5
- package/dist/bromcom-ui/p-f1550bf5.entry.js +0 -5
- package/dist/bromcom-ui/p-fd8a6bb8.entry.js +0 -5
- package/dist/bromcom-ui/p-fe39eea8.js +0 -5
- package/dist/cjs/Overflow-7a86d378.js +0 -2233
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
- package/dist/cjs/bcm-button_11.cjs.entry.js +0 -3340
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
- package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
- package/dist/cjs/bcm-date.cjs.entry.js +0 -182
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
- package/dist/cjs/bcm-item.cjs.entry.js +0 -72
- package/dist/cjs/bcm-items.cjs.entry.js +0 -49
- package/dist/cjs/bcm-link.cjs.entry.js +0 -51
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -1972
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9986
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
- package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
- package/dist/cjs/bcm-step.cjs.entry.js +0 -89
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
- package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
- package/dist/cjs/bcm-text.cjs.entry.js +0 -49
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
- package/dist/cjs/input-template-b836720c.js +0 -92
- package/dist/cjs/json-parse-decarator-b8367488.js +0 -40
- package/dist/cjs/lodash-917168d7.js +0 -17199
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/cjs/stepper-states-17562587.js +0 -85
- package/dist/cjs/tooltip-helper-41b2fcd0.js +0 -158
- package/dist/esm/Overflow-32a0ec34.js +0 -2217
- package/dist/esm/bcm-accordion.entry.js +0 -70
- package/dist/esm/bcm-attendance-actions.entry.js +0 -326
- package/dist/esm/bcm-attendance.entry.js +0 -31
- package/dist/esm/bcm-avatar_2.entry.js +0 -205
- package/dist/esm/bcm-button-group.entry.js +0 -88
- package/dist/esm/bcm-button_11.entry.js +0 -3326
- package/dist/esm/bcm-checkbox-group.entry.js +0 -411
- package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-chip.entry.js +0 -87
- package/dist/esm/bcm-collapse-group.entry.js +0 -39
- package/dist/esm/bcm-collapse.entry.js +0 -58
- package/dist/esm/bcm-color-input.entry.js +0 -73
- package/dist/esm/bcm-date.entry.js +0 -178
- package/dist/esm/bcm-drawer.entry.js +0 -92
- package/dist/esm/bcm-dropdown.entry.js +0 -115
- package/dist/esm/bcm-expansion-panel.entry.js +0 -112
- package/dist/esm/bcm-item.entry.js +0 -68
- package/dist/esm/bcm-items.entry.js +0 -45
- package/dist/esm/bcm-link.entry.js +0 -47
- package/dist/esm/bcm-list_3.entry.js +0 -1966
- package/dist/esm/bcm-menu.entry.js +0 -147
- package/dist/esm/bcm-modal.entry.js +0 -153
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-old-tag_2.entry.js +0 -140
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
- package/dist/esm/bcm-popconfirm.entry.js +0 -97
- package/dist/esm/bcm-progress.entry.js +0 -158
- package/dist/esm/bcm-radio-group.entry.js +0 -157
- package/dist/esm/bcm-radio.entry.js +0 -61
- package/dist/esm/bcm-rc-picker.entry.js +0 -9982
- package/dist/esm/bcm-select.entry.js +0 -1191
- package/dist/esm/bcm-shortcut.entry.js +0 -61
- package/dist/esm/bcm-step.entry.js +0 -85
- package/dist/esm/bcm-stepper.entry.js +0 -236
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/bcm-tab-group.entry.js +0 -206
- package/dist/esm/bcm-tab-item-header.entry.js +0 -55
- package/dist/esm/bcm-tab-item.entry.js +0 -87
- package/dist/esm/bcm-tab.entry.js +0 -68
- package/dist/esm/bcm-tabs.entry.js +0 -366
- package/dist/esm/bcm-text.entry.js +0 -45
- package/dist/esm/bcm-textarea.entry.js +0 -159
- package/dist/esm/input-template-c8611096.js +0 -90
- package/dist/esm/json-parse-decarator-b230fb3b.js +0 -38
- package/dist/esm/lodash-0a4396a7.js +0 -17197
- package/dist/esm/moment-15cd9198.js +0 -4598
- package/dist/esm/stepper-states-38388dc9.js +0 -83
- package/dist/esm/tooltip-helper-e4eb77cc.js +0 -156
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
-
import { C as ColorHelper } from './color-helper-c0bb1d8a.js';
|
|
8
|
-
import { G as Generate } from './generate-a1817b7f.js';
|
|
9
|
-
import { S as StringHelper } from './string-helper-85990695.js';
|
|
10
|
-
import { s as setPosition } from './popover-placement-2f5939ea.js';
|
|
11
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
12
|
-
import './colors-1d7854ea.js';
|
|
13
|
-
import './utils-57652744.js';
|
|
14
|
-
import './colors-df32bb43.js';
|
|
15
|
-
import './package-5d20a20d.js';
|
|
16
|
-
import './bcm-a50d55ba.js';
|
|
17
|
-
|
|
18
|
-
const popconfirmBoxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-popconfirm-box{position:absolute;transition:transform 0.2s ease-in-out;}.bcm-popconfirm-box .bcm-pop-box{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:10px;line-height:calc(10px + 8px);box-shadow:0 4px 12px 2px rgba(17, 24, 38, 0.1);border-radius:4px;position:absolute;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;z-index:-99999;overflow:hidden;visibility:hidden;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content{display:flex;flex-direction:row;align-items:flex-start}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-icon{margin-right:8px;min-width:16px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-text{display:flex;flex-direction:row;align-items:center;text-align:left;padding-top:1px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons{display:flex;justify-content:flex-end;margin-top:8px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons bcm-button:first-child{margin-right:8px}.bcm-popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10900;pointer-events:none}.bcm-popconfirm-box.bcm-pop-open{display:block;z-index:10900}.bcm-popconfirm-box.bcm-pop-open .bcm-pop-box{z-index:10900;overflow:unset;visibility:unset}.bcm-popconfirm-box.bcm-pop-open::after{display:block}.bcm-popconfirm-box.top .bcm-pop-box{bottom:100%;margin-bottom:16px}.bcm-popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.bcm-popconfirm-box.bottom .bcm-pop-box{top:100%;margin-top:16px}.bcm-popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.bcm-popconfirm-box.left .bcm-pop-box{right:100%;margin-right:16px}.bcm-popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.bcm-popconfirm-box.right .bcm-pop-box{left:100%;margin-left:16px}.bcm-popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.bcm-popconfirm-box.top.center .bcm-pop-box,.bcm-popconfirm-box.bottom.center .bcm-pop-box{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.center::after,.bcm-popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.start .bcm-pop-box,.bcm-popconfirm-box.bottom.start .bcm-pop-box{left:0}.bcm-popconfirm-box.top.start::after,.bcm-popconfirm-box.bottom.start::after{left:16px}.bcm-popconfirm-box.top.end .bcm-pop-box,.bcm-popconfirm-box.bottom.end .bcm-pop-box{right:0}.bcm-popconfirm-box.top.end::after,.bcm-popconfirm-box.bottom.end::after{right:16px}.bcm-popconfirm-box.left.center .bcm-pop-box,.bcm-popconfirm-box.right.center .bcm-pop-box{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.center::after,.bcm-popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.start .bcm-pop-box,.bcm-popconfirm-box.right.start .bcm-pop-box{top:0}.bcm-popconfirm-box.left.start::after,.bcm-popconfirm-box.right.start::after{top:12px}.bcm-popconfirm-box.left.end .bcm-pop-box,.bcm-popconfirm-box.right.end .bcm-pop-box{bottom:0}.bcm-popconfirm-box.left.end::after,.bcm-popconfirm-box.right.end::after{bottom:12px}.bcm-popconfirm-box.top{transform:translateY(1px)}.bcm-popconfirm-box.bottom{transform:translateY(-1px)}.bcm-popconfirm-box.left{transform:translateX(1px)}.bcm-popconfirm-box.right{transform:translateX(-1px)}.bcm-popconfirm-box.top.bcm-pop-open,.bcm-popconfirm-box.bottom.bcm-pop-open{transform:translateY(0)}.bcm-popconfirm-box.left.bcm-pop-open,.bcm-popconfirm-box.right.bcm-pop-open{transform:translateX(0)}";
|
|
19
|
-
|
|
20
|
-
const statuses = {
|
|
21
|
-
error: ['fal fa-times-circle', 'red-6'],
|
|
22
|
-
warning: ['fal fa-exclamation-circle', 'warmyellow-6'],
|
|
23
|
-
};
|
|
24
|
-
const BcmPopconfirmBox = class {
|
|
25
|
-
constructor(hostRef) {
|
|
26
|
-
registerInstance(this, hostRef);
|
|
27
|
-
this.onConfirm = createEvent(this, "bcm-popconfirm-confirm", 7);
|
|
28
|
-
this.onCancel = createEvent(this, "bcm-popconfirm-cancel", 7);
|
|
29
|
-
this.onShow = createEvent(this, "bcm-popconfirm-show", 7);
|
|
30
|
-
this._id = Generate.UID();
|
|
31
|
-
this._target_id = undefined;
|
|
32
|
-
this.message = undefined;
|
|
33
|
-
this.status = 'warning';
|
|
34
|
-
this.cancelText = "No";
|
|
35
|
-
this.okeyText = "Yes";
|
|
36
|
-
this.placement = undefined;
|
|
37
|
-
this.open = false;
|
|
38
|
-
this.hidden = false;
|
|
39
|
-
this._internal_id = undefined;
|
|
40
|
-
this.placement_string = undefined;
|
|
41
|
-
}
|
|
42
|
-
getPopconfirm() {
|
|
43
|
-
return document.querySelector(`bcm-popconfirm[id="${this._target_id}"]`);
|
|
44
|
-
}
|
|
45
|
-
handleClickOutside(e) {
|
|
46
|
-
if (this.el.contains(e.target) || this.getPopconfirm().contains(e.target)) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
this.getPopconfirm().hide();
|
|
50
|
-
this.hide();
|
|
51
|
-
}
|
|
52
|
-
showHandler(e) {
|
|
53
|
-
if (e.detail != this._target_id) {
|
|
54
|
-
this.getPopconfirm().hide();
|
|
55
|
-
this.hide();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
async show() {
|
|
59
|
-
this.open = true;
|
|
60
|
-
this.onShow.emit(this._target_id);
|
|
61
|
-
}
|
|
62
|
-
async hide() {
|
|
63
|
-
this.open = false;
|
|
64
|
-
}
|
|
65
|
-
componentWillRender() {
|
|
66
|
-
this.calculateLocation();
|
|
67
|
-
}
|
|
68
|
-
calculateLocation() {
|
|
69
|
-
if (this.open) {
|
|
70
|
-
var placement = this.placement;
|
|
71
|
-
const box = this.el.querySelector('.bcm-pop-box');
|
|
72
|
-
const targetElement = document.getElementById(this._target_id).children[0];
|
|
73
|
-
if (box && targetElement) {
|
|
74
|
-
let pos = setPosition(placement, targetElement, { top: targetElement.offsetTop, left: targetElement.offsetLeft });
|
|
75
|
-
this.setPlacementString(placement);
|
|
76
|
-
this.el.style.top = pos[0] + 'px';
|
|
77
|
-
this.el.style.left = pos[1] + 'px';
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
setPlacementString(placement) {
|
|
82
|
-
const placements = StringHelper.textContains(placement, '-') ? placement.split('-') : placement.split(' ');
|
|
83
|
-
if (placements.length === 1) {
|
|
84
|
-
placements.push('center');
|
|
85
|
-
}
|
|
86
|
-
this.placement_string = placements.join(' ');
|
|
87
|
-
}
|
|
88
|
-
handleConfirm() {
|
|
89
|
-
this.getPopconfirm().hide();
|
|
90
|
-
this.hide();
|
|
91
|
-
this.onConfirm.emit(this._target_id);
|
|
92
|
-
}
|
|
93
|
-
handleCancel() {
|
|
94
|
-
this.getPopconfirm().hide();
|
|
95
|
-
this.hide();
|
|
96
|
-
this.onCancel.emit(this._target_id);
|
|
97
|
-
}
|
|
98
|
-
render() {
|
|
99
|
-
const { message, cancelText, okeyText, open, placement_string, status } = this;
|
|
100
|
-
const statusies = statuses[status];
|
|
101
|
-
const boxClasses = classnames('bcm-pop-box');
|
|
102
|
-
const hostClasses = classnames('bcm-popconfirm-box', placement_string, {
|
|
103
|
-
'bcm-pop-open': open,
|
|
104
|
-
});
|
|
105
|
-
return (h(Host, { class: hostClasses }, h("div", { class: boxClasses }, h("div", { class: "bcm-pop-content" }, h("div", { class: "bcm-pop-content-icon size-3", style: { color: ColorHelper.convertColorToHex(statusies[1]) } }, h("bcm-icon", { icon: statusies[0] })), h("div", { class: "bcm-pop-content-text" }, h("bcm-text", { scale: "size-2", innerHTML: message }))), h("div", { class: "bcm-pop-buttons" }, h("bcm-button", { size: "small", onClick: () => this.handleCancel(), outline: true }, cancelText), h("bcm-button", { size: "small", onClick: () => this.handleConfirm() }, okeyText)))));
|
|
106
|
-
}
|
|
107
|
-
get el() { return getElement(this); }
|
|
108
|
-
};
|
|
109
|
-
BcmPopconfirmBox.style = popconfirmBoxCss;
|
|
110
|
-
|
|
111
|
-
export { BcmPopconfirmBox as bcm_popconfirm_box };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
-
import { G as Generate } from './generate-a1817b7f.js';
|
|
8
|
-
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
9
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
10
|
-
import './package-5d20a20d.js';
|
|
11
|
-
import './colors-df32bb43.js';
|
|
12
|
-
|
|
13
|
-
const popconfirmCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-popconfirm{display:inline-flex}";
|
|
14
|
-
|
|
15
|
-
const BcmPopconfirm = class {
|
|
16
|
-
constructor(hostRef) {
|
|
17
|
-
registerInstance(this, hostRef);
|
|
18
|
-
this.onShow = createEvent(this, "bcm-show", 7);
|
|
19
|
-
this.onHide = createEvent(this, "bcm-hide", 7);
|
|
20
|
-
this.onConfirm = createEvent(this, "bcm-confirm", 7);
|
|
21
|
-
this.onCancel = createEvent(this, "bcm-cancel", 7);
|
|
22
|
-
this._id = Generate.UID();
|
|
23
|
-
this.message = undefined;
|
|
24
|
-
this.status = 'warning';
|
|
25
|
-
this.cancelText = "No";
|
|
26
|
-
this.okeyText = "Yes";
|
|
27
|
-
this.placement = Bcm.Placement.top;
|
|
28
|
-
this.trigger = Bcm.TriggerType.click;
|
|
29
|
-
this.open = false;
|
|
30
|
-
this.hidden = false;
|
|
31
|
-
}
|
|
32
|
-
async show() {
|
|
33
|
-
// if (this.open) return
|
|
34
|
-
this.open = true;
|
|
35
|
-
this.onShow.emit();
|
|
36
|
-
await this.createBox().then(() => this.showBox());
|
|
37
|
-
}
|
|
38
|
-
async hide() {
|
|
39
|
-
// if (!this.open) return
|
|
40
|
-
this.open = false;
|
|
41
|
-
this.onHide.emit();
|
|
42
|
-
// this.hideBox()
|
|
43
|
-
}
|
|
44
|
-
async createBox() {
|
|
45
|
-
let element = this.getPopconfirmBox();
|
|
46
|
-
if (!element) {
|
|
47
|
-
const box = document.createElement('bcm-popconfirm-box');
|
|
48
|
-
box.setAttribute('id', 'box-' + this._id);
|
|
49
|
-
box.setAttribute('target-id', this._id);
|
|
50
|
-
box.setAttribute('placement', this.placement);
|
|
51
|
-
box.setAttribute('message', this.message);
|
|
52
|
-
box.setAttribute('status', this.status);
|
|
53
|
-
box.setAttribute('cancel-text', this.cancelText);
|
|
54
|
-
box.setAttribute('okey-text', this.okeyText);
|
|
55
|
-
this.el.parentElement.appendChild(box);
|
|
56
|
-
}
|
|
57
|
-
return Promise.resolve();
|
|
58
|
-
}
|
|
59
|
-
getPopconfirmBox() {
|
|
60
|
-
return document.querySelector(`bcm-popconfirm-box[id="box-${this._id}"]`);
|
|
61
|
-
}
|
|
62
|
-
showBox() {
|
|
63
|
-
this.getPopconfirmBox() && this.getPopconfirmBox().show();
|
|
64
|
-
}
|
|
65
|
-
hideBox() {
|
|
66
|
-
this.getPopconfirmBox() && this.getPopconfirmBox().hide();
|
|
67
|
-
}
|
|
68
|
-
listenTrigger(event) {
|
|
69
|
-
switch (this.trigger) {
|
|
70
|
-
case 'click':
|
|
71
|
-
event === 'click' && (this.open ? this.hide() : this.show());
|
|
72
|
-
break;
|
|
73
|
-
case 'hover':
|
|
74
|
-
event === 'onMouseOver' && this.show();
|
|
75
|
-
event === 'onMouseOut' && this.hide();
|
|
76
|
-
break;
|
|
77
|
-
case 'focus':
|
|
78
|
-
event === 'onFocus' && this.show();
|
|
79
|
-
event === 'onBlur' && this.hide();
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
onBcmConfirm(e) {
|
|
84
|
-
e.detail == this._id && (this.onConfirm.emit(this._id));
|
|
85
|
-
}
|
|
86
|
-
onBcmCancel(e) {
|
|
87
|
-
e.detail == this._id && (this.onCancel.emit(this._id));
|
|
88
|
-
}
|
|
89
|
-
render() {
|
|
90
|
-
const popconfirmClasses = classnames('bcm-popconfirm');
|
|
91
|
-
return (h(Host, { class: popconfirmClasses, onclick: () => this.listenTrigger('click') }, h("slot", null)));
|
|
92
|
-
}
|
|
93
|
-
get el() { return getElement(this); }
|
|
94
|
-
};
|
|
95
|
-
BcmPopconfirm.style = popconfirmCss;
|
|
96
|
-
|
|
97
|
-
export { BcmPopconfirm as bcm_popconfirm };
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
-
import { C as ColorHelper } from './color-helper-c0bb1d8a.js';
|
|
8
|
-
import { G as Generate } from './generate-a1817b7f.js';
|
|
9
|
-
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
10
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
11
|
-
import './colors-1d7854ea.js';
|
|
12
|
-
import './utils-57652744.js';
|
|
13
|
-
import './colors-df32bb43.js';
|
|
14
|
-
import './package-5d20a20d.js';
|
|
15
|
-
|
|
16
|
-
// export const lineSizes = {
|
|
17
|
-
// small: {
|
|
18
|
-
// textSize: 'size-1',
|
|
19
|
-
// iconSize: 14,
|
|
20
|
-
// },
|
|
21
|
-
// medium: {
|
|
22
|
-
// textSize: 'size-2',
|
|
23
|
-
// iconSize: 16,
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
const circleSizes = {
|
|
27
|
-
small: {
|
|
28
|
-
textSize: 'size-3',
|
|
29
|
-
iconSize: 22,
|
|
30
|
-
circleSize: 80,
|
|
31
|
-
radius: 36
|
|
32
|
-
},
|
|
33
|
-
medium: {
|
|
34
|
-
textSize: 'size-5',
|
|
35
|
-
iconSize: 30,
|
|
36
|
-
circleSize: 120,
|
|
37
|
-
radius: 52
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const progressCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-progress{--bcm-progress-color:var(--bcm-new-ds-color-blue-500);display:inline-block;min-width:50px;width:100%;max-width:256px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-progress.full-width{width:100%;max-width:100%;min-width:auto}.bcm-progress__line{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;min-height:8px}.bcm-progress__line .value{margin-left:8px;color:var(--bcm-new-ds-color-slate-500);min-width:32px;font-size:14px;min-height:calc(14px + 8px);font-weight:500}.bcm-progress__line-progress{width:100%;flex:1;height:8px;border:0 none;background:var(--bcm-new-ds-color-slate-200);appearance:none}.bcm-progress__line-progress.small{height:6px}.bcm-progress__line-progress.line-rounded,.bcm-progress__line-progress.line-rounded::-webkit-progress-value{border-radius:8px}.bcm-progress__line-progress.line-rounded::-moz-progress-bar{border-radius:8px}.bcm-progress__line-progress.completed::-webkit-progress-value{background-color:var(--bcm-progress-color)}.bcm-progress__line-progress.completed::-moz-progress-bar{background-color:var(--bcm-progress-color)}.bcm-progress__line-progress.error::-webkit-progress-value{background-color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress.error::-moz-progress-bar{background-color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress.error .value{color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress::-webkit-progress-bar{background:transparent}.bcm-progress__line-progress::-webkit-progress-value{background-color:var(--bcm-progress-color);transition:0.3s}.bcm-progress__line-progress::-moz-progress-bar{background-color:var(--bcm-progress-color);transition:0.3s}.bcm-progress__circle{position:relative}.bcm-progress__circle bcm-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.bcm-progress__circle text{fill:var(--bcm-new-ds-color-slate-500);font-size:18px;line-height:calc(18px + 8px);font-weight:500}.bcm-progress__circle-circle{transition:0.35s stroke-dashoffset, 0.1s stroke;transform:rotate(-90deg);transform-origin:50% 50%;stroke:#F5F5F5;stroke-width:6px;fill:transparent}.bcm-progress__circle-circle.bar{stroke:var(--bcm-progress-color)}.bcm-progress__circle-circle.completed{stroke:var(--bcm-new-ds-color-emerald-500)}.bcm-progress__circle-circle.error{stroke:var(--bcm-new-ds-color-red-500)}";
|
|
42
|
-
|
|
43
|
-
const BcmProgress = class {
|
|
44
|
-
constructor(hostRef) {
|
|
45
|
-
registerInstance(this, hostRef);
|
|
46
|
-
this._id = Generate.UID();
|
|
47
|
-
this.value = 0;
|
|
48
|
-
this.max = 100;
|
|
49
|
-
this.size = Bcm.Size.medium;
|
|
50
|
-
this.type = "line-rounded";
|
|
51
|
-
this.info = null;
|
|
52
|
-
this.error = false;
|
|
53
|
-
this.hidden = false;
|
|
54
|
-
this.fullWidth = false;
|
|
55
|
-
this.color = "blue";
|
|
56
|
-
this.isCompleted = false;
|
|
57
|
-
}
|
|
58
|
-
connectedCallback() {
|
|
59
|
-
this.maxPercent(this.value);
|
|
60
|
-
}
|
|
61
|
-
componentDidRender() {
|
|
62
|
-
const circle = this.el.querySelector("#circle");
|
|
63
|
-
if (circle) {
|
|
64
|
-
const radius = circle.r.baseVal.value;
|
|
65
|
-
const circumference = radius * 2 * Math.PI;
|
|
66
|
-
const offset = circumference - (this.value / this.max) * circumference;
|
|
67
|
-
circle.style.strokeDasharray = `${circumference} ${circumference}`;
|
|
68
|
-
circle.style.strokeDashoffset = `${circumference}`;
|
|
69
|
-
circle.style.strokeDashoffset = `${offset}`;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
componentShouldUpdate(newVal, oldVal, propName) {
|
|
73
|
-
if (propName === "value" && newVal !== oldVal) {
|
|
74
|
-
this.handlePercent(newVal);
|
|
75
|
-
}
|
|
76
|
-
if (propName === "max" && newVal !== oldVal) {
|
|
77
|
-
this.value > newVal ? this.value = newVal : this.value;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
maxPercent(newValue) {
|
|
81
|
-
if (newValue >= this.max) {
|
|
82
|
-
this.value = this.max;
|
|
83
|
-
this.isCompleted = true;
|
|
84
|
-
}
|
|
85
|
-
if (newValue < this.max) {
|
|
86
|
-
this.isCompleted = false;
|
|
87
|
-
}
|
|
88
|
-
if (newValue <= 0) {
|
|
89
|
-
this.value = 0;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
async increment(percent) {
|
|
93
|
-
this.handlePercent(+percent, "increment");
|
|
94
|
-
}
|
|
95
|
-
async decrement(percent) {
|
|
96
|
-
this.handlePercent(+percent, "decrement");
|
|
97
|
-
}
|
|
98
|
-
async set(percent) {
|
|
99
|
-
this.handlePercent(+percent, "set");
|
|
100
|
-
}
|
|
101
|
-
handlePercent(percent, process = "set") {
|
|
102
|
-
if ((percent || percent == 0) && typeof percent === "number") {
|
|
103
|
-
switch (process) {
|
|
104
|
-
case "increment":
|
|
105
|
-
this.value += percent;
|
|
106
|
-
break;
|
|
107
|
-
case "decrement":
|
|
108
|
-
this.value -= percent;
|
|
109
|
-
break;
|
|
110
|
-
case "set":
|
|
111
|
-
this.value = percent;
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
this.maxPercent(this.value);
|
|
115
|
-
this.error = false;
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
this.error = true;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
getIcon(type = "line") {
|
|
122
|
-
let icon = "far fa-" + (this.error ? "times" : "check") + (type === "line" ? "-circle" : "");
|
|
123
|
-
if (this.error || (this.info === "icon" && this.isCompleted)) {
|
|
124
|
-
return h("bcm-icon", { icon: icon });
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
render() {
|
|
128
|
-
const { type, hidden, error, size, isCompleted, value, fullWidth } = this;
|
|
129
|
-
const isIcon = this.info === "icon";
|
|
130
|
-
const { circleSize, radius, textSize } = circleSizes[this.size];
|
|
131
|
-
const centerOfCircle = +circleSize / 2;
|
|
132
|
-
const completeState = classnames({
|
|
133
|
-
completed: isIcon && isCompleted,
|
|
134
|
-
error,
|
|
135
|
-
});
|
|
136
|
-
const lineClasses = classnames("bcm-progress__line-progress", size, type, completeState);
|
|
137
|
-
const circleClasses = classnames("bcm-progress__circle-circle", "bar", completeState);
|
|
138
|
-
const containerStyle = {
|
|
139
|
-
width: `${circleSize}px`,
|
|
140
|
-
height: `${circleSize}px`,
|
|
141
|
-
};
|
|
142
|
-
const hostClasses = classnames("bcm-progress", {
|
|
143
|
-
hidden,
|
|
144
|
-
"full-width": fullWidth,
|
|
145
|
-
});
|
|
146
|
-
const CircleTemplate = () => (h("div", { class: "bcm-progress__circle", style: containerStyle }, h("svg", { width: circleSize, height: circleSize }, h("circle", { r: radius, cx: centerOfCircle, cy: centerOfCircle, class: "bcm-progress__circle-circle" }), h("circle", { r: radius, cx: centerOfCircle, cy: centerOfCircle, class: circleClasses, id: "circle" }), (this.info && this.info != "icon") && !this.error && (h("text", { x: centerOfCircle, y: centerOfCircle, "text-anchor": "middle", class: textSize, "alignment-baseline": "middle" }, this.info === "value-max" && (value + "/" + this.max), this.info === "value" && { value }, this.info === "percent" &&
|
|
147
|
-
(100 / this.max) * +(value) + "%"))), this.getIcon("circle")));
|
|
148
|
-
const LineTemplate = () => (h("div", { class: "bcm-progress__line" }, h("progress", { class: lineClasses, value: value, max: this.max }), this.info === "value-max" && h("span", { class: "value" }, value, "/", this.max, " "), this.info === "value" && h("span", { class: "value" }, value, " "), this.info === "percent" &&
|
|
149
|
-
h("span", { class: "value" }, (100 / this.max) * +(value), "%"), this.info === "icon" && h("span", { class: "value" }, this.getIcon("line"))));
|
|
150
|
-
return (h(Host, { class: hostClasses, style: {
|
|
151
|
-
[`--bcm-progress-color`]: ColorHelper.dsColor(this.color),
|
|
152
|
-
} }, type === "circle" ? h(CircleTemplate, null) : h(LineTemplate, null)));
|
|
153
|
-
}
|
|
154
|
-
get el() { return getElement(this); }
|
|
155
|
-
};
|
|
156
|
-
BcmProgress.style = progressCss;
|
|
157
|
-
|
|
158
|
-
export { BcmProgress as bcm_progress };
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import './color-helper-c0bb1d8a.js';
|
|
7
|
-
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-a1817b7f.js';
|
|
9
|
-
import './number-helper-ccf5aba4.js';
|
|
10
|
-
import './string-helper-85990695.js';
|
|
11
|
-
import './validators-e63fdc75.js';
|
|
12
|
-
import './element-dragger-89bb52fd.js';
|
|
13
|
-
import { d as delay } from './utils-57652744.js';
|
|
14
|
-
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
15
|
-
import { C as CaptionTemplate } from './caption-template-5c43c733.js';
|
|
16
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
17
|
-
import './types-6f06fa1a.js';
|
|
18
|
-
import './types-9493a7ed.js';
|
|
19
|
-
import { I as IsLoad } from './is-load-decorator-8277e3b8.js';
|
|
20
|
-
import './colors-1d7854ea.js';
|
|
21
|
-
import './colors-df32bb43.js';
|
|
22
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
23
|
-
import './package-5d20a20d.js';
|
|
24
|
-
|
|
25
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
26
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
27
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
28
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
29
|
-
else
|
|
30
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
31
|
-
if (d = decorators[i])
|
|
32
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
34
|
-
};
|
|
35
|
-
const BcmRadioGroup = class {
|
|
36
|
-
constructor(hostRef) {
|
|
37
|
-
registerInstance(this, hostRef);
|
|
38
|
-
this.change = createEvent(this, "bcm-change", 7);
|
|
39
|
-
this._id = Generate.UID();
|
|
40
|
-
this.label = undefined;
|
|
41
|
-
this.name = undefined;
|
|
42
|
-
this.value = null;
|
|
43
|
-
this.defaultValue = undefined;
|
|
44
|
-
this.size = Bcm.Size.medium;
|
|
45
|
-
this.disabled = undefined;
|
|
46
|
-
this.hidden = false;
|
|
47
|
-
this.required = false;
|
|
48
|
-
this.gap = undefined;
|
|
49
|
-
this.direction = Bcm.Direction.horizontal;
|
|
50
|
-
this.fullWidth = false;
|
|
51
|
-
this.items = [];
|
|
52
|
-
this.caption = undefined;
|
|
53
|
-
this.noCaption = false;
|
|
54
|
-
this.captionError = undefined;
|
|
55
|
-
this.captionType = Bcm.Status.default;
|
|
56
|
-
this.captionCache = undefined;
|
|
57
|
-
this.captionTypeCache = undefined;
|
|
58
|
-
}
|
|
59
|
-
get radios() {
|
|
60
|
-
return Array.from(this.el.querySelectorAll("bcm-radio"));
|
|
61
|
-
}
|
|
62
|
-
get Items() {
|
|
63
|
-
return this.items;
|
|
64
|
-
}
|
|
65
|
-
connectedCallback() {
|
|
66
|
-
this.captionCache = this.caption;
|
|
67
|
-
this.captionTypeCache = this.captionType;
|
|
68
|
-
}
|
|
69
|
-
updateValue() {
|
|
70
|
-
var _a, _b, _c;
|
|
71
|
-
this.value = (_c = (_b = (_a = this.radios) === null || _a === void 0 ? void 0 : _a.find(radio => radio.checked)) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : null;
|
|
72
|
-
}
|
|
73
|
-
setRadioUpdate() {
|
|
74
|
-
var _a;
|
|
75
|
-
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => {
|
|
76
|
-
radio.disabled = this.disabled || radio.disabled;
|
|
77
|
-
radio.size = this.size;
|
|
78
|
-
if (this.defaultValue) {
|
|
79
|
-
radio.checked = radio.value == this.defaultValue;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
watchDisabled(newVal, _oldVal) {
|
|
84
|
-
var _a;
|
|
85
|
-
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => radio.disabled = newVal);
|
|
86
|
-
}
|
|
87
|
-
watchDefaultValue(newVal, _oldVal) {
|
|
88
|
-
var _a;
|
|
89
|
-
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => radio.checked = radio.value == newVal);
|
|
90
|
-
this.updateValue();
|
|
91
|
-
this.change.emit(this.value);
|
|
92
|
-
}
|
|
93
|
-
componentWillLoad() {
|
|
94
|
-
this.setRadioUpdate();
|
|
95
|
-
this.updateValue();
|
|
96
|
-
}
|
|
97
|
-
handleChange(e) {
|
|
98
|
-
var _a, _b;
|
|
99
|
-
e.stopPropagation();
|
|
100
|
-
e.preventDefault();
|
|
101
|
-
const checked = (_a = e.target.checked) !== null && _a !== void 0 ? _a : false;
|
|
102
|
-
(_b = this.radios) === null || _b === void 0 ? void 0 : _b.forEach(radio => {
|
|
103
|
-
radio.checked = radio.id == e.target.id ? !checked : false;
|
|
104
|
-
});
|
|
105
|
-
this.updateValue();
|
|
106
|
-
this.change.emit(this.value);
|
|
107
|
-
}
|
|
108
|
-
;
|
|
109
|
-
async setClear() {
|
|
110
|
-
var _a;
|
|
111
|
-
this.value = null;
|
|
112
|
-
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => {
|
|
113
|
-
radio.checked = false;
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
async resetCaption() {
|
|
117
|
-
await delay(10);
|
|
118
|
-
this.caption = this.captionCache;
|
|
119
|
-
this.captionType = this.captionTypeCache;
|
|
120
|
-
this.captionError = null;
|
|
121
|
-
await delay(10);
|
|
122
|
-
return Promise.resolve();
|
|
123
|
-
}
|
|
124
|
-
async check(itemId, checked = true) {
|
|
125
|
-
var _a;
|
|
126
|
-
(_a = this.radios) === null || _a === void 0 ? void 0 : _a.forEach(radio => {
|
|
127
|
-
radio.checked = radio.id == itemId || radio.value == itemId ? checked : false;
|
|
128
|
-
});
|
|
129
|
-
this.updateValue();
|
|
130
|
-
this.change.emit(this.value);
|
|
131
|
-
}
|
|
132
|
-
async get() {
|
|
133
|
-
return this.value;
|
|
134
|
-
}
|
|
135
|
-
async set(data) {
|
|
136
|
-
await this.check(data);
|
|
137
|
-
}
|
|
138
|
-
async getValue() {
|
|
139
|
-
return this.value;
|
|
140
|
-
}
|
|
141
|
-
render() {
|
|
142
|
-
var _a, _b;
|
|
143
|
-
const { direction, fullWidth, gap, label, size, required, disabled, caption, captionError, captionType, noCaption } = this;
|
|
144
|
-
return (h(Host, { role: "radio-group", class: "tw-mb-2 tw-flex tw-flex-col" }, label && h("bcm-label", { type: captionType, value: label, required: required }), h("div", { class: classnames("tw-flex tw-flex-wrap", direction == Bcm.Direction.horizontal ? "tw-flex-row" : "tw-flex-col", fullWidth && "tw-w-full"), style: { "gap": gap } }, h("slot", null), ((_a = this.Items) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
145
|
-
((_b = this.Items) === null || _b === void 0 ? void 0 : _b.map(item => (h("bcm-radio", { id: item.id, value: item.value, disabled: disabled || item.disabled, checked: item.checked, color: item.color, size: size }, item.label))))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
146
|
-
}
|
|
147
|
-
get el() { return getElement(this); }
|
|
148
|
-
static get watchers() { return {
|
|
149
|
-
"disabled": ["watchDisabled"],
|
|
150
|
-
"defaultValue": ["watchDefaultValue"]
|
|
151
|
-
}; }
|
|
152
|
-
};
|
|
153
|
-
__decorate([
|
|
154
|
-
IsLoad()
|
|
155
|
-
], BcmRadioGroup.prototype, "el", void 0);
|
|
156
|
-
|
|
157
|
-
export { BcmRadioGroup as bcm_radio_group };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
7
|
-
import './color-helper-c0bb1d8a.js';
|
|
8
|
-
import './datetime-helper-df25808a.js';
|
|
9
|
-
import { G as Generate } from './generate-a1817b7f.js';
|
|
10
|
-
import './number-helper-ccf5aba4.js';
|
|
11
|
-
import './string-helper-85990695.js';
|
|
12
|
-
import './validators-e63fdc75.js';
|
|
13
|
-
import './element-dragger-89bb52fd.js';
|
|
14
|
-
import { c as classnames } from './index-b84bc8c9.js';
|
|
15
|
-
import './colors-1d7854ea.js';
|
|
16
|
-
import './utils-57652744.js';
|
|
17
|
-
import './colors-df32bb43.js';
|
|
18
|
-
import './_commonjsHelpers-be0d4ec8.js';
|
|
19
|
-
import './package-5d20a20d.js';
|
|
20
|
-
|
|
21
|
-
const BcmRadio = class {
|
|
22
|
-
constructor(hostRef) {
|
|
23
|
-
registerInstance(this, hostRef);
|
|
24
|
-
this.radioChange = createEvent(this, "bcm-radio-change", 7);
|
|
25
|
-
this.focus = createEvent(this, "bcm-focus", 7);
|
|
26
|
-
this.blur = createEvent(this, "bcm-blur", 7);
|
|
27
|
-
this._id = Generate.UID();
|
|
28
|
-
this.checked = undefined;
|
|
29
|
-
this.value = undefined;
|
|
30
|
-
this.disabled = false;
|
|
31
|
-
this.size = Bcm.Size.medium;
|
|
32
|
-
this.color = undefined;
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
const { value, size, disabled, checked, _id, color } = this;
|
|
36
|
-
return (h(Host, { class: classnames("tw-cursor-pointer tw-font-sans tw-mb-1.5 tw-mt-1", {
|
|
37
|
-
"tw-cursor-pointer tw-text-slate-600": !disabled,
|
|
38
|
-
"tw-cursor-not-allowed tw-text-slate-400": disabled,
|
|
39
|
-
"tw-text-1": size === Bcm.Size.small,
|
|
40
|
-
"tw-text-2.5": size === Bcm.Size.medium,
|
|
41
|
-
"tw-text-4": size === Bcm.Size.large,
|
|
42
|
-
}), style: (Generate.getTwColor(color)) }, h("label", { class: classnames("tw-inline-flex tw-flex-row tw-gap-2 tw-mr-2 tw-items-center", disabled ? "tw-cursor-not-allowed" : "tw-cursor-pointer"), htmlFor: _id + '-input' }, h("input", { id: _id + '-input', type: "radio", value: value, checked: checked, disabled: disabled, class: classnames("tw-flex tw-items-center tw-justify-center", "tw-relative tw-appearance-none tw-border tw-border-solid tw-rounded-full tw-cursor-pointer tw-transition tw-ease-in-out ", "tw-m-0", "before:tw-content-[''] before:tw-absolute before:tw-rounded-full", {
|
|
43
|
-
"tw-w-4 tw-h-4 before:tw-w-2.5 before:tw-h-2.5": size === Bcm.Size.medium,
|
|
44
|
-
"tw-w-3.5 tw-h-3.5 before:tw-w-2 before:tw-h-2": size === Bcm.Size.small,
|
|
45
|
-
"tw-w-4.5 tw-h-4.5 before:tw-w-3 before:tw-h-3": size === Bcm.Size.large,
|
|
46
|
-
}, "focus:tw-outline-none focus:tw-shadow-outline",
|
|
47
|
-
// default
|
|
48
|
-
`tw-border-slate-400 tw-bg-slate-50`, `checked:tw-border-default-500`, `checked:before:tw-bg-default-500`,
|
|
49
|
-
// disabled
|
|
50
|
-
`disabled:tw-border-slate-400 disabled:tw-bg-slate-200 disabled:tw-cursor-not-allowed`, `disabled:checked:tw-border-slate-400`, `disabled:checked:before:tw-bg-slate-400`, !disabled && classnames(
|
|
51
|
-
// hover
|
|
52
|
-
`hover:tw-border-default-600`, `hover:checked:tw-border-default-600`, `hover:checked:before:tw-bg-default-600`,
|
|
53
|
-
// focus-visible
|
|
54
|
-
`focus-visible:tw-border-default-800 focus-visible:tw-shadow-sm`, `focus-visible:checked:tw-border-default-800`, `focus-visible:checked:before:tw-bg-default-800`,
|
|
55
|
-
// active
|
|
56
|
-
`active:tw-border-default-700`, `active:checked:tw-border-default-700`, `active:checked:before:tw-bg-default-700`)), onChange: () => this.radioChange.emit(), onFocus: () => this.focus.emit(), onBlur: () => this.blur.emit() }), h("slot", null))));
|
|
57
|
-
}
|
|
58
|
-
get el() { return getElement(this); }
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export { BcmRadio as bcm_radio };
|