@bitblit/ngx-acute-warden 5.1.118 → 5.1.121

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.
@@ -7,79 +7,73 @@ import { StringRatchet } from '@bitblit/ratchet-common/lang/string-ratchet';
7
7
  import { FormBuilder, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
8
8
  import { WardenContactType } from '@bitblit/ratchet-warden-common/common/model/warden-contact-type';
9
9
  import { EnumRatchet } from '@bitblit/ratchet-common/lang/enum-ratchet';
10
- import { MessagesModule } from 'primeng/messages';
11
10
  import { CommonModule } from '@angular/common';
12
11
  import { CardModule } from 'primeng/card';
13
12
  import { ButtonModule } from 'primeng/button';
14
- import { DropdownModule } from 'primeng/dropdown';
15
13
  import { AlertComponent } from '@bitblit/ngx-acute-common';
16
14
  import { DialogService } from 'primeng/dynamicdialog';
17
15
  import { Ripple } from 'primeng/ripple';
18
16
  import { InputTextModule } from 'primeng/inputtext';
17
+ import { Select } from "primeng/select";
19
18
  import * as i0 from "@angular/core";
20
19
  import * as i1 from "@angular/router";
21
20
  import * as i2 from "@bitblit/ratchet-warden-common/client/warden-client";
22
21
  import * as i3 from "@angular/forms";
23
22
  import * as i4 from "primeng/dynamicdialog";
24
- import * as i5 from "@angular/common";
25
- import * as i6 from "primeng/card";
26
- import * as i7 from "primeng/button";
27
- import * as i8 from "primeng/dropdown";
28
- import * as i9 from "primeng/inputtext";
23
+ import * as i5 from "primeng/card";
24
+ import * as i6 from "primeng/button";
25
+ import * as i7 from "primeng/inputtext";
29
26
  const _c0 = () => ({ "min-width": "50%" });
30
- function AcuteCreateUserComponent_ng_container_12_span_1_Template(rf, ctx) { if (rf & 1) {
31
- i0.ɵɵelementStart(0, "span", 13);
27
+ function AcuteCreateUserComponent_Conditional_12_Conditional_0_Template(rf, ctx) { if (rf & 1) {
28
+ i0.ɵɵelementStart(0, "span", 11);
32
29
  i0.ɵɵtext(1, "Contact is Required");
33
30
  i0.ɵɵelementEnd();
34
31
  } }
35
- function AcuteCreateUserComponent_ng_container_12_span_2_Template(rf, ctx) { if (rf & 1) {
36
- i0.ɵɵelementStart(0, "span", 13);
32
+ function AcuteCreateUserComponent_Conditional_12_Conditional_1_Template(rf, ctx) { if (rf & 1) {
33
+ i0.ɵɵelementStart(0, "span", 11);
37
34
  i0.ɵɵtext(1, "Please enter a valid email address");
38
35
  i0.ɵɵelementEnd();
39
36
  } }
40
- function AcuteCreateUserComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
41
- i0.ɵɵelementContainerStart(0);
42
- i0.ɵɵtemplate(1, AcuteCreateUserComponent_ng_container_12_span_1_Template, 2, 0, "span", 12)(2, AcuteCreateUserComponent_ng_container_12_span_2_Template, 2, 0, "span", 12);
43
- i0.ɵɵelementContainerEnd();
37
+ function AcuteCreateUserComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
38
+ i0.ɵɵconditionalCreate(0, AcuteCreateUserComponent_Conditional_12_Conditional_0_Template, 2, 0, "span", 11);
39
+ i0.ɵɵconditionalCreate(1, AcuteCreateUserComponent_Conditional_12_Conditional_1_Template, 2, 0, "span", 11);
44
40
  } if (rf & 2) {
45
41
  let tmp_1_0;
46
42
  let tmp_2_0;
47
43
  const ctx_r0 = i0.ɵɵnextContext();
44
+ i0.ɵɵconditional(((tmp_1_0 = ctx_r0.f("userContactValue").errors) == null ? null : tmp_1_0["required"]) ? 0 : -1);
48
45
  i0.ɵɵadvance();
49
- i0.ɵɵproperty("ngIf", (tmp_1_0 = ctx_r0.f("userContactValue").errors) == null ? null : tmp_1_0["required"]);
50
- i0.ɵɵadvance();
51
- i0.ɵɵproperty("ngIf", (tmp_2_0 = ctx_r0.f("userContactValue").errors) == null ? null : tmp_2_0["email"]);
46
+ i0.ɵɵconditional(((tmp_2_0 = ctx_r0.f("userContactValue").errors) == null ? null : tmp_2_0["email"]) ? 1 : -1);
52
47
  } }
53
- function AcuteCreateUserComponent_ng_container_17_span_1_Template(rf, ctx) { if (rf & 1) {
54
- i0.ɵɵelementStart(0, "span", 13);
48
+ function AcuteCreateUserComponent_Conditional_17_Conditional_0_Template(rf, ctx) { if (rf & 1) {
49
+ i0.ɵɵelementStart(0, "span", 11);
55
50
  i0.ɵɵtext(1, "Full name is Required");
56
51
  i0.ɵɵelementEnd();
57
52
  } }
58
- function AcuteCreateUserComponent_ng_container_17_span_2_Template(rf, ctx) { if (rf & 1) {
59
- i0.ɵɵelementStart(0, "span", 13);
53
+ function AcuteCreateUserComponent_Conditional_17_Conditional_1_Template(rf, ctx) { if (rf & 1) {
54
+ i0.ɵɵelementStart(0, "span", 11);
60
55
  i0.ɵɵtext(1, "Please enter a longer name");
61
56
  i0.ɵɵelementEnd();
62
57
  } }
63
- function AcuteCreateUserComponent_ng_container_17_span_3_Template(rf, ctx) { if (rf & 1) {
64
- i0.ɵɵelementStart(0, "span", 13);
58
+ function AcuteCreateUserComponent_Conditional_17_Conditional_2_Template(rf, ctx) { if (rf & 1) {
59
+ i0.ɵɵelementStart(0, "span", 11);
65
60
  i0.ɵɵtext(1, "Please enter a shorter name");
66
61
  i0.ɵɵelementEnd();
67
62
  } }
68
- function AcuteCreateUserComponent_ng_container_17_Template(rf, ctx) { if (rf & 1) {
69
- i0.ɵɵelementContainerStart(0);
70
- i0.ɵɵtemplate(1, AcuteCreateUserComponent_ng_container_17_span_1_Template, 2, 0, "span", 12)(2, AcuteCreateUserComponent_ng_container_17_span_2_Template, 2, 0, "span", 12)(3, AcuteCreateUserComponent_ng_container_17_span_3_Template, 2, 0, "span", 12);
71
- i0.ɵɵelementContainerEnd();
63
+ function AcuteCreateUserComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
64
+ i0.ɵɵconditionalCreate(0, AcuteCreateUserComponent_Conditional_17_Conditional_0_Template, 2, 0, "span", 11);
65
+ i0.ɵɵconditionalCreate(1, AcuteCreateUserComponent_Conditional_17_Conditional_1_Template, 2, 0, "span", 11);
66
+ i0.ɵɵconditionalCreate(2, AcuteCreateUserComponent_Conditional_17_Conditional_2_Template, 2, 0, "span", 11);
72
67
  } if (rf & 2) {
73
68
  let tmp_1_0;
74
69
  let tmp_2_0;
75
70
  let tmp_3_0;
76
71
  const ctx_r0 = i0.ɵɵnextContext();
72
+ i0.ɵɵconditional(((tmp_1_0 = ctx_r0.f("userFullName").errors) == null ? null : tmp_1_0["required"]) ? 0 : -1);
77
73
  i0.ɵɵadvance();
78
- i0.ɵɵproperty("ngIf", (tmp_1_0 = ctx_r0.f("userFullName").errors) == null ? null : tmp_1_0["required"]);
79
- i0.ɵɵadvance();
80
- i0.ɵɵproperty("ngIf", (tmp_2_0 = ctx_r0.f("userFullName").errors) == null ? null : tmp_2_0["minlength"]);
74
+ i0.ɵɵconditional(((tmp_2_0 = ctx_r0.f("userFullName").errors) == null ? null : tmp_2_0["minlength"]) ? 1 : -1);
81
75
  i0.ɵɵadvance();
82
- i0.ɵɵproperty("ngIf", (tmp_3_0 = ctx_r0.f("userFullName").errors) == null ? null : tmp_3_0["maxlength"]);
76
+ i0.ɵɵconditional(((tmp_3_0 = ctx_r0.f("userFullName").errors) == null ? null : tmp_3_0["maxlength"]) ? 2 : -1);
83
77
  } }
84
78
  export class AcuteCreateUserComponent {
85
79
  route;
@@ -126,29 +120,29 @@ export class AcuteCreateUserComponent {
126
120
  }
127
121
  }
128
122
  static ɵfac = function AcuteCreateUserComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AcuteCreateUserComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.WardenClient), i0.ɵɵdirectiveInject(i3.FormBuilder), i0.ɵɵdirectiveInject(i4.DialogService)); };
129
- static ɵcmp = i0.ɵɵdefineComponent({ type: AcuteCreateUserComponent, selectors: [["ngx-acute-warden-create-user"]], decls: 23, vars: 7, consts: [[1, "row"], ["header", "Create User"], [3, "formGroup"], [2, "display", "flex", "flex-direction", "column"], [1, "p-inputgroup"], [1, "p-inputgroup-addon"], ["formControlName", "userContactType", "id", "userContactType", 3, "options"], ["pInputText", "", "formControlName", "userContactValue", "placeholder", "e.g., test@test.com", "id", "userContactValue"], [4, "ngIf"], ["pInputText", "", "formControlName", "userFullName", "id", "userFullName", "placeholder", "e.g., Tom Smith"], ["pRipple", "", "styleClass", "p-button-raised", 3, "click"], ["pRipple", "", "styleClass", "p-button-raised", "routerLink", "/public/login"], ["style", "color: red", 4, "ngIf"], [2, "color", "red"]], template: function AcuteCreateUserComponent_Template(rf, ctx) { if (rf & 1) {
123
+ static ɵcmp = i0.ɵɵdefineComponent({ type: AcuteCreateUserComponent, selectors: [["ngx-acute-warden-create-user"]], decls: 23, vars: 7, consts: [[1, "row"], ["header", "Create User"], [3, "formGroup"], [2, "display", "flex", "flex-direction", "column"], [1, "p-inputgroup"], [1, "p-inputgroup-addon"], ["formControlName", "userContactType", "id", "userContactType", 3, "options"], ["pInputText", "", "formControlName", "userContactValue", "placeholder", "e.g., test@test.com", "id", "userContactValue"], ["pInputText", "", "formControlName", "userFullName", "id", "userFullName", "placeholder", "e.g., Tom Smith"], ["pRipple", "", "styleClass", "p-button-raised", 3, "click"], ["pRipple", "", "styleClass", "p-button-raised", "routerLink", "/public/login"], [2, "color", "red"]], template: function AcuteCreateUserComponent_Template(rf, ctx) { if (rf & 1) {
130
124
  i0.ɵɵelementStart(0, "div", 0)(1, "p-card", 1)(2, "form", 2)(3, "div", 3)(4, "div", 4)(5, "label", 5);
131
125
  i0.ɵɵtext(6, "Contact Type");
132
126
  i0.ɵɵelementEnd();
133
- i0.ɵɵelement(7, "p-dropdown", 6);
127
+ i0.ɵɵelement(7, "p-select", 6);
134
128
  i0.ɵɵelementEnd();
135
129
  i0.ɵɵelementStart(8, "div", 4)(9, "span", 5);
136
130
  i0.ɵɵtext(10, "Contact");
137
131
  i0.ɵɵelementEnd();
138
132
  i0.ɵɵelement(11, "input", 7);
139
- i0.ɵɵtemplate(12, AcuteCreateUserComponent_ng_container_12_Template, 3, 2, "ng-container", 8);
133
+ i0.ɵɵconditionalCreate(12, AcuteCreateUserComponent_Conditional_12_Template, 2, 2);
140
134
  i0.ɵɵelementEnd();
141
135
  i0.ɵɵelementStart(13, "div", 4)(14, "span", 5);
142
136
  i0.ɵɵtext(15, "Full name");
143
137
  i0.ɵɵelementEnd();
144
- i0.ɵɵelement(16, "input", 9);
145
- i0.ɵɵtemplate(17, AcuteCreateUserComponent_ng_container_17_Template, 4, 3, "ng-container", 8);
138
+ i0.ɵɵelement(16, "input", 8);
139
+ i0.ɵɵconditionalCreate(17, AcuteCreateUserComponent_Conditional_17_Template, 3, 3);
146
140
  i0.ɵɵelementEnd()();
147
- i0.ɵɵelementStart(18, "div")(19, "p-button", 10);
141
+ i0.ɵɵelementStart(18, "div")(19, "p-button", 9);
148
142
  i0.ɵɵlistener("click", function AcuteCreateUserComponent_Template_p_button_click_19_listener() { return ctx.createUser(); });
149
143
  i0.ɵɵtext(20, "Create user");
150
144
  i0.ɵɵelementEnd();
151
- i0.ɵɵelementStart(21, "p-button", 11);
145
+ i0.ɵɵelementStart(21, "p-button", 10);
152
146
  i0.ɵɵtext(22, "Cancel");
153
147
  i0.ɵɵelementEnd()()()()();
154
148
  } if (rf & 2) {
@@ -158,27 +152,26 @@ export class AcuteCreateUserComponent {
158
152
  i0.ɵɵstyleMap(i0.ɵɵpureFunction0(6, _c0));
159
153
  i0.ɵɵproperty("options", ctx.userContactTypes);
160
154
  i0.ɵɵadvance(5);
161
- i0.ɵɵproperty("ngIf", ctx.f("userContactValue").dirty);
155
+ i0.ɵɵconditional(ctx.f("userContactValue").dirty ? 12 : -1);
162
156
  i0.ɵɵadvance(5);
163
- i0.ɵɵproperty("ngIf", ctx.f("userFullName").dirty);
164
- } }, dependencies: [MessagesModule,
165
- RouterModule, i1.RouterLink, FormsModule, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, ReactiveFormsModule, i3.FormGroupDirective, i3.FormControlName, CommonModule, i5.NgIf, CardModule, i6.Card, ButtonModule, i7.Button, DropdownModule, i8.Dropdown, Ripple,
166
- InputTextModule, i9.InputText], encapsulation: 2 });
157
+ i0.ɵɵconditional(ctx.f("userFullName").dirty ? 17 : -1);
158
+ } }, dependencies: [RouterModule, i1.RouterLink, FormsModule, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, ReactiveFormsModule, i3.FormGroupDirective, i3.FormControlName, CommonModule,
159
+ CardModule, i5.Card, ButtonModule, i6.Button, Ripple,
160
+ InputTextModule, i7.InputText, Select], encapsulation: 2 });
167
161
  }
168
162
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcuteCreateUserComponent, [{
169
163
  type: Component,
170
164
  args: [{ selector: 'ngx-acute-warden-create-user', standalone: true, imports: [
171
- MessagesModule,
172
165
  RouterModule,
173
166
  FormsModule,
174
167
  ReactiveFormsModule,
175
168
  CommonModule,
176
169
  CardModule,
177
170
  ButtonModule,
178
- DropdownModule,
179
171
  Ripple,
180
172
  InputTextModule,
181
- ], template: "<div class=\"row\">\n <p-card header=\"Create User\">\n <form [formGroup]=\"form\">\n <div style=\"display: flex; flex-direction: column\">\n <div class=\"p-inputgroup\">\n <label class=\"p-inputgroup-addon\">Contact Type</label>\n <p-dropdown\n [options]=\"userContactTypes\"\n formControlName=\"userContactType\"\n id=\"userContactType\"\n [style]=\"{ 'min-width': '50%' }\"\n ></p-dropdown>\n </div>\n <div class=\"p-inputgroup\">\n <span class=\"p-inputgroup-addon\">Contact</span>\n <input pInputText formControlName=\"userContactValue\" placeholder=\"e.g., test@test.com\" id=\"userContactValue\" />\n <ng-container *ngIf=\"f('userContactValue').dirty\">\n <span style=\"color: red\" *ngIf=\"f('userContactValue').errors?.['required']\">Contact is Required</span>\n <span style=\"color: red\" *ngIf=\"f('userContactValue').errors?.['email']\">Please enter a valid email address</span>\n </ng-container>\n </div>\n <div class=\"p-inputgroup\">\n <span class=\"p-inputgroup-addon\">Full name</span>\n <input pInputText formControlName=\"userFullName\" id=\"userFullName\" placeholder=\"e.g., Tom Smith\" />\n <ng-container *ngIf=\"f('userFullName').dirty\">\n <span style=\"color: red\" *ngIf=\"f('userFullName').errors?.['required']\">Full name is Required</span>\n <span style=\"color: red\" *ngIf=\"f('userFullName').errors?.['minlength']\">Please enter a longer name</span>\n <span style=\"color: red\" *ngIf=\"f('userFullName').errors?.['maxlength']\">Please enter a shorter name</span>\n </ng-container>\n </div>\n </div>\n <div>\n <p-button pRipple styleClass=\"p-button-raised\" (click)=\"createUser()\">Create user</p-button>\n <p-button pRipple styleClass=\"p-button-raised\" routerLink=\"/public/login\">Cancel</p-button>\n </div>\n </form>\n </p-card>\n</div>\n" }]
173
+ Select
174
+ ], template: "<div class=\"row\">\n <p-card header=\"Create User\">\n <form [formGroup]=\"form\">\n <div style=\"display: flex; flex-direction: column\">\n <div class=\"p-inputgroup\">\n <label class=\"p-inputgroup-addon\">Contact Type</label>\n <p-select\n [options]=\"userContactTypes\"\n formControlName=\"userContactType\"\n id=\"userContactType\"\n [style]=\"{ 'min-width': '50%' }\"\n ></p-select>\n </div>\n <div class=\"p-inputgroup\">\n <span class=\"p-inputgroup-addon\">Contact</span>\n <input pInputText formControlName=\"userContactValue\" placeholder=\"e.g., test@test.com\" id=\"userContactValue\" />\n @if (f('userContactValue').dirty) {\n @if (f('userContactValue').errors?.['required']) {\n <span style=\"color: red\">Contact is Required</span>\n }\n @if(f('userContactValue').errors?.['email']) {\n <span style=\"color: red\">Please enter a valid email address</span>\n }\n }\n </div>\n <div class=\"p-inputgroup\">\n <span class=\"p-inputgroup-addon\">Full name</span>\n <input pInputText formControlName=\"userFullName\" id=\"userFullName\" placeholder=\"e.g., Tom Smith\" />\n @if(f('userFullName').dirty){\n @if(f('userFullName').errors?.['required']) {\n <span style=\"color: red\" >Full name is Required</span>\n }\n @if(f('userFullName').errors?.['minlength']) {\n <span style=\"color: red\" >Please enter a longer name</span>\n }\n @if(f('userFullName').errors?.['maxlength']) {\n <span style=\"color: red\" >Please enter a shorter name</span>\n }\n }\n </div>\n </div>\n <div>\n <p-button pRipple styleClass=\"p-button-raised\" (click)=\"createUser()\">Create user</p-button>\n <p-button pRipple styleClass=\"p-button-raised\" routerLink=\"/public/login\">Cancel</p-button>\n </div>\n </form>\n </p-card>\n</div>\n" }]
182
175
  }], () => [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i2.WardenClient }, { type: i3.FormBuilder }, { type: i4.DialogService }], null); })();
