@arkitektio/bsx 2.1.0 → 2.2.1
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/catalogs/index.d.ts +24 -24
- package/dist/catalogs/parts/data.d.ts +1 -1
- package/dist/catalogs/parts/feedback.d.ts +3 -3
- package/dist/catalogs/parts/forms.d.ts +4 -4
- package/dist/catalogs/parts/icons.d.ts +2 -2
- package/dist/catalogs/parts/index.d.ts +24 -24
- package/dist/catalogs/parts/navigation.d.ts +4 -4
- package/dist/catalogs/parts/overlays.d.ts +11 -11
- package/dist/catalogs/shadcn.d.ts +11 -11
- package/dist/catalogs/ui.d.ts +13 -13
- package/dist/renderer/bloks/control.d.ts.map +1 -1
- package/dist/renderer/bloks/control.js +14 -2
- package/dist/renderer/bloks/control.js.map +1 -1
- package/dist/renderer/bloks/data.d.ts +1 -1
- package/dist/renderer/bloks/feedback.d.ts +3 -3
- package/dist/renderer/bloks/forms.d.ts +4 -4
- package/dist/renderer/bloks/icons.d.ts +1 -1
- package/dist/renderer/bloks/index.d.ts +24 -24
- package/dist/renderer/bloks/navigation.d.ts +4 -4
- package/dist/renderer/bloks/overlays.d.ts +11 -11
- package/dist/renderer/functions/v2/index.d.ts.map +1 -1
- package/dist/renderer/functions/v2/index.js +48 -0
- package/dist/renderer/functions/v2/index.js.map +1 -1
- package/dist/shadcn.d.ts +24 -24
- package/dist/spec/vocabulary.json +27 -0
- package/dist/spec/vocabulary.json.js +27 -0
- package/package.json +1 -1
- package/src/renderer/bloks/control.tsx +18 -1
- package/src/renderer/bloks/flow.test.tsx +59 -1
- package/src/renderer/functions/v2/functions.test.ts +60 -1
- package/src/renderer/functions/v2/index.ts +48 -0
- package/src/spec/vocabulary.json +27 -0
|
@@ -196,12 +196,12 @@ export declare const domRenders: {
|
|
|
196
196
|
code: "code";
|
|
197
197
|
map: "map";
|
|
198
198
|
filter: "filter";
|
|
199
|
+
x: "x";
|
|
199
200
|
search: "search";
|
|
200
201
|
file: "file";
|
|
201
202
|
link: "link";
|
|
202
203
|
check: "check";
|
|
203
204
|
square: "square";
|
|
204
|
-
x: "x";
|
|
205
205
|
camera: "camera";
|
|
206
206
|
grid: "grid";
|
|
207
207
|
activity: "activity";
|
|
@@ -518,12 +518,12 @@ export declare const domRenders: {
|
|
|
518
518
|
code: "code";
|
|
519
519
|
map: "map";
|
|
520
520
|
filter: "filter";
|
|
521
|
+
x: "x";
|
|
521
522
|
search: "search";
|
|
522
523
|
file: "file";
|
|
523
524
|
link: "link";
|
|
524
525
|
check: "check";
|
|
525
526
|
square: "square";
|
|
526
|
-
x: "x";
|
|
527
527
|
camera: "camera";
|
|
528
528
|
grid: "grid";
|
|
529
529
|
activity: "activity";
|
|
@@ -699,12 +699,12 @@ export declare const domRenders: {
|
|
|
699
699
|
code: "code";
|
|
700
700
|
map: "map";
|
|
701
701
|
filter: "filter";
|
|
702
|
+
x: "x";
|
|
702
703
|
search: "search";
|
|
703
704
|
file: "file";
|
|
704
705
|
link: "link";
|
|
705
706
|
check: "check";
|
|
706
707
|
square: "square";
|
|
707
|
-
x: "x";
|
|
708
708
|
camera: "camera";
|
|
709
709
|
grid: "grid";
|
|
710
710
|
activity: "activity";
|
|
@@ -834,12 +834,12 @@ export declare const domRenders: {
|
|
|
834
834
|
code: "code";
|
|
835
835
|
map: "map";
|
|
836
836
|
filter: "filter";
|
|
837
|
+
x: "x";
|
|
837
838
|
search: "search";
|
|
838
839
|
file: "file";
|
|
839
840
|
link: "link";
|
|
840
841
|
check: "check";
|
|
841
842
|
square: "square";
|
|
842
|
-
x: "x";
|
|
843
843
|
camera: "camera";
|
|
844
844
|
grid: "grid";
|
|
845
845
|
activity: "activity";
|
|
@@ -990,12 +990,12 @@ export declare const domRenders: {
|
|
|
990
990
|
code: "code";
|
|
991
991
|
map: "map";
|
|
992
992
|
filter: "filter";
|
|
993
|
+
x: "x";
|
|
993
994
|
search: "search";
|
|
994
995
|
file: "file";
|
|
995
996
|
link: "link";
|
|
996
997
|
check: "check";
|
|
997
998
|
square: "square";
|
|
998
|
-
x: "x";
|
|
999
999
|
camera: "camera";
|
|
1000
1000
|
grid: "grid";
|
|
1001
1001
|
activity: "activity";
|
|
@@ -1139,12 +1139,12 @@ export declare const domRenders: {
|
|
|
1139
1139
|
code: "code";
|
|
1140
1140
|
map: "map";
|
|
1141
1141
|
filter: "filter";
|
|
1142
|
+
x: "x";
|
|
1142
1143
|
search: "search";
|
|
1143
1144
|
file: "file";
|
|
1144
1145
|
link: "link";
|
|
1145
1146
|
check: "check";
|
|
1146
1147
|
square: "square";
|
|
1147
|
-
x: "x";
|
|
1148
1148
|
camera: "camera";
|
|
1149
1149
|
grid: "grid";
|
|
1150
1150
|
activity: "activity";
|
|
@@ -1295,12 +1295,12 @@ export declare const domRenders: {
|
|
|
1295
1295
|
code: "code";
|
|
1296
1296
|
map: "map";
|
|
1297
1297
|
filter: "filter";
|
|
1298
|
+
x: "x";
|
|
1298
1299
|
search: "search";
|
|
1299
1300
|
file: "file";
|
|
1300
1301
|
link: "link";
|
|
1301
1302
|
check: "check";
|
|
1302
1303
|
square: "square";
|
|
1303
|
-
x: "x";
|
|
1304
1304
|
camera: "camera";
|
|
1305
1305
|
grid: "grid";
|
|
1306
1306
|
activity: "activity";
|
|
@@ -1446,12 +1446,12 @@ export declare const domRenders: {
|
|
|
1446
1446
|
code: "code";
|
|
1447
1447
|
map: "map";
|
|
1448
1448
|
filter: "filter";
|
|
1449
|
+
x: "x";
|
|
1449
1450
|
search: "search";
|
|
1450
1451
|
file: "file";
|
|
1451
1452
|
link: "link";
|
|
1452
1453
|
check: "check";
|
|
1453
1454
|
square: "square";
|
|
1454
|
-
x: "x";
|
|
1455
1455
|
camera: "camera";
|
|
1456
1456
|
grid: "grid";
|
|
1457
1457
|
activity: "activity";
|
|
@@ -1638,12 +1638,12 @@ export declare const domRenders: {
|
|
|
1638
1638
|
code: "code";
|
|
1639
1639
|
map: "map";
|
|
1640
1640
|
filter: "filter";
|
|
1641
|
+
x: "x";
|
|
1641
1642
|
search: "search";
|
|
1642
1643
|
file: "file";
|
|
1643
1644
|
link: "link";
|
|
1644
1645
|
check: "check";
|
|
1645
1646
|
square: "square";
|
|
1646
|
-
x: "x";
|
|
1647
1647
|
camera: "camera";
|
|
1648
1648
|
grid: "grid";
|
|
1649
1649
|
activity: "activity";
|
|
@@ -1782,12 +1782,12 @@ export declare const domRenders: {
|
|
|
1782
1782
|
code: "code";
|
|
1783
1783
|
map: "map";
|
|
1784
1784
|
filter: "filter";
|
|
1785
|
+
x: "x";
|
|
1785
1786
|
search: "search";
|
|
1786
1787
|
file: "file";
|
|
1787
1788
|
link: "link";
|
|
1788
1789
|
check: "check";
|
|
1789
1790
|
square: "square";
|
|
1790
|
-
x: "x";
|
|
1791
1791
|
camera: "camera";
|
|
1792
1792
|
grid: "grid";
|
|
1793
1793
|
activity: "activity";
|
|
@@ -1971,12 +1971,12 @@ export declare const domRenders: {
|
|
|
1971
1971
|
code: "code";
|
|
1972
1972
|
map: "map";
|
|
1973
1973
|
filter: "filter";
|
|
1974
|
+
x: "x";
|
|
1974
1975
|
search: "search";
|
|
1975
1976
|
file: "file";
|
|
1976
1977
|
link: "link";
|
|
1977
1978
|
check: "check";
|
|
1978
1979
|
square: "square";
|
|
1979
|
-
x: "x";
|
|
1980
1980
|
camera: "camera";
|
|
1981
1981
|
grid: "grid";
|
|
1982
1982
|
activity: "activity";
|
|
@@ -2119,12 +2119,12 @@ export declare const domRenders: {
|
|
|
2119
2119
|
code: "code";
|
|
2120
2120
|
map: "map";
|
|
2121
2121
|
filter: "filter";
|
|
2122
|
+
x: "x";
|
|
2122
2123
|
search: "search";
|
|
2123
2124
|
file: "file";
|
|
2124
2125
|
link: "link";
|
|
2125
2126
|
check: "check";
|
|
2126
2127
|
square: "square";
|
|
2127
|
-
x: "x";
|
|
2128
2128
|
camera: "camera";
|
|
2129
2129
|
grid: "grid";
|
|
2130
2130
|
activity: "activity";
|
|
@@ -2329,12 +2329,12 @@ export declare const domRenders: {
|
|
|
2329
2329
|
code: "code";
|
|
2330
2330
|
map: "map";
|
|
2331
2331
|
filter: "filter";
|
|
2332
|
+
x: "x";
|
|
2332
2333
|
search: "search";
|
|
2333
2334
|
file: "file";
|
|
2334
2335
|
link: "link";
|
|
2335
2336
|
check: "check";
|
|
2336
2337
|
square: "square";
|
|
2337
|
-
x: "x";
|
|
2338
2338
|
camera: "camera";
|
|
2339
2339
|
grid: "grid";
|
|
2340
2340
|
activity: "activity";
|
|
@@ -2535,12 +2535,12 @@ export declare const domRenders: {
|
|
|
2535
2535
|
code: "code";
|
|
2536
2536
|
map: "map";
|
|
2537
2537
|
filter: "filter";
|
|
2538
|
+
x: "x";
|
|
2538
2539
|
search: "search";
|
|
2539
2540
|
file: "file";
|
|
2540
2541
|
link: "link";
|
|
2541
2542
|
check: "check";
|
|
2542
2543
|
square: "square";
|
|
2543
|
-
x: "x";
|
|
2544
2544
|
camera: "camera";
|
|
2545
2545
|
grid: "grid";
|
|
2546
2546
|
activity: "activity";
|
|
@@ -2736,12 +2736,12 @@ export declare const domRenders: {
|
|
|
2736
2736
|
code: "code";
|
|
2737
2737
|
map: "map";
|
|
2738
2738
|
filter: "filter";
|
|
2739
|
+
x: "x";
|
|
2739
2740
|
search: "search";
|
|
2740
2741
|
file: "file";
|
|
2741
2742
|
link: "link";
|
|
2742
2743
|
check: "check";
|
|
2743
2744
|
square: "square";
|
|
2744
|
-
x: "x";
|
|
2745
2745
|
camera: "camera";
|
|
2746
2746
|
grid: "grid";
|
|
2747
2747
|
activity: "activity";
|
|
@@ -2908,12 +2908,12 @@ export declare const domRenders: {
|
|
|
2908
2908
|
code: "code";
|
|
2909
2909
|
map: "map";
|
|
2910
2910
|
filter: "filter";
|
|
2911
|
+
x: "x";
|
|
2911
2912
|
search: "search";
|
|
2912
2913
|
file: "file";
|
|
2913
2914
|
link: "link";
|
|
2914
2915
|
check: "check";
|
|
2915
2916
|
square: "square";
|
|
2916
|
-
x: "x";
|
|
2917
2917
|
camera: "camera";
|
|
2918
2918
|
grid: "grid";
|
|
2919
2919
|
activity: "activity";
|
|
@@ -3080,12 +3080,12 @@ export declare const domRenders: {
|
|
|
3080
3080
|
code: "code";
|
|
3081
3081
|
map: "map";
|
|
3082
3082
|
filter: "filter";
|
|
3083
|
+
x: "x";
|
|
3083
3084
|
search: "search";
|
|
3084
3085
|
file: "file";
|
|
3085
3086
|
link: "link";
|
|
3086
3087
|
check: "check";
|
|
3087
3088
|
square: "square";
|
|
3088
|
-
x: "x";
|
|
3089
3089
|
camera: "camera";
|
|
3090
3090
|
grid: "grid";
|
|
3091
3091
|
activity: "activity";
|
|
@@ -3252,12 +3252,12 @@ export declare const domRenders: {
|
|
|
3252
3252
|
code: "code";
|
|
3253
3253
|
map: "map";
|
|
3254
3254
|
filter: "filter";
|
|
3255
|
+
x: "x";
|
|
3255
3256
|
search: "search";
|
|
3256
3257
|
file: "file";
|
|
3257
3258
|
link: "link";
|
|
3258
3259
|
check: "check";
|
|
3259
3260
|
square: "square";
|
|
3260
|
-
x: "x";
|
|
3261
3261
|
camera: "camera";
|
|
3262
3262
|
grid: "grid";
|
|
3263
3263
|
activity: "activity";
|
|
@@ -3411,12 +3411,12 @@ export declare const domRenders: {
|
|
|
3411
3411
|
code: "code";
|
|
3412
3412
|
map: "map";
|
|
3413
3413
|
filter: "filter";
|
|
3414
|
+
x: "x";
|
|
3414
3415
|
search: "search";
|
|
3415
3416
|
file: "file";
|
|
3416
3417
|
link: "link";
|
|
3417
3418
|
check: "check";
|
|
3418
3419
|
square: "square";
|
|
3419
|
-
x: "x";
|
|
3420
3420
|
camera: "camera";
|
|
3421
3421
|
grid: "grid";
|
|
3422
3422
|
activity: "activity";
|
|
@@ -3610,12 +3610,12 @@ export declare const domRenders: {
|
|
|
3610
3610
|
code: "code";
|
|
3611
3611
|
map: "map";
|
|
3612
3612
|
filter: "filter";
|
|
3613
|
+
x: "x";
|
|
3613
3614
|
search: "search";
|
|
3614
3615
|
file: "file";
|
|
3615
3616
|
link: "link";
|
|
3616
3617
|
check: "check";
|
|
3617
3618
|
square: "square";
|
|
3618
|
-
x: "x";
|
|
3619
3619
|
camera: "camera";
|
|
3620
3620
|
grid: "grid";
|
|
3621
3621
|
activity: "activity";
|
|
@@ -3771,12 +3771,12 @@ export declare const domRenders: {
|
|
|
3771
3771
|
code: "code";
|
|
3772
3772
|
map: "map";
|
|
3773
3773
|
filter: "filter";
|
|
3774
|
+
x: "x";
|
|
3774
3775
|
search: "search";
|
|
3775
3776
|
file: "file";
|
|
3776
3777
|
link: "link";
|
|
3777
3778
|
check: "check";
|
|
3778
3779
|
square: "square";
|
|
3779
|
-
x: "x";
|
|
3780
3780
|
camera: "camera";
|
|
3781
3781
|
grid: "grid";
|
|
3782
3782
|
activity: "activity";
|
|
@@ -4120,12 +4120,12 @@ export declare const domRenders: {
|
|
|
4120
4120
|
code: "code";
|
|
4121
4121
|
map: "map";
|
|
4122
4122
|
filter: "filter";
|
|
4123
|
+
x: "x";
|
|
4123
4124
|
search: "search";
|
|
4124
4125
|
file: "file";
|
|
4125
4126
|
link: "link";
|
|
4126
4127
|
check: "check";
|
|
4127
4128
|
square: "square";
|
|
4128
|
-
x: "x";
|
|
4129
4129
|
camera: "camera";
|
|
4130
4130
|
grid: "grid";
|
|
4131
4131
|
activity: "activity";
|
|
@@ -4279,12 +4279,12 @@ export declare const domRenders: {
|
|
|
4279
4279
|
code: "code";
|
|
4280
4280
|
map: "map";
|
|
4281
4281
|
filter: "filter";
|
|
4282
|
+
x: "x";
|
|
4282
4283
|
search: "search";
|
|
4283
4284
|
file: "file";
|
|
4284
4285
|
link: "link";
|
|
4285
4286
|
check: "check";
|
|
4286
4287
|
square: "square";
|
|
4287
|
-
x: "x";
|
|
4288
4288
|
camera: "camera";
|
|
4289
4289
|
grid: "grid";
|
|
4290
4290
|
activity: "activity";
|
|
@@ -4421,12 +4421,12 @@ export declare const domRenders: {
|
|
|
4421
4421
|
code: "code";
|
|
4422
4422
|
map: "map";
|
|
4423
4423
|
filter: "filter";
|
|
4424
|
+
x: "x";
|
|
4424
4425
|
search: "search";
|
|
4425
4426
|
file: "file";
|
|
4426
4427
|
link: "link";
|
|
4427
4428
|
check: "check";
|
|
4428
4429
|
square: "square";
|
|
4429
|
-
x: "x";
|
|
4430
4430
|
camera: "camera";
|
|
4431
4431
|
grid: "grid";
|
|
4432
4432
|
activity: "activity";
|
|
@@ -28,12 +28,12 @@ export declare const navigationRenders: {
|
|
|
28
28
|
code: "code";
|
|
29
29
|
map: "map";
|
|
30
30
|
filter: "filter";
|
|
31
|
+
x: "x";
|
|
31
32
|
search: "search";
|
|
32
33
|
file: "file";
|
|
33
34
|
link: "link";
|
|
34
35
|
check: "check";
|
|
35
36
|
square: "square";
|
|
36
|
-
x: "x";
|
|
37
37
|
camera: "camera";
|
|
38
38
|
grid: "grid";
|
|
39
39
|
activity: "activity";
|
|
@@ -184,12 +184,12 @@ export declare const navigationRenders: {
|
|
|
184
184
|
code: "code";
|
|
185
185
|
map: "map";
|
|
186
186
|
filter: "filter";
|
|
187
|
+
x: "x";
|
|
187
188
|
search: "search";
|
|
188
189
|
file: "file";
|
|
189
190
|
link: "link";
|
|
190
191
|
check: "check";
|
|
191
192
|
square: "square";
|
|
192
|
-
x: "x";
|
|
193
193
|
camera: "camera";
|
|
194
194
|
grid: "grid";
|
|
195
195
|
activity: "activity";
|
|
@@ -335,12 +335,12 @@ export declare const navigationRenders: {
|
|
|
335
335
|
code: "code";
|
|
336
336
|
map: "map";
|
|
337
337
|
filter: "filter";
|
|
338
|
+
x: "x";
|
|
338
339
|
search: "search";
|
|
339
340
|
file: "file";
|
|
340
341
|
link: "link";
|
|
341
342
|
check: "check";
|
|
342
343
|
square: "square";
|
|
343
|
-
x: "x";
|
|
344
344
|
camera: "camera";
|
|
345
345
|
grid: "grid";
|
|
346
346
|
activity: "activity";
|
|
@@ -527,12 +527,12 @@ export declare const navigationRenders: {
|
|
|
527
527
|
code: "code";
|
|
528
528
|
map: "map";
|
|
529
529
|
filter: "filter";
|
|
530
|
+
x: "x";
|
|
530
531
|
search: "search";
|
|
531
532
|
file: "file";
|
|
532
533
|
link: "link";
|
|
533
534
|
check: "check";
|
|
534
535
|
square: "square";
|
|
535
|
-
x: "x";
|
|
536
536
|
camera: "camera";
|
|
537
537
|
grid: "grid";
|
|
538
538
|
activity: "activity";
|
|
@@ -24,12 +24,12 @@ export declare const overlayRenders: {
|
|
|
24
24
|
code: "code";
|
|
25
25
|
map: "map";
|
|
26
26
|
filter: "filter";
|
|
27
|
+
x: "x";
|
|
27
28
|
search: "search";
|
|
28
29
|
file: "file";
|
|
29
30
|
link: "link";
|
|
30
31
|
check: "check";
|
|
31
32
|
square: "square";
|
|
32
|
-
x: "x";
|
|
33
33
|
camera: "camera";
|
|
34
34
|
grid: "grid";
|
|
35
35
|
activity: "activity";
|
|
@@ -213,12 +213,12 @@ export declare const overlayRenders: {
|
|
|
213
213
|
code: "code";
|
|
214
214
|
map: "map";
|
|
215
215
|
filter: "filter";
|
|
216
|
+
x: "x";
|
|
216
217
|
search: "search";
|
|
217
218
|
file: "file";
|
|
218
219
|
link: "link";
|
|
219
220
|
check: "check";
|
|
220
221
|
square: "square";
|
|
221
|
-
x: "x";
|
|
222
222
|
camera: "camera";
|
|
223
223
|
grid: "grid";
|
|
224
224
|
activity: "activity";
|
|
@@ -361,12 +361,12 @@ export declare const overlayRenders: {
|
|
|
361
361
|
code: "code";
|
|
362
362
|
map: "map";
|
|
363
363
|
filter: "filter";
|
|
364
|
+
x: "x";
|
|
364
365
|
search: "search";
|
|
365
366
|
file: "file";
|
|
366
367
|
link: "link";
|
|
367
368
|
check: "check";
|
|
368
369
|
square: "square";
|
|
369
|
-
x: "x";
|
|
370
370
|
camera: "camera";
|
|
371
371
|
grid: "grid";
|
|
372
372
|
activity: "activity";
|
|
@@ -571,12 +571,12 @@ export declare const overlayRenders: {
|
|
|
571
571
|
code: "code";
|
|
572
572
|
map: "map";
|
|
573
573
|
filter: "filter";
|
|
574
|
+
x: "x";
|
|
574
575
|
search: "search";
|
|
575
576
|
file: "file";
|
|
576
577
|
link: "link";
|
|
577
578
|
check: "check";
|
|
578
579
|
square: "square";
|
|
579
|
-
x: "x";
|
|
580
580
|
camera: "camera";
|
|
581
581
|
grid: "grid";
|
|
582
582
|
activity: "activity";
|
|
@@ -777,12 +777,12 @@ export declare const overlayRenders: {
|
|
|
777
777
|
code: "code";
|
|
778
778
|
map: "map";
|
|
779
779
|
filter: "filter";
|
|
780
|
+
x: "x";
|
|
780
781
|
search: "search";
|
|
781
782
|
file: "file";
|
|
782
783
|
link: "link";
|
|
783
784
|
check: "check";
|
|
784
785
|
square: "square";
|
|
785
|
-
x: "x";
|
|
786
786
|
camera: "camera";
|
|
787
787
|
grid: "grid";
|
|
788
788
|
activity: "activity";
|
|
@@ -978,12 +978,12 @@ export declare const overlayRenders: {
|
|
|
978
978
|
code: "code";
|
|
979
979
|
map: "map";
|
|
980
980
|
filter: "filter";
|
|
981
|
+
x: "x";
|
|
981
982
|
search: "search";
|
|
982
983
|
file: "file";
|
|
983
984
|
link: "link";
|
|
984
985
|
check: "check";
|
|
985
986
|
square: "square";
|
|
986
|
-
x: "x";
|
|
987
987
|
camera: "camera";
|
|
988
988
|
grid: "grid";
|
|
989
989
|
activity: "activity";
|
|
@@ -1150,12 +1150,12 @@ export declare const overlayRenders: {
|
|
|
1150
1150
|
code: "code";
|
|
1151
1151
|
map: "map";
|
|
1152
1152
|
filter: "filter";
|
|
1153
|
+
x: "x";
|
|
1153
1154
|
search: "search";
|
|
1154
1155
|
file: "file";
|
|
1155
1156
|
link: "link";
|
|
1156
1157
|
check: "check";
|
|
1157
1158
|
square: "square";
|
|
1158
|
-
x: "x";
|
|
1159
1159
|
camera: "camera";
|
|
1160
1160
|
grid: "grid";
|
|
1161
1161
|
activity: "activity";
|
|
@@ -1322,12 +1322,12 @@ export declare const overlayRenders: {
|
|
|
1322
1322
|
code: "code";
|
|
1323
1323
|
map: "map";
|
|
1324
1324
|
filter: "filter";
|
|
1325
|
+
x: "x";
|
|
1325
1326
|
search: "search";
|
|
1326
1327
|
file: "file";
|
|
1327
1328
|
link: "link";
|
|
1328
1329
|
check: "check";
|
|
1329
1330
|
square: "square";
|
|
1330
|
-
x: "x";
|
|
1331
1331
|
camera: "camera";
|
|
1332
1332
|
grid: "grid";
|
|
1333
1333
|
activity: "activity";
|
|
@@ -1494,12 +1494,12 @@ export declare const overlayRenders: {
|
|
|
1494
1494
|
code: "code";
|
|
1495
1495
|
map: "map";
|
|
1496
1496
|
filter: "filter";
|
|
1497
|
+
x: "x";
|
|
1497
1498
|
search: "search";
|
|
1498
1499
|
file: "file";
|
|
1499
1500
|
link: "link";
|
|
1500
1501
|
check: "check";
|
|
1501
1502
|
square: "square";
|
|
1502
|
-
x: "x";
|
|
1503
1503
|
camera: "camera";
|
|
1504
1504
|
grid: "grid";
|
|
1505
1505
|
activity: "activity";
|
|
@@ -1653,12 +1653,12 @@ export declare const overlayRenders: {
|
|
|
1653
1653
|
code: "code";
|
|
1654
1654
|
map: "map";
|
|
1655
1655
|
filter: "filter";
|
|
1656
|
+
x: "x";
|
|
1656
1657
|
search: "search";
|
|
1657
1658
|
file: "file";
|
|
1658
1659
|
link: "link";
|
|
1659
1660
|
check: "check";
|
|
1660
1661
|
square: "square";
|
|
1661
|
-
x: "x";
|
|
1662
1662
|
camera: "camera";
|
|
1663
1663
|
grid: "grid";
|
|
1664
1664
|
activity: "activity";
|
|
@@ -1852,12 +1852,12 @@ export declare const overlayRenders: {
|
|
|
1852
1852
|
code: "code";
|
|
1853
1853
|
map: "map";
|
|
1854
1854
|
filter: "filter";
|
|
1855
|
+
x: "x";
|
|
1855
1856
|
search: "search";
|
|
1856
1857
|
file: "file";
|
|
1857
1858
|
link: "link";
|
|
1858
1859
|
check: "check";
|
|
1859
1860
|
square: "square";
|
|
1860
|
-
x: "x";
|
|
1861
1861
|
camera: "camera";
|
|
1862
1862
|
grid: "grid";
|
|
1863
1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,CAAC;AAExE,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,QAAO,MAAM,EACiC,CAAC;AAErF,oGAAoG;AACpG,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,qBAAqB,KAAG,kBAcxH,CAAC"}
|
|
@@ -237,6 +237,12 @@ const mathUnary = (key, operate) => args => {
|
|
|
237
237
|
const value = num(args[key]);
|
|
238
238
|
return value === null ? null : operate(value);
|
|
239
239
|
};
|
|
240
|
+
/** The classic functions: what is not a finite number (`sqrt(-1)`, `log(0)`) is null. */
|
|
241
|
+
const finite = (value) => (Number.isFinite(value) ? value : null);
|
|
242
|
+
const mathReal = (operate) => args => {
|
|
243
|
+
const value = num(args.value);
|
|
244
|
+
return value === null ? null : finite(operate(value));
|
|
245
|
+
};
|
|
240
246
|
const strUnary = (operate) => args => {
|
|
241
247
|
const value = str(args.value);
|
|
242
248
|
return value === null ? null : operate(value);
|
|
@@ -297,6 +303,7 @@ const IMPLEMENTATIONS = {
|
|
|
297
303
|
'math.mul': mathBinary((a, b) => a * b),
|
|
298
304
|
'math.div': mathBinary((a, b) => (b === 0 ? null : a / b)),
|
|
299
305
|
'math.mod': mathBinary((a, b) => (b === 0 ? null : a % b)),
|
|
306
|
+
'math.pow': mathBinary((a, b) => finite(a ** b)),
|
|
300
307
|
'math.neg': mathUnary('a', value => -value || 0),
|
|
301
308
|
'math.abs': mathUnary('value', Math.abs),
|
|
302
309
|
'math.round': args => {
|
|
@@ -320,6 +327,47 @@ const IMPLEMENTATIONS = {
|
|
|
320
327
|
return values.length ? Math.max(...values) : null;
|
|
321
328
|
},
|
|
322
329
|
'math.sum': args => numbers(args.values).reduce((total, value) => total + value, 0),
|
|
330
|
+
'math.sqrt': mathReal(Math.sqrt),
|
|
331
|
+
'math.cbrt': mathReal(Math.cbrt),
|
|
332
|
+
'math.exp': mathReal(Math.exp),
|
|
333
|
+
'math.log': args => {
|
|
334
|
+
const value = num(args.value);
|
|
335
|
+
if (value === null)
|
|
336
|
+
return null;
|
|
337
|
+
if (args.base === null || args.base === undefined)
|
|
338
|
+
return finite(Math.log(value));
|
|
339
|
+
const base = num(args.base);
|
|
340
|
+
return base === null ? null : finite(Math.log(value) / Math.log(base));
|
|
341
|
+
},
|
|
342
|
+
'math.log2': mathReal(Math.log2),
|
|
343
|
+
'math.log10': mathReal(Math.log10),
|
|
344
|
+
'math.sin': mathReal(Math.sin),
|
|
345
|
+
'math.cos': mathReal(Math.cos),
|
|
346
|
+
'math.tan': mathReal(Math.tan),
|
|
347
|
+
'math.asin': mathReal(Math.asin),
|
|
348
|
+
'math.acos': mathReal(Math.acos),
|
|
349
|
+
'math.atan': mathReal(Math.atan),
|
|
350
|
+
'math.atan2': args => {
|
|
351
|
+
const y = num(args.y);
|
|
352
|
+
const x = num(args.x);
|
|
353
|
+
return y === null || x === null ? null : finite(Math.atan2(y, x));
|
|
354
|
+
},
|
|
355
|
+
'math.sinh': mathReal(Math.sinh),
|
|
356
|
+
'math.cosh': mathReal(Math.cosh),
|
|
357
|
+
'math.tanh': mathReal(Math.tanh),
|
|
358
|
+
'math.asinh': mathReal(Math.asinh),
|
|
359
|
+
'math.acosh': mathReal(Math.acosh),
|
|
360
|
+
'math.atanh': mathReal(Math.atanh),
|
|
361
|
+
'math.degrees': mathReal(value => (value * 180) / Math.PI),
|
|
362
|
+
'math.radians': mathReal(value => (value * Math.PI) / 180),
|
|
363
|
+
'math.sign': mathReal(value => Math.sign(value) || 0),
|
|
364
|
+
'math.trunc': mathReal(value => Math.trunc(value) || 0),
|
|
365
|
+
'math.hypot': args => {
|
|
366
|
+
const values = numbers(args.values);
|
|
367
|
+
return values.length ? finite(Math.hypot(...values)) : null;
|
|
368
|
+
},
|
|
369
|
+
'math.pi': () => Math.PI,
|
|
370
|
+
'math.e': () => Math.E,
|
|
323
371
|
// str
|
|
324
372
|
'str.upper': strUnary(value => value.toUpperCase()),
|
|
325
373
|
'str.lower': strUnary(value => value.toLowerCase()),
|