tenjin-ui-kit 0.3.72-dev-1 → 0.3.73

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 (104) hide show
  1. package/common/hooks/apiHooks.js +91 -199
  2. package/common/hooks/newApiHook.js +127 -258
  3. package/common/utils/security/index.js +2 -2
  4. package/common/utils/security/securityConfig.js +1 -2
  5. package/components/Canvas.js +172 -101
  6. package/components/DragBox/index.js +21 -31
  7. package/components/InputWithChip/index.js +178 -83
  8. package/components/RightContext/index.js +17 -41
  9. package/components/WorkFlow.js +19 -29
  10. package/components/WorkFlowBuilder.js +32 -56
  11. package/components/alert/Style.js +11 -14
  12. package/components/alert/index.js +8 -14
  13. package/components/attachment/index.js +26 -31
  14. package/components/authenticationProvider/AuthError.js +3 -4
  15. package/components/authenticationProvider/AuthLoader.js +3 -4
  16. package/components/authenticationProvider/index.js +58 -130
  17. package/components/avatar/index.js +24 -23
  18. package/components/avatar/styles.js +76 -77
  19. package/components/breadCrumbs/index.js +64 -89
  20. package/components/breadCrumbs/style.js +1 -4
  21. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +7 -6
  22. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +5 -8
  23. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +7 -6
  24. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +8 -7
  25. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +8 -7
  26. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +16 -19
  27. package/components/browsingTestCaseLayout/index.js +30 -46
  28. package/components/button/index.js +47 -58
  29. package/components/chatBotModal/index.js +40 -61
  30. package/components/checkBox/index.js +8 -10
  31. package/components/combobox/index.js +66 -100
  32. package/components/divider/index.js +9 -18
  33. package/components/editableField/index.js +19 -46
  34. package/components/error/index.js +6 -12
  35. package/components/errorBoundary/index.js +74 -98
  36. package/components/fileUploader/index.js +46 -58
  37. package/components/fileUploader/style.js +46 -49
  38. package/components/filter/ValueSelector.js +149 -245
  39. package/components/filter/index.js +45 -71
  40. package/components/iconButton/index.js +3 -4
  41. package/components/input/index.js +60 -74
  42. package/components/layout/index.js +36 -49
  43. package/components/layout/main/index.js +13 -14
  44. package/components/layout/main/style.js +11 -14
  45. package/components/layout/pageContent/index.js +8 -7
  46. package/components/layout/sidebar/FlatMenu.js +51 -47
  47. package/components/layout/sidebar/GroupedIconMenu.js +169 -194
  48. package/components/layout/sidebar/GroupedMenu.js +45 -50
  49. package/components/layout/sidebar/ProjectMenu.js +165 -185
  50. package/components/layout/sidebar/index.js +27 -26
  51. package/components/layout/sidebar/style.js +138 -143
  52. package/components/layout/topBar/ProjectTopbar.js +91 -208
  53. package/components/layout/topBar/UserAvatar.js +53 -69
  54. package/components/layout/topBar/index.js +23 -41
  55. package/components/loader/index.js +9 -12
  56. package/components/menu/index.js +23 -42
  57. package/components/modal/Modal.js +5 -6
  58. package/components/modal/index.js +16 -20
  59. package/components/modal/style.js +53 -56
  60. package/components/optionMenu/index.js +32 -47
  61. package/components/pagination/index.js +23 -43
  62. package/components/pagination/style.js +25 -28
  63. package/components/paginationUpdated/index.js +22 -29
  64. package/components/paper/index.js +20 -22
  65. package/components/paper/style.js +24 -27
  66. package/components/reactSelect/index.js +64 -97
  67. package/components/reactSelect/style.js +131 -151
  68. package/components/richTextEditor/index.js +24 -48
  69. package/components/select/GroupedSelect.js +96 -99
  70. package/components/select/SimpleSelect.js +61 -103
  71. package/components/select/index.js +56 -69
  72. package/components/simpleSelect/index.js +18 -22
  73. package/components/sort/index.js +23 -36
  74. package/components/switch/index.js +14 -15
  75. package/components/switch/style.js +29 -32
  76. package/components/switch/switch.js +30 -47
  77. package/components/table/ReactTable.js +59 -83
  78. package/components/table/SimpleTable.js +67 -91
  79. package/components/table/index.js +300 -206
  80. package/components/text/index.js +22 -30
  81. package/components/timeStamp/index.js +4 -9
  82. package/components/timeStamp/style.js +12 -15
  83. package/components/topBar/index.js +86 -102
  84. package/components/tree/index.js +30 -58
  85. package/components/tree/style.js +20 -23
  86. package/components/valuePicker/ValueSelector.js +78 -160
  87. package/components/valuePicker/index.js +30 -50
  88. package/components/wrapperLayout/layout/index.js +8 -7
  89. package/components/wrapperLayout/main/index.js +8 -7
  90. package/components/wrapperLayout/main/pageContainer/index.js +6 -5
  91. package/components/wrapperLayout/main/sideBar/index.js +171 -175
  92. package/components/wrapperLayout/main/sideBar/style.js +177 -183
  93. package/components/wrapperLayout/topBar/UserAvatar.js +6 -5
  94. package/components/wrapperLayout/topBar/avatar.js +15 -18
  95. package/components/wrapperLayout/topBar/index.js +115 -107
  96. package/components/wrapperLayout/topBar/menuIcon.js +6 -5
  97. package/components/wrapperLayout/topBar/style.js +63 -64
  98. package/http/index.js +92 -188
  99. package/index.js +53 -55
  100. package/package.json +3 -3
  101. package/templates/listPage/index.js +168 -196
  102. package/themes/default.js +5 -7
  103. package/themes/defaultSmall.js +2 -3
  104. package/themes/responsiveTheme.js +6 -8
