@g9tm/lynxcontrols-calendar 2.5.8 → 2.5.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "catalogVersion": 1,
3
3
  "package": "@g9tm/lynxcontrols-calendar",
4
- "version": "2.5.8",
4
+ "version": "2.5.10",
5
5
  "generatedBy": "node scripts/check-docs.mjs --write",
6
6
  "components": [
7
7
  {
@@ -142,6 +142,22 @@
142
142
  "kind": "boolean"
143
143
  },
144
144
  "serializable": true
145
+ },
146
+ {
147
+ "name": "online",
148
+ "required": false,
149
+ "type": {
150
+ "kind": "boolean"
151
+ },
152
+ "serializable": true
153
+ },
154
+ {
155
+ "name": "live",
156
+ "required": false,
157
+ "type": {
158
+ "kind": "boolean"
159
+ },
160
+ "serializable": true
145
161
  }
146
162
  ]
147
163
  }
@@ -566,6 +582,305 @@
566
582
  "from": "generated"
567
583
  }
568
584
  },
585
+ {
586
+ "id": "calendar.calendar.G9DateField",
587
+ "export": "G9DateField",
588
+ "from": "@g9tm/lynxcontrols-calendar",
589
+ "kind": "component",
590
+ "family": "calendar",
591
+ "summary": "A date field: the chosen day in a box (and in the other calendar), G9DateInput in a popover or a sheet on tap.",
592
+ "since": null,
593
+ "props": [
594
+ {
595
+ "name": "clearLabel",
596
+ "type": {
597
+ "kind": "string"
598
+ },
599
+ "required": false,
600
+ "serializable": true,
601
+ "role": "content",
602
+ "doc": "The clear button's spoken name. Default «Clear»."
603
+ },
604
+ {
605
+ "name": "disabled",
606
+ "type": {
607
+ "kind": "boolean"
608
+ },
609
+ "required": false,
610
+ "serializable": true,
611
+ "role": "state"
612
+ },
613
+ {
614
+ "name": "error",
615
+ "type": {
616
+ "kind": "string"
617
+ },
618
+ "required": false,
619
+ "serializable": true,
620
+ "role": "behaviour",
621
+ "doc": "An error from the form."
622
+ },
623
+ {
624
+ "name": "hint",
625
+ "type": {
626
+ "kind": "string"
627
+ },
628
+ "required": false,
629
+ "serializable": true,
630
+ "role": "content"
631
+ },
632
+ {
633
+ "name": "id",
634
+ "type": {
635
+ "kind": "string"
636
+ },
637
+ "required": false,
638
+ "serializable": true,
639
+ "role": "identity"
640
+ },
641
+ {
642
+ "name": "invalidText",
643
+ "type": {
644
+ "kind": "string"
645
+ },
646
+ "required": false,
647
+ "serializable": true,
648
+ "role": "content",
649
+ "doc": "Shown in the input when the typed text is not a date."
650
+ },
651
+ {
652
+ "name": "label",
653
+ "type": {
654
+ "kind": "string"
655
+ },
656
+ "required": true,
657
+ "serializable": true,
658
+ "role": "content"
659
+ },
660
+ {
661
+ "name": "max",
662
+ "type": {
663
+ "kind": "object",
664
+ "fields": [
665
+ {
666
+ "name": "year",
667
+ "required": true,
668
+ "type": {
669
+ "kind": "number"
670
+ },
671
+ "serializable": true
672
+ },
673
+ {
674
+ "name": "month",
675
+ "required": true,
676
+ "type": {
677
+ "kind": "number"
678
+ },
679
+ "serializable": true
680
+ },
681
+ {
682
+ "name": "day",
683
+ "required": true,
684
+ "type": {
685
+ "kind": "number"
686
+ },
687
+ "serializable": true
688
+ }
689
+ ]
690
+ },
691
+ "required": false,
692
+ "serializable": true,
693
+ "role": "behaviour"
694
+ },
695
+ {
696
+ "name": "min",
697
+ "type": {
698
+ "kind": "object",
699
+ "fields": [
700
+ {
701
+ "name": "year",
702
+ "required": true,
703
+ "type": {
704
+ "kind": "number"
705
+ },
706
+ "serializable": true
707
+ },
708
+ {
709
+ "name": "month",
710
+ "required": true,
711
+ "type": {
712
+ "kind": "number"
713
+ },
714
+ "serializable": true
715
+ },
716
+ {
717
+ "name": "day",
718
+ "required": true,
719
+ "type": {
720
+ "kind": "number"
721
+ },
722
+ "serializable": true
723
+ }
724
+ ]
725
+ },
726
+ "required": false,
727
+ "serializable": true,
728
+ "role": "behaviour"
729
+ },
730
+ {
731
+ "name": "onChange",
732
+ "type": {
733
+ "kind": "event",
734
+ "payload": "date: G9LocalDate | null"
735
+ },
736
+ "required": true,
737
+ "serializable": false,
738
+ "role": "event"
739
+ },
740
+ {
741
+ "name": "placeholder",
742
+ "type": {
743
+ "kind": "string"
744
+ },
745
+ "required": false,
746
+ "serializable": true,
747
+ "role": "content",
748
+ "doc": "In the empty box."
749
+ },
750
+ {
751
+ "name": "required",
752
+ "type": {
753
+ "kind": "boolean"
754
+ },
755
+ "required": false,
756
+ "serializable": true,
757
+ "role": "behaviour",
758
+ "doc": "A date is needed: no clear ✕."
759
+ },
760
+ {
761
+ "name": "secondaryCalendar",
762
+ "type": {
763
+ "kind": "enum",
764
+ "values": [
765
+ "gregorian",
766
+ "persian",
767
+ "none",
768
+ "auto"
769
+ ]
770
+ },
771
+ "required": false,
772
+ "serializable": true,
773
+ "role": "behaviour",
774
+ "doc": "The calendar of the second label: `auto` (default: Gregorian beside a Persian culture, Persian beside a Gregorian one), a calendar, or `none` (no second label)."
775
+ },
776
+ {
777
+ "name": "title",
778
+ "type": {
779
+ "kind": "string"
780
+ },
781
+ "required": false,
782
+ "serializable": true,
783
+ "role": "content",
784
+ "doc": "The sheet's title on a phone. Default the label."
785
+ },
786
+ {
787
+ "name": "today",
788
+ "type": {
789
+ "kind": "object",
790
+ "fields": [
791
+ {
792
+ "name": "year",
793
+ "required": true,
794
+ "type": {
795
+ "kind": "number"
796
+ },
797
+ "serializable": true
798
+ },
799
+ {
800
+ "name": "month",
801
+ "required": true,
802
+ "type": {
803
+ "kind": "number"
804
+ },
805
+ "serializable": true
806
+ },
807
+ {
808
+ "name": "day",
809
+ "required": true,
810
+ "type": {
811
+ "kind": "number"
812
+ },
813
+ "serializable": true
814
+ }
815
+ ]
816
+ },
817
+ "required": true,
818
+ "serializable": true,
819
+ "role": "behaviour"
820
+ },
821
+ {
822
+ "name": "value",
823
+ "type": {
824
+ "kind": "object",
825
+ "fields": [
826
+ {
827
+ "name": "year",
828
+ "required": true,
829
+ "type": {
830
+ "kind": "number"
831
+ },
832
+ "serializable": true
833
+ },
834
+ {
835
+ "name": "month",
836
+ "required": true,
837
+ "type": {
838
+ "kind": "number"
839
+ },
840
+ "serializable": true
841
+ },
842
+ {
843
+ "name": "day",
844
+ "required": true,
845
+ "type": {
846
+ "kind": "number"
847
+ },
848
+ "serializable": true
849
+ }
850
+ ]
851
+ },
852
+ "required": true,
853
+ "serializable": true,
854
+ "role": "state"
855
+ }
856
+ ],
857
+ "anchor": null,
858
+ "accessibility": {
859
+ "labelFrom": [
860
+ "title",
861
+ "label",
862
+ "placeholder"
863
+ ],
864
+ "labelRequired": false
865
+ },
866
+ "targets": {
867
+ "android": "unmeasured",
868
+ "ios": "unmeasured",
869
+ "windows": "unmeasured",
870
+ "macos": "unmeasured",
871
+ "web": "verified"
872
+ },
873
+ "evidence": {
874
+ "ledger": [
875
+ "N-126"
876
+ ]
877
+ },
878
+ "tokens": [],
879
+ "example": {
880
+ "line": "<G9DateField label=\"Label\" onChange={() => {}} today={today} value={value} />",
881
+ "from": "generated"
882
+ }
883
+ },
569
884
  {
570
885
  "id": "calendar.calendar.G9DateInput",
571
886
  "export": "G9DateInput",
@@ -702,6 +1017,20 @@
702
1017
  "serializable": true,
703
1018
  "role": "behaviour"
704
1019
  },
