@dashspec/renderer 0.1.2 → 0.1.4

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.
@@ -145,6 +145,8 @@ interface Reference {
145
145
  }
146
146
  /** The bodies of every `${…}` in a template, handling nested braces. */
147
147
  declare function placeholders(template: string): string[];
148
+ /** The expression with every string literal emptied, so words inside quotes aren't read as names. */
149
+ declare const stripStrings: (expr: string) => string;
148
150
  /** References inside one expression (no `${}` wrapper). */
149
151
  declare function expressionReferences(expr: string): Reference[];
150
152
  /** References in every `${…}` of a template string. */
@@ -799,19 +801,20 @@ declare const Display: z.ZodObject<{
799
801
  /** The icon at the start of the bar. */
800
802
  icon: z.ZodDefault<z.ZodEnum<["sliders", "filter", "calendar", "search", "none"]>>;
801
803
  /** "card" (default) or "plain" (no background). */
802
- look: z.ZodDefault<z.ZodEnum<["card", "plain"]>>;
804
+ /** "segmented": the filters sit together in one track as borderless chips. */
805
+ look: z.ZodDefault<z.ZodEnum<["card", "plain", "segmented"]>>;
803
806
  }, "strict", z.ZodTypeAny, {
804
807
  show: boolean;
805
808
  apply: "button" | "change";
806
809
  reset: boolean;
807
810
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
808
- look: "plain" | "card";
811
+ look: "plain" | "card" | "segmented";
809
812
  }, {
810
813
  show?: boolean | undefined;
811
814
  apply?: "button" | "change" | undefined;
812
815
  reset?: boolean | undefined;
813
816
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
814
- look?: "plain" | "card" | undefined;
817
+ look?: "plain" | "card" | "segmented" | undefined;
815
818
  }>>;
816
819
  syncedLabel: z.ZodOptional<z.ZodString>;
817
820
  tv: z.ZodOptional<z.ZodObject<{
@@ -846,7 +849,7 @@ declare const Display: z.ZodObject<{
846
849
  apply: "button" | "change";
847
850
  reset: boolean;
848
851
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
849
- look: "plain" | "card";
852
+ look: "plain" | "card" | "segmented";
850
853
  } | undefined;
851
854
  syncedLabel?: string | undefined;
852
855
  }, {
@@ -868,7 +871,7 @@ declare const Display: z.ZodObject<{
868
871
  apply?: "button" | "change" | undefined;
869
872
  reset?: boolean | undefined;
870
873
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
871
- look?: "plain" | "card" | undefined;
874
+ look?: "plain" | "card" | "segmented" | undefined;
872
875
  } | undefined;
873
876
  syncedLabel?: string | undefined;
874
877
  }>;
@@ -940,19 +943,20 @@ declare const Spec: z.ZodObject<{
940
943
  /** The icon at the start of the bar. */
941
944
  icon: z.ZodDefault<z.ZodEnum<["sliders", "filter", "calendar", "search", "none"]>>;
942
945
  /** "card" (default) or "plain" (no background). */
943
- look: z.ZodDefault<z.ZodEnum<["card", "plain"]>>;
946
+ /** "segmented": the filters sit together in one track as borderless chips. */
947
+ look: z.ZodDefault<z.ZodEnum<["card", "plain", "segmented"]>>;
944
948
  }, "strict", z.ZodTypeAny, {
945
949
  show: boolean;
946
950
  apply: "button" | "change";
947
951
  reset: boolean;
948
952
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
949
- look: "plain" | "card";
953
+ look: "plain" | "card" | "segmented";
950
954
  }, {
951
955
  show?: boolean | undefined;
952
956
  apply?: "button" | "change" | undefined;
953
957
  reset?: boolean | undefined;
954
958
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
955
- look?: "plain" | "card" | undefined;
959
+ look?: "plain" | "card" | "segmented" | undefined;
956
960
  }>>;
957
961
  syncedLabel: z.ZodOptional<z.ZodString>;
958
962
  tv: z.ZodOptional<z.ZodObject<{
@@ -987,7 +991,7 @@ declare const Spec: z.ZodObject<{
987
991
  apply: "button" | "change";
988
992
  reset: boolean;
989
993
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
990
- look: "plain" | "card";
994
+ look: "plain" | "card" | "segmented";
991
995
  } | undefined;
992
996
  syncedLabel?: string | undefined;
993
997
  }, {
@@ -1009,7 +1013,7 @@ declare const Spec: z.ZodObject<{
1009
1013
  apply?: "button" | "change" | undefined;
1010
1014
  reset?: boolean | undefined;
1011
1015
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
1012
- look?: "plain" | "card" | undefined;
1016
+ look?: "plain" | "card" | "segmented" | undefined;
1013
1017
  } | undefined;
1014
1018
  syncedLabel?: string | undefined;
1015
1019
  }>>;
