@adminforth/quick-filters 2.2.6 → 2.2.8

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
@@ -11,5 +11,5 @@ custom/UniversalSearchInput.vue
11
11
  custom/tsconfig.json
12
12
  custom/types.ts
13
13
 
14
- sent 10,842 bytes received 134 bytes 21,952.00 bytes/sec
14
+ sent 10,835 bytes received 134 bytes 21,938.00 bytes/sec
15
15
  total size is 10,336 speedup is 0.94
@@ -0,0 +1,10 @@
1
+ import { AdminForthPlugin } from "adminforth";
2
+ import type { IAdminForth, AdminForthResource } from "adminforth";
3
+ import type { PluginOptions } from './types.js';
4
+ export default class extends AdminForthPlugin {
5
+ options: PluginOptions;
6
+ constructor(options: PluginOptions);
7
+ modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource): Promise<void>;
8
+ validateConfigAfterDiscover(adminforth: IAdminForth, resourceConfig: AdminForthResource): void;
9
+ instanceUniqueRepresentation(pluginOptions: any): string;
10
+ }
@@ -0,0 +1,15 @@
1
+ import { type IAdminForthSingleFilter, type IAdminForthAndOrFilter, type PluginsCommonOptions } from "adminforth";
2
+ interface IFilter {
3
+ name: string;
4
+ icon?: string;
5
+ enum?: {
6
+ label: string;
7
+ icon?: string;
8
+ filters: () => IAdminForthSingleFilter | IAdminForthAndOrFilter | Promise<IAdminForthSingleFilter | IAdminForthAndOrFilter>;
9
+ }[];
10
+ searchInput?: (searchVal: string) => IAdminForthSingleFilter | IAdminForthAndOrFilter | Promise<IAdminForthSingleFilter | IAdminForthAndOrFilter>;
11
+ }
12
+ export interface PluginOptions extends PluginsCommonOptions {
13
+ filters: IFilter[];
14
+ }
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/quick-filters",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -17,13 +17,13 @@
17
17
  "description": "",
18
18
  "devDependencies": {
19
19
  "@types/node": "latest",
20
- "adminforth": "2.71.1",
20
+ "adminforth": "3.0.1",
21
21
  "semantic-release": "^24.2.1",
22
22
  "semantic-release-slack-bot": "^4.0.2",
23
23
  "typescript": "^5.7.3"
24
24
  },
25
25
  "peerDependencies": {
26
- "adminforth": "2.71.1"
26
+ "adminforth": "3.0.1"
27
27
  },
28
28
  "release": {
29
29
  "plugins": [
package/tsconfig.json CHANGED
@@ -2,6 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include*/
4
4
  "module": "node16", /* Specify what module code is generated. */
5
+ "declaration": true,
5
6
  "outDir": "./dist", /* Specify an output folder for all emitted files. */
6
7
  "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. */
7
8
  "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */