@sumaris-net/ngx-components 18.6.43 → 18.6.45-alpha1

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": "18.6.43",
4
+ "version": "18.6.45-alpha1",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -66,6 +66,7 @@ export * from './src/app/shared/directives/throttled-click.directive';
66
66
  export * from './src/app/shared/directives/resizable/resizable.directive';
67
67
  export * from './src/app/shared/directives/resizable/resizable.component';
68
68
  export * from './src/app/shared/directives/resizable/resizable.module';
69
+ export * from './src/app/shared/directives/autoresize.directive';
69
70
  export * from './src/app/shared/pipes/pipes.module';
70
71
  export * from './src/app/shared/pipes/date-format.pipe';
71
72
  export * from './src/app/shared/pipes/date-from-now.pipe';
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AutoResizeDirective implements AfterViewInit {
4
+ readonly element: ElementRef<HTMLTextAreaElement>;
5
+ private _lineHeight;
6
+ maxRows: number;
7
+ minRows: number;
8
+ constructor(element: ElementRef<HTMLTextAreaElement>);
9
+ ngAfterViewInit(): void;
10
+ onInput(): void;
11
+ private autoResizeTextarea;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutoResizeDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AutoResizeDirective, "textarea[appAutoResize]", never, { "maxRows": { "alias": "appAutosizeMaxRows"; "required": false; }; "minRows": { "alias": "appAutosizeMinRows"; "required": false; }; }, {}, never, never, false, never>;
14
+ }
@@ -4,10 +4,11 @@ import * as i2 from "./ng-var.directive";
4
4
  import * as i3 from "./drag-and-drop.directive";
5
5
  import * as i4 from "./autotitle.directive";
6
6
  import * as i5 from "./throttled-click.directive";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@ionic/angular";
7
+ import * as i6 from "./autoresize.directive";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@ionic/angular";
9
10
  export declare class SharedDirectivesModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedDirectivesModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective], [typeof i6.CommonModule, typeof i7.IonicModule], [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective, typeof i6.AutoResizeDirective], [typeof i7.CommonModule, typeof i8.IonicModule], [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective, typeof i6.AutoResizeDirective]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedDirectivesModule>;
13
14
  }
@@ -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.43",
5
+ "version": "18.6.44",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -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
@@ -646,6 +646,14 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
646
646
  @include font-size(12px);
647
647
  }
648
648
 
649
+ .mat-mdc-menu-content {
650
+ .mat-mdc-menu-item {
651
+ --mat-menu-item-label-text-color: var(--ion-text-color);
652
+ // Required for the dark theme (otherwise the icon will be dark)
653
+ --mat-menu-item-icon-color: rgba(var(--ion-text-color-rgb, 255, 255, 255), 0.54);
654
+ }
655
+ }
656
+
649
657
  .mat-mdc-menu-content ion-item > ion-icon[slot="start"] {
650
658
  margin-right: 16px;
651
659
  vertical-align: middle;