bromcom-ui 2.12.4-rc.0 → 3.0.0-alpha.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-2a15a39d.entry.js → p-03337609.entry.js} +1 -1
- package/dist/bromcom-ui/{p-652c1d30.entry.js → p-14b04371.entry.js} +1 -1
- package/dist/bromcom-ui/{p-32a5791b.entry.js → p-19ed830b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-55a44163.entry.js → p-1a7e1a74.entry.js} +1 -1
- package/dist/bromcom-ui/{p-63646141.entry.js → p-1fbec9e4.entry.js} +1 -1
- package/dist/bromcom-ui/p-217934a4.entry.js +5 -0
- package/dist/bromcom-ui/p-22e3161d.entry.js +5 -0
- package/dist/bromcom-ui/{p-b1754fc5.entry.js → p-2a0b6273.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-2d0ff35e.js} +1 -1
- package/dist/bromcom-ui/p-367bc8e0.js +5 -0
- package/dist/bromcom-ui/{p-b689c630.entry.js → p-369948e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcbd8a75.entry.js → p-3b079331.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4211b6bb.entry.js → p-46628fcd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-49c6a7eb.entry.js → p-485ed6c1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8129ed3a.js → p-499d8454.js} +1 -1
- package/dist/bromcom-ui/{p-b1382dbd.entry.js → p-4a71c61a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
- package/dist/bromcom-ui/{p-1fb713c8.entry.js → p-51ba3626.entry.js} +1 -1
- package/dist/bromcom-ui/p-556010cb.js +5 -0
- package/dist/bromcom-ui/{p-a4f0590d.entry.js → p-583982a6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d4c75e60.entry.js → p-5bf051b9.entry.js} +1 -1
- package/dist/bromcom-ui/p-5c4939a7.js +5 -0
- package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
- package/dist/bromcom-ui/p-6f224017.entry.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-6f2e4c9b.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-6f861fed.js} +1 -1
- package/dist/bromcom-ui/{p-9eb250d4.entry.js → p-7416d1f6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d1298c40.js → p-7b21fcb9.js} +1 -1
- package/dist/bromcom-ui/p-815f884d.entry.js +5 -0
- package/dist/bromcom-ui/p-8363990a.entry.js +5 -0
- package/dist/bromcom-ui/p-8457670e.entry.js +5 -0
- package/dist/bromcom-ui/{p-f82db5dd.js → p-858cee66.js} +1 -1
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-65783175.js → p-8e5e362a.js} +1 -1
- package/dist/bromcom-ui/{p-34b9cf32.entry.js → p-9015080d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-40a29024.entry.js → p-9d41ff2a.entry.js} +1 -1
- package/dist/bromcom-ui/p-a080c8ea.entry.js +5 -0
- package/dist/bromcom-ui/p-a141b2bc.entry.js +5 -0
- package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
- package/dist/bromcom-ui/p-a313fba6.js +1 -1
- package/dist/bromcom-ui/{p-c097f624.entry.js → p-a6b4a46d.entry.js} +1 -1
- package/dist/bromcom-ui/p-a6b696de.js +5 -0
- package/dist/bromcom-ui/p-acfceb2b.entry.js +5 -0
- package/dist/bromcom-ui/{p-c0aa5289.entry.js → p-b46e368e.entry.js} +1 -1
- package/dist/bromcom-ui/p-b85227c8.entry.js +5 -0
- package/dist/bromcom-ui/p-c47463b1.entry.js +5 -0
- package/dist/bromcom-ui/{p-defdd05b.entry.js → p-c4bf7f7e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-826a85ed.entry.js → p-c5bb29d0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c3b74f76.entry.js → p-cc70861b.entry.js} +1 -1
- package/dist/bromcom-ui/p-ce452032.entry.js +16 -0
- package/dist/bromcom-ui/{p-b4b9ca15.entry.js → p-d0e56f5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-aa6887d7.js → p-d4e4aeee.js} +1 -1
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-d65bc842.js} +1 -1
- package/dist/bromcom-ui/p-dc73abe2.js +5 -0
- package/dist/bromcom-ui/p-dcd69786.entry.js +5 -0
- package/dist/bromcom-ui/{p-50a1591e.js → p-e037ee2b.js} +1 -1
- package/dist/bromcom-ui/{p-874053cc.entry.js → p-e7c31126.entry.js} +1 -1
- package/dist/bromcom-ui/p-e9a43560.js +5 -0
- package/dist/bromcom-ui/p-ea24a822.entry.js +5 -0
- package/dist/bromcom-ui/{p-f815dc7a.entry.js → p-fdd4cabe.entry.js} +1 -1
- package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
- package/dist/cjs/bcm-accordion_68.cjs.entry.js +47182 -0
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-input-2.cjs.entry.js +9 -9
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +9 -9
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
- package/dist/cjs/bcm-number-input.cjs.entry.js +9 -9
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
- package/dist/cjs/bcm-table.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/bcm-toast.cjs.entry.js +18 -18
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-f8a78504.js} +9 -9
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
- package/dist/cjs/{generate-b55bc9ac.js → generate-a25d8fc8.js} +1 -1
- package/dist/cjs/{global-ae5a410a.js → global-08c079a8.js} +1 -1
- package/dist/cjs/{input.style-b5676e6a.js → input.style-bee84fb0.js} +1 -1
- package/dist/cjs/{label-template-6da4808b.js → label-template-fc301e0c.js} +6 -6
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-4a5c0bb5.js → number-helper-3a56812f.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-1757d4e0.js → package-6afe17f3.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-02e6101b.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-df7b5b59.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-9cdfb273.js} +2 -2
- package/dist/cjs/{validators-51a16def.js → validators-78797513.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/avatar/avatar.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar.style.js +4 -4
- package/dist/collection/components/atoms/badge/badge.style.js +8 -8
- package/dist/collection/components/atoms/button/button.css +90 -92
- package/dist/collection/components/atoms/button/button.js +45 -46
- package/dist/collection/components/atoms/chip/chip.css +27 -29
- package/dist/collection/components/atoms/chip/chip.js +10 -11
- package/dist/collection/components/atoms/divider/divider.css +4 -4
- package/dist/collection/components/atoms/link/link.css +10 -11
- package/dist/collection/components/molecules/accordion/accordion.css +23 -0
- package/dist/collection/components/molecules/accordion/accordion.js +1 -1
- package/dist/collection/components/molecules/alert/alert.css +28 -24
- package/dist/collection/components/molecules/alert/alert.js +26 -36
- package/dist/collection/components/molecules/button-group/button-group.css +15 -23
- package/dist/collection/components/molecules/checkbox/checkbox.css +15 -15
- package/dist/collection/components/molecules/checkbox/checkbox.js +8 -9
- 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.css +13 -15
- package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +25 -22
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
- package/dist/collection/components/molecules/input/input.css +21 -13
- package/dist/collection/components/molecules/input/input.style.js +1 -1
- package/dist/collection/components/molecules/menu/menu.css +29 -23
- package/dist/collection/components/molecules/modal/modal.css +42 -35
- package/dist/collection/components/molecules/modal/modal.js +1 -1
- package/dist/collection/components/molecules/radio/radio.js +10 -10
- package/dist/collection/components/molecules/range/range.css +5 -8
- package/dist/collection/components/molecules/search/search.css +21 -13
- package/dist/collection/components/molecules/stepper/stepper.css +6 -5
- package/dist/collection/components/molecules/switch/switch.css +22 -21
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -6
- package/dist/collection/components/molecules/textarea/textarea.css +21 -13
- package/dist/collection/components/organism/list/list.css +44 -44
- package/dist/collection/components/organism/list/list.js +19 -73
- package/dist/collection/components/other/shortcut/shortcut.js +4 -4
- package/dist/collection/components/other/toast/toast.js +7 -7
- package/dist/collection/components/third-parts/colorful/colorful.css +21 -13
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +13 -9
- package/dist/collection/global/components/_checkbox.css +15 -15
- package/dist/collection/helper/popover-helper.js +5 -5
- package/dist/collection/helper/tooltip-helper.js +6 -6
- package/dist/collection/templates/caption-template.js +9 -9
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/label-template.js +4 -4
- package/dist/collection/templates/step-template.js +4 -4
- package/dist/components/avatar.js +6 -6
- package/dist/components/badge.js +9 -9
- package/dist/components/bcm-accordion.js +2 -2
- package/dist/components/bcm-alert.js +28 -41
- package/dist/components/bcm-attendance-actions-comment.js +1 -1
- package/dist/components/bcm-attendance-actions-dropdown.js +1 -1
- package/dist/components/bcm-attendance-actions.js +1 -1
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-checkbox-group.js +1 -1
- package/dist/components/bcm-color-input.js +1 -1
- package/dist/components/bcm-error-layout.js +2 -2
- package/dist/components/bcm-expansion-panel.js +2 -2
- package/dist/components/bcm-input-2.js +1 -1
- package/dist/components/bcm-input-dropdown.js +1 -1
- package/dist/components/bcm-modal.js +2 -2
- package/dist/components/bcm-popover.js +5 -5
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-shortcut.js +4 -4
- package/dist/components/bcm-stepper.js +6 -6
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-item-header.js +6 -6
- package/dist/components/bcm-toast.js +7 -7
- package/dist/components/button.js +47 -48
- package/dist/components/caption-template.js +9 -9
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +9 -10
- package/dist/components/chip.js +11 -12
- package/dist/components/colorful.js +1 -1
- package/dist/components/divider.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/index4.js +2549 -171
- package/dist/components/index5.js +171 -2549
- package/dist/components/input-template.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.style.js +2 -2
- package/dist/components/label.js +4 -4
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +21 -58
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +10 -10
- package/dist/components/rc-picker.js +1 -1
- package/dist/components/search.js +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/step.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/tooltip-helper.js +6 -6
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/bcm-a50d55ba.js +1 -1
- package/dist/esm/bcm-accordion_68.entry.js +47111 -0
- package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-caption.entry.js +14 -14
- package/dist/esm/bcm-card.entry.js +10 -10
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +9 -9
- package/dist/esm/bcm-datetime-picker.entry.js +13 -13
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-form-2.entry.js +8 -8
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-2.entry.js +11 -11
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +14 -14
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
- package/dist/esm/bcm-modal-2-header.entry.js +11 -11
- package/dist/esm/bcm-modal-2.entry.js +13 -13
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +15 -15
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-react-number.entry.js +3 -3
- package/dist/esm/bcm-result.entry.js +3 -3
- package/dist/esm/bcm-select-group.entry.js +3 -3
- package/dist/esm/bcm-select-option.entry.js +3 -3
- package/dist/esm/bcm-skeleton.entry.js +11 -11
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +12 -12
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -9
- package/dist/esm/bcm-time-picker.entry.js +9 -9
- package/dist/esm/bcm-timeline-item.entry.js +3 -3
- package/dist/esm/bcm-timeline.entry.js +3 -3
- package/dist/esm/bcm-toast.entry.js +16 -16
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-9d0ea503.js → caption-template-16dd9444.js} +11 -11
- package/dist/esm/{color-helper-e74656af.js → color-helper-ba15b0d8.js} +2 -2
- package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-b75266e6.js} +1 -1
- package/dist/esm/floating-ui-3f4394da.js +1 -1
- package/dist/esm/{generate-27c06421.js → generate-a4b85775.js} +2 -2
- package/dist/esm/{global-0dac0bf2.js → global-1baa11cd.js} +2 -2
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
- package/dist/esm/{index-b3026131.js → index-4614b7f0.js} +1 -1
- package/dist/esm/{input.style-e855c0f3.js → input.style-0ddc0073.js} +1 -1
- package/dist/esm/{is-load-decorator-613d613a.js → is-load-decorator-b8ca22f2.js} +1 -1
- package/dist/esm/{label-template-8c5948ab.js → label-template-4c3797f4.js} +7 -7
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-94a51ec2.js → number-helper-872d5482.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +11 -11
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-34090aad.js → package-1d6f13ed.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-2bf3a181.js} +1 -1
- package/dist/esm/{slot-template-f85d540c.js → slot-template-e0202c5a.js} +2 -2
- package/dist/esm/{string-helper-85990695.js → string-helper-69203215.js} +2 -2
- package/dist/esm/{utils-b3338faf.js → utils-7727d09e.js} +1 -1
- package/dist/esm/{validators-7e605ca5.js → validators-e9800e9a.js} +1 -1
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
- package/dist/types/components/molecules/alert/alert.d.ts +1 -3
- package/dist/types/components/organism/list/list.d.ts +0 -4
- package/dist/types/components.d.ts +0 -4
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0089f9c5.entry.js +0 -5
- package/dist/bromcom-ui/p-03cc10f8.entry.js +0 -5
- package/dist/bromcom-ui/p-075dd6ba.entry.js +0 -5
- package/dist/bromcom-ui/p-07971537.entry.js +0 -5
- package/dist/bromcom-ui/p-0d952c81.js +0 -5
- package/dist/bromcom-ui/p-0e97b110.js +0 -5
- package/dist/bromcom-ui/p-12687eaa.entry.js +0 -5
- package/dist/bromcom-ui/p-1441edac.entry.js +0 -5
- package/dist/bromcom-ui/p-17bc7e7e.entry.js +0 -5
- package/dist/bromcom-ui/p-1ac9eb84.entry.js +0 -5
- package/dist/bromcom-ui/p-1bf1e8ad.entry.js +0 -5
- package/dist/bromcom-ui/p-1c8ed0b3.entry.js +0 -5
- package/dist/bromcom-ui/p-1d663e83.entry.js +0 -5
- package/dist/bromcom-ui/p-21b4ca2e.entry.js +0 -5
- package/dist/bromcom-ui/p-2ebe3b67.entry.js +0 -5
- package/dist/bromcom-ui/p-30a11f2e.entry.js +0 -5
- package/dist/bromcom-ui/p-30cc83af.js +0 -5
- package/dist/bromcom-ui/p-33d204f1.entry.js +0 -5
- package/dist/bromcom-ui/p-348e74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-379b00d6.js +0 -5
- package/dist/bromcom-ui/p-38a52254.js +0 -5
- package/dist/bromcom-ui/p-3e12382d.js +0 -5
- package/dist/bromcom-ui/p-4b5c5f62.entry.js +0 -5
- package/dist/bromcom-ui/p-4c2e776d.entry.js +0 -5
- package/dist/bromcom-ui/p-4c9c2159.entry.js +0 -5
- package/dist/bromcom-ui/p-56b45430.entry.js +0 -5
- package/dist/bromcom-ui/p-646c8ea2.entry.js +0 -5
- package/dist/bromcom-ui/p-69e3b4f9.entry.js +0 -5
- package/dist/bromcom-ui/p-6b3bf457.entry.js +0 -5
- package/dist/bromcom-ui/p-6fa98b12.entry.js +0 -5
- package/dist/bromcom-ui/p-7247ac65.entry.js +0 -5
- package/dist/bromcom-ui/p-7505325c.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-7ae23e76.entry.js +0 -5
- package/dist/bromcom-ui/p-7b6d3a77.entry.js +0 -5
- package/dist/bromcom-ui/p-7dd0467a.entry.js +0 -5
- package/dist/bromcom-ui/p-815f1132.entry.js +0 -5
- package/dist/bromcom-ui/p-852fd092.entry.js +0 -5
- package/dist/bromcom-ui/p-85aa9dfd.entry.js +0 -5
- package/dist/bromcom-ui/p-8baa08ea.entry.js +0 -5
- package/dist/bromcom-ui/p-8c7e1bea.entry.js +0 -5
- package/dist/bromcom-ui/p-8dda8873.js +0 -14
- package/dist/bromcom-ui/p-8ee40a96.js +0 -5
- package/dist/bromcom-ui/p-90b5befd.entry.js +0 -5
- package/dist/bromcom-ui/p-935f57ad.entry.js +0 -5
- package/dist/bromcom-ui/p-9402a607.entry.js +0 -5
- package/dist/bromcom-ui/p-9695f7c9.js +0 -5
- package/dist/bromcom-ui/p-97bc1843.entry.js +0 -5
- package/dist/bromcom-ui/p-9b080d5d.entry.js +0 -5
- package/dist/bromcom-ui/p-9b8e6484.entry.js +0 -5
- package/dist/bromcom-ui/p-9d1e255a.js +0 -5
- package/dist/bromcom-ui/p-9db3dcfa.entry.js +0 -5
- package/dist/bromcom-ui/p-ac949369.entry.js +0 -5
- package/dist/bromcom-ui/p-ad295560.entry.js +0 -5
- package/dist/bromcom-ui/p-b3faa68b.js +0 -5
- package/dist/bromcom-ui/p-b5bdc541.entry.js +0 -5
- package/dist/bromcom-ui/p-b716412b.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-bfdf9447.entry.js +0 -5
- package/dist/bromcom-ui/p-c621138a.entry.js +0 -5
- package/dist/bromcom-ui/p-c9d35a7a.entry.js +0 -5
- package/dist/bromcom-ui/p-d0833fd3.entry.js +0 -5
- package/dist/bromcom-ui/p-d1dbebf6.entry.js +0 -5
- package/dist/bromcom-ui/p-d2f863d9.js +0 -5
- package/dist/bromcom-ui/p-d6c99f1f.entry.js +0 -5
- package/dist/bromcom-ui/p-daa32fc1.js +0 -5
- package/dist/bromcom-ui/p-dc3275aa.entry.js +0 -5
- package/dist/bromcom-ui/p-dccb9b5f.entry.js +0 -5
- package/dist/bromcom-ui/p-de1f21b5.entry.js +0 -5
- package/dist/bromcom-ui/p-de23b7bf.entry.js +0 -5
- package/dist/bromcom-ui/p-e3f8efa5.entry.js +0 -5
- package/dist/bromcom-ui/p-ee1b4a47.entry.js +0 -5
- package/dist/bromcom-ui/p-f0469946.entry.js +0 -5
- package/dist/bromcom-ui/p-f2fc3d54.entry.js +0 -5
- package/dist/bromcom-ui/p-f3c9ad5e.entry.js +0 -5
- package/dist/bromcom-ui/p-f6f37125.entry.js +0 -5
- package/dist/bromcom-ui/p-f86515f0.entry.js +0 -5
- package/dist/bromcom-ui/p-f908af03.entry.js +0 -5
- package/dist/bromcom-ui/p-f9c32e82.entry.js +0 -5
- package/dist/bromcom-ui/p-fd0c42ae.entry.js +0 -5
- package/dist/cjs/Overflow-ebad34dd.js +0 -2292
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
- package/dist/cjs/bcm-alert.cjs.entry.js +0 -99
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
- package/dist/cjs/bcm-button.cjs.entry.js +0 -372
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-chip-group.cjs.entry.js +0 -128
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
- package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
- package/dist/cjs/bcm-date.cjs.entry.js +0 -182
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
- package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
- package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -64
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
- package/dist/cjs/bcm-form.cjs.entry.js +0 -492
- package/dist/cjs/bcm-icon_6.cjs.entry.js +0 -2152
- package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
- package/dist/cjs/bcm-item.cjs.entry.js +0 -72
- package/dist/cjs/bcm-items.cjs.entry.js +0 -49
- package/dist/cjs/bcm-link.cjs.entry.js +0 -51
- package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
- package/dist/cjs/bcm-range.cjs.entry.js +0 -183
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -10235
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
- package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
- package/dist/cjs/bcm-step.cjs.entry.js +0 -89
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -60
- package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
- package/dist/cjs/bcm-text.cjs.entry.js +0 -49
- package/dist/cjs/index-d321de96.js +0 -193
- package/dist/cjs/input-template-4f41f5f2.js +0 -92
- package/dist/cjs/json-parse-decarator-ca73e0ee.js +0 -40
- package/dist/cjs/lodash-917168d7.js +0 -17199
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/cjs/stepper-states-969da6c3.js +0 -85
- package/dist/cjs/tooltip-helper-a45a6cd4.js +0 -158
- package/dist/esm/Overflow-65c2db90.js +0 -2275
- package/dist/esm/bcm-accordion.entry.js +0 -70
- package/dist/esm/bcm-alert.entry.js +0 -95
- package/dist/esm/bcm-attendance-actions.entry.js +0 -326
- package/dist/esm/bcm-attendance.entry.js +0 -31
- package/dist/esm/bcm-avatar_2.entry.js +0 -205
- package/dist/esm/bcm-button-group.entry.js +0 -88
- package/dist/esm/bcm-button.entry.js +0 -368
- package/dist/esm/bcm-checkbox-group.entry.js +0 -411
- package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-chip-group.entry.js +0 -124
- package/dist/esm/bcm-chip.entry.js +0 -87
- package/dist/esm/bcm-collapse-group.entry.js +0 -39
- package/dist/esm/bcm-collapse.entry.js +0 -58
- package/dist/esm/bcm-color-input.entry.js +0 -73
- package/dist/esm/bcm-colorful_2.entry.js +0 -246
- package/dist/esm/bcm-date.entry.js +0 -178
- package/dist/esm/bcm-drawer.entry.js +0 -92
- package/dist/esm/bcm-dropdown.entry.js +0 -115
- package/dist/esm/bcm-error-layout.entry.js +0 -60
- package/dist/esm/bcm-expansion-panel.entry.js +0 -112
- package/dist/esm/bcm-form.entry.js +0 -488
- package/dist/esm/bcm-icon_6.entry.js +0 -2143
- package/dist/esm/bcm-input_2.entry.js +0 -545
- package/dist/esm/bcm-item.entry.js +0 -68
- package/dist/esm/bcm-items.entry.js +0 -45
- package/dist/esm/bcm-link.entry.js +0 -47
- package/dist/esm/bcm-menu.entry.js +0 -147
- package/dist/esm/bcm-modal.entry.js +0 -153
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-old-tag_2.entry.js +0 -140
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
- package/dist/esm/bcm-popconfirm.entry.js +0 -97
- package/dist/esm/bcm-popover.entry.js +0 -226
- package/dist/esm/bcm-progress.entry.js +0 -158
- package/dist/esm/bcm-radio-group.entry.js +0 -157
- package/dist/esm/bcm-radio.entry.js +0 -61
- package/dist/esm/bcm-range.entry.js +0 -179
- package/dist/esm/bcm-rc-picker.entry.js +0 -10231
- package/dist/esm/bcm-select.entry.js +0 -1191
- package/dist/esm/bcm-shortcut.entry.js +0 -61
- package/dist/esm/bcm-step.entry.js +0 -85
- package/dist/esm/bcm-stepper.entry.js +0 -236
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/bcm-tab-group.entry.js +0 -206
- package/dist/esm/bcm-tab-item-header.entry.js +0 -56
- package/dist/esm/bcm-tab-item.entry.js +0 -87
- package/dist/esm/bcm-tab.entry.js +0 -68
- package/dist/esm/bcm-tabs.entry.js +0 -366
- package/dist/esm/bcm-text.entry.js +0 -45
- package/dist/esm/index-91dbe540.js +0 -191
- package/dist/esm/input-template-4d3a4e34.js +0 -90
- package/dist/esm/json-parse-decarator-1f7310a8.js +0 -38
- package/dist/esm/lodash-0a4396a7.js +0 -17197
- package/dist/esm/moment-15cd9198.js +0 -4598
- package/dist/esm/stepper-states-b1aa55b0.js +0 -83
- package/dist/esm/tooltip-helper-112e52a6.js +0 -156
|
@@ -1,492 +0,0 @@
|
|
|
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 stringHelper = require('./string-helper-f9184277.js');
|
|
13
|
-
const utils = require('./utils-fc077139.js');
|
|
14
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
15
|
-
require('./bcm-489c9b1a.js');
|
|
16
|
-
|
|
17
|
-
// /**
|
|
18
|
-
// *
|
|
19
|
-
// * @param type
|
|
20
|
-
// */
|
|
21
|
-
// export const required = (value:any) => {
|
|
22
|
-
// if ( value || value != null ) {
|
|
23
|
-
// return true
|
|
24
|
-
// } else {
|
|
25
|
-
// return true
|
|
26
|
-
// }
|
|
27
|
-
// }
|
|
28
|
-
class rules {
|
|
29
|
-
constructor() { }
|
|
30
|
-
response(status, message) {
|
|
31
|
-
return Object.assign(Object.assign({ valid: status }, (message && { message })), (!status && { type: 'error' }));
|
|
32
|
-
}
|
|
33
|
-
required(value, componentValidation) {
|
|
34
|
-
let validation = this.response(true);
|
|
35
|
-
if (value == '' || value == "" || value == undefined || value == null || value === false) {
|
|
36
|
-
validation = this.response(false, 'This field is required');
|
|
37
|
-
}
|
|
38
|
-
if (componentValidation) {
|
|
39
|
-
if (!componentValidation.valid) {
|
|
40
|
-
validation = this.response(false, componentValidation.errorText);
|
|
41
|
-
}
|
|
42
|
-
if (value instanceof Object) {
|
|
43
|
-
if (value.isValid) {
|
|
44
|
-
if (value.isValid == false)
|
|
45
|
-
validation = this.response(false, 'This field is required');
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return validation;
|
|
50
|
-
}
|
|
51
|
-
selfValidation(input) {
|
|
52
|
-
let validation = this.response(true);
|
|
53
|
-
if (input.captionError != null || input.captionType == 'error') {
|
|
54
|
-
validation = this.response(false, input.captionError);
|
|
55
|
-
}
|
|
56
|
-
return validation;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
const validate = new rules;
|
|
60
|
-
|
|
61
|
-
const formCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block;margin-bottom:8px}:host(.hidden){display:none}";
|
|
62
|
-
|
|
63
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
64
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
65
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
66
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
67
|
-
else
|
|
68
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
69
|
-
if (d = decorators[i])
|
|
70
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
71
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
72
|
-
};
|
|
73
|
-
const BcmForm = class {
|
|
74
|
-
constructor(hostRef) {
|
|
75
|
-
index.registerInstance(this, hostRef);
|
|
76
|
-
this.bcmForm = index.createEvent(this, "bcm-form", 7);
|
|
77
|
-
this.formData = {};
|
|
78
|
-
this.inputs = [];
|
|
79
|
-
this.duplicateInput = [];
|
|
80
|
-
this.isValid = true;
|
|
81
|
-
this.returnCaption = [];
|
|
82
|
-
this.Bromcom = {
|
|
83
|
-
errors: {
|
|
84
|
-
targetFormNotExist: 'target form is not exist --> ',
|
|
85
|
-
},
|
|
86
|
-
inputComponents: {
|
|
87
|
-
CHIP_GROUP: 'chip-group',
|
|
88
|
-
// Birbirinin aynısı
|
|
89
|
-
INPUT: 'input',
|
|
90
|
-
TEXTAREA: 'textarea',
|
|
91
|
-
//çok benzer
|
|
92
|
-
SWITCH: 'switch',
|
|
93
|
-
CHECKBOX: 'checkbox',
|
|
94
|
-
RADIO_GROUP: 'radio-group',
|
|
95
|
-
CHECKBOX_GROUP: 'checkbox-group',
|
|
96
|
-
RANGE: 'range',
|
|
97
|
-
// sadece value fırlatıyor
|
|
98
|
-
FORM: 'form',
|
|
99
|
-
FORM_GROUP: 'form-group',
|
|
100
|
-
// *En vakit alacak => içinde select, autocomplete, listbox, treeview özellikleri var
|
|
101
|
-
LIST: 'list',
|
|
102
|
-
//
|
|
103
|
-
COLORPICKER: 'colorpicker',
|
|
104
|
-
DATE: 'date',
|
|
105
|
-
// picker aslında tek komponent hepsi datetimepicker
|
|
106
|
-
DATE_PICKER: 'date-picker',
|
|
107
|
-
TIME_PICKER: 'time-picker',
|
|
108
|
-
DATETIME_PICKER: 'datetime-picker',
|
|
109
|
-
// silinecek komponentler
|
|
110
|
-
SELECT: 'select',
|
|
111
|
-
LISTBOX: 'listbox',
|
|
112
|
-
NUMBER_INPUT: 'number-input',
|
|
113
|
-
},
|
|
114
|
-
helpers: {
|
|
115
|
-
randomId: function () {
|
|
116
|
-
return Math.random().toString(16).slice(2, -1);
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
this._id = (Math.random() * 4).toString(16).replace('.', '');
|
|
121
|
-
this.hidden = false;
|
|
122
|
-
this.validation = false;
|
|
123
|
-
this.name = "";
|
|
124
|
-
this.value = undefined;
|
|
125
|
-
this.autocomplete = false;
|
|
126
|
-
}
|
|
127
|
-
handleSubmit() {
|
|
128
|
-
// if (lowercase(e.target.nodeName) === 'bcm-button') {
|
|
129
|
-
// if (e.target.type === 'submit') {
|
|
130
|
-
// this.submitFunction()
|
|
131
|
-
// }
|
|
132
|
-
// }
|
|
133
|
-
}
|
|
134
|
-
async submitFunction() {
|
|
135
|
-
this.formData = {};
|
|
136
|
-
this.inputs = [];
|
|
137
|
-
this.selector = this.el;
|
|
138
|
-
await this.getInputs();
|
|
139
|
-
await utils.delay(10);
|
|
140
|
-
const usrFrmData = await this.userFormData();
|
|
141
|
-
var formData = { isValid: true, formData: usrFrmData };
|
|
142
|
-
if (this.name) {
|
|
143
|
-
formData = Object.assign(Object.assign({}, formData), { formName: this.name });
|
|
144
|
-
}
|
|
145
|
-
if (this.isValid) {
|
|
146
|
-
this.bcmForm.emit(formData);
|
|
147
|
-
return formData;
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
this.returnCaption = { isValid: false, 'message': 'Please fill in all inputs', 'errorDetails': this.returnCaption, formData: usrFrmData };
|
|
151
|
-
if (this.name) {
|
|
152
|
-
this.returnCaption = Object.assign(Object.assign({}, this.returnCaption), { formName: this.name });
|
|
153
|
-
}
|
|
154
|
-
this.bcmForm.emit(this.returnCaption);
|
|
155
|
-
return this.returnCaption;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
async submit() {
|
|
159
|
-
return Promise.resolve(this.submitFunction());
|
|
160
|
-
}
|
|
161
|
-
async set(data) {
|
|
162
|
-
var _a;
|
|
163
|
-
const validate = this.validation;
|
|
164
|
-
this.validation = false;
|
|
165
|
-
this.selector = this.el;
|
|
166
|
-
await this.getInputs();
|
|
167
|
-
if (data && ((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
168
|
-
for (const key of Object.keys(data)) {
|
|
169
|
-
const item = this.inputs.find(item => item.name === key);
|
|
170
|
-
if (item) {
|
|
171
|
-
try {
|
|
172
|
-
await item.set(data[key]);
|
|
173
|
-
}
|
|
174
|
-
catch (error) {
|
|
175
|
-
console.log(item.nodeName, "set", error);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
this.validation = validate;
|
|
181
|
-
}
|
|
182
|
-
async get() {
|
|
183
|
-
var _a;
|
|
184
|
-
let formData = {};
|
|
185
|
-
this.selector = this.el;
|
|
186
|
-
const inputsCache = this.inputs;
|
|
187
|
-
await this.getInputs();
|
|
188
|
-
((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.inputs.forEach(async (item) => {
|
|
189
|
-
try {
|
|
190
|
-
const value = await item.get();
|
|
191
|
-
formData = Object.assign(Object.assign({}, formData), { [item.name]: value });
|
|
192
|
-
}
|
|
193
|
-
catch (error) {
|
|
194
|
-
console.log(`${item.nodeName} get error`);
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
this.inputs = inputsCache;
|
|
198
|
-
await utils.delay(10);
|
|
199
|
-
return Promise.resolve(formData);
|
|
200
|
-
}
|
|
201
|
-
async setClear() {
|
|
202
|
-
this.formData = {};
|
|
203
|
-
this.inputs = [];
|
|
204
|
-
this.selector = this.el;
|
|
205
|
-
let clear = [];
|
|
206
|
-
await this.getInputs();
|
|
207
|
-
this.inputs.forEach(async (item) => {
|
|
208
|
-
try {
|
|
209
|
-
clear.push(await item.setClear());
|
|
210
|
-
}
|
|
211
|
-
catch (error) {
|
|
212
|
-
console.log(error);
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
await Promise.all(clear).then(() => {
|
|
216
|
-
this.formData = {};
|
|
217
|
-
this.inputs = [];
|
|
218
|
-
this.duplicateInput = [];
|
|
219
|
-
this.isValid = true;
|
|
220
|
-
this.returnCaption = [];
|
|
221
|
-
});
|
|
222
|
-
await utils.delay(10);
|
|
223
|
-
return Promise.resolve(true);
|
|
224
|
-
}
|
|
225
|
-
async resetCaption() {
|
|
226
|
-
await utils.delay(10);
|
|
227
|
-
this.formData = {};
|
|
228
|
-
this.inputs = [];
|
|
229
|
-
this.selector = this.el;
|
|
230
|
-
await this.getInputs();
|
|
231
|
-
for (const item of this.inputs) {
|
|
232
|
-
try {
|
|
233
|
-
await item.resetCaption();
|
|
234
|
-
}
|
|
235
|
-
catch (error) {
|
|
236
|
-
console.log(item.nodeName, "rc p");
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
await utils.delay(10);
|
|
240
|
-
return Promise.resolve();
|
|
241
|
-
}
|
|
242
|
-
async config(_config) {
|
|
243
|
-
if (_config['validation']) {
|
|
244
|
-
typeof _config['validation'] == 'boolean'
|
|
245
|
-
? this.validation = _config['validation']
|
|
246
|
-
: this.validation = false;
|
|
247
|
-
}
|
|
248
|
-
return true;
|
|
249
|
-
}
|
|
250
|
-
async getInputs() {
|
|
251
|
-
var form = this.selector;
|
|
252
|
-
if (!form) {
|
|
253
|
-
console.warn(this.Bromcom.errors.targetFormNotExist + this.selector);
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
const inputs = Array.from(form.querySelectorAll('bcm-' + Object.values(this.Bromcom.inputComponents).join(',bcm-')));
|
|
257
|
-
this.duplicateInput = [];
|
|
258
|
-
// s-hn: Stencil private flag that contains host web component
|
|
259
|
-
// https://github.com/ionic-team/stencil/blob/45388e95edb46ef357eb9ae37cd32bbb5bc1ed23/src/runtime/vdom/vdom-render.ts#L116
|
|
260
|
-
const rootInputs = inputs.filter((input) => { var _a; return !input['s-hn'] || ((_a = input['s-hn']) === null || _a === void 0 ? void 0 : _a.nodeName) !== 'BcmForm'; });
|
|
261
|
-
// debugger;
|
|
262
|
-
for (const item of rootInputs) {
|
|
263
|
-
if (stringHelper.StringHelper.lowercase(item.nodeName) == "bcm-checkbox-group") {
|
|
264
|
-
let checkboxs = item.querySelectorAll("bcm-checkbox");
|
|
265
|
-
if (checkboxs) {
|
|
266
|
-
for (const checkbox of checkboxs) {
|
|
267
|
-
this.duplicateInput.push(checkbox.name);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
if (stringHelper.StringHelper.lowercase(item.nodeName) == "bcm-form") {
|
|
272
|
-
const groupInputs = Array.from(item.querySelectorAll('bcm-' + Object.values(this.Bromcom.inputComponents).join(',bcm-')));
|
|
273
|
-
let itemObject = {};
|
|
274
|
-
for (const element of groupInputs) {
|
|
275
|
-
var name = element.name;
|
|
276
|
-
var value = element.value;
|
|
277
|
-
itemObject = Object.assign(Object.assign({}, itemObject), { [name]: value });
|
|
278
|
-
this.duplicateInput.push(element.name);
|
|
279
|
-
}
|
|
280
|
-
item.value = itemObject;
|
|
281
|
-
let checkboxs = item.querySelectorAll("bcm-checkbox");
|
|
282
|
-
if (checkboxs) {
|
|
283
|
-
for (const checkbox of checkboxs) {
|
|
284
|
-
this.duplicateInput.push(checkbox.name);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
await utils.delay(10);
|
|
290
|
-
this.inputs = rootInputs;
|
|
291
|
-
}
|
|
292
|
-
getItemValue(item) {
|
|
293
|
-
const tagName = item.tagName.toLowerCase().replace('bcm-', '');
|
|
294
|
-
switch (tagName) {
|
|
295
|
-
/* case 'date-picker':
|
|
296
|
-
case 'datetime-picker':
|
|
297
|
-
return item.value.timestamp
|
|
298
|
-
case 'time-picker':
|
|
299
|
-
return item.value.time */
|
|
300
|
-
default:
|
|
301
|
-
return item.value;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
isWrapperComponent(item) {
|
|
305
|
-
return ['bcm-datetime-picker', 'bcm-date-picker', 'bcm-time-picker'].includes(item.toLowerCase());
|
|
306
|
-
}
|
|
307
|
-
isGroupComponent(item) {
|
|
308
|
-
return ['bcm-checkbox-group'].includes(item.toLowerCase());
|
|
309
|
-
}
|
|
310
|
-
isListComponent(item) {
|
|
311
|
-
return ['bcm-list'].includes(item.toLowerCase());
|
|
312
|
-
}
|
|
313
|
-
async userFormData() {
|
|
314
|
-
this.formData = {};
|
|
315
|
-
this.isValid = true;
|
|
316
|
-
this.returnCaption = [];
|
|
317
|
-
for (const item of this.inputs) {
|
|
318
|
-
// const isListComponent = this.isListComponent(item.tagName);
|
|
319
|
-
const isGroupComponent = this.isGroupComponent(item.tagName);
|
|
320
|
-
const isWrapperComponent = this.isWrapperComponent(item.tagName);
|
|
321
|
-
const wrapperComponent = isWrapperComponent && item;
|
|
322
|
-
const input = isWrapperComponent
|
|
323
|
-
? await item.getInput() && item
|
|
324
|
-
: item;
|
|
325
|
-
// input.caption = ''
|
|
326
|
-
// input.captionType = ''
|
|
327
|
-
if (this.validation) {
|
|
328
|
-
let valid = null;
|
|
329
|
-
// if (isListComponent) {
|
|
330
|
-
// valid = !(input.value && input.value.length > 0) && validate.required(input.value)
|
|
331
|
-
// } else
|
|
332
|
-
if (isWrapperComponent) {
|
|
333
|
-
const isPickerValid = await wrapperComponent.isValid();
|
|
334
|
-
valid = validate.required(input.value, isPickerValid);
|
|
335
|
-
if (valid) {
|
|
336
|
-
if (input.value instanceof Object) {
|
|
337
|
-
if (input.value["isValid"] == false) {
|
|
338
|
-
valid = validate.required("", isPickerValid);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
valid = validate.required(input.value, isPickerValid);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
else if (isGroupComponent) {
|
|
347
|
-
const childsCheckbox = utils.getChildElements(input, 'bcm-checkbox:not(#bcm-indeterminate-element)');
|
|
348
|
-
if (childsCheckbox && childsCheckbox.length > 0) {
|
|
349
|
-
for (const element of childsCheckbox) {
|
|
350
|
-
if (element && element.required === true) {
|
|
351
|
-
valid = validate.required(element.checked);
|
|
352
|
-
if (!valid['valid']) {
|
|
353
|
-
element.noCaption = false;
|
|
354
|
-
element.captionError = valid['message'];
|
|
355
|
-
element.captionType = valid['type'];
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
element.noCaption = input.noCaption;
|
|
359
|
-
element.captionError = null;
|
|
360
|
-
element.captionType = "default";
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
valid = validate.required(input.value);
|
|
368
|
-
}
|
|
369
|
-
if (input.required) {
|
|
370
|
-
if (!valid['valid']) {
|
|
371
|
-
input.captionError = valid['message'];
|
|
372
|
-
input.captionType = valid['type'];
|
|
373
|
-
}
|
|
374
|
-
else {
|
|
375
|
-
input.captionError = null;
|
|
376
|
-
input.captionType = "default";
|
|
377
|
-
}
|
|
378
|
-
await utils.delay(10);
|
|
379
|
-
const selfValidation = validate.selfValidation(input);
|
|
380
|
-
if (valid['valid']) {
|
|
381
|
-
if (!selfValidation['valid']) {
|
|
382
|
-
input.captionError = selfValidation['message'];
|
|
383
|
-
input.captionType = selfValidation['type'];
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
let name = input.name;
|
|
388
|
-
let value = input.captionError;
|
|
389
|
-
!input.hidden && input.captionType == 'error' && (this.returnCaption = [...Array.from(this.returnCaption), { [name]: value }],
|
|
390
|
-
this.isValid = false);
|
|
391
|
-
}
|
|
392
|
-
if (input.name && !this.duplicateInput.includes(input.name)) {
|
|
393
|
-
var itemValue = this.getItemValue(input);
|
|
394
|
-
if (!itemValue || itemValue == undefined || itemValue == null) {
|
|
395
|
-
itemValue = null;
|
|
396
|
-
}
|
|
397
|
-
this.formData[input.name] = itemValue;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
return this.formData;
|
|
401
|
-
}
|
|
402
|
-
async handleChange(e) {
|
|
403
|
-
const isWrapperComponent = this.isWrapperComponent(e.target.tagName);
|
|
404
|
-
const isGroupComponent = this.isGroupComponent(e.target.tagName);
|
|
405
|
-
let target;
|
|
406
|
-
if (isWrapperComponent) {
|
|
407
|
-
target = e.target.getInput && await e.target.getInput() || e.target;
|
|
408
|
-
}
|
|
409
|
-
else if (isGroupComponent) {
|
|
410
|
-
let req = false;
|
|
411
|
-
const childsCheckbox = utils.getChildElements(e.target, 'bcm-checkbox:not(#bcm-indeterminate-element)');
|
|
412
|
-
childsCheckbox.length > 0 && (childsCheckbox.forEach((element) => {
|
|
413
|
-
if (element && element.required === true) {
|
|
414
|
-
req = true;
|
|
415
|
-
}
|
|
416
|
-
}));
|
|
417
|
-
target = Object.assign(Object.assign({}, e.target), { required: req });
|
|
418
|
-
}
|
|
419
|
-
else {
|
|
420
|
-
target = e.target;
|
|
421
|
-
}
|
|
422
|
-
const value = e.target.value;
|
|
423
|
-
const wrapperComponent = isWrapperComponent && e.target;
|
|
424
|
-
var isPickerValid;
|
|
425
|
-
if (isWrapperComponent) {
|
|
426
|
-
isPickerValid = await wrapperComponent.isValid();
|
|
427
|
-
}
|
|
428
|
-
const tick = setTimeout(() => {
|
|
429
|
-
if (target.required) {
|
|
430
|
-
let valid = null;
|
|
431
|
-
if (isWrapperComponent) {
|
|
432
|
-
valid = validate.required(value, isPickerValid);
|
|
433
|
-
if (valid) {
|
|
434
|
-
if (value instanceof Object) {
|
|
435
|
-
if (value["isValid"] == false) {
|
|
436
|
-
valid = validate.required("", isPickerValid);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
valid = validate.required(value, isPickerValid);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
else if (isGroupComponent) {
|
|
445
|
-
const childsCheckbox = utils.getChildElements(e.target, 'bcm-checkbox:not(#bcm-indeterminate-element)');
|
|
446
|
-
childsCheckbox.length > 0 && (childsCheckbox.forEach((element) => {
|
|
447
|
-
if (element && element.required === true) {
|
|
448
|
-
valid = validate.required(element.checked);
|
|
449
|
-
if (!valid['valid']) {
|
|
450
|
-
element.noCaption = false;
|
|
451
|
-
element.captionError = valid['message'];
|
|
452
|
-
element.captionType = valid['type'];
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
element.noCaption = e.target.noCaption;
|
|
456
|
-
element.captionError = null;
|
|
457
|
-
element.captionType = "default";
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}));
|
|
461
|
-
}
|
|
462
|
-
else {
|
|
463
|
-
valid = validate.required(value);
|
|
464
|
-
}
|
|
465
|
-
if (valid['valid']) {
|
|
466
|
-
target.captionError = null;
|
|
467
|
-
target.captionType = null;
|
|
468
|
-
}
|
|
469
|
-
else {
|
|
470
|
-
target.captionError = valid['message'];
|
|
471
|
-
target.captionType = valid['type'];
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
clearTimeout(tick);
|
|
475
|
-
});
|
|
476
|
-
this.value = await this.userFormData();
|
|
477
|
-
}
|
|
478
|
-
async handleSubmitForm(e) {
|
|
479
|
-
e.preventDefault();
|
|
480
|
-
}
|
|
481
|
-
render() {
|
|
482
|
-
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
|
|
483
|
-
return (index.h(index.Host, { class: hostClasses }, index.h("form", { class: "bcm-form", autocomplete: this.autocomplete ? "on" : "off" }, index.h("slot", null))));
|
|
484
|
-
}
|
|
485
|
-
get el() { return index.getElement(this); }
|
|
486
|
-
};
|
|
487
|
-
__decorate([
|
|
488
|
-
isLoadDecorator.IsLoad()
|
|
489
|
-
], BcmForm.prototype, "el", void 0);
|
|
490
|
-
BcmForm.style = formCss;
|
|
491
|
-
|
|
492
|
-
exports.bcm_form = BcmForm;
|