bromcom-ui 2.9.0-rc.10 → 2.9.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/global/global.js +1 -1
- package/dist/bromcom-ui/{p-d2ff474a.entry.js → p-02fc6c76.entry.js} +1 -1
- package/dist/bromcom-ui/p-08c75801.js +5 -0
- package/dist/bromcom-ui/{p-2b3610b4.entry.js → p-0bc35a82.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6a7c6ef2.entry.js → p-0d0fc47b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-535eae03.entry.js → p-13070661.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c537f73b.entry.js → p-1ad5b7dd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-30b43b3a.entry.js → p-1fc491fc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fd03e308.entry.js → p-203c8e37.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5559362d.entry.js → p-20422d81.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2e506b7c.entry.js → p-23a805b2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-280736e0.entry.js → p-26da70f2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d9f26a59.entry.js → p-29722bff.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2baa0a6b.entry.js → p-3a83e2ed.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f3424c60.entry.js → p-3c2db0c1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2e080bdf.entry.js → p-3d983699.entry.js} +1 -1
- package/dist/bromcom-ui/p-416f6233.entry.js +5 -0
- package/dist/bromcom-ui/{p-e1689f47.js → p-43a16ce4.js} +1 -1
- package/dist/bromcom-ui/{p-5caf6360.js → p-44407faa.js} +1 -1
- package/dist/bromcom-ui/{p-2c43873c.entry.js → p-4772e438.entry.js} +1 -1
- package/dist/bromcom-ui/p-49f37d54.js +5 -0
- package/dist/bromcom-ui/{p-48b925ad.js → p-509cfa99.js} +1 -1
- package/dist/bromcom-ui/p-55931686.entry.js +5 -0
- package/dist/bromcom-ui/{p-53d6a137.entry.js → p-5c27d09b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1df4d111.entry.js → p-5f11b62c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-412732f4.js → p-64096fe2.js} +1 -1
- package/dist/bromcom-ui/{p-fe83aac0.entry.js → p-6abc4fdf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b94d494.js → p-6b60a4d3.js} +1 -1
- package/dist/bromcom-ui/{p-2d2ff5fc.entry.js → p-6c878da5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2d4a0a66.entry.js → p-6e592196.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b1613d12.entry.js → p-70994ba0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e4bc863b.entry.js → p-78e70a44.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2f4c8c67.entry.js → p-7e10f626.entry.js} +1 -1
- package/dist/bromcom-ui/p-8507df31.js +5 -0
- package/dist/bromcom-ui/p-8abe303b.entry.js +5 -0
- package/dist/bromcom-ui/{p-cff8ef93.js → p-91246af3.js} +1 -1
- package/dist/bromcom-ui/{p-a54a47ed.entry.js → p-94a9bd14.entry.js} +1 -1
- package/dist/bromcom-ui/p-965703ec.entry.js +5 -0
- package/dist/bromcom-ui/{p-1c17fbd6.entry.js → p-98afbb62.entry.js} +1 -1
- package/dist/bromcom-ui/{p-edcc8c69.entry.js → p-9a21398e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-52c6d2e5.entry.js → p-9d911ba3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cea71a01.entry.js → p-a2ab6adb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-37c48622.entry.js → p-a31e475a.entry.js} +1 -1
- package/dist/bromcom-ui/p-a799b910.entry.js +5 -0
- package/dist/bromcom-ui/{p-2f81dd36.entry.js → p-a7a5da82.entry.js} +1 -1
- package/dist/bromcom-ui/p-a81644d6.entry.js +5 -0
- package/dist/bromcom-ui/{p-cca6e9c5.js → p-a89cff9b.js} +1 -1
- package/dist/bromcom-ui/p-a9eb0321.js +315 -0
- package/dist/bromcom-ui/p-ab53fd56.entry.js +5 -0
- package/dist/bromcom-ui/{p-167e1654.js → p-ab7bd6e1.js} +1 -1
- package/dist/bromcom-ui/{p-f521cbb4.entry.js → p-ac385400.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1286e447.entry.js → p-aedc59f3.entry.js} +1 -1
- package/dist/bromcom-ui/p-b9cfa2c6.entry.js +5 -0
- package/dist/bromcom-ui/{p-e304d0f8.entry.js → p-bcef2201.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9dec497d.entry.js → p-c0a62a71.entry.js} +1 -1
- package/dist/bromcom-ui/{p-74dc0103.entry.js → p-c9212343.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e0271c48.entry.js → p-cb3bc0f4.entry.js} +1 -1
- package/dist/bromcom-ui/p-d3d07c8c.js +5 -0
- package/dist/bromcom-ui/{p-21cd7ad3.entry.js → p-d57f3587.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9c6f8cf6.entry.js → p-d61af652.entry.js} +1 -1
- package/dist/bromcom-ui/{p-778529e9.entry.js → p-e6f888b3.entry.js} +1 -1
- package/dist/bromcom-ui/p-e7cbc79a.js +5 -0
- package/dist/bromcom-ui/{p-d479398d.entry.js → p-eb279a80.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b96dbbf.entry.js → p-ebe49b26.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4fc0c9db.entry.js → p-eefcd035.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b426546b.js → p-f394a316.js} +1 -1
- package/dist/bromcom-ui/{p-af4c2c90.entry.js → p-f4634124.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6909817b.entry.js → p-f533a1b5.entry.js} +1 -1
- package/dist/bromcom-ui/p-fa9e6264.entry.js +5 -0
- package/dist/bromcom-ui/{p-0e99fd08.entry.js → p-faad6962.entry.js} +1 -1
- package/dist/bromcom-ui/{p-42616ae0.entry.js → p-fb36ab9c.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +17 -2580
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +3 -3
- package/dist/cjs/{bcm-button_8.cjs.entry.js → bcm-button_9.cjs.entry.js} +338 -137
- package/dist/cjs/bcm-card.cjs.entry.js +4 -4
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-chip-group.cjs.entry.js +7 -7
- 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 +5 -5
- package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -4
- package/dist/cjs/bcm-date.cjs.entry.js +7 -7
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +10 -8
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +5 -5
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -3
- package/dist/cjs/bcm-form-2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-form.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +3 -3
- package/dist/cjs/bcm-list_3.cjs.entry.js +14 -13
- package/dist/cjs/bcm-menu.cjs.entry.js +6 -6
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-radio.cjs.entry.js +5 -5
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-select.cjs.entry.js +1 -1
- package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +6 -6
- package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab-group.cjs.entry.js +5 -5
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +5 -5
- package/dist/cjs/bcm-tab-item.cjs.entry.js +5 -5
- package/dist/cjs/bcm-table.cjs.entry.js +7421 -8
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-text.cjs.entry.js +2 -2
- package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -4
- package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
- package/dist/cjs/bromcom-ui.cjs.js +4 -4
- package/dist/cjs/{generate-225c30c9.js → generate-4911eaae.js} +1 -1
- package/dist/cjs/{global-d30014b0.js → global-efef2bd1.js} +3 -3
- package/dist/cjs/index-5279dea2.js +2571 -0
- package/dist/cjs/{input-template-27576361.js → input-template-11d547bd.js} +1 -1
- package/dist/cjs/{json-parse-decarator-c7dda47d.js → json-parse-decarator-fdcd20df.js} +1 -1
- package/dist/cjs/{label-template-8d34230f.js → label-template-15c3c0ed.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{number-helper-2b3bd61e.js → number-helper-72d5f146.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +5 -5
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-e7a4d8ef.js → package-70273fae.js} +1 -1
- package/dist/cjs/{popover-placement-86ece590.js → popover-placement-8866eab1.js} +1 -1
- package/dist/cjs/{slot-template-758beb71.js → slot-template-de6a91b1.js} +1 -1
- package/dist/cjs/{stepper-states-b56fbad9.js → stepper-states-56e660a4.js} +1 -1
- package/dist/cjs/{string-helper-b89a9828.js → string-helper-9b392049.js} +2 -2
- package/dist/cjs/{tooltip-helper-85b4c726.js → tooltip-helper-3b8b977f.js} +4 -4
- package/dist/cjs/{validators-9e7f7995.js → validators-c43fa1d0.js} +1 -1
- package/dist/cjs/watermark-2c23c8f1.js +47499 -0
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +9 -2
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +200 -149
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
- package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
- package/dist/collection/components/organism/list/list.css +1 -1
- package/dist/collection/components/organism/list/list.js +21 -2
- package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
- package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
- package/dist/collection/components/third-parts/table/table.css +1 -7034
- package/dist/collection/components/third-parts/table/table.js +6 -2
- package/dist/collection/decorators/event-decorator.js +31 -0
- package/dist/collection/decorators/index.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/helper/string-helper.js +2 -2
- package/dist/components/avatar.js +2 -1
- package/dist/components/badge.js +2 -2565
- package/dist/components/bcm-date-picker.js +4 -2
- package/dist/components/bcm-input-dropdown.js +214 -149
- package/dist/components/bcm-table.js +8436 -65181
- package/dist/components/bcm-textarea.js +1 -214
- package/dist/components/bcm-time-picker.js +4 -2
- package/dist/components/datetime-picker.js +5 -2
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index5.js +2569 -0
- package/dist/components/list.js +5 -3
- package/dist/components/string-helper.js +2 -2
- package/dist/{esm/bcm-textarea.entry.js → components/textarea.js} +80 -19
- package/dist/esm/bcm-accordion.entry.js +2 -2
- package/dist/esm/bcm-alert.entry.js +3 -3
- package/dist/esm/bcm-attendance.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +6 -2569
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +3 -3
- package/dist/esm/{bcm-button_8.entry.js → bcm-button_9.entry.js} +339 -139
- package/dist/esm/bcm-card.entry.js +4 -4
- package/dist/esm/bcm-checkbox-group.entry.js +5 -5
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
- package/dist/esm/bcm-checkbox_2.entry.js +4 -4
- package/dist/esm/bcm-chip-group.entry.js +7 -7
- 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 +5 -5
- package/dist/esm/bcm-date-picker.entry.js +5 -4
- package/dist/esm/bcm-date.entry.js +7 -7
- package/dist/esm/bcm-datetime-picker.entry.js +10 -8
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +5 -5
- package/dist/esm/bcm-dropdown.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +3 -3
- package/dist/esm/bcm-form-2.entry.js +3 -3
- package/dist/esm/bcm-form.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-item.entry.js +2 -2
- package/dist/esm/bcm-items.entry.js +3 -3
- package/dist/esm/bcm-list_3.entry.js +14 -13
- package/dist/esm/bcm-menu.entry.js +6 -6
- package/dist/esm/bcm-modal-2-footer.entry.js +5 -5
- package/dist/esm/bcm-modal-2-header.entry.js +5 -5
- package/dist/esm/bcm-modal-2.entry.js +5 -5
- package/dist/esm/bcm-modal.entry.js +4 -4
- package/dist/esm/bcm-popconfirm-box.entry.js +4 -4
- package/dist/esm/bcm-popconfirm.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +5 -5
- package/dist/esm/bcm-progress.entry.js +2 -2
- package/dist/esm/bcm-radio-group.entry.js +5 -5
- package/dist/esm/bcm-radio.entry.js +5 -5
- package/dist/esm/bcm-range.entry.js +2 -2
- package/dist/esm/bcm-select.entry.js +1 -1
- package/dist/esm/bcm-skeleton.entry.js +2 -2
- package/dist/esm/bcm-step.entry.js +3 -3
- package/dist/esm/bcm-stepper.entry.js +6 -6
- package/dist/esm/bcm-switch.entry.js +2 -2
- package/dist/esm/bcm-tab-group.entry.js +5 -5
- package/dist/esm/bcm-tab-item-header.entry.js +5 -5
- package/dist/esm/bcm-tab-item.entry.js +5 -5
- package/dist/esm/bcm-table.entry.js +7420 -7
- package/dist/esm/bcm-tag.entry.js +3 -3
- package/dist/esm/bcm-text.entry.js +2 -2
- package/dist/esm/bcm-time-picker.entry.js +5 -4
- package/dist/esm/bcm-toast.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +4 -4
- package/dist/esm/{generate-93b8bdf9.js → generate-c890c880.js} +1 -1
- package/dist/esm/{global-d82f2bc7.js → global-80f07324.js} +2 -2
- package/dist/esm/index-3bc8c6e3.js +2569 -0
- package/dist/esm/{input-template-f7c67bc9.js → input-template-7f96e7e6.js} +1 -1
- package/dist/esm/{json-parse-decarator-1e5367cd.js → json-parse-decarator-2c6f525f.js} +1 -1
- package/dist/esm/{label-template-f156f33f.js → label-template-62e49c38.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{number-helper-ff29314e.js → number-helper-1ae23de5.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +5 -5
- package/dist/esm/old-bcm-popover.entry.js +2 -2
- package/dist/esm/{package-64966ec6.js → package-22f4a05f.js} +1 -1
- package/dist/esm/{popover-placement-018109c4.js → popover-placement-7cce412f.js} +1 -1
- package/dist/esm/{slot-template-46035685.js → slot-template-7447145d.js} +1 -1
- package/dist/esm/{stepper-states-7c75d904.js → stepper-states-46d8bf00.js} +1 -1
- package/dist/esm/{string-helper-4a28f775.js → string-helper-5ef67a66.js} +2 -2
- package/dist/esm/{tooltip-helper-6154996e.js → tooltip-helper-a72d4674.js} +4 -4
- package/dist/esm/{validators-2956054d.js → validators-0601fa22.js} +1 -1
- package/dist/esm/watermark-f2c6a1f9.js +47477 -0
- package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +25 -17
- package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
- package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
- package/dist/types/components/third-parts/table/table.d.ts +1 -1
- package/dist/types/components.d.ts +22 -8
- package/dist/types/decorators/event-decorator.d.ts +2 -0
- package/dist/types/decorators/index.d.ts +1 -1
- package/package.json +5 -3
- package/dist/bromcom-ui/p-0523863a.entry.js +0 -5
- package/dist/bromcom-ui/p-07ff085d.entry.js +0 -5
- package/dist/bromcom-ui/p-14c7e2a8.js +0 -297
- package/dist/bromcom-ui/p-2a9053d8.js +0 -5
- package/dist/bromcom-ui/p-30abd87e.entry.js +0 -5
- package/dist/bromcom-ui/p-324b9364.js +0 -5
- package/dist/bromcom-ui/p-5600c817.js +0 -5
- package/dist/bromcom-ui/p-637fb9e8.entry.js +0 -5
- package/dist/bromcom-ui/p-a1412b63.js +0 -5
- package/dist/bromcom-ui/p-dc97634a.entry.js +0 -5
- package/dist/bromcom-ui/p-dd65dec9.entry.js +0 -5
- package/dist/bromcom-ui/p-e3a66478.entry.js +0 -5
- package/dist/bromcom-ui/p-eed0258a.entry.js +0 -5
- package/dist/bromcom-ui/p-fd87349e.entry.js +0 -5
- package/dist/bromcom-ui/p-fd93d2a4.entry.js +0 -5
- package/dist/cjs/ag-grid-enterprise.auto.esm-cf48f6b2.js +0 -111638
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
- package/dist/esm/ag-grid-enterprise.auto.esm-9c29ba78.js +0 -111635
|
@@ -2,220 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import { c as classnames } from './index2.js';
|
|
7
|
-
import { I as IsLoad } from './is-load-decorator.js';
|
|
8
|
-
import { G as Generate } from './generate.js';
|
|
9
|
-
import { B as Bcm } from './bcm.js';
|
|
10
|
-
import { C as CaptionTemplate } from './caption-template.js';
|
|
11
|
-
import { I as InputTemplate } from './input-template.js';
|
|
12
|
-
import { d as delay } from './utils.js';
|
|
13
|
-
import { d as defineCustomElement$4 } from './icon.js';
|
|
14
|
-
import { d as defineCustomElement$3 } from './label.js';
|
|
15
|
-
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
16
|
-
|
|
17
|
-
var ResizeType;
|
|
18
|
-
(function (ResizeType) {
|
|
19
|
-
ResizeType["none"] = "none";
|
|
20
|
-
ResizeType["both"] = "both";
|
|
21
|
-
ResizeType["horizontal"] = "horizontal";
|
|
22
|
-
ResizeType["vertical"] = "vertical";
|
|
23
|
-
ResizeType["initial"] = "initial";
|
|
24
|
-
ResizeType["inherit"] = "inherit";
|
|
25
|
-
})(ResizeType || (ResizeType = {}));
|
|
26
|
-
|
|
27
|
-
const textareaCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
|
|
28
|
-
|
|
29
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
30
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
32
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
33
|
-
else
|
|
34
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
35
|
-
if (d = decorators[i])
|
|
36
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38
|
-
};
|
|
39
|
-
const BcmTextarea$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
40
|
-
constructor() {
|
|
41
|
-
super();
|
|
42
|
-
this.__registerHost();
|
|
43
|
-
this.focus = createEvent(this, "bcm-focus", 7);
|
|
44
|
-
this.blur = createEvent(this, "bcm-blur", 7);
|
|
45
|
-
this.clear = createEvent(this, "bcm-clear", 7);
|
|
46
|
-
this.change = createEvent(this, "bcm-change", 7);
|
|
47
|
-
this.input = createEvent(this, "bcm-input", 7);
|
|
48
|
-
this._id = Generate.UID();
|
|
49
|
-
this._internal_id = Generate.UID();
|
|
50
|
-
this.hidden = false;
|
|
51
|
-
this.value = undefined;
|
|
52
|
-
this.placeholder = undefined;
|
|
53
|
-
this.label = undefined;
|
|
54
|
-
this.name = undefined;
|
|
55
|
-
this.required = false;
|
|
56
|
-
this.caption = undefined;
|
|
57
|
-
this.noCaption = false;
|
|
58
|
-
this.captionError = undefined;
|
|
59
|
-
this.captionType = Bcm.Status.default;
|
|
60
|
-
this.rows = 3;
|
|
61
|
-
this.size = Bcm.Size.medium;
|
|
62
|
-
this.disabled = undefined;
|
|
63
|
-
this.readonly = false;
|
|
64
|
-
this.clearable = undefined;
|
|
65
|
-
this.resize = ResizeType.vertical;
|
|
66
|
-
this.fullWidth = false;
|
|
67
|
-
this.maxLength = undefined;
|
|
68
|
-
this.focused = false;
|
|
69
|
-
this.captionCache = undefined;
|
|
70
|
-
this.captionTypeCache = undefined;
|
|
71
|
-
}
|
|
72
|
-
connectedCallback() {
|
|
73
|
-
this.captionCache = this.caption;
|
|
74
|
-
this.captionTypeCache = this.captionType;
|
|
75
|
-
}
|
|
76
|
-
async onBcmFocus() {
|
|
77
|
-
this.textarea.focus();
|
|
78
|
-
}
|
|
79
|
-
async onBcmBlur() {
|
|
80
|
-
this.textarea.blur();
|
|
81
|
-
}
|
|
82
|
-
async onBcmSelect() {
|
|
83
|
-
this.textarea.select();
|
|
84
|
-
}
|
|
85
|
-
async set(data) {
|
|
86
|
-
await this.setValue(data);
|
|
87
|
-
}
|
|
88
|
-
async get() {
|
|
89
|
-
return this.value || null;
|
|
90
|
-
}
|
|
91
|
-
async setValue(value) {
|
|
92
|
-
this.textarea.value = value;
|
|
93
|
-
this.value = value;
|
|
94
|
-
this.handleChange();
|
|
95
|
-
return value;
|
|
96
|
-
}
|
|
97
|
-
async setClear() {
|
|
98
|
-
this.textarea.value = '';
|
|
99
|
-
this.value = '';
|
|
100
|
-
await delay(10);
|
|
101
|
-
return Promise.resolve();
|
|
102
|
-
}
|
|
103
|
-
async resetCaption() {
|
|
104
|
-
await delay(10);
|
|
105
|
-
this.caption = this.captionCache;
|
|
106
|
-
this.captionType = this.captionTypeCache;
|
|
107
|
-
this.captionError = null;
|
|
108
|
-
await delay(10);
|
|
109
|
-
return Promise.resolve();
|
|
110
|
-
}
|
|
111
|
-
async getValue() {
|
|
112
|
-
return this.value;
|
|
113
|
-
}
|
|
114
|
-
watchValue(newValue) {
|
|
115
|
-
this.textarea.value = newValue;
|
|
116
|
-
this.handleChange();
|
|
117
|
-
}
|
|
118
|
-
handleFocus() {
|
|
119
|
-
this.focused = true;
|
|
120
|
-
this.focus.emit();
|
|
121
|
-
}
|
|
122
|
-
handleBlur() {
|
|
123
|
-
this.focused = false;
|
|
124
|
-
this.blur.emit();
|
|
125
|
-
}
|
|
126
|
-
handleChange() {
|
|
127
|
-
this.value = this.textarea.value;
|
|
128
|
-
this.change.emit(this.value);
|
|
129
|
-
}
|
|
130
|
-
handleInput() {
|
|
131
|
-
this.value = this.textarea.value;
|
|
132
|
-
this.input.emit(this.value);
|
|
133
|
-
}
|
|
134
|
-
handleClear(e) {
|
|
135
|
-
this.textarea.value = '';
|
|
136
|
-
this.value = '';
|
|
137
|
-
this.clear.emit();
|
|
138
|
-
this.textarea.focus();
|
|
139
|
-
e.stopPropagation();
|
|
140
|
-
}
|
|
141
|
-
render() {
|
|
142
|
-
const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
|
|
143
|
-
const hostClasses = classnames('bcm-input', {
|
|
144
|
-
hidden,
|
|
145
|
-
'full-width': fullWidth,
|
|
146
|
-
});
|
|
147
|
-
return (h(Host, { class: hostClasses }, label && h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), h(InputTemplate, { elementType: Bcm.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
|
|
148
|
-
}
|
|
149
|
-
get el() { return this; }
|
|
150
|
-
static get watchers() { return {
|
|
151
|
-
"value": ["watchValue"]
|
|
152
|
-
}; }
|
|
153
|
-
static get style() { return textareaCss; }
|
|
154
|
-
}, [4, "bcm-textarea", {
|
|
155
|
-
"_id": [1537, "id"],
|
|
156
|
-
"_internal_id": [1025],
|
|
157
|
-
"hidden": [1028],
|
|
158
|
-
"value": [1025],
|
|
159
|
-
"placeholder": [1025],
|
|
160
|
-
"label": [1025],
|
|
161
|
-
"name": [1025],
|
|
162
|
-
"required": [1028],
|
|
163
|
-
"caption": [1025],
|
|
164
|
-
"noCaption": [1028, "no-caption"],
|
|
165
|
-
"captionError": [1025, "caption-error"],
|
|
166
|
-
"captionType": [1025, "caption-type"],
|
|
167
|
-
"rows": [1026],
|
|
168
|
-
"size": [1025],
|
|
169
|
-
"disabled": [1028],
|
|
170
|
-
"readonly": [1028],
|
|
171
|
-
"clearable": [1028],
|
|
172
|
-
"resize": [1032],
|
|
173
|
-
"fullWidth": [1028, "full-width"],
|
|
174
|
-
"maxLength": [1026, "max-length"],
|
|
175
|
-
"focused": [32],
|
|
176
|
-
"captionCache": [32],
|
|
177
|
-
"captionTypeCache": [32],
|
|
178
|
-
"onBcmFocus": [64],
|
|
179
|
-
"onBcmBlur": [64],
|
|
180
|
-
"onBcmSelect": [64],
|
|
181
|
-
"set": [64],
|
|
182
|
-
"get": [64],
|
|
183
|
-
"setValue": [64],
|
|
184
|
-
"setClear": [64],
|
|
185
|
-
"resetCaption": [64],
|
|
186
|
-
"getValue": [64]
|
|
187
|
-
}]);
|
|
188
|
-
__decorate([
|
|
189
|
-
IsLoad()
|
|
190
|
-
], BcmTextarea$1.prototype, "el", void 0);
|
|
191
|
-
function defineCustomElement$1() {
|
|
192
|
-
if (typeof customElements === "undefined") {
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
const components = ["bcm-textarea", "bcm-icon", "bcm-label", "bcm-tooltip"];
|
|
196
|
-
components.forEach(tagName => { switch (tagName) {
|
|
197
|
-
case "bcm-textarea":
|
|
198
|
-
if (!customElements.get(tagName)) {
|
|
199
|
-
customElements.define(tagName, BcmTextarea$1);
|
|
200
|
-
}
|
|
201
|
-
break;
|
|
202
|
-
case "bcm-icon":
|
|
203
|
-
if (!customElements.get(tagName)) {
|
|
204
|
-
defineCustomElement$4();
|
|
205
|
-
}
|
|
206
|
-
break;
|
|
207
|
-
case "bcm-label":
|
|
208
|
-
if (!customElements.get(tagName)) {
|
|
209
|
-
defineCustomElement$3();
|
|
210
|
-
}
|
|
211
|
-
break;
|
|
212
|
-
case "bcm-tooltip":
|
|
213
|
-
if (!customElements.get(tagName)) {
|
|
214
|
-
defineCustomElement$2();
|
|
215
|
-
}
|
|
216
|
-
break;
|
|
217
|
-
} });
|
|
218
|
-
}
|
|
5
|
+
import { B as BcmTextarea$1, d as defineCustomElement$1 } from './textarea.js';
|
|
219
6
|
|
|
220
7
|
const BcmTextarea = BcmTextarea$1;
|
|
221
8
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -14,7 +14,7 @@ import { d as defineCustomElement$4 } from './label.js';
|
|
|
14
14
|
import { d as defineCustomElement$3 } from './old-input.js';
|
|
15
15
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
16
16
|
|
|
17
|
-
const timePickerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-
|
|
17
|
+
const timePickerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
|
|
18
18
|
|
|
19
19
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20
20
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -41,6 +41,7 @@ const BcmTimePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
41
41
|
this.label = undefined;
|
|
42
42
|
this.placeholder = undefined;
|
|
43
43
|
this.disabled = false;
|
|
44
|
+
this.noMargin = false;
|
|
44
45
|
this.noCaption = false;
|
|
45
46
|
this.caption = '';
|
|
46
47
|
this.captionError = undefined;
|
|
@@ -137,7 +138,7 @@ const BcmTimePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
137
138
|
const hostClasses = classnames(this.hidden ? 'hidden' : null, {
|
|
138
139
|
'full-width': this.fullWidth
|
|
139
140
|
});
|
|
140
|
-
return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, fullWidth: this.fullWidth, required: this.required, label: this.label, name: this.name, placeholder: this.placeholder, type: "time", clearable: this.clearable, date: this.time, ref: el => (this.picker = el), disabled: this.disabled, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, captionError: this.captionError, caption: this.caption, captionType: this.captionType, alignment: this.alignment, placement: this.placement })));
|
|
141
|
+
return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, fullWidth: this.fullWidth, required: this.required, label: this.label, name: this.name, placeholder: this.placeholder, type: "time", clearable: this.clearable, date: this.time, ref: el => (this.picker = el), disabled: this.disabled, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, captionError: this.captionError, caption: this.caption, captionType: this.captionType, alignment: this.alignment, placement: this.placement, noMargin: this.noMargin })));
|
|
141
142
|
}
|
|
142
143
|
get el() { return this; }
|
|
143
144
|
static get style() { return timePickerCss; }
|
|
@@ -152,6 +153,7 @@ const BcmTimePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
152
153
|
"label": [1025],
|
|
153
154
|
"placeholder": [1025],
|
|
154
155
|
"disabled": [1028],
|
|
156
|
+
"noMargin": [1028, "no-margin"],
|
|
155
157
|
"noCaption": [1028, "no-caption"],
|
|
156
158
|
"caption": [1025],
|
|
157
159
|
"captionError": [1025, "caption-error"],
|
|
@@ -53,7 +53,7 @@ var Types;
|
|
|
53
53
|
Types["time"] = "time";
|
|
54
54
|
})(Types || (Types = {}));
|
|
55
55
|
|
|
56
|
-
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\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}:host{display:inline-block;position:relative;width:100%;max-width:256px;margin:0;margin-bottom:8px}:host(.full-width){max-width:100%}: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}";
|
|
56
|
+
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\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}: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}";
|
|
57
57
|
|
|
58
58
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
59
59
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -98,6 +98,7 @@ const BcmDatetimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
98
98
|
this.minYear = 1900;
|
|
99
99
|
this.maxYear = 2200;
|
|
100
100
|
this.noCaption = false;
|
|
101
|
+
this.noMargin = false;
|
|
101
102
|
this.captionError = undefined;
|
|
102
103
|
this.caption = '';
|
|
103
104
|
this.captionType = 'default';
|
|
@@ -1409,6 +1410,7 @@ const BcmDatetimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
1409
1410
|
const hostClasses = classnames(this.hidden ? 'hidden' : null, {
|
|
1410
1411
|
'full-width': this.fullWidth,
|
|
1411
1412
|
'linked-component': this.linkedComponent,
|
|
1413
|
+
'no-margin': this.noMargin,
|
|
1412
1414
|
});
|
|
1413
1415
|
const toggleClasses = classnames('toggle', {
|
|
1414
1416
|
disabled: this.disabled
|
|
@@ -1417,7 +1419,7 @@ const BcmDatetimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
1417
1419
|
const calendarIcon = `<svg style="fill: #595959; width: 14px; height: 14px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>`;
|
|
1418
1420
|
const errorIcon = `<svg style="fill: #ef4444; width: 14px; height: 14px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm42-104c0 23.2-18.8 42-42 42s-42-18.8-42-42 18.8-42 42-42 42 18.8 42 42zm-81.4-211.4l6.8 136c.3 6.4 5.6 11.4 12 11.4h41.2c6.4 0 11.7-5.1 12-11.4l6.8-136c.3-6.9-5.1-12.6-12-12.6h-54.8c-6.9 0-12.4 5.7-12 12.6z"/></svg>`;
|
|
1419
1421
|
const inputIcon = this.type == "time" ? clockIcon : calendarIcon;
|
|
1420
|
-
return (h(Host, { class: hostClasses, "bcm-internal-id": this.inputId }, this.label && (h("div", { class: "picker-label", onClick: () => this.openToggle() }, h(LabelTemplate, { size: "medium", type: this.captionType, value: this.label, required: this.required, htmlFor: this._id }))), h("bcm-old-input", { ref: el => (this.inputElement = el), placeholder: this.placeholder || 'Select ' + (this.type === Types.datetime ? 'date and time' : '') + (this.type === Types.date ? 'date' : '') + (this.type === Types.time ? 'time' : '') + (this.type === Types.range ? 'date range' : ''), value: this.valueText, required: this.required, fullWidth: this.fullWidth, disabled: this.disabled, name: this.name, id: this.inputId, clearable: this.clearable, onClick: () => this.openPicker(), disableWatchValue: true, "on-bcm-clear": () => this.handleInputClear(), "on-bcm-change": (e) => this.handleInputChange(e),
|
|
1422
|
+
return (h(Host, { class: hostClasses, "bcm-internal-id": this.inputId }, this.label && (h("div", { class: "picker-label", onClick: () => this.openToggle() }, h(LabelTemplate, { size: "medium", type: this.captionType, value: this.label, required: this.required, htmlFor: this._id }))), h("bcm-old-input", { ref: el => (this.inputElement = el), placeholder: this.placeholder || 'Select ' + (this.type === Types.datetime ? 'date and time' : '') + (this.type === Types.date ? 'date' : '') + (this.type === Types.time ? 'time' : '') + (this.type === Types.range ? 'date range' : ''), value: this.valueText, required: this.required, fullWidth: this.fullWidth, disabled: this.disabled, name: this.name, id: this.inputId, clearable: this.clearable, onClick: () => this.openPicker(), noMargin: this.noMargin, disableWatchValue: true, "on-bcm-clear": () => this.handleInputClear(), "on-bcm-change": (e) => this.handleInputChange(e),
|
|
1421
1423
|
// on-bcm-input={(e: CustomEvent) => this.handleInputInput(e.detail)}
|
|
1422
1424
|
noCaption: this.noCaption, captionError: this.captionError, caption: this.caption, captionType: this.captionType }, this.error && (h("span", { slot: "suffix" }, h("span", { id: "error-icon", class: toggleClasses, innerHTML: errorIcon, title: this.errorText }))), h("span", { slot: "suffix", onClick: () => this.openPicker() }, h("span", { id: "calender-icon", class: toggleClasses, innerHTML: inputIcon }))), h("div", { id: "picker-vp-" + this._id, class: datetimePickerClasses, onWheel: (e) => this.handleWheel(e) }, h("div", { class: "modules" }, this.hasDateModule && (h("div", { class: "date-container" }, h("div", { class: "bcm-datetime-picker__header" }, h("span", null), h("div", { class: "month-year" }, h("button", { onClick: () => this.getPrevMonth() }, h("bcm-icon", { icon: "far fa-chevron-left" })), h("div", { class: "month-year-wrapper" }, h("span", { class: "month" }, this.getMonthText()), ",", h("span", { class: "year" }, this.date.getFullYear())), h("button", { onClick: () => this.getNextMonth() }, h("bcm-icon", { icon: "far fa-chevron-right" }))), h("span", { class: "today", onClick: () => this.setDateToday() }, "Today")), h("div", { class: "bcm-datetime-picker__content" }, h("div", { class: "years", ref: el => (this.yearsWrapperElement = el) }, h("div", { class: "items", ref: el => (this.yearsElement = el) }, this.years.map((year, idx) => h("span", { onClick: () => this.yearClick(idx) }, year))), h("div", { class: "select-strip", ref: el => (this.yearsStripElement = el) })), h("div", { class: "days" }, h("div", { class: "day-labels" }, h("span", null, "Mo"), h("span", null, "Tu"), h("span", null, "We"), h("span", null, "Th"), h("span", null, "Fr"), h("span", null, "Sa"), h("span", null, "Su")), h("div", { class: dayNumbersClasses }, this.dayNumbers.map(day => (h("span", { class: {
|
|
1423
1425
|
'is-disabled-date': (this.type === Types.date || this.type === Types.datetime) && this.isDisabledDate(day.date),
|
|
@@ -1456,6 +1458,7 @@ const BcmDatetimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
1456
1458
|
"minYear": [1026, "min-year"],
|
|
1457
1459
|
"maxYear": [1026, "max-year"],
|
|
1458
1460
|
"noCaption": [1028, "no-caption"],
|
|
1461
|
+
"noMargin": [1028, "no-margin"],
|
|
1459
1462
|
"captionError": [1025, "caption-error"],
|
|
1460
1463
|
"caption": [1025],
|
|
1461
1464
|
"captionType": [1025, "caption-type"],
|
|
@@ -37,7 +37,7 @@ export { BcmFormGroup as BcmFormGroup } from '../types/components/organism/form/
|
|
|
37
37
|
export { BcmIcon as BcmIcon } from '../types/components/atoms/icon/icon';
|
|
38
38
|
export { BcmInput as BcmInput } from '../types/components/molecules/input/input';
|
|
39
39
|
export { BcmInputCustom as BcmInputCustom } from '../types/components/other/input-custom/input-custom';
|
|
40
|
-
export {
|
|
40
|
+
export { BcmInputDropdown as BcmInputDropdown } from '../types/components/molecules/input-dropdown/input-dropdown';
|
|
41
41
|
export { BcmItem as BcmItem } from '../types/components/molecules/item/item';
|
|
42
42
|
export { BcmItems as BcmItems } from '../types/components/molecules/items/items';
|
|
43
43
|
export { BcmLabel as BcmLabel } from '../types/components/atoms/label/label';
|