@refinitiv-ui/elements 5.10.0 → 5.10.2-build.1841524222.1.59
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 +25 -0
- package/README.md +4 -4
- package/lib/accordion/index.js +2 -2
- package/lib/appstate-bar/index.js +2 -2
- package/lib/autosuggest/index.js +6 -6
- package/lib/button/index.d.ts +10 -4
- package/lib/button/index.js +26 -8
- package/lib/button-bar/index.d.ts +49 -0
- package/lib/button-bar/index.js +151 -11
- package/lib/calendar/constants.js +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.js +11 -11
- package/lib/calendar/types.d.ts +1 -1
- package/lib/calendar/utils.js +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/card/index.js +5 -5
- package/lib/chart/index.js +4 -4
- package/lib/checkbox/index.js +3 -4
- package/lib/checkbox/themes/halo/dark/index.js +1 -1
- package/lib/checkbox/themes/halo/light/index.js +1 -1
- package/lib/clock/index.js +6 -6
- package/lib/clock/utils/TickManager.js +2 -2
- package/lib/collapse/index.js +3 -3
- package/lib/color-dialog/elements/color-palettes.js +1 -1
- package/lib/color-dialog/elements/grayscale-palettes.js +2 -2
- package/lib/color-dialog/elements/palettes.js +3 -3
- package/lib/color-dialog/helpers/value-model.js +1 -1
- package/lib/color-dialog/index.d.ts +1 -1
- package/lib/color-dialog/index.js +6 -6
- 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 +4 -4
- package/lib/combo-box/index.js +9 -9
- package/lib/counter/index.js +2 -2
- package/lib/datetime-picker/index.js +5 -5
- package/lib/datetime-picker/utils.js +1 -1
- package/lib/dialog/custom-elements.json +11 -0
- package/lib/dialog/custom-elements.md +4 -3
- package/lib/dialog/index.d.ts +18 -1
- package/lib/dialog/index.js +35 -10
- package/lib/email-field/index.d.ts +1 -1
- package/lib/email-field/index.js +2 -2
- package/lib/flag/index.js +3 -3
- package/lib/flag/utils/FlagLoader.d.ts +1 -1
- package/lib/flag/utils/FlagLoader.js +1 -1
- package/lib/header/index.js +2 -2
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +1 -1
- package/lib/heatmap/index.js +5 -5
- package/lib/icon/index.js +3 -3
- package/lib/icon/utils/IconLoader.d.ts +1 -1
- package/lib/icon/utils/IconLoader.js +1 -1
- package/lib/interactive-chart/helpers/types.d.ts +1 -1
- package/lib/interactive-chart/index.js +4 -4
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.js +3 -3
- package/lib/label/index.js +4 -4
- package/lib/layout/index.js +2 -2
- package/lib/led-gauge/index.js +2 -2
- package/lib/list/custom-elements.json +13 -0
- package/lib/list/custom-elements.md +10 -9
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/list/index.d.ts +5 -1
- package/lib/list/index.js +10 -3
- package/lib/list/renderer.d.ts +1 -1
- package/lib/loader/index.js +1 -1
- package/lib/multi-input/helpers/types.d.ts +1 -1
- package/lib/multi-input/index.js +6 -6
- package/lib/notification/elements/notification-tray.js +3 -3
- package/lib/notification/elements/notification.js +2 -2
- package/lib/number-field/index.d.ts +1 -1
- package/lib/number-field/index.js +4 -3
- package/lib/overlay/elements/overlay-backdrop.js +2 -2
- package/lib/overlay/elements/overlay-viewport.js +1 -1
- package/lib/overlay/elements/overlay.js +4 -4
- package/lib/overlay/managers/focus-manager.js +1 -1
- package/lib/overlay/managers/interaction-lock-manager.js +1 -1
- package/lib/overlay/managers/viewport-manager.js +1 -1
- package/lib/overlay/managers/zindex-manager.js +1 -1
- package/lib/overlay-menu/helpers/types.d.ts +1 -1
- package/lib/overlay-menu/index.js +6 -6
- package/lib/overlay-menu/managers/menu-manager.js +1 -1
- package/lib/pagination/index.d.ts +2 -2
- package/lib/pagination/index.js +9 -11
- package/lib/panel/index.js +2 -2
- package/lib/password-field/index.d.ts +2 -2
- package/lib/password-field/index.js +3 -3
- package/lib/pill/index.js +3 -3
- package/lib/progress-bar/index.js +3 -3
- package/lib/radio-button/index.d.ts +2 -2
- package/lib/radio-button/index.js +10 -7
- package/lib/radio-button/themes/halo/dark/index.js +1 -1
- package/lib/radio-button/themes/halo/light/index.js +1 -1
- package/lib/rating/index.js +4 -4
- package/lib/search-field/index.d.ts +2 -2
- package/lib/search-field/index.js +3 -3
- package/lib/select/index.js +6 -6
- package/lib/sidebar-layout/index.js +4 -4
- package/lib/slider/index.js +14 -4
- package/lib/sparkline/index.js +4 -4
- package/lib/swing-gauge/index.js +5 -5
- package/lib/tab/custom-elements.json +13 -0
- package/lib/tab/custom-elements.md +1 -0
- package/lib/tab/index.d.ts +13 -15
- package/lib/tab/index.js +28 -35
- package/lib/tab-bar/custom-elements.json +12 -0
- package/lib/tab-bar/custom-elements.md +7 -0
- package/lib/tab-bar/index.d.ts +56 -7
- package/lib/tab-bar/index.js +139 -40
- package/lib/text-field/index.d.ts +1 -1
- package/lib/text-field/index.js +4 -4
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +9 -9
- package/lib/toggle/index.js +2 -2
- package/lib/tooltip/index.js +4 -4
- package/lib/tooltip/managers/tooltip-manager.js +2 -2
- package/lib/tornado-chart/elements/tornado-chart.js +2 -2
- package/lib/tornado-chart/elements/tornado-item.js +3 -3
- package/lib/tree/elements/tree-item.d.ts +33 -0
- package/lib/tree/elements/tree-item.js +83 -24
- package/lib/tree/elements/tree.d.ts +2 -1
- package/lib/tree/elements/tree.js +3 -2
- package/lib/tree/helpers/types.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/tree-select/index.js +9 -9
- package/lib/tree-select/themes/halo/dark/index.js +1 -1
- package/lib/tree-select/themes/halo/light/index.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +24 -295
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TimeoutTaskRunner } from '@refinitiv-ui/utils/
|
|
2
|
-
import { MILLISECONDS_IN_SECOND } from '@refinitiv-ui/utils/
|
|
1
|
+
import { TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
|
|
2
|
+
import { MILLISECONDS_IN_SECOND } from '@refinitiv-ui/utils/date.js';
|
|
3
3
|
const tickSet = new Set();
|
|
4
4
|
let timeout = null;
|
|
5
5
|
/**
|
package/lib/collapse/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Collapse_1;
|
|
2
2
|
import { __decorate } from "tslib";
|
|
3
3
|
import { BasicElement, css, html } from '@refinitiv-ui/core';
|
|
4
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
5
|
-
import { property } from '@refinitiv-ui/core/
|
|
6
|
-
import { query } from '@refinitiv-ui/core/
|
|
4
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
5
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
6
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
7
7
|
import { VERSION } from '../version.js';
|
|
8
8
|
import '../header/index.js';
|
|
9
9
|
import '../panel/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, css, svg } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
4
|
import { VERSION } from '../../version.js';
|
|
5
5
|
import { Palettes } from './palettes.js';
|
|
6
6
|
import { COLOR_ITEMS } from '../helpers/color-helpers.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, css, svg } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
5
|
import { VERSION } from '../../version.js';
|
|
6
6
|
import { Palettes } from './palettes.js';
|
|
7
7
|
import { GRAYSCALE_ITEMS, NOCOLOR_POINTS } from '../helpers/color-helpers.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { BasicElement, svg } from '@refinitiv-ui/core';
|
|
3
|
-
import { property } from '@refinitiv-ui/core/
|
|
4
|
-
import { query } from '@refinitiv-ui/core/
|
|
3
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
4
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
5
5
|
import { VERSION } from '../../version.js';
|
|
6
|
-
import { rgb } from '@refinitiv-ui/utils/
|
|
6
|
+
import { rgb } from '@refinitiv-ui/utils/color.js';
|
|
7
7
|
import { isHex } from '../helpers/color-helpers.js';
|
|
8
8
|
/**
|
|
9
9
|
* Element base class usually used
|
|
@@ -7,7 +7,7 @@ import { Dialog } from '../dialog/index.js';
|
|
|
7
7
|
import './elements/color-palettes.js';
|
|
8
8
|
import './elements/grayscale-palettes.js';
|
|
9
9
|
import { Translate } from '@refinitiv-ui/translate';
|
|
10
|
-
import '@refinitiv-ui/phrasebook/
|
|
10
|
+
import '@refinitiv-ui/phrasebook/locale/en/color-dialog.js';
|
|
11
11
|
/**
|
|
12
12
|
* Displays a colour picker dialog,
|
|
13
13
|
* for selecting a predefined range of colours.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, css, WarningNotice } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { query } from '@refinitiv-ui/core/
|
|
6
|
-
import { styleMap } from '@refinitiv-ui/core/
|
|
7
|
-
import { rgb } from '@refinitiv-ui/utils/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
|
+
import { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
|
|
7
|
+
import { rgb } from '@refinitiv-ui/utils/color.js';
|
|
8
8
|
import { VERSION } from '../version.js';
|
|
9
9
|
import { ValueModel } from './helpers/value-model.js';
|
|
10
10
|
import { isHex, removeHashSign } from './helpers/color-helpers.js';
|
|
@@ -15,7 +15,7 @@ import { Dialog } from '../dialog/index.js';
|
|
|
15
15
|
import './elements/color-palettes.js';
|
|
16
16
|
import './elements/grayscale-palettes.js';
|
|
17
17
|
import { translate } from '@refinitiv-ui/translate';
|
|
18
|
-
import '@refinitiv-ui/phrasebook/
|
|
18
|
+
import '@refinitiv-ui/phrasebook/locale/en/color-dialog.js';
|
|
19
19
|
/**
|
|
20
20
|
* Displays a colour picker dialog,
|
|
21
21
|
* for selecting a predefined range of colours.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataItem } from '@refinitiv-ui/utils/
|
|
1
|
+
import type { DataItem } from '@refinitiv-ui/utils/collection.js';
|
|
2
2
|
import type { ComboBox } from '../index';
|
|
3
3
|
import type { ComboBoxFilter } from './types';
|
|
4
4
|
import type { ItemData } from '../../item';
|
package/lib/combo-box/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
2
|
import { FormFieldElement, CSSResultGroup, PropertyValues, TapEvent, TemplateResult, StyleMap } from '@refinitiv-ui/core';
|
|
3
|
-
import { TemplateMap } from '@refinitiv-ui/core/
|
|
4
|
-
import { CollectionComposer, DataItem } from '@refinitiv-ui/utils/
|
|
5
|
-
import { AnimationTaskRunner } from '@refinitiv-ui/utils/
|
|
3
|
+
import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
|
|
4
|
+
import { CollectionComposer, DataItem } from '@refinitiv-ui/utils/collection.js';
|
|
5
|
+
import { AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
|
|
6
6
|
import { ItemData } from '../item';
|
|
7
7
|
import { ComboBoxData, ComboBoxFilter } from './helpers/types';
|
|
8
8
|
import type { List } from '../list/index.js';
|
|
@@ -13,7 +13,7 @@ import '../overlay/index.js';
|
|
|
13
13
|
import '../list/index.js';
|
|
14
14
|
import '../counter/index.js';
|
|
15
15
|
import { TranslateDirective } from '@refinitiv-ui/translate';
|
|
16
|
-
import '@refinitiv-ui/phrasebook/
|
|
16
|
+
import '@refinitiv-ui/phrasebook/locale/en/combo-box.js';
|
|
17
17
|
export type { ComboBoxFilter, ComboBoxData };
|
|
18
18
|
export { ComboBoxRenderer };
|
|
19
19
|
/**
|
package/lib/combo-box/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { FormFieldElement, css, html, WarningNotice, FocusedPropertyKey } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { query } from '@refinitiv-ui/core/
|
|
6
|
-
import { eventOptions } from '@refinitiv-ui/core/
|
|
7
|
-
import { styleMap } from '@refinitiv-ui/core/
|
|
8
|
-
import { ifDefined } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
|
+
import { eventOptions } from '@refinitiv-ui/core/decorators/event-options.js';
|
|
7
|
+
import { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
|
|
8
|
+
import { ifDefined } from '@refinitiv-ui/core/directives/if-defined.js';
|
|
9
9
|
import { VERSION } from '../version.js';
|
|
10
|
-
import { CollectionComposer } from '@refinitiv-ui/utils/
|
|
11
|
-
import { AnimationTaskRunner, TimeoutTaskRunner } from '@refinitiv-ui/utils/
|
|
10
|
+
import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
|
|
11
|
+
import { AnimationTaskRunner, TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
|
|
12
12
|
import { ComboBoxRenderer } from './helpers/renderer.js';
|
|
13
13
|
import { defaultFilter } from './helpers/filter.js';
|
|
14
14
|
import { CustomKeyboardEvent } from './helpers/keyboard-event.js';
|
|
@@ -17,7 +17,7 @@ import '../overlay/index.js';
|
|
|
17
17
|
import '../list/index.js';
|
|
18
18
|
import '../counter/index.js';
|
|
19
19
|
import { translate } from '@refinitiv-ui/translate';
|
|
20
|
-
import '@refinitiv-ui/phrasebook/
|
|
20
|
+
import '@refinitiv-ui/phrasebook/locale/en/combo-box.js';
|
|
21
21
|
export { ComboBoxRenderer };
|
|
22
22
|
const QUERY_DEBOUNCE_RATE = 0;
|
|
23
23
|
// Maximum number of characters to display in multiple mode
|
package/lib/counter/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { BasicElement, html, css, WarningNotice } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
5
|
import { VERSION } from '../version.js';
|
|
6
6
|
import { truncateDecimal, convertToCompactNotation } from './utils.js';
|
|
7
7
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ControlElement, html, css, WarningNotice } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { query } from '@refinitiv-ui/core/
|
|
6
|
-
import { ifDefined } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
|
+
import { ifDefined } from '@refinitiv-ui/core/directives/if-defined.js';
|
|
7
7
|
import { VERSION } from '../version.js';
|
|
8
8
|
import '../calendar/index.js';
|
|
9
9
|
import '../icon/index.js';
|
|
@@ -15,7 +15,7 @@ import { getDateFNSLocale } from './locales.js';
|
|
|
15
15
|
import inputFormat from 'date-fns/esm/format/index.js';
|
|
16
16
|
import inputParse from 'date-fns/esm/parse/index.js';
|
|
17
17
|
import isValid from 'date-fns/esm/isValid/index.js';
|
|
18
|
-
import { addMonths, subMonths, isAfter, isBefore, isValidDate, isValidDateTime, DateFormat, DateTimeFormat, parse, format } from '@refinitiv-ui/utils/
|
|
18
|
+
import { addMonths, subMonths, isAfter, isBefore, isValidDate, isValidDateTime, DateFormat, DateTimeFormat, parse, format } from '@refinitiv-ui/utils/date.js';
|
|
19
19
|
import { DateTimeSegment, formatToView, getCurrentTime } from './utils.js';
|
|
20
20
|
import { preload } from '../icon/index.js';
|
|
21
21
|
preload('calendar', 'down', 'left', 'right'); /* preload calendar icons for faster loading */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { format, DateFormat, parse, TimeFormat, toTimeSegment } from '@refinitiv-ui/utils/
|
|
1
|
+
import { format, DateFormat, parse, TimeFormat, toTimeSegment } from '@refinitiv-ui/utils/date.js';
|
|
2
2
|
/**
|
|
3
3
|
* A helper class to split date time string into date and time segments
|
|
4
4
|
*/
|
|
@@ -151,6 +151,17 @@
|
|
|
151
151
|
"name": "refit",
|
|
152
152
|
"description": "Clear all cached values and fit the popup.\nUse this function only if maxWidth, maxHeight, minWidth, minHeight, height, width are changed",
|
|
153
153
|
"params": []
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "willUpdate",
|
|
157
|
+
"description": "Compute property values that depend on other properties\nand are used in the rest of the update process.",
|
|
158
|
+
"params": [
|
|
159
|
+
{
|
|
160
|
+
"name": "changedProperties",
|
|
161
|
+
"description": "Properties that has changed",
|
|
162
|
+
"type": "PropertyValues"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
154
165
|
}
|
|
155
166
|
]
|
|
156
167
|
}
|
|
@@ -28,9 +28,10 @@ and also allows custom footers and control buttons to be used.
|
|
|
28
28
|
|
|
29
29
|
## Methods
|
|
30
30
|
|
|
31
|
-
| Method
|
|
32
|
-
|
|
33
|
-
| `refit`
|
|
31
|
+
| Method | Type | Description |
|
|
32
|
+
|--------------|----------------------------------|--------------------------------------------------|
|
|
33
|
+
| `refit` | `(): void` | Clear all cached values and fit the popup.<br />Use this function only if maxWidth, maxHeight, minWidth, minHeight, height, width are changed |
|
|
34
|
+
| `willUpdate` | `(changedProperties: any): void` | Compute property values that depend on other properties<br />and are used in the rest of the update process.<br /><br />**changedProperties**: Properties that has changed |
|
|
34
35
|
|
|
35
36
|
## Events
|
|
36
37
|
|
package/lib/dialog/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import '../panel/index.js';
|
|
|
6
6
|
import '../header/index.js';
|
|
7
7
|
import '../button/index.js';
|
|
8
8
|
import { Translate } from '@refinitiv-ui/translate';
|
|
9
|
-
import '@refinitiv-ui/phrasebook/
|
|
9
|
+
import '@refinitiv-ui/phrasebook/locale/en/dialog.js';
|
|
10
10
|
/**
|
|
11
11
|
* Popup window, designed to contain and show any HTML content.
|
|
12
12
|
* It provides modal and dragging functionality,
|
|
@@ -44,6 +44,10 @@ export declare class Dialog extends Overlay {
|
|
|
44
44
|
* @returns version number
|
|
45
45
|
*/
|
|
46
46
|
static get version(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Default role of the element
|
|
49
|
+
*/
|
|
50
|
+
protected readonly defaultRole: string | null;
|
|
47
51
|
/**
|
|
48
52
|
* A `CSSResultGroup` that will be used
|
|
49
53
|
* to style the host, slotted children
|
|
@@ -108,6 +112,19 @@ export declare class Dialog extends Overlay {
|
|
|
108
112
|
* @returns boolean should component update
|
|
109
113
|
*/
|
|
110
114
|
protected shouldUpdate(changedProperties: PropertyValues): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Compute property values that depend on other properties
|
|
117
|
+
* and are used in the rest of the update process.
|
|
118
|
+
* @param changedProperties Properties that has changed
|
|
119
|
+
* @returns {void}
|
|
120
|
+
*/
|
|
121
|
+
willUpdate(changedProperties: PropertyValues): void;
|
|
122
|
+
/**
|
|
123
|
+
* Called after the component is first rendered
|
|
124
|
+
* @param changedProperties Properties which have changed
|
|
125
|
+
* @return {void}
|
|
126
|
+
*/
|
|
127
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
111
128
|
/**
|
|
112
129
|
* Called after the element’s properties has been updated
|
|
113
130
|
* @param changedProperties Properties that has changed
|
package/lib/dialog/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { css, html } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { query } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
6
|
import { VERSION } from '../version.js';
|
|
7
|
-
import { isIE } from '@refinitiv-ui/utils/
|
|
7
|
+
import { isIE } from '@refinitiv-ui/utils/browser.js';
|
|
8
8
|
import { deregister as draggableDeregister, register as draggableRegister } from './draggable-element.js';
|
|
9
9
|
import { Overlay } from '../overlay/index.js';
|
|
10
10
|
import '../icon/index.js';
|
|
@@ -12,7 +12,7 @@ import '../panel/index.js';
|
|
|
12
12
|
import '../header/index.js';
|
|
13
13
|
import '../button/index.js';
|
|
14
14
|
import { translate, TranslatePropertyKey } from '@refinitiv-ui/translate';
|
|
15
|
-
import '@refinitiv-ui/phrasebook/
|
|
15
|
+
import '@refinitiv-ui/phrasebook/locale/en/dialog.js';
|
|
16
16
|
/**
|
|
17
17
|
* Popup window, designed to contain and show any HTML content.
|
|
18
18
|
* It provides modal and dragging functionality,
|
|
@@ -47,6 +47,10 @@ import '@refinitiv-ui/phrasebook/lib/locale/en/dialog.js';
|
|
|
47
47
|
let Dialog = class Dialog extends Overlay {
|
|
48
48
|
constructor() {
|
|
49
49
|
super(...arguments);
|
|
50
|
+
/**
|
|
51
|
+
* Default role of the element
|
|
52
|
+
*/
|
|
53
|
+
this.defaultRole = 'dialog';
|
|
50
54
|
/**
|
|
51
55
|
* Set Header/Title of the dialog
|
|
52
56
|
*/
|
|
@@ -147,7 +151,28 @@ let Dialog = class Dialog extends Overlay {
|
|
|
147
151
|
shouldUpdate(changedProperties) {
|
|
148
152
|
const shouldUpdate = super.shouldUpdate(changedProperties);
|
|
149
153
|
return shouldUpdate
|
|
150
|
-
|| ((changedProperties.has('draggable') || changedProperties.has('header') || changedProperties.has(TranslatePropertyKey)) && this.opened);
|
|
154
|
+
|| ((changedProperties.has('draggable') || changedProperties.has('header') || changedProperties.has('noInteractionLock') || changedProperties.has(TranslatePropertyKey)) && this.opened);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Compute property values that depend on other properties
|
|
158
|
+
* and are used in the rest of the update process.
|
|
159
|
+
* @param changedProperties Properties that has changed
|
|
160
|
+
* @returns {void}
|
|
161
|
+
*/
|
|
162
|
+
willUpdate(changedProperties) {
|
|
163
|
+
// dialog only update when it is opened, so also checking `opened` change.
|
|
164
|
+
if (changedProperties.has('opened') || changedProperties.has('noInteractionLock')) {
|
|
165
|
+
this.setAttribute('aria-modal', String(!this.noInteractionLock));
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Called after the component is first rendered
|
|
170
|
+
* @param changedProperties Properties which have changed
|
|
171
|
+
* @return {void}
|
|
172
|
+
*/
|
|
173
|
+
firstUpdated(changedProperties) {
|
|
174
|
+
super.firstUpdated(changedProperties);
|
|
175
|
+
this.setAttribute('aria-modal', String(!this.noInteractionLock));
|
|
151
176
|
}
|
|
152
177
|
/**
|
|
153
178
|
* Called after the element’s properties has been updated
|
|
@@ -283,7 +308,7 @@ let Dialog = class Dialog extends Overlay {
|
|
|
283
308
|
get headerRegion() {
|
|
284
309
|
return html `
|
|
285
310
|
${this.header === null ? this.t('HEADER') : this.header}
|
|
286
|
-
<ef-icon part="close" icon="cross" slot="right" @tap="${this.defaultCancel}"></ef-icon>
|
|
311
|
+
<ef-icon aria-hidden="true" part="close" icon="cross" slot="right" @tap="${this.defaultCancel}"></ef-icon>
|
|
287
312
|
`;
|
|
288
313
|
}
|
|
289
314
|
/**
|
|
@@ -293,9 +318,9 @@ let Dialog = class Dialog extends Overlay {
|
|
|
293
318
|
*/
|
|
294
319
|
render() {
|
|
295
320
|
return html `
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
321
|
+
<ef-header drag-handle part="header">${this.headerRegion}</ef-header>
|
|
322
|
+
<ef-panel part="content" spacing transparent>${this.contentRegion}</ef-panel>
|
|
323
|
+
<div part="footer">${this.footerRegion}</div>
|
|
299
324
|
`;
|
|
300
325
|
}
|
|
301
326
|
};
|
|
@@ -2,7 +2,7 @@ import { JSXInterface } from '../jsx';
|
|
|
2
2
|
import { PropertyValues } from '@refinitiv-ui/core';
|
|
3
3
|
import '../icon/index.js';
|
|
4
4
|
import { TextField } from '../text-field/index.js';
|
|
5
|
-
import { TemplateMap } from '@refinitiv-ui/core/
|
|
5
|
+
import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
|
|
6
6
|
/**
|
|
7
7
|
* A form control element for email.
|
|
8
8
|
*
|
package/lib/email-field/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
3
|
-
import { property } from '@refinitiv-ui/core/
|
|
2
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
3
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
4
4
|
import '../icon/index.js';
|
|
5
5
|
import { TextField } from '../text-field/index.js';
|
|
6
6
|
/**
|
package/lib/flag/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { BasicElement, svg, css } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { unsafeHTML } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { unsafeHTML } from '@refinitiv-ui/core/directives/unsafe-html.js';
|
|
6
6
|
import { VERSION } from '../version.js';
|
|
7
7
|
import { FlagLoader } from './utils/FlagLoader.js';
|
|
8
8
|
export { preload } from './utils/FlagLoader.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CdnLoader, Deferred } from '@refinitiv-ui/utils/
|
|
1
|
+
import { CdnLoader, Deferred } from '@refinitiv-ui/utils/loader.js';
|
|
2
2
|
const isUrl = (str) => (/^https?:\/\//i).test(str);
|
|
3
3
|
/**
|
|
4
4
|
* Caches and provides flag SVGs, Loaded either by name from CDN or directly by URL.
|
package/lib/header/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { BasicElement, html, css } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
5
|
import { VERSION } from '../version.js';
|
|
6
6
|
/**
|
|
7
7
|
* Use to identify and separate different sections of a page.
|
package/lib/heatmap/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ResponsiveElement, html, css } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { query } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
6
|
import { VERSION } from '../version.js';
|
|
7
|
-
import { MicroTaskRunner } from '@refinitiv-ui/utils/
|
|
8
|
-
import { color } from '@refinitiv-ui/utils/
|
|
7
|
+
import { MicroTaskRunner } from '@refinitiv-ui/utils/async.js';
|
|
8
|
+
import { color } from '@refinitiv-ui/utils/color.js';
|
|
9
9
|
import '../canvas/index.js';
|
|
10
10
|
import '../tooltip/index.js';
|
|
11
11
|
import { Track } from './helpers/track.js';
|
package/lib/icon/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { BasicElement, svg, css } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { unsafeSVG } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { unsafeSVG } from '@refinitiv-ui/core/directives/unsafe-svg.js';
|
|
6
6
|
import { VERSION } from '../version.js';
|
|
7
7
|
import { IconLoader } from './utils/IconLoader.js';
|
|
8
8
|
export { preload } from './utils/IconLoader.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CdnLoader, Deferred } from '@refinitiv-ui/utils/
|
|
1
|
+
import { CdnLoader, Deferred } from '@refinitiv-ui/utils/loader.js';
|
|
2
2
|
const isUrl = (str) => (/^(https?:\/{2}|\.?\/)/i).test(str);
|
|
3
3
|
/**
|
|
4
4
|
* Caches and provides icon SVGs, Loaded either by name from CDN or directly by URL.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LineData, BarData, HistogramData, DeepPartial, ChartOptions, SeriesPartialOptions, LineSeriesPartialOptions, AreaSeriesPartialOptions, BarSeriesPartialOptions, CandlestickSeriesPartialOptions, HistogramSeriesPartialOptions, LineStyleOptions, AreaStyleOptions, BarStyleOptions, CandlestickStyleOptions, HistogramStyleOptions, ISeriesApi, SeriesType } from 'lightweight-charts';
|
|
2
|
-
import type { RGBColor, HSLColor } from '@refinitiv-ui/utils/
|
|
2
|
+
import type { RGBColor, HSLColor } from '@refinitiv-ui/utils/color.js';
|
|
3
3
|
declare type SeriesOptions = AreaSeriesPartialOptions | BarSeriesPartialOptions | CandlestickSeriesPartialOptions | HistogramSeriesPartialOptions | LineSeriesPartialOptions;
|
|
4
4
|
declare type SeriesStyleOptions = LineStyleOptions & AreaStyleOptions & BarStyleOptions & CandlestickStyleOptions & HistogramStyleOptions;
|
|
5
5
|
declare type SeriesData = LineData[] | BarData[] | HistogramData[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var InteractiveChart_1;
|
|
2
2
|
import { __decorate } from "tslib";
|
|
3
3
|
import { ResponsiveElement, html, css, DeprecationNotice } from '@refinitiv-ui/core';
|
|
4
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
5
|
-
import { property } from '@refinitiv-ui/core/
|
|
6
|
-
import { query } from '@refinitiv-ui/core/
|
|
4
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
5
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
6
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
7
7
|
import { VERSION } from '../version.js';
|
|
8
|
-
import { color as parseColor } from '@refinitiv-ui/utils/
|
|
8
|
+
import { color as parseColor } from '@refinitiv-ui/utils/color.js';
|
|
9
9
|
import { createChart as chart } from 'lightweight-charts';
|
|
10
10
|
import '../tooltip/index.js';
|
|
11
11
|
import { LegendStyle } from './helpers/types.js';
|
package/lib/item/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ControlElement, css, html } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { query } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
6
|
import { VERSION } from '../version.js';
|
|
7
7
|
import '../icon/index.js';
|
|
8
8
|
import '../checkbox/index.js';
|
package/lib/label/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { BasicElement, html, css } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { styleMap } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
|
|
6
6
|
import { VERSION } from '../version.js';
|
|
7
|
-
import { isIE } from '@refinitiv-ui/utils/
|
|
7
|
+
import { isIE } from '@refinitiv-ui/utils/browser.js';
|
|
8
8
|
import { addTooltipCondition, removeTooltipCondition } from '../tooltip/index.js';
|
|
9
9
|
/**
|
|
10
10
|
* Configuration object
|
package/lib/layout/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ResponsiveElement, html, css } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
5
|
import { VERSION } from '../version.js';
|
|
6
6
|
/**
|
|
7
7
|
* Layout component for creating responsive applications and components
|
package/lib/led-gauge/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { BasicElement, html, css } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
5
|
import { VERSION } from '../version.js';
|
|
6
6
|
import '../canvas/index.js';
|
|
7
7
|
const ZERO_MAP = {
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
"type": "boolean",
|
|
12
12
|
"default": "false"
|
|
13
13
|
},
|
|
14
|
+
{
|
|
15
|
+
"name": "aria-multiselectable",
|
|
16
|
+
"description": "Aria indicating that list supports multiple selection",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"default": "false"
|
|
19
|
+
},
|
|
14
20
|
{
|
|
15
21
|
"name": "multiple",
|
|
16
22
|
"description": "Allow multiple selections",
|
|
@@ -44,6 +50,13 @@
|
|
|
44
50
|
"type": "boolean",
|
|
45
51
|
"default": "false"
|
|
46
52
|
},
|
|
53
|
+
{
|
|
54
|
+
"name": "ariaMultiselectable",
|
|
55
|
+
"attribute": "aria-multiselectable",
|
|
56
|
+
"description": "Aria indicating that list supports multiple selection",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "false"
|
|
59
|
+
},
|
|
47
60
|
{
|
|
48
61
|
"name": "multiple",
|
|
49
62
|
"attribute": "multiple",
|