coer-elements 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/components/coer-grid/index.d.ts +1 -0
- package/components/index.d.ts +13 -0
- package/components/lib/coer-button/coer-button.component.d.ts +1 -1
- 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-grid/coer-grid.templates.d.ts +9 -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 +24 -5
- 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/coer-grid/index.mjs +2 -0
- package/esm2022/components/index.mjs +14 -1
- package/esm2022/components/lib/coer-button/coer-button.component.mjs +2 -2
- 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-grid/coer-grid.templates.mjs +30 -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 +93 -57
- 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/coer-menu/menu-option-selected.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-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 +3296 -603
- 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/coer-menu/menu-option-selected.interface.d.ts +9 -0
- package/interfaces/lib/coer-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/images/no-image.png +0 -0
- package/src/images/no-user.png +0 -0
- package/src/interfaces/coer-filebox/index.ts +2 -0
- package/src/interfaces/coer-grid/index.ts +20 -0
- package/src/interfaces/coer-menu/index.ts +3 -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/coer-menu/menu-option-selected.interface.ts +10 -0
- package/src/interfaces/lib/coer-menu/menu-selected.interface.ts +11 -0
- package/src/interfaces/lib/coer-menu/menu.interface.ts +6 -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 @@
|
|
1
|
+
export * from '../lib/coer-grid/coer-grid.templates';
|
package/components/index.d.ts
CHANGED
@@ -1,3 +1,16 @@
|
|
1
1
|
export * from './lib/components.module';
|
2
2
|
export * from './lib/coer-alert/coer-alert.component';
|
3
3
|
export * from './lib/coer-button/coer-button.component';
|
4
|
+
export * from './lib/coer-checkbox/coer-checkbox.component';
|
5
|
+
export * from './lib/coer-filebox/coer-filebox.component';
|
6
|
+
export * from './lib/coer-form/coer-form.component';
|
7
|
+
export * from './lib/coer-grid/coer-grid.component';
|
8
|
+
export * from './lib/coer-modal/coer-modal.component';
|
9
|
+
export * from './lib/coer-numberbox/coer-numberbox.component';
|
10
|
+
export * from './lib/coer-page-title/coer-page-title.component';
|
11
|
+
export * from './lib/coer-selectbox/coer-selectbox.component';
|
12
|
+
export * from './lib/coer-switch/coer-switch.component';
|
13
|
+
export * from './lib/coer-tab/coer-tab.component';
|
14
|
+
export * from './lib/coer-textarea/coer-textarea.component';
|
15
|
+
export * from './lib/coer-textbox/coer-textbox.component';
|
16
|
+
export * from './coer-grid';
|
@@ -8,7 +8,7 @@ export declare class CoerButton implements OnInit, OnDestroy {
|
|
8
8
|
id: string;
|
9
9
|
color: import("@angular/core").InputSignal<"warning" | "danger" | "success" | "default" | "primary" | "secondary" | "navigation">;
|
10
10
|
type: import("@angular/core").InputSignal<"icon" | "filled" | "outline" | "icon-outline" | "icon-no-border">;
|
11
|
-
icon: import("@angular/core").InputSignal<"" | "delete" | "
|
11
|
+
icon: import("@angular/core").InputSignal<"" | "delete" | "new" | "save" | "cancel" | "import" | "excel" | "menu" | "edit" | "go" | "back">;
|
12
12
|
iconPosition: import("@angular/core").InputSignal<"left" | "right">;
|
13
13
|
animation: import("@angular/core").InputSignal<boolean>;
|
14
14
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
2
|
+
import { ControlValue } from '../../../tools/lib/control-value.class';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CoerCheckbox extends ControlValue implements AfterViewInit {
|
5
|
+
_value: boolean;
|
6
|
+
protected _id: string;
|
7
|
+
private _isLoading;
|
8
|
+
set value(value: boolean | null | undefined);
|
9
|
+
id: import("@angular/core").InputSignal<string>;
|
10
|
+
label: import("@angular/core").InputSignal<string>;
|
11
|
+
labelPosition: import("@angular/core").InputSignal<"before" | "after">;
|
12
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
13
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
14
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
15
|
+
ignoreModel: import("@angular/core").InputSignal<boolean>;
|
16
|
+
onChange: import("@angular/core").OutputEmitterRef<boolean>;
|
17
|
+
get value(): boolean | null | undefined;
|
18
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
19
|
+
ngAfterViewInit(): void;
|
20
|
+
SetValue(value: boolean): void;
|
21
|
+
writeValue(value: boolean): void;
|
22
|
+
/** */
|
23
|
+
Check(): void;
|
24
|
+
/** */
|
25
|
+
Uncheck(): void;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerCheckbox, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerCheckbox, "coer-checkbox", never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isInvisible": { "alias": "isInvisible"; "required": false; "isSignal": true; }; "ignoreModel": { "alias": "ignoreModel"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
28
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
2
|
+
import { IFile, IFileImage } from '../../../interfaces/coer-filebox';
|
3
|
+
import { CoerAlert } from '../../lib/coer-alert/coer-alert.component';
|
4
|
+
import { CoerModal } from '../../lib/coer-modal/coer-modal.component';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class CoerFilebox {
|
7
|
+
protected readonly alert: CoerAlert;
|
8
|
+
protected IsNull: <T>(value: T | null | undefined) => boolean;
|
9
|
+
protected IsNotNull: <T>(value: T | null | undefined) => boolean;
|
10
|
+
protected inputFileImage: import("@angular/core").Signal<ElementRef<any>>;
|
11
|
+
protected modal: import("@angular/core").Signal<CoerModal>;
|
12
|
+
protected base64: string;
|
13
|
+
protected _image: IFileImage | null;
|
14
|
+
private readonly imageExtensions;
|
15
|
+
type: import("@angular/core").InputSignal<"image">;
|
16
|
+
multiple: import("@angular/core").InputSignal<boolean>;
|
17
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
18
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
19
|
+
set image(value: IFileImage | null | undefined);
|
20
|
+
onSelected: import("@angular/core").OutputEmitterRef<IFile[]>;
|
21
|
+
onDeleteImage: import("@angular/core").OutputEmitterRef<void>;
|
22
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
23
|
+
/** */
|
24
|
+
protected UploadImages(event: any): Promise<void>;
|
25
|
+
/** */
|
26
|
+
private GetExtensionFile;
|
27
|
+
/** */
|
28
|
+
protected DeleteImage(event: any): void;
|
29
|
+
/** */
|
30
|
+
protected ExpandImage(event: any): void;
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerFilebox, never>;
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerFilebox, "coer-filebox", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; }; }, { "onSelected": "onSelected"; "onDeleteImage": "onDeleteImage"; }, never, never, false, never>;
|
33
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class CoerForm {
|
4
|
+
private alert;
|
5
|
+
formGroup: import("@angular/core").InputSignal<FormGroup<any>>;
|
6
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
7
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
8
|
+
protected get _isDisabled(): boolean;
|
9
|
+
/** */
|
10
|
+
TouchForm(): void;
|
11
|
+
/** */
|
12
|
+
IsInvalidControl: (formControlName: string) => boolean;
|
13
|
+
/** */
|
14
|
+
SetControlValue(formControlName: string, value: any): void;
|
15
|
+
/** */
|
16
|
+
GetControlValue(formControlName: string): any;
|
17
|
+
/** Get form value */
|
18
|
+
GetValue<T>(): T;
|
19
|
+
/** */
|
20
|
+
Reset<T>(properties?: T | null): void;
|
21
|
+
/**
|
22
|
+
* Mark all controls as touched.
|
23
|
+
* If form is invalid emit a warning and focus first invalid control.
|
24
|
+
*/
|
25
|
+
IsValid(): {
|
26
|
+
isValid: boolean;
|
27
|
+
formValue: any;
|
28
|
+
};
|
29
|
+
/** Focus the especified control or first invalid control */
|
30
|
+
Focus(formControl?: string | null): void;
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerForm, never>;
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerForm, "coer-form", never, { "formGroup": { "alias": "formGroup"; "required": true; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
33
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { CoerGridExtension } from './coer-grid.extension';
|
2
|
+
import { IGridLength } from '../../../interfaces/coer-grid';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CoerGrid<T> extends CoerGridExtension<T> {
|
5
|
+
dataSource: import("@angular/core").Signal<T[]>;
|
6
|
+
selectedItems: import("@angular/core").Signal<T[]>;
|
7
|
+
get isValid(): boolean;
|
8
|
+
protected gridLength: import("@angular/core").Signal<IGridLength>;
|
9
|
+
/** */
|
10
|
+
FocusSearch(): void;
|
11
|
+
/** */
|
12
|
+
SelectSearch(): void;
|
13
|
+
/** */
|
14
|
+
GetRowBy<T>(callback: (row: T) => boolean): T | null;
|
15
|
+
/** */
|
16
|
+
Import(event?: any): Promise<void>;
|
17
|
+
/** */
|
18
|
+
Export(exportFile?: boolean | undefined): void;
|
19
|
+
/** */
|
20
|
+
protected InputChange(indexRow: number, columnName: string, value: any, input: 'coer-textbox' | 'coer-numberbox' | 'coer-selectbox' | 'coer-switch' | 'coer-textbox-search'): void;
|
21
|
+
/** */
|
22
|
+
protected KeyupEnter(indexColumn: number, row: any, input: 'coer-textbox' | 'coer-numberbox' | 'coer-textbox-search' | 'coer-selectbox', value: any): void;
|
23
|
+
/** */
|
24
|
+
private NextInput;
|
25
|
+
/** */
|
26
|
+
FocusInput(indexRow?: number, indexColumn?: number): void;
|
27
|
+
/** */
|
28
|
+
FocusRow(callback: (row: T) => boolean): void;
|
29
|
+
/** */
|
30
|
+
Sort(columnName: string): Promise<void>;
|
31
|
+
/** */
|
32
|
+
protected ClickCheck(id: string, checked: boolean, all: boolean, row?: any): void;
|
33
|
+
/** */
|
34
|
+
CheckAll(): void;
|
35
|
+
/** */
|
36
|
+
UncheckAll(): void;
|
37
|
+
/** */
|
38
|
+
CheckBy(callback: (row: T) => boolean): void;
|
39
|
+
/** */
|
40
|
+
UncheckBy(callback: (row: T) => boolean): void;
|
41
|
+
/** */
|
42
|
+
protected ClickOnRow(row: T): void;
|
43
|
+
/** Inserts new elements at the start */
|
44
|
+
Unshift(row: T): void;
|
45
|
+
/** Appends new elements to the end */
|
46
|
+
Push(row: T): void;
|
47
|
+
/** Delete Row By index */
|
48
|
+
DeleteRow(indexRow: number): Promise<void>;
|
49
|
+
/** Delete row list by callback */
|
50
|
+
DeleteRowsBy(callback: (row: T) => boolean): Promise<void>;
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerGrid<any>, never>;
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerGrid<any>, "coer-grid", never, {}, {}, never, ["*"], false, never>;
|
53
|
+
}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import { IGridButtonByRow, IGridColumn, IGridDataSource, IGridImport, IGridHeaderButton, IGridHeaderExportButton, IGridKeyupEnter, IGridSearch, IGridInputSwitchChange, IGridInputTextbox, IGridSort, IGridCheckbox, IGridInputCheckbox, IGridHeader } from "../../../interfaces/coer-grid";
|
2
|
+
import { AfterViewInit, ElementRef } from "@angular/core";
|
3
|
+
import { CoerAlert } from "../../lib/coer-alert/coer-alert.component";
|
4
|
+
import { CoerCheckbox } from "../../lib/coer-checkbox/coer-checkbox.component";
|
5
|
+
import { CoerNumberBox } from "../../lib/coer-numberbox/coer-numberbox.component";
|
6
|
+
import { CoerSelectbox } from "../../lib/coer-selectbox/coer-selectbox.component";
|
7
|
+
import { CoerTextBox } from "../../lib/coer-textbox/coer-textbox.component";
|
8
|
+
import { ControlValue } from '../../../tools/lib/control-value.class';
|
9
|
+
import { DateTime } from '../../../tools/lib/date-time.class';
|
10
|
+
import * as i0 from "@angular/core";
|
11
|
+
export declare class CoerGridExtension<T> extends ControlValue implements AfterViewInit {
|
12
|
+
protected readonly alert: CoerAlert;
|
13
|
+
protected inputFile: import("@angular/core").Signal<ElementRef<any>>;
|
14
|
+
protected inputSearch: import("@angular/core").Signal<CoerTextBox>;
|
15
|
+
protected coerTextboxList: import("@angular/core").Signal<readonly CoerTextBox[]>;
|
16
|
+
protected coerNumberboxList: import("@angular/core").Signal<readonly CoerNumberBox[]>;
|
17
|
+
protected coerSelectboxList: import("@angular/core").Signal<readonly CoerSelectbox<any>[]>;
|
18
|
+
protected coerCheckboxList: import("@angular/core").Signal<readonly CoerCheckbox[]>;
|
19
|
+
protected _value: T[];
|
20
|
+
protected value_signal: import("@angular/core").WritableSignal<T[]>;
|
21
|
+
protected _gridSearch: import("@angular/core").WritableSignal<string | number>;
|
22
|
+
protected _isLoading: boolean;
|
23
|
+
protected _isLoadingMessage: boolean;
|
24
|
+
protected _id: string;
|
25
|
+
protected _expandedGroups: string[];
|
26
|
+
protected _enableAnimations: boolean;
|
27
|
+
protected _indexFocus: import("@angular/core").WritableSignal<number>;
|
28
|
+
protected _sort: import("@angular/core").WritableSignal<IGridSort>;
|
29
|
+
protected GetNumericFormat: (value: string | number | null | undefined, decimals?: number) => string;
|
30
|
+
protected GetDateFormat: typeof DateTime.GetDateFormat;
|
31
|
+
columns: import("@angular/core").InputSignal<IGridColumn<T>[]>;
|
32
|
+
cleanColumnName: import("@angular/core").InputSignal<boolean>;
|
33
|
+
addButton: IGridHeaderButton;
|
34
|
+
exportButton: IGridHeaderExportButton;
|
35
|
+
importButton: IGridHeaderButton;
|
36
|
+
search: IGridSearch;
|
37
|
+
buttonByRow: IGridButtonByRow<T>;
|
38
|
+
checkbox: IGridCheckbox;
|
39
|
+
tooltipByRow: import("@angular/core").InputSignal<string>;
|
40
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
41
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
42
|
+
rowsByPage: import("@angular/core").InputSignal<number>;
|
43
|
+
groupBy: import("@angular/core").InputSignal<string>;
|
44
|
+
showColumnGrouped: import("@angular/core").InputSignal<boolean>;
|
45
|
+
rowsByGroup: import("@angular/core").InputSignal<number>;
|
46
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
47
|
+
showFooter: import("@angular/core").InputSignal<boolean>;
|
48
|
+
width: import("@angular/core").InputSignal<string>;
|
49
|
+
MinWidth: import("@angular/core").InputSignal<string>;
|
50
|
+
MaxWidth: import("@angular/core").InputSignal<string>;
|
51
|
+
height: import("@angular/core").InputSignal<string>;
|
52
|
+
minHeight: import("@angular/core").InputSignal<string>;
|
53
|
+
maxHeight: import("@angular/core").InputSignal<string>;
|
54
|
+
margin: import("@angular/core").InputSignal<string>;
|
55
|
+
enableSort: import("@angular/core").InputSignal<boolean>;
|
56
|
+
enableRowFocus: import("@angular/core").InputSignal<boolean>;
|
57
|
+
onClickAdd: import("@angular/core").OutputEmitterRef<void>;
|
58
|
+
onClickImport: import("@angular/core").OutputEmitterRef<IGridImport<T>>;
|
59
|
+
onClickExport: import("@angular/core").OutputEmitterRef<T[]>;
|
60
|
+
onClickRow: import("@angular/core").OutputEmitterRef<T>;
|
61
|
+
onDoubleClickRow: import("@angular/core").OutputEmitterRef<T>;
|
62
|
+
onClickDeleteRow: import("@angular/core").OutputEmitterRef<T>;
|
63
|
+
onClickEditRow: import("@angular/core").OutputEmitterRef<T>;
|
64
|
+
onClickGoRow: import("@angular/core").OutputEmitterRef<T>;
|
65
|
+
onKeyupEnter: import("@angular/core").OutputEmitterRef<IGridKeyupEnter>;
|
66
|
+
onKeyupEnterLast: import("@angular/core").OutputEmitterRef<void>;
|
67
|
+
onSwitchChange: import("@angular/core").OutputEmitterRef<IGridInputSwitchChange<T>>;
|
68
|
+
onTextboxChange: import("@angular/core").OutputEmitterRef<IGridInputTextbox<T>>;
|
69
|
+
onSelectboxChange: import("@angular/core").OutputEmitterRef<IGridInputTextbox<T>>;
|
70
|
+
onCheckboxChange: import("@angular/core").OutputEmitterRef<IGridInputCheckbox<T>>;
|
71
|
+
protected _isDisabled: import("@angular/core").Signal<boolean>;
|
72
|
+
protected _isGrouped: import("@angular/core").Signal<boolean>;
|
73
|
+
protected get _height(): string;
|
74
|
+
protected get _onlyOneCheck(): boolean | undefined;
|
75
|
+
ngAfterViewInit(): void;
|
76
|
+
SetValue(value: T[]): void;
|
77
|
+
writeValue(value: T[]): void;
|
78
|
+
protected gridColumns: import("@angular/core").Signal<IGridHeader[]>;
|
79
|
+
protected gridDataSource: import("@angular/core").Signal<IGridDataSource[]>;
|
80
|
+
protected gridDataSourceFiltered: import("@angular/core").Signal<T[]>;
|
81
|
+
/** Get Column Configuration */
|
82
|
+
protected _GetColumnConfig: (columnName: string) => IGridColumn<T> | undefined;
|
83
|
+
/** Clean Name or get alias */
|
84
|
+
protected _GetColumnName: (columnName: string) => string;
|
85
|
+
/** */
|
86
|
+
protected _GetShortIcon: (columnName: string) => "" | "fa-solid fa-arrow-up-wide-short" | "fa-solid fa-arrow-down-short-wide";
|
87
|
+
/** */
|
88
|
+
protected _GetId: (indexRow: number, indexColumn: number, suffix?: string) => string;
|
89
|
+
/** */
|
90
|
+
protected _GetCellValue: (row: any, columnName: string) => any;
|
91
|
+
/** */
|
92
|
+
protected _GetTooltip: (prefix: string, row: any, suffix?: string) => string;
|
93
|
+
/** */
|
94
|
+
protected _HideRow: (group: IGridDataSource) => boolean;
|
95
|
+
/** */
|
96
|
+
protected _IsCellType(property: string, data: any, type: 'number' | 'date' | 'template' | 'coerTextbox' | 'coerNumberbox' | 'coerSelectbox' | 'coerSwitch'): boolean;
|
97
|
+
/** */
|
98
|
+
protected _IsCellColor(property: string, data: any, color: 'colorBlue' | 'colorGreen' | 'colorYellow' | 'colorRed'): boolean;
|
99
|
+
/** */
|
100
|
+
protected GetAttribute(property: string, data: any, attribute: string, type: 'coerSwitch' | 'coerTextbox' | 'coerNumberbox' | 'coerSelectbox' | 'defaul-cell'): any;
|
101
|
+
/** */
|
102
|
+
protected ButtonByRow(property: 'showDeleteButton' | 'showEditButton' | 'showGoButton', data?: any): boolean;
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerGridExtension<any>, never>;
|
104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerGridExtension<any>, "coer-grid-extension", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "cleanColumnName": { "alias": "cleanColumnName"; "required": false; "isSignal": true; }; "addButton": { "alias": "addButton"; "required": false; }; "exportButton": { "alias": "exportButton"; "required": false; }; "importButton": { "alias": "importButton"; "required": false; }; "search": { "alias": "search"; "required": false; }; "buttonByRow": { "alias": "buttonByRow"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "tooltipByRow": { "alias": "tooltipByRow"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "rowsByPage": { "alias": "rowsByPage"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "showColumnGrouped": { "alias": "showColumnGrouped"; "required": false; "isSignal": true; }; "rowsByGroup": { "alias": "rowsByGroup"; "required": false; "isSignal": true; }; "isInvisible": { "alias": "isInvisible"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "MinWidth": { "alias": "MinWidth"; "required": false; "isSignal": true; }; "MaxWidth": { "alias": "MaxWidth"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "margin": { "alias": "margin"; "required": false; "isSignal": true; }; "enableSort": { "alias": "enableSort"; "required": false; "isSignal": true; }; "enableRowFocus": { "alias": "enableRowFocus"; "required": false; "isSignal": true; }; }, { "onClickAdd": "onClickAdd"; "onClickImport": "onClickImport"; "onClickExport": "onClickExport"; "onClickRow": "onClickRow"; "onDoubleClickRow": "onDoubleClickRow"; "onClickDeleteRow": "onClickDeleteRow"; "onClickEditRow": "onClickEditRow"; "onClickGoRow": "onClickGoRow"; "onKeyupEnter": "onKeyupEnter"; "onKeyupEnterLast": "onKeyupEnterLast"; "onSwitchChange": "onSwitchChange"; "onTextboxChange": "onTextboxChange"; "onSelectboxChange": "onSelectboxChange"; "onCheckboxChange": "onCheckboxChange"; }, never, never, false, never>;
|
105
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IGridCoerSwitch, IGridCoerTextBox, IGridItem } from "../../../interfaces/coer-grid";
|
2
|
+
export declare const GridTemplates: {
|
3
|
+
/** Template for boolean property */
|
4
|
+
isActiveTemplate: (item: IGridItem<any>) => string;
|
5
|
+
/** Template for boolean property */
|
6
|
+
coerSwitchTemplate: (item: IGridItem<any>) => IGridCoerSwitch;
|
7
|
+
/** Template for text property */
|
8
|
+
coerTextboxTemplate: (item: IGridItem<any>) => IGridCoerTextBox;
|
9
|
+
};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
2
|
+
import { ICoerRef } from '../../../interfaces';
|
3
|
+
import { Modal } from 'bootstrap';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class CoerModal implements OnInit {
|
6
|
+
contentRef: any;
|
7
|
+
protected _id: string;
|
8
|
+
protected _isOpen: boolean;
|
9
|
+
protected _modal: Modal;
|
10
|
+
protected _isModalOpen: WritableSignal<boolean>;
|
11
|
+
private windowWidth;
|
12
|
+
id: string;
|
13
|
+
title: import("@angular/core").InputSignal<string>;
|
14
|
+
icon: import("@angular/core").InputSignal<string>;
|
15
|
+
showCloseButton: import("@angular/core").InputSignal<boolean>;
|
16
|
+
width: import("@angular/core").InputSignal<"small" | "full">;
|
17
|
+
height: import("@angular/core").InputSignal<string>;
|
18
|
+
maxHeight: import("@angular/core").InputSignal<string>;
|
19
|
+
get isOpen(): boolean;
|
20
|
+
protected get _width(): string;
|
21
|
+
protected contentList: import("@angular/core").Signal<ICoerRef[]>;
|
22
|
+
protected header: import("@angular/core").Signal<ICoerRef | null>;
|
23
|
+
protected body: import("@angular/core").Signal<ICoerRef | null>;
|
24
|
+
protected footer: import("@angular/core").Signal<ICoerRef | null>;
|
25
|
+
protected _title: import("@angular/core").Signal<string>;
|
26
|
+
protected _icon: import("@angular/core").Signal<string>;
|
27
|
+
onOpen: import("@angular/core").OutputEmitterRef<void>;
|
28
|
+
onClose: import("@angular/core").OutputEmitterRef<void>;
|
29
|
+
protected IsNull: <T>(value: T | null | undefined) => boolean;
|
30
|
+
protected IsNotNull: <T>(value: T | null | undefined) => boolean;
|
31
|
+
ngOnInit(): void;
|
32
|
+
/** */
|
33
|
+
Open(): void;
|
34
|
+
/** */
|
35
|
+
Close(): void;
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerModal, never>;
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerModal, "coer-modal", never, { "id": { "alias": "id"; "required": false; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "onOpen": "onOpen"; "onClose": "onClose"; }, ["contentRef"], ["*"], false, never>;
|
38
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
2
|
+
import { CoerAlert } from '../../lib/coer-alert/coer-alert.component';
|
3
|
+
import { ControlValue } from '../../../tools/lib/control-value.class';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class CoerNumberBox extends ControlValue implements OnInit {
|
6
|
+
protected readonly alert: CoerAlert;
|
7
|
+
_value: string | number;
|
8
|
+
protected matFormField: import("@angular/core").Signal<ElementRef<any>>;
|
9
|
+
protected coerNumberbox: import("@angular/core").Signal<ElementRef<any>>;
|
10
|
+
protected _id: string;
|
11
|
+
protected _isLoadingEvent: import("@angular/core").WritableSignal<boolean>;
|
12
|
+
private element;
|
13
|
+
protected hideCaret: boolean;
|
14
|
+
set value(value: number | string | null | undefined);
|
15
|
+
id: string;
|
16
|
+
label: import("@angular/core").InputSignal<string>;
|
17
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
18
|
+
min: import("@angular/core").InputSignal<number>;
|
19
|
+
max: import("@angular/core").InputSignal<number>;
|
20
|
+
decimals: import("@angular/core").InputSignal<number>;
|
21
|
+
width: import("@angular/core").InputSignal<string>;
|
22
|
+
minWidth: import("@angular/core").InputSignal<string>;
|
23
|
+
maxWidth: import("@angular/core").InputSignal<string>;
|
24
|
+
marginTop: import("@angular/core").InputSignal<string>;
|
25
|
+
marginRight: import("@angular/core").InputSignal<string>;
|
26
|
+
marginBottom: import("@angular/core").InputSignal<string>;
|
27
|
+
marginLeft: import("@angular/core").InputSignal<string>;
|
28
|
+
isInvalid: import("@angular/core").InputSignal<boolean>;
|
29
|
+
isValid: import("@angular/core").InputSignal<boolean>;
|
30
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
31
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
32
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
33
|
+
selectOnFocus: import("@angular/core").InputSignal<boolean>;
|
34
|
+
textPosition: import("@angular/core").InputSignal<"left" | "right" | "center">;
|
35
|
+
onKeyupEnter: import("@angular/core").OutputEmitterRef<string | number>;
|
36
|
+
onInput: import("@angular/core").OutputEmitterRef<string | number>;
|
37
|
+
ngOnInit(): void;
|
38
|
+
get value(): number | string | null | undefined;
|
39
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
40
|
+
protected floatLabel: import("@angular/core").Signal<"auto" | "always">;
|
41
|
+
protected paddingRight: import("@angular/core").Signal<"0px" | "18px">;
|
42
|
+
SetValue(value: string | number): void;
|
43
|
+
writeValue(value: string | number): void;
|
44
|
+
/** */
|
45
|
+
private OnlyNumbers;
|
46
|
+
/** */
|
47
|
+
private ValidateRangeValue;
|
48
|
+
/** */
|
49
|
+
Focus(timeout?: number): void;
|
50
|
+
/** */
|
51
|
+
Select(timeout?: number): void;
|
52
|
+
/** */
|
53
|
+
Blur(): void;
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerNumberBox, never>;
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerNumberBox, "coer-numberbox", never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "decimals": { "alias": "decimals"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "marginTop": { "alias": "marginTop"; "required": false; "isSignal": true; }; "marginRight": { "alias": "marginRight"; "required": false; "isSignal": true; }; "marginBottom": { "alias": "marginBottom"; "required": false; "isSignal": true; }; "marginLeft": { "alias": "marginLeft"; "required": false; "isSignal": true; }; "isInvalid": { "alias": "isInvalid"; "required": false; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isReadonly": { "alias": "isReadonly"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "textPosition": { "alias": "textPosition"; "required": false; "isSignal": true; }; }, { "onKeyupEnter": "onKeyupEnter"; "onInput": "onInput"; }, never, never, false, never>;
|
56
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { IBreadcrumb, IGoBack } from '../../../interfaces/page-title';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class CoerPageTitle {
|
4
|
+
title: string | null;
|
5
|
+
showNavigation: boolean;
|
6
|
+
breadcrumbs: IBreadcrumb[];
|
7
|
+
goBack: IGoBack;
|
8
|
+
showInformation: boolean;
|
9
|
+
protected get _icon(): string;
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerPageTitle, never>;
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerPageTitle, "coer-page-title", never, { "title": { "alias": "title"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; "goBack": { "alias": "goBack"; "required": false; }; "showInformation": { "alias": "showInformation"; "required": false; }; }, {}, never, never, false, never>;
|
12
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
2
|
+
import { ControlValue } from '../../../tools/lib/control-value.class';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CoerSelectbox<T> extends ControlValue implements OnInit {
|
5
|
+
protected _value: T | null;
|
6
|
+
private readonly _scrollByRow;
|
7
|
+
protected _coerTextBox: import("@angular/core").Signal<ElementRef<any>>;
|
8
|
+
protected _id: string;
|
9
|
+
protected _index: import("@angular/core").WritableSignal<number>;
|
10
|
+
protected _search: import("@angular/core").WritableSignal<string>;
|
11
|
+
protected _isOpen: import("@angular/core").WritableSignal<boolean>;
|
12
|
+
protected _isDirty: import("@angular/core").WritableSignal<boolean>;
|
13
|
+
protected _isOverMenu: import("@angular/core").WritableSignal<boolean>;
|
14
|
+
protected _isLoadingEvent: import("@angular/core").WritableSignal<boolean>;
|
15
|
+
protected _scroll: import("@angular/core").WritableSignal<number>;
|
16
|
+
protected _textbox: HTMLInputElement;
|
17
|
+
protected _dropDownMenu: HTMLElement;
|
18
|
+
protected _container: HTMLElement;
|
19
|
+
set value(value: T | null | undefined);
|
20
|
+
id: string;
|
21
|
+
label: import("@angular/core").InputSignal<string>;
|
22
|
+
dataSource: import("@angular/core").InputSignal<T[]>;
|
23
|
+
propDisplay: import("@angular/core").InputSignal<string>;
|
24
|
+
rowsByPage: import("@angular/core").InputSignal<number>;
|
25
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
26
|
+
width: import("@angular/core").InputSignal<string>;
|
27
|
+
minWidth: import("@angular/core").InputSignal<string>;
|
28
|
+
maxWidth: import("@angular/core").InputSignal<string>;
|
29
|
+
marginTop: import("@angular/core").InputSignal<string>;
|
30
|
+
marginRight: import("@angular/core").InputSignal<string>;
|
31
|
+
marginBottom: import("@angular/core").InputSignal<string>;
|
32
|
+
marginLeft: import("@angular/core").InputSignal<string>;
|
33
|
+
isInvalid: import("@angular/core").InputSignal<boolean>;
|
34
|
+
isValid: import("@angular/core").InputSignal<boolean>;
|
35
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
36
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
37
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
38
|
+
onSelected: import("@angular/core").OutputEmitterRef<T>;
|
39
|
+
ngOnInit(): void;
|
40
|
+
get value(): T | null | undefined;
|
41
|
+
protected get _displayed(): string;
|
42
|
+
protected get _placeholder(): string;
|
43
|
+
protected get _showCancel(): boolean;
|
44
|
+
protected get paddingRight(): string;
|
45
|
+
protected get widthIcons(): string;
|
46
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
47
|
+
protected floatLabel: import("@angular/core").Signal<"auto" | "always">;
|
48
|
+
protected _dataSource: import("@angular/core").Signal<any[]>;
|
49
|
+
/** */
|
50
|
+
protected SetValue(_value: any): void;
|
51
|
+
/** */
|
52
|
+
writeValue(_value: any): void;
|
53
|
+
/** */
|
54
|
+
private SetEvents;
|
55
|
+
/** */
|
56
|
+
protected GetIndexRow: (item: any) => number;
|
57
|
+
/** */
|
58
|
+
protected GetDisplay: (item: any) => string;
|
59
|
+
/** */
|
60
|
+
protected SelectItem(item: any): void;
|
61
|
+
/** */
|
62
|
+
Unselect(): void;
|
63
|
+
/** */
|
64
|
+
Focus(timeout?: number): void;
|
65
|
+
/** */
|
66
|
+
Blur(): void;
|
67
|
+
/** */
|
68
|
+
private Open;
|
69
|
+
/** */
|
70
|
+
private Close;
|
71
|
+
/** */
|
72
|
+
protected Search(_value: string | number): void;
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerSelectbox<any>, never>;
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerSelectbox<any>, "coer-selectbox", never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "propDisplay": { "alias": "propDisplay"; "required": false; "isSignal": true; }; "rowsByPage": { "alias": "rowsByPage"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "marginTop": { "alias": "marginTop"; "required": false; "isSignal": true; }; "marginRight": { "alias": "marginRight"; "required": false; "isSignal": true; }; "marginBottom": { "alias": "marginBottom"; "required": false; "isSignal": true; }; "marginLeft": { "alias": "marginLeft"; "required": false; "isSignal": true; }; "isInvalid": { "alias": "isInvalid"; "required": false; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isReadonly": { "alias": "isReadonly"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; }, { "onSelected": "onSelected"; }, never, never, false, never>;
|
75
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { MatSlideToggle } from '@angular/material/slide-toggle';
|
3
|
+
import { ControlValue } from '../../../tools/lib/control-value.class';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class CoerSwitch extends ControlValue implements OnInit, OnDestroy {
|
6
|
+
protected _value: boolean;
|
7
|
+
protected _id: string;
|
8
|
+
private _tooltip;
|
9
|
+
private _tooltipElement;
|
10
|
+
coerSwitch: MatSlideToggle;
|
11
|
+
set value(value: boolean | null | undefined);
|
12
|
+
id: string;
|
13
|
+
label: import("@angular/core").InputSignal<string>;
|
14
|
+
labelPosition: import("@angular/core").InputSignal<"before" | "after">;
|
15
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
16
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
17
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
18
|
+
tooltipPosition: import("@angular/core").InputSignal<"left" | "right" | "top" | "bottom">;
|
19
|
+
set tooltip(value: string);
|
20
|
+
onChange: import("@angular/core").OutputEmitterRef<boolean>;
|
21
|
+
ngOnInit(): void;
|
22
|
+
ngOnDestroy(): void;
|
23
|
+
get value(): boolean | null | undefined;
|
24
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
25
|
+
/** */
|
26
|
+
Focus(): void;
|
27
|
+
/** */
|
28
|
+
protected Change(value: boolean): void;
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerSwitch, never>;
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerSwitch, "coer-switch", never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isInvisible": { "alias": "isInvisible"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
31
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
2
|
+
import { MatTabGroup } from '@angular/material/tabs';
|
3
|
+
import { ICoerRef } from '../../../interfaces';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class CoerTab implements OnInit, OnDestroy {
|
6
|
+
contentRef: any;
|
7
|
+
protected _id: string;
|
8
|
+
protected _selectedIndex: number;
|
9
|
+
private _matTabGroup;
|
10
|
+
protected matTabGroup: import("@angular/core").Signal<MatTabGroup>;
|
11
|
+
private _tooltipList;
|
12
|
+
height: import("@angular/core").InputSignal<string>;
|
13
|
+
minHeight: import("@angular/core").InputSignal<string>;
|
14
|
+
maxHeight: import("@angular/core").InputSignal<string>;
|
15
|
+
set selectedIndex(value: number);
|
16
|
+
set alignTabs(value: 'start' | 'center' | 'end');
|
17
|
+
protected contentList: import("@angular/core").Signal<ICoerRef[]>;
|
18
|
+
onSelectedTab: import("@angular/core").OutputEmitterRef<ICoerRef>;
|
19
|
+
ngOnInit(): void;
|
20
|
+
ngOnDestroy(): void;
|
21
|
+
/** */
|
22
|
+
protected SelectedIndexChange(selectedIndex: number): void;
|
23
|
+
/** */
|
24
|
+
protected GetTitle(tab: ICoerRef): string;
|
25
|
+
/** */
|
26
|
+
protected GetIcon(tab: ICoerRef): string;
|
27
|
+
/** */
|
28
|
+
SelectTabBy(callback: (tab: ICoerRef) => boolean): void;
|
29
|
+
/** */
|
30
|
+
protected SetToolTip(tab: ICoerRef): string;
|
31
|
+
/** */
|
32
|
+
protected RemoveTooltip(element: HTMLElement): void;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerTab, never>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerTab, "coer-tab", never, { "height": { "alias": "height"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "alignTabs": { "alias": "alignTabs"; "required": false; }; }, { "onSelectedTab": "onSelectedTab"; }, ["contentRef"], never, false, never>;
|
35
|
+
}
|