@cydran/cydran 0.5.0 → 0.5.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/cydran.d.ts +32 -31
- package/dist/cydran.js +231 -142
- package/dist/cydran.js.map +4 -4
- package/dist/cydran.min.js +22 -22
- package/dist/cydran.min.js.map +4 -4
- package/package.json +4 -4
- package/validate_log.txt +0 -4534
package/dist/cydran.d.ts
CHANGED
|
@@ -275,7 +275,13 @@ export declare function requireValid(value: string, name: string, regex: RegExp)
|
|
|
275
275
|
export declare function setStrictTypeChecksEnabled(value: boolean): void;
|
|
276
276
|
export declare function stateMachineBuilder<M>(startState: string): MachineBuilder<M>;
|
|
277
277
|
export declare function uuidV4(): string;
|
|
278
|
-
export interface ActionContinuation extends Tellable, Messagable
|
|
278
|
+
export interface ActionContinuation extends Tellable, Messagable {
|
|
279
|
+
onExpressionValueChange(expression: string): WatchContinuation;
|
|
280
|
+
/**
|
|
281
|
+
* Evaluates an expression.
|
|
282
|
+
* @param expression Expression to evaluate.
|
|
283
|
+
*/
|
|
284
|
+
evaluate<T>(expression: string): T;
|
|
279
285
|
getParent(): Nestable;
|
|
280
286
|
getEl(): HTMLElement;
|
|
281
287
|
getObject<T>(id: string, ...instanceArguments: unknown[]): T;
|
|
@@ -554,7 +560,7 @@ export interface FilterBuilder {
|
|
|
554
560
|
limited(): LimitOffsetFilter;
|
|
555
561
|
}
|
|
556
562
|
export interface ForChannelContinuation {
|
|
557
|
-
invoke(
|
|
563
|
+
invoke(name: string, before?: () => void, after?: () => void): void;
|
|
558
564
|
}
|
|
559
565
|
export interface FormOperations {
|
|
560
566
|
submit(): void;
|
|
@@ -570,7 +576,7 @@ export interface InternalComponentOptions extends ComponentOptions {
|
|
|
570
576
|
name?: string;
|
|
571
577
|
}
|
|
572
578
|
export interface IntervalContinuation {
|
|
573
|
-
invoke(
|
|
579
|
+
invoke(name: string): void;
|
|
574
580
|
}
|
|
575
581
|
export interface IsLevelType {
|
|
576
582
|
/**
|
|
@@ -712,7 +718,7 @@ export interface MachineState<M> extends Releasable {
|
|
|
712
718
|
export interface Mediator<T> extends Releasable, DigestionCandidate, Tellable {
|
|
713
719
|
get(): T;
|
|
714
720
|
set(value: unknown): void;
|
|
715
|
-
watch(thisObject: CallBackThisObject,
|
|
721
|
+
watch(thisObject: CallBackThisObject, name: string): void;
|
|
716
722
|
}
|
|
717
723
|
export interface Messagable {
|
|
718
724
|
send(messageName: string, payload?: unknown): SendContinuation;
|
|
@@ -783,7 +789,7 @@ export interface Notifyable {
|
|
|
783
789
|
notify(): void;
|
|
784
790
|
}
|
|
785
791
|
export interface OnContinuation {
|
|
786
|
-
invoke(
|
|
792
|
+
invoke(name: string, before?: () => void, after?: () => void): void;
|
|
787
793
|
forChannel(channelName: string): ForChannelContinuation;
|
|
788
794
|
}
|
|
789
795
|
export interface PagedFilter extends Filter {
|
|
@@ -818,16 +824,16 @@ export interface PropFlagVals {
|
|
|
818
824
|
export interface Properties {
|
|
819
825
|
/**
|
|
820
826
|
* Add an observer for all property changes.
|
|
821
|
-
* @param thisObject Object used as this when calling the
|
|
822
|
-
* @param
|
|
827
|
+
* @param thisObject Object that owns and is used as this when calling the named method
|
|
828
|
+
* @param name - name of the method (on thisObject) to be called when any property is changed
|
|
823
829
|
*/
|
|
824
|
-
addObserver(thisObject: CallBackThisObject,
|
|
830
|
+
addObserver(thisObject: CallBackThisObject, name: string): void;
|
|
825
831
|
/**
|
|
826
832
|
* Remove an observer that listened for all property changes.
|
|
827
|
-
* @param thisObject Object
|
|
828
|
-
* @param
|
|
833
|
+
* @param thisObject Object that owns the named method
|
|
834
|
+
* @param name name of the previously-registered method to be removed
|
|
829
835
|
*/
|
|
830
|
-
removeObserver(thisObject: CallBackThisObject,
|
|
836
|
+
removeObserver(thisObject: CallBackThisObject, name: string): void;
|
|
831
837
|
/**
|
|
832
838
|
* Add an observer for a specific property changes, or changes of more general property when the preferred is unavailable.
|
|
833
839
|
* @param thisObject Object used as this when calling the callback
|
|
@@ -835,27 +841,27 @@ export interface Properties {
|
|
|
835
841
|
* @param preferredKey Preferred property key to observe
|
|
836
842
|
* @param prefix Property key prefix for keys which should be included for consideration
|
|
837
843
|
*/
|
|
838
|
-
addFallbackObserver(thisObject: CallBackThisObject,
|
|
844
|
+
addFallbackObserver(thisObject: CallBackThisObject, name: string, preferredKey: string, prefix?: string): void;
|
|
839
845
|
/**
|
|
840
846
|
* Remove an observer for a specific property changes, or changes of more general property when the preferred is unavailable.
|
|
841
|
-
* @param thisObject Object
|
|
842
|
-
* @param
|
|
847
|
+
* @param thisObject Object that owns the named method
|
|
848
|
+
* @param name name of the previously-registered method to be removed
|
|
843
849
|
*/
|
|
844
|
-
removeFallbackObserver(thisObject: CallBackThisObject,
|
|
850
|
+
removeFallbackObserver(thisObject: CallBackThisObject, name: string): void;
|
|
845
851
|
/**
|
|
846
852
|
* Add an observer for specific property.
|
|
847
853
|
* @param key Specific property key
|
|
848
|
-
* @param thisObject Object used as this when calling the
|
|
849
|
-
* @param
|
|
854
|
+
* @param thisObject Object that owns and is used as this when calling the named method
|
|
855
|
+
* @param name name of the method (on thisObject) to be called when the specific property is changed
|
|
850
856
|
*/
|
|
851
|
-
addPropertyObserver(key: string, thisObject: CallBackThisObject,
|
|
857
|
+
addPropertyObserver(key: string, thisObject: CallBackThisObject, name: string): void;
|
|
852
858
|
/**
|
|
853
859
|
* Remove an observer for specific property.
|
|
854
860
|
* @param key Specific property key
|
|
855
|
-
* @param thisObject Object
|
|
856
|
-
* @param
|
|
861
|
+
* @param thisObject Object that owns the named method
|
|
862
|
+
* @param name name of the previously-registered method to remove
|
|
857
863
|
*/
|
|
858
|
-
removePropertyObserver(key: string, thisObject: CallBackThisObject,
|
|
864
|
+
removePropertyObserver(key: string, thisObject: CallBackThisObject, name: string): void;
|
|
859
865
|
snapshot(): MutableProperties;
|
|
860
866
|
/**
|
|
861
867
|
* Get all the keys present in the properties object
|
|
@@ -1017,14 +1023,9 @@ export interface Stage extends Releasable {
|
|
|
1017
1023
|
export interface Tellable {
|
|
1018
1024
|
tell(name: string, payload?: unknown): void;
|
|
1019
1025
|
}
|
|
1020
|
-
export interface
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
* Evaluates an expression.
|
|
1024
|
-
* @param expression Expression to evaluate.
|
|
1025
|
-
*/
|
|
1026
|
-
evaluate<T>(expression: string): T;
|
|
1027
|
-
getWatchScope(): unknown;
|
|
1026
|
+
export interface WatchContinuation {
|
|
1027
|
+
reducedBy<T>(reducerFn: (input: unknown) => T): WatchContinuation;
|
|
1028
|
+
invoke(name: string): void;
|
|
1028
1029
|
}
|
|
1029
1030
|
export type BehaviorAttributeConverters = SimpleMap<(value: string) => unknown>;
|
|
1030
1031
|
export type BiConsumer<T, U> = (value0: T, value1?: U) => void;
|
|
@@ -1036,9 +1037,9 @@ export type MessageCallback = (channelName: string, messageName: string, payload
|
|
|
1036
1037
|
export type Predicate<T> = (value: T) => boolean;
|
|
1037
1038
|
export type PropertyChangeCallback<T> = (value: T) => void;
|
|
1038
1039
|
export type PropertyChangeFallbackCallback<T> = (key: string, value: T) => void;
|
|
1039
|
-
export type PropertyFallBackSubscriber
|
|
1040
|
+
export type PropertyFallBackSubscriber = (thisObject: CallBackThisObject, name: string) => void;
|
|
1040
1041
|
export type PropertyProvider<T> = () => T;
|
|
1041
|
-
export type PropertySubscriber
|
|
1042
|
+
export type PropertySubscriber = (thisObject: CallBackThisObject, name: string) => void;
|
|
1042
1043
|
export type SimpleMap<T> = Record<string, T>;
|
|
1043
1044
|
export type Transmitter = Sendable;
|
|
1044
1045
|
export type Type<T> = new (...args: any[]) => T;
|