@refinitiv-ui/elements 5.12.2 → 6.0.0-next.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.
- package/README.md +4 -4
- package/lib/accordion/index.js +2 -2
- package/lib/appstate-bar/index.d.ts +6 -0
- package/lib/appstate-bar/index.js +8 -3
- package/lib/autosuggest/index.js +10 -11
- package/lib/button/index.d.ts +2 -13
- package/lib/button/index.js +7 -42
- package/lib/button-bar/index.js +4 -5
- package/lib/calendar/constants.js +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.js +39 -15
- package/lib/calendar/locales.js +5 -5
- package/lib/calendar/types.d.ts +1 -1
- package/lib/calendar/utils.js +5 -5
- package/lib/canvas/index.js +3 -4
- package/lib/card/index.js +6 -7
- package/lib/chart/index.js +18 -22
- package/lib/chart/plugins/doughnut-center-label.js +6 -11
- package/lib/checkbox/index.js +3 -3
- package/lib/clock/index.js +6 -6
- package/lib/clock/utils/TickManager.js +2 -2
- package/lib/collapse/index.js +7 -9
- 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 +4 -5
- 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 +31 -14
- package/lib/counter/index.d.ts +6 -6
- package/lib/counter/index.js +8 -8
- package/lib/datetime-field/constants.d.ts +4 -0
- package/lib/datetime-field/constants.js +5 -0
- package/lib/datetime-field/custom-elements.json +345 -0
- package/lib/datetime-field/custom-elements.md +61 -0
- package/lib/datetime-field/index.d.ts +317 -0
- package/lib/datetime-field/index.js +660 -0
- package/lib/datetime-field/themes/halo/dark/index.js +3 -0
- package/lib/datetime-field/themes/halo/light/index.js +3 -0
- package/lib/datetime-field/themes/solar/charcoal/index.js +3 -0
- package/lib/datetime-field/themes/solar/pearl/index.js +3 -0
- package/lib/datetime-field/types.d.ts +10 -0
- package/lib/datetime-field/types.js +1 -0
- package/lib/datetime-field/utils.d.ts +25 -0
- package/lib/datetime-field/utils.js +79 -0
- package/lib/datetime-picker/index.js +6 -7
- package/lib/datetime-picker/utils.js +1 -1
- package/lib/dialog/draggable-element.js +1 -2
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +5 -5
- package/lib/email-field/index.d.ts +1 -1
- package/lib/email-field/index.js +8 -3
- 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 +3 -5
- package/lib/heatmap/index.js +19 -28
- 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 +10 -14
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.d.ts +19 -17
- package/lib/item/index.js +45 -48
- package/lib/label/index.d.ts +1 -1
- package/lib/label/index.js +6 -6
- package/lib/layout/index.js +2 -2
- package/lib/led-gauge/index.js +2 -2
- package/lib/list/custom-elements.json +0 -13
- package/lib/list/custom-elements.md +9 -10
- package/lib/list/helpers/item-id.d.ts +8 -0
- package/lib/list/helpers/item-id.js +13 -0
- package/lib/list/helpers/{list-renderer.d.ts → renderer.d.ts} +4 -0
- package/lib/list/helpers/{list-renderer.js → renderer.js} +8 -0
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/list/index.d.ts +13 -12
- package/lib/list/index.js +30 -29
- package/lib/list/renderer.d.ts +1 -1
- package/lib/list/themes/halo/dark/index.js +1 -1
- package/lib/list/themes/halo/light/index.js +1 -1
- package/lib/list/themes/solar/charcoal/index.js +1 -1
- package/lib/list/themes/solar/pearl/index.js +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 -7
- package/lib/notification/elements/notification-tray.js +4 -4
- package/lib/notification/elements/notification.d.ts +10 -0
- package/lib/notification/elements/notification.js +12 -3
- package/lib/number-field/index.d.ts +3 -3
- package/lib/number-field/index.js +14 -4
- package/lib/overlay/elements/overlay-backdrop.js +2 -2
- package/lib/overlay/elements/overlay-viewport.js +1 -1
- package/lib/overlay/elements/overlay.js +7 -5
- package/lib/overlay/managers/focus-manager.js +2 -3
- package/lib/overlay/managers/interaction-lock-manager.js +1 -1
- package/lib/overlay/managers/viewport-manager.js +4 -5
- 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 +12 -15
- package/lib/overlay-menu/managers/menu-manager.js +1 -1
- package/lib/pagination/index.d.ts +74 -91
- package/lib/pagination/index.js +205 -239
- package/lib/pagination/themes/halo/dark/index.js +1 -2
- package/lib/pagination/themes/halo/light/index.js +1 -2
- package/lib/pagination/themes/solar/charcoal/index.js +1 -2
- package/lib/pagination/themes/solar/pearl/index.js +1 -2
- package/lib/panel/index.js +2 -2
- package/lib/password-field/index.d.ts +2 -2
- package/lib/password-field/index.js +7 -4
- package/lib/pill/index.d.ts +16 -0
- package/lib/pill/index.js +36 -5
- package/lib/pill/themes/halo/dark/index.js +1 -1
- package/lib/pill/themes/halo/light/index.js +1 -1
- package/lib/pill/themes/solar/charcoal/index.js +1 -1
- package/lib/pill/themes/solar/pearl/index.js +1 -1
- package/lib/progress-bar/index.js +3 -3
- package/lib/radio-button/index.js +3 -3
- package/lib/radio-button/radio-button-registry.d.ts +1 -1
- package/lib/radio-button/radio-button-registry.js +4 -2
- package/lib/rating/index.js +4 -4
- package/lib/search-field/index.d.ts +2 -2
- package/lib/search-field/index.js +8 -4
- package/lib/select/index.js +11 -14
- package/lib/sidebar-layout/index.js +4 -4
- package/lib/slider/index.js +6 -8
- package/lib/sparkline/index.js +9 -10
- package/lib/swing-gauge/index.js +14 -8
- package/lib/tab/index.js +4 -4
- package/lib/tab-bar/index.js +6 -6
- package/lib/text-field/index.d.ts +14 -1
- package/lib/text-field/index.js +35 -11
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +11 -11
- package/lib/toggle/index.js +2 -2
- package/lib/tooltip/index.js +6 -8
- 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 +3 -3
- package/lib/tree/elements/tree-item.js +5 -6
- package/lib/tree/elements/tree.d.ts +2 -3
- package/lib/tree/elements/tree.js +6 -7
- package/lib/tree/helpers/renderer.d.ts +4 -0
- package/lib/tree/helpers/renderer.js +8 -0
- package/lib/tree/helpers/types.d.ts +1 -1
- package/lib/tree/managers/tree-manager.d.ts +1 -1
- 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/index.d.ts +3 -7
- package/lib/tree-select/index.js +39 -38
- package/lib/version.js +1 -1
- package/package.json +35 -295
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { state } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { state } from '@refinitiv-ui/core/decorators/state.js';
|
|
5
5
|
import { preload } from '../icon/index.js';
|
|
6
6
|
import { TextField } from '../text-field/index.js';
|
|
7
7
|
import '../icon/index.js';
|
|
8
|
-
import '@refinitiv-ui/phrasebook/
|
|
8
|
+
import '@refinitiv-ui/phrasebook/locale/en/password-field.js';
|
|
9
9
|
import { translate } from '@refinitiv-ui/translate';
|
|
10
10
|
let isEyeOffPreloadRequested = false;
|
|
11
11
|
/**
|
|
@@ -70,7 +70,10 @@ let PasswordField = class PasswordField extends TextField {
|
|
|
70
70
|
* @returns template map
|
|
71
71
|
*/
|
|
72
72
|
get decorateInputMap() {
|
|
73
|
-
return
|
|
73
|
+
return {
|
|
74
|
+
...super.decorateInputMap,
|
|
75
|
+
'type': this.isPasswordVisible ? 'text' : 'password'
|
|
76
|
+
};
|
|
74
77
|
}
|
|
75
78
|
/**
|
|
76
79
|
* Renders icon element
|
package/lib/pill/index.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare class Pill extends ControlElement {
|
|
|
22
22
|
* @returns version number
|
|
23
23
|
*/
|
|
24
24
|
static get version(): string;
|
|
25
|
+
/**
|
|
26
|
+
* Element's role attribute for accessibility
|
|
27
|
+
*/
|
|
28
|
+
protected readonly defaultRole: string | null;
|
|
25
29
|
/**
|
|
26
30
|
* A `CSSResultGroup` that will be used
|
|
27
31
|
* to style the host, slotted children
|
|
@@ -47,6 +51,18 @@ export declare class Pill extends ControlElement {
|
|
|
47
51
|
private pressed;
|
|
48
52
|
private closeElement?;
|
|
49
53
|
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
54
|
+
/**
|
|
55
|
+
* Updates the element
|
|
56
|
+
* @param changedProperties Properties that has changed
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
protected update(changedProperties: PropertyValues): void;
|
|
60
|
+
/**
|
|
61
|
+
* Handles key down event
|
|
62
|
+
* @param event Key down event object
|
|
63
|
+
* @returns {void}
|
|
64
|
+
*/
|
|
65
|
+
private onKeyDown;
|
|
50
66
|
private get closeTemplate();
|
|
51
67
|
/**
|
|
52
68
|
* A `TemplateResult` that will be used
|
package/lib/pill/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
|
/**
|
|
@@ -23,6 +23,10 @@ import '../icon/index.js';
|
|
|
23
23
|
let Pill = class Pill extends ControlElement {
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments);
|
|
26
|
+
/**
|
|
27
|
+
* Element's role attribute for accessibility
|
|
28
|
+
*/
|
|
29
|
+
this.defaultRole = 'button';
|
|
26
30
|
/**
|
|
27
31
|
* Set pill to clearable
|
|
28
32
|
*/
|
|
@@ -72,9 +76,36 @@ let Pill = class Pill extends ControlElement {
|
|
|
72
76
|
this.addEventListener('tapstart', this.onStartPress);
|
|
73
77
|
this.addEventListener('tapend', this.onEndPress);
|
|
74
78
|
this.addEventListener('mouseleave', this.onEndPress);
|
|
79
|
+
this.addEventListener('keydown', this.onKeyDown);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Updates the element
|
|
83
|
+
* @param changedProperties Properties that has changed
|
|
84
|
+
* @returns {void}
|
|
85
|
+
*/
|
|
86
|
+
update(changedProperties) {
|
|
87
|
+
if (changedProperties.has('toggles') || changedProperties.has('active')) {
|
|
88
|
+
if (this.toggles) {
|
|
89
|
+
this.setAttribute('aria-pressed', String(this.active));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.removeAttribute('aria-pressed');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
super.update(changedProperties);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Handles key down event
|
|
99
|
+
* @param event Key down event object
|
|
100
|
+
* @returns {void}
|
|
101
|
+
*/
|
|
102
|
+
onKeyDown(event) {
|
|
103
|
+
if ((event.key === 'Delete' || event.key === 'Del') && (this.clears && !this.readonly)) {
|
|
104
|
+
this.dispatchEvent(new CustomEvent('clear'));
|
|
105
|
+
}
|
|
75
106
|
}
|
|
76
107
|
get closeTemplate() {
|
|
77
|
-
return this.clears && !this.readonly ? html `<ef-icon part="close" icon="cross" @tap="${this.clear}"></ef-icon>` : null;
|
|
108
|
+
return this.clears && !this.readonly ? html `<ef-icon part="close" icon="cross" aria-hidden="true" @tap="${this.clear}"></ef-icon>` : null;
|
|
78
109
|
}
|
|
79
110
|
/**
|
|
80
111
|
* A `TemplateResult` that will be used
|
|
@@ -83,7 +114,7 @@ let Pill = class Pill extends ControlElement {
|
|
|
83
114
|
*/
|
|
84
115
|
render() {
|
|
85
116
|
return html `
|
|
86
|
-
<div part="content">
|
|
117
|
+
<div part="content" role="none">
|
|
87
118
|
<slot>...</slot>
|
|
88
119
|
</div>
|
|
89
120
|
${this.closeTemplate}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/icon/themes/halo/dark';
|
|
2
2
|
|
|
3
|
-
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;background:#
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;background:#333;transition:120ms;color:#ccc;margin:2px;font-family:inherit;font-size:12rem;font-weight:400;padding:0 5px;min-width:21px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;width:12px;height:12px;box-sizing:border-box;cursor:pointer;background-clip:content-box;color:#ccc;min-width:12px;opacity:.4;background-color:initial}:host [part=close]:active{border:1px solid transparent}:host([focused=visible]){border:1px solid #334bff}:host{border-radius:10px;height:20px;line-height:20px;background-color:#1a1a1a;border:1px solid #333}:host(:hover),:host([active]:hover){background-color:#334bff;border-color:#334bff}:host([active]){border-color:#0d0d0d;background-color:#334bff}:host([toggles][active][pressed]),:host([toggles][pressed]){border-color:#0d0d0d}:host([toggles][pressed]),:host([toggles][pressed]:hover){background-color:#0f1e8a}:host(:hover),:host([active]),:host([pressed]){color:#fff}:host(:hover) [part=close],:host([active]) [part=close],:host([pressed]) [part=close]{color:#fff;opacity:1}:host([disabled]){border-color:#0d0d0d;color:#ccc;background-color:#333}@media (pointer:coarse){:host(:not([active])),:host([toggles]:not([active])){color:#ccc;background-color:#1a1a1a;border-color:#333}:host(:not([active])) [part=close],:host([toggles]:not([active])) [part=close]{color:#ccc;opacity:.4}}');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/icon/themes/halo/light';
|
|
2
2
|
|
|
3
|
-
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;background:#fafafa;
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;background:#fafafa;transition:120ms;color:#0d0d0d;margin:2px;font-family:inherit;font-size:12rem;font-weight:400;padding:0 5px;min-width:21px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;width:12px;height:12px;box-sizing:border-box;cursor:pointer;background-clip:content-box;color:#595959;min-width:12px;opacity:.4;background-color:initial}:host [part=close]:active{border:1px solid transparent}:host([focused=visible]){border:1px solid #334bff}:host{border-radius:10px;height:20px;line-height:20px;background-color:#fafafa;border:1px solid #ccc}:host(:hover),:host([active]:hover){background-color:#334bff;border-color:#334bff}:host([active]){border-color:#ccc;background-color:#334bff}:host([toggles][active][pressed]),:host([toggles][pressed]){border-color:#ccc}:host([toggles][pressed]),:host([toggles][pressed]:hover){background-color:#0f1e8a}:host(:hover),:host([active]),:host([pressed]){color:#fff}:host(:hover) [part=close],:host([active]) [part=close],:host([pressed]) [part=close]{color:#fff;opacity:1}:host([disabled]){border-color:#ccc;color:#0d0d0d;background-color:#fafafa}@media (pointer:coarse){:host(:not([active])),:host([toggles]:not([active])){color:#0d0d0d;background-color:#fafafa;border-color:#ccc}:host(:not([active])) [part=close],:host([toggles]:not([active])) [part=close]{color:#0d0d0d;opacity:.4}}');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/icon/themes/solar/charcoal';
|
|
2
2
|
|
|
3
|
-
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;transition:70ms;font-family:inherit;font-size:13rem;font-weight:400;min-width:22px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;box-sizing:border-box;cursor:pointer;background-clip:content-box;width:11px;height:11px;color:#c2c2c2;background-color:#000}:host [part=close]:active{border:1px solid transparent}:host([clears]:hover) [part=close]{display:flex}:host{background:#c2c2c2;border-radius:2px;padding:0 4px;color:#000;height:17px;margin:3px 3px 0 0}:host [part=close]:active{border:none}:host([readonly]){background:#c2c2c2}:host([toggles][active]){background:#f93;color:#000}:host([toggles][active]) [part=close]{color:#f93}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover){background:#fff}:host([toggles][active]:hover){background:#ffb366}}');
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;transition:70ms;font-family:inherit;font-size:13rem;font-weight:400;min-width:22px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;box-sizing:border-box;cursor:pointer;background-clip:content-box;width:11px;height:11px;color:#c2c2c2;background-color:#000}:host [part=close]:active{border:1px solid transparent}:host([clears]:hover) [part=close]{display:flex}:host([focused=visible]){border:1px solid #f93}:host{background:#c2c2c2;border-radius:2px;padding:0 4px;color:#000;height:17px;margin:3px 3px 0 0}:host [part=close]:active{border:none}:host([readonly]){background:#c2c2c2}:host([toggles][active]){background:#f93;color:#000}:host([toggles][active]) [part=close]{color:#f93}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover){background:#fff}:host([toggles][active]:hover){background:#ffb366}}');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/icon/themes/solar/pearl';
|
|
2
2
|
|
|
3
|
-
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;transition:70ms;font-family:inherit;font-size:13rem;font-weight:400;min-width:22px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;box-sizing:border-box;cursor:pointer;background-clip:content-box;width:11px;height:11px;color:#a9afba;background-color:#fff}:host [part=close]:active{border:1px solid transparent}:host([clears]:hover) [part=close]{display:flex}:host{background:#a9afba;border-radius:2px;padding:0 4px;color:#fff;height:17px;margin:3px 3px 0 0}:host [part=close]:active{border:none}:host([readonly]){background:#a9afba}:host([toggles][active]){background:#ee7600;color:#fff}:host([toggles][active]) [part=close]{color:#ee7600}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover){background:#8a8a96}:host([toggles][active]:hover){background:#ee7600}}');
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;transition:70ms;font-family:inherit;font-size:13rem;font-weight:400;min-width:22px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;box-sizing:border-box;cursor:pointer;background-clip:content-box;width:11px;height:11px;color:#a9afba;background-color:#fff}:host [part=close]:active{border:1px solid transparent}:host([clears]:hover) [part=close]{display:flex}:host([focused=visible]){border:1px solid #f93}:host{background:#a9afba;border-radius:2px;padding:0 4px;color:#fff;height:17px;margin:3px 3px 0 0}:host [part=close]:active{border:none}:host([readonly]){background:#a9afba}:host([toggles][active]){background:#ee7600;color:#fff}:host([toggles][active]) [part=close]{color:#ee7600}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover){background:#8a8a96}:host([toggles][active]:hover){background:#ee7600}}');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { css, html, BasicElement } 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
7
|
/**
|
|
8
8
|
* Data visualisation component,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, css, ControlElement } 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 { registerOverflowTooltip } from '../tooltip/index.js';
|
|
8
8
|
import { applyRegistry, removeFromRegistry, getRadioGroup } from './radio-button-registry.js';
|
|
@@ -14,7 +14,7 @@ declare const removeFromRegistry: (radio: RadioButton) => void;
|
|
|
14
14
|
*/
|
|
15
15
|
declare const applyRegistry: (radio: RadioButton, oldGroupName?: string) => void;
|
|
16
16
|
/**
|
|
17
|
-
* Get
|
|
17
|
+
* Get a group of radio buttons that has the same name and scope
|
|
18
18
|
* @param radio A radio to get a group for
|
|
19
19
|
* @returns collection of radio buttons
|
|
20
20
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getElementScope } from '@refinitiv-ui/utils/element.js';
|
|
1
2
|
const registry = [];
|
|
2
3
|
/**
|
|
3
4
|
* Remove radio button from registry
|
|
@@ -79,7 +80,7 @@ const restoreTabIndex = (radioGroup) => {
|
|
|
79
80
|
});
|
|
80
81
|
};
|
|
81
82
|
/**
|
|
82
|
-
* Get
|
|
83
|
+
* Get a group of radio buttons that has the same name and scope
|
|
83
84
|
* @param radio A radio to get a group for
|
|
84
85
|
* @returns collection of radio buttons
|
|
85
86
|
*/
|
|
@@ -88,6 +89,7 @@ const getRadioGroup = (radio) => {
|
|
|
88
89
|
return [];
|
|
89
90
|
}
|
|
90
91
|
const groupName = radio.name;
|
|
91
|
-
|
|
92
|
+
const rootNode = getElementScope(radio);
|
|
93
|
+
return registry.filter(radio => rootNode === getElementScope(radio) && radio.name === groupName);
|
|
92
94
|
};
|
|
93
95
|
export { applyRegistry, removeFromRegistry, getRadioGroup };
|
package/lib/rating/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 { queryAll } from '@refinitiv-ui/core/
|
|
6
|
-
import { repeat } 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 { queryAll } from '@refinitiv-ui/core/decorators/query-all.js';
|
|
6
|
+
import { repeat } from '@refinitiv-ui/core/directives/repeat.js';
|
|
7
7
|
import { VERSION } from '../version.js';
|
|
8
8
|
/**
|
|
9
9
|
* Star visualisation component that is generally used for ranking
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
2
|
import { TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
-
import { TemplateMap } from '@refinitiv-ui/core/
|
|
3
|
+
import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
|
|
4
4
|
import '../icon/index.js';
|
|
5
5
|
import { TextField } from '../text-field/index.js';
|
|
6
6
|
import { Translate } from '@refinitiv-ui/translate';
|
|
7
|
-
import '@refinitiv-ui/phrasebook/
|
|
7
|
+
import '@refinitiv-ui/phrasebook/locale/en/search-field.js';
|
|
8
8
|
/**
|
|
9
9
|
* Form control to get a search input from users.
|
|
10
10
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { ifDefined } from '@refinitiv-ui/core/
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { ifDefined } from '@refinitiv-ui/core/directives/if-defined.js';
|
|
5
5
|
import '../icon/index.js';
|
|
6
6
|
import { TextField } from '../text-field/index.js';
|
|
7
7
|
import { translate } from '@refinitiv-ui/translate';
|
|
8
|
-
import '@refinitiv-ui/phrasebook/
|
|
8
|
+
import '@refinitiv-ui/phrasebook/locale/en/search-field.js';
|
|
9
9
|
/**
|
|
10
10
|
* Form control to get a search input from users.
|
|
11
11
|
*
|
|
@@ -52,7 +52,11 @@ let SearchField = class SearchField extends TextField {
|
|
|
52
52
|
* @returns template map
|
|
53
53
|
*/
|
|
54
54
|
get decorateInputMap() {
|
|
55
|
-
return
|
|
55
|
+
return {
|
|
56
|
+
...super.decorateInputMap,
|
|
57
|
+
'type': 'search',
|
|
58
|
+
'inputmode': 'search'
|
|
59
|
+
};
|
|
56
60
|
}
|
|
57
61
|
/**
|
|
58
62
|
* Renders icon element
|
package/lib/select/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ControlElement, html, css, 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 { 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 { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
|
+
import { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
|
|
7
7
|
import { VERSION } from '../version.js';
|
|
8
8
|
import '../overlay/index.js';
|
|
9
9
|
import '../item/index.js';
|
|
10
10
|
import '../icon/index.js';
|
|
11
11
|
import { Item } from '../item/index.js';
|
|
12
|
-
import { CollectionComposer } from '@refinitiv-ui/utils/
|
|
13
|
-
import { TimeoutTaskRunner, AnimationTaskRunner } from '@refinitiv-ui/utils/
|
|
12
|
+
import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
|
|
13
|
+
import { TimeoutTaskRunner, AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
|
|
14
14
|
// Observer config for items
|
|
15
15
|
const observerOptions = {
|
|
16
16
|
subtree: true,
|
|
@@ -480,7 +480,7 @@ let Select = class Select extends ControlElement {
|
|
|
480
480
|
capture: true,
|
|
481
481
|
passive: true
|
|
482
482
|
};
|
|
483
|
-
target
|
|
483
|
+
target?.addEventListener('scroll', this.onPopupScroll, eventOptions);
|
|
484
484
|
}
|
|
485
485
|
/**
|
|
486
486
|
* Run when popup gets closed
|
|
@@ -491,7 +491,7 @@ let Select = class Select extends ControlElement {
|
|
|
491
491
|
capture: true,
|
|
492
492
|
passive: true
|
|
493
493
|
};
|
|
494
|
-
target
|
|
494
|
+
target?.removeEventListener('scroll', this.onPopupScroll, eventOptions);
|
|
495
495
|
this.setItemHighlight();
|
|
496
496
|
this.popupScrollTop = 0;
|
|
497
497
|
}
|
|
@@ -513,8 +513,7 @@ let Select = class Select extends ControlElement {
|
|
|
513
513
|
* @returns {void}
|
|
514
514
|
*/
|
|
515
515
|
onPopupMouseMove(event) {
|
|
516
|
-
|
|
517
|
-
(_a = this.menuEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
516
|
+
this.menuEl?.focus();
|
|
518
517
|
const item = this.findSelectableElement(event);
|
|
519
518
|
if (item) {
|
|
520
519
|
this.setItemHighlight(item);
|
|
@@ -547,12 +546,11 @@ let Select = class Select extends ControlElement {
|
|
|
547
546
|
* @returns {void}
|
|
548
547
|
*/
|
|
549
548
|
onPopupKeyDown(event) {
|
|
550
|
-
var _a;
|
|
551
549
|
switch (event.key) {
|
|
552
550
|
case ' ':
|
|
553
551
|
case 'Spacebar':
|
|
554
552
|
case 'Enter':
|
|
555
|
-
|
|
553
|
+
this.highlightedItem?.click();
|
|
556
554
|
break;
|
|
557
555
|
case 'Up':
|
|
558
556
|
case 'ArrowUp':
|
|
@@ -809,8 +807,7 @@ let Select = class Select extends ControlElement {
|
|
|
809
807
|
* @returns True if working with data
|
|
810
808
|
*/
|
|
811
809
|
hasDataItems() {
|
|
812
|
-
|
|
813
|
-
return !!((_a = this.data) === null || _a === void 0 ? void 0 : _a.length);
|
|
810
|
+
return !!this.data?.length;
|
|
814
811
|
}
|
|
815
812
|
/**
|
|
816
813
|
* Retrieve the selected data items
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { 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 '../layout/index.js';
|
|
9
9
|
/**
|
package/lib/slider/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, css, ControlElement, 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/
|
|
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
7
|
import { VERSION } from '../version.js';
|
|
8
8
|
import '../number-field/index.js';
|
|
9
9
|
var SliderNameType;
|
|
@@ -490,10 +490,9 @@ let Slider = class Slider extends ControlElement {
|
|
|
490
490
|
* @returns {void}
|
|
491
491
|
*/
|
|
492
492
|
initSlider() {
|
|
493
|
-
var _a;
|
|
494
493
|
this.dragElements = [];
|
|
495
494
|
if (this.range) {
|
|
496
|
-
|
|
495
|
+
this.shadowRoot?.querySelectorAll('#thumbContainer').forEach((item) => {
|
|
497
496
|
this.dragElements.push(item);
|
|
498
497
|
});
|
|
499
498
|
}
|
|
@@ -545,8 +544,7 @@ let Slider = class Slider extends ControlElement {
|
|
|
545
544
|
* @returns number of decimal points
|
|
546
545
|
*/
|
|
547
546
|
countDecimals(value) {
|
|
548
|
-
|
|
549
|
-
return ((_a = Number(value).toString().split('.')[1]) === null || _a === void 0 ? void 0 : _a.length) | 0;
|
|
547
|
+
return Number(value).toString().split('.')[1]?.length | 0;
|
|
550
548
|
}
|
|
551
549
|
/**
|
|
552
550
|
* Check if decimal number e.g. 10.5, etc
|
package/lib/sparkline/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { css, ResponsiveElement, 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 { color } from '@refinitiv-ui/utils/
|
|
7
|
+
import { color } from '@refinitiv-ui/utils/color.js';
|
|
8
8
|
import '@refinitiv-ui/browser-sparkline';
|
|
9
9
|
let Sparkline = class Sparkline extends ResponsiveElement {
|
|
10
10
|
constructor() {
|
|
@@ -35,16 +35,15 @@ let Sparkline = class Sparkline extends ResponsiveElement {
|
|
|
35
35
|
* Get configuration for theme
|
|
36
36
|
*/
|
|
37
37
|
get defaultThemeConfig() {
|
|
38
|
-
var _a, _b, _c, _d, _e;
|
|
39
38
|
return {
|
|
40
39
|
width: this.width,
|
|
41
40
|
height: this.height,
|
|
42
|
-
lineColor:
|
|
41
|
+
lineColor: color(this.getComputedVariable('--line-color', '#ff9933'))?.formatHex(),
|
|
43
42
|
lineWidth: parseInt(this.getComputedVariable('--line-width', '2px'), 10),
|
|
44
|
-
referenceLineColor:
|
|
45
|
-
previousLineColor:
|
|
46
|
-
upperLineColor:
|
|
47
|
-
lowerLineColor:
|
|
43
|
+
referenceLineColor: color(this.getComputedVariable('--reference-line-color', 'rgba(120, 120, 130, 0.5)'))?.formatHex(),
|
|
44
|
+
previousLineColor: color(this.getComputedVariable('--previous-line-color', '#bfbfbf'))?.formatHex(),
|
|
45
|
+
upperLineColor: color(this.getComputedVariable('--upper-line-color', '#309054'))?.formatHex(),
|
|
46
|
+
lowerLineColor: color(this.getComputedVariable('--lower-line-color', '#d94255'))?.formatHex(),
|
|
48
47
|
fillColorStyle: this.getComputedVariable('--fill-color-style', 'gradient')
|
|
49
48
|
};
|
|
50
49
|
}
|
package/lib/swing-gauge/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ResponsiveElement, css, html, 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 { state } from '@refinitiv-ui/core/
|
|
7
|
-
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 { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
|
+
import { state } from '@refinitiv-ui/core/decorators/state.js';
|
|
7
|
+
import { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
|
|
8
8
|
import { VERSION } from '../version.js';
|
|
9
9
|
import '../canvas/index.js';
|
|
10
10
|
import '../label/index.js';
|
|
@@ -441,7 +441,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
441
441
|
* @returns number without CSS unit
|
|
442
442
|
*/
|
|
443
443
|
getValueFromStyle(styleValue) {
|
|
444
|
-
return Number(styleValue
|
|
444
|
+
return Number(styleValue?.replace('px', ''));
|
|
445
445
|
}
|
|
446
446
|
/**
|
|
447
447
|
* Compute and update style of containers and labels
|
|
@@ -453,8 +453,14 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
453
453
|
}
|
|
454
454
|
const primaryPosition = this.getPositionStyle(Segment.PRIMARY, this.primaryLineRadian, this.linePointerOffset, -this.lineLength);
|
|
455
455
|
const secondaryPosition = this.getPositionStyle(Segment.SECONDARY, this.secondaryLineRadian, this.linePointerOffset, 0);
|
|
456
|
-
this.primaryContainerStyle =
|
|
457
|
-
|
|
456
|
+
this.primaryContainerStyle = {
|
|
457
|
+
width: `${this.lineLength}px`,
|
|
458
|
+
...primaryPosition
|
|
459
|
+
};
|
|
460
|
+
this.secondaryContainerStyle = {
|
|
461
|
+
width: `${this.lineLength}px`,
|
|
462
|
+
...secondaryPosition
|
|
463
|
+
};
|
|
458
464
|
// position container over line pointer
|
|
459
465
|
if (this.primaryPercentage < GAUGE_PERCENTAGE_THRESHOLD) {
|
|
460
466
|
delete this.primaryContainerStyle.top;
|
package/lib/tab/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, css, ControlElement } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/
|
|
4
|
-
import { property } from '@refinitiv-ui/core/
|
|
5
|
-
import { state } from '@refinitiv-ui/core/
|
|
6
|
-
import { isSlotEmpty } 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 { state } from '@refinitiv-ui/core/decorators/state.js';
|
|
6
|
+
import { isSlotEmpty } from '@refinitiv-ui/utils/is-slot-empty.js';
|
|
7
7
|
import { VERSION } from '../version.js';
|
|
8
8
|
import '../icon/index.js';
|
|
9
9
|
import '../label/index.js';
|
package/lib/tab-bar/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, css, ResponsiveElement } 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 { tweenAnimate } from './helpers/animate.js';
|
|
8
8
|
import { Tab } from '../tab/index.js';
|
|
@@ -229,7 +229,7 @@ let TabBar = class TabBar extends ResponsiveElement {
|
|
|
229
229
|
*/
|
|
230
230
|
setLevel() {
|
|
231
231
|
const tabList = this.getTabElements(); // get all tab elements include disabled tab
|
|
232
|
-
tabList
|
|
232
|
+
tabList?.forEach((tab) => {
|
|
233
233
|
tab.level = this.level;
|
|
234
234
|
});
|
|
235
235
|
}
|
|
@@ -391,11 +391,11 @@ let TabBar = class TabBar extends ResponsiveElement {
|
|
|
391
391
|
*/
|
|
392
392
|
render() {
|
|
393
393
|
return html `
|
|
394
|
-
${!this.vertical ? html `<ef-button tabIndex="-1" icon="left" part="left-btn" @tap=${this.handleScrollLeft}></ef-button>` : null}
|
|
394
|
+
${!this.vertical ? html `<ef-button tabIndex="-1" aria-hidden="true" icon="left" part="left-btn" @tap=${this.handleScrollLeft}></ef-button>` : null}
|
|
395
395
|
<div part="content">
|
|
396
396
|
<slot @slotchange=${this.onSlotChange}></slot>
|
|
397
397
|
</div>
|
|
398
|
-
${!this.vertical ? html `<ef-button tabIndex="-1" icon="right" part="right-btn" @tap=${this.handleScrollRight}></ef-button>` : null}
|
|
398
|
+
${!this.vertical ? html `<ef-button tabIndex="-1" aria-hidden="true" icon="right" part="right-btn" @tap=${this.handleScrollRight}></ef-button>` : null}
|
|
399
399
|
`;
|
|
400
400
|
}
|
|
401
401
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
2
|
import { FormFieldElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
-
import { TemplateMap } from '@refinitiv-ui/core/
|
|
3
|
+
import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
|
|
4
4
|
import '../icon/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Form control element for text.
|
|
@@ -74,6 +74,19 @@ export declare class TextField extends FormFieldElement {
|
|
|
74
74
|
* @returns shouldUpdate
|
|
75
75
|
*/
|
|
76
76
|
protected updated(changedProperties: PropertyValues): void;
|
|
77
|
+
/**
|
|
78
|
+
* Check if input value should be synchronised with component value
|
|
79
|
+
* @param changedProperties Properties that has changed
|
|
80
|
+
* @returns True if input should be synchronised
|
|
81
|
+
*/
|
|
82
|
+
protected shouldSyncInputValue(changedProperties: PropertyValues): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Synchronise input value with value.
|
|
85
|
+
* Override the method if value and input value are not the same
|
|
86
|
+
* @param changedProperties Properties that has changed
|
|
87
|
+
* @returns {void}
|
|
88
|
+
*/
|
|
89
|
+
protected syncInputValue(changedProperties: PropertyValues): void;
|
|
77
90
|
/**
|
|
78
91
|
* Check if input should be re-validated
|
|
79
92
|
* @param changedProperties Properties that has changed
|