@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.
Files changed (130) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +4 -4
  3. package/lib/accordion/index.js +2 -2
  4. package/lib/appstate-bar/index.js +2 -2
  5. package/lib/autosuggest/index.js +6 -6
  6. package/lib/button/index.d.ts +10 -4
  7. package/lib/button/index.js +26 -8
  8. package/lib/button-bar/index.d.ts +49 -0
  9. package/lib/button-bar/index.js +151 -11
  10. package/lib/calendar/constants.js +1 -1
  11. package/lib/calendar/index.d.ts +1 -1
  12. package/lib/calendar/index.js +11 -11
  13. package/lib/calendar/types.d.ts +1 -1
  14. package/lib/calendar/utils.js +1 -1
  15. package/lib/canvas/index.js +2 -2
  16. package/lib/card/index.js +5 -5
  17. package/lib/chart/index.js +4 -4
  18. package/lib/checkbox/index.js +3 -4
  19. package/lib/checkbox/themes/halo/dark/index.js +1 -1
  20. package/lib/checkbox/themes/halo/light/index.js +1 -1
  21. package/lib/clock/index.js +6 -6
  22. package/lib/clock/utils/TickManager.js +2 -2
  23. package/lib/collapse/index.js +3 -3
  24. package/lib/color-dialog/elements/color-palettes.js +1 -1
  25. package/lib/color-dialog/elements/grayscale-palettes.js +2 -2
  26. package/lib/color-dialog/elements/palettes.js +3 -3
  27. package/lib/color-dialog/helpers/value-model.js +1 -1
  28. package/lib/color-dialog/index.d.ts +1 -1
  29. package/lib/color-dialog/index.js +6 -6
  30. package/lib/combo-box/helpers/filter.d.ts +1 -1
  31. package/lib/combo-box/helpers/types.d.ts +1 -1
  32. package/lib/combo-box/index.d.ts +4 -4
  33. package/lib/combo-box/index.js +9 -9
  34. package/lib/counter/index.js +2 -2
  35. package/lib/datetime-picker/index.js +5 -5
  36. package/lib/datetime-picker/utils.js +1 -1
  37. package/lib/dialog/custom-elements.json +11 -0
  38. package/lib/dialog/custom-elements.md +4 -3
  39. package/lib/dialog/index.d.ts +18 -1
  40. package/lib/dialog/index.js +35 -10
  41. package/lib/email-field/index.d.ts +1 -1
  42. package/lib/email-field/index.js +2 -2
  43. package/lib/flag/index.js +3 -3
  44. package/lib/flag/utils/FlagLoader.d.ts +1 -1
  45. package/lib/flag/utils/FlagLoader.js +1 -1
  46. package/lib/header/index.js +2 -2
  47. package/lib/heatmap/helpers/color.d.ts +1 -1
  48. package/lib/heatmap/helpers/color.js +1 -1
  49. package/lib/heatmap/index.js +5 -5
  50. package/lib/icon/index.js +3 -3
  51. package/lib/icon/utils/IconLoader.d.ts +1 -1
  52. package/lib/icon/utils/IconLoader.js +1 -1
  53. package/lib/interactive-chart/helpers/types.d.ts +1 -1
  54. package/lib/interactive-chart/index.js +4 -4
  55. package/lib/item/helpers/types.d.ts +1 -1
  56. package/lib/item/index.js +3 -3
  57. package/lib/label/index.js +4 -4
  58. package/lib/layout/index.js +2 -2
  59. package/lib/led-gauge/index.js +2 -2
  60. package/lib/list/custom-elements.json +13 -0
  61. package/lib/list/custom-elements.md +10 -9
  62. package/lib/list/helpers/types.d.ts +1 -1
  63. package/lib/list/index.d.ts +5 -1
  64. package/lib/list/index.js +10 -3
  65. package/lib/list/renderer.d.ts +1 -1
  66. package/lib/loader/index.js +1 -1
  67. package/lib/multi-input/helpers/types.d.ts +1 -1
  68. package/lib/multi-input/index.js +6 -6
  69. package/lib/notification/elements/notification-tray.js +3 -3
  70. package/lib/notification/elements/notification.js +2 -2
  71. package/lib/number-field/index.d.ts +1 -1
  72. package/lib/number-field/index.js +4 -3
  73. package/lib/overlay/elements/overlay-backdrop.js +2 -2
  74. package/lib/overlay/elements/overlay-viewport.js +1 -1
  75. package/lib/overlay/elements/overlay.js +4 -4
  76. package/lib/overlay/managers/focus-manager.js +1 -1
  77. package/lib/overlay/managers/interaction-lock-manager.js +1 -1
  78. package/lib/overlay/managers/viewport-manager.js +1 -1
  79. package/lib/overlay/managers/zindex-manager.js +1 -1
  80. package/lib/overlay-menu/helpers/types.d.ts +1 -1
  81. package/lib/overlay-menu/index.js +6 -6
  82. package/lib/overlay-menu/managers/menu-manager.js +1 -1
  83. package/lib/pagination/index.d.ts +2 -2
  84. package/lib/pagination/index.js +9 -11
  85. package/lib/panel/index.js +2 -2
  86. package/lib/password-field/index.d.ts +2 -2
  87. package/lib/password-field/index.js +3 -3
  88. package/lib/pill/index.js +3 -3
  89. package/lib/progress-bar/index.js +3 -3
  90. package/lib/radio-button/index.d.ts +2 -2
  91. package/lib/radio-button/index.js +10 -7
  92. package/lib/radio-button/themes/halo/dark/index.js +1 -1
  93. package/lib/radio-button/themes/halo/light/index.js +1 -1
  94. package/lib/rating/index.js +4 -4
  95. package/lib/search-field/index.d.ts +2 -2
  96. package/lib/search-field/index.js +3 -3
  97. package/lib/select/index.js +6 -6
  98. package/lib/sidebar-layout/index.js +4 -4
  99. package/lib/slider/index.js +14 -4
  100. package/lib/sparkline/index.js +4 -4
  101. package/lib/swing-gauge/index.js +5 -5
  102. package/lib/tab/custom-elements.json +13 -0
  103. package/lib/tab/custom-elements.md +1 -0
  104. package/lib/tab/index.d.ts +13 -15
  105. package/lib/tab/index.js +28 -35
  106. package/lib/tab-bar/custom-elements.json +12 -0
  107. package/lib/tab-bar/custom-elements.md +7 -0
  108. package/lib/tab-bar/index.d.ts +56 -7
  109. package/lib/tab-bar/index.js +139 -40
  110. package/lib/text-field/index.d.ts +1 -1
  111. package/lib/text-field/index.js +4 -4
  112. package/lib/time-picker/index.d.ts +1 -1
  113. package/lib/time-picker/index.js +9 -9
  114. package/lib/toggle/index.js +2 -2
  115. package/lib/tooltip/index.js +4 -4
  116. package/lib/tooltip/managers/tooltip-manager.js +2 -2
  117. package/lib/tornado-chart/elements/tornado-chart.js +2 -2
  118. package/lib/tornado-chart/elements/tornado-item.js +3 -3
  119. package/lib/tree/elements/tree-item.d.ts +33 -0
  120. package/lib/tree/elements/tree-item.js +83 -24
  121. package/lib/tree/elements/tree.d.ts +2 -1
  122. package/lib/tree/elements/tree.js +3 -2
  123. package/lib/tree/helpers/types.d.ts +1 -1
  124. package/lib/tree/managers/tree-manager.d.ts +1 -1
  125. package/lib/tree-select/index.d.ts +3 -3
  126. package/lib/tree-select/index.js +9 -9
  127. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  128. package/lib/tree-select/themes/halo/light/index.js +1 -1
  129. package/lib/version.js +1 -1
  130. package/package.json +24 -295
