@g9tm/lynxcontrols-projects 2.5.10 → 2.5.12

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.
@@ -10,8 +10,8 @@ Props:
10
10
  - `columns?`: number
11
11
  - `formatSize?`: (bytes: number) => void
12
12
  - `menuFor?`: (item: G9FileEntry) => void
13
+ - `onCancelUpload?`: (id: string) => void
13
14
  - `onMenu?`: (key: string, item: G9FileEntry) => void
14
15
  - `onNavigate?`: (folderId: string | null) => void
15
- - `onOpen?`: (item: G9FileEntry) => void
16
16
 
17
17
  Example: `<G9FileBrowser items={items} />`
@@ -10,6 +10,6 @@ Props:
10
10
  - `words`: object
11
11
  - `newId?`: () => void
12
12
  - `rowHeight?`: number = 220
13
- - `kinds?`: 'number' | 'text' | 'date' | 'single' | 'longText' | 'multi' | 'dropdown' | 'rating' | 'scale' | 'file'[]
13
+ - `kinds?`: 'number' | 'text' | 'date' | 'single' | 'longText' | 'multi' | 'dropdown' | 'rating' | 'scale' | 'file' | 'section'[]
14
14
 
15
15
  Example: `<G9FormBuilder onChange={() => {}} questions={questions} words={words} />`
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "catalogVersion": 1,
3
3
  "package": "@g9tm/lynxcontrols-projects",
4
- "version": "2.5.10",
4
+ "version": "2.5.12",
5
5
  "generatedBy": "node scripts/check-docs.mjs --write",
6
6
  "components": [
7
7
  {
@@ -572,6 +572,17 @@
572
572
  "role": "event",
573
573
  "doc": "A size in the app's words (default B / KB / MB / GB)."
574
574
  },
575
+ {
576
+ "name": "header",
577
+ "type": {
578
+ "kind": "slot",
579
+ "accepts": "any"
580
+ },
581
+ "required": false,
582
+ "serializable": false,
583
+ "role": "slot",
584
+ "doc": "Above the files (the app's search field, filters)."
585
+ },
575
586
  {
576
587
  "name": "id",
577
588
  "type": {
@@ -661,6 +672,30 @@
661
672
  "kind": "number"
662
673
  },
663
674
  "serializable": true
675
+ },
676
+ {
677
+ "name": "version",
678
+ "required": false,
679
+ "type": {
680
+ "kind": "number"
681
+ },
682
+ "serializable": true
683
+ },
684
+ {
685
+ "name": "recent",
686
+ "required": false,
687
+ "type": {
688
+ "kind": "boolean"
689
+ },
690
+ "serializable": true
691
+ },
692
+ {
693
+ "name": "subtitle",
694
+ "required": false,
695
+ "type": {
696
+ "kind": "string"
697
+ },
698
+ "serializable": true
664
699
  }
665
700
  ]
666
701
  }
@@ -681,6 +716,16 @@
681
716
  "role": "event",
682
717
  "doc": "An item's menu (rename, move, delete…)."
683
718
  },
