@emuanalytics/flow-rdf-ui 4.1.0-preview.13 → 4.1.0-preview.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,12 @@
1
1
  import { Chart } from 'chart.js';
2
- import { html } from 'lit';
2
+ import { html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { createRef, ref } from 'lit/directives/ref.js';
5
5
  import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
6
6
  import { watch } from '../../internal/watch.mjs';
7
7
  import styles from './chart.styles.mjs';
8
+ import { HasSlotController } from '../../internal/slot.mjs';
9
+ import { isStringFull } from '../../internal/type-checks.mjs';
8
10
  import { initializeChartJs } from './chartjs-support.mjs';
9
11
 
10
12
  var __defProp = Object.defineProperty;
@@ -21,7 +23,9 @@ var __decorateClass = (decorators, target, key, kind) => {
21
23
  class FlowUiChart extends FlowRdfElement {
22
24
  constructor() {
23
25
  super(...arguments);
26
+ this.hasSlotController = new HasSlotController(this, "label");
24
27
  this._chartRef = createRef();
28
+ this.label = "";
25
29
  this.plugins = [];
26
30
  }
27
31
  /** The Chart.js chart instance. */
@@ -54,14 +58,26 @@ class FlowUiChart extends FlowRdfElement {
54
58
  }
55
59
  }
56
60
  render() {
61
+ const hasHeader = isStringFull(this.label) || this.hasSlotController.test("label");
57
62
  return html`
58
63
  <div part="base" class="chart">
59
- <canvas ${ref(this._chartRef)}></canvas>
64
+ ${hasHeader ? html`
65
+ <header part="header" class="chart__header">
66
+ <span part="label" class="chart__label"><slot name="label">${this.label}</slot></span>
67
+ </header>
68
+ ` : nothing}
69
+
70
+ <div class="chart_container">
71
+ <canvas ${ref(this._chartRef)}></canvas>
72
+ </div>
60
73
  </div>
61
74
  `;
62
75
  }
63
76
  }
64
77
  FlowUiChart.styles = styles;
78
+ __decorateClass([
79
+ property()
80
+ ], FlowUiChart.prototype, "label", 2);
65
81
  __decorateClass([
66
82
  property()
67
83
  ], FlowUiChart.prototype, "type", 2);
@@ -66,14 +66,33 @@ const styles = css`
66
66
 
67
67
  --dataset-stroke-color-9: var(--flow-ui-chart-stroke-color-9, hsl(292.1 88.4% 57.7%));
68
68
  --dataset-fill-color-9: var(--flow-ui-chart-fill-color-9, hsl(292.1 88.4% 57.7%));
69
+
70
+ --header-padding: var(--flow-ui-chart-header-padding, var(--flow-ui-spacing-x-small));
71
+ --header-height: var(--flow-ui-chart-header-height, var(--flow-ui-control-height-medium));
72
+ --header-font-size: var(--flow-ui-chart-header-font-size, var(--flow-ui-font-size-medium));
73
+ --header-color: var(--flow-ui-chart-header-color, var(--flow-ui-color-text));
69
74
  }
70
75
 
71
76
  .chart {
77
+ height: 100%;
72
78
  background-color: var(--background-color);
79
+ display: flex;
80
+ flex-direction: column;
81
+ }
82
+
83
+ .chart__header {
84
+ flex: 0 0 auto;
85
+ padding: var(--header-padding);
86
+ height: var(--header-height);
87
+ font-size: var(--header-font-size);
88
+ color: var(--header-color);
89
+ }
90
+
91
+ .chart_container {
92
+ flex: 1;
73
93
  position: relative;
74
94
  width: 100%;
75
95
  height: 100%;
76
- /* padding: var(--flow-ui-spacing-x-small); */
77
96
  }
78
97
  `;
79
98
 
@@ -35,8 +35,22 @@ function transformRuleSet(ruleSet, transformFn, clone = true) {
35
35
  }).filter(isRuleOrRuleset);
36
36
  return ruleSet;
37
37
  }
38
+ function countRuleSet(ruleset) {
39
+ const activeFilters = (ruleSet) => {
40
+ let count = 0;
41
+ for (const rule of ruleSet.rules) {
42
+ if (isRule(rule) && rule.field && rule.enabled) {
43
+ count += 1;
44
+ } else if (isRuleSet(rule)) {
45
+ count += activeFilters(rule);
46
+ }
47
+ }
48
+ return count;
49
+ };
50
+ return activeFilters(ruleset);
51
+ }
38
52
  const isRule = (r) => isObjectFull(r) && "field" in r;
39
53
  const isRuleSet = (r) => isObjectFull(r) && "rules" in r;
40
54
  const isRuleOrRuleset = (r) => isRule(r) || isRuleSet(r);
41
55
 
42
- export { filterRuleSet, isRule, isRuleOrRuleset, isRuleSet, renameRuleSetFields, transformRuleSet };
56
+ export { countRuleSet, filterRuleSet, isRule, isRuleOrRuleset, isRuleSet, renameRuleSetFields, transformRuleSet };
@@ -1129,129 +1129,6 @@
1129
1129
  }
1130
1130
  ]
1131
1131
  },
