@emuanalytics/flow-rdf-ui 4.3.0 → 4.4.0

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 (64) hide show
  1. package/dist/components/alert/alert.component.mjs +10 -10
  2. package/dist/components/animation/animation.component.mjs +2 -2
  3. package/dist/components/autocomplete/autocomplete.component.mjs +18 -16
  4. package/dist/components/avatar/avatar.component.mjs +7 -12
  5. package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +14 -14
  6. package/dist/components/button/button.component.mjs +3 -3
  7. package/dist/components/button/button.styles.mjs +5 -5
  8. package/dist/components/calendar/calendar.component.mjs +23 -6
  9. package/dist/components/card/card.component.mjs +4 -4
  10. package/dist/components/carousel/carousel.component.mjs +42 -42
  11. package/dist/components/carousel-item/carousel-item.component.mjs +1 -0
  12. package/dist/components/chart/chart.component.mjs +4 -4
  13. package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +1 -1
  14. package/dist/components/checkbox/checkbox.component.mjs +18 -18
  15. package/dist/components/color-mapper/color-mapper.component.mjs +6 -6
  16. package/dist/components/color-picker/color-picker.component.mjs +71 -71
  17. package/dist/components/color-picker/color-picker.styles.mjs +4 -2
  18. package/dist/components/color-stop/color-stop.component.mjs +2 -2
  19. package/dist/components/date-time-picker/date-time-picker.component.mjs +29 -29
  20. package/dist/components/diagram-base-node/diagram-base-node.component.mjs +5 -5
  21. package/dist/components/diagram-minimap/diagram-minimap.component.mjs +6 -6
  22. package/dist/components/diagram-zoom-controls/diagram-zoom-controls.component.mjs +10 -10
  23. package/dist/components/diagram-zoom-controls/diagram-zoom-controls.styles.mjs +3 -1
  24. package/dist/components/dialog/dialog.component.mjs +1 -1
  25. package/dist/components/drawer/drawer.component.mjs +19 -19
  26. package/dist/components/gauge/gauge.component.mjs +4 -2
  27. package/dist/components/icon/library.mjs +7 -4
  28. package/dist/components/input/input.component.mjs +16 -11
  29. package/dist/components/list-item/list-item.component.mjs +17 -17
  30. package/dist/components/map/map.component.mjs +90 -11
  31. package/dist/components/mutation-observer/mutation-observer.component.mjs +4 -6
  32. package/dist/components/panel-header/panel-header.component.mjs +11 -8
  33. package/dist/components/popup/popup.component.mjs +11 -11
  34. package/dist/components/progress-bar/progress-bar.component.mjs +2 -2
  35. package/dist/components/query-builder/converters/javascript-filter-converter.mjs +0 -4
  36. package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +0 -4
  37. package/dist/components/query-builder/query-builder.component.mjs +15 -15
  38. package/dist/components/radio/radio.component.mjs +7 -7
  39. package/dist/components/radio-group/radio-group.component.mjs +1 -1
  40. package/dist/components/resize-observer/resize-observer.component.mjs +1 -1
  41. package/dist/components/scroll-view/scroll-view.styles.mjs +20 -7
  42. package/dist/components/select/select.component.mjs +16 -16
  43. package/dist/components/split-view-toggle-button/split-view-toggle-button.styles.mjs +3 -3
  44. package/dist/components/stepper/stepper.component.mjs +2 -2
  45. package/dist/components/stepper-panel/stepper-panel.component.mjs +3 -3
  46. package/dist/components/switch/switch.component.mjs +6 -8
  47. package/dist/components/tab/tab.component.mjs +17 -17
  48. package/dist/components/tab-group/tab-group.component.mjs +42 -38
  49. package/dist/components/tag/tag.component.mjs +11 -11
  50. package/dist/components/textarea/textarea.component.mjs +10 -4
  51. package/dist/components/tree/tree.component.mjs +4 -2
  52. package/dist/custom-elements.json +1516 -1423
  53. package/dist/diagram/runtime/default-edge-templates.mjs +9 -9
  54. package/dist/index.d.mts +62 -8
  55. package/dist/index.d.ts +62 -8
  56. package/dist/internal/form.mjs +1 -1
  57. package/dist/internal/on-off-converter.mjs +21 -0
  58. package/dist/package.json.mjs +1 -1
  59. package/dist/vscode.html-custom-data.json +182 -180
  60. package/package.json +26 -39
  61. package/themes/dark.css +5 -5
  62. package/themes/dark.styles.js +5 -5
  63. package/themes/light.css +5 -5
  64. package/themes/light.styles.js +5 -5
