@abp/ng.theme.shared 7.1.1 → 7.2.0-rc.2

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 (38) hide show
  1. package/esm2020/lib/components/card/card-body.component.mjs +29 -0
  2. package/esm2020/lib/components/card/card-footer.component.mjs +30 -0
  3. package/esm2020/lib/components/card/card-header.component.mjs +30 -0
  4. package/esm2020/lib/components/card/card-header.directive.mjs +19 -0
  5. package/esm2020/lib/components/card/card-img-top.directive.mjs +19 -0
  6. package/esm2020/lib/components/card/card-subtitle.directive.mjs +19 -0
  7. package/esm2020/lib/components/card/card-title.directive.mjs +19 -0
  8. package/esm2020/lib/components/card/card.component.mjs +23 -0
  9. package/esm2020/lib/components/card/card.module.mjs +49 -0
  10. package/esm2020/lib/components/card/index.mjs +10 -0
  11. package/esm2020/lib/components/checkbox/checkbox.component.mjs +88 -0
  12. package/esm2020/lib/components/form-input/form-input.component.mjs +97 -0
  13. package/esm2020/lib/components/index.mjs +4 -1
  14. package/esm2020/lib/enums/form.mjs +6 -0
  15. package/esm2020/lib/enums/index.mjs +2 -1
  16. package/esm2020/lib/handlers/error.handler.mjs +6 -2
  17. package/esm2020/lib/theme-shared.module.mjs +30 -6
  18. package/fesm2015/abp-ng.theme.shared.mjs +416 -8
  19. package/fesm2015/abp-ng.theme.shared.mjs.map +1 -1
  20. package/fesm2020/abp-ng.theme.shared.mjs +416 -8
  21. package/fesm2020/abp-ng.theme.shared.mjs.map +1 -1
  22. package/lib/components/card/card-body.component.d.ts +8 -0
  23. package/lib/components/card/card-footer.component.d.ts +8 -0
  24. package/lib/components/card/card-header.component.d.ts +8 -0
  25. package/lib/components/card/card-header.directive.d.ts +6 -0
  26. package/lib/components/card/card-img-top.directive.d.ts +6 -0
  27. package/lib/components/card/card-subtitle.directive.d.ts +6 -0
  28. package/lib/components/card/card-title.directive.d.ts +6 -0
  29. package/lib/components/card/card.component.d.ts +7 -0
  30. package/lib/components/card/card.module.d.ts +15 -0
  31. package/lib/components/card/index.d.ts +9 -0
  32. package/lib/components/checkbox/checkbox.component.d.ts +18 -0
  33. package/lib/components/form-input/form-input.component.d.ts +20 -0
  34. package/lib/components/index.d.ts +3 -0
  35. package/lib/enums/form.d.ts +4 -0
  36. package/lib/enums/index.d.ts +1 -0
  37. package/lib/theme-shared.module.d.ts +10 -7
  38. package/package.json +3 -3
@@ -2,7 +2,7 @@ import { animation, style, animate, keyframes, trigger, state, transition, useAn
2
2
  import * as i0 from '@angular/core';
3
3
  import { Component, Input, ChangeDetectionStrategy, EventEmitter, Output, ViewChild, InjectionToken, Inject, ViewEncapsulation, Injectable, Optional, ContentChild, Directive, HostListener, forwardRef, HostBinding, NgModule, ComponentFactoryResolver, RendererFactory2, ApplicationRef, APP_INITIALIZER, inject, LOCALE_ID } from '@angular/core';
4
4
  import * as i1 from '@angular/common';
5
- import { DOCUMENT, formatDate, DatePipe } from '@angular/common';
5
+ import { CommonModule, DOCUMENT, formatDate, DatePipe } from '@angular/common';
6
6
  import * as i1$1 from '@angular/router';
7
7
  import { ResolveEnd } from '@angular/router';
8
8
  import * as i2 from '@abp/ng.core';
@@ -953,6 +953,383 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
953
953
  type: Input
954
954
  }] } });
955
955
 
