bromcom-ui 2.7.38-rc.9 → 2.8.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/helper/index.ts +1 -0
- package/dist/bromcom-ui/global/helper/toast.ts +136 -0
- package/dist/bromcom-ui/{p-3f4192c8.entry.js → p-0191554f.entry.js} +1 -1
- package/dist/bromcom-ui/p-040f1cc5.entry.js +5 -0
- package/dist/bromcom-ui/{p-2dc55ebd.entry.js → p-05a32a81.entry.js} +1 -1
- package/dist/bromcom-ui/{p-72f741db.entry.js → p-0b77585e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-64b20f43.entry.js → p-0f685aa9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fa5118d5.entry.js → p-13f0d66c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c58f338d.entry.js → p-14938158.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2de23a54.entry.js → p-1d77cf0f.entry.js} +1 -1
- package/dist/bromcom-ui/p-21bf2bb5.js +5 -0
- package/dist/bromcom-ui/p-22e08221.entry.js +5 -0
- package/dist/bromcom-ui/p-23cb7133.js +5 -0
- package/dist/bromcom-ui/{p-1eaffb4d.entry.js → p-2552592a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5001042f.js → p-2a2466d0.js} +1 -1
- package/dist/bromcom-ui/{p-c421b369.entry.js → p-2b774123.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dddbb790.entry.js → p-2cac45d6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-444cb95f.entry.js → p-2cdc4578.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9d349123.entry.js → p-2f0e0ecf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4721d58a.entry.js → p-369d6e4f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-969f623c.entry.js → p-3836eb77.entry.js} +1 -1
- package/dist/bromcom-ui/{p-69ef565b.entry.js → p-3d4897d8.entry.js} +1 -1
- package/dist/bromcom-ui/p-4487e8c2.js +5 -0
- package/dist/bromcom-ui/p-4789cc74.entry.js +5 -0
- package/dist/bromcom-ui/{p-5775dcea.js → p-48e9166c.js} +1 -1
- package/dist/bromcom-ui/{p-1d44dbea.entry.js → p-4a123037.entry.js} +1 -1
- package/dist/bromcom-ui/p-4a51c718.entry.js +5 -0
- package/dist/bromcom-ui/{p-cf5ad8a8.entry.js → p-4d556100.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea9667ba.entry.js → p-4fa21c01.entry.js} +1 -1
- package/dist/bromcom-ui/{p-15dcafdc.entry.js → p-53beb481.entry.js} +1 -1
- package/dist/bromcom-ui/p-583d6b09.entry.js +5 -0
- package/dist/bromcom-ui/{p-b00d3d27.entry.js → p-5a5cc30f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-612f6cbc.entry.js → p-5c2bf950.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fc55a7e3.entry.js → p-5d014153.entry.js} +1 -1
- package/dist/bromcom-ui/p-5de651cc.entry.js +5 -0
- package/dist/bromcom-ui/{p-adf96c3b.entry.js → p-5fa48e18.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3126f440.entry.js → p-61709094.entry.js} +1 -1
- package/dist/bromcom-ui/{p-751ee360.entry.js → p-61865ff2.entry.js} +1 -1
- package/dist/bromcom-ui/p-695f6b01.entry.js +5 -0
- package/dist/bromcom-ui/{p-930558cd.js → p-6a473342.js} +1 -1
- package/dist/bromcom-ui/p-7224e112.entry.js +5 -0
- package/dist/bromcom-ui/{p-16ff1ff3.js → p-74595a06.js} +1 -1
- package/dist/bromcom-ui/{p-0a6cf248.entry.js → p-74e46eeb.entry.js} +1 -1
- package/dist/bromcom-ui/p-7c9025cb.js +5 -0
- package/dist/bromcom-ui/{p-2d75fb9d.entry.js → p-7d9a38b0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/p-7f1a79c5.entry.js +5 -0
- package/dist/bromcom-ui/{p-7b7ae0f3.entry.js → p-816c4dc7.entry.js} +1 -1
- package/dist/bromcom-ui/p-86356b26.entry.js +5 -0
- package/dist/bromcom-ui/{p-f7e85c95.entry.js → p-870c903a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ba062b3c.js → p-88f7d869.js} +1 -1
- package/dist/bromcom-ui/p-8b60d1db.entry.js +5 -0
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/{p-219b3300.entry.js → p-8d1cd79f.entry.js} +1 -1
- package/dist/bromcom-ui/p-8dbe72a1.entry.js +5 -0
- package/dist/bromcom-ui/{p-620afa4f.js → p-8fdcb5e7.js} +1 -1
- package/dist/bromcom-ui/p-91b1efad.entry.js +5 -0
- package/dist/bromcom-ui/{p-57d0c6e7.entry.js → p-97df9122.entry.js} +1 -1
- package/dist/bromcom-ui/p-994e484e.entry.js +5 -0
- package/dist/bromcom-ui/{p-ee9ba6ba.entry.js → p-9a1dc17c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1d77b8a6.js → p-9bef5a59.js} +1 -1
- package/dist/bromcom-ui/{p-2b73f6b1.entry.js → p-9d3a9f5b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4f86851c.entry.js → p-a173ed35.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a8d1397d.js → p-a3ffcb0d.js} +1 -1
- package/dist/bromcom-ui/p-a427f0ee.entry.js +5 -0
- package/dist/bromcom-ui/{p-918acf86.entry.js → p-a9ab4073.entry.js} +1 -1
- package/dist/bromcom-ui/{p-962d32ef.entry.js → p-b1d6b529.entry.js} +1 -1
- package/dist/bromcom-ui/{p-de332baa.entry.js → p-b39f6cb3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d1bd9b8d.entry.js → p-b69abb6f.entry.js} +1 -1
- package/dist/bromcom-ui/p-b8ffc86f.entry.js +5 -0
- package/dist/bromcom-ui/{p-faee01b2.entry.js → p-bb95aa62.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6c77955c.entry.js → p-bc332b5d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-44843df2.entry.js → p-bc97d311.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5a9b78f6.entry.js → p-bdb012c3.entry.js} +1 -1
- package/dist/bromcom-ui/p-c0ac6d54.entry.js +5 -0
- package/dist/bromcom-ui/p-c68f44be.entry.js +5 -0
- package/dist/bromcom-ui/{p-69bffd70.entry.js → p-cf04e7a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e9cea37d.entry.js → p-d4ff4de0.entry.js} +1 -1
- package/dist/bromcom-ui/p-d777677c.entry.js +10 -0
- package/dist/bromcom-ui/p-da540844.entry.js +5 -0
- package/dist/bromcom-ui/{p-a368c325.entry.js → p-dae1cc7b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b9352123.entry.js → p-dc306bd8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-764ae0c1.js → p-de954bc9.js} +1 -1
- package/dist/bromcom-ui/{p-c3ef369d.entry.js → p-dfe8e354.entry.js} +1 -1
- package/dist/bromcom-ui/{p-568f4f45.entry.js → p-e02491ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-e0ec1a36.js +5 -0
- package/dist/bromcom-ui/{p-0b6afb97.entry.js → p-e2b3cb98.entry.js} +1 -1
- package/dist/bromcom-ui/p-e2e7d808.entry.js +5 -0
- package/dist/bromcom-ui/{p-cd8998bd.entry.js → p-ec7f4a12.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4b1ed966.entry.js → p-f089027d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9979bd82.entry.js → p-f16ce14a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-08c22a43.entry.js → p-f21a7fc0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-87de49b4.entry.js → p-fe996e86.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9608226.entry.js → p-fea33175.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
- package/dist/cjs/{bcm-button.cjs.entry.js → bcm-button_2.cjs.entry.js} +125 -28
- package/dist/cjs/bcm-card.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
- package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
- package/dist/cjs/{bcm-colorful_7.cjs.entry.js → bcm-colorful_2.cjs.entry.js} +8 -903
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +432 -0
- package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-default.cjs.entry.js +1 -1
- package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form.cjs.entry.js +1 -1
- package/dist/cjs/bcm-icon.cjs.entry.js +41 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +72 -0
- package/dist/cjs/bcm-input.cjs.entry.js +368 -0
- package/dist/cjs/bcm-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-items.cjs.entry.js +1 -1
- package/dist/cjs/bcm-label_2.cjs.entry.js +148 -0
- package/dist/cjs/bcm-link.cjs.entry.js +1 -1
- package/dist/cjs/bcm-list.cjs.entry.js +13 -12
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +82 -33
- package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio.cjs.entry.js +2 -2
- package/dist/cjs/bcm-range.cjs.entry.js +1 -1
- package/dist/cjs/bcm-search.cjs.entry.js +4 -3
- package/dist/cjs/bcm-select.cjs.entry.js +1 -1
- package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bcm-step.cjs.entry.js +2 -2
- package/dist/cjs/bcm-stepper.cjs.entry.js +55 -29
- package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab-group.cjs.entry.js +85 -98
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +86 -0
- package/dist/cjs/bcm-tab-item.cjs.entry.js +103 -0
- package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
- package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
- package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{generate-dbed3a63.js → generate-eef61d08.js} +105 -16
- package/dist/cjs/{input-template-79002b88.js → input-template-517c3f53.js} +2 -2
- package/dist/cjs/{json-parse-decarator-65760934.js → json-parse-decarator-c0d7e570.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{number-helper-d77c9113.js → number-helper-652dc22d.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
- package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
- package/dist/cjs/{stepper-states-fae35b0d.js → stepper-states-d00a1313.js} +1 -1
- package/dist/cjs/{tooltip-helper-7beca613.js → tooltip-helper-cd02e32b.js} +36 -6
- package/dist/cjs/{validators-95afb38d.js → validators-7eed007b.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/atoms/button/button.js +1 -1
- package/dist/collection/components/atoms/chip/chip.js +1 -1
- package/dist/collection/components/atoms/link/link.js +1 -1
- package/dist/collection/components/molecules/checkbox/checkbox.css +1 -0
- package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
- package/dist/collection/components/molecules/input/input.js +5 -2
- package/dist/collection/components/molecules/menu/menu.js +1 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
- package/dist/collection/components/molecules/popover/popover.js +107 -2
- package/dist/collection/components/molecules/radio/radio.css +1 -0
- package/dist/collection/components/molecules/search/search.js +20 -1
- package/dist/collection/components/molecules/stepper/stepper.js +55 -35
- package/dist/collection/components/molecules/switch/switch.js +1 -1
- package/dist/collection/components/molecules/tab-group/tab-group.js +98 -100
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +186 -0
- package/dist/collection/components/molecules/tab-group/tab-item.js +161 -0
- package/dist/collection/components/molecules/tooltip/tooltip.js +109 -2
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/organism/form/form.js +1 -1
- package/dist/collection/components/organism/list/list.css +1 -0
- package/dist/collection/components/organism/list/list.js +21 -2
- package/dist/collection/components/organism/states/bcm-list2.states.js +1 -1
- package/dist/collection/components/other/attendance/attendance.js +1 -1
- package/dist/collection/components/other/input-custom/input-custom.js +249 -0
- package/dist/collection/components/other/toast/toast.js +365 -0
- package/dist/collection/components/other_deprecated/select/select.js +1 -1
- package/dist/collection/global/components/_checkbox.css +1 -0
- package/dist/collection/global/helper/index.js +5 -0
- package/dist/collection/global/helper/index.ts +1 -0
- package/dist/collection/global/helper/toast.js +114 -0
- package/dist/collection/global/helper/toast.ts +136 -0
- package/dist/collection/helper/generate.js +108 -19
- package/dist/collection/helper/popover-helper.js +57 -29
- package/dist/collection/helper/tooltip-helper.js +33 -4
- package/dist/collection/stories/assets/button/1.svg +35 -0
- package/dist/collection/stories/assets/button/10.svg +24 -0
- package/dist/collection/stories/assets/button/11.svg +24 -0
- package/dist/collection/stories/assets/button/12.svg +24 -0
- package/dist/collection/stories/assets/button/2.svg +28 -0
- package/dist/collection/stories/assets/button/3.svg +41 -0
- package/dist/collection/stories/assets/button/4.svg +9 -0
- package/dist/collection/stories/assets/button/5.svg +65 -0
- package/dist/collection/stories/assets/button/6.svg +68 -0
- package/dist/collection/stories/assets/button/7.svg +203 -0
- package/dist/collection/stories/assets/button/8.svg +316 -0
- package/dist/collection/stories/assets/button/9.svg +9 -0
- package/dist/collection/templates/button-template.js +1 -1
- package/dist/collection/templates/input-template.js +1 -1
- package/dist/collection/templates/list-item-template.js +1 -1
- package/dist/collection/templates/list-template.js +2 -2
- package/dist/components/bcm-attendance.js +1 -1
- package/dist/components/bcm-chip.js +1 -1
- package/dist/components/bcm-form.js +1 -1
- package/dist/components/bcm-input-custom.d.ts +11 -0
- package/dist/components/bcm-input-custom.js +114 -0
- package/dist/components/bcm-list.js +11 -9
- package/dist/components/bcm-popconfirm.js +1 -1
- package/dist/components/bcm-popover.js +83 -30
- package/dist/components/bcm-select.js +1 -1
- package/dist/components/bcm-stepper.js +51 -33
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab-group.js +84 -98
- package/dist/components/bcm-tab-item-header.d.ts +11 -0
- package/dist/components/bcm-tab-item-header.js +102 -0
- package/dist/components/bcm-tab-item.d.ts +11 -0
- package/dist/components/bcm-tab-item.js +117 -0
- package/dist/components/bcm-tab.js +1 -1
- package/dist/components/bcm-tabs-content.js +1 -1
- package/dist/components/bcm-tabs.js +1 -1
- package/dist/components/bcm-tag.js +1 -1
- package/dist/components/bcm-toast.d.ts +11 -0
- package/dist/components/bcm-toast.js +140 -0
- package/dist/components/button.js +2 -2
- package/dist/components/checkbox-lite.js +1 -1
- package/dist/components/checkbox.js +2 -2
- package/dist/components/datetime-picker.js +1 -1
- package/dist/components/generate.js +105 -16
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/input-template.js +2 -15
- package/dist/components/input.js +5 -2
- package/dist/components/link.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/search.js +3 -1
- package/dist/components/tooltip-helper.js +33 -3
- package/dist/components/tooltip.js +29 -3
- package/dist/components/types.js +14 -27
- package/dist/components/types2.js +25 -25
- package/dist/components/types3.js +32 -0
- package/dist/esm/bcm-accordion.entry.js +3 -3
- package/dist/esm/bcm-alert.entry.js +4 -4
- package/dist/esm/bcm-attendance.entry.js +4 -4
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +9 -9
- package/dist/esm/bcm-box.entry.js +2 -2
- package/dist/esm/bcm-breadcrumb.entry.js +3 -3
- package/dist/esm/bcm-button-group.entry.js +3 -3
- package/dist/esm/{bcm-button.entry.js → bcm-button_2.entry.js} +124 -28
- package/dist/esm/bcm-card.entry.js +6 -6
- package/dist/esm/bcm-checkbox-group.entry.js +7 -7
- package/dist/esm/bcm-checkbox-lite_9.entry.js +5 -5
- package/dist/esm/bcm-checkbox_2.entry.js +9 -9
- package/dist/esm/bcm-chip.entry.js +6 -6
- package/dist/esm/bcm-collapse-group.entry.js +3 -3
- package/dist/esm/bcm-collapse.entry.js +3 -3
- package/dist/esm/bcm-color-input.entry.js +7 -7
- package/dist/esm/{bcm-colorful_7.entry.js → bcm-colorful_2.entry.js} +15 -905
- package/dist/esm/bcm-colorpicker.entry.js +428 -0
- package/dist/esm/bcm-date-picker.entry.js +4 -4
- package/dist/esm/bcm-datetime-picker.entry.js +8 -8
- package/dist/esm/bcm-default.entry.js +3 -3
- package/dist/esm/bcm-drawer.entry.js +8 -8
- package/dist/esm/bcm-dropdown.entry.js +4 -4
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +5 -5
- package/dist/esm/bcm-form-2.entry.js +3 -3
- package/dist/esm/bcm-form-group.entry.js +2 -2
- package/dist/esm/bcm-form.entry.js +4 -4
- package/dist/esm/bcm-icon.entry.js +37 -0
- package/dist/esm/bcm-input-custom.entry.js +68 -0
- package/dist/esm/bcm-input.entry.js +364 -0
- package/dist/esm/bcm-item.entry.js +5 -5
- package/dist/esm/bcm-items.entry.js +3 -3
- package/dist/esm/bcm-label_2.entry.js +143 -0
- package/dist/esm/bcm-link.entry.js +3 -3
- package/dist/esm/bcm-list.entry.js +22 -21
- package/dist/esm/bcm-menu.entry.js +10 -10
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal.entry.js +4 -4
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-input.entry.js +4 -4
- package/dist/esm/bcm-old-tag_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +5 -5
- package/dist/esm/bcm-popconfirm.entry.js +4 -4
- package/dist/esm/bcm-popover.entry.js +86 -37
- package/dist/esm/bcm-progress.entry.js +5 -5
- package/dist/esm/bcm-radio-group.entry.js +6 -6
- package/dist/esm/bcm-radio.entry.js +7 -7
- package/dist/esm/bcm-range.entry.js +4 -4
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-search.entry.js +8 -7
- package/dist/esm/bcm-select-group.entry.js +1 -1
- package/dist/esm/bcm-select-option.entry.js +1 -1
- package/dist/esm/bcm-select.entry.js +4 -4
- package/dist/esm/bcm-skeleton.entry.js +3 -3
- package/dist/esm/bcm-step.entry.js +5 -5
- package/dist/esm/bcm-stepper.entry.js +56 -30
- package/dist/esm/bcm-switch.entry.js +6 -6
- package/dist/esm/bcm-tab-group.entry.js +86 -99
- package/dist/esm/bcm-tab-item-header.entry.js +82 -0
- package/dist/esm/bcm-tab-item.entry.js +99 -0
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +2 -2
- package/dist/esm/bcm-table.entry.js +3 -3
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +5 -5
- package/dist/esm/bcm-text.entry.js +5 -5
- package/dist/esm/bcm-textarea.entry.js +6 -6
- package/dist/esm/bcm-time-picker.entry.js +4 -4
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +2 -2
- package/dist/esm/{caption-template-2ef181f9.js → caption-template-389f5bd6.js} +1 -1
- package/dist/esm/{color-helper-b5e9aa56.js → color-helper-7e202fd8.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{generate-1e46485f.js → generate-5f6567d0.js} +105 -16
- package/dist/esm/{index-662f4cf5.js → index-6e2d80d7.js} +1 -1
- package/dist/esm/{index-cb0cdd87.js → index-8b349654.js} +1 -1
- package/dist/esm/{input-template-844dc974.js → input-template-e03cafc5.js} +3 -3
- package/dist/esm/{is-load-decorator-0a59085d.js → is-load-decorator-66e19e04.js} +1 -1
- package/dist/esm/{json-parse-decarator-00aa321e.js → json-parse-decarator-d8836c67.js} +2 -2
- package/dist/esm/{label-template-d8687efd.js → label-template-eed2dd69.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{number-helper-f2cdb65b.js → number-helper-b8a2b813.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +6 -6
- package/dist/esm/old-bcm-popover.entry.js +3 -3
- package/dist/esm/{slot-template-5b2da1d3.js → slot-template-64b41ee5.js} +1 -1
- package/dist/esm/{stepper-states-822ebfe9.js → stepper-states-16e0b400.js} +3 -3
- package/dist/esm/{tooltip-helper-aecc821b.js → tooltip-helper-87acf426.js} +38 -8
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-1b3c085a.js → validators-07033707.js} +1 -1
- package/dist/types/components/molecules/popover/popover.d.ts +10 -1
- package/dist/types/components/molecules/search/search.d.ts +1 -0
- package/dist/types/components/molecules/stepper/stepper.d.ts +3 -3
- package/dist/types/components/molecules/tab-group/tab-group.d.ts +7 -4
- package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +13 -0
- package/dist/types/components/molecules/tab-group/tab-item.d.ts +17 -0
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +10 -1
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/other/input-custom/input-custom.d.ts +20 -0
- package/dist/types/components/other/toast/toast.d.ts +25 -0
- package/dist/types/components.d.ts +157 -9
- package/dist/types/global/helper/index.d.ts +1 -0
- package/dist/types/global/helper/toast.d.ts +96 -0
- package/dist/types/helper/generate.d.ts +2 -0
- package/dist/types/helper/popover-helper.d.ts +13 -3
- package/dist/types/helper/tooltip-helper.d.ts +13 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/templates/list-template.d.ts +1 -0
- package/helper/index.d.ts +2 -0
- package/helper/index.d.ts.map +1 -0
- package/helper/index.js +17 -0
- package/helper/toast.d.ts +97 -0
- package/helper/toast.d.ts.map +1 -0
- package/helper/toast.js +115 -0
- package/package.json +8 -5
- package/dist/bromcom-ui/p-053e9893.js +0 -5
- package/dist/bromcom-ui/p-07ebe62b.entry.js +0 -10
- package/dist/bromcom-ui/p-1683b3c0.entry.js +0 -5
- package/dist/bromcom-ui/p-3118bba1.entry.js +0 -5
- package/dist/bromcom-ui/p-3f3bb4b0.entry.js +0 -5
- package/dist/bromcom-ui/p-40736ee7.entry.js +0 -5
- package/dist/bromcom-ui/p-6f98089c.entry.js +0 -5
- package/dist/bromcom-ui/p-6fcb72c6.entry.js +0 -5
- package/dist/bromcom-ui/p-73076cdb.entry.js +0 -5
- package/dist/bromcom-ui/p-7c318b12.js +0 -5
- package/dist/bromcom-ui/p-7dfb39a6.js +0 -5
- package/dist/bromcom-ui/p-7ea09be3.js +0 -5
- package/dist/bromcom-ui/p-8914af05.entry.js +0 -5
- package/dist/bromcom-ui/p-968e2d79.js +0 -5
- package/dist/bromcom-ui/p-a3864e85.entry.js +0 -5
- package/dist/bromcom-ui/p-a5077dec.entry.js +0 -5
- package/dist/bromcom-ui/p-ac156ba4.entry.js +0 -5
- package/dist/bromcom-ui/p-c9e1f317.entry.js +0 -5
- package/dist/bromcom-ui/p-e258c81c.entry.js +0 -5
|
@@ -0,0 +1,432 @@
|
|
|
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-7e2a5376.js');
|
|
10
|
+
const elementDragger = require('./element-dragger-a8562f82.js');
|
|
11
|
+
const index$1 = require('./index-a2b50e51.js');
|
|
12
|
+
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
13
|
+
require('./utils-fc077139.js');
|
|
14
|
+
require('./_commonjsHelpers-bd20f4c0.js');
|
|
15
|
+
|
|
16
|
+
const colorpickerCss = "@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{position:relative;margin:0 0 8px 0}.color-picker{position:relative;width:200px}.color-picker.open .picker{opacity:1;visibility:visible;transform:scale(1) translateY(56px)}.picker{width:300px;position:absolute;top:0;z-index:1;background-color:#ffffff;border:1px solid #F6F6F6;box-shadow:0px 3px 3.6px 0.4px rgba(0, 0, 0, 0.15);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px)}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.input{display:flex;cursor:pointer;border:1px solid var(--bcm-color-grey-5);border-radius:2px}.color{position:relative;width:100%;height:166px;user-select:none}.color img{width:100%;height:100%;user-select:none;pointer-events:none}.color-indicator{position:absolute;top:0;left:0;width:17px;height:17px;border:1px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.25);transform:translate(0, 0);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.colors{position:relative;width:100%;height:16px;margin-top:8px}.colors img{width:100%;user-select:none;pointer-events:none}.colors-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;user-select:none}.colors-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.transparency{position:relative;width:100%;height:16px;margin-top:8px}.transparency-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;background:transparent none repeat center center/20px}.transparency-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box}.colors-transparency{padding:16px}.active-color{display:flex;align-items:center;width:100%;height:30px}.active-color .color-thumb{width:100%;height:100%;background-color:transparent;border-radius:1px 0 0 1px}.active-color .color-text{font-size:14px;color:#656565;margin-left:8px}.icon{display:flex;align-items:center;justify-content:center;cursor:pointer;width:30px;color:var(--bcm-color-grey-6)}.color-input{border:none;width:100%;padding:10px;outline:none;-webkit-tap-highlight-color:transparent}";
|
|
17
|
+
|
|
18
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
21
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
22
|
+
else
|
|
23
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
24
|
+
if (d = decorators[i])
|
|
25
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
26
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27
|
+
};
|
|
28
|
+
const BcmColorPicker = class {
|
|
29
|
+
constructor(hostRef) {
|
|
30
|
+
index.registerInstance(this, hostRef);
|
|
31
|
+
this.change = index.createEvent(this, "bcm-change", 7);
|
|
32
|
+
this.initialized = false;
|
|
33
|
+
this.setColorBeforeInitialized = false;
|
|
34
|
+
this._color = '#4293CF' // default color
|
|
35
|
+
;
|
|
36
|
+
this.open = false;
|
|
37
|
+
this.value = null;
|
|
38
|
+
this.label = undefined;
|
|
39
|
+
this.size = "medium";
|
|
40
|
+
this.noCaption = false;
|
|
41
|
+
this.caption = undefined;
|
|
42
|
+
this.captionError = undefined;
|
|
43
|
+
this.captionType = 'default';
|
|
44
|
+
this.fullWidth = false;
|
|
45
|
+
this.disabled = false;
|
|
46
|
+
this.hidden = false;
|
|
47
|
+
this.required = false;
|
|
48
|
+
this.tooltip = undefined;
|
|
49
|
+
this.h = -1;
|
|
50
|
+
this.s = 1;
|
|
51
|
+
this.v = 1;
|
|
52
|
+
this.a = 1;
|
|
53
|
+
this.selectedH = -1;
|
|
54
|
+
this.selectedS = 1;
|
|
55
|
+
this.selectedV = 1;
|
|
56
|
+
this.selectedA = 1;
|
|
57
|
+
this.color = { rgba: '', hex: '' };
|
|
58
|
+
this.inputValue = '';
|
|
59
|
+
this.mouseState = 'up';
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @ComponentMethod
|
|
63
|
+
*/
|
|
64
|
+
componentWillLoad() {
|
|
65
|
+
const initialColor = this.hextohsv(this._color);
|
|
66
|
+
this.s = initialColor.s;
|
|
67
|
+
this.v = initialColor.v;
|
|
68
|
+
this.h = initialColor.h;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @ComponentMethod
|
|
72
|
+
*/
|
|
73
|
+
componentDidRender() {
|
|
74
|
+
if (this.initialized)
|
|
75
|
+
return;
|
|
76
|
+
Promise.all([
|
|
77
|
+
this.initColorDragger(),
|
|
78
|
+
this.initColorsDragger(),
|
|
79
|
+
this.initTransparencyDragger()
|
|
80
|
+
]).then(() => {
|
|
81
|
+
!this.setColorBeforeInitialized && this._setColor(this._color);
|
|
82
|
+
this.updateValue();
|
|
83
|
+
this.initialized = true;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @desc
|
|
88
|
+
*/
|
|
89
|
+
initColorDragger() {
|
|
90
|
+
if (this.colorDragger)
|
|
91
|
+
return;
|
|
92
|
+
const limit = {
|
|
93
|
+
x: {
|
|
94
|
+
min: 0,
|
|
95
|
+
max: this.colorElement.offsetWidth
|
|
96
|
+
},
|
|
97
|
+
y: {
|
|
98
|
+
min: 0,
|
|
99
|
+
max: this.colorElement.offsetHeight
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
this.colorDragger = new elementDragger.ElementDragger({
|
|
103
|
+
target: this.colorIndicatorElement,
|
|
104
|
+
trigger: this.colorElement,
|
|
105
|
+
direction: elementDragger.DragDirections.both,
|
|
106
|
+
limit,
|
|
107
|
+
snapOnMouseDown: true,
|
|
108
|
+
center: {
|
|
109
|
+
x: this.colorIndicatorElement.offsetWidth / 2,
|
|
110
|
+
y: this.colorIndicatorElement.offsetHeight / 2
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* [ ElementDragger Event: drag ]
|
|
115
|
+
*/
|
|
116
|
+
this.colorDragger.on('drag', (pos) => this.colorDrag(pos));
|
|
117
|
+
return Promise.resolve();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @desc
|
|
121
|
+
*/
|
|
122
|
+
initColorsDragger() {
|
|
123
|
+
if (this.colorsDragger)
|
|
124
|
+
return;
|
|
125
|
+
const limit = {
|
|
126
|
+
x: {
|
|
127
|
+
min: 0,
|
|
128
|
+
max: this.colorsElement.offsetWidth
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
this.colorsDragger = new elementDragger.ElementDragger({
|
|
132
|
+
target: this.colorsIndicatorElement,
|
|
133
|
+
trigger: this.colorsElement,
|
|
134
|
+
direction: elementDragger.DragDirections.x,
|
|
135
|
+
limit,
|
|
136
|
+
snapOnMouseDown: true,
|
|
137
|
+
center: {
|
|
138
|
+
x: this.colorsIndicatorElement.offsetWidth / 2
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
/**
|
|
142
|
+
* [ ElementDragger Event: drag ]
|
|
143
|
+
*/
|
|
144
|
+
this.colorsDragger.on('drag', (pos) => this.colorsDrag(pos));
|
|
145
|
+
return Promise.resolve();
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @desc
|
|
149
|
+
*/
|
|
150
|
+
initTransparencyDragger() {
|
|
151
|
+
return;
|
|
152
|
+
/* this.transparencyDragger = new ElementDragger({
|
|
153
|
+
target: this.transparencyIndicatorElement,
|
|
154
|
+
trigger: this.transparencyIndicatorElement,
|
|
155
|
+
direction: DragDirections.x,
|
|
156
|
+
limit: {
|
|
157
|
+
x: {
|
|
158
|
+
min: 0,
|
|
159
|
+
max: this.transparencyElement.offsetWidth - this.transparencyIndicatorElement.offsetWidth
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
// Set initial position
|
|
165
|
+
// #
|
|
166
|
+
this.transparencyDragger.setPosition({
|
|
167
|
+
x: this.transparencyElement.offsetWidth - indicatorSize
|
|
168
|
+
})
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
this.transparencyDragger.on('drag', (pos: any) => this.transparencyDrag(pos))
|
|
172
|
+
this.setTransparencyElementColor() */
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @desc
|
|
176
|
+
* @param hsv
|
|
177
|
+
*/
|
|
178
|
+
hsvtorgb(hsv) {
|
|
179
|
+
let R;
|
|
180
|
+
let G;
|
|
181
|
+
let B;
|
|
182
|
+
let X;
|
|
183
|
+
let C;
|
|
184
|
+
let h = (hsv.h % 360) / 60;
|
|
185
|
+
C = hsv.v * hsv.s;
|
|
186
|
+
X = C * (1 - Math.abs(h % 2 - 1));
|
|
187
|
+
R = G = B = hsv.v - C;
|
|
188
|
+
h = ~~h;
|
|
189
|
+
R += [C, X, 0, 0, X, C][h];
|
|
190
|
+
G += [X, C, C, X, 0, 0][h];
|
|
191
|
+
B += [0, 0, X, C, C, X][h];
|
|
192
|
+
const rgb = {
|
|
193
|
+
r: Math.round(R * 255),
|
|
194
|
+
g: Math.round(G * 255),
|
|
195
|
+
b: Math.round(B * 255)
|
|
196
|
+
};
|
|
197
|
+
return Object.assign(Object.assign({}, rgb), { hex: "#" + (16777216 | rgb.b | (rgb.g << 8) | (rgb.r << 16)).toString(16).slice(1) });
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @desc
|
|
201
|
+
* @param rgb
|
|
202
|
+
*/
|
|
203
|
+
rgbtohsv(rgb) {
|
|
204
|
+
let H;
|
|
205
|
+
let S;
|
|
206
|
+
let V;
|
|
207
|
+
let C;
|
|
208
|
+
let r = rgb.r;
|
|
209
|
+
let g = rgb.g;
|
|
210
|
+
let b = rgb.b;
|
|
211
|
+
if (rgb.r > 1 || rgb.g > 1 || rgb.b > 1) {
|
|
212
|
+
r /= 255;
|
|
213
|
+
g /= 255;
|
|
214
|
+
b /= 255;
|
|
215
|
+
}
|
|
216
|
+
V = Math.max(r, g, b);
|
|
217
|
+
C = V - Math.min(r, g, b);
|
|
218
|
+
H = (C == 0 ? null :
|
|
219
|
+
V == r ? (g - b) / C + (g < b ? 6 : 0) :
|
|
220
|
+
V == g ? (b - r) / C + 2 :
|
|
221
|
+
(r - g) / C + 4);
|
|
222
|
+
H = (H % 6) * 60;
|
|
223
|
+
S = C == 0 ? 0 : C / V;
|
|
224
|
+
return {
|
|
225
|
+
h: H,
|
|
226
|
+
s: S,
|
|
227
|
+
v: V
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @desc
|
|
232
|
+
* @param hex
|
|
233
|
+
*/
|
|
234
|
+
hextohsv(hex) {
|
|
235
|
+
return this.rgbtohsv(this.hextorgb(hex));
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @desc
|
|
239
|
+
* @param hex
|
|
240
|
+
*/
|
|
241
|
+
hextorgb(hex) {
|
|
242
|
+
return {
|
|
243
|
+
r: parseInt(hex.substr(1, 2), 16),
|
|
244
|
+
g: parseInt(hex.substr(3, 2), 16),
|
|
245
|
+
b: parseInt(hex.substr(5, 2), 16)
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* @desc
|
|
250
|
+
* @param pos
|
|
251
|
+
*/
|
|
252
|
+
colorDrag(pos) {
|
|
253
|
+
const width = this.colorElement.offsetWidth;
|
|
254
|
+
const height = this.colorElement.offsetHeight;
|
|
255
|
+
this.selectedS = (pos.x) / width;
|
|
256
|
+
this.selectedV = (height - (pos.y)) / height;
|
|
257
|
+
this.updateValue();
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* @desc
|
|
261
|
+
* @param pos
|
|
262
|
+
*/
|
|
263
|
+
colorsDrag(pos) {
|
|
264
|
+
const width = this.colorsElement.offsetWidth;
|
|
265
|
+
this.h = (pos.x) / width * 360;
|
|
266
|
+
this.s = 1;
|
|
267
|
+
this.v = 1;
|
|
268
|
+
this.selectedH = this.h;
|
|
269
|
+
this.updateValue();
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* @desc
|
|
273
|
+
* @param pos
|
|
274
|
+
*/
|
|
275
|
+
/* transparencyDrag(pos: any) {
|
|
276
|
+
const sliderWidth: number = this.transparencyElement.offsetWidth
|
|
277
|
+
const actualX: number = pos.x + indicatorSize / 2
|
|
278
|
+
const result: number = actualX / sliderWidth
|
|
279
|
+
let opacity: string | number = result.toFixed(1)
|
|
280
|
+
|
|
281
|
+
opacity === '1.0' && (opacity = '1')
|
|
282
|
+
opacity === '0.0' && (opacity = '0')
|
|
283
|
+
opacity = parseFloat(opacity)
|
|
284
|
+
|
|
285
|
+
this.a = opacity
|
|
286
|
+
} */
|
|
287
|
+
/**
|
|
288
|
+
* @desc
|
|
289
|
+
*/
|
|
290
|
+
setHsvColor() {
|
|
291
|
+
const rgb = this.hsvtorgb({
|
|
292
|
+
h: this.selectedH,
|
|
293
|
+
s: this.selectedS,
|
|
294
|
+
v: this.selectedV
|
|
295
|
+
});
|
|
296
|
+
this.color = {
|
|
297
|
+
rgba: `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${this.a})`,
|
|
298
|
+
hex: rgb.hex
|
|
299
|
+
};
|
|
300
|
+
return this.color;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* @desc
|
|
304
|
+
* @param hexColor
|
|
305
|
+
*/
|
|
306
|
+
_setColor(color, preventInputUpdate = false) {
|
|
307
|
+
const regHex = /^#+([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/;
|
|
308
|
+
const regHexCheck = regHex.test(color);
|
|
309
|
+
if (regHexCheck) {
|
|
310
|
+
if (color.length === 4) {
|
|
311
|
+
color = color.split('').map(c => c !== '#' ? c + c : c).join('');
|
|
312
|
+
}
|
|
313
|
+
const hsvColor = this.hextohsv(color);
|
|
314
|
+
this.h = hsvColor.h;
|
|
315
|
+
this.s = 1;
|
|
316
|
+
this.v = 1;
|
|
317
|
+
this.selectedH = hsvColor.h;
|
|
318
|
+
this.selectedS = hsvColor.s;
|
|
319
|
+
this.selectedV = hsvColor.v;
|
|
320
|
+
this.updateIndicators();
|
|
321
|
+
this.updateValue(preventInputUpdate);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* @desc
|
|
326
|
+
*/
|
|
327
|
+
updateIndicators() {
|
|
328
|
+
const { colorsElement: colors, colorElement: color, colorsIndicatorElement: colorsIndicator } = this;
|
|
329
|
+
this.colorDragger.setPosition({
|
|
330
|
+
x: this.selectedS * color.offsetWidth,
|
|
331
|
+
y: color.offsetHeight - this.selectedV * color.offsetHeight
|
|
332
|
+
});
|
|
333
|
+
this.colorsDragger.setPosition({
|
|
334
|
+
x: (this.selectedH * (colors.offsetWidth - colorsIndicator.offsetWidth * 2)) / 360
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* @desc
|
|
339
|
+
* @param preventInputUpdate
|
|
340
|
+
*/
|
|
341
|
+
updateValue(preventInputUpdate = false) {
|
|
342
|
+
const { selectedH: h, selectedS: s, selectedV: v } = this;
|
|
343
|
+
const hex = this.hsvtorgb({ h, s, v }).hex;
|
|
344
|
+
this.value = hex;
|
|
345
|
+
if (!preventInputUpdate) {
|
|
346
|
+
this.updateInputValue(hex);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* @desc
|
|
351
|
+
* @param value
|
|
352
|
+
*/
|
|
353
|
+
updateInputValue(value) {
|
|
354
|
+
if (!this.inputElement)
|
|
355
|
+
return;
|
|
356
|
+
this.inputElement.value = value;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* @desc
|
|
360
|
+
*/
|
|
361
|
+
/* setTransparencyElementColor() {
|
|
362
|
+
this.transparencyImageElement1.setAttribute('stop-color', this.color.hex)
|
|
363
|
+
this.transparencyImageElement2.setAttribute('stop-color', this.color.hex)
|
|
364
|
+
} */
|
|
365
|
+
/**
|
|
366
|
+
* @desc
|
|
367
|
+
*/
|
|
368
|
+
handleClick() {
|
|
369
|
+
this.open = true;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* @desc
|
|
373
|
+
* @param event
|
|
374
|
+
*/
|
|
375
|
+
handleColorInputKeyUp(event) {
|
|
376
|
+
var path = event.path || (event.composedPath && event.composedPath());
|
|
377
|
+
const val = path[0].value;
|
|
378
|
+
this._setColor(val, true);
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @desc
|
|
382
|
+
* @param event
|
|
383
|
+
*/
|
|
384
|
+
handleWindowClick(event) {
|
|
385
|
+
const target = event.target;
|
|
386
|
+
const classes = target.classList;
|
|
387
|
+
const tagName = target.tagName.toLowerCase();
|
|
388
|
+
const isNotbyClass = !classes.contains('sc-bcm-colorpicker');
|
|
389
|
+
const isNotbyTagName = tagName !== 'bcm-colorpicker';
|
|
390
|
+
if ((isNotbyClass && isNotbyTagName && this.mouseState === 'up')) {
|
|
391
|
+
this.open = false;
|
|
392
|
+
this.updateInputValue(this.value);
|
|
393
|
+
}
|
|
394
|
+
this.mouseState = 'up';
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* @desc
|
|
398
|
+
*/
|
|
399
|
+
valueChange() {
|
|
400
|
+
if (!this.initialized)
|
|
401
|
+
return;
|
|
402
|
+
this.change.emit(this.value);
|
|
403
|
+
}
|
|
404
|
+
async getValue() {
|
|
405
|
+
return this.value;
|
|
406
|
+
}
|
|
407
|
+
async setColor(color) {
|
|
408
|
+
this.setColorBeforeInitialized = true;
|
|
409
|
+
this._setColor(color);
|
|
410
|
+
}
|
|
411
|
+
render() {
|
|
412
|
+
const { label, required, noCaption, caption, captionError, captionType } = this;
|
|
413
|
+
const classes = index$1.classnames('color-picker', {
|
|
414
|
+
open: this.open
|
|
415
|
+
});
|
|
416
|
+
const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
|
|
417
|
+
return (index.h(index.Host, null, index.h("div", { class: classes, onClick: () => this.handleClick() }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), index.h("div", { class: "input" }, index.h("div", { class: "active-color" }, index.h("div", { class: "color-thumb", style: { backgroundColor: this.value } })), index.h("span", { class: "icon", slot: "suffix" }, index.h("svg", { style: { 'fill': '#595959', 'width': ' 14px', 'height': '14px' }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, index.h("path", { d: "M483.89 28.14l-.02-.02-.03-.03c-37.47-37.47-98.26-37.46-135.72.03l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-63.6 63.6c-9.37 9.37-9.37 24.57 0 33.94l16.98 16.98L50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62 16.96 16.96c9.44 9.44 24.65 9.31 33.94 0l63.6-63.6c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.5-37.47 37.5-98.25.02-135.73zM144.8 427.32a15.892 15.892 0 0 1-11.31 4.68H80v-53.49c0-4.27 1.66-8.29 4.69-11.31l126.63-126.62 60.12 60.12L144.8 427.32zm305.14-297.38l-77.09 77.09-33.94 33.94 30.07 30.06-29.66 29.66-128-128 29.66-29.65 30.06 30.07L382.08 62.05c9.05-9.06 21.1-14.05 33.91-14.05 12.82 0 24.86 4.98 33.91 14.04l.04.04C459.01 71.14 464 83.19 464 96.01c0 12.81-5 24.86-14.06 33.93z" })))), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
|
|
418
|
+
? index.h("span", { class: captionClasses }, " ", captionError, " ")
|
|
419
|
+
: caption && index.h("span", { class: captionClasses }, " ", caption, " "))), index.h("div", { class: "picker" }, index.h("div", { class: "input" }, index.h("input", { type: "text", class: "color-input", maxlength: "7", ref: el => (this.inputElement = el), onKeyUp: (e) => this.handleColorInputKeyUp(e) })), index.h("div", { class: "color", onMouseDown: () => this.mouseState = 'down', style: { backgroundColor: this.hsvtorgb({ h: this.h, s: this.s, v: this.v }).hex }, ref: el => (this.colorElement = el) }, index.h("img", { src: index.getAssetPath('./static/color.svg') }), index.h("div", { class: "color-indicator", ref: el => (this.colorIndicatorElement = el) })), index.h("div", { class: "colors-transparency" }, index.h("div", { class: "colors", onMouseDown: () => this.mouseState = 'down', ref: el => (this.colorsElement = el) }, index.h("div", { class: "colors-holder" }, index.h("img", { src: index.getAssetPath('./static/colors.svg') })), index.h("div", { class: "colors-indicator", ref: el => (this.colorsIndicatorElement = el) })))))));
|
|
420
|
+
}
|
|
421
|
+
static get assetsDirs() { return ["static"]; }
|
|
422
|
+
get el() { return index.getElement(this); }
|
|
423
|
+
static get watchers() { return {
|
|
424
|
+
"value": ["valueChange"]
|
|
425
|
+
}; }
|
|
426
|
+
};
|
|
427
|
+
__decorate([
|
|
428
|
+
isLoadDecorator.IsLoad()
|
|
429
|
+
], BcmColorPicker.prototype, "el", void 0);
|
|
430
|
+
BcmColorPicker.style = colorpickerCss;
|
|
431
|
+
|
|
432
|
+
exports.bcm_colorpicker = BcmColorPicker;
|
|
@@ -10,7 +10,7 @@ const index = require('./index-7e2a5376.js');
|
|
|
10
10
|
const index$1 = require('./index-a2b50e51.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
12
12
|
const datetimeHelper = require('./datetime-helper-eaf4fadb.js');
|
|
13
|
-
const generate = require('./generate-
|
|
13
|
+
const generate = require('./generate-eef61d08.js');
|
|
14
14
|
const bcm = require('./bcm-634604e3.js');
|
|
15
15
|
const utils = require('./utils-fc077139.js');
|
|
16
16
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
@@ -11,7 +11,7 @@ const elementDragger = require('./element-dragger-a8562f82.js');
|
|
|
11
11
|
const index$1 = require('./index-a2b50e51.js');
|
|
12
12
|
const datetimeHelper = require('./datetime-helper-eaf4fadb.js');
|
|
13
13
|
const utils = require('./utils-fc077139.js');
|
|
14
|
-
const generate = require('./generate-
|
|
14
|
+
const generate = require('./generate-eef61d08.js');
|
|
15
15
|
const bcm = require('./bcm-634604e3.js');
|
|
16
16
|
const popoverPlacement = require('./popover-placement-69d37a5f.js');
|
|
17
17
|
const labelTemplate = require('./label-template-098a30a4.js');
|
|
@@ -414,7 +414,7 @@ const BcmDatetimePicker = class {
|
|
|
414
414
|
else {
|
|
415
415
|
delete this.disabledDatesList.max;
|
|
416
416
|
}
|
|
417
|
-
const value = this.inputElement.value;
|
|
417
|
+
const value = this.inputElement && this.inputElement.value;
|
|
418
418
|
value && this.setDataFromText(value);
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-eef61d08.js');
|
|
12
12
|
|
|
13
13
|
const defaultCss = "@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}";
|
|
14
14
|
|
|
@@ -10,10 +10,10 @@ const index = require('./index-7e2a5376.js');
|
|
|
10
10
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
11
|
require('./color-helper-c9882bd8.js');
|
|
12
12
|
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
-
const generate = require('./generate-
|
|
14
|
-
require('./number-helper-
|
|
13
|
+
const generate = require('./generate-eef61d08.js');
|
|
14
|
+
require('./number-helper-652dc22d.js');
|
|
15
15
|
require('./string-helper-71b10c53.js');
|
|
16
|
-
require('./validators-
|
|
16
|
+
require('./validators-7eed007b.js');
|
|
17
17
|
require('./element-dragger-a8562f82.js');
|
|
18
18
|
const bcm = require('./bcm-634604e3.js');
|
|
19
19
|
const index$1 = require('./index-a2b50e51.js');
|
|
@@ -9,8 +9,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const index$1 = require('./index-a2b50e51.js');
|
|
11
11
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
12
|
-
const jsonParseDecarator = require('./json-parse-decarator-
|
|
13
|
-
const generate = require('./generate-
|
|
12
|
+
const jsonParseDecarator = require('./json-parse-decarator-c0d7e570.js');
|
|
13
|
+
const generate = require('./generate-eef61d08.js');
|
|
14
14
|
const bcm = require('./bcm-634604e3.js');
|
|
15
15
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
16
16
|
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-eef61d08.js');
|
|
12
12
|
const index$1 = require('./index-a2b50e51.js');
|
|
13
13
|
const stringHelper = require('./string-helper-71b10c53.js');
|
|
14
14
|
const colorHelper = require('./color-helper-c9882bd8.js');
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-7e2a5376.js');
|
|
10
10
|
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-eef61d08.js');
|
|
12
12
|
const stringHelper = require('./string-helper-71b10c53.js');
|
|
13
13
|
const bcm = require('./bcm-634604e3.js');
|
|
14
14
|
require('./_commonjsHelpers-bd20f4c0.js');
|
|
@@ -475,7 +475,7 @@ const BcmForm = class {
|
|
|
475
475
|
}
|
|
476
476
|
render() {
|
|
477
477
|
const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
|
|
478
|
-
return (index.h(index.Host, { class: hostClasses
|
|
478
|
+
return (index.h(index.Host, { class: hostClasses }, index.h("form", { class: "bcm-form", autocomplete: this.autocomplete ? "on" : "off" }, index.h("slot", null))));
|
|
479
479
|
}
|
|
480
480
|
get el() { return index.getElement(this); }
|
|
481
481
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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-7e2a5376.js');
|
|
10
|
+
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
+
|
|
12
|
+
const iconCss = "@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-icon.hidden{display:none}";
|
|
13
|
+
|
|
14
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
17
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
18
|
+
else
|
|
19
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
20
|
+
if (d = decorators[i])
|
|
21
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
const BcmIcon = class {
|
|
25
|
+
constructor(hostRef) {
|
|
26
|
+
index.registerInstance(this, hostRef);
|
|
27
|
+
this.hidden = false;
|
|
28
|
+
this.icon = undefined;
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const { icon, hidden } = this;
|
|
32
|
+
return (index.h(index.Host, { class: `bcm-icon fa ${hidden ? 'hidden' : ''}` }, index.h("i", { class: `${icon}` })));
|
|
33
|
+
}
|
|
34
|
+
get el() { return index.getElement(this); }
|
|
35
|
+
};
|
|
36
|
+
__decorate([
|
|
37
|
+
isLoadDecorator.IsLoad()
|
|
38
|
+
], BcmIcon.prototype, "el", void 0);
|
|
39
|
+
BcmIcon.style = iconCss;
|
|
40
|
+
|
|
41
|
+
exports.bcm_icon = BcmIcon;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
|
|
9
|
+
const index = require('./index-7e2a5376.js');
|
|
10
|
+
const isLoadDecorator = require('./is-load-decorator-c38598ab.js');
|
|
11
|
+
const generate = require('./generate-eef61d08.js');
|
|
12
|
+
const index$1 = require('./index-a2b50e51.js');
|
|
13
|
+
require('./_commonjsHelpers-bd20f4c0.js');
|
|
14
|
+
|
|
15
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
18
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else
|
|
20
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
21
|
+
if (d = decorators[i])
|
|
22
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
|
+
};
|
|
25
|
+
const BcmInputCustom = class {
|
|
26
|
+
constructor(hostRef) {
|
|
27
|
+
index.registerInstance(this, hostRef);
|
|
28
|
+
this.handleFocus = () => {
|
|
29
|
+
this.hasFocus = true;
|
|
30
|
+
};
|
|
31
|
+
this.handleBlur = () => {
|
|
32
|
+
this.hasFocus = false;
|
|
33
|
+
};
|
|
34
|
+
this.handleChange = (e) => {
|
|
35
|
+
this.value = e.target.value;
|
|
36
|
+
console.log(e);
|
|
37
|
+
};
|
|
38
|
+
this.handleInput = (e) => {
|
|
39
|
+
// this.value = (e.target as HTMLInputElement).value;
|
|
40
|
+
console.log(e);
|
|
41
|
+
};
|
|
42
|
+
this._id = generate.Generate.UID();
|
|
43
|
+
this.name = undefined;
|
|
44
|
+
this.value = undefined;
|
|
45
|
+
this.type = "text";
|
|
46
|
+
this.label = undefined;
|
|
47
|
+
this.required = false;
|
|
48
|
+
this.disabled = false;
|
|
49
|
+
this.readonly = false;
|
|
50
|
+
this.placeholder = undefined;
|
|
51
|
+
this.fullwidth = false;
|
|
52
|
+
this.hasFocus = false;
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
const { _id, type, name, value, label, required, fullwidth, placeholder, disabled, readonly } = this;
|
|
56
|
+
return (index.h(index.Host, { class: index$1.classnames("tw-inline-flex tw-w-full tw-max-w-[256px] tw-flex-col", {
|
|
57
|
+
"tw-max-w-full": fullwidth,
|
|
58
|
+
}) }, label && index.h("bcm-label", { value: label, required: required, htmlFor: _id }), index.h("div", { class: index$1.classnames("tw-relative tw-flex tw-w-full tw-flex-row tw-items-stretch tw-rounded tw-border tw-p-0 hover:tw-border-primary-600", {
|
|
59
|
+
"tw-cursor-not-allowed tw-bg-secondary-50": this.disabled,
|
|
60
|
+
"tw-cursor-text": !this.disabled,
|
|
61
|
+
"tw-cursor-default tw-bg-secondary-50": this.readonly,
|
|
62
|
+
"tw-border-primary-500 tw-bg-secondary-50": this.hasFocus,
|
|
63
|
+
"tw-border-secondary-300 tw-bg-white": !this.hasFocus,
|
|
64
|
+
}) }, index.h("input", { id: _id, name: name, type: type, value: value, "data-value": value, placeholder: placeholder, required: required, disabled: disabled, readonly: readonly, class: index$1.classnames("tw-text-overflow-ellipsis", "tw-rounded-none", "tw-flex-1", "tw-cursor-inherit", "tw-w-full", "tw-appearance-none", "tw-overflow-hidden", "tw-whitespace-nowrap", "tw-border-none", "tw-bg-transparent", "tw-p-2", "tw-text-secondary-600", "tw-placeholder-secondary-300", "tw-outline-none"), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: e => this.handleChange(e), onInput: this.handleInput }))));
|
|
65
|
+
}
|
|
66
|
+
get el() { return index.getElement(this); }
|
|
67
|
+
};
|
|
68
|
+
__decorate([
|
|
69
|
+
isLoadDecorator.IsLoad()
|
|
70
|
+
], BcmInputCustom.prototype, "el", void 0);
|
|
71
|
+
|
|
72
|
+
exports.bcm_input_custom = BcmInputCustom;
|