@zeedhi/common 1.120.3 → 1.120.4
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 +1 -1
- package/dist/zd-common.umd.js +1 -1
- package/package.json +2 -2
- package/types/services/zd-json-cache/json-cache-service.d.ts +12 -0
- 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,15 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
3
|
-
import { Col } from './col';
|
|
4
|
-
export type IColEvent = IEventParam<Col>;
|
|
5
|
-
export interface ICol extends IComponentRender {
|
|
6
|
-
cols?: boolean | string | number;
|
|
7
|
-
sm?: boolean | string | number;
|
|
8
|
-
md?: boolean | string | number;
|
|
9
|
-
lg?: boolean | string | number;
|
|
10
|
-
xl?: boolean | string | number;
|
|
11
|
-
offset?: string | number;
|
|
12
|
-
height?: number | string;
|
|
13
|
-
maxHeight?: number | string;
|
|
14
|
-
minHeight?: number | string;
|
|
15
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { IButton } from '../zd-button/interfaces';
|
|
2
|
-
import { Card } from '../zd-card/card';
|
|
3
|
-
import { IComponent } from '../zd-component/interfaces';
|
|
4
|
-
import { ICollapseCard } from './interfaces';
|
|
5
|
-
/**
|
|
6
|
-
* Base class for CollapseCard component.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CollapseCard extends Card implements ICollapseCard {
|
|
9
|
-
/**
|
|
10
|
-
* Disables the action rotation animation when expanding or collapsing the collapse-card.
|
|
11
|
-
*/
|
|
12
|
-
disableActionRotate: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* If defined, overwrites the expansion icon by the defined button.
|
|
15
|
-
*/
|
|
16
|
-
expandButton: IButton;
|
|
17
|
-
/**
|
|
18
|
-
* If true, the Collapse-card will be opened by default.
|
|
19
|
-
*/
|
|
20
|
-
expanded: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Components to be displayed in the header.
|
|
23
|
-
*/
|
|
24
|
-
header: IComponent[];
|
|
25
|
-
/**
|
|
26
|
-
* Hides the expansion icon.
|
|
27
|
-
*/
|
|
28
|
-
hideAction: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Defines the expansion icon color.
|
|
31
|
-
*/
|
|
32
|
-
iconColor: string;
|
|
33
|
-
/**
|
|
34
|
-
* Defines the expansion icon.
|
|
35
|
-
*/
|
|
36
|
-
iconName: string;
|
|
37
|
-
/**
|
|
38
|
-
* Content will be loaded only when the collapse-card opens.
|
|
39
|
-
*/
|
|
40
|
-
lazyLoad: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Makes the collapse-card readOnly. Does the same thing as disabled prop, but doesn't change styles.
|
|
43
|
-
*/
|
|
44
|
-
readonly: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Create a new CollapseCard
|
|
47
|
-
* @param props CollapseCard definition
|
|
48
|
-
*/
|
|
49
|
-
constructor(props: ICollapseCard);
|
|
50
|
-
/**
|
|
51
|
-
* Triggered when the component expand status changes.
|
|
52
|
-
* @param event DOM event
|
|
53
|
-
* @param element Element changed
|
|
54
|
-
*/
|
|
55
|
-
change(event: Event, element: any): void;
|
|
56
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IComponent } from '..';
|
|
2
|
-
import { IButton } from '../zd-button/interfaces';
|
|
3
|
-
import { ICard } from '../zd-card/interfaces';
|
|
4
|
-
export interface ICollapseCard extends ICard {
|
|
5
|
-
disableActionRotate?: boolean;
|
|
6
|
-
expandButton?: IButton;
|
|
7
|
-
expanded?: boolean;
|
|
8
|
-
header?: IComponent[];
|
|
9
|
-
hideAction?: boolean;
|
|
10
|
-
iconColor?: string;
|
|
11
|
-
iconName?: string;
|
|
12
|
-
lazyLoad?: boolean;
|
|
13
|
-
readonly?: boolean;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Component } from './component';
|
|
2
|
-
import { IComponent, IComponentRender, IComponentRenderInstance } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for components that will be rendered
|
|
5
|
-
*/
|
|
6
|
-
export declare class ComponentRender<T extends IComponent = IComponentRender> extends Component<T> implements IComponentRenderInstance {
|
|
7
|
-
/**
|
|
8
|
-
* Children component structure if the component has children.
|
|
9
|
-
*/
|
|
10
|
-
children: IComponentRender[];
|
|
11
|
-
/**
|
|
12
|
-
* Defines component type.
|
|
13
|
-
*/
|
|
14
|
-
component: string;
|
|
15
|
-
constructor(props: T);
|
|
16
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { IDictionary, IKeyMap } from '@zeedhi/core';
|
|
2
|
-
import { IComponent, IComponentDirectives, IComponentEvents, IComponentInstance } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for all Zeedhi components.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Component<T extends IComponent = IComponent> implements IComponentInstance {
|
|
7
|
-
allowDuplicate: boolean;
|
|
8
|
-
autofocus: boolean;
|
|
9
|
-
children: IComponent[];
|
|
10
|
-
childrenInstances: any[];
|
|
11
|
-
/**
|
|
12
|
-
* CSS classes to be added to the DOM element when rendering.
|
|
13
|
-
* To apply multiple CSS classes use space as separator
|
|
14
|
-
* (e.g. <samp>\"class1 class2\"</samp>).
|
|
15
|
-
*/
|
|
16
|
-
cssClass: string;
|
|
17
|
-
cssStyle: string | IDictionary<string>;
|
|
18
|
-
directives: IComponentDirectives;
|
|
19
|
-
events: IComponentEvents;
|
|
20
|
-
isVisible: boolean;
|
|
21
|
-
name: string;
|
|
22
|
-
dark: boolean;
|
|
23
|
-
light: boolean;
|
|
24
|
-
theme?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Set component height to fill all space available
|
|
27
|
-
*/
|
|
28
|
-
fillHeight: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Parent component instance. This property should be used when is
|
|
31
|
-
* necessary create dynamic components.
|
|
32
|
-
*/
|
|
33
|
-
parent?: IComponentInstance;
|
|
34
|
-
componentId: number;
|
|
35
|
-
keyMap: IKeyMap;
|
|
36
|
-
isFocused: boolean;
|
|
37
|
-
tabStop: boolean;
|
|
38
|
-
private accessorManager;
|
|
39
|
-
private element?;
|
|
40
|
-
protected viewFocus?: () => void;
|
|
41
|
-
userProperties: IDictionary<any>;
|
|
42
|
-
protected props: T;
|
|
43
|
-
/**
|
|
44
|
-
* Creates a new Component.
|
|
45
|
-
* @param props Components properties
|
|
46
|
-
*/
|
|
47
|
-
constructor(props: T);
|
|
48
|
-
setViewFocus(viewFocus: () => void): void;
|
|
49
|
-
setFocus(): void;
|
|
50
|
-
/**
|
|
51
|
-
* Retrieves initial value for the attribute and if it is an accessor,
|
|
52
|
-
* updates props value.
|
|
53
|
-
* @param name Attribute name
|
|
54
|
-
* @param value Attribute value
|
|
55
|
-
* @param defaultValue Attribute default value
|
|
56
|
-
* @returns Initial value
|
|
57
|
-
*/
|
|
58
|
-
protected getInitValue(name: string, value: any, defaultValue: any): any;
|
|
59
|
-
protected createAccessors(): void;
|
|
60
|
-
/**
|
|
61
|
-
* Creates the accessors defined inside an object recursively
|
|
62
|
-
* @param obj Object having the accessors
|
|
63
|
-
* @param path Name of the `obj` property inside the component
|
|
64
|
-
*/
|
|
65
|
-
protected createObjAccessors(obj: any, path: string): void;
|
|
66
|
-
/** Test and trigger an event */
|
|
67
|
-
callEvent(eventName: string, args: any): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Adds a new child
|
|
70
|
-
* @param child Child component structure
|
|
71
|
-
*/
|
|
72
|
-
addChild(child: IComponent): void;
|
|
73
|
-
/**
|
|
74
|
-
* Removes child by name
|
|
75
|
-
* @param name Child name
|
|
76
|
-
*/
|
|
77
|
-
removeChild(name: string): void;
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves a child instance by name
|
|
80
|
-
* @param name Child name
|
|
81
|
-
* @throws Will throw if child not exists
|
|
82
|
-
*/
|
|
83
|
-
getChildInstance<T>(name: string): T;
|
|
84
|
-
/**
|
|
85
|
-
* Adds new child instance
|
|
86
|
-
* @param instance Child instance
|
|
87
|
-
*/
|
|
88
|
-
addChildInstance(instance: Component): void;
|
|
89
|
-
onCreated(): void;
|
|
90
|
-
onBeforeMount(): void;
|
|
91
|
-
/**
|
|
92
|
-
* Triggered when the component is mounted.
|
|
93
|
-
* @param element Element mounted reference
|
|
94
|
-
*/
|
|
95
|
-
onMounted(element: any): void;
|
|
96
|
-
onBeforeDestroy(): void;
|
|
97
|
-
onDestroyed(): void;
|
|
98
|
-
/**
|
|
99
|
-
* Triggered when the component is clicked.
|
|
100
|
-
* @param event DOM event
|
|
101
|
-
* @param element Element clicked
|
|
102
|
-
*/
|
|
103
|
-
click(event?: Event, element?: any): void;
|
|
104
|
-
/**
|
|
105
|
-
* Triggered when the component is focused.
|
|
106
|
-
* @param event DOM event
|
|
107
|
-
* @param element Element focused
|
|
108
|
-
*/
|
|
109
|
-
focus(event: Event, element: any): void;
|
|
110
|
-
/**
|
|
111
|
-
* Triggered when the component loses focus.
|
|
112
|
-
* @param event DOM event
|
|
113
|
-
* @param element Element that lost the focus
|
|
114
|
-
*/
|
|
115
|
-
blur(event: Event, element: any): void;
|
|
116
|
-
mouseenter(event?: Event, element?: any): void;
|
|
117
|
-
mouseleave(event?: Event, element?: any): void;
|
|
118
|
-
mouseout(event?: Event, element?: any): void;
|
|
119
|
-
mouseover(event?: Event, element?: any): void;
|
|
120
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { IDictionary, IEvent, IEventParam, IEvents, IKeyMap } from '@zeedhi/core';
|
|
2
|
-
import { Component } from './component';
|
|
3
|
-
export type EventDef<T, K = IEvent<T>> = K | string | (K | string)[];
|
|
4
|
-
export interface IComponentEvents<T = IEventParam<any>> extends IEvents<T> {
|
|
5
|
-
blur?: EventDef<T>;
|
|
6
|
-
click?: EventDef<T>;
|
|
7
|
-
focus?: EventDef<T>;
|
|
8
|
-
onCreated?: EventDef<T>;
|
|
9
|
-
onBeforeMount?: EventDef<T>;
|
|
10
|
-
onMounted?: EventDef<T>;
|
|
11
|
-
onBeforeDestroy?: EventDef<T>;
|
|
12
|
-
onDestroyed?: EventDef<T>;
|
|
13
|
-
}
|
|
14
|
-
export interface IComponentDirectives {
|
|
15
|
-
touch?: IComponentEvents;
|
|
16
|
-
[key: string]: IComponentEvents | undefined;
|
|
17
|
-
}
|
|
18
|
-
export interface IPropAccessor {
|
|
19
|
-
[key: string]: {
|
|
20
|
-
instance: any;
|
|
21
|
-
accessor: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface IComponent {
|
|
25
|
-
allowDuplicate?: boolean;
|
|
26
|
-
autofocus?: boolean;
|
|
27
|
-
children?: IComponent[];
|
|
28
|
-
componentId?: number;
|
|
29
|
-
cssClass?: string;
|
|
30
|
-
cssStyle?: string | IDictionary;
|
|
31
|
-
events?: IComponentEvents;
|
|
32
|
-
directives?: IComponentDirectives;
|
|
33
|
-
isVisible?: boolean | string;
|
|
34
|
-
dark?: boolean;
|
|
35
|
-
light?: boolean;
|
|
36
|
-
theme?: string;
|
|
37
|
-
keyMap?: IKeyMap;
|
|
38
|
-
name: string;
|
|
39
|
-
parent?: IComponentInstance;
|
|
40
|
-
tabStop?: boolean;
|
|
41
|
-
userProperties?: IDictionary;
|
|
42
|
-
fillHeight?: boolean;
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}
|
|
45
|
-
export interface IComponentInstance {
|
|
46
|
-
addChildInstance(component: Component): void;
|
|
47
|
-
getChildInstance<T extends Component>(name: string): T;
|
|
48
|
-
allowDuplicate: boolean;
|
|
49
|
-
autofocus: boolean;
|
|
50
|
-
children: IComponent[];
|
|
51
|
-
componentId: number;
|
|
52
|
-
cssClass: string;
|
|
53
|
-
cssStyle: string | IDictionary;
|
|
54
|
-
events: IComponentEvents;
|
|
55
|
-
directives: IComponentDirectives;
|
|
56
|
-
isVisible: boolean | string;
|
|
57
|
-
dark: boolean;
|
|
58
|
-
light: boolean;
|
|
59
|
-
theme?: string;
|
|
60
|
-
keyMap: IKeyMap;
|
|
61
|
-
name: string;
|
|
62
|
-
parent?: IComponentInstance;
|
|
63
|
-
tabStop: boolean;
|
|
64
|
-
userProperties: IDictionary;
|
|
65
|
-
fillHeight: boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface IComponentRender extends IComponent {
|
|
68
|
-
children?: IComponentRender[];
|
|
69
|
-
component: string;
|
|
70
|
-
}
|
|
71
|
-
export interface IComponentRenderInstance extends IComponentInstance {
|
|
72
|
-
children: IComponentRender[];
|
|
73
|
-
component: string;
|
|
74
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
-
import { IContainer } from './interfaces';
|
|
3
|
-
export declare class Container extends ComponentRender implements IContainer {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the height for the component.
|
|
6
|
-
*/
|
|
7
|
-
height: number | string;
|
|
8
|
-
/**
|
|
9
|
-
* Sets the maximum height for the component.
|
|
10
|
-
*/
|
|
11
|
-
maxHeight: number | string;
|
|
12
|
-
/**
|
|
13
|
-
* Sets the minimum height for the component.
|
|
14
|
-
*/
|
|
15
|
-
minHeight: number | string;
|
|
16
|
-
/**
|
|
17
|
-
* Defines the component width. Possible values for this property can be
|
|
18
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
19
|
-
*/
|
|
20
|
-
width: string | number;
|
|
21
|
-
/**
|
|
22
|
-
* Defines the component min width. Possible values for this property can be
|
|
23
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
24
|
-
*/
|
|
25
|
-
minWidth: string | number;
|
|
26
|
-
/**
|
|
27
|
-
* Defines the component max height. Possible values for this property can be
|
|
28
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
29
|
-
*/
|
|
30
|
-
maxWidth: string | number;
|
|
31
|
-
/**
|
|
32
|
-
* Removes viewport maximum-width size breakpoints.
|
|
33
|
-
*/
|
|
34
|
-
fluid: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Define if the container is a scroll view
|
|
37
|
-
*/
|
|
38
|
-
scrollView: boolean;
|
|
39
|
-
tag: string;
|
|
40
|
-
/**
|
|
41
|
-
* Creates a new Container.
|
|
42
|
-
* @param props Container properties
|
|
43
|
-
*/
|
|
44
|
-
constructor(props: IContainer);
|
|
45
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
2
|
-
export interface IContainer extends IComponentRender {
|
|
3
|
-
fluid?: boolean;
|
|
4
|
-
height?: string | number;
|
|
5
|
-
maxHeight?: string | number;
|
|
6
|
-
minHeight?: string | number;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
maxWidth?: string | number;
|
|
9
|
-
minWidth?: string | number;
|
|
10
|
-
scrollView?: boolean;
|
|
11
|
-
tag?: string;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NumberInput as ZdNumber } from '../zd-number-input/number-input';
|
|
2
|
-
import { ICurrency } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Currency component
|
|
5
|
-
*/
|
|
6
|
-
export declare class Currency extends ZdNumber implements ICurrency {
|
|
7
|
-
mask: any;
|
|
8
|
-
protected defaultMask: any;
|
|
9
|
-
protected formatterFn: (...args: any) => any;
|
|
10
|
-
protected parserFn: (...args: any) => any;
|
|
11
|
-
constructor(props: ICurrency);
|
|
12
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { TextInput } from '../zd-text-input/text-input';
|
|
2
|
-
import { IDateInput } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Date component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DateInput extends TextInput implements IDateInput {
|
|
7
|
-
/**
|
|
8
|
-
* Restricts which dates can be selected.
|
|
9
|
-
*/
|
|
10
|
-
allowedDates?: ((date: string) => boolean) | string[];
|
|
11
|
-
/**
|
|
12
|
-
* Determines the type of the view mode - month for month picker.
|
|
13
|
-
*/
|
|
14
|
-
viewMode: string;
|
|
15
|
-
/**
|
|
16
|
-
* Input auto complete.
|
|
17
|
-
*/
|
|
18
|
-
autocomplete: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the date format.
|
|
21
|
-
*/
|
|
22
|
-
dateFormat: string;
|
|
23
|
-
/**
|
|
24
|
-
* Defines the date format displayed.
|
|
25
|
-
*/
|
|
26
|
-
displayFormat: string;
|
|
27
|
-
/**
|
|
28
|
-
* Defines the date input format.
|
|
29
|
-
*/
|
|
30
|
-
inputFormat?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Shows the date picker.
|
|
33
|
-
*/
|
|
34
|
-
showDatePicker: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the first day of the week, starting with 0 for Sunday.
|
|
37
|
-
*/
|
|
38
|
-
firstDayOfWeek: number | string;
|
|
39
|
-
/**
|
|
40
|
-
* Forces 100% width.
|
|
41
|
-
*/
|
|
42
|
-
fullWidth: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Toggles visibility of the week numbers in the body of the calendar.
|
|
45
|
-
*/
|
|
46
|
-
showWeek: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Helper options.
|
|
49
|
-
*/
|
|
50
|
-
helperOptions?: string[];
|
|
51
|
-
/**
|
|
52
|
-
* Helper value.
|
|
53
|
-
*/
|
|
54
|
-
helperValue?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Max value allowed.
|
|
57
|
-
*/
|
|
58
|
-
max?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Min value allowed.
|
|
61
|
-
*/
|
|
62
|
-
min?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Width of the picker.
|
|
65
|
-
*/
|
|
66
|
-
width: number | string;
|
|
67
|
-
protected isoFormat: string;
|
|
68
|
-
protected dateError: boolean;
|
|
69
|
-
protected formatterFn: (...args: any) => any;
|
|
70
|
-
protected parserFn: (...args: any) => any;
|
|
71
|
-
protected initialMask?: string;
|
|
72
|
-
protected isSimpleDisplay: boolean;
|
|
73
|
-
inputMode?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Creates a new Date.
|
|
76
|
-
* @param props Date properties
|
|
77
|
-
*/
|
|
78
|
-
constructor(props: IDateInput);
|
|
79
|
-
appendIconClick(event: Event, element: any): void;
|
|
80
|
-
private getInitialMask;
|
|
81
|
-
formatter(value: string): string;
|
|
82
|
-
parser(value: string): any;
|
|
83
|
-
/**
|
|
84
|
-
* Triggered when date is clicked.
|
|
85
|
-
* @param event
|
|
86
|
-
* @param element
|
|
87
|
-
*/
|
|
88
|
-
selectDate(date: string, event?: Event, element?: any): void;
|
|
89
|
-
get value(): string;
|
|
90
|
-
set value(value: string);
|
|
91
|
-
get displayValue(): string;
|
|
92
|
-
set displayValue(newValue: string);
|
|
93
|
-
/**
|
|
94
|
-
* Assign the updated mask to mask property
|
|
95
|
-
*/
|
|
96
|
-
updateMask(): any;
|
|
97
|
-
/**
|
|
98
|
-
* Gets the updated masked, based on displayFormat if the initial mask is undefined
|
|
99
|
-
*/
|
|
100
|
-
protected getUpdatedMask(): string | undefined;
|
|
101
|
-
protected maskFormat(format: string): string;
|
|
102
|
-
setDateValue(displayValue: string): void;
|
|
103
|
-
private setValidDateValue;
|
|
104
|
-
private setInvalidDateValue;
|
|
105
|
-
isValidDate(value: string, format: string, strict?: boolean): boolean;
|
|
106
|
-
isValidFormatDate(value: string, format: string, strict?: boolean): boolean;
|
|
107
|
-
private dateObject;
|
|
108
|
-
getNativeDate(): Date | null;
|
|
109
|
-
setNativeDate(date: Date): void;
|
|
110
|
-
getAllowedDates(date: Date): boolean;
|
|
111
|
-
formatISODateValue(value: string): string;
|
|
112
|
-
parseISODateValue(value: string): any;
|
|
113
|
-
dateValidation(): boolean | string;
|
|
114
|
-
click(event?: Event, element?: any): void;
|
|
115
|
-
blur(event: Event, element: any): void;
|
|
116
|
-
onMounted(): void;
|
|
117
|
-
focus(event: Event, element: any): void;
|
|
118
|
-
/**
|
|
119
|
-
* Add date mask
|
|
120
|
-
*/
|
|
121
|
-
protected addDateMask(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Removes the component mask if value is valid
|
|
124
|
-
*/
|
|
125
|
-
protected removeDateMask(): void;
|
|
126
|
-
/**
|
|
127
|
-
* Toggle showDatePicker value
|
|
128
|
-
*/
|
|
129
|
-
togglePicker(): void;
|
|
130
|
-
/**
|
|
131
|
-
* Triggered when the appended icon is clicked.
|
|
132
|
-
* @param event DOM event
|
|
133
|
-
* @param element Text input
|
|
134
|
-
*/
|
|
135
|
-
iconClick(event: Event, element: any): void;
|
|
136
|
-
/**
|
|
137
|
-
* Checks if a date format is simple.
|
|
138
|
-
* Simple date formats are the ones that consists only of 'DD', 'MM' or 'YYYY', and mask delimiters
|
|
139
|
-
* @param format The format to be checked
|
|
140
|
-
* @returns true if it is simple, false otherwise
|
|
141
|
-
*/
|
|
142
|
-
protected isSimpleFormat(format: string): boolean;
|
|
143
|
-
private previousHint;
|
|
144
|
-
private previousPersistentHint;
|
|
145
|
-
updateHelperHint(): void;
|
|
146
|
-
change(event?: Event, element?: any): void;
|
|
147
|
-
/**
|
|
148
|
-
* Converts a date format to a mask
|
|
149
|
-
*/
|
|
150
|
-
private toMask;
|
|
151
|
-
getMask(): string;
|
|
152
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IEvent, IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { ITextInput, ITextInputEvents } from '../zd-text-input/interfaces';
|
|
3
|
-
import { DateInput } from './date-input';
|
|
4
|
-
export interface IDateEventParam extends IEventParam<DateInput> {
|
|
5
|
-
date: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IDateEvents<T = IDateEventParam | IEventParam<any>> extends ITextInputEvents<T> {
|
|
8
|
-
onSelectDate?: IEvent<T> | string;
|
|
9
|
-
}
|
|
10
|
-
export interface IDateInput extends ITextInput {
|
|
11
|
-
allowedDates?: ((date: string) => boolean) | string[];
|
|
12
|
-
dateFormat?: string;
|
|
13
|
-
displayFormat?: string;
|
|
14
|
-
events?: IDateEvents;
|
|
15
|
-
firstDayOfWeek?: number | string;
|
|
16
|
-
fullWidth?: boolean;
|
|
17
|
-
inputFormat?: string;
|
|
18
|
-
showDatePicker?: boolean;
|
|
19
|
-
showWeek?: boolean;
|
|
20
|
-
width?: number | string;
|
|
21
|
-
orderedDates?: boolean;
|
|
22
|
-
helperOptions?: string[];
|
|
23
|
-
helperValue?: string;
|
|
24
|
-
max?: string;
|
|
25
|
-
min?: string;
|
|
26
|
-
viewMode?: string;
|
|
27
|
-
}
|