@magmamath/frontend-config 0.0.1-rc.6 → 0.0.1-rc.8
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/dist/index.d.mts +36 -35
- package/dist/index.d.ts +36 -35
- package/dist/index.js +38 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as effector from 'effector';
|
|
2
2
|
|
|
3
|
-
declare enum DateFormat {
|
|
3
|
+
declare const enum DateFormat {
|
|
4
4
|
FULL = "YYYY-MM-DD HH:mm",
|
|
5
5
|
FULL_US = "YYYY-MM-DD hh:mm A",
|
|
6
6
|
DAY_MONTH_YEAR = "DD-MM-YYYY",
|
|
@@ -13,20 +13,21 @@ declare enum DateFormat {
|
|
|
13
13
|
FULL_WITH_SECONDS = "DD MMM YYYY HH:mm:ss",
|
|
14
14
|
FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A"
|
|
15
15
|
}
|
|
16
|
-
declare
|
|
17
|
-
US
|
|
18
|
-
SV
|
|
19
|
-
'en-SE'
|
|
20
|
-
'sv-SE'
|
|
21
|
-
GB
|
|
22
|
-
'en-GB'
|
|
23
|
-
CA
|
|
24
|
-
'en-CA'
|
|
25
|
-
SCT
|
|
26
|
-
'en-SCT'
|
|
27
|
-
DE
|
|
28
|
-
'de-DE'
|
|
29
|
-
}
|
|
16
|
+
declare const DateLocale: {
|
|
17
|
+
readonly US: "en";
|
|
18
|
+
readonly SV: "sv";
|
|
19
|
+
readonly 'en-SE': "en";
|
|
20
|
+
readonly 'sv-SE': "sv";
|
|
21
|
+
readonly GB: "en";
|
|
22
|
+
readonly 'en-GB': "en";
|
|
23
|
+
readonly CA: "en";
|
|
24
|
+
readonly 'en-CA': "en";
|
|
25
|
+
readonly SCT: "en";
|
|
26
|
+
readonly 'en-SCT': "en";
|
|
27
|
+
readonly DE: "de";
|
|
28
|
+
readonly 'de-DE': "de";
|
|
29
|
+
};
|
|
30
|
+
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
30
31
|
|
|
31
32
|
declare enum Platform {
|
|
32
33
|
STUDENTS_WEB = "STUDENTS",
|
|
@@ -49,6 +50,11 @@ declare enum Environment {
|
|
|
49
50
|
PROD = "PROD"
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
declare enum MatrixMode {
|
|
54
|
+
SKILL = "SKILL",
|
|
55
|
+
STANDARD = "STANDARD"
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
type RegionEnv = Readonly<{
|
|
53
59
|
API_URL: string;
|
|
54
60
|
AUTH_WEB_URL: string;
|
|
@@ -118,25 +124,6 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
118
124
|
};
|
|
119
125
|
};
|
|
120
126
|
|
|
121
|
-
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
122
|
-
date: {
|
|
123
|
-
use24HourFormat: boolean;
|
|
124
|
-
locale: DateLocale;
|
|
125
|
-
formats: {
|
|
126
|
-
full: DateFormat;
|
|
127
|
-
dayMonthYear: DateFormat;
|
|
128
|
-
dayMonth: DateFormat;
|
|
129
|
-
hoursMinutes: DateFormat;
|
|
130
|
-
fullWithSeconds: DateFormat;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
declare enum MatrixMode {
|
|
136
|
-
SKILL = "SKILL",
|
|
137
|
-
STANDARD = "STANDARD"
|
|
138
|
-
}
|
|
139
|
-
|
|
140
127
|
type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
141
128
|
emails: {
|
|
142
129
|
studentsList: string;
|
|
@@ -187,6 +174,20 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
|
187
174
|
};
|
|
188
175
|
};
|
|
189
176
|
|
|
177
|
+
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
178
|
+
date: {
|
|
179
|
+
use24HourFormat: boolean;
|
|
180
|
+
locale: DateLocale;
|
|
181
|
+
formats: {
|
|
182
|
+
full: DateFormat;
|
|
183
|
+
dayMonthYear: DateFormat;
|
|
184
|
+
dayMonth: DateFormat;
|
|
185
|
+
hoursMinutes: DateFormat;
|
|
186
|
+
fullWithSeconds: DateFormat;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
|
|
190
191
|
type CommonLocaleConfig = Readonly<{
|
|
191
192
|
name: string;
|
|
192
193
|
languageName: string;
|
|
@@ -243,4 +244,4 @@ declare class AppConfigManager<P extends Platform> {
|
|
|
243
244
|
};
|
|
244
245
|
}
|
|
245
246
|
|
|
246
|
-
export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, Platform };
|
|
247
|
+
export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, MatrixMode, Platform };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as effector from 'effector';
|
|
2
2
|
|
|
3
|
-
declare enum DateFormat {
|
|
3
|
+
declare const enum DateFormat {
|
|
4
4
|
FULL = "YYYY-MM-DD HH:mm",
|
|
5
5
|
FULL_US = "YYYY-MM-DD hh:mm A",
|
|
6
6
|
DAY_MONTH_YEAR = "DD-MM-YYYY",
|
|
@@ -13,20 +13,21 @@ declare enum DateFormat {
|
|
|
13
13
|
FULL_WITH_SECONDS = "DD MMM YYYY HH:mm:ss",
|
|
14
14
|
FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A"
|
|
15
15
|
}
|
|
16
|
-
declare
|
|
17
|
-
US
|
|
18
|
-
SV
|
|
19
|
-
'en-SE'
|
|
20
|
-
'sv-SE'
|
|
21
|
-
GB
|
|
22
|
-
'en-GB'
|
|
23
|
-
CA
|
|
24
|
-
'en-CA'
|
|
25
|
-
SCT
|
|
26
|
-
'en-SCT'
|
|
27
|
-
DE
|
|
28
|
-
'de-DE'
|
|
29
|
-
}
|
|
16
|
+
declare const DateLocale: {
|
|
17
|
+
readonly US: "en";
|
|
18
|
+
readonly SV: "sv";
|
|
19
|
+
readonly 'en-SE': "en";
|
|
20
|
+
readonly 'sv-SE': "sv";
|
|
21
|
+
readonly GB: "en";
|
|
22
|
+
readonly 'en-GB': "en";
|
|
23
|
+
readonly CA: "en";
|
|
24
|
+
readonly 'en-CA': "en";
|
|
25
|
+
readonly SCT: "en";
|
|
26
|
+
readonly 'en-SCT': "en";
|
|
27
|
+
readonly DE: "de";
|
|
28
|
+
readonly 'de-DE': "de";
|
|
29
|
+
};
|
|
30
|
+
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
30
31
|
|
|
31
32
|
declare enum Platform {
|
|
32
33
|
STUDENTS_WEB = "STUDENTS",
|
|
@@ -49,6 +50,11 @@ declare enum Environment {
|
|
|
49
50
|
PROD = "PROD"
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
declare enum MatrixMode {
|
|
54
|
+
SKILL = "SKILL",
|
|
55
|
+
STANDARD = "STANDARD"
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
type RegionEnv = Readonly<{
|
|
53
59
|
API_URL: string;
|
|
54
60
|
AUTH_WEB_URL: string;
|
|
@@ -118,25 +124,6 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
118
124
|
};
|
|
119
125
|
};
|
|
120
126
|
|
|
121
|
-
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
122
|
-
date: {
|
|
123
|
-
use24HourFormat: boolean;
|
|
124
|
-
locale: DateLocale;
|
|
125
|
-
formats: {
|
|
126
|
-
full: DateFormat;
|
|
127
|
-
dayMonthYear: DateFormat;
|
|
128
|
-
dayMonth: DateFormat;
|
|
129
|
-
hoursMinutes: DateFormat;
|
|
130
|
-
fullWithSeconds: DateFormat;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
declare enum MatrixMode {
|
|
136
|
-
SKILL = "SKILL",
|
|
137
|
-
STANDARD = "STANDARD"
|
|
138
|
-
}
|
|
139
|
-
|
|
140
127
|
type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
141
128
|
emails: {
|
|
142
129
|
studentsList: string;
|
|
@@ -187,6 +174,20 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
|
187
174
|
};
|
|
188
175
|
};
|
|
189
176
|
|
|
177
|
+
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
178
|
+
date: {
|
|
179
|
+
use24HourFormat: boolean;
|
|
180
|
+
locale: DateLocale;
|
|
181
|
+
formats: {
|
|
182
|
+
full: DateFormat;
|
|
183
|
+
dayMonthYear: DateFormat;
|
|
184
|
+
dayMonth: DateFormat;
|
|
185
|
+
hoursMinutes: DateFormat;
|
|
186
|
+
fullWithSeconds: DateFormat;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
|
|
190
191
|
type CommonLocaleConfig = Readonly<{
|
|
191
192
|
name: string;
|
|
192
193
|
languageName: string;
|
|
@@ -243,4 +244,4 @@ declare class AppConfigManager<P extends Platform> {
|
|
|
243
244
|
};
|
|
244
245
|
}
|
|
245
246
|
|
|
246
|
-
export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, Platform };
|
|
247
|
+
export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, MatrixMode, Platform };
|
package/dist/index.js
CHANGED
|
@@ -17,21 +17,20 @@ var DateFormat = /* @__PURE__ */ ((DateFormat2) => {
|
|
|
17
17
|
DateFormat2["FULL_WITH_SECONDS_US"] = "DD MMM YYYY hh:mm:ss A";
|
|
18
18
|
return DateFormat2;
|
|
19
19
|
})(DateFormat || {});
|
|
20
|
-
var DateLocale =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})(DateLocale || {});
|
|
20
|
+
var DateLocale = {
|
|
21
|
+
US: "en",
|
|
22
|
+
SV: "sv",
|
|
23
|
+
"en-SE": "en",
|
|
24
|
+
"sv-SE": "sv",
|
|
25
|
+
GB: "en",
|
|
26
|
+
"en-GB": "en",
|
|
27
|
+
CA: "en",
|
|
28
|
+
"en-CA": "en",
|
|
29
|
+
SCT: "en",
|
|
30
|
+
"en-SCT": "en",
|
|
31
|
+
DE: "de",
|
|
32
|
+
"de-DE": "de"
|
|
33
|
+
};
|
|
35
34
|
|
|
36
35
|
// src/shared/common.constants.ts
|
|
37
36
|
var Platform = /* @__PURE__ */ ((Platform3) => {
|
|
@@ -58,6 +57,13 @@ var Environment = /* @__PURE__ */ ((Environment3) => {
|
|
|
58
57
|
return Environment3;
|
|
59
58
|
})(Environment || {});
|
|
60
59
|
|
|
60
|
+
// src/shared/matrix.constants.ts
|
|
61
|
+
var MatrixMode = /* @__PURE__ */ ((MatrixMode2) => {
|
|
62
|
+
MatrixMode2["SKILL"] = "SKILL";
|
|
63
|
+
MatrixMode2["STANDARD"] = "STANDARD";
|
|
64
|
+
return MatrixMode2;
|
|
65
|
+
})(MatrixMode || {});
|
|
66
|
+
|
|
61
67
|
// src/configs/env/env.common.mars.ts
|
|
62
68
|
var ENV_COMMON_MARS = {
|
|
63
69
|
DESMOS_API_KEY: "",
|
|
@@ -726,8 +732,8 @@ var ENV_DISTRICT_DE_PROD = {
|
|
|
726
732
|
TEACHERS_WEB_URL: ""
|
|
727
733
|
};
|
|
728
734
|
|
|
729
|
-
// src/configs/env/auth-web/
|
|
730
|
-
var
|
|
735
|
+
// src/configs/env/auth-web/sct/env.sct.prod.ts
|
|
736
|
+
var ENV_AUTH_WEB_SCT_PROD = {
|
|
731
737
|
...ENV_COMMON_PROD,
|
|
732
738
|
API_URL: "",
|
|
733
739
|
AUTH_WEB_URL: "",
|
|
@@ -740,8 +746,8 @@ var ENV_AUTH_WEB_DE_PROD = {
|
|
|
740
746
|
TEACHERS_WEB_URL: ""
|
|
741
747
|
};
|
|
742
748
|
|
|
743
|
-
// src/configs/env/auth-web/
|
|
744
|
-
var
|
|
749
|
+
// src/configs/env/auth-web/de/env.de.prod.ts
|
|
750
|
+
var ENV_AUTH_WEB_DE_PROD = {
|
|
745
751
|
...ENV_COMMON_PROD,
|
|
746
752
|
API_URL: "",
|
|
747
753
|
AUTH_WEB_URL: "",
|
|
@@ -1235,7 +1241,7 @@ var LOCALE_DISTRICT_US = {
|
|
|
1235
1241
|
contentLocale: "en-SE" /* US */,
|
|
1236
1242
|
date: {
|
|
1237
1243
|
use24HourFormat: false,
|
|
1238
|
-
locale:
|
|
1244
|
+
locale: DateLocale.US,
|
|
1239
1245
|
formats: {
|
|
1240
1246
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1241
1247
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1255,7 +1261,7 @@ var LOCALE_DISTRICT_SE = {
|
|
|
1255
1261
|
contentLocale: "sv-SE" /* SE */,
|
|
1256
1262
|
date: {
|
|
1257
1263
|
use24HourFormat: true,
|
|
1258
|
-
locale:
|
|
1264
|
+
locale: DateLocale.SV,
|
|
1259
1265
|
formats: {
|
|
1260
1266
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1261
1267
|
dayMonthYear: "DD-MM-YYYY" /* DAY_MONTH_YEAR */,
|
|
@@ -1275,7 +1281,7 @@ var LOCALE_DISTRICT_DE = {
|
|
|
1275
1281
|
contentLocale: "de-DE" /* DE */,
|
|
1276
1282
|
date: {
|
|
1277
1283
|
use24HourFormat: true,
|
|
1278
|
-
locale:
|
|
1284
|
+
locale: DateLocale.DE,
|
|
1279
1285
|
formats: {
|
|
1280
1286
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1281
1287
|
dayMonthYear: "DD-MM-YYYY" /* DAY_MONTH_YEAR */,
|
|
@@ -1295,7 +1301,7 @@ var LOCALE_DISTRICT_GB = {
|
|
|
1295
1301
|
contentLocale: "en-GB" /* GB */,
|
|
1296
1302
|
date: {
|
|
1297
1303
|
use24HourFormat: false,
|
|
1298
|
-
locale:
|
|
1304
|
+
locale: DateLocale.GB,
|
|
1299
1305
|
formats: {
|
|
1300
1306
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1301
1307
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1315,7 +1321,7 @@ var LOCALE_DISTRICT_SCT = {
|
|
|
1315
1321
|
contentLocale: "en-GB" /* GB */,
|
|
1316
1322
|
date: {
|
|
1317
1323
|
use24HourFormat: false,
|
|
1318
|
-
locale:
|
|
1324
|
+
locale: DateLocale.US,
|
|
1319
1325
|
formats: {
|
|
1320
1326
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1321
1327
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1335,7 +1341,7 @@ var LOCALE_DISTRICT_CA = {
|
|
|
1335
1341
|
contentLocale: "en-CA" /* CA */,
|
|
1336
1342
|
date: {
|
|
1337
1343
|
use24HourFormat: false,
|
|
1338
|
-
locale:
|
|
1344
|
+
locale: DateLocale.US,
|
|
1339
1345
|
formats: {
|
|
1340
1346
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1341
1347
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1361,7 +1367,7 @@ var LOCALE_TEACHERS_US = {
|
|
|
1361
1367
|
},
|
|
1362
1368
|
date: {
|
|
1363
1369
|
use24HourFormat: false,
|
|
1364
|
-
locale:
|
|
1370
|
+
locale: DateLocale.US,
|
|
1365
1371
|
formats: {
|
|
1366
1372
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1367
1373
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1416,7 +1422,7 @@ var LOCALE_TEACHERS_SE = {
|
|
|
1416
1422
|
},
|
|
1417
1423
|
date: {
|
|
1418
1424
|
use24HourFormat: true,
|
|
1419
|
-
locale:
|
|
1425
|
+
locale: DateLocale.SV,
|
|
1420
1426
|
formats: {
|
|
1421
1427
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1422
1428
|
hoursMinutes: "HH:mm" /* HOURS_MINUTES */,
|
|
@@ -1472,7 +1478,7 @@ var LOCALE_TEACHERS_GB = {
|
|
|
1472
1478
|
},
|
|
1473
1479
|
date: {
|
|
1474
1480
|
use24HourFormat: false,
|
|
1475
|
-
locale:
|
|
1481
|
+
locale: DateLocale.GB,
|
|
1476
1482
|
formats: {
|
|
1477
1483
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1478
1484
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1527,7 +1533,7 @@ var LOCALE_TEACHERS_CA = {
|
|
|
1527
1533
|
},
|
|
1528
1534
|
date: {
|
|
1529
1535
|
use24HourFormat: false,
|
|
1530
|
-
locale:
|
|
1536
|
+
locale: DateLocale.CA,
|
|
1531
1537
|
formats: {
|
|
1532
1538
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1533
1539
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1582,7 +1588,7 @@ var LOCALE_TEACHERS_SCT = {
|
|
|
1582
1588
|
},
|
|
1583
1589
|
date: {
|
|
1584
1590
|
use24HourFormat: false,
|
|
1585
|
-
locale:
|
|
1591
|
+
locale: DateLocale.SCT,
|
|
1586
1592
|
formats: {
|
|
1587
1593
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1588
1594
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1637,7 +1643,7 @@ var LOCALE_TEACHERS_DE = {
|
|
|
1637
1643
|
},
|
|
1638
1644
|
date: {
|
|
1639
1645
|
use24HourFormat: true,
|
|
1640
|
-
locale:
|
|
1646
|
+
locale: DateLocale.DE,
|
|
1641
1647
|
formats: {
|
|
1642
1648
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1643
1649
|
hoursMinutes: "HH:mm" /* HOURS_MINUTES */,
|
|
@@ -1769,6 +1775,7 @@ exports.DateFormat = DateFormat;
|
|
|
1769
1775
|
exports.DateLocale = DateLocale;
|
|
1770
1776
|
exports.Environment = Environment;
|
|
1771
1777
|
exports.Locale = Locale;
|
|
1778
|
+
exports.MatrixMode = MatrixMode;
|
|
1772
1779
|
exports.Platform = Platform;
|
|
1773
1780
|
//# sourceMappingURL=index.js.map
|
|
1774
1781
|
//# sourceMappingURL=index.js.map
|