@zeedhi/common 1.129.0 → 1.129.1
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/zd-common.esm.js +98 -96
- package/dist/zd-common.umd.js +95 -93
- package/package.json +2 -2
- package/types/index.d.ts +1 -1
- package/types/services/zd-json-cache/json-cache-service.d.ts +12 -0
- package/types/utils/combine-urls/combine-urls.d.ts +2 -0
- package/types/utils/combine-urls/index.d.ts +1 -0
- package/types/utils/index.d.ts +2 -2
- package/dist/types/components/index.d.ts +0 -151
- package/dist/types/components/zd-alert/alert.d.ts +0 -94
- package/dist/types/components/zd-alert/interfaces.d.ts +0 -18
- package/dist/types/components/zd-badge/badge.d.ts +0 -28
- package/dist/types/components/zd-badge/interfaces.d.ts +0 -10
- package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -32
- package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +0 -24
- package/dist/types/components/zd-button/button.d.ts +0 -89
- package/dist/types/components/zd-button/interfaces.d.ts +0 -48
- package/dist/types/components/zd-button-group/button-group.d.ts +0 -67
- package/dist/types/components/zd-button-group/interfaces.d.ts +0 -25
- package/dist/types/components/zd-card/card.d.ts +0 -152
- package/dist/types/components/zd-card/interfaces.d.ts +0 -40
- package/dist/types/components/zd-carousel/carousel.d.ts +0 -163
- package/dist/types/components/zd-carousel/interfaces.d.ts +0 -49
- package/dist/types/components/zd-checkbox/checkbox.d.ts +0 -12
- package/dist/types/components/zd-checkbox/interfaces.d.ts +0 -5
- package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +0 -39
- package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +0 -13
- package/dist/types/components/zd-chip/chip.d.ts +0 -60
- package/dist/types/components/zd-chip/interfaces.d.ts +0 -18
- package/dist/types/components/zd-code-viewer/code-viewer.d.ts +0 -86
- package/dist/types/components/zd-code-viewer/interfaces.d.ts +0 -13
- package/dist/types/components/zd-col/col.d.ts +0 -33
- package/dist/types/components/zd-col/interfaces.d.ts +0 -15
- package/dist/types/components/zd-collapse-card/collapse-card.d.ts +0 -56
- package/dist/types/components/zd-collapse-card/interfaces.d.ts +0 -14
- package/dist/types/components/zd-component/child-not-found.d.ts +0 -6
- package/dist/types/components/zd-component/component-render.d.ts +0 -16
- package/dist/types/components/zd-component/component.d.ts +0 -120
- package/dist/types/components/zd-component/interfaces.d.ts +0 -74
- package/dist/types/components/zd-container/container.d.ts +0 -45
- package/dist/types/components/zd-container/interfaces.d.ts +0 -12
- package/dist/types/components/zd-currency/currency.d.ts +0 -12
- package/dist/types/components/zd-currency/interfaces.d.ts +0 -6
- package/dist/types/components/zd-date-input/date-input.d.ts +0 -152
- package/dist/types/components/zd-date-input/interfaces.d.ts +0 -27
- package/dist/types/components/zd-date-range/date-range.d.ts +0 -158
- package/dist/types/components/zd-date-range/interfaces.d.ts +0 -18
- package/dist/types/components/zd-dialog/dialog.d.ts +0 -76
- package/dist/types/components/zd-dialog/interfaces.d.ts +0 -13
- package/dist/types/components/zd-divider/divider.d.ts +0 -20
- package/dist/types/components/zd-divider/interfaces.d.ts +0 -8
- package/dist/types/components/zd-dropdown/dropdown.d.ts +0 -81
- package/dist/types/components/zd-dropdown/interfaces.d.ts +0 -23
- package/dist/types/components/zd-footer/footer.d.ts +0 -80
- package/dist/types/components/zd-footer/interfaces.d.ts +0 -26
- package/dist/types/components/zd-form/form.d.ts +0 -174
- package/dist/types/components/zd-form/interfaces.d.ts +0 -36
- package/dist/types/components/zd-frame/frame.d.ts +0 -81
- package/dist/types/components/zd-frame/interfaces.d.ts +0 -23
- package/dist/types/components/zd-frame-page/frame-page.d.ts +0 -14
- package/dist/types/components/zd-frame-page/interfaces.d.ts +0 -4
- package/dist/types/components/zd-grid/data-navigator.d.ts +0 -12
- package/dist/types/components/zd-grid/data-selector.d.ts +0 -25
- package/dist/types/components/zd-grid/grid-column.d.ts +0 -47
- package/dist/types/components/zd-grid/grid-events.d.ts +0 -26
- package/dist/types/components/zd-grid/grid.d.ts +0 -85
- package/dist/types/components/zd-grid/index.d.ts +0 -11
- package/dist/types/components/zd-grid/interfaces.d.ts +0 -148
- package/dist/types/components/zd-grid/iterable-table.d.ts +0 -28
- package/dist/types/components/zd-grid/keymap-merger.d.ts +0 -26
- package/dist/types/components/zd-grid/keymap-navigation.d.ts +0 -6
- package/dist/types/components/zd-grid/table-action-builder.d.ts +0 -19
- package/dist/types/components/zd-grid/view-navigator.d.ts +0 -10
- package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +0 -35
- package/dist/types/components/zd-grid-editable/data-editor.d.ts +0 -64
- package/dist/types/components/zd-grid-editable/errors/index.d.ts +0 -2
- package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +0 -6
- package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +0 -6
- package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +0 -9
- package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +0 -8
- package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +0 -32
- package/dist/types/components/zd-grid-editable/grid-editable.d.ts +0 -124
- package/dist/types/components/zd-grid-editable/index.d.ts +0 -8
- package/dist/types/components/zd-grid-editable/interfaces.d.ts +0 -66
- package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +0 -7
- package/dist/types/components/zd-header/header.d.ts +0 -94
- package/dist/types/components/zd-header/interfaces.d.ts +0 -29
- package/dist/types/components/zd-icon/icon.d.ts +0 -55
- package/dist/types/components/zd-icon/interfaces.d.ts +0 -13
- package/dist/types/components/zd-image/image.d.ts +0 -73
- package/dist/types/components/zd-image/interfaces.d.ts +0 -17
- package/dist/types/components/zd-increment/increment.d.ts +0 -56
- package/dist/types/components/zd-increment/interfaces.d.ts +0 -9
- package/dist/types/components/zd-input/input-factory.d.ts +0 -6
- package/dist/types/components/zd-input/input.d.ts +0 -223
- package/dist/types/components/zd-input/interfaces.d.ts +0 -38
- package/dist/types/components/zd-iterable/column-not-found.d.ts +0 -6
- package/dist/types/components/zd-iterable/column.d.ts +0 -78
- package/dist/types/components/zd-iterable/conditions-manager.d.ts +0 -49
- package/dist/types/components/zd-iterable/interfaces.d.ts +0 -103
- package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +0 -9
- package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +0 -35
- package/dist/types/components/zd-iterable/iterable-controller.d.ts +0 -8
- package/dist/types/components/zd-iterable/iterable-page-component.d.ts +0 -27
- package/dist/types/components/zd-iterable/iterable-page-info.d.ts +0 -7
- package/dist/types/components/zd-iterable/iterable-page-size.d.ts +0 -62
- package/dist/types/components/zd-iterable/iterable-pagination.d.ts +0 -28
- package/dist/types/components/zd-iterable/iterable.d.ts +0 -77
- package/dist/types/components/zd-iterable/search.d.ts +0 -31
- package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +0 -34
- package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +0 -84
- package/dist/types/components/zd-layout/interfaces.d.ts +0 -7
- package/dist/types/components/zd-layout/layout.d.ts +0 -9
- package/dist/types/components/zd-list/interfaces.d.ts +0 -44
- package/dist/types/components/zd-list/item-not-found.d.ts +0 -6
- package/dist/types/components/zd-list/list-group.d.ts +0 -30
- package/dist/types/components/zd-list/list-item.d.ts +0 -46
- package/dist/types/components/zd-list/list.d.ts +0 -81
- package/dist/types/components/zd-loading/interfaces.d.ts +0 -7
- package/dist/types/components/zd-loading/loading.d.ts +0 -21
- package/dist/types/components/zd-login/interfaces.d.ts +0 -25
- package/dist/types/components/zd-login/login-button.d.ts +0 -50
- package/dist/types/components/zd-login/login.d.ts +0 -54
- package/dist/types/components/zd-main/interfaces.d.ts +0 -5
- package/dist/types/components/zd-main/main.d.ts +0 -7
- package/dist/types/components/zd-master-detail/detail-not-found.d.ts +0 -7
- package/dist/types/components/zd-master-detail/interfaces.d.ts +0 -10
- package/dist/types/components/zd-master-detail/master-detail.d.ts +0 -18
- package/dist/types/components/zd-master-detail/master-not-found.d.ts +0 -7
- package/dist/types/components/zd-menu/interfaces.d.ts +0 -68
- package/dist/types/components/zd-menu/menu-button.d.ts +0 -29
- package/dist/types/components/zd-menu/menu-group.d.ts +0 -61
- package/dist/types/components/zd-menu/menu-link.d.ts +0 -50
- package/dist/types/components/zd-menu/menu-separator.d.ts +0 -7
- package/dist/types/components/zd-menu/menu.d.ts +0 -199
- package/dist/types/components/zd-modal/interfaces.d.ts +0 -35
- package/dist/types/components/zd-modal/modal-close-button.d.ts +0 -28
- package/dist/types/components/zd-modal/modal.d.ts +0 -53
- package/dist/types/components/zd-month/interfaces.d.ts +0 -6
- package/dist/types/components/zd-month/month.d.ts +0 -33
- package/dist/types/components/zd-number-input/interfaces.d.ts +0 -8
- package/dist/types/components/zd-number-input/number-input.d.ts +0 -43
- package/dist/types/components/zd-password/interfaces.d.ts +0 -6
- package/dist/types/components/zd-password/password.d.ts +0 -17
- package/dist/types/components/zd-progress/interfaces.d.ts +0 -10
- package/dist/types/components/zd-progress/progress.d.ts +0 -41
- package/dist/types/components/zd-radio/interfaces.d.ts +0 -11
- package/dist/types/components/zd-radio/radio.d.ts +0 -35
- package/dist/types/components/zd-row/interfaces.d.ts +0 -13
- package/dist/types/components/zd-row/row.d.ts +0 -39
- package/dist/types/components/zd-select/interfaces.d.ts +0 -24
- package/dist/types/components/zd-select/select.d.ts +0 -238
- package/dist/types/components/zd-select-multiple/interfaces.d.ts +0 -18
- package/dist/types/components/zd-select-multiple/select-multiple.d.ts +0 -113
- package/dist/types/components/zd-svg-map/interfaces.d.ts +0 -26
- package/dist/types/components/zd-svg-map/svg-map.d.ts +0 -35
- package/dist/types/components/zd-switch/interfaces.d.ts +0 -7
- package/dist/types/components/zd-switch/switch.d.ts +0 -16
- package/dist/types/components/zd-table/interfaces.d.ts +0 -25
- package/dist/types/components/zd-table/table.d.ts +0 -42
- package/dist/types/components/zd-tabs/interfaces.d.ts +0 -40
- package/dist/types/components/zd-tabs/tab-not-found.d.ts +0 -11
- package/dist/types/components/zd-tabs/tab.d.ts +0 -57
- package/dist/types/components/zd-tabs/tabs.d.ts +0 -86
- package/dist/types/components/zd-tag/interfaces.d.ts +0 -7
- package/dist/types/components/zd-tag/tag.d.ts +0 -13
- package/dist/types/components/zd-text/interfaces.d.ts +0 -9
- package/dist/types/components/zd-text/text.d.ts +0 -8
- package/dist/types/components/zd-text-input/interfaces.d.ts +0 -23
- package/dist/types/components/zd-text-input/text-input.d.ts +0 -91
- package/dist/types/components/zd-textarea/interfaces.d.ts +0 -21
- package/dist/types/components/zd-textarea/textarea.d.ts +0 -71
- package/dist/types/components/zd-time/interfaces.d.ts +0 -22
- package/dist/types/components/zd-time/time-format-selector.d.ts +0 -8
- package/dist/types/components/zd-time/time.d.ts +0 -149
- package/dist/types/components/zd-toggleable/interfaces.d.ts +0 -6
- package/dist/types/components/zd-toggleable/toggleable.d.ts +0 -21
- package/dist/types/components/zd-tooltip/interfaces.d.ts +0 -18
- package/dist/types/components/zd-tooltip/tooltip.d.ts +0 -57
- package/dist/types/components/zd-tree/interfaces.d.ts +0 -107
- package/dist/types/components/zd-tree/tree.d.ts +0 -161
- package/dist/types/components/zd-tree-grid/index.d.ts +0 -6
- package/dist/types/components/zd-tree-grid/interfaces.d.ts +0 -35
- package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +0 -10
- package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +0 -7
- package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +0 -10
- package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +0 -18
- package/dist/types/components/zd-tree-grid/tree-grid.d.ts +0 -119
- package/dist/types/error/delete-rows.d.ts +0 -7
- package/dist/types/error/index.d.ts +0 -3
- package/dist/types/error/non-initialized.d.ts +0 -7
- package/dist/types/error/zeedhi-error.d.ts +0 -6
- package/dist/types/index.d.ts +0 -6
- package/dist/types/services/index.d.ts +0 -4
- package/dist/types/services/zd-alert/alert-queue.d.ts +0 -13
- package/dist/types/services/zd-alert/alert-replace.d.ts +0 -18
- package/dist/types/services/zd-alert/alert-service.d.ts +0 -45
- package/dist/types/services/zd-alert/alert-stack.d.ts +0 -9
- package/dist/types/services/zd-alert/index.d.ts +0 -5
- package/dist/types/services/zd-alert/interfaces.d.ts +0 -6
- package/dist/types/services/zd-dialog/dialog-service.d.ts +0 -24
- package/dist/types/services/zd-loading/loading-service.d.ts +0 -17
- package/dist/types/services/zd-modal/modal-service.d.ts +0 -39
- package/dist/types/utils/data-value-out/data-value-out.d.ts +0 -5
- package/dist/types/utils/data-value-out/index.d.ts +0 -2
- package/dist/types/utils/data-value-out/interfaces.d.ts +0 -8
- package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +0 -6
- package/dist/types/utils/datasource-searcher/index.d.ts +0 -2
- package/dist/types/utils/datasource-searcher/interfaces.d.ts +0 -5
- package/dist/types/utils/icons/icons.d.ts +0 -24
- package/dist/types/utils/index.d.ts +0 -7
- package/dist/types/utils/omit/omit.d.ts +0 -11
- package/dist/types/utils/theme/theme.d.ts +0 -34
- package/dist/types/utils/tree-data-structure/index.d.ts +0 -2
- package/dist/types/utils/tree-data-structure/interfaces.d.ts +0 -30
- package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +0 -155
- package/dist/types/utils/unique-by/unique-by.d.ts +0 -3
- package/dist/zd-common.js +0 -13133
- package/dist/zd-common.min.js +0 -13133
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { TextInput } from '../zd-text-input/text-input';
|
|
2
|
-
import { ITime } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Time Picker component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Time extends TextInput implements ITime {
|
|
7
|
-
/**
|
|
8
|
-
* Restricts which hours can be selected.
|
|
9
|
-
*/
|
|
10
|
-
allowedHours?: any[];
|
|
11
|
-
/**
|
|
12
|
-
* Restricts which minutes can be selected.
|
|
13
|
-
*/
|
|
14
|
-
allowedMinutes?: any[];
|
|
15
|
-
/**
|
|
16
|
-
* Restricts which seconds can be selected.
|
|
17
|
-
*/
|
|
18
|
-
allowedSeconds?: any[];
|
|
19
|
-
/**
|
|
20
|
-
* Input auto complete.
|
|
21
|
-
*/
|
|
22
|
-
autofill: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Defines the format of a time displayed in picker. Available options are ampm and 24hr.
|
|
25
|
-
*/
|
|
26
|
-
timeFormat: string;
|
|
27
|
-
/**
|
|
28
|
-
* Forces 100% width.
|
|
29
|
-
*/
|
|
30
|
-
fullWidth: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Maximum allowed time.
|
|
33
|
-
*/
|
|
34
|
-
maxTime: string;
|
|
35
|
-
/**
|
|
36
|
-
* Minimum allowed time.
|
|
37
|
-
*/
|
|
38
|
-
minTime: string;
|
|
39
|
-
/**
|
|
40
|
-
* Allows changing hour/minute with mouse scroll.
|
|
41
|
-
*/
|
|
42
|
-
scrollable: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Shows the time picker.
|
|
45
|
-
*/
|
|
46
|
-
showTimePicker: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Toggles the use of seconds in picker.
|
|
49
|
-
*/
|
|
50
|
-
useSeconds: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Width of the picker.
|
|
53
|
-
*/
|
|
54
|
-
width: number | string;
|
|
55
|
-
protected formatterFn: (...args: any) => any;
|
|
56
|
-
protected parserFn: (...args: any) => any;
|
|
57
|
-
private isoFormatValue;
|
|
58
|
-
private valueFormatInternal;
|
|
59
|
-
private displayFormatInternal;
|
|
60
|
-
/**
|
|
61
|
-
* Defines the time input format.
|
|
62
|
-
*/
|
|
63
|
-
inputFormat?: string;
|
|
64
|
-
/**
|
|
65
|
-
* True when displayValue is valid
|
|
66
|
-
*/
|
|
67
|
-
protected isDisplayValid: boolean;
|
|
68
|
-
protected initialMask?: string;
|
|
69
|
-
protected isSimpleDisplay: boolean;
|
|
70
|
-
protected timeError: boolean;
|
|
71
|
-
inputMode?: string | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Create a new Time Picker.
|
|
74
|
-
* @param props Time properties
|
|
75
|
-
*/
|
|
76
|
-
constructor(props: ITime);
|
|
77
|
-
private getFormat;
|
|
78
|
-
get displayFormat(): string;
|
|
79
|
-
set displayFormat(value: string);
|
|
80
|
-
get valueFormat(): string;
|
|
81
|
-
set valueFormat(value: string);
|
|
82
|
-
private get isoFormat();
|
|
83
|
-
private getInitialMask;
|
|
84
|
-
formatter(value: string): string;
|
|
85
|
-
parser(value: string): any;
|
|
86
|
-
/**
|
|
87
|
-
* Triggered when date is clicked.
|
|
88
|
-
* @param event
|
|
89
|
-
* @param element
|
|
90
|
-
*/
|
|
91
|
-
selectTime(time: string, event?: Event, element?: any): void;
|
|
92
|
-
get displayValue(): string;
|
|
93
|
-
set displayValue(newValue: string);
|
|
94
|
-
/**
|
|
95
|
-
* Assign the updated mask to mask property
|
|
96
|
-
*/
|
|
97
|
-
updateMask(): any;
|
|
98
|
-
/**
|
|
99
|
-
* Gets the updated masked, based on displayFormat if the initial mask is undefined
|
|
100
|
-
*/
|
|
101
|
-
protected getUpdatedMask(): string;
|
|
102
|
-
protected maskFormat(format: string): string;
|
|
103
|
-
setTimeValue(displayValue: string): void;
|
|
104
|
-
isValidTime(value: string, format: string | undefined, strict?: boolean): boolean;
|
|
105
|
-
get isoValue(): string;
|
|
106
|
-
set isoValue(newValue: string);
|
|
107
|
-
formatISOTimeValue(value: string): string;
|
|
108
|
-
parseISOTimeValue(value: string): any;
|
|
109
|
-
/**
|
|
110
|
-
* Checks if a time format is simple.
|
|
111
|
-
* Simple time formats are the ones that consists only of 'HH', 'mm', 'mm' or 'YYYY', and mask delimiters
|
|
112
|
-
* @param format The format to be checked
|
|
113
|
-
* @returns true if it is simple, false otherwise
|
|
114
|
-
*/
|
|
115
|
-
protected isSimpleFormat(format: string): boolean;
|
|
116
|
-
timeValidation(): boolean | string;
|
|
117
|
-
timeAllowedValidation(): boolean | string;
|
|
118
|
-
click(event?: Event, element?: any): void;
|
|
119
|
-
blur(event: Event, element: any): void;
|
|
120
|
-
focus(event: Event, element: any): void;
|
|
121
|
-
/**
|
|
122
|
-
* Add date mask
|
|
123
|
-
*/
|
|
124
|
-
protected addTimeMask(): void;
|
|
125
|
-
/**
|
|
126
|
-
* Removes the component mask if value is valid
|
|
127
|
-
*/
|
|
128
|
-
protected removeTimeMask(): void;
|
|
129
|
-
/**
|
|
130
|
-
* Checks if value is valid according to valueFormat and if displayValue
|
|
131
|
-
* is true
|
|
132
|
-
*/
|
|
133
|
-
isFullyValid(value?: string): boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Last invalid value passed to formatter
|
|
136
|
-
*/
|
|
137
|
-
isTimeAllowed(value?: string): boolean;
|
|
138
|
-
isSameOrAfterMin(value: string): boolean;
|
|
139
|
-
isSameOrBeforeMax(value: string): boolean;
|
|
140
|
-
isHourAllowed(value: string): boolean;
|
|
141
|
-
isMinuteAllowed(value: string): boolean;
|
|
142
|
-
isSecondAllowed(value: string): boolean;
|
|
143
|
-
clear(): void;
|
|
144
|
-
/**
|
|
145
|
-
* Converts a date format to a mask
|
|
146
|
-
*/
|
|
147
|
-
private toMask;
|
|
148
|
-
getMask(): string;
|
|
149
|
-
}
|