@muraai/mnl-form 0.0.1-alpha-5d0336b → 0.0.1-alpha-db0d938
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/esm2022/lib/confirmation-dialog/confirmation-dialog.component.mjs +3 -3
- package/esm2022/lib/formly-lib/formly-lib.component.mjs +17 -8
- package/esm2022/lib/formly-lib/formly-standalone.module.mjs +3 -1
- package/esm2022/lib/services/graphql.service.mjs +3 -3
- package/esm2022/lib/services/scoring.service.mjs +75 -0
- package/esm2022/lib/types/action-button-renderer.component.mjs +3 -3
- package/esm2022/lib/types/autocomplete-type.component.mjs +3 -3
- package/esm2022/lib/types/button.type.mjs +3 -3
- package/esm2022/lib/types/comments.type.mjs +3 -3
- package/esm2022/lib/types/country-code-input.type.mjs +3 -3
- package/esm2022/lib/types/custom-input.component.mjs +3 -3
- package/esm2022/lib/types/date-format.type.mjs +3 -3
- package/esm2022/lib/types/expansion-panel.types.mjs +3 -3
- package/esm2022/lib/types/formly-field-panel.type.mjs +3 -3
- package/esm2022/lib/types/grid-actionable.type.mjs +3 -3
- package/esm2022/lib/types/grid-formly-cell.component.mjs +3 -3
- package/esm2022/lib/types/grid.type.mjs +3 -3
- package/esm2022/lib/types/input.type.mjs +3 -3
- package/esm2022/lib/types/mu-helper-text.type.mjs +190 -0
- package/esm2022/lib/types/multi-select-autocomplete.mjs +3 -3
- package/esm2022/lib/types/multi-select-checkbox.component.mjs +3 -3
- package/esm2022/lib/types/radio.type.mjs +3 -3
- package/esm2022/lib/types/scrollable-tabs.types.mjs +3 -3
- package/esm2022/lib/types/select-api-auto-complete.component.mjs +3 -3
- package/esm2022/lib/types/select-autocomplete-redefined.component.mjs +3 -3
- package/esm2022/lib/types/select-autocomplete.type.mjs +3 -3
- package/esm2022/lib/types/stepper.type.mjs +3 -3
- package/esm2022/lib/types/table.types.mjs +3 -3
- package/esm2022/lib/types/tabs.types.mjs +3 -3
- package/esm2022/lib/types/tabular-form-dialog.component.mjs +3 -3
- package/esm2022/lib/types/tabular-form.type.mjs +3 -3
- package/esm2022/lib/types/upload-file.mjs +3 -3
- package/esm2022/lib/types/view-file-dialog.component.mjs +3 -3
- package/esm2022/lib/workflow-status/ workflow-status.module.mjs +4 -4
- package/esm2022/lib/workflow-status/workflow-status.component.mjs +3 -3
- package/esm2022/lib/wrappers/form-field-description-wrapper.component.mjs +3 -3
- package/esm2022/lib/wrappers/form-field-wrapper.component.mjs +3 -3
- package/esm2022/lib/wrappers/formly-wrapper-with-old-value.component.mjs +3 -3
- package/esm2022/lib/wrappers/prefix-suffix-wrapper.component.mjs +3 -3
- package/fesm2022/muraai-mnl-form.mjs +390 -134
- package/fesm2022/muraai-mnl-form.mjs.map +1 -1
- package/lib/formly-lib/formly-lib.component.d.ts +6 -2
- package/lib/services/scoring.service.d.ts +15 -0
- package/lib/types/mu-helper-text.type.d.ts +17 -0
- package/package.json +1 -1
|
@@ -3,9 +3,11 @@ import { FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { FormlyFormOptions } from '@ngx-formly/core';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { CustomFormlyFieldConfig } from '../models/custom-form-field.model';
|
|
6
|
+
import { ScoringService } from '../services/scoring.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class MnlFormLibComponent implements OnInit {
|
|
8
9
|
private translateService;
|
|
10
|
+
private scoring;
|
|
9
11
|
readonly: boolean;
|
|
10
12
|
form: FormGroup;
|
|
11
13
|
fields: CustomFormlyFieldConfig[];
|
|
@@ -16,10 +18,12 @@ export declare class MnlFormLibComponent implements OnInit {
|
|
|
16
18
|
noOfTabs: EventEmitter<any>;
|
|
17
19
|
oldValues: any;
|
|
18
20
|
showOldValues: boolean;
|
|
21
|
+
scoreChange: EventEmitter<any>;
|
|
19
22
|
formPrepared: boolean;
|
|
20
23
|
totalTabs: number;
|
|
21
|
-
constructor(translateService: TranslateService);
|
|
24
|
+
constructor(translateService: TranslateService, scoring: ScoringService);
|
|
22
25
|
ngOnInit(): void;
|
|
26
|
+
onModelChange(model: any): void;
|
|
23
27
|
setAutocompleteSingleOptionByDefault(fields: any): void;
|
|
24
28
|
setOptionByDefault(formControl: any, field: any, options: any): void;
|
|
25
29
|
getNumberOfActiveTabs(fields: any): void;
|
|
@@ -27,5 +31,5 @@ export declare class MnlFormLibComponent implements OnInit {
|
|
|
27
31
|
filterFieldGroupsByRolesAndCountries(fields: CustomFormlyFieldConfig[]): any[];
|
|
28
32
|
removeValidationsForFilteredFields(fields: any): void;
|
|
29
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<MnlFormLibComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MnlFormLibComponent, "mnl-form", never, { "readonly": { "alias": "readonly"; "required": false; }; "form": { "alias": "form"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "model": { "alias": "model"; "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"; }, never, never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnlFormLibComponent, "mnl-form", never, { "readonly": { "alias": "readonly"; "required": false; }; "form": { "alias": "form"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "model": { "alias": "model"; "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"; }, never, never, true, never>;
|
|
31
35
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import { FieldType } from '@ngx-formly/material';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MnlFormHelperTextInputComponent extends FieldType<FieldTypeConfig> implements OnInit {
|
|
6
|
+
private cdr;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
defaultFieldConfig?: FormlyFieldConfig;
|
|
9
|
+
constructor(cdr: ChangeDetectorRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
toggleSlide(): void;
|
|
12
|
+
setupDefaultField(): void;
|
|
13
|
+
determineInitialState(): void;
|
|
14
|
+
setCorrectValue(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnlFormHelperTextInputComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnlFormHelperTextInputComponent, "mu-helper-text", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|