bromcom-ui 2.11.1-rc.9-3 → 2.11.2-test.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-00c28e19.entry.js +5 -0
- package/dist/bromcom-ui/p-0533a1b0.entry.js +5 -0
- package/dist/bromcom-ui/{p-2cd6cdee.js → p-09318a64.js} +1 -1
- package/dist/bromcom-ui/p-0a44db90.entry.js +5 -0
- package/dist/bromcom-ui/p-0cd4e8a1.entry.js +5 -0
- package/dist/bromcom-ui/p-195c1819.entry.js +5 -0
- package/dist/bromcom-ui/p-19783732.entry.js +5 -0
- package/dist/bromcom-ui/p-1e5df686.entry.js +5 -0
- package/dist/bromcom-ui/p-207c20c6.entry.js +5 -0
- package/dist/bromcom-ui/p-2270e612.entry.js +5 -0
- package/dist/bromcom-ui/p-34740cfd.entry.js +5 -0
- package/dist/bromcom-ui/p-350719ca.entry.js +5 -0
- package/dist/bromcom-ui/p-385a50b0.entry.js +5 -0
- package/dist/bromcom-ui/p-3b38d001.js +5 -0
- package/dist/bromcom-ui/p-3c04d0f7.entry.js +5 -0
- package/dist/bromcom-ui/p-3e2fb868.entry.js +5 -0
- package/dist/bromcom-ui/p-44faabe9.entry.js +5 -0
- package/dist/bromcom-ui/{p-5a391fcd.js → p-4757735e.js} +1 -1
- package/dist/bromcom-ui/p-4d5eb722.entry.js +5 -0
- package/dist/bromcom-ui/p-50926f4c.entry.js +5 -0
- package/dist/bromcom-ui/p-5196912d.js +5 -0
- package/dist/bromcom-ui/p-543457d1.entry.js +5 -0
- package/dist/bromcom-ui/p-58ca54dc.js +5 -0
- package/dist/bromcom-ui/p-60dd2172.entry.js +5 -0
- package/dist/bromcom-ui/p-6146d180.entry.js +5 -0
- package/dist/bromcom-ui/p-62804f2c.entry.js +5 -0
- package/dist/bromcom-ui/p-666d9883.entry.js +5 -0
- package/dist/bromcom-ui/{p-0eacfbb2.entry.js → p-695d8d34.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14ed8029.entry.js → p-69c64256.entry.js} +1 -1
- package/dist/bromcom-ui/p-6c6beb41.entry.js +5 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/p-6e961eb9.entry.js +7 -0
- package/dist/bromcom-ui/p-70c2412a.entry.js +5 -0
- package/dist/bromcom-ui/p-7175c984.entry.js +5 -0
- package/dist/bromcom-ui/p-7222a8db.entry.js +5 -0
- package/dist/bromcom-ui/p-75e4f799.entry.js +5 -0
- package/dist/bromcom-ui/p-76f6db61.entry.js +5 -0
- package/dist/bromcom-ui/p-79153d4a.entry.js +5 -0
- package/dist/bromcom-ui/p-7b9e8f58.entry.js +5 -0
- package/dist/bromcom-ui/p-80a43d63.js +5 -0
- package/dist/bromcom-ui/p-86384d20.entry.js +5 -0
- package/dist/bromcom-ui/p-894c02ef.entry.js +5 -0
- package/dist/bromcom-ui/p-8b00d553.entry.js +5 -0
- package/dist/bromcom-ui/p-8b3eafe7.entry.js +5 -0
- package/dist/bromcom-ui/p-9098db35.entry.js +5 -0
- package/dist/bromcom-ui/p-a0d6d680.js +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/p-a42fbe84.entry.js +5 -0
- package/dist/bromcom-ui/p-a516049b.entry.js +5 -0
- package/dist/bromcom-ui/p-a62adacd.js +5 -0
- package/dist/bromcom-ui/p-aaf36d5c.entry.js +5 -0
- package/dist/bromcom-ui/p-ab2dcd70.entry.js +5 -0
- package/dist/bromcom-ui/{p-db15dca3.entry.js → p-ad8d9e10.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ede82918.js → p-b12c8235.js} +1 -1
- package/dist/bromcom-ui/p-b2c6659a.entry.js +5 -0
- package/dist/bromcom-ui/p-b381e7f1.js +19 -0
- package/dist/bromcom-ui/{p-90223f9f.entry.js → p-b3f7b64d.entry.js} +1 -1
- package/dist/bromcom-ui/p-b4755ed0.entry.js +5 -0
- package/dist/bromcom-ui/{p-a018f340.entry.js → p-b66e0388.entry.js} +1 -1
- package/dist/bromcom-ui/{p-adcb30bc.entry.js → p-b6e6027b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-35c215f2.entry.js → p-b85fd5f4.entry.js} +1 -1
- package/dist/bromcom-ui/p-c6b86846.entry.js +5 -0
- package/dist/bromcom-ui/p-cc449a87.entry.js +5 -0
- package/dist/bromcom-ui/{p-8b31581f.js → p-ccbb5a6b.js} +1 -1
- package/dist/bromcom-ui/p-d01426b6.entry.js +5 -0
- package/dist/bromcom-ui/p-d43d75d2.entry.js +5 -0
- package/dist/bromcom-ui/p-d51f76b2.js +5 -0
- package/dist/bromcom-ui/p-ef4baf81.entry.js +5 -0
- package/dist/bromcom-ui/p-f2b520a4.entry.js +5 -0
- package/dist/bromcom-ui/{p-5bf1657b.entry.js → p-f2e06aca.entry.js} +1 -1
- package/dist/bromcom-ui/{p-930f3618.js → p-f6169b46.js} +1 -1
- package/dist/bromcom-ui/p-f7e70814.entry.js +5 -0
- package/dist/bromcom-ui/{p-6f37a4d7.entry.js → p-fc27c9ca.entry.js} +1 -1
- package/dist/cjs/Overflow-a821abd0.js +2769 -0
- package/dist/cjs/{bcm-1d1fcf21.js → bcm-489c9b1a.js} +4 -4
- package/dist/cjs/bcm-accordion.cjs.entry.js +74 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -9
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -9
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +329 -0
- package/dist/cjs/bcm-attendance.cjs.entry.js +35 -0
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +92 -0
- package/dist/cjs/bcm-button_15.cjs.entry.js +18623 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -10
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +415 -0
- package/dist/cjs/{bcm-checkbox-lite_8.cjs.entry.js → bcm-checkbox-lite_9.cjs.entry.js} +26 -6
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +194 -0
- package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -10
- package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +76 -0
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +95 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +116 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -11
- package/dist/cjs/bcm-item.cjs.entry.js +72 -0
- package/dist/cjs/bcm-items.cjs.entry.js +49 -0
- package/dist/cjs/bcm-link.cjs.entry.js +3 -3
- package/dist/cjs/bcm-list_3.cjs.entry.js +1970 -0
- package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
- 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 +7 -8
- package/dist/cjs/bcm-modal.cjs.entry.js +157 -0
- package/dist/cjs/bcm-number-input.cjs.entry.js +9 -10
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +115 -0
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +101 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +9 -10
- package/dist/cjs/bcm-progress.cjs.entry.js +162 -0
- package/dist/cjs/bcm-radio-group.cjs.entry.js +160 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +64 -0
- package/dist/cjs/bcm-range.cjs.entry.js +6 -6
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +64 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -7
- package/dist/cjs/bcm-step.cjs.entry.js +89 -0
- package/dist/cjs/bcm-stepper.cjs.entry.js +239 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +151 -0
- package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
- package/dist/cjs/bcm-table.cjs.entry.js +6 -7
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-text.cjs.entry.js +49 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +163 -0
- package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-086e9cac.js} +2 -2
- package/dist/cjs/{floating-ui-5b396838.js → floating-ui-21890d11.js} +2 -2
- package/dist/cjs/{generate-f73a098d.js → generate-64f84d95.js} +1 -1
- package/dist/cjs/{global-baf04c81.js → global-895f2946.js} +1 -1
- package/dist/cjs/input-template-9c106337.js +92 -0
- package/dist/cjs/json-parse-decarator-9db107be.js +40 -0
- package/dist/cjs/{label-template-e83447b5.js → label-template-94b3d775.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-0543a62e.js → number-helper-f9323233.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-e717a31f.js → package-992c024f.js} +1 -1
- package/dist/cjs/{popover-placement-02e6101b.js → popover-placement-e7d6eabd.js} +1 -1
- package/dist/cjs/{slot-template-df7b5b59.js → slot-template-c8e2816c.js} +1 -1
- package/dist/cjs/stepper-states-b3496b3f.js +85 -0
- package/dist/cjs/{string-helper-9cdfb273.js → string-helper-f9184277.js} +2 -2
- package/dist/cjs/tooltip-helper-cb99c02e.js +157 -0
- package/dist/cjs/{validators-77768582.js → validators-abb0434a.js} +6 -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/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/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 -3
- package/dist/collection/components/organism/list/list.js +2 -2
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/date.js +1 -1
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +40 -5
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +11 -2
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +0 -1
- 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 +9 -3
- package/dist/components/{raf.js → Overflow.js} +692 -69
- 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-date.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-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/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/list.js +13 -7
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/rc-overflow.js +1 -593
- package/dist/components/rc-picker.js +8620 -8025
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/Overflow-2cffcda0.js +2750 -0
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion.entry.js +70 -0
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-attendance-actions-comment.entry.js +5 -6
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +5 -6
- package/dist/esm/bcm-attendance-actions.entry.js +325 -0
- package/dist/esm/bcm-attendance.entry.js +31 -0
- package/dist/esm/bcm-avatar_2.entry.js +204 -0
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +88 -0
- package/dist/esm/bcm-button_15.entry.js +18605 -0
- package/dist/esm/bcm-caption.entry.js +6 -7
- package/dist/esm/bcm-card.entry.js +2 -2
- package/dist/esm/bcm-checkbox-group.entry.js +411 -0
- package/dist/esm/{bcm-checkbox-lite_8.entry.js → bcm-checkbox-lite_9.entry.js} +24 -5
- package/dist/esm/bcm-checkbox_2.entry.js +189 -0
- package/dist/esm/bcm-chip-group.entry.js +7 -8
- package/dist/esm/bcm-chip.entry.js +87 -0
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +72 -0
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +91 -0
- package/dist/esm/bcm-dropdown.entry.js +115 -0
- package/dist/esm/bcm-error-layout.entry.js +1 -1
- package/dist/esm/bcm-expansion-panel.entry.js +112 -0
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +7 -8
- package/dist/esm/bcm-item.entry.js +68 -0
- package/dist/esm/bcm-items.entry.js +45 -0
- package/dist/esm/bcm-link.entry.js +1 -1
- package/dist/esm/bcm-list_3.entry.js +1964 -0
- package/dist/esm/bcm-menu.entry.js +146 -0
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -5
- package/dist/esm/bcm-modal-2-header.entry.js +4 -5
- package/dist/esm/bcm-modal-2.entry.js +5 -6
- package/dist/esm/bcm-modal.entry.js +153 -0
- package/dist/esm/bcm-number-input.entry.js +6 -7
- package/dist/esm/bcm-popconfirm-box.entry.js +111 -0
- package/dist/esm/bcm-popconfirm.entry.js +97 -0
- package/dist/esm/bcm-popover.entry.js +5 -6
- package/dist/esm/bcm-progress.entry.js +158 -0
- package/dist/esm/bcm-radio-group.entry.js +156 -0
- package/dist/esm/bcm-radio.entry.js +60 -0
- package/dist/esm/bcm-range.entry.js +4 -4
- package/dist/esm/bcm-shortcut.entry.js +60 -0
- package/dist/esm/bcm-skeleton.entry.js +4 -5
- package/dist/esm/bcm-step.entry.js +85 -0
- package/dist/esm/bcm-stepper.entry.js +235 -0
- package/dist/esm/bcm-switch.entry.js +147 -0
- package/dist/esm/bcm-tab-group.entry.js +205 -0
- package/dist/esm/bcm-tab-item-header.entry.js +54 -0
- package/dist/esm/bcm-tab-item.entry.js +86 -0
- package/dist/esm/bcm-table.entry.js +4 -5
- package/dist/esm/bcm-tag.entry.js +4 -4
- package/dist/esm/bcm-text.entry.js +45 -0
- package/dist/esm/bcm-textarea.entry.js +159 -0
- package/dist/esm/bcm-toast.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-d7953d13.js → caption-template-fd7738eb.js} +2 -2
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-c2c0b02e.js → generate-56856b63.js} +1 -1
- package/dist/esm/{global-2473677b.js → global-c0272f2f.js} +1 -1
- package/dist/esm/input-template-19a34625.js +90 -0
- package/dist/esm/json-parse-decarator-c9a132f1.js +38 -0
- package/dist/esm/{label-template-a26f76c0.js → label-template-374fbdcd.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-75447fa6.js → number-helper-0501b786.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +3 -3
- package/dist/esm/old-bcm-popover.entry.js +3 -3
- package/dist/esm/{package-28dc6847.js → package-a9b6e2c6.js} +1 -1
- package/dist/esm/stepper-states-a4b1efb3.js +83 -0
- package/dist/esm/string-helper-3592bdc2.js +1 -1
- package/dist/esm/tooltip-helper-de7eb9a3.js +155 -0
- package/dist/esm/{validators-5a383988.js → validators-be951131.js} +6 -2
- package/dist/types/templates/list-template.d.ts +0 -1
- package/package.json +2 -2
- package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
- package/dist/bromcom-ui/p-178fa936.entry.js +0 -5
- package/dist/bromcom-ui/p-3361f6c9.entry.js +0 -5
- package/dist/bromcom-ui/p-350dbff0.entry.js +0 -5
- package/dist/bromcom-ui/p-3cdfd8eb.entry.js +0 -5
- package/dist/bromcom-ui/p-5a22b74b.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-627c7769.entry.js +0 -5
- package/dist/bromcom-ui/p-64f21481.entry.js +0 -20
- package/dist/bromcom-ui/p-70253803.entry.js +0 -5
- package/dist/bromcom-ui/p-7fd22a35.entry.js +0 -5
- package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
- package/dist/bromcom-ui/p-a4b675ef.entry.js +0 -5
- package/dist/bromcom-ui/p-abd2f9ff.entry.js +0 -5
- package/dist/bromcom-ui/p-bb46d881.entry.js +0 -5
- package/dist/bromcom-ui/p-bca0ff0a.entry.js +0 -5
- package/dist/bromcom-ui/p-c10b07cc.entry.js +0 -5
- package/dist/bromcom-ui/p-c7030364.entry.js +0 -5
- package/dist/bromcom-ui/p-dc607ae4.entry.js +0 -5
- package/dist/bromcom-ui/p-de0b0192.entry.js +0 -5
- package/dist/bromcom-ui/p-e10780ed.entry.js +0 -5
- package/dist/bromcom-ui/p-e497cf5d.entry.js +0 -5
- package/dist/bromcom-ui/p-e93d6619.js +0 -5
- package/dist/bromcom-ui/p-ebeb9689.entry.js +0 -5
- package/dist/bromcom-ui/p-eca0acda.js +0 -5
- package/dist/bromcom-ui/p-fba1682e.entry.js +0 -5
- package/dist/cjs/bcm-accordion_46.cjs.entry.js +0 -24086
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1450
- 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-time-picker.cjs.entry.js +0 -150
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/esm/bcm-accordion_46.entry.js +0 -24037
- package/dist/esm/bcm-date-picker.entry.js +0 -178
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1446
- package/dist/esm/bcm-form-2.entry.js +0 -208
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-time-picker.entry.js +0 -146
- package/dist/esm/datetime-helper-df25808a.js +0 -9
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
+
const isLoadDecorator = require('./is-load-decorator-15036f37.js');
|
|
12
|
+
const jsonParseDecarator = require('./json-parse-decarator-9db107be.js');
|
|
13
|
+
const generate = require('./generate-64f84d95.js');
|
|
14
|
+
const bcm = require('./bcm-489c9b1a.js');
|
|
15
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
16
|
+
require('./package-992c024f.js');
|
|
17
|
+
require('./colors-078851ec.js');
|
|
18
|
+
|
|
19
|
+
const dropdownCss = "@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-dropdown{width:fit-content;display:inline-flex;flex-direction:row}.bcm-dropdown.hidden{display:none}.bcm-dropdown.no-style{cursor:pointer}.bcm-dropdown.full-width{width:100%}.bcm-dropdown.full-width .bcm-button__container-text{flex:1;justify-content:space-between}.bcm-dropdown__type-split .main-button .bcm-button__container{border-top-right-radius:0;border-bottom-right-radius:0}.bcm-dropdown__type-split .split-button .bcm-button__container{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:1px;min-width:auto}.bcm-dropdown__icon{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;transform:rotate(0deg);transition:transform 0.2s ease;padding-top:2px}.bcm-dropdown__icon--open{transform:rotate(180deg)}";
|
|
20
|
+
|
|
21
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
24
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
25
|
+
else
|
|
26
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
27
|
+
if (d = decorators[i])
|
|
28
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
+
};
|
|
31
|
+
const BcmDropdown = class {
|
|
32
|
+
constructor(hostRef) {
|
|
33
|
+
index.registerInstance(this, hostRef);
|
|
34
|
+
this.bcmClick = index.createEvent(this, "bcm-click", 7);
|
|
35
|
+
this.bcmDropdownChange = index.createEvent(this, "bcm-dropdown-change", 7);
|
|
36
|
+
this.isOpen = undefined;
|
|
37
|
+
this._id = generate.Generate.UID();
|
|
38
|
+
this.menuId = generate.Generate.UID();
|
|
39
|
+
this.hidden = false;
|
|
40
|
+
this.type = 'dropdown';
|
|
41
|
+
this.size = bcm.Bcm.Size.medium;
|
|
42
|
+
this.disabled = false;
|
|
43
|
+
this.kind = bcm.Bcm.Kind.solid;
|
|
44
|
+
this.icon = undefined;
|
|
45
|
+
this.href = undefined;
|
|
46
|
+
this.target = undefined;
|
|
47
|
+
this.value = undefined;
|
|
48
|
+
this.noStyle = false;
|
|
49
|
+
this.dropdownIcon = 'fas fa-angle-down';
|
|
50
|
+
this.linkedComponent = undefined;
|
|
51
|
+
this.loading = false;
|
|
52
|
+
this.variant = undefined;
|
|
53
|
+
this.dataDismiss = false;
|
|
54
|
+
this.fullWidth = false;
|
|
55
|
+
this.iconPosition = bcm.Bcm.IconPosition.prefix;
|
|
56
|
+
this.placement = undefined;
|
|
57
|
+
this.height = undefined;
|
|
58
|
+
this.maxHeight = '500px';
|
|
59
|
+
this.minHeight = '50px';
|
|
60
|
+
this.stopDeepClean = false;
|
|
61
|
+
this.selectable = true;
|
|
62
|
+
this.gap = '4px';
|
|
63
|
+
this.color = undefined;
|
|
64
|
+
this.activeItem = null;
|
|
65
|
+
this.data = [];
|
|
66
|
+
}
|
|
67
|
+
async dataChanged(newValue) {
|
|
68
|
+
if (newValue) {
|
|
69
|
+
this.data = newValue;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
async setActive(id = null) {
|
|
73
|
+
var _a, _b;
|
|
74
|
+
(_b = (_a = document
|
|
75
|
+
.getElementById(`${this.menuId}`)) === null || _a === void 0 ? void 0 : _a.querySelectorAll('bcm-menu')) === null || _b === void 0 ? void 0 : _b.forEach(item => {
|
|
76
|
+
item.setActive(id);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
async getActive() {
|
|
80
|
+
return this.activeItem;
|
|
81
|
+
}
|
|
82
|
+
handleSlotItems({ detail }) {
|
|
83
|
+
this.data = detail;
|
|
84
|
+
}
|
|
85
|
+
setActiveAttribute(e) {
|
|
86
|
+
if (e.detail) {
|
|
87
|
+
this.bcmDropdownChange.emit(e.detail);
|
|
88
|
+
this.activeItem = e.detail;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
;
|
|
92
|
+
render() {
|
|
93
|
+
const { size, kind, disabled, icon, color, href, target, loading, type, variant, fullWidth, isOpen } = this;
|
|
94
|
+
const hostClasses = index$1.classnames('bcm-dropdown', 'bcm-dropdown__type-' + type, {
|
|
95
|
+
'full-width': fullWidth,
|
|
96
|
+
'no-style': this.noStyle,
|
|
97
|
+
'hidden': this.hidden || this.linkedComponent,
|
|
98
|
+
});
|
|
99
|
+
const attributes = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (disabled && { disabled })), (loading && { loading })), (kind && { kind })), (size && { size })), (variant && { variant })), (color && { color })), (this.menuId && { 'menu-id': this.menuId }));
|
|
100
|
+
const iconClasses = index$1.classnames('bcm-dropdown__icon', {
|
|
101
|
+
'bcm-dropdown__icon--open': isOpen,
|
|
102
|
+
});
|
|
103
|
+
const dropdownIcon = (index.h("span", { class: iconClasses }, index.h("bcm-icon", { icon: this.dropdownIcon })));
|
|
104
|
+
return (index.h(index.Host, { class: hostClasses }, index.h("span", { hidden: true }, index.h("slot", null)), this.noStyle && index.h("slot", null), !this.noStyle && (index.h("bcm-button", Object.assign({ class: "main-button", id: `${this._id}-button` }, attributes, (icon && { icon }), (href && type === 'split' && { href }), (target && type === 'split' && { target }), (fullWidth && { fullWidth })), index.h("slot", null), type === 'dropdown' && dropdownIcon)), !this.noStyle && type === 'split' && (index.h("bcm-button", Object.assign({ id: `${this._id}-button-split`, class: "split-button" }, attributes), dropdownIcon)), index.h("bcm-linked", { id: `${this.menuId}`, "target-id": `${this._id}-button${type === 'split' ? '-split' : ''}`, placement: this.placement || (type === 'dropdown' ? 'bottom-start' : 'bottom-end'), "max-height": this.maxHeight, "min-height": this.minHeight, height: this.height, "on-bcm-open": e => { var _a; return ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.id) == this.menuId && (this.isOpen = e.detail); } }, this.data && this.data.length > 0 && index.h("bcm-menu", { data: this.data, selectable: this.selectable, "on-bcm-click": e => this.bcmClick.emit(e.detail), "onBcm-menu-change": e => this.setActiveAttribute(e), gap: this.gap, dropdown: true }), index.h("slot", { name: "content" }))));
|
|
105
|
+
}
|
|
106
|
+
get el() { return index.getElement(this); }
|
|
107
|
+
static get watchers() { return {
|
|
108
|
+
"data": ["dataChanged"]
|
|
109
|
+
}; }
|
|
110
|
+
};
|
|
111
|
+
__decorate([
|
|
112
|
+
isLoadDecorator.IsLoad()
|
|
113
|
+
], BcmDropdown.prototype, "el", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
jsonParseDecarator.JsonParse('data', true)
|
|
116
|
+
], BcmDropdown.prototype, "dataChanged", null);
|
|
117
|
+
BcmDropdown.style = dropdownCss;
|
|
118
|
+
|
|
119
|
+
exports.bcm_dropdown = BcmDropdown;
|
|
@@ -52,7 +52,7 @@ const BcmErrorLayout = class {
|
|
|
52
52
|
const { itemsProp } = this;
|
|
53
53
|
const classes = index$1.classnames('error-layout', this.size);
|
|
54
54
|
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
|
|
55
|
-
return (index.h(index.Host, { class: hostClasses }, itemsProp.length > 0 && (index.h("div", { class: classes },
|
|
55
|
+
return (index.h(index.Host, { class: hostClasses }, itemsProp.length > 0 && (index.h("div", { class: classes }, this.itemsProp.map((item) => index.h("li", null, index.h("span", null, item)))))));
|
|
56
56
|
}
|
|
57
57
|
get el() { return index.getElement(this); }
|
|
58
58
|
static get watchers() { return {
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const generate = require('./generate-64f84d95.js');
|
|
11
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
12
|
+
const stringHelper = require('./string-helper-f9184277.js');
|
|
13
|
+
const colorHelper = require('./color-helper-c3a819ea.js');
|
|
14
|
+
require('./package-992c024f.js');
|
|
15
|
+
require('./colors-078851ec.js');
|
|
16
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
17
|
+
require('./bcm-489c9b1a.js');
|
|
18
|
+
require('./colors-56282b00.js');
|
|
19
|
+
require('./utils-fc077139.js');
|
|
20
|
+
|
|
21
|
+
const expansionPanelCss = "@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-expansion-panel{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;border:1px solid var(--bcm-new-ds-color-slate-300);box-sizing:border-box}.bcm-expansion-panel+.bcm-expansion-panel{margin-top:4px}.bcm-expansion-panel__header{display:flex;align-items:center;justify-content:flex-start;user-select:none;min-height:50px;border-radius:8px;padding:4px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-expansion-panel__header-content{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px}.bcm-expansion-panel__header:hover{cursor:pointer}.bcm-expansion-panel__header-title{order:1;user-select:none;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:4px}.bcm-expansion-panel__header-title-description{margin-left:calc(4px / 2);color:var(--bcm-new-ds-color-slate-500);font-size:12px;line-height:calc(12px + 8px)}.bcm-expansion-panel__header-tooltip{line-height:1;color:var(--bcm-new-ds-color-slate-800)}.bcm-expansion-panel__header-toggle{height:100%;order:0;width:20px;display:flex;align-items:center;justify-content:center;transform:rotate(0deg);transition:transform 0.2s ease-in-out;font-size:12px}.bcm-expansion-panel__header-extra{display:none}.bcm-expansion-panel__header-extra:not(:empty){cursor:default;display:flex;align-items:center;order:5;line-height:1;padding:0 8px}.bcm-expansion-panel__header-extra .bcm-expansion-panel__extra-content{display:flex;align-items:center}.bcm-expansion-panel__body{display:none;padding:12px 24px}.bcm-expansion-panel--icon-right .bcm-expansion-panel__header{justify-content:space-between;padding-left:24px}.bcm-expansion-panel--icon-right .bcm-expansion-panel__header-toggle{order:6}.bcm-expansion-panel--invalid .bcm-expansion-panel__header-toggle,.bcm-expansion-panel--invalid .bcm-expansion-panel__header-content{color:var(--bcm-new-ds-color-red-500)}.bcm-expansion-panel--expanded{border-bottom:1px solid var(--bcm-color-grey-5)}.bcm-expansion-panel--expanded .bcm-expansion-panel__header{border-radius:8px 8px 0 0}.bcm-expansion-panel--expanded .bcm-expansion-panel__header-toggle{transform:rotate(180deg)}.bcm-expansion-panel--expanded .bcm-expansion-panel__body{display:block}";
|
|
22
|
+
|
|
23
|
+
const BcmExpansionPanel = class {
|
|
24
|
+
constructor(hostRef) {
|
|
25
|
+
index.registerInstance(this, hostRef);
|
|
26
|
+
this.bcmOpen = index.createEvent(this, "bcm-open", 7);
|
|
27
|
+
this.bcmClose = index.createEvent(this, "bcm-close", 7);
|
|
28
|
+
this.bcmExtra = index.createEvent(this, "bcm-extra", 7);
|
|
29
|
+
this._id = generate.Generate.UID();
|
|
30
|
+
this.expanded = false;
|
|
31
|
+
this.disabled = false;
|
|
32
|
+
this.hidden = false;
|
|
33
|
+
this.valid = true;
|
|
34
|
+
this.hideToggle = false;
|
|
35
|
+
this.expandIconPosition = 'right';
|
|
36
|
+
this.headerColor = 'white';
|
|
37
|
+
this.tooltip = undefined;
|
|
38
|
+
this.tooltipDefaultValue = {
|
|
39
|
+
message: '',
|
|
40
|
+
placement: 'top',
|
|
41
|
+
trigger: 'hover',
|
|
42
|
+
icon: 'fas fa-question-circle',
|
|
43
|
+
color: 'grey-8',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
componentWillRender() {
|
|
47
|
+
this.restoreSlots();
|
|
48
|
+
}
|
|
49
|
+
componentDidLoad() {
|
|
50
|
+
this.checkExpanded();
|
|
51
|
+
}
|
|
52
|
+
createTooltip() {
|
|
53
|
+
let tool;
|
|
54
|
+
if (this.tooltip) {
|
|
55
|
+
const { tooltip } = this;
|
|
56
|
+
try {
|
|
57
|
+
tool = JSON.parse(tooltip);
|
|
58
|
+
tool = Object.assign(Object.assign({}, this.tooltipDefaultValue), tool);
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
tool = Object.assign(Object.assign({}, this.tooltipDefaultValue), { message: tooltip });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return tool;
|
|
65
|
+
}
|
|
66
|
+
checkExpanded() {
|
|
67
|
+
this.expanded = !!this.el['expanded'];
|
|
68
|
+
}
|
|
69
|
+
restoreSlots() {
|
|
70
|
+
const slots = this.el.querySelectorAll('bcm-expansion-panel-header, bcm-expansion-panel-description, bcm-expansion-panel-extra');
|
|
71
|
+
if (slots) {
|
|
72
|
+
slots.forEach(element => {
|
|
73
|
+
let slotName = stringHelper.StringHelper.lowercase(stringHelper.StringHelper.split(element.nodeName, '-').pop());
|
|
74
|
+
element.slot = slotName;
|
|
75
|
+
element.classList.add(`bcm-expansion-panel__${slotName}-content`);
|
|
76
|
+
let color = element.getAttribute('color');
|
|
77
|
+
if (color) {
|
|
78
|
+
color = color == 'white' ? color : color + '-50';
|
|
79
|
+
this.headerColor = color;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
toggle() {
|
|
85
|
+
if (this.disabled) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
this.expanded = !this.expanded;
|
|
89
|
+
if (this.expanded) {
|
|
90
|
+
this.bcmOpen.emit(this._id);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
this.bcmClose.emit(this._id);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
clickExtra(e) {
|
|
97
|
+
e.stopPropagation();
|
|
98
|
+
this.bcmExtra.emit(e);
|
|
99
|
+
}
|
|
100
|
+
render() {
|
|
101
|
+
const { _id, expanded, disabled, hidden, hideToggle, tooltip, valid } = this;
|
|
102
|
+
const { message, placement, icon, trigger, color } = tooltip ? this.createTooltip() : {};
|
|
103
|
+
const hostClasses = index$1.classnames('bcm-expansion-panel', valid ? 'bcm-expansion-panel--valid' : 'bcm-expansion-panel--invalid', {
|
|
104
|
+
'bcm-expansion-panel--expanded': expanded,
|
|
105
|
+
'bcm-expansion-panel--disabled': disabled,
|
|
106
|
+
'bcm-expansion-panel--hide-toggle': hideToggle,
|
|
107
|
+
'bcm-expansion-panel--icon-right': this.expandIconPosition === 'right',
|
|
108
|
+
hidden,
|
|
109
|
+
});
|
|
110
|
+
return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: "bcm-expansion-panel__header", onClick: () => this.toggle(), style: { 'background-color': colorHelper.ColorHelper.dsColor(this.headerColor) } }, index.h("div", { class: "bcm-expansion-panel__header-title" }, index.h("span", { id: _id + '-header' }, index.h("slot", { name: "header" })), tooltip && (index.h("span", { class: "bcm-expansion-panel__header-tooltip", style: Object.assign({}, color && { color: colorHelper.ColorHelper.convertColorToHex(color) }) }, index.h("bcm-tooltip", { message: message, placement: placement, trigger: trigger }, index.h("bcm-icon", { color: color, icon: icon })))), index.h("span", { id: _id + '-description', class: "bcm-expansion-panel__header-title-description" }, index.h("slot", { name: "description" }))), index.h("span", { id: _id + '-extra', class: "bcm-expansion-panel__header-extra", onClick: (e) => this.clickExtra(e) }, index.h("slot", { name: "extra" })), !hideToggle && (index.h("div", { class: "bcm-expansion-panel__header-toggle" }, index.h("bcm-icon", { icon: "far fa-chevron-down" })))), index.h("div", { class: "bcm-expansion-panel__body", id: _id + '-body' }, index.h("slot", null))));
|
|
111
|
+
}
|
|
112
|
+
get el() { return index.getElement(this); }
|
|
113
|
+
};
|
|
114
|
+
BcmExpansionPanel.style = expansionPanelCss;
|
|
115
|
+
|
|
116
|
+
exports.bcm_expansion_panel = BcmExpansionPanel;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-
|
|
10
|
+
const generate = require('./generate-64f84d95.js');
|
|
11
11
|
const index$1 = require('./index-95ae50d0.js');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-992c024f.js');
|
|
13
13
|
require('./colors-078851ec.js');
|
|
14
14
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
15
15
|
|
|
@@ -8,14 +8,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index$1 = require('./index-c591ecec.js');
|
|
10
10
|
require('./color-helper-c3a819ea.js');
|
|
11
|
-
require('./
|
|
12
|
-
const generate = require('./generate-
|
|
13
|
-
require('./number-helper-
|
|
14
|
-
require('./string-helper-
|
|
15
|
-
require('./validators-77768582.js');
|
|
11
|
+
require('./validators-abb0434a.js');
|
|
12
|
+
const generate = require('./generate-64f84d95.js');
|
|
13
|
+
require('./number-helper-f9323233.js');
|
|
14
|
+
require('./string-helper-f9184277.js');
|
|
16
15
|
require('./element-dragger-a8562f82.js');
|
|
17
|
-
const bcm = require('./bcm-
|
|
18
|
-
const captionTemplate = require('./caption-template-
|
|
16
|
+
const bcm = require('./bcm-489c9b1a.js');
|
|
17
|
+
const captionTemplate = require('./caption-template-086e9cac.js');
|
|
19
18
|
const index$2 = require('./index-95ae50d0.js');
|
|
20
19
|
require('./types-cc4adee7.js');
|
|
21
20
|
require('./types-7523fd99.js');
|
|
@@ -24,7 +23,7 @@ require('./colors-56282b00.js');
|
|
|
24
23
|
require('./utils-fc077139.js');
|
|
25
24
|
require('./colors-078851ec.js');
|
|
26
25
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
27
|
-
require('./package-
|
|
26
|
+
require('./package-992c024f.js');
|
|
28
27
|
|
|
29
28
|
const inputDropdownStyle = index.ce({
|
|
30
29
|
slots: {
|
|
@@ -114,7 +113,7 @@ const BcmInputDropdown = class {
|
|
|
114
113
|
this.defaultValue = {};
|
|
115
114
|
this.lateKeys = "L";
|
|
116
115
|
this.maxCharacterLimit = 1;
|
|
117
|
-
this.size = bcm.Bcm.Size.medium;
|
|
116
|
+
this.size = bcm.Bcm$1.Size.medium;
|
|
118
117
|
this.label = undefined;
|
|
119
118
|
this.placeholder = undefined;
|
|
120
119
|
this.name = undefined;
|
|
@@ -137,7 +136,7 @@ const BcmInputDropdown = class {
|
|
|
137
136
|
];
|
|
138
137
|
this.caption = undefined;
|
|
139
138
|
this.noCaption = false;
|
|
140
|
-
this.captionType = bcm.Bcm.Status.default;
|
|
139
|
+
this.captionType = bcm.Bcm$1.Status.default;
|
|
141
140
|
this.captionError = undefined;
|
|
142
141
|
this.customErrorMessage = undefined;
|
|
143
142
|
this.captionCache = undefined;
|
|
@@ -288,7 +287,7 @@ const BcmInputDropdown = class {
|
|
|
288
287
|
};
|
|
289
288
|
const CommentTemplate = () => {
|
|
290
289
|
var _a, _b, _c;
|
|
291
|
-
return (index$1.h(index$1.Fragment, null, this.isOpenMenu ? (index$1.h("div", { class: commentArea() }, this.isLate ? (index$1.h(index$1.Fragment, null, index$1.h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, autocomplete: false, min: 0, max: 200, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", customErrorMessage: "Max limit 200 mins", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, index$1.h("i", { slot: "prefix", class: "far fa-clock" })))) : null, index$1.h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), index$1.h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, index$1.h("bcm-button", {
|
|
290
|
+
return (index$1.h(index$1.Fragment, null, this.isOpenMenu ? (index$1.h("div", { class: commentArea() }, this.isLate ? (index$1.h(index$1.Fragment, null, index$1.h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, autocomplete: false, min: 0, max: 200, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", customErrorMessage: "Max limit 200 mins", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, index$1.h("i", { slot: "prefix", class: "far fa-clock" })))) : null, index$1.h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), index$1.h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, index$1.h("bcm-button", { icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), index$1.h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
292
291
|
};
|
|
293
292
|
return (index$1.h(index$1.Host, { class: base() }, label && index$1.h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), index$1.h("div", { class: content() }, index$1.h("div", { class: inputArea() }, index$1.h("input", { id: _id + "-dropdown-input", class: input(), style: { color: (_a = this.value) === null || _a === void 0 ? void 0 : _a.color }, type: "text", tabIndex: -1, placeholder: placeholder, value: (_b = this.value) === null || _b === void 0 ? void 0 : _b.key, disabled: disabled, required: required, autoComplete: "off", readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el) }), index$1.h("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, index$1.h("i", { class: "fas fa-chevron-down" })), index$1.h("bcm-linked", { "onBcm-open": ({ detail }) => { var _a; return detail && ((_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide()); }, class: "tw-mt-1", id: `i-dropdown-menu-${_id}`, "target-id": `i-dropdown-button-${_id}`, placement: "bottom-start" }, index$1.h(MenuTemplates, null)), index$1.h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, index$1.h(CommentTemplate, null))), !this.hideComment ? (index$1.h("span", { onClick: () => {
|
|
294
293
|
var _a, _b;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const generate = require('./generate-64f84d95.js');
|
|
11
|
+
const bcm = require('./bcm-489c9b1a.js');
|
|
12
|
+
const index$1 = require('./index-95ae50d0.js');
|
|
13
|
+
const colorHelper = require('./color-helper-c3a819ea.js');
|
|
14
|
+
require('./package-992c024f.js');
|
|
15
|
+
require('./colors-078851ec.js');
|
|
16
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
17
|
+
require('./colors-56282b00.js');
|
|
18
|
+
require('./utils-fc077139.js');
|
|
19
|
+
|
|
20
|
+
const itemCss = "@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-item{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;--bcm-item-color-default:var(--bcm-new-ds-color-white);--bcm-item-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-item-color-hover:var(--bcm-new-ds-color-white);--bcm-item-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-item-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-item-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-item-color-active:var(--bcm-new-ds-color-white);--bcm-item-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-item-color-disabled:var(--bcm-new-ds-color-white);--bcm-item-background-color-disabled:var(--bcm-new-ds-color-slate-400);font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;border-radius:4px;outline:none;color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item-size-small{font-size:12px;line-height:calc(12px + 8px);padding:2px 12px;min-height:calc(calc(12px + 8px) + calc(2px) * 2)}.bcm-item-size-medium{font-size:14px;line-height:calc(14px + 8px);padding:5px 12px;min-height:calc(calc(14px + 8px) + calc(5px) * 2)}.bcm-item-size-large{font-size:16px;line-height:calc(16px + 8px);padding:8px 12px;min-height:calc(calc(16px + 8px) + calc(8px) * 2)}.bcm-item:default{color:var(--bcm-item-color-default);background-color:var(--bcm-item-background-color-default)}.bcm-item:hover{color:var(--bcm-item-color-hover);background-color:var(--bcm-item-background-color-hover)}.bcm-item:focus-visible{color:var(--bcm-item-color-focus-visible);background-color:var(--bcm-item-background-color-focus-visible)}.bcm-item:active{color:var(--bcm-item-color-active);background-color:var(--bcm-item-background-color-active)}.bcm-item:disabled{color:var(--bcm-item-color-disabled);background-color:var(--bcm-item-background-color-disabled)}.bcm-item:not(.static):hover{cursor:pointer}";
|
|
21
|
+
|
|
22
|
+
const BcmItem = class {
|
|
23
|
+
constructor(hostRef) {
|
|
24
|
+
index.registerInstance(this, hostRef);
|
|
25
|
+
this._id = generate.Generate.UID();
|
|
26
|
+
this.size = bcm.Bcm.Size.medium;
|
|
27
|
+
this.color = undefined;
|
|
28
|
+
this.static = false;
|
|
29
|
+
}
|
|
30
|
+
setColor(color = this.color) {
|
|
31
|
+
if (!color)
|
|
32
|
+
return;
|
|
33
|
+
const prefix = `--bcm-item`;
|
|
34
|
+
if (color == "white") {
|
|
35
|
+
return {
|
|
36
|
+
[`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('slate-600'),
|
|
37
|
+
[`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('slate-600'),
|
|
38
|
+
[`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-600'),
|
|
39
|
+
[`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('slate-600'),
|
|
40
|
+
[`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
|
|
41
|
+
[`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'white'),
|
|
42
|
+
[`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-100'),
|
|
43
|
+
[`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-200'),
|
|
44
|
+
[`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(this.static ? 'white' : 'slate-300'),
|
|
45
|
+
[`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
[`${prefix}-color-default`]: colorHelper.ColorHelper.dsColor('white'),
|
|
50
|
+
[`${prefix}-color-hover`]: colorHelper.ColorHelper.dsColor('white'),
|
|
51
|
+
[`${prefix}-color-focus-visible`]: colorHelper.ColorHelper.dsColor('white'),
|
|
52
|
+
[`${prefix}-color-active`]: colorHelper.ColorHelper.dsColor('white'),
|
|
53
|
+
[`${prefix}-color-disabled`]: colorHelper.ColorHelper.dsColor('white'),
|
|
54
|
+
[`${prefix}-background-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
|
|
55
|
+
[`${prefix}-background-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
|
|
56
|
+
[`${prefix}-background-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-700'),
|
|
57
|
+
[`${prefix}-background-color-active`]: colorHelper.ColorHelper.dsColor(color + '-800'),
|
|
58
|
+
[`${prefix}-background-color-disabled`]: colorHelper.ColorHelper.dsColor('slate-400'),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
disconnectedCallback() {
|
|
62
|
+
// this.el.remove()
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
const hostClasses = index$1.classnames('bcm-item', `bcm-item-size-${this.size}`);
|
|
66
|
+
return (index.h(index.Host, { class: hostClasses, style: this.setColor() }, index.h("slot", null)));
|
|
67
|
+
}
|
|
68
|
+
get el() { return index.getElement(this); }
|
|
69
|
+
};
|
|
70
|
+
BcmItem.style = itemCss;
|
|
71
|
+
|
|
72
|
+
exports.bcm_item = BcmItem;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-c591ecec.js');
|
|
10
|
+
const generate = require('./generate-64f84d95.js');
|
|
11
|
+
const stringHelper = require('./string-helper-f9184277.js');
|
|
12
|
+
require('./package-992c024f.js');
|
|
13
|
+
require('./colors-078851ec.js');
|
|
14
|
+
require('./_commonjsHelpers-ed84c3ca.js');
|
|
15
|
+
require('./bcm-489c9b1a.js');
|
|
16
|
+
|
|
17
|
+
const BcmItems = class {
|
|
18
|
+
constructor(hostRef) {
|
|
19
|
+
index.registerInstance(this, hostRef);
|
|
20
|
+
this.bcmItems = index.createEvent(this, "bcm-items", 7);
|
|
21
|
+
this._id = generate.Generate.UID();
|
|
22
|
+
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
if (this.el.children && this.el.children.length > 0) {
|
|
25
|
+
let slots = this.nestedItems(this.el);
|
|
26
|
+
this.bcmItems.emit(slots);
|
|
27
|
+
this.el.remove();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
mapItems(element) {
|
|
31
|
+
var _a;
|
|
32
|
+
const item = element;
|
|
33
|
+
const textContent = (_a = item === null || item === void 0 ? void 0 : item.innerHTML) === null || _a === void 0 ? void 0 : _a.replace(/<bcm-item>.*<\/bcm-item>/g, '').replace(/<bcm-item .*>.*<\/bcm-item>/g, '').replace(/<!--(.|\s)*?-->/g, '').trim();
|
|
34
|
+
const checkAttr = (attr) => stringHelper.StringHelper.elementBooleanCheck(element.getAttribute(attr));
|
|
35
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ id: element.getAttribute('id') || generate.Generate.UID(), text: element.getAttribute('text') || textContent }, (element.innerHTML.trim() && { isHtmlContent: element.textContent.length > 0 ? (element.innerHTML.trim()) : null })), (checkAttr('disabled') && { disabled: checkAttr('disabled') })), (checkAttr('selected') && { selected: checkAttr('selected') })), (checkAttr('hidden') && { hidden: checkAttr('hidden') })), (checkAttr('checked') && { checked: checkAttr('checked') })), (checkAttr('readonly') && { readonly: checkAttr('readonly') })), (checkAttr('active') && { active: checkAttr('active') })), (checkAttr('icon') && { icon: element.getAttribute('icon') })), (checkAttr('link') && { link: element.getAttribute('link') }));
|
|
36
|
+
}
|
|
37
|
+
nestedItems(element) {
|
|
38
|
+
return generate.snq(() => Array.from(element === null || element === void 0 ? void 0 : element.children).map((child) => {
|
|
39
|
+
var _a;
|
|
40
|
+
return (Object.assign(Object.assign({}, (((_a = child === null || child === void 0 ? void 0 : child.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'bcm-item' && this.mapItems(child))), { items: this.nestedItems(child) }));
|
|
41
|
+
}), []);
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return index.h("slot", null);
|
|
45
|
+
}
|
|
46
|
+
get el() { return index.getElement(this); }
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.bcm_items = BcmItems;
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
10
|
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
-
const bcm = require('./bcm-
|
|
11
|
+
const bcm = require('./bcm-489c9b1a.js');
|
|
12
12
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
13
13
|
|
|
14
14
|
const linkCss = "@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-link{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline;color:var(--bcm-new-ds-color-blue-500)}.bcm-link.hidden{display:none}.bcm-link.disabled{pointer-events:none;opacity:0.5;cursor:not-allowed}.bcm-link__anchor{display:inline-flex;align-items:baseline;font-size:inherit;color:inherit}.bcm-link__anchor.prefix .prefix-icon{margin-right:4px}.bcm-link__anchor.suffix .suffix-icon{margin-left:4px}.bcm-link__anchor:hover,.bcm-link__anchor:focus,.bcm-link__anchor:active,.bcm-link__anchor:focus-visible{outline:none}.bcm-link__anchor:hover{color:var(--bcm-new-ds-color-blue-600)}.bcm-link__anchor:active{color:var(--bcm-new-ds-color-blue-700)}.bcm-link__anchor:focus-visible{color:var(--bcm-new-ds-color-blue-800)}";
|
|
@@ -21,7 +21,7 @@ const BcmLink = class {
|
|
|
21
21
|
this.target = undefined;
|
|
22
22
|
this.icon = undefined;
|
|
23
23
|
this.disabled = false;
|
|
24
|
-
this.iconPosition = bcm.Bcm
|
|
24
|
+
this.iconPosition = bcm.Bcm.IconPosition.prefix;
|
|
25
25
|
}
|
|
26
26
|
handleOnClick(e) {
|
|
27
27
|
if (this.disabled) {
|
|
@@ -42,7 +42,7 @@ const BcmLink = class {
|
|
|
42
42
|
'suffix': this.linkIsExternal(href)
|
|
43
43
|
});
|
|
44
44
|
const ElementTagType = href ? 'a' : 'span';
|
|
45
|
-
return (index.h(index.Host, { disabled: disabled, class: hostClasses }, index.h(ElementTagType, { class: classes, href: href, target: this.linkIsExternal(href) ? '_blank' : target }, icon && iconPosition === bcm.Bcm
|
|
45
|
+
return (index.h(index.Host, { disabled: disabled, class: hostClasses }, index.h(ElementTagType, { class: classes, href: href, target: this.linkIsExternal(href) ? '_blank' : target }, icon && iconPosition === bcm.Bcm.IconPosition.prefix && index.h("bcm-icon", { class: "prefix-icon", icon: icon }), index.h("slot", null), this.linkIsExternal(href) && index.h("bcm-icon", { class: "suffix-icon", icon: "far fa-external-link-alt" }))));
|
|
46
46
|
}
|
|
47
47
|
get el() { return index.getElement(this); }
|
|
48
48
|
};
|