@@ -5,15 +5,15 @@ const defaultEdgeTemplate = ({ edge }) => {
5
5
  return html`
6
6
  <flow-ui-diagram-base-edge class="flow-ui-diagram-default-edge" .edge=${edge}>
7
7
  ${label ? html`
8
- <flow-ui-diagram-edge-label
9
- class="flow-ui-diagram-default-label"
10
- variant="default"
11
- .id=${"edge-label"}
12
- .positionOnEdge=${positionOnEdge ?? 0.5}
13
- >
14
- ${label}
15
- </flow-ui-diagram-edge-label>
16
- ` : nothing}
8
+ <flow-ui-diagram-edge-label
9
+ class="flow-ui-diagram-default-label"
10
+ variant="default"
11
+ .id=${"edge-label"}
12
+ .positionOnEdge=${positionOnEdge ?? 0.5}
13
+ >
14
+ ${label}
15
+ </flow-ui-diagram-edge-label>
16
+ ` : nothing}
17
17
  </flow-ui-diagram-base-edge>
18
18
  `;
19
19
  };
package/dist/index.d.mts CHANGED
@@ -8149,6 +8149,8 @@ declare class DiagramGroupHighlightedDirective extends Directive {
8149
8149
  * `
8150
8150
  * };
8151
8151
  * ```
8152
+ *
8153
+ * @function
8152
8154
  */
8153
8155
  declare const diagramGroupHighlighted: (_node: DiagramNode | undefined) => lit_html_directive_js.DirectiveResult<typeof DiagramGroupHighlightedDirective>;
8154
8156
 
@@ -8208,6 +8210,8 @@ declare class DiagramHiddenDirective extends AsyncDirective {
8208
8210
  *
8209
8211
  * Not supported with virtualization: hiding the element would remove the template that holds the binding. With
8210
8212
  * virtualization on, the binding is ignored and a console warning is logged. Use the model `hidden` flag instead.
8213
+ *
8214
+ * @function
8211
8215
  */
8212
8216
  declare const diagramHidden: (_hidden?: unknown) => lit_html_directive_js.DirectiveResult<typeof DiagramHiddenDirective>;
8213
8217
 
@@ -8370,6 +8374,8 @@ declare class DiagramNodeSelectedDirective extends Directive {
8370
8374
  *
8371
8375
  * A tag-name template receives `selected` as a property instead, and can style `:host([selected])` once it reflects
8372
8376
  * it.
8377
+ *
8378
+ * @function
8373
8379
  */
8374
8380
  declare const diagramNodeSelected: (_node: DiagramNode | undefined) => lit_html_directive_js.DirectiveResult<typeof DiagramNodeSelectedDirective>;
8375
8381
 
@@ -9166,6 +9172,7 @@ declare const isRuleOrRuleset: (r: unknown) => r is FlowQueryBuilderRule | FlowQ
9166
9172
  */
9167
9173
  declare function betweenRuleValues(rule: FlowQueryBuilderRule, field: FlowQueryBuilderField): [any, any | undefined] | undefined;
9168
9174
 
9175
+ /** @function */
9169
9176
  declare const converter$2: FlowQueryBuilderConverter;
9170
9177
 
9171
9178
  declare class JavaScriptFilterError extends Error {
@@ -9300,6 +9307,7 @@ class AppState extends StateStore {
9300
9307
  */
9301
9308
  declare const converter$1: <TData = object>(ruleset: FlowQueryBuilderRuleSet, config: FlowQueryBuilderConfig, options?: FlowQueryBuilderConverterOptions) => JavaScriptFilterFn<TData>;
9302
9309
 
9310
+ /** @function */
9303
9311
  declare const converter: FlowQueryBuilderConverter<string | undefined>;
9304
9312
 
9305
9313
  /**
@@ -10741,8 +10749,11 @@ declare class FlowUiInput extends FlowRdfFormControl {
10741
10749
  step: number | 'any';
10742
10750
  /** Controls whether and how text input is automatically capitalized as it is entered by the user. */
10743
10751
  autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
10744
- /** Indicates whether the browser's autocorrect feature is on or off. */
10745
- autocorrect: 'off' | 'on';
10752
+ /**
10753
+ * Set to `false` to turn off the browser's autocorrect feature, or `true` to turn it on. The `autocorrect` attribute
10754
+ * takes `on` or `off`. If not set, the browser's default is used.
10755
+ */
10756
+ autocorrect: boolean;
10746
10757
  /**
10747
10758
  * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
10748
10759
  * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
@@ -11278,6 +11289,11 @@ declare class FlowUiCalendar extends FlowRdfElement {
11278
11289
  private highlightedDays;
11279
11290
  private updateValue;
11280
11291
  private handleHeaderSelectChange;
11292
+ /**
11293
+ * The month and year selects change the month shown, not the value, and open and close inside the calendar, so their
11294
+ * input, show and hide events go no further (they would reach a date time picker as its own).
11295
+ */
11296
+ private stopHeaderSelectEvent;
11281
11297
  private handleTimeChange;
11282
11298
  /**
11283
11299
  * Handle a change in the Start or End row of a datetime range or a time range. In a datetime range, the start time
@@ -14973,8 +14989,10 @@ declare class FlowUiProgressBar extends FlowRdfElement {
14973
14989
  *
14974
14990
  * @dependency flow-ui-progress-bar
14975
14991
  *
14976
- * @event {CustomEvent<{ map: FlowCoreMap }>} flow-ui-map-load - Dispatched when the map is first initialized and has completed loading.
14977
- * The Flo.w Core map instance can be retrieved from the event `detail` property.
14992
+ * @event {CustomEvent<{ map: FlowCoreMap }>} flow-ui-map-load - Emitted when a map that the element builds has been
14993
+ * initialized and has completed loading. It is emitted once for each map: again when the element is removed from the
14994
+ * document and put back without `keep-alive` (it builds a new map), and not when it is put back with `keep-alive` (it
14995
+ * keeps its map). The `FlowCoreMap` instance can be retrieved from the event `detail` property.
14978
14996
  *
14979
14997
  * @csspart base - The base element of the component.
14980
14998
  * @csspart busy-indicator - The busy indicator flow-ui-progress-bar.
@@ -14993,7 +15011,11 @@ declare class FlowUiMap extends FlowRdfElement {
14993
15011
  static styles: CSSResultGroup;
14994
15012
  static dependencies: (typeof FlowUiProgressBar)[];
14995
15013
  private _map?;
15014
+ private _mapContainer?;
15015
+ private _build?;
15016
+ private _abandonedBuilds;
14996
15017
  private _initialized;
15018
+ private _initializedResolved;
14997
15019
  private _resolveInitialized;
14998
15020
  private _pendingCenter?;
14999
15021
  private _pendingBaseStyle?;
@@ -15067,6 +15089,20 @@ declare class FlowUiMap extends FlowRdfElement {
15067
15089
  * Set fade duration in milliseconds for the label collision fade-in/fade-out animation.
15068
15090
  */
15069
15091
  fadeDuration: number;
15092
+ /**
15093
+ * Set to `true` to keep the map when the element is removed from the document, for example when an Angular route
15094
+ * reuse strategy stashes the view that holds it, so that it is shown again, without reloading, when the element is
15095
+ * put back.
15096
+ *
15097
+ * The `FlowCoreMap` is kept with its map data sources, map layers, plugins and camera, and the element emits no
15098
+ * second `flow-ui-map-load` event. A kept map keeps following application state while the element is detached, so
15099
+ * changes made meanwhile are drawn when it is put back.
15100
+ *
15101
+ * Note that a kept map is only destroyed by `destroy()`: call it when the application discards an element with a
15102
+ * kept map, or the map and its WebGL context are never freed. The Angular `FlowMap` component does this when it is
15103
+ * destroyed.
15104
+ */
15105
+ keepAlive: boolean;
15070
15106
  /**
15071
15107
  * The underlying core FlowCoreMap instance. Note that this is
15072
15108
  * `undefined` until the map has been initialized.
@@ -15086,6 +15122,21 @@ declare class FlowUiMap extends FlowRdfElement {
15086
15122
  handleBaseStyleChange(): void;
15087
15123
  connectedCallback(): Promise<void>;
15088
15124
  disconnectedCallback(): void;
15125
+ /**
15126
+ * Destroys the map, which frees its WebGL context and stops it following application state, and removes its
15127
+ * container from the element. `map` is then `undefined` and `initialized` waits for a new map. A map that is still
15128
+ * being built is destroyed as soon as it exists, with no `flow-ui-map-load` event.
15129
+ *
15130
+ * The element builds a new map when it is next connected to the document, not before. Call this method when the
15131
+ * application discards an element with `keep-alive`; without it, the element calls it when it is removed from the
15132
+ * document. Calling it on an element with no map does nothing.
15133
+ */
15134
+ destroy(): void;
15135
+ private resetInitialized;
15136
+ /**
15137
+ * Builds a map in a new container in the map slot. Resolves to `undefined`, with the map destroyed, if `destroy()`
15138
+ * abandoned the build while the map was being created.
15139
+ */
15089
15140
  private initializeMap;
15090
15141
  render(): lit_html.TemplateResult<1>;
15091
15142
  }
@@ -15930,7 +15981,7 @@ declare class FlowUiStepperPanel extends FlowRdfElement {
15930
15981
  complete: boolean;
15931
15982
  connectedCallback(): void;
15932
15983
  /** @internal */
15933
- handleStateChange(): void;
15984
+ handleActiveChange(): void;
15934
15985
  render(): lit_html.TemplateResult<1>;
15935
15986
  }
15936
15987
 
@@ -16189,8 +16240,11 @@ declare class FlowUiTextarea extends FlowRdfFormControl {
16189
16240
  maxlength: number;
16190
16241
  /** Controls whether and how text input is automatically capitalized as it is entered by the user. */
16191
16242
  autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
16192
- /** Indicates whether the browser's autocorrect feature is on or off. */
16193
- autocorrect: string;
16243
+ /**
16244
+ * Set to `false` to turn off the browser's autocorrect feature, or `true` to turn it on. The `autocorrect` attribute
16245
+ * takes `on` or `off`. If not set, the browser's default is used.
16246
+ */
16247
+ autocorrect: boolean;
16194
16248
  /**
16195
16249
  * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
16196
16250
  * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
@@ -16586,7 +16640,7 @@ declare class FlowUiTree extends FlowRdfElement {
16586
16640
  /** @internal */
16587
16641
  handleSelectionChange(): Promise<void>;
16588
16642
  /** @internal */
16589
- handleValueChange(previousValue: string[]): void;
16643
+ handleValueChange(previousValueOrNull: string[]): void;
16590
16644
  /** @internal Returns the list of tree items that are selected in the tree. */
16591
16645
  get selectedItems(): FlowUiTreeItem[];
16592
16646
  /** @internal Gets focusable tree items in the tree. */
package/dist/index.d.ts CHANGED
@@ -8149,6 +8149,8 @@ declare class DiagramGroupHighlightedDirective extends Directive {
8149
8149
  * `