1132
- {
1133
- "kind": "javascript-module",
1134
- "path": "components/breadcrumb/breadcrumb.component.js",
1135
- "declarations": [
1136
- {
1137
- "kind": "class",
1138
- "description": "",
1139
- "name": "FlowUiBreadcrumb",
1140
- "cssParts": [
1141
- {
1142
- "description": "The component's base wrapper.",
1143
- "name": "base"
1144
- }
1145
- ],
1146
- "slots": [
1147
- {
1148
- "description": "One or more breadcrumb items to display.",
1149
- "name": ""
1150
- },
1151
- {
1152
- "description": "The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.",
1153
- "name": "separator"
1154
- }
1155
- ],
1156
- "members": [
1157
- {
1158
- "kind": "field",
1159
- "name": "localize",
1160
- "privacy": "private",
1161
- "readonly": true,
1162
- "default": "new LocalizeController(this)"
1163
- },
1164
- {
1165
- "kind": "field",
1166
- "name": "separatorDir",
1167
- "privacy": "private"
1168
- },
1169
- {
1170
- "kind": "field",
1171
- "name": "defaultSlot",
1172
- "type": {
1173
- "text": "HTMLSlotElement"
1174
- },
1175
- "privacy": "private"
1176
- },
1177
- {
1178
- "kind": "field",
1179
- "name": "separatorSlot",
1180
- "type": {
1181
- "text": "HTMLSlotElement"
1182
- },
1183
- "privacy": "private"
1184
- },
1185
- {
1186
- "kind": "field",
1187
- "name": "label",
1188
- "type": {
1189
- "text": "string"
1190
- },
1191
- "default": "''",
1192
- "description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
1193
- "attribute": "label"
1194
- },
1195
- {
1196
- "kind": "method",
1197
- "name": "getSeparator",
1198
- "privacy": "private"
1199
- },
1200
- {
1201
- "kind": "method",
1202
- "name": "handleSlotChange",
1203
- "privacy": "private"
1204
- }
1205
- ],
1206
- "attributes": [
1207
- {
1208
- "name": "label",
1209
- "type": {
1210
- "text": "string"
1211
- },
1212
- "default": "''",
1213
- "description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
1214
- "fieldName": "label"
1215
- }
1216
- ],
1217
- "superclass": {
1218
- "name": "FlowRdfElement",
1219
- "module": "/src/internal/flow-ui-rdf-element"
1220
- },
1221
- "tagName": "flow-ui-breadcrumb",
1222
- "summary": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.",
1223
- "dependencies": [
1224
- "flow-ui-icon"
1225
- ],
1226
- "customElement": true
1227
- }
1228
- ],
1229
- "exports": [
1230
- {
1231
- "kind": "js",
1232
- "name": "default",
1233
- "declaration": {
1234
- "name": "FlowUiBreadcrumb",
1235
- "module": "components/breadcrumb/breadcrumb.component.js"
1236
- }
1237
- }
1238
- ]
1239
- },
1240
- {
1241
- "kind": "javascript-module",
1242
- "path": "components/breadcrumb/breadcrumb.js",
1243
- "declarations": [],
1244
- "exports": [
1245
- {
1246
- "kind": "js",
1247
- "name": "default",
1248
- "declaration": {
1249
- "name": "FlowUiBreadcrumb",
1250
- "module": "components/breadcrumb/breadcrumb.js"
1251
- }
1252
- }
1253
- ]
1254
- },
1255
1132
  {
1256
1133
  "kind": "javascript-module",
1257
1134
  "path": "components/avatar/avatar.component.js",
@@ -1437,6 +1314,129 @@
1437
1314
  }
1438
1315
  ]
1439
1316
  },
1317
+ {
1318
+ "kind": "javascript-module",
1319
+ "path": "components/breadcrumb/breadcrumb.component.js",
1320
+ "declarations": [
1321
+ {
1322
+ "kind": "class",
1323
+ "description": "",
1324
+ "name": "FlowUiBreadcrumb",
1325
+ "cssParts": [
1326
+ {
1327
+ "description": "The component's base wrapper.",
1328
+ "name": "base"
1329
+ }
1330
+ ],
1331
+ "slots": [
1332
+ {
1333
+ "description": "One or more breadcrumb items to display.",
1334
+ "name": ""
1335
+ },
1336
+ {
1337
+ "description": "The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.",
1338
+ "name": "separator"
1339
+ }
1340
+ ],
1341
+ "members": [
1342
+ {
1343
+ "kind": "field",
1344
+ "name": "localize",
1345
+ "privacy": "private",
1346
+ "readonly": true,
1347
+ "default": "new LocalizeController(this)"
1348
+ },
1349
+ {
1350
+ "kind": "field",
1351
+ "name": "separatorDir",
1352
+ "privacy": "private"
1353
+ },
1354
+ {
1355
+ "kind": "field",
1356
+ "name": "defaultSlot",
1357
+ "type": {
1358
+ "text": "HTMLSlotElement"
1359
+ },
1360
+ "privacy": "private"
1361
+ },
1362
+ {
1363
+ "kind": "field",
1364
+ "name": "separatorSlot",
1365
+ "type": {
1366
+ "text": "HTMLSlotElement"
1367
+ },
1368
+ "privacy": "private"
1369
+ },
1370
+ {
1371
+ "kind": "field",
1372
+ "name": "label",
1373
+ "type": {
1374
+ "text": "string"
1375
+ },
1376
+ "default": "''",
1377
+ "description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
1378
+ "attribute": "label"
1379
+ },
1380
+ {
1381
+ "kind": "method",
1382
+ "name": "getSeparator",
1383
+ "privacy": "private"
1384
+ },
1385
+ {
1386
+ "kind": "method",
1387
+ "name": "handleSlotChange",
1388
+ "privacy": "private"
1389
+ }
1390
+ ],
1391
+ "attributes": [
1392
+ {
1393
+ "name": "label",
1394
+ "type": {
1395
+ "text": "string"
1396
+ },
1397
+ "default": "''",
1398
+ "description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
1399
+ "fieldName": "label"
1400
+ }
1401
+ ],
1402
+ "superclass": {
1403
+ "name": "FlowRdfElement",
1404
+ "module": "/src/internal/flow-ui-rdf-element"
1405
+ },
1406
+ "tagName": "flow-ui-breadcrumb",
1407
+ "summary": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.",
1408
+ "dependencies": [
1409
+ "flow-ui-icon"
1410
+ ],
1411
+ "customElement": true
1412
+ }
1413
+ ],
1414
+ "exports": [
1415
+ {
1416
+ "kind": "js",
1417
+ "name": "default",
1418
+ "declaration": {
1419
+ "name": "FlowUiBreadcrumb",
1420
+ "module": "components/breadcrumb/breadcrumb.component.js"
1421
+ }
1422
+ }
1423
+ ]
1424
+ },
1425
+ {
1426
+ "kind": "javascript-module",
1427
+ "path": "components/breadcrumb/breadcrumb.js",
1428
+ "declarations": [],
1429
+ "exports": [
1430
+ {
1431
+ "kind": "js",
1432
+ "name": "default",
1433
+ "declaration": {
1434
+ "name": "FlowUiBreadcrumb",
1435
+ "module": "components/breadcrumb/breadcrumb.js"
1436
+ }
1437
+ }
1438
+ ]
1439
+ },
1440
1440
  {
1441
1441
  "kind": "javascript-module",
1442
1442
  "path": "components/badge/badge.component.js",
@@ -3897,6 +3897,13 @@
3897
3897
  }
3898
3898
  ],
