bromcom-ui 2.10.1-rc.0 → 2.10.1-rc.10
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-000670b6.js +5 -0
- package/dist/bromcom-ui/{p-401a6ab5.entry.js → p-073d177e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa08ba52.entry.js → p-07e9b5e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-0fc73cca.entry.js +5 -0
- package/dist/bromcom-ui/{p-fcc6f71e.js → p-125d6ed0.js} +1 -1
- package/dist/bromcom-ui/{p-4438d629.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6b5ed4d8.js → p-157359d6.js} +1 -1
- package/dist/bromcom-ui/{p-05bd4980.entry.js → p-16450a8b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e037ee2b.js → p-170cf07d.js} +1 -1
- package/dist/bromcom-ui/{p-3bae35e5.entry.js → p-175eb1c7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7c94a7b0.entry.js → p-17c0a72a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-51ba92e5.entry.js → p-17eb0140.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5a97d31c.entry.js → p-18d28737.entry.js} +1 -1
- package/dist/bromcom-ui/{p-08159d00.entry.js → p-19f27bd8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-95a2c489.entry.js → p-1c801d0c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e32ab4da.entry.js → p-1c9314bd.entry.js} +1 -1
- package/dist/bromcom-ui/p-1f5ca41b.entry.js +5 -0
- package/dist/bromcom-ui/p-21cb3cfe.entry.js +5 -0
- package/dist/bromcom-ui/p-228c74e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-1d04942a.entry.js → p-23eb79ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-18bc4e04.entry.js → p-26290ed5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-188b9079.entry.js → p-2aaeb247.entry.js} +1 -1
- package/dist/bromcom-ui/{p-552dfb63.entry.js → p-2d965b60.entry.js} +1 -1
- package/dist/bromcom-ui/p-32d93221.entry.js +21 -0
- package/dist/bromcom-ui/p-33513345.entry.js +5 -0
- package/dist/bromcom-ui/{p-61ad661f.entry.js → p-3b5c36e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dca22282.entry.js → p-3f127ea5.entry.js} +1 -1
- package/dist/bromcom-ui/p-40b85b9b.entry.js +5 -0
- package/dist/bromcom-ui/{p-2ce15cc8.entry.js → p-424b7562.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0efc9196.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/{p-da20e681.entry.js → p-43a1f84c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c851688d.entry.js → p-4e436468.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e5f5f36.js → p-518b9b80.js} +1 -1
- package/dist/bromcom-ui/{p-be6595a2.entry.js → p-51b6a14a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-32fd9854.js → p-52b7fc24.js} +1 -1
- package/dist/bromcom-ui/p-56187d14.entry.js +5 -0
- package/dist/bromcom-ui/{p-468157a0.entry.js → p-5699f67d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d4755f0d.entry.js → p-58d5775f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dd1a0284.entry.js → p-594953e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-5b96272e.entry.js +5 -0
- package/dist/bromcom-ui/{p-21fed956.entry.js → p-5bf620b2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d8067b9.entry.js → p-5c671967.entry.js} +1 -1
- package/dist/bromcom-ui/{p-599889d7.entry.js → p-5fc49f6f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-00e1c9bb.entry.js → p-60a12878.entry.js} +1 -1
- package/dist/bromcom-ui/p-61314a43.js +5 -0
- package/dist/bromcom-ui/{p-5dd45752.entry.js → p-6153f889.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4798d827.js → p-61db1f1f.js} +1 -1
- package/dist/bromcom-ui/{p-7a89243a.entry.js → p-626b805d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a313fba6.js → p-6369b73b.js} +1 -1
- package/dist/bromcom-ui/{p-6660ba14.entry.js → p-643a09b4.entry.js} +1 -1
- package/dist/bromcom-ui/p-64999c43.entry.js +5 -0
- package/dist/bromcom-ui/p-64fad38b.js +11 -0
- package/dist/bromcom-ui/{p-3b079331.entry.js → p-67343ad8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-48f5a3c9.entry.js → p-69260d36.entry.js} +1 -1
- package/dist/bromcom-ui/{p-034bbcdd.js → p-6edf985f.js} +1 -1
- package/dist/bromcom-ui/{p-197aba37.js → p-74e6d2b6.js} +1 -1
- package/dist/bromcom-ui/{p-47df8e77.entry.js → p-79712823.entry.js} +1 -1
- package/dist/bromcom-ui/{p-03337609.entry.js → p-7c5763cc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-181f2f4a.entry.js → p-7d18ce0e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ddb6f31a.entry.js → p-7e2da99e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/{p-0db33506.entry.js → p-841f2b60.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/{p-ab3cd547.entry.js → p-8c3a6509.entry.js} +1 -1
- package/dist/bromcom-ui/p-8c610886.js +5 -0
- package/dist/bromcom-ui/{p-5efc5c02.entry.js → p-8e772077.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61334720.entry.js → p-8fbdb72f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-91623d42.entry.js → p-910c935f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8e5e362a.js → p-9850cbce.js} +1 -1
- package/dist/bromcom-ui/{p-f9119bec.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/p-9ac757e9.entry.js +5 -0
- package/dist/bromcom-ui/{p-d345d37b.entry.js → p-9da1d897.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d3bd9ee0.entry.js → p-9f1e6daa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cd724916.js → p-a1477028.js} +1 -1
- package/dist/bromcom-ui/p-a25c8a55.js +5 -0
- package/dist/bromcom-ui/{p-0207059a.js → p-a58b2664.js} +1 -1
- package/dist/bromcom-ui/{p-1a33d7a3.entry.js → p-a664cc20.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8fa5700a.entry.js → p-a835bff0.entry.js} +1 -1
- package/dist/bromcom-ui/p-a889681e.entry.js +5 -0
- package/dist/bromcom-ui/{p-1ba21e9c.entry.js → p-aab72ea1.entry.js} +1 -1
- package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
- package/dist/bromcom-ui/p-ae57f046.entry.js +5 -0
- package/dist/bromcom-ui/{p-035c6dbc.entry.js → p-afde516e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6e7bb16f.entry.js → p-ba9eff2a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-107f11df.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0c8abcd8.entry.js → p-c977ed98.entry.js} +1 -1
- package/dist/bromcom-ui/p-cfd52d5f.entry.js +5 -0
- package/dist/bromcom-ui/{p-63138ee5.entry.js → p-d551a51d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9988c3c.entry.js → p-da5fdda2.entry.js} +1 -1
- package/dist/bromcom-ui/p-e19a8e73.entry.js +5 -0
- package/dist/bromcom-ui/{p-4542066c.js → p-e2aaaece.js} +1 -1
- package/dist/bromcom-ui/{p-a42879c1.entry.js → p-e6faa2bb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-751baf81.entry.js → p-ec36f5a0.entry.js} +1 -1
- package/dist/bromcom-ui/p-ec992ac3.entry.js +5 -0
- package/dist/bromcom-ui/{p-f4576a4f.entry.js → p-ecd8d70f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4d7ea23c.entry.js → p-ece578ef.entry.js} +1 -1
- package/dist/bromcom-ui/p-edbdd7dd.js +5 -0
- package/dist/bromcom-ui/{p-daa45693.entry.js → p-f077a1d7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-704352eb.entry.js → p-f2776268.entry.js} +1 -1
- package/dist/bromcom-ui/p-f800e665.js +5 -0
- package/dist/bromcom-ui/{p-2d59be96.js → p-f83b3048.js} +1 -1
- package/dist/bromcom-ui/{p-c39f002b.js → p-fed84581.js} +1 -1
- package/dist/bromcom-ui/{p-1e8559ac.entry.js → p-fff1a0f9.entry.js} +1 -1
- package/dist/cjs/{bcm-489c9b1a.js → bcm-3c58a6d5.js} +28 -28
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-button_15.cjs.entry.js +37832 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +47 -0
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +20 -22
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -3
- package/dist/cjs/bcm-chip-group.cjs.entry.js +8 -9
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +6 -6
- package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +7 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +6 -6
- package/dist/cjs/bcm-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
- package/dist/cjs/bcm-form-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-items.cjs.entry.js +4 -4
- package/dist/cjs/bcm-link.cjs.entry.js +1 -1
- package/dist/cjs/bcm-menu.cjs.entry.js +8 -8
- 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 +6 -6
- package/dist/cjs/bcm-modal.cjs.entry.js +5 -5
- package/dist/cjs/bcm-number-input.cjs.entry.js +109 -0
- package/dist/cjs/bcm-old-input.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
- package/dist/cjs/bcm-popover.cjs.entry.js +7 -7
- package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
- package/dist/cjs/bcm-radio-group.cjs.entry.js +7 -7
- package/dist/cjs/bcm-radio.cjs.entry.js +6 -6
- package/dist/cjs/bcm-range.cjs.entry.js +3 -3
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +6 -6
- package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +7 -7
- package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -6
- package/dist/cjs/bcm-table.cjs.entry.js +6 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
- package/dist/cjs/bcm-text.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +6 -6
- package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-toast.cjs.entry.js +4 -4
- package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/caption-template-6f535b93.js +32 -0
- package/dist/cjs/{floating-ui-21890d11.js → floating-ui-555cd3d4.js} +1 -1
- package/dist/cjs/{generate-e214b3de.js → generate-c3a6c8c7.js} +15 -1
- package/dist/cjs/{global-532b40dc.js → global-9e8b5009.js} +1 -1
- package/dist/cjs/{input-template-2b8e0195.js → input-template-8eeb94e7.js} +2 -2
- package/dist/cjs/{json-parse-decarator-668b7724.js → json-parse-decarator-0932bec0.js} +1 -1
- package/dist/cjs/label-template-a6f51ef2.js +27 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-3a911c0f.js → number-helper-4e902d31.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
- package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/{package-f9f70acc.js → package-b23f7b7f.js} +1 -1
- package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-9b4b4153.js} +1 -1
- package/dist/cjs/{slot-template-c8e2816c.js → slot-template-80b019d5.js} +1 -1
- package/dist/cjs/{stepper-states-7d2f2235.js → stepper-states-cb2339c3.js} +1 -1
- package/dist/cjs/{string-helper-f9184277.js → string-helper-3212f4ea.js} +1 -1
- package/dist/cjs/{tooltip-helper-410ac258.js → tooltip-helper-4ddec3b4.js} +6 -6
- package/dist/cjs/{validators-910556c5.js → validators-e2155072.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/atoms/caption/caption.js +195 -0
- package/dist/collection/components/atoms/label/label.js +48 -29
- package/dist/collection/components/molecules/checkbox/checkbox.css +0 -89
- package/dist/collection/components/molecules/input/input.css +0 -89
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +0 -89
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +1 -1
- package/dist/collection/components/{atoms/label/label.css → molecules/number-input/number-input.css} +12 -33
- package/dist/collection/components/molecules/number-input/number-input.js +425 -0
- package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
- package/dist/collection/components/molecules/search/search.css +0 -89
- package/dist/collection/components/molecules/switch/switch.css +1 -89
- package/dist/collection/components/molecules/textarea/textarea.css +0 -89
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -89
- package/dist/collection/components/organism/list/list.css +2 -89
- package/dist/collection/components/organism/list/list.js +83 -15
- package/dist/collection/components/other_deprecated/old-input/old-input.css +0 -89
- package/dist/collection/components/third-parts/colorful/colorful.css +0 -89
- package/dist/collection/components/third-parts/rc-picker/date.js +7 -5
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1 -376
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +3 -16
- package/dist/collection/helper/generate.js +14 -0
- package/dist/collection/models/bcm.js +28 -28
- package/dist/collection/stories/ui-library/components/date/argTypes_common.js +203 -0
- package/dist/collection/stories/ui-library/components/date/argTypes_date.js +47 -0
- package/dist/collection/stories/ui-library/components/date/argTypes_datetime.js +109 -0
- package/dist/collection/stories/ui-library/components/date/argTypes_time.js +91 -0
- package/dist/collection/templates/caption-template.js +15 -11
- package/dist/collection/templates/label-template.js +9 -7
- package/dist/collection/templates/list-item-template.js +3 -2
- package/dist/collection/templates/list-template.js +2 -2
- package/dist/components/bcm-caption.d.ts +11 -0
- package/dist/components/bcm-caption.js +64 -0
- package/dist/components/bcm-checkbox-group.js +7 -8
- package/dist/components/bcm-chip-group.js +1 -2
- package/dist/components/bcm-date.js +26 -7
- package/dist/components/bcm-input-dropdown.js +3 -3
- package/dist/components/bcm-number-input.d.ts +11 -0
- package/dist/components/bcm-number-input.js +157 -0
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm.js +28 -28
- package/dist/components/caption-template.js +15 -17
- package/dist/components/checkbox.js +1 -1
- package/dist/components/colorful.js +1 -1
- package/dist/components/datetime-picker.js +2 -3
- package/dist/components/generate.js +15 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/input.js +1 -1
- package/dist/components/label.js +46 -20
- package/dist/components/list.js +49 -18
- package/dist/components/old-input.js +1 -1
- package/dist/components/rc-picker.js +4 -17
- package/dist/components/search.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
- package/dist/esm/{bcm-a50d55ba.js → bcm-0f9cc27c.js} +28 -28
- package/dist/esm/bcm-accordion.entry.js +5 -5
- package/dist/esm/bcm-alert.entry.js +9 -9
- package/dist/esm/bcm-attendance.entry.js +5 -5
- package/dist/esm/bcm-autocomplete.entry.js +3 -3
- package/dist/esm/bcm-avatar_2.entry.js +12 -12
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +6 -6
- package/dist/esm/bcm-button-group.entry.js +8 -8
- package/dist/esm/bcm-button_15.entry.js +37814 -0
- package/dist/esm/bcm-caption.entry.js +43 -0
- package/dist/esm/bcm-card.entry.js +11 -11
- package/dist/esm/bcm-checkbox-group.entry.js +17 -19
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
- package/dist/esm/bcm-chip-group.entry.js +15 -16
- package/dist/esm/bcm-chip.entry.js +8 -8
- package/dist/esm/bcm-collapse-group.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +12 -12
- 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 +14 -15
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-drawer.entry.js +13 -13
- package/dist/esm/bcm-dropdown.entry.js +9 -9
- package/dist/esm/bcm-error-layout.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +10 -10
- 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-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +17 -17
- package/dist/esm/bcm-item.entry.js +9 -9
- package/dist/esm/bcm-items.entry.js +7 -7
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-menu.entry.js +16 -16
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +13 -13
- package/dist/esm/bcm-modal-2-header.entry.js +12 -12
- package/dist/esm/bcm-modal-2.entry.js +13 -13
- package/dist/esm/bcm-modal.entry.js +9 -9
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-number-input.entry.js +105 -0
- package/dist/esm/bcm-old-input.entry.js +6 -6
- package/dist/esm/bcm-old-tag_2.entry.js +4 -4
- package/dist/esm/bcm-overlay_2.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +11 -11
- package/dist/esm/bcm-popconfirm.entry.js +7 -7
- package/dist/esm/bcm-popover.entry.js +13 -13
- package/dist/esm/bcm-progress.entry.js +9 -9
- package/dist/esm/bcm-radio-group.entry.js +15 -15
- package/dist/esm/bcm-radio.entry.js +13 -13
- package/dist/esm/bcm-range.entry.js +8 -8
- 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-select.entry.js +6 -6
- package/dist/esm/bcm-shortcut.entry.js +13 -13
- package/dist/esm/bcm-skeleton.entry.js +12 -12
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +15 -15
- package/dist/esm/bcm-tab-group.entry.js +12 -12
- package/dist/esm/bcm-tab-item-header.entry.js +13 -13
- package/dist/esm/bcm-tab-item.entry.js +12 -12
- package/dist/esm/bcm-tab-pane.entry.js +3 -3
- package/dist/esm/bcm-tab.entry.js +3 -3
- package/dist/esm/bcm-table.entry.js +13 -13
- package/dist/esm/bcm-tabs-content.entry.js +4 -4
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +9 -9
- package/dist/esm/bcm-text.entry.js +9 -9
- package/dist/esm/bcm-textarea.entry.js +12 -12
- 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 +9 -9
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bcm-typography.entry.js +17 -0
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/caption-template-0c32ce16.js +30 -0
- package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-845ba523.js} +2 -2
- package/dist/esm/{colors-e1c31f79.js → colors-ebea297f.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{floating-ui-3f4394da.js → floating-ui-a4e67246.js} +1 -1
- package/dist/esm/{generate-7d1e216b.js → generate-80f589b2.js} +16 -2
- package/dist/esm/{global-34d95eec.js → global-9afe304c.js} +2 -2
- package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
- package/dist/esm/{index-4614b7f0.js → index-0615c2b8.js} +1 -1
- package/dist/esm/{index-f38e3364.js → index-7e71bbc8.js} +1 -1
- package/dist/esm/{input-template-1df1e8d3.js → input-template-a5d07ba6.js} +4 -4
- package/dist/esm/{is-load-decorator-b8ca22f2.js → is-load-decorator-8277e3b8.js} +1 -1
- package/dist/esm/{json-parse-decarator-19a0db7a.js → json-parse-decarator-5195f510.js} +2 -2
- package/dist/esm/label-template-ad2e8119.js +25 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-a5eab393.js → number-helper-aeb5881f.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +13 -13
- package/dist/esm/old-bcm-popover.entry.js +7 -7
- package/dist/esm/{package-e0577fef.js → package-5e39e390.js} +1 -1
- package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-279ce860.js} +1 -1
- package/dist/esm/{slot-template-08ed1fe4.js → slot-template-9234df88.js} +2 -2
- package/dist/esm/{stepper-states-10d7b726.js → stepper-states-97a648ff.js} +3 -3
- package/dist/esm/{string-helper-85990695.js → string-helper-8f5da9ec.js} +2 -2
- package/dist/esm/{tooltip-helper-59b661f8.js → tooltip-helper-d339c58a.js} +9 -9
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-7979c137.js → validators-b5e106d5.js} +1 -1
- package/dist/types/components/atoms/caption/caption.d.ts +14 -0
- package/dist/types/components/atoms/label/label.d.ts +3 -3
- package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
- package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
- package/dist/types/components/organism/list/list.d.ts +5 -1
- package/dist/types/components.d.ts +90 -7
- package/dist/types/helper/generate.d.ts +3 -0
- package/dist/types/models/bcm.d.ts +3 -0
- package/dist/types/templates/caption-template.d.ts +1 -1
- package/dist/types/templates/label-template.d.ts +2 -1
- package/dist/types/templates/list-template.d.ts +1 -0
- package/package.json +2 -2
- package/dist/bromcom-ui/p-036877be.entry.js +0 -5
- package/dist/bromcom-ui/p-0d2b8bc4.entry.js +0 -5
- package/dist/bromcom-ui/p-1daf0fe1.entry.js +0 -5
- package/dist/bromcom-ui/p-2a5d176d.js +0 -5
- package/dist/bromcom-ui/p-2cbda5aa.entry.js +0 -5
- package/dist/bromcom-ui/p-3182df7e.js +0 -10
- package/dist/bromcom-ui/p-32df2233.js +0 -5
- package/dist/bromcom-ui/p-3ccb15ef.entry.js +0 -5
- package/dist/bromcom-ui/p-4213ba24.js +0 -5
- package/dist/bromcom-ui/p-43598b88.entry.js +0 -5
- package/dist/bromcom-ui/p-4a7c2381.entry.js +0 -5
- package/dist/bromcom-ui/p-5ea9881d.entry.js +0 -5
- package/dist/bromcom-ui/p-64ddda1d.entry.js +0 -5
- package/dist/bromcom-ui/p-6d0a02d7.entry.js +0 -5
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +0 -5
- package/dist/bromcom-ui/p-76edf59f.js +0 -7
- package/dist/bromcom-ui/p-77035c08.entry.js +0 -5
- package/dist/bromcom-ui/p-7a4cc259.js +0 -5
- package/dist/bromcom-ui/p-7e3209a0.js +0 -14
- package/dist/bromcom-ui/p-8291e20e.js +0 -5
- package/dist/bromcom-ui/p-82a5033e.js +0 -5
- package/dist/bromcom-ui/p-85d8092e.entry.js +0 -5
- package/dist/bromcom-ui/p-8fbc35e7.entry.js +0 -5
- package/dist/bromcom-ui/p-903cbe6a.entry.js +0 -5
- package/dist/bromcom-ui/p-9339510a.entry.js +0 -5
- package/dist/bromcom-ui/p-94a8408e.entry.js +0 -5
- package/dist/bromcom-ui/p-a0909a04.entry.js +0 -5
- package/dist/bromcom-ui/p-b1a70ec2.entry.js +0 -5
- package/dist/bromcom-ui/p-ba315064.entry.js +0 -5
- package/dist/bromcom-ui/p-bb739bf8.entry.js +0 -5
- package/dist/bromcom-ui/p-bed627ab.js +0 -11
- package/dist/bromcom-ui/p-ec90b2c7.entry.js +0 -5
- package/dist/bromcom-ui/p-fce1d13c.entry.js +0 -5
- package/dist/bromcom-ui/p-ff5acf88.entry.js +0 -5
- package/dist/cjs/bcm-button.cjs.entry.js +0 -372
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -17624
- package/dist/cjs/bcm-date.cjs.entry.js +0 -182
- package/dist/cjs/bcm-form.cjs.entry.js +0 -489
- package/dist/cjs/bcm-icon.cjs.entry.js +0 -39
- package/dist/cjs/bcm-label_2.cjs.entry.js +0 -126
- package/dist/cjs/bcm-linked.cjs.entry.js +0 -219
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2516
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9404
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/caption-template-81dbc490.js +0 -34
- package/dist/cjs/index-3d67f613.js +0 -1610
- package/dist/cjs/index-e05a7c6f.js +0 -545
- package/dist/cjs/label-template-d9bee58a.js +0 -23
- package/dist/cjs/moment-d06b012f.js +0 -4601
- package/dist/components/label-template.js +0 -21
- package/dist/esm/bcm-button.entry.js +0 -368
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-colorful_2.entry.js +0 -17619
- package/dist/esm/bcm-date.entry.js +0 -178
- package/dist/esm/bcm-form.entry.js +0 -485
- package/dist/esm/bcm-icon.entry.js +0 -35
- package/dist/esm/bcm-label_2.entry.js +0 -121
- package/dist/esm/bcm-linked.entry.js +0 -215
- package/dist/esm/bcm-list_3.entry.js +0 -2510
- package/dist/esm/bcm-rc-picker.entry.js +0 -9400
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/caption-template-a1a968fd.js +0 -32
- package/dist/esm/index-a6d9d0af.js +0 -541
- package/dist/esm/index-c4568336.js +0 -1594
- package/dist/esm/label-template-639fcd41.js +0 -21
- package/dist/esm/moment-15cd9198.js +0 -4598
|
@@ -1,182 +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 isLoadDecorator = require('./is-load-decorator-15036f37.js');
|
|
11
|
-
require('./color-helper-c3a819ea.js');
|
|
12
|
-
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
-
const generate = require('./generate-e214b3de.js');
|
|
14
|
-
require('./number-helper-3a911c0f.js');
|
|
15
|
-
require('./string-helper-f9184277.js');
|
|
16
|
-
require('./validators-910556c5.js');
|
|
17
|
-
require('./element-dragger-a8562f82.js');
|
|
18
|
-
const bcm = require('./bcm-489c9b1a.js');
|
|
19
|
-
const captionTemplate = require('./caption-template-81dbc490.js');
|
|
20
|
-
const index$1 = require('./index-95ae50d0.js');
|
|
21
|
-
require('./types-cc4adee7.js');
|
|
22
|
-
const labelTemplate = require('./label-template-d9bee58a.js');
|
|
23
|
-
require('./types-7523fd99.js');
|
|
24
|
-
const moment = require('./moment-d06b012f.js');
|
|
25
|
-
require('./colors-56282b00.js');
|
|
26
|
-
require('./utils-fc077139.js');
|
|
27
|
-
require('./colors-078851ec.js');
|
|
28
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
29
|
-
require('./package-f9f70acc.js');
|
|
30
|
-
require('./slot-template-c8e2816c.js');
|
|
31
|
-
|
|
32
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
33
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
35
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
36
|
-
else
|
|
37
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
38
|
-
if (d = decorators[i])
|
|
39
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
-
};
|
|
42
|
-
const BcmDate = class {
|
|
43
|
-
constructor(hostRef) {
|
|
44
|
-
index.registerInstance(this, hostRef);
|
|
45
|
-
this.change = index.createEvent(this, "bcm-change", 7);
|
|
46
|
-
this.onChange = (e) => {
|
|
47
|
-
this.value = this.getValueObject(e.detail);
|
|
48
|
-
this.change.emit(this.value);
|
|
49
|
-
};
|
|
50
|
-
// type a göre format belirleme işlemi
|
|
51
|
-
this.getFormat = () => {
|
|
52
|
-
if (!this.format) {
|
|
53
|
-
switch (this.type) {
|
|
54
|
-
case "time":
|
|
55
|
-
return this.showSecond ? "HH:mm:ss" : this.showMinute ? "HH:mm" : "HH";
|
|
56
|
-
case "date":
|
|
57
|
-
return "DD/MM/YYYY";
|
|
58
|
-
case "datetime":
|
|
59
|
-
return this.showSecond ? "DD/MM/YYYY HH:mm:ss" : this.showMinute ? "DD/MM/YYYY HH:mm" : "DD/MM/YYYY HH";
|
|
60
|
-
case "week":
|
|
61
|
-
return "YYYY-wo";
|
|
62
|
-
case "month":
|
|
63
|
-
return "MM/YYYY";
|
|
64
|
-
case "year":
|
|
65
|
-
return "YYYY";
|
|
66
|
-
default:
|
|
67
|
-
return "DD/MM/YYYY";
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return this.format;
|
|
71
|
-
};
|
|
72
|
-
this.getValueObject = (value) => {
|
|
73
|
-
if (this.range) {
|
|
74
|
-
return this.getRangeValueObject(value);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return this.createValueObject(value);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
this.getRangeValueObject = (value) => {
|
|
81
|
-
const [start, end] = value._i || [];
|
|
82
|
-
const startObject = this.createValueObject(start);
|
|
83
|
-
const endObject = this.createValueObject(end);
|
|
84
|
-
return Object.assign({ isValid: startObject.isValid && endObject.isValid, start: startObject, end: endObject, date: [startObject.date, endObject.date], timestamp: [startObject.timestamp, endObject.timestamp], value: `${startObject.value} - ${endObject.value}` }, (this.type === "time" && {
|
|
85
|
-
time: `${startObject.time} - ${endObject.time}`,
|
|
86
|
-
}));
|
|
87
|
-
};
|
|
88
|
-
this.createValueObject = (value) => {
|
|
89
|
-
if (value && moment.hooks(value).isValid()) {
|
|
90
|
-
return Object.assign({ isValid: moment.hooks(value).isValid(), date: moment.hooks(value).toDate(), timestamp: moment.hooks(value).valueOf(), dateObject: {
|
|
91
|
-
year: moment.hooks(value).year(),
|
|
92
|
-
day: moment.hooks(value).date(),
|
|
93
|
-
month: moment.hooks(value).month(),
|
|
94
|
-
dayOfWeek: moment.hooks(value).day(),
|
|
95
|
-
monthFirstDay: moment.hooks(value).startOf("month").day(),
|
|
96
|
-
}, value: moment.hooks(value).format(this.getFormat()) }, (this.type === "time" && {
|
|
97
|
-
time: moment.hooks(value).format(this.getFormat()),
|
|
98
|
-
timeObject: {
|
|
99
|
-
hour: moment.hooks(value).hour(),
|
|
100
|
-
minute: moment.hooks(value).minute(),
|
|
101
|
-
second: moment.hooks(value).second(),
|
|
102
|
-
},
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
this._id = generate.Generate.UID();
|
|
110
|
-
this.label = undefined;
|
|
111
|
-
this.placeholder = undefined;
|
|
112
|
-
this.size = bcm.Bcm$1.Size.medium;
|
|
113
|
-
this.fullWidth = false;
|
|
114
|
-
this.required = false;
|
|
115
|
-
this.clearable = false;
|
|
116
|
-
this.disabled = false;
|
|
117
|
-
this.noMargin = false;
|
|
118
|
-
this.caption = undefined;
|
|
119
|
-
this.noCaption = false;
|
|
120
|
-
this.captionType = bcm.Bcm$1.Status.default;
|
|
121
|
-
this.captionError = undefined;
|
|
122
|
-
this.name = undefined;
|
|
123
|
-
this.value = undefined;
|
|
124
|
-
this.type = "date";
|
|
125
|
-
this.format = undefined;
|
|
126
|
-
this.range = false;
|
|
127
|
-
this.showTime = false;
|
|
128
|
-
this.showNow = true;
|
|
129
|
-
this.showHour = true;
|
|
130
|
-
this.showMinute = true;
|
|
131
|
-
this.showSecond = false;
|
|
132
|
-
this.use12Hours = false;
|
|
133
|
-
this.hourStep = 1;
|
|
134
|
-
this.minuteStep = 1;
|
|
135
|
-
this.secondStep = 1;
|
|
136
|
-
this.hideDisabledOptions = false;
|
|
137
|
-
this.disabledTime = undefined;
|
|
138
|
-
this.showToday = true;
|
|
139
|
-
this.disabledDates = undefined;
|
|
140
|
-
}
|
|
141
|
-
async getValue() {
|
|
142
|
-
return this.value;
|
|
143
|
-
}
|
|
144
|
-
async get() {
|
|
145
|
-
var _a;
|
|
146
|
-
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
|
|
147
|
-
}
|
|
148
|
-
async set(value) {
|
|
149
|
-
// this.value = value;
|
|
150
|
-
this.getPickerElement().set(value);
|
|
151
|
-
}
|
|
152
|
-
async setClear() {
|
|
153
|
-
this.getPickerElement().set(null);
|
|
154
|
-
}
|
|
155
|
-
async resetCaption() {
|
|
156
|
-
this.captionType = "default";
|
|
157
|
-
this.captionError = null;
|
|
158
|
-
}
|
|
159
|
-
async getInput() {
|
|
160
|
-
return this.el.querySelector("input");
|
|
161
|
-
}
|
|
162
|
-
async isValid() {
|
|
163
|
-
var _a;
|
|
164
|
-
return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.isValid) || false;
|
|
165
|
-
}
|
|
166
|
-
getPickerElement() {
|
|
167
|
-
return this.el.querySelector("bcm-rc-picker");
|
|
168
|
-
}
|
|
169
|
-
render() {
|
|
170
|
-
const { label, size, captionType, required, _id } = this;
|
|
171
|
-
return (index.h(index.Host, { class: index$1.classnames("bcm-ui-element bcm-ui-input", "tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col", {
|
|
172
|
-
"tw-max-w-[256px]": !this.fullWidth,
|
|
173
|
-
"tw-mb-2": !this.noMargin,
|
|
174
|
-
}) }, label && index.h(labelTemplate.LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), index.h("bcm-rc-picker", { id: _id + "-picker", class: index$1.classnames("w-full tw-flex"), onBcmRCPickerChange: e => this.onChange(e), disabled: this.disabled, clearable: this.clearable, size: size, placeholder: this.placeholder, error: this.captionType === "error", type: this.type, format: this.getFormat(), range: this.range, showToday: this.showToday, disabledDates: this.disabledDates, showTime: this.showTime, showNow: this.showNow, showHour: this.showHour, showMinute: this.showMinute, showSecond: this.showSecond, use12Hours: this.use12Hours, hourStep: this.hourStep, minuteStep: this.minuteStep, secondStep: this.secondStep, hideDisabledOptions: this.hideDisabledOptions, disabledTime: this.disabledTime }), index.h(captionTemplate.CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
|
|
175
|
-
}
|
|
176
|
-
get el() { return index.getElement(this); }
|
|
177
|
-
};
|
|
178
|
-
__decorate([
|
|
179
|
-
isLoadDecorator.IsLoad()
|
|
180
|
-
], BcmDate.prototype, "el", void 0);
|
|
181
|
-
|
|
182
|
-
exports.bcm_date = BcmDate;
|
|
@@ -1,489 +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
|
-
},
|
|
113
|
-
helpers: {
|
|
114
|
-
randomId: function () {
|
|
115
|
-
return Math.random().toString(16).slice(2, -1);
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
this._id = (Math.random() * 4).toString(16).replace('.', '');
|
|
120
|
-
this.hidden = false;
|
|
121
|
-
this.validation = false;
|
|
122
|
-
this.name = "";
|
|
123
|
-
this.value = undefined;
|
|
124
|
-
this.autocomplete = false;
|
|
125
|
-
}
|
|
126
|
-
handleSubmit() {
|
|
127
|
-
// if (lowercase(e.target.nodeName) === 'bcm-button') {
|
|
128
|
-
// if (e.target.type === 'submit') {
|
|
129
|
-
// this.submitFunction()
|
|
130
|
-
// }
|
|
131
|
-
// }
|
|
132
|
-
}
|
|
133
|
-
async submitFunction() {
|
|
134
|
-
this.formData = {};
|
|
135
|
-
this.inputs = [];
|
|
136
|
-
this.selector = this.el;
|
|
137
|
-
await this.getInputs();
|
|
138
|
-
await utils.delay(10);
|
|
139
|
-
const usrFrmData = await this.userFormData();
|
|
140
|
-
var formData = { isValid: true, formData: usrFrmData };
|
|
141
|
-
if (this.name) {
|
|
142
|
-
formData = Object.assign(Object.assign({}, formData), { formName: this.name });
|
|
143
|
-
}
|
|
144
|
-
if (this.isValid) {
|
|
145
|
-
this.bcmForm.emit(formData);
|
|
146
|
-
return formData;
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
this.returnCaption = { isValid: false, 'message': 'Please fill in all inputs', 'errorDetails': this.returnCaption, formData: usrFrmData };
|
|
150
|
-
if (this.name) {
|
|
151
|
-
this.returnCaption = Object.assign(Object.assign({}, this.returnCaption), { formName: this.name });
|
|
152
|
-
}
|
|
153
|
-
this.bcmForm.emit(this.returnCaption);
|
|
154
|
-
return this.returnCaption;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
async submit() {
|
|
158
|
-
return Promise.resolve(this.submitFunction());
|
|
159
|
-
}
|
|
160
|
-
async set(data) {
|
|
161
|
-
var _a;
|
|
162
|
-
const validate = this.validation;
|
|
163
|
-
this.validation = false;
|
|
164
|
-
// debugger
|
|
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
|
-
render() {
|
|
479
|
-
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
|
|
480
|
-
return (index.h(index.Host, { class: hostClasses }, index.h("form", { class: "bcm-form", autocomplete: this.autocomplete ? "on" : "off" }, index.h("slot", null))));
|
|
481
|
-
}
|
|
482
|
-
get el() { return index.getElement(this); }
|
|
483
|
-
};
|
|
484
|
-
__decorate([
|
|
485
|
-
isLoadDecorator.IsLoad()
|
|
486
|
-
], BcmForm.prototype, "el", void 0);
|
|
487
|
-
BcmForm.style = formCss;
|
|
488
|
-
|
|
489
|
-
exports.bcm_form = BcmForm;
|