183
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AcuteCreateUserComponent, { className: "AcuteCreateUserComponent", filePath: "components/acute-create-user/acute-create-user.component.ts", lineNumber: 38 }); })();
176
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AcuteCreateUserComponent, { className: "AcuteCreateUserComponent", filePath: "components/acute-create-user/acute-create-user.component.ts", lineNumber: 36 }); })();
184
177
  //# sourceMappingURL=acute-create-user.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"acute-create-user.component.js","sourceRoot":"","sources":["../../../src/components/acute-create-user/acute-create-user.component.ts","../../../src/components/acute-create-user/acute-create-user.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,EAAE,EAAE,MAAM,iCAAiC,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAmB,WAAW,EAAa,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvH,OAAO,EAAE,iBAAiB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M,EACF;YAEJ,AADF,4BAAK,oBACmE;YAAvB,wGAAS,gBAAY,IAAC;YAAC,4BAAW;YAAA,iBAAW;YAC5F,qCAA0E;YAAA,uBAAM;YAIxF,AADE,AADE,AADE,AADkF,iBAAW,EACvF,EACD,EACA,EACL;;YAnCI,eAAkB;YAAlB,oCAAkB;YAQhB,eAAgC;YAAhC,yCAAgC;YAHhC,8CAA4B;YASf,eAAiC;YAAjC,sDAAiC;YAQjC,eAA6B;YAA7B,kDAA6B;4BDClD,cAAc;YACd,YAAY,iBACZ,WAAW,0FACX,mBAAmB,6CACnB,YAAY,WACZ,UAAU,WACV,YAAY,aACZ,cAAc,eACd,MAAM;YACN,eAAe;;iFAGN,wBAAwB;cAjBpC,SAAS;2BACE,8BAA8B,cAE5B,IAAI,WACP;oBACP,cAAc;oBACd,YAAY;oBACZ,WAAW;oBACX,mBAAmB;oBACnB,YAAY;oBACZ,UAAU;oBACV,YAAY;oBACZ,cAAc;oBACd,MAAM;oBACN,eAAe;iBAChB;;kFAEU,wBAAwB"}
