@dflat-core/web 1.7.2101 → 1.7.2103
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/assets/buttons.scss +3 -3
- package/assets/components/bootstrap-lite.scss +36 -36
- package/assets/components/icons.scss +8 -8
- package/assets/components/login.scss +3 -3
- package/assets/components/modals.scss +5 -5
- package/assets/forms.scss +11 -11
- package/assets/modals.scss +6 -6
- package/assets/property.scss +1 -1
- package/assets/shared.scss +4 -4
- package/assets/site.scss +9 -9
- package/assets/text.scss +8 -8
- package/assets/theme.scss +1 -1
- package/fesm2022/dflat-core-web-core-services.mjs +23 -1
- package/fesm2022/dflat-core-web-core-services.mjs.map +1 -1
- package/fesm2022/dflat-core-web-core-ux.mjs +111 -110
- package/fesm2022/dflat-core-web-core-ux.mjs.map +1 -1
- package/fesm2022/dflat-core-web-identity-ux.mjs +6 -6
- package/fesm2022/dflat-core-web-identity-ux.mjs.map +1 -1
- package/fesm2022/dflat-core-web-meta-ux.mjs +12 -12
- package/fesm2022/dflat-core-web-meta-ux.mjs.map +1 -1
- package/fesm2022/dflat-core-web-system-model.mjs.map +1 -1
- package/fesm2022/dflat-core-web-system-ux.mjs +33 -33
- package/fesm2022/dflat-core-web-system-ux.mjs.map +1 -1
- package/package.json +1 -1
- package/scss/dflat-app.scss +28 -1
- package/scss/layout/default/default-layout.scss +14 -14
- package/scss/styles/drag-and-drop.scss +2 -2
- package/scss/styles/forms.scss +6 -6
- package/scss/styles/shared.scss +1 -1
- package/types/dflat-core-web-core-services.d.ts +4 -0
- package/types/dflat-core-web-identity-ux.d.ts +1 -1
- package/types/dflat-core-web-meta-ux.d.ts +1 -1
- package/types/dflat-core-web-system-model.d.ts +2 -2
- package/types/dflat-core-web-system-ux.d.ts +1 -1
|
@@ -2408,6 +2408,25 @@ var TranslationService = class TranslationService {
|
|
|
2408
2408
|
static {
|
|
2409
2409
|
this.CHOSEN_CULTURE_KEY = "dflat_culture";
|
|
2410
2410
|
}
|
|
2411
|
+
static {
|
|
2412
|
+
this.RIGHT_TO_LEFT_LANGUAGES = [
|
|
2413
|
+
"ar",
|
|
2414
|
+
"arc",
|
|
2415
|
+
"ckb",
|
|
2416
|
+
"dv",
|
|
2417
|
+
"fa",
|
|
2418
|
+
"he",
|
|
2419
|
+
"ps",
|
|
2420
|
+
"sd",
|
|
2421
|
+
"ug",
|
|
2422
|
+
"ur",
|
|
2423
|
+
"yi"
|
|
2424
|
+
];
|
|
2425
|
+
}
|
|
2426
|
+
static direction(culture) {
|
|
2427
|
+
const language = (culture ?? "").split(/[-_]/)[0].toLowerCase();
|
|
2428
|
+
return TranslationService.RIGHT_TO_LEFT_LANGUAGES.includes(language) ? "rtl" : "ltr";
|
|
2429
|
+
}
|
|
2411
2430
|
get apiUrl() {
|
|
2412
2431
|
return `${ServerUrl.apiUrl}/translations`;
|
|
2413
2432
|
}
|
|
@@ -2482,7 +2501,10 @@ var TranslationService = class TranslationService {
|
|
|
2482
2501
|
apply(dictionary) {
|
|
2483
2502
|
this.dictionary.set(dictionary);
|
|
2484
2503
|
TranslationService.currentCulture = dictionary.culture;
|
|
2485
|
-
if (typeof document !== "undefined" && document.documentElement)
|
|
2504
|
+
if (typeof document !== "undefined" && document.documentElement) {
|
|
2505
|
+
document.documentElement.lang = dictionary.culture;
|
|
2506
|
+
document.documentElement.dir = TranslationService.direction(dictionary.culture);
|
|
2507
|
+
}
|
|
2486
2508
|
}
|
|
2487
2509
|
chosenCulture() {
|
|
2488
2510
|
try {
|