bromcom-ui 2.9.0-rc.5 → 2.9.0-rc.6
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.esm.js +1 -1
- package/dist/bromcom-ui/{p-fb22bc06.entry.js → p-0641597e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7bff7371.entry.js → p-16dd7db9.entry.js} +1 -1
- package/dist/bromcom-ui/p-17264523.js +5 -0
- package/dist/bromcom-ui/{p-947c78e3.js → p-17af6738.js} +1 -1
- package/dist/bromcom-ui/p-184b7d3b.js +5 -0
- package/dist/bromcom-ui/{p-65318f25.entry.js → p-1fbd8af5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-29a12785.entry.js → p-24b8154c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1a405289.entry.js → p-24d8e9d6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f532862e.entry.js → p-2afdec61.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a8aaa382.js → p-2b13dd48.js} +1 -1
- package/dist/bromcom-ui/{p-f0350c0c.entry.js → p-2b88c7bb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2a02b473.entry.js → p-31eabaf3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-38972c46.js → p-3215d598.js} +1 -1
- package/dist/bromcom-ui/{p-ca32c1b9.entry.js → p-3baf677c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1a04159f.entry.js → p-459212eb.entry.js} +1 -1
- package/dist/bromcom-ui/p-57f8802e.entry.js +5 -0
- package/dist/bromcom-ui/{p-9d98d32d.entry.js → p-5c468c5b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5855b125.entry.js → p-6272ecb4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-24cffc16.entry.js → p-6a5ac874.entry.js} +1 -1
- package/dist/bromcom-ui/{p-721e0cb5.entry.js → p-6b861832.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ef8bbaf3.entry.js → p-7a394115.entry.js} +1 -1
- package/dist/bromcom-ui/{p-96614f57.entry.js → p-81b2dffb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-285722ad.entry.js → p-891de348.entry.js} +1 -1
- package/dist/bromcom-ui/{p-365eec45.entry.js → p-8d7bbe30.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a02c333f.entry.js → p-8de9d6b6.entry.js} +1 -1
- package/dist/bromcom-ui/p-8fc8b4ff.entry.js +5 -0
- package/dist/bromcom-ui/{p-25f9928a.entry.js → p-9099a1bf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d37379d4.entry.js → p-9773e744.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0d4372c9.entry.js → p-a512ca45.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a4731c71.entry.js → p-b10265d7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d58107e2.entry.js → p-b26ded9b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e9c963b3.entry.js → p-b45b54b5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f8cbdade.entry.js → p-b47e4417.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f889d1b6.entry.js → p-c2cbb810.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9e05f845.entry.js → p-c387f0fb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a1335bd5.entry.js → p-c3a91954.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0c549bd0.entry.js → p-ca6cd989.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f302cbdf.entry.js → p-ccaabc2e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-546f5f82.entry.js → p-d37502f9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-53448351.js → p-dbdb10d5.js} +1 -1
- package/dist/bromcom-ui/{p-ba89e3c7.entry.js → p-dd43bcd9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8260eda6.entry.js → p-de850d57.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f3b546c6.entry.js → p-e0c60c5d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8e2e77ca.entry.js → p-e520d2a2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c1de1367.entry.js → p-e86e4968.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a5953ecd.entry.js → p-eaad2239.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a3b54a22.entry.js → p-ee4b8753.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f8bf531f.entry.js → p-ee50f5e2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61172e12.entry.js → p-ee5da693.entry.js} +1 -1
- package/dist/bromcom-ui/{p-179af180.entry.js → p-f0fa1c29.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e92d9879.entry.js → p-fe37e88f.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
- package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
- package/dist/cjs/bcm-avatar.cjs.entry.js +3 -3
- package/dist/cjs/bcm-badge_15.cjs.entry.js +4 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-card.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bcm-chip-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
- package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
- package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-default.cjs.entry.js +1 -1
- package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input.cjs.entry.js +8 -8
- package/dist/cjs/bcm-label.cjs.entry.js +1 -1
- package/dist/cjs/bcm-list_3.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
- package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
- package/dist/cjs/bcm-range.cjs.entry.js +1 -1
- package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bcm-step.cjs.entry.js +2 -2
- package/dist/cjs/bcm-stepper.cjs.entry.js +4 -4
- package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
- package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
- package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
- package/dist/cjs/{generate-d0470117.js → generate-d3f8c970.js} +1 -1
- package/dist/cjs/{input-template-e1d297ed.js → input-template-22725c68.js} +1 -1
- package/dist/cjs/{json-parse-decarator-026354f1.js → json-parse-decarator-22c236ad.js} +1 -1
- package/dist/cjs/{number-helper-b3d57233.js → number-helper-66fe9479.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
- package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
- package/dist/cjs/{stepper-states-09cd4bed.js → stepper-states-43daae37.js} +1 -1
- package/dist/cjs/{validators-39ca1c93.js → validators-aa39e3ec.js} +1 -1
- package/dist/collection/components/molecules/input/input.js +4 -4
- package/dist/components/generate.js +1 -1
- package/dist/components/input.js +4 -4
- package/dist/esm/bcm-accordion.entry.js +1 -1
- package/dist/esm/bcm-alert.entry.js +1 -1
- package/dist/esm/bcm-attendance.entry.js +1 -1
- package/dist/esm/bcm-avatar.entry.js +3 -3
- package/dist/esm/bcm-badge_15.entry.js +4 -4
- package/dist/esm/bcm-breadcrumb.entry.js +1 -1
- package/dist/esm/bcm-button-group.entry.js +1 -1
- package/dist/esm/bcm-card.entry.js +1 -1
- package/dist/esm/bcm-checkbox-group.entry.js +1 -1
- package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
- package/dist/esm/bcm-checkbox.entry.js +1 -1
- package/dist/esm/bcm-chip-group.entry.js +3 -3
- package/dist/esm/bcm-chip.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +1 -1
- package/dist/esm/bcm-color-input.entry.js +3 -3
- package/dist/esm/bcm-date-picker.entry.js +1 -1
- package/dist/esm/bcm-datetime-picker.entry.js +1 -1
- package/dist/esm/bcm-default.entry.js +1 -1
- package/dist/esm/bcm-drawer.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +1 -1
- package/dist/esm/bcm-form-2.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +1 -1
- package/dist/esm/bcm-input.entry.js +8 -8
- package/dist/esm/bcm-label.entry.js +1 -1
- package/dist/esm/bcm-list_3.entry.js +5 -5
- package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
- package/dist/esm/bcm-modal-2-header.entry.js +3 -3
- package/dist/esm/bcm-modal-2.entry.js +3 -3
- package/dist/esm/bcm-modal.entry.js +1 -1
- package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
- package/dist/esm/bcm-popconfirm.entry.js +1 -1
- package/dist/esm/bcm-progress.entry.js +1 -1
- package/dist/esm/bcm-radio-group.entry.js +3 -3
- package/dist/esm/bcm-radio.entry.js +3 -3
- package/dist/esm/bcm-range.entry.js +1 -1
- package/dist/esm/bcm-skeleton.entry.js +1 -1
- package/dist/esm/bcm-step.entry.js +2 -2
- package/dist/esm/bcm-stepper.entry.js +4 -4
- package/dist/esm/bcm-switch.entry.js +1 -1
- package/dist/esm/bcm-tag.entry.js +2 -2
- package/dist/esm/bcm-textarea.entry.js +2 -2
- package/dist/esm/bcm-time-picker.entry.js +1 -1
- package/dist/esm/bcm-toast.entry.js +1 -1
- package/dist/esm/{generate-abec36e5.js → generate-786bd626.js} +1 -1
- package/dist/esm/{input-template-a02d00ff.js → input-template-88fba8d7.js} +1 -1
- package/dist/esm/{json-parse-decarator-268fe3de.js → json-parse-decarator-e85e0fea.js} +1 -1
- package/dist/esm/{number-helper-cf26accd.js → number-helper-d9b73e76.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +2 -2
- package/dist/esm/old-bcm-popover.entry.js +1 -1
- package/dist/esm/{stepper-states-cf443480.js → stepper-states-026cdd66.js} +1 -1
- package/dist/esm/{validators-63753298.js → validators-0b019b63.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0543a86f.js +0 -5
- package/dist/bromcom-ui/p-0a528362.entry.js +0 -5
- package/dist/bromcom-ui/p-90e5c655.js +0 -5
- package/dist/bromcom-ui/p-fceaf172.entry.js +0 -5
|
@@ -7,7 +7,7 @@ import { D as DragDirections, E as ElementDragger } from './element-dragger-7ea0
|
|
|
7
7
|
import { c as classnames } from './index-ed9652af.js';
|
|
8
8
|
import { D as DateTimeHelper } from './datetime-helper-df25808a.js';
|
|
9
9
|
import { d as delay } from './utils-b3338faf.js';
|
|
10
|
-
import { G as Generate } from './generate-
|
|
10
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
11
11
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
12
12
|
import { g as getPlacement, s as setPosition } from './popover-placement-78f86f15.js';
|
|
13
13
|
import { L as LabelTemplate } from './label-template-98dafeb3.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
7
7
|
import './colors-44c95e7e.js';
|
|
8
8
|
import './_commonjsHelpers-3016b722.js';
|
|
9
9
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import './color-helper-116755ed.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-786bd626.js';
|
|
9
|
+
import './number-helper-d9b73e76.js';
|
|
10
10
|
import './string-helper-6bd24967.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-0b019b63.js';
|
|
12
12
|
import './element-dragger-7ea06c76.js';
|
|
13
13
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
14
14
|
import { c as classnames } from './index-ed9652af.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
7
7
|
import { c as classnames } from './index-ed9652af.js';
|
|
8
8
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
9
9
|
import { C as ColorHelper } from './color-helper-116755ed.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-07d3502a.js';
|
|
7
|
-
import { G as Generate, s as snq } from './generate-
|
|
7
|
+
import { G as Generate, s as snq } from './generate-786bd626.js';
|
|
8
8
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
9
9
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
10
10
|
import './colors-44c95e7e.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
7
7
|
import { c as classnames } from './index-ed9652af.js';
|
|
8
8
|
import './colors-44c95e7e.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-348b16ad.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
7
|
-
import { N as NumberHelper } from './number-helper-
|
|
6
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
7
|
+
import { N as NumberHelper } from './number-helper-d9b73e76.js';
|
|
8
8
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
9
|
-
import { V as Validators } from './validators-
|
|
9
|
+
import { V as Validators } from './validators-0b019b63.js';
|
|
10
10
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
11
11
|
import { C as CaptionTemplate } from './caption-template-34a1cb44.js';
|
|
12
|
-
import { I as InputTemplate } from './input-template-
|
|
12
|
+
import { I as InputTemplate } from './input-template-88fba8d7.js';
|
|
13
13
|
import { c as classnames } from './index-ed9652af.js';
|
|
14
14
|
import { d as delay } from './utils-b3338faf.js';
|
|
15
15
|
import { I as IsLoad } from './is-load-decorator-07d3502a.js';
|
|
@@ -245,20 +245,20 @@ const BcmInput = class {
|
|
|
245
245
|
}
|
|
246
246
|
validationRange() {
|
|
247
247
|
const { min, max, value } = this;
|
|
248
|
-
if (value) {
|
|
249
|
-
if (min && max) {
|
|
248
|
+
if (value !== undefined) {
|
|
249
|
+
if ((min !== undefined) && (max !== undefined)) {
|
|
250
250
|
if (value < min || value > max) {
|
|
251
251
|
this.setCaption(StringHelper.getMessage('between', [min, max]), "error");
|
|
252
252
|
return false;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
else if (min) {
|
|
255
|
+
else if (min !== undefined) {
|
|
256
256
|
if (value < min) {
|
|
257
257
|
this.setCaption(StringHelper.getMessage('min', [min]), "error");
|
|
258
258
|
return false;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
else if (max) {
|
|
261
|
+
else if (max !== undefined) {
|
|
262
262
|
if (value > max) {
|
|
263
263
|
this.setCaption(StringHelper.getMessage('max', [max]), "error");
|
|
264
264
|
return false;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
8
8
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
9
9
|
import { L as LabelTemplate } from './label-template-98dafeb3.js';
|
|
10
10
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { h as h$1, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-07d3502a.js';
|
|
7
|
-
import { J as JsonParse } from './json-parse-decarator-
|
|
7
|
+
import { J as JsonParse } from './json-parse-decarator-e85e0fea.js';
|
|
8
8
|
import './color-helper-116755ed.js';
|
|
9
9
|
import './datetime-helper-df25808a.js';
|
|
10
|
-
import { s as snq, G as Generate } from './generate-
|
|
11
|
-
import { N as NumberHelper } from './number-helper-
|
|
10
|
+
import { s as snq, G as Generate } from './generate-786bd626.js';
|
|
11
|
+
import { N as NumberHelper } from './number-helper-d9b73e76.js';
|
|
12
12
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
13
|
-
import { V as Validators } from './validators-
|
|
13
|
+
import { V as Validators } from './validators-0b019b63.js';
|
|
14
14
|
import './element-dragger-7ea06c76.js';
|
|
15
15
|
import { g as getPlacement, s as setPosition } from './popover-placement-78f86f15.js';
|
|
16
16
|
import { p as pluralize, d as delay } from './utils-b3338faf.js';
|
|
@@ -23,7 +23,7 @@ import './types-9493a7ed.js';
|
|
|
23
23
|
import { c as createStore } from './index-0052017c.js';
|
|
24
24
|
import { r as react, a as reactDom } from './index-6310a048.js';
|
|
25
25
|
import { c as createCommonjsModule } from './_commonjsHelpers-3016b722.js';
|
|
26
|
-
import { I as InputTemplate } from './input-template-
|
|
26
|
+
import { I as InputTemplate } from './input-template-88fba8d7.js';
|
|
27
27
|
import './colors-1d7854ea.js';
|
|
28
28
|
import './colors-44c95e7e.js';
|
|
29
29
|
import './slot-template-672e941d.js';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import './color-helper-116755ed.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-786bd626.js';
|
|
9
|
+
import './number-helper-d9b73e76.js';
|
|
10
10
|
import './string-helper-6bd24967.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-0b019b63.js';
|
|
12
12
|
import './element-dragger-7ea06c76.js';
|
|
13
13
|
import './bcm-9f50af9c.js';
|
|
14
14
|
import { c as classnames } from './index-ed9652af.js';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import './color-helper-116755ed.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-786bd626.js';
|
|
9
|
+
import './number-helper-d9b73e76.js';
|
|
10
10
|
import './string-helper-6bd24967.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-0b019b63.js';
|
|
12
12
|
import './element-dragger-7ea06c76.js';
|
|
13
13
|
import './bcm-9f50af9c.js';
|
|
14
14
|
import './colors-1d7854ea.js';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import './color-helper-116755ed.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-786bd626.js';
|
|
9
|
+
import './number-helper-d9b73e76.js';
|
|
10
10
|
import './string-helper-6bd24967.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-0b019b63.js';
|
|
12
12
|
import './element-dragger-7ea06c76.js';
|
|
13
13
|
import { d as delay } from './utils-b3338faf.js';
|
|
14
14
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
@@ -7,7 +7,7 @@ import { c as classnames } from './index-ed9652af.js';
|
|
|
7
7
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
8
8
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
9
9
|
import { S as SlotTemplate } from './slot-template-672e941d.js';
|
|
10
|
-
import { G as Generate } from './generate-
|
|
10
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
11
11
|
import './_commonjsHelpers-3016b722.js';
|
|
12
12
|
import './colors-44c95e7e.js';
|
|
13
13
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { C as ColorHelper } from './color-helper-116755ed.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
9
9
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
10
10
|
import { s as setPosition } from './popover-placement-78f86f15.js';
|
|
11
11
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
8
8
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
import './colors-44c95e7e.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { C as ColorHelper } from './color-helper-116755ed.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
9
9
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
10
10
|
import './_commonjsHelpers-3016b722.js';
|
|
11
11
|
import './colors-1d7854ea.js';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import './color-helper-116755ed.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-786bd626.js';
|
|
9
|
+
import './number-helper-d9b73e76.js';
|
|
10
10
|
import './string-helper-6bd24967.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-0b019b63.js';
|
|
12
12
|
import './element-dragger-7ea06c76.js';
|
|
13
13
|
import { d as delay } from './utils-b3338faf.js';
|
|
14
14
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
@@ -6,10 +6,10 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
|
6
6
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
7
7
|
import './color-helper-116755ed.js';
|
|
8
8
|
import './datetime-helper-df25808a.js';
|
|
9
|
-
import { G as Generate } from './generate-
|
|
10
|
-
import './number-helper-
|
|
9
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
10
|
+
import './number-helper-d9b73e76.js';
|
|
11
11
|
import './string-helper-6bd24967.js';
|
|
12
|
-
import './validators-
|
|
12
|
+
import './validators-0b019b63.js';
|
|
13
13
|
import './element-dragger-7ea06c76.js';
|
|
14
14
|
import { c as classnames } from './index-ed9652af.js';
|
|
15
15
|
import './colors-1d7854ea.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
8
8
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
9
9
|
import { d as delay } from './utils-b3338faf.js';
|
|
10
10
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, g as getElement } from './index-348b16ad.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
7
7
|
import './colors-44c95e7e.js';
|
|
8
8
|
import './_commonjsHelpers-3016b722.js';
|
|
9
9
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
8
|
-
import { s as stepperStates } from './stepper-states-
|
|
7
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
8
|
+
import { s as stepperStates } from './stepper-states-026cdd66.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
import './colors-44c95e7e.js';
|
|
11
11
|
import './index-0052017c.js';
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
import { h, r as registerInstance, c as createEvent, f as forceUpdate, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import './color-helper-116755ed.js';
|
|
7
7
|
import './datetime-helper-df25808a.js';
|
|
8
|
-
import { G as Generate, s as snq } from './generate-
|
|
9
|
-
import './number-helper-
|
|
8
|
+
import { G as Generate, s as snq } from './generate-786bd626.js';
|
|
9
|
+
import './number-helper-d9b73e76.js';
|
|
10
10
|
import './string-helper-6bd24967.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-0b019b63.js';
|
|
12
12
|
import './element-dragger-7ea06c76.js';
|
|
13
13
|
import { a as getChildElements } from './utils-b3338faf.js';
|
|
14
14
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
15
15
|
import { c as classnames } from './index-ed9652af.js';
|
|
16
16
|
import './types-6f06fa1a.js';
|
|
17
17
|
import './types-9493a7ed.js';
|
|
18
|
-
import { s as stepperStates } from './stepper-states-
|
|
18
|
+
import { s as stepperStates } from './stepper-states-026cdd66.js';
|
|
19
19
|
import './colors-1d7854ea.js';
|
|
20
20
|
import './colors-44c95e7e.js';
|
|
21
21
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-07d3502a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
9
9
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
10
10
|
import { C as CaptionTemplate } from './caption-template-34a1cb44.js';
|
|
11
11
|
import { d as delay } from './utils-b3338faf.js';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-348b16ad.js';
|
|
6
|
-
import { G as Generate } from './generate-
|
|
6
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
7
7
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
8
8
|
import { c as classnames } from './index-ed9652af.js';
|
|
9
|
-
import { N as NumberHelper } from './number-helper-
|
|
9
|
+
import { N as NumberHelper } from './number-helper-d9b73e76.js';
|
|
10
10
|
import { e as extractColor } from './utils-b3338faf.js';
|
|
11
11
|
import { C as ColorPalette } from './colors-1d7854ea.js';
|
|
12
12
|
import { C as ColorProps } from './types-9493a7ed.js';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-07d3502a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
9
9
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
10
10
|
import { C as CaptionTemplate } from './caption-template-34a1cb44.js';
|
|
11
|
-
import { I as InputTemplate } from './input-template-
|
|
11
|
+
import { I as InputTemplate } from './input-template-88fba8d7.js';
|
|
12
12
|
import { d as delay } from './utils-b3338faf.js';
|
|
13
13
|
import './_commonjsHelpers-3016b722.js';
|
|
14
14
|
import './colors-44c95e7e.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-07d3502a.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
9
9
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
10
10
|
import { d as delay } from './utils-b3338faf.js';
|
|
11
11
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
8
8
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
9
9
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
10
10
|
import { d as delay } from './utils-b3338faf.js';
|
|
@@ -6,7 +6,7 @@ import { h } from './index-348b16ad.js';
|
|
|
6
6
|
import { d as defaultIcons } from './types-6f06fa1a.js';
|
|
7
7
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
8
8
|
import { c as classnames } from './index-ed9652af.js';
|
|
9
|
-
import { s as snq } from './generate-
|
|
9
|
+
import { s as snq } from './generate-786bd626.js';
|
|
10
10
|
|
|
11
11
|
const InputTemplate = ({ elementType,
|
|
12
12
|
//textarea
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { g as getElement } from './index-348b16ad.js';
|
|
6
|
-
import { s as snq } from './generate-
|
|
6
|
+
import { s as snq } from './generate-786bd626.js';
|
|
7
7
|
|
|
8
8
|
function JsonParse(attribute, isMethod = false) {
|
|
9
9
|
return (proto, propName) => {
|
|
@@ -7,8 +7,8 @@ import './element-dragger-7ea06c76.js';
|
|
|
7
7
|
import { g as getPlacement, s as setPosition } from './popover-placement-78f86f15.js';
|
|
8
8
|
import { F as FloatingUI } from './floating-ui-e7341329.js';
|
|
9
9
|
import { c as classnames } from './index-ed9652af.js';
|
|
10
|
-
import { G as Generate } from './generate-
|
|
11
|
-
import { N as NumberHelper } from './number-helper-
|
|
10
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
11
|
+
import { N as NumberHelper } from './number-helper-d9b73e76.js';
|
|
12
12
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
13
13
|
import './utils-b3338faf.js';
|
|
14
14
|
import './bcm-9f50af9c.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-348b16ad.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-786bd626.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
import './colors-44c95e7e.js';
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { c as createStore } from './index-0052017c.js';
|
|
6
|
-
import { G as Generate, s as snq } from './generate-
|
|
6
|
+
import { G as Generate, s as snq } from './generate-786bd626.js';
|
|
7
7
|
import { f as forceUpdate } from './index-348b16ad.js';
|
|
8
8
|
|
|
9
9
|
const { state } = createStore({
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{g as t}from"./p-6d7fe687.js";import{s as n}from"./p-947c78e3.js";function s(s,o=!1){return(i,c)=>{const{connectedCallback:r,componentWillRender:e}=i;i.connectedCallback=function(){const o=t(this);if(o[c]){const t=n((()=>o.hasAttribute(s)?o.getAttribute(s).valueOf():o[s].valueOf()),null);t&&(this[c]=n((()=>"string"==typeof t?JSON.parse(t):t),[]),o.removeAttribute(s))}return r&&r.call(this)},i.componentWillRender=async function(){if(o){const i=t(this);if(o){const t=n((()=>i.hasAttribute(s)?i.getAttribute(s).valueOf():i[s].valueOf()),null);t&&t.length>0&&"string"==typeof t&&(this[s]=n((()=>JSON.parse(t)),[])),i.removeAttribute(s)}return e&&e.call(this)}}}}export{s as J}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,h as p,H as s,g as r}from"./p-6d7fe687.js";import"./p-2fc584c4.js";import"./p-626a65e9.js";import{G as o}from"./p-947c78e3.js";import"./p-90e5c655.js";import"./p-8d0ca8c2.js";import"./p-53448351.js";import"./p-5ae0a59b.js";import"./p-a429e85b.js";import{c as e}from"./p-d65a1e21.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const a=class{constructor(p){t(this,p),this._id=o.UID(),this.el.slot="footer"}render(){return p(s,{class:e("tw-flex tw-flex-row tw-items-center tw-justify-end tw-gap-2 tw-px-6 tw-pb-6 tw-pt-2")},p("slot",null))}get el(){return r(this)}};export{a as bcm_modal_2_footer}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{s}from"./p-947c78e3.js";class r{}r.isNumber=r=>s((()=>/^[0-9]+$/i.test(r))),r.convertToNumber=r=>s((()=>Number(r))),r.replaceNumber=r=>s((()=>r.replace(/[^0-9]/g,""))),r.replaceFloat=r=>s((()=>r.replace(/[^0-9.]/g,""))),r.toFixed=(r,a)=>s((()=>r.toFixed(a))),r.parseFloatFixed=(a,e)=>s((()=>parseFloat(r.replaceFloat(a)).toFixed(e))),r.getDecimalLength=r=>s((()=>r.split(".")[1]?r.split(".")[1].length:0)),r.toNumber=r=>s((()=>Number(r.replace(/[^0-9.]/g,""))));export{r as N}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,c as i,h as e,H as n}from"./p-6d7fe687.js";import{G as o}from"./p-947c78e3.js";import{N as r}from"./p-90e5c655.js";import{S as a}from"./p-8d0ca8c2.js";import{V as s}from"./p-53448351.js";import{a as c}from"./p-a429e85b.js";import{C as p}from"./p-a56e8c98.js";import{I as l}from"./p-a8aaa382.js";import{c as h}from"./p-d65a1e21.js";import{d as m}from"./p-3c7a0345.js";import{I as u}from"./p-54c0916c.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";import"./p-3fac58f7.js";const b=class{constructor(e){t(this,e),this.focus=i(this,"bcm-focus",7),this.blur=i(this,"bcm-blur",7),this.clear=i(this,"bcm-clear",7),this.change=i(this,"bcm-change",7),this.input=i(this,"bcm-input",7),this.isBlur=!1,this._id=o.UID(),this._internal_id=o.UID(),this.value="",this.size=c.Size.medium,this.label=void 0,this.pattern=void 0,this.tooltip=void 0,this.placeholder=void 0,this.disabled=!1,this.readonly=!1,this.clearable=!1,this.autocomplete=!1,this.name=void 0,this.type=c.InputType.text,this.hidden=!1,this.required=!1,this.fullWidth=!1,this.noDefaultIcon=void 0,this.disableWatchValue=!1,this.passwordToggle=!1,this.maxLength=null,this.unitPrefix=null,this.unit=void 0,this.decimal=!0,this.min=void 0,this.max=void 0,this.step=void 0,this.caption=void 0,this.noCaption=!1,this.captionType=c.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this._prefix=void 0,this._suffix=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.inValid=!1,this.valueCache="",this.focused=!1,this.isPasswordVisible=!1}connectedCallback(){this.valueCache=this.value,this.captionCache=this.caption,this.captionTypeCache=this.captionType}componentWillRender(){const{type:t,isBlur:i,value:e}=this;if(e)switch(this.value.length>0&&this.checkPattern(),t){case"number":!this.checkValid("number")&&this.validationRange();break;case"email":i&&this.checkValid("email");break;case"tel":i&&this.checkValid("phone")}else!this.required&&this.resetCaption()}async onBcmFocus(){this.inputElement.focus()}async onBcmBlur(){this.inputElement.blur()}async onBcmSelect(){this.inputElement.select()}async set(t){await this.setValue(t)}async get(){return this.value||null}async setValue(t){return this.inputElement.value=t,this.handleChange(),t}async setClear(){return this.inputElement.value="",this.value="",await m(10),Promise.resolve()}async resetCaption(){return await m(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.inValid=!1,await m(10),Promise.resolve()}async getValue(){return this.value}watchValue(t){this.inputElement.value=t,this.disableWatchValue||"number"==this.type||this.handleChange()}listenKeyDown(t){if(!this.disabled&&!this.readonly&&(this.onBcmFocus(),"number"==this.type)){var i=t.which||0,e=t.key;38==i&&(t.preventDefault(),this.stepUpOrDown("up")),40==i&&(t.preventDefault(),this.stepUpOrDown("down")),(190==i||110==i||"."==e)&&this.value.indexOf(".")>-1&&t.preventDefault(),189!=i&&109!=i&&"-"!=e||("-"==this.value.charAt(0)||this.value.indexOf("-")>-1)&&t.preventDefault()}}handleFocus(){this.focused=!0,this.focus.emit(),this.whatchHasFocus()}handleBlur(){this.focused=!1,this.isBlur=!0,this.whatchHasFocus(),this.blur.emit()}handleChange(){this.valueSync()}handleInput(){if("number"==this.type&&this.maxLength){const t=this.inputElement.value;t&&t.length>0&&t.length>this.maxLength&&(this.inputElement.value=t.substring(0,this.maxLength))}this.valueSync()}valueSync(){return this.value!=this.inputElement.value?(this.value=this.inputElement.value,this.change.emit(this.value),!0):(this.input.emit(this.value),!1)}handleClear(t){this.inputElement.value="",this.value="",this.inputElement.focus(),this.clear.emit(t),this.change.emit(this.value),t.stopPropagation()}changePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}setCaption(t=null,i=null){this.caption=t||this.captionCache,this.captionType=i||this.captionTypeCache,this.captionError="error"==i?t:null}stepUpOrDown(t){if(!this.inValid&&!this.disabled&&!this.readonly){let i=+this.step||1,e=+this.value;e="up"==t?+(e+i):+(e-i),this.value=e.toString(),this.change.emit(this.value)}}validationRange(){const{min:t,max:i,value:e}=this;if(e)if(t&&i){if(e<t||e>i)return this.setCaption(a.getMessage("between",[t,i]),"error"),!1}else if(t){if(e<t)return this.setCaption(a.getMessage("min",[t]),"error"),!1}else if(i&&e>i)return this.setCaption(a.getMessage("max",[i]),"error"),!1;return this.setCaption(),!0}checkPattern(){const{pattern:t,value:i}=this;t&&(s.pattern(i,t)?(this.setCaption(),this.inValid=!1):(this.setCaption(a.getMessage("pattern"),"error"),this.inValid=!0))}checkValid(t){const{value:i}=this;return s.isValidate(i,t)?(this.setCaption(),this.inValid=!1):(this.setCaption(a.getMessage(t),"error"),this.inValid=!0),this.inValid}whatchHasFocus(){const{type:t,focused:i,valueCache:e,inValid:n}=this;t==c.InputType.number&&n&&(console.log("whatchHasFocus"),this.value=i?"":a.isNullOrEmpty(this.value)?e:this.value?this.fixToNumber(this.value):"")}fixToNumber(t){if(t){const i=r.getDecimalLength(this.step);return i>0?r.parseFloatFixed(t,i):t}return t}eyeDropper(){(new window.EyeDropper).open().then((t=>{console.log("color: ",t.sRGBHex),this.setValue(t.sRGBHex)})).catch((t=>{"NotAllowedError"===t.name?console.log("Permission to access sensor was denied."):"NotSupportedError"===t.name&&console.log("Sensor not supported.")}))}isEyeDropperSupported(){return"undefined"!=typeof window&&"EyeDropper"in window}toggleLinked(){const t=document.getElementById(`${this._id}-linked`);t&&t.toggle()}render(){const{value:t,size:i,label:o,type:r,captionType:a,caption:s,captionError:m,placeholder:u,fullWidth:b,disabled:d,readonly:x,clearable:g,passwordToggle:f,isPasswordVisible:_,noDefaultIcon:w,unit:y,inValid:v,focused:z,unitPrefix:k,noCaption:j,required:I,hidden:C,_id:D,autocomplete:V}=this,P=(null==t?void 0:t.length)>0&&g,E=h("bcm-input",`bcm-input__container--${i}`,{hidden:C,"full-width":b});return e(n,{onfocus:()=>this.onBcmFocus(),class:E,onClick:()=>this.onBcmFocus()},o&&e("bcm-label",{onClick:()=>this.toggleLinked(),tooltip:this.tooltip,type:a,value:o,required:I,htmlFor:D}),e(l,{id:D,type:r,value:t,pattern:this.pattern,placeholder:u,disabled:d,readonly:x,clearable:P,passwordToggle:f,isPasswordVisible:_,noDefaultIcon:w,focused:z,inValid:v,unitPrefix:k,maxLength:this.maxLength,internalId:this._internal_id,captionType:a,unit:y,size:i,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleInput:()=>this.handleInput(),steps:t=>this.stepUpOrDown(t),changePasswordVisibility:()=>this.changePasswordVisibility(),handleClear:t=>this.handleClear(t),eyeDropper:()=>this.eyeDropper(),isEyeDropperSupported:()=>this.isEyeDropperSupported(),ref:t=>this.inputElement=t,_suffix:this._suffix,_prefix:this._prefix,autocomplete:V}),e(p,{noCaption:j,captionType:a,captionError:m,caption:s,customErrorMessage:this.customErrorMessage}),r==c.InputType.color&&e("bcm-linked",{targetId:this._id+"-container",id:this._id+"-linked"},e("bcm-colorful",{id:this._id+"-picker",color:this.value,onBcmChange:t=>this.setValue(t.detail)})))}static get watchers(){return{value:["watchValue"]}}};(function(t,i,e,n){var o,r=arguments.length,a=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(i,e,a):o(i,e))||a);r>3&&a&&Object.defineProperty(i,e,a)})([u()],b.prototype,"inputElement",void 0),b.style='@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}';export{b as bcm_input}
|