@mediusinc/mng-commons 0.9.1 → 0.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.
Files changed (21) hide show
  1. package/assets/i18n/sl.json +1 -1
  2. package/dev-scripts/version-info.js +4 -2
  3. package/esm2020/lib/components/form/editor/form-editor.component.mjs +25 -3
  4. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +32 -3
  5. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +12 -8
  6. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +19 -1
  7. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +30 -3
  8. package/fesm2015/mediusinc-mng-commons.mjs +110 -12
  9. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  10. package/fesm2020/mediusinc-mng-commons.mjs +107 -12
  11. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  12. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +5 -2
  13. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +2 -0
  14. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +3 -2
  15. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +3 -2
  16. package/package.json +1 -1
  17. package/scss/mng-overrides/_mixins.scss +2 -0
  18. package/scss/{theme/default/_mng-variables.scss → mng-overrides/_variables.scss} +0 -0
  19. package/scss/theme/default/_mng-variables-theme-dark.scss +1 -1
  20. package/scss/theme/default/_mng-variables-theme-light.scss +1 -1
  21. package/version-info.json +5 -5
@@ -1,12 +1,15 @@
1
- import { OnInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { FieldType } from '@ngx-formly/core';
4
4
  import { FieldLookupDescriptor } from '../../../../../descriptors';
5
5
  import * as i0 from "@angular/core";
6
- export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType implements OnInit {
6
+ export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType implements OnInit, AfterViewInit, OnDestroy {
7
7
  aFormControl: FormControl;
8
8
  descriptor: FieldLookupDescriptor<T, any>;
9
+ private subscriptions;
9
10
  ngOnInit(): void;
11
+ ngAfterViewInit(): void;
12
+ ngOnDestroy(): void;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldAutocompleteComponent<any>, never>;
11
14
  static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldAutocompleteComponent<any>, "mng-formly-field-autocomplete", never, {}, {}, never, never>;
12
15
  }
@@ -4,12 +4,14 @@ import { FieldType } from '@ngx-formly/core';
4
4
  import { FieldInputDescriptor } from '../../../../../descriptors';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class MngFormlyFieldInputComponent extends FieldType implements OnInit, OnDestroy {
7
+ applicationLocale: string;
7
8
  iFormControl: FormControl;
8
9
  descriptor: FieldInputDescriptor<any>;
9
10
  numberFieldMode: 'decimal' | 'currency';
10
11
  currency?: string;
11
12
  private files;
12
13
  private subscriptions;
14
+ constructor(applicationLocale: string);
13
15
  ngOnInit(): void;
14
16
  ngOnDestroy(): void;
15
17
  onFileSelect(event: any): void;
@@ -1,10 +1,10 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FieldType } from '@ngx-formly/core';
3
3
  import { Observable, Subject } from 'rxjs';
4
4
  import { ActionDescriptor, FieldManyEditorDescriptor } from '../../../../../descriptors';
5
5
  import { MngActionExecutorService } from '../../../../../services';
6
6
  import * as i0 from "@angular/core";
7
- export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
7
+ export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType implements OnInit, AfterViewInit, OnDestroy {
8
8
  private actionExecutor;
9
9
  descriptor: FieldManyEditorDescriptor<T, ET>;
10
10
  itemsSubject: Subject<Array<T>>;
@@ -16,6 +16,7 @@ export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends Field
16
16
  private isEnabled$;
17
17
  constructor(actionExecutor: MngActionExecutorService);
18
18
  ngOnInit(): void;
19
+ ngAfterViewInit(): void;
19
20
  ngOnDestroy(): void;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, never>;
21
22
  static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, "mng-formly-table-dialog-form-field", never, {}, {}, never, never>;
@@ -1,11 +1,11 @@
1
- import { Injector, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FieldType } from '@ngx-formly/core';
3
3
  import { Message } from 'primeng/api';
4
4
  import { Observable, Subject } from 'rxjs';
5
5
  import { MediusQueryResult } from '../../../../../api/models';
6
6
  import { FieldManyToManyEditorDescriptor } from '../../../../../descriptors';
7
7
  import * as i0 from "@angular/core";
8
- export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
8
+ export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extends FieldType implements OnInit, AfterViewInit, OnDestroy {
9
9
  private injector;
10
10
  descriptor: FieldManyToManyEditorDescriptor<T, ET>;
11
11
  itemsSubject: Subject<Array<T>>;
@@ -26,6 +26,7 @@ export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extend
26
26
  private subscriptions;
27
27
  constructor(injector: Injector);
28
28
  ngOnInit(): void;
29
+ ngAfterViewInit(): void;
29
30
  ngOnDestroy(): void;
30
31
  openAddDialog(): void;
31
32
  onSelectionChange(items: Array<any>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.9.1",
3
+ "version": "0.9.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.2.0",
6
6
  "@angular/core": "^13.2.0",
@@ -1,3 +1,5 @@
1
+ @import 'variables';
2
+
1
3
  @mixin scaledHeight($val, $scale) {
2
4
  height: $val * $scale;
3
5
  }
@@ -1,4 +1,4 @@
1
- @import 'mng-variables';
1
+ @import '../../mng-overrides/variables';
2
2
 
3
3
  $primaryColor: #0f8bfd;
4
4
  $primaryLightColor: scale-color($primaryColor, $lightness: 60%) !default;
@@ -1,4 +1,4 @@
1
- @import 'mng-variables';
1
+ @import '../../mng-overrides/variables';
2
2
 
3
3
  $primaryColor: #397289 !default;
4
4
  $primaryLightColor: scale-color($primaryColor, $lightness: 60%) !default;
package/version-info.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.9.1",
4
- "tag": "v0.9.1",
3
+ "version": "0.9.4",
4
+ "tag": "v0.9.4",
5
5
  "distance": 0,
6
- "hash": "g7d3db11",
6
+ "hash": "363d2703",
7
7
  "dirty": false,
8
- "semver": "0.9.1",
9
- "raw": "v0.9.1-g7d3db11"
8
+ "semver": "0.9.4",
9
+ "raw": "v0.9.4-363d2703"
10
10
  }