@pepperi-addons/ngx-lib 0.2.49 → 0.2.51-beta.2

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.
Files changed (50) hide show
  1. package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js.map +1 -1
  2. package/bundles/pepperi-addons-ngx-lib-form.umd.js +3405 -58
  3. package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
  4. package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js.map +1 -1
  5. package/bundles/pepperi-addons-ngx-lib-icon.umd.js +6 -0
  6. package/bundles/pepperi-addons-ngx-lib-icon.umd.js.map +1 -1
  7. package/bundles/pepperi-addons-ngx-lib-slider.umd.js.map +1 -1
  8. package/bundles/pepperi-addons-ngx-lib-textbox.umd.js.map +1 -1
  9. package/bundles/pepperi-addons-ngx-lib.umd.js +18 -0
  10. package/bundles/pepperi-addons-ngx-lib.umd.js.map +1 -1
  11. package/core/common/model/wapi.model.d.ts +1 -0
  12. package/core/customization/customization.model.d.ts +10 -0
  13. package/esm2015/checkbox/checkbox.component.js +1 -1
  14. package/esm2015/core/common/model/wapi.model.js +2 -1
  15. package/esm2015/core/customization/customization.model.js +13 -1
  16. package/esm2015/form/field-generator.component.js +13 -3
  17. package/esm2015/form/form.component.js +36 -16
  18. package/esm2015/form/form.module.js +5 -1
  19. package/esm2015/form/internal-carusel.component.js +188 -0
  20. package/esm2015/form/internal-carusel.service.js +32 -0
  21. package/esm2015/form/internal-carusel.temp-data.js +3129 -0
  22. package/esm2015/form/internal-page.component.js +4 -39
  23. package/esm2015/form/pepperi-addons-ngx-lib-form.js +3 -1
  24. package/esm2015/group-buttons/group-buttons.component.js +1 -1
  25. package/esm2015/icon/icon-generated-all.model.js +2 -1
  26. package/esm2015/icon/icon-generated.model.js +5 -1
  27. package/esm2015/slider/slider.component.js +1 -1
  28. package/esm2015/textbox/textbox.component.js +1 -1
  29. package/fesm2015/pepperi-addons-ngx-lib-checkbox.js.map +1 -1
  30. package/fesm2015/pepperi-addons-ngx-lib-form.js +3394 -56
  31. package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
  32. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js.map +1 -1
  33. package/fesm2015/pepperi-addons-ngx-lib-icon.js +6 -1
  34. package/fesm2015/pepperi-addons-ngx-lib-icon.js.map +1 -1
  35. package/fesm2015/pepperi-addons-ngx-lib-slider.js.map +1 -1
  36. package/fesm2015/pepperi-addons-ngx-lib-textbox.js.map +1 -1
  37. package/fesm2015/pepperi-addons-ngx-lib.js +14 -1
  38. package/fesm2015/pepperi-addons-ngx-lib.js.map +1 -1
  39. package/form/field-generator.component.d.ts +5 -0
  40. package/form/form.component.d.ts +4 -2
  41. package/form/internal-carusel.component.d.ts +46 -0
  42. package/form/internal-carusel.service.d.ts +12 -0
  43. package/form/internal-carusel.temp-data.d.ts +62 -0
  44. package/form/pepperi-addons-ngx-lib-form.d.ts +2 -0
  45. package/form/pepperi-addons-ngx-lib-form.metadata.json +1 -1
  46. package/icon/icon-generated-all.model.d.ts +1 -0
  47. package/icon/icon-generated.model.d.ts +5 -1
  48. package/icon/pepperi-addons-ngx-lib-icon.metadata.json +1 -1
  49. package/package.json +1 -1
  50. package/pepperi-addons-ngx-lib.metadata.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import { OnChanges, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { PepFieldBase, PepLayoutType, IPepFieldValueChangeEvent, IPepFieldClickEvent } from '@pepperi-addons/ngx-lib';
4
+ import { IPepFormFieldClickEvent, IPepFormFieldValueChangeEvent } from './form.component';
4
5
  export declare class PepFieldGeneratorComponent implements OnChanges, OnDestroy {
5
6
  field: any;
6
7
  isActive: boolean;
@@ -14,6 +15,8 @@ export declare class PepFieldGeneratorComponent implements OnChanges, OnDestroy
14
15
  formValidationChange: EventEmitter<boolean>;
15
16
  elementClick: EventEmitter<IPepFieldClickEvent>;
16
17
  childClick: EventEmitter<any>;
18
+ formValueChange: EventEmitter<IPepFormFieldValueChangeEvent>;
19
+ formFieldClick: EventEmitter<IPepFormFieldClickEvent>;
17
20
  get isValid(): boolean;
18
21
  get isTouched(): boolean;
19
22
  get isDirty(): boolean;
@@ -25,5 +28,7 @@ export declare class PepFieldGeneratorComponent implements OnChanges, OnDestroy
25
28
  onFormValidationChanged(formValidationChange: any): void;
26
29
  onClick(fieldClicked: any): void;
27
30
  onChildClick(childClick: any): void;
31
+ onFormValueChanged(event: IPepFormFieldValueChangeEvent): void;
32
+ onFormFieldClick(event: IPepFormFieldClickEvent): void;
28
33
  ngOnChanges(changes: any): void;
29
34
  }
@@ -90,9 +90,11 @@ export declare class PepFormComponent implements OnInit, DoCheck, OnChanges, OnD
90
90
  private getFormControlById;
91
91
  private setSpecialFields;
92
92
  convertCustomFields(controlFields: Array<any>, dataFields: Array<any>): PepFieldBase[];
93
+ onFormValidationChanged(formValidationChange: any): void;
93
94
  onValueChanged(event: IPepFieldValueChangeEvent): void;
95
+ onClick(fieldClickEvent: IPepFieldClickEvent): void;
94
96
  onChildClicked(childClick: any): void;
95
97
  onChildChanged(childChange: any): void;
96
- onFormValidationChanged(formValidationChange: any): void;
97
- onClick(fieldClickEvent: IPepFieldClickEvent): void;
98
+ onFormValueChanged(event: IPepFormFieldValueChangeEvent): void;
99
+ onFormFieldClick(event: IPepFormFieldClickEvent): void;
98
100
  }
