@osovitny/anatoly 2.14.48 → 2.14.50

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.
@@ -3220,25 +3220,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3220
3220
  */
3221
3221
  class NodataComponent {
3222
3222
  constructor() {
3223
- //Inputs
3224
- this.loading = false;
3225
- this.loaded = false;
3226
- this.datafound = false;
3223
+ this.dataLoading = false;
3224
+ this.dataLoaded = false;
3225
+ this.dataFound = false;
3227
3226
  this.icon = 'fas fa-cubes fa-w-16 fa-9x';
3228
3227
  this.heading = 'No data found';
3229
3228
  this.headingClass = 'text-uppercase text-primary';
3230
3229
  }
3231
3230
  }
3232
3231
  NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3233
- NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { loading: "loading", loaded: "loaded", datafound: "datafound", icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='loaded && !datafound'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3232
+ NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { dataLoading: "dataLoading", dataLoaded: "dataLoaded", dataFound: "dataFound", icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='dataLoaded && !dataFound'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3234
3233
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
3235
3234
  type: Component,
3236
- args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='loaded && !datafound'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
3237
- }], ctorParameters: function () { return []; }, propDecorators: { loading: [{
3235
+ args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='dataLoaded && !dataFound'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
3236
+ }], ctorParameters: function () { return []; }, propDecorators: { dataLoading: [{
3238
3237
  type: Input
3239
- }], loaded: [{
3238
+ }], dataLoaded: [{
3240
3239
  type: Input
3241
- }], datafound: [{
3240
+ }], dataFound: [{
3242
3241
  type: Input
3243
3242
  }], icon: [{
3244
3243
  type: Input
@@ -3395,6 +3394,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3395
3394
  type: Input
3396
3395
  }] } });
3397
3396
 
3397
+ /*
3398
+ <file>
3399
+ Project:
3400
+ @osovitny/anatoly
3401
+
3402
+ Authors:
3403
+ Vadim Osovitny
3404
+ Anatoly Osovitny
3405
+
3406
+ Created:
3407
+ 20 Aug 2022
3408
+
3409
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3410
+ </file>
3411
+ */
3412
+ class BaseList extends BaseComponent {
3413
+ constructor() {
3414
+ super(...arguments);
3415
+ this.currentFilter = null;
3416
+ this.totalItems = 0;
3417
+ this.pageSize = 10;
3418
+ this.skipItems = 0;
3419
+ this.currentPage = 1;
3420
+ }
3421
+ loadPageOne() {
3422
+ this.skipItems = 0;
3423
+ this.currentPage = 1;
3424
+ if (this.loadPage) {
3425
+ this.loadPage();
3426
+ }
3427
+ }
3428
+ setFilter(filter) {
3429
+ this.currentFilter = filter;
3430
+ this.loadPageOne();
3431
+ }
3432
+ reload(drop2pageOne = true) {
3433
+ if (drop2pageOne) {
3434
+ this.loadPageOne();
3435
+ }
3436
+ else {
3437
+ this.loadPage();
3438
+ }
3439
+ }
3440
+ //Events
3441
+ onPageChange(e) {
3442
+ this.pageSize = e.take;
3443
+ this.skipItems = e.skip;
3444
+ this.currentPage = (this.skipItems / this.pageSize) + 1;
3445
+ this.loadPage();
3446
+ }
3447
+ }
3448
+ BaseList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseList, deps: null, target: i0.ɵɵFactoryTarget.Component });
3449
+ BaseList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseList, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
3450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseList, decorators: [{
3451
+ type: Component,
3452
+ args: [{
3453
+ template: ''
3454
+ }]
3455
+ }] });
3456
+
3398
3457
  /*
3399
3458
  <file>
3400
3459
  Project:
@@ -4424,5 +4483,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
4424
4483
  * Generated bundle index. Do not edit.
4425
4484
  */
4426
4485
 
4427
- export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, CoreApiService, DOM, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
4486
+ export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BaseList, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, CoreApiService, DOM, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
4428
4487
  //# sourceMappingURL=osovitny-anatoly.mjs.map