@activeboxes/pieces-framework 0.7.4-2.0
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/README.md +11 -0
- package/package.json +27 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +5 -0
- package/src/index.js.map +1 -0
- package/src/lib/action/action.d.ts +45 -0
- package/src/lib/action/action.js +40 -0
- package/src/lib/action/action.js.map +1 -0
- package/src/lib/context.d.ts +122 -0
- package/src/lib/context.js +10 -0
- package/src/lib/context.js.map +1 -0
- package/src/lib/index.d.ts +7 -0
- package/src/lib/index.js +11 -0
- package/src/lib/index.js.map +1 -0
- package/src/lib/piece-metadata.d.ts +3267 -0
- package/src/lib/piece-metadata.js +75 -0
- package/src/lib/piece-metadata.js.map +1 -0
- package/src/lib/piece.d.ts +52 -0
- package/src/lib/piece.js +53 -0
- package/src/lib/piece.js.map +1 -0
- package/src/lib/property/authentication/basic-auth-prop.d.ts +33 -0
- package/src/lib/property/authentication/basic-auth-prop.js +26 -0
- package/src/lib/property/authentication/basic-auth-prop.js.map +1 -0
- package/src/lib/property/authentication/common.d.ts +16 -0
- package/src/lib/property/authentication/common.js +9 -0
- package/src/lib/property/authentication/common.js.map +1 -0
- package/src/lib/property/authentication/custom-auth-prop.d.ts +53 -0
- package/src/lib/property/authentication/custom-auth-prop.js +26 -0
- package/src/lib/property/authentication/custom-auth-prop.js.map +1 -0
- package/src/lib/property/authentication/index.d.ts +109 -0
- package/src/lib/property/authentication/index.js +33 -0
- package/src/lib/property/authentication/index.js.map +1 -0
- package/src/lib/property/authentication/oauth2-prop.d.ts +180 -0
- package/src/lib/property/authentication/oauth2-prop.js +43 -0
- package/src/lib/property/authentication/oauth2-prop.js.map +1 -0
- package/src/lib/property/authentication/secret-text-property.d.ts +10 -0
- package/src/lib/property/authentication/secret-text-property.js +14 -0
- package/src/lib/property/authentication/secret-text-property.js.map +1 -0
- package/src/lib/property/index.d.ts +682 -0
- package/src/lib/property/index.js +76 -0
- package/src/lib/property/index.js.map +1 -0
- package/src/lib/property/input/array-property.d.ts +133 -0
- package/src/lib/property/input/array-property.js +30 -0
- package/src/lib/property/input/array-property.js.map +1 -0
- package/src/lib/property/input/checkbox-property.d.ts +9 -0
- package/src/lib/property/input/checkbox-property.js +11 -0
- package/src/lib/property/input/checkbox-property.js.map +1 -0
- package/src/lib/property/input/common.d.ts +15 -0
- package/src/lib/property/input/common.js +15 -0
- package/src/lib/property/input/common.js.map +1 -0
- package/src/lib/property/input/date-time-property.d.ts +9 -0
- package/src/lib/property/input/date-time-property.js +11 -0
- package/src/lib/property/input/date-time-property.js.map +1 -0
- package/src/lib/property/input/dropdown/common.d.ts +21 -0
- package/src/lib/property/input/dropdown/common.js +14 -0
- package/src/lib/property/input/dropdown/common.js.map +1 -0
- package/src/lib/property/input/dropdown/dropdown-prop.d.ts +27 -0
- package/src/lib/property/input/dropdown/dropdown-prop.js +21 -0
- package/src/lib/property/input/dropdown/dropdown-prop.js.map +1 -0
- package/src/lib/property/input/dropdown/static-dropdown.d.ts +37 -0
- package/src/lib/property/input/dropdown/static-dropdown.js +22 -0
- package/src/lib/property/input/dropdown/static-dropdown.js.map +1 -0
- package/src/lib/property/input/dynamic-prop.d.ts +218 -0
- package/src/lib/property/input/dynamic-prop.js +26 -0
- package/src/lib/property/input/dynamic-prop.js.map +1 -0
- package/src/lib/property/input/file-property.d.ts +16 -0
- package/src/lib/property/input/file-property.js +22 -0
- package/src/lib/property/input/file-property.js.map +1 -0
- package/src/lib/property/input/index.d.ts +186 -0
- package/src/lib/property/input/index.js +91 -0
- package/src/lib/property/input/index.js.map +1 -0
- package/src/lib/property/input/json-property.d.ts +9 -0
- package/src/lib/property/input/json-property.js +11 -0
- package/src/lib/property/input/json-property.js.map +1 -0
- package/src/lib/property/input/markdown-property.d.ts +12 -0
- package/src/lib/property/input/markdown-property.js +11 -0
- package/src/lib/property/input/markdown-property.js.map +1 -0
- package/src/lib/property/input/number-property.d.ts +9 -0
- package/src/lib/property/input/number-property.js +11 -0
- package/src/lib/property/input/number-property.js.map +1 -0
- package/src/lib/property/input/object-property.d.ts +9 -0
- package/src/lib/property/input/object-property.js +11 -0
- package/src/lib/property/input/object-property.js.map +1 -0
- package/src/lib/property/input/property-type.d.ts +21 -0
- package/src/lib/property/input/property-type.js +26 -0
- package/src/lib/property/input/property-type.js.map +1 -0
- package/src/lib/property/input/text-property.d.ts +16 -0
- package/src/lib/property/input/text-property.js +15 -0
- package/src/lib/property/input/text-property.js.map +1 -0
- package/src/lib/trigger/trigger.d.ts +85 -0
- package/src/lib/trigger/trigger.js +74 -0
- package/src/lib/trigger/trigger.js.map +1 -0
- package/src/lib/validators/index.d.ts +1 -0
- package/src/lib/validators/index.js +5 -0
- package/src/lib/validators/index.js.map +1 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InputPropertyMap = exports.PiecePropertyMap = exports.PieceProperty = exports.JsonProperty = exports.CustomAuthProperty = exports.SecretTextProperty = exports.BasicAuthProperty = exports.FileProperty = exports.OAuth2Property = exports.StaticDropdownProperty = exports.StaticMultiSelectDropdownProperty = exports.BasicAuthPropertyValue = exports.OAuth2AuthorizationMethod = exports.OAuth2Props = exports.ObjectProperty = exports.NumberProperty = exports.LongTextProperty = exports.DateTimeProperty = exports.CheckboxProperty = exports.BasePropertySchema = exports.ArraySubProps = exports.ArrayProperty = exports.ShortTextProperty = exports.PieceAuthProperty = exports.OAuth2PropertyValue = exports.DropdownOption = exports.DynamicPropsValue = exports.PieceAuth = exports.Property = exports.PropertyType = exports.DynamicProp = exports.DynamicProperties = exports.DropdownState = exports.MultiSelectDropdownProperty = exports.DropdownProperty = exports.ApFile = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const input_1 = require("./input");
|
6
|
+
const authentication_1 = require("./authentication");
|
7
|
+
const typebox_1 = require("@sinclair/typebox");
|
8
|
+
// EXPORTED
|
9
|
+
var file_property_1 = require("./input/file-property");
|
10
|
+
Object.defineProperty(exports, "ApFile", { enumerable: true, get: function () { return file_property_1.ApFile; } });
|
11
|
+
var dropdown_prop_1 = require("./input/dropdown/dropdown-prop");
|
12
|
+
Object.defineProperty(exports, "DropdownProperty", { enumerable: true, get: function () { return dropdown_prop_1.DropdownProperty; } });
|
13
|
+
Object.defineProperty(exports, "MultiSelectDropdownProperty", { enumerable: true, get: function () { return dropdown_prop_1.MultiSelectDropdownProperty; } });
|
14
|
+
var common_1 = require("./input/dropdown/common");
|
15
|
+
Object.defineProperty(exports, "DropdownState", { enumerable: true, get: function () { return common_1.DropdownState; } });
|
16
|
+
var dynamic_prop_1 = require("./input/dynamic-prop");
|
17
|
+
Object.defineProperty(exports, "DynamicProperties", { enumerable: true, get: function () { return dynamic_prop_1.DynamicProperties; } });
|
18
|
+
Object.defineProperty(exports, "DynamicProp", { enumerable: true, get: function () { return dynamic_prop_1.DynamicProp; } });
|
19
|
+
var property_type_1 = require("./input/property-type");
|
20
|
+
Object.defineProperty(exports, "PropertyType", { enumerable: true, get: function () { return property_type_1.PropertyType; } });
|
21
|
+
var input_2 = require("./input");
|
22
|
+
Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return input_2.Property; } });
|
23
|
+
var authentication_2 = require("./authentication");
|
24
|
+
Object.defineProperty(exports, "PieceAuth", { enumerable: true, get: function () { return authentication_2.PieceAuth; } });
|
25
|
+
var dynamic_prop_2 = require("./input/dynamic-prop");
|
26
|
+
Object.defineProperty(exports, "DynamicPropsValue", { enumerable: true, get: function () { return dynamic_prop_2.DynamicPropsValue; } });
|
27
|
+
var common_2 = require("./input/dropdown/common");
|
28
|
+
Object.defineProperty(exports, "DropdownOption", { enumerable: true, get: function () { return common_2.DropdownOption; } });
|
29
|
+
var oauth2_prop_1 = require("./authentication/oauth2-prop");
|
30
|
+
Object.defineProperty(exports, "OAuth2PropertyValue", { enumerable: true, get: function () { return oauth2_prop_1.OAuth2PropertyValue; } });
|
31
|
+
var authentication_3 = require("./authentication");
|
32
|
+
Object.defineProperty(exports, "PieceAuthProperty", { enumerable: true, get: function () { return authentication_3.PieceAuthProperty; } });
|
33
|
+
var text_property_1 = require("./input/text-property");
|
34
|
+
Object.defineProperty(exports, "ShortTextProperty", { enumerable: true, get: function () { return text_property_1.ShortTextProperty; } });
|
35
|
+
var array_property_1 = require("./input/array-property");
|
36
|
+
Object.defineProperty(exports, "ArrayProperty", { enumerable: true, get: function () { return array_property_1.ArrayProperty; } });
|
37
|
+
Object.defineProperty(exports, "ArraySubProps", { enumerable: true, get: function () { return array_property_1.ArraySubProps; } });
|
38
|
+
var common_3 = require("./input/common");
|
39
|
+
Object.defineProperty(exports, "BasePropertySchema", { enumerable: true, get: function () { return common_3.BasePropertySchema; } });
|
40
|
+
var checkbox_property_1 = require("./input/checkbox-property");
|
41
|
+
Object.defineProperty(exports, "CheckboxProperty", { enumerable: true, get: function () { return checkbox_property_1.CheckboxProperty; } });
|
42
|
+
var date_time_property_1 = require("./input/date-time-property");
|
43
|
+
Object.defineProperty(exports, "DateTimeProperty", { enumerable: true, get: function () { return date_time_property_1.DateTimeProperty; } });
|
44
|
+
var text_property_2 = require("./input/text-property");
|
45
|
+
Object.defineProperty(exports, "LongTextProperty", { enumerable: true, get: function () { return text_property_2.LongTextProperty; } });
|
46
|
+
var number_property_1 = require("./input/number-property");
|
47
|
+
Object.defineProperty(exports, "NumberProperty", { enumerable: true, get: function () { return number_property_1.NumberProperty; } });
|
48
|
+
var object_property_1 = require("./input/object-property");
|
49
|
+
Object.defineProperty(exports, "ObjectProperty", { enumerable: true, get: function () { return object_property_1.ObjectProperty; } });
|
50
|
+
var oauth2_prop_2 = require("./authentication/oauth2-prop");
|
51
|
+
Object.defineProperty(exports, "OAuth2Props", { enumerable: true, get: function () { return oauth2_prop_2.OAuth2Props; } });
|
52
|
+
var oauth2_prop_3 = require("./authentication/oauth2-prop");
|
53
|
+
Object.defineProperty(exports, "OAuth2AuthorizationMethod", { enumerable: true, get: function () { return oauth2_prop_3.OAuth2AuthorizationMethod; } });
|
54
|
+
var basic_auth_prop_1 = require("./authentication/basic-auth-prop");
|
55
|
+
Object.defineProperty(exports, "BasicAuthPropertyValue", { enumerable: true, get: function () { return basic_auth_prop_1.BasicAuthPropertyValue; } });
|
56
|
+
var static_dropdown_1 = require("./input/dropdown/static-dropdown");
|
57
|
+
Object.defineProperty(exports, "StaticMultiSelectDropdownProperty", { enumerable: true, get: function () { return static_dropdown_1.StaticMultiSelectDropdownProperty; } });
|
58
|
+
var static_dropdown_2 = require("./input/dropdown/static-dropdown");
|
59
|
+
Object.defineProperty(exports, "StaticDropdownProperty", { enumerable: true, get: function () { return static_dropdown_2.StaticDropdownProperty; } });
|
60
|
+
tslib_1.__exportStar(require("./authentication/custom-auth-prop"), exports);
|
61
|
+
var oauth2_prop_4 = require("./authentication/oauth2-prop");
|
62
|
+
Object.defineProperty(exports, "OAuth2Property", { enumerable: true, get: function () { return oauth2_prop_4.OAuth2Property; } });
|
63
|
+
var file_property_2 = require("./input/file-property");
|
64
|
+
Object.defineProperty(exports, "FileProperty", { enumerable: true, get: function () { return file_property_2.FileProperty; } });
|
65
|
+
var basic_auth_prop_2 = require("./authentication/basic-auth-prop");
|
66
|
+
Object.defineProperty(exports, "BasicAuthProperty", { enumerable: true, get: function () { return basic_auth_prop_2.BasicAuthProperty; } });
|
67
|
+
var secret_text_property_1 = require("./authentication/secret-text-property");
|
68
|
+
Object.defineProperty(exports, "SecretTextProperty", { enumerable: true, get: function () { return secret_text_property_1.SecretTextProperty; } });
|
69
|
+
var custom_auth_prop_1 = require("./authentication/custom-auth-prop");
|
70
|
+
Object.defineProperty(exports, "CustomAuthProperty", { enumerable: true, get: function () { return custom_auth_prop_1.CustomAuthProperty; } });
|
71
|
+
var json_property_1 = require("./input/json-property");
|
72
|
+
Object.defineProperty(exports, "JsonProperty", { enumerable: true, get: function () { return json_property_1.JsonProperty; } });
|
73
|
+
exports.PieceProperty = typebox_1.Type.Union([input_1.InputProperty, authentication_1.PieceAuthProperty]);
|
74
|
+
exports.PiecePropertyMap = typebox_1.Type.Record(typebox_1.Type.String(), exports.PieceProperty);
|
75
|
+
exports.InputPropertyMap = typebox_1.Type.Record(typebox_1.Type.String(), input_1.InputProperty);
|
76
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/property/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAwC;AACxC,qDAAqD;AACrD,+CAAyC;AAEzC,WAAW;AACX,uDAA+C;AAAtC,uGAAA,MAAM,OAAA;AACf,gEAA+F;AAAtF,iHAAA,gBAAgB,OAAA;AAAE,4HAAA,2BAA2B,OAAA;AACtD,kDAAwD;AAA/C,uGAAA,aAAa,OAAA;AACtB,qDAAsE;AAA7D,iHAAA,iBAAiB,OAAA;AAAE,2GAAA,WAAW,OAAA;AACvC,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AACrB,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA;AACjB,mDAA6C;AAApC,2GAAA,SAAS,OAAA;AAClB,qDAAyD;AAAhD,iHAAA,iBAAiB,OAAA;AAC1B,kDAAyD;AAAhD,wGAAA,cAAc,OAAA;AACvB,4DAAmE;AAA1D,kHAAA,mBAAmB,OAAA;AAC5B,mDAAqD;AAA5C,mHAAA,iBAAiB,OAAA;AAC1B,uDAA0D;AAAjD,kHAAA,iBAAiB,OAAA;AAC1B,yDAAsE;AAA7D,+GAAA,aAAa,OAAA;AAAE,+GAAA,aAAa,OAAA;AACrC,yCAAoD;AAA3C,4GAAA,kBAAkB,OAAA;AAC3B,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AACzB,iEAA8D;AAArD,sHAAA,gBAAgB,OAAA;AACzB,uDAAyD;AAAhD,iHAAA,gBAAgB,OAAA;AACzB,2DAAyD;AAAhD,iHAAA,cAAc,OAAA;AACvB,2DAAyD;AAAhD,iHAAA,cAAc,OAAA;AACvB,4DAA2D;AAAlD,0GAAA,WAAW,OAAA;AACpB,4DAAyE;AAAhE,wHAAA,yBAAyB,OAAA;AAClC,oEAA0E;AAAjE,yHAAA,sBAAsB,OAAA;AAC/B,oEAAqF;AAA5E,oIAAA,iCAAiC,OAAA;AAC1C,oEAA0E;AAAjE,yHAAA,sBAAsB,OAAA;AAC/B,4EAAkD;AAClD,4DAA8D;AAArD,6GAAA,cAAc,OAAA;AACvB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AACrB,oEAAqE;AAA5D,oHAAA,iBAAiB,OAAA;AAC1B,8EAA0E;AAAjE,0HAAA,kBAAkB,OAAA;AAC3B,sEAAuE;AAA9D,sHAAA,kBAAkB,OAAA;AAC3B,uDAAoD;AAA3C,6GAAA,YAAY,OAAA;AACR,QAAA,aAAa,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,qBAAa,EAAE,kCAAiB,CAAC,CAAC,CAAA;AAG9D,QAAA,gBAAgB,GAAG,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,qBAAa,CAAC,CAAA;AAK5D,QAAA,gBAAgB,GAAG,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,qBAAa,CAAC,CAAA"}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from "./common";
|
2
|
+
import { PropertyType } from "./property-type";
|
3
|
+
import { LongTextProperty, ShortTextProperty } from "./text-property";
|
4
|
+
import { StaticDropdownProperty, StaticMultiSelectDropdownProperty } from "./dropdown/static-dropdown";
|
5
|
+
import { MultiSelectDropdownProperty } from "./dropdown/dropdown-prop";
|
6
|
+
import { CheckboxProperty } from "./checkbox-property";
|
7
|
+
import { NumberProperty } from "./number-property";
|
8
|
+
import { FileProperty } from "./file-property";
|
9
|
+
import { JsonProperty } from './json-property';
|
10
|
+
export declare const ArraySubProps: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
11
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
12
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
13
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
14
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
15
|
+
}>, import("@sinclair/typebox").TObject<{
|
16
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
17
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
18
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
19
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
20
|
+
}>, import("@sinclair/typebox").TObject<{
|
21
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
22
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
23
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
24
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
25
|
+
options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
26
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
27
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
28
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
29
|
+
label: import("@sinclair/typebox").TString;
|
30
|
+
value: import("@sinclair/typebox").TUnknown;
|
31
|
+
}>>;
|
32
|
+
}>, import("@sinclair/typebox").TSchema]>;
|
33
|
+
}>, import("@sinclair/typebox").TObject<{
|
34
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
35
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
36
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
37
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
38
|
+
}>, import("@sinclair/typebox").TObject<{
|
39
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
40
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
41
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
42
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
43
|
+
options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
44
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
45
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
46
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
47
|
+
label: import("@sinclair/typebox").TString;
|
48
|
+
value: import("@sinclair/typebox").TUnknown;
|
49
|
+
}>>;
|
50
|
+
}>, import("@sinclair/typebox").TSchema]>;
|
51
|
+
}>, import("@sinclair/typebox").TObject<{
|
52
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
53
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
54
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
55
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
56
|
+
}>, import("@sinclair/typebox").TObject<{
|
57
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
58
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
59
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
60
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
61
|
+
}>, import("@sinclair/typebox").TObject<{
|
62
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
63
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
64
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
65
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
66
|
+
}>]>>;
|
67
|
+
export declare const ArrayProperty: import("@sinclair/typebox").TObject<{
|
68
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
69
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
70
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
71
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
72
|
+
properties: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
73
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
74
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
75
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
76
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
77
|
+
}>, import("@sinclair/typebox").TObject<{
|
78
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
79
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
80
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
81
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
82
|
+
}>, import("@sinclair/typebox").TObject<{
|
83
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
84
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
85
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
86
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
87
|
+
options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
88
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
89
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
90
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
91
|
+
label: import("@sinclair/typebox").TString;
|
92
|
+
value: import("@sinclair/typebox").TUnknown;
|
93
|
+
}>>;
|
94
|
+
}>, import("@sinclair/typebox").TSchema]>;
|
95
|
+
}>, import("@sinclair/typebox").TObject<{
|
96
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
97
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
98
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
99
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
100
|
+
}>, import("@sinclair/typebox").TObject<{
|
101
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
102
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
103
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
104
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
105
|
+
options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
106
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
107
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
108
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
109
|
+
label: import("@sinclair/typebox").TString;
|
110
|
+
value: import("@sinclair/typebox").TUnknown;
|
111
|
+
}>>;
|
112
|
+
}>, import("@sinclair/typebox").TSchema]>;
|
113
|
+
}>, import("@sinclair/typebox").TObject<{
|
114
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
115
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
116
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
117
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
118
|
+
}>, import("@sinclair/typebox").TObject<{
|
119
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
120
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
121
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
122
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
123
|
+
}>, import("@sinclair/typebox").TObject<{
|
124
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
125
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
126
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
127
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
128
|
+
}>]>>, import("@sinclair/typebox").TSchema]>;
|
129
|
+
}>;
|
130
|
+
export type ArraySubProps<R extends boolean> = Record<string, ShortTextProperty<R> | LongTextProperty<R> | StaticDropdownProperty<any, R> | MultiSelectDropdownProperty<any, R> | StaticMultiSelectDropdownProperty<any, R> | CheckboxProperty<R> | NumberProperty<R> | FileProperty<R> | JsonProperty<R>>;
|
131
|
+
export type ArrayProperty<R extends boolean> = BasePropertySchema & {
|
132
|
+
properties?: ArraySubProps<R>;
|
133
|
+
} & TPropertyValue<unknown[], PropertyType.ARRAY, R>;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ArrayProperty = exports.ArraySubProps = void 0;
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
5
|
+
const common_1 = require("./common");
|
6
|
+
const property_type_1 = require("./property-type");
|
7
|
+
const text_property_1 = require("./text-property");
|
8
|
+
const static_dropdown_1 = require("./dropdown/static-dropdown");
|
9
|
+
const dropdown_prop_1 = require("./dropdown/dropdown-prop");
|
10
|
+
const checkbox_property_1 = require("./checkbox-property");
|
11
|
+
const number_property_1 = require("./number-property");
|
12
|
+
const file_property_1 = require("./file-property");
|
13
|
+
exports.ArraySubProps = typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Union([
|
14
|
+
text_property_1.ShortTextProperty,
|
15
|
+
text_property_1.LongTextProperty,
|
16
|
+
static_dropdown_1.StaticDropdownProperty,
|
17
|
+
dropdown_prop_1.MultiSelectDropdownProperty,
|
18
|
+
static_dropdown_1.StaticMultiSelectDropdownProperty,
|
19
|
+
checkbox_property_1.CheckboxProperty,
|
20
|
+
number_property_1.NumberProperty,
|
21
|
+
file_property_1.FileProperty
|
22
|
+
]));
|
23
|
+
exports.ArrayProperty = typebox_1.Type.Composite([
|
24
|
+
common_1.BasePropertySchema,
|
25
|
+
typebox_1.Type.Object({
|
26
|
+
properties: exports.ArraySubProps
|
27
|
+
}),
|
28
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Array(typebox_1.Type.Unknown()), property_type_1.PropertyType.ARRAY)
|
29
|
+
]);
|
30
|
+
//# sourceMappingURL=array-property.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"array-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/array-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAC/C,mDAAsE;AACtE,gEAAuG;AACvG,4DAAuE;AACvE,2DAAuD;AACvD,uDAAmD;AACnD,mDAA+C;AAGlC,QAAA,aAAa,GAAG,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,KAAK,CAAC;IAC/D,iCAAiB;IACjB,gCAAgB;IAChB,wCAAsB;IACtB,2CAA2B;IAC3B,mDAAiC;IACjC,oCAAgB;IAChB,gCAAc;IACd,4BAAY;CACf,CAAC,CAAC,CAAA;AAEU,QAAA,aAAa,GAAG,cAAI,CAAC,SAAS,CAAC;IACxC,2BAAkB;IAClB,cAAI,CAAC,MAAM,CAAC;QACR,UAAU,EAAE,qBAAa;KAC5B,CAAC;IACF,IAAA,uBAAc,EAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,OAAO,EAAE,CAAC,EAAE,4BAAY,CAAC,KAAK,CAAC;CACjE,CAAC,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from "./common";
|
2
|
+
import { PropertyType } from "./property-type";
|
3
|
+
export declare const CheckboxProperty: import("@sinclair/typebox").TObject<{
|
4
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
5
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
6
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
7
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
8
|
+
}>;
|
9
|
+
export type CheckboxProperty<R extends boolean> = BasePropertySchema & TPropertyValue<boolean, PropertyType.CHECKBOX, R>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CheckboxProperty = void 0;
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
5
|
+
const common_1 = require("./common");
|
6
|
+
const property_type_1 = require("./property-type");
|
7
|
+
exports.CheckboxProperty = typebox_1.Type.Composite([
|
8
|
+
common_1.BasePropertySchema,
|
9
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Boolean(), property_type_1.PropertyType.CHECKBOX)
|
10
|
+
]);
|
11
|
+
//# sourceMappingURL=checkbox-property.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"checkbox-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/checkbox-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,gBAAgB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC7C,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,QAAQ,CAAC;CACtD,CAAC,CAAA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Static, TObject, TSchema } from "@sinclair/typebox";
|
2
|
+
import { ApFile } from "./file-property";
|
3
|
+
import { PropertyType } from "./property-type";
|
4
|
+
export declare const BasePropertySchema: TObject<{
|
5
|
+
displayName: import("@sinclair/typebox").TString;
|
6
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
7
|
+
}>;
|
8
|
+
export type BasePropertySchema = Static<typeof BasePropertySchema>;
|
9
|
+
export declare const TPropertyValue: <T extends TSchema, U extends PropertyType>(T: T, propertyType: U) => TObject;
|
10
|
+
export type TPropertyValue<T, U extends PropertyType, REQUIRED extends boolean> = {
|
11
|
+
valueSchema: T;
|
12
|
+
type: U;
|
13
|
+
required: REQUIRED;
|
14
|
+
defaultValue?: U extends PropertyType.ARRAY ? unknown[] : U extends PropertyType.JSON ? object : U extends PropertyType.CHECKBOX ? boolean : U extends PropertyType.LONG_TEXT ? string : U extends PropertyType.SHORT_TEXT ? string : U extends PropertyType.NUMBER ? number : U extends PropertyType.DROPDOWN ? unknown : U extends PropertyType.MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_DROPDOWN ? unknown : U extends PropertyType.DATE_TIME ? string : U extends PropertyType.FILE ? ApFile : unknown;
|
15
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TPropertyValue = exports.BasePropertySchema = void 0;
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
5
|
+
exports.BasePropertySchema = typebox_1.Type.Object({
|
6
|
+
displayName: typebox_1.Type.String(),
|
7
|
+
description: typebox_1.Type.Optional(typebox_1.Type.String())
|
8
|
+
});
|
9
|
+
const TPropertyValue = (T, propertyType) => typebox_1.Type.Object({
|
10
|
+
type: typebox_1.Type.Literal(propertyType),
|
11
|
+
required: typebox_1.Type.Boolean(),
|
12
|
+
defaultValue: typebox_1.Type.Optional(typebox_1.Type.Any()),
|
13
|
+
});
|
14
|
+
exports.TPropertyValue = TPropertyValue;
|
15
|
+
//# sourceMappingURL=common.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/common.ts"],"names":[],"mappings":";;;AAAA,+CAAmE;AAKtD,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CAC5C,CAAC,CAAA;AAIK,MAAM,cAAc,GAAG,CAA4C,CAAI,EAAE,YAAe,EAAW,EAAE,CAAC,cAAI,CAAC,MAAM,CAAC;IACrH,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IAChC,QAAQ,EAAE,cAAI,CAAC,OAAO,EAAE;IACxB,YAAY,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,GAAG,EAAE,CAAC;CAC1C,CAAC,CAAA;AAJW,QAAA,cAAc,kBAIzB"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from "./common";
|
2
|
+
import { PropertyType } from "./property-type";
|
3
|
+
export declare const DateTimeProperty: import("@sinclair/typebox").TObject<{
|
4
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
5
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
6
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
7
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
8
|
+
}>;
|
9
|
+
export type DateTimeProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.DATE_TIME, R>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DateTimeProperty = void 0;
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
5
|
+
const common_1 = require("./common");
|
6
|
+
const property_type_1 = require("./property-type");
|
7
|
+
exports.DateTimeProperty = typebox_1.Type.Composite([
|
8
|
+
common_1.BasePropertySchema,
|
9
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.String(), property_type_1.PropertyType.DATE_TIME)
|
10
|
+
]);
|
11
|
+
//# sourceMappingURL=date-time-property.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"date-time-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/date-time-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,gBAAgB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC7C,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,MAAM,EAAE,EAAE,4BAAY,CAAC,SAAS,CAAC;CACtD,CAAC,CAAA"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare const DropdownOption: import("@sinclair/typebox").TObject<{
|
2
|
+
label: import("@sinclair/typebox").TString;
|
3
|
+
value: import("@sinclair/typebox").TUnknown;
|
4
|
+
}>;
|
5
|
+
export type DropdownOption<T> = {
|
6
|
+
label: string;
|
7
|
+
value: T;
|
8
|
+
};
|
9
|
+
export declare const DropdownState: import("@sinclair/typebox").TObject<{
|
10
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
11
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
12
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
13
|
+
label: import("@sinclair/typebox").TString;
|
14
|
+
value: import("@sinclair/typebox").TUnknown;
|
15
|
+
}>>;
|
16
|
+
}>;
|
17
|
+
export type DropdownState<T> = {
|
18
|
+
disabled?: boolean;
|
19
|
+
placeholder?: string;
|
20
|
+
options: DropdownOption<T>[];
|
21
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DropdownState = exports.DropdownOption = void 0;
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
5
|
+
exports.DropdownOption = typebox_1.Type.Object({
|
6
|
+
label: typebox_1.Type.String(),
|
7
|
+
value: typebox_1.Type.Unknown(),
|
8
|
+
});
|
9
|
+
exports.DropdownState = typebox_1.Type.Object({
|
10
|
+
disabled: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
11
|
+
placeholder: typebox_1.Type.Optional(typebox_1.Type.String()),
|
12
|
+
options: typebox_1.Type.Array(exports.DropdownOption)
|
13
|
+
});
|
14
|
+
//# sourceMappingURL=common.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/dropdown/common.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAE5B,QAAA,cAAc,GAAG,cAAI,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,cAAI,CAAC,OAAO,EAAE;CACxB,CAAC,CAAA;AAOW,QAAA,aAAa,GAAG,cAAI,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,EAAE,CAAC;IACvC,WAAW,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACzC,OAAO,EAAE,cAAI,CAAC,KAAK,CAAC,sBAAc,CAAC;CACtC,CAAC,CAAA"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from "../common";
|
2
|
+
import { DropdownState } from "./common";
|
3
|
+
import { PropertyContext } from "../../../context";
|
4
|
+
import { PropertyType } from "../property-type";
|
5
|
+
type DynamicDropdownOptions<T> = (propsValue: Record<string, unknown>, ctx: PropertyContext) => Promise<DropdownState<T>>;
|
6
|
+
export declare const DropdownProperty: import("@sinclair/typebox").TObject<{
|
7
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
8
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
9
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
10
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
11
|
+
}>;
|
12
|
+
export type DropdownProperty<T, R extends boolean> = BasePropertySchema & {
|
13
|
+
refreshers: string[];
|
14
|
+
refreshOnSearch?: boolean;
|
15
|
+
options: DynamicDropdownOptions<T>;
|
16
|
+
} & TPropertyValue<T, PropertyType.DROPDOWN, R>;
|
17
|
+
export declare const MultiSelectDropdownProperty: import("@sinclair/typebox").TObject<{
|
18
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
19
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
20
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
21
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
22
|
+
}>;
|
23
|
+
export type MultiSelectDropdownProperty<T, R extends boolean> = BasePropertySchema & {
|
24
|
+
refreshers: string[];
|
25
|
+
options: DynamicDropdownOptions<T>;
|
26
|
+
} & TPropertyValue<T[], PropertyType.MULTI_SELECT_DROPDOWN, R>;
|
27
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MultiSelectDropdownProperty = exports.DropdownProperty = void 0;
|
4
|
+
const common_1 = require("../common");
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
6
|
+
const property_type_1 = require("../property-type");
|
7
|
+
exports.DropdownProperty = typebox_1.Type.Composite([
|
8
|
+
common_1.BasePropertySchema,
|
9
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Unknown(), property_type_1.PropertyType.DROPDOWN),
|
10
|
+
typebox_1.Type.Object({
|
11
|
+
refreshers: typebox_1.Type.Array(typebox_1.Type.String()),
|
12
|
+
}),
|
13
|
+
]);
|
14
|
+
exports.MultiSelectDropdownProperty = typebox_1.Type.Composite([
|
15
|
+
common_1.BasePropertySchema,
|
16
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Array(typebox_1.Type.Unknown()), property_type_1.PropertyType.MULTI_SELECT_DROPDOWN),
|
17
|
+
typebox_1.Type.Object({
|
18
|
+
refreshers: typebox_1.Type.Array(typebox_1.Type.String()),
|
19
|
+
}),
|
20
|
+
]);
|
21
|
+
//# sourceMappingURL=dropdown-prop.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dropdown-prop.js","sourceRoot":"","sources":["../../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/dropdown/dropdown-prop.ts"],"names":[],"mappings":";;;AAAA,sCAA+D;AAG/D,+CAAyC;AACzC,oDAAgD;AAOnC,QAAA,gBAAgB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC7C,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,QAAQ,CAAC;IACrD,cAAI,CAAC,MAAM,CAAC;QACV,UAAU,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;KACtC,CAAC;CACH,CAAC,CAAC;AASU,QAAA,2BAA2B,GAAG,cAAI,CAAC,SAAS,CAAC;IACxD,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,OAAO,EAAE,CAAC,EAAE,4BAAY,CAAC,qBAAqB,CAAC;IAC9E,cAAI,CAAC,MAAM,CAAC;QACV,UAAU,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;KACtC,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from "../common";
|
2
|
+
import { DropdownState } from "./common";
|
3
|
+
import { PropertyType } from "../property-type";
|
4
|
+
export declare const StaticDropdownProperty: import("@sinclair/typebox").TObject<{
|
5
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
6
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
7
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
8
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
9
|
+
options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
10
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
11
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
12
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
13
|
+
label: import("@sinclair/typebox").TString;
|
14
|
+
value: import("@sinclair/typebox").TUnknown;
|
15
|
+
}>>;
|
16
|
+
}>, import("@sinclair/typebox").TSchema]>;
|
17
|
+
}>;
|
18
|
+
export type StaticDropdownProperty<T, R extends boolean> = BasePropertySchema & {
|
19
|
+
options: DropdownState<T>;
|
20
|
+
} & TPropertyValue<T, PropertyType.STATIC_DROPDOWN, R>;
|
21
|
+
export declare const StaticMultiSelectDropdownProperty: import("@sinclair/typebox").TObject<{
|
22
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
23
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
24
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
25
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
26
|
+
options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
27
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
28
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
29
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
30
|
+
label: import("@sinclair/typebox").TString;
|
31
|
+
value: import("@sinclair/typebox").TUnknown;
|
32
|
+
}>>;
|
33
|
+
}>, import("@sinclair/typebox").TSchema]>;
|
34
|
+
}>;
|
35
|
+
export type StaticMultiSelectDropdownProperty<T, R extends boolean> = BasePropertySchema & {
|
36
|
+
options: DropdownState<T>;
|
37
|
+
} & TPropertyValue<T[], PropertyType.STATIC_MULTI_SELECT_DROPDOWN, R>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.StaticMultiSelectDropdownProperty = exports.StaticDropdownProperty = void 0;
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
5
|
+
const common_1 = require("../common");
|
6
|
+
const common_2 = require("./common");
|
7
|
+
const property_type_1 = require("../property-type");
|
8
|
+
exports.StaticDropdownProperty = typebox_1.Type.Composite([
|
9
|
+
common_1.BasePropertySchema,
|
10
|
+
typebox_1.Type.Object({
|
11
|
+
options: common_2.DropdownState
|
12
|
+
}),
|
13
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Unknown(), property_type_1.PropertyType.STATIC_DROPDOWN)
|
14
|
+
]);
|
15
|
+
exports.StaticMultiSelectDropdownProperty = typebox_1.Type.Composite([
|
16
|
+
common_1.BasePropertySchema,
|
17
|
+
typebox_1.Type.Object({
|
18
|
+
options: common_2.DropdownState
|
19
|
+
}),
|
20
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Array(typebox_1.Type.Unknown()), property_type_1.PropertyType.STATIC_MULTI_SELECT_DROPDOWN)
|
21
|
+
]);
|
22
|
+
//# sourceMappingURL=static-dropdown.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"static-dropdown.js","sourceRoot":"","sources":["../../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/dropdown/static-dropdown.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,sCAA+D;AAC/D,qCAAyC;AACzC,oDAAgD;AAEnC,QAAA,sBAAsB,GAAG,cAAI,CAAC,SAAS,CAAC;IACjD,2BAAkB;IAClB,cAAI,CAAC,MAAM,CAAC;QACR,OAAO,EAAE,sBAAa;KACzB,CAAC;IACF,IAAA,uBAAc,EAAC,cAAI,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,eAAe,CAAC;CAC/D,CAAC,CAAA;AAUW,QAAA,iCAAiC,GAAG,cAAI,CAAC,SAAS,CAAC;IAC5D,2BAAkB;IAClB,cAAI,CAAC,MAAM,CAAC;QACR,OAAO,EAAE,sBAAa;KACzB,CAAC;IACF,IAAA,uBAAc,EAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,OAAO,EAAE,CAAC,EAAE,4BAAY,CAAC,4BAA4B,CAAC;CACxF,CAAC,CAAA"}
|