@refinitiv-ui/elements 5.5.0 → 5.8.1
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/CHANGELOG.md +65 -8
- package/lib/accordion/custom-elements.md +18 -0
- package/lib/accordion/index.d.ts +5 -5
- package/lib/accordion/index.js +8 -11
- package/lib/appstate-bar/custom-elements.md +22 -0
- package/lib/appstate-bar/index.d.ts +5 -5
- package/lib/appstate-bar/index.js +8 -11
- package/lib/autosuggest/custom-elements.json +24 -4
- package/lib/autosuggest/custom-elements.md +54 -0
- package/lib/autosuggest/helpers/types.d.ts +1 -1
- package/lib/autosuggest/helpers/utils.d.ts +2 -2
- package/lib/autosuggest/helpers/utils.js +1 -2
- package/lib/autosuggest/index.d.ts +13 -8
- package/lib/autosuggest/index.js +38 -31
- package/lib/button/custom-elements.json +2 -2
- package/lib/button/custom-elements.md +23 -0
- package/lib/button/index.d.ts +13 -13
- package/lib/button/index.js +41 -31
- package/lib/button-bar/custom-elements.md +9 -0
- package/lib/button-bar/index.d.ts +3 -3
- package/lib/button-bar/index.js +8 -10
- package/lib/calendar/constants.d.ts +22 -0
- package/lib/calendar/constants.js +23 -0
- package/lib/calendar/custom-elements.json +8 -6
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/calendar/index.d.ts +9 -7
- package/lib/calendar/index.js +20 -38
- package/lib/calendar/locales.d.ts +1 -31
- package/lib/calendar/locales.js +0 -104
- package/lib/calendar/types.d.ts +1 -5
- package/lib/calendar/types.js +1 -6
- package/lib/calendar/utils.d.ts +31 -1
- package/lib/calendar/utils.js +104 -2
- package/lib/canvas/custom-elements.json +7 -5
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/canvas/index.d.ts +4 -3
- package/lib/canvas/index.js +8 -10
- package/lib/card/custom-elements.json +3 -1
- package/lib/card/custom-elements.md +24 -0
- package/lib/card/helpers/types.d.ts +1 -1
- package/lib/card/index.d.ts +10 -8
- package/lib/card/index.js +14 -13
- package/lib/chart/custom-elements.json +1 -1
- package/lib/chart/custom-elements.md +16 -0
- package/lib/chart/helpers/index.d.ts +2 -2
- package/lib/chart/helpers/index.js +2 -2
- package/lib/chart/index.d.ts +6 -6
- package/lib/chart/index.js +12 -14
- package/lib/checkbox/custom-elements.json +4 -4
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/checkbox/index.d.ts +21 -13
- package/lib/checkbox/index.js +56 -31
- package/lib/clock/custom-elements.json +21 -4
- package/lib/clock/custom-elements.md +28 -0
- package/lib/clock/index.d.ts +17 -5
- package/lib/clock/index.js +37 -18
- package/lib/clock/themes/halo/dark/index.js +1 -1
- package/lib/clock/themes/halo/light/index.js +1 -1
- package/lib/clock/themes/solar/charcoal/index.js +1 -1
- package/lib/clock/themes/solar/pearl/index.js +1 -1
- package/lib/clock/utils/TickManager.js +2 -2
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/collapse/index.d.ts +7 -7
- package/lib/collapse/index.js +11 -13
- package/lib/color-dialog/custom-elements.json +29 -16
- package/lib/color-dialog/custom-elements.md +39 -0
- package/lib/color-dialog/elements/color-palettes.d.ts +5 -5
- package/lib/color-dialog/elements/color-palettes.js +8 -12
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +5 -5
- package/lib/color-dialog/elements/grayscale-palettes.js +9 -12
- package/lib/color-dialog/elements/palettes.d.ts +3 -3
- package/lib/color-dialog/elements/palettes.js +49 -47
- package/lib/color-dialog/helpers/value-model.js +2 -2
- package/lib/color-dialog/index.d.ts +19 -19
- package/lib/color-dialog/index.js +36 -35
- package/lib/combo-box/custom-elements.json +28 -16
- package/lib/combo-box/custom-elements.md +35 -0
- package/lib/combo-box/helpers/filter.d.ts +4 -4
- package/lib/combo-box/helpers/types.d.ts +2 -2
- package/lib/combo-box/index.d.ts +26 -18
- package/lib/combo-box/index.js +36 -27
- package/lib/combo-box/themes/halo/dark/index.js +1 -1
- package/lib/combo-box/themes/halo/light/index.js +1 -1
- package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
- package/lib/combo-box/themes/solar/pearl/index.js +1 -1
- package/lib/counter/custom-elements.json +8 -4
- package/lib/counter/custom-elements.md +11 -0
- package/lib/counter/index.d.ts +5 -3
- package/lib/counter/index.js +11 -12
- package/lib/datetime-picker/custom-elements.json +52 -23
- package/lib/datetime-picker/custom-elements.md +57 -0
- package/lib/datetime-picker/index.d.ts +25 -14
- package/lib/datetime-picker/index.js +46 -35
- package/lib/datetime-picker/locales.d.ts +1 -1
- package/lib/datetime-picker/locales.js +12 -1
- package/lib/datetime-picker/types.d.ts +1 -1
- package/lib/datetime-picker/utils.js +1 -1
- package/lib/dialog/custom-elements.json +34 -12
- package/lib/dialog/custom-elements.md +47 -0
- package/lib/dialog/index.d.ts +17 -20
- package/lib/dialog/index.js +28 -31
- package/lib/email-field/custom-elements.json +81 -94
- package/lib/email-field/custom-elements.md +37 -0
- package/lib/email-field/index.d.ts +44 -116
- package/lib/email-field/index.js +48 -249
- package/lib/events.d.ts +2 -2
- package/lib/events.js +1 -2
- package/lib/flag/custom-elements.md +10 -0
- package/lib/flag/index.d.ts +6 -4
- package/lib/flag/index.js +12 -12
- package/lib/flag/utils/FlagLoader.d.ts +1 -1
- package/lib/flag/utils/FlagLoader.js +1 -1
- package/lib/header/custom-elements.md +18 -0
- package/lib/header/index.d.ts +2 -2
- package/lib/header/index.js +5 -8
- package/lib/heatmap/custom-elements.md +26 -0
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +1 -1
- package/lib/heatmap/helpers/text.d.ts +1 -1
- package/lib/heatmap/index.d.ts +7 -7
- package/lib/heatmap/index.js +15 -16
- package/lib/icon/custom-elements.json +6 -4
- package/lib/icon/custom-elements.md +8 -0
- package/lib/icon/index.d.ts +9 -6
- package/lib/icon/index.js +28 -18
- package/lib/icon/utils/IconLoader.d.ts +6 -1
- package/lib/icon/utils/IconLoader.js +24 -17
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -1
- package/lib/interactive-chart/custom-elements.json +6 -10
- package/lib/interactive-chart/custom-elements.md +31 -0
- package/lib/interactive-chart/helpers/types.d.ts +2 -2
- package/lib/interactive-chart/index.d.ts +11 -8
- package/lib/interactive-chart/index.js +17 -17
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.d.ts +18 -8
- package/lib/item/index.js +36 -16
- package/lib/label/custom-elements.md +11 -0
- package/lib/label/index.d.ts +3 -3
- package/lib/label/index.js +12 -20
- package/lib/layout/custom-elements.md +26 -0
- package/lib/layout/index.d.ts +3 -3
- package/lib/layout/index.js +6 -9
- package/lib/led-gauge/custom-elements.json +4 -4
- package/lib/led-gauge/custom-elements.md +17 -0
- package/lib/led-gauge/index.d.ts +5 -4
- package/lib/led-gauge/index.js +9 -11
- package/lib/list/custom-elements.json +18 -5
- package/lib/list/custom-elements.md +32 -0
- package/lib/list/helpers/list-renderer.d.ts +2 -2
- package/lib/list/helpers/list-renderer.js +4 -2
- package/lib/list/helpers/types.d.ts +2 -2
- package/lib/list/index.d.ts +27 -10
- package/lib/list/index.js +54 -25
- package/lib/list/renderer.d.ts +2 -2
- package/lib/list/renderer.js +1 -1
- package/lib/loader/custom-elements.md +5 -0
- package/lib/loader/index.js +4 -8
- package/lib/multi-input/custom-elements.json +7 -6
- package/lib/multi-input/custom-elements.md +43 -0
- package/lib/multi-input/helpers/types.d.ts +1 -1
- package/lib/multi-input/index.d.ts +11 -7
- package/lib/multi-input/index.js +20 -17
- package/lib/notification/custom-elements.md +26 -0
- package/lib/notification/elements/notification-tray.d.ts +2 -2
- package/lib/notification/elements/notification-tray.js +6 -9
- package/lib/notification/elements/notification.d.ts +5 -5
- package/lib/notification/elements/notification.js +8 -11
- package/lib/notification/helpers/status.d.ts +1 -1
- package/lib/notification/helpers/status.js +1 -1
- package/lib/notification/helpers/types.d.ts +1 -1
- package/lib/notification/index.d.ts +2 -2
- package/lib/notification/index.js +2 -2
- package/lib/number-field/custom-elements.json +99 -54
- package/lib/number-field/custom-elements.md +42 -0
- package/lib/number-field/index.d.ts +96 -51
- package/lib/number-field/index.js +121 -89
- package/lib/overlay/custom-elements.json +26 -13
- package/lib/overlay/custom-elements.md +54 -0
- package/lib/overlay/elements/overlay-backdrop.d.ts +4 -4
- package/lib/overlay/elements/overlay-backdrop.js +6 -9
- package/lib/overlay/elements/overlay-viewport.d.ts +3 -3
- package/lib/overlay/elements/overlay-viewport.js +5 -9
- package/lib/overlay/elements/overlay.d.ts +10 -5
- package/lib/overlay/elements/overlay.js +18 -23
- package/lib/overlay/index.d.ts +2 -2
- package/lib/overlay/index.js +1 -1
- package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
- package/lib/overlay/managers/backdrop-manager.js +2 -2
- package/lib/overlay/managers/close-manager.js +1 -1
- package/lib/overlay/managers/focus-manager.js +2 -2
- package/lib/overlay/managers/interaction-lock-manager.js +2 -2
- package/lib/overlay/managers/viewport-manager.d.ts +2 -2
- package/lib/overlay/managers/viewport-manager.js +6 -2
- package/lib/overlay/managers/zindex-manager.js +1 -1
- package/lib/overlay-menu/custom-elements.json +70 -20
- package/lib/overlay-menu/custom-elements.md +44 -0
- package/lib/overlay-menu/helpers/types.d.ts +3 -3
- package/lib/overlay-menu/index.d.ts +21 -19
- package/lib/overlay-menu/index.js +32 -31
- package/lib/overlay-menu/managers/menu-manager.d.ts +2 -2
- package/lib/overlay-menu/managers/menu-manager.js +3 -3
- package/lib/pagination/custom-elements.md +27 -0
- package/lib/pagination/index.d.ts +8 -8
- package/lib/pagination/index.js +13 -15
- package/lib/panel/custom-elements.md +11 -0
- package/lib/panel/index.d.ts +3 -3
- package/lib/panel/index.js +6 -9
- package/lib/password-field/custom-elements.json +62 -67
- package/lib/password-field/custom-elements.md +39 -0
- package/lib/password-field/index.d.ts +43 -94
- package/lib/password-field/index.js +52 -198
- package/lib/pill/custom-elements.json +8 -6
- package/lib/pill/custom-elements.md +22 -0
- package/lib/pill/index.d.ts +5 -5
- package/lib/pill/index.js +9 -11
- package/lib/progress-bar/custom-elements.md +18 -0
- package/lib/progress-bar/index.d.ts +3 -3
- package/lib/progress-bar/index.js +7 -9
- package/lib/radio-button/custom-elements.json +4 -4
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/radio-button/index.d.ts +25 -8
- package/lib/radio-button/index.js +84 -21
- package/lib/radio-button/radio-button-registry.d.ts +3 -2
- package/lib/radio-button/radio-button-registry.js +57 -4
- package/lib/rating/custom-elements.md +17 -0
- package/lib/rating/index.d.ts +3 -3
- package/lib/rating/index.js +9 -10
- package/lib/search-field/custom-elements.json +70 -74
- package/lib/search-field/custom-elements.md +41 -0
- package/lib/search-field/index.d.ts +44 -101
- package/lib/search-field/index.js +50 -220
- package/lib/select/custom-elements.json +5 -4
- package/lib/select/custom-elements.md +24 -0
- package/lib/select/helpers/types.d.ts +1 -1
- package/lib/select/index.d.ts +18 -10
- package/lib/select/index.js +84 -45
- package/lib/sidebar-layout/custom-elements.json +2 -6
- package/lib/sidebar-layout/custom-elements.md +21 -0
- package/lib/sidebar-layout/index.d.ts +7 -6
- package/lib/sidebar-layout/index.js +9 -10
- package/lib/slider/custom-elements.json +4 -4
- package/lib/slider/custom-elements.md +28 -0
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.js +9 -10
- package/lib/sparkline/custom-elements.json +4 -4
- package/lib/sparkline/custom-elements.md +16 -0
- package/lib/sparkline/index.d.ts +6 -4
- package/lib/sparkline/index.js +10 -10
- package/lib/swing-gauge/custom-elements.json +5 -3
- package/lib/swing-gauge/custom-elements.md +17 -0
- package/lib/swing-gauge/helpers.d.ts +1 -1
- package/lib/swing-gauge/helpers.js +1 -1
- package/lib/swing-gauge/index.d.ts +9 -7
- package/lib/swing-gauge/index.js +17 -15
- package/lib/tab/custom-elements.json +2 -2
- package/lib/tab/custom-elements.md +22 -0
- package/lib/tab/index.d.ts +5 -5
- package/lib/tab/index.js +9 -12
- package/lib/tab-bar/custom-elements.md +11 -0
- package/lib/tab-bar/index.d.ts +4 -4
- package/lib/tab-bar/index.js +9 -11
- package/lib/text-field/custom-elements.json +78 -89
- package/lib/text-field/custom-elements.md +35 -0
- package/lib/text-field/index.d.ts +59 -79
- package/lib/text-field/index.js +99 -158
- package/lib/time-picker/custom-elements.json +4 -4
- package/lib/time-picker/custom-elements.md +28 -0
- package/lib/time-picker/index.d.ts +7 -4
- package/lib/time-picker/index.js +15 -14
- package/lib/toggle/custom-elements.json +4 -4
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/toggle/index.d.ts +14 -4
- package/lib/toggle/index.js +31 -12
- package/lib/tooltip/custom-elements.md +14 -0
- package/lib/tooltip/elements/title-tooltip.js +2 -2
- package/lib/tooltip/elements/tooltip-element.d.ts +1 -1
- package/lib/tooltip/helpers/overflow-tooltip.d.ts +1 -1
- package/lib/tooltip/helpers/overflow-tooltip.js +1 -1
- package/lib/tooltip/helpers/renderer.d.ts +1 -1
- package/lib/tooltip/helpers/types.d.ts +1 -1
- package/lib/tooltip/index.d.ts +9 -9
- package/lib/tooltip/index.js +18 -20
- package/lib/tooltip/managers/tooltip-manager.d.ts +2 -2
- package/lib/tooltip/managers/tooltip-manager.js +3 -7
- package/lib/tornado-chart/custom-elements.md +18 -0
- package/lib/tornado-chart/elements/tornado-chart.d.ts +4 -4
- package/lib/tornado-chart/elements/tornado-chart.js +8 -11
- package/lib/tornado-chart/elements/tornado-item.d.ts +5 -5
- package/lib/tornado-chart/elements/tornado-item.js +10 -12
- package/lib/tornado-chart/index.d.ts +2 -2
- package/lib/tornado-chart/index.js +2 -2
- package/lib/tree/custom-elements.json +4 -3
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/elements/tree-item.d.ts +4 -4
- package/lib/tree/elements/tree-item.js +10 -13
- package/lib/tree/elements/tree.d.ts +6 -5
- package/lib/tree/elements/tree.js +9 -12
- package/lib/tree/helpers/filter.d.ts +2 -2
- package/lib/tree/helpers/renderer.d.ts +2 -2
- package/lib/tree/helpers/renderer.js +3 -3
- package/lib/tree/helpers/types.d.ts +1 -1
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/index.js +3 -3
- package/lib/tree/managers/tree-manager.d.ts +22 -10
- package/lib/tree/managers/tree-manager.js +56 -40
- package/lib/tree/themes/halo/dark/index.js +1 -1
- package/lib/tree/themes/halo/light/index.js +1 -1
- package/lib/tree/themes/solar/charcoal/index.js +1 -1
- package/lib/tree/themes/solar/pearl/index.js +1 -1
- package/lib/tree-select/custom-elements.json +10 -6
- package/lib/tree-select/custom-elements.md +26 -0
- package/lib/tree-select/helpers/types.d.ts +2 -2
- package/lib/tree-select/index.d.ts +28 -20
- package/lib/tree-select/index.js +44 -31
- package/lib/tree-select/themes/halo/dark/index.js +1 -1
- package/lib/tree-select/themes/halo/light/index.js +1 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
- package/lib/tree-select/themes/solar/pearl/index.js +1 -1
- package/lib/version.d.ts +1 -0
- package/lib/version.js +1 -0
- package/package.json +298 -15
- package/lib/autosuggest/helpers/const.d.ts +0 -2
- package/lib/autosuggest/helpers/const.js +0 -3
- package/lib/overlay-menu/helpers/uuid.d.ts +0 -7
- package/lib/overlay-menu/helpers/uuid.js +0 -13
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# ef-color-dialog
|
|
2
|
+
|
|
3
|
+
Displays a colour picker dialog,
|
|
4
|
+
for selecting a predefined range of colours.
|
|
5
|
+
|
|
6
|
+
## Attributes
|
|
7
|
+
|
|
8
|
+
| Attribute | Type | Default | Description |
|
|
9
|
+
|------------------------|-----------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `no-cancel-on-esc-key` | `boolean` | false | Prevents dialog to close when user presses ESC key |
|
|
11
|
+
| `position-target` | `string \| undefined` | | Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`. |
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
| Property | Attribute | Type | Default | Description |
|
|
16
|
+
|--------------------------|------------------------|-----------------------|---------|--------------------------------------------------|
|
|
17
|
+
| `allowNocolor` | `allow-nocolor` | `boolean` | false | Set the palettes to activate no-color option |
|
|
18
|
+
| `blue` | `blue` | `string` | "" | Blue value from 0 to 255 |
|
|
19
|
+
| `draggable` | | `boolean` | true | False to make the dialog not draggable. |
|
|
20
|
+
| `green` | `green` | `string` | "" | Green value from 0 to 255 |
|
|
21
|
+
| `header` | `header` | `string \| null` | null | Set Header/Title of the color dialog |
|
|
22
|
+
| `hex` | `hex` | `string` | "" | Value of hex without # sign, supports both 3-digits shorthand hex and regular 6-digits hex |
|
|
23
|
+
| `noCancelOnEscKey` | `no-cancel-on-esc-key` | `boolean` | false | Prevents dialog to close when user presses ESC key |
|
|
24
|
+
| `noCancelOnOutsideClick` | | `boolean` | true | Prevents dialog to close when user clicks outside the dialog. |
|
|
25
|
+
| `opened` | `opened` | `boolean` | false | Set dialog to open |
|
|
26
|
+
| `positionTarget` | `position-target` | `string \| undefined` | | Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`. |
|
|
27
|
+
| `red` | `red` | `string` | "" | Red value from 0 to 255 |
|
|
28
|
+
| `value` | `value` | `string` | "" | Value of selected color from color dialog will be written here as hex value<br />e.g. "#00f" or "#0000ff" |
|
|
29
|
+
| `withBackdrop` | | `boolean` | true | False to hide backdrop. |
|
|
30
|
+
| `withShadow` | | `boolean` | true | False to remove shadow for dialog component. |
|
|
31
|
+
| `x` | `x` | `string \| undefined` | | Set a specific x coordinate of dialog |
|
|
32
|
+
| `y` | `y` | `string \| undefined` | | Set a specific y coordinate of dialog |
|
|
33
|
+
|
|
34
|
+
## Events
|
|
35
|
+
|
|
36
|
+
| Event | Description |
|
|
37
|
+
|------------------|-------------------------------------------|
|
|
38
|
+
| `opened-changed` | Fired when the `opened` property changes. |
|
|
39
|
+
| `value-changed` | Fired when the `value` property changes. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSXInterface } from '../../jsx';
|
|
2
|
-
import { TemplateResult,
|
|
3
|
-
import { Palettes } from './palettes';
|
|
2
|
+
import { TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import { Palettes } from './palettes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Component that allows user to select
|
|
6
6
|
* any colours by tapping or dragging
|
|
@@ -12,12 +12,12 @@ export declare class ColorPalettes extends Palettes {
|
|
|
12
12
|
*/
|
|
13
13
|
static get version(): string;
|
|
14
14
|
/**
|
|
15
|
-
* A `
|
|
15
|
+
* A `CSSResultGroup` that will be used
|
|
16
16
|
* to style the host, slotted children
|
|
17
17
|
* and the internal template of the element.
|
|
18
|
-
* @return
|
|
18
|
+
* @return CSS template
|
|
19
19
|
*/
|
|
20
|
-
static get styles():
|
|
20
|
+
static get styles(): CSSResultGroup;
|
|
21
21
|
/**
|
|
22
22
|
* create color items template from COLOR_ITEMS array
|
|
23
23
|
* @return color items template
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import { html, css, customElement, svg } from '@refinitiv-ui/core';
|
|
8
|
-
import { Palettes } from './palettes';
|
|
9
|
-
import { COLOR_ITEMS } from '../helpers/color-helpers';
|
|
10
|
-
import { VERSION } from '../../';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, css, svg } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
+
import { VERSION } from '../../version.js';
|
|
5
|
+
import { Palettes } from './palettes.js';
|
|
6
|
+
import { COLOR_ITEMS } from '../helpers/color-helpers.js';
|
|
11
7
|
/**
|
|
12
8
|
* Component that allows user to select
|
|
13
9
|
* any colours by tapping or dragging
|
|
@@ -21,10 +17,10 @@ let ColorPalettes = class ColorPalettes extends Palettes {
|
|
|
21
17
|
return VERSION;
|
|
22
18
|
}
|
|
23
19
|
/**
|
|
24
|
-
* A `
|
|
20
|
+
* A `CSSResultGroup` that will be used
|
|
25
21
|
* to style the host, slotted children
|
|
26
22
|
* and the internal template of the element.
|
|
27
|
-
* @return
|
|
23
|
+
* @return CSS template
|
|
28
24
|
*/
|
|
29
25
|
static get styles() {
|
|
30
26
|
return css `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSXInterface } from '../../jsx';
|
|
2
|
-
import { TemplateResult,
|
|
3
|
-
import { Palettes } from './palettes';
|
|
2
|
+
import { TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import { Palettes } from './palettes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Component that allows user to select any
|
|
6
6
|
* grayscale color by tapping or dragging
|
|
@@ -12,12 +12,12 @@ export declare class GrayscalePalettes extends Palettes {
|
|
|
12
12
|
*/
|
|
13
13
|
static get version(): string;
|
|
14
14
|
/**
|
|
15
|
-
* A `
|
|
15
|
+
* A `CSSResultGroup` that will be used
|
|
16
16
|
* to style the host, slotted children
|
|
17
17
|
* and the internal template of the element.
|
|
18
|
-
* @return
|
|
18
|
+
* @return CSS template
|
|
19
19
|
*/
|
|
20
|
-
static get styles():
|
|
20
|
+
static get styles(): CSSResultGroup;
|
|
21
21
|
/**
|
|
22
22
|
* Set the palettes to activate no-color option
|
|
23
23
|
*/
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import { Palettes } from './palettes';
|
|
9
|
-
import { GRAYSCALE_ITEMS, NOCOLOR_POINTS } from '../helpers/color-helpers';
|
|
10
|
-
import { VERSION } from '../../';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, css, svg } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
5
|
+
import { VERSION } from '../../version.js';
|
|
6
|
+
import { Palettes } from './palettes.js';
|
|
7
|
+
import { GRAYSCALE_ITEMS, NOCOLOR_POINTS } from '../helpers/color-helpers.js';
|
|
11
8
|
/**
|
|
12
9
|
* Component that allows user to select any
|
|
13
10
|
* grayscale color by tapping or dragging
|
|
@@ -28,10 +25,10 @@ let GrayscalePalettes = class GrayscalePalettes extends Palettes {
|
|
|
28
25
|
return VERSION;
|
|
29
26
|
}
|
|
30
27
|
/**
|
|
31
|
-
* A `
|
|
28
|
+
* A `CSSResultGroup` that will be used
|
|
32
29
|
* to style the host, slotted children
|
|
33
30
|
* and the internal template of the element.
|
|
34
|
-
* @return
|
|
31
|
+
* @return CSS template
|
|
35
32
|
*/
|
|
36
33
|
static get styles() {
|
|
37
34
|
return css `
|
|
@@ -36,19 +36,19 @@ export declare class Palettes extends BasicElement {
|
|
|
36
36
|
* @param event mouse event
|
|
37
37
|
* @return {void}
|
|
38
38
|
*/
|
|
39
|
-
protected onTapItem
|
|
39
|
+
protected onTapItem(event: MouseEvent): void;
|
|
40
40
|
/**
|
|
41
41
|
* Update color value when drag on color item
|
|
42
42
|
* @param event mouse event
|
|
43
43
|
* @return {void}
|
|
44
44
|
*/
|
|
45
|
-
protected onMousemove
|
|
45
|
+
protected onMousemove(event: MouseEvent): void;
|
|
46
46
|
/**
|
|
47
47
|
* Update color value when drag on color item in mobile device
|
|
48
48
|
* @param event touch event
|
|
49
49
|
* @return {void}
|
|
50
50
|
*/
|
|
51
|
-
protected onTouchmove
|
|
51
|
+
protected onTouchmove(event: TouchEvent): void;
|
|
52
52
|
/**
|
|
53
53
|
* Update color value and fired value-changed event
|
|
54
54
|
* @param element target element to get value
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import { VERSION } from '../../';
|
|
9
|
-
import { rgb } from '@refinitiv-ui/utils';
|
|
10
|
-
import { isHex } from '../helpers/color-helpers';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { BasicElement, svg } from '@refinitiv-ui/core';
|
|
3
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
4
|
+
import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
5
|
+
import { VERSION } from '../../version.js';
|
|
6
|
+
import { rgb } from '@refinitiv-ui/utils/lib/color.js';
|
|
7
|
+
import { isHex } from '../helpers/color-helpers.js';
|
|
11
8
|
/**
|
|
12
9
|
* Element base class usually used
|
|
13
10
|
* for creating palettes elements.
|
|
@@ -19,43 +16,6 @@ export class Palettes extends BasicElement {
|
|
|
19
16
|
* Color value in hex
|
|
20
17
|
*/
|
|
21
18
|
this.value = '';
|
|
22
|
-
/**
|
|
23
|
-
* Update color value when tab on color item
|
|
24
|
-
* @param event mouse event
|
|
25
|
-
* @return {void}
|
|
26
|
-
*/
|
|
27
|
-
this.onTapItem = (event) => {
|
|
28
|
-
const polygonElement = event.target;
|
|
29
|
-
this.updateValue(polygonElement);
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Update color value when drag on color item
|
|
33
|
-
* @param event mouse event
|
|
34
|
-
* @return {void}
|
|
35
|
-
*/
|
|
36
|
-
this.onMousemove = (event) => {
|
|
37
|
-
const polygonElement = event.target;
|
|
38
|
-
let mouseButton = event.buttons;
|
|
39
|
-
if (mouseButton === undefined) { // buttons property is not supported in safari
|
|
40
|
-
mouseButton = event.which;
|
|
41
|
-
}
|
|
42
|
-
if (mouseButton !== 1) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
// only update when user click and drag on color item
|
|
46
|
-
this.updateValue(polygonElement);
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Update color value when drag on color item in mobile device
|
|
50
|
-
* @param event touch event
|
|
51
|
-
* @return {void}
|
|
52
|
-
*/
|
|
53
|
-
this.onTouchmove = (event) => {
|
|
54
|
-
var _a;
|
|
55
|
-
const touchOffsets = event.changedTouches[0];
|
|
56
|
-
const realTarget = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.elementFromPoint(touchOffsets.clientX, touchOffsets.clientY);
|
|
57
|
-
this.updateValue(realTarget);
|
|
58
|
-
};
|
|
59
19
|
}
|
|
60
20
|
/**
|
|
61
21
|
* Element version number
|
|
@@ -97,6 +57,48 @@ export class Palettes extends BasicElement {
|
|
|
97
57
|
this.colorSelector.setAttribute('points', points);
|
|
98
58
|
}
|
|
99
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Update color value when tab on color item
|
|
62
|
+
* @param event mouse event
|
|
63
|
+
* @return {void}
|
|
64
|
+
*/
|
|
65
|
+
onTapItem(event) {
|
|
66
|
+
const polygonElement = event.target;
|
|
67
|
+
this.updateValue(polygonElement);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Update color value when drag on color item
|
|
71
|
+
* @param event mouse event
|
|
72
|
+
* @return {void}
|
|
73
|
+
*/
|
|
74
|
+
onMousemove(event) {
|
|
75
|
+
const polygonElement = event.target;
|
|
76
|
+
let mouseButton = event.buttons;
|
|
77
|
+
if (mouseButton === undefined) { // buttons property is not supported in safari
|
|
78
|
+
mouseButton = event.which;
|
|
79
|
+
}
|
|
80
|
+
if (mouseButton !== 1) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
// only update when user click and drag on color item
|
|
84
|
+
this.updateValue(polygonElement);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Update color value when drag on color item in mobile device
|
|
88
|
+
* @param event touch event
|
|
89
|
+
* @return {void}
|
|
90
|
+
*/
|
|
91
|
+
onTouchmove(event) {
|
|
92
|
+
var _a;
|
|
93
|
+
const touchOffsets = event.changedTouches[0];
|
|
94
|
+
// TODO: it is a bug of TypeScript@4.4 remove ts-ignore once it is fixed
|
|
95
|
+
// https://github.com/microsoft/TypeScript/issues/45047
|
|
96
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
99
|
+
const realTarget = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.elementFromPoint(touchOffsets.clientX, touchOffsets.clientY);
|
|
100
|
+
this.updateValue(realTarget);
|
|
101
|
+
}
|
|
100
102
|
/**
|
|
101
103
|
* Update color value and fired value-changed event
|
|
102
104
|
* @param element target element to get value
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { rgb } from '@refinitiv-ui/utils';
|
|
2
|
-
import { isHex } from './color-helpers';
|
|
1
|
+
import { rgb } from '@refinitiv-ui/utils/lib/color.js';
|
|
2
|
+
import { isHex } from './color-helpers.js';
|
|
3
3
|
const rgbNumberToString = (value) => isNaN(value) ? '' : `${value}`; // replace NaN with empty string
|
|
4
4
|
/**
|
|
5
5
|
* A helper model in order to keep and update values between RGB and HEX
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { TemplateResult,
|
|
2
|
+
import { TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import '../button/index.js';
|
|
4
|
+
import '../number-field/index.js';
|
|
5
|
+
import '../text-field/index.js';
|
|
6
|
+
import { Dialog } from '../dialog/index.js';
|
|
7
|
+
import './elements/color-palettes.js';
|
|
8
|
+
import './elements/grayscale-palettes.js';
|
|
3
9
|
import { Translate } from '@refinitiv-ui/translate';
|
|
4
|
-
import '@refinitiv-ui/phrasebook/lib/locale/en/color-dialog';
|
|
5
|
-
import '../button';
|
|
6
|
-
import '../number-field';
|
|
7
|
-
import '../text-field';
|
|
8
|
-
import { Dialog } from '../dialog';
|
|
9
|
-
import './elements/color-palettes';
|
|
10
|
-
import './elements/grayscale-palettes';
|
|
10
|
+
import '@refinitiv-ui/phrasebook/lib/locale/en/color-dialog.js';
|
|
11
11
|
/**
|
|
12
12
|
* Displays a colour picker dialog,
|
|
13
13
|
* for selecting a predefined range of colours.
|
|
@@ -15,8 +15,8 @@ import './elements/grayscale-palettes';
|
|
|
15
15
|
* @fires value-changed - Fired when the `value` property changes.
|
|
16
16
|
* @fires opened-changed - Fired when the `opened` property changes.
|
|
17
17
|
*
|
|
18
|
-
* @attr {string|null} header - Set Header/Title of the color dialog
|
|
19
|
-
* @prop {string|null} header - Set Header/Title of the color dialog
|
|
18
|
+
* @attr {string | null} header - Set Header/Title of the color dialog
|
|
19
|
+
* @prop {string | null} [header=null] - Set Header/Title of the color dialog
|
|
20
20
|
*
|
|
21
21
|
* @attr {boolean} [opened=false] - Set dialog to open
|
|
22
22
|
* @prop {boolean} [opened=false] - Set dialog to open
|
|
@@ -24,14 +24,14 @@ import './elements/grayscale-palettes';
|
|
|
24
24
|
* @attr {boolean} [no-cancel-on-esc-key=false] - Prevents dialog to close when user presses ESC key
|
|
25
25
|
* @prop {boolean} [noCancelOnEscKey=false] - Prevents dialog to close when user presses ESC key
|
|
26
26
|
*
|
|
27
|
-
* @attr {string} x - Set a specific x coordinate of dialog
|
|
28
|
-
* @prop {string} x - Set a specific x coordinate of dialog
|
|
27
|
+
* @attr {string | undefined} x - Set a specific x coordinate of dialog
|
|
28
|
+
* @prop {string | undefined} x - Set a specific x coordinate of dialog
|
|
29
29
|
*
|
|
30
|
-
* @attr {string} y - Set a specific y coordinate of dialog
|
|
31
|
-
* @prop {string} y - Set a specific y coordinate of dialog
|
|
30
|
+
* @attr {string | undefined} y - Set a specific y coordinate of dialog
|
|
31
|
+
* @prop {string | undefined} y - Set a specific y coordinate of dialog
|
|
32
32
|
*
|
|
33
|
-
* @attr {string} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
34
|
-
* @prop {string} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
33
|
+
* @attr {string | undefined} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
34
|
+
* @prop {string | undefined} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
35
35
|
*
|
|
36
36
|
* @prop {boolean} [noCancelOnOutsideClick=true] - Prevents dialog to close when user clicks outside the dialog.
|
|
37
37
|
*
|
|
@@ -48,12 +48,12 @@ export declare class ColorDialog extends Dialog {
|
|
|
48
48
|
*/
|
|
49
49
|
static get version(): string;
|
|
50
50
|
/**
|
|
51
|
-
* A `
|
|
51
|
+
* A `CSSResultGroup` that will be used
|
|
52
52
|
* to style the host, slotted children
|
|
53
53
|
* and the internal template of the element.
|
|
54
|
-
* @return
|
|
54
|
+
* @return CSS template
|
|
55
55
|
*/
|
|
56
|
-
static get styles():
|
|
56
|
+
static get styles(): CSSResultGroup;
|
|
57
57
|
/**
|
|
58
58
|
* speed up rendering by not populating content on page load
|
|
59
59
|
*/
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, css, WarningNotice } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
6
|
+
import { styleMap } from '@refinitiv-ui/core/lib/directives/style-map.js';
|
|
7
|
+
import { rgb } from '@refinitiv-ui/utils/lib/color.js';
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
|
+
import { ValueModel } from './helpers/value-model.js';
|
|
10
|
+
import { isHex, removeHashSign } from './helpers/color-helpers.js';
|
|
11
|
+
import '../button/index.js';
|
|
12
|
+
import '../number-field/index.js';
|
|
13
|
+
import '../text-field/index.js';
|
|
14
|
+
import { Dialog } from '../dialog/index.js';
|
|
15
|
+
import './elements/color-palettes.js';
|
|
16
|
+
import './elements/grayscale-palettes.js';
|
|
9
17
|
import { translate } from '@refinitiv-ui/translate';
|
|
10
|
-
import '@refinitiv-ui/phrasebook/lib/locale/en/color-dialog';
|
|
11
|
-
import '../button';
|
|
12
|
-
import '../number-field';
|
|
13
|
-
import '../text-field';
|
|
14
|
-
import { Dialog } from '../dialog';
|
|
15
|
-
import './elements/color-palettes';
|
|
16
|
-
import './elements/grayscale-palettes';
|
|
17
|
-
import { isHex, removeHashSign } from './helpers/color-helpers';
|
|
18
|
-
import { ValueModel } from './helpers/value-model';
|
|
19
|
-
import { VERSION } from '../';
|
|
18
|
+
import '@refinitiv-ui/phrasebook/lib/locale/en/color-dialog.js';
|
|
20
19
|
/**
|
|
21
20
|
* Displays a colour picker dialog,
|
|
22
21
|
* for selecting a predefined range of colours.
|
|
@@ -24,8 +23,8 @@ import { VERSION } from '../';
|
|
|
24
23
|
* @fires value-changed - Fired when the `value` property changes.
|
|
25
24
|
* @fires opened-changed - Fired when the `opened` property changes.
|
|
26
25
|
*
|
|
27
|
-
* @attr {string|null} header - Set Header/Title of the color dialog
|
|
28
|
-
* @prop {string|null} header - Set Header/Title of the color dialog
|
|
26
|
+
* @attr {string | null} header - Set Header/Title of the color dialog
|
|
27
|
+
* @prop {string | null} [header=null] - Set Header/Title of the color dialog
|
|
29
28
|
*
|
|
30
29
|
* @attr {boolean} [opened=false] - Set dialog to open
|
|
31
30
|
* @prop {boolean} [opened=false] - Set dialog to open
|
|
@@ -33,14 +32,14 @@ import { VERSION } from '../';
|
|
|
33
32
|
* @attr {boolean} [no-cancel-on-esc-key=false] - Prevents dialog to close when user presses ESC key
|
|
34
33
|
* @prop {boolean} [noCancelOnEscKey=false] - Prevents dialog to close when user presses ESC key
|
|
35
34
|
*
|
|
36
|
-
* @attr {string} x - Set a specific x coordinate of dialog
|
|
37
|
-
* @prop {string} x - Set a specific x coordinate of dialog
|
|
35
|
+
* @attr {string | undefined} x - Set a specific x coordinate of dialog
|
|
36
|
+
* @prop {string | undefined} x - Set a specific x coordinate of dialog
|
|
38
37
|
*
|
|
39
|
-
* @attr {string} y - Set a specific y coordinate of dialog
|
|
40
|
-
* @prop {string} y - Set a specific y coordinate of dialog
|
|
38
|
+
* @attr {string | undefined} y - Set a specific y coordinate of dialog
|
|
39
|
+
* @prop {string | undefined} y - Set a specific y coordinate of dialog
|
|
41
40
|
*
|
|
42
|
-
* @attr {string} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
43
|
-
* @prop {string} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
41
|
+
* @attr {string | undefined} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
42
|
+
* @prop {string | undefined} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
44
43
|
*
|
|
45
44
|
* @prop {boolean} [noCancelOnOutsideClick=true] - Prevents dialog to close when user clicks outside the dialog.
|
|
46
45
|
*
|
|
@@ -80,13 +79,14 @@ let ColorDialog = class ColorDialog extends Dialog {
|
|
|
80
79
|
return VERSION;
|
|
81
80
|
}
|
|
82
81
|
/**
|
|
83
|
-
* A `
|
|
82
|
+
* A `CSSResultGroup` that will be used
|
|
84
83
|
* to style the host, slotted children
|
|
85
84
|
* and the internal template of the element.
|
|
86
|
-
* @return
|
|
85
|
+
* @return CSS template
|
|
87
86
|
*/
|
|
88
87
|
static get styles() {
|
|
89
|
-
return [
|
|
88
|
+
return [
|
|
89
|
+
super.styles,
|
|
90
90
|
css `
|
|
91
91
|
:host {
|
|
92
92
|
display: block;
|
|
@@ -97,7 +97,8 @@ let ColorDialog = class ColorDialog extends Dialog {
|
|
|
97
97
|
var(--no-color-line-color, #ff0000) calc(50% + 1px),
|
|
98
98
|
transparent calc(50% + 2px));
|
|
99
99
|
}
|
|
100
|
-
`
|
|
100
|
+
`
|
|
101
|
+
];
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
103
104
|
* Value of selected color from color dialog will be written here as hex value
|
|
@@ -112,7 +113,7 @@ let ColorDialog = class ColorDialog extends Dialog {
|
|
|
112
113
|
value = '';
|
|
113
114
|
}
|
|
114
115
|
this._value = value;
|
|
115
|
-
|
|
116
|
+
this.requestUpdate('value', oldValue);
|
|
116
117
|
}
|
|
117
118
|
get value() {
|
|
118
119
|
return this._value;
|
|
@@ -263,7 +264,7 @@ let ColorDialog = class ColorDialog extends Dialog {
|
|
|
263
264
|
*/
|
|
264
265
|
onColorChanged(event) {
|
|
265
266
|
this.valueModel.hex = removeHashSign(event.target.value);
|
|
266
|
-
|
|
267
|
+
this.requestUpdate();
|
|
267
268
|
}
|
|
268
269
|
/**
|
|
269
270
|
* update hex value when typing on hex input
|
|
@@ -272,7 +273,7 @@ let ColorDialog = class ColorDialog extends Dialog {
|
|
|
272
273
|
*/
|
|
273
274
|
onHexChanged(event) {
|
|
274
275
|
this.valueModel.hex = event.target.value;
|
|
275
|
-
|
|
276
|
+
this.requestUpdate();
|
|
276
277
|
}
|
|
277
278
|
/**
|
|
278
279
|
* update r,g,b value when typing on RGB inputs
|
|
@@ -290,7 +291,7 @@ let ColorDialog = class ColorDialog extends Dialog {
|
|
|
290
291
|
else if (targetElem === this.blueInputEl) {
|
|
291
292
|
this.valueModel.blue = this.blueInputEl.value;
|
|
292
293
|
}
|
|
293
|
-
|
|
294
|
+
this.requestUpdate();
|
|
294
295
|
}
|
|
295
296
|
/**
|
|
296
297
|
* set opened state to false
|
|
@@ -347,7 +348,7 @@ let ColorDialog = class ColorDialog extends Dialog {
|
|
|
347
348
|
<div
|
|
348
349
|
part="preview-color"
|
|
349
350
|
style=${styleMap({
|
|
350
|
-
backgroundColor: this.valueModel.value
|
|
351
|
+
backgroundColor: this.valueModel.value || undefined
|
|
351
352
|
})}
|
|
352
353
|
?no-color=${!this.valueModel.value}></div>
|
|
353
354
|
<div>${this.t('RED')} :
|