@posiwise/shared-components 0.0.59 → 0.0.61

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 (51) hide show
  1. package/{esm2020 → esm2022}/lib/ab-test/ab-alternative/ab-alternative.component.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/ab-test/ab-test-container/ab-test-container.component.mjs +5 -5
  3. package/{esm2020 → esm2022}/lib/autheticator/autheticator.component.mjs +5 -5
  4. package/{esm2020 → esm2022}/lib/clearbit-icon/clearbit-icon.component.mjs +4 -4
  5. package/{esm2020 → esm2022}/lib/coming-soon/coming-soon.component.mjs +6 -6
  6. package/{esm2020 → esm2022}/lib/custom-uploader/custom-uploader.component.mjs +6 -6
  7. package/{esm2020 → esm2022}/lib/field-error-display/field-error-display.component.mjs +4 -4
  8. package/{esm2020 → esm2022}/lib/geo-template/geo-template.component.mjs +5 -5
  9. package/{esm2020 → esm2022}/lib/header/header.component.mjs +4 -4
  10. package/{esm2020 → esm2022}/lib/image-cropper/image-cropper.component.mjs +5 -5
  11. package/esm2022/lib/input-container/input-container.component.mjs +89 -0
  12. package/{esm2020 → esm2022}/lib/label-management/entity-group/entity-group.component.mjs +6 -6
  13. package/{esm2020 → esm2022}/lib/label-management/group-definition/group-definition.component.mjs +5 -5
  14. package/{esm2020 → esm2022}/lib/label-management/groups/groups.component.mjs +5 -5
  15. package/{esm2020 → esm2022}/lib/landing-page-footer-b/landing-page-footer-b.component.mjs +5 -5
  16. package/{esm2020 → esm2022}/lib/no-data/no-data.component.mjs +6 -6
  17. package/{esm2020 → esm2022}/lib/number-picker/number-picker.component.mjs +5 -5
  18. package/{esm2020 → esm2022}/lib/password-validation/password-validation.component.mjs +5 -5
  19. package/{esm2020 → esm2022}/lib/permission-tree/permission-tree.component.mjs +5 -5
  20. package/{esm2020 → esm2022}/lib/privacy-and-tos/privacy-and-tos.component.mjs +6 -6
  21. package/{esm2020 → esm2022}/lib/privacy-policy/privacy-policy.component.mjs +4 -4
  22. package/{esm2020 → esm2022}/lib/pw-tabs/pw-tabs.component.mjs +4 -4
  23. package/{esm2020 → esm2022}/lib/shared-components.module.mjs +84 -84
  24. package/{esm2020 → esm2022}/lib/splash/splash.component.mjs +4 -4
  25. package/{esm2020 → esm2022}/lib/terms-conditions/terms-conditions.component.mjs +5 -5
  26. package/{fesm2020 → fesm2022}/posiwise-shared-components.mjs +187 -187
  27. package/{fesm2020 → fesm2022}/posiwise-shared-components.mjs.map +1 -1
  28. package/lib/ab-test/ab-alternative/ab-alternative.component.d.ts +1 -1
  29. package/lib/ab-test/ab-test-container/ab-test-container.component.d.ts +1 -1
  30. package/lib/clearbit-icon/clearbit-icon.component.d.ts +1 -1
  31. package/lib/coming-soon/coming-soon.component.d.ts +1 -1
  32. package/lib/custom-uploader/custom-uploader.component.d.ts +1 -1
  33. package/lib/field-error-display/field-error-display.component.d.ts +1 -1
  34. package/lib/header/header.component.d.ts +1 -1
  35. package/lib/image-cropper/image-cropper.component.d.ts +1 -1
  36. package/lib/input-container/input-container.component.d.ts +1 -1
  37. package/lib/no-data/no-data.component.d.ts +1 -1
  38. package/lib/number-picker/number-picker.component.d.ts +1 -1
  39. package/lib/permission-tree/permission-tree.component.d.ts +1 -1
  40. package/lib/privacy-and-tos/privacy-and-tos.component.d.ts +1 -1
  41. package/lib/privacy-policy/privacy-policy.component.d.ts +1 -1
  42. package/lib/pw-tabs/pw-tabs.component.d.ts +1 -1
  43. package/lib/terms-conditions/terms-conditions.component.d.ts +1 -1
  44. package/package.json +12 -29
  45. package/esm2020/lib/input-container/input-container.component.mjs +0 -89
  46. package/fesm2015/posiwise-shared-components.mjs +0 -1839
  47. package/fesm2015/posiwise-shared-components.mjs.map +0 -1
  48. /package/{esm2020 → esm2022}/index.mjs +0 -0
  49. /package/{esm2020 → esm2022}/lib/ab-test/ab-test.interface.mjs +0 -0
  50. /package/{esm2020 → esm2022}/lib/number-picker/number-picker.config.mjs +0 -0
  51. /package/{esm2020 → esm2022}/posiwise-shared-components.mjs +0 -0