719
+ {
720
+ "name": "onCancelUpload",
721
+ "type": {
722
+ "kind": "event",
723
+ "payload": "id: string"
724
+ },
725
+ "required": false,
726
+ "serializable": false,
727
+ "role": "event"
728
+ },
684
729
  {
685
730
  "name": "onMenu",
686
731
  "type": {
@@ -713,6 +758,36 @@
713
758
  "role": "event",
714
759
  "doc": "A file opened, or a folder entered."
715
760
  },
761
+ {
762
+ "name": "onPause",
763
+ "type": {
764
+ "kind": "event",
765
+ "payload": "item: G9FileEntry"
766
+ },
767
+ "required": false,
768
+ "serializable": false,
769
+ "role": "event"
770
+ },
771
+ {
772
+ "name": "onPlay",
773
+ "type": {
774
+ "kind": "event",
775
+ "payload": "item: G9FileEntry"
776
+ },
777
+ "required": false,
778
+ "serializable": false,
779
+ "role": "event"
780
+ },
781
+ {
782
+ "name": "onRetryUpload",
783
+ "type": {
784
+ "kind": "event",
785
+ "payload": "id: string"
786
+ },
787
+ "required": false,
788
+ "serializable": false,
789
+ "role": "event"
790
+ },
716
791
  {
717
792
  "name": "onSelectionChange",
718
793
  "type": {
@@ -744,6 +819,17 @@
744
819
  "role": "event",
745
820
  "doc": "The upload button (the app's picker)."
746
821
  },
822
+ {
823
+ "name": "onVersions",
824
+ "type": {
825
+ "kind": "event",
826
+ "payload": "item: G9FileEntry"
827
+ },
828
+ "required": false,
829
+ "serializable": false,
830
+ "role": "event",
831
+ "doc": "A file's version history (the badge's tap)."
832
+ },
747
833
  {
748
834
  "name": "onViewChange",
749
835
  "type": {
@@ -785,6 +871,26 @@
785
871
  "role": "behaviour",
786
872
  "doc": "The folders from the top to here (the breadcrumb); `rootLabel` first."
787
873
  },
874
+ {
875
+ "name": "playingId",
876
+ "type": {
877
+ "kind": "string"
878
+ },
879
+ "required": false,
880
+ "serializable": true,
881
+ "role": "behaviour",
882
+ "doc": "Audio files play in place: the app plays; this is the one playing."
883
+ },
884
+ {
885
+ "name": "query",
886
+ "type": {
887
+ "kind": "string"
888
+ },
889
+ "required": false,
890
+ "serializable": true,
891
+ "role": "behaviour",
892
+ "doc": "The app's search text (names are filtered by it; the field is the app's, in `header`)."
893
+ },
788
894
  {
789
895
  "name": "rootLabel",
790
896
  "type": {
@@ -854,6 +960,112 @@
854
960
  "serializable": true,
855
961
  "role": "behaviour"
856
962
  },
963
+ {
964
+ "name": "uploads",
965
+ "type": {
966
+ "kind": "array",
967
+ "items": {
968
+ "kind": "object",
969
+ "fields": [
970
+ {
971
+ "name": "id",
972
+ "required": true,
973
+ "type": {
974
+ "kind": "string"
975
+ },
976
+ "serializable": true
977
+ },
978
+ {
979
+ "name": "name",
980
+ "required": true,
981
+ "type": {
982
+ "kind": "string"
983
+ },
984
+ "serializable": true
985
+ },
986
+ {
987
+ "name": "progress",
988
+ "required": true,
989
+ "type": {
990
+ "kind": "number"
991
+ },
992
+ "serializable": true
993
+ },
994
+ {
995
+ "name": "error",
996
+ "required": false,
997
+ "type": {
998
+ "kind": "string"
999
+ },
1000
+ "serializable": true
1001
+ }
1002
+ ]
1003
+ }
1004
+ },
1005
+ "required": false,
1006
+ "serializable": true,
1007
+ "role": "behaviour",
1008
+ "doc": "The upload queue: rows at the top with progress, cancel and retry."
1009
+ },
1010
+ {
1011
+ "name": "uploadWords",
1012
+ "type": {
1013
+ "kind": "object",
1014
+ "fields": [
1015
+ {
1016
+ "name": "cancel",
1017
+ "required": false,
1018
+ "type": {
1019
+ "kind": "string"
1020
+ },
1021
+ "serializable": true
1022
+ },
1023
+ {
1024
+ "name": "retry",
1025
+ "required": false,
1026
+ "type": {
1027
+ "kind": "string"
1028
+ },
1029
+ "serializable": true
1030
+ },
1031
+ {
1032
+ "name": "play",
1033
+ "required": false,
1034
+ "type": {
1035
+ "kind": "string"
1036
+ },
1037
+ "serializable": true
1038
+ },
1039
+ {
1040
+ "name": "pause",
1041
+ "required": false,
1042
+ "type": {
1043
+ "kind": "string"
1044
+ },
1045
+ "serializable": true
1046
+ },
1047
+ {
1048
+ "name": "versions",
1049
+ "required": false,
1050
+ "type": {
1051
+ "kind": "string"
1052
+ },
1053
+ "serializable": true
1054
+ },
1055
+ {
1056
+ "name": "noMatch",
1057
+ "required": false,
1058
+ "type": {
1059
+ "kind": "string"
1060
+ },
1061
+ "serializable": true
1062
+ }
1063
+ ]
1064
+ },
1065
+ "required": false,
1066
+ "serializable": true,
1067
+ "role": "behaviour"
1068
+ },
857
1069
  {
858
1070
  "name": "view",
859
1071
  "type": {
@@ -1003,6 +1215,7 @@
1003
1215
  "ledger": []
1004
1216
  },
1005
1217
  "tokens": [
1218
+ "Error",
1006
1219
  "OnPrimary",
1007
1220
  "OnPrimaryContainer",
1008
1221
  "Outline",
@@ -1055,7 +1268,8 @@
1055
1268
  "dropdown",
1056
1269
  "rating",
1057
1270
  "scale",
1058
- "file"
1271
+ "file",
1272
+ "section"
1059
1273
  ]
1060
1274
  }
1061
1275
  },
@@ -1116,7 +1330,8 @@
1116
1330
  "dropdown",
1117
1331
  "rating",
1118
1332
  "scale",
1119
- "file"
1333
+ "file",
1334
+ "section"
1120
1335
  ]
1121
1336
  },
1122
1337
  "serializable": true
@@ -1219,8 +1434,8 @@
1219
1434
  "name": "kinds",
1220
1435
  "required": true,
1221
1436
  "type": {
1222
- "kind": "object",
1223
- "name": "Readonly"
1437
+ "kind": "unknown",
1438
+ "text": "Readonly<Record<\"number\" | \"text\" | \"date\" | \"single\" | \"longText\" | \"multi\" | \"dropdown\" | \"rating\" | \"scale\" | \"file\", string>> & { readonly section?: string; }"
1224
1439
  },
1225
1440
  "serializable": false
1226
1441
  },
