@genesislcap/rapid-design-system 14.447.1 → 14.448.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.
@@ -28605,19 +28605,11 @@
28605
28605
  "type": {
28606
28606
  "text": "Event"
28607
28607
  },
28608
- "description": "Fired when the combobox value changes",
28608
+ "description": "Fires a custom 'change' event when the value updates",
28609
28609
  "inheritedFrom": {
28610
28610
  "name": "Combobox",
28611
28611
  "module": "src/combobox/combobox.ts"
28612
28612
  }
28613
- },
28614
- {
28615
- "description": "Fired when the input is cleared by the user",
28616
- "name": "inputdeleted",
28617
- "inheritedFrom": {
28618
- "name": "SearchBarCombobox",
28619
- "module": "src/search-bar/search-bar-combobox.ts"
28620
- }
28621
28613
  }
28622
28614
  ]
28623
28615
  },
@@ -28704,6 +28696,20 @@
28704
28696
  "tagName": "%%prefix%%-search-bar",
28705
28697
  "customElement": true,
28706
28698
  "attributes": [
28699
+ {
28700
+ "name": "clear-button",
28701
+ "type": {
28702
+ "text": "boolean"
28703
+ },
28704
+ "default": "true",
28705
+ "attribute": "clear-button",
28706
+ "fieldName": "clearButton",
28707
+ "description": "when true, shows the end clear control when there are chips or typed text. When false, use {@link SearchBar.clear} or {@link SearchBar.clearSearch} to reset programmatically.",
28708
+ "inheritedFrom": {
28709
+ "name": "SearchBar",
28710
+ "module": "src/search-bar/search-bar.ts"
28711
+ }
28712
+ },
28707
28713
  {
28708
28714
  "name": "appearance",
28709
28715
  "type": {
@@ -28868,6 +28874,19 @@
28868
28874
  "module": "src/search-bar/search-bar.ts"
28869
28875
  }
28870
28876
  },
28877
+ {
28878
+ "kind": "field",
28879
+ "name": "clearButton",
28880
+ "type": {
28881
+ "text": "boolean"
28882
+ },
28883
+ "default": "true",
28884
+ "attribute": "clear-button",
28885
+ "inheritedFrom": {
28886
+ "name": "SearchBar",
28887
+ "module": "src/search-bar/search-bar.ts"
28888
+ }
28889
+ },
28871
28890
  {
28872
28891
  "kind": "field",
28873
28892
  "name": "loading",
@@ -28918,6 +28937,7 @@
28918
28937
  "kind": "method",
28919
28938
  "name": "clear",
28920
28939
  "privacy": "public",
28940
+ "description": "Clears all search chips and the current input, and emits `selectionChange` with an empty array.",
28921
28941
  "inheritedFrom": {
28922
28942
  "name": "SearchBar",
28923
28943
  "module": "src/search-bar/search-bar.ts"
@@ -28932,6 +28952,32 @@
28932
28952
  "text": "void"
28933
28953
  }
28934
28954
  },
28955
+ "description": "Alias for SearchBar.clear.",
28956
+ "inheritedFrom": {
28957
+ "name": "SearchBar",
28958
+ "module": "src/search-bar/search-bar.ts"
28959
+ }
28960
+ },
28961
+ {
28962
+ "kind": "method",
28963
+ "name": "selectedOptionsChanged",
28964
+ "inheritedFrom": {
28965
+ "name": "SearchBar",
28966
+ "module": "src/search-bar/search-bar.ts"
28967
+ }
28968
+ },
28969
+ {
28970
+ "kind": "method",
28971
+ "name": "optionsChanged",
28972
+ "inheritedFrom": {
28973
+ "name": "SearchBar",
28974
+ "module": "src/search-bar/search-bar.ts"
28975
+ }
28976
+ },
28977
+ {
28978
+ "kind": "method",
28979
+ "name": "applySearchInputLock",
28980
+ "privacy": "private",
28935
28981
  "inheritedFrom": {
28936
28982
  "name": "SearchBar",
28937
28983
  "module": "src/search-bar/search-bar.ts"
@@ -576,7 +576,6 @@ export declare const SearchBarCombobox: React.ForwardRefExoticComponent<
576
576
  React.PropsWithChildren<
577
577
  Omit<PublicOf<SearchBarComboboxWC>, 'children' | 'style'> &
578
578
  HTMLWCProps & {
579
- onInputdeleted?: (event: CustomEvent<unknown>) => void;
580
579
  }
581
580
  > & React.RefAttributes<SearchBarComboboxWC>
582
581
  >;
package/dist/react.cjs CHANGED
@@ -516,20 +516,8 @@ const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(props, ref
516
516
  });
517
517
 
518
518
  const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
519
- const { onInputdeleted, children, ...rest } = props;
520
- const _innerRef = React.useRef(null);
521
- const _onInputdeletedRef = React.useRef(onInputdeleted);
522
- _onInputdeletedRef.current = onInputdeleted;
523
- React.useLayoutEffect(() => {
524
- const el = _innerRef.current;
525
- if (!el) return;
526
- const _onInputdeletedFn = (e) => _onInputdeletedRef.current?.(e);
527
- el.addEventListener('inputdeleted', _onInputdeletedFn);
528
- return () => {
529
- el.removeEventListener('inputdeleted', _onInputdeletedFn);
530
- };
531
- }, []);
532
- return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
519
+ const { children, ...rest } = props;
520
+ return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref }, children);
533
521
  });