@@ -4,15 +4,16 @@ Provides listing and immutable selection
4
4
 
5
5
  ## Properties
6
6
 
7
- | Property | Attribute | Type | Default | Description |
8
- |-----------------------------|-------------|----------------|--------------------------|--------------------------------------------------|
9
- | `data` | | `ListData` | null | The data object, used to render the list. |
10
- | `delegatesFocus (readonly)` | | `false` | false | Element focus delegation.<br />Set to `false` and relies on native focusing. |
11
- | `multiple` | `multiple` | `boolean` | false | Allow multiple selections |
12
- | `renderer` | | `ListRenderer` | "new ListRenderer(this)" | Renderer used to render list item elements |
13
- | `stateless` | `stateless` | `boolean` | false | Disable selections |
14
- | `value` | `value` | `string` | "" | Returns the first selected item value.<br />Use `values` when multiple selection mode is enabled. |
15
- | `values` | | `string[]` | [] | Returns a values collection of the currently<br />selected item values |
7
+ | Property | Attribute | Type | Default | Description |
8
+ |-----------------------------|------------------------|----------------|--------------------------|--------------------------------------------------|
9
+ | `ariaMultiselectable` | `aria-multiselectable` | `string` | false | Aria indicating that list supports multiple selection |
10
+ | `data` | | `ListData` | null | The data object, used to render the list. |
11
+ | `delegatesFocus (readonly)` | | `false` | false | Element focus delegation.<br />Set to `false` and relies on native focusing. |
12
+ | `multiple` | `multiple` | `boolean` | false | Allow multiple selections |
13
+ | `renderer` | | `ListRenderer` | "new ListRenderer(this)" | Renderer used to render list item elements |
14
+ | `stateless` | `stateless` | `boolean` | false | Disable selections |
15
+ | `value` | `value` | `string` | "" | Returns the first selected item value.<br />Use `values` when multiple selection mode is enabled. |
16
+ | `values` | | `string[]` | [] | Returns a values collection of the currently<br />selected item values |
16
17
 
