coer-elements 0.0.23 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- package/components/index.d.ts +5 -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 +103 -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 +55 -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 +30 -0
- package/components/public-api.d.ts +15 -0
- package/directives/index.d.ts +5 -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 +16 -0
- package/directives/public-api.d.ts +3 -0
- package/esm2022/components/coer-elements-components.mjs +5 -0
- package/esm2022/components/lib/coer-button/coer-button.component.mjs +133 -0
- package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +83 -0
- package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +102 -0
- package/esm2022/components/lib/coer-form/coer-form.component.mjs +101 -0
- package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +512 -0
- package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +408 -0
- package/esm2022/components/lib/coer-grid/coer-grid.templates.mjs +30 -0
- package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +107 -0
- package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +258 -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 +338 -0
- package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +93 -0
- package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +116 -0
- package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +156 -0
- package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +195 -0
- package/esm2022/components/lib/components.module.mjs +129 -0
- package/esm2022/components/public-api.mjs +16 -0
- package/esm2022/directives/coer-elements-directives.mjs +5 -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 +33 -0
- package/esm2022/directives/public-api.mjs +4 -0
- package/esm2022/interfaces/coer-elements-interfaces.mjs +5 -0
- package/esm2022/interfaces/lib/app-source.interface.mjs +2 -0
- 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-selected.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-menu/menu.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-ref.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/lib/screen-size.interface.mjs +2 -0
- package/esm2022/interfaces/lib/service/http-request.interface.mjs +2 -0
- package/esm2022/interfaces/lib/service/http-response.interface.mjs +2 -0
- package/esm2022/interfaces/lib/service/patch.interface.mjs +2 -0
- package/esm2022/interfaces/public-api.mjs +39 -0
- package/esm2022/pipes/coer-elements-pipes.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/pipes/public-api.mjs +5 -0
- package/esm2022/signals/coer-elements-signals.mjs +5 -0
- package/esm2022/signals/lib/breakpoint.signal.mjs +4 -0
- package/esm2022/signals/lib/is-loading.signal.mjs +3 -0
- package/esm2022/signals/lib/is-menu-open.signal.mjs +3 -0
- package/esm2022/signals/lib/is-modal-open.signal.mjs +3 -0
- package/esm2022/signals/lib/menu.signal.mjs +3 -0
- package/esm2022/signals/public-api.mjs +6 -0
- package/esm2022/tools/coer-elements-tools.mjs +5 -0
- package/esm2022/tools/lib/breadcrumbs.class.mjs +63 -0
- package/esm2022/tools/lib/coer-alert/coer-alert.component.mjs +228 -0
- package/esm2022/tools/lib/control-value.class.mjs +46 -0
- package/esm2022/tools/lib/date-time.class.mjs +29 -0
- package/esm2022/tools/lib/files.class.mjs +91 -0
- package/esm2022/tools/lib/menu.class.mjs +23 -0
- package/esm2022/tools/lib/page.class.mjs +156 -0
- package/esm2022/tools/lib/screen.class.mjs +51 -0
- package/esm2022/tools/lib/service.class.mjs +247 -0
- package/esm2022/tools/lib/source.class.mjs +80 -0
- package/esm2022/tools/lib/tools.mjs +220 -0
- package/esm2022/tools/public-api.mjs +12 -0
- package/fesm2022/coer-elements-components.mjs +2718 -0
- package/fesm2022/coer-elements-components.mjs.map +1 -0
- package/fesm2022/coer-elements-directives.mjs +82 -0
- package/fesm2022/coer-elements-directives.mjs.map +1 -0
- package/fesm2022/coer-elements-interfaces.mjs +6 -0
- package/fesm2022/coer-elements-interfaces.mjs.map +1 -0
- package/fesm2022/coer-elements-pipes.mjs +83 -0
- package/fesm2022/coer-elements-pipes.mjs.map +1 -0
- package/fesm2022/coer-elements-signals.mjs +19 -0
- package/fesm2022/coer-elements-signals.mjs.map +1 -0
- package/fesm2022/coer-elements-tools.mjs +1223 -0
- package/fesm2022/coer-elements-tools.mjs.map +1 -0
- package/interfaces/index.d.ts +5 -0
- package/interfaces/lib/app-source.interface.d.ts +4 -0
- 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-selected.interface.d.ts +10 -0
- package/interfaces/lib/coer-menu/menu.interface.d.ts +6 -0
- package/interfaces/lib/coer-ref.interface.d.ts +10 -0
- package/interfaces/lib/page-title/breadcrumb.interface.d.ts +6 -0
- package/interfaces/lib/page-title/go-back.interface.d.ts +6 -0
- package/interfaces/lib/screen-size.interface.d.ts +5 -0
- package/interfaces/lib/service/http-request.interface.d.ts +10 -0
- package/interfaces/lib/service/http-response.interface.d.ts +6 -0
- package/interfaces/lib/service/patch.interface.d.ts +5 -0
- package/interfaces/public-api.d.ts +33 -0
- package/package.json +37 -1
- package/pipes/index.d.ts +5 -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/pipes/public-api.d.ts +4 -0
- package/signals/index.d.ts +5 -0
- package/signals/lib/breakpoint.signal.d.ts +1 -0
- package/signals/lib/is-loading.signal.d.ts +1 -0
- package/signals/lib/is-menu-open.signal.d.ts +1 -0
- package/signals/lib/is-modal-open.signal.d.ts +1 -0
- package/signals/lib/menu.signal.d.ts +2 -0
- package/signals/public-api.d.ts +5 -0
- package/tools/index.d.ts +5 -0
- package/tools/lib/breadcrumbs.class.d.ts +18 -0
- package/tools/lib/coer-alert/coer-alert.component.d.ts +23 -0
- package/tools/lib/control-value.class.d.ts +25 -0
- package/tools/lib/date-time.class.d.ts +13 -0
- package/tools/lib/files.class.d.ts +16 -0
- package/tools/lib/menu.class.d.ts +8 -0
- package/tools/lib/page.class.d.ts +60 -0
- package/tools/lib/screen.class.d.ts +13 -0
- package/tools/lib/service.class.d.ts +39 -0
- package/tools/lib/source.class.d.ts +20 -0
- package/tools/lib/tools.d.ts +34 -0
- package/tools/public-api.d.ts +11 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class CoerButton implements OnInit, OnDestroy {
|
4
|
+
protected _id: string;
|
5
|
+
private _element;
|
6
|
+
private _tooltip;
|
7
|
+
private _tooltipElement;
|
8
|
+
id: string;
|
9
|
+
color: import("@angular/core").InputSignal<"default" | "primary" | "secondary" | "success" | "warning" | "danger" | "navigation">;
|
10
|
+
type: import("@angular/core").InputSignal<"filled" | "outline" | "icon" | "icon-outline" | "icon-no-border">;
|
11
|
+
icon: import("@angular/core").InputSignal<"" | "new" | "save" | "cancel" | "import" | "excel" | "menu" | "delete" | "edit" | "go" | "back">;
|
12
|
+
iconPosition: import("@angular/core").InputSignal<"left" | "right">;
|
13
|
+
animation: import("@angular/core").InputSignal<boolean>;
|
14
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
15
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
16
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
17
|
+
width: import("@angular/core").InputSignal<string>;
|
18
|
+
minWidth: import("@angular/core").InputSignal<string>;
|
19
|
+
height: import("@angular/core").InputSignal<string>;
|
20
|
+
minHeight: import("@angular/core").InputSignal<string>;
|
21
|
+
marginTop: import("@angular/core").InputSignal<string>;
|
22
|
+
marginRight: import("@angular/core").InputSignal<string>;
|
23
|
+
marginBottom: import("@angular/core").InputSignal<string>;
|
24
|
+
marginLeft: import("@angular/core").InputSignal<string>;
|
25
|
+
path: import("@angular/core").InputSignal<string | (string | number)[]>;
|
26
|
+
tooltipPosition: import("@angular/core").InputSignal<"left" | "right" | "top" | "bottom">;
|
27
|
+
set tooltip(value: string);
|
28
|
+
onClick: EventEmitter<MouseEvent>;
|
29
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
30
|
+
protected _icon: import("@angular/core").Signal<string>;
|
31
|
+
ngOnInit(): void;
|
32
|
+
ngOnDestroy(): void;
|
33
|
+
/** */
|
34
|
+
private SetEvents;
|
35
|
+
private SetToolTip;
|
36
|
+
/** */
|
37
|
+
protected Click(event: MouseEvent): void;
|
38
|
+
/** */
|
39
|
+
Focus(timeout?: number): void;
|
40
|
+
/** */
|
41
|
+
Blur(): void;
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerButton, never>;
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerButton, "coer-button", never, { "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isInvisible": { "alias": "isInvisible"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "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; }; "path": { "alias": "path"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], false, never>;
|
44
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
2
|
+
import { ControlValue } from 'coer-elements/tools';
|
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 { CoerModal } from '../../lib/coer-modal/coer-modal.component';
|
3
|
+
import { IFile, IFileImage } from 'coer-elements/interfaces';
|
4
|
+
import { CoerAlert } from 'coer-elements/tools';
|
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_1>(value: T_1 | 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 'coer-elements/interfaces';
|
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,103 @@
|
|
1
|
+
import { IGridButtonByRow, IGridColumn, IGridDataSource, IGridImport, IGridHeaderButton, IGridHeaderExportButton, IGridKeyupEnter, IGridSearch, IGridInputSwitchChange, IGridInputTextbox, IGridSort, IGridCheckbox, IGridInputCheckbox, IGridHeader } from "coer-elements/interfaces";
|
2
|
+
import { AfterViewInit, ElementRef } from "@angular/core";
|
3
|
+
import { CoerCheckbox } from "../../lib/coer-checkbox/coer-checkbox.component";
|
4
|
+
import { CoerNumberBox } from "../../lib/coer-numberbox/coer-numberbox.component";
|
5
|
+
import { CoerSelectbox } from "../../lib/coer-selectbox/coer-selectbox.component";
|
6
|
+
import { CoerTextBox } from "../../lib/coer-textbox/coer-textbox.component";
|
7
|
+
import { CoerAlert, ControlValue, DateTime } from 'coer-elements/tools';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class CoerGridExtension<T> extends ControlValue implements AfterViewInit {
|
10
|
+
protected readonly alert: CoerAlert;
|
11
|
+
protected inputFile: import("@angular/core").Signal<ElementRef<any>>;
|
12
|
+
protected inputSearch: import("@angular/core").Signal<CoerTextBox>;
|
13
|
+
protected coerTextboxList: import("@angular/core").Signal<readonly CoerTextBox[]>;
|
14
|
+
protected coerNumberboxList: import("@angular/core").Signal<readonly CoerNumberBox[]>;
|
15
|
+
protected coerSelectboxList: import("@angular/core").Signal<readonly CoerSelectbox<any>[]>;
|
16
|
+
protected coerCheckboxList: import("@angular/core").Signal<readonly CoerCheckbox[]>;
|
17
|
+
protected _value: T[];
|
18
|
+
protected value_signal: import("@angular/core").WritableSignal<T[]>;
|
19
|
+
protected _gridSearch: import("@angular/core").WritableSignal<string | number>;
|
20
|
+
protected _isLoading: boolean;
|
21
|
+
protected _isLoadingMessage: boolean;
|
22
|
+
protected _id: string;
|
23
|
+
protected _expandedGroups: string[];
|
24
|
+
protected _enableAnimations: boolean;
|
25
|
+
protected _indexFocus: import("@angular/core").WritableSignal<number>;
|
26
|
+
protected _sort: import("@angular/core").WritableSignal<IGridSort>;
|
27
|
+
protected GetNumericFormat: (value: string | number | null | undefined, decimals?: number | undefined) => string;
|
28
|
+
protected GetDateFormat: typeof DateTime.GetDateFormat;
|
29
|
+
columns: import("@angular/core").InputSignal<IGridColumn<T>[]>;
|
30
|
+
cleanColumnName: import("@angular/core").InputSignal<boolean>;
|
31
|
+
addButton: IGridHeaderButton;
|
32
|
+
exportButton: IGridHeaderExportButton;
|
33
|
+
importButton: IGridHeaderButton;
|
34
|
+
search: IGridSearch;
|
35
|
+
buttonByRow: IGridButtonByRow<T>;
|
36
|
+
checkbox: IGridCheckbox;
|
37
|
+
tooltipByRow: import("@angular/core").InputSignal<string>;
|
38
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
39
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
40
|
+
rowsByPage: import("@angular/core").InputSignal<number>;
|
41
|
+
groupBy: import("@angular/core").InputSignal<string>;
|
42
|
+
showColumnGrouped: import("@angular/core").InputSignal<boolean>;
|
43
|
+
rowsByGroup: import("@angular/core").InputSignal<number>;
|
44
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
45
|
+
showFooter: import("@angular/core").InputSignal<boolean>;
|
46
|
+
width: import("@angular/core").InputSignal<string>;
|
47
|
+
MinWidth: import("@angular/core").InputSignal<string>;
|
48
|
+
MaxWidth: import("@angular/core").InputSignal<string>;
|
49
|
+
height: import("@angular/core").InputSignal<string>;
|
50
|
+
minHeight: import("@angular/core").InputSignal<string>;
|
51
|
+
maxHeight: import("@angular/core").InputSignal<string>;
|
52
|
+
margin: import("@angular/core").InputSignal<string>;
|
53
|
+
enableSort: import("@angular/core").InputSignal<boolean>;
|
54
|
+
enableRowFocus: import("@angular/core").InputSignal<boolean>;
|
55
|
+
onClickAdd: import("@angular/core").OutputEmitterRef<void>;
|
56
|
+
onClickImport: import("@angular/core").OutputEmitterRef<IGridImport<T>>;
|
57
|
+
onClickExport: import("@angular/core").OutputEmitterRef<T[]>;
|
58
|
+
onClickRow: import("@angular/core").OutputEmitterRef<T>;
|
59
|
+
onDoubleClickRow: import("@angular/core").OutputEmitterRef<T>;
|
60
|
+
onClickDeleteRow: import("@angular/core").OutputEmitterRef<T>;
|
61
|
+
onClickEditRow: import("@angular/core").OutputEmitterRef<T>;
|
62
|
+
onClickGoRow: import("@angular/core").OutputEmitterRef<T>;
|
63
|
+
onKeyupEnter: import("@angular/core").OutputEmitterRef<IGridKeyupEnter>;
|
64
|
+
onKeyupEnterLast: import("@angular/core").OutputEmitterRef<void>;
|
65
|
+
onSwitchChange: import("@angular/core").OutputEmitterRef<IGridInputSwitchChange<T>>;
|
66
|
+
onTextboxChange: import("@angular/core").OutputEmitterRef<IGridInputTextbox<T>>;
|
67
|
+
onSelectboxChange: import("@angular/core").OutputEmitterRef<IGridInputTextbox<T>>;
|
68
|
+
onCheckboxChange: import("@angular/core").OutputEmitterRef<IGridInputCheckbox<T>>;
|
69
|
+
protected _isDisabled: import("@angular/core").Signal<boolean>;
|
70
|
+
protected _isGrouped: import("@angular/core").Signal<boolean>;
|
71
|
+
protected get _height(): string;
|
72
|
+
protected get _onlyOneCheck(): boolean | undefined;
|
73
|
+
ngAfterViewInit(): void;
|
74
|
+
SetValue(value: T[]): void;
|
75
|
+
writeValue(value: T[]): void;
|
76
|
+
protected gridColumns: import("@angular/core").Signal<IGridHeader[]>;
|
77
|
+
protected gridDataSource: import("@angular/core").Signal<IGridDataSource[]>;
|
78
|
+
protected gridDataSourceFiltered: import("@angular/core").Signal<T[]>;
|
79
|
+
/** Get Column Configuration */
|
80
|
+
protected _GetColumnConfig: (columnName: string) => IGridColumn<T> | undefined;
|
81
|
+
/** Clean Name or get alias */
|
82
|
+
protected _GetColumnName: (columnName: string) => string;
|
83
|
+
/** */
|
84
|
+
protected _GetShortIcon: (columnName: string) => "" | "fa-solid fa-arrow-up-wide-short" | "fa-solid fa-arrow-down-short-wide";
|
85
|
+
/** */
|
86
|
+
protected _GetId: (indexRow: number, indexColumn: number, suffix?: string) => string;
|
87
|
+
/** */
|
88
|
+
protected _GetCellValue: (row: any, columnName: string) => any;
|
89
|
+
/** */
|
90
|
+
protected _GetTooltip: (prefix: string, row: any, suffix?: string) => string;
|
91
|
+
/** */
|
92
|
+
protected _HideRow: (group: IGridDataSource) => boolean;
|
93
|
+
/** */
|
94
|
+
protected _IsCellType(property: string, data: any, type: 'number' | 'date' | 'template' | 'coerTextbox' | 'coerNumberbox' | 'coerSelectbox' | 'coerSwitch'): boolean;
|
95
|
+
/** */
|
96
|
+
protected _IsCellColor(property: string, data: any, color: 'colorBlue' | 'colorGreen' | 'colorYellow' | 'colorRed'): boolean;
|
97
|
+
/** */
|
98
|
+
protected GetAttribute(property: string, data: any, attribute: string, type: 'coerSwitch' | 'coerTextbox' | 'coerNumberbox' | 'coerSelectbox' | 'defaul-cell'): any;
|
99
|
+
/** */
|
100
|
+
protected ButtonByRow(property: 'showDeleteButton' | 'showEditButton' | 'showGoButton', data?: any): boolean;
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerGridExtension<any>, never>;
|
102
|
+
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>;
|
103
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IGridCoerSwitch, IGridCoerTextBox, IGridItem } from "coer-elements/interfaces";
|
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 'coer-elements/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_1>(value: T_1 | 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,55 @@
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
2
|
+
import { CoerAlert, ControlValue } from 'coer-elements/tools';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CoerNumberBox extends ControlValue implements OnInit {
|
5
|
+
protected readonly alert: CoerAlert;
|
6
|
+
_value: string | number;
|
7
|
+
protected matFormField: import("@angular/core").Signal<ElementRef<any>>;
|
8
|
+
protected coerNumberbox: import("@angular/core").Signal<ElementRef<any>>;
|
9
|
+
protected _id: string;
|
10
|
+
protected _isLoadingEvent: import("@angular/core").WritableSignal<boolean>;
|
11
|
+
private element;
|
12
|
+
protected hideCaret: boolean;
|
13
|
+
set value(value: number | string | null | undefined);
|
14
|
+
id: string;
|
15
|
+
label: import("@angular/core").InputSignal<string>;
|
16
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
17
|
+
min: import("@angular/core").InputSignal<number>;
|
18
|
+
max: import("@angular/core").InputSignal<number>;
|
19
|
+
decimals: import("@angular/core").InputSignal<number>;
|
20
|
+
width: import("@angular/core").InputSignal<string>;
|
21
|
+
minWidth: import("@angular/core").InputSignal<string>;
|
22
|
+
maxWidth: import("@angular/core").InputSignal<string>;
|
23
|
+
marginTop: import("@angular/core").InputSignal<string>;
|
24
|
+
marginRight: import("@angular/core").InputSignal<string>;
|
25
|
+
marginBottom: import("@angular/core").InputSignal<string>;
|
26
|
+
marginLeft: import("@angular/core").InputSignal<string>;
|
27
|
+
isInvalid: import("@angular/core").InputSignal<boolean>;
|
28
|
+
isValid: import("@angular/core").InputSignal<boolean>;
|
29
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
30
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
31
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
32
|
+
selectOnFocus: import("@angular/core").InputSignal<boolean>;
|
33
|
+
textPosition: import("@angular/core").InputSignal<"left" | "right" | "center">;
|
34
|
+
onKeyupEnter: import("@angular/core").OutputEmitterRef<string | number>;
|
35
|
+
onInput: import("@angular/core").OutputEmitterRef<string | number>;
|
36
|
+
ngOnInit(): void;
|
37
|
+
get value(): number | string | null | undefined;
|
38
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
39
|
+
protected floatLabel: import("@angular/core").Signal<"auto" | "always">;
|
40
|
+
protected paddingRight: import("@angular/core").Signal<"0px" | "18px">;
|
41
|
+
SetValue(value: string | number): void;
|
42
|
+
writeValue(value: string | number): void;
|
43
|
+
/** */
|
44
|
+
private OnlyNumbers;
|
45
|
+
/** */
|
46
|
+
private ValidateRangeValue;
|
47
|
+
/** */
|
48
|
+
Focus(timeout?: number): void;
|
49
|
+
/** */
|
50
|
+
Select(timeout?: number): void;
|
51
|
+
/** */
|
52
|
+
Blur(): void;
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerNumberBox, never>;
|
54
|
+
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>;
|
55
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { IBreadcrumb, IGoBack } from 'coer-elements/interfaces';
|
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 'coer-elements/tools';
|
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 { ControlValue } from 'coer-elements/tools';
|
3
|
+
import { MatSlideToggle } from '@angular/material/slide-toggle';
|
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 'coer-elements/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
|
+
}
|