@posiwise/shared-components 0.0.78 → 0.0.80

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/index.d.ts CHANGED
@@ -13,7 +13,7 @@ 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/autheticator.component';
16
+ export * from './lib/autheticator/authenticator.component';
17
17
  export * from './lib/clearbit-icon/clearbit-icon.component';
18
18
  export * from './lib/coming-soon/coming-soon.component';
19
19
  export * from './lib/no-data/no-data.component';
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export declare class AbAlternativeComponent {
4
4
  name: string;
5
5
  /**
6
- * Specficies AbTestContainerComponent instance template reference
6
+ * Specifies AbTestContainerComponent instance template reference
7
7
  */
8
8
  ref: AbTestContainerComponent;
9
9
  /**
@@ -8,5 +8,5 @@ export declare class AuthenticatorComponent extends AppBaseComponent implements
8
8
  constructor(authService: AuthService, injector: Injector);
9
9
  ngOnInit(): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticatorComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticatorComponent, "pw-autheticator", never, {}, {}, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticatorComponent, "pw-authenticator", never, {}, {}, never, never, false, never>;
12
12
  }
@@ -7,7 +7,7 @@ import { GroupService } from '@posiwise/common-services';
7
7
  import { SubscriptionService } from '@posiwise/common-services';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class GroupDefinitionComponent extends AppBaseComponent implements OnInit, OnDestroy {
10
- private groupservice;
10
+ private groupService;
11
11
  private fb;
12
12
  private subscriptionService;
13
13
  private data;
@@ -27,7 +27,7 @@ export declare class GroupDefinitionComponent extends AppBaseComponent implement
27
27
  enrolledUsers: any;
28
28
  user: User;
29
29
  isLoaded: boolean;
30
- constructor(groupservice: GroupService, fb: UntypedFormBuilder, subscriptionService: SubscriptionService, data: DataService, injector: Injector);
30
+ constructor(groupService: GroupService, fb: UntypedFormBuilder, subscriptionService: SubscriptionService, data: DataService, injector: Injector);
31
31
  ngOnInit(): void;
32
32
  private getAllGroupDefinition;
33
33
  private getSubscribedUsers;
@@ -31,11 +31,11 @@ export declare class NumberPickerComponent implements OnInit {
31
31
  minReached: EventEmitter<boolean>;
32
32
  maxReached: EventEmitter<boolean>;
33
33
  pickStarted: EventEmitter<boolean>;
34
- pickStoped: EventEmitter<boolean>;
34
+ pickStopped: EventEmitter<boolean>;
35
35
  pickUpStarted: EventEmitter<boolean>;
36
- pickUpStoped: EventEmitter<boolean>;
36
+ pickUpStopped: EventEmitter<boolean>;
37
37
  pickDownStarted: EventEmitter<boolean>;
38
- pickDownStoped: EventEmitter<boolean>;
38
+ pickDownStopped: EventEmitter<boolean>;
39
39
  constructor(numberPickerService: NumberPickerService);
40
40
  ngOnInit(): void;
41
41
  isHorizontal(): boolean;
@@ -64,9 +64,9 @@ export declare class NumberPickerComponent implements OnInit {
64
64
  private canIncrease;
65
65
  private canDecrease;
66
66
  private onPickStarted;
67
- private onPickStoped;
67
+ private onpickStopped;
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": { "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>;
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"; "pickStopped": "pickStopped"; "pickUpStarted": "pickUpStarted"; "pickUpStopped": "pickUpStopped"; "pickDownStarted": "pickDownStarted"; "pickDownStopped": "pickDownStopped"; }, never, never, false, never>;
72
72
  }
@@ -13,7 +13,7 @@ import * as i11 from "./privacy-policy/privacy-policy.component";
13
13
  import * as i12 from "./terms-conditions/terms-conditions.component";
14
14
  import * as i13 from "./splash/splash.component";
15
15
  import * as i14 from "./geo-template/geo-template.component";
16
- import * as i15 from "./autheticator/autheticator.component";
16
+ import * as i15 from "./autheticator/authenticator.component";
17
17
  import * as i16 from "./clearbit-icon/clearbit-icon.component";
18
18
  import * as i17 from "./coming-soon/coming-soon.component";
19
19
  import * as i18 from "./no-data/no-data.component";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.2.2",
6
6
  "@angular/core": "17.2.2",
@@ -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.2.2", 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.2.2", type: AuthenticatorComponent, selector: "pw-autheticator", 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.2.2", ngImport: i0, type: AuthenticatorComponent, decorators: [{
37
- type: Component,
38
- args: [{ selector: 'pw-autheticator', 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aGV0aWNhdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2hhcmVkLWNvbXBvbmVudHMvc3JjL2xpYi9hdXRoZXRpY2F0b3IvYXV0aGV0aWNhdG9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2hhcmVkLWNvbXBvbmVudHMvc3JjL2xpYi9hdXRoZXRpY2F0b3IvYXV0aGV0aWNhdG9yLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBRTVELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDhCQUE4QixD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uaHJlZiA9ICcvbG9naW4nO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLmF1dGhTZXJ2aWNlLnN0b3JlUGxhdGZvcm0oJ2FwcCcpLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYXV0aFNlcnZpY2Uuc2V0SGVhZGVyS2V5KCk7XG4gICAgICAgICAgICAgICAgICAgIC8vIHRoaXMuYXV0aFNlcnZpY2Uuc2V0UGxhdGZvcm0oKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hdXRoU2VydmljZS5zdG9yZVRva2VuKHBhcmFtc1sndG9rZW4nXSkuc3Vic2NyaWJlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQ6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnJvdXRlci5uYXZpZ2F0ZShbJ2hvbWUnXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgZXJyb3I6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aW5kb3cubG9jYXRpb24uaHJlZiA9ICcvbG9naW4nO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxufVxuIiwiPCEtLUF1dGggUGFnZSBTdGFydHMtLT5cbjxzZWN0aW9uPlxuICA8ZGl2IGNsYXNzPVwiY29udGFpbmVyLWZsdWlkXCI+XG4gICAgPGRpdiBjbGFzcz1cInJvdyBmdWxsLWhlaWdodC12aFwiPlxuICAgICAgPGRpdiBjbGFzcz1cImNvbC0xMiBkLWZsZXggYWxpZ24taXRlbXMtY2VudGVyIGp1c3RpZnktY29udGVudC1jZW50ZXJcIj5cbiAgICAgICAgPGgyPkxvZ2dpbmcuLi48L2gyPlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9zZWN0aW9uPlxuPCEtLUF1dGggUGFnZSBFbmRzLS0+XG4iXX0=