@smartsoft001/angular 2.88.0 → 2.89.0

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Injectable, ComponentFactoryResolver, InjectionToken, ApplicationRef, NgModuleRef, PLATFORM_ID, Inject, signal, NgModule, model, Component, ChangeDetectorRef, ElementRef, Injector, input, viewChild, effect, computed, Directive, ViewContainerRef, output, HostListener, ChangeDetectionStrategy, ViewEncapsulation, viewChildren, Pipe, Type, forwardRef, Renderer2, NgZone, untracked } from '@angular/core';
2
+ import { inject, Injectable, ComponentFactoryResolver, InjectionToken, ApplicationRef, NgModuleRef, PLATFORM_ID, Inject, signal, NgModule, ViewContainerRef, Directive, input, output, HostListener, Pipe, Type, model, Component, ChangeDetectorRef, ElementRef, Injector, viewChild, effect, computed, ChangeDetectionStrategy, ViewEncapsulation, viewChildren, forwardRef, Renderer2, NgZone, untracked } from '@angular/core';
3
3
  import { Title, DomSanitizer } from '@angular/platform-browser';
4
4
  import { Router, NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
5
5
  import * as i1 from '@ngx-translate/core';
@@ -15,13 +15,13 @@ import * as i1$1 from '@angular/forms';
15
15
  import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule, FormsModule, NG_VALUE_ACCESSOR, UntypedFormControl } from '@angular/forms';
16
16
  import * as i2 from 'ngx-cookie';
17
17
  import { CookieModule } from 'ngx-cookie';
18
- import { DOCUMENT, isPlatformBrowser, NgTemplateOutlet, AsyncPipe, NgComponentOutlet, NgClass, Location, CommonModule, NgOptimizedImage } from '@angular/common';
19
18
  import { toSignal, toObservable } from '@angular/core/rxjs-interop';
20
- import { SYMBOL_MODEL, SYMBOL_FIELD, getModelFieldsWithOptions, FieldType, getModelFieldOptions, getModelOptions } from '@smartsoft001/models';
21
- import 'reflect-metadata';
22
- import * as _ from 'lodash';
23
19
  import { __decorate, __metadata } from 'tslib';
24
20
  import { Memoize } from 'lodash-decorators';
21
+ import { getModelFieldOptions, SYMBOL_MODEL, SYMBOL_FIELD, getModelFieldsWithOptions, FieldType, getModelOptions } from '@smartsoft001/models';
22
+ import { DOCUMENT, isPlatformBrowser, NgTemplateOutlet, AsyncPipe, NgComponentOutlet, NgClass, Location, CommonModule, NgOptimizedImage } from '@angular/common';
23
+ import 'reflect-metadata';
24
+ import * as _ from 'lodash';
25
25
  import { ColorPickerDirective } from 'ngx-color-picker';
26
26
  import { DynamicIoDirective, DynamicComponent, DynamicModule } from 'ng-dynamic-component';
27
27
  import { Editor, NgxEditorMenuComponent, NgxEditorComponent } from 'ngx-editor';
@@ -34,6 +34,18 @@ import { createEffect, EffectsModule } from '@ngrx/effects';
34
34
  import * as i1$4 from '@ngrx/store';
35
35
  import { Guid } from 'guid-typescript';
36
36
 
37
+ var PaginationMode;
38
+ (function (PaginationMode) {
39
+ PaginationMode["infiniteScroll"] = "infiniteScroll";
40
+ PaginationMode["singlePage"] = "singlePage";
41
+ })(PaginationMode || (PaginationMode = {}));
42
+ var ListMode;
43
+ (function (ListMode) {
44
+ ListMode["mobile"] = "mobile";
45
+ ListMode["desktop"] = "desktop";
46
+ ListMode["masonryGrid"] = "masonryGrid";
47
+ })(ListMode || (ListMode = {}));
48
+
37
49
  class AppService {
38
50
  titleService = inject(Title);
39
51
  translate = inject(TranslateService);
@@ -1011,6 +1023,319 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
1011
1023
  type: Injectable
1012
1024
  }], ctorParameters: () => [{ type: ToastService }, { type: i1.TranslateService }] });
1013
1025
 
