@bexis2/bexis2-core-ui 0.2.10 → 0.2.12
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/README.md +263 -207
- package/dist/components/Table/Table.svelte +85 -85
- package/dist/components/Table/TableFilter.svelte +109 -109
- package/dist/components/Table/TablePagination.svelte +38 -38
- package/dist/components/file/FileUploader.svelte +34 -34
- package/dist/components/form/Checkbox.svelte.d.ts +1 -1
- package/dist/components/form/DropdownKvP.svelte +5 -11
- package/dist/components/form/InputContainer.svelte +20 -19
- package/dist/components/form/MultiSelect.svelte +163 -178
- package/dist/components/form/TextArea.svelte +13 -13
- package/dist/components/form/TextInput.svelte +0 -2
- package/dist/components/page/Alert.svelte +28 -30
- package/dist/components/page/BackToTop.svelte +30 -30
- package/dist/components/page/Docs.svelte +22 -19
- package/dist/components/page/Docs.svelte.d.ts +1 -1
- package/dist/components/page/ErrorMessage.svelte +9 -0
- package/dist/components/page/ErrorMessage.svelte.d.ts +16 -0
- package/dist/components/page/Footer.svelte +5 -5
- package/dist/components/page/Header.svelte +5 -4
- package/dist/components/page/HelpPopUp.svelte +31 -25
- package/dist/components/page/HelpPopUp.svelte.d.ts +5 -12
- package/dist/components/page/Page.svelte +56 -66
- package/dist/components/page/Page.svelte.d.ts +2 -2
- package/dist/components/page/PageCaller.js +19 -21
- package/dist/components/page/Spinner.svelte +12 -13
- package/dist/components/page/Spinner.svelte.d.ts +1 -1
- package/dist/components/page/breadcrumb/Breadcrumb.svelte +19 -23
- package/dist/components/page/menu/Menu.svelte +25 -25
- package/dist/components/page/menu/MenuBar.svelte +7 -14
- package/dist/components/page/menu/MenuBar.svelte.d.ts +2 -2
- package/dist/components/page/menu/MenuDataCaller.js +10 -11
- package/dist/components/page/menu/MenuItem.svelte +9 -13
- package/dist/components/page/menu/MenuItem.svelte.d.ts +2 -1
- package/dist/components/page/menu/MenuSublist.svelte +18 -17
- package/dist/components/page/menu/MenuSublist.svelte.d.ts +2 -2
- package/dist/components/page/menu/SettingsBar.svelte +9 -14
- package/dist/components/page/menu/SettingsBar.svelte.d.ts +2 -2
- package/dist/css/core.ui.postcss +10 -7
- package/dist/css/themes/theme-bexis2.css +12 -13
- package/dist/index.d.ts +2 -3
- package/dist/index.js +5 -4
- package/dist/models/Models.js +0 -1
- package/dist/models/Page.d.ts +31 -0
- package/dist/services/BaseCaller.js +16 -21
- package/dist/stores/pageStores.d.ts +4 -4
- package/dist/stores/pageStores.js +27 -27
- package/package.json +2 -2
- package/src/lib/components/Table/Table.svelte +246 -246
- package/src/lib/components/Table/TableFilter.svelte +222 -222
- package/src/lib/components/Table/TablePagination.svelte +61 -61
- package/src/lib/components/Table/filter.ts +141 -141
- package/src/lib/components/file/FileUploader.svelte +184 -184
- package/src/lib/components/form/Checkbox.svelte +1 -1
- package/src/lib/components/form/DateInput.svelte +0 -1
- package/src/lib/components/form/DropdownKvP.svelte +5 -11
- package/src/lib/components/form/InputContainer.svelte +36 -44
- package/src/lib/components/form/MultiSelect.svelte +163 -178
- package/src/lib/components/form/NumberInput.svelte +3 -5
- package/src/lib/components/form/TextArea.svelte +26 -27
- package/src/lib/components/form/TextInput.svelte +2 -5
- package/src/lib/components/page/Alert.svelte +41 -45
- package/src/lib/components/page/BackToTop.svelte +30 -30
- package/src/lib/components/page/Docs.svelte +46 -44
- package/src/lib/components/page/ErrorMessage.svelte +10 -0
- package/src/lib/components/page/Footer.svelte +18 -22
- package/src/lib/components/page/Header.svelte +18 -21
- package/src/lib/components/page/HelpPopUp.svelte +72 -66
- package/src/lib/components/page/Page.svelte +96 -108
- package/src/lib/components/page/PageCaller.js +19 -21
- package/src/lib/components/page/Spinner.svelte +14 -16
- package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +31 -43
- package/src/lib/components/page/menu/Menu.svelte +40 -47
- package/src/lib/components/page/menu/MenuBar.svelte +20 -31
- package/src/lib/components/page/menu/MenuDataCaller.js +10 -11
- package/src/lib/components/page/menu/MenuItem.svelte +27 -33
- package/src/lib/components/page/menu/MenuSublist.svelte +43 -48
- package/src/lib/components/page/menu/SettingsBar.svelte +31 -40
- package/src/lib/css/core.ui.postcss +10 -7
- package/src/lib/css/themes/theme-bexis2.css +12 -13
- package/src/lib/index.ts +75 -76
- package/src/lib/models/Enums.ts +10 -11
- package/src/lib/models/Models.ts +113 -113
- package/src/lib/models/Page.ts +40 -41
- package/src/lib/services/BaseCaller.js +16 -21
- package/src/lib/stores/apiStores.ts +31 -32
- package/src/lib/stores/pageStores.ts +121 -126
|
@@ -1,178 +1,163 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import InputContainer from './InputContainer.svelte';
|
|
3
|
-
|
|
4
|
-
import Select from 'svelte-select';
|
|
5
|
-
import { onMount } from 'svelte';
|
|
6
|
-
|
|
7
|
-
export let source;
|
|
8
|
-
export let target;
|
|
9
|
-
export let id;
|
|
10
|
-
export let title;
|
|
11
|
-
export let itemId = 'value';
|
|
12
|
-
export let itemLabel = 'label';
|
|
13
|
-
export let itemGroup = 'group';
|
|
14
|
-
export let isMulti = true;
|
|
15
|
-
export let complexSource = false;
|
|
16
|
-
export let complexTarget = false;
|
|
17
|
-
export let required = false;
|
|
18
|
-
export let feedback = [''];
|
|
19
|
-
export let placeholder =
|
|
20
|
-
export let invalid = false;
|
|
21
|
-
export let loading = false;
|
|
22
|
-
export let help = false;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
$: value
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
value = target
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
hasError={invalid}
|
|
165
|
-
{loading}
|
|
166
|
-
on:change
|
|
167
|
-
on:input
|
|
168
|
-
on:focus
|
|
169
|
-
on:blur
|
|
170
|
-
on:clear
|
|
171
|
-
on:loaded
|
|
172
|
-
on:error
|
|
173
|
-
on:filter
|
|
174
|
-
on:hoverItem
|
|
175
|
-
/>
|
|
176
|
-
|
|
177
|
-
</InputContainer>
|
|
178
|
-
|
|
1
|
+
<script>
|
|
2
|
+
import InputContainer from './InputContainer.svelte';
|
|
3
|
+
|
|
4
|
+
import Select from 'svelte-select';
|
|
5
|
+
import { onMount } from 'svelte';
|
|
6
|
+
|
|
7
|
+
export let source;
|
|
8
|
+
export let target;
|
|
9
|
+
export let id;
|
|
10
|
+
export let title;
|
|
11
|
+
export let itemId = 'value';
|
|
12
|
+
export let itemLabel = 'label';
|
|
13
|
+
export let itemGroup = 'group';
|
|
14
|
+
export let isMulti = true;
|
|
15
|
+
export let complexSource = false;
|
|
16
|
+
export let complexTarget = false;
|
|
17
|
+
export let required = false;
|
|
18
|
+
export let feedback = [''];
|
|
19
|
+
export let placeholder = '-- Please select --';
|
|
20
|
+
export let invalid = false;
|
|
21
|
+
export let loading = false;
|
|
22
|
+
export let help = false;
|
|
23
|
+
|
|
24
|
+
let isLoaded = false;
|
|
25
|
+
|
|
26
|
+
$: value = null;
|
|
27
|
+
$: updateTarget(value);
|
|
28
|
+
|
|
29
|
+
let groupBy;
|
|
30
|
+
$: groupBy;
|
|
31
|
+
|
|
32
|
+
function updateTarget(selection) {
|
|
33
|
+
//different cases
|
|
34
|
+
//a) source is complex model is simple return array
|
|
35
|
+
if (complexSource && !complexTarget && isLoaded && isMulti) {
|
|
36
|
+
//console.log('a) source is complex model is simple');
|
|
37
|
+
|
|
38
|
+
target = [];
|
|
39
|
+
for (let i in selection) {
|
|
40
|
+
let item = selection[i];
|
|
41
|
+
target.push(item[itemId]);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (!complexSource && !complexTarget && isLoaded && isMulti) {
|
|
46
|
+
target = [];
|
|
47
|
+
for (let i in selection) {
|
|
48
|
+
target.push(selection[i].value);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (complexSource && complexTarget && isLoaded && isMulti) {
|
|
53
|
+
//console.log("both complex",selection);
|
|
54
|
+
target = selection;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (complexSource && complexTarget && isLoaded && !isMulti) {
|
|
58
|
+
target = selection;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!complexSource && !complexTarget && isLoaded && !isMulti) {
|
|
62
|
+
target = selection.value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (complexSource && !complexTarget && isLoaded && !isMulti) {
|
|
66
|
+
target = selection[itemLabel];
|
|
67
|
+
console.log('selection', selection);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// //console.log('selection ' + title, selection);
|
|
71
|
+
// //console.log('target ' + title, target);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
onMount(async () => {
|
|
75
|
+
console.log('on mount multiselect');
|
|
76
|
+
////console.log(source);
|
|
77
|
+
|
|
78
|
+
//a) source is complex model is simple
|
|
79
|
+
if (complexSource && !complexTarget && isMulti) {
|
|
80
|
+
let items = [];
|
|
81
|
+
// event.detail will be null unless isMulti is true and user has removed a single item
|
|
82
|
+
for (let i in target) {
|
|
83
|
+
let t = target[i];
|
|
84
|
+
items.push(source.find((item) => item[itemId] === t));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
isLoaded = true;
|
|
88
|
+
if (items.length > 0) {
|
|
89
|
+
value = items;
|
|
90
|
+
}
|
|
91
|
+
////console.log(value);
|
|
92
|
+
groupBy = (item) => item[itemGroup];
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (complexSource && complexTarget && isMulti) {
|
|
96
|
+
value = target;
|
|
97
|
+
isLoaded = true;
|
|
98
|
+
groupBy = (item) => item[itemGroup];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
//b) simple liust and simple model
|
|
102
|
+
if (!complexSource && !complexTarget && isMulti) {
|
|
103
|
+
////console.log("source", source);
|
|
104
|
+
////console.log("target",target);
|
|
105
|
+
isLoaded = true;
|
|
106
|
+
//set target only if its nit empty
|
|
107
|
+
if (target != null && target !== undefined && target != '') {
|
|
108
|
+
value = target;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (!isMulti) {
|
|
113
|
+
//console.log("onmount",complexSource,complexTarget,value,target)
|
|
114
|
+
if (!complexSource && !complexTarget) {
|
|
115
|
+
value = {
|
|
116
|
+
value: target,
|
|
117
|
+
label: target
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (complexSource && complexTarget) {
|
|
122
|
+
value = target;
|
|
123
|
+
groupBy = (item) => item[itemGroup];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (complexSource && !complexTarget) {
|
|
127
|
+
//value = target
|
|
128
|
+
console.log(
|
|
129
|
+
'this case is currently not supported (complexSource,complexTarget,isMulti)',
|
|
130
|
+
complexSource,
|
|
131
|
+
complexTarget,
|
|
132
|
+
isMulti
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
isLoaded = true;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
<InputContainer {id} label={title} {feedback} {required} {help}>
|
|
142
|
+
<Select
|
|
143
|
+
{id}
|
|
144
|
+
items={source}
|
|
145
|
+
{groupBy}
|
|
146
|
+
{itemId}
|
|
147
|
+
label={itemLabel}
|
|
148
|
+
multiple={isMulti}
|
|
149
|
+
bind:value
|
|
150
|
+
{placeholder}
|
|
151
|
+
hasError={invalid}
|
|
152
|
+
{loading}
|
|
153
|
+
on:change
|
|
154
|
+
on:input
|
|
155
|
+
on:focus
|
|
156
|
+
on:blur
|
|
157
|
+
on:clear
|
|
158
|
+
on:loaded
|
|
159
|
+
on:error
|
|
160
|
+
on:filter
|
|
161
|
+
on:hoverItem
|
|
162
|
+
/>
|
|
163
|
+
</InputContainer>
|
|
@@ -8,16 +8,16 @@ export let required = false;
|
|
|
8
8
|
export let feedback = [""];
|
|
9
9
|
export let placeholder = "";
|
|
10
10
|
export let help = false;
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
14
|
-
<textarea
|
|
15
|
-
{id}
|
|
16
|
-
class="textarea variant-form-material"
|
|
17
|
-
class:input-success={valid}
|
|
18
|
-
class:input-error={invalid}
|
|
19
|
-
bind:value
|
|
20
|
-
on:input
|
|
21
|
-
{placeholder}
|
|
22
|
-
/>
|
|
23
|
-
</InputContainer>
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<InputContainer {id} {label} {feedback} {required} {help}>
|
|
14
|
+
<textarea
|
|
15
|
+
{id}
|
|
16
|
+
class="textarea variant-form-material"
|
|
17
|
+
class:input-success={valid}
|
|
18
|
+
class:input-error={invalid}
|
|
19
|
+
bind:value
|
|
20
|
+
on:input
|
|
21
|
+
{placeholder}
|
|
22
|
+
/>
|
|
23
|
+
</InputContainer>
|
|
@@ -7,33 +7,31 @@ export let cssClass = "";
|
|
|
7
7
|
export let deleteBtn = true;
|
|
8
8
|
$:
|
|
9
9
|
show = true;
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<aside class="alert {cssClass}" transition:fade|local={{ duration: 100 }}>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{/if}
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
{#if show}
|
|
13
|
+
<aside class="alert {cssClass}" transition:fade|local={{ duration: 100 }}>
|
|
14
|
+
<!-- Icon -->
|
|
15
|
+
<!-- <div>(icon)</div> -->
|
|
16
|
+
<!-- Message -->
|
|
17
|
+
<div class="alert-message">
|
|
18
|
+
{#if title}
|
|
19
|
+
<h3 class="h3">{title}</h3>
|
|
20
|
+
{/if}
|
|
21
|
+
<p>
|
|
22
|
+
{message}
|
|
23
|
+
<slot />
|
|
24
|
+
</p>
|
|
25
|
+
</div>
|
|
26
|
+
<!-- Actions -->
|
|
27
|
+
<div class="alert-actions">
|
|
28
|
+
<slot name="actions" />
|
|
29
|
+
|
|
30
|
+
{#if deleteBtn}
|
|
31
|
+
<button class="btn hover:text-primary-100" on:click={() => (show = false)}>
|
|
32
|
+
<Fa icon={faXmark} />
|
|
33
|
+
</button>
|
|
34
|
+
{/if}
|
|
35
|
+
</div>
|
|
36
|
+
</aside>
|
|
37
|
+
{/if}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<svelte:window on:scroll={handleOnScroll} />
|
|
27
|
-
|
|
28
|
-
<div class="w-full items-center">
|
|
29
|
-
|
|
30
|
-
</div>
|
|
1
|
+
<script>
|
|
2
|
+
export let showOnPx = 150;
|
|
3
|
+
let hidden = true;
|
|
4
|
+
|
|
5
|
+
function goTop() {
|
|
6
|
+
document.body.scrollIntoView();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function scrollContainer() {
|
|
10
|
+
return document.documentElement || document.body;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function handleOnScroll() {
|
|
14
|
+
if (!scrollContainer()) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (scrollContainer().scrollTop > showOnPx) {
|
|
19
|
+
hidden = false;
|
|
20
|
+
} else {
|
|
21
|
+
hidden = true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<svelte:window on:scroll={handleOnScroll} />
|
|
27
|
+
|
|
28
|
+
<div class="w-full items-center">
|
|
29
|
+
<button class="btn ring back-to-top" on:click={goTop} class:hidden>Back to top</button>
|
|
30
|
+
</div>
|
|
@@ -12,22 +12,25 @@ const noteSettings = {
|
|
|
12
12
|
target: "noteTarget",
|
|
13
13
|
placement: "bottom"
|
|
14
14
|
};
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<div class="text-right p-2">
|
|
18
|
+
{#if note}
|
|
19
|
+
<span class="chip variant-soft hover:variant-filled" use:popup={noteSettings}>
|
|
20
|
+
<span><Fa icon={faQuestion} /></span>
|
|
21
|
+
</span>
|
|
22
|
+
|
|
23
|
+
<div
|
|
24
|
+
class="card p-4 variant-filled-primary w-60 z-50 text-left shadow-md"
|
|
25
|
+
data-popup="noteTarget"
|
|
26
|
+
>
|
|
27
|
+
{note}
|
|
28
|
+
</div>
|
|
29
|
+
{/if}
|
|
30
|
+
|
|
31
|
+
{#each links as link}
|
|
32
|
+
<span class="chip variant-soft hover:variant-filled" on:click={() => goTo(link.url, false)}>
|
|
33
|
+
<span>{link.label}</span>
|
|
34
|
+
</span>
|
|
35
|
+
{/each}
|
|
36
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
error: Error;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type ErrorMessageProps = typeof __propDef.props;
|
|
12
|
+
export type ErrorMessageEvents = typeof __propDef.events;
|
|
13
|
+
export type ErrorMessageSlots = typeof __propDef.slots;
|
|
14
|
+
export default class ErrorMessage extends SvelteComponentTyped<ErrorMessageProps, ErrorMessageEvents, ErrorMessageSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|