@refinitiv-ui/elements 6.13.2 → 6.14.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 +17 -0
- package/lib/accordion/custom-elements.json +2 -2
- package/lib/accordion/custom-elements.md +2 -2
- package/lib/accordion/index.d.ts +2 -2
- package/lib/accordion/index.js +2 -2
- package/lib/appstate-bar/custom-elements.json +2 -2
- package/lib/appstate-bar/custom-elements.md +4 -4
- package/lib/appstate-bar/index.d.ts +1 -1
- package/lib/appstate-bar/index.js +1 -1
- package/lib/autosuggest/custom-elements.json +14 -9
- package/lib/autosuggest/custom-elements.md +15 -15
- package/lib/autosuggest/index.d.ts +10 -5
- package/lib/autosuggest/index.js +9 -4
- package/lib/button/custom-elements.json +6 -6
- package/lib/button/custom-elements.md +3 -3
- package/lib/button/index.d.ts +3 -4
- package/lib/button/index.js +3 -4
- package/lib/chart/custom-elements.json +1 -9
- package/lib/chart/custom-elements.md +5 -5
- package/lib/chart/index.d.ts +3 -3
- package/lib/chart/index.js +3 -3
- package/lib/checkbox/custom-elements.json +2 -2
- package/lib/checkbox/custom-elements.md +6 -6
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/clock/custom-elements.json +6 -17
- package/lib/clock/custom-elements.md +1 -7
- package/lib/clock/index.d.ts +4 -2
- package/lib/clock/index.js +4 -2
- package/lib/collapse/custom-elements.json +2 -2
- package/lib/collapse/custom-elements.md +2 -2
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +2 -2
- package/lib/color-dialog/custom-elements.json +36 -6
- package/lib/color-dialog/custom-elements.md +24 -22
- package/lib/color-dialog/index.d.ts +3 -2
- package/lib/color-dialog/index.js +3 -2
- package/lib/combo-box/custom-elements.json +10 -21
- package/lib/combo-box/custom-elements.md +3 -4
- package/lib/combo-box/helpers/filter.d.ts +1 -1
- package/lib/combo-box/helpers/types.d.ts +1 -1
- package/lib/combo-box/index.d.ts +6 -8
- package/lib/combo-box/index.js +4 -6
- package/lib/configuration/custom-elements.json +11 -1
- package/lib/configuration/custom-elements.md +3 -3
- package/lib/configuration/elements/configuration.d.ts +3 -0
- package/lib/configuration/elements/configuration.js +3 -0
- package/lib/counter/custom-elements.json +1 -1
- package/lib/counter/custom-elements.md +1 -1
- package/lib/counter/index.d.ts +1 -1
- package/lib/counter/index.js +1 -1
- package/lib/datetime-picker/custom-elements.json +5 -5
- package/lib/datetime-picker/custom-elements.md +3 -3
- package/lib/datetime-picker/index.d.ts +3 -3
- package/lib/datetime-picker/index.js +3 -3
- package/lib/header/custom-elements.json +2 -2
- package/lib/header/custom-elements.md +2 -2
- package/lib/header/index.d.ts +2 -2
- package/lib/header/index.js +2 -2
- package/lib/heatmap/custom-elements.json +1 -1
- package/lib/heatmap/custom-elements.md +3 -3
- package/lib/heatmap/index.d.ts +2 -2
- package/lib/heatmap/index.js +2 -2
- package/lib/interactive-chart/custom-elements.md +3 -3
- package/lib/interactive-chart/helpers/types.d.ts +1 -1
- package/lib/interactive-chart/index.d.ts +1 -1
- package/lib/interactive-chart/index.js +1 -1
- package/lib/item/custom-elements.json +2 -1
- package/lib/item/custom-elements.md +1 -1
- package/lib/item/index.d.ts +1 -0
- package/lib/item/index.js +1 -0
- package/lib/label/custom-elements.json +4 -4
- package/lib/label/custom-elements.md +2 -2
- package/lib/label/index.d.ts +2 -2
- package/lib/label/index.js +2 -2
- package/lib/list/custom-elements.md +8 -8
- package/lib/list/elements/list.d.ts +4 -4
- package/lib/list/elements/list.js +20 -13
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/list/renderer.d.ts +1 -1
- package/lib/multi-input/custom-elements.json +4 -4
- package/lib/multi-input/custom-elements.md +2 -2
- package/lib/multi-input/index.d.ts +2 -2
- package/lib/multi-input/index.js +2 -2
- package/lib/number-field/index.d.ts +27 -0
- package/lib/number-field/index.js +37 -7
- package/lib/overlay/custom-elements.json +10 -6
- package/lib/overlay/custom-elements.md +29 -29
- package/lib/overlay/elements/overlay.d.ts +6 -0
- package/lib/overlay/elements/overlay.js +6 -0
- package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
- package/lib/overlay/managers/viewport-manager.d.ts +1 -1
- package/lib/overlay/managers/viewport-manager.js +1 -0
- package/lib/overlay-menu/custom-elements.json +4 -2
- package/lib/overlay-menu/custom-elements.md +1 -1
- package/lib/overlay-menu/helpers/types.d.ts +1 -1
- package/lib/overlay-menu/index.d.ts +1 -1
- package/lib/overlay-menu/index.js +1 -1
- package/lib/overlay-menu/managers/menu-manager.d.ts +1 -1
- package/lib/pagination/custom-elements.json +12 -8
- package/lib/pagination/custom-elements.md +5 -5
- package/lib/pagination/index.d.ts +4 -2
- package/lib/pagination/index.js +4 -2
- package/lib/password-field/index.d.ts +23 -1
- package/lib/password-field/index.js +45 -3
- package/lib/pill/custom-elements.json +2 -2
- package/lib/pill/custom-elements.md +8 -8
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +1 -1
- package/lib/select/custom-elements.json +5 -5
- package/lib/select/custom-elements.md +10 -10
- package/lib/select/index.d.ts +3 -3
- package/lib/select/index.js +3 -3
- package/lib/sidebar-layout/index.d.ts +1 -1
- package/lib/slider/custom-elements.json +2 -2
- package/lib/slider/custom-elements.md +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/swing-gauge/custom-elements.json +8 -4
- package/lib/swing-gauge/custom-elements.md +2 -2
- package/lib/swing-gauge/index.d.ts +2 -0
- package/lib/swing-gauge/index.js +2 -0
- package/lib/time-picker/custom-elements.json +6 -4
- package/lib/time-picker/custom-elements.md +3 -3
- package/lib/time-picker/index.d.ts +4 -1
- package/lib/time-picker/index.js +4 -1
- package/lib/toggle/custom-elements.json +2 -2
- package/lib/toggle/custom-elements.md +7 -7
- package/lib/toggle/index.d.ts +1 -1
- package/lib/toggle/index.js +1 -1
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tree/elements/tree-item.d.ts +1 -1
- package/lib/tree/elements/tree.d.ts +1 -1
- package/lib/tree/managers/tree-manager.d.ts +1 -1
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/version.js +1 -1
- package/package.json +15 -15
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { html } from '@refinitiv-ui/core';
|
|
2
|
+
import { html, unsafeCSS } from '@refinitiv-ui/core';
|
|
3
3
|
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
4
|
import { state } from '@refinitiv-ui/core/decorators/state.js';
|
|
5
5
|
import '@refinitiv-ui/phrasebook/locale/en/password-field.js';
|
|
6
6
|
import { translate } from '@refinitiv-ui/translate';
|
|
7
|
+
import { VISUALLY_HIDDEN_STYLE } from '@refinitiv-ui/utils/accessibility.js';
|
|
7
8
|
import { preload } from '../icon/index.js';
|
|
8
9
|
import '../icon/index.js';
|
|
9
10
|
import { TextField } from '../text-field/index.js';
|
|
@@ -51,6 +52,18 @@ let PasswordField = class PasswordField extends TextField {
|
|
|
51
52
|
* Defines whether password is visible or not
|
|
52
53
|
*/
|
|
53
54
|
this.isPasswordVisible = false;
|
|
55
|
+
/**
|
|
56
|
+
* live region content presenting password field visibility state
|
|
57
|
+
*/
|
|
58
|
+
this.liveRegionContent = '';
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A `CSSResultGroup` that will be used to style the host,
|
|
62
|
+
* slotted children and the internal template of the element.
|
|
63
|
+
* @returns CSS template
|
|
64
|
+
*/
|
|
65
|
+
static get styles() {
|
|
66
|
+
return [super.styles, unsafeCSS(VISUALLY_HIDDEN_STYLE)];
|
|
54
67
|
}
|
|
55
68
|
/**
|
|
56
69
|
* Called when the element’s DOM has been updated and rendered for the first time
|
|
@@ -87,14 +100,40 @@ let PasswordField = class PasswordField extends TextField {
|
|
|
87
100
|
part="icon"
|
|
88
101
|
role="button"
|
|
89
102
|
tabindex="0"
|
|
90
|
-
aria-
|
|
103
|
+
aria-pressed="${this.isPasswordVisible}"
|
|
104
|
+
aria-label="${this.t('SHOW_PASSWORD')}"
|
|
91
105
|
icon=${this.isPasswordVisible ? 'eye-off' : 'eye'}
|
|
92
106
|
?readonly="${this.readonly}"
|
|
93
107
|
?disabled="${this.disabled}"
|
|
94
|
-
@tap="${this.
|
|
108
|
+
@tap="${this.onTogglePasswordTap}"
|
|
109
|
+
@focus="${this.updateLiveRegionContent}"
|
|
110
|
+
@blur="${this.updateLiveRegionContent}"
|
|
95
111
|
></ef-icon>
|
|
112
|
+
<div part="live-region" aria-live="polite" class="visually-hidden">${this.liveRegionContent}</div>
|
|
96
113
|
`;
|
|
97
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* update live region content describing password visibility state
|
|
117
|
+
* @param event event trigging live region content update
|
|
118
|
+
* @return void
|
|
119
|
+
*/
|
|
120
|
+
updateLiveRegionContent(event) {
|
|
121
|
+
this.liveRegionContent =
|
|
122
|
+
event.type === 'blur'
|
|
123
|
+
? ''
|
|
124
|
+
: this.isPasswordVisible
|
|
125
|
+
? this.t('SHOW_PASSWORD_ON')
|
|
126
|
+
: this.t('SHOW_PASSWORD_OFF');
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Handle tap events of toggle password icon
|
|
130
|
+
* @param event custom event
|
|
131
|
+
* @returns {void}
|
|
132
|
+
*/
|
|
133
|
+
onTogglePasswordTap(event) {
|
|
134
|
+
this.togglePasswordVisibility();
|
|
135
|
+
this.updateLiveRegionContent(event);
|
|
136
|
+
}
|
|
98
137
|
/**
|
|
99
138
|
* Toggles password visibility state
|
|
100
139
|
* @return void
|
|
@@ -109,6 +148,9 @@ __decorate([
|
|
|
109
148
|
__decorate([
|
|
110
149
|
state()
|
|
111
150
|
], PasswordField.prototype, "isPasswordVisible", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
state()
|
|
153
|
+
], PasswordField.prototype, "liveRegionContent", void 0);
|
|
112
154
|
PasswordField = __decorate([
|
|
113
155
|
customElement('ef-password-field')
|
|
114
156
|
], PasswordField);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "active",
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "Set active state",
|
|
23
23
|
"type": "boolean",
|
|
24
24
|
"default": "false"
|
|
25
25
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
{
|
|
61
61
|
"name": "active",
|
|
62
62
|
"attribute": "active",
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Set active state",
|
|
64
64
|
"type": "boolean",
|
|
65
65
|
"default": "false"
|
|
66
66
|
},
|
|
@@ -6,14 +6,14 @@ It is rarely used in the UI but inside other components to visualize multiple it
|
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
9
|
-
| Property | Attribute | Type | Default | Description
|
|
10
|
-
|
|
11
|
-
| `active` | `active` | `boolean` | false |
|
|
12
|
-
| `clears` | `clears` | `boolean` | false | Set pill to clearable
|
|
13
|
-
| `disabled` | `disabled` | `boolean` | false | Set disabled state
|
|
14
|
-
| `readonly` | `readonly` | `boolean` | false | Set readonly state
|
|
15
|
-
| `toggles` | `toggles` | `boolean` | false | Set pill to toggle mode
|
|
16
|
-
| `value` | `value` | `string` | "" | Value of pill
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
|------------|------------|-----------|---------|-------------------------|
|
|
11
|
+
| `active` | `active` | `boolean` | false | Set active state |
|
|
12
|
+
| `clears` | `clears` | `boolean` | false | Set pill to clearable |
|
|
13
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
14
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
15
|
+
| `toggles` | `toggles` | `boolean` | false | Set pill to toggle mode |
|
|
16
|
+
| `value` | `value` | `string` | "" | Value of pill |
|
|
17
17
|
|
|
18
18
|
## Events
|
|
19
19
|
|
package/lib/pill/index.d.ts
CHANGED
package/lib/pill/index.js
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "error",
|
|
22
|
-
"description": "Set state
|
|
22
|
+
"description": "Set error state",
|
|
23
23
|
"type": "boolean",
|
|
24
24
|
"default": "false"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"name": "warning",
|
|
28
|
-
"description": "Set state
|
|
28
|
+
"description": "Set warning state",
|
|
29
29
|
"type": "boolean",
|
|
30
30
|
"default": "false"
|
|
31
31
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
{
|
|
41
41
|
"name": "label (readonly)",
|
|
42
42
|
"description": "Current text content of the selected value",
|
|
43
|
-
"type": "string"
|
|
43
|
+
"type": "string | undefined"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "placeholder",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
{
|
|
60
60
|
"name": "error",
|
|
61
61
|
"attribute": "error",
|
|
62
|
-
"description": "Set state
|
|
62
|
+
"description": "Set error state",
|
|
63
63
|
"type": "boolean",
|
|
64
64
|
"default": "false"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "warning",
|
|
68
68
|
"attribute": "warning",
|
|
69
|
-
"description": "Set state
|
|
69
|
+
"description": "Set warning state",
|
|
70
70
|
"type": "boolean",
|
|
71
71
|
"default": "false"
|
|
72
72
|
},
|
|
@@ -5,16 +5,16 @@ providing a fully themeable dropdown element.
|
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
8
|
-
| Property | Attribute | Type
|
|
9
|
-
|
|
10
|
-
| `data` | | `SelectData \| null`
|
|
11
|
-
| `disabled` | `disabled` | `boolean`
|
|
12
|
-
| `error` | `error` | `boolean`
|
|
13
|
-
| `label (readonly)` | | `string`
|
|
14
|
-
| `opened` | `opened` | `boolean`
|
|
15
|
-
| `placeholder` | `placeholder` | `string`
|
|
16
|
-
| `value` | | `string`
|
|
17
|
-
| `warning` | `warning` | `boolean`
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|--------------------|---------------|-----------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `data` | | `SelectData \| null` | null | Construct the menu from data object. Cannot be used with slotted content |
|
|
11
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
12
|
+
| `error` | `error` | `boolean` | false | Set error state |
|
|
13
|
+
| `label (readonly)` | | `string \| undefined` | | Current text content of the selected value |
|
|
14
|
+
| `opened` | `opened` | `boolean` | false | Toggles the opened state of the list |
|
|
15
|
+
| `placeholder` | `placeholder` | `string` | "" | Placeholder to display when no value is set |
|
|
16
|
+
| `value` | | `string` | "" | Value of the element |
|
|
17
|
+
| `warning` | `warning` | `boolean` | false | Set warning state |
|
|
18
18
|
|
|
19
19
|
## Events
|
|
20
20
|
|
package/lib/select/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare class Select extends ControlElement implements MultiValue {
|
|
|
44
44
|
* Current text content of the selected value
|
|
45
45
|
* @readonly
|
|
46
46
|
*/
|
|
47
|
-
get label(): string;
|
|
47
|
+
get label(): string | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* Current text content of the selected values
|
|
50
50
|
* @ignore
|
|
@@ -60,11 +60,11 @@ export declare class Select extends ControlElement implements MultiValue {
|
|
|
60
60
|
*/
|
|
61
61
|
opened: boolean;
|
|
62
62
|
/**
|
|
63
|
-
* Set state
|
|
63
|
+
* Set error state
|
|
64
64
|
*/
|
|
65
65
|
error: boolean;
|
|
66
66
|
/**
|
|
67
|
-
* Set state
|
|
67
|
+
* Set warning state
|
|
68
68
|
*/
|
|
69
69
|
warning: boolean;
|
|
70
70
|
/**
|
package/lib/select/index.js
CHANGED
|
@@ -63,11 +63,11 @@ let Select = class Select extends ControlElement {
|
|
|
63
63
|
*/
|
|
64
64
|
this.opened = false;
|
|
65
65
|
/**
|
|
66
|
-
* Set state
|
|
66
|
+
* Set error state
|
|
67
67
|
*/
|
|
68
68
|
this.error = false;
|
|
69
69
|
/**
|
|
70
|
-
* Set state
|
|
70
|
+
* Set warning state
|
|
71
71
|
*/
|
|
72
72
|
this.warning = false;
|
|
73
73
|
/**
|
|
@@ -834,7 +834,7 @@ let Select = class Select extends ControlElement {
|
|
|
834
834
|
* @returns Label
|
|
835
835
|
*/
|
|
836
836
|
get labelText() {
|
|
837
|
-
return this.multiple ? this.labels.join(LABEL_SEPARATOR) : this.label;
|
|
837
|
+
return this.multiple ? this.labels.join(LABEL_SEPARATOR) : this.label || '';
|
|
838
838
|
}
|
|
839
839
|
/**
|
|
840
840
|
* Calculating whether the placeholder should be hidden
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
2
|
import { BasicElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
-
import '../layout/index.js';
|
|
4
3
|
import type { Layout } from '../layout';
|
|
4
|
+
import '../layout/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Provides an app layout with sidebar.
|
|
7
7
|
* There are 4 sections that can be slotted a component in.
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "max",
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "Set maximum value of slider.",
|
|
23
23
|
"type": "string",
|
|
24
24
|
"default": "\"100\""
|
|
25
25
|
},
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
{
|
|
96
96
|
"name": "max",
|
|
97
97
|
"attribute": "max",
|
|
98
|
-
"description": "
|
|
98
|
+
"description": "Set maximum value of slider.",
|
|
99
99
|
"type": "string",
|
|
100
100
|
"default": "\"100\""
|
|
101
101
|
},
|
|
@@ -8,7 +8,7 @@ Allows users to make selections from a range of values
|
|
|
8
8
|
|------------------|--------------------|----------------------------|---------|--------------------------------------------------|
|
|
9
9
|
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
10
10
|
| `from` | `from` | `string` | "0" | Uses with `range`. Low value of slider in range mode. |
|
|
11
|
-
| `max` | `max` | `string` | "100" |
|
|
11
|
+
| `max` | `max` | `string` | "100" | Set maximum value of slider. |
|
|
12
12
|
| `min` | `min` | `string` | "0" | Set minimum value of slider. |
|
|
13
13
|
| `minRange` | `min-range` | `string` | "0" | Uses with `range`. Set minimum allowance value (distance) between `from` and `to`. |
|
|
14
14
|
| `range` | `range` | `boolean` | false | Set slider to range mode. Instead of a single value, slider will provide `from` and `to`. |
|
package/lib/slider/index.d.ts
CHANGED
package/lib/slider/index.js
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
{
|
|
9
9
|
"name": "primary-value",
|
|
10
10
|
"description": "Primary value",
|
|
11
|
-
"type": "number"
|
|
11
|
+
"type": "number",
|
|
12
|
+
"default": "\"0\""
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
15
|
"name": "primary-label",
|
|
@@ -19,7 +20,8 @@
|
|
|
19
20
|
{
|
|
20
21
|
"name": "secondary-value",
|
|
21
22
|
"description": "Secondary value",
|
|
22
|
-
"type": "number"
|
|
23
|
+
"type": "number",
|
|
24
|
+
"default": "\"0\""
|
|
23
25
|
},
|
|
24
26
|
{
|
|
25
27
|
"name": "secondary-label",
|
|
@@ -51,7 +53,8 @@
|
|
|
51
53
|
"name": "primaryValue",
|
|
52
54
|
"attribute": "primary-value",
|
|
53
55
|
"description": "Primary value",
|
|
54
|
-
"type": "number"
|
|
56
|
+
"type": "number",
|
|
57
|
+
"default": "\"0\""
|
|
55
58
|
},
|
|
56
59
|
{
|
|
57
60
|
"name": "primaryLabel",
|
|
@@ -64,7 +67,8 @@
|
|
|
64
67
|
"name": "secondaryValue",
|
|
65
68
|
"attribute": "secondary-value",
|
|
66
69
|
"description": "Secondary value",
|
|
67
|
-
"type": "number"
|
|
70
|
+
"type": "number",
|
|
71
|
+
"default": "\"0\""
|
|
68
72
|
},
|
|
69
73
|
{
|
|
70
74
|
"name": "secondaryLabel",
|
|
@@ -10,8 +10,8 @@ Data visualisation showing the percentage between two values
|
|
|
10
10
|
| `duration` | `duration` | `number` | 1000 | Animation duration in milliseconds |
|
|
11
11
|
| `primaryLabel` | `primary-label` | `string` | "" | Primary label |
|
|
12
12
|
| `primaryLegend` | `primary-legend` | `string` | "" | Primary value legend |
|
|
13
|
-
| `primaryValue` | `primary-value` | `number` |
|
|
13
|
+
| `primaryValue` | `primary-value` | `number` | "0" | Primary value |
|
|
14
14
|
| `secondaryLabel` | `secondary-label` | `string` | "" | Secondary label |
|
|
15
15
|
| `secondaryLegend` | `secondary-legend` | `string` | "" | Secondary value legend |
|
|
16
|
-
| `secondaryValue` | `secondary-value` | `number` |
|
|
16
|
+
| `secondaryValue` | `secondary-value` | `number` | "0" | Secondary value |
|
|
17
17
|
| `valueFormatter` | | `SwingGaugeValueFormatter` | "defaultValueFormatter" | Custom value formatter |
|
|
@@ -24,6 +24,7 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
24
24
|
/**
|
|
25
25
|
* Primary value
|
|
26
26
|
* @param value primary value
|
|
27
|
+
* @default 0
|
|
27
28
|
*/
|
|
28
29
|
set primaryValue(value: number);
|
|
29
30
|
get primaryValue(): number;
|
|
@@ -35,6 +36,7 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
35
36
|
/**
|
|
36
37
|
* Secondary value
|
|
37
38
|
* @param value secondary value
|
|
39
|
+
* @default 0
|
|
38
40
|
*/
|
|
39
41
|
set secondaryValue(value: number);
|
|
40
42
|
get secondaryValue(): number;
|
package/lib/swing-gauge/index.js
CHANGED
|
@@ -191,6 +191,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
191
191
|
/**
|
|
192
192
|
* Primary value
|
|
193
193
|
* @param value primary value
|
|
194
|
+
* @default 0
|
|
194
195
|
*/
|
|
195
196
|
set primaryValue(value) {
|
|
196
197
|
value = this.validateNumber(value, 'primary-value');
|
|
@@ -206,6 +207,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
206
207
|
/**
|
|
207
208
|
* Secondary value
|
|
208
209
|
* @param value secondary value
|
|
210
|
+
* @default 0
|
|
209
211
|
*/
|
|
210
212
|
set secondaryValue(value) {
|
|
211
213
|
value = this.validateNumber(value, 'secondary-value');
|
|
@@ -34,8 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "value",
|
|
37
|
-
"description": "
|
|
38
|
-
"type": "string"
|
|
37
|
+
"description": "Current time value",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"default": "\"\""
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
42
|
"name": "readonly",
|
|
@@ -86,8 +87,9 @@
|
|
|
86
87
|
{
|
|
87
88
|
"name": "value",
|
|
88
89
|
"attribute": "value",
|
|
89
|
-
"description": "
|
|
90
|
-
"type": "string"
|
|
90
|
+
"description": "Current time value",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"default": "\"\""
|
|
91
93
|
},
|
|
92
94
|
{
|
|
93
95
|
"name": "readonly",
|
|
@@ -9,11 +9,11 @@ Control the time input
|
|
|
9
9
|
| `amPm` | `am-pm` | `boolean` | false | Toggles 12hr time display |
|
|
10
10
|
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
11
11
|
| `hours` | `hours` | `number \| null` | null | Hours time segment in 24hr format |
|
|
12
|
-
| `minutes` | `minutes` | `number \| null` |
|
|
12
|
+
| `minutes` | `minutes` | `number \| null` | null | Minutes time segment |
|
|
13
13
|
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
14
|
-
| `seconds` | `seconds` | `number \| null` |
|
|
14
|
+
| `seconds` | `seconds` | `number \| null` | null | Seconds time segment |
|
|
15
15
|
| `showSeconds` | `show-seconds` | `boolean` | false | Flag to show seconds time segment in display.<br />Seconds are automatically shown when `hh:mm:ss` time format is provided as a value. |
|
|
16
|
-
| `value` | `value` | `string` |
|
|
16
|
+
| `value` | `value` | `string` | "" | Current time value |
|
|
17
17
|
|
|
18
18
|
## Methods
|
|
19
19
|
|
|
@@ -61,6 +61,7 @@ export declare class TimePicker extends ControlElement {
|
|
|
61
61
|
/**
|
|
62
62
|
* Minutes time segment
|
|
63
63
|
* @param minutes minutes value
|
|
64
|
+
* @default null
|
|
64
65
|
* @returns {void}
|
|
65
66
|
*/
|
|
66
67
|
set minutes(minutes: number | null);
|
|
@@ -72,6 +73,7 @@ export declare class TimePicker extends ControlElement {
|
|
|
72
73
|
/**
|
|
73
74
|
* Seconds time segment
|
|
74
75
|
* @param seconds seconds value
|
|
76
|
+
* @default null
|
|
75
77
|
* @returns {void}
|
|
76
78
|
*/
|
|
77
79
|
set seconds(seconds: number | null);
|
|
@@ -90,8 +92,9 @@ export declare class TimePicker extends ControlElement {
|
|
|
90
92
|
*/
|
|
91
93
|
showSeconds: boolean;
|
|
92
94
|
/**
|
|
93
|
-
*
|
|
95
|
+
* Current time value
|
|
94
96
|
* @param value Element value
|
|
97
|
+
* @default -
|
|
95
98
|
*/
|
|
96
99
|
set value(value: string);
|
|
97
100
|
get value(): string;
|
package/lib/time-picker/index.js
CHANGED
|
@@ -121,6 +121,7 @@ let TimePicker = TimePicker_1 = class TimePicker extends ControlElement {
|
|
|
121
121
|
/**
|
|
122
122
|
* Minutes time segment
|
|
123
123
|
* @param minutes minutes value
|
|
124
|
+
* @default null
|
|
124
125
|
* @returns {void}
|
|
125
126
|
*/
|
|
126
127
|
set minutes(minutes) {
|
|
@@ -143,6 +144,7 @@ let TimePicker = TimePicker_1 = class TimePicker extends ControlElement {
|
|
|
143
144
|
/**
|
|
144
145
|
* Seconds time segment
|
|
145
146
|
* @param seconds seconds value
|
|
147
|
+
* @default null
|
|
146
148
|
* @returns {void}
|
|
147
149
|
*/
|
|
148
150
|
set seconds(seconds) {
|
|
@@ -163,8 +165,9 @@ let TimePicker = TimePicker_1 = class TimePicker extends ControlElement {
|
|
|
163
165
|
return this._seconds;
|
|
164
166
|
}
|
|
165
167
|
/**
|
|
166
|
-
*
|
|
168
|
+
* Current time value
|
|
167
169
|
* @param value Element value
|
|
170
|
+
* @default -
|
|
168
171
|
*/
|
|
169
172
|
set value(value) {
|
|
170
173
|
const oldValue = this.value;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"attributes": [
|
|
8
8
|
{
|
|
9
9
|
"name": "checked-label",
|
|
10
|
-
"description": "Label of
|
|
10
|
+
"description": "Label of the checked state",
|
|
11
11
|
"type": "string",
|
|
12
12
|
"default": "\"\""
|
|
13
13
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
{
|
|
41
41
|
"name": "checkedLabel",
|
|
42
42
|
"attribute": "checked-label",
|
|
43
|
-
"description": "Label of
|
|
43
|
+
"description": "Label of the checked state",
|
|
44
44
|
"type": "string",
|
|
45
45
|
"default": "\"\""
|
|
46
46
|
},
|
|
@@ -4,13 +4,13 @@ Form control that can toggle between 2 states
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
| Property | Attribute | Type | Default | Description
|
|
8
|
-
|
|
9
|
-
| `checked` | `checked` | `boolean` | false | Value of toggle
|
|
10
|
-
| `checkedLabel` | `checked-label` | `string` | "" | Label of
|
|
11
|
-
| `disabled` | `disabled` | `boolean` | false | Set disabled state
|
|
12
|
-
| `label` | `label` | `string` | "" | Label of toggle
|
|
13
|
-
| `readonly` | `readonly` | `boolean` | false | Set readonly state
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|----------------|-----------------|-----------|---------|----------------------------|
|
|
9
|
+
| `checked` | `checked` | `boolean` | false | Value of toggle |
|
|
10
|
+
| `checkedLabel` | `checked-label` | `string` | "" | Label of the checked state |
|
|
11
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
12
|
+
| `label` | `label` | `string` | "" | Label of toggle |
|
|
13
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
14
14
|
|
|
15
15
|
## Events
|
|
16
16
|
|
package/lib/toggle/index.d.ts
CHANGED
package/lib/toggle/index.js
CHANGED
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
2
|
import { BasicElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import type { OverlayTransitionStyle as TooltipTransitionStyle } from '../overlay';
|
|
3
4
|
import '../overlay/index.js';
|
|
4
5
|
import './elements/title-tooltip.js';
|
|
5
6
|
import { deregister as deregisterOverflowTooltip, register as registerOverflowTooltip } from './helpers/overflow-tooltip.js';
|
|
6
7
|
import { TooltipCondition, TooltipPosition, TooltipRenderer } from './helpers/types.js';
|
|
7
|
-
import type { OverlayTransitionStyle as TooltipTransitionStyle } from '../overlay';
|
|
8
8
|
/**
|
|
9
9
|
* Tooltip displays extra information when the
|
|
10
10
|
* user hovers the pointer over an item.
|
|
@@ -2,8 +2,8 @@ import { JSXInterface } from '../../jsx';
|
|
|
2
2
|
import { ControlElement, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
3
|
import '../../checkbox/index.js';
|
|
4
4
|
import '../../icon/index.js';
|
|
5
|
-
import { CheckedState } from '../managers/tree-manager.js';
|
|
6
5
|
import type { TreeDataItem } from '../helpers/types';
|
|
6
|
+
import { CheckedState } from '../managers/tree-manager.js';
|
|
7
7
|
/**
|
|
8
8
|
* Displays a tree list item.
|
|
9
9
|
* Groups display expansion arrows.
|
|
@@ -3,9 +3,9 @@ import { PropertyValues, TapEvent } from '@refinitiv-ui/core';
|
|
|
3
3
|
import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
|
|
4
4
|
import { List } from '../../list/index.js';
|
|
5
5
|
import { TreeRenderer } from '../helpers/renderer.js';
|
|
6
|
+
import type { TreeData, TreeDataItem, TreeFilter } from '../helpers/types';
|
|
6
7
|
import { TreeManagerMode } from '../managers/tree-manager.js';
|
|
7
8
|
import './tree-item.js';
|
|
8
|
-
import type { TreeData, TreeDataItem, TreeFilter } from '../helpers/types';
|
|
9
9
|
/**
|
|
10
10
|
* Displays a tree structure
|
|
11
11
|
* to be used for menus and group selections
|
|
@@ -7,14 +7,14 @@ import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
|
|
|
7
7
|
import '../button/index.js';
|
|
8
8
|
import '../checkbox/index.js';
|
|
9
9
|
import { ComboBox, ComboBoxFilter as TreeSelectFilter } from '../combo-box/index.js';
|
|
10
|
+
import type { CheckChangedEvent } from '../events';
|
|
10
11
|
import '../icon/index.js';
|
|
12
|
+
import type { Overlay } from '../overlay';
|
|
11
13
|
import '../pill/index.js';
|
|
12
14
|
import '../tree/index.js';
|
|
13
15
|
import { TreeRenderer as TreeSelectRenderer } from '../tree/index.js';
|
|
14
|
-
import { TreeManager, TreeManagerMode } from '../tree/managers/tree-manager.js';
|
|
15
|
-
import type { CheckChangedEvent } from '../events';
|
|
16
|
-
import type { Overlay } from '../overlay';
|
|
17
16
|
import type { Tree } from '../tree/index.js';
|
|
17
|
+
import { TreeManager, TreeManagerMode } from '../tree/managers/tree-manager.js';
|
|
18
18
|
import type { TreeSelectData, TreeSelectDataItem } from './helpers/types';
|
|
19
19
|
export { TreeSelectRenderer };
|
|
20
20
|
export type { TreeSelectFilter, TreeSelectDataItem, TreeSelectData };
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.14.1';
|