@refinitiv-ui/elements 6.16.1-next.0 → 6.16.2

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 CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.16.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.16.1...@refinitiv-ui/elements@6.16.2) (2024-03-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **list, combobox, tree:** fix EvalError with CSP on renderer ([#1116](https://github.com/Refinitiv/refinitiv-ui/issues/1116)) ([1907f6d](https://github.com/Refinitiv/refinitiv-ui/commit/1907f6d854bbe6413694a2dc0bd88941d1023569))
11
+
12
+ ## [6.16.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.16.0...@refinitiv-ui/elements@6.16.1) (2024-03-12)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **datetime-picker:** validate values for weekendsonly and weekdaysonly ([#1118](https://github.com/Refinitiv/refinitiv-ui/issues/1118)) ([fec6814](https://github.com/Refinitiv/refinitiv-ui/commit/fec6814e77d703da9f4021052da9d4e2d678db46))
17
+
6
18
  # [6.16.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.15.5...@refinitiv-ui/elements@6.16.0) (2024-02-27)
7
19
 
8
20
  ### Features
@@ -266,7 +266,9 @@ let ComboBox = class ComboBox extends FormFieldElement {
266
266
  // Clone value arrays
267
267
  const newValues = values.slice(0, this.multiple ? values.length : 1);
268
268
  const oldValues = this.values.slice();
269
- // Create comparison strings to check for differences
269
+ // Create comparison strings to check for differences.
270
+ // i18n not required at this sort, and
271
+ // we just sort values to create signature values for comparison.
270
272
  const newComparison = newValues.sort().toString();
271
273
  const oldComparison = oldValues.sort().toString();
272
274
  // Update the selection state when found new value
@@ -138,13 +138,13 @@ let List = class List extends ControlElement {
138
138
  }
139
139
  else {
140
140
  // Clone value arrays
141
- const newValue = values.slice();
142
- const oldValue = this.values.slice();
143
- newValue.sort();
144
- oldValue.sort();
145
- // Create comparison strings to check for differences
146
- const newComparison = newValue.toString();
147
- const oldComparison = oldValue.toString();
141
+ const newValues = values.slice();
142
+ const oldValues = this.values.slice();
143
+ // Create comparison strings to check for differences.
144
+ // i18n not required at this sort, and
145
+ // we just sort values to create signature values for comparison.
146
+ const newComparison = newValues.sort().toString();
147
+ const oldComparison = oldValues.sort().toString();
148
148
  // Should we update the selection state?
149
149
  if (newComparison !== oldComparison) {
150
150
  this.clearSelection();
@@ -153,7 +153,7 @@ let List = class List extends ControlElement {
153
153
  matches.forEach((match) => this.composer.setItemPropertyValue(match, 'selected', true));
154
154
  return !this.multiple; // Only set the fist value if multiple is not enabled
155
155
  });
156
- this.requestUpdate('values', oldValue);
156
+ this.requestUpdate('values', oldValues);
157
157
  }
158
158
  }
159
159
  }
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.16.1-next.0';
1
+ export const VERSION = '6.16.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/elements",
3
- "version": "6.16.1-next.0",
3
+ "version": "6.16.2",
4
4
  "description": "Element Framework Elements",
5
5
  "author": "LSEG",
6
6
  "license": "Apache-2.0",
@@ -370,5 +370,5 @@
370
370
  "publishConfig": {
371
371
  "access": "public"
372
372
  },
373
- "gitHead": "0325a57b2c0ce3258a175bea5e8743e79c3a7ba4"
373
+ "gitHead": "88980e0f515a70a16cf868228e86bae25a3bb155"
374
374
  }