@memberjunction/ng-core-entity-forms 0.9.150 → 0.9.152

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.
@@ -12,6 +12,8 @@ import * as i1 from "@angular/common";
12
12
  import * as i2 from "@angular/forms";
13
13
  import * as i3 from "@progress/kendo-angular-inputs";
14
14
  import * as i4 from "@memberjunction/ng-link-directives";
15
+ import * as i5 from "@progress/kendo-angular-dropdowns";
16
+ const _c0 = () => ["Allow", "Deny"];
15
17
  function AuthorizationRoleDetailsComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
16
18
  const _r4 = i0.ɵɵgetCurrentView();
17
19
  i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "label", 4);
@@ -29,8 +31,8 @@ function AuthorizationRoleDetailsComponent_div_0_div_1_Template(rf, ctx) { if (r
29
31
  i0.ɵɵelementStart(9, "div", 3)(10, "label", 4);
30
32
  i0.ɵɵtext(11, "Type");
31
33
  i0.ɵɵelementEnd();
32
- i0.ɵɵelementStart(12, "kendo-textbox", 5);
33
- i0.ɵɵtwoWayListener("ngModelChange", function AuthorizationRoleDetailsComponent_div_0_div_1_Template_kendo_textbox_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r6.record.Type, $event) || (ctx_r6.record.Type = $event); return i0.ɵɵresetView($event); });
34
+ i0.ɵɵelementStart(12, "kendo-dropdownlist", 6);
35
+ i0.ɵɵtwoWayListener("ngModelChange", function AuthorizationRoleDetailsComponent_div_0_div_1_Template_kendo_dropdownlist_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r6.record.Type, $event) || (ctx_r6.record.Type = $event); return i0.ɵɵresetView($event); });
34
36
  i0.ɵɵelementEnd()();
35
37
  i0.ɵɵelementStart(13, "div", 3)(14, "label", 4);
36
38
  i0.ɵɵtext(15, "Created At");
@@ -51,6 +53,7 @@ function AuthorizationRoleDetailsComponent_div_0_div_1_Template(rf, ctx) { if (r
51
53
  i0.ɵɵadvance(4);
52
54
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.record.RoleName);
53
55
  i0.ɵɵadvance(4);
56
+ i0.ɵɵproperty("data", i0.ɵɵpureFunction0(6, _c0));
54
57
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.record.Type);
55
58
  i0.ɵɵadvance(5);
56
59
  i0.ɵɵtextInterpolate(ctx_r1.FormatValue("CreatedAt", 0));
@@ -61,13 +64,13 @@ function AuthorizationRoleDetailsComponent_div_0_div_2_Template(rf, ctx) { if (r
61
64
  i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "label", 4);
62
65
  i0.ɵɵtext(3, "Authorization Name");
63
66
  i0.ɵɵelementEnd();
64
- i0.ɵɵelementStart(4, "span", 6);
67
+ i0.ɵɵelementStart(4, "span", 7);
65
68
  i0.ɵɵtext(5);
66
69
  i0.ɵɵelementEnd()();
67
70
  i0.ɵɵelementStart(6, "div", 3)(7, "label", 4);
68
71
  i0.ɵɵtext(8, "Role Name");
69
72
  i0.ɵɵelementEnd();
70
- i0.ɵɵelementStart(9, "span", 7);
73
+ i0.ɵɵelementStart(9, "span", 8);
71
74
  i0.ɵɵtext(10);
72
75
  i0.ɵɵelementEnd()();
73
76
  i0.ɵɵelementStart(11, "div", 3)(12, "label", 4);
@@ -107,7 +110,7 @@ function AuthorizationRoleDetailsComponent_div_0_div_2_Template(rf, ctx) { if (r
107
110
  } }
108
111
  function AuthorizationRoleDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
109
112
  i0.ɵɵelementStart(0, "div");
110
- i0.ɵɵtemplate(1, AuthorizationRoleDetailsComponent_div_0_div_1_Template, 23, 5, "div", 1)(2, AuthorizationRoleDetailsComponent_div_0_div_2_Template, 26, 7, "div", 1);
113
+ i0.ɵɵtemplate(1, AuthorizationRoleDetailsComponent_div_0_div_1_Template, 23, 7, "div", 1)(2, AuthorizationRoleDetailsComponent_div_0_div_2_Template, 26, 7, "div", 1);
111
114
  i0.ɵɵelementEnd();
112
115
  } if (rf & 2) {
113
116
  const ctx_r0 = i0.ɵɵnextContext();
@@ -123,65 +126,65 @@ let AuthorizationRoleDetailsComponent = class AuthorizationRoleDetailsComponent
123
126
  }
