@abp/ng.theme.shared 7.1.0 → 7.2.0-rc.1

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';
@@ -960,6 +960,383 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
960
960
  type: Input
961
961
  }] } });
962
962
 
963
+ class CardBodyComponent {
964
+ constructor() {
965
+ this.componentClass = 'card-body';
966
+ }
967
+ }
968
+ CardBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
969
+ 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">
970
+ <ng-content></ng-content>
971
+ </div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardBodyComponent, decorators: [{
973
+ type: Component,
974
+ args: [{
975
+ selector: 'abp-card-body',
976
+ template: ` <div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle">
977
+ <ng-content></ng-content>
978
+ </div>`,
979
+ }]
980
+ }], propDecorators: { componentClass: [{
981
+ type: HostBinding,
982
+ args: ['class']
983
+ }], cardBodyClass: [{
984
+ type: Input
985
+ }], cardBodyStyle: [{
986
+ type: Input
987
+ }] } });
988
+
989
+ class CardComponent {
990
+ }
991
+ CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
992
+ 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">
993
+ <ng-content></ng-content>
994
+ </div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
995
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardComponent, decorators: [{
996
+ type: Component,
997
+ args: [{
998
+ selector: 'abp-card',
999
+ template: ` <div class="card" [ngClass]="cardClass" [ngStyle]="cardStyle">
1000
+ <ng-content></ng-content>
1001
+ </div>`,
1002
+ }]
1003
+ }], propDecorators: { cardClass: [{
1004
+ type: Input
1005
+ }], cardStyle: [{
1006
+ type: Input
1007
+ }] } });
1008
+
1009
+ class CardHeaderComponent {
1010
+ constructor() {
1011
+ this.componentClass = 'card-header';
1012
+ }
1013
+ }
1014
+ CardHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1015
+ 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: `
1016
+ <div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
1017
+ <ng-content></ng-content>
1018
+ </div>
1019
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1020
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderComponent, decorators: [{
1021
+ type: Component,
1022
+ args: [{ selector: 'abp-card-header', template: `
1023
+ <div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
1024
+ <ng-content></ng-content>
1025
+ </div>
1026
+ ` }]
1027
+ }], propDecorators: { componentClass: [{
1028
+ type: HostBinding,
1029
+ args: ['class']
1030
+ }], cardHeaderClass: [{
1031
+ type: Input
1032
+ }], cardHeaderStyle: [{
1033
+ type: Input
1034
+ }] } });
1035
+
1036
+ class CardFooterComponent {
1037
+ constructor() {
1038
+ this.componentClass = 'card-footer';
1039
+ }
1040
+ }
1041
+ CardFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1042
+ 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: `
1043
+ <div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
1044
+ <ng-content></ng-content>
1045
+ </div>
1046
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1047
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardFooterComponent, decorators: [{
1048
+ type: Component,
1049
+ args: [{ selector: 'abp-card-footer', template: `
1050
+ <div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
1051
+ <ng-content></ng-content>
1052
+ </div>
1053
+ ` }]
1054
+ }], propDecorators: { componentClass: [{
1055
+ type: HostBinding,
1056
+ args: ['class']
1057
+ }], cardFooterStyle: [{
1058
+ type: Input
1059
+ }], cardFooterClass: [{
1060
+ type: Input
1061
+ }] } });
1062
+
1063
+ class CardTitleDirective {
1064
+ constructor() {
1065
+ this.directiveClass = 'card-title';
1066
+ }
1067
+ }
1068
+ CardTitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1069
+ 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 });
1070
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardTitleDirective, decorators: [{
1071
+ type: Directive,
1072
+ args: [{
1073
+ selector: `abp-card-title, [abp-card-title], [abpCardTitle]`,
1074
+ }]
1075
+ }], propDecorators: { directiveClass: [{
1076
+ type: HostBinding,
1077
+ args: ['class']
1078
+ }] } });
1079
+
1080
+ class CardSubtitleDirective {
1081
+ constructor() {
1082
+ this.directiveClass = 'card-subtitle';
1083
+ }
1084
+ }
1085
+ CardSubtitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1086
+ 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 });
1087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardSubtitleDirective, decorators: [{
1088
+ type: Directive,
1089
+ args: [{
1090
+ selector: `abp-card-subtitle, [abp-card-subtitle], [abpCardSubtitle]`,
1091
+ }]
1092
+ }], propDecorators: { directiveClass: [{
1093
+ type: HostBinding,
1094
+ args: ['class']
1095
+ }] } });
1096
+
1097
+ class CardImgTopDirective {
1098
+ constructor() {
1099
+ this.directiveClass = 'card-img-top';
1100
+ }
1101
+ }
1102
+ CardImgTopDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardImgTopDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1103
+ 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 });
1104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardImgTopDirective, decorators: [{
1105
+ type: Directive,
1106
+ args: [{
1107
+ selector: `abp-card-img-top, [abp-card-img-top], [abpCardImgTop]`,
1108
+ }]
1109
+ }], propDecorators: { directiveClass: [{
1110
+ type: HostBinding,
1111
+ args: ['class']
1112
+ }] } });
1113
+
1114
+ class CardHeaderDirective {
1115
+ constructor() {
1116
+ this.directiveClass = 'card-header';
1117
+ }
1118
+ }
1119
+ CardHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1120
+ 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 });
1121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardHeaderDirective, decorators: [{
1122
+ type: Directive,
1123
+ args: [{
1124
+ selector: `abp-card-header, [abp-card-header], [abpCardHeader]`,
1125
+ }]
1126
+ }], propDecorators: { directiveClass: [{
1127
+ type: HostBinding,
1128
+ args: ['class']
1129
+ }] } });
1130
+
1131
+ const declarationsWithExports$1 = [
1132
+ CardComponent,
1133
+ CardBodyComponent,
1134
+ CardHeaderComponent,
1135
+ CardFooterComponent,
1136
+ CardTitleDirective,
1137
+ CardSubtitleDirective,
1138
+ CardImgTopDirective,
1139
+ CardHeaderDirective,
1140
+ ];
1141
+ class CardModule {
1142
+ }
1143
+ CardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1144
+ CardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: CardModule, declarations: [CardComponent,
1145
+ CardBodyComponent,
1146
+ CardHeaderComponent,
1147
+ CardFooterComponent,
1148
+ CardTitleDirective,
1149
+ CardSubtitleDirective,
1150
+ CardImgTopDirective,
1151
+ CardHeaderDirective], imports: [CommonModule], exports: [CardComponent,
1152
+ CardBodyComponent,
1153
+ CardHeaderComponent,
1154
+ CardFooterComponent,
1155
+ CardTitleDirective,
1156
+ CardSubtitleDirective,
1157
+ CardImgTopDirective,
1158
+ CardHeaderDirective] });
1159
+ CardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardModule, imports: [CommonModule] });
1160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CardModule, decorators: [{
1161
+ type: NgModule,
1162
+ args: [{
1163
+ declarations: [...declarationsWithExports$1],
1164
+ imports: [CommonModule],
1165
+ exports: [...declarationsWithExports$1],
1166
+ }]
1167
+ }] });
1168
+
1169
+ class FormCheckboxComponent extends AbstractNgModelComponent {
1170
+ constructor(injector) {
1171
+ super(injector);
1172
+ this.labelClass = 'form-check-label';
1173
+ this.checkboxClass = 'form-check-input';
1174
+ this.checkboxReadonly = false;
1175
+ this.checkboxBlur = new EventEmitter();
1176
+ this.checkboxFocus = new EventEmitter();
1177
+ }
1178
+ }
1179
+ FormCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormCheckboxComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1180
+ 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: [
1181
+ {
1182
+ provide: NG_VALUE_ACCESSOR,
1183
+ useExisting: forwardRef(() => FormCheckboxComponent),
1184
+ multi: true,
1185
+ },
1186
+ ], usesInheritance: true, ngImport: i0, template: `
1187
+ <div class="mb-3">
1188
+ <input
1189
+ type="checkbox"
1190
+ [(ngModel)]="value"
1191
+ [id]="checkboxId"
1192
+ [readonly]="checkboxReadonly"
1193
+ [ngClass]="checkboxClass"
1194
+ [ngStyle]="checkboxStyle"
1195
+ (blur)="checkboxBlur.next()"
1196
+ (focus)="checkboxFocus.next()"
1197
+ />
1198
+ <label *ngIf="label" [ngClass]="labelClass" [for]="checkboxId">
1199
+ {{ label | abpLocalization }}
1200
+ </label>
1201
+ </div>
1202
+ `, 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" }] });
1203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormCheckboxComponent, decorators: [{
1204
+ type: Component,
1205
+ args: [{
1206
+ selector: 'abp-checkbox',
1207
+ template: `
1208
+ <div class="mb-3">
1209
+ <input
1210
+ type="checkbox"
1211
+ [(ngModel)]="value"
1212
+ [id]="checkboxId"
1213
+ [readonly]="checkboxReadonly"
1214
+ [ngClass]="checkboxClass"
1215
+ [ngStyle]="checkboxStyle"
1216
+ (blur)="checkboxBlur.next()"
1217
+ (focus)="checkboxFocus.next()"
1218
+ />
1219
+ <label *ngIf="label" [ngClass]="labelClass" [for]="checkboxId">
1220
+ {{ label | abpLocalization }}
1221
+ </label>
1222
+ </div>
1223
+ `,
1224
+ providers: [
1225
+ {
1226
+ provide: NG_VALUE_ACCESSOR,
1227
+ useExisting: forwardRef(() => FormCheckboxComponent),
1228
+ multi: true,
1229
+ },
1230
+ ],
1231
+ }]
1232
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { label: [{
1233
+ type: Input
1234
+ }], labelClass: [{
1235
+ type: Input
1236
+ }], checkboxId: [{
1237
+ type: Input
1238
+ }], checkboxStyle: [{
1239
+ type: Input
1240
+ }], checkboxClass: [{
1241
+ type: Input
1242
+ }], checkboxReadonly: [{
1243
+ type: Input
1244
+ }], checkboxBlur: [{
1245
+ type: Output
1246
+ }], checkboxFocus: [{
1247
+ type: Output
1248
+ }] } });
1249
+
1250
+ class FormInputComponent extends AbstractNgModelComponent {
1251
+ constructor(injector) {
1252
+ super(injector);
1253
+ this.inputReadonly = false;
1254
+ this.label = '';
1255
+ this.labelClass = 'form-label';
1256
+ this.inputPlaceholder = '';
1257
+ this.inputType = 'text';
1258
+ this.inputClass = 'form-control';
1259
+ this.formBlur = new EventEmitter();
1260
+ this.formFocus = new EventEmitter();
1261
+ }
1262
+ }
1263
+ FormInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormInputComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1264
+ 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: [
1265
+ {
1266
+ provide: NG_VALUE_ACCESSOR,
1267
+ useExisting: forwardRef(() => FormInputComponent),
1268
+ multi: true,
1269
+ },
1270
+ ], usesInheritance: true, ngImport: i0, template: `
1271
+ <div class="mb-3">
1272
+ <label *ngIf="label" [ngClass]="labelClass" [for]="inputId">
1273
+ {{ label | abpLocalization }}
1274
+ </label>
1275
+ <input
1276
+ type="text"
1277
+ [id]="inputId"
1278
+ [placeholder]="inputPlaceholder"
1279
+ [readonly]="inputReadonly"
1280
+ [ngClass]="inputClass"
1281
+ [ngStyle]="inputStyle"
1282
+ (blur)="formBlur.next()"
1283
+ (focus)="formFocus.next()"
1284
+ [(ngModel)]="value"
1285
+ />
1286
+ </div>
1287
+ `, 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" }] });
1288
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormInputComponent, decorators: [{
1289
+ type: Component,
1290
+ args: [{
1291
+ selector: 'abp-form-input',
1292
+ template: `
1293
+ <div class="mb-3">
1294
+ <label *ngIf="label" [ngClass]="labelClass" [for]="inputId">
1295
+ {{ label | abpLocalization }}
1296
+ </label>
1297
+ <input
1298
+ type="text"
1299
+ [id]="inputId"
1300
+ [placeholder]="inputPlaceholder"
1301
+ [readonly]="inputReadonly"
1302
+ [ngClass]="inputClass"
1303
+ [ngStyle]="inputStyle"
1304
+ (blur)="formBlur.next()"
1305
+ (focus)="formFocus.next()"
1306
+ [(ngModel)]="value"
1307
+ />
1308
+ </div>
1309
+ `,
1310
+ providers: [
1311
+ {
1312
+ provide: NG_VALUE_ACCESSOR,
1313
+ useExisting: forwardRef(() => FormInputComponent),
1314
+ multi: true,
1315
+ },
1316
+ ],
1317
+ }]
1318
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { inputId: [{
1319
+ type: Input
1320
+ }], inputReadonly: [{
1321
+ type: Input
1322
+ }], label: [{
1323
+ type: Input
1324
+ }], labelClass: [{
1325
+ type: Input
1326
+ }], inputPlaceholder: [{
1327
+ type: Input
1328
+ }], inputType: [{
1329
+ type: Input
1330
+ }], inputStyle: [{
1331
+ type: Input
1332
+ }], inputClass: [{
1333
+ type: Input
1334
+ }], formBlur: [{
1335
+ type: Output
1336
+ }], formFocus: [{
1337
+ type: Output
1338
+ }] } });
1339
+
963
1340
  const DEFAULT_VALIDATION_BLUEPRINTS = {
964
1341
  creditCard: 'AbpValidation::ThisFieldIsNotAValidCreditCardNumber.',
965
1342
  email: 'AbpValidation::ThisFieldIsNotAValidEmailAddress.',
@@ -1351,6 +1728,12 @@ function checkType(value) {
1351
1728
  }
1352
1729
  }