1020
+ {
1021
+ "name": "month",
1022
+ "type": {
1023
+ "kind": "enum",
1024
+ "values": [
1025
+ "focus",
1026
+ "always"
1027
+ ]
1028
+ },
1029
+ "required": false,
1030
+ "serializable": true,
1031
+ "role": "behaviour",
1032
+ "doc": "When the month shows: `focus` (default, under the focused field) or `always` (2.5.10: inside G9DateField's popover)."
1033
+ },
705
1034
  {
706
1035
  "name": "onChange",
707
1036
  "type": {
@@ -1015,6 +1344,22 @@
1015
1344
  "kind": "boolean"
1016
1345
  },
1017
1346
  "serializable": true
1347
+ },
1348
+ {
1349
+ "name": "online",
1350
+ "required": false,
1351
+ "type": {
1352
+ "kind": "boolean"
1353
+ },
1354
+ "serializable": true
1355
+ },
1356
+ {
1357
+ "name": "live",
1358
+ "required": false,
1359
+ "type": {
1360
+ "kind": "boolean"
1361
+ },
1362
+ "serializable": true
1018
1363
  }
1019
1364
  ]
1020
1365
  },
@@ -1103,6 +1448,14 @@
1103
1448
  "kind": "string"
1104
1449
  },
1105
1450
  "serializable": true
