@posiwise/shared-components 0.0.109 → 0.0.111

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 (49) hide show
  1. package/esm2022/index.mjs +3 -2
  2. package/esm2022/lib/ab-test/ab-test-container/ab-test-container.component.mjs +1 -1
  3. package/esm2022/lib/authenticator/authenticator.component.mjs +39 -0
  4. package/esm2022/lib/clearbit-icon/clearbit-icon.component.mjs +9 -9
  5. package/esm2022/lib/custom-uploader/custom-uploader.component.mjs +4 -4
  6. package/esm2022/lib/geo-template/geo-template.component.mjs +1 -1
  7. package/esm2022/lib/header/header.component.mjs +4 -4
  8. package/esm2022/lib/image-cropper/image-cropper.component.mjs +3 -3
  9. package/esm2022/lib/input-container/input-container.component.mjs +9 -6
  10. package/esm2022/lib/label-management/entity-group/entity-group.component.mjs +5 -7
  11. package/esm2022/lib/label-management/group-definition/group-definition.component.mjs +4 -6
  12. package/esm2022/lib/label-management/groups/groups.component.mjs +4 -6
  13. package/esm2022/lib/landing-page-footer-b/landing-page-footer-b.component.mjs +3 -3
  14. package/esm2022/lib/no-data/no-data.component.mjs +4 -4
  15. package/esm2022/lib/number-picker/number-picker.component.mjs +26 -30
  16. package/esm2022/lib/password-validation/password-validation.component.mjs +1 -1
  17. package/esm2022/lib/permission-tree/permission-tree.component.mjs +4 -6
  18. package/esm2022/lib/privacy-and-tos/privacy-and-tos.component.mjs +27 -18
  19. package/esm2022/lib/privacy-policy/privacy-policy.component.mjs +2 -2
  20. package/esm2022/lib/range-date-picker/date-range-picker.component.mjs +48 -0
  21. package/esm2022/lib/shared/shared-component.interface.mjs +1 -1
  22. package/esm2022/lib/shared-components.module.mjs +18 -10
  23. package/esm2022/lib/splash/splash.component.mjs +1 -1
  24. package/esm2022/lib/terms-conditions/terms-conditions.component.mjs +3 -3
  25. package/fesm2022/posiwise-shared-components.mjs +176 -121
  26. package/fesm2022/posiwise-shared-components.mjs.map +1 -1
  27. package/index.d.ts +2 -1
  28. package/lib/ab-test/ab-test-container/ab-test-container.component.d.ts +1 -1
  29. package/lib/{autheticator → authenticator}/authenticator.component.d.ts +1 -1
  30. package/lib/clearbit-icon/clearbit-icon.component.d.ts +4 -4
  31. package/lib/custom-uploader/custom-uploader.component.d.ts +2 -2
  32. package/lib/geo-template/geo-template.component.d.ts +1 -1
  33. package/lib/header/header.component.d.ts +1 -1
  34. package/lib/image-cropper/image-cropper.component.d.ts +1 -1
  35. package/lib/input-container/input-container.component.d.ts +3 -2
  36. package/lib/label-management/entity-group/entity-group.component.d.ts +5 -7
  37. package/lib/label-management/group-definition/group-definition.component.d.ts +7 -9
  38. package/lib/label-management/groups/groups.component.d.ts +6 -9
  39. package/lib/landing-page-footer-b/landing-page-footer-b.component.d.ts +1 -1
  40. package/lib/number-picker/number-picker.component.d.ts +3 -4
  41. package/lib/password-validation/password-validation.component.d.ts +1 -1
  42. package/lib/permission-tree/permission-tree.component.d.ts +1 -1
  43. package/lib/privacy-and-tos/privacy-and-tos.component.d.ts +5 -3
  44. package/lib/range-date-picker/date-range-picker.component.d.ts +26 -0
  45. package/lib/shared/shared-component.interface.d.ts +1 -1
  46. package/lib/shared-components.module.d.ts +37 -35
  47. package/lib/terms-conditions/terms-conditions.component.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/esm2022/lib/autheticator/authenticator.component.mjs +0 -40