@@ -2319,6 +2323,7 @@ declare const Spec: z.ZodObject<{
2319
2323
  h: z.ZodNumber;
2320
2324
  minW: z.ZodOptional<z.ZodNumber>;
2321
2325
  minH: z.ZodOptional<z.ZodNumber>;
2326
+ fit: z.ZodOptional<z.ZodBoolean>;
2322
2327
  }, "strict", z.ZodTypeAny, {
2323
2328
  h: number;
2324
2329
  w: number;
@@ -2327,6 +2332,7 @@ declare const Spec: z.ZodObject<{
2327
2332
  y: number;
2328
2333
  minW?: number | undefined;
2329
2334
  minH?: number | undefined;
2335
+ fit?: boolean | undefined;
2330
2336
  }, {
2331
2337
  h: number;
2332
2338
  w: number;
@@ -2335,6 +2341,7 @@ declare const Spec: z.ZodObject<{
2335
2341
  y: number;
2336
2342
  minW?: number | undefined;
2337
2343
  minH?: number | undefined;
2344
+ fit?: boolean | undefined;
2338
2345
  }>, "many">;
2339
2346
  on: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodTypeAny, "many">, z.ZodEffects<z.ZodString, string, string>]>, z.ZodObject<{
2340
2347
  run: z.ZodUnion<[z.ZodArray<z.ZodTypeAny, "many">, z.ZodEffects<z.ZodString, string, string>]>;
@@ -2428,6 +2435,7 @@ declare const Spec: z.ZodObject<{
2428
2435
  y: number;
2429
2436
  minW?: number | undefined;
2430
2437
  minH?: number | undefined;
2438
+ fit?: boolean | undefined;
2431
2439
  }[];
2432
2440
  datasources?: Record<string, Record<string, unknown>> | undefined;
2433
2441
  on?: Record<string, string | any[] | {
@@ -2504,6 +2512,7 @@ declare const Spec: z.ZodObject<{
2504
2512
  y: number;
2505
2513
  minW?: number | undefined;
2506
2514
  minH?: number | undefined;
2515
+ fit?: boolean | undefined;
2507
2516
  }[];
2508
2517
  datasources?: Record<string, Record<string, unknown>> | undefined;
2509
2518
  on?: Record<string, string | any[] | {
@@ -2530,6 +2539,7 @@ declare const Spec: z.ZodObject<{
2530
2539
  h: z.ZodNumber;
2531
2540
  minW: z.ZodOptional<z.ZodNumber>;
2532
2541
  minH: z.ZodOptional<z.ZodNumber>;
2542
+ fit: z.ZodOptional<z.ZodBoolean>;
2533
2543
  }, "strict", z.ZodTypeAny, {
2534
2544
  h: number;
2535
2545
  w: number;
@@ -2538,6 +2548,7 @@ declare const Spec: z.ZodObject<{
2538
2548
  y: number;
2539
2549
  minW?: number | undefined;
2540
2550
  minH?: number | undefined;
2551
+ fit?: boolean | undefined;
2541
2552
  }, {
2542
2553
  h: number;
2543
2554
  w: number;
@@ -2546,6 +2557,7 @@ declare const Spec: z.ZodObject<{
2546
2557
  y: number;
2547
2558
  minW?: number | undefined;
2548
2559
  minH?: number | undefined;
2560
+ fit?: boolean | undefined;
2549
2561
  }>, "many">>;
2550
2562
  auto: z.ZodOptional<z.ZodEnum<["stack", "flow"]>>;
2551
2563
  }, "strict", z.ZodTypeAny, {
@@ -2558,6 +2570,7 @@ declare const Spec: z.ZodObject<{
2558
2570
  y: number;
2559
2571
  minW?: number | undefined;
2560
2572
  minH?: number | undefined;
2573
+ fit?: boolean | undefined;
2561
2574
  }[] | undefined;
2562
2575
  view?: string | undefined;
2563
2576
  label?: string | undefined;
@@ -2571,6 +2584,7 @@ declare const Spec: z.ZodObject<{
2571
2584
  y: number;
2572
2585
  minW?: number | undefined;
2573
2586
  minH?: number | undefined;
2587
+ fit?: boolean | undefined;
2574
2588
  }[] | undefined;
2575
2589
  view?: string | undefined;
2576
2590
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -2586,6 +2600,7 @@ declare const Spec: z.ZodObject<{
2586
2600
  y: number;
2587
2601
  minW?: number | undefined;
2588
2602
  minH?: number | undefined;
2603
+ fit?: boolean | undefined;
2589
2604
  }[] | undefined;
2590
2605
  view?: string | undefined;
2591
2606
  label?: string | undefined;
@@ -2599,6 +2614,7 @@ declare const Spec: z.ZodObject<{
2599
2614
  y: number;
2600
2615
  minW?: number | undefined;
2601
2616
  minH?: number | undefined;
2617
+ fit?: boolean | undefined;
2602
2618
  }[] | undefined;
2603
2619
  view?: string | undefined;
2604
2620
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -2702,7 +2718,7 @@ declare const Spec: z.ZodObject<{
2702
2718
  apply: "button" | "change";
2703
2719
  reset: boolean;
2704
2720
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
2705
- look: "plain" | "card";
2721
+ look: "plain" | "card" | "segmented";
2706
2722
  } | undefined;
2707
2723
  syncedLabel?: string | undefined;
2708
2724
  };
@@ -2721,6 +2737,7 @@ declare const Spec: z.ZodObject<{
2721
2737
  y: number;
2722
2738
  minW?: number | undefined;
2723
2739
  minH?: number | undefined;
2740
+ fit?: boolean | undefined;
2724
2741
  }[] | undefined;
2725
2742
  view?: string | undefined;
2726
2743
  label?: string | undefined;
@@ -2909,6 +2926,7 @@ declare const Spec: z.ZodObject<{
2909
2926
  y: number;
2910
2927
  minW?: number | undefined;
2911
2928
  minH?: number | undefined;
2929
+ fit?: boolean | undefined;
2912
2930
  }[];
2913
2931
  datasources?: Record<string, Record<string, unknown>> | undefined;
2914
2932
  on?: Record<string, string | any[] | {
@@ -2995,6 +3013,7 @@ declare const Spec: z.ZodObject<{
2995
3013
  y: number;
2996
3014
  minW?: number | undefined;
2997
3015
  minH?: number | undefined;
3016
+ fit?: boolean | undefined;
2998
3017
  }[] | undefined;
2999
3018
  view?: string | undefined;
3000
3019
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -3030,7 +3049,7 @@ declare const Spec: z.ZodObject<{
3030
3049
  apply?: "button" | "change" | undefined;
3031
3050
  reset?: boolean | undefined;
3032
3051
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
3033
- look?: "plain" | "card" | undefined;
3052
+ look?: "plain" | "card" | "segmented" | undefined;
3034
3053
  } | undefined;
3035
3054
  syncedLabel?: string | undefined;
3036
3055
  } | undefined;
@@ -3210,6 +3229,7 @@ declare const Spec: z.ZodObject<{
3210
3229
  y: number;
3211
3230
  minW?: number | undefined;
3212
3231
  minH?: number | undefined;
3232
+ fit?: boolean | undefined;
3213
3233
  }[];
3214
3234
  datasources?: Record<string, Record<string, unknown>> | undefined;
3215
3235
  on?: Record<string, string | any[] | {
@@ -3297,19 +3317,20 @@ declare const Dashboard: z.ZodObject<{
3297
3317
  /** The icon at the start of the bar. */
3298
3318
  icon: z.ZodDefault<z.ZodEnum<["sliders", "filter", "calendar", "search", "none"]>>;
3299
3319
  /** "card" (default) or "plain" (no background). */
3300
- look: z.ZodDefault<z.ZodEnum<["card", "plain"]>>;
3320
+ /** "segmented": the filters sit together in one track as borderless chips. */
3321
+ look: z.ZodDefault<z.ZodEnum<["card", "plain", "segmented"]>>;
3301
3322
  }, "strict", z.ZodTypeAny, {
3302
3323
  show: boolean;
3303
3324
  apply: "button" | "change";
3304
3325
  reset: boolean;
3305
3326
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
3306
- look: "plain" | "card";
3327
+ look: "plain" | "card" | "segmented";
3307
3328
  }, {
3308
3329
  show?: boolean | undefined;
3309
3330
  apply?: "button" | "change" | undefined;
3310
3331
  reset?: boolean | undefined;
3311
3332
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
3312
- look?: "plain" | "card" | undefined;
3333
+ look?: "plain" | "card" | "segmented" | undefined;
3313
3334
  }>>;
3314
3335
  syncedLabel: z.ZodOptional<z.ZodString>;
3315
3336
  tv: z.ZodOptional<z.ZodObject<{
@@ -3344,7 +3365,7 @@ declare const Dashboard: z.ZodObject<{
3344
3365
  apply: "button" | "change";
3345
3366
  reset: boolean;
3346
3367
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
3347
- look: "plain" | "card";
3368
+ look: "plain" | "card" | "segmented";
3348
3369
  } | undefined;
3349
3370
  syncedLabel?: string | undefined;
3350
3371
  }, {
@@ -3366,7 +3387,7 @@ declare const Dashboard: z.ZodObject<{
3366
3387
  apply?: "button" | "change" | undefined;
3367
3388
  reset?: boolean | undefined;
3368
3389
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
3369
- look?: "plain" | "card" | undefined;
3390
+ look?: "plain" | "card" | "segmented" | undefined;
3370
3391
  } | undefined;
3371
3392
  syncedLabel?: string | undefined;
3372
3393
  }>>;
@@ -4676,6 +4697,7 @@ declare const Dashboard: z.ZodObject<{
4676
4697
  h: z.ZodNumber;
4677
4698
  minW: z.ZodOptional<z.ZodNumber>;
4678
4699
  minH: z.ZodOptional<z.ZodNumber>;
4700
+ fit: z.ZodOptional<z.ZodBoolean>;
4679
4701
  }, "strict", z.ZodTypeAny, {
4680
4702
  h: number;
4681
4703
  w: number;
@@ -4684,6 +4706,7 @@ declare const Dashboard: z.ZodObject<{
4684
4706
  y: number;
4685
4707
  minW?: number | undefined;
4686
4708
  minH?: number | undefined;
4709
+ fit?: boolean | undefined;
4687
4710
  }, {
4688
4711
  h: number;
4689
4712
  w: number;
@@ -4692,6 +4715,7 @@ declare const Dashboard: z.ZodObject<{
4692
4715
  y: number;
4693
4716
  minW?: number | undefined;
4694
4717
  minH?: number | undefined;
4718
+ fit?: boolean | undefined;
4695
4719
  }>, "many">;
4696
4720
  on: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodTypeAny, "many">, z.ZodEffects<z.ZodString, string, string>]>, z.ZodObject<{
4697
4721
  run: z.ZodUnion<[z.ZodArray<z.ZodTypeAny, "many">, z.ZodEffects<z.ZodString, string, string>]>;
@@ -4785,6 +4809,7 @@ declare const Dashboard: z.ZodObject<{
4785
4809
  y: number;
4786
4810
  minW?: number | undefined;
4787
4811
  minH?: number | undefined;
4812
+ fit?: boolean | undefined;
4788
4813
  }[];
4789
4814
  datasources?: Record<string, Record<string, unknown>> | undefined;
4790
4815
  on?: Record<string, string | any[] | {
@@ -4861,6 +4886,7 @@ declare const Dashboard: z.ZodObject<{
4861
4886
  y: number;
4862
4887
  minW?: number | undefined;
4863
4888
  minH?: number | undefined;
4889
+ fit?: boolean | undefined;
4864
4890
  }[];
4865
4891
  datasources?: Record<string, Record<string, unknown>> | undefined;
4866
4892
  on?: Record<string, string | any[] | {
@@ -4887,6 +4913,7 @@ declare const Dashboard: z.ZodObject<{
4887
4913
  h: z.ZodNumber;
4888
4914
  minW: z.ZodOptional<z.ZodNumber>;
4889
4915
  minH: z.ZodOptional<z.ZodNumber>;
4916
+ fit: z.ZodOptional<z.ZodBoolean>;
4890
4917
  }, "strict", z.ZodTypeAny, {
4891
4918
  h: number;
4892
4919
  w: number;
@@ -4895,6 +4922,7 @@ declare const Dashboard: z.ZodObject<{
4895
4922
  y: number;
4896
4923
  minW?: number | undefined;
4897
4924
  minH?: number | undefined;
4925
+ fit?: boolean | undefined;
4898
4926
  }, {
4899
4927
  h: number;
4900
4928
  w: number;
@@ -4903,6 +4931,7 @@ declare const Dashboard: z.ZodObject<{
4903
4931
  y: number;
4904
4932
  minW?: number | undefined;
4905
4933
  minH?: number | undefined;
4934
+ fit?: boolean | undefined;
4906
4935
  }>, "many">>;
4907
4936
  auto: z.ZodOptional<z.ZodEnum<["stack", "flow"]>>;
4908
4937
  }, "strict", z.ZodTypeAny, {
@@ -4915,6 +4944,7 @@ declare const Dashboard: z.ZodObject<{
4915
4944
  y: number;
4916
4945
  minW?: number | undefined;
4917
4946
  minH?: number | undefined;
4947
+ fit?: boolean | undefined;
4918
4948
  }[] | undefined;
4919
4949
  view?: string | undefined;
4920
4950
  label?: string | undefined;
@@ -4928,6 +4958,7 @@ declare const Dashboard: z.ZodObject<{
4928
4958
  y: number;
4929
4959
  minW?: number | undefined;
4930
4960
  minH?: number | undefined;
4961
+ fit?: boolean | undefined;
4931
4962
  }[] | undefined;
4932
4963
  view?: string | undefined;
4933
4964
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -4943,6 +4974,7 @@ declare const Dashboard: z.ZodObject<{
4943
4974
  y: number;
4944
4975
  minW?: number | undefined;
4945
4976
  minH?: number | undefined;
4977
+ fit?: boolean | undefined;
4946
4978
  }[] | undefined;
4947
4979
  view?: string | undefined;
4948
4980
  label?: string | undefined;
@@ -4956,6 +4988,7 @@ declare const Dashboard: z.ZodObject<{
4956
4988
  y: number;
4957
4989
  minW?: number | undefined;
4958
4990
  minH?: number | undefined;
4991
+ fit?: boolean | undefined;
4959
4992
  }[] | undefined;
4960
4993
  view?: string | undefined;
4961
4994
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -5059,7 +5092,7 @@ declare const Dashboard: z.ZodObject<{
5059
5092
  apply: "button" | "change";
5060
5093
  reset: boolean;
5061
5094
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
5062
- look: "plain" | "card";
5095
+ look: "plain" | "card" | "segmented";
5063
5096
  } | undefined;
5064
5097
  syncedLabel?: string | undefined;
5065
5098
  };
@@ -5078,6 +5111,7 @@ declare const Dashboard: z.ZodObject<{
5078
5111
  y: number;
5079
5112
  minW?: number | undefined;
5080
5113
  minH?: number | undefined;
5114
+ fit?: boolean | undefined;
5081
5115
  }[] | undefined;
5082
5116
  view?: string | undefined;
5083
5117
  label?: string | undefined;
@@ -5266,6 +5300,7 @@ declare const Dashboard: z.ZodObject<{
5266
5300
  y: number;
5267
5301
  minW?: number | undefined;
5268
5302
  minH?: number | undefined;
5303
+ fit?: boolean | undefined;
5269
5304
  }[];
5270
5305
  datasources?: Record<string, Record<string, unknown>> | undefined;
5271
5306
  on?: Record<string, string | any[] | {
@@ -5352,6 +5387,7 @@ declare const Dashboard: z.ZodObject<{
5352
5387
  y: number;
5353
5388
  minW?: number | undefined;
5354
5389
  minH?: number | undefined;
5390
+ fit?: boolean | undefined;
5355
5391
  }[] | undefined;
5356
5392
  view?: string | undefined;
5357
5393
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -5387,7 +5423,7 @@ declare const Dashboard: z.ZodObject<{
5387
5423
  apply?: "button" | "change" | undefined;
5388
5424
  reset?: boolean | undefined;
5389
5425
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
5390
- look?: "plain" | "card" | undefined;
5426
+ look?: "plain" | "card" | "segmented" | undefined;
5391
5427
  } | undefined;
5392
5428
  syncedLabel?: string | undefined;
5393
5429
  } | undefined;
@@ -5567,6 +5603,7 @@ declare const Dashboard: z.ZodObject<{
5567
5603
  y: number;
5568
5604
  minW?: number | undefined;
5569
5605
  minH?: number | undefined;
5606
+ fit?: boolean | undefined;
5570
5607
  }[];
5571
5608
  datasources?: Record<string, Record<string, unknown>> | undefined;
5572
5609
  on?: Record<string, string | any[] | {
@@ -5668,7 +5705,7 @@ declare const Dashboard: z.ZodObject<{
5668
5705
  apply: "button" | "change";
5669
5706
  reset: boolean;
5670
5707
  icon: "filter" | "none" | "sliders" | "calendar" | "search";
5671
- look: "plain" | "card";
5708
+ look: "plain" | "card" | "segmented";
5672
5709
  } | undefined;
5673
5710
  syncedLabel?: string | undefined;
5674
5711
  };
@@ -5687,6 +5724,7 @@ declare const Dashboard: z.ZodObject<{
5687
5724
  y: number;
5688
5725
  minW?: number | undefined;
5689
5726
  minH?: number | undefined;
5727
+ fit?: boolean | undefined;
5690
5728
  }[] | undefined;
5691
5729
  view?: string | undefined;
5692
5730
  label?: string | undefined;
@@ -5875,6 +5913,7 @@ declare const Dashboard: z.ZodObject<{
5875
5913
  y: number;
5876
5914
  minW?: number | undefined;
5877
5915
  minH?: number | undefined;
5916
+ fit?: boolean | undefined;
5878
5917
  }[];
5879
5918
  datasources?: Record<string, Record<string, unknown>> | undefined;
5880
5919
  on?: Record<string, string | any[] | {
@@ -5977,6 +6016,7 @@ declare const Dashboard: z.ZodObject<{
5977
6016
  y: number;
5978
6017
  minW?: number | undefined;
5979
6018
  minH?: number | undefined;
6019
+ fit?: boolean | undefined;
5980
6020
  }[] | undefined;
5981
6021
  view?: string | undefined;
5982
6022
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -6012,7 +6052,7 @@ declare const Dashboard: z.ZodObject<{
6012
6052
  apply?: "button" | "change" | undefined;
6013
6053
  reset?: boolean | undefined;
6014
6054
  icon?: "filter" | "none" | "sliders" | "calendar" | "search" | undefined;
6015
- look?: "plain" | "card" | undefined;
6055
+ look?: "plain" | "card" | "segmented" | undefined;
6016
6056
  } | undefined;
6017
6057
  syncedLabel?: string | undefined;
6018
6058
  } | undefined;
@@ -6192,6 +6232,7 @@ declare const Dashboard: z.ZodObject<{
6192
6232
  y: number;
6193
6233
  minW?: number | undefined;
6194
6234
  minH?: number | undefined;
6235
+ fit?: boolean | undefined;
6195
6236
  }[];
6196
6237
  datasources?: Record<string, Record<string, unknown>> | undefined;
6197
6238
  on?: Record<string, string | any[] | {
@@ -6392,6 +6433,8 @@ declare const LayoutItem: z.ZodObject<{
6392
6433
  h: z.ZodNumber;
6393
6434
  minW: z.ZodOptional<z.ZodNumber>;
6394
6435
  minH: z.ZodOptional<z.ZodNumber>;
6436
+ /** Grow taller than `h` when the content needs it, so the card never scrolls; `h` stays the minimum. */
6437
+ fit: z.ZodOptional<z.ZodBoolean>;
6395
6438
  }, "strict", z.ZodTypeAny, {
6396
6439
  h: number;
6397
6440
  w: number;
@@ -6400,6 +6443,7 @@ declare const LayoutItem: z.ZodObject<{
6400
6443
  y: number;
6401
6444
  minW?: number | undefined;
6402
6445
  minH?: number | undefined;
6446
+ fit?: boolean | undefined;
6403
6447
  }, {
6404
6448
  h: number;
6405
6449
  w: number;
@@ -6408,6 +6452,7 @@ declare const LayoutItem: z.ZodObject<{
6408
6452
  y: number;
6409
6453
  minW?: number | undefined;
6410
6454
  minH?: number | undefined;
6455
+ fit?: boolean | undefined;
6411
6456
  }>;
6412
6457
  declare const BREAKPOINTS: readonly ["desktop", "tablet", "mobile", "tv"];
6413
6458
  /**
@@ -6427,6 +6472,8 @@ declare const Layout: z.ZodEffects<z.ZodObject<{
6427
6472
  h: z.ZodNumber;
6428
6473
  minW: z.ZodOptional<z.ZodNumber>;
6429
6474
  minH: z.ZodOptional<z.ZodNumber>;
6475
+ /** Grow taller than `h` when the content needs it, so the card never scrolls; `h` stays the minimum. */
6476
+ fit: z.ZodOptional<z.ZodBoolean>;
6430
6477
  }, "strict", z.ZodTypeAny, {
6431
6478
  h: number;
6432
6479
  w: number;
@@ -6435,6 +6482,7 @@ declare const Layout: z.ZodEffects<z.ZodObject<{
6435
6482
  y: number;
6436
6483
  minW?: number | undefined;
6437
6484
  minH?: number | undefined;
6485
+ fit?: boolean | undefined;
6438
6486
  }, {
6439
6487
  h: number;
6440
6488
  w: number;
@@ -6443,6 +6491,7 @@ declare const Layout: z.ZodEffects<z.ZodObject<{
6443
6491
  y: number;
6444
6492
  minW?: number | undefined;
6445
6493
  minH?: number | undefined;
6494
+ fit?: boolean | undefined;
6446
6495
  }>, "many">>;
6447
6496
  auto: z.ZodOptional<z.ZodEnum<["stack", "flow"]>>;
6448
6497
  }, "strict", z.ZodTypeAny, {
@@ -6455,6 +6504,7 @@ declare const Layout: z.ZodEffects<z.ZodObject<{
6455
6504
  y: number;
6456
6505
  minW?: number | undefined;
6457
6506
  minH?: number | undefined;
6507
+ fit?: boolean | undefined;
6458
6508
  }[] | undefined;
6459
6509
  view?: string | undefined;
6460
6510
  label?: string | undefined;
@@ -6468,6 +6518,7 @@ declare const Layout: z.ZodEffects<z.ZodObject<{
6468
6518
  y: number;
6469
6519
  minW?: number | undefined;
6470
6520
  minH?: number | undefined;
6521
+ fit?: boolean | undefined;
6471
6522
  }[] | undefined;
6472
6523
  view?: string | undefined;
6473
6524
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -6483,6 +6534,7 @@ declare const Layout: z.ZodEffects<z.ZodObject<{
6483
6534
  y: number;
6484
6535
  minW?: number | undefined;
6485
6536
  minH?: number | undefined;
6537
+ fit?: boolean | undefined;
6486
6538
  }[] | undefined;
6487
6539
  view?: string | undefined;
6488
6540
  label?: string | undefined;
@@ -6496,6 +6548,7 @@ declare const Layout: z.ZodEffects<z.ZodObject<{
6496
6548
  y: number;
6497
6549
  minW?: number | undefined;
6498
6550
  minH?: number | undefined;
6551
+ fit?: boolean | undefined;
6499
6552
  }[] | undefined;
6500
6553
  view?: string | undefined;
6501
6554
  breakpoint?: "desktop" | "tablet" | "mobile" | "tv" | undefined;
@@ -6821,6 +6874,7 @@ declare const Modal: z.ZodObject<{
6821
6874
  h: z.ZodNumber;
6822
6875
  minW: z.ZodOptional<z.ZodNumber>;
6823
6876
  minH: z.ZodOptional<z.ZodNumber>;
6877
+ fit: z.ZodOptional<z.ZodBoolean>;
6824
6878
  }, "strict", z.ZodTypeAny, {
6825
6879
  h: number;
6826
6880
  w: number;
@@ -6829,6 +6883,7 @@ declare const Modal: z.ZodObject<{
6829
6883
  y: number;
6830
6884
  minW?: number | undefined;
6831
6885
  minH?: number | undefined;
6886
+ fit?: boolean | undefined;
6832
6887
  }, {
6833
6888
  h: number;
6834
6889
  w: number;
@@ -6837,6 +6892,7 @@ declare const Modal: z.ZodObject<{
6837
6892
  y: number;
6838
6893
  minW?: number | undefined;
6839
6894
  minH?: number | undefined;
6895
+ fit?: boolean | undefined;
6840
6896
  }>, "many">;
6841
6897
  on: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodTypeAny, "many">, z.ZodEffects<z.ZodString, string, string>]>, z.ZodObject<{
6842
6898
  run: z.ZodUnion<[z.ZodArray<z.ZodTypeAny, "many">, z.ZodEffects<z.ZodString, string, string>]>;
@@ -6930,6 +6986,7 @@ declare const Modal: z.ZodObject<{
6930
6986
  y: number;
6931
6987
  minW?: number | undefined;
6932
6988
  minH?: number | undefined;
6989
+ fit?: boolean | undefined;
6933
6990
  }[];
6934
6991
  datasources?: Record<string, Record<string, unknown>> | undefined;
6935
6992
  on?: Record<string, string | any[] | {
@@ -7006,6 +7063,7 @@ declare const Modal: z.ZodObject<{
7006
7063
  y: number;
7007
7064
  minW?: number | undefined;
7008
7065
  minH?: number | undefined;
7066
+ fit?: boolean | undefined;
7009
7067
  }[];
7010
7068
  datasources?: Record<string, Record<string, unknown>> | undefined;
7011
7069
  on?: Record<string, string | any[] | {
@@ -7423,7 +7481,7 @@ declare class TransformError extends Error {
7423
7481
  declare function applyTransform(data: unknown, steps: readonly Step[], root: Scope, opts?: TransformOptions): unknown;
7424
7482
 
7425
7483
  /** This package's version. A test keeps it equal to package.json's; bump both together. */
7426
- declare const RENDERER_VERSION = "0.1.2";
7484
+ declare const RENDERER_VERSION = "0.1.4";
7427
7485
  /**
7428
7486
  * Whether `version` satisfies `range`. Supports what documents need: "1.2.3" (that or newer within the major, like
7429
7487
  * "^"), ">=1.2", ">1.2.3", "<2", "<=2.1", "^1.2", "~1.2.3", and several of them separated by spaces (all must hold).
@@ -7614,4 +7672,4 @@ declare const builtInWidgetChecks: {
7614
7672
  schema: any;
7615
7673
  }[];
7616
7674
 
7617
- export { Modal as $, type AnyWidgetDefinition as A, BREAKPOINTS as B, Callback as C, Dashboard as D, type Emit as E, Expression as F, ExpressionError as G, type HttpClient as H, FnProp as I, JsonValue as J, Handler as K, type HelperSettings as L, type Helpers as M, type NetworkOptions as N, type HttpClientInternals as O, Id as P, Layout as Q, type ResolvedRequest as R, type Scope as S, type TreeState as T, LayoutItem as U, type LoadOptions as V, type WidgetDefinition as W, type LoadResult as X, Metadata as Y, type MigrateResult as Z, MigrationError as _, type TimeSettings as a, StatusTone as a$, NamedAction as a0, type Node as a1, Panel as a2, PanelControl as a3, type PanelMigration as a4, type PanelState as a5, type Problem as a6, RENDERER_VERSION as a7, RESERVED_STATE_KEYS as a8, type RefRoot as a9, dashboardJsonSchema as aA, evaluate as aB, evaluateSafe as aC, expressionReferences as aD, graphqlData as aE, interpolate as aF, interpolateUrl as aG, isCallbackSource as aH, isSafeUrl as aI, loadDocument as aJ, mergeConnections as aK, migrateDocument as aL, parse as aM, parseDuration as aN, placeholders as aO, plantDate as aP, plantDayStart as aQ, resolve as aR, resolveBaseUrl as aS, resolveRequest as aT, safeLink as aU, satisfies as aV, scope as aW, templateReferences as aX, translator as aY, validateDocument as aZ, Grid as a_, type Reference as aa, Requires as ab, SCHEMA_URL as ac, type Severity as ad, Spec as ae, Template as af, TokenSource as ag, TransformError as ah, type TransformOptions as ai, TransformStep as aj, type Translations as ak, VARIABLE_KINDS as al, type ValidateOptions as am, type ValidationResult as an, Variable as ao, type WidgetCheck as ap, type WidgetMigrations as aq, type WidgetStore as ar, applyTransform as as, buildRequestUrl as at, buildUrl as au, builtInWidgetChecks as av, collectReferences as aw, compile as ax, createHelpers as ay, createHttpClient as az, type SlotDefinition as b, type SlotRenderOptions as c, type WidgetMeta as d, type WidgetProps as e, ACTION_KINDS as f, ACTION_SCHEMAS as g, API_VERSION as h, Action as i, ActionRef as j, Auth as k, BUILT_IN_DATASOURCE_TYPES as l, Connection as m, type ConnectionSpec as n, DATE_PRESETS as o, type DashboardInput as p, DataBinding as q, DataError as r, type DataErrorCode as s, Datasource as t, type DateRange as u, Display as v, Drill as w, Duration as x, EventHandler as y, EventMap as z };
7675
+ export { Modal as $, type AnyWidgetDefinition as A, BREAKPOINTS as B, Callback as C, Dashboard as D, type Emit as E, Expression as F, ExpressionError as G, type HttpClient as H, FnProp as I, JsonValue as J, Handler as K, type HelperSettings as L, type Helpers as M, type NetworkOptions as N, type HttpClientInternals as O, Id as P, Layout as Q, type ResolvedRequest as R, type Scope as S, type TreeState as T, LayoutItem as U, type LoadOptions as V, type WidgetDefinition as W, type LoadResult as X, Metadata as Y, type MigrateResult as Z, MigrationError as _, type TimeSettings as a, Grid as a$, NamedAction as a0, type Node as a1, Panel as a2, PanelControl as a3, type PanelMigration as a4, type PanelState as a5, type Problem as a6, RENDERER_VERSION as a7, RESERVED_STATE_KEYS as a8, type RefRoot as a9, dashboardJsonSchema as aA, evaluate as aB, evaluateSafe as aC, expressionReferences as aD, graphqlData as aE, interpolate as aF, interpolateUrl as aG, isCallbackSource as aH, isSafeUrl as aI, loadDocument as aJ, mergeConnections as aK, migrateDocument as aL, parse as aM, parseDuration as aN, placeholders as aO, plantDate as aP, plantDayStart as aQ, resolve as aR, resolveBaseUrl as aS, resolveRequest as aT, safeLink as aU, satisfies as aV, scope as aW, stripStrings as aX, templateReferences as aY, translator as aZ, validateDocument as a_, type Reference as aa, Requires as ab, SCHEMA_URL as ac, type Severity as ad, Spec as ae, Template as af, TokenSource as ag, TransformError as ah, type TransformOptions as ai, TransformStep as aj, type Translations as ak, VARIABLE_KINDS as al, type ValidateOptions as am, type ValidationResult as an, Variable as ao, type WidgetCheck as ap, type WidgetMigrations as aq, type WidgetStore as ar, applyTransform as as, buildRequestUrl as at, buildUrl as au, builtInWidgetChecks as av, collectReferences as aw, compile as ax, createHelpers as ay, createHttpClient as az, type SlotDefinition as b, StatusTone as b0, type SlotRenderOptions as c, type WidgetMeta as d, type WidgetProps as e, ACTION_KINDS as f, ACTION_SCHEMAS as g, API_VERSION as h, Action as i, ActionRef as j, Auth as k, BUILT_IN_DATASOURCE_TYPES as l, Connection as m, type ConnectionSpec as n, DATE_PRESETS as o, type DashboardInput as p, DataBinding as q, DataError as r, type DataErrorCode as s, Datasource as t, type DateRange as u, Display as v, Drill as w, Duration as x, EventHandler as y, EventMap as z };
package/dist/core.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, D as Dashboard, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, a_ as Grid, K as Handler, L as HelperSettings, M as Helpers, H as HttpClient, O as HttpClientInternals, P as Id, J as JsonValue, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, N as NetworkOptions, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, R as ResolvedRequest, ac as SCHEMA_URL, S as Scope, ad as Severity, ae as Spec, a$ as StatusTone, af as Template, a as TimeSettings, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as templateReferences, aY as translator, aZ as validateDocument } from './core-CIcJ1KNt.js';
1
+ export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, D as Dashboard, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, a$ as Grid, K as Handler, L as HelperSettings, M as Helpers, H as HttpClient, O as HttpClientInternals, P as Id, J as JsonValue, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, N as NetworkOptions, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, R as ResolvedRequest, ac as SCHEMA_URL, S as Scope, ad as Severity, ae as Spec, b0 as StatusTone, af as Template, a as TimeSettings, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-DIU9lTws.js';
2
2
  import 'zod';
3
3
  import 'react';
package/dist/core.js CHANGED
@@ -77,10 +77,11 @@ import {
77
77
  safeLink,
78
78
  satisfies,
79
79
  scope,
80
+ stripStrings,
80
81
  templateReferences,
81
82
  translator,
82
83
  validateDocument
83
- } from "./chunk-T4QLZXX4.js";
84
+ } from "./chunk-2HHYJ5WX.js";
84
85
  export {
85
86
  ACTION_KINDS,
86
87
  ACTION_SCHEMAS,
@@ -160,6 +161,7 @@ export {
160
161
  safeLink,
161
162
  satisfies,
162
163
  scope,
164
+ stripStrings,
163
165
  templateReferences,
164
166
  translator,
165
167
  validateDocument