@sumaris-net/ngx-components 18.7.1-beta1 → 18.7.1-rc2

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.
Files changed (125) hide show
  1. package/doc/changelog.md +100 -0
  2. package/esm2022/public_api.mjs +6 -1
  3. package/esm2022/src/app/admin/users/users.mjs +2 -2
  4. package/esm2022/src/app/core/about/about.modal.mjs +4 -5
  5. package/esm2022/src/app/core/account/account.page.mjs +11 -11
  6. package/esm2022/src/app/core/account/password/change-password.page.mjs +2 -2
  7. package/esm2022/src/app/core/form/entity/entity-metadata.component.mjs +3 -3
  8. package/esm2022/src/app/core/form/list/list.form.mjs +2 -2
  9. package/esm2022/src/app/core/form/properties/properties.form.mjs +15 -6
  10. package/esm2022/src/app/core/form/properties/properties.table.mjs +2 -2
  11. package/esm2022/src/app/core/form/properties/properties.utils.mjs +9 -10
  12. package/esm2022/src/app/core/home/home.mjs +7 -5
  13. package/esm2022/src/app/core/menu/menu.component.mjs +19 -24
  14. package/esm2022/src/app/core/menu/menu.service.mjs +6 -3
  15. package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +1 -1
  16. package/esm2022/src/app/core/menu/testing/menu.testing.mjs +1 -1
  17. package/esm2022/src/app/core/register/register-confirm.page.mjs +1 -1
  18. package/esm2022/src/app/core/register/register.form.mjs +1 -1
  19. package/esm2022/src/app/core/services/account.service.mjs +3 -7
  20. package/esm2022/src/app/core/services/model/account.model.mjs +6 -6
  21. package/esm2022/src/app/core/services/model/entity.model.mjs +14 -5
  22. package/esm2022/src/app/core/services/network.service.mjs +1 -1
  23. package/esm2022/src/app/core/services/platform.service.mjs +27 -10
  24. package/esm2022/src/app/core/services/validator/base.validator.class.mjs +2 -2
  25. package/esm2022/src/app/core/settings/settings.page.mjs +1 -1
  26. package/esm2022/src/app/core/table/column/actions-column.component.mjs +3 -3
  27. package/esm2022/src/app/core/table/column/row-field.component.mjs +1 -1
  28. package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
  29. package/esm2022/src/app/core/table/testing/table2.testing.mjs +1 -1
  30. package/esm2022/src/app/shared/dates.mjs +13 -1
  31. package/esm2022/src/app/shared/directives/autoresize.directive.mjs +75 -0
  32. package/esm2022/src/app/shared/directives/autotitle.directive.mjs +11 -13
  33. package/esm2022/src/app/shared/directives/directives.module.mjs +5 -4
  34. package/esm2022/src/app/shared/file/uri.utils.mjs +6 -1
  35. package/esm2022/src/app/shared/form/field.component.mjs +10 -4
  36. package/esm2022/src/app/shared/forms.mjs +3 -1
  37. package/esm2022/src/app/shared/functions.mjs +7 -1
  38. package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +3 -2
  39. package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +11 -4
  40. package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +1 -1
  41. package/esm2022/src/app/shared/markdown/markdown.component.mjs +66 -93
  42. package/esm2022/src/app/shared/markdown/markdown.modal.mjs +37 -16
  43. package/esm2022/src/app/shared/markdown/markdown.module.mjs +3 -4
  44. package/esm2022/src/app/shared/markdown/markdown.service.mjs +8 -7
  45. package/esm2022/src/app/shared/markdown/markdown.utils.mjs +10 -1
  46. package/esm2022/src/app/shared/markdown/testing/markdown.test.mjs +17 -8
  47. package/esm2022/src/app/shared/markdown/testing/markdown.testing.module.mjs +5 -4
  48. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +71 -36
  49. package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +3 -3
  50. package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +2 -2
  51. package/esm2022/src/app/shared/material/chips/material.chips.mjs +13 -5
  52. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +19 -9
  53. package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +4 -4
  54. package/esm2022/src/app/shared/material/text/text-form.component.mjs +5 -4
  55. package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +3 -3
  56. package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +1 -1
  57. package/esm2022/src/app/shared/observables.mjs +5 -5
  58. package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +18 -2
  59. package/esm2022/src/app/shared/pipes/duration.pipe.mjs +3 -12
  60. package/esm2022/src/app/shared/pipes/html.pipes.mjs +18 -1
  61. package/esm2022/src/app/shared/pipes/observable.pipes.mjs +44 -0
  62. package/esm2022/src/app/shared/pipes/pipes.module.mjs +28 -6
  63. package/esm2022/src/app/shared/pipes/string.pipes.mjs +35 -4
  64. package/esm2022/src/app/shared/print/print.service.mjs +305 -0
  65. package/esm2022/src/app/shared/rx-state/rx-state.decorators.mjs +4 -4
  66. package/esm2022/src/app/shared/shared.module.mjs +4 -11
  67. package/esm2022/src/app/shared/toast/toast.testing.mjs +13 -11
  68. package/esm2022/src/app/shared/toast/toast.testing.module.mjs +5 -4
  69. package/esm2022/src/app/shared/toast/toasts.mjs +23 -33
  70. package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +3 -3
  71. package/esm2022/src/app/shared/toolbar/toolbar.mjs +7 -3
  72. package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +3 -3
  73. package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +2 -2
  74. package/esm2022/src/app/shared/validator/validators.mjs +12 -8
  75. package/esm2022/src/app/social/message/message.form.mjs +4 -3
  76. package/fesm2022/sumaris-net.ngx-components.mjs +3990 -3386
  77. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  78. package/package.json +1 -1
  79. package/public_api.d.ts +5 -0
  80. package/src/app/core/form/properties/properties.form.d.ts +2 -0
  81. package/src/app/core/home/home.d.ts +1 -1
  82. package/src/app/core/menu/menu.component.d.ts +3 -6
  83. package/src/app/core/services/model/account.model.d.ts +1 -1
  84. package/src/app/core/services/model/entity.model.d.ts +5 -3
  85. package/src/app/core/services/platform.service.d.ts +9 -2
  86. package/src/app/shared/dates.d.ts +4 -0
  87. package/src/app/shared/directives/autoresize.directive.d.ts +20 -0
  88. package/src/app/shared/directives/autotitle.directive.d.ts +3 -2
  89. package/src/app/shared/directives/directives.module.d.ts +4 -3
  90. package/src/app/shared/form/field.component.d.ts +3 -1
  91. package/src/app/shared/functions.d.ts +6 -0
  92. package/src/app/shared/image/gallery/image-gallery.component.d.ts +4 -1
  93. package/src/app/shared/markdown/markdown.component.d.ts +14 -8
  94. package/src/app/shared/markdown/markdown.modal.d.ts +18 -8
  95. package/src/app/shared/markdown/markdown.module.d.ts +1 -2
  96. package/src/app/shared/markdown/markdown.service.d.ts +0 -1
  97. package/src/app/shared/markdown/markdown.utils.d.ts +1 -0
  98. package/src/app/shared/markdown/testing/markdown.test.d.ts +4 -1
  99. package/src/app/shared/markdown/testing/markdown.testing.module.d.ts +2 -1
  100. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +2 -0
  101. package/src/app/shared/material/chips/material.chips.d.ts +1 -0
  102. package/src/app/shared/material/datetime/material.datetime.d.ts +1 -0
  103. package/src/app/shared/named-filter/named-filter-selector.component.d.ts +1 -1
  104. package/src/app/shared/observables.d.ts +2 -2
  105. package/src/app/shared/pipes/arrays.pipe.d.ts +8 -0
  106. package/src/app/shared/pipes/html.pipes.d.ts +7 -0
  107. package/src/app/shared/pipes/observable.pipes.d.ts +19 -0
  108. package/src/app/shared/pipes/pipes.module.d.ts +5 -4
  109. package/src/app/shared/pipes/string.pipes.d.ts +11 -1
  110. package/src/app/shared/print/print.service.d.ts +94 -0
  111. package/src/app/shared/rx-state/rx-state.decorators.d.ts +2 -2
  112. package/src/app/shared/shared.module.d.ts +2 -3
  113. package/src/app/shared/toast/toast.testing.d.ts +1 -1
  114. package/src/app/shared/toast/toast.testing.module.d.ts +2 -1
  115. package/src/app/shared/toast/toasts.d.ts +2 -3
  116. package/src/app/shared/toolbar/toolbar.d.ts +3 -1
  117. package/src/app/shared/validator/validators.d.ts +3 -1
  118. package/src/assets/i18n/en-US.json +3 -2
  119. package/src/assets/i18n/en.json +2 -1
  120. package/src/assets/i18n/fr.json +2 -1
  121. package/src/assets/manifest.json +1 -1
  122. package/src/theme/_mixins.scss +7 -0
  123. package/src/theme/_ngx-components.scss +53 -46
  124. package/src/theme/_ngx-components.table.scss +4 -1
  125. package/src/theme/_ngx-components.tabs.scss +11 -0
