@emuanalytics/flow-rdf-ui 4.1.0-preview.2 → 4.1.0-preview.21

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.
Files changed (74) hide show
  1. package/dist/components/alert/alert.styles.mjs +1 -1
  2. package/dist/components/badge/badge.component.mjs +4 -0
  3. package/dist/components/badge/badge.styles.mjs +13 -0
  4. package/dist/components/breadcrumb-item/breadcrumb-item.styles.mjs +1 -1
  5. package/dist/components/button/button.styles.mjs +2 -2
  6. package/dist/components/calendar/calendar.component.mjs +3 -0
  7. package/dist/components/calendar/calendar.styles.mjs +13 -4
  8. package/dist/components/card/card.component.mjs +27 -7
  9. package/dist/components/card/card.styles.mjs +9 -37
  10. package/dist/components/chart/chart.component.mjs +19 -3
  11. package/dist/components/chart/chart.styles.mjs +20 -1
  12. package/dist/components/checkbox-group/checkbox-group.component.mjs +4 -0
  13. package/dist/components/date-time-picker/date-time-picker.component.mjs +2 -0
  14. package/dist/components/date-time-picker/date-time-picker.styles.mjs +2 -2
  15. package/dist/components/dialog/dialog.component.mjs +7 -6
  16. package/dist/components/dialog/dialog.styles.mjs +16 -7
  17. package/dist/components/form-group/form-group.component.mjs +19 -14
  18. package/dist/components/form-group/form-group.styles.mjs +10 -5
  19. package/dist/components/gauge/gauge.component.mjs +7 -6
  20. package/dist/components/gauge/gauge.styles.mjs +2 -2
  21. package/dist/components/icon/library.system.mjs +2 -1
  22. package/dist/components/icon-button/icon-button.styles.mjs +1 -1
  23. package/dist/components/list/list.component.mjs +101 -0
  24. package/dist/components/list/list.mjs +5 -0
  25. package/dist/components/list/list.styles.mjs +21 -0
  26. package/dist/components/list-item/list-item.component.mjs +197 -0
  27. package/dist/components/list-item/list-item.mjs +5 -0
  28. package/dist/components/list-item/list-item.styles.mjs +63 -0
  29. package/dist/components/map/map.component.mjs +6 -1
  30. package/dist/components/map/map.styles.mjs +1 -0
  31. package/dist/components/menu/menu.styles.mjs +1 -0
  32. package/dist/components/menu-item/menu-item.styles.mjs +1 -1
  33. package/dist/components/menu-label/menu-label.styles.mjs +1 -1
  34. package/dist/components/option/option.styles.mjs +1 -1
  35. package/dist/components/panel/panel.component.mjs +10 -3
  36. package/dist/components/panel/panel.styles.mjs +4 -0
  37. package/dist/components/panel-header/panel-header.component.mjs +5 -4
  38. package/dist/components/panel-header/panel-header.styles.mjs +3 -2
  39. package/dist/components/query-builder/converters/flow-query-converters.mjs +1 -5
  40. package/dist/components/query-builder/converters/javascript-filter-converter.mjs +1 -5
  41. package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +1 -5
  42. package/dist/components/query-builder/helpers.mjs +15 -1
  43. package/dist/components/query-builder/query-builder.component.mjs +38 -20
  44. package/dist/components/query-builder/query-builder.styles.mjs +21 -5
  45. package/dist/components/range/range.component.mjs +1 -1
  46. package/dist/components/range/range.styles.mjs +5 -1
  47. package/dist/components/select/select.styles.mjs +9 -0
  48. package/dist/components/spinner/spinner.styles.mjs +1 -1
  49. package/dist/components/stepper/stepper.styles.mjs +5 -6
  50. package/dist/components/switch/switch.styles.mjs +35 -15
  51. package/dist/components/tab/tab.component.mjs +4 -0
  52. package/dist/components/tab/tab.styles.mjs +13 -1
  53. package/dist/components/tab-group/tab-group.component.mjs +1 -0
  54. package/dist/components/tab-group/tab-group.styles.mjs +1 -0
  55. package/dist/components/tab-panel/tab-panel.component.mjs +7 -1
  56. package/dist/components/tab-panel/tab-panel.styles.mjs +7 -3
  57. package/dist/components/tag/tag.styles.mjs +13 -13
  58. package/dist/components/timer/timer.component.mjs +2 -1
  59. package/dist/components/timer/timer.styles.mjs +2 -2
  60. package/dist/components/tool-button/tool-button.styles.mjs +9 -9
  61. package/dist/components/tree-item/tree-item.styles.mjs +3 -3
  62. package/dist/custom-elements.json +4739 -3935
  63. package/dist/index.d.mts +200 -19
  64. package/dist/index.d.ts +200 -19
  65. package/dist/index.mjs +3 -1
  66. package/dist/package.json.mjs +1 -1
  67. package/dist/styles/form-control.styles.mjs +5 -0
  68. package/dist/utilities/register-components.mjs +7 -0
  69. package/dist/vscode.html-custom-data.json +169 -91
  70. package/package.json +1 -1
  71. package/themes/dark.css +141 -88
  72. package/themes/dark.styles.js +143 -88
  73. package/themes/light.css +144 -79
  74. package/themes/light.styles.js +146 -79
