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
|
@@ -7,29 +7,30 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index$1 = require('./index-c591ecec.js');
|
|
10
|
-
const generate = require('./generate-
|
|
10
|
+
const generate = require('./generate-4911eaae.js');
|
|
11
11
|
const bcm = require('./bcm-03727f3b.js');
|
|
12
12
|
const index$2 = require('./index-95ae50d0.js');
|
|
13
13
|
const index = require('./index-d321de96.js');
|
|
14
|
-
const slotTemplate = require('./slot-template-
|
|
14
|
+
const slotTemplate = require('./slot-template-de6a91b1.js');
|
|
15
15
|
const colorHelper = require('./color-helper-c3a819ea.js');
|
|
16
16
|
const index$3 = require('./index-e05a7c6f.js');
|
|
17
17
|
const _commonjsHelpers = require('./_commonjsHelpers-ed84c3ca.js');
|
|
18
|
-
const numberHelper = require('./number-helper-
|
|
19
|
-
const stringHelper = require('./string-helper-
|
|
20
|
-
const validators = require('./validators-
|
|
18
|
+
const numberHelper = require('./number-helper-72d5f146.js');
|
|
19
|
+
const stringHelper = require('./string-helper-9b392049.js');
|
|
20
|
+
const validators = require('./validators-c43fa1d0.js');
|
|
21
21
|
const captionTemplate = require('./caption-template-81dbc490.js');
|
|
22
|
-
const inputTemplate = require('./input-template-
|
|
22
|
+
const inputTemplate = require('./input-template-11d547bd.js');
|
|
23
23
|
const utils = require('./utils-fc077139.js');
|
|
24
24
|
const isLoadDecorator = require('./is-load-decorator-7575fbd2.js');
|
|
25
25
|
require('./datetime-helper-eaf4fadb.js');
|
|
26
26
|
require('./element-dragger-a8562f82.js');
|
|
27
27
|
require('./types-cc4adee7.js');
|
|
28
28
|
require('./types-7523fd99.js');
|
|
29
|
-
const
|
|
29
|
+
const index$4 = require('./index-5279dea2.js');
|
|
30
|
+
const labelTemplate = require('./label-template-15c3c0ed.js');
|
|
30
31
|
const floatingUi = require('./floating-ui-baa45717.js');
|
|
31
|
-
const tooltipHelper = require('./tooltip-helper-
|
|
32
|
-
require('./package-
|
|
32
|
+
const tooltipHelper = require('./tooltip-helper-3b8b977f.js');
|
|
33
|
+
require('./package-70273fae.js');
|
|
33
34
|
require('./colors-078851ec.js');
|
|
34
35
|
require('./colors-56282b00.js');
|
|
35
36
|
|
|
@@ -17626,7 +17627,7 @@ BcmIcon.style = iconCss;
|
|
|
17626
17627
|
|
|
17627
17628
|
const inputCss = "@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}";
|
|
17628
17629
|
|
|
17629
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17630
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17630
17631
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17631
17632
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
17632
17633
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -17965,14 +17966,83 @@ const BcmInput = class {
|
|
|
17965
17966
|
"value": ["watchValue"]
|
|
17966
17967
|
}; }
|
|
17967
17968
|
};
|
|
17968
|
-
__decorate([
|
|
17969
|
+
__decorate$1([
|
|
17969
17970
|
isLoadDecorator.IsLoad()
|
|
17970
17971
|
], BcmInput.prototype, "inputElement", void 0);
|
|
17971
17972
|
BcmInput.style = inputCss;
|
|
17972
17973
|
|
|
17973
|
-
const
|
|
17974
|
+
const inputDropdownStyle = index$4.ce({
|
|
17975
|
+
slots: {
|
|
17976
|
+
base: "tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",
|
|
17977
|
+
content: "tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",
|
|
17978
|
+
inputArea: "tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-1 tw-box-content tw-border tw-border-solid tw-max-w-[100px] tw-uppercase tw-font-medium tw-text-center tw-border-gray-300 tw-rounded",
|
|
17979
|
+
input: "tw-flex-1 tw-text-inherit tw-uppercase tw-font-semibold tw-text-center tw-border-none tw-bg-transparent tw-outline-none tw-w-full",
|
|
17980
|
+
button: [
|
|
17981
|
+
"input-dropdown-button tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none tw-bg-slate-100",
|
|
17982
|
+
"tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600",
|
|
17983
|
+
"hover:tw-border-slate-400 hover:tw-bg-slate-200",
|
|
17984
|
+
"tw-min-w-[32px]",
|
|
17985
|
+
"tw-cursor-pointer",
|
|
17986
|
+
"disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none",
|
|
17987
|
+
"readonly:tw-text-slate-700 readonly:tw-cursor-text",
|
|
17988
|
+
],
|
|
17989
|
+
menu: "tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700",
|
|
17990
|
+
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",
|
|
17991
|
+
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",
|
|
17992
|
+
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",
|
|
17993
|
+
commentArea: "tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-3 tw-rounded tw-p-4 tw-shadow-2",
|
|
17994
|
+
},
|
|
17995
|
+
variants: {
|
|
17996
|
+
size: {
|
|
17997
|
+
small: {
|
|
17998
|
+
button: "tw-h-[18px] tw-text-1 tw-leading-none",
|
|
17999
|
+
},
|
|
18000
|
+
medium: {
|
|
18001
|
+
button: "tw-h-[24px] tw-text-2",
|
|
18002
|
+
inputArea: "tw-p-0.5",
|
|
18003
|
+
input: "tw-text-4",
|
|
18004
|
+
},
|
|
18005
|
+
large: {
|
|
18006
|
+
button: "tw-h-[30px] tw-text-2",
|
|
18007
|
+
inputArea: "tw-p-1",
|
|
18008
|
+
input: "tw-text-6",
|
|
18009
|
+
},
|
|
18010
|
+
},
|
|
18011
|
+
invalid: {
|
|
18012
|
+
true: {
|
|
18013
|
+
inputArea: "tw-border-red-600 tw-bg-red-50",
|
|
18014
|
+
input: "tw-text-red-500",
|
|
18015
|
+
},
|
|
18016
|
+
},
|
|
18017
|
+
disabled: {
|
|
18018
|
+
true: {
|
|
18019
|
+
base: "tw-opacity-50 tw-cursor-not-allowed",
|
|
18020
|
+
input: "tw-cursor-not-allowed",
|
|
18021
|
+
},
|
|
18022
|
+
},
|
|
18023
|
+
hideComment: {
|
|
18024
|
+
true: {
|
|
18025
|
+
base: "tw-min-w-[98px]",
|
|
18026
|
+
},
|
|
18027
|
+
false: {
|
|
18028
|
+
base: "tw-min-w-[128px] ",
|
|
18029
|
+
},
|
|
18030
|
+
},
|
|
18031
|
+
label: {
|
|
18032
|
+
true: "",
|
|
18033
|
+
},
|
|
18034
|
+
},
|
|
18035
|
+
defaultVariants: {
|
|
18036
|
+
size: "medium",
|
|
18037
|
+
invalid: false,
|
|
18038
|
+
hideComment: false,
|
|
18039
|
+
disabled: false,
|
|
18040
|
+
},
|
|
18041
|
+
});
|
|
17974
18042
|
|
|
17975
|
-
const
|
|
18043
|
+
const inputDropdownCss = "@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\"); .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}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}";
|
|
18044
|
+
|
|
18045
|
+
const BcmInputDropdown = class {
|
|
17976
18046
|
constructor(hostRef) {
|
|
17977
18047
|
index$1.registerInstance(this, hostRef);
|
|
17978
18048
|
this.change = index$1.createEvent(this, "bcm-change", 7);
|
|
@@ -17984,31 +18054,25 @@ const InputDropdown = class {
|
|
|
17984
18054
|
return;
|
|
17985
18055
|
}
|
|
17986
18056
|
};
|
|
17987
|
-
this.onClickSave = () => {
|
|
17988
|
-
const lateMin = +this.lateMinutes;
|
|
17989
|
-
if (lateMin > 0) {
|
|
17990
|
-
this.value = Object.assign(Object.assign({}, this.value), { late: lateMin });
|
|
17991
|
-
this.onChangeDropdown.emit(this.value);
|
|
17992
|
-
this.onCloseLateContent();
|
|
17993
|
-
}
|
|
17994
|
-
};
|
|
17995
18057
|
this._id = generate.Generate.UID();
|
|
17996
18058
|
this.value = undefined;
|
|
17997
|
-
this.defaultValue =
|
|
17998
|
-
this.
|
|
18059
|
+
this.defaultValue = {};
|
|
18060
|
+
this.lateKeys = "L";
|
|
17999
18061
|
this.maxCharacterLimit = 1;
|
|
18000
18062
|
this.size = bcm.Bcm$1.Size.medium;
|
|
18001
18063
|
this.label = undefined;
|
|
18002
18064
|
this.placeholder = undefined;
|
|
18065
|
+
this.name = undefined;
|
|
18003
18066
|
this.fullWidth = false;
|
|
18067
|
+
this.hideComment = false;
|
|
18068
|
+
this.hideCaption = true;
|
|
18004
18069
|
this.disabled = false;
|
|
18005
18070
|
this.required = false;
|
|
18006
18071
|
this.readonly = false;
|
|
18007
|
-
this.componentIsActive = false;
|
|
18008
18072
|
this.data = [
|
|
18009
18073
|
{ key: "/", value: "Present", color: "#00b050" },
|
|
18010
18074
|
{ key: "B", value: "Educated off site (NOT dual registration)", color: "#ffc000" },
|
|
18011
|
-
{ key: "C", value: "Other authorised circumstance", color: "#
|
|
18075
|
+
{ key: "C", value: "Other authorised circumstance", color: "#ffc000" },
|
|
18012
18076
|
{ key: "D", value: "Dual registration", color: "#0070c0" },
|
|
18013
18077
|
{ key: "E", value: "Excluded", color: "#ff0000" },
|
|
18014
18078
|
{ key: "F", value: "Free Study", color: "#ffc000" },
|
|
@@ -18021,36 +18085,67 @@ const InputDropdown = class {
|
|
|
18021
18085
|
this.captionType = bcm.Bcm$1.Status.default;
|
|
18022
18086
|
this.captionError = undefined;
|
|
18023
18087
|
this.customErrorMessage = undefined;
|
|
18024
|
-
this.invalid = false;
|
|
18025
18088
|
this.captionCache = undefined;
|
|
18026
18089
|
this.captionTypeCache = undefined;
|
|
18027
|
-
this.
|
|
18028
|
-
this.
|
|
18029
|
-
}
|
|
18030
|
-
get content() {
|
|
18031
|
-
return document.getElementById(this._id + "-input-dropdown-main-content");
|
|
18090
|
+
this.isOpenMenu = false;
|
|
18091
|
+
this.invalid = false;
|
|
18032
18092
|
}
|
|
18033
|
-
get
|
|
18034
|
-
return document.getElementById(
|
|
18093
|
+
get overlayContainer() {
|
|
18094
|
+
return document.getElementById("bcm-overlay-container");
|
|
18035
18095
|
}
|
|
18036
|
-
get
|
|
18037
|
-
|
|
18096
|
+
get menuContent() {
|
|
18097
|
+
var _a, _b;
|
|
18098
|
+
return (_b = (_a = this.overlayContainer) === null || _a === void 0 ? void 0 : _a.querySelector("#" + `i-dropdown-menu-${this._id}`)) !== null && _b !== void 0 ? _b : this.el.querySelector("#" + `i-dropdown-menu-${this._id}`);
|
|
18038
18099
|
}
|
|
18039
|
-
|
|
18040
|
-
|
|
18100
|
+
get keys() {
|
|
18101
|
+
return this.lateKeys.toLocaleLowerCase().split(",");
|
|
18041
18102
|
}
|
|
18042
|
-
|
|
18043
|
-
|
|
18103
|
+
get isLate() {
|
|
18104
|
+
var _a, _b, _c, _d, _e, _f;
|
|
18105
|
+
return (this.keys.includes((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) ||
|
|
18106
|
+
((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.find(item => { var _a, _b, _c; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLowerCase()); })) === null || _d === void 0 ? void 0 : _d.isLate) ||
|
|
18107
|
+
((_f = (_e = this.data) === null || _e === void 0 ? void 0 : _e.find(item => { var _a, _b, _c; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.key) === null || _c === void 0 ? void 0 : _c.toLowerCase()); })) === null || _f === void 0 ? void 0 : _f.lateMin) > 0);
|
|
18044
18108
|
}
|
|
18045
|
-
|
|
18109
|
+
componentWillLoad() {
|
|
18110
|
+
var _a, _b;
|
|
18046
18111
|
this.captionCache = this.caption;
|
|
18047
18112
|
this.captionTypeCache = this.captionType;
|
|
18113
|
+
if (((_a = Object.keys(this.defaultValue)) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
18114
|
+
this.watchDefaultValueHandler(this.defaultValue);
|
|
18115
|
+
}
|
|
18116
|
+
else {
|
|
18117
|
+
this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item.selected);
|
|
18118
|
+
}
|
|
18048
18119
|
}
|
|
18049
|
-
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
|
|
18053
|
-
|
|
18120
|
+
get commentContent() {
|
|
18121
|
+
var _a, _b;
|
|
18122
|
+
return (_b = (_a = this.overlayContainer) === null || _a === void 0 ? void 0 : _a.querySelector("#" + `i-dropdown-comment-${this._id}`)) !== null && _b !== void 0 ? _b : this.el.querySelector("#" + `i-dropdown-comment-${this._id}`);
|
|
18123
|
+
}
|
|
18124
|
+
clickListener(e) {
|
|
18125
|
+
var _a, _b;
|
|
18126
|
+
const isSelf = generate.Generate.findEventPath(e, this.el);
|
|
18127
|
+
const isLinked = generate.Generate.findEventPathWithNodeName(e, "BCM-LINKED");
|
|
18128
|
+
if (!isSelf && !isLinked && !this.keys.includes((_a = this.value) === null || _a === void 0 ? void 0 : _a.key)) {
|
|
18129
|
+
(_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.hide();
|
|
18130
|
+
return;
|
|
18131
|
+
}
|
|
18132
|
+
}
|
|
18133
|
+
watchDefaultValueHandler(newValue) {
|
|
18134
|
+
var _a, _b;
|
|
18135
|
+
if (newValue) {
|
|
18136
|
+
this.value = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(item => { var _a, _b; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = newValue.key) === null || _b === void 0 ? void 0 : _b.toLowerCase()); });
|
|
18137
|
+
this.data = this.data.map(data => {
|
|
18138
|
+
if (data.key === (newValue === null || newValue === void 0 ? void 0 : newValue.key)) {
|
|
18139
|
+
data = newValue;
|
|
18140
|
+
data.selected = true;
|
|
18141
|
+
}
|
|
18142
|
+
else {
|
|
18143
|
+
data.selected = false;
|
|
18144
|
+
}
|
|
18145
|
+
return data;
|
|
18146
|
+
});
|
|
18147
|
+
this.value = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => item === null || item === void 0 ? void 0 : item.selected);
|
|
18148
|
+
index$1.forceUpdate(this.el);
|
|
18054
18149
|
}
|
|
18055
18150
|
}
|
|
18056
18151
|
async set(data) {
|
|
@@ -18060,7 +18155,7 @@ const InputDropdown = class {
|
|
|
18060
18155
|
return this.value;
|
|
18061
18156
|
}
|
|
18062
18157
|
async setClear() {
|
|
18063
|
-
this.value =
|
|
18158
|
+
this.value = null;
|
|
18064
18159
|
return Promise.resolve();
|
|
18065
18160
|
}
|
|
18066
18161
|
async resetCaption() {
|
|
@@ -18070,128 +18165,92 @@ const InputDropdown = class {
|
|
|
18070
18165
|
this.invalid = false;
|
|
18071
18166
|
return Promise.resolve();
|
|
18072
18167
|
}
|
|
18073
|
-
|
|
18074
|
-
var _a
|
|
18075
|
-
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
}
|
|
18168
|
+
onSelectItem(item) {
|
|
18169
|
+
var _a;
|
|
18170
|
+
this.invalid = false;
|
|
18171
|
+
this.data = this.data.map(data => (Object.assign(Object.assign({}, data), { selected: data.key === item.key })));
|
|
18172
|
+
this.value = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(item => item === null || item === void 0 ? void 0 : item.selected);
|
|
18173
|
+
this.onChangeDropdown.emit(this.value);
|
|
18174
|
+
this.change.emit();
|
|
18081
18175
|
}
|
|
18082
18176
|
async handleInput(e) {
|
|
18083
|
-
var _a, _b, _c, _d;
|
|
18177
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
18084
18178
|
const value = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
18179
|
+
this.isOpenMenu = true;
|
|
18085
18180
|
const maxLengthExceeded = (value === null || value === void 0 ? void 0 : value.length) >= +this.maxCharacterLimit;
|
|
18086
18181
|
if (maxLengthExceeded) {
|
|
18087
18182
|
const item = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(item => { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.key) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === value.toLowerCase(); });
|
|
18088
18183
|
if (item) {
|
|
18089
|
-
this.
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
if (this.isLate()) {
|
|
18093
|
-
(_c = this.lateContent) === null || _c === void 0 ? void 0 : _c.show();
|
|
18094
|
-
await utils.delay(60);
|
|
18095
|
-
document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
|
|
18184
|
+
await ((_c = this.menuContent) === null || _c === void 0 ? void 0 : _c.hide());
|
|
18185
|
+
if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
|
|
18186
|
+
(_d = this.commentContent) === null || _d === void 0 ? void 0 : _d.show();
|
|
18096
18187
|
}
|
|
18097
|
-
|
|
18098
|
-
(_d = this.lateContent) === null || _d === void 0 ? void 0 : _d.hide();
|
|
18099
|
-
}
|
|
18100
|
-
this.onChangeDropdown.emit(item);
|
|
18188
|
+
this.onSelectItem(item);
|
|
18101
18189
|
}
|
|
18102
18190
|
else {
|
|
18191
|
+
this.invalid = true;
|
|
18103
18192
|
this.value = e.target.value;
|
|
18104
|
-
this.
|
|
18193
|
+
await ((_e = this.menuContent) === null || _e === void 0 ? void 0 : _e.show());
|
|
18105
18194
|
this._input.style.color = "#ff0000";
|
|
18106
|
-
this.invalid = true;
|
|
18107
18195
|
}
|
|
18108
18196
|
}
|
|
18109
18197
|
else {
|
|
18110
|
-
this.
|
|
18198
|
+
(_f = this.commentContent) === null || _f === void 0 ? void 0 : _f.hide();
|
|
18199
|
+
(_g = this.menuContent) === null || _g === void 0 ? void 0 : _g.hide();
|
|
18111
18200
|
this.value = null;
|
|
18112
18201
|
this._input.style.color = "#000000";
|
|
18113
18202
|
this.invalid = false;
|
|
18114
18203
|
}
|
|
18115
18204
|
this.change.emit();
|
|
18116
18205
|
}
|
|
18206
|
+
onClickSave() {
|
|
18207
|
+
var _a;
|
|
18208
|
+
(_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.hide();
|
|
18209
|
+
this.data = this.data.map(data => (Object.assign(Object.assign({}, data), (data.key === this.value.key && {
|
|
18210
|
+
lateMin: this.value.lateMin,
|
|
18211
|
+
comment: this.value.comment,
|
|
18212
|
+
}))));
|
|
18213
|
+
index$1.forceUpdate(this.el);
|
|
18214
|
+
this.onChangeDropdown.emit(this.value);
|
|
18215
|
+
this.change.emit();
|
|
18216
|
+
}
|
|
18117
18217
|
async onClick(item) {
|
|
18118
18218
|
var _a, _b;
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
this._input.style.color = item.color;
|
|
18122
|
-
this.onCloseMainContent();
|
|
18123
|
-
if (this.isLate()) {
|
|
18124
|
-
(_a = this.lateContent) === null || _a === void 0 ? void 0 : _a.show();
|
|
18125
|
-
await utils.delay(60);
|
|
18126
|
-
document.querySelector("#" + this._id + "-input-dropdown-late-content-input input").focus();
|
|
18127
|
-
}
|
|
18128
|
-
else {
|
|
18129
|
-
(_b = this.lateContent) === null || _b === void 0 ? void 0 : _b.hide();
|
|
18219
|
+
if (!(item === null || item === void 0 ? void 0 : item.hideComment)) {
|
|
18220
|
+
(_a = this.commentContent) === null || _a === void 0 ? void 0 : _a.show();
|
|
18130
18221
|
}
|
|
18131
|
-
this.
|
|
18132
|
-
this.
|
|
18222
|
+
await ((_b = this.menuContent) === null || _b === void 0 ? void 0 : _b.hide());
|
|
18223
|
+
this.onSelectItem(item);
|
|
18133
18224
|
}
|
|
18134
18225
|
render() {
|
|
18135
|
-
|
|
18136
|
-
const
|
|
18137
|
-
const
|
|
18138
|
-
const
|
|
18139
|
-
[bcm.Bcm$1.Size.small]: "tw-text-2",
|
|
18140
|
-
[bcm.Bcm$1.Size.medium]: "tw-text-3 ",
|
|
18141
|
-
[bcm.Bcm$1.Size.large]: "tw-text-4 ",
|
|
18142
|
-
}[size];
|
|
18143
|
-
const fontSizes = {
|
|
18144
|
-
[bcm.Bcm$1.Size.small]: "tw-text-2",
|
|
18145
|
-
[bcm.Bcm$1.Size.medium]: "tw-text-3",
|
|
18146
|
-
[bcm.Bcm$1.Size.large]: "tw-text-4",
|
|
18147
|
-
}[size];
|
|
18148
|
-
const isError = invalid || captionType === "error";
|
|
18149
|
-
const RenderMainContent = () => {
|
|
18226
|
+
var _a, _b, _c, _d, _e;
|
|
18227
|
+
const { size, label, placeholder, required, disabled, readonly, _id, invalid, hideComment, noCaption, customErrorMessage, caption, captionType, captionError, hideCaption } = this;
|
|
18228
|
+
const { base, inputArea, input, button, menu, menuItem, commentArea, disabledItem, content, selectedItem } = inputDropdownStyle({ size, invalid, hideComment, disabled });
|
|
18229
|
+
const MenuTemplates = () => {
|
|
18150
18230
|
var _a;
|
|
18151
|
-
return (index$1.h(
|
|
18152
|
-
_a.map(item => {
|
|
18153
|
-
var _a;
|
|
18154
|
-
return (index$1.h("li", { onClick: () => this.onClick(item), class: index$2.classnames("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", {
|
|
18155
|
-
"tw-bg-primary-200": ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) == item.key,
|
|
18156
|
-
}) }, index$1.h("span", null, " ", item.key), " - ", index$1.h("span", null, item.value)));
|
|
18157
|
-
}))) : null));
|
|
18231
|
+
return (index$1.h(index$1.Fragment, null, this.isOpenMenu ? (index$1.h("div", { class: menu() }, this.invalid && (index$1.h("li", { class: menuItem() + " tw-bg-red-100 hover:tw-bg-red-100" }, index$1.h("span", { class: "tw-text-red-900" }, index$1.h("i", { class: "far fa-exclamation-circle" })), index$1.h("span", null, "There is not mark you entered, please use"))), (_a = this.data) === null || _a === void 0 ? void 0 :
|
|
18232
|
+
_a.map((item) => (index$1.h(index$1.Fragment, null, !(item === null || item === void 0 ? void 0 : item.disabled) ? (index$1.h("li", { class: (item === null || item === void 0 ? void 0 : item.selected) ? selectedItem() : menuItem(), onClick: () => this.onClick(item) }, index$1.h("span", null, item.key), " - ", index$1.h("span", null, item.value))) : (index$1.h("li", { class: disabledItem() }, index$1.h("span", null, item.key), " - ", index$1.h("span", null, item.value)))))))) : null));
|
|
18158
18233
|
};
|
|
18159
|
-
const
|
|
18160
|
-
var _a;
|
|
18161
|
-
return (index$1.h("bcm-
|
|
18162
|
-
var _a;
|
|
18163
|
-
if (detail) {
|
|
18164
|
-
(_a = this.el.querySelector("#" + this._id + "-input-dropdown-late-content-input")) === null || _a === void 0 ? void 0 : _a.onBcmFocus();
|
|
18165
|
-
}
|
|
18166
|
-
else {
|
|
18167
|
-
this._input.focus();
|
|
18168
|
-
}
|
|
18169
|
-
} }, this.componentIsActive ? (index$1.h("div", { class: "tw-flex tw-h-fit tw-w-full !tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-4 tw-rounded tw-p-4 tw-shadow-2" }, index$1.h("div", { class: "tw-flex tw-w-full tw-flex-col tw-items-start tw-justify-center tw-gap-3" }, index$1.h("header", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-between" }, index$1.h("div", { class: "tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2" }, index$1.h("i", { class: "tw-text-size-4 fas fa-clock tw-text-amber-600" }), index$1.h("bcm-label", { class: "!tw-mb-0", size: "large", value: "Minutes Late", required: true })), index$1.h("div", { class: " tw-flex tw-h-4 tw-w-4 tw-flex-row tw-items-center tw-justify-center", onClick: () => this.onCloseLateContent() }, index$1.h("i", { class: "tw-text-size-4 fas fa-times tw-text-slate-600" }))), index$1.h("bcm-input", { id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, "no-caption": true, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.late, placeholder: "Enter Minus Late", required: true, "onBcm-change": (e) => (this.lateMinutes = +e.detail), onKeyDown: e => {
|
|
18170
|
-
if (e.key === "Enter") {
|
|
18171
|
-
this.onClickSave();
|
|
18172
|
-
}
|
|
18173
|
-
} })), index$1.h("section", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end" }, index$1.h("bcm-button", { size: "small", variant: "save", color: "blue", disabled: +lateMinutes < 1, onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
18234
|
+
const CommentTemplate = () => {
|
|
18235
|
+
var _a, _b, _c;
|
|
18236
|
+
return (index$1.h(index$1.Fragment, null, this.isOpenMenu ? (index$1.h("div", { class: commentArea() }, this.isLate ? (index$1.h(index$1.Fragment, null, index$1.h("bcm-input", { label: "Minus Late", required: true, id: this._id + "-input-dropdown-late-content-input", type: "number", "full-width": true, "no-caption": true, autocomplete: false, value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.lateMin, placeholder: "Enter Minus Late", "onBcm-change": ({ detail }) => (this.value.lateMin = +detail) }, index$1.h("i", { slot: "prefix", class: "far fa-clock" })))) : null, index$1.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 }), index$1.h("footer", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2" }, index$1.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"), index$1.h("bcm-button", { icon: "fas fa-save", "icon-position": "prefix", onClick: () => this.onClickSave() }, "Save")))) : null));
|
|
18174
18237
|
};
|
|
18175
|
-
return (index$1.h(index$1.Host, { class: index$
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
"tw-
|
|
18183
|
-
|
|
18184
|
-
"hover:tw-border-default-600 hover:tw-bg-default-50": !disabled && !readonly && !isError,
|
|
18185
|
-
"tw-outline-none focus:tw-ring-2 focus:tw-ring-default-400": !disabled && !readonly && !isError,
|
|
18186
|
-
}) }, index$1.h("div", { class: " tw-flex tw-w-full tw-min-w-[42px] tw-flex-row tw-items-center tw-justify-center" }, value && (value === null || value === void 0 ? void 0 : value.late) && (index$1.h("bcm-tooltip", { message: `${lateMinutes} ${utils.pluralize("Minute", lateMinutes)} Late`, trigger: "hover" }, index$1.h("i", { class: iconSizes + " fas fa-clock", onClick: () => this.lateContent.show() }))), captionType == bcm.Bcm$1.Status.error && index$1.h("i", { class: iconSizes + " tw-text-default-500" + " fas fa-exclamation-circle" }), index$1.h("input", { class: index$2.classnames("tw-font-sans", "tw-h-full tw-w-full tw-bg-transparent tw-text-center tw-font-semibold !tw-uppercase tw-outline-none ", "disabled:tw-cursor-not-allowed disabled:tw-text-slate-400", "readonly:tw-text-slate-700 readonly:tw-cursor-text", `${fontSizes}`), id: this._id + "-dropdown-input", type: "text", tabIndex: -1, disabled: disabled, placeholder: this.placeholder, value: value === null || value === void 0 ? void 0 : value.key, required: this.required, readOnly: readonly, onKeyPress: e => this.handleKeyPress(e), onInput: e => this.handleInput(e), ref: el => (this._input = el), onFocus: () => this._input.select() })), index$1.h("button", { id: this._id + "-dropdown-input-button", class: index$2.classnames("dropdown-input-button", "tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none", "tw-border tw-border-solid tw-border-slate-300 tw-bg-slate-50 tw-font-medium tw-text-slate-600", "hover:tw-border-slate-400 hover:tw-bg-slate-200", "tw-min-w-[32px]", "tw-cursor-pointer", "disabled:tw-cursor-not-allowed disabled:tw-text-slate-400", "readonly:tw-text-slate-700 readonly:tw-cursor-text", {
|
|
18187
|
-
"tw-h-[18px] tw-text-1 tw-leading-none": size == bcm.Bcm$1.Size.small,
|
|
18188
|
-
"tw-h-[22px] tw-text-2": size == bcm.Bcm$1.Size.medium,
|
|
18189
|
-
"tw-h-[30px] tw-text-2": size == bcm.Bcm$1.Size.large,
|
|
18190
|
-
}), "aria-label": "dropdown", "aria-haspopup": "true", "aria-expanded": "false", disabled: disabled || readonly, tabIndex: -1 }, index$1.h("i", { class: "fas fa-chevron-down" })), index$1.h(RenderMainContent, null), index$1.h(RenderLateContent, null)), index$1.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: this.customErrorMessage })));
|
|
18238
|
+
return (index$1.h(index$1.Host, { class: base() }, label && index$1.h("bcm-label", { htmlFor: _id + "-dropdown-input", size: size, value: label, required: required }), index$1.h("div", { class: content() }, index$1.h("div", { class: inputArea() }, index$1.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) }), index$1.h("button", { disabled: disabled, id: `i-dropdown-button-${_id}`, class: button(), onClick: () => (this.isOpenMenu = true) }, index$1.h("i", { class: "fas fa-chevron-down" })), index$1.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" }, index$1.h(MenuTemplates, null)), index$1.h("bcm-linked", { id: `i-dropdown-comment-${_id}`, "target-id": _id, trigger: "custom", placement: "left" }, index$1.h(CommentTemplate, null))), !this.hideComment ? (index$1.h("span", { onClick: () => {
|
|
18239
|
+
var _a, _b;
|
|
18240
|
+
if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.key) {
|
|
18241
|
+
this.isOpenMenu = true;
|
|
18242
|
+
(_b = this.commentContent) === null || _b === void 0 ? void 0 : _b.show();
|
|
18243
|
+
}
|
|
18244
|
+
}, class: index$2.classnames(((_c = this.value) === null || _c === void 0 ? void 0 : _c.comment) || ((_d = this.value) === null || _d === void 0 ? void 0 : _d.lateMin) > 0 ? "tw-text-slate-600" : "tw-text-slate-400", {
|
|
18245
|
+
"tw-cursor-pointer": (_e = this.value) === null || _e === void 0 ? void 0 : _e.key,
|
|
18246
|
+
}) }, index$1.h("i", { class: "fas fa-comment" }))) : null), !hideCaption && index$1.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
|
|
18191
18247
|
}
|
|
18192
18248
|
get el() { return index$1.getElement(this); }
|
|
18249
|
+
static get watchers() { return {
|
|
18250
|
+
"defaultValue": ["watchDefaultValueHandler"]
|
|
18251
|
+
}; }
|
|
18193
18252
|
};
|
|
18194
|
-
|
|
18253
|
+
BcmInputDropdown.style = inputDropdownCss;
|
|
18195
18254
|
|
|
18196
18255
|
const labelCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-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)}";
|
|
18197
18256
|
|
|
@@ -18418,6 +18477,147 @@ const BcmLinked = class {
|
|
|
18418
18477
|
}; }
|
|
18419
18478
|
};
|
|
18420
18479
|
|
|
18480
|
+
var ResizeType;
|
|
18481
|
+
(function (ResizeType) {
|
|
18482
|
+
ResizeType["none"] = "none";
|
|
18483
|
+
ResizeType["both"] = "both";
|
|
18484
|
+
ResizeType["horizontal"] = "horizontal";
|
|
18485
|
+
ResizeType["vertical"] = "vertical";
|
|
18486
|
+
ResizeType["initial"] = "initial";
|
|
18487
|
+
ResizeType["inherit"] = "inherit";
|
|
18488
|
+
})(ResizeType || (ResizeType = {}));
|
|
18489
|
+
|
|
18490
|
+
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}";
|
|
18491
|
+
|
|
18492
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18493
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18494
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
18495
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
18496
|
+
else
|
|
18497
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
18498
|
+
if (d = decorators[i])
|
|
18499
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18500
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18501
|
+
};
|
|
18502
|
+
const BcmTextarea = class {
|
|
18503
|
+
constructor(hostRef) {
|
|
18504
|
+
index$1.registerInstance(this, hostRef);
|
|
18505
|
+
this.focus = index$1.createEvent(this, "bcm-focus", 7);
|
|
18506
|
+
this.blur = index$1.createEvent(this, "bcm-blur", 7);
|
|
18507
|
+
this.clear = index$1.createEvent(this, "bcm-clear", 7);
|
|
18508
|
+
this.change = index$1.createEvent(this, "bcm-change", 7);
|
|
18509
|
+
this.input = index$1.createEvent(this, "bcm-input", 7);
|
|
18510
|
+
this._id = generate.Generate.UID();
|
|
18511
|
+
this._internal_id = generate.Generate.UID();
|
|
18512
|
+
this.hidden = false;
|
|
18513
|
+
this.value = undefined;
|
|
18514
|
+
this.placeholder = undefined;
|
|
18515
|
+
this.label = undefined;
|
|
18516
|
+
this.name = undefined;
|
|
18517
|
+
this.required = false;
|
|
18518
|
+
this.caption = undefined;
|
|
18519
|
+
this.noCaption = false;
|
|
18520
|
+
this.captionError = undefined;
|
|
18521
|
+
this.captionType = bcm.Bcm.Status.default;
|
|
18522
|
+
this.rows = 3;
|
|
18523
|
+
this.size = bcm.Bcm.Size.medium;
|
|
18524
|
+
this.disabled = undefined;
|
|
18525
|
+
this.readonly = false;
|
|
18526
|
+
this.clearable = undefined;
|
|
18527
|
+
this.resize = ResizeType.vertical;
|
|
18528
|
+
this.fullWidth = false;
|
|
18529
|
+
this.maxLength = undefined;
|
|
18530
|
+
this.focused = false;
|
|
18531
|
+
this.captionCache = undefined;
|
|
18532
|
+
this.captionTypeCache = undefined;
|
|
18533
|
+
}
|
|
18534
|
+
connectedCallback() {
|
|
18535
|
+
this.captionCache = this.caption;
|
|
18536
|
+
this.captionTypeCache = this.captionType;
|
|
18537
|
+
}
|
|
18538
|
+
async onBcmFocus() {
|
|
18539
|
+
this.textarea.focus();
|
|
18540
|
+
}
|
|
18541
|
+
async onBcmBlur() {
|
|
18542
|
+
this.textarea.blur();
|
|
18543
|
+
}
|
|
18544
|
+
async onBcmSelect() {
|
|
18545
|
+
this.textarea.select();
|
|
18546
|
+
}
|
|
18547
|
+
async set(data) {
|
|
18548
|
+
await this.setValue(data);
|
|
18549
|
+
}
|
|
18550
|
+
async get() {
|
|
18551
|
+
return this.value || null;
|
|
18552
|
+
}
|
|
18553
|
+
async setValue(value) {
|
|
18554
|
+
this.textarea.value = value;
|
|
18555
|
+
this.value = value;
|
|
18556
|
+
this.handleChange();
|
|
18557
|
+
return value;
|
|
18558
|
+
}
|
|
18559
|
+
async setClear() {
|
|
18560
|
+
this.textarea.value = '';
|
|
18561
|
+
this.value = '';
|
|
18562
|
+
await utils.delay(10);
|
|
18563
|
+
return Promise.resolve();
|
|
18564
|
+
}
|
|
18565
|
+
async resetCaption() {
|
|
18566
|
+
await utils.delay(10);
|
|
18567
|
+
this.caption = this.captionCache;
|
|
18568
|
+
this.captionType = this.captionTypeCache;
|
|
18569
|
+
this.captionError = null;
|
|
18570
|
+
await utils.delay(10);
|
|
18571
|
+
return Promise.resolve();
|
|
18572
|
+
}
|
|
18573
|
+
async getValue() {
|
|
18574
|
+
return this.value;
|
|
18575
|
+
}
|
|
18576
|
+
watchValue(newValue) {
|
|
18577
|
+
this.textarea.value = newValue;
|
|
18578
|
+
this.handleChange();
|
|
18579
|
+
}
|
|
18580
|
+
handleFocus() {
|
|
18581
|
+
this.focused = true;
|
|
18582
|
+
this.focus.emit();
|
|
18583
|
+
}
|
|
18584
|
+
handleBlur() {
|
|
18585
|
+
this.focused = false;
|
|
18586
|
+
this.blur.emit();
|
|
18587
|
+
}
|
|
18588
|
+
handleChange() {
|
|
18589
|
+
this.value = this.textarea.value;
|
|
18590
|
+
this.change.emit(this.value);
|
|
18591
|
+
}
|
|
18592
|
+
handleInput() {
|
|
18593
|
+
this.value = this.textarea.value;
|
|
18594
|
+
this.input.emit(this.value);
|
|
18595
|
+
}
|
|
18596
|
+
handleClear(e) {
|
|
18597
|
+
this.textarea.value = '';
|
|
18598
|
+
this.value = '';
|
|
18599
|
+
this.clear.emit();
|
|
18600
|
+
this.textarea.focus();
|
|
18601
|
+
e.stopPropagation();
|
|
18602
|
+
}
|
|
18603
|
+
render() {
|
|
18604
|
+
const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
|
|
18605
|
+
const hostClasses = index$2.classnames('bcm-input', {
|
|
18606
|
+
hidden,
|
|
18607
|
+
'full-width': fullWidth,
|
|
18608
|
+
});
|
|
18609
|
+
return (index$1.h(index$1.Host, { class: hostClasses }, label && index$1.h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), index$1.h(inputTemplate.InputTemplate, { elementType: bcm.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 }), index$1.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
|
|
18610
|
+
}
|
|
18611
|
+
get el() { return index$1.getElement(this); }
|
|
18612
|
+
static get watchers() { return {
|
|
18613
|
+
"value": ["watchValue"]
|
|
18614
|
+
}; }
|
|
18615
|
+
};
|
|
18616
|
+
__decorate([
|
|
18617
|
+
isLoadDecorator.IsLoad()
|
|
18618
|
+
], BcmTextarea.prototype, "el", void 0);
|
|
18619
|
+
BcmTextarea.style = textareaCss;
|
|
18620
|
+
|
|
18421
18621
|
const BcmTooltip = class {
|
|
18422
18622
|
constructor(hostRef) {
|
|
18423
18623
|
index$1.registerInstance(this, hostRef);
|
|
@@ -18493,7 +18693,8 @@ exports.bcm_button = BcmButton;
|
|
|
18493
18693
|
exports.bcm_colorful = BcmColorful;
|
|
18494
18694
|
exports.bcm_icon = BcmIcon;
|
|
18495
18695
|
exports.bcm_input = BcmInput;
|
|
18496
|
-
exports.bcm_input_dropdown =
|
|
18696
|
+
exports.bcm_input_dropdown = BcmInputDropdown;
|
|
18497
18697
|
exports.bcm_label = BcmLabel;
|
|
18498
18698
|
exports.bcm_linked = BcmLinked;
|
|
18699
|
+
exports.bcm_textarea = BcmTextarea;
|
|
18499
18700
|
exports.bcm_tooltip = BcmTooltip;
|