17
18
  ## Methods
18
19
 
@@ -1,3 +1,3 @@
1
- import type { CollectionComposer, DataItem } from '@refinitiv-ui/utils/lib/collection.js';
1
+ import type { CollectionComposer, DataItem } from '@refinitiv-ui/utils/collection.js';
2
2
  import type { ItemData } from '../../item';
3
3
  export declare type ListData<T extends DataItem = ItemData> = T[] | CollectionComposer<T> | null;
@@ -1,6 +1,6 @@
1
1
  import { JSXInterface } from '../jsx';
2
2
  import { ControlElement, CSSResultGroup, PropertyValues, TapEvent, TemplateResult } from '@refinitiv-ui/core';
3
- import { CollectionComposer, DataItem } from '@refinitiv-ui/utils/lib/collection.js';
3
+ import { CollectionComposer, DataItem } from '@refinitiv-ui/utils/collection.js';
4
4
  import type { ItemData } from '../item';
5
5
  import type { ListData } from './helpers/types';
6
6
  import { ListRenderer } from './helpers/list-renderer.js';
@@ -66,6 +66,10 @@ export declare class List<T extends DataItem = ItemData> extends ControlElement
66
66
  * Disable selections
67
67
  */
68
68
  stateless: boolean;
69
+ /**
70
+ * Aria indicating that list supports multiple selection
71
+ */
72
+ ariaMultiselectable: string;
69
73
  /**
70
74
  * Allow multiple selections
71
75
  */
package/lib/list/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { ControlElement, css, html, WarningNotice } 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';
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
- import { CollectionComposer } from '@refinitiv-ui/utils/lib/collection.js';
6
+ import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
7
7
  import { ListRenderer } from './helpers/list-renderer.js';
8
8
  import '../item/index.js';
9
9
  export { ListRenderer };
