@saltcorn/data 1.0.0-beta.1 → 1.0.0-beta.10

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.
Files changed (61) hide show
  1. package/dist/base-plugin/actions.d.ts +134 -79
  2. package/dist/base-plugin/actions.d.ts.map +1 -1
  3. package/dist/base-plugin/actions.js +47 -0
  4. package/dist/base-plugin/actions.js.map +1 -1
  5. package/dist/base-plugin/fileviews.d.ts +23 -2
  6. package/dist/base-plugin/fileviews.js +40 -7
  7. package/dist/base-plugin/fileviews.js.map +1 -1
  8. package/dist/base-plugin/index.d.ts +143 -117
  9. package/dist/base-plugin/index.d.ts.map +1 -1
  10. package/dist/base-plugin/types.d.ts +13 -0
  11. package/dist/base-plugin/types.d.ts.map +1 -1
  12. package/dist/base-plugin/types.js +19 -1
  13. package/dist/base-plugin/types.js.map +1 -1
  14. package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
  15. package/dist/base-plugin/viewtemplates/list.js +8 -3
  16. package/dist/base-plugin/viewtemplates/list.js.map +1 -1
  17. package/dist/db/state.d.ts +1 -0
  18. package/dist/db/state.d.ts.map +1 -1
  19. package/dist/db/state.js +6 -0
  20. package/dist/db/state.js.map +1 -1
  21. package/dist/models/config.d.ts.map +1 -1
  22. package/dist/models/config.js +24 -0
  23. package/dist/models/config.js.map +1 -1
  24. package/dist/models/expression.d.ts.map +1 -1
  25. package/dist/models/expression.js +2 -0
  26. package/dist/models/expression.js.map +1 -1
  27. package/dist/models/fieldrepeat.d.ts.map +1 -1
  28. package/dist/models/fieldrepeat.js +6 -1
  29. package/dist/models/fieldrepeat.js.map +1 -1
  30. package/dist/models/index.d.ts +5 -1
  31. package/dist/models/index.d.ts.map +1 -1
  32. package/dist/models/plugin.d.ts +2 -1
  33. package/dist/models/plugin.d.ts.map +1 -1
  34. package/dist/models/plugin.js +7 -2
  35. package/dist/models/plugin.js.map +1 -1
  36. package/dist/models/scheduler.d.ts +7 -11
  37. package/dist/models/scheduler.d.ts.map +1 -1
  38. package/dist/models/scheduler.js +26 -1
  39. package/dist/models/scheduler.js.map +1 -1
  40. package/dist/models/table.d.ts +3 -1
  41. package/dist/models/table.d.ts.map +1 -1
  42. package/dist/models/table.js +39 -4
  43. package/dist/models/table.js.map +1 -1
  44. package/dist/models/user.d.ts +1 -1
  45. package/dist/models/user.d.ts.map +1 -1
  46. package/dist/models/user.js +16 -5
  47. package/dist/models/user.js.map +1 -1
  48. package/dist/plugin-helper.d.ts +0 -1
  49. package/dist/tests/actions.test.js +97 -2
  50. package/dist/tests/actions.test.js.map +1 -1
  51. package/dist/tests/auxtest.test.js +12 -1
  52. package/dist/tests/auxtest.test.js.map +1 -1
  53. package/dist/tests/mocks.d.ts +13 -0
  54. package/dist/tests/mocks.d.ts.map +1 -1
  55. package/dist/tests/mocks.js +8 -0
  56. package/dist/tests/mocks.js.map +1 -1
  57. package/dist/utils.d.ts +2 -2
  58. package/dist/utils.d.ts.map +1 -1
  59. package/dist/utils.js +8 -3
  60. package/dist/utils.js.map +1 -1
  61. package/package.json +11 -13