1451
+ },
1452
+ {
1453
+ "name": "online",
1454
+ "required": false,
1455
+ "type": {
1456
+ "kind": "string"
1457
+ },
1458
+ "serializable": true
1106
1459
  }
1107
1460
  ]
1108
1461
  },
@@ -1110,6 +1463,16 @@
1110
1463
  "serializable": true,
1111
1464
  "role": "behaviour"
1112
1465
  },
1466
+ {
1467
+ "name": "online",
1468
+ "type": {
1469
+ "kind": "boolean"
1470
+ },
1471
+ "required": false,
1472
+ "serializable": true,
1473
+ "role": "behaviour",
1474
+ "doc": "An online meeting (2.5.10); default the event's own `online`."
1475
+ },
1113
1476
  {
1114
1477
  "name": "onOpen",
1115
1478
  "type": {
@@ -1176,6 +1539,7 @@
1176
1539
  },
1177
1540
  "tokens": [
1178
1541
  "OnPrimary",
1542
+ "Primary",
1179
1543
  "TextSecondary"
1180
1544
  ],
1181
1545
  "example": {
@@ -1377,6 +1741,7 @@
1377
1741
  },
1378
1742
  "tokens": [
1379
1743
  "OnPrimary",
1744
+ "Primary",
1380
1745
  "TextSecondary"
1381
1746
  ],
1382
1747
  "example": {
@@ -2022,6 +2387,22 @@
2022
2387
  "kind": "boolean"
2023
2388
  },
2024
2389
  "serializable": true
2390
+ },
2391
+ {
2392
+ "name": "online",
2393
+ "required": false,
2394
+ "type": {
2395
+ "kind": "boolean"
2396
+ },
2397
+ "serializable": true
2398
+ },
2399
+ {
2400
+ "name": "live",
2401
+ "required": false,
2402
+ "type": {
2403
+ "kind": "boolean"
2404
+ },
2405
+ "serializable": true
2025
2406
  }
2026
2407
  ]
2027
2408
  }
@@ -2286,6 +2667,16 @@
2286
2667
  "summary": "Never / daily / weekly / … : the presets from the start date and a full custom editor, or the plain frequency row.",
2287
2668
  "since": null,
