coer-elements 1.0.18 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -1
- package/components/index.d.ts +5 -0
- package/components/lib/coer-accordion/coer-accordion.component.d.ts +32 -0
- package/components/lib/coer-button/coer-button.component.d.ts +46 -0
- package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +29 -0
- package/components/lib/coer-datebox/coer-datebox.component.d.ts +58 -0
- package/components/lib/coer-dropdown/coer-dropdown.component.d.ts +69 -0
- package/components/lib/coer-filebox/coer-filebox.component.d.ts +36 -0
- package/components/lib/coer-form/coer-form.component.d.ts +36 -0
- package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
- package/components/lib/coer-grid/coer-grid.extension.d.ts +111 -0
- package/components/lib/coer-list/coer-list.component.d.ts +57 -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 +14 -0
- package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +79 -0
- package/components/lib/coer-sidenav/coer-menu-option/coer-menu-option.component.d.ts +22 -0
- package/components/lib/coer-sidenav/coer-sidenav.component.d.ts +49 -0
- package/components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.d.ts +32 -0
- package/components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.d.ts +43 -0
- package/components/lib/coer-switch/coer-switch.component.d.ts +32 -0
- package/components/lib/coer-tab/coer-tab.component.d.ts +36 -0
- package/components/lib/coer-textarea/coer-textarea.component.d.ts +52 -0
- package/components/lib/coer-textbox/coer-textbox.component.d.ts +66 -0
- package/components/lib/components.module.d.ts +46 -0
- package/components/public-api.d.ts +21 -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/extensions/index.d.ts +5 -0
- package/extensions/lib/object.extension.d.ts +1 -0
- package/extensions/lib/string.extension.d.ts +19 -0
- package/extensions/public-api.d.ts +2 -0
- package/fesm2022/coer-elements-components.mjs +4040 -0
- package/fesm2022/coer-elements-components.mjs.map +1 -0
- package/fesm2022/coer-elements-directives.mjs +84 -0
- package/fesm2022/coer-elements-directives.mjs.map +1 -0
- package/fesm2022/coer-elements-extensions.mjs +68 -0
- package/fesm2022/coer-elements-extensions.mjs.map +1 -0
- package/fesm2022/coer-elements-guards.mjs +28 -0
- package/fesm2022/coer-elements-guards.mjs.map +1 -0
- package/fesm2022/coer-elements-interceptors.mjs +64 -0
- package/fesm2022/coer-elements-interceptors.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-pages.mjs +441 -0
- package/fesm2022/coer-elements-pages.mjs.map +1 -0
- package/fesm2022/coer-elements-pipes.mjs +87 -0
- package/fesm2022/coer-elements-pipes.mjs.map +1 -0
- package/fesm2022/coer-elements-signals.mjs +35 -0
- package/fesm2022/coer-elements-signals.mjs.map +1 -0
- package/fesm2022/coer-elements-tools.mjs +1960 -0
- package/fesm2022/coer-elements-tools.mjs.map +1 -0
- package/fesm2022/coer-elements.mjs +68 -0
- package/fesm2022/coer-elements.mjs.map +1 -0
- package/guards/index.d.ts +5 -0
- package/guards/lib/login.guard.d.ts +2 -0
- package/guards/lib/page.guard.d.ts +2 -0
- package/guards/public-api.d.ts +2 -0
- package/images/loading.gif +0 -0
- package/images/no-image.png +0 -0
- package/images/no-user.png +0 -0
- package/index.d.ts +12 -0
- package/interceptors/index.d.ts +5 -0
- package/interceptors/lib/user.interceptor.d.ts +8 -0
- package/interceptors/lib/utc-offset.interceptor.d.ts +8 -0
- package/interceptors/public-api.d.ts +1 -0
- package/interfaces/index.d.ts +5 -0
- package/interfaces/lib/app-source.interface.d.ts +4 -0
- package/interfaces/lib/box-button.interface.d.ts +6 -0
- package/interfaces/lib/bulk-load.interface.d.ts +5 -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 +24 -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 +5 -0
- package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
- package/interfaces/lib/coer-menu/menu-access.interface.d.ts +7 -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 +10 -0
- package/interfaces/lib/coer-ref.interface.d.ts +10 -0
- package/interfaces/lib/image.interface.d.ts +11 -0
- package/interfaces/lib/login-response.interface.d.ts +10 -0
- package/interfaces/lib/login.interface.d.ts +4 -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/page-title/information.interface.d.ts +4 -0
- package/interfaces/lib/screen-size.interface.d.ts +5 -0
- package/interfaces/lib/service/http-request.interface.d.ts +12 -0
- package/interfaces/lib/service/http-response.interface.d.ts +6 -0
- package/interfaces/lib/service/patch.interface.d.ts +5 -0
- package/interfaces/lib/toolbar-menu.interface.d.ts +5 -0
- package/interfaces/public-api.d.ts +41 -0
- package/package.json +67 -38
- package/pages/index.d.ts +5 -0
- package/pages/lib/coer-loading/loading.component.d.ts +5 -0
- package/pages/lib/coer-menu/coer-menu.component.d.ts +12 -0
- package/pages/lib/coer-system/coer-system.component.d.ts +64 -0
- package/pages/lib/coer-system/login/login.component.d.ts +31 -0
- package/pages/lib/home/home.component.d.ts +7 -0
- package/pages/lib/pages.module.d.ts +18 -0
- package/pages/public-api.d.ts +5 -0
- 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-selected.signal.d.ts +2 -0
- package/signals/lib/navigation.signal.d.ts +2 -0
- package/signals/public-api.d.ts +6 -0
- package/styles/angular-material.scss +20 -0
- package/styles/animations.scss +11 -0
- package/styles/bootstrap.scss +1 -14
- package/styles/coer-elements.css +2054 -0
- package/styles/colors.scss +90 -49
- package/styles/containers.scss +44 -0
- package/styles/cursores.scss +19 -0
- package/styles/index.scss +58 -0
- package/styles/layout.scss +49 -0
- package/styles/position.scss +7 -0
- package/styles/scroll-bar.scss +20 -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/coer-grid.templates.d.ts +11 -0
- package/tools/lib/colors.class.d.ts +21 -0
- package/tools/lib/control-value.class.d.ts +25 -0
- package/tools/lib/date-time.class.d.ts +21 -0
- package/tools/lib/elements-html.class.d.ts +8 -0
- package/tools/lib/files.class.d.ts +16 -0
- package/tools/lib/filters.class.d.ts +11 -0
- package/tools/lib/menu.class.d.ts +9 -0
- package/tools/lib/page.class.d.ts +83 -0
- package/tools/lib/screen.class.d.ts +13 -0
- package/tools/lib/section.class.d.ts +33 -0
- package/tools/lib/service.class.d.ts +42 -0
- package/tools/lib/source.class.d.ts +20 -0
- package/tools/lib/tools.d.ts +42 -0
- package/tools/lib/user.class.d.ts +11 -0
- package/tools/public-api.d.ts +17 -0
- package/Signals/index.ts +0 -7
- package/Tools/Breadcrumbs.class.ts +0 -84
- package/Tools/ControlValue.ts +0 -63
- package/Tools/DateTime.class.ts +0 -27
- package/Tools/Files.class.ts +0 -119
- package/Tools/Page.class.ts +0 -197
- package/Tools/Screen.class.ts +0 -50
- package/Tools/Source.class.ts +0 -107
- package/Tools/Tools.ts +0 -212
- package/components/coer-alert/coer-alert.component.html +0 -56
- package/components/coer-alert/coer-alert.component.scss +0 -100
- package/components/coer-alert/coer-alert.component.ts +0 -249
- package/components/index.ts +0 -96
- package/dist_browser/Tools/Breadcrumbs.class.js +0 -66
- package/dist_browser/Tools/ControlValue.js +0 -49
- package/dist_browser/Tools/DateTime.class.js +0 -25
- package/dist_browser/Tools/Files.class.js +0 -99
- package/dist_browser/Tools/Page.class.js +0 -213
- package/dist_browser/Tools/Screen.class.js +0 -68
- package/dist_browser/Tools/Source.class.js +0 -83
- package/dist_browser/Tools/Tools.js +0 -227
- package/dist_browser/components/coer-alert/coer-alert.component.js +0 -314
- package/dist_browser/index.js +0 -8
- package/dist_node/Tools/Breadcrumbs.class.js +0 -69
- package/dist_node/Tools/ControlValue.js +0 -53
- package/dist_node/Tools/DateTime.class.js +0 -28
- package/dist_node/Tools/Files.class.js +0 -102
- package/dist_node/Tools/Page.class.js +0 -216
- package/dist_node/Tools/Screen.class.js +0 -71
- package/dist_node/Tools/Source.class.js +0 -86
- package/dist_node/Tools/Tools.js +0 -230
- package/dist_node/components/coer-alert/coer-alert.component.js +0 -317
- package/dist_node/index.js +0 -24
- package/dist_node/interfaces/index.js +0 -2
- package/index.ts +0 -8
- package/interfaces/index.ts +0 -47
- package/styles/coer.scss +0 -95
- package/tsconfig.json +0 -29
package/README.md
CHANGED
|
@@ -1 +1,63 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CoerElements
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build coer-elements
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/coer-elements
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CoerAccordion implements AfterViewInit {
|
|
4
|
+
protected _id: string;
|
|
5
|
+
private _expansionPanel;
|
|
6
|
+
private _htmlElement;
|
|
7
|
+
protected _isDisabled: boolean;
|
|
8
|
+
id: string;
|
|
9
|
+
title: import("@angular/core").InputSignal<string>;
|
|
10
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
11
|
+
expanded: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
scrollOnOpen: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
onOpen: import("@angular/core").OutputEmitterRef<void>;
|
|
14
|
+
onClose: import("@angular/core").OutputEmitterRef<void>;
|
|
15
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
get isExpanded(): boolean;
|
|
18
|
+
get isCollapsed(): boolean;
|
|
19
|
+
get isDisabled(): boolean;
|
|
20
|
+
/** */
|
|
21
|
+
Open(): void;
|
|
22
|
+
/** */
|
|
23
|
+
Close(): void;
|
|
24
|
+
/** */
|
|
25
|
+
Enable(): void;
|
|
26
|
+
/** */
|
|
27
|
+
Disable(): void;
|
|
28
|
+
/** */
|
|
29
|
+
ScrollToAccordion(delay?: number): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerAccordion, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerAccordion, "coer-accordion", never, { "id": { "alias": "id"; "required": false; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "scrollOnOpen": { "alias": "scrollOnOpen"; "required": false; "isSignal": true; }; }, { "onOpen": "onOpen"; "onClose": "onClose"; }, never, ["*"], false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { 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" | "dark">;
|
|
10
|
+
type: import("@angular/core").InputSignal<"filled" | "outline" | "icon" | "icon-outline" | "icon-no-border">;
|
|
11
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
12
|
+
iconPosition: import("@angular/core").InputSignal<"left" | "right">;
|
|
13
|
+
path: import("@angular/core").InputSignal<string | (string | number)[]>;
|
|
14
|
+
animation: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
width: import("@angular/core").InputSignal<string>;
|
|
20
|
+
minWidth: import("@angular/core").InputSignal<string>;
|
|
21
|
+
maxWidth: import("@angular/core").InputSignal<string>;
|
|
22
|
+
height: import("@angular/core").InputSignal<string>;
|
|
23
|
+
minHeight: 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
|
+
tooltipPosition: import("@angular/core").InputSignal<"left" | "right" | "top" | "bottom">;
|
|
29
|
+
set tooltip(value: string);
|
|
30
|
+
onClick: import("@angular/core").OutputEmitterRef<void>;
|
|
31
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
|
32
|
+
protected _icon: import("@angular/core").Signal<string>;
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
/** */
|
|
36
|
+
private SetEvents;
|
|
37
|
+
private SetToolTip;
|
|
38
|
+
/** */
|
|
39
|
+
protected Click(): void;
|
|
40
|
+
/** */
|
|
41
|
+
Focus(timeout?: number): void;
|
|
42
|
+
/** */
|
|
43
|
+
Blur(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerButton, never>;
|
|
45
|
+
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; }; "path": { "alias": "path"; "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; }; "isReadonly": { "alias": "isReadonly"; "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; }; "maxWidth": { "alias": "maxWidth"; "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; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], false, never>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
ignoreDataBinding: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
onChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
18
|
+
get value(): boolean | null | undefined;
|
|
19
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
SetValue(value: boolean): void;
|
|
22
|
+
writeValue(value: boolean): void;
|
|
23
|
+
/** */
|
|
24
|
+
Check(): void;
|
|
25
|
+
/** */
|
|
26
|
+
Uncheck(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerCheckbox, never>;
|
|
28
|
+
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; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isReadonly": { "alias": "isReadonly"; "required": false; "isSignal": true; }; "isInvisible": { "alias": "isInvisible"; "required": false; "isSignal": true; }; "ignoreDataBinding": { "alias": "ignoreDataBinding"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValue } from 'coer-elements/tools';
|
|
3
|
+
import moment from 'moment';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CoerDateBox extends ControlValue implements OnInit {
|
|
6
|
+
_value: string | Date | moment.Moment | null;
|
|
7
|
+
protected matFormField: import("@angular/core").Signal<ElementRef<any>>;
|
|
8
|
+
protected coerTextBox: import("@angular/core").Signal<ElementRef<any>>;
|
|
9
|
+
protected _id: string;
|
|
10
|
+
private _datepicker;
|
|
11
|
+
protected _isLoadingEvent: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
protected _isOpen: boolean;
|
|
13
|
+
private _input;
|
|
14
|
+
private _container;
|
|
15
|
+
private _pickerButton;
|
|
16
|
+
set value(value: string | null | undefined);
|
|
17
|
+
id: string;
|
|
18
|
+
label: import("@angular/core").InputSignal<string>;
|
|
19
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
20
|
+
textPosition: import("@angular/core").InputSignal<"left" | "right" | "center">;
|
|
21
|
+
isInvalid: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
isValid: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
width: import("@angular/core").InputSignal<string>;
|
|
28
|
+
minWidth: import("@angular/core").InputSignal<string>;
|
|
29
|
+
maxWidth: import("@angular/core").InputSignal<string>;
|
|
30
|
+
marginTop: import("@angular/core").InputSignal<string>;
|
|
31
|
+
marginRight: import("@angular/core").InputSignal<string>;
|
|
32
|
+
marginBottom: import("@angular/core").InputSignal<string>;
|
|
33
|
+
marginLeft: import("@angular/core").InputSignal<string>;
|
|
34
|
+
onOpen: import("@angular/core").OutputEmitterRef<void>;
|
|
35
|
+
onClose: import("@angular/core").OutputEmitterRef<void>;
|
|
36
|
+
onChangeValue: import("@angular/core").OutputEmitterRef<string | null>;
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
protected floatLabel: import("@angular/core").Signal<"auto" | "always">;
|
|
39
|
+
protected paddingRight: import("@angular/core").Signal<"0px" | "18px">;
|
|
40
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
|
41
|
+
get value(): string | null;
|
|
42
|
+
get isOpen(): boolean;
|
|
43
|
+
SetValue(value: string | Date | moment.Moment | null | undefined): void;
|
|
44
|
+
/** */
|
|
45
|
+
writeValue(value: any): void;
|
|
46
|
+
/** */
|
|
47
|
+
private SetEvents;
|
|
48
|
+
/** */
|
|
49
|
+
protected Blur(): Promise<void>;
|
|
50
|
+
/** */
|
|
51
|
+
Open(): void;
|
|
52
|
+
/** */
|
|
53
|
+
Close(): void;
|
|
54
|
+
/** */
|
|
55
|
+
Unselect(): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerDateBox, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerDateBox, "coer-datebox", 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; }; "textPosition": { "alias": "textPosition"; "required": false; "isSignal": true; }; "isInvalid": { "alias": "isInvalid"; "required": false; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isReadonly": { "alias": "isReadonly"; "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; }; "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; }; }, { "onOpen": "onOpen"; "onClose": "onClose"; "onChangeValue": "onChangeValue"; }, never, never, false, never>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CoerDropdown<T> extends ControlValue implements OnInit {
|
|
5
|
+
protected _value: T | null;
|
|
6
|
+
protected _coerTextBox: import("@angular/core").Signal<ElementRef<any>>;
|
|
7
|
+
protected _id: string;
|
|
8
|
+
protected _index: import("@angular/core").WritableSignal<number>;
|
|
9
|
+
protected _isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
protected _isOverMenu: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
protected _dropDownMenu: HTMLElement;
|
|
12
|
+
protected _container: HTMLElement;
|
|
13
|
+
set value(value: T | null | undefined);
|
|
14
|
+
id: string;
|
|
15
|
+
label: import("@angular/core").InputSignal<string>;
|
|
16
|
+
color: import("@angular/core").InputSignal<"default" | "primary" | "secondary" | "success" | "warning" | "danger" | "navigation" | "dark">;
|
|
17
|
+
type: import("@angular/core").InputSignal<"filled" | "outline">;
|
|
18
|
+
dataSource: import("@angular/core").InputSignal<T[]>;
|
|
19
|
+
propDisplay: import("@angular/core").InputSignal<string>;
|
|
20
|
+
rowsByPage: import("@angular/core").InputSignal<number>;
|
|
21
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
width: import("@angular/core").InputSignal<string>;
|
|
26
|
+
minWidth: import("@angular/core").InputSignal<string>;
|
|
27
|
+
maxWidth: import("@angular/core").InputSignal<string>;
|
|
28
|
+
marginTop: import("@angular/core").InputSignal<string>;
|
|
29
|
+
marginRight: import("@angular/core").InputSignal<string>;
|
|
30
|
+
marginBottom: import("@angular/core").InputSignal<string>;
|
|
31
|
+
marginLeft: import("@angular/core").InputSignal<string>;
|
|
32
|
+
tooltip: import("@angular/core").InputSignal<string>;
|
|
33
|
+
tooltipPosition: import("@angular/core").InputSignal<"left" | "right" | "top" | "bottom">;
|
|
34
|
+
onSelected: import("@angular/core").OutputEmitterRef<T>;
|
|
35
|
+
onUnselect: import("@angular/core").OutputEmitterRef<null>;
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
get value(): T | null;
|
|
38
|
+
protected get _label(): string;
|
|
39
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
|
40
|
+
protected _dataSource: import("@angular/core").Signal<any[]>;
|
|
41
|
+
/** */
|
|
42
|
+
protected SetValue(_value: any): void;
|
|
43
|
+
/** */
|
|
44
|
+
writeValue(_value: any): void;
|
|
45
|
+
/** */
|
|
46
|
+
private SetEvents;
|
|
47
|
+
/** */
|
|
48
|
+
protected GetIndexRow: (item: any) => number;
|
|
49
|
+
/** */
|
|
50
|
+
protected GetIcon: (item: any) => string;
|
|
51
|
+
/** */
|
|
52
|
+
protected GetDisplay: (item: any) => string;
|
|
53
|
+
/** */
|
|
54
|
+
protected GetPath: (item: any) => string | (string | number)[] | null;
|
|
55
|
+
/** */
|
|
56
|
+
protected SelectItem(item: any): void;
|
|
57
|
+
/** */
|
|
58
|
+
Unselect(): void;
|
|
59
|
+
/** */
|
|
60
|
+
protected Toggle(): void;
|
|
61
|
+
/** */
|
|
62
|
+
Open(): void;
|
|
63
|
+
/** */
|
|
64
|
+
Close(): void;
|
|
65
|
+
/** */
|
|
66
|
+
SetValueBy(callback: (row: T) => boolean): Promise<void>;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerDropdown<any>, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerDropdown<any>, "coer-dropdown", never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "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; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isReadonly": { "alias": "isReadonly"; "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; }; "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; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; }, { "onSelected": "onSelected"; "onUnselect": "onUnselect"; }, never, never, false, never>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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: (value: any) => boolean;
|
|
9
|
+
protected IsNotNull: (value: any) => boolean;
|
|
10
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
|
11
|
+
protected inputFileImage: import("@angular/core").Signal<ElementRef<any>>;
|
|
12
|
+
protected modal: import("@angular/core").Signal<CoerModal>;
|
|
13
|
+
protected _base64: string;
|
|
14
|
+
protected _image: IFileImage | null;
|
|
15
|
+
private readonly imageExtensions;
|
|
16
|
+
type: import("@angular/core").InputSignal<"image">;
|
|
17
|
+
multiple: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
set image(value: IFileImage | null | undefined);
|
|
23
|
+
onSelected: import("@angular/core").OutputEmitterRef<IFile[]>;
|
|
24
|
+
onDeleteImage: import("@angular/core").OutputEmitterRef<void>;
|
|
25
|
+
protected _isEnable: import("@angular/core").Signal<boolean>;
|
|
26
|
+
/** */
|
|
27
|
+
protected UploadImages(event: any): Promise<void>;
|
|
28
|
+
/** */
|
|
29
|
+
private GetExtensionFile;
|
|
30
|
+
/** */
|
|
31
|
+
protected DeleteImage(event: any): void;
|
|
32
|
+
/** */
|
|
33
|
+
protected ExpandImage(event: any): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerFilebox, never>;
|
|
35
|
+
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; }; "isReadonly": { "alias": "isReadonly"; "required": false; "isSignal": true; }; "isInvisible": { "alias": "isInvisible"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; }; }, { "onSelected": "onSelected"; "onDeleteImage": "onDeleteImage"; }, never, never, false, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
protected get _isDisabled(): boolean;
|
|
10
|
+
/** Mark all controls as touched */
|
|
11
|
+
TouchForm(): void;
|
|
12
|
+
/** */
|
|
13
|
+
IsInvalidControl: (formControlName: string) => boolean;
|
|
14
|
+
/** */
|
|
15
|
+
SetControlValue(formControlName: string, value: any): void;
|
|
16
|
+
/** */
|
|
17
|
+
GetControlValue(formControlName: string, alternative?: any): any;
|
|
18
|
+
/** */
|
|
19
|
+
HasControlValue(formControlName: string): boolean;
|
|
20
|
+
/** Gets the value of the form */
|
|
21
|
+
GetValue<T>(): T;
|
|
22
|
+
/** */
|
|
23
|
+
Reset<T>(properties?: T | null): void;
|
|
24
|
+
/**
|
|
25
|
+
* Mark all controls as touched.
|
|
26
|
+
* If form is invalid emit a warning and focus first invalid control.
|
|
27
|
+
*/
|
|
28
|
+
IsValid(): {
|
|
29
|
+
isValid: boolean;
|
|
30
|
+
formValue: any;
|
|
31
|
+
};
|
|
32
|
+
/** Focuses the specified control, otherwise the first invalid control or first control */
|
|
33
|
+
Focus(formControl?: string | null): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerForm, never>;
|
|
35
|
+
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; }; "isReadonly": { "alias": "isReadonly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
|
36
|
+
}
|
|
@@ -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,111 @@
|
|
|
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 } 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: import("@angular/core").WritableSignal<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) => string;
|
|
28
|
+
protected GetElementWidth: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
|
29
|
+
protected GetElementHeight: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
|
30
|
+
columns: import("@angular/core").InputSignal<IGridColumn<T>[]>;
|
|
31
|
+
cleanColumnName: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
addButton: IGridHeaderButton;
|
|
33
|
+
exportButton: IGridHeaderExportButton;
|
|
34
|
+
importButton: IGridHeaderButton;
|
|
35
|
+
search: IGridSearch;
|
|
36
|
+
buttonByRow: IGridButtonByRow<T>;
|
|
37
|
+
checkbox: IGridCheckbox;
|
|
38
|
+
tooltipByRow: import("@angular/core").InputSignal<string>;
|
|
39
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
40
|
+
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
isReadonly: import("@angular/core").InputSignal<boolean>;
|
|
42
|
+
isInvisible: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
rowsByPage: import("@angular/core").InputSignal<number>;
|
|
44
|
+
groupBy: import("@angular/core").InputSignal<string>;
|
|
45
|
+
showColumnGrouped: import("@angular/core").InputSignal<boolean>;
|
|
46
|
+
rowsByGroup: import("@angular/core").InputSignal<number>;
|
|
47
|
+
showFooter: import("@angular/core").InputSignal<boolean>;
|
|
48
|
+
enableSort: import("@angular/core").InputSignal<boolean>;
|
|
49
|
+
enableRowFocus: import("@angular/core").InputSignal<boolean>;
|
|
50
|
+
width: import("@angular/core").InputSignal<string>;
|
|
51
|
+
MinWidth: import("@angular/core").InputSignal<string>;
|
|
52
|
+
MaxWidth: import("@angular/core").InputSignal<string>;
|
|
53
|
+
height: import("@angular/core").InputSignal<string>;
|
|
54
|
+
minHeight: import("@angular/core").InputSignal<string>;
|
|
55
|
+
maxHeight: import("@angular/core").InputSignal<string>;
|
|
56
|
+
margin: import("@angular/core").InputSignal<string>;
|
|
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 _GetSearchIcon: (columnName: string) => "" | "fa-solid fa-magnifying-glass ms-auto";
|
|
89
|
+
/** */
|
|
90
|
+
protected _GetId: (indexRow: number, indexColumn: number, suffix?: string) => string;
|
|
91
|
+
/** */
|
|
92
|
+
protected _GetCellValue: (row: any, columnName: string) => any;
|
|
93
|
+
/** */
|
|
94
|
+
protected _GetDateFormat: (date: string, toLocalZone?: boolean) => string;
|
|
95
|
+
/** */
|
|
96
|
+
protected _GetDateTimeFormat: (date: string, toLocalZone?: boolean) => string;
|
|
97
|
+
/** */
|
|
98
|
+
protected _GetTooltip: (prefix: string, row: any, suffix?: string) => string;
|
|
99
|
+
/** */
|
|
100
|
+
protected _HideRow: (group: IGridDataSource) => boolean;
|
|
101
|
+
/** */
|
|
102
|
+
protected _IsCellType(property: string, data: any, type: 'number' | 'date' | 'date-time' | 'toLocalZone' | 'template' | 'coerTextbox' | 'coerNumberbox' | 'coerSelectbox' | 'coerSwitch'): boolean;
|
|
103
|
+
/** */
|
|
104
|
+
protected _IsCellColor(property: string, data: any, color: 'colorBlue' | 'colorGreen' | 'colorYellow' | 'colorRed'): boolean;
|
|
105
|
+
/** */
|
|
106
|
+
protected GetAttribute(property: string, data: any, attribute: string, type: 'coerSwitch' | 'coerTextbox' | 'coerNumberbox' | 'coerSelectbox' | 'defaul-cell'): any;
|
|
107
|
+
/** */
|
|
108
|
+
protected ButtonByRow(property: 'showDeleteButton' | 'showEditButton' | 'showGoButton', data?: any): boolean;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerGridExtension<any>, never>;
|
|
110
|
+
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; }; "isReadonly": { "alias": "isReadonly"; "required": false; "isSignal": true; }; "isInvisible": { "alias": "isInvisible"; "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; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "enableSort": { "alias": "enableSort"; "required": false; "isSignal": true; }; "enableRowFocus": { "alias": "enableRowFocus"; "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; }; }, { "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, true, never>;
|
|
111
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { AfterViewInit } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CoerList<T> implements AfterViewInit {
|
|
5
|
+
protected _id: string;
|
|
6
|
+
protected _enableAnimations: boolean;
|
|
7
|
+
dataSource: import("@angular/core").InputSignal<T[]>;
|
|
8
|
+
propDisplay: import("@angular/core").InputSignal<string>;
|
|
9
|
+
header: import("@angular/core").InputSignal<string>;
|
|
10
|
+
headerIcon: import("@angular/core").InputSignal<string>;
|
|
11
|
+
showDeleteButton: import("@angular/core").InputSignal<boolean | ((item: T, index: number) => boolean)>;
|
|
12
|
+
showGoButton: import("@angular/core").InputSignal<boolean | ((item: T, index: number) => boolean)>;
|
|
13
|
+
showBackButton: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
isDraggable: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
showSearch: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
template: import("@angular/core").InputSignal<((item: T, index: number) => string) | null>;
|
|
18
|
+
width: import("@angular/core").InputSignal<string>;
|
|
19
|
+
MinWidth: import("@angular/core").InputSignal<string>;
|
|
20
|
+
MaxWidth: import("@angular/core").InputSignal<string>;
|
|
21
|
+
height: import("@angular/core").InputSignal<string>;
|
|
22
|
+
minHeight: import("@angular/core").InputSignal<string>;
|
|
23
|
+
maxHeight: 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
|
+
onDrop: import("@angular/core").OutputEmitterRef<T>;
|
|
29
|
+
onSort: import("@angular/core").OutputEmitterRef<T[]>;
|
|
30
|
+
onClick: import("@angular/core").OutputEmitterRef<T>;
|
|
31
|
+
onDoubleClick: import("@angular/core").OutputEmitterRef<T>;
|
|
32
|
+
onClickDelete: import("@angular/core").OutputEmitterRef<T>;
|
|
33
|
+
onClickGo: import("@angular/core").OutputEmitterRef<T>;
|
|
34
|
+
onClickBack: import("@angular/core").OutputEmitterRef<void>;
|
|
35
|
+
protected _dataSource: import("@angular/core").Signal<T[]>;
|
|
36
|
+
protected _isDraggable: import("@angular/core").Signal<boolean>;
|
|
37
|
+
protected _hasTemplate: import("@angular/core").Signal<boolean>;
|
|
38
|
+
protected _showbuttons: import("@angular/core").Signal<boolean>;
|
|
39
|
+
protected get _height(): string;
|
|
40
|
+
ngAfterViewInit(): void;
|
|
41
|
+
/** */
|
|
42
|
+
protected GetDisplay: (item: any) => string;
|
|
43
|
+
/** */
|
|
44
|
+
protected GetIndexRow: (item: any) => number;
|
|
45
|
+
/** */
|
|
46
|
+
protected GetTemplate(item: any): string;
|
|
47
|
+
/** */
|
|
48
|
+
protected _showBackButton: () => boolean;
|
|
49
|
+
/** */
|
|
50
|
+
protected _showDeleteButton: (item: any) => boolean;
|
|
51
|
+
/** */
|
|
52
|
+
protected _showGoButton: (item: any) => boolean;
|
|
53
|
+
/** */
|
|
54
|
+
protected Drop(event: CdkDragDrop<T[]>): void;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerList<any>, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerList<any>, "coer-list", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "propDisplay": { "alias": "propDisplay"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "headerIcon": { "alias": "headerIcon"; "required": false; "isSignal": true; }; "showDeleteButton": { "alias": "showDeleteButton"; "required": false; "isSignal": true; }; "showGoButton": { "alias": "showGoButton"; "required": false; "isSignal": true; }; "showBackButton": { "alias": "showBackButton"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isDraggable": { "alias": "isDraggable"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "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; }; "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; }; }, { "onDrop": "onDrop"; "onSort": "onSort"; "onClick": "onClick"; "onDoubleClick": "onDoubleClick"; "onClickDelete": "onClickDelete"; "onClickGo": "onClickGo"; "onClickBack": "onClickBack"; }, never, never, false, never>;
|
|
57
|
+
}
|