@soleil-se/config-svelte 1.8.0 → 1.8.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
|
@@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [1.8.
|
|
8
|
+
## [1.8.2] - 2021-11-26
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Use nullish coalescing when determining option value in SelectField.
|
|
13
|
+
|
|
14
|
+
## [1.8.1] - 2021-11-19
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Empty mounting point of app since hydration is disabled.
|
|
19
|
+
|
|
20
|
+
## [1.8.0] - 2021-11-18
|
|
9
21
|
|
|
10
22
|
### Changed
|
|
11
23
|
|
|
@@ -25,13 +25,14 @@
|
|
|
25
25
|
|
|
26
26
|
[README](https://docs.soleilit.se/03.packages/@soleil&svelte-config/components/SelectField/)
|
|
27
27
|
-->
|
|
28
|
-
|
|
29
28
|
<div class="form-group">
|
|
30
29
|
<label class="control-label {required ? 'control-label--required' : ''}" for={id}>{label}</label>
|
|
31
30
|
<!-- svelte-ignore a11y-no-onchange -->
|
|
32
31
|
<select class="form-control" bind:value {id} {disabled} {required} {name} on:change={onChange}>
|
|
33
32
|
{#each options as option}
|
|
34
|
-
<option value={option.value
|
|
33
|
+
<option value={option.value ?? option}>
|
|
34
|
+
{option.label ?? option}
|
|
35
|
+
</option>
|
|
35
36
|
{/each}
|
|
36
37
|
</select>
|
|
37
38
|
<slot />
|
|
@@ -40,6 +41,6 @@
|
|
|
40
41
|
<style>
|
|
41
42
|
.form-control[disabled] {
|
|
42
43
|
background-color: white;
|
|
43
|
-
opacity:
|
|
44
|
+
opacity: 70%;
|
|
44
45
|
}
|
|
45
46
|
</style>
|
package/createConfigApp/index.js
CHANGED
|
@@ -3,8 +3,12 @@ import 'focus-visible';
|
|
|
3
3
|
export default function createConfigApp(App) {
|
|
4
4
|
window.setValues = (values) => {
|
|
5
5
|
window.CONFIG_VALUES = values;
|
|
6
|
+
|
|
7
|
+
const target = document.querySelector('#app_root') || document.querySelector('body');
|
|
8
|
+
target.innerHTML = '';
|
|
9
|
+
|
|
6
10
|
const app = new App({
|
|
7
|
-
target
|
|
11
|
+
target,
|
|
8
12
|
props: {
|
|
9
13
|
...window.CONFIG_APP_PROPS,
|
|
10
14
|
values,
|