@osovitny/anatoly 2.14.50 → 2.14.52

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 (37) hide show
  1. package/esm2020/lib/ui/components/base/base-edit.component.mjs +138 -0
  2. package/esm2020/lib/ui/components/base/base.component.mjs +47 -0
  3. package/esm2020/lib/ui/components/base/base.dialog.mjs +46 -0
  4. package/esm2020/lib/ui/components/base/base.list.mjs +65 -0
  5. package/esm2020/lib/ui/components/base/base.page.mjs +31 -0
  6. package/esm2020/lib/ui/components/base/base.paged.page.mjs +65 -0
  7. package/esm2020/lib/ui/components/base.list.mjs +2 -2
  8. package/esm2020/lib/ui/components/base.page.mjs +31 -0
  9. package/esm2020/lib/ui/components/base.paged.page.mjs +65 -0
  10. package/esm2020/lib/ui/components/html-editor/base-html-editor.component.mjs +2 -2
  11. package/esm2020/lib/ui/components/index.mjs +7 -5
  12. package/esm2020/lib/ui/components/nodata/nodata.component.mjs +3 -3
  13. package/esm2020/lib/ui/dialogs/contact-us/contact-us.dialog.mjs +2 -2
  14. package/esm2020/lib/ui/forms/components/dropdownlists/timezone/timezone.dropdownlist.mjs +2 -2
  15. package/esm2020/lib/ui/forms/components/urlslug/urlslug.component.mjs +2 -2
  16. package/esm2020/lib/ui/forms/contact-us/contact-us.mjs +2 -2
  17. package/esm2020/lib/ui/validation/validation-summary.component.mjs +2 -2
  18. package/fesm2015/osovitny-anatoly.mjs +90 -4
  19. package/fesm2015/osovitny-anatoly.mjs.map +1 -1
  20. package/fesm2020/osovitny-anatoly.mjs +90 -4
  21. package/fesm2020/osovitny-anatoly.mjs.map +1 -1
  22. package/lib/ui/components/base/base-edit.component.d.ts +58 -0
  23. package/lib/ui/components/base/base.component.d.ts +13 -0
  24. package/lib/ui/components/base/base.dialog.d.ts +11 -0
  25. package/lib/ui/components/base/base.list.d.ts +17 -0
  26. package/lib/ui/components/base/base.page.d.ts +6 -0
  27. package/lib/ui/components/base/base.paged.page.d.ts +17 -0
  28. package/lib/ui/components/base.page.d.ts +6 -0
  29. package/lib/ui/components/base.paged.page.d.ts +17 -0
  30. package/lib/ui/components/html-editor/base-html-editor.component.d.ts +1 -1
  31. package/lib/ui/components/index.d.ts +6 -4
  32. package/lib/ui/dialogs/contact-us/contact-us.dialog.d.ts +1 -1
  33. package/lib/ui/forms/components/dropdownlists/timezone/timezone.dropdownlist.d.ts +1 -1
  34. package/lib/ui/forms/components/urlslug/urlslug.component.d.ts +1 -1
  35. package/lib/ui/forms/contact-us/contact-us.d.ts +1 -1
  36. package/lib/ui/validation/validation-summary.component.d.ts +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ import { FormGroup, AbstractControl, FormControl, ValidatorFn, AbstractControlOptions, AsyncValidatorFn } from "@angular/forms";
