@zeedhi/common 1.120.2 → 1.122.0
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 +4 -4
- package/dist/zd-common.js +13133 -0
- package/dist/zd-common.min.js +13133 -0
- package/dist/zd-common.umd.js +4 -4
- package/package.json +2 -2
- package/types/components/zd-grid/grid.d.ts +4 -4
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { ISvgMap, ISvgMapEvents, TooltipData } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for SvgMap component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SvgMap extends ComponentRender implements ISvgMap {
|
|
7
|
+
areaColor?: string;
|
|
8
|
+
areaHoverColor?: string;
|
|
9
|
+
areaSelectColor?: string;
|
|
10
|
+
events: ISvgMapEvents;
|
|
11
|
+
height: string | number;
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
width: string | number;
|
|
14
|
+
svgContent: string;
|
|
15
|
+
svgContainer: any;
|
|
16
|
+
tooltipData?: TooltipData | undefined;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
keyColumn: string;
|
|
19
|
+
private mapAreas;
|
|
20
|
+
private srcValue;
|
|
21
|
+
private selectedAreaValue;
|
|
22
|
+
protected viewBeforeUpdate?: () => void;
|
|
23
|
+
protected viewUpdate?: () => void;
|
|
24
|
+
constructor(props: ISvgMap);
|
|
25
|
+
get src(): string;
|
|
26
|
+
set src(value: string);
|
|
27
|
+
get selectedArea(): string | string[];
|
|
28
|
+
set selectedArea(value: string | string[]);
|
|
29
|
+
private updateSelectedArea;
|
|
30
|
+
private getSVG;
|
|
31
|
+
setViewBeforeUpdate(beforeUpdate: () => void): void;
|
|
32
|
+
setViewUpdate(update: () => void): void;
|
|
33
|
+
updateSVGContainer(): void;
|
|
34
|
+
mapClick(element: SVGElement): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Toggleable } from '../zd-toggleable/toggleable';
|
|
2
|
+
import { ISwitch } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Switch component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Switch extends Toggleable implements ISwitch {
|
|
7
|
+
/**
|
|
8
|
+
* It can make switch render in inset mode.
|
|
9
|
+
*/
|
|
10
|
+
inset: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new Switch.
|
|
13
|
+
* @param props Switch properties
|
|
14
|
+
*/
|
|
15
|
+
constructor(props: ISwitch);
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IIterable, IIterableProps } from '../zd-iterable/interfaces';
|
|
3
|
+
import { Table } from './table';
|
|
4
|
+
export type ITabletEvent = IEventParam<Table>;
|
|
5
|
+
export interface ITableProps extends IIterableProps {
|
|
6
|
+
caption?: ITableCaption;
|
|
7
|
+
showTableHead?: boolean;
|
|
8
|
+
fillWidth?: boolean;
|
|
9
|
+
height?: number | string;
|
|
10
|
+
maxHeight?: number | string;
|
|
11
|
+
minHeight?: number | string;
|
|
12
|
+
}
|
|
13
|
+
export interface ITable extends IIterable {
|
|
14
|
+
caption: ITableCaption;
|
|
15
|
+
showTableHead: boolean;
|
|
16
|
+
fillWidth: boolean;
|
|
17
|
+
height: number | string;
|
|
18
|
+
maxHeight: number | string;
|
|
19
|
+
minHeight: number | string;
|
|
20
|
+
}
|
|
21
|
+
export interface ITableCaption {
|
|
22
|
+
label?: string;
|
|
23
|
+
isVisible?: boolean;
|
|
24
|
+
align?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column } from '../zd-iterable/column';
|
|
2
|
+
import { IColumn } from '../zd-iterable/interfaces';
|
|
3
|
+
import { Iterable } from '../zd-iterable/iterable';
|
|
4
|
+
import { ITable, ITableCaption, ITableProps } from './interfaces';
|
|
5
|
+
/**
|
|
6
|
+
* Base class for Table component.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Table extends Iterable implements ITable {
|
|
9
|
+
/**
|
|
10
|
+
* Defines table caption.
|
|
11
|
+
*/
|
|
12
|
+
caption: ITableCaption;
|
|
13
|
+
/**
|
|
14
|
+
* Controls table width.
|
|
15
|
+
*/
|
|
16
|
+
fillWidth: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Controls table head visibility.
|
|
19
|
+
*/
|
|
20
|
+
showTableHead: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the component height. Possible values for this property can be
|
|
23
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
24
|
+
*/
|
|
25
|
+
height: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the component min height. Possible values for this property can be
|
|
28
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
29
|
+
*/
|
|
30
|
+
minHeight: string | number;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the component max height. Possible values for this property can be
|
|
33
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
34
|
+
*/
|
|
35
|
+
maxHeight: string | number;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new Table.
|
|
38
|
+
* @param table Table properties
|
|
39
|
+
*/
|
|
40
|
+
constructor(props: ITableProps);
|
|
41
|
+
createColumn(column: IColumn): Column;
|
|
42
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { EventDef, IComponent, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { Tabs } from './tabs';
|
|
4
|
+
export type ITabsEventParam = IEventParam<Tabs>;
|
|
5
|
+
export interface ITabsBeforeChangeEventParam extends ITabsEventParam {
|
|
6
|
+
tabIndex: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ITabsEvents<T = ITabsEventParam | ITabsBeforeChangeEventParam | IEventParam<any>> extends IComponentEvents<T> {
|
|
9
|
+
change?: EventDef<T>;
|
|
10
|
+
beforeChange?: EventDef<T>;
|
|
11
|
+
}
|
|
12
|
+
export interface ITab extends IComponent {
|
|
13
|
+
tabTitle: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
lazyLoad?: boolean;
|
|
16
|
+
color?: string;
|
|
17
|
+
dense?: boolean;
|
|
18
|
+
direction?: 'horizontal' | 'vertical';
|
|
19
|
+
fixed?: boolean;
|
|
20
|
+
iconName?: string;
|
|
21
|
+
rounded?: string | number | boolean;
|
|
22
|
+
selectedClass?: string;
|
|
23
|
+
value?: any;
|
|
24
|
+
variant?: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';
|
|
25
|
+
width?: string | number;
|
|
26
|
+
}
|
|
27
|
+
export interface ITabs extends IComponentRender {
|
|
28
|
+
activeTab?: number;
|
|
29
|
+
tabs?: ITab[];
|
|
30
|
+
height?: number | string;
|
|
31
|
+
maxHeight?: number | string;
|
|
32
|
+
minHeight?: number | string;
|
|
33
|
+
color?: string;
|
|
34
|
+
backgroudColor?: string;
|
|
35
|
+
dense?: boolean;
|
|
36
|
+
direction?: 'horizontal' | 'vertical';
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
grow?: boolean;
|
|
39
|
+
max?: number;
|
|
40
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Component } from '../zd-component/component';
|
|
2
|
+
import { ITab } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Tab component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Tab extends Component implements ITab {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
tabTitle: string;
|
|
9
|
+
lazyLoad: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Applies specified color to the control
|
|
12
|
+
*/
|
|
13
|
+
color: string;
|
|
14
|
+
/**
|
|
15
|
+
* Adjusts the vertical height used by the component.
|
|
16
|
+
*/
|
|
17
|
+
dense: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Changes the direction of the tabs. Can be either horizontal or vertical.
|
|
20
|
+
*/
|
|
21
|
+
direction: 'horizontal' | 'vertical';
|
|
22
|
+
/**
|
|
23
|
+
* Forces component to take up all available space up to
|
|
24
|
+
* their maximum width (300px), and centers it.
|
|
25
|
+
*/
|
|
26
|
+
fixed: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Enable and show the icon with respective icon name.
|
|
29
|
+
*/
|
|
30
|
+
iconName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Designates the border-radius applied to the component.
|
|
33
|
+
*/
|
|
34
|
+
rounded: string | number | boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Configure the active CSS class applied when an item is selected.
|
|
37
|
+
*/
|
|
38
|
+
selectedClass: string;
|
|
39
|
+
/**
|
|
40
|
+
* The value used when the component is selected in a group.
|
|
41
|
+
* If not provided, a unique ID will be used.
|
|
42
|
+
*/
|
|
43
|
+
value: any;
|
|
44
|
+
/**
|
|
45
|
+
* Applies a distinct style to the component
|
|
46
|
+
*/
|
|
47
|
+
variant: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';
|
|
48
|
+
/**
|
|
49
|
+
* Sets the width for the component.
|
|
50
|
+
*/
|
|
51
|
+
width?: string | number;
|
|
52
|
+
/**
|
|
53
|
+
* Create a new Tab.
|
|
54
|
+
* @param props Tab properties
|
|
55
|
+
*/
|
|
56
|
+
constructor(props: ITab);
|
|
57
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { ITabs, ITabsEvents } from './interfaces';
|
|
3
|
+
import { Tab } from './tab';
|
|
4
|
+
/**
|
|
5
|
+
* Base class for Tabs component.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Tabs extends ComponentRender implements ITabs {
|
|
8
|
+
activeTabValue: number;
|
|
9
|
+
events: ITabsEvents;
|
|
10
|
+
tabs: Tab[];
|
|
11
|
+
/**
|
|
12
|
+
* Defines the component height. Possible values for this property can be
|
|
13
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
14
|
+
*/
|
|
15
|
+
height: string | number;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the component min height. Possible values for this property can be
|
|
18
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
19
|
+
*/
|
|
20
|
+
minHeight: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the component max height. Possible values for this property can be
|
|
23
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
24
|
+
*/
|
|
25
|
+
maxHeight: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Applies specified color to the selected tabs.
|
|
28
|
+
*/
|
|
29
|
+
color?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Applies specified color to the control’s background.
|
|
32
|
+
*/
|
|
33
|
+
backgroudColor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adjusts the vertical height used by the component.
|
|
36
|
+
*/
|
|
37
|
+
dense?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Changes the direction of the tabs. Can be either horizontal or vertical
|
|
40
|
+
*/
|
|
41
|
+
direction?: 'horizontal' | 'vertical';
|
|
42
|
+
/**
|
|
43
|
+
* Puts all children components into a disabled state
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Force v-tab’s to take up all available space
|
|
48
|
+
*/
|
|
49
|
+
grow?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Sets a maximum number of selections that can be made.
|
|
52
|
+
*/
|
|
53
|
+
max?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Create a new Tabs.
|
|
56
|
+
* @param props Tabs properties
|
|
57
|
+
*/
|
|
58
|
+
constructor(props: ITabs);
|
|
59
|
+
get activeTab(): number;
|
|
60
|
+
set activeTab(index: number);
|
|
61
|
+
private getTabs;
|
|
62
|
+
getTab(name: string): Tab;
|
|
63
|
+
/**
|
|
64
|
+
* Method for navigating to the next tab
|
|
65
|
+
* @param loop Defines if want a loop navigation
|
|
66
|
+
*/
|
|
67
|
+
nextTab(loop?: boolean): void;
|
|
68
|
+
/**
|
|
69
|
+
* Method for navigating to the previous tab
|
|
70
|
+
* @param loop Defines if want a loop navigation
|
|
71
|
+
*/
|
|
72
|
+
previousTab(loop?: boolean): void;
|
|
73
|
+
/**
|
|
74
|
+
* Triggered before tab is change.
|
|
75
|
+
* @param event DOM event
|
|
76
|
+
* @param index Tab index
|
|
77
|
+
* @param element Tabs element
|
|
78
|
+
*/
|
|
79
|
+
beforeChange(event?: Event, index?: number, element?: any): void;
|
|
80
|
+
/**
|
|
81
|
+
* Triggered when active tab changes
|
|
82
|
+
* @param event DOM event
|
|
83
|
+
* @param element Tabs element
|
|
84
|
+
*/
|
|
85
|
+
change(event?: Event, element?: any): void;
|
|
86
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { ITag } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Tag component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Tag extends ComponentRender implements ITag {
|
|
7
|
+
tag: string;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Tag.
|
|
10
|
+
* @param props Tag properties
|
|
11
|
+
*/
|
|
12
|
+
constructor(props: ITag);
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { Text } from './text';
|
|
4
|
+
export type ITextEvent = IEventParam<Text>;
|
|
5
|
+
export interface IText extends IComponentRender {
|
|
6
|
+
tag?: string;
|
|
7
|
+
text: string | string[];
|
|
8
|
+
compile?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { IText } from './interfaces';
|
|
3
|
+
export declare class Text extends ComponentRender implements IText {
|
|
4
|
+
tag?: string | undefined;
|
|
5
|
+
text: string | string[];
|
|
6
|
+
compile: boolean;
|
|
7
|
+
constructor(props: IText);
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IEvent, IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IInput, IInputEvents } from '../zd-input/interfaces';
|
|
3
|
+
import { TextInput } from './text-input';
|
|
4
|
+
export type ITextInputEvent = IEventParam<TextInput>;
|
|
5
|
+
export interface ITextInputEvents<T = IEventParam<any>> extends IInputEvents<T> {
|
|
6
|
+
appendIconClick?: IEvent<T> | string;
|
|
7
|
+
appendOuterIconClick?: IEvent<T> | string;
|
|
8
|
+
prependOuterIconClick?: IEvent<T> | string;
|
|
9
|
+
prependIconClick?: IEvent<T> | string;
|
|
10
|
+
}
|
|
11
|
+
export interface ITextInput extends IInput {
|
|
12
|
+
appendIcon?: string;
|
|
13
|
+
appendOuterIcon?: string;
|
|
14
|
+
events?: ITextInputEvents;
|
|
15
|
+
prependIcon?: string;
|
|
16
|
+
prependOuterIcon?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
prefix?: string;
|
|
19
|
+
suffix?: string;
|
|
20
|
+
valueWithPrefix?: boolean;
|
|
21
|
+
valueWithSuffix?: boolean;
|
|
22
|
+
inputMode?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Input } from '../zd-input/input';
|
|
2
|
+
import { ITextInput } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Text component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class TextInput extends Input implements ITextInput {
|
|
7
|
+
/**
|
|
8
|
+
* Appends an icon inside text input component.
|
|
9
|
+
*/
|
|
10
|
+
appendIcon: string;
|
|
11
|
+
/**
|
|
12
|
+
* Appends an icon outside text input component.
|
|
13
|
+
*/
|
|
14
|
+
appendOuterIcon: string;
|
|
15
|
+
/**
|
|
16
|
+
* Displays a prefix text inside text input component. Overrides prependIcon prop.
|
|
17
|
+
*/
|
|
18
|
+
prefix: string;
|
|
19
|
+
/**
|
|
20
|
+
* Prepends an icon inside text input component.
|
|
21
|
+
*/
|
|
22
|
+
prependIcon: string;
|
|
23
|
+
/**
|
|
24
|
+
* Prepends an icon outside text input component.
|
|
25
|
+
*/
|
|
26
|
+
prependOuterIcon: string;
|
|
27
|
+
/**
|
|
28
|
+
* Displays a suffix text inside text input component. Overrides appendIcon prop.
|
|
29
|
+
*/
|
|
30
|
+
suffix: string;
|
|
31
|
+
/**
|
|
32
|
+
* Sets input type.
|
|
33
|
+
*/
|
|
34
|
+
type: string;
|
|
35
|
+
/**
|
|
36
|
+
* Defines text input value should concat the prefix text.
|
|
37
|
+
*/
|
|
38
|
+
valueWithPrefix: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Defines text input value should concat the suffix text.
|
|
41
|
+
*/
|
|
42
|
+
valueWithSuffix: boolean;
|
|
43
|
+
inputMode?: string | undefined;
|
|
44
|
+
protected formatterFn: (...args: any) => any;
|
|
45
|
+
protected parserFn: (...args: any) => any;
|
|
46
|
+
/**
|
|
47
|
+
* Create a new TextInput.
|
|
48
|
+
* @param props TextInput properties
|
|
49
|
+
*/
|
|
50
|
+
constructor(props: ITextInput);
|
|
51
|
+
onCreated(): void;
|
|
52
|
+
private addKeyMap;
|
|
53
|
+
private callSingleIconEvent;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves a formatted value without valueSuffix and with mask.
|
|
56
|
+
* @param value Text value
|
|
57
|
+
* @returns Text formatted value
|
|
58
|
+
*/
|
|
59
|
+
formatter(value: string): any;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves a parsed value with prefix and suffix if it is needed and without mask.
|
|
62
|
+
* @param value Text value
|
|
63
|
+
* @returns Text parsed value
|
|
64
|
+
*/
|
|
65
|
+
parser(value: string): any;
|
|
66
|
+
/**
|
|
67
|
+
* Triggered when the appended icon is clicked.
|
|
68
|
+
* @param event DOM event
|
|
69
|
+
* @param element Text input
|
|
70
|
+
*/
|
|
71
|
+
appendIconClick(event: Event, element: any): void;
|
|
72
|
+
/**
|
|
73
|
+
* Triggered when the appended outer icon is clicked.
|
|
74
|
+
* @param event DOM event
|
|
75
|
+
* @param element Text input
|
|
76
|
+
*/
|
|
77
|
+
appendOuterIconClick(event: Event, element: any): void;
|
|
78
|
+
/**
|
|
79
|
+
* Triggered when the prepended icon is clicked.
|
|
80
|
+
* @param event DOM event
|
|
81
|
+
* @param element Text input
|
|
82
|
+
*/
|
|
83
|
+
prependIconClick(event: Event, element: any): void;
|
|
84
|
+
/**
|
|
85
|
+
* Triggered when the prepended outer icon is clicked.
|
|
86
|
+
* @param event DOM event
|
|
87
|
+
* @param element Text input
|
|
88
|
+
*/
|
|
89
|
+
prependOuterIconClick(event: Event, element: any): void;
|
|
90
|
+
getMask(): any;
|
|
91
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { ITextInput } from '../zd-text-input/interfaces';
|
|
3
|
+
import { Textarea } from './textarea';
|
|
4
|
+
export type ITextareaEvent = IEventParam<Textarea>;
|
|
5
|
+
export interface ITextarea extends ITextInput {
|
|
6
|
+
autoGrow?: boolean;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
clearIcon?: string;
|
|
9
|
+
counter?: boolean | number | string;
|
|
10
|
+
filled?: boolean;
|
|
11
|
+
loading?: boolean | string;
|
|
12
|
+
resize?: boolean;
|
|
13
|
+
reverse?: boolean;
|
|
14
|
+
rounded?: boolean;
|
|
15
|
+
rowHeight?: number | string;
|
|
16
|
+
rows?: number | string;
|
|
17
|
+
height?: number | string;
|
|
18
|
+
maxHeight?: number | string;
|
|
19
|
+
minHeight?: number | string;
|
|
20
|
+
fillHeight?: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { TextInput } from '../zd-text-input/text-input';
|
|
2
|
+
import { ITextarea } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Textarea component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Textarea extends TextInput implements ITextarea {
|
|
7
|
+
/**
|
|
8
|
+
* Automatically grow the textarea depending on amount of text.
|
|
9
|
+
*/
|
|
10
|
+
autoGrow: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Changes the background-color of the input.
|
|
13
|
+
*/
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
/**
|
|
16
|
+
* Applied when using clearable and the input is dirty.
|
|
17
|
+
*/
|
|
18
|
+
clearIcon: string;
|
|
19
|
+
/**
|
|
20
|
+
* Creates counter for input length; if no number is specified, it defaults to 25. Does not apply any validation.
|
|
21
|
+
*/
|
|
22
|
+
counter?: boolean | string | number;
|
|
23
|
+
/**
|
|
24
|
+
* Applies the alternate filled input style.
|
|
25
|
+
*/
|
|
26
|
+
filled: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Displays linear progress bar.
|
|
29
|
+
*/
|
|
30
|
+
loading: boolean | string;
|
|
31
|
+
/**
|
|
32
|
+
* Remove resize handle.
|
|
33
|
+
*/
|
|
34
|
+
resize: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Adds a border radius to the input.
|
|
37
|
+
*/
|
|
38
|
+
rounded: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Height value for each row. Requires the use of the auto-grow prop.
|
|
41
|
+
*/
|
|
42
|
+
rowHeight: number | string;
|
|
43
|
+
/**
|
|
44
|
+
* Default row count.
|
|
45
|
+
*/
|
|
46
|
+
rows: number | string;
|
|
47
|
+
/**
|
|
48
|
+
* Defines the component height. Possible values for this property can be
|
|
49
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
50
|
+
*/
|
|
51
|
+
height: string | number;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the component min height. Possible values for this property can be
|
|
54
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
55
|
+
*/
|
|
56
|
+
minHeight: string | number;
|
|
57
|
+
/**
|
|
58
|
+
* Defines the component max height. Possible values for this property can be
|
|
59
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
60
|
+
*/
|
|
61
|
+
maxHeight: string | number;
|
|
62
|
+
/**
|
|
63
|
+
* Set component height to fill all space available
|
|
64
|
+
*/
|
|
65
|
+
fillHeight: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Create a new Textarea.
|
|
68
|
+
* @param props Textarea properties
|
|
69
|
+
*/
|
|
70
|
+
constructor(props: ITextarea);
|
|
71
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { ITextInput, ITextInputEvents } from '../zd-text-input/interfaces';
|
|
3
|
+
import { Time } from './time';
|
|
4
|
+
export type ITimeEvent = IEventParam<Time>;
|
|
5
|
+
export type ITimeEvents = ITextInputEvents<ITimeEvent>;
|
|
6
|
+
export interface ITime extends ITextInput {
|
|
7
|
+
allowedHours?: any[];
|
|
8
|
+
allowedMinutes?: any[];
|
|
9
|
+
allowedSeconds?: any[];
|
|
10
|
+
displayValue?: string;
|
|
11
|
+
displayFormat?: string;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
maxTime?: string;
|
|
14
|
+
minTime?: string;
|
|
15
|
+
events?: ITimeEvents;
|
|
16
|
+
scrollable?: boolean;
|
|
17
|
+
showTimePicker?: boolean;
|
|
18
|
+
timeFormat?: string;
|
|
19
|
+
useSeconds?: boolean;
|
|
20
|
+
valueFormat?: string;
|
|
21
|
+
inputFormat?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selects the time format by the rule:
|
|
3
|
+
* non-common format > common format
|
|
4
|
+
* and if the format is a common format, it will be overriden by timeFormat
|
|
5
|
+
*/
|
|
6
|
+
export declare class TimeFormatSelector {
|
|
7
|
+
getFormat(format: string, timeFormat: string, useSeconds: boolean): any;
|
|
8
|
+
}
|