@@ -23,11 +23,12 @@ import * as i21 from "./selection.pipes";
23
23
  import * as i22 from "./badge.pipes";
24
24
  import * as i23 from "./html.pipes";
25
25
  import * as i24 from "./display-with.pipe";
26
- import * as i25 from "@angular/common";
27
- import * as i26 from "@ionic/angular";
28
- import * as i27 from "@ngx-translate/core";
26
+ import * as i25 from "./observable.pipes";
27
+ import * as i26 from "@angular/common";
28
+ import * as i27 from "@ionic/angular";
29
+ import * as i28 from "@ngx-translate/core";
29
30
  export declare class SharedPipesModule {
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
31
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe], [typeof i25.CommonModule, typeof i26.IonicModule, typeof i27.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncTextPipe, typeof i13.TruncHtmlPipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.SafeStylePipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe, typeof i25.FirstTruePipe, typeof i25.FirstFalsePipe, typeof i25.FirstPipe], [typeof i26.CommonModule, typeof i27.IonicModule, typeof i28.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i11.ArrayDistinctPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i14.IsValidDatePipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i13.StrReplacePipe, typeof i13.TruncTextPipe, typeof i13.TruncHtmlPipe, typeof i1.BooleanFormatPipe, typeof i15.TranslateContextPipe, typeof i15.TranslatablePipe, typeof i16.NgInitDirective, typeof i17.FormErrorPipe, typeof i17.FormErrorTranslatePipe, typeof i17.FormGetPipe, typeof i17.FormGetControlPipe, typeof i17.FormGetArrayPipe, typeof i17.FormGetGroupPipe, typeof i17.FormGetValuePipe, typeof i18.MatColorPipe, typeof i19.AsAnyPipe, typeof i19.AsArrayPipe, typeof i19.AsObservablePipe, typeof i19.AsFloatLabelTypePipe, typeof i20.MaskitoPlaceholderPipe, typeof i21.IsSelectedPipe, typeof i21.IsNotEmptySelectionPipe, typeof i21.IsEmptySelectionPipe, typeof i21.SelectionLengthPipe, typeof i21.IsMultipleSelectionPipe, typeof i21.IsSingleSelectionPipe, typeof i22.BadgeNumberPipe, typeof i19.AsBooleanPipe, typeof i23.SafeHtmlPipe, typeof i23.SafeStylePipe, typeof i23.NoHtmlPipe, typeof i24.DisplayWithPipe, typeof i25.FirstTruePipe, typeof i25.FirstFalsePipe, typeof i25.FirstPipe]>;
32
33
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
33
34
  }
