bromcom-ui 2.8.0-rc.6 → 2.8.0-rc.8
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-e741d71e.js → p-0111d5cd.js} +1 -1
- package/dist/bromcom-ui/{p-ba5686e2.entry.js → p-0474d8a8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c4cdcb75.entry.js → p-11930706.entry.js} +1 -1
- package/dist/bromcom-ui/p-18af92a9.entry.js +5 -0
- package/dist/bromcom-ui/{p-f9c235f9.entry.js → p-198d17cf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-538c87d2.entry.js → p-19b258fa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2f7fb8dd.entry.js → p-19c2c7ec.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5df785a3.entry.js → p-2722b2c7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1263a567.entry.js → p-29829587.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eb7da19e.entry.js → p-2ea1274e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-889a1255.entry.js → p-3bb63b25.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f27bb138.entry.js → p-3cbddb46.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7cff3fa9.entry.js → p-428a472e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b16f3edd.entry.js → p-44f2ea48.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ea6b1764.js → p-493fc64a.js} +1 -1
- package/dist/bromcom-ui/{p-c36c80f8.entry.js → p-551bd870.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e16ff3f3.entry.js → p-67a1b9fb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-141d380f.entry.js → p-6af68be0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-59e12dad.entry.js → p-6e0345b0.entry.js} +1 -1
- package/dist/bromcom-ui/p-6e920b36.entry.js +5 -0
- package/dist/bromcom-ui/{p-75fa262b.entry.js → p-720059b9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-998f305e.entry.js → p-73dd9b71.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1a2c869c.entry.js → p-757f7936.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2179cbce.entry.js → p-766e3781.entry.js} +2 -2
- package/dist/bromcom-ui/{p-249f149d.entry.js → p-78522f83.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b8fe88df.entry.js → p-7a37fc46.entry.js} +1 -1
- package/dist/bromcom-ui/{p-74dd5f31.entry.js → p-7aca0f4e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a51a8010.entry.js → p-7d25efd3.entry.js} +1 -1
- package/dist/bromcom-ui/p-7eccf8ee.entry.js +5 -0
- package/dist/bromcom-ui/{p-67d3d8c6.entry.js → p-81eb449f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-617f4eb2.entry.js → p-9189c392.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b5d1ddf9.entry.js → p-9c629169.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eb89054e.entry.js → p-9c72f6f1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0541edbf.entry.js → p-a5b58ffc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eb5b09a1.js → p-ab0954e5.js} +1 -1
- package/dist/bromcom-ui/{p-33dfaba1.entry.js → p-b0525d89.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9155ca09.entry.js → p-ba35487f.entry.js} +1 -1
- package/dist/bromcom-ui/p-c6515acd.js +5 -0
- package/dist/bromcom-ui/{p-a176cebc.entry.js → p-cd4b11f9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-262da209.entry.js → p-d21f0839.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ed6c561a.entry.js → p-d93dc796.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8fc1e2b0.entry.js → p-deecea68.entry.js} +1 -1
- package/dist/bromcom-ui/{p-31bb9db5.js → p-e5372f21.js} +1 -1
- package/dist/bromcom-ui/p-e6ca16b0.entry.js +5 -0
- package/dist/bromcom-ui/{p-1ebf2c97.entry.js → p-e84f277e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c682622d.js → p-e8c5da52.js} +1 -1
- package/dist/bromcom-ui/{p-24ba1573.entry.js → p-eb44664d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c9707add.entry.js → p-f280a1e6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5d172f7d.entry.js → p-f2edbbc1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-60f7ae5d.js → p-f607d7d7.js} +1 -1
- package/dist/bromcom-ui/{p-bc97278b.entry.js → p-f6732a5f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cdb04058.entry.js → p-f74e5ed7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-68185d36.entry.js → p-f995e773.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8afc794d.entry.js → p-f9d6fa4d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-10699025.entry.js → p-fafa77b7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4fd8b48e.entry.js → p-fba7e2c7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d96c04f0.entry.js → p-fe382dcc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3ad01bf4.entry.js → p-fed31df8.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_2.cjs.entry.js +3 -3
- 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-button.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_2.cjs.entry.js +1 -1
- 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 +6 -11
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +5 -4
- 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-dropdown.cjs.entry.js +2 -2
- 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 +6 -5
- package/dist/cjs/bcm-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-items.cjs.entry.js +1 -1
- package/dist/cjs/bcm-label_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-list.cjs.entry.js +6 -6
- package/dist/cjs/bcm-menu.cjs.entry.js +4 -4
- 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-popover.cjs.entry.js +3 -3
- package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
- package/dist/cjs/bcm-range.cjs.entry.js +1 -1
- package/dist/cjs/bcm-search.cjs.entry.js +2 -2
- 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 +5 -5
- package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- 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/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{generate-5d859f16.js → generate-2f652f99.js} +1 -1
- package/dist/cjs/{input-template-4b1d9f28.js → input-template-b531038e.js} +1 -1
- package/dist/cjs/{json-parse-decarator-79fa9387.js → json-parse-decarator-26187e13.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{number-helper-038de3fb.js → number-helper-d866e132.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-23d4c730.js → stepper-states-17fb63ee.js} +1 -1
- package/dist/cjs/{tooltip-helper-434735c4.js → tooltip-helper-c64743ba.js} +3 -3
- package/dist/cjs/{validators-412368c6.js → validators-cadebc98.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/molecules/color-input/color-input.js +6 -18
- package/dist/collection/components/molecules/input/input.js +2 -1
- package/dist/collection/components/molecules/linked/linked.js +20 -1
- package/dist/collection/templates/tag-template.js +1 -1
- package/dist/components/bcm-color-input.js +3 -8
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +3 -3
- package/dist/components/input.js +2 -1
- package/dist/components/linked.js +3 -1
- 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_2.entry.js +3 -3
- package/dist/esm/bcm-breadcrumb.entry.js +1 -1
- package/dist/esm/bcm-button-group.entry.js +1 -1
- package/dist/esm/bcm-button.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_2.entry.js +1 -1
- 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 +6 -11
- package/dist/esm/bcm-colorful_2.entry.js +5 -4
- 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-dropdown.entry.js +2 -2
- 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 +6 -5
- package/dist/esm/bcm-item.entry.js +1 -1
- package/dist/esm/bcm-items.entry.js +1 -1
- package/dist/esm/bcm-label_2.entry.js +4 -4
- package/dist/esm/bcm-list.entry.js +6 -6
- package/dist/esm/bcm-menu.entry.js +4 -4
- 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-popover.entry.js +3 -3
- package/dist/esm/bcm-progress.entry.js +1 -1
- package/dist/esm/bcm-radio-group.entry.js +4 -4
- package/dist/esm/bcm-radio.entry.js +3 -3
- package/dist/esm/bcm-range.entry.js +1 -1
- package/dist/esm/bcm-search.entry.js +2 -2
- 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 +5 -5
- package/dist/esm/bcm-switch.entry.js +1 -1
- package/dist/esm/bcm-tab-group.entry.js +3 -3
- package/dist/esm/bcm-tab-item-header.entry.js +3 -3
- package/dist/esm/bcm-tab-item.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +3 -3
- 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/bromcom-ui.js +1 -1
- package/dist/esm/{generate-6c6d178a.js → generate-508e45d7.js} +1 -1
- package/dist/esm/{input-template-cdbd9d71.js → input-template-04e8c524.js} +1 -1
- package/dist/esm/{json-parse-decarator-fb94a9f7.js → json-parse-decarator-0159345f.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{number-helper-3d45cd6b.js → number-helper-b9dc0cca.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-9b3262ac.js → stepper-states-3bdf94bf.js} +1 -1
- package/dist/esm/{tooltip-helper-5bb91f74.js → tooltip-helper-c3251673.js} +3 -3
- package/dist/esm/{validators-143e9133.js → validators-89c43bb2.js} +1 -1
- package/dist/types/components/molecules/input/input.d.ts +1 -1
- package/dist/types/components/molecules/linked/linked.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-01a0a933.entry.js +0 -5
- package/dist/bromcom-ui/p-3db8f91e.js +0 -5
- package/dist/bromcom-ui/p-6f27cf6d.entry.js +0 -5
- package/dist/bromcom-ui/p-79117799.entry.js +0 -5
- package/dist/bromcom-ui/p-84c513eb.entry.js +0 -5
- package/dist/collection/components/molecules/color-input/color-input.css +0 -127
- /package/dist/bromcom-ui/{p-5fd7a8b6.js → p-2e73d572.js} +0 -0
- /package/dist/cjs/{types-6eb7e028.js → types-7523fd99.js} +0 -0
- /package/dist/collection/components/{atoms → other}/box/box.js +0 -0
- /package/dist/collection/components/{atoms → other}/typography/typography.js +0 -0
- /package/dist/collection/components/{atoms → other_deprecated}/tag/tag.js +0 -0
- /package/dist/collection/components/{atoms → other_deprecated}/tag/types.js +0 -0
- /package/dist/esm/{types-bfc3bba1.js → types-9493a7ed.js} +0 -0
- /package/dist/types/components/{atoms → other}/box/box.d.ts +0 -0
- /package/dist/types/components/{atoms → other}/typography/typography.d.ts +0 -0
- /package/dist/types/components/{atoms → other_deprecated}/tag/tag.d.ts +0 -0
- /package/dist/types/components/{atoms → other_deprecated}/tag/types.d.ts +0 -0
|
@@ -10,9 +10,9 @@ const utils = require('./utils-fc077139.js');
|
|
|
10
10
|
const floatingUi = require('./floating-ui-74eb26d6.js');
|
|
11
11
|
const colorHelper = require('./color-helper-0097a7c2.js');
|
|
12
12
|
require('./datetime-helper-eaf4fadb.js');
|
|
13
|
-
const generate = require('./generate-
|
|
14
|
-
require('./number-helper-
|
|
15
|
-
require('./validators-
|
|
13
|
+
const generate = require('./generate-2f652f99.js');
|
|
14
|
+
require('./number-helper-d866e132.js');
|
|
15
|
+
require('./validators-cadebc98.js');
|
|
16
16
|
const bcm = require('./bcm-634604e3.js');
|
|
17
17
|
|
|
18
18
|
class Tooltip {
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
"./components/molecules/radio/radio-group.js",
|
|
4
4
|
"./components/atoms/avatar/avatar.js",
|
|
5
5
|
"./components/atoms/badge/badge.js",
|
|
6
|
-
"./components/atoms/box/box.js",
|
|
7
6
|
"./components/atoms/button/button.js",
|
|
8
7
|
"./components/atoms/chip/chip.js",
|
|
9
8
|
"./components/atoms/divider/divider.js",
|
|
10
9
|
"./components/atoms/icon/icon.js",
|
|
11
10
|
"./components/atoms/label/label.js",
|
|
12
11
|
"./components/atoms/link/link.js",
|
|
13
|
-
"./components/atoms/tag/tag.js",
|
|
14
|
-
"./components/atoms/typography/typography.js",
|
|
15
12
|
"./components/molecules/accordion/accordion.js",
|
|
16
13
|
"./components/molecules/stepper/stepper.js",
|
|
17
14
|
"./components/molecules/alert/alert.js",
|
|
@@ -63,10 +60,12 @@
|
|
|
63
60
|
"./components/organism/list/list.js",
|
|
64
61
|
"./components/organism/time-picker/time-picker.js",
|
|
65
62
|
"./components/other/attendance/attendance.js",
|
|
63
|
+
"./components/other/box/box.js",
|
|
66
64
|
"./components/other/data-table/table.js",
|
|
67
65
|
"./components/other/default/default.js",
|
|
68
66
|
"./components/other/input-custom/input-custom.js",
|
|
69
67
|
"./components/other/toast/toast.js",
|
|
68
|
+
"./components/other/typography/typography.js",
|
|
70
69
|
"./components/other_deprecated/collapse/collapse.js",
|
|
71
70
|
"./components/other_deprecated/collapse/group.js",
|
|
72
71
|
"./components/other_deprecated/colorpicker/colorpicker.js",
|
|
@@ -86,6 +85,7 @@
|
|
|
86
85
|
"./components/other_deprecated/tabs/tab.js",
|
|
87
86
|
"./components/other_deprecated/tabs/tabs-content.js",
|
|
88
87
|
"./components/other_deprecated/tabs/tabs.js",
|
|
88
|
+
"./components/other_deprecated/tag/tag.js",
|
|
89
89
|
"./components/other_deprecated/text/text.js",
|
|
90
90
|
"./components/other_deprecated/treeview/treeview-group.js",
|
|
91
91
|
"./components/other_deprecated/treeview/treeview-item.js",
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import { h, Host, forceUpdate } from "@stencil/core";
|
|
6
5
|
import { Generate } from "@bcm/helpers";
|
|
6
|
+
import { Host, forceUpdate, h } from "@stencil/core";
|
|
7
7
|
export class BcmColorInput {
|
|
8
8
|
constructor() {
|
|
9
9
|
this._id = Generate.UID();
|
|
10
|
-
this.label = "
|
|
11
|
-
this.placeholder = "
|
|
10
|
+
this.label = "";
|
|
11
|
+
this.placeholder = "";
|
|
12
12
|
this.value = "";
|
|
13
13
|
this.required = false;
|
|
14
14
|
this.disabled = false;
|
|
@@ -28,14 +28,12 @@ export class BcmColorInput {
|
|
|
28
28
|
}
|
|
29
29
|
handleInputChanged(e) {
|
|
30
30
|
this.getPickerElement().color = e.detail;
|
|
31
|
-
console.log("handleInputChanged: ", e.detail);
|
|
32
31
|
}
|
|
33
32
|
eyeDropper() {
|
|
34
33
|
const eyeDropper = new window.EyeDropper();
|
|
35
34
|
eyeDropper
|
|
36
35
|
.open()
|
|
37
36
|
.then((color) => {
|
|
38
|
-
console.log("color: ", color.sRGBHex);
|
|
39
37
|
this.handleChange(color.sRGBHex);
|
|
40
38
|
})
|
|
41
39
|
.catch((error) => {
|
|
@@ -51,21 +49,11 @@ export class BcmColorInput {
|
|
|
51
49
|
return typeof window !== "undefined" && "EyeDropper" in window;
|
|
52
50
|
}
|
|
53
51
|
render() {
|
|
54
|
-
return (h(Host,
|
|
52
|
+
return (h(Host, { class: "tw-block" }, h("bcm-input", { id: this._id + "-color", fullWidth: this.fullWidth, label: this.label, placeholder: this.placeholder, type: "text", "onBcm-change": e => this.handleInputChanged(e) }, h("i", { slot: "prefix", class: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100", style: {
|
|
55
53
|
backgroundColor: this.value,
|
|
56
54
|
} }), this.isEyeDropperSupported() && h("i", { slot: "suffix", class: "far fa-eye-dropper", onClick: () => this.eyeDropper() })), h("bcm-linked", { targetId: this._id + "-color-container" }, h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.handleChange(e.detail) }))));
|
|
57
55
|
}
|
|
58
56
|
static get is() { return "bcm-color-input"; }
|
|
59
|
-
static get originalStyleUrls() {
|
|
60
|
-
return {
|
|
61
|
-
"$": ["color-input.scss"]
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
static get styleUrls() {
|
|
65
|
-
return {
|
|
66
|
-
"$": ["color-input.css"]
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
57
|
static get properties() {
|
|
70
58
|
return {
|
|
71
59
|
"_id": {
|
|
@@ -102,7 +90,7 @@ export class BcmColorInput {
|
|
|
102
90
|
},
|
|
103
91
|
"attribute": "label",
|
|
104
92
|
"reflect": false,
|
|
105
|
-
"defaultValue": "\"
|
|
93
|
+
"defaultValue": "\"\""
|
|
106
94
|
},
|
|
107
95
|
"placeholder": {
|
|
108
96
|
"type": "string",
|
|
@@ -120,7 +108,7 @@ export class BcmColorInput {
|
|
|
120
108
|
},
|
|
121
109
|
"attribute": "placeholder",
|
|
122
110
|
"reflect": false,
|
|
123
|
-
"defaultValue": "\"
|
|
111
|
+
"defaultValue": "\"\""
|
|
124
112
|
},
|
|
125
113
|
"value": {
|
|
126
114
|
"type": "string",
|
|
@@ -138,7 +138,8 @@ export class BcmInput {
|
|
|
138
138
|
async getValue() {
|
|
139
139
|
return this.value;
|
|
140
140
|
}
|
|
141
|
-
watchValue() {
|
|
141
|
+
watchValue(newValue) {
|
|
142
|
+
this.inputElement.value = newValue;
|
|
142
143
|
if (!this.disableWatchValue && this.type != "number") {
|
|
143
144
|
this.handleChange();
|
|
144
145
|
}
|
|
@@ -27,6 +27,7 @@ export class BcmLinked {
|
|
|
27
27
|
this.maxHeight = undefined;
|
|
28
28
|
this.minHeight = "50px";
|
|
29
29
|
this.isOpen = false;
|
|
30
|
+
this.hideDelay = 500;
|
|
30
31
|
this.isMouseOverLink = false;
|
|
31
32
|
}
|
|
32
33
|
target() {
|
|
@@ -184,7 +185,7 @@ export class BcmLinked {
|
|
|
184
185
|
handleMouseLeave() {
|
|
185
186
|
setTimeout(() => {
|
|
186
187
|
!this.isMouseOverLink && this.hide();
|
|
187
|
-
},
|
|
188
|
+
}, this.hideDelay);
|
|
188
189
|
}
|
|
189
190
|
handleMouseEnter() {
|
|
190
191
|
clearTimeout(this.timeoutId);
|
|
@@ -349,6 +350,24 @@ export class BcmLinked {
|
|
|
349
350
|
"attribute": "is-open",
|
|
350
351
|
"reflect": true,
|
|
351
352
|
"defaultValue": "false"
|
|
353
|
+
},
|
|
354
|
+
"hideDelay": {
|
|
355
|
+
"type": "number",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "number",
|
|
359
|
+
"resolved": "number",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": false,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": ""
|
|
367
|
+
},
|
|
368
|
+
"attribute": "hide-delay",
|
|
369
|
+
"reflect": false,
|
|
370
|
+
"defaultValue": "500"
|
|
352
371
|
}
|
|
353
372
|
};
|
|
354
373
|
}
|
|
@@ -8,7 +8,7 @@ import cs from 'classnames';
|
|
|
8
8
|
import { NumberHelper } from '../helper/number-helper';
|
|
9
9
|
import { extractColor } from '../utils/utils';
|
|
10
10
|
import { ColorPalette } from '../global/variables/colors';
|
|
11
|
-
import { ColorProps } from '../components/
|
|
11
|
+
import { ColorProps } from '../components/other_deprecated/tag/types';
|
|
12
12
|
export const TagTemplate = ({ _id, color, customStyle, size, checked, hidden, value, type, onDismiss, onSelect }) => {
|
|
13
13
|
!size && (size = Bcm.FontSize['size-1']);
|
|
14
14
|
const getColor = (color) => {
|
|
@@ -17,15 +17,13 @@ import { d as defineCustomElement$4 } from './label.js';
|
|
|
17
17
|
import { d as defineCustomElement$3 } from './linked.js';
|
|
18
18
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
19
19
|
|
|
20
|
-
const colorInputCss = "@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:block}";
|
|
21
|
-
|
|
22
20
|
const BcmColorInput$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
23
21
|
constructor() {
|
|
24
22
|
super();
|
|
25
23
|
this.__registerHost();
|
|
26
24
|
this._id = Generate.UID();
|
|
27
|
-
this.label = "
|
|
28
|
-
this.placeholder = "
|
|
25
|
+
this.label = "";
|
|
26
|
+
this.placeholder = "";
|
|
29
27
|
this.value = "";
|
|
30
28
|
this.required = false;
|
|
31
29
|
this.disabled = false;
|
|
@@ -45,14 +43,12 @@ const BcmColorInput$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
45
43
|
}
|
|
46
44
|
handleInputChanged(e) {
|
|
47
45
|
this.getPickerElement().color = e.detail;
|
|
48
|
-
console.log("handleInputChanged: ", e.detail);
|
|
49
46
|
}
|
|
50
47
|
eyeDropper() {
|
|
51
48
|
const eyeDropper = new window.EyeDropper();
|
|
52
49
|
eyeDropper
|
|
53
50
|
.open()
|
|
54
51
|
.then((color) => {
|
|
55
|
-
console.log("color: ", color.sRGBHex);
|
|
56
52
|
this.handleChange(color.sRGBHex);
|
|
57
53
|
})
|
|
58
54
|
.catch((error) => {
|
|
@@ -68,12 +64,11 @@ const BcmColorInput$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
68
64
|
return typeof window !== "undefined" && "EyeDropper" in window;
|
|
69
65
|
}
|
|
70
66
|
render() {
|
|
71
|
-
return (h(Host,
|
|
67
|
+
return (h(Host, { class: "tw-block" }, h("bcm-input", { id: this._id + "-color", fullWidth: this.fullWidth, label: this.label, placeholder: this.placeholder, type: "text", "onBcm-change": e => this.handleInputChanged(e) }, h("i", { slot: "prefix", class: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100", style: {
|
|
72
68
|
backgroundColor: this.value,
|
|
73
69
|
} }), this.isEyeDropperSupported() && h("i", { slot: "suffix", class: "far fa-eye-dropper", onClick: () => this.eyeDropper() })), h("bcm-linked", { targetId: this._id + "-color-container" }, h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.handleChange(e.detail) }))));
|
|
74
70
|
}
|
|
75
71
|
get el() { return this; }
|
|
76
|
-
static get style() { return colorInputCss; }
|
|
77
72
|
}, [0, "bcm-color-input", {
|
|
78
73
|
"_id": [1537, "id"],
|
|
79
74
|
"label": [1],
|
|
@@ -5,7 +5,7 @@ export { BcmAttendance as BcmAttendance } from '../types/components/other/attend
|
|
|
5
5
|
export { BcmAutocomplete as BcmAutocomplete } from '../types/components/organism/autocomplete/autocomplete';
|
|
6
6
|
export { BcmAvatar as BcmAvatar } from '../types/components/atoms/avatar/avatar';
|
|
7
7
|
export { BcmBadge as BcmBadge } from '../types/components/atoms/badge/badge';
|
|
8
|
-
export { BcmBox as BcmBox } from '../types/components/
|
|
8
|
+
export { BcmBox as BcmBox } from '../types/components/other/box/box';
|
|
9
9
|
export { BcmBreadcrumb as BcmBreadcrumb } from '../types/components/molecules/breadcrumb/breadcrumb';
|
|
10
10
|
export { BcmButton as BcmButton } from '../types/components/atoms/button/button';
|
|
11
11
|
export { BcmButtonGroup as BcmButtonGroup } from '../types/components/molecules/button-group/button-group';
|
|
@@ -75,7 +75,7 @@ export { BcmTabPane as BcmTabPane } from '../types/components/other_deprecated/t
|
|
|
75
75
|
export { BcmTable as BcmTable } from '../types/components/other/data-table/table';
|
|
76
76
|
export { BcmTabs as BcmTabs } from '../types/components/other_deprecated/tabs/tabs';
|
|
77
77
|
export { BcmTabsContent as BcmTabsContent } from '../types/components/other_deprecated/tabs/tabs-content';
|
|
78
|
-
export { BcmTag as BcmTag } from '../types/components/
|
|
78
|
+
export { BcmTag as BcmTag } from '../types/components/other_deprecated/tag/tag';
|
|
79
79
|
export { BcmText as BcmText } from '../types/components/other_deprecated/text/text';
|
|
80
80
|
export { BcmTextarea as BcmTextarea } from '../types/components/molecules/textarea/textarea';
|
|
81
81
|
export { BcmTimePicker as BcmTimePicker } from '../types/components/organism/time-picker/time-picker';
|
|
@@ -86,7 +86,7 @@ export { BcmTooltip as BcmTooltip } from '../types/components/molecules/tooltip/
|
|
|
86
86
|
export { Bcmtreeview as BcmTreeview } from '../types/components/other_deprecated/treeview/treeview';
|
|
87
87
|
export { BcmtreeviewGroup as BcmTreeviewGroup } from '../types/components/other_deprecated/treeview/treeview-group';
|
|
88
88
|
export { BcmtreeviewItem as BcmTreeviewItem } from '../types/components/other_deprecated/treeview/treeview-item';
|
|
89
|
-
export { BcmTypography as BcmTypography } from '../types/components/
|
|
89
|
+
export { BcmTypography as BcmTypography } from '../types/components/other/typography/typography';
|
|
90
90
|
export { OldBcmPopover as OldBcmPopover } from '../types/components/other_deprecated/old-popover/old-popover';
|
|
91
91
|
export { OldBcmPopoverBox as OldBcmPopoverBox } from '../types/components/other_deprecated/old-popover/old-popover-box';
|
|
92
92
|
|
package/dist/components/input.js
CHANGED
|
@@ -153,7 +153,8 @@ const BcmInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
153
153
|
async getValue() {
|
|
154
154
|
return this.value;
|
|
155
155
|
}
|
|
156
|
-
watchValue() {
|
|
156
|
+
watchValue(newValue) {
|
|
157
|
+
this.inputElement.value = newValue;
|
|
157
158
|
if (!this.disableWatchValue && this.type != "number") {
|
|
158
159
|
this.handleChange();
|
|
159
160
|
}
|
|
@@ -37,6 +37,7 @@ const BcmLinked = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
37
37
|
this.maxHeight = undefined;
|
|
38
38
|
this.minHeight = "50px";
|
|
39
39
|
this.isOpen = false;
|
|
40
|
+
this.hideDelay = 500;
|
|
40
41
|
this.isMouseOverLink = false;
|
|
41
42
|
}
|
|
42
43
|
target() {
|
|
@@ -194,7 +195,7 @@ const BcmLinked = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
194
195
|
handleMouseLeave() {
|
|
195
196
|
setTimeout(() => {
|
|
196
197
|
!this.isMouseOverLink && this.hide();
|
|
197
|
-
},
|
|
198
|
+
}, this.hideDelay);
|
|
198
199
|
}
|
|
199
200
|
handleMouseEnter() {
|
|
200
201
|
clearTimeout(this.timeoutId);
|
|
@@ -219,6 +220,7 @@ const BcmLinked = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
219
220
|
"maxHeight": [1, "max-height"],
|
|
220
221
|
"minHeight": [1, "min-height"],
|
|
221
222
|
"isOpen": [1540, "is-open"],
|
|
223
|
+
"hideDelay": [2, "hide-delay"],
|
|
222
224
|
"isMouseOverLink": [32],
|
|
223
225
|
"show": [64],
|
|
224
226
|
"hide": [64],
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
8
8
|
import './colors-fa05fe33.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
|
|
@@ -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-39133086.js';
|
|
6
|
-
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-
|
|
6
|
+
import { G as Generate, s as snq, S as StatusProps, T as TypeProps } from './generate-508e45d7.js';
|
|
7
7
|
import { c as classnames } from './index-ed9652af.js';
|
|
8
8
|
import { c as createStore } from './index-93e36fdb.js';
|
|
9
9
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
8
8
|
import './colors-fa05fe33.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
|
|
@@ -6,10 +6,10 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-39
|
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
7
7
|
import { C as ColorHelper } from './color-helper-4fa5dd0d.js';
|
|
8
8
|
import './datetime-helper-df25808a.js';
|
|
9
|
-
import { G as Generate } from './generate-
|
|
10
|
-
import { N as NumberHelper } from './number-helper-
|
|
9
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
10
|
+
import { N as NumberHelper } from './number-helper-b9dc0cca.js';
|
|
11
11
|
import './string-helper-6bd24967.js';
|
|
12
|
-
import './validators-
|
|
12
|
+
import './validators-89c43bb2.js';
|
|
13
13
|
import './element-dragger-89bb52fd.js';
|
|
14
14
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
15
15
|
import { c as classnames } from './index-ed9652af.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
import './colors-fa05fe33.js';
|
|
11
11
|
|
|
@@ -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-39133086.js';
|
|
6
|
-
import { G as Generate, s as snq } from './generate-
|
|
6
|
+
import { G as Generate, s as snq } from './generate-508e45d7.js';
|
|
7
7
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
8
8
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
9
9
|
import { c as classnames } from './index-ed9652af.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
5
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-39133086.js';
|
|
6
|
-
import { s as snq, G as Generate } from './generate-
|
|
6
|
+
import { s as snq, G as Generate } from './generate-508e45d7.js';
|
|
7
7
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
8
8
|
import { c as classnames } from './index-ed9652af.js';
|
|
9
9
|
import { c as createStore } from './index-93e36fdb.js';
|
|
@@ -6,7 +6,7 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-39
|
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
8
8
|
import { C as ColorHelper } from './color-helper-4fa5dd0d.js';
|
|
9
|
-
import { G as Generate } from './generate-
|
|
9
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
10
10
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
11
11
|
import { S as SlotTemplate } from './slot-template-5b2db362.js';
|
|
12
12
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
|
-
import { G as Generate, s as snq } from './generate-
|
|
7
|
+
import { G as Generate, s as snq } from './generate-508e45d7.js';
|
|
8
8
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
9
9
|
import { d as delay, g as getChildElements } from './utils-57652744.js';
|
|
10
10
|
import { c as createStore } from './index-93e36fdb.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-39133086.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-508e45d7.js';
|
|
8
8
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
9
9
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
10
10
|
import { c as getChilds, d as delay } from './utils-57652744.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { C as CaptionTemplate } from './caption-template-da16ba7b.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
9
9
|
import { S as SlotTemplate } from './slot-template-5b2db362.js';
|
|
10
10
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
11
11
|
import { d as delay } from './utils-57652744.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-39133086.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
8
8
|
import { c as classnames } from './index-ed9652af.js';
|
|
9
9
|
import { C as ColorHelper } from './color-helper-4fa5dd0d.js';
|
|
10
10
|
import './colors-fa05fe33.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
8
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
import './colors-fa05fe33.js';
|
|
11
11
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import './color-helper-4fa5dd0d.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-508e45d7.js';
|
|
9
|
+
import './number-helper-b9dc0cca.js';
|
|
10
10
|
import './string-helper-6bd24967.js';
|
|
11
|
-
import './validators-
|
|
11
|
+
import './validators-89c43bb2.js';
|
|
12
12
|
import './element-dragger-89bb52fd.js';
|
|
13
13
|
import './bcm-9f50af9c.js';
|
|
14
14
|
import './colors-1d7854ea.js';
|
|
@@ -16,14 +16,12 @@ import './utils-57652744.js';
|
|
|
16
16
|
import './colors-fa05fe33.js';
|
|
17
17
|
import './_commonjsHelpers-3016b722.js';
|
|
18
18
|
|
|
19
|
-
const colorInputCss = "@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:block}";
|
|
20
|
-
|
|
21
19
|
const BcmColorInput = class {
|
|
22
20
|
constructor(hostRef) {
|
|
23
21
|
registerInstance(this, hostRef);
|
|
24
22
|
this._id = Generate.UID();
|
|
25
|
-
this.label = "
|
|
26
|
-
this.placeholder = "
|
|
23
|
+
this.label = "";
|
|
24
|
+
this.placeholder = "";
|
|
27
25
|
this.value = "";
|
|
28
26
|
this.required = false;
|
|
29
27
|
this.disabled = false;
|
|
@@ -43,14 +41,12 @@ const BcmColorInput = class {
|
|
|
43
41
|
}
|
|
44
42
|
handleInputChanged(e) {
|
|
45
43
|
this.getPickerElement().color = e.detail;
|
|
46
|
-
console.log("handleInputChanged: ", e.detail);
|
|
47
44
|
}
|
|
48
45
|
eyeDropper() {
|
|
49
46
|
const eyeDropper = new window.EyeDropper();
|
|
50
47
|
eyeDropper
|
|
51
48
|
.open()
|
|
52
49
|
.then((color) => {
|
|
53
|
-
console.log("color: ", color.sRGBHex);
|
|
54
50
|
this.handleChange(color.sRGBHex);
|
|
55
51
|
})
|
|
56
52
|
.catch((error) => {
|
|
@@ -66,12 +62,11 @@ const BcmColorInput = class {
|
|
|
66
62
|
return typeof window !== "undefined" && "EyeDropper" in window;
|
|
67
63
|
}
|
|
68
64
|
render() {
|
|
69
|
-
return (h(Host,
|
|
65
|
+
return (h(Host, { class: "tw-block" }, h("bcm-input", { id: this._id + "-color", fullWidth: this.fullWidth, label: this.label, placeholder: this.placeholder, type: "text", "onBcm-change": e => this.handleInputChanged(e) }, h("i", { slot: "prefix", class: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100", style: {
|
|
70
66
|
backgroundColor: this.value,
|
|
71
67
|
} }), this.isEyeDropperSupported() && h("i", { slot: "suffix", class: "far fa-eye-dropper", onClick: () => this.eyeDropper() })), h("bcm-linked", { targetId: this._id + "-color-container" }, h("bcm-colorful", { id: this._id + "-picker", color: this.value, onBcmChange: e => this.handleChange(e.detail) }))));
|
|
72
68
|
}
|
|
73
69
|
get el() { return getElement(this); }
|
|
74
70
|
};
|
|
75
|
-
BcmColorInput.style = colorInputCss;
|
|
76
71
|
|
|
77
72
|
export { BcmColorInput as bcm_color_input };
|
|
@@ -7,10 +7,10 @@ import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpe
|
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
8
8
|
import './color-helper-4fa5dd0d.js';
|
|
9
9
|
import './datetime-helper-df25808a.js';
|
|
10
|
-
import { G as Generate } from './generate-
|
|
11
|
-
import './number-helper-
|
|
10
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
11
|
+
import './number-helper-b9dc0cca.js';
|
|
12
12
|
import './string-helper-6bd24967.js';
|
|
13
|
-
import './validators-
|
|
13
|
+
import './validators-89c43bb2.js';
|
|
14
14
|
import './element-dragger-89bb52fd.js';
|
|
15
15
|
import { d as delay } from './utils-57652744.js';
|
|
16
16
|
import { F as FloatingUI } from './floating-ui-e7341329.js';
|
|
@@ -17784,6 +17784,7 @@ const BcmLinked = class {
|
|
|
17784
17784
|
this.maxHeight = undefined;
|
|
17785
17785
|
this.minHeight = "50px";
|
|
17786
17786
|
this.isOpen = false;
|
|
17787
|
+
this.hideDelay = 500;
|
|
17787
17788
|
this.isMouseOverLink = false;
|
|
17788
17789
|
}
|
|
17789
17790
|
target() {
|
|
@@ -17941,7 +17942,7 @@ const BcmLinked = class {
|
|
|
17941
17942
|
handleMouseLeave() {
|
|
17942
17943
|
setTimeout(() => {
|
|
17943
17944
|
!this.isMouseOverLink && this.hide();
|
|
17944
|
-
},
|
|
17945
|
+
}, this.hideDelay);
|
|
17945
17946
|
}
|
|
17946
17947
|
handleMouseEnter() {
|
|
17947
17948
|
clearTimeout(this.timeoutId);
|
|
@@ -6,7 +6,7 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-39
|
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.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-508e45d7.js';
|
|
10
10
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
11
11
|
import { d as delay } from './utils-57652744.js';
|
|
12
12
|
import './_commonjsHelpers-3016b722.js';
|
|
@@ -7,7 +7,7 @@ import { D as DragDirections, E as ElementDragger } from './element-dragger-89bb
|
|
|
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-57652744.js';
|
|
10
|
-
import { G as Generate } from './generate-
|
|
10
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
11
11
|
import { B 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-d74fe788.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
8
8
|
import './colors-fa05fe33.js';
|
|
9
9
|
import './_commonjsHelpers-3016b722.js';
|
|
10
10
|
|
|
@@ -6,10 +6,10 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
7
7
|
import './color-helper-4fa5dd0d.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-508e45d7.js';
|
|
10
|
+
import './number-helper-b9dc0cca.js';
|
|
11
11
|
import './string-helper-6bd24967.js';
|
|
12
|
-
import './validators-
|
|
12
|
+
import './validators-89c43bb2.js';
|
|
13
13
|
import './element-dragger-89bb52fd.js';
|
|
14
14
|
import { a as Bcm } from './bcm-9f50af9c.js';
|
|
15
15
|
import { c as classnames } from './index-ed9652af.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-39133086.js';
|
|
6
6
|
import { c as classnames } from './index-ed9652af.js';
|
|
7
7
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
8
|
-
import { J as JsonParse } from './json-parse-decarator-
|
|
9
|
-
import { G as Generate } from './generate-
|
|
8
|
+
import { J as JsonParse } from './json-parse-decarator-0159345f.js';
|
|
9
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
10
10
|
import { B as Bcm } from './bcm-9f50af9c.js';
|
|
11
11
|
import './_commonjsHelpers-3016b722.js';
|
|
12
12
|
import './colors-fa05fe33.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-39133086.js';
|
|
6
6
|
import { I as IsLoad } from './is-load-decorator-bc14ec4b.js';
|
|
7
|
-
import { G as Generate } from './generate-
|
|
7
|
+
import { G as Generate } from './generate-508e45d7.js';
|
|
8
8
|
import { c as classnames } from './index-ed9652af.js';
|
|
9
9
|
import { S as StringHelper } from './string-helper-6bd24967.js';
|
|
10
10
|
import { C as ColorHelper } from './color-helper-4fa5dd0d.js';
|