@soleil-se/config-svelte 1.0.3 → 1.1.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@ 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.1.0] - 2021-01-29
|
|
7
|
+
### Added
|
|
8
|
+
- `suffix` prop to NumberSpinner.
|
|
9
|
+
|
|
10
|
+
## [1.0.4] - 2021-01-15
|
|
11
|
+
### Fixed
|
|
12
|
+
- ListSelector inifity loop.
|
|
13
|
+
|
|
6
14
|
## [1.0.3] - 2021-01-11
|
|
7
15
|
### Fixed
|
|
8
16
|
- Remove debug output.
|
|
@@ -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" />
|
|
@@ -13,17 +13,22 @@
|
|
|
13
13
|
export let step = 1;
|
|
14
14
|
export let disabled = false;
|
|
15
15
|
export let readonly = false;
|
|
16
|
+
export let suffix;
|
|
16
17
|
export let value = min || 1;
|
|
17
18
|
value = name ? values[name] ?? value : value;
|
|
18
19
|
value = min && value < Number(min) ? min : value;
|
|
19
20
|
value = max && value > Number(max) ? max : value;
|
|
20
21
|
|
|
21
22
|
onMount(() => {
|
|
22
|
-
setupComponent(id).on('change', ({ target }) => {
|
|
23
|
+
const el = setupComponent(id).on('change', ({ target }) => {
|
|
23
24
|
value = Number(target.value);
|
|
24
25
|
dispatch('input', value);
|
|
25
26
|
dispatch('change', value);
|
|
26
|
-
});
|
|
27
|
+
})[0];
|
|
28
|
+
|
|
29
|
+
if (suffix) {
|
|
30
|
+
el.parentNode.querySelector('.input-group-addon').innerHTML = suffix;
|
|
31
|
+
}
|
|
27
32
|
});
|
|
28
33
|
</script>
|
|
29
34
|
|
|
@@ -62,4 +67,9 @@
|
|
|
62
67
|
background-color: rgba(255, 255, 255, 0.3);
|
|
63
68
|
cursor: not-allowed;
|
|
64
69
|
}
|
|
70
|
+
|
|
71
|
+
.form-group :global(.input-group-addon) {
|
|
72
|
+
background-color: #fff;
|
|
73
|
+
border-left: none;
|
|
74
|
+
}
|
|
65
75
|
</style>
|
package/package.json
CHANGED
package/yarn-error.log
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
C:\Program Files\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js install
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
C:\Program Files\PowerShell\7;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\nodejs;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft VS Code\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\PowerShell\7\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\Daniel Kling\AppData\Local\Microsoft\WindowsApps;C:\Users\Daniel Kling\AppData\Local\Yarn\bin;C:\Users\Daniel Kling\AppData\Roaming\npm
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.5
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
14.15.2
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
win32 x64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
SyntaxError: E:\dev\webapp-config\packages\svelte-config\package.json: Unexpected token } in JSON at position 463
|
|
18
|
+
at JSON.parse (<anonymous>)
|
|
19
|
+
at C:\Program Files (x86)\Yarn\lib\cli.js:1625:59
|
|
20
|
+
at Generator.next (<anonymous>)
|
|
21
|
+
at step (C:\Program Files (x86)\Yarn\lib\cli.js:310:30)
|
|
22
|
+
at C:\Program Files (x86)\Yarn\lib\cli.js:321:13
|
|
23
|
+
|
|
24
|
+
npm manifest:
|
|
25
|
+
{
|
|
26
|
+
"name": "@soleil-se/svelte-config",
|
|
27
|
+
"version": "1.0.4",
|
|
28
|
+
"main": "./index.js",
|
|
29
|
+
"module": "./index.js",
|
|
30
|
+
"svelte": "./index.js",
|
|
31
|
+
"author": "Daniel Kling",
|
|
32
|
+
"license": "UNLICENCED",
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"svelte": "^3.26.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"svelte": "^3.26.0"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"focus-visible": "^5.2.0",
|
|
42
|
+
"sortablejs": "^1.12.0",
|
|
43
|
+
"@duetds/date-picker": "^1.1.0",
|
|
44
|
+
"pikaday": "^1.8.2",
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/soleilit/webapp-config/tree/master/packages/svelte-config#readme"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
yarn manifest:
|
|
50
|
+
No manifest
|
|
51
|
+
|
|
52
|
+
Lockfile:
|
|
53
|
+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
54
|
+
# yarn lockfile v1
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
sortablejs@^1.10.2:
|
|
58
|
+
version "1.10.2"
|
|
59
|
+
resolved "https://registry.yarnpkg.com/sortablejs/-/sortablejs-1.10.2.tgz#6e40364d913f98b85a14f6678f92b5c1221f5290"
|
|
60
|
+
integrity sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A==
|
|
61
|
+
|
|
62
|
+
svelte@^3.24.1:
|
|
63
|
+
version "3.24.1"
|
|
64
|
+
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.24.1.tgz#aca364937dd1df27fe131e2a4c234acb6061db4b"
|
|
65
|
+
integrity sha512-OX/IBVUJSFo1rnznXdwf9rv6LReJ3qQ0PwRjj76vfUWyTfbHbR9OXqJBnUrpjyis2dwYcbT2Zm1DFjOOF1ZbbQ==
|