Comparing version 0.0.217 to 0.0.218
@@ -5,7 +5,3 @@ export const rguid = 'XM5dz7tqZkeFCtytNXHPzw'; | ||
args; | ||
// /** | ||
// * Event view model | ||
// * @type {{[key: string]: any}} | ||
// */ | ||
// f; | ||
f; | ||
/** | ||
@@ -25,5 +21,6 @@ * @type {Element} | ||
// } | ||
constructor(type, args, target) { | ||
constructor(type, args, f, target) { | ||
super(type); | ||
this.args = args; | ||
this.f = f; | ||
this.target = target; | ||
@@ -40,2 +37,5 @@ } | ||
eq: (e) => e.r = e.args?.length === 0 ? true : e.args.find(x => e.args[0] !== x) === undefined, | ||
'||': (e) => e.r = e.args.reduce((acc, arg) => acc || arg), | ||
'&&': (e) => e.r = e.args.reduce((acc, arg) => acc && arg), | ||
'{}': (e) => e.r = e.f, | ||
}; |
import { EventListenerOrFn } from "./ts-refs/trans-render/be/types"; | ||
import {aggKeys} from './ts-refs/be-hive/types'; | ||
@@ -7,7 +8,3 @@ export const rguid = 'XM5dz7tqZkeFCtytNXHPzw'; | ||
args: Array<any>; | ||
// /** | ||
// * Event view model | ||
// * @type {{[key: string]: any}} | ||
// */ | ||
// f; | ||
f: {[key: string]: any}; | ||
/** | ||
@@ -27,5 +24,6 @@ * @type {Element} | ||
// } | ||
constructor(type: string, args: Array<any>, target: Element){ | ||
constructor(type: string, args: Array<any>, f: {[key: string]: any}, target: Element){ | ||
super(type); | ||
this.args = args; | ||
this.f = f; | ||
this.target = target; | ||
@@ -35,3 +33,3 @@ } | ||
export const aggs: {[key: string]: (e: AggEvent) => void} = { | ||
export const aggs: {[key: aggKeys & string]: (e: AggEvent) => void} = { | ||
'+': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc + arg), | ||
@@ -44,3 +42,6 @@ '*': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc * arg), | ||
eq: (e: AggEvent) => e.r = e.args?.length === 0 ? true : e.args.find(x => e.args[0] !== x) === undefined, | ||
'||': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc || arg), | ||
'&&': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc && arg), | ||
'{}': (e: AggEvent) => e.r = e.f, | ||
}; | ||
{ | ||
"name": "be-hive", | ||
"version": "0.0.217", | ||
"version": "0.0.218", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "web-components", |
@@ -21,5 +21,5 @@ import {EMC, EventListenerOrFn} from './ts-refs/trans-render/be/types'; | ||
} | ||
scopedCustomHandlers.get(handlerName).push([q, handler]); | ||
scopedCustomHandlers!.get(handlerName)!.push([q, handler]); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31801
572