bromcom-ui 2.9.1-rc.0 → 2.9.1-rc.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-7c5763cc.entry.js → p-03337609.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6edf985f.js → p-034bbcdd.js} +1 -1
- package/dist/bromcom-ui/p-0be0c743.entry.js +5 -0
- package/dist/bromcom-ui/{p-430c0a24.entry.js → p-0efc9196.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c1a992e7.entry.js → p-107f11df.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-181f2f4a.entry.js} +1 -1
- package/dist/bromcom-ui/p-1845fc18.js +5 -0
- package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-188b9079.entry.js} +1 -1
- package/dist/bromcom-ui/{p-26290ed5.entry.js → p-18bc4e04.entry.js} +1 -1
- package/dist/bromcom-ui/{p-74e6d2b6.js → p-197aba37.js} +1 -1
- package/dist/bromcom-ui/{p-80ee3d97.entry.js → p-1998815a.entry.js} +1 -1
- package/dist/bromcom-ui/p-1a31fc0b.entry.js +5 -0
- package/dist/bromcom-ui/{p-a664cc20.entry.js → p-1a33d7a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-efc75375.entry.js → p-1c043ab6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fff1a0f9.entry.js → p-1e8559ac.entry.js} +1 -1
- package/dist/bromcom-ui/p-21da70e5.entry.js +5 -0
- package/dist/bromcom-ui/{p-28a748ad.entry.js → p-226c8c0a.entry.js} +1 -1
- package/dist/bromcom-ui/p-292861ed.entry.js +5 -0
- package/dist/bromcom-ui/{p-4f5f5090.entry.js → p-2aa9e3e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6880da84.entry.js → p-2bfd7aa8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-70d3ff0a.entry.js → p-2d3e225b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-541fc5ec.entry.js → p-2ebba9f4.entry.js} +1 -1
- package/dist/bromcom-ui/p-3182df7e.js +10 -0
- package/dist/bromcom-ui/p-32df2233.js +5 -0
- package/dist/bromcom-ui/p-3469c1bb.js +5 -0
- package/dist/bromcom-ui/p-3a1eabb1.entry.js +5 -0
- package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3b079331.entry.js} +1 -1
- package/dist/bromcom-ui/p-3b78f74e.entry.js +5 -0
- package/dist/bromcom-ui/{p-15a16b4a.entry.js → p-3c783cae.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
- package/dist/bromcom-ui/{p-67d13512.entry.js → p-417e8067.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14cafd64.entry.js → p-4438d629.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5699f67d.entry.js → p-468157a0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61db1f1f.js → p-4798d827.js} +1 -1
- package/dist/bromcom-ui/{p-69260d36.entry.js → p-48f5a3c9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d6cd20cf.entry.js → p-4c7cd784.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ece578ef.entry.js → p-4d7ea23c.entry.js} +1 -1
- package/dist/bromcom-ui/p-4e4504ca.js +5 -0
- package/dist/bromcom-ui/{p-64c6092c.js → p-51d2c673.js} +1 -1
- package/dist/bromcom-ui/p-52f879b2.entry.js +5 -0
- package/dist/bromcom-ui/{p-c6a6a181.entry.js → p-535d02b9.entry.js} +1 -1
- package/dist/bromcom-ui/p-5a3f8a49.entry.js +5 -0
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
- package/dist/bromcom-ui/{p-12f997c1.entry.js → p-5be009b0.entry.js} +1 -1
- package/dist/bromcom-ui/p-5ccb0675.entry.js +5 -0
- package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
- package/dist/bromcom-ui/p-5ee8a018.js +5 -0
- package/dist/bromcom-ui/{p-5f071adc.entry.js → p-5fc98177.entry.js} +1 -1
- package/dist/bromcom-ui/p-62369801.entry.js +5 -0
- package/dist/bromcom-ui/p-626a65e9.js +5 -0
- package/dist/bromcom-ui/{p-d551a51d.entry.js → p-63138ee5.entry.js} +1 -1
- package/dist/bromcom-ui/p-6385e735.entry.js +5 -0
- package/dist/bromcom-ui/p-67bb1c06.js +5 -0
- package/dist/bromcom-ui/p-6d0a02d7.entry.js +5 -0
- package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-6e7bb16f.entry.js} +1 -1
- package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
- package/dist/bromcom-ui/p-76edf59f.js +7 -0
- package/dist/bromcom-ui/p-77035c08.entry.js +5 -0
- package/dist/bromcom-ui/{p-a3e0482c.entry.js → p-788de9cf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-626b805d.entry.js → p-7a89243a.entry.js} +1 -1
- package/dist/bromcom-ui/p-7b506ccb.entry.js +5 -0
- package/dist/bromcom-ui/p-7c623da0.js +5 -0
- package/dist/bromcom-ui/p-7e3209a0.js +14 -0
- package/dist/bromcom-ui/p-7e35d915.entry.js +5 -0
- package/dist/bromcom-ui/{p-1d7509e4.entry.js → p-7f63e25c.entry.js} +1 -1
- package/dist/bromcom-ui/p-80249663.entry.js +5 -0
- package/dist/bromcom-ui/p-89abd5ea.entry.js +5 -0
- package/dist/bromcom-ui/p-8b318727.entry.js +5 -0
- package/dist/bromcom-ui/{p-2c5a0863.js → p-8c951a73.js} +1 -1
- package/dist/bromcom-ui/p-8d4482d6.entry.js +5 -0
- package/dist/bromcom-ui/{p-9850cbce.js → p-8e5e362a.js} +1 -1
- package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-95a2c489.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6dcfdb90.entry.js → p-99dc26dd.entry.js} +1 -1
- package/dist/bromcom-ui/p-a0bd7793.entry.js +5 -0
- package/dist/bromcom-ui/p-a1b1750c.js +1 -1
- package/dist/bromcom-ui/{p-68280506.entry.js → p-a907cae6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7bb1f30b.entry.js → p-a9c22560.entry.js} +1 -1
- package/dist/bromcom-ui/p-ae94dfa8.js +5 -0
- package/dist/bromcom-ui/p-b11dd428.entry.js +5 -0
- package/dist/bromcom-ui/p-b6bac5f5.entry.js +5 -0
- package/dist/bromcom-ui/p-bc8d7f89.entry.js +5 -0
- package/dist/bromcom-ui/p-bed627ab.js +11 -0
- package/dist/bromcom-ui/{p-b550b336.js → p-c3422601.js} +1 -1
- package/dist/bromcom-ui/p-c495a13f.js +5 -0
- package/dist/bromcom-ui/{p-3672a932.entry.js → p-c49c79ca.entry.js} +1 -1
- package/dist/bromcom-ui/p-c8058a21.entry.js +5 -0
- package/dist/bromcom-ui/p-cc61ed4c.entry.js +5 -0
- package/dist/bromcom-ui/p-ce62273f.entry.js +5 -0
- package/dist/bromcom-ui/{p-69dd585e.entry.js → p-cf022deb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f7215c0e.js → p-d22b7435.js} +1 -1
- package/dist/bromcom-ui/p-d7b9ab98.entry.js +5 -0
- package/dist/bromcom-ui/p-d9eaa208.entry.js +5 -0
- package/dist/bromcom-ui/p-dc290a64.entry.js +5 -0
- package/dist/bromcom-ui/p-dd2a36fa.entry.js +5 -0
- package/dist/bromcom-ui/{p-170cf07d.js → p-e037ee2b.js} +1 -1
- package/dist/bromcom-ui/{p-b4729876.entry.js → p-e321ccff.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-e32ab4da.entry.js} +1 -1
- package/dist/bromcom-ui/{p-85eedabc.js → p-e45c1546.js} +1 -1
- package/dist/bromcom-ui/{p-bacd1841.entry.js → p-e8f8aa3b.entry.js} +1 -1
- package/dist/bromcom-ui/p-eb6b6010.entry.js +5 -0
- package/dist/bromcom-ui/{p-e688b044.entry.js → p-f03e56b9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5898ecd1.entry.js → p-f0adf08c.entry.js} +1 -1
- package/dist/bromcom-ui/p-f709a2e2.entry.js +5 -0
- package/dist/bromcom-ui/p-f711588b.js +1 -1
- package/dist/bromcom-ui/{p-99824717.entry.js → p-f9119bec.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d153c7fc.js → p-f95797df.js} +1 -1
- package/dist/bromcom-ui/{p-3c1b1624.entry.js → p-fa057fc4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-59af8bab.entry.js → p-fa8300a2.entry.js} +1 -1
- package/dist/bromcom-ui/p-fbb959f4.entry.js +5 -0
- package/dist/bromcom-ui/{p-39ae9f7f.entry.js → p-fe88e003.entry.js} +1 -1
- package/dist/bromcom-ui/p-ff012d63.entry.js +5 -0
- package/dist/bromcom-ui/{p-49cb669b.entry.js → p-ff714da2.entry.js} +1 -1
- package/dist/bromcom-ui/p-ff8d5e17.entry.js +5 -0
- package/dist/cjs/{bcm-7f703055.js → bcm-9e47c4b2.js} +4 -4
- 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 +11 -10
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +7 -7
- package/dist/cjs/bcm-button.cjs.entry.js +372 -0
- package/dist/cjs/bcm-card.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +25 -25
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -6
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +10 -10
- package/dist/cjs/bcm-chip-group.cjs.entry.js +10 -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 +7 -6
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +17585 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +182 -0
- package/dist/cjs/bcm-date.cjs.entry.js +182 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1451 -0
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +9 -8
- package/dist/cjs/bcm-dropdown.cjs.entry.js +7 -7
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
- package/dist/cjs/bcm-form-2.cjs.entry.js +212 -0
- package/dist/cjs/bcm-form.cjs.entry.js +489 -0
- package/dist/cjs/bcm-icon.cjs.entry.js +39 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +9 -8
- package/dist/cjs/bcm-item.cjs.entry.js +4 -4
- package/dist/cjs/bcm-items.cjs.entry.js +4 -4
- package/dist/cjs/bcm-label_2.cjs.entry.js +126 -0
- package/dist/cjs/bcm-link.cjs.entry.js +3 -3
- package/dist/cjs/bcm-linked_2.cjs.entry.js +289 -0
- package/dist/cjs/bcm-list_3.cjs.entry.js +35 -33
- package/dist/cjs/bcm-menu.cjs.entry.js +9 -8
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +7 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +7 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +8 -7
- package/dist/cjs/bcm-modal.cjs.entry.js +13 -10
- package/dist/cjs/bcm-old-input.cjs.entry.js +397 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -5
- package/dist/cjs/bcm-popover.cjs.entry.js +10 -9
- package/dist/cjs/bcm-progress.cjs.entry.js +4 -4
- package/dist/cjs/bcm-radio-group.cjs.entry.js +11 -10
- package/dist/cjs/bcm-radio.cjs.entry.js +14 -13
- package/dist/cjs/bcm-range.cjs.entry.js +6 -6
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +9404 -0
- package/dist/cjs/bcm-select.cjs.entry.js +2 -2
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +10 -9
- package/dist/cjs/bcm-switch.cjs.entry.js +9 -9
- package/dist/cjs/bcm-tab-group.cjs.entry.js +8 -7
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +11 -10
- package/dist/cjs/bcm-tab-item.cjs.entry.js +7 -6
- package/dist/cjs/bcm-table.cjs.entry.js +7 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
- package/dist/cjs/bcm-text.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +7 -7
- package/dist/cjs/bcm-time-picker.cjs.entry.js +150 -0
- package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/datetime-helper-eaf4fadb.js +11 -0
- package/dist/cjs/{floating-ui-b441ea7c.js → floating-ui-4a2c2bd4.js} +2 -2
- package/dist/cjs/{generate-7bd78318.js → generate-efeda203.js} +1 -1
- package/dist/cjs/{global-aca5c011.js → global-38efbdd7.js} +1 -1
- package/dist/cjs/index-3d67f613.js +1610 -0
- package/dist/cjs/{index-7eed931f.js → index-e05a7c6f.js} +24 -1625
- package/dist/cjs/{input-template-4952273e.js → input-template-c1e96592.js} +6 -6
- package/dist/cjs/{json-parse-decarator-7529151b.js → json-parse-decarator-7d2677f0.js} +1 -1
- package/dist/cjs/{label-template-80235581.js → label-template-d531dfb7.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/moment-d06b012f.js +4601 -0
- package/dist/cjs/{number-helper-6c8e0d90.js → number-helper-b178b610.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-21f7555f.js → package-2899048c.js} +1 -1
- package/dist/cjs/{popover-placement-f20020a6.js → popover-placement-4156a9ec.js} +1 -1
- package/dist/cjs/{slot-template-873b0cd5.js → slot-template-46018683.js} +1 -1
- package/dist/cjs/{stepper-states-736e2aa7.js → stepper-states-9bd52bd4.js} +1 -1
- package/dist/cjs/{string-helper-fda7cbba.js → string-helper-4cd32dbb.js} +2 -2
- package/dist/cjs/{tooltip-helper-0475ad78.js → tooltip-helper-f828ebee.js} +10 -9
- package/dist/cjs/{validators-9b9662d9.js → validators-2adde99d.js} +1 -6
- package/dist/collection/components/molecules/modal/modal.js +22 -5
- package/dist/collection/components/molecules/skeleton/skeleton.css +133 -0
- package/dist/collection/components/molecules/skeleton/skeleton.js +167 -26
- package/dist/collection/components/molecules/skeleton/skeleton.style.js +35 -0
- package/dist/collection/components/organism/list/list.js +2 -2
- package/dist/components/bcm-modal.js +7 -4
- package/dist/components/generate.js +1 -1
- package/dist/components/list.js +2 -2
- package/dist/components/skeleton.js +75 -23
- package/dist/esm/{_commonjsHelpers-7002e5de.js → _commonjsHelpers-be0d4ec8.js} +1 -1
- package/dist/esm/bcm-accordion.entry.js +5 -5
- package/dist/esm/bcm-alert.entry.js +8 -8
- 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 +13 -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.entry.js +368 -0
- package/dist/esm/bcm-card.entry.js +10 -10
- package/dist/esm/bcm-checkbox-group.entry.js +19 -19
- package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
- package/dist/esm/bcm-checkbox_2.entry.js +13 -13
- package/dist/esm/bcm-chip-group.entry.js +17 -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 -11
- package/dist/esm/bcm-colorful_2.entry.js +17580 -0
- package/dist/esm/bcm-colorpicker.entry.js +5 -5
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-d45dc47d.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +178 -0
- package/dist/esm/bcm-date.entry.js +178 -0
- package/dist/esm/bcm-datetime-picker.entry.js +1447 -0
- package/dist/esm/bcm-default.entry.js +5 -5
- package/dist/esm/bcm-drawer.entry.js +14 -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 +9 -9
- package/dist/esm/bcm-form-2.entry.js +208 -0
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-form.entry.js +485 -0
- package/dist/esm/bcm-icon.entry.js +35 -0
- package/dist/esm/bcm-input-custom.entry.js +6 -6
- package/dist/esm/bcm-input-dropdown.entry.js +15 -14
- package/dist/esm/bcm-item.entry.js +9 -9
- package/dist/esm/bcm-items.entry.js +6 -6
- package/dist/esm/bcm-label_2.entry.js +121 -0
- package/dist/esm/bcm-link.entry.js +4 -4
- package/dist/esm/bcm-linked_2.entry.js +284 -0
- package/dist/esm/bcm-list_3.entry.js +24 -22
- package/dist/esm/bcm-menu.entry.js +15 -14
- package/dist/esm/bcm-message.entry.js +3 -3
- package/dist/esm/bcm-modal-2-footer.entry.js +13 -12
- package/dist/esm/bcm-modal-2-header.entry.js +12 -11
- package/dist/esm/bcm-modal-2.entry.js +14 -13
- package/dist/esm/bcm-modal.entry.js +15 -12
- package/dist/esm/bcm-notification.entry.js +3 -3
- package/dist/esm/bcm-old-input.entry.js +393 -0
- 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 +10 -10
- package/dist/esm/bcm-popconfirm.entry.js +7 -7
- package/dist/esm/bcm-popover.entry.js +13 -12
- package/dist/esm/bcm-progress.entry.js +9 -9
- package/dist/esm/bcm-radio-group.entry.js +16 -15
- package/dist/esm/bcm-radio.entry.js +14 -13
- package/dist/esm/bcm-range.entry.js +8 -8
- package/dist/esm/bcm-rc-picker.entry.js +9400 -0
- 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 +5 -5
- package/dist/esm/bcm-step.entry.js +8 -8
- package/dist/esm/bcm-stepper.entry.js +16 -15
- package/dist/esm/bcm-switch.entry.js +10 -10
- package/dist/esm/bcm-tab-group.entry.js +13 -12
- package/dist/esm/bcm-tab-item-header.entry.js +14 -13
- package/dist/esm/bcm-tab-item.entry.js +12 -11
- 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 -12
- 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 +8 -8
- package/dist/esm/bcm-textarea.entry.js +11 -11
- package/dist/esm/bcm-time-picker.entry.js +146 -0
- 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/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-d47f338f.js → caption-template-a1a968fd.js} +2 -2
- package/dist/esm/{color-helper-845ba523.js → color-helper-c4fa9ebc.js} +2 -2
- package/dist/esm/{colors-ebea297f.js → colors-e1c31f79.js} +1 -1
- package/dist/esm/datetime-helper-df25808a.js +9 -0
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
- package/dist/esm/floating-ui-8a0c54d6.js +1 -1
- package/dist/esm/{generate-c80869fa.js → generate-40dfe3b0.js} +2 -2
- package/dist/esm/{global-55ab75e6.js → global-85f037ac.js} +2 -2
- package/dist/esm/{index-0615c2b8.js → index-4614b7f0.js} +1 -1
- package/dist/esm/{index-e4b6a4ce.js → index-a6d9d0af.js} +26 -1612
- package/dist/esm/{index-00c8a8f7.js → index-b84bc8c9.js} +1 -1
- package/dist/esm/index-c4568336.js +1594 -0
- package/dist/esm/{index-7e71bbc8.js → index-f38e3364.js} +1 -1
- package/dist/esm/{input-template-82ba633e.js → input-template-92b19880.js} +4 -4
- package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-b8ca22f2.js} +1 -1
- package/dist/esm/{json-parse-decarator-fb399cf2.js → json-parse-decarator-f4803289.js} +2 -2
- package/dist/esm/{label-template-946d4062.js → label-template-54c28821.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/moment-15cd9198.js +4598 -0
- package/dist/esm/{number-helper-2eb7011a.js → number-helper-352d1d80.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-20c9971a.js → package-1618c1e9.js} +1 -1
- package/dist/esm/{popover-placement-be68c848.js → popover-placement-941bf3f3.js} +1 -1
- package/dist/esm/{slot-template-fcc7846e.js → slot-template-4b683d1f.js} +2 -2
- package/dist/esm/{stepper-states-f497b41f.js → stepper-states-08b2aa7c.js} +3 -3
- package/dist/esm/{string-helper-b0e05041.js → string-helper-5bd646f2.js} +2 -2
- package/dist/esm/{tooltip-helper-8eff46a3.js → tooltip-helper-d538cdf3.js} +9 -8
- package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
- package/dist/esm/{validators-81296897.js → validators-68717171.js} +2 -6
- package/dist/types/components/molecules/modal/modal.d.ts +1 -0
- package/dist/types/components/molecules/skeleton/skeleton.d.ts +14 -3
- package/dist/types/components/molecules/skeleton/skeleton.style.d.ts +147 -0
- package/dist/types/components.d.ts +17 -2
- package/package.json +4 -1
- package/dist/bromcom-ui/p-07fe2bbc.entry.js +0 -5
- package/dist/bromcom-ui/p-0cf6e779.entry.js +0 -5
- package/dist/bromcom-ui/p-0fdaadf9.entry.js +0 -7
- package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-27b52583.js +0 -5
- package/dist/bromcom-ui/p-30bd67ba.js +0 -5
- package/dist/bromcom-ui/p-310da4b9.entry.js +0 -5
- package/dist/bromcom-ui/p-33014b15.entry.js +0 -5
- package/dist/bromcom-ui/p-338ace45.entry.js +0 -5
- package/dist/bromcom-ui/p-3432a82d.js +0 -19
- package/dist/bromcom-ui/p-3d86a6c3.entry.js +0 -5
- package/dist/bromcom-ui/p-3e68c7d0.js +0 -5
- package/dist/bromcom-ui/p-438689a5.entry.js +0 -5
- package/dist/bromcom-ui/p-4acc1848.entry.js +0 -5
- package/dist/bromcom-ui/p-4dad64ed.entry.js +0 -5
- package/dist/bromcom-ui/p-543af368.entry.js +0 -5
- package/dist/bromcom-ui/p-5797aab3.entry.js +0 -5
- package/dist/bromcom-ui/p-5871767a.entry.js +0 -5
- package/dist/bromcom-ui/p-5e2a0bda.js +0 -5
- package/dist/bromcom-ui/p-5fb8a43a.entry.js +0 -5
- package/dist/bromcom-ui/p-60a8f967.entry.js +0 -5
- package/dist/bromcom-ui/p-64fad38b.js +0 -11
- package/dist/bromcom-ui/p-67244c91.entry.js +0 -5
- package/dist/bromcom-ui/p-7cb30513.js +0 -5
- package/dist/bromcom-ui/p-8279be1f.entry.js +0 -5
- package/dist/bromcom-ui/p-97527e91.entry.js +0 -5
- package/dist/bromcom-ui/p-9fe07d94.entry.js +0 -5
- package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
- package/dist/bromcom-ui/p-b3d495fd.js +0 -5
- package/dist/bromcom-ui/p-b81e8f91.js +0 -5
- package/dist/bromcom-ui/p-b8646a61.entry.js +0 -5
- package/dist/bromcom-ui/p-bfd24601.entry.js +0 -5
- package/dist/bromcom-ui/p-cc52cff4.entry.js +0 -5
- package/dist/bromcom-ui/p-ccf0872d.js +0 -5
- package/dist/bromcom-ui/p-d3f182c1.entry.js +0 -5
- package/dist/bromcom-ui/p-ea701411.js +0 -5
- package/dist/bromcom-ui/p-f2c1ffb4.entry.js +0 -5
- package/dist/cjs/bcm-button_15.cjs.entry.js +0 -35172
- package/dist/cjs/bcm-skeleton.cjs.entry.js +0 -45
- package/dist/esm/bcm-button_15.entry.js +0 -35154
- package/dist/esm/bcm-skeleton.entry.js +0 -41
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import './color-helper-
|
|
7
|
-
import './
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
10
|
-
import './string-helper-
|
|
11
|
-
import './
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import './color-helper-c4fa9ebc.js';
|
|
7
|
+
import './datetime-helper-df25808a.js';
|
|
8
|
+
import { G as Generate } from './generate-40dfe3b0.js';
|
|
9
|
+
import './number-helper-352d1d80.js';
|
|
10
|
+
import './string-helper-5bd646f2.js';
|
|
11
|
+
import './validators-68717171.js';
|
|
12
|
+
import './element-dragger-7ea06c76.js';
|
|
13
|
+
import { d as delay } from './utils-b3338faf.js';
|
|
14
|
+
import { B as Bcm } from './bcm-d45dc47d.js';
|
|
15
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
15
16
|
import './colors-1d7854ea.js';
|
|
16
|
-
import './colors-
|
|
17
|
-
import './_commonjsHelpers-
|
|
18
|
-
import './package-
|
|
17
|
+
import './colors-e1c31f79.js';
|
|
18
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
19
|
+
import './package-1618c1e9.js';
|
|
19
20
|
|
|
20
21
|
const BcmModal2 = class {
|
|
21
22
|
constructor(hostRef) {
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import {
|
|
8
|
-
import { S as StringHelper } from './string-helper-
|
|
9
|
-
import { S as SlotTemplate } from './slot-template-
|
|
10
|
-
import { G as Generate } from './generate-
|
|
11
|
-
import './_commonjsHelpers-
|
|
12
|
-
import './package-
|
|
13
|
-
import './colors-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
+
import { a as Bcm } from './bcm-d45dc47d.js';
|
|
8
|
+
import { S as StringHelper } from './string-helper-5bd646f2.js';
|
|
9
|
+
import { S as SlotTemplate } from './slot-template-4b683d1f.js';
|
|
10
|
+
import { G as Generate } from './generate-40dfe3b0.js';
|
|
11
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
12
|
+
import './package-1618c1e9.js';
|
|
13
|
+
import './colors-e1c31f79.js';
|
|
14
14
|
|
|
15
15
|
const modalCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-modal{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:100%;height:100%;position:fixed;z-index:-1;opacity:0;top:0;left:0;visibility:hidden;overflow:auto;padding:24px;transition:opacity 0.5s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show{opacity:1;z-index:10500;visibility:visible;transition:opacity 0.2s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show .bcm-modal__container{transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out;transform:translateY(0)}.bcm-modal .overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0;opacity:0.6;background-color:var(--bcm-new-ds-color-slate-900)}.bcm-modal__container{display:flex;flex-direction:column;width:100%;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);z-index:2;transform:translateY(-50px);transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out}.bcm-modal__container.portrait{max-width:312px}.bcm-modal__container.landscape{max-width:475px}.bcm-modal__container.small{max-width:576px}.bcm-modal__container.medium{max-width:768px}.bcm-modal__container.large{max-width:992px}.bcm-modal__container.xlarge{max-width:1024px}.bcm-modal__container.xxlarge{max-width:1200px}.bcm-modal__container.xxxlarge{max-width:1700px}.bcm-modal__container.full-width{width:100%;max-width:100%}.bcm-modal__container.custom-size main{overflow:auto;height:100%;width:100%}.bcm-modal__container-main{color:var(--bcm-color-grey-8);padding:0}.bcm-modal__container-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;padding:12px 24px;font-size:16px;line-height:calc(16px + 8px);font-weight:500;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100);position:relative}.bcm-modal__container-header span.full-width{width:100%}.bcm-modal__container-header-close{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:8px;cursor:pointer;color:var(--bcm-new-ds-color-slate-500);transition:color 0.1s ease-in-out}.bcm-modal__container-header-close:hover{color:var(--bcm-new-ds-color-slate-600)}.bcm-modal__container-header-close:active{color:var(--bcm-new-ds-color-slate-700)}.bcm-modal__container-header-close:focus-visible{color:var(--bcm-new-ds-color-slate-800)}.bcm-modal__container-header:after{border-radius:8px 8px 0 0;content:\"\";display:block;width:100%;height:4px;background-color:var(--bcm-color-primary-400);position:absolute;top:-4px;left:0}.bcm-modal__container-footer-content{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end;flex-wrap:nowrap;padding:12px 24px 24px;grid-gap:8px}";
|
|
16
16
|
|
|
17
17
|
const BcmModal = class {
|
|
18
18
|
constructor(hostRef) {
|
|
19
19
|
registerInstance(this, hostRef);
|
|
20
|
-
this.close = createEvent(this, "bcm-close",
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
20
|
+
this.close = createEvent(this, "bcm-close", 3);
|
|
21
|
+
this.modalClose = createEvent(this, "bcm-modal-close", 3);
|
|
22
|
+
this.modalBeforeClose = createEvent(this, "bcm-modal-before-close", 3);
|
|
23
|
+
this.modalBeforeOpen = createEvent(this, "bcm-modal-before-open", 3);
|
|
23
24
|
this.modalSlots = {};
|
|
24
25
|
this._id = Generate.UID();
|
|
25
26
|
this.isShow = false;
|
|
@@ -68,6 +69,7 @@ const BcmModal = class {
|
|
|
68
69
|
if (obj === null || obj === void 0 ? void 0 : obj.force) {
|
|
69
70
|
this.isShow = false;
|
|
70
71
|
this.close.emit(); // Deprecated
|
|
72
|
+
this.modalClose.emit();
|
|
71
73
|
return;
|
|
72
74
|
}
|
|
73
75
|
this.modalBeforeClose.emit(this.el);
|
|
@@ -104,6 +106,7 @@ const BcmModal = class {
|
|
|
104
106
|
if (e.target === this.el) {
|
|
105
107
|
this.isShow = false;
|
|
106
108
|
this.close.emit(); // Deprecated
|
|
109
|
+
this.modalClose.emit();
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
_openHandler() {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* 'type' prop predefined values
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
+
import { C as CaptionTemplate } from './caption-template-a1a968fd.js';
|
|
8
|
+
import { d as delay } from './utils-b3338faf.js';
|
|
9
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
10
|
+
|
|
11
|
+
const oldInputCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.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}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}:host(.no-margin){margin:0}.input-container{display:flex;flex-direction:column;width:100%;max-width:256px}.input-container.full-width{max-width:100%}.input-base{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;vertical-align:middle;overflow:hidden;padding:0 4px;cursor:text}.input-base.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.input-base.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-300)}.input-base.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.input-base.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.input-base:not(.disabled):hover .caret-container,.input-base:not(.disabled).focused .caret-container{opacity:1}.input-base:not(.disabled):hover .input-clear-button,.input-base:not(.disabled).focused .input-clear-button{opacity:1}.input-base:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.input-base:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.input-base.focused:not(.disabled) .caret-container{opacity:1}.input-base.focused:not(.disabled) .input-clear-button{opacity:1}.input-base:hover:not(.disabled) .caret-container{opacity:1}.input-base:hover:not(.disabled) .input-clear-button{opacity:1}.input-base.disabled{cursor:not-allowed}.input-base.readonly{cursor:default}.input-base.empty .input-clear-button{display:none}.input-base.invalid,.input-base.error{border-color:var(--bcm-new-ds-color-red-500)}.error .label{color:var(--bcm-new-ds-color-red-500) !important}.error .input-base{border-color:var(--bcm-new-ds-color-red-500) !important}.input-base input{color:var(--bcm-new-ds-color-slate-600);flex:1 1 auto;width:0%;border:none;border-radius:2px;background:none;box-shadow:none;padding:0;margin:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;appearance:none}.input-base input::-webkit-search-decoration,.input-base input::-webkit-search-cancel-button,.input-base input::-webkit-search-results-button,.input-base input::-webkit-search-results-decoration{-webkit-appearance:none}.input-base input::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.input-base input:focus{outline:none}input::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.input-prefix,.input-suffix{display:inline-flex;align-items:center;justify-content:center;cursor:default;color:var(--bcm-new-ds-color-slate-500)}.input-prefix ::slotted(*),.input-prefix>span{line-height:1;margin-left:4px}.input-suffix ::slotted(*),.input-suffix>span{line-height:1;margin-right:4px}.input-clear-button,.input-password-toggle{display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;transition:0.2s opacity}.input-clear-button:last-child,.input-clear-button:last-of-type,.input-password-toggle:last-child,.input-password-toggle:last-of-type{margin-right:8px}.input-clear-button:focus,.input-password-toggle:focus{outline:none}.input-clear-button{opacity:0}.label{display:flex;flex-direction:column;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;color:var(--bcm-new-ds-color-slate-600);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.unit.input-suffix{width:24px}.unit-prefix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--bcm-color-grey-8)}.caret-container{opacity:0;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box;margin-right:4px}.caret-container:last-of-type{margin-right:-space(\"xxxs\");border-right:none}.caret-container .caret{display:inline-flex;height:50%;width:100%;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer}.caret-container .caret:hover{color:var(--bcm-color-prime-blue-6)}.caret-container .caret:active{background-color:var(--bcm-color-grey-3)}.caret-container .caret:last-child{border-top:1px solid #D9D9D9}.caret-container.disabled{background-color:var(--bcm-color-grey-3)}.caret-container.disabled .caret{cursor:not-allowed}.default-icon{margin-right:8px}.input-large{height:40px}.input-medium{height:32px}.input-small{height:24px}";
|
|
12
|
+
|
|
13
|
+
let id = 0;
|
|
14
|
+
const defaultIcons = {
|
|
15
|
+
email: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"/></svg>',
|
|
16
|
+
tel: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M476.5 22.9L382.3 1.2c-21.6-5-43.6 6.2-52.3 26.6l-43.5 101.5c-8 18.6-2.6 40.6 13.1 53.4l40 32.7C311 267.8 267.8 311 215.4 339.5l-32.7-40c-12.8-15.7-34.8-21.1-53.4-13.1L27.7 329.9c-20.4 8.7-31.5 30.7-26.6 52.3l21.7 94.2c4.8 20.9 23.2 35.5 44.6 35.5C312.3 512 512 313.7 512 67.5c0-21.4-14.6-39.8-35.5-44.6zM69.3 464l-20.9-90.7 98.2-42.1 55.7 68.1c98.8-46.4 150.6-98 197-197l-68.1-55.7 42.1-98.2L464 69.3C463 286.9 286.9 463 69.3 464z"/></svg>',
|
|
17
|
+
search: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"/></svg>',
|
|
18
|
+
url: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M314.222 197.78c51.091 51.091 54.377 132.287 9.75 187.16-6.242 7.73-2.784 3.865-84.94 86.02-54.696 54.696-143.266 54.745-197.99 0-54.711-54.69-54.734-143.255 0-197.99 32.773-32.773 51.835-51.899 63.409-63.457 7.463-7.452 20.331-2.354 20.486 8.192a173.31 173.31 0 0 0 4.746 37.828c.966 4.029-.272 8.269-3.202 11.198L80.632 312.57c-32.755 32.775-32.887 85.892 0 118.8 32.775 32.755 85.892 32.887 118.8 0l75.19-75.2c32.718-32.725 32.777-86.013 0-118.79a83.722 83.722 0 0 0-22.814-16.229c-4.623-2.233-7.182-7.25-6.561-12.346 1.356-11.122 6.296-21.885 14.815-30.405l4.375-4.375c3.625-3.626 9.177-4.594 13.76-2.294 12.999 6.524 25.187 15.211 36.025 26.049zM470.958 41.04c-54.724-54.745-143.294-54.696-197.99 0-82.156 82.156-78.698 78.29-84.94 86.02-44.627 54.873-41.341 136.069 9.75 187.16 10.838 10.838 23.026 19.525 36.025 26.049 4.582 2.3 10.134 1.331 13.76-2.294l4.375-4.375c8.52-8.519 13.459-19.283 14.815-30.405.621-5.096-1.938-10.113-6.561-12.346a83.706 83.706 0 0 1-22.814-16.229c-32.777-32.777-32.718-86.065 0-118.79l75.19-75.2c32.908-32.887 86.025-32.755 118.8 0 32.887 32.908 32.755 86.025 0 118.8l-45.848 45.84c-2.93 2.929-4.168 7.169-3.202 11.198a173.31 173.31 0 0 1 4.746 37.828c.155 10.546 13.023 15.644 20.486 8.192 11.574-11.558 30.636-30.684 63.409-63.457 54.733-54.735 54.71-143.3-.001-197.991z"/></svg>'
|
|
19
|
+
};
|
|
20
|
+
const BcmOldInput = class {
|
|
21
|
+
constructor(hostRef) {
|
|
22
|
+
registerInstance(this, hostRef);
|
|
23
|
+
this.focus = createEvent(this, "bcm-focus", 7);
|
|
24
|
+
this.blur = createEvent(this, "bcm-blur", 7);
|
|
25
|
+
this.clear = createEvent(this, "bcm-clear", 7);
|
|
26
|
+
this.change = createEvent(this, "bcm-change", 7);
|
|
27
|
+
this.input = createEvent(this, "bcm-input", 7);
|
|
28
|
+
this.inputId = `input-${++id}`;
|
|
29
|
+
this.isBlur = false;
|
|
30
|
+
this.type = 'text';
|
|
31
|
+
this.value = '';
|
|
32
|
+
this.size = "medium";
|
|
33
|
+
this.label = undefined;
|
|
34
|
+
this.noCaption = false;
|
|
35
|
+
this.noMargin = false;
|
|
36
|
+
this.captionError = undefined;
|
|
37
|
+
this.caption = undefined;
|
|
38
|
+
this.captionType = 'default';
|
|
39
|
+
this.placeholder = undefined;
|
|
40
|
+
this.fullWidth = false;
|
|
41
|
+
this.disabled = false;
|
|
42
|
+
this.readonly = false;
|
|
43
|
+
this.clearable = false;
|
|
44
|
+
this.passwordToggle = undefined;
|
|
45
|
+
this.noDefaultIcon = undefined;
|
|
46
|
+
this._id = undefined;
|
|
47
|
+
this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
|
|
48
|
+
this.name = undefined;
|
|
49
|
+
this.unit = null;
|
|
50
|
+
this.unitPrefix = null;
|
|
51
|
+
this.decimal = undefined;
|
|
52
|
+
this.min = null;
|
|
53
|
+
this.max = null;
|
|
54
|
+
this.step = null;
|
|
55
|
+
this.hidden = false;
|
|
56
|
+
this.required = false;
|
|
57
|
+
this.disableWatchValue = false;
|
|
58
|
+
this.maxLength = null;
|
|
59
|
+
this.tooltip = undefined;
|
|
60
|
+
this.inValid = false;
|
|
61
|
+
this.valueCache = undefined;
|
|
62
|
+
this.captionCache = undefined;
|
|
63
|
+
this.captionTypeCache = undefined;
|
|
64
|
+
this.hasFocus = false;
|
|
65
|
+
this.isPasswordVisible = false;
|
|
66
|
+
}
|
|
67
|
+
async setFocus() {
|
|
68
|
+
this.inputElement.focus();
|
|
69
|
+
}
|
|
70
|
+
async removeFocus() {
|
|
71
|
+
this.inputElement.blur();
|
|
72
|
+
}
|
|
73
|
+
async select() {
|
|
74
|
+
return this.inputElement.select();
|
|
75
|
+
}
|
|
76
|
+
async setValue(value) {
|
|
77
|
+
this.inputElement.value = value;
|
|
78
|
+
this.value = value;
|
|
79
|
+
this.handleChange();
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
async setClear() {
|
|
83
|
+
this.inputElement.value = '';
|
|
84
|
+
this.value = '';
|
|
85
|
+
await delay(10);
|
|
86
|
+
return Promise.resolve();
|
|
87
|
+
}
|
|
88
|
+
async resetCaption() {
|
|
89
|
+
await delay(10);
|
|
90
|
+
this.caption = this.captionCache;
|
|
91
|
+
this.captionType = this.captionTypeCache;
|
|
92
|
+
this.captionError = null;
|
|
93
|
+
await delay(10);
|
|
94
|
+
return Promise.resolve();
|
|
95
|
+
}
|
|
96
|
+
async getValue() {
|
|
97
|
+
return this.value;
|
|
98
|
+
}
|
|
99
|
+
handleFocus() {
|
|
100
|
+
this.hasFocus = true;
|
|
101
|
+
this.focus.emit();
|
|
102
|
+
}
|
|
103
|
+
handleBlur() {
|
|
104
|
+
this.hasFocus = false;
|
|
105
|
+
this.isBlur = true;
|
|
106
|
+
if (this.type == "email") {
|
|
107
|
+
this.isEmailValid();
|
|
108
|
+
}
|
|
109
|
+
if (this.type == "tel") {
|
|
110
|
+
this.isTelValid();
|
|
111
|
+
}
|
|
112
|
+
this.blur.emit();
|
|
113
|
+
}
|
|
114
|
+
handleChange() {
|
|
115
|
+
this.value = this.inputElement.value;
|
|
116
|
+
this.change.emit(this.value);
|
|
117
|
+
}
|
|
118
|
+
handleInput() {
|
|
119
|
+
if (this.type == "number") {
|
|
120
|
+
if (this.decimal == "false") {
|
|
121
|
+
this.inputElement.value = this.inputElement.value.replace(/[^0-9-]/g, '');
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
this.inputElement.value = this.inputElement.value.replace(/[^0-9.,-]/g, '');
|
|
125
|
+
}
|
|
126
|
+
this.inputElement.value = this.inputElement.value.replace(/(\..*)\./g, '$1').replace(/(\-.*)\-/g, '$1');
|
|
127
|
+
}
|
|
128
|
+
this.value = this.inputElement.value;
|
|
129
|
+
this.input.emit(this.value);
|
|
130
|
+
}
|
|
131
|
+
handleClear(e) {
|
|
132
|
+
this.inputElement.value = '';
|
|
133
|
+
this.value = '';
|
|
134
|
+
this.inputElement.focus();
|
|
135
|
+
this.change.emit(this.value);
|
|
136
|
+
this.clear.emit(e);
|
|
137
|
+
e.stopPropagation();
|
|
138
|
+
}
|
|
139
|
+
changePasswordVisibility() {
|
|
140
|
+
this.isPasswordVisible = !this.isPasswordVisible;
|
|
141
|
+
}
|
|
142
|
+
incrementNumber() {
|
|
143
|
+
if (!this.inValid && !this.disabled && !this.readonly) {
|
|
144
|
+
let step = this.getNumberStep();
|
|
145
|
+
let val = Number(this.value) + Number(step);
|
|
146
|
+
this.value = this.numberDecimal(val);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
decrementNumber() {
|
|
150
|
+
if (!this.inValid && !this.disabled && !this.readonly) {
|
|
151
|
+
let step = this.getNumberStep();
|
|
152
|
+
let val = Number(this.value) - Number(step);
|
|
153
|
+
this.value = this.numberDecimal(val);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
getNumberStep(step = Number(this.step)) {
|
|
157
|
+
let returnStep = 1;
|
|
158
|
+
if (step && Number(step) == step)
|
|
159
|
+
returnStep = step;
|
|
160
|
+
return Number(returnStep);
|
|
161
|
+
}
|
|
162
|
+
connectedCallback() {
|
|
163
|
+
this.changePasswordVisibility = this.changePasswordVisibility.bind(this);
|
|
164
|
+
this.handleChange = this.handleChange.bind(this);
|
|
165
|
+
this.handleBlur = this.handleBlur.bind(this);
|
|
166
|
+
this.handleFocus = this.handleFocus.bind(this);
|
|
167
|
+
this.handleInput = this.handleInput.bind(this);
|
|
168
|
+
this.handleClear = this.handleClear.bind(this);
|
|
169
|
+
this.incrementNumber = this.incrementNumber.bind(this);
|
|
170
|
+
this.decrementNumber = this.decrementNumber.bind(this);
|
|
171
|
+
this.valueCache = this.value;
|
|
172
|
+
this.captionCache = this.caption;
|
|
173
|
+
this.captionTypeCache = this.captionType;
|
|
174
|
+
}
|
|
175
|
+
validationRange(val = JSON.stringify({
|
|
176
|
+
"value": this.value,
|
|
177
|
+
"min": this.min,
|
|
178
|
+
"max": this.max
|
|
179
|
+
})) {
|
|
180
|
+
let cap = null;
|
|
181
|
+
let capType = null;
|
|
182
|
+
let returnValidation = true;
|
|
183
|
+
let item = JSON.parse(val);
|
|
184
|
+
let { length, value, min, max } = item;
|
|
185
|
+
length = parseFloat(length);
|
|
186
|
+
value = parseFloat(value);
|
|
187
|
+
min = parseFloat(min);
|
|
188
|
+
max = parseFloat(max);
|
|
189
|
+
length !== 0 && (value && (min && max && ((value < min || value > max) && (cap = "Please enter a value between " + min + " and " + max + ".",
|
|
190
|
+
capType = "error",
|
|
191
|
+
returnValidation = false)) || min && !max && (value < min && (cap = "Please enter a value greater than or equal to " + min + ".",
|
|
192
|
+
capType = "error",
|
|
193
|
+
returnValidation = false)) || !min && max && (value > max && (cap = "Please enter a value less than or equal to " + max + ".",
|
|
194
|
+
capType = "error",
|
|
195
|
+
returnValidation = false))));
|
|
196
|
+
this.setCaption(cap, capType);
|
|
197
|
+
return returnValidation;
|
|
198
|
+
}
|
|
199
|
+
setCaption(caption = null, captionType = null) {
|
|
200
|
+
this.caption = caption ? caption : this.captionCache;
|
|
201
|
+
this.captionType = captionType ? captionType : this.captionTypeCache;
|
|
202
|
+
this.captionError = captionType == "error" ? caption : null;
|
|
203
|
+
}
|
|
204
|
+
isEmailValid() {
|
|
205
|
+
const { value } = this;
|
|
206
|
+
const regexp = new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
207
|
+
let cap = null;
|
|
208
|
+
let capType = null;
|
|
209
|
+
if (value && !regexp.test(value)) {
|
|
210
|
+
cap = "Please enter a valid email address.",
|
|
211
|
+
capType = "error",
|
|
212
|
+
this.inValid = true;
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
this.inValid = false;
|
|
216
|
+
}
|
|
217
|
+
this.setCaption(cap, capType);
|
|
218
|
+
return this.inValid;
|
|
219
|
+
}
|
|
220
|
+
isTelValid() {
|
|
221
|
+
const { value } = this;
|
|
222
|
+
const regexp = new RegExp(/^(?=.*[0-9])[- +()0-9]+$/);
|
|
223
|
+
let cap = null;
|
|
224
|
+
let capType = null;
|
|
225
|
+
if (value && !regexp.test(value)) {
|
|
226
|
+
cap = "Please enter a valid phone number.",
|
|
227
|
+
capType = "error",
|
|
228
|
+
this.inValid = true;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
this.inValid = false;
|
|
232
|
+
}
|
|
233
|
+
this.setCaption(cap, capType);
|
|
234
|
+
return this.inValid;
|
|
235
|
+
}
|
|
236
|
+
isNumberValid(caption = "Invalid number", captionType = "error") {
|
|
237
|
+
const { value } = this;
|
|
238
|
+
if (value && Number(value) != value) {
|
|
239
|
+
this.inValid = true;
|
|
240
|
+
this.setCaption(caption, captionType);
|
|
241
|
+
return true;
|
|
242
|
+
}
|
|
243
|
+
this.inValid = false;
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
setNumberUnit() {
|
|
247
|
+
const { value, unit } = this;
|
|
248
|
+
if (Number(value) == value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !value)
|
|
249
|
+
this.value = 0;
|
|
250
|
+
}
|
|
251
|
+
numberDecimal(val = '') {
|
|
252
|
+
let decLen = this.getDecimalLength();
|
|
253
|
+
if (val && decLen)
|
|
254
|
+
return parseFloat(val).toFixed(decLen);
|
|
255
|
+
return val;
|
|
256
|
+
}
|
|
257
|
+
numberNotDecimal(val = 0) {
|
|
258
|
+
return Math.trunc(val);
|
|
259
|
+
}
|
|
260
|
+
getDecimalLength() {
|
|
261
|
+
const { step } = this;
|
|
262
|
+
let returnDecimalLength = 0, splitted, splitDec;
|
|
263
|
+
if (step && Number(step) == step) {
|
|
264
|
+
if (String(step).includes(".")) {
|
|
265
|
+
splitted = String(step).split('.');
|
|
266
|
+
splitDec = splitted[splitted.length - 1].length;
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
splitDec = 0;
|
|
270
|
+
}
|
|
271
|
+
returnDecimalLength = splitDec;
|
|
272
|
+
}
|
|
273
|
+
return Number(returnDecimalLength);
|
|
274
|
+
}
|
|
275
|
+
componentWillRender() {
|
|
276
|
+
const { type } = this;
|
|
277
|
+
if (type == "number" && this.value) {
|
|
278
|
+
if (!this.isNumberValid()) {
|
|
279
|
+
this.validationRange();
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (this.isBlur) {
|
|
283
|
+
if (type == "email" && this.value) {
|
|
284
|
+
this.isEmailValid();
|
|
285
|
+
}
|
|
286
|
+
if (type == "tel" && this.value) {
|
|
287
|
+
this.isTelValid();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
componentWillLoad() {
|
|
292
|
+
const { type, value } = this;
|
|
293
|
+
if (type == "number" && Number(value) == value) {
|
|
294
|
+
this.value = this.numberDecimal(value);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
numberControl(e) {
|
|
298
|
+
if (!this.disabled && !this.readonly) {
|
|
299
|
+
if (this.type == "number") {
|
|
300
|
+
var which = e.which || 0;
|
|
301
|
+
var key = e.key;
|
|
302
|
+
which == 38 && ( // up arrow
|
|
303
|
+
e.preventDefault(),
|
|
304
|
+
this.incrementNumber());
|
|
305
|
+
which == 40 && ( // down arrow
|
|
306
|
+
e.preventDefault(),
|
|
307
|
+
this.decrementNumber());
|
|
308
|
+
key == "." && String(this.value).includes(".") && ( // dot: shouldn't be more than one
|
|
309
|
+
e.preventDefault());
|
|
310
|
+
if (which == 8 || //backspace / delete
|
|
311
|
+
which == 9 || //tab
|
|
312
|
+
which == 13 || //enter
|
|
313
|
+
which == 16 || //shift
|
|
314
|
+
which == 17 || //ctrl
|
|
315
|
+
which == 18 || //alt
|
|
316
|
+
which == 46 || //delete
|
|
317
|
+
(which == 110 && (this.type == 'number' && this.decimal != false)) || //decimal point
|
|
318
|
+
// (which == 188 && key == ",") || //comma
|
|
319
|
+
(which == 190 && key == "." && (this.type == 'number' && this.decimal != false)) || //period
|
|
320
|
+
(which == 189 && this.inputElement.value.length == 0) || //-
|
|
321
|
+
(which == 109 && this.inputElement.value.length == 0) || //-
|
|
322
|
+
(which >= 35 && which <= 40) || //end, home, left arrow, up arrow, right arrow, down arrow
|
|
323
|
+
(which >= 48 && which <= 57) || //0-9
|
|
324
|
+
(which >= 96 && which <= 105) //0-9(numpad)
|
|
325
|
+
)
|
|
326
|
+
return true;
|
|
327
|
+
e.preventDefault();
|
|
328
|
+
if (this.decimal == true) {
|
|
329
|
+
this.value = this.numberDecimal(this.value);
|
|
330
|
+
}
|
|
331
|
+
else if (this.decimal == false) {
|
|
332
|
+
this.value = this.numberNotDecimal(this.value);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
whatchHasFocus() {
|
|
338
|
+
const { type, hasFocus, value, valueCache, inValid } = this;
|
|
339
|
+
if (type == "number") {
|
|
340
|
+
this.isNumberValid();
|
|
341
|
+
let inValidState = false;
|
|
342
|
+
if (hasFocus == true) {
|
|
343
|
+
if (inValid == true) {
|
|
344
|
+
this.value = '';
|
|
345
|
+
inValidState = true;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
if (this.value == '' && inValid == false) {
|
|
350
|
+
this.value = valueCache;
|
|
351
|
+
inValidState = true;
|
|
352
|
+
}
|
|
353
|
+
if (value != valueCache && inValid == false && inValidState == false) {
|
|
354
|
+
this.value = value ? this.numberDecimal(value) : '';
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
watchValue() {
|
|
360
|
+
if (!this.disableWatchValue && this.type != 'number') {
|
|
361
|
+
this.handleChange();
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
render() {
|
|
365
|
+
const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, hasFocus, unitPrefix, noCaption, required } = this;
|
|
366
|
+
const containerClasses = classnames('input-container', {
|
|
367
|
+
'full-width': fullWidth,
|
|
368
|
+
'error': captionType == 'error' ? true : false
|
|
369
|
+
});
|
|
370
|
+
const baseClasses = classnames('input-base', 'input-' + size, {
|
|
371
|
+
'invalid': inValid,
|
|
372
|
+
'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
373
|
+
'focused': hasFocus,
|
|
374
|
+
'disabled': disabled,
|
|
375
|
+
'readonly': readonly,
|
|
376
|
+
'empty': (value === null || value === void 0 ? void 0 : value.length) < 1
|
|
377
|
+
});
|
|
378
|
+
const inputClass = size === 'large' ? 'size-3' : 'size-2';
|
|
379
|
+
const hostClasses = classnames(this.hidden ? 'hidden' : null, this.noMargin ? 'no-margin' : null);
|
|
380
|
+
return (h(Host, { class: hostClasses }, h("div", { class: containerClasses }, label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.inputId })), h("div", { class: baseClasses }, h("span", { class: "input-prefix" }, h("slot", { name: "prefix" }), unitPrefix && h("span", { class: classnames(inputClass, 'unit-prefix') }, unitPrefix)), h("input", { "bcm-internal-id": this._id, id: this.inputId, class: inputClass, ref: el => (this.inputElement = el), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onInput: this.handleInput, maxLength: this.maxLength, type: type === 'password' && isPasswordVisible ? 'text' :
|
|
381
|
+
type === 'number' ? 'text' : type, placeholder: placeholder, value: type === 'number' && !this.hasFocus
|
|
382
|
+
? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? ' ' + unit : '')
|
|
383
|
+
: value, disabled: this.disabled, readonly: this.readonly }), clearable && !this.disabled && (h("button", { class: "input-clear-button", onClick: this.handleClear }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, h("path", { d: "M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z" })))), type === 'password' && passwordToggle && (h("button", { class: "input-password-toggle", onClick: this.changePasswordVisibility }, h("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-invisible" : "far fa-eye" }))), Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h("span", { class: "input-suffix default-icon", innerHTML: defaultIcons[type] })), type === 'number' && (h("div", { class: classnames('caret-container', { 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0 }, { 'disabled': inValid }, { 'disabled': readonly }) }, h("span", { class: "caret", onClick: inValid == false && this.incrementNumber }, h("bcm-icon", { icon: "far fa-caret-up" })), h("span", { class: "caret", onClick: inValid == false && this.decrementNumber }, h("bcm-icon", { icon: "far fa-caret-down" })))), type !== 'number' && (h("span", { class: "input-suffix" }, h("slot", { name: "suffix" })))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption }))));
|
|
384
|
+
}
|
|
385
|
+
get el() { return getElement(this); }
|
|
386
|
+
static get watchers() { return {
|
|
387
|
+
"hasFocus": ["whatchHasFocus"],
|
|
388
|
+
"value": ["watchValue"]
|
|
389
|
+
}; }
|
|
390
|
+
};
|
|
391
|
+
BcmOldInput.style = oldInputCss;
|
|
392
|
+
|
|
393
|
+
export { BcmOldInput as bcm_old_input };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
7
|
import { C as ColorPalette } from './colors-1d7854ea.js';
|
|
8
|
-
import { e as extractColor } from './utils-
|
|
9
|
-
import './_commonjsHelpers-
|
|
8
|
+
import { e as extractColor } from './utils-b3338faf.js';
|
|
9
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* 'color' prop predefined values
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import { c as colors } from './colors-
|
|
8
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { r as registerInstance, h, H as Host } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
+
import { c as colors } from './colors-e1c31f79.js';
|
|
8
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
9
9
|
|
|
10
10
|
const BcmOverlay = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import { C as ColorHelper } from './color-helper-
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import { S as StringHelper } from './string-helper-
|
|
10
|
-
import { s as setPosition } from './popover-placement-
|
|
11
|
-
import './_commonjsHelpers-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
+
import { C as ColorHelper } from './color-helper-c4fa9ebc.js';
|
|
8
|
+
import { G as Generate } from './generate-40dfe3b0.js';
|
|
9
|
+
import { S as StringHelper } from './string-helper-5bd646f2.js';
|
|
10
|
+
import { s as setPosition } from './popover-placement-941bf3f3.js';
|
|
11
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
12
12
|
import './colors-1d7854ea.js';
|
|
13
|
-
import './utils-
|
|
14
|
-
import './colors-
|
|
15
|
-
import './package-
|
|
13
|
+
import './utils-b3338faf.js';
|
|
14
|
+
import './colors-e1c31f79.js';
|
|
15
|
+
import './package-1618c1e9.js';
|
|
16
16
|
import './bcm-d45dc47d.js';
|
|
17
17
|
|
|
18
18
|
const popconfirmBoxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-popconfirm-box{position:absolute;transition:transform 0.2s ease-in-out;}.bcm-popconfirm-box .bcm-pop-box{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:10px;line-height:calc(10px + 8px);box-shadow:0 4px 12px 2px rgba(17, 24, 38, 0.1);border-radius:4px;position:absolute;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;z-index:-99999;overflow:hidden;visibility:hidden;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content{display:flex;flex-direction:row;align-items:flex-start}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-icon{margin-right:8px;min-width:16px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-text{display:flex;flex-direction:row;align-items:center;text-align:left;padding-top:1px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons{display:flex;justify-content:flex-end;margin-top:8px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons bcm-button:first-child{margin-right:8px}.bcm-popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10900;pointer-events:none}.bcm-popconfirm-box.bcm-pop-open{display:block;z-index:10900}.bcm-popconfirm-box.bcm-pop-open .bcm-pop-box{z-index:10900;overflow:unset;visibility:unset}.bcm-popconfirm-box.bcm-pop-open::after{display:block}.bcm-popconfirm-box.top .bcm-pop-box{bottom:100%;margin-bottom:16px}.bcm-popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.bcm-popconfirm-box.bottom .bcm-pop-box{top:100%;margin-top:16px}.bcm-popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.bcm-popconfirm-box.left .bcm-pop-box{right:100%;margin-right:16px}.bcm-popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.bcm-popconfirm-box.right .bcm-pop-box{left:100%;margin-left:16px}.bcm-popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.bcm-popconfirm-box.top.center .bcm-pop-box,.bcm-popconfirm-box.bottom.center .bcm-pop-box{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.center::after,.bcm-popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.start .bcm-pop-box,.bcm-popconfirm-box.bottom.start .bcm-pop-box{left:0}.bcm-popconfirm-box.top.start::after,.bcm-popconfirm-box.bottom.start::after{left:16px}.bcm-popconfirm-box.top.end .bcm-pop-box,.bcm-popconfirm-box.bottom.end .bcm-pop-box{right:0}.bcm-popconfirm-box.top.end::after,.bcm-popconfirm-box.bottom.end::after{right:16px}.bcm-popconfirm-box.left.center .bcm-pop-box,.bcm-popconfirm-box.right.center .bcm-pop-box{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.center::after,.bcm-popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.start .bcm-pop-box,.bcm-popconfirm-box.right.start .bcm-pop-box{top:0}.bcm-popconfirm-box.left.start::after,.bcm-popconfirm-box.right.start::after{top:12px}.bcm-popconfirm-box.left.end .bcm-pop-box,.bcm-popconfirm-box.right.end .bcm-pop-box{bottom:0}.bcm-popconfirm-box.left.end::after,.bcm-popconfirm-box.right.end::after{bottom:12px}.bcm-popconfirm-box.top{transform:translateY(1px)}.bcm-popconfirm-box.bottom{transform:translateY(-1px)}.bcm-popconfirm-box.left{transform:translateX(1px)}.bcm-popconfirm-box.right{transform:translateX(-1px)}.bcm-popconfirm-box.top.bcm-pop-open,.bcm-popconfirm-box.bottom.bcm-pop-open{transform:translateY(0)}.bcm-popconfirm-box.left.bcm-pop-open,.bcm-popconfirm-box.right.bcm-pop-open{transform:translateX(0)}";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
6
|
-
import { c as classnames } from './index-
|
|
7
|
-
import { G as Generate } from './generate-
|
|
8
|
-
import {
|
|
9
|
-
import './_commonjsHelpers-
|
|
10
|
-
import './package-
|
|
11
|
-
import './colors-
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-b84bc8c9.js';
|
|
7
|
+
import { G as Generate } from './generate-40dfe3b0.js';
|
|
8
|
+
import { a as Bcm } from './bcm-d45dc47d.js';
|
|
9
|
+
import './_commonjsHelpers-be0d4ec8.js';
|
|
10
|
+
import './package-1618c1e9.js';
|
|
11
|
+
import './colors-e1c31f79.js';
|
|
12
12
|
|
|
13
13
|
const popconfirmCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-popconfirm{display:inline-flex}";
|
|
14
14
|
|