@rosoftlab/ionic 1.0.0-alpha-4 → 1.0.0-alpha-6

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.
@@ -0,0 +1,60 @@
1
+ import { ElementRef, OnInit, TemplateRef } from '@angular/core';
2
+ import { FieldArrayType, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { ColumnMode, SelectionType, TableColumn } from '@swimlane/ngx-datatable';
5
+ import { FileSaverService } from 'ngx-filesaver';
6
+ import { IonicDialogService } from '../../ionic-dialog.service';
7
+ import * as i0 from "@angular/core";
8
+ interface SearchProp {
9
+ showSerach: boolean;
10
+ searchProp: string;
11
+ }
12
+ interface ExportDataProp {
13
+ propertiesToExport: string[];
14
+ sheetName: string;
15
+ fileName: string;
16
+ }
17
+ interface ImportDataProp {
18
+ keyProp: string;
19
+ propertiesToImport: string[];
20
+ }
21
+ export declare class RepeatDatatableComponent extends FieldArrayType implements OnInit {
22
+ dialogService: IonicDialogService;
23
+ translate: TranslateService;
24
+ private fileSaverService;
25
+ /**
26
+ *
27
+ */
28
+ fileInput: ElementRef;
29
+ defaultColumn: TemplateRef<any>;
30
+ actionsTmpl: TemplateRef<any>;
31
+ data: FormlyFieldConfig[];
32
+ serach: SearchProp;
33
+ showSerach: boolean;
34
+ deleteMessage: string;
35
+ deleteButton: string;
36
+ cancelButton: string;
37
+ filterValue: string;
38
+ typeKey: string;
39
+ importDataProp: ImportDataProp;
40
+ exportDataProp: ExportDataProp;
41
+ ColumnMode: typeof ColumnMode;
42
+ SelectionType: typeof SelectionType;
43
+ constructor(dialogService: IonicDialogService, translate: TranslateService, fileSaverService: FileSaverService);
44
+ add(i?: number, initialModel?: any): void;
45
+ remove(i: number, { markAsDirty }?: {
46
+ markAsDirty: boolean;
47
+ }): void;
48
+ ngOnInit(): void;
49
+ getField(field: FormlyFieldConfig, column: TableColumn, rowIndex: number): FormlyFieldConfig;
50
+ postPopulate(field: any): void;
51
+ handleChange(event: any): void;
52
+ importData(): void;
53
+ handleImportFile(event: any): Promise<void>;
54
+ exportData(): void;
55
+ getValueFromJsonData(jsonData: any, key: string): any;
56
+ private readFileAsync;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<RepeatDatatableComponent, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<RepeatDatatableComponent, "app-repeat-datatable", never, {}, {}, never, never, true, never>;
59
+ }
60
+ export {};
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@rosoftlab/ionic",
3
- "version": "1.0.0-alpha-4",
3
+ "version": "1.0.0-alpha-6",
4
4
  "peerDependencies": {
5
- "@angular/common": "^16.2.1",
6
- "@angular/core": "^16.2.1",
7
- "@ngx-formly/core": "^6.1.8",
5
+ "@angular/common": "^16.2.10",
6
+ "@angular/core": "^16.2.10",
7
+ "@ngx-formly/core": "^6.2.1",
8
8
  "@ionic/angular": "^6.7.5",
9
9
  "@swimlane/ngx-datatable": "^20.1.0",
10
- "@rosoftlab/core": "1.0.0-alpha-4",
11
- "@rosoftlab/formly": "1.0.0-alpha-4",
12
- "@rosoftlab/statemachine": "1.0.0-alpha-4"
10
+ "@rosoftlab/core": "1.0.0-alpha-6",
11
+ "@rosoftlab/formly": "1.0.0-alpha-6",
12
+ "@rosoftlab/statemachine": "1.0.0-alpha-6"
13
13
  },
14
14
  "dependencies": {
15
15
  "tslib": "^2.3.0"