bromcom-ui 2.10.1-rc.1 → 2.10.1-rc.11
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-01c19c5a.entry.js +5 -0
- package/dist/bromcom-ui/{p-09699c4d.entry.js → p-0985e7ba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3756f541.entry.js → p-10e70228.entry.js} +1 -1
- package/dist/bromcom-ui/{p-16848643.entry.js → p-13c47eea.entry.js} +1 -1
- package/dist/bromcom-ui/p-140b6ce0.js +5 -0
- package/dist/bromcom-ui/{p-1708a5ec.entry.js → p-18020ef7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7f09901d.entry.js → p-1b9bffba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3f39982f.entry.js → p-30bfe3bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-571dca86.entry.js → p-372ffe04.entry.js} +1 -1
- package/dist/bromcom-ui/{p-551058cd.entry.js → p-3c87fd88.entry.js} +1 -1
- package/dist/bromcom-ui/p-4597ee14.entry.js +5 -0
- package/dist/bromcom-ui/p-47682d2b.entry.js +21 -0
- package/dist/bromcom-ui/p-4bace961.entry.js +5 -0
- package/dist/bromcom-ui/{p-0973538a.entry.js → p-5f419e20.entry.js} +1 -1
- package/dist/bromcom-ui/p-6132700e.entry.js +5 -0
- package/dist/bromcom-ui/{p-9a41b688.js → p-62840867.js} +1 -1
- package/dist/bromcom-ui/p-629bcf93.entry.js +5 -0
- package/dist/bromcom-ui/{p-77eb2287.entry.js → p-6a02ed0b.entry.js} +1 -1
- package/dist/bromcom-ui/p-6bfed79a.entry.js +5 -0
- package/dist/bromcom-ui/{p-55291cc5.entry.js → p-6d83c8f6.entry.js} +1 -1
- package/dist/bromcom-ui/p-6de1c6ea.entry.js +5 -0
- package/dist/bromcom-ui/p-71cbd6f6.entry.js +5 -0
- package/dist/bromcom-ui/{p-56f7477e.entry.js → p-73d4bd1c.entry.js} +1 -1
- package/dist/bromcom-ui/p-7ada3462.entry.js +5 -0
- package/dist/bromcom-ui/p-7c0a3a3d.js +5 -0
- package/dist/bromcom-ui/{p-dac3117a.entry.js → p-7d1dd1b9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-673f7ee8.entry.js → p-82331114.entry.js} +1 -1
- package/dist/bromcom-ui/p-8301a465.entry.js +5 -0
- package/dist/bromcom-ui/p-85565afb.js +5 -0
- package/dist/bromcom-ui/{p-5ca4aa84.entry.js → p-88c38780.entry.js} +1 -1
- package/dist/bromcom-ui/p-8dc361a8.js +5 -0
- package/dist/bromcom-ui/{p-015d19dd.entry.js → p-90510968.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e131b27f.js → p-92d1a4c9.js} +1 -1
- package/dist/bromcom-ui/{p-cf171578.js → p-9398df85.js} +1 -1
- package/dist/bromcom-ui/{p-a04aab3c.entry.js → p-9ec71162.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0325e8a4.entry.js → p-9f954c08.entry.js} +1 -1
- package/dist/bromcom-ui/p-9fbc30a6.entry.js +5 -0
- package/dist/bromcom-ui/{p-f3431dc8.js → p-a40d4f27.js} +1 -1
- package/dist/bromcom-ui/p-a8d23b66.entry.js +5 -0
- package/dist/bromcom-ui/p-a953375b.entry.js +5 -0
- package/dist/bromcom-ui/p-a95b18f2.entry.js +5 -0
- package/dist/bromcom-ui/{p-24710a65.entry.js → p-a9c8b43c.entry.js} +1 -1
- package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
- package/dist/bromcom-ui/p-baf565be.entry.js +5 -0
- package/dist/bromcom-ui/{p-e38c4c3a.entry.js → p-bffc5f8c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-39a40a6e.entry.js → p-c80014e3.entry.js} +1 -1
- package/dist/bromcom-ui/p-c852c8fe.entry.js +5 -0
- package/dist/bromcom-ui/{p-cf0c0700.entry.js → p-ca788dc4.entry.js} +1 -1
- package/dist/bromcom-ui/p-ca8a4fc8.entry.js +5 -0
- package/dist/bromcom-ui/p-cc6c6f9e.entry.js +5 -0
- package/dist/bromcom-ui/p-d283e83e.entry.js +5 -0
- package/dist/bromcom-ui/p-dbad3126.entry.js +5 -0
- package/dist/bromcom-ui/{p-c1b167a3.js → p-de2272c5.js} +1 -1
- package/dist/bromcom-ui/{p-3b41df22.entry.js → p-df444847.entry.js} +1 -1
- package/dist/bromcom-ui/p-ee4845ac.entry.js +5 -0
- package/dist/bromcom-ui/{p-e11ab4ed.entry.js → p-ef829d33.entry.js} +1 -1
- package/dist/bromcom-ui/{p-646cf63c.entry.js → p-f24b096b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d7538ba4.entry.js → p-f372306f.entry.js} +1 -1
- package/dist/bromcom-ui/p-f818d2a9.entry.js +5 -0
- package/dist/bromcom-ui/{p-14c32a34.entry.js → p-f93bf6db.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f1dbd96d.entry.js → p-fc18af27.entry.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 -5
- 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_18.cjs.entry.js} +8309 -1414
- package/dist/cjs/bcm-caption.cjs.entry.js +5 -6
- 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 -6
- 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 -5
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +4 -5
- 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 -7
- 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 -6
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -5
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -5
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -5
- package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
- package/dist/cjs/bcm-number-input.cjs.entry.js +108 -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 -5
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -5
- package/dist/cjs/bcm-radio.cjs.entry.js +4 -5
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -5
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +5 -6
- package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -5
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -5
- package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -5
- package/dist/cjs/bcm-table.cjs.entry.js +4 -5
- 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-8f2a5b22.js} +15 -1
- package/dist/cjs/{global-9bb1902a.js → global-6e3108be.js} +1 -1
- package/dist/cjs/{input-template-3d21aacb.js → input-template-866a71d3.js} +1 -1
- package/dist/cjs/{json-parse-decarator-4d7afa63.js → json-parse-decarator-f30bb239.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-57ea679e.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-9f43976f.js} +1 -1
- package/dist/cjs/{stepper-states-a5699b31.js → stepper-states-1199c518.js} +1 -1
- package/dist/cjs/{tooltip-helper-7d5d1cb5.js → tooltip-helper-f55fc832.js} +3 -4
- package/dist/cjs/{validators-507307b9.js → validators-463a67ba.js} +6 -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/datetime-picker/datetime-picker.css +47 -0
- package/dist/collection/components/organism/list/list.css +2 -0
- package/dist/collection/components/organism/list/list.js +38 -9
- package/dist/collection/components/other_deprecated/old-input/old-input.css +47 -0
- 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/datetime-picker.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/components/old-input.js +1 -1
- 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 -5
- 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_18.entry.js} +7872 -985
- package/dist/esm/bcm-caption.entry.js +5 -6
- 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 -6
- 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 -5
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +4 -5
- 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 -7
- 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 -6
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -5
- package/dist/esm/bcm-modal-2-header.entry.js +4 -5
- package/dist/esm/bcm-modal-2.entry.js +4 -5
- package/dist/esm/bcm-modal.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +104 -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 -5
- package/dist/esm/bcm-progress.entry.js +2 -2
- package/dist/esm/bcm-radio-group.entry.js +4 -5
- package/dist/esm/bcm-radio.entry.js +4 -5
- package/dist/esm/bcm-range.entry.js +2 -2
- package/dist/esm/bcm-shortcut.entry.js +4 -5
- package/dist/esm/bcm-skeleton.entry.js +4 -5
- package/dist/esm/bcm-step.entry.js +3 -3
- package/dist/esm/bcm-stepper.entry.js +5 -6
- package/dist/esm/bcm-tab-group.entry.js +4 -5
- package/dist/esm/bcm-tab-item-header.entry.js +4 -5
- package/dist/esm/bcm-tab-item.entry.js +4 -5
- package/dist/esm/bcm-table.entry.js +4 -5
- 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-c1065765.js} +15 -1
- package/dist/esm/{global-114427da.js → global-6365ce83.js} +1 -1
- package/dist/esm/{input-template-dc94e47f.js → input-template-74229cd2.js} +1 -1
- package/dist/esm/{json-parse-decarator-fca2dc09.js → json-parse-decarator-a301c8b7.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-d42f27d5.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-5c7049c1.js} +1 -1
- package/dist/esm/{stepper-states-291a682f.js → stepper-states-39645921.js} +1 -1
- package/dist/esm/{tooltip-helper-089735b1.js → tooltip-helper-61f3e8cb.js} +3 -4
- package/dist/esm/{validators-c1fe8b4b.js → validators-3881959b.js} +6 -2
- 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-0b316c6f.entry.js +0 -5
- package/dist/bromcom-ui/p-0b820f78.entry.js +0 -5
- package/dist/bromcom-ui/p-0fe106fc.entry.js +0 -5
- package/dist/bromcom-ui/p-140f3478.js +0 -5
- package/dist/bromcom-ui/p-29614b49.entry.js +0 -5
- package/dist/bromcom-ui/p-2da72d6a.entry.js +0 -5
- package/dist/bromcom-ui/p-3432a82d.js +0 -19
- package/dist/bromcom-ui/p-3d142f76.entry.js +0 -5
- package/dist/bromcom-ui/p-40b85b9b.entry.js +0 -5
- package/dist/bromcom-ui/p-483b4ba8.entry.js +0 -5
- package/dist/bromcom-ui/p-5ff3c68f.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-62d178e3.entry.js +0 -5
- package/dist/bromcom-ui/p-71b9ea64.entry.js +0 -7
- package/dist/bromcom-ui/p-795d2f76.entry.js +0 -5
- package/dist/bromcom-ui/p-813ec92d.js +0 -5
- package/dist/bromcom-ui/p-8b202d9e.js +0 -5
- package/dist/bromcom-ui/p-8d43aa14.entry.js +0 -5
- package/dist/bromcom-ui/p-93b8a3ff.entry.js +0 -5
- package/dist/bromcom-ui/p-9889a4ed.entry.js +0 -5
- package/dist/bromcom-ui/p-a00170b7.entry.js +0 -5
- package/dist/bromcom-ui/p-a1f9e7d4.entry.js +0 -5
- package/dist/bromcom-ui/p-a42cc789.entry.js +0 -5
- package/dist/bromcom-ui/p-a839a0e5.entry.js +0 -5
- package/dist/bromcom-ui/p-b013cff9.entry.js +0 -5
- package/dist/bromcom-ui/p-b3b59bc3.entry.js +0 -5
- package/dist/bromcom-ui/p-be434461.entry.js +0 -5
- package/dist/bromcom-ui/p-bec8a936.entry.js +0 -5
- package/dist/bromcom-ui/p-c566b3a0.entry.js +0 -5
- package/dist/bromcom-ui/p-cd04678a.entry.js +0 -5
- package/dist/bromcom-ui/p-d06f5291.js +0 -5
- package/dist/bromcom-ui/p-d89b7e22.entry.js +0 -5
- package/dist/bromcom-ui/p-ea2ce157.js +0 -5
- package/dist/bromcom-ui/p-f7549b1f.entry.js +0 -5
- package/dist/bromcom-ui/p-fb597d84.entry.js +0 -5
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1450
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2536
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/index-7eed931f.js +0 -2146
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-date-picker.entry.js +0 -178
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1446
- package/dist/esm/bcm-list_3.entry.js +0 -2530
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/index-e4b6a4ce.js +0 -2127
|
@@ -518,4 +518,51 @@ input[type=number] {
|
|
|
518
518
|
|
|
519
519
|
.input-small {
|
|
520
520
|
height: 24px;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.bcm-label {
|
|
524
|
+
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
525
|
+
-webkit-font-smoothing: antialiased;
|
|
526
|
+
-moz-osx-font-smoothing: grayscale;
|
|
527
|
+
margin-bottom: 4px;
|
|
528
|
+
font-weight: 500;
|
|
529
|
+
color: #475569;
|
|
530
|
+
}
|
|
531
|
+
.bcm-label.tw-text-1 {
|
|
532
|
+
font-size: 10px;
|
|
533
|
+
line-height: 18px;
|
|
534
|
+
}
|
|
535
|
+
.bcm-label.tw-text-2 {
|
|
536
|
+
font-size: 12px;
|
|
537
|
+
line-height: 20px;
|
|
538
|
+
}
|
|
539
|
+
.bcm-label.tw-text-3 {
|
|
540
|
+
font-size: 14px;
|
|
541
|
+
line-height: 22px;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.bcm-caption-area {
|
|
545
|
+
color: #dc2626;
|
|
546
|
+
font-weight: 400;
|
|
547
|
+
justify-content: space-between;
|
|
548
|
+
align-items: flex-start;
|
|
549
|
+
flex-direction: row;
|
|
550
|
+
min-height: 20px;
|
|
551
|
+
display: flex;
|
|
552
|
+
margin-top: 4px;
|
|
553
|
+
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
554
|
+
-webkit-font-smoothing: antialiased;
|
|
555
|
+
-moz-osx-font-smoothing: grayscale;
|
|
556
|
+
}
|
|
557
|
+
.bcm-caption-area.tw-text-1 {
|
|
558
|
+
font-size: 10px;
|
|
559
|
+
line-height: 18px;
|
|
560
|
+
}
|
|
561
|
+
.bcm-caption-area.tw-text-2 {
|
|
562
|
+
font-size: 12px;
|
|
563
|
+
line-height: 20px;
|
|
564
|
+
}
|
|
565
|
+
.bcm-caption-area.tw-text-3 {
|
|
566
|
+
font-size: 14px;
|
|
567
|
+
line-height: 22px;
|
|
521
568
|
}
|
|
@@ -33,6 +33,15 @@ if (isAllowedDomain()) {
|
|
|
33
33
|
}
|
|
34
34
|
})();
|
|
35
35
|
export class Generate {
|
|
36
|
+
static prettify(input) {
|
|
37
|
+
const prettifiedObject = {};
|
|
38
|
+
for (const key in input) {
|
|
39
|
+
if (input.hasOwnProperty(key)) {
|
|
40
|
+
prettifiedObject[key] = input[key];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return prettifiedObject;
|
|
44
|
+
}
|
|
36
45
|
/**
|
|
37
46
|
const dc = Generate.getTwColor({
|
|
38
47
|
color: "blue",
|
|
@@ -110,6 +119,11 @@ Generate.getIconAttrWithStatusType = (status, loading = false) => {
|
|
|
110
119
|
return { icon: "far fa-check-circle" };
|
|
111
120
|
}
|
|
112
121
|
};
|
|
122
|
+
Generate.domParser = (html) => {
|
|
123
|
+
const parser = new DOMParser();
|
|
124
|
+
const doc = parser.parseFromString(html, "text/html");
|
|
125
|
+
return doc.body.innerText;
|
|
126
|
+
};
|
|
113
127
|
Generate.createComponent = (el, props, area = "append-area") => {
|
|
114
128
|
let container = area ? document.querySelector(area) : document.body;
|
|
115
129
|
if (area && !container) {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { h } from
|
|
6
|
-
import cs from
|
|
7
|
-
import Bcm from
|
|
8
|
-
export const LabelTemplate = ({ required, value, size, form, htmlFor, type }) => {
|
|
5
|
+
import { h } from "@stencil/core";
|
|
6
|
+
import cs from "classnames";
|
|
7
|
+
import Bcm from "../models/bcm";
|
|
8
|
+
export const LabelTemplate = ({ required, value, size, form, htmlFor, type, tooltip }) => {
|
|
9
9
|
size = size || "medium";
|
|
10
10
|
type = type || Bcm.Status.default;
|
|
11
|
-
return (h("label", { form: form, htmlFor: htmlFor, class: cs("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-text-slate-600
|
|
11
|
+
return (h("label", { form: form, htmlFor: htmlFor, class: cs("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-font-medium tw-text-slate-600 ", {
|
|
12
12
|
"tw-text-1": size == "small",
|
|
13
13
|
"tw-text-2": size == "medium",
|
|
14
14
|
"tw-text-3": size == "large",
|
|
15
|
-
}) }, value, " ", required && (
|
|
15
|
+
}) }, value, " ", required && "*", tooltip && (h("span", { class: "tw-ml-1" }, h("bcm-tooltip", { message: tooltip, placement: "top", trigger: "hover" }, h("bcm-icon", { icon: "fas fa-info-circle" }))))));
|
|
16
16
|
};
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { h } from '@stencil/core';
|
|
6
6
|
import cs from 'classnames';
|
|
7
|
-
import { StringHelper } from '../helper/string-helper';
|
|
8
7
|
import { CheckboxTemplate } from './checkbox-template';
|
|
8
|
+
import { Generate, StringHelper } from '@bcm/helpers';
|
|
9
9
|
export const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size, selectedItem, openGroup, checkedItem, focusItem, searchIsOnlyChilds }) => {
|
|
10
10
|
const isHaveChildren = item.items && item.items.length > 0;
|
|
11
11
|
var text = StringHelper.htmlEntities(item.text);
|
|
@@ -24,6 +24,7 @@ export const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size,
|
|
|
24
24
|
intersection = match.filter(x => keys.includes(x));
|
|
25
25
|
}
|
|
26
26
|
text = item.isHtmlContent ? item.isHtmlContent : item.template && intersection.length > 0 ? StringHelper.templateParser(item.template, Object.assign(Object.assign({}, item.itemObject), { text })) : text;
|
|
27
|
+
const domText = item.template ? text : Generate.domParser(text);
|
|
27
28
|
const unClickable = !treeview && item.type == "group" && !item.clickable;
|
|
28
29
|
const disabled = item.disabled;
|
|
29
30
|
const readonly = item.readonly;
|
|
@@ -46,6 +47,6 @@ export const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size,
|
|
|
46
47
|
'bcm-list__item-' + size, {
|
|
47
48
|
'bcm-list__item--group': !treeview && item.type == 'group',
|
|
48
49
|
'bcm-list__item--readonly': readonly,
|
|
49
|
-
}) }, h("div", { class: cs('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled: disabled }) }, treeview && (h("div", { class: "bcm-list__item-content-collapse-icon", onClick: () => collapseClick() }, isHaveChildren && h("bcm-icon", { icon: cs('fas fa-caret-' + (item.isSearching || item.open ? 'down' : 'right')) }))), h("div", { class: cs('bcm-list__item-content-text', { treeview }), onClick: (e) => itemClick(e) }, checkboxes && (treeview || (!treeview && item.type != 'group')) && (h("div", { class: "bcm-list__item-content-text-checkbox" }, h(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))), h("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML:
|
|
50
|
+
}) }, h("div", { class: cs('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled: disabled }) }, treeview && (h("div", { class: "bcm-list__item-content-collapse-icon", onClick: () => collapseClick() }, isHaveChildren && h("bcm-icon", { icon: cs('fas fa-caret-' + (item.isSearching || item.open ? 'down' : 'right')) }))), h("div", { class: cs('bcm-list__item-content-text', { treeview }), onClick: (e) => itemClick(e) }, checkboxes && (treeview || (!treeview && item.type != 'group')) && (h("div", { class: "bcm-list__item-content-text-checkbox" }, h(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))), h("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML: domText })))), (treeview || !treeview && item.type == "group") && isHaveChildren && (h("div", { class: "bcm-list__item-childs" }, (item.isSearching || item.open || (!treeview && item.type == "group")) &&
|
|
50
51
|
item.items.map((item) => (h(ListItemTemplate, { highlight: highlight, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, size: size, selectedItem: selectedItem, checkedItem: checkedItem, openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) })))))));
|
|
51
52
|
};
|
|
@@ -8,12 +8,12 @@ import './string-helper.js';
|
|
|
8
8
|
import { C as CaptionTemplate } from './caption-template.js';
|
|
9
9
|
import './index2.js';
|
|
10
10
|
import './types.js';
|
|
11
|
-
import './number-helper.js';
|
|
12
|
-
import './types2.js';
|
|
13
11
|
import './color-helper.js';
|
|
14
12
|
import './validators.js';
|
|
15
13
|
import './generate.js';
|
|
14
|
+
import './number-helper.js';
|
|
16
15
|
import './element-dragger.js';
|
|
16
|
+
import './types2.js';
|
|
17
17
|
|
|
18
18
|
const BcmCaption$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
19
19
|
constructor() {
|
|
@@ -43,7 +43,7 @@ const inputDropdownStyle = ce({
|
|
|
43
43
|
menuItem: "tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",
|
|
44
44
|
selectedItem: "tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",
|
|
45
45
|
disabledItem: "tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",
|
|
46
|
-
commentArea: "tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-
|
|
46
|
+
commentArea: "tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-rounded tw-p-4 tw-shadow-2",
|
|
47
47
|
},
|
|
48
48
|
variants: {
|
|
49
49
|
size: {
|
|
@@ -287,7 +287,7 @@ const BcmInputDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
287
287
|
};
|
|
288
288
|
const CommentTemplate = () => {
|
|
289
289
|
var _a, _b, _c;
|
|
290
|
-
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true,
|
|
290
|
+
return (h(Fragment, null, this.isOpenMenu ? (h("div", { class: commentArea() }, this.isLate ? (h(Fragment, null, h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, autocomplete: false, min: 0, max: 200, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", customErrorMessage: "Max limit 200 mins", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, h("i", { slot: "prefix", class: "far fa-clock" })))) : null, h("bcm-textarea", { "full-width": true, value: (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.comment) !== null && _c !== void 0 ? _c : "", "onBcm-change": ({ detail }) => (this.value.comment = detail), label: "Description", "no-caption": true, rows: 4 }), h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, h("bcm-button", { icon: "fas fa-times", kind: "ghost", "icon-position": "prefix", onClick: () => { var _a; return (_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide(); } }, "Close"), h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
291
291
|
};
|
|
292
292
|
return (h(Host, { class: base() }, label && h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), h("div", { class: content() }, h("div", { class: inputArea() }, h("input", { id: _id + "-dropdown-input", class: input(), style: { color: (_a = this.value) === null || _a === void 0 ? void 0 : _a.color }, type: "text", tabIndex: -1, placeholder: placeholder, value: (_b = this.value) === null || _b === void 0 ? void 0 : _b.key, disabled: disabled, required: required, autoComplete: "off", readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el) }), h("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, h("i", { class: "fas fa-chevron-down" })), h("bcm-linked", { "onBcm-open": ({ detail }) => { var _a; return detail && ((_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide()); }, class: "tw-mt-1", id: `i-dropdown-menu-${_id}`, "target-id": `i-dropdown-button-${_id}`, placement: "bottom-start" }, h(MenuTemplates, null)), h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, h(CommentTemplate, null))), !this.hideComment ? (h("span", { onClick: () => {
|
|
293
293
|
var _a, _b;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BcmNumberInput extends Components.BcmNumberInput, HTMLElement {}
|
|
4
|
+
export const BcmNumberInput: {
|
|
5
|
+
prototype: BcmNumberInput;
|
|
6
|
+
new (): BcmNumberInput;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
6
|
+
import './color-helper.js';
|
|
7
|
+
import './validators.js';
|
|
8
|
+
import { G as Generate } from './generate.js';
|
|
9
|
+
import './number-helper.js';
|
|
10
|
+
import './string-helper.js';
|
|
11
|
+
import './element-dragger.js';
|
|
12
|
+
import { a as Bcm } from './bcm.js';
|
|
13
|
+
import { C as CaptionTemplate } from './caption-template.js';
|
|
14
|
+
import './index2.js';
|
|
15
|
+
import './types.js';
|
|
16
|
+
import './types2.js';
|
|
17
|
+
import { c as ce } from './index5.js';
|
|
18
|
+
import { d as defineCustomElement$4 } from './icon.js';
|
|
19
|
+
import { d as defineCustomElement$3 } from './label.js';
|
|
20
|
+
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
21
|
+
|
|
22
|
+
const numberInputStyle = ce({
|
|
23
|
+
slots: {
|
|
24
|
+
host: "bcm-number-input bcm-ui-element tw-flex tw-flex-col tw-items-start tw-justify-start tw-max-w-[256px] tw-w-full",
|
|
25
|
+
container: "tw-flex tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-w-full tw-min-h-full hover:tw-bg-slate-50",
|
|
26
|
+
inputContainer: "tw-flex tw-min-h-fit tw-w-full tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-px-3",
|
|
27
|
+
input: "tw-outline-none tw-appearance-none tw-flex-1 tw-bg-transparent tw-text-slate-400 tw-text-inherit tw-font-normal",
|
|
28
|
+
caretContainer: "tw-flex tw-flex-col tw-min-h-full tw-border-l tw-items-stretch tw-self-stretch tw-justify-center tw-border-l-slate-300 tw-select-none tw-w-[30px]",
|
|
29
|
+
caretIcon: "tw-flex tw-items-center tw-text-slate-500 tw-justify-center tw-h-full tw-cursor-pointer active:tw-bg-slate-400 last:tw-border-t last:tw-border-t-slate-300",
|
|
30
|
+
slotIcon: "tw-text-slate-500",
|
|
31
|
+
},
|
|
32
|
+
variants: {
|
|
33
|
+
size: {
|
|
34
|
+
small: {
|
|
35
|
+
host: "tw-gap-0.5 tw-text-xs",
|
|
36
|
+
slotIcon: "tw-text-[10px]",
|
|
37
|
+
inputContainer: "tw-py-[2px]",
|
|
38
|
+
caretIcon: "tw-text-[10px]",
|
|
39
|
+
},
|
|
40
|
+
medium: {
|
|
41
|
+
host: "tw-gap-1 tw-text-base",
|
|
42
|
+
slotIcon: "tw-text-xs",
|
|
43
|
+
inputContainer: "tw-py-[5px]",
|
|
44
|
+
},
|
|
45
|
+
large: {
|
|
46
|
+
host: "tw-gap-2 tw-text-base",
|
|
47
|
+
slotIcon: "tw-text-[14px]",
|
|
48
|
+
inputContainer: "tw-py-2",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
focus: {
|
|
52
|
+
true: {
|
|
53
|
+
container: "tw-ring-1 tw-ring-blue-600",
|
|
54
|
+
input: "tw-text-slate-700",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
size: "medium",
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const numberInputCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");\n.size-1 {\n font-size: 12px;\n line-height: 20px;\n}\n\n.size-2 {\n font-size: 14px;\n line-height: 22px;\n}\n\n.size-3 {\n font-size: 16px;\n line-height: 24px;\n}\n\n.size-4 {\n font-size: 20px;\n line-height: 28px;\n}\n\n.size-5 {\n font-size: 24px;\n line-height: 32px;\n}\n\n.size-6 {\n font-size: 30px;\n line-height: 38px;\n}\n\n.size-7 {\n font-size: 38px;\n line-height: 46px;\n}\n\n.size-8 {\n font-size: 46px;\n line-height: 54px;\n}\n\n.size-9 {\n font-size: 56px;\n line-height: 64px;\n}\n\n.weight-regular {\n font-weight: 400;\n}\n\n.weight-semibold {\n font-weight: 500;\n}\n\n/**\n * Generator\n */\n.input-size-large {\n height: 40px;\n}\n\n.input-size-medium {\n height: 32px;\n}\n\n.input-size-small {\n height: 24px;\n}\n\n.resize-none textarea {\n resize: none;\n}\n\n.resize-vertical textarea {\n resize: vertical;\n}\n\n.resize-auto textarea {\n height: auto;\n resize: none;\n}\n\n.textarea-size-large {\n padding: 4px 0 0 4px;\n min-height: 40px;\n}\n.textarea-size-large .bcm-input-element {\n min-height: calc((40px - 8px) + 2px);\n}\n.textarea-size-large .input-clear-button {\n height: calc( 40px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-medium {\n padding: 4px 0 0 4px;\n min-height: 32px;\n}\n.textarea-size-medium .bcm-input-element {\n min-height: calc((32px - 8px) + 2px);\n}\n.textarea-size-medium .input-clear-button {\n height: calc( 32px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-small {\n padding: 0px 0 0 4px;\n min-height: 24px;\n}\n.textarea-size-small .bcm-input-element {\n min-height: calc((24px - 8px) + 2px);\n}\n.textarea-size-small .input-clear-button {\n height: calc( 24px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n@layer base {\n .bcm-number-input input[type=number]::-webkit-outer-spin-button,\n.bcm-number-input input[type=number]::-webkit-inner-spin-button,\n.bcm-number-input input[type=number] {\n -webkit-appearance: none;\n padding: 0px;\n margin: 0px;\n outline: none;\n border: 0px;\n vertical-align: baseline;\n -moz-appearance: textfield !important;\n }\n}";
|
|
64
|
+
|
|
65
|
+
const NumberInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
66
|
+
constructor() {
|
|
67
|
+
super();
|
|
68
|
+
this.__registerHost();
|
|
69
|
+
this.blockInvalidChar = e => {
|
|
70
|
+
return ["e", "E", "+", "-"].includes(e.key) && e.preventDefault();
|
|
71
|
+
};
|
|
72
|
+
this._id = Generate.UID();
|
|
73
|
+
this.size = Bcm.Size.medium;
|
|
74
|
+
this.min = 0;
|
|
75
|
+
this.max = 100;
|
|
76
|
+
this.step = 1;
|
|
77
|
+
this.placeholder = undefined;
|
|
78
|
+
this.label = undefined;
|
|
79
|
+
this.tooltip = undefined;
|
|
80
|
+
this.value = 0;
|
|
81
|
+
this.disabled = false;
|
|
82
|
+
this.readonly = false;
|
|
83
|
+
this.required = false;
|
|
84
|
+
this.pattern = undefined;
|
|
85
|
+
this.caption = undefined;
|
|
86
|
+
this.noCaption = false;
|
|
87
|
+
this.captionType = Bcm.Status.default;
|
|
88
|
+
this.captionError = undefined;
|
|
89
|
+
this.customErrorMessage = undefined;
|
|
90
|
+
this.prefixIcon = undefined;
|
|
91
|
+
this.suffixIcon = undefined;
|
|
92
|
+
this.isFocus = false;
|
|
93
|
+
this.isError = false;
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const { _id, value, min, max, step, tooltip, disabled, size, label, caption, captionType, required, noCaption, captionError, customErrorMessage, prefixIcon, suffixIcon, pattern } = this;
|
|
97
|
+
const { host, input, container, inputContainer, caretContainer, caretIcon, slotIcon } = numberInputStyle({ size, focus: this.isFocus });
|
|
98
|
+
return (h(Host, { class: host(), onClick: () => !disabled && this.nativeInput.focus() }, label && h("bcm-label", { tooltip: tooltip, "no-margin": true, type: captionType, value: label, required: required, htmlFor: _id }), h("div", { class: container() }, h("div", { class: inputContainer() }, prefixIcon && (h("span", { class: slotIcon() }, h("i", { class: prefixIcon }))), h("input", { type: "number", class: input(), min: min, max: max, step: step, value: value, inputmode: "numeric", pattern: pattern, ref: input => (this.nativeInput = input), onKeyPress: this.blockInvalidChar, onFocus: () => (this.isFocus = true), onBlur: () => (this.isFocus = false), onError: e => console.log(e), onErrorCapture: e => console.log(e) }), suffixIcon && (h("span", { class: slotIcon() }, h("i", { class: suffixIcon })))), h("div", { class: caretContainer() }, h("span", { class: caretIcon() }, h("i", { class: "fas fa-caret-up" })), h("span", { class: caretIcon() }, h("i", { class: "fas fa-caret-down" })))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
|
|
99
|
+
}
|
|
100
|
+
static get style() { return numberInputCss; }
|
|
101
|
+
}, [0, "bcm-number-input", {
|
|
102
|
+
"_id": [513, "id"],
|
|
103
|
+
"size": [1],
|
|
104
|
+
"min": [2],
|
|
105
|
+
"max": [2],
|
|
106
|
+
"step": [2],
|
|
107
|
+
"placeholder": [1],
|
|
108
|
+
"label": [1],
|
|
109
|
+
"tooltip": [1025],
|
|
110
|
+
"value": [1026],
|
|
111
|
+
"disabled": [4],
|
|
112
|
+
"readonly": [4],
|
|
113
|
+
"required": [4],
|
|
114
|
+
"pattern": [1025],
|
|
115
|
+
"caption": [1025],
|
|
116
|
+
"noCaption": [1028, "no-caption"],
|
|
117
|
+
"captionType": [1025, "caption-type"],
|
|
118
|
+
"captionError": [1025, "caption-error"],
|
|
119
|
+
"customErrorMessage": [1025, "custom-error-message"],
|
|
120
|
+
"prefixIcon": [1025, "prefix-icon"],
|
|
121
|
+
"suffixIcon": [1025, "suffix-icon"],
|
|
122
|
+
"isFocus": [32],
|
|
123
|
+
"isError": [32]
|
|
124
|
+
}]);
|
|
125
|
+
function defineCustomElement$1() {
|
|
126
|
+
if (typeof customElements === "undefined") {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const components = ["bcm-number-input", "bcm-icon", "bcm-label", "bcm-tooltip"];
|
|
130
|
+
components.forEach(tagName => { switch (tagName) {
|
|
131
|
+
case "bcm-number-input":
|
|
132
|
+
if (!customElements.get(tagName)) {
|
|
133
|
+
customElements.define(tagName, NumberInput);
|
|
134
|
+
}
|
|
135
|
+
break;
|
|
136
|
+
case "bcm-icon":
|
|
137
|
+
if (!customElements.get(tagName)) {
|
|
138
|
+
defineCustomElement$4();
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
case "bcm-label":
|
|
142
|
+
if (!customElements.get(tagName)) {
|
|
143
|
+
defineCustomElement$3();
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
case "bcm-tooltip":
|
|
147
|
+
if (!customElements.get(tagName)) {
|
|
148
|
+
defineCustomElement$2();
|
|
149
|
+
}
|
|
150
|
+
break;
|
|
151
|
+
} });
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const BcmNumberInput = NumberInput;
|
|
155
|
+
const defineCustomElement = defineCustomElement$1;
|
|
156
|
+
|
|
157
|
+
export { BcmNumberInput, defineCustomElement };
|
|
@@ -13,7 +13,7 @@ import { d as defineCustomElement$4 } from './icon.js';
|
|
|
13
13
|
import { d as defineCustomElement$3 } from './label.js';
|
|
14
14
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
15
15
|
|
|
16
|
-
const switchCss = "@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}.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}.bcm-switch{display:inline-flex;user-select:none;flex-direction:column;margin-bottom:8px}.bcm-switch__container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.bcm-switch__container--left,.bcm-switch__container--right{align-items:center}.bcm-switch__container--left .bcm-label__text,.bcm-switch__container--right .bcm-label__text{margin:0}.bcm-switch__container--left{flex-direction:row}.bcm-switch__container--left .bcm-label__text{margin-right:4px}.bcm-switch__container--right{flex-direction:row-reverse}.bcm-switch__container--right .bcm-label__text{margin-left:4px}.bcm-switch:focus-visible{outline:none}.bcm-switch:focus-visible .bcm-switch__toggle{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-switch:focus-visible .bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch:hover{outline:none}.bcm-switch:hover .bcm-switch__toggle .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch:hover .bcm-switch__toggle.switch-checked .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch *{box-sizing:border-box}.bcm-switch.hidden{display:none}.bcm-switch input{display:none}.bcm-switch.disabled .bcm-switch__toggle{cursor:not-allowed;opacity:40%}.bcm-switch.readonly .bcm-switch__toggle{cursor:default;opacity:80%}.bcm-switch__label{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;align-items:center;margin:0}.bcm-switch__label .active-text{color:var(--bcm-new-ds-color-blue-500);margin:0 0 0 4px}.bcm-switch__label .inactive-text{color:var(--bcm-new-ds-color-slate-500);margin:0 4px 0 0}.bcm-switch__toggle{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-new-ds-color-slate-300);position:relative;cursor:pointer}.bcm-switch__toggle .handle{padding:1px;position:absolute;background-color:var(--bcm-new-ds-color-slate-50);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:left 0.2s ease-in-out, width 0.2s ease-in-out;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-switch__toggle .icon-active{opacity:0;margin-left:2px}.bcm-switch__toggle .icon-inactive{opacity:1;margin-right:2px}.bcm-switch__toggle.bcm-switch__size-small{width:32px;min-width:32px;height:16px;padding:4px}.bcm-switch__toggle.bcm-switch__size-small .handle{width:12px;height:12px;left:2px}.bcm-switch__toggle.bcm-switch__size-small.switch-checked .handle{left:18px}.bcm-switch__toggle.bcm-switch__size-small:active:not(.disabled):not(.readonly) .handle{width:16px}.bcm-switch__toggle.bcm-switch__size-small:active.switch-checked:not(.disabled):not(.readonly) .handle{left:12px}.bcm-switch__toggle.bcm-switch__size-small .switch-spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-medium{width:36px;min-width:36px;height:18px;padding:4px}.bcm-switch__toggle.bcm-switch__size-medium .handle{width:14px;height:14px;left:2px}.bcm-switch__toggle.bcm-switch__size-medium.switch-checked .handle{left:20px}.bcm-switch__toggle.bcm-switch__size-medium:active:not(.disabled):not(.readonly) .handle{width:18px}.bcm-switch__toggle.bcm-switch__size-medium:active.switch-checked:not(.disabled):not(.readonly) .handle{left:14px}.bcm-switch__toggle.bcm-switch__size-medium .switch-spinner{box-sizing:border-box;display:inline-flex;width:11px;height:11px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-large{width:40px;min-width:40px;height:20px;padding:4px}.bcm-switch__toggle.bcm-switch__size-large .handle{width:16px;height:16px;left:2px}.bcm-switch__toggle.bcm-switch__size-large.switch-checked .handle{left:22px}.bcm-switch__toggle.bcm-switch__size-large:active:not(.disabled):not(.readonly) .handle{width:20px}.bcm-switch__toggle.bcm-switch__size-large:active.switch-checked:not(.disabled):not(.readonly) .handle{left:16px}.bcm-switch__toggle.bcm-switch__size-large .switch-spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-500)}.bcm-switch__toggle.switch-checked .icon-active{color:var(--bcm-new-ds-color-slate-100);opacity:1}.bcm-switch__toggle.switch-checked .icon-inactive{opacity:0}.bcm-switch__toggle.switch-checked .switch-spinner{border-top-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch__size-small .bcm-switch__label,.bcm-switch__size-small .bcm-label__text{font-size:12px}.bcm-switch__size-small .bcm-switch__toggle{font-size:8px}.bcm-switch__size-medium .bcm-switch__label,.bcm-switch__size-medium .bcm-label__text{font-size:13px}.bcm-switch__size-medium .bcm-switch__toggle{font-size:9px}.bcm-switch__size-large .bcm-switch__label,.bcm-switch__size-large .bcm-label__text{font-size:16px}.bcm-switch__size-large .bcm-switch__toggle{font-size:12px}@keyframes switch-spinner{to{transform:rotate(360deg)}}";
|
|
16
|
+
const switchCss = "@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}.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}.bcm-switch{display:inline-flex;user-select:none;flex-direction:column;margin-bottom:8px}.bcm-switch__container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px}.bcm-switch__container--left,.bcm-switch__container--right{align-items:center}.bcm-switch__container--left .bcm-label__text,.bcm-switch__container--right .bcm-label__text{margin:0}.bcm-switch__container--left{flex-direction:row}.bcm-switch__container--left .bcm-label__text{margin-right:4px}.bcm-switch__container--right{flex-direction:row-reverse}.bcm-switch__container--right .bcm-label__text{margin-left:4px}.bcm-switch:focus-visible{outline:none}.bcm-switch:focus-visible .bcm-switch__toggle{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-switch:focus-visible .bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch:hover{outline:none}.bcm-switch:hover .bcm-switch__toggle .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch:hover .bcm-switch__toggle.switch-checked .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch *{box-sizing:border-box}.bcm-switch.hidden{display:none}.bcm-switch input{display:none}.bcm-switch.disabled .bcm-switch__toggle{cursor:not-allowed;opacity:40%}.bcm-switch.readonly .bcm-switch__toggle{cursor:default;opacity:80%}.bcm-switch__label{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;align-items:center;margin:0}.bcm-switch__label .active-text{color:var(--bcm-new-ds-color-blue-500);margin:0 0 0 4px}.bcm-switch__label .inactive-text{color:var(--bcm-new-ds-color-slate-500);margin:0 4px 0 0}.bcm-switch__toggle{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-new-ds-color-slate-300);position:relative;cursor:pointer}.bcm-switch__toggle .handle{padding:1px;position:absolute;background-color:var(--bcm-new-ds-color-slate-50);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:left 0.2s ease-in-out, width 0.2s ease-in-out;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-switch__toggle .icon-active{opacity:0;margin-left:2px}.bcm-switch__toggle .icon-inactive{opacity:1;margin-right:2px}.bcm-switch__toggle.bcm-switch__size-small{width:32px;min-width:32px;height:16px;padding:4px}.bcm-switch__toggle.bcm-switch__size-small .handle{width:12px;height:12px;left:2px}.bcm-switch__toggle.bcm-switch__size-small.switch-checked .handle{left:18px}.bcm-switch__toggle.bcm-switch__size-small:active:not(.disabled):not(.readonly) .handle{width:16px}.bcm-switch__toggle.bcm-switch__size-small:active.switch-checked:not(.disabled):not(.readonly) .handle{left:12px}.bcm-switch__toggle.bcm-switch__size-small .switch-spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-medium{width:36px;min-width:36px;height:18px;padding:4px}.bcm-switch__toggle.bcm-switch__size-medium .handle{width:14px;height:14px;left:2px}.bcm-switch__toggle.bcm-switch__size-medium.switch-checked .handle{left:20px}.bcm-switch__toggle.bcm-switch__size-medium:active:not(.disabled):not(.readonly) .handle{width:18px}.bcm-switch__toggle.bcm-switch__size-medium:active.switch-checked:not(.disabled):not(.readonly) .handle{left:14px}.bcm-switch__toggle.bcm-switch__size-medium .switch-spinner{box-sizing:border-box;display:inline-flex;width:11px;height:11px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-large{width:40px;min-width:40px;height:20px;padding:4px}.bcm-switch__toggle.bcm-switch__size-large .handle{width:16px;height:16px;left:2px}.bcm-switch__toggle.bcm-switch__size-large.switch-checked .handle{left:22px}.bcm-switch__toggle.bcm-switch__size-large:active:not(.disabled):not(.readonly) .handle{width:20px}.bcm-switch__toggle.bcm-switch__size-large:active.switch-checked:not(.disabled):not(.readonly) .handle{left:16px}.bcm-switch__toggle.bcm-switch__size-large .switch-spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-500)}.bcm-switch__toggle.switch-checked .icon-active{color:var(--bcm-new-ds-color-slate-100);opacity:1}.bcm-switch__toggle.switch-checked .icon-inactive{opacity:0}.bcm-switch__toggle.switch-checked .switch-spinner{border-top-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch__size-small .bcm-switch__label,.bcm-switch__size-small .bcm-label__text{font-size:12px}.bcm-switch__size-small .bcm-switch__toggle{font-size:8px}.bcm-switch__size-medium .bcm-switch__label,.bcm-switch__size-medium .bcm-label__text{font-size:13px}.bcm-switch__size-medium .bcm-switch__toggle{font-size:9px}.bcm-switch__size-large .bcm-switch__label,.bcm-switch__size-large .bcm-label__text{font-size:16px}.bcm-switch__size-large .bcm-switch__toggle{font-size:12px}@keyframes switch-spinner{to{transform:rotate(360deg)}}";
|
|
17
17
|
|
|
18
18
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -52,7 +52,7 @@ var Types;
|
|
|
52
52
|
Types["time"] = "time";
|
|
53
53
|
})(Types || (Types = {}));
|
|
54
54
|
|
|
55
|
-
const datetimePickerCss = "@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}.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}:host{display:inline-flex;flex-direction:column;position:relative;width:100%;max-width:256px;margin:0;margin-bottom:8px}:host(.full-width){max-width:100%}:host(.no-margin){margin:0}:host(.hidden){display:none}:host(.linked-component){display:none}.toggle{cursor:pointer}.toggle.disabled{cursor:not-allowed}.modules{display:flex}.picker-label{user-select:none;line-height:1}.datetime-picker{position:absolute;top:-1000px;display:inline-flex;flex-direction:column;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px);background-color:#ffffff;min-height:356px;max-height:356px;box-sizing:border-box;z-index:-1000}.datetime-picker.alignment-left{left:0}.datetime-picker.alignment-right{right:0}.datetime-picker.open{top:calc(100% - 28px);z-index:10000;opacity:1;visibility:visible;transform:scale(1) translateY(0)}.datetime-picker.open.no-caption{top:100%}.actions{display:flex;align-items:center;justify-content:space-between;padding:8px;margin-top:auto;border-top:1px solid var(--bcm-color-grey-6)}.actions .current-date{font-size:14px;line-height:22px;color:var(--bcm-color-prime-blue-6);text-transform:capitalize}.date-container+.time-container{border-left:1px solid #cecece}.time-container{width:185px}.time-container .bcm-datetime-picker__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;max-height:60px;border-bottom:1px solid var(--bcm-color-grey-4)}.time-container .bcm-datetime-picker__header .now{font-size:14px;line-height:22px;cursor:pointer;color:var(--bcm-color-prime-blue-6);user-select:none}.time-container .bcm-datetime-picker__content{position:relative;display:flex}.time-container .hours,.time-container .minutes,.time-container .time-period{position:relative;flex:1 1 100%;max-width:100%;height:280px;overflow:hidden}.time-container .hours .items>span,.time-container .minutes .items>span,.time-container .time-period .items>span{font-size:14px;color:var(--bcm-color-grey-8)}.time-container .hours .items>span.selected,.time-container .minutes .items>span.selected,.time-container .time-period .items>span.selected{color:var(--bcm-color-prime-blue-6)}.date-container{width:364px;}.date-container .bcm-datetime-picker__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;max-height:60px;border-bottom:1px solid var(--bcm-color-grey-4)}.date-container .bcm-datetime-picker__header .month-year-wrapper{display:flex;align-items:center;justify-content:center;margin:0 4px;min-width:125px}.date-container .bcm-datetime-picker__header .month-year{font-size:16px;line-height:24px}.date-container .bcm-datetime-picker__header .month-year{display:flex;align-items:center}.date-container .bcm-datetime-picker__header .month-year button{display:flex;align-items:center;box-shadow:none;background:transparent;outline:none;appearance:none;border:none;color:var(--bcm-color-prime-blue-6);cursor:pointer}.date-container .bcm-datetime-picker__header .month{text-transform:capitalize}.date-container .bcm-datetime-picker__header .year{padding-left:4px}.date-container .bcm-datetime-picker__header .today{font-size:14px;line-height:22px;cursor:pointer;color:var(--bcm-color-prime-blue-6);user-select:none}.date-container .bcm-datetime-picker__content{display:flex}.date-container .years{position:relative;flex:0 0 70px;max-width:70px;height:280px;overflow:hidden;background-color:var(--bcm-color-grey-2)}.date-container .days{width:100%}.date-container .day-numbers,.date-container .day-labels{display:grid;grid-template-columns:repeat(7, 1fr)}.date-container .day-numbers{padding:24px 24px}.date-container .day-numbers>span,.date-container .day-labels span{text-align:center}.date-container .day-numbers>span{position:relative;padding-bottom:100%;cursor:pointer}.date-container .day-numbers>span.not-this-month{color:var(--bcm-color-grey-4)}.date-container .day-numbers>span.is-weekend{color:var(--bcm-color-prime-blue-3)}.date-container .day-numbers>span.is-disabled-date:not(.today){color:var(--bcm-color-grey-4);cursor:not-allowed}.date-container .day-numbers>span.is-disabled-date:not(.today):before{opacity:0 !important}.date-container .day-numbers>span.today{color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.today:before{opacity:1;background-color:var(--bcm-color-prime-blue-2);border:1px solid var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.selected-start{background:linear-gradient(90deg, white 50%, #8abde2 50%) !important}.date-container .day-numbers>span.selected-end{background:linear-gradient(90deg, #8abde2 50%, white 50%) !important}.date-container .day-numbers>span.range{background:#8abde2}.date-container .day-numbers>span.range:not(.today){color:#ffffff}.date-container .day-numbers>span.range:not(.today):before{background-color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.range.is-weekend:not(.today){color:var(--bcm-color-prime-blue-2)}.date-container .day-numbers>span.selected,.date-container .day-numbers>span.selected-end{color:#ffffff}.date-container .day-numbers>span.selected:before,.date-container .day-numbers>span.selected-end:before{opacity:1;background-color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers.start-1>span:first-child{grid-column:1}.date-container .day-numbers.start-2>span:first-child{grid-column:2}.date-container .day-numbers.start-3>span:first-child{grid-column:3}.date-container .day-numbers.start-4>span:first-child{grid-column:4}.date-container .day-numbers.start-5>span:first-child{grid-column:5}.date-container .day-numbers.start-6>span:first-child{grid-column:6}.date-container .day-numbers.start-7>span:first-child{grid-column:7}.date-container .day-numbers>span:before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background-color:var(--bcm-color-grey-4);opacity:0;box-sizing:border-box}.date-container .day-numbers>span:hover.not-this-month:not(.is-weekend){color:var(--bcm-color-grey-6)}.date-container .day-numbers>span:hover:before{opacity:1}.date-container .day-numbers .number{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.date-container .day-labels{padding:24px 40px 0 40px}.date-container .day-labels span{font-size:12px;color:var(--bcm-color-grey-6)}.date-container .day-labels span:nth-child(7n+6),.date-container .day-labels span:nth-child(7n+7){color:var(--bcm-color-prime-blue-3)}.years .items,.hours .items,.minutes .items,.time-period .items{position:relative;display:flex;flex-direction:column;z-index:0;transform:translateY(0);scroll-behavior:smooth}.years .items>span,.hours .items>span,.minutes .items>span,.time-period .items>span{text-align:center;font-size:12px;min-height:26px;max-height:26px;line-height:26px;color:var(--bcm-color-grey-8);user-select:none}.years:before,.years:after,.hours:before,.hours:after,.minutes:before,.minutes:after,.time-period:before,.time-period:after{content:\"\";position:absolute;left:0;width:100%;height:40px}.years:before,.hours:before,.minutes:before,.time-period:before{top:-40px;box-shadow:0 10px 100px 70px #ffffff;z-index:1}.years:after,.hours:after,.minutes:after,.time-period:after{bottom:-40px;box-shadow:0 -10px 100px 70px #ffffff;z-index:2}.select-strip{position:absolute;width:100%;top:50%;left:0;transform:translateY(-50%);min-height:26px;max-height:26px;border:1px solid var(--bcm-color-grey-5);border-left:0;border-right:0;pointer-events:none;box-sizing:border-box}.picker-input-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:stretch}";
|
|
55
|
+
const datetimePickerCss = "@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}.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}:host{display:inline-flex;flex-direction:column;position:relative;width:100%;max-width:256px;margin:0;margin-bottom:8px}:host(.full-width){max-width:100%}:host(.no-margin){margin:0}:host(.hidden){display:none}:host(.linked-component){display:none}.toggle{cursor:pointer}.toggle.disabled{cursor:not-allowed}.modules{display:flex}.picker-label{user-select:none;line-height:1}.datetime-picker{position:absolute;top:-1000px;display:inline-flex;flex-direction:column;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px);background-color:#ffffff;min-height:356px;max-height:356px;box-sizing:border-box;z-index:-1000}.datetime-picker.alignment-left{left:0}.datetime-picker.alignment-right{right:0}.datetime-picker.open{top:calc(100% - 28px);z-index:10000;opacity:1;visibility:visible;transform:scale(1) translateY(0)}.datetime-picker.open.no-caption{top:100%}.actions{display:flex;align-items:center;justify-content:space-between;padding:8px;margin-top:auto;border-top:1px solid var(--bcm-color-grey-6)}.actions .current-date{font-size:14px;line-height:22px;color:var(--bcm-color-prime-blue-6);text-transform:capitalize}.date-container+.time-container{border-left:1px solid #cecece}.time-container{width:185px}.time-container .bcm-datetime-picker__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;max-height:60px;border-bottom:1px solid var(--bcm-color-grey-4)}.time-container .bcm-datetime-picker__header .now{font-size:14px;line-height:22px;cursor:pointer;color:var(--bcm-color-prime-blue-6);user-select:none}.time-container .bcm-datetime-picker__content{position:relative;display:flex}.time-container .hours,.time-container .minutes,.time-container .time-period{position:relative;flex:1 1 100%;max-width:100%;height:280px;overflow:hidden}.time-container .hours .items>span,.time-container .minutes .items>span,.time-container .time-period .items>span{font-size:14px;color:var(--bcm-color-grey-8)}.time-container .hours .items>span.selected,.time-container .minutes .items>span.selected,.time-container .time-period .items>span.selected{color:var(--bcm-color-prime-blue-6)}.date-container{width:364px;}.date-container .bcm-datetime-picker__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;max-height:60px;border-bottom:1px solid var(--bcm-color-grey-4)}.date-container .bcm-datetime-picker__header .month-year-wrapper{display:flex;align-items:center;justify-content:center;margin:0 4px;min-width:125px}.date-container .bcm-datetime-picker__header .month-year{font-size:16px;line-height:24px}.date-container .bcm-datetime-picker__header .month-year{display:flex;align-items:center}.date-container .bcm-datetime-picker__header .month-year button{display:flex;align-items:center;box-shadow:none;background:transparent;outline:none;appearance:none;border:none;color:var(--bcm-color-prime-blue-6);cursor:pointer}.date-container .bcm-datetime-picker__header .month{text-transform:capitalize}.date-container .bcm-datetime-picker__header .year{padding-left:4px}.date-container .bcm-datetime-picker__header .today{font-size:14px;line-height:22px;cursor:pointer;color:var(--bcm-color-prime-blue-6);user-select:none}.date-container .bcm-datetime-picker__content{display:flex}.date-container .years{position:relative;flex:0 0 70px;max-width:70px;height:280px;overflow:hidden;background-color:var(--bcm-color-grey-2)}.date-container .days{width:100%}.date-container .day-numbers,.date-container .day-labels{display:grid;grid-template-columns:repeat(7, 1fr)}.date-container .day-numbers{padding:24px 24px}.date-container .day-numbers>span,.date-container .day-labels span{text-align:center}.date-container .day-numbers>span{position:relative;padding-bottom:100%;cursor:pointer}.date-container .day-numbers>span.not-this-month{color:var(--bcm-color-grey-4)}.date-container .day-numbers>span.is-weekend{color:var(--bcm-color-prime-blue-3)}.date-container .day-numbers>span.is-disabled-date:not(.today){color:var(--bcm-color-grey-4);cursor:not-allowed}.date-container .day-numbers>span.is-disabled-date:not(.today):before{opacity:0 !important}.date-container .day-numbers>span.today{color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.today:before{opacity:1;background-color:var(--bcm-color-prime-blue-2);border:1px solid var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.selected-start{background:linear-gradient(90deg, white 50%, #8abde2 50%) !important}.date-container .day-numbers>span.selected-end{background:linear-gradient(90deg, #8abde2 50%, white 50%) !important}.date-container .day-numbers>span.range{background:#8abde2}.date-container .day-numbers>span.range:not(.today){color:#ffffff}.date-container .day-numbers>span.range:not(.today):before{background-color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.range.is-weekend:not(.today){color:var(--bcm-color-prime-blue-2)}.date-container .day-numbers>span.selected,.date-container .day-numbers>span.selected-end{color:#ffffff}.date-container .day-numbers>span.selected:before,.date-container .day-numbers>span.selected-end:before{opacity:1;background-color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers.start-1>span:first-child{grid-column:1}.date-container .day-numbers.start-2>span:first-child{grid-column:2}.date-container .day-numbers.start-3>span:first-child{grid-column:3}.date-container .day-numbers.start-4>span:first-child{grid-column:4}.date-container .day-numbers.start-5>span:first-child{grid-column:5}.date-container .day-numbers.start-6>span:first-child{grid-column:6}.date-container .day-numbers.start-7>span:first-child{grid-column:7}.date-container .day-numbers>span:before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background-color:var(--bcm-color-grey-4);opacity:0;box-sizing:border-box}.date-container .day-numbers>span:hover.not-this-month:not(.is-weekend){color:var(--bcm-color-grey-6)}.date-container .day-numbers>span:hover:before{opacity:1}.date-container .day-numbers .number{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.date-container .day-labels{padding:24px 40px 0 40px}.date-container .day-labels span{font-size:12px;color:var(--bcm-color-grey-6)}.date-container .day-labels span:nth-child(7n+6),.date-container .day-labels span:nth-child(7n+7){color:var(--bcm-color-prime-blue-3)}.years .items,.hours .items,.minutes .items,.time-period .items{position:relative;display:flex;flex-direction:column;z-index:0;transform:translateY(0);scroll-behavior:smooth}.years .items>span,.hours .items>span,.minutes .items>span,.time-period .items>span{text-align:center;font-size:12px;min-height:26px;max-height:26px;line-height:26px;color:var(--bcm-color-grey-8);user-select:none}.years:before,.years:after,.hours:before,.hours:after,.minutes:before,.minutes:after,.time-period:before,.time-period:after{content:\"\";position:absolute;left:0;width:100%;height:40px}.years:before,.hours:before,.minutes:before,.time-period:before{top:-40px;box-shadow:0 10px 100px 70px #ffffff;z-index:1}.years:after,.hours:after,.minutes:after,.time-period:after{bottom:-40px;box-shadow:0 -10px 100px 70px #ffffff;z-index:2}.select-strip{position:absolute;width:100%;top:50%;left:0;transform:translateY(-50%);min-height:26px;max-height:26px;border:1px solid var(--bcm-color-grey-5);border-left:0;border-right:0;pointer-events:none;box-sizing:border-box}.bcm-label{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:4px;font-weight:500;color:#475569}.bcm-label.tw-text-1{font-size:10px;line-height:18px}.bcm-label.tw-text-2{font-size:12px;line-height:20px}.bcm-label.tw-text-3{font-size:14px;line-height:22px}.bcm-caption-area{color:#dc2626;font-weight:400;justify-content:space-between;align-items:flex-start;flex-direction:row;min-height:20px;display:flex;margin-top:4px;font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bcm-caption-area.tw-text-1{font-size:10px;line-height:18px}.bcm-caption-area.tw-text-2{font-size:12px;line-height:20px}.bcm-caption-area.tw-text-3{font-size:14px;line-height:22px}.picker-input-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:stretch}";
|
|
56
56
|
|
|
57
57
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
58
58
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Build } from '@stencil/core/internal/client';
|
|
6
6
|
import { c as colors } from './colors2.js';
|
|
7
7
|
|
|
8
|
-
const version = "2.10.1-rc.
|
|
8
|
+
const version = "2.10.1-rc.11";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 'status' prop predefined values
|
|
@@ -65,6 +65,15 @@ if (isAllowedDomain()) {
|
|
|
65
65
|
}
|
|
66
66
|
})();
|
|
67
67
|
class Generate {
|
|
68
|
+
static prettify(input) {
|
|
69
|
+
const prettifiedObject = {};
|
|
70
|
+
for (const key in input) {
|
|
71
|
+
if (input.hasOwnProperty(key)) {
|
|
72
|
+
prettifiedObject[key] = input[key];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return prettifiedObject;
|
|
76
|
+
}
|
|
68
77
|
/**
|
|
69
78
|
const dc = Generate.getTwColor({
|
|
70
79
|
color: "blue",
|
|
@@ -142,6 +151,11 @@ Generate.getIconAttrWithStatusType = (status, loading = false) => {
|
|
|
142
151
|
return { icon: "far fa-check-circle" };
|
|
143
152
|
}
|
|
144
153
|
};
|
|
154
|
+
Generate.domParser = (html) => {
|
|
155
|
+
const parser = new DOMParser();
|
|
156
|
+
const doc = parser.parseFromString(html, "text/html");
|
|
157
|
+
return doc.body.innerText;
|
|
158
|
+
};
|
|
145
159
|
Generate.createComponent = (el, props, area = "append-area") => {
|
|
146
160
|
let container = area ? document.querySelector(area) : document.body;
|
|
147
161
|
if (area && !container) {
|
|
@@ -55,6 +55,7 @@ export { BcmModal2 as BcmModal2 } from '../types/components/other/modal-2/modal-
|
|
|
55
55
|
export { BcmModal2Footer as BcmModal2Footer } from '../types/components/other/modal-2/modal-2-footer';
|
|
56
56
|
export { BcmModal2Header as BcmModal2Header } from '../types/components/other/modal-2/modal-2-header';
|
|
57
57
|
export { BcmNotification as BcmNotification } from '../types/components/molecules/notification/notification';
|
|
58
|
+
export { NumberInput as BcmNumberInput } from '../types/components/molecules/number-input/number-input';
|
|
58
59
|
export { BcmOldInput as BcmOldInput } from '../types/components/other_deprecated/old-input/old-input';
|
|
59
60
|
export { BcmOldSearch as BcmOldSearch } from '../types/components/other_deprecated/old-search/old-search';
|
|
60
61
|
export { BcmOldTag as BcmOldTag } from '../types/components/other_deprecated/old-tag/old-tag';
|
package/dist/components/index.js
CHANGED
|
@@ -63,6 +63,7 @@ export { BcmModal2, defineCustomElement as defineCustomElementBcmModal2 } from '
|
|
|
63
63
|
export { BcmModal2Footer, defineCustomElement as defineCustomElementBcmModal2Footer } from './bcm-modal-2-footer.js';
|
|
64
64
|
export { BcmModal2Header, defineCustomElement as defineCustomElementBcmModal2Header } from './bcm-modal-2-header.js';
|
|
65
65
|
export { BcmNotification, defineCustomElement as defineCustomElementBcmNotification } from './bcm-notification.js';
|
|
66
|
+
export { BcmNumberInput, defineCustomElement as defineCustomElementBcmNumberInput } from './bcm-number-input.js';
|
|
66
67
|
export { BcmOldInput, defineCustomElement as defineCustomElementBcmOldInput } from './bcm-old-input.js';
|
|
67
68
|
export { BcmOldSearch, defineCustomElement as defineCustomElementBcmOldSearch } from './bcm-old-search.js';
|
|
68
69
|
export { BcmOldTag, defineCustomElement as defineCustomElementBcmOldTag } from './bcm-old-tag.js';
|
package/dist/components/label.js
CHANGED
|
@@ -10,17 +10,20 @@ import { c as classnames } from './index2.js';
|
|
|
10
10
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
11
11
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
12
12
|
|
|
13
|
-
const LabelTemplate = ({ required, value, size, form, htmlFor, type }) => {
|
|
13
|
+
const LabelTemplate = ({ required, value, size, form, htmlFor, type, tooltip }) => {
|
|
14
14
|
size = size || "medium";
|
|
15
15
|
type = type || Bcm.Status.default;
|
|
16
|
-
return (h("label", { form: form, htmlFor: htmlFor, class: classnames("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-text-slate-600
|
|
16
|
+
return (h("label", { form: form, htmlFor: htmlFor, class: classnames("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-font-medium tw-text-slate-600 ", {
|
|
17
17
|
"tw-text-1": size == "small",
|
|
18
18
|
"tw-text-2": size == "medium",
|
|
19
19
|
"tw-text-3": size == "large",
|
|
20
20
|
}) },
|
|
21
21
|
value,
|
|
22
22
|
" ",
|
|
23
|
-
required &&
|
|
23
|
+
required && "*",
|
|
24
|
+
tooltip && (h("span", { class: "tw-ml-1" },
|
|
25
|
+
h("bcm-tooltip", { message: tooltip, placement: "top", trigger: "hover" },
|
|
26
|
+
h("bcm-icon", { icon: "fas fa-info-circle" }))))));
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -50,7 +53,7 @@ const BcmLabel = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
50
53
|
}
|
|
51
54
|
render() {
|
|
52
55
|
const { required, value, label, size, form, htmlFor, type, tooltip } = this;
|
|
53
|
-
return (h(Host, { class: "tw-inline-
|
|
56
|
+
return (h(Host, { class: "tw-inline-block tw-leading-none" }, h(LabelTemplate, { form: form, htmlFor: htmlFor, value: value || label, size: size, type: type, required: required, tooltip: tooltip })));
|
|
54
57
|
}
|
|
55
58
|
get el() { return this; }
|
|
56
59
|
}, [0, "bcm-label", {
|