@bexis2/bexis2-core-ui 0.2.16 → 0.2.18
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 +303 -289
- package/dist/components/file/FileUploader.svelte +34 -34
- package/dist/components/form/MultiSelect.svelte +19 -13
- package/dist/components/page/Notification.svelte +8 -0
- package/dist/components/page/Notification.svelte.d.ts +14 -0
- package/dist/components/page/Page.svelte +2 -0
- package/dist/components/page/TablePlaceholder.svelte +16 -0
- package/dist/components/page/TablePlaceholder.svelte.d.ts +17 -0
- package/dist/components/page/menu/Menu.svelte +0 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +10 -0
- package/dist/models/Enums.d.ts +6 -0
- package/dist/models/Enums.js +8 -0
- package/dist/models/Models.d.ts +10 -1
- package/dist/models/Models.js +1 -1
- package/dist/stores/pageStores.d.ts +13 -2
- package/dist/stores/pageStores.js +106 -0
- package/package.json +101 -101
- package/src/lib/components/file/FileUploader.svelte +189 -184
- package/src/lib/components/form/MultiSelect.svelte +19 -13
- package/src/lib/components/page/Notification.svelte +12 -0
- package/src/lib/components/page/Page.svelte +2 -0
- package/src/lib/components/page/TablePlaceholder.svelte +17 -0
- package/src/lib/components/page/menu/Menu.svelte +0 -1
- package/src/lib/index.ts +99 -78
- package/src/lib/models/Enums.ts +40 -32
- package/src/lib/models/Models.ts +19 -3
- package/src/lib/stores/pageStores.ts +240 -121
package/README.md
CHANGED
|
@@ -1,289 +1,303 @@
|
|
|
1
|
-
# bexis-core-ui
|
|
2
|
-
## v0.2.
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- add
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
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
|
-
## v0.2.
|
|
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
|
-
## v0.1.
|
|
83
|
-
|
|
84
|
-
### update
|
|
85
|
-
|
|
86
|
-
- MultiSelect
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
## v0.1.
|
|
90
|
-
|
|
91
|
-
### update
|
|
92
|
-
|
|
93
|
-
- MultiSelect
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
## v0.1.
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
- Table
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
-
|
|
265
|
-
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
1
|
+
# bexis-core-ui
|
|
2
|
+
## v0.2.18
|
|
3
|
+
- Multiselect
|
|
4
|
+
- fix target bug with simple list and list of simple values
|
|
5
|
+
|
|
6
|
+
- CodeEditor component
|
|
7
|
+
|
|
8
|
+
## v0.2.17
|
|
9
|
+
- Multiselect
|
|
10
|
+
- fix target bind bug
|
|
11
|
+
|
|
12
|
+
## v0.2.16
|
|
13
|
+
- Table
|
|
14
|
+
- width - fit to screen
|
|
15
|
+
- Cell - drag to change the height
|
|
16
|
+
- define a height to scroll the content
|
|
17
|
+
- header allways on top whie scrolling
|
|
18
|
+
|
|
19
|
+
## v0.2.15
|
|
20
|
+
|
|
21
|
+
- Page - centered -> min width defined
|
|
22
|
+
- MultiSelect -> add clearable
|
|
23
|
+
|
|
24
|
+
## v0.2.14
|
|
25
|
+
|
|
26
|
+
- change fileUploaderModel to FileUploaderType
|
|
27
|
+
- remove AllFilesReadable, AsciiFileReaderInfo & LastModification from fileuploaderType
|
|
28
|
+
-
|
|
29
|
+
|
|
30
|
+
## v0.2.13
|
|
31
|
+
|
|
32
|
+
- add file reader types
|
|
33
|
+
- fileReaderInfoType,
|
|
34
|
+
- asciiFileReaderInfoType
|
|
35
|
+
- add file reader enums
|
|
36
|
+
- decimalCharacterType,orientationType,textMarkerType,textSeperatorType
|
|
37
|
+
- Table Change order of text filter options
|
|
38
|
+
- fix menu
|
|
39
|
+
- update navbar
|
|
40
|
+
|
|
41
|
+
## v0.2.12
|
|
42
|
+
|
|
43
|
+
- update libs
|
|
44
|
+
|
|
45
|
+
## v0.2.11
|
|
46
|
+
|
|
47
|
+
- Error Message
|
|
48
|
+
- Spinner Update
|
|
49
|
+
- postion default is center
|
|
50
|
+
- Surface color changed
|
|
51
|
+
- Page: contentPageLayoutType
|
|
52
|
+
|
|
53
|
+
## v0.2.9
|
|
54
|
+
|
|
55
|
+
- helpStore
|
|
56
|
+
- helpStoreType
|
|
57
|
+
- helpItemType
|
|
58
|
+
- Menu
|
|
59
|
+
- Update Page
|
|
60
|
+
|
|
61
|
+
## v0.2.1
|
|
62
|
+
|
|
63
|
+
> refactoring based on naming conventions (https://bexis2.github.io/bexis2-core-ui/code/naming/)
|
|
64
|
+
|
|
65
|
+
- fix issue in index.ts file for export components
|
|
66
|
+
|
|
67
|
+
## v0.2.0
|
|
68
|
+
|
|
69
|
+
> refactoring based on naming conventions (https://bexis2.github.io/bexis2-core-ui/code/naming/)
|
|
70
|
+
|
|
71
|
+
- add Help, helpStore
|
|
72
|
+
- update Page
|
|
73
|
+
|
|
74
|
+
## v0.1.13
|
|
75
|
+
|
|
76
|
+
### update
|
|
77
|
+
|
|
78
|
+
- MultiSelect
|
|
79
|
+
- loading flag
|
|
80
|
+
- isValid
|
|
81
|
+
|
|
82
|
+
## v0.1.12
|
|
83
|
+
|
|
84
|
+
### update
|
|
85
|
+
|
|
86
|
+
- MultiSelect
|
|
87
|
+
- pass all events from svelte select
|
|
88
|
+
|
|
89
|
+
## v0.1.11
|
|
90
|
+
|
|
91
|
+
### update
|
|
92
|
+
|
|
93
|
+
- MultiSelect
|
|
94
|
+
- grouped source also works now in case of complex source & return single value
|
|
95
|
+
|
|
96
|
+
## v0.1.10
|
|
97
|
+
|
|
98
|
+
### update
|
|
99
|
+
|
|
100
|
+
- MultiSelect
|
|
101
|
+
- set isMulti to false to get also a single value
|
|
102
|
+
|
|
103
|
+
## v0.1.9
|
|
104
|
+
|
|
105
|
+
### update
|
|
106
|
+
|
|
107
|
+
- MultiSelect
|
|
108
|
+
- pass events
|
|
109
|
+
- placeholder
|
|
110
|
+
|
|
111
|
+
## v0.1.8
|
|
112
|
+
|
|
113
|
+
### update
|
|
114
|
+
|
|
115
|
+
- MultiSelect
|
|
116
|
+
- add placeholder
|
|
117
|
+
- add id
|
|
118
|
+
- add ItemGroup
|
|
119
|
+
|
|
120
|
+
## v0.1.7
|
|
121
|
+
|
|
122
|
+
### update
|
|
123
|
+
|
|
124
|
+
- MultiSelect
|
|
125
|
+
- remove skeleton css classes from svelte select input
|
|
126
|
+
|
|
127
|
+
## v0.1.6
|
|
128
|
+
|
|
129
|
+
- remove massive console.logs
|
|
130
|
+
|
|
131
|
+
### update
|
|
132
|
+
|
|
133
|
+
- Table
|
|
134
|
+
- change submit to apply filter
|
|
135
|
+
- show emtpy table if not data is in the store
|
|
136
|
+
- add option of including custom rendering component
|
|
137
|
+
|
|
138
|
+
## v0.1.5
|
|
139
|
+
|
|
140
|
+
### update
|
|
141
|
+
|
|
142
|
+
- MultiSelect
|
|
143
|
+
- isTargetComplex -> complexTarget
|
|
144
|
+
- isComplex -> complexSource
|
|
145
|
+
- DropdownKVP
|
|
146
|
+
- targetIsComplex -> complexTarget
|
|
147
|
+
|
|
148
|
+
## v0.1.4
|
|
149
|
+
|
|
150
|
+
> test for deploy
|
|
151
|
+
|
|
152
|
+
## v0.1.3
|
|
153
|
+
|
|
154
|
+
> test table
|
|
155
|
+
|
|
156
|
+
## v0.1.2
|
|
157
|
+
|
|
158
|
+
### update
|
|
159
|
+
|
|
160
|
+
- MultiSelect
|
|
161
|
+
- return complex type is available now
|
|
162
|
+
|
|
163
|
+
## v0.1.1
|
|
164
|
+
|
|
165
|
+
### update
|
|
166
|
+
|
|
167
|
+
- Page
|
|
168
|
+
- add menu (beta)
|
|
169
|
+
|
|
170
|
+
## v.0.1.0
|
|
171
|
+
|
|
172
|
+
### add
|
|
173
|
+
|
|
174
|
+
#### types
|
|
175
|
+
|
|
176
|
+
- ListItem
|
|
177
|
+
- KvP
|
|
178
|
+
|
|
179
|
+
#### enum
|
|
180
|
+
|
|
181
|
+
- position
|
|
182
|
+
|
|
183
|
+
### update
|
|
184
|
+
|
|
185
|
+
#### components
|
|
186
|
+
|
|
187
|
+
- DropdownKVP
|
|
188
|
+
- return of the target to complex or id only
|
|
189
|
+
- TextInput, TextArea, Number
|
|
190
|
+
- add placeholder
|
|
191
|
+
|
|
192
|
+
## v0.0.31
|
|
193
|
+
|
|
194
|
+
### add
|
|
195
|
+
|
|
196
|
+
#### components
|
|
197
|
+
|
|
198
|
+
- Alert
|
|
199
|
+
|
|
200
|
+
### updates
|
|
201
|
+
|
|
202
|
+
#### components
|
|
203
|
+
|
|
204
|
+
- Spinner
|
|
205
|
+
- label
|
|
206
|
+
- color
|
|
207
|
+
- position
|
|
208
|
+
- Table
|
|
209
|
+
- Date filters
|
|
210
|
+
- Configuration for complex types
|
|
211
|
+
- Custom event dispatcher
|
|
212
|
+
- Updated docs.
|
|
213
|
+
- Disabling of filters
|
|
214
|
+
- Disabling of sorting
|
|
215
|
+
|
|
216
|
+
### fixes:
|
|
217
|
+
|
|
218
|
+
#### table
|
|
219
|
+
|
|
220
|
+
- Arrow in pageSize dropdown.
|
|
221
|
+
- Bug with number filter not working on zero values.
|
|
222
|
+
- Table of Contents on the right sidebar.
|
|
223
|
+
|
|
224
|
+
## v0.0.29
|
|
225
|
+
|
|
226
|
+
### add
|
|
227
|
+
|
|
228
|
+
#### types
|
|
229
|
+
|
|
230
|
+
- linkType
|
|
231
|
+
|
|
232
|
+
## v0.0.28
|
|
233
|
+
|
|
234
|
+
### add
|
|
235
|
+
|
|
236
|
+
#### components
|
|
237
|
+
|
|
238
|
+
- Page
|
|
239
|
+
|
|
240
|
+
## v0.0.27
|
|
241
|
+
|
|
242
|
+
### add
|
|
243
|
+
|
|
244
|
+
#### components
|
|
245
|
+
|
|
246
|
+
- Table
|
|
247
|
+
- TableFilter
|
|
248
|
+
- cloumnFilter
|
|
249
|
+
- searchFilter
|
|
250
|
+
|
|
251
|
+
#### types
|
|
252
|
+
|
|
253
|
+
- TableConfig
|
|
254
|
+
- Columns
|
|
255
|
+
- Column
|
|
256
|
+
- inputType
|
|
257
|
+
|
|
258
|
+
<hr/>
|
|
259
|
+
|
|
260
|
+
## v0.0.26
|
|
261
|
+
|
|
262
|
+
### updates
|
|
263
|
+
|
|
264
|
+
- fix bugs in checkbox list
|
|
265
|
+
- fix bugs in multi select
|
|
266
|
+
|
|
267
|
+
<hr/>
|
|
268
|
+
|
|
269
|
+
## v0.0.25
|
|
270
|
+
|
|
271
|
+
### adds
|
|
272
|
+
|
|
273
|
+
#### components
|
|
274
|
+
|
|
275
|
+
- Spinner
|
|
276
|
+
- FileUploader
|
|
277
|
+
- fileInfoType
|
|
278
|
+
- FileIcon
|
|
279
|
+
-
|
|
280
|
+
|
|
281
|
+
#### types
|
|
282
|
+
|
|
283
|
+
- fileUploaderModel
|
|
284
|
+
|
|
285
|
+
<hr/>
|
|
286
|
+
|
|
287
|
+
## v0.0.23
|
|
288
|
+
|
|
289
|
+
### updates
|
|
290
|
+
|
|
291
|
+
- update bexis 2 theme
|
|
292
|
+
|
|
293
|
+
### adds
|
|
294
|
+
|
|
295
|
+
- Checkbox
|
|
296
|
+
- CheckboxKVPList
|
|
297
|
+
- CheckboxList
|
|
298
|
+
- DateInput
|
|
299
|
+
- DropdownKVP
|
|
300
|
+
- MultiSelect
|
|
301
|
+
- NumberInput
|
|
302
|
+
- TextArea
|
|
303
|
+
- TextInput
|
|
@@ -88,37 +88,37 @@ async function handleSubmit() {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<form on:submit|preventDefault={handleSubmit}>
|
|
94
|
-
{#if model}
|
|
95
|
-
<!--if model exist -->
|
|
96
|
-
<div>
|
|
97
|
-
<DropZone
|
|
98
|
-
on:drop={handleFilesSelect}
|
|
99
|
-
accept={model.accept}
|
|
100
|
-
multiple={model.multiple}
|
|
101
|
-
{maxSize}
|
|
102
|
-
>
|
|
103
|
-
<b style="font-size:xx-large"><Fa icon={faFileUpload} /></b>
|
|
104
|
-
<span
|
|
105
|
-
><b>Drag 'n' drop some files here, or click to select files</b>
|
|
106
|
-
<b>max file : {model.maxSize} mb</b></span
|
|
107
|
-
>
|
|
108
|
-
<p>
|
|
109
|
-
{#if model.accept}
|
|
110
|
-
{#each model.accept as ext}
|
|
111
|
-
{ext} ,
|
|
112
|
-
{/each}
|
|
113
|
-
{/if}
|
|
114
|
-
</p>
|
|
115
|
-
</DropZone>
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
<button id={submitBt} color="primary" style="display:none"><Fa icon={faSave} /></button>
|
|
119
|
-
{:else}
|
|
120
|
-
<!-- while data is not loaded show a loading information -->
|
|
121
|
-
|
|
122
|
-
<Spinner />
|
|
123
|
-
{/if}
|
|
124
|
-
</form>
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<form on:submit|preventDefault={handleSubmit}>
|
|
94
|
+
{#if model}
|
|
95
|
+
<!--if model exist -->
|
|
96
|
+
<div>
|
|
97
|
+
<DropZone
|
|
98
|
+
on:drop={handleFilesSelect}
|
|
99
|
+
accept={model.accept}
|
|
100
|
+
multiple={model.multiple}
|
|
101
|
+
{maxSize}
|
|
102
|
+
>
|
|
103
|
+
<b style="font-size:xx-large"><Fa icon={faFileUpload} /></b>
|
|
104
|
+
<span
|
|
105
|
+
><b>Drag 'n' drop some files here, or click to select files</b>
|
|
106
|
+
<b>max file : {model.maxSize} mb</b></span
|
|
107
|
+
>
|
|
108
|
+
<p>
|
|
109
|
+
{#if model.accept}
|
|
110
|
+
{#each model.accept as ext}
|
|
111
|
+
{ext} ,
|
|
112
|
+
{/each}
|
|
113
|
+
{/if}
|
|
114
|
+
</p>
|
|
115
|
+
</DropZone>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<button id={submitBt} color="primary" style="display:none"><Fa icon={faSave} /></button>
|
|
119
|
+
{:else}
|
|
120
|
+
<!-- while data is not loaded show a loading information -->
|
|
121
|
+
|
|
122
|
+
<Spinner />
|
|
123
|
+
{/if}
|
|
124
|
+
</form>
|