2288
2669
  "props": [
2670
+ {
2671
+ "name": "disabled",
2672
+ "type": {
2673
+ "kind": "boolean"
2674
+ },
2675
+ "required": false,
2676
+ "serializable": true,
2677
+ "role": "state",
2678
+ "doc": "Shown, not changed."
2679
+ },
2289
2680
  {
2290
2681
  "name": "editorLabels",
2291
2682
  "type": {
@@ -2418,6 +2809,17 @@
2418
2809
  "role": "behaviour",
2419
2810
  "doc": "The custom editor's words."
2420
2811
  },
2812
+ {
2813
+ "name": "footer",
2814
+ "type": {
2815
+ "kind": "slot",
2816
+ "accepts": "any"
2817
+ },
2818
+ "required": false,
2819
+ "serializable": false,
2820
+ "role": "slot",
2821
+ "doc": "Under the picker (the next dates)."
2822
+ },
2421
2823
  {
2422
2824
  "name": "id",
2423
2825
  "type": {
@@ -2661,6 +3063,17 @@
2661
3063
  "serializable": true,
2662
3064
  "role": "state"
2663
3065
  },
3066
+ {
3067
+ "name": "weekOfMonth",
3068
+ "type": {
3069
+ "kind": "boolean"
3070
+ },
3071
+ "required": false,
3072
+ "default": true,
3073
+ "serializable": true,
3074
+ "role": "behaviour",
3075
+ "doc": "«By weekday of the month» (the 2nd Tuesday) in the custom editor and its preset. Default true; false where the server's rules have no week-of-month (G9Hub's task repetition)."
3076
+ },
2664
3077
  {
2665
3078
  "name": "words",
2666
3079
  "type": {
@@ -2984,6 +3397,22 @@
2984
3397
  "kind": "boolean"
2985
3398
  },
2986
3399
  "serializable": true
3400
+ },
3401
+ {
3402
+ "name": "online",
3403
+ "required": false,
3404
+ "type": {
3405
+ "kind": "boolean"
3406
+ },
3407
+ "serializable": true
3408
+ },
3409
+ {
3410
+ "name": "live",
3411
+ "required": false,
3412
+ "type": {
3413
+ "kind": "boolean"
3414
+ },
3415
+ "serializable": true
2987
3416
  }
2988
3417
  ]
2989
3418
  }
@@ -3518,13 +3947,30 @@
3518
3947
  "kind": "boolean"
3519
3948
  },
3520
3949
  "serializable": true
3950
+ },
3951
+ {
3952
+ "name": "online",
3953
+ "required": false,
3954
+ "type": {
3955
+ "kind": "boolean"
3956
+ },
3957
+ "serializable": true
3958
+ },
3959
+ {
3960
+ "name": "live",
3961
+ "required": false,
3962
+ "type": {
3963
+ "kind": "boolean"
3964
+ },
3965
+ "serializable": true
3521
3966
  }
3522
3967
  ]
3523
3968
  }
3524
3969
  },
3525
3970
  "required": true,
3526
3971
  "serializable": false,
3527
- "role": "behaviour"
3972
+ "role": "behaviour",
3973
+ "doc": "`null`: still loading (2.5.10; a skeleton at the card's usual height)."
3528
3974
  },
3529
3975
  {
3530
3976
  "name": "id",
@@ -3579,6 +4025,30 @@
3579
4025
  "kind": "string"
3580
4026
  },
3581
4027
  "serializable": true
4028
+ },
4029
+ {
4030
+ "name": "startsIn",
4031
+ "required": false,
4032
+ "type": {
4033
+ "kind": "string"
4034
+ },
4035
+ "serializable": true
4036
+ },
4037
+ {
4038
+ "name": "happeningNow",
4039
+ "required": false,
4040
+ "type": {
4041
+ "kind": "string"
4042
+ },
4043
+ "serializable": true
4044
+ },
4045
+ {
4046
+ "name": "live",
4047
+ "required": false,
4048
+ "type": {
4049
+ "kind": "string"
4050
+ },
4051
+ "serializable": true
3582
4052
  }
3583
4053
  ]
3584
4054
  },
@@ -3597,6 +4067,16 @@
3597
4067
  "role": "behaviour",
3598
4068
  "doc": "At most this many rows. Default 4."
3599
4069
  },
