@qrvey/widget-configurability 0.0.0-beta.4657 → 0.0.0-beta.4684

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.
@@ -32,10 +32,26 @@ var __objRest = (source, exclude) => {
32
32
  };
33
33
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
34
34
 
35
+ // src/metadata/labels/chart-panel.defaults.ts
36
+ var CHART_PANEL_DEFAULTS = {
37
+ menuLayout: {
38
+ type: "string",
39
+ values: [
40
+ "header",
41
+ "floating"
42
+ ],
43
+ description: "Define the type of menu displayed in the charts",
44
+ since: "9.4",
45
+ notes: "If the user wants to replicate the hidden options, they need to use the remove attribute."
46
+ }
47
+ };
48
+
35
49
  // src/metadata/labels/chart-panel.labels.ts
36
50
  var CHART_PANEL_LABELS = {
37
51
  header: {
38
- label: "Chart header"
52
+ label: "Chart header",
53
+ description: "The entire header for the panel",
54
+ since: "9.0"
39
55
  },
40
56
  floatingMenu: {
41
57
  label: "Floating menu"
@@ -50,222 +66,1288 @@ var CHART_PANEL_LABELS = {
50
66
  label: "Chart actions"
51
67
  },
52
68
  optionMenu: {
53
- label: "Chart options menu"
69
+ label: "Chart options menu",
70
+ description: "The three dot button",
71
+ since: "9.0"
54
72
  },
55
73
  optionDateGrouping: {
56
- label: "Date grouping options"
74
+ label: "Date grouping options",
75
+ description: "The column date grouping section in column settings",
76
+ since: "9.0"
77
+ },
78
+ "floatingMenu.optionDateGrouping": {
79
+ label: "Date grouping options",
80
+ description: "The column date grouping section in column settings",
81
+ since: "9.4"
57
82
  },
58
83
  dashFilterScope: {
59
- label: "Dashboard filters"
84
+ label: "Dashboard filters",
85
+ description: "Filters that apply to the entire dashboard",
86
+ since: "9.3"
87
+ },
88
+ "floatingMenu.qFilter.dashFilterScope": {
89
+ label: "Dashboard filters",
90
+ description: "Filters that apply to the entire dashboard",
91
+ since: "9.4"
60
92
  },
61
93
  tabFilterScope: {
62
- label: "Tab filters"
94
+ label: "Tab filters",
95
+ description: "Filters that apply to the current tab",
96
+ since: "9.3"
97
+ },
98
+ "floatingMenu.qFilter.tabFilterScope": {
99
+ label: "Tab filters",
100
+ description: "Filters that apply to the current tab",
101
+ since: "9.4"
63
102
  },
64
103
  panelFilterScope: {
65
- label: "Panel filters"
104
+ label: "Panel filters",
105
+ description: "Filters that apply to the selected panel",
106
+ since: "9.3"
107
+ },
108
+ "floatingMenu.qFilter.panelFilterScope": {
109
+ label: "Panel filters",
110
+ description: "Filters that apply to the selected panel",
111
+ since: "9.4"
66
112
  },
67
113
  qChartName: {
68
- label: "Chart name"
114
+ label: "Chart name",
115
+ description: "The title of the panel",
116
+ since: "9.0"
69
117
  },
70
118
  qFitPanel: {
71
- label: "Fit to panel"
119
+ label: "Fit to panel",
120
+ description: "The fit-to-panel button",
121
+ since: "9.0"
122
+ },
123
+ "floatingMenu.qFitPanel": {
124
+ label: "Fit to panel",
125
+ description: "The fit-to-panel button",
126
+ since: "9.4"
72
127
  },
73
128
  qChartSelection: {
74
- label: "Chart type selection"
129
+ label: "Chart type selection",
130
+ description: "The chart selection button",
131
+ since: "9.0"
132
+ },
133
+ "floatingMenu.qChartSelection": {
134
+ label: "Chart type selection",
135
+ description: "The chart selection button",
136
+ since: "9.4"
75
137
  },
76
138
  qColumnSection: {
77
- label: "Column section"
139
+ label: "Column section",
140
+ description: "Add/Remove sections in expandable table",
141
+ since: "9.3"
142
+ },
143
+ "floatingMenu.qColumnSection": {
144
+ label: "Column section",
145
+ description: "Add/Remove sections in expandable table",
146
+ since: "9.4"
78
147
  },
79
148
  qSorting: {
80
- label: "Sorting"
149
+ label: "Sorting",
150
+ description: "The sorting button",
151
+ since: "9.0"
152
+ },
153
+ "floatingMenu.qSorting": {
154
+ label: "Sorting",
155
+ description: "The sorting button",
156
+ since: "9.4"
81
157
  },
82
158
  qColumnReplacement: {
83
- label: "Column replacement"
159
+ label: "Column replacement",
160
+ description: "The column replacement section in column settings",
161
+ since: "9.0"
162
+ },
163
+ "floatingMenu.qColumnReplacement": {
164
+ label: "Column replacement",
165
+ description: "The column replacement section in column settings",
166
+ since: "9.4"
84
167
  },
85
168
  qColumnAggregation: {
86
- label: "Column aggregation"
169
+ label: "Column aggregation",
170
+ description: "The column aggregation section in column settings",
171
+ since: "9.0"
172
+ },
173
+ "floatingMenu.qColumnAggregation": {
174
+ label: "Column aggregation",
175
+ description: "The column aggregation section in column settings",
176
+ since: "9.4"
87
177
  },
88
178
  qColumnGrouping: {
89
- label: "Column grouping"
179
+ label: "Column grouping",
180
+ description: "Add/remove groups in a simple or grouped table.",
181
+ since: "9.3"
182
+ },
183
+ "floatingMenu.qColumnGrouping": {
184
+ label: "Column grouping",
185
+ description: "Add/remove groups in a simple or grouped table.",
186
+ since: "9.4"
90
187
  },
91
188
  qDateGrouping: {
92
189
  label: "Date grouping"
93
190
  },
94
191
  qColumnSelection: {
95
- label: "Column selection"
192
+ label: "Column selection",
193
+ description: "Add/Remove columns in table charts",
194
+ since: "9.3"
195
+ },
196
+ "floatingMenu.qColumnSelection": {
197
+ label: "Column selection",
198
+ description: "Add/Remove columns in table charts",
199
+ since: "9.4"
96
200
  },
97
201
  qResetColumnsWidth: {
98
- label: "Reset column widths"
202
+ label: "Reset column widths",
203
+ description: 'Option to reset column width in tables when an-panel menu is "Header" mode',
204
+ since: "9.5"
205
+ },
206
+ "floatingMenu.qResetColumnsWidth": {
207
+ label: "Reset column widths",
208
+ description: 'Option to reset column width in tables when an-panel menu is "Floating" mode',
209
+ since: "9.5"
99
210
  },
100
211
  qSmartAnalyzer: {
101
- label: "Smart analyzer"
212
+ label: "Smart analyzer",
213
+ description: "Keep or remove the smart analyzer icon",
214
+ since: "9.5"
215
+ },
216
+ "floatingMenu.qSmartAnalyzer": {
217
+ label: "Smart analyzer",
218
+ description: "Keep or remove the smart analyzer icon",
219
+ since: "9.4"
102
220
  },
103
221
  qEditChart: {
104
- label: "Edit chart"
222
+ label: "Edit chart",
223
+ description: "The edit option inside the three dot button",
224
+ since: "9.0"
225
+ },
226
+ "floatingMenu.qEditChart": {
227
+ label: "Edit chart",
228
+ description: "The edit option inside the three dot button",
229
+ since: "9.4"
105
230
  },
106
231
  qDuplicateChart: {
107
- label: "Duplicate chart"
232
+ label: "Duplicate chart",
233
+ description: "The duplicate option inside the three dot button",
234
+ since: "9.0"
235
+ },
236
+ "floatingMenu.qDuplicateChart": {
237
+ label: "Duplicate chart",
238
+ description: "The duplicate option inside the three dot button",
239
+ since: "9.4"
108
240
  },
109
241
  qDownloadChart: {
110
- label: "Download"
242
+ label: "Download",
243
+ description: "The download group inside the three dot button",
244
+ since: "9.0"
245
+ },
246
+ "floatingMenu.qDownloadChart": {
247
+ label: "Download",
248
+ description: "The download group inside the three dot button",
249
+ since: "9.4"
111
250
  },
112
251
  qChartJPG: {
113
- label: "JPG"
252
+ label: "JPG",
253
+ description: "The JPG format in the download group",
254
+ since: "9.0"
255
+ },
256
+ "floatingMenu.qDownloadChart.qChartJPG": {
257
+ label: "JPG",
258
+ description: "The JPG format in the download group",
259
+ since: "9.4"
114
260
  },
115
261
  qChartPDF: {
116
- label: "PDF"
262
+ label: "PDF",
263
+ description: "The PDF format in the download group",
264
+ since: "9.0"
265
+ },
266
+ "floatingMenu.qDownloadChart.qChartPDF": {
267
+ label: "PDF",
268
+ description: "The PDF format in the download group",
269
+ since: "9.4"
117
270
  },
118
271
  qChartCSV: {
119
- label: "CSV"
272
+ label: "CSV",
273
+ description: "The CSV format in the download group",
274
+ since: "9.0"
275
+ },
276
+ "floatingMenu.qDownloadChart.qChartCSV": {
277
+ label: "CSV",
278
+ description: "The CSV format in the download group",
279
+ since: "9.4"
120
280
  },
121
281
  qChartSummary: {
122
- label: "Summary"
282
+ label: "Summary",
283
+ description: "The CSV with summaries format in the download group",
284
+ since: "9.0"
285
+ },
286
+ "floatingMenu.qDownloadChart.qChartSummary": {
287
+ label: "Summary",
288
+ description: "The CSV with summaries format in the download group",
289
+ since: "9.4"
123
290
  },
124
291
  qChartExcel: {
125
- label: "Excel"
292
+ label: "Excel",
293
+ description: "The Excel format in the download group",
294
+ since: "9.0"
295
+ },
296
+ "floatingMenu.qDownloadChart.qChartExcel": {
297
+ label: "Excel",
298
+ description: "The Excel format in the download group",
299
+ since: "9.4"
126
300
  },
127
301
  qFilter: {
128
- label: "Filters"
302
+ label: "Filters",
303
+ description: "The filter and the options for filtering",
304
+ since: "9.0"
305
+ },
306
+ "floatingMenu.qFilter": {
307
+ label: "Filters",
308
+ description: "The filter and the options for filtering",
309
+ since: "9.4"
129
310
  },
130
311
  qAddFilter: {
131
- label: "Add filter"
312
+ label: "Add filter",
313
+ description: "Option to add a new filter",
314
+ since: "9.3"
315
+ },
316
+ "floatingMenu.qFilter.qAddFilter": {
317
+ label: "Add filter",
318
+ description: "Option to add a new filter",
319
+ since: "9.4"
132
320
  },
133
321
  qEditFilter: {
134
- label: "Edit filter"
322
+ label: "Edit filter",
323
+ description: "Option to edit a dashboard-level filter",
324
+ since: "9.3"
325
+ },
326
+ "header.qFilter.tabFilterScope.qEditFilter": {
327
+ label: "Edit filter",
328
+ description: "Option to edit a tab-level filter",
329
+ since: "9.3"
330
+ },
331
+ "header.qFilter.panelFilterScope.qEditFilter": {
332
+ label: "Edit filter",
333
+ description: "Option to edit a panel-level filter",
334
+ since: "9.3"
335
+ },
336
+ "floatingMenu.qFilter.dashFilterScope.qEditFilter": {
337
+ label: "Edit filter",
338
+ description: "Option to edit a dashboard-level filter",
339
+ since: "9.4"
340
+ },
341
+ "floatingMenu.qFilter.tabFilterScope.qEditFilter": {
342
+ label: "Edit filter",
343
+ description: "Option to edit a tab-level filter",
344
+ since: "9.4"
345
+ },
346
+ "floatingMenu.qFilter.panelFilterScope.qEditFilter": {
347
+ label: "Edit filter",
348
+ description: "Option to edit a panel-level filter",
349
+ since: "9.4"
135
350
  },
136
351
  qDeleteFilter: {
137
- label: "Delete filter"
352
+ label: "Delete filter",
353
+ description: "Option to delete a dashboard-level filter",
354
+ since: "9.3"
355
+ },
356
+ "header.qFilter.tabFilterScope.qDeleteFilter": {
357
+ label: "Delete filter",
358
+ description: "Option to delete a tab-level filter",
359
+ since: "9.3"
360
+ },
361
+ "header.qFilter.panelFilterScope.qDeleteFilter": {
362
+ label: "Delete filter",
363
+ description: "Option to delete a panel-level filter",
364
+ since: "9.3"
365
+ },
366
+ "floatingMenu.qFilter.dashFilterScope.qDeleteFilter": {
367
+ label: "Delete filter",
368
+ description: "Option to delete a dashboard-level filter",
369
+ since: "9.4"
370
+ },
371
+ "floatingMenu.qFilter.tabFilterScope.qDeleteFilter": {
372
+ label: "Delete filter",
373
+ description: "Option to delete a tab-level filter",
374
+ since: "9.4"
375
+ },
376
+ "floatingMenu.qFilter.panelFilterScope.qDeleteFilter": {
377
+ label: "Delete filter",
378
+ description: "Option to delete a panel-level filter",
379
+ since: "9.4"
138
380
  },
139
381
  qYear: {
140
- label: "Year"
382
+ label: "Year",
383
+ description: "The option for (Year) in the date grouping dropdown",
384
+ since: "9.0"
385
+ },
386
+ "floatingMenu.optionDateGrouping.qYear": {
387
+ label: "Year",
388
+ description: "The option for (Year) in the date grouping dropdown",
389
+ since: "9.4"
141
390
  },
142
391
  qQuarter: {
143
- label: "Quarter"
392
+ label: "Quarter",
393
+ description: "The option for (Quarter, Year) in the date grouping dropdown",
394
+ since: "9.0"
395
+ },
396
+ "floatingMenu.optionDateGrouping.qQuarter": {
397
+ label: "Quarter",
398
+ description: "The option for (Quarter, Year) in the date grouping dropdown",
399
+ since: "9.4"
144
400
  },
145
401
  qQuarterOnly: {
146
- label: "Quarter only"
402
+ label: "Quarter only",
403
+ description: "The option for (Quarter) in the date grouping dropdown",
404
+ since: "9.0"
405
+ },
406
+ "floatingMenu.optionDateGrouping.qQuarterOnly": {
407
+ label: "Quarter only",
408
+ description: "The option for (Quarter) in the date grouping dropdown",
409
+ since: "9.4"
147
410
  },
148
411
  qMonth: {
149
- label: "Month"
412
+ label: "Month",
413
+ description: "The option for (Month, Year) in the date grouping dropdown",
414
+ since: "9.0"
415
+ },
416
+ "floatingMenu.optionDateGrouping.qMonth": {
417
+ label: "Month",
418
+ description: "The option for (Month, Year) in the date grouping dropdown",
419
+ since: "9.4"
150
420
  },
151
421
  qMonthOnly: {
152
- label: "Month only"
422
+ label: "Month only",
423
+ description: "The option for (Month) in the date grouping dropdown",
424
+ since: "9.0"
425
+ },
426
+ "floatingMenu.optionDateGrouping.qMonthOnly": {
427
+ label: "Month only",
428
+ description: "The option for (Month) in the date grouping dropdown",
429
+ since: "9.4"
153
430
  },
154
431
  qWeek: {
155
- label: "Week"
432
+ label: "Week",
433
+ description: "The option for (Week, Year) in the date grouping dropdown",
434
+ since: "9.0"
435
+ },
436
+ "floatingMenu.optionDateGrouping.qWeek": {
437
+ label: "Week",
438
+ description: "The option for (Week, Year) in the date grouping dropdown",
439
+ since: "9.4"
156
440
  },
157
441
  qDay: {
158
- label: "Day"
442
+ label: "Day",
443
+ description: "The option for (Full Date) in the date grouping dropdown",
444
+ since: "9.0"
445
+ },
446
+ "floatingMenu.optionDateGrouping.qDay": {
447
+ label: "Day",
448
+ description: "The option for (Full Date) in the date grouping dropdown",
449
+ since: "9.4"
159
450
  },
160
451
  qDayOnly: {
161
- label: "Day only"
452
+ label: "Day only",
453
+ description: "The option for (Day Month) in the date grouping dropdown",
454
+ since: "9.0"
455
+ },
456
+ "floatingMenu.optionDateGrouping.qDayOnly": {
457
+ label: "Day only",
458
+ description: "The option for (Day Month) in the date grouping dropdown",
459
+ since: "9.4"
162
460
  },
163
461
  qHour: {
164
- label: "Hour"
462
+ label: "Hour",
463
+ description: "The option for (Date, Hour) in the date grouping dropdown",
464
+ since: "9.0"
465
+ },
466
+ "floatingMenu.optionDateGrouping.qHour": {
467
+ label: "Hour",
468
+ description: "The option for (Date, Hour) in the date grouping dropdown",
469
+ since: "9.4"
165
470
  },
166
471
  qHourOnly: {
167
- label: "Hour only"
472
+ label: "Hour only",
473
+ description: "The option for (Hour) in the date grouping dropdown",
474
+ since: "9.0"
475
+ },
476
+ "floatingMenu.optionDateGrouping.qHourOnly": {
477
+ label: "Hour only",
478
+ description: "The option for (Hour) in the date grouping dropdown",
479
+ since: "9.4"
168
480
  },
169
481
  qMinute: {
170
- label: "Minute"
482
+ label: "Minute",
483
+ description: "The option for (Date, Minute) in the date grouping dropdown",
484
+ since: "9.0"
485
+ },
486
+ "floatingMenu.optionDateGrouping.qMinute": {
487
+ label: "Minute",
488
+ description: "The option for (Date, Minute) in the date grouping dropdown",
489
+ since: "9.4"
171
490
  },
172
491
  qMinuteOnly: {
173
- label: "Minute only"
492
+ label: "Minute only",
493
+ description: "The option for (Minute) in the date grouping dropdown",
494
+ since: "9.0"
495
+ },
496
+ "floatingMenu.optionDateGrouping.qMinuteOnly": {
497
+ label: "Minute only",
498
+ description: "The option for (Minute) in the date grouping dropdown",
499
+ since: "9.4"
174
500
  },
175
501
  qSecond: {
176
- label: "Second"
502
+ label: "Second",
503
+ description: "The option for (Date, Second) in the date grouping dropdown",
504
+ since: "9.0"
505
+ },
506
+ "floatingMenu.optionDateGrouping.qSecond": {
507
+ label: "Second",
508
+ description: "The option for (Date, Second) in the date grouping dropdown",
509
+ since: "9.4"
177
510
  },
178
511
  qSecondOnly: {
179
- label: "Second only"
512
+ label: "Second only",
513
+ description: "The option for (Second) in the date grouping dropdown",
514
+ since: "9.0"
515
+ },
516
+ "floatingMenu.optionDateGrouping.qSecondOnly": {
517
+ label: "Second only",
518
+ description: "The option for (Second) in the date grouping dropdown",
519
+ since: "9.4"
180
520
  },
181
521
  qComparativeAnalysis: {
182
522
  label: "Comparative analysis"
183
523
  }
184
524
  };
185
525
 
526
+ // src/metadata/labels/dashboard.defaults.ts
527
+ var COLOR = "Color names or hex, e.g. '#000000', 'green', 'GREEN'";
528
+ var IMAGE_URL = "Valid image url";
529
+ var COLUMNS_EXAMPLE = '[{ "columnId": "xxxxx", "datasetId": "datasetxxx" }]';
530
+ var GROUPINGS_EXAMPLE = '["day","month","quarter","week","year","quarter_only","month_only","day_only"]';
531
+ var ANY_TEXT = /* @__PURE__ */ __name((example) => `Any text string, e.g. "${example}"`, "ANY_TEXT");
532
+ var COLUMN_NOTE = "To apply this default, you need to select a column using the \u201Ccolumns\u201D field. If no column is selected through customization, the default will be loaded based on the column\u2019s data type.";
533
+ var FONT_FAMILIES = [
534
+ "Roboto, sans-serif",
535
+ "Georgia, serif",
536
+ "Palatino Linotype, Book Antiqua, Palatino, serif",
537
+ "Times New Roman, Times, serif",
538
+ "Arial, Helvetica, sans-serif",
539
+ "Arial Black, Gadget, sans-serif",
540
+ "Comic Sans MS, cursive, sans-serif",
541
+ "Impact, Charcoal, sans-serif",
542
+ "Lucida Sans Unicode, Lucida Grande, sans-serif",
543
+ "Tahoma, Geneva, sans-serif",
544
+ "Trebuchet MS, Helvetica, sans-serif",
545
+ "Verdana, Geneva, sans-serif",
546
+ "Courier New, Courier, monospace",
547
+ "Lucida Console, Monaco, monospace"
548
+ ];
549
+ var FONT_SIZES = [
550
+ 8,
551
+ 9,
552
+ 10,
553
+ 11,
554
+ 12,
555
+ 14,
556
+ 15,
557
+ 16,
558
+ 18,
559
+ 24,
560
+ 30,
561
+ 36,
562
+ 48,
563
+ 60,
564
+ 72,
565
+ 96
566
+ ];
567
+ var px = /* @__PURE__ */ __name((sizes) => sizes.map((size) => `${size}px`), "px");
568
+ var BORDER_WIDTHS = px(Array.from({
569
+ length: 20
570
+ }, (_, index) => index + 1));
571
+ var ASPECTS = [
572
+ "contain",
573
+ "cover",
574
+ "fill"
575
+ ];
576
+ var TRIGGERS = [
577
+ "BUTTON",
578
+ "AUTOMATIC"
579
+ ];
580
+ var color = /* @__PURE__ */ __name((description, since = "9.0") => __spreadValues({
581
+ type: "string",
582
+ example: COLOR,
583
+ description
584
+ }, since && {
585
+ since
586
+ }), "color");
587
+ var fonts = /* @__PURE__ */ __name((description) => ({
588
+ type: "string",
589
+ values: FONT_FAMILIES,
590
+ description,
591
+ since: "9.0"
592
+ }), "fonts");
593
+ var filterControl = /* @__PURE__ */ __name((prefix) => ({
594
+ [`${prefix}.columns`]: {
595
+ type: "Array",
596
+ example: COLUMNS_EXAMPLE,
597
+ description: "An array of columns where the filter will be applied.",
598
+ since: "9.0"
599
+ },
600
+ [`${prefix}.defaultGrouping`]: {
601
+ type: "string",
602
+ example: "A grouping, e.g. 'day', 'month', 'year'",
603
+ description: `Date grouping selected by the user in interaction mode. Note: ${COLUMN_NOTE} You also have to select a list of valid groupings.`,
604
+ since: "9.0"
605
+ },
606
+ [`${prefix}.groupings`]: {
607
+ type: "Array",
608
+ example: GROUPINGS_EXAMPLE,
609
+ description: `Date grouping list. Note: ${COLUMN_NOTE}`,
610
+ since: "9.0"
611
+ }
612
+ }), "filterControl");
613
+ var notIncluded = /* @__PURE__ */ __name((type, description, extra = {}) => __spreadProps(__spreadValues(__spreadValues({
614
+ type
615
+ }, description && {
616
+ description
617
+ }), extra), {
618
+ notes: "Not included yet",
619
+ audience: "internal"
620
+ }), "notIncluded");
621
+ var DASHBOARD_DEFAULTS = __spreadProps(__spreadValues(__spreadProps(__spreadValues({
622
+ // View list
623
+ assetListViewMode: {
624
+ type: "string",
625
+ values: [
626
+ "card",
627
+ "table"
628
+ ],
629
+ description: "Defines the default view mode for the asset list",
630
+ since: "9.0",
631
+ notes: "If the user switches the view, this will be saved in the local storage"
632
+ },
633
+ // View endUser
634
+ dragElement: {
635
+ type: "boolean",
636
+ description: "Defines whether elements are draggable by default",
637
+ since: "9.2.PR.3",
638
+ notes: "These variables were added in https://qrveydev.atlassian.net/browse/RB-6924"
639
+ },
640
+ resizeElement: {
641
+ type: "boolean",
642
+ description: "Defines whether elements are resizable by default",
643
+ since: "9.2.PR.3",
644
+ notes: "These variables were added in https://qrveydev.atlassian.net/browse/RB-6924"
645
+ },
646
+ removeElement: {
647
+ type: "boolean",
648
+ description: "Defines whether elements can be removed by default",
649
+ since: "9.2.PR.3",
650
+ notes: "These variables were added in https://qrveydev.atlassian.net/browse/RB-6924"
651
+ },
652
+ changeLayout: {
653
+ type: "boolean",
654
+ description: "Defines whether elements can be removed, draggable and resizable by default",
655
+ since: "9.3",
656
+ notes: "This variable was added in https://qrveydev.atlassian.net/browse/RB-7903"
657
+ },
658
+ unsavedChangesBehavior: {
659
+ type: "string",
660
+ values: [
661
+ "prompt",
662
+ "discard",
663
+ "autoSave"
664
+ ],
665
+ description: "Defines whether unsaved personalization changes are saved, discarded, or prompted by default",
666
+ since: "9.4",
667
+ notes: "This variable was added in https://qrveydev.atlassian.net/browse/RB-8434"
668
+ },
669
+ // Item type textBox
670
+ "customStyles.text.alignText": {
671
+ type: "string",
672
+ values: [
673
+ "left",
674
+ "center",
675
+ "right",
676
+ "justify"
677
+ ],
678
+ description: "Default align text for the text element",
679
+ since: "9.0"
680
+ },
681
+ "customStyles.text.backgroundColor": color("Default background color"),
682
+ "customStyles.text.borderColor": color("Default border color for the text element"),
683
+ "customStyles.text.borderStyle": {
684
+ type: "string",
685
+ values: [
686
+ "solid",
687
+ "dotted",
688
+ "dashed",
689
+ "double"
690
+ ],
691
+ since: "9.0"
692
+ },
693
+ "customStyles.text.borderWidth": {
694
+ type: "string",
695
+ values: BORDER_WIDTHS,
696
+ description: "Default border width",
697
+ since: "9.0"
698
+ },
699
+ "customStyles.text.fontColor": color("Default font color for the text element"),
700
+ "customStyles.text.fontFamily": fonts("Default font for the text element"),
701
+ "customStyles.text.fontSize": {
702
+ type: "string",
703
+ values: px(FONT_SIZES),
704
+ description: "Default font size for the text element",
705
+ since: "9.0"
706
+ },
707
+ "customStyles.text.fontStyle": {
708
+ type: "boolean",
709
+ description: "Default font style for the text element (italic styling)",
710
+ since: "9.0"
711
+ },
712
+ "customStyles.text.fontWeight": {
713
+ type: "boolean",
714
+ description: "Default font weight for the text element (bold styling)",
715
+ since: "9.0"
716
+ },
717
+ "customStyles.text.paddingBottom": {
718
+ type: "number",
719
+ description: "Default padding bottom for the text element",
720
+ since: "9.0"
721
+ },
722
+ "customStyles.text.paddingLeft": {
723
+ type: "number",
724
+ description: "Default padding left for the text element",
725
+ since: "9.0"
726
+ },
727
+ "customStyles.text.paddingRight": {
728
+ type: "number",
729
+ description: "Default padding right for the text element",
730
+ since: "9.0"
731
+ },
732
+ "customStyles.text.paddingTop": {
733
+ type: "number",
734
+ description: "Default padding top for the text element",
735
+ since: "9.0"
736
+ },
737
+ "customStyles.text.strike": {
738
+ type: "boolean",
739
+ description: "Default strike for the text element",
740
+ since: "9.0"
741
+ },
742
+ "customStyles.text.underline": {
743
+ type: "boolean",
744
+ description: "Default underline for the text element",
745
+ since: "9.0"
746
+ },
747
+ // Item type image
748
+ "customStyles.image.aspect": {
749
+ type: "string",
750
+ values: ASPECTS,
751
+ description: "Default aspect for image",
752
+ since: "9.0"
753
+ },
754
+ "customStyles.image.image": {
755
+ type: "string",
756
+ example: IMAGE_URL,
757
+ description: "Image for the item."
758
+ },
759
+ // Item type button
760
+ "customStyles.button.background": color("Button background color"),
761
+ "customStyles.button.color": color("Button font color"),
762
+ "customStyles.button.fontFamily": fonts("Button font family"),
763
+ "customStyles.button.fontSize": {
764
+ type: "string",
765
+ description: "Button font size",
766
+ since: "9.0",
767
+ notes: "With another value, the closest possible option will be selected"
768
+ },
769
+ "customStyles.button.label": {
770
+ type: "string",
771
+ description: "Text for the element",
772
+ since: "9.0"
773
+ },
774
+ "customStyles.button.url": {
775
+ type: "string",
776
+ example: "Valid url",
777
+ description: "Url for the button click event",
778
+ since: "9.0"
779
+ },
780
+ // Item type header
781
+ "customStyles.header.layoutWidth": {
782
+ type: "string",
783
+ values: [
784
+ "screen",
785
+ "canvas"
786
+ ],
787
+ description: "Width of the header",
788
+ since: "9.0"
789
+ },
790
+ "customStyles.header.backgroundColor": color("Background color for the header"),
791
+ "customStyles.header.height": {
792
+ type: "number",
793
+ description: "Default header size",
794
+ since: "9.0",
795
+ notes: "Value should be between 10 and 300"
796
+ },
797
+ "customStyles.header.backgroundImageConfig.aspect": {
798
+ type: "string",
799
+ values: ASPECTS,
800
+ description: "Default aspect for header background image",
801
+ since: "9.0"
802
+ },
803
+ "customStyles.header.backgroundImageConfig.image": {
804
+ type: "string",
805
+ example: IMAGE_URL,
806
+ description: "Background image for the header.",
807
+ since: "9.0"
808
+ },
809
+ // Item type container
810
+ "customStyles.container.backgroundAspect": {
811
+ type: "string",
812
+ values: ASPECTS,
813
+ description: "Sets the size of the element's background image",
814
+ since: "9.0"
815
+ },
816
+ "customStyles.container.backgroundColor": color("The background color of the container"),
817
+ "customStyles.container.borderColor": color("The border color of the container"),
818
+ "customStyles.container.borderRadius": {
819
+ type: "number",
820
+ description: "The number to round the corners of the container outer border edges",
821
+ since: "9.0"
822
+ },
823
+ "customStyles.container.borderStyle": {
824
+ type: "string",
825
+ values: [
826
+ "none",
827
+ "solid",
828
+ "dotted"
829
+ ],
830
+ description: "The style to visualize the border",
831
+ since: "9.0"
832
+ },
833
+ "customStyles.container.borderWidth": {
834
+ type: "number",
835
+ description: "The width number of the border style",
836
+ since: "9.0"
837
+ },
838
+ "customStyles.container.backgroundImageURL": {
839
+ type: "string",
840
+ example: IMAGE_URL,
841
+ description: "Background image for the container.",
842
+ since: "9.0"
843
+ },
844
+ // Item type tab
845
+ "customStyles.tab.backgroundColor": color("Tabs indicator color"),
846
+ "customStyles.tab.border": color("Tabs' border color"),
847
+ "customStyles.tab.fontColor": color("Tabs font color"),
848
+ "customStyles.tab.fontSize": {
849
+ type: "string",
850
+ values: px(FONT_SIZES.filter((size) => size <= 30)),
851
+ description: "Tabs font size",
852
+ since: "9.0",
853
+ notes: "With another value, the closest possible option will be selected"
854
+ },
855
+ "customStyles.tab.fontType": fonts("Tabs font type"),
856
+ "customStyles.tab.generalSize": {
857
+ type: "number",
858
+ description: "Default size for tabs",
859
+ since: "9.0"
860
+ },
861
+ "customStyles.tab.name": {
862
+ type: "string",
863
+ description: "Label for the name of a new tab.",
864
+ since: "9.0"
865
+ },
866
+ "customStyles.tab.selectorColor": color("Selected tab indicator color"),
867
+ "customStyles.tab.widthType": {
868
+ type: "string",
869
+ values: [
870
+ "MANUAL",
871
+ "AUTOMATIC",
872
+ "SAME_SIZE"
873
+ ],
874
+ description: "Tabs definition for width type",
875
+ since: "9.0"
876
+ },
877
+ // Item type input box
878
+ "customStyles.filterCtrlInputBox.backgroundColor": color("Background color for the Filter Control"),
879
+ "customStyles.filterCtrlInputBox.borderColor": color("Border color for the filter control"),
880
+ "customStyles.filterCtrlInputBox.buttonBackgroundColor": color("Background color of the apply filter button in the Filter Control"),
881
+ "customStyles.filterCtrlInputBox.buttonBorderColor": color("Border color of the apply filter button in the Filter Control"),
882
+ "customStyles.filterCtrlInputBox.buttonTextColor": color("Text color of the apply filter button in the Filter Control")
883
+ }, filterControl("customStyles.filterCtrlInputBox")), {
884
+ "customStyles.filterCtrlInputBox.defaultValidator": {
885
+ type: "IFilterValidator",
886
+ example: "A validator or operator, e.g. 'CONTAINS'",
887
+ description: `Default validator selected for the Filter Control. Note: ${COLUMN_NOTE} You also have to select a list of valid validators`,
888
+ since: "9.0"
889
+ },
890
+ "customStyles.filterCtrlInputBox.fontColor": color("Font color for the filter control label (title)"),
891
+ "customStyles.filterCtrlInputBox.fontFamily": fonts("List of font types for the Filter Control"),
892
+ "customStyles.filterCtrlInputBox.hint": {
893
+ type: "string",
894
+ example: "Placeholder text, any text string.",
895
+ description: "Placeholder text for the filter field.",
896
+ since: "9.0"
897
+ },
898
+ "customStyles.filterCtrlInputBox.selectorColor": color("Color of the selector checkbox"),
899
+ "customStyles.filterCtrlInputBox.title": {
900
+ type: "string",
901
+ example: ANY_TEXT("Column name"),
902
+ description: "Name definition in the filter control, which can be a column name or any text from the panel configuration.",
903
+ since: "9.0"
904
+ },
905
+ "customStyles.filterCtrlInputBox.trigger": {
906
+ type: "string",
907
+ values: TRIGGERS,
908
+ description: "Displays the Apply Filter button or operates automatically",
909
+ since: "9.0"
910
+ },
911
+ "customStyles.filterCtrlInputBox.triggerButtonLabel": {
912
+ type: "string",
913
+ example: ANY_TEXT("Filter"),
914
+ description: "Label to display text on the apply filter button",
915
+ since: "9.0"
916
+ },
917
+ "customStyles.filterCtrlInputBox.validators": {
918
+ type: "IFilterValidator[]",
919
+ example: '["EQUALS","NOT_EQUAL"]',
920
+ description: `Object for the validators/operators list. Note: ${COLUMN_NOTE}`,
921
+ since: "9.0"
922
+ },
923
+ // Item type multi-select list
924
+ "customStyles.filterCtrlMultiSelectList.backgroundColor": color("Background color for the Filter Control"),
925
+ "customStyles.filterCtrlMultiSelectList.borderColor": color("Border color for the filter control"),
926
+ "customStyles.filterCtrlMultiSelectList.buttonBackgroundColor": color("Default background color for filter buttons"),
927
+ "customStyles.filterCtrlMultiSelectList.buttonBorderColor": color("Default border color for filter buttons"),
928
+ "customStyles.filterCtrlMultiSelectList.buttonTextColor": color("Default text color for filter buttons"),
929
+ "customStyles.filterCtrlMultiSelectList.columns": {
930
+ type: "Array",
931
+ example: COLUMNS_EXAMPLE,
932
+ description: "An array of columns where the filter will be applied. Note: This default requires the fields sourceDataDataset, sourceDataDisplayColumn, and sourceDataValueColumn to be provided through customization to load the data associated.",
933
+ since: "9.0"
934
+ },
935
+ "customStyles.filterCtrlMultiSelectList.defaultValidator": {
936
+ type: "IFilterValidator",
937
+ values: [
938
+ "EQUALS",
939
+ "NOT_EQUAL"
940
+ ],
941
+ description: `Default validator/operator to load. Note: ${COLUMN_NOTE}`,
942
+ since: "9.0"
943
+ },
944
+ "customStyles.filterCtrlMultiSelectList.fontColor": color("Font color for the filter control label (title)", void 0),
945
+ "customStyles.filterCtrlMultiSelectList.fontFamily": fonts("List of font types for Filter Control"),
946
+ "customStyles.filterCtrlMultiSelectList.hint": {
947
+ type: "string",
948
+ example: "Placeholder text for the search input",
949
+ description: "Default placeholder for the search input field",
950
+ since: "9.0"
951
+ },
952
+ "customStyles.filterCtrlMultiSelectList.selectorColor": color("Default color for the selector checkbox"),
953
+ "customStyles.filterCtrlMultiSelectList.sourceDataDataset": {
954
+ type: "string",
955
+ example: "Dataset id, should be included in one of the listed inside of the columns attribute",
956
+ description: "Defines the dataset for sub-listing the columns in the sourceDataDisplayColumn attribute, and the sourceDataValueColumn attribute. Required if the columns attribute is defined",
957
+ since: "9.1"
958
+ },
959
+ "customStyles.filterCtrlMultiSelectList.sourceDataDisplayColumn": {
960
+ type: "string",
961
+ example: "Column id, should be included in one of the listed inside of the columns attribute",
962
+ description: "Defines the column with the display values for the filter control. Required if the columns attribute is defined.",
963
+ since: "9.1"
964
+ },
965
+ "customStyles.filterCtrlMultiSelectList.sourceDataValueColumn": {
966
+ type: "string",
967
+ example: "Column id, should be included in one of the listed inside of the columns attribute",
968
+ description: "Defines the column with the actual filter values for the filter control. Required if the columns attribute is defined.",
969
+ since: "9.1"
970
+ },
971
+ "customStyles.filterCtrlMultiSelectList.title": {
972
+ type: "string",
973
+ example: ANY_TEXT("Column name"),
974
+ description: "Defines the label in the filter control, which can be a column name or any text from the panel configuration.",
975
+ since: "9.0"
976
+ },
977
+ "customStyles.filterCtrlMultiSelectList.trigger": {
978
+ type: "string",
979
+ values: TRIGGERS,
980
+ description: "Shows the Apply Filter button or operates automatically",
981
+ since: "9.0"
982
+ },
983
+ "customStyles.filterCtrlMultiSelectList.triggerButtonLabel": {
984
+ type: "string",
985
+ example: ANY_TEXT("Filter"),
986
+ description: "Label to display the text on the apply filter button",
987
+ since: "9.0"
988
+ },
989
+ "customStyles.filterCtrlMultiSelectList.type": {
990
+ type: "string",
991
+ values: [
992
+ "LIST",
993
+ "DROPDOWN"
994
+ ],
995
+ description: "Groups of values: 'LIST' or 'DROPDOWN' (should be in uppercase). Other types of values are undefined",
996
+ since: "9.0"
997
+ },
998
+ "customStyles.filterCtrlMultiSelectList.validators": {
999
+ type: "IFilterValidator[]",
1000
+ example: '["EQUALS","NOT_EQUAL"]',
1001
+ description: `An array of the selected validators for the Filter control. For the multi-select list only EQUALS and NOT_EQUAL are available. Note: ${COLUMN_NOTE}`,
1002
+ since: "9.0"
1003
+ },
1004
+ // Item type date picker
1005
+ "customStyles.filterCtrlDatePicker.backgroundColor": color("Background color for the Filter Control"),
1006
+ "customStyles.filterCtrlDatePicker.borderColor": color("Border color for the filter control"),
1007
+ "customStyles.filterCtrlDatePicker.buttonBackgroundColor": color("Background color for the apply filter button"),
1008
+ "customStyles.filterCtrlDatePicker.buttonBorderColor": color("Border color for the filter button"),
1009
+ "customStyles.filterCtrlDatePicker.buttonTextColor": color("Text color for the filter button")
1010
+ }), filterControl("customStyles.filterCtrlDatePicker")), {
1011
+ "customStyles.filterCtrlDatePicker.columns": {
1012
+ type: "Array",
1013
+ example: COLUMNS_EXAMPLE,
1014
+ description: "An array of columns where the filter will be applied. The data type of the columns should be date, if not, it won't apply as a valid column",
1015
+ since: "9.0"
1016
+ },
1017
+ "customStyles.filterCtrlDatePicker.defaultValidator": {
1018
+ type: "IFilterValidator",
1019
+ example: "e.g. 'AFTER'",
1020
+ description: "Full list of validators: IFilterValidator. Only those associated to dates are valid",
1021
+ since: "9.0"
1022
+ },
1023
+ "customStyles.filterCtrlDatePicker.fontColor": color("Font color for the filter control label (title)"),
1024
+ "customStyles.filterCtrlDatePicker.fontFamily": fonts("List of font types for the filter control"),
1025
+ "customStyles.filterCtrlDatePicker.hint": {
1026
+ type: "string",
1027
+ example: "Placeholder text, any text string.",
1028
+ description: "Default placeholder",
1029
+ since: "9.0"
1030
+ },
1031
+ "customStyles.filterCtrlDatePicker.selectorColor": color("Color of the selector checkbox"),
1032
+ "customStyles.filterCtrlDatePicker.title": {
1033
+ type: "string",
1034
+ example: ANY_TEXT("Column name"),
1035
+ description: "Default name for the filter control",
1036
+ since: "9.0"
1037
+ },
1038
+ "customStyles.filterCtrlDatePicker.trigger": {
1039
+ type: "string",
1040
+ values: TRIGGERS,
1041
+ description: "Default trigger action, either with a button or automatic mode (on blur)",
1042
+ since: "9.0"
1043
+ },
1044
+ "customStyles.filterCtrlDatePicker.triggerButtonLabel": {
1045
+ type: "string",
1046
+ example: ANY_TEXT("Filter"),
1047
+ description: "Default text for the Apply Filter button",
1048
+ since: "9.0"
1049
+ },
1050
+ "customStyles.filterCtrlDatePicker.validators": {
1051
+ type: "IFilterValidator[]",
1052
+ example: '["EQUALS","AFTER"]',
1053
+ description: `Object to list the validators/operators. Note: ${COLUMN_NOTE}`,
1054
+ since: "9.0"
1055
+ },
1056
+ // Filter panel
1057
+ "filterPanel.defaultView": {
1058
+ type: "string",
1059
+ values: [
1060
+ "expanded",
1061
+ "collapsed"
1062
+ ],
1063
+ description: "Default value for collapsing or expanding the filter panel",
1064
+ since: "9.0"
1065
+ },
1066
+ "filterPanel.displayIcon": {
1067
+ type: "boolean",
1068
+ description: "Default value for the display icon option in the filter panels settings",
1069
+ since: "9.0"
1070
+ },
1071
+ "filterPanel.displayColor": {
1072
+ type: "boolean",
1073
+ description: "Default value for the display color option in the filter panels settings",
1074
+ since: "9.0"
1075
+ },
1076
+ "filterPanel.scopeDashboardColor": color("Default color for filters created under the dashboard scope when displayed inside the filter panel", "9.4"),
1077
+ "filterPanel.scopeTabColor": color("Default color for filters created under the tab scope when displayed inside the filter panel", "9.4"),
1078
+ "filterPanel.scopePanelColor": color("Default color for filters created under the panel scope when displayed inside the filter panel", "9.4"),
1079
+ "filterPanel.scopeContainerColor": color("Default color for filters created under the container scope when displayed inside the filter panel", "9.4"),
1080
+ // Item types line, rectangle and ellipse: the sheet marks them "Not included yet".
1081
+ // The sheet describes the next two colors as "Color of the selector checkbox", copied from the filter controls.
1082
+ "customStyles.line.lineColor": notIncluded("string", void 0, {
1083
+ example: COLOR
1084
+ }),
1085
+ "customStyles.line.lineWidth": notIncluded("number", "Specifies the initial width of the line", {
1086
+ example: "Range: 0-20"
1087
+ }),
1088
+ "customStyles.line.lineStyle": notIncluded("string", "Default line type to load", {
1089
+ values: [
1090
+ "solid",
1091
+ "dotted",
1092
+ "dashed",
1093
+ "double"
1094
+ ]
1095
+ }),
1096
+ "customStyles.rectangle.fillColor": notIncluded("string", "Default background color for rectangle", {
1097
+ example: COLOR
1098
+ }),
1099
+ "customStyles.rectangle.borderColor": notIncluded("string", "Border color for the rectangle", {
1100
+ example: COLOR
1101
+ }),
1102
+ "customStyles.rectangle.borderWidth": notIncluded("number", "Specifies the initial width of the border", {
1103
+ example: "Range: 0-20"
1104
+ }),
1105
+ "customStyles.rectangle.borderStyle": notIncluded("string", "Default border type to load", {
1106
+ values: [
1107
+ "none",
1108
+ "solid",
1109
+ "dotted",
1110
+ "dashed",
1111
+ "double"
1112
+ ]
1113
+ }),
1114
+ "customStyles.rectangle.roundCornerTopRight": notIncluded("number", "Defines the rounding radius for the top-right corner", {
1115
+ example: "0 - no upper limit"
1116
+ }),
1117
+ "customStyles.rectangle.roundCornerTopLeft": notIncluded("number", "Defines the rounding radius for the top-left corner", {
1118
+ example: "0 - no upper limit"
1119
+ }),
1120
+ "customStyles.rectangle.roundCornerBottomRight": notIncluded("number", "Defines the rounding radius for the bottom-right corner", {
1121
+ example: "0 - no upper limit"
1122
+ }),
1123
+ "customStyles.rectangle.roundCornerBottomLeft": notIncluded("number", "Defines the rounding radius for the bottom-left corner", {
1124
+ example: "0 - no upper limit"
1125
+ }),
1126
+ "customStyles.ellipse.borderColor": notIncluded("string", void 0, {
1127
+ example: COLOR
1128
+ }),
1129
+ "customStyles.ellipse.borderWidth": notIncluded("number", "Specifies the initial width of the border", {
1130
+ example: "Range: 0-20"
1131
+ }),
1132
+ "customStyles.ellipse.borderStyle": notIncluded("string", "Default border type to load", {
1133
+ values: [
1134
+ "solid",
1135
+ "dotted",
1136
+ "dashed",
1137
+ "double"
1138
+ ]
1139
+ }),
1140
+ "customStyles.ellipse.fillColor": notIncluded("string", "Default background color for ellipse", {
1141
+ example: COLOR
1142
+ }),
1143
+ // Additional options
1144
+ "downloadModal.exportVersion": {
1145
+ type: "string",
1146
+ values: [
1147
+ "saved",
1148
+ "unsaved"
1149
+ ],
1150
+ description: "Defines the default value to export version",
1151
+ since: "9.3",
1152
+ notes: "If the default value is set to 'unsaved', but the export modal is opened with no pending changes, the default selected option should switch to 'saved'."
1153
+ },
1154
+ "downloadModal.subscribeMyself": {
1155
+ type: "boolean",
1156
+ description: 'Defines whether the "Subscribe myself" checkbox starts checked when creating a scheduled export. If downloadModal.qSubscribeMyself is hidden, it also defines whether the creator is subscribed',
1157
+ since: "9.6",
1158
+ notes: "The default value is true. This variable was added in https://qrveydev.atlassian.net/browse/RB-9606"
1159
+ },
1160
+ "duplicateModal.duplicateCharts": {
1161
+ type: "boolean",
1162
+ description: "If the dashboard's charts are duplicated. true = create independent copies of the charts for the new dashboard (edits to either dashboard's charts stay isolated). false = the new dashboard points to the original charts (edits made through either dashboard are reflected in both).",
1163
+ since: "9.5"
1164
+ },
1165
+ "duplicateModal.duplicateFilters": {
1166
+ type: "boolean",
1167
+ description: "If the dashboard's filters are duplicated. true = create independent copies of the filters for the new dashboard. false = the new dashboard does not get its own copies of the filters.",
1168
+ since: "9.5"
1169
+ },
1170
+ "duplicateModal.duplicateDashActions": {
1171
+ type: "boolean",
1172
+ description: "If the dashboard-level actions are duplicated. true = create independent copies of the actions for the new dashboard. false = the new dashboard does not get its own copies of the actions.",
1173
+ since: "9.5"
1174
+ },
1175
+ // Validated paths no documented default reaches: DashboardX reads the filter controls' defaults under
1176
+ // customStyles.filterCtrl* (vem-item.manager), so these validators never run on what partners write.
1177
+ "customStyles.filterList.type": {
1178
+ type: "string",
1179
+ values: [
1180
+ "LIST",
1181
+ "DROPDOWN"
1182
+ ],
1183
+ audience: "internal"
1184
+ },
1185
+ "customStyles.filterList.triggerType": {
1186
+ type: "string",
1187
+ values: TRIGGERS,
1188
+ audience: "internal"
1189
+ },
1190
+ "customStyles.filterInput.triggerType": {
1191
+ type: "string",
1192
+ values: TRIGGERS,
1193
+ audience: "internal"
1194
+ },
1195
+ "customStyles.filterDate.triggerType": {
1196
+ type: "string",
1197
+ values: TRIGGERS,
1198
+ audience: "internal"
1199
+ }
1200
+ });
1201
+
186
1202
  // src/metadata/labels/dashboard.labels.ts
187
1203
  var DASHBOARD_LABELS = {
188
1204
  // Sections
189
1205
  navBar: {
190
- label: "Navigation bar"
1206
+ label: "Navigation bar",
1207
+ description: "The main top bar",
1208
+ since: "9.0"
191
1209
  },
192
1210
  assetList: {
193
- label: "Dashboard list"
1211
+ label: "Dashboard list",
1212
+ description: "The list options",
1213
+ since: "9.0"
194
1214
  },
195
1215
  "assetList.asset": {
196
- label: "Dashboard item"
1216
+ label: "Dashboard item",
1217
+ description: "The options inside the asset concept",
1218
+ since: "9.0"
197
1219
  },
198
1220
  "assetList.asset.optionMenu": {
199
- label: "Dashboard options menu"
1221
+ label: "Dashboard options menu",
1222
+ description: "The list options for the menu",
1223
+ since: "9.0"
200
1224
  },
201
1225
  "assetList.asset.card": {
202
- label: "Card view"
1226
+ label: "Card view",
1227
+ description: "Configuration key for the card view that displays summarized dashboard information.",
1228
+ since: "9.2.PR.3",
1229
+ notes: "Main container for dashboard details in card format."
203
1230
  },
204
1231
  "assetList.asset.table": {
205
- label: "Table view"
1232
+ label: "Table view",
1233
+ description: "Configuration key for the table view that lists dashboards and their details.",
1234
+ since: "9.2.PR.3",
1235
+ notes: "Main container for table columns and related UI elements."
206
1236
  },
207
1237
  controlBarLeft: {
208
- label: "Left control bar"
1238
+ label: "Left control bar",
1239
+ description: "The list options for the header",
1240
+ since: "9.0"
209
1241
  },
210
1242
  controlBarRight: {
211
- label: "Right control bar"
1243
+ label: "Right control bar",
1244
+ description: "The list of options on the right",
1245
+ since: "9.0"
212
1246
  },
213
1247
  header: {
214
- label: "Dashboard header"
1248
+ label: "Dashboard header",
1249
+ description: "The header where is located the dashboard name, description and favorite",
1250
+ since: "9.0"
215
1251
  },
216
1252
  "header.qOptionsMenu": {
217
- label: "Dashboard options menu"
1253
+ label: "Dashboard options menu",
1254
+ description: "The whole three-dot menu: removing it takes its four children without naming them"
1255
+ },
1256
+ // The sheet has no text of their own, and their leaf ids carry the list menu's ("...inside the menu for the list").
1257
+ "header.qOptionsMenu.qDuplDash": {
1258
+ label: "Duplicate dashboard"
1259
+ },
1260
+ "header.qOptionsMenu.qDeleteDash": {
1261
+ label: "Delete dashboard"
218
1262
  },
219
1263
  menuBar: {
220
- label: "Menu bar"
1264
+ label: "Menu bar",
1265
+ description: "The menu",
1266
+ since: "9.0",
1267
+ notes: "If the toolbar and the menu are hidden, the entire bar will be hidden"
221
1268
  },
222
1269
  "menuBar.file": {
223
- label: "File menu"
1270
+ label: "File menu",
1271
+ description: "The file menu",
1272
+ since: "9.0"
224
1273
  },
225
1274
  "menuBar.edit": {
226
- label: "Edit menu"
1275
+ label: "Edit menu",
1276
+ description: "The edit menu",
1277
+ since: "9.0"
227
1278
  },
228
1279
  "menuBar.insert": {
229
- label: "Insert menu"
1280
+ label: "Insert menu",
1281
+ description: "The insert menu",
1282
+ since: "9.0"
230
1283
  },
231
1284
  toolBar: {
232
- label: "Toolbar"
1285
+ label: "Toolbar",
1286
+ description: "The toolbar section",
1287
+ since: "9.0",
1288
+ notes: "If the toolbar and the menu are hidden, the entire bar will be hidden"
233
1289
  },
234
1290
  configPanel: {
235
- label: "Configuration panel"
1291
+ label: "Configuration panel",
1292
+ description: "The configuration panel for the items and containers",
1293
+ since: "9.0"
236
1294
  },
237
1295
  filterPanel: {
238
- label: "Filter panel"
1296
+ label: "Filter panel",
1297
+ description: "The filters panel",
1298
+ since: "9.0"
239
1299
  },
240
1300
  downloadModal: {
241
- label: "Download modal"
1301
+ label: "Download modal",
1302
+ description: "The options associated to the download modal",
1303
+ since: "9.0"
242
1304
  },
243
1305
  canvas: {
244
1306
  label: "Canvas"
245
1307
  },
246
1308
  duplicateModal: {
247
- label: "Duplicate modal"
1309
+ label: "Duplicate modal",
1310
+ description: 'Controls the "Duplicate Dashboard" options modal shown when duplicating a dashboard.',
1311
+ since: "9.5",
1312
+ notes: 'If an option is removed, for example remove: ["duplicateModal"], it does not mean the duplicate functionality is removed. Only the modal will be skipped, and the duplication process will proceed using the specified default values.'
248
1313
  },
249
1314
  "duplicateModal.options": {
250
1315
  label: "Duplicate options"
251
1316
  },
252
1317
  grid: {
253
- label: "Grid"
1318
+ label: "Grid",
1319
+ description: "The grid menu",
1320
+ since: "9.0"
1321
+ },
1322
+ "toolBar.grid": {
1323
+ label: "Grid",
1324
+ description: "The grid group inside the toolbar",
1325
+ since: "9.0"
254
1326
  },
255
1327
  dashFilterScope: {
256
- label: "Dashboard filters"
1328
+ label: "Dashboard filters",
1329
+ description: "Settings associated to the dashboard scope",
1330
+ since: "9.0"
257
1331
  },
258
1332
  tabFilterScope: {
259
- label: "Tab filters"
1333
+ label: "Tab filters",
1334
+ description: "Settings associated to the tab scope",
1335
+ since: "9.0"
260
1336
  },
261
1337
  containerFilterScope: {
262
- label: "Container filters"
1338
+ label: "Container filters",
1339
+ description: "Settings associated to the container scope",
1340
+ since: "9.4"
263
1341
  },
264
1342
  panelFilterScope: {
265
- label: "Panel filters"
1343
+ label: "Panel filters",
1344
+ description: "Settings associated to the chart panel scope",
1345
+ since: "9.0"
266
1346
  },
267
1347
  viewOnlyFilterScope: {
268
- label: "View-only filters"
1348
+ label: "View-only filters",
1349
+ description: "This key controls the display of view-only filters in the dashboard\u2019s filter panel.",
1350
+ since: "9.4"
269
1351
  },
270
1352
  edit: {
271
1353
  label: "Edit menu"
@@ -280,463 +1362,911 @@ var DASHBOARD_LABELS = {
280
1362
  label: "Options"
281
1363
  },
282
1364
  timezone: {
283
- label: "Timezone"
1365
+ label: "Timezone",
1366
+ description: "The timezone label",
1367
+ since: "9.0"
284
1368
  },
285
1369
  // Navigation and list
286
1370
  qAppTitle: {
287
- label: "Application title"
1371
+ label: "Application title",
1372
+ description: "The app title in the main top bar",
1373
+ since: "9.0"
288
1374
  },
289
1375
  qBackButton: {
290
- label: "Back button"
1376
+ label: "Back button",
1377
+ description: "The back button on the nav bar",
1378
+ since: "9.0",
1379
+ notes: "Only available when a dashboard is selected"
291
1380
  },
292
1381
  qQvTokenExpiredMessage: {
293
- label: "Session expired message"
1382
+ label: "Session expired message",
1383
+ description: "Controls the visibility of the error message displayed to users when the security token (qv_token) expires while using the embedded dashboard.",
1384
+ since: "9.3"
294
1385
  },
295
1386
  qGoToDashBackButton: {
296
- label: "Back to source dashboard button"
1387
+ label: "Back to source dashboard button",
1388
+ description: "Hide back button (arrow) for the Go To Dashboard action. Displayed in the target dashboard of a Go To Dashboard action, this button takes the user back to the original dashboard.",
1389
+ since: "9.3"
297
1390
  },
298
1391
  qCreateDash: {
299
- label: "Create dashboard"
1392
+ label: "Create dashboard",
1393
+ description: "The create button for the asset list",
1394
+ since: "9.0"
300
1395
  },
301
1396
  qSwitchView: {
302
- label: "Card/table switch"
1397
+ label: "Card/table switch",
1398
+ description: "The switch button on the asset list",
1399
+ since: "9.0"
303
1400
  },
304
1401
  qFilterBy: {
305
- label: "Filter by"
1402
+ label: "Filter by",
1403
+ description: "The filter by control",
1404
+ since: "9.0"
306
1405
  },
307
1406
  qSortBy: {
308
- label: "Sort by"
1407
+ label: "Sort by",
1408
+ description: "The sort by control",
1409
+ since: "9.0",
1410
+ notes: "Only available for the card mode on the assetList"
309
1411
  },
310
1412
  qSearch: {
311
- label: "Search"
1413
+ label: "Search",
1414
+ description: "The search input box",
1415
+ since: "9.0"
312
1416
  },
313
1417
  qSelectColumn: {
314
- label: "Column selection"
1418
+ label: "Column selection",
1419
+ description: "The select columns dropdown",
1420
+ since: "9.0",
1421
+ notes: "Only available for the table mode on the assetList"
315
1422
  },
316
1423
  qStatus: {
317
- label: "Status"
1424
+ label: "Status",
1425
+ description: "Refers to the text element that displays the current publication status of the dashboard.",
1426
+ since: "9.2.PR.3",
1427
+ notes: "Appears as \u201CStatus\u201D (e.g., Published, Modified, Draft)."
1428
+ },
1429
+ "assetList.asset.table.qStatus": {
1430
+ label: "Status",
1431
+ description: "Refers to the column that indicates the current publication status of the dashboard.",
1432
+ since: "9.2.PR.3",
1433
+ notes: "Appears as \u201CStatus\u201D"
1434
+ },
1435
+ "controlBarRight.qStatus": {
1436
+ label: "Status",
1437
+ description: "The status label for the dashboard",
1438
+ since: "9.0"
318
1439
  },
319
1440
  qPreview: {
320
- label: "Preview"
1441
+ label: "Preview",
1442
+ description: "Allows the preview mode visualization",
1443
+ since: "9.0"
321
1444
  },
322
1445
  qPublish: {
323
- label: "Publish"
1446
+ label: "Publish",
1447
+ description: "The button for publishing a new version of the dashboard",
1448
+ since: "9.0"
324
1449
  },
325
1450
  qUnpublish: {
326
- label: "Unpublish"
1451
+ label: "Unpublish",
1452
+ description: "The button for unpublishing a dashboard",
1453
+ since: "9.2"
327
1454
  },
328
1455
  qDesign: {
329
- label: "Design"
1456
+ label: "Design",
1457
+ description: "The design button inside the edit bar",
1458
+ since: "9.0"
330
1459
  },
331
1460
  qEditDash: {
332
- label: "Edit dashboard"
1461
+ label: "Edit dashboard",
1462
+ description: "The edit option inside the menu for the list",
1463
+ since: "9.0"
333
1464
  },
334
1465
  qUseDash: {
335
- label: "Use dashboard"
1466
+ label: "Use dashboard",
1467
+ description: "The use option inside the menu for the list",
1468
+ since: "9.2"
336
1469
  },
337
1470
  qRenameDash: {
338
- label: "Rename dashboard"
1471
+ label: "Rename dashboard",
1472
+ description: "The rename option inside the menu for the list",
1473
+ since: "9.0"
339
1474
  },
340
1475
  qDeleteDash: {
341
- label: "Delete dashboard"
1476
+ label: "Delete dashboard",
1477
+ description: "The delete option inside the menu for the list",
1478
+ since: "9.0"
342
1479
  },
343
1480
  qManageTags: {
344
- label: "Manage tags"
1481
+ label: "Manage tags",
1482
+ description: `"Manage Tags" in the list's three-dot menu`
1483
+ },
1484
+ "header.qOptionsMenu.qManageTags": {
1485
+ label: "Manage tags",
1486
+ description: 'Only "Manage Tags" inside that menu'
1487
+ },
1488
+ "menuBar.file.qManageTags": {
1489
+ label: "Manage tags",
1490
+ description: '"Manage Tags" in the File menu'
345
1491
  },
346
1492
  qTags: {
347
- label: "Tags"
1493
+ label: "Tags",
1494
+ description: "The tag row on the card"
1495
+ },
1496
+ "assetList.asset.table.qTags": {
1497
+ label: "Tags",
1498
+ description: "The Tags column and its entry in the column picker"
1499
+ },
1500
+ "header.qTags": {
1501
+ label: "Tags",
1502
+ description: "Tags in the builder header. Hiding it also cancels the request to load the tags"
348
1503
  },
349
1504
  qFilterByTags: {
350
- label: "Filter by tags"
1505
+ label: "Filter by tags",
1506
+ description: "The toolbar's tag filter. Independent of showing tags"
351
1507
  },
352
1508
  qDuplDash: {
353
- label: "Duplicate dashboard"
1509
+ label: "Duplicate dashboard",
1510
+ description: "The duplicate option inside the menu for the list",
1511
+ since: "9.0"
354
1512
  },
355
1513
  qDuplDashAndCharts: {
356
- label: "Duplicate dashboard and charts"
1514
+ label: "Duplicate dashboard and charts",
1515
+ description: "The duplicate option inside the menu for the list",
1516
+ since: "9.2.PR.4",
1517
+ notes: "Deprecated in version 9.5"
357
1518
  },
358
1519
  qManageSharing: {
359
1520
  label: "Manage sharing"
360
1521
  },
361
1522
  qFavorite: {
362
- label: "Favorite"
1523
+ label: "Favorite",
1524
+ description: "Refers to the icon used to mark or unmark a dashboard as favorite.",
1525
+ since: "9.2.PR.3",
1526
+ notes: "Shown as a star icon at the top of the card."
1527
+ },
1528
+ "assetList.asset.table.qFavorite": {
1529
+ label: "Favorite",
1530
+ description: "Refers to the column that displays the favorite (star) icon of each dashboard.",
1531
+ since: "9.2.PR.3",
1532
+ notes: "Not included in the dropdown but can still be configured in the table."
363
1533
  },
364
1534
  qCreatedDate: {
365
- label: "Created date"
1535
+ label: "Created date",
1536
+ description: "Refers to the text element that shows the creation date of the dashboard.",
1537
+ since: "9.2.PR.3",
1538
+ notes: "Appears as \u201CCreated\u201D in the card details."
1539
+ },
1540
+ "assetList.asset.table.qCreatedDate": {
1541
+ label: "Created date",
1542
+ description: "Refers to the column that shows the creation date of the dashboard.",
1543
+ since: "9.2.PR.3",
1544
+ notes: "Appears as \u201CCreated\u201D in the table."
366
1545
  },
367
1546
  qLastModifDate: {
368
- label: "Last modified date"
1547
+ label: "Last modified date",
1548
+ description: "Refers to the text element that shows the last modification date of the dashboard.",
1549
+ since: "9.2.PR.3",
1550
+ notes: "Appears as \u201CLast Modified\u201D in the card details."
1551
+ },
1552
+ "assetList.asset.table.qLastModifDate": {
1553
+ label: "Last modified date",
1554
+ description: "Refers to the column that shows the last modification date of the dashboard.",
1555
+ since: "9.2.PR.3",
1556
+ notes: "Appears as \u201CLast Modified\u201D in the table."
369
1557
  },
370
1558
  qNumberOfCharts: {
371
- label: "Number of charts"
1559
+ label: "Number of charts",
1560
+ description: "Refers to the text element that shows how many charts the dashboard contains.",
1561
+ since: "9.2.PR.3",
1562
+ notes: "Appears as \u201CNumber of Charts\u201D"
1563
+ },
1564
+ "assetList.asset.table.qNumberOfCharts": {
1565
+ label: "Number of charts",
1566
+ description: "Refers to the column that displays the number of charts contained in the dashboard.",
1567
+ since: "9.2.PR.3",
1568
+ notes: "Appears as \u201CNumber of Charts\u201D"
372
1569
  },
373
1570
  qSharing: {
374
- label: "Sharing"
1571
+ label: "Sharing",
1572
+ description: "Refers to the text element that shows the dashboard\u2019s privacy or sharing configuration.",
1573
+ since: "9.2.PR.3",
1574
+ notes: "Appears as \u201CPrivacy\u201D"
1575
+ },
1576
+ "assetList.asset.table.qSharing": {
1577
+ label: "Sharing",
1578
+ description: "Refers to the column that displays the privacy or sharing configuration of the dashboard.",
1579
+ since: "9.2.PR.3",
1580
+ notes: "Appears as \u201CPrivacy\u201D"
375
1581
  },
376
1582
  qSharingIcon: {
377
1583
  label: "Sharing icon"
378
1584
  },
379
1585
  qOwner: {
380
- label: "Owner"
1586
+ label: "Owner",
1587
+ description: "Refers to the text element that displays the owner\u2019s email or name.",
1588
+ since: "9.2.PR.3",
1589
+ notes: "Appears as \u201COwner\u201D"
1590
+ },
1591
+ "assetList.asset.table.qOwner": {
1592
+ label: "Owner",
1593
+ description: "Refers to the column that displays the dashboard owner information (name or email).",
1594
+ since: "9.2.PR.3",
1595
+ notes: "Appears as \u201COwner\u201D"
381
1596
  },
382
1597
  qDescription: {
383
- label: "Description"
1598
+ label: "Description",
1599
+ description: "Refers to the text element that displays the dashboard description.",
1600
+ since: "9.2.PR.3",
1601
+ notes: "Appears as \u201CDescription\u201D or \u201CNo description\u201D"
1602
+ },
1603
+ "assetList.asset.table.qDescription": {
1604
+ label: "Description",
1605
+ description: "Refers to the column that displays the dashboard description text.",
1606
+ since: "9.2.PR.3",
1607
+ notes: "Appears as \u201CDescription\u201D"
384
1608
  },
385
1609
  // Header
386
1610
  qDashFavorite: {
387
- label: "Favorite"
1611
+ label: "Favorite",
1612
+ description: "The dashboard favorite option",
1613
+ since: "9.0"
388
1614
  },
389
1615
  qDashName: {
390
- label: "Dashboard name"
1616
+ label: "Dashboard name",
1617
+ description: "The dashboard name",
1618
+ since: "9.0"
391
1619
  },
392
1620
  qDashDesc: {
393
- label: "Dashboard description"
1621
+ label: "Dashboard description",
1622
+ description: "The dashboard description",
1623
+ since: "9.0"
394
1624
  },
395
1625
  // Menu bar
396
1626
  qMnuCreateDash: {
397
- label: "New dashboard"
1627
+ label: "New dashboard",
1628
+ description: "The new dashboard option inside the file menu",
1629
+ since: "9.0",
1630
+ notes: "Only available if the _in_composer property is true"
398
1631
  },
399
1632
  qMnuOpenDash: {
400
- label: "Open dashboard"
1633
+ label: "Open dashboard",
1634
+ description: "The open dashboard option inside the file menu",
1635
+ since: "9.0",
1636
+ notes: "Only available if the _in_composer property is true"
401
1637
  },
402
1638
  qMnuDuplicateDash: {
403
- label: "Duplicate dashboard"
1639
+ label: "Duplicate dashboard",
1640
+ description: "The duplicate dashboard option inside the file menu",
1641
+ since: "9.0",
1642
+ notes: "Only available if the _in_composer property is true"
404
1643
  },
405
1644
  qMnuDuplicateDashAndCharts: {
406
- label: "Duplicate dashboard and charts"
1645
+ label: "Duplicate dashboard and charts",
1646
+ description: "The duplicate dashboard and charts option inside the file menu",
1647
+ since: "9.2.PR.4",
1648
+ notes: "Only available if the _in_composer property is true, Deprecated in version 9.5"
407
1649
  },
408
1650
  qMnuCanvasSize: {
409
- label: "Canvas size"
1651
+ label: "Canvas size",
1652
+ description: "The canvas size option inside the file menu",
1653
+ since: "9.0",
1654
+ notes: "Only available if the canvas mode is Fixed"
410
1655
  },
411
1656
  qMnuThemes: {
412
- label: "Themes"
1657
+ label: "Themes",
1658
+ description: "The themes option inside the file menu",
1659
+ since: "9.0"
413
1660
  },
414
1661
  qMnuDeleteDash: {
415
- label: "Delete dashboard"
1662
+ label: "Delete dashboard",
1663
+ description: "The delete dashboard option inside the file menu",
1664
+ since: "9.0",
1665
+ notes: "Only available if the _in_composer property is true"
416
1666
  },
417
1667
  qMnuDownloadDash: {
418
- label: "Download"
1668
+ label: "Download",
1669
+ description: "Download options for the dashboard",
1670
+ since: "9.0"
419
1671
  },
420
1672
  qCreateDataset: {
421
- label: "Custom dataset"
1673
+ label: "Custom dataset",
1674
+ description: "The custom dataset options inside file menu",
1675
+ since: "9.0"
1676
+ },
1677
+ "toolBar.qCreateDataset": {
1678
+ label: "Custom dataset",
1679
+ description: "Custom Dataset options",
1680
+ since: "9.0"
422
1681
  },
423
1682
  qCreateCustomDataset: {
424
- label: "Create custom dataset"
1683
+ label: "Create custom dataset",
1684
+ description: "The create custom dataset option inside the file menu",
1685
+ since: "9.2"
1686
+ },
1687
+ "toolBar.qCreateDataset.qCreateCustomDataset": {
1688
+ label: "Create custom dataset",
1689
+ description: "The option to create a new custom dataset",
1690
+ since: "9.2"
425
1691
  },
426
1692
  qViewCustomDataset: {
427
- label: "View custom dataset"
1693
+ label: "View custom dataset",
1694
+ description: "The view custom datasets option inside the file menu",
1695
+ since: "9.2"
1696
+ },
1697
+ "toolBar.qCreateDataset.qViewCustomDataset": {
1698
+ label: "View custom dataset",
1699
+ description: "The option for view custom datasets",
1700
+ since: "9.2"
428
1701
  },
429
1702
  qUndoRedo: {
430
- label: "Undo / redo"
1703
+ label: "Undo / redo",
1704
+ description: "The undo/redo options",
1705
+ since: "9.0"
431
1706
  },
432
1707
  qCopyElement: {
433
- label: "Copy"
1708
+ label: "Copy",
1709
+ description: "The copy option inside the edit menu",
1710
+ since: "9.0",
1711
+ notes: "The option is available using the CTRL + C shortcut"
434
1712
  },
435
1713
  qPasteElement: {
436
- label: "Paste"
1714
+ label: "Paste",
1715
+ description: "The paste option inside the edit menu",
1716
+ since: "9.0",
1717
+ notes: "The option is available using the CTRL + V shortcut"
437
1718
  },
438
1719
  qCutElement: {
439
- label: "Cut"
1720
+ label: "Cut",
1721
+ description: "The cut option inside the edit menu",
1722
+ since: "9.0",
1723
+ notes: "The option is available using the CTRL + X shortcut"
440
1724
  },
441
1725
  qRemoveElement: {
442
- label: "Remove"
1726
+ label: "Remove",
1727
+ description: "The remove option inside the edit menu",
1728
+ since: "9.0",
1729
+ notes: "The option is available using the Backspace/Supr shortcut"
443
1730
  },
444
1731
  qDuplElement: {
445
- label: "Duplicate"
1732
+ label: "Duplicate",
1733
+ description: "The duplicate option inside the edit menu",
1734
+ since: "9.0",
1735
+ notes: "The option is available using the CTRL + D shortcut"
446
1736
  },
447
1737
  qSelectAllElem: {
448
- label: "Select all"
1738
+ label: "Select all",
1739
+ description: "The select all option inside the edit menu",
1740
+ since: "9.0",
1741
+ notes: "The option is available using the CTRL + Shift + K shortcut"
449
1742
  },
450
1743
  qSelectAllContElem: {
451
1744
  label: "Select all in container"
452
1745
  },
453
1746
  qMnuInsertChart: {
454
- label: "Chart"
1747
+ label: "Chart",
1748
+ description: "The insert chart group inside the insert menu",
1749
+ since: "9.0"
455
1750
  },
456
1751
  qMnuExistingChart: {
457
- label: "Existing chart"
1752
+ label: "Existing chart",
1753
+ description: "The option for inserting existing chart from the gallery for the insert menu",
1754
+ since: "9.0"
458
1755
  },
459
1756
  qMnuNewChart: {
460
- label: "New chart"
1757
+ label: "New chart",
1758
+ description: "The option for inserting a new chart from the chart builder for the insert menu",
1759
+ since: "9.0"
461
1760
  },
462
1761
  qMnuNewChartAI: {
463
- label: "New chart with AI"
1762
+ label: "New chart with AI",
1763
+ description: "The option for inserting a new chart from the AI modal",
1764
+ since: "9.1"
464
1765
  },
465
1766
  qMnuInsertFilterCtrl: {
466
- label: "Filter control"
1767
+ label: "Filter control",
1768
+ description: "The insert filter control elements group inside the insert menu",
1769
+ since: "9.0"
467
1770
  },
468
1771
  qMnuDatePicker: {
469
- label: "Date picker"
1772
+ label: "Date picker",
1773
+ description: "The option for inserting a new date picker",
1774
+ since: "9.0"
470
1775
  },
471
1776
  qMnuInputBox: {
472
- label: "Input box"
1777
+ label: "Input box",
1778
+ description: "The option for inserting a new input box",
1779
+ since: "9.0"
473
1780
  },
474
1781
  qMnuMultiSelectList: {
475
- label: "Multi-select list"
1782
+ label: "Multi-select list",
1783
+ description: "The option for inserting a new value list - Multiple selection",
1784
+ since: "9.0"
476
1785
  },
477
1786
  qMnuSingleSelectList: {
478
- label: "Single-select list"
1787
+ label: "Single-select list",
1788
+ description: "The option for inserting a new value list - Single selection",
1789
+ since: "9.4"
479
1790
  },
480
1791
  qMnuInsertShape: {
481
- label: "Shape"
1792
+ label: "Shape",
1793
+ description: "The insert shapes option inside the insert menu"
482
1794
  },
483
1795
  qMnuLine: {
484
- label: "Line"
1796
+ label: "Line",
1797
+ description: "The option for inserting a new line"
485
1798
  },
486
1799
  qMnuRectangle: {
487
- label: "Rectangle"
1800
+ label: "Rectangle",
1801
+ description: "The option for inserting a new rectangle"
488
1802
  },
489
1803
  qMnuEllipse: {
490
- label: "Ellipse"
1804
+ label: "Ellipse",
1805
+ description: "The option for inserting a new ellipse"
491
1806
  },
492
1807
  qMnuInsertText: {
493
- label: "Text"
1808
+ label: "Text",
1809
+ description: "The option for inserting a text element",
1810
+ since: "9.0"
494
1811
  },
495
1812
  qMnuInsertImage: {
496
- label: "Image"
1813
+ label: "Image",
1814
+ description: "The option for inserting an image element",
1815
+ since: "9.0"
497
1816
  },
498
1817
  qMnuInsertButton: {
499
- label: "Button"
1818
+ label: "Button",
1819
+ description: "The option for inserting a button element",
1820
+ since: "9.0"
500
1821
  },
501
1822
  qMnuInsertContainer: {
502
- label: "Container"
1823
+ label: "Container",
1824
+ description: "The option for inserting a container element",
1825
+ since: "9.1"
503
1826
  },
504
1827
  qMnuInsertHeader: {
505
- label: "Header"
1828
+ label: "Header",
1829
+ description: "The option for inserting a header container",
1830
+ since: "9.0"
506
1831
  },
507
1832
  qMnuInsertTabs: {
508
- label: "Tabs"
1833
+ label: "Tabs",
1834
+ description: "The option for adding tabs to the dashboard",
1835
+ since: "9.0"
509
1836
  },
510
1837
  qMnuArrange: {
511
- label: "Arrange"
1838
+ label: "Arrange",
1839
+ description: "The arrange menu",
1840
+ since: "9.0"
512
1841
  },
513
1842
  qMnuBringToFront: {
514
- label: "Bring to front"
1843
+ label: "Bring to front",
1844
+ description: "The option for sending an element to the front from the arrange menu",
1845
+ since: "9.0"
515
1846
  },
516
1847
  qMnuSendToBack: {
517
- label: "Send to back"
1848
+ label: "Send to back",
1849
+ description: "The option for sending an element to the back from the arrange menu",
1850
+ since: "9.0"
518
1851
  },
519
1852
  qMnuAlign: {
520
- label: "Align"
1853
+ label: "Align",
1854
+ description: "The align group inside the arrange menu",
1855
+ since: "9.0"
521
1856
  },
522
1857
  qMnuDisplayGrid: {
523
- label: "Display grid"
1858
+ label: "Display grid",
1859
+ description: "The hide/display grid option inside the grid menu",
1860
+ since: "9.0"
524
1861
  },
525
1862
  qMnuSnapToGrid: {
526
- label: "Snap to grid"
1863
+ label: "Snap to grid",
1864
+ description: "The snap to grid option inside the grid menu",
1865
+ since: "9.0"
527
1866
  },
528
1867
  qMnuSwitchGrid: {
529
- label: "Switch grid"
1868
+ label: "Switch grid",
1869
+ description: "The switch grid type option inside the grid menu",
1870
+ since: "9.0"
530
1871
  },
531
1872
  // Toolbar
532
1873
  qCanvasSize: {
533
- label: "Canvas size"
1874
+ label: "Canvas size",
1875
+ description: "The canvas size option inside the toolbar",
1876
+ since: "9.0"
534
1877
  },
535
1878
  qInsertChart: {
536
- label: "Insert chart"
1879
+ label: "Insert chart",
1880
+ description: "The insert chart group inside the toolbar",
1881
+ since: "9.0"
537
1882
  },
538
1883
  qExistingChart: {
539
- label: "Existing chart"
1884
+ label: "Existing chart",
1885
+ description: "The option for inserting existing chart from the gallery for the toolbar",
1886
+ since: "9.0"
540
1887
  },
541
1888
  qNewChart: {
542
- label: "New chart"
1889
+ label: "New chart",
1890
+ description: "The option for inserting a new chart from the chart builder for the toolbar",
1891
+ since: "9.0"
543
1892
  },
544
1893
  qNewChartAI: {
545
- label: "New chart with AI"
1894
+ label: "New chart with AI",
1895
+ description: "The option for inserting a new chart from the AI modal",
1896
+ since: "9.1"
546
1897
  },
547
1898
  qInsertFilterCtrl: {
548
- label: "Insert filter control"
1899
+ label: "Insert filter control",
1900
+ description: "The insert filter control elements group inside the toolbar",
1901
+ since: "9.0"
549
1902
  },
550
1903
  qDatePicker: {
551
- label: "Date picker"
1904
+ label: "Date picker",
1905
+ description: "The option for inserting a new date picker",
1906
+ since: "9.0"
552
1907
  },
553
1908
  qInputBox: {
554
- label: "Input box"
1909
+ label: "Input box",
1910
+ description: "The option for inserting a new input box",
1911
+ since: "9.0"
555
1912
  },
556
1913
  qMultiSelectList: {
557
- label: "Multi-select list"
1914
+ label: "Multi-select list",
1915
+ description: "The option for inserting a new value list - Multiple selection",
1916
+ since: "9.0"
558
1917
  },
559
1918
  qSingleSelectList: {
560
- label: "Single-select list"
1919
+ label: "Single-select list",
1920
+ description: "The option for inserting a new value list - Single selection",
1921
+ since: "9.4"
561
1922
  },
562
1923
  qInsertShape: {
563
1924
  label: "Insert shape"
564
1925
  },
565
1926
  qLine: {
566
- label: "Line"
1927
+ label: "Line",
1928
+ description: "The option for inserting a new line"
567
1929
  },
568
1930
  qRectangle: {
569
- label: "Rectangle"
1931
+ label: "Rectangle",
1932
+ description: "The option for inserting a new rectangle"
570
1933
  },
571
1934
  qEllipse: {
572
- label: "Ellipse"
1935
+ label: "Ellipse",
1936
+ description: "The option for inserting a new ellipse"
573
1937
  },
574
1938
  qSnapToGrid: {
575
- label: "Snap to grid"
1939
+ label: "Snap to grid",
1940
+ description: "The snap to grid option inside the toolbar",
1941
+ since: "9.0"
576
1942
  },
577
1943
  qDisplayGrid: {
578
- label: "Display grid"
1944
+ label: "Display grid",
1945
+ description: "The hide/display grid option inside the toolbar",
1946
+ since: "9.0"
579
1947
  },
580
1948
  qSwitchGrid: {
581
- label: "Switch grid"
1949
+ label: "Switch grid",
1950
+ description: "The switch grid type option inside the toolbar",
1951
+ since: "9.0"
582
1952
  },
583
1953
  qDownloadDash: {
584
- label: "Download"
1954
+ label: "Download",
1955
+ description: "Download options for the dashboard",
1956
+ since: "9.0"
585
1957
  },
586
1958
  qDashPDF: {
587
- label: "PDF"
1959
+ label: "PDF",
1960
+ description: "PDF download option",
1961
+ since: "9.0"
588
1962
  },
589
1963
  qDashCSV: {
590
- label: "CSV"
1964
+ label: "CSV",
1965
+ description: "CSV download option",
1966
+ since: "9.0"
591
1967
  },
592
1968
  qDashExcel: {
593
- label: "Excel"
1969
+ label: "Excel",
1970
+ description: "Excel download option",
1971
+ since: "9.0"
594
1972
  },
595
1973
  qDashDataset: {
596
- label: "Dataset"
1974
+ label: "Dataset",
1975
+ description: "Dataset download option",
1976
+ since: "9.2"
597
1977
  },
598
1978
  qArrange: {
599
- label: "Arrange"
1979
+ label: "Arrange",
1980
+ description: "The arrange group inside the toolbar",
1981
+ since: "9.0"
600
1982
  },
601
1983
  qBringToFront: {
602
- label: "Bring to front"
1984
+ label: "Bring to front",
1985
+ description: "The option for sending an element to the front from the toolbar",
1986
+ since: "9.0"
603
1987
  },
604
1988
  qSendToBack: {
605
- label: "Send to back"
1989
+ label: "Send to back",
1990
+ description: "The option for sending an element to the back from the toolbar",
1991
+ since: "9.0"
606
1992
  },
607
1993
  qResponsiveView: {
608
- label: "Responsive view"
1994
+ label: "Responsive view",
1995
+ description: "The responsive view group in the toolbar",
1996
+ since: "9.0"
609
1997
  },
610
1998
  qDesktop: {
611
- label: "Desktop"
1999
+ label: "Desktop",
2000
+ description: "The desktop view for the dashboard",
2001
+ since: "9.0"
612
2002
  },
613
2003
  qTablet: {
614
- label: "Tablet"
2004
+ label: "Tablet",
2005
+ description: "The tablet view for the dashboard",
2006
+ since: "9.0"
615
2007
  },
616
2008
  qMobile: {
617
- label: "Mobile"
2009
+ label: "Mobile",
2010
+ description: "The mobile view for the dashboard",
2011
+ since: "9.0"
618
2012
  },
619
2013
  qBreakpoints: {
620
- label: "Breakpoints"
2014
+ label: "Breakpoints",
2015
+ description: "The option to open the modal for modifying the breakpoints",
2016
+ since: "9.0",
2017
+ notes: "Only available in responsive canvas"
621
2018
  },
622
2019
  qAlign: {
623
- label: "Align"
2020
+ label: "Align",
2021
+ description: "The align group inside the toolbar",
2022
+ since: "9.0"
624
2023
  },
625
2024
  qAlignRight: {
626
- label: "Align right"
2025
+ label: "Align right",
2026
+ description: "The option for aligning to the right",
2027
+ since: "9.0"
627
2028
  },
628
2029
  qAlignLeft: {
629
- label: "Align left"
2030
+ label: "Align left",
2031
+ description: "The option for aligning to the left",
2032
+ since: "9.0"
630
2033
  },
631
2034
  qAlignCenter: {
632
- label: "Align center"
2035
+ label: "Align center",
2036
+ description: "The option for aligning to the center",
2037
+ since: "9.0"
633
2038
  },
634
2039
  qAlignTop: {
635
- label: "Align top"
2040
+ label: "Align top",
2041
+ description: "The option for aligning to the top",
2042
+ since: "9.0"
636
2043
  },
637
2044
  qAlignMiddle: {
638
- label: "Align middle"
2045
+ label: "Align middle",
2046
+ description: "The option for aligning to the middle",
2047
+ since: "9.0"
639
2048
  },
640
2049
  qAlignBottom: {
641
- label: "Align bottom"
2050
+ label: "Align bottom",
2051
+ description: "The option for aligning to the bottom",
2052
+ since: "9.0"
642
2053
  },
643
2054
  qInsertText: {
644
- label: "Insert text"
2055
+ label: "Insert text",
2056
+ description: "The option for inserting a text element",
2057
+ since: "9.0"
645
2058
  },
646
2059
  qInsertImage: {
647
- label: "Insert image"
2060
+ label: "Insert image",
2061
+ description: "The option for inserting an image element",
2062
+ since: "9.0"
648
2063
  },
649
2064
  qInsertButton: {
650
- label: "Insert button"
2065
+ label: "Insert button",
2066
+ description: "The option for inserting a button element",
2067
+ since: "9.0"
651
2068
  },
652
2069
  qInsertContainer: {
653
- label: "Insert container"
2070
+ label: "Insert container",
2071
+ description: "The option for inserting a container element",
2072
+ since: "9.1"
654
2073
  },
655
2074
  qRespGridMargins: {
656
- label: "Responsive grid margins"
2075
+ label: "Responsive grid margins",
2076
+ description: "The configuration for margins",
2077
+ since: "9.0",
2078
+ notes: "Only available in responsive canvas"
657
2079
  },
658
2080
  qRespGridColumns: {
659
- label: "Responsive grid columns"
2081
+ label: "Responsive grid columns",
2082
+ description: "The configuration for number of columns",
2083
+ since: "9.0",
2084
+ notes: "Only available in responsive canvas"
660
2085
  },
661
2086
  qThemes: {
662
- label: "Themes"
2087
+ label: "Themes",
2088
+ description: "The themes option inside the toolbar",
2089
+ since: "9.0"
663
2090
  },
664
2091
  qDashVersion: {
665
- label: "Dashboard version"
2092
+ label: "Dashboard version",
2093
+ description: "The dashboard version indicator",
2094
+ since: "9.0"
666
2095
  },
667
2096
  qGetDashVersion: {
668
- label: "Change version"
2097
+ label: "Change version",
2098
+ description: "The button for switching between dashboard versions",
2099
+ since: "9.0"
669
2100
  },
670
2101
  qSourceDashBanner: {
671
- label: "Personalization banner"
2102
+ label: "Personalization banner",
2103
+ description: "Control the EUP Source Dashboard banner visibility",
2104
+ since: "9.3"
672
2105
  },
673
2106
  qHiddenItems: {
674
- label: "Hidden items"
2107
+ label: "Hidden items",
2108
+ description: "The button for the hidden elements",
2109
+ since: "9.0"
675
2110
  },
676
2111
  qDiscard: {
677
- label: "Discard changes"
2112
+ label: "Discard changes",
2113
+ description: "The button for discarding changes",
2114
+ since: "9.0"
2115
+ },
2116
+ "toolBar.qDiscard": {
2117
+ label: "Discard changes",
2118
+ description: "The discard button",
2119
+ since: "9.0"
678
2120
  },
679
2121
  qSave: {
680
- label: "Save changes"
2122
+ label: "Save changes",
2123
+ description: "The save button",
2124
+ since: "9.0"
681
2125
  },
682
2126
  qSwitchMode: {
683
- label: "Interact / design switch"
2127
+ label: "Interact / design switch",
2128
+ description: "The button for switching between dashboard mode (interact or design)",
2129
+ since: "9.2"
684
2130
  },
685
2131
  qHideToolBar: {
686
- label: "Hide toolbar"
2132
+ label: "Hide toolbar",
2133
+ description: "The hide toolbar button",
2134
+ since: "9.0"
687
2135
  },
688
2136
  qDownloadList: {
689
- label: "Download list"
2137
+ label: "Download list",
2138
+ description: "List of export statuses",
2139
+ since: "9.3"
690
2140
  },
691
2141
  qChangeLayout: {
692
- label: "Change layout"
2142
+ label: "Change layout",
2143
+ description: "Controls only if the Change Layout button or option is displayed in the UI",
2144
+ since: "9.3"
693
2145
  },
694
2146
  // Filter panel
695
2147
  qAddFilter: {
696
- label: "Add filter"
2148
+ label: "Add filter",
2149
+ description: "The adding button for the filter panel",
2150
+ since: "9.0"
697
2151
  },
698
2152
  qEnabDisabAllFilters: {
699
- label: "Enable / disable all filters"
2153
+ label: "Enable / disable all filters",
2154
+ description: "The option for enable/disable all the filters",
2155
+ since: "9.0"
700
2156
  },
701
2157
  qDeleteAllFilters: {
702
- label: "Delete all filters"
2158
+ label: "Delete all filters",
2159
+ description: "The option for removing all the filters",
2160
+ since: "9.0"
703
2161
  },
704
2162
  qFilterSettings: {
705
- label: "Filter settings"
2163
+ label: "Filter settings",
2164
+ description: "The settings buttons in the filter panel",
2165
+ since: "9.0"
706
2166
  },
707
2167
  qEditFilter: {
708
- label: "Edit filter"
2168
+ label: "Edit filter",
2169
+ description: "The edit button in the dashboard scope",
2170
+ since: "9.0"
2171
+ },
2172
+ "filterPanel.tabFilterScope.qEditFilter": {
2173
+ label: "Edit filter",
2174
+ description: "The edit button in the tab scope",
2175
+ since: "9.0"
2176
+ },
2177
+ "filterPanel.containerFilterScope.qEditFilter": {
2178
+ label: "Edit filter",
2179
+ description: "The edit button in the container scope",
2180
+ since: "9.4"
2181
+ },
2182
+ "filterPanel.panelFilterScope.qEditFilter": {
2183
+ label: "Edit filter",
2184
+ description: "The edit button in the chart panel scope",
2185
+ since: "9.0"
709
2186
  },
710
2187
  qEnabDisabFilter: {
711
- label: "Enable / disable filter"
2188
+ label: "Enable / disable filter",
2189
+ description: "The enable/disable button in the dashboard scope",
2190
+ since: "9.0"
2191
+ },
2192
+ "filterPanel.tabFilterScope.qEnabDisabFilter": {
2193
+ label: "Enable / disable filter",
2194
+ description: "The enable/disable button in the tab scope",
2195
+ since: "9.0"
2196
+ },
2197
+ "filterPanel.containerFilterScope.qEnabDisabFilter": {
2198
+ label: "Enable / disable filter",
2199
+ description: "The enable/disable button in the container scope",
2200
+ since: "9.4"
2201
+ },
2202
+ "filterPanel.panelFilterScope.qEnabDisabFilter": {
2203
+ label: "Enable / disable filter",
2204
+ description: "The enable/disable button in the chart panel scope",
2205
+ since: "9.0"
712
2206
  },
713
2207
  qDeleteFilter: {
714
- label: "Delete filter"
2208
+ label: "Delete filter",
2209
+ description: "The remove option in the dashboard scope",
2210
+ since: "9.0"
2211
+ },
2212
+ "filterPanel.tabFilterScope.qDeleteFilter": {
2213
+ label: "Delete filter",
2214
+ description: "The remove option in the tab scope",
2215
+ since: "9.0"
2216
+ },
2217
+ "filterPanel.containerFilterScope.qDeleteFilter": {
2218
+ label: "Delete filter",
2219
+ description: "The remove option in the container scope",
2220
+ since: "9.4"
2221
+ },
2222
+ "filterPanel.panelFilterScope.qDeleteFilter": {
2223
+ label: "Delete filter",
2224
+ description: "The remove option in the chart panel scope",
2225
+ since: "9.0"
715
2226
  },
716
2227
  // Download modal
717
2228
  qScheduleOption: {
718
- label: "Schedule"
2229
+ label: "Schedule",
2230
+ description: "The schedule button inside the download modal",
2231
+ since: "9.0"
719
2232
  },
720
2233
  qSubscribeOption: {
721
- label: "Subscribe"
2234
+ label: "Subscribe",
2235
+ description: "The Subscribe tab within the Download modal",
2236
+ since: "9.0"
722
2237
  },
723
2238
  qSubscribeExternalUsers: {
724
- label: "Subscribe external users"
2239
+ label: "Subscribe external users",
2240
+ description: "The option to add external users using the Enter key within the Subscribe tab",
2241
+ since: "9.0"
725
2242
  },
726
2243
  qSubscribeBanner: {
727
- label: "Subscription banner"
2244
+ label: "Subscription banner",
2245
+ description: 'The banner "All subscribers will receive the exported file with the same data as you." within the Subscribe tab',
2246
+ since: "9.6",
2247
+ notes: "If qSubscribeBanner, qSubscribeOwner, qSubscribeOrganization, qSubscribeMyself and qSubscribeSpecificPeople are all hidden, the Subscribe tab is hidden too. Outside Composer, qSubscribeOrganization already counts as hidden. A keep list that includes downloadModal.qSubscribeOption also keeps these five keys."
728
2248
  },
729
2249
  qOwnerLabel: {
730
- label: "Owner"
2250
+ label: "Owner",
2251
+ description: "The owner label within the Subscribe tab",
2252
+ since: "9.6"
731
2253
  },
732
2254
  qSubscribeOrganization: {
733
- label: "Subscribe organization"
2255
+ label: "Subscribe organization",
2256
+ description: 'The "Subscribe everyone in my organization" checkbox within the Subscribe tab',
2257
+ since: "9.6",
2258
+ notes: "Only available if the _in_composer property is true"
734
2259
  },
735
2260
  qSubscribeMyself: {
736
- label: "Subscribe myself"
2261
+ label: "Subscribe myself",
2262
+ description: 'The "Subscribe myself" checkbox within the Subscribe tab',
2263
+ since: "9.6",
2264
+ notes: "Its initial value is set with defaults.downloadModal.subscribeMyself (see Customization Defaults)"
737
2265
  },
738
2266
  qSubscribeSpecificPeople: {
739
- label: "Subscribe specific people"
2267
+ label: "Subscribe specific people",
2268
+ description: "The Subscribe Specific People field within the Subscribe tab",
2269
+ since: "9.6"
740
2270
  },
741
2271
  qSubscribeOwner: {
742
2272
  label: "Subscribe owner"
@@ -748,23 +2278,35 @@ var DASHBOARD_LABELS = {
748
2278
  label: "Include hyperlinks"
749
2279
  },
750
2280
  qExportVersion: {
751
- label: "Export version"
2281
+ label: "Export version",
2282
+ description: "The options to export, latest saved version or unsaved version",
2283
+ since: "9.3"
752
2284
  },
753
2285
  qSavedVersionWarning: {
754
- label: "Saved version banner"
2286
+ label: "Saved version banner",
2287
+ description: "The warning banner for the export latest saved version option",
2288
+ since: "9.3"
755
2289
  },
756
2290
  qUnsavedVersionWarning: {
757
- label: "Unsaved version banner"
2291
+ label: "Unsaved version banner",
2292
+ description: "The warning banner for the export unsaved saved version option",
2293
+ since: "9.3"
758
2294
  },
759
2295
  // Duplicate modal
760
2296
  qCharts: {
761
- label: "Charts"
2297
+ label: "Charts",
2298
+ description: 'Controls the "Charts" choice group in the modal (duplicate vs. keep original charts).',
2299
+ since: "9.5"
762
2300
  },
763
2301
  qFilters: {
764
- label: "Filters"
2302
+ label: "Filters",
2303
+ description: `Controls the "Filters" choice group (duplicate vs. don't duplicate filters).`,
2304
+ since: "9.5"
765
2305
  },
766
2306
  qDashActions: {
767
- label: "Dashboard actions"
2307
+ label: "Dashboard actions",
2308
+ description: `Controls the "Actions" choice group (duplicate vs. don't duplicate dashboard actions).`,
2309
+ since: "9.5"
768
2310
  }
769
2311
  };
770
2312
 
@@ -801,7 +2343,7 @@ var WidgetVersion = /* @__PURE__ */ function(WidgetVersion2) {
801
2343
  }({});
802
2344
 
803
2345
  // src/utils/defaults.helpers.ts
804
- var FONT_SIZES = [
2346
+ var FONT_SIZES2 = [
805
2347
  8,
806
2348
  9,
807
2349
  10,
@@ -853,10 +2395,10 @@ var numberMinMaxValue = /* @__PURE__ */ __name((maxValue, minValue) => (value) =
853
2395
  }, "numberMinMaxValue");
854
2396
  var fontSizeMinMaxValue = /* @__PURE__ */ __name((minSize, maxSize) => (value) => {
855
2397
  const inputSize = parseInt(value, 10);
856
- if (FONT_SIZES.includes(inputSize) && inputSize >= minSize && inputSize <= maxSize) {
2398
+ if (FONT_SIZES2.includes(inputSize) && inputSize >= minSize && inputSize <= maxSize) {
857
2399
  return `${inputSize}px`;
858
2400
  }
859
- const validFontSizes = FONT_SIZES.filter((size) => size >= minSize && size <= maxSize);
2401
+ const validFontSizes = FONT_SIZES2.filter((size) => size >= minSize && size <= maxSize);
860
2402
  if (validFontSizes.length === 0) {
861
2403
  return void 0;
862
2404
  }
@@ -2076,8 +3618,8 @@ function getViewPrefix(view) {
2076
3618
  return view ? `${view}${STRUCTURE_VIEW_NAME_SEPARATOR}` : "";
2077
3619
  }
2078
3620
  __name(getViewPrefix, "getViewPrefix");
2079
- function getStructureKey(key, viewPrefix) {
2080
- const viewValue = getViewPrefix(viewPrefix);
3621
+ function getStructureKey(key, viewPrefix2) {
3622
+ const viewValue = getViewPrefix(viewPrefix2);
2081
3623
  return `${viewValue}${key}`;
2082
3624
  }
2083
3625
  __name(getStructureKey, "getStructureKey");
@@ -2122,9 +3664,9 @@ function canInsertInCustomization(key, customization, validateKeepOption, keepAl
2122
3664
  };
2123
3665
  }
2124
3666
  __name(canInsertInCustomization, "canInsertInCustomization");
2125
- function evalInsertKey(key, { viewKeys, viewPrefix = "", hasKeepOption, keepAliases }, customization) {
3667
+ function evalInsertKey(key, { viewKeys, viewPrefix: viewPrefix2 = "", hasKeepOption, keepAliases }, customization) {
2126
3668
  var _a;
2127
- const customizationView = (_a = customization == null ? void 0 : customization.views) == null ? void 0 : _a[viewPrefix];
3669
+ const customizationView = (_a = customization == null ? void 0 : customization.views) == null ? void 0 : _a[viewPrefix2];
2128
3670
  const custCanInsert = customization ? canInsertInCustomization(key, customization, hasKeepOption === "root", keepAliases) : {
2129
3671
  canInsert: true,
2130
3672
  conditionAffect: false
@@ -2141,10 +3683,10 @@ function evalInsertKey(key, { viewKeys, viewPrefix = "", hasKeepOption, keepAlia
2141
3683
  };
2142
3684
  }
2143
3685
  __name(evalInsertKey, "evalInsertKey");
2144
- function canInsertKey(key, { viewKeys, viewPrefix = "", hasKeepOption, checkCondition = false, keepAliases }, customization) {
3686
+ function canInsertKey(key, { viewKeys, viewPrefix: viewPrefix2 = "", hasKeepOption, checkCondition = false, keepAliases }, customization) {
2145
3687
  const result = evalInsertKey(key, {
2146
3688
  viewKeys,
2147
- viewPrefix,
3689
+ viewPrefix: viewPrefix2,
2148
3690
  hasKeepOption,
2149
3691
  keepAliases
2150
3692
  }, customization);
@@ -2155,8 +3697,8 @@ function canInsertKey(key, { viewKeys, viewPrefix = "", hasKeepOption, checkCond
2155
3697
  };
2156
3698
  }
2157
3699
  __name(canInsertKey, "canInsertKey");
2158
- function addKeyToPermissions(permissionMap, key, { viewPrefix, checkCondition, conditionMaps }, defaults, childMap, conditionAffect) {
2159
- const keyAttr = getStructureKey(key, viewPrefix);
3700
+ function addKeyToPermissions(permissionMap, key, { viewPrefix: viewPrefix2, checkCondition, conditionMaps }, defaults, childMap, conditionAffect) {
3701
+ const keyAttr = getStructureKey(key, viewPrefix2);
2160
3702
  if (checkCondition && conditionAffect != null) {
2161
3703
  permissionMap[keyAttr] = conditionAffect;
2162
3704
  return;
@@ -2173,10 +3715,10 @@ function addKeyToPermissions(permissionMap, key, { viewPrefix, checkCondition, c
2173
3715
  });
2174
3716
  }
2175
3717
  __name(addKeyToPermissions, "addKeyToPermissions");
2176
- function calculatePermissionMap(config, customization, { viewKeys, pathPrefix = "", viewPrefix = "", hasKeepOption: previousKeepOption, prevDefaults, customDefaults, conditionMaps, checkCondition, keepAliases }) {
3718
+ function calculatePermissionMap(config, customization, { viewKeys, pathPrefix = "", viewPrefix: viewPrefix2 = "", hasKeepOption: previousKeepOption, prevDefaults, customDefaults, conditionMaps, checkCondition, keepAliases }) {
2177
3719
  const permissionMap = {};
2178
3720
  const currentKeepOption = nodeHasKeepOption(config, customization, {
2179
- viewPrefix,
3721
+ viewPrefix: viewPrefix2,
2180
3722
  pathPrefix
2181
3723
  });
2182
3724
  for (const key in config) {
@@ -2189,7 +3731,7 @@ function calculatePermissionMap(config, customization, { viewKeys, pathPrefix =
2189
3731
  const newPrefix = `${currentKey}${STRUCTURE_SECTION_NAME_SEPARATOR}`;
2190
3732
  const canInsertResult = canInsertKey(currentKey, {
2191
3733
  viewKeys,
2192
- viewPrefix,
3734
+ viewPrefix: viewPrefix2,
2193
3735
  hasKeepOption,
2194
3736
  checkCondition,
2195
3737
  keepAliases
@@ -2203,7 +3745,7 @@ function calculatePermissionMap(config, customization, { viewKeys, pathPrefix =
2203
3745
  defaults = calculateDefaults(prevDefaults, {}, customDefaults);
2204
3746
  childMap = calculatePermissionMapArray(configValue, customization, {
2205
3747
  viewKeys,
2206
- viewPrefix,
3748
+ viewPrefix: viewPrefix2,
2207
3749
  pathPrefix: newPrefix,
2208
3750
  prevDefaults,
2209
3751
  customDefaults,
@@ -2216,7 +3758,7 @@ function calculatePermissionMap(config, customization, { viewKeys, pathPrefix =
2216
3758
  defaults = calculateDefaults(prevDefaults, configValue.defaults, customDefaults);
2217
3759
  childMap = calculatePermissionMap(configValue, customization, {
2218
3760
  viewKeys,
2219
- viewPrefix,
3761
+ viewPrefix: viewPrefix2,
2220
3762
  pathPrefix: newPrefix,
2221
3763
  prevDefaults: defaults,
2222
3764
  conditionMaps,
@@ -2230,7 +3772,7 @@ function calculatePermissionMap(config, customization, { viewKeys, pathPrefix =
2230
3772
  defaults = calculateDefaults(prevDefaults, {}, customDefaults);
2231
3773
  }
2232
3774
  addKeyToPermissions(permissionMap, currentKey, {
2233
- viewPrefix,
3775
+ viewPrefix: viewPrefix2,
2234
3776
  checkCondition,
2235
3777
  conditionMaps
2236
3778
  }, defaults, childMap, canInsertResult.conditionAffect);
@@ -2305,7 +3847,7 @@ function mapObjKeys(configValue, { pathPrefix }) {
2305
3847
  return Object.keys(configValue).map((x) => getStructureKey(`${pathPrefix}${x}`));
2306
3848
  }
2307
3849
  __name(mapObjKeys, "mapObjKeys");
2308
- function mapArrayKeys(configValue, { viewPrefix, pathPrefix }) {
3850
+ function mapArrayKeys(configValue, { viewPrefix: viewPrefix2, pathPrefix }) {
2309
3851
  return configValue.reduce((result, value) => {
2310
3852
  if (typeof value === "string") {
2311
3853
  result.push(getStructureKey(`${pathPrefix}${value}`));
@@ -2318,16 +3860,16 @@ function mapArrayKeys(configValue, { viewPrefix, pathPrefix }) {
2318
3860
  }, []);
2319
3861
  }
2320
3862
  __name(mapArrayKeys, "mapArrayKeys");
2321
- function nodeHasKeepOption(configValue, customization, { viewPrefix, pathPrefix }) {
3863
+ function nodeHasKeepOption(configValue, customization, { viewPrefix: viewPrefix2, pathPrefix }) {
2322
3864
  var _a;
2323
3865
  if (!customization) return;
2324
3866
  const nodeKeys = Array.isArray(configValue) ? mapArrayKeys(configValue, {
2325
- viewPrefix,
3867
+ viewPrefix: viewPrefix2,
2326
3868
  pathPrefix
2327
3869
  }) : mapObjKeys(configValue, {
2328
3870
  pathPrefix
2329
3871
  });
2330
- const customizationView = viewPrefix ? (_a = customization == null ? void 0 : customization.views) == null ? void 0 : _a[viewPrefix] : void 0;
3872
+ const customizationView = viewPrefix2 ? (_a = customization == null ? void 0 : customization.views) == null ? void 0 : _a[viewPrefix2] : void 0;
2331
3873
  for (const key of nodeKeys) {
2332
3874
  if (keyIsIncludedInKeep(key, customization)) {
2333
3875
  return "root";
@@ -2338,10 +3880,10 @@ function nodeHasKeepOption(configValue, customization, { viewPrefix, pathPrefix
2338
3880
  return void 0;
2339
3881
  }
2340
3882
  __name(nodeHasKeepOption, "nodeHasKeepOption");
2341
- function calculatePermissionMapArray(configValue, customization, { viewKeys, viewPrefix, pathPrefix, prevDefaults, customDefaults, conditionMaps, checkCondition, keepAliases }) {
3883
+ function calculatePermissionMapArray(configValue, customization, { viewKeys, viewPrefix: viewPrefix2, pathPrefix, prevDefaults, customDefaults, conditionMaps, checkCondition, keepAliases }) {
2342
3884
  const permissionMap = {};
2343
3885
  const hasKeepOption = nodeHasKeepOption(configValue, customization, {
2344
- viewPrefix,
3886
+ viewPrefix: viewPrefix2,
2345
3887
  pathPrefix
2346
3888
  });
2347
3889
  const defaultsSimple = calculateDefaults(prevDefaults, void 0, customDefaults);
@@ -2350,7 +3892,7 @@ function calculatePermissionMapArray(configValue, customization, { viewKeys, vie
2350
3892
  if (typeof option === "string") {
2351
3893
  const canInsertResult = canInsertKey(fullPath, {
2352
3894
  viewKeys,
2353
- viewPrefix,
3895
+ viewPrefix: viewPrefix2,
2354
3896
  hasKeepOption,
2355
3897
  checkCondition,
2356
3898
  keepAliases
@@ -2359,7 +3901,7 @@ function calculatePermissionMapArray(configValue, customization, { viewKeys, vie
2359
3901
  return;
2360
3902
  }
2361
3903
  addKeyToPermissions(permissionMap, fullPath, {
2362
- viewPrefix,
3904
+ viewPrefix: viewPrefix2,
2363
3905
  checkCondition,
2364
3906
  conditionMaps
2365
3907
  }, defaultsSimple, void 0, canInsertResult.conditionAffect);
@@ -2367,7 +3909,7 @@ function calculatePermissionMapArray(configValue, customization, { viewKeys, vie
2367
3909
  Object.assign(permissionMap, calculatePermissionMap(option, customization, {
2368
3910
  viewKeys,
2369
3911
  pathPrefix,
2370
- viewPrefix,
3912
+ viewPrefix: viewPrefix2,
2371
3913
  hasKeepOption,
2372
3914
  prevDefaults,
2373
3915
  customDefaults,
@@ -2532,31 +4074,68 @@ __name(structureFromSubmodule, "structureFromSubmodule");
2532
4074
  // src/metadata/customization-metadata.ts
2533
4075
  var widgetMetadata = {
2534
4076
  [Widget.DASHBOARD]: {
2535
- labels: DASHBOARD_LABELS
4077
+ labels: DASHBOARD_LABELS,
4078
+ defaults: DASHBOARD_DEFAULTS
2536
4079
  },
2537
4080
  [Widget.CHART_PANEL]: {
2538
- labels: CHART_PANEL_LABELS
4081
+ labels: CHART_PANEL_LABELS,
4082
+ defaults: CHART_PANEL_DEFAULTS
2539
4083
  }
2540
4084
  };
4085
+ var findWidgetOfSubmodule = /* @__PURE__ */ __name((name) => Object.keys(WIDGET_SUBMODULE_NAMES).find((key) => WIDGET_SUBMODULE_NAMES[key] === name), "findWidgetOfSubmodule");
2541
4086
  var widgetOfSubmodule = /* @__PURE__ */ __name((name) => {
2542
- const widget = Object.keys(WIDGET_SUBMODULE_NAMES).find((key) => WIDGET_SUBMODULE_NAMES[key] === name);
4087
+ const widget = findWidgetOfSubmodule(name);
2543
4088
  if (!widget) throw new Error(`No widget registered for the submodule ${name}`);
2544
4089
  return widget;
2545
4090
  }, "widgetOfSubmodule");
2546
- function resolveTarget(widget, target, version) {
2547
- var _a, _b;
2548
- const embedded = ((_a = target.subModules) == null ? void 0 : _a.length) ? widgetOfSubmodule(target.subModules[target.subModules.length - 1]) : widget;
2549
- const config = getWidgetConfig(embedded, ((_b = target.subModules) == null ? void 0 : _b.length) ? void 0 : version);
4091
+ var isWidgetConfig = /* @__PURE__ */ __name((source) => typeof source.version === "string" && typeof source.baseStructure === "object", "isWidgetConfig");
4092
+ var rootOf = /* @__PURE__ */ __name((source) => isWidgetConfig(source) ? source.baseStructure : source, "rootOf");
4093
+ function structureRootOf(widget, options = {}, subModule) {
4094
+ var _a;
4095
+ const source = subModule ? (_a = options.subModuleStructures) == null ? void 0 : _a[subModule] : options.structure;
4096
+ if (source) return rootOf(source);
4097
+ return getWidgetConfig(widget, subModule ? void 0 : options.version).baseStructure;
4098
+ }
4099
+ __name(structureRootOf, "structureRootOf");
4100
+ var asCustomization = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0, "asCustomization");
4101
+ function resolveTarget(widget, target, options) {
4102
+ var _a;
4103
+ const subModules = (_a = target.subModules) != null ? _a : [];
4104
+ const host = structureRootOf(widget, options);
4105
+ const views = host.views ? target.views : [
4106
+ void 0
4107
+ ];
4108
+ if (!subModules.length) {
4109
+ return {
4110
+ widget,
4111
+ keys: views.map((view) => structureKeysOf(widget, view, options.version, {
4112
+ structure: host
4113
+ }))
4114
+ };
4115
+ }
4116
+ const embedded = widgetOfSubmodule(subModules[subModules.length - 1]);
2550
4117
  return {
2551
4118
  widget: embedded,
2552
- views: config.baseStructure.views ? target.views : [
2553
- void 0
2554
- ]
4119
+ keys: views.map((view) => {
4120
+ let structure = host;
4121
+ let customization;
4122
+ let hostView = view;
4123
+ subModules.forEach((name) => {
4124
+ const instance = new WidgetStructureInstance(calculateViewMap(structure, customization));
4125
+ customization = asCustomization(instance.getSubmodule(name, hostView));
4126
+ structure = structureRootOf(widgetOfSubmodule(name), options, name);
4127
+ hostView = structure.views ? view : void 0;
4128
+ });
4129
+ return structureKeysOf(embedded, hostView, void 0, {
4130
+ structure,
4131
+ customization
4132
+ });
4133
+ })
2555
4134
  };
2556
4135
  }
2557
4136
  __name(resolveTarget, "resolveTarget");
2558
- function structureKeysOf(widget, view, version) {
2559
- const map = calculateViewMap(getWidgetConfig(widget, version).baseStructure);
4137
+ function structureKeysOf(widget, view, version, options = {}) {
4138
+ const map = calculateViewMap(options.structure ? rootOf(options.structure) : getWidgetConfig(widget, version).baseStructure, options.customization);
2560
4139
  const prefix = view ? `${view}${STRUCTURE_VIEW_NAME_SEPARATOR}` : "";
2561
4140
  return Object.keys(map).filter((key) => view ? key.startsWith(prefix) : !key.includes(STRUCTURE_VIEW_NAME_SEPARATOR)).map((key) => key.slice(prefix.length)).filter((key) => key !== "subModules");
2562
4141
  }
@@ -2572,14 +4151,11 @@ function getCustomizationLabel(widget, key) {
2572
4151
  }
2573
4152
  __name(getCustomizationLabel, "getCustomizationLabel");
2574
4153
  function getCustomizationTree(widget, target, options = {}) {
2575
- const resolved = resolveTarget(widget, target, options.version);
4154
+ const resolved = resolveTarget(widget, target, options);
2576
4155
  const ordered = [];
2577
- resolved.views.forEach((view) => {
2578
- var _a;
2579
- return structureKeysOf(resolved.widget, view, ((_a = target.subModules) == null ? void 0 : _a.length) ? void 0 : options.version).forEach((key) => {
2580
- if (!ordered.includes(key)) ordered.push(key);
2581
- });
2582
- });
4156
+ resolved.keys.forEach((keys) => keys.forEach((key) => {
4157
+ if (!ordered.includes(key)) ordered.push(key);
4158
+ }));
2583
4159
  const roots = [];
2584
4160
  const nodes = /* @__PURE__ */ new Map();
2585
4161
  const ensure = /* @__PURE__ */ __name((key) => {
@@ -2745,6 +4321,219 @@ function toggleCustomizationKey(customization, target, key, visible) {
2745
4321
  }
2746
4322
  __name(toggleCustomizationKey, "toggleCustomizationKey");
2747
4323
 
2748
- export { getCustomizationLabel, getCustomizationTree, getCustomizationTreeState, structureKeysOf, toggleCustomizationKey, widgetMetadata };
4324
+ // src/metadata/labels/submodule.labels.ts
4325
+ var SUBMODULE_LABELS = {
4326
+ chartPanel: {
4327
+ label: "Chart panel"
4328
+ },
4329
+ chartBuilder: {
4330
+ label: "Chart builder"
4331
+ },
4332
+ chartGallery: {
4333
+ label: "Chart gallery"
4334
+ },
4335
+ downloadModal: {
4336
+ label: "Download modal"
4337
+ }
4338
+ };
4339
+
4340
+ // src/metadata/customization-docs.ts
4341
+ var DEFAULT_AUDIENCE = "partner";
4342
+ var compact = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, field]) => field !== void 0)), "compact");
4343
+ var asObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : {}, "asObject");
4344
+ var viewPrefix = /* @__PURE__ */ __name((view) => view ? `${view}${STRUCTURE_VIEW_NAME_SEPARATOR}` : "", "viewPrefix");
4345
+ var parentOf = /* @__PURE__ */ __name((key) => {
4346
+ const index = key.lastIndexOf(STRUCTURE_SECTION_NAME_SEPARATOR);
4347
+ return index < 0 ? void 0 : key.slice(0, index);
4348
+ }, "parentOf");
4349
+ var typeOf = /* @__PURE__ */ __name((value) => {
4350
+ if (value === void 0) return void 0;
4351
+ return Array.isArray(value) ? "Array" : typeof value;
4352
+ }, "typeOf");
4353
+ var ownerByPath = /* @__PURE__ */ __name((name, keys) => keys.filter((key) => name.startsWith(`${key}${STRUCTURE_SECTION_NAME_SEPARATOR}`)).sort((left, right) => right.length - left.length)[0], "ownerByPath");
4354
+ function declaredDefaults(widget, structure) {
4355
+ const instance = new WidgetStructureInstance(calculateViewMap(structure));
4356
+ const root = asObject(structure.defaults);
4357
+ const declared = /* @__PURE__ */ new Map();
4358
+ const views = structure.views ? Object.keys(structure.views) : [
4359
+ void 0
4360
+ ];
4361
+ views.forEach((view) => structureKeysOf(widget, view, void 0, {
4362
+ structure
4363
+ }).forEach((key) => {
4364
+ const parent = parentOf(key);
4365
+ const inherited = parent ? asObject(instance.getDefaults(viewPrefix(view) + parent)) : root;
4366
+ Object.entries(asObject(instance.getDefaults(viewPrefix(view) + key))).filter(([name, value]) => !(name in inherited) || JSON.stringify(inherited[name]) !== JSON.stringify(value)).forEach(([name, value]) => declared.set(key, __spreadProps(__spreadValues({}, declared.get(key)), {
4367
+ [name]: value
4368
+ })));
4369
+ }));
4370
+ return declared;
4371
+ }
4372
+ __name(declaredDefaults, "declaredDefaults");
4373
+ function defaultDocsOf(widget, structure, validators) {
4374
+ var _a, _b;
4375
+ const labels = (_b = (_a = widgetMetadata[widget]) == null ? void 0 : _a.defaults) != null ? _b : {};
4376
+ const values = /* @__PURE__ */ new Map();
4377
+ const declaredBy = /* @__PURE__ */ new Map();
4378
+ Object.entries(asObject(structure.defaults)).forEach(([name, value]) => values.set(name, value));
4379
+ declaredDefaults(widget, structure).forEach((defaults, key) => Object.entries(defaults).forEach(([name, value]) => {
4380
+ var _a2;
4381
+ if (!values.has(name)) values.set(name, value);
4382
+ declaredBy.set(name, [
4383
+ ...(_a2 = declaredBy.get(name)) != null ? _a2 : [],
4384
+ key
4385
+ ]);
4386
+ }));
4387
+ const names = [
4388
+ .../* @__PURE__ */ new Set([
4389
+ ...Object.keys(labels),
4390
+ ...values.keys(),
4391
+ ...Object.keys(validators)
4392
+ ])
4393
+ ];
4394
+ const docs = names.map((name) => {
4395
+ var _a2, _b2, _c;
4396
+ const label = (_a2 = labels[name]) != null ? _a2 : {};
4397
+ const value = values.get(name);
4398
+ return compact({
4399
+ name,
4400
+ type: (_b2 = label.type) != null ? _b2 : typeOf(value),
4401
+ values: label.values,
4402
+ example: value === void 0 ? label.example : JSON.stringify(value),
4403
+ description: label.description,
4404
+ since: label.since,
4405
+ notes: label.notes,
4406
+ audience: (_c = label.audience) != null ? _c : DEFAULT_AUDIENCE
4407
+ });
4408
+ });
4409
+ return {
4410
+ docs,
4411
+ declaredBy
4412
+ };
4413
+ }
4414
+ __name(defaultDocsOf, "defaultDocsOf");
4415
+ var validatorsOf = /* @__PURE__ */ __name((widget, validationMap) => {
4416
+ var _a;
4417
+ return (_a = validationMap != null ? validationMap : widgetValidators[widget]) != null ? _a : {};
4418
+ }, "validatorsOf");
4419
+ function defaultsByKey({ docs, declaredBy }, keys) {
4420
+ const byKey = /* @__PURE__ */ new Map();
4421
+ docs.forEach((doc) => {
4422
+ var _a;
4423
+ const declared = ((_a = declaredBy.get(doc.name)) != null ? _a : []).filter((key) => keys.includes(key));
4424
+ const owners = declared.length ? declared : [
4425
+ ownerByPath(doc.name, keys)
4426
+ ].filter((key) => !!key);
4427
+ owners.forEach((key) => {
4428
+ var _a2;
4429
+ return byKey.set(key, [
4430
+ ...(_a2 = byKey.get(key)) != null ? _a2 : [],
4431
+ doc
4432
+ ]);
4433
+ });
4434
+ });
4435
+ return byKey;
4436
+ }
4437
+ __name(defaultsByKey, "defaultsByKey");
4438
+ function flatten(widget, tree, scope, defaults) {
4439
+ const keys = [];
4440
+ const collect = /* @__PURE__ */ __name((nodes) => nodes.forEach((node) => {
4441
+ var _a;
4442
+ keys.push(node.key);
4443
+ collect((_a = node.children) != null ? _a : []);
4444
+ }), "collect");
4445
+ collect(tree);
4446
+ const byKey = defaultsByKey(defaults, keys);
4447
+ const walk = /* @__PURE__ */ __name((nodes, parent, inherited) => nodes.flatMap((node) => {
4448
+ var _a;
4449
+ const { since, notes, audience } = getCustomizationLabel(widget, node.key);
4450
+ const own = audience != null ? audience : inherited;
4451
+ const entry = compact({
4452
+ key: node.key,
4453
+ scope,
4454
+ parent,
4455
+ kind: node.kind,
4456
+ label: node.label,
4457
+ description: node.description,
4458
+ since,
4459
+ notes,
4460
+ audience: own,
4461
+ defaults: byKey.get(node.key)
4462
+ });
4463
+ return [
4464
+ entry,
4465
+ ...walk((_a = node.children) != null ? _a : [], node.key, own)
4466
+ ];
4467
+ }), "walk");
4468
+ return walk(tree, null, DEFAULT_AUDIENCE);
4469
+ }
4470
+ __name(flatten, "flatten");
4471
+ function subModuleEntry(widget, name, scope) {
4472
+ var _a;
4473
+ const key = `subModules${STRUCTURE_SECTION_NAME_SEPARATOR}${name}`;
4474
+ const { label, description, since, notes, audience } = (_a = SUBMODULE_LABELS[name]) != null ? _a : getCustomizationLabel(widget, key);
4475
+ return compact({
4476
+ key,
4477
+ scope,
4478
+ parent: null,
4479
+ kind: "subModule",
4480
+ label,
4481
+ description,
4482
+ since,
4483
+ notes,
4484
+ audience: audience != null ? audience : DEFAULT_AUDIENCE
4485
+ });
4486
+ }
4487
+ __name(subModuleEntry, "subModuleEntry");
4488
+ function getCustomizationDocs(widget, options = {}) {
4489
+ const structure = structureRootOf(widget, options);
4490
+ const map = calculateViewMap(structure);
4491
+ const hostDefaults = defaultDocsOf(widget, structure, validatorsOf(widget, options.validationMap));
4492
+ const views = structure.views ? Object.keys(structure.views).filter((view) => !options.views || options.views.includes(view)) : [
4493
+ void 0
4494
+ ];
4495
+ return views.flatMap((view) => {
4496
+ const scope = view != null ? view : "";
4497
+ const target = {
4498
+ views: view ? [
4499
+ view
4500
+ ] : []
4501
+ };
4502
+ const entries = flatten(widget, getCustomizationTree(widget, target, options), scope, hostDefaults);
4503
+ Object.keys(asObject(map[`${viewPrefix(view)}subModules`])).filter((name) => !options.subModules || options.subModules.includes(name)).forEach((name) => {
4504
+ entries.push(subModuleEntry(widget, name, scope));
4505
+ const embedded = findWidgetOfSubmodule(name);
4506
+ if (!embedded) return;
4507
+ entries.push(...flatten(embedded, getCustomizationTree(widget, __spreadProps(__spreadValues({}, target), {
4508
+ subModules: [
4509
+ name
4510
+ ]
4511
+ }), options), view ? `${view}${STRUCTURE_VIEW_NAME_SEPARATOR}${name}` : name, defaultDocsOf(embedded, structureRootOf(embedded, options, name), validatorsOf(embedded))));
4512
+ });
4513
+ return entries;
4514
+ });
4515
+ }
4516
+ __name(getCustomizationDocs, "getCustomizationDocs");
4517
+ function getCustomizationDefaultDocs(widget, options = {}) {
4518
+ const structure = structureRootOf(widget, options);
4519
+ const { docs, declaredBy } = defaultDocsOf(widget, structure, validatorsOf(widget, options.validationMap));
4520
+ const views = structure.views ? Object.keys(structure.views) : [
4521
+ void 0
4522
+ ];
4523
+ const keys = [
4524
+ ...new Set(views.flatMap((view) => structureKeysOf(widget, view, void 0, {
4525
+ structure
4526
+ })))
4527
+ ];
4528
+ return docs.map((doc) => {
4529
+ var _a, _b, _c;
4530
+ return __spreadProps(__spreadValues({}, doc), {
4531
+ key: (_c = (_b = (_a = declaredBy.get(doc.name)) == null ? void 0 : _a[0]) != null ? _b : ownerByPath(doc.name, keys)) != null ? _c : null
4532
+ });
4533
+ });
4534
+ }
4535
+ __name(getCustomizationDefaultDocs, "getCustomizationDefaultDocs");
4536
+
4537
+ export { getCustomizationDefaultDocs, getCustomizationDocs, getCustomizationLabel, getCustomizationTree, getCustomizationTreeState, structureKeysOf, toggleCustomizationKey, widgetMetadata };
2749
4538
  //# sourceMappingURL=metadata.mjs.map
2750
4539
  //# sourceMappingURL=metadata.mjs.map