@zeedhi/common 1.120.4 → 1.120.5
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/dist/types/components/index.d.ts +151 -0
- package/dist/types/components/zd-alert/alert.d.ts +94 -0
- package/dist/types/components/zd-alert/interfaces.d.ts +18 -0
- package/dist/types/components/zd-badge/badge.d.ts +28 -0
- package/dist/types/components/zd-badge/interfaces.d.ts +10 -0
- package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +32 -0
- package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +24 -0
- package/dist/types/components/zd-button/button.d.ts +89 -0
- package/dist/types/components/zd-button/interfaces.d.ts +48 -0
- package/dist/types/components/zd-button-group/button-group.d.ts +67 -0
- package/dist/types/components/zd-button-group/interfaces.d.ts +25 -0
- package/dist/types/components/zd-card/card.d.ts +152 -0
- package/dist/types/components/zd-card/interfaces.d.ts +40 -0
- package/dist/types/components/zd-carousel/carousel.d.ts +163 -0
- package/dist/types/components/zd-carousel/interfaces.d.ts +49 -0
- package/dist/types/components/zd-checkbox/checkbox.d.ts +12 -0
- package/dist/types/components/zd-checkbox/interfaces.d.ts +5 -0
- package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +39 -0
- package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +13 -0
- package/dist/types/components/zd-chip/chip.d.ts +60 -0
- package/dist/types/components/zd-chip/interfaces.d.ts +18 -0
- package/dist/types/components/zd-code-viewer/code-viewer.d.ts +86 -0
- package/dist/types/components/zd-code-viewer/interfaces.d.ts +13 -0
- package/dist/types/components/zd-col/col.d.ts +33 -0
- package/dist/types/components/zd-col/interfaces.d.ts +15 -0
- package/dist/types/components/zd-collapse-card/collapse-card.d.ts +56 -0
- package/dist/types/components/zd-collapse-card/interfaces.d.ts +14 -0
- package/dist/types/components/zd-component/child-not-found.d.ts +6 -0
- package/dist/types/components/zd-component/component-render.d.ts +16 -0
- package/dist/types/components/zd-component/component.d.ts +120 -0
- package/dist/types/components/zd-component/interfaces.d.ts +74 -0
- package/dist/types/components/zd-container/container.d.ts +45 -0
- package/dist/types/components/zd-container/interfaces.d.ts +12 -0
- package/dist/types/components/zd-currency/currency.d.ts +12 -0
- package/dist/types/components/zd-currency/interfaces.d.ts +6 -0
- package/dist/types/components/zd-date-input/date-input.d.ts +152 -0
- package/dist/types/components/zd-date-input/interfaces.d.ts +27 -0
- package/dist/types/components/zd-date-range/date-range.d.ts +158 -0
- package/dist/types/components/zd-date-range/interfaces.d.ts +18 -0
- package/dist/types/components/zd-dialog/dialog.d.ts +76 -0
- package/dist/types/components/zd-dialog/interfaces.d.ts +13 -0
- package/dist/types/components/zd-divider/divider.d.ts +20 -0
- package/dist/types/components/zd-divider/interfaces.d.ts +8 -0
- package/dist/types/components/zd-dropdown/dropdown.d.ts +81 -0
- package/dist/types/components/zd-dropdown/interfaces.d.ts +23 -0
- package/dist/types/components/zd-footer/footer.d.ts +80 -0
- package/dist/types/components/zd-footer/interfaces.d.ts +26 -0
- package/dist/types/components/zd-form/form.d.ts +174 -0
- package/dist/types/components/zd-form/interfaces.d.ts +36 -0
- package/dist/types/components/zd-frame/frame.d.ts +81 -0
- package/dist/types/components/zd-frame/interfaces.d.ts +23 -0
- package/dist/types/components/zd-frame-page/frame-page.d.ts +14 -0
- package/dist/types/components/zd-frame-page/interfaces.d.ts +4 -0
- package/dist/types/components/zd-grid/data-navigator.d.ts +12 -0
- package/dist/types/components/zd-grid/data-selector.d.ts +25 -0
- package/dist/types/components/zd-grid/grid-column.d.ts +47 -0
- package/dist/types/components/zd-grid/grid-events.d.ts +26 -0
- package/dist/types/components/zd-grid/grid.d.ts +85 -0
- package/dist/types/components/zd-grid/index.d.ts +11 -0
- package/dist/types/components/zd-grid/interfaces.d.ts +148 -0
- package/dist/types/components/zd-grid/iterable-table.d.ts +28 -0
- package/dist/types/components/zd-grid/keymap-merger.d.ts +26 -0
- package/dist/types/components/zd-grid/keymap-navigation.d.ts +6 -0
- package/dist/types/components/zd-grid/table-action-builder.d.ts +19 -0
- package/dist/types/components/zd-grid/view-navigator.d.ts +10 -0
- package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +35 -0
- package/dist/types/components/zd-grid-editable/data-editor.d.ts +64 -0
- package/dist/types/components/zd-grid-editable/errors/index.d.ts +2 -0
- package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +6 -0
- package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +6 -0
- package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +9 -0
- package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +8 -0
- package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +32 -0
- package/dist/types/components/zd-grid-editable/grid-editable.d.ts +124 -0
- package/dist/types/components/zd-grid-editable/index.d.ts +8 -0
- package/dist/types/components/zd-grid-editable/interfaces.d.ts +66 -0
- package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +7 -0
- package/dist/types/components/zd-header/header.d.ts +94 -0
- package/dist/types/components/zd-header/interfaces.d.ts +29 -0
- package/dist/types/components/zd-icon/icon.d.ts +55 -0
- package/dist/types/components/zd-icon/interfaces.d.ts +13 -0
- package/dist/types/components/zd-image/image.d.ts +73 -0
- package/dist/types/components/zd-image/interfaces.d.ts +17 -0
- package/dist/types/components/zd-increment/increment.d.ts +56 -0
- package/dist/types/components/zd-increment/interfaces.d.ts +9 -0
- package/dist/types/components/zd-input/input-factory.d.ts +6 -0
- package/dist/types/components/zd-input/input.d.ts +223 -0
- package/dist/types/components/zd-input/interfaces.d.ts +38 -0
- package/dist/types/components/zd-iterable/column-not-found.d.ts +6 -0
- package/dist/types/components/zd-iterable/column.d.ts +78 -0
- package/dist/types/components/zd-iterable/conditions-manager.d.ts +49 -0
- package/dist/types/components/zd-iterable/interfaces.d.ts +103 -0
- package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +9 -0
- package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +35 -0
- package/dist/types/components/zd-iterable/iterable-controller.d.ts +8 -0
- package/dist/types/components/zd-iterable/iterable-page-component.d.ts +27 -0
- package/dist/types/components/zd-iterable/iterable-page-info.d.ts +7 -0
- package/dist/types/components/zd-iterable/iterable-page-size.d.ts +62 -0
- package/dist/types/components/zd-iterable/iterable-pagination.d.ts +28 -0
- package/dist/types/components/zd-iterable/iterable.d.ts +77 -0
- package/dist/types/components/zd-iterable/search.d.ts +31 -0
- package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +34 -0
- package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +84 -0
- package/dist/types/components/zd-layout/interfaces.d.ts +7 -0
- package/dist/types/components/zd-layout/layout.d.ts +9 -0
- package/dist/types/components/zd-list/interfaces.d.ts +44 -0
- package/dist/types/components/zd-list/item-not-found.d.ts +6 -0
- package/dist/types/components/zd-list/list-group.d.ts +30 -0
- package/dist/types/components/zd-list/list-item.d.ts +46 -0
- package/dist/types/components/zd-list/list.d.ts +81 -0
- package/dist/types/components/zd-loading/interfaces.d.ts +7 -0
- package/dist/types/components/zd-loading/loading.d.ts +21 -0
- package/dist/types/components/zd-login/interfaces.d.ts +25 -0
- package/dist/types/components/zd-login/login-button.d.ts +50 -0
- package/dist/types/components/zd-login/login.d.ts +54 -0
- package/dist/types/components/zd-main/interfaces.d.ts +5 -0
- package/dist/types/components/zd-main/main.d.ts +7 -0
- package/dist/types/components/zd-master-detail/detail-not-found.d.ts +7 -0
- package/dist/types/components/zd-master-detail/interfaces.d.ts +10 -0
- package/dist/types/components/zd-master-detail/master-detail.d.ts +18 -0
- package/dist/types/components/zd-master-detail/master-not-found.d.ts +7 -0
- package/dist/types/components/zd-menu/interfaces.d.ts +68 -0
- package/dist/types/components/zd-menu/menu-button.d.ts +29 -0
- package/dist/types/components/zd-menu/menu-group.d.ts +61 -0
- package/dist/types/components/zd-menu/menu-link.d.ts +50 -0
- package/dist/types/components/zd-menu/menu-separator.d.ts +7 -0
- package/dist/types/components/zd-menu/menu.d.ts +199 -0
- package/dist/types/components/zd-modal/interfaces.d.ts +35 -0
- package/dist/types/components/zd-modal/modal-close-button.d.ts +28 -0
- package/dist/types/components/zd-modal/modal.d.ts +53 -0
- package/dist/types/components/zd-month/interfaces.d.ts +6 -0
- package/dist/types/components/zd-month/month.d.ts +33 -0
- package/dist/types/components/zd-number-input/interfaces.d.ts +8 -0
- package/dist/types/components/zd-number-input/number-input.d.ts +43 -0
- package/dist/types/components/zd-password/interfaces.d.ts +6 -0
- package/dist/types/components/zd-password/password.d.ts +17 -0
- package/dist/types/components/zd-progress/interfaces.d.ts +10 -0
- package/dist/types/components/zd-progress/progress.d.ts +41 -0
- package/dist/types/components/zd-radio/interfaces.d.ts +11 -0
- package/dist/types/components/zd-radio/radio.d.ts +35 -0
- package/dist/types/components/zd-row/interfaces.d.ts +13 -0
- package/dist/types/components/zd-row/row.d.ts +39 -0
- package/dist/types/components/zd-select/interfaces.d.ts +24 -0
- package/dist/types/components/zd-select/select.d.ts +238 -0
- package/dist/types/components/zd-select-multiple/interfaces.d.ts +18 -0
- package/dist/types/components/zd-select-multiple/select-multiple.d.ts +113 -0
- package/dist/types/components/zd-svg-map/interfaces.d.ts +26 -0
- package/dist/types/components/zd-svg-map/svg-map.d.ts +35 -0
- package/dist/types/components/zd-switch/interfaces.d.ts +7 -0
- package/dist/types/components/zd-switch/switch.d.ts +16 -0
- package/dist/types/components/zd-table/interfaces.d.ts +25 -0
- package/dist/types/components/zd-table/table.d.ts +42 -0
- package/dist/types/components/zd-tabs/interfaces.d.ts +40 -0
- package/dist/types/components/zd-tabs/tab-not-found.d.ts +11 -0
- package/dist/types/components/zd-tabs/tab.d.ts +57 -0
- package/dist/types/components/zd-tabs/tabs.d.ts +86 -0
- package/dist/types/components/zd-tag/interfaces.d.ts +7 -0
- package/dist/types/components/zd-tag/tag.d.ts +13 -0
- package/dist/types/components/zd-text/interfaces.d.ts +9 -0
- package/dist/types/components/zd-text/text.d.ts +8 -0
- package/dist/types/components/zd-text-input/interfaces.d.ts +23 -0
- package/dist/types/components/zd-text-input/text-input.d.ts +91 -0
- package/dist/types/components/zd-textarea/interfaces.d.ts +21 -0
- package/dist/types/components/zd-textarea/textarea.d.ts +71 -0
- package/dist/types/components/zd-time/interfaces.d.ts +22 -0
- package/dist/types/components/zd-time/time-format-selector.d.ts +8 -0
- package/dist/types/components/zd-time/time.d.ts +149 -0
- package/dist/types/components/zd-toggleable/interfaces.d.ts +6 -0
- package/dist/types/components/zd-toggleable/toggleable.d.ts +21 -0
- package/dist/types/components/zd-tooltip/interfaces.d.ts +18 -0
- package/dist/types/components/zd-tooltip/tooltip.d.ts +57 -0
- package/dist/types/components/zd-tree/interfaces.d.ts +107 -0
- package/dist/types/components/zd-tree/tree.d.ts +161 -0
- package/dist/types/components/zd-tree-grid/index.d.ts +6 -0
- package/dist/types/components/zd-tree-grid/interfaces.d.ts +35 -0
- package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +10 -0
- package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +7 -0
- package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +10 -0
- package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +18 -0
- package/dist/types/components/zd-tree-grid/tree-grid.d.ts +119 -0
- package/dist/types/error/delete-rows.d.ts +7 -0
- package/dist/types/error/index.d.ts +3 -0
- package/dist/types/error/non-initialized.d.ts +7 -0
- package/dist/types/error/zeedhi-error.d.ts +6 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/services/index.d.ts +4 -0
- package/dist/types/services/zd-alert/alert-queue.d.ts +13 -0
- package/dist/types/services/zd-alert/alert-replace.d.ts +18 -0
- package/dist/types/services/zd-alert/alert-service.d.ts +45 -0
- package/dist/types/services/zd-alert/alert-stack.d.ts +9 -0
- package/dist/types/services/zd-alert/index.d.ts +5 -0
- package/dist/types/services/zd-alert/interfaces.d.ts +6 -0
- package/dist/types/services/zd-dialog/dialog-service.d.ts +24 -0
- package/dist/types/services/zd-loading/loading-service.d.ts +17 -0
- package/dist/types/services/zd-modal/modal-service.d.ts +39 -0
- package/dist/types/utils/data-value-out/data-value-out.d.ts +5 -0
- package/dist/types/utils/data-value-out/index.d.ts +2 -0
- package/dist/types/utils/data-value-out/interfaces.d.ts +8 -0
- package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +6 -0
- package/dist/types/utils/datasource-searcher/index.d.ts +2 -0
- package/dist/types/utils/datasource-searcher/interfaces.d.ts +5 -0
- package/dist/types/utils/icons/icons.d.ts +24 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/omit/omit.d.ts +11 -0
- package/dist/types/utils/theme/theme.d.ts +34 -0
- package/dist/types/utils/tree-data-structure/index.d.ts +2 -0
- package/dist/types/utils/tree-data-structure/interfaces.d.ts +30 -0
- package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +155 -0
- package/dist/types/utils/unique-by/unique-by.d.ts +3 -0
- package/dist/zd-common.esm.js +1 -1
- package/dist/zd-common.js +13133 -0
- package/dist/zd-common.min.js +13133 -0
- package/dist/zd-common.umd.js +1 -1
- package/package.json +2 -2
- package/types/services/zd-json-cache/json-cache-service.d.ts +0 -12
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { Select } from '../zd-select/select';
|
|
3
|
+
import { IIterablePageSize } from './interfaces';
|
|
4
|
+
import { Iterable } from './iterable';
|
|
5
|
+
/**
|
|
6
|
+
* Base class for Iterable Page Size component
|
|
7
|
+
*/
|
|
8
|
+
export declare class IterablePageSize extends Select implements IIterablePageSize {
|
|
9
|
+
/**
|
|
10
|
+
* Iterable component name
|
|
11
|
+
*/
|
|
12
|
+
iterableComponentName: string;
|
|
13
|
+
/**
|
|
14
|
+
* Add input clear functionality if the input isn't readonly or disabled.
|
|
15
|
+
*/
|
|
16
|
+
clearable: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Field used to display values
|
|
19
|
+
*/
|
|
20
|
+
dataText: string | string[];
|
|
21
|
+
/**
|
|
22
|
+
* Field used to save values
|
|
23
|
+
*/
|
|
24
|
+
dataValue: string;
|
|
25
|
+
/**
|
|
26
|
+
* Enables search input
|
|
27
|
+
*/
|
|
28
|
+
autocomplete: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Shows input helper.
|
|
31
|
+
*/
|
|
32
|
+
showHelper: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Shows input label.
|
|
35
|
+
*/
|
|
36
|
+
showLabel: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Input validations.
|
|
39
|
+
*/
|
|
40
|
+
validations: IDictionary;
|
|
41
|
+
/**
|
|
42
|
+
* Iterable component name
|
|
43
|
+
*/
|
|
44
|
+
iterableComponent: Iterable;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new Iterable Page component.
|
|
47
|
+
* @param props Iterable page component properties
|
|
48
|
+
*/
|
|
49
|
+
constructor(props: IIterablePageSize);
|
|
50
|
+
/**
|
|
51
|
+
* Set the Iterable Component
|
|
52
|
+
* @param element Element mounted reference
|
|
53
|
+
*/
|
|
54
|
+
onMounted(element: any): void;
|
|
55
|
+
private setIterableComponent;
|
|
56
|
+
/**
|
|
57
|
+
* Event trigged when component loses the focus and value changes
|
|
58
|
+
* @param value inputed value
|
|
59
|
+
*/
|
|
60
|
+
selectChange(value: any, event?: Event, element?: any): void;
|
|
61
|
+
changePageSize(size: number): void;
|
|
62
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IIterablePagination } from './interfaces';
|
|
2
|
+
import { IterablePageComponent } from './iterable-page-component';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Iterable Pagination component
|
|
5
|
+
*/
|
|
6
|
+
export declare class IterablePagination extends IterablePageComponent implements IIterablePagination {
|
|
7
|
+
/**
|
|
8
|
+
* Previous button icon
|
|
9
|
+
*/
|
|
10
|
+
prevIcon: string;
|
|
11
|
+
/**
|
|
12
|
+
* Next button icon
|
|
13
|
+
*/
|
|
14
|
+
nextIcon: string;
|
|
15
|
+
/**
|
|
16
|
+
* Show buttons as circles
|
|
17
|
+
*/
|
|
18
|
+
circle: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Delimits the maximum number of page buttons. Undefined means automatic
|
|
21
|
+
*/
|
|
22
|
+
maxButtons?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new Iterable Pagination.
|
|
25
|
+
* @param props Iterable pagination properties
|
|
26
|
+
*/
|
|
27
|
+
constructor(props: IIterablePagination);
|
|
28
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Datasource, IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
3
|
+
import { IComponentRender } from '../zd-component/interfaces';
|
|
4
|
+
import { Column } from './column';
|
|
5
|
+
import { IColumn, IIterable, IIterableEvents, IIterableProps } from './interfaces';
|
|
6
|
+
/**
|
|
7
|
+
* Base class for Iterable components.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class Iterable<T extends Column = Column> extends ComponentRender<IIterableProps> implements IIterable<T> {
|
|
10
|
+
/**
|
|
11
|
+
* Iterable datasource
|
|
12
|
+
*/
|
|
13
|
+
datasource: Datasource;
|
|
14
|
+
columns: T[];
|
|
15
|
+
pageSizes: string[];
|
|
16
|
+
events: IIterableEvents;
|
|
17
|
+
virtualScroll: boolean;
|
|
18
|
+
virtualScrollCache: number;
|
|
19
|
+
searchVisibleOnly: boolean;
|
|
20
|
+
defaultSearchVisibleOnly: boolean;
|
|
21
|
+
private conditionsManager;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new Iterable.
|
|
24
|
+
* @param props Iterable properties
|
|
25
|
+
*/
|
|
26
|
+
constructor(props: IIterableProps);
|
|
27
|
+
protected initializeDatasource(props: IIterableProps): void;
|
|
28
|
+
updateData(data: IDictionary[]): Promise<any>;
|
|
29
|
+
getAppliedConditions(args: {
|
|
30
|
+
row: IDictionary;
|
|
31
|
+
column: Column;
|
|
32
|
+
path?: string;
|
|
33
|
+
}): Partial<IComponentRender>;
|
|
34
|
+
getCurrentRowIndex(): number;
|
|
35
|
+
getPage(): number;
|
|
36
|
+
setPage(page: number): Promise<any>;
|
|
37
|
+
getLastPage(): number;
|
|
38
|
+
protected createController(): void;
|
|
39
|
+
onCreated(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves columns instances
|
|
42
|
+
* @param columns Columns property
|
|
43
|
+
*/
|
|
44
|
+
protected createColumns(props: IIterableProps): T[];
|
|
45
|
+
abstract createColumn(columnProps: IColumn): T;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves a columns by name
|
|
48
|
+
* @param name Column name
|
|
49
|
+
*/
|
|
50
|
+
getColumn(name: string): T;
|
|
51
|
+
get pageText(): string;
|
|
52
|
+
get paginationLength(): number;
|
|
53
|
+
/**
|
|
54
|
+
* Return cells with conditions applied for each row
|
|
55
|
+
* @param columns Iterable columns
|
|
56
|
+
* @param row Datasource row
|
|
57
|
+
*/
|
|
58
|
+
getCellWithAppliedConditions(columns: Column[], row: IDictionary<any>): IDictionary<IDictionary<any>>;
|
|
59
|
+
reapplyConditions(row: IDictionary<any>, columns?: Column[]): IDictionary<IDictionary<any>>;
|
|
60
|
+
reload(): Promise<any>;
|
|
61
|
+
changeData(data: IDictionary[]): void;
|
|
62
|
+
onBeforeDestroy(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Dispatches change layout Event
|
|
65
|
+
* @param event DOM event
|
|
66
|
+
* @param element DOM Element
|
|
67
|
+
*/
|
|
68
|
+
changeLayout(event?: Event, element?: any): void;
|
|
69
|
+
setSearch(search: string): Promise<any>;
|
|
70
|
+
setCurrentRow(row: IDictionary): void;
|
|
71
|
+
setOrder(order: string[]): Promise<any>;
|
|
72
|
+
getRowKey(row: IDictionary): any;
|
|
73
|
+
delete(row: IDictionary): Promise<any>;
|
|
74
|
+
getData(): IDictionary[];
|
|
75
|
+
protected changeDefaultSlotNames(slot: IComponentRender[]): any;
|
|
76
|
+
findRow(key: string | number): IDictionary<any> | undefined;
|
|
77
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TextInput } from '../zd-text-input/text-input';
|
|
2
|
+
import { ISearch } from './interfaces';
|
|
3
|
+
import { Iterable } from './iterable';
|
|
4
|
+
/**
|
|
5
|
+
* Base class for Search component
|
|
6
|
+
*/
|
|
7
|
+
export declare class Search extends TextInput implements ISearch {
|
|
8
|
+
/**
|
|
9
|
+
* Iterable component name
|
|
10
|
+
*/
|
|
11
|
+
iterableComponentName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Iterable component name
|
|
14
|
+
*/
|
|
15
|
+
iterableComponent: Iterable;
|
|
16
|
+
showLabel: boolean;
|
|
17
|
+
showHelper: boolean;
|
|
18
|
+
appendIcon: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
lazyAttach: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new Iterable Page component.
|
|
23
|
+
* @param props Iterable page component properties
|
|
24
|
+
*/
|
|
25
|
+
constructor(props: ISearch);
|
|
26
|
+
setIterableComponent(name?: string): void;
|
|
27
|
+
protected setSearch(search: string): Promise<void>;
|
|
28
|
+
debounceSetSearch: (search: string) => void;
|
|
29
|
+
get value(): string;
|
|
30
|
+
set value(value: string);
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IComponentRender } from '../zd-component/interfaces';
|
|
2
|
+
import { IIterableProps } from '../zd-iterable/interfaces';
|
|
3
|
+
export interface IIterableComponentRenderProps extends IIterableProps {
|
|
4
|
+
rowPropName?: string;
|
|
5
|
+
componentMetadata?: IComponentRender;
|
|
6
|
+
footerSlot?: IComponentRender[];
|
|
7
|
+
toolbarSlot?: IComponentRender[];
|
|
8
|
+
errorSlot?: IComponentRender[];
|
|
9
|
+
noDataSlot?: IComponentRender[];
|
|
10
|
+
noResultSlot?: IComponentRender[];
|
|
11
|
+
height?: number | string;
|
|
12
|
+
maxHeight?: number | string;
|
|
13
|
+
minHeight?: number | string;
|
|
14
|
+
fillHeight?: boolean;
|
|
15
|
+
width?: number | string;
|
|
16
|
+
maxWidth?: number | string;
|
|
17
|
+
minWidth?: number | string;
|
|
18
|
+
}
|
|
19
|
+
export interface IIterableComponentRender extends IIterableProps {
|
|
20
|
+
rowPropName: string;
|
|
21
|
+
componentMetadata?: IComponentRender;
|
|
22
|
+
footerSlot: IComponentRender[];
|
|
23
|
+
toolbarSlot: IComponentRender[];
|
|
24
|
+
errorSlot: IComponentRender[];
|
|
25
|
+
noDataSlot: IComponentRender[];
|
|
26
|
+
noResultSlot: IComponentRender[];
|
|
27
|
+
height: number | string;
|
|
28
|
+
maxHeight: number | string;
|
|
29
|
+
minHeight: number | string;
|
|
30
|
+
fillHeight: boolean;
|
|
31
|
+
width: number | string;
|
|
32
|
+
maxWidth: number | string;
|
|
33
|
+
minWidth: number | string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { Column } from '../zd-iterable/column';
|
|
4
|
+
import { IColumn } from '../zd-iterable/interfaces';
|
|
5
|
+
import { Iterable } from '../zd-iterable/iterable';
|
|
6
|
+
import { IIterableComponentRender, IIterableComponentRenderProps } from './interfaces';
|
|
7
|
+
/**
|
|
8
|
+
* Base class for IterableComponentRender component.
|
|
9
|
+
* This component uses every row returned by Iterable.datasource to render
|
|
10
|
+
* components defined by componentMetadata property.
|
|
11
|
+
* If the data inside the datasource is changed you should perform
|
|
12
|
+
* a datasource.get() to force updating the rendered components.
|
|
13
|
+
*/
|
|
14
|
+
export declare class IterableComponentRender extends Iterable implements IIterableComponentRender {
|
|
15
|
+
/**
|
|
16
|
+
* Components that will be rendered on toolbar slot
|
|
17
|
+
*/
|
|
18
|
+
toolbarSlot: IComponentRender[];
|
|
19
|
+
/**
|
|
20
|
+
* Components that will be rendered on footer slot
|
|
21
|
+
*/
|
|
22
|
+
footerSlot: IComponentRender[];
|
|
23
|
+
/**
|
|
24
|
+
* Component item definition
|
|
25
|
+
*/
|
|
26
|
+
componentMetadata: IComponentRender;
|
|
27
|
+
/**
|
|
28
|
+
* Row property name
|
|
29
|
+
*/
|
|
30
|
+
rowPropName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Components that will be rendered in no-data case
|
|
33
|
+
*/
|
|
34
|
+
noDataSlot: IComponentRender[];
|
|
35
|
+
/**
|
|
36
|
+
* Components that will be rendered in no-result case
|
|
37
|
+
*/
|
|
38
|
+
noResultSlot: IComponentRender[];
|
|
39
|
+
/**
|
|
40
|
+
* Defines the component height. Possible values for this property can be
|
|
41
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
42
|
+
*/
|
|
43
|
+
height: string | number;
|
|
44
|
+
/**
|
|
45
|
+
* Defines the component min height. Possible values for this property can be
|
|
46
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
47
|
+
*/
|
|
48
|
+
minHeight: string | number;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the component max height. Possible values for this property can be
|
|
51
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
52
|
+
*/
|
|
53
|
+
maxHeight: string | number;
|
|
54
|
+
/**
|
|
55
|
+
* Set component height to fill all space available
|
|
56
|
+
*/
|
|
57
|
+
fillHeight: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Defines the component width. Possible values for this property can be
|
|
60
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
61
|
+
*/
|
|
62
|
+
width: string | number;
|
|
63
|
+
/**
|
|
64
|
+
* Defines the component min width. Possible values for this property can be
|
|
65
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
66
|
+
*/
|
|
67
|
+
minWidth: string | number;
|
|
68
|
+
/**
|
|
69
|
+
* Defines the component max height. Possible values for this property can be
|
|
70
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
71
|
+
*/
|
|
72
|
+
maxWidth: string | number;
|
|
73
|
+
/**
|
|
74
|
+
* Components that will be rendered in error case
|
|
75
|
+
*/
|
|
76
|
+
errorSlot: IComponentRender[];
|
|
77
|
+
constructor(props: IIterableComponentRenderProps);
|
|
78
|
+
private addSlashes;
|
|
79
|
+
/**
|
|
80
|
+
* Returns the iterable component metadata based on row data
|
|
81
|
+
*/
|
|
82
|
+
getComponentMetadata(row: IDictionary<any>): any;
|
|
83
|
+
createColumn(column: IColumn): Column;
|
|
84
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { ILayout } from './interfaces';
|
|
3
|
+
export declare class Layout extends ComponentRender implements ILayout {
|
|
4
|
+
fullHeight?: boolean | undefined;
|
|
5
|
+
scrollable?: boolean | undefined;
|
|
6
|
+
tag?: string;
|
|
7
|
+
height: string | number;
|
|
8
|
+
constructor(props: ILayout);
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IComponent, IComponentRender } from '../zd-component/interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for list component
|
|
4
|
+
*/
|
|
5
|
+
export interface IList extends IComponentRender {
|
|
6
|
+
dense?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
divided?: boolean;
|
|
9
|
+
items?: IListItem[];
|
|
10
|
+
lines?: false | 'one' | 'two' | 'three';
|
|
11
|
+
color?: string;
|
|
12
|
+
elevation?: number | string;
|
|
13
|
+
openStrategy?: 'single' | 'multiple' | 'list';
|
|
14
|
+
height?: number | string;
|
|
15
|
+
maxHeight?: number | string;
|
|
16
|
+
minHeight?: number | string;
|
|
17
|
+
fillHeight?: boolean;
|
|
18
|
+
width?: number | string;
|
|
19
|
+
maxWidth?: number | string;
|
|
20
|
+
minWidth?: number | string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Interface for list itens
|
|
24
|
+
*/
|
|
25
|
+
export interface IListItem extends IComponentRender {
|
|
26
|
+
appendIcon?: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
leftField?: IComponent;
|
|
29
|
+
prependIcon?: string;
|
|
30
|
+
rightField?: IComponent;
|
|
31
|
+
ripple?: boolean;
|
|
32
|
+
subtitle?: string;
|
|
33
|
+
title?: string;
|
|
34
|
+
lines?: false | 'one' | 'two' | 'three';
|
|
35
|
+
dense?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Interface for list group
|
|
39
|
+
*/
|
|
40
|
+
export interface IListGroup extends IListItem {
|
|
41
|
+
items?: IListItem[];
|
|
42
|
+
lazyLoad?: boolean;
|
|
43
|
+
opened?: boolean;
|
|
44
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IListGroup, IListItem } from './interfaces';
|
|
2
|
+
import { ListItem } from './list-item';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for ListGroup component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ListGroup extends ListItem implements IListGroup {
|
|
7
|
+
/**
|
|
8
|
+
* List items structure.
|
|
9
|
+
*/
|
|
10
|
+
items: IListItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Content will be loaded only when the group opens.
|
|
13
|
+
*/
|
|
14
|
+
lazyLoad: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Group state.
|
|
17
|
+
*/
|
|
18
|
+
opened: boolean;
|
|
19
|
+
constructor(props: IListGroup);
|
|
20
|
+
/**
|
|
21
|
+
* Toggle group state.
|
|
22
|
+
*/
|
|
23
|
+
toggle(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Get item by name
|
|
26
|
+
* @param name name property of the item
|
|
27
|
+
* @throws ItemNotFoundError
|
|
28
|
+
*/
|
|
29
|
+
getItem(name: string): IListItem;
|
|
30
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { IComponent } from '../zd-component/interfaces';
|
|
3
|
+
import { IListItem } from './interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* Base class for ListItem component.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ListItem extends ComponentRender implements IListItem {
|
|
8
|
+
/**
|
|
9
|
+
* Append an icon inside the item.
|
|
10
|
+
*/
|
|
11
|
+
appendIcon?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Removes the ability to click or target the item.
|
|
14
|
+
*/
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Prepend a component inside the item.
|
|
18
|
+
*/
|
|
19
|
+
leftField?: IComponent;
|
|
20
|
+
/**
|
|
21
|
+
* Prepend an icon inside the item.
|
|
22
|
+
*/
|
|
23
|
+
prependIcon?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Append a component inside the item.
|
|
26
|
+
*/
|
|
27
|
+
rightField?: IComponent;
|
|
28
|
+
/**
|
|
29
|
+
* Apply the ripple effect to show action from a user.
|
|
30
|
+
*/
|
|
31
|
+
ripple: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the item subtitle.
|
|
34
|
+
*/
|
|
35
|
+
subtitle?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Increases the item height to better support more lines of text.
|
|
38
|
+
*/
|
|
39
|
+
lines?: false | 'one' | 'two' | 'three';
|
|
40
|
+
/**
|
|
41
|
+
* Defines the item title.
|
|
42
|
+
*/
|
|
43
|
+
title?: string;
|
|
44
|
+
dense: boolean;
|
|
45
|
+
constructor(props: IListItem);
|
|
46
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { IList, IListItem } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for List component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class List extends ComponentRender implements IList {
|
|
7
|
+
/**
|
|
8
|
+
* Applies specified color to the entire list.
|
|
9
|
+
* It can be the name of material or css color in hexa or rgba.
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Create the list with smaller items.
|
|
14
|
+
*/
|
|
15
|
+
dense: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Removes the ability to click or target the list.
|
|
18
|
+
*/
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Render list with dividers between the items.
|
|
22
|
+
*/
|
|
23
|
+
divided: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* List items structure.
|
|
26
|
+
*/
|
|
27
|
+
items: IListItem[];
|
|
28
|
+
/**
|
|
29
|
+
* Increases the height of all the list items to better support more lines of text.
|
|
30
|
+
*/
|
|
31
|
+
lines: false | 'one' | 'two' | 'three';
|
|
32
|
+
/**
|
|
33
|
+
* Designates an elevation applied to the list between 0 and 24.
|
|
34
|
+
*/
|
|
35
|
+
elevation: number | string;
|
|
36
|
+
/**
|
|
37
|
+
* Will only collapse when explicitly closed.
|
|
38
|
+
*/
|
|
39
|
+
openStrategy: 'single' | 'multiple' | 'list';
|
|
40
|
+
/**
|
|
41
|
+
* Defines the component height. Possible values for this property can be
|
|
42
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
43
|
+
*/
|
|
44
|
+
height: string | number;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the component min height. Possible values for this property can be
|
|
47
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
48
|
+
*/
|
|
49
|
+
minHeight: string | number;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the component max height. Possible values for this property can be
|
|
52
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
53
|
+
*/
|
|
54
|
+
maxHeight: string | number;
|
|
55
|
+
/**
|
|
56
|
+
* Set component height to fill all space available
|
|
57
|
+
*/
|
|
58
|
+
fillHeight: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Defines the component width. Possible values for this property can be
|
|
61
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
62
|
+
*/
|
|
63
|
+
width: string | number;
|
|
64
|
+
/**
|
|
65
|
+
* Defines the component min width. Possible values for this property can be
|
|
66
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
67
|
+
*/
|
|
68
|
+
minWidth: string | number;
|
|
69
|
+
/**
|
|
70
|
+
* Defines the component max height. Possible values for this property can be
|
|
71
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
72
|
+
*/
|
|
73
|
+
maxWidth: string | number;
|
|
74
|
+
constructor(props: IList);
|
|
75
|
+
/**
|
|
76
|
+
* Get item by name
|
|
77
|
+
* @param name name property of the item
|
|
78
|
+
* @throws ItemNotFoundError
|
|
79
|
+
*/
|
|
80
|
+
getItem(name: string): IListItem;
|
|
81
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component } from '../zd-component/component';
|
|
2
|
+
import { ILoading } from './interfaces';
|
|
3
|
+
export declare class Loading extends Component implements ILoading {
|
|
4
|
+
/**
|
|
5
|
+
* text to show in Loader Overlay
|
|
6
|
+
*/
|
|
7
|
+
text?: string;
|
|
8
|
+
defaultText?: string;
|
|
9
|
+
opacity?: number | string;
|
|
10
|
+
isVisible: boolean;
|
|
11
|
+
zIndex: number | string;
|
|
12
|
+
constructor(props: ILoading);
|
|
13
|
+
/**
|
|
14
|
+
* Displays overlay
|
|
15
|
+
*/
|
|
16
|
+
show(text?: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Close overlay
|
|
19
|
+
*/
|
|
20
|
+
hide(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IDictionary, IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IButton } from '../zd-button/interfaces';
|
|
3
|
+
import { IComponentRender } from '../zd-component/interfaces';
|
|
4
|
+
import { Login } from './login';
|
|
5
|
+
import { LoginButton } from './login-button';
|
|
6
|
+
export type ILoginEvent = IEventParam<Login>;
|
|
7
|
+
export type ILoginButtonEvent = IEventParam<LoginButton>;
|
|
8
|
+
export interface ILogin extends IComponentRender {
|
|
9
|
+
backgroundStyle?: string;
|
|
10
|
+
bottomLink?: IComponentRender[];
|
|
11
|
+
color?: string;
|
|
12
|
+
cardWidth?: string | number;
|
|
13
|
+
layout?: string;
|
|
14
|
+
logo?: string;
|
|
15
|
+
logoMessage?: string;
|
|
16
|
+
poweredByImage?: string;
|
|
17
|
+
poweredByImageCard?: string;
|
|
18
|
+
socialLogin?: IComponentRender[];
|
|
19
|
+
flatForm?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ILoginButton extends IButton {
|
|
22
|
+
authUrl?: string;
|
|
23
|
+
redirectUrl?: string;
|
|
24
|
+
requestParams?: IDictionary<any>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { Button } from '../zd-button/button';
|
|
3
|
+
import { Form } from '../zd-form/form';
|
|
4
|
+
import { ILoginButton } from './interfaces';
|
|
5
|
+
/**
|
|
6
|
+
* The Login button component <code>zd-login-button</code> is used to handle login.
|
|
7
|
+
*/
|
|
8
|
+
export declare class LoginButton extends Button implements ILoginButton {
|
|
9
|
+
parent?: Form;
|
|
10
|
+
/**
|
|
11
|
+
* Endpoint used to authentication
|
|
12
|
+
*/
|
|
13
|
+
authUrl: string;
|
|
14
|
+
/**
|
|
15
|
+
* Url to redirect
|
|
16
|
+
*/
|
|
17
|
+
redirectUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* Extra params to be added on login request
|
|
20
|
+
*/
|
|
21
|
+
requestParams: IDictionary<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a new LoginButton
|
|
24
|
+
* @param props LoginButton definition
|
|
25
|
+
*/
|
|
26
|
+
constructor(props: ILoginButton);
|
|
27
|
+
/**
|
|
28
|
+
* Click event
|
|
29
|
+
*/
|
|
30
|
+
click(event: Event, element: any): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Send request to the configured endpoint
|
|
33
|
+
*/
|
|
34
|
+
private sendRequest;
|
|
35
|
+
/**
|
|
36
|
+
* Returns a parsed query string
|
|
37
|
+
* @param args Params to the query string
|
|
38
|
+
*/
|
|
39
|
+
private getQueryString;
|
|
40
|
+
/**
|
|
41
|
+
* Redirect the app to the configured url
|
|
42
|
+
* @param args Response
|
|
43
|
+
*/
|
|
44
|
+
private handleLoginSuccess;
|
|
45
|
+
/**
|
|
46
|
+
* Emit the LoginFail event
|
|
47
|
+
* @param args Response
|
|
48
|
+
*/
|
|
49
|
+
private handleLoginFail;
|
|
50
|
+
}
|