@@ -52,7 +52,17 @@ export declare class StrIncludesPipe implements PipeTransform {
52
52
  static ɵpipe: i0.ɵɵPipeDeclaration<StrIncludesPipe, "strIncludes", false>;
53
53
  }
54
54
  export declare class StrReplacePipe implements PipeTransform {
55
- transform(input: any, pattern: any, replacement: any): any;
55
+ transform(input: string, searchValue: string | RegExp, replacement: string): any;
56
56
  static ɵfac: i0.ɵɵFactoryDeclaration<StrReplacePipe, never>;
57
57
  static ɵpipe: i0.ɵɵPipeDeclaration<StrReplacePipe, "replace", false>;
58
58
  }
59
+ export declare class TruncTextPipe implements PipeTransform {
60
+ transform(input: string, size?: number, ellipsis?: boolean, ellipsisText?: string): any;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncTextPipe, never>;
62
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncTextPipe, "truncText", false>;
63
+ }
64
+ export declare class TruncHtmlPipe implements PipeTransform {
65
+ transform(input: string, size?: number, ellipsis?: boolean, ellipsisText?: string): any;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncHtmlPipe, never>;
67
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncHtmlPipe, "truncHtml", false>;
68
+ }
@@ -0,0 +1,94 @@
1
+ import { ToastController } from '@ionic/angular';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { StorageService } from '../storage/storage.service';
4
+ import * as i0 from "@angular/core";
5
+ export interface PrintOptions {
6
+ id?: string | number;
7
+ title?: string;
8
+ showToast?: boolean;
9
+ toastMessage?: string;
10
+ style?: string;
11
+ }
12
+ export declare const PRINT_LOADING_STORAGE_KEY_PREFIX = "print-loading-";
13
+ export declare const PRINT_ID_QUERY_PARAM = "print-id";
14
+ export declare class PrintService {
15
+ protected toastController: ToastController;
16
+ protected translate: TranslateService;
17
+ protected storage: StorageService;
18
+ protected document: Document;
19
+ private _printId;
20
+ constructor(toastController: ToastController, translate: TranslateService, storage: StorageService, document: Document);
21
+ nextJobId(): number;
22
+ /**
23
+ * Extracts and returns the job ID from a given URL.
24
+ *
25
+ * @param {string} [url] - The URL from which to extract the job ID. If not provided, `window.location.href` will be used.
26
+ * @return {number | undefined} The extracted job ID as a number, or `undefined` if the job ID is not present or invalid.
27
+ */
28
+ getJobId(url?: string): string | undefined;
29
+ /**
30
+ * Determines whether the provided URL or the current page's URL contains
31
+ * a specific query parameter, indicating it's a printing-related URL.
32
+ *
33
+ * @param {string} [url] - The optional URL to check. If not provided, the current page's URL is used.
34
+ * @param {string} [queryParam='print-id'] - The query parameter to look for, defaulting to 'print-id'.
35
+ * @return {boolean} Returns true if the query parameter is found in the URL; otherwise, false.
36
+ */
37
+ isPrintingUrl(url?: string, queryParam?: string): boolean;
38
+ printElement(element: HTMLElement, opts?: PrintOptions): Promise<number | string>;
39
+ printHTML(html: string, opts?: PrintOptions): Promise<number | string>;
40
+ /**
41
+ * Prints the content of a URL by rendering it in an iframe.
42
+ *
43
+ * @param {string} url The URL of the content to print. This parameter is required.
44
+ * @param {Omit<PrintOptions, 'style'>} [opts] Optional settings for printing, excluding the 'style' option.
45
+ * @return {Promise<number>} A promise that resolves to the ID of the print job.
46
+ */
47
+ printUrl(url: string, opts?: Omit<PrintOptions, 'style'>): Promise<number | string>;
48
+ /**
49
+ * Prints the content of the specified iframe element.
50
+ *
51
+ * @param {HTMLIFrameElement} iframe - The iframe element whose content needs to be printed. Must be a valid and loaded iframe element.
52
+ * @param {PrintOptions} [opts] - Optional parameters for the print operation, which may include options for toast messages and job configuration.
53
+ * @return {Promise<number>} A promise that resolves to the unique ID of the print job.
54
+ * @throws Will throw an error if the required 'iframe' argument is missing or invalid.
55
+ */
56
+ printIframe(iframe: HTMLIFrameElement, opts?: PrintOptions): Promise<number | string>;
57
+ markAsLoading(id: string | number): Promise<void>;
58
+ markAsLoaded(id: string | number): Promise<void>;
59
+ isLoaded(id: string | number): Promise<boolean>;
60
+ isLoading(id: string | number): Promise<boolean>;
61
+ protected createPrintIframeByUrl(url: string, opts?: {
62
+ id?: number | string;
63
+ }): HTMLIFrameElement;
64
+ protected createPrintIframeByHtml(html: string, opts?: {
65
+ title?: string;
66
+ inlineStyle?: string;
67
+ }): HTMLIFrameElement;
68
+ /**
69
+ * Applies the styles from the provided document, including external stylesheets and inline styles,
70
+ * to the specified iframe's document.
71
+ *
72
+ * @param {HTMLIFrameElement} iframe - The iframe to which the styles are applied.
73
+ * @return {void} Does not return a value.
74
+ */
75
+ protected applyDocumentStyleToIframe(iframe: HTMLIFrameElement): void;
76
+ protected waitIdle(iframe: HTMLIFrameElement, opts?: {
77
+ id?: number | string;
78
+ timeout?: number;
79
+ }): Promise<void>;
80
+ /**
81
+ * Triggers the print functionality of the given iframe and resolves or rejects based on the print completion or timeout.
82
+ *
83
+ * @param {HTMLIFrameElement} iframe - The iframe element to be printed.
84
+ * @param {{timeout?: number}} [opts] - An optional configuration object.
85
+ * @param {number} [opts.timeout] - The maximum time in milliseconds to wait for the print to complete before rejecting the promise.
86
+ * @return {Promise<void>} A promise that resolves after the print is completed or rejects if a timeout occurs.
87
+ */
88
+ protected print(iframe: HTMLIFrameElement, opts?: {
89
+ timeout?: number;
90
+ }): Promise<void>;
91
+ private showToast;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<PrintService, never>;
93
+ static ɵprov: i0.ɵɵInjectableDeclaration<PrintService>;
94
+ }
@@ -1,5 +1,5 @@
1
- import { ProjectValueReducer } from '@rx-angular/state/lib/rx-state.service';
2
- export declare function enableRxStateProduction(): void;
1
+ import { ProjectValueReducer } from '@rx-angular/state';
2
+ export declare function enableRxStateProdMode(): void;
3
3
  export declare function RxStateRegister(): PropertyDecorator;
