@adminforth/many2many 1.2.2 → 1.2.4

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
@@ -8,5 +8,5 @@ custom/ManyToManyInput.vue
8
8
  custom/ManyToManyShow.vue
9
9
  custom/tsconfig.json
10
10
 
11
- sent 4,989 bytes received 77 bytes 10,132.00 bytes/sec
11
+ sent 4,993 bytes received 77 bytes 10,140.00 bytes/sec
12
12
  total size is 4,701 speedup is 0.93
@@ -0,0 +1,14 @@
1
+ import { AdminForthPlugin } from "adminforth";
2
+ import type { IAdminForth, IHttpServer, AdminForthResource } from "adminforth";
3
+ import type { PluginOptions } from './types.js';
4
+ export default class ManyToManyPlugin extends AdminForthPlugin {
5
+ options: PluginOptions;
6
+ private junctionResource;
7
+ private linkedColumnNameInJunctionResource;
8
+ private resourceColumnNameInJunctionResource;
9
+ constructor(options: PluginOptions);
10
+ modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource): Promise<void>;
11
+ validateConfigAfterDiscover(adminforth: IAdminForth, resourceConfig: AdminForthResource): void;
12
+ instanceUniqueRepresentation(pluginOptions: any): string;
13
+ setupEndpoints(server: IHttpServer): void;
14
+ }
@@ -0,0 +1,8 @@
1
+ import { Predicate } from "adminforth";
2
+ import { type PluginsCommonOptions } from "adminforth";
3
+ export interface PluginOptions extends PluginsCommonOptions {
4
+ linkedResourceId: string;
5
+ dontDeleteJunctionRecords?: boolean;
6
+ labelForColumn?: string;
7
+ showIf?: Predicate;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/many2many",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "latest",
45
- "adminforth": "2.70.0",
45
+ "adminforth": "2.71.1",
46
46
  "semantic-release": "^24.2.1",
47
47
  "semantic-release-slack-bot": "^4.0.2",
48
48
  "typescript": "^5.7.3"
49
49
  },
50
50
  "peerDependencies": {
51
- "adminforth": "^2.70.0"
51
+ "adminforth": "2.71.1"
52
52
  }
53
53
  }
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. */