@enki-tek/fms-web-components 0.0.82 → 0.0.84
Sign up to get free protection for your applications and to get access to all the features.
- package/components/EnkiTable/EnkiTable.svelte +2 -1
- package/components/EnkiTable/Table.scss +2 -1
- package/components/EnkiTable/TableBody.svelte +2 -1
- package/components/EnkiTable/TableCell.svelte +2 -1
- package/components/EnkiTable/TableHead.svelte +2 -1
- package/components/EnkiTable/TableHeadCell.svelte +2 -1
- package/components/EnkiTable/TableRow.svelte +2 -1
- package/components/NotFound/NotFound.scss +33 -0
- package/components/NotFound/NotFound.stories.d.ts +30 -0
- package/components/NotFound/NotFound.stories.js +19 -0
- package/components/NotFound/NotFound.svelte +624 -0
- package/components/NotFound/NotFound.svelte.d.ts +33 -0
- package/components/Toast/Toast.svelte +35 -37
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/package.json +4 -1
@@ -0,0 +1,33 @@
|
|
1
|
+
@import '../variable.scss';
|
2
|
+
|
3
|
+
%commonFontStyle {
|
4
|
+
color: $black;
|
5
|
+
font-size: 15px;
|
6
|
+
font-style: normal;
|
7
|
+
font-weight: 400;
|
8
|
+
line-height: normal;
|
9
|
+
}
|
10
|
+
|
11
|
+
:global(.not-found-section) {
|
12
|
+
width: 100%;
|
13
|
+
height: 100%;
|
14
|
+
margin: 3rem 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
:global(.not-found-section p) {
|
18
|
+
margin-bottom: 0;
|
19
|
+
font-family: $bodyFonts;
|
20
|
+
display: flex;
|
21
|
+
align-items: center;
|
22
|
+
@extend %commonFontStyle;
|
23
|
+
}
|
24
|
+
|
25
|
+
:global(.not-found-section p:nth-child(odd)) {
|
26
|
+
@extend %commonFontStyle;
|
27
|
+
font-size: 13px;
|
28
|
+
}
|
29
|
+
|
30
|
+
:global(.not-found-section i) {
|
31
|
+
@extend %commonFontStyle;
|
32
|
+
font-size: 23px;
|
33
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
export const title: string;
|
3
|
+
export { NotFound as component };
|
4
|
+
export const tags: string[];
|
5
|
+
export namespace argTypes {
|
6
|
+
export namespace title_1 {
|
7
|
+
namespace control {
|
8
|
+
const type: string;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
export { title_1 as title };
|
12
|
+
export namespace subtitle {
|
13
|
+
export namespace control_1 {
|
14
|
+
const type_1: string;
|
15
|
+
export { type_1 as type };
|
16
|
+
}
|
17
|
+
export { control_1 as control };
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
export default _default;
|
22
|
+
export namespace Default {
|
23
|
+
namespace args {
|
24
|
+
const title_2: string;
|
25
|
+
export { title_2 as title };
|
26
|
+
const subtitle_1: string;
|
27
|
+
export { subtitle_1 as subtitle };
|
28
|
+
}
|
29
|
+
}
|
30
|
+
import NotFound from "./NotFound.svelte";
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import NotFound from './NotFound.svelte';
|
2
|
+
|
3
|
+
export default {
|
4
|
+
title: 'FMS/NotFound',
|
5
|
+
component: NotFound,
|
6
|
+
tags:['autodocs'],
|
7
|
+
argTypes: {
|
8
|
+
title: { control: { type: 'text' } },
|
9
|
+
subtitle: { control: { type: 'text' } }
|
10
|
+
}
|
11
|
+
};
|
12
|
+
|
13
|
+
|
14
|
+
export const Default = {
|
15
|
+
args:{
|
16
|
+
title:'No records found',
|
17
|
+
subtitle:'Try adjusting your search criteria'
|
18
|
+
}
|
19
|
+
};
|
@@ -0,0 +1,624 @@
|
|
1
|
+
<script>
|
2
|
+
import { Col, Row } from 'sveltestrap';
|
3
|
+
import { Icon } from 'sveltestrap';
|
4
|
+
|
5
|
+
export let title='';
|
6
|
+
export let subtitle='';
|
7
|
+
</script>
|
8
|
+
|
9
|
+
<Row class=" not-found-section">
|
10
|
+
<Col class="d-flex flex-column justify-content-center align-items-center ">
|
11
|
+
<div class="d-flex mb-2">
|
12
|
+
<Icon name="folder-x" class="me-2" />
|
13
|
+
<slot>
|
14
|
+
{#if title}
|
15
|
+
<p>{title}</p>
|
16
|
+
{:else}
|
17
|
+
<slot name="title" />
|
18
|
+
{/if}
|
19
|
+
</slot>
|
20
|
+
</div>
|
21
|
+
<div class="d-flex">
|
22
|
+
<slot>
|
23
|
+
{#if subtitle}
|
24
|
+
<p>{subtitle}</p>
|
25
|
+
{:else}
|
26
|
+
<slot name="subtitle" />
|
27
|
+
{/if}
|
28
|
+
</slot>
|
29
|
+
</div>
|
30
|
+
</Col>
|
31
|
+
</Row>
|
32
|
+
|
33
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
34
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
35
|
+
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
36
|
+
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
37
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
38
|
+
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
39
|
+
:global(.not-found-section i), :global(.not-found-section p:nth-child(odd)), :global(.not-found-section p) {
|
40
|
+
color: #000000;
|
41
|
+
font-size: 15px;
|
42
|
+
font-style: normal;
|
43
|
+
font-weight: 400;
|
44
|
+
line-height: normal;
|
45
|
+
}
|
46
|
+
:global(.not-found-section) {
|
47
|
+
width: 100%;
|
48
|
+
height: 100%;
|
49
|
+
margin: 3rem 0;
|
50
|
+
}
|
51
|
+
:global(.not-found-section p) {
|
52
|
+
margin-bottom: 0;
|
53
|
+
font-family: Roboto;
|
54
|
+
display: flex;
|
55
|
+
align-items: center;
|
56
|
+
}
|
57
|
+
:global(.not-found-section p:nth-child(odd)) {
|
58
|
+
font-size: 13px;
|
59
|
+
}
|
60
|
+
:global(.not-found-section i) {
|
61
|
+
font-size: 23px;
|
62
|
+
}
|
63
|
+
:global(.ebg-none) {
|
64
|
+
background-color: #ffffff !important;
|
65
|
+
}
|
66
|
+
:global(.ebg-white) {
|
67
|
+
background-color: #ffffff;
|
68
|
+
}
|
69
|
+
:global(.ebg-secondary, .eactive-secondary:active, .ehover-secondary:hover) {
|
70
|
+
background-color: #3AC82E;
|
71
|
+
}
|
72
|
+
:global(.ebg-secondaryDark, .eactive-secondaryDark:active, .ehover-secondaryDark:hover) {
|
73
|
+
background-color: #00A855;
|
74
|
+
}
|
75
|
+
:global(.ebg-secondaryLight, .eactive-secondaryLight:active, .ehover-secondaryLight:hover) {
|
76
|
+
background-color: #CBFFC7;
|
77
|
+
}
|
78
|
+
:global(.ebg-primary) {
|
79
|
+
background-color: #00AEE5;
|
80
|
+
}
|
81
|
+
:global(.ebg-primaryDark) {
|
82
|
+
background-color: #007FD8;
|
83
|
+
}
|
84
|
+
:global(.ebg-primaryLight) {
|
85
|
+
background-color: #CEF3FF;
|
86
|
+
}
|
87
|
+
:global(.ebg-danger) {
|
88
|
+
background-color: #FE4747;
|
89
|
+
}
|
90
|
+
:global(.ebg-dangerDark) {
|
91
|
+
background-color: #B02A37;
|
92
|
+
}
|
93
|
+
:global(.ebg-dangerLight) {
|
94
|
+
background-color: #f8d7da;
|
95
|
+
}
|
96
|
+
:global(.ebg-warning) {
|
97
|
+
background-color: #FFBA3A;
|
98
|
+
}
|
99
|
+
:global(.ebg-warningDark) {
|
100
|
+
background-color: #997404;
|
101
|
+
color: #ffffff !important;
|
102
|
+
}
|
103
|
+
:global(.ebg-warningLight) {
|
104
|
+
background-color: #FFF3CD;
|
105
|
+
}
|
106
|
+
:global(.ebg-info) {
|
107
|
+
background-color: #0DCAF0;
|
108
|
+
}
|
109
|
+
:global(.ebg-infoDark) {
|
110
|
+
background-color: #087990;
|
111
|
+
}
|
112
|
+
:global(.ebg-infoLight) {
|
113
|
+
background-color: #9EEAF9;
|
114
|
+
}
|
115
|
+
:global(.ebg-success) {
|
116
|
+
background-color: #00A96B;
|
117
|
+
}
|
118
|
+
:global(.ebg-successDark) {
|
119
|
+
background-color: #146C43;
|
120
|
+
}
|
121
|
+
:global(.ebg-successLight) {
|
122
|
+
background-color: #D1E7DD;
|
123
|
+
}
|
124
|
+
:global(.ebg-gray100) {
|
125
|
+
background-color: #F8F9FA;
|
126
|
+
}
|
127
|
+
:global(.ebg-gray200) {
|
128
|
+
background-color: #E9ECEF;
|
129
|
+
}
|
130
|
+
:global(.ebg-gray300) {
|
131
|
+
background-color: #DEE2E6;
|
132
|
+
}
|
133
|
+
:global(.ebg-gray400) {
|
134
|
+
background-color: #CED4DA;
|
135
|
+
}
|
136
|
+
:global(.ebg-gray500) {
|
137
|
+
background-color: #adb5bd;
|
138
|
+
}
|
139
|
+
:global(.ebg-gray600) {
|
140
|
+
background-color: #6C757D;
|
141
|
+
}
|
142
|
+
:global(.ebg-gray700) {
|
143
|
+
background-color: #495057;
|
144
|
+
}
|
145
|
+
:global(.ebg-gray800) {
|
146
|
+
background-color: #343A40;
|
147
|
+
}
|
148
|
+
:global(.ebg-gray900) {
|
149
|
+
background-color: #212529;
|
150
|
+
}
|
151
|
+
:global(.ebg-green100) {
|
152
|
+
background-color: #D1E7DD;
|
153
|
+
}
|
154
|
+
:global(.ebg-green200) {
|
155
|
+
background-color: #A3CFBB;
|
156
|
+
}
|
157
|
+
:global(.ebg-green300) {
|
158
|
+
background-color: #75B798;
|
159
|
+
}
|
160
|
+
:global(.ebg-green400) {
|
161
|
+
background-color: #479F76;
|
162
|
+
}
|
163
|
+
:global(.ebg-green500) {
|
164
|
+
background-color: #198754;
|
165
|
+
}
|
166
|
+
:global(.ebg-green600) {
|
167
|
+
background-color: #146C43;
|
168
|
+
}
|
169
|
+
:global(.ebg-green700) {
|
170
|
+
background-color: #0F5132;
|
171
|
+
}
|
172
|
+
:global(.ebg-green800) {
|
173
|
+
background-color: #0A3622;
|
174
|
+
}
|
175
|
+
:global(.ebg-green900) {
|
176
|
+
background-color: #051B11;
|
177
|
+
}
|
178
|
+
:global(.ebg-red100) {
|
179
|
+
background-color: #F8D7DA;
|
180
|
+
}
|
181
|
+
:global(.ebg-red200) {
|
182
|
+
background-color: #F1AEB5;
|
183
|
+
}
|
184
|
+
:global(.ebg-red300) {
|
185
|
+
background-color: #EA868F;
|
186
|
+
}
|
187
|
+
:global(.ebg-red400) {
|
188
|
+
background-color: #E35D6A;
|
189
|
+
}
|
190
|
+
:global(.ebg-red500) {
|
191
|
+
background-color: #DC3545;
|
192
|
+
}
|
193
|
+
:global(.ebg-red600) {
|
194
|
+
background-color: #B02A37;
|
195
|
+
}
|
196
|
+
:global(.ebg-red700) {
|
197
|
+
background-color: #842029;
|
198
|
+
}
|
199
|
+
:global(.ebg-red800) {
|
200
|
+
background-color: #58151C;
|
201
|
+
}
|
202
|
+
:global(.ebg-red900) {
|
203
|
+
background-color: #2C0B0E;
|
204
|
+
}
|
205
|
+
:global(.ebg-yellow100) {
|
206
|
+
background-color: #FFF3CD;
|
207
|
+
}
|
208
|
+
:global(.ebg-yellow200) {
|
209
|
+
background-color: #FFE69C;
|
210
|
+
}
|
211
|
+
:global(.ebg-yellow300) {
|
212
|
+
background-color: #FFDA6A;
|
213
|
+
}
|
214
|
+
:global(.ebg-yellow400) {
|
215
|
+
background-color: #FFCD39;
|
216
|
+
}
|
217
|
+
:global(.ebg-yellow500) {
|
218
|
+
background-color: #FFC107;
|
219
|
+
}
|
220
|
+
:global(.ebg-yellow600) {
|
221
|
+
background-color: #CC9A06;
|
222
|
+
}
|
223
|
+
:global(.ebg-yellow700) {
|
224
|
+
background-color: #997404;
|
225
|
+
}
|
226
|
+
:global(.ebg-yellow800) {
|
227
|
+
background-color: #664D03;
|
228
|
+
}
|
229
|
+
:global(.ebg-yellow900) {
|
230
|
+
background-color: #332701;
|
231
|
+
}
|
232
|
+
:global(.ebg-cyan100) {
|
233
|
+
background-color: #CFF4FC;
|
234
|
+
}
|
235
|
+
:global(.ebg-cyan200) {
|
236
|
+
background-color: #9EEAF9;
|
237
|
+
}
|
238
|
+
:global(.ebg-cyan300) {
|
239
|
+
background-color: #6EDFF6;
|
240
|
+
}
|
241
|
+
:global(.ebg-cyan400) {
|
242
|
+
background-color: #3DD5F3;
|
243
|
+
}
|
244
|
+
:global(.ebg-cyan500) {
|
245
|
+
background-color: #0DCAF0;
|
246
|
+
}
|
247
|
+
:global(.ebg-cyan600) {
|
248
|
+
background-color: #0AA2C0;
|
249
|
+
}
|
250
|
+
:global(.ebg-cyan700) {
|
251
|
+
background-color: #087990;
|
252
|
+
}
|
253
|
+
:global(.ebg-cyan800) {
|
254
|
+
background-color: #055160;
|
255
|
+
}
|
256
|
+
:global(.ebg-cyan900) {
|
257
|
+
background-color: #032830;
|
258
|
+
}
|
259
|
+
.etext-white {
|
260
|
+
color: #ffffff;
|
261
|
+
}
|
262
|
+
:global(.etext-dark) {
|
263
|
+
color: #000000;
|
264
|
+
}
|
265
|
+
:global(.etext-secondary) {
|
266
|
+
color: #3AC82E;
|
267
|
+
}
|
268
|
+
:global(.etext-secondaryDark) {
|
269
|
+
color: #00A855;
|
270
|
+
}
|
271
|
+
:global(.etext-secondaryLight) {
|
272
|
+
color: #CBFFC7;
|
273
|
+
}
|
274
|
+
:global(.etext-primary) {
|
275
|
+
color: #00AEE5;
|
276
|
+
}
|
277
|
+
:global(.etext-primaryDark) {
|
278
|
+
color: #007FD8;
|
279
|
+
}
|
280
|
+
:global(.etext-primaryLight) {
|
281
|
+
color: #CEF3FF;
|
282
|
+
}
|
283
|
+
:global(.etext-danger) {
|
284
|
+
color: #FE4747;
|
285
|
+
}
|
286
|
+
:global(.etext-dangerDark) {
|
287
|
+
color: #B02A37;
|
288
|
+
}
|
289
|
+
:global(.etext-dangerLight) {
|
290
|
+
color: #f8d7da;
|
291
|
+
}
|
292
|
+
:global(.etext-info) {
|
293
|
+
color: #0DCAF0;
|
294
|
+
}
|
295
|
+
:global(.etext-infoDark) {
|
296
|
+
color: #087990;
|
297
|
+
}
|
298
|
+
:global(.etext-infoLight) {
|
299
|
+
color: #9EEAF9;
|
300
|
+
}
|
301
|
+
:global(.etext-success) {
|
302
|
+
color: #00A96B;
|
303
|
+
}
|
304
|
+
:global(.etext-successDark) {
|
305
|
+
color: #146C43;
|
306
|
+
}
|
307
|
+
:global(.etext-successLight) {
|
308
|
+
color: #D1E7DD;
|
309
|
+
}
|
310
|
+
:global(.etext-warning) {
|
311
|
+
color: #FFBA3A;
|
312
|
+
}
|
313
|
+
:global(.etext-warningDark) {
|
314
|
+
color: #997404;
|
315
|
+
}
|
316
|
+
:global(.etext-warningLight) {
|
317
|
+
color: #FFF3CD;
|
318
|
+
}
|
319
|
+
:global(.etext-gray100) {
|
320
|
+
color: #F8F9FA;
|
321
|
+
}
|
322
|
+
:global(.etext-gray200) {
|
323
|
+
color: #E9ECEF;
|
324
|
+
}
|
325
|
+
:global(.etext-gray300) {
|
326
|
+
color: #DEE2E6;
|
327
|
+
}
|
328
|
+
:global(.etext-gray400) {
|
329
|
+
color: #CED4DA;
|
330
|
+
}
|
331
|
+
:global(.etext-gray500) {
|
332
|
+
color: #adb5bd;
|
333
|
+
}
|
334
|
+
:global(.etext-gray600) {
|
335
|
+
color: #6C757D;
|
336
|
+
}
|
337
|
+
:global(.etext-gray700) {
|
338
|
+
color: #495057;
|
339
|
+
}
|
340
|
+
:global(.etext-gray800) {
|
341
|
+
color: #343A40;
|
342
|
+
}
|
343
|
+
:global(.etext-gray900) {
|
344
|
+
color: #212529;
|
345
|
+
}
|
346
|
+
:global(.etext-green100) {
|
347
|
+
color: #D1E7DD;
|
348
|
+
}
|
349
|
+
:global(.etext-green200) {
|
350
|
+
color: #A3CFBB;
|
351
|
+
}
|
352
|
+
:global(.etext-green300) {
|
353
|
+
color: #75B798;
|
354
|
+
}
|
355
|
+
:global(.etext-green400) {
|
356
|
+
color: #479F76;
|
357
|
+
}
|
358
|
+
:global(.etext-green500) {
|
359
|
+
color: #198754;
|
360
|
+
}
|
361
|
+
:global(.etext-green600) {
|
362
|
+
color: #146C43;
|
363
|
+
}
|
364
|
+
:global(.etext-green700) {
|
365
|
+
color: #0F5132;
|
366
|
+
}
|
367
|
+
:global(.etext-green800) {
|
368
|
+
color: #0A3622;
|
369
|
+
}
|
370
|
+
:global(.etext-green900) {
|
371
|
+
color: #051B11;
|
372
|
+
}
|
373
|
+
:global(.etext-red100) {
|
374
|
+
color: #F8D7DA;
|
375
|
+
}
|
376
|
+
:global(.etext-red200) {
|
377
|
+
color: #F1AEB5;
|
378
|
+
}
|
379
|
+
:global(.etext-red300) {
|
380
|
+
color: #EA868F;
|
381
|
+
}
|
382
|
+
:global(.etext-red400) {
|
383
|
+
color: #E35D6A;
|
384
|
+
}
|
385
|
+
:global(.etext-red500) {
|
386
|
+
color: #DC3545;
|
387
|
+
}
|
388
|
+
:global(.etext-red600) {
|
389
|
+
color: #B02A37;
|
390
|
+
}
|
391
|
+
:global(.etext-red700) {
|
392
|
+
color: #842029;
|
393
|
+
}
|
394
|
+
:global(.etext-red800) {
|
395
|
+
color: #58151C;
|
396
|
+
}
|
397
|
+
:global(.etext-red900) {
|
398
|
+
color: #2C0B0E;
|
399
|
+
}
|
400
|
+
:global(.etext-yellow100) {
|
401
|
+
color: #FFF3CD;
|
402
|
+
}
|
403
|
+
:global(.etext-yellow200) {
|
404
|
+
color: #FFE69C;
|
405
|
+
}
|
406
|
+
:global(.etext-yellow300) {
|
407
|
+
color: #FFDA6A;
|
408
|
+
}
|
409
|
+
:global(.etext-yellow400) {
|
410
|
+
color: #FFCD39;
|
411
|
+
}
|
412
|
+
:global(.etext-yellow500) {
|
413
|
+
color: #FFC107;
|
414
|
+
}
|
415
|
+
:global(.etext-yellow600) {
|
416
|
+
color: #CC9A06;
|
417
|
+
}
|
418
|
+
:global(.etext-yellow700) {
|
419
|
+
color: #997404;
|
420
|
+
}
|
421
|
+
:global(.etext-yellow800) {
|
422
|
+
color: #664D03;
|
423
|
+
}
|
424
|
+
:global(.etext-yellow900) {
|
425
|
+
color: #332701;
|
426
|
+
}
|
427
|
+
:global(.etext-cyan100) {
|
428
|
+
color: #CFF4FC;
|
429
|
+
}
|
430
|
+
:global(.etext-cyan200) {
|
431
|
+
color: #9EEAF9;
|
432
|
+
}
|
433
|
+
:global(.etext-cyan300) {
|
434
|
+
color: #6EDFF6;
|
435
|
+
}
|
436
|
+
:global(.etext-cyan400) {
|
437
|
+
color: #3DD5F3;
|
438
|
+
}
|
439
|
+
:global(.etext-cyan500) {
|
440
|
+
color: #0DCAF0;
|
441
|
+
}
|
442
|
+
:global(.etext-cyan600) {
|
443
|
+
color: #0AA2C0;
|
444
|
+
}
|
445
|
+
:global(.etext-cyan700) {
|
446
|
+
color: #087990;
|
447
|
+
}
|
448
|
+
:global(.etext-cyan800) {
|
449
|
+
color: #055160;
|
450
|
+
}
|
451
|
+
:global(.etext-cyan900) {
|
452
|
+
color: #032830;
|
453
|
+
}
|
454
|
+
:global(.eoutline-secondary) {
|
455
|
+
outline: 1px solid #3AC82E;
|
456
|
+
}
|
457
|
+
:global(.eoutline-secondaryDark) {
|
458
|
+
outline: 1px solid #00A855;
|
459
|
+
}
|
460
|
+
:global(.eoutline-secondaryLight) {
|
461
|
+
outline: 1px solid #CBFFC7;
|
462
|
+
}
|
463
|
+
:global(.eoutline-primary) {
|
464
|
+
outline: 1px solid #00AEE5;
|
465
|
+
}
|
466
|
+
:global(.eoutline-primaryDark) {
|
467
|
+
outline: 1px solid #007FD8;
|
468
|
+
}
|
469
|
+
:global(.eoutline-primaryLight) {
|
470
|
+
outline: 1px solid #CEF3FF;
|
471
|
+
}
|
472
|
+
:global(.eoutline-danger) {
|
473
|
+
outline: 1px solid #FE4747;
|
474
|
+
}
|
475
|
+
:global(.eoutline-dangerDark) {
|
476
|
+
outline: 1px solid #B02A37;
|
477
|
+
}
|
478
|
+
:global(.eoutline-dangerLight) {
|
479
|
+
outline: 1px solid #f8d7da;
|
480
|
+
}
|
481
|
+
:global(.eoutline-success) {
|
482
|
+
outline: 1px solid #00A96B;
|
483
|
+
}
|
484
|
+
:global(.eoutline-successDark) {
|
485
|
+
outline: 1px solid #146C43;
|
486
|
+
}
|
487
|
+
:global(.eoutline-successLight) {
|
488
|
+
outline: 1px solid #D1E7DD;
|
489
|
+
}
|
490
|
+
:global(.eoutline-info) {
|
491
|
+
outline: 1px solid #0DCAF0;
|
492
|
+
}
|
493
|
+
:global(.eoutline-infoDark) {
|
494
|
+
outline: 1px solid #087990;
|
495
|
+
}
|
496
|
+
:global(.eoutline-infoLight) {
|
497
|
+
outline: 1px solid #9EEAF9;
|
498
|
+
}
|
499
|
+
:global(.eoutline-warning) {
|
500
|
+
outline: 1px solid #FFBA3A;
|
501
|
+
}
|
502
|
+
:global(.eoutline-warningDark) {
|
503
|
+
outline: 1px solid #997404;
|
504
|
+
}
|
505
|
+
:global(.eoutline-warningLight) {
|
506
|
+
outline: 1px solid #FFF3CD;
|
507
|
+
}
|
508
|
+
:global(.eradius) {
|
509
|
+
border-radius: 4px;
|
510
|
+
}
|
511
|
+
:global(.eradius-low) {
|
512
|
+
border-radius: 8px;
|
513
|
+
}
|
514
|
+
:global(.eradius-medium) {
|
515
|
+
border-radius: 16px;
|
516
|
+
}
|
517
|
+
:global(.eradius-full) {
|
518
|
+
border-radius: 50%;
|
519
|
+
}
|
520
|
+
.eshadow-non {
|
521
|
+
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
|
522
|
+
}
|
523
|
+
.eshadow-low {
|
524
|
+
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
525
|
+
}
|
526
|
+
.eshadow-medium {
|
527
|
+
box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.1);
|
528
|
+
}
|
529
|
+
.eshadow-high {
|
530
|
+
box-shadow: 0px 1px 16px 0px rgba(0, 0, 0, 0.1);
|
531
|
+
}
|
532
|
+
:global(.efs-small) {
|
533
|
+
font-family: Roboto;
|
534
|
+
font-size: 12px;
|
535
|
+
font-style: normal;
|
536
|
+
font-weight: 400;
|
537
|
+
line-height: normal;
|
538
|
+
}
|
539
|
+
:global(.efs-normal) {
|
540
|
+
font-family: Roboto;
|
541
|
+
font-size: 16px;
|
542
|
+
font-style: normal;
|
543
|
+
font-weight: 400;
|
544
|
+
line-height: 28px;
|
545
|
+
}
|
546
|
+
:global(.efs-strong) {
|
547
|
+
font-family: Roboto;
|
548
|
+
font-size: 17px;
|
549
|
+
font-style: normal;
|
550
|
+
font-weight: 700;
|
551
|
+
line-height: 28px;
|
552
|
+
}
|
553
|
+
:global(.efs-h6) {
|
554
|
+
font-family: Roboto;
|
555
|
+
font-size: 16px;
|
556
|
+
font-style: normal;
|
557
|
+
font-weight: 700;
|
558
|
+
line-height: normal;
|
559
|
+
}
|
560
|
+
:global(.efs-h5) {
|
561
|
+
font-family: Roboto;
|
562
|
+
font-size: 20px;
|
563
|
+
font-style: normal;
|
564
|
+
font-weight: 700;
|
565
|
+
line-height: normal;
|
566
|
+
}
|
567
|
+
:global(.efs-h4) {
|
568
|
+
font-family: Roboto;
|
569
|
+
font-size: 24px;
|
570
|
+
font-style: normal;
|
571
|
+
font-weight: 700;
|
572
|
+
line-height: normal;
|
573
|
+
}
|
574
|
+
:global(.efs-h3) {
|
575
|
+
font-family: Roboto;
|
576
|
+
font-size: 28px;
|
577
|
+
font-style: normal;
|
578
|
+
font-weight: 700;
|
579
|
+
line-height: normal;
|
580
|
+
}
|
581
|
+
:global(.efs-h2) {
|
582
|
+
font-family: Roboto;
|
583
|
+
font-size: 32px;
|
584
|
+
font-style: normal;
|
585
|
+
font-weight: 700;
|
586
|
+
line-height: normal;
|
587
|
+
}
|
588
|
+
:global(.efs-h1) {
|
589
|
+
font-family: Roboto;
|
590
|
+
font-size: 40px;
|
591
|
+
font-style: normal;
|
592
|
+
font-weight: 700;
|
593
|
+
line-height: normal;
|
594
|
+
letter-spacing: -0.8px;
|
595
|
+
}
|
596
|
+
:global(.efs-h4D) {
|
597
|
+
font-family: Merriweather;
|
598
|
+
font-size: 52px;
|
599
|
+
font-style: normal;
|
600
|
+
font-weight: 400;
|
601
|
+
line-height: normal;
|
602
|
+
}
|
603
|
+
:global(.efs-h3D) {
|
604
|
+
font-family: Merriweather;
|
605
|
+
font-size: 58px;
|
606
|
+
font-style: normal;
|
607
|
+
font-weight: 400;
|
608
|
+
line-height: normal;
|
609
|
+
}
|
610
|
+
:global(.efs-h2D) {
|
611
|
+
font-family: Merriweather;
|
612
|
+
font-size: 64px;
|
613
|
+
font-style: normal;
|
614
|
+
font-weight: 400;
|
615
|
+
line-height: normal;
|
616
|
+
letter-spacing: -1.28px;
|
617
|
+
}
|
618
|
+
:global(.efs-h1D) {
|
619
|
+
font-family: Merriweather;
|
620
|
+
font-size: 72px;
|
621
|
+
font-style: normal;
|
622
|
+
font-weight: 400;
|
623
|
+
line-height: normal;
|
624
|
+
}</style>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} NotFoundProps */
|
2
|
+
/** @typedef {typeof __propDef.events} NotFoundEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} NotFoundSlots */
|
4
|
+
export default class NotFound extends SvelteComponentTyped<{
|
5
|
+
title?: string | undefined;
|
6
|
+
subtitle?: string | undefined;
|
7
|
+
}, {
|
8
|
+
[evt: string]: CustomEvent<any>;
|
9
|
+
}, {
|
10
|
+
default: {};
|
11
|
+
title: {};
|
12
|
+
subtitle: {};
|
13
|
+
}> {
|
14
|
+
}
|
15
|
+
export type NotFoundProps = typeof __propDef.props;
|
16
|
+
export type NotFoundEvents = typeof __propDef.events;
|
17
|
+
export type NotFoundSlots = typeof __propDef.slots;
|
18
|
+
import { SvelteComponentTyped } from "svelte";
|
19
|
+
declare const __propDef: {
|
20
|
+
props: {
|
21
|
+
title?: string | undefined;
|
22
|
+
subtitle?: string | undefined;
|
23
|
+
};
|
24
|
+
events: {
|
25
|
+
[evt: string]: CustomEvent<any>;
|
26
|
+
};
|
27
|
+
slots: {
|
28
|
+
default: {};
|
29
|
+
title: {};
|
30
|
+
subtitle: {};
|
31
|
+
};
|
32
|
+
};
|
33
|
+
export {};
|
@@ -1,47 +1,45 @@
|
|
1
1
|
<script>
|
2
|
-
import { Col, Row } from
|
3
|
-
|
4
|
-
|
5
|
-
import { toastConfig } from "./ToastConfig";
|
2
|
+
import { Col, Row } from 'sveltestrap';
|
3
|
+
import { Icon } from 'sveltestrap';
|
4
|
+
import { toastConfig } from './ToastConfig';
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
export let type = '';
|
7
|
+
export let className = '';
|
8
|
+
let iconName = '';
|
9
|
+
export let label = '';
|
11
10
|
|
12
|
-
|
11
|
+
let toastStyle = [`toast-main`, className];
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
if(type === 'success'){
|
19
|
-
iconName = 'check-circle'
|
20
|
-
}else if(type === 'warning'){
|
21
|
-
iconName="exclamation-circle"
|
22
|
-
}else if(type === 'danger'){
|
23
|
-
iconName="x-circle"
|
24
|
-
}else if(type === 'info'){
|
25
|
-
iconName="info-circle"
|
26
|
-
}
|
13
|
+
if (toastConfig.hasOwnProperty(type)) {
|
14
|
+
toastStyle = [...toastConfig[type], ...toastStyle];
|
15
|
+
}
|
27
16
|
|
17
|
+
if (type === 'success') {
|
18
|
+
iconName = 'check-circle';
|
19
|
+
} else if (type === 'warning') {
|
20
|
+
iconName = 'exclamation-circle';
|
21
|
+
} else if (type === 'danger') {
|
22
|
+
iconName = 'x-circle';
|
23
|
+
} else if (type === 'info') {
|
24
|
+
iconName = 'info-circle';
|
25
|
+
}
|
28
26
|
</script>
|
29
27
|
|
30
28
|
<div class={toastStyle.join(' ')}>
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
29
|
+
<Row class="me-0 ms-0 ps-1">
|
30
|
+
<Col sm="2" class=" d-flex justify-content-center align-items-center ps-0 pe-1">
|
31
|
+
<Icon name={iconName} />
|
32
|
+
</Col>
|
33
|
+
<Col sm="10" class="ps-0 pt-0 pb-0 pe-2 d-flex align-items-center">
|
34
|
+
<slot>
|
35
|
+
{#if label}
|
36
|
+
{label}
|
37
|
+
{:else}
|
38
|
+
<slot />
|
39
|
+
{/if}
|
40
|
+
</slot>
|
41
|
+
</Col>
|
42
|
+
</Row>
|
45
43
|
</div>
|
46
44
|
|
47
45
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
@@ -660,4 +658,4 @@
|
|
660
658
|
font-style: normal;
|
661
659
|
font-weight: 400;
|
662
660
|
line-height: normal;
|
663
|
-
}</style>
|
661
|
+
}</style>
|
package/index.d.ts
CHANGED
@@ -52,9 +52,10 @@ import Page from "./components/Layout/Page.svelte";
|
|
52
52
|
import MainMenuHead from "./components/Layout/MainMenuHead.svelte";
|
53
53
|
import Footer from "./components/Layout/Footer.svelte";
|
54
54
|
import Toast from "./components/Toast/Toast.svelte";
|
55
|
+
import NotFound from "./components/NotFound/NotFound.svelte";
|
55
56
|
import { i18nInit } from "./components/i18n/i18n";
|
56
57
|
import { menuTypeStore } from "./components/Layout/menuStore.js";
|
57
58
|
import { derivedStore } from "./components/Layout/menuStore.js";
|
58
59
|
import { smallMenuwidth } from "./components/Layout/menuStore.js";
|
59
|
-
export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
|
60
|
+
export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, NotFound, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
|
60
61
|
export default i18nInit;
|
package/index.js
CHANGED
@@ -53,9 +53,10 @@ import Page from "./components/Layout/Page.svelte";
|
|
53
53
|
import MainMenuHead from "./components/Layout/MainMenuHead.svelte";
|
54
54
|
import Footer from "./components/Layout/Footer.svelte";
|
55
55
|
import Toast from "./components/Toast/Toast.svelte";
|
56
|
+
import NotFound from "./components/NotFound/NotFound.svelte";
|
56
57
|
import { i18nInit } from "./components/i18n/i18n";
|
57
58
|
import { menuTypeStore } from "./components/Layout/menuStore.js";
|
58
59
|
import { derivedStore } from "./components/Layout/menuStore.js";
|
59
60
|
import { smallMenuwidth } from "./components/Layout/menuStore.js";
|
60
|
-
export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
|
61
|
+
export { Button, Brand, TextField, Card, Tooltip, Tab, Icon, ActionIconGroup, ActionIcon, Modal, ModalBody, ModalFooter, ModalHeader, Header, HeaderItem, UserAvatar, Dropdown, DropdownItem, Badge, Alert, Pagination, RadioButton, Accordion, AccordionItem, Switch, Checkbox, Breadcrumb, CardIcon, CardiconTitle, CardiconBody, CardiconSubtitle, EnkiTable, TableBody, TableCell, TableRow, TableHead, TableHeadCell, EnkiCard, CardBody, CardTitle, CardSubtitle, CardText, CardLink, CardFooter, EnkiSidebar, NavItem, NavIcon, NavLink, NotFound, Layout, Page, MainMenuHead, Footer, Toast, menuTypeStore, derivedStore, smallMenuwidth, };
|
61
62
|
export default i18nInit;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@enki-tek/fms-web-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.84",
|
4
4
|
"devDependencies": {
|
5
5
|
"@storybook/addon-essentials": "^7.6.14",
|
6
6
|
"@storybook/addon-interactions": "^7.6.14",
|
@@ -123,6 +123,9 @@
|
|
123
123
|
"./components/ModalWindow/ModalBody.svelte": "./components/ModalWindow/ModalBody.svelte",
|
124
124
|
"./components/ModalWindow/ModalFooter.svelte": "./components/ModalWindow/ModalFooter.svelte",
|
125
125
|
"./components/ModalWindow/ModalHeader.svelte": "./components/ModalWindow/ModalHeader.svelte",
|
126
|
+
"./components/NotFound/NotFound.scss": "./components/NotFound/NotFound.scss",
|
127
|
+
"./components/NotFound/NotFound.stories": "./components/NotFound/NotFound.stories.js",
|
128
|
+
"./components/NotFound/NotFound.svelte": "./components/NotFound/NotFound.svelte",
|
126
129
|
"./components/Pagination/Pagination.scss": "./components/Pagination/Pagination.scss",
|
127
130
|
"./components/Pagination/Pagination.stories": "./components/Pagination/Pagination.stories.js",
|
128
131
|
"./components/Pagination/Pagination.svelte": "./components/Pagination/Pagination.svelte",
|