534
522
 
535
523
  const SearchBar = React.forwardRef(function SearchBar(props, ref) {
package/dist/react.mjs CHANGED
@@ -514,20 +514,8 @@ export const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(pro
514
514
  });
515
515
 
516
516
  export const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
517
- const { onInputdeleted, children, ...rest } = props;
518
- const _innerRef = React.useRef(null);
519
- const _onInputdeletedRef = React.useRef(onInputdeleted);
520
- _onInputdeletedRef.current = onInputdeleted;
521
- React.useLayoutEffect(() => {
522
- const el = _innerRef.current;
523
- if (!el) return;
524
- const _onInputdeletedFn = (e) => _onInputdeletedRef.current?.(e);
525
- el.addEventListener('inputdeleted', _onInputdeletedFn);
526
- return () => {
527
- el.removeEventListener('inputdeleted', _onInputdeletedFn);
528
- };
529
- }, []);
530
- return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
517
+ const { children, ...rest } = props;
518
+ return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref }, children);
531
519
  });
532
520
 
533
521
  export const SearchBar = React.forwardRef(function SearchBar(props, ref) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/rapid-design-system",
3
3
  "description": "Rapid Design System",
4
- "version": "14.447.1",
4
+ "version": "14.448.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -35,17 +35,17 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
38
- "@genesislcap/genx": "14.447.1",
39
- "@genesislcap/rollup-builder": "14.447.1",
40
- "@genesislcap/ts-builder": "14.447.1",
41
- "@genesislcap/uvu-playwright-builder": "14.447.1",
42
- "@genesislcap/vite-builder": "14.447.1",
43
- "@genesislcap/webpack-builder": "14.447.1"
38
+ "@genesislcap/genx": "14.448.0",
39
+ "@genesislcap/rollup-builder": "14.448.0",
40
+ "@genesislcap/ts-builder": "14.448.0",
41
+ "@genesislcap/uvu-playwright-builder": "14.448.0",
42
+ "@genesislcap/vite-builder": "14.448.0",
43
+ "@genesislcap/webpack-builder": "14.448.0"
44
44
  },
45
45
  "dependencies": {
46
- "@genesislcap/foundation-logger": "14.447.1",
47
- "@genesislcap/foundation-ui": "14.447.1",
48
- "@genesislcap/foundation-utils": "14.447.1",
46
+ "@genesislcap/foundation-logger": "14.448.0",
47
+ "@genesislcap/foundation-ui": "14.448.0",
48
+ "@genesislcap/foundation-utils": "14.448.0",
49
49
  "@microsoft/fast-colors": "5.3.1",
50
50
  "@microsoft/fast-components": "2.30.6",
51
51
  "@microsoft/fast-element": "1.14.0",
@@ -73,5 +73,5 @@
73
73
  "require": "./dist/react.cjs"
74
74
  }
75
75
  },
76
- "gitHead": "e265cb98c173fe6e51a94b5f31e653384c4f2d8e"
76
+ "gitHead": "2c815fd566cf24fe967de97e4692a0456f402afa"
77
77
  }