bromcom-ui 3.0.0-alpha.2 → 3.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-c47463b1.entry.js → p-0b7de283.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a141b2bc.entry.js → p-0e75f6ba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9d41ff2a.entry.js → p-112b9a62.entry.js} +1 -1
- package/dist/bromcom-ui/p-1535f9b1.js +5 -0
- package/dist/bromcom-ui/{p-2a0b6273.entry.js → p-32ce6cf6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-46628fcd.entry.js → p-33b2ed75.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7416d1f6.entry.js → p-4545a13d.entry.js} +1 -1
- package/dist/bromcom-ui/p-45b811ef.entry.js +5 -0
- package/dist/bromcom-ui/{p-369948e7.entry.js → p-5532696c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8363990a.entry.js → p-69adb859.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d4e4aeee.js → p-6ce02d0a.js} +1 -1
- package/dist/bromcom-ui/p-7c08789d.entry.js +5 -0
- package/dist/bromcom-ui/{p-22e3161d.entry.js → p-803739bc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-14b04371.entry.js → p-8390dd02.entry.js} +1 -1
- package/dist/bromcom-ui/{p-217934a4.entry.js → p-8e7274e4.entry.js} +1 -1
- package/dist/bromcom-ui/p-91197b04.js +5 -0
- package/dist/bromcom-ui/{p-cbeaa059.entry.js → p-9e0dd503.entry.js} +3 -3
- package/dist/bromcom-ui/p-a320cde8.entry.js +5 -0
- package/dist/bromcom-ui/p-a80e6310.entry.js +5 -0
- package/dist/bromcom-ui/{p-b85227c8.entry.js → p-acab07ec.entry.js} +1 -1
- package/dist/bromcom-ui/{p-51ba3626.entry.js → p-b333a3d7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a080c8ea.entry.js → p-b7787c11.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6f224017.entry.js → p-b7c56cbe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e7c31126.entry.js → p-c36a7889.entry.js} +1 -1
- package/dist/bromcom-ui/p-ce0ab4e3.entry.js +5 -0
- package/dist/bromcom-ui/{p-367bc8e0.js → p-d3cf91a9.js} +1 -1
- package/dist/bromcom-ui/{p-5bf051b9.entry.js → p-d7a619c5.entry.js} +1 -1
- package/dist/bromcom-ui/p-ddd9e192.entry.js +5 -0
- package/dist/bromcom-ui/{p-9015080d.entry.js → p-e36b6b08.entry.js} +1 -1
- package/dist/bromcom-ui/{p-acfceb2b.entry.js → p-f15c1d3d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-858cee66.js → p-fc29c94d.js} +1 -1
- package/dist/cjs/{bcm-accordion_68.cjs.entry.js → bcm-accordion_69.cjs.entry.js} +120 -43
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +4 -4
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-caption.cjs.entry.js +4 -4
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-number-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-segment.cjs.entry.js +51 -0
- package/dist/cjs/bcm-segmented-picker.cjs.entry.js +158 -0
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +17 -11
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-a25d8fc8.js → generate-9d1bf6b3.js} +1 -1
- package/dist/cjs/{global-08c079a8.js → global-d69a64ec.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-3a56812f.js → number-helper-ae28b255.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-6afe17f3.js → package-6de220be.js} +1 -1
- package/dist/cjs/{validators-78797513.js → validators-3381bee2.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/molecules/color-input/color-input.css +127 -0
- package/dist/collection/components/molecules/color-input/color-input.js +34 -13
- package/dist/collection/components/molecules/color-palette/color-palette.js +114 -0
- package/dist/collection/components/molecules/color-palette/color-palette.style.js +25 -0
- package/dist/collection/components/organism/list/list.js +74 -20
- package/dist/collection/components/other/segmented-picker/segment.component.js +200 -0
- package/dist/collection/components/other/segmented-picker/segment.css +28 -0
- package/dist/collection/components/other/segmented-picker/segmented-picker.component.js +365 -0
- package/dist/collection/components/other/segmented-picker/segmented-picker.css +16 -0
- package/dist/collection/components/other/segmented-picker/types.js +1 -0
- package/dist/collection/components/other/toast/toast.js +15 -9
- package/dist/collection/templates/list-item-template.js +4 -4
- package/dist/collection/templates/list-template.js +2 -2
- package/dist/components/bcm-color-input.js +18 -15
- package/dist/components/bcm-color-palette.d.ts +11 -0
- package/dist/components/bcm-color-palette.js +10 -0
- package/dist/components/bcm-segment.d.ts +11 -0
- package/dist/components/bcm-segment.js +71 -0
- package/dist/components/bcm-segmented-picker.d.ts +11 -0
- package/dist/components/bcm-segmented-picker.js +182 -0
- package/dist/components/bcm-toast.js +15 -9
- package/dist/components/color-palette.js +71 -0
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/list.js +64 -27
- package/dist/esm/{bcm-accordion_68.entry.js → bcm-accordion_69.entry.js} +120 -44
- package/dist/esm/bcm-attendance-actions-comment.entry.js +4 -4
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +4 -4
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-caption.entry.js +4 -4
- package/dist/esm/bcm-card.entry.js +2 -2
- package/dist/esm/bcm-date-picker.entry.js +2 -2
- package/dist/esm/bcm-datetime-picker.entry.js +2 -2
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-form-2.entry.js +2 -2
- package/dist/esm/bcm-input-2.entry.js +2 -2
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +4 -4
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
- package/dist/esm/bcm-modal-2-header.entry.js +4 -4
- package/dist/esm/bcm-modal-2.entry.js +4 -4
- package/dist/esm/bcm-number-input.entry.js +4 -4
- package/dist/esm/bcm-segment.entry.js +47 -0
- package/dist/esm/bcm-segmented-picker.entry.js +154 -0
- package/dist/esm/bcm-skeleton.entry.js +4 -4
- package/dist/esm/bcm-table.entry.js +4 -4
- package/dist/esm/bcm-tag.entry.js +3 -3
- package/dist/esm/bcm-time-picker.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +17 -11
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{generate-a4b85775.js → generate-56d49b70.js} +1 -1
- package/dist/esm/{global-1baa11cd.js → global-97c42a5f.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-872d5482.js → number-helper-455ab41e.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +3 -3
- package/dist/esm/old-bcm-popover.entry.js +2 -2
- package/dist/esm/{package-1d6f13ed.js → package-edee14d5.js} +1 -1
- package/dist/esm/{validators-e9800e9a.js → validators-cc882165.js} +1 -1
- package/dist/types/components/molecules/color-input/color-input.d.ts +5 -4
- package/dist/types/components/molecules/color-palette/color-palette.d.ts +36 -0
- package/dist/types/components/molecules/color-palette/color-palette.style.d.ts +76 -0
- package/dist/types/components/organism/list/list.d.ts +4 -0
- package/dist/types/components/other/segmented-picker/segment.component.d.ts +42 -0
- package/dist/types/components/other/segmented-picker/segmented-picker.component.d.ts +86 -0
- package/dist/types/components/other/segmented-picker/types.d.ts +1 -0
- package/dist/types/components/other/toast/toast.d.ts +1 -0
- package/dist/types/components.d.ts +281 -0
- package/dist/types/templates/list-item-template.d.ts +2 -0
- package/dist/types/templates/list-template.d.ts +2 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-485ed6c1.entry.js +0 -5
- package/dist/bromcom-ui/p-5c4939a7.js +0 -5
- package/dist/bromcom-ui/p-8457670e.entry.js +0 -5
- package/dist/bromcom-ui/p-dcd69786.entry.js +0 -5
- package/dist/bromcom-ui/p-e9a43560.js +0 -5
- package/dist/bromcom-ui/p-ea24a822.entry.js +0 -5
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
8
8
|
import './_commonjsHelpers-7002e5de.js';
|
|
9
|
-
import './package-
|
|
9
|
+
import './package-edee14d5.js';
|
|
10
10
|
import './colors-ed4e7579.js';
|
|
11
11
|
|
|
12
12
|
const breadcrumbCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;color:var(--bcm-color-grey-7)}.bcm-breadcrumb__item{display:flex;align-items:center}.bcm-breadcrumb .seperator{cursor:default;display:inline-flex;align-items:center;justify-content:center;margin-left:8px;margin-right:8px;color:var(--bcm-color-grey-7)}.bcm-breadcrumb bcm-link:hover{color:var(--bcm-color-grey-7)}.bcm-breadcrumb .active{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .active:hover{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .is-link:hover{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb .is-link:hover bcm-link,.bcm-breadcrumb .is-link:hover bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item{position:relative;display:inline-flex}.bcm-breadcrumb__dropdown-item summary{display:inline-flex;align-items:center;cursor:pointer}.bcm-breadcrumb__dropdown-item summary>span{display:inline-flex;align-items:center}.bcm-breadcrumb__dropdown-item summary::-webkit-details-marker{display:none}.bcm-breadcrumb__dropdown-item summary:focus{outline:none}.bcm-breadcrumb__dropdown-item summary.open bcm-link,.bcm-breadcrumb__dropdown-item summary.open bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item summary .down-icon{margin-left:4px}.bcm-breadcrumb__dropdown-submenu{position:absolute;min-width:140px;background-color:var(--bcm-color-grey-1);box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);margin-top:4px}.bcm-breadcrumb__dropdown-submenu .dropdown-item{display:flex;padding:4px 8px}.bcm-breadcrumb__dropdown-submenu .dropdown-item bcm-link{width:100%}";
|
|
@@ -10,16 +10,16 @@ import './index-00c8a8f7.js';
|
|
|
10
10
|
import './types-6f06fa1a.js';
|
|
11
11
|
import './color-helper-ba15b0d8.js';
|
|
12
12
|
import './datetime-helper-df25808a.js';
|
|
13
|
-
import './generate-
|
|
14
|
-
import './number-helper-
|
|
15
|
-
import './validators-
|
|
13
|
+
import './generate-56d49b70.js';
|
|
14
|
+
import './number-helper-455ab41e.js';
|
|
15
|
+
import './validators-cc882165.js';
|
|
16
16
|
import './element-dragger-b75266e6.js';
|
|
17
17
|
import './types-9493a7ed.js';
|
|
18
18
|
import './_commonjsHelpers-7002e5de.js';
|
|
19
19
|
import './colors-1d7854ea.js';
|
|
20
20
|
import './utils-7727d09e.js';
|
|
21
21
|
import './colors-ed4e7579.js';
|
|
22
|
-
import './package-
|
|
22
|
+
import './package-edee14d5.js';
|
|
23
23
|
|
|
24
24
|
const BcmCaption = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
7
|
import { C as ColorHelper } from './color-helper-ba15b0d8.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
9
|
import { S as StringHelper } from './string-helper-69203215.js';
|
|
10
10
|
import { S as SlotTemplate } from './slot-template-e0202c5a.js';
|
|
11
11
|
import './_commonjsHelpers-7002e5de.js';
|
|
12
12
|
import './colors-1d7854ea.js';
|
|
13
13
|
import './utils-7727d09e.js';
|
|
14
14
|
import './colors-ed4e7579.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-edee14d5.js';
|
|
16
16
|
import './bcm-a50d55ba.js';
|
|
17
17
|
|
|
18
18
|
const cardCss = "@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-card{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1);box-sizing:border-box}.bcm-card__header,.bcm-card__body,.bcm-card__footer{display:block;width:100%}.bcm-card__header{border-radius:8px 8px 0 0;padding:12px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-card__body{padding:12px 24px}.bcm-card__footer{padding:12px 24px;border-radius:0 0 8px 8px}";
|
|
@@ -6,11 +6,11 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-46
|
|
|
6
6
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
|
|
8
8
|
import { D as DateTimeHelper } from './datetime-helper-df25808a.js';
|
|
9
|
-
import { G as Generate } from './generate-
|
|
9
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
10
10
|
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
11
11
|
import { d as delay } from './utils-7727d09e.js';
|
|
12
12
|
import './_commonjsHelpers-7002e5de.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-edee14d5.js';
|
|
14
14
|
import './colors-ed4e7579.js';
|
|
15
15
|
|
|
16
16
|
const datePickerCss = "@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}";
|
|
@@ -7,13 +7,13 @@ import { D as DragDirections, E as ElementDragger } from './element-dragger-b752
|
|
|
7
7
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
8
8
|
import { D as DateTimeHelper } from './datetime-helper-df25808a.js';
|
|
9
9
|
import { d as delay } from './utils-7727d09e.js';
|
|
10
|
-
import { G as Generate } from './generate-
|
|
10
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
11
11
|
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
12
12
|
import { g as getPlacement, s as setPosition } from './popover-placement-2bf3a181.js';
|
|
13
13
|
import { L as LabelTemplate } from './label-template-4c3797f4.js';
|
|
14
14
|
import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
|
|
15
15
|
import './_commonjsHelpers-7002e5de.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-edee14d5.js';
|
|
17
17
|
import './colors-ed4e7579.js';
|
|
18
18
|
import './string-helper-69203215.js';
|
|
19
19
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
7
|
-
import './package-
|
|
6
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
7
|
+
import './package-edee14d5.js';
|
|
8
8
|
import './colors-ed4e7579.js';
|
|
9
9
|
import './_commonjsHelpers-7002e5de.js';
|
|
10
10
|
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
|
|
7
|
-
import { G as Generate, s as snq } from './generate-
|
|
7
|
+
import { G as Generate, s as snq } from './generate-56d49b70.js';
|
|
8
8
|
import { S as StringHelper } from './string-helper-69203215.js';
|
|
9
9
|
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-edee14d5.js';
|
|
11
11
|
import './colors-ed4e7579.js';
|
|
12
12
|
import './_commonjsHelpers-7002e5de.js';
|
|
13
13
|
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-4614b7f0.js';
|
|
6
6
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
9
|
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
10
10
|
import { C as CaptionTemplate } from './caption-template-16dd9444.js';
|
|
11
11
|
import { i as inputStyle } from './input.style-0ddc0073.js';
|
|
12
12
|
import './_commonjsHelpers-7002e5de.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-edee14d5.js';
|
|
14
14
|
import './colors-ed4e7579.js';
|
|
15
15
|
import './index-3bc8c6e3.js';
|
|
16
16
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
7
7
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-edee14d5.js';
|
|
9
9
|
import './colors-ed4e7579.js';
|
|
10
10
|
import './_commonjsHelpers-7002e5de.js';
|
|
11
11
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, F as Fragment } from './index-4614b7f0.js';
|
|
6
6
|
import './color-helper-ba15b0d8.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
|
+
import './number-helper-455ab41e.js';
|
|
10
10
|
import './string-helper-69203215.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-cc882165.js';
|
|
12
12
|
import './element-dragger-b75266e6.js';
|
|
13
13
|
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
14
14
|
import { C as CaptionTemplate } from './caption-template-16dd9444.js';
|
|
@@ -20,7 +20,7 @@ import './colors-1d7854ea.js';
|
|
|
20
20
|
import './utils-7727d09e.js';
|
|
21
21
|
import './colors-ed4e7579.js';
|
|
22
22
|
import './_commonjsHelpers-7002e5de.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-edee14d5.js';
|
|
24
24
|
|
|
25
25
|
const inputDropdownStyle = ce({
|
|
26
26
|
slots: {
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import './color-helper-ba15b0d8.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
|
+
import './number-helper-455ab41e.js';
|
|
10
10
|
import './string-helper-69203215.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-cc882165.js';
|
|
12
12
|
import './element-dragger-b75266e6.js';
|
|
13
13
|
import './bcm-a50d55ba.js';
|
|
14
14
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
@@ -16,7 +16,7 @@ import './colors-1d7854ea.js';
|
|
|
16
16
|
import './utils-7727d09e.js';
|
|
17
17
|
import './colors-ed4e7579.js';
|
|
18
18
|
import './_commonjsHelpers-7002e5de.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-edee14d5.js';
|
|
20
20
|
|
|
21
21
|
const BcmModal2Footer = class {
|
|
22
22
|
constructor(hostRef) {
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import './color-helper-ba15b0d8.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
|
+
import './number-helper-455ab41e.js';
|
|
10
10
|
import './string-helper-69203215.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-cc882165.js';
|
|
12
12
|
import './element-dragger-b75266e6.js';
|
|
13
13
|
import './bcm-a50d55ba.js';
|
|
14
14
|
import './colors-1d7854ea.js';
|
|
15
15
|
import './utils-7727d09e.js';
|
|
16
16
|
import './colors-ed4e7579.js';
|
|
17
17
|
import './_commonjsHelpers-7002e5de.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-edee14d5.js';
|
|
19
19
|
|
|
20
20
|
const BcmModal2Header = class {
|
|
21
21
|
constructor(hostRef) {
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import './color-helper-ba15b0d8.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
|
+
import './number-helper-455ab41e.js';
|
|
10
10
|
import './string-helper-69203215.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-cc882165.js';
|
|
12
12
|
import './element-dragger-b75266e6.js';
|
|
13
13
|
import { d as delay } from './utils-7727d09e.js';
|
|
14
14
|
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
@@ -16,7 +16,7 @@ import { c as classnames } from './index-00c8a8f7.js';
|
|
|
16
16
|
import './colors-1d7854ea.js';
|
|
17
17
|
import './colors-ed4e7579.js';
|
|
18
18
|
import './_commonjsHelpers-7002e5de.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-edee14d5.js';
|
|
20
20
|
|
|
21
21
|
const BcmModal2 = class {
|
|
22
22
|
constructor(hostRef) {
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import './color-helper-ba15b0d8.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
|
+
import './number-helper-455ab41e.js';
|
|
10
10
|
import { S as StringHelper } from './string-helper-69203215.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-cc882165.js';
|
|
12
12
|
import './element-dragger-b75266e6.js';
|
|
13
13
|
import { d as delay } from './utils-7727d09e.js';
|
|
14
14
|
import { B as Bcm } from './bcm-a50d55ba.js';
|
|
@@ -20,7 +20,7 @@ import { i as inputStyle } from './input.style-0ddc0073.js';
|
|
|
20
20
|
import './colors-1d7854ea.js';
|
|
21
21
|
import './colors-ed4e7579.js';
|
|
22
22
|
import './_commonjsHelpers-7002e5de.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-edee14d5.js';
|
|
24
24
|
import './index-3bc8c6e3.js';
|
|
25
25
|
|
|
26
26
|
const NumberInput = class {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
8
|
+
|
|
9
|
+
const segmentCss = "bcm-segment{display:flex;align-items:center;position:relative;width:100%}.bcm-segment__button{white-space:nowrap;flex:1;width:100%}.bcm-segment__divider{position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:20px;background-color:var(--bcm-ui-color-border-default);transition:opacity 800ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.bcm-segment__divider--hidden{opacity:0}";
|
|
10
|
+
|
|
11
|
+
const BcmSegment = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
registerInstance(this, hostRef);
|
|
14
|
+
this.bcmSegmentClick = createEvent(this, "bcm-segment-click", 5);
|
|
15
|
+
this.handleClick = () => {
|
|
16
|
+
if (!this.disabled) {
|
|
17
|
+
this.bcmSegmentClick.emit(this.value);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
this.value = undefined;
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
this.selected = false;
|
|
23
|
+
this.size = 'medium';
|
|
24
|
+
this.index = 0;
|
|
25
|
+
this.activeIndex = 0;
|
|
26
|
+
this.totalSegments = 0;
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
const isLastSegment = this.totalSegments > 0 && this.index === this.totalSegments - 1;
|
|
30
|
+
const hideDivider = isLastSegment || this.selected || this.index === this.activeIndex - 1;
|
|
31
|
+
return (h(Host, { role: "radio", "aria-checked": this.selected.toString() }, h("button", { class: classnames("bcm-ui-element bcm-segment__button tw-relative tw-z-20 tw-px-3 tw-text-center tw-font-medium tw-transition-colors tw-border-none tw-bg-transparent tw-select-none", {
|
|
32
|
+
"tw-text-2 tw-py-px": this.size === "small",
|
|
33
|
+
"tw-text-3 tw-py-1": this.size === "medium",
|
|
34
|
+
"tw-text-4 tw-py-2": this.size === "large",
|
|
35
|
+
}, {
|
|
36
|
+
"tw-text-color-header": this.selected,
|
|
37
|
+
"tw-text-color-helper": !this.selected,
|
|
38
|
+
}, {
|
|
39
|
+
"tw-cursor-not-allowed tw-opacity-50": this.disabled,
|
|
40
|
+
"tw-cursor-pointer hover:tw-text-color-header": !this.disabled,
|
|
41
|
+
}), onClick: this.handleClick, disabled: this.disabled, type: "button" }, h("slot", null)), h("div", { class: `bcm-segment__divider ${hideDivider ? 'bcm-segment__divider--hidden' : ''}` })));
|
|
42
|
+
}
|
|
43
|
+
get el() { return getElement(this); }
|
|
44
|
+
};
|
|
45
|
+
BcmSegment.style = segmentCss;
|
|
46
|
+
|
|
47
|
+
export { BcmSegment as bcm_segment };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
|
+
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
|
+
import './_commonjsHelpers-7002e5de.js';
|
|
8
|
+
|
|
9
|
+
const segmentedPickerCss = "bcm-segmented-picker{display:block}.bcm-segmented-picker__container{--indicator-left:0%;--indicator-width:0%}.bcm-segmented-picker__indicator{left:var(--indicator-left);width:var(--indicator-width);transition:all 200ms cubic-bezier(0.4, 0, 0.2, 1)}";
|
|
10
|
+
|
|
11
|
+
const BcmSegmentedPicker = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
registerInstance(this, hostRef);
|
|
14
|
+
this.bcmSegmentChange = createEvent(this, "bcm-segment-change", 1);
|
|
15
|
+
this.segmentElements = [];
|
|
16
|
+
this.value = undefined;
|
|
17
|
+
this.name = undefined;
|
|
18
|
+
this.required = false;
|
|
19
|
+
this.size = 'medium';
|
|
20
|
+
this.fullWidth = false;
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
this.shadow = false;
|
|
23
|
+
this.segments = [];
|
|
24
|
+
this.activeIndex = 0;
|
|
25
|
+
}
|
|
26
|
+
componentWillLoad() {
|
|
27
|
+
this.discoverSegments();
|
|
28
|
+
this.updateActiveIndex();
|
|
29
|
+
this.propagatePropsToSegments();
|
|
30
|
+
this.updateSegmentStates();
|
|
31
|
+
}
|
|
32
|
+
componentDidLoad() {
|
|
33
|
+
this.updateCSSVariables();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Discovers all bcm-segment children
|
|
37
|
+
*/
|
|
38
|
+
discoverSegments() {
|
|
39
|
+
this.segmentElements = Array.from(this.el.querySelectorAll('bcm-segment'));
|
|
40
|
+
this.segments = this.segmentElements.map((segment) => ({
|
|
41
|
+
value: segment.value,
|
|
42
|
+
disabled: segment.disabled || false,
|
|
43
|
+
}));
|
|
44
|
+
// Set initial value if not provided
|
|
45
|
+
if (!this.value && this.segments.length > 0) {
|
|
46
|
+
const firstEnabledSegment = this.segments.find(s => !s.disabled);
|
|
47
|
+
if (firstEnabledSegment) {
|
|
48
|
+
this.value = firstEnabledSegment.value;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Updates the active index based on current value
|
|
54
|
+
*/
|
|
55
|
+
updateActiveIndex() {
|
|
56
|
+
const index = this.segments.findIndex(s => s.value === this.value);
|
|
57
|
+
this.activeIndex = index >= 0 ? index : 0;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Updates selected state of all segment elements
|
|
61
|
+
*/
|
|
62
|
+
updateSegmentStates() {
|
|
63
|
+
this.segmentElements.forEach((segment) => {
|
|
64
|
+
segment.selected = segment.value === this.value;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Updates CSS custom properties for indicator positioning
|
|
69
|
+
*/
|
|
70
|
+
updateCSSVariables() {
|
|
71
|
+
const container = this.el.querySelector('.bcm-segmented-picker__container');
|
|
72
|
+
if (container && this.segments.length > 0) {
|
|
73
|
+
const segmentWidth = 100 / this.segments.length;
|
|
74
|
+
const leftPosition = this.activeIndex * segmentWidth;
|
|
75
|
+
container.style.setProperty('--indicator-left', `${leftPosition}%`);
|
|
76
|
+
container.style.setProperty('--indicator-width', `${segmentWidth}%`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
handleValueChange(newValue, oldValue) {
|
|
80
|
+
this.updateActiveIndex();
|
|
81
|
+
this.propagatePropsToSegments();
|
|
82
|
+
this.updateSegmentStates();
|
|
83
|
+
this.updateCSSVariables();
|
|
84
|
+
if (oldValue !== undefined && oldValue !== newValue) {
|
|
85
|
+
this.bcmSegmentChange.emit({
|
|
86
|
+
value: newValue,
|
|
87
|
+
previousValue: oldValue,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
handleSizeChange() {
|
|
92
|
+
this.propagatePropsToSegments();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Propagates parent props to child segments
|
|
96
|
+
*/
|
|
97
|
+
propagatePropsToSegments() {
|
|
98
|
+
const total = this.segmentElements.length;
|
|
99
|
+
this.segmentElements.forEach((segment, index) => {
|
|
100
|
+
segment.size = this.size;
|
|
101
|
+
segment.index = index;
|
|
102
|
+
segment.activeIndex = this.activeIndex;
|
|
103
|
+
segment.totalSegments = total;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Handles segment click events from children
|
|
108
|
+
*/
|
|
109
|
+
handleSegmentClick(event) {
|
|
110
|
+
const clickedValue = event.detail;
|
|
111
|
+
const segment = this.segments.find(s => s.value === clickedValue);
|
|
112
|
+
if (segment && !segment.disabled && !this.disabled) {
|
|
113
|
+
this.value = clickedValue;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Public method to programmatically set active segment
|
|
118
|
+
*/
|
|
119
|
+
async setValue(value) {
|
|
120
|
+
const segment = this.segments.find(s => s.value === value);
|
|
121
|
+
if (segment && !segment.disabled) {
|
|
122
|
+
this.value = value;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Public method to get active segment value
|
|
127
|
+
*/
|
|
128
|
+
async getValue() {
|
|
129
|
+
return this.value;
|
|
130
|
+
}
|
|
131
|
+
render() {
|
|
132
|
+
return (h(Host, null, h("div", { class: classnames("bcm-ui-element bcm-segmented-picker__container tw-inline-flex tw-relative tw-rounded-lg tw-border tw-border-solid tw-border-color tw-bg-color-default tw-overflow-hidden", {
|
|
133
|
+
"tw-text-2": this.size === "small",
|
|
134
|
+
"tw-text-3": this.size === "medium",
|
|
135
|
+
"tw-text-4": this.size === "large",
|
|
136
|
+
}, {
|
|
137
|
+
"tw-w-full": this.fullWidth,
|
|
138
|
+
"tw-w-auto": !this.fullWidth,
|
|
139
|
+
}, {
|
|
140
|
+
"tw-shadow-md": this.shadow,
|
|
141
|
+
}, {
|
|
142
|
+
"tw-opacity-50 tw-cursor-not-allowed": this.disabled,
|
|
143
|
+
"tw-cursor-pointer": !this.disabled,
|
|
144
|
+
}), role: "radiogroup", "aria-disabled": this.disabled }, h("div", { class: "bcm-segmented-picker__indicator tw-absolute tw-inset-y-0 tw-bg-color-base tw-rounded tw-shadow-sm tw-z-20" }), h("div", { class: "bcm-segmented-picker__grid tw-grid tw-grid-flow-col tw-auto-cols-fr tw-relative tw-w-full" }, h("slot", null)))));
|
|
145
|
+
}
|
|
146
|
+
get el() { return getElement(this); }
|
|
147
|
+
static get watchers() { return {
|
|
148
|
+
"value": ["handleValueChange"],
|
|
149
|
+
"size": ["handleSizeChange"]
|
|
150
|
+
}; }
|
|
151
|
+
};
|
|
152
|
+
BcmSegmentedPicker.style = segmentedPickerCss;
|
|
153
|
+
|
|
154
|
+
export { BcmSegmentedPicker as bcm_segmented_picker };
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host } from './index-4614b7f0.js';
|
|
6
6
|
import './color-helper-ba15b0d8.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
9
|
-
import './number-helper-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
|
+
import './number-helper-455ab41e.js';
|
|
10
10
|
import './string-helper-69203215.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-cc882165.js';
|
|
12
12
|
import './element-dragger-b75266e6.js';
|
|
13
13
|
import './bcm-a50d55ba.js';
|
|
14
14
|
import { c as ce } from './index-3bc8c6e3.js';
|
|
@@ -16,7 +16,7 @@ import './colors-1d7854ea.js';
|
|
|
16
16
|
import './utils-7727d09e.js';
|
|
17
17
|
import './colors-ed4e7579.js';
|
|
18
18
|
import './_commonjsHelpers-7002e5de.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-edee14d5.js';
|
|
20
20
|
|
|
21
21
|
const skeletonStyle = ce({
|
|
22
22
|
slots: {
|
|
@@ -6,10 +6,10 @@ import { h, F as Fragment, r as registerInstance, H as Host, g as getElement } f
|
|
|
6
6
|
import { M as ModuleNames, L as LicenseManager, a as MD5, W as WatermarkComp, _, R as RowNode, E as Events, C as ClientSideRowModelSteps, b as RowHighlightPosition, c as ChangedPath, A as Autowired, O as Optional, P as PostConstruct, B as Bean, d as BeanStub, G as GROUP_AUTO_COLUMN_ID, e as ColumnGroup, f as GroupInstanceIdCreator, g as ExcelFactoryMode, h as CssClassApplier, i as AgPromise, j as RefSelector, k as Component, l as ModuleRegistry, m as Grid } from './watermark-f2c6a1f9.js';
|
|
7
7
|
import './color-helper-ba15b0d8.js';
|
|
8
8
|
import './datetime-helper-df25808a.js';
|
|
9
|
-
import { G as Generate, s as snq } from './generate-
|
|
10
|
-
import './number-helper-
|
|
9
|
+
import { G as Generate, s as snq } from './generate-56d49b70.js';
|
|
10
|
+
import './number-helper-455ab41e.js';
|
|
11
11
|
import { S as StringHelper } from './string-helper-69203215.js';
|
|
12
|
-
import './validators-
|
|
12
|
+
import './validators-cc882165.js';
|
|
13
13
|
import './element-dragger-b75266e6.js';
|
|
14
14
|
import './bcm-a50d55ba.js';
|
|
15
15
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
@@ -19,7 +19,7 @@ import './colors-1d7854ea.js';
|
|
|
19
19
|
import './utils-7727d09e.js';
|
|
20
20
|
import './colors-ed4e7579.js';
|
|
21
21
|
import './_commonjsHelpers-7002e5de.js';
|
|
22
|
-
import './package-
|
|
22
|
+
import './package-edee14d5.js';
|
|
23
23
|
|
|
24
24
|
// DO NOT UPDATE MANUALLY: Generated from script during build time
|
|
25
25
|
var VERSION$4 = '29.0.0';
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-4614b7f0.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
7
7
|
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
8
8
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
9
|
-
import { N as NumberHelper } from './number-helper-
|
|
9
|
+
import { N as NumberHelper } from './number-helper-455ab41e.js';
|
|
10
10
|
import { e as extractColor } from './utils-7727d09e.js';
|
|
11
11
|
import { C as ColorPalette } from './colors-1d7854ea.js';
|
|
12
12
|
import { C as ColorProps } from './types-9493a7ed.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-edee14d5.js';
|
|
14
14
|
import './colors-ed4e7579.js';
|
|
15
15
|
import './_commonjsHelpers-7002e5de.js';
|
|
16
16
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-b8ca22f2.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
9
|
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
10
10
|
import { d as delay } from './utils-7727d09e.js';
|
|
11
11
|
import './_commonjsHelpers-7002e5de.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-edee14d5.js';
|
|
13
13
|
import './colors-ed4e7579.js';
|
|
14
14
|
|
|
15
15
|
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}";
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4614b7f0.js';
|
|
6
6
|
import { c as classnames } from './index-00c8a8f7.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
8
|
-
import { S as StringHelper } from './string-helper-69203215.js';
|
|
7
|
+
import { G as Generate } from './generate-56d49b70.js';
|
|
9
8
|
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
10
9
|
import { d as delay } from './utils-7727d09e.js';
|
|
11
10
|
import './_commonjsHelpers-7002e5de.js';
|
|
12
|
-
import './package-
|
|
11
|
+
import './package-edee14d5.js';
|
|
13
12
|
import './colors-ed4e7579.js';
|
|
14
13
|
|
|
15
14
|
const BcmToast = class {
|
|
@@ -31,6 +30,13 @@ const BcmToast = class {
|
|
|
31
30
|
this.visible = false;
|
|
32
31
|
this.visibleContainer = false;
|
|
33
32
|
}
|
|
33
|
+
renderMultiline(text) {
|
|
34
|
+
if (!text) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const lines = text.split("\n");
|
|
38
|
+
return lines.map((line, index) => [index > 0 && h("br", null), line]);
|
|
39
|
+
}
|
|
34
40
|
async show() {
|
|
35
41
|
const toast = document.getElementById(this._id + "-container");
|
|
36
42
|
if (toast) {
|
|
@@ -86,7 +92,7 @@ const BcmToast = class {
|
|
|
86
92
|
return container;
|
|
87
93
|
}
|
|
88
94
|
render() {
|
|
89
|
-
return (h(Host, { class: "tw-hidden" }, h("div", { class: classnames({ "tw-hidden": !this.visible }), id: this._id + "-container", onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("div", { class: classnames("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out", "tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2", "tw-border-
|
|
95
|
+
return (h(Host, { class: "tw-hidden" }, h("div", { class: classnames({ "tw-hidden": !this.visible }), id: this._id + "-container", onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("div", { class: classnames("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out", "tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2", "tw-border-gray-300 tw-bg-white tw-text-slate-600", {
|
|
90
96
|
"tw-p-4": !this.description,
|
|
91
97
|
"tw-p-6": this.description,
|
|
92
98
|
}, "tw-transform tw-transition tw-duration-300 tw-ease-in-out ", {
|
|
@@ -94,11 +100,11 @@ const BcmToast = class {
|
|
|
94
100
|
"tw-opacity-0": !this.visibleContainer,
|
|
95
101
|
"tw-translate-y-[-100%]": !this.visibleContainer && this.position.split("-")[0] === "top",
|
|
96
102
|
"tw-translate-y-[100%]": !this.visibleContainer && this.position.split("-")[0] === "bottom",
|
|
97
|
-
}) }, h("div", { class: "tw-flex tw-items-
|
|
98
|
-
"tw-text-
|
|
99
|
-
"tw-text-
|
|
100
|
-
"tw-text-
|
|
101
|
-
"tw-text-
|
|
103
|
+
}) }, h("div", { class: "tw-flex tw-items-start tw-justify-between tw-gap-5" }, h("div", { class: "tw-flex tw-items-start tw-gap-3 " }, this.status && (h("i", { class: classnames("tw-text-6 tw-pt-0.5", this.messageIcon ? this.messageIcon : "far", {
|
|
104
|
+
"tw-text-emerald-500": this.status === "success",
|
|
105
|
+
"tw-text-red-500": this.status === "error",
|
|
106
|
+
"tw-text-amber-500": this.status === "warning",
|
|
107
|
+
"tw-text-blue-500": this.status === "info",
|
|
102
108
|
}, {
|
|
103
109
|
"fa-check-circle": !this.messageIcon && this.status === "success",
|
|
104
110
|
"fa-exclamation-circle": !this.messageIcon && this.status === "error",
|
|
@@ -107,9 +113,9 @@ const BcmToast = class {
|
|
|
107
113
|
}) })), h("span", { class: classnames({
|
|
108
114
|
"tw-text-4": !this.description,
|
|
109
115
|
"tw-text-6 tw-font-medium": this.description,
|
|
110
|
-
}) },
|
|
116
|
+
}) }, this.renderMultiline(this.message))), h("div", { class: "tw-flex tw-items-baseline tw-gap-2" }, this.viewButton && (h("button", { onClick: () => this.bcmToastView.emit(), title: "View details", class: classnames("tw-cursor-pointer tw-rounded tw-bg-transparent tw-p-0 tw-px-1 tw-text-4 tw-text-inherit", "hover:tw-bg-gray-100 hover:tw-text-slate-800", "active:tw-bg-gray-200", "tw-transition tw-duration-300 tw-ease-in-out", {
|
|
111
117
|
"tw-font-medium": this.description,
|
|
112
|
-
}) }, "View")), this.closeButton && (h("button", { title: "Close", onClick: () => this.hide(), class: classnames("tw-
|
|
118
|
+
}) }, "View")), this.closeButton && (h("button", { title: "Close", onClick: () => this.hide(), class: classnames("tw-rounded tw-bg-transparent tw-p-0", "tw-flex tw-h-6 tw-w-6 tw-cursor-pointer tw-items-center tw-justify-center tw-text-3 tw-text-inherit", "hover:tw-bg-gray-100 hover:tw-text-slate-800", "active:tw-bg-gray-200") }, h("i", { class: "fal fa-times" }))))), this.description && h("div", { class: "tw-text-3 " }, this.renderMultiline(this.description)), h("slot", null)))));
|
|
113
119
|
}
|
|
114
120
|
get el() { return getElement(this); }
|
|
115
121
|
};
|