956
+ class CardBodyComponent {
957
+ constructor() {
958
+ this.componentClass = 'card-body';
959
+ }
960
+ }
961
+ CardBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
962
+ CardBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CardBodyComponent, selector: "abp-card-body", inputs: { cardBodyClass: "cardBodyClass", cardBodyStyle: "cardBodyStyle" }, host: { properties: { "class": "this.componentClass" } }, ngImport: i0, template: ` <div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle">
963
+ <ng-content></ng-content>
964
+ </div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardBodyComponent, decorators: [{
966
+ type: Component,
967
+ args: [{
968
+ selector: 'abp-card-body',
969
+ template: ` <div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle">
970
+ <ng-content></ng-content>
971
+ </div>`,
972
+ }]
973
+ }], propDecorators: { componentClass: [{
974
+ type: HostBinding,
975
+ args: ['class']
976
+ }], cardBodyClass: [{
977
+ type: Input
978
+ }], cardBodyStyle: [{
979
+ type: Input
980
+ }] } });
981
+
982
+ class CardComponent {
983
+ }
984
+ CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
985
+ CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CardComponent, selector: "abp-card", inputs: { cardClass: "cardClass", cardStyle: "cardStyle" }, ngImport: i0, template: ` <div class="card" [ngClass]="cardClass" [ngStyle]="cardStyle">
986
+ <ng-content></ng-content>
987
+ </div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
988
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardComponent, decorators: [{
989
+ type: Component,
990
+ args: [{
991
+ selector: 'abp-card',
992
+ template: ` <div class="card" [ngClass]="cardClass" [ngStyle]="cardStyle">
993
+ <ng-content></ng-content>
994
+ </div>`,
995
+ }]
996
+ }], propDecorators: { cardClass: [{
997
+ type: Input
998
+ }], cardStyle: [{
999
+ type: Input
1000
+ }] } });
1001
+
1002
+ class CardHeaderComponent {
1003
+ constructor() {
1004
+ this.componentClass = 'card-header';
1005
+ }
1006
+ }
1007
+ CardHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1008
+ CardHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CardHeaderComponent, selector: "abp-card-header", inputs: { cardHeaderClass: "cardHeaderClass", cardHeaderStyle: "cardHeaderStyle" }, host: { properties: { "class": "this.componentClass" } }, ngImport: i0, template: `
1009
+ <div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
1010
+ <ng-content></ng-content>
1011
+ </div>
1012
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderComponent, decorators: [{
1014
+ type: Component,
1015
+ args: [{ selector: 'abp-card-header', template: `
1016
+ <div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
1017
+ <ng-content></ng-content>
1018
+ </div>
1019
+ ` }]
1020
+ }], propDecorators: { componentClass: [{
1021
+ type: HostBinding,
1022
+ args: ['class']
1023
+ }], cardHeaderClass: [{
1024
+ type: Input
1025
+ }], cardHeaderStyle: [{
1026
+ type: Input
1027
+ }] } });
1028
+
1029
+ class CardFooterComponent {
1030
+ constructor() {
1031
+ this.componentClass = 'card-footer';
1032
+ }
1033
+ }
1034
+ CardFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1035
+ CardFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CardFooterComponent, selector: "abp-card-footer", inputs: { cardFooterStyle: "cardFooterStyle", cardFooterClass: "cardFooterClass" }, host: { properties: { "class": "this.componentClass" } }, ngImport: i0, template: `
1036
+ <div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
1037
+ <ng-content></ng-content>
1038
+ </div>
1039
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1040
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardFooterComponent, decorators: [{
1041
+ type: Component,
1042
+ args: [{ selector: 'abp-card-footer', template: `
1043
+ <div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
1044
+ <ng-content></ng-content>
1045
+ </div>
1046
+ ` }]
1047
+ }], propDecorators: { componentClass: [{
1048
+ type: HostBinding,
1049
+ args: ['class']
1050
+ }], cardFooterStyle: [{
1051
+ type: Input
1052
+ }], cardFooterClass: [{
1053
+ type: Input
1054
+ }] } });
1055
+
1056
+ class CardTitleDirective {
1057
+ constructor() {
1058
+ this.directiveClass = 'card-title';
1059
+ }
1060
+ }
1061
+ CardTitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1062
+ CardTitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: CardTitleDirective, selector: "abp-card-title, [abp-card-title], [abpCardTitle]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 });
1063
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardTitleDirective, decorators: [{
1064
+ type: Directive,
1065
+ args: [{
1066
+ selector: `abp-card-title, [abp-card-title], [abpCardTitle]`,
1067
+ }]
1068
+ }], propDecorators: { directiveClass: [{
1069
+ type: HostBinding,
1070
+ args: ['class']
1071
+ }] } });
1072
+
1073
+ class CardSubtitleDirective {
1074
+ constructor() {
1075
+ this.directiveClass = 'card-subtitle';
1076
+ }
1077
+ }
1078
+ CardSubtitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1079
+ CardSubtitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: CardSubtitleDirective, selector: "abp-card-subtitle, [abp-card-subtitle], [abpCardSubtitle]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 });
1080
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardSubtitleDirective, decorators: [{
1081
+ type: Directive,
1082
+ args: [{
1083
+ selector: `abp-card-subtitle, [abp-card-subtitle], [abpCardSubtitle]`,
1084
+ }]
1085
+ }], propDecorators: { directiveClass: [{
1086
+ type: HostBinding,
1087
+ args: ['class']
1088
+ }] } });
1089
+
1090
+ class CardImgTopDirective {
1091
+ constructor() {
1092
+ this.directiveClass = 'card-img-top';
1093
+ }
1094
+ }
1095
+ CardImgTopDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardImgTopDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1096
+ CardImgTopDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: CardImgTopDirective, selector: "abp-card-img-top, [abp-card-img-top], [abpCardImgTop]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 });
1097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardImgTopDirective, decorators: [{
1098
+ type: Directive,
1099
+ args: [{
1100
+ selector: `abp-card-img-top, [abp-card-img-top], [abpCardImgTop]`,
1101
+ }]
1102
+ }], propDecorators: { directiveClass: [{
1103
+ type: HostBinding,
1104
+ args: ['class']
1105
+ }] } });
1106
+
1107
+ class CardHeaderDirective {
1108
+ constructor() {
1109
+ this.directiveClass = 'card-header';
1110
+ }
1111
+ }
1112
+ CardHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1113
+ CardHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: CardHeaderDirective, selector: "abp-card-header, [abp-card-header], [abpCardHeader]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 });
1114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderDirective, decorators: [{
1115
+ type: Directive,
1116
+ args: [{
1117
+ selector: `abp-card-header, [abp-card-header], [abpCardHeader]`,
1118
+ }]
1119
+ }], propDecorators: { directiveClass: [{
1120
+ type: HostBinding,
1121
+ args: ['class']
1122
+ }] } });
1123
+
1124
+ const declarationsWithExports$1 = [
1125
+ CardComponent,
1126
+ CardBodyComponent,
1127
+ CardHeaderComponent,
1128
+ CardFooterComponent,
1129
+ CardTitleDirective,
1130
+ CardSubtitleDirective,
1131
+ CardImgTopDirective,
1132
+ CardHeaderDirective,
1133
+ ];
1134
+ class CardModule {
1135
+ }
1136
+ CardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1137
+ CardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: CardModule, declarations: [CardComponent,
1138
+ CardBodyComponent,
1139
+ CardHeaderComponent,
1140
+ CardFooterComponent,
1141
+ CardTitleDirective,
1142
+ CardSubtitleDirective,
1143
+ CardImgTopDirective,
1144
+ CardHeaderDirective], imports: [CommonModule], exports: [CardComponent,
1145
+ CardBodyComponent,
1146
+ CardHeaderComponent,
1147
+ CardFooterComponent,
1148
+ CardTitleDirective,
1149
+ CardSubtitleDirective,
1150
+ CardImgTopDirective,
1151
+ CardHeaderDirective] });
1152
+ CardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardModule, imports: [CommonModule] });
1153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardModule, decorators: [{
1154
+ type: NgModule,
1155
+ args: [{
1156
+ declarations: [...declarationsWithExports$1],
1157
+ imports: [CommonModule],
1158
+ exports: [...declarationsWithExports$1],
1159
+ }]
1160
+ }] });
1161
+
1162
+ class FormCheckboxComponent extends AbstractNgModelComponent {
1163
+ constructor(injector) {
1164
+ super(injector);
1165
+ this.labelClass = 'form-check-label';
1166
+ this.checkboxClass = 'form-check-input';
1167
+ this.checkboxReadonly = false;
1168
+ this.checkboxBlur = new EventEmitter();
1169
+ this.checkboxFocus = new EventEmitter();
1170
+ }
1171
+ }
1172
+ FormCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormCheckboxComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1173
+ FormCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormCheckboxComponent, selector: "abp-checkbox", inputs: { label: "label", labelClass: "labelClass", checkboxId: "checkboxId", checkboxStyle: "checkboxStyle", checkboxClass: "checkboxClass", checkboxReadonly: "checkboxReadonly" }, outputs: { checkboxBlur: "checkboxBlur", checkboxFocus: "checkboxFocus" }, providers: [
1174
+ {
1175
+ provide: NG_VALUE_ACCESSOR,
1176
+ useExisting: forwardRef(() => FormCheckboxComponent),
1177
+ multi: true,
1178
+ },
1179
+ ], usesInheritance: true, ngImport: i0, template: `
1180
+ <div class="mb-3">
1181
+ <input
1182
+ type="checkbox"
1183
+ [(ngModel)]="value"
1184
+ [id]="checkboxId"
1185
+ [readonly]="checkboxReadonly"
1186
+ [ngClass]="checkboxClass"
1187
+ [ngStyle]="checkboxStyle"
1188
+ (blur)="checkboxBlur.next()"
1189
+ (focus)="checkboxFocus.next()"
1190
+ />
1191
+ <label *ngIf="label" [ngClass]="labelClass" [for]="checkboxId">
1192
+ {{ label | abpLocalization }}
1193
+ </label>
1194
+ </div>
1195
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] });
1196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormCheckboxComponent, decorators: [{
1197
+ type: Component,
1198
+ args: [{
1199
+ selector: 'abp-checkbox',
1200
+ template: `
1201
+ <div class="mb-3">
1202
+ <input
1203
+ type="checkbox"
1204
+ [(ngModel)]="value"
1205
+ [id]="checkboxId"
1206
+ [readonly]="checkboxReadonly"
1207
+ [ngClass]="checkboxClass"
1208
+ [ngStyle]="checkboxStyle"
1209
+ (blur)="checkboxBlur.next()"
1210
+ (focus)="checkboxFocus.next()"
1211
+ />
1212
+ <label *ngIf="label" [ngClass]="labelClass" [for]="checkboxId">
1213
+ {{ label | abpLocalization }}
1214
+ </label>
1215
+ </div>
1216
+ `,
1217
+ providers: [
1218
+ {
1219
+ provide: NG_VALUE_ACCESSOR,
1220
+ useExisting: forwardRef(() => FormCheckboxComponent),
1221
+ multi: true,
1222
+ },
1223
+ ],
1224
+ }]
1225
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { label: [{
1226
+ type: Input
1227
+ }], labelClass: [{
1228
+ type: Input
1229
+ }], checkboxId: [{
1230
+ type: Input
1231
+ }], checkboxStyle: [{
1232
+ type: Input
1233
+ }], checkboxClass: [{
1234
+ type: Input
1235
+ }], checkboxReadonly: [{
1236
+ type: Input
1237
+ }], checkboxBlur: [{
1238
+ type: Output
1239
+ }], checkboxFocus: [{
1240
+ type: Output
1241
+ }] } });
1242
+
1243
+ class FormInputComponent extends AbstractNgModelComponent {
1244
+ constructor(injector) {
1245
+ super(injector);
1246
+ this.inputReadonly = false;
1247
+ this.label = '';
1248
+ this.labelClass = 'form-label';
1249
+ this.inputPlaceholder = '';
1250
+ this.inputType = 'text';
1251
+ this.inputClass = 'form-control';
1252
+ this.formBlur = new EventEmitter();
1253
+ this.formFocus = new EventEmitter();
1254
+ }
1255
+ }
1256
+ FormInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormInputComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1257
+ FormInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormInputComponent, selector: "abp-form-input", inputs: { inputId: "inputId", inputReadonly: "inputReadonly", label: "label", labelClass: "labelClass", inputPlaceholder: "inputPlaceholder", inputType: "inputType", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { formBlur: "formBlur", formFocus: "formFocus" }, providers: [
1258
+ {
1259
+ provide: NG_VALUE_ACCESSOR,
1260
+ useExisting: forwardRef(() => FormInputComponent),
1261
+ multi: true,
1262
+ },
1263
+ ], usesInheritance: true, ngImport: i0, template: `
1264
+ <div class="mb-3">
1265
+ <label *ngIf="label" [ngClass]="labelClass" [for]="inputId">
1266
+ {{ label | abpLocalization }}
1267
+ </label>
1268
+ <input
1269
+ type="text"
1270
+ [id]="inputId"
1271
+ [placeholder]="inputPlaceholder"
1272
+ [readonly]="inputReadonly"
1273
+ [ngClass]="inputClass"
1274
+ [ngStyle]="inputStyle"
1275
+ (blur)="formBlur.next()"
1276
+ (focus)="formFocus.next()"
1277
+ [(ngModel)]="value"
1278
+ />
1279
+ </div>
1280
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] });
1281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormInputComponent, decorators: [{
1282
+ type: Component,
1283
+ args: [{
1284
+ selector: 'abp-form-input',
1285
+ template: `
1286
+ <div class="mb-3">
1287
+ <label *ngIf="label" [ngClass]="labelClass" [for]="inputId">
1288
+ {{ label | abpLocalization }}
1289
+ </label>
1290
+ <input
1291
+ type="text"
1292
+ [id]="inputId"
1293
+ [placeholder]="inputPlaceholder"
1294
+ [readonly]="inputReadonly"
1295
+ [ngClass]="inputClass"
1296
+ [ngStyle]="inputStyle"
1297
+ (blur)="formBlur.next()"
1298
+ (focus)="formFocus.next()"
1299
+ [(ngModel)]="value"
1300
+ />
1301
+ </div>
1302
+ `,
1303
+ providers: [
1304
+ {
1305
+ provide: NG_VALUE_ACCESSOR,
1306
+ useExisting: forwardRef(() => FormInputComponent),
1307
+ multi: true,
1308
+ },
1309
+ ],
1310
+ }]
1311
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { inputId: [{
1312
+ type: Input
1313
+ }], inputReadonly: [{
1314
+ type: Input
1315
+ }], label: [{
1316
+ type: Input
1317
+ }], labelClass: [{
1318
+ type: Input
1319
+ }], inputPlaceholder: [{
1320
+ type: Input
1321
+ }], inputType: [{
1322
+ type: Input
1323
+ }], inputStyle: [{
1324
+ type: Input
1325
+ }], inputClass: [{
1326
+ type: Input
1327
+ }], formBlur: [{
1328
+ type: Output
1329
+ }], formFocus: [{
1330
+ type: Output
1331
+ }] } });
1332
+
956
1333
  const DEFAULT_VALIDATION_BLUEPRINTS = {
957
1334
  creditCard: 'AbpValidation::ThisFieldIsNotAValidCreditCardNumber.',
958
1335
  email: 'AbpValidation::ThisFieldIsNotAValidEmailAddress.',
@@ -1338,6 +1715,12 @@ function checkType(value) {
1338
1715
  }
1339
1716
  }
