@colijnit/sharedcomponents 259.1.10 → 259.1.12
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/bundles/colijnit-sharedcomponents.umd.js +125 -51
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.js +66 -46
- package/esm2015/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.component.js +19 -10
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +8 -11
- package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +4 -2
- package/esm2015/lib/enum/user-form-mode.enum.js +7 -0
- package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
- package/esm2015/lib/service/shared-connector.service.js +33 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-sharedcomponents.js +132 -66
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.d.ts +14 -7
- package/lib/components/form-builder/form-builder-user-form/style/_layout.scss +4 -0
- package/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.component.d.ts +2 -0
- package/lib/enum/user-form-mode.enum.d.ts +4 -0
- package/lib/res/dictionary/dictionaries.d.ts +6 -0
- package/lib/service/shared-connector.service.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.d.ts
CHANGED
|
@@ -4,27 +4,31 @@ import { TableName } from '@colijnit/mainapi/build/enum/table-name.enum';
|
|
|
4
4
|
import { Form } from '@colijnit/mainapi/build/model/form.bo';
|
|
5
5
|
import { FormResponse } from '@colijnit/mainapi/build/model/form-response.bo';
|
|
6
6
|
import { FormQuestion } from '@colijnit/mainapi/build/model/form-question.bo';
|
|
7
|
-
import { PromptService } from '@colijnit/corecomponents_v12';
|
|
8
7
|
import { FormQuestionAnswer } from '@colijnit/mainapi/build/model/form-question-answer.bo';
|
|
9
8
|
import { FormQuestionResponse } from '@colijnit/mainapi/build/model/form-question-response.bo';
|
|
10
9
|
import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
|
|
11
10
|
import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/service/business-object-factory';
|
|
12
11
|
import { Icon } from '../../../enum/icon.enum';
|
|
13
12
|
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
13
|
+
import { UserFormMode } from '../../../enum/user-form-mode.enum';
|
|
14
14
|
import { SharedConnectorService } from '../../../service/shared-connector.service';
|
|
15
|
+
import { FilesUploadComponent } from '../../files-upload/files-upload.component';
|
|
16
|
+
import { PromptService } from '@colijnit/corecomponents_v12';
|
|
15
17
|
export declare class FormBuilderUserFormComponent implements OnDestroy {
|
|
16
18
|
private _detectorRef;
|
|
17
|
-
private _promptService;
|
|
18
19
|
private _boFactory;
|
|
19
20
|
private _changeDetectorRef;
|
|
20
21
|
private _sharedConnectorService;
|
|
22
|
+
private _promptService;
|
|
21
23
|
iconCacheService: IconCacheService;
|
|
22
24
|
readonly formQuestionType: typeof FormQuestionType;
|
|
23
25
|
readonly TableName: typeof TableName;
|
|
24
26
|
readonly icons: typeof Icon;
|
|
25
|
-
|
|
27
|
+
mode: UserFormMode;
|
|
26
28
|
documents: CoDocument[];
|
|
27
29
|
private _form;
|
|
30
|
+
filesUploadComponent: FilesUploadComponent;
|
|
31
|
+
showPopup: boolean;
|
|
28
32
|
set form(form: Form);
|
|
29
33
|
get form(): Form;
|
|
30
34
|
userForm: FormResponse;
|
|
@@ -34,12 +38,14 @@ export declare class FormBuilderUserFormComponent implements OnDestroy {
|
|
|
34
38
|
enableQuestions: boolean;
|
|
35
39
|
readonly cancelForm: EventEmitter<void>;
|
|
36
40
|
readonly saveForm: EventEmitter<FormResponse>;
|
|
41
|
+
readonly createNewFormResponse: EventEmitter<FormResponse>;
|
|
42
|
+
loadDocuments: any;
|
|
37
43
|
cloneForm: Form;
|
|
38
44
|
formResponse: FormResponse;
|
|
39
45
|
activeQuestion: FormQuestion;
|
|
40
46
|
gotoQuestion: number;
|
|
41
47
|
showClass(): boolean;
|
|
42
|
-
constructor(_detectorRef: ChangeDetectorRef,
|
|
48
|
+
constructor(_detectorRef: ChangeDetectorRef, _boFactory: BusinessObjectFactory, _changeDetectorRef: ChangeDetectorRef, _sharedConnectorService: SharedConnectorService, _promptService: PromptService, iconCacheService: IconCacheService);
|
|
43
49
|
ngOnDestroy(): void;
|
|
44
50
|
enabledNextQuestion(question: FormQuestion, answer?: FormQuestionAnswer | number): void;
|
|
45
51
|
onValid(): void;
|
|
@@ -47,13 +53,14 @@ export declare class FormBuilderUserFormComponent implements OnDestroy {
|
|
|
47
53
|
changeMultipleOption(id: string, formResponse: FormQuestionResponse, add: boolean): void;
|
|
48
54
|
changeLovOption(formResponse: FormQuestionResponse, value: number): void;
|
|
49
55
|
changeTime(formResponse: FormQuestionResponse, time: Date): void;
|
|
50
|
-
close(): void;
|
|
51
|
-
show(): void;
|
|
52
56
|
handleDocumentDeleted(doc: CoDocument): void;
|
|
53
57
|
handleDocumentChanged(doc: CoDocument): void;
|
|
54
58
|
handleDocumentsAdded(docs: CoDocument[]): void;
|
|
55
59
|
private _prepareNewForm;
|
|
56
60
|
private _prepareExistingForm;
|
|
57
61
|
private _enableQuestions;
|
|
58
|
-
|
|
62
|
+
private _loadDocs;
|
|
63
|
+
handleDefinitiveChange(definitive: boolean): void;
|
|
64
|
+
commitUserForm(): void;
|
|
65
|
+
handleOpenFilesUpload(): void;
|
|
59
66
|
}
|
|
@@ -5,6 +5,7 @@ export declare class PdfPreviewComponent implements OnInit {
|
|
|
5
5
|
iconCacheService: IconCacheService;
|
|
6
6
|
showClass(): boolean;
|
|
7
7
|
private _pdfDoc;
|
|
8
|
+
private _waitingToShowDialog;
|
|
8
9
|
set pdfDoc(value: any);
|
|
9
10
|
get pdfDoc(): any;
|
|
10
11
|
disablePdfPreview: boolean;
|
|
@@ -13,4 +14,5 @@ export declare class PdfPreviewComponent implements OnInit {
|
|
|
13
14
|
showDialog: boolean;
|
|
14
15
|
constructor(iconCacheService: IconCacheService);
|
|
15
16
|
ngOnInit(): void;
|
|
17
|
+
dialogRequested(): void;
|
|
16
18
|
}
|
|
@@ -10823,6 +10823,9 @@ export declare class Dictionaries {
|
|
|
10823
10823
|
FROM_STOCK: string;
|
|
10824
10824
|
FROM_SUPPLIER: string;
|
|
10825
10825
|
FROM_TO: string;
|
|
10826
|
+
FORM_BUILDER_INFO_TEXT1: string;
|
|
10827
|
+
FORM_BUILDER_INFO_TEXT2: string;
|
|
10828
|
+
FORM_BUILDER_INFO_TEXT3: string;
|
|
10826
10829
|
FTE: string;
|
|
10827
10830
|
FTE_OF_EMPLOYEES: string;
|
|
10828
10831
|
FULLY: string;
|
|
@@ -27030,6 +27033,9 @@ export declare class Dictionaries {
|
|
|
27030
27033
|
FROM_STOCK: string;
|
|
27031
27034
|
FROM_SUPPLIER: string;
|
|
27032
27035
|
FROM_TO: string;
|
|
27036
|
+
FORM_BUILDER_INFO_TEXT1: string;
|
|
27037
|
+
FORM_BUILDER_INFO_TEXT2: string;
|
|
27038
|
+
FORM_BUILDER_INFO_TEXT3: string;
|
|
27033
27039
|
FTE: string;
|
|
27034
27040
|
FTE_OF_EMPLOYEES: string;
|
|
27035
27041
|
FULLY: string;
|
|
@@ -106,5 +106,7 @@ export declare class SharedConnectorService {
|
|
|
106
106
|
getComponentActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
107
107
|
getFormById(formId: number): Promise<Form>;
|
|
108
108
|
getFormResponse(formResponseId: number): Promise<FormResponse>;
|
|
109
|
+
insertFormResponse(formResponse: FormResponse): Promise<FormResponse>;
|
|
110
|
+
updateFormResponse(formResponse: FormResponse): Promise<FormResponse>;
|
|
109
111
|
commit(): Promise<DataServiceResponseData>;
|
|
110
112
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -41,3 +41,4 @@ export * from './lib/components/preferred-planning/preferred-planning.component'
|
|
|
41
41
|
export * from './lib/components/preferred-planning/preferred-planning.module';
|
|
42
42
|
export * from './lib/components/form-builder/form-builder-user-form/form-builder-user-form.component';
|
|
43
43
|
export * from './lib/components/form-builder/form-builder-user-form/form-builder-user-form.module';
|
|
44
|
+
export * from './lib/enum/user-form-mode.enum';
|