124
127
  };
125
128
  AuthorizationRoleDetailsComponent.ɵfac = /*@__PURE__*/ (() => { let ɵAuthorizationRoleDetailsComponent_BaseFactory; return function AuthorizationRoleDetailsComponent_Factory(t) { return (ɵAuthorizationRoleDetailsComponent_BaseFactory || (ɵAuthorizationRoleDetailsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AuthorizationRoleDetailsComponent)))(t || AuthorizationRoleDetailsComponent); }; })();
126
- AuthorizationRoleDetailsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AuthorizationRoleDetailsComponent, selectors: [["gen-authorizationrole-form-details"]], inputs: { record: "record", EditMode: "EditMode" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], ["class", "record-form", 4, "ngIf"], [1, "record-form"], [1, "record-form-row"], [1, "fieldLabel"], [3, "ngModel", "ngModelChange"], ["mjFieldLink", "", "fieldName", "AuthorizationName", 3, "record"], ["mjFieldLink", "", "fieldName", "RoleName", 3, "record"]], template: function AuthorizationRoleDetailsComponent_Template(rf, ctx) { if (rf & 1) {
129
+ AuthorizationRoleDetailsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AuthorizationRoleDetailsComponent, selectors: [["gen-authorizationrole-form-details"]], inputs: { record: "record", EditMode: "EditMode" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], ["class", "record-form", 4, "ngIf"], [1, "record-form"], [1, "record-form-row"], [1, "fieldLabel"], [3, "ngModel", "ngModelChange"], [3, "data", "ngModel", "ngModelChange"], ["mjFieldLink", "", "fieldName", "AuthorizationName", 3, "record"], ["mjFieldLink", "", "fieldName", "RoleName", 3, "record"]], template: function AuthorizationRoleDetailsComponent_Template(rf, ctx) { if (rf & 1) {
127
130
  i0.ɵɵtemplate(0, AuthorizationRoleDetailsComponent_div_0_Template, 3, 2, "div", 0);
128
131
  } if (rf & 2) {
129
132
  i0.ɵɵproperty("ngIf", ctx.record);
130
- } }, dependencies: [i1.NgIf, i2.NgControlStatus, i2.NgModel, i3.TextBoxComponent, i4.FieldLink], styles: ["a[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group[_ngcontent-%COMP%] {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton[_ngcontent-%COMP%] {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter[_ngcontent-%COMP%] {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row[_ngcontent-%COMP%] {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form[_ngcontent-%COMP%] {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}"] });
133
+ } }, dependencies: [i1.NgIf, i2.NgControlStatus, i2.NgModel, i3.TextBoxComponent, i4.FieldLink, i5.DropDownListComponent], styles: ["a[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group[_ngcontent-%COMP%] {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton[_ngcontent-%COMP%] {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter[_ngcontent-%COMP%] {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row[_ngcontent-%COMP%] {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form[_ngcontent-%COMP%] {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}"] });
131
134
  AuthorizationRoleDetailsComponent = __decorate([
132
135
  RegisterClass(BaseFormSectionComponent, 'Authorization Roles.details') // Tell MemberJunction about this class
133
136
  ], AuthorizationRoleDetailsComponent);
134
137
  export { AuthorizationRoleDetailsComponent };