3899
3899
  "members": [
3900
+ {
3901
+ "kind": "field",
3902
+ "name": "hasSlotController",
3903
+ "privacy": "private",
3904
+ "readonly": true,
3905
+ "default": "new HasSlotController(this, 'label')"
3906
+ },
3900
3907
  {
3901
3908
  "kind": "field",
3902
3909
  "name": "_chartRef",
@@ -3919,6 +3926,16 @@
3919
3926
  "description": "The Chart.js chart instance.",
3920
3927
  "readonly": true
3921
3928
  },
3929
+ {
3930
+ "kind": "field",
3931
+ "name": "label",
3932
+ "type": {
3933
+ "text": "string"
3934
+ },
3935
+ "default": "''",
3936
+ "description": "A label displayed in the chart's header. If you need to display HTML, use the `label` slot instead.",
3937
+ "attribute": "label"
3938
+ },
3922
3939
  {
3923
3940
  "kind": "field",
3924
3941
  "name": "type",
@@ -3961,6 +3978,15 @@
3961
3978
  }
3962
3979
  ],
3963
3980
  "attributes": [
3981
+ {
3982
+ "name": "label",
3983
+ "type": {
3984
+ "text": "string"
3985
+ },
3986
+ "default": "''",
3987
+ "description": "A label displayed in the chart's header. If you need to display HTML, use the `label` slot instead.",
3988
+ "fieldName": "label"
3989
+ },
3964
3990
  {
3965
3991
  "name": "type",
3966
3992
  "type": {
@@ -14816,6 +14842,28 @@
14816
14842
  ],
14817
14843
  "description": "Recursively applies a tranform function to the supplied FlowQueryBuilderRuleSet returning a new rule set.\n\nThe transform function should expect a single `FlowQueryBuilderRule` and return:\n\n- the same rule unmodified or modified in place\n- `undefined` to exclude the rule from the rule set\n\nThis can be used to modify and sanitize rule sets before they are used to perform queries."
14818
14844
  },
14845
+ {
14846
+ "kind": "function",
14847
+ "name": "countRuleSet",
14848
+ "return": {
14849
+ "type": {
14850
+ "text": ""
14851
+ }
14852
+ },
14853
+ "parameters": [
14854
+ {
14855
+ "name": "ruleset",
14856
+ "type": {
14857
+ "text": "FlowQueryBuilderRuleSet"
14858
+ }
14859
+ },
14860
+ {
14861
+ "description": "Query builder rule set to count.",
14862
+ "name": "ruleSet"
14863
+ }
14864
+ ],
14865
+ "description": "Recursively count the number of active rules in the supplied FlowQueryBuilderRuleSet.\n\nAn 'active' rules is defined as having a valid field and being enabled."
14866
+ },
14819
14867
  {
14820
14868
  "kind": "function",
14821
14869
  "name": "isRule",
@@ -14896,6 +14944,14 @@
14896
14944
  "module": "components/query-builder/helpers.js"
14897
14945
  }
14898
14946
  },
