@verisoft/ui-core 19.0.0-rc001 → 20.0.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.
- package/README.md +314 -3
- package/fesm2022/verisoft-ui-core.mjs +90 -82
- package/fesm2022/verisoft-ui-core.mjs.map +1 -1
- package/index.d.ts +1107 -6
- package/package.json +15 -18
- package/lib/common/angular-helper.d.ts +0 -1
- package/lib/common/constants.d.ts +0 -3
- package/lib/common/control.models.d.ts +0 -62
- package/lib/common/datasource-component.model.d.ts +0 -19
- package/lib/common/deactivate-guard.model.d.ts +0 -4
- package/lib/common/download-file.d.ts +0 -2
- package/lib/common/filter.d.ts +0 -1
- package/lib/common/icons.d.ts +0 -34
- package/lib/common/index.d.ts +0 -10
- package/lib/common/notificable-property.model.d.ts +0 -4
- package/lib/common/rxjs.d.ts +0 -2
- package/lib/components/action-button-group/action-button-group.model.d.ts +0 -12
- package/lib/components/action-button-group/action-button.model.d.ts +0 -14
- package/lib/components/action-button-group/index.d.ts +0 -2
- package/lib/components/base-form/base-form-input.component.d.ts +0 -30
- package/lib/components/base-form/base-form.component.d.ts +0 -50
- package/lib/components/base-form/directives/detail-store.directive.d.ts +0 -35
- package/lib/components/base-form/index.d.ts +0 -4
- package/lib/components/base-form/models/base-form-input.models.d.ts +0 -7
- package/lib/components/base-form/models/base-form.models.d.ts +0 -18
- package/lib/components/base-form/models/index.d.ts +0 -2
- package/lib/components/breadcrumb/breadcrumb.model.d.ts +0 -16
- package/lib/components/breadcrumb/breadcrumb.service.d.ts +0 -8
- package/lib/components/breadcrumb/breadcrumbcore.component.d.ts +0 -30
- package/lib/components/breadcrumb/index.d.ts +0 -3
- package/lib/components/button/button.model.d.ts +0 -17
- package/lib/components/button/index.d.ts +0 -1
- package/lib/components/calendar/calendar.model.d.ts +0 -12
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/checkbox/checkbox.model.d.ts +0 -6
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/confirm-dialog/confirm-dialog.model.d.ts +0 -25
- package/lib/components/confirm-dialog/index.d.ts +0 -1
- package/lib/components/dropdown/dropdown.model.d.ts +0 -12
- package/lib/components/dropdown/index.d.ts +0 -1
- package/lib/components/dropdown-button/dropdown-button.model.d.ts +0 -14
- package/lib/components/dropdown-button/index.d.ts +0 -1
- package/lib/components/dynamic-component/dynamic-component.model.d.ts +0 -3
- package/lib/components/dynamic-component/index.d.ts +0 -1
- package/lib/components/filter/filter.model.d.ts +0 -13
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/form-field/form-field.model.d.ts +0 -11
- package/lib/components/form-field/index.d.ts +0 -1
- package/lib/components/generic-field/generic-field.model.d.ts +0 -6
- package/lib/components/generic-field/index.d.ts +0 -1
- package/lib/components/generic-form/generic-form.component.d.ts +0 -30
- package/lib/components/generic-form/index.d.ts +0 -1
- package/lib/components/header/header.model.d.ts +0 -11
- package/lib/components/header/index.d.ts +0 -1
- package/lib/components/icons/icons.component.d.ts +0 -6
- package/lib/components/icons/icons.model.d.ts +0 -6
- package/lib/components/icons/index.d.ts +0 -2
- package/lib/components/index.d.ts +0 -35
- package/lib/components/input-group/index.d.ts +0 -1
- package/lib/components/input-group/input-group.model.d.ts +0 -12
- package/lib/components/loader/index.d.ts +0 -1
- package/lib/components/loader/loader.model.d.ts +0 -3
- package/lib/components/multiselect/index.d.ts +0 -1
- package/lib/components/multiselect/mutiselect.model.d.ts +0 -9
- package/lib/components/number-input/index.d.ts +0 -1
- package/lib/components/number-input/number-input.model.d.ts +0 -10
- package/lib/components/page-header/index.d.ts +0 -3
- package/lib/components/page-header/page-header.model.d.ts +0 -7
- package/lib/components/page-header/page-header.service.d.ts +0 -8
- package/lib/components/page-header/page-headercore.component.d.ts +0 -20
- package/lib/components/password/index.d.ts +0 -1
- package/lib/components/password/password.model.d.ts +0 -19
- package/lib/components/radiobutton/index.d.ts +0 -1
- package/lib/components/radiobutton/radiobutton.model.d.ts +0 -11
- package/lib/components/section/index.d.ts +0 -1
- package/lib/components/section/section.model.d.ts +0 -7
- package/lib/components/side-menu/directives/side-menu-service.directive.d.ts +0 -11
- package/lib/components/side-menu/index.d.ts +0 -4
- package/lib/components/side-menu/services/side-menu-provider.service.d.ts +0 -10
- package/lib/components/side-menu/services/side-menu.service.d.ts +0 -15
- package/lib/components/side-menu/side-menu.model.d.ts +0 -42
- package/lib/components/slider/index.d.ts +0 -1
- package/lib/components/slider/slider.model.d.ts +0 -9
- package/lib/components/snackbar/index.d.ts +0 -1
- package/lib/components/snackbar/snackbar.model.d.ts +0 -3
- package/lib/components/stepper/index.d.ts +0 -1
- package/lib/components/stepper/stepper.model.d.ts +0 -19
- package/lib/components/switch/index.d.ts +0 -1
- package/lib/components/switch/switch.model.d.ts +0 -4
- package/lib/components/tab-view/index.d.ts +0 -1
- package/lib/components/tab-view/tab-view.model.d.ts +0 -17
- package/lib/components/table/column-configuration.d.ts +0 -12
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/table/table-builder.d.ts +0 -15
- package/lib/components/table/table-column.directive.d.ts +0 -25
- package/lib/components/table/table.models.d.ts +0 -132
- package/lib/components/table-filter/index.d.ts +0 -1
- package/lib/components/table-filter/table-filter.model.d.ts +0 -17
- package/lib/components/textarea/index.d.ts +0 -1
- package/lib/components/textarea/textarea.model.d.ts +0 -9
- package/lib/components/textfield/index.d.ts +0 -1
- package/lib/components/textfield/textfield.model.d.ts +0 -9
- package/lib/components/unsubscribe.component.d.ts +0 -9
- package/lib/directives/datasource.directive.d.ts +0 -32
- package/lib/directives/index.d.ts +0 -4
- package/lib/directives/shortcut.directive.d.ts +0 -11
- package/lib/directives/table-datasource.directive.d.ts +0 -29
- package/lib/directives/table-filter.directive.d.ts +0 -17
- package/lib/format/format.d.ts +0 -9
- package/lib/pipes/error/error.codes.d.ts +0 -5
- package/lib/pipes/error/error.models.d.ts +0 -8
- package/lib/pipes/error/error.pipe.d.ts +0 -8
- package/lib/pipes/error/warning.codes.d.ts +0 -5
- package/lib/pipes/error/warning.pipe.d.ts +0 -8
- package/lib/pipes/helper/enumToList.pipe.d.ts +0 -7
- package/lib/pipes/index.d.ts +0 -7
- package/lib/pipes/keyOrFn/keyOrFn.pipe.d.ts +0 -7
- package/lib/services/confirm-dialog.service.d.ts +0 -12
- package/lib/services/index.d.ts +0 -4
- package/lib/services/leave-form.service.d.ts +0 -13
- package/lib/services/screen-size.service.d.ts +0 -10
- package/lib/services/table.service.d.ts +0 -13
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { DatasourceType } from '@verisoft/core';
|
|
3
|
-
import { FieldSizeType } from '../../common';
|
|
4
|
-
export interface GenericFieldDefinition {
|
|
5
|
-
validator?: ValidatorFn[];
|
|
6
|
-
type?: GenericFieldTypeType;
|
|
7
|
-
label?: string;
|
|
8
|
-
floatLabel?: boolean;
|
|
9
|
-
name: string;
|
|
10
|
-
optionLabel?: string;
|
|
11
|
-
optionValue?: string;
|
|
12
|
-
options?: unknown[];
|
|
13
|
-
value?: unknown;
|
|
14
|
-
testId?: string;
|
|
15
|
-
size?: FieldSizeType;
|
|
16
|
-
readonly?: boolean;
|
|
17
|
-
datasource?: DatasourceType<any>;
|
|
18
|
-
filterField?: string;
|
|
19
|
-
showFilter?: boolean;
|
|
20
|
-
localSearch?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare enum GenericFieldType {
|
|
23
|
-
'dropdown' = "dropdown",
|
|
24
|
-
'checkbox' = "checkbox",
|
|
25
|
-
'simplecheckbox' = "simplecheckbox",
|
|
26
|
-
'calendar' = "calendar",
|
|
27
|
-
'multiselect' = "multiselect",
|
|
28
|
-
'text' = "text"
|
|
29
|
-
}
|
|
30
|
-
export type GenericFieldTypeType = keyof typeof GenericFieldType;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './generic-form.component';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { MenuItem } from '../side-menu/side-menu.model';
|
|
3
|
-
export declare const HEADER_COMPONENT_TOKEN: InjectionToken<HeaderCore>;
|
|
4
|
-
export declare const SETTINGS_MENU: InjectionToken<MenuItem[]>;
|
|
5
|
-
export interface HeaderCore {
|
|
6
|
-
title: string;
|
|
7
|
-
userName: string;
|
|
8
|
-
logoUrl: string;
|
|
9
|
-
userRole: any | any[] | undefined;
|
|
10
|
-
menuRef: HTMLDivElement;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './header.model';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class IconsComponent {
|
|
3
|
-
name: string;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconsComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconsComponent, "ng-component", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export * from './action-button-group';
|
|
2
|
-
export * from './base-form';
|
|
3
|
-
export * from './breadcrumb';
|
|
4
|
-
export * from './button';
|
|
5
|
-
export * from './dropdown-button';
|
|
6
|
-
export * from './calendar';
|
|
7
|
-
export * from './checkbox';
|
|
8
|
-
export * from './confirm-dialog';
|
|
9
|
-
export * from './dropdown';
|
|
10
|
-
export * from './dynamic-component';
|
|
11
|
-
export * from './filter';
|
|
12
|
-
export * from './form-field';
|
|
13
|
-
export * from './generic-field';
|
|
14
|
-
export * from './generic-form';
|
|
15
|
-
export * from './header';
|
|
16
|
-
export * from './input-group';
|
|
17
|
-
export * from './loader';
|
|
18
|
-
export * from './multiselect';
|
|
19
|
-
export * from './number-input';
|
|
20
|
-
export * from './page-header';
|
|
21
|
-
export * from './password';
|
|
22
|
-
export * from './radiobutton';
|
|
23
|
-
export * from './section';
|
|
24
|
-
export * from './side-menu';
|
|
25
|
-
export * from './slider';
|
|
26
|
-
export * from './snackbar';
|
|
27
|
-
export * from './stepper';
|
|
28
|
-
export * from './switch';
|
|
29
|
-
export * from './tab-view';
|
|
30
|
-
export * from './table';
|
|
31
|
-
export * from './table-filter';
|
|
32
|
-
export * from './textarea';
|
|
33
|
-
export * from './textfield';
|
|
34
|
-
export * from './unsubscribe.component';
|
|
35
|
-
export * from './icons';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './input-group.model';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { IconPositionType } from '../../common';
|
|
3
|
-
import { BaseFormCore } from '../base-form';
|
|
4
|
-
export declare const INPUT_GROUP_COMPONENT_TOKEN: InjectionToken<InputGroupCore>;
|
|
5
|
-
export interface InputGroupItem {
|
|
6
|
-
icon?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
position: IconPositionType;
|
|
9
|
-
}
|
|
10
|
-
export interface InputGroupCore extends BaseFormCore {
|
|
11
|
-
items: InputGroupItem[];
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './loader.model';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './mutiselect.model';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { DataSourceComponentModel } from '../../common';
|
|
3
|
-
import { BaseFormCore } from '../base-form';
|
|
4
|
-
export declare const MULTISELECT_COMPONENT_TOKEN: InjectionToken<MultiselectCore<any>>;
|
|
5
|
-
export interface MultiselectCore<T> extends DataSourceComponentModel<T>, BaseFormCore {
|
|
6
|
-
dropdownIcon?: string;
|
|
7
|
-
floatLabel?: string;
|
|
8
|
-
editable: boolean;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './number-input.model';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { BaseFormCore } from '../base-form';
|
|
3
|
-
export declare const NUMBER_INPUT_COMPONENT_TOKEN: InjectionToken<NumberInputCore>;
|
|
4
|
-
export interface NumberInputCore extends BaseFormCore {
|
|
5
|
-
mode: string;
|
|
6
|
-
currency: string;
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
step: number;
|
|
10
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { PageHeaderCore } from './page-header.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PageHeaderService {
|
|
5
|
-
pageHeader: EventEmitter<PageHeaderCore>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PageHeaderService>;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { FieldSizeType } from '../../common';
|
|
4
|
-
import { UnsubscribeComponent } from '../unsubscribe.component';
|
|
5
|
-
import { PageHeaderService } from './page-header.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class PageHeaderCoreComponent extends UnsubscribeComponent implements OnInit {
|
|
8
|
-
readonly router: Router;
|
|
9
|
-
readonly cdr: ChangeDetectorRef;
|
|
10
|
-
readonly headerService: PageHeaderService;
|
|
11
|
-
title: string;
|
|
12
|
-
subtitle: string | undefined;
|
|
13
|
-
showBackButton: boolean;
|
|
14
|
-
size: FieldSizeType;
|
|
15
|
-
constructor(router: Router, cdr: ChangeDetectorRef, headerService: PageHeaderService);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
protected locationBack(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderCoreComponent, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PageHeaderCoreComponent, never, never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "showBackButton": { "alias": "showBackButton"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './password.model';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { BaseFormCore } from '../base-form';
|
|
3
|
-
export declare const PASSWORD_COMPONENT_TOKEN: InjectionToken<PasswordCore>;
|
|
4
|
-
export declare enum PasswordStrength {
|
|
5
|
-
None = 0,
|
|
6
|
-
Low = 1,
|
|
7
|
-
Medium = 2,
|
|
8
|
-
High = 3,
|
|
9
|
-
Superb = 4
|
|
10
|
-
}
|
|
11
|
-
export interface PasswordCore extends BaseFormCore {
|
|
12
|
-
toggleMask: boolean;
|
|
13
|
-
feedback: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface PasswordValidationItem {
|
|
16
|
-
severity: 'success' | 'error';
|
|
17
|
-
validationLabel: string;
|
|
18
|
-
validationFn: (x: string) => boolean;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './radiobutton.model';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { BaseFormCore } from '../base-form';
|
|
3
|
-
export declare const RADIOBUTTON_COMPONENT_TOKEN: InjectionToken<RadiobuttonCore<any>>;
|
|
4
|
-
export interface RadioButtonItem<T> {
|
|
5
|
-
id: string;
|
|
6
|
-
value: T;
|
|
7
|
-
}
|
|
8
|
-
export interface RadiobuttonCore<T> extends BaseFormCore {
|
|
9
|
-
radioGroupName: string;
|
|
10
|
-
items: RadioButtonItem<T>[];
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './section.model';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit } from "@angular/core";
|
|
2
|
-
import { UnsubscribeComponent } from "../../unsubscribe.component";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MenuServiceDirective extends UnsubscribeComponent implements AfterViewInit {
|
|
5
|
-
private readonly menuService;
|
|
6
|
-
private readonly cdr;
|
|
7
|
-
private readonly sideMenu;
|
|
8
|
-
ngAfterViewInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuServiceDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuServiceDirective, "v-side-menu[useMenuService]", ["useMenuService"], {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from '../side-menu.model';
|
|
2
|
-
import { SideMenuService } from './side-menu.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SideMenuProviderService {
|
|
5
|
-
readonly menu: MenuItem[];
|
|
6
|
-
readonly menuService: SideMenuService;
|
|
7
|
-
constructor(menu: MenuItem[] | undefined, menuService: SideMenuService);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SideMenuProviderService, [{ optional: true; }, null]>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SideMenuProviderService>;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { MenuItem } from '../side-menu.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SideMenuService {
|
|
5
|
-
private _menuItems;
|
|
6
|
-
private stateToken;
|
|
7
|
-
menuItems$: Observable<MenuItem[]>;
|
|
8
|
-
menuMinimalized: boolean;
|
|
9
|
-
setMenu(items: MenuItem[]): void;
|
|
10
|
-
saveMinimalizedState(minimalized: boolean): void;
|
|
11
|
-
saveExpandedState(item: MenuItem): void;
|
|
12
|
-
private resetSidemenuState;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SideMenuService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SideMenuService>;
|
|
15
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare const MENU_TOKEN: InjectionToken<MenuItem[]>;
|
|
4
|
-
export declare const LOGO_ROUTER_ROUTE: InjectionToken<string>;
|
|
5
|
-
export declare const SIDE_MENU_COMPONENT_TOKEN: InjectionToken<SideMenuCore>;
|
|
6
|
-
export declare const SIDE_MENU_STATE_TOKEN: InjectionToken<SideMenuState>;
|
|
7
|
-
export interface SideMenuState {
|
|
8
|
-
expanded: string[];
|
|
9
|
-
minimalized: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface MenuItem {
|
|
12
|
-
id?: string;
|
|
13
|
-
label?: string | undefined;
|
|
14
|
-
icon?: string;
|
|
15
|
-
expanded?: boolean;
|
|
16
|
-
data?: MenuItemData;
|
|
17
|
-
tooltip?: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
visible?: boolean | Observable<boolean>;
|
|
20
|
-
type?: string;
|
|
21
|
-
children?: MenuItem[];
|
|
22
|
-
routerLink?: any;
|
|
23
|
-
class?: string;
|
|
24
|
-
command?: Function;
|
|
25
|
-
}
|
|
26
|
-
type ExtendableType = {
|
|
27
|
-
[key: string]: string | number | boolean | string[] | number[] | boolean[] | undefined;
|
|
28
|
-
};
|
|
29
|
-
export interface MenuItemData extends ExtendableType {
|
|
30
|
-
roles?: string[];
|
|
31
|
-
permissions?: string[];
|
|
32
|
-
}
|
|
33
|
-
export interface SideMenuModuleConfig {
|
|
34
|
-
items?: MenuItem[];
|
|
35
|
-
}
|
|
36
|
-
export interface SideMenuCore {
|
|
37
|
-
items: MenuItem[];
|
|
38
|
-
logoUrl: string;
|
|
39
|
-
userName: string;
|
|
40
|
-
userRole: any | any[] | undefined;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './slider.model';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { BaseFormCore } from '../base-form';
|
|
3
|
-
export declare const SLIDER_COMPONENT_TOKEN: InjectionToken<SliderCore>;
|
|
4
|
-
export interface SliderCore extends BaseFormCore {
|
|
5
|
-
step: number;
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
range: boolean;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './snackbar.model';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './stepper.model';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, InjectionToken, TemplateRef } from "@angular/core";
|
|
2
|
-
import { FieldSizeType, LayoutTypeType } from "../../common";
|
|
3
|
-
export declare const STEPPER_COMPONENT_TOKEN: InjectionToken<StepperCore>;
|
|
4
|
-
export interface StepperItem {
|
|
5
|
-
header: string;
|
|
6
|
-
template?: TemplateRef<any>;
|
|
7
|
-
annotation?: string;
|
|
8
|
-
prefix?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface StepperCore {
|
|
11
|
-
items: StepperItem[];
|
|
12
|
-
layout: LayoutTypeType;
|
|
13
|
-
activeIndexChange: EventEmitter<number>;
|
|
14
|
-
size: FieldSizeType | undefined;
|
|
15
|
-
icon: string;
|
|
16
|
-
prefix: string;
|
|
17
|
-
annotation: string;
|
|
18
|
-
label: string;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './switch.model';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tab-view.model';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, InjectionToken, TemplateRef } from "@angular/core";
|
|
2
|
-
export declare const TAB_VIEW_COMPONENT_TOKEN: InjectionToken<TabViewCore>;
|
|
3
|
-
export interface TabViewItemCore {
|
|
4
|
-
title: string;
|
|
5
|
-
url?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
content?: string;
|
|
9
|
-
contentTemplate?: TemplateRef<unknown>;
|
|
10
|
-
}
|
|
11
|
-
export interface TabViewCore {
|
|
12
|
-
items: TabViewItemCore[];
|
|
13
|
-
useRouting: boolean;
|
|
14
|
-
activeIndex: number;
|
|
15
|
-
activeIndexChange: EventEmitter<number>;
|
|
16
|
-
url?: string;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ColumnDefinition } from "./table.models";
|
|
2
|
-
export declare class ColumnConfiguration<TEntity> {
|
|
3
|
-
private id;
|
|
4
|
-
private column;
|
|
5
|
-
constructor(id: string | keyof TEntity);
|
|
6
|
-
headerName(headerName: string | ((columnId: string, index?: number) => string)): this;
|
|
7
|
-
sortable(sortable: boolean): this;
|
|
8
|
-
columnClass(columnClass: string): this;
|
|
9
|
-
valueFunction(value: (row: TEntity, index?: number) => string): this;
|
|
10
|
-
type(type: string): this;
|
|
11
|
-
build(): ColumnDefinition<TEntity>;
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColumnConfiguration } from './column-configuration';
|
|
2
|
-
import { ColumnDefinition } from './table.models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TableBuilder<TEntity> {
|
|
5
|
-
private columns;
|
|
6
|
-
addColumn(id: string | keyof TEntity, config?: (v: ColumnConfiguration<TEntity>) => void): TableBuilder<TEntity>;
|
|
7
|
-
addTextColumn(id: string | keyof TEntity, config?: (v: ColumnConfiguration<TEntity>) => void): TableBuilder<TEntity>;
|
|
8
|
-
addNumberColumn(id: string | keyof TEntity, config?: (v: ColumnConfiguration<TEntity>) => void): TableBuilder<TEntity>;
|
|
9
|
-
addDateColumn(id: string | keyof TEntity, config?: (v: ColumnConfiguration<TEntity>) => void): TableBuilder<TEntity>;
|
|
10
|
-
addBooleanColumn(id: string, config?: (v: ColumnConfiguration<TEntity>) => void): TableBuilder<TEntity>;
|
|
11
|
-
addEnumColumn(id: string | keyof TEntity, config?: (v: ColumnConfiguration<TEntity>) => void): TableBuilder<TEntity>;
|
|
12
|
-
build(): ColumnDefinition<TEntity>[];
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableBuilder<any>, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TableBuilder<any>>;
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { Params } from '@angular/router';
|
|
3
|
-
import { FieldAlignType } from '../../common';
|
|
4
|
-
import { ColumnDefinition, ColumnProvider, ColumnVisibilityType } from './table.models';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TableColumnDirective<T> implements ColumnProvider<T> {
|
|
7
|
-
template: TemplateRef<{
|
|
8
|
-
$implicit: T;
|
|
9
|
-
}>;
|
|
10
|
-
index: number;
|
|
11
|
-
id: string;
|
|
12
|
-
columnClass: string;
|
|
13
|
-
sortable: boolean;
|
|
14
|
-
routerLink: (row: T) => string;
|
|
15
|
-
queryParams: Params;
|
|
16
|
-
headerName: ((column: string, index?: number) => string) | string;
|
|
17
|
-
width: string | number | undefined;
|
|
18
|
-
textAlign: FieldAlignType;
|
|
19
|
-
format: (row: T) => string;
|
|
20
|
-
forceVisibility: ColumnVisibilityType;
|
|
21
|
-
visible: boolean;
|
|
22
|
-
getDefinition(): ColumnDefinition<T>;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnDirective<any>, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableColumnDirective<any>, "v-table-column", never, { "index": { "alias": "index"; "required": false; }; "id": { "alias": "id"; "required": false; }; "columnClass": { "alias": "columnClass"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "headerName": { "alias": "headerName"; "required": false; }; "width": { "alias": "width"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "format": { "alias": "format"; "required": false; }; "forceVisibility": { "alias": "forceVisibility"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, {}, ["template"], never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, InjectionToken, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Params } from '@angular/router';
|
|
3
|
-
import { LazyLoadEvent, Sort, SortDirectionType } from '@verisoft/core';
|
|
4
|
-
import { FieldAlignType } from '../../common';
|
|
5
|
-
export declare const TABLE_COMPONENT_TOKEN: InjectionToken<TableCore<any>>;
|
|
6
|
-
export declare const TABLE_COLUMN_PROVIDER: InjectionToken<unknown>;
|
|
7
|
-
export declare enum TableSelectionMode {
|
|
8
|
-
single = "single",
|
|
9
|
-
multiple = "multiple"
|
|
10
|
-
}
|
|
11
|
-
export declare enum TableButtonSeverity {
|
|
12
|
-
success = "success",
|
|
13
|
-
info = "info",
|
|
14
|
-
warning = "warning",
|
|
15
|
-
danger = "danger",
|
|
16
|
-
help = "help",
|
|
17
|
-
primary = "primary",
|
|
18
|
-
secondary = "secondary",
|
|
19
|
-
contrast = "contrast"
|
|
20
|
-
}
|
|
21
|
-
export declare enum ColumnVisibility {
|
|
22
|
-
visible = "visible",
|
|
23
|
-
hidden = "hidden",
|
|
24
|
-
default = "default"
|
|
25
|
-
}
|
|
26
|
-
export type TableSelectionModeType = keyof typeof TableSelectionMode;
|
|
27
|
-
export type TableButtonSeverityType = keyof typeof TableButtonSeverity;
|
|
28
|
-
export type ColumnVisibilityType = keyof typeof ColumnVisibility;
|
|
29
|
-
export interface TableCore<T> {
|
|
30
|
-
sorters: Sort[];
|
|
31
|
-
columns: ColumnDefinition<T>[];
|
|
32
|
-
data: T[];
|
|
33
|
-
total: number;
|
|
34
|
-
filter: Partial<T> | undefined;
|
|
35
|
-
loading: boolean;
|
|
36
|
-
scrollable: boolean;
|
|
37
|
-
pageSize: number;
|
|
38
|
-
currentPage: number;
|
|
39
|
-
showPaginator: boolean;
|
|
40
|
-
sortMultiple: boolean;
|
|
41
|
-
lazy: boolean;
|
|
42
|
-
selection: T[];
|
|
43
|
-
selectionMode: TableSelectionModeType | undefined;
|
|
44
|
-
showPageSizePicker: boolean;
|
|
45
|
-
entityKey: string | undefined;
|
|
46
|
-
selectionChange: EventEmitter<T[]>;
|
|
47
|
-
lazyLoad: EventEmitter<LazyLoadEvent>;
|
|
48
|
-
maximumColumnLength: number;
|
|
49
|
-
disableCustomClicks: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface TableSignal {
|
|
52
|
-
name: string;
|
|
53
|
-
symbol: symbol;
|
|
54
|
-
}
|
|
55
|
-
export interface ActionColumnsDefinition<T> {
|
|
56
|
-
severity?: TableButtonSeverity;
|
|
57
|
-
title?: string;
|
|
58
|
-
icon?: string;
|
|
59
|
-
tooltip?: string;
|
|
60
|
-
rounded?: boolean;
|
|
61
|
-
outlined?: boolean;
|
|
62
|
-
raised?: boolean;
|
|
63
|
-
badge?: string;
|
|
64
|
-
visible?: (row: T) => boolean;
|
|
65
|
-
routerLink?: (row: T) => string;
|
|
66
|
-
queryParams?: Params;
|
|
67
|
-
disabled?: boolean | ((row: T) => boolean);
|
|
68
|
-
onClick?: (row: T, event?: MouseEvent) => void;
|
|
69
|
-
}
|
|
70
|
-
export interface ColumnProvider<T> {
|
|
71
|
-
getDefinition(): ColumnDefinition<T>;
|
|
72
|
-
index: number;
|
|
73
|
-
}
|
|
74
|
-
export interface ColumnDefinition<T, _KEY = keyof T> {
|
|
75
|
-
id: string;
|
|
76
|
-
value?: (row: T, index?: number) => string;
|
|
77
|
-
headerName?: ((columnId: string, index?: number) => string) | string;
|
|
78
|
-
icon?: string | ((row?: T | undefined) => string);
|
|
79
|
-
type?: string;
|
|
80
|
-
sortable?: boolean;
|
|
81
|
-
format?: (row: T) => string;
|
|
82
|
-
routerLink?: (row: T) => string | string;
|
|
83
|
-
queryParams?: Params;
|
|
84
|
-
columnClass?: string;
|
|
85
|
-
template?: TemplateRef<{
|
|
86
|
-
$implicit: T;
|
|
87
|
-
}>;
|
|
88
|
-
actions?: ActionColumnsDefinition<T>[];
|
|
89
|
-
textAlign?: FieldAlignType;
|
|
90
|
-
width?: string | number;
|
|
91
|
-
forceVisibility?: ColumnVisibilityType;
|
|
92
|
-
visible?: boolean;
|
|
93
|
-
}
|
|
94
|
-
export declare function LinkRenderer<T>(text: string, href: string): (row: T, index: number | undefined) => string;
|
|
95
|
-
export declare function routerRenderer<T>(link: string, text: string): (row: T, index?: number | undefined) => {
|
|
96
|
-
text: string;
|
|
97
|
-
link: string;
|
|
98
|
-
};
|
|
99
|
-
export declare function Renderer<T>(fnc: (row: T) => string): (row: T) => string;
|
|
100
|
-
export declare class ColumnModel<T> {
|
|
101
|
-
readonly configuration: ColumnDefinition<T>;
|
|
102
|
-
sortDirection: SortDirectionType | undefined;
|
|
103
|
-
columnClass?: string;
|
|
104
|
-
queryParams?: Params;
|
|
105
|
-
routerLink?: (row: T) => string | string;
|
|
106
|
-
valueGetter: (row: T, index: number) => string;
|
|
107
|
-
headerGetter: (columnId: string, index: number) => string | string;
|
|
108
|
-
template?: TemplateRef<{
|
|
109
|
-
$implicit: T;
|
|
110
|
-
}>;
|
|
111
|
-
actions?: ActionColumnsDefinition<T>[];
|
|
112
|
-
sortable?: boolean;
|
|
113
|
-
id: string;
|
|
114
|
-
format: Function;
|
|
115
|
-
textAlign?: FieldAlignType;
|
|
116
|
-
width: string | undefined;
|
|
117
|
-
forceVisibility: ColumnVisibilityType;
|
|
118
|
-
visible: boolean;
|
|
119
|
-
constructor(configuration: ColumnDefinition<T>);
|
|
120
|
-
}
|
|
121
|
-
export declare class RowModel<T> {
|
|
122
|
-
row: T;
|
|
123
|
-
index?: number;
|
|
124
|
-
id: number | string;
|
|
125
|
-
selected: boolean;
|
|
126
|
-
marked?: boolean;
|
|
127
|
-
focused?: boolean;
|
|
128
|
-
expanded: boolean;
|
|
129
|
-
fnc?: void;
|
|
130
|
-
customRoute: string | undefined;
|
|
131
|
-
constructor(row: T, selected: boolean, expanded: boolean, marked?: boolean, index?: number, fnc?: void, customRoute?: string, entityKey?: string);
|
|
132
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './table-filter.model';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { BaseFormDirectiveCore } from '../base-form';
|
|
3
|
-
export declare const TABLE_FILTER_COMPONENT_TOKEN: InjectionToken<TableFilterCore<any>>;
|
|
4
|
-
export interface FilterDefinition {
|
|
5
|
-
optionLabel: string;
|
|
6
|
-
label: string;
|
|
7
|
-
optionValue?: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
filterType?: 'dropdown' | 'checkbox' | 'calendar' | 'multiselect';
|
|
10
|
-
initialValue?: any;
|
|
11
|
-
}
|
|
12
|
-
export interface TableFilterCore<T> extends BaseFormDirectiveCore<T> {
|
|
13
|
-
filterDefinitions: FilterDefinition[];
|
|
14
|
-
title: string;
|
|
15
|
-
hideSearch?: boolean;
|
|
16
|
-
debounceTime?: number;
|
|
17
|
-
}
|