tenjin-ui-kit 0.3.70 → 0.3.72-dev
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/common/hooks/apiHooks.js +155 -0
- package/common/hooks/newApiHook.js +188 -0
- package/{dist/common → common}/utils/security/index.js +2 -2
- package/{dist/common → common}/utils/security/securityConfig.js +1 -2
- package/components/Canvas.js +330 -0
- package/components/DragBox/index.js +40 -0
- package/components/InputWithChip/index.js +294 -0
- package/{dist/components → components}/RightContext/index.js +19 -28
- package/components/WorkFlow.js +42 -0
- package/components/WorkFlowBuilder.js +115 -0
- package/components/alert/Style.js +20 -0
- package/components/alert/index.js +67 -0
- package/{dist/components → components}/attachment/index.js +21 -28
- package/{dist/components → components}/authenticationProvider/AuthError.js +3 -4
- package/{dist/components → components}/authenticationProvider/AuthLoader.js +3 -4
- package/components/authenticationProvider/index.js +110 -0
- package/{dist/components → components}/avatar/index.js +13 -14
- package/components/avatar/styles.js +91 -0
- package/components/breadCrumbs/index.js +169 -0
- package/{dist/components → components}/breadCrumbs/style.js +1 -4
- package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +5 -6
- package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +5 -8
- package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +4 -5
- package/{dist/components → components}/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +4 -5
- package/{dist/components → components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +5 -6
- package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +23 -0
- package/{dist/components → components}/browsingTestCaseLayout/index.js +25 -30
- package/components/button/index.js +133 -0
- package/{dist/components → components}/chatBotModal/index.js +36 -45
- package/components/checkBox/index.js +29 -0
- package/{dist/components → components}/combobox/index.js +51 -72
- package/components/divider/index.js +37 -0
- package/{dist/components → components}/editableField/index.js +19 -28
- package/{dist/components → components}/error/index.js +6 -12
- package/components/errorBoundary/index.js +140 -0
- package/components/fileUploader/index.js +151 -0
- package/components/fileUploader/style.js +57 -0
- package/components/filter/ValueSelector.js +333 -0
- package/{dist/components → components}/filter/index.js +26 -33
- package/{dist/components → components}/iconButton/index.js +3 -4
- package/components/input/index.js +167 -0
- package/components/layout/index.js +94 -0
- package/components/layout/main/index.js +24 -0
- package/components/layout/main/style.js +19 -0
- package/{dist/components → components}/layout/pageContent/index.js +6 -7
- package/components/layout/sidebar/FlatMenu.js +64 -0
- package/components/layout/sidebar/GroupedIconMenu.js +233 -0
- package/components/layout/sidebar/GroupedMenu.js +57 -0
- package/components/layout/sidebar/ProjectMenu.js +223 -0
- package/components/layout/sidebar/index.js +88 -0
- package/components/layout/sidebar/style.js +149 -0
- package/components/layout/topBar/ProjectTopbar.js +388 -0
- package/components/layout/topBar/UserAvatar.js +138 -0
- package/components/layout/topBar/index.js +121 -0
- package/{dist/components → components}/loader/index.js +9 -12
- package/components/menu/index.js +71 -0
- package/{dist/components → components}/modal/Modal.js +5 -6
- package/components/modal/index.js +88 -0
- package/components/modal/style.js +65 -0
- package/components/optionMenu/index.js +105 -0
- package/components/pagination/index.js +114 -0
- package/components/pagination/style.js +33 -0
- package/components/paginationUpdated/index.js +74 -0
- package/components/paper/index.js +43 -0
- package/components/paper/style.js +31 -0
- package/components/reactSelect/index.js +195 -0
- package/components/reactSelect/style.js +130 -0
- package/components/richTextEditor/index.js +64 -0
- package/components/select/GroupedSelect.js +167 -0
- package/components/select/SimpleSelect.js +184 -0
- package/{dist/components → components}/select/index.js +38 -54
- package/components/simpleSelect/index.js +53 -0
- package/{dist/components → components}/sort/index.js +19 -22
- package/{dist/components → components}/switch/index.js +10 -11
- package/components/switch/style.js +39 -0
- package/{dist/components → components}/switch/switch.js +17 -23
- package/components/table/ReactTable.js +101 -0
- package/components/table/SimpleTable.js +117 -0
- package/components/table/index.js +381 -0
- package/components/text/index.js +65 -0
- package/{dist/components → components}/timeStamp/index.js +4 -6
- package/components/timeStamp/style.js +20 -0
- package/components/topBar/index.js +169 -0
- package/{dist/components → components}/tree/index.js +29 -47
- package/components/tree/style.js +29 -0
- package/components/valuePicker/ValueSelector.js +205 -0
- package/{dist/components → components}/valuePicker/index.js +19 -26
- package/{dist/components → components}/wrapperLayout/layout/index.js +4 -5
- package/{dist/components → components}/wrapperLayout/main/index.js +4 -5
- package/{dist/components → components}/wrapperLayout/main/pageContainer/index.js +4 -5
- package/components/wrapperLayout/main/sideBar/index.js +272 -0
- package/components/wrapperLayout/main/sideBar/style.js +190 -0
- package/{dist/components → components}/wrapperLayout/topBar/UserAvatar.js +4 -5
- package/components/wrapperLayout/topBar/avatar.js +55 -0
- package/components/wrapperLayout/topBar/index.js +196 -0
- package/{dist/components → components}/wrapperLayout/topBar/menuIcon.js +4 -5
- package/components/wrapperLayout/topBar/style.js +74 -0
- package/http/index.js +133 -0
- package/{dist/index.js → index.js} +53 -55
- package/package.json +5 -3
- package/{dist/templates → templates}/listPage/index.js +36 -57
- package/{dist/themes → themes}/default.js +5 -7
- package/{dist/themes → themes}/defaultSmall.js +2 -3
- package/{dist/themes → themes}/responsiveTheme.js +6 -8
- package/.dockerignore +0 -6
- package/.storybook/main.js +0 -16
- package/.storybook/preview.js +0 -11
- package/Dockerfile +0 -17
- package/Jenkinsfile +0 -66
- package/build/asset-manifest.json +0 -16
- package/build/favicon.ico +0 -0
- package/build/index.html +0 -1
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- package/build/static/css/main.522396f6.css +0 -2
- package/build/static/css/main.522396f6.css.map +0 -1
- package/build/static/js/787.18cf14d0.chunk.js +0 -2
- package/build/static/js/787.18cf14d0.chunk.js.map +0 -1
- package/build/static/js/main.d71fecac.js +0 -3
- package/build/static/js/main.d71fecac.js.LICENSE.txt +0 -50
- package/build/static/js/main.d71fecac.js.map +0 -1
- package/build/static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg +0 -1
- package/build/tenjinLogo.png +0 -0
- package/dist/common/hooks/apiHooks.js +0 -223
- package/dist/common/hooks/newApiHook.js +0 -270
- package/dist/components/Canvas.js +0 -254
- package/dist/components/DragBox/index.js +0 -45
- package/dist/components/InputWithChip/index.js +0 -187
- package/dist/components/WorkFlow.js +0 -47
- package/dist/components/WorkFlowBuilder.js +0 -130
- package/dist/components/alert/Style.js +0 -23
- package/dist/components/alert/index.js +0 -69
- package/dist/components/authenticationProvider/index.js +0 -166
- package/dist/components/avatar/styles.js +0 -94
- package/dist/components/breadCrumbs/index.js +0 -180
- package/dist/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +0 -26
- package/dist/components/button/index.js +0 -140
- package/dist/components/checkBox/index.js +0 -30
- package/dist/components/divider/index.js +0 -41
- package/dist/components/errorBoundary/index.js +0 -160
- package/dist/components/fileUploader/index.js +0 -156
- package/dist/components/fileUploader/style.js +0 -60
- package/dist/components/filter/ValueSelector.js +0 -405
- package/dist/components/input/index.js +0 -174
- package/dist/components/layout/index.js +0 -98
- package/dist/components/layout/main/index.js +0 -27
- package/dist/components/layout/main/style.js +0 -22
- package/dist/components/layout/sidebar/FlatMenu.js +0 -64
- package/dist/components/layout/sidebar/GroupedIconMenu.js +0 -246
- package/dist/components/layout/sidebar/GroupedMenu.js +0 -67
- package/dist/components/layout/sidebar/ProjectMenu.js +0 -230
- package/dist/components/layout/sidebar/index.js +0 -91
- package/dist/components/layout/sidebar/style.js +0 -154
- package/dist/components/layout/topBar/ProjectTopbar.js +0 -338
- package/dist/components/layout/topBar/UserAvatar.js +0 -145
- package/dist/components/layout/topBar/index.js +0 -132
- package/dist/components/menu/index.js +0 -80
- package/dist/components/modal/index.js +0 -91
- package/dist/components/modal/style.js +0 -68
- package/dist/components/optionMenu/index.js +0 -112
- package/dist/components/pagination/index.js +0 -129
- package/dist/components/pagination/style.js +0 -36
- package/dist/components/paginationUpdated/index.js +0 -75
- package/dist/components/paper/index.js +0 -44
- package/dist/components/paper/style.js +0 -34
- package/dist/components/reactSelect/index.js +0 -212
- package/dist/components/reactSelect/style.js +0 -163
- package/dist/components/richTextEditor/index.js +0 -83
- package/dist/components/select/GroupedSelect.js +0 -183
- package/dist/components/select/SimpleSelect.js +0 -212
- package/dist/components/simpleSelect/index.js +0 -56
- package/dist/components/switch/style.js +0 -42
- package/dist/components/table/ReactTable.js +0 -118
- package/dist/components/table/SimpleTable.js +0 -136
- package/dist/components/table/index.js +0 -256
- package/dist/components/text/index.js +0 -67
- package/dist/components/timeStamp/style.js +0 -23
- package/dist/components/topBar/index.js +0 -176
- package/dist/components/tree/style.js +0 -32
- package/dist/components/valuePicker/ValueSelector.js +0 -273
- package/dist/components/wrapperLayout/main/sideBar/index.js +0 -262
- package/dist/components/wrapperLayout/main/sideBar/style.js +0 -196
- package/dist/components/wrapperLayout/topBar/avatar.js +0 -57
- package/dist/components/wrapperLayout/topBar/index.js +0 -182
- package/dist/components/wrapperLayout/topBar/style.js +0 -77
- package/dist/http/index.js +0 -226
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/public/tenjinLogo.png +0 -0
- /package/{dist/assets → assets}/images/MicrosoftTeams-image (1).png +0 -0
- /package/{dist/assets → assets}/images/tenjin-4.0-logo.png +0 -0
- /package/{dist/components → components}/RightContext/index.css +0 -0
- /package/{dist/components → components}/browsingTestCaseLayout/style.css +0 -0
- /package/{dist/components → components}/errorBoundary/Error.jpg +0 -0
- /package/{dist/components → components}/iconButton/style.js +0 -0
- /package/{dist/components → components}/richTextEditor/style.js +0 -0
- /package/{dist/components → components}/wrapperLayout/layout/style.js +0 -0
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
353
|
-
function
|
|
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.
|
|
3
|
+
"version": "0.3.72-dev",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://gitlab.com/yethi/react/tenjin-ui-kit.git"
|
|
6
6
|
},
|
|
@@ -89,6 +89,7 @@
|
|
|
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",
|
|
92
93
|
"@mui/material": "^5.11.3",
|
|
93
94
|
"@storybook/addon-actions": "^6.5.15",
|
|
94
95
|
"@storybook/addon-essentials": "^6.5.15",
|
|
@@ -100,15 +101,16 @@
|
|
|
100
101
|
"@storybook/preset-create-react-app": "^4.1.2",
|
|
101
102
|
"@storybook/react": "^6.5.15",
|
|
102
103
|
"@storybook/testing-library": "^0.0.13",
|
|
104
|
+
"ajv": "^8.20.0",
|
|
103
105
|
"babel-plugin-named-exports-order": "^0.0.2",
|
|
104
106
|
"cross-env": "^7.0.3",
|
|
107
|
+
"postcss": "^8.5.15",
|
|
105
108
|
"prop-types": "^15.8.1",
|
|
106
109
|
"react": "^18.2.0",
|
|
107
110
|
"react-dom": "^18.2.0",
|
|
108
111
|
"react-router-dom": "^6.6.1",
|
|
109
112
|
"rimraf": "^3.0.2",
|
|
110
|
-
"webpack": "^5.75.0"
|
|
111
|
-
"@mui/lab": "5.0.0-alpha.116"
|
|
113
|
+
"webpack": "^5.75.0"
|
|
112
114
|
},
|
|
113
115
|
"peerDependencies": {
|
|
114
116
|
"@emotion/react": "^11.10.5",
|
|
@@ -1,6 +1,5 @@
|
|
|
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
|
});
|
|
@@ -10,25 +9,20 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
9
|
var _fi = require("react-icons/fi");
|
|
11
10
|
var _button = _interopRequireDefault(require("../../components/button"));
|
|
12
11
|
var _input = _interopRequireDefault(require("../../components/input"));
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
function
|
|
20
|
-
function
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
24
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
25
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
26
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
-
function _unsupportedIterableToArray(
|
|
28
|
-
function _arrayLikeToArray(
|
|
29
|
-
function _iterableToArrayLimit(
|
|
30
|
-
function _arrayWithHoles(
|
|
31
|
-
|
|
21
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
22
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
25
|
+
const columns = [{
|
|
32
26
|
name: "id",
|
|
33
27
|
displayName: "User ID"
|
|
34
28
|
}, {
|
|
@@ -40,15 +34,11 @@ var columns = [{
|
|
|
40
34
|
}, {
|
|
41
35
|
name: "address.city",
|
|
42
36
|
displayName: "City",
|
|
43
|
-
render:
|
|
44
|
-
return d.address.city;
|
|
45
|
-
}
|
|
37
|
+
render: d => d.address.city
|
|
46
38
|
}, {
|
|
47
39
|
name: "address.zipcode",
|
|
48
40
|
displayName: "Zip Code",
|
|
49
|
-
render:
|
|
50
|
-
return d.address.zipcode;
|
|
51
|
-
}
|
|
41
|
+
render: d => d.address.zipcode
|
|
52
42
|
}, {
|
|
53
43
|
name: "phone",
|
|
54
44
|
displayName: "Phone"
|
|
@@ -58,13 +48,11 @@ var columns = [{
|
|
|
58
48
|
}, {
|
|
59
49
|
name: "company.name",
|
|
60
50
|
displayName: "Company",
|
|
61
|
-
render:
|
|
62
|
-
return d.company.name;
|
|
63
|
-
}
|
|
51
|
+
render: d => d.company.name
|
|
64
52
|
}];
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
const ListPage = _ref => {
|
|
54
|
+
let pageTitle = _ref.pageTitle;
|
|
55
|
+
const _useState = (0, _react.useState)({
|
|
68
56
|
filtered: [],
|
|
69
57
|
filter: null,
|
|
70
58
|
unfiltered: [{
|
|
@@ -204,16 +192,16 @@ var ListPage = function ListPage(_ref) {
|
|
|
204
192
|
_useState2 = _slicedToArray(_useState, 2),
|
|
205
193
|
data = _useState2[0],
|
|
206
194
|
setData = _useState2[1];
|
|
207
|
-
(0, _react.useEffect)(
|
|
195
|
+
(0, _react.useEffect)(() => {
|
|
208
196
|
search();
|
|
209
197
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
210
198
|
}, [data.unfiltered, data.filter]);
|
|
211
|
-
|
|
199
|
+
const search = () => {
|
|
212
200
|
if (data.filter) {
|
|
213
|
-
|
|
201
|
+
const filter = data.filter,
|
|
214
202
|
unfiltered = data.unfiltered;
|
|
215
|
-
|
|
216
|
-
|
|
203
|
+
let newFiltered = unfiltered.filter(u => {
|
|
204
|
+
let mergedData = "".concat(u.id).concat(u.username.toLowerCase()).concat(u.email.toLowerCase());
|
|
217
205
|
return mergedData.includes(filter.toLowerCase());
|
|
218
206
|
});
|
|
219
207
|
setData(_objectSpread(_objectSpread({}, data), {}, {
|
|
@@ -221,7 +209,7 @@ var ListPage = function ListPage(_ref) {
|
|
|
221
209
|
}));
|
|
222
210
|
} else {
|
|
223
211
|
setData(_objectSpread(_objectSpread({}, data), {}, {
|
|
224
|
-
filtered:
|
|
212
|
+
filtered: [...data.unfiltered]
|
|
225
213
|
}));
|
|
226
214
|
}
|
|
227
215
|
};
|
|
@@ -268,11 +256,9 @@ var ListPage = function ListPage(_ref) {
|
|
|
268
256
|
}, /*#__PURE__*/_react.default.createElement(_input.default, {
|
|
269
257
|
fullWidth: true,
|
|
270
258
|
placeholder: "Search by ID, name or Email",
|
|
271
|
-
onChange:
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}));
|
|
275
|
-
},
|
|
259
|
+
onChange: e => setData(_objectSpread(_objectSpread({}, data), {}, {
|
|
260
|
+
filter: e.target.value
|
|
261
|
+
})),
|
|
276
262
|
value: data.filter,
|
|
277
263
|
disableAutocomplete: true,
|
|
278
264
|
startIcon: /*#__PURE__*/_react.default.createElement(_fi.FiSearch, null)
|
|
@@ -283,19 +269,12 @@ var ListPage = function ListPage(_ref) {
|
|
|
283
269
|
xs: 12
|
|
284
270
|
}, /*#__PURE__*/_react.default.createElement(_material.TableContainer, null, /*#__PURE__*/_react.default.createElement(_material.Table, {
|
|
285
271
|
"aria-label": pageTitle
|
|
286
|
-
}, /*#__PURE__*/_react.default.createElement(_material.TableHead, null, /*#__PURE__*/_react.default.createElement(_material.TableRow, null, columns.map(
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}, columns.map(function (c) {
|
|
294
|
-
return /*#__PURE__*/_react.default.createElement(_material.TableCell, {
|
|
295
|
-
key: u[c.name]
|
|
296
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Typography, null, c.render ? c.render(u) : u[c.name]));
|
|
297
|
-
}));
|
|
298
|
-
}))))));
|
|
272
|
+
}, /*#__PURE__*/_react.default.createElement(_material.TableHead, null, /*#__PURE__*/_react.default.createElement(_material.TableRow, null, columns.map(c => /*#__PURE__*/_react.default.createElement(_material.TableCell, {
|
|
273
|
+
key: c.name
|
|
274
|
+
}, c.displayName)))), /*#__PURE__*/_react.default.createElement(_material.TableBody, null, data.filtered.map(u => /*#__PURE__*/_react.default.createElement(_material.TableRow, {
|
|
275
|
+
key: u.id
|
|
276
|
+
}, columns.map(c => /*#__PURE__*/_react.default.createElement(_material.TableCell, {
|
|
277
|
+
key: u[c.name]
|
|
278
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Typography, null, c.render ? c.render(u) : u[c.name]))))))))));
|
|
299
279
|
};
|
|
300
|
-
var _default = ListPage;
|
|
301
|
-
exports.default = _default;
|
|
280
|
+
var _default = exports.default = ListPage;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
const getFontSize = () => {
|
|
9
|
+
const devicePixelRatio = window.devicePixelRatio;
|
|
10
10
|
if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
|
|
11
11
|
return 16;
|
|
12
12
|
} else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
|
|
@@ -17,7 +17,7 @@ var getFontSize = function getFontSize() {
|
|
|
17
17
|
return 40;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
const getSpacing = () => {
|
|
21
21
|
if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
|
|
22
22
|
return 8;
|
|
23
23
|
} else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
|
|
@@ -28,7 +28,7 @@ var getSpacing = function getSpacing() {
|
|
|
28
28
|
return 8;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
var _default = (0, _material.createTheme)({
|
|
31
|
+
var _default = exports.default = (0, _material.createTheme)({
|
|
32
32
|
spacing: getSpacing(),
|
|
33
33
|
components: {
|
|
34
34
|
MuiButton: {
|
|
@@ -70,7 +70,6 @@ var _default = (0, _material.createTheme)({
|
|
|
70
70
|
// },
|
|
71
71
|
// },
|
|
72
72
|
},
|
|
73
|
-
|
|
74
73
|
MuiAutocomplete: {
|
|
75
74
|
styleOverrides: {
|
|
76
75
|
root: {
|
|
@@ -249,5 +248,4 @@ var _default = (0, _material.createTheme)({
|
|
|
249
248
|
fontFamily: ["-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(",")
|
|
250
249
|
// fontSize: getFontSize(),
|
|
251
250
|
}
|
|
252
|
-
});
|
|
253
|
-
exports.default = _default;
|
|
251
|
+
});
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
|
-
var _default = (0, _material.createTheme)({
|
|
8
|
+
var _default = exports.default = (0, _material.createTheme)({
|
|
9
9
|
// spacing: 4,
|
|
10
10
|
|
|
11
11
|
overrides: {
|
|
@@ -82,5 +82,4 @@ var _default = (0, _material.createTheme)({
|
|
|
82
82
|
fontFamily: ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(','),
|
|
83
83
|
fontSize: 10
|
|
84
84
|
}
|
|
85
|
-
});
|
|
86
|
-
exports.default = _default;
|
|
85
|
+
});
|