@bpmn-io/form-js-viewer 1.8.0 → 1.8.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/index.cjs +35 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +35 -0
- package/dist/index.es.js.map +1 -1
- package/dist/types/Form.d.ts +1 -0
- package/dist/types/util/injector.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -7002,6 +7002,8 @@ var slice = Array.prototype.slice;
|
|
|
7002
7002
|
* var sum = eventBus.fire('sum', 1, 2);
|
|
7003
7003
|
* console.log(sum); // 3
|
|
7004
7004
|
* ```
|
|
7005
|
+
*
|
|
7006
|
+
* @template [EventMap=null]
|
|
7005
7007
|
*/
|
|
7006
7008
|
function EventBus() {
|
|
7007
7009
|
/**
|
|
@@ -7015,6 +7017,8 @@ function EventBus() {
|
|
|
7015
7017
|
}
|
|
7016
7018
|
|
|
7017
7019
|
/**
|
|
7020
|
+
* @overlord
|
|
7021
|
+
*
|
|
7018
7022
|
* Register an event listener for events with the given name.
|
|
7019
7023
|
*
|
|
7020
7024
|
* The callback will be invoked with `event, ...additionalArguments`
|
|
@@ -7033,6 +7037,25 @@ function EventBus() {
|
|
|
7033
7037
|
* @param {EventBusEventCallback<T>} callback
|
|
7034
7038
|
* @param {any} [that] callback context
|
|
7035
7039
|
*/
|
|
7040
|
+
/**
|
|
7041
|
+
* Register an event listener for events with the given name.
|
|
7042
|
+
*
|
|
7043
|
+
* The callback will be invoked with `event, ...additionalArguments`
|
|
7044
|
+
* that have been passed to {@link EventBus#fire}.
|
|
7045
|
+
*
|
|
7046
|
+
* Returning false from a listener will prevent the events default action
|
|
7047
|
+
* (if any is specified). To stop an event from being processed further in
|
|
7048
|
+
* other listeners execute {@link Event#stopPropagation}.
|
|
7049
|
+
*
|
|
7050
|
+
* Returning anything but `undefined` from a listener will stop the listener propagation.
|
|
7051
|
+
*
|
|
7052
|
+
* @template {keyof EventMap} EventName
|
|
7053
|
+
*
|
|
7054
|
+
* @param {EventName} events to subscribe to
|
|
7055
|
+
* @param {number} [priority=1000] listen priority
|
|
7056
|
+
* @param {EventBusEventCallback<EventMap[EventName]>} callback
|
|
7057
|
+
* @param {any} [that] callback context
|
|
7058
|
+
*/
|
|
7036
7059
|
EventBus.prototype.on = function (events, priority, callback, that) {
|
|
7037
7060
|
events = isArray(events) ? events : [events];
|
|
7038
7061
|
if (isFunction(priority)) {
|
|
@@ -7063,6 +7086,8 @@ EventBus.prototype.on = function (events, priority, callback, that) {
|
|
|
7063
7086
|
};
|
|
7064
7087
|
|
|
7065
7088
|
/**
|
|
7089
|
+
* @overlord
|
|
7090
|
+
*
|
|
7066
7091
|
* Register an event listener that is called only once.
|
|
7067
7092
|
*
|
|
7068
7093
|
* @template T
|
|
@@ -7072,6 +7097,16 @@ EventBus.prototype.on = function (events, priority, callback, that) {
|
|
|
7072
7097
|
* @param {EventBusEventCallback<T>} callback
|
|
7073
7098
|
* @param {any} [that] callback context
|
|
7074
7099
|
*/
|
|
7100
|
+
/**
|
|
7101
|
+
* Register an event listener that is called only once.
|
|
7102
|
+
*
|
|
7103
|
+
* @template {keyof EventMap} EventName
|
|
7104
|
+
*
|
|
7105
|
+
* @param {EventName} events to subscribe to
|
|
7106
|
+
* @param {number} [priority=1000] listen priority
|
|
7107
|
+
* @param {EventBusEventCallback<EventMap[EventName]>} callback
|
|
7108
|
+
* @param {any} [that] callback context
|
|
7109
|
+
*/
|
|
7075
7110
|
EventBus.prototype.once = function (events, priority, callback, that) {
|
|
7076
7111
|
var self = this;
|
|
7077
7112
|
if (isFunction(priority)) {
|