@@ -490,9 +490,21 @@ export const types: ({
490
490
  required: boolean;
491
491
  attributes: {
492
492
  options: string[];
493
+ min?: undefined;
493
494
  };
494
495
  sublabel?: undefined;
495
496
  showIf?: undefined;
497
+ } | {
498
+ type: string;
499
+ name: string;
500
+ label: string;
501
+ attributes: {
502
+ min: number;
503
+ options?: undefined;
504
+ };
505
+ sublabel?: undefined;
506
+ required?: undefined;
507
+ showIf?: undefined;
496
508
  } | {
497
509
  type: string;
498
510
  name: string;
@@ -513,6 +525,7 @@ export const types: ({
513
525
  };
514
526
  attributes: {
515
527
  options: string[];
528
+ min?: undefined;
516
529
  };
517
530
  sublabel?: undefined;
518
531
  })[];
@@ -541,7 +554,111 @@ export const types: ({
541
554
  show: {
542
555
  isEdit: boolean;
543
556
  description: string;
544
- run: (s: any) => any;
557
+ run: (v: any, req: any) => any;
558
+ };
559
+ checkboxes: {
560
+ isEdit: boolean;
561
+ description: string;
562
+ run: (v: any) => any;
563
+ };
564
+ TrueFalse: {
565
+ isEdit: boolean;
566
+ description: string;
567
+ run: (v: any) => "" | "True" | "False";
568
+ };
569
+ edit: {
570
+ isEdit: boolean;
571
+ description: string;
572
+ configFields: ({
573
+ name: string;
574
+ label: string;
575
+ type: string;
576
+ attributes: {
577
+ options: string[];
578
+ };
579
+ } | {
580
+ name: string;
581
+ label: string;
582
+ type: string;
583
+ attributes?: undefined;
584
+ })[];
585
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
586
+ };
587
+ switch: {
588
+ isEdit: boolean;
589
+ description: string;
590
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
591
+ };
592
+ show_with_html: {
593
+ configFields: {
594
+ input_type: string;
595
+ name: string;
596
+ label: string;
597
+ sublabel: string;
598
+ default: string;
599
+ attributes: {
600
+ mode: string;
601
+ };
602
+ }[];
603
+ isEdit: boolean;
604
+ description: string;
605
+ run: (v: any, req: any, attrs?: {}) => any;
606
+ };
607
+ tristate: {
608
+ isEdit: boolean;
609
+ description: string;
610
+ configFields: {
611
+ name: string;
612
+ label: string;
613
+ type: string;
614
+ }[];
615
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
616
+ };
617
+ };
618
+ attributes: object[];
619
+ readFromFormRecord: (rec: any, name: string) => boolean | null;
620
+ read: (v: object) => boolean | null;
621
+ readFromDB: (v: object) => object;
622
+ listAs: (v: object) => object;
623
+ validate: () => boolean;
624
+ } | {
625
+ name: string;
626
+ description: string;
627
+ sql_name: string;
628
+ js_type: string;
629
+ contract: () => Function;
630
+ attributes: object[];
631
+ fieldviews: {
632
+ show: {
633
+ isEdit: boolean;
634
+ description: string;
635
+ run: (d: any, req: any, attrs?: {}) => any;
636
+ };
637
+ showDay: {
638
+ isEdit: boolean;
639
+ description: string;
640
+ run: (d: any, req: any) => any;
641
+ };
642
+ format: {
643
+ isEdit: boolean;
644
+ description: string;
645
+ configFields: {
646
+ name: string;
647
+ label: string;
648
+ type: string;
649
+ sublabel: string;
650
+ }[];
651
+ run: (d: any, req: any, options: any) => any;
652
+ };
653
+ relative: {
654
+ isEdit: boolean;
655
+ description: string;
656
+ run: (d: any, req: any) => string;
657
+ };
658
+ yearsAgo: {
659
+ isEdit: boolean;
660
+ description: string;
661
+ run: (d: any, req: any) => string;
545
662
  };
546
663
  show_with_html: {
547
664
  configFields: {
@@ -564,9 +681,17 @@ export const types: ({
564
681
  description: string;
565
682
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
566
683
  };
684
+ editDay: {
685
+ isEdit: boolean;
686
+ blockDisplay: boolean;
687
+ description: string;
688
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
689
+ };
567
690
  };
568
- attributes: object[];
569
- read: (v: object) => object;
691
+ presets: {
692
+ Now: () => Date;
693
+ };
694
+ read: (v: object, attrs: object) => object;
570
695
  validate: () => boolean;
571
696
  } | {
572
697
  name: string;
@@ -754,8 +879,20 @@ export const types: ({
754
879
  required: boolean;
755
880
  attributes: {
756
881
  options: string[];
882
+ min?: undefined;
883
+ };
884
+ sublabel?: undefined;
885
+ showIf?: undefined;
886
+ } | {
887
+ type: string;
888
+ name: string;
889
+ label: string;
890
+ attributes: {
891
+ min: number;
892
+ options?: undefined;
757
893
  };
758
894
  sublabel?: undefined;
895
+ required?: undefined;
759
896
  showIf?: undefined;
760
897
  } | {
761
898
  type: string;
@@ -777,6 +914,7 @@ export const types: ({
777
914
  };
778
915
  attributes: {
779
916
  options: string[];
917
+ min?: undefined;
780
918
  };
781
919
  sublabel?: undefined;
782
920
  })[];
@@ -808,38 +946,11 @@ export const types: ({
808
946
  sql_name: string;
809
947
  js_type: string;
810
948
  contract: () => Function;
811
- attributes: object[];
812
949
  fieldviews: {
813
950
  show: {
814
951
  isEdit: boolean;
815
952
  description: string;
816
- run: (d: any, req: any, attrs?: {}) => any;
817
- };
818
- showDay: {
819
- isEdit: boolean;
820
- description: string;
821
- run: (d: any, req: any) => any;
822
- };
823
- format: {
824
- isEdit: boolean;
825
- description: string;
826
- configFields: {
827
- name: string;
828
- label: string;
829
- type: string;
830
- sublabel: string;
831
- }[];
832
- run: (d: any, req: any, options: any) => any;
833
- };
834
- relative: {
835
- isEdit: boolean;
836
- description: string;
837
- run: (d: any, req: any) => string;
838
- };
839
- yearsAgo: {
840
- isEdit: boolean;
841
- description: string;
842
- run: (d: any, req: any) => string;
953
+ run: (s: any) => any;
843
954
  };
844
955
  show_with_html: {
845
956
  configFields: {
@@ -862,94 +973,9 @@ export const types: ({
862
973
  description: string;
863
974
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
864
975
  };
865
- editDay: {
866
- isEdit: boolean;
867
- blockDisplay: boolean;
868
- description: string;
869
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
870
- };
871
- };
872
- presets: {
873
- Now: () => Date;
874
- };
875
- read: (v: object, attrs: object) => object;
876
- validate: () => boolean;
877
- } | {
878
- name: string;
879
- description: string;
880
- sql_name: string;
881
- js_type: string;
882
- contract: () => Function;
883
- fieldviews: {
884
- show: {
885
- isEdit: boolean;
886
- description: string;
887
- run: (v: any, req: any) => any;
888
- };
889
- checkboxes: {
890
- isEdit: boolean;
891
- description: string;
892
- run: (v: any) => any;
893
- };
894
- TrueFalse: {
895
- isEdit: boolean;
896
- description: string;
897
- run: (v: any) => "" | "True" | "False";
898
- };
899
- edit: {
900
- isEdit: boolean;
901
- description: string;
902
- configFields: ({
903
- name: string;
904
- label: string;
905
- type: string;
906
- attributes: {
907
- options: string[];
908
- };
909
- } | {
910
- name: string;
911
- label: string;
912
- type: string;
913
- attributes?: undefined;
914
- })[];
915
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
916
- };
917
- switch: {
918
- isEdit: boolean;
919
- description: string;
920
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
921
- };
922
- show_with_html: {
923
- configFields: {
924
- input_type: string;
925
- name: string;
926
- label: string;
927
- sublabel: string;
928
- default: string;
929
- attributes: {
930
- mode: string;
931
- };
932
- }[];
933
- isEdit: boolean;
934
- description: string;
935
- run: (v: any, req: any, attrs?: {}) => any;
936
- };
937
- tristate: {
938
- isEdit: boolean;
939
- description: string;
940
- configFields: {
941
- name: string;
942
- label: string;
943
- type: string;
944
- }[];
945
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
946
- };
947
976
  };
948
977
  attributes: object[];
949
- readFromFormRecord: (rec: any, name: string) => boolean | null;
950
- read: (v: object) => boolean | null;
951
- readFromDB: (v: object) => object;
952
- listAs: (v: object) => object;
978
+ read: (v: object) => object;
953
979
  validate: () => boolean;
954
980
  })[];
955
981
  export const viewtemplates: ({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base-plugin/index.js"],"names":[],"mappings":"AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA2E;;;;4CAG9D,MAAM;yCAYN,MAAM"}
@@ -919,9 +919,21 @@ declare namespace to_locale_string {
919
919
  required: boolean;
920
920
  attributes: {
921
921
  options: string[];
922
+ min?: undefined;
922
923
  };
923
924
  sublabel?: undefined;
924
925
  showIf?: undefined;
926
+ } | {
927
+ type: string;
928
+ name: string;
929
+ label: string;
930
+ attributes: {
931
+ min: number;
932
+ options?: undefined;
933
+ };
934
+ sublabel?: undefined;
935
+ required?: undefined;
936
+ showIf?: undefined;
925
937
  } | {
926
938
  type: string;
927
939
  name: string;
@@ -942,6 +954,7 @@ declare namespace to_locale_string {
942
954
  };
943
955
  attributes: {
944
956
  options: string[];
957
+ min?: undefined;
945
958
  };
946
959
  sublabel?: undefined;
947
960
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.js"],"names":[],"mappings":";gBAyqBa,MAAM;;oBAGN,MAAM;;IAQL,+CA6EX;IAMS;;gBAK+D;;;;;;YAehE,oCAAyB;;;;;;;YAKzB,mCACiE;;;;;;;;YAKj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22 @@ const to_locale_string = {
448
448
  options: ["decimal", "currency", "percent", "unit"],
449
449
  },
450
450
  },
451
+ {
452
+ type: "Integer",
453
+ name: "maximumFractionDigits",
454
+ label: "Max Fraction Digits",
455
+ attributes: {
456
+ min: 0,
457
+ },
458
+ },
459
+ {
460
+ type: "Integer",
461
+ name: "maximumSignificantDigits",
462
+ label: "Max Significant Digits",
463
+ attributes: {
464
+ min: 0,
465
+ },
466
+ },
451
467
  {
452
468
  type: "String",
453
469
  name: "currency",
@@ -544,6 +560,8 @@ const to_locale_string = {
544
560
  currencyDisplay: attrs.currencyDisplay,
545
561
  unit: attrs.unit,
546
562
  unitDisplay: attrs.unitDisplay,
563
+ maximumSignificantDigits: attrs.maximumSignificantDigits,
564
+ maximumFractionDigits: attrs.maximumFractionDigits,
547
565
  });
548
566
  }
549
567
  else
@@ -1868,7 +1886,7 @@ const date = {
1868
1886
  read: (v, attrs) => {
1869
1887
  if (v instanceof Date && !isNaN(v))
1870
1888
  return v;
1871
- if (typeof v === "string") {
1889
+ if (typeof v === "string" || (typeof v === "number" && !isNaN(v))) {
1872
1890
  if (attrs && attrs.locale) {
1873
1891
  const d = moment(v, "L LT", attrs.locale).toDate();
1874
1892
  if (d instanceof Date && !isNaN(d))