@things-factory/menu-base 5.0.0-zeta.8 → 5.0.1

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.
Files changed (170) hide show
  1. package/dist-server/index.js +1 -2
  2. package/dist-server/index.js.map +1 -1
  3. package/dist-server/service/index.js +52 -0
  4. package/dist-server/service/index.js.map +1 -0
  5. package/dist-server/service/menu/index.js +9 -0
  6. package/dist-server/service/menu/index.js.map +1 -0
  7. package/dist-server/service/menu/menu-mutation.js +238 -0
  8. package/dist-server/service/menu/menu-mutation.js.map +1 -0
  9. package/dist-server/service/menu/menu-query.js +238 -0
  10. package/dist-server/service/menu/menu-query.js.map +1 -0
  11. package/dist-server/service/menu/menu-type.js +275 -0
  12. package/dist-server/service/menu/menu-type.js.map +1 -0
  13. package/dist-server/service/menu/menu.js +229 -0
  14. package/dist-server/service/menu/menu.js.map +1 -0
  15. package/dist-server/service/menu-button/index.js +9 -0
  16. package/dist-server/service/menu-button/index.js.map +1 -0
  17. package/dist-server/service/menu-button/menu-button-mutation.js +146 -0
  18. package/dist-server/service/menu-button/menu-button-mutation.js.map +1 -0
  19. package/dist-server/service/menu-button/menu-button-query.js +103 -0
  20. package/dist-server/service/menu-button/menu-button-query.js.map +1 -0
  21. package/dist-server/service/menu-button/menu-button-type.js +97 -0
  22. package/dist-server/service/menu-button/menu-button-type.js.map +1 -0
  23. package/dist-server/service/menu-button/menu-button.js +109 -0
  24. package/dist-server/service/menu-button/menu-button.js.map +1 -0
  25. package/dist-server/service/menu-column/index.js +9 -0
  26. package/dist-server/service/menu-column/index.js.map +1 -0
  27. package/dist-server/service/menu-column/menu-column-mutation.js +148 -0
  28. package/dist-server/service/menu-column/menu-column-mutation.js.map +1 -0
  29. package/dist-server/service/menu-column/menu-column-query.js +103 -0
  30. package/dist-server/service/menu-column/menu-column-query.js.map +1 -0
  31. package/dist-server/service/menu-column/menu-column-type.js +321 -0
  32. package/dist-server/service/menu-column/menu-column-type.js.map +1 -0
  33. package/dist-server/service/menu-column/menu-column.js +255 -0
  34. package/dist-server/service/menu-column/menu-column.js.map +1 -0
  35. package/dist-server/service/menu-detail/index.js +9 -0
  36. package/dist-server/service/menu-detail/index.js.map +1 -0
  37. package/dist-server/service/menu-detail/menu-detail-mutation.js +148 -0
  38. package/dist-server/service/menu-detail/menu-detail-mutation.js.map +1 -0
  39. package/dist-server/service/menu-detail/menu-detail-query.js +129 -0
  40. package/dist-server/service/menu-detail/menu-detail-query.js.map +1 -0
  41. package/dist-server/service/menu-detail/menu-detail-type.js +137 -0
  42. package/dist-server/service/menu-detail/menu-detail-type.js.map +1 -0
  43. package/dist-server/service/menu-detail/menu-detail.js +136 -0
  44. package/dist-server/service/menu-detail/menu-detail.js.map +1 -0
  45. package/dist-server/service/menu-detail-button/index.js +9 -0
  46. package/dist-server/service/menu-detail-button/index.js.map +1 -0
  47. package/dist-server/service/menu-detail-button/menu-detail-button-mutation.js +148 -0
  48. package/dist-server/service/menu-detail-button/menu-detail-button-mutation.js.map +1 -0
  49. package/dist-server/service/menu-detail-button/menu-detail-button-query.js +103 -0
  50. package/dist-server/service/menu-detail-button/menu-detail-button-query.js.map +1 -0
  51. package/dist-server/service/menu-detail-button/menu-detail-button-type.js +89 -0
  52. package/dist-server/service/menu-detail-button/menu-detail-button-type.js.map +1 -0
  53. package/dist-server/service/menu-detail-button/menu-detail-button.js +104 -0
  54. package/dist-server/service/menu-detail-button/menu-detail-button.js.map +1 -0
  55. package/dist-server/service/menu-detail-column/index.js +9 -0
  56. package/dist-server/service/menu-detail-column/index.js.map +1 -0
  57. package/dist-server/service/menu-detail-column/menu-detail-column-mutation.js +150 -0
  58. package/dist-server/service/menu-detail-column/menu-detail-column-mutation.js.map +1 -0
  59. package/dist-server/service/menu-detail-column/menu-detail-column-query.js +103 -0
  60. package/dist-server/service/menu-detail-column/menu-detail-column-query.js.map +1 -0
  61. package/dist-server/service/menu-detail-column/menu-detail-column-type.js +321 -0
  62. package/dist-server/service/menu-detail-column/menu-detail-column-type.js.map +1 -0
  63. package/dist-server/service/menu-detail-column/menu-detail-column.js +252 -0
  64. package/dist-server/service/menu-detail-column/menu-detail-column.js.map +1 -0
  65. package/package.json +3 -3
  66. package/server/index.ts +1 -2
  67. package/server/service/index.ts +38 -0
  68. package/server/service/menu/index.ts +6 -0
  69. package/server/service/menu/menu-mutation.ts +234 -0
  70. package/server/service/menu/menu-query.ts +185 -0
  71. package/server/service/menu/menu-type.ts +78 -0
  72. package/server/service/menu/menu.ts +183 -0
  73. package/server/service/menu-button/index.ts +6 -0
  74. package/server/service/menu-button/menu-button-mutation.ts +134 -0
  75. package/server/service/menu-button/menu-button-query.ts +57 -0
  76. package/server/service/menu-button/menu-button-type.ts +31 -0
  77. package/server/service/menu-button/menu-button.ts +86 -0
  78. package/server/service/menu-column/index.ts +6 -0
  79. package/server/service/menu-column/menu-column-mutation.ts +137 -0
  80. package/server/service/menu-column/menu-column-query.ts +57 -0
  81. package/server/service/menu-column/menu-column-type.ts +92 -0
  82. package/server/service/menu-column/menu-column.ts +200 -0
  83. package/server/service/menu-detail/index.ts +6 -0
  84. package/server/service/menu-detail/menu-detail-mutation.ts +136 -0
  85. package/server/service/menu-detail/menu-detail-query.ts +73 -0
  86. package/server/service/menu-detail/menu-detail-type.ts +46 -0
  87. package/server/service/menu-detail/menu-detail.ts +111 -0
  88. package/server/service/menu-detail-button/index.ts +6 -0
  89. package/server/service/menu-detail-button/menu-detail-button-mutation.ts +140 -0
  90. package/server/service/menu-detail-button/menu-detail-button-query.ts +57 -0
  91. package/server/service/menu-detail-button/menu-detail-button-type.ts +34 -0
  92. package/server/service/menu-detail-button/menu-detail-button.ts +86 -0
  93. package/server/service/menu-detail-column/index.ts +6 -0
  94. package/server/service/menu-detail-column/menu-detail-column-mutation.ts +142 -0
  95. package/server/service/menu-detail-column/menu-detail-column-query.ts +57 -0
  96. package/server/service/menu-detail-column/menu-detail-column-type.ts +92 -0
  97. package/server/service/menu-detail-column/menu-detail-column.ts +205 -0
  98. package/server/entities/index.ts +0 -11
  99. package/server/entities/menu-button.ts +0 -62
  100. package/server/entities/menu-column.ts +0 -200
  101. package/server/entities/menu-detail-button.ts +0 -61
  102. package/server/entities/menu-detail-column.ts +0 -207
  103. package/server/entities/menu-detail.ts +0 -94
  104. package/server/entities/menu.ts +0 -178
  105. package/server/graphql/index.ts +0 -9
  106. package/server/graphql/resolvers/index.ts +0 -6
  107. package/server/graphql/resolvers/menu/create-menu.ts +0 -29
  108. package/server/graphql/resolvers/menu/delete-menu.ts +0 -13
  109. package/server/graphql/resolvers/menu/delete-menus.ts +0 -13
  110. package/server/graphql/resolvers/menu/index.ts +0 -21
  111. package/server/graphql/resolvers/menu/menu-query.ts +0 -80
  112. package/server/graphql/resolvers/menu/update-menu.ts +0 -42
  113. package/server/graphql/resolvers/menu/update-multiple-menu.ts +0 -33
  114. package/server/graphql/resolvers/menu/update-role-menu.ts +0 -84
  115. package/server/graphql/resolvers/menu-button/create-menu-button.ts +0 -14
  116. package/server/graphql/resolvers/menu-button/delete-menu-button.ts +0 -8
  117. package/server/graphql/resolvers/menu-button/index.ts +0 -14
  118. package/server/graphql/resolvers/menu-button/menu-button-query.ts +0 -30
  119. package/server/graphql/resolvers/menu-button/update-menu-button.ts +0 -22
  120. package/server/graphql/resolvers/menu-column/create-menu-column.ts +0 -14
  121. package/server/graphql/resolvers/menu-column/delete-menu-column.ts +0 -8
  122. package/server/graphql/resolvers/menu-column/index.ts +0 -14
  123. package/server/graphql/resolvers/menu-column/menu-column-query.ts +0 -30
  124. package/server/graphql/resolvers/menu-column/update-menu-column.ts +0 -26
  125. package/server/graphql/resolvers/menu-detail/create-menu-detail.ts +0 -14
  126. package/server/graphql/resolvers/menu-detail/delete-menu-detail.ts +0 -8
  127. package/server/graphql/resolvers/menu-detail/index.ts +0 -15
  128. package/server/graphql/resolvers/menu-detail/menu-detail-query.ts +0 -38
  129. package/server/graphql/resolvers/menu-detail/update-menu-detail.ts +0 -24
  130. package/server/graphql/resolvers/menu-detail-button/create-menu-detail-button.ts +0 -16
  131. package/server/graphql/resolvers/menu-detail-button/delete-menu-detail-button.ts +0 -8
  132. package/server/graphql/resolvers/menu-detail-button/index.ts +0 -15
  133. package/server/graphql/resolvers/menu-detail-button/menu-detail-button-query.ts +0 -32
  134. package/server/graphql/resolvers/menu-detail-button/update-menu-detail-button.ts +0 -23
  135. package/server/graphql/resolvers/menu-detail-column/create-menu-detail-column.ts +0 -14
  136. package/server/graphql/resolvers/menu-detail-column/delete-menu-detail-column.ts +0 -8
  137. package/server/graphql/resolvers/menu-detail-column/index.ts +0 -15
  138. package/server/graphql/resolvers/menu-detail-column/menu-detail-column-query.ts +0 -32
  139. package/server/graphql/resolvers/menu-detail-column/update-menu-detail-column.ts +0 -25
  140. package/server/graphql/types/index.ts +0 -6
  141. package/server/graphql/types/menu/index.ts +0 -25
  142. package/server/graphql/types/menu/menu-list.ts +0 -8
  143. package/server/graphql/types/menu/menu-patch.ts +0 -36
  144. package/server/graphql/types/menu/menu.ts +0 -40
  145. package/server/graphql/types/menu/new-menu.ts +0 -33
  146. package/server/graphql/types/menu-button/index.ts +0 -19
  147. package/server/graphql/types/menu-button/menu-button-list.ts +0 -8
  148. package/server/graphql/types/menu-button/menu-button-patch.ts +0 -13
  149. package/server/graphql/types/menu-button/menu-button.ts +0 -19
  150. package/server/graphql/types/menu-button/new-menu-button.ts +0 -13
  151. package/server/graphql/types/menu-column/index.ts +0 -19
  152. package/server/graphql/types/menu-column/menu-column-list.ts +0 -8
  153. package/server/graphql/types/menu-column/menu-column-patch.ts +0 -41
  154. package/server/graphql/types/menu-column/menu-column.ts +0 -47
  155. package/server/graphql/types/menu-column/new-menu-column.ts +0 -41
  156. package/server/graphql/types/menu-detail/index.ts +0 -19
  157. package/server/graphql/types/menu-detail/menu-detail-list.ts +0 -8
  158. package/server/graphql/types/menu-detail/menu-detail-patch.ts +0 -18
  159. package/server/graphql/types/menu-detail/menu-detail.ts +0 -22
  160. package/server/graphql/types/menu-detail/new-menu-detail.ts +0 -18
  161. package/server/graphql/types/menu-detail-button/index.ts +0 -19
  162. package/server/graphql/types/menu-detail-button/menu-detail-button-list.ts +0 -8
  163. package/server/graphql/types/menu-detail-button/menu-detail-button-patch.ts +0 -12
  164. package/server/graphql/types/menu-detail-button/menu-detail-button.ts +0 -18
  165. package/server/graphql/types/menu-detail-button/new-menu-detail-button.ts +0 -12
  166. package/server/graphql/types/menu-detail-column/index.ts +0 -19
  167. package/server/graphql/types/menu-detail-column/menu-detail-column-list.ts +0 -8
  168. package/server/graphql/types/menu-detail-column/menu-detail-column-patch.ts +0 -41
  169. package/server/graphql/types/menu-detail-column/menu-detail-column.ts +0 -47
  170. package/server/graphql/types/menu-detail-column/new-menu-detail-column.ts +0 -41
