@magmamath/frontend-config 0.0.1-rc.7 → 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 +30 -29
- package/dist/index.d.ts +30 -29
- package/dist/index.js +30 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -31
- 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",
|
|
@@ -123,20 +124,6 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
123
124
|
};
|
|
124
125
|
};
|
|
125
126
|
|
|
126
|
-
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
127
|
-
date: {
|
|
128
|
-
use24HourFormat: boolean;
|
|
129
|
-
locale: DateLocale;
|
|
130
|
-
formats: {
|
|
131
|
-
full: DateFormat;
|
|
132
|
-
dayMonthYear: DateFormat;
|
|
133
|
-
dayMonth: DateFormat;
|
|
134
|
-
hoursMinutes: DateFormat;
|
|
135
|
-
fullWithSeconds: DateFormat;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
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;
|
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",
|
|
@@ -123,20 +124,6 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
123
124
|
};
|
|
124
125
|
};
|
|
125
126
|
|
|
126
|
-
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
127
|
-
date: {
|
|
128
|
-
use24HourFormat: boolean;
|
|
129
|
-
locale: DateLocale;
|
|
130
|
-
formats: {
|
|
131
|
-
full: DateFormat;
|
|
132
|
-
dayMonthYear: DateFormat;
|
|
133
|
-
dayMonth: DateFormat;
|
|
134
|
-
hoursMinutes: DateFormat;
|
|
135
|
-
fullWithSeconds: DateFormat;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
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;
|
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) => {
|
|
@@ -733,8 +732,8 @@ var ENV_DISTRICT_DE_PROD = {
|
|
|
733
732
|
TEACHERS_WEB_URL: ""
|
|
734
733
|
};
|
|
735
734
|
|
|
736
|
-
// src/configs/env/auth-web/
|
|
737
|
-
var
|
|
735
|
+
// src/configs/env/auth-web/sct/env.sct.prod.ts
|
|
736
|
+
var ENV_AUTH_WEB_SCT_PROD = {
|
|
738
737
|
...ENV_COMMON_PROD,
|
|
739
738
|
API_URL: "",
|
|
740
739
|
AUTH_WEB_URL: "",
|
|
@@ -747,8 +746,8 @@ var ENV_AUTH_WEB_DE_PROD = {
|
|
|
747
746
|
TEACHERS_WEB_URL: ""
|
|
748
747
|
};
|
|
749
748
|
|
|
750
|
-
// src/configs/env/auth-web/
|
|
751
|
-
var
|
|
749
|
+
// src/configs/env/auth-web/de/env.de.prod.ts
|
|
750
|
+
var ENV_AUTH_WEB_DE_PROD = {
|
|
752
751
|
...ENV_COMMON_PROD,
|
|
753
752
|
API_URL: "",
|
|
754
753
|
AUTH_WEB_URL: "",
|
|
@@ -1242,7 +1241,7 @@ var LOCALE_DISTRICT_US = {
|
|
|
1242
1241
|
contentLocale: "en-SE" /* US */,
|
|
1243
1242
|
date: {
|
|
1244
1243
|
use24HourFormat: false,
|
|
1245
|
-
locale:
|
|
1244
|
+
locale: DateLocale.US,
|
|
1246
1245
|
formats: {
|
|
1247
1246
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1248
1247
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1262,7 +1261,7 @@ var LOCALE_DISTRICT_SE = {
|
|
|
1262
1261
|
contentLocale: "sv-SE" /* SE */,
|
|
1263
1262
|
date: {
|
|
1264
1263
|
use24HourFormat: true,
|
|
1265
|
-
locale:
|
|
1264
|
+
locale: DateLocale.SV,
|
|
1266
1265
|
formats: {
|
|
1267
1266
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1268
1267
|
dayMonthYear: "DD-MM-YYYY" /* DAY_MONTH_YEAR */,
|
|
@@ -1282,7 +1281,7 @@ var LOCALE_DISTRICT_DE = {
|
|
|
1282
1281
|
contentLocale: "de-DE" /* DE */,
|
|
1283
1282
|
date: {
|
|
1284
1283
|
use24HourFormat: true,
|
|
1285
|
-
locale:
|
|
1284
|
+
locale: DateLocale.DE,
|
|
1286
1285
|
formats: {
|
|
1287
1286
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1288
1287
|
dayMonthYear: "DD-MM-YYYY" /* DAY_MONTH_YEAR */,
|
|
@@ -1302,7 +1301,7 @@ var LOCALE_DISTRICT_GB = {
|
|
|
1302
1301
|
contentLocale: "en-GB" /* GB */,
|
|
1303
1302
|
date: {
|
|
1304
1303
|
use24HourFormat: false,
|
|
1305
|
-
locale:
|
|
1304
|
+
locale: DateLocale.GB,
|
|
1306
1305
|
formats: {
|
|
1307
1306
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1308
1307
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1322,7 +1321,7 @@ var LOCALE_DISTRICT_SCT = {
|
|
|
1322
1321
|
contentLocale: "en-GB" /* GB */,
|
|
1323
1322
|
date: {
|
|
1324
1323
|
use24HourFormat: false,
|
|
1325
|
-
locale:
|
|
1324
|
+
locale: DateLocale.US,
|
|
1326
1325
|
formats: {
|
|
1327
1326
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1328
1327
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1342,7 +1341,7 @@ var LOCALE_DISTRICT_CA = {
|
|
|
1342
1341
|
contentLocale: "en-CA" /* CA */,
|
|
1343
1342
|
date: {
|
|
1344
1343
|
use24HourFormat: false,
|
|
1345
|
-
locale:
|
|
1344
|
+
locale: DateLocale.US,
|
|
1346
1345
|
formats: {
|
|
1347
1346
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1348
1347
|
dayMonthYear: "YYYY-MM-DD" /* DAY_MONTH_YEAR_US */,
|
|
@@ -1368,7 +1367,7 @@ var LOCALE_TEACHERS_US = {
|
|
|
1368
1367
|
},
|
|
1369
1368
|
date: {
|
|
1370
1369
|
use24HourFormat: false,
|
|
1371
|
-
locale:
|
|
1370
|
+
locale: DateLocale.US,
|
|
1372
1371
|
formats: {
|
|
1373
1372
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1374
1373
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1423,7 +1422,7 @@ var LOCALE_TEACHERS_SE = {
|
|
|
1423
1422
|
},
|
|
1424
1423
|
date: {
|
|
1425
1424
|
use24HourFormat: true,
|
|
1426
|
-
locale:
|
|
1425
|
+
locale: DateLocale.SV,
|
|
1427
1426
|
formats: {
|
|
1428
1427
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1429
1428
|
hoursMinutes: "HH:mm" /* HOURS_MINUTES */,
|
|
@@ -1479,7 +1478,7 @@ var LOCALE_TEACHERS_GB = {
|
|
|
1479
1478
|
},
|
|
1480
1479
|
date: {
|
|
1481
1480
|
use24HourFormat: false,
|
|
1482
|
-
locale:
|
|
1481
|
+
locale: DateLocale.GB,
|
|
1483
1482
|
formats: {
|
|
1484
1483
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1485
1484
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1534,7 +1533,7 @@ var LOCALE_TEACHERS_CA = {
|
|
|
1534
1533
|
},
|
|
1535
1534
|
date: {
|
|
1536
1535
|
use24HourFormat: false,
|
|
1537
|
-
locale:
|
|
1536
|
+
locale: DateLocale.CA,
|
|
1538
1537
|
formats: {
|
|
1539
1538
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1540
1539
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1589,7 +1588,7 @@ var LOCALE_TEACHERS_SCT = {
|
|
|
1589
1588
|
},
|
|
1590
1589
|
date: {
|
|
1591
1590
|
use24HourFormat: false,
|
|
1592
|
-
locale:
|
|
1591
|
+
locale: DateLocale.SCT,
|
|
1593
1592
|
formats: {
|
|
1594
1593
|
dayMonth: "MMM DD" /* DAY_MONTH_US */,
|
|
1595
1594
|
hoursMinutes: "hh:mm A" /* HOURS_MINUTES_US */,
|
|
@@ -1644,7 +1643,7 @@ var LOCALE_TEACHERS_DE = {
|
|
|
1644
1643
|
},
|
|
1645
1644
|
date: {
|
|
1646
1645
|
use24HourFormat: true,
|
|
1647
|
-
locale:
|
|
1646
|
+
locale: DateLocale.DE,
|
|
1648
1647
|
formats: {
|
|
1649
1648
|
dayMonth: "DD MMM" /* DAY_MONTH */,
|
|
1650
1649
|
hoursMinutes: "HH:mm" /* HOURS_MINUTES */,
|