@dflat-core/web 1.7.2101 → 1.7.2102

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dflat-core/web",
3
- "version": "1.7.2101",
3
+ "version": "1.7.2102",
4
4
  "description": "Librairies Angular Dflat (core, core-*, system-*) et assets partagés, empaquetées en un module npm unique.",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -54,7 +54,7 @@ input[type=radio] {
54
54
 
55
55
  #spinner {
56
56
  position: fixed;
57
- left: 0 !important;
57
+ inset-inline-start: 0 !important;
58
58
  top: 0 !important;
59
59
  transform: none !important;
60
60
 
@@ -92,3 +92,30 @@ input[type=radio] {
92
92
  .height100 {
93
93
  height: calc(100% - 1px);
94
94
  }
95
+
96
+ // Sens de lecture : --dflat-sens vaut -1 sous dir="rtl" (arabe). Les translateX des composants
97
+ // le multiplient, et les icônes de direction sont mises en miroir.
98
+ :root {
99
+ --dflat-sens: 1;
100
+ }
101
+
102
+ [dir="rtl"] {
103
+ --dflat-sens: -1;
104
+ }
105
+
106
+ [dir="rtl"] .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
107
+ transform: translateX(-0.75rem);
108
+ }
109
+
110
+ [dir="rtl"] .fa-caret-right,
111
+ [dir="rtl"] .fa-caret-left,
112
+ [dir="rtl"] .fa-chevron-right,
113
+ [dir="rtl"] .fa-chevron-left,
114
+ [dir="rtl"] .fa-arrow-right,
115
+ [dir="rtl"] .fa-arrow-left,
116
+ [dir="rtl"] .fa-long-arrow-right,
117
+ [dir="rtl"] .fa-long-arrow-left,
118
+ [dir="rtl"] .fa-angle-right,
119
+ [dir="rtl"] .fa-angle-left {
120
+ transform: scaleX(-1);
121
+ }
@@ -61,7 +61,7 @@ $search_bar: #8FA3DF;
61
61
 
62
62
  .right-topbar {
63
63
  display: flex;
64
- margin-left: auto;
64
+ margin-inline-start: auto;
65
65
  order: 2;
66
66
  }
67
67
 
@@ -93,7 +93,7 @@ $search_bar: #8FA3DF;
93
93
  flex-grow: 1;
94
94
  flex-shrink: 1;
95
95
  overflow: auto;
96
- margin-left: 0;
96
+ margin-inline-start: 0;
97
97
  }
98
98
 