@@ -12,5 +12,5 @@ export declare class AbAlternativeComponent {
12
12
  */
13
13
  default: boolean;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<AbAlternativeComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<AbAlternativeComponent, "ab-alternative", never, { "name": "name"; "ref": "ref"; "default": "default"; }, {}, never, ["*"], false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AbAlternativeComponent, "ab-alternative", never, { "name": { "alias": "name"; "required": false; }; "ref": { "alias": "ref"; "required": false; }; "default": { "alias": "default"; "required": false; }; }, {}, never, ["*"], false, never>;
16
16
  }
@@ -15,5 +15,5 @@ export declare class AbTestContainerComponent implements OnInit {
15
15
  ngOnInit(): void;
16
16
  private getExperiment;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AbTestContainerComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<AbTestContainerComponent, "pw-ab-test-container", never, { "experimentName": "experimentName"; "serviceInput": "serviceInput"; }, {}, never, ["*"], false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<AbTestContainerComponent, "pw-ab-test-container", never, { "experimentName": { "alias": "experimentName"; "required": false; }; "serviceInput": { "alias": "serviceInput"; "required": false; }; }, {}, never, ["*"], false, never>;
19
19
  }
@@ -7,5 +7,5 @@ export declare class ClearbitIconComponent implements OnChanges {
7
7
  dummyPath: string;
8
8
  ngOnChanges(simple: SimpleChanges): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ClearbitIconComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<ClearbitIconComponent, "pw-clearbit-icon", never, { "src": "src"; "altText": "altText"; "dummyPath": "dummyPath"; }, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClearbitIconComponent, "pw-clearbit-icon", never, { "src": { "alias": "src"; "required": false; }; "altText": { "alias": "altText"; "required": false; }; "dummyPath": { "alias": "dummyPath"; "required": false; }; }, {}, never, never, false, never>;
11
11
  }
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
2
2
  export declare class ComingSoonComponent {
3
3
  message: string;
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<ComingSoonComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<ComingSoonComponent, "pw-coming-soon", never, { "message": "message"; }, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComingSoonComponent, "pw-coming-soon", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
6
6
  }
