forked from baserow/baserow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.js
More file actions
1091 lines (1057 loc) · 38.5 KB
/
Copy pathplugin.js
File metadata and controls
1091 lines (1057 loc) · 38.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { defineNuxtPlugin } from '#app'
import { DatabaseViewsAdminType } from '@baserow/modules/database/adminTypes'
import { DatabaseApplicationType } from '@baserow/modules/database/applicationTypes'
import {
DuplicateTableJobType,
SyncDataSyncTableJobType,
FileImportJobType,
DuplicateFieldJobType,
AirtableJobType,
} from '@baserow/modules/database/jobTypes'
import {
GridViewType,
GalleryViewType,
FormViewType,
} from '@baserow/modules/database/viewTypes'
import {
TextFieldType,
LongTextFieldType,
URLFieldType,
EmailFieldType,
LinkRowFieldType,
NumberFieldType,
RatingFieldType,
BooleanFieldType,
DateFieldType,
LastModifiedFieldType,
LastModifiedByFieldType,
FileFieldType,
SingleSelectFieldType,
MultipleSelectFieldType,
PhoneNumberFieldType,
CreatedOnFieldType,
CreatedByFieldType,
DurationFieldType,
FormulaFieldType,
CountFieldType,
RollupFieldType,
LookupFieldType,
MultipleCollaboratorsFieldType,
UUIDFieldType,
AutonumberFieldType,
PasswordFieldType,
FormViewEditRowFieldType,
ButtonFieldType,
} from '@baserow/modules/database/fieldTypes'
import {
EqualViewFilterType,
NotEqualViewFilterType,
ContainsViewFilterType,
FilenameContainsViewFilterType,
FilesLowerThanViewFilterType,
HasFileTypeViewFilterType,
ContainsNotViewFilterType,
LengthIsLowerThanViewFilterType,
HigherThanViewFilterType,
HigherThanOrEqualViewFilterType,
LowerThanViewFilterType,
LowerThanOrEqualViewFilterType,
IsEvenAndWholeViewFilterType,
SingleSelectEqualViewFilterType,
SingleSelectNotEqualViewFilterType,
SingleSelectIsAnyOfViewFilterType,
SingleSelectIsNoneOfViewFilterType,
BooleanViewFilterType,
EmptyViewFilterType,
NotEmptyViewFilterType,
LinkRowHasFilterType,
LinkRowHasNotFilterType,
MultipleSelectHasFilterType,
MultipleSelectHasNotFilterType,
MultipleCollaboratorsHasFilterType,
MultipleCollaboratorsHasNotFilterType,
LinkRowContainsFilterType,
LinkRowNotContainsFilterType,
ContainsWordViewFilterType,
DoesntContainWordViewFilterType,
StartsWithViewFilterType,
UserIsFilterType,
UserIsNotFilterType,
DateIsEqualMultiStepViewFilterType,
DateIsBeforeMultiStepViewFilterType,
DateIsOnOrBeforeMultiStepViewFilterType,
DateIsAfterMultiStepViewFilterType,
DateIsOnOrAfterMultiStepViewFilterType,
DateIsWithinMultiStepViewFilterType,
DateIsNotEqualMultiStepViewFilterType,
// Deprecated date filter types
DateEqualViewFilterType,
DateNotEqualViewFilterType,
DateEqualsTodayViewFilterType,
DateBeforeTodayViewFilterType,
DateAfterTodayViewFilterType,
DateWithinDaysViewFilterType,
DateWithinWeeksViewFilterType,
DateWithinMonthsViewFilterType,
DateEqualsDaysAgoViewFilterType,
DateEqualsMonthsAgoViewFilterType,
DateEqualsYearsAgoViewFilterType,
DateEqualsCurrentWeekViewFilterType,
DateEqualsCurrentMonthViewFilterType,
DateEqualsCurrentYearViewFilterType,
DateBeforeViewFilterType,
DateBeforeOrEqualViewFilterType,
DateAfterDaysAgoViewFilterType,
DateAfterViewFilterType,
DateAfterOrEqualViewFilterType,
DateEqualsDayOfMonthViewFilterType,
} from '@baserow/modules/database/viewFilters'
import {
HasValueEqualViewFilterType,
HasEmptyValueViewFilterType,
HasNotEmptyValueViewFilterType,
HasNotValueEqualViewFilterType,
HasValueContainsViewFilterType,
HasNotValueContainsViewFilterType,
HasValueContainsWordViewFilterType,
HasNotValueContainsWordViewFilterType,
HasValueLengthIsLowerThanViewFilterType,
HasAllValuesEqualViewFilterType,
HasAnySelectOptionEqualViewFilterType,
HasNoneSelectOptionEqualViewFilterType,
HasValueLowerThanViewFilterType,
HasValueLowerThanOrEqualViewFilterType,
HasValueHigherThanViewFilterType,
HasValueHigherThanOrEqualViewFilterType,
HasNotValueLowerThanOrEqualViewFilterType,
HasNotValueLowerThanViewFilterType,
HasNotValueHigherThanOrEqualViewFilterType,
HasNotValueHigherThanViewFilterType,
HasDateEqualViewFilterType,
HasNotDateEqualViewFilterType,
HasDateBeforeViewFilterType,
HasNotDateBeforeViewFilterType,
HasDateOnOrBeforeViewFilterType,
HasNotDateOnOrBeforeViewFilterType,
HasDateAfterViewFilterType,
HasNotDateAfterViewFilterType,
HasDateOnOrAfterViewFilterType,
HasNotDateOnOrAfterViewFilterType,
HasDateWithinViewFilterType,
HasNotDateWithinViewFilterType,
} from '@baserow/modules/database/arrayViewFilters'
import {
CSVImporterType,
PasteImporterType,
XMLImporterType,
JSONImporterType,
ExcelImporterType,
} from '@baserow/modules/database/importerTypes'
import {
ICalCalendarDataSyncType,
PostgreSQLDataSyncType,
} from '@baserow/modules/database/dataSyncTypes'
import {
RowsCreatedWebhookEventType,
RowsUpdatedWebhookEventType,
RowsDeletedWebhookEventType,
FieldCreatedWebhookEventType,
FieldUpdatedWebhookEventType,
FieldDeletedWebhookEventType,
ViewCreatedWebhookEventType,
ViewUpdatedWebhookEventType,
ViewDeletedWebhookEventType,
} from '@baserow/modules/database/webhookEventTypes'
import {
ImageFilePreview,
AudioFilePreview,
VideoFilePreview,
PDFBrowserFilePreview,
GoogleDocFilePreview,
} from '@baserow/modules/database/filePreviewTypes'
import {
TextTypeUniqueWithEmptyConstraintType,
RatingTypeUniqueWithEmptyConstraintType,
GenericUniqueWithEmptyConstraintType,
} from '@baserow/modules/database/fieldConstraintTypes'
import { APITokenSettingsType } from '@baserow/modules/database/settingsTypes'
import { CSVTableExporterType } from '@baserow/modules/database/exporterTypes'
import {
BaserowAdd,
BaserowAnd,
BaserowConcat,
BaserowDateDiff,
BaserowDateInterval,
BaserowDatetimeFormat,
BaserowDatetimeFormatTz,
BaserowDay,
BaserowDivide,
BaserowEncodeUri,
BaserowEncodeUriComponent,
BaserowEqual,
BaserowHasOption,
BaserowField,
BaserowSearch,
BaserowGreaterThan,
BaserowGreaterThanOrEqual,
BaserowIf,
BaserowIsBlank,
BaserowIsNull,
BaserowDurationToSeconds,
BaserowSecondsToDuration,
BaserowLessThan,
BaserowLessThanOrEqual,
BaserowLower,
BaserowSplitPart,
BaserowMinus,
BaserowMultiply,
BaserowNot,
BaserowOr,
BaserowReplace,
BaserowRowId,
BaserowT,
BaserowNow,
BaserowToday,
BaserowToDateTz,
BaserowToDate,
BaserowToNumber,
BaserowToText,
BaserowUpper,
BaserowReverse,
BaserowLength,
BaserowNotEqual,
BaserowLookup,
BaserowSum,
BaserowAvg,
BaserowVariancePop,
BaserowVarianceSample,
BaserowStddevSample,
BaserowStddevPop,
BaserowJoin,
BaserowCount,
BaserowMin,
BaserowMax,
BaserowEvery,
BaserowAny,
BaserowWhenEmpty,
BaserowSecond,
BaserowYear,
BaserowMonth,
BaserowLeast,
BaserowGreatest,
BaserowRegexReplace,
BaserowLink,
BaserowTrim,
BaserowRight,
BaserowLeft,
BaserowContains,
BaserowFilter,
BaserowTrunc,
BaserowIsNaN,
BaserowWhenNaN,
BaserowEven,
BaserowOdd,
BaserowCeil,
BaserowFloor,
BaserowAbs,
BaserowExp,
BaserowLn,
BaserowSign,
BaserowSqrt,
BaserowRound,
BaserowLog,
BaserowPower,
BaserowMod,
BaserowButton,
BaserowGetLinkUrl,
BaserowGetLinkLabel,
BaserowIsImage,
BaserowGetImageHeight,
BaserowGetImageWidth,
BaserowGetFileSize,
BaserowGetFileMimeType,
BaserowGetFileVisibleName,
BaserowIndex,
BaserowGetFileCount,
BaserowToUrl,
BaserowArrayUnique,
BaserowArraySlice,
BaserowFirst,
BaserowLast,
} from '@baserow/modules/database/formula/functions'
import {
BaserowFormulaArrayType,
BaserowFormulaBooleanType,
BaserowFormulaButtonType,
BaserowFormulaCharType,
BaserowFormulaLinkType,
BaserowFormulaDateIntervalType, // Deprecated
BaserowFormulaDurationType,
BaserowFormulaDateType,
BaserowFormulaInvalidType,
BaserowFormulaNumberType,
BaserowFormulaSingleSelectType,
BaserowFormulaMultipleSelectType,
BaserowFormulaMultipleCollaboratorsType,
BaserowFormulaSpecialType,
BaserowFormulaTextType,
BaserowFormulaFileType,
BaserowFormulaURLType,
} from '@baserow/modules/database/formula/formulaTypes'
import {
CountViewAggregationType,
EmptyCountViewAggregationType,
NotEmptyCountViewAggregationType,
CheckedCountViewAggregationType,
NotCheckedCountViewAggregationType,
EmptyPercentageViewAggregationType,
NotEmptyPercentageViewAggregationType,
CheckedPercentageViewAggregationType,
NotCheckedPercentageViewAggregationType,
UniqueCountViewAggregationType,
MinViewAggregationType,
MaxViewAggregationType,
EarliestDateViewAggregationType,
LatestDateViewAggregationType,
SumViewAggregationType,
AverageViewAggregationType,
StdDevViewAggregationType,
VarianceViewAggregationType,
MedianViewAggregationType,
DistributionViewAggregationType,
} from '@baserow/modules/database/viewAggregationTypes'
import { FormViewFormModeType } from '@baserow/modules/database/formViewModeTypes'
import { CollaborativeViewOwnershipType } from '@baserow/modules/database/viewOwnershipTypes'
import { DatabasePlugin } from '@baserow/modules/database/plugins'
import {
CollaboratorAddedToRowNotificationType,
FormSubmittedNotificationType,
UserMentionInRichTextFieldNotificationType,
WebhookDeactivatedNotificationType,
WebhookPayloadTooLargedNotificationType,
} from '@baserow/modules/database/notificationTypes'
import { HistoryRowModalSidebarType } from '@baserow/modules/database/rowModalSidebarTypes'
import { FieldsDataProviderType } from '@baserow/modules/database/dataProviderTypes'
import {
DatabaseOnboardingType,
DatabaseScratchTrackOnboardingType,
DatabaseImportOnboardingType,
DatabaseScratchTrackFieldsOnboardingType,
} from '@baserow/modules/database/onboardingTypes'
import {
ScratchDatabaseOnboardingStepType,
ImportDatabaseOnboardingStepType,
AirtableDatabaseOnboardingStepType,
TemplateDatabaseOnboardingStepType,
} from '@baserow/modules/database/databaseOnboardingStepTypes'
import {
DatabaseScratchTrackCampaignFieldsOnboardingType,
DatabaseScratchTrackCustomFieldsOnboardingType,
DatabaseScratchTrackProjectFieldsOnboardingType,
DatabaseScratchTrackTaskFieldsOnboardingType,
DatabaseScratchTrackTeamFieldsOnboardingType,
} from '@baserow/modules/database/databaseScratchTrackFieldsStepType'
import {
SyncedFieldsConfigureDataSyncType,
SettingsConfigureDataSyncType,
SyncHistoryConfigureDataSyncType,
} from '@baserow/modules/database/configureDataSyncTypes'
import { DatabaseGuidedTourType } from '@baserow/modules/database/guidedTourTypes'
import {
DatabaseSearchType,
DatabaseTableSearchType,
DatabaseFieldSearchType,
DatabaseRowSearchType,
} from '@baserow/modules/database/searchTypes'
import { searchTypeRegistry } from '@baserow/modules/core/search/types/registry'
export default defineNuxtPlugin({
name: 'database',
dependsOn: ['core'],
setup(nuxtApp) {
const { $registry } = nuxtApp
const context = { app: nuxtApp }
$registry.registerNamespace('viewDecorator')
$registry.registerNamespace('decoratorValueProvider')
$registry.registerNamespace('twoWaySyncStrategy')
$registry.registerNamespace('viewFilter')
$registry.registerNamespace('viewOwnershipType')
$registry.registerNamespace('fieldConstraint')
$registry.registerNamespace('importer')
$registry.registerNamespace('exporter')
$registry.registerNamespace('dataSync')
$registry.registerNamespace('webhookEvent')
$registry.registerNamespace('formula_function')
$registry.registerNamespace('formula_type')
$registry.registerNamespace('preview')
$registry.registerNamespace('viewAggregation')
$registry.registerNamespace('formViewMode')
$registry.registerNamespace('databaseDataProvider')
$registry.registerNamespace('rowModalSidebar')
$registry.registerNamespace('onboardingTrackFields')
$registry.registerNamespace('configureDataSync')
$registry.registerNamespace('databaseOnboardingStep')
$registry.register('plugin', new DatabasePlugin(context))
$registry.register('application', new DatabaseApplicationType(context))
$registry.register('admin', new DatabaseViewsAdminType(context))
$registry.register('job', new DuplicateTableJobType(context))
$registry.register('job', new SyncDataSyncTableJobType(context))
$registry.register('job', new FileImportJobType(context))
$registry.register('job', new DuplicateFieldJobType(context))
$registry.register('job', new AirtableJobType(context))
$registry.register('view', new GridViewType(context))
$registry.register('view', new GalleryViewType(context))
$registry.register('view', new FormViewType(context))
$registry.register('viewFilter', new EqualViewFilterType(context))
$registry.register('viewFilter', new NotEqualViewFilterType(context))
$registry.register(
'viewFilter',
new DateIsEqualMultiStepViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateIsNotEqualMultiStepViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateIsBeforeMultiStepViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateIsOnOrBeforeMultiStepViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateIsAfterMultiStepViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateIsOnOrAfterMultiStepViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateIsWithinMultiStepViewFilterType(context)
)
// DEPRECATED
$registry.register('viewFilter', new DateEqualViewFilterType(context))
$registry.register('viewFilter', new DateNotEqualViewFilterType(context))
$registry.register('viewFilter', new DateEqualsTodayViewFilterType(context))
$registry.register('viewFilter', new DateBeforeTodayViewFilterType(context))
$registry.register('viewFilter', new DateAfterTodayViewFilterType(context))
$registry.register('viewFilter', new DateWithinDaysViewFilterType(context))
$registry.register('viewFilter', new DateWithinWeeksViewFilterType(context))
$registry.register(
'viewFilter',
new DateWithinMonthsViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateEqualsDaysAgoViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateEqualsMonthsAgoViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateEqualsYearsAgoViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateEqualsCurrentWeekViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateEqualsCurrentMonthViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateEqualsCurrentYearViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateEqualsDayOfMonthViewFilterType(context)
)
$registry.register('viewFilter', new DateBeforeViewFilterType(context))
$registry.register(
'viewFilter',
new DateBeforeOrEqualViewFilterType(context)
)
$registry.register('viewFilter', new DateAfterViewFilterType(context))
$registry.register(
'viewFilter',
new DateAfterOrEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new DateAfterDaysAgoViewFilterType(context)
)
// END
$registry.register('viewFilter', new HasEmptyValueViewFilterType(context))
$registry.register(
'viewFilter',
new HasNotEmptyValueViewFilterType(context)
)
$registry.register('viewFilter', new HasValueEqualViewFilterType(context))
$registry.register(
'viewFilter',
new HasNotValueEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasValueContainsViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotValueContainsViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasValueContainsWordViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotValueContainsWordViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasValueLengthIsLowerThanViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasAllValuesEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasAnySelectOptionEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNoneSelectOptionEqualViewFilterType(context)
)
$registry.register('viewFilter', new ContainsViewFilterType(context))
$registry.register('viewFilter', new ContainsNotViewFilterType(context))
$registry.register('viewFilter', new ContainsWordViewFilterType(context))
$registry.register(
'viewFilter',
new DoesntContainWordViewFilterType(context)
)
$registry.register('viewFilter', new StartsWithViewFilterType(context))
$registry.register(
'viewFilter',
new FilenameContainsViewFilterType(context)
)
$registry.register('viewFilter', new HasFileTypeViewFilterType(context))
$registry.register('viewFilter', new FilesLowerThanViewFilterType(context))
$registry.register(
'viewFilter',
new LengthIsLowerThanViewFilterType(context)
)
$registry.register('viewFilter', new HigherThanViewFilterType(context))
$registry.register(
'viewFilter',
new HigherThanOrEqualViewFilterType(context)
)
$registry.register('viewFilter', new LowerThanViewFilterType(context))
$registry.register(
'viewFilter',
new LowerThanOrEqualViewFilterType(context)
)
$registry.register('viewFilter', new IsEvenAndWholeViewFilterType(context))
$registry.register(
'viewFilter',
new SingleSelectEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new SingleSelectNotEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new SingleSelectIsAnyOfViewFilterType(context)
)
$registry.register(
'viewFilter',
new SingleSelectIsNoneOfViewFilterType(context)
)
$registry.register('viewFilter', new BooleanViewFilterType(context))
$registry.register('viewFilter', new LinkRowHasFilterType(context))
$registry.register('viewFilter', new LinkRowHasNotFilterType(context))
$registry.register('viewFilter', new LinkRowContainsFilterType(context))
$registry.register('viewFilter', new LinkRowNotContainsFilterType(context))
$registry.register('viewFilter', new MultipleSelectHasFilterType(context))
$registry.register(
'viewFilter',
new MultipleSelectHasNotFilterType(context)
)
$registry.register(
'viewFilter',
new MultipleCollaboratorsHasFilterType(context)
)
$registry.register(
'viewFilter',
new MultipleCollaboratorsHasNotFilterType(context)
)
$registry.register('viewFilter', new EmptyViewFilterType(context))
$registry.register('viewFilter', new NotEmptyViewFilterType(context))
$registry.register('viewFilter', new UserIsFilterType(context))
$registry.register('viewFilter', new UserIsNotFilterType(context))
$registry.register(
'viewFilter',
new HasValueHigherThanViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotValueHigherThanViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasValueHigherThanOrEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotValueHigherThanOrEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasValueLowerThanViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotValueLowerThanViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasValueLowerThanOrEqualViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotValueLowerThanOrEqualViewFilterType(context)
)
$registry.register('viewFilter', new HasDateEqualViewFilterType(context))
$registry.register('viewFilter', new HasNotDateEqualViewFilterType(context))
$registry.register('viewFilter', new HasDateBeforeViewFilterType(context))
$registry.register(
'viewFilter',
new HasNotDateBeforeViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasDateOnOrBeforeViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotDateOnOrBeforeViewFilterType(context)
)
$registry.register('viewFilter', new HasDateAfterViewFilterType(context))
$registry.register('viewFilter', new HasNotDateAfterViewFilterType(context))
$registry.register(
'viewFilter',
new HasDateOnOrAfterViewFilterType(context)
)
$registry.register(
'viewFilter',
new HasNotDateOnOrAfterViewFilterType(context)
)
$registry.register('viewFilter', new HasDateWithinViewFilterType(context))
$registry.register(
'viewFilter',
new HasNotDateWithinViewFilterType(context)
)
$registry.register(
'viewOwnershipType',
new CollaborativeViewOwnershipType(context)
)
$registry.register('field', new TextFieldType(context))
$registry.register('field', new LongTextFieldType(context))
$registry.register('field', new LinkRowFieldType(context))
$registry.register('field', new NumberFieldType(context))
$registry.register('field', new RatingFieldType(context))
$registry.register('field', new BooleanFieldType(context))
$registry.register('field', new DateFieldType(context))
$registry.register('field', new LastModifiedFieldType(context))
$registry.register('field', new LastModifiedByFieldType(context))
$registry.register('field', new CreatedOnFieldType(context))
$registry.register('field', new CreatedByFieldType(context))
$registry.register('field', new DurationFieldType(context))
$registry.register('field', new URLFieldType(context))
$registry.register('field', new EmailFieldType(context))
$registry.register('field', new FileFieldType(context))
$registry.register('field', new SingleSelectFieldType(context))
$registry.register('field', new MultipleSelectFieldType(context))
$registry.register('field', new PhoneNumberFieldType(context))
$registry.register('field', new FormulaFieldType(context))
$registry.register('field', new CountFieldType(context))
$registry.register('field', new RollupFieldType(context))
$registry.register('field', new LookupFieldType(context))
$registry.register('field', new MultipleCollaboratorsFieldType(context))
$registry.register('field', new UUIDFieldType(context))
$registry.register('field', new AutonumberFieldType(context))
$registry.register('field', new PasswordFieldType(context))
$registry.register('field', new FormViewEditRowFieldType(context))
// Always registered so existing button fields keep rendering when the
// flag is off; the field type dropdown hides it via isVisibleInDropdown.
$registry.register('field', new ButtonFieldType(context))
$registry.register(
'fieldConstraint',
new TextTypeUniqueWithEmptyConstraintType(context)
)
$registry.register(
'fieldConstraint',
new RatingTypeUniqueWithEmptyConstraintType(context)
)
$registry.register(
'fieldConstraint',
new GenericUniqueWithEmptyConstraintType(context)
)
$registry.register('importer', new CSVImporterType(context))
$registry.register('importer', new PasteImporterType(context))
$registry.register('importer', new XMLImporterType(context))
$registry.register('importer', new JSONImporterType(context))
$registry.register('importer', new ExcelImporterType(context))
$registry.register('dataSync', new ICalCalendarDataSyncType(context))
$registry.register('dataSync', new PostgreSQLDataSyncType(context))
$registry.register('settings', new APITokenSettingsType(context))
$registry.register('exporter', new CSVTableExporterType(context))
$registry.register('webhookEvent', new RowsCreatedWebhookEventType(context))
$registry.register('webhookEvent', new RowsUpdatedWebhookEventType(context))
$registry.register('webhookEvent', new RowsDeletedWebhookEventType(context))
$registry.register(
'webhookEvent',
new FieldCreatedWebhookEventType(context)
)
$registry.register(
'webhookEvent',
new FieldUpdatedWebhookEventType(context)
)
$registry.register(
'webhookEvent',
new FieldDeletedWebhookEventType(context)
)
$registry.register('webhookEvent', new ViewCreatedWebhookEventType(context))
$registry.register('webhookEvent', new ViewUpdatedWebhookEventType(context))
$registry.register('webhookEvent', new ViewDeletedWebhookEventType(context))
// Text functions
$registry.register('formula_function', new BaserowUpper(context))
$registry.register('formula_function', new BaserowLower(context))
$registry.register('formula_function', new BaserowConcat(context))
$registry.register('formula_function', new BaserowToText(context))
$registry.register('formula_function', new BaserowT(context))
$registry.register('formula_function', new BaserowReplace(context))
$registry.register('formula_function', new BaserowSearch(context))
$registry.register('formula_function', new BaserowLength(context))
$registry.register('formula_function', new BaserowReverse(context))
$registry.register('formula_function', new BaserowEncodeUri(context))
$registry.register(
'formula_function',
new BaserowEncodeUriComponent(context)
)
$registry.register('formula_function', new BaserowSplitPart(context))
// Number functions
$registry.register('formula_function', new BaserowMultiply(context))
$registry.register('formula_function', new BaserowDivide(context))
$registry.register('formula_function', new BaserowToNumber(context))
// Boolean functions
$registry.register('formula_function', new BaserowIf(context))
$registry.register('formula_function', new BaserowEqual(context))
$registry.register('formula_function', new BaserowHasOption(context))
$registry.register('formula_function', new BaserowIsBlank(context))
$registry.register('formula_function', new BaserowIsNull(context))
$registry.register('formula_function', new BaserowNot(context))
$registry.register('formula_function', new BaserowNotEqual(context))
$registry.register('formula_function', new BaserowGreaterThan(context))
$registry.register(
'formula_function',
new BaserowGreaterThanOrEqual(context)
)
$registry.register('formula_function', new BaserowLessThan(context))
$registry.register('formula_function', new BaserowLessThanOrEqual(context))
$registry.register('formula_function', new BaserowAnd(context))
$registry.register('formula_function', new BaserowOr(context))
// Date functions
$registry.register('formula_function', new BaserowDatetimeFormat(context))
$registry.register('formula_function', new BaserowDatetimeFormatTz(context))
$registry.register('formula_function', new BaserowDay(context))
$registry.register('formula_function', new BaserowNow(context))
$registry.register('formula_function', new BaserowToday(context))
$registry.register('formula_function', new BaserowToDateTz(context))
$registry.register('formula_function', new BaserowToDate(context))
$registry.register('formula_function', new BaserowDateDiff(context))
// Date interval functions
$registry.register('formula_function', new BaserowDateInterval(context))
$registry.register(
'formula_function',
new BaserowDurationToSeconds(context)
)
$registry.register(
'formula_function',
new BaserowSecondsToDuration(context)
)
// Special functions. NOTE: rollup compatible functions are shown field sub-form in
// the same order as they are listed here.
$registry.register('formula_function', new BaserowAdd(context))
$registry.register('formula_function', new BaserowMinus(context))
$registry.register('formula_function', new BaserowField(context))
$registry.register('formula_function', new BaserowLookup(context))
$registry.register('formula_function', new BaserowRowId(context))
$registry.register('formula_function', new BaserowContains(context))
$registry.register('formula_function', new BaserowLeft(context))
$registry.register('formula_function', new BaserowRight(context))
$registry.register('formula_function', new BaserowTrim(context))
$registry.register('formula_function', new BaserowRegexReplace(context))
$registry.register('formula_function', new BaserowGreatest(context))
$registry.register('formula_function', new BaserowLeast(context))
$registry.register('formula_function', new BaserowMonth(context))
$registry.register('formula_function', new BaserowYear(context))
$registry.register('formula_function', new BaserowSecond(context))
$registry.register('formula_function', new BaserowWhenEmpty(context))
$registry.register('formula_function', new BaserowAny(context))
$registry.register('formula_function', new BaserowEvery(context))
$registry.register('formula_function', new BaserowMin(context))
$registry.register('formula_function', new BaserowMax(context))
$registry.register('formula_function', new BaserowCount(context))
$registry.register('formula_function', new BaserowSum(context))
$registry.register('formula_function', new BaserowAvg(context))
$registry.register('formula_function', new BaserowJoin(context))
$registry.register('formula_function', new BaserowStddevPop(context))
$registry.register('formula_function', new BaserowStddevSample(context))
$registry.register('formula_function', new BaserowVarianceSample(context))
$registry.register('formula_function', new BaserowVariancePop(context))
$registry.register('formula_function', new BaserowFilter(context))
$registry.register('formula_function', new BaserowTrunc(context))
$registry.register('formula_function', new BaserowIsNaN(context))
$registry.register('formula_function', new BaserowWhenNaN(context))
$registry.register('formula_function', new BaserowEven(context))
$registry.register('formula_function', new BaserowOdd(context))
$registry.register('formula_function', new BaserowAbs(context))
$registry.register('formula_function', new BaserowCeil(context))
$registry.register('formula_function', new BaserowFloor(context))
$registry.register('formula_function', new BaserowSign(context))
$registry.register('formula_function', new BaserowLog(context))
$registry.register('formula_function', new BaserowExp(context))
$registry.register('formula_function', new BaserowLn(context))
$registry.register('formula_function', new BaserowPower(context))
$registry.register('formula_function', new BaserowSqrt(context))
$registry.register('formula_function', new BaserowRound(context))
$registry.register('formula_function', new BaserowMod(context))
// Link functions
$registry.register('formula_function', new BaserowLink(context))
$registry.register('formula_function', new BaserowButton(context))
$registry.register('formula_function', new BaserowGetLinkurl(context))
$registry.register('formula_function', new BaserowGetLinkLabel(context))
// File functions
$registry.register(
'formula_function',
new BaserowGetFileVisibleName(context)
)
$registry.register('formula_function', new BaserowGetFileMimeType(context))
$registry.register('formula_function', new BaserowGetFileSize(context))
$registry.register('formula_function', new BaserowGetImageWidth(context))
$registry.register('formula_function', new BaserowGetImageHeight(context))
$registry.register('formula_function', new BaserowIsImage(context))
$registry.register('formula_function', new BaserowGetFileCount(context))
$registry.register('formula_function', new BaserowIndex(context))
$registry.register('formula_function', new BaserowTourl(context))
$registry.register('formula_function', new BaserowArrayUnique(context))
$registry.register('formula_function', new BaserowArraySlice(context))
$registry.register('formula_function', new BaserowFirst(context))
$registry.register('formula_function', new BaserowLast(context))
// Formula Types
$registry.register('formula_type', new BaserowFormulaTextType(context))
$registry.register('formula_type', new BaserowFormulaCharType(context))
$registry.register('formula_type', new BaserowFormulaBooleanType(context))
$registry.register('formula_type', new BaserowFormulaDateType(context))
$registry.register(
'formula_type',
new BaserowFormulaDateIntervalType(context)
)
$registry.register('formula_type', new BaserowFormulaDurationType(context))
$registry.register('formula_type', new BaserowFormulaNumberType(context))
$registry.register('formula_type', new BaserowFormulaArrayType(context))
$registry.register('formula_type', new BaserowFormulaSpecialType(context))
$registry.register('formula_type', new BaserowFormulaInvalidType(context))
$registry.register(
'formula_type',
new BaserowFormulaSingleSelectType(context)
)
$registry.register('formula_type', new BaserowFormulaURLType(context))
$registry.register(
'formula_type',
new BaserowFormulaMultipleSelectType(context)
)
$registry.register('formula_type', new BaserowFormulaButtonType(context))
$registry.register('formula_type', new BaserowFormulaLinkType(context))
$registry.register('formula_type', new BaserowFormulaFileType(context))
$registry.register(
'formula_type',
new BaserowFormulaMultipleCollaboratorsType(context)
)
// File preview types
$registry.register('preview', new ImageFilePreview(context))
$registry.register('preview', new AudioFilePreview(context))
$registry.register('preview', new VideoFilePreview(context))
$registry.register('preview', new PDFBrowserFilePreview(context))
$registry.register('preview', new GoogleDocFilePreview(context))
$registry.register('viewAggregation', new MinViewAggregationType(context))
$registry.register('viewAggregation', new MaxViewAggregationType(context))
$registry.register('viewAggregation', new SumViewAggregationType(context))
$registry.register(
'viewAggregation',
new AverageViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new MedianViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new StdDevViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new VarianceViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new EarliestDateViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new LatestDateViewAggregationType(context)
)
$registry.register('viewAggregation', new CountViewAggregationType(context))
$registry.register(
'viewAggregation',
new EmptyCountViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new NotEmptyCountViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new CheckedCountViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new NotCheckedCountViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new EmptyPercentageViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new NotEmptyPercentageViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new CheckedPercentageViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new NotCheckedPercentageViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new UniqueCountViewAggregationType(context)
)
$registry.register(
'viewAggregation',
new DistributionViewAggregationType(context)
)
$registry.register('formViewMode', new FormViewFormModeType(context))
$registry.register(
'databaseDataProvider',
new FieldsDataProviderType(context)
)
// notifications
$registry.register(
'notification',
new CollaboratorAddedToRowNotificationType(context)
)
$registry.register(
'notification',
new FormSubmittedNotificationType(context)