@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { ControlElement, TemplateResult,
|
|
3
|
-
import '../number-field';
|
|
2
|
+
import { ControlElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import '../number-field/index.js';
|
|
4
4
|
declare enum Segment {
|
|
5
5
|
HOURS = "hours",
|
|
6
6
|
MINUTES = "minutes",
|
|
@@ -43,6 +43,7 @@ export declare class TimePicker extends ControlElement {
|
|
|
43
43
|
/**
|
|
44
44
|
* Hours time segment in 24hr format
|
|
45
45
|
* @param hours hours value
|
|
46
|
+
* @default null
|
|
46
47
|
* @returns {void}
|
|
47
48
|
*/
|
|
48
49
|
set hours(hours: number | null);
|
|
@@ -54,6 +55,7 @@ export declare class TimePicker extends ControlElement {
|
|
|
54
55
|
/**
|
|
55
56
|
* Minutes time segment
|
|
56
57
|
* @param minutes minutes value
|
|
58
|
+
* @default null
|
|
57
59
|
* @returns {void}
|
|
58
60
|
*/
|
|
59
61
|
set minutes(minutes: number | null);
|
|
@@ -65,6 +67,7 @@ export declare class TimePicker extends ControlElement {
|
|
|
65
67
|
/**
|
|
66
68
|
* Seconds time segment
|
|
67
69
|
* @param seconds seconds value
|
|
70
|
+
* @default null
|
|
68
71
|
* @returns {void}
|
|
69
72
|
*/
|
|
70
73
|
set seconds(seconds: number | null);
|
|
@@ -331,12 +334,12 @@ export declare class TimePicker extends ControlElement {
|
|
|
331
334
|
*/
|
|
332
335
|
toggle(): void;
|
|
333
336
|
/**
|
|
334
|
-
* A `
|
|
337
|
+
* A `CSSResultGroup` that will be used
|
|
335
338
|
* to style the host, slotted children
|
|
336
339
|
* and the internal template of the element.
|
|
337
340
|
* @returns CSS template
|
|
338
341
|
*/
|
|
339
|
-
static get styles():
|
|
342
|
+
static get styles(): CSSResultGroup;
|
|
340
343
|
/**
|
|
341
344
|
* Template for Seconds Segment
|
|
342
345
|
*
|
package/lib/time-picker/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import '../number-field';
|
|
9
|
-
import { isValidTime, toTimeSegment, TimeFormat, getFormat, format, isAM, isPM, MILLISECONDS_IN_SECOND, MILLISECONDS_IN_MINUTE, MILLISECONDS_IN_HOUR, addOffset, padNumber } from '@refinitiv-ui/utils';
|
|
10
|
-
import { VERSION } from '../';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ControlElement, html, css } 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 { VERSION } from '../version.js';
|
|
7
|
+
import { isValidTime, toTimeSegment, TimeFormat, getFormat, format, isAM, isPM, MILLISECONDS_IN_SECOND, MILLISECONDS_IN_MINUTE, MILLISECONDS_IN_HOUR, addOffset, padNumber } from '@refinitiv-ui/utils/lib/date.js';
|
|
8
|
+
import '../number-field/index.js';
|
|
11
9
|
var Segment;
|
|
12
10
|
(function (Segment) {
|
|
13
11
|
Segment["HOURS"] = "hours";
|
|
@@ -129,6 +127,7 @@ let TimePicker = class TimePicker extends ControlElement {
|
|
|
129
127
|
/**
|
|
130
128
|
* Hours time segment in 24hr format
|
|
131
129
|
* @param hours hours value
|
|
130
|
+
* @default null
|
|
132
131
|
* @returns {void}
|
|
133
132
|
*/
|
|
134
133
|
set hours(hours) {
|
|
@@ -138,7 +137,7 @@ let TimePicker = class TimePicker extends ControlElement {
|
|
|
138
137
|
}
|
|
139
138
|
this._hours = this.validUnit(hours, MIN_UNIT, MAX_HOURS, oldHours);
|
|
140
139
|
if (this._hours !== oldHours) {
|
|
141
|
-
|
|
140
|
+
this.requestUpdate('hours', oldHours);
|
|
142
141
|
}
|
|
143
142
|
}
|
|
144
143
|
/**
|
|
@@ -151,6 +150,7 @@ let TimePicker = class TimePicker extends ControlElement {
|
|
|
151
150
|
/**
|
|
152
151
|
* Minutes time segment
|
|
153
152
|
* @param minutes minutes value
|
|
153
|
+
* @default null
|
|
154
154
|
* @returns {void}
|
|
155
155
|
*/
|
|
156
156
|
set minutes(minutes) {
|
|
@@ -160,7 +160,7 @@ let TimePicker = class TimePicker extends ControlElement {
|
|
|
160
160
|
}
|
|
161
161
|
this._minutes = this.validUnit(minutes, MIN_UNIT, MAX_MINUTES, oldMinutes);
|
|
162
162
|
if (this._minutes !== oldMinutes) {
|
|
163
|
-
|
|
163
|
+
this.requestUpdate('minutes', oldMinutes);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
@@ -173,6 +173,7 @@ let TimePicker = class TimePicker extends ControlElement {
|
|
|
173
173
|
/**
|
|
174
174
|
* Seconds time segment
|
|
175
175
|
* @param seconds seconds value
|
|
176
|
+
* @default null
|
|
176
177
|
* @returns {void}
|
|
177
178
|
*/
|
|
178
179
|
set seconds(seconds) {
|
|
@@ -182,7 +183,7 @@ let TimePicker = class TimePicker extends ControlElement {
|
|
|
182
183
|
}
|
|
183
184
|
this._seconds = this.validUnit(seconds, MIN_UNIT, MAX_SECONDS, oldSeconds);
|
|
184
185
|
if (this._seconds !== oldSeconds) {
|
|
185
|
-
|
|
186
|
+
this.requestUpdate('seconds', oldSeconds);
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
/**
|
|
@@ -632,7 +633,7 @@ let TimePicker = class TimePicker extends ControlElement {
|
|
|
632
633
|
}
|
|
633
634
|
}
|
|
634
635
|
/**
|
|
635
|
-
* A `
|
|
636
|
+
* A `CSSResultGroup` that will be used
|
|
636
637
|
* to style the host, slotted children
|
|
637
638
|
* and the internal template of the element.
|
|
638
639
|
* @returns CSS template
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"name": "readonly",
|
|
28
28
|
"description": "Set readonly state",
|
|
29
29
|
"type": "boolean",
|
|
30
|
-
"default": "
|
|
30
|
+
"default": "false"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "disabled",
|
|
34
34
|
"description": "Set disabled state",
|
|
35
35
|
"type": "boolean",
|
|
36
|
-
"default": "
|
|
36
|
+
"default": "false"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"properties": [
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"attribute": "readonly",
|
|
64
64
|
"description": "Set readonly state",
|
|
65
65
|
"type": "boolean",
|
|
66
|
-
"default": "
|
|
66
|
+
"default": "false"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"name": "disabled",
|
|
70
70
|
"attribute": "disabled",
|
|
71
71
|
"description": "Set disabled state",
|
|
72
72
|
"type": "boolean",
|
|
73
|
-
"default": "
|
|
73
|
+
"default": "false"
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
76
|
"events": [
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# ef-toggle
|
|
2
|
+
|
|
3
|
+
Form control that can toggle between 2 states
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
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 |
|
|
14
|
+
|
|
15
|
+
## Events
|
|
16
|
+
|
|
17
|
+
| Event | Description |
|
|
18
|
+
|-------------------|--------------------------------------------|
|
|
19
|
+
| `checked-changed` | Fired when the `checked` property changes. |
|
package/lib/toggle/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { ControlElement, TemplateResult,
|
|
2
|
+
import { ControlElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
3
|
/**
|
|
4
4
|
* Form control that can toggle between 2 states
|
|
5
5
|
*
|
|
@@ -17,6 +17,7 @@ export declare class Toggle extends ControlElement {
|
|
|
17
17
|
* @returns version number
|
|
18
18
|
*/
|
|
19
19
|
static get version(): string;
|
|
20
|
+
protected readonly defaultRole: string | null;
|
|
20
21
|
/**
|
|
21
22
|
* Label of toggle checked
|
|
22
23
|
*/
|
|
@@ -25,17 +26,26 @@ export declare class Toggle extends ControlElement {
|
|
|
25
26
|
* Label of toggle
|
|
26
27
|
*/
|
|
27
28
|
label: string;
|
|
29
|
+
private _checked;
|
|
28
30
|
/**
|
|
29
31
|
* Value of toggle
|
|
32
|
+
* @param value new checked value
|
|
33
|
+
* @default false
|
|
30
34
|
*/
|
|
31
|
-
checked: boolean;
|
|
35
|
+
set checked(value: boolean);
|
|
36
|
+
get checked(): boolean;
|
|
32
37
|
/**
|
|
33
|
-
*
|
|
38
|
+
* Aria indicating current state of toggle
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
ariaChecked: string;
|
|
42
|
+
/**
|
|
43
|
+
* A `CSSResultGroup` that will be used
|
|
34
44
|
* to style the host, slotted children
|
|
35
45
|
* and the internal template of the element.
|
|
36
46
|
* @returns CSS template
|
|
37
47
|
*/
|
|
38
|
-
static get styles():
|
|
48
|
+
static get styles(): CSSResultGroup;
|
|
39
49
|
/**
|
|
40
50
|
* Invoked when the element is first updated. Implement to perform one time
|
|
41
51
|
* work on the element after update.
|
package/lib/toggle/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import { ControlElement, html, css, customElement, property } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ControlElement, html, css } 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';
|
|
9
6
|
/**
|
|
10
7
|
* Return the attribute that converted from the property
|
|
11
8
|
* Prevent empty string that reflected to attribute
|
|
@@ -30,6 +27,7 @@ const emptyStringToNull = function (value) {
|
|
|
30
27
|
let Toggle = class Toggle extends ControlElement {
|
|
31
28
|
constructor() {
|
|
32
29
|
super(...arguments);
|
|
30
|
+
this.defaultRole = 'switch';
|
|
33
31
|
/**
|
|
34
32
|
* Label of toggle checked
|
|
35
33
|
*/
|
|
@@ -38,10 +36,12 @@ let Toggle = class Toggle extends ControlElement {
|
|
|
38
36
|
* Label of toggle
|
|
39
37
|
*/
|
|
40
38
|
this.label = '';
|
|
39
|
+
this._checked = false;
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
41
|
+
* Aria indicating current state of toggle
|
|
42
|
+
* @ignore
|
|
43
43
|
*/
|
|
44
|
-
this.
|
|
44
|
+
this.ariaChecked = String(this.checked);
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Element version number
|
|
@@ -51,7 +51,23 @@ let Toggle = class Toggle extends ControlElement {
|
|
|
51
51
|
return VERSION;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Value of toggle
|
|
55
|
+
* @param value new checked value
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
set checked(value) {
|
|
59
|
+
const oldValue = this._checked;
|
|
60
|
+
if (oldValue !== value) {
|
|
61
|
+
this._checked = value;
|
|
62
|
+
this.ariaChecked = String(value);
|
|
63
|
+
void this.requestUpdate('checked', oldValue);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
get checked() {
|
|
67
|
+
return this._checked;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A `CSSResultGroup` that will be used
|
|
55
71
|
* to style the host, slotted children
|
|
56
72
|
* and the internal template of the element.
|
|
57
73
|
* @returns CSS template
|
|
@@ -125,7 +141,10 @@ __decorate([
|
|
|
125
141
|
], Toggle.prototype, "label", void 0);
|
|
126
142
|
__decorate([
|
|
127
143
|
property({ type: Boolean, reflect: true })
|
|
128
|
-
], Toggle.prototype, "checked",
|
|
144
|
+
], Toggle.prototype, "checked", null);
|
|
145
|
+
__decorate([
|
|
146
|
+
property({ type: String, reflect: true, attribute: 'aria-checked' })
|
|
147
|
+
], Toggle.prototype, "ariaChecked", void 0);
|
|
129
148
|
Toggle = __decorate([
|
|
130
149
|
customElement('ef-toggle', {
|
|
131
150
|
alias: 'coral-toggle'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# ef-tooltip
|
|
2
|
+
|
|
3
|
+
Tooltip displays extra information when the
|
|
4
|
+
user hovers the pointer over an item.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|-------------------|--------------------|--------------------------------------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `condition` | | `TooltipCondition` | | Provide a function to test against the target.<br />Return `true` if the target matches |
|
|
11
|
+
| `position` | `position` | `"auto" \| "above" \| "right" \| "below" \| "left"` | "auto" | The position of the tooltip. Use the following values:<br />`auto` (default) - display based on mouse enter coordinates<br />`above` - display above the element<br />`right` - display to the right of the element<br />`below` - display beneath the element<br />`left` - display to the left of the element |
|
|
12
|
+
| `renderer` | | `TooltipRenderer` | | A renderer to define tooltip internal content.<br />Return undefined, `String`, `HTMLElement` or `DocumentFragment`.<br />If the content is not present, tooltip will not be displayed |
|
|
13
|
+
| `selector` | `selector` | `string` | "" | CSS selector to match the tooltip |
|
|
14
|
+
| `transitionStyle` | `transition-style` | `TooltipTransitionStyle` | "fade" | Set the transition style.<br />Value can be `fade`, `zoom`, `slide-down`, `slide-up`, `slide-right`,<br />`slide-left`, `slide-right-down`, `slide-right-up`, `slide-left-down`, `slide-left-up`, or null in case of no transition |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { matches } from '@refinitiv-ui/core';
|
|
2
|
-
import { addTooltipCondition } from './tooltip-element';
|
|
3
|
-
import { tooltipRenderer } from '../helpers/renderer';
|
|
2
|
+
import { addTooltipCondition } from './tooltip-element.js';
|
|
3
|
+
import { tooltipRenderer } from '../helpers/renderer.js';
|
|
4
4
|
// Support title attribute
|
|
5
5
|
Object.defineProperty(HTMLElement.prototype, 'title', {
|
|
6
6
|
get: function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Tooltip } from '../index';
|
|
2
|
-
import { TooltipCondition, TooltipRenderer } from '../helpers/types';
|
|
2
|
+
import type { TooltipCondition, TooltipRenderer } from '../helpers/types';
|
|
3
3
|
/**
|
|
4
4
|
* Add the new condition to the default tooltip
|
|
5
5
|
* @param condition Condition to add
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addTooltipCondition } from '../elements/tooltip-element';
|
|
1
|
+
import { addTooltipCondition } from '../elements/tooltip-element.js';
|
|
2
2
|
const registry = new WeakMap();
|
|
3
3
|
const overflowCondition = (target) => registry.has(target) && (target.scrollWidth - target.offsetWidth) > 1;
|
|
4
4
|
const overflowRenderer = (target) => target.textContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OverlayPosition } from '../../overlay';
|
|
1
|
+
import type { OverlayPosition } from '../../overlay';
|
|
2
2
|
export declare type TooltipCondition = (target: HTMLElement, paths: EventTarget[]) => boolean;
|
|
3
3
|
export declare type TooltipRenderer = (target: HTMLElement) => undefined | null | string | HTMLElement | DocumentFragment;
|
|
4
4
|
export declare type TooltipPosition = 'auto' | 'above' | 'right' | 'below' | 'left';
|
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { BasicElement, TemplateResult,
|
|
3
|
-
import '../overlay';
|
|
4
|
-
import { OverlayTransitionStyle as TooltipTransitionStyle } from '../overlay';
|
|
5
|
-
import './elements/title-tooltip';
|
|
6
|
-
import { TooltipCondition, TooltipRenderer, TooltipPosition } from './helpers/types';
|
|
7
|
-
import { register as registerOverflowTooltip } from './helpers/overflow-tooltip';
|
|
2
|
+
import { BasicElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import '../overlay/index.js';
|
|
4
|
+
import type { OverlayTransitionStyle as TooltipTransitionStyle } from '../overlay';
|
|
5
|
+
import './elements/title-tooltip.js';
|
|
6
|
+
import { TooltipCondition, TooltipRenderer, TooltipPosition } from './helpers/types.js';
|
|
7
|
+
import { register as registerOverflowTooltip } from './helpers/overflow-tooltip.js';
|
|
8
8
|
/**
|
|
9
9
|
* Tooltip displays extra information when the
|
|
10
10
|
* user hovers the pointer over an item.
|
|
@@ -23,12 +23,12 @@ declare class Tooltip extends BasicElement {
|
|
|
23
23
|
private timerTimeout?;
|
|
24
24
|
private contentNodes?;
|
|
25
25
|
/**
|
|
26
|
-
* A `
|
|
26
|
+
* A `CSSResultGroup` that will be used
|
|
27
27
|
* to style the host, slotted children
|
|
28
28
|
* and the internal template of the element.
|
|
29
29
|
* @return CSS template
|
|
30
30
|
*/
|
|
31
|
-
static get styles():
|
|
31
|
+
static get styles(): CSSResultGroup;
|
|
32
32
|
/**
|
|
33
33
|
* True if an element is an iframe
|
|
34
34
|
* @param relatedTarget Element to check
|
|
@@ -214,7 +214,7 @@ declare class Tooltip extends BasicElement {
|
|
|
214
214
|
*/
|
|
215
215
|
private get opened();
|
|
216
216
|
}
|
|
217
|
-
export * from './elements/tooltip-element';
|
|
217
|
+
export * from './elements/tooltip-element.js';
|
|
218
218
|
export { registerOverflowTooltip, Tooltip, TooltipCondition, TooltipRenderer, TooltipPosition, TooltipTransitionStyle };
|
|
219
219
|
|
|
220
220
|
declare global {
|
package/lib/tooltip/index.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
1
|
var Tooltip_1;
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
2
|
+
import { __decorate } from "tslib";
|
|
3
|
+
import { BasicElement, html, css, matches } from '@refinitiv-ui/core';
|
|
4
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
5
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
6
|
+
import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
7
|
+
import { VERSION } from '../version.js';
|
|
8
|
+
import { isSlotEmpty } from '@refinitiv-ui/utils/lib/is-slot-empty.js';
|
|
9
|
+
import '../overlay/index.js';
|
|
10
|
+
import './elements/title-tooltip.js';
|
|
11
|
+
import { register, deregister } from './managers/tooltip-manager.js';
|
|
12
|
+
import { tooltipRenderer } from './helpers/renderer.js';
|
|
13
|
+
import { register as registerOverflowTooltip } from './helpers/overflow-tooltip.js';
|
|
16
14
|
const TooltipPositionMap = {
|
|
17
15
|
'auto': ['bottom-start', 'top-start'],
|
|
18
16
|
'above': ['top-middle'],
|
|
@@ -108,7 +106,7 @@ let Tooltip = Tooltip_1 = class Tooltip extends BasicElement {
|
|
|
108
106
|
return VERSION;
|
|
109
107
|
}
|
|
110
108
|
/**
|
|
111
|
-
* A `
|
|
109
|
+
* A `CSSResultGroup` that will be used
|
|
112
110
|
* to style the host, slotted children
|
|
113
111
|
* and the internal template of the element.
|
|
114
112
|
* @return CSS template
|
|
@@ -166,7 +164,7 @@ let Tooltip = Tooltip_1 = class Tooltip extends BasicElement {
|
|
|
166
164
|
const oldX = this._x;
|
|
167
165
|
if (oldX !== x) {
|
|
168
166
|
this._x = x;
|
|
169
|
-
|
|
167
|
+
this.requestUpdate('x', oldX);
|
|
170
168
|
}
|
|
171
169
|
}
|
|
172
170
|
/**
|
|
@@ -177,7 +175,7 @@ let Tooltip = Tooltip_1 = class Tooltip extends BasicElement {
|
|
|
177
175
|
const oldY = this._y;
|
|
178
176
|
if (oldY !== y) {
|
|
179
177
|
this._y = y;
|
|
180
|
-
|
|
178
|
+
this.requestUpdate('y', oldY);
|
|
181
179
|
}
|
|
182
180
|
}
|
|
183
181
|
/**
|
|
@@ -188,7 +186,7 @@ let Tooltip = Tooltip_1 = class Tooltip extends BasicElement {
|
|
|
188
186
|
const oldPositionTarget = this._positionTarget;
|
|
189
187
|
if (positionTarget !== oldPositionTarget) {
|
|
190
188
|
this._positionTarget = positionTarget;
|
|
191
|
-
|
|
189
|
+
this.requestUpdate('positionTarget', oldPositionTarget);
|
|
192
190
|
}
|
|
193
191
|
}
|
|
194
192
|
/**
|
|
@@ -200,7 +198,7 @@ let Tooltip = Tooltip_1 = class Tooltip extends BasicElement {
|
|
|
200
198
|
const oldOpened = this._opened;
|
|
201
199
|
if (oldOpened !== opened) {
|
|
202
200
|
this._opened = opened;
|
|
203
|
-
|
|
201
|
+
this.requestUpdate('opened', oldOpened);
|
|
204
202
|
}
|
|
205
203
|
}
|
|
206
204
|
connectedCallback() {
|
|
@@ -475,5 +473,5 @@ Tooltip = Tooltip_1 = __decorate([
|
|
|
475
473
|
alias: 'coral-tooltip'
|
|
476
474
|
})
|
|
477
475
|
], Tooltip);
|
|
478
|
-
export * from './elements/tooltip-element';
|
|
476
|
+
export * from './elements/tooltip-element.js';
|
|
479
477
|
export { registerOverflowTooltip, Tooltip };
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { TimeoutTaskRunner } from '@refinitiv-ui/utils';
|
|
2
|
-
|
|
3
|
-
* Helper to check if the browser is IE
|
|
4
|
-
* @returns True if the browser is IE
|
|
5
|
-
*/
|
|
6
|
-
const isIE = () => !!navigator.userAgent.match(/Trident/g) || !!navigator.userAgent.match(/MSIE/g);
|
|
1
|
+
import { TimeoutTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
|
|
2
|
+
import { isIE } from '@refinitiv-ui/utils/lib/browser.js';
|
|
7
3
|
/**
|
|
8
4
|
* Tooltip manager is here to avoid setting multiple
|
|
9
5
|
* events on document and do expensive pre-processing
|
|
@@ -96,7 +92,7 @@ class TooltipManager {
|
|
|
96
92
|
register(tooltip, documentCallbacks) {
|
|
97
93
|
if (!this.registry.size) {
|
|
98
94
|
// IE11 does not support event options
|
|
99
|
-
const supportOptions = !isIE
|
|
95
|
+
const supportOptions = !isIE;
|
|
100
96
|
const eventOptions = supportOptions ? { passive: true } : undefined;
|
|
101
97
|
document.addEventListener('mousemove', this.onMouseMove, eventOptions);
|
|
102
98
|
document.addEventListener('mouseout', this.onMouseOut, eventOptions);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ef-tornado-chart
|
|
2
|
+
|
|
3
|
+
A data visualization that helps to
|
|
4
|
+
show the differences or similarities between values
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|-------------|-------------|------------------|---------|---------------------------------|
|
|
10
|
+
| `primary` | `primary` | `string \| null` | null | Primary bar chart legend text |
|
|
11
|
+
| `secondary` | `secondary` | `string \| null` | null | Secondary bar chart legend text |
|
|
12
|
+
|
|
13
|
+
## Slots
|
|
14
|
+
|
|
15
|
+
| Name | Description |
|
|
16
|
+
|----------|--------------------------------------------------|
|
|
17
|
+
| `footer` | Any HTML contents to display at chart footer section |
|
|
18
|
+
| `header` | Any HTML contents to display at chart header section |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSXInterface } from '../../jsx';
|
|
2
|
-
import { ResponsiveElement, TemplateResult,
|
|
3
|
-
import './tornado-item';
|
|
2
|
+
import { ResponsiveElement, TemplateResult, CSSResultGroup, ElementSize } from '@refinitiv-ui/core';
|
|
3
|
+
import './tornado-item.js';
|
|
4
4
|
/**
|
|
5
5
|
* A data visualization that helps to
|
|
6
6
|
* show the differences or similarities between values
|
|
@@ -49,12 +49,12 @@ export declare class TornadoChart extends ResponsiveElement {
|
|
|
49
49
|
*/
|
|
50
50
|
resizedCallback(size: ElementSize): void;
|
|
51
51
|
/**
|
|
52
|
-
* A `
|
|
52
|
+
* A `CSSResultGroup` that will be used
|
|
53
53
|
* to style the host, slotted children
|
|
54
54
|
* and the internal template of the element.
|
|
55
55
|
* @return CSS template
|
|
56
56
|
*/
|
|
57
|
-
static get styles():
|
|
57
|
+
static get styles(): CSSResultGroup;
|
|
58
58
|
/**
|
|
59
59
|
* A `TemplateResult` that will be used
|
|
60
60
|
* to render the updated internal template.
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { ResponsiveElement, html, css, customElement, property } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../../';
|
|
9
|
-
import './tornado-item';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ResponsiveElement, html, css } 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 './tornado-item.js';
|
|
10
7
|
/**
|
|
11
8
|
* A data visualization that helps to
|
|
12
9
|
* show the differences or similarities between values
|
|
@@ -47,7 +44,7 @@ let TornadoChart = class TornadoChart extends ResponsiveElement {
|
|
|
47
44
|
*/
|
|
48
45
|
setLegendAlignment(responsive) {
|
|
49
46
|
this.legendAlignment = responsive;
|
|
50
|
-
|
|
47
|
+
this.requestUpdate();
|
|
51
48
|
}
|
|
52
49
|
/**
|
|
53
50
|
* Set ef-tornado-item's alignment
|
|
@@ -75,7 +72,7 @@ let TornadoChart = class TornadoChart extends ResponsiveElement {
|
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
/**
|
|
78
|
-
* A `
|
|
75
|
+
* A `CSSResultGroup` that will be used
|
|
79
76
|
* to style the host, slotted children
|
|
80
77
|
* and the internal template of the element.
|
|
81
78
|
* @return CSS template
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSXInterface } from '../../jsx';
|
|
2
|
-
import { BasicElement, TemplateResult,
|
|
3
|
-
import '../../progress-bar';
|
|
4
|
-
import '../../layout';
|
|
2
|
+
import { BasicElement, TemplateResult, CSSResultGroup } from '@refinitiv-ui/core';
|
|
3
|
+
import '../../progress-bar/index.js';
|
|
4
|
+
import '../../layout/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* A part of <ef-tornado-chart />,
|
|
7
7
|
* consists mainly of primary, secondary ef-progress-bar and labels.
|
|
@@ -81,12 +81,12 @@ export declare class TornadoItem extends BasicElement {
|
|
|
81
81
|
*/
|
|
82
82
|
private showHorizontalMode;
|
|
83
83
|
/**
|
|
84
|
-
* A `
|
|
84
|
+
* A `CSSResultGroup` that will be used
|
|
85
85
|
* to style the host, slotted children
|
|
86
86
|
* and the internal template of the element.
|
|
87
87
|
* @return CSS template
|
|
88
88
|
*/
|
|
89
|
-
static get styles():
|
|
89
|
+
static get styles(): CSSResultGroup;
|
|
90
90
|
/**
|
|
91
91
|
* A `TemplateResult` that will be used
|
|
92
92
|
* to render the updated internal template.
|