@rangertechnologies/ngnxt 2.1.252 → 2.1.253
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 +2 -2
- package/esm2022/lib/components/button/nxt-button.component.mjs +4 -4
- package/esm2022/lib/components/custom-calendar/custom-calendar.component.mjs +8 -5
- package/esm2022/lib/components/custom-dropdown/custom-dropdown.component.mjs +13 -14
- package/esm2022/lib/components/custom-model/custom-model.component.mjs +5 -3
- package/esm2022/lib/components/custom-radio/custom-radio.component.mjs +8 -11
- package/esm2022/lib/components/datatable/datatable.component.mjs +7 -8
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +13 -16
- package/esm2022/lib/components/icon-selector/icon-selector.component.mjs +4 -3
- package/esm2022/lib/components/list-view-filter/list-view-filter.component.mjs +9 -9
- package/esm2022/lib/components/nxt-input/nxt-input.component.mjs +24 -12
- package/esm2022/lib/components/pagination/pagination.component.mjs +3 -3
- package/esm2022/lib/components/pick-location/pick-location.component.mjs +10 -13
- package/esm2022/lib/components/search-box/search-box.component.mjs +14 -15
- package/esm2022/lib/nxt-app.module.mjs +9 -33
- package/esm2022/lib/pages/booklet/booklet.component.mjs +31 -56
- package/esm2022/lib/pages/builder/element/element.component.mjs +68 -36
- package/esm2022/lib/pages/builder/form/form.component.mjs +6 -3
- package/esm2022/lib/pages/builder/properties/common-fields.constants.mjs +3 -3
- package/esm2022/lib/pages/builder/properties/properties.component.mjs +203 -78
- package/esm2022/lib/pages/builder/templates/templates.component.mjs +5 -4
- package/esm2022/lib/pages/pdfDesigner/pdf-designer/pdf-designer.component.mjs +5 -4
- package/esm2022/lib/pages/pdfDesigner/pdf-properties/pdf-properties.component.mjs +42 -45
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +18 -40
- package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +17 -17
- package/esm2022/lib/pipe/custom-translate.pipe.mjs +16 -10
- package/esm2022/lib/services/change/change.service.mjs +46 -0
- package/esm2022/lib/services/country/country.service.mjs +135 -0
- package/esm2022/lib/services/data/data.service.mjs +100 -0
- package/esm2022/lib/services/form-builder/form-builder.service.mjs +500 -0
- package/esm2022/lib/services/pdf-designer/pdf-designer.service.mjs +398 -0
- package/esm2022/lib/services/salesforce/salesforce.service.mjs +41 -0
- package/esm2022/lib/services/shared/shared.service.mjs +100 -0
- package/esm2022/lib/services/storage/storage.service.mjs +59 -0
- package/esm2022/lib/services/template/template.service.mjs +351 -0
- package/esm2022/lib/services/translation/translation.service.mjs +121 -0
- package/esm2022/public-api.mjs +2 -5
- package/fesm2022/rangertechnologies-ngnxt.mjs +1265 -1259
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/button/nxt-button.component.d.ts +1 -1
- package/lib/components/custom-calendar/custom-calendar.component.d.ts +1 -1
- package/lib/components/custom-dropdown/custom-dropdown.component.d.ts +3 -5
- package/lib/components/custom-radio/custom-radio.component.d.ts +3 -5
- package/lib/components/datatable/datatable.component.d.ts +3 -3
- package/lib/components/file-upload/file-upload.component.d.ts +3 -5
- package/lib/components/image-cropper/component/image-cropper.component.d.ts +1 -1
- package/lib/components/nxt-input/nxt-input.component.d.ts +2 -2
- package/lib/components/pick-location/pick-location.component.d.ts +1 -3
- package/lib/components/search-box/search-box.component.d.ts +5 -7
- package/lib/nxt-app.module.d.ts +15 -17
- package/lib/pages/booklet/booklet.component.d.ts +9 -9
- package/lib/pages/builder/element/element.component.d.ts +10 -4
- package/lib/pages/builder/form/form.component.d.ts +2 -1
- package/lib/pages/builder/properties/properties.component.d.ts +34 -6
- package/lib/pages/builder/templates/templates.component.d.ts +1 -1
- package/lib/pages/pdfDesigner/pdf-designer/pdf-designer.component.d.ts +1 -1
- package/lib/pages/pdfDesigner/pdf-properties/pdf-properties.component.d.ts +19 -2
- package/lib/pages/questionbook/questionbook.component.d.ts +7 -11
- package/lib/pages/questionnaire/questionnaire.component.d.ts +7 -8
- package/lib/pipe/custom-translate.pipe.d.ts +2 -3
- package/lib/services/{form-builder.service.d.ts → form-builder/form-builder.service.d.ts} +2 -2
- package/lib/services/{pdf-designer.service.d.ts → pdf-designer/pdf-designer.service.d.ts} +1 -1
- package/lib/services/{storage.service.d.ts → storage/storage.service.d.ts} +2 -2
- package/lib/services/{translation.service.d.ts → translation/translation.service.d.ts} +12 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -3
- package/rangertechnologies-ngnxt-2.1.253.tgz +0 -0
- package/esm2022/lib/ar.i18n.mjs +0 -29
- package/esm2022/lib/en.i18n.mjs +0 -29
- package/esm2022/lib/i18n-config.service.mjs +0 -4
- package/esm2022/lib/i18n.component.mjs +0 -45
- package/esm2022/lib/i18n.module.mjs +0 -38
- package/esm2022/lib/i18n.pipe.mjs +0 -26
- package/esm2022/lib/i18n.service.mjs +0 -56
- package/esm2022/lib/interfaces/apimeta.mjs +0 -2
- package/esm2022/lib/services/change.service.mjs +0 -46
- package/esm2022/lib/services/country.service.mjs +0 -135
- package/esm2022/lib/services/data.service.mjs +0 -100
- package/esm2022/lib/services/form-builder.service.mjs +0 -402
- package/esm2022/lib/services/pdf-designer.service.mjs +0 -398
- package/esm2022/lib/services/salesforce.service.mjs +0 -41
- package/esm2022/lib/services/shared.service.mjs +0 -100
- package/esm2022/lib/services/storage.service.mjs +0 -59
- package/esm2022/lib/services/template.service.mjs +0 -351
- package/esm2022/lib/services/translation.service.mjs +0 -61
- package/esm2022/lib/tam.i18n.mjs +0 -29
- package/lib/ar.i18n.d.ts +0 -24
- package/lib/en.i18n.d.ts +0 -24
- package/lib/i18n-config.service.d.ts +0 -2
- package/lib/i18n.component.d.ts +0 -11
- package/lib/i18n.module.d.ts +0 -9
- package/lib/i18n.pipe.d.ts +0 -10
- package/lib/i18n.service.d.ts +0 -14
- package/lib/interfaces/apimeta.d.ts +0 -15
- package/lib/tam.i18n.d.ts +0 -24
- package/rangertechnologies-ngnxt-2.1.252.tgz +0 -0
- /package/lib/services/{change.service.d.ts → change/change.service.d.ts} +0 -0
- /package/lib/services/{country.service.d.ts → country/country.service.d.ts} +0 -0
- /package/lib/services/{data.service.d.ts → data/data.service.d.ts} +0 -0
- /package/lib/services/{salesforce.service.d.ts → salesforce/salesforce.service.d.ts} +0 -0
- /package/lib/services/{shared.service.d.ts → shared/shared.service.d.ts} +0 -0
- /package/lib/services/{template.service.d.ts → template/template.service.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { TranslationService } from '../../services/translation.service';
|
|
2
|
+
import { TranslationService } from '../../services/translation/translation.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NxtButtonComponent implements OnInit {
|
|
5
5
|
private cdRef;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { Question } from '../../wrapper';
|
|
3
|
-
import { ChangeService } from '../../services/change.service';
|
|
3
|
+
import { ChangeService } from '../../services/change/change.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
interface CalendarDay {
|
|
6
6
|
date: Date;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Subscription } from 'rxjs';
|
|
3
|
-
import { ChangeService } from '../../services/change.service';
|
|
4
|
-
import {
|
|
5
|
-
import { DataService } from '../../services/data.service';
|
|
3
|
+
import { ChangeService } from '../../services/change/change.service';
|
|
4
|
+
import { DataService } from '../../services/data/data.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class CustomDropdownComponent implements OnInit {
|
|
8
7
|
private changeService;
|
|
9
8
|
private dataService;
|
|
10
|
-
i18nService: I18nService;
|
|
11
9
|
options: any[];
|
|
12
10
|
placeholder: string;
|
|
13
11
|
apiMeta: string;
|
|
@@ -26,7 +24,7 @@ export declare class CustomDropdownComponent implements OnInit {
|
|
|
26
24
|
valueChange: EventEmitter<any>;
|
|
27
25
|
dropdownWrapper: ElementRef;
|
|
28
26
|
invalidFieldIds: string[];
|
|
29
|
-
constructor(changeService: ChangeService, dataService: DataService
|
|
27
|
+
constructor(changeService: ChangeService, dataService: DataService);
|
|
30
28
|
labelField: string;
|
|
31
29
|
valueField: string;
|
|
32
30
|
subscription: Subscription;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ChangeWrapper } from '../../model/changeWrapper';
|
|
3
|
-
import { ChangeService } from '../../services/change.service';
|
|
4
|
-
import { I18nService } from '../../i18n.service';
|
|
5
|
-
import { DataService } from '../../services/data.service';
|
|
6
3
|
import { Subscription } from 'rxjs';
|
|
4
|
+
import { ChangeService } from '../../services/change/change.service';
|
|
5
|
+
import { DataService } from '../../services/data/data.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class CustomRadioComponent implements OnInit {
|
|
9
8
|
private changeService;
|
|
10
9
|
private dataService;
|
|
11
|
-
i18nService: I18nService;
|
|
12
10
|
options: any[];
|
|
13
11
|
question: any;
|
|
14
12
|
apiMeta: string;
|
|
@@ -31,7 +29,7 @@ export declare class CustomRadioComponent implements OnInit {
|
|
|
31
29
|
isSaveHovered: boolean;
|
|
32
30
|
isDiscardHovered: boolean;
|
|
33
31
|
value: ChangeWrapper;
|
|
34
|
-
constructor(changeService: ChangeService, dataService: DataService
|
|
32
|
+
constructor(changeService: ChangeService, dataService: DataService);
|
|
35
33
|
viewEdit: boolean;
|
|
36
34
|
ngOnInit(): void;
|
|
37
35
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, ElementRef, Renderer2, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { MatSort } from '@angular/material/sort';
|
|
3
|
-
import { DataService } from '../../services/data.service';
|
|
4
|
-
import { ChangeService } from '../../services/change.service';
|
|
5
3
|
import { Subscription } from 'rxjs';
|
|
6
|
-
import { TranslationService } from '../../services/translation.service';
|
|
4
|
+
import { TranslationService } from '../../services/translation/translation.service';
|
|
5
|
+
import { DataService } from '../../services/data/data.service';
|
|
6
|
+
import { ChangeService } from '../../services/change/change.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class NxtDatatable {
|
|
9
9
|
private cdRef;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { SharedService } from '../../services/shared.service';
|
|
4
|
-
import { DataService } from '../../services/data.service';
|
|
2
|
+
import { SharedService } from '../../services/shared/shared.service';
|
|
5
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { DataService } from '../../services/data/data.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class NxtFileUploadComponent implements OnInit, OnChanges {
|
|
8
7
|
private SharedService;
|
|
9
8
|
private dataService;
|
|
10
9
|
private sanitizer;
|
|
11
|
-
i18nService: I18nService;
|
|
12
10
|
selectedFileData: EventEmitter<any>;
|
|
13
11
|
deletedFileData: EventEmitter<any>;
|
|
14
12
|
allFiles: any;
|
|
@@ -35,7 +33,7 @@ export declare class NxtFileUploadComponent implements OnInit, OnChanges {
|
|
|
35
33
|
isSaveHovered: boolean;
|
|
36
34
|
isDiscardHovered: boolean;
|
|
37
35
|
isLoading: boolean;
|
|
38
|
-
constructor(SharedService: SharedService, dataService: DataService, sanitizer: DomSanitizer
|
|
36
|
+
constructor(SharedService: SharedService, dataService: DataService, sanitizer: DomSanitizer);
|
|
39
37
|
ngOnInit(): void;
|
|
40
38
|
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
41
39
|
initializeFileConfigs(): void;
|
|
@@ -67,7 +67,7 @@ export declare class ImageCropperComponent implements OnChanges, OnInit, OnDestr
|
|
|
67
67
|
loadImageFailed: EventEmitter<void>;
|
|
68
68
|
transformChange: EventEmitter<ImageTransform>;
|
|
69
69
|
cropperChange: EventEmitter<CropperPosition>;
|
|
70
|
-
get alignImageStyle(): "
|
|
70
|
+
get alignImageStyle(): "left" | "center";
|
|
71
71
|
constructor(sanitizer: DomSanitizer, cd: ChangeDetectorRef, zone: NgZone);
|
|
72
72
|
ngOnInit(): void;
|
|
73
73
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, QueryList, ElementRef, SimpleChanges, AfterViewInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { AbstractControl, FormArray, FormControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
3
|
-
import { ChangeService } from '../../services/change.service';
|
|
4
|
-
import { DataService } from '../../services/data.service';
|
|
5
3
|
import { Subscription } from 'rxjs';
|
|
6
4
|
import { OwlDateTimeComponent } from '@danielmoncada/angular-datetime-picker';
|
|
7
5
|
import { QuillModules } from 'ngx-quill';
|
|
6
|
+
import { ChangeService } from '../../services/change/change.service';
|
|
7
|
+
import { DataService } from '../../services/data/data.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class NxtInput implements AfterViewInit {
|
|
10
10
|
#private;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
import { ElementRef, EventEmitter, ChangeDetectorRef, NgZone, OnInit, SimpleChanges, OnChanges } from '@angular/core';
|
|
3
|
-
import { I18nService } from '../../i18n.service';
|
|
4
3
|
import { ChangeWrapper } from '../../model/changeWrapper';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class PickLocationComponent implements OnInit, OnChanges {
|
|
7
|
-
i18nService: I18nService;
|
|
8
6
|
private ngZone;
|
|
9
7
|
private cdr;
|
|
10
8
|
latitude: any;
|
|
@@ -29,7 +27,7 @@ export declare class PickLocationComponent implements OnInit, OnChanges {
|
|
|
29
27
|
};
|
|
30
28
|
markerOptions: any;
|
|
31
29
|
apiKey: any;
|
|
32
|
-
constructor(
|
|
30
|
+
constructor(ngZone: NgZone, cdr: ChangeDetectorRef);
|
|
33
31
|
ngOnInit(): void;
|
|
34
32
|
ngOnChanges(changes: SimpleChanges): void;
|
|
35
33
|
setInputRef(ref: ElementRef<HTMLInputElement>): void;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, OnChanges, EventEmitter, ElementRef, SimpleChanges, WritableSignal, TrackByFunction } from "@angular/core";
|
|
2
|
-
import { DataService } from '../../services/data.service';
|
|
3
|
-
import { I18nService } from "../../i18n.service";
|
|
4
|
-
import { CountryService } from "../../services/country.service";
|
|
5
2
|
import { Subscription } from "rxjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { StorageService } from "../../services/storage/storage.service";
|
|
4
|
+
import { ChangeService } from "../../services/change/change.service";
|
|
5
|
+
import { DataService } from "../../services/data/data.service";
|
|
6
|
+
import { CountryService } from "../../services/country/country.service";
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class NxtSearchBox implements OnInit, OnChanges, OnDestroy {
|
|
10
9
|
private storageService;
|
|
11
10
|
private changeService;
|
|
12
11
|
private dataService;
|
|
13
|
-
i18nService: I18nService;
|
|
14
12
|
private countryService;
|
|
15
13
|
private elementRef;
|
|
16
14
|
placeHolderText: string;
|
|
@@ -40,7 +38,7 @@ export declare class NxtSearchBox implements OnInit, OnChanges, OnDestroy {
|
|
|
40
38
|
private searchSubject;
|
|
41
39
|
subscription: Subscription;
|
|
42
40
|
trackByFn: TrackByFunction<any>;
|
|
43
|
-
constructor(storageService: StorageService, changeService: ChangeService, dataService: DataService,
|
|
41
|
+
constructor(storageService: StorageService, changeService: ChangeService, dataService: DataService, countryService: CountryService, elementRef: ElementRef);
|
|
44
42
|
ngOnInit(): void;
|
|
45
43
|
ngOnChanges(changes: SimpleChanges): void;
|
|
46
44
|
ngOnDestroy(): void;
|
package/lib/nxt-app.module.d.ts
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { TranslationService } from './services/translation.service';
|
|
1
|
+
import { TranslationService } from './services/translation/translation.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "./nxt-app.component";
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "@angular/
|
|
6
|
-
import * as i4 from "
|
|
7
|
-
import * as i5 from "./components/
|
|
8
|
-
import * as i6 from "./components/
|
|
9
|
-
import * as i7 from "./components/
|
|
10
|
-
import * as i8 from "./
|
|
11
|
-
import * as i9 from "./pages/
|
|
12
|
-
import * as i10 from "./pages/
|
|
13
|
-
import * as i11 from "./
|
|
14
|
-
import * as i12 from "./components/
|
|
15
|
-
import * as i13 from "./
|
|
16
|
-
import * as i14 from "./pages/
|
|
17
|
-
import * as i15 from "./pages/builder/form/form.component";
|
|
18
|
-
import * as i16 from "./i18n.module";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/forms";
|
|
6
|
+
import * as i4 from "./components/datatable/datatable.component";
|
|
7
|
+
import * as i5 from "./components/search-box/search-box.component";
|
|
8
|
+
import * as i6 from "./components/list-view-filter/list-view-filter.component";
|
|
9
|
+
import * as i7 from "./components/nxt-input/nxt-input.component";
|
|
10
|
+
import * as i8 from "./pages/questionnaire/questionnaire.component";
|
|
11
|
+
import * as i9 from "./pages/booklet/booklet.component";
|
|
12
|
+
import * as i10 from "./pages/questionbook/questionbook.component";
|
|
13
|
+
import * as i11 from "./components/button/nxt-button.component";
|
|
14
|
+
import * as i12 from "./components/icon-selector/icon-selector.component";
|
|
15
|
+
import * as i13 from "./pages/pdfDesigner/pdf-designer/pdf-designer.component";
|
|
16
|
+
import * as i14 from "./pages/builder/form/form.component";
|
|
19
17
|
export declare function initializeApp(translationService: TranslationService): () => Promise<void>;
|
|
20
18
|
export declare class NxtAppModule {
|
|
21
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NxtDatatable, typeof i5.NxtSearchBox, typeof i6.ListViewFilterComponent, typeof i7.NxtInput, typeof i8.QuestionnaireComponent, typeof i9.BookletComponent, typeof i10.QuestionbookComponent, typeof i11.NxtButtonComponent, typeof i12.IconSelectorComponent, typeof i13.PdfDesignerComponent, typeof i14.FormComponent], [typeof i1.NxtAppComponent, typeof i8.QuestionnaireComponent, typeof i9.BookletComponent, typeof i4.NxtDatatable, typeof i5.NxtSearchBox, typeof i6.ListViewFilterComponent, typeof i7.NxtInput, typeof i11.NxtButtonComponent, typeof i12.IconSelectorComponent, typeof i13.PdfDesignerComponent]>;
|
|
23
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<NxtAppModule>;
|
|
24
22
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, SimpleChanges } from "@angular/core";
|
|
2
|
-
import { SalesforceService } from "../../services/salesforce.service";
|
|
3
|
-
import { DataService } from '../../services/data.service';
|
|
4
2
|
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
5
3
|
import { ActionMeta } from '../../interfaces/actionMeta';
|
|
6
4
|
import { BookletWrapper } from "../../model/bookletWrapper";
|
|
7
|
-
import { StorageService } from '../../services/storage.service';
|
|
8
|
-
import { ChangeService } from "../../services/change.service";
|
|
9
5
|
import { Observable } from "rxjs";
|
|
10
6
|
import { HttpClient } from "@angular/common/http";
|
|
11
7
|
import { QuestionbookComponent } from "../questionbook/questionbook.component";
|
|
8
|
+
import { SalesforceService } from "../../services/salesforce/salesforce.service";
|
|
9
|
+
import { DataService } from "../../services/data/data.service";
|
|
10
|
+
import { StorageService } from "../../services/storage/storage.service";
|
|
11
|
+
import { ChangeService } from "../../services/change/change.service";
|
|
12
|
+
import { TranslationService } from "../../services/translation/translation.service";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class BookletComponent implements OnInit {
|
|
14
15
|
private sfService;
|
|
@@ -17,6 +18,7 @@ export declare class BookletComponent implements OnInit {
|
|
|
17
18
|
private sanitizer;
|
|
18
19
|
private changeService;
|
|
19
20
|
private http;
|
|
21
|
+
private translationService;
|
|
20
22
|
bookletId: string;
|
|
21
23
|
serv: string;
|
|
22
24
|
tkn: string;
|
|
@@ -32,6 +34,7 @@ export declare class BookletComponent implements OnInit {
|
|
|
32
34
|
from: any;
|
|
33
35
|
apiUrl: any;
|
|
34
36
|
isEdit: boolean;
|
|
37
|
+
direction: string;
|
|
35
38
|
handleBookletActionEvent: EventEmitter<any>;
|
|
36
39
|
handlePage: EventEmitter<any>;
|
|
37
40
|
hadleDropDownDependent: EventEmitter<any>;
|
|
@@ -42,17 +45,15 @@ export declare class BookletComponent implements OnInit {
|
|
|
42
45
|
abItem: any;
|
|
43
46
|
actions: ActionMeta[];
|
|
44
47
|
bookQuestionsMap: any;
|
|
45
|
-
translateMap: any;
|
|
46
48
|
private sqOptions;
|
|
47
49
|
isAnswerFlag: boolean;
|
|
48
50
|
spinnerName: string;
|
|
49
51
|
spinnerType: string;
|
|
50
|
-
langDirection: string;
|
|
51
52
|
answerList: any[];
|
|
52
53
|
dataBind: any;
|
|
53
54
|
allEvents: any[];
|
|
54
55
|
questionbookComponent: QuestionbookComponent;
|
|
55
|
-
constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, sanitizer: DomSanitizer, changeService: ChangeService, http: HttpClient);
|
|
56
|
+
constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, sanitizer: DomSanitizer, changeService: ChangeService, http: HttpClient, translationService: TranslationService);
|
|
56
57
|
ngOnInit(): void;
|
|
57
58
|
ngOnChanges(simplechanges: SimpleChanges): void;
|
|
58
59
|
upgradeActions(actionString: string): any[];
|
|
@@ -69,12 +70,11 @@ export declare class BookletComponent implements OnInit {
|
|
|
69
70
|
handleQues(ques: any): void;
|
|
70
71
|
addEvent(day: any, entryQues: any): void;
|
|
71
72
|
readQuestions(qbId: string): any[];
|
|
72
|
-
readTransQuestions(qbId: string): any[];
|
|
73
73
|
getText(value: any): SafeHtml;
|
|
74
74
|
getDropDown(event: any): void;
|
|
75
75
|
getCalendarDate(event: any): void;
|
|
76
76
|
getCalendarEvent(event: any): void;
|
|
77
77
|
editChangeClick(action: any): void;
|
|
78
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": { "alias": "bookletId"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "allIcons": { "alias": "allIcons"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "cdnIconURL": { "alias": "cdnIconURL"; "required": false; }; "dropdownDependentData": { "alias": "dropdownDependentData"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "fieldRestrictions": { "alias": "fieldRestrictions"; "required": false; }; "from": { "alias": "from"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": { "alias": "bookletId"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "allIcons": { "alias": "allIcons"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "cdnIconURL": { "alias": "cdnIconURL"; "required": false; }; "dropdownDependentData": { "alias": "dropdownDependentData"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "fieldRestrictions": { "alias": "fieldRestrictions"; "required": false; }; "from": { "alias": "from"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, true, never>;
|
|
80
80
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { EventEmitter, SimpleChanges } from "@angular/core";
|
|
2
|
-
import { FormBuilderService } from "../../../services/form-builder.service";
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { FormBuilderService } from "../../../services/form-builder/form-builder.service";
|
|
3
|
+
import { TranslationService } from "../../../services/translation/translation.service";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ElementComponent {
|
|
6
|
+
private cdRef;
|
|
5
7
|
private formBuilderService;
|
|
8
|
+
private translationService;
|
|
6
9
|
bookletJSON: any;
|
|
7
10
|
bookletId: any;
|
|
11
|
+
langOption: any;
|
|
12
|
+
languageCode: any;
|
|
8
13
|
templateMode: EventEmitter<boolean>;
|
|
9
14
|
field: any;
|
|
10
15
|
formElements: any[];
|
|
@@ -27,7 +32,7 @@ export declare class ElementComponent {
|
|
|
27
32
|
templateSelected: boolean;
|
|
28
33
|
isHeaderSelect: boolean;
|
|
29
34
|
selectedColumn: any;
|
|
30
|
-
constructor(formBuilderService: FormBuilderService);
|
|
35
|
+
constructor(cdRef: ChangeDetectorRef, formBuilderService: FormBuilderService, translationService: TranslationService);
|
|
31
36
|
ngOnInit(): void;
|
|
32
37
|
toggleSection(section: "basic" | "advanced"): void;
|
|
33
38
|
isSectionOpen(section: string): boolean;
|
|
@@ -57,6 +62,7 @@ export declare class ElementComponent {
|
|
|
57
62
|
removeColumn(event: any): void;
|
|
58
63
|
fileChangeEvent(index: any, event: any): Promise<void>;
|
|
59
64
|
private readFileAsDataURL;
|
|
65
|
+
langChangeEmit(event: any): void;
|
|
60
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "app-element", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; }, { "templateMode": "templateMode"; }, never, never, true, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "app-element", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; "langOption": { "alias": "langOption"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; }, { "templateMode": "templateMode"; }, never, never, true, never>;
|
|
62
68
|
}
|
|
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class FormComponent {
|
|
4
4
|
bookletJSON: any;
|
|
5
5
|
bookletId: any;
|
|
6
|
+
langOption: any;
|
|
6
7
|
formButtonHandler: EventEmitter<string>;
|
|
7
8
|
templateSaveHandler: EventEmitter<string>;
|
|
8
9
|
selectedElementType: string;
|
|
@@ -11,5 +12,5 @@ export declare class FormComponent {
|
|
|
11
12
|
formButtonHandlerClick(event: any): void;
|
|
12
13
|
saveTemplate(event: any): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "app-form-builder", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; }, { "formButtonHandler": "formButtonHandler"; "templateSaveHandler": "templateSaveHandler"; }, never, never, true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "app-form-builder", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; "langOption": { "alias": "langOption"; "required": false; }; }, { "formButtonHandler": "formButtonHandler"; "templateSaveHandler": "templateSaveHandler"; }, never, never, true, never>;
|
|
15
16
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilderService } from '../../../services/form-builder.service';
|
|
3
|
-
import { TemplateService } from '../../../services/template.service';
|
|
4
2
|
import { CropperPosition, Dimensions, ImageTransform } from '../../../components/image-cropper/interfaces';
|
|
5
3
|
import { PipeTransform } from '@angular/core';
|
|
4
|
+
import { FormBuilderService } from '../../../services/form-builder/form-builder.service';
|
|
5
|
+
import { TemplateService } from '../../../services/template/template.service';
|
|
6
|
+
import { TranslationService } from '../../../services/translation/translation.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class GetValueByPathPipe implements PipeTransform {
|
|
8
9
|
transform(obj: any, path: string, defaultValue?: any): any;
|
|
@@ -12,6 +13,7 @@ export declare class GetValueByPathPipe implements PipeTransform {
|
|
|
12
13
|
export declare class PropertiesComponent implements OnInit {
|
|
13
14
|
private formBuilderService;
|
|
14
15
|
private templateService;
|
|
16
|
+
private translationService;
|
|
15
17
|
templateSelected: boolean;
|
|
16
18
|
set selectedElementType(value: string);
|
|
17
19
|
formButtonHandler: EventEmitter<any>;
|
|
@@ -62,6 +64,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
62
64
|
type: string;
|
|
63
65
|
key: string;
|
|
64
66
|
isTranslate: boolean;
|
|
67
|
+
labelPath: string;
|
|
65
68
|
}[];
|
|
66
69
|
};
|
|
67
70
|
Line: {
|
|
@@ -69,6 +72,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
69
72
|
label: string;
|
|
70
73
|
type: string;
|
|
71
74
|
key: string;
|
|
75
|
+
labelPath: string;
|
|
72
76
|
placeholder?: undefined;
|
|
73
77
|
options?: undefined;
|
|
74
78
|
} | {
|
|
@@ -76,14 +80,17 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
76
80
|
type: string;
|
|
77
81
|
key: string;
|
|
78
82
|
placeholder: string;
|
|
83
|
+
labelPath: string;
|
|
79
84
|
options?: undefined;
|
|
80
85
|
} | {
|
|
81
86
|
label: string;
|
|
82
87
|
type: string;
|
|
83
88
|
key: string;
|
|
89
|
+
labelPath: string;
|
|
84
90
|
options: {
|
|
85
91
|
label: string;
|
|
86
92
|
value: string;
|
|
93
|
+
labelPath: string;
|
|
87
94
|
}[];
|
|
88
95
|
placeholder?: undefined;
|
|
89
96
|
})[];
|
|
@@ -94,6 +101,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
94
101
|
label: string;
|
|
95
102
|
type: string;
|
|
96
103
|
key: string;
|
|
104
|
+
labelPath: string;
|
|
97
105
|
}[];
|
|
98
106
|
fieldProps: any[];
|
|
99
107
|
};
|
|
@@ -103,6 +111,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
103
111
|
placeholder: string;
|
|
104
112
|
type: string;
|
|
105
113
|
key: string;
|
|
114
|
+
labelPath: string;
|
|
106
115
|
isTranslate?: undefined;
|
|
107
116
|
} | {
|
|
108
117
|
label: string;
|
|
@@ -110,10 +119,12 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
110
119
|
type: string;
|
|
111
120
|
key: string;
|
|
112
121
|
isTranslate: boolean;
|
|
122
|
+
labelPath: string;
|
|
113
123
|
} | {
|
|
114
124
|
label: string;
|
|
115
125
|
type: string;
|
|
116
126
|
key: string;
|
|
127
|
+
labelPath: string;
|
|
117
128
|
placeholder?: undefined;
|
|
118
129
|
isTranslate?: undefined;
|
|
119
130
|
})[];
|
|
@@ -123,12 +134,14 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
123
134
|
type: string;
|
|
124
135
|
key: string;
|
|
125
136
|
isTranslate: boolean;
|
|
137
|
+
labelPath: string;
|
|
126
138
|
subQuestion?: undefined;
|
|
127
139
|
} | {
|
|
128
140
|
label: string;
|
|
129
141
|
placeholder: string;
|
|
130
142
|
type: string;
|
|
131
143
|
key: string;
|
|
144
|
+
labelPath: string;
|
|
132
145
|
isTranslate?: undefined;
|
|
133
146
|
subQuestion?: undefined;
|
|
134
147
|
} | {
|
|
@@ -136,11 +149,13 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
136
149
|
placeholder: string;
|
|
137
150
|
type: string;
|
|
138
151
|
key: string;
|
|
152
|
+
labelPath: string;
|
|
139
153
|
subQuestion: {
|
|
140
154
|
label: string;
|
|
141
155
|
placeholder: string;
|
|
142
156
|
type: string;
|
|
143
157
|
key: string;
|
|
158
|
+
labelPath: string;
|
|
144
159
|
}[];
|
|
145
160
|
isTranslate?: undefined;
|
|
146
161
|
})[];
|
|
@@ -150,9 +165,11 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
150
165
|
key: string;
|
|
151
166
|
placeholder: string;
|
|
152
167
|
required: boolean;
|
|
168
|
+
labelPath: string;
|
|
153
169
|
options: {
|
|
154
170
|
label: string;
|
|
155
171
|
value: string;
|
|
172
|
+
labelPath: string;
|
|
156
173
|
}[];
|
|
157
174
|
defaultValue?: undefined;
|
|
158
175
|
} | {
|
|
@@ -161,6 +178,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
161
178
|
key: string;
|
|
162
179
|
defaultValue: string;
|
|
163
180
|
required: boolean;
|
|
181
|
+
labelPath: string;
|
|
164
182
|
placeholder?: undefined;
|
|
165
183
|
options?: undefined;
|
|
166
184
|
} | {
|
|
@@ -169,9 +187,11 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
169
187
|
key: string;
|
|
170
188
|
defaultValue: string;
|
|
171
189
|
required: boolean;
|
|
190
|
+
labelPath: string;
|
|
172
191
|
options: {
|
|
173
192
|
label: string;
|
|
174
193
|
value: string;
|
|
194
|
+
labelPath: string;
|
|
175
195
|
}[];
|
|
176
196
|
placeholder?: undefined;
|
|
177
197
|
} | {
|
|
@@ -179,6 +199,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
179
199
|
type: string;
|
|
180
200
|
key: string;
|
|
181
201
|
defaultValue: boolean;
|
|
202
|
+
labelPath: string;
|
|
182
203
|
placeholder?: undefined;
|
|
183
204
|
required?: undefined;
|
|
184
205
|
options?: undefined;
|
|
@@ -193,9 +214,11 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
193
214
|
targetArrayKey: string;
|
|
194
215
|
key: string;
|
|
195
216
|
required: boolean;
|
|
217
|
+
labelPath: string;
|
|
196
218
|
options: {
|
|
197
219
|
label: string;
|
|
198
220
|
value: string;
|
|
221
|
+
labelPath: string;
|
|
199
222
|
}[];
|
|
200
223
|
isTranslate?: undefined;
|
|
201
224
|
subQuestion?: undefined;
|
|
@@ -207,6 +230,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
207
230
|
targetArrayKey: string;
|
|
208
231
|
key: string;
|
|
209
232
|
isTranslate: boolean;
|
|
233
|
+
labelPath: string;
|
|
210
234
|
required?: undefined;
|
|
211
235
|
options?: undefined;
|
|
212
236
|
subQuestion?: undefined;
|
|
@@ -217,6 +241,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
217
241
|
targetArray: string;
|
|
218
242
|
targetArrayKey: string;
|
|
219
243
|
key: string;
|
|
244
|
+
labelPath: string;
|
|
220
245
|
required?: undefined;
|
|
221
246
|
options?: undefined;
|
|
222
247
|
isTranslate?: undefined;
|
|
@@ -228,6 +253,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
228
253
|
targetArray: string;
|
|
229
254
|
targetArrayKey: string;
|
|
230
255
|
key: string;
|
|
256
|
+
labelPath: string;
|
|
231
257
|
subQuestion: {
|
|
232
258
|
label: string;
|
|
233
259
|
placeholder: string;
|
|
@@ -235,6 +261,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
235
261
|
targetArray: string;
|
|
236
262
|
targetArrayKey: string;
|
|
237
263
|
key: string;
|
|
264
|
+
labelPath: string;
|
|
238
265
|
}[];
|
|
239
266
|
required?: undefined;
|
|
240
267
|
options?: undefined;
|
|
@@ -344,7 +371,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
344
371
|
appearance: any[];
|
|
345
372
|
};
|
|
346
373
|
}>;
|
|
347
|
-
constructor(formBuilderService: FormBuilderService, templateService: TemplateService);
|
|
374
|
+
constructor(formBuilderService: FormBuilderService, templateService: TemplateService, translationService: TranslationService);
|
|
348
375
|
ngOnInit(): void;
|
|
349
376
|
private createElementProperties;
|
|
350
377
|
createElementConfig(config?: {
|
|
@@ -358,7 +385,7 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
358
385
|
};
|
|
359
386
|
addNewButton(): void;
|
|
360
387
|
removeButton(btn: any): void;
|
|
361
|
-
onButtonPropertyChange(index: number, key: string, value: any): void;
|
|
388
|
+
onButtonPropertyChange(index: number, key: string, value: any, isTranslate?: boolean): void;
|
|
362
389
|
updateTitle(value: string): void;
|
|
363
390
|
validateInput(value: string, type: string): boolean;
|
|
364
391
|
updateField(value: string): void;
|
|
@@ -383,11 +410,12 @@ export declare class PropertiesComponent implements OnInit {
|
|
|
383
410
|
getValueByPath(path: string, obj?: any, defaultValue?: any): any;
|
|
384
411
|
isAnotherIdSelected(): boolean;
|
|
385
412
|
onToggleChange(path: string, event: any): void;
|
|
386
|
-
setValueByPath(path: string, value: any): void;
|
|
413
|
+
setValueByPath(path: string, value: any, isTranslate?: boolean): void;
|
|
414
|
+
optionTranslationUpdate(option: any, event: any): void;
|
|
387
415
|
getStyleKeys(): string[];
|
|
388
416
|
updateElement(element: any): void;
|
|
389
417
|
getValueByArrayPath(targetArrayPath: any, targetArrayKey: string, selectColumn: string, keyPath: string, isTableColumn?: boolean): any;
|
|
390
|
-
updateValueByArrayPath(targetArrayPath: any, targetArrayKey: string, selectColumn: string, keyPath: string, event: any, isTableColumn?: boolean): void;
|
|
418
|
+
updateValueByArrayPath(targetArrayPath: any, targetArrayKey: string, selectColumn: string, keyPath: string, event: any, isTableColumn?: boolean, isTranslate?: boolean): void;
|
|
391
419
|
getDataByPath(path: string): any;
|
|
392
420
|
flipHorizontal(): void;
|
|
393
421
|
flipVertical(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { TemplateService } from '../../../services/template.service';
|
|
2
|
+
import { TemplateService } from '../../../services/template/template.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AppTemplatesComponent {
|
|
5
5
|
private templateService;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { PdfDesignerService } from '../../../services/pdf-designer.service';
|
|
3
2
|
import { ImageTransform } from '../../../components/image-cropper/interfaces/image-transform.interface';
|
|
4
3
|
import { Dimensions } from '../../../components/image-cropper/interfaces/dimensions.interface';
|
|
5
4
|
import { CropperPosition } from '../../../components/image-cropper/interfaces/cropper-position.interface';
|
|
5
|
+
import { PdfDesignerService } from '../../../services/pdf-designer/pdf-designer.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class PdfDesignerComponent {
|
|
8
8
|
private pdfDesignerService;
|