@@ -1698,7 +1913,8 @@
1698
1913
  "dropdown",
1699
1914
  "rating",
1700
1915
  "scale",
1701
- "file"
1916
+ "file",
1917
+ "section"
1702
1918
  ]
1703
1919
  },
1704
1920
  "serializable": true
@@ -3245,6 +3461,16 @@
3245
3461
  "role": "behaviour",
3246
3462
  "doc": "Today (epoch days)."
3247
3463
  },
3464
+ {
3465
+ "name": "todayButton",
3466
+ "type": {
3467
+ "kind": "string"
3468
+ },
3469
+ "required": false,
3470
+ "serializable": true,
3471
+ "role": "behaviour",
3472
+ "doc": "A «Today» button over the chart that scrolls to today (2.5.11): its words."
3473
+ },
3248
3474
  {
3249
3475
  "name": "todayLabel",
3250
3476
  "type": {
@@ -3581,6 +3807,14 @@
3581
3807
  "signature": "Readonly<Record<G9FileEntryKind, string>>",
3582
3808
  "summary": "The kinds' icons (SVG)."
3583
3809
  },
3810
+ {
3811
+ "id": "projects.projects.G9FileUpload",
3812
+ "export": "G9FileUpload",
3813
+ "from": "@g9tm/lynxcontrols-projects",
3814
+ "kind": "interface",
3815
+ "signature": "G9FileUpload",
3816
+ "summary": "A file in the upload queue (2.5.11)."
3817
+ },
3584
3818
  {
3585
3819
  "id": "projects.projects.G9FormAnswer",
3586
3820
  "export": "G9FormAnswer",
package/catalog/index.md CHANGED
@@ -1,4 +1,4 @@
1
- # Catalog index: `@g9tm/lynxcontrols-projects` 2.5.10
1
+ # Catalog index: `@g9tm/lynxcontrols-projects` 2.5.12
2
2
 
3
3
  One line per component; the card (`cards/<Export>.md`) has its props and an example.
4
4