@rangertechnologies/ngnxt 2.1.120 → 2.1.122
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/environments/version.mjs +5 -5
- package/esm2022/lib/components/custom-input/custom-input.component.mjs +4 -2
- package/esm2022/lib/components/datatable/datatable.component.mjs +97 -16
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +4 -2
- package/esm2022/lib/components/image-cropper/component/cropper.state.mjs +208 -0
- package/esm2022/lib/components/image-cropper/component/image-cropper.component.mjs +562 -0
- package/esm2022/lib/components/image-cropper/interfaces/basic-event.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/cropper-options.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/cropper-position.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/dimensions.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/exif-transform.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/image-cropped-event.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/image-transform.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/index.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/loaded-image.interface.mjs +2 -0
- package/esm2022/lib/components/image-cropper/interfaces/move-start.interface.mjs +8 -0
- package/esm2022/lib/components/image-cropper/services/crop.service.mjs +139 -0
- package/esm2022/lib/components/image-cropper/services/load-image.service.mjs +194 -0
- package/esm2022/lib/components/image-cropper/utils/cropper-position.utils.mjs +239 -0
- package/esm2022/lib/components/image-cropper/utils/exif.utils.mjs +79 -0
- package/esm2022/lib/components/image-cropper/utils/keyboard.utils.mjs +40 -0
- package/esm2022/lib/components/image-cropper/utils/percentage.utils.mjs +4 -0
- package/esm2022/lib/components/image-cropper/utils/resize.utils.mjs +75 -0
- package/esm2022/lib/nxt-app.module.mjs +5 -2
- package/esm2022/lib/pages/builder/element/element.component.mjs +38 -23
- package/esm2022/lib/pages/builder/properties/properties.component.mjs +565 -49
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +221 -28
- package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +11 -11
- package/esm2022/lib/services/data.service.mjs +9 -4
- package/esm2022/lib/services/form-builder.service.mjs +4 -4
- package/fesm2022/rangertechnologies-ngnxt.mjs +2665 -318
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/image-cropper/component/cropper.state.d.ts +29 -0
- package/lib/components/image-cropper/component/image-cropper.component.d.ts +109 -0
- package/lib/components/image-cropper/interfaces/basic-event.interface.d.ts +4 -0
- package/lib/components/image-cropper/interfaces/cropper-options.interface.d.ts +28 -0
- package/lib/components/image-cropper/interfaces/cropper-position.interface.d.ts +6 -0
- package/lib/components/image-cropper/interfaces/dimensions.interface.d.ts +4 -0
- package/lib/components/image-cropper/interfaces/exif-transform.interface.d.ts +4 -0
- package/lib/components/image-cropper/interfaces/image-cropped-event.interface.d.ts +11 -0
- package/lib/components/image-cropper/interfaces/image-transform.interface.d.ts +9 -0
- package/lib/components/image-cropper/interfaces/index.d.ts +7 -0
- package/lib/components/image-cropper/interfaces/loaded-image.interface.d.ts +15 -0
- package/lib/components/image-cropper/interfaces/move-start.interface.d.ts +17 -0
- package/lib/components/image-cropper/services/crop.service.d.ts +13 -0
- package/lib/components/image-cropper/services/load-image.service.d.ts +17 -0
- package/lib/components/image-cropper/utils/cropper-position.utils.d.ts +11 -0
- package/lib/components/image-cropper/utils/exif.utils.d.ts +3 -0
- package/lib/components/image-cropper/utils/keyboard.utils.d.ts +5 -0
- package/lib/components/image-cropper/utils/percentage.utils.d.ts +1 -0
- package/lib/components/image-cropper/utils/resize.utils.d.ts +1 -0
- package/lib/nxt-app.module.d.ts +5 -4
- package/lib/pages/builder/element/element.component.d.ts +2 -0
- package/lib/pages/builder/properties/properties.component.d.ts +301 -2
- package/lib/pages/questionbook/questionbook.component.d.ts +39 -1
- package/lib/services/form-builder.service.d.ts +1 -1
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.1.122.tgz +0 -0
- package/src/lib/style.css +50 -1
- package/rangertechnologies-ngnxt-2.1.120.tgz +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
3
3
|
import { FormBuilderService } from '../../../services/form-builder.service';
|
|
4
|
+
import { CropperPosition, Dimensions, ImageTransform } from '../../../components/image-cropper/interfaces';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class PropertiesComponent implements OnInit {
|
|
6
7
|
private http;
|
|
@@ -18,6 +19,20 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
18
19
|
book: any;
|
|
19
20
|
activeTab: string;
|
|
20
21
|
selectColumn: any;
|
|
22
|
+
transform: ImageTransform;
|
|
23
|
+
canvasRotation: number;
|
|
24
|
+
cropper?: CropperPosition;
|
|
25
|
+
loading: boolean;
|
|
26
|
+
cropperMaxHeight: number;
|
|
27
|
+
cropperMaxWidth: number;
|
|
28
|
+
cropperMinHeight: number;
|
|
29
|
+
cropperMinWidth: number;
|
|
30
|
+
cropperStaticWidth: number;
|
|
31
|
+
cropperStaticHeight: number;
|
|
32
|
+
aspectRatio: number;
|
|
33
|
+
roundCropper: boolean;
|
|
34
|
+
imageChangedEvent: Event | null;
|
|
35
|
+
alignImage: "center";
|
|
21
36
|
elementProperties: {
|
|
22
37
|
Header: {
|
|
23
38
|
elementProps: {
|
|
@@ -33,22 +48,35 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
33
48
|
placeholder: string;
|
|
34
49
|
type: string;
|
|
35
50
|
key: string;
|
|
51
|
+
subQuestion?: undefined;
|
|
36
52
|
} | {
|
|
37
53
|
label: string;
|
|
38
54
|
type: string;
|
|
39
55
|
key: string;
|
|
40
56
|
placeholder?: undefined;
|
|
57
|
+
subQuestion?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
label: string;
|
|
60
|
+
placeholder: string;
|
|
61
|
+
type: string;
|
|
62
|
+
key: string;
|
|
63
|
+
subQuestion: {
|
|
64
|
+
label: string;
|
|
65
|
+
placeholder: string;
|
|
66
|
+
type: string;
|
|
67
|
+
key: string;
|
|
68
|
+
}[];
|
|
41
69
|
})[];
|
|
42
70
|
fieldProps: ({
|
|
43
71
|
label: string;
|
|
44
|
-
placeholder: string;
|
|
45
72
|
type: string;
|
|
46
73
|
key: string;
|
|
74
|
+
placeholder?: undefined;
|
|
47
75
|
} | {
|
|
48
76
|
label: string;
|
|
77
|
+
placeholder: string;
|
|
49
78
|
type: string;
|
|
50
79
|
key: string;
|
|
51
|
-
placeholder?: undefined;
|
|
52
80
|
})[];
|
|
53
81
|
appearance: ({
|
|
54
82
|
label: string;
|
|
@@ -87,6 +115,26 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
87
115
|
options?: undefined;
|
|
88
116
|
})[];
|
|
89
117
|
};
|
|
118
|
+
Book: {
|
|
119
|
+
elementProps: ({
|
|
120
|
+
label: string;
|
|
121
|
+
placeholder: string;
|
|
122
|
+
type: string;
|
|
123
|
+
key: string;
|
|
124
|
+
} | {
|
|
125
|
+
label: string;
|
|
126
|
+
type: string;
|
|
127
|
+
key: string;
|
|
128
|
+
placeholder?: undefined;
|
|
129
|
+
})[];
|
|
130
|
+
fieldProps: {
|
|
131
|
+
label: string;
|
|
132
|
+
placeholder: string;
|
|
133
|
+
type: string;
|
|
134
|
+
key: string;
|
|
135
|
+
}[];
|
|
136
|
+
appearance: any[];
|
|
137
|
+
};
|
|
90
138
|
Line: {
|
|
91
139
|
elementProps: ({
|
|
92
140
|
label: string;
|
|
@@ -155,11 +203,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
155
203
|
placeholder: string;
|
|
156
204
|
type: string;
|
|
157
205
|
key: string;
|
|
206
|
+
subQuestion?: undefined;
|
|
158
207
|
} | {
|
|
159
208
|
label: string;
|
|
160
209
|
type: string;
|
|
161
210
|
key: string;
|
|
162
211
|
placeholder?: undefined;
|
|
212
|
+
subQuestion?: undefined;
|
|
213
|
+
} | {
|
|
214
|
+
label: string;
|
|
215
|
+
placeholder: string;
|
|
216
|
+
type: string;
|
|
217
|
+
key: string;
|
|
218
|
+
subQuestion: {
|
|
219
|
+
label: string;
|
|
220
|
+
placeholder: string;
|
|
221
|
+
type: string;
|
|
222
|
+
key: string;
|
|
223
|
+
}[];
|
|
163
224
|
})[];
|
|
164
225
|
fieldProps: ({
|
|
165
226
|
label: string;
|
|
@@ -226,11 +287,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
226
287
|
placeholder: string;
|
|
227
288
|
type: string;
|
|
228
289
|
key: string;
|
|
290
|
+
subQuestion?: undefined;
|
|
229
291
|
} | {
|
|
230
292
|
label: string;
|
|
231
293
|
type: string;
|
|
232
294
|
key: string;
|
|
233
295
|
placeholder?: undefined;
|
|
296
|
+
subQuestion?: undefined;
|
|
297
|
+
} | {
|
|
298
|
+
label: string;
|
|
299
|
+
placeholder: string;
|
|
300
|
+
type: string;
|
|
301
|
+
key: string;
|
|
302
|
+
subQuestion: {
|
|
303
|
+
label: string;
|
|
304
|
+
placeholder: string;
|
|
305
|
+
type: string;
|
|
306
|
+
key: string;
|
|
307
|
+
}[];
|
|
234
308
|
})[];
|
|
235
309
|
fieldProps: ({
|
|
236
310
|
label: string;
|
|
@@ -286,11 +360,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
286
360
|
placeholder: string;
|
|
287
361
|
type: string;
|
|
288
362
|
key: string;
|
|
363
|
+
subQuestion?: undefined;
|
|
289
364
|
} | {
|
|
290
365
|
label: string;
|
|
291
366
|
type: string;
|
|
292
367
|
key: string;
|
|
293
368
|
placeholder?: undefined;
|
|
369
|
+
subQuestion?: undefined;
|
|
370
|
+
} | {
|
|
371
|
+
label: string;
|
|
372
|
+
placeholder: string;
|
|
373
|
+
type: string;
|
|
374
|
+
key: string;
|
|
375
|
+
subQuestion: {
|
|
376
|
+
label: string;
|
|
377
|
+
placeholder: string;
|
|
378
|
+
type: string;
|
|
379
|
+
key: string;
|
|
380
|
+
}[];
|
|
294
381
|
})[];
|
|
295
382
|
fieldProps: ({
|
|
296
383
|
label: string;
|
|
@@ -340,17 +427,92 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
340
427
|
options?: undefined;
|
|
341
428
|
})[];
|
|
342
429
|
};
|
|
430
|
+
Time: {
|
|
431
|
+
elementProps: ({
|
|
432
|
+
label: string;
|
|
433
|
+
placeholder: string;
|
|
434
|
+
type: string;
|
|
435
|
+
key: string;
|
|
436
|
+
subQuestion?: undefined;
|
|
437
|
+
} | {
|
|
438
|
+
label: string;
|
|
439
|
+
type: string;
|
|
440
|
+
key: string;
|
|
441
|
+
placeholder?: undefined;
|
|
442
|
+
subQuestion?: undefined;
|
|
443
|
+
} | {
|
|
444
|
+
label: string;
|
|
445
|
+
placeholder: string;
|
|
446
|
+
type: string;
|
|
447
|
+
key: string;
|
|
448
|
+
subQuestion: {
|
|
449
|
+
label: string;
|
|
450
|
+
placeholder: string;
|
|
451
|
+
type: string;
|
|
452
|
+
key: string;
|
|
453
|
+
}[];
|
|
454
|
+
})[];
|
|
455
|
+
fieldProps: ({
|
|
456
|
+
label: string;
|
|
457
|
+
type: string;
|
|
458
|
+
key: string;
|
|
459
|
+
placeholder?: undefined;
|
|
460
|
+
} | {
|
|
461
|
+
label: string;
|
|
462
|
+
placeholder: string;
|
|
463
|
+
type: string;
|
|
464
|
+
key: string;
|
|
465
|
+
})[];
|
|
466
|
+
appearance: ({
|
|
467
|
+
label: string;
|
|
468
|
+
type: string;
|
|
469
|
+
key: string;
|
|
470
|
+
placeholder: string;
|
|
471
|
+
options: string[];
|
|
472
|
+
defaultValue?: undefined;
|
|
473
|
+
} | {
|
|
474
|
+
label: string;
|
|
475
|
+
type: string;
|
|
476
|
+
key: string;
|
|
477
|
+
defaultValue: string;
|
|
478
|
+
placeholder?: undefined;
|
|
479
|
+
options?: undefined;
|
|
480
|
+
} | {
|
|
481
|
+
label: string;
|
|
482
|
+
type: string;
|
|
483
|
+
key: string;
|
|
484
|
+
options: {
|
|
485
|
+
label: string;
|
|
486
|
+
value: string;
|
|
487
|
+
}[];
|
|
488
|
+
placeholder?: undefined;
|
|
489
|
+
defaultValue?: undefined;
|
|
490
|
+
})[];
|
|
491
|
+
};
|
|
343
492
|
Email: {
|
|
344
493
|
elementProps: ({
|
|
345
494
|
label: string;
|
|
346
495
|
placeholder: string;
|
|
347
496
|
type: string;
|
|
348
497
|
key: string;
|
|
498
|
+
subQuestion?: undefined;
|
|
349
499
|
} | {
|
|
350
500
|
label: string;
|
|
351
501
|
type: string;
|
|
352
502
|
key: string;
|
|
353
503
|
placeholder?: undefined;
|
|
504
|
+
subQuestion?: undefined;
|
|
505
|
+
} | {
|
|
506
|
+
label: string;
|
|
507
|
+
placeholder: string;
|
|
508
|
+
type: string;
|
|
509
|
+
key: string;
|
|
510
|
+
subQuestion: {
|
|
511
|
+
label: string;
|
|
512
|
+
placeholder: string;
|
|
513
|
+
type: string;
|
|
514
|
+
key: string;
|
|
515
|
+
}[];
|
|
354
516
|
})[];
|
|
355
517
|
fieldProps: ({
|
|
356
518
|
label: string;
|
|
@@ -534,12 +696,26 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
534
696
|
placeholder: string;
|
|
535
697
|
type: string;
|
|
536
698
|
key: string;
|
|
699
|
+
subQuestion?: undefined;
|
|
537
700
|
options?: undefined;
|
|
538
701
|
} | {
|
|
539
702
|
label: string;
|
|
540
703
|
type: string;
|
|
541
704
|
key: string;
|
|
542
705
|
placeholder?: undefined;
|
|
706
|
+
subQuestion?: undefined;
|
|
707
|
+
options?: undefined;
|
|
708
|
+
} | {
|
|
709
|
+
label: string;
|
|
710
|
+
placeholder: string;
|
|
711
|
+
type: string;
|
|
712
|
+
key: string;
|
|
713
|
+
subQuestion: {
|
|
714
|
+
label: string;
|
|
715
|
+
placeholder: string;
|
|
716
|
+
type: string;
|
|
717
|
+
key: string;
|
|
718
|
+
}[];
|
|
543
719
|
options?: undefined;
|
|
544
720
|
} | {
|
|
545
721
|
label: string;
|
|
@@ -551,6 +727,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
551
727
|
extensions: string[];
|
|
552
728
|
}[];
|
|
553
729
|
placeholder?: undefined;
|
|
730
|
+
subQuestion?: undefined;
|
|
554
731
|
})[];
|
|
555
732
|
fieldProps: ({
|
|
556
733
|
label: string;
|
|
@@ -606,11 +783,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
606
783
|
placeholder: string;
|
|
607
784
|
type: string;
|
|
608
785
|
key: string;
|
|
786
|
+
subQuestion?: undefined;
|
|
609
787
|
} | {
|
|
610
788
|
label: string;
|
|
611
789
|
type: string;
|
|
612
790
|
key: string;
|
|
613
791
|
placeholder?: undefined;
|
|
792
|
+
subQuestion?: undefined;
|
|
793
|
+
} | {
|
|
794
|
+
label: string;
|
|
795
|
+
placeholder: string;
|
|
796
|
+
type: string;
|
|
797
|
+
key: string;
|
|
798
|
+
subQuestion: {
|
|
799
|
+
label: string;
|
|
800
|
+
placeholder: string;
|
|
801
|
+
type: string;
|
|
802
|
+
key: string;
|
|
803
|
+
}[];
|
|
614
804
|
})[];
|
|
615
805
|
fieldProps: ({
|
|
616
806
|
label: string;
|
|
@@ -666,11 +856,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
666
856
|
placeholder: string;
|
|
667
857
|
type: string;
|
|
668
858
|
key: string;
|
|
859
|
+
subQuestion?: undefined;
|
|
669
860
|
} | {
|
|
670
861
|
label: string;
|
|
671
862
|
type: string;
|
|
672
863
|
key: string;
|
|
673
864
|
placeholder?: undefined;
|
|
865
|
+
subQuestion?: undefined;
|
|
866
|
+
} | {
|
|
867
|
+
label: string;
|
|
868
|
+
placeholder: string;
|
|
869
|
+
type: string;
|
|
870
|
+
key: string;
|
|
871
|
+
subQuestion: {
|
|
872
|
+
label: string;
|
|
873
|
+
placeholder: string;
|
|
874
|
+
type: string;
|
|
875
|
+
key: string;
|
|
876
|
+
}[];
|
|
674
877
|
})[];
|
|
675
878
|
fieldProps: ({
|
|
676
879
|
label: string;
|
|
@@ -726,11 +929,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
726
929
|
placeholder: string;
|
|
727
930
|
type: string;
|
|
728
931
|
key: string;
|
|
932
|
+
subQuestion?: undefined;
|
|
729
933
|
} | {
|
|
730
934
|
label: string;
|
|
731
935
|
type: string;
|
|
732
936
|
key: string;
|
|
733
937
|
placeholder?: undefined;
|
|
938
|
+
subQuestion?: undefined;
|
|
939
|
+
} | {
|
|
940
|
+
label: string;
|
|
941
|
+
placeholder: string;
|
|
942
|
+
type: string;
|
|
943
|
+
key: string;
|
|
944
|
+
subQuestion: {
|
|
945
|
+
label: string;
|
|
946
|
+
placeholder: string;
|
|
947
|
+
type: string;
|
|
948
|
+
key: string;
|
|
949
|
+
}[];
|
|
734
950
|
})[];
|
|
735
951
|
fieldProps: ({
|
|
736
952
|
label: string;
|
|
@@ -786,11 +1002,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
786
1002
|
placeholder: string;
|
|
787
1003
|
type: string;
|
|
788
1004
|
key: string;
|
|
1005
|
+
subQuestion?: undefined;
|
|
789
1006
|
} | {
|
|
790
1007
|
label: string;
|
|
791
1008
|
type: string;
|
|
792
1009
|
key: string;
|
|
793
1010
|
placeholder?: undefined;
|
|
1011
|
+
subQuestion?: undefined;
|
|
1012
|
+
} | {
|
|
1013
|
+
label: string;
|
|
1014
|
+
placeholder: string;
|
|
1015
|
+
type: string;
|
|
1016
|
+
key: string;
|
|
1017
|
+
subQuestion: {
|
|
1018
|
+
label: string;
|
|
1019
|
+
placeholder: string;
|
|
1020
|
+
type: string;
|
|
1021
|
+
key: string;
|
|
1022
|
+
}[];
|
|
794
1023
|
})[];
|
|
795
1024
|
fieldProps: ({
|
|
796
1025
|
label: string;
|
|
@@ -846,11 +1075,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
846
1075
|
placeholder: string;
|
|
847
1076
|
type: string;
|
|
848
1077
|
key: string;
|
|
1078
|
+
subQuestion?: undefined;
|
|
849
1079
|
} | {
|
|
850
1080
|
label: string;
|
|
851
1081
|
type: string;
|
|
852
1082
|
key: string;
|
|
853
1083
|
placeholder?: undefined;
|
|
1084
|
+
subQuestion?: undefined;
|
|
1085
|
+
} | {
|
|
1086
|
+
label: string;
|
|
1087
|
+
placeholder: string;
|
|
1088
|
+
type: string;
|
|
1089
|
+
key: string;
|
|
1090
|
+
subQuestion: {
|
|
1091
|
+
label: string;
|
|
1092
|
+
placeholder: string;
|
|
1093
|
+
type: string;
|
|
1094
|
+
key: string;
|
|
1095
|
+
}[];
|
|
854
1096
|
})[];
|
|
855
1097
|
fieldProps: ({
|
|
856
1098
|
label: string;
|
|
@@ -917,11 +1159,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
917
1159
|
placeholder: string;
|
|
918
1160
|
type: string;
|
|
919
1161
|
key: string;
|
|
1162
|
+
subQuestion?: undefined;
|
|
920
1163
|
} | {
|
|
921
1164
|
label: string;
|
|
922
1165
|
type: string;
|
|
923
1166
|
key: string;
|
|
924
1167
|
placeholder?: undefined;
|
|
1168
|
+
subQuestion?: undefined;
|
|
1169
|
+
} | {
|
|
1170
|
+
label: string;
|
|
1171
|
+
placeholder: string;
|
|
1172
|
+
type: string;
|
|
1173
|
+
key: string;
|
|
1174
|
+
subQuestion: {
|
|
1175
|
+
label: string;
|
|
1176
|
+
placeholder: string;
|
|
1177
|
+
type: string;
|
|
1178
|
+
key: string;
|
|
1179
|
+
}[];
|
|
925
1180
|
})[];
|
|
926
1181
|
fieldProps: ({
|
|
927
1182
|
label: string;
|
|
@@ -977,11 +1232,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
977
1232
|
placeholder: string;
|
|
978
1233
|
type: string;
|
|
979
1234
|
key: string;
|
|
1235
|
+
subQuestion?: undefined;
|
|
980
1236
|
} | {
|
|
981
1237
|
label: string;
|
|
982
1238
|
type: string;
|
|
983
1239
|
key: string;
|
|
984
1240
|
placeholder?: undefined;
|
|
1241
|
+
subQuestion?: undefined;
|
|
1242
|
+
} | {
|
|
1243
|
+
label: string;
|
|
1244
|
+
placeholder: string;
|
|
1245
|
+
type: string;
|
|
1246
|
+
key: string;
|
|
1247
|
+
subQuestion: {
|
|
1248
|
+
label: string;
|
|
1249
|
+
placeholder: string;
|
|
1250
|
+
type: string;
|
|
1251
|
+
key: string;
|
|
1252
|
+
}[];
|
|
985
1253
|
})[];
|
|
986
1254
|
fieldProps: ({
|
|
987
1255
|
label: string;
|
|
@@ -1048,11 +1316,24 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
1048
1316
|
placeholder: string;
|
|
1049
1317
|
type: string;
|
|
1050
1318
|
key: string;
|
|
1319
|
+
subQuestion?: undefined;
|
|
1051
1320
|
} | {
|
|
1052
1321
|
label: string;
|
|
1053
1322
|
type: string;
|
|
1054
1323
|
key: string;
|
|
1055
1324
|
placeholder?: undefined;
|
|
1325
|
+
subQuestion?: undefined;
|
|
1326
|
+
} | {
|
|
1327
|
+
label: string;
|
|
1328
|
+
placeholder: string;
|
|
1329
|
+
type: string;
|
|
1330
|
+
key: string;
|
|
1331
|
+
subQuestion: {
|
|
1332
|
+
label: string;
|
|
1333
|
+
placeholder: string;
|
|
1334
|
+
type: string;
|
|
1335
|
+
key: string;
|
|
1336
|
+
}[];
|
|
1056
1337
|
})[];
|
|
1057
1338
|
fieldProps: ({
|
|
1058
1339
|
label: string;
|
|
@@ -1110,6 +1391,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
1110
1391
|
get filteredColumns(): any[];
|
|
1111
1392
|
onCheckboxChange(targetArrayPath: any, targetArrayKey: any, key: any, apiName: string, isChecked: boolean): void;
|
|
1112
1393
|
updateProperty(key: string, value: any): void;
|
|
1394
|
+
onRadioChange(targetArrayPath: any, targetArrayKey: any, key: any, value: any): void;
|
|
1113
1395
|
onRequiredChange(value: boolean): void;
|
|
1114
1396
|
getProperties(): any;
|
|
1115
1397
|
addOption(options: any[]): void;
|
|
@@ -1125,10 +1407,27 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
1125
1407
|
getValueByPath(path: string): any;
|
|
1126
1408
|
onToggleChange(path: string, event: Event): void;
|
|
1127
1409
|
setValueByPath(path: string, value: any): void;
|
|
1410
|
+
getStyleKeys(): string[];
|
|
1128
1411
|
updateElement(element: any): void;
|
|
1129
1412
|
getValueByArrayPath(targetArrayPath: any, targetArrayKey: string, selectColumn: string, keyPath: string): any;
|
|
1130
1413
|
updateValueByArrayPath(targetArrayPath: any, targetArrayKey: string, selectColumn: string, keyPath: string, event: Event): void;
|
|
1131
1414
|
getDataByPath(path: string): any;
|
|
1415
|
+
flipHorizontal(): void;
|
|
1416
|
+
flipVertical(): void;
|
|
1417
|
+
resetImage(): void;
|
|
1418
|
+
zoomOut(): void;
|
|
1419
|
+
zoomIn(): void;
|
|
1420
|
+
rotateLeft(): void;
|
|
1421
|
+
rotateRight(): void;
|
|
1422
|
+
moveLeft(): void;
|
|
1423
|
+
moveRight(): void;
|
|
1424
|
+
moveDown(): void;
|
|
1425
|
+
moveUp(): void;
|
|
1426
|
+
private flipAfterRotate;
|
|
1427
|
+
imageCropped(event: any): Promise<void>;
|
|
1428
|
+
cropperReady(sourceImageDimensions: Dimensions): void;
|
|
1429
|
+
convertBlobToBase64(objectUrl: string): Promise<string>;
|
|
1430
|
+
childEventCapture(event: any, element: any): void;
|
|
1132
1431
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertiesComponent, never>;
|
|
1133
1432
|
static ɵcmp: i0.ɵɵComponentDeclaration<PropertiesComponent, "app-properties", never, { "selectedElementType": { "alias": "selectedElementType"; "required": false; }; }, { "formButtonHandler": "formButtonHandler"; }, never, never, false, never>;
|
|
1134
1433
|
}
|
|
@@ -6,6 +6,7 @@ import { ChangeService } from '../../services/change.service';
|
|
|
6
6
|
import { StorageService } from '../../services/storage.service';
|
|
7
7
|
import { I18nService } from '../../i18n.service';
|
|
8
8
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
9
|
+
import { CropperPosition, Dimensions, ImageTransform } from '../../components/image-cropper/interfaces';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class QuestionbookComponent implements OnInit, AfterViewInit {
|
|
11
12
|
private sfService;
|
|
@@ -18,7 +19,7 @@ export declare class QuestionbookComponent implements OnInit, AfterViewInit {
|
|
|
18
19
|
qbItem: QuestionBook;
|
|
19
20
|
questionItem: Question;
|
|
20
21
|
translatedQuestions: any[];
|
|
21
|
-
questions:
|
|
22
|
+
questions: any[];
|
|
22
23
|
errorFieldId: any;
|
|
23
24
|
labelValue: string;
|
|
24
25
|
token: string;
|
|
@@ -33,6 +34,23 @@ export declare class QuestionbookComponent implements OnInit, AfterViewInit {
|
|
|
33
34
|
langDirection: string;
|
|
34
35
|
bookStyle: any;
|
|
35
36
|
subscription: Subscription;
|
|
37
|
+
isImageEdit: boolean;
|
|
38
|
+
selectedImageElement: any;
|
|
39
|
+
transform: ImageTransform;
|
|
40
|
+
canvasRotation: number;
|
|
41
|
+
cropper?: CropperPosition;
|
|
42
|
+
loading: boolean;
|
|
43
|
+
cropperMaxHeight: number;
|
|
44
|
+
cropperMaxWidth: number;
|
|
45
|
+
cropperMinHeight: number;
|
|
46
|
+
cropperMinWidth: number;
|
|
47
|
+
cropperStaticWidth: number;
|
|
48
|
+
cropperStaticHeight: number;
|
|
49
|
+
aspectRatio: number;
|
|
50
|
+
roundCropper: boolean;
|
|
51
|
+
imageChangedEvent: Event | null;
|
|
52
|
+
alignImage: "center";
|
|
53
|
+
isImageHover: boolean;
|
|
36
54
|
getFileRequirements(fieldsMeta: string): string;
|
|
37
55
|
hadleDropDownDependent: EventEmitter<any>;
|
|
38
56
|
handleCalendarDate: EventEmitter<any>;
|
|
@@ -63,6 +81,26 @@ export declare class QuestionbookComponent implements OnInit, AfterViewInit {
|
|
|
63
81
|
onCalendarModalSave(): void;
|
|
64
82
|
handleQuestionEvent(event: any): void;
|
|
65
83
|
closeCalendarModal(event: any): void;
|
|
84
|
+
fileChangeEvent(ques: any, event: any): Promise<void>;
|
|
85
|
+
private readFileAsDataURL;
|
|
86
|
+
onImageEdit(ques: any): Promise<void>;
|
|
87
|
+
onImageDelete(ques: any): Promise<void>;
|
|
88
|
+
flipHorizontal(): void;
|
|
89
|
+
flipVertical(): void;
|
|
90
|
+
resetImage(): void;
|
|
91
|
+
zoomOut(): void;
|
|
92
|
+
zoomIn(): void;
|
|
93
|
+
rotateLeft(): void;
|
|
94
|
+
rotateRight(): void;
|
|
95
|
+
moveLeft(): void;
|
|
96
|
+
moveRight(): void;
|
|
97
|
+
moveDown(): void;
|
|
98
|
+
moveUp(): void;
|
|
99
|
+
private flipAfterRotate;
|
|
100
|
+
imageCropped(event: any): Promise<void>;
|
|
101
|
+
cropperReady(sourceImageDimensions: Dimensions): void;
|
|
102
|
+
convertBlobToBase64(objectUrl: string): Promise<string>;
|
|
103
|
+
closeModal(): void;
|
|
66
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionbookComponent, never>;
|
|
67
105
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionbookComponent, "lib-questionbook", never, { "qbItem": { "alias": "qbItem"; "required": false; }; "questionItem": { "alias": "questionItem"; "required": false; }; "translatedQuestions": { "alias": "translatedQuestions"; "required": false; }; "questions": { "alias": "questions"; "required": false; }; "errorFieldId": { "alias": "errorFieldId"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "dropDownData": { "alias": "dropDownData"; "required": false; }; }, { "handleDropDown": "handleDropDown"; "handleQuestion": "handleQuestion"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, false, never>;
|
|
68
106
|
}
|
|
@@ -23,7 +23,6 @@ interface FormElement {
|
|
|
23
23
|
questionBookId?: any;
|
|
24
24
|
size?: number;
|
|
25
25
|
parentQuestion?: any;
|
|
26
|
-
subText?: any;
|
|
27
26
|
fieldsMeta?: any;
|
|
28
27
|
summaryRows?: any;
|
|
29
28
|
summaryColumns?: any;
|
|
@@ -47,6 +46,7 @@ interface FormElement {
|
|
|
47
46
|
direction: any;
|
|
48
47
|
questionStyle: any;
|
|
49
48
|
};
|
|
49
|
+
subText?: any;
|
|
50
50
|
title?: any;
|
|
51
51
|
subTitle?: any;
|
|
52
52
|
referenceField?: any;
|
package/package.json
CHANGED
|
Binary file
|
package/src/lib/style.css
CHANGED
|
@@ -1814,4 +1814,53 @@ app-form-builder{
|
|
|
1814
1814
|
display: flex;
|
|
1815
1815
|
width: 100%;
|
|
1816
1816
|
height: 100vh;
|
|
1817
|
-
}
|
|
1817
|
+
}
|
|
1818
|
+
.cursor-pointer{
|
|
1819
|
+
cursor: pointer;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
@media print {
|
|
1823
|
+
.input-box {
|
|
1824
|
+
border: none !important;
|
|
1825
|
+
}
|
|
1826
|
+
.nxtButton {
|
|
1827
|
+
display: none !important;
|
|
1828
|
+
}
|
|
1829
|
+
/* Adjust specific column widths for print */
|
|
1830
|
+
.col-lg-1 {
|
|
1831
|
+
width: 8.33% !important; /* 1/12 columns */
|
|
1832
|
+
}
|
|
1833
|
+
.col-lg-2 {
|
|
1834
|
+
width: 16.66% !important; /* 2/12 columns */
|
|
1835
|
+
}
|
|
1836
|
+
.col-lg-3 {
|
|
1837
|
+
width: 25% !important; /* 3/12 columns */
|
|
1838
|
+
}
|
|
1839
|
+
.col-lg-4 {
|
|
1840
|
+
width: 33.33% !important; /* 4/12 columns */
|
|
1841
|
+
}
|
|
1842
|
+
.col-lg-5 {
|
|
1843
|
+
width: 41.66% !important; /* 5/12 columns */
|
|
1844
|
+
}
|
|
1845
|
+
.col-lg-6 {
|
|
1846
|
+
width: 50% !important; /* 6/12 columns */
|
|
1847
|
+
}
|
|
1848
|
+
.col-lg-7 {
|
|
1849
|
+
width: 58.33% !important; /* 7/12 columns */
|
|
1850
|
+
}
|
|
1851
|
+
.col-lg-8 {
|
|
1852
|
+
width: 66.66% !important; /* 8/12 columns */
|
|
1853
|
+
}
|
|
1854
|
+
.col-lg-9 {
|
|
1855
|
+
width: 75% !important; /* 9/12 columns */
|
|
1856
|
+
}
|
|
1857
|
+
.col-lg-10 {
|
|
1858
|
+
width: 83.33% !important; /* 10/12 columns */
|
|
1859
|
+
}
|
|
1860
|
+
.col-lg-11 {
|
|
1861
|
+
width: 91.66% !important; /* 11/12 columns */
|
|
1862
|
+
}
|
|
1863
|
+
.col-lg-12 {
|
|
1864
|
+
width: 100% !important; /* 12/12 Full width */
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
Binary file
|