135
138
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthorizationRoleDetailsComponent, [{
136
139
  type: Component,
137
- args: [{ selector: 'gen-authorizationrole-form-details', template: `<div *ngIf="this.record">
138
- <div *ngIf="this.EditMode" class="record-form">
139
-
140
- <div class="record-form-row">
141
- <label class="fieldLabel">Authorization Name</label>
142
- <kendo-textbox [(ngModel)]="record.AuthorizationName" />
143
- </div>
144
- <div class="record-form-row">
145
- <label class="fieldLabel">Role Name</label>
146
- <kendo-textbox [(ngModel)]="record.RoleName" />
147
- </div>
148
- <div class="record-form-row">
149
- <label class="fieldLabel">Type</label>
150
- <kendo-textbox [(ngModel)]="record.Type" />
151
- </div>
152
- <div class="record-form-row">
153
- <label class="fieldLabel">Created At</label>
154
- <span >{{FormatValue('CreatedAt', 0)}}</span>
155
- </div>
156
- <div class="record-form-row">
157
- <label class="fieldLabel">Updated At</label>
158
- <span >{{FormatValue('UpdatedAt', 0)}}</span>
159
- </div>
160
- </div>
161
- <div *ngIf="!this.EditMode" class="record-form">
162
-
163
- <div class="record-form-row">
164
- <label class="fieldLabel">Authorization Name</label>
165
- <span mjFieldLink [record]="record" fieldName="AuthorizationName" >{{FormatValue('AuthorizationName', 0)}}</span>
166
- </div>
167
- <div class="record-form-row">
168
- <label class="fieldLabel">Role Name</label>
169
- <span mjFieldLink [record]="record" fieldName="RoleName" >{{FormatValue('RoleName', 0)}}</span>
170
- </div>
171
- <div class="record-form-row">
172
- <label class="fieldLabel">Type</label>
173
- <span >{{FormatValue('Type', 0)}}</span>
174
- </div>
175
- <div class="record-form-row">
176
- <label class="fieldLabel">Created At</label>
177
- <span >{{FormatValue('CreatedAt', 0)}}</span>
178
- </div>
179
- <div class="record-form-row">
180
- <label class="fieldLabel">Updated At</label>
181
- <span >{{FormatValue('UpdatedAt', 0)}}</span>
182
- </div>
183
- </div>
184
- </div>
140
+ args: [{ selector: 'gen-authorizationrole-form-details', template: `<div *ngIf="this.record">
141
+ <div *ngIf="this.EditMode" class="record-form">
142
+
143
+ <div class="record-form-row">
144
+ <label class="fieldLabel">Authorization Name</label>
145
+ <kendo-textbox [(ngModel)]="record.AuthorizationName" />
146
+ </div>
147
+ <div class="record-form-row">
148
+ <label class="fieldLabel">Role Name</label>
149
+ <kendo-textbox [(ngModel)]="record.RoleName" />
150
+ </div>
151
+ <div class="record-form-row">
152
+ <label class="fieldLabel">Type</label>
153
+ <kendo-dropdownlist [data]="['Allow', 'Deny']" [(ngModel)]="record.Type" ></kendo-dropdownlist>
154
+ </div>
155
+ <div class="record-form-row">
156
+ <label class="fieldLabel">Created At</label>
157
+ <span >{{FormatValue('CreatedAt', 0)}}</span>
158
+ </div>
159
+ <div class="record-form-row">
160
+ <label class="fieldLabel">Updated At</label>
161
+ <span >{{FormatValue('UpdatedAt', 0)}}</span>
162
+ </div>
163
+ </div>
164
+ <div *ngIf="!this.EditMode" class="record-form">
165
+
166
+ <div class="record-form-row">
167
+ <label class="fieldLabel">Authorization Name</label>
168
+ <span mjFieldLink [record]="record" fieldName="AuthorizationName" >{{FormatValue('AuthorizationName', 0)}}</span>
169
+ </div>
170
+ <div class="record-form-row">
171
+ <label class="fieldLabel">Role Name</label>
172
+ <span mjFieldLink [record]="record" fieldName="RoleName" >{{FormatValue('RoleName', 0)}}</span>
173
+ </div>
174
+ <div class="record-form-row">
175
+ <label class="fieldLabel">Type</label>
176
+ <span >{{FormatValue('Type', 0)}}</span>
177
+ </div>
178
+ <div class="record-form-row">
179
+ <label class="fieldLabel">Created At</label>
180
+ <span >{{FormatValue('CreatedAt', 0)}}</span>
181
+ </div>
182
+ <div class="record-form-row">
183
+ <label class="fieldLabel">Updated At</label>
184
+ <span >{{FormatValue('UpdatedAt', 0)}}</span>
185
+ </div>
186
+ </div>
187
+ </div>
185
188
  `, styles: ["a {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form h2 {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n/* .record-form .record-form-row:nth-child(odd) {\r\n background-color: #f2f2f2; \r\n} */\r\n\r\n/* \r\n.record-form .record-form-row:nth-child(even) {\r\n background-color: #ffffff; \r\n} */\r\n\r\n.record-form .record-form-row > :first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form .record-form-row > span {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row label {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}\r\n"] }]
186
189
  }], null, { record: [{
187
190
  type: Input