@genesislcap/pbc-auth-ui 14.347.1 → 14.348.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.
@@ -1 +1 @@
1
- {"version":3,"file":"users.template.d.ts","sourceRoot":"","sources":["../../../src/user-admin/users.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAqF3D,eAAO,MAAM,aAAa,EAAE,YAoC3B,CAAC"}
1
+ {"version":3,"file":"users.template.d.ts","sourceRoot":"","sources":["../../../src/user-admin/users.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAwG3D,eAAO,MAAM,aAAa,EAAE,YAoC3B,CAAC"}
@@ -32,6 +32,23 @@ const editUserSchema = (edit, allAccessType, entityID, entityLabel, entityLabelK
32
32
  type: 'Control',
33
33
  label: 'One Time Password',
34
34
  scope: '#/properties/ONE_TIME_PASSWORD',
35
+ options: {
36
+ validateFn: (data, path, label) => {
37
+ const value = data === null || data === void 0 ? void 0 : data[path];
38
+ if (!value || (typeof value === 'string' && value.trim().length === 0)) {
39
+ return [
40
+ {
41
+ instancePath: `/${path}`,
42
+ message: `Required field ${label} is missing`,
43
+ schemaPath: '',
44
+ keyword: '',
45
+ params: {},
46
+ },
47
+ ];
48
+ }
49
+ return [];
50
+ },
51
+ },
35
52
  }),
36
53
  {
37
54
  type: 'Control',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-auth-ui",
3
3
  "description": "Genesis PBC auth UI",
4
- "version": "14.347.1",
4
+ "version": "14.348.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",
@@ -62,25 +62,25 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@genesislcap/foundation-testing": "14.347.1",
66
- "@genesislcap/genx": "14.347.1",
65
+ "@genesislcap/foundation-testing": "14.348.0",
66
+ "@genesislcap/genx": "14.348.0",
67
67
  "playwright-lighthouse": "^3.1.0",
68
68
  "rimraf": "^3.0.2",
69
69
  "tslib": "^2.3.1"
70
70
  },
71
71
  "dependencies": {
72
72
  "@ag-grid-community/core": "29.2.0",
73
- "@genesislcap/foundation-comms": "14.347.1",
74
- "@genesislcap/foundation-entity-management": "14.347.1",
75
- "@genesislcap/foundation-logger": "14.347.1",
76
- "@genesislcap/foundation-notifications": "14.347.1",
77
- "@genesislcap/foundation-utils": "14.347.1",
78
- "@genesislcap/grid-pro": "14.347.1",
79
- "@genesislcap/web-core": "14.347.1"
73
+ "@genesislcap/foundation-comms": "14.348.0",
74
+ "@genesislcap/foundation-entity-management": "14.348.0",
75
+ "@genesislcap/foundation-logger": "14.348.0",
76
+ "@genesislcap/foundation-notifications": "14.348.0",
77
+ "@genesislcap/foundation-utils": "14.348.0",
78
+ "@genesislcap/grid-pro": "14.348.0",
79
+ "@genesislcap/web-core": "14.348.0"
80
80
  },
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
84
  "customElements": "dist/custom-elements.json",
85
- "gitHead": "fb3dde1303cacf1079541238912b2d3b005dfe16"
85
+ "gitHead": "997e110176c9ff1b3b73878ab22253e11e9996ff"
86
86
  }
@@ -43,6 +43,25 @@ const editUserSchema = (
43
43
  type: 'Control',
44
44
  label: 'One Time Password',
45
45
  scope: '#/properties/ONE_TIME_PASSWORD',
46
+ options: {
47
+ validateFn: (data: any, path: string, label: string) => {
48
+ const value = data?.[path];
49
+
50
+ if (!value || (typeof value === 'string' && value.trim().length === 0)) {
51
+ return [
52
+ {
53
+ instancePath: `/${path}`,
54
+ message: `Required field ${label} is missing`,
55
+ schemaPath: '',
56
+ keyword: '',
57
+ params: {},
58
+ },
59
+ ];
60
+ }
61
+
62
+ return [];
63
+ },
64
+ },
46
65
  }),
47
66
  {
48
67
  type: 'Control',