@sumaris-net/ngx-components 2.11.7 → 2.11.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.11.7",
4
+ "version": "2.11.8",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -7,7 +7,10 @@ import { TranslateContextService } from '../services/translate-context.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare const APP_FORM_ERROR_I18N_KEYS: InjectionToken<ObjectMap<string>>;
9
9
  export interface IFormPathTranslator {
10
- translateFormPath: (path: string) => string;
10
+ translateFormPath: (path: string, opts?: {
11
+ i18nPrefix?: string;
12
+ i18nSuffix?: string;
13
+ }) => string;
11
14
  }
12
15
  export interface FormErrorTranslateOptions {
13
16
  i18nPrefix?: string;
@@ -23,7 +26,10 @@ export interface IFormControlPathTranslator {
23
26
  /**
24
27
  * @Deprecated use 'translateControlPath' from IFormPathTranslator interface
25
28
  */
26
- translateControlPath: (path: string) => string;
29
+ translateControlPath: (path: string, opts?: {
30
+ i18nPrefix?: string;
31
+ i18nSuffix?: string;
32
+ }) => string;
27
33
  }
28
34
  /**
29
35
  * @Deprecated use 'FormErrorTranslateOptions' instead
@@ -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.11.7",
5
+ "version": "2.11.8",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -138,8 +138,8 @@
138
138
  --app-form-color-disabled: #{$app-form-color-disabled};
139
139
  --app-form-color-computed: #{$app-form-color-computed};
140
140
  --app-form-field-background-color: #{$app-form-field-background-color};
141
- --app-form-field-focus-background-color: #{$app-form-field-focus-background-color};
142
141
  --app-form-field-background-color-shade: #{$app-form-color-background-color-shade};
142
+ --app-form-field-focus-background-color: #{$app-form-field-focus-background-color};
143
143
  --app-form-field-disabled-background-color: #{$app-form-field-disabled-background-color};
144
144
  --app-form-field-label-color: #{$app-form-field-label-color};
145
145
  --app-form-field-disabled-label-color: #{$app-form-field-disabled-label-color};
@@ -10,16 +10,20 @@ $app-table-cell-focus-background-color: transparent !default;
10
10
 
11
11
  $app-paginator-height: 34px !default;
12
12
  $app-form-buttons-bar-height: 56px !default;
13
+
14
+ // Form's field text and label
13
15
  $app-form-color: #{$text-color} !default;
14
16
  $app-form-color-rgb: #{$text-color-rgb} !default;
15
17
  $app-form-color-disabled: rgba(#{$text-color-rgb}, 0.55) !default;
16
18
  $app-form-color-computed: var(--ion-color-primary-tint) !default;
19
+ $app-form-field-label-color: rgba(#{$text-color-rgb}, 0.6) !default;
20
+ $app-form-field-disabled-label-color: rgba(#{$text-color-rgb}, 0.38) !default;
21
+
22
+ // Form's field background
17
23
  $app-form-field-background-color: #f5f5f5 !default; // Field background
24
+ $app-form-color-background-color-shade: #b9b9b9 !default; // Darker color (e.g. for toggle slide bar - see settings field 'dark mode')
18
25
  $app-form-field-focus-background-color: transparent !default; // Focused field background
19
- $app-form-color-background-color-shade: #b9b9b9 !default;
20
26
  $app-form-field-disabled-background-color: #fafafa !default;
21
- $app-form-field-label-color: rgba(#{$text-color-rgb}, 0.6) !default;
22
- $app-form-field-disabled-label-color: rgba(#{$text-color-rgb}, 0.38) !default;
23
27
 
24
28
  $app-select-option-border-color: rgba(#{$text-color-rgb}, 0.12) !default;
25
29
  $app-table-border-color: rgba(#{$text-color-rgb}, 0.08) !default;