1340
1717
 
1718
+ var eFormComponets;
1719
+ (function (eFormComponets) {
1720
+ eFormComponets["FormInputComponent"] = "FormInputComponent";
1721
+ eFormComponets["FormCheckboxComponent"] = "FormCheckboxComponent";
1722
+ })(eFormComponets || (eFormComponets = {}));
1723
+
1341
1724
  class DocumentDirHandlerService {
1342
1725
  constructor(injector) {
1343
1726
  this.injector = injector;
@@ -1488,6 +1871,9 @@ class ErrorHandler {
1488
1871
  });
1489
1872
  }
1490
1873
  }
1874
+ if (err instanceof HttpErrorResponse && err.headers.get('Abp-Tenant-Resolve-Error')) {
1875
+ this.authService.logout().subscribe();
1876
+ }
1491
1877
  else {
1492
1878
  switch (err.status) {
1493
1879
  case 401:
@@ -1514,7 +1900,7 @@ class ErrorHandler {
1514
1900
  status: 403,
1515
1901
  });
1516
1902
  break;
1517
- case 404:
1903
+ case 404: {
1518
1904
  this.canCreateCustomError(404)
1519
1905
  ? this.show404Page()
1520
1906
  : this.showError({
@@ -1525,6 +1911,7 @@ class ErrorHandler {
1525
1911
  defaultValue: DEFAULT_ERROR_MESSAGES.defaultError404.title,
1526
1912
  });
1527
1913
  break;
1914
+ }
1528
1915
  case 500:
1529
1916
  this.createErrorComponent({
1530
1917
  title: {
@@ -2154,6 +2541,8 @@ const declarationsWithExports = [
2154
2541
  LoadingDirective,
2155
2542
  ModalCloseDirective,
2156
2543
  AbpVisibleDirective,
2544
+ FormInputComponent,
2545
+ FormCheckboxComponent
2157
2546
  ];
2158
2547
  class BaseThemeSharedModule {
2159
2548
  }
@@ -2172,11 +2561,17 @@ BaseThemeSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
2172
2561
  NgxDatatableListDirective,
2173
2562
  LoadingDirective,
2174
2563
  ModalCloseDirective,
2175
- AbpVisibleDirective, HttpErrorWrapperComponent], imports: [CoreModule,
2564
+ AbpVisibleDirective,
2565
+ FormInputComponent,
2566
+ FormCheckboxComponent, HttpErrorWrapperComponent], imports: [CoreModule,
2176
2567
  NgxDatatableModule,
2177
2568
  NgxValidateCoreModule,
2178
2569
  NgbPaginationModule,
2179
- EllipsisModule], exports: [NgxDatatableModule, EllipsisModule, NgxValidateCoreModule, BreadcrumbComponent,
2570
+ EllipsisModule,
2571
+ CardModule], exports: [NgxDatatableModule,
2572
+ EllipsisModule,
2573
+ NgxValidateCoreModule,
2574
+ CardModule, BreadcrumbComponent,
2180
2575
  BreadcrumbItemsComponent,
2181
2576
  ButtonComponent,
2182
2577
  ConfirmationComponent,
@@ -2190,12 +2585,18 @@ BaseThemeSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
2190
2585
  NgxDatatableListDirective,
2191
2586
  LoadingDirective,
2192
2587
  ModalCloseDirective,
2193
- AbpVisibleDirective] });
2588
+ AbpVisibleDirective,
2589
+ FormInputComponent,
2590
+ FormCheckboxComponent] });
2194
2591
  BaseThemeSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeSharedModule, providers: [DatePipe], imports: [CoreModule,
2195
2592
  NgxDatatableModule,
2196
2593
  NgxValidateCoreModule,
2197
2594
  NgbPaginationModule,
2198
- EllipsisModule, NgxDatatableModule, EllipsisModule, NgxValidateCoreModule] });
2595
+ EllipsisModule,
2596
+ CardModule, NgxDatatableModule,
2597
+ EllipsisModule,
2598
+ NgxValidateCoreModule,
2599
+ CardModule] });
2199
2600
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeSharedModule, decorators: [{
2200
2601
  type: NgModule,
2201
2602
  args: [{
@@ -2205,9 +2606,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
2205
2606
  NgxValidateCoreModule,
2206
2607
  NgbPaginationModule,
2207
2608
  EllipsisModule,
2609
+ CardModule,
2208
2610
  ],
2209
2611
  declarations: [...declarationsWithExports, HttpErrorWrapperComponent],
2210
- exports: [NgxDatatableModule, EllipsisModule, NgxValidateCoreModule, ...declarationsWithExports],
2612
+ exports: [
2613
+ NgxDatatableModule,
2614
+ EllipsisModule,
2615
+ NgxValidateCoreModule,
2616
+ CardModule,
2617
+ ...declarationsWithExports
2618
+ ],
2211
2619
  providers: [DatePipe],
2212
2620
  }]
2213
2621
  }] });
