@sumaris-net/ngx-components 18.9.2 → 18.9.4

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.9.2",
4
+ "version": "18.9.4",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -34,6 +34,15 @@ export interface TextPopoverButton {
34
34
  export declare class TextPopover implements OnInit, AfterViewInit, OnDestroy, TextPopoverOptions {
35
35
  protected popoverController: PopoverController;
36
36
  protected translate: TranslateService;
37
+ /**
38
+ * Displays a popover using the provided controller, event, and options.
39
+ *
40
+ * @param {PopoverController} ctrl - The popover controller used to create and manage the popover.
41
+ * @param {Event} event - The event that triggers the display of the popover.
42
+ * @param {TextPopoverOptions} opts - The options specific to the text popover component.
43
+ * @param {Partial<PopoverOptions>} [popoverOpts] - Optional additional options for the popover.
44
+ * @return {Promise<OverlayEventDetail>} A promise that resolves with the details of the overlay event once the popover is dismissed.
45
+ */
37
46
  static show(ctrl: PopoverController, event: Event, opts: TextPopoverOptions, popoverOpts?: Partial<PopoverOptions>): Promise<OverlayEventDetail>;
38
47
  form: TextForm;
39
48
  showHeader: boolean;
@@ -8,7 +8,6 @@ import { AppFloatLabelType } from '../../form/field.model';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement, OnDestroy {
10
10
  private cd;
11
- protected el: ElementRef<HTMLElement>;
12
11
  private formGroupDir;
13
12
  private _onChangeCallback;
14
13
  private _onTouchedCallback;
@@ -52,7 +51,7 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
52
51
  keyupEnter: EventEmitter<any>;
53
52
  focussed: EventEmitter<FocusEvent>;
54
53
  blurred: EventEmitter<FocusEvent>;
55
- constructor(cd: ChangeDetectorRef, el: ElementRef<HTMLElement>, formGroupDir: FormGroupDirective);
54
+ constructor(cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
56
55
  ngOnInit(): void;
57
56
  ngOnDestroy(): void;
58
57
  writeValue(value: any, event?: Event): void;
@@ -79,7 +78,7 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
79
78
  clearValue(event?: Event): void;
80
79
  protected get radioButtonElements(): HTMLElement[];
81
80
  protected get inputsElements(): HTMLElement[];
82
- static ɵfac: i0.ɵɵFactoryDeclaration<MatBooleanField, [null, null, { optional: true; }]>;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatBooleanField, [null, { optional: true; }]>;
83
82
  static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "showRadio": { "alias": "showRadio"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "focussed": "focus"; "blurred": "blur"; }, never, ["[matPrefix]", "[matSuffix]"], false, never>;
84
83
  static ngAcceptInputType_disabled: unknown;
85
84
  static ngAcceptInputType_readonly: unknown;
@@ -1,6 +1,7 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
2
  import { AppForm } from '../../../../core/form/form.class';
3
3
  import { UntypedFormBuilder } from '@angular/forms';
4
+ import { AppFloatLabelType } from '../../../form/field.model';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class BooleanTestPage extends AppForm<any> implements OnInit, AfterViewInit {
6
7
  protected injector: Injector;
@@ -10,11 +11,14 @@ export declare class BooleanTestPage extends AppForm<any> implements OnInit, Aft
10
11
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
11
12
  (value: any, replacer?: (string | number)[], space?: string | number): string;
12
13
  };
13
- mode: 'radio' | 'checkbox' | 'button';
14
+ mode: 'radio' | 'checkbox' | 'button' | 'temp';
14
15
  styles: string[];
16
+ floatLabel: AppFloatLabelType;
17
+ floatLabels: string[];
15
18
  constructor(injector: Injector, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef);
16
19
  ngAfterViewInit(): void;
17
20
  toggleMode(value: any): void;
21
+ toggleFloatLabel(value: AppFloatLabelType): void;
18
22
  protected markForCheck(): void;
19
23
  protected clearControlValue(path: string, event?: Event): void;
20
24
  static ɵfac: i0.ɵɵFactoryDeclaration<BooleanTestPage, never>;
@@ -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.9.2",
5
+ "version": "18.9.4",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -149,12 +149,18 @@ form.form-container {
149
149
  white-space: normal;
150
150
  }
151
151
 
152
+
152
153
  // Used to customize mat-boolean-field
153
154
  &.mat-boolean-field-checkbox {
154
155
  --mdc-checkbox-state-layer-size: 20px;
155
156
 
157
+ .mdc-text-field--outlined .mat-mdc-form-field-infix,
158
+ .mdc-text-field--no-label .mat-mdc-form-field-infix{
159
+ padding-top: var(--mat-form-field-container-vertical-padding);
160
+ }
161
+
156
162
  .mat-mdc-form-field-infix {
157
- padding-top: 16px;
163
+ padding-top: var(--mat-form-field-filled-with-label-container-padding-top);
158
164
  }
159
165
 
160
166
  .mdc-floating-label {
@@ -194,6 +200,13 @@ form.form-container {
194
200
  // Increase padding top, when having buttons
195
201
  &:has(.mat-form-field-buttons),
196
202
  &.mat-boolean-field-button {
203
+
204
+ .mdc-text-field--outlined .mat-mdc-form-field-infix,
205
+ .mdc-text-field--no-label .mat-mdc-form-field-infix {
206
+ padding-top: calc(var(--mat-form-field-container-vertical-padding, 0px) + 1px);
207
+ --mat-form-field-container-vertical-padding: 2px;
208
+ }
209
+
197
210
  .mat-mdc-form-field-infix {
198
211
  padding-top: calc(var(--mat-form-field-filled-with-label-container-padding-top, 0px) + 4px);
199
212
  }