@@ -0,0 +1,46 @@
1
+ import { OnInit, OnDestroy, EventEmitter, ElementRef, ChangeDetectorRef, AfterViewInit } from '@angular/core';
2
+ import { FormGroup, FormBuilder } from '@angular/forms';
3
+ import { PepInternalCaruselService } from './internal-carusel.service';
4
+ import { PepLayoutType, PepCustomizationService, PepLayoutService, PepScreenSizeType } from '@pepperi-addons/ngx-lib';
5
+ import { IPepFormFieldClickEvent, IPepFormFieldValueChangeEvent } from './form.component';
6
+ import { PepCarouselComponent } from '@pepperi-addons/ngx-lib/carousel';
7
+ export declare class PepInternalCaruselComponent implements OnInit, AfterViewInit, OnDestroy {
8
+ protected fb: FormBuilder;
9
+ private layoutService;
10
+ private internalCaruselService;
11
+ private customizationService;
12
+ private elementRef;
13
+ private changeDetectorRef;
14
+ controlType: string;
15
+ field: any;
16
+ layoutType: PepLayoutType;
17
+ formValueChange: EventEmitter<IPepFormFieldValueChangeEvent>;
18
+ formFieldClick: EventEmitter<IPepFormFieldClickEvent>;
19
+ private _items;
20
+ set items(value: Array<any>);
21
+ get items(): Array<any>;
22
+ duration: number;
23
+ layout: any;
24
+ itemsToMove: number;
25
+ lockItemInnerEvents: boolean;
26
+ hideArrowsInSmallScreen: boolean;
27
+ carousel: PepCarouselComponent;
28
+ prevDisabled: boolean;
29
+ nextDisabled: boolean;
30
+ screenSize: PepScreenSizeType;
31
+ PepScreenSizeType: typeof PepScreenSizeType;
32
+ emptyForm: FormGroup;
33
+ defaultRowSpan: number;
34
+ constructor(fb: FormBuilder, layoutService: PepLayoutService, internalCaruselService: PepInternalCaruselService, customizationService: PepCustomizationService, elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
35
+ private fillData;
36
+ ngOnInit(): void;
37
+ ngAfterViewInit(): void;
38
+ ngOnDestroy(): void;
39
+ onCustomizeObjectChanged(customizeObjectChangedData: IPepFormFieldValueChangeEvent): void;
40
+ onCustomizeFieldClick(fieldClickEvent: IPepFormFieldClickEvent): void;
41
+ moveLeft(): void;
42
+ moveRight(): void;
43
+ moveTo(index: number): void;
44
+ onReachesLeftBound(event: boolean): void;
45
+ onReachesRightBound(event: boolean): void;
46
+ }
@@ -0,0 +1,12 @@
1
+ import { PepHttpService } from '@pepperi-addons/ngx-lib';
2
+ export declare class PepInternalCaruselService {
3
+ private httpService;
4
+ private transactionUrl;
5
+ private objectId;
6
+ private parentId;
7
+ private searchCode;
8
+ private viewType;
9
+ additionalApiName: string;
10
+ constructor(httpService: PepHttpService);
11
+ initCarusel(objectId: string, searchCode: string, callbackFunc: any): void;
12
+ }
@@ -0,0 +1,62 @@
1
+ export declare const TempRelatedItems: {
2
+ Rows: {
3
+ AdditionalData: any;
4
+ BackgroundColor: string;
5
+ Fields: {
6
+ Accessory: string;
7
+ AdditionalValue: string;
8
+ ApiName: string;
9
+ BackgroundColor: string;
10
+ Enabled: boolean;
11
+ EventsData: any;
12
+ FieldType: number;
13
+ FormattedValue: string;
14
+ GroupFields: any;
15
+ Highlighted: boolean;
16
+ NotificationInfo: string;
17
+ OptionalValues: any[];
18
+ ReferenceObjectInternalType: string;
19
+ ReferenceObjectSubType: string;
20
+ ReferenceObjectType: number;
21
+ TextColor: string;
22
+ UiPageKey: string;
23
+ Value: string;
24
+ Visible: boolean;
25
+ }[];
26
+ IsEditable: boolean;
27
+ IsSelectableForActions: boolean;
28
+ MainAction: any;
29
+ Profile: any;
30
+ Type: number;
31
+ UID: string;
32
+ }[];
33
+ UIControl: {
34
+ ObjectID: string;
35
+ Type: string;
36
+ DisplayName: string;
37
+ Columns: number;
38
+ ControlFields: {
39
+ ApiName: string;
40
+ ColumnWidth: number;
41
+ ColumnWidthType: number;
42
+ FieldName: string;
43
+ FieldType: number;
44
+ Layout: {
45
+ Height: number;
46
+ LineNumber: number;
47
+ Width: number;
48
+ X: number;
49
+ XAlignment: number;
50
+ Y: number;
51
+ YAlignment: number;
52
+ };
53
+ Mandatory: boolean;
54
+ MaxFieldCharacters: number;
55
+ MaxFieldLines: number;
56
+ MaxValue: number;
57
+ MinValue: number;
58
+ ReadOnly: boolean;
59
+ Title: string;
60
+ }[];
61
+ };
62
+ };
@@ -5,6 +5,8 @@ export * from './public-api';
5
5
  export { PepFieldGeneratorComponent as ɵa } from './field-generator.component';
6
6
  export { PepIndicatorsComponent as ɵb } from './indicators.component';
7
7
  export { PepInternalButtonComponent as ɵc } from './internal-button.component';
8
+ export { PepInternalCaruselComponent as ɵh } from './internal-carusel.component';
9
+ export { PepInternalCaruselService as ɵi } from './internal-carusel.service';
8
10
  export { PepInternalListComponent as ɵd } from './internal-list.component';
9
11
  export { PepInternalMenuComponent as ɵe } from './internal-menu.component';
10
12
  export { PepInternalPageComponent as ɵf } from './internal-page.component';