@emuanalytics/flow-rdf-ui 4.1.4 → 4.1.6

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.
@@ -14,6 +14,7 @@ import FlowUiPopup from '../popup/popup.component.mjs';
14
14
  import styles from './autocomplete.styles.mjs';
15
15
  import { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.mjs';
16
16
  import { stopAnimations, animateTo } from '../../internal/animate.mjs';
17
+ import { waitForEvent } from '../../internal/event.mjs';
17
18
 
18
19
  var __defProp = Object.defineProperty;
19
20
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -158,7 +159,6 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
158
159
  (inputText) => {
159
160
  this.inputText = inputText;
160
161
  this.emit("flow-ui-input");
161
- this.toggleListbox();
162
162
  },
163
163
  this.debounceDelay,
164
164
  { leading: false, trailing: true, context: this }
@@ -203,11 +203,12 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
203
203
  if (option && !option.disabled) {
204
204
  this.setValue(option.value, { emitChangeEvent: true });
205
205
  this.input.focus();
206
- this.hide();
206
+ await waitForEvent(this, "flow-ui-change");
207
+ this.blur();
207
208
  }
208
209
  }
209
210
  /** @internal */
210
- handleKeyDown(event) {
211
+ async handleKeyDown(event) {
211
212
  if (event.key === "Escape" && this.open) {
212
213
  event.preventDefault();
213
214
  event.stopPropagation();
@@ -250,8 +251,8 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
250
251
  this.setSelectedOption(this.currentOption);
251
252
  this.setValue(this.currentOption.value, { emitChangeEvent: true });
252
253
  }
253
- this.hide();
254
- this.input.focus({ preventScroll: true });
254
+ await waitForEvent(this, "flow-ui-change");
255
+ this.blur();
255
256
  }
256
257
  }
257
258
  /** @internal Add event listeners to the document when the dropdown is opened. */
@@ -334,7 +335,7 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
334
335
  /** Blurs from the control. */
