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