@@ -28,5 +28,5 @@ export declare class CustomUploaderComponent extends AppBaseComponent {
28
28
  updateHeight(): void;
29
29
  onImgChange(event?: any): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomUploaderComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomUploaderComponent, "pw-custom-uploader", never, { "controlName": "controlName"; "previewData": "previewData"; "aspectRatio": "aspectRatio"; "title": "title"; }, { "saveEvent": "saveEvent"; }, never, never, false, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomUploaderComponent, "pw-custom-uploader", never, { "controlName": { "alias": "controlName"; "required": false; }; "previewData": { "alias": "previewData"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "saveEvent": "saveEvent"; }, never, never, false, never>;
32
32
  }
@@ -3,5 +3,5 @@ export declare class FieldErrorDisplayComponent {
3
3
  errorMsg: string;
4
4
  displayError: boolean;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldErrorDisplayComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldErrorDisplayComponent, "pw-field-error-display", never, { "errorMsg": "errorMsg"; "displayError": "displayError"; }, {}, never, never, false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldErrorDisplayComponent, "pw-field-error-display", never, { "errorMsg": { "alias": "errorMsg"; "required": false; }; "displayError": { "alias": "displayError"; "required": false; }; }, {}, never, never, false, never>;
7
7
  }
@@ -4,5 +4,5 @@ export declare class HeaderComponent extends AppBaseComponent {
4
4
  landing: boolean;
5
5
  logo: any;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "pw-header", never, { "landing": "landing"; }, {}, never, never, false, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "pw-header", never, { "landing": { "alias": "landing"; "required": false; }; }, {}, never, never, false, never>;
8
8
  }
@@ -26,5 +26,5 @@ export declare class ProfileImageCropperComponent {
26
26
  saveProfilePicture(): void;
27
27
  onCloseModal(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ProfileImageCropperComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ProfileImageCropperComponent, "pw-image-cropper", never, { "userAvatar": "userAvatar"; "aspectRatio": "aspectRatio"; }, { "imageSelectionEvent": "imageSelectionEvent"; "closeEvent": "closeEvent"; "fileChangeEvent": "fileChangeEvent"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfileImageCropperComponent, "pw-image-cropper", never, { "userAvatar": { "alias": "userAvatar"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; }, { "imageSelectionEvent": "imageSelectionEvent"; "closeEvent": "closeEvent"; "fileChangeEvent": "fileChangeEvent"; }, never, never, false, never>;
30
30
  }
@@ -20,5 +20,5 @@ export declare class InputContainerComponent implements OnInit {
20
20
  constructor(controlContainer: ControlContainer);
21
21
  ngOnInit(): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<InputContainerComponent, [{ optional: true; host: true; skipSelf: true; }]>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<InputContainerComponent, "pw-input-container", never, { "name": "name"; "label": "label"; "labelClass": "labelClass"; "tooltipPosition": "tooltipPosition"; "required": "required"; "errorMsg": "errorMsg"; "isReadOnly": "isReadOnly"; "showTooltip": "showTooltip"; "tooltipText": "tooltipText"; "showTriangle": "showTriangle"; "afterLabel": "afterLabel"; "showAfterLabel": "showAfterLabel"; "showTriangleText": "showTriangleText"; }, {}, never, ["*"], false, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputContainerComponent, "pw-input-container", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorMsg": { "alias": "errorMsg"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "showTriangle": { "alias": "showTriangle"; "required": false; }; "afterLabel": { "alias": "afterLabel"; "required": false; }; "showAfterLabel": { "alias": "showAfterLabel"; "required": false; }; "showTriangleText": { "alias": "showTriangleText"; "required": false; }; }, {}, never, ["*"], false, never>;
24
24
  }
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
2
2
  export declare class NoDataComponent {
3
3
  message: string;
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<NoDataComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<NoDataComponent, "pw-no-data", never, { "message": "message"; }, {}, never, ["*"], false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NoDataComponent, "pw-no-data", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, ["*"], false, never>;
6
6
  }
@@ -68,5 +68,5 @@ export declare class NumberPickerComponent implements OnInit {
68
68
  private isLeftClick;
69
69
  private initPicker;
70
70
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberPickerComponent, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<NumberPickerComponent, "pw-number-picker", never, { "min": "min"; "showTooltip": "showTooltip"; "tooltipText": "tooltipText"; "max": "max"; "step": "step"; "value": "value"; "pickStartAfter": "pickStartAfter"; "pickTimer": "pickTimer"; "prefix": "prefix"; "postfix": "postfix"; "placeholder": "placeholder"; "buttonsOrientation": "buttonsOrientation"; "size": "size"; "customClass": "customClass"; "mouseWheel": "mouseWheel"; "arrowKeys": "arrowKeys"; "inputReadOnly": "inputReadOnly"; "showUpButton": "showUpButton"; "showDownButton": "showDownButton"; }, { "valueChange": "valueChange"; "minReached": "minReached"; "maxReached": "maxReached"; "pickStarted": "pickStarted"; "pickStoped": "pickStoped"; "pickUpStarted": "pickUpStarted"; "pickUpStoped": "pickUpStoped"; "pickDownStarted": "pickDownStarted"; "pickDownStoped": "pickDownStoped"; }, never, never, false, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberPickerComponent, "pw-number-picker", never, { "min": { "alias": "min"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pickStartAfter": { "alias": "pickStartAfter"; "required": false; }; "pickTimer": { "alias": "pickTimer"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "postfix": { "alias": "postfix"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "buttonsOrientation": { "alias": "buttonsOrientation"; "required": false; }; "size": { "alias": "size"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "mouseWheel": { "alias": "mouseWheel"; "required": false; }; "arrowKeys": { "alias": "arrowKeys"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "showUpButton": { "alias": "showUpButton"; "required": false; }; "showDownButton": { "alias": "showDownButton"; "required": false; }; }, { "valueChange": "valueChange"; "minReached": "minReached"; "maxReached": "maxReached"; "pickStarted": "pickStarted"; "pickStoped": "pickStoped"; "pickUpStarted": "pickUpStarted"; "pickUpStoped": "pickUpStoped"; "pickDownStarted": "pickDownStarted"; "pickDownStoped": "pickDownStoped"; }, never, never, false, never>;
72
72
  }
@@ -11,5 +11,5 @@ export declare class PermissionTreeComponent implements AfterViewInit, OnChanges
11
11
  getGrantedPermissionNames(): string[];
12
12
  private refreshTree;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<PermissionTreeComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<PermissionTreeComponent, "permission-tree", never, { "data": "data"; }, {}, never, never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<PermissionTreeComponent, "permission-tree", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
15
15
  }
@@ -21,5 +21,5 @@ export declare class PrivacyAndTosComponent extends AppBaseComponent implements
21
21
  private getSubscribedProduct;
22
22
  private getTosDetails;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyAndTosComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyAndTosComponent, "pw-privacy-and-tos", never, { "productId": "productId"; }, {}, never, never, false, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyAndTosComponent, "pw-privacy-and-tos", never, { "productId": { "alias": "productId"; "required": false; }; }, {}, never, never, false, never>;
25
25
  }
@@ -7,5 +7,5 @@ export declare class PrivacyPolicyComponent extends AppBaseComponent implements
7
7
  company_email: string;
8
8
  ngOnInit(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyPolicyComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyPolicyComponent, "pw-privacy-policy", never, { "isPublic": "isPublic"; }, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyPolicyComponent, "pw-privacy-policy", never, { "isPublic": { "alias": "isPublic"; "required": false; }; }, {}, never, never, false, never>;
11
11
  }
@@ -12,5 +12,5 @@ export declare class PwTabsComponent extends AppBaseComponent implements OnInit,
12
12
  ngOnInit(): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<PwTabsComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<PwTabsComponent, "pw-tabs", never, { "items": "items"; "withSubscription": "withSubscription"; }, {}, never, never, false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<PwTabsComponent, "pw-tabs", never, { "items": { "alias": "items"; "required": false; }; "withSubscription": { "alias": "withSubscription"; "required": false; }; }, {}, never, never, false, never>;
16
16
  }
@@ -14,5 +14,5 @@ export declare class TermsConditionsComponent implements OnInit {
14
14
  constructor(appConfigService: AppConfigService);
15
15
  ngOnInit(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TermsConditionsComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<TermsConditionsComponent, "pw-terms-conditions", never, { "isPublic": "isPublic"; }, {}, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TermsConditionsComponent, "pw-terms-conditions", never, { "isPublic": { "alias": "isPublic"; "required": false; }; }, {}, never, never, false, never>;
18
18
  }
package/package.json CHANGED
@@ -1,33 +1,18 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "peerDependencies": {
5
- "@angular/common": "15.2.5",
6
- "@angular/core": "15.2.5",
7
- "@ngneat/transloco": "^4.2.6",
8
- "@ngneat/transloco-keys-manager": "^3.7.0",
9
- "ngx-image-cropper": "^6.3.3",
10
- "@posiwise/common-utilities": "0.0.30",
11
- "@posiwise/common-services": "0.0.91",
12
- "@posiwise/app-base-component": "0.0.42",
13
- "@posiwise/utils": "0.0.24",
14
- "@posiwise/admin-module-utils": "0.0.33",
15
- "primeng": "15.4.1",
16
- "ngx-ui-switch": "14.1.0",
17
- "@posiwise/directives": "0.0.34",
18
- "@posiwise/core-transloco": "0.0.20",
19
- "@posiwise/pipes": "0.0.26",
20
- "@posiwise/app-loader": "0.0.21"
5
+ "@angular/common": "17.0.7",
6
+ "@angular/core": "17.0.7",
7
+ "@ngneat/transloco": "^6.0.4",
8
+ "@ngneat/transloco-keys-manager": "^3.8.0",
9
+ "ngx-image-cropper": "^7.1.2"
21
10
  },
22
11
  "dependencies": {
23
- "tslib": "^2.3.0"
12
+ "tslib": "^2.6.2"
24
13
  },
25
14
  "sideEffects": false,
26
- "module": "fesm2015/posiwise-shared-components.mjs",
27
- "es2020": "fesm2020/posiwise-shared-components.mjs",
28
- "esm2020": "esm2020/posiwise-shared-components.mjs",
29
- "fesm2020": "fesm2020/posiwise-shared-components.mjs",
30
- "fesm2015": "fesm2015/posiwise-shared-components.mjs",
15
+ "module": "fesm2022/posiwise-shared-components.mjs",
31
16
  "typings": "index.d.ts",
32
17
  "exports": {
33
18
  "./package.json": {
@@ -35,11 +20,9 @@
35
20
  },
36
21
  ".": {
37
22
  "types": "./index.d.ts",
38
- "esm2020": "./esm2020/posiwise-shared-components.mjs",
39
- "es2020": "./fesm2020/posiwise-shared-components.mjs",
40
- "es2015": "./fesm2015/posiwise-shared-components.mjs",
41
- "node": "./fesm2015/posiwise-shared-components.mjs",
42
- "default": "./fesm2020/posiwise-shared-components.mjs"
23
+ "esm2022": "./esm2022/posiwise-shared-components.mjs",
24
+ "esm": "./esm2022/posiwise-shared-components.mjs",
25
+ "default": "./fesm2022/posiwise-shared-components.mjs"
43
26
  }
44
27
  }
45
- }
28
+ }
@@ -1,89 +0,0 @@
1
- import { Component, Host, Input, Optional, SkipSelf } from '@angular/core';
2
- import { ControlContainer, NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/forms";
5
- import * as i2 from "primeng/tooltip";
6
- import * as i3 from "@angular/common";
7
- import * as i4 from "../field-error-display/field-error-display.component";
8
- import * as i5 from "@ngneat/transloco";
9
- export class InputContainerComponent {
10
- constructor(controlContainer) {
11
- this.controlContainer = controlContainer;
12
- this.required = false;
13
- this.errorMsg = 'An error occured';
14
- this.isReadOnly = false;
15
- this.showTriangle = false;
16
- }
17
- ngOnInit() {
18
- if (this.controlContainer) {
19
- if (this.name) {
20
- this.control = this.controlContainer.control.get(this.name);
21
- if (this.control && this.control.validator) {
22
- const validator = this.control.validator({});
23
- if (validator && validator['required']) {
24
- this.required = true;
25
- }
26
- }
27
- }
28
- else {
29
- window.console.warn('Missing FormControlName directive from host element of the component');
30
- }
31
- }
32
- else {
33
- window.console.warn("Can't find parent FormGroup directive");
34
- }
35
- }
36
- }
37
- InputContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: InputContainerComponent, deps: [{ token: i1.ControlContainer, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
38
- InputContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: InputContainerComponent, selector: "pw-input-container", inputs: { name: "name", label: "label", labelClass: "labelClass", tooltipPosition: "tooltipPosition", required: "required", errorMsg: "errorMsg", isReadOnly: "isReadOnly", showTooltip: "showTooltip", tooltipText: "tooltipText", showTriangle: "showTriangle", afterLabel: "afterLabel", showAfterLabel: "showAfterLabel", showTriangleText: "showTriangleText" }, providers: [
39
- {
40
- provide: NG_VALUE_ACCESSOR,
41
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
42
- useExisting: InputContainerComponent,
43
- multi: true
44
- }
45
- ], ngImport: i0, template: "<label class=\"mb-2\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n <span class=\"tooltip-wrap ms-1\"\n *ngIf=\"showTooltip && tooltipText\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-info-circle\"></i>\n </span>\n <span class=\"tooltip-wrap ms-1\"\n *ngIf=\"showTriangle\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n <!-- after label -->\n <span *ngIf=\"afterLabel && showAfterLabel\"\n [innerHTML]=\"afterLabel\"></span>\n <!-- after label end -->\n</label>\n\n<div class=\"mb-3\">\n <ng-content></ng-content>\n <ng-container *ngIf=\"control?.errors\">\n <pw-field-error-display [displayError]=\"control?.invalid && control?.touched\"\n [errorMsg]=\"errorMsg | transloco\">\n </pw-field-error-display>\n </ng-container>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.mandatory:after{color:#ff586b;content:\"*\";padding-left:2px}\n"], dependencies: [{ kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.FieldErrorDisplayComponent, selector: "pw-field-error-display", inputs: ["errorMsg", "displayError"] }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }] });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: InputContainerComponent, decorators: [{
47
- type: Component,
48
- args: [{ selector: 'pw-input-container', providers: [
49
- {
50
- provide: NG_VALUE_ACCESSOR,
51
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
52
- useExisting: InputContainerComponent,
53
- multi: true
54
- }
55
- ], template: "<label class=\"mb-2\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n <span class=\"tooltip-wrap ms-1\"\n *ngIf=\"showTooltip && tooltipText\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-info-circle\"></i>\n </span>\n <span class=\"tooltip-wrap ms-1\"\n *ngIf=\"showTriangle\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n <!-- after label -->\n <span *ngIf=\"afterLabel && showAfterLabel\"\n [innerHTML]=\"afterLabel\"></span>\n <!-- after label end -->\n</label>\n\n<div class=\"mb-3\">\n <ng-content></ng-content>\n <ng-container *ngIf=\"control?.errors\">\n <pw-field-error-display [displayError]=\"control?.invalid && control?.touched\"\n [errorMsg]=\"errorMsg | transloco\">\n </pw-field-error-display>\n </ng-container>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.mandatory:after{color:#ff586b;content:\"*\";padding-left:2px}\n"] }]
56
- }], ctorParameters: function () { return [{ type: i1.ControlContainer, decorators: [{
57
- type: Optional
58
- }, {
59
- type: Host
60
- }, {
61
- type: SkipSelf
62
- }] }]; }, propDecorators: { name: [{
63
- type: Input
64
- }], label: [{
65
- type: Input
66
- }], labelClass: [{
67
- type: Input
68
- }], tooltipPosition: [{
69
- type: Input
70
- }], required: [{
71
- type: Input
72
- }], errorMsg: [{
73
- type: Input
74
- }], isReadOnly: [{
75
- type: Input
76
- }], showTooltip: [{
77
- type: Input
78
- }], tooltipText: [{
79
- type: Input
80
- }], showTriangle: [{
81
- type: Input
82
- }], afterLabel: [{
83
- type: Input
84
- }], showAfterLabel: [{
85
- type: Input
86
- }], showTriangleText: [{
87
- type: Input
88
- }] } });
89
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY29udGFpbmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2hhcmVkLWNvbXBvbmVudHMvc3JjL2xpYi9pbnB1dC1jb250YWluZXIvaW5wdXQtY29udGFpbmVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2hhcmVkLWNvbXBvbmVudHMvc3JjL2xpYi9pbnB1dC1jb250YWluZXIvaW5wdXQtY29udGFpbmVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLEtBQUssRUFBVSxRQUFRLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25GLE9BQU8sRUFBbUIsZ0JBQWdCLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7OztBQWV0RixNQUFNLE9BQU8sdUJBQXVCO0lBMENoQyxZQUlZLGdCQUFrQztRQUFsQyxxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQWtCO1FBOUI5QyxhQUFRLEdBQUcsS0FBSyxDQUFDO1FBR2pCLGFBQVEsR0FBRyxrQkFBa0IsQ0FBQztRQUc5QixlQUFVLEdBQUcsS0FBSyxDQUFDO1FBU25CLGlCQUFZLEdBQUcsS0FBSyxDQUFDO0lBZ0JsQixDQUFDO0lBRUosUUFBUTtRQUNKLElBQUksSUFBSSxDQUFDLGdCQUFnQixFQUFFO1lBQ3ZCLElBQUksSUFBSSxDQUFD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gICAgICAgICB1c2VFeGlzdGluZzogSW5wdXRDb250YWluZXJDb21wb25lbnQsXG4gICAgICAgICAgICBtdWx0aTogdHJ1ZVxuICAgICAgICB9XG4gICAgXVxufSlcbmV4cG9ydCBjbGFzcyBJbnB1dENvbnRhaW5lckNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG4gICAgY29udHJvbDogQWJzdHJhY3RDb250cm9sO1xuXG4gICAgQElucHV0KClcbiAgICBuYW1lOiBzdHJpbmc7XG5cbiAgICBASW5wdXQoKVxuICAgIGxhYmVsOiBzdHJpbmc7XG5cbiAgICBASW5wdXQoKVxuICAgIGxhYmVsQ2xhc3M6IHN0cmluZztcblxuICAgIEBJbnB1dCgpXG4gICAgdG9vbHRpcFBvc2l0aW9uOiBzdHJpbmc7XG5cbiAgICBASW5wdXQoKVxuICAgIHJlcXVpcmVkID0gZmFsc2U7XG5cbiAgICBASW5wdXQoKVxuICAgIGVycm9yTXNnID0gJ0FuIGVycm9yIG9jY3VyZWQnO1xuXG4gICAgQElucHV0KClcbiAgICBpc1JlYWRPbmx5ID0gZmFsc2U7XG5cbiAgICBASW5wdXQoKVxuICAgIHNob3dUb29sdGlwOiBib29sZWFuO1xuXG4gICAgQElucHV0KClcbiAgICB0b29sdGlwVGV4dDogc3RyaW5nO1xuXG4gICAgQElucHV0KClcbiAgICBzaG93VHJpYW5nbGUgPSBmYWxzZTtcblxuICAgIEBJbnB1dCgpXG4gICAgYWZ0ZXJMYWJlbDogc3RyaW5nO1xuXG4gICAgQElucHV0KClcbiAgICBzaG93QWZ0ZXJMYWJlbDogYm9vbGVhbjtcblxuICAgIEBJbnB1dCgpXG4gICAgc2hvd1RyaWFuZ2xlVGV4dDogc3RyaW5nO1xuXG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIEBPcHRpb25hbCgpXG4gICAgICAgIEBIb3N0KClcbiAgICAgICAgQFNraXBTZWxmKClcbiAgICAgICAgcHJpdmF0ZSBjb250cm9sQ29udGFpbmVyOiBDb250cm9sQ29udGFpbmVyXG4gICAgKSB7fVxuXG4gICAgbmdPbkluaXQoKSB7XG4gICAgICAgIGlmICh0aGlzLmNvbnRyb2xDb250YWluZXIpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLm5hbWUpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRyb2wgPSB0aGlzLmNvbnRyb2xDb250YWluZXIuY29udHJvbC5nZXQodGhpcy5uYW1lKTtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5jb250cm9sICYmIHRoaXMuY29udHJvbC52YWxpZGF0b3IpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgdmFsaWRhdG9yID0gdGhpcy5jb250cm9sLnZhbGlkYXRvcih7fSBhcyBBYnN0cmFjdENvbnRyb2wpO1xuICAgICAgICAgICAgICAgICAgICBpZiAodmFsaWRhdG9yICYmIHZhbGlkYXRvclsncmVxdWlyZWQnXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5yZXF1aXJlZCA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHdpbmRvdy5jb25zb2xlLndhcm4oXG4gICAgICAgICAgICAgICAgICAgICdNaXNzaW5nIEZvcm1Db250cm9sTmFtZSBkaXJlY3RpdmUgZnJvbSBob3N0IGVsZW1lbnQgb2YgdGhlIGNvbXBvbmVudCdcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd2luZG93LmNvbnNvbGUud2FybihcIkNhbid0IGZpbmQgcGFyZW50IEZvcm1Hcm91cCBkaXJlY3RpdmVcIik7XG4gICAgICAgIH1cbiAgICB9XG59XG4iLCI8bGFiZWwgY2xhc3M9XCJtYi0yXCI+XG4gIDxzcGFuIFtjbGFzc109XCJsYWJlbENsYXNzXCJcbiAgICBbbmdDbGFz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