335
336
  blur() {
336
337
  if (this.hasFocus) {
337
- this.input.focus({ preventScroll: true });
338
+ this.input.blur();
338
339
  this.hasFocus = false;
339
340
  this.toggleListbox();
340
341
  this.removeListenersForDropdown();
@@ -505,6 +506,7 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
505
506
  role="listbox"
506
507
  part="listbox"
507
508
  class="autocomplete__listbox"
509
+ aria-labelledby="label"
508
510
  aria-expanded=${this.open ? "true" : "false"}
509
511
  aria-multiselectable="false"
510
512
  @mouseup=${this.handleListboxClick}
@@ -46,10 +46,10 @@ function predicateFromRule(rule, config) {
46
46
  const caseInsensitive = isStringType(fieldConfig) && fieldConfig.caseInsensitive;
47
47
  switch (rule.operator) {
48
48
  case "=":
49
- operator = "$eq";
49
+ operator = caseInsensitive ? "$iEq" : "$eq";
50
50
  break;
51
51
  case "!=":
52
- operator = "$ne";
52
+ operator = caseInsensitive ? "$iNe" : "$ne";
53
53
  break;
54
54
  case "<":
55
55
  operator = "$lt";
@@ -36,6 +36,7 @@ class Ticker {
36
36
  }
37
37
  clearInterval(this.timer);
38
38
  this.timer = void 0;
39
+ this.nextUpdateAt = DateTime.fromMillis(0);
39
40
  this.notifySubscribers(this.currentDateTime, "major");
40
41
  }
41
42
  setZone(zone) {
@@ -855,151 +855,80 @@
855
855
  },
856
856
  {
857
857
  "kind": "javascript-module",
858
- "path": "components/badge/badge.component.js",
858
+ "path": "components/autocomplete/autocomplete.component.js",
859
859
  "declarations": [
860
860
  {
861
861
  "kind": "class",
862
862
  "description": "",
863
- "name": "FlowUiBadge",
863
+ "name": "FlowUiAutocomplete",
864
864
  "cssParts": [
865
865
  {
866
- "description": "The component's base wrapper.",
867
- "name": "base"
868
- }
869
- ],
870
- "slots": [
866
+ "description": "The form control that wraps the label, input, and help text.",
867
+ "name": "form-control"
868
+ },
871
869
  {
872
- "description": "The badge's content.",
873
- "name": ""
874
- }
875
- ],
876
- "members": [
870
+ "description": "The label's wrapper.",
871
+ "name": "form-control-label"
872
+ },
877
873
  {
878
- "kind": "field",
879
- "name": "variant",
880
- "type": {
881
- "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
882
- },
883
- "default": "'primary'",
884
- "description": "The badge's theme variant.",
885
- "attribute": "variant",
886
- "reflects": true
874
+ "description": "The select's wrapper.",
875
+ "name": "form-control-input"
887
876
  },
888
877
  {
889
- "kind": "field",
890
- "name": "size",
891
- "type": {
892
- "text": "'small' | 'medium' | 'large'"
893
- },
894
- "default": "'medium'",
895
- "description": "The badge size.",
896
- "attribute": "size",
897
- "reflects": true
878
+ "description": "The help text's wrapper.",
879
+ "name": "form-control-help-text"
898
880
  },
899
881
  {
900
- "kind": "field",
901
- "name": "pill",
902
- "type": {
903
- "text": "boolean"
904
- },
905
- "default": "false",
906
- "description": "Draws a pill-style badge with rounded edges.",
907
- "attribute": "pill",
908
- "reflects": true
882
+ "description": "The container the wraps the prefix, suffix, combobox, clear icon, and expand button.",
883
+ "name": "combobox"
909
884
  },
910
885
  {
911
- "kind": "field",
912
- "name": "pulse",
913
- "type": {
914
- "text": "boolean"
915
- },
916
- "default": "false",
917
- "description": "Makes the badge pulsate to draw attention.",
918
- "attribute": "pulse",
919
- "reflects": true
886
+ "description": "The container that wraps the prefix slot.",
887
+ "name": "prefix"
888
+ },
889
+ {
890
+ "description": "The container that wraps the suffix slot.",
891
+ "name": "suffix"
892
+ },
893
+ {
894
+ "description": "The element that displays the selected option's label, an `<input>` element.",
895
+ "name": "display-input"
896
+ },
897
+ {
898
+ "description": "The listbox container where options are slotted.",
899
+ "name": "listbox"
900
+ },
901
+ {
902
+ "description": "The clear button.",
903
+ "name": "clear-button"
920
904
  }
921
905
  ],
922
- "attributes": [
906
+ "slots": [
923
907
  {
924
- "name": "variant",
925
- "type": {
926
- "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
927
- },
928
- "default": "'primary'",
929
- "description": "The badge's theme variant.",
930
- "fieldName": "variant"
908
+ "description": "The listbox options. Must be `<flow-option>` elements. You can use `<flow-divider>` to group items visually.",
909
+ "name": ""
931
910
  },
932
911
  {
933
- "name": "size",
934
- "type": {
935
- "text": "'small' | 'medium' | 'large'"
936
- },
937
- "default": "'medium'",
938
- "description": "The badge size.",
939
- "fieldName": "size"
912
+ "description": "The input's label. Alternatively, you can use the `label` attribute.",
913
+ "name": "label"
940
914
  },
941
915
  {
942
- "name": "pill",
943
- "type": {
944
- "text": "boolean"
945
- },
946
- "default": "false",
947
- "description": "Draws a pill-style badge with rounded edges.",
948
- "fieldName": "pill"
916
+ "description": "Used to prepend a presentational icon or similar element to the combobox.",
917
+ "name": "prefix"
949
918
  },
950
919
  {
951
- "name": "pulse",
952
- "type": {
953
- "text": "boolean"
954
- },
955
- "default": "false",
956
- "description": "Makes the badge pulsate to draw attention.",
957
- "fieldName": "pulse"
920
+ "description": "Used to append a presentational icon or similar element to the combobox.",
921
+ "name": "suffix"
922
+ },
923
+ {
924
+ "description": "An icon to use in lieu of the default clear icon.",
925
+ "name": "clear-icon"
926
+ },
927
+ {
928
+ "description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
929
+ "name": "help-text"
958
930
  }
959
931
  ],
960
- "superclass": {
961
- "name": "FlowRdfElement",
962
- "module": "/src/internal/flow-ui-rdf-element"
963
- },
964
- "tagName": "flow-ui-badge",
965
- "summary": "Badges are used to draw attention and display statuses or counts.",
966
- "customElement": true
967
- }
968
- ],
969
- "exports": [
970
- {
971
- "kind": "js",
972
- "name": "default",
973
- "declaration": {
974
- "name": "FlowUiBadge",
975
- "module": "components/badge/badge.component.js"
976
- }
977
- }
978
- ]
979
- },
980
- {
981
- "kind": "javascript-module",
982
- "path": "components/badge/badge.js",
983
- "declarations": [],
984
- "exports": [
985
- {
986
- "kind": "js",
987
- "name": "default",
988
- "declaration": {
989
- "name": "FlowUiBadge",
990
- "module": "components/badge/badge.js"
991
- }
992
- }
993
- ]
994
- },
995
- {
996
- "kind": "javascript-module",
997
- "path": "components/autocomplete/autocomplete.component.js",
998
- "declarations": [
999
- {
1000
- "kind": "class",
1001
- "description": "",
1002
- "name": "FlowUiAutocomplete",
1003
932
  "members": [
1004
933
  {
1005
934
  "kind": "field",
@@ -2118,122 +2047,114 @@
2118
2047
  },
2119
2048
  {
2120
2049
  "kind": "javascript-module",
2121
- "path": "components/breadcrumb-item/breadcrumb-item.component.js",
2050
+ "path": "components/badge/badge.component.js",
2122
2051
  "declarations": [
2123
2052
  {
2124
2053
  "kind": "class",
2125
2054
  "description": "",
2126
- "name": "FlowUiBreadcrumbItem",
2055
+ "name": "FlowUiBadge",
2127
2056
  "cssParts": [
2128
2057
  {
2129
2058
  "description": "The component's base wrapper.",
2130
2059
  "name": "base"
2131
- },
2132
- {
2133
- "description": "The breadcrumb item's label.",
2134
- "name": "label"
2135
- },
2136
- {
2137
- "description": "The container that wraps the prefix.",
2138
- "name": "prefix"
2139
- },
2140
- {
2141
- "description": "The container that wraps the suffix.",
2142
- "name": "suffix"
2143
- },
2144
- {
2145
- "description": "The container that wraps the separator.",
2146
- "name": "separator"
2147
2060
  }
2148
2061
  ],
2149
2062
  "slots": [
2150
2063
  {
2151
- "description": "The breadcrumb item's label.",
2064
+ "description": "The badge's content.",
2152
2065
  "name": ""
2153
- },
2154
- {
2155
- "description": "An optional prefix, usually an icon or icon button.",
2156
- "name": "prefix"
2157
- },
2158
- {
2159
- "description": "An optional suffix, usually an icon or icon button.",
2160
- "name": "suffix"
2161
- },
2162
- {
2163
- "description": "The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `<flow-ui-breadcrumb>` instead.",
2164
- "name": "separator"
2165
2066
  }
2166
2067
  ],
2167
2068
  "members": [
2168
2069
  {
2169
2070
  "kind": "field",
2170
- "name": "hasSlotController",
2171
- "privacy": "private",
2172
- "readonly": true,
2173
- "default": "new HasSlotController(this, 'prefix', 'suffix')"
2071
+ "name": "variant",
2072
+ "type": {
2073
+ "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
2074
+ },
2075
+ "default": "'primary'",
2076
+ "description": "The badge's theme variant.",
2077
+ "attribute": "variant",
2078
+ "reflects": true
2174
2079
  },
2175
2080
  {
2176
2081
  "kind": "field",
2177
- "name": "href",
2082
+ "name": "size",
2178
2083
  "type": {
2179
- "text": "string | undefined"
2084
+ "text": "'small' | 'medium' | 'large'"
2180
2085
  },
2181
- "description": "Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\ninternally. When unset, a button will be rendered instead.",
2182
- "attribute": "href"
2086
+ "default": "'medium'",
2087
+ "description": "The badge size.",
2088
+ "attribute": "size",
2089
+ "reflects": true
2183
2090
  },
2184
2091
  {
2185
2092
  "kind": "field",
2186
- "name": "target",
2093
+ "name": "pill",
2187
2094
  "type": {
2188
- "text": "'_blank' | '_parent' | '_self' | '_top' | undefined"
2095
+ "text": "boolean"
2189
2096
  },
2190
- "description": "Tells the browser where to open the link. Only used when `href` is set.",
2191
- "attribute": "target"
2097
+ "default": "false",
2098
+ "description": "Draws a pill-style badge with rounded edges.",
2099
+ "attribute": "pill",
2100
+ "reflects": true
2192
2101
  },
2193
2102
  {
2194
2103
  "kind": "field",
2195
- "name": "rel",
2104
+ "name": "pulse",
2196
2105
  "type": {
2197
- "text": "string"
2106
+ "text": "boolean"
2198
2107
  },
2199
- "default": "'noreferrer noopener'",
2200
- "description": "The `rel` attribute to use on the link. Only used when `href` is set.",
2201
- "attribute": "rel"
2108
+ "default": "false",
2109
+ "description": "Makes the badge pulsate to draw attention.",
2110
+ "attribute": "pulse",
2111
+ "reflects": true
2202
2112
  }
2203
2113
  ],
2204
2114
  "attributes": [
2205
2115
  {
2206
- "name": "href",
2116
+ "name": "variant",
2207
2117
  "type": {
2208
- "text": "string | undefined"
2118
+ "text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
2209
2119
  },
2210
- "description": "Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\ninternally. When unset, a button will be rendered instead.",
2211
- "fieldName": "href"
2120
+ "default": "'primary'",
2121
+ "description": "The badge's theme variant.",
2122
+ "fieldName": "variant"
2212
2123
  },
2213
2124
  {
2214
- "name": "target",
2125
+ "name": "size",
2215
2126
  "type": {
2216
- "text": "'_blank' | '_parent' | '_self' | '_top' | undefined"
2127
+ "text": "'small' | 'medium' | 'large'"
2217
2128
  },
2218
- "description": "Tells the browser where to open the link. Only used when `href` is set.",
2219
- "fieldName": "target"
2129
+ "default": "'medium'",
2130
+ "description": "The badge size.",
2131
+ "fieldName": "size"
2220
2132
  },
2221
2133
  {
2222
- "name": "rel",
2134
+ "name": "pill",
2223
2135
  "type": {
2224
- "text": "string"
2136
+ "text": "boolean"
2225
2137
  },
2226
- "default": "'noreferrer noopener'",
2227
- "description": "The `rel` attribute to use on the link. Only used when `href` is set.",
2228
- "fieldName": "rel"
2138
+ "default": "false",
2139
+ "description": "Draws a pill-style badge with rounded edges.",
2140
+ "fieldName": "pill"
2141
+ },
2142
+ {
2143
+ "name": "pulse",
2144
+ "type": {
2145
+ "text": "boolean"
2146
+ },
2147
+ "default": "false",
2148
+ "description": "Makes the badge pulsate to draw attention.",
2149
+ "fieldName": "pulse"
2229
2150
  }
2230
2151
  ],
2231
2152
  "superclass": {
2232
2153
  "name": "FlowRdfElement",
2233
2154
  "module": "/src/internal/flow-ui-rdf-element"
2234
2155
  },
2235
- "tagName": "flow-ui-breadcrumb-item",
2236
- "summary": "Breadcrumb Items are used inside [breadcrumbs](./flow-ui-breadcrumb) to represent different links.",
2156
+ "tagName": "flow-ui-badge",
2157
+ "summary": "Badges are used to draw attention and display statuses or counts.",
2237
2158
  "customElement": true
2238
2159
  }
2239
2160
  ],
@@ -2242,23 +2163,23 @@
2242
2163
  "kind": "js",
2243
2164
  "name": "default",
2244
2165
  "declaration": {
2245
- "name": "FlowUiBreadcrumbItem",
2246
- "module": "components/breadcrumb-item/breadcrumb-item.component.js"
2166
+ "name": "FlowUiBadge",
2167
+ "module": "components/badge/badge.component.js"
2247
2168
  }
2248
2169
  }
2249
2170
  ]
2250
2171
  },
2251
2172
  {
2252
2173
  "kind": "javascript-module",
2253
- "path": "components/breadcrumb-item/breadcrumb-item.js",
2174
+ "path": "components/badge/badge.js",
2254
2175
  "declarations": [],
2255
2176
  "exports": [
2256
2177
  {
2257
2178
  "kind": "js",
2258
2179
  "name": "default",
2259
2180
  "declaration": {
2260
- "name": "FlowUiBreadcrumbItem",
2261
- "module": "components/breadcrumb-item/breadcrumb-item.js"
2181
+ "name": "FlowUiBadge",
2182
+ "module": "components/badge/badge.js"
2262
2183
  }
2263
2184
  }
2264
2185
  ]
@@ -2386,6 +2307,153 @@
2386
2307
  }
2387
2308
  ]
2388
2309
  },
2310
+ {
2311
+ "kind": "javascript-module",
2312
+ "path": "components/breadcrumb-item/breadcrumb-item.component.js",
2313
+ "declarations": [
2314
+ {
2315
+ "kind": "class",
2316
+ "description": "",
2317
+ "name": "FlowUiBreadcrumbItem",
2318
+ "cssParts": [
2319
+ {
2320
+ "description": "The component's base wrapper.",
2321
+ "name": "base"
2322
+ },
2323
+ {
2324
+ "description": "The breadcrumb item's label.",
2325
+ "name": "label"
2326
+ },
2327
+ {
2328
+ "description": "The container that wraps the prefix.",
2329
+ "name": "prefix"
2330
+ },
2331
+ {
2332
+ "description": "The container that wraps the suffix.",
2333
+ "name": "suffix"
2334
+ },
2335
+ {
2336
+ "description": "The container that wraps the separator.",
2337
+ "name": "separator"
2338
+ }
2339
+ ],
2340
+ "slots": [
2341
+ {
2342
+ "description": "The breadcrumb item's label.",
2343
+ "name": ""
2344
+ },
2345
+ {
2346
+ "description": "An optional prefix, usually an icon or icon button.",
2347
+ "name": "prefix"
2348
+ },
2349
+ {
2350
+ "description": "An optional suffix, usually an icon or icon button.",
2351
+ "name": "suffix"
2352
+ },
2353
+ {
2354
+ "description": "The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `<flow-ui-breadcrumb>` instead.",
2355
+ "name": "separator"
2356
+ }
2357
+ ],
2358
+ "members": [
2359
+ {
2360
+ "kind": "field",
2361
+ "name": "hasSlotController",
2362
+ "privacy": "private",
2363
+ "readonly": true,
2364
+ "default": "new HasSlotController(this, 'prefix', 'suffix')"
2365
+ },
2366
+ {
2367
+ "kind": "field",
2368
+ "name": "href",
2369
+ "type": {
2370
+ "text": "string | undefined"
2371
+ },
2372
+ "description": "Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\ninternally. When unset, a button will be rendered instead.",
2373
+ "attribute": "href"
2374
+ },
2375
+ {
2376
+ "kind": "field",
2377
+ "name": "target",
2378
+ "type": {
2379
+ "text": "'_blank' | '_parent' | '_self' | '_top' | undefined"
2380
+ },
2381
+ "description": "Tells the browser where to open the link. Only used when `href` is set.",
2382
+ "attribute": "target"
2383
+ },
2384
+ {
2385
+ "kind": "field",
2386
+ "name": "rel",
2387
+ "type": {
2388
+ "text": "string"
2389
+ },
2390
+ "default": "'noreferrer noopener'",
2391
+ "description": "The `rel` attribute to use on the link. Only used when `href` is set.",
2392
+ "attribute": "rel"
2393
+ }
2394
+ ],
2395
+ "attributes": [
2396
+ {
2397
+ "name": "href",
2398
+ "type": {
2399
+ "text": "string | undefined"
2400
+ },
2401
+ "description": "Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\ninternally. When unset, a button will be rendered instead.",
2402
+ "fieldName": "href"
2403
+ },
2404
+ {
2405
+ "name": "target",
2406
+ "type": {
2407
+ "text": "'_blank' | '_parent' | '_self' | '_top' | undefined"
2408
+ },
2409
+ "description": "Tells the browser where to open the link. Only used when `href` is set.",
2410
+ "fieldName": "target"
2411
+ },
2412
+ {
2413
+ "name": "rel",
2414
+ "type": {
2415
+ "text": "string"
2416
+ },
2417
+ "default": "'noreferrer noopener'",
2418
+ "description": "The `rel` attribute to use on the link. Only used when `href` is set.",
2419
+ "fieldName": "rel"
2420
+ }
2421
+ ],
2422
+ "superclass": {
2423
+ "name": "FlowRdfElement",
2424
+ "module": "/src/internal/flow-ui-rdf-element"
2425
+ },
2426
+ "tagName": "flow-ui-breadcrumb-item",
2427
+ "summary": "Breadcrumb Items are used inside [breadcrumbs](./flow-ui-breadcrumb) to represent different links.",
2428
+ "customElement": true
2429
+ }
2430
+ ],
2431
+ "exports": [
2432
+ {
2433
+ "kind": "js",
2434
+ "name": "default",
2435
+ "declaration": {
2436
+ "name": "FlowUiBreadcrumbItem",
2437
+ "module": "components/breadcrumb-item/breadcrumb-item.component.js"
2438
+ }
2439
+ }
2440
+ ]
2441
+ },
2442
+ {
2443
+ "kind": "javascript-module",
2444
+ "path": "components/breadcrumb-item/breadcrumb-item.js",
2445
+ "declarations": [],
2446
+ "exports": [
2447
+ {
2448
+ "kind": "js",
2449
+ "name": "default",
2450
+ "declaration": {
2451
+ "name": "FlowUiBreadcrumbItem",
2452
+ "module": "components/breadcrumb-item/breadcrumb-item.js"
2453
+ }
2454
+ }
2455
+ ]
2456
+ },
2389
2457
  {
2390
2458
  "kind": "javascript-module",
2391
2459
  "path": "components/busy-overlay/busy-overlay.component.js",
@@ -25650,6 +25718,6 @@
25650
25718
  ],
25651
25719
  "package": {
25652
25720
  "name": "@emuanalytics/flow-rdf-ui",
25653
- "version": "4.1.2"
25721
+ "version": "4.1.6"
25654
25722
  }
25655
25723
  }
package/dist/index.d.mts CHANGED
@@ -1938,6 +1938,13 @@ declare global {
1938
1938
  * @dependency flow-ui-popup
1939
1939
  * @dependency flow-ui-icon
1940
1940
  *
1941
+ * @slot - The listbox options. Must be `<flow-option>` elements. You can use `<flow-divider>` to group items visually.
1942
+ * @slot label - The input's label. Alternatively, you can use the `label` attribute.
1943
+ * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.
1944
+ * @slot suffix - Used to append a presentational icon or similar element to the combobox.
1945
+ * @slot clear-icon - An icon to use in lieu of the default clear icon.
1946
+ * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
1947
+ *
1941
1948
  * @event flow-ui-input - Emitted when the display value changes.
1942
1949
  * @event flow-ui-change - Emitted when the input value changes.
1943
1950
  * @event flow-ui-focus - Emitted when the input is focused.
@@ -1952,6 +1959,17 @@ declare global {
1952
1959
  * @event flow-ui-validate-complete - Emitted when the input is validated and the validity state is updated.
1953
1960
  * @event flow-ui-validate-error - Emitted when the input is validated and an error occurs.
1954
1961
  * @event flow-ui-validate-success - Emitted when the input is validated and no errors occur.
1962
+ *
1963
+ * @csspart form-control - The form control that wraps the label, input, and help text.
1964
+ * @csspart form-control-label - The label's wrapper.
1965
+ * @csspart form-control-input - The select's wrapper.
1966
+ * @csspart form-control-help-text - The help text's wrapper.
1967
+ * @csspart combobox - The container the wraps the prefix, suffix, combobox, clear icon, and expand button.
1968
+ * @csspart prefix - The container that wraps the prefix slot.
1969
+ * @csspart suffix - The container that wraps the suffix slot.
1970
+ * @csspart display-input - The element that displays the selected option's label, an `<input>` element.
1971
+ * @csspart listbox - The listbox container where options are slotted.
1972
+ * @csspart clear-button - The clear button.
1955
1973
  */
1956
1974
  declare class FlowUiAutocomplete extends FlowRdfFormControl {
1957
1975
  static styles: CSSResultGroup;
package/dist/index.d.ts CHANGED
@@ -1938,6 +1938,13 @@ declare global {
1938
1938
  * @dependency flow-ui-popup
1939
1939
  * @dependency flow-ui-icon
1940
1940
  *
1941
+ * @slot - The listbox options. Must be `<flow-option>` elements. You can use `<flow-divider>` to group items visually.
1942
+ * @slot label - The input's label. Alternatively, you can use the `label` attribute.
1943
+ * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.
1944
+ * @slot suffix - Used to append a presentational icon or similar element to the combobox.
1945
+ * @slot clear-icon - An icon to use in lieu of the default clear icon.
1946
+ * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
1947
+ *
1941
1948
  * @event flow-ui-input - Emitted when the display value changes.
1942
1949
  * @event flow-ui-change - Emitted when the input value changes.
1943
1950
  * @event flow-ui-focus - Emitted when the input is focused.
@@ -1952,6 +1959,17 @@ declare global {
1952
1959
  * @event flow-ui-validate-complete - Emitted when the input is validated and the validity state is updated.
1953
1960
  * @event flow-ui-validate-error - Emitted when the input is validated and an error occurs.
1954
1961
  * @event flow-ui-validate-success - Emitted when the input is validated and no errors occur.
1962
+ *
1963
+ * @csspart form-control - The form control that wraps the label, input, and help text.
1964
+ * @csspart form-control-label - The label's wrapper.
1965
+ * @csspart form-control-input - The select's wrapper.
1966
+ * @csspart form-control-help-text - The help text's wrapper.
1967
+ * @csspart combobox - The container the wraps the prefix, suffix, combobox, clear icon, and expand button.
1968
+ * @csspart prefix - The container that wraps the prefix slot.
1969
+ * @csspart suffix - The container that wraps the suffix slot.
1970
+ * @csspart display-input - The element that displays the selected option's label, an `<input>` element.
1971
+ * @csspart listbox - The listbox container where options are slotted.
1972
+ * @csspart clear-button - The clear button.
1955
1973
  */
1956
1974
  declare class FlowUiAutocomplete extends FlowRdfFormControl {
1957
1975
  static styles: CSSResultGroup;
@@ -1,3 +1,3 @@
1
- const version = "4.1.2";
1
+ const version = "4.1.6";
2
2
 
3
3
  export { version };
@@ -133,47 +133,9 @@
133
133
  ],
134
134
  "references": []
135
135
  },
136
- {
137
- "name": "flow-ui-badge",
138
- "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.",
139
- "attributes": [
140
- {
141
- "name": "variant",
142
- "description": "The badge's theme variant.",
143
- "values": [
144
- { "name": "primary" },
145
- { "name": "secondary" },
146
- { "name": "success" },
147
- { "name": "neutral" },
148
- { "name": "warning" },
149
- { "name": "danger" }
150
- ]
151
- },
152
- {
153
- "name": "size",
154
- "description": "The badge size.",
155
- "values": [
156
- { "name": "small" },
157
- { "name": "medium" },
158
- { "name": "large" }
159
- ]
160
- },
161
- {
162
- "name": "pill",
163
- "description": "Draws a pill-style badge with rounded edges.",
164
- "values": []
165
- },
166
- {
167
- "name": "pulse",
168
- "description": "Makes the badge pulsate to draw attention.",
169
- "values": []
170
- }
171
- ],
172
- "references": []
173
- },
174
136
  {
175
137
  "name": "flow-ui-autocomplete",
176
- "description": "The Autocomplete is a Text input enhanced by a panel of suggested options.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-input** - Emitted when the display value changes.\n- **flow-ui-change** - Emitted when the input value changes.\n- **flow-ui-focus** - Emitted when the input is focused.\n- **flow-ui-blur** - Emitted when the input is blurred.\n- **flow-ui-show** - Emitted when the dropdown is shown.\n- **flow-ui-after-show** - Emitted when the dropdown is shown.\n- **flow-ui-hide** - Emitted when the dropdown is hidden.\n- **flow-ui-after-hide** - Emitted when the dropdown is hidden.\n- **flow-ui-invalid** - Emitted when the input is invalid.\n- **flow-ui-valid** - Emitted when the input is valid.\n- **flow-ui-validate** - Emitted when the input is validated.\n- **flow-ui-validate-complete** - Emitted when the input is validated and the validity state is updated.\n- **flow-ui-validate-error** - Emitted when the input is validated and an error occurs.\n- **flow-ui-validate-success** - Emitted when the input is validated and no errors occur.\n\n### **Methods:**\n - **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **checkValidity(): _boolean_** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **focus()** - Focuses on the control\n- **blur()** - Blurs from the control.\n- **show()** - Shows the listbox.\n- **hide()** - Hides the listbox.\n- **getInputText()** - Gets the current value of the text input",
138
+ "description": "The Autocomplete is a Text input enhanced by a panel of suggested options.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-input** - Emitted when the display value changes.\n- **flow-ui-change** - Emitted when the input value changes.\n- **flow-ui-focus** - Emitted when the input is focused.\n- **flow-ui-blur** - Emitted when the input is blurred.\n- **flow-ui-show** - Emitted when the dropdown is shown.\n- **flow-ui-after-show** - Emitted when the dropdown is shown.\n- **flow-ui-hide** - Emitted when the dropdown is hidden.\n- **flow-ui-after-hide** - Emitted when the dropdown is hidden.\n- **flow-ui-invalid** - Emitted when the input is invalid.\n- **flow-ui-valid** - Emitted when the input is valid.\n- **flow-ui-validate** - Emitted when the input is validated.\n- **flow-ui-validate-complete** - Emitted when the input is validated and the validity state is updated.\n- **flow-ui-validate-error** - Emitted when the input is validated and an error occurs.\n- **flow-ui-validate-success** - Emitted when the input is validated and no errors occur.\n\n### **Methods:**\n - **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **checkValidity(): _boolean_** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **focus()** - Focuses on the control\n- **blur()** - Blurs from the control.\n- **show()** - Shows the listbox.\n- **hide()** - Hides the listbox.\n- **getInputText()** - Gets the current value of the text input\n\n### **Slots:**\n - _default_ - The listbox options. Must be `<flow-option>` elements. You can use `<flow-divider>` to group items visually.\n- **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the combobox.\n- **suffix** - Used to append a presentational icon or similar element to the combobox.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The select's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **combobox** - The container the wraps the prefix, suffix, combobox, clear icon, and expand button.\n- **prefix** - The container that wraps the prefix slot.\n- **suffix** - The container that wraps the suffix slot.\n- **display-input** - The element that displays the selected option's label, an `<input>` element.\n- **listbox** - The listbox container where options are slotted.\n- **clear-button** - The clear button.",
177
139
  "attributes": [
178
140
  {
179
141
  "name": "size",
@@ -331,6 +293,56 @@
331
293
  ],
332
294
  "references": []
333
295
  },
296
+ {
297
+ "name": "flow-ui-badge",
298
+ "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.",
299
+ "attributes": [
300
+ {
301
+ "name": "variant",
302
+ "description": "The badge's theme variant.",
303
+ "values": [
304
+ { "name": "primary" },
305
+ { "name": "secondary" },
306
+ { "name": "success" },
307
+ { "name": "neutral" },
308
+ { "name": "warning" },
309
+ { "name": "danger" }
310
+ ]
311
+ },
312
+ {
313
+ "name": "size",
314
+ "description": "The badge size.",
315
+ "values": [
316
+ { "name": "small" },
317
+ { "name": "medium" },
318
+ { "name": "large" }
319
+ ]
320
+ },
321
+ {
322
+ "name": "pill",
323
+ "description": "Draws a pill-style badge with rounded edges.",
324
+ "values": []
325
+ },
326
+ {
327
+ "name": "pulse",
328
+ "description": "Makes the badge pulsate to draw attention.",
329
+ "values": []
330
+ }
331
+ ],
332
+ "references": []
333
+ },
334
+ {
335
+ "name": "flow-ui-breadcrumb",
336
+ "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.",
337
+ "attributes": [
338
+ {
339
+ "name": "label",
340
+ "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.",
341
+ "values": []
342
+ }
343
+ ],
344
+ "references": []
345
+ },
334
346
  {
335
347
  "name": "flow-ui-breadcrumb-item",
336
348
  "description": "Breadcrumb Items are used inside [breadcrumbs](./flow-ui-breadcrumb) to represent different links.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The breadcrumb item's label.\n- **prefix** - An optional prefix, usually an icon or icon button.\n- **suffix** - An optional suffix, usually an icon or icon button.\n- **separator** - The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `<flow-ui-breadcrumb>` instead.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The breadcrumb item's label.\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.\n- **separator** - The container that wraps the separator.",
@@ -358,18 +370,6 @@
358
370
  ],
359
371
  "references": []
360
372
  },
361
- {
362
- "name": "flow-ui-breadcrumb",
363
- "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.",
364
- "attributes": [
365
- {
366
- "name": "label",
367
- "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.",
368
- "values": []
369
- }
370
- ],
371
- "references": []
372
- },
373
373
  {
374
374
  "name": "flow-ui-busy-overlay",
375
375
  "description": "Busy overlay is used to indicate that a component which displays data is being currently updated.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The component to overlay with when busy.\n- **busy-animation** - The indeterminate custom loading animation to display when busy.\n\n### **CSS Properties:**\n - **--transition-delay** - The delay after which the overlay is shown. _(default: undefined)_\n- **--transition-duration** - The duration of the overlay's fade-in/out transition. _(default: undefined)_\n- **--progress-ring-size** - The size of the default progress ring loading animation. _(default: undefined)_\n- **--progress-ring-track-width** - The width of the default progress ring's track. _(default: undefined)_\n- **--progress-ring-track-color** - The color of the default progress ring's track. _(default: undefined)_\n- **--overlay-background-color** - The background color of the overlay. _(default: undefined)_",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emuanalytics/flow-rdf-ui",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "type": "module",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",