lib-portal-angular 0.0.47 → 0.0.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AppBackgroundComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppBackgroundComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppBackgroundComponent, "argenta-app-background", never, {}, {}, never, ["*"], false, never>;
5
+ }
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AuthService } from '../../service/auth-service.service';
3
+ import { ButtonClasses } from '../../enum/ButtonClassesEnum';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BasicRegistrationComponent {
6
+ private authService;
7
+ cancelLabel: string;
8
+ saveLabel: string;
9
+ cancelPermissions: string[];
10
+ savePermissions: string[];
11
+ cancelClick: EventEmitter<Event>;
12
+ saveClick: EventEmitter<Event>;
13
+ ButtonClasses: typeof ButtonClasses;
14
+ constructor(authService: AuthService);
15
+ hasPermission(permissions: string[]): boolean;
16
+ handleCancel(event: Event): void;
17
+ handleSave(event: Event): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasicRegistrationComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasicRegistrationComponent, "argenta-basic-registration", never, { "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "saveLabel": { "alias": "saveLabel"; "required": false; }; "cancelPermissions": { "alias": "cancelPermissions"; "required": false; }; "savePermissions": { "alias": "savePermissions"; "required": false; }; }, { "cancelClick": "cancelClick"; "saveClick": "saveClick"; }, never, ["*"], false, never>;
20
+ }
@@ -1,8 +1,8 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ButtonClasses } from '../../enum/ButtonClassesEnum';
3
3
  import { AuthService } from '../../service/auth-service.service';
4
4
  import * as i0 from "@angular/core";
