@adminforth/universal-search 1.4.17 → 1.4.19

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/build.log CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/UniversalSearchInput.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 2,945 bytes received 58 bytes 6,006.00 bytes/sec
10
+ sent 2,942 bytes received 58 bytes 6,000.00 bytes/sec
11
11
  total size is 2,721 speedup is 0.91
@@ -0,0 +1,10 @@
1
+ import { AdminForthPlugin, AdminForthResource, IAdminForth } from 'adminforth';
2
+ import { PluginOptions } from './types.js';
3
+ export default class UniversalSearchPlugin extends AdminForthPlugin {
4
+ options: PluginOptions;
5
+ resourceConfig: AdminForthResource;
6
+ adminforth: IAdminForth;
7
+ constructor(options: PluginOptions);
8
+ instanceUniqueRepresentation(_pluginOptions: any): string;
9
+ modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource): Promise<void>;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { type PluginsCommonOptions } from "adminforth";
2
+ export type SearchByMode = 'valueOnly' | 'labelOnly' | 'keyOnly' | 'both';
3
+ export interface UniversalSearchColumnConfig {
4
+ name: string;
5
+ caseSensitive?: boolean;
6
+ searchBy?: SearchByMode;
7
+ exact?: boolean;
8
+ }
9
+ export interface PluginOptions extends PluginsCommonOptions {
10
+ columns?: UniversalSearchColumnConfig[];
11
+ debounceMs?: number;
12
+ placeholder?: string;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/universal-search",
3
- "version": "1.4.17",
3
+ "version": "1.4.19",
4
4
  "description": "Universal quick search input plugin for AdminForth (injected before action buttons)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -46,12 +46,12 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^22.18.6",
49
- "adminforth": "2.70.0",
49
+ "adminforth": "2.71.1",
50
50
  "semantic-release": "^24.2.9",
51
51
  "semantic-release-slack-bot": "^4.0.2",
52
52
  "typescript": "^5.9.2"
53
53
  },
54
54
  "peerDependencies": {
55
- "adminforth": "^2.70.0"
55
+ "adminforth": "2.71.1"
56
56
  }
57
57
  }
package/tsconfig.json CHANGED
@@ -51,7 +51,7 @@
51
51
  // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
52
52
 
53
53
  /* Emit */
54
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
54
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
55
55
  // "declarationMap": true, /* Create sourcemaps for d.ts files. */
56
56
  // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
57
57
  // "sourceMap": true, /* Create source map files for emitted JavaScript files. */