coer-elements 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/components/index.d.ts +13 -0
- package/components/lib/coer-button/coer-button.component.d.ts +44 -0
- package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +28 -0
- package/components/lib/coer-filebox/coer-filebox.component.d.ts +33 -0
- package/components/lib/coer-form/coer-form.component.d.ts +33 -0
- package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
- package/components/lib/coer-grid/coer-grid.extension.d.ts +105 -0
- package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
- package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +56 -0
- package/components/lib/coer-page-title/coer-page-title.component.d.ts +12 -0
- package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +75 -0
- package/components/lib/coer-switch/coer-switch.component.d.ts +31 -0
- package/components/lib/coer-tab/coer-tab.component.d.ts +35 -0
- package/components/lib/coer-textarea/coer-textarea.component.d.ts +51 -0
- package/components/lib/coer-textbox/coer-textbox.component.d.ts +57 -0
- package/components/lib/components.module.d.ts +25 -4
- package/directives/index.d.ts +3 -0
- package/directives/lib/coer-ref.directive.d.ts +14 -0
- package/directives/lib/directives.module.d.ts +8 -0
- package/directives/lib/life-cycle.directive.d.ts +14 -0
- package/esm2022/components/index.mjs +14 -1
- package/esm2022/components/lib/coer-button/coer-button.component.mjs +133 -0
- package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +84 -0
- package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +104 -0
- package/esm2022/components/lib/coer-form/coer-form.component.mjs +102 -0
- package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +515 -0
- package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +412 -0
- package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +108 -0
- package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +260 -0
- package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +44 -0
- package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +339 -0
- package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +94 -0
- package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +116 -0
- package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +157 -0
- package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +196 -0
- package/esm2022/components/lib/components.module.mjs +101 -59
- package/esm2022/directives/index.mjs +4 -0
- package/esm2022/directives/lib/coer-ref.directive.mjs +23 -0
- package/esm2022/directives/lib/directives.module.mjs +25 -0
- package/esm2022/directives/lib/life-cycle.directive.mjs +29 -0
- package/esm2022/interfaces/coer-filebox/index.mjs +3 -0
- package/esm2022/interfaces/coer-grid/index.mjs +21 -0
- package/esm2022/interfaces/index.mjs +1 -3
- package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +2 -0
- package/esm2022/interfaces/lib/menu/menu-option-selected.interface.mjs +2 -0
- package/esm2022/interfaces/lib/menu/menu.interface.mjs +2 -0
- package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +2 -0
- package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +2 -0
- package/esm2022/interfaces/page-title/index.mjs +3 -0
- package/esm2022/pipes/index.mjs +5 -0
- package/esm2022/pipes/lib/html.pipe.mjs +18 -0
- package/esm2022/pipes/lib/no-image.pipe.mjs +23 -0
- package/esm2022/pipes/lib/numeric-format.pipe.mjs +15 -0
- package/esm2022/pipes/lib/pipes.module.mjs +31 -0
- package/esm2022/public_api.mjs +3 -1
- package/esm2022/signals/lib/breakpoint.signal.mjs +2 -2
- package/esm2022/signals/lib/is-loading.signal.mjs +2 -2
- package/esm2022/signals/lib/is-modal-open.signal.mjs +2 -2
- package/esm2022/tools/index.mjs +3 -2
- package/esm2022/tools/lib/breadcrumbs.class.mjs +2 -2
- package/esm2022/tools/lib/date-time.class.mjs +14 -7
- package/esm2022/tools/lib/files.class.mjs +2 -2
- package/esm2022/tools/lib/menu.class.mjs +23 -0
- package/esm2022/tools/lib/page.class.mjs +6 -6
- package/esm2022/tools/lib/screen.class.mjs +9 -1
- package/esm2022/tools/lib/source.class.mjs +3 -3
- package/esm2022/tools/lib/tools.mjs +220 -0
- package/fesm2022/coer-elements.mjs +3254 -455
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/interfaces/coer-filebox/index.d.ts +2 -0
- package/interfaces/coer-grid/index.d.ts +20 -0
- package/interfaces/index.d.ts +0 -2
- package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
- package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
- package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
- package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
- package/interfaces/lib/coer-grid/grid-column.interface.d.ts +22 -0
- package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
- package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
- package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
- package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-search.interface.d.ts +4 -0
- package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
- package/interfaces/lib/menu/menu-option-selected.interface.d.ts +9 -0
- package/interfaces/lib/menu/menu.interface.d.ts +6 -0
- package/interfaces/page-title/index.d.ts +2 -0
- package/package.json +1 -1
- package/pipes/index.d.ts +4 -0
- package/pipes/lib/html.pipe.d.ts +10 -0
- package/pipes/lib/no-image.pipe.d.ts +7 -0
- package/pipes/lib/numeric-format.pipe.d.ts +7 -0
- package/pipes/lib/pipes.module.d.ts +9 -0
- package/public_api.d.ts +2 -0
- package/signals/lib/is-loading.signal.d.ts +1 -1
- package/signals/lib/is-modal-open.signal.d.ts +1 -1
- package/src/interfaces/coer-filebox/index.ts +2 -0
- package/src/interfaces/coer-grid/index.ts +20 -0
- package/src/interfaces/index.ts +1 -3
- package/src/interfaces/lib/coer-filebox/file-image.interface.ts +14 -0
- package/src/interfaces/lib/coer-filebox/file.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-button-by-row.interface.ts +7 -0
- package/src/interfaces/lib/coer-grid/grid-checkbox.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-coer-numberbox.interface.ts +12 -0
- package/src/interfaces/lib/coer-grid/grid-coer-selectbox.interface.ts +9 -0
- package/src/interfaces/lib/coer-grid/grid-coer-switch.interface.ts +6 -0
- package/src/interfaces/lib/coer-grid/grid-coer-textbox.interface.ts +11 -0
- package/src/interfaces/lib/coer-grid/grid-column.interface.ts +23 -0
- package/src/interfaces/lib/coer-grid/grid-data-source.interface.ts +6 -0
- package/src/interfaces/lib/coer-grid/grid-header-button.interface.ts +8 -0
- package/src/interfaces/lib/coer-grid/grid-header-export-button.interface.ts +10 -0
- package/src/interfaces/lib/coer-grid/grid-header.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-import.interface.ts +4 -0
- package/src/interfaces/lib/coer-grid/grid-input-checkbox.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-input-switch-change.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-input-textbox.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-item.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-keyup-enter.interface.ts +6 -0
- package/src/interfaces/lib/coer-grid/grid-length.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-search.interface.ts +4 -0
- package/src/interfaces/lib/coer-grid/grid-sort.interface.ts +5 -0
- package/src/interfaces/lib/menu/menu-option-selected.interface.ts +10 -0
- package/src/interfaces/lib/menu/menu-selected.interface.ts +11 -0
- package/src/interfaces/lib/menu/menu.interface.ts +6 -0
- package/src/interfaces/menu/index.ts +3 -0
- package/src/interfaces/page-title/index.ts +2 -0
- package/tools/index.d.ts +2 -1
- package/tools/lib/breadcrumbs.class.d.ts +1 -1
- package/tools/lib/date-time.class.d.ts +4 -2
- package/tools/lib/menu.class.d.ts +8 -0
- package/tools/lib/page.class.d.ts +4 -3
- package/tools/lib/screen.class.d.ts +3 -1
- package/tools/lib/source.class.d.ts +1 -1
- package/tools/lib/{generi-tools.d.ts → tools.d.ts} +7 -5
- package/esm2022/interfaces/lib/breadcrumb.interface.mjs +0 -2
- package/esm2022/interfaces/lib/go-back.interface.mjs +0 -2
- package/esm2022/tools/lib/generi-tools.mjs +0 -199
- /package/interfaces/lib/{breadcrumb.interface.d.ts → page-title/breadcrumb.interface.d.ts} +0 -0
- /package/interfaces/lib/{go-back.interface.d.ts → page-title/go-back.interface.d.ts} +0 -0
- /package/src/interfaces/lib/{breadcrumb.interface.ts → page-title/breadcrumb.interface.ts} +0 -0
- /package/src/interfaces/lib/{go-back.interface.ts → page-title/go-back.interface.ts} +0 -0
- /package/src/styles/{coer-elements.scss → index.scss} +0 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
export * from '../lib/coer-grid/grid-button-by-row.interface';
|
2
|
+
export * from '../lib/coer-grid/grid-checkbox.interface';
|
3
|
+
export * from '../lib/coer-grid/grid-coer-numberbox.interface';
|
4
|
+
export * from '../lib/coer-grid/grid-coer-selectbox.interface';
|
5
|
+
export * from '../lib/coer-grid/grid-coer-switch.interface';
|
6
|
+
export * from '../lib/coer-grid/grid-coer-textbox.interface';
|
7
|
+
export * from '../lib/coer-grid/grid-column.interface';
|
8
|
+
export * from '../lib/coer-grid/grid-data-source.interface';
|
9
|
+
export * from '../lib/coer-grid/grid-header-button.interface';
|
10
|
+
export * from '../lib/coer-grid/grid-header-export-button.interface';
|
11
|
+
export * from '../lib/coer-grid/grid-header.interface';
|
12
|
+
export * from '../lib/coer-grid/grid-import.interface';
|
13
|
+
export * from '../lib/coer-grid/grid-input-checkbox.interface';
|
14
|
+
export * from '../lib/coer-grid/grid-input-switch-change.interface';
|
15
|
+
export * from '../lib/coer-grid/grid-input-textbox.interface';
|
16
|
+
export * from '../lib/coer-grid/grid-item.interface';
|
17
|
+
export * from '../lib/coer-grid/grid-keyup-enter.interface';
|
18
|
+
export * from '../lib/coer-grid/grid-length.interface';
|
19
|
+
export * from '../lib/coer-grid/grid-search.interface';
|
20
|
+
export * from '../lib/coer-grid/grid-sort.interface';
|
package/interfaces/index.d.ts
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
export interface IFileImage {
|
2
|
+
value: string | File | null | undefined;
|
3
|
+
name?: string;
|
4
|
+
width?: string;
|
5
|
+
maxWidth?: string;
|
6
|
+
height?: string;
|
7
|
+
maxHeight?: string;
|
8
|
+
marginTop?: string;
|
9
|
+
marginRight?: string;
|
10
|
+
marginBottom?: string;
|
11
|
+
marginLeft?: string;
|
12
|
+
allowDelete?: boolean;
|
13
|
+
allowExpand?: boolean;
|
14
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { IGridItem } from "./grid-item.interface";
|
2
|
+
export interface IGridButtonByRow<T> {
|
3
|
+
showEditButton?: boolean | ((item: IGridItem<T>) => boolean);
|
4
|
+
showDeleteButton?: boolean | ((item: IGridItem<T>) => boolean);
|
5
|
+
showGoButton?: boolean | ((item: IGridItem<T>) => boolean);
|
6
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export interface IGridCoerNumberBox {
|
2
|
+
isInput: boolean;
|
3
|
+
isDisabled?: boolean;
|
4
|
+
isValid?: boolean;
|
5
|
+
isInvalid?: boolean;
|
6
|
+
selectOnFocus?: boolean;
|
7
|
+
placeholder?: string;
|
8
|
+
textPosition?: 'left' | 'center' | 'right';
|
9
|
+
min?: number;
|
10
|
+
max?: number;
|
11
|
+
decimals?: number;
|
12
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export interface IGridCoerTextBox {
|
2
|
+
isInput: boolean;
|
3
|
+
isDisabled?: boolean;
|
4
|
+
isValid?: boolean;
|
5
|
+
isInvalid?: boolean;
|
6
|
+
selectOnFocus?: boolean;
|
7
|
+
placeholder?: string;
|
8
|
+
textPosition?: 'left' | 'center' | 'right';
|
9
|
+
minLength?: number;
|
10
|
+
maxLength?: number;
|
11
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { IGridCoerNumberBox } from "./grid-coer-numberbox.interface";
|
2
|
+
import { IGridCoerSelectBox } from "./grid-coer-selectbox.interface";
|
3
|
+
import { IGridCoerSwitch } from "./grid-coer-switch.interface";
|
4
|
+
import { IGridCoerTextBox } from "./grid-coer-textbox.interface";
|
5
|
+
import { IGridItem } from "./grid-item.interface";
|
6
|
+
export interface IGridColumn<T> {
|
7
|
+
property: string;
|
8
|
+
alias?: string;
|
9
|
+
width?: string;
|
10
|
+
textAlign?: 'left' | 'center' | 'right';
|
11
|
+
colorBlue?: boolean | ((item: IGridItem<T>) => boolean);
|
12
|
+
colorGreen?: boolean | ((item: IGridItem<T>) => boolean);
|
13
|
+
colorYellow?: boolean | ((item: IGridItem<T>) => boolean);
|
14
|
+
colorRed?: boolean | ((item: IGridItem<T>) => boolean);
|
15
|
+
typeNumber?: boolean | ((item: IGridItem<T>) => boolean);
|
16
|
+
typeDate?: boolean | ((item: IGridItem<T>) => boolean);
|
17
|
+
template?: string | ((item: IGridItem<T>) => string);
|
18
|
+
coerSwitch?: ((item: IGridItem<T>) => IGridCoerSwitch);
|
19
|
+
coerTextbox?: ((item: IGridItem<T>) => IGridCoerTextBox);
|
20
|
+
coerNumberbox?: ((item: IGridItem<T>) => IGridCoerNumberBox);
|
21
|
+
coerSelectbox?: ((item: IGridItem<T>) => IGridCoerSelectBox);
|
22
|
+
}
|
package/package.json
CHANGED
package/pipes/index.d.ts
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class HtmlPipe implements PipeTransform {
|
5
|
+
private sanitizer;
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
7
|
+
transform(value: string): any;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlPipe, never>;
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HtmlPipe, "html", false>;
|
10
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class NoImagePipe implements PipeTransform {
|
4
|
+
transform(value: string | File | null | undefined): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoImagePipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NoImagePipe, "noImage", false>;
|
7
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class NumericFormatPipe implements PipeTransform {
|
4
|
+
transform(value: string | number | null | undefined, decimals?: number): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericFormatPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumericFormatPipe, "numericFormat", false>;
|
7
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./html.pipe";
|
3
|
+
import * as i2 from "./no-image.pipe";
|
4
|
+
import * as i3 from "./numeric-format.pipe";
|
5
|
+
export declare class PipesModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.HtmlPipe, typeof i2.NoImagePipe, typeof i3.NumericFormatPipe], never, [typeof i1.HtmlPipe, typeof i2.NoImagePipe, typeof i3.NumericFormatPipe]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
|
9
|
+
}
|
package/public_api.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const isLoadingSIGNAL: import("@angular/core").WritableSignal<boolean>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const isModalOpenSIGNAL: import("@angular/core").WritableSignal<boolean>;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export * from '../lib/coer-grid/grid-button-by-row.interface';
|
2
|
+
export * from '../lib/coer-grid/grid-checkbox.interface';
|
3
|
+
export * from '../lib/coer-grid/grid-coer-numberbox.interface';
|
4
|
+
export * from '../lib/coer-grid/grid-coer-selectbox.interface';
|
5
|
+
export * from '../lib/coer-grid/grid-coer-switch.interface';
|
6
|
+
export * from '../lib/coer-grid/grid-coer-textbox.interface';
|
7
|
+
export * from '../lib/coer-grid/grid-column.interface';
|
8
|
+
export * from '../lib/coer-grid/grid-data-source.interface';
|
9
|
+
export * from '../lib/coer-grid/grid-header-button.interface';
|
10
|
+
export * from '../lib/coer-grid/grid-header-export-button.interface';
|
11
|
+
export * from '../lib/coer-grid/grid-header.interface';
|
12
|
+
export * from '../lib/coer-grid/grid-import.interface';
|
13
|
+
export * from '../lib/coer-grid/grid-input-checkbox.interface';
|
14
|
+
export * from '../lib/coer-grid/grid-input-switch-change.interface';
|
15
|
+
export * from '../lib/coer-grid/grid-input-textbox.interface';
|
16
|
+
export * from '../lib/coer-grid/grid-item.interface';
|
17
|
+
export * from '../lib/coer-grid/grid-keyup-enter.interface';
|
18
|
+
export * from '../lib/coer-grid/grid-length.interface';
|
19
|
+
export * from '../lib/coer-grid/grid-search.interface';
|
20
|
+
export * from '../lib/coer-grid/grid-sort.interface';
|
package/src/interfaces/index.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
export * from './lib/app-source.interface';
|
2
|
-
export * from './lib/breadcrumb.interface';
|
1
|
+
export * from './lib/app-source.interface';
|
3
2
|
export * from './lib/coer-ref.interface';
|
4
|
-
export * from './lib/go-back.interface';
|
5
3
|
export * from './lib/patch.interface';
|
6
4
|
export * from './lib/screen-size.interface';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export interface IFileImage {
|
2
|
+
value: string | File | null | undefined;
|
3
|
+
name?: string;
|
4
|
+
width?: string;
|
5
|
+
maxWidth?: string;
|
6
|
+
height?: string;
|
7
|
+
maxHeight?: string;
|
8
|
+
marginTop?: string;
|
9
|
+
marginRight?: string;
|
10
|
+
marginBottom?: string;
|
11
|
+
marginLeft?: string;
|
12
|
+
allowDelete?: boolean;
|
13
|
+
allowExpand?: boolean;
|
14
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IGridItem } from "./grid-item.interface";
|
2
|
+
|
3
|
+
export interface IGridButtonByRow<T> {
|
4
|
+
showEditButton?: boolean | ((item: IGridItem<T>) => boolean);
|
5
|
+
showDeleteButton?: boolean | ((item: IGridItem<T>) => boolean);
|
6
|
+
showGoButton?: boolean | ((item: IGridItem<T>) => boolean);
|
7
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export interface IGridCoerNumberBox {
|
2
|
+
isInput: boolean;
|
3
|
+
isDisabled?: boolean;
|
4
|
+
isValid?: boolean;
|
5
|
+
isInvalid?: boolean;
|
6
|
+
selectOnFocus?: boolean;
|
7
|
+
placeholder?: string;
|
8
|
+
textPosition?: 'left' | 'center' | 'right';
|
9
|
+
min?: number;
|
10
|
+
max?: number;
|
11
|
+
decimals?: number;
|
12
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export interface IGridCoerTextBox {
|
2
|
+
isInput: boolean;
|
3
|
+
isDisabled?: boolean;
|
4
|
+
isValid?: boolean;
|
5
|
+
isInvalid?: boolean;
|
6
|
+
selectOnFocus?: boolean;
|
7
|
+
placeholder?: string;
|
8
|
+
textPosition?: 'left' | 'center' | 'right';
|
9
|
+
minLength?: number;
|
10
|
+
maxLength?: number;
|
11
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { IGridCoerNumberBox } from "./grid-coer-numberbox.interface";
|
2
|
+
import { IGridCoerSelectBox } from "./grid-coer-selectbox.interface";
|
3
|
+
import { IGridCoerSwitch } from "./grid-coer-switch.interface";
|
4
|
+
import { IGridCoerTextBox } from "./grid-coer-textbox.interface";
|
5
|
+
import { IGridItem } from "./grid-item.interface";
|
6
|
+
|
7
|
+
export interface IGridColumn<T> {
|
8
|
+
property: string;
|
9
|
+
alias?: string;
|
10
|
+
width?: string;
|
11
|
+
textAlign?: 'left' | 'center' | 'right';
|
12
|
+
colorBlue?: boolean | ((item: IGridItem<T>) => boolean);
|
13
|
+
colorGreen?: boolean | ((item: IGridItem<T>) => boolean);
|
14
|
+
colorYellow?: boolean | ((item: IGridItem<T>) => boolean);
|
15
|
+
colorRed?: boolean | ((item: IGridItem<T>) => boolean);
|
16
|
+
typeNumber?: boolean | ((item: IGridItem<T>) => boolean);
|
17
|
+
typeDate?: boolean | ((item: IGridItem<T>) => boolean);
|
18
|
+
template?: string | ((item: IGridItem<T>) => string);
|
19
|
+
coerSwitch?: ((item: IGridItem<T>) => IGridCoerSwitch);
|
20
|
+
coerTextbox?: ((item: IGridItem<T>) => IGridCoerTextBox);
|
21
|
+
coerNumberbox?: ((item: IGridItem<T>) => IGridCoerNumberBox);
|
22
|
+
coerSelectbox?: ((item: IGridItem<T>) => IGridCoerSelectBox);
|
23
|
+
}
|
package/tools/index.d.ts
CHANGED
@@ -2,7 +2,8 @@ export * from './lib/breadcrumbs.class';
|
|
2
2
|
export * from './lib/control-value.class';
|
3
3
|
export * from './lib/date-time.class';
|
4
4
|
export * from './lib/files.class';
|
5
|
-
export * from './lib/
|
5
|
+
export * from './lib/tools';
|
6
|
+
export * from './lib/menu.class';
|
6
7
|
export * from './lib/page.class';
|
7
8
|
export * from './lib/screen.class';
|
8
9
|
export * from './lib/source.class';
|