@zcomponent/core 1.17.0-beta → 1.18.0-beta
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.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ActionBehavior } from '../actionbehavior';
|
|
2
|
+
/**
|
|
3
|
+
* Calls emit on an event that's a prop of this ZComponent
|
|
4
|
+
*
|
|
5
|
+
* @zbehavior
|
|
6
|
+
* @zicon function
|
|
7
|
+
* @zgroup Actions
|
|
8
|
+
*/
|
|
9
|
+
export declare class EmitComponentPropEvent extends ActionBehavior {
|
|
10
|
+
/**
|
|
11
|
+
* The event to emit
|
|
12
|
+
* @zprop
|
|
13
|
+
* @ztype function-emit-component-prop-event
|
|
14
|
+
*/
|
|
15
|
+
eventToEmit: () => any;
|
|
16
|
+
/**
|
|
17
|
+
* @zui
|
|
18
|
+
* @zprop
|
|
19
|
+
*/
|
|
20
|
+
perform(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ActionBehavior } from '../actionbehavior';
|
|
2
|
+
import { registerBehaviorRunAtDesignTime } from '../behavior';
|
|
3
|
+
/**
|
|
4
|
+
* Calls emit on an event that's a prop of this ZComponent
|
|
5
|
+
*
|
|
6
|
+
* @zbehavior
|
|
7
|
+
* @zicon function
|
|
8
|
+
* @zgroup Actions
|
|
9
|
+
*/
|
|
10
|
+
export class EmitComponentPropEvent extends ActionBehavior {
|
|
11
|
+
/**
|
|
12
|
+
* @zui
|
|
13
|
+
* @zprop
|
|
14
|
+
*/
|
|
15
|
+
perform() {
|
|
16
|
+
this.eventToEmit();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
registerBehaviorRunAtDesignTime(EmitComponentPropEvent);
|
package/lib/types.d.ts
CHANGED
|
@@ -164,7 +164,8 @@ export declare enum TypeHint {
|
|
|
164
164
|
'time-milliseconds' = "time-milliseconds",
|
|
165
165
|
'time-hertz' = "time-hertz",
|
|
166
166
|
'emailaddress' = "emailaddress",
|
|
167
|
-
'url' = "url"
|
|
167
|
+
'url' = "url",
|
|
168
|
+
'function-emit-component-prop-event' = "function-emit-component-prop-event"
|
|
168
169
|
}
|
|
169
170
|
/**
|
|
170
171
|
* Enumeration of values types used in a values definition.
|
package/lib/types.js
CHANGED
|
@@ -43,6 +43,7 @@ export var TypeHint;
|
|
|
43
43
|
TypeHint["time-hertz"] = "time-hertz";
|
|
44
44
|
TypeHint["emailaddress"] = "emailaddress";
|
|
45
45
|
TypeHint["url"] = "url";
|
|
46
|
+
TypeHint["function-emit-component-prop-event"] = "function-emit-component-prop-event";
|
|
46
47
|
})(TypeHint || (TypeHint = {}));
|
|
47
48
|
/**
|
|
48
49
|
* Enumeration of values types used in a values definition.
|