@refinitiv-ui/elements 7.6.2 → 7.8.0

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.
Files changed (138) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/accordion/custom-elements.json +2 -2
  3. package/lib/accordion/custom-elements.md +2 -2
  4. package/lib/accordion/index.d.ts +2 -2
  5. package/lib/accordion/index.js +2 -2
  6. package/lib/appstate-bar/custom-elements.json +2 -2
  7. package/lib/appstate-bar/custom-elements.md +4 -4
  8. package/lib/appstate-bar/index.d.ts +1 -1
  9. package/lib/appstate-bar/index.js +1 -1
  10. package/lib/autosuggest/custom-elements.json +14 -9
  11. package/lib/autosuggest/custom-elements.md +15 -15
  12. package/lib/autosuggest/index.d.ts +10 -5
  13. package/lib/autosuggest/index.js +9 -4
  14. package/lib/button/custom-elements.json +6 -6
  15. package/lib/button/custom-elements.md +3 -3
  16. package/lib/button/index.d.ts +3 -4
  17. package/lib/button/index.js +3 -4
  18. package/lib/chart/custom-elements.json +1 -9
  19. package/lib/chart/custom-elements.md +8 -8
  20. package/lib/chart/elements/chart.d.ts +4 -4
  21. package/lib/chart/elements/chart.js +4 -4
  22. package/lib/checkbox/custom-elements.json +2 -2
  23. package/lib/checkbox/custom-elements.md +6 -6
  24. package/lib/checkbox/index.d.ts +1 -1
  25. package/lib/checkbox/index.js +1 -1
  26. package/lib/clock/custom-elements.json +6 -17
  27. package/lib/clock/custom-elements.md +1 -7
  28. package/lib/clock/index.d.ts +4 -2
  29. package/lib/clock/index.js +4 -2
  30. package/lib/collapse/custom-elements.json +2 -2
  31. package/lib/collapse/custom-elements.md +2 -2
  32. package/lib/collapse/index.d.ts +2 -2
  33. package/lib/collapse/index.js +2 -2
  34. package/lib/color-dialog/custom-elements.json +36 -6
  35. package/lib/color-dialog/custom-elements.md +24 -22
  36. package/lib/color-dialog/index.d.ts +3 -2
  37. package/lib/color-dialog/index.js +3 -2
  38. package/lib/combo-box/custom-elements.json +10 -21
  39. package/lib/combo-box/custom-elements.md +3 -4
  40. package/lib/combo-box/helpers/filter.d.ts +1 -1
  41. package/lib/combo-box/helpers/types.d.ts +1 -1
  42. package/lib/combo-box/index.d.ts +6 -8
  43. package/lib/combo-box/index.js +4 -6
  44. package/lib/configuration/custom-elements.json +11 -1
  45. package/lib/configuration/custom-elements.md +3 -3
  46. package/lib/configuration/elements/configuration.d.ts +3 -0
  47. package/lib/configuration/elements/configuration.js +3 -0
  48. package/lib/counter/custom-elements.json +1 -1
  49. package/lib/counter/custom-elements.md +1 -1
  50. package/lib/counter/index.d.ts +1 -1
  51. package/lib/counter/index.js +1 -1
  52. package/lib/datetime-picker/custom-elements.json +5 -5
  53. package/lib/datetime-picker/custom-elements.md +3 -3
  54. package/lib/datetime-picker/index.d.ts +3 -3
  55. package/lib/datetime-picker/index.js +3 -3
  56. package/lib/header/custom-elements.json +2 -2
  57. package/lib/header/custom-elements.md +2 -2
  58. package/lib/header/index.d.ts +2 -2
  59. package/lib/header/index.js +2 -2
  60. package/lib/heatmap/custom-elements.json +1 -1
  61. package/lib/heatmap/custom-elements.md +3 -3
  62. package/lib/heatmap/index.d.ts +2 -2
  63. package/lib/heatmap/index.js +2 -2
  64. package/lib/interactive-chart/custom-elements.md +3 -3
  65. package/lib/interactive-chart/helpers/types.d.ts +1 -1
  66. package/lib/interactive-chart/index.d.ts +2 -2
  67. package/lib/interactive-chart/index.js +1 -1
  68. package/lib/item/custom-elements.json +2 -1
  69. package/lib/item/custom-elements.md +1 -1
  70. package/lib/item/index.d.ts +1 -0
  71. package/lib/item/index.js +1 -0
  72. package/lib/label/custom-elements.json +4 -4
  73. package/lib/label/custom-elements.md +2 -2
  74. package/lib/label/index.d.ts +2 -2
  75. package/lib/label/index.js +2 -2
  76. package/lib/list/custom-elements.md +8 -8
  77. package/lib/list/elements/list.d.ts +4 -4
  78. package/lib/list/elements/list.js +20 -13
  79. package/lib/list/helpers/types.d.ts +1 -1
  80. package/lib/list/renderer.d.ts +1 -1
  81. package/lib/multi-input/custom-elements.json +4 -4
  82. package/lib/multi-input/custom-elements.md +2 -2
  83. package/lib/multi-input/index.d.ts +2 -2
  84. package/lib/multi-input/index.js +2 -2
  85. package/lib/number-field/index.d.ts +27 -0
  86. package/lib/number-field/index.js +37 -7
  87. package/lib/overlay/custom-elements.json +10 -6
  88. package/lib/overlay/custom-elements.md +29 -29
  89. package/lib/overlay/elements/overlay.d.ts +6 -0
  90. package/lib/overlay/elements/overlay.js +6 -0
  91. package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
  92. package/lib/overlay/managers/viewport-manager.d.ts +1 -1
  93. package/lib/overlay/managers/viewport-manager.js +1 -0
  94. package/lib/overlay-menu/custom-elements.json +4 -2
  95. package/lib/overlay-menu/custom-elements.md +1 -1
  96. package/lib/overlay-menu/helpers/types.d.ts +1 -1
  97. package/lib/overlay-menu/index.d.ts +1 -1
  98. package/lib/overlay-menu/index.js +1 -1
  99. package/lib/overlay-menu/managers/menu-manager.d.ts +1 -1
  100. package/lib/pagination/custom-elements.json +12 -8
  101. package/lib/pagination/custom-elements.md +5 -5
  102. package/lib/pagination/index.d.ts +4 -2
  103. package/lib/pagination/index.js +4 -2
  104. package/lib/password-field/index.d.ts +23 -1
  105. package/lib/password-field/index.js +45 -3
  106. package/lib/pill/custom-elements.json +2 -2
  107. package/lib/pill/custom-elements.md +8 -8
  108. package/lib/pill/index.d.ts +1 -1
  109. package/lib/pill/index.js +1 -1
  110. package/lib/select/custom-elements.json +5 -5
  111. package/lib/select/custom-elements.md +10 -10
  112. package/lib/select/index.d.ts +3 -3
  113. package/lib/select/index.js +3 -3
  114. package/lib/sidebar-layout/index.d.ts +1 -1
  115. package/lib/slider/custom-elements.json +2 -2
  116. package/lib/slider/custom-elements.md +1 -1
  117. package/lib/slider/index.d.ts +1 -1
  118. package/lib/slider/index.js +1 -1
  119. package/lib/swing-gauge/custom-elements.json +8 -4
  120. package/lib/swing-gauge/custom-elements.md +2 -2
  121. package/lib/swing-gauge/index.d.ts +2 -0
  122. package/lib/swing-gauge/index.js +2 -0
  123. package/lib/time-picker/custom-elements.json +6 -4
  124. package/lib/time-picker/custom-elements.md +3 -3
  125. package/lib/time-picker/index.d.ts +4 -1
  126. package/lib/time-picker/index.js +4 -1
  127. package/lib/toggle/custom-elements.json +2 -2
  128. package/lib/toggle/custom-elements.md +7 -7
  129. package/lib/toggle/index.d.ts +1 -1
  130. package/lib/toggle/index.js +1 -1
  131. package/lib/tooltip/index.d.ts +1 -1
  132. package/lib/tree/elements/tree-item.d.ts +1 -1
  133. package/lib/tree/elements/tree.d.ts +1 -1
  134. package/lib/tree/managers/tree-manager.d.ts +1 -1
  135. package/lib/tree-select/index.d.ts +3 -3
  136. package/lib/version.js +1 -1
  137. package/package.json +28 -27
  138. package/cli.mjs +0 -23
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { PropertyValues, TemplateResult } from '@refinitiv-ui/core';
2
+ import { CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
3
  import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
4
4
  import '@refinitiv-ui/phrasebook/locale/en/password-field.js';
5
5
  import { Translate } from '@refinitiv-ui/translate';
@@ -49,6 +49,16 @@ export declare class PasswordField extends TextField {
49
49
  * Defines whether password is visible or not
50
50
  */
51
51
  private isPasswordVisible;
52
+ /**
53
+ * live region content presenting password field visibility state
54
+ */
55
+ private liveRegionContent;
56
+ /**
57
+ * A `CSSResultGroup` that will be used to style the host,
58
+ * slotted children and the internal template of the element.
59
+ * @returns CSS template
60
+ */
61
+ static get styles(): CSSResultGroup;
52
62
  /**
53
63
  * Called when the element’s DOM has been updated and rendered for the first time
54
64
  * @param changedProperties Properties that has changed
@@ -76,6 +86,18 @@ export declare class PasswordField extends TextField {
76
86
  * @returns {void}
77
87
  */
78
88
  protected renderIcon(): TemplateResult | null;
89
+ /**
90
+ * update live region content describing password visibility state
91
+ * @param event event trigging live region content update
92
+ * @return void
93
+ */
94
+ protected updateLiveRegionContent(event: Event): void;
95
+ /**
96
+ * Handle tap events of toggle password icon
97
+ * @param event custom event
98
+ * @returns {void}
99
+ */
100
+ protected onTogglePasswordTap(event: CustomEvent): void;
79
101
  /**
80
102
  * Toggles password visibility state
81
103
  * @return void
@@ -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 '../icon/index.js';
8
9
  import { TextField } from '../text-field/index.js';
9
10
  import { deregisterOverflowTooltip } from '../tooltip/index.js';
@@ -49,6 +50,18 @@ let PasswordField = class PasswordField extends TextField {
49
50
  * Defines whether password is visible or not
50
51
  */
51
52
  this.isPasswordVisible = false;
53
+ /**
54
+ * live region content presenting password field visibility state
55
+ */
56
+ this.liveRegionContent = '';
57
+ }
58
+ /**
59
+ * A `CSSResultGroup` that will be used to style the host,
60
+ * slotted children and the internal template of the element.
61
+ * @returns CSS template
62
+ */
63
+ static get styles() {
64
+ return [super.styles, unsafeCSS(VISUALLY_HIDDEN_STYLE)];
52
65
  }
53
66
  /**
54
67
  * Called when the element’s DOM has been updated and rendered for the first time
@@ -95,14 +108,40 @@ let PasswordField = class PasswordField extends TextField {
95
108
  part="icon"
96
109
  role="button"
97
110
  tabindex="0"
98
- aria-label="${this.isPasswordVisible ? this.t('HIDE_PASSWORD') : this.t('SHOW_PASSWORD')}"
111
+ aria-pressed="${this.isPasswordVisible}"
112
+ aria-label="${this.t('SHOW_PASSWORD')}"
99
113
  icon=${this.isPasswordVisible ? 'eye-off' : 'eye'}
100
114
  ?readonly="${this.readonly}"
101
115
  ?disabled="${this.disabled}"
102
- @tap="${this.togglePasswordVisibility}"
116
+ @tap="${this.onTogglePasswordTap}"
117
+ @focus="${this.updateLiveRegionContent}"
118
+ @blur="${this.updateLiveRegionContent}"
103
119
  ></ef-icon>
120
+ <div part="live-region" aria-live="polite" class="visually-hidden">${this.liveRegionContent}</div>
104
121
  `;
105
122
  }
123
+ /**
124
+ * update live region content describing password visibility state
125
+ * @param event event trigging live region content update
126
+ * @return void
127
+ */
128
+ updateLiveRegionContent(event) {
129
+ this.liveRegionContent =
130
+ event.type === 'blur'
131
+ ? ''
132
+ : this.isPasswordVisible
133
+ ? this.t('SHOW_PASSWORD_ON')
134
+ : this.t('SHOW_PASSWORD_OFF');
135
+ }
136
+ /**
137
+ * Handle tap events of toggle password icon
138
+ * @param event custom event
139
+ * @returns {void}
140
+ */
141
+ onTogglePasswordTap(event) {
142
+ this.togglePasswordVisibility();
143
+ this.updateLiveRegionContent(event);
144
+ }
106
145
  /**
107
146
  * Toggles password visibility state
108
147
  * @return void
@@ -117,6 +156,9 @@ __decorate([
117
156
  __decorate([
118
157
  state()
119
158
  ], PasswordField.prototype, "isPasswordVisible", void 0);
159
+ __decorate([
160
+ state()
161
+ ], PasswordField.prototype, "liveRegionContent", void 0);
120
162
  PasswordField = __decorate([
121
163
  customElement('ef-password-field')
122
164
  ], PasswordField);
@@ -19,7 +19,7 @@
19
19
  },
20
20
  {
21
21
  "name": "active",
22
- "description": "Add to pill for active state",
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": "Add to pill for active state",
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 | Add to pill for 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 |
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
 
@@ -42,7 +42,7 @@ export declare class Pill extends ControlElement {
42
42
  */
43
43
  toggles: boolean;
44
44
  /**
45
- * Add to pill for active state
45
+ * Set active state
46
46
  */
47
47
  active: boolean;
48
48
  /**
package/lib/pill/index.js CHANGED
@@ -38,7 +38,7 @@ let Pill = class Pill extends ControlElement {
38
38
  */
39
39
  this.toggles = false;
40
40
  /**
41
- * Add to pill for active state
41
+ * Set active state
42
42
  */
43
43
  this.active = false;
44
44
  /**
@@ -19,13 +19,13 @@
19
19
  },
20
20
  {
21
21
  "name": "error",
22
- "description": "Set state to error",
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 to warning",
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 to error",
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 to warning",
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 | 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 state to error |
13
- | `label (readonly)` | | `string` | | 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 state to warning |
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
 
@@ -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 to error
63
+ * Set error state
64
64
  */
65
65
  error: boolean;
66
66
  /**
67
- * Set state to warning
67
+ * Set warning state
68
68
  */
69
69
  warning: boolean;
70
70
  /**
@@ -69,11 +69,11 @@ let Select = class Select extends ControlElement {
69
69
  */
70
70
  this.opened = false;
71
71
  /**
72
- * Set state to error
72
+ * Set error state
73
73
  */
74
74
  this.error = false;
75
75
  /**
76
- * Set state to warning
76
+ * Set warning state
77
77
  */
78
78
  this.warning = false;
79
79
  /**
@@ -828,7 +828,7 @@ let Select = class Select extends ControlElement {
828
828
  * @returns Label
829
829
  */
830
830
  get labelText() {
831
- return this.multiple ? this.labels.join(LABEL_SEPARATOR) : this.label;
831
+ return this.multiple ? this.labels.join(LABEL_SEPARATOR) : this.label || '';
832
832
  }
833
833
  /**
834
834
  * 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": "Slider maximum value of slider.",
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": "Slider maximum value of slider.",
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" | Slider maximum value of slider. |
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`. |
@@ -52,7 +52,7 @@ export declare class Slider extends ControlElement {
52
52
  */
53
53
  min: string;
54
54
  /**
55
- * Slider maximum value of slider.
55
+ * Set maximum value of slider.
56
56
  */
57
57
  max: string;
58
58
  /**
@@ -242,7 +242,7 @@ let Slider = class Slider extends ControlElement {
242
242
  */
243
243
  this.min = '0';
244
244
  /**
245
- * Slider maximum value of slider.
245
+ * Set maximum value of slider.
246
246
  */
247
247
  this.max = '100';
248
248
  /**
@@ -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` | | Primary value |
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` | | Secondary value |
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;
@@ -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": "Value of the element",
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": "Value of the element",
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` | | Minutes time segment |
12
+ | `minutes` | `minutes` | `number \| null` | null | Minutes time segment |
13
13
  | `readonly` | `readonly` | `boolean` | false | Set readonly state |
14
- | `seconds` | `seconds` | `number \| null` | | Seconds time segment |
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` | | Value of the element |
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
- * Value of the element
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;
@@ -120,6 +120,7 @@ let TimePicker = TimePicker_1 = class TimePicker extends ControlElement {
120
120
  /**
121
121
  * Minutes time segment
122
122
  * @param minutes minutes value
123
+ * @default null
123
124
  * @returns {void}
124
125
  */
125
126
  set minutes(minutes) {
@@ -142,6 +143,7 @@ let TimePicker = TimePicker_1 = class TimePicker extends ControlElement {
142
143
  /**
143
144
  * Seconds time segment
144
145
  * @param seconds seconds value
146
+ * @default null
145
147
  * @returns {void}
146
148
  */
147
149
  set seconds(seconds) {
@@ -162,8 +164,9 @@ let TimePicker = TimePicker_1 = class TimePicker extends ControlElement {
162
164
  return this._seconds;
163
165
  }
164
166
  /**
165
- * Value of the element
167
+ * Current time value
166
168
  * @param value Element value
169
+ * @default -
167
170
  */
168
171
  set value(value) {
169
172
  const oldValue = this.value;
@@ -7,7 +7,7 @@
7
7
  "attributes": [
8
8
  {
9
9
  "name": "checked-label",
10
- "description": "Label of toggle checked",
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 toggle checked",
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 toggle checked |
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
 
@@ -19,7 +19,7 @@ export declare class Toggle extends ControlElement {
19
19
  static get version(): string;
20
20
  protected readonly defaultRole: string | null;
21
21
  /**
22
- * Label of toggle checked
22
+ * Label of the checked state
23
23
  */
24
24
  checkedLabel: string;
25
25
  /**
@@ -29,7 +29,7 @@ let Toggle = class Toggle extends ControlElement {
29
29
  super(...arguments);
30
30
  this.defaultRole = 'switch';
31
31
  /**
32
- * Label of toggle checked
32
+ * Label of the checked state
33
33
  */
34
34
  this.checkedLabel = '';
35
35
  /**
@@ -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