@@ -0,0 +1,275 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var _a, _b, _c, _d;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.MenuList = exports.MenuPatch = exports.NewMenu = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const shell_1 = require("@things-factory/shell");
16
+ const menu_1 = require("./menu");
17
+ let NewMenu = class NewMenu {
18
+ };
19
+ __decorate([
20
+ (0, type_graphql_1.Field)(),
21
+ __metadata("design:type", String)
22
+ ], NewMenu.prototype, "name", void 0);
23
+ __decorate([
24
+ (0, type_graphql_1.Field)(),
25
+ __metadata("design:type", String)
26
+ ], NewMenu.prototype, "menuType", void 0);
27
+ __decorate([
28
+ (0, type_graphql_1.Field)({ nullable: true }),
29
+ __metadata("design:type", String)
30
+ ], NewMenu.prototype, "description", void 0);
31
+ __decorate([
32
+ (0, type_graphql_1.Field)({ nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], NewMenu.prototype, "category", void 0);
35
+ __decorate([
36
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
37
+ __metadata("design:type", Number)
38
+ ], NewMenu.prototype, "rank", void 0);
39
+ __decorate([
40
+ (0, type_graphql_1.Field)({ nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], NewMenu.prototype, "routing", void 0);
43
+ __decorate([
44
+ (0, type_graphql_1.Field)({ nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], NewMenu.prototype, "routingType", void 0);
47
+ __decorate([
48
+ (0, type_graphql_1.Field)({ nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], NewMenu.prototype, "resourceType", void 0);
51
+ __decorate([
52
+ (0, type_graphql_1.Field)({ nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], NewMenu.prototype, "resourceId", void 0);
55
+ __decorate([
56
+ (0, type_graphql_1.Field)({ nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], NewMenu.prototype, "resourceUrl", void 0);
59
+ __decorate([
60
+ (0, type_graphql_1.Field)({ nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], NewMenu.prototype, "resourceName", void 0);
63
+ __decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], NewMenu.prototype, "idField", void 0);
67
+ __decorate([
68
+ (0, type_graphql_1.Field)({ nullable: true }),
69
+ __metadata("design:type", String)
70
+ ], NewMenu.prototype, "titleField", void 0);
71
+ __decorate([
72
+ (0, type_graphql_1.Field)({ nullable: true }),
73
+ __metadata("design:type", String)
74
+ ], NewMenu.prototype, "gridSaveUrl", void 0);
75
+ __decorate([
76
+ (0, type_graphql_1.Field)({ nullable: true }),
77
+ __metadata("design:type", Boolean)
78
+ ], NewMenu.prototype, "pagination", void 0);
79
+ __decorate([
80
+ (0, type_graphql_1.Field)({ nullable: true }),
81
+ __metadata("design:type", String)
82
+ ], NewMenu.prototype, "detailFormId", void 0);
83
+ __decorate([
84
+ (0, type_graphql_1.Field)({ nullable: true }),
85
+ __metadata("design:type", String)
86
+ ], NewMenu.prototype, "detailLayout", void 0);
87
+ __decorate([
88
+ (0, type_graphql_1.Field)({ nullable: true }),
89
+ __metadata("design:type", String)
90
+ ], NewMenu.prototype, "template", void 0);
91
+ __decorate([
92
+ (0, type_graphql_1.Field)({ nullable: true }),
93
+ __metadata("design:type", Boolean)
94
+ ], NewMenu.prototype, "hiddenFlag", void 0);
95
+ __decorate([
96
+ (0, type_graphql_1.Field)({ nullable: true }),
97
+ __metadata("design:type", String)
98
+ ], NewMenu.prototype, "itemsProp", void 0);
99
+ __decorate([
100
+ (0, type_graphql_1.Field)({ nullable: true }),
101
+ __metadata("design:type", String)
102
+ ], NewMenu.prototype, "totalProp", void 0);
103
+ __decorate([
104
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
105
+ __metadata("design:type", Number)
106
+ ], NewMenu.prototype, "fixedColumns", void 0);
107
+ __decorate([
108
+ (0, type_graphql_1.Field)({ nullable: true }),
109
+ __metadata("design:type", String)
110
+ ], NewMenu.prototype, "iconPath", void 0);
111
+ __decorate([
112
+ (0, type_graphql_1.Field)({ nullable: true }),
113
+ __metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
114
+ ], NewMenu.prototype, "role", void 0);
115
+ __decorate([
116
+ (0, type_graphql_1.Field)({ nullable: true }),
117
+ __metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
118
+ ], NewMenu.prototype, "parent", void 0);
119
+ __decorate([
120
+ (0, type_graphql_1.Field)(type => [shell_1.ObjectRef], { nullable: true }),
121
+ __metadata("design:type", Array)
122
+ ], NewMenu.prototype, "children", void 0);
123
+ __decorate([
124
+ (0, type_graphql_1.Field)(type => [shell_1.ObjectRef], { nullable: true }),
125
+ __metadata("design:type", Array)
126
+ ], NewMenu.prototype, "buttons", void 0);
127
+ __decorate([
128
+ (0, type_graphql_1.Field)(type => [shell_1.ObjectRef], { nullable: true }),
129
+ __metadata("design:type", Array)
130
+ ], NewMenu.prototype, "columns", void 0);
131
+ NewMenu = __decorate([
132
+ (0, type_graphql_1.InputType)()
133
+ ], NewMenu);
134
+ exports.NewMenu = NewMenu;
135
+ let MenuPatch = class MenuPatch {
136
+ };
137
+ __decorate([
138
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
139
+ __metadata("design:type", String)
140
+ ], MenuPatch.prototype, "id", void 0);
141
+ __decorate([
142
+ (0, type_graphql_1.Field)({ nullable: true }),
143
+ __metadata("design:type", String)
144
+ ], MenuPatch.prototype, "category", void 0);
145
+ __decorate([
146
+ (0, type_graphql_1.Field)({ nullable: true }),
147
+ __metadata("design:type", String)
148
+ ], MenuPatch.prototype, "name", void 0);
149
+ __decorate([
150
+ (0, type_graphql_1.Field)({ nullable: true }),
151
+ __metadata("design:type", String)
152
+ ], MenuPatch.prototype, "description", void 0);
153
+ __decorate([
154
+ (0, type_graphql_1.Field)({ nullable: true }),
155
+ __metadata("design:type", String)
156
+ ], MenuPatch.prototype, "menuType", void 0);
157
+ __decorate([
158
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
159
+ __metadata("design:type", Number)
160
+ ], MenuPatch.prototype, "rank", void 0);
161
+ __decorate([
162
+ (0, type_graphql_1.Field)({ nullable: true }),
163
+ __metadata("design:type", String)
164
+ ], MenuPatch.prototype, "routing", void 0);
165
+ __decorate([
166
+ (0, type_graphql_1.Field)({ nullable: true }),
167
+ __metadata("design:type", String)
168
+ ], MenuPatch.prototype, "routingType", void 0);
169
+ __decorate([
170
+ (0, type_graphql_1.Field)({ nullable: true }),
171
+ __metadata("design:type", String)
172
+ ], MenuPatch.prototype, "resourceType", void 0);
173
+ __decorate([
174
+ (0, type_graphql_1.Field)({ nullable: true }),
175
+ __metadata("design:type", String)
176
+ ], MenuPatch.prototype, "resourceId", void 0);
177
+ __decorate([
178
+ (0, type_graphql_1.Field)({ nullable: true }),
179
+ __metadata("design:type", String)
180
+ ], MenuPatch.prototype, "resourceUrl", void 0);
181
+ __decorate([
182
+ (0, type_graphql_1.Field)({ nullable: true }),
183
+ __metadata("design:type", String)
184
+ ], MenuPatch.prototype, "resourceName", void 0);
185
+ __decorate([
186
+ (0, type_graphql_1.Field)({ nullable: true }),
187
+ __metadata("design:type", String)
188
+ ], MenuPatch.prototype, "idField", void 0);
189
+ __decorate([
190
+ (0, type_graphql_1.Field)({ nullable: true }),
191
+ __metadata("design:type", String)
192
+ ], MenuPatch.prototype, "titleField", void 0);
193
+ __decorate([
194
+ (0, type_graphql_1.Field)({ nullable: true }),
195
+ __metadata("design:type", String)
196
+ ], MenuPatch.prototype, "gridSaveUrl", void 0);
197
+ __decorate([
198
+ (0, type_graphql_1.Field)({ nullable: true }),
199
+ __metadata("design:type", Boolean)
200
+ ], MenuPatch.prototype, "pagination", void 0);
201
+ __decorate([
202
+ (0, type_graphql_1.Field)({ nullable: true }),
203
+ __metadata("design:type", String)
204
+ ], MenuPatch.prototype, "detailFormId", void 0);
205
+ __decorate([
206
+ (0, type_graphql_1.Field)({ nullable: true }),
207
+ __metadata("design:type", String)
208
+ ], MenuPatch.prototype, "detailLayout", void 0);
209
+ __decorate([
210
+ (0, type_graphql_1.Field)({ nullable: true }),
211
+ __metadata("design:type", String)
212
+ ], MenuPatch.prototype, "template", void 0);
213
+ __decorate([
214
+ (0, type_graphql_1.Field)({ nullable: true }),
215
+ __metadata("design:type", Boolean)
216
+ ], MenuPatch.prototype, "hiddenFlag", void 0);
217
+ __decorate([
218
+ (0, type_graphql_1.Field)({ nullable: true }),
219
+ __metadata("design:type", String)
220
+ ], MenuPatch.prototype, "itemsProp", void 0);
221
+ __decorate([
222
+ (0, type_graphql_1.Field)({ nullable: true }),
223
+ __metadata("design:type", String)
224
+ ], MenuPatch.prototype, "totalProp", void 0);
225
+ __decorate([
226
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
227
+ __metadata("design:type", Number)
228
+ ], MenuPatch.prototype, "fixedColumns", void 0);
229
+ __decorate([
230
+ (0, type_graphql_1.Field)({ nullable: true }),
231
+ __metadata("design:type", String)
232
+ ], MenuPatch.prototype, "iconPath", void 0);
233
+ __decorate([
234
+ (0, type_graphql_1.Field)({ nullable: true }),
235
+ __metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
236
+ ], MenuPatch.prototype, "role", void 0);
237
+ __decorate([
238
+ (0, type_graphql_1.Field)({ nullable: true }),
239
+ __metadata("design:type", typeof (_d = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _d : Object)
240
+ ], MenuPatch.prototype, "parent", void 0);
241
+ __decorate([
242
+ (0, type_graphql_1.Field)(type => [shell_1.ObjectRef], { nullable: true }),
243
+ __metadata("design:type", Array)
244
+ ], MenuPatch.prototype, "children", void 0);
245
+ __decorate([
246
+ (0, type_graphql_1.Field)(type => [shell_1.ObjectRef], { nullable: true }),
247
+ __metadata("design:type", Array)
248
+ ], MenuPatch.prototype, "buttons", void 0);
249
+ __decorate([
250
+ (0, type_graphql_1.Field)(type => [shell_1.ObjectRef], { nullable: true }),
251
+ __metadata("design:type", Array)
252
+ ], MenuPatch.prototype, "columns", void 0);
253
+ __decorate([
254
+ (0, type_graphql_1.Field)({ nullable: true }),
255
+ __metadata("design:type", String)
256
+ ], MenuPatch.prototype, "cuFlag", void 0);
257
+ MenuPatch = __decorate([
258
+ (0, type_graphql_1.InputType)()
259
+ ], MenuPatch);
260
+ exports.MenuPatch = MenuPatch;
261
+ let MenuList = class MenuList {
262
+ };
263
+ __decorate([
264
+ (0, type_graphql_1.Field)(type => [menu_1.Menu]),
265
+ __metadata("design:type", Array)
266
+ ], MenuList.prototype, "items", void 0);
267
+ __decorate([
268
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
269
+ __metadata("design:type", Number)
270
+ ], MenuList.prototype, "total", void 0);
271
+ MenuList = __decorate([
272
+ (0, type_graphql_1.ObjectType)()
273
+ ], MenuList);
274
+ exports.MenuList = MenuList;
275
+ //# sourceMappingURL=menu-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-type.js","sourceRoot":"","sources":["../../../server/service/menu/menu-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoE;AAEpE,iDAAiD;AAEjD,iCAA6B;AAG7B,IAAa,OAAO,GAApB,MAAa,OAAO;CA8BnB,CAAA;AA7BU;IAAR,IAAA,oBAAK,GAAE;;qCAAa;AACZ;IAAR,IAAA,oBAAK,GAAE;;yCAAiB;AAEE;IAA1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAAqB;AACpB;IAA1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAAiB;AACH;IAAvC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAAc;AAC1B;IAA1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAAiB;AAChB;IAA1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAAqB;AACpB;IAA1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAAsB;AACrB;IAA1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,E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QAAQ,CAGpB;AAHY,4BAAQ"}
@@ -0,0 +1,229 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var Menu_1, _a, _b, _c, _d;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.Menu = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const typeorm_1 = require("typeorm");
16
+ const auth_base_1 = require("@things-factory/auth-base");
17
+ const shell_1 = require("@things-factory/shell");
18
+ const menu_button_1 = require("../menu-button/menu-button");
19
+ const menu_column_1 = require("../menu-column/menu-column");
20
+ let Menu = Menu_1 = class Menu {
21
+ constructor() {
22
+ this.hiddenFlag = false;
23
+ }
24
+ };
25
+ __decorate([
26
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
27
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
28
+ __metadata("design:type", String)
29
+ ], Menu.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
32
+ (0, type_graphql_1.Field)({ nullable: true }),
33
+ __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
34
+ ], Menu.prototype, "domain", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.RelationId)((menu) => menu.domain),
37
+ __metadata("design:type", String)
38
+ ], Menu.prototype, "domainId", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)(),
41
+ (0, type_graphql_1.Field)({ nullable: true }),
42
+ __metadata("design:type", String)
43
+ ], Menu.prototype, "name", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ nullable: true }),
46
+ (0, type_graphql_1.Field)({ nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], Menu.prototype, "description", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.ManyToOne)(type => Menu_1, parent => parent.children, { nullable: true }),
51
+ (0, type_graphql_1.Field)({ nullable: true }),
52
+ __metadata("design:type", Menu)
53
+ ], Menu.prototype, "parent", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.RelationId)((menu) => menu.parent),
56
+ __metadata("design:type", String)
57
+ ], Menu.prototype, "parentId", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ nullable: true }),
60
+ (0, type_graphql_1.Field)({ nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], Menu.prototype, "template", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ nullable: true }),
65
+ (0, type_graphql_1.Field)({ nullable: true }),
66
+ __metadata("design:type", String)
67
+ ], Menu.prototype, "menuType", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({ nullable: true }),
70
+ (0, type_graphql_1.Field)({ nullable: true }),
71
+ __metadata("design:type", String)
72
+ ], Menu.prototype, "category", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.Role, { nullable: true }),
75
+ (0, type_graphql_1.Field)(type => auth_base_1.Role, { nullable: true }),
76
+ __metadata("design:type", typeof (_b = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _b : Object)
77
+ ], Menu.prototype, "role", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.RelationId)((menu) => menu.role),
80
+ __metadata("design:type", String)
81
+ ], Menu.prototype, "roleId", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.ManyToMany)(type => auth_base_1.Role),
84
+ (0, typeorm_1.JoinTable)({ name: 'menus_roles' }),
85
+ (0, type_graphql_1.Field)(type => [auth_base_1.Role], { nullable: true }),
86
+ __metadata("design:type", Array)
87
+ ], Menu.prototype, "roles", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.Column)('int', { nullable: true }),
90
+ (0, type_graphql_1.Field)({ nullable: true }),
91
+ __metadata("design:type", Number)
92
+ ], Menu.prototype, "rank", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ nullable: true }),
95
+ (0, type_graphql_1.Field)({ nullable: true }),
96
+ __metadata("design:type", String)
97
+ ], Menu.prototype, "iconPath", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ nullable: true, default: false }),
100
+ (0, type_graphql_1.Field)({ nullable: true }),
101
+ __metadata("design:type", Boolean)
102
+ ], Menu.prototype, "hiddenFlag", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({ nullable: true }),
105
+ (0, type_graphql_1.Field)({ nullable: true }),
106
+ __metadata("design:type", String)
107
+ ], Menu.prototype, "routing", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.Column)({ nullable: true }),
110
+ (0, type_graphql_1.Field)({ nullable: true }),
111
+ __metadata("design:type", String)
112
+ ], Menu.prototype, "routingType", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.Column)({ nullable: true }),
115
+ (0, type_graphql_1.Field)({ nullable: true }),
116
+ __metadata("design:type", String)
117
+ ], Menu.prototype, "detailFormId", void 0);
118
+ __decorate([
119
+ (0, typeorm_1.Column)({ nullable: true }),
120
+ (0, type_graphql_1.Field)({ nullable: true }),
121
+ __metadata("design:type", String)
122
+ ], Menu.prototype, "detailLayout", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({ nullable: true }),
125
+ (0, type_graphql_1.Field)({ nullable: true }),
126
+ __metadata("design:type", String)
127
+ ], Menu.prototype, "resourceType", void 0);
128
+ __decorate([
129
+ (0, typeorm_1.Column)({ nullable: true }),
130
+ (0, type_graphql_1.Field)({ nullable: true }),
131
+ __metadata("design:type", String)
132
+ ], Menu.prototype, "resourceId", void 0);
133
+ __decorate([
134
+ (0, typeorm_1.Column)({ nullable: true }),
135
+ (0, type_graphql_1.Field)({ nullable: true }),
136
+ __metadata("design:type", String)
137
+ ], Menu.prototype, "resourceName", void 0);
138
+ __decorate([
139
+ (0, typeorm_1.Column)({ nullable: true }),
140
+ (0, type_graphql_1.Field)({ nullable: true }),
141
+ __metadata("design:type", String)
142
+ ], Menu.prototype, "resourceUrl", void 0);
143
+ __decorate([
144
+ (0, typeorm_1.Column)({ nullable: true }),
145
+ (0, type_graphql_1.Field)({ nullable: true }),
146
+ __metadata("design:type", String)
147
+ ], Menu.prototype, "gridSaveUrl", void 0);
148
+ __decorate([
149
+ (0, typeorm_1.Column)({ nullable: true }),
150
+ (0, type_graphql_1.Field)({ nullable: true }),
151
+ __metadata("design:type", String)
152
+ ], Menu.prototype, "idField", void 0);
153
+ __decorate([
154
+ (0, typeorm_1.Column)({ nullable: true }),
155
+ (0, type_graphql_1.Field)({ nullable: true }),
156
+ __metadata("design:type", String)
157
+ ], Menu.prototype, "titleField", void 0);
158
+ __decorate([
159
+ (0, typeorm_1.Column)({ nullable: true }),
160
+ (0, type_graphql_1.Field)({ nullable: true }),
161
+ __metadata("design:type", Boolean)
162
+ ], Menu.prototype, "pagination", void 0);
163
+ __decorate([
164
+ (0, typeorm_1.Column)({ nullable: true }),
165
+ (0, type_graphql_1.Field)({ nullable: true }),
166
+ __metadata("design:type", String)
167
+ ], Menu.prototype, "itemsProp", void 0);
168
+ __decorate([
169
+ (0, typeorm_1.Column)({ nullable: true }),
170
+ (0, type_graphql_1.Field)({ nullable: true }),
171
+ __metadata("design:type", String)
172
+ ], Menu.prototype, "totalProp", void 0);
173
+ __decorate([
174
+ (0, typeorm_1.Column)('int', { nullable: true }),
175
+ (0, type_graphql_1.Field)({ nullable: true }),
176
+ __metadata("design:type", Number)
177
+ ], Menu.prototype, "fixedColumns", void 0);
178
+ __decorate([
179
+ (0, typeorm_1.OneToMany)(type => Menu_1, child => child.parent),
180
+ (0, type_graphql_1.Field)(type => [Menu_1]),
181
+ __metadata("design:type", Array)
182
+ ], Menu.prototype, "children", void 0);
183
+ __decorate([
184
+ (0, typeorm_1.OneToMany)(type => menu_button_1.MenuButton, menuButton => menuButton.menu),
185
+ (0, type_graphql_1.Field)(type => [menu_button_1.MenuButton]),
186
+ __metadata("design:type", Array)
187
+ ], Menu.prototype, "buttons", void 0);
188
+ __decorate([
189
+ (0, typeorm_1.OneToMany)(type => menu_column_1.MenuColumn, menuColumn => menuColumn.menu),
190
+ (0, type_graphql_1.Field)(type => [menu_column_1.MenuColumn]),
191
+ __metadata("design:type", Array)
192
+ ], Menu.prototype, "columns", void 0);
193
+ __decorate([
194
+ (0, typeorm_1.CreateDateColumn)(),
195
+ (0, type_graphql_1.Field)({ nullable: true }),
196
+ __metadata("design:type", Date)
197
+ ], Menu.prototype, "createdAt", void 0);
198
+ __decorate([
199
+ (0, typeorm_1.UpdateDateColumn)(),
200
+ (0, type_graphql_1.Field)({ nullable: true }),
201
+ __metadata("design:type", Date)
202
+ ], Menu.prototype, "updatedAt", void 0);
203
+ __decorate([
204
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
205
+ (0, type_graphql_1.Field)({ nullable: true }),
206
+ __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
207
+ ], Menu.prototype, "creator", void 0);
208
+ __decorate([
209
+ (0, typeorm_1.RelationId)((menu) => menu.creator),
210
+ __metadata("design:type", String)
211
+ ], Menu.prototype, "creatorId", void 0);
212
+ __decorate([
213
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
214
+ (0, type_graphql_1.Field)({ nullable: true }),
215
+ __metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
216
+ ], Menu.prototype, "updater", void 0);
217
+ __decorate([
218
+ (0, typeorm_1.RelationId)((menu) => menu.creator),
219
+ __metadata("design:type", String)
220
+ ], Menu.prototype, "updaterId", void 0);
221
+ Menu = Menu_1 = __decorate([
222
+ (0, typeorm_1.Entity)(),
223
+ (0, typeorm_1.Index)('ix_menu_0', (menu) => [menu.domain, menu.name, menu.parent, menu.role], { unique: true }),
224
+ (0, typeorm_1.Index)('ix_menu_1', (menu) => [menu.domain, menu.parent]),
225
+ (0, typeorm_1.Index)('ix_menu_2', (menu) => [menu.domain, menu.category, menu.menuType, menu.rank]),
226
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for Menu' })
227
+ ], Menu);
228
+ exports.Menu = Menu;
229
+ //# sourceMappingURL=menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../server/service/menu/menu.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCAYgB;AAEhB,yDAAsD;AACtD,iDAA8C;AAE9C,4DAAuD;AACvD,4DAAuD;AAOvD,IAAa,IAAI,YAAjB,MAAa,IAAI;IAAjB;QA6DE,eAAU,GAAa,KAAK,CAAA;IA+F9B,CAAC;CAAA,CAAA;AAzJC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjB,cAAM,oBAAN,cAAM;oCAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;sCACvB;AAIjB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACd;AAIZ;IA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ict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const menu_button_1 = require("./menu-button");
5
+ const menu_button_query_1 = require("./menu-button-query");
6
+ const menu_button_mutation_1 = require("./menu-button-mutation");
7
+ exports.entities = [menu_button_1.MenuButton];
8
+ exports.resolvers = [menu_button_query_1.MenuButtonQuery, menu_button_mutation_1.MenuButtonMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/menu-button/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,2DAAqD;AACrD,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,wBAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,mCAAe,EAAE,yCAAkB,CAAC,CAAA"}