@sumaris-net/ngx-components 2.12.11 → 2.12.13
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/doc/changelog.md +7 -0
- package/esm2022/src/app/core/account/account.page.mjs +5 -2
- package/esm2022/src/app/core/services/config/core.config.mjs +12 -2
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +3 -3
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +9 -9
- package/fesm2022/sumaris-net.ngx-components.mjs +25 -12
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/config/core.config.d.ts +4 -0
- package/src/assets/i18n/en-US.json +2 -2
- package/src/assets/i18n/en.json +2 -2
- package/src/assets/i18n/fr.json +2 -2
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.globals.scss +10 -1
- package/src/theme/_material.scss +1 -1
- package/src/theme/_mixins.scss +6 -0
- package/src/theme/_ngx-components.scss +7 -0
- package/src/theme/_theme.variables.scss +1 -0
package/package.json
CHANGED
|
@@ -4,6 +4,9 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
|
|
|
4
4
|
FAVICON: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
5
5
|
DEFAULT_LOCALE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
6
6
|
DEFAULT_LAT_LONG_FORMAT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use `ACCOUNT_LAT_LONG_FORMAT_ENABLE` instead
|
|
9
|
+
*/
|
|
7
10
|
DEFAULT_LAT_LONG_FORMAT_ENABLED: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
8
11
|
REGISTRATION_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
9
12
|
AUTH_TOKEN_TYPE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
@@ -32,5 +35,6 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
|
|
|
32
35
|
FORM_FIELD_DISABLED_BACKGROUND_COLOR: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
33
36
|
ANDROID_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
34
37
|
DB_TIMEZONE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
38
|
+
ACCOUNT_LAT_LONG_FORMAT_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
35
39
|
ACCOUNT_READONLY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
36
40
|
}>;
|
|
@@ -152,12 +152,12 @@
|
|
|
152
152
|
"ENABLE_GRAVATAR": "User > Enable Gravatar?",
|
|
153
153
|
"DEFAULT_LOCALE": "Default Language",
|
|
154
154
|
"DEFAULT_LATLONG_FORMAT": "Default lat/lon format",
|
|
155
|
-
"ENABLE_DEFAULT_LATLONG_FORMAT": "Show default lat/lon format",
|
|
156
155
|
"APP_MIN_VERSION": "App > Minimal compatible version (x.y.z)",
|
|
157
156
|
"HELP_URL": "App > User manual (URL)",
|
|
158
157
|
"FORUM_URL": "App > Forum address (URL)",
|
|
159
158
|
"ACCOUNT": {
|
|
160
|
-
"
|
|
159
|
+
"ENABLE_LATLONG_FORMAT": "My Account > Settings > Enable lat/lon format?",
|
|
160
|
+
"READONLY": "My Account > Readonly profile? (readonly option)"
|
|
161
161
|
},
|
|
162
162
|
"HOME": {
|
|
163
163
|
"LOGO_LARGE": "Home > Logo (max width 400px)",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -152,12 +152,12 @@
|
|
|
152
152
|
"ENABLE_GRAVATAR": "User > Enable Gravatar?",
|
|
153
153
|
"DEFAULT_LOCALE": "Default Language",
|
|
154
154
|
"DEFAULT_LATLONG_FORMAT": "Default lat/lon format",
|
|
155
|
-
"ENABLE_DEFAULT_LATLONG_FORMAT": "Show default lat/lon format",
|
|
156
155
|
"APP_MIN_VERSION": "App > Minimal compatible version (x.y.z)",
|
|
157
156
|
"HELP_URL": "App > User manual (URL)",
|
|
158
157
|
"FORUM_URL": "App > Forum address (URL)",
|
|
159
158
|
"ACCOUNT": {
|
|
160
|
-
"
|
|
159
|
+
"ENABLE_LATLONG_FORMAT": "My Account > Settings > Enable lat/lon format?",
|
|
160
|
+
"READONLY": "My Account > Readonly profile? (readonly option)"
|
|
161
161
|
},
|
|
162
162
|
"HOME": {
|
|
163
163
|
"LOGO_LARGE": "Home > Logo (max width 400px)",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -154,12 +154,12 @@
|
|
|
154
154
|
"ENABLE_GRAVATAR": "Utilisateur > Utiliser Gravatar ?",
|
|
155
155
|
"DEFAULT_LOCALE": "Langue par défaut",
|
|
156
156
|
"DEFAULT_LATLONG_FORMAT": "Format lat/lon par défaut",
|
|
157
|
-
"ENABLE_DEFAULT_LATLONG_FORMAT": "Affichage du format lat/lon par défaut",
|
|
158
157
|
"APP_MIN_VERSION": "App > Version minimale compatible (x.y.z)",
|
|
159
158
|
"HELP_URL": "App > Adresse du manuel utilisateur (URL)",
|
|
160
159
|
"FORUM_URL": "App > Adresse du forum (URL)",
|
|
161
160
|
"ACCOUNT": {
|
|
162
|
-
"
|
|
161
|
+
"ENABLE_LATLONG_FORMAT": "Mon Compte > Préférences > Activer le format lat/lon ?",
|
|
162
|
+
"READONLY": "Mon Compte > Profil en lecture seule ? (option non modifiable)"
|
|
163
163
|
},
|
|
164
164
|
"HOME": {
|
|
165
165
|
"LOGO_LARGE": "Accueil > Logo (largeur max 400px)",
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "2.12.
|
|
5
|
+
"version": "2.12.13",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
|
@@ -56,7 +56,14 @@ $candy-light-theme: mat.define-light-theme((
|
|
|
56
56
|
typography: mat.define-typography-config(),
|
|
57
57
|
density: 0,
|
|
58
58
|
));
|
|
59
|
-
|
|
59
|
+
$candy-dark-theme: mat.define-dark-theme((
|
|
60
|
+
color: (
|
|
61
|
+
primary: $candy-app-primary,
|
|
62
|
+
accent: $candy-app-accent,
|
|
63
|
+
warn: $candy-app-warn,
|
|
64
|
+
),
|
|
65
|
+
density: 0,
|
|
66
|
+
));
|
|
60
67
|
// --------------------------------------------------
|
|
61
68
|
// Material theme
|
|
62
69
|
// --------------------------------------------------
|
|
@@ -68,3 +75,5 @@ $mat-tab-animation-duration: 200ms !default;
|
|
|
68
75
|
$mat-toolbar-height-desktop: 64px !default;
|
|
69
76
|
$mat-toolbar-height-mobile: 56px !default;
|
|
70
77
|
$mat-toolbar-background-color: var(--ion-toolbar-background, var(--ion-background-color, whitesmoke)) !default;
|
|
78
|
+
$mat-option-min-height: 48px !default;
|
|
79
|
+
$mat-option-max-height: 48px !default;
|
package/src/theme/_material.scss
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
@include mat.core();
|
|
7
7
|
@include mat.all-component-themes($candy-light-theme);
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
// --------------------------------------------------
|
|
11
10
|
// Override material style
|
|
12
11
|
// --------------------------------------------------
|
|
@@ -75,6 +74,7 @@
|
|
|
75
74
|
.mat-mdc-option {
|
|
76
75
|
--mat-option-label-text-tracking: normal;
|
|
77
76
|
--mat-option-label-text-size: 16px;
|
|
77
|
+
min-height: var(--mat-option-min-height, 48px);
|
|
78
78
|
}
|
|
79
79
|
.mat-mdc-select {
|
|
80
80
|
--mat-select-trigger-text-font: inherit;
|
package/src/theme/_mixins.scss
CHANGED
|
@@ -123,6 +123,8 @@
|
|
|
123
123
|
|
|
124
124
|
--mat-toolbar-height: #{$mat-toolbar-height-desktop};
|
|
125
125
|
--mat-paginator-height: mat.$paginator-height;
|
|
126
|
+
--mat-option-min-height: #{$mat-option-min-height};
|
|
127
|
+
--mat-option-max-height: #{$mat-option-max-height};
|
|
126
128
|
--mat-toolbar-background-color: var(--ion-toolbar-background);
|
|
127
129
|
--mat-toolbar-container-background-color: var(--ion-toolbar-background);
|
|
128
130
|
--mat-toolbar-container-text-color: var(--ion-text-color);
|
|
@@ -158,6 +160,8 @@
|
|
|
158
160
|
|
|
159
161
|
@mixin css-variables-to-root-dark() {
|
|
160
162
|
|
|
163
|
+
@include mat.all-component-colors($candy-dark-theme);
|
|
164
|
+
|
|
161
165
|
// Change scroll bar style
|
|
162
166
|
color-scheme: dark;
|
|
163
167
|
|
|
@@ -173,6 +177,7 @@
|
|
|
173
177
|
--ion-text-color-rgb: #{$background-color-rgb-value};
|
|
174
178
|
--app-form-color: #{$background-color-value};
|
|
175
179
|
--app-form-color-rgb: #{$background-color-rgb-value};
|
|
180
|
+
--app-form-field-focus-background-color: rgba(#{$background-color-rgb-value}, 0.87);
|
|
176
181
|
|
|
177
182
|
// Step colors
|
|
178
183
|
--ion-color-step-50: #{$text-color-step-50};
|
|
@@ -195,4 +200,5 @@
|
|
|
195
200
|
--ion-color-step-900: #{$text-color-step-900};
|
|
196
201
|
--ion-color-step-950: #{$text-color-step-950};
|
|
197
202
|
|
|
203
|
+
|
|
198
204
|
}
|
|
@@ -216,6 +216,13 @@ mat-option:not(:last-of-type) {
|
|
|
216
216
|
&.hidden {
|
|
217
217
|
transform: scaleY(0) !important;
|
|
218
218
|
}
|
|
219
|
+
|
|
220
|
+
.mat-mdc-option {
|
|
221
|
+
// When option text wrap, do not increase the option height
|
|
222
|
+
ion-col.ion-text-wrap {
|
|
223
|
+
max-height: var(--mat-option-max-height, #{$mat-option-max-height});
|
|
224
|
+
}
|
|
225
|
+
}
|
|
219
226
|
}
|
|
220
227
|
}
|
|
221
228
|
.mat-mdc-autocomplete-panel {
|