@docupace/ihub-config 1.1.21-admin.0 → 1.1.22
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/dist/config-extension.d.ts +0 -12
- package/dist/config-extension.d.ts.map +1 -1
- package/dist/config-extension.js +0 -4
- package/dist/config-extension.js.map +1 -1
- package/dist/config-service.d.ts +2 -9
- package/dist/config-service.d.ts.map +1 -1
- package/dist/config-service.js +16 -77
- package/dist/config-service.js.map +1 -1
- package/dist/mappers/config-mapper.d.ts.map +1 -1
- package/dist/mappers/config-mapper.js +0 -2
- package/dist/mappers/config-mapper.js.map +1 -1
- package/dist/model/graphs/config/fields.graphql +0 -30
- package/dist/model/graphs/config/menu.graphql +0 -6
- package/dist/model/graphs/config/page.graphql +1 -8
- package/dist/model/graphs/config/selectOptions.graphql +0 -1
- package/dist/model/graphs/config/table.graphql +22 -5
- package/dist/types/graphql.d.ts +2 -4
- package/dist/types/graphql.d.ts.map +1 -1
- package/dist/types/graphql.js.map +1 -1
- package/model/graphs/config/fields.graphql +0 -30
- package/model/graphs/config/menu.graphql +0 -6
- package/model/graphs/config/page.graphql +1 -8
- package/model/graphs/config/selectOptions.graphql +0 -1
- package/model/graphs/config/table.graphql +22 -5
- package/package.json +21 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/types/graphql.ts"],"names":[],"mappings":"AA4CA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,yDAAkC,CAAA;AACpC,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;
|
|
1
|
+
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/types/graphql.ts"],"names":[],"mappings":"AA4CA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,yDAAkC,CAAA;AACpC,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AA0dD,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAkVD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA2ZD,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,yCAAmB,CAAA;AACrB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAwBD,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B"}
|
|
@@ -101,36 +101,6 @@ type ControlGroup implements IRowElement & IElement {
|
|
|
101
101
|
fields: [Fields!]!
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
# Renders the currently-linked records of a multi-valued reference attribute
|
|
105
|
-
# (`path`) as a table (`columns`, reusing Table's Column config), with a quick
|
|
106
|
-
# typeahead (`search`, reusing Table's SimpleSearch/QuerySelectOptions config)
|
|
107
|
-
# to find and add records of `dataType`, and a delete affordance per row.
|
|
108
|
-
# `rowMenuItems` (reusing Table's MenuItem config) adds further per-row actions,
|
|
109
|
-
# e.g. an `action: "details"` item with a `url` to navigate to that record's own
|
|
110
|
-
# details page.
|
|
111
|
-
type ReferenceTable implements IField & IRowElement & IElement {
|
|
112
|
-
cols: Int
|
|
113
|
-
defaultValue: String
|
|
114
|
-
disabledCondition: String
|
|
115
|
-
excludeFromQueryInput: Boolean
|
|
116
|
-
hidden: Boolean
|
|
117
|
-
label: String
|
|
118
|
-
name: String!
|
|
119
|
-
path: String!
|
|
120
|
-
readonly: Boolean
|
|
121
|
-
required: Boolean
|
|
122
|
-
requiredCondition: String
|
|
123
|
-
skipQuery: Boolean
|
|
124
|
-
visibilityCondition: String
|
|
125
|
-
dataType: String!
|
|
126
|
-
columns: [Column!]!
|
|
127
|
-
search: SimpleSearch
|
|
128
|
-
addLabel: String
|
|
129
|
-
confirmDelete: Boolean
|
|
130
|
-
maxRows: Int
|
|
131
|
-
rowMenuItems: [MenuItem!]
|
|
132
|
-
}
|
|
133
|
-
|
|
134
104
|
type PhoneField implements IField & IRowElement & IElement {
|
|
135
105
|
cols: Int
|
|
136
106
|
defaultValue: String
|
|
@@ -25,12 +25,6 @@ type MenuItem implements IMenuItem {
|
|
|
25
25
|
visibilityCondition: String
|
|
26
26
|
disabledCondition: String
|
|
27
27
|
config: JSON
|
|
28
|
-
"""
|
|
29
|
-
Child menu items. When present, this item acts as a collapsible group
|
|
30
|
-
header rather than a navigable leaf (consumers should treat a MenuItem
|
|
31
|
-
with `items` and no `url` as a group).
|
|
32
|
-
"""
|
|
33
|
-
items: [MenuItem!]
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
type ActionButton implements IMenuItem {
|
|
@@ -250,15 +250,8 @@ type Viewer {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
type Breadcrumb {
|
|
253
|
-
label: String
|
|
253
|
+
label: String!
|
|
254
254
|
path: String
|
|
255
255
|
isLabelExpression: Boolean
|
|
256
256
|
isPathExpression: Boolean
|
|
257
|
-
"""
|
|
258
|
-
Dot-notation paths (e.g. "name", "folder.title") to try, in order, against
|
|
259
|
-
the already-fetched page record to compute the breadcrumb label. Used only
|
|
260
|
-
when `isLabelExpression` is not set. If none of the paths resolve to a
|
|
261
|
-
non-empty value, the client falls back to the record's `id`.
|
|
262
|
-
"""
|
|
263
|
-
valuePaths: [String!]
|
|
264
257
|
}
|
|
@@ -9,7 +9,6 @@ type SelectOptionsFilter {
|
|
|
9
9
|
type QuerySelectOptions implements ISelectOptions {
|
|
10
10
|
type: String
|
|
11
11
|
labelProp: String # defaults to "name" in ui
|
|
12
|
-
labelExpression: String # JS expression evaluated against each option (e.g. "`${option.name} (${option.internalId})`"); takes precedence over labelProp when set
|
|
13
12
|
valueProp: String # defaults to "id" in ui
|
|
14
13
|
queryName: String!
|
|
15
14
|
variableDefinitions: JSON
|
|
@@ -34,7 +34,6 @@ interface ITable {
|
|
|
34
34
|
expandable: Expandable
|
|
35
35
|
totals: [TotalsItem!]
|
|
36
36
|
config: JSON
|
|
37
|
-
globalName: String
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
type TotalsItem {
|
|
@@ -58,13 +57,33 @@ type OrderBy {
|
|
|
58
57
|
|
|
59
58
|
type TableSelection {
|
|
60
59
|
enabled: Boolean
|
|
61
|
-
|
|
62
|
-
action
|
|
60
|
+
"""
|
|
61
|
+
Label for the single selection action. One-button shorthand, superseded by
|
|
62
|
+
actions.
|
|
63
|
+
"""
|
|
64
|
+
label: String @deprecated(reason: "Use actions instead.")
|
|
65
|
+
"""
|
|
66
|
+
Action dispatched by the single selection action. One-button shorthand,
|
|
67
|
+
superseded by actions. Ignored when actions is set.
|
|
68
|
+
"""
|
|
69
|
+
action: String @deprecated(reason: "Use actions instead.")
|
|
70
|
+
"""
|
|
71
|
+
Multiple actions rendered side by side in the selection bar. When set, this
|
|
72
|
+
takes precedence over the label/action pair.
|
|
73
|
+
"""
|
|
74
|
+
actions: [TableSelectionButton!]
|
|
63
75
|
disabledCondition: String
|
|
64
76
|
visibilityCondition: String
|
|
65
77
|
position: TablePinnedPosition
|
|
66
78
|
}
|
|
67
79
|
|
|
80
|
+
type TableSelectionButton {
|
|
81
|
+
label: String!
|
|
82
|
+
action: String!
|
|
83
|
+
visibilityCondition: String
|
|
84
|
+
disabledCondition: String
|
|
85
|
+
}
|
|
86
|
+
|
|
68
87
|
enum TablePinnedPosition {
|
|
69
88
|
RIGHT
|
|
70
89
|
LEFT
|
|
@@ -72,8 +91,6 @@ enum TablePinnedPosition {
|
|
|
72
91
|
|
|
73
92
|
type Toolbar {
|
|
74
93
|
columns: ToolbarColumns
|
|
75
|
-
configureColumns: ToolbarColumns
|
|
76
|
-
configureFilters: ToolbarColumns
|
|
77
94
|
}
|
|
78
95
|
|
|
79
96
|
type ToolbarColumns {
|
package/package.json
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docupace/ihub-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "Reusable config GraphQL extension and standalone server",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "jest",
|
|
9
|
+
"test:coverage": "jest --coverage",
|
|
10
|
+
"start:dev": "cross-env NODE_ENV=development tsx watch --clear-screen --no-cache src/server.ts --log-level debug | pino-pretty",
|
|
11
|
+
"start": "node dist/server.js",
|
|
12
|
+
"build:code": "tsc -p tsconfig.json",
|
|
13
|
+
"build:assets": "cpx \"model/**/*.yaml\" ./dist/model && cpx \"model/**/*.graphql\" ./dist/model",
|
|
14
|
+
"build": "rimraf dist && pnpm lint && pnpm build:code && pnpm build:assets",
|
|
15
|
+
"watch": "tsc -p tsconfig.json --watch",
|
|
16
|
+
"start:build": "rimraf dist && pnpm build:esm && pnpm build:assets && node dist/server.js",
|
|
17
|
+
"codegen": "graphql-codegen --config codegen.ts",
|
|
18
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
|
|
19
|
+
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
|
|
20
|
+
"prepublishOnly": "pnpm build && pnpm test",
|
|
21
|
+
"sonar": "bash sonar.sh"
|
|
22
|
+
},
|
|
7
23
|
"keywords": [
|
|
8
24
|
"graphql",
|
|
9
25
|
"config",
|
|
@@ -13,11 +29,11 @@
|
|
|
13
29
|
"license": "ISC",
|
|
14
30
|
"dependencies": {
|
|
15
31
|
"@docupace/ihub-cache": "1.0.1",
|
|
16
|
-
"@docupace/ihub-core": "
|
|
32
|
+
"@docupace/ihub-core": "0.0.114-alpha.1",
|
|
17
33
|
"axios": "^1.13.5",
|
|
18
34
|
"cross-env": "^7.0.3",
|
|
19
35
|
"dotenv": "^16.4.1",
|
|
20
|
-
"graphql": "^16.
|
|
36
|
+
"graphql": "^16.8.1",
|
|
21
37
|
"js-yaml": "^4.1.0",
|
|
22
38
|
"lodash": "^4.17.21",
|
|
23
39
|
"pino": "^10.3.1",
|
|
@@ -51,6 +67,7 @@
|
|
|
51
67
|
"tsx": "^4.11.2",
|
|
52
68
|
"typescript": "^5.3.3"
|
|
53
69
|
},
|
|
70
|
+
"packageManager": "pnpm@10.30.3",
|
|
54
71
|
"types": "dist/index.d.ts",
|
|
55
72
|
"files": [
|
|
56
73
|
"dist",
|
|
@@ -60,20 +77,5 @@
|
|
|
60
77
|
],
|
|
61
78
|
"imports": {
|
|
62
79
|
"#module-format": "./dist/lib/module-format.esm.js"
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"test": "jest",
|
|
66
|
-
"test:coverage": "jest --coverage",
|
|
67
|
-
"start:dev": "cross-env NODE_ENV=development tsx watch --clear-screen --no-cache src/server.ts --log-level debug | pino-pretty",
|
|
68
|
-
"start": "node dist/server.js",
|
|
69
|
-
"build:code": "tsc -p tsconfig.json",
|
|
70
|
-
"build:assets": "cpx \"model/**/*.yaml\" ./dist/model && cpx \"model/**/*.graphql\" ./dist/model",
|
|
71
|
-
"build": "rimraf dist && pnpm lint && pnpm build:code && pnpm build:assets",
|
|
72
|
-
"watch": "tsc -p tsconfig.json --watch",
|
|
73
|
-
"start:build": "rimraf dist && pnpm build:esm && pnpm build:assets && node dist/server.js",
|
|
74
|
-
"codegen": "graphql-codegen --config codegen.ts",
|
|
75
|
-
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
|
|
76
|
-
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\" \"tests/**/*.{js,jsx,ts,tsx}\"",
|
|
77
|
-
"sonar": "bash sonar.sh"
|
|
78
80
|
}
|
|
79
|
-
}
|
|
81
|
+
}
|