@start9labs/start-sdk 0.3.6-beta.5 → 0.3.6-beta.7
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.
|
@@ -3,13 +3,13 @@ import { ExtractInputSpecType, ExtractPartialInputSpecType } from "./input/build
|
|
|
3
3
|
import * as T from "../types";
|
|
4
4
|
export type Run<A extends Record<string, any> | InputSpec<Record<string, any>, any> | InputSpec<Record<string, never>, never>> = (options: {
|
|
5
5
|
effects: T.Effects;
|
|
6
|
-
input: ExtractInputSpecType<A
|
|
6
|
+
input: ExtractInputSpecType<A>;
|
|
7
7
|
}) => Promise<(T.ActionResult & {
|
|
8
8
|
version: "1";
|
|
9
9
|
}) | null | void | undefined>;
|
|
10
10
|
export type GetInput<A extends Record<string, any> | InputSpec<Record<string, any>, any> | InputSpec<Record<string, any>, never>> = (options: {
|
|
11
11
|
effects: T.Effects;
|
|
12
|
-
}) => Promise<null | void | undefined |
|
|
12
|
+
}) => Promise<null | void | undefined | ExtractPartialInputSpecType<A>>;
|
|
13
13
|
export type MaybeFn<T> = T | ((options: {
|
|
14
14
|
effects: T.Effects;
|
|
15
15
|
}) => Promise<T>);
|
|
@@ -20,7 +20,7 @@ export declare class Action<Id extends T.ActionId, Store, InputSpecType extends
|
|
|
20
20
|
private readonly getInputFn;
|
|
21
21
|
private readonly runFn;
|
|
22
22
|
private constructor();
|
|
23
|
-
static withInput<Id extends T.ActionId, Store, InputSpecType extends Record<string, any> | InputSpec<any, Store> | InputSpec<any, never>>(id: Id, metadata: MaybeFn<Omit<T.ActionMetadata, "hasInput">>, inputSpec: InputSpecType, getInput: GetInput<
|
|
23
|
+
static withInput<Id extends T.ActionId, Store, InputSpecType extends Record<string, any> | InputSpec<any, Store> | InputSpec<any, never>>(id: Id, metadata: MaybeFn<Omit<T.ActionMetadata, "hasInput">>, inputSpec: InputSpecType, getInput: GetInput<InputSpecType>, run: Run<InputSpecType>): Action<Id, Store, InputSpecType>;
|
|
24
24
|
static withoutInput<Id extends T.ActionId, Store>(id: Id, metadata: MaybeFn<Omit<T.ActionMetadata, "hasInput">>, run: Run<{}>): Action<Id, Store, {}>;
|
|
25
25
|
exportMetadata(options: {
|
|
26
26
|
effects: T.Effects;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupActions.js","sourceRoot":"","sources":["../../../../base/lib/actions/setupActions.ts"],"names":[],"mappings":";;;AAMA,kCAA8B;
|
|
1
|
+
{"version":3,"file":"setupActions.js","sourceRoot":"","sources":["../../../../base/lib/actions/setupActions.ts"],"names":[],"mappings":";;;AAMA,kCAA8B;AAqB9B,SAAS,WAAW,CAClB,OAAmB,EACnB,OAA+B;IAE/B,IAAI,OAAO,YAAY,QAAQ,EAAE;QAC/B,OAAO,OAAO,CAAC,OAAO,CAAC,CAAA;KACxB;SAAM;QACL,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;KAChC;AACH,CAAC;AACD,SAAS,UAAU,CACjB,OAAmB,EACnB,GAAoB;IAEpB,IAAI,OAAO,YAAY,QAAQ,EAAE;QAC/B,OAAO,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;KACtD;SAAM;QACL,OAAO,GAAG,CAAC,OAAO,CAAC,CAAA;KACpB;AACH,CAAC;AAED,MAAa,MAAM;IAQjB,YACW,EAAM,EACE,UAAqC,EACrC,SAAwB,EACxB,UAAmC,EACnC,KAAyB;QAJjC,OAAE,GAAF,EAAE,CAAI;QACE,eAAU,GAAV,UAAU,CAA2B;QACrC,cAAS,GAAT,SAAS,CAAe;QACxB,eAAU,GAAV,UAAU,CAAyB;QACnC,UAAK,GAAL,KAAK,CAAoB;IACzC,CAAC;IACJ,MAAM,CAAC,SAAS,CAQd,EAAM,EACN,QAAqD,EACrD,SAAwB,EACxB,QAAiC,EACjC,GAAuB;QAEvB,OAAO,IAAI,MAAM,CACf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IAAG,CAAC;IAC5D,MAAM,CAAC,EAAE;QACP,OAAO,IAAI,OAAO,CAAC,EAAE,CAAC,CAAA;IACxB,CAAC;IACD,SAAS,CACP,MAAS;QAET,OAAO,IAAI,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAC9D,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA+B;QAC1C,OAAO,CAAC,OAAO,GAAG;YAChB,GAAG,OAAO,CAAC,OAAO;YAClB,UAAU,EAAE,IAAA,WAAI,EAAC,GAAG,EAAE;gBACpB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA,CAAC,qIAAqI;YAC5J,CAAC,CAAC;SACH,CAAA;QACD,KAAK,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;YAC9C,MAAM,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;SACrC;QACD,MAAM,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAEzE,OAAO,IAAI,CAAA;IACb,CAAC;IACD,GAAG,CAAwB,QAAY;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC/B,CAAC;CACF;AA9BD,0BA8BC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Value } from "../../base/lib/actions/input/builder/value";
|
|
3
|
-
import { InputSpec,
|
|
4
|
-
import { DefaultString,
|
|
3
|
+
import { InputSpec, LazyBuild } from "../../base/lib/actions/input/builder/inputSpec";
|
|
4
|
+
import { DefaultString, Pattern, RandomString, UniqueBy } from "../../base/lib/actions/input/inputSpecTypes";
|
|
5
5
|
import { Variants } from "../../base/lib/actions/input/builder/variants";
|
|
6
6
|
import { Action, Actions } from "../../base/lib/actions/setupActions";
|
|
7
7
|
import { SyncOptions, ServiceInterfaceId, PackageId, HealthReceipt, ServiceInterfaceType, Effects } from "../../base/lib/types";
|
|
@@ -145,7 +145,7 @@ export declare class StartSdk<Manifest extends T.SDKManifest, Store> {
|
|
|
145
145
|
)
|
|
146
146
|
* ```
|
|
147
147
|
*/
|
|
148
|
-
withInput: <Id extends string, InputSpecType extends Record<string, any> | InputSpec<any, never> | InputSpec<any, any
|
|
148
|
+
withInput: <Id extends string, InputSpecType extends Record<string, any> | InputSpec<any, never> | InputSpec<any, any>>(id: Id, metadata: MaybeFn<Omit<T.ActionMetadata, "hasInput">>, inputSpec: InputSpecType, getInput: GetInput<InputSpecType>, run: Run<InputSpecType>) => Action<Id, unknown, InputSpecType>;
|
|
149
149
|
/**
|
|
150
150
|
* @description Use this function to create an action that does not accept form input
|
|
151
151
|
* @param id - a unique ID for this action
|
|
@@ -549,78 +549,18 @@ export declare class StartSdk<Manifest extends T.SDKManifest, Store> {
|
|
|
549
549
|
* @param a - attributes of the list itself.
|
|
550
550
|
* @param aSpec - attributes describing each member of the list.
|
|
551
551
|
*/
|
|
552
|
-
obj: <
|
|
552
|
+
obj: <Type extends Record<string, any>>(a: {
|
|
553
553
|
name: string;
|
|
554
|
-
description?: string | null;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
maxLength?: number | null;
|
|
554
|
+
description?: string | null | undefined;
|
|
555
|
+
warning?: string | null | undefined;
|
|
556
|
+
default?: [] | undefined;
|
|
557
|
+
minLength?: number | null | undefined;
|
|
558
|
+
maxLength?: number | null | undefined;
|
|
560
559
|
}, aSpec: {
|
|
561
|
-
spec: InputSpec<
|
|
562
|
-
/**
|
|
563
|
-
* @description The ID of a required field on the inner object whose value will be used to display items in the list.
|
|
564
|
-
* @example
|
|
565
|
-
* In this example, we use the value of the `label` field to display members of the list.
|
|
566
|
-
*
|
|
567
|
-
* ```
|
|
568
|
-
spec: InputSpec.of({
|
|
569
|
-
label: Value.text({
|
|
570
|
-
name: 'Label',
|
|
571
|
-
required: false,
|
|
572
|
-
default: null,
|
|
573
|
-
})
|
|
574
|
-
})
|
|
575
|
-
displayAs: 'label',
|
|
576
|
-
uniqueBy: null,
|
|
577
|
-
* ```
|
|
578
|
-
*
|
|
579
|
-
*/
|
|
560
|
+
spec: InputSpec<Type, Store>;
|
|
580
561
|
displayAs?: string | null | undefined;
|
|
581
|
-
/**
|
|
582
|
-
* @description The ID(s) of required fields on the inner object whose value(s) will be used to enforce uniqueness in the list.
|
|
583
|
-
* @example
|
|
584
|
-
* In this example, we use the `label` field to enforce uniqueness, meaning the label field must be unique from other entries.
|
|
585
|
-
*
|
|
586
|
-
* ```
|
|
587
|
-
spec: InputSpec.of({
|
|
588
|
-
label: Value.text({
|
|
589
|
-
name: 'Label',
|
|
590
|
-
required: true,
|
|
591
|
-
default: null,
|
|
592
|
-
})
|
|
593
|
-
pubkey: Value.text({
|
|
594
|
-
name: 'Pubkey',
|
|
595
|
-
required: true,
|
|
596
|
-
default: null,
|
|
597
|
-
})
|
|
598
|
-
})
|
|
599
|
-
displayAs: 'label',
|
|
600
|
-
uniqueBy: 'label',
|
|
601
|
-
* ```
|
|
602
|
-
* @example
|
|
603
|
-
* In this example, we use the `label` field AND the `pubkey` field to enforce uniqueness, meaning both these fields must be unique from other entries.
|
|
604
|
-
*
|
|
605
|
-
* ```
|
|
606
|
-
spec: InputSpec.of({
|
|
607
|
-
label: Value.text({
|
|
608
|
-
name: 'Label',
|
|
609
|
-
required: true,
|
|
610
|
-
default: null,
|
|
611
|
-
})
|
|
612
|
-
pubkey: Value.text({
|
|
613
|
-
name: 'Pubkey',
|
|
614
|
-
required: true,
|
|
615
|
-
default: null,
|
|
616
|
-
})
|
|
617
|
-
})
|
|
618
|
-
displayAs: 'label',
|
|
619
|
-
uniqueBy: { all: ['label', 'pubkey'] },
|
|
620
|
-
* ```
|
|
621
|
-
*/
|
|
622
562
|
uniqueBy?: UniqueBy | undefined;
|
|
623
|
-
}) => List<
|
|
563
|
+
}) => List<Type[], Store>;
|
|
624
564
|
/**
|
|
625
565
|
* @description Create a list of dynamic text inputs.
|
|
626
566
|
* @param a - attributes of the list itself.
|
|
@@ -628,20 +568,20 @@ export declare class StartSdk<Manifest extends T.SDKManifest, Store> {
|
|
|
628
568
|
*/
|
|
629
569
|
dynamicText: (getA: LazyBuild<Store, {
|
|
630
570
|
name: string;
|
|
631
|
-
description?: string | null;
|
|
632
|
-
warning?: string | null;
|
|
633
|
-
default?: string[];
|
|
634
|
-
minLength?: number | null;
|
|
635
|
-
maxLength?: number | null;
|
|
636
|
-
disabled?: false |
|
|
637
|
-
generate?: null |
|
|
571
|
+
description?: string | null | undefined;
|
|
572
|
+
warning?: string | null | undefined;
|
|
573
|
+
default?: string[] | undefined;
|
|
574
|
+
minLength?: number | null | undefined;
|
|
575
|
+
maxLength?: number | null | undefined;
|
|
576
|
+
disabled?: string | false | undefined;
|
|
577
|
+
generate?: RandomString | null | undefined;
|
|
638
578
|
spec: {
|
|
639
|
-
masked?: boolean;
|
|
640
|
-
placeholder?: string | null;
|
|
641
|
-
minLength?: number | null;
|
|
642
|
-
maxLength?: number | null;
|
|
643
|
-
patterns
|
|
644
|
-
inputmode?:
|
|
579
|
+
masked?: boolean | undefined;
|
|
580
|
+
placeholder?: string | null | undefined;
|
|
581
|
+
minLength?: number | null | undefined;
|
|
582
|
+
maxLength?: number | null | undefined;
|
|
583
|
+
patterns?: Pattern[] | undefined;
|
|
584
|
+
inputmode?: "text" | "email" | "tel" | "url" | undefined;
|
|
645
585
|
};
|
|
646
586
|
}>) => List<string[], Store>;
|
|
647
587
|
};
|
|
@@ -934,208 +874,94 @@ export declare class StartSdk<Manifest extends T.SDKManifest, Store> {
|
|
|
934
874
|
hidden: typeof Value.hidden;
|
|
935
875
|
dynamicToggle: (a: LazyBuild<Store, {
|
|
936
876
|
name: string;
|
|
937
|
-
description?: string | null;
|
|
938
|
-
|
|
939
|
-
warning?: string | null;
|
|
877
|
+
description?: string | null | undefined;
|
|
878
|
+
warning?: string | null | undefined;
|
|
940
879
|
default: boolean;
|
|
941
|
-
disabled?: false |
|
|
880
|
+
disabled?: string | false | undefined;
|
|
942
881
|
}>) => Value<boolean, Store>;
|
|
943
882
|
dynamicText: (getA: LazyBuild<Store, {
|
|
944
883
|
name: string;
|
|
945
|
-
description?: string | null;
|
|
946
|
-
|
|
947
|
-
warning?: string | null;
|
|
948
|
-
/**
|
|
949
|
-
* @description optionally provide a default value.
|
|
950
|
-
* @type { string | RandomString | null }
|
|
951
|
-
* @example default: null
|
|
952
|
-
* @example default: 'World'
|
|
953
|
-
* @example default: { charset: 'abcdefg', len: 16 }
|
|
954
|
-
*/
|
|
884
|
+
description?: string | null | undefined;
|
|
885
|
+
warning?: string | null | undefined;
|
|
955
886
|
default: DefaultString | null;
|
|
956
887
|
required: boolean;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* @description A list of regular expressions to which the text must conform to pass validation. A human readable description is provided in case the validation fails.
|
|
967
|
-
* @default []
|
|
968
|
-
* @example
|
|
969
|
-
* ```
|
|
970
|
-
[
|
|
971
|
-
{
|
|
972
|
-
regex: "[a-z]",
|
|
973
|
-
description: "May only contain lower case letters from the English alphabet."
|
|
974
|
-
}
|
|
975
|
-
]
|
|
976
|
-
* ```
|
|
977
|
-
*/
|
|
978
|
-
patterns?: Pattern[];
|
|
979
|
-
/**
|
|
980
|
-
* @description Informs the browser how to behave and which keyboard to display on mobile
|
|
981
|
-
* @default "text"
|
|
982
|
-
*/
|
|
983
|
-
inputmode?: ValueSpecText["inputmode"];
|
|
984
|
-
/**
|
|
985
|
-
* @description Displays a button that will generate a random string according to the provided charset and len attributes.
|
|
986
|
-
*/
|
|
987
|
-
generate?: null | RandomString;
|
|
888
|
+
masked?: boolean | undefined;
|
|
889
|
+
placeholder?: string | null | undefined;
|
|
890
|
+
minLength?: number | null | undefined;
|
|
891
|
+
maxLength?: number | null | undefined;
|
|
892
|
+
patterns?: Pattern[] | undefined;
|
|
893
|
+
inputmode?: "text" | "email" | "tel" | "url" | undefined;
|
|
894
|
+
disabled?: string | false | undefined;
|
|
895
|
+
generate?: RandomString | null | undefined;
|
|
988
896
|
}>) => Value<string | null, Store>;
|
|
989
897
|
dynamicTextarea: (getA: LazyBuild<Store, {
|
|
990
898
|
name: string;
|
|
991
|
-
description?: string | null;
|
|
992
|
-
|
|
993
|
-
warning?: string | null;
|
|
899
|
+
description?: string | null | undefined;
|
|
900
|
+
warning?: string | null | undefined;
|
|
994
901
|
default: string | null;
|
|
995
902
|
required: boolean;
|
|
996
|
-
minLength?: number | null;
|
|
997
|
-
maxLength?: number | null;
|
|
998
|
-
placeholder?: string | null;
|
|
999
|
-
disabled?: false |
|
|
903
|
+
minLength?: number | null | undefined;
|
|
904
|
+
maxLength?: number | null | undefined;
|
|
905
|
+
placeholder?: string | null | undefined;
|
|
906
|
+
disabled?: string | false | undefined;
|
|
1000
907
|
}>) => Value<string | null, Store>;
|
|
1001
908
|
dynamicNumber: (getA: LazyBuild<Store, {
|
|
1002
909
|
name: string;
|
|
1003
|
-
description?: string | null;
|
|
1004
|
-
|
|
1005
|
-
warning?: string | null;
|
|
1006
|
-
/**
|
|
1007
|
-
* @description optionally provide a default value.
|
|
1008
|
-
* @type { number | null }
|
|
1009
|
-
* @example default: null
|
|
1010
|
-
* @example default: 7
|
|
1011
|
-
*/
|
|
910
|
+
description?: string | null | undefined;
|
|
911
|
+
warning?: string | null | undefined;
|
|
1012
912
|
default: number | null;
|
|
1013
913
|
required: boolean;
|
|
1014
|
-
min?: number | null;
|
|
1015
|
-
max?: number | null;
|
|
1016
|
-
|
|
1017
|
-
* @description How much does the number increase/decrease when using the arrows provided by the browser.
|
|
1018
|
-
* @default 1
|
|
1019
|
-
*/
|
|
1020
|
-
step?: number | null;
|
|
1021
|
-
/**
|
|
1022
|
-
* @description Requires the number to be an integer.
|
|
1023
|
-
*/
|
|
914
|
+
min?: number | null | undefined;
|
|
915
|
+
max?: number | null | undefined;
|
|
916
|
+
step?: number | null | undefined;
|
|
1024
917
|
integer: boolean;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
units?: string | null;
|
|
1029
|
-
placeholder?: string | null;
|
|
1030
|
-
disabled?: false | string;
|
|
918
|
+
units?: string | null | undefined;
|
|
919
|
+
placeholder?: string | null | undefined;
|
|
920
|
+
disabled?: string | false | undefined;
|
|
1031
921
|
}>) => Value<number | null, Store>;
|
|
1032
922
|
dynamicColor: (getA: LazyBuild<Store, {
|
|
1033
923
|
name: string;
|
|
1034
|
-
description?: string | null;
|
|
1035
|
-
|
|
1036
|
-
warning?: string | null;
|
|
1037
|
-
/**
|
|
1038
|
-
* @description optionally provide a default value.
|
|
1039
|
-
* @type { string | null }
|
|
1040
|
-
* @example default: null
|
|
1041
|
-
* @example default: 'ffffff'
|
|
1042
|
-
*/
|
|
924
|
+
description?: string | null | undefined;
|
|
925
|
+
warning?: string | null | undefined;
|
|
1043
926
|
default: string | null;
|
|
1044
927
|
required: boolean;
|
|
1045
|
-
disabled?: false |
|
|
928
|
+
disabled?: string | false | undefined;
|
|
1046
929
|
}>) => Value<string | null, Store>;
|
|
1047
930
|
dynamicDatetime: (getA: LazyBuild<Store, {
|
|
1048
931
|
name: string;
|
|
1049
|
-
description?: string | null;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
/**
|
|
1053
|
-
* @description optionally provide a default value.
|
|
1054
|
-
* @type { string | null }
|
|
1055
|
-
* @example default: null
|
|
1056
|
-
* @example default: '1985-12-16 18:00:00.000'
|
|
1057
|
-
*/
|
|
1058
|
-
default: string;
|
|
932
|
+
description?: string | null | undefined;
|
|
933
|
+
warning?: string | null | undefined;
|
|
934
|
+
default: string | null;
|
|
1059
935
|
required: boolean;
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
inputmode?: ValueSpecDatetime["inputmode"];
|
|
1065
|
-
min?: string | null;
|
|
1066
|
-
max?: string | null;
|
|
1067
|
-
disabled?: false | string;
|
|
936
|
+
inputmode?: "date" | "time" | "datetime-local" | undefined;
|
|
937
|
+
min?: string | null | undefined;
|
|
938
|
+
max?: string | null | undefined;
|
|
939
|
+
disabled?: string | false | undefined;
|
|
1068
940
|
}>) => Value<string | null, Store>;
|
|
1069
|
-
dynamicSelect:
|
|
941
|
+
dynamicSelect: (getA: LazyBuild<Store, {
|
|
1070
942
|
name: string;
|
|
1071
943
|
description?: string | null | undefined;
|
|
1072
|
-
/** Presents a warning prompt before permitting the value to change. */
|
|
1073
944
|
warning?: string | null | undefined;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
* @type { default: string }
|
|
1077
|
-
* @example default: 'radio1'
|
|
1078
|
-
*/
|
|
1079
|
-
default: keyof Variants_1 & string;
|
|
1080
|
-
/**
|
|
1081
|
-
* @description A mapping of unique radio options to their human readable display format.
|
|
1082
|
-
* @example
|
|
1083
|
-
* ```
|
|
1084
|
-
{
|
|
1085
|
-
radio1: "Radio 1"
|
|
1086
|
-
radio2: "Radio 2"
|
|
1087
|
-
radio3: "Radio 3"
|
|
1088
|
-
}
|
|
1089
|
-
* ```
|
|
1090
|
-
*/
|
|
1091
|
-
values: Variants_1;
|
|
1092
|
-
/**
|
|
1093
|
-
* @options
|
|
1094
|
-
* - false - The field can be modified.
|
|
1095
|
-
* - string - The field cannot be modified. The provided text explains why.
|
|
1096
|
-
* - string[] - The field can be modified, but the values contained in the array cannot be selected.
|
|
1097
|
-
* @default false
|
|
1098
|
-
*/
|
|
945
|
+
default: string;
|
|
946
|
+
values: Record<string, string>;
|
|
1099
947
|
disabled?: string | false | string[] | undefined;
|
|
1100
948
|
}>) => Value<string, Store>;
|
|
1101
949
|
dynamicMultiselect: (getA: LazyBuild<Store, {
|
|
1102
950
|
name: string;
|
|
1103
|
-
description?: string | null;
|
|
1104
|
-
|
|
1105
|
-
warning?: string | null;
|
|
1106
|
-
/**
|
|
1107
|
-
* @description A simple list of which options should be checked by default.
|
|
1108
|
-
*/
|
|
951
|
+
description?: string | null | undefined;
|
|
952
|
+
warning?: string | null | undefined;
|
|
1109
953
|
default: string[];
|
|
1110
|
-
/**
|
|
1111
|
-
* @description A mapping of checkbox options to their human readable display format.
|
|
1112
|
-
* @example
|
|
1113
|
-
* ```
|
|
1114
|
-
{
|
|
1115
|
-
option1: "Option 1"
|
|
1116
|
-
option2: "Option 2"
|
|
1117
|
-
option3: "Option 3"
|
|
1118
|
-
}
|
|
1119
|
-
* ```
|
|
1120
|
-
*/
|
|
1121
954
|
values: Record<string, string>;
|
|
1122
|
-
minLength?: number | null;
|
|
1123
|
-
maxLength?: number | null;
|
|
1124
|
-
|
|
1125
|
-
* @options
|
|
1126
|
-
* - false - The field can be modified.
|
|
1127
|
-
* - string - The field cannot be modified. The provided text explains why.
|
|
1128
|
-
* - string[] - The field can be modified, but the values contained in the array cannot be selected.
|
|
1129
|
-
* @default false
|
|
1130
|
-
*/
|
|
1131
|
-
disabled?: false | string | string[];
|
|
955
|
+
minLength?: number | null | undefined;
|
|
956
|
+
maxLength?: number | null | undefined;
|
|
957
|
+
disabled?: string | false | string[] | undefined;
|
|
1132
958
|
}>) => Value<string[], Store>;
|
|
1133
959
|
filteredUnion: <VariantValues extends {
|
|
1134
960
|
[x: string]: {
|
|
1135
961
|
name: string;
|
|
1136
962
|
spec: InputSpec<any, Store> | InputSpec<any, never>;
|
|
1137
963
|
};
|
|
1138
|
-
}>(getDisabledFn: LazyBuild<Store, string[]>, a: {
|
|
964
|
+
}>(getDisabledFn: LazyBuild<Store, string | false | string[]>, a: {
|
|
1139
965
|
name: string;
|
|
1140
966
|
description?: string | null | undefined;
|
|
1141
967
|
warning?: string | null | undefined;
|
|
@@ -1149,23 +975,9 @@ export declare class StartSdk<Manifest extends T.SDKManifest, Store> {
|
|
|
1149
975
|
}>(getA: LazyBuild<Store, {
|
|
1150
976
|
name: string;
|
|
1151
977
|
description?: string | null | undefined;
|
|
1152
|
-
/** Presents a warning prompt before permitting the value to change. */
|
|
1153
978
|
warning?: string | null | undefined;
|
|
1154
|
-
/**
|
|
1155
|
-
* @description provide a default value from the list of variants.
|
|
1156
|
-
* @type { string }
|
|
1157
|
-
* @example default: 'variant1'
|
|
1158
|
-
*/
|
|
1159
979
|
default: keyof VariantValues_1 & string;
|
|
1160
|
-
|
|
1161
|
-
/**
|
|
1162
|
-
* @options
|
|
1163
|
-
* - false - The field can be modified.
|
|
1164
|
-
* - string - The field cannot be modified. The provided text explains why.
|
|
1165
|
-
* - string[] - The field can be modified, but the values contained in the array cannot be selected.
|
|
1166
|
-
* @default false
|
|
1167
|
-
*/
|
|
1168
|
-
disabled: false | string | string[];
|
|
980
|
+
disabled: string | false | string[];
|
|
1169
981
|
}>, aVariants: Variants<VariantValues_1, Store> | Variants<VariantValues_1, never>) => Value<import("../../base/lib/actions/input/builder/variants").UnionRes<Store, VariantValues_1, keyof VariantValues_1 & string> | import("../../base/lib/actions/input/builder/variants").UnionRes<never, VariantValues_1, keyof VariantValues_1 & string>, Store>;
|
|
1170
982
|
};
|
|
1171
983
|
Variants: {
|
package/package/lib/StartSdk.js
CHANGED
|
@@ -538,7 +538,7 @@ class StartSdk {
|
|
|
538
538
|
* @param a - attributes of the list itself.
|
|
539
539
|
* @param aSpec - attributes describing each member of the list.
|
|
540
540
|
*/
|
|
541
|
-
dynamicText: (
|
|
541
|
+
dynamicText: (list_1.List.dynamicText),
|
|
542
542
|
},
|
|
543
543
|
StorePath: (0, PathBuilder_1.pathBuilder)(),
|
|
544
544
|
Value: {
|
|
@@ -827,14 +827,14 @@ class StartSdk {
|
|
|
827
827
|
*/
|
|
828
828
|
list: value_1.Value.list,
|
|
829
829
|
hidden: value_1.Value.hidden,
|
|
830
|
-
dynamicToggle: (
|
|
831
|
-
dynamicText: (
|
|
832
|
-
dynamicTextarea: (
|
|
833
|
-
dynamicNumber: (
|
|
834
|
-
dynamicColor: (
|
|
835
|
-
dynamicDatetime: (
|
|
836
|
-
dynamicSelect: (
|
|
837
|
-
dynamicMultiselect: (
|
|
830
|
+
dynamicToggle: (value_1.Value.dynamicToggle),
|
|
831
|
+
dynamicText: (value_1.Value.dynamicText),
|
|
832
|
+
dynamicTextarea: (value_1.Value.dynamicTextarea),
|
|
833
|
+
dynamicNumber: (value_1.Value.dynamicNumber),
|
|
834
|
+
dynamicColor: (value_1.Value.dynamicColor),
|
|
835
|
+
dynamicDatetime: (value_1.Value.dynamicDatetime),
|
|
836
|
+
dynamicSelect: (value_1.Value.dynamicSelect),
|
|
837
|
+
dynamicMultiselect: (value_1.Value.dynamicMultiselect),
|
|
838
838
|
filteredUnion: (getDisabledFn, a, aVariants) => value_1.Value.filteredUnion(getDisabledFn, a, aVariants),
|
|
839
839
|
dynamicUnion: (getA, aVariants) => value_1.Value.dynamicUnion(getA, aVariants),
|
|
840
840
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StartSdk.js","sourceRoot":"","sources":["../../../package/lib/StartSdk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAkE;AAClE,8EAIuD;AAUvD,4EAAwE;AACxE,sEAAqE;AASrE,uEAAwD;AACxD,8CAAsD;AACtD,wFAA+E;AAC/E,8CAA0C;AAC1C,sDAAqE;AACrE,6EAAyE;AACzE,gDAAgE;AAChE,oEAAgE;AAChE,uDAAyD;AACzD,wDAAwE;AACxE,2DAAoE;AACpE,qCAAoC;AACpC,6DAAyD;AACzD,uCAAiE;AACjE,+EAGkD;AAClD,6DAAyD;AACzD,yDAAkE;AAClE,+FAA2F;AAC3F,iCAAsC;AACtC,iCAAoC;AACpC,iCAAkE;AAClE,+CAA2C;AAC3C,sDAAgF;AAChF,iCAAqC;AACrC,4CAAwC;AACxC,qFAA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MAAM,EAAE,CACN,OAAU,EACV,IAAU,EACV,KAAmE,EACnE,EAAE,CACF,OAAO,CAAC,KAAK,CAAC,GAAG,CAAQ;oBACvB,KAAK;oBACL,IAAI,EAAE,IAAA,6BAAe,EAAC,IAAI,CAAC;iBAC5B,CAAC;aACL;YAED,SAAS,EAAE;gBACT,EAAE,EAAE,CAAC,OAAgB,EAAE,EAAU,EAAE,EAAE,CAAC,IAAI,gBAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aACrE;YACD,WAAW,EAAX,kBAAW;YACX,UAAU,EAAE,KAAK,EACf,OAAgB,EAChB,KAGC,EACD,OAAsB,EACtB,OAEC,EACD,IAAY,EACmD,EAAE;gBACjE,OAAO,UAAU,CAAW,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;YACrE,CAAC;YACD;;;eAGG;YACH,MAAM,EAAE;gBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwDE;gBACF,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"StartSdk.js","sourceRoot":"","sources":["../../../package/lib/StartSdk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAkE;AAClE,8EAIuD;AAUvD,4EAAwE;AACxE,sEAAqE;AASrE,uEAAwD;AACxD,8CAAsD;AACtD,wFAA+E;AAC/E,8CAA0C;AAC1C,sDAAqE;AACrE,6EAAyE;AACzE,gDAAgE;AAChE,oEAAgE;AAChE,uDAAyD;AACzD,wDAAwE;AACxE,2DAAoE;AACpE,qCAAoC;AACpC,6DAAyD;AACzD,uCAAiE;AACjE,+EAGkD;AAClD,6DAAyD;AACzD,yDAAkE;AAClE,+FAA2F;AAC3F,iCAAsC;AACtC,iCAAoC;AACpC,iCAAkE;AAClE,+CAA2C;AAC3C,sDAAgF;AAChF,iCAAqC;AACrC,4CAAwC;AACxC,qFAAiF;AAEjF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AAC,aAAoB,CAAA;gBACzC,YAAY,EAAE,CAAA,aAAK,CAAC,YAAmB,CAAA;gBACvC,eAAe,EAAE,CAAA,aAAK,CAAC,eAAsB,CAAA;gBAC7C,aAAa,EAAE,CAAA,aAAK,CAAC,aAAoB,CAAA;gBACzC,kBAAkB,EAAE,CAAA,aAAK,CAAC,kBAAyB,CAAA;gBACnD,aAAa,EAAE,CAQb,aAEI,EACJ,CAAkE,EAClE,SAEI,EACJ,EAAE,CACF,aAAK,CAAC,aAAa,CACjB,aAAa,EACb,CAAC,EACD,SAAS,CACV;gBAEH,YAAY,EAAE,CAQZ,IAAoE,EACpE,SAEI,EACJ,EAAE,CAAC,aAAK,CAAC,YAAY,CAAuB,IAAI,EAAE,SAAS,CAAC;aAC/D;YACD,QAAQ,EAAE;gBACR,EAAE,EAAE,CAQF,CAAgB,EAChB,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAuB,CAAC,CAAC;aAC1C;SACF,CAAA;IACH,CAAC;CACF;AA98BD,4BA88BC;AAEM,KAAK,UAAU,UAAU,CAC9B,OAAgB,EAChB,KAA6E,EAC7E,OAAuC,EACvC,OAEC,EACD,IAAY;IAEZ,MAAM,QAAQ,GAAG,IAAA,mBAAY,EAAC,OAAO,CAAC,CAAA;IACtC,OAAO,2BAAY,CAAC,IAAI,CACtB,OAAO,EACP,KAAK,EACL,OAAO,CAAC,MAAM,IAAI,EAAE,EACpB,IAAI,EACJ,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAC9C,CAAA;AACH,CAAC;AAjBD,gCAiBC"}
|
|
@@ -75,7 +75,7 @@ export declare const sdk: {
|
|
|
75
75
|
stderr: string | Buffer;
|
|
76
76
|
}>;
|
|
77
77
|
Action: {
|
|
78
|
-
withInput: <Id extends string, InputSpecType extends Record<string, any> | import("../../../base/lib/actions/input/builder").InputSpec<any, never> | import("../../../base/lib/actions/input/builder").InputSpec<any, any
|
|
78
|
+
withInput: <Id extends string, InputSpecType extends Record<string, any> | import("../../../base/lib/actions/input/builder").InputSpec<any, never> | import("../../../base/lib/actions/input/builder").InputSpec<any, any>>(id: Id, metadata: import("../../../base/lib/actions/setupActions").MaybeFn<Omit<import("../../../base/lib/osBindings").ActionMetadata, "hasInput">>, inputSpec: InputSpecType, getInput: import("../../../base/lib/actions/setupActions").GetInput<InputSpecType>, run: import("../../../base/lib/actions/setupActions").Run<InputSpecType>) => import("../../../base/lib/actions/setupActions").Action<Id, unknown, InputSpecType>;
|
|
79
79
|
withoutInput: <Id_1 extends string>(id: Id_1, metadata: import("../../../base/lib/actions/setupActions").MaybeFn<Omit<import("../../../base/lib/osBindings").ActionMetadata, "hasInput">>, run: import("../../../base/lib/actions/setupActions").Run<{}>) => import("../../../base/lib/actions/setupActions").Action<Id_1, unknown, {}>;
|
|
80
80
|
};
|
|
81
81
|
inputSpecConstants: {
|
|
@@ -811,7 +811,7 @@ export declare const sdk: {
|
|
|
811
811
|
};
|
|
812
812
|
List: {
|
|
813
813
|
text: typeof import("../../../base/lib/actions/input/builder").List.text;
|
|
814
|
-
obj: <
|
|
814
|
+
obj: <Type extends Record<string, any>>(a: {
|
|
815
815
|
name: string;
|
|
816
816
|
description?: string | null | undefined;
|
|
817
817
|
warning?: string | null | undefined;
|
|
@@ -819,14 +819,14 @@ export declare const sdk: {
|
|
|
819
819
|
minLength?: number | null | undefined;
|
|
820
820
|
maxLength?: number | null | undefined;
|
|
821
821
|
}, aSpec: {
|
|
822
|
-
spec: import("../../../base/lib/actions/input/builder").InputSpec<
|
|
822
|
+
spec: import("../../../base/lib/actions/input/builder").InputSpec<Type, {
|
|
823
823
|
storeRoot: {
|
|
824
824
|
storeLeaf: "value";
|
|
825
825
|
};
|
|
826
826
|
}>;
|
|
827
827
|
displayAs?: string | null | undefined;
|
|
828
828
|
uniqueBy?: import("../../../base/lib/actions/input/inputSpecTypes").UniqueBy | undefined;
|
|
829
|
-
}) => import("../../../base/lib/actions/input/builder").List<
|
|
829
|
+
}) => import("../../../base/lib/actions/input/builder").List<Type[], {
|
|
830
830
|
storeRoot: {
|
|
831
831
|
storeLeaf: "value";
|
|
832
832
|
};
|
|
@@ -849,7 +849,7 @@ export declare const sdk: {
|
|
|
849
849
|
placeholder?: string | null | undefined;
|
|
850
850
|
minLength?: number | null | undefined;
|
|
851
851
|
maxLength?: number | null | undefined;
|
|
852
|
-
patterns
|
|
852
|
+
patterns?: import("../../../base/lib/actions/input/inputSpecTypes").Pattern[] | undefined;
|
|
853
853
|
inputmode?: "text" | "email" | "tel" | "url" | undefined;
|
|
854
854
|
};
|
|
855
855
|
}>) => import("../../../base/lib/actions/input/builder").List<string[], {
|
|
@@ -911,6 +911,7 @@ export declare const sdk: {
|
|
|
911
911
|
maxLength?: number | null | undefined;
|
|
912
912
|
patterns?: import("../../../base/lib/actions/input/inputSpecTypes").Pattern[] | undefined;
|
|
913
913
|
inputmode?: "text" | "email" | "tel" | "url" | undefined;
|
|
914
|
+
disabled?: string | false | undefined;
|
|
914
915
|
generate?: import("../../../base/lib/actions/input/inputSpecTypes").RandomString | null | undefined;
|
|
915
916
|
}>) => import("../../../base/lib/actions/input/builder").Value<string | null, {
|
|
916
917
|
storeRoot: {
|
|
@@ -982,7 +983,7 @@ export declare const sdk: {
|
|
|
982
983
|
name: string;
|
|
983
984
|
description?: string | null | undefined;
|
|
984
985
|
warning?: string | null | undefined;
|
|
985
|
-
default: string;
|
|
986
|
+
default: string | null;
|
|
986
987
|
required: boolean;
|
|
987
988
|
inputmode?: "date" | "time" | "datetime-local" | undefined;
|
|
988
989
|
min?: string | null | undefined;
|
|
@@ -993,7 +994,7 @@ export declare const sdk: {
|
|
|
993
994
|
storeLeaf: "value";
|
|
994
995
|
};
|
|
995
996
|
}>;
|
|
996
|
-
dynamicSelect:
|
|
997
|
+
dynamicSelect: (getA: import("../../../base/lib/actions/input/builder/inputSpec").LazyBuild<{
|
|
997
998
|
storeRoot: {
|
|
998
999
|
storeLeaf: "value";
|
|
999
1000
|
};
|
|
@@ -1001,8 +1002,8 @@ export declare const sdk: {
|
|
|
1001
1002
|
name: string;
|
|
1002
1003
|
description?: string | null | undefined;
|
|
1003
1004
|
warning?: string | null | undefined;
|
|
1004
|
-
default:
|
|
1005
|
-
values:
|
|
1005
|
+
default: string;
|
|
1006
|
+
values: Record<string, string>;
|
|
1006
1007
|
disabled?: string | false | string[] | undefined;
|
|
1007
1008
|
}>) => import("../../../base/lib/actions/input/builder").Value<string, {
|
|
1008
1009
|
storeRoot: {
|
|
@@ -1040,7 +1041,7 @@ export declare const sdk: {
|
|
|
1040
1041
|
storeRoot: {
|
|
1041
1042
|
storeLeaf: "value";
|
|
1042
1043
|
};
|
|
1043
|
-
}, string[]>, a: {
|
|
1044
|
+
}, string | false | string[]>, a: {
|
|
1044
1045
|
name: string;
|
|
1045
1046
|
description?: string | null | undefined;
|
|
1046
1047
|
warning?: string | null | undefined;
|
|
@@ -1076,7 +1077,6 @@ export declare const sdk: {
|
|
|
1076
1077
|
description?: string | null | undefined;
|
|
1077
1078
|
warning?: string | null | undefined;
|
|
1078
1079
|
default: keyof VariantValues_1 & string;
|
|
1079
|
-
required: boolean;
|
|
1080
1080
|
disabled: string | false | string[];
|
|
1081
1081
|
}>, aVariants: import("../../../base/lib/actions/input/builder").Variants<VariantValues_1, {
|
|
1082
1082
|
storeRoot: {
|
package/package.json
CHANGED