@solidstarters/solid-core 1.2.61 → 1.2.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstarters/solid-core",
3
- "version": "1.2.61",
3
+ "version": "1.2.62",
4
4
  "description": "This module is a NestJS module containing all the required core providers required by a Solid application",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,6 +4,8 @@ import { PaginationQueryDto } from "src/dtos/pagination-query.dto";
4
4
  import { SelectionProvider } from "src/decorators/selection-provider.decorator";
5
5
  import { Injectable } from "@nestjs/common";
6
6
  import { ISelectionProvider, ISelectionProviderContext, ISelectionProviderValues } from "../interfaces";
7
+ import { filter } from "rxjs";
8
+ import { BasicFilterDto } from "src/dtos/basic-filters.dto";
7
9
 
8
10
  interface ListOfValuesProviderContext extends ISelectionProviderContext {
9
11
  type: string;
@@ -31,8 +33,14 @@ export class ListOfValuesSelectionProvider implements ISelectionProvider<ListOfV
31
33
  }
32
34
 
33
35
  async values(query: string, ctxt: ListOfValuesProviderContext): Promise<readonly ISelectionProviderValues[]> {
34
- const paginatedQuery = new PaginationQueryDto(DEFAULT_LIMIT, 0);
35
- const lovs = await this.listOfValuesService.find(paginatedQuery);
36
+ const basicFilterQuery = new BasicFilterDto(DEFAULT_LIMIT, 0);
37
+ basicFilterQuery.filters = {
38
+ type: {
39
+ $eq: ctxt.type
40
+ }
41
+ }
42
+
43
+ const lovs = await this.listOfValuesService.find(basicFilterQuery);
36
44
  const selectionValues = lovs.records.map(lov => {
37
45
  return {
38
46
  label: lov.display,
@@ -8674,13 +8674,5 @@
8674
8674
  ],
8675
8675
  "checksums": [],
8676
8676
  "listOfValues": [
8677
- {
8678
- "type": "industry",
8679
- "value": "IT",
8680
- "display": "IT",
8681
- "description": "Insdustry It list of value",
8682
- "default": true,
8683
- "sequence": 1
8684
- }
8685
8677
  ]
8686
8678
  }
@@ -740,8 +740,7 @@ export class ModelMetadataService {
740
740
  type: "field",
741
741
  attrs: {
742
742
  name: `${field.name}`,
743
- sortable: true,
744
- filterable: true
743
+ isSearchable: true,
745
744
  }
746
745
  }));
747
746
 
@@ -1,43 +0,0 @@
1
- // many-to-one field
2
- // {
3
- // "name": "module",
4
- // "displayName": "Module",
5
- // "type": "relation",
6
- // "required": true,
7
- // "unique": false,
8
- // "index": true,
9
- // "private": false,
10
- // "encrypt": false,
11
- // "relationType": "many-to-one",
12
- // "relationModelSingularName": "moduleMetadata",
13
- // "relationCreateInverse": true,
14
- // "relationCascade": "set null",
15
- // "relationModelModuleName": "solid-core",
16
- // "isSystem": true
17
- // },
18
-
19
- // one-to-many field
20
- // {
21
- // "name": field.relationModelField,
22
- // Logic to create a oneToMany field definition
23
- // return [
24
- // "name",
25
- // "displayName",
26
- // "description",
27
- // "type",
28
- // "ormType",
29
- // "isSystem",
30
- // "relationType",
31
- // "relationModelFieldName",
32
- // "relationCreateInverse",
33
- // "relationModelSingularName",
34
- // "relationModelModuleName",
35
- // "required",
36
- // "unique",
37
- // "index",
38
- // "private",
39
- // "encrypt",
40
- // "encryptionType",
41
- // "decryptWhen",
42
- // "columnName"
43
- // ];
@@ -1,14 +0,0 @@
1
- # Issues
2
- 1. @Column("text", { array: true, name: 'media_types', nullable: true }) // array type not supported. No impact on code generation. not being used
3
- 2.
4
- default values not allowed for text,blog // Code generation impact. If we want to support default values for long text/rich text, then changes to be made.
5
- date value is not supported propertly in mysql
6
- i.e new Date("2025-02-11T00:00:00.000Z")
7
- 3. Below type of code cannot exist. // No impact on code generation. Not being used.
8
- @Index({ unique: true })
9
- @Column({ unique: true })
10
- 4. // Impact on code generation. unique index to be generated by using @Index and not @Column.
11
- @Index({ unique: true })
12
- @Column({ })
13
- 5. i.e new Date("2025-02-11T00:00:00.000Z")
14
- -> Remove the column default value