1353
1730
 
1731
+ var eFormComponets;
1732
+ (function (eFormComponets) {
1733
+ eFormComponets["FormInputComponent"] = "FormInputComponent";
1734
+ eFormComponets["FormCheckboxComponent"] = "FormCheckboxComponent";
1735
+ })(eFormComponets || (eFormComponets = {}));
1736
+
1354
1737
  class DocumentDirHandlerService {
1355
1738
  constructor(injector) {
1356
1739
  this.injector = injector;
@@ -1500,6 +1883,9 @@ class ErrorHandler {
1500
1883
  });
1501
1884
  }
1502
1885
  }
1886
+ if (err instanceof HttpErrorResponse && err.headers.get('Abp-Tenant-Resolve-Error')) {
1887
+ this.authService.logout().subscribe();
1888
+ }
1503
1889
  else {
1504
1890
  switch (err.status) {
1505
1891
  case 401:
@@ -1526,7 +1912,7 @@ class ErrorHandler {
1526
1912
  status: 403,
1527
1913
  });
1528
1914
  break;
1529
- case 404:
1915
+ case 404: {
1530
1916
  this.canCreateCustomError(404)
1531
1917
  ? this.show404Page()
1532
1918
  : this.showError({
@@ -1537,6 +1923,7 @@ class ErrorHandler {
1537
1923
  defaultValue: DEFAULT_ERROR_MESSAGES.defaultError404.title,
1538
1924
  });
1539
1925
  break;
1926
+ }
1540
1927
  case 500:
1541
1928
  this.createErrorComponent({
1542
1929
  title: {
@@ -2170,6 +2557,8 @@ const declarationsWithExports = [
2170
2557
  LoadingDirective,
2171
2558
  ModalCloseDirective,
2172
2559
  AbpVisibleDirective,
2560
+ FormInputComponent,
2561
+ FormCheckboxComponent
2173
2562
  ];
2174
2563
  class BaseThemeSharedModule {
2175
2564
  }
@@ -2188,11 +2577,17 @@ BaseThemeSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
2188
2577
  NgxDatatableListDirective,
2189
2578
  LoadingDirective,
2190
2579
  ModalCloseDirective,
2191
- AbpVisibleDirective, HttpErrorWrapperComponent], imports: [CoreModule,
2580
+ AbpVisibleDirective,
2581
+ FormInputComponent,
2582
+ FormCheckboxComponent, HttpErrorWrapperComponent], imports: [CoreModule,
2192
2583
  NgxDatatableModule,
2193
2584
  NgxValidateCoreModule,
2194
2585
  NgbPaginationModule,
2195
- EllipsisModule], exports: [NgxDatatableModule, EllipsisModule, NgxValidateCoreModule, BreadcrumbComponent,
2586
+ EllipsisModule,
2587
+ CardModule], exports: [NgxDatatableModule,
2588
+ EllipsisModule,
2589
+ NgxValidateCoreModule,
2590
+ CardModule, BreadcrumbComponent,
2196
2591
  BreadcrumbItemsComponent,
2197
2592
  ButtonComponent,
2198
2593
  ConfirmationComponent,
@@ -2206,12 +2601,18 @@ BaseThemeSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
2206
2601
  NgxDatatableListDirective,
2207
2602
  LoadingDirective,
2208
2603
  ModalCloseDirective,
2209
- AbpVisibleDirective] });
2604
+ AbpVisibleDirective,
2605
+ FormInputComponent,
2606
+ FormCheckboxComponent] });
2210
2607
  BaseThemeSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeSharedModule, providers: [DatePipe], imports: [CoreModule,
2211
2608
  NgxDatatableModule,
2212
2609
  NgxValidateCoreModule,
2213
2610
  NgbPaginationModule,
2214
- EllipsisModule, NgxDatatableModule, EllipsisModule, NgxValidateCoreModule] });
2611
+ EllipsisModule,
2612
+ CardModule, NgxDatatableModule,
2613
+ EllipsisModule,
2614
+ NgxValidateCoreModule,
2615
+ CardModule] });
2215
2616
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeSharedModule, decorators: [{
2216
2617
  type: NgModule,
2217
2618
  args: [{
@@ -2221,9 +2622,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
2221
2622
  NgxValidateCoreModule,
2222
2623
  NgbPaginationModule,
2223
2624
  EllipsisModule,
2625
+ CardModule,
2224
2626
  ],
2225
2627
  declarations: [...declarationsWithExports, HttpErrorWrapperComponent],
2226
- exports: [NgxDatatableModule, EllipsisModule, NgxValidateCoreModule, ...declarationsWithExports],
2628
+ exports: [
2629
+ NgxDatatableModule,
2630
+ EllipsisModule,
2631
+ NgxValidateCoreModule,
2632
+ CardModule,
2633
+ ...declarationsWithExports
2634
+ ],
2227
2635
  providers: [DatePipe],
2228
2636
  }]
2229
2637
  }] });
@@ -2358,5 +2766,5 @@ function validatePassword(shouldContain) {
2358
2766
  * Generated bundle index. Do not edit.
2359
2767
  */
2360
2768
 
2361
- 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 };
2769
+ 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 };
2362
2770
  //# sourceMappingURL=abp-ng.theme.shared.mjs.map