package/index.d.ts CHANGED
@@ -13,8 +13,9 @@ export * from './lib/privacy-policy/privacy-policy.component';
13
13
  export * from './lib/splash/splash.component';
14
14
  export * from './lib/terms-conditions/terms-conditions.component';
15
15
  export * from './lib/geo-template/geo-template.component';
16
- export * from './lib/autheticator/authenticator.component';
16
+ export * from './lib/authenticator/authenticator.component';
17
17
  export * from './lib/clearbit-icon/clearbit-icon.component';
18
+ export * from './lib/range-date-picker/date-range-picker.component';
18
19
  export * from './lib/coming-soon/coming-soon.component';
19
20
  export * from './lib/no-data/no-data.component';
20
21
  export * from './lib/label-management/entity-group/entity-group.component';
@@ -3,7 +3,7 @@ import { Experiment } from '../ab-test.interface';
3
3
  import { AbTestService } from '@posiwise/common-services';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AbTestContainerComponent implements OnInit {
6
- private service;
6
+ private readonly service;
7
7
  experimentName: string;
8
8
  serviceInput: string;
9
9
  data: Experiment;
@@ -3,7 +3,7 @@ import { AppBaseComponent } from '@posiwise/app-base-component';
3
3
  import { AuthService } from '@posiwise/common-services';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AuthenticatorComponent extends AppBaseComponent implements OnInit {
6
- private authService;
6
+ private readonly authService;
7
7
  token: string;
8
8
  constructor(authService: AuthService, injector: Injector);
9
9
  ngOnInit(): void;
@@ -1,11 +1,11 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class ClearbitIconComponent implements OnChanges {
3
+ export declare class ClearBitIconComponent implements OnChanges {
4
4
  src: any;
5
5
  altText: string;
6
- clearbitSrc: any;
6
+ clearBitSrc: any;
7
7
  dummyPath: string;
8
8
  ngOnChanges(simple: SimpleChanges): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<ClearbitIconComponent, 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>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClearBitIconComponent, 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
  }
@@ -3,8 +3,8 @@ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
3
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CustomUploaderComponent extends AppBaseComponent {
6
- private modalService;
7
- private document;
6
+ private readonly modalService;
7
+ private readonly document;
8
8
  saveEvent: EventEmitter<{
9
9
  file: string;
10
10
  name: string;
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { GeoService } from '@posiwise/common-services';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GeoTemplateComponent implements OnInit {
5
- private geoService;
5
+ private readonly geoService;
6
6
  data: object;
7
7
  constructor(geoService: GeoService);
8
8
  ngOnInit(): void;
@@ -3,7 +3,7 @@ import { AppBaseComponent } from '@posiwise/app-base-component';
3
3
  import { AuthService } from '@posiwise/common-services';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class HeaderComponent extends AppBaseComponent {
6
- private authService;
6
+ private readonly authService;
7
7
  loggedIn: boolean;
8
8
  constructor(injector: Injector, authService: AuthService);
9
9
  landing: boolean;
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ImageCroppedEvent, ImageTransform } from 'ngx-image-cropper';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ProfileImageCropperComponent {
5
- private cdr;
5
+ private readonly cdr;
6
6
  imageChangedEvent: Event | string;
7
7
  croppedImage: string;
8
8
  imageSelectionEvent: EventEmitter<string>;
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { AbstractControl, ControlContainer } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class InputContainerComponent implements OnInit {
5
- private controlContainer;
5
+ private readonly controlContainer;
6
6
  control: AbstractControl;
7
7
  name: string;
8
8
  label: string;
@@ -17,8 +17,9 @@ export declare class InputContainerComponent implements OnInit {
17
17
  afterLabel: string;
18
18
  showAfterLabel: boolean;
19
19
  showTriangleText: string;
20
+ isLeftTooltip: boolean;
20
21
  constructor(controlContainer: ControlContainer);
21
22
  ngOnInit(): void;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<InputContainerComponent, [{ optional: true; host: true; skipSelf: true; }]>;
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
+ 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; }; "isLeftTooltip": { "alias": "isLeftTooltip"; "required": false; }; }, {}, never, ["*"], false, never>;
24
25
  }
@@ -1,16 +1,14 @@
1
1
  import { Injector, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
2
  import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
3
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
- import { Subscription } from '@posiwise/common-utilities';
5
- import { User } from '@posiwise/common-utilities';
6
- import { GroupService } from '@posiwise/common-services';
7
- import { SubscriptionService } from '@posiwise/common-services';
8
4
  import { EnrolledUser, SharedModalContext } from '../../shared/shared-component.interface';
5
+ import { Subscription, User } from '@posiwise/common-utilities';
6
+ import { GroupService, SubscriptionService } from '@posiwise/common-services';
9
7
  import * as i0 from "@angular/core";
10
8
  export declare class EntityGroupComponent extends AppBaseComponent implements OnInit, OnDestroy {
11
- private groupService;
12
- private subscriptionService;
13
- private modalService;
9
+ private readonly groupService;
10
+ private readonly subscriptionService;
11
+ private readonly modalService;
14
12
  content: TemplateRef<SharedModalContext>;
15
13
  entityId: number;
16
14
  selectedGroup: {
@@ -1,17 +1,15 @@
1
1
  import { Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
- import { AppBaseComponent } from '@posiwise/app-base-component';
4
3
  import { User } from '@posiwise/common-utilities';
5
- import { DataService } from '@posiwise/common-services';
6
- import { GroupService } from '@posiwise/common-services';
7
- import { SubscriptionService } from '@posiwise/common-services';
4
+ import { AppBaseComponent } from '@posiwise/app-base-component';
5
+ import { SubscriptionService, GroupService, DataService } from '@posiwise/common-services';
8
6
  import { EnrolledUser } from '../../shared/shared-component.interface';
9
7
  import * as i0 from "@angular/core";
10
8
  export declare class GroupDefinitionComponent extends AppBaseComponent implements OnInit, OnDestroy {
11
- private groupService;
12
- private fb;
13
- private subscriptionService;
14
- private data;
9
+ private readonly groupService;
10
+ private readonly fb;
11
+ private readonly subscriptionService;
12
+ private readonly data;
15
13
  subscriptions: any[];
16
14
  message: number;
17
15
  groupDefinition: object[];
@@ -43,5 +41,5 @@ export declare class GroupDefinitionComponent extends AppBaseComponent implement
43
41
  onCancel(): void;
44
42
  ngOnDestroy(): void;
45
43
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupDefinitionComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<GroupDefinitionComponent, "pw-groupdefinition", never, {}, {}, never, never, false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<GroupDefinitionComponent, "pw-group-definition", never, {}, {}, never, never, false, never>;
47
45
  }
@@ -1,18 +1,15 @@
1
1
  import { Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
- import { Subscription } from '@posiwise/common-utilities';
5
- import { User } from '@posiwise/common-utilities';
6
- import { DataService } from '@posiwise/common-services';
7
- import { GroupService } from '@posiwise/common-services';
8
- import { SubscriptionService } from '@posiwise/common-services';
4
+ import { Subscription, User } from '@posiwise/common-utilities';
5
+ import { GroupService, DataService, SubscriptionService } from '@posiwise/common-services';
9
6
  import { Group } from '../../shared/shared-component.interface';
10
7
  import * as i0 from "@angular/core";
11
8
  export declare class GroupsComponent extends AppBaseComponent implements OnInit, OnDestroy {
12
- private fb;
13
- private groupService;
14
- private subscriptionService;
15
- private dataService;
9
+ private readonly fb;
10
+ private readonly groupService;
11
+ private readonly subscriptionService;
12
+ private readonly dataService;
16
13
  message: number;
17
14
  submitted: boolean;
18
15
  isGroupOperations: boolean;
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { AuthService } from '@posiwise/common-services';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class LandingPageFooterBComponent implements OnInit {
5
- private authService;
5
+ private readonly authService;
6
6
  isBrowserAccess: boolean;
7
7
  currentDate: Date;
8
8
  constructor(authService: AuthService);
@@ -3,7 +3,7 @@ import { CustomClasses, buttonsOrientationType, sizeType } from './number-picker
3
3
  import { NumberPickerService } from '@posiwise/common-services';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class NumberPickerComponent implements OnInit {
6
- private numberPickerService;
6
+ private readonly numberPickerService;
7
7
  private precision;
8
8
  private eventHolder;
9
9
  private countInterval;
@@ -48,7 +48,7 @@ export declare class NumberPickerComponent implements OnInit {
48
48
  onIncrease(event: MouseEvent | WheelEvent | KeyboardEvent): void;
49
49
  onMouseDown(event: MouseEvent, increase?: boolean): void;
50
50
  private isArrowUpDown;
51
- private isArowUp;
51
+ private isArrowUp;
52
52
  private loopPick;
53
53
  onMouseUp(event: MouseEvent, increase?: boolean): void;
54
54
  onKeyDown(event: KeyboardEvent): void;
@@ -57,14 +57,13 @@ export declare class NumberPickerComponent implements OnInit {
57
57
  private afterMouseUp;
58
58
  private afterPick;
59
59
  private clearTimers;
60
- private afterArrowKeysPressed;
61
60
  private parseVal;
62
61
  private getPrecision;
63
62
  private round;
64
63
  private canIncrease;
65
64
  private canDecrease;
66
65
  private onPickStarted;
67
- private onpickStopped;
66
+ private onPickStopped;
68
67
  private isLeftClick;
69
68
  private initPicker;
70
69
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberPickerComponent, never>;
@@ -4,7 +4,7 @@ import { AppBaseComponent } from '@posiwise/app-base-component';
4
4
  import { SharedModalContext } from '../shared/shared-component.interface';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class PasswordValidationComponent extends AppBaseComponent {
7
- private modal;
7
+ private readonly modal;
8
8
  content: TemplateRef<SharedModalContext>;
9
9
  successEvent: EventEmitter<boolean>;
10
10
  password: string;
@@ -2,7 +2,7 @@ import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/co
2
2
  import { PermissionTreeData } from '../shared/shared-component.interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PermissionTreeComponent implements AfterViewInit, OnChanges {
5
- private _element;
5
+ private readonly _element;
6
6
  data: PermissionTreeData;
7
7
  private _$tree;
8
8
  private _createdTreeBefore;
@@ -5,9 +5,9 @@ import { User } from '@posiwise/common-utilities';
5
5
  import { DomSanitizer } from '@angular/platform-browser';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class PrivacyAndTosComponent extends AppBaseComponent implements OnInit {
8
- private adminService;
9
- private document;
10
- private sanitizer;
8
+ private readonly adminService;
9
+ private readonly document;
10
+ private readonly sanitizer;
11
11
  productId: number;
12
12
  isPublic: boolean;
13
13
  id: string;
@@ -28,6 +28,8 @@ export declare class PrivacyAndTosComponent extends AppBaseComponent implements
28
28
  constructor(adminService: AdminService, injector: Injector, document: Document, sanitizer: DomSanitizer);
29
29
  ngOnInit(): void;
30
30
  private getSubscribedProduct;
31
+ fetchUserSubscriptions(userId: any, id?: any): void;
32
+ private findRequiredProducts;
31
33
  private getTosDetails;
32
34
  static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyAndTosComponent, never>;
33
35
  static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyAndTosComponent, "pw-privacy-and-tos", never, { "productId": { "alias": "productId"; "required": false; }; }, {}, never, never, false, never>;
@@ -0,0 +1,26 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import moment from 'moment';
3
+ import { DaterangepickerDirective } from 'ngx-daterangepicker-material';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DateRangePickerComponent {
6
+ pickerDirective: DaterangepickerDirective;
7
+ private initialized;
8
+ selectedDateRange: {
9
+ startDate: moment.Moment;
10
+ endDate: moment.Moment;
11
+ };
12
+ dateRanges: any;
13
+ dateRangeChange: EventEmitter<{
14
+ startDate: moment.Moment;
15
+ endDate: moment.Moment;
16
+ }>;
17
+ onDateRangeSelect(event: {
18
+ startDate: moment.Moment;
19
+ endDate: moment.Moment;
20
+ }): void;
21
+ ngAfterViewInit(): void;
22
+ onClearDate(): void;
23
+ openDatepicker(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "app-date-picker", never, { "selectedDateRange": { "alias": "selectedDateRange"; "required": false; }; "dateRanges": { "alias": "dateRanges"; "required": false; }; }, { "dateRangeChange": "dateRangeChange"; }, never, never, false, never>;
26
+ }
@@ -8,7 +8,7 @@ export interface EnrolledUser {
8
8
  is_owner: boolean;
9
9
  id: number;
10
10
  }
11
- export interface GroupDefination {
11
+ export interface GroupDefinition {
12
12
  description: string;
13
13
  name: string;
14
14
  }
@@ -5,42 +5,44 @@ import * as i3 from "./password-validation/password-validation.component";
5
5
  import * as i4 from "./custom-uploader/custom-uploader.component";
6
6
  import * as i5 from "./image-cropper/image-cropper.component";
7
7
  import * as i6 from "./pw-tabs/pw-tabs.component";
8
- import * as i7 from "./permission-tree/permission-tree.component";
9
- import * as i8 from "./input-container/input-container.component";
10
- import * as i9 from "./field-error-display/field-error-display.component";
11
- import * as i10 from "./privacy-and-tos/privacy-and-tos.component";
12
- import * as i11 from "./privacy-policy/privacy-policy.component";
13
- import * as i12 from "./terms-conditions/terms-conditions.component";
14
- import * as i13 from "./splash/splash.component";
15
- import * as i14 from "./geo-template/geo-template.component";
16
- import * as i15 from "./autheticator/authenticator.component";
17
- import * as i16 from "./clearbit-icon/clearbit-icon.component";
18
- import * as i17 from "./coming-soon/coming-soon.component";
19
- import * as i18 from "./no-data/no-data.component";
20
- import * as i19 from "./label-management/entity-group/entity-group.component";
21
- import * as i20 from "./label-management/groups/groups.component";
22
- import * as i21 from "./label-management/group-definition/group-definition.component";
23
- import * as i22 from "./number-picker/number-picker.component";
24
- import * as i23 from "./header/header.component";
25
- import * as i24 from "./landing-page-footer-b/landing-page-footer-b.component";
26
- import * as i25 from "@angular/forms";
27
- import * as i26 from "primeng/button";
28
- import * as i27 from "@posiwise/app-loader";
29
- import * as i28 from "@posiwise/directives";
30
- import * as i29 from "@posiwise/core-transloco";
31
- import * as i30 from "ngx-image-cropper";
32
- import * as i31 from "primeng/multiselect";
33
- import * as i32 from "primeng/tabmenu";
34
- import * as i33 from "primeng/progressspinner";
35
- import * as i34 from "primeng/table";
36
- import * as i35 from "primeng/autocomplete";
37
- import * as i36 from "@angular/cdk/drag-drop";
38
- import * as i37 from "@posiwise/pipes";
39
- import * as i38 from "@angular/common";
40
- import * as i39 from "@ng-bootstrap/ng-bootstrap";
41
- import * as i40 from "ngx-ui-switch";
8
+ import * as i7 from "./range-date-picker/date-range-picker.component";
9
+ import * as i8 from "./permission-tree/permission-tree.component";
10
+ import * as i9 from "./input-container/input-container.component";
11
+ import * as i10 from "./field-error-display/field-error-display.component";
12
+ import * as i11 from "./privacy-and-tos/privacy-and-tos.component";
13
+ import * as i12 from "./privacy-policy/privacy-policy.component";
14
+ import * as i13 from "./terms-conditions/terms-conditions.component";
15
+ import * as i14 from "./splash/splash.component";
16
+ import * as i15 from "./geo-template/geo-template.component";
17
+ import * as i16 from "./authenticator/authenticator.component";
18
+ import * as i17 from "./clearbit-icon/clearbit-icon.component";
19
+ import * as i18 from "./coming-soon/coming-soon.component";
20
+ import * as i19 from "./no-data/no-data.component";
21
+ import * as i20 from "./label-management/entity-group/entity-group.component";
22
+ import * as i21 from "./label-management/groups/groups.component";
23
+ import * as i22 from "./label-management/group-definition/group-definition.component";
24
+ import * as i23 from "./number-picker/number-picker.component";
25
+ import * as i24 from "./header/header.component";
26
+ import * as i25 from "./landing-page-footer-b/landing-page-footer-b.component";
27
+ import * as i26 from "@angular/forms";
28
+ import * as i27 from "primeng/button";
29
+ import * as i28 from "@posiwise/app-loader";
30
+ import * as i29 from "@posiwise/directives";
31
+ import * as i30 from "@posiwise/core-transloco";
32
+ import * as i31 from "ngx-daterangepicker-material";
33
+ import * as i32 from "ngx-image-cropper";
34
+ import * as i33 from "primeng/multiselect";
35
+ import * as i34 from "primeng/tabmenu";
36
+ import * as i35 from "primeng/progressspinner";
37
+ import * as i36 from "primeng/table";
38
+ import * as i37 from "primeng/autocomplete";
39
+ import * as i38 from "@angular/cdk/drag-drop";
40
+ import * as i39 from "@posiwise/pipes";
41
+ import * as i40 from "@angular/common";
42
+ import * as i41 from "@ng-bootstrap/ng-bootstrap";
43
+ import * as i42 from "ngx-ui-switch";
42
44
  export declare class SharedComponentsModule {
43
45
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
44
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof i1.AbTestContainerComponent, typeof i2.AbAlternativeComponent, typeof i3.PasswordValidationComponent, typeof i4.CustomUploaderComponent, typeof i5.ProfileImageCropperComponent, typeof i6.PwTabsComponent, typeof i7.PermissionTreeComponent, typeof i8.InputContainerComponent, typeof i9.FieldErrorDisplayComponent, typeof i10.PrivacyAndTosComponent, typeof i11.PrivacyPolicyComponent, typeof i12.TermsConditionsComponent, typeof i13.SplashComponent, typeof i14.GeoTemplateComponent, typeof i15.AuthenticatorComponent, typeof i16.ClearbitIconComponent, typeof i17.ComingSoonComponent, typeof i18.NoDataComponent, typeof i19.EntityGroupComponent, typeof i20.GroupsComponent, typeof i21.GroupDefinitionComponent, typeof i22.NumberPickerComponent, typeof i23.HeaderComponent, typeof i24.LandingPageFooterBComponent], [typeof i25.FormsModule, typeof i26.ButtonModule, typeof i27.AppLoaderModule, typeof i25.ReactiveFormsModule, typeof i28.DirectivesModule, typeof i29.CoreTranslocoModule, typeof i30.ImageCropperModule, typeof i31.MultiSelectModule, typeof i32.TabMenuModule, typeof i33.ProgressSpinnerModule, typeof i34.TableModule, typeof i35.AutoCompleteModule, typeof i36.DragDropModule, typeof i37.PipesModule, typeof i38.CommonModule, typeof i39.NgbModule, typeof i40.UiSwitchModule, typeof i38.NgIf], [typeof i1.AbTestContainerComponent, typeof i2.AbAlternativeComponent, typeof i3.PasswordValidationComponent, typeof i4.CustomUploaderComponent, typeof i5.ProfileImageCropperComponent, typeof i30.ImageCropperModule, typeof i6.PwTabsComponent, typeof i31.MultiSelectModule, typeof i32.TabMenuModule, typeof i33.ProgressSpinnerModule, typeof i34.TableModule, typeof i35.AutoCompleteModule, typeof i36.DragDropModule, typeof i7.PermissionTreeComponent, typeof i8.InputContainerComponent, typeof i9.FieldErrorDisplayComponent, typeof i10.PrivacyAndTosComponent, typeof i11.PrivacyPolicyComponent, typeof i12.TermsConditionsComponent, typeof i13.SplashComponent, typeof i14.GeoTemplateComponent, typeof i15.AuthenticatorComponent, typeof i16.ClearbitIconComponent, typeof i17.ComingSoonComponent, typeof i18.NoDataComponent, typeof i19.EntityGroupComponent, typeof i20.GroupsComponent, typeof i21.GroupDefinitionComponent, typeof i22.NumberPickerComponent, typeof i23.HeaderComponent, typeof i24.LandingPageFooterBComponent]>;
46
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof i1.AbTestContainerComponent, typeof i2.AbAlternativeComponent, typeof i3.PasswordValidationComponent, typeof i4.CustomUploaderComponent, typeof i5.ProfileImageCropperComponent, typeof i6.PwTabsComponent, typeof i7.DateRangePickerComponent, typeof i8.PermissionTreeComponent, typeof i9.InputContainerComponent, typeof i10.FieldErrorDisplayComponent, typeof i11.PrivacyAndTosComponent, typeof i12.PrivacyPolicyComponent, typeof i13.TermsConditionsComponent, typeof i14.SplashComponent, typeof i15.GeoTemplateComponent, typeof i16.AuthenticatorComponent, typeof i17.ClearBitIconComponent, typeof i18.ComingSoonComponent, typeof i19.NoDataComponent, typeof i20.EntityGroupComponent, typeof i21.GroupsComponent, typeof i22.GroupDefinitionComponent, typeof i23.NumberPickerComponent, typeof i24.HeaderComponent, typeof i25.LandingPageFooterBComponent], [typeof i26.FormsModule, typeof i27.ButtonModule, typeof i28.AppLoaderModule, typeof i26.ReactiveFormsModule, typeof i29.DirectivesModule, typeof i30.CoreTranslocoModule, typeof i31.NgxDaterangepickerMd, typeof i32.ImageCropperModule, typeof i33.MultiSelectModule, typeof i34.TabMenuModule, typeof i35.ProgressSpinnerModule, typeof i36.TableModule, typeof i37.AutoCompleteModule, typeof i38.DragDropModule, typeof i39.PipesModule, typeof i40.CommonModule, typeof i41.NgbModule, typeof i42.UiSwitchModule, typeof i40.NgIf], [typeof i1.AbTestContainerComponent, typeof i2.AbAlternativeComponent, typeof i3.PasswordValidationComponent, typeof i4.CustomUploaderComponent, typeof i5.ProfileImageCropperComponent, typeof i32.ImageCropperModule, typeof i6.PwTabsComponent, typeof i7.DateRangePickerComponent, typeof i33.MultiSelectModule, typeof i34.TabMenuModule, typeof i35.ProgressSpinnerModule, typeof i36.TableModule, typeof i37.AutoCompleteModule, typeof i38.DragDropModule, typeof i8.PermissionTreeComponent, typeof i9.InputContainerComponent, typeof i10.FieldErrorDisplayComponent, typeof i11.PrivacyAndTosComponent, typeof i12.PrivacyPolicyComponent, typeof i13.TermsConditionsComponent, typeof i14.SplashComponent, typeof i15.GeoTemplateComponent, typeof i16.AuthenticatorComponent, typeof i17.ClearBitIconComponent, typeof i18.ComingSoonComponent, typeof i19.NoDataComponent, typeof i20.EntityGroupComponent, typeof i21.GroupsComponent, typeof i22.GroupDefinitionComponent, typeof i23.NumberPickerComponent, typeof i24.HeaderComponent, typeof i25.LandingPageFooterBComponent]>;
45
47
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
46
48
  }
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { AppConfigService } from '@posiwise/app-config-service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TermsConditionsComponent implements OnInit {
5
- private appConfigService;
5
+ private readonly appConfigService;
6
6
  isPublic: boolean;
7
7
  company_name: string;
8
8
  company_number: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11",
@@ -1,40 +0,0 @@
1
- import { Component, Injector } from '@angular/core';
2
- import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { AuthService } from '@posiwise/common-services';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@posiwise/common-services";
6
- export class AuthenticatorComponent extends AppBaseComponent {
7
- constructor(authService, injector) {
8
- super(injector);
9
- this.authService = authService;
10
- this.token = '';
11
- }
12
- ngOnInit() {
13
- this.route.queryParams.subscribe(params => {
14
- if (!params['token']) {
15
- window.location.href = '/login';
16
- }
17
- else {
18
- this.authService.storePlatform('app').subscribe(() => {
19
- this.authService.setHeaderKey();
20
- // this.authService.setPlatform();
21
- this.authService.storeToken(params['token']).subscribe({
22
- next: () => {
23
- this.router.navigate(['home']);
24
- },
25
- error: () => {
26
- window.location.href = '/login';
27
- }
28
- });
29
- });
30
- }
31
- });
32
- }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AuthenticatorComponent, deps: [{ token: i1.AuthService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: AuthenticatorComponent, selector: "pw-authenticator", usesInheritance: true, ngImport: i0, template: "<!--Auth Page Starts-->\n<section>\n <div class=\"container-fluid\">\n <div class=\"row full-height-vh\">\n <div class=\"col-12 d-flex align-items-center justify-content-center\">\n <h2>Logging...</h2>\n </div>\n </div>\n </div>\n</section>\n<!--Auth Page Ends-->\n" }); }
35
- }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AuthenticatorComponent, decorators: [{
37
- type: Component,
38
- args: [{ selector: 'pw-authenticator', template: "<!--Auth Page Starts-->\n<section>\n <div class=\"container-fluid\">\n <div class=\"row full-height-vh\">\n <div class=\"col-12 d-flex align-items-center justify-content-center\">\n <h2>Logging...</h2>\n </div>\n </div>\n </div>\n</section>\n<!--Auth Page Ends-->\n" }]
39
- }], ctorParameters: () => [{ type: i1.AuthService }, { type: i0.Injector }] });
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aGVudGljYXRvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC1jb21wb25lbnRzL3NyYy9saWIvYXV0aGV0aWNhdG9yL2F1dGhlbnRpY2F0b3IuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vL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0aFNlcnZpY2UsXG4gICAgICAgIGluamVjdG9yOiBJbmplY3RvclxuICAgICkge1xuICAgICAgICBzdXBlcihpbmplY3Rvcik7XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKSB7XG4gICAgICAgIHRoaXMucm91dGUucXVlcnlQYXJhbXMuc3Vic2NyaWJlKHBhcmFtcyA9PiB7XG4gICAgICAgICAgICBpZiAoIXBhcmFtc1sndG9rZW4nXSkge1xuICAgICAgICAgICAgICAgIHdpbmRvdy5sb2NhdGlvbi5ocmVmID0gJy9sb2dpbic7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuYXV0aFNlcnZpY2Uuc3RvcmVQbGF0Zm9ybSgnYXBwJykuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hdXRoU2VydmljZS5zZXRIZWFkZXJLZXkoKTtcbiAgICAgICAgICAgICAgICAgICAgLy8gdGhpcy5hdXRoU2VydmljZS5zZXRQbGF0Zm9ybSgpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmF1dGhTZXJ2aWNlLnN0b3JlVG9rZW4ocGFyYW1zWyd0b2tlbiddKS5zdWJzY3JpYmUoe1xuICAgICAgICAgICAgICAgICAgICAgICAgbmV4dDogKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlKFsnaG9tZSddKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBlcnJvcjogKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpbmRvdy5sb2NhdGlvbi5ocmVmID0gJy9sb2dpbic7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG59XG4iLCI8IS0tQXV0aCBQYWdlIFN0YXJ0cy0tPlxuPHNlY3Rpb24+XG4gIDxkaXYgY2xhc3M9XCJjb250YWluZXItZmx1aWRcIj5cbiAgICA8ZGl2IGNsYXNzPVwicm93IGZ1bGwtaGVpZ2h0LXZoXCI+XG4gICAgICA8ZGl2IGNsYXNzPVwiY29sLTEyIGQtZmxleCBhbGlnbi1pdGVtcy1jZW50ZXIganVzdGlmeS1jb250ZW50LWNlbnRlclwiPlxuICAgICAgICA8aDI+TG9nZ2luZy4uLjwvaDI+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L3NlY3Rpb24+XG48IS0tQXV0aCBQYWdlIEVuZHMtLT5cbiJdfQ==