@zeedhi/common 1.63.1 → 1.63.3-beta.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/zd-common.esm.js +19 -7
- package/dist/zd-common.umd.js +31 -17
- package/package.json +3 -3
- package/types/components/zd-apex-chart/interfaces.d.ts +20 -20
- package/types/components/zd-button-group/interfaces.d.ts +3 -3
- package/types/components/zd-component/component.d.ts +2 -0
- package/types/components/zd-component/interfaces.d.ts +9 -8
- package/types/components/zd-dashboard/interfaces.d.ts +2 -2
- package/types/components/zd-form/interfaces.d.ts +3 -3
- package/types/components/zd-frame/interfaces.d.ts +3 -3
- package/types/components/zd-input/interfaces.d.ts +6 -6
- package/types/components/zd-iterable/interfaces.d.ts +3 -3
- package/types/components/zd-select-multiple/interfaces.d.ts +4 -4
- package/types/components/zd-select-tree/interfaces.d.ts +5 -5
- package/types/components/zd-svg-map/interfaces.d.ts +3 -3
- package/types/components/zd-tabs/interfaces.d.ts +4 -4
- package/types/components/zd-tree/interfaces.d.ts +7 -7
- package/types/index.d.ts +1 -1
package/dist/zd-common.esm.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AutoNumeric from '@zeedhi/autonumeric';
|
|
2
|
+
export { default as AutoNumeric } from '@zeedhi/autonumeric';
|
|
3
|
+
import { AccessorManager, Event, KeyMap, Metadata, FormatterParserProvider, Validation, Mask, Accessor, DatasourceFactory, I18n, MethodNotAssignedError, Loader, Config, dayjs, DateHelper, Utils, Router, InstanceNotFoundError, Cookie, Http, URL as URL$1 } from '@zeedhi/core';
|
|
2
4
|
import merge from 'lodash.merge';
|
|
3
5
|
import debounce from 'lodash.debounce';
|
|
4
6
|
import isUndefined from 'lodash.isundefined';
|
|
@@ -258,6 +260,20 @@ class Component {
|
|
|
258
260
|
this.isFocused = false;
|
|
259
261
|
this.callEvent('blur', { event, element, component: this });
|
|
260
262
|
}
|
|
263
|
+
mouseenter(event, element) {
|
|
264
|
+
this.callEvent('mouseenter', {
|
|
265
|
+
event: (event || new MouseEvent('mouseenter')),
|
|
266
|
+
element: (element || this.element),
|
|
267
|
+
component: this,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
mouseleave(event, element) {
|
|
271
|
+
this.callEvent('mouseleave', {
|
|
272
|
+
event: (event || new MouseEvent('mouseleave')),
|
|
273
|
+
element: (element || this.element),
|
|
274
|
+
component: this,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
261
277
|
}
|
|
262
278
|
|
|
263
279
|
/**
|
|
@@ -2528,7 +2544,7 @@ class Number$1 extends TextInput {
|
|
|
2528
2544
|
this.validateMask();
|
|
2529
2545
|
}
|
|
2530
2546
|
validateMask() {
|
|
2531
|
-
AutoNumeric.validate(this.mask
|
|
2547
|
+
AutoNumeric.validate(this.mask);
|
|
2532
2548
|
this.maskValid = true;
|
|
2533
2549
|
this.value = this.localValue; // force atualization after validate mask
|
|
2534
2550
|
}
|
|
@@ -13245,8 +13261,4 @@ class Report {
|
|
|
13245
13261
|
}
|
|
13246
13262
|
}
|
|
13247
13263
|
|
|
13248
|
-
|
|
13249
|
-
const packageContent = require('../package.json');
|
|
13250
|
-
VersionService.addPackageVersion(packageContent.name, packageContent.version);
|
|
13251
|
-
|
|
13252
|
-
export { Alert, AlertService, ApexChart, AutoNumeric, Badge, Breadcrumbs, Button, ButtonGroup, CSVReport, Card, Carousel, Checkbox, CheckboxMultiple, ChildNotFoundError, Chip, CodeEditor, Col, CollapseCard, Column, ColumnNotFoundError, Component, ComponentRender, Container, Currency, Dashboard, Date$1 as Date, DateRange, Dialog, DialogService, Divider, Dropdown, FileInput, Footer, Form, Frame, FramePage, Grid, GridColumn, GridColumnEditable, GridEditable, Header, Icon, Icons, Image, Increment, Input, Iterable, IterableColumnsButton, IterableColumnsButtonController, IterableComponentRender, IterablePageComponent, IterablePageInfo, IterablePageSize, IterablePagination, List, ListGroup, ListItem, Loading, LoadingService, Login, LoginButton, MasterDetail, Menu, MenuButton, MenuGroup, MenuLink, MenuSeparator, Modal, ModalCloseButton, ModalService, Month, Number$1 as Number, PDFReport, Password, Progress, Radio, RangeSlider, Report, Row, Search, Select, SelectMultiple, SelectTree, SelectTreeMultiple, SelectableList, SpeedDial, Steppers, SvgMap, Switch, Tab, Table, Tabs, Tag, Text, TextInput, Textarea, Time, Toggleable, Tooltip, Tree, TreeDataStructure, TreeGrid, TreeGridEditable, WatchURL, XLS2Report, XLS3Report, XLSReport, initTheme };
|
|
13264
|
+
export { Alert, AlertService, ApexChart, Badge, Breadcrumbs, Button, ButtonGroup, CSVReport, Card, Carousel, Checkbox, CheckboxMultiple, ChildNotFoundError, Chip, CodeEditor, Col, CollapseCard, Column, ColumnNotFoundError, Component, ComponentRender, Container, Currency, Dashboard, Date$1 as Date, DateRange, Dialog, DialogService, Divider, Dropdown, FileInput, Footer, Form, Frame, FramePage, Grid, GridColumn, GridColumnEditable, GridEditable, Header, Icon, Icons, Image, Increment, Input, Iterable, IterableColumnsButton, IterableColumnsButtonController, IterableComponentRender, IterablePageComponent, IterablePageInfo, IterablePageSize, IterablePagination, List, ListGroup, ListItem, Loading, LoadingService, Login, LoginButton, MasterDetail, Menu, MenuButton, MenuGroup, MenuLink, MenuSeparator, Modal, ModalCloseButton, ModalService, Month, Number$1 as Number, PDFReport, Password, Progress, Radio, RangeSlider, Report, Row, Search, Select, SelectMultiple, SelectTree, SelectTreeMultiple, SelectableList, SpeedDial, Steppers, SvgMap, Switch, Tab, Table, Tabs, Tag, Text, TextInput, Textarea, Time, Toggleable, Tooltip, Tree, TreeDataStructure, TreeGrid, TreeGridEditable, WatchURL, XLS2Report, XLS3Report, XLSReport, initTheme };
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@zeedhi/core'), require('lodash.merge'), require('lodash.debounce'), require('lodash.isundefined'), require('lodash.set'), require('lodash.get')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@zeedhi/core', 'lodash.merge', 'lodash.debounce', 'lodash.isundefined', 'lodash.set', 'lodash.get'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@zeedhi/common"] = {}, global.core, global.merge, global.debounce, global.isUndefined, global.set, global.get));
|
|
5
|
-
})(this, (function (exports, core, merge, debounce, isUndefined, set, get) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@zeedhi/autonumeric'), require('@zeedhi/core'), require('lodash.merge'), require('lodash.debounce'), require('lodash.isundefined'), require('lodash.set'), require('lodash.get')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@zeedhi/autonumeric', '@zeedhi/core', 'lodash.merge', 'lodash.debounce', 'lodash.isundefined', 'lodash.set', 'lodash.get'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@zeedhi/common"] = {}, global.AutoNumeric, global.core, global.merge, global.debounce, global.isUndefined, global.set, global.get));
|
|
5
|
+
})(this, (function (exports, AutoNumeric, core, merge, debounce, isUndefined, set, get) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
+
var AutoNumeric__default = /*#__PURE__*/_interopDefaultLegacy(AutoNumeric);
|
|
9
10
|
var merge__default = /*#__PURE__*/_interopDefaultLegacy(merge);
|
|
10
11
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
11
12
|
var isUndefined__default = /*#__PURE__*/_interopDefaultLegacy(isUndefined);
|
|
@@ -265,6 +266,20 @@
|
|
|
265
266
|
this.isFocused = false;
|
|
266
267
|
this.callEvent('blur', { event, element, component: this });
|
|
267
268
|
}
|
|
269
|
+
mouseenter(event, element) {
|
|
270
|
+
this.callEvent('mouseenter', {
|
|
271
|
+
event: (event || new MouseEvent('mouseenter')),
|
|
272
|
+
element: (element || this.element),
|
|
273
|
+
component: this,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
mouseleave(event, element) {
|
|
277
|
+
this.callEvent('mouseleave', {
|
|
278
|
+
event: (event || new MouseEvent('mouseleave')),
|
|
279
|
+
element: (element || this.element),
|
|
280
|
+
component: this,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
268
283
|
}
|
|
269
284
|
|
|
270
285
|
/**
|
|
@@ -2535,7 +2550,7 @@
|
|
|
2535
2550
|
this.validateMask();
|
|
2536
2551
|
}
|
|
2537
2552
|
validateMask() {
|
|
2538
|
-
|
|
2553
|
+
AutoNumeric__default["default"].validate(this.mask);
|
|
2539
2554
|
this.maskValid = true;
|
|
2540
2555
|
this.value = this.localValue; // force atualization after validate mask
|
|
2541
2556
|
}
|
|
@@ -2547,7 +2562,7 @@
|
|
|
2547
2562
|
return;
|
|
2548
2563
|
this.localValue = value;
|
|
2549
2564
|
if (this.maskValid && this.localValue !== undefined && this.localValue !== null) {
|
|
2550
|
-
this.formattedValue =
|
|
2565
|
+
this.formattedValue = AutoNumeric__default["default"].format(this.localValue, this.mask);
|
|
2551
2566
|
if (this.autoNumericObj) {
|
|
2552
2567
|
this.autoNumericObj.setValue(value);
|
|
2553
2568
|
}
|
|
@@ -2599,8 +2614,8 @@
|
|
|
2599
2614
|
const [controller, accessor] = core.Accessor.getAccessor(maskDef);
|
|
2600
2615
|
maskDef = core.Loader.getInstance(controller)[accessor];
|
|
2601
2616
|
}
|
|
2602
|
-
const maskValue = typeof (maskDef) === 'function' ? maskDef(
|
|
2603
|
-
return value === null ? '' :
|
|
2617
|
+
const maskValue = typeof (maskDef) === 'function' ? maskDef(AutoNumeric__default["default"].unformat(value)) : maskDef;
|
|
2618
|
+
return value === null ? '' : AutoNumeric__default["default"].format(value, maskValue);
|
|
2604
2619
|
});
|
|
2605
2620
|
core.FormatterParserProvider.registerParser('ZdNumber', (value, { mask = core.Config.masks.numberMask, } = {}) => {
|
|
2606
2621
|
let maskDef = mask;
|
|
@@ -2608,8 +2623,8 @@
|
|
|
2608
2623
|
const [controller, accessor] = core.Accessor.getAccessor(maskDef);
|
|
2609
2624
|
maskDef = core.Loader.getInstance(controller)[accessor];
|
|
2610
2625
|
}
|
|
2611
|
-
const maskValue = typeof (maskDef) === 'function' ? maskDef(
|
|
2612
|
-
return value === '' ? null :
|
|
2626
|
+
const maskValue = typeof (maskDef) === 'function' ? maskDef(AutoNumeric__default["default"].format(value)) : maskDef;
|
|
2627
|
+
return value === '' ? null : AutoNumeric__default["default"].unformat(value, maskValue);
|
|
2613
2628
|
});
|
|
2614
2629
|
|
|
2615
2630
|
/**
|
|
@@ -2626,8 +2641,8 @@
|
|
|
2626
2641
|
this.validateMask();
|
|
2627
2642
|
}
|
|
2628
2643
|
}
|
|
2629
|
-
core.FormatterParserProvider.registerFormatter('ZdCurrency', (value, { mask = core.Config.masks.currencyMask, } = {}) => (value === null ? '' :
|
|
2630
|
-
core.FormatterParserProvider.registerParser('ZdCurrency', (value, { mask = core.Config.masks.currencyMask, } = {}) => (value === '' ? null :
|
|
2644
|
+
core.FormatterParserProvider.registerFormatter('ZdCurrency', (value, { mask = core.Config.masks.currencyMask, } = {}) => (value === null ? '' : AutoNumeric__default["default"].format(value, mask)));
|
|
2645
|
+
core.FormatterParserProvider.registerParser('ZdCurrency', (value, { mask = core.Config.masks.currencyMask, } = {}) => (value === '' ? null : AutoNumeric__default["default"].unformat(value, mask)));
|
|
2631
2646
|
|
|
2632
2647
|
/**
|
|
2633
2648
|
* Alert Service Class
|
|
@@ -13252,14 +13267,13 @@
|
|
|
13252
13267
|
}
|
|
13253
13268
|
}
|
|
13254
13269
|
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13270
|
+
Object.defineProperty(exports, 'AutoNumeric', {
|
|
13271
|
+
enumerable: true,
|
|
13272
|
+
get: function () { return AutoNumeric__default["default"]; }
|
|
13273
|
+
});
|
|
13259
13274
|
exports.Alert = Alert;
|
|
13260
13275
|
exports.AlertService = AlertService;
|
|
13261
13276
|
exports.ApexChart = ApexChart;
|
|
13262
|
-
exports.AutoNumeric = AutoNumeric;
|
|
13263
13277
|
exports.Badge = Badge;
|
|
13264
13278
|
exports.Breadcrumbs = Breadcrumbs;
|
|
13265
13279
|
exports.Button = Button;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.63.
|
|
3
|
+
"version": "1.63.3-beta.0",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"watch": "npm run build -- -w"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@zeedhi/autonumeric": "
|
|
22
|
+
"@zeedhi/autonumeric": "file:../../../autonumeric",
|
|
23
23
|
"lodash.debounce": "^4.0.8",
|
|
24
24
|
"lodash.get": "^4.4.2",
|
|
25
25
|
"lodash.isundefined": "^3.0.1",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"lodash.times": "^4.3.2",
|
|
40
40
|
"mockdate": "^3.0.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "24d65cad77392b4fd26340b270503433f38ea162"
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEventParam
|
|
2
|
-
import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { EventDef, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
3
|
import { ApexChart } from './apex-chart';
|
|
4
4
|
export declare type ApexChartOption = {
|
|
5
5
|
xaxis?: any;
|
|
@@ -14,24 +14,24 @@ export interface IApexChartEvent extends IEventParam<ApexChart> {
|
|
|
14
14
|
seriesIndex?: any;
|
|
15
15
|
}
|
|
16
16
|
export interface IApexChartEvents<T = IApexChartEvent | IEventParam<any>> extends IComponentEvents<T> {
|
|
17
|
-
chartAnimationEnd?:
|
|
18
|
-
chartBeforeMount?:
|
|
19
|
-
chartMounted?:
|
|
20
|
-
chartUpdated?:
|
|
21
|
-
chartMouseMove?:
|
|
22
|
-
chartMouseLeave?:
|
|
23
|
-
chartClick?:
|
|
24
|
-
chartLegendClick?:
|
|
25
|
-
chartMarkerClick?:
|
|
26
|
-
chartSelection?:
|
|
27
|
-
chartDataPointSelection?:
|
|
28
|
-
chartDataPointMouseEnter?:
|
|
29
|
-
chartDataPointMouseLeave?:
|
|
30
|
-
chartBeforeZoom?:
|
|
31
|
-
chartBeforeResetZoom?:
|
|
32
|
-
chartZoomed?:
|
|
33
|
-
chartScrolled?:
|
|
34
|
-
chartBrushScrolled?:
|
|
17
|
+
chartAnimationEnd?: EventDef<T>;
|
|
18
|
+
chartBeforeMount?: EventDef<T>;
|
|
19
|
+
chartMounted?: EventDef<T>;
|
|
20
|
+
chartUpdated?: EventDef<T>;
|
|
21
|
+
chartMouseMove?: EventDef<T>;
|
|
22
|
+
chartMouseLeave?: EventDef<T>;
|
|
23
|
+
chartClick?: EventDef<T>;
|
|
24
|
+
chartLegendClick?: EventDef<T>;
|
|
25
|
+
chartMarkerClick?: EventDef<T>;
|
|
26
|
+
chartSelection?: EventDef<T>;
|
|
27
|
+
chartDataPointSelection?: EventDef<T>;
|
|
28
|
+
chartDataPointMouseEnter?: EventDef<T>;
|
|
29
|
+
chartDataPointMouseLeave?: EventDef<T>;
|
|
30
|
+
chartBeforeZoom?: EventDef<T>;
|
|
31
|
+
chartBeforeResetZoom?: EventDef<T>;
|
|
32
|
+
chartZoomed?: EventDef<T>;
|
|
33
|
+
chartScrolled?: EventDef<T>;
|
|
34
|
+
chartBrushScrolled?: EventDef<T>;
|
|
35
35
|
}
|
|
36
36
|
export interface IApexChart extends IComponentRender {
|
|
37
37
|
chartType?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IEventParam
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
2
|
import { ButtonGroup } from './button-group';
|
|
3
3
|
import { IButton } from '../zd-button/interfaces';
|
|
4
|
-
import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
4
|
+
import { IComponentEvents, IComponentRender, EventDef } from '../zd-component/interfaces';
|
|
5
5
|
export declare type IButtonGroupEvent = IEventParam<ButtonGroup>;
|
|
6
6
|
export interface IButtonGroupEvents<T = IEventParam<any>> extends IComponentEvents<T> {
|
|
7
|
-
change?:
|
|
7
|
+
change?: EventDef<T>;
|
|
8
8
|
}
|
|
9
9
|
export interface IButtonGroup extends IComponentRender {
|
|
10
10
|
children?: IButton[];
|
|
@@ -164,4 +164,6 @@ export declare class Component implements IComponent {
|
|
|
164
164
|
* @param element Element that lost the focus
|
|
165
165
|
*/
|
|
166
166
|
blur(event: Event, element: any): void;
|
|
167
|
+
mouseenter(event?: Event, element?: any): void;
|
|
168
|
+
mouseleave(event?: Event, element?: any): void;
|
|
167
169
|
}
|
|
@@ -26,15 +26,16 @@ export interface IComponentRender extends IComponent {
|
|
|
26
26
|
children?: IComponentRender[];
|
|
27
27
|
component: string;
|
|
28
28
|
}
|
|
29
|
+
export declare type EventDef<T, K = IEvent<T>> = K | string | (K | string)[];
|
|
29
30
|
export interface IComponentEvents<T = IEventParam<any>> extends IEvents<T> {
|
|
30
|
-
blur?:
|
|
31
|
-
click?:
|
|
32
|
-
focus?:
|
|
33
|
-
onCreated?:
|
|
34
|
-
onBeforeMount?:
|
|
35
|
-
onMounted?:
|
|
36
|
-
onBeforeDestroy?:
|
|
37
|
-
onDestroyed?:
|
|
31
|
+
blur?: EventDef<T>;
|
|
32
|
+
click?: EventDef<T>;
|
|
33
|
+
focus?: EventDef<T>;
|
|
34
|
+
onCreated?: EventDef<T>;
|
|
35
|
+
onBeforeMount?: EventDef<T>;
|
|
36
|
+
onMounted?: EventDef<T>;
|
|
37
|
+
onBeforeDestroy?: EventDef<T>;
|
|
38
|
+
onDestroyed?: EventDef<T>;
|
|
38
39
|
}
|
|
39
40
|
export interface IComponentDirectives {
|
|
40
41
|
touch?: IComponentEvents;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IEventParam } from '@zeedhi/core';
|
|
2
2
|
import { Dashboard } from './dashboard';
|
|
3
|
-
import { IComponentRender, IComponentEvents } from '../zd-component/interfaces';
|
|
3
|
+
import { IComponentRender, IComponentEvents, EventDef } from '../zd-component/interfaces';
|
|
4
4
|
import { ICard } from '../zd-card/interfaces';
|
|
5
5
|
import { IHeader } from '../zd-header/interfaces';
|
|
6
6
|
export declare type IDashboardEventParam = IEventParam<Dashboard>;
|
|
7
7
|
export declare type IDashboardLoadEvent<T> = (event: T) => Promise<any>;
|
|
8
8
|
export interface IDashboardEvents<T = IEventParam<any>> extends IComponentEvents<T> {
|
|
9
|
-
load?: IDashboardLoadEvent<T
|
|
9
|
+
load?: EventDef<T, IDashboardLoadEvent<T>>;
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}
|
|
12
12
|
export interface IDashboard extends IComponentRender {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IEventParam
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
2
|
import { Form } from './form';
|
|
3
|
-
import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { EventDef, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
4
4
|
export declare type IFormEvent = IEventParam<Form>;
|
|
5
5
|
export interface IFormEvents extends IComponentEvents<IFormEvent> {
|
|
6
|
-
submit?:
|
|
6
|
+
submit?: EventDef<IFormEvent>;
|
|
7
7
|
}
|
|
8
8
|
export interface IFormGrid {
|
|
9
9
|
cols?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IEventParam
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
2
|
import { Frame } from './frame';
|
|
3
|
-
import { IComponentRender, IComponentEvents } from '../zd-component/interfaces';
|
|
3
|
+
import { IComponentRender, IComponentEvents, EventDef } from '../zd-component/interfaces';
|
|
4
4
|
export declare type IFrameEvent = IEventParam<Frame>;
|
|
5
5
|
export interface IFrameEvents<T = IFrameEvent> extends IComponentEvents<T> {
|
|
6
|
-
onAfterLoad?:
|
|
6
|
+
onAfterLoad?: EventDef<T>;
|
|
7
7
|
}
|
|
8
8
|
export interface IFrame extends IComponentRender {
|
|
9
9
|
path?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IEventParam,
|
|
1
|
+
import { IEventParam, IDictionary } from '@zeedhi/core';
|
|
2
2
|
import { Input } from './input';
|
|
3
|
-
import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { IComponentEvents, IComponentRender, EventDef } from '../zd-component/interfaces';
|
|
4
4
|
export declare type IInputEvent = IEventParam<Input>;
|
|
5
5
|
export interface IInputEvents<T = IEventParam<any>> extends IComponentEvents<T> {
|
|
6
|
-
change?:
|
|
7
|
-
input?:
|
|
8
|
-
keydown?:
|
|
9
|
-
keyup?:
|
|
6
|
+
change?: EventDef<T>;
|
|
7
|
+
input?: EventDef<T>;
|
|
8
|
+
keydown?: EventDef<T>;
|
|
9
|
+
keyup?: EventDef<T>;
|
|
10
10
|
}
|
|
11
11
|
export interface IInput extends IComponentRender {
|
|
12
12
|
align?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IDatasource, IDictionary,
|
|
1
|
+
import { IDatasource, IDictionary, IEventParam } from '@zeedhi/core';
|
|
2
2
|
import { IButton } from '../zd-button/interfaces';
|
|
3
|
-
import { IComponent, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { IComponent, IComponentEvents, IComponentRender, EventDef } from '../zd-component/interfaces';
|
|
4
4
|
import { ISelect } from '../zd-select/interfaces';
|
|
5
5
|
import { ITextInput } from '../zd-text-input/interfaces';
|
|
6
6
|
export interface IIterableEvents<T = IEventParam<any>> extends IComponentEvents<T> {
|
|
7
|
-
changeLayout?:
|
|
7
|
+
changeLayout?: EventDef<T>;
|
|
8
8
|
}
|
|
9
9
|
export declare type ColumnAlign = 'left' | 'center' | 'right';
|
|
10
10
|
export declare type ColumnType = 'action';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IEventParam
|
|
2
|
-
import { IComponentEvents } from '../zd-component/interfaces';
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IComponentEvents, EventDef } from '../zd-component/interfaces';
|
|
3
3
|
import { ISelect } from '../zd-select/interfaces';
|
|
4
4
|
import { SelectMultiple } from './select-multiple';
|
|
5
5
|
export declare type ISelectMultipleEvent = IEventParam<SelectMultiple>;
|
|
6
6
|
export interface ISelectMultipleEvents<T = IEventParam<any>> extends IComponentEvents<T> {
|
|
7
|
-
selectedAll?:
|
|
8
|
-
unselectedAll?:
|
|
7
|
+
selectedAll?: EventDef<T>;
|
|
8
|
+
unselectedAll?: EventDef<T>;
|
|
9
9
|
}
|
|
10
10
|
export interface ISelectMultiple extends ISelect {
|
|
11
11
|
moreChip?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDictionary, IEventParam,
|
|
2
|
-
import { IComponentRender, IComponentEvents } from '../zd-component/interfaces';
|
|
1
|
+
import { IDictionary, IEventParam, IDatasource } from '@zeedhi/core';
|
|
2
|
+
import { IComponentRender, IComponentEvents, EventDef } from '../zd-component/interfaces';
|
|
3
3
|
import { SelectTree } from './select-tree';
|
|
4
4
|
export interface ISelectTreeNode<T> {
|
|
5
5
|
id: string | number;
|
|
@@ -41,7 +41,7 @@ export interface ISelectTreeMultipleSearchChangeEvent extends IEventParam<Select
|
|
|
41
41
|
searchQuery: String;
|
|
42
42
|
}
|
|
43
43
|
export interface ISelectTreeEvents extends IComponentEvents<any> {
|
|
44
|
-
onOpen?:
|
|
45
|
-
onClose?:
|
|
46
|
-
onSelect?:
|
|
44
|
+
onOpen?: EventDef<undefined>;
|
|
45
|
+
onClose?: EventDef<ISelectTreeCloseEvent>;
|
|
46
|
+
onSelect?: EventDef<ISelectTreeSelectEvent>;
|
|
47
47
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IEventParam
|
|
2
|
-
import { IComponentRender, IComponentEvents } from '../zd-component/interfaces';
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IComponentRender, IComponentEvents, EventDef } from '../zd-component/interfaces';
|
|
3
3
|
import { SvgMap } from './svg-map';
|
|
4
4
|
export interface ISvgMapEventParam extends IEventParam<SvgMap> {
|
|
5
5
|
area: SVGElement;
|
|
6
6
|
}
|
|
7
7
|
export interface ISvgMapEvents<T = ISvgMapEventParam | IEventParam<any>> extends IComponentEvents<T> {
|
|
8
|
-
areaClick?:
|
|
8
|
+
areaClick?: EventDef<T>;
|
|
9
9
|
}
|
|
10
10
|
export interface ISvgMap extends IComponentRender {
|
|
11
11
|
areaColor?: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IEventParam
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
2
|
import { Tabs } from './tabs';
|
|
3
|
-
import { IComponent, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { IComponent, IComponentEvents, IComponentRender, EventDef } from '../zd-component/interfaces';
|
|
4
4
|
export interface ITabsEventParam extends IEventParam<Tabs> {
|
|
5
5
|
}
|
|
6
6
|
export interface ITabsBeforeChangeEventParam extends ITabsEventParam {
|
|
7
7
|
tabIndex: number;
|
|
8
8
|
}
|
|
9
9
|
export interface ITabsEvents<T = ITabsEventParam | ITabsBeforeChangeEventParam | IEventParam<any>> extends IComponentEvents<T> {
|
|
10
|
-
change?:
|
|
11
|
-
beforeChange?:
|
|
10
|
+
change?: EventDef<T>;
|
|
11
|
+
beforeChange?: EventDef<T>;
|
|
12
12
|
}
|
|
13
13
|
export interface ITab extends IComponent {
|
|
14
14
|
tabTitle: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IComponentRender, IComponentEvents } from '../zd-component/interfaces';
|
|
1
|
+
import { IEventParam, IDictionary, IDatasource } from '@zeedhi/core';
|
|
2
|
+
import { IComponentRender, IComponentEvents, EventDef } from '../zd-component/interfaces';
|
|
3
3
|
import { Tree } from './tree';
|
|
4
4
|
export interface ITreeNodeModel<T> {
|
|
5
5
|
title: string;
|
|
@@ -39,11 +39,11 @@ export interface ITreeConditionComponent extends IComponentRender {
|
|
|
39
39
|
conditions?: IDictionary;
|
|
40
40
|
}
|
|
41
41
|
export interface ITreeEvents extends IComponentEvents<any> {
|
|
42
|
-
onNodeDrop?:
|
|
43
|
-
onNodeSelect?:
|
|
44
|
-
onNodeClick?:
|
|
45
|
-
onNodeDblClick?:
|
|
46
|
-
onNodeCheck?:
|
|
42
|
+
onNodeDrop?: EventDef<ITreeDropEvent>;
|
|
43
|
+
onNodeSelect?: EventDef<ITreeSelectEvent>;
|
|
44
|
+
onNodeClick?: EventDef<ITreeClickEvent>;
|
|
45
|
+
onNodeDblClick?: EventDef<ITreeClickEvent>;
|
|
46
|
+
onNodeCheck?: EventDef<ITreeSelectEvent>;
|
|
47
47
|
}
|
|
48
48
|
export interface ITree extends IComponentRender {
|
|
49
49
|
nodes?: ITreeNodeModel<IDictionary>[];
|
package/types/index.d.ts
CHANGED