@@ -2348,5 +2756,5 @@ function validatePassword(shouldContain) {
2348
2756
  * Generated bundle index. Do not edit.
2349
2757
  */
2350
2758
 
2351
- export { AbpVisibleDirective, BaseThemeSharedModule, BreadcrumbComponent, BreadcrumbItemsComponent, ButtonComponent, Confirmation, ConfirmationComponent, ConfirmationService, DEFAULT_ERROR_LOCALIZATIONS, DEFAULT_ERROR_MESSAGES, DEFAULT_VALIDATION_BLUEPRINTS, DateParserFormatter, DocumentDirHandlerService, EllipsisDirective, EllipsisModule, ErrorHandler, HTTP_ERROR_CONFIG, HTTP_ERROR_HANDLER, HttpErrorWrapperComponent, LoaderBarComponent, LoadingComponent, LoadingDirective, ModalCloseDirective, ModalComponent, ModalRefService, NGX_DATATABLE_MESSAGES, NG_BOOTSTRAP_CONFIG_PROVIDERS, NavItem, NavItemsService, NgxDatatableDefaultDirective, NgxDatatableListDirective, PageAlertService, PasswordComponent, SUPPRESS_UNSAVED_CHANGES_WARNING, THEME_SHARED_APPEND_CONTENT, THEME_SHARED_ROUTE_PROVIDERS, ThemeSharedModule, ToastComponent, ToastContainerComponent, ToasterService, UserMenu, UserMenuService, bounceIn, collapse, collapseLinearWithMargin, collapseWithMargin, collapseX, collapseY, collapseYWithMargin, configureNgBootstrap, configureRoutes, defaultNgxDatatableMessages, dialogAnimation, expandX, expandY, expandYWithMargin, fadeAnimation, fadeIn, fadeInDown, fadeInLeft, fadeInRight, fadeInUp, fadeOut, fadeOutDown, fadeOutLeft, fadeOutRight, fadeOutUp, getPasswordValidators, httpErrorConfigFactory, slideFromBottom, toastInOut, validatePassword };
2759
+ export { AbpVisibleDirective, BaseThemeSharedModule, BreadcrumbComponent, BreadcrumbItemsComponent, ButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CardHeaderDirective, CardImgTopDirective, CardModule, CardSubtitleDirective, CardTitleDirective, Confirmation, ConfirmationComponent, ConfirmationService, DEFAULT_ERROR_LOCALIZATIONS, DEFAULT_ERROR_MESSAGES, DEFAULT_VALIDATION_BLUEPRINTS, DateParserFormatter, DocumentDirHandlerService, EllipsisDirective, EllipsisModule, ErrorHandler, FormCheckboxComponent, FormInputComponent, HTTP_ERROR_CONFIG, HTTP_ERROR_HANDLER, HttpErrorWrapperComponent, LoaderBarComponent, LoadingComponent, LoadingDirective, ModalCloseDirective, ModalComponent, ModalRefService, NGX_DATATABLE_MESSAGES, NG_BOOTSTRAP_CONFIG_PROVIDERS, NavItem, NavItemsService, NgxDatatableDefaultDirective, NgxDatatableListDirective, PageAlertService, PasswordComponent, SUPPRESS_UNSAVED_CHANGES_WARNING, THEME_SHARED_APPEND_CONTENT, THEME_SHARED_ROUTE_PROVIDERS, ThemeSharedModule, ToastComponent, ToastContainerComponent, ToasterService, UserMenu, UserMenuService, bounceIn, collapse, collapseLinearWithMargin, collapseWithMargin, collapseX, collapseY, collapseYWithMargin, configureNgBootstrap, configureRoutes, defaultNgxDatatableMessages, dialogAnimation, eFormComponets, expandX, expandY, expandYWithMargin, fadeAnimation, fadeIn, fadeInDown, fadeInLeft, fadeInRight, fadeInUp, fadeOut, fadeOutDown, fadeOutLeft, fadeOutRight, fadeOutUp, getPasswordValidators, httpErrorConfigFactory, slideFromBottom, toastInOut, validatePassword };
2352
2760
  //# sourceMappingURL=abp-ng.theme.shared.mjs.map