1
+ {"version":3,"file":"acute-create-user.component.js","sourceRoot":"","sources":["../../../src/components/acute-create-user/acute-create-user.component.ts","../../../src/components/acute-create-user/acute-create-user.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,EAAE,EAAE,MAAM,iCAAiC,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAmB,WAAW,EAAa,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iEAAiE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kF,iBAAW,EACvF,EACD,EACA,EACL;;YA7CI,eAAkB;YAAlB,oCAAkB;YAQhB,eAAgC;YAAhC,yCAAgC;YAHhC,8CAA4B;YAS9B,eAOC;YAPD,2DAOC;YAKD,eAUC;YAVD,uDAUC;4BDdP,YAAY,iBACZ,WAAW,0FACX,mBAAmB,6CACnB,YAAY;YACZ,UAAU,WACV,YAAY,aACZ,MAAM;YACN,eAAe,gBACf,MAAM;;iFAGG,wBAAwB;cAhBpC,SAAS;2BACE,8BAA8B,cAE5B,IAAI,WACP;oBACP,YAAY;oBACZ,WAAW;oBACX,mBAAmB;oBACnB,YAAY;oBACZ,UAAU;oBACV,YAAY;oBACZ,MAAM;oBACN,eAAe;oBACf,MAAM;iBACP;;kFAEU,wBAAwB"}
@@ -1,4 +1,4 @@
1
- import { AfterViewChecked } from '@angular/core';
1
+ import { OnDestroy, OnInit } from "@angular/core";
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { WardenClient } from '@bitblit/ratchet-warden-common/client/warden-client';
4
4
  import { WardenUserService } from '@bitblit/ratchet-warden-common/client/warden-user-service';
@@ -6,7 +6,7 @@ import { WardenContact } from '@bitblit/ratchet-warden-common/common/model/warde
6
6
  import { WardenRecentLoginDescriptor } from '@bitblit/ratchet-warden-common/client/provider/warden-recent-login-descriptor';
7
7
  import { DialogService } from 'primeng/dynamicdialog';
8
8
  import * as i0 from "@angular/core";
9
- export declare class AcuteLoginComponent implements AfterViewChecked {
9
+ export declare class AcuteLoginComponent implements OnDestroy, OnInit {
10
10
  private route;
11
11
  private router;
12
12
  userService: WardenUserService<any>;
@@ -15,23 +15,32 @@ export declare class AcuteLoginComponent implements AfterViewChecked {
15
15
  applicationName: string;
16
16
  helperText: string;
17
17
  postLoginUrl: string;
18
+ integerOnly: boolean;
19
+ createUserIfMissing: boolean;
20
+ caseSensitiveContactValues: boolean;
18
21
  verificationCode: string;
19
22
  waitingContact: WardenContact;
20
23
  showCodePage: boolean;
21
24
  newContactValue: string;
25
+ private checkForBackgroundLogInTimerSubscription;
22
26
  constructor(route: ActivatedRoute, router: Router, userService: WardenUserService<any>, wardenClient: WardenClient, dlgService: DialogService);
27
+ ngOnInit(): void;
28
+ ngOnDestroy(): void;
29
+ get otpInputMode(): string;
30
+ get otpInputPattern(): string;
23
31
  userById(index: number, ld: WardenRecentLoginDescriptor): string;
24
32
  contactByName(index: number, contact: WardenContact): string;
25
33
  get hasRecentLogins(): boolean;
26
34
  get recentLogins(): WardenRecentLoginDescriptor[];
27
35
  clearSavedLogins(): void;
28
- ngAfterViewChecked(): void;
29
- sendCodeToNewContact(value: string): Promise<void>;
36
+ attemptAutoLogin(contactValue: string, code: string): Promise<void>;
37
+ sendCodeToNewContact(inValue: string): Promise<void>;
30
38
  sendCodeToContact(contact: WardenContact): Promise<void>;
31
39
  submitVerificationCode(input: string, verificationCode: string): Promise<void>;
32
40
  processWebAuthnLogin(userId: string): Promise<void>;
33
41
  removeSingleLogin(userId: string): void;
34
42
  contactValueInvalidAndDirty(): boolean;
43
+ otpChanged(): Promise<void>;
35
44
  static ɵfac: i0.ɵɵFactoryDeclaration<AcuteLoginComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<AcuteLoginComponent, "ngx-acute-warden-login", never, { "applicationName": { "alias": "applicationName"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "postLoginUrl": { "alias": "postLoginUrl"; "required": false; }; }, {}, never, never, true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<AcuteLoginComponent, "ngx-acute-warden-login", never, { "applicationName": { "alias": "applicationName"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "postLoginUrl": { "alias": "postLoginUrl"; "required": false; }; "integerOnly": { "alias": "integerOnly"; "required": false; }; "createUserIfMissing": { "alias": "createUserIfMissing"; "required": false; }; "caseSensitiveContactValues": { "alias": "caseSensitiveContactValues"; "required": false; }; }, {}, never, never, true, never>;
37
46
  }