@colijnit/sharedcomponents 259.1.5 → 259.1.7
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 +503 -51
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +2 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +3 -1
- package/esm2015/lib/components/custom-pdf/custom-pdf-dialog.component.js +55 -47
- package/esm2015/lib/components/custom-pdf/custom-pdf-dialog.module.js +3 -2
- package/esm2015/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/user-form-input-scale.component.js +98 -0
- package/esm2015/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/user-form-input-scale.module.js +23 -0
- package/esm2015/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.js +328 -0
- package/esm2015/lib/components/form-builder/form-builder-user-form/form-builder-user-form.module.js +41 -0
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/model/util/forms-null-object.js +7 -0
- package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
- package/esm2015/lib/service/shared-connector.service.js +35 -1
- package/esm2015/lib/utils/form-utils.js +32 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +590 -49
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/custom-pdf/custom-pdf-dialog.component.d.ts +1 -0
- package/lib/components/custom-pdf/style/_layout.scss +12 -0
- package/lib/components/form-builder/form-builder-user-form/components/forms-test-component/style/_layout.component.ts.child.3.scss +4 -0
- package/lib/components/form-builder/form-builder-user-form/components/forms-test-component/style/_material-definition.component.ts.child.0.scss +0 -0
- package/lib/components/form-builder/form-builder-user-form/components/forms-test-component/style/_theme.component.ts.child.2.scss +4 -0
- package/lib/components/form-builder/form-builder-user-form/components/forms-test-component/style/material.component.ts.child.1.scss +4 -0
- package/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/style/_layout.scss +29 -0
- package/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/style/_material-definition.scss +1 -0
- package/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/style/_theme.scss +4 -0
- package/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/style/material.scss +4 -0
- package/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/user-form-input-scale.component.d.ts +23 -0
- package/lib/components/form-builder/form-builder-user-form/components/user-form-input-scale/user-form-input-scale.module.d.ts +2 -0
- package/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.d.ts +59 -0
- package/lib/components/form-builder/form-builder-user-form/form-builder-user-form.module.d.ts +2 -0
- package/lib/components/form-builder/form-builder-user-form/style/_layout.scss +122 -0
- package/lib/components/form-builder/form-builder-user-form/style/_material-definition.scss +1 -0
- package/lib/components/form-builder/form-builder-user-form/style/_theme.scss +4 -0
- package/lib/components/form-builder/form-builder-user-form/style/material.scss +4 -0
- package/lib/enum/icon.enum.d.ts +1 -0
- package/lib/model/util/forms-null-object.d.ts +6 -0
- package/lib/res/dictionary/dictionaries.d.ts +4 -0
- package/lib/service/shared-connector.service.d.ts +4 -0
- package/lib/utils/form-utils.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -24,6 +24,7 @@ export declare class CustomPdfDialogComponent implements OnInit, AfterViewInit {
|
|
|
24
24
|
};
|
|
25
25
|
fileBody: any;
|
|
26
26
|
fileStyle: string;
|
|
27
|
+
showLoader: boolean;
|
|
27
28
|
constructor(iconCacheService: IconCacheService, _sanitizer: DomSanitizer);
|
|
28
29
|
ngOnInit(): void;
|
|
29
30
|
ngAfterViewInit(): void;
|
|
@@ -16,6 +16,18 @@
|
|
|
16
16
|
background-color: #f8f8fa;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.loader-container {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
align-self: center;
|
|
30
|
+
}
|
|
19
31
|
}
|
|
20
32
|
}
|
|
21
33
|
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@include export-module('cc-user-form-input-scale-layout') {
|
|
2
|
+
.co-user-form-input-scale {
|
|
3
|
+
|
|
4
|
+
.input-linear-scale-wrapper {
|
|
5
|
+
height: 50px;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
.radio-button-box {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-grow: 1;
|
|
12
|
+
justify-content: space-evenly;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.scale-start-label-wrapper, .scale-end-label-wrapper {
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.checkbox-selector-options {
|
|
20
|
+
input-text:before{
|
|
21
|
+
content: '';
|
|
22
|
+
width: 50px;
|
|
23
|
+
height: 50px;
|
|
24
|
+
background: $color_form_input_background;
|
|
25
|
+
margin-right: 1px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$color_form_input_background: #F6F6F6;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
3
|
+
export declare class UserFormInputScaleComponent implements OnInit {
|
|
4
|
+
changeDetector: ChangeDetectorRef;
|
|
5
|
+
label: string;
|
|
6
|
+
readonly: boolean;
|
|
7
|
+
required: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
scaleModel: string[] | BusinessObject[];
|
|
10
|
+
idField: string;
|
|
11
|
+
descriptionField: string;
|
|
12
|
+
selected: string | BusinessObject;
|
|
13
|
+
readonly selectionChange: EventEmitter<string | BusinessObject>;
|
|
14
|
+
firstItem: string;
|
|
15
|
+
lastItem: string;
|
|
16
|
+
showClass(): boolean;
|
|
17
|
+
constructor(changeDetector: ChangeDetectorRef);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
getModelItem(item: string | BusinessObject): string | BusinessObject;
|
|
20
|
+
getTitle(modelItem: any): string;
|
|
21
|
+
handleRadioButtonClick(active: boolean, item: string | BusinessObject): void;
|
|
22
|
+
private _emitSelectionChange;
|
|
23
|
+
}
|
package/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormQuestionType } from '@colijnit/mainapi/build/enum/form-question.type';
|
|
3
|
+
import { TableName } from '@colijnit/mainapi/build/enum/table-name.enum';
|
|
4
|
+
import { Form } from '@colijnit/mainapi/build/model/form.bo';
|
|
5
|
+
import { FormResponse } from '@colijnit/mainapi/build/model/form-response.bo';
|
|
6
|
+
import { FormQuestion } from '@colijnit/mainapi/build/model/form-question.bo';
|
|
7
|
+
import { PromptService } from '@colijnit/corecomponents_v12';
|
|
8
|
+
import { FormQuestionAnswer } from '@colijnit/mainapi/build/model/form-question-answer.bo';
|
|
9
|
+
import { FormQuestionResponse } from '@colijnit/mainapi/build/model/form-question-response.bo';
|
|
10
|
+
import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
|
|
11
|
+
import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/service/business-object-factory';
|
|
12
|
+
import { Icon } from '../../../enum/icon.enum';
|
|
13
|
+
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
14
|
+
import { SharedConnectorService } from '../../../service/shared-connector.service';
|
|
15
|
+
export declare class FormBuilderUserFormComponent implements OnDestroy {
|
|
16
|
+
private _detectorRef;
|
|
17
|
+
private _promptService;
|
|
18
|
+
private _boFactory;
|
|
19
|
+
private _changeDetectorRef;
|
|
20
|
+
private _sharedConnectorService;
|
|
21
|
+
iconCacheService: IconCacheService;
|
|
22
|
+
readonly formQuestionType: typeof FormQuestionType;
|
|
23
|
+
readonly TableName: typeof TableName;
|
|
24
|
+
readonly icons: typeof Icon;
|
|
25
|
+
showPopup: boolean;
|
|
26
|
+
documents: CoDocument[];
|
|
27
|
+
private _form;
|
|
28
|
+
set form(form: Form);
|
|
29
|
+
get form(): Form;
|
|
30
|
+
userForm: FormResponse;
|
|
31
|
+
table: string;
|
|
32
|
+
key: string;
|
|
33
|
+
readonly: boolean;
|
|
34
|
+
enableQuestions: boolean;
|
|
35
|
+
readonly cancelForm: EventEmitter<void>;
|
|
36
|
+
readonly saveForm: EventEmitter<FormResponse>;
|
|
37
|
+
cloneForm: Form;
|
|
38
|
+
formResponse: FormResponse;
|
|
39
|
+
activeQuestion: FormQuestion;
|
|
40
|
+
gotoQuestion: number;
|
|
41
|
+
showClass(): boolean;
|
|
42
|
+
constructor(_detectorRef: ChangeDetectorRef, _promptService: PromptService, _boFactory: BusinessObjectFactory, _changeDetectorRef: ChangeDetectorRef, _sharedConnectorService: SharedConnectorService, iconCacheService: IconCacheService);
|
|
43
|
+
ngOnDestroy(): void;
|
|
44
|
+
enabledNextQuestion(question: FormQuestion, answer?: FormQuestionAnswer | number): void;
|
|
45
|
+
onValid(): void;
|
|
46
|
+
handleCancelForm(): void;
|
|
47
|
+
changeMultipleOption(id: string, formResponse: FormQuestionResponse, add: boolean): void;
|
|
48
|
+
changeLovOption(formResponse: FormQuestionResponse, value: number): void;
|
|
49
|
+
changeTime(formResponse: FormQuestionResponse, time: Date): void;
|
|
50
|
+
close(): void;
|
|
51
|
+
show(): void;
|
|
52
|
+
handleDocumentDeleted(doc: CoDocument): void;
|
|
53
|
+
handleDocumentChanged(doc: CoDocument): void;
|
|
54
|
+
handleDocumentsAdded(docs: CoDocument[]): void;
|
|
55
|
+
private _prepareNewForm;
|
|
56
|
+
private _prepareExistingForm;
|
|
57
|
+
private _enableQuestions;
|
|
58
|
+
merge(): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@include export-module('cc-form-builder-user-form-layout') {
|
|
2
|
+
.co-form-builder-user-form {
|
|
3
|
+
|
|
4
|
+
.footer-wrapper {
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding: 10px 20px;
|
|
11
|
+
|
|
12
|
+
.attachments-wrapper{
|
|
13
|
+
width: 40%;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
justify-content: flex-start;
|
|
17
|
+
gap: 1em;
|
|
18
|
+
|
|
19
|
+
.row {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.row{
|
|
26
|
+
align-self: center;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
gap: 1em;
|
|
30
|
+
co-button {
|
|
31
|
+
height: 40px;
|
|
32
|
+
width: 40px;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
co-icon {
|
|
36
|
+
height: 30px;
|
|
37
|
+
width: 30px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.header-wrapper {
|
|
44
|
+
.form-title {
|
|
45
|
+
font-size: 18px;
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.headers-row {
|
|
51
|
+
padding: 10px 20px;
|
|
52
|
+
}
|
|
53
|
+
.popup-card-title {
|
|
54
|
+
padding: 10px 20px;
|
|
55
|
+
background: $color-active-light;
|
|
56
|
+
color: white;
|
|
57
|
+
.header-wrapper {
|
|
58
|
+
align-items: center !important;
|
|
59
|
+
}
|
|
60
|
+
.separator {
|
|
61
|
+
border-color: white !important;
|
|
62
|
+
}
|
|
63
|
+
.header {
|
|
64
|
+
font-size: 15px;
|
|
65
|
+
font-weight: normal;
|
|
66
|
+
}
|
|
67
|
+
.sub-header {
|
|
68
|
+
font-size: 18px;
|
|
69
|
+
color: white !important;
|
|
70
|
+
font-weight: bold !important;
|
|
71
|
+
}
|
|
72
|
+
button-select {
|
|
73
|
+
icon {
|
|
74
|
+
[fill] {
|
|
75
|
+
fill: white;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.main-content-wrapper {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.section-wrapper {
|
|
87
|
+
overflow: auto;
|
|
88
|
+
margin-bottom: 5px;
|
|
89
|
+
height: 100%;
|
|
90
|
+
}
|
|
91
|
+
.form-rubric-header {
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
padding-bottom: 10px;
|
|
94
|
+
}
|
|
95
|
+
.answer-wrapper {
|
|
96
|
+
> * {
|
|
97
|
+
margin-bottom: 2px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.button-wrapper {
|
|
101
|
+
padding-top: 20px;
|
|
102
|
+
padding-bottom: 20px;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
}
|
|
105
|
+
.disabled {
|
|
106
|
+
-webkit-user-select: none;
|
|
107
|
+
-moz-user-select: none;
|
|
108
|
+
-ms-user-select: none;
|
|
109
|
+
user-select: none;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
opacity: 0.5;
|
|
112
|
+
> input {
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.goto-question {
|
|
117
|
+
margin: -20px 0 0 15px;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
font-style: italic;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$color-active-light: #74B77F;
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare enum Icon {
|
|
|
17
17
|
BellRegular = "bell_regular",
|
|
18
18
|
BellSlashRegular = "bell_slash_regular",
|
|
19
19
|
BringForwardRegular = "bring_forward_regular",
|
|
20
|
+
Camera = "camera",
|
|
20
21
|
CheckDuotone = "check_duotone",
|
|
21
22
|
CheckRound = "check_round",
|
|
22
23
|
CheckSolid = "check_solid",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Form } from '@colijnit/mainapi/build/model/form.bo';
|
|
2
|
+
import { FormResponse } from '@colijnit/mainapi/build/model/form-response.bo';
|
|
3
|
+
import { FormQuestionResponse } from '@colijnit/mainapi/build/model/form-question-response.bo';
|
|
4
|
+
export declare const NULL_FORM_FULL_OBJECT: Form;
|
|
5
|
+
export declare const NULL_FORM_RESPONSE_OBJECT: FormResponse;
|
|
6
|
+
export declare const NULL_FORM_QUESTION_RESPONSE_OBJECT: FormQuestionResponse;
|
|
@@ -26679,6 +26679,7 @@ export declare class Dictionaries {
|
|
|
26679
26679
|
ERROR_NO_SERIAL_NR: string;
|
|
26680
26680
|
ERROR_PARKING_REPORT: string;
|
|
26681
26681
|
ERROR_PRINTING: string;
|
|
26682
|
+
ERROR_PROCESSING_REGISTER_ORDER: string;
|
|
26682
26683
|
ERROR_READING_JSON_FILE: string;
|
|
26683
26684
|
ERROR_RECREATING_USER_ACCOUNT: string;
|
|
26684
26685
|
ERROR_REPORT_SAVESEND: string;
|
|
@@ -29732,14 +29733,17 @@ export declare class Dictionaries {
|
|
|
29732
29733
|
QUOTATION_DATE: string;
|
|
29733
29734
|
QUOTATION_DATE_CUSTOMER: string;
|
|
29734
29735
|
QUOTATION_DEFINITIVE: string;
|
|
29736
|
+
QUOTATION_GROSS: string;
|
|
29735
29737
|
QUOTATION_LINE: string;
|
|
29736
29738
|
QUOTATION_LINES: string;
|
|
29739
|
+
QUOTATION_NET: string;
|
|
29737
29740
|
QUOTATION_NOT_COPIED: string;
|
|
29738
29741
|
QUOTATION_NOT_DEFINITIVE: string;
|
|
29739
29742
|
QUOTATION_NOT_PROCESSED: string;
|
|
29740
29743
|
QUOTATION_NUMBER: string;
|
|
29741
29744
|
QUOTATION_PROCESSED: string;
|
|
29742
29745
|
QUOTATION_STATUS: string;
|
|
29746
|
+
QUOTATION_TOTAL: string;
|
|
29743
29747
|
RACK_POSITIONING: string;
|
|
29744
29748
|
RANDOM: string;
|
|
29745
29749
|
RANGE2: string;
|
|
@@ -45,6 +45,8 @@ import { Task } from "@colijnit/mainapi/build/model/task.bo";
|
|
|
45
45
|
import { ActivityEmailHistory } from "@colijnit/mainapi/build/model/activity-email-history.bo";
|
|
46
46
|
import { ActivityWorkflow } from "@colijnit/mainapi/build/model/activity-workflow";
|
|
47
47
|
import { EmailActivityRequest } from "@colijnit/mainapi/build/model/email-activity-request";
|
|
48
|
+
import { Form } from '@colijnit/mainapi/build/model/form.bo';
|
|
49
|
+
import { FormResponse } from '@colijnit/mainapi/build/model/form-response.bo';
|
|
48
50
|
export declare class SharedConnectorService {
|
|
49
51
|
private _optionsService;
|
|
50
52
|
articleConnector: Articles;
|
|
@@ -102,5 +104,7 @@ export declare class SharedConnectorService {
|
|
|
102
104
|
getWorkflowProcessInfoPerStatus(worlflowCategory: string): Promise<WorkflowProcessInfoPerStatus[]>;
|
|
103
105
|
getHistoricActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
104
106
|
getComponentActivities(table: TableName, key: string): Promise<Activity[]>;
|
|
107
|
+
getFormById(formId: number): Promise<Form>;
|
|
108
|
+
getFormResponse(formResponseId: number): Promise<FormResponse>;
|
|
105
109
|
commit(): Promise<DataServiceResponseData>;
|
|
106
110
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -39,3 +39,5 @@ export * from './lib/model/agenda-event-per-day.model';
|
|
|
39
39
|
export * from './lib/model/agenda-event.model';
|
|
40
40
|
export * from './lib/components/preferred-planning/preferred-planning.component';
|
|
41
41
|
export * from './lib/components/preferred-planning/preferred-planning.module';
|
|
42
|
+
export * from './lib/components/form-builder/form-builder-user-form/form-builder-user-form.component';
|
|
43
|
+
export * from './lib/components/form-builder/form-builder-user-form/form-builder-user-form.module';
|