bromcom-ui 2.10.1-rc.1 → 2.10.1-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-000670b6.js +5 -0
- package/dist/bromcom-ui/{p-5ca4aa84.entry.js → p-073d177e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-39a40a6e.entry.js → p-07e9b5e7.entry.js} +1 -1
- package/dist/bromcom-ui/p-0fc73cca.entry.js +5 -0
- package/dist/bromcom-ui/{p-09699c4d.entry.js → p-16450a8b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-be434461.entry.js → p-175eb1c7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0b820f78.entry.js → p-17c0a72a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0325e8a4.entry.js → p-17eb0140.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3f39982f.entry.js → p-18d28737.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a42cc789.entry.js → p-1f5ca41b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a839a0e5.entry.js → p-21cb3cfe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0b316c6f.entry.js → p-23eb79ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b013cff9.entry.js → p-2d965b60.entry.js} +1 -1
- package/dist/bromcom-ui/p-32d93221.entry.js +21 -0
- package/dist/bromcom-ui/{p-fb597d84.entry.js → p-33513345.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0fe106fc.entry.js → p-3b5c36e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7f09901d.entry.js → p-3f127ea5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3756f541.entry.js → p-424b7562.entry.js} +1 -1
- package/dist/bromcom-ui/{p-483b4ba8.entry.js → p-43a1f84c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0973538a.entry.js → p-4e436468.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea2ce157.js → p-52b7fc24.js} +1 -1
- package/dist/bromcom-ui/{p-d89b7e22.entry.js → p-56187d14.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bec8a936.entry.js → p-58d5775f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f1dbd96d.entry.js → p-594953e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-62d178e3.entry.js → p-5b96272e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14c32a34.entry.js → p-5bf620b2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e38c4c3a.entry.js → p-5fc49f6f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3b41df22.entry.js → p-60a12878.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d06f5291.js → p-61314a43.js} +1 -1
- package/dist/bromcom-ui/{p-1708a5ec.entry.js → p-6153f889.entry.js} +1 -1
- package/dist/bromcom-ui/{p-551058cd.entry.js → p-643a09b4.entry.js} +1 -1
- package/dist/bromcom-ui/p-64999c43.entry.js +5 -0
- package/dist/bromcom-ui/{p-015d19dd.entry.js → p-79712823.entry.js} +1 -1
- package/dist/bromcom-ui/{p-646cf63c.entry.js → p-7e2da99e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a04aab3c.entry.js → p-841f2b60.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8d43aa14.entry.js → p-8c3a6509.entry.js} +1 -1
- package/dist/bromcom-ui/p-8c610886.js +5 -0
- package/dist/bromcom-ui/{p-d7538ba4.entry.js → p-8e772077.entry.js} +1 -1
- package/dist/bromcom-ui/{p-795d2f76.entry.js → p-8fbdb72f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b3b59bc3.entry.js → p-910c935f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-55291cc5.entry.js → p-9ac757e9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-77eb2287.entry.js → p-9da1d897.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c566b3a0.entry.js → p-9f1e6daa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c1b167a3.js → p-a1477028.js} +1 -1
- package/dist/bromcom-ui/{p-9a41b688.js → p-a58b2664.js} +1 -1
- package/dist/bromcom-ui/{p-56f7477e.entry.js → p-a835bff0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9889a4ed.entry.js → p-a889681e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dac3117a.entry.js → p-aab72ea1.entry.js} +1 -1
- package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
- package/dist/bromcom-ui/{p-16848643.entry.js → p-afde516e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-571dca86.entry.js → p-c977ed98.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a1f9e7d4.entry.js → p-cfd52d5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e11ab4ed.entry.js → p-da5fdda2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3d142f76.entry.js → p-e19a8e73.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e131b27f.js → p-e2aaaece.js} +1 -1
- package/dist/bromcom-ui/{p-29614b49.entry.js → p-e6faa2bb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-673f7ee8.entry.js → p-ec36f5a0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cf0c0700.entry.js → p-ec992ac3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cd04678a.entry.js → p-ecd8d70f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cf171578.js → p-edbdd7dd.js} +1 -1
- package/dist/bromcom-ui/{p-24710a65.entry.js → p-f077a1d7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2da72d6a.entry.js → p-f2776268.entry.js} +1 -1
- package/dist/bromcom-ui/{p-813ec92d.js → p-f83b3048.js} +1 -1
- package/dist/bromcom-ui/{p-f3431dc8.js → p-fed84581.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
- package/dist/cjs/{bcm-button_10.cjs.entry.js → bcm-button_15.cjs.entry.js} +5751 -828
- package/dist/cjs/bcm-caption.cjs.entry.js +5 -5
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-chip-group.cjs.entry.js +5 -5
- 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 +4 -4
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -3
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +6 -6
- package/dist/cjs/bcm-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +2 -2
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
- package/dist/cjs/bcm-number-input.cjs.entry.js +109 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -4
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
- package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
- package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-e79347af.js → generate-c3a6c8c7.js} +15 -1
- package/dist/cjs/{global-9bb1902a.js → global-9e8b5009.js} +1 -1
- package/dist/cjs/{input-template-3d21aacb.js → input-template-8eeb94e7.js} +1 -1
- package/dist/cjs/{json-parse-decarator-4d7afa63.js → json-parse-decarator-0932bec0.js} +1 -1
- package/dist/cjs/{label-template-8dc10d0a.js → label-template-a6f51ef2.js} +6 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-2f971fd8.js → number-helper-4e902d31.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-47b7b998.js → package-b23f7b7f.js} +1 -1
- package/dist/cjs/{stepper-states-a5699b31.js → stepper-states-cb2339c3.js} +1 -1
- package/dist/cjs/{tooltip-helper-7d5d1cb5.js → tooltip-helper-4ddec3b4.js} +3 -3
- package/dist/cjs/{validators-507307b9.js → validators-e2155072.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/label/label.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +1 -1
- package/dist/collection/components/molecules/number-input/number-input.css +137 -0
- package/dist/collection/components/molecules/number-input/number-input.js +425 -0
- package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
- package/dist/collection/components/molecules/switch/switch.css +1 -0
- package/dist/collection/components/organism/list/list.css +2 -0
- package/dist/collection/components/organism/list/list.js +38 -9
- package/dist/collection/helper/generate.js +14 -0
- package/dist/collection/templates/label-template.js +6 -6
- package/dist/collection/templates/list-item-template.js +3 -2
- package/dist/components/bcm-caption.js +2 -2
- package/dist/components/bcm-input-dropdown.js +2 -2
- package/dist/components/bcm-number-input.d.ts +11 -0
- package/dist/components/bcm-number-input.js +157 -0
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/generate.js +15 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/label.js +7 -4
- package/dist/components/list.js +19 -10
- package/dist/esm/bcm-accordion.entry.js +2 -2
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-attendance.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +4 -4
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +2 -2
- package/dist/esm/{bcm-button_10.entry.js → bcm-button_15.entry.js} +5283 -365
- package/dist/esm/bcm-caption.entry.js +5 -5
- package/dist/esm/bcm-card.entry.js +2 -2
- package/dist/esm/bcm-checkbox-group.entry.js +3 -3
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
- package/dist/esm/bcm-chip-group.entry.js +5 -5
- package/dist/esm/bcm-chip.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +2 -2
- package/dist/esm/bcm-datetime-picker.entry.js +3 -3
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +4 -4
- package/dist/esm/bcm-dropdown.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +2 -2
- package/dist/esm/bcm-form-2.entry.js +2 -2
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +6 -6
- package/dist/esm/bcm-item.entry.js +2 -2
- package/dist/esm/bcm-items.entry.js +2 -2
- package/dist/esm/bcm-menu.entry.js +5 -5
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
- package/dist/esm/bcm-modal-2-header.entry.js +4 -4
- package/dist/esm/bcm-modal-2.entry.js +4 -4
- package/dist/esm/bcm-modal.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +105 -0
- package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
- package/dist/esm/bcm-popconfirm.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +4 -4
- package/dist/esm/bcm-progress.entry.js +2 -2
- package/dist/esm/bcm-radio-group.entry.js +4 -4
- package/dist/esm/bcm-radio.entry.js +4 -4
- package/dist/esm/bcm-range.entry.js +2 -2
- package/dist/esm/bcm-shortcut.entry.js +4 -4
- package/dist/esm/bcm-skeleton.entry.js +4 -4
- package/dist/esm/bcm-step.entry.js +3 -3
- package/dist/esm/bcm-stepper.entry.js +5 -5
- package/dist/esm/bcm-tab-group.entry.js +4 -4
- package/dist/esm/bcm-tab-item-header.entry.js +4 -4
- package/dist/esm/bcm-tab-item.entry.js +4 -4
- package/dist/esm/bcm-table.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +3 -3
- package/dist/esm/bcm-textarea.entry.js +3 -3
- package/dist/esm/bcm-time-picker.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +2 -2
- package/dist/esm/bcm-typography.entry.js +17 -0
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{generate-b9c6f412.js → generate-80f589b2.js} +15 -1
- package/dist/esm/{global-114427da.js → global-9afe304c.js} +1 -1
- package/dist/esm/{input-template-dc94e47f.js → input-template-a5d07ba6.js} +1 -1
- package/dist/esm/{json-parse-decarator-fca2dc09.js → json-parse-decarator-5195f510.js} +1 -1
- package/dist/esm/{label-template-989d1700.js → label-template-ad2e8119.js} +6 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-70be3621.js → number-helper-aeb5881f.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +3 -3
- package/dist/esm/old-bcm-popover.entry.js +2 -2
- package/dist/esm/{package-6f4c9f8c.js → package-5e39e390.js} +1 -1
- package/dist/esm/{stepper-states-291a682f.js → stepper-states-97a648ff.js} +1 -1
- package/dist/esm/{tooltip-helper-089735b1.js → tooltip-helper-d339c58a.js} +3 -3
- package/dist/esm/{validators-c1fe8b4b.js → validators-b5e106d5.js} +1 -1
- package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
- package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
- package/dist/types/components/organism/list/list.d.ts +3 -1
- package/dist/types/components.d.ts +55 -1
- package/dist/types/helper/generate.d.ts +3 -0
- package/dist/types/models/bcm.d.ts +3 -0
- package/dist/types/templates/label-template.d.ts +2 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-140f3478.js +0 -5
- package/dist/bromcom-ui/p-3432a82d.js +0 -19
- package/dist/bromcom-ui/p-5ff3c68f.entry.js +0 -5
- package/dist/bromcom-ui/p-71b9ea64.entry.js +0 -7
- package/dist/bromcom-ui/p-8b202d9e.js +0 -5
- package/dist/bromcom-ui/p-93b8a3ff.entry.js +0 -5
- package/dist/bromcom-ui/p-a00170b7.entry.js +0 -5
- package/dist/bromcom-ui/p-f7549b1f.entry.js +0 -5
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2536
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/index-7eed931f.js +0 -2146
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-list_3.entry.js +0 -2530
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/index-e4b6a4ce.js +0 -2127
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import"./p-7e44e6b5.js";import{S as t}from"./p-157359d6.js";import{d as s}from"./p-8c018ae0.js";import{F as i}from"./p-518b9b80.js";import{C as h}from"./p-61db1f1f.js";import"./p-626a65e9.js";import{G as e}from"./p-
|
|
5
|
+
import"./p-7e44e6b5.js";import{S as t}from"./p-157359d6.js";import{d as s}from"./p-8c018ae0.js";import{F as i}from"./p-518b9b80.js";import{C as h}from"./p-61db1f1f.js";import"./p-626a65e9.js";import{G as e}from"./p-8c610886.js";import"./p-61314a43.js";import"./p-52b7fc24.js";import{a as o}from"./p-6369b73b.js";class r{constructor({message:r,targetId:a,placement:c="top",color:w="slate-700",trigger:n="none",size:l="medium",openDelay:m=0,closeDelay:p=0,autoHide:b=!1,emitShow:d=(()=>{}),emitHide:u=(()=>{})}){this.destroy=()=>{this.el=document.getElementById(this.id),this.el&&(this.el.remove(),this.emitHide()),this.removeListener()},this.target=()=>document.getElementById(this.targetId),this.sizeClass=()=>{switch(this.size){case o.Size.small:return"tw-text-1";case o.Size.medium:return"tw-text-2";case o.Size.large:return"tw-text-3";default:return"tw-text-2"}},this.init=()=>{const{tone:s,colorName:i}=h.parseColor(this.color,700),o=e.getTwColor({color:i,tones:{[s]:["bg"]},variable:"--bcm-tooltip"}),r=Object.assign(Object.assign({},o),o["--bcm-tooltip-bg"]&&{"--bcm-tooltip-text":h.reverseColor(o["--bcm-tooltip-bg"])});this.el=e.createElement("div",{id:`${this.targetId}-tooltip-box`,class:`\n tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-[--bcm-tooltip-bg] tw-text-[--bcm-tooltip-text] ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,role:"tooltip","aria-hidden":"true",style:h.generateStyleString(r),innerHTML:t.trim(this.message)})},this.update=()=>{this.el=document.getElementById(this.id),this.el&&(this.hide(),this.show())},this.listener=()=>{if(window.addEventListener("resize",this.calculatePosition.bind(this)),window.addEventListener("scroll",this.calculatePosition.bind(this),!0),window.addEventListener("wheel",this.calculatePosition.bind(this)),this.trigger&&this.target())switch(this.trigger){case"click":this.target().addEventListener("click",this.toggle.bind(this)),this.autoHide&&this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"hover":this.target().addEventListener("mouseenter",this.show.bind(this)),this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"focus":this.target().addEventListener("focus",this.show.bind(this),!0),this.target().addEventListener("blur",this.hide.bind(this),!0)}this.calculatePosition()},this.removeListener=()=>{window.removeEventListener("resize",this.calculatePosition.bind(this)),window.removeEventListener("scroll",this.calculatePosition.bind(this),!0),window.removeEventListener("wheel",this.calculatePosition.bind(this)),this.target()&&(this.target().removeEventListener("click",this.toggle.bind(this)),this.target().removeEventListener("mouseenter",this.show.bind(this)),this.target().removeEventListener("mouseleave",this.hide.bind(this)),this.target().removeEventListener("focus",this.show.bind(this),!0),this.target().removeEventListener("blur",this.hide.bind(this),!0))},this.calculatePosition=()=>{this.el=document.getElementById(this.id),this.el&&i({ref:this.target(),floating:this.el,placement:this.placement,offset:8,arrow:!0,arrowColor:"tw-bg-[--bcm-tooltip-bg]"})},this.show=async()=>{this.message?(this.init(),await s(this.openDelay),this.calculatePosition(),this.emitShow()):this.hide()},this.hide=async()=>{this.el=document.getElementById(this.id),this.el&&(await s(this.closeDelay),this.el&&this.el.remove(),this.emitHide())},this.toggle=()=>{this.el=document.getElementById(this.id),this.el?this.hide():this.show()},this.message=r,this.targetId=a,this.placement=c,this.color=w,this.id=a+"-tooltip-box",this.trigger=n,this.size=l,this.openDelay=m,this.closeDelay=p,this.autoHide=b,this.emitShow=d,this.emitHide=u}}export{r as T}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{h as n}from"./p-170cf07d.js";import{d as e}from"./p-3fac58f7.js";import{B as s}from"./p-6369b73b.js";import{c as t}from"./p-64fad38b.js";import{s as a}from"./p-
|
|
5
|
+
import{h as n}from"./p-170cf07d.js";import{d as e}from"./p-3fac58f7.js";import{B as s}from"./p-6369b73b.js";import{c as t}from"./p-64fad38b.js";import{s as a}from"./p-8c610886.js";const i=({elementType:i,rows:o,id:c,internalId:r,type:l,placeholder:p,value:u,size:f,pattern:d,unit:b,unitPrefix:m,maxLength:x,disabled:w,clearable:h,focused:y,readonly:v,isPasswordVisible:C,passwordToggle:g,noDefaultIcon:j,inValid:_,captionType:k,resize:z,autocomplete:I,_suffix:T,_prefix:L,changePasswordVisibility:B,handleClear:D,steps:O,ref:P,handleBlur:V,handleFocus:F,handleInput:H,handleChange:M,isEyeDropperSupported:E,eyeDropper:S})=>{const q=s.HtmlElementType[i]||s.HtmlElementType.input;l="password"===l&&C?"text":l,u=a((()=>u),""),u=y?u:u+(u&&(null==b?void 0:b.length)>0?" "+b:"");const A="color"===(l=(null==b?void 0:b.length)>0&&!y?"text":l);l="color"===l?"text":l;var G=t("bcm-input__container",q===s.HtmlElementType.textarea&&t("bcm-input__textarea","textarea-size-"+s.Size[f],"resize-"+z,"textarea-"+f),q===s.HtmlElementType.input&&t("input-size-"+s.Size[f]),{focused:y,clearable:h,disabled:w,readonly:v,invalid:_,unit:(null==b?void 0:b.length)>0,error:"error"===k});const J=t("caret-container",{unit:(null==b?void 0:b.length)>0,disabled:w||v||_}),K="bcm-input__container--"+f,N=t(K,"unit-prefix");return n("div",{class:G,id:c+"-container"},n("span",{hidden:!0},n("slot",null)),n("span",{class:"input-prefix"},n("slot",{name:"prefix"}),L&&L.length>0&&n("span",{innerHTML:L}),m&&n("span",{class:N},m),A&&n("i",{class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300",style:{backgroundColor:u}})),n(q,Object.assign({tabindex:"0",id:c+"-input","bcm-internal-id":r,class:"bcm-input-element "+K},q===s.HtmlElementType.input&&{type:l,autocomplete:I?"on":"off",pattern:d},q===s.HtmlElementType.textarea&&{rows:o,resize:z},{value:u,maxLength:x,placeholder:p,disabled:w,readOnly:v,ref:n=>P(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),V(n)})(n),onFocus:n=>(n=>{n.target.parentElement.classList.add("focused"),F(n)})(n),onInput:n=>H(n),onChange:n=>M(n)})),n("span",{class:"input-suffix-content"},h&&!w&&!v&&n("span",{class:"input-suffix input-suffix-button input-clear-button",onClick:n=>D(n)},n("bcm-icon",{icon:"far fa-times"}))),n("span",{class:"input-suffix-content"},("password"===l||"text"===l)&&g&&n("span",{class:"input-suffix input-suffix-button",onClick:()=>B()},n("bcm-icon",{icon:C?"far fa-eye-slash":"far fa-eye"}))),n("span",{class:"input-suffix-content"},Object.keys(e).includes(l)&&!j&&n("span",{class:"input-suffix"},n("bcm-icon",{icon:e[l]}))),n("span",{class:"input-suffix-content"},"number"===l&&n("div",{class:J},n("span",{class:"bcm-input-caret",onClick:()=>O("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>O("down")},n("bcm-icon",{icon:"fas fa-caret-down"})))),n("span",{class:"input-suffix-content"},"number"!==l&&n("span",{class:"input-suffix"},n("slot",{name:"suffix"}),T&&T.length>0&&n("span",{innerHTML:T})),A&&E()&&n("span",{class:"input-suffix"},n("span",null,n("i",{class:"far fa-eye-dropper",onClick:()=>S()})))))};export{i as I}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-
|
|
11
|
-
require('./package-
|
|
10
|
+
const generate = require('./generate-c3a6c8c7.js');
|
|
11
|
+
require('./package-b23f7b7f.js');
|
|
12
12
|
require('./colors-078851ec.js');
|
|
13
13
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
14
|
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index$1 = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-
|
|
10
|
+
const generate = require('./generate-c3a6c8c7.js');
|
|
11
11
|
const index$2 = require('./index-95ae50d0.js');
|
|
12
12
|
const index = require('./index-d321de96.js');
|
|
13
13
|
const stringHelper = require('./string-helper-3212f4ea.js');
|
|
14
|
-
require('./package-
|
|
14
|
+
require('./package-b23f7b7f.js');
|
|
15
15
|
require('./colors-078851ec.js');
|
|
16
16
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
17
17
|
require('./bcm-3c58a6d5.js');
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-
|
|
11
|
-
require('./package-
|
|
10
|
+
const generate = require('./generate-c3a6c8c7.js');
|
|
11
|
+
require('./package-b23f7b7f.js');
|
|
12
12
|
require('./colors-078851ec.js');
|
|
13
13
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
14
14
|
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index$1 = require('./index-c591ecec.js');
|
|
10
10
|
const colorHelper = require('./color-helper-c3a819ea.js');
|
|
11
11
|
require('./datetime-helper-eaf4fadb.js');
|
|
12
|
-
const generate = require('./generate-
|
|
13
|
-
require('./number-helper-
|
|
12
|
+
const generate = require('./generate-c3a6c8c7.js');
|
|
13
|
+
require('./number-helper-4e902d31.js');
|
|
14
14
|
require('./string-helper-3212f4ea.js');
|
|
15
|
-
require('./validators-
|
|
15
|
+
require('./validators-e2155072.js');
|
|
16
16
|
require('./element-dragger-a8562f82.js');
|
|
17
17
|
const bcm = require('./bcm-3c58a6d5.js');
|
|
18
18
|
const index = require('./index-5279dea2.js');
|
|
@@ -20,7 +20,7 @@ require('./colors-56282b00.js');
|
|
|
20
20
|
require('./utils-fc077139.js');
|
|
21
21
|
require('./colors-078851ec.js');
|
|
22
22
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
23
|
-
require('./package-
|
|
23
|
+
require('./package-b23f7b7f.js');
|
|
24
24
|
|
|
25
25
|
const avatarStyle = index.ce({
|
|
26
26
|
slots: {
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
10
|
const index$1 = require('./index-95ae50d0.js');
|
|
11
|
-
const generate = require('./generate-
|
|
11
|
+
const generate = require('./generate-c3a6c8c7.js');
|
|
12
12
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
13
|
-
require('./package-
|
|
13
|
+
require('./package-b23f7b7f.js');
|
|
14
14
|
require('./colors-078851ec.js');
|
|
15
15
|
|
|
16
16
|
const breadcrumbCss = "@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-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;color:var(--bcm-color-grey-7)}.bcm-breadcrumb__item{display:flex;align-items:center}.bcm-breadcrumb .seperator{cursor:default;display:inline-flex;align-items:center;justify-content:center;margin-left:8px;margin-right:8px;color:var(--bcm-color-grey-7)}.bcm-breadcrumb bcm-link:hover{color:var(--bcm-color-grey-7)}.bcm-breadcrumb .active{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .active:hover{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .is-link:hover{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb .is-link:hover bcm-link,.bcm-breadcrumb .is-link:hover bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item{position:relative;display:inline-flex}.bcm-breadcrumb__dropdown-item summary{display:inline-flex;align-items:center;cursor:pointer}.bcm-breadcrumb__dropdown-item summary>span{display:inline-flex;align-items:center}.bcm-breadcrumb__dropdown-item summary::-webkit-details-marker{display:none}.bcm-breadcrumb__dropdown-item summary:focus{outline:none}.bcm-breadcrumb__dropdown-item summary.open bcm-link,.bcm-breadcrumb__dropdown-item summary.open bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item summary .down-icon{margin-left:4px}.bcm-breadcrumb__dropdown-submenu{position:absolute;min-width:140px;background-color:var(--bcm-color-grey-1);box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);margin-top:4px}.bcm-breadcrumb__dropdown-submenu .dropdown-item{display:flex;padding:4px 8px}.bcm-breadcrumb__dropdown-submenu .dropdown-item bcm-link{width:100%}";
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-
|
|
10
|
+
const generate = require('./generate-c3a6c8c7.js');
|
|
11
11
|
const bcm = require('./bcm-3c58a6d5.js');
|
|
12
12
|
const index$1 = require('./index-95ae50d0.js');
|
|
13
13
|
const stringHelper = require('./string-helper-3212f4ea.js');
|
|
14
|
-
require('./package-
|
|
14
|
+
require('./package-b23f7b7f.js');
|
|
15
15
|
require('./colors-078851ec.js');
|
|
16
16
|
require('./_commonjsHelpers-ed84c3ca.js');
|
|
17
17
|
|