4070
+ {
4071
+ "name": "notice",
4072
+ "type": {
4073
+ "kind": "string"
4074
+ },
4075
+ "required": false,
4076
+ "serializable": true,
4077
+ "role": "behaviour",
4078
+ "doc": "A tappable line at the foot (2.5.10: «2 invitations waiting»)."
4079
+ },
3600
4080
  {
3601
4081
  "name": "now",
3602
4082
  "type": {
@@ -3607,6 +4087,16 @@
3607
4087
  "role": "behaviour",
3608
4088
  "doc": "Now, minutes from midnight (the next event is the first that has not ended)."
3609
4089
  },
4090
+ {
4091
+ "name": "onNotice",
4092
+ "type": {
4093
+ "kind": "event",
4094
+ "payload": null
4095
+ },
4096
+ "required": false,
4097
+ "serializable": false,
4098
+ "role": "event"
4099
+ },
3610
4100
  {
3611
4101
  "name": "onOpen",
3612
4102
  "type": {
@@ -3628,6 +4118,27 @@
3628
4118
  "serializable": false,
3629
4119
  "role": "event"
3630
4120
  },
4121
+ {
4122
+ "name": "openText",
4123
+ "type": {
4124
+ "kind": "string"
4125
+ },
4126
+ "required": false,
4127
+ "serializable": true,
4128
+ "role": "content",
4129
+ "doc": "An «Open calendar» action in the head (2.5.10; it calls `onOpen`)."
4130
+ },
4131
+ {
4132
+ "name": "soonMinutes",
4133
+ "type": {
4134
+ "kind": "number"
4135
+ },
4136
+ "required": false,
4137
+ "default": 60,
4138
+ "serializable": true,
4139
+ "role": "behaviour",
4140
+ "doc": "«starts in {n} min» shows from this many minutes before the next event. Default 60."
4141
+ },
3631
4142
  {
3632
4143
  "name": "today",
3633
4144
  "type": {
@@ -3683,6 +4194,7 @@
3683
4194
  },
3684
4195
  "tokens": [
3685
4196
  "OnPrimary",
4197
+ "Primary",
3686
4198
  "TextSecondary"
3687
4199
  ],
3688
4200
  "example": {
@@ -3728,6 +4240,16 @@
3728
4240
  "role": "behaviour",
3729
4241
  "doc": "A new day's first range. Default 09:00–17:00."
3730
4242
  },
4243
+ {
4244
+ "name": "disabled",
4245
+ "type": {
4246
+ "kind": "boolean"
4247
+ },
4248
+ "required": false,
4249
+ "serializable": true,
4250
+ "role": "state",
4251
+ "doc": "Nothing can change (while saving; 2.5.10)."
4252
+ },
3731
4253
  {
3732
4254
  "name": "id",
3733
4255
  "type": {
@@ -3796,6 +4318,16 @@
3796
4318
  "serializable": true,
3797
4319
  "role": "behaviour"
3798
4320
  },
4321
+ {
4322
+ "name": "maxRanges",
4323
+ "type": {
4324
+ "kind": "number"
4325
+ },
4326
+ "required": false,
4327
+ "serializable": true,
4328
+ "role": "behaviour",
4329
+ "doc": "Ranges a day may have (2.5.10; `1`: one window per weekday, no «add range»). Default no limit."
4330
+ },
3799
4331
  {
3800
4332
  "name": "onChange",
3801
4333
  "type": {
@@ -3920,12 +4452,12 @@
3920
4452
  "kind": "enum",
3921
4453
  "values": [
3922
4454
  "label",
4455
+ "chips",
3923
4456
  "image",
3924
4457
  "button",
3925
4458
  "entry",
3926
4459
  "toggle",
3927
4460
  "picker",
3928
- "chips",
3929
4461
  "tab",
3930
4462
  "tab-view",
3931
4463
  "list",
@@ -4873,6 +5405,14 @@
4873
5405
  "signature": "15",
4874
5406
  "summary": "Snapping of times while dragging (minutes)."
4875
5407
  },
5408
+ {
5409
+ "id": "calendar.calendar.G9DateFieldProps",
5410
+ "export": "G9DateFieldProps",
5411
+ "from": "@g9tm/lynxcontrols-calendar",
5412
+ "kind": "interface",
5413
+ "signature": "G9DateFieldProps",
5414
+ "summary": "Props of `G9DateField`."
5415
+ },
4876
5416
  {
4877
5417
  "id": "calendar.calendar.G9DateInputProps",
4878
5418
  "export": "G9DateInputProps",