@soleil-se/config-svelte 1.0.2 → 1.0.4
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,7 +3,15 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
-
## [1.0.
|
|
6
|
+
## [1.0.4] - 2021-01-15
|
|
7
|
+
### Fixed
|
|
8
|
+
- ListSelector inifity loop.
|
|
9
|
+
|
|
10
|
+
## [1.0.3] - 2021-01-11
|
|
11
|
+
### Fixed
|
|
12
|
+
- Remove debug output.
|
|
13
|
+
|
|
14
|
+
## [1.0.2] - 2021-01-11
|
|
7
15
|
### Fixed
|
|
8
16
|
- Array destructuring not working in TextList for IE11.
|
|
9
17
|
- RadioGroup value not working in IE11.
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
selectable = Array.isArray(selectable) ? selectable.join(',') : selectable;
|
|
18
18
|
// SiteVision saves as an object, we need the value as comma separated string.
|
|
19
|
-
value = (values[name] ?? value).map((v) => v.value)
|
|
20
|
-
|
|
19
|
+
value = (values[name] ?? value).map((v) => v.value);
|
|
21
20
|
const onChange = (val) => {
|
|
22
|
-
value = val ? val.split(',') :
|
|
21
|
+
value = val ? val.split(',') : [];
|
|
23
22
|
dispatch('input', value);
|
|
24
23
|
dispatch('change', value);
|
|
25
24
|
};
|
|
@@ -29,7 +28,7 @@
|
|
|
29
28
|
|
|
30
29
|
// SiteVision doesn't provide any change or update events, MutationObserver workaround.
|
|
31
30
|
const observer = new MutationObserver(([{ attributeName, target }]) => {
|
|
32
|
-
if (attributeName === 'value' && target.value !== value) {
|
|
31
|
+
if (attributeName === 'value' && target.value !== value.join(',')) {
|
|
33
32
|
onChange(target.value);
|
|
34
33
|
}
|
|
35
34
|
});
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
data-component={type}
|
|
49
48
|
{required}
|
|
50
49
|
data-types={selectable}
|
|
51
|
-
{value}
|
|
50
|
+
value={value.join(',')}
|
|
52
51
|
/>
|
|
53
52
|
{#if disabled}
|
|
54
53
|
<div class="disabled-overlay" />
|