4
4
  export declare function RxStateProperty<T = any, K extends keyof T = any, V extends T[K] = any>(statePropertyName?: string | K, projectValueReducer?: ProjectValueReducer<T, K, V>): PropertyDecorator;
5
5
  export declare function RxStateSelect<T = any>(statePropertyName?: string | keyof T | '$', opts?: {
@@ -20,8 +20,7 @@ import * as i16 from "./pipes/pipes.module";
20
20
  import * as i17 from "./hotkeys/shared-hotkeys.module";
21
21
  import * as i18 from "./toolbar/toolbar.module";
22
22
  import * as i19 from "./named-filter/named-filter.module";
23
- import * as i20 from "./markdown/markdown.module";
24
- import * as i21 from "ngx-jdenticon";
23
+ import * as i20 from "ngx-jdenticon";
25
24
  export declare function scrollFactory(overlay: Overlay): () => CloseScrollStrategy;
26
25
  export interface SharedModuleConfig {
27
26
  loader?: Provider;
@@ -29,6 +28,6 @@ export interface SharedModuleConfig {
29
28
  export declare class SharedModule {
30
29
  static forRoot(config?: SharedModuleConfig): ModuleWithProviders<SharedModule>;
31
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.AppFormField, typeof i2.AppLoadingSpinner, typeof i3.UploadFileComponent, typeof i4.UploadFilePopover, typeof i5.SharedTestsPage], [typeof i6.CommonModule, typeof i7.IonicModule, typeof i8.ReactiveFormsModule, typeof i9.TranslateModule, typeof i10.ColorPickerModule, typeof i11.DragDropModule, typeof i12.MarkdownModule, typeof i13.RxStateModule, typeof i14.SharedMaterialModule, typeof i15.SharedDirectivesModule, typeof i16.SharedPipesModule, typeof i17.SharedHotkeysModule, typeof i18.SharedToolbarModule, typeof i19.SharedNamedFilterModule, typeof i20.SharedMarkdownModule], [typeof i6.CommonModule, typeof i7.IonicModule, typeof i9.TranslateModule, typeof i8.ReactiveFormsModule, typeof i10.ColorPickerModule, typeof i11.DragDropModule, typeof i12.MarkdownModule, typeof i21.NgxJdenticonModule, typeof i13.RxStateModule, typeof i14.SharedMaterialModule, typeof i15.SharedDirectivesModule, typeof i16.SharedPipesModule, typeof i17.SharedHotkeysModule, typeof i18.SharedToolbarModule, typeof i19.SharedNamedFilterModule, typeof i20.SharedMarkdownModule, typeof i1.AppFormField, typeof i2.AppLoadingSpinner, typeof i3.UploadFileComponent, typeof i4.UploadFilePopover, typeof i5.SharedTestsPage]>;
31
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.AppFormField, typeof i2.AppLoadingSpinner, typeof i3.UploadFileComponent, typeof i4.UploadFilePopover, typeof i5.SharedTestsPage], [typeof i6.CommonModule, typeof i7.IonicModule, typeof i8.ReactiveFormsModule, typeof i9.TranslateModule, typeof i10.ColorPickerModule, typeof i11.DragDropModule, typeof i12.MarkdownModule, typeof i13.RxStateModule, typeof i14.SharedMaterialModule, typeof i15.SharedDirectivesModule, typeof i16.SharedPipesModule, typeof i17.SharedHotkeysModule, typeof i18.SharedToolbarModule, typeof i19.SharedNamedFilterModule], [typeof i6.CommonModule, typeof i7.IonicModule, typeof i9.TranslateModule, typeof i8.ReactiveFormsModule, typeof i10.ColorPickerModule, typeof i11.DragDropModule, typeof i12.MarkdownModule, typeof i20.NgxJdenticonModule, typeof i13.RxStateModule, typeof i14.SharedMaterialModule, typeof i15.SharedDirectivesModule, typeof i16.SharedPipesModule, typeof i17.SharedHotkeysModule, typeof i18.SharedToolbarModule, typeof i19.SharedNamedFilterModule, typeof i1.AppFormField, typeof i2.AppLoadingSpinner, typeof i3.UploadFileComponent, typeof i4.UploadFilePopover, typeof i5.SharedTestsPage]>;
33
32
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
34
33
  }
@@ -3,7 +3,7 @@ import { ShowToastOptions } from './toasts';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ToastTestingPage {
5
5
  private injector;
6
- readonly defaultOptions: ShowToastOptions;
6
+ protected options: ShowToastOptions;
7
7
  constructor(injector: Injector);
8
8
  showToast(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
9
9
  showInfo(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
4
4
  import * as i3 from "@ionic/angular";
5
5
  import * as i4 from "@ngx-translate/core";
6
6
  import * as i5 from "@angular/router";
7
+ import * as i6 from "@angular/forms";
7
8
  export declare class ToastTestingModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastTestingModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<ToastTestingModule, [typeof i1.ToastTestingPage], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.TranslateModule, typeof i5.RouterModule], [typeof i5.RouterModule, typeof i1.ToastTestingPage]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ToastTestingModule, [typeof i1.ToastTestingPage], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.TranslateModule, typeof i5.RouterModule, typeof i6.FormsModule], [typeof i5.RouterModule, typeof i1.ToastTestingPage]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<ToastTestingModule>;
11
12
  }
@@ -1,6 +1,6 @@
1
- import { AnimationController, ToastController } from '@ionic/angular';
1
+ import { ToastController } from '@ionic/angular';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
- import { AnimationBuilder, OverlayEventDetail, ToastOptions } from '@ionic/core';
3
+ import { OverlayEventDetail, ToastOptions } from '@ionic/core';
4
4
  import { Injector } from '@angular/core';
5
5
  export declare interface ShowToastOptions extends ToastOptions {
6
6
  type?: 'error' | 'warning' | 'info';
@@ -13,5 +13,4 @@ export declare class Toasts {
13
13
  static stackSize: number;
14
14
  static showSimple<T = any>(injector: Injector, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
15
15
  static show<T = any>(toastController: ToastController, translate: TranslateService, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
16
- static createEnterAnimation(animationCtrl: AnimationController, currentOffset: number, opts: ShowToastOptions): AnimationBuilder;
17
16
  }
@@ -14,6 +14,7 @@ export declare abstract class ToolbarToken {
14
14
  abstract goBack(): Promise<boolean>;
15
15
  abstract canGoBack: boolean;
16
16
  }
17
+ export declare const TOOLBAR_HEADER_ID = "app-toolbar-header";
17
18
  export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy {
18
19
  private route;
19
20
  private router;
@@ -32,6 +33,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
32
33
  title: string;
33
34
  color: AppColors;
34
35
  class: string;
36
+ id: string;
35
37
  set backHref(value: string);
36
38
  get backHref(): string;
37
39
  set defaultBackHref(value: string);
@@ -59,7 +61,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
59
61
  protected ionSearchBarChanged(event: Event): void;
60
62
  protected markForCheck(): void;
61
63
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, [null, null, null, null, null, { optional: true; }]>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "progressBarMode": { "alias": "progressBarMode"; "required": false; }; "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; "class": { "alias": "class"; "required": false; }; "backHref": { "alias": "backHref"; "required": false; }; "defaultBackHref": { "alias": "defaultBackHref"; "required": false; }; "hasValidate": { "alias": "hasValidate"; "required": false; }; "hasClose": { "alias": "hasClose"; "required": false; }; "hasSearch": { "alias": "hasSearch"; "required": false; }; "canGoBack": { "alias": "canGoBack"; "required": false; }; "canShowMenu": { "alias": "canShowMenu"; "required": false; }; }, { "onValidate": "onValidate"; "onClose": "onClose"; "onValidateAndClose": "onValidateAndClose"; "onBackClick": "onBackClick"; "onSearch": "onSearch"; }, never, ["[slot=start]", "ion-title, ion-segment", "ion-buttons[slot=end]", "[slot=end]"], false, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "progressBarMode": { "alias": "progressBarMode"; "required": false; }; "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; "class": { "alias": "class"; "required": false; }; "id": { "alias": "id"; "required": false; }; "backHref": { "alias": "backHref"; "required": false; }; "defaultBackHref": { "alias": "defaultBackHref"; "required": false; }; "hasValidate": { "alias": "hasValidate"; "required": false; }; "hasClose": { "alias": "hasClose"; "required": false; }; "hasSearch": { "alias": "hasSearch"; "required": false; }; "canGoBack": { "alias": "canGoBack"; "required": false; }; "canShowMenu": { "alias": "canShowMenu"; "required": false; }; }, { "onValidate": "onValidate"; "onClose": "onClose"; "onValidateAndClose": "onValidateAndClose"; "onBackClick": "onBackClick"; "onSearch": "onSearch"; }, never, ["[slot=start]", "ion-title, ion-segment", "ion-buttons[slot=end]", "[slot=end]"], false, never>;
63
65
  static ngAcceptInputType_hasValidate: unknown;
64
66
  static ngAcceptInputType_hasClose: unknown;
65
67
  static ngAcceptInputType_hasSearch: unknown;
@@ -48,7 +48,9 @@ export declare class SharedValidators {
48
48
  * @param precision
49
49
  */
50
50
  static precision(precision: number): ValidatorFn;
51
- static validDate(control: UntypedFormControl): ValidationErrors | null;
51
+ static validDateTime(requiredTime?: boolean): ValidatorFn;
52
+ static validDate: ValidatorFn;
53
+ static validDateAllowNoTime: ValidatorFn;
52
54
  static dateIsAfter(previousValue: Moment, errorParam: string, granularity?: unitOfTime.StartOf): ValidatorFn;
53
55
  static dateIsBefore(maxValue: Moment, errorParam: string, granularity?: unitOfTime.StartOf): ValidatorFn;
54
56
  static dateRangeEnd(startDateFieldName: string, msg?: string): ValidatorFn;
@@ -635,7 +635,7 @@
635
635
  "FIELD_NOT_EQUALS": "Value not equals",
636
636
  "SPACE_NOT_ALLOW": "Spaces or special characters not allowed",
637
637
  "SCRYPT_ERROR": "Unable to create account keys",
638
- "INVALID_OR_INCOMPLETE_FILL": "Invalid or incomplete fill",
638
+ "INVALID_OR_INCOMPLETE_FILL": "Incomplete or invalid entry",
639
639
  "UNKNOWN_ACCOUNT_EMAIL": "No account matches this email.",
640
640
  "BAD_PASSWORD": "Incorrect password.",
641
641
  "EMAIL_ALREADY_REGISTERED": "Email already registered",
@@ -690,7 +690,8 @@
690
690
  "SUBSCRIBE_ERROR": "Error while subscribe to changes",
691
691
  "FIELD_NOT_EXISTS": "Value doesn't exist",
692
692
  "FIREFOX_NO_STORAGE": "The application cannot run with Firefox in 'private' mode or without keeping navigation history",
693
- "FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>"
693
+ "FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>",
694
+ "INCOMPATIBLE_WEB_BROWSER": "Feature not compatible with your web browser. <small><br/>Please contact your administrator, or try another web browser.</small>"
694
695
  },
695
696
  "CONFIRM": {
696
697
  "ALERT_HEADER": "Confirmation",
@@ -689,7 +689,8 @@
689
689
  "SUBSCRIBE_ERROR": "Error while subscribe to changes",
690
690
  "FIELD_NOT_EXISTS": "Value doesn't exist",
691
691
  "FIREFOX_NO_STORAGE": "The application cannot run with Firefox in 'private' mode or without keeping navigation history",
692
- "FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>"
692
+ "FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>",
693
+ "INCOMPATIBLE_WEB_BROWSER": "Feature not compatible with your web browser. <small><br/>Please contact your administrator, or try another web browser.</small>"
693
694
  },
694
695
  "CONFIRM": {
695
696
  "ALERT_HEADER": "Confirmation",
@@ -691,7 +691,8 @@
691
691
  "SUBSCRIBE_ERROR": "Échec de l'abonnement distant aux modifications",
692
692
  "FIELD_NOT_EXISTS": "Cette valeur n'existe pas",
693
693
  "FIREFOX_NO_STORAGE": "L'application ne peut pas fonctionner sur Firefox en mode 'navigation privée' ou si la conservation de l'historique est désactivée",
694
- "FEATURE_NOT_IMPLEMENTED": "Fonctionnalité non implémentée ! <small><br/>Veuillez contacter votre administrateur.</small>"
694
+ "FEATURE_NOT_IMPLEMENTED": "Fonctionnalité non implémentée ! <small><br/>Veuillez contacter votre administrateur.</small>",
695
+ "INCOMPATIBLE_WEB_BROWSER": "Fonctionnalité non compatible avec votre navigateur Internet. <small><br/>Veuillez contacter votre administrateur, ou tester un autre navigateur.</small>"
695
696
  },
696
697
  "CONFIRM": {
697
698
  "ALERT_HEADER": "Confirmation",
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.6.1",
5
+ "version": "18.6.63",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -118,11 +118,15 @@
118
118
 
119
119
  --expansion-panel-padding: var(--ion-padding);
120
120
  --expansion-panel-header-padding: var(--ion-padding);
121
+ --mat-expansion-container-background-color: var(--ion-background-color);
122
+ --mat-expansion-container-text-color: var(--ion-text-color);
121
123
 
122
124
  --mat-tab-link-height: #{$mat-tab-link-height};
123
125
  --mat-tab-bar-height: #{$mat-tab-bar-height};
124
126
 
125
127
  --mat-toolbar-height: #{$mat-toolbar-height-desktop};
128
+ --mat-toolbar-standard-height: #{$mat-toolbar-height-desktop};
129
+ --mat-toolbar-mobile-height: #{$mat-toolbar-height-mobile};
126
130
  --mat-paginator-height: mat.$paginator-height;
127
131
  --mat-option-min-height: #{$mat-option-min-height};
128
132
  --mat-option-max-height: #{$mat-option-max-height};
@@ -131,6 +135,8 @@
131
135
  --mat-toolbar-container-text-color: var(--ion-text-color);
132
136
  --mat-table-background-color: var(--ion-background-color);
133
137
 
138
+ --as-gutter-background-color: var(--ion-toolbar-background);
139
+
134
140
  --app-table-header-height: #{$app-table-header-height};
135
141
  --app-paginator-height: #{$app-paginator-height};
136
142
  --app-toolbar-height: #{$app-toolbar-height};
@@ -152,6 +158,7 @@
152
158
 
153
159
  @mixin css-variables-to-root-mobile() {
154
160
  --mat-toolbar-height: #{$mat-toolbar-height-mobile};
161
+ --mat-toolbar-standard-height: #{$mat-toolbar-height-mobile};
155
162
 
156
163
  // Disable form footer, in mobile
157
164
  --app-form-buttons-bar-height: 0px;
@@ -6,7 +6,7 @@ html {
6
6
  }
7
7
 
8
8
  *::selection {
9
- background: var(--ion-color-shade, rgba(0, 0, 0, 0.3));
9
+ background: var(--ion-color-shade, rgba(var(--ion-color-text-rgb, 0, 0, 0), 0.3));
10
10
  }
11
11
 
12
12
  // Text style
@@ -178,6 +178,7 @@ mat-option {
178
178
  .mdc-list-item__primary-text {
179
179
  display: inline-block;
180
180
  flex-grow: 1;
181
+ box-sizing: border-box;
181
182
  }
182
183
  .mat-option-text:not(:has(ion-row)),
183
184
  .mat-option-text:has(ion-searchbar),
@@ -188,6 +189,7 @@ mat-option {
188
189
  .mat-option-text:has(ion-row),
189
190
  .mdc-list-item__primary-text:has(ion-row) {
190
191
  padding: 0;
192
+ width: 100%; // Fix sumaris-app#943
191
193
  }
192
194
  mat-autocomplete-footer {
193
195
  .mat-option-text,
@@ -243,49 +245,36 @@ mat-option:not(:last-of-type) {
243
245
  &:has(.mat-select-panel-fit-content) {
244
246
  --min-width: fit-content !important;
245
247
  }
246
- }
247
248
 
249
+ &:has(.min-width-medium),
250
+ &:has(.mat-mdc-autocomplete-panel-medium-size) {
251
+ --min-width: 300px;
252
+ }
248
253
 
249
- .mat-mdc-autocomplete-panel-medium-size .mat-mdc-autocomplete-panel,
250
- .mat-mdc-autocomplete-panel-medium-size.mat-mdc-autocomplete-panel,
251
- .min-width-medium .mat-mdc-autocomplete-panel,
252
- .min-width-medium.mat-mdc-autocomplete-panel,
253
- .min-width-medium.mat-mdc-select-panel {
254
- --min-width: 300px;
255
- }
256
- .mat-mdc-autocomplete-panel-large-size .mat-mdc-autocomplete-panel,
257
- .mat-mdc-autocomplete-panel.mat-mdc-autocomplete-panel-large-size,
258
- .min-width-large .mat-mdc-autocomplete-panel,
259
- .min-width-large.mat-mdc-autocomplete-panel,
260
- .min-width-large.mat-mdc-select-panel{
261
- --min-width: 400px;
262
- }
263
- .mat-mdc-autocomplete-panel-xlarge-size .mat-mdc-autocomplete-panel,
264
- .mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-autocomplete-panel,
265
- .mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-select-panel {
266
- --min-width: 450px;
267
- }
268
- .mat-select-panel.min-width-80vw,
269
- .mat-mdc-select-panel.min-width-80vw,
270
- .min-width-80vw .mat-mdc-autocomplete-panel,
271
- .min-width-80vw.mat-mdc-autocomplete-panel {
272
- --min-width: 80vw;
273
- }
254
+ &:has(.min-width-large),
255
+ &:has(.mat-mdc-autocomplete-panel-large-size) {
256
+ --min-width: 400px;
257
+ }
274
258
 
275
- .mat-mdc-autocomplete-panel-center .mat-mdc-autocomplete-panel,
276
- .mat-mdc-autocomplete-panel-center.mat-mdc-autocomplete-panel {
277
- margin-left: calc(var(--min-width, 200px) / -2 + 50%) !important;
278
- }
259
+ &:has(.min-width-xlarge),
260
+ &:has(.mat-mdc-autocomplete-panel-xlarge-size) {
261
+ --min-width: 450px;
262
+ }
279
263
 
280
- .mat-mdc-autocomplete-panel-full-size .mat-mdc-autocomplete-panel,
281
- .mat-mdc-autocomplete-panel-full-size.mat-mdc-autocomplete-panel,
282
- .full-size .mat-mdc-autocomplete-panel,
283
- .full-size.mat-mdc-autocomplete-panel,
284
- .cdk-overlay-pane:has(.mat-mdc-select-panel.full-size) {
285
- --min-width: calc(100vw - 64px);
286
- --max-width: calc(100vw - 64px);
287
- position: fixed;
288
- left: 32px !important;
264
+ &:has(.min-width-80vw) {
265
+ --min-width: 80vw;
266
+ }
267
+
268
+ &:has(.mat-mdc-autocomplete-panel-full-size),
269
+ &:has(.full-size) {
270
+ --margin-left: 32px;
271
+ --margin-right: 32px;
272
+ --min-width: calc(100vw - var(--margin-left) - var(--margin-right));
273
+ --max-width: calc(100vw - var(--margin-left) - var(--margin-right));
274
+ position: fixed;
275
+ left: var(--margin-left) !important;
276
+ right: unset !important;
277
+ }
289
278
  }
290
279
 
291
280
  .mat-mdc-select-panel,
@@ -646,6 +635,14 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
646
635
  @include font-size(12px);
647
636
  }
648
637
 
638
+ .mat-mdc-menu-content {
639
+ .mat-mdc-menu-item {
640
+ --mat-menu-item-label-text-color: var(--ion-text-color);
641
+ // Required for the dark theme (otherwise the icon will be dark)
642
+ --mat-menu-item-icon-color: rgba(var(--ion-text-color-rgb, 255, 255, 255), 0.54);
643
+ }
644
+ }
645
+
649
646
  .mat-mdc-menu-content ion-item > ion-icon[slot="start"] {
650
647
  margin-right: 16px;
651
648
  vertical-align: middle;
@@ -904,22 +901,19 @@ mat-icon.icon-secondary,
904
901
  ion-toast {
905
902
  --background: var(--ion-color-dark);
906
903
  --color: var(--ion-color-dark-contrast);
907
- --button-color: var(--ion-color-secondary);
904
+ --button-color: var(--color);
908
905
 
909
906
  &.secondary {
910
907
  --background: var(--ion-color-secondary);
911
908
  --color: var(--ion-color-secondary-contrast);
912
- --button-color: var(--ion-color-tertiary);
913
909
  }
914
910
  &.accent {
915
911
  --background: var(--ion-color-accent);
916
912
  --color: var(--ion-color-accent-contrast);
917
- --button-color: var(--ion-color-primary);
918
913
  }
919
914
  &.danger {
920
915
  --background: var(--ion-color-danger);
921
916
  --color: var(--ion-color-danger-contrast);
922
- --button-color: var(--ion-color-primary);
923
917
  }
924
918
 
925
919
  /* -- workaround because toast animation failed */
@@ -939,11 +933,11 @@ ion-toast {
939
933
  }
940
934
 
941
935
  &.toast-stacked-top {
942
- --toast-top: calc(var(--toast-stack-offset, 0) * var(--toast-max-height, 0));
936
+ --toast-top: calc(var(--toast-stack-offset, 0) * var(--toast-max-height, 0px));
943
937
  transform: translateY(var(--toast-top));
944
938
  }
945
939
  &.toast-stacked-bottom {
946
- --toast-bottom: calc(-1 * var(--toast-stack-offset, 0) * var(--toast-max-height, 0)) !important;
940
+ --toast-bottom: calc((var(--toast-stack-offset, 0) + 1) * var(--toast-max-height, 0px));
947
941
  transform: translateY(var(--toast-bottom));
948
942
  }
949
943
  }
@@ -955,6 +949,19 @@ ion-refresher.refresher-native {
955
949
  z-index: 1000;
956
950
  }
957
951
 
952
+ // --------------------------------------------------
953
+ // Mat Side
954
+ // --------------------------------------------------
955
+ .mat-drawer-container {
956
+ --mat-sidenav-container-text-color: var(--ion-text-color);
957
+ --mat-sidenav-container-background-color: var(--ion-background-color);
958
+ --mat-sidenav-container-divider-color: var(--ion-border-color, rgba(0, 0, 0, 0.12));
959
+ --mat-sidenav-container-elevation-shadow: 4px 0px 16px rgba(0, 0, 0, 0.18);
960
+ --mat-sidenav-content-text-color: var(--ion-text-color);
961
+ --mat-sidenav-content-background-color: var(--ion-background-color);
962
+ --mat-sidenav-scrim-color: rgba(var(--ion-backdrop-color-rgb), var(--ion-backdrop-opacity));
963
+ }
964
+
958
965
  // --------------------------------------------------
959
966
  // Named filter
960
967
  // --------------------------------------------------
@@ -457,7 +457,10 @@
457
457
  .mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align {
458
458
  margin-top: -1.5rem;
459
459
  text-align: right;
460
- pointer-events: none;
460
+
461
+ // Avoid subscript to be clicked, in table
462
+ // + use !important to avoid override when row is disabled
463
+ pointer-events: none !important;
461
464
 
462
465
  mat-error,
463
466
  mat-hint {
@@ -39,6 +39,16 @@
39
39
  display: inherit;
40
40
  }
41
41
 
42
+ // --- Avoid use selection of tab labels
43
+ .mat-mdc-tab-label,
44
+ .mat-mdc-tab-link {
45
+ -webkit-user-select: none;
46
+ -moz-user-select: none;
47
+ -ms-user-select: none;
48
+ user-select: none;
49
+ }
50
+
51
+
42
52
  // --- Dark mode
43
53
  .dark {
44
54
  .mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
@@ -71,3 +81,4 @@
71
81
  }
72
82
  }
73
83
  }
84
+