14947
+ {
14948
+ "kind": "js",
14949
+ "name": "countRuleSet",
14950
+ "declaration": {
14951
+ "name": "countRuleSet",
14952
+ "module": "components/query-builder/helpers.js"
14953
+ }
14954
+ },
14899
14955
  {
14900
14956
  "kind": "js",
14901
14957
  "name": "isRule",
package/dist/index.d.mts CHANGED
@@ -1574,6 +1574,15 @@ declare function renameRuleSetFields(ruleset: FlowQueryBuilderRuleSet, replaceme
1574
1574
  * @returns A new {@link FlowQueryBuilderRuleSet} with transformed rules.
1575
1575
  */
1576
1576
  declare function transformRuleSet(ruleSet: FlowQueryBuilderRuleSet, transformFn: (rule: FlowQueryBuilderRule) => FlowQueryBuilderRule | undefined, clone?: boolean): FlowQueryBuilderRuleSet;
1577
+ /**
1578
+ * Recursively count the number of active rules in the supplied {@link FlowQueryBuilderRuleSet}.
1579
+ *
1580
+ * An 'active' rules is defined as having a valid field and being enabled.
1581
+ *
1582
+ * @param ruleSet Query builder rule set to count.
1583
+ * @returns The number of active rules in the rule set.
1584
+ */
1585
+ declare function countRuleSet(ruleset: FlowQueryBuilderRuleSet): number;
1577
1586
  /**
1578
1587
  * Helper function to determine if the supplied argument is a {@link FlowQueryBuilderRule}
1579
1588
  */
@@ -2579,10 +2588,13 @@ declare global {
2579
2588
  */
2580
2589
  declare class FlowUiChart extends FlowRdfElement {
2581
2590
  static styles: CSSResultGroup;
2591
+ private readonly hasSlotController;
2582
2592
  private _chartRef;
2583
2593
  private _chart;
2584
2594
  /** The Chart.js chart instance. */
2585
2595
  get chart(): Chart<keyof ChartTypeRegistry, (number | chart_js.Point | [number, number] | chart_js.BubbleDataPoint | chartjs_chart_matrix.MatrixDataPoint | null)[], unknown>;
2596
+ /** A label displayed in the chart's header. If you need to display HTML, use the `label` slot instead. */
2597
+ label: string;
2586
2598
  /** The Chart.js chart type (e.g `line`, `bar` or a custom type). */
2587
2599
  type: string;
2588
2600
  /** The Chart.js `options` object. */
@@ -6422,4 +6434,4 @@ declare global {
6422
6434
  }
6423
6435
  }
6424
6436
 
6425
- export { type BaseColorMapperField, type BaseColorStopOptions, type ColorMapperField, type ColorMapperOptions, type ColorMapperValue, type ColorStopOptions, type ColorStopValue, type FlowQueryBuilderConfig, type FlowQueryBuilderConverter, type FlowQueryBuilderConverterOptions, type FlowQueryBuilderDateField, type FlowQueryBuilderDateTimeField, type FlowQueryBuilderDateTimeFieldBase, type FlowQueryBuilderField, type FlowQueryBuilderFieldBase, type FlowQueryBuilderFieldDefinition, type FlowQueryBuilderFieldMap, type FlowQueryBuilderFieldType, type FlowQueryBuilderFieldTypeMap, type FlowQueryBuilderNumberField, type FlowQueryBuilderOption, type FlowQueryBuilderRule, type FlowQueryBuilderRuleSet, type FlowQueryBuilderSelectField, type FlowQueryBuilderStringField, type FlowQueryBuilderTemplateFn, type FlowQueryBuilderTimeField, type FlowAfterCollapseEvent as FlowUiAfterCollapseEvent, type FlowAfterExpandEvent as FlowUiAfterExpandEvent, type FlowAfterHideEvent as FlowUiAfterHideEvent, type FlowAfterShowEvent as FlowUiAfterShowEvent, FlowUiAlert, FlowUiAnimation, FlowUiAvatar, FlowUiBadge, FlowUiBaseControl, type FlowBlurEvent as FlowUiBlurEvent, FlowUiBreadcrumb, FlowUiBreadcrumbItem, FlowUiButton, FlowUiButtonGroup, FlowUiCalendar, type FlowCancelEvent as FlowUiCancelEvent, FlowUiCard, FlowUiCarousel, FlowUiCarouselItem, type FlowChangeEvent as FlowUiChangeEvent, FlowUiChart, FlowUiCheckbox, FlowUiCheckboxGroup, type FlowClearEvent as FlowUiClearEvent, type FlowCloseEvent as FlowUiCloseEvent, type FlowCollapseEvent as FlowUiCollapseEvent, type FlowCollapseTreeEvent as FlowUiCollapseSplitViewEvent, FlowUiColorMapper, FlowUiColorPicker, FlowUiColorStop, FlowUiDateTimePicker, FlowUiDetails, FlowUiDialog, FlowUiDivider, type FlowDragDropEvent as FlowUiDragDrop, type FlowDragEndEvent as FlowUiDragEndEvent, type FlowDragEvent as FlowUiDragEvent, type FlowDragOverEvent as FlowUiDragOverEvent, type FlowDragStartEvent as FlowUiDragStartEvent, FlowUiDrawer, FlowUiDropdown, type FlowErrorEvent as FlowUiErrorEvent, type FlowExpandEvent as FlowUiExpandEvent, type FlowExpandTreeEvent as FlowUiExpandSplitViewEvent, type FlowFinishEvent as FlowUiFinishEvent, type FlowFocusEvent as FlowUiFocusEvent, FlowUiFormGroup, FlowUiGauge, type FlowHideEvent as FlowUiHideEvent, type FlowHoverEvent as FlowUiHoverEvent, FlowUiIcon, FlowUiIconButton, type FlowInitialFocusEvent as FlowUiInitialFocusEvent, FlowUiInput, type FlowInputEvent as FlowUiInputEvent, type FlowInvalidEvent as FlowUiInvalidEvent, type FlowLazyChangeEvent as FlowUiLazyChangeEvent, type FlowLazyLoadEvent as FlowUiLazyLoadEvent, FlowUiList, FlowUiListItem, type FlowLoadEvent as FlowUiLoadEvent, FlowUiMap, type FlowMapLoadEvent as FlowUiMapLoadEvent, FlowUiMenu, FlowUiMenuItem, FlowUiMenuLabel, type FlowMutationEvent as FlowUiMutationEvent, FlowUiMutationObserver, FlowUiOption, FlowUiPanel, FlowUiPanelHeader, type FlowPanelToggleEvent as FlowUiPanelToggleEvent, FlowUiPopup, FlowUiProgressBar, FlowUiProgressRing, FlowUiQueryBuilder, FlowUiRadio, FlowUiRadioGroup, FlowUiRange, type FlowRemoveEvent as FlowUiRemoveEvent, type FlowRepositionEvent as FlowUiRepositionEvent, type FlowRequestCloseEvent as FlowUiRequestCloseEvent, type FlowResizeEvent as FlowUiResizeEvent, FlowUiResizeObserver, FlowUiScrollView, FlowUiSelect, type FlowSelectEvent as FlowUiSelectEvent, type FlowShowEvent as FlowUiShowEvent, type FlowSlideChange as FlowUiSlideChange, FlowUiSpinner, FlowUiSplitView, FlowUiSplitViewDivider, FlowUiSplitViewPane, FlowUiSplitViewToggleButton, type FlowStartEvent as FlowUiStartEvent, FlowUiStepper, FlowUiStepperPanel, FlowUiSwitch, FlowUiTab, FlowUiTabGroup, type FlowTabHideEvent as FlowUiTabHideEvent, FlowUiTabPanel, type FlowTabShowEvent as FlowUiTabShowEvent, FlowUiTag, FlowUiTextarea, FlowUiTimer, FlowUiToolButton, FlowUiToolButtonGroup, FlowUiTooltip, FlowUiTree, FlowUiTreeItem, FlowUiVisuallyHidden, JavaScriptFilterError, type JavaScriptFilterFn, LocalizeController, type NumberColorMapperField, type NumberColorStopOptions, type SelectColorMapperField, type SelectColorStopOptions, type StringColorMapperField, type StringColorStopOptions, type Translation, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, filterRuleSet, converter$2 as flowQueryConverter, getAnimationNames, getEasingNames, initialize, initializeChartJs, isRule, isRuleOrRuleset, isRuleSet, converter$1 as javascriptFilterConverter, converter as mapLayerFilterConverter, registerChartComponent, registerComponents, registerIconLibrary, registerTranslation, renameRuleSetFields, setDefaultLocale, setDefaultTimeZone, transformRuleSet, unregisterIconLibrary };
6437
+ export { type BaseColorMapperField, type BaseColorStopOptions, type ColorMapperField, type ColorMapperOptions, type ColorMapperValue, type ColorStopOptions, type ColorStopValue, type FlowQueryBuilderConfig, type FlowQueryBuilderConverter, type FlowQueryBuilderConverterOptions, type FlowQueryBuilderDateField, type FlowQueryBuilderDateTimeField, type FlowQueryBuilderDateTimeFieldBase, type FlowQueryBuilderField, type FlowQueryBuilderFieldBase, type FlowQueryBuilderFieldDefinition, type FlowQueryBuilderFieldMap, type FlowQueryBuilderFieldType, type FlowQueryBuilderFieldTypeMap, type FlowQueryBuilderNumberField, type FlowQueryBuilderOption, type FlowQueryBuilderRule, type FlowQueryBuilderRuleSet, type FlowQueryBuilderSelectField, type FlowQueryBuilderStringField, type FlowQueryBuilderTemplateFn, type FlowQueryBuilderTimeField, type FlowAfterCollapseEvent as FlowUiAfterCollapseEvent, type FlowAfterExpandEvent as FlowUiAfterExpandEvent, type FlowAfterHideEvent as FlowUiAfterHideEvent, type FlowAfterShowEvent as FlowUiAfterShowEvent, FlowUiAlert, FlowUiAnimation, FlowUiAvatar, FlowUiBadge, FlowUiBaseControl, type FlowBlurEvent as FlowUiBlurEvent, FlowUiBreadcrumb, FlowUiBreadcrumbItem, FlowUiButton, FlowUiButtonGroup, FlowUiCalendar, type FlowCancelEvent as FlowUiCancelEvent, FlowUiCard, FlowUiCarousel, FlowUiCarouselItem, type FlowChangeEvent as FlowUiChangeEvent, FlowUiChart, FlowUiCheckbox, FlowUiCheckboxGroup, type FlowClearEvent as FlowUiClearEvent, type FlowCloseEvent as FlowUiCloseEvent, type FlowCollapseEvent as FlowUiCollapseEvent, type FlowCollapseTreeEvent as FlowUiCollapseSplitViewEvent, FlowUiColorMapper, FlowUiColorPicker, FlowUiColorStop, FlowUiDateTimePicker, FlowUiDetails, FlowUiDialog, FlowUiDivider, type FlowDragDropEvent as FlowUiDragDrop, type FlowDragEndEvent as FlowUiDragEndEvent, type FlowDragEvent as FlowUiDragEvent, type FlowDragOverEvent as FlowUiDragOverEvent, type FlowDragStartEvent as FlowUiDragStartEvent, FlowUiDrawer, FlowUiDropdown, type FlowErrorEvent as FlowUiErrorEvent, type FlowExpandEvent as FlowUiExpandEvent, type FlowExpandTreeEvent as FlowUiExpandSplitViewEvent, type FlowFinishEvent as FlowUiFinishEvent, type FlowFocusEvent as FlowUiFocusEvent, FlowUiFormGroup, FlowUiGauge, type FlowHideEvent as FlowUiHideEvent, type FlowHoverEvent as FlowUiHoverEvent, FlowUiIcon, FlowUiIconButton, type FlowInitialFocusEvent as FlowUiInitialFocusEvent, FlowUiInput, type FlowInputEvent as FlowUiInputEvent, type FlowInvalidEvent as FlowUiInvalidEvent, type FlowLazyChangeEvent as FlowUiLazyChangeEvent, type FlowLazyLoadEvent as FlowUiLazyLoadEvent, FlowUiList, FlowUiListItem, type FlowLoadEvent as FlowUiLoadEvent, FlowUiMap, type FlowMapLoadEvent as FlowUiMapLoadEvent, FlowUiMenu, FlowUiMenuItem, FlowUiMenuLabel, type FlowMutationEvent as FlowUiMutationEvent, FlowUiMutationObserver, FlowUiOption, FlowUiPanel, FlowUiPanelHeader, type FlowPanelToggleEvent as FlowUiPanelToggleEvent, FlowUiPopup, FlowUiProgressBar, FlowUiProgressRing, FlowUiQueryBuilder, FlowUiRadio, FlowUiRadioGroup, FlowUiRange, type FlowRemoveEvent as FlowUiRemoveEvent, type FlowRepositionEvent as FlowUiRepositionEvent, type FlowRequestCloseEvent as FlowUiRequestCloseEvent, type FlowResizeEvent as FlowUiResizeEvent, FlowUiResizeObserver, FlowUiScrollView, FlowUiSelect, type FlowSelectEvent as FlowUiSelectEvent, type FlowShowEvent as FlowUiShowEvent, type FlowSlideChange as FlowUiSlideChange, FlowUiSpinner, FlowUiSplitView, FlowUiSplitViewDivider, FlowUiSplitViewPane, FlowUiSplitViewToggleButton, type FlowStartEvent as FlowUiStartEvent, FlowUiStepper, FlowUiStepperPanel, FlowUiSwitch, FlowUiTab, FlowUiTabGroup, type FlowTabHideEvent as FlowUiTabHideEvent, FlowUiTabPanel, type FlowTabShowEvent as FlowUiTabShowEvent, FlowUiTag, FlowUiTextarea, FlowUiTimer, FlowUiToolButton, FlowUiToolButtonGroup, FlowUiTooltip, FlowUiTree, FlowUiTreeItem, FlowUiVisuallyHidden, JavaScriptFilterError, type JavaScriptFilterFn, LocalizeController, type NumberColorMapperField, type NumberColorStopOptions, type SelectColorMapperField, type SelectColorStopOptions, type StringColorMapperField, type StringColorStopOptions, type Translation, addIcons, colorMapperValueToMaplibreExpression, countRuleSet, escapeMaplibreString, filterRuleSet, converter$2 as flowQueryConverter, getAnimationNames, getEasingNames, initialize, initializeChartJs, isRule, isRuleOrRuleset, isRuleSet, converter$1 as javascriptFilterConverter, converter as mapLayerFilterConverter, registerChartComponent, registerComponents, registerIconLibrary, registerTranslation, renameRuleSetFields, setDefaultLocale, setDefaultTimeZone, transformRuleSet, unregisterIconLibrary };
package/dist/index.d.ts CHANGED
@@ -1574,6 +1574,15 @@ declare function renameRuleSetFields(ruleset: FlowQueryBuilderRuleSet, replaceme
1574
1574
  * @returns A new {@link FlowQueryBuilderRuleSet} with transformed rules.
1575
1575
  */
1576
1576
  declare function transformRuleSet(ruleSet: FlowQueryBuilderRuleSet, transformFn: (rule: FlowQueryBuilderRule) => FlowQueryBuilderRule | undefined, clone?: boolean): FlowQueryBuilderRuleSet;
1577
+ /**
1578
+ * Recursively count the number of active rules in the supplied {@link FlowQueryBuilderRuleSet}.
1579
+ *
1580
+ * An 'active' rules is defined as having a valid field and being enabled.
1581
+ *
1582
+ * @param ruleSet Query builder rule set to count.
1583
+ * @returns The number of active rules in the rule set.
1584
+ */
1585
+ declare function countRuleSet(ruleset: FlowQueryBuilderRuleSet): number;
1577
1586
  /**
1578
1587
  * Helper function to determine if the supplied argument is a {@link FlowQueryBuilderRule}
1579
1588
  */
@@ -2579,10 +2588,13 @@ declare global {
2579
2588
  */
2580
2589
  declare class FlowUiChart extends FlowRdfElement {
2581
2590
  static styles: CSSResultGroup;
2591
+ private readonly hasSlotController;
2582
2592
  private _chartRef;
2583
2593
  private _chart;
2584
2594
  /** The Chart.js chart instance. */
2585
2595
  get chart(): Chart<keyof ChartTypeRegistry, (number | chart_js.Point | [number, number] | chart_js.BubbleDataPoint | chartjs_chart_matrix.MatrixDataPoint | null)[], unknown>;
2596
+ /** A label displayed in the chart's header. If you need to display HTML, use the `label` slot instead. */
2597
+ label: string;
2586
2598
  /** The Chart.js chart type (e.g `line`, `bar` or a custom type). */
2587
2599
  type: string;
2588
2600
  /** The Chart.js `options` object. */
@@ -6422,4 +6434,4 @@ declare global {
6422
6434
  }
6423
6435
  }
6424
6436
 
6425
- export { type BaseColorMapperField, type BaseColorStopOptions, type ColorMapperField, type ColorMapperOptions, type ColorMapperValue, type ColorStopOptions, type ColorStopValue, type FlowQueryBuilderConfig, type FlowQueryBuilderConverter, type FlowQueryBuilderConverterOptions, type FlowQueryBuilderDateField, type FlowQueryBuilderDateTimeField, type FlowQueryBuilderDateTimeFieldBase, type FlowQueryBuilderField, type FlowQueryBuilderFieldBase, type FlowQueryBuilderFieldDefinition, type FlowQueryBuilderFieldMap, type FlowQueryBuilderFieldType, type FlowQueryBuilderFieldTypeMap, type FlowQueryBuilderNumberField, type FlowQueryBuilderOption, type FlowQueryBuilderRule, type FlowQueryBuilderRuleSet, type FlowQueryBuilderSelectField, type FlowQueryBuilderStringField, type FlowQueryBuilderTemplateFn, type FlowQueryBuilderTimeField, type FlowAfterCollapseEvent as FlowUiAfterCollapseEvent, type FlowAfterExpandEvent as FlowUiAfterExpandEvent, type FlowAfterHideEvent as FlowUiAfterHideEvent, type FlowAfterShowEvent as FlowUiAfterShowEvent, FlowUiAlert, FlowUiAnimation, FlowUiAvatar, FlowUiBadge, FlowUiBaseControl, type FlowBlurEvent as FlowUiBlurEvent, FlowUiBreadcrumb, FlowUiBreadcrumbItem, FlowUiButton, FlowUiButtonGroup, FlowUiCalendar, type FlowCancelEvent as FlowUiCancelEvent, FlowUiCard, FlowUiCarousel, FlowUiCarouselItem, type FlowChangeEvent as FlowUiChangeEvent, FlowUiChart, FlowUiCheckbox, FlowUiCheckboxGroup, type FlowClearEvent as FlowUiClearEvent, type FlowCloseEvent as FlowUiCloseEvent, type FlowCollapseEvent as FlowUiCollapseEvent, type FlowCollapseTreeEvent as FlowUiCollapseSplitViewEvent, FlowUiColorMapper, FlowUiColorPicker, FlowUiColorStop, FlowUiDateTimePicker, FlowUiDetails, FlowUiDialog, FlowUiDivider, type FlowDragDropEvent as FlowUiDragDrop, type FlowDragEndEvent as FlowUiDragEndEvent, type FlowDragEvent as FlowUiDragEvent, type FlowDragOverEvent as FlowUiDragOverEvent, type FlowDragStartEvent as FlowUiDragStartEvent, FlowUiDrawer, FlowUiDropdown, type FlowErrorEvent as FlowUiErrorEvent, type FlowExpandEvent as FlowUiExpandEvent, type FlowExpandTreeEvent as FlowUiExpandSplitViewEvent, type FlowFinishEvent as FlowUiFinishEvent, type FlowFocusEvent as FlowUiFocusEvent, FlowUiFormGroup, FlowUiGauge, type FlowHideEvent as FlowUiHideEvent, type FlowHoverEvent as FlowUiHoverEvent, FlowUiIcon, FlowUiIconButton, type FlowInitialFocusEvent as FlowUiInitialFocusEvent, FlowUiInput, type FlowInputEvent as FlowUiInputEvent, type FlowInvalidEvent as FlowUiInvalidEvent, type FlowLazyChangeEvent as FlowUiLazyChangeEvent, type FlowLazyLoadEvent as FlowUiLazyLoadEvent, FlowUiList, FlowUiListItem, type FlowLoadEvent as FlowUiLoadEvent, FlowUiMap, type FlowMapLoadEvent as FlowUiMapLoadEvent, FlowUiMenu, FlowUiMenuItem, FlowUiMenuLabel, type FlowMutationEvent as FlowUiMutationEvent, FlowUiMutationObserver, FlowUiOption, FlowUiPanel, FlowUiPanelHeader, type FlowPanelToggleEvent as FlowUiPanelToggleEvent, FlowUiPopup, FlowUiProgressBar, FlowUiProgressRing, FlowUiQueryBuilder, FlowUiRadio, FlowUiRadioGroup, FlowUiRange, type FlowRemoveEvent as FlowUiRemoveEvent, type FlowRepositionEvent as FlowUiRepositionEvent, type FlowRequestCloseEvent as FlowUiRequestCloseEvent, type FlowResizeEvent as FlowUiResizeEvent, FlowUiResizeObserver, FlowUiScrollView, FlowUiSelect, type FlowSelectEvent as FlowUiSelectEvent, type FlowShowEvent as FlowUiShowEvent, type FlowSlideChange as FlowUiSlideChange, FlowUiSpinner, FlowUiSplitView, FlowUiSplitViewDivider, FlowUiSplitViewPane, FlowUiSplitViewToggleButton, type FlowStartEvent as FlowUiStartEvent, FlowUiStepper, FlowUiStepperPanel, FlowUiSwitch, FlowUiTab, FlowUiTabGroup, type FlowTabHideEvent as FlowUiTabHideEvent, FlowUiTabPanel, type FlowTabShowEvent as FlowUiTabShowEvent, FlowUiTag, FlowUiTextarea, FlowUiTimer, FlowUiToolButton, FlowUiToolButtonGroup, FlowUiTooltip, FlowUiTree, FlowUiTreeItem, FlowUiVisuallyHidden, JavaScriptFilterError, type JavaScriptFilterFn, LocalizeController, type NumberColorMapperField, type NumberColorStopOptions, type SelectColorMapperField, type SelectColorStopOptions, type StringColorMapperField, type StringColorStopOptions, type Translation, addIcons, colorMapperValueToMaplibreExpression, escapeMaplibreString, filterRuleSet, converter$2 as flowQueryConverter, getAnimationNames, getEasingNames, initialize, initializeChartJs, isRule, isRuleOrRuleset, isRuleSet, converter$1 as javascriptFilterConverter, converter as mapLayerFilterConverter, registerChartComponent, registerComponents, registerIconLibrary, registerTranslation, renameRuleSetFields, setDefaultLocale, setDefaultTimeZone, transformRuleSet, unregisterIconLibrary };
6437
+ export { type BaseColorMapperField, type BaseColorStopOptions, type ColorMapperField, type ColorMapperOptions, type ColorMapperValue, type ColorStopOptions, type ColorStopValue, type FlowQueryBuilderConfig, type FlowQueryBuilderConverter, type FlowQueryBuilderConverterOptions, type FlowQueryBuilderDateField, type FlowQueryBuilderDateTimeField, type FlowQueryBuilderDateTimeFieldBase, type FlowQueryBuilderField, type FlowQueryBuilderFieldBase, type FlowQueryBuilderFieldDefinition, type FlowQueryBuilderFieldMap, type FlowQueryBuilderFieldType, type FlowQueryBuilderFieldTypeMap, type FlowQueryBuilderNumberField, type FlowQueryBuilderOption, type FlowQueryBuilderRule, type FlowQueryBuilderRuleSet, type FlowQueryBuilderSelectField, type FlowQueryBuilderStringField, type FlowQueryBuilderTemplateFn, type FlowQueryBuilderTimeField, type FlowAfterCollapseEvent as FlowUiAfterCollapseEvent, type FlowAfterExpandEvent as FlowUiAfterExpandEvent, type FlowAfterHideEvent as FlowUiAfterHideEvent, type FlowAfterShowEvent as FlowUiAfterShowEvent, FlowUiAlert, FlowUiAnimation, FlowUiAvatar, FlowUiBadge, FlowUiBaseControl, type FlowBlurEvent as FlowUiBlurEvent, FlowUiBreadcrumb, FlowUiBreadcrumbItem, FlowUiButton, FlowUiButtonGroup, FlowUiCalendar, type FlowCancelEvent as FlowUiCancelEvent, FlowUiCard, FlowUiCarousel, FlowUiCarouselItem, type FlowChangeEvent as FlowUiChangeEvent, FlowUiChart, FlowUiCheckbox, FlowUiCheckboxGroup, type FlowClearEvent as FlowUiClearEvent, type FlowCloseEvent as FlowUiCloseEvent, type FlowCollapseEvent as FlowUiCollapseEvent, type FlowCollapseTreeEvent as FlowUiCollapseSplitViewEvent, FlowUiColorMapper, FlowUiColorPicker, FlowUiColorStop, FlowUiDateTimePicker, FlowUiDetails, FlowUiDialog, FlowUiDivider, type FlowDragDropEvent as FlowUiDragDrop, type FlowDragEndEvent as FlowUiDragEndEvent, type FlowDragEvent as FlowUiDragEvent, type FlowDragOverEvent as FlowUiDragOverEvent, type FlowDragStartEvent as FlowUiDragStartEvent, FlowUiDrawer, FlowUiDropdown, type FlowErrorEvent as FlowUiErrorEvent, type FlowExpandEvent as FlowUiExpandEvent, type FlowExpandTreeEvent as FlowUiExpandSplitViewEvent, type FlowFinishEvent as FlowUiFinishEvent, type FlowFocusEvent as FlowUiFocusEvent, FlowUiFormGroup, FlowUiGauge, type FlowHideEvent as FlowUiHideEvent, type FlowHoverEvent as FlowUiHoverEvent, FlowUiIcon, FlowUiIconButton, type FlowInitialFocusEvent as FlowUiInitialFocusEvent, FlowUiInput, type FlowInputEvent as FlowUiInputEvent, type FlowInvalidEvent as FlowUiInvalidEvent, type FlowLazyChangeEvent as FlowUiLazyChangeEvent, type FlowLazyLoadEvent as FlowUiLazyLoadEvent, FlowUiList, FlowUiListItem, type FlowLoadEvent as FlowUiLoadEvent, FlowUiMap, type FlowMapLoadEvent as FlowUiMapLoadEvent, FlowUiMenu, FlowUiMenuItem, FlowUiMenuLabel, type FlowMutationEvent as FlowUiMutationEvent, FlowUiMutationObserver, FlowUiOption, FlowUiPanel, FlowUiPanelHeader, type FlowPanelToggleEvent as FlowUiPanelToggleEvent, FlowUiPopup, FlowUiProgressBar, FlowUiProgressRing, FlowUiQueryBuilder, FlowUiRadio, FlowUiRadioGroup, FlowUiRange, type FlowRemoveEvent as FlowUiRemoveEvent, type FlowRepositionEvent as FlowUiRepositionEvent, type FlowRequestCloseEvent as FlowUiRequestCloseEvent, type FlowResizeEvent as FlowUiResizeEvent, FlowUiResizeObserver, FlowUiScrollView, FlowUiSelect, type FlowSelectEvent as FlowUiSelectEvent, type FlowShowEvent as FlowUiShowEvent, type FlowSlideChange as FlowUiSlideChange, FlowUiSpinner, FlowUiSplitView, FlowUiSplitViewDivider, FlowUiSplitViewPane, FlowUiSplitViewToggleButton, type FlowStartEvent as FlowUiStartEvent, FlowUiStepper, FlowUiStepperPanel, FlowUiSwitch, FlowUiTab, FlowUiTabGroup, type FlowTabHideEvent as FlowUiTabHideEvent, FlowUiTabPanel, type FlowTabShowEvent as FlowUiTabShowEvent, FlowUiTag, FlowUiTextarea, FlowUiTimer, FlowUiToolButton, FlowUiToolButtonGroup, FlowUiTooltip, FlowUiTree, FlowUiTreeItem, FlowUiVisuallyHidden, JavaScriptFilterError, type JavaScriptFilterFn, LocalizeController, type NumberColorMapperField, type NumberColorStopOptions, type SelectColorMapperField, type SelectColorStopOptions, type StringColorMapperField, type StringColorStopOptions, type Translation, addIcons, colorMapperValueToMaplibreExpression, countRuleSet, escapeMaplibreString, filterRuleSet, converter$2 as flowQueryConverter, getAnimationNames, getEasingNames, initialize, initializeChartJs, isRule, isRuleOrRuleset, isRuleSet, converter$1 as javascriptFilterConverter, converter as mapLayerFilterConverter, registerChartComponent, registerComponents, registerIconLibrary, registerTranslation, renameRuleSetFields, setDefaultLocale, setDefaultTimeZone, transformRuleSet, unregisterIconLibrary };
package/dist/index.mjs CHANGED
@@ -78,7 +78,7 @@ export { registerIconLibrary, unregisterIconLibrary } from './components/icon/li
78
78
  export { setDefaultLocale, setDefaultTimeZone } from './utilities/locale.mjs';
79
79
  export { registerTranslation } from './internal/localize.mjs';
80
80
  export { LocalizeController } from './utilities/localize.mjs';
81
- export { filterRuleSet, isRule, isRuleOrRuleset, isRuleSet, renameRuleSetFields, transformRuleSet } from './components/query-builder/helpers.mjs';
81
+ export { countRuleSet, filterRuleSet, isRule, isRuleOrRuleset, isRuleSet, renameRuleSetFields, transformRuleSet } from './components/query-builder/helpers.mjs';
82
82
  export { default as flowQueryConverter } from './components/query-builder/converters/flow-query-converters.mjs';
83
83
  export { default as javascriptFilterConverter } from './components/query-builder/converters/javascript-filter-converter.mjs';
84
84
  export { default as mapLayerFilterConverter } from './components/query-builder/converters/map-layer-filter-converter.mjs';
@@ -158,18 +158,6 @@
158
158
  ],
159
159
  "references": []
160
160
  },
161
- {
162
- "name": "flow-ui-breadcrumb",
163
- "description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
164
- "attributes": [
165
- {
166
- "name": "label",
167
- "description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
168
- "values": []
169
- }
170
- ],
171
- "references": []
172
- },
173
161
  {
174
162
  "name": "flow-ui-avatar",
175
163
  "description": "Avatars are used to represent a person or object.\n\n\n---\n\n\n\n\n### **Slots:**\n - **icon** - The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.\n\n### **CSS Properties:**\n - **--size** - The size of the avatar. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the avatar's icon.\n- **initials** - The container that wraps the avatar's initials.\n- **image** - The avatar image. Only shown when the `image` attribute is set.",
@@ -206,6 +194,18 @@
206
194
  ],
207
195
  "references": []
208
196
  },
197
+ {
198
+ "name": "flow-ui-breadcrumb",
199
+ "description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
200
+ "attributes": [
201
+ {
202
+ "name": "label",
203
+ "description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
204
+ "values": []
205
+ }
206
+ ],
207
+ "references": []
208
+ },
209
209
  {
210
210
  "name": "flow-ui-badge",
211
211
  "description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -537,6 +537,11 @@
537
537
  "name": "flow-ui-chart",
538
538
  "description": "The chart component displays Chart.js charts.\n\n\n---\n\n\n\n\n### **Methods:**\n - **repaint()** - Trigger a repaint of the chart.\n\n### **CSS Properties:**\n - **--background-color** - Chart background color (applied as the background color of the base container). _(default: undefined)_\n- **--text-color** - General text color (titles etc.) _(default: undefined)_\n- **--axis-color** - Color of the axis lines. _(default: undefined)_\n- **--x-axis-color** - Color of the x-axis lines. (defaults to `--axis-color`) _(default: undefined)_\n- **--y-axis-color** - Color of the y-axis lines. (defaults to `--axis-color`) _(default: undefined)_\n- **--axis-grid-color** - Color of the axis grid lines. _(default: undefined)_\n- **--x-axis-grid-color** - Color of the x-axis grid lines. (defaults to `--axis-grid-color`) _(default: undefined)_\n- **--y-axis-grid-color** - Color of the y-axis grid lines. (defaults to `--axis-grid-color`) _(default: undefined)_\n- **--axis-label-color** - Color of the axis labels. _(default: undefined)_\n- **--x-axis-label-color** - Color of the x-axis labels. (defaults to `--axis-label-color`) _(default: undefined)_\n- **--y-axis-label-color** - Color of the y-axis labels. (defaults to `--axis-label-color`) _(default: undefined)_\n- **--tick-label-color** - Color of the tick labels. _(default: undefined)_\n- **--x-tick-label-color** - Color of the x-axis tick labels. (defaults to `--tick-label-color`) _(default: undefined)_\n- **--y-tick-label-color** - Color of the y-axis tick labels. (defaults to `--tick-label-color`) _(default: undefined)_\n- **--dataset-stroke-color-n** - Color of the stroke for dataset n (where n = 0-9). _(default: undefined)_\n- **--dataset-fill-color-n** - Color of the fill for dataset n (where n = 0-9). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The base container of the chart.",
539
539
  "attributes": [
540
+ {
541
+ "name": "label",
542
+ "description": "A label displayed in the chart's header. If you need to display HTML, use the `label` slot instead.",
543
+ "values": []
544
+ },
540
545
  {
541
546
  "name": "type",
542
547
  "description": "The Chart.js chart type (e.g `line`, `bar` or a custom type).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emuanalytics/flow-rdf-ui",
3
- "version": "4.1.0-preview.13",
3
+ "version": "4.1.0-preview.14",
4
4
  "type": "module",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/themes/dark.css CHANGED
@@ -601,7 +601,7 @@
601
601
  --flow-ui-gauge-units-font-size: var(--flow-ui-font-size-small);
602
602
  --flow-ui-gauge-units-color: var(--flow-ui-color-neutral-1000);
603
603
 
604
- --flow-ui-chart-background-color: transparent;
604
+ --flow-ui-chart-background-color: var(--flow-ui-color-neutral-300);
605
605
  --flow-ui-chart-text-color: var(--flow-ui-color-neutral-900);
606
606
 
607
607
  --flow-ui-chart-axis-color: var(--flow-ui-color-neutral-600);
@@ -622,7 +622,7 @@ export default css`
622
622
  --flow-ui-gauge-units-font-size: var(--flow-ui-font-size-small);
623
623
  --flow-ui-gauge-units-color: var(--flow-ui-color-neutral-1000);
624
624
 
625
- --flow-ui-chart-background-color: transparent;
625
+ --flow-ui-chart-background-color: var(--flow-ui-color-neutral-300);
626
626
  --flow-ui-chart-text-color: var(--flow-ui-color-neutral-900);
627
627
 
628
628
  --flow-ui-chart-axis-color: var(--flow-ui-color-neutral-600);