5
- export declare class ButtonComponent implements OnInit {
5
+ export declare class ButtonComponent implements OnInit, OnChanges {
6
6
  private authService;
7
7
  type: string;
8
8
  label: string;
@@ -18,27 +18,17 @@ export declare class ButtonComponent implements OnInit {
18
18
  formtarget: string | null;
19
19
  name: string | null;
20
20
  value: string | null;
21
- marginTop: number;
22
- marginBottom: number;
23
- marginLeft: number;
24
- marginRight: number;
25
21
  permissions: string[];
26
- clickEvent: EventEmitter<Event>;
22
+ onButtonClick: EventEmitter<Event>;
27
23
  private isHovered;
28
24
  private isActive;
29
25
  constructor(authService: AuthService);
30
26
  ngOnInit(): void;
31
- onMouseEnter(): void;
32
- onMouseLeave(): void;
33
- onMouseDown(): void;
34
- onMouseUp(): void;
27
+ ngOnChanges(changes: SimpleChanges): void;
28
+ private validateInputs;
35
29
  onClick(event: Event): void;
36
30
  get dynamicStyles(): {
37
31
  'font-size': string;
38
- 'margin-top': string;
39
- 'margin-bottom': string;
40
- 'margin-left': string;
41
- 'margin-right': string;
42
32
  'background-color': string;
43
33
  color: string;
44
34
  border: string;
@@ -47,6 +37,8 @@ export declare class ButtonComponent implements OnInit {
47
37
  };
48
38
  private calculateDynamicStyles;
49
39
  hasPermission(): boolean;
40
+ onCancel(event: Event): void;
41
+ onSave(event: Event): void;
50
42
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "argenta-custom-button", never, { "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "form": { "alias": "form"; "required": false; }; "formaction": { "alias": "formaction"; "required": false; }; "formenctype": { "alias": "formenctype"; "required": false; }; "formmethod": { "alias": "formmethod"; "required": false; }; "formnovalidate": { "alias": "formnovalidate"; "required": false; }; "formtarget": { "alias": "formtarget"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; "marginBottom": { "alias": "marginBottom"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, never, false, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "argenta-custom-button", never, { "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "form": { "alias": "form"; "required": false; }; "formaction": { "alias": "formaction"; "required": false; }; "formenctype": { "alias": "formenctype"; "required": false; }; "formmethod": { "alias": "formmethod"; "required": false; }; "formnovalidate": { "alias": "formnovalidate"; "required": false; }; "formtarget": { "alias": "formtarget"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; }, { "onButtonClick": "onButtonClick"; }, never, never, false, never>;
52
44
  }
@@ -1,28 +1,29 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./button/button.component";
3
3
  import * as i2 from "./card/card.component";
4
- import * as i3 from "./form/form.component";
5
- import * as i4 from "./imput/input.component";
6
- import * as i5 from "./checkbox/checkbox.component";
7
- import * as i6 from "./textarea/textarea.component";
8
- import * as i7 from "./select/select.component";
9
- import * as i8 from "./radio/radio.component";
10
- import * as i9 from "./multi-select/multi-select.component";
11
- import * as i10 from "./tables/data-table.component";
12
- import * as i11 from "./code-highlight/code-highlight.component";
13
- import * as i12 from "./badge/badge.component";
14
- import * as i13 from "./alert/alert.component";
15
- import * as i14 from "./confirmation/confirmation.component";
16
- import * as i15 from "../directive/autofocus-directive/autofocus.directive";
17
- import * as i16 from "./custom-pagination/custom-pagination.component";
18
- import * as i17 from "./tree-node/tree-node.component";
19
- import * as i18 from "./search-input/search-input.component";
20
- import * as i19 from "@angular/common";
21
- import * as i20 from "@angular/forms";
22
- import * as i21 from "@ng-select/ng-select";
23
- import * as i22 from "../icons/lucide-icons.module";
4
+ import * as i3 from "./imput/input.component";
5
+ import * as i4 from "./checkbox/checkbox.component";
6
+ import * as i5 from "./textarea/textarea.component";
7
+ import * as i6 from "./select/select.component";
8
+ import * as i7 from "./radio/radio.component";
9
+ import * as i8 from "./multi-select/multi-select.component";
10
+ import * as i9 from "./tables/data-table.component";
11
+ import * as i10 from "./code-highlight/code-highlight.component";
12
+ import * as i11 from "./badge/badge.component";
13
+ import * as i12 from "./alert/alert.component";
14
+ import * as i13 from "./confirmation/confirmation.component";
15
+ import * as i14 from "../directive/autofocus-directive/autofocus.directive";
16
+ import * as i15 from "./custom-pagination/custom-pagination.component";
17
+ import * as i16 from "./tree-node/tree-node.component";
18
+ import * as i17 from "./search-input/search-input.component";
19
+ import * as i18 from "./app-background/app-background.component";
20
+ import * as i19 from "./basic-registration/basic-registration.component";
21
+ import * as i20 from "@angular/common";
22
+ import * as i21 from "@angular/forms";
23
+ import * as i22 from "@ng-select/ng-select";
24
+ import * as i23 from "../icons/lucide-icons.module";
24
25
  export declare class ComponentsModule {
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.ButtonComponent, typeof i2.CardComponent, typeof i3.FormComponent, typeof i4.InputComponent, typeof i5.CheckboxComponent, typeof i6.TextareaComponent, typeof i7.SelectComponent, typeof i8.RadioComponent, typeof i9.MultiSelectComponent, typeof i10.DataTableComponent, typeof i11.CodeHighlightComponent, typeof i12.BadgeComponent, typeof i13.AlertComponent, typeof i14.ConfirmationComponent, typeof i15.AutofocusDirective, typeof i16.CustomPaginationComponent, typeof i17.TreeNodeComponent, typeof i18.SearchInputComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.NgSelectModule, typeof i22.LucideIconsModule], [typeof i1.ButtonComponent, typeof i2.CardComponent, typeof i3.FormComponent, typeof i4.InputComponent, typeof i5.CheckboxComponent, typeof i6.TextareaComponent, typeof i7.SelectComponent, typeof i8.RadioComponent, typeof i9.MultiSelectComponent, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.NgSelectModule, typeof i10.DataTableComponent, typeof i11.CodeHighlightComponent, typeof i12.BadgeComponent, typeof i13.AlertComponent, typeof i14.ConfirmationComponent, typeof i16.CustomPaginationComponent, typeof i17.TreeNodeComponent, typeof i18.SearchInputComponent, typeof i22.LucideIconsModule]>;
27
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.ButtonComponent, typeof i2.CardComponent, typeof i3.InputComponent, typeof i4.CheckboxComponent, typeof i5.TextareaComponent, typeof i6.SelectComponent, typeof i7.RadioComponent, typeof i8.MultiSelectComponent, typeof i9.DataTableComponent, typeof i10.CodeHighlightComponent, typeof i11.BadgeComponent, typeof i12.AlertComponent, typeof i13.ConfirmationComponent, typeof i14.AutofocusDirective, typeof i15.CustomPaginationComponent, typeof i16.TreeNodeComponent, typeof i17.SearchInputComponent, typeof i18.AppBackgroundComponent, typeof i19.BasicRegistrationComponent], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i21.ReactiveFormsModule, typeof i22.NgSelectModule, typeof i23.LucideIconsModule], [typeof i1.ButtonComponent, typeof i2.CardComponent, typeof i3.InputComponent, typeof i4.CheckboxComponent, typeof i5.TextareaComponent, typeof i6.SelectComponent, typeof i7.RadioComponent, typeof i8.MultiSelectComponent, typeof i21.FormsModule, typeof i21.ReactiveFormsModule, typeof i22.NgSelectModule, typeof i9.DataTableComponent, typeof i10.CodeHighlightComponent, typeof i11.BadgeComponent, typeof i12.AlertComponent, typeof i13.ConfirmationComponent, typeof i15.CustomPaginationComponent, typeof i16.TreeNodeComponent, typeof i17.SearchInputComponent, typeof i23.LucideIconsModule, typeof i18.AppBackgroundComponent, typeof i19.BasicRegistrationComponent]>;
27
28
  static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
28
29
  }
@@ -15,12 +15,8 @@ export declare class InputComponent implements ControlValueAccessor, OnDestroy {
15
15
  required: boolean;
16
16
  pattern: string | null;
17
17
  autofocus: boolean;
18
- marginTop: number;
19
- marginBottom: number;
20
- marginLeft: number;
21
- marginRight: number;
22
18
  labelFontWeight: number;
23
- permissions: string[];
19
+ permissions: string[] | undefined;
24
20
  inputEvent: EventEmitter<Event>;
25
21
  changeEvent: EventEmitter<Event>;
26
22
  focusEvent: EventEmitter<FocusEvent>;
@@ -57,5 +53,5 @@ export declare class InputComponent implements ControlValueAccessor, OnDestroy {
57
53
  };
58
54
  ngOnDestroy(): void;
59
55
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "argenta-custom-input", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "required": { "alias": "required"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; "marginBottom": { "alias": "marginBottom"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; }, { "inputEvent": "inputEvent"; "changeEvent": "changeEvent"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "keyupEvent": "keyupEvent"; "keydownEvent": "keydownEvent"; "keypressEvent": "keypressEvent"; }, never, never, false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "argenta-custom-input", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "required": { "alias": "required"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; }, { "inputEvent": "inputEvent"; "changeEvent": "changeEvent"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "keyupEvent": "keyupEvent"; "keydownEvent": "keydownEvent"; "keypressEvent": "keypressEvent"; }, never, never, false, never>;
61
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lib-portal-angular",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0"
package/public-api.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  export * from './lib/components/alert/alert.component';
2
+ export * from './lib/components/app-background/app-background.component';
2
3
  export * from './lib/components/badge/badge.component';
4
+ export * from './lib/components/basic-registration/basic-registration.component';
3
5
  export * from './lib/components/button/button.component';
4
6
  export * from './lib/components/card/card.component';
5
7
  export * from './lib/components/checkbox/checkbox.component';
6
8
  export * from './lib/components/code-highlight/code-highlight.component';
7
9
  export * from './lib/components/confirmation/confirmation.component';
8
10
  export * from './lib/components/custom-pagination/custom-pagination.component';
9
- export * from './lib/components/form/form.component';
10
11
  export * from './lib/components/imput/input.component';
11
12
  export * from './lib/components/multi-select/multi-select.component';
12
13
  export * from './lib/components/radio/radio.component';
@@ -17,8 +18,8 @@ export * from './lib/components/textarea/textarea.component';
17
18
  export * from './lib/components/tree-node/tree-node.component';
18
19
  export * from './lib/enum/ButtonClassesEnum';
19
20
  export * from './lib/components/components.module';
20
- export * from './lib/lib-portal-angular.module';
21
21
  export * from './lib/icons/lucide-icons.module';
22
+ export * from './lib/lib-portal-angular.module';
22
23
  export * from './lib/components/alert/notification.service';
23
24
  export * from './lib/components/confirmation/confirmation.service';
24
25
  export * from './lib/components/tables/data-paginate.service';
@@ -1,27 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class FormComponent {
4
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormComponent, selector: "argenta-app-background", ngImport: i0, template: `
6
- <div class="row">
7
- <div class="card">
8
- <div class="card-content">
9
- <ng-content></ng-content>
10
- </div>
11
- </div>
12
- </div>
13
- `, isInline: true, styles: [".card{border-radius:14px;padding:1rem;background-color:#fff;border:none}\n"] }); }
14
- }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormComponent, decorators: [{
16
- type: Component,
17
- args: [{ selector: 'argenta-app-background', template: `
18
- <div class="row">
19
- <div class="card">
20
- <div class="card-content">
21
- <ng-content></ng-content>
22
- </div>
23
- </div>
24
- </div>
25
- `, styles: [".card{border-radius:14px;padding:1rem;background-color:#fff;border:none}\n"] }]
26
- }] });
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9saWItcG9ydGFsLWFuZ3VsYXIvc3JjL2xpYi9jb21wb25lbnRzL2Zvcm0vZm9ybS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFzQjFDLE1BQU0sT0FBTyxhQUFhOytHQUFiLGFBQWE7bUdBQWIsYUFBYSw4REFsQmQ7Ozs7Ozs7O0dBUVQ7OzRGQVVVLGFBQWE7a0JBcEJ6QixTQUFTOytCQUNFLHdCQUF3QixZQUN4Qjs7Ozs7Ozs7R0FRVCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdhcmdlbnRhLWFwcC1iYWNrZ3JvdW5kJyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8ZGl2IGNsYXNzPVwicm93XCI+ICAgICAgXG4gICAgICAgIDxkaXYgY2xhc3M9XCJjYXJkXCI+XG4gICAgICAgICAgPGRpdiBjbGFzcz1cImNhcmQtY29udGVudFwiPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj4gICAgICBcbiAgICA8L2Rpdj5cbiAgYCxcbiAgc3R5bGVzOiBbYCAgIFxuICAgIC5jYXJkIHtcbiAgICAgIGJvcmRlci1yYWRpdXM6IDE0cHg7XG4gICAgICBwYWRkaW5nOiAxcmVtO1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI0ZGRkZGRjsgLyogQ29yIGRlIGZ1bmRvIGFqdXN0YWRhICovXG4gICAgICBib3JkZXI6IG5vbmU7IC8qIFJlbW92ZXIgYm9yZGEgKi9cbiAgICB9XG4gIGBdXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1Db21wb25lbnQgeyB9XG4iXX0=
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class FormComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "argenta-app-background", never, {}, {}, never, ["*"], false, never>;
5
- }