99
99
  .left-topbar {
@@ -123,18 +123,18 @@ $search_bar: #8FA3DF;
123
123
  // width: 260px;
124
124
  // height: calc(100vh - 60px);
125
125
  // background: #1f2937;
126
- transform: translateX(-100%);
126
+ transform: translateX(calc(-100% * var(--dflat-sens, 1)));
127
127
  transition: transform 0.25s ease-in-out;
128
128
  z-index: 2000;
129
129
  // box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
130
130
  &.collapsed {
131
131
  // opacity: 0%;
132
- margin-left:-(variables.$sidebar_width);
132
+ margin-inline-start:-(variables.$sidebar_width);
133
133
  transition: ease-in 0.1s all;
134
134
  }
135
135
 
136
136
  &.uncollapsed {
137
- margin-left:0px;
137
+ margin-inline-start:0px;
138
138
  width: variables.$sidebar_width;
139
139
  min-width: variables.$sidebar_width;
140
140
  transition: ease-in 0.1s all;
@@ -144,7 +144,7 @@ $search_bar: #8FA3DF;
144
144
  .sidebar-hover-zone {
145
145
  position: fixed;
146
146
  top: 50px;
147
- left: 0;
147
+ inset-inline-start: 0;
148
148
  width: 50px; /* 10% of viewport */
149
149
  height: calc(100% - 50px);
150
150
  z-index: 1000;
@@ -171,8 +171,8 @@ $search_bar: #8FA3DF;
171
171
  width: auto;
172
172
  height: 80px;
173
173
  background: variables.$main-bg-color;
174
- padding: 0px 30px 0px 0px;
175
- margin-left: 0px;
174
+ padding-block: 0px; padding-inline: 0px 30px;
175
+ margin-inline-start: 0px;
176
176
  margin-top: 0px;
177
177
  cursor: pointer;
178
178
  //opacity: 100%;
@@ -187,7 +187,7 @@ $search_bar: #8FA3DF;
187
187
  // du texte : ce filtre le rend blanc, comme le nom de l'application à côté.
188
188
  filter: brightness(0) invert(1);
189
189
  padding: 5px 5px 5px 5px;
190
- margin-left: 0px;
190
+ margin-inline-start: 0px;
191
191
  margin-top: 5px;
192
192
  cursor: pointer;
193
193
  }
@@ -212,7 +212,7 @@ $search_bar: #8FA3DF;
212
212
 
213
213
 
214
214
  .search-bar-container {
215
- margin-left: 55px;
215
+ margin-inline-start: 55px;
216
216
  margin-top: -5px;
217
217
  }
218
218
 
@@ -220,7 +220,7 @@ $search_bar: #8FA3DF;
220
220
  border-radius: 5px;
221
221
  border: 1px solid $search_bar;
222
222
  background-color: variables.$main-bg-color;
223
- padding-left: 30px;
223
+ padding-inline-start: 30px;
224
224
  margin-top: 14px;
225
225
  width: 400px;
226
226
  color: white;
@@ -232,7 +232,7 @@ $search_bar: #8FA3DF;
232
232
  &::before {
233
233
  position: relative;
234
234
  display: block;
235
- float: left;
235
+ float: inline-start;
236
236
  width: 16px;
237
237
  height: 16px;
238
238
  content: " ";
@@ -240,7 +240,7 @@ $search_bar: #8FA3DF;
240
240
  -webkit-background-size: 16px 16px;
241
241
  background-image: url('../../images/search.svg');
242
242
  background-repeat: no-repeat;
243
- margin: 9px -40px 0px 9px;
243
+ margin-block: 9px 0px; margin-inline: 9px -40px;
244
244
  filter: text.$filter-blue-4;
245
245
  }
246
246
  }
@@ -259,7 +259,7 @@ $search_bar: #8FA3DF;
259
259
  height: 40px;
260
260
  background: variables.$main_bg_color;
261
261
  padding: 5px 5px 5px 5px;
262
- margin-left: 0px;
262
+ margin-inline-start: 0px;
263
263
  margin-top: 5px;
264
264
  cursor: pointer;
265
265
  }
