@bexis2/bexis2-core-ui 0.2.31 → 0.3.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/README.md +9 -1
- package/dist/TableView.svelte +1 -1
- package/dist/components/CodeEditor/CodeEditor.svelte +2 -1
- package/dist/components/File/FileIcon.svelte +45 -45
- package/dist/components/File/FileInfo.svelte +13 -13
- package/dist/components/ListView.svelte +5 -5
- package/dist/components/Table/Table.svelte +87 -25
- package/dist/components/Table/TableFilter.svelte +1 -1
- package/dist/components/form/Checkbox.svelte +13 -13
- package/dist/components/form/CheckboxKvPList.svelte +16 -16
- package/dist/components/form/CheckboxList.svelte +10 -10
- package/dist/components/form/DateInput.svelte +14 -14
- package/dist/components/form/DropdownKvP.svelte +54 -54
- package/dist/components/form/DropdownKvP.svelte.d.ts +2 -2
- package/dist/components/form/MultiSelect.svelte +5 -6
- package/dist/components/form/MultiSelect.svelte.d.ts +2 -2
- package/dist/components/form/NumberInput.svelte +15 -15
- package/dist/components/form/TextArea.svelte +14 -14
- package/dist/components/form/TextInput.svelte +15 -15
- package/dist/components/page/Alert.svelte +28 -28
- package/dist/components/page/BackToTop.svelte +30 -30
- package/dist/components/page/Docs.svelte +22 -22
- package/dist/components/page/ErrorMessage.svelte +8 -8
- package/dist/components/page/Footer.svelte +5 -5
- package/dist/components/page/Header.svelte +5 -5
- package/dist/components/page/HelpPopUp.svelte +30 -30
- package/dist/components/page/Notification.svelte +39 -1
- package/dist/components/page/Page.svelte +1 -2
- package/dist/components/page/PageCaller.js +19 -19
- package/dist/components/page/Spinner.svelte +14 -14
- package/dist/components/page/breadcrumb/Breadcrumb.svelte +6 -2
- package/dist/components/page/menu/MenuDataCaller.js +10 -10
- package/dist/css/core.ui.postcss +17 -17
- package/dist/css/themes/theme-bexis2.css +96 -96
- package/dist/css/themes/theme-crimson.css +101 -101
- package/dist/css/themes/theme-gold-nouveau.css +140 -140
- package/dist/css/themes/theme-hamlindigo.css +112 -112
- package/dist/css/themes/theme-modern.css +127 -127
- package/dist/css/themes/theme-rocket.css +119 -119
- package/dist/css/themes/theme-sahara.css +128 -128
- package/dist/css/themes/theme-seafoam.css +122 -122
- package/dist/css/themes/theme-seasonal.css +115 -115
- package/dist/css/themes/theme-skeleton.css +118 -118
- package/dist/css/themes/theme-vintage.css +125 -125
- package/dist/models/Models.d.ts +3 -0
- package/dist/services/BaseCaller.js +16 -16
- package/dist/stores/apiStores.js +2 -0
- package/dist/stores/pageStores.d.ts +1 -4
- package/dist/stores/pageStores.js +3 -41
- package/dist/themes/theme-bexis2.d.ts +2 -0
- package/dist/themes/theme-bexis2.js +99 -0
- package/package.json +4 -2
- package/src/lib/TableView.svelte +1 -1
- package/src/lib/components/CodeEditor/CodeEditor.svelte +2 -1
- package/src/lib/components/ListView.svelte +11 -11
- package/src/lib/components/Table/Table.svelte +107 -26
- package/src/lib/components/Table/TableFilter.svelte +2 -1
- package/src/lib/components/Table/filter.ts +141 -141
- package/src/lib/components/{File → file}/FileIcon.svelte +45 -45
- package/src/lib/components/{File → file}/FileInfo.svelte +13 -13
- package/src/lib/components/{File → file}/FileUploader.svelte +3 -4
- package/src/lib/components/form/Checkbox.svelte +24 -24
- package/src/lib/components/form/CheckboxKvPList.svelte +29 -29
- package/src/lib/components/form/CheckboxList.svelte +21 -21
- package/src/lib/components/form/DateInput.svelte +27 -27
- package/src/lib/components/form/DropdownKvP.svelte +54 -54
- package/src/lib/components/form/MultiSelect.svelte +5 -6
- package/src/lib/components/form/NumberInput.svelte +30 -30
- package/src/lib/components/form/TextArea.svelte +28 -28
- package/src/lib/components/form/TextInput.svelte +28 -28
- package/src/lib/components/page/Alert.svelte +41 -41
- package/src/lib/components/page/BackToTop.svelte +30 -30
- package/src/lib/components/page/Docs.svelte +46 -46
- package/src/lib/components/page/ErrorMessage.svelte +10 -10
- package/src/lib/components/page/Footer.svelte +18 -18
- package/src/lib/components/page/Header.svelte +18 -18
- package/src/lib/components/page/HelpPopUp.svelte +72 -72
- package/src/lib/components/page/Notification.svelte +56 -1
- package/src/lib/components/page/Page.svelte +3 -4
- package/src/lib/components/page/PageCaller.js +19 -19
- package/src/lib/components/page/Spinner.svelte +20 -20
- package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +8 -6
- package/src/lib/components/page/menu/MenuDataCaller.js +10 -10
- package/src/lib/css/core.ui.postcss +17 -17
- package/src/lib/css/themes/theme-bexis2.css +96 -96
- package/src/lib/css/themes/theme-crimson.css +101 -101
- package/src/lib/css/themes/theme-gold-nouveau.css +140 -140
- package/src/lib/css/themes/theme-hamlindigo.css +112 -112
- package/src/lib/css/themes/theme-modern.css +127 -127
- package/src/lib/css/themes/theme-rocket.css +119 -119
- package/src/lib/css/themes/theme-sahara.css +128 -128
- package/src/lib/css/themes/theme-seafoam.css +122 -122
- package/src/lib/css/themes/theme-seasonal.css +115 -115
- package/src/lib/css/themes/theme-skeleton.css +118 -118
- package/src/lib/css/themes/theme-vintage.css +125 -125
- package/src/lib/models/Models.ts +9 -6
- package/src/lib/models/Page.ts +40 -40
- package/src/lib/services/Api.ts +55 -55
- package/src/lib/services/BaseCaller.js +16 -16
- package/src/lib/stores/apiStores.ts +34 -31
- package/src/lib/stores/pageStores.ts +11 -53
- package/src/lib/themes/theme-bexis2.ts +103 -0
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
/* https://fonts.google.com/specimen/Abril+Fatface?query=Abril+Fatface¬o.query=Abril */
|
|
2
|
-
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
|
|
3
|
-
/* https://fonts.google.com/noto/specimen/Noto+Sans?query=sans */
|
|
4
|
-
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;1,100;1,200;1,300&display=swap');
|
|
5
|
-
|
|
6
|
-
:root {
|
|
7
|
-
/* =~= Theme Styles =~= */
|
|
8
|
-
--theme-font-family-base: 'Noto Sans', sans-serif;
|
|
9
|
-
--theme-font-family-heading: 'Abril Fatface', cursive;
|
|
10
|
-
--theme-font-color-base: var(--color-primary-900);
|
|
11
|
-
--theme-font-color-dark: var(--color-primary-100);
|
|
12
|
-
--theme-rounded-base: 2px;
|
|
13
|
-
--theme-rounded-container: 4px;
|
|
14
|
-
--theme-border-base: 1px;
|
|
15
|
-
/* =~= Theme On-X Colors =~= */
|
|
16
|
-
--on-primary: 0 0 0;
|
|
17
|
-
--on-secondary: 0 0 0;
|
|
18
|
-
--on-tertiary: 0 0 0;
|
|
19
|
-
--on-success: 0 0 0;
|
|
20
|
-
--on-warning: 0 0 0;
|
|
21
|
-
--on-error: 0 0 0;
|
|
22
|
-
--on-surface: 255 255 255;
|
|
23
|
-
/* =~= Theme Colors =~= */
|
|
24
|
-
/* primary | #ea861a */
|
|
25
|
-
--color-primary-50: 252 237 221; /* ⬅ #fceddd */
|
|
26
|
-
--color-primary-100: 251 231 209; /* ⬅ #fbe7d1 */
|
|
27
|
-
--color-primary-200: 250 225 198; /* ⬅ #fae1c6 */
|
|
28
|
-
--color-primary-300: 247 207 163; /* ⬅ #f7cfa3 */
|
|
29
|
-
--color-primary-400: 240 170 95; /* ⬅ #f0aa5f */
|
|
30
|
-
--color-primary-500: 234 134 26; /* ⬅ #ea861a */
|
|
31
|
-
--color-primary-600: 211 121 23; /* ⬅ #d37917 */
|
|
32
|
-
--color-primary-700: 176 101 20; /* ⬅ #b06514 */
|
|
33
|
-
--color-primary-800: 140 80 16; /* ⬅ #8c5010 */
|
|
34
|
-
--color-primary-900: 115 66 13; /* ⬅ #73420d */
|
|
35
|
-
/* secondary | #97cea5 */
|
|
36
|
-
--color-secondary-50: 239 248 242; /* ⬅ #eff8f2 */
|
|
37
|
-
--color-secondary-100: 234 245 237; /* ⬅ #eaf5ed */
|
|
38
|
-
--color-secondary-200: 229 243 233; /* ⬅ #e5f3e9 */
|
|
39
|
-
--color-secondary-300: 213 235 219; /* ⬅ #d5ebdb */
|
|
40
|
-
--color-secondary-400: 182 221 192; /* ⬅ #b6ddc0 */
|
|
41
|
-
--color-secondary-500: 151 206 165; /* ⬅ #97cea5 */
|
|
42
|
-
--color-secondary-600: 136 185 149; /* ⬅ #88b995 */
|
|
43
|
-
--color-secondary-700: 113 155 124; /* ⬅ #719b7c */
|
|
44
|
-
--color-secondary-800: 91 124 99; /* ⬅ #5b7c63 */
|
|
45
|
-
--color-secondary-900: 74 101 81; /* ⬅ #4a6551 */
|
|
46
|
-
/* tertiary | #06b6d4 */
|
|
47
|
-
--color-tertiary-50: 218 244 249; /* ⬅ #daf4f9 */
|
|
48
|
-
--color-tertiary-100: 205 240 246; /* ⬅ #cdf0f6 */
|
|
49
|
-
--color-tertiary-200: 193 237 244; /* ⬅ #c1edf4 */
|
|
50
|
-
--color-tertiary-300: 155 226 238; /* ⬅ #9be2ee */
|
|
51
|
-
--color-tertiary-400: 81 204 225; /* ⬅ #51cce1 */
|
|
52
|
-
--color-tertiary-500: 6 182 212; /* ⬅ #06b6d4 */
|
|
53
|
-
--color-tertiary-600: 5 164 191; /* ⬅ #05a4bf */
|
|
54
|
-
--color-tertiary-700: 5 137 159; /* ⬅ #05899f */
|
|
55
|
-
--color-tertiary-800: 4 109 127; /* ⬅ #046d7f */
|
|
56
|
-
--color-tertiary-900: 3 89 104; /* ⬅ #035968 */
|
|
57
|
-
/* success | #84cb5d */
|
|
58
|
-
--color-success-50: 237 247 231; /* ⬅ #edf7e7 */
|
|
59
|
-
--color-success-100: 230 245 223; /* ⬅ #e6f5df */
|
|
60
|
-
--color-success-200: 224 242 215; /* ⬅ #e0f2d7 */
|
|
61
|
-
--color-success-300: 206 234 190; /* ⬅ #ceeabe */
|
|
62
|
-
--color-success-400: 169 219 142; /* ⬅ #a9db8e */
|
|
63
|
-
--color-success-500: 132 203 93; /* ⬅ #84cb5d */
|
|
64
|
-
--color-success-600: 119 183 84; /* ⬅ #77b754 */
|
|
65
|
-
--color-success-700: 99 152 70; /* ⬅ #639846 */
|
|
66
|
-
--color-success-800: 79 122 56; /* ⬅ #4f7a38 */
|
|
67
|
-
--color-success-900: 65 99 46; /* ⬅ #41632e */
|
|
68
|
-
/* warning | #f2ac23 */
|
|
69
|
-
--color-warning-50: 253 243 222; /* ⬅ #fdf3de */
|
|
70
|
-
--color-warning-100: 252 238 211; /* ⬅ #fceed3 */
|
|
71
|
-
--color-warning-200: 252 234 200; /* ⬅ #fceac8 */
|
|
72
|
-
--color-warning-300: 250 222 167; /* ⬅ #fadea7 */
|
|
73
|
-
--color-warning-400: 246 197 101; /* ⬅ #f6c565 */
|
|
74
|
-
--color-warning-500: 242 172 35; /* ⬅ #f2ac23 */
|
|
75
|
-
--color-warning-600: 218 155 32; /* ⬅ #da9b20 */
|
|
76
|
-
--color-warning-700: 182 129 26; /* ⬅ #b6811a */
|
|
77
|
-
--color-warning-800: 145 103 21; /* ⬅ #916715 */
|
|
78
|
-
--color-warning-900: 119 84 17; /* ⬅ #775411 */
|
|
79
|
-
/* error | #d57e78 */
|
|
80
|
-
--color-error-50: 249 236 235; /* ⬅ #f9eceb */
|
|
81
|
-
--color-error-100: 247 229 228; /* ⬅ #f7e5e4 */
|
|
82
|
-
--color-error-200: 245 223 221; /* ⬅ #f5dfdd */
|
|
83
|
-
--color-error-300: 238 203 201; /* ⬅ #eecbc9 */
|
|
84
|
-
--color-error-400: 226 165 161; /* ⬅ #e2a5a1 */
|
|
85
|
-
--color-error-500: 213 126 120; /* ⬅ #d57e78 */
|
|
86
|
-
--color-error-600: 192 113 108; /* ⬅ #c0716c */
|
|
87
|
-
--color-error-700: 160 95 90; /* ⬅ #a05f5a */
|
|
88
|
-
--color-error-800: 128 76 72; /* ⬅ #804c48 */
|
|
89
|
-
--color-error-900: 104 62 59; /* ⬅ #683e3b */
|
|
90
|
-
/* surface | #3f3731 */
|
|
91
|
-
--color-surface-50: 226 225 224; /* ⬅ #e2e1e0 */
|
|
92
|
-
--color-surface-100: 217 215 214; /* ⬅ #d9d7d6 */
|
|
93
|
-
--color-surface-200: 207 205 204; /* ⬅ #cfcdcc */
|
|
94
|
-
--color-surface-300: 178 175 173; /* ⬅ #b2afad */
|
|
95
|
-
--color-surface-400: 121 115 111; /* ⬅ #79736f */
|
|
96
|
-
--color-surface-500: 63 55 49; /* ⬅ #3f3731 */
|
|
97
|
-
--color-surface-600: 57 50 44; /* ⬅ #39322c */
|
|
98
|
-
--color-surface-700: 47 41 37; /* ⬅ #2f2925 */
|
|
99
|
-
--color-surface-800: 38 33 29; /* ⬅ #26211d */
|
|
100
|
-
--color-surface-900: 31 27 24; /* ⬅ #1f1b18 */
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
[data-theme='vintage'] h1,
|
|
104
|
-
[data-theme='vintage'] h2,
|
|
105
|
-
[data-theme='vintage'] h3,
|
|
106
|
-
[data-theme='vintage'] h4,
|
|
107
|
-
[data-theme='vintage'] h5,
|
|
108
|
-
[data-theme='vintage'] h6 {
|
|
109
|
-
letter-spacing: 1px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/* Applied to body with `<body data-theme="vintage">` */
|
|
113
|
-
/* Created with: https://csshero.org/mesher/ */
|
|
114
|
-
[data-theme='vintage'] {
|
|
115
|
-
/* prettier-ignore */
|
|
116
|
-
background-image:
|
|
117
|
-
radial-gradient(at 100% 0%, hsla(135,34%,70%,0.20) 0px, transparent 50%),
|
|
118
|
-
radial-gradient(at 85% 100%, hsla(31,83%,50%,0.20) 0px, transparent 50%);
|
|
119
|
-
}
|
|
120
|
-
.dark [data-theme='vintage'] {
|
|
121
|
-
/* prettier-ignore */
|
|
122
|
-
background-image:
|
|
123
|
-
radial-gradient(at 100% 0%, hsla(135,34%,70%,0.14) 0px, transparent 50%),
|
|
124
|
-
radial-gradient(at 85% 100%, hsla(31,83%,50%,0.14) 0px, transparent 50%);
|
|
125
|
-
}
|
|
1
|
+
/* https://fonts.google.com/specimen/Abril+Fatface?query=Abril+Fatface¬o.query=Abril */
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
|
|
3
|
+
/* https://fonts.google.com/noto/specimen/Noto+Sans?query=sans */
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;1,100;1,200;1,300&display=swap');
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
/* =~= Theme Styles =~= */
|
|
8
|
+
--theme-font-family-base: 'Noto Sans', sans-serif;
|
|
9
|
+
--theme-font-family-heading: 'Abril Fatface', cursive;
|
|
10
|
+
--theme-font-color-base: var(--color-primary-900);
|
|
11
|
+
--theme-font-color-dark: var(--color-primary-100);
|
|
12
|
+
--theme-rounded-base: 2px;
|
|
13
|
+
--theme-rounded-container: 4px;
|
|
14
|
+
--theme-border-base: 1px;
|
|
15
|
+
/* =~= Theme On-X Colors =~= */
|
|
16
|
+
--on-primary: 0 0 0;
|
|
17
|
+
--on-secondary: 0 0 0;
|
|
18
|
+
--on-tertiary: 0 0 0;
|
|
19
|
+
--on-success: 0 0 0;
|
|
20
|
+
--on-warning: 0 0 0;
|
|
21
|
+
--on-error: 0 0 0;
|
|
22
|
+
--on-surface: 255 255 255;
|
|
23
|
+
/* =~= Theme Colors =~= */
|
|
24
|
+
/* primary | #ea861a */
|
|
25
|
+
--color-primary-50: 252 237 221; /* ⬅ #fceddd */
|
|
26
|
+
--color-primary-100: 251 231 209; /* ⬅ #fbe7d1 */
|
|
27
|
+
--color-primary-200: 250 225 198; /* ⬅ #fae1c6 */
|
|
28
|
+
--color-primary-300: 247 207 163; /* ⬅ #f7cfa3 */
|
|
29
|
+
--color-primary-400: 240 170 95; /* ⬅ #f0aa5f */
|
|
30
|
+
--color-primary-500: 234 134 26; /* ⬅ #ea861a */
|
|
31
|
+
--color-primary-600: 211 121 23; /* ⬅ #d37917 */
|
|
32
|
+
--color-primary-700: 176 101 20; /* ⬅ #b06514 */
|
|
33
|
+
--color-primary-800: 140 80 16; /* ⬅ #8c5010 */
|
|
34
|
+
--color-primary-900: 115 66 13; /* ⬅ #73420d */
|
|
35
|
+
/* secondary | #97cea5 */
|
|
36
|
+
--color-secondary-50: 239 248 242; /* ⬅ #eff8f2 */
|
|
37
|
+
--color-secondary-100: 234 245 237; /* ⬅ #eaf5ed */
|
|
38
|
+
--color-secondary-200: 229 243 233; /* ⬅ #e5f3e9 */
|
|
39
|
+
--color-secondary-300: 213 235 219; /* ⬅ #d5ebdb */
|
|
40
|
+
--color-secondary-400: 182 221 192; /* ⬅ #b6ddc0 */
|
|
41
|
+
--color-secondary-500: 151 206 165; /* ⬅ #97cea5 */
|
|
42
|
+
--color-secondary-600: 136 185 149; /* ⬅ #88b995 */
|
|
43
|
+
--color-secondary-700: 113 155 124; /* ⬅ #719b7c */
|
|
44
|
+
--color-secondary-800: 91 124 99; /* ⬅ #5b7c63 */
|
|
45
|
+
--color-secondary-900: 74 101 81; /* ⬅ #4a6551 */
|
|
46
|
+
/* tertiary | #06b6d4 */
|
|
47
|
+
--color-tertiary-50: 218 244 249; /* ⬅ #daf4f9 */
|
|
48
|
+
--color-tertiary-100: 205 240 246; /* ⬅ #cdf0f6 */
|
|
49
|
+
--color-tertiary-200: 193 237 244; /* ⬅ #c1edf4 */
|
|
50
|
+
--color-tertiary-300: 155 226 238; /* ⬅ #9be2ee */
|
|
51
|
+
--color-tertiary-400: 81 204 225; /* ⬅ #51cce1 */
|
|
52
|
+
--color-tertiary-500: 6 182 212; /* ⬅ #06b6d4 */
|
|
53
|
+
--color-tertiary-600: 5 164 191; /* ⬅ #05a4bf */
|
|
54
|
+
--color-tertiary-700: 5 137 159; /* ⬅ #05899f */
|
|
55
|
+
--color-tertiary-800: 4 109 127; /* ⬅ #046d7f */
|
|
56
|
+
--color-tertiary-900: 3 89 104; /* ⬅ #035968 */
|
|
57
|
+
/* success | #84cb5d */
|
|
58
|
+
--color-success-50: 237 247 231; /* ⬅ #edf7e7 */
|
|
59
|
+
--color-success-100: 230 245 223; /* ⬅ #e6f5df */
|
|
60
|
+
--color-success-200: 224 242 215; /* ⬅ #e0f2d7 */
|
|
61
|
+
--color-success-300: 206 234 190; /* ⬅ #ceeabe */
|
|
62
|
+
--color-success-400: 169 219 142; /* ⬅ #a9db8e */
|
|
63
|
+
--color-success-500: 132 203 93; /* ⬅ #84cb5d */
|
|
64
|
+
--color-success-600: 119 183 84; /* ⬅ #77b754 */
|
|
65
|
+
--color-success-700: 99 152 70; /* ⬅ #639846 */
|
|
66
|
+
--color-success-800: 79 122 56; /* ⬅ #4f7a38 */
|
|
67
|
+
--color-success-900: 65 99 46; /* ⬅ #41632e */
|
|
68
|
+
/* warning | #f2ac23 */
|
|
69
|
+
--color-warning-50: 253 243 222; /* ⬅ #fdf3de */
|
|
70
|
+
--color-warning-100: 252 238 211; /* ⬅ #fceed3 */
|
|
71
|
+
--color-warning-200: 252 234 200; /* ⬅ #fceac8 */
|
|
72
|
+
--color-warning-300: 250 222 167; /* ⬅ #fadea7 */
|
|
73
|
+
--color-warning-400: 246 197 101; /* ⬅ #f6c565 */
|
|
74
|
+
--color-warning-500: 242 172 35; /* ⬅ #f2ac23 */
|
|
75
|
+
--color-warning-600: 218 155 32; /* ⬅ #da9b20 */
|
|
76
|
+
--color-warning-700: 182 129 26; /* ⬅ #b6811a */
|
|
77
|
+
--color-warning-800: 145 103 21; /* ⬅ #916715 */
|
|
78
|
+
--color-warning-900: 119 84 17; /* ⬅ #775411 */
|
|
79
|
+
/* error | #d57e78 */
|
|
80
|
+
--color-error-50: 249 236 235; /* ⬅ #f9eceb */
|
|
81
|
+
--color-error-100: 247 229 228; /* ⬅ #f7e5e4 */
|
|
82
|
+
--color-error-200: 245 223 221; /* ⬅ #f5dfdd */
|
|
83
|
+
--color-error-300: 238 203 201; /* ⬅ #eecbc9 */
|
|
84
|
+
--color-error-400: 226 165 161; /* ⬅ #e2a5a1 */
|
|
85
|
+
--color-error-500: 213 126 120; /* ⬅ #d57e78 */
|
|
86
|
+
--color-error-600: 192 113 108; /* ⬅ #c0716c */
|
|
87
|
+
--color-error-700: 160 95 90; /* ⬅ #a05f5a */
|
|
88
|
+
--color-error-800: 128 76 72; /* ⬅ #804c48 */
|
|
89
|
+
--color-error-900: 104 62 59; /* ⬅ #683e3b */
|
|
90
|
+
/* surface | #3f3731 */
|
|
91
|
+
--color-surface-50: 226 225 224; /* ⬅ #e2e1e0 */
|
|
92
|
+
--color-surface-100: 217 215 214; /* ⬅ #d9d7d6 */
|
|
93
|
+
--color-surface-200: 207 205 204; /* ⬅ #cfcdcc */
|
|
94
|
+
--color-surface-300: 178 175 173; /* ⬅ #b2afad */
|
|
95
|
+
--color-surface-400: 121 115 111; /* ⬅ #79736f */
|
|
96
|
+
--color-surface-500: 63 55 49; /* ⬅ #3f3731 */
|
|
97
|
+
--color-surface-600: 57 50 44; /* ⬅ #39322c */
|
|
98
|
+
--color-surface-700: 47 41 37; /* ⬅ #2f2925 */
|
|
99
|
+
--color-surface-800: 38 33 29; /* ⬅ #26211d */
|
|
100
|
+
--color-surface-900: 31 27 24; /* ⬅ #1f1b18 */
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-theme='vintage'] h1,
|
|
104
|
+
[data-theme='vintage'] h2,
|
|
105
|
+
[data-theme='vintage'] h3,
|
|
106
|
+
[data-theme='vintage'] h4,
|
|
107
|
+
[data-theme='vintage'] h5,
|
|
108
|
+
[data-theme='vintage'] h6 {
|
|
109
|
+
letter-spacing: 1px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Applied to body with `<body data-theme="vintage">` */
|
|
113
|
+
/* Created with: https://csshero.org/mesher/ */
|
|
114
|
+
[data-theme='vintage'] {
|
|
115
|
+
/* prettier-ignore */
|
|
116
|
+
background-image:
|
|
117
|
+
radial-gradient(at 100% 0%, hsla(135,34%,70%,0.20) 0px, transparent 50%),
|
|
118
|
+
radial-gradient(at 85% 100%, hsla(31,83%,50%,0.20) 0px, transparent 50%);
|
|
119
|
+
}
|
|
120
|
+
.dark [data-theme='vintage'] {
|
|
121
|
+
/* prettier-ignore */
|
|
122
|
+
background-image:
|
|
123
|
+
radial-gradient(at 100% 0%, hsla(135,34%,70%,0.14) 0px, transparent 50%),
|
|
124
|
+
radial-gradient(at 85% 100%, hsla(31,83%,50%,0.14) 0px, transparent 50%);
|
|
125
|
+
}
|
package/dist/models/Models.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export interface Column {
|
|
|
74
74
|
disableSorting?: boolean;
|
|
75
75
|
colFilterFn?: ColumnFilterFn;
|
|
76
76
|
colFilterComponent?: typeof SvelteComponent;
|
|
77
|
+
minWidth?: number;
|
|
78
|
+
fixedWidth?: number;
|
|
77
79
|
}
|
|
78
80
|
export interface Columns {
|
|
79
81
|
[key: string]: Column;
|
|
@@ -81,6 +83,7 @@ export interface Columns {
|
|
|
81
83
|
export interface TableConfig<T> {
|
|
82
84
|
id: string;
|
|
83
85
|
data: Writable<T[]>;
|
|
86
|
+
resizable?: 'rows' | 'columns' | 'both';
|
|
84
87
|
toggle?: boolean;
|
|
85
88
|
fitToScreen?: boolean;
|
|
86
89
|
height?: null | number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// Implementations for all the calls for the pokemon endpoints.
|
|
2
|
-
//import Api from "./Api";
|
|
3
|
-
import { host } from '../stores/apiStores';
|
|
4
|
-
|
|
5
|
-
// go to a internal action
|
|
6
|
-
export const goTo = async (url, intern = true) => {
|
|
7
|
-
if (intern == true) {
|
|
8
|
-
// go to inside bexis2
|
|
9
|
-
if (window != null && host != null && url != null) {
|
|
10
|
-
window.open(host + url, '_self')?.focus();
|
|
11
|
-
}
|
|
12
|
-
} // go to a external page
|
|
13
|
-
else {
|
|
14
|
-
window.open(url, '_blank')?.focus();
|
|
15
|
-
}
|
|
16
|
-
};
|
|
1
|
+
// Implementations for all the calls for the pokemon endpoints.
|
|
2
|
+
//import Api from "./Api";
|
|
3
|
+
import { host } from '../stores/apiStores';
|
|
4
|
+
|
|
5
|
+
// go to a internal action
|
|
6
|
+
export const goTo = async (url, intern = true) => {
|
|
7
|
+
if (intern == true) {
|
|
8
|
+
// go to inside bexis2
|
|
9
|
+
if (window != null && host != null && url != null) {
|
|
10
|
+
window.open(host + url, '_self')?.focus();
|
|
11
|
+
}
|
|
12
|
+
} // go to a external page
|
|
13
|
+
else {
|
|
14
|
+
window.open(url, '_blank')?.focus();
|
|
15
|
+
}
|
|
16
|
+
};
|
package/dist/stores/apiStores.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { helpItemType, helpStoreType, notificationItemType, notificationStoreType } from '../models/Models';
|
|
2
2
|
import type { MenuModel, breadcrumbItemType } from '../models/Page';
|
|
3
3
|
import { BreadcrumbModel } from '../models/Page';
|
|
4
|
-
import { type Writable } from 'svelte/store';
|
|
5
4
|
export declare const helpStore: {
|
|
6
5
|
subscribe: (this: void, run: import("svelte/store").Subscriber<helpStoreType>, invalidate?: ((value?: helpStoreType | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
|
|
7
6
|
set: (this: void, value: helpStoreType) => void;
|
|
@@ -16,7 +15,7 @@ export declare const helpStore: {
|
|
|
16
15
|
reset: () => void;
|
|
17
16
|
clear: () => void;
|
|
18
17
|
};
|
|
19
|
-
export declare const menuStore: Writable<MenuModel>;
|
|
18
|
+
export declare const menuStore: import("svelte/store").Writable<MenuModel>;
|
|
20
19
|
export declare const breadcrumbStore: {
|
|
21
20
|
subscribe: (this: void, run: import("svelte/store").Subscriber<BreadcrumbModel>, invalidate?: ((value?: BreadcrumbModel | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
|
|
22
21
|
set: (this: void, value: BreadcrumbModel) => void;
|
|
@@ -30,8 +29,6 @@ export declare const notificationStore: {
|
|
|
30
29
|
set: (this: void, value: notificationStoreType) => void;
|
|
31
30
|
update: (this: void, updater: import("svelte/store").Updater<notificationStoreType>) => void;
|
|
32
31
|
setNotification: (notificationItem: notificationItemType) => void;
|
|
33
|
-
triggerNotification: () => void;
|
|
34
|
-
clear: () => void;
|
|
35
32
|
showNotification: (notificationItem: notificationItemType) => void;
|
|
36
33
|
getBtnStyle: () => string;
|
|
37
34
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { notificationType } from '../models/Enums';
|
|
2
2
|
import { BreadcrumbModel } from '../models/Page';
|
|
3
|
-
import { toastStore } from '@skeletonlabs/skeleton';
|
|
4
3
|
import { writable } from 'svelte/store';
|
|
5
4
|
function createHelpStore() {
|
|
6
5
|
// set Store Type
|
|
@@ -149,55 +148,18 @@ function createNotificationStore() {
|
|
|
149
148
|
message: notificationItem.message,
|
|
150
149
|
btnStyle: btnStyle
|
|
151
150
|
});
|
|
152
|
-
notificationStore.subscribe((value) => { });
|
|
153
|
-
},
|
|
154
|
-
// triggers the notification to show
|
|
155
|
-
triggerNotification: () => {
|
|
156
|
-
let timeout = 30000;
|
|
157
|
-
let classes = '';
|
|
158
|
-
let message = '';
|
|
159
151
|
notificationStore.subscribe((value) => {
|
|
160
|
-
|
|
161
|
-
case notificationType.success:
|
|
162
|
-
classes =
|
|
163
|
-
'bg-success-300 border-solid border-2 border-success-500 shadow-md text-surface-900';
|
|
164
|
-
break;
|
|
165
|
-
case notificationType.warning:
|
|
166
|
-
classes =
|
|
167
|
-
'bg-warning-300 border-solid border-2 border-warning-500 shadow-md text-surface-900';
|
|
168
|
-
break;
|
|
169
|
-
case notificationType.error:
|
|
170
|
-
classes =
|
|
171
|
-
'bg-error-300 border-solid border-2 border-error-500 shadow-md text-surface-900';
|
|
172
|
-
break;
|
|
173
|
-
case notificationType.surface:
|
|
174
|
-
classes =
|
|
175
|
-
'bg-surface-300 border-solid border-2 border-surface-500 shadow-md text-surface-900';
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
message = value.message;
|
|
152
|
+
"";
|
|
179
153
|
});
|
|
180
|
-
if (classes != '' && message != '') {
|
|
181
|
-
const notificationToast = {
|
|
182
|
-
classes: classes,
|
|
183
|
-
message: message,
|
|
184
|
-
timeout: timeout
|
|
185
|
-
};
|
|
186
|
-
toastStore.trigger(notificationToast);
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
// cleans the toastStore
|
|
190
|
-
clear: () => {
|
|
191
|
-
toastStore.clear();
|
|
192
154
|
},
|
|
193
155
|
// cleans, sets, and schows the notification (all you need ;))
|
|
194
156
|
showNotification: (notificationItem) => {
|
|
195
|
-
notificationStore.clear();
|
|
157
|
+
//notificationStore.clear();
|
|
196
158
|
notificationStore.setNotification({
|
|
197
159
|
notificationType: notificationItem.notificationType,
|
|
198
160
|
message: notificationItem.message
|
|
199
161
|
});
|
|
200
|
-
|
|
162
|
+
// if the store is changing, the notification componend will be updated
|
|
201
163
|
},
|
|
202
164
|
// gets the dissmiss Button style
|
|
203
165
|
getBtnStyle: () => {
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export const bexis2Theme = {
|
|
2
|
+
name: 'bexis2Theme',
|
|
3
|
+
properties: {
|
|
4
|
+
// =~= Theme Properties =~=
|
|
5
|
+
"--theme-font-family-base": `system-ui`,
|
|
6
|
+
"--theme-font-family-heading": `system-ui`,
|
|
7
|
+
"--theme-font-color-base": "var(--color-surface-900)",
|
|
8
|
+
"--theme-font-color-dark": "255 255 255",
|
|
9
|
+
"--theme-rounded-base": "4px",
|
|
10
|
+
"--theme-rounded-container": "4px",
|
|
11
|
+
"--theme-border-base": "1px",
|
|
12
|
+
// =~= Theme On-X Colors =~=
|
|
13
|
+
"--on-primary": "255 255 255",
|
|
14
|
+
"--on-secondary": "255 255 255",
|
|
15
|
+
"--on-tertiary": "0 0 0",
|
|
16
|
+
"--on-success": "255 255 255",
|
|
17
|
+
"--on-warning": "255 255 255",
|
|
18
|
+
"--on-error": "255 255 255",
|
|
19
|
+
"--on-surface": "255 255 255",
|
|
20
|
+
// =~= Theme Colors =~=
|
|
21
|
+
// primary | #45b2a1
|
|
22
|
+
"--color-primary-50": "227 243 241",
|
|
23
|
+
"--color-primary-100": "218 240 236",
|
|
24
|
+
"--color-primary-200": "209 236 232",
|
|
25
|
+
"--color-primary-300": "181 224 217",
|
|
26
|
+
"--color-primary-400": "125 201 189",
|
|
27
|
+
"--color-primary-500": "69 178 161",
|
|
28
|
+
"--color-primary-600": "62 160 145",
|
|
29
|
+
"--color-primary-700": "52 134 121",
|
|
30
|
+
"--color-primary-800": "41 107 97",
|
|
31
|
+
"--color-primary-900": "34 87 79",
|
|
32
|
+
// secondary | #ff9700
|
|
33
|
+
"--color-secondary-50": "255 239 217",
|
|
34
|
+
"--color-secondary-100": "255 234 204",
|
|
35
|
+
"--color-secondary-200": "255 229 191",
|
|
36
|
+
"--color-secondary-300": "255 213 153",
|
|
37
|
+
"--color-secondary-400": "255 182 77",
|
|
38
|
+
"--color-secondary-500": "255 151 0",
|
|
39
|
+
"--color-secondary-600": "230 136 0",
|
|
40
|
+
"--color-secondary-700": "191 113 0",
|
|
41
|
+
"--color-secondary-800": "153 91 0",
|
|
42
|
+
"--color-secondary-900": "125 74 0",
|
|
43
|
+
// tertiary | #bee1da
|
|
44
|
+
"--color-tertiary-50": "245 251 249",
|
|
45
|
+
"--color-tertiary-100": "242 249 248",
|
|
46
|
+
"--color-tertiary-200": "239 248 246",
|
|
47
|
+
"--color-tertiary-300": "229 243 240",
|
|
48
|
+
"--color-tertiary-400": "210 234 229",
|
|
49
|
+
"--color-tertiary-500": "190 225 218",
|
|
50
|
+
"--color-tertiary-600": "171 203 196",
|
|
51
|
+
"--color-tertiary-700": "143 169 164",
|
|
52
|
+
"--color-tertiary-800": "114 135 131",
|
|
53
|
+
"--color-tertiary-900": "93 110 107",
|
|
54
|
+
// success | #4BB543
|
|
55
|
+
"--color-success-50": "228 244 227",
|
|
56
|
+
"--color-success-100": "219 240 217",
|
|
57
|
+
"--color-success-200": "210 237 208",
|
|
58
|
+
"--color-success-300": "183 225 180",
|
|
59
|
+
"--color-success-400": "129 203 123",
|
|
60
|
+
"--color-success-500": "75 181 67",
|
|
61
|
+
"--color-success-600": "68 163 60",
|
|
62
|
+
"--color-success-700": "56 136 50",
|
|
63
|
+
"--color-success-800": "45 109 40",
|
|
64
|
+
"--color-success-900": "37 89 33",
|
|
65
|
+
// warning | #EAB308
|
|
66
|
+
"--color-warning-50": "252 244 218",
|
|
67
|
+
"--color-warning-100": "251 240 206",
|
|
68
|
+
"--color-warning-200": "250 236 193",
|
|
69
|
+
"--color-warning-300": "247 225 156",
|
|
70
|
+
"--color-warning-400": "240 202 82",
|
|
71
|
+
"--color-warning-500": "234 179 8",
|
|
72
|
+
"--color-warning-600": "211 161 7",
|
|
73
|
+
"--color-warning-700": "176 134 6",
|
|
74
|
+
"--color-warning-800": "140 107 5",
|
|
75
|
+
"--color-warning-900": "115 88 4",
|
|
76
|
+
// error | #FF0000
|
|
77
|
+
"--color-error-50": "255 217 217",
|
|
78
|
+
"--color-error-100": "255 204 204",
|
|
79
|
+
"--color-error-200": "255 191 191",
|
|
80
|
+
"--color-error-300": "255 153 153",
|
|
81
|
+
"--color-error-400": "255 77 77",
|
|
82
|
+
"--color-error-500": "255 0 0",
|
|
83
|
+
"--color-error-600": "230 0 0",
|
|
84
|
+
"--color-error-700": "191 0 0",
|
|
85
|
+
"--color-error-800": "153 0 0",
|
|
86
|
+
"--color-error-900": "125 0 0",
|
|
87
|
+
// surface | #c7c7c7
|
|
88
|
+
"--color-surface-50": "247 247 247",
|
|
89
|
+
"--color-surface-100": "244 244 244",
|
|
90
|
+
"--color-surface-200": "241 241 241",
|
|
91
|
+
"--color-surface-300": "233 233 233",
|
|
92
|
+
"--color-surface-400": "216 216 216",
|
|
93
|
+
"--color-surface-500": "199 199 199",
|
|
94
|
+
"--color-surface-600": "179 179 179",
|
|
95
|
+
"--color-surface-700": "149 149 149",
|
|
96
|
+
"--color-surface-800": "119 119 119",
|
|
97
|
+
"--color-surface-900": "98 98 98", // #626262
|
|
98
|
+
}
|
|
99
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bexis2/bexis2-core-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -19,13 +19,15 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@playwright/test": "^1.36.2",
|
|
22
|
-
"@skeletonlabs/skeleton": "^
|
|
22
|
+
"@skeletonlabs/skeleton": "^2.5.0",
|
|
23
|
+
"@skeletonlabs/tw-plugin": "^0.2.4",
|
|
23
24
|
"@sveltejs/adapter-auto": "^2.0.0",
|
|
24
25
|
"@sveltejs/adapter-static": "^2.0.2",
|
|
25
26
|
"@sveltejs/kit": "^1.5.0",
|
|
26
27
|
"@sveltejs/package": "^2.0.2",
|
|
27
28
|
"@tailwindcss/forms": "^0.5.3",
|
|
28
29
|
"@tailwindcss/typography": "^0.5.9",
|
|
30
|
+
"@types/node": "^20.9.0",
|
|
29
31
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
30
32
|
"@typescript-eslint/parser": "^5.45.0",
|
|
31
33
|
"autoprefixer": "^10.4.14",
|
package/src/lib/TableView.svelte
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<h1>table</h1>
|
|
1
|
+
<h1>table</h1>
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
import { lintGutter, linter } from '@codemirror/lint';
|
|
10
10
|
import { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
11
11
|
import { oneDark } from '@codemirror/theme-one-dark';
|
|
12
|
-
import { Modal,
|
|
12
|
+
import { Modal, getModalStore} from '@skeletonlabs/skeleton';
|
|
13
|
+
const modalStore = getModalStore();
|
|
13
14
|
import { faMoon, faSave, faSun } from '@fortawesome/free-regular-svg-icons';
|
|
14
15
|
import { faArrowRotateLeft, faXmark } from '@fortawesome/free-solid-svg-icons';
|
|
15
16
|
import type { ThemeSpec } from 'svelte-codemirror-editor';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
type x = {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
let result: x = { name: 'david' };
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<h1>MyList</h1>
|
|
10
|
-
{result.name}
|
|
11
|
-
<b>from bexis-lib</b>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
type x = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
let result: x = { name: 'david' };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<h1>MyList</h1>
|
|
10
|
+
{result.name}
|
|
11
|
+
<b>from bexis-lib</b>
|