@nordhealth/components 4.6.0 → 4.7.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.
package/lib/react.d.ts CHANGED
@@ -80,6 +80,11 @@ declare module "react" {
80
80
  */
81
81
  onclose?: (event: Event) => void
82
82
 
83
+ /**
84
+ * Fired as the user types into the search input.
85
+ */
86
+ oninput?: (event: Event) => void
87
+
83
88
  /**
84
89
  * User selected a command from the menu.
85
90
  */
@@ -40,13 +40,26 @@ export default class CommandMenu extends LitElement {
40
40
  * Show or hide the command menu.
41
41
  */
42
42
  open: boolean;
43
+ /**
44
+ * Use external filtering mode. When set to true, the component will not perform
45
+ * internal text-based filtering and expects external filtering logic to be implemented.
46
+ */
47
+ externalFiltering: boolean;
48
+ /**
49
+ * When enabled, typing in the search input will automatically exit nested views
50
+ * to allow global search across all commands.
51
+ */
52
+ exitNestedOnSearch: boolean;
43
53
  /**
44
54
  * Array of commands to be included in the menu.
45
55
  * Please see “Commands data” section for more documentation.
46
56
  */
47
57
  commands: Array<ICommandMenuAction>;
58
+ /**
59
+ * Current search query in the command menu input.
60
+ */
61
+ searchQuery: string;
48
62
  private parent;
49
- private search;
50
63
  private bump;
51
64
  private selectedIndex;
52
65
  private filteredCommands;
@@ -1,4 +1,4 @@
1
- import CommandMenu from "./CommandMenu.js";
1
+ import type CommandMenu from "./CommandMenu.js";
2
2
  export interface ICommandMenuAction {
3
3
  id: string;
4
4
  title: string;
package/lib/vue.d.ts CHANGED
@@ -52,6 +52,11 @@ interface NordComponents {
52
52
  */
53
53
  onClose?: (event: Event) => void
54
54
 
55
+ /**
56
+ * Fired as the user types into the search input.
57
+ */
58
+ onInput?: (event: Event) => void
59
+
55
60
  /**
56
61
  * User selected a command from the menu.
57
62
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordhealth/components",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "This package includes Nord Design System Web Components",
5
5
  "author": "Nordhealth <support@nordhealth.design>",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -91,7 +91,8 @@
91
91
  "demo/index.html",
92
92
  "demo/**/*.js",
93
93
  "utils/**/*.js",
94
- "test-utils/**/*.js"
94
+ "test-utils/**/*.js",
95
+ "**/usage/*.html"
95
96
  ],
96
97
  "parser": "@typescript-eslint/parser",
97
98
  "parserOptions": {
@@ -178,5 +179,5 @@
178
179
  }
179
180
  ]
180
181
  },
181
- "gitHead": "0bc9ea7f208bf48918fd5490974530c2e34e1d09"
182
+ "gitHead": "9ded0738f437907ddaa5f68066225db9d4211e9b"
182
183
  }