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