8150
8150
  * };
8151
8151
  * ```
8152
+ *
8153
+ * @function
8152
8154
  */
8153
8155
  declare const diagramGroupHighlighted: (_node: DiagramNode | undefined) => lit_html_directive_js.DirectiveResult<typeof DiagramGroupHighlightedDirective>;
8154
8156
 
@@ -8208,6 +8210,8 @@ declare class DiagramHiddenDirective extends AsyncDirective {
8208
8210
  *
8209
8211
  * Not supported with virtualization: hiding the element would remove the template that holds the binding. With
8210
8212
  * virtualization on, the binding is ignored and a console warning is logged. Use the model `hidden` flag instead.
8213
+ *
8214
+ * @function
8211
8215
  */
8212
8216
  declare const diagramHidden: (_hidden?: unknown) => lit_html_directive_js.DirectiveResult<typeof DiagramHiddenDirective>;
8213
8217
 
@@ -8370,6 +8374,8 @@ declare class DiagramNodeSelectedDirective extends Directive {
8370
8374
  *
8371
8375
  * A tag-name template receives `selected` as a property instead, and can style `:host([selected])` once it reflects
8372
8376
  * it.
8377
+ *
8378
+ * @function
8373
8379
  */
8374
8380
  declare const diagramNodeSelected: (_node: DiagramNode | undefined) => lit_html_directive_js.DirectiveResult<typeof DiagramNodeSelectedDirective>;
8375
8381
 
@@ -9166,6 +9172,7 @@ declare const isRuleOrRuleset: (r: unknown) => r is FlowQueryBuilderRule | FlowQ
9166
9172
  */
9167
9173
  declare function betweenRuleValues(rule: FlowQueryBuilderRule, field: FlowQueryBuilderField): [any, any | undefined] | undefined;
9168
9174
 
9175
+ /** @function */
9169
9176
  declare const converter$2: FlowQueryBuilderConverter;
9170
9177
 
9171
9178
  declare class JavaScriptFilterError extends Error {
@@ -9300,6 +9307,7 @@ class AppState extends StateStore {
9300
9307
  */
9301
9308
  declare const converter$1: <TData = object>(ruleset: FlowQueryBuilderRuleSet, config: FlowQueryBuilderConfig, options?: FlowQueryBuilderConverterOptions) => JavaScriptFilterFn<TData>;
9302
9309
 
9310
+ /** @function */
9303
9311
  declare const converter: FlowQueryBuilderConverter<string | undefined>;
9304
9312
 
9305
9313
  /**
@@ -10741,8 +10749,11 @@ declare class FlowUiInput extends FlowRdfFormControl {
10741
10749
  step: number | 'any';
10742
10750
  /** Controls whether and how text input is automatically capitalized as it is entered by the user. */
10743
10751
  autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
10744
- /** Indicates whether the browser's autocorrect feature is on or off. */
10745
- autocorrect: 'off' | 'on';
10752
+ /**
10753
+ * Set to `false` to turn off the browser's autocorrect feature, or `true` to turn it on. The `autocorrect` attribute
10754
+ * takes `on` or `off`. If not set, the browser's default is used.
10755
+ */
10756
+ autocorrect: boolean;
10746
10757
  /**
10747
10758
  * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
10748
10759
  * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
@@ -11278,6 +11289,11 @@ declare class FlowUiCalendar extends FlowRdfElement {
11278
11289
  private highlightedDays;
11279
11290
  private updateValue;
11280
11291
  private handleHeaderSelectChange;
11292
+ /**
11293
+ * The month and year selects change the month shown, not the value, and open and close inside the calendar, so their
11294
+ * input, show and hide events go no further (they would reach a date time picker as its own).
11295
+ */
11296
+ private stopHeaderSelectEvent;
11281
11297
  private handleTimeChange;
11282
11298
  /**
11283
11299
  * Handle a change in the Start or End row of a datetime range or a time range. In a datetime range, the start time
@@ -14973,8 +14989,10 @@ declare class FlowUiProgressBar extends FlowRdfElement {
14973
14989
  *
14974
14990
  * @dependency flow-ui-progress-bar
14975
14991
  *
14976
- * @event {CustomEvent<{ map: FlowCoreMap }>} flow-ui-map-load - Dispatched when the map is first initialized and has completed loading.
14977
- * The Flo.w Core map instance can be retrieved from the event `detail` property.
14992
+ * @event {CustomEvent<{ map: FlowCoreMap }>} flow-ui-map-load - Emitted when a map that the element builds has been
14993
+ * initialized and has completed loading. It is emitted once for each map: again when the element is removed from the
14994
+ * document and put back without `keep-alive` (it builds a new map), and not when it is put back with `keep-alive` (it
14995
+ * keeps its map). The `FlowCoreMap` instance can be retrieved from the event `detail` property.
14978
14996
  *
14979
14997
  * @csspart base - The base element of the component.
14980
14998
  * @csspart busy-indicator - The busy indicator flow-ui-progress-bar.
@@ -14993,7 +15011,11 @@ declare class FlowUiMap extends FlowRdfElement {
14993
15011
  static styles: CSSResultGroup;
14994
15012
  static dependencies: (typeof FlowUiProgressBar)[];
14995
15013
  private _map?;
15014
+ private _mapContainer?;
15015
+ private _build?;
15016
+ private _abandonedBuilds;
14996
15017
  private _initialized;
15018
+ private _initializedResolved;
14997
15019
  private _resolveInitialized;
14998
15020
  private _pendingCenter?;
14999
15021
  private _pendingBaseStyle?;
@@ -15067,6 +15089,20 @@ declare class FlowUiMap extends FlowRdfElement {
15067
15089
  * Set fade duration in milliseconds for the label collision fade-in/fade-out animation.
15068
15090
  */
15069
15091
  fadeDuration: number;
15092
+ /**
15093
+ * Set to `true` to keep the map when the element is removed from the document, for example when an Angular route
15094
+ * reuse strategy stashes the view that holds it, so that it is shown again, without reloading, when the element is
15095
+ * put back.
15096
+ *
15097
+ * The `FlowCoreMap` is kept with its map data sources, map layers, plugins and camera, and the element emits no
15098
+ * second `flow-ui-map-load` event. A kept map keeps following application state while the element is detached, so
15099
+ * changes made meanwhile are drawn when it is put back.
15100
+ *
15101
+ * Note that a kept map is only destroyed by `destroy()`: call it when the application discards an element with a
15102
+ * kept map, or the map and its WebGL context are never freed. The Angular `FlowMap` component does this when it is
15103
+ * destroyed.
15104
+ */
15105
+ keepAlive: boolean;
15070
15106
  /**
15071
15107
  * The underlying core FlowCoreMap instance. Note that this is
15072
15108
  * `undefined` until the map has been initialized.
@@ -15086,6 +15122,21 @@ declare class FlowUiMap extends FlowRdfElement {
15086
15122
  handleBaseStyleChange(): void;
15087
15123
  connectedCallback(): Promise<void>;
15088
15124
  disconnectedCallback(): void;
15125
+ /**
15126
+ * Destroys the map, which frees its WebGL context and stops it following application state, and removes its
15127
+ * container from the element. `map` is then `undefined` and `initialized` waits for a new map. A map that is still
15128
+ * being built is destroyed as soon as it exists, with no `flow-ui-map-load` event.
15129
+ *
15130
+ * The element builds a new map when it is next connected to the document, not before. Call this method when the
15131
+ * application discards an element with `keep-alive`; without it, the element calls it when it is removed from the
15132
+ * document. Calling it on an element with no map does nothing.
15133
+ */
15134
+ destroy(): void;
15135
+ private resetInitialized;
15136
+ /**
15137
+ * Builds a map in a new container in the map slot. Resolves to `undefined`, with the map destroyed, if `destroy()`
15138
+ * abandoned the build while the map was being created.
15139
+ */
15089
15140
  private initializeMap;
15090
15141
  render(): lit_html.TemplateResult<1>;
15091
15142
  }
@@ -15930,7 +15981,7 @@ declare class FlowUiStepperPanel extends FlowRdfElement {
15930
15981
  complete: boolean;
15931
15982
  connectedCallback(): void;
15932
15983
  /** @internal */
15933
- handleStateChange(): void;
15984
+ handleActiveChange(): void;
15934
15985
  render(): lit_html.TemplateResult<1>;
15935
15986
  }
15936
15987
 
@@ -16189,8 +16240,11 @@ declare class FlowUiTextarea extends FlowRdfFormControl {
16189
16240
  maxlength: number;
16190
16241
  /** Controls whether and how text input is automatically capitalized as it is entered by the user. */
16191
16242
  autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
16192
- /** Indicates whether the browser's autocorrect feature is on or off. */
16193
- autocorrect: string;
16243
+ /**
16244
+ * Set to `false` to turn off the browser's autocorrect feature, or `true` to turn it on. The `autocorrect` attribute
16245
+ * takes `on` or `off`. If not set, the browser's default is used.
16246
+ */
16247
+ autocorrect: boolean;
16194
16248
  /**
16195
16249
  * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
16196
16250
  * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
@@ -16586,7 +16640,7 @@ declare class FlowUiTree extends FlowRdfElement {
16586
16640
  /** @internal */
16587
16641
  handleSelectionChange(): Promise<void>;
16588
16642
  /** @internal */
16589
- handleValueChange(previousValue: string[]): void;
16643
+ handleValueChange(previousValueOrNull: string[]): void;
16590
16644
  /** @internal Returns the list of tree items that are selected in the tree. */
16591
16645
  get selectedItems(): FlowUiTreeItem[];
16592
16646
  /** @internal Gets focusable tree items in the tree. */
@@ -10,7 +10,7 @@ class FormControlController {
10
10
  if (input.hasAttribute("form") && input.getAttribute("form") !== "") {
11
11
  const root = input.getRootNode();
12
12
  const formId = input.getAttribute("form");
13
- if (formId) {
13
+ if (formId && (root instanceof Document || root instanceof ShadowRoot)) {
14
14
  return root.getElementById(formId);
15
15
  }
16
16
  }
@@ -0,0 +1,21 @@
1
+ import { isNil } from './type-checks.mjs';
2
+
3
+ const fromAttribute = (value) => {
4
+ if (isNil(value)) {
5
+ return void 0;
6
+ }
7
+ return value.toLowerCase() !== "off";
8
+ };
9
+ const onOffConverter = {
10
+ fromAttribute,
11
+ toAttribute: (value) => {
12
+ const on = typeof value === "string" ? fromAttribute(value) : value;
13
+ if (isNil(on)) {
14
+ return void 0;
15
+ }
16
+ return on ? "on" : "off";
17
+ }
18
+ };
19
+ const onOffConverter$1 = onOffConverter;
20
+
21
+ export { onOffConverter$1 as default };
@@ -1,3 +1,3 @@
1
- const version = "4.3.0";
1
+ const version = "4.4.0";
2
2
 
3
3
  export { version };