package/dist/index.d.ts CHANGED
@@ -94,6 +94,13 @@ declare global {
94
94
  }
95
95
  }
96
96
 
97
+ type FlowDragDropEvent = CustomEvent<Record<PropertyKey, never>>;
98
+ declare global {
99
+ interface GlobalEventHandlersEventMap {
100
+ 'flow-ui-drag-drop': FlowDragDropEvent;
101
+ }
102
+ }
103
+
97
104
  type FlowDragEndEvent = CustomEvent<Record<PropertyKey, never>>;
98
105
  declare global {
99
106
  interface GlobalEventHandlersEventMap {
@@ -101,6 +108,13 @@ declare global {
101
108
  }
102
109
  }
103
110
 
111
+ type FlowDragOverEvent = CustomEvent<Record<PropertyKey, never>>;
112
+ declare global {
113
+ interface GlobalEventHandlersEventMap {
114
+ 'flow-ui-drag-over': FlowDragOverEvent;
115
+ }
116
+ }
117
+
104
118
  type FlowDragStartEvent = CustomEvent<Record<PropertyKey, never>>;
105
119
  declare global {
106
120
  interface GlobalEventHandlersEventMap {
@@ -1199,7 +1213,8 @@ type NoUnion<T, U = T> = T extends U ? ([U] extends [T] ? T : never) : never;
1199
1213
  * @event flow-ui-input - Emitted when the control's value changes.
1200
1214
  * @event flow-ui-change - Emitted when the control's value changes.
1201
1215
  * @event flow-ui-select - Emitted when a custom menu item is selected.
1202
- *
1216
+ * @event flow-ui-remove - Emitted when the user attempts to remove a rule or ruleset. Calling `event.preventDefault()` will cancel the removal.
1217
+ * @event flow-ui-clear - Emitted when the user clears all rules from the tool menu.
1203
1218
  * @slot label - The component's label. Alternatively, you can use the `label` attribute.
1204
1219
  * @slot help-text - Text that describes how to use the component. Alternatively, you can use the `help-text` attribute.
1205
1220
  */
@@ -1239,6 +1254,8 @@ declare class FlowUiQueryBuilder extends FlowRdfElement {
1239
1254
  treeLines: boolean;
1240
1255
  /** @internal */
1241
1256
  subQueryBuilder: boolean;
1257
+ /** Display control borders */
1258
+ borders: boolean;
1242
1259
  connectedCallback(): void;
1243
1260
  /** @internal */
1244
1261
  handleClassChange(): void;
@@ -1557,6 +1574,15 @@ declare function renameRuleSetFields(ruleset: FlowQueryBuilderRuleSet, replaceme
1557
1574
  * @returns A new {@link FlowQueryBuilderRuleSet} with transformed rules.
1558
1575
  */
1559
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;
1560
1586
  /**
1561
1587
  * Helper function to determine if the supplied argument is a {@link FlowQueryBuilderRule}
1562
1588
  */
@@ -1939,6 +1965,8 @@ declare class FlowUiBadge extends FlowRdfElement {
1939
1965
  static styles: CSSResultGroup;
1940
1966
  /** The badge's theme variant. */
1941
1967
  variant: 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger';
1968
+ /** The badge size. */
1969
+ size: 'small' | 'medium' | 'large';
1942
1970
  /** Draws a pill-style badge with rounded edges. */
1943
1971
  pill: boolean;
1944
1972
  /** Makes the badge pulsate to draw attention. */
@@ -2409,6 +2437,7 @@ declare global {
2409
2437
  declare class FlowUiCard extends FlowRdfElement {
2410
2438
  static styles: CSSResultGroup;
2411
2439
  private readonly hasSlotController;
2440
+ title: string;
2412
2441
  render(): lit_html.TemplateResult<1>;
2413
2442
  }
2414
2443
 
@@ -2541,6 +2570,8 @@ declare global {
2541
2570
  * @tagname flow-ui-chart
2542
2571
  * @summary The chart component displays Chart.js charts.
2543
2572
  *
2573
+ * @slot title - The chart's title. Alternatively, you can use the `title` attribute.
2574
+ *
2544
2575
  * @cssproperty --background-color - Chart background color (applied as the background color of the base container).
2545
2576
  * @cssproperty --text-color - General text color (titles etc.)
2546
2577
  * @cssproperty --axis-color - Color of the axis lines.
@@ -2558,14 +2589,23 @@ declare global {
2558
2589
  * @cssproperty --dataset-stroke-color-n - Color of the stroke for dataset n (where n = 0-9).
2559
2590
  * @cssproperty --dataset-fill-color-n - Color of the fill for dataset n (where n = 0-9).
2560
2591
  *
2561
- * @csspart base - The base container of the chart.
2592
+ * @cssproperty --header-padding - Chart header padding.
2593
+ * @cssproperty --header-height - Chart header height.
2594
+ * @cssproperty --header-font-size - Chart header font size.
2595
+ * @cssproperty --header-color - Chart header text color.
2596
+ *
2597
+ * @csspart header - The header container of the chart.
2598
+ * @csspart title - The chart title placed in the header.
2562
2599
  */
2563
2600
  declare class FlowUiChart extends FlowRdfElement {
2564
2601
  static styles: CSSResultGroup;
2602
+ private readonly hasSlotController;
2565
2603
  private _chartRef;
2566
2604
  private _chart;
2567
2605
  /** The Chart.js chart instance. */
2568
2606
  get chart(): Chart<keyof ChartTypeRegistry, (number | chart_js.Point | [number, number] | chart_js.BubbleDataPoint | chartjs_chart_matrix.MatrixDataPoint | null)[], unknown>;
2607
+ /** A label displayed in the chart's header. If you need to display HTML, use the `label` slot instead. */
2608
+ title: string;
2569
2609
  /** The Chart.js chart type (e.g `line`, `bar` or a custom type). */
2570
2610
  type: string;
2571
2611
  /** The Chart.js `options` object. */
@@ -3845,6 +3885,10 @@ declare class FlowUiTab extends FlowRdfElement {
3845
3885
  disabled: boolean;
3846
3886
  /** Full title of tab */
3847
3887
  label: string;
3888
+ /** @internal
3889
+ * The placement of the tabs. This is set by the parent tab group.
3890
+ * */
3891
+ placement: 'top' | 'bottom' | 'start' | 'end';
3848
3892
  /**
3849
3893
  * The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip
3850
3894
  * inside of the viewport.
@@ -3959,7 +4003,7 @@ declare class FlowUiTabGroup extends FlowRdfElement {
3959
4003
  * @dependency flow-ui-icon-button
3960
4004
  *
3961
4005
  * @slot - The dialog's main content.
3962
- * @slot heading - The dialog's heading text. Alternatively, you can use the `heading` attribute.
4006
+ * @slot title - The dialog's title text. Alternatively, you can use the `title` attribute.
3963
4007
  * @slot header-actions - Optional actions to add to the header. Works best with `<flow-ui-icon-button>`.
3964
4008
  * @slot footer - The dialog's footer, usually one or more buttons representing various options.
3965
4009
  *
@@ -3982,7 +4026,7 @@ declare class FlowUiTabGroup extends FlowRdfElement {
3982
4026
  * @csspart panel - The dialog's panel (where the dialog and its content are rendered).
3983
4027
  * @csspart header - The dialog's header. This element wraps the title and header actions.
3984
4028
  * @csspart header-actions - Optional actions to add to the header. Works best with `<flow-ui-icon-button>`.
3985
- * @csspart heading - The dialog's heading text.
4029
+ * @csspart title - The dialog's title text.
3986
4030
  * @csspart close-button - The close button, an `<flow-ui-icon-button>`.
3987
4031
  * @csspart close-button__base - The close button's exported `base` part.
3988
4032
  * @csspart body - The dialog's body.
@@ -4024,9 +4068,9 @@ declare class FlowUiDialog extends FlowRdfElement {
4024
4068
  */
4025
4069
  open: boolean;
4026
4070
  /**
4027
- * The dialog's heading text. If you need to display HTML, use the `heading` slot instead.
4071
+ * The dialog's title text. If you need to display HTML, use the `title` slot instead.
4028
4072
  */
4029
- heading: string;
4073
+ title: string;
4030
4074
  /**
4031
4075
  * Disables the header. This will also remove the default close button, so please ensure you provide an easy,
4032
4076
  * accessible way for users to dismiss the dialog.
@@ -4216,6 +4260,8 @@ declare class FlowUiFormGroup extends FlowRdfElement {
4216
4260
  private readonly hasSlotController;
4217
4261
  /** @internal */
4218
4262
  defaultSlot: HTMLSlotElement;
4263
+ /** @internal - add form control class */
4264
+ class: string;
4219
4265
  /**
4220
4266
  * The form group's label. If you need to display HTML, use the `label` slot instead.
4221
4267
  */
@@ -4224,14 +4270,14 @@ declare class FlowUiFormGroup extends FlowRdfElement {
4224
4270
  size: 'small' | 'medium' | 'large';
4225
4271
  /** The form groups's help text. If you need to display HTML, use the `help-text` slot instead. */
4226
4272
  helpText: string;
4227
- /** Set to `true` to hide divider lines between child form controls. */
4228
- noDividers: boolean;
4229
- /** Set to `true` to hide the form group border. */
4230
- noBorder: boolean;
4273
+ /** Set to `true` to display form group borders. */
4274
+ borders: boolean;
4231
4275
  /** The form group's theme variant. */
4232
4276
  variant: 'default' | 'warning' | 'danger';
4233
4277
  connectedCallback(): void;
4234
4278
  /** @internal */
4279
+ handleClassChange(): void;
4280
+ /** @internal */
4235
4281
  handleStyleChange(): void;
4236
4282
  private syncControls;
4237
4283
  private getAllControls;
@@ -4253,7 +4299,7 @@ declare global {
4253
4299
  * @dependency flow-ui-dialog
4254
4300
  * @dependency flow-ui-button
4255
4301
  *
4256
- * @slot label - The gauge's label. Alternatively, you can use the `label` attribute.
4302
+ * @slot title - The gauge's title. Alternatively, you can use the `title` attribute.
4257
4303
  * @slot value - The gauge's value. Alternatively, you can use the `value` attribute.
4258
4304
  * @slot unit - Alternatively, you can use the `unit` attribute.
4259
4305
  * @slot info - The content to display in the gauge's info dialog. If this is set then an info button will be displayed in the gauge's header.
@@ -4261,7 +4307,7 @@ declare global {
4261
4307
  * @csspart base - The component's base wrapper.
4262
4308
  * @csspart header - The gauge's header.
4263
4309
  * @csspart header-icon - The icon in the gauge's header.
4264
- * @csspart label - The text in the gauge's header.
4310
+ * @csspart title - The title text in the gauge's header.
4265
4311
  * @csspart info-button - The info button in the gauge's header (if info dialog configured).
4266
4312
  */
4267
4313
  declare class FlowUiGauge extends FlowRdfElement {
@@ -4269,8 +4315,8 @@ declare class FlowUiGauge extends FlowRdfElement {
4269
4315
  private readonly hasSlotController;
4270
4316
  private _formatter;
4271
4317
  private _infoDialog;
4272
- /** The gauge label displayed in the header. Alternatively, use the `label` slot to enhance the label with HTML markup. */
4273
- label: string;
4318
+ /** The gauge title displayed in the header. Alternatively, use the `title` slot to enhance the label with HTML markup. */
4319
+ title: string;
4274
4320
  /** The units of the gauge value. */
4275
4321
  units: string;
4276
4322
  /** The value to display in the gauge. */
@@ -4311,6 +4357,131 @@ declare global {
4311
4357
  }
4312
4358
  }
4313
4359
 
4360
+ /**
4361
+ * @tagname flow-ui-list-item
4362
+ * @summary A list item.
4363
+ *
4364
+ * @dependency flow-ui-input
4365
+ * @dependency flow-ui-icon
4366
+ * @dependency flow-ui-menu
4367
+ * @dependency flow-ui-menu-item
4368
+ *
4369
+ * @slot prefix - The list item's prefix content.
4370
+ * @slot suffix - The list item's suffix content.
4371
+ * @slot menu - Specify custom menu items to add to the list item's menu.
4372
+ *
4373
+ * @event flow-ui-change - Emitted when the list item is renamed.
4374
+ * @event flow-ui-remove - Emitted when the list item is removed. Calling `event.preventDefault()` will cancel the removal.
4375
+ * @event flow-ui-select - Emitted when a menu item is selected.
4376
+ *
4377
+ * @csspart base - The component's base wrapper.
4378
+ * @csspart input - The list item's flow-ui-input control.
4379
+ * @csspart prefix - The container that wraps the prefix.
4380
+ * @csspart suffix - The container that wraps the suffix.
4381
+ * @csspart reorder-icon - The list item's reorder icon.
4382
+ * @csspart menu-button - The list item's menu-button.
4383
+ *
4384
+ * @cssproperty padding - The padding around the header. Defaults to `--flow-ui-panel-header-padding`.
4385
+ * @cssproperty header-height - The height of the header. Defaults to `--flow-ui-panel-header-height`.
4386
+ * @cssproperty background-color - The background color of the header. Defaults to `--flow-ui-panel-header-background-color`.
4387
+ * @cssproperty color - The text color of the header. Defaults to `--flow-ui-panel-header-color`.
4388
+ * @cssproperty accessory-color - The color of the accessory controls. Defaults to `--flow-ui-panel-header-accessory-color`.
4389
+ */
4390
+ declare class FlowUiListItem extends FlowRdfElement {
4391
+ static styles: CSSResultGroup;
4392
+ private readonly hasSlotController;
4393
+ /** @internal */
4394
+ input: FlowUiInput;
4395
+ /** The label text for the list item. */
4396
+ label: string;
4397
+ /** The tracking value (id) for the list item. */
4398
+ value: string;
4399
+ /** Set to enable renaming of the list item text. */
4400
+ readonly: boolean;
4401
+ /** Set to reordering of the list item. */
4402
+ reorder: boolean;
4403
+ /** Set to enable removing the list item. */
4404
+ removable: boolean;
4405
+ constructor();
4406
+ connectedCallback(): void;
4407
+ disconnectedCallback(): void;
4408
+ rename(): void;
4409
+ private handleMenuSelect;
4410
+ private handleInputEvents;
4411
+ private handleReorderPointerDown;
4412
+ private handleReorderPointerUp;
4413
+ private handleDragStart;
4414
+ private handleDragOver;
4415
+ private handleDragEnd;
4416
+ private handleDrop;
4417
+ renderMenu(): lit_html.TemplateResult<1>;
4418
+ render(): lit_html.TemplateResult<1>;
4419
+ }
4420
+
4421
+ /**
4422
+ * @tagname flow-ui-list
4423
+ * @summary A panel header provides a label, optional accessory controls and expand/collapse behavior for panels.
4424
+ *
4425
+ * @dependency flow-ui-list-item
4426
+ *
4427
+ * @slot label - The panel header's text content. Alternatively, use the `label` attribute for plain text.
4428
+ * @slot prefix - The panel header's prefix content.
4429
+ * @slot suffix - The panel header's suffix content.
4430
+ * @slot expand-icon - Specify an alternative `<flow-ui-icon>` to use for the expand icon.
4431
+ * @slot collapse-icon - Specify an alternative `<flow-ui-icon>` to use for the collapse icon.
4432
+ *
4433
+ * @event flow-ui-change - Emitted when a list item is renamed.
4434
+ * @event flow-ui-remove - Emitted when a list item is removed.
4435
+ * @event flow-ui-drag-start - Emitted when the user starts dragging to reorder list items.
4436
+ * @event flow-ui-drag-drop - Emitted when the user drops a list item to reorder it.
4437
+ * @event flow-ui-drag-end - Emitted when the drag-drop operation has finished or been cancelled.
4438
+ *
4439
+ * @csspart base - The component's base wrapper.
4440
+ * @csspart label - The container that wraps the label.
4441
+ * @csspart prefix - The container that wraps the prefix.
4442
+ * @csspart suffix - The container that wraps the suffix.
4443
+ * @csspart toggle-icon - The container that wraps the expand/collapse icon.
4444
+ *
4445
+ *
4446
+ * @cssproperty padding - The padding around the list item`.
4447
+ * @cssproperty height - The height of the list item.
4448
+ * @cssproperty background-color - The background color of the list item.
4449
+ * @cssproperty color - The text color of the list item.
4450
+ * @cssproperty accessory-color - The color of the accessory controls.
4451
+ */
4452
+ declare class FlowUiList extends FlowRdfElement {
4453
+ static styles: CSSResultGroup;
4454
+ private draggedItem;
4455
+ private draggedOverItem;
4456
+ /** Set to enable renaming of the list item text. */
4457
+ readonly: boolean;
4458
+ /** Set to reordering of the list item. */
4459
+ reorder: boolean;
4460
+ /** Set to enable removing the list item. */
4461
+ removable: boolean;
4462
+ constructor();
4463
+ connectedCallback(): void;
4464
+ disconnectedCallback(): void;
4465
+ get listItems(): FlowUiListItem[];
4466
+ private handleDragStart;
4467
+ private handleDragOver;
4468
+ private handleDrop;
4469
+ private handleDragEnd;
4470
+ render(): lit_html.TemplateResult<1>;
4471
+ }
4472
+
4473
+ declare global {
4474
+ interface HTMLElementTagNameMap {
4475
+ 'flow-ui-list': FlowUiList;
4476
+ }
4477
+ }
4478
+
4479
+ declare global {
4480
+ interface HTMLElementTagNameMap {
4481
+ 'flow-ui-list-item': FlowUiListItem;
4482
+ }
4483
+ }
4484
+
4314
4485
  /**
4315
4486
  * This component wraps a `FlowCoreMap` instance from the flow-rdf-core library and
4316
4487
  * provides access to its API.
@@ -4405,6 +4576,10 @@ declare class FlowUiMap extends FlowRdfElement {
4405
4576
  * Set the bearing snap threshold in degrees. Set to 0 to disable bearing snapping.
4406
4577
  */
4407
4578
  bearingSnap: number;
4579
+ /**
4580
+ * Set fade duration in milliseconds for the label collision fade-in/fade-out animation.
4581
+ */
4582
+ fadeDuration: number;
4408
4583
  /**
4409
4584
  * The underlying core FlowCoreMap instance. Note that this is
4410
4585
  * `undefined` until the map has been initialized.
@@ -4565,7 +4740,7 @@ declare global {
4565
4740
  *
4566
4741
  * @dependency flow-ui-split-view-toggle-button
4567
4742
  *
4568
- * @slot label - The panel header's text content. Alternatively, use the `label` attribute for plain text.
4743
+ * @slot title - The panel header's title content. Alternatively, use the `title` attribute for plain text.
4569
4744
  * @slot prefix - The panel header's prefix content.
4570
4745
  * @slot suffix - The panel header's suffix content.
4571
4746
  * @slot expand-icon - Specify an alternative `<flow-ui-icon>` to use for the expand icon.
@@ -4575,7 +4750,7 @@ declare global {
4575
4750
  * @event flow-ui-expand - Emitted when the header is expanded by UI interaction.
4576
4751
  *
4577
4752
  * @csspart base - The component's base wrapper.
4578
- * @csspart label - The container that wraps the label.
4753
+ * @csspart title - The container that wraps the title.
4579
4754
  * @csspart prefix - The container that wraps the prefix.
4580
4755
  * @csspart suffix - The container that wraps the suffix.
4581
4756
  * @csspart toggle-icon - The container that wraps the expand/collapse icon.
@@ -4596,8 +4771,8 @@ declare class FlowUiPanelHeader extends FlowRdfElement {
4596
4771
  * Alternatively, call the `expand()` and `collapse()` methods.
4597
4772
  */
4598
4773
  closed: boolean;
4599
- /** The header text. Use the `label` slot instead to display HTML. */
4600
- label: string;
4774
+ /** The header title. Use the `title` slot instead to display HTML. */
4775
+ title: string;
4601
4776
  /** Set to `true` to hide the panel expand/collapse button. */
4602
4777
  fixed: boolean;
4603
4778
  constructor();
@@ -4624,6 +4799,7 @@ declare global {
4624
4799
  */
4625
4800
  declare class FlowUiPanel extends FlowRdfElement {
4626
4801
  static styles: CSSResultGroup;
4802
+ formElements: Array<HTMLElement>;
4627
4803
  /**
4628
4804
  * Indicates whether the panel is open or closed.
4629
4805
  */
@@ -4642,6 +4818,7 @@ declare class FlowUiPanel extends FlowRdfElement {
4642
4818
  expand(emitEvent?: boolean): Promise<void>;
4643
4819
  /** Close the panel */
4644
4820
  collapse(emitEvent?: boolean): Promise<void>;
4821
+ private handleSlotChange;
4645
4822
  render(): lit_html.TemplateResult<1>;
4646
4823
  }
4647
4824
 
@@ -5620,6 +5797,10 @@ declare class FlowUiTabPanel extends FlowRdfElement {
5620
5797
  * Indicates whether the panel is scrollable. By default overflow is hidden.
5621
5798
  */
5622
5799
  scrollable: boolean;
5800
+ /**
5801
+ * Indicates whether the panel body has padding.
5802
+ */
5803
+ padding: boolean;
5623
5804
  connectedCallback(): void;
5624
5805
  /** @internal */
5625
5806
  handleActiveChange(): void;
@@ -6268,4 +6449,4 @@ declare global {
6268
6449
  }
6269
6450
  }
6270
6451
 
6271
- 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 FlowDragEvent as FlowUiDragEvent, 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, 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, type FlowDragEndEvent as FlowUiUiDragEndEvent, 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 };
6452
+ 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
@@ -29,6 +29,8 @@ export { default as FlowUiGauge } from './components/gauge/gauge.component.mjs';
29
29
  export { default as FlowUiIconButton } from './components/icon-button/icon-button.component.mjs';
30
30
  export { default as FlowUiIcon } from './components/icon/icon.component.mjs';
31
31
  export { default as FlowUiInput } from './components/input/input.component.mjs';
32
+ export { default as FlowUiList } from './components/list/list.component.mjs';
33
+ export { default as FlowUiListItem } from './components/list-item/list-item.component.mjs';
32
34
  export { default as FlowUiMap } from './components/map/map.component.mjs';
33
35
  export { default as FlowUiMenuItem } from './components/menu-item/menu-item.component.mjs';
34
36
  export { default as FlowUiMenuLabel } from './components/menu-label/menu-label.component.mjs';
@@ -76,7 +78,7 @@ export { registerIconLibrary, unregisterIconLibrary } from './components/icon/li
76
78
  export { setDefaultLocale, setDefaultTimeZone } from './utilities/locale.mjs';
77
79
  export { registerTranslation } from './internal/localize.mjs';
78
80
  export { LocalizeController } from './utilities/localize.mjs';
79
- 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';
80
82
  export { default as flowQueryConverter } from './components/query-builder/converters/flow-query-converters.mjs';
81
83
  export { default as javascriptFilterConverter } from './components/query-builder/converters/javascript-filter-converter.mjs';
82
84
  export { default as mapLayerFilterConverter } from './components/query-builder/converters/map-layer-filter-converter.mjs';
@@ -1,3 +1,3 @@
1
- const version = "4.1.0-preview.1";
1
+ const version = "4.1.0-preview.20";
2
2
 
3
3
  export { version };
@@ -144,6 +144,10 @@ const formControlStyles = css`
144
144
  user-select: none;
145
145
  }
146
146
 
147
+ .form-control--disabled .form-control__label {
148
+ color: var(--control-color-disabled);
149
+ }
150
+
147
151
  :host([required]) .form-control--has-label .form-control__label::after {
148
152
  content: var(--flow-ui-control-required-content);
149
153
  margin-inline-start: var(--flow-ui-control-required-content-offset);
@@ -176,6 +180,7 @@ const formControlStyles = css`
176
180
  }
177
181
 
178
182
  .form-control--has-divider .form-control__divider {
183
+ --color: var(--flow-ui-color-neutral-300);
179
184
  display: block;
180
185
  grid-column: 1 / -1;
181
186
  --spacing: var(--flow-ui-spacing-x-small);
@@ -28,6 +28,8 @@ import FlowUiGauge from '../components/gauge/gauge.component.mjs';
28
28
  import FlowUiIconButton from '../components/icon-button/icon-button.component.mjs';
29
29
  import FlowUiIcon from '../components/icon/icon.component.mjs';
30
30
  import FlowUiInput from '../components/input/input.component.mjs';
31
+ import FlowUiListItem from '../components/list-item/list-item.component.mjs';
32
+ import FlowUiList from '../components/list/list.component.mjs';
31
33
  import FlowUiMap from '../components/map/map.component.mjs';
32
34
  import FlowUiMenuItem from '../components/menu-item/menu-item.component.mjs';
33
35
  import FlowUiMenuLabel from '../components/menu-label/menu-label.component.mjs';
@@ -98,6 +100,9 @@ async function registerComponents() {
98
100
  FlowUiIconButton.define("flow-ui-icon-button");
99
101
  FlowUiIcon.define("flow-ui-icon");
100
102
  FlowUiInput.define("flow-ui-input");
103
+ FlowUiList.define("flow-ui-list");
104
+ FlowUiListItem.define("flow-ui-list");
105
+ FlowUiListItem.define("flow-ui-list-item");
101
106
  FlowUiMap.define("flow-ui-map");
102
107
  FlowUiMenuItem.define("flow-ui-menu-item");
103
108
  FlowUiMenuLabel.define("flow-ui-menu-label");
@@ -164,6 +169,8 @@ async function registerComponents() {
164
169
  window.customElements.whenDefined("flow-ui-icon-button"),
165
170
  window.customElements.whenDefined("flow-ui-icon"),
166
171
  window.customElements.whenDefined("flow-ui-input"),
172
+ window.customElements.whenDefined("flow-ui-list"),
173
+ window.customElements.whenDefined("flow-ui-list-item"),
167
174
  window.customElements.whenDefined("flow-ui-map"),
168
175
  window.customElements.whenDefined("flow-ui-menu-item"),
169
176
  window.customElements.whenDefined("flow-ui-menu-label"),