2
+ import { BaseComponent } from "./base.component";
3
+ import * as i0 from "@angular/core";
4
+ export declare abstract class BaseEditComponent extends BaseComponent {
5
+ formGroup: FormGroup;
6
+ formSubmitted: boolean;
7
+ constructor();
8
+ isActionAdding(): boolean;
9
+ getEntityId(): string;
10
+ isControlValid(name: string, frmGroup?: FormGroup): boolean;
11
+ isControlInvalid(name: string, frmGroup?: FormGroup): boolean;
12
+ getFormValue(name: any, frmGroup?: FormGroup): any;
13
+ setFormValue(name: any, value: any, frmGroup?: FormGroup): void;
14
+ getFormGroupValue(groupName: any, name: any, frmGroup?: FormGroup): any;
15
+ setFormGroupValue(groupName: any, name: any, value: any, frmGroup?: FormGroup): void;
16
+ /**
17
+ * Add control to form group
18
+ * @param name
19
+ * @param formControl
20
+ * @param frmGroup
21
+ */
22
+ addControl(name: string, formControl: AbstractControl, frmGroup?: FormGroup): void;
23
+ /**
24
+ * Removes control from form group
25
+ * @param name
26
+ * @param frmGroup
27
+ */
28
+ removeControl(name: string, frmGroup?: FormGroup): void;
29
+ /**
30
+ * return new form control
31
+ * @param formState
32
+ * @param validatorOrOpts
33
+ * @param asyncValidator
34
+ */
35
+ createFormControl(formState?: any, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null): FormControl<any>;
36
+ /**
37
+ * Set error to control
38
+ * @param controlName formControl name
39
+ * @param err error expect {erroname: boolean} format
40
+ * @param frmGroup
41
+ */
42
+ setControlError(controlName: string, err: {}, frmGroup?: FormGroup): void;
43
+ /**
44
+ * Set {invalid: true} for the specified form
45
+ * @param controlName form control name
46
+ * @param frmGroup
47
+ */
48
+ setInValidError(controlName: string, frmGroup?: FormGroup): void;
49
+ /**
50
+ * returns formgroup controls.
51
+ * main use case is used in html pages
52
+ */
53
+ get fc(): {
54
+ [key: string]: AbstractControl<any, any>;
55
+ };
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseEditComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseEditComponent, "ng-component", never, { "formGroup": "formGroup"; "formSubmitted": "formSubmitted"; }, {}, never, never, false>;
58
+ }
@@ -0,0 +1,13 @@
1
+ import { OnDestroy } from "@angular/core";
2
+ import { Subs } from "../../../core";
3
+ import * as i0 from "@angular/core";
4
+ export declare abstract class BaseComponent implements OnDestroy {
5
+ protected subs: Subs;
6
+ protected dataLoading: boolean;
7
+ protected dataLoaded: boolean;
8
+ protected dataFound: boolean;
9
+ getQSId(): string;
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "ng-component", never, {}, {}, never, never, false>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseEditComponent } from "./base-edit.component";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BaseDialog extends BaseEditComponent {
4
+ private _opened;
5
+ get opened(): boolean;
6
+ constructor();
7
+ open(): void;
8
+ close(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseDialog, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseDialog, "ng-component", never, { "opened": "opened"; }, {}, never, never, false>;
11
+ }
@@ -0,0 +1,17 @@
1
+ import { BaseComponent } from "./base.component";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BaseList extends BaseComponent {
4
+ currentFilter: any;
5
+ items: any[];
6
+ totalItems: number;
7
+ pageSize: number;
8
+ skipItems: number;
9
+ currentPage: number;
10
+ protected loadPage?(page?: number): void;
11
+ protected loadPageOne(): void;
12
+ setFilter(filter: any): void;
13
+ reload(drop2pageOne?: boolean): void;
14
+ onPageChange(e: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseList, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseList, "ng-component", never, {}, {}, never, never, false>;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseComponent } from "./base.component";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BasePage extends BaseComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasePage, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasePage, "ng-component", never, {}, {}, never, never, false>;
6
+ }
@@ -0,0 +1,17 @@
1
+ import { BasePage } from "./base.page";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BasePagedPage extends BasePage {
4
+ currentFilter: any;
5
+ items: any[];
6
+ totalItems: number;
7
+ pageSize: number;
8
+ skipItems: number;
9
+ currentPage: number;
10
+ protected loadPage?(page?: number): void;
11
+ protected loadPageOne(): void;
12
+ setFilter(filter: any): void;
13
+ reload(drop2pageOne?: boolean): void;
14
+ onPageChange(e: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasePagedPage, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasePagedPage, "ng-component", never, {}, {}, never, never, false>;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseComponent } from "./base.component";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BasePage extends BaseComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasePage, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasePage, "ng-component", never, {}, {}, never, never, false>;
6
+ }
@@ -0,0 +1,17 @@
1
+ import { BasePage } from "./base.page";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BasePagedPage extends BasePage {
4
+ currentFilter: any;
5
+ items: any[];
6
+ totalItems: number;
7
+ pageSize: number;
8
+ skipItems: number;
9
+ currentPage: number;
10
+ protected loadPage?(page?: number): void;
11
+ protected loadPageOne(): void;
12
+ setFilter(filter: any): void;
13
+ reload(drop2pageOne?: boolean): void;
14
+ onPageChange(e: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasePagedPage, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasePagedPage, "ng-component", never, {}, {}, never, never, false>;
17
+ }
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, OnInit } from "@angular/core";
2
- import { BaseEditComponent } from "../base-edit.component";
2
+ import { BaseEditComponent } from "../base/base-edit.component";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare abstract class BaseHtmlEditorComponent extends BaseEditComponent implements OnInit, AfterViewInit {
5
5
  protected froalaEditor: any;
@@ -15,7 +15,9 @@ export * from './identity/signup-button.component';
15
15
  export * from './nodata/nodata.component';
16
16
  export * from './spinners/loading/loading.component';
17
17
  export * from './spinners/pagespinner/pagespinner.component';
18
- export * from './base-edit.component';
19
- export * from './base.component';
20
- export * from './base.dialog';
21
- export * from './base.list';
18
+ export * from './base/base-edit.component';
19
+ export * from './base/base.component';
20
+ export * from './base/base.dialog';
21
+ export * from './base/base.list';
22
+ export * from './base/base.page';
23
+ export * from './base/base.paged.page';
@@ -1,4 +1,4 @@
1
- import { BaseDialog } from '../../components/base.dialog';
1
+ import { BaseDialog } from '../../components/base/base.dialog';
2
2
  import { ContactUsForm } from '../../forms/contact-us/contact-us';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ContactUsDialog extends BaseDialog {
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { BaseEditComponent } from '../../../../components/base-edit.component';
2
+ import { BaseEditComponent } from '../../../../components/base/base-edit.component';
3
3
  import { AppContextService } from '../../../../../core/services/appcontext.service';
4
4
  import { CoreApiService } from '../../../../../data/services/core-api.service';
5
5
  import * as i0 from "@angular/core";
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { BaseEditComponent } from '../../../components/base-edit.component';
2
+ import { BaseEditComponent } from '../../../components/base/base-edit.component';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class UrlSlugComponent extends BaseEditComponent implements OnInit {
5
5
  firstValue: boolean;
@@ -4,7 +4,7 @@ import { ReCaptcha2Component } from 'ngx-captcha';
4
4
  import { AppContextService } from "../../../core/services/appcontext.service";
5
5
  import { NotificationService } from "../../../core/notifications/services/notification-service";
6
6
  import { EmailsApiService } from '../../../data/services/emails-api.service';
7
- import { BaseEditComponent } from "../../../ui/components/base-edit.component";
7
+ import { BaseEditComponent } from "../../components/base/base-edit.component";
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class ContactUsForm extends BaseEditComponent implements OnInit {
10
10
  private fb;
@@ -1,4 +1,4 @@
1
- import { BaseEditComponent } from "../components/base-edit.component";
1
+ import { BaseEditComponent } from "../components/base/base-edit.component";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare abstract class ValidationSummaryComponent extends BaseEditComponent {
4
4
  constructor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osovitny/anatoly",
3
- "version": "2.14.50",
3
+ "version": "2.14.52",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "14.0.6",
6
6
  "@angular/core": "14.0.6"