@@ -18,8 +18,8 @@
18
18
  .js-app-droppable--zone:after {
19
19
  position: absolute;
20
20
  top: 0;
21
- left: 0;
22
- right: 0;
21
+ inset-inline-start: 0;
22
+ inset-inline-end: 0;
23
23
  bottom: 0;
24
24
  border-width: 2px;
25
25
  border-style: dashed;
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
  .form-control-feedback {
5
- float: right;
6
- margin-right: 10px;
5
+ float: inline-end;
6
+ margin-inline-end: 10px;
7
7
  font-size: 24px;
8
8
  line-height: 45px;
9
9
  z-index: 2;
@@ -50,7 +50,7 @@ input::-webkit-inner-spin-button {
50
50
  .ng-select.ng-invalid.ng-touched {
51
51
  .ng-select-container {
52
52
  border-color: #a94442 !important;
53
- padding-left: 8px;
53
+ padding-inline-start: 8px;
54
54
  }
55
55
 
56
56
  .ng-select-container {
@@ -63,12 +63,12 @@ input::-webkit-inner-spin-button {
63
63
  background-image: url('../images/error.png');
64
64
  background-size: contain;
65
65
  background-repeat: no-repeat;
66
- margin-right: 5px;
66
+ margin-inline-end: 5px;
67
67
  }
68
68
  }
69
69
  }
70
70
  .ng-select .ng-select-container {
71
- border-radius: 0px 5px 5px 0px;
71
+ border-start-start-radius: 0px; border-start-end-radius: 5px; border-end-end-radius: 5px; border-end-start-radius: 0px;
72
72
  }
73
73
 
74
74
  /*.Firefox */
@@ -82,7 +82,7 @@ input[type='number'] {
82
82
  display: flex;
83
83
  flex-direction: row-reverse;
84
84
  align-items: flex-end;
85
- margin-right: -10px;
85
+ margin-inline-end: -10px;
86
86
 
87
87
  .btn {
88
88
  border-radius: 3px;
@@ -218,5 +218,5 @@ alg-menu {
218
218
  }
219
219
 
220
220
  .action-label {
221
- margin-left: 3px;
221
+ margin-inline-start: 3px;
222
222
  }
@@ -671,6 +671,10 @@ export declare class TranslationService {
671
671
  static currentCulture: string | null;
672
672
  /** Clé du stockage local qui garde la langue choisie par l'utilisateur. */
673
673
  static readonly CHOSEN_CULTURE_KEY = "dflat_culture";
674
+ /** Langues écrites de droite à gauche (code ISO 639 de la culture). */
675
+ static readonly RIGHT_TO_LEFT_LANGUAGES: string[];
676
+ /** Sens de lecture d'une culture (`ar-MA` donne `rtl`). */
677
+ static direction(culture: string | null | undefined): 'ltr' | 'rtl';
674
678
  private readonly http;
675
679
  private readonly config;
676
680
  private readonly store;
@@ -831,7 +831,7 @@ export declare class IdentityUxModule {
831
831
  static ɵinj: i0.ɵɵInjectorDeclaration<IdentityUxModule>;
832
832
  }
833
833
  /** Composants des entités du module Identity (composants spécifiques), à déclarer dans son module Angular. */
834
- export declare const IdentityGeneratedComponents: (typeof DeviceTokenComponent | typeof PresentationProfileAssignmentComponent | typeof RoleComponent | typeof RolePermissionComponent | typeof UserAccountComponent | typeof UserAccountLoginComponent | typeof UserAccountRoleComponent | typeof UserAccountTokenComponent | typeof UserFavoriteComponent | typeof UserGroupDefinitionComponent | typeof UserGroupComponent | typeof UserHistoryComponent | typeof UserPermissionViewComponent | typeof UserSessionComponent)[];
834
+ export declare const IdentityGeneratedComponents: (typeof RoleComponent | typeof DeviceTokenComponent | typeof PresentationProfileAssignmentComponent | typeof RolePermissionComponent | typeof UserAccountComponent | typeof UserAccountLoginComponent | typeof UserAccountRoleComponent | typeof UserAccountTokenComponent | typeof UserFavoriteComponent | typeof UserGroupComponent | typeof UserGroupDefinitionComponent | typeof UserHistoryComponent | typeof UserPermissionViewComponent | typeof UserSessionComponent)[];
835
835
  /** Routes des composants des entités du module Identity (clé d'entité), à ajouter à RouterModule.forChild. */
836
836
  export declare const IdentityGeneratedRoutes: Routes;
837
837
  /**
@@ -1811,7 +1811,7 @@ export declare class MetaUxModule {
1811
1811
  static ɵinj: i0.ɵɵInjectorDeclaration<MetaUxModule>;
1812
1812
  }
1813
1813
  /** Composants des entités du module Meta (composants spécifiques), à déclarer dans son module Angular. */
1814
- export declare const MetaGeneratedComponents: (typeof CustomFieldGroupItemComponent | typeof CustomFieldGroupComponent | typeof CustomFieldComponent | typeof CustomFieldOptionsComponent | typeof CustomFieldGroupEntityComponent | typeof FilesComponent | typeof KeywordComponent | typeof MetaEntityFieldComponent | typeof MetaEntityComponent | typeof MetaEntityFormComponent | typeof MetaEntityFormFieldComponent | typeof MetaEntityFormSectionComponent | typeof MetaEntityKeywordComponent | typeof MetaEntityRelationComponent | typeof MetaEntityRelationDefinitionComponent | typeof MetaEntityTranslationComponent | typeof MetaEntityViewFieldComponent | typeof ParameterComponent | typeof ParameterSectionComponent | typeof ParameterValueComponent | typeof PermissionComponent | typeof PresentationProfileItemComponent | typeof ResourceTranslationComponent | typeof ResourceKeyComponent | typeof ResourceLanguageComponent | typeof VersionComponent)[];
1814
+ export declare const MetaGeneratedComponents: (typeof MetaEntityFieldComponent | typeof CustomFieldGroupEntityComponent | typeof CustomFieldOptionsComponent | typeof CustomFieldGroupComponent | typeof CustomFieldGroupItemComponent | typeof CustomFieldComponent | typeof FilesComponent | typeof KeywordComponent | typeof MetaEntityComponent | typeof MetaEntityFormComponent | typeof MetaEntityFormFieldComponent | typeof MetaEntityFormSectionComponent | typeof MetaEntityKeywordComponent | typeof MetaEntityRelationComponent | typeof MetaEntityRelationDefinitionComponent | typeof MetaEntityTranslationComponent | typeof MetaEntityViewFieldComponent | typeof ParameterComponent | typeof ParameterSectionComponent | typeof ParameterValueComponent | typeof PermissionComponent | typeof PresentationProfileItemComponent | typeof ResourceKeyComponent | typeof ResourceLanguageComponent | typeof ResourceTranslationComponent | typeof VersionComponent)[];
1815
1815
  /** Routes des composants des entités du module Meta (clé d'entité), à ajouter à RouterModule.forChild. */
1816
1816
  export declare const MetaGeneratedRoutes: Routes;
1817
1817
  /**
@@ -2955,7 +2955,7 @@ export declare class DflatAppModule {
2955
2955
  static ɵinj: i0.ɵɵInjectorDeclaration<DflatAppModule>;
2956
2956
  }
2957
2957
  /** Composants des entités du module System (composants spécifiques), à déclarer dans son module Angular. */
2958
- export declare const SystemGeneratedComponents: (typeof AddressComponent | typeof CityComponent | typeof SubcompanyComponent | typeof CompanyComponent | typeof CountryComponent | typeof CurrencyComponent | typeof DashboardComponent | typeof DashboardFilterComponent | typeof DashboardWidgetComponent | typeof DashboardWidgetDimensionComponent | typeof DashboardWidgetMeasureComponent | typeof DataSourceComponent | typeof DataSourceCompanyComponent | typeof DayInfoComponent | typeof ExchangeRateComponent | typeof NewsComponent | typeof RatingComponent | typeof RatingSummaryComponent | typeof TvaRateComponent | typeof UserAccountCompanyComponent | typeof UserAccountNewsComponent)[];
2958
+ export declare const SystemGeneratedComponents: (typeof TvaRateComponent | typeof ExchangeRateComponent | typeof DataSourceComponent | typeof AddressComponent | typeof CityComponent | typeof CompanyComponent | typeof CountryComponent | typeof CurrencyComponent | typeof DashboardComponent | typeof DashboardFilterComponent | typeof DashboardWidgetComponent | typeof DashboardWidgetDimensionComponent | typeof DashboardWidgetMeasureComponent | typeof DataSourceCompanyComponent | typeof DayInfoComponent | typeof NewsComponent | typeof RatingComponent | typeof RatingSummaryComponent | typeof SubcompanyComponent | typeof UserAccountCompanyComponent | typeof UserAccountNewsComponent)[];
2959
2959
  /** Routes des composants des entités du module System (clé d'entité), à ajouter à RouterModule.forChild. */
2960
2960
  export declare const SystemGeneratedRoutes: Routes;
2961
2961
  /**