bromcom-ui 2.11.1-rc.9-2 → 2.11.1
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-04068410.entry.js +5 -0
- package/dist/bromcom-ui/p-06392358.entry.js +5 -0
- package/dist/bromcom-ui/p-08af4159.entry.js +5 -0
- package/dist/bromcom-ui/{p-2cd6cdee.js → p-09318a64.js} +1 -1
- package/dist/bromcom-ui/p-0bde4e71.entry.js +5 -0
- package/dist/bromcom-ui/p-0d87846a.entry.js +5 -0
- package/dist/bromcom-ui/p-0ed34855.entry.js +5 -0
- package/dist/bromcom-ui/p-0f58e83a.js +5 -0
- package/dist/bromcom-ui/p-19283acb.entry.js +5 -0
- package/dist/bromcom-ui/p-1e377d82.js +5 -0
- package/dist/bromcom-ui/p-207c20c6.entry.js +5 -0
- package/dist/bromcom-ui/{p-d4535e9b.entry.js → p-20b5c273.entry.js} +1 -1
- package/dist/bromcom-ui/p-24906295.entry.js +5 -0
- package/dist/bromcom-ui/p-2b4970f5.entry.js +5 -0
- package/dist/bromcom-ui/p-2d3ff3b8.entry.js +5 -0
- package/dist/bromcom-ui/p-2e7107b8.entry.js +5 -0
- package/dist/bromcom-ui/p-3115008f.entry.js +5 -0
- package/dist/bromcom-ui/p-346395fa.entry.js +5 -0
- package/dist/bromcom-ui/p-375906b2.entry.js +5 -0
- package/dist/bromcom-ui/{p-3f84d1c5.entry.js → p-3861fc92.entry.js} +1 -1
- package/dist/bromcom-ui/p-3f3579b5.entry.js +5 -0
- package/dist/bromcom-ui/p-41e75c88.entry.js +5 -0
- package/dist/bromcom-ui/p-4e44bab2.entry.js +5 -0
- package/dist/bromcom-ui/p-5196912d.js +5 -0
- package/dist/bromcom-ui/p-51b2e857.entry.js +5 -0
- package/dist/bromcom-ui/p-52a75efb.entry.js +5 -0
- package/dist/bromcom-ui/{p-4ef9abca.entry.js → p-5c70a918.entry.js} +1 -1
- package/dist/bromcom-ui/p-5fbb4950.entry.js +5 -0
- package/dist/bromcom-ui/{p-5d9a5c33.entry.js → p-630a4d45.entry.js} +1 -1
- package/dist/bromcom-ui/p-65ac7386.entry.js +5 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/p-7005fb55.entry.js +5 -0
- package/dist/bromcom-ui/{p-3556d078.js → p-743731ac.js} +1 -1
- package/dist/bromcom-ui/p-7c512c4d.entry.js +5 -0
- package/dist/bromcom-ui/{p-36544f78.entry.js → p-81887469.entry.js} +1 -1
- package/dist/bromcom-ui/p-81cbc318.entry.js +5 -0
- package/dist/bromcom-ui/p-82d01088.entry.js +5 -0
- package/dist/bromcom-ui/p-82f0b161.js +5 -0
- package/dist/bromcom-ui/p-84b97f53.entry.js +5 -0
- package/dist/bromcom-ui/p-857628f6.js +5 -0
- package/dist/bromcom-ui/{p-ccc6f14e.entry.js → p-887c26f8.entry.js} +1 -1
- package/dist/bromcom-ui/p-8a6fb2d5.entry.js +5 -0
- package/dist/bromcom-ui/{p-59a92a47.js → p-8ed054fe.js} +1 -1
- package/dist/bromcom-ui/p-926f8ac4.entry.js +5 -0
- package/dist/bromcom-ui/p-950a341e.entry.js +7 -0
- package/dist/bromcom-ui/p-9810187e.entry.js +5 -0
- package/dist/bromcom-ui/p-9b5c86e1.entry.js +5 -0
- package/dist/bromcom-ui/p-a0d6d680.js +1 -1
- package/dist/bromcom-ui/{p-a1b05d8a.entry.js → p-a1e299af.entry.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/p-a34bc3d8.entry.js +5 -0
- package/dist/bromcom-ui/p-a42fbe84.entry.js +5 -0
- package/dist/bromcom-ui/p-a5208f05.entry.js +5 -0
- package/dist/bromcom-ui/p-a6142e74.entry.js +5 -0
- package/dist/bromcom-ui/p-aea1b034.entry.js +5 -0
- package/dist/bromcom-ui/p-b381e7f1.js +19 -0
- package/dist/bromcom-ui/p-b4da198b.entry.js +5 -0
- package/dist/bromcom-ui/{p-a97531d3.entry.js → p-b764ab86.entry.js} +1 -1
- package/dist/bromcom-ui/p-bde67994.entry.js +5 -0
- package/dist/bromcom-ui/p-c1761829.entry.js +5 -0
- package/dist/bromcom-ui/{p-b92f3501.js → p-c7aff122.js} +1 -1
- package/dist/bromcom-ui/p-c7caf94d.js +5 -0
- package/dist/bromcom-ui/{p-a9fb78a2.entry.js → p-ce3b34da.entry.js} +1 -1
- package/dist/bromcom-ui/p-cf011393.entry.js +5 -0
- package/dist/bromcom-ui/p-d01426b6.entry.js +5 -0
- package/dist/bromcom-ui/p-d098f115.entry.js +5 -0
- package/dist/bromcom-ui/p-d9fcd150.js +5 -0
- package/dist/bromcom-ui/{p-8120dcc7.entry.js → p-dc62a5f7.entry.js} +1 -1
- package/dist/bromcom-ui/p-e3c69b3b.entry.js +5 -0
- package/dist/bromcom-ui/{p-4035fdf1.entry.js → p-e9333e52.entry.js} +1 -1
- package/dist/bromcom-ui/p-f56f2a2d.entry.js +5 -0
- package/dist/bromcom-ui/p-fcf4b343.entry.js +5 -0
- package/dist/bromcom-ui/p-fe776e62.entry.js +5 -0
- 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 +7 -7
- 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-f4bfa0a4.js → generate-82c63a56.js} +1 -1
- package/dist/cjs/{global-34b7d357.js → global-1e13ce25.js} +1 -1
- package/dist/cjs/input-template-e0087a2b.js +92 -0
- package/dist/cjs/json-parse-decarator-e0946e2e.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-8b2bc297.js → number-helper-10017fcd.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-b728c16f.js → package-13f78ab4.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-77438c3a.js +85 -0
- package/dist/cjs/{string-helper-9cdfb273.js → string-helper-f9184277.js} +2 -2
- package/dist/cjs/tooltip-helper-a2793290.js +157 -0
- package/dist/cjs/{validators-816514ff.js → validators-f4c3063b.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/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.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-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 +12 -6
- 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 +3 -3
- 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-44c39402.js → generate-b33f722f.js} +1 -1
- package/dist/esm/{global-8534a386.js → global-d524a06a.js} +1 -1
- package/dist/esm/input-template-453bfff8.js +90 -0
- package/dist/esm/json-parse-decarator-1aa4119c.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-ce0f20fe.js → number-helper-712eedd0.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-b2db00f1.js → package-c604bd07.js} +1 -1
- package/dist/esm/stepper-states-00eb7d7d.js +83 -0
- package/dist/esm/string-helper-3592bdc2.js +1 -1
- package/dist/esm/tooltip-helper-088013ec.js +155 -0
- package/dist/esm/{validators-f9bc23cc.js → validators-ebf92486.js} +6 -2
- package/dist/types/templates/list-template.d.ts +0 -1
- package/package.json +2 -2
- package/dist/bromcom-ui/p-08501d86.entry.js +0 -5
- package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
- package/dist/bromcom-ui/p-1a9cd62d.entry.js +0 -5
- package/dist/bromcom-ui/p-1b21310e.entry.js +0 -5
- package/dist/bromcom-ui/p-2f92042f.entry.js +0 -5
- package/dist/bromcom-ui/p-3a220693.entry.js +0 -5
- package/dist/bromcom-ui/p-4d308bb7.entry.js +0 -5
- package/dist/bromcom-ui/p-528c5152.entry.js +0 -5
- package/dist/bromcom-ui/p-52cce799.entry.js +0 -5
- package/dist/bromcom-ui/p-5bb77b86.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-677c5742.entry.js +0 -5
- package/dist/bromcom-ui/p-6a87d06d.entry.js +0 -5
- package/dist/bromcom-ui/p-6c152c86.entry.js +0 -5
- package/dist/bromcom-ui/p-77ede2fc.entry.js +0 -20
- package/dist/bromcom-ui/p-8375c8c4.entry.js +0 -5
- package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
- package/dist/bromcom-ui/p-b2ba36fa.entry.js +0 -5
- package/dist/bromcom-ui/p-b6e2c3cb.entry.js +0 -5
- package/dist/bromcom-ui/p-ca33b8ba.js +0 -5
- package/dist/bromcom-ui/p-d00ca988.js +0 -5
- package/dist/bromcom-ui/p-d90fbea6.entry.js +0 -5
- package/dist/bromcom-ui/p-db66b04a.entry.js +0 -5
- package/dist/bromcom-ui/p-de0b0192.entry.js +0 -5
- package/dist/bromcom-ui/p-e439b584.entry.js +0 -5
- package/dist/bromcom-ui/p-eca0acda.js +0 -5
- package/dist/cjs/bcm-accordion_45.cjs.entry.js +0 -23947
- 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_45.entry.js +0 -23899
- 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,115 @@
|
|
|
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-f549811f.js';
|
|
7
|
+
import { I as IsLoad } from './is-load-decorator-8277e3b8.js';
|
|
8
|
+
import { J as JsonParse } from './json-parse-decarator-1aa4119c.js';
|
|
9
|
+
import { G as Generate } from './generate-b33f722f.js';
|
|
10
|
+
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
11
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
12
|
+
import './package-c604bd07.js';
|
|
13
|
+
import './colors-c530a5b8.js';
|
|
14
|
+
|
|
15
|
+
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)}";
|
|
16
|
+
|
|
17
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
20
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else
|
|
22
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
23
|
+
if (d = decorators[i])
|
|
24
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
25
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
|
+
};
|
|
27
|
+
const BcmDropdown = class {
|
|
28
|
+
constructor(hostRef) {
|
|
29
|
+
registerInstance(this, hostRef);
|
|
30
|
+
this.bcmClick = createEvent(this, "bcm-click", 7);
|
|
31
|
+
this.bcmDropdownChange = createEvent(this, "bcm-dropdown-change", 7);
|
|
32
|
+
this.isOpen = undefined;
|
|
33
|
+
this._id = Generate.UID();
|
|
34
|
+
this.menuId = Generate.UID();
|
|
35
|
+
this.hidden = false;
|
|
36
|
+
this.type = 'dropdown';
|
|
37
|
+
this.size = Bcm.Size.medium;
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
this.kind = Bcm.Kind.solid;
|
|
40
|
+
this.icon = undefined;
|
|
41
|
+
this.href = undefined;
|
|
42
|
+
this.target = undefined;
|
|
43
|
+
this.value = undefined;
|
|
44
|
+
this.noStyle = false;
|
|
45
|
+
this.dropdownIcon = 'fas fa-angle-down';
|
|
46
|
+
this.linkedComponent = undefined;
|
|
47
|
+
this.loading = false;
|
|
48
|
+
this.variant = undefined;
|
|
49
|
+
this.dataDismiss = false;
|
|
50
|
+
this.fullWidth = false;
|
|
51
|
+
this.iconPosition = Bcm.IconPosition.prefix;
|
|
52
|
+
this.placement = undefined;
|
|
53
|
+
this.height = undefined;
|
|
54
|
+
this.maxHeight = '500px';
|
|
55
|
+
this.minHeight = '50px';
|
|
56
|
+
this.stopDeepClean = false;
|
|
57
|
+
this.selectable = true;
|
|
58
|
+
this.gap = '4px';
|
|
59
|
+
this.color = undefined;
|
|
60
|
+
this.activeItem = null;
|
|
61
|
+
this.data = [];
|
|
62
|
+
}
|
|
63
|
+
async dataChanged(newValue) {
|
|
64
|
+
if (newValue) {
|
|
65
|
+
this.data = newValue;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async setActive(id = null) {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
(_b = (_a = document
|
|
71
|
+
.getElementById(`${this.menuId}`)) === null || _a === void 0 ? void 0 : _a.querySelectorAll('bcm-menu')) === null || _b === void 0 ? void 0 : _b.forEach(item => {
|
|
72
|
+
item.setActive(id);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async getActive() {
|
|
76
|
+
return this.activeItem;
|
|
77
|
+
}
|
|
78
|
+
handleSlotItems({ detail }) {
|
|
79
|
+
this.data = detail;
|
|
80
|
+
}
|
|
81
|
+
setActiveAttribute(e) {
|
|
82
|
+
if (e.detail) {
|
|
83
|
+
this.bcmDropdownChange.emit(e.detail);
|
|
84
|
+
this.activeItem = e.detail;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
;
|
|
88
|
+
render() {
|
|
89
|
+
const { size, kind, disabled, icon, color, href, target, loading, type, variant, fullWidth, isOpen } = this;
|
|
90
|
+
const hostClasses = classnames('bcm-dropdown', 'bcm-dropdown__type-' + type, {
|
|
91
|
+
'full-width': fullWidth,
|
|
92
|
+
'no-style': this.noStyle,
|
|
93
|
+
'hidden': this.hidden || this.linkedComponent,
|
|
94
|
+
});
|
|
95
|
+
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 }));
|
|
96
|
+
const iconClasses = classnames('bcm-dropdown__icon', {
|
|
97
|
+
'bcm-dropdown__icon--open': isOpen,
|
|
98
|
+
});
|
|
99
|
+
const dropdownIcon = (h("span", { class: iconClasses }, h("bcm-icon", { icon: this.dropdownIcon })));
|
|
100
|
+
return (h(Host, { class: hostClasses }, h("span", { hidden: true }, h("slot", null)), this.noStyle && h("slot", null), !this.noStyle && (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 })), h("slot", null), type === 'dropdown' && dropdownIcon)), !this.noStyle && type === 'split' && (h("bcm-button", Object.assign({ id: `${this._id}-button-split`, class: "split-button" }, attributes), dropdownIcon)), 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 && 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 }), h("slot", { name: "content" }))));
|
|
101
|
+
}
|
|
102
|
+
get el() { return getElement(this); }
|
|
103
|
+
static get watchers() { return {
|
|
104
|
+
"data": ["dataChanged"]
|
|
105
|
+
}; }
|
|
106
|
+
};
|
|
107
|
+
__decorate([
|
|
108
|
+
IsLoad()
|
|
109
|
+
], BcmDropdown.prototype, "el", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
JsonParse('data', true)
|
|
112
|
+
], BcmDropdown.prototype, "dataChanged", null);
|
|
113
|
+
BcmDropdown.style = dropdownCss;
|
|
114
|
+
|
|
115
|
+
export { BcmDropdown as bcm_dropdown };
|
|
@@ -48,7 +48,7 @@ const BcmErrorLayout = class {
|
|
|
48
48
|
const { itemsProp } = this;
|
|
49
49
|
const classes = classnames('error-layout', this.size);
|
|
50
50
|
const hostClasses = classnames(this.hidden ? 'hidden' : null);
|
|
51
|
-
return (h(Host, { class: hostClasses }, itemsProp.length > 0 && (h("div", { class: classes },
|
|
51
|
+
return (h(Host, { class: hostClasses }, itemsProp.length > 0 && (h("div", { class: classes }, this.itemsProp.map((item) => h("li", null, h("span", null, item)))))));
|
|
52
52
|
}
|
|
53
53
|
get el() { return getElement(this); }
|
|
54
54
|
static get watchers() { return {
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { G as Generate } from './generate-b33f722f.js';
|
|
7
|
+
import { c as classnames } from './index-f549811f.js';
|
|
8
|
+
import { S as StringHelper } from './string-helper-3592bdc2.js';
|
|
9
|
+
import { C as ColorHelper } from './color-helper-3b528349.js';
|
|
10
|
+
import './package-c604bd07.js';
|
|
11
|
+
import './colors-c530a5b8.js';
|
|
12
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
13
|
+
import './bcm-a50d55ba.js';
|
|
14
|
+
import './colors-1d7854ea.js';
|
|
15
|
+
import './utils-57652744.js';
|
|
16
|
+
|
|
17
|
+
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}";
|
|
18
|
+
|
|
19
|
+
const BcmExpansionPanel = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
registerInstance(this, hostRef);
|
|
22
|
+
this.bcmOpen = createEvent(this, "bcm-open", 7);
|
|
23
|
+
this.bcmClose = createEvent(this, "bcm-close", 7);
|
|
24
|
+
this.bcmExtra = createEvent(this, "bcm-extra", 7);
|
|
25
|
+
this._id = Generate.UID();
|
|
26
|
+
this.expanded = false;
|
|
27
|
+
this.disabled = false;
|
|
28
|
+
this.hidden = false;
|
|
29
|
+
this.valid = true;
|
|
30
|
+
this.hideToggle = false;
|
|
31
|
+
this.expandIconPosition = 'right';
|
|
32
|
+
this.headerColor = 'white';
|
|
33
|
+
this.tooltip = undefined;
|
|
34
|
+
this.tooltipDefaultValue = {
|
|
35
|
+
message: '',
|
|
36
|
+
placement: 'top',
|
|
37
|
+
trigger: 'hover',
|
|
38
|
+
icon: 'fas fa-question-circle',
|
|
39
|
+
color: 'grey-8',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
componentWillRender() {
|
|
43
|
+
this.restoreSlots();
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() {
|
|
46
|
+
this.checkExpanded();
|
|
47
|
+
}
|
|
48
|
+
createTooltip() {
|
|
49
|
+
let tool;
|
|
50
|
+
if (this.tooltip) {
|
|
51
|
+
const { tooltip } = this;
|
|
52
|
+
try {
|
|
53
|
+
tool = JSON.parse(tooltip);
|
|
54
|
+
tool = Object.assign(Object.assign({}, this.tooltipDefaultValue), tool);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
tool = Object.assign(Object.assign({}, this.tooltipDefaultValue), { message: tooltip });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return tool;
|
|
61
|
+
}
|
|
62
|
+
checkExpanded() {
|
|
63
|
+
this.expanded = !!this.el['expanded'];
|
|
64
|
+
}
|
|
65
|
+
restoreSlots() {
|
|
66
|
+
const slots = this.el.querySelectorAll('bcm-expansion-panel-header, bcm-expansion-panel-description, bcm-expansion-panel-extra');
|
|
67
|
+
if (slots) {
|
|
68
|
+
slots.forEach(element => {
|
|
69
|
+
let slotName = StringHelper.lowercase(StringHelper.split(element.nodeName, '-').pop());
|
|
70
|
+
element.slot = slotName;
|
|
71
|
+
element.classList.add(`bcm-expansion-panel__${slotName}-content`);
|
|
72
|
+
let color = element.getAttribute('color');
|
|
73
|
+
if (color) {
|
|
74
|
+
color = color == 'white' ? color : color + '-50';
|
|
75
|
+
this.headerColor = color;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
toggle() {
|
|
81
|
+
if (this.disabled) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
this.expanded = !this.expanded;
|
|
85
|
+
if (this.expanded) {
|
|
86
|
+
this.bcmOpen.emit(this._id);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
this.bcmClose.emit(this._id);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
clickExtra(e) {
|
|
93
|
+
e.stopPropagation();
|
|
94
|
+
this.bcmExtra.emit(e);
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
const { _id, expanded, disabled, hidden, hideToggle, tooltip, valid } = this;
|
|
98
|
+
const { message, placement, icon, trigger, color } = tooltip ? this.createTooltip() : {};
|
|
99
|
+
const hostClasses = classnames('bcm-expansion-panel', valid ? 'bcm-expansion-panel--valid' : 'bcm-expansion-panel--invalid', {
|
|
100
|
+
'bcm-expansion-panel--expanded': expanded,
|
|
101
|
+
'bcm-expansion-panel--disabled': disabled,
|
|
102
|
+
'bcm-expansion-panel--hide-toggle': hideToggle,
|
|
103
|
+
'bcm-expansion-panel--icon-right': this.expandIconPosition === 'right',
|
|
104
|
+
hidden,
|
|
105
|
+
});
|
|
106
|
+
return (h(Host, { class: hostClasses }, h("div", { class: "bcm-expansion-panel__header", onClick: () => this.toggle(), style: { 'background-color': ColorHelper.dsColor(this.headerColor) } }, h("div", { class: "bcm-expansion-panel__header-title" }, h("span", { id: _id + '-header' }, h("slot", { name: "header" })), tooltip && (h("span", { class: "bcm-expansion-panel__header-tooltip", style: Object.assign({}, color && { color: ColorHelper.convertColorToHex(color) }) }, h("bcm-tooltip", { message: message, placement: placement, trigger: trigger }, h("bcm-icon", { color: color, icon: icon })))), h("span", { id: _id + '-description', class: "bcm-expansion-panel__header-title-description" }, h("slot", { name: "description" }))), h("span", { id: _id + '-extra', class: "bcm-expansion-panel__header-extra", onClick: (e) => this.clickExtra(e) }, h("slot", { name: "extra" })), !hideToggle && (h("div", { class: "bcm-expansion-panel__header-toggle" }, h("bcm-icon", { icon: "far fa-chevron-down" })))), h("div", { class: "bcm-expansion-panel__body", id: _id + '-body' }, h("slot", null))));
|
|
107
|
+
}
|
|
108
|
+
get el() { return getElement(this); }
|
|
109
|
+
};
|
|
110
|
+
BcmExpansionPanel.style = expansionPanelCss;
|
|
111
|
+
|
|
112
|
+
export { BcmExpansionPanel as bcm_expansion_panel };
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-b33f722f.js';
|
|
7
7
|
import { c as classnames } from './index-f549811f.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-c604bd07.js';
|
|
9
9
|
import './colors-c530a5b8.js';
|
|
10
10
|
import './_commonjsHelpers-82aa9212.js';
|
|
11
11
|
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, F as Fragment } from './index-0615c2b8.js';
|
|
6
6
|
import './color-helper-3b528349.js';
|
|
7
|
-
import './
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
7
|
+
import './validators-ebf92486.js';
|
|
8
|
+
import { G as Generate } from './generate-b33f722f.js';
|
|
9
|
+
import './number-helper-712eedd0.js';
|
|
10
10
|
import './string-helper-3592bdc2.js';
|
|
11
|
-
import './validators-f9bc23cc.js';
|
|
12
11
|
import './element-dragger-89bb52fd.js';
|
|
13
|
-
import {
|
|
14
|
-
import { C as CaptionTemplate } from './caption-template-
|
|
12
|
+
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
13
|
+
import { C as CaptionTemplate } from './caption-template-fd7738eb.js';
|
|
15
14
|
import { c as classnames } from './index-f549811f.js';
|
|
16
15
|
import './types-6f06fa1a.js';
|
|
17
16
|
import './types-9493a7ed.js';
|
|
@@ -20,7 +19,7 @@ import './colors-1d7854ea.js';
|
|
|
20
19
|
import './utils-57652744.js';
|
|
21
20
|
import './colors-c530a5b8.js';
|
|
22
21
|
import './_commonjsHelpers-82aa9212.js';
|
|
23
|
-
import './package-
|
|
22
|
+
import './package-c604bd07.js';
|
|
24
23
|
|
|
25
24
|
const inputDropdownStyle = ce({
|
|
26
25
|
slots: {
|
|
@@ -284,7 +283,7 @@ const BcmInputDropdown = class {
|
|
|
284
283
|
};
|
|
285
284
|
const CommentTemplate = () => {
|
|
286
285
|
var _a, _b, _c;
|
|
287
|
-
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, 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) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, 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 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("bcm-button", {
|
|
286
|
+
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, 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) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, 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 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, 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"), h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
288
287
|
};
|
|
289
288
|
return (h(Host, { class: base() }, label && h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), h("div", { class: content() }, h("div", { class: inputArea() }, 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) }), h("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, h("i", { class: "fas fa-chevron-down" })), 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" }, h(MenuTemplates, null)), h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, h(CommentTemplate, null))), !this.hideComment ? (h("span", { onClick: () => {
|
|
290
289
|
var _a, _b;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { G as Generate } from './generate-b33f722f.js';
|
|
7
|
+
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
8
|
+
import { c as classnames } from './index-f549811f.js';
|
|
9
|
+
import { C as ColorHelper } from './color-helper-3b528349.js';
|
|
10
|
+
import './package-c604bd07.js';
|
|
11
|
+
import './colors-c530a5b8.js';
|
|
12
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
13
|
+
import './colors-1d7854ea.js';
|
|
14
|
+
import './utils-57652744.js';
|
|
15
|
+
|
|
16
|
+
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}";
|
|
17
|
+
|
|
18
|
+
const BcmItem = class {
|
|
19
|
+
constructor(hostRef) {
|
|
20
|
+
registerInstance(this, hostRef);
|
|
21
|
+
this._id = Generate.UID();
|
|
22
|
+
this.size = Bcm.Size.medium;
|
|
23
|
+
this.color = undefined;
|
|
24
|
+
this.static = false;
|
|
25
|
+
}
|
|
26
|
+
setColor(color = this.color) {
|
|
27
|
+
if (!color)
|
|
28
|
+
return;
|
|
29
|
+
const prefix = `--bcm-item`;
|
|
30
|
+
if (color == "white") {
|
|
31
|
+
return {
|
|
32
|
+
[`${prefix}-color-default`]: ColorHelper.dsColor('slate-600'),
|
|
33
|
+
[`${prefix}-color-hover`]: ColorHelper.dsColor('slate-600'),
|
|
34
|
+
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor('slate-600'),
|
|
35
|
+
[`${prefix}-color-active`]: ColorHelper.dsColor('slate-600'),
|
|
36
|
+
[`${prefix}-color-disabled`]: ColorHelper.dsColor('white'),
|
|
37
|
+
[`${prefix}-background-color-default`]: ColorHelper.dsColor(this.static ? 'white' : 'white'),
|
|
38
|
+
[`${prefix}-background-color-hover`]: ColorHelper.dsColor(this.static ? 'white' : 'slate-100'),
|
|
39
|
+
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(this.static ? 'white' : 'slate-200'),
|
|
40
|
+
[`${prefix}-background-color-active`]: ColorHelper.dsColor(this.static ? 'white' : 'slate-300'),
|
|
41
|
+
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor('slate-400'),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
[`${prefix}-color-default`]: ColorHelper.dsColor('white'),
|
|
46
|
+
[`${prefix}-color-hover`]: ColorHelper.dsColor('white'),
|
|
47
|
+
[`${prefix}-color-focus-visible`]: ColorHelper.dsColor('white'),
|
|
48
|
+
[`${prefix}-color-active`]: ColorHelper.dsColor('white'),
|
|
49
|
+
[`${prefix}-color-disabled`]: ColorHelper.dsColor('white'),
|
|
50
|
+
[`${prefix}-background-color-default`]: ColorHelper.dsColor(color + '-500'),
|
|
51
|
+
[`${prefix}-background-color-hover`]: ColorHelper.dsColor(color + '-600'),
|
|
52
|
+
[`${prefix}-background-color-focus-visible`]: ColorHelper.dsColor(color + '-700'),
|
|
53
|
+
[`${prefix}-background-color-active`]: ColorHelper.dsColor(color + '-800'),
|
|
54
|
+
[`${prefix}-background-color-disabled`]: ColorHelper.dsColor('slate-400'),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
disconnectedCallback() {
|
|
58
|
+
// this.el.remove()
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
const hostClasses = classnames('bcm-item', `bcm-item-size-${this.size}`);
|
|
62
|
+
return (h(Host, { class: hostClasses, style: this.setColor() }, h("slot", null)));
|
|
63
|
+
}
|
|
64
|
+
get el() { return getElement(this); }
|
|
65
|
+
};
|
|
66
|
+
BcmItem.style = itemCss;
|
|
67
|
+
|
|
68
|
+
export { BcmItem as bcm_item };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0615c2b8.js';
|
|
6
|
+
import { G as Generate, s as snq } from './generate-b33f722f.js';
|
|
7
|
+
import { S as StringHelper } from './string-helper-3592bdc2.js';
|
|
8
|
+
import './package-c604bd07.js';
|
|
9
|
+
import './colors-c530a5b8.js';
|
|
10
|
+
import './_commonjsHelpers-82aa9212.js';
|
|
11
|
+
import './bcm-a50d55ba.js';
|
|
12
|
+
|
|
13
|
+
const BcmItems = class {
|
|
14
|
+
constructor(hostRef) {
|
|
15
|
+
registerInstance(this, hostRef);
|
|
16
|
+
this.bcmItems = createEvent(this, "bcm-items", 7);
|
|
17
|
+
this._id = Generate.UID();
|
|
18
|
+
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
if (this.el.children && this.el.children.length > 0) {
|
|
21
|
+
let slots = this.nestedItems(this.el);
|
|
22
|
+
this.bcmItems.emit(slots);
|
|
23
|
+
this.el.remove();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
mapItems(element) {
|
|
27
|
+
var _a;
|
|
28
|
+
const item = element;
|
|
29
|
+
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();
|
|
30
|
+
const checkAttr = (attr) => StringHelper.elementBooleanCheck(element.getAttribute(attr));
|
|
31
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ id: element.getAttribute('id') || 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') }));
|
|
32
|
+
}
|
|
33
|
+
nestedItems(element) {
|
|
34
|
+
return snq(() => Array.from(element === null || element === void 0 ? void 0 : element.children).map((child) => {
|
|
35
|
+
var _a;
|
|
36
|
+
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) }));
|
|
37
|
+
}), []);
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return h("slot", null);
|
|
41
|
+
}
|
|
42
|
+
get el() { return getElement(this); }
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { BcmItems as bcm_items };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
|
|
6
6
|
import { c as classnames } from './index-f549811f.js';
|
|
7
|
-
import {
|
|
7
|
+
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
8
8
|
import './_commonjsHelpers-82aa9212.js';
|
|
9
9
|
|
|
10
10
|
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)}";
|