1026
+ class DynamicContentDirective {
1027
+ container = inject(ViewContainerRef);
1028
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DynamicContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1029
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.0", type: DynamicContentDirective, isStandalone: true, selector: ".dynamic-content", ngImport: i0 });
1030
+ }
1031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DynamicContentDirective, decorators: [{
1032
+ type: Directive,
1033
+ args: [{
1034
+ // tslint:disable-next-line:directive-selector
1035
+ selector: '.dynamic-content',
1036
+ }]
1037
+ }] });
1038
+
1039
+ class DetailsDirective {
1040
+ modalService = inject(ModalService);
1041
+ hardwareService = inject(HardwareService);
1042
+ options = input.required(...(ngDevMode ? [{ debugName: "options", alias: 'smartDetails' }] : [{ alias: 'smartDetails' }]));
1043
+ smartDetailsShowed = output();
1044
+ smartDetailsDismissed = output();
1045
+ async click() {
1046
+ if (!this.options() || !this.options().component)
1047
+ return;
1048
+ let modal = await this.modalService.show({
1049
+ component: this.options().component,
1050
+ props: {
1051
+ value: this.options().params,
1052
+ },
1053
+ mode: this.options().mode ? this.options().mode : 'bottom',
1054
+ });
1055
+ this.smartDetailsShowed.emit();
1056
+ const handler = await this.hardwareService.onBackButtonClick(async () => {
1057
+ if (modal) {
1058
+ await modal.dismiss();
1059
+ }
1060
+ });
1061
+ await modal.onDidDismiss();
1062
+ handler.remove();
1063
+ modal = null;
1064
+ this.smartDetailsDismissed.emit();
1065
+ }
1066
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DetailsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1067
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.0", type: DetailsDirective, isStandalone: true, selector: "[smartDetails]", inputs: { options: { classPropertyName: "options", publicName: "smartDetails", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { smartDetailsShowed: "smartDetailsShowed", smartDetailsDismissed: "smartDetailsDismissed" }, host: { listeners: { "click": "click()" } }, ngImport: i0 });
1068
+ }
1069
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DetailsDirective, decorators: [{
1070
+ type: Directive,
1071
+ args: [{
1072
+ selector: '[smartDetails]',
1073
+ }]
1074
+ }], propDecorators: { click: [{
1075
+ type: HostListener,
1076
+ args: ['click']
1077
+ }] } });
1078
+
1079
+ const DIRECTIVES = [DynamicContentDirective];
1080
+ class SharedDirectivesModule {
1081
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1082
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, imports: [SharedServicesModule, DynamicContentDirective], exports: [DynamicContentDirective] });
1083
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, imports: [SharedServicesModule] });
1084
+ }
1085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, decorators: [{
1086
+ type: NgModule,
1087
+ args: [{
1088
+ imports: [SharedServicesModule, ...DIRECTIVES],
1089
+ exports: [...DIRECTIVES],
1090
+ }]
1091
+ }] });
1092
+
1093
+ class IModelExportProvider {
1094
+ }
1095
+ const MODEL_EXPORT_PROVIDER = new InjectionToken('MODEL_EXPORT_PROVIDER');
1096
+
1097
+ class IModelImportProvider {
1098
+ }
1099
+ const MODEL_IMPORT_PROVIDER = new InjectionToken('MODEL_IMPORT_PROVIDER');
1100
+
1101
+ class IModelLabelProvider {
1102
+ }
1103
+ const MODEL_LABEL_PROVIDER = new InjectionToken('MODEL_LABEL_PROVIDER');
1104
+
1105
+ class IModelPossibilitiesProvider {
1106
+ }
1107
+ const MODEL_POSSIBILITIES_PROVIDER = new InjectionToken('MODEL_POSSIBILITIES_PROVIDER');
1108
+
1109
+ /**
1110
+ * @example
1111
+ *
1112
+ * in module:
1113
+ @NgModule({
1114
+ providers: [
1115
+ ...
1116
+ {
1117
+ provide: MODEL_VALIDATORS_PROVIDER,
1118
+ useClass: ModelValidatorsProvider
1119
+ }
1120
+ ],
1121
+ *
1122
+ * provider:
1123
+ * @Injectable()
1124
+ export class ModelValidatorsProvider extends IModelValidatorsProvider {
1125
+ async get(options: IModelValidatorsOptions): Promise<IModelValidators> {
1126
+ if (options.type === Todo && options.key === 'test') {
1127
+ return {
1128
+ validators: null,
1129
+ asyncValidators: null
1130
+ }
1131
+ }
1132
+
1133
+ if (options.type === Todo && options.key === 'number') {
1134
+ return {
1135
+ validators: [ Validators.required ],
1136
+ asyncValidators: null
1137
+ }
1138
+ }
1139
+
1140
+ return Promise.resolve(options.base);
1141
+ }
1142
+ }
1143
+ */
1144
+ class IModelValidatorsProvider {
1145
+ }
1146
+ const MODEL_VALIDATORS_PROVIDER = new InjectionToken('MODEL_VALIDATORS_PROVIDER');
1147
+
1148
+ class ModelLabelPipe {
1149
+ translateService = inject(TranslateService);
1150
+ modelLabelProvider = inject(IModelLabelProvider);
1151
+ transform(instance, key, type) {
1152
+ if (this.modelLabelProvider) {
1153
+ const result = this.modelLabelProvider.get({
1154
+ instance: instance,
1155
+ key: key,
1156
+ type: type,
1157
+ });
1158
+ if (result())
1159
+ return result();
1160
+ }
1161
+ return toSignal(this.translateService.instant('MODEL.' + key))();
1162
+ }
1163
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ModelLabelPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1164
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: ModelLabelPipe, isStandalone: true, name: "smartModelLabel" });
1165
+ }
1166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ModelLabelPipe, decorators: [{
1167
+ type: Pipe,
1168
+ args: [{
1169
+ name: 'smartModelLabel',
1170
+ }]
1171
+ }] });
1172
+
1173
+ class ListCellPipe {
1174
+ translateService = inject(TranslateService);
1175
+ transform(obj, key, pipe, type) {
1176
+ if (!obj)
1177
+ return {};
1178
+ let result;
1179
+ const fieldType = this.getFieldType(type, key);
1180
+ if (!pipe)
1181
+ result = this.getValue(obj, key);
1182
+ else {
1183
+ result = pipe.transform(obj, key, (val) => {
1184
+ return this.translateService.instant(val);
1185
+ });
1186
+ }
1187
+ if (!result)
1188
+ return result;
1189
+ if (typeof result === 'string') {
1190
+ result = this.translateService.instant(result);
1191
+ }
1192
+ if (fieldType === 'enum') {
1193
+ result = result.map((item) => {
1194
+ return this.translateService.instant(item);
1195
+ });
1196
+ }
1197
+ return {
1198
+ value: result,
1199
+ type: fieldType,
1200
+ };
1201
+ }
1202
+ getFieldType(type, key) {
1203
+ if (!type)
1204
+ return null;
1205
+ const options = getModelFieldOptions(new type(), key);
1206
+ return options?.type ?? null;
1207
+ }
1208
+ getValue(value, key) {
1209
+ if (key.indexOf('__array') === 0) {
1210
+ const info = key.split('.');
1211
+ const arrayKey = info[1];
1212
+ const index = Number(info[2]);
1213
+ const rowKey = info[4];
1214
+ return value[arrayKey][index][rowKey];
1215
+ }
1216
+ return value[key];
1217
+ }
1218
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListCellPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1219
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: ListCellPipe, isStandalone: true, name: "smartListCell" });
1220
+ }
1221
+ __decorate([
1222
+ Memoize(),
1223
+ __metadata("design:type", Function),
1224
+ __metadata("design:paramtypes", [Type, String]),
1225
+ __metadata("design:returntype", Object)
1226
+ ], ListCellPipe.prototype, "getFieldType", null);
1227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListCellPipe, decorators: [{
1228
+ type: Pipe,
1229
+ args: [{
1230
+ name: 'smartListCell',
1231
+ }]
1232
+ }], propDecorators: { getFieldType: [] } });
1233
+
1234
+ class TrustHtmlPipe {
1235
+ sanitizer = inject(DomSanitizer);
1236
+ transform(val) {
1237
+ if (!val)
1238
+ return val;
1239
+ return this.sanitizer.bypassSecurityTrustHtml(val);
1240
+ }
1241
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: TrustHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1242
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: TrustHtmlPipe, isStandalone: true, name: "smartTrustHtml" });
1243
+ }
1244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: TrustHtmlPipe, decorators: [{
1245
+ type: Pipe,
1246
+ args: [{
1247
+ name: 'smartTrustHtml',
1248
+ }]
1249
+ }] });
1250
+
1251
+ class ListHeaderPipe {
1252
+ translateService = inject(TranslateService);
1253
+ modelLabelProvider = inject(IModelLabelProvider);
1254
+ transform(data, key, type) {
1255
+ if (key.indexOf('__array') === 0) {
1256
+ const info = key.split('.');
1257
+ const arrayKey = info[1];
1258
+ const index = Number(info[2]);
1259
+ const headerKey = info[3];
1260
+ return signal(data[0][arrayKey][index][headerKey]);
1261
+ }
1262
+ if (this.modelLabelProvider) {
1263
+ const result = this.modelLabelProvider.get({ type, key });
1264
+ if (result)
1265
+ return result;
1266
+ }
1267
+ return signal(this.translateService.instant('MODEL.' + key));
1268
+ }
1269
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListHeaderPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1270
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: ListHeaderPipe, isStandalone: true, name: "smartListHeader" });
1271
+ }
1272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListHeaderPipe, decorators: [{
1273
+ type: Pipe,
1274
+ args: [{
1275
+ name: 'smartListHeader',
1276
+ }]
1277
+ }] });
1278
+
1279
+ class FileUrlPipe {
1280
+ service = inject(FileService);
1281
+ transform(file) {
1282
+ return this.service.getUrl(file.id);
1283
+ }
1284
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FileUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1285
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: FileUrlPipe, isStandalone: true, name: "smartFileUrl" });
1286
+ }
1287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FileUrlPipe, decorators: [{
1288
+ type: Pipe,
1289
+ args: [{
1290
+ name: 'smartFileUrl',
1291
+ }]
1292
+ }] });
1293
+
1294
+ class EnumToListPipe {
1295
+ transform(value) {
1296
+ if (!value)
1297
+ return value;
1298
+ return Object.keys(value);
1299
+ }
1300
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EnumToListPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1301
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: EnumToListPipe, isStandalone: true, name: "smartEnumToList" });
1302
+ }
1303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EnumToListPipe, decorators: [{
1304
+ type: Pipe,
1305
+ args: [{
1306
+ name: 'smartEnumToList',
1307
+ }]
1308
+ }] });
1309
+
1310
+ const PIPES = [
1311
+ ModelLabelPipe,
1312
+ ListCellPipe,
1313
+ TrustHtmlPipe,
1314
+ ListHeaderPipe,
1315
+ EnumToListPipe,
1316
+ ];
1317
+ class SharedPipesModule {
1318
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1319
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule, imports: [ModelLabelPipe,
1320
+ ListCellPipe,
1321
+ TrustHtmlPipe,
1322
+ ListHeaderPipe,
1323
+ EnumToListPipe], exports: [ModelLabelPipe,
1324
+ ListCellPipe,
1325
+ TrustHtmlPipe,
1326
+ ListHeaderPipe,
1327
+ EnumToListPipe] });
1328
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule });
1329
+ }
1330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule, decorators: [{
1331
+ type: NgModule,
1332
+ args: [{
1333
+ declarations: [],
1334
+ imports: [PIPES],
1335
+ exports: [...PIPES],
1336
+ }]
1337
+ }] });
1338
+
1014
1339
  class AccordionComponent {
1015
1340
  show = model(false, ...(ngDevMode ? [{ debugName: "show" }] : []));
1016
1341
  update() {
@@ -1274,73 +1599,6 @@ function CreateDynamicComponent(type) {
1274
1599
  return Component;
1275
1600
  }
1276
1601
 
1277
- class DynamicContentDirective {
1278
- container = inject(ViewContainerRef);
1279
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DynamicContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1280
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.0", type: DynamicContentDirective, isStandalone: true, selector: ".dynamic-content", ngImport: i0 });
1281
- }
1282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DynamicContentDirective, decorators: [{
1283
- type: Directive,
1284
- args: [{
1285
- // tslint:disable-next-line:directive-selector
1286
- selector: '.dynamic-content',
1287
- }]
1288
- }] });
1289
-
1290
- class DetailsDirective {
1291
- modalService = inject(ModalService);
1292
- hardwareService = inject(HardwareService);
1293
- options = input.required(...(ngDevMode ? [{ debugName: "options", alias: 'smartDetails' }] : [{ alias: 'smartDetails' }]));
1294
- smartDetailsShowed = output();
1295
- smartDetailsDismissed = output();
1296
- async click() {
1297
- if (!this.options() || !this.options().component)
1298
- return;
1299
- let modal = await this.modalService.show({
1300
- component: this.options().component,
1301
- props: {
1302
- value: this.options().params,
1303
- },
1304
- mode: this.options().mode ? this.options().mode : 'bottom',
1305
- });
1306
- this.smartDetailsShowed.emit();
1307
- const handler = await this.hardwareService.onBackButtonClick(async () => {
1308
- if (modal) {
1309
- await modal.dismiss();
1310
- }
1311
- });
1312
- await modal.onDidDismiss();
1313
- handler.remove();
1314
- modal = null;
1315
- this.smartDetailsDismissed.emit();
1316
- }
1317
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DetailsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1318
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.0", type: DetailsDirective, isStandalone: true, selector: "[smartDetails]", inputs: { options: { classPropertyName: "options", publicName: "smartDetails", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { smartDetailsShowed: "smartDetailsShowed", smartDetailsDismissed: "smartDetailsDismissed" }, host: { listeners: { "click": "click()" } }, ngImport: i0 });
1319
- }
1320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DetailsDirective, decorators: [{
1321
- type: Directive,
1322
- args: [{
1323
- selector: '[smartDetails]',
1324
- }]
1325
- }], propDecorators: { click: [{
1326
- type: HostListener,
1327
- args: ['click']
1328
- }] } });
1329
-
1330
- const DIRECTIVES = [DynamicContentDirective];
1331
- class SharedDirectivesModule {
1332
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1333
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, imports: [SharedServicesModule, DynamicContentDirective], exports: [DynamicContentDirective] });
1334
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, imports: [SharedServicesModule] });
1335
- }
1336
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedDirectivesModule, decorators: [{
1337
- type: NgModule,
1338
- args: [{
1339
- imports: [SharedServicesModule, ...DIRECTIVES],
1340
- exports: [...DIRECTIVES],
1341
- }]
1342
- }] });
1343
-
1344
1602
  class ButtonBaseComponent {
1345
1603
  static smartType = 'button';
1346
1604
  mode = signal('default', ...(ngDevMode ? [{ debugName: "mode" }] : []));
@@ -1394,101 +1652,46 @@ class ButtonComponent extends CreateDynamicComponent('button') {
1394
1652
  effect(() => {
1395
1653
  this.options(); //Track changes only
1396
1654
  this.disabled(); //Track changes only
1397
- this.refreshDynamicInstance();
1398
- });
1399
- }
1400
- refreshProperties() {
1401
- this.baseInstance.options = this.options;
1402
- this.baseInstance.disabled = this.disabled;
1403
- }
1404
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1405
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.0", type: ButtonComponent, isStandalone: true, selector: "smart-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
1406
- @if (template() === 'default') {
1407
- <smart-button-standard [options]="options()" [disabled]="disabled()">
1408
- <ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
1409
- </smart-button-standard>
1410
- }
1411
- <ng-template #contentTpl>
1412
- <ng-content></ng-content>
1413
- </ng-template>
1414
- <div class="dynamic-content"></div>
1415
- `, isInline: true, dependencies: [{ kind: "component", type: ButtonStandardComponent, selector: "smart-button-standard" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1416
- }
1417
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ButtonComponent, decorators: [{
1418
- type: Component,
1419
- args: [{
1420
- selector: 'smart-button',
1421
- template: `
1422
- @if (template() === 'default') {
1423
- <smart-button-standard [options]="options()" [disabled]="disabled()">
1424
- <ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
1425
- </smart-button-standard>
1426
- }
1427
- <ng-template #contentTpl>
1428
- <ng-content></ng-content>
1429
- </ng-template>
1430
- <div class="dynamic-content"></div>
1431
- `,
1432
- encapsulation: ViewEncapsulation.None,
1433
- imports: [ButtonStandardComponent, NgTemplateOutlet],
1434
- changeDetection: ChangeDetectionStrategy.OnPush,
1435
- }]
1436
- }], ctorParameters: () => [] });
1437
-
1438
- class IModelExportProvider {
1439
- }
1440
- const MODEL_EXPORT_PROVIDER = new InjectionToken('MODEL_EXPORT_PROVIDER');
1441
-
1442
- class IModelImportProvider {
1443
- }
1444
- const MODEL_IMPORT_PROVIDER = new InjectionToken('MODEL_IMPORT_PROVIDER');
1445
-
1446
- class IModelLabelProvider {
1447
- }
1448
- const MODEL_LABEL_PROVIDER = new InjectionToken('MODEL_LABEL_PROVIDER');
1449
-
1450
- class IModelPossibilitiesProvider {
1451
- }
1452
- const MODEL_POSSIBILITIES_PROVIDER = new InjectionToken('MODEL_POSSIBILITIES_PROVIDER');
1453
-
1454
- /**
1455
- * @example
1456
- *
1457
- * in module:
1458
- @NgModule({
1459
- providers: [
1460
- ...
1461
- {
1462
- provide: MODEL_VALIDATORS_PROVIDER,
1463
- useClass: ModelValidatorsProvider
1464
- }
1465
- ],
1466
- *
1467
- * provider:
1468
- * @Injectable()
1469
- export class ModelValidatorsProvider extends IModelValidatorsProvider {
1470
- async get(options: IModelValidatorsOptions): Promise<IModelValidators> {
1471
- if (options.type === Todo && options.key === 'test') {
1472
- return {
1473
- validators: null,
1474
- asyncValidators: null
1475
- }
1655
+ this.refreshDynamicInstance();
1656
+ });
1476
1657
  }
1477
-
1478
- if (options.type === Todo && options.key === 'number') {
1479
- return {
1480
- validators: [ Validators.required ],
1481
- asyncValidators: null
1482
- }
1658
+ refreshProperties() {
1659
+ this.baseInstance.options = this.options;
1660
+ this.baseInstance.disabled = this.disabled;
1483
1661
  }
1484
-
1485
- return Promise.resolve(options.base);
1486
- }
1487
- }
1488
- */
1489
- class IModelValidatorsProvider {
1662
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1663
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.0", type: ButtonComponent, isStandalone: true, selector: "smart-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
1664
+ @if (template() === 'default') {
1665
+ <smart-button-standard [options]="options()" [disabled]="disabled()">
1666
+ <ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
1667
+ </smart-button-standard>
1668
+ }
1669
+ <ng-template #contentTpl>
1670
+ <ng-content></ng-content>
1671
+ </ng-template>
1672
+ <div class="dynamic-content"></div>
1673
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonStandardComponent, selector: "smart-button-standard" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1490
1674
  }
1491
- const MODEL_VALIDATORS_PROVIDER = new InjectionToken('MODEL_VALIDATORS_PROVIDER');
1675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ButtonComponent, decorators: [{
1676
+ type: Component,
1677
+ args: [{
1678
+ selector: 'smart-button',
1679
+ template: `
1680
+ @if (template() === 'default') {
1681
+ <smart-button-standard [options]="options()" [disabled]="disabled()">
1682
+ <ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
1683
+ </smart-button-standard>
1684
+ }
1685
+ <ng-template #contentTpl>
1686
+ <ng-content></ng-content>
1687
+ </ng-template>
1688
+ <div class="dynamic-content"></div>
1689
+ `,
1690
+ encapsulation: ViewEncapsulation.None,
1691
+ imports: [ButtonStandardComponent, NgTemplateOutlet],
1692
+ changeDetection: ChangeDetectionStrategy.OnPush,
1693
+ }]
1694
+ }], ctorParameters: () => [] });
1492
1695
 
1493
1696
  class FormFactory {
1494
1697
  fb = inject(UntypedFormBuilder);
@@ -1853,197 +2056,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
1853
2056
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{cursor:pointer;font-size:3rem;height:3rem;margin:10px}\n"] }]
1854
2057
  }], ctorParameters: () => [{ type: i0.Renderer2 }] });
1855
2058
 
1856
- class ModelLabelPipe {
1857
- translateService = inject(TranslateService);
1858
- modelLabelProvider = inject(IModelLabelProvider);
1859
- transform(instance, key, type) {
1860
- if (this.modelLabelProvider) {
1861
- const result = this.modelLabelProvider.get({
1862
- instance: instance,
1863
- key: key,
1864
- type: type,
1865
- });
1866
- if (result())
1867
- return result();
1868
- }
1869
- return toSignal(this.translateService.instant('MODEL.' + key))();
1870
- }
1871
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ModelLabelPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1872
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: ModelLabelPipe, isStandalone: true, name: "smartModelLabel" });
1873
- }
1874
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ModelLabelPipe, decorators: [{
1875
- type: Pipe,
1876
- args: [{
1877
- name: 'smartModelLabel',
1878
- }]
1879
- }] });
1880
-
1881
- class ListCellPipe {
1882
- translateService = inject(TranslateService);
1883
- transform(obj, key, pipe, type) {
1884
- if (!obj)
1885
- return {};
1886
- let result;
1887
- const fieldType = this.getFieldType(type, key);
1888
- if (!pipe)
1889
- result = this.getValue(obj, key);
1890
- else {
1891
- result = pipe.transform(obj, key, (val) => {
1892
- return this.translateService.instant(val);
1893
- });
1894
- }
1895
- if (!result)
1896
- return result;
1897
- if (typeof result === 'string') {
1898
- result = this.translateService.instant(result);
1899
- }
1900
- if (fieldType === 'enum') {
1901
- result = result.map((item) => {
1902
- return this.translateService.instant(item);
1903
- });
1904
- }
1905
- return {
1906
- value: result,
1907
- type: fieldType,
1908
- };
1909
- }
1910
- getFieldType(type, key) {
1911
- if (!type)
1912
- return null;
1913
- const options = getModelFieldOptions(new type(), key);
1914
- return options?.type ?? null;
1915
- }
1916
- getValue(value, key) {
1917
- if (key.indexOf('__array') === 0) {
1918
- const info = key.split('.');
1919
- const arrayKey = info[1];
1920
- const index = Number(info[2]);
1921
- const rowKey = info[4];
1922
- return value[arrayKey][index][rowKey];
1923
- }
1924
- return value[key];
1925
- }
1926
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListCellPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1927
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: ListCellPipe, isStandalone: true, name: "smartListCell" });
1928
- }
1929
- __decorate([
1930
- Memoize(),
1931
- __metadata("design:type", Function),
1932
- __metadata("design:paramtypes", [Type, String]),
1933
- __metadata("design:returntype", Object)
1934
- ], ListCellPipe.prototype, "getFieldType", null);
1935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListCellPipe, decorators: [{
1936
- type: Pipe,
1937
- args: [{
1938
- name: 'smartListCell',
1939
- }]
1940
- }], propDecorators: { getFieldType: [] } });
1941
-
1942
- class TrustHtmlPipe {
1943
- sanitizer = inject(DomSanitizer);
1944
- transform(val) {
1945
- if (!val)
1946
- return val;
1947
- return this.sanitizer.bypassSecurityTrustHtml(val);
1948
- }
1949
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: TrustHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1950
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: TrustHtmlPipe, isStandalone: true, name: "smartTrustHtml" });
1951
- }
1952
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: TrustHtmlPipe, decorators: [{
1953
- type: Pipe,
1954
- args: [{
1955
- name: 'smartTrustHtml',
1956
- }]
1957
- }] });
1958
-
1959
- class ListHeaderPipe {
1960
- translateService = inject(TranslateService);
1961
- modelLabelProvider = inject(IModelLabelProvider);
1962
- transform(data, key, type) {
1963
- if (key.indexOf('__array') === 0) {
1964
- const info = key.split('.');
1965
- const arrayKey = info[1];
1966
- const index = Number(info[2]);
1967
- const headerKey = info[3];
1968
- return signal(data[0][arrayKey][index][headerKey]);
1969
- }
1970
- if (this.modelLabelProvider) {
1971
- const result = this.modelLabelProvider.get({ type, key });
1972
- if (result)
1973
- return result;
1974
- }
1975
- return signal(this.translateService.instant('MODEL.' + key));
1976
- }
1977
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListHeaderPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1978
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: ListHeaderPipe, isStandalone: true, name: "smartListHeader" });
1979
- }
1980
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListHeaderPipe, decorators: [{
1981
- type: Pipe,
1982
- args: [{
1983
- name: 'smartListHeader',
1984
- }]
1985
- }] });
1986
-
1987
- class FileUrlPipe {
1988
- service = inject(FileService);
1989
- transform(file) {
1990
- return this.service.getUrl(file.id);
1991
- }
1992
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FileUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1993
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: FileUrlPipe, isStandalone: true, name: "smartFileUrl" });
1994
- }
1995
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FileUrlPipe, decorators: [{
1996
- type: Pipe,
1997
- args: [{
1998
- name: 'smartFileUrl',
1999
- }]
2000
- }] });
2001
-
2002
- class EnumToListPipe {
2003
- transform(value) {
2004
- if (!value)
2005
- return value;
2006
- return Object.keys(value);
2007
- }
2008
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EnumToListPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2009
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: EnumToListPipe, isStandalone: true, name: "smartEnumToList" });
2010
- }
2011
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EnumToListPipe, decorators: [{
2012
- type: Pipe,
2013
- args: [{
2014
- name: 'smartEnumToList',
2015
- }]
2016
- }] });
2017
-
2018
- const PIPES = [
2019
- ModelLabelPipe,
2020
- ListCellPipe,
2021
- TrustHtmlPipe,
2022
- ListHeaderPipe,
2023
- EnumToListPipe,
2024
- ];
2025
- class SharedPipesModule {
2026
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2027
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule, imports: [ModelLabelPipe,
2028
- ListCellPipe,
2029
- TrustHtmlPipe,
2030
- ListHeaderPipe,
2031
- EnumToListPipe], exports: [ModelLabelPipe,
2032
- ListCellPipe,
2033
- TrustHtmlPipe,
2034
- ListHeaderPipe,
2035
- EnumToListPipe] });
2036
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule });
2037
- }
2038
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SharedPipesModule, decorators: [{
2039
- type: NgModule,
2040
- args: [{
2041
- declarations: [],
2042
- imports: [PIPES],
2043
- exports: [...PIPES],
2044
- }]
2045
- }] });
2046
-
2047
2059
  class InputBaseComponent extends BaseComponent {
2048
2060
  cd = inject(ChangeDetectorRef);
2049
2061
  internalOptions;
@@ -6042,18 +6054,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
6042
6054
  }]
6043
6055
  }], ctorParameters: () => [{ type: DetailsService }] });
6044
6056
 
6045
- var PaginationMode;
6046
- (function (PaginationMode) {
6047
- PaginationMode["infiniteScroll"] = "infiniteScroll";
6048
- PaginationMode["singlePage"] = "singlePage";
6049
- })(PaginationMode || (PaginationMode = {}));
6050
- var ListMode;
6051
- (function (ListMode) {
6052
- ListMode["mobile"] = "mobile";
6053
- ListMode["desktop"] = "desktop";
6054
- ListMode["masonryGrid"] = "masonryGrid";
6055
- })(ListMode || (ListMode = {}));
6056
-
6057
6057
  class PagingComponent {
6058
6058
  page = input(null, ...(ngDevMode ? [{ debugName: "page" }] : []));
6059
6059
  totalPages = input(null, ...(ngDevMode ? [{ debugName: "totalPages" }] : []));
@@ -6851,8 +6851,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
6851
6851
  }] });
6852
6852
 
6853
6853
  class ListComponent extends CreateDynamicComponent('list') {
6854
- hardwareService;
6855
6854
  _options;
6855
+ hardwareService = inject(HardwareService);
6856
6856
  mode = signal(ListMode.desktop, ...(ngDevMode ? [{ debugName: "mode" }] : []));
6857
6857
  ListMode = ListMode;
6858
6858
  options = input.required(...(ngDevMode ? [{ debugName: "options" }] : []));
@@ -6861,9 +6861,8 @@ class ListComponent extends CreateDynamicComponent('list') {
6861
6861
  }
6862
6862
  contentTpl = viewChild('contentTpl', ...(ngDevMode ? [{ debugName: "contentTpl" }] : []));
6863
6863
  dynamicContents = viewChildren(DynamicContentDirective, ...(ngDevMode ? [{ debugName: "dynamicContents" }] : []));
6864
- constructor(hardwareService) {
6864
+ constructor() {
6865
6865
  super();
6866
- this.hardwareService = hardwareService;
6867
6866
  effect(() => {
6868
6867
  this._options.set(this.options());
6869
6868
  this.initFields();
@@ -6886,7 +6885,7 @@ class ListComponent extends CreateDynamicComponent('list') {
6886
6885
  this.mode = computed(() => this._options()?.mode ??
6887
6886
  (this.hardwareService.isMobile ? ListMode.mobile : ListMode.desktop), ...(ngDevMode ? [{ debugName: "mode" }] : []));
6888
6887
  }
6889
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListComponent, deps: [{ token: HardwareService }], target: i0.ɵɵFactoryTarget.Component });
6888
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6890
6889
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.0", type: ListComponent, isStandalone: true, selector: "smart-list", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (template() === 'default') {\n @switch (mode()) {\n @case (ListMode.desktop) {\n <smart-list-desktop [options]=\"internalOptions\"></smart-list-desktop>\n }\n @case (ListMode.mobile) {\n <smart-list-mobile [options]=\"internalOptions\"></smart-list-mobile>\n }\n @case (ListMode.masonryGrid) {\n <smart-list-masonry-grid\n [options]=\"internalOptions\"\n ></smart-list-masonry-grid>\n }\n }\n\n <!-- <ion-row>-->\n <!-- <ion-col></ion-col>-->\n <!-- <ion-col size=\"auto\">-->\n @let loading = internalOptions?.provider?.loading();\n <smart-loader [show]=\"loading ?? false\"></smart-loader>\n @if (!loading && !internalOptions.provider.list()?.length) {\n <h2>\n <br />\n {{ 'noResults' | translate }}\n </h2>\n }\n <!-- </ion-col>-->\n <!-- <ion-col></ion-col>-->\n <!-- </ion-row>-->\n\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n}\n\n<ng-template #contentTpl>\n <ng-content></ng-content>\n</ng-template>\n<div class=\"dynamic-content\"></div>\n", dependencies: [{ kind: "component", type: ListDesktopComponent, selector: "smart-list-desktop" }, { kind: "component", type: ListMobileComponent, selector: "smart-list-mobile" }, { kind: "component", type: ListMasonryGridComponent, selector: "smart-list-masonry-grid" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: LoaderComponent, selector: "smart-loader", inputs: ["show", "height"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6891
6890
  }
6892
6891
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ListComponent, decorators: [{
@@ -6899,7 +6898,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
6899
6898
  NgTemplateOutlet,
6900
6899
  LoaderComponent,
6901
6900
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (template() === 'default') {\n @switch (mode()) {\n @case (ListMode.desktop) {\n <smart-list-desktop [options]=\"internalOptions\"></smart-list-desktop>\n }\n @case (ListMode.mobile) {\n <smart-list-mobile [options]=\"internalOptions\"></smart-list-mobile>\n }\n @case (ListMode.masonryGrid) {\n <smart-list-masonry-grid\n [options]=\"internalOptions\"\n ></smart-list-masonry-grid>\n }\n }\n\n <!-- <ion-row>-->\n <!-- <ion-col></ion-col>-->\n <!-- <ion-col size=\"auto\">-->\n @let loading = internalOptions?.provider?.loading();\n <smart-loader [show]=\"loading ?? false\"></smart-loader>\n @if (!loading && !internalOptions.provider.list()?.length) {\n <h2>\n <br />\n {{ 'noResults' | translate }}\n </h2>\n }\n <!-- </ion-col>-->\n <!-- <ion-col></ion-col>-->\n <!-- </ion-row>-->\n\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n}\n\n<ng-template #contentTpl>\n <ng-content></ng-content>\n</ng-template>\n<div class=\"dynamic-content\"></div>\n" }]
6902
- }], ctorParameters: () => [{ type: HardwareService }] });
6901
+ }], ctorParameters: () => [] });
6903
6902
 
6904
6903
  function setDefaultTranslationsAndLang(service) {
6905
6904
  const map = {