@muraai/mnl-form 0.0.1-alpha-11e96eb → 0.0.1-alpha-9e96598
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/fesm2022/muraai-mnl-form.mjs +151 -151
- package/fesm2022/muraai-mnl-form.mjs.map +1 -1
- package/package.json +8 -5
- package/types/muraai-mnl-form.d.ts +201 -0
- package/index.d.ts +0 -5
- package/lib/confirmation-dialog/confirmation-dialog.component.d.ts +0 -19
- package/lib/mnl-form/mnl-form-standalone.module.d.ts +0 -6
- package/lib/mnl-form/mnl-form.component.d.ts +0 -38
- package/lib/models/custom-form-field.model.d.ts +0 -35
- package/lib/models/workflow-status.model.d.ts +0 -21
- package/lib/services/graphql.service.d.ts +0 -12
- package/lib/services/scoring.service.d.ts +0 -15
- package/lib/types/action-button-renderer.component.d.ts +0 -11
- package/lib/types/autocomplete-type.component.d.ts +0 -11
- package/lib/types/button.type.d.ts +0 -7
- package/lib/types/comments.type.d.ts +0 -11
- package/lib/types/country-code-input.type.d.ts +0 -24
- package/lib/types/custom-date.type.d.ts +0 -5
- package/lib/types/custom-input.component.d.ts +0 -8
- package/lib/types/date-format.type.d.ts +0 -19
- package/lib/types/expansion-panel.types.d.ts +0 -12
- package/lib/types/formly-field-panel.type.d.ts +0 -8
- package/lib/types/grid-actionable.type.d.ts +0 -29
- package/lib/types/grid-formly-cell.component.d.ts +0 -14
- package/lib/types/grid.type.d.ts +0 -29
- package/lib/types/input.type.d.ts +0 -7
- package/lib/types/mu-helper-text.type.d.ts +0 -31
- package/lib/types/multi-select-autocomplete.d.ts +0 -18
- package/lib/types/multi-select-checkbox.component.d.ts +0 -22
- package/lib/types/radio.type.d.ts +0 -7
- package/lib/types/scrollable-tabs.types.d.ts +0 -27
- package/lib/types/select-api-auto-complete.component.d.ts +0 -19
- package/lib/types/select-autocomplete-redefined.component.d.ts +0 -18
- package/lib/types/select-autocomplete.type.d.ts +0 -15
- package/lib/types/stepper.type.d.ts +0 -23
- package/lib/types/table.types.d.ts +0 -17
- package/lib/types/tabs.types.d.ts +0 -26
- package/lib/types/tabular-form-dialog.component.d.ts +0 -43
- package/lib/types/tabular-form.type.d.ts +0 -56
- package/lib/types/upload-file.d.ts +0 -35
- package/lib/types/view-file-dialog.component.d.ts +0 -13
- package/lib/utils/formly.utils.d.ts +0 -4
- package/lib/validators/custom-email-validator.d.ts +0 -8
- package/lib/validators/ein-validators.d.ts +0 -4
- package/lib/validators/gst-validator.d.ts +0 -4
- package/lib/validators/normal-email-validator.d.ts +0 -4
- package/lib/validators/npi-validator.d.ts +0 -4
- package/lib/validators/pan-validator.d.ts +0 -4
- package/lib/validators/phone-number-validator.d.ts +0 -4
- package/lib/validators/select-validator.d.ts +0 -2
- package/lib/validators/tinSsn-validator.d.ts +0 -4
- package/lib/workflow-status/ workflow-status.module.d.ts +0 -13
- package/lib/workflow-status/workflow-status.component.d.ts +0 -22
- package/lib/wrappers/form-field-description-wrapper.component.d.ts +0 -8
- package/lib/wrappers/form-field-wrapper.component.d.ts +0 -6
- package/lib/wrappers/formly-wrapper-with-old-value.component.d.ts +0 -18
- package/lib/wrappers/prefix-suffix-wrapper.component.d.ts +0 -12
- package/lib/wrappers/prefix-sufix-extension.component.d.ts +0 -2
- package/public-api.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muraai/mnl-form",
|
|
3
|
-
"version": "0.0.1-alpha-
|
|
3
|
+
"version": "0.0.1-alpha-9e96598",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "
|
|
7
|
-
"@angular/core": "
|
|
6
|
+
"@angular/common": "21.0.4",
|
|
7
|
+
"@angular/core": "21.0.4",
|
|
8
|
+
"@ngx-formly/core": "7.0.1",
|
|
9
|
+
"@ngx-formly/material": "7.0.1",
|
|
10
|
+
"@angular/forms": "21.0.4"
|
|
8
11
|
},
|
|
9
12
|
"dependencies": {
|
|
10
13
|
"tslib": "^2.3.0"
|
|
11
14
|
},
|
|
12
15
|
"sideEffects": false,
|
|
13
16
|
"module": "fesm2022/muraai-mnl-form.mjs",
|
|
14
|
-
"typings": "
|
|
17
|
+
"typings": "types/muraai-mnl-form.d.ts",
|
|
15
18
|
"exports": {
|
|
16
19
|
"./package.json": {
|
|
17
20
|
"default": "./package.json"
|
|
18
21
|
},
|
|
19
22
|
".": {
|
|
20
|
-
"types": "./
|
|
23
|
+
"types": "./types/muraai-mnl-form.d.ts",
|
|
21
24
|
"default": "./fesm2022/muraai-mnl-form.mjs"
|
|
22
25
|
}
|
|
23
26
|
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, OnChanges, AfterViewInit, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { NativeDateAdapter, DateAdapter } from '@angular/material/core';
|
|
4
|
+
import { FormGroup, FormControl } from '@angular/forms';
|
|
5
|
+
import { FormlyFieldConfig, FormlyFormOptions, FieldTypeConfig } from '@ngx-formly/core';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import * as i2 from '@angular/material/stepper';
|
|
9
|
+
import { MatStepper } from '@angular/material/stepper';
|
|
10
|
+
import * as i1 from '@angular/common';
|
|
11
|
+
import * as i3 from '@angular/material/card';
|
|
12
|
+
import * as i4 from '@angular/material/icon';
|
|
13
|
+
import * as i5 from '@angular/material/badge';
|
|
14
|
+
import * as i6 from '@angular/material/tooltip';
|
|
15
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
16
|
+
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
17
|
+
import { FieldType } from '@ngx-formly/material';
|
|
18
|
+
|
|
19
|
+
declare class CustomDate extends NativeDateAdapter {
|
|
20
|
+
parse(value: any): Date | null;
|
|
21
|
+
format(date: Date, displayFormat: string): string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const mnlFormProviders: (i0.EnvironmentProviders | {
|
|
25
|
+
provide: typeof DateAdapter;
|
|
26
|
+
useClass: typeof CustomDate;
|
|
27
|
+
})[];
|
|
28
|
+
|
|
29
|
+
interface GQLFormlyQuery {
|
|
30
|
+
query?: string;
|
|
31
|
+
dependsOn?: string | string[];
|
|
32
|
+
variables?: {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
};
|
|
35
|
+
responseKey: string;
|
|
36
|
+
optionsLabel?: string;
|
|
37
|
+
optionsValue?: string;
|
|
38
|
+
isPaginationApi?: boolean;
|
|
39
|
+
variableKey?: string;
|
|
40
|
+
searchKey?: string;
|
|
41
|
+
wrappers?: any[];
|
|
42
|
+
}
|
|
43
|
+
interface CustomFormlyFieldConfig extends FormlyFieldConfig {
|
|
44
|
+
changeFunction?: string;
|
|
45
|
+
gqlQuery?: GQLFormlyQuery;
|
|
46
|
+
vissibleRoles?: string[];
|
|
47
|
+
vissibleCountries?: string[];
|
|
48
|
+
fieldGroup?: CustomFormlyFieldConfig[];
|
|
49
|
+
defautValue?: any;
|
|
50
|
+
enabledForRoles?: string[];
|
|
51
|
+
changeFunctionWithArg?: string;
|
|
52
|
+
fieldArray?: CustomFormlyFieldConfig;
|
|
53
|
+
updateTabularField?: string;
|
|
54
|
+
confirmationDialogProps?: any;
|
|
55
|
+
}
|
|
56
|
+
interface FileAction {
|
|
57
|
+
icon: string;
|
|
58
|
+
label: string;
|
|
59
|
+
}
|
|
60
|
+
type MaybeAsyncBool = boolean | Promise<boolean> | Observable<boolean>;
|
|
61
|
+
type UploadIcon = 'cloud_upload' | 'visibility' | 'cloud_download' | 'delete';
|
|
62
|
+
|
|
63
|
+
declare class ScoringService {
|
|
64
|
+
updateScore(model: any, fields: FormlyFieldConfig[]): {
|
|
65
|
+
totalScore: number;
|
|
66
|
+
categoryResults: Record<string, {
|
|
67
|
+
score: number;
|
|
68
|
+
weight: number;
|
|
69
|
+
}>;
|
|
70
|
+
};
|
|
71
|
+
private calculateScore;
|
|
72
|
+
private getNestedValue;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScoringService, never>;
|
|
74
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScoringService>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class MnlFormComponent implements OnInit {
|
|
78
|
+
private translateService;
|
|
79
|
+
private scoring;
|
|
80
|
+
readonly: boolean;
|
|
81
|
+
form: FormGroup;
|
|
82
|
+
fields: CustomFormlyFieldConfig[];
|
|
83
|
+
model: any;
|
|
84
|
+
helperModel: any;
|
|
85
|
+
options: FormlyFormOptions;
|
|
86
|
+
userRoles: string[];
|
|
87
|
+
userCountries: string[];
|
|
88
|
+
noOfTabs: EventEmitter<any>;
|
|
89
|
+
oldValues: any;
|
|
90
|
+
showOldValues: boolean;
|
|
91
|
+
scoreChange: EventEmitter<any>;
|
|
92
|
+
helperModelChange: EventEmitter<any>;
|
|
93
|
+
formPrepared: boolean;
|
|
94
|
+
totalTabs: number;
|
|
95
|
+
constructor(translateService: TranslateService, scoring: ScoringService);
|
|
96
|
+
ngOnInit(): void;
|
|
97
|
+
onModelChange(model: any): void;
|
|
98
|
+
onHelperModelChange(helperModel: any): void;
|
|
99
|
+
setAutocompleteSingleOptionByDefault(fields: any): void;
|
|
100
|
+
setOptionByDefault(formControl: any, field: any, options: any): void;
|
|
101
|
+
getNumberOfActiveTabs(fields: any): void;
|
|
102
|
+
applyReadonlyToFields(fields: CustomFormlyFieldConfig[]): CustomFormlyFieldConfig[];
|
|
103
|
+
filterFieldGroupsByRolesAndCountries(fields: CustomFormlyFieldConfig[]): any[];
|
|
104
|
+
removeValidationsForFilteredFields(fields: any): void;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnlFormComponent, never>;
|
|
106
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnlFormComponent, "mnl-form", never, { "readonly": { "alias": "readonly"; "required": false; }; "form": { "alias": "form"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "model": { "alias": "model"; "required": false; }; "helperModel": { "alias": "helperModel"; "required": false; }; "options": { "alias": "options"; "required": false; }; "userRoles": { "alias": "userRoles"; "required": false; }; "userCountries": { "alias": "userCountries"; "required": false; }; "oldValues": { "alias": "oldValues"; "required": false; }; "showOldValues": { "alias": "showOldValues"; "required": false; }; }, { "noOfTabs": "noOfTabs"; "scoreChange": "scoreChange"; "helperModelChange": "helperModelChange"; }, never, never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface WorkflowStatusSteps {
|
|
110
|
+
statusName: string;
|
|
111
|
+
state: string;
|
|
112
|
+
completedPercentage: number;
|
|
113
|
+
click: string;
|
|
114
|
+
editable: boolean;
|
|
115
|
+
children: SubWorkflowStatusSteps[];
|
|
116
|
+
isParallel?: boolean;
|
|
117
|
+
msgForParallelTooltip?: string;
|
|
118
|
+
roleName?: string;
|
|
119
|
+
}
|
|
120
|
+
interface SubWorkflowStatusSteps {
|
|
121
|
+
statusName: string;
|
|
122
|
+
state: string;
|
|
123
|
+
completedPercentage: number;
|
|
124
|
+
click: string;
|
|
125
|
+
editable: number;
|
|
126
|
+
isParallel?: boolean;
|
|
127
|
+
msgForParallelTooltip?: string;
|
|
128
|
+
roleName?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class WorkflowStatusComponent implements OnChanges, AfterViewInit {
|
|
132
|
+
private cdr;
|
|
133
|
+
stepper: MatStepper;
|
|
134
|
+
subStepper: MatStepper;
|
|
135
|
+
workflowSteps: WorkflowStatusSteps[];
|
|
136
|
+
completedBackgroundColor: string;
|
|
137
|
+
completedTextColor: string;
|
|
138
|
+
inProgressTextColor: string;
|
|
139
|
+
constructor(cdr: ChangeDetectorRef);
|
|
140
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
141
|
+
ngAfterViewInit(): void;
|
|
142
|
+
setStepperStates(): void;
|
|
143
|
+
setActive(status: string, index: number): void;
|
|
144
|
+
setActiveSubStepper(status: string, index: number): void;
|
|
145
|
+
isCompleted(data: any): boolean;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowStatusComponent, never>;
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowStatusComponent, "lib-workflow-status", never, { "workflowSteps": { "alias": "workflowSteps"; "required": false; }; "completedBackgroundColor": { "alias": "completedBackgroundColor"; "required": false; }; "completedTextColor": { "alias": "completedTextColor"; "required": false; }; "inProgressTextColor": { "alias": "inProgressTextColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare class WorkflowStatusModule {
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowStatusModule, never>;
|
|
152
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WorkflowStatusModule, never, [typeof i1.CommonModule, typeof i2.MatStepperModule, typeof i3.MatCardModule, typeof i4.MatIconModule, typeof i5.MatBadgeModule, typeof i6.MatTooltipModule, typeof WorkflowStatusComponent], [typeof WorkflowStatusComponent]>;
|
|
153
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WorkflowStatusModule>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class ConfirmationDialogComponent {
|
|
157
|
+
dialogRef: MatDialogRef<ConfirmationDialogComponent>;
|
|
158
|
+
data: {
|
|
159
|
+
title: string;
|
|
160
|
+
message: string;
|
|
161
|
+
showOk: boolean;
|
|
162
|
+
};
|
|
163
|
+
constructor(dialogRef: MatDialogRef<ConfirmationDialogComponent>, data: {
|
|
164
|
+
title: string;
|
|
165
|
+
message: string;
|
|
166
|
+
showOk: boolean;
|
|
167
|
+
});
|
|
168
|
+
onNoClick(): void;
|
|
169
|
+
onYesClick(): void;
|
|
170
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
171
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "mu-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare class MnlFormHelperTextInputComponent extends FieldType<FieldTypeConfig> implements OnInit, AfterViewInit {
|
|
175
|
+
private cdr;
|
|
176
|
+
autosize?: CdkTextareaAutosize;
|
|
177
|
+
checked: boolean;
|
|
178
|
+
helperFormControl: FormControl;
|
|
179
|
+
get helperLabel(): any;
|
|
180
|
+
get defaultHelperText(): any;
|
|
181
|
+
get originalValue(): any;
|
|
182
|
+
get helperModel(): any;
|
|
183
|
+
get helperKey(): any;
|
|
184
|
+
get currentHelperValue(): any;
|
|
185
|
+
set currentHelperValue(value: any);
|
|
186
|
+
get readonly(): boolean;
|
|
187
|
+
defaultFieldConfig?: FormlyFieldConfig;
|
|
188
|
+
constructor(cdr: ChangeDetectorRef);
|
|
189
|
+
ngOnInit(): void;
|
|
190
|
+
ngAfterViewInit(): void;
|
|
191
|
+
resizeTextarea(): void;
|
|
192
|
+
toggleSlide(): void;
|
|
193
|
+
setupDefaultField(): void;
|
|
194
|
+
determineInitialState(): void;
|
|
195
|
+
setCorrectValue(): void;
|
|
196
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnlFormHelperTextInputComponent, never>;
|
|
197
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnlFormHelperTextInputComponent, "mu-helper-text", never, {}, {}, never, never, true, never>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export { ConfirmationDialogComponent, MnlFormComponent, MnlFormHelperTextInputComponent, WorkflowStatusComponent, WorkflowStatusModule, mnlFormProviders };
|
|
201
|
+
export type { CustomFormlyFieldConfig, FileAction, GQLFormlyQuery, MaybeAsyncBool, SubWorkflowStatusSteps, UploadIcon, WorkflowStatusSteps };
|
package/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ConfirmationDialogComponent {
|
|
4
|
-
dialogRef: MatDialogRef<ConfirmationDialogComponent>;
|
|
5
|
-
data: {
|
|
6
|
-
title: string;
|
|
7
|
-
message: string;
|
|
8
|
-
showOk: boolean;
|
|
9
|
-
};
|
|
10
|
-
constructor(dialogRef: MatDialogRef<ConfirmationDialogComponent>, data: {
|
|
11
|
-
title: string;
|
|
12
|
-
message: string;
|
|
13
|
-
showOk: boolean;
|
|
14
|
-
});
|
|
15
|
-
onNoClick(): void;
|
|
16
|
-
onYesClick(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "mu-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DateAdapter } from '@angular/material/core';
|
|
2
|
-
import { CustomDate } from '../types/custom-date.type';
|
|
3
|
-
export declare const mnlFormProviders: (import("@angular/core").EnvironmentProviders | {
|
|
4
|
-
provide: typeof DateAdapter;
|
|
5
|
-
useClass: typeof CustomDate;
|
|
6
|
-
})[];
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { FormlyFormOptions } from '@ngx-formly/core';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
-
import { CustomFormlyFieldConfig } from '../models/custom-form-field.model';
|
|
6
|
-
import { ScoringService } from '../services/scoring.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MnlFormComponent implements OnInit {
|
|
9
|
-
private translateService;
|
|
10
|
-
private scoring;
|
|
11
|
-
readonly: boolean;
|
|
12
|
-
form: FormGroup;
|
|
13
|
-
fields: CustomFormlyFieldConfig[];
|
|
14
|
-
model: any;
|
|
15
|
-
helperModel: any;
|
|
16
|
-
options: FormlyFormOptions;
|
|
17
|
-
userRoles: string[];
|
|
18
|
-
userCountries: string[];
|
|
19
|
-
noOfTabs: EventEmitter<any>;
|
|
20
|
-
oldValues: any;
|
|
21
|
-
showOldValues: boolean;
|
|
22
|
-
scoreChange: EventEmitter<any>;
|
|
23
|
-
helperModelChange: EventEmitter<any>;
|
|
24
|
-
formPrepared: boolean;
|
|
25
|
-
totalTabs: number;
|
|
26
|
-
constructor(translateService: TranslateService, scoring: ScoringService);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
onModelChange(model: any): void;
|
|
29
|
-
onHelperModelChange(helperModel: any): void;
|
|
30
|
-
setAutocompleteSingleOptionByDefault(fields: any): void;
|
|
31
|
-
setOptionByDefault(formControl: any, field: any, options: any): void;
|
|
32
|
-
getNumberOfActiveTabs(fields: any): void;
|
|
33
|
-
applyReadonlyToFields(fields: CustomFormlyFieldConfig[]): CustomFormlyFieldConfig[];
|
|
34
|
-
filterFieldGroupsByRolesAndCountries(fields: CustomFormlyFieldConfig[]): any[];
|
|
35
|
-
removeValidationsForFilteredFields(fields: any): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MnlFormComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MnlFormComponent, "mnl-form", never, { "readonly": { "alias": "readonly"; "required": false; }; "form": { "alias": "form"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "model": { "alias": "model"; "required": false; }; "helperModel": { "alias": "helperModel"; "required": false; }; "options": { "alias": "options"; "required": false; }; "userRoles": { "alias": "userRoles"; "required": false; }; "userCountries": { "alias": "userCountries"; "required": false; }; "oldValues": { "alias": "oldValues"; "required": false; }; "showOldValues": { "alias": "showOldValues"; "required": false; }; }, { "noOfTabs": "noOfTabs"; "scoreChange": "scoreChange"; "helperModelChange": "helperModelChange"; }, never, never, true, never>;
|
|
38
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FormlyFieldConfig } from "@ngx-formly/core";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
export interface GQLFormlyQuery {
|
|
4
|
-
query?: string;
|
|
5
|
-
dependsOn?: string | string[];
|
|
6
|
-
variables?: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
9
|
-
responseKey: string;
|
|
10
|
-
optionsLabel?: string;
|
|
11
|
-
optionsValue?: string;
|
|
12
|
-
isPaginationApi?: boolean;
|
|
13
|
-
variableKey?: string;
|
|
14
|
-
searchKey?: string;
|
|
15
|
-
wrappers?: any[];
|
|
16
|
-
}
|
|
17
|
-
export interface CustomFormlyFieldConfig extends FormlyFieldConfig {
|
|
18
|
-
changeFunction?: string;
|
|
19
|
-
gqlQuery?: GQLFormlyQuery;
|
|
20
|
-
vissibleRoles?: string[];
|
|
21
|
-
vissibleCountries?: string[];
|
|
22
|
-
fieldGroup?: CustomFormlyFieldConfig[];
|
|
23
|
-
defautValue?: any;
|
|
24
|
-
enabledForRoles?: string[];
|
|
25
|
-
changeFunctionWithArg?: string;
|
|
26
|
-
fieldArray?: CustomFormlyFieldConfig;
|
|
27
|
-
updateTabularField?: string;
|
|
28
|
-
confirmationDialogProps?: any;
|
|
29
|
-
}
|
|
30
|
-
export interface FileAction {
|
|
31
|
-
icon: string;
|
|
32
|
-
label: string;
|
|
33
|
-
}
|
|
34
|
-
export type MaybeAsyncBool = boolean | Promise<boolean> | Observable<boolean>;
|
|
35
|
-
export type UploadIcon = 'cloud_upload' | 'visibility' | 'cloud_download' | 'delete';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface WorkflowStatusSteps {
|
|
2
|
-
statusName: string;
|
|
3
|
-
state: string;
|
|
4
|
-
completedPercentage: number;
|
|
5
|
-
click: string;
|
|
6
|
-
editable: boolean;
|
|
7
|
-
children: SubWorkflowStatusSteps[];
|
|
8
|
-
isParallel?: boolean;
|
|
9
|
-
msgForParallelTooltip?: string;
|
|
10
|
-
roleName?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SubWorkflowStatusSteps {
|
|
13
|
-
statusName: string;
|
|
14
|
-
state: string;
|
|
15
|
-
completedPercentage: number;
|
|
16
|
-
click: string;
|
|
17
|
-
editable: number;
|
|
18
|
-
isParallel?: boolean;
|
|
19
|
-
msgForParallelTooltip?: string;
|
|
20
|
-
roleName?: string;
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AppConfigService } from '@muraai/mnl-commons';
|
|
2
|
-
import { Apollo } from 'apollo-angular';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GraphQLService {
|
|
6
|
-
private apollo;
|
|
7
|
-
private appConfigService;
|
|
8
|
-
constructor(apollo: Apollo, appConfigService: AppConfigService);
|
|
9
|
-
executeQuery(query: string, variables?: any): Observable<any>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GraphQLService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GraphQLService>;
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScoringService {
|
|
4
|
-
updateScore(model: any, fields: FormlyFieldConfig[]): {
|
|
5
|
-
totalScore: number;
|
|
6
|
-
categoryResults: Record<string, {
|
|
7
|
-
score: number;
|
|
8
|
-
weight: number;
|
|
9
|
-
}>;
|
|
10
|
-
};
|
|
11
|
-
private calculateScore;
|
|
12
|
-
private getNestedValue;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScoringService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScoringService>;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ICellRendererAngularComp } from 'ag-grid-angular';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ActionButtonRendererComponent implements ICellRendererAngularComp {
|
|
4
|
-
params: any;
|
|
5
|
-
agInit(params: any): void;
|
|
6
|
-
refresh(): boolean;
|
|
7
|
-
onDelete(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonRendererComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonRendererComponent, "mu-delete-button-renderer", never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
11
|
-
export default ActionButtonRendererComponent;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OnInit } from "@angular/core";
|
|
2
|
-
import { FieldType } from "@ngx-formly/material";
|
|
3
|
-
import { FieldTypeConfig } from "@ngx-formly/core";
|
|
4
|
-
import { Observable } from "rxjs";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class AutocompleteTypeComponent extends FieldType<FieldTypeConfig> implements OnInit {
|
|
7
|
-
filter: Observable<any>;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteTypeComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteTypeComponent, "mu-formly-autocomplete-type", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FieldType } from '@ngx-formly/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormlyButtonComponent extends FieldType {
|
|
4
|
-
onClick(): void;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyButtonComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyButtonComponent, "mu-formly-field-button", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldType } from '@ngx-formly/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormlyCommentInputComponent extends FieldType implements OnInit {
|
|
5
|
-
comment: string;
|
|
6
|
-
isInputRequired: boolean;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
sendComment(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCommentInputComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyCommentInputComponent, "mu-comment-input", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
4
|
-
import { FieldType } from '@ngx-formly/material';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FormlyFieldCountryCodeComponent extends FieldType<FieldTypeConfig> implements OnInit {
|
|
8
|
-
isFocused: boolean;
|
|
9
|
-
hasValue: boolean;
|
|
10
|
-
hourCtrl: FormControl<string>;
|
|
11
|
-
hours: string[];
|
|
12
|
-
filteredHours$: Observable<string[]>;
|
|
13
|
-
get control(): FormControl;
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
onFocus(): void;
|
|
16
|
-
onBlur(): void;
|
|
17
|
-
onInput(): void;
|
|
18
|
-
private _filter;
|
|
19
|
-
onCountryCodeChange(): void;
|
|
20
|
-
loadCountryCodes(): Promise<void>;
|
|
21
|
-
validateInput(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCountryCodeComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCountryCodeComponent, "mu-country-code-phone", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FieldType } from '@ngx-formly/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CustomInputComponent extends FieldType {
|
|
5
|
-
get control(): FormControl;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "mu-formly-field-custom-input", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FieldType } from '@ngx-formly/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FormlyFieldTimeComponent extends FieldType implements OnInit {
|
|
7
|
-
get control(): FormControl;
|
|
8
|
-
hours: string[];
|
|
9
|
-
minutes: string[];
|
|
10
|
-
hourCtrl: FormControl<string>;
|
|
11
|
-
minuteCtrl: FormControl<string>;
|
|
12
|
-
filteredHours$: Observable<string[]>;
|
|
13
|
-
filteredMinutes$: Observable<string[]>;
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
private updateModel;
|
|
16
|
-
private _filter;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTimeComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTimeComponent, "mu-formly-field-time", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldType, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormlyFieldExpansionPanelComponent extends FieldType implements OnInit {
|
|
5
|
-
field: any;
|
|
6
|
-
get expanded(): boolean;
|
|
7
|
-
set expanded(value: boolean);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
isValid(field: FormlyFieldConfig): boolean;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldExpansionPanelComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldExpansionPanelComponent, "mu-formly-field-expansion-panel", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FieldType, FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormlyFieldPanelComponent extends FieldType {
|
|
4
|
-
field: any;
|
|
5
|
-
isValid(field: FormlyFieldConfig): boolean;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldPanelComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldPanelComponent, "mu-formly-field-panel", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldArrayType } from '@ngx-formly/core';
|
|
3
|
-
import { FirstDataRenderedEvent, GridOptions, RowNode, GridApi } from 'ag-grid-community';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ActionableFormlyFieldGridComponent extends FieldArrayType implements OnInit {
|
|
8
|
-
private translateService;
|
|
9
|
-
private dialog;
|
|
10
|
-
gridOptions: GridOptions;
|
|
11
|
-
style: any;
|
|
12
|
-
selectedRow: RowNode | null;
|
|
13
|
-
gridApi: GridApi;
|
|
14
|
-
hideButton: boolean;
|
|
15
|
-
gridHeight: string;
|
|
16
|
-
maxVisibleRows: number;
|
|
17
|
-
constructor(translateService: TranslateService, dialog: MatDialog);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
onRowDataUpdated: () => void;
|
|
20
|
-
onGridReady(params: any): void;
|
|
21
|
-
onFirstDataRendered(params: FirstDataRenderedEvent): void;
|
|
22
|
-
onRowClicked(event: any): void;
|
|
23
|
-
addRow(): void;
|
|
24
|
-
adjustGridHeight(): void;
|
|
25
|
-
deleteRow(rowNode: RowNode): void;
|
|
26
|
-
generateRandomNumber(): number;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionableFormlyFieldGridComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionableFormlyFieldGridComponent, "mu-editable-formly-field-grid", never, {}, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { ICellRendererAngularComp } from 'ag-grid-angular';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GridFormlyCellComponent implements ICellRendererAngularComp {
|
|
6
|
-
private translateService;
|
|
7
|
-
private params;
|
|
8
|
-
constructor(translateService: TranslateService);
|
|
9
|
-
agInit(params: any): void;
|
|
10
|
-
refresh(): boolean;
|
|
11
|
-
getField(): FormlyFieldConfig;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridFormlyCellComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridFormlyCellComponent, "mu-formly-ag-grid-cell", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
package/lib/types/grid.type.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldType } from '@ngx-formly/core';
|
|
3
|
-
import { FirstDataRenderedEvent, GridOptions, ColDef, GridApi } from 'ag-grid-community';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FormlyFieldGridComponent extends FieldType implements OnInit {
|
|
7
|
-
private translateService;
|
|
8
|
-
gridOptions: GridOptions;
|
|
9
|
-
style: any;
|
|
10
|
-
rowData: any[];
|
|
11
|
-
columnDefs: ColDef[];
|
|
12
|
-
defaultColDef: {
|
|
13
|
-
sortable: boolean;
|
|
14
|
-
filter: boolean;
|
|
15
|
-
resizable: boolean;
|
|
16
|
-
flex: number;
|
|
17
|
-
minWidth: number;
|
|
18
|
-
wrapHeaderText: boolean;
|
|
19
|
-
autoHeaderHeight: boolean;
|
|
20
|
-
};
|
|
21
|
-
gridApi: GridApi;
|
|
22
|
-
constructor(translateService: TranslateService);
|
|
23
|
-
onGridReady(params: any): void;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
onFirstDataRendered(params: FirstDataRenderedEvent): void;
|
|
26
|
-
translateLabels(columnDefs: any[]): any[];
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldGridComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldGridComponent, "mu-formly-field-grid", never, {}, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
-
import { FieldType } from '@ngx-formly/material';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CustomFormlyMatInputComponent extends FieldType<FieldTypeConfig> {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomFormlyMatInputComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomFormlyMatInputComponent, "mu-formly-field-mat-input", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
4
|
-
import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
5
|
-
import { FieldType } from '@ngx-formly/material';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class MnlFormHelperTextInputComponent extends FieldType<FieldTypeConfig> implements OnInit, AfterViewInit {
|
|
8
|
-
private cdr;
|
|
9
|
-
autosize?: CdkTextareaAutosize;
|
|
10
|
-
checked: boolean;
|
|
11
|
-
helperFormControl: FormControl;
|
|
12
|
-
get helperLabel(): any;
|
|
13
|
-
get defaultHelperText(): any;
|
|
14
|
-
get originalValue(): any;
|
|
15
|
-
get helperModel(): any;
|
|
16
|
-
get helperKey(): any;
|
|
17
|
-
get currentHelperValue(): any;
|
|
18
|
-
set currentHelperValue(value: any);
|
|
19
|
-
get readonly(): boolean;
|
|
20
|
-
defaultFieldConfig?: FormlyFieldConfig;
|
|
21
|
-
constructor(cdr: ChangeDetectorRef);
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
ngAfterViewInit(): void;
|
|
24
|
-
resizeTextarea(): void;
|
|
25
|
-
toggleSlide(): void;
|
|
26
|
-
setupDefaultField(): void;
|
|
27
|
-
determineInitialState(): void;
|
|
28
|
-
setCorrectValue(): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MnlFormHelperTextInputComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MnlFormHelperTextInputComponent, "mu-helper-text", never, {}, {}, never, never, true, never>;
|
|
31
|
-
}
|