@nordcraft/std-lib 1.0.30 → 1.0.32
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/actions.d.ts +14 -14
- package/dist/actions.js +14 -14
- package/dist/actions.js.map +1 -1
- package/dist/formulas.d.ts +79 -79
- package/dist/formulas.js +79 -79
- package/dist/formulas.js.map +1 -1
- package/dist/lib.ts +1599 -1599
- package/package.json +3 -3
package/dist/lib.ts
CHANGED
|
@@ -1,187 +1,215 @@
|
|
|
1
1
|
|
|
2
2
|
export const formulas = {
|
|
3
|
-
"@toddle/
|
|
4
|
-
"name": "
|
|
5
|
-
"description": "
|
|
3
|
+
"@toddle/split": {
|
|
4
|
+
"name": "Split",
|
|
5
|
+
"description": "Split a String into an Array of smaller strings each time a delimiter occurs. The delimiter will not be part of the output",
|
|
6
6
|
"arguments": [
|
|
7
7
|
{
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "Input",
|
|
9
9
|
"formula": {
|
|
10
10
|
"type": "value",
|
|
11
|
-
"value":
|
|
11
|
+
"value": ""
|
|
12
12
|
},
|
|
13
|
-
"description": "The
|
|
13
|
+
"description": "The String to split.",
|
|
14
14
|
"type": {
|
|
15
|
-
"type": "
|
|
15
|
+
"type": "String"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
20
|
-
"isFunction": true,
|
|
19
|
+
"name": "Delimiter",
|
|
21
20
|
"formula": {
|
|
22
|
-
"type": "
|
|
23
|
-
"
|
|
24
|
-
"Args",
|
|
25
|
-
"item"
|
|
26
|
-
]
|
|
21
|
+
"type": "value",
|
|
22
|
+
"value": ""
|
|
27
23
|
},
|
|
28
|
-
"description": "
|
|
24
|
+
"description": "The string to split by.",
|
|
29
25
|
"type": {
|
|
30
|
-
"type": "
|
|
26
|
+
"type": "String"
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
29
|
],
|
|
34
30
|
"output": {
|
|
35
|
-
"description": "
|
|
31
|
+
"description": "An array of Strings.",
|
|
36
32
|
"type": {
|
|
37
|
-
"type": "Array"
|
|
33
|
+
"type": "Array",
|
|
34
|
+
"ofType": {
|
|
35
|
+
"type": "String"
|
|
36
|
+
}
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
},
|
|
41
|
-
"@toddle/
|
|
42
|
-
"name": "
|
|
43
|
-
"description": "Get the
|
|
44
|
-
"arguments": [
|
|
40
|
+
"@toddle/size": {
|
|
41
|
+
"name": "Size",
|
|
42
|
+
"description": "Get the size of an Array, Object or String.",
|
|
43
|
+
"arguments": [
|
|
44
|
+
{
|
|
45
|
+
"name": "Collection",
|
|
46
|
+
"formula": {
|
|
47
|
+
"type": "value",
|
|
48
|
+
"value": [
|
|
49
|
+
1,
|
|
50
|
+
2,
|
|
51
|
+
3
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"description": "The collection to get the size of.",
|
|
55
|
+
"type": {
|
|
56
|
+
"type": "Array \\| Object \\| String"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
45
60
|
"output": {
|
|
46
|
-
"description": "The
|
|
61
|
+
"description": "The size of the collection.",
|
|
47
62
|
"type": {
|
|
48
|
-
"type": "
|
|
63
|
+
"type": "Number"
|
|
49
64
|
}
|
|
50
65
|
}
|
|
51
66
|
},
|
|
52
|
-
"@toddle/
|
|
53
|
-
"name": "
|
|
54
|
-
"description": "
|
|
67
|
+
"@toddle/includes": {
|
|
68
|
+
"name": "Includes",
|
|
69
|
+
"description": "Test if an Array or String includes a specific item or value.",
|
|
55
70
|
"arguments": [
|
|
56
71
|
{
|
|
57
|
-
"name": "
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
"
|
|
72
|
+
"name": "Array",
|
|
73
|
+
"formula": {
|
|
74
|
+
"type": "value",
|
|
75
|
+
"value": ""
|
|
61
76
|
},
|
|
77
|
+
"description": "The value to search.",
|
|
78
|
+
"type": {
|
|
79
|
+
"type": "Array \\| String"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "Item",
|
|
62
84
|
"formula": {
|
|
63
85
|
"type": "value",
|
|
64
|
-
"value": "
|
|
86
|
+
"value": ""
|
|
87
|
+
},
|
|
88
|
+
"description": "The item or value to search for.",
|
|
89
|
+
"type": {
|
|
90
|
+
"type": "Any"
|
|
65
91
|
}
|
|
66
92
|
}
|
|
67
93
|
],
|
|
68
94
|
"output": {
|
|
69
|
-
"description": "
|
|
70
|
-
"type": {
|
|
71
|
-
"type": "String"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"@toddle/currentURL": {
|
|
76
|
-
"name": "Current URL",
|
|
77
|
-
"description": "Return the current URL of the browser. Use the \"Parse URL\" formula for working with the URL.",
|
|
78
|
-
"arguments": [],
|
|
79
|
-
"cache": false,
|
|
80
|
-
"output": {
|
|
81
|
-
"description": "The browser's current URL.",
|
|
95
|
+
"description": "Returns True if the item or value exists in the Array or string. Returns False if no match is found.",
|
|
82
96
|
"type": {
|
|
83
|
-
"type": "
|
|
97
|
+
"type": "Boolean"
|
|
84
98
|
}
|
|
85
99
|
}
|
|
86
100
|
},
|
|
87
|
-
"@toddle/
|
|
88
|
-
"name": "
|
|
89
|
-
"description": "
|
|
101
|
+
"@toddle/lessThan": {
|
|
102
|
+
"name": "Less than",
|
|
103
|
+
"description": "Compute if a value is smaller than another value.",
|
|
90
104
|
"arguments": [
|
|
91
105
|
{
|
|
92
|
-
"name": "
|
|
106
|
+
"name": "First",
|
|
93
107
|
"formula": {
|
|
94
108
|
"type": "value",
|
|
95
|
-
"value":
|
|
109
|
+
"value": ""
|
|
96
110
|
},
|
|
97
|
-
"description": "
|
|
111
|
+
"description": "First Number to be compared.",
|
|
98
112
|
"type": {
|
|
99
|
-
"type": "
|
|
113
|
+
"type": "Number"
|
|
100
114
|
}
|
|
101
115
|
},
|
|
102
116
|
{
|
|
103
|
-
"name": "
|
|
117
|
+
"name": "Second",
|
|
104
118
|
"formula": {
|
|
105
119
|
"type": "value",
|
|
106
|
-
"value":
|
|
120
|
+
"value": ""
|
|
107
121
|
},
|
|
108
|
-
"description": "
|
|
122
|
+
"description": "Second Number to be compared.",
|
|
109
123
|
"type": {
|
|
110
124
|
"type": "Number"
|
|
111
125
|
}
|
|
112
126
|
}
|
|
113
127
|
],
|
|
114
128
|
"output": {
|
|
115
|
-
"description": "
|
|
129
|
+
"description": "Returns True if the First Number is smaller than the second Number, otherwise it returns False.",
|
|
116
130
|
"type": {
|
|
117
|
-
"type": "
|
|
131
|
+
"type": "Boolean"
|
|
118
132
|
}
|
|
119
133
|
}
|
|
120
134
|
},
|
|
121
|
-
"@toddle/
|
|
122
|
-
"name": "
|
|
123
|
-
"description": "Get
|
|
135
|
+
"@toddle/userAgent": {
|
|
136
|
+
"name": "User Agent",
|
|
137
|
+
"description": "Get the user agent for the browser or from the User-Agent header on the server",
|
|
124
138
|
"arguments": [],
|
|
125
139
|
"output": {
|
|
126
|
-
"description": "
|
|
140
|
+
"description": "The user agent string.",
|
|
127
141
|
"type": {
|
|
128
|
-
"type": "
|
|
142
|
+
"type": "String"
|
|
129
143
|
}
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
|
-
"@toddle/
|
|
133
|
-
"name": "
|
|
134
|
-
"description": "
|
|
146
|
+
"@toddle/replaceAll": {
|
|
147
|
+
"name": "Replace all",
|
|
148
|
+
"description": "Replace all occurrences of a substring in a String.",
|
|
135
149
|
"arguments": [
|
|
136
150
|
{
|
|
137
|
-
"name": "
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
"
|
|
151
|
+
"name": "Input",
|
|
152
|
+
"description": "The input String to search in.",
|
|
153
|
+
"type": {
|
|
154
|
+
"type": "String"
|
|
141
155
|
},
|
|
156
|
+
"required": true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "Search",
|
|
160
|
+
"description": "The substring to search for.",
|
|
142
161
|
"type": {
|
|
143
|
-
"type": "
|
|
162
|
+
"type": "String"
|
|
144
163
|
},
|
|
145
|
-
"
|
|
164
|
+
"required": true
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "Replace with",
|
|
168
|
+
"description": "The replacement value.",
|
|
169
|
+
"type": {
|
|
170
|
+
"type": "String"
|
|
171
|
+
},
|
|
172
|
+
"required": true
|
|
146
173
|
}
|
|
147
174
|
],
|
|
148
175
|
"output": {
|
|
149
|
-
"description": "The input Array with all duplicate values removed.",
|
|
150
176
|
"type": {
|
|
151
|
-
"type": "
|
|
152
|
-
}
|
|
177
|
+
"type": "String"
|
|
178
|
+
},
|
|
179
|
+
"name": "Output",
|
|
180
|
+
"description": "The resulting String."
|
|
153
181
|
}
|
|
154
182
|
},
|
|
155
|
-
"@toddle/
|
|
156
|
-
"name": "
|
|
157
|
-
"description": "
|
|
183
|
+
"@toddle/unique": {
|
|
184
|
+
"name": "Unique",
|
|
185
|
+
"description": "Remove duplicate values from an Array.",
|
|
158
186
|
"arguments": [
|
|
159
187
|
{
|
|
160
|
-
"name": "
|
|
188
|
+
"name": "Array",
|
|
161
189
|
"formula": {
|
|
162
190
|
"type": "value",
|
|
163
|
-
"value":
|
|
191
|
+
"value": []
|
|
164
192
|
},
|
|
165
|
-
"description": "Input String",
|
|
166
193
|
"type": {
|
|
167
|
-
"type": "
|
|
168
|
-
}
|
|
194
|
+
"type": "Array"
|
|
195
|
+
},
|
|
196
|
+
"description": "The input Array."
|
|
169
197
|
}
|
|
170
198
|
],
|
|
171
199
|
"output": {
|
|
172
|
-
"description": "The input
|
|
200
|
+
"description": "The input Array with all duplicate values removed.",
|
|
173
201
|
"type": {
|
|
174
|
-
"type": "
|
|
202
|
+
"type": "Array"
|
|
175
203
|
}
|
|
176
204
|
}
|
|
177
205
|
},
|
|
178
|
-
"@toddle/
|
|
179
|
-
"name": "
|
|
180
|
-
"description": "
|
|
206
|
+
"@toddle/round": {
|
|
207
|
+
"name": "Round",
|
|
208
|
+
"description": "Round a Number to the nearest decimal point.",
|
|
181
209
|
"arguments": [
|
|
182
210
|
{
|
|
183
|
-
"name": "
|
|
184
|
-
"description": "
|
|
211
|
+
"name": "Input",
|
|
212
|
+
"description": "Number to round.",
|
|
185
213
|
"type": {
|
|
186
214
|
"type": "Number"
|
|
187
215
|
},
|
|
@@ -191,109 +219,61 @@
|
|
|
191
219
|
}
|
|
192
220
|
},
|
|
193
221
|
{
|
|
194
|
-
"name": "
|
|
195
|
-
"description": "
|
|
222
|
+
"name": "Decimals",
|
|
223
|
+
"description": "Number of decimals to round to.",
|
|
196
224
|
"type": {
|
|
197
225
|
"type": "Number"
|
|
198
226
|
},
|
|
199
227
|
"formula": {
|
|
200
228
|
"type": "value",
|
|
201
|
-
"value":
|
|
229
|
+
"value": 0
|
|
202
230
|
}
|
|
203
231
|
}
|
|
204
232
|
],
|
|
205
233
|
"output": {
|
|
206
|
-
"description": "The result of dividing the dividend with the divisor.",
|
|
207
234
|
"type": {
|
|
208
235
|
"type": "Number"
|
|
209
|
-
}
|
|
236
|
+
},
|
|
237
|
+
"description": "The rounded Number."
|
|
210
238
|
}
|
|
211
239
|
},
|
|
212
|
-
"@toddle/
|
|
213
|
-
"name": "
|
|
240
|
+
"@toddle/parseURL": {
|
|
241
|
+
"name": "Parse URL",
|
|
242
|
+
"description": "Parse a URL",
|
|
214
243
|
"arguments": [
|
|
215
244
|
{
|
|
216
|
-
"name": "
|
|
217
|
-
"description": "Date to format",
|
|
218
|
-
"type": {
|
|
219
|
-
"type": "Date"
|
|
220
|
-
},
|
|
221
|
-
"formula": {
|
|
222
|
-
"type": "Date",
|
|
223
|
-
"value": null
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "Locale(s)",
|
|
228
|
-
"description": "Optional locale to use for formatting the Date, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
229
|
-
"type": {
|
|
230
|
-
"type": "Array \\| String"
|
|
231
|
-
},
|
|
245
|
+
"name": "URL",
|
|
232
246
|
"formula": {
|
|
233
247
|
"type": "value",
|
|
234
248
|
"value": null
|
|
249
|
+
},
|
|
250
|
+
"description": "The URL value to parse.",
|
|
251
|
+
"type": {
|
|
252
|
+
"type": "String"
|
|
235
253
|
}
|
|
236
254
|
},
|
|
237
255
|
{
|
|
238
|
-
"name": "
|
|
239
|
-
"description": "Optional Object for configuring the formatting of the output. See the [DateTimeFormat syntax on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#syntax).",
|
|
240
|
-
"type": {
|
|
241
|
-
"type": "Object"
|
|
242
|
-
},
|
|
256
|
+
"name": "Base",
|
|
243
257
|
"formula": {
|
|
244
258
|
"type": "value",
|
|
245
259
|
"value": null
|
|
260
|
+
},
|
|
261
|
+
"description": "An optional base for the URL. Use this to resolve relative URLs.",
|
|
262
|
+
"type": {
|
|
263
|
+
"type": "String"
|
|
246
264
|
}
|
|
247
265
|
}
|
|
248
266
|
],
|
|
249
|
-
"description": "Format a date using the Intl.DateTimeFormat API. See the [DateTimeFormat docs on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat).",
|
|
250
267
|
"output": {
|
|
251
|
-
"description": "
|
|
268
|
+
"description": "An object containing: \"hostname\", \"searchParams\", \"path\", \"hash\", \"href\", \"protocol\", \"port\", \"origin\"",
|
|
252
269
|
"type": {
|
|
253
|
-
"type": "
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"@toddle/replaceAll": {
|
|
258
|
-
"name": "Replace all",
|
|
259
|
-
"description": "Replace all occurrences of a substring in a String.",
|
|
260
|
-
"arguments": [
|
|
261
|
-
{
|
|
262
|
-
"name": "Input",
|
|
263
|
-
"description": "The input String to search in.",
|
|
264
|
-
"type": {
|
|
265
|
-
"type": "String"
|
|
266
|
-
},
|
|
267
|
-
"required": true
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"name": "Search",
|
|
271
|
-
"description": "The substring to search for.",
|
|
272
|
-
"type": {
|
|
273
|
-
"type": "String"
|
|
274
|
-
},
|
|
275
|
-
"required": true
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"name": "Replace with",
|
|
279
|
-
"description": "The replacement value.",
|
|
280
|
-
"type": {
|
|
281
|
-
"type": "String"
|
|
282
|
-
},
|
|
283
|
-
"required": true
|
|
270
|
+
"type": "Object"
|
|
284
271
|
}
|
|
285
|
-
],
|
|
286
|
-
"output": {
|
|
287
|
-
"type": {
|
|
288
|
-
"type": "String"
|
|
289
|
-
},
|
|
290
|
-
"name": "Output",
|
|
291
|
-
"description": "The resulting String."
|
|
292
272
|
}
|
|
293
273
|
},
|
|
294
|
-
"@toddle/
|
|
295
|
-
"name": "Get from
|
|
296
|
-
"description": "Read a value from
|
|
274
|
+
"@toddle/getFromSessionStorage": {
|
|
275
|
+
"name": "Get from Session Storage",
|
|
276
|
+
"description": "Read a value from session storage with the provided key.",
|
|
297
277
|
"cache": false,
|
|
298
278
|
"arguments": [
|
|
299
279
|
{
|
|
@@ -302,459 +282,160 @@
|
|
|
302
282
|
"type": "value",
|
|
303
283
|
"value": null
|
|
304
284
|
},
|
|
305
|
-
"description": "The key to read from
|
|
285
|
+
"description": "The key to read from session storage.",
|
|
306
286
|
"type": {
|
|
307
287
|
"type": "String"
|
|
308
288
|
}
|
|
309
289
|
}
|
|
310
290
|
],
|
|
311
291
|
"output": {
|
|
312
|
-
"description": "The value found in
|
|
292
|
+
"description": "The value found in session storage.",
|
|
313
293
|
"type": {
|
|
314
294
|
"type": "Any"
|
|
315
295
|
}
|
|
316
296
|
}
|
|
317
297
|
},
|
|
318
|
-
"@toddle/
|
|
319
|
-
"name": "
|
|
320
|
-
"description": "
|
|
321
|
-
"arguments": [
|
|
322
|
-
{
|
|
323
|
-
"name": "Array",
|
|
324
|
-
"formula": {
|
|
325
|
-
"type": "value",
|
|
326
|
-
"value": null
|
|
327
|
-
},
|
|
328
|
-
"description": "The array of items to be filtered.",
|
|
329
|
-
"type": {
|
|
330
|
-
"type": "Array"
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"name": "Formula",
|
|
335
|
-
"isFunction": true,
|
|
336
|
-
"formula": {
|
|
337
|
-
"type": "path",
|
|
338
|
-
"path": [
|
|
339
|
-
"Args",
|
|
340
|
-
"item"
|
|
341
|
-
]
|
|
342
|
-
},
|
|
343
|
-
"description": "Predicate formula for filtering items.",
|
|
344
|
-
"type": {
|
|
345
|
-
"type": "Formula"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
],
|
|
349
|
-
"output": {
|
|
350
|
-
"description": "New Array containing only the items for which the Formula evaluated to True.",
|
|
351
|
-
"type": {
|
|
352
|
-
"type": "Array"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
"@toddle/takeLast": {
|
|
357
|
-
"name": "Take last",
|
|
358
|
-
"description": "Take items from the end of an Array or String.",
|
|
298
|
+
"@toddle/squareRoot": {
|
|
299
|
+
"name": "Square root",
|
|
300
|
+
"description": "Get the square root of a Number.",
|
|
359
301
|
"arguments": [
|
|
360
302
|
{
|
|
361
|
-
"name": "
|
|
362
|
-
"formula": {
|
|
363
|
-
"type": "value",
|
|
364
|
-
"value": null
|
|
365
|
-
},
|
|
366
|
-
"description": "The input value.",
|
|
367
|
-
"type": {
|
|
368
|
-
"type": "Array \\| String"
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"name": "Count",
|
|
303
|
+
"name": "Number",
|
|
373
304
|
"formula": {
|
|
374
305
|
"type": "value",
|
|
375
306
|
"value": 1
|
|
376
307
|
},
|
|
377
|
-
"description": "
|
|
308
|
+
"description": "The input Number.",
|
|
378
309
|
"type": {
|
|
379
310
|
"type": "Number"
|
|
380
311
|
}
|
|
381
312
|
}
|
|
382
313
|
],
|
|
383
314
|
"output": {
|
|
384
|
-
"description": "The
|
|
385
|
-
"type": {
|
|
386
|
-
"type": "Array \\| String"
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
"@toddle/size": {
|
|
391
|
-
"name": "Size",
|
|
392
|
-
"description": "Get the size of an Array, Object or String.",
|
|
393
|
-
"arguments": [
|
|
394
|
-
{
|
|
395
|
-
"name": "Collection",
|
|
396
|
-
"formula": {
|
|
397
|
-
"type": "value",
|
|
398
|
-
"value": [
|
|
399
|
-
1,
|
|
400
|
-
2,
|
|
401
|
-
3
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
"description": "The collection to get the size of.",
|
|
405
|
-
"type": {
|
|
406
|
-
"type": "Array \\| Object \\| String"
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
],
|
|
410
|
-
"output": {
|
|
411
|
-
"description": "The size of the collection.",
|
|
412
|
-
"type": {
|
|
413
|
-
"type": "Number"
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
"@toddle/matches": {
|
|
418
|
-
"name": "Matches",
|
|
419
|
-
"description": "Finds the (global) matches in a String based on a regular expression.",
|
|
420
|
-
"arguments": [
|
|
421
|
-
{
|
|
422
|
-
"name": "Input",
|
|
423
|
-
"formula": {
|
|
424
|
-
"type": "value",
|
|
425
|
-
"value": ""
|
|
426
|
-
},
|
|
427
|
-
"description": "The string to search for matches in.",
|
|
428
|
-
"type": {
|
|
429
|
-
"type": "String"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"name": "Regular expression",
|
|
434
|
-
"formula": {
|
|
435
|
-
"type": "value",
|
|
436
|
-
"value": ""
|
|
437
|
-
},
|
|
438
|
-
"description": "The regular expression to use for matching.",
|
|
439
|
-
"type": {
|
|
440
|
-
"type": "String"
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"name": "Global search",
|
|
445
|
-
"formula": {
|
|
446
|
-
"type": "value",
|
|
447
|
-
"value": true
|
|
448
|
-
},
|
|
449
|
-
"description": "Test the regular expression against all possible matches in a string.",
|
|
450
|
-
"type": {
|
|
451
|
-
"type": "Boolean"
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"name": "Case insensitive",
|
|
456
|
-
"formula": {
|
|
457
|
-
"type": "value",
|
|
458
|
-
"value": false
|
|
459
|
-
},
|
|
460
|
-
"description": "Ignore case while attempting a match in a string.",
|
|
461
|
-
"type": {
|
|
462
|
-
"type": "Boolean"
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"name": "Multi line",
|
|
467
|
-
"formula": {
|
|
468
|
-
"type": "value",
|
|
469
|
-
"value": false
|
|
470
|
-
},
|
|
471
|
-
"description": "Treat multiline strings as multiple lines.",
|
|
472
|
-
"type": {
|
|
473
|
-
"type": "Boolean"
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
"output": {
|
|
478
|
-
"description": "An Array of Strings",
|
|
479
|
-
"type": {
|
|
480
|
-
"type": "Array"
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
"@toddle/dateFromString": {
|
|
485
|
-
"name": "Date From String",
|
|
486
|
-
"arguments": [
|
|
487
|
-
{
|
|
488
|
-
"name": "Date string",
|
|
489
|
-
"description": "A String representing a date, for example \"January 1, 1970\".",
|
|
490
|
-
"type": {
|
|
491
|
-
"type": "String"
|
|
492
|
-
},
|
|
493
|
-
"formula": {
|
|
494
|
-
"type": "value",
|
|
495
|
-
"value": "January 1, 1970"
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
],
|
|
499
|
-
"description": "Convert a string to a Date.",
|
|
500
|
-
"output": {
|
|
501
|
-
"description": "The input value converted to a Date.",
|
|
502
|
-
"type": {
|
|
503
|
-
"type": "Date"
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
"@toddle/number": {
|
|
508
|
-
"name": "Number",
|
|
509
|
-
"description": "Convert a value of any type to a Number.",
|
|
510
|
-
"arguments": [
|
|
511
|
-
{
|
|
512
|
-
"name": "Input",
|
|
513
|
-
"description": "Value of any type",
|
|
514
|
-
"type": {
|
|
515
|
-
"type": "Any"
|
|
516
|
-
},
|
|
517
|
-
"formula": {
|
|
518
|
-
"type": "value",
|
|
519
|
-
"value": "1"
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
],
|
|
523
|
-
"output": {
|
|
524
|
-
"description": "The input value converted to a Number.",
|
|
315
|
+
"description": "The square root of the input Number.",
|
|
525
316
|
"type": {
|
|
526
317
|
"type": "Number"
|
|
527
318
|
}
|
|
528
319
|
}
|
|
529
320
|
},
|
|
530
|
-
"@toddle/
|
|
531
|
-
"name": "
|
|
532
|
-
"description": "
|
|
321
|
+
"@toddle/currentURL": {
|
|
322
|
+
"name": "Current URL",
|
|
323
|
+
"description": "Return the current URL of the browser. Use the \"Parse URL\" formula for working with the URL.",
|
|
533
324
|
"arguments": [],
|
|
534
325
|
"cache": false,
|
|
535
326
|
"output": {
|
|
536
|
-
"description": "
|
|
327
|
+
"description": "The browser's current URL.",
|
|
537
328
|
"type": {
|
|
538
|
-
"type": "
|
|
329
|
+
"type": "String"
|
|
539
330
|
}
|
|
540
331
|
}
|
|
541
332
|
},
|
|
542
|
-
"@toddle/
|
|
543
|
-
"name": "
|
|
544
|
-
"description": "
|
|
333
|
+
"@toddle/lowercase": {
|
|
334
|
+
"name": "Lower case",
|
|
335
|
+
"description": "Convert a string to lowercase.",
|
|
545
336
|
"arguments": [
|
|
546
337
|
{
|
|
547
|
-
"name": "
|
|
548
|
-
"formula": {
|
|
549
|
-
"type": "value",
|
|
550
|
-
"value": ""
|
|
551
|
-
},
|
|
552
|
-
"description": "The String to split.",
|
|
553
|
-
"type": {
|
|
554
|
-
"type": "String"
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"name": "Delimiter",
|
|
338
|
+
"name": "String",
|
|
559
339
|
"formula": {
|
|
560
340
|
"type": "value",
|
|
561
|
-
"value": ""
|
|
341
|
+
"value": "string"
|
|
562
342
|
},
|
|
563
|
-
"description": "
|
|
343
|
+
"description": "Input String",
|
|
564
344
|
"type": {
|
|
565
345
|
"type": "String"
|
|
566
346
|
}
|
|
567
347
|
}
|
|
568
348
|
],
|
|
569
349
|
"output": {
|
|
570
|
-
"description": "
|
|
571
|
-
"type": {
|
|
572
|
-
"type": "Array",
|
|
573
|
-
"ofType": {
|
|
574
|
-
"type": "String"
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
},
|
|
579
|
-
"@toddle/shuffle": {
|
|
580
|
-
"name": "Shuffle",
|
|
581
|
-
"description": "Shuffle items in an Array or String.",
|
|
582
|
-
"cache": false,
|
|
583
|
-
"arguments": [
|
|
584
|
-
{
|
|
585
|
-
"name": "Array",
|
|
586
|
-
"formula": {
|
|
587
|
-
"type": "value",
|
|
588
|
-
"value": null
|
|
589
|
-
},
|
|
590
|
-
"description": "The input value.",
|
|
591
|
-
"type": {
|
|
592
|
-
"type": "Array \\| String"
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
],
|
|
596
|
-
"output": {
|
|
597
|
-
"description": "The shuffled Array or String.",
|
|
598
|
-
"type": {
|
|
599
|
-
"type": "Array \\| String"
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
"@toddle/take": {
|
|
604
|
-
"name": "Take",
|
|
605
|
-
"description": "Take items from the start of an Array or String.",
|
|
606
|
-
"arguments": [
|
|
607
|
-
{
|
|
608
|
-
"name": "Array",
|
|
609
|
-
"formula": {
|
|
610
|
-
"type": "value",
|
|
611
|
-
"value": null
|
|
612
|
-
},
|
|
613
|
-
"description": "Input Array or String.",
|
|
614
|
-
"type": {
|
|
615
|
-
"type": "Array \\| String"
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
"name": "Count",
|
|
620
|
-
"formula": {
|
|
621
|
-
"type": "value",
|
|
622
|
-
"value": 1
|
|
623
|
-
},
|
|
624
|
-
"type": {
|
|
625
|
-
"type": "Number"
|
|
626
|
-
},
|
|
627
|
-
"description": "Number of items to take."
|
|
628
|
-
}
|
|
629
|
-
],
|
|
630
|
-
"output": {
|
|
631
|
-
"description": "The first items from the Array or String.",
|
|
632
|
-
"type": {
|
|
633
|
-
"type": "Array \\| String"
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
},
|
|
637
|
-
"@toddle/lessOrEqual": {
|
|
638
|
-
"name": "Less or equal",
|
|
639
|
-
"description": "Compute if a value is smaller than or equal to another value.",
|
|
640
|
-
"arguments": [
|
|
641
|
-
{
|
|
642
|
-
"name": "First",
|
|
643
|
-
"formula": {
|
|
644
|
-
"type": "value",
|
|
645
|
-
"value": ""
|
|
646
|
-
},
|
|
647
|
-
"description": "First Number to be compared.",
|
|
648
|
-
"type": {
|
|
649
|
-
"type": "Number"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
"name": "Second",
|
|
654
|
-
"formula": {
|
|
655
|
-
"type": "value",
|
|
656
|
-
"value": ""
|
|
657
|
-
},
|
|
658
|
-
"description": "Second Number to be compared.",
|
|
659
|
-
"type": {
|
|
660
|
-
"type": "Number"
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
],
|
|
664
|
-
"output": {
|
|
665
|
-
"description": "Returns True if the First Number is smaller than or equal to the second Number, otherwise it returns False.",
|
|
350
|
+
"description": "The input String with all characters converted to lowercase.",
|
|
666
351
|
"type": {
|
|
667
|
-
"type": "
|
|
352
|
+
"type": "String"
|
|
668
353
|
}
|
|
669
354
|
}
|
|
670
355
|
},
|
|
671
|
-
"@toddle/
|
|
672
|
-
"name": "
|
|
673
|
-
"description": "
|
|
356
|
+
"@toddle/multiply": {
|
|
357
|
+
"name": "Multiply",
|
|
358
|
+
"description": "Multiply two or more Numbers.",
|
|
674
359
|
"arguments": [
|
|
675
360
|
{
|
|
676
|
-
"name": "
|
|
361
|
+
"name": "0",
|
|
677
362
|
"formula": {
|
|
678
363
|
"type": "value",
|
|
679
|
-
"value":
|
|
680
|
-
},
|
|
681
|
-
"type": {
|
|
682
|
-
"type": "Array"
|
|
683
|
-
},
|
|
684
|
-
"description": "The input Array."
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
"name": "Formula",
|
|
688
|
-
"formula": {
|
|
689
|
-
"type": "path",
|
|
690
|
-
"path": [
|
|
691
|
-
"Args",
|
|
692
|
-
"item"
|
|
693
|
-
]
|
|
364
|
+
"value": 1
|
|
694
365
|
},
|
|
695
366
|
"type": {
|
|
696
|
-
"type": "
|
|
367
|
+
"type": "Number"
|
|
697
368
|
},
|
|
698
|
-
"
|
|
699
|
-
"description": "The sorting formula. The output of this formula will determine the sort order of the items. If the formula returns an Array, the items will first be sorted by the first item, then the second, etc."
|
|
369
|
+
"description": "Number to be multiplied."
|
|
700
370
|
},
|
|
701
371
|
{
|
|
702
|
-
"name": "
|
|
372
|
+
"name": "1",
|
|
703
373
|
"formula": {
|
|
704
374
|
"type": "value",
|
|
705
|
-
"value":
|
|
375
|
+
"value": 1
|
|
706
376
|
},
|
|
707
377
|
"type": {
|
|
708
|
-
"type": "
|
|
378
|
+
"type": "Number"
|
|
709
379
|
},
|
|
710
|
-
"description": "
|
|
380
|
+
"description": "Number to be multiplied."
|
|
711
381
|
}
|
|
712
382
|
],
|
|
383
|
+
"variableArguments": true,
|
|
713
384
|
"output": {
|
|
714
|
-
"description": "The
|
|
385
|
+
"description": "The product of multiplying the input Numbers.",
|
|
715
386
|
"type": {
|
|
716
387
|
"type": "Number"
|
|
717
388
|
}
|
|
718
389
|
}
|
|
719
390
|
},
|
|
720
|
-
"@toddle/
|
|
721
|
-
"name": "
|
|
722
|
-
"description": "
|
|
391
|
+
"@toddle/isServer": {
|
|
392
|
+
"name": "Is Server",
|
|
393
|
+
"description": "Get information about whether formulas are currently evaluated server-side or client-side.",
|
|
394
|
+
"arguments": [],
|
|
395
|
+
"output": {
|
|
396
|
+
"description": "Returns True if formulas are evaluated server-side, and False if formulas are evaluated client-side.",
|
|
397
|
+
"type": {
|
|
398
|
+
"type": "Boolean"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"@toddle/indexOf": {
|
|
403
|
+
"name": "Index of",
|
|
404
|
+
"description": "Find the index of a specific item in an Array or String.",
|
|
723
405
|
"arguments": [
|
|
724
406
|
{
|
|
725
407
|
"name": "Array",
|
|
726
408
|
"formula": {
|
|
727
409
|
"type": "value",
|
|
728
|
-
"value":
|
|
410
|
+
"value": ""
|
|
729
411
|
},
|
|
730
|
-
"description": "
|
|
412
|
+
"description": "The value to search.",
|
|
731
413
|
"type": {
|
|
732
|
-
"type": "Array"
|
|
414
|
+
"type": "Array \\| String"
|
|
733
415
|
}
|
|
734
416
|
},
|
|
735
417
|
{
|
|
736
|
-
"name": "
|
|
737
|
-
"isFunction": true,
|
|
418
|
+
"name": "Item",
|
|
738
419
|
"formula": {
|
|
739
420
|
"type": "value",
|
|
740
|
-
"value":
|
|
421
|
+
"value": ""
|
|
741
422
|
},
|
|
742
|
-
"description": "The
|
|
423
|
+
"description": "The items to search for.",
|
|
743
424
|
"type": {
|
|
744
|
-
"type": "
|
|
425
|
+
"type": "Any"
|
|
745
426
|
}
|
|
746
427
|
}
|
|
747
428
|
],
|
|
748
429
|
"output": {
|
|
749
|
-
"description": "
|
|
430
|
+
"description": "If the item exists in the Array, the index of that item is returned. If the item is not found, -1 is returned.",
|
|
750
431
|
"type": {
|
|
751
|
-
"type": "
|
|
432
|
+
"type": "Number"
|
|
752
433
|
}
|
|
753
434
|
}
|
|
754
435
|
},
|
|
755
|
-
"@toddle/
|
|
756
|
-
"name": "
|
|
757
|
-
"description": "Compute if
|
|
436
|
+
"@toddle/lessOrEqual": {
|
|
437
|
+
"name": "Less or equal",
|
|
438
|
+
"description": "Compute if a value is smaller than or equal to another value.",
|
|
758
439
|
"arguments": [
|
|
759
440
|
{
|
|
760
441
|
"name": "First",
|
|
@@ -762,9 +443,9 @@
|
|
|
762
443
|
"type": "value",
|
|
763
444
|
"value": ""
|
|
764
445
|
},
|
|
765
|
-
"description": "First
|
|
446
|
+
"description": "First Number to be compared.",
|
|
766
447
|
"type": {
|
|
767
|
-
"type": "
|
|
448
|
+
"type": "Number"
|
|
768
449
|
}
|
|
769
450
|
},
|
|
770
451
|
{
|
|
@@ -773,50 +454,54 @@
|
|
|
773
454
|
"type": "value",
|
|
774
455
|
"value": ""
|
|
775
456
|
},
|
|
776
|
-
"description": "Second
|
|
457
|
+
"description": "Second Number to be compared.",
|
|
777
458
|
"type": {
|
|
778
|
-
"type": "
|
|
459
|
+
"type": "Number"
|
|
779
460
|
}
|
|
780
461
|
}
|
|
781
462
|
],
|
|
782
463
|
"output": {
|
|
783
|
-
"description": "Returns True if the
|
|
464
|
+
"description": "Returns True if the First Number is smaller than or equal to the second Number, otherwise it returns False.",
|
|
784
465
|
"type": {
|
|
785
|
-
"type": "
|
|
466
|
+
"type": "Boolean"
|
|
786
467
|
}
|
|
787
468
|
}
|
|
788
469
|
},
|
|
789
|
-
"@toddle/
|
|
790
|
-
"name": "
|
|
791
|
-
"description": "
|
|
470
|
+
"@toddle/every": {
|
|
471
|
+
"name": "Every",
|
|
472
|
+
"description": "Run a formula returns for all items in an Array.",
|
|
792
473
|
"arguments": [
|
|
793
474
|
{
|
|
794
|
-
"name": "
|
|
475
|
+
"name": "Array",
|
|
795
476
|
"formula": {
|
|
796
477
|
"type": "value",
|
|
797
|
-
"value":
|
|
478
|
+
"value": null
|
|
798
479
|
},
|
|
799
|
-
"description": "
|
|
480
|
+
"description": "The array of items to evaluate.",
|
|
800
481
|
"type": {
|
|
801
|
-
"type": "
|
|
482
|
+
"type": "Array"
|
|
802
483
|
}
|
|
803
484
|
},
|
|
804
485
|
{
|
|
805
|
-
"name": "
|
|
486
|
+
"name": "Formula",
|
|
487
|
+
"isFunction": true,
|
|
806
488
|
"formula": {
|
|
807
|
-
"type": "
|
|
808
|
-
"
|
|
489
|
+
"type": "path",
|
|
490
|
+
"path": [
|
|
491
|
+
"Args",
|
|
492
|
+
"item"
|
|
493
|
+
]
|
|
809
494
|
},
|
|
810
|
-
"description": "
|
|
495
|
+
"description": "Predicate formula for evaluating each item.",
|
|
811
496
|
"type": {
|
|
812
|
-
"type": "
|
|
497
|
+
"type": "Formula"
|
|
813
498
|
}
|
|
814
499
|
}
|
|
815
500
|
],
|
|
816
501
|
"output": {
|
|
817
|
-
"description": "Returns True if the
|
|
502
|
+
"description": "Returns True if the predicate formula returns true for all items in the Array, otherwise False.",
|
|
818
503
|
"type": {
|
|
819
|
-
"type": "
|
|
504
|
+
"type": "Array"
|
|
820
505
|
}
|
|
821
506
|
}
|
|
822
507
|
},
|
|
@@ -843,236 +528,238 @@
|
|
|
843
528
|
}
|
|
844
529
|
}
|
|
845
530
|
},
|
|
846
|
-
"@toddle/
|
|
847
|
-
"name": "
|
|
848
|
-
"description": "
|
|
531
|
+
"@toddle/startsWith": {
|
|
532
|
+
"name": "Starts with",
|
|
533
|
+
"description": "Check if a String has a given prefix.",
|
|
849
534
|
"arguments": [
|
|
850
535
|
{
|
|
851
|
-
"name": "
|
|
536
|
+
"name": "String",
|
|
852
537
|
"formula": {
|
|
853
538
|
"type": "value",
|
|
854
|
-
"value":
|
|
539
|
+
"value": ""
|
|
855
540
|
},
|
|
856
|
-
"description": "The
|
|
541
|
+
"description": "The String to check.",
|
|
857
542
|
"type": {
|
|
858
|
-
"type": "
|
|
543
|
+
"type": "String"
|
|
859
544
|
}
|
|
860
545
|
},
|
|
861
546
|
{
|
|
862
|
-
"name": "
|
|
547
|
+
"name": "Prefix",
|
|
863
548
|
"formula": {
|
|
864
549
|
"type": "value",
|
|
865
|
-
"value":
|
|
550
|
+
"value": ""
|
|
866
551
|
},
|
|
552
|
+
"description": "The prefix to check for.",
|
|
867
553
|
"type": {
|
|
868
|
-
"type": "
|
|
869
|
-
}
|
|
870
|
-
"description": "Number of items to remove."
|
|
554
|
+
"type": "String"
|
|
555
|
+
}
|
|
871
556
|
}
|
|
872
557
|
],
|
|
873
558
|
"output": {
|
|
874
|
-
"description": "
|
|
559
|
+
"description": "Returns True if the input String starts with the prefix, otherwise False",
|
|
875
560
|
"type": {
|
|
876
|
-
"type": "
|
|
561
|
+
"type": "Boolean"
|
|
877
562
|
}
|
|
878
563
|
}
|
|
879
564
|
},
|
|
880
|
-
"@toddle/
|
|
881
|
-
"name": "
|
|
882
|
-
"description": "
|
|
565
|
+
"@toddle/notEqual": {
|
|
566
|
+
"name": "Not equal",
|
|
567
|
+
"description": "Compute if values are not identical.",
|
|
883
568
|
"arguments": [
|
|
884
569
|
{
|
|
885
|
-
"name": "
|
|
886
|
-
"type": {
|
|
887
|
-
"type": "Array"
|
|
888
|
-
},
|
|
889
|
-
"description": "The Array to prepend to.",
|
|
570
|
+
"name": "First",
|
|
890
571
|
"formula": {
|
|
891
|
-
"type": "
|
|
892
|
-
"
|
|
572
|
+
"type": "value",
|
|
573
|
+
"value": ""
|
|
574
|
+
},
|
|
575
|
+
"description": "First value.",
|
|
576
|
+
"type": {
|
|
577
|
+
"type": "Any"
|
|
893
578
|
}
|
|
894
579
|
},
|
|
895
580
|
{
|
|
896
|
-
"name": "
|
|
897
|
-
"type": {
|
|
898
|
-
"type": "Any"
|
|
899
|
-
},
|
|
900
|
-
"description": "The item to prepend to the Array.",
|
|
581
|
+
"name": "Second",
|
|
901
582
|
"formula": {
|
|
902
583
|
"type": "value",
|
|
903
|
-
"value": "
|
|
584
|
+
"value": ""
|
|
585
|
+
},
|
|
586
|
+
"description": "Second value.",
|
|
587
|
+
"type": {
|
|
588
|
+
"type": "Any"
|
|
904
589
|
}
|
|
905
590
|
}
|
|
906
591
|
],
|
|
907
592
|
"output": {
|
|
908
|
-
"description": "
|
|
593
|
+
"description": "Returns True if the values are not identical, otherwise False.",
|
|
909
594
|
"type": {
|
|
910
|
-
"type": "
|
|
595
|
+
"type": "Any"
|
|
911
596
|
}
|
|
912
597
|
}
|
|
913
598
|
},
|
|
914
|
-
"@toddle/
|
|
915
|
-
"name": "
|
|
916
|
-
"description": "
|
|
599
|
+
"@toddle/timestamp": {
|
|
600
|
+
"name": "Timestamp",
|
|
601
|
+
"description": "Get the timestamp from a Date, e.g. 1633462980000.",
|
|
917
602
|
"arguments": [
|
|
918
603
|
{
|
|
919
|
-
"name": "
|
|
920
|
-
"
|
|
921
|
-
"type": "value",
|
|
922
|
-
"value": null
|
|
923
|
-
},
|
|
924
|
-
"description": "The input record.",
|
|
604
|
+
"name": "Date",
|
|
605
|
+
"description": "The date to get the timestamp from.",
|
|
925
606
|
"type": {
|
|
926
|
-
"type": "
|
|
927
|
-
}
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"name": "Path",
|
|
607
|
+
"type": "Date"
|
|
608
|
+
},
|
|
931
609
|
"formula": {
|
|
932
610
|
"type": "value",
|
|
933
|
-
"value":
|
|
934
|
-
},
|
|
935
|
-
"description": "The path can be either a Number (if the first argument is an array), a String, or an Array of strings. If an Array is given, the property at that path will be removed.",
|
|
936
|
-
"type": {
|
|
937
|
-
"type": "Array<Number \\| String> \\| Number \\| String"
|
|
611
|
+
"value": null
|
|
938
612
|
}
|
|
939
613
|
}
|
|
940
614
|
],
|
|
941
615
|
"output": {
|
|
942
|
-
"description": "
|
|
616
|
+
"description": "The timestamp from the date input.",
|
|
943
617
|
"type": {
|
|
944
|
-
"type": "
|
|
618
|
+
"type": "Number"
|
|
945
619
|
}
|
|
946
620
|
}
|
|
947
621
|
},
|
|
948
|
-
"@toddle/
|
|
949
|
-
"name": "
|
|
950
|
-
"description": "
|
|
622
|
+
"@toddle/decodeURIComponent": {
|
|
623
|
+
"name": "Decode URI Component",
|
|
624
|
+
"description": "Decode a URI component that was previously encoded with the Encode URI Component formula.",
|
|
951
625
|
"arguments": [
|
|
952
626
|
{
|
|
953
|
-
"name": "
|
|
627
|
+
"name": "EncodedURI",
|
|
954
628
|
"formula": {
|
|
955
629
|
"type": "value",
|
|
956
630
|
"value": null
|
|
957
631
|
},
|
|
958
|
-
"description": "The name of the cookie you want to get the value of.",
|
|
959
632
|
"type": {
|
|
960
633
|
"type": "String"
|
|
961
|
-
}
|
|
634
|
+
},
|
|
635
|
+
"description": "The encoded URI to decode."
|
|
962
636
|
}
|
|
963
637
|
],
|
|
964
638
|
"output": {
|
|
965
|
-
"description": "The
|
|
639
|
+
"description": "The decoded URI component.",
|
|
966
640
|
"type": {
|
|
967
641
|
"type": "String"
|
|
968
642
|
}
|
|
969
643
|
}
|
|
970
644
|
},
|
|
971
|
-
"@toddle/
|
|
972
|
-
"name": "
|
|
973
|
-
"description": "
|
|
645
|
+
"@toddle/boolean": {
|
|
646
|
+
"name": "Boolean",
|
|
647
|
+
"description": "Convert a value of any type to a Boolean.",
|
|
974
648
|
"arguments": [
|
|
975
649
|
{
|
|
976
|
-
"name": "
|
|
977
|
-
"
|
|
978
|
-
|
|
979
|
-
"
|
|
980
|
-
},
|
|
981
|
-
"description": "The number to be divided.",
|
|
982
|
-
"type": {
|
|
983
|
-
"type": "Number"
|
|
984
|
-
}
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"name": "Divider",
|
|
650
|
+
"name": "Input",
|
|
651
|
+
"description": "Value of any type.",
|
|
652
|
+
"type": {
|
|
653
|
+
"type": "Any"
|
|
654
|
+
},
|
|
988
655
|
"formula": {
|
|
989
656
|
"type": "value",
|
|
990
|
-
"value": 1
|
|
991
|
-
},
|
|
992
|
-
"description": "The number to divide by.",
|
|
993
|
-
"type": {
|
|
994
|
-
"type": "Number"
|
|
657
|
+
"value": "1"
|
|
995
658
|
}
|
|
996
659
|
}
|
|
997
660
|
],
|
|
998
661
|
"output": {
|
|
999
|
-
"description": "The
|
|
662
|
+
"description": "The input value converted to a Boolean. False and Null will return False, all other values will return True.",
|
|
1000
663
|
"type": {
|
|
1001
|
-
"type": "
|
|
664
|
+
"type": "Boolean"
|
|
1002
665
|
}
|
|
1003
666
|
}
|
|
1004
667
|
},
|
|
1005
|
-
"@toddle/
|
|
1006
|
-
"name": "
|
|
1007
|
-
"description": "Limit a value to a specified Min and Max value.",
|
|
668
|
+
"@toddle/dateFromString": {
|
|
669
|
+
"name": "Date From String",
|
|
1008
670
|
"arguments": [
|
|
1009
671
|
{
|
|
1010
|
-
"name": "
|
|
672
|
+
"name": "Date string",
|
|
673
|
+
"description": "A String representing a date, for example \"January 1, 1970\".",
|
|
1011
674
|
"type": {
|
|
1012
|
-
"type": "
|
|
675
|
+
"type": "String"
|
|
1013
676
|
},
|
|
1014
677
|
"formula": {
|
|
1015
678
|
"type": "value",
|
|
1016
|
-
"value":
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
|
|
679
|
+
"value": "January 1, 1970"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"description": "Convert a string to a Date.",
|
|
684
|
+
"output": {
|
|
685
|
+
"description": "The input value converted to a Date.",
|
|
686
|
+
"type": {
|
|
687
|
+
"type": "Date"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"@toddle/add": {
|
|
692
|
+
"name": "Add",
|
|
693
|
+
"arguments": [
|
|
1020
694
|
{
|
|
1021
|
-
"name": "
|
|
695
|
+
"name": "0",
|
|
696
|
+
"description": "Number to be added.",
|
|
1022
697
|
"type": {
|
|
1023
698
|
"type": "Number"
|
|
1024
699
|
},
|
|
1025
|
-
"description": "The smallest allowed Number.",
|
|
1026
700
|
"formula": {
|
|
1027
701
|
"type": "value",
|
|
1028
|
-
"value":
|
|
702
|
+
"value": 1
|
|
1029
703
|
}
|
|
1030
704
|
},
|
|
1031
705
|
{
|
|
1032
|
-
"name": "
|
|
706
|
+
"name": "1",
|
|
1033
707
|
"type": {
|
|
1034
708
|
"type": "Number"
|
|
1035
709
|
},
|
|
1036
|
-
"description": "
|
|
710
|
+
"description": "Number to be added.",
|
|
1037
711
|
"formula": {
|
|
1038
712
|
"type": "value",
|
|
1039
|
-
"value":
|
|
713
|
+
"value": 1
|
|
1040
714
|
}
|
|
1041
715
|
}
|
|
1042
716
|
],
|
|
717
|
+
"variableArguments": true,
|
|
718
|
+
"description": "Get the sum of multiple numbers.",
|
|
1043
719
|
"output": {
|
|
720
|
+
"description": "The sum of all the input numbers.",
|
|
1044
721
|
"type": {
|
|
1045
722
|
"type": "Number"
|
|
1046
|
-
}
|
|
1047
|
-
"description": "Returns the input value if between the specified Min and Max. Otherwise, it returns the Min or Max value."
|
|
723
|
+
}
|
|
1048
724
|
}
|
|
1049
725
|
},
|
|
1050
|
-
"@toddle/
|
|
1051
|
-
"name": "
|
|
1052
|
-
"description": "
|
|
726
|
+
"@toddle/modulo": {
|
|
727
|
+
"name": "Modulo",
|
|
728
|
+
"description": "Get the remainder when dividing two Numbers.",
|
|
1053
729
|
"arguments": [
|
|
1054
730
|
{
|
|
1055
|
-
"name": "
|
|
1056
|
-
"
|
|
1057
|
-
|
|
1058
|
-
"
|
|
731
|
+
"name": "Dividend",
|
|
732
|
+
"formula": {
|
|
733
|
+
"type": "value",
|
|
734
|
+
"value": 1
|
|
1059
735
|
},
|
|
736
|
+
"description": "The number to be divided.",
|
|
737
|
+
"type": {
|
|
738
|
+
"type": "Number"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "Divider",
|
|
1060
743
|
"formula": {
|
|
1061
|
-
"type": "
|
|
1062
|
-
"
|
|
744
|
+
"type": "value",
|
|
745
|
+
"value": 1
|
|
746
|
+
},
|
|
747
|
+
"description": "The number to divide by.",
|
|
748
|
+
"type": {
|
|
749
|
+
"type": "Number"
|
|
1063
750
|
}
|
|
1064
751
|
}
|
|
1065
752
|
],
|
|
1066
753
|
"output": {
|
|
1067
|
-
"description": "
|
|
754
|
+
"description": "The remainder when the Dividend is divided by the Divider.",
|
|
1068
755
|
"type": {
|
|
1069
|
-
"type": "
|
|
756
|
+
"type": "Number"
|
|
1070
757
|
}
|
|
1071
758
|
}
|
|
1072
759
|
},
|
|
1073
|
-
"@toddle/
|
|
1074
|
-
"name": "
|
|
1075
|
-
"description": "
|
|
760
|
+
"@toddle/keyBy": {
|
|
761
|
+
"name": "Key by",
|
|
762
|
+
"description": "Organize an Array of items into an Object based on a Key formula.",
|
|
1076
763
|
"arguments": [
|
|
1077
764
|
{
|
|
1078
765
|
"name": "Array",
|
|
@@ -1080,148 +767,95 @@
|
|
|
1080
767
|
"type": "value",
|
|
1081
768
|
"value": null
|
|
1082
769
|
},
|
|
1083
|
-
"description": "
|
|
770
|
+
"description": "Array of items.",
|
|
1084
771
|
"type": {
|
|
1085
772
|
"type": "Array"
|
|
1086
773
|
}
|
|
1087
|
-
}
|
|
1088
|
-
],
|
|
1089
|
-
"output": {
|
|
1090
|
-
"type": {
|
|
1091
|
-
"type": "Array"
|
|
1092
774
|
},
|
|
1093
|
-
"description": "The reversed Array."
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
|
-
"@toddle/timestamp": {
|
|
1097
|
-
"name": "Timestamp",
|
|
1098
|
-
"description": "Get the timestamp from a Date, e.g. 1633462980000.",
|
|
1099
|
-
"arguments": [
|
|
1100
775
|
{
|
|
1101
|
-
"name": "
|
|
1102
|
-
"
|
|
1103
|
-
"type": {
|
|
1104
|
-
"type": "Date"
|
|
1105
|
-
},
|
|
776
|
+
"name": "Formula",
|
|
777
|
+
"isFunction": true,
|
|
1106
778
|
"formula": {
|
|
1107
779
|
"type": "value",
|
|
1108
780
|
"value": null
|
|
781
|
+
},
|
|
782
|
+
"description": "The key formula used to index the items. The String returned from the formula will match the key in the output Object.",
|
|
783
|
+
"type": {
|
|
784
|
+
"type": "Formula"
|
|
1109
785
|
}
|
|
1110
786
|
}
|
|
1111
787
|
],
|
|
1112
788
|
"output": {
|
|
1113
|
-
"description": "
|
|
789
|
+
"description": "An Object where each key matches a value returned by the key formula, and each value is the item that String was returned for.",
|
|
1114
790
|
"type": {
|
|
1115
|
-
"type": "
|
|
791
|
+
"type": "Object"
|
|
1116
792
|
}
|
|
1117
793
|
}
|
|
1118
794
|
},
|
|
1119
|
-
"@toddle/
|
|
1120
|
-
"name": "
|
|
795
|
+
"@toddle/dateFromTimestamp": {
|
|
796
|
+
"name": "Date From Timestamp",
|
|
1121
797
|
"arguments": [
|
|
1122
798
|
{
|
|
1123
|
-
"name": "
|
|
1124
|
-
"
|
|
1125
|
-
"type": "value",
|
|
1126
|
-
"value": "Input value"
|
|
1127
|
-
},
|
|
799
|
+
"name": "Timestamp",
|
|
800
|
+
"description": "A Number in milliseconds since 1st January, 1970 (EPOCH).",
|
|
1128
801
|
"type": {
|
|
1129
|
-
"type": "
|
|
802
|
+
"type": "Number"
|
|
1130
803
|
},
|
|
1131
|
-
"description": "The input data encoded as base64."
|
|
1132
|
-
}
|
|
1133
|
-
],
|
|
1134
|
-
"description": "Deocde a base64 string to utf-8.",
|
|
1135
|
-
"output": {
|
|
1136
|
-
"description": "The decoded string.",
|
|
1137
|
-
"type": {
|
|
1138
|
-
"type": "String"
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
"@toddle/branchName": {
|
|
1143
|
-
"name": "Branch Name",
|
|
1144
|
-
"description": "Get the name of the current branch. For production, the branch name is 'main'.",
|
|
1145
|
-
"arguments": [],
|
|
1146
|
-
"output": {
|
|
1147
|
-
"description": "Returns the name of the current branch.",
|
|
1148
|
-
"type": {
|
|
1149
|
-
"type": "String"
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
},
|
|
1153
|
-
"@toddle/typeOf": {
|
|
1154
|
-
"name": "Type of",
|
|
1155
|
-
"description": "Get the type of a given input.",
|
|
1156
|
-
"arguments": [
|
|
1157
|
-
{
|
|
1158
|
-
"name": "Input",
|
|
1159
804
|
"formula": {
|
|
1160
805
|
"type": "value",
|
|
1161
|
-
"value":
|
|
1162
|
-
},
|
|
1163
|
-
"description": "The input value.",
|
|
1164
|
-
"type": {
|
|
1165
|
-
"type": "Any"
|
|
806
|
+
"value": 1687787245933
|
|
1166
807
|
}
|
|
1167
808
|
}
|
|
1168
809
|
],
|
|
810
|
+
"description": "Convert a timestamp (milliseconds) to a Date.",
|
|
1169
811
|
"output": {
|
|
1170
|
-
"description": "The
|
|
812
|
+
"description": "The input value converted to a Date.",
|
|
1171
813
|
"type": {
|
|
1172
|
-
"type": "
|
|
814
|
+
"type": "Date"
|
|
1173
815
|
}
|
|
1174
816
|
}
|
|
1175
817
|
},
|
|
1176
|
-
"@toddle/
|
|
1177
|
-
"name": "
|
|
1178
|
-
"description": "
|
|
818
|
+
"@toddle/find": {
|
|
819
|
+
"name": "Find",
|
|
820
|
+
"description": "Search through an Array of items and apply a formula to each item, to return the first item where the provided formula returns True.",
|
|
1179
821
|
"arguments": [
|
|
1180
822
|
{
|
|
1181
|
-
"name": "
|
|
823
|
+
"name": "Array",
|
|
1182
824
|
"formula": {
|
|
1183
825
|
"type": "value",
|
|
1184
826
|
"value": null
|
|
1185
827
|
},
|
|
1186
|
-
"description": "The
|
|
828
|
+
"description": "The array to search through",
|
|
1187
829
|
"type": {
|
|
1188
|
-
"type": "
|
|
830
|
+
"type": "Array"
|
|
1189
831
|
}
|
|
1190
832
|
},
|
|
1191
833
|
{
|
|
1192
|
-
"name": "
|
|
1193
|
-
"
|
|
1194
|
-
"type": {
|
|
1195
|
-
"type": "Any"
|
|
1196
|
-
},
|
|
834
|
+
"name": "Formula",
|
|
835
|
+
"isFunction": true,
|
|
1197
836
|
"formula": {
|
|
1198
|
-
"type": "
|
|
1199
|
-
"
|
|
837
|
+
"type": "path",
|
|
838
|
+
"path": [
|
|
839
|
+
"Args",
|
|
840
|
+
"item"
|
|
841
|
+
]
|
|
842
|
+
},
|
|
843
|
+
"description": "The predicate formula that each item in the array is passed to.",
|
|
844
|
+
"type": {
|
|
845
|
+
"type": "Formula"
|
|
1200
846
|
}
|
|
1201
847
|
}
|
|
1202
848
|
],
|
|
1203
|
-
"variableArguments": true,
|
|
1204
849
|
"output": {
|
|
1205
|
-
"description": "
|
|
850
|
+
"description": "The first item in the Array where the formula returns True. Returns Null if the predicate formula did not return True for any item.",
|
|
1206
851
|
"type": {
|
|
1207
852
|
"type": "Any"
|
|
1208
853
|
}
|
|
1209
854
|
}
|
|
1210
855
|
},
|
|
1211
|
-
"@toddle/
|
|
1212
|
-
"name": "
|
|
1213
|
-
"description": "
|
|
1214
|
-
"arguments": [],
|
|
1215
|
-
"output": {
|
|
1216
|
-
"description": "An array with the preferred languages for the user.",
|
|
1217
|
-
"type": {
|
|
1218
|
-
"type": "Array"
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
},
|
|
1222
|
-
"@toddle/findIndex": {
|
|
1223
|
-
"name": "Find index",
|
|
1224
|
-
"description": "Search through an Array of items and apply a formula to each item, to return the index of the first item where the formula returns True.",
|
|
856
|
+
"@toddle/map": {
|
|
857
|
+
"name": "Map",
|
|
858
|
+
"description": "Run a formula on each item of an Array to return a new Array.",
|
|
1225
859
|
"arguments": [
|
|
1226
860
|
{
|
|
1227
861
|
"name": "Array",
|
|
@@ -1229,7 +863,7 @@
|
|
|
1229
863
|
"type": "value",
|
|
1230
864
|
"value": null
|
|
1231
865
|
},
|
|
1232
|
-
"description": "The
|
|
866
|
+
"description": "The Array of items.",
|
|
1233
867
|
"type": {
|
|
1234
868
|
"type": "Array"
|
|
1235
869
|
}
|
|
@@ -1244,607 +878,635 @@
|
|
|
1244
878
|
"item"
|
|
1245
879
|
]
|
|
1246
880
|
},
|
|
1247
|
-
"description": "The
|
|
881
|
+
"description": "The formula to run on each item of the Array.",
|
|
1248
882
|
"type": {
|
|
1249
883
|
"type": "Formula"
|
|
1250
884
|
}
|
|
1251
885
|
}
|
|
1252
886
|
],
|
|
1253
887
|
"output": {
|
|
1254
|
-
"description": "
|
|
888
|
+
"description": "A new Array containing all the values returned from running the provided formula on each item in the provided input Array.",
|
|
889
|
+
"type": {
|
|
890
|
+
"type": "Array"
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
"@toddle/number": {
|
|
895
|
+
"name": "Number",
|
|
896
|
+
"description": "Convert a value of any type to a Number.",
|
|
897
|
+
"arguments": [
|
|
898
|
+
{
|
|
899
|
+
"name": "Input",
|
|
900
|
+
"description": "Value of any type",
|
|
901
|
+
"type": {
|
|
902
|
+
"type": "Any"
|
|
903
|
+
},
|
|
904
|
+
"formula": {
|
|
905
|
+
"type": "value",
|
|
906
|
+
"value": "1"
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
],
|
|
910
|
+
"output": {
|
|
911
|
+
"description": "The input value converted to a Number.",
|
|
1255
912
|
"type": {
|
|
1256
|
-
"type": "
|
|
913
|
+
"type": "Number"
|
|
1257
914
|
}
|
|
1258
915
|
}
|
|
1259
916
|
},
|
|
1260
|
-
"@toddle/
|
|
1261
|
-
"name": "
|
|
1262
|
-
"description": "
|
|
917
|
+
"@toddle/matches": {
|
|
918
|
+
"name": "Matches",
|
|
919
|
+
"description": "Finds the (global) matches in a String based on a regular expression.",
|
|
1263
920
|
"arguments": [
|
|
1264
921
|
{
|
|
922
|
+
"name": "Input",
|
|
1265
923
|
"formula": {
|
|
1266
924
|
"type": "value",
|
|
1267
|
-
"value":
|
|
925
|
+
"value": ""
|
|
1268
926
|
},
|
|
1269
|
-
"
|
|
1270
|
-
"description": "The smallest value in the list.",
|
|
927
|
+
"description": "The string to search for matches in.",
|
|
1271
928
|
"type": {
|
|
1272
|
-
"type": "
|
|
929
|
+
"type": "String"
|
|
1273
930
|
}
|
|
1274
931
|
},
|
|
1275
932
|
{
|
|
1276
|
-
"name": "
|
|
933
|
+
"name": "Regular expression",
|
|
1277
934
|
"formula": {
|
|
1278
935
|
"type": "value",
|
|
1279
|
-
"value":
|
|
936
|
+
"value": ""
|
|
1280
937
|
},
|
|
1281
|
-
"description": "The
|
|
938
|
+
"description": "The regular expression to use for matching.",
|
|
1282
939
|
"type": {
|
|
1283
|
-
"type": "
|
|
940
|
+
"type": "String"
|
|
1284
941
|
}
|
|
1285
|
-
}
|
|
1286
|
-
],
|
|
1287
|
-
"output": {
|
|
1288
|
-
"description": "An Array containing all the numbers between Min and Max, inclusive.",
|
|
1289
|
-
"type": {
|
|
1290
|
-
"type": "Array"
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
|
-
"@toddle/join": {
|
|
1295
|
-
"name": "Join",
|
|
1296
|
-
"description": "Combine an Array of Strings in to a single String.",
|
|
1297
|
-
"arguments": [
|
|
942
|
+
},
|
|
1298
943
|
{
|
|
1299
|
-
"name": "
|
|
944
|
+
"name": "Global search",
|
|
1300
945
|
"formula": {
|
|
1301
946
|
"type": "value",
|
|
1302
|
-
"value":
|
|
947
|
+
"value": true
|
|
1303
948
|
},
|
|
1304
|
-
"description": "
|
|
949
|
+
"description": "Test the regular expression against all possible matches in a string.",
|
|
1305
950
|
"type": {
|
|
1306
|
-
"type": "
|
|
951
|
+
"type": "Boolean"
|
|
1307
952
|
}
|
|
1308
953
|
},
|
|
1309
954
|
{
|
|
1310
|
-
"name": "
|
|
955
|
+
"name": "Case insensitive",
|
|
1311
956
|
"formula": {
|
|
1312
957
|
"type": "value",
|
|
1313
|
-
"value":
|
|
958
|
+
"value": false
|
|
1314
959
|
},
|
|
1315
|
-
"description": "
|
|
960
|
+
"description": "Ignore case while attempting a match in a string.",
|
|
1316
961
|
"type": {
|
|
1317
|
-
"type": "
|
|
962
|
+
"type": "Boolean"
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "Multi line",
|
|
967
|
+
"formula": {
|
|
968
|
+
"type": "value",
|
|
969
|
+
"value": false
|
|
970
|
+
},
|
|
971
|
+
"description": "Treat multiline strings as multiple lines.",
|
|
972
|
+
"type": {
|
|
973
|
+
"type": "Boolean"
|
|
1318
974
|
}
|
|
1319
975
|
}
|
|
1320
976
|
],
|
|
1321
977
|
"output": {
|
|
1322
|
-
"description": "
|
|
978
|
+
"description": "An Array of Strings",
|
|
1323
979
|
"type": {
|
|
1324
|
-
"type": "
|
|
980
|
+
"type": "Array"
|
|
1325
981
|
}
|
|
1326
982
|
}
|
|
1327
983
|
},
|
|
1328
|
-
"@toddle/
|
|
1329
|
-
"name": "
|
|
1330
|
-
"description": "
|
|
984
|
+
"@toddle/prepend": {
|
|
985
|
+
"name": "Prepend",
|
|
986
|
+
"description": "Add an element to the start of an Array.",
|
|
1331
987
|
"arguments": [
|
|
1332
988
|
{
|
|
1333
|
-
"name": "
|
|
1334
|
-
"description": "Number to round up.",
|
|
989
|
+
"name": "Array",
|
|
1335
990
|
"type": {
|
|
1336
|
-
"type": "
|
|
991
|
+
"type": "Array"
|
|
1337
992
|
},
|
|
993
|
+
"description": "The Array to prepend to.",
|
|
1338
994
|
"formula": {
|
|
1339
|
-
"type": "
|
|
1340
|
-
"
|
|
995
|
+
"type": "array",
|
|
996
|
+
"arguments": []
|
|
1341
997
|
}
|
|
1342
998
|
},
|
|
1343
999
|
{
|
|
1344
|
-
"name": "
|
|
1345
|
-
"description": "Number of decimals to round to.",
|
|
1000
|
+
"name": "Item",
|
|
1346
1001
|
"type": {
|
|
1347
|
-
"type": "
|
|
1002
|
+
"type": "Any"
|
|
1348
1003
|
},
|
|
1004
|
+
"description": "The item to prepend to the Array.",
|
|
1349
1005
|
"formula": {
|
|
1350
1006
|
"type": "value",
|
|
1351
|
-
"value":
|
|
1007
|
+
"value": "Item"
|
|
1352
1008
|
}
|
|
1353
1009
|
}
|
|
1354
1010
|
],
|
|
1355
1011
|
"output": {
|
|
1012
|
+
"description": "A new Array containing the new item and all the elements from the input Array.",
|
|
1356
1013
|
"type": {
|
|
1357
|
-
"type": "
|
|
1358
|
-
}
|
|
1359
|
-
"description": "The rounded Number."
|
|
1014
|
+
"type": "Array"
|
|
1015
|
+
}
|
|
1360
1016
|
}
|
|
1361
1017
|
},
|
|
1362
|
-
"@toddle/
|
|
1363
|
-
"name": "
|
|
1364
|
-
"description": "
|
|
1018
|
+
"@toddle/fromEntries": {
|
|
1019
|
+
"name": "From entries",
|
|
1020
|
+
"description": "Transform an Array of key-value pairs into an Object. This formula is the reverse of Entries.",
|
|
1365
1021
|
"arguments": [
|
|
1366
1022
|
{
|
|
1367
|
-
"name": "
|
|
1023
|
+
"name": "Array",
|
|
1368
1024
|
"formula": {
|
|
1369
1025
|
"type": "value",
|
|
1370
1026
|
"value": null
|
|
1371
1027
|
},
|
|
1372
|
-
"description": "
|
|
1028
|
+
"description": "An Array of Objects. Each Object should have a `key` and `value` property named `key` and `value` respectively e.g. `[{ key: 'yourKey', value: 'yourValue' }]`.",
|
|
1373
1029
|
"type": {
|
|
1374
|
-
"type": "
|
|
1030
|
+
"type": "Array"
|
|
1375
1031
|
}
|
|
1376
1032
|
}
|
|
1377
1033
|
],
|
|
1378
1034
|
"output": {
|
|
1379
|
-
"description": "
|
|
1035
|
+
"description": "An Object containing all entries from the input Array in the format `{yourKey: yourValue}`.",
|
|
1380
1036
|
"type": {
|
|
1381
|
-
"type": "
|
|
1037
|
+
"type": "Object"
|
|
1382
1038
|
}
|
|
1383
1039
|
}
|
|
1384
1040
|
},
|
|
1385
|
-
"@toddle/
|
|
1386
|
-
"name": "
|
|
1387
|
-
"description": "
|
|
1041
|
+
"@toddle/string": {
|
|
1042
|
+
"name": "String",
|
|
1043
|
+
"description": "Convert a value of any type to a String.",
|
|
1388
1044
|
"arguments": [
|
|
1389
1045
|
{
|
|
1390
|
-
"name": "
|
|
1391
|
-
"
|
|
1392
|
-
"type": "value",
|
|
1393
|
-
"value": []
|
|
1394
|
-
},
|
|
1046
|
+
"name": "Input",
|
|
1047
|
+
"description": "Value of any type.",
|
|
1395
1048
|
"type": {
|
|
1396
|
-
"type": "
|
|
1049
|
+
"type": "Any"
|
|
1397
1050
|
},
|
|
1398
|
-
"
|
|
1051
|
+
"formula": {
|
|
1052
|
+
"type": "value",
|
|
1053
|
+
"value": "1"
|
|
1054
|
+
}
|
|
1399
1055
|
}
|
|
1400
1056
|
],
|
|
1401
1057
|
"output": {
|
|
1402
|
-
"description": "The
|
|
1058
|
+
"description": "The input value converted to a String",
|
|
1403
1059
|
"type": {
|
|
1404
|
-
"type": "
|
|
1060
|
+
"type": "String"
|
|
1405
1061
|
}
|
|
1406
1062
|
}
|
|
1407
1063
|
},
|
|
1408
|
-
"@toddle/
|
|
1409
|
-
"name": "
|
|
1410
|
-
"description": "
|
|
1064
|
+
"@toddle/append": {
|
|
1065
|
+
"name": "Append",
|
|
1066
|
+
"description": "Add an element to the end of an Array.",
|
|
1411
1067
|
"arguments": [
|
|
1412
1068
|
{
|
|
1413
1069
|
"name": "Array",
|
|
1414
|
-
"formula": {
|
|
1415
|
-
"type": "value",
|
|
1416
|
-
"value": ""
|
|
1417
|
-
},
|
|
1418
|
-
"description": "The value to search.",
|
|
1419
1070
|
"type": {
|
|
1420
|
-
"type": "Array
|
|
1071
|
+
"type": "Array"
|
|
1072
|
+
},
|
|
1073
|
+
"description": "The Array to append to.",
|
|
1074
|
+
"formula": {
|
|
1075
|
+
"type": "array",
|
|
1076
|
+
"arguments": []
|
|
1421
1077
|
}
|
|
1422
1078
|
},
|
|
1423
1079
|
{
|
|
1424
1080
|
"name": "Item",
|
|
1425
|
-
"formula": {
|
|
1426
|
-
"type": "value",
|
|
1427
|
-
"value": ""
|
|
1428
|
-
},
|
|
1429
|
-
"description": "The item or substring to search for.",
|
|
1430
1081
|
"type": {
|
|
1431
1082
|
"type": "Any"
|
|
1083
|
+
},
|
|
1084
|
+
"description": "The item to append to the Array.",
|
|
1085
|
+
"formula": {
|
|
1086
|
+
"type": "value",
|
|
1087
|
+
"value": "Item"
|
|
1432
1088
|
}
|
|
1433
1089
|
}
|
|
1434
1090
|
],
|
|
1435
1091
|
"output": {
|
|
1436
|
-
"description": "
|
|
1092
|
+
"description": "A new Array containing all elements from the input Array, including the new item.",
|
|
1437
1093
|
"type": {
|
|
1438
|
-
"type": "
|
|
1094
|
+
"type": "Array"
|
|
1439
1095
|
}
|
|
1440
1096
|
}
|
|
1441
1097
|
},
|
|
1442
|
-
"@toddle/
|
|
1443
|
-
"name": "
|
|
1444
|
-
"description": "
|
|
1098
|
+
"@toddle/greaterOrEqueal": {
|
|
1099
|
+
"name": "Greater or equal",
|
|
1100
|
+
"description": "Compute whether a value is larger than or equal to another value.",
|
|
1445
1101
|
"arguments": [
|
|
1446
1102
|
{
|
|
1447
|
-
"name": "
|
|
1103
|
+
"name": "First",
|
|
1448
1104
|
"formula": {
|
|
1449
1105
|
"type": "value",
|
|
1450
|
-
"value":
|
|
1106
|
+
"value": ""
|
|
1451
1107
|
},
|
|
1452
|
-
"description": "
|
|
1108
|
+
"description": "First value to be compared.",
|
|
1453
1109
|
"type": {
|
|
1454
|
-
"type": "
|
|
1110
|
+
"type": "Number"
|
|
1455
1111
|
}
|
|
1456
1112
|
},
|
|
1457
1113
|
{
|
|
1458
|
-
"name": "
|
|
1114
|
+
"name": "Second",
|
|
1459
1115
|
"formula": {
|
|
1460
1116
|
"type": "value",
|
|
1461
|
-
"value":
|
|
1117
|
+
"value": ""
|
|
1462
1118
|
},
|
|
1463
|
-
"description": "
|
|
1119
|
+
"description": "Second value to be compared.",
|
|
1464
1120
|
"type": {
|
|
1465
|
-
"type": "
|
|
1121
|
+
"type": "Number"
|
|
1466
1122
|
}
|
|
1467
1123
|
}
|
|
1468
1124
|
],
|
|
1469
1125
|
"output": {
|
|
1470
|
-
"description": "
|
|
1126
|
+
"description": "Returns True if the first Number is larger than or equal to the second Number.",
|
|
1471
1127
|
"type": {
|
|
1472
|
-
"type": "
|
|
1128
|
+
"type": "Boolean"
|
|
1473
1129
|
}
|
|
1474
1130
|
}
|
|
1475
1131
|
},
|
|
1476
|
-
"@toddle/
|
|
1477
|
-
"name": "
|
|
1478
|
-
"description": "
|
|
1132
|
+
"@toddle/encodeURIComponent": {
|
|
1133
|
+
"name": "Encode URI Component",
|
|
1134
|
+
"description": "Encode a URI component, escaping certain characters to their UTF-8 representation.",
|
|
1479
1135
|
"arguments": [
|
|
1480
1136
|
{
|
|
1481
|
-
"name": "
|
|
1482
|
-
"formula": {
|
|
1483
|
-
"type": "value",
|
|
1484
|
-
"value": null
|
|
1485
|
-
},
|
|
1486
|
-
"description": "Input Number.",
|
|
1487
|
-
"type": {
|
|
1488
|
-
"type": "Number"
|
|
1489
|
-
}
|
|
1490
|
-
},
|
|
1491
|
-
{
|
|
1492
|
-
"name": "1",
|
|
1137
|
+
"name": "URIComponent",
|
|
1493
1138
|
"formula": {
|
|
1494
1139
|
"type": "value",
|
|
1495
1140
|
"value": null
|
|
1496
1141
|
},
|
|
1497
|
-
"description": "
|
|
1142
|
+
"description": "The URI component to encode.",
|
|
1498
1143
|
"type": {
|
|
1499
|
-
"type": "
|
|
1144
|
+
"type": "String"
|
|
1500
1145
|
}
|
|
1501
1146
|
}
|
|
1502
1147
|
],
|
|
1503
|
-
"variableArguments": true,
|
|
1504
1148
|
"output": {
|
|
1505
|
-
"description": "The
|
|
1149
|
+
"description": "The encoded URI component.",
|
|
1506
1150
|
"type": {
|
|
1507
|
-
"type": "
|
|
1151
|
+
"type": "String"
|
|
1508
1152
|
}
|
|
1509
1153
|
}
|
|
1510
1154
|
},
|
|
1511
|
-
"@toddle/
|
|
1512
|
-
"name": "
|
|
1513
|
-
"description": "Get the square root of a Number.",
|
|
1155
|
+
"@toddle/formatDate": {
|
|
1156
|
+
"name": "Format Date",
|
|
1514
1157
|
"arguments": [
|
|
1515
1158
|
{
|
|
1516
|
-
"name": "
|
|
1159
|
+
"name": "Date",
|
|
1160
|
+
"description": "Date to format",
|
|
1161
|
+
"type": {
|
|
1162
|
+
"type": "Date"
|
|
1163
|
+
},
|
|
1164
|
+
"formula": {
|
|
1165
|
+
"type": "Date",
|
|
1166
|
+
"value": null
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "Locale(s)",
|
|
1171
|
+
"description": "Optional locale to use for formatting the Date, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
1172
|
+
"type": {
|
|
1173
|
+
"type": "Array \\| String"
|
|
1174
|
+
},
|
|
1175
|
+
"formula": {
|
|
1176
|
+
"type": "value",
|
|
1177
|
+
"value": null
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "Options",
|
|
1182
|
+
"description": "Optional Object for configuring the formatting of the output. See the [DateTimeFormat syntax on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#syntax).",
|
|
1183
|
+
"type": {
|
|
1184
|
+
"type": "Object"
|
|
1185
|
+
},
|
|
1517
1186
|
"formula": {
|
|
1518
1187
|
"type": "value",
|
|
1519
|
-
"value":
|
|
1520
|
-
},
|
|
1521
|
-
"description": "The input Number.",
|
|
1522
|
-
"type": {
|
|
1523
|
-
"type": "Number"
|
|
1188
|
+
"value": null
|
|
1524
1189
|
}
|
|
1525
1190
|
}
|
|
1526
1191
|
],
|
|
1192
|
+
"description": "Format a date using the Intl.DateTimeFormat API. See the [DateTimeFormat docs on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat).",
|
|
1527
1193
|
"output": {
|
|
1528
|
-
"description": "The
|
|
1194
|
+
"description": "The Date input formatted as a String.",
|
|
1529
1195
|
"type": {
|
|
1530
|
-
"type": "
|
|
1196
|
+
"type": "String"
|
|
1531
1197
|
}
|
|
1532
1198
|
}
|
|
1533
1199
|
},
|
|
1534
|
-
"@toddle/
|
|
1535
|
-
"name": "
|
|
1536
|
-
"description": "
|
|
1537
|
-
"cache": false,
|
|
1200
|
+
"@toddle/not": {
|
|
1201
|
+
"name": "Not",
|
|
1202
|
+
"description": "Get the Boolean opposite of an input value.",
|
|
1538
1203
|
"arguments": [
|
|
1539
1204
|
{
|
|
1540
|
-
"name": "
|
|
1205
|
+
"name": "Input",
|
|
1541
1206
|
"formula": {
|
|
1542
1207
|
"type": "value",
|
|
1543
|
-
"value":
|
|
1208
|
+
"value": true
|
|
1544
1209
|
},
|
|
1545
|
-
"description": "The
|
|
1210
|
+
"description": "The input value.",
|
|
1546
1211
|
"type": {
|
|
1547
|
-
"type": "
|
|
1212
|
+
"type": "Boolean"
|
|
1548
1213
|
}
|
|
1549
1214
|
}
|
|
1550
1215
|
],
|
|
1551
1216
|
"output": {
|
|
1552
|
-
"description": "
|
|
1217
|
+
"description": "Returns True if the input value is False, and False if the input value is True.",
|
|
1553
1218
|
"type": {
|
|
1554
|
-
"type": "
|
|
1219
|
+
"type": "Boolean"
|
|
1555
1220
|
}
|
|
1556
1221
|
}
|
|
1557
1222
|
},
|
|
1558
|
-
"@toddle/
|
|
1559
|
-
"name": "
|
|
1560
|
-
"description": "
|
|
1223
|
+
"@toddle/logarithm": {
|
|
1224
|
+
"name": "Logarithm",
|
|
1225
|
+
"description": "Return the logarithm of a Number.",
|
|
1561
1226
|
"arguments": [
|
|
1562
1227
|
{
|
|
1563
|
-
"name": "
|
|
1228
|
+
"name": "Number",
|
|
1564
1229
|
"formula": {
|
|
1565
1230
|
"type": "value",
|
|
1566
|
-
"value":
|
|
1231
|
+
"value": 1
|
|
1567
1232
|
},
|
|
1233
|
+
"description": "A Number greater than or equal to 0.",
|
|
1568
1234
|
"type": {
|
|
1569
1235
|
"type": "Number"
|
|
1570
|
-
}
|
|
1571
|
-
"description": "The input Number."
|
|
1236
|
+
}
|
|
1572
1237
|
}
|
|
1573
1238
|
],
|
|
1574
1239
|
"output": {
|
|
1575
|
-
"description": "The absolute value of the input.",
|
|
1576
1240
|
"type": {
|
|
1577
1241
|
"type": "Number"
|
|
1578
|
-
}
|
|
1242
|
+
},
|
|
1243
|
+
"description": "The natural logarithm of the Number."
|
|
1579
1244
|
}
|
|
1580
1245
|
},
|
|
1581
|
-
"@toddle/
|
|
1582
|
-
"name": "
|
|
1583
|
-
"description": "
|
|
1246
|
+
"@toddle/set": {
|
|
1247
|
+
"name": "Set",
|
|
1248
|
+
"description": "Set a value in an Object or Array based on a specified path.",
|
|
1584
1249
|
"arguments": [
|
|
1585
1250
|
{
|
|
1586
|
-
"name": "
|
|
1251
|
+
"name": "Object",
|
|
1587
1252
|
"formula": {
|
|
1588
1253
|
"type": "value",
|
|
1589
|
-
"value":
|
|
1254
|
+
"value": null
|
|
1590
1255
|
},
|
|
1591
|
-
"description": "The
|
|
1256
|
+
"description": "The input Object.",
|
|
1592
1257
|
"type": {
|
|
1593
|
-
"type": "
|
|
1258
|
+
"type": "Object"
|
|
1594
1259
|
}
|
|
1595
1260
|
},
|
|
1596
1261
|
{
|
|
1597
|
-
"name": "
|
|
1262
|
+
"name": "Path",
|
|
1598
1263
|
"formula": {
|
|
1599
1264
|
"type": "value",
|
|
1600
|
-
"value":
|
|
1265
|
+
"value": "Key"
|
|
1601
1266
|
},
|
|
1602
|
-
"description": "The
|
|
1267
|
+
"description": "The Path can be either a Number, a String or an Array of Strings.",
|
|
1603
1268
|
"type": {
|
|
1604
|
-
"type": "Number"
|
|
1269
|
+
"type": "Array \\| Number \\| String"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"name": "Value",
|
|
1274
|
+
"formula": {
|
|
1275
|
+
"type": "value",
|
|
1276
|
+
"value": "Item"
|
|
1277
|
+
},
|
|
1278
|
+
"description": "The value to set.",
|
|
1279
|
+
"type": {
|
|
1280
|
+
"type": "Any"
|
|
1605
1281
|
}
|
|
1606
1282
|
}
|
|
1607
1283
|
],
|
|
1608
1284
|
"output": {
|
|
1609
|
-
"description": "The
|
|
1285
|
+
"description": "The input Object with the new field.",
|
|
1610
1286
|
"type": {
|
|
1611
|
-
"type": "
|
|
1287
|
+
"type": "Object"
|
|
1612
1288
|
}
|
|
1613
1289
|
}
|
|
1614
1290
|
},
|
|
1615
|
-
"@toddle/
|
|
1616
|
-
"name": "
|
|
1617
|
-
"description": "
|
|
1291
|
+
"@toddle/deleteKey": {
|
|
1292
|
+
"name": "Delete",
|
|
1293
|
+
"description": "Return a copy of the input Object or Array without the specified key.",
|
|
1618
1294
|
"arguments": [
|
|
1619
1295
|
{
|
|
1620
|
-
"name": "
|
|
1296
|
+
"name": "Object",
|
|
1621
1297
|
"formula": {
|
|
1622
1298
|
"type": "value",
|
|
1623
1299
|
"value": null
|
|
1624
1300
|
},
|
|
1625
|
-
"description": "
|
|
1301
|
+
"description": "The input record.",
|
|
1626
1302
|
"type": {
|
|
1627
|
-
"type": "Array"
|
|
1303
|
+
"type": "Array \\| Object"
|
|
1628
1304
|
}
|
|
1629
1305
|
},
|
|
1630
1306
|
{
|
|
1631
|
-
"name": "
|
|
1632
|
-
"isFunction": true,
|
|
1307
|
+
"name": "Path",
|
|
1633
1308
|
"formula": {
|
|
1634
1309
|
"type": "value",
|
|
1635
|
-
"value":
|
|
1310
|
+
"value": "Item"
|
|
1636
1311
|
},
|
|
1637
|
-
"description": "The
|
|
1312
|
+
"description": "The path can be either a Number (if the first argument is an array), a String, or an Array of strings. If an Array is given, the property at that path will be removed.",
|
|
1638
1313
|
"type": {
|
|
1639
|
-
"type": "
|
|
1314
|
+
"type": "Array<Number \\| String> \\| Number \\| String"
|
|
1640
1315
|
}
|
|
1641
1316
|
}
|
|
1642
1317
|
],
|
|
1643
1318
|
"output": {
|
|
1644
|
-
"description": "
|
|
1319
|
+
"description": "A copy of the record without the property specified in the Path.",
|
|
1645
1320
|
"type": {
|
|
1646
1321
|
"type": "Object"
|
|
1647
1322
|
}
|
|
1648
1323
|
}
|
|
1649
1324
|
},
|
|
1650
|
-
"@toddle/
|
|
1651
|
-
"name": "
|
|
1652
|
-
"description": "
|
|
1325
|
+
"@toddle/takeLast": {
|
|
1326
|
+
"name": "Take last",
|
|
1327
|
+
"description": "Take items from the end of an Array or String.",
|
|
1653
1328
|
"arguments": [
|
|
1654
1329
|
{
|
|
1655
|
-
"name": "
|
|
1330
|
+
"name": "Array",
|
|
1656
1331
|
"formula": {
|
|
1657
1332
|
"type": "value",
|
|
1658
|
-
"value":
|
|
1333
|
+
"value": null
|
|
1659
1334
|
},
|
|
1660
|
-
"description": "The
|
|
1335
|
+
"description": "The input value.",
|
|
1661
1336
|
"type": {
|
|
1662
|
-
"type": "
|
|
1337
|
+
"type": "Array \\| String"
|
|
1663
1338
|
}
|
|
1664
1339
|
},
|
|
1665
1340
|
{
|
|
1666
|
-
"name": "
|
|
1341
|
+
"name": "Count",
|
|
1667
1342
|
"formula": {
|
|
1668
1343
|
"type": "value",
|
|
1669
|
-
"value":
|
|
1344
|
+
"value": 1
|
|
1670
1345
|
},
|
|
1671
|
-
"description": "
|
|
1346
|
+
"description": "Number of items to take.",
|
|
1672
1347
|
"type": {
|
|
1673
1348
|
"type": "Number"
|
|
1674
1349
|
}
|
|
1675
1350
|
}
|
|
1676
1351
|
],
|
|
1677
1352
|
"output": {
|
|
1353
|
+
"description": "The last items from the Array or String.",
|
|
1678
1354
|
"type": {
|
|
1679
|
-
"type": "
|
|
1680
|
-
}
|
|
1681
|
-
"description": "The result of raising the base to the exponent."
|
|
1355
|
+
"type": "Array \\| String"
|
|
1356
|
+
}
|
|
1682
1357
|
}
|
|
1683
1358
|
},
|
|
1684
|
-
"@toddle/
|
|
1685
|
-
"name": "
|
|
1686
|
-
"description": "
|
|
1359
|
+
"@toddle/lastIndexOf": {
|
|
1360
|
+
"name": "Last Index of",
|
|
1361
|
+
"description": "Search an Array or String to find the index of the last occurrence of a specified item or substring.",
|
|
1687
1362
|
"arguments": [
|
|
1688
1363
|
{
|
|
1689
|
-
"name": "
|
|
1364
|
+
"name": "Array",
|
|
1690
1365
|
"formula": {
|
|
1691
1366
|
"type": "value",
|
|
1692
1367
|
"value": ""
|
|
1693
1368
|
},
|
|
1694
|
-
"description": "
|
|
1369
|
+
"description": "The value to search.",
|
|
1695
1370
|
"type": {
|
|
1696
|
-
"type": "
|
|
1371
|
+
"type": "Array \\| String"
|
|
1697
1372
|
}
|
|
1698
1373
|
},
|
|
1699
1374
|
{
|
|
1700
|
-
"name": "
|
|
1375
|
+
"name": "Item",
|
|
1701
1376
|
"formula": {
|
|
1702
1377
|
"type": "value",
|
|
1703
1378
|
"value": ""
|
|
1704
1379
|
},
|
|
1705
|
-
"description": "
|
|
1380
|
+
"description": "The item or substring to search for.",
|
|
1706
1381
|
"type": {
|
|
1707
|
-
"type": "
|
|
1382
|
+
"type": "Any"
|
|
1708
1383
|
}
|
|
1709
1384
|
}
|
|
1710
1385
|
],
|
|
1711
1386
|
"output": {
|
|
1712
|
-
"description": "
|
|
1387
|
+
"description": "If the item or substring exists in the Array, the last index of that item is returned. If the item is not found, -1 is returned.",
|
|
1713
1388
|
"type": {
|
|
1714
|
-
"type": "
|
|
1389
|
+
"type": "Number"
|
|
1715
1390
|
}
|
|
1716
1391
|
}
|
|
1717
1392
|
},
|
|
1718
|
-
"@toddle/
|
|
1719
|
-
"name": "
|
|
1720
|
-
"description": "
|
|
1393
|
+
"@toddle/roundUp": {
|
|
1394
|
+
"name": "Round up",
|
|
1395
|
+
"description": "Round a Number up to the nearest decimal point.",
|
|
1721
1396
|
"arguments": [
|
|
1722
1397
|
{
|
|
1723
|
-
"name": "
|
|
1398
|
+
"name": "Input",
|
|
1399
|
+
"description": "Number to round up.",
|
|
1724
1400
|
"type": {
|
|
1725
|
-
"type": "
|
|
1401
|
+
"type": "Number"
|
|
1726
1402
|
},
|
|
1727
|
-
"description": "The Array to append to.",
|
|
1728
1403
|
"formula": {
|
|
1729
|
-
"type": "
|
|
1730
|
-
"
|
|
1404
|
+
"type": "value",
|
|
1405
|
+
"value": 1
|
|
1731
1406
|
}
|
|
1732
1407
|
},
|
|
1733
1408
|
{
|
|
1734
|
-
"name": "
|
|
1409
|
+
"name": "Decimals",
|
|
1410
|
+
"description": "Number of decimals to round to.",
|
|
1735
1411
|
"type": {
|
|
1736
|
-
"type": "
|
|
1412
|
+
"type": "Number"
|
|
1737
1413
|
},
|
|
1738
|
-
"description": "The item to append to the Array.",
|
|
1739
1414
|
"formula": {
|
|
1740
1415
|
"type": "value",
|
|
1741
|
-
"value":
|
|
1416
|
+
"value": 0
|
|
1742
1417
|
}
|
|
1743
1418
|
}
|
|
1744
1419
|
],
|
|
1745
1420
|
"output": {
|
|
1746
|
-
"description": "A new Array containing all elements from the input Array, including the new item.",
|
|
1747
1421
|
"type": {
|
|
1748
|
-
"type": "
|
|
1749
|
-
}
|
|
1422
|
+
"type": "Number"
|
|
1423
|
+
},
|
|
1424
|
+
"description": "The rounded Number."
|
|
1750
1425
|
}
|
|
1751
1426
|
},
|
|
1752
|
-
"@toddle/
|
|
1753
|
-
"name": "
|
|
1427
|
+
"@toddle/uppercase": {
|
|
1428
|
+
"name": "Uppercase",
|
|
1429
|
+
"description": "Convert a String to uppercase.",
|
|
1754
1430
|
"arguments": [
|
|
1755
1431
|
{
|
|
1756
|
-
"name": "
|
|
1432
|
+
"name": "String",
|
|
1757
1433
|
"formula": {
|
|
1758
1434
|
"type": "value",
|
|
1759
|
-
"value": "
|
|
1435
|
+
"value": "string"
|
|
1760
1436
|
},
|
|
1437
|
+
"description": "Input String.",
|
|
1761
1438
|
"type": {
|
|
1762
1439
|
"type": "String"
|
|
1763
|
-
}
|
|
1764
|
-
"description": "The input string to be encoded."
|
|
1440
|
+
}
|
|
1765
1441
|
}
|
|
1766
1442
|
],
|
|
1767
|
-
"description": "Encode a string to base64.",
|
|
1768
1443
|
"output": {
|
|
1769
|
-
"description": "The
|
|
1444
|
+
"description": "The input String with all characters converted to uppercase.",
|
|
1770
1445
|
"type": {
|
|
1771
1446
|
"type": "String"
|
|
1772
1447
|
}
|
|
1773
1448
|
}
|
|
1774
1449
|
},
|
|
1775
|
-
"@toddle/
|
|
1776
|
-
"name": "
|
|
1450
|
+
"@toddle/first": {
|
|
1451
|
+
"name": "First",
|
|
1452
|
+
"description": "Return the first item in an Array.",
|
|
1777
1453
|
"arguments": [
|
|
1778
1454
|
{
|
|
1779
|
-
"name": "
|
|
1780
|
-
"description": "Number to be added.",
|
|
1781
|
-
"type": {
|
|
1782
|
-
"type": "Number"
|
|
1783
|
-
},
|
|
1455
|
+
"name": "Array",
|
|
1784
1456
|
"formula": {
|
|
1785
1457
|
"type": "value",
|
|
1786
|
-
"value":
|
|
1787
|
-
}
|
|
1788
|
-
},
|
|
1789
|
-
{
|
|
1790
|
-
"name": "1",
|
|
1458
|
+
"value": []
|
|
1459
|
+
},
|
|
1791
1460
|
"type": {
|
|
1792
|
-
"type": "
|
|
1461
|
+
"type": "Array"
|
|
1793
1462
|
},
|
|
1794
|
-
"description": "
|
|
1795
|
-
"formula": {
|
|
1796
|
-
"type": "value",
|
|
1797
|
-
"value": 1
|
|
1798
|
-
}
|
|
1463
|
+
"description": "An Array of items."
|
|
1799
1464
|
}
|
|
1800
1465
|
],
|
|
1801
|
-
"variableArguments": true,
|
|
1802
|
-
"description": "Get the sum of multiple numbers.",
|
|
1803
1466
|
"output": {
|
|
1804
|
-
"description": "The
|
|
1467
|
+
"description": "The first item in the Array.",
|
|
1805
1468
|
"type": {
|
|
1806
|
-
"type": "
|
|
1469
|
+
"type": "Any"
|
|
1807
1470
|
}
|
|
1808
1471
|
}
|
|
1809
1472
|
},
|
|
1810
|
-
"@toddle/
|
|
1811
|
-
"name": "
|
|
1812
|
-
"description": "
|
|
1473
|
+
"@toddle/encodeJSON": {
|
|
1474
|
+
"name": "Encode JSON",
|
|
1475
|
+
"description": "Encode data as JSON.",
|
|
1813
1476
|
"arguments": [
|
|
1814
1477
|
{
|
|
1815
|
-
"name": "
|
|
1478
|
+
"name": "Data",
|
|
1816
1479
|
"formula": {
|
|
1817
1480
|
"type": "value",
|
|
1818
|
-
"value":
|
|
1481
|
+
"value": null
|
|
1819
1482
|
},
|
|
1483
|
+
"description": "The data to convert.",
|
|
1820
1484
|
"type": {
|
|
1821
|
-
"type": "
|
|
1822
|
-
}
|
|
1823
|
-
"description": "Number to be multiplied."
|
|
1485
|
+
"type": "Any"
|
|
1486
|
+
}
|
|
1824
1487
|
},
|
|
1825
1488
|
{
|
|
1826
|
-
"name": "
|
|
1489
|
+
"name": "Indent",
|
|
1827
1490
|
"formula": {
|
|
1828
1491
|
"type": "value",
|
|
1829
|
-
"value":
|
|
1492
|
+
"value": 2
|
|
1830
1493
|
},
|
|
1494
|
+
"description": "How many characters the encoded value will be indented.",
|
|
1831
1495
|
"type": {
|
|
1832
1496
|
"type": "Number"
|
|
1833
|
-
}
|
|
1834
|
-
"description": "Number to be multiplied."
|
|
1497
|
+
}
|
|
1835
1498
|
}
|
|
1836
1499
|
],
|
|
1837
|
-
"variableArguments": true,
|
|
1838
1500
|
"output": {
|
|
1839
|
-
"description": "The
|
|
1501
|
+
"description": "The encoded JSON value.",
|
|
1840
1502
|
"type": {
|
|
1841
|
-
"type": "
|
|
1503
|
+
"type": "String"
|
|
1842
1504
|
}
|
|
1843
1505
|
}
|
|
1844
1506
|
},
|
|
1845
|
-
"@toddle/
|
|
1846
|
-
"name": "
|
|
1847
|
-
"description": "
|
|
1507
|
+
"@toddle/filter": {
|
|
1508
|
+
"name": "Filter",
|
|
1509
|
+
"description": "Return a new Array containing only the elements for which the provided formula evaluates to True.",
|
|
1848
1510
|
"arguments": [
|
|
1849
1511
|
{
|
|
1850
1512
|
"name": "Array",
|
|
@@ -1852,33 +1514,71 @@
|
|
|
1852
1514
|
"type": "value",
|
|
1853
1515
|
"value": null
|
|
1854
1516
|
},
|
|
1855
|
-
"description": "The
|
|
1517
|
+
"description": "The array of items to be filtered.",
|
|
1856
1518
|
"type": {
|
|
1857
|
-
"type": "Array
|
|
1519
|
+
"type": "Array"
|
|
1858
1520
|
}
|
|
1859
1521
|
},
|
|
1860
1522
|
{
|
|
1861
|
-
"name": "
|
|
1862
|
-
"
|
|
1863
|
-
"
|
|
1864
|
-
"type": "
|
|
1523
|
+
"name": "Formula",
|
|
1524
|
+
"isFunction": true,
|
|
1525
|
+
"formula": {
|
|
1526
|
+
"type": "path",
|
|
1527
|
+
"path": [
|
|
1528
|
+
"Args",
|
|
1529
|
+
"item"
|
|
1530
|
+
]
|
|
1865
1531
|
},
|
|
1532
|
+
"description": "Predicate formula for filtering items.",
|
|
1533
|
+
"type": {
|
|
1534
|
+
"type": "Formula"
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
],
|
|
1538
|
+
"output": {
|
|
1539
|
+
"description": "New Array containing only the items for which the Formula evaluated to True.",
|
|
1540
|
+
"type": {
|
|
1541
|
+
"type": "Array"
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
"@toddle/getCookie": {
|
|
1546
|
+
"name": "Get Cookie",
|
|
1547
|
+
"description": "Get the value of a cookie by name. This formula is available both server-side and client-side. Http-Only cookies will only be available server-side.",
|
|
1548
|
+
"arguments": [
|
|
1549
|
+
{
|
|
1550
|
+
"name": "Cookie name",
|
|
1866
1551
|
"formula": {
|
|
1867
1552
|
"type": "value",
|
|
1868
|
-
"value":
|
|
1553
|
+
"value": null
|
|
1554
|
+
},
|
|
1555
|
+
"description": "The name of the cookie you want to get the value of.",
|
|
1556
|
+
"type": {
|
|
1557
|
+
"type": "String"
|
|
1869
1558
|
}
|
|
1870
1559
|
}
|
|
1871
1560
|
],
|
|
1872
1561
|
"output": {
|
|
1873
|
-
"description": "
|
|
1562
|
+
"description": "The value of the cookie. If a value is not found, this return value will be Null.",
|
|
1874
1563
|
"type": {
|
|
1875
|
-
"type": "
|
|
1564
|
+
"type": "String"
|
|
1876
1565
|
}
|
|
1877
1566
|
}
|
|
1878
1567
|
},
|
|
1879
|
-
"@toddle/
|
|
1880
|
-
"name": "
|
|
1881
|
-
"description": "
|
|
1568
|
+
"@toddle/languages": {
|
|
1569
|
+
"name": "Languages",
|
|
1570
|
+
"description": "An array of the preferred languages for the user, based on the Navigator.languages property (on the client) or the Accept-Language header (on the server).",
|
|
1571
|
+
"arguments": [],
|
|
1572
|
+
"output": {
|
|
1573
|
+
"description": "An array with the preferred languages for the user.",
|
|
1574
|
+
"type": {
|
|
1575
|
+
"type": "Array"
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1579
|
+
"@toddle/findIndex": {
|
|
1580
|
+
"name": "Find index",
|
|
1581
|
+
"description": "Search through an Array of items and apply a formula to each item, to return the index of the first item where the formula returns True.",
|
|
1882
1582
|
"arguments": [
|
|
1883
1583
|
{
|
|
1884
1584
|
"name": "Array",
|
|
@@ -1886,7 +1586,7 @@
|
|
|
1886
1586
|
"type": "value",
|
|
1887
1587
|
"value": null
|
|
1888
1588
|
},
|
|
1889
|
-
"description": "The
|
|
1589
|
+
"description": "The array to search.",
|
|
1890
1590
|
"type": {
|
|
1891
1591
|
"type": "Array"
|
|
1892
1592
|
}
|
|
@@ -1901,26 +1601,49 @@
|
|
|
1901
1601
|
"item"
|
|
1902
1602
|
]
|
|
1903
1603
|
},
|
|
1904
|
-
"description": "
|
|
1604
|
+
"description": "The predicate formula that each item in the Array is passed to.",
|
|
1905
1605
|
"type": {
|
|
1906
1606
|
"type": "Formula"
|
|
1907
1607
|
}
|
|
1908
1608
|
}
|
|
1909
1609
|
],
|
|
1910
1610
|
"output": {
|
|
1911
|
-
"description": "
|
|
1611
|
+
"description": "The index of the first item in the Array where the predicate formula returns True. Returns -1 if the predicate formula did not return True for any item.",
|
|
1912
1612
|
"type": {
|
|
1913
|
-
"type": "
|
|
1613
|
+
"type": "Any"
|
|
1914
1614
|
}
|
|
1915
1615
|
}
|
|
1916
1616
|
},
|
|
1917
|
-
"@toddle/
|
|
1918
|
-
"name": "
|
|
1919
|
-
"description": "
|
|
1617
|
+
"@toddle/sum": {
|
|
1618
|
+
"name": "Sum",
|
|
1619
|
+
"description": "Return the sum of an Array of numbers",
|
|
1920
1620
|
"arguments": [
|
|
1921
1621
|
{
|
|
1922
|
-
"name": "
|
|
1923
|
-
"
|
|
1622
|
+
"name": "Array",
|
|
1623
|
+
"type": {
|
|
1624
|
+
"type": "Array"
|
|
1625
|
+
},
|
|
1626
|
+
"description": "The array of numbers to sum.",
|
|
1627
|
+
"formula": {
|
|
1628
|
+
"type": "array",
|
|
1629
|
+
"arguments": []
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
],
|
|
1633
|
+
"output": {
|
|
1634
|
+
"description": "The total sum from adding all the numbers in the Array.",
|
|
1635
|
+
"type": {
|
|
1636
|
+
"type": "Number"
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
"@toddle/divide": {
|
|
1641
|
+
"name": "Divide",
|
|
1642
|
+
"description": "Perform a division calculation.",
|
|
1643
|
+
"arguments": [
|
|
1644
|
+
{
|
|
1645
|
+
"name": "Dividend",
|
|
1646
|
+
"description": "The number to be divided.",
|
|
1924
1647
|
"type": {
|
|
1925
1648
|
"type": "Number"
|
|
1926
1649
|
},
|
|
@@ -1930,153 +1653,192 @@
|
|
|
1930
1653
|
}
|
|
1931
1654
|
},
|
|
1932
1655
|
{
|
|
1933
|
-
"name": "
|
|
1934
|
-
"description": "
|
|
1656
|
+
"name": "Divisor",
|
|
1657
|
+
"description": "The number to divide by.",
|
|
1935
1658
|
"type": {
|
|
1936
1659
|
"type": "Number"
|
|
1937
1660
|
},
|
|
1938
1661
|
"formula": {
|
|
1939
1662
|
"type": "value",
|
|
1940
|
-
"value":
|
|
1663
|
+
"value": 1
|
|
1941
1664
|
}
|
|
1942
1665
|
}
|
|
1943
1666
|
],
|
|
1944
1667
|
"output": {
|
|
1668
|
+
"description": "The result of dividing the dividend with the divisor.",
|
|
1945
1669
|
"type": {
|
|
1946
1670
|
"type": "Number"
|
|
1947
|
-
}
|
|
1948
|
-
"description": "The rounded Number."
|
|
1671
|
+
}
|
|
1949
1672
|
}
|
|
1950
1673
|
},
|
|
1951
|
-
"@toddle/
|
|
1952
|
-
"name": "
|
|
1953
|
-
"description": "
|
|
1674
|
+
"@toddle/canShare": {
|
|
1675
|
+
"name": "Can Share",
|
|
1676
|
+
"description": "Return a Boolean indicating whether the provided data can be shared (with the \"Share\" action).",
|
|
1954
1677
|
"arguments": [
|
|
1955
1678
|
{
|
|
1956
|
-
"name": "
|
|
1957
|
-
"description": "
|
|
1679
|
+
"name": "URL",
|
|
1680
|
+
"description": "The URL you want to check.",
|
|
1958
1681
|
"type": {
|
|
1959
|
-
"type": "
|
|
1682
|
+
"type": "String"
|
|
1960
1683
|
},
|
|
1961
1684
|
"formula": {
|
|
1962
1685
|
"type": "value",
|
|
1963
|
-
"value":
|
|
1686
|
+
"value": null
|
|
1964
1687
|
}
|
|
1965
1688
|
},
|
|
1966
1689
|
{
|
|
1967
|
-
"name": "
|
|
1968
|
-
"description": "
|
|
1690
|
+
"name": "Title",
|
|
1691
|
+
"description": "The title you want to check.",
|
|
1969
1692
|
"type": {
|
|
1970
|
-
"type": "
|
|
1693
|
+
"type": "String"
|
|
1971
1694
|
},
|
|
1972
1695
|
"formula": {
|
|
1973
1696
|
"type": "value",
|
|
1974
|
-
"value":
|
|
1697
|
+
"value": null
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "Text",
|
|
1702
|
+
"description": "The text you want to check.",
|
|
1703
|
+
"type": {
|
|
1704
|
+
"type": "String"
|
|
1705
|
+
},
|
|
1706
|
+
"formula": {
|
|
1707
|
+
"type": "value",
|
|
1708
|
+
"value": null
|
|
1975
1709
|
}
|
|
1976
1710
|
}
|
|
1711
|
+
]
|
|
1712
|
+
},
|
|
1713
|
+
"@toddle/last": {
|
|
1714
|
+
"name": "Last",
|
|
1715
|
+
"description": "Get the last item in an Array.",
|
|
1716
|
+
"arguments": [
|
|
1717
|
+
{
|
|
1718
|
+
"name": "Array",
|
|
1719
|
+
"formula": {
|
|
1720
|
+
"type": "value",
|
|
1721
|
+
"value": []
|
|
1722
|
+
},
|
|
1723
|
+
"type": {
|
|
1724
|
+
"type": "Array"
|
|
1725
|
+
},
|
|
1726
|
+
"description": "The input Array."
|
|
1727
|
+
}
|
|
1977
1728
|
],
|
|
1978
1729
|
"output": {
|
|
1730
|
+
"description": "The last item in the Array.",
|
|
1979
1731
|
"type": {
|
|
1980
|
-
"type": "
|
|
1981
|
-
}
|
|
1982
|
-
"description": "The rounded Number."
|
|
1732
|
+
"type": "Any"
|
|
1733
|
+
}
|
|
1983
1734
|
}
|
|
1984
1735
|
},
|
|
1985
|
-
"@toddle/
|
|
1986
|
-
"name": "
|
|
1987
|
-
"description": "
|
|
1736
|
+
"@toddle/reverse": {
|
|
1737
|
+
"name": "Reverse",
|
|
1738
|
+
"description": "Reverse the order of an Array.",
|
|
1988
1739
|
"arguments": [
|
|
1989
1740
|
{
|
|
1990
|
-
"name": "
|
|
1741
|
+
"name": "Array",
|
|
1991
1742
|
"formula": {
|
|
1992
1743
|
"type": "value",
|
|
1993
|
-
"value":
|
|
1744
|
+
"value": null
|
|
1994
1745
|
},
|
|
1995
|
-
"description": "The
|
|
1746
|
+
"description": "The Array to be reversed.",
|
|
1996
1747
|
"type": {
|
|
1997
|
-
"type": "
|
|
1748
|
+
"type": "Array"
|
|
1998
1749
|
}
|
|
1999
1750
|
}
|
|
2000
1751
|
],
|
|
2001
1752
|
"output": {
|
|
2002
|
-
"description": "Returns True if the input value is False, and False if the input value is True.",
|
|
2003
1753
|
"type": {
|
|
2004
|
-
"type": "
|
|
2005
|
-
}
|
|
1754
|
+
"type": "Array"
|
|
1755
|
+
},
|
|
1756
|
+
"description": "The reversed Array."
|
|
2006
1757
|
}
|
|
2007
1758
|
},
|
|
2008
|
-
"@toddle/
|
|
2009
|
-
"name": "
|
|
2010
|
-
"description": "
|
|
1759
|
+
"@toddle/typeOf": {
|
|
1760
|
+
"name": "Type of",
|
|
1761
|
+
"description": "Get the type of a given input.",
|
|
2011
1762
|
"arguments": [
|
|
2012
1763
|
{
|
|
2013
|
-
"name": "
|
|
1764
|
+
"name": "Input",
|
|
2014
1765
|
"formula": {
|
|
2015
1766
|
"type": "value",
|
|
2016
|
-
"value":
|
|
1767
|
+
"value": 1
|
|
2017
1768
|
},
|
|
2018
|
-
"description": "The
|
|
1769
|
+
"description": "The input value.",
|
|
2019
1770
|
"type": {
|
|
2020
|
-
"type": "
|
|
1771
|
+
"type": "Any"
|
|
2021
1772
|
}
|
|
2022
1773
|
}
|
|
2023
1774
|
],
|
|
2024
1775
|
"output": {
|
|
2025
|
-
"description": "The
|
|
1776
|
+
"description": "The type of the input value. Types can be one of: String, Boolean, Number, Array, Object, or Null.",
|
|
2026
1777
|
"type": {
|
|
2027
|
-
"type": "
|
|
1778
|
+
"type": "Any"
|
|
2028
1779
|
}
|
|
2029
1780
|
}
|
|
2030
1781
|
},
|
|
2031
|
-
"@toddle/
|
|
2032
|
-
"name": "
|
|
2033
|
-
"description": "
|
|
1782
|
+
"@toddle/join": {
|
|
1783
|
+
"name": "Join",
|
|
1784
|
+
"description": "Combine an Array of Strings in to a single String.",
|
|
2034
1785
|
"arguments": [
|
|
2035
1786
|
{
|
|
2036
|
-
"name": "
|
|
1787
|
+
"name": "Array",
|
|
2037
1788
|
"formula": {
|
|
2038
1789
|
"type": "value",
|
|
2039
|
-
"value":
|
|
1790
|
+
"value": null
|
|
2040
1791
|
},
|
|
1792
|
+
"description": "An array of Strings.",
|
|
2041
1793
|
"type": {
|
|
2042
|
-
"type": "Array
|
|
1794
|
+
"type": "Array"
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"name": "Separator",
|
|
1799
|
+
"formula": {
|
|
1800
|
+
"type": "value",
|
|
1801
|
+
"value": ", "
|
|
1802
|
+
},
|
|
1803
|
+
"description": "A separator String that is inserted in between each item in the Array to join.",
|
|
1804
|
+
"type": {
|
|
1805
|
+
"type": "String"
|
|
2043
1806
|
}
|
|
2044
1807
|
}
|
|
2045
1808
|
],
|
|
2046
|
-
"variableArguments": true,
|
|
2047
1809
|
"output": {
|
|
2048
|
-
"
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
1810
|
+
"description": "A String combining each item in the input Array separated by the separator String, e.g. joining [\"a\", \"b\", \"c\"] with a \",\" separator will return \"a,b,c\".",
|
|
1811
|
+
"type": {
|
|
1812
|
+
"type": "String"
|
|
1813
|
+
}
|
|
2052
1814
|
}
|
|
2053
1815
|
},
|
|
2054
|
-
"@toddle/
|
|
2055
|
-
"name": "
|
|
2056
|
-
"description": "Return the logarithm of a Number.",
|
|
1816
|
+
"@toddle/encodeBase64": {
|
|
1817
|
+
"name": "Encode to base64",
|
|
2057
1818
|
"arguments": [
|
|
2058
1819
|
{
|
|
2059
|
-
"name": "
|
|
1820
|
+
"name": "Value",
|
|
2060
1821
|
"formula": {
|
|
2061
1822
|
"type": "value",
|
|
2062
|
-
"value":
|
|
1823
|
+
"value": "Input value"
|
|
2063
1824
|
},
|
|
2064
|
-
"description": "A Number greater than or equal to 0.",
|
|
2065
1825
|
"type": {
|
|
2066
|
-
"type": "
|
|
2067
|
-
}
|
|
1826
|
+
"type": "String"
|
|
1827
|
+
},
|
|
1828
|
+
"description": "The input string to be encoded."
|
|
2068
1829
|
}
|
|
2069
1830
|
],
|
|
1831
|
+
"description": "Encode a string to base64.",
|
|
2070
1832
|
"output": {
|
|
1833
|
+
"description": "The base 64 encoded string.",
|
|
2071
1834
|
"type": {
|
|
2072
|
-
"type": "
|
|
2073
|
-
}
|
|
2074
|
-
"description": "The natural logarithm of the Number."
|
|
1835
|
+
"type": "String"
|
|
1836
|
+
}
|
|
2075
1837
|
}
|
|
2076
1838
|
},
|
|
2077
|
-
"@toddle/
|
|
2078
|
-
"name": "
|
|
2079
|
-
"description": "
|
|
1839
|
+
"@toddle/reduce": {
|
|
1840
|
+
"name": "Reduce",
|
|
1841
|
+
"description": "Reduce a group of items to a single value by applying each item to a reducer formula.",
|
|
2080
1842
|
"arguments": [
|
|
2081
1843
|
{
|
|
2082
1844
|
"name": "Array",
|
|
@@ -2084,105 +1846,91 @@
|
|
|
2084
1846
|
"type": "value",
|
|
2085
1847
|
"value": null
|
|
2086
1848
|
},
|
|
2087
|
-
"description": "The
|
|
1849
|
+
"description": "The Array or Object of items to be reduced.",
|
|
2088
1850
|
"type": {
|
|
2089
|
-
"type": "Array"
|
|
1851
|
+
"type": "Array \\| Object"
|
|
2090
1852
|
}
|
|
2091
1853
|
},
|
|
2092
1854
|
{
|
|
2093
1855
|
"name": "Formula",
|
|
2094
1856
|
"isFunction": true,
|
|
2095
|
-
"formula": {
|
|
2096
|
-
"type": "path",
|
|
2097
|
-
"path": [
|
|
2098
|
-
"Args",
|
|
2099
|
-
"item"
|
|
2100
|
-
]
|
|
2101
|
-
},
|
|
2102
|
-
"description": "The predicate formula that each item in the Array is passed to.",
|
|
2103
|
-
"type": {
|
|
2104
|
-
"type": "Formula"
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
],
|
|
2108
|
-
"output": {
|
|
2109
|
-
"description": "The last item in the Array where the formula returns True. Returns Null if the predicate formula did not return True for any item.",
|
|
2110
|
-
"type": {
|
|
2111
|
-
"type": "Any"
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
},
|
|
2115
|
-
"@toddle/indexOf": {
|
|
2116
|
-
"name": "Index of",
|
|
2117
|
-
"description": "Find the index of a specific item in an Array or String.",
|
|
2118
|
-
"arguments": [
|
|
2119
|
-
{
|
|
2120
|
-
"name": "Array",
|
|
2121
1857
|
"formula": {
|
|
2122
1858
|
"type": "value",
|
|
2123
|
-
"value":
|
|
1859
|
+
"value": null
|
|
2124
1860
|
},
|
|
2125
|
-
"description": "The
|
|
1861
|
+
"description": "The reducer formula. Each item in the Array is applied to the formula along with the accumulator. The result of this formula will be a new accumulator used for the next item.",
|
|
2126
1862
|
"type": {
|
|
2127
|
-
"type": "
|
|
1863
|
+
"type": "Formula"
|
|
2128
1864
|
}
|
|
2129
1865
|
},
|
|
2130
1866
|
{
|
|
2131
|
-
"name": "
|
|
1867
|
+
"name": "Accumulator",
|
|
2132
1868
|
"formula": {
|
|
2133
1869
|
"type": "value",
|
|
2134
|
-
"value":
|
|
1870
|
+
"value": null
|
|
2135
1871
|
},
|
|
2136
|
-
"description": "The
|
|
1872
|
+
"description": "The initial value of the accumulator. This value is passed to the reducer formula along with the first item in the Array, and the result is used as the accumulator for the next item.",
|
|
2137
1873
|
"type": {
|
|
2138
1874
|
"type": "Any"
|
|
2139
1875
|
}
|
|
2140
1876
|
}
|
|
2141
1877
|
],
|
|
2142
1878
|
"output": {
|
|
2143
|
-
"description": "
|
|
1879
|
+
"description": "The value returned from applying the last item to the reducer formula.",
|
|
2144
1880
|
"type": {
|
|
2145
|
-
"type": "
|
|
1881
|
+
"type": "Any"
|
|
2146
1882
|
}
|
|
2147
1883
|
}
|
|
2148
1884
|
},
|
|
2149
|
-
"@toddle/
|
|
2150
|
-
"name": "
|
|
2151
|
-
"description": "
|
|
1885
|
+
"@toddle/roundDown": {
|
|
1886
|
+
"name": "Round down",
|
|
1887
|
+
"description": "Round a Number down to the nearest decimal point.",
|
|
2152
1888
|
"arguments": [
|
|
2153
1889
|
{
|
|
2154
|
-
"name": "
|
|
1890
|
+
"name": "Input",
|
|
1891
|
+
"description": "Number to round down.",
|
|
1892
|
+
"type": {
|
|
1893
|
+
"type": "Number"
|
|
1894
|
+
},
|
|
2155
1895
|
"formula": {
|
|
2156
1896
|
"type": "value",
|
|
2157
|
-
"value":
|
|
2158
|
-
},
|
|
2159
|
-
"description": "The Object, Array or String you want to extract an item from.",
|
|
2160
|
-
"type": {
|
|
2161
|
-
"type": "Array \\| Object \\| String"
|
|
1897
|
+
"value": 1
|
|
2162
1898
|
}
|
|
2163
1899
|
},
|
|
2164
1900
|
{
|
|
2165
|
-
"name": "
|
|
1901
|
+
"name": "Decimals",
|
|
1902
|
+
"description": "Number of decimals to round to.",
|
|
1903
|
+
"type": {
|
|
1904
|
+
"type": "Number"
|
|
1905
|
+
},
|
|
2166
1906
|
"formula": {
|
|
2167
1907
|
"type": "value",
|
|
2168
|
-
"value":
|
|
2169
|
-
},
|
|
2170
|
-
"description": "The Path can be either a Number, a String, or an Array.",
|
|
2171
|
-
"type": {
|
|
2172
|
-
"type": "Array<String> \\| Number \\| String"
|
|
1908
|
+
"value": 0
|
|
2173
1909
|
}
|
|
2174
1910
|
}
|
|
2175
1911
|
],
|
|
2176
1912
|
"output": {
|
|
2177
|
-
"description": "The value found at the Path. If no value is found, this value of the output is Null.",
|
|
2178
1913
|
"type": {
|
|
2179
|
-
"type": "
|
|
1914
|
+
"type": "Number"
|
|
1915
|
+
},
|
|
1916
|
+
"description": "The rounded Number."
|
|
1917
|
+
}
|
|
1918
|
+
},
|
|
1919
|
+
"@toddle/randomNumber": {
|
|
1920
|
+
"name": "Random number",
|
|
1921
|
+
"description": "return a random Number between 0 and 1.",
|
|
1922
|
+
"arguments": [],
|
|
1923
|
+
"cache": false,
|
|
1924
|
+
"output": {
|
|
1925
|
+
"description": "A random Number between 0 and 1.",
|
|
1926
|
+
"type": {
|
|
1927
|
+
"type": "Number"
|
|
2180
1928
|
}
|
|
2181
1929
|
}
|
|
2182
1930
|
},
|
|
2183
|
-
"@toddle/
|
|
2184
|
-
"name": "
|
|
2185
|
-
"description": "Compute if a value is
|
|
1931
|
+
"@toddle/greaterThan": {
|
|
1932
|
+
"name": "Greater than",
|
|
1933
|
+
"description": "Compute if a value is larger than another value.",
|
|
2186
1934
|
"arguments": [
|
|
2187
1935
|
{
|
|
2188
1936
|
"name": "First",
|
|
@@ -2190,7 +1938,7 @@
|
|
|
2190
1938
|
"type": "value",
|
|
2191
1939
|
"value": ""
|
|
2192
1940
|
},
|
|
2193
|
-
"description": "First
|
|
1941
|
+
"description": "First value to be compared.",
|
|
2194
1942
|
"type": {
|
|
2195
1943
|
"type": "Number"
|
|
2196
1944
|
}
|
|
@@ -2201,174 +1949,205 @@
|
|
|
2201
1949
|
"type": "value",
|
|
2202
1950
|
"value": ""
|
|
2203
1951
|
},
|
|
2204
|
-
"description": "Second
|
|
1952
|
+
"description": "Second value to be compared.",
|
|
2205
1953
|
"type": {
|
|
2206
1954
|
"type": "Number"
|
|
2207
1955
|
}
|
|
2208
1956
|
}
|
|
2209
1957
|
],
|
|
2210
1958
|
"output": {
|
|
2211
|
-
"description": "Returns True if the
|
|
1959
|
+
"description": "Returns True if the first Number is larger than the second Number.",
|
|
2212
1960
|
"type": {
|
|
2213
1961
|
"type": "Boolean"
|
|
2214
1962
|
}
|
|
2215
1963
|
}
|
|
2216
1964
|
},
|
|
2217
|
-
"@toddle/
|
|
2218
|
-
"name": "
|
|
2219
|
-
"description": "
|
|
1965
|
+
"@toddle/absolute": {
|
|
1966
|
+
"name": "Absolute",
|
|
1967
|
+
"description": "Get the absolute value of a Number.",
|
|
2220
1968
|
"arguments": [
|
|
2221
1969
|
{
|
|
2222
|
-
"name": "
|
|
1970
|
+
"name": "Value",
|
|
2223
1971
|
"formula": {
|
|
2224
1972
|
"type": "value",
|
|
2225
|
-
"value":
|
|
1973
|
+
"value": -1
|
|
2226
1974
|
},
|
|
2227
|
-
"description": "The value to search.",
|
|
2228
1975
|
"type": {
|
|
2229
|
-
"type": "
|
|
2230
|
-
}
|
|
2231
|
-
|
|
1976
|
+
"type": "Number"
|
|
1977
|
+
},
|
|
1978
|
+
"description": "The input Number."
|
|
1979
|
+
}
|
|
1980
|
+
],
|
|
1981
|
+
"output": {
|
|
1982
|
+
"description": "The absolute value of the input.",
|
|
1983
|
+
"type": {
|
|
1984
|
+
"type": "Number"
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
},
|
|
1988
|
+
"@toddle/parseJSON": {
|
|
1989
|
+
"name": "Parse JSON",
|
|
1990
|
+
"description": "Parse a String to JSON.",
|
|
1991
|
+
"arguments": [
|
|
2232
1992
|
{
|
|
2233
|
-
"name": "
|
|
1993
|
+
"name": "JSON string",
|
|
2234
1994
|
"formula": {
|
|
2235
1995
|
"type": "value",
|
|
2236
|
-
"value":
|
|
1996
|
+
"value": null
|
|
2237
1997
|
},
|
|
2238
|
-
"description": "The
|
|
1998
|
+
"description": "The String to be parsed.",
|
|
2239
1999
|
"type": {
|
|
2240
|
-
"type": "
|
|
2000
|
+
"type": "String"
|
|
2241
2001
|
}
|
|
2242
2002
|
}
|
|
2243
2003
|
],
|
|
2244
2004
|
"output": {
|
|
2245
|
-
"description": "
|
|
2005
|
+
"description": "The parsed JSON value. If the input is not a valid String, this returns Null.",
|
|
2246
2006
|
"type": {
|
|
2247
|
-
"type": "
|
|
2007
|
+
"type": "Any"
|
|
2248
2008
|
}
|
|
2249
2009
|
}
|
|
2250
2010
|
},
|
|
2251
|
-
"@toddle/
|
|
2252
|
-
"name": "
|
|
2011
|
+
"@toddle/concatenate": {
|
|
2012
|
+
"name": "Concatenate",
|
|
2013
|
+
"description": "Concatenate two or more values.",
|
|
2253
2014
|
"arguments": [
|
|
2254
2015
|
{
|
|
2255
|
-
"name": "
|
|
2256
|
-
"description": "Number to format.",
|
|
2257
|
-
"type": {
|
|
2258
|
-
"type": "Number"
|
|
2259
|
-
},
|
|
2016
|
+
"name": "0",
|
|
2260
2017
|
"formula": {
|
|
2261
|
-
"type": "
|
|
2262
|
-
"value":
|
|
2018
|
+
"type": "value",
|
|
2019
|
+
"value": ""
|
|
2020
|
+
},
|
|
2021
|
+
"type": {
|
|
2022
|
+
"type": "Array \\| String"
|
|
2263
2023
|
}
|
|
2024
|
+
}
|
|
2025
|
+
],
|
|
2026
|
+
"variableArguments": true,
|
|
2027
|
+
"output": {
|
|
2028
|
+
"type": {
|
|
2029
|
+
"type": "Array \\| String"
|
|
2264
2030
|
},
|
|
2031
|
+
"description": "Returns a String or Array containing all the specified input values."
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
"@toddle/json": {
|
|
2035
|
+
"name": "JSON",
|
|
2036
|
+
"description": "Convert a value into a JSON String.",
|
|
2037
|
+
"arguments": [
|
|
2265
2038
|
{
|
|
2266
|
-
"name": "
|
|
2267
|
-
"description": "Optional locale to use for formatting the Number, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
2268
|
-
"type": {
|
|
2269
|
-
"type": "Array \\| String"
|
|
2270
|
-
},
|
|
2039
|
+
"name": "Input",
|
|
2271
2040
|
"formula": {
|
|
2272
2041
|
"type": "value",
|
|
2273
2042
|
"value": null
|
|
2043
|
+
},
|
|
2044
|
+
"description": "The input value.",
|
|
2045
|
+
"type": {
|
|
2046
|
+
"type": "Any"
|
|
2274
2047
|
}
|
|
2275
2048
|
},
|
|
2276
2049
|
{
|
|
2277
|
-
"name": "
|
|
2278
|
-
"description": "Optional Object for configuring the formatting of the output. See the [NumberFormat locale options on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#locale_options).",
|
|
2279
|
-
"type": {
|
|
2280
|
-
"type": "Object"
|
|
2281
|
-
},
|
|
2050
|
+
"name": "Indentation",
|
|
2282
2051
|
"formula": {
|
|
2283
2052
|
"type": "value",
|
|
2284
|
-
"value":
|
|
2053
|
+
"value": 0
|
|
2054
|
+
},
|
|
2055
|
+
"description": "The number of spaces used for indentation in the JSON String.",
|
|
2056
|
+
"type": {
|
|
2057
|
+
"type": "Number"
|
|
2285
2058
|
}
|
|
2286
2059
|
}
|
|
2287
2060
|
],
|
|
2288
|
-
"description": "Format a Number using the Intl.NumberFormat API. See the [NumberFormat docs on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat).",
|
|
2289
2061
|
"output": {
|
|
2290
|
-
"description": "The
|
|
2062
|
+
"description": "The JSON String.",
|
|
2291
2063
|
"type": {
|
|
2292
2064
|
"type": "String"
|
|
2293
2065
|
}
|
|
2294
2066
|
}
|
|
2295
2067
|
},
|
|
2296
|
-
"@toddle/
|
|
2297
|
-
"name": "
|
|
2298
|
-
"description": "
|
|
2068
|
+
"@toddle/power": {
|
|
2069
|
+
"name": "Power",
|
|
2070
|
+
"description": "Raise a number to a power.",
|
|
2299
2071
|
"arguments": [
|
|
2300
2072
|
{
|
|
2301
|
-
"name": "
|
|
2073
|
+
"name": "Base",
|
|
2302
2074
|
"formula": {
|
|
2303
2075
|
"type": "value",
|
|
2304
|
-
"value":
|
|
2076
|
+
"value": 3
|
|
2305
2077
|
},
|
|
2306
|
-
"description": "The
|
|
2078
|
+
"description": "The number to be raised to the exponent.",
|
|
2307
2079
|
"type": {
|
|
2308
|
-
"type": "
|
|
2080
|
+
"type": "Number"
|
|
2309
2081
|
}
|
|
2310
2082
|
},
|
|
2311
2083
|
{
|
|
2312
|
-
"name": "
|
|
2313
|
-
"isFunction": true,
|
|
2084
|
+
"name": "Exponent",
|
|
2314
2085
|
"formula": {
|
|
2315
|
-
"type": "
|
|
2316
|
-
"
|
|
2317
|
-
"Args",
|
|
2318
|
-
"item"
|
|
2319
|
-
]
|
|
2086
|
+
"type": "value",
|
|
2087
|
+
"value": 2
|
|
2320
2088
|
},
|
|
2321
|
-
"description": "The
|
|
2089
|
+
"description": "The exponent to raise the base to.",
|
|
2322
2090
|
"type": {
|
|
2323
|
-
"type": "
|
|
2091
|
+
"type": "Number"
|
|
2324
2092
|
}
|
|
2325
2093
|
}
|
|
2326
2094
|
],
|
|
2327
2095
|
"output": {
|
|
2328
|
-
"description": "The first item in the Array where the formula returns True. Returns Null if the predicate formula did not return True for any item.",
|
|
2329
2096
|
"type": {
|
|
2330
|
-
"type": "
|
|
2331
|
-
}
|
|
2097
|
+
"type": "Number"
|
|
2098
|
+
},
|
|
2099
|
+
"description": "The result of raising the base to the exponent."
|
|
2332
2100
|
}
|
|
2333
2101
|
},
|
|
2334
|
-
"@toddle/
|
|
2335
|
-
"name": "
|
|
2336
|
-
"description": "
|
|
2102
|
+
"@toddle/range": {
|
|
2103
|
+
"name": "Range",
|
|
2104
|
+
"description": "Create an Array of numbers between a Min and Max value.",
|
|
2337
2105
|
"arguments": [
|
|
2338
2106
|
{
|
|
2339
|
-
"name": "0",
|
|
2340
2107
|
"formula": {
|
|
2341
2108
|
"type": "value",
|
|
2342
|
-
"value":
|
|
2109
|
+
"value": 0
|
|
2343
2110
|
},
|
|
2344
|
-
"
|
|
2111
|
+
"name": "Min",
|
|
2112
|
+
"description": "The smallest value in the list.",
|
|
2345
2113
|
"type": {
|
|
2346
2114
|
"type": "Number"
|
|
2347
2115
|
}
|
|
2348
2116
|
},
|
|
2349
2117
|
{
|
|
2350
|
-
"name": "
|
|
2118
|
+
"name": "Max",
|
|
2351
2119
|
"formula": {
|
|
2352
2120
|
"type": "value",
|
|
2353
|
-
"value":
|
|
2121
|
+
"value": 10
|
|
2354
2122
|
},
|
|
2355
|
-
"description": "
|
|
2123
|
+
"description": "The largest value in the list.",
|
|
2356
2124
|
"type": {
|
|
2357
2125
|
"type": "Number"
|
|
2358
2126
|
}
|
|
2359
2127
|
}
|
|
2360
2128
|
],
|
|
2361
|
-
"variableArguments": true,
|
|
2362
2129
|
"output": {
|
|
2363
|
-
"description": "
|
|
2130
|
+
"description": "An Array containing all the numbers between Min and Max, inclusive.",
|
|
2364
2131
|
"type": {
|
|
2365
|
-
"type": "
|
|
2132
|
+
"type": "Array"
|
|
2366
2133
|
}
|
|
2367
2134
|
}
|
|
2368
2135
|
},
|
|
2369
|
-
"@toddle/
|
|
2370
|
-
"name": "
|
|
2371
|
-
"description": "
|
|
2136
|
+
"@toddle/now": {
|
|
2137
|
+
"name": "Now",
|
|
2138
|
+
"description": "Get a Date representing \"Now\"",
|
|
2139
|
+
"arguments": [],
|
|
2140
|
+
"cache": false,
|
|
2141
|
+
"output": {
|
|
2142
|
+
"description": "A Date object initialized at the current date/time.",
|
|
2143
|
+
"type": {
|
|
2144
|
+
"type": "Date"
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
"@toddle/get": {
|
|
2149
|
+
"name": "Get",
|
|
2150
|
+
"description": "Extract a value from an Object, Array or String at the specified path.",
|
|
2372
2151
|
"arguments": [
|
|
2373
2152
|
{
|
|
2374
2153
|
"name": "Object",
|
|
@@ -2376,240 +2155,321 @@
|
|
|
2376
2155
|
"type": "value",
|
|
2377
2156
|
"value": null
|
|
2378
2157
|
},
|
|
2379
|
-
"description": "The
|
|
2158
|
+
"description": "The Object, Array or String you want to extract an item from.",
|
|
2380
2159
|
"type": {
|
|
2381
|
-
"type": "Object"
|
|
2160
|
+
"type": "Array \\| Object \\| String"
|
|
2382
2161
|
}
|
|
2383
2162
|
},
|
|
2384
2163
|
{
|
|
2385
2164
|
"name": "Path",
|
|
2386
2165
|
"formula": {
|
|
2387
2166
|
"type": "value",
|
|
2388
|
-
"value": "
|
|
2167
|
+
"value": "Item"
|
|
2389
2168
|
},
|
|
2390
|
-
"description": "The Path can be either a Number, a String or an Array
|
|
2169
|
+
"description": "The Path can be either a Number, a String, or an Array.",
|
|
2391
2170
|
"type": {
|
|
2392
|
-
"type": "Array \\| Number \\| String"
|
|
2171
|
+
"type": "Array<String> \\| Number \\| String"
|
|
2393
2172
|
}
|
|
2394
|
-
}
|
|
2173
|
+
}
|
|
2174
|
+
],
|
|
2175
|
+
"output": {
|
|
2176
|
+
"description": "The value found at the Path. If no value is found, this value of the output is Null.",
|
|
2177
|
+
"type": {
|
|
2178
|
+
"type": "Any"
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
},
|
|
2182
|
+
"@toddle/flatten": {
|
|
2183
|
+
"name": "Flatten",
|
|
2184
|
+
"description": "Flatten a nested Array.",
|
|
2185
|
+
"arguments": [
|
|
2395
2186
|
{
|
|
2396
|
-
"name": "
|
|
2397
|
-
"
|
|
2398
|
-
"type": "value",
|
|
2399
|
-
"value": "Item"
|
|
2400
|
-
},
|
|
2401
|
-
"description": "The value to set.",
|
|
2187
|
+
"name": "Array",
|
|
2188
|
+
"description": "An Array containing one or more Arrays.",
|
|
2402
2189
|
"type": {
|
|
2403
|
-
"type": "
|
|
2190
|
+
"type": "Array"
|
|
2191
|
+
},
|
|
2192
|
+
"formula": {
|
|
2193
|
+
"type": "array",
|
|
2194
|
+
"arguments": []
|
|
2404
2195
|
}
|
|
2405
2196
|
}
|
|
2406
2197
|
],
|
|
2407
2198
|
"output": {
|
|
2408
|
-
"description": "
|
|
2199
|
+
"description": "A flattened Array where all items in the original array are concatenated.",
|
|
2409
2200
|
"type": {
|
|
2410
|
-
"type": "
|
|
2201
|
+
"type": "Array"
|
|
2411
2202
|
}
|
|
2412
2203
|
}
|
|
2413
2204
|
},
|
|
2414
|
-
"@toddle/
|
|
2415
|
-
"name": "
|
|
2416
|
-
"description": "
|
|
2205
|
+
"@toddle/shuffle": {
|
|
2206
|
+
"name": "Shuffle",
|
|
2207
|
+
"description": "Shuffle items in an Array or String.",
|
|
2208
|
+
"cache": false,
|
|
2417
2209
|
"arguments": [
|
|
2418
2210
|
{
|
|
2419
|
-
"name": "
|
|
2211
|
+
"name": "Array",
|
|
2420
2212
|
"formula": {
|
|
2421
2213
|
"type": "value",
|
|
2422
2214
|
"value": null
|
|
2423
2215
|
},
|
|
2424
|
-
"description": "The
|
|
2216
|
+
"description": "The input value.",
|
|
2425
2217
|
"type": {
|
|
2426
|
-
"type": "String"
|
|
2218
|
+
"type": "Array \\| String"
|
|
2427
2219
|
}
|
|
2428
2220
|
}
|
|
2429
2221
|
],
|
|
2430
2222
|
"output": {
|
|
2431
|
-
"description": "The
|
|
2223
|
+
"description": "The shuffled Array or String.",
|
|
2432
2224
|
"type": {
|
|
2433
|
-
"type": "
|
|
2225
|
+
"type": "Array \\| String"
|
|
2434
2226
|
}
|
|
2435
2227
|
}
|
|
2436
2228
|
},
|
|
2437
|
-
"@toddle/
|
|
2438
|
-
"name": "
|
|
2439
|
-
"description": "
|
|
2229
|
+
"@toddle/defaultTo": {
|
|
2230
|
+
"name": "Default to",
|
|
2231
|
+
"description": "Return the first value that is not False or Null.",
|
|
2440
2232
|
"arguments": [
|
|
2441
2233
|
{
|
|
2442
|
-
"name": "
|
|
2234
|
+
"name": "0",
|
|
2443
2235
|
"formula": {
|
|
2444
2236
|
"type": "value",
|
|
2445
2237
|
"value": null
|
|
2446
2238
|
},
|
|
2447
|
-
"description": "The
|
|
2239
|
+
"description": "The inital value.",
|
|
2448
2240
|
"type": {
|
|
2449
|
-
"type": "
|
|
2241
|
+
"type": "Any"
|
|
2242
|
+
}
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"name": "1",
|
|
2246
|
+
"description": "The first fallback value to be used if the primary value is Null or False.",
|
|
2247
|
+
"type": {
|
|
2248
|
+
"type": "Any"
|
|
2249
|
+
},
|
|
2250
|
+
"formula": {
|
|
2251
|
+
"type": "value",
|
|
2252
|
+
"value": "default"
|
|
2450
2253
|
}
|
|
2451
2254
|
}
|
|
2452
2255
|
],
|
|
2256
|
+
"variableArguments": true,
|
|
2453
2257
|
"output": {
|
|
2454
|
-
"description": "
|
|
2258
|
+
"description": "Returns the first value that is not False or Null. Returns Null if no valid values is given.",
|
|
2455
2259
|
"type": {
|
|
2456
|
-
"type": "
|
|
2260
|
+
"type": "Any"
|
|
2457
2261
|
}
|
|
2458
2262
|
}
|
|
2459
2263
|
},
|
|
2460
|
-
"@toddle/
|
|
2461
|
-
"name": "
|
|
2462
|
-
"description": "
|
|
2264
|
+
"@toddle/minus": {
|
|
2265
|
+
"name": "Minus",
|
|
2266
|
+
"description": "Subtract a Number from a Number.",
|
|
2463
2267
|
"arguments": [
|
|
2464
2268
|
{
|
|
2465
|
-
"name": "
|
|
2466
|
-
"
|
|
2467
|
-
|
|
2468
|
-
"
|
|
2269
|
+
"name": "Minuend",
|
|
2270
|
+
"formula": {
|
|
2271
|
+
"type": "value",
|
|
2272
|
+
"value": 1
|
|
2469
2273
|
},
|
|
2274
|
+
"description": "The number to subtract from.",
|
|
2275
|
+
"type": {
|
|
2276
|
+
"type": "Number"
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
"name": "Substrahend",
|
|
2470
2281
|
"formula": {
|
|
2471
2282
|
"type": "value",
|
|
2472
|
-
"value":
|
|
2283
|
+
"value": 1
|
|
2284
|
+
},
|
|
2285
|
+
"description": "The number to subtract.",
|
|
2286
|
+
"type": {
|
|
2287
|
+
"type": "Number"
|
|
2473
2288
|
}
|
|
2474
2289
|
}
|
|
2475
2290
|
],
|
|
2476
2291
|
"output": {
|
|
2477
|
-
"description": "The
|
|
2292
|
+
"description": "The result of subtracting the Substrahend from the Minuend.",
|
|
2478
2293
|
"type": {
|
|
2479
|
-
"type": "
|
|
2294
|
+
"type": "Number"
|
|
2480
2295
|
}
|
|
2481
2296
|
}
|
|
2482
2297
|
},
|
|
2483
|
-
"@toddle/
|
|
2484
|
-
"name": "
|
|
2298
|
+
"@toddle/min": {
|
|
2299
|
+
"name": "Min",
|
|
2300
|
+
"description": "Find the smallest Number from a list of inputs.",
|
|
2485
2301
|
"arguments": [
|
|
2486
2302
|
{
|
|
2487
|
-
"name": "
|
|
2488
|
-
"
|
|
2303
|
+
"name": "0",
|
|
2304
|
+
"formula": {
|
|
2305
|
+
"type": "value",
|
|
2306
|
+
"value": null
|
|
2307
|
+
},
|
|
2308
|
+
"description": "Input number",
|
|
2489
2309
|
"type": {
|
|
2490
2310
|
"type": "Number"
|
|
2491
|
-
}
|
|
2311
|
+
}
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
"name": "1",
|
|
2492
2315
|
"formula": {
|
|
2493
2316
|
"type": "value",
|
|
2494
|
-
"value":
|
|
2317
|
+
"value": null
|
|
2318
|
+
},
|
|
2319
|
+
"description": "Input number",
|
|
2320
|
+
"type": {
|
|
2321
|
+
"type": "Number"
|
|
2495
2322
|
}
|
|
2496
2323
|
}
|
|
2497
2324
|
],
|
|
2498
|
-
"
|
|
2325
|
+
"variableArguments": true,
|
|
2499
2326
|
"output": {
|
|
2500
|
-
"description": "The
|
|
2327
|
+
"description": "The smallest of the input Numbers.",
|
|
2501
2328
|
"type": {
|
|
2502
|
-
"type": "
|
|
2329
|
+
"type": "Number"
|
|
2503
2330
|
}
|
|
2504
2331
|
}
|
|
2505
2332
|
},
|
|
2506
|
-
"@toddle/
|
|
2507
|
-
"name": "
|
|
2508
|
-
"description": "
|
|
2509
|
-
"cache": false,
|
|
2333
|
+
"@toddle/trim": {
|
|
2334
|
+
"name": "Trim",
|
|
2335
|
+
"description": "Remove any leading and trailing white spaces from a String.",
|
|
2510
2336
|
"arguments": [
|
|
2511
2337
|
{
|
|
2512
|
-
"name": "
|
|
2338
|
+
"name": "String",
|
|
2513
2339
|
"formula": {
|
|
2514
2340
|
"type": "value",
|
|
2515
|
-
"value": "
|
|
2341
|
+
"value": ""
|
|
2516
2342
|
},
|
|
2343
|
+
"description": "The String to trim.",
|
|
2517
2344
|
"type": {
|
|
2518
2345
|
"type": "String"
|
|
2519
|
-
}
|
|
2520
|
-
"description": "The id of the DOM element to return."
|
|
2346
|
+
}
|
|
2521
2347
|
}
|
|
2522
2348
|
],
|
|
2523
2349
|
"output": {
|
|
2524
|
-
"description": "The
|
|
2350
|
+
"description": "The trimmed String.",
|
|
2525
2351
|
"type": {
|
|
2526
|
-
"type": "
|
|
2352
|
+
"type": "String"
|
|
2527
2353
|
}
|
|
2528
2354
|
}
|
|
2529
2355
|
},
|
|
2530
|
-
"@toddle/
|
|
2531
|
-
"name": "
|
|
2532
|
-
"description": "
|
|
2356
|
+
"@toddle/take": {
|
|
2357
|
+
"name": "Take",
|
|
2358
|
+
"description": "Take items from the start of an Array or String.",
|
|
2533
2359
|
"arguments": [
|
|
2534
2360
|
{
|
|
2535
|
-
"name": "
|
|
2361
|
+
"name": "Array",
|
|
2536
2362
|
"formula": {
|
|
2537
2363
|
"type": "value",
|
|
2538
2364
|
"value": null
|
|
2539
2365
|
},
|
|
2540
|
-
"description": "Input
|
|
2366
|
+
"description": "Input Array or String.",
|
|
2541
2367
|
"type": {
|
|
2542
|
-
"type": "
|
|
2368
|
+
"type": "Array \\| String"
|
|
2543
2369
|
}
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"name": "Count",
|
|
2373
|
+
"formula": {
|
|
2374
|
+
"type": "value",
|
|
2375
|
+
"value": 1
|
|
2376
|
+
},
|
|
2377
|
+
"type": {
|
|
2378
|
+
"type": "Number"
|
|
2379
|
+
},
|
|
2380
|
+
"description": "Number of items to take."
|
|
2544
2381
|
}
|
|
2545
2382
|
],
|
|
2546
2383
|
"output": {
|
|
2547
|
-
"description": "
|
|
2384
|
+
"description": "The first items from the Array or String.",
|
|
2548
2385
|
"type": {
|
|
2549
|
-
"type": "Array"
|
|
2386
|
+
"type": "Array \\| String"
|
|
2550
2387
|
}
|
|
2551
2388
|
}
|
|
2552
2389
|
},
|
|
2553
|
-
"@toddle/
|
|
2554
|
-
"name": "
|
|
2555
|
-
"description": "
|
|
2390
|
+
"@toddle/groupBy": {
|
|
2391
|
+
"name": "Group by",
|
|
2392
|
+
"description": "Group an Array of items into an Object based on a grouping formula.",
|
|
2556
2393
|
"arguments": [
|
|
2557
2394
|
{
|
|
2558
|
-
"name": "
|
|
2395
|
+
"name": "Array",
|
|
2559
2396
|
"formula": {
|
|
2560
2397
|
"type": "value",
|
|
2561
2398
|
"value": null
|
|
2562
2399
|
},
|
|
2563
|
-
"description": "
|
|
2400
|
+
"description": "Array of items to be grouped.",
|
|
2564
2401
|
"type": {
|
|
2565
|
-
"type": "
|
|
2402
|
+
"type": "Array"
|
|
2566
2403
|
}
|
|
2567
2404
|
},
|
|
2568
2405
|
{
|
|
2569
|
-
"name": "
|
|
2406
|
+
"name": "Formula",
|
|
2407
|
+
"isFunction": true,
|
|
2570
2408
|
"formula": {
|
|
2571
2409
|
"type": "value",
|
|
2572
|
-
"value":
|
|
2410
|
+
"value": null
|
|
2573
2411
|
},
|
|
2574
|
-
"description": "The
|
|
2412
|
+
"description": "The grouping formula used to group the items. The String returned from the formula will match the key in the output Oject.",
|
|
2575
2413
|
"type": {
|
|
2576
|
-
"type": "
|
|
2414
|
+
"type": "Formula"
|
|
2577
2415
|
}
|
|
2578
2416
|
}
|
|
2579
2417
|
],
|
|
2580
2418
|
"output": {
|
|
2581
|
-
"description": "
|
|
2419
|
+
"description": "An Object where each key matches a value returned by the grouping formula, and each value is the list of items that share the return value.",
|
|
2582
2420
|
"type": {
|
|
2583
|
-
"type": "
|
|
2421
|
+
"type": "Object"
|
|
2584
2422
|
}
|
|
2585
2423
|
}
|
|
2586
2424
|
},
|
|
2587
|
-
"@toddle/
|
|
2588
|
-
"name": "
|
|
2589
|
-
"description": "Return the first item in an Array.",
|
|
2425
|
+
"@toddle/formatNumber": {
|
|
2426
|
+
"name": "Format Number",
|
|
2590
2427
|
"arguments": [
|
|
2591
2428
|
{
|
|
2592
|
-
"name": "
|
|
2429
|
+
"name": "Input",
|
|
2430
|
+
"description": "Number to format.",
|
|
2431
|
+
"type": {
|
|
2432
|
+
"type": "Number"
|
|
2433
|
+
},
|
|
2593
2434
|
"formula": {
|
|
2594
|
-
"type": "
|
|
2595
|
-
"value":
|
|
2435
|
+
"type": "Number",
|
|
2436
|
+
"value": 100
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
"name": "Locale(s)",
|
|
2441
|
+
"description": "Optional locale to use for formatting the Number, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
2442
|
+
"type": {
|
|
2443
|
+
"type": "Array \\| String"
|
|
2596
2444
|
},
|
|
2445
|
+
"formula": {
|
|
2446
|
+
"type": "value",
|
|
2447
|
+
"value": null
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"name": "Options",
|
|
2452
|
+
"description": "Optional Object for configuring the formatting of the output. See the [NumberFormat locale options on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#locale_options).",
|
|
2597
2453
|
"type": {
|
|
2598
|
-
"type": "
|
|
2454
|
+
"type": "Object"
|
|
2599
2455
|
},
|
|
2600
|
-
"
|
|
2456
|
+
"formula": {
|
|
2457
|
+
"type": "value",
|
|
2458
|
+
"value": null
|
|
2459
|
+
}
|
|
2601
2460
|
}
|
|
2602
2461
|
],
|
|
2462
|
+
"description": "Format a Number using the Intl.NumberFormat API. See the [NumberFormat docs on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat).",
|
|
2603
2463
|
"output": {
|
|
2604
|
-
"description": "The
|
|
2464
|
+
"description": "The Number input formatted as a String.",
|
|
2605
2465
|
"type": {
|
|
2606
|
-
"type": "
|
|
2466
|
+
"type": "String"
|
|
2607
2467
|
}
|
|
2608
2468
|
}
|
|
2609
2469
|
},
|
|
2610
|
-
"@toddle/
|
|
2611
|
-
"name": "
|
|
2612
|
-
"description": "Run a formula on
|
|
2470
|
+
"@toddle/some": {
|
|
2471
|
+
"name": "Some",
|
|
2472
|
+
"description": "Run a formula on all items of an Array to determine if any item matches a set of conditions.",
|
|
2613
2473
|
"arguments": [
|
|
2614
2474
|
{
|
|
2615
2475
|
"name": "Array",
|
|
@@ -2617,7 +2477,7 @@
|
|
|
2617
2477
|
"type": "value",
|
|
2618
2478
|
"value": null
|
|
2619
2479
|
},
|
|
2620
|
-
"description": "The Array of items.",
|
|
2480
|
+
"description": "The Array of items to evaluate.",
|
|
2621
2481
|
"type": {
|
|
2622
2482
|
"type": "Array"
|
|
2623
2483
|
}
|
|
@@ -2632,107 +2492,174 @@
|
|
|
2632
2492
|
"item"
|
|
2633
2493
|
]
|
|
2634
2494
|
},
|
|
2635
|
-
"description": "
|
|
2495
|
+
"description": "Predicate formula for evaluating each item.",
|
|
2636
2496
|
"type": {
|
|
2637
2497
|
"type": "Formula"
|
|
2638
2498
|
}
|
|
2639
2499
|
}
|
|
2640
2500
|
],
|
|
2641
2501
|
"output": {
|
|
2642
|
-
"description": "
|
|
2502
|
+
"description": "Returns True if the predicate formula returns True for any items in the Array, otherwise False.",
|
|
2643
2503
|
"type": {
|
|
2644
|
-
"type": "
|
|
2504
|
+
"type": "Boolean"
|
|
2645
2505
|
}
|
|
2646
2506
|
}
|
|
2647
2507
|
},
|
|
2648
|
-
"@toddle/
|
|
2649
|
-
"name": "
|
|
2650
|
-
"description": "
|
|
2651
|
-
"arguments": [],
|
|
2508
|
+
"@toddle/getElementById": {
|
|
2509
|
+
"name": "Get element by id",
|
|
2510
|
+
"description": "Return a DOM element with a given id.",
|
|
2652
2511
|
"cache": false,
|
|
2512
|
+
"arguments": [
|
|
2513
|
+
{
|
|
2514
|
+
"name": "Id",
|
|
2515
|
+
"formula": {
|
|
2516
|
+
"type": "value",
|
|
2517
|
+
"value": "element-id"
|
|
2518
|
+
},
|
|
2519
|
+
"type": {
|
|
2520
|
+
"type": "String"
|
|
2521
|
+
},
|
|
2522
|
+
"description": "The id of the DOM element to return."
|
|
2523
|
+
}
|
|
2524
|
+
],
|
|
2653
2525
|
"output": {
|
|
2654
|
-
"description": "
|
|
2526
|
+
"description": "The DOM element with the given id. If no DOM element is found, this will return Null.",
|
|
2655
2527
|
"type": {
|
|
2656
|
-
"type": "
|
|
2528
|
+
"type": "Element"
|
|
2657
2529
|
}
|
|
2658
2530
|
}
|
|
2659
2531
|
},
|
|
2660
|
-
"@toddle/
|
|
2661
|
-
"name": "
|
|
2662
|
-
"description": "
|
|
2532
|
+
"@toddle/branchName": {
|
|
2533
|
+
"name": "Branch Name",
|
|
2534
|
+
"description": "Get the name of the current branch. For production, the branch name is 'main'.",
|
|
2535
|
+
"arguments": [],
|
|
2536
|
+
"output": {
|
|
2537
|
+
"description": "Returns the name of the current branch.",
|
|
2538
|
+
"type": {
|
|
2539
|
+
"type": "String"
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
},
|
|
2543
|
+
"@toddle/sort_by": {
|
|
2544
|
+
"name": "Sort by",
|
|
2545
|
+
"description": "Sort an Array using a formula.",
|
|
2663
2546
|
"arguments": [
|
|
2664
2547
|
{
|
|
2665
|
-
"name": "
|
|
2548
|
+
"name": "Array",
|
|
2666
2549
|
"formula": {
|
|
2667
2550
|
"type": "value",
|
|
2668
|
-
"value":
|
|
2551
|
+
"value": []
|
|
2669
2552
|
},
|
|
2670
|
-
"description": "The String to check.",
|
|
2671
2553
|
"type": {
|
|
2672
|
-
"type": "
|
|
2673
|
-
}
|
|
2554
|
+
"type": "Array"
|
|
2555
|
+
},
|
|
2556
|
+
"description": "The input Array."
|
|
2674
2557
|
},
|
|
2675
2558
|
{
|
|
2676
|
-
"name": "
|
|
2559
|
+
"name": "Formula",
|
|
2560
|
+
"formula": {
|
|
2561
|
+
"type": "path",
|
|
2562
|
+
"path": [
|
|
2563
|
+
"Args",
|
|
2564
|
+
"item"
|
|
2565
|
+
]
|
|
2566
|
+
},
|
|
2567
|
+
"type": {
|
|
2568
|
+
"type": "Formula"
|
|
2569
|
+
},
|
|
2570
|
+
"isFunction": true,
|
|
2571
|
+
"description": "The sorting formula. The output of this formula will determine the sort order of the items. If the formula returns an Array, the items will first be sorted by the first item, then the second, etc."
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
"name": "Ascending?",
|
|
2677
2575
|
"formula": {
|
|
2678
2576
|
"type": "value",
|
|
2679
|
-
"value":
|
|
2577
|
+
"value": true
|
|
2680
2578
|
},
|
|
2681
|
-
"description": "The prefix to check for.",
|
|
2682
2579
|
"type": {
|
|
2683
|
-
"type": "
|
|
2684
|
-
}
|
|
2580
|
+
"type": "Boolean"
|
|
2581
|
+
},
|
|
2582
|
+
"description": "Should the list be sorted in ascending order?"
|
|
2685
2583
|
}
|
|
2686
2584
|
],
|
|
2687
2585
|
"output": {
|
|
2688
|
-
"description": "
|
|
2586
|
+
"description": "The input Array sorted by the value returned by the sorting formula.",
|
|
2689
2587
|
"type": {
|
|
2690
|
-
"type": "
|
|
2588
|
+
"type": "Number"
|
|
2691
2589
|
}
|
|
2692
2590
|
}
|
|
2693
2591
|
},
|
|
2694
|
-
"@toddle/
|
|
2695
|
-
"name": "
|
|
2696
|
-
"description": "
|
|
2592
|
+
"@toddle/clamp": {
|
|
2593
|
+
"name": "Clamp",
|
|
2594
|
+
"description": "Limit a value to a specified Min and Max value.",
|
|
2697
2595
|
"arguments": [
|
|
2698
2596
|
{
|
|
2699
|
-
"name": "
|
|
2700
|
-
"description": "The URL you want to check.",
|
|
2597
|
+
"name": "Value",
|
|
2701
2598
|
"type": {
|
|
2702
|
-
"type": "
|
|
2599
|
+
"type": "Number"
|
|
2703
2600
|
},
|
|
2704
2601
|
"formula": {
|
|
2705
2602
|
"type": "value",
|
|
2706
2603
|
"value": null
|
|
2707
|
-
}
|
|
2604
|
+
},
|
|
2605
|
+
"description": "Number to round."
|
|
2708
2606
|
},
|
|
2709
2607
|
{
|
|
2710
|
-
"name": "
|
|
2711
|
-
"description": "The title you want to check.",
|
|
2608
|
+
"name": "Min",
|
|
2712
2609
|
"type": {
|
|
2713
|
-
"type": "
|
|
2610
|
+
"type": "Number"
|
|
2714
2611
|
},
|
|
2612
|
+
"description": "The smallest allowed Number.",
|
|
2715
2613
|
"formula": {
|
|
2716
2614
|
"type": "value",
|
|
2717
|
-
"value":
|
|
2615
|
+
"value": 0
|
|
2718
2616
|
}
|
|
2719
2617
|
},
|
|
2720
2618
|
{
|
|
2721
|
-
"name": "
|
|
2722
|
-
"description": "The text you want to check.",
|
|
2619
|
+
"name": "Max",
|
|
2723
2620
|
"type": {
|
|
2724
|
-
"type": "
|
|
2621
|
+
"type": "Number"
|
|
2725
2622
|
},
|
|
2623
|
+
"description": "The largest allowed Number.",
|
|
2726
2624
|
"formula": {
|
|
2727
2625
|
"type": "value",
|
|
2728
|
-
"value":
|
|
2626
|
+
"value": 100
|
|
2729
2627
|
}
|
|
2730
2628
|
}
|
|
2731
|
-
]
|
|
2629
|
+
],
|
|
2630
|
+
"output": {
|
|
2631
|
+
"type": {
|
|
2632
|
+
"type": "Number"
|
|
2633
|
+
},
|
|
2634
|
+
"description": "Returns the input value if between the specified Min and Max. Otherwise, it returns the Min or Max value."
|
|
2635
|
+
}
|
|
2732
2636
|
},
|
|
2733
|
-
"@toddle/
|
|
2734
|
-
"name": "
|
|
2735
|
-
"
|
|
2637
|
+
"@toddle/decodeBase64": {
|
|
2638
|
+
"name": "Decode base64",
|
|
2639
|
+
"arguments": [
|
|
2640
|
+
{
|
|
2641
|
+
"name": "Base64 value",
|
|
2642
|
+
"formula": {
|
|
2643
|
+
"type": "value",
|
|
2644
|
+
"value": "Input value"
|
|
2645
|
+
},
|
|
2646
|
+
"type": {
|
|
2647
|
+
"type": "String"
|
|
2648
|
+
},
|
|
2649
|
+
"description": "The input data encoded as base64."
|
|
2650
|
+
}
|
|
2651
|
+
],
|
|
2652
|
+
"description": "Deocde a base64 string to utf-8.",
|
|
2653
|
+
"output": {
|
|
2654
|
+
"description": "The decoded string.",
|
|
2655
|
+
"type": {
|
|
2656
|
+
"type": "String"
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
},
|
|
2660
|
+
"@toddle/findLast": {
|
|
2661
|
+
"name": "Find Last",
|
|
2662
|
+
"description": "Search through an Array of items and apply a formula to each item, to return the last item where the formula returns True.",
|
|
2736
2663
|
"arguments": [
|
|
2737
2664
|
{
|
|
2738
2665
|
"name": "Array",
|
|
@@ -2740,131 +2667,146 @@
|
|
|
2740
2667
|
"type": "value",
|
|
2741
2668
|
"value": null
|
|
2742
2669
|
},
|
|
2743
|
-
"description": "
|
|
2670
|
+
"description": "The array to search.",
|
|
2744
2671
|
"type": {
|
|
2745
2672
|
"type": "Array"
|
|
2746
2673
|
}
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"name": "Formula",
|
|
2677
|
+
"isFunction": true,
|
|
2678
|
+
"formula": {
|
|
2679
|
+
"type": "path",
|
|
2680
|
+
"path": [
|
|
2681
|
+
"Args",
|
|
2682
|
+
"item"
|
|
2683
|
+
]
|
|
2684
|
+
},
|
|
2685
|
+
"description": "The predicate formula that each item in the Array is passed to.",
|
|
2686
|
+
"type": {
|
|
2687
|
+
"type": "Formula"
|
|
2688
|
+
}
|
|
2747
2689
|
}
|
|
2748
2690
|
],
|
|
2749
2691
|
"output": {
|
|
2750
|
-
"description": "
|
|
2692
|
+
"description": "The last item in the Array where the formula returns True. Returns Null if the predicate formula did not return True for any item.",
|
|
2751
2693
|
"type": {
|
|
2752
|
-
"type": "
|
|
2694
|
+
"type": "Any"
|
|
2753
2695
|
}
|
|
2754
2696
|
}
|
|
2755
2697
|
},
|
|
2756
|
-
"@toddle/
|
|
2757
|
-
"name": "
|
|
2758
|
-
"description": "
|
|
2698
|
+
"@toddle/drop": {
|
|
2699
|
+
"name": "Drop",
|
|
2700
|
+
"description": "Remove items from the beginning of an Array or String.",
|
|
2759
2701
|
"arguments": [
|
|
2760
2702
|
{
|
|
2761
|
-
"name": "
|
|
2703
|
+
"name": "Array",
|
|
2704
|
+
"formula": {
|
|
2705
|
+
"type": "value",
|
|
2706
|
+
"value": null
|
|
2707
|
+
},
|
|
2708
|
+
"description": "The input value.",
|
|
2709
|
+
"type": {
|
|
2710
|
+
"type": "Array \\| String"
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2713
|
+
{
|
|
2714
|
+
"name": "Count",
|
|
2715
|
+
"description": "Number of items to remove.",
|
|
2716
|
+
"type": {
|
|
2717
|
+
"type": "Number"
|
|
2718
|
+
},
|
|
2762
2719
|
"formula": {
|
|
2763
2720
|
"type": "value",
|
|
2764
|
-
"value":
|
|
2765
|
-
},
|
|
2766
|
-
"description": "Input String.",
|
|
2767
|
-
"type": {
|
|
2768
|
-
"type": "String"
|
|
2721
|
+
"value": 1
|
|
2769
2722
|
}
|
|
2770
2723
|
}
|
|
2771
2724
|
],
|
|
2772
2725
|
"output": {
|
|
2773
|
-
"description": "
|
|
2726
|
+
"description": "A copy of the list without the first items.",
|
|
2774
2727
|
"type": {
|
|
2775
|
-
"type": "String"
|
|
2728
|
+
"type": "Array \\| String"
|
|
2776
2729
|
}
|
|
2777
2730
|
}
|
|
2778
2731
|
},
|
|
2779
|
-
"@toddle/
|
|
2780
|
-
"name": "
|
|
2781
|
-
"description": "
|
|
2732
|
+
"@toddle/entries": {
|
|
2733
|
+
"name": "Entries",
|
|
2734
|
+
"description": "Get an Array of entries from a given Object.",
|
|
2782
2735
|
"arguments": [
|
|
2783
2736
|
{
|
|
2784
|
-
"name": "
|
|
2785
|
-
"type": {
|
|
2786
|
-
"type": "Array"
|
|
2787
|
-
},
|
|
2788
|
-
"description": "The array of numbers to sum.",
|
|
2737
|
+
"name": "Object",
|
|
2789
2738
|
"formula": {
|
|
2790
|
-
"type": "
|
|
2791
|
-
"
|
|
2739
|
+
"type": "value",
|
|
2740
|
+
"value": null
|
|
2741
|
+
},
|
|
2742
|
+
"description": "Input record",
|
|
2743
|
+
"type": {
|
|
2744
|
+
"type": "Object"
|
|
2792
2745
|
}
|
|
2793
2746
|
}
|
|
2794
2747
|
],
|
|
2795
2748
|
"output": {
|
|
2796
|
-
"description": "
|
|
2749
|
+
"description": "Returns an Array of entries for the given input record. The entries are Objects with a “Key” and “Value” property.",
|
|
2797
2750
|
"type": {
|
|
2798
|
-
"type": "
|
|
2751
|
+
"type": "Array"
|
|
2799
2752
|
}
|
|
2800
2753
|
}
|
|
2801
2754
|
},
|
|
2802
|
-
"@toddle/
|
|
2803
|
-
"name": "
|
|
2804
|
-
"description": "
|
|
2755
|
+
"@toddle/getHttpOnlyCookie": {
|
|
2756
|
+
"name": "Get Http-Only Cookie",
|
|
2757
|
+
"description": "Get the value of an Http-Only cookie by name. This formula will is only intended to be used server-side for SSR/proxied API requests to read Http-Only cookies.",
|
|
2805
2758
|
"arguments": [
|
|
2806
2759
|
{
|
|
2807
|
-
"name": "
|
|
2760
|
+
"name": "Cookie name",
|
|
2808
2761
|
"formula": {
|
|
2809
2762
|
"type": "value",
|
|
2810
2763
|
"value": null
|
|
2811
2764
|
},
|
|
2765
|
+
"description": "The name of the Http-Only cookie you want to get the value of.",
|
|
2812
2766
|
"type": {
|
|
2813
2767
|
"type": "String"
|
|
2814
|
-
}
|
|
2815
|
-
"description": "The encoded URI to decode."
|
|
2768
|
+
}
|
|
2816
2769
|
}
|
|
2817
2770
|
],
|
|
2818
2771
|
"output": {
|
|
2819
|
-
"description": "The
|
|
2772
|
+
"description": "The value of the cookie. If no cookie is found, this will return Null. If you use this formula client-side, it will return a placeholder template string.",
|
|
2820
2773
|
"type": {
|
|
2821
2774
|
"type": "String"
|
|
2822
2775
|
}
|
|
2823
2776
|
}
|
|
2824
2777
|
},
|
|
2825
|
-
"@toddle/
|
|
2826
|
-
"name": "
|
|
2827
|
-
"description": "
|
|
2778
|
+
"@toddle/max": {
|
|
2779
|
+
"name": "Max",
|
|
2780
|
+
"description": "Find the largest Number from a list of inputs.",
|
|
2828
2781
|
"arguments": [
|
|
2829
2782
|
{
|
|
2830
|
-
"name": "
|
|
2831
|
-
"formula": {
|
|
2832
|
-
"type": "value",
|
|
2833
|
-
"value": null
|
|
2834
|
-
},
|
|
2835
|
-
"description": "The Array or Object of items to be reduced.",
|
|
2836
|
-
"type": {
|
|
2837
|
-
"type": "Array \\| Object"
|
|
2838
|
-
}
|
|
2839
|
-
},
|
|
2840
|
-
{
|
|
2841
|
-
"name": "Formula",
|
|
2842
|
-
"isFunction": true,
|
|
2783
|
+
"name": "0",
|
|
2843
2784
|
"formula": {
|
|
2844
2785
|
"type": "value",
|
|
2845
2786
|
"value": null
|
|
2846
2787
|
},
|
|
2847
|
-
"description": "
|
|
2788
|
+
"description": "Input Number.",
|
|
2848
2789
|
"type": {
|
|
2849
|
-
"type": "
|
|
2790
|
+
"type": "Number"
|
|
2850
2791
|
}
|
|
2851
2792
|
},
|
|
2852
2793
|
{
|
|
2853
|
-
"name": "
|
|
2794
|
+
"name": "1",
|
|
2854
2795
|
"formula": {
|
|
2855
2796
|
"type": "value",
|
|
2856
2797
|
"value": null
|
|
2857
2798
|
},
|
|
2858
|
-
"description": "
|
|
2799
|
+
"description": "Input Number.",
|
|
2859
2800
|
"type": {
|
|
2860
|
-
"type": "
|
|
2801
|
+
"type": "Number"
|
|
2861
2802
|
}
|
|
2862
2803
|
}
|
|
2863
2804
|
],
|
|
2805
|
+
"variableArguments": true,
|
|
2864
2806
|
"output": {
|
|
2865
|
-
"description": "The
|
|
2807
|
+
"description": "The largest of the input Numbers.",
|
|
2866
2808
|
"type": {
|
|
2867
|
-
"type": "
|
|
2809
|
+
"type": "Number"
|
|
2868
2810
|
}
|
|
2869
2811
|
}
|
|
2870
2812
|
},
|
|
@@ -2901,119 +2843,71 @@
|
|
|
2901
2843
|
"type": "Boolean"
|
|
2902
2844
|
}
|
|
2903
2845
|
}
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
"
|
|
2909
|
-
"description": "Share data with title, text, and/or URL using the Navigator.share API.",
|
|
2846
|
+
},
|
|
2847
|
+
"@toddle/getFromLocalStorage": {
|
|
2848
|
+
"name": "Get from Local Storage",
|
|
2849
|
+
"description": "Read a value from local storage with the provided key.",
|
|
2850
|
+
"cache": false,
|
|
2910
2851
|
"arguments": [
|
|
2911
2852
|
{
|
|
2912
|
-
"name": "
|
|
2913
|
-
"description": "The URL to share.",
|
|
2914
|
-
"type": {
|
|
2915
|
-
"type": "String"
|
|
2916
|
-
},
|
|
2853
|
+
"name": "Key",
|
|
2917
2854
|
"formula": {
|
|
2918
2855
|
"type": "value",
|
|
2919
2856
|
"value": null
|
|
2920
|
-
}
|
|
2921
|
-
},
|
|
2922
|
-
{
|
|
2923
|
-
"name": "Title",
|
|
2924
|
-
"description": "The title to share.",
|
|
2925
|
-
"type": {
|
|
2926
|
-
"type": "String"
|
|
2927
2857
|
},
|
|
2928
|
-
"
|
|
2929
|
-
"type": "value",
|
|
2930
|
-
"value": null
|
|
2931
|
-
}
|
|
2932
|
-
},
|
|
2933
|
-
{
|
|
2934
|
-
"name": "Text",
|
|
2935
|
-
"description": "The text to share.",
|
|
2858
|
+
"description": "The key to read from local storage.",
|
|
2936
2859
|
"type": {
|
|
2937
2860
|
"type": "String"
|
|
2938
|
-
},
|
|
2939
|
-
"formula": {
|
|
2940
|
-
"type": "value",
|
|
2941
|
-
"value": null
|
|
2942
2861
|
}
|
|
2943
2862
|
}
|
|
2944
|
-
]
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
"arguments": [
|
|
2950
|
-
{
|
|
2951
|
-
"name": "Key",
|
|
2952
|
-
"description": "The key in local storage to delete.",
|
|
2953
|
-
"type": {
|
|
2954
|
-
"type": "String"
|
|
2955
|
-
},
|
|
2956
|
-
"formula": {
|
|
2957
|
-
"type": "value",
|
|
2958
|
-
"value": ""
|
|
2959
|
-
}
|
|
2863
|
+
],
|
|
2864
|
+
"output": {
|
|
2865
|
+
"description": "The value found in local storage. If no value is found, this will return Null.",
|
|
2866
|
+
"type": {
|
|
2867
|
+
"type": "Any"
|
|
2960
2868
|
}
|
|
2961
|
-
|
|
2869
|
+
}
|
|
2962
2870
|
},
|
|
2963
|
-
"@toddle/
|
|
2964
|
-
"name": "
|
|
2965
|
-
"description": "
|
|
2871
|
+
"@toddle/dropLast": {
|
|
2872
|
+
"name": "Drop last",
|
|
2873
|
+
"description": "Remove item(s) from the end of an Array or String.",
|
|
2966
2874
|
"arguments": [
|
|
2967
2875
|
{
|
|
2968
|
-
"name": "
|
|
2969
|
-
"description": "The DOM element that should receive focus.",
|
|
2970
|
-
"type": {
|
|
2971
|
-
"type": "Element"
|
|
2972
|
-
},
|
|
2876
|
+
"name": "Array",
|
|
2973
2877
|
"formula": {
|
|
2974
|
-
"type": "
|
|
2878
|
+
"type": "value",
|
|
2975
2879
|
"value": null
|
|
2976
|
-
}
|
|
2977
|
-
}
|
|
2978
|
-
]
|
|
2979
|
-
},
|
|
2980
|
-
"@toddle/setSessionCookies": {
|
|
2981
|
-
"name": "Set session cookies",
|
|
2982
|
-
"description": "Save authentication tokens as session cookies.",
|
|
2983
|
-
"arguments": [
|
|
2984
|
-
{
|
|
2985
|
-
"name": "Access token",
|
|
2986
|
-
"description": "Access tokens are the most common way to authenticate with a server.",
|
|
2987
|
-
"type": {
|
|
2988
|
-
"type": "String"
|
|
2989
2880
|
},
|
|
2990
|
-
"
|
|
2991
|
-
|
|
2992
|
-
"
|
|
2881
|
+
"description": "The input value.",
|
|
2882
|
+
"type": {
|
|
2883
|
+
"type": "Array \\| String"
|
|
2993
2884
|
}
|
|
2994
2885
|
},
|
|
2995
2886
|
{
|
|
2996
|
-
"name": "
|
|
2997
|
-
"
|
|
2887
|
+
"name": "Count",
|
|
2888
|
+
"formula": {
|
|
2889
|
+
"type": "value",
|
|
2890
|
+
"value": 1
|
|
2891
|
+
},
|
|
2998
2892
|
"type": {
|
|
2999
2893
|
"type": "Number"
|
|
3000
2894
|
},
|
|
3001
|
-
"
|
|
3002
|
-
"type": "value",
|
|
3003
|
-
"value": ""
|
|
3004
|
-
}
|
|
2895
|
+
"description": "Number of items to remove."
|
|
3005
2896
|
}
|
|
3006
2897
|
],
|
|
3007
|
-
"
|
|
3008
|
-
"
|
|
3009
|
-
|
|
3010
|
-
"
|
|
3011
|
-
},
|
|
3012
|
-
"Error": {
|
|
3013
|
-
"description": "This event is triggered if Nordcraft is unable to set the session cookies.",
|
|
3014
|
-
"actions": []
|
|
2898
|
+
"output": {
|
|
2899
|
+
"description": "A copy of the list without the last item(s).",
|
|
2900
|
+
"type": {
|
|
2901
|
+
"type": "Array \\| String"
|
|
3015
2902
|
}
|
|
3016
2903
|
}
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
export const actions = {
|
|
2907
|
+
"@toddle/clearLocalStorage": {
|
|
2908
|
+
"name": "Clear Local Storage",
|
|
2909
|
+
"description": "Delete all values in local storage.",
|
|
2910
|
+
"arguments": []
|
|
3017
2911
|
},
|
|
3018
2912
|
"@toddle/saveToSessionStorage": {
|
|
3019
2913
|
"name": "Save to Session Storage",
|
|
@@ -3043,53 +2937,32 @@
|
|
|
3043
2937
|
}
|
|
3044
2938
|
]
|
|
3045
2939
|
},
|
|
3046
|
-
"@toddle/
|
|
3047
|
-
"name": "
|
|
3048
|
-
"
|
|
3049
|
-
"
|
|
3050
|
-
|
|
3051
|
-
"name": "Key",
|
|
3052
|
-
"description": "The key in session storage to delete.",
|
|
3053
|
-
"type": {
|
|
3054
|
-
"type": "String"
|
|
3055
|
-
},
|
|
3056
|
-
"formula": {
|
|
3057
|
-
"type": "value",
|
|
3058
|
-
"value": ""
|
|
3059
|
-
}
|
|
3060
|
-
}
|
|
3061
|
-
]
|
|
2940
|
+
"@toddle/preventDefault": {
|
|
2941
|
+
"name": "Prevent default",
|
|
2942
|
+
"docs-link": "https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault",
|
|
2943
|
+
"description": "Prevent default browser behavior for this event.",
|
|
2944
|
+
"arguments": []
|
|
3062
2945
|
},
|
|
3063
|
-
"@toddle/
|
|
3064
|
-
"name": "
|
|
3065
|
-
"description": "
|
|
2946
|
+
"@toddle/focus": {
|
|
2947
|
+
"name": "Focus",
|
|
2948
|
+
"description": "Move focus to a DOM element.",
|
|
3066
2949
|
"arguments": [
|
|
3067
2950
|
{
|
|
3068
|
-
"name": "
|
|
3069
|
-
"description": "The
|
|
2951
|
+
"name": "Element",
|
|
2952
|
+
"description": "The DOM element that should receive focus.",
|
|
3070
2953
|
"type": {
|
|
3071
|
-
"type": "
|
|
2954
|
+
"type": "Element"
|
|
3072
2955
|
},
|
|
3073
2956
|
"formula": {
|
|
3074
|
-
"type": "
|
|
3075
|
-
"value":
|
|
2957
|
+
"type": "Element",
|
|
2958
|
+
"value": null
|
|
3076
2959
|
}
|
|
3077
2960
|
}
|
|
3078
|
-
]
|
|
3079
|
-
"events": {
|
|
3080
|
-
"tick": {
|
|
3081
|
-
"actions": []
|
|
3082
|
-
}
|
|
3083
|
-
}
|
|
3084
|
-
},
|
|
3085
|
-
"@toddle/clearLocalStorage": {
|
|
3086
|
-
"name": "Clear Local Storage",
|
|
3087
|
-
"description": "Delete all values in local storage.",
|
|
3088
|
-
"arguments": []
|
|
2961
|
+
]
|
|
3089
2962
|
},
|
|
3090
|
-
"@toddle/
|
|
3091
|
-
"name": "Set
|
|
3092
|
-
"description": "Save a key/value pair as
|
|
2963
|
+
"@toddle/setCookie": {
|
|
2964
|
+
"name": "Set Cookie",
|
|
2965
|
+
"description": "Save a key/value pair as a non-http-only cookie (readable on the client). Useful for storing user preferences.",
|
|
3093
2966
|
"arguments": [
|
|
3094
2967
|
{
|
|
3095
2968
|
"name": "Name",
|
|
@@ -3099,7 +2972,7 @@
|
|
|
3099
2972
|
},
|
|
3100
2973
|
"formula": {
|
|
3101
2974
|
"type": "value",
|
|
3102
|
-
"value": "
|
|
2975
|
+
"value": ""
|
|
3103
2976
|
}
|
|
3104
2977
|
},
|
|
3105
2978
|
{
|
|
@@ -3115,7 +2988,7 @@
|
|
|
3115
2988
|
},
|
|
3116
2989
|
{
|
|
3117
2990
|
"name": "Expires in",
|
|
3118
|
-
"description": "(Optional) Time in seconds until the cookie expires.
|
|
2991
|
+
"description": "(Optional) Time in seconds until the cookie expires. If this is null, the cookie will expire at the end of the user's session.",
|
|
3119
2992
|
"type": {
|
|
3120
2993
|
"type": "Number"
|
|
3121
2994
|
},
|
|
@@ -3174,37 +3047,49 @@
|
|
|
3174
3047
|
"description": "Delete all values in session storage.",
|
|
3175
3048
|
"arguments": []
|
|
3176
3049
|
},
|
|
3177
|
-
"@toddle/
|
|
3178
|
-
"name": "
|
|
3179
|
-
"
|
|
3050
|
+
"@toddle/stopPropagation": {
|
|
3051
|
+
"name": "Stop propagation",
|
|
3052
|
+
"docs-link": "https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation",
|
|
3053
|
+
"description": "Stop the event from bubbling up the DOM to parent elements.",
|
|
3054
|
+
"arguments": []
|
|
3055
|
+
},
|
|
3056
|
+
"@toddle/gotToURL": {
|
|
3057
|
+
"name": "Go to URL",
|
|
3058
|
+
"description": "Navigate to a specified URL.",
|
|
3180
3059
|
"arguments": [
|
|
3181
3060
|
{
|
|
3182
|
-
"name": "
|
|
3183
|
-
"description": "The
|
|
3061
|
+
"name": "URL",
|
|
3062
|
+
"description": "The URL to navigate to.",
|
|
3184
3063
|
"type": {
|
|
3185
3064
|
"type": "String"
|
|
3186
3065
|
},
|
|
3187
3066
|
"formula": {
|
|
3188
3067
|
"type": "value",
|
|
3189
|
-
"value": ""
|
|
3068
|
+
"value": "https://example.com"
|
|
3190
3069
|
}
|
|
3191
|
-
}
|
|
3070
|
+
}
|
|
3071
|
+
]
|
|
3072
|
+
},
|
|
3073
|
+
"@toddle/share": {
|
|
3074
|
+
"name": "Share",
|
|
3075
|
+
"description": "Share data with title, text, and/or URL using the Navigator.share API.",
|
|
3076
|
+
"arguments": [
|
|
3192
3077
|
{
|
|
3193
|
-
"name": "
|
|
3194
|
-
"description": "The
|
|
3078
|
+
"name": "URL",
|
|
3079
|
+
"description": "The URL to share.",
|
|
3195
3080
|
"type": {
|
|
3196
3081
|
"type": "String"
|
|
3197
3082
|
},
|
|
3198
3083
|
"formula": {
|
|
3199
3084
|
"type": "value",
|
|
3200
|
-
"value":
|
|
3085
|
+
"value": null
|
|
3201
3086
|
}
|
|
3202
3087
|
},
|
|
3203
3088
|
{
|
|
3204
|
-
"name": "
|
|
3205
|
-
"description": "
|
|
3089
|
+
"name": "Title",
|
|
3090
|
+
"description": "The title to share.",
|
|
3206
3091
|
"type": {
|
|
3207
|
-
"type": "
|
|
3092
|
+
"type": "String"
|
|
3208
3093
|
},
|
|
3209
3094
|
"formula": {
|
|
3210
3095
|
"type": "value",
|
|
@@ -3212,8 +3097,8 @@
|
|
|
3212
3097
|
}
|
|
3213
3098
|
},
|
|
3214
3099
|
{
|
|
3215
|
-
"name": "
|
|
3216
|
-
"description": "
|
|
3100
|
+
"name": "Text",
|
|
3101
|
+
"description": "The text to share.",
|
|
3217
3102
|
"type": {
|
|
3218
3103
|
"type": "String"
|
|
3219
3104
|
},
|
|
@@ -3221,37 +3106,43 @@
|
|
|
3221
3106
|
"type": "value",
|
|
3222
3107
|
"value": null
|
|
3223
3108
|
}
|
|
3224
|
-
}
|
|
3109
|
+
}
|
|
3110
|
+
]
|
|
3111
|
+
},
|
|
3112
|
+
"@toddle/setSessionCookies": {
|
|
3113
|
+
"name": "Set session cookies",
|
|
3114
|
+
"description": "Save authentication tokens as session cookies.",
|
|
3115
|
+
"arguments": [
|
|
3225
3116
|
{
|
|
3226
|
-
"name": "
|
|
3227
|
-
"description": "
|
|
3117
|
+
"name": "Access token",
|
|
3118
|
+
"description": "Access tokens are the most common way to authenticate with a server.",
|
|
3228
3119
|
"type": {
|
|
3229
3120
|
"type": "String"
|
|
3230
3121
|
},
|
|
3231
3122
|
"formula": {
|
|
3232
3123
|
"type": "value",
|
|
3233
|
-
"value":
|
|
3124
|
+
"value": ""
|
|
3234
3125
|
}
|
|
3235
3126
|
},
|
|
3236
3127
|
{
|
|
3237
|
-
"name": "
|
|
3238
|
-
"description": "(Optional)
|
|
3128
|
+
"name": "Expires in",
|
|
3129
|
+
"description": "(Optional) Time in seconds until the token expires. Defaults to 3600 (1 hour). This should be left blank for JWTs.",
|
|
3239
3130
|
"type": {
|
|
3240
|
-
"type": "
|
|
3131
|
+
"type": "Number"
|
|
3241
3132
|
},
|
|
3242
3133
|
"formula": {
|
|
3243
3134
|
"type": "value",
|
|
3244
|
-
"value":
|
|
3135
|
+
"value": ""
|
|
3245
3136
|
}
|
|
3246
3137
|
}
|
|
3247
3138
|
],
|
|
3248
3139
|
"events": {
|
|
3249
3140
|
"Success": {
|
|
3250
|
-
"description": "This event is triggered once the
|
|
3141
|
+
"description": "This event is triggered once the tokens have been saved.",
|
|
3251
3142
|
"actions": []
|
|
3252
3143
|
},
|
|
3253
3144
|
"Error": {
|
|
3254
|
-
"description": "This event is triggered if
|
|
3145
|
+
"description": "This event is triggered if Nordcraft is unable to set the session cookies.",
|
|
3255
3146
|
"actions": []
|
|
3256
3147
|
}
|
|
3257
3148
|
}
|
|
@@ -3273,17 +3164,22 @@
|
|
|
3273
3164
|
}
|
|
3274
3165
|
]
|
|
3275
3166
|
},
|
|
3276
|
-
"@toddle/
|
|
3277
|
-
"name": "
|
|
3278
|
-
"
|
|
3279
|
-
"
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3167
|
+
"@toddle/deleteFromLocalStorage": {
|
|
3168
|
+
"name": "Delete from Local Storage",
|
|
3169
|
+
"description": "Delete a value from local storage (if found) based on the provided key.",
|
|
3170
|
+
"arguments": [
|
|
3171
|
+
{
|
|
3172
|
+
"name": "Key",
|
|
3173
|
+
"description": "The key in local storage to delete.",
|
|
3174
|
+
"type": {
|
|
3175
|
+
"type": "String"
|
|
3176
|
+
},
|
|
3177
|
+
"formula": {
|
|
3178
|
+
"type": "value",
|
|
3179
|
+
"value": ""
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
]
|
|
3287
3183
|
},
|
|
3288
3184
|
"@toddle/logToConsole": {
|
|
3289
3185
|
"name": "Log to console",
|
|
@@ -3310,13 +3206,13 @@
|
|
|
3310
3206
|
}
|
|
3311
3207
|
]
|
|
3312
3208
|
},
|
|
3313
|
-
"@toddle/
|
|
3314
|
-
"name": "
|
|
3315
|
-
"description": "
|
|
3209
|
+
"@toddle/deleteFromSessionStorage": {
|
|
3210
|
+
"name": "Delete from Session Storage",
|
|
3211
|
+
"description": "Delete a value from session storage (if found) based on the provided key.",
|
|
3316
3212
|
"arguments": [
|
|
3317
3213
|
{
|
|
3318
3214
|
"name": "Key",
|
|
3319
|
-
"description": "The key
|
|
3215
|
+
"description": "The key in session storage to delete.",
|
|
3320
3216
|
"type": {
|
|
3321
3217
|
"type": "String"
|
|
3322
3218
|
},
|
|
@@ -3324,17 +3220,6 @@
|
|
|
3324
3220
|
"type": "value",
|
|
3325
3221
|
"value": ""
|
|
3326
3222
|
}
|
|
3327
|
-
},
|
|
3328
|
-
{
|
|
3329
|
-
"name": "Value",
|
|
3330
|
-
"description": "The value that should be saved in local storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).",
|
|
3331
|
-
"type": {
|
|
3332
|
-
"type": "Any"
|
|
3333
|
-
},
|
|
3334
|
-
"formula": {
|
|
3335
|
-
"type": "value",
|
|
3336
|
-
"value": null
|
|
3337
|
-
}
|
|
3338
3223
|
}
|
|
3339
3224
|
]
|
|
3340
3225
|
},
|
|
@@ -3360,21 +3245,136 @@
|
|
|
3360
3245
|
}
|
|
3361
3246
|
}
|
|
3362
3247
|
},
|
|
3363
|
-
"@toddle/
|
|
3364
|
-
"name": "
|
|
3365
|
-
"description": "
|
|
3248
|
+
"@toddle/interval": {
|
|
3249
|
+
"name": "Interval",
|
|
3250
|
+
"description": "Run an action every \"delay\" milliseconds.",
|
|
3366
3251
|
"arguments": [
|
|
3367
3252
|
{
|
|
3368
|
-
"name": "
|
|
3369
|
-
"description": "The
|
|
3253
|
+
"name": "Interval in milliseconds",
|
|
3254
|
+
"description": "The interval \"delay\".",
|
|
3255
|
+
"type": {
|
|
3256
|
+
"type": "Number"
|
|
3257
|
+
},
|
|
3258
|
+
"formula": {
|
|
3259
|
+
"type": "value",
|
|
3260
|
+
"value": 1000
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
],
|
|
3264
|
+
"events": {
|
|
3265
|
+
"tick": {
|
|
3266
|
+
"actions": []
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
},
|
|
3270
|
+
"@toddle/saveToLocalStorage": {
|
|
3271
|
+
"name": "Save to Local Storage",
|
|
3272
|
+
"description": "Save a provided key/value to local storage by JSON encoding the value.",
|
|
3273
|
+
"arguments": [
|
|
3274
|
+
{
|
|
3275
|
+
"name": "Key",
|
|
3276
|
+
"description": "The key to be used in local storage.",
|
|
3370
3277
|
"type": {
|
|
3371
3278
|
"type": "String"
|
|
3372
3279
|
},
|
|
3373
3280
|
"formula": {
|
|
3374
3281
|
"type": "value",
|
|
3375
|
-
"value": "
|
|
3282
|
+
"value": ""
|
|
3283
|
+
}
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
"name": "Value",
|
|
3287
|
+
"description": "The value that should be saved in local storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).",
|
|
3288
|
+
"type": {
|
|
3289
|
+
"type": "Any"
|
|
3290
|
+
},
|
|
3291
|
+
"formula": {
|
|
3292
|
+
"type": "value",
|
|
3293
|
+
"value": null
|
|
3376
3294
|
}
|
|
3377
3295
|
}
|
|
3378
3296
|
]
|
|
3297
|
+
},
|
|
3298
|
+
"@toddle/setHttpOnlyCookie": {
|
|
3299
|
+
"name": "Set Http-Only Cookie",
|
|
3300
|
+
"description": "Save a key/value pair as an Http-Only cookie. Useful for storing JWTs or other tokens.",
|
|
3301
|
+
"arguments": [
|
|
3302
|
+
{
|
|
3303
|
+
"name": "Name",
|
|
3304
|
+
"description": "The name of the cookie.",
|
|
3305
|
+
"type": {
|
|
3306
|
+
"type": "String"
|
|
3307
|
+
},
|
|
3308
|
+
"formula": {
|
|
3309
|
+
"type": "value",
|
|
3310
|
+
"value": "access_token"
|
|
3311
|
+
}
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
"name": "Value",
|
|
3315
|
+
"description": "The value to be stored in the cookie.",
|
|
3316
|
+
"type": {
|
|
3317
|
+
"type": "String"
|
|
3318
|
+
},
|
|
3319
|
+
"formula": {
|
|
3320
|
+
"type": "value",
|
|
3321
|
+
"value": ""
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "Expires in",
|
|
3326
|
+
"description": "(Optional) Time in seconds until the cookie expires. This should be null for JWTs to use the JWT's expiration. If not provided, the cookie will be a session cookie. If set to 0, the cookie will be deleted.",
|
|
3327
|
+
"type": {
|
|
3328
|
+
"type": "Number"
|
|
3329
|
+
},
|
|
3330
|
+
"formula": {
|
|
3331
|
+
"type": "value",
|
|
3332
|
+
"value": null
|
|
3333
|
+
}
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"name": "SameSite",
|
|
3337
|
+
"description": "(Optional) The SameSite attribute of the cookie. Defaults to Lax.",
|
|
3338
|
+
"type": {
|
|
3339
|
+
"type": "String"
|
|
3340
|
+
},
|
|
3341
|
+
"formula": {
|
|
3342
|
+
"type": "value",
|
|
3343
|
+
"value": null
|
|
3344
|
+
}
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"name": "Path",
|
|
3348
|
+
"description": "(Optional) The Path attribute of the cookie. Defaults to /.",
|
|
3349
|
+
"type": {
|
|
3350
|
+
"type": "String"
|
|
3351
|
+
},
|
|
3352
|
+
"formula": {
|
|
3353
|
+
"type": "value",
|
|
3354
|
+
"value": null
|
|
3355
|
+
}
|
|
3356
|
+
},
|
|
3357
|
+
{
|
|
3358
|
+
"name": "Include Subdomains",
|
|
3359
|
+
"description": "(Optional) Whether to include subdomains when setting the cookie. Defaults to true.",
|
|
3360
|
+
"type": {
|
|
3361
|
+
"type": "Boolean"
|
|
3362
|
+
},
|
|
3363
|
+
"formula": {
|
|
3364
|
+
"type": "value",
|
|
3365
|
+
"value": null
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
],
|
|
3369
|
+
"events": {
|
|
3370
|
+
"Success": {
|
|
3371
|
+
"description": "This event is triggered once the cookie has been saved.",
|
|
3372
|
+
"actions": []
|
|
3373
|
+
},
|
|
3374
|
+
"Error": {
|
|
3375
|
+
"description": "This event is triggered if the cookie could not be saved.",
|
|
3376
|
+
"actions": []
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
3379
|
}
|
|
3380
3380
|
};
|