@@ -67,6 +67,10 @@ let List = class List extends ControlElement {
67
67
  * Disable selections
68
68
  */
69
69
  this.stateless = false;
70
+ /**
71
+ * Aria indicating that list supports multiple selection
72
+ */
73
+ this.ariaMultiselectable = 'false';
70
74
  /**
71
75
  * Allow multiple selections
72
76
  */
@@ -613,6 +617,9 @@ __decorate([
613
617
  __decorate([
614
618
  property({ type: Boolean })
615
619
  ], List.prototype, "stateless", void 0);
620
+ __decorate([
621
+ property({ type: String, reflect: true, attribute: 'aria-multiselectable' })
622
+ ], List.prototype, "ariaMultiselectable", void 0);
616
623
  __decorate([
617
624
  property({ type: Boolean })
618
625
  ], List.prototype, "multiple", void 0);
@@ -1,5 +1,5 @@
1
1
  import { ExtensibleFunction } from './extensible-function.js';
2
- import type { DataItem, CollectionComposer } from '@refinitiv-ui/utils/lib/collection.js';
2
+ import type { DataItem, CollectionComposer } from '@refinitiv-ui/utils/collection.js';
3
3
  /**
4
4
  * Render function interface
5
5
  * TODO: Move this to @refinitiv-ui/utils
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { BasicElement, html } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
3
+ import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
4
  import { VERSION } from '../version.js';
5
5
  /**
6
6
  * Global cache for loader template parts
@@ -1,4 +1,4 @@
1
- import type { CollectionItem } from '@refinitiv-ui/utils/lib/collection.js';
1
+ import type { CollectionItem } from '@refinitiv-ui/utils/collection.js';
2
2
  export declare type SelectionIndex = number | null;
3
3
  export declare type MultiInputEvents = 'item-added' | 'item-removed' | 'item-error';
4
4
  export declare type MultiInputData = MultiInputDataItem[];
@@ -1,11 +1,11 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { ControlElement, css, html } 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 { ifDefined } from '@refinitiv-ui/core/lib/directives/if-defined.js';
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
- import { CollectionComposer } from '@refinitiv-ui/utils/lib/collection.js';
8
+ import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
9
9
  import '../pill/index.js';
10
10
  import '../text-field/index.js';
11
11
  const hasChanged = (newVal, oldVal) => oldVal === undefined ? false : newVal !== oldVal;
@@ -445,7 +445,7 @@ let MultiInput = class MultiInput extends ControlElement {
445
445
  onPillClearsHandler(event) {
446
446
  const pill = event.target;
447
447
  const index = pill.getAttribute('index');
448
- if (index == null) {
448
+ if (index === null) {
449
449
  return;
450
450
  }
451
451
  const items = this.composer.queryItems(() => true);
@@ -1,9 +1,9 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { ResponsiveElement, html } 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';
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
- import { TimeoutTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
6
+ import { TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
7
7
  let NotificationTray = class NotificationTray extends ResponsiveElement {
8
8
  constructor() {
9
9
  super(...arguments);
@@ -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/lib/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
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 '../../icon/index.js';
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { JSXInterface } from '../jsx';
2
2
  import { FormFieldElement, CSSResultGroup, TemplateResult, PropertyValues, TapEvent } from '@refinitiv-ui/core';
3
- import { TemplateMap } from '@refinitiv-ui/core/lib/directives/template-map.js';
3
+ import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
4
4
  import '../icon/index.js';
5
5
  declare type SelectionDirection = 'forward' | 'backward' | 'none';
6
6
  declare enum Direction {
@@ -1,8 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { FormFieldElement, html, css, FocusedPropertyKey } 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';
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
  const NUMBER_PATTERN = '^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$';
@@ -658,6 +658,7 @@ let NumberField = class NumberField extends FormFieldElement {
658
658
  * @inheritDoc
659
659
  */
660
660
  /* istanbul ignore next */
661
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
661
662
  setSelectionRange(startSelection, endSelection, selectionDirection) {
662
663
  throw new Error('Failed to execute \'setSelectionRange\' on \'NumberField\': The element does not support selection.');
663
664
  }
@@ -1,8 +1,8 @@
1
1
  var OverlayBackdrop_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { BasicElement, css, html } 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';
4
+ import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
+ import { property } from '@refinitiv-ui/core/decorators/property.js';
6
6
  import { VERSION } from '../../version.js';
7
7
  /**
8
8
  * A private element to show backdrop for overlay
@@ -1,7 +1,7 @@
1
1
  var OverlayViewport_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { ResponsiveElement, css, html } from '@refinitiv-ui/core';
4
- import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
5
  import { VERSION } from '../../version.js';
6
6
  /**
7
7
  * A private element to find overlay size boundaries
@@ -1,11 +1,11 @@
1
1
  var Overlay_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { ResponsiveElement, html, css } 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';
4
+ import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
+ import { property } from '@refinitiv-ui/core/decorators/property.js';
6
6
  import { VERSION } from '../../version.js';
7
- import { MicroTaskRunner, AnimationTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
8
- import { isIE, isEdge } from '@refinitiv-ui/utils/lib/browser.js';
7
+ import { MicroTaskRunner, AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
8
+ import { isIE, isEdge } from '@refinitiv-ui/utils/browser.js';
9
9
  import { DEFAULT_ALIGN, DEFAULT_TARGET_STRATEGY } from '../helpers/types.js';
10
10
  import { valueOrZero, valueOrNull } from '../helpers/functions.js';
11
11
  import { applyLock } from '../managers/interaction-lock-manager.js';
@@ -1,4 +1,4 @@
1
- import { AnimationTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
1
+ import { AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
2
2
  import { getOverlays } from './zindex-manager.js';
3
3
  import { FocusableHelper } from '@refinitiv-ui/core';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { AnimationTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
1
+ import { AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
2
2
  import { getOverlays } from './zindex-manager.js';
3
3
  /**
4
4
  * Check if two arrays are shallow equal
@@ -1,4 +1,4 @@
1
- import { AnimationTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
1
+ import { AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
2
2
  import '../elements/overlay-viewport.js';
3
3
  /**
4
4
  * Default values for area info
@@ -1,4 +1,4 @@
1
- import { AfterRenderTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
1
+ import { AfterRenderTaskRunner } from '@refinitiv-ui/utils/async.js';
2
2
  export const ZIndex = 103; /* initial z-index to match Polymer. 102 is used for backdrop */
3
3
  /**
4
4
  * Z-index manager monitors z-indexes and ensures that the last opened/last
@@ -1,4 +1,4 @@
1
- import type { CollectionComposer } from '@refinitiv-ui/utils/lib/collection';
1
+ import type { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
2
2
  import type { OverlayMenu } from '../index';
3
3
  import type { Item, ItemData } from '../../item';
4
4
  export declare type NestedMenu = {
@@ -1,13 +1,13 @@
1
1
  var OverlayMenu_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { html, css, WarningNotice } 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 { ifDefined } from '@refinitiv-ui/core/lib/directives/if-defined.js';
4
+ import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
+ import { property } from '@refinitiv-ui/core/decorators/property.js';
6
+ import { ifDefined } from '@refinitiv-ui/core/directives/if-defined.js';
7
7
  import { VERSION } from '../version.js';
8
- import { AnimationTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
9
- import { CollectionComposer } from '@refinitiv-ui/utils/lib/collection.js';
10
- import { uuid } from '@refinitiv-ui/utils/lib/uuid.js';
8
+ import { AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
9
+ import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
10
+ import { uuid } from '@refinitiv-ui/utils/uuid.js';
11
11
  import '../icon/index.js';
12
12
  import '../item/index.js';
13
13
  import { Item } from '../item/index.js';
@@ -1,4 +1,4 @@
1
- import { AfterRenderTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
1
+ import { AfterRenderTaskRunner } from '@refinitiv-ui/utils/async.js';
2
2
  import { OverlayMenu } from '../index.js';
3
3
  import { getOverlays } from '../../overlay/managers/zindex-manager.js';
4
4
  /**
@@ -4,7 +4,7 @@ import '../button/index.js';
4
4
  import '../button-bar/index.js';
5
5
  import '../layout/index.js';
6
6
  import '../text-field/index.js';
7
- import '@refinitiv-ui/phrasebook/lib/locale/en/pagination.js';
7
+ import '@refinitiv-ui/phrasebook/locale/en/pagination.js';
8
8
  import { Translate } from '@refinitiv-ui/translate';
9
9
  /**
10
10
  * Used to control and navigate through multiple pages
@@ -164,7 +164,7 @@ export declare class Pagination extends BasicElement {
164
164
  */
165
165
  protected updated(changedProperties: PropertyValues): void;
166
166
  /**
167
- * Validate integer value
167
+ * Validate page value which returns true when value is valid
168
168
  * @param value value
169
169
  * @param warning show warning message when value is invalid
170
170
  * @param propName property name to show in warning message
@@ -1,15 +1,15 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { BasicElement, html, css, WarningNotice, DeprecationNotice } 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 { state } from '@refinitiv-ui/core/lib/decorators/state.js';
6
- import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
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 { query } from '@refinitiv-ui/core/decorators/query.js';
7
7
  import { VERSION } from '../version.js';
8
8
  import '../button/index.js';
9
9
  import '../button-bar/index.js';
10
10
  import '../layout/index.js';
11
11
  import '../text-field/index.js';
12
- import '@refinitiv-ui/phrasebook/lib/locale/en/pagination.js';
12
+ import '@refinitiv-ui/phrasebook/locale/en/pagination.js';
13
13
  import { translate } from '@refinitiv-ui/translate';
14
14
  const pageDeprecation = new DeprecationNotice('Property `page` is deprecated, use `value` instead.');
15
15
  const pageSizeDeprecation = new DeprecationNotice('Property `pageSize ` is deprecated, use `max` instead.');
@@ -295,7 +295,7 @@ let Pagination = class Pagination extends BasicElement {
295
295
  }
296
296
  }
297
297
  /**
298
- * Validate integer value
298
+ * Validate page value which returns true when value is valid
299
299
  * @param value value
300
300
  * @param warning show warning message when value is invalid
301
301
  * @param propName property name to show in warning message
@@ -362,15 +362,13 @@ let Pagination = class Pagination extends BasicElement {
362
362
  let newValue = parseInt(this.input.value, 10);
363
363
  // Reset input and boundary value into supported range.
364
364
  if (this.validatePage(this.input.value)) {
365
- if (newValue <= 0) {
366
- newValue = 1;
367
- }
368
- else if (newValue > this.internalMax) {
365
+ if (newValue > this.internalMax) {
369
366
  newValue = this.internalMax;
370
367
  }
371
368
  this.value = newValue.toString();
372
369
  }
373
- else if (!isNaN(newValue)) {
370
+ // When input value is invalid in case less than support range (value<1), then reset value = '1'.
371
+ else if (!isNaN(newValue) && newValue < 1) {
374
372
  this.value = '1';
375
373
  }
376
374
  if (this.value !== oldValue) {
@@ -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/lib/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
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
  * A container for components.
@@ -1,9 +1,9 @@
1
1
  import { JSXInterface } from '../jsx';
2
2
  import { PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
- import { TemplateMap } from '@refinitiv-ui/core/lib/directives/template-map.js';
3
+ import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
4
4
  import { TextField } from '../text-field/index.js';
5
5
  import '../icon/index.js';
6
- import '@refinitiv-ui/phrasebook/lib/locale/en/password-field.js';
6
+ import '@refinitiv-ui/phrasebook/locale/en/password-field.js';
7
7
  import { Translate } from '@refinitiv-ui/translate';
8
8
  /**
9
9
  * A form control element for password.
@@ -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/lib/decorators/custom-element.js';
4
- import { state } from '@refinitiv-ui/core/lib/decorators/state.js';
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/lib/locale/en/password-field.js';
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
  /**
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/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';
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
  /**
@@ -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/lib/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
- import { styleMap } from '@refinitiv-ui/core/lib/directives/style-map.js';
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,
@@ -60,11 +60,11 @@ export declare class RadioButton extends ControlElement {
60
60
  */
61
61
  disconnectedCallback(): void;
62
62
  /**
63
- * Invoked whenever the element is update
63
+ * Invoked whenever the element is updated
64
64
  * @param changedProperties changed properties
65
65
  * @returns {void}
66
66
  */
67
- protected update(changedProperties: PropertyValues): void;
67
+ protected updated(changedProperties: PropertyValues): void;
68
68
  /**
69
69
  * Invoked when the element is first updated
70
70
  * @param changedProperties changed properties
@@ -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/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';
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';
@@ -106,11 +106,11 @@ let RadioButton = class RadioButton extends ControlElement {
106
106
  super.disconnectedCallback();
107
107
  }
108
108
  /**
109
- * Invoked whenever the element is update
109
+ * Invoked whenever the element is updated
110
110
  * @param changedProperties changed properties
111
111
  * @returns {void}
112
112
  */
113
- update(changedProperties) {
113
+ updated(changedProperties) {
114
114
  if (this.isConnected && this.hasUpdated && changedProperties.has('name')) {
115
115
  applyRegistry(this, changedProperties.get('name'));
116
116
  }
@@ -118,7 +118,7 @@ let RadioButton = class RadioButton extends ControlElement {
118
118
  if (this.isConnected && this.hasUpdated && (changedProperties.has('checked') || (changedProperties.has('name')))) {
119
119
  this.manageGroupState();
120
120
  }
121
- super.update(changedProperties);
121
+ super.updated(changedProperties);
122
122
  }
123
123
  /**
124
124
  * Invoked when the element is first updated
@@ -167,7 +167,6 @@ let RadioButton = class RadioButton extends ControlElement {
167
167
  return;
168
168
  }
169
169
  switch (event.key) {
170
- case 'Enter':
171
170
  case ' ':
172
171
  case 'Spacebar':
173
172
  if (this.readonly) {
@@ -175,10 +174,14 @@ let RadioButton = class RadioButton extends ControlElement {
175
174
  }
176
175
  this.handleChangeChecked();
177
176
  break;
177
+ case 'Right':
178
+ case 'Down':
178
179
  case 'ArrowRight':
179
180
  case 'ArrowDown':
180
181
  this.navigateToSibling('next');
181
182
  break;
183
+ case 'Left':
184
+ case 'Up':
182
185
  case 'ArrowLeft':
183
186
  case 'ArrowUp':
184
187
  this.navigateToSibling('previous');
@@ -1,3 +1,3 @@
1
1
  import '@refinitiv-ui/elements/lib/tooltip/themes/halo/dark';
2
2
 
3
- elf.customStyles.define('ef-radio-button', ':host{margin:1px 0;vertical-align:middle;display:inline-flex;align-items:center;flex-wrap:nowrap;font-size:inherit;font-weight:inherit;touch-action:manipulation;--check-color:#6678FF;color:#ccc}:host(:focus){outline:0}:host [part=container]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:100%;background-color:#0d0d0d;transition:box-shadow 150ms,border-color 150ms;box-shadow:inset 0 0 0 rgba(0,0,0,.5);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;border:1px solid #404040;width:14px;height:14px}:host [part=check]{display:flex;justify-content:center;align-items:center;box-sizing:border-box;color:var(--check-color,#6678ff);border:none;background-color:currentColor;transform:none;border-radius:100%;margin:0;width:8px;height:8px}:host [part=label]{margin:0 7px;cursor:default}:host([disabled]) [part=check],:host([readonly]) [part=check]{color:var(--check-color,#ccc)}:host([disabled]) [part=check]{opacity:.5}:host([disabled][checked]) [part=check]{opacity:.5}:host([disabled]) [part=label]{opacity:.65}@media (-ms-high-contrast:none),(pointer:fine){:host(:focus) [part=container]{border-color:#334bff;box-shadow:0 0 0 #334bff}}:host(:not([readonly])){cursor:pointer}:host(:hover:not([checked]):not([readonly])) [part=container]{border-color:grey}:host(:hover:not([readonly])){color:#fff}:host([disabled]),:host([disabled]) [part=label]{opacity:.5}:host([checked]) [part=container]{border:1px solid #334bff}:host(:focus[readonly]:not([checked])) [part=container]{border-color:#404040}:host([focused=visible]){outline:#334bff solid 1px;outline-offset:2px}');
3
+ elf.customStyles.define('ef-radio-button', ':host{margin:1px 0;vertical-align:middle;display:inline-flex;align-items:center;flex-wrap:nowrap;font-size:inherit;font-weight:inherit;touch-action:manipulation;--check-color:#6678FF;color:#ccc}:host(:focus){outline:0}:host [part=container]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:100%;background-color:#0d0d0d;transition:box-shadow 150ms,border-color 150ms;box-shadow:inset 0 0 0 rgba(0,0,0,.5);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;border:1px solid #404040;width:14px;height:14px}:host [part=check]{display:flex;justify-content:center;align-items:center;box-sizing:border-box;color:var(--check-color,#6678ff);border:none;background-color:currentColor;transform:none;border-radius:100%;margin:0;width:8px;height:8px}:host [part=label]{margin:0 7px;cursor:default}:host([disabled]) [part=check],:host([readonly]) [part=check]{color:var(--check-color,#ccc)}:host([disabled]) [part=check]{opacity:.5}:host([disabled][checked]) [part=check]{opacity:.5}:host([disabled]) [part=label]{opacity:.65}@media (-ms-high-contrast:none),(pointer:fine){:host(:focus) [part=container]{border-color:#334bff;box-shadow:0 0 0 #334bff}}:host(:not([readonly])) [part=container]{cursor:pointer}:host(:hover:not([checked]):not([indeterminate]):not([readonly])) [part=container]{border-color:grey}:host(:hover:not([readonly])){color:#fff}:host([disabled]),:host([disabled]) [part=label]{opacity:.5}:host([checked]) [part=container]{border:1px solid #334bff}:host(:focus[readonly]:not([checked])) [part=container]{border-color:#404040}:host([focused=visible]){outline:#334bff solid 1px;outline-offset:2px}');
@@ -1,3 +1,3 @@
1
1
  import '@refinitiv-ui/elements/lib/tooltip/themes/halo/light';
2
2
 
3
- elf.customStyles.define('ef-radio-button', ':host{margin:1px 0;vertical-align:middle;display:inline-flex;align-items:center;flex-wrap:nowrap;font-size:inherit;font-weight:inherit;touch-action:manipulation;--check-color:#334BFF;color:#404040}:host(:focus){outline:0}:host [part=container]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:100%;background-color:#fff;transition:box-shadow 150ms,border-color 150ms;box-shadow:inset 0 0 0 rgba(0,0,0,.25);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;border:1px solid #595959;width:14px;height:14px}:host [part=check]{display:flex;justify-content:center;align-items:center;box-sizing:border-box;color:var(--check-color,#334bff);border:none;background-color:currentColor;transform:none;border-radius:100%;margin:0;width:8px;height:8px}:host [part=label]{margin:0 7px;cursor:default}:host([disabled]) [part=check],:host([readonly]) [part=check]{color:var(--check-color,#404040)}:host([disabled]) [part=check]{opacity:.5}:host([disabled][checked]) [part=check]{opacity:.5}:host([disabled]) [part=label]{opacity:.65}@media (-ms-high-contrast:none),(pointer:fine){:host(:focus) [part=container]{border-color:#334bff;box-shadow:0 0 0 #334bff}}:host(:not([readonly])){cursor:pointer}:host(:hover:not([checked]):not([readonly])) [part=container]{border-color:#0d0d0d}:host(:hover:not([readonly])){color:#0d0d0d}:host([disabled]),:host([disabled]) [part=label]{opacity:.5}:host([checked]) [part=container]{border:1px solid #334bff}:host(:focus[readonly]:not([checked])) [part=container]{border-color:#595959}:host([focused=visible]){outline:#334bff solid 1px;outline-offset:2px}');
3
+ elf.customStyles.define('ef-radio-button', ':host{margin:1px 0;vertical-align:middle;display:inline-flex;align-items:center;flex-wrap:nowrap;font-size:inherit;font-weight:inherit;touch-action:manipulation;--check-color:#334BFF;color:#404040}:host(:focus){outline:0}:host [part=container]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:100%;background-color:#fff;transition:box-shadow 150ms,border-color 150ms;box-shadow:inset 0 0 0 rgba(0,0,0,.25);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;border:1px solid #595959;width:14px;height:14px}:host [part=check]{display:flex;justify-content:center;align-items:center;box-sizing:border-box;color:var(--check-color,#334bff);border:none;background-color:currentColor;transform:none;border-radius:100%;margin:0;width:8px;height:8px}:host [part=label]{margin:0 7px;cursor:default}:host([disabled]) [part=check],:host([readonly]) [part=check]{color:var(--check-color,#404040)}:host([disabled]) [part=check]{opacity:.5}:host([disabled][checked]) [part=check]{opacity:.5}:host([disabled]) [part=label]{opacity:.65}@media (-ms-high-contrast:none),(pointer:fine){:host(:focus) [part=container]{border-color:#334bff;box-shadow:0 0 0 #334bff}}:host(:not([readonly])) [part=container]{cursor:pointer}:host(:hover:not([checked]):not([indeterminate]):not([readonly])) [part=container]{border-color:#0d0d0d}:host(:hover:not([readonly])){color:#0d0d0d}:host([disabled]),:host([disabled]) [part=label]{opacity:.5}:host([checked]) [part=container]{border:1px solid #334bff}:host(:focus[readonly]:not([checked])) [part=container]{border-color:#595959}:host([focused=visible]){outline:#334bff solid 1px;outline-offset:2px}');
@@ -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/lib/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
- import { queryAll } from '@refinitiv-ui/core/lib/decorators/query-all.js';
6
- import { repeat } from '@refinitiv-ui/core/lib/directives/repeat.js';
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/lib/directives/template-map.js';
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/lib/locale/en/search-field.js';
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/lib/decorators/custom-element.js';
4
- import { ifDefined } from '@refinitiv-ui/core/lib/directives/if-defined.js';
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/lib/locale/en/search-field.js';
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
  *
@@ -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/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 { styleMap } from '@refinitiv-ui/core/lib/directives/style-map.js';
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/lib/collection.js';
13
- import { TimeoutTaskRunner, AnimationTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
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,