package/index.js CHANGED
@@ -1,312 +1,311 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  Object.defineProperty(exports, "Alert", {
8
7
  enumerable: true,
9
- get: function get() {
8
+ get: function () {
10
9
  return _alert.default;
11
10
  }
12
11
  });
13
12
  Object.defineProperty(exports, "AuthenticationProvider", {
14
13
  enumerable: true,
15
- get: function get() {
14
+ get: function () {
16
15
  return _authenticationProvider.default;
17
16
  }
18
17
  });
19
18
  Object.defineProperty(exports, "Avatar", {
20
19
  enumerable: true,
21
- get: function get() {
20
+ get: function () {
22
21
  return _avatar.default;
23
22
  }
24
23
  });
25
24
  Object.defineProperty(exports, "BreadCrumbs", {
26
25
  enumerable: true,
27
- get: function get() {
26
+ get: function () {
28
27
  return _breadCrumbs.default;
29
28
  }
30
29
  });
31
30
  Object.defineProperty(exports, "BrowsingTestCaseLayout", {
32
31
  enumerable: true,
33
- get: function get() {
32
+ get: function () {
34
33
  return _browsingTestCaseLayout.default;
35
34
  }
36
35
  });
37
36
  Object.defineProperty(exports, "Button", {
38
37
  enumerable: true,
39
- get: function get() {
38
+ get: function () {
40
39
  return _button.default;
41
40
  }
42
41
  });
43
42
  Object.defineProperty(exports, "ChatBotModal", {
44
43
  enumerable: true,
45
- get: function get() {
44
+ get: function () {
46
45
  return _chatBotModal.default;
47
46
  }
48
47
  });
49
48
  Object.defineProperty(exports, "CheckBox", {
50
49
  enumerable: true,
51
- get: function get() {
50
+ get: function () {
52
51
  return _checkBox.default;
53
52
  }
54
53
  });
55
54
  Object.defineProperty(exports, "Divider", {
56
55
  enumerable: true,
57
- get: function get() {
56
+ get: function () {
58
57
  return _divider.default;
59
58
  }
60
59
  });
61
60
  Object.defineProperty(exports, "EditableField", {
62
61
  enumerable: true,
63
- get: function get() {
62
+ get: function () {
64
63
  return _editableField.default;
65
64
  }
66
65
  });
67
66
  Object.defineProperty(exports, "Error", {
68
67
  enumerable: true,
69
- get: function get() {
68
+ get: function () {
70
69
  return _error.default;
71
70
  }
72
71
  });
73
72
  Object.defineProperty(exports, "ErrorBoundary", {
74
73
  enumerable: true,
75
- get: function get() {
74
+ get: function () {
76
75
  return _errorBoundary.default;
77
76
  }
78
77
  });
79
78
  Object.defineProperty(exports, "FileUploader", {
80
79
  enumerable: true,
81
- get: function get() {
80
+ get: function () {
82
81
  return _fileUploader.default;
83
82
  }
84
83
  });
85
84
  Object.defineProperty(exports, "Filter", {
86
85
  enumerable: true,
87
- get: function get() {
86
+ get: function () {
88
87
  return _filter.default;
89
88
  }
90
89
  });
91
90
  Object.defineProperty(exports, "GroupSimpleSelect", {
92
91
  enumerable: true,
93
- get: function get() {
92
+ get: function () {
94
93
  return _GroupedSelect.default;
95
94
  }
96
95
  });
97
96
  Object.defineProperty(exports, "GroupedSelect", {
98
97
  enumerable: true,
99
- get: function get() {
98
+ get: function () {
100
99
  return _GroupedSelect.default;
101
100
  }
102
101
  });
103
102
  Object.defineProperty(exports, "IconButton", {
104
103
  enumerable: true,
105
- get: function get() {
104
+ get: function () {
106
105
  return _iconButton.default;
107
106
  }
108
107
  });
109
108
  Object.defineProperty(exports, "Input", {
110
109
  enumerable: true,
111
- get: function get() {
110
+ get: function () {
112
111
  return _input.default;
113
112
  }
114
113
  });
115
114
  Object.defineProperty(exports, "InputWithChip", {
116
115
  enumerable: true,
117
- get: function get() {
116
+ get: function () {
118
117
  return _InputWithChip.default;
119
118
  }
120
119
  });
121
120
  Object.defineProperty(exports, "Layout", {
122
121
  enumerable: true,
123
- get: function get() {
122
+ get: function () {
124
123
  return _layout.default;
125
124
  }
126
125
  });
127
126
  Object.defineProperty(exports, "Modal", {
128
127
  enumerable: true,
129
- get: function get() {
128
+ get: function () {
130
129
  return _modal.default;
131
130
  }
132
131
  });
133
132
  Object.defineProperty(exports, "OptionMenu", {
134
133
  enumerable: true,
135
- get: function get() {
134
+ get: function () {
136
135
  return _optionMenu.default;
137
136
  }
138
137
  });
139
138
  Object.defineProperty(exports, "Pagination", {
140
139
  enumerable: true,
141
- get: function get() {
140
+ get: function () {
142
141
  return _paginationUpdated.default;
143
142
  }
144
143
  });
145
144
  Object.defineProperty(exports, "Paper", {
146
145
  enumerable: true,
147
- get: function get() {
146
+ get: function () {
148
147
  return _paper.default;
149
148
  }
150
149
  });
151
150
  Object.defineProperty(exports, "ReactSelect", {
152
151
  enumerable: true,
153
- get: function get() {
152
+ get: function () {
154
153
  return _reactSelect.default;
155
154
  }
156
155
  });
157
156
  Object.defineProperty(exports, "ReactTable", {
158
157
  enumerable: true,
159
- get: function get() {
158
+ get: function () {
160
159
  return _ReactTable.default;
161
160
  }
162
161
  });
163
162
  Object.defineProperty(exports, "RichTextEditor", {
164
163
  enumerable: true,
165
- get: function get() {
164
+ get: function () {
166
165
  return _richTextEditor.default;
167
166
  }
168
167
  });
169
168
  Object.defineProperty(exports, "Select", {
170
169
  enumerable: true,
171
- get: function get() {
170
+ get: function () {
172
171
  return _select.default;
173
172
  }
174
173
  });
175
174
  Object.defineProperty(exports, "SimpleSelect", {
176
175
  enumerable: true,
177
- get: function get() {
176
+ get: function () {
178
177
  return _SimpleSelect.default;
179
178
  }
180
179
  });
181
180
  Object.defineProperty(exports, "SimpleTable", {
182
181
  enumerable: true,
183
- get: function get() {
182
+ get: function () {
184
183
  return _SimpleTable.default;
185
184
  }
186
185
  });
187
186
  Object.defineProperty(exports, "Sort", {
188
187
  enumerable: true,
189
- get: function get() {
188
+ get: function () {
190
189
  return _sort.default;
191
190
  }
192
191
  });
193
192
  Object.defineProperty(exports, "Switch", {
194
193
  enumerable: true,
195
- get: function get() {
194
+ get: function () {
196
195
  return _switch.default;
197
196
  }
198
197
  });
199
198
  Object.defineProperty(exports, "SystemContext", {
200
199
  enumerable: true,
201
- get: function get() {
200
+ get: function () {
202
201
  return _authenticationProvider.SystemContext;
203
202
  }
204
203
  });
205
204
  Object.defineProperty(exports, "Table", {
206
205
  enumerable: true,
207
- get: function get() {
206
+ get: function () {
208
207
  return _table.default;
209
208
  }
210
209
  });
211
210
  Object.defineProperty(exports, "Text", {
212
211
  enumerable: true,
213
- get: function get() {
212
+ get: function () {
214
213
  return _text.default;
215
214
  }
216
215
  });
217
216
  Object.defineProperty(exports, "TimeStamp", {
218
217
  enumerable: true,
219
- get: function get() {
218
+ get: function () {
220
219
  return _timeStamp.default;
221
220
  }
222
221
  });
223
222
  Object.defineProperty(exports, "ValuePicker", {
224
223
  enumerable: true,
225
- get: function get() {
224
+ get: function () {
226
225
  return _valuePicker.default;
227
226
  }
228
227
  });
229
228
  Object.defineProperty(exports, "defaultTheme", {
230
229
  enumerable: true,
231
- get: function get() {
230
+ get: function () {
232
231
  return _default.default;
233
232
  }
234
233
  });
235
234
  Object.defineProperty(exports, "doDelete", {
236
235
  enumerable: true,
237
- get: function get() {
236
+ get: function () {
238
237
  return _http.doDelete;
239
238
  }
240
239
  });
241
240
  Object.defineProperty(exports, "get", {
242
241
  enumerable: true,
243
- get: function get() {
242
+ get: function () {
244
243
  return _http.get;
245
244
  }
246
245
  });
247
246
  Object.defineProperty(exports, "getClient", {
248
247
  enumerable: true,
249
- get: function get() {
248
+ get: function () {
250
249
  return _http.getClient;
251
250
  }
252
251
  });
253
252
  Object.defineProperty(exports, "getSecureClient", {
254
253
  enumerable: true,
255
- get: function get() {
254
+ get: function () {
256
255
  return _http.getSecureClient;
257
256
  }
258
257
  });
259
258
  Object.defineProperty(exports, "parseAxiosError", {
260
259
  enumerable: true,
261
- get: function get() {
260
+ get: function () {
262
261
  return _http.parseAxiosError;
263
262
  }
264
263
  });
265
264
  Object.defineProperty(exports, "post", {
266
265
  enumerable: true,
267
- get: function get() {
266
+ get: function () {
268
267
  return _http.post;
269
268
  }
270
269
  });
271
270
  Object.defineProperty(exports, "postClient", {
272
271
  enumerable: true,
273
- get: function get() {
272
+ get: function () {
274
273
  return _http.postClient;
275
274
  }
276
275
  });
277
276
  Object.defineProperty(exports, "put", {
278
277
  enumerable: true,
279
- get: function get() {
278
+ get: function () {
280
279
  return _http.put;
281
280
  }
282
281
  });
283
282
  Object.defineProperty(exports, "useAPI", {
284
283
  enumerable: true,
285
- get: function get() {
284
+ get: function () {
286
285
  return _newApiHook.default;
287
286
  }
288
287
  });
289
288
  Object.defineProperty(exports, "useDelete", {
290
289
  enumerable: true,
291
- get: function get() {
290
+ get: function () {
292
291
  return _apiHooks.useDelete;
293
292
  }
294
293
  });
295
294
  Object.defineProperty(exports, "useFetch", {
296
295
  enumerable: true,
297
- get: function get() {
296
+ get: function () {
298
297
  return _apiHooks.useFetch;
299
298
  }
300
299
  });
301
300
  Object.defineProperty(exports, "usePost", {
302
301
  enumerable: true,
303
- get: function get() {
302
+ get: function () {
304
303
  return _apiHooks.usePost;
305
304
  }
306
305
  });
307
306
  Object.defineProperty(exports, "usePut", {
308
307
  enumerable: true,
309
- get: function get() {
308
+ get: function () {
310
309
  return _apiHooks.usePut;
311
310
  }
312
311
  });
@@ -349,6 +348,5 @@ var _text = _interopRequireDefault(require("./components/text"));
349
348
  var _sort = _interopRequireDefault(require("./components/sort"));
350
349
  var _filter = _interopRequireDefault(require("./components/filter"));
351
350
  var _chatBotModal = _interopRequireDefault(require("./components/chatBotModal"));
352
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
353
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
354
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
351
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
352
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.3.72-dev-1",
3
+ "version": "0.3.73",
4
4
  "repository": {
5
5
  "url": "git+https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },
@@ -51,7 +51,7 @@
51
51
  "clean": "rimraf dist",
52
52
  "compile": "npm run clean && cross-env NODE_ENV=production babel src/package --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__",
53
53
  "copy-and-publish-dev": "copy package.json dist && copy README.md dist && cd dist && npm publish --tag dev",
54
- "copy-and-publish": "copy package.json dist && copy README.md dist && cd dist && npm publish --tag latest",
54
+ "copy-and-publish": "copy package.json dist && copy README.md dist && cd dist && npm publish",
55
55
  "publish-dev": "npm-run-all compile copy-and-publish-dev",
56
56
  "publish-prod": "npm-run-all compile copy-and-publish"
57
57
  },
@@ -89,7 +89,6 @@
89
89
  "@babel/preset-react": "^7.18.6",
90
90
  "@emotion/react": "^11.10.5",
91
91
  "@emotion/styled": "^11.10.5",
92
- "@mui/lab": "5.0.0-alpha.116",
93
92
  "@mui/material": "^5.11.3",
94
93
  "@storybook/addon-actions": "^6.5.15",
95
94
  "@storybook/addon-essentials": "^6.5.15",
@@ -101,6 +100,7 @@
101
100
  "@storybook/preset-create-react-app": "^4.1.2",
102
101
  "@storybook/react": "^6.5.15",
103
102
  "@storybook/testing-library": "^0.0.13",
103
+ "ajv": "^8.20.0",
104
104
  "babel-plugin-named-exports-order": "^0.0.2",
105
105
  "cross-env": "^7.0.3",
106
106
  "prop-types": "^15.8.1",