@desynova-digital/components 8.19.63 → 9.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.
- package/atoms/avatar/avatar.js +1 -1
- package/atoms/avatar/avatar.story.js +46 -14
- package/atoms/badge/badge.js +13 -13
- package/atoms/badge/badge.story.js +91 -29
- package/atoms/button/button.js +81 -85
- package/atoms/button/button.story.js +342 -2
- package/atoms/card/card.js +43 -39
- package/atoms/card/card.story.js +74 -48
- package/atoms/cardStack/cardStack.js +182 -155
- package/atoms/cardStack/cardStack.story.js +131 -18
- package/atoms/cardV2/cardV2.js +23 -23
- package/atoms/cardV2/cardV2.story.js +196 -45
- package/atoms/cardV2/content.js +109 -87
- package/atoms/cardV2/thumbnail.js +85 -72
- package/atoms/cardV2/timeline.js +119 -107
- package/atoms/checkbox/checkbox.js +41 -32
- package/atoms/checkbox/checkbox.story.js +220 -99
- package/atoms/customSelect/customSelect.story.js +820 -582
- package/atoms/datePicker/datePicker.js +77 -83
- package/atoms/datePicker/datePicker.story.js +167 -1
- package/atoms/dateTime/dateTime.story.js +26 -1
- package/atoms/draftInputText/draftInputText.js +358 -0
- package/atoms/draftInputText/draftInputText.story.js +251 -0
- package/atoms/draftInputText/index.js +13 -0
- package/atoms/dropdown/dropdown.story.js +146 -18
- package/atoms/dropdownList/dropdownList.story.js +1598 -1091
- package/atoms/graphs/barGraph/barGraph.js +143 -130
- package/atoms/graphs/barGraph/barGraph.story.js +74 -40
- package/atoms/graphs/circleDonut/circleDonut.story.js +374 -220
- package/atoms/graphs/circleGraph/circleGraph.js +84 -80
- package/atoms/graphs/circleGraph/circleGraph.story.js +38 -26
- package/atoms/graphs/circleNested/circleNested.story.js +98 -103
- package/atoms/graphs/pieChart/pieChart.story.js +160 -81
- package/atoms/graphs/verticalBarGraph/verticalBarGraph.story.js +30 -28
- package/atoms/icon/icon.story.js +220 -163
- package/atoms/inputText/inputText.js +52 -49
- package/atoms/label/label.js +29 -29
- package/atoms/label/label.story.js +42 -30
- package/atoms/loader/CircleLoader.js +13 -4
- package/atoms/loader/CircleLoader.jsx +10 -4
- package/atoms/loader/ThreeDotLoader.js +8 -4
- package/atoms/loader/ThreeDotLoader.jsx +4 -4
- package/atoms/loader/loader.js +29 -30
- package/atoms/loader/loader.story.js +38 -23
- package/atoms/loader/spinningLoader.js +7 -4
- package/atoms/loader/spinningLoader.jsx +5 -5
- package/atoms/popup/popup.js +11 -11
- package/atoms/popup/popup.story.js +36 -4
- package/atoms/radio/radio.story.js +140 -2
- package/atoms/sideBar/sidebar.js +19 -5
- package/atoms/sideBar/sidebar.jsx +13 -8
- package/atoms/switch/switch.js +72 -66
- package/atoms/switch/switch.story.js +323 -78
- package/atoms/tag/tag.js +39 -39
- package/atoms/tag/tag.story.js +83 -2
- package/atoms/textarea/textarea.js +36 -34
- package/atoms/timeCodeInput/timCodeInput.story.js +10 -9
- package/atoms/timeCodeInput/timeCodeInput.js +108 -100
- package/atoms/timer/timer.js +127 -126
- package/atoms/toast/toast.js +24 -14
- package/atoms/toast/toast.story.js +22 -0
- package/atoms/videoCard/videoCard.js +226 -203
- package/atoms/videoCard/videoCard.story.js +547 -186
- package/components.js +69 -66
- package/index.js +5 -4
- package/molecules/carousel/carousel.js +55 -67
- package/molecules/filter/filter.js +133 -106
- package/molecules/filter/filter.story.js +215 -173
- package/molecules/graphCard/graphCard.js +34 -24
- package/molecules/graphCard/graphCard.story.js +169 -82
- package/molecules/graphDetailCard/graphDetailCard.js +207 -182
- package/molecules/pageHeader/pageHeader.js +3 -2
- package/molecules/pageHeader/pageHeader.story.js +40 -18
- package/molecules/pagination/pagination.js +66 -14
- package/molecules/pagination/pagination.story.js +24 -2
- package/molecules/table/table.js +368 -316
- package/molecules/table/table.story.js +404 -208
- package/molecules/tabs/tabs.js +15 -6
- package/molecules/tabs/tabs.story.js +26 -0
- package/package.json +2 -2
|
@@ -1,207 +1,217 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
|
-
var _react = require(
|
|
3
|
+
var _react = require('react');
|
|
4
4
|
|
|
5
5
|
var _react2 = _interopRequireDefault(_react);
|
|
6
6
|
|
|
7
|
-
var _react3 = require(
|
|
7
|
+
var _react3 = require('@storybook/react');
|
|
8
8
|
|
|
9
|
-
var _storyHelpers = require(
|
|
9
|
+
var _storyHelpers = require('../../_helpers/story-helpers');
|
|
10
10
|
|
|
11
|
-
var _components = require(
|
|
11
|
+
var _components = require('../../components');
|
|
12
12
|
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
|
|
15
15
|
var dataOld = {
|
|
16
16
|
page_no: 1,
|
|
17
17
|
total_entries: 4,
|
|
18
|
-
table_type:
|
|
18
|
+
table_type: 'multi-select',
|
|
19
19
|
entries_per_page: 4,
|
|
20
20
|
columns: [{
|
|
21
|
-
title:
|
|
22
|
-
field:
|
|
23
|
-
type:
|
|
21
|
+
title: 'Asset Name',
|
|
22
|
+
field: 'filename',
|
|
23
|
+
type: 'string'
|
|
24
24
|
}, {
|
|
25
|
-
title:
|
|
26
|
-
field:
|
|
27
|
-
type:
|
|
25
|
+
title: 'Format',
|
|
26
|
+
field: 'extension',
|
|
27
|
+
type: 'string'
|
|
28
28
|
}, {
|
|
29
|
-
title:
|
|
30
|
-
field:
|
|
31
|
-
type:
|
|
29
|
+
title: 'Story Name',
|
|
30
|
+
field: 'story_name',
|
|
31
|
+
type: 'string'
|
|
32
32
|
}, {
|
|
33
|
-
title:
|
|
34
|
-
field:
|
|
35
|
-
type:
|
|
33
|
+
title: 'Location',
|
|
34
|
+
field: 'story_location',
|
|
35
|
+
type: 'string'
|
|
36
36
|
}, {
|
|
37
|
-
title:
|
|
38
|
-
field:
|
|
39
|
-
type:
|
|
37
|
+
title: 'Ingest Date',
|
|
38
|
+
field: 'creation',
|
|
39
|
+
type: 'date'
|
|
40
40
|
}, {
|
|
41
|
-
title:
|
|
42
|
-
field:
|
|
43
|
-
type:
|
|
41
|
+
title: 'Ingest Time',
|
|
42
|
+
field: 'creation',
|
|
43
|
+
type: 'time'
|
|
44
44
|
}, {
|
|
45
|
-
title:
|
|
46
|
-
field:
|
|
47
|
-
type:
|
|
45
|
+
title: 'Reporter',
|
|
46
|
+
field: 'reporter_profile',
|
|
47
|
+
type: 'avatar'
|
|
48
|
+
// {
|
|
49
|
+
// "title": "Ingest Status",
|
|
50
|
+
// "field": "trans_status",
|
|
51
|
+
// "type": "string"
|
|
52
|
+
// },
|
|
53
|
+
// {
|
|
54
|
+
// "title": "Actions",
|
|
55
|
+
// "field": "actions",
|
|
56
|
+
// "type": "actionIcon"
|
|
57
|
+
// }
|
|
48
58
|
}],
|
|
49
59
|
rows: [{
|
|
50
|
-
filename:
|
|
51
|
-
extension:
|
|
52
|
-
story_name:
|
|
53
|
-
story_location:
|
|
60
|
+
filename: 'Rupee_US_dollar_conversion_rate',
|
|
61
|
+
extension: 'MP4',
|
|
62
|
+
story_name: 'Rupee touches 71.56 against US',
|
|
63
|
+
story_location: 'Mumbai',
|
|
54
64
|
creation: 1539756125000,
|
|
55
65
|
reporter_profile: {
|
|
56
|
-
name:
|
|
57
|
-
email:
|
|
58
|
-
user_image:
|
|
66
|
+
name: 'Abc Pan',
|
|
67
|
+
email: 'abc@gmail.com',
|
|
68
|
+
user_image: ''
|
|
59
69
|
},
|
|
60
|
-
trans_status:
|
|
70
|
+
trans_status: 'FINISHED',
|
|
61
71
|
arch_status: {
|
|
62
|
-
status:
|
|
72
|
+
status: 'inprogess',
|
|
63
73
|
total: 33,
|
|
64
74
|
completed: 12
|
|
65
75
|
},
|
|
66
|
-
actions: [
|
|
76
|
+
actions: ['play', 'archieve', 'restore', 'delete']
|
|
67
77
|
}, {
|
|
68
|
-
filename:
|
|
69
|
-
extension:
|
|
70
|
-
story_name:
|
|
71
|
-
story_location:
|
|
78
|
+
filename: 'Rupee_US_dollar_conversion_rate',
|
|
79
|
+
extension: 'AVI',
|
|
80
|
+
story_name: 'Rupee touches 71.56 against US',
|
|
81
|
+
story_location: 'Mumbai',
|
|
72
82
|
creation: 1539756125000,
|
|
73
83
|
reporter_profile: {
|
|
74
|
-
name:
|
|
75
|
-
email:
|
|
76
|
-
user_image:
|
|
84
|
+
name: 'Abc Pan',
|
|
85
|
+
email: 'abc@gmail.com',
|
|
86
|
+
user_image: ''
|
|
77
87
|
},
|
|
78
|
-
trans_status:
|
|
88
|
+
trans_status: 'INQUEUE',
|
|
79
89
|
arch_status: {
|
|
80
|
-
status:
|
|
90
|
+
status: 'inprogess',
|
|
81
91
|
total: 33,
|
|
82
92
|
completed: 12
|
|
83
93
|
},
|
|
84
|
-
actions: [
|
|
94
|
+
actions: ['play', 'archieve', 'restore', 'delete']
|
|
85
95
|
}, {
|
|
86
|
-
filename:
|
|
87
|
-
extension:
|
|
88
|
-
story_name:
|
|
89
|
-
story_location:
|
|
96
|
+
filename: 'Rupee_US_dollar_conversion_rate',
|
|
97
|
+
extension: 'MXF',
|
|
98
|
+
story_name: 'Rupee touches 71.56 against US',
|
|
99
|
+
story_location: 'Mumbai',
|
|
90
100
|
creation: 1539756125000,
|
|
91
101
|
reporter_profile: {
|
|
92
|
-
name:
|
|
93
|
-
email:
|
|
94
|
-
user_image:
|
|
102
|
+
name: 'Abc Pan',
|
|
103
|
+
email: 'abc@gmail.com',
|
|
104
|
+
user_image: ''
|
|
95
105
|
},
|
|
96
|
-
trans_status:
|
|
106
|
+
trans_status: 'STARTED',
|
|
97
107
|
arch_status: {
|
|
98
|
-
status:
|
|
108
|
+
status: 'inprogess',
|
|
99
109
|
total: 33,
|
|
100
110
|
completed: 12
|
|
101
111
|
},
|
|
102
|
-
actions: [
|
|
112
|
+
actions: ['play', 'archieve', 'restore', 'delete']
|
|
103
113
|
}, {
|
|
104
|
-
filename:
|
|
105
|
-
extension:
|
|
106
|
-
story_name:
|
|
107
|
-
story_location:
|
|
114
|
+
filename: 'Rupee_US_dollar_conversion_rate',
|
|
115
|
+
extension: 'WAV',
|
|
116
|
+
story_name: 'Rupee touches 71.56 against US',
|
|
117
|
+
story_location: 'Mumbai',
|
|
108
118
|
creation: 1539756125000,
|
|
109
119
|
reporter_profile: {
|
|
110
|
-
name:
|
|
111
|
-
email:
|
|
112
|
-
user_image:
|
|
120
|
+
name: 'Abc Pan',
|
|
121
|
+
email: 'abc@gmail.com',
|
|
122
|
+
user_image: ''
|
|
113
123
|
},
|
|
114
|
-
trans_status:
|
|
124
|
+
trans_status: 'PENDING',
|
|
115
125
|
arch_status: {
|
|
116
|
-
status:
|
|
126
|
+
status: 'inprogess',
|
|
117
127
|
total: 33,
|
|
118
128
|
completed: 12
|
|
119
129
|
},
|
|
120
|
-
actions: [
|
|
130
|
+
actions: ['play', 'archieve', 'restore', 'delete']
|
|
121
131
|
}]
|
|
122
132
|
};
|
|
123
133
|
|
|
124
134
|
var data = {
|
|
125
135
|
page_no: 1,
|
|
126
136
|
total_entries: 4,
|
|
127
|
-
table_type:
|
|
137
|
+
table_type: 'default',
|
|
128
138
|
entries_per_page: 15,
|
|
129
139
|
columns: {
|
|
130
|
-
action_elements: [
|
|
131
|
-
common_elements: [
|
|
140
|
+
action_elements: ['play', 'task_assignment', 'editprocess_initiate'],
|
|
141
|
+
common_elements: ['play', 'task_assignment', 'editprocess_initiate'],
|
|
132
142
|
column_elements: [{
|
|
133
|
-
title:
|
|
134
|
-
field:
|
|
135
|
-
access:
|
|
136
|
-
type:
|
|
143
|
+
title: 'Asset Name',
|
|
144
|
+
field: 'asset_name',
|
|
145
|
+
access: 'read',
|
|
146
|
+
type: 'link_text',
|
|
137
147
|
index: 1
|
|
138
148
|
}, {
|
|
139
|
-
title:
|
|
140
|
-
field:
|
|
141
|
-
access:
|
|
142
|
-
type:
|
|
149
|
+
title: 'Details',
|
|
150
|
+
field: 'details',
|
|
151
|
+
access: 'read',
|
|
152
|
+
type: 'string',
|
|
143
153
|
index: 2
|
|
144
154
|
}, {
|
|
145
|
-
title:
|
|
146
|
-
field:
|
|
147
|
-
access:
|
|
148
|
-
type:
|
|
155
|
+
title: 'S&P Status',
|
|
156
|
+
field: 'snp_status',
|
|
157
|
+
access: 'read',
|
|
158
|
+
type: 'label',
|
|
149
159
|
index: 3
|
|
150
160
|
}, {
|
|
151
|
-
title:
|
|
152
|
-
field:
|
|
153
|
-
access:
|
|
154
|
-
type:
|
|
161
|
+
title: 'Language',
|
|
162
|
+
field: 'language_tracks',
|
|
163
|
+
access: 'read',
|
|
164
|
+
type: 'dubbing_status',
|
|
155
165
|
index: 4
|
|
156
166
|
}, {
|
|
157
|
-
title:
|
|
158
|
-
field:
|
|
159
|
-
access:
|
|
160
|
-
type:
|
|
167
|
+
title: 'PGM Status',
|
|
168
|
+
field: 'pgm_status',
|
|
169
|
+
access: 'read',
|
|
170
|
+
type: 'label',
|
|
161
171
|
index: 5
|
|
162
172
|
}, {
|
|
163
|
-
title:
|
|
164
|
-
field:
|
|
165
|
-
access:
|
|
166
|
-
type:
|
|
173
|
+
title: 'Edit Status',
|
|
174
|
+
field: 'edit_process_status',
|
|
175
|
+
access: 'read',
|
|
176
|
+
type: 'label',
|
|
167
177
|
index: 6
|
|
168
178
|
}, {
|
|
169
|
-
title:
|
|
170
|
-
field:
|
|
171
|
-
access:
|
|
172
|
-
type:
|
|
179
|
+
title: 'Actions',
|
|
180
|
+
field: 'actions',
|
|
181
|
+
access: 'write',
|
|
182
|
+
type: 'action_icon',
|
|
173
183
|
index: 7
|
|
174
184
|
}, {
|
|
175
|
-
title:
|
|
176
|
-
field:
|
|
177
|
-
access:
|
|
178
|
-
type:
|
|
179
|
-
admin_column: [
|
|
185
|
+
title: 'Batch',
|
|
186
|
+
field: 'batch_name',
|
|
187
|
+
access: 'read',
|
|
188
|
+
type: 'string',
|
|
189
|
+
admin_column: ['snp_edit_admin'],
|
|
180
190
|
index: 8
|
|
181
191
|
}, {
|
|
182
|
-
title:
|
|
183
|
-
field:
|
|
184
|
-
access:
|
|
185
|
-
type:
|
|
186
|
-
admin_column: [
|
|
192
|
+
title: 'Delivery Location',
|
|
193
|
+
field: 'batch_regions',
|
|
194
|
+
access: 'read',
|
|
195
|
+
type: 'string',
|
|
196
|
+
admin_column: ['snp_edit_admin'],
|
|
187
197
|
index: 9
|
|
188
198
|
}, {
|
|
189
|
-
title:
|
|
190
|
-
field:
|
|
191
|
-
access:
|
|
192
|
-
type:
|
|
199
|
+
title: 'Ingest Id',
|
|
200
|
+
field: 'ingest_id',
|
|
201
|
+
access: 'read',
|
|
202
|
+
type: 'string',
|
|
193
203
|
index: 10
|
|
194
204
|
}, {
|
|
195
|
-
access:
|
|
196
|
-
field:
|
|
197
|
-
title:
|
|
198
|
-
type:
|
|
205
|
+
access: 'read',
|
|
206
|
+
field: 'creation',
|
|
207
|
+
title: 'Ingest Date',
|
|
208
|
+
type: 'datetime',
|
|
199
209
|
index: 11
|
|
200
210
|
}, {
|
|
201
|
-
access:
|
|
202
|
-
field:
|
|
203
|
-
title:
|
|
204
|
-
type:
|
|
211
|
+
access: 'read',
|
|
212
|
+
field: 'assigned_to',
|
|
213
|
+
title: '',
|
|
214
|
+
type: 'table',
|
|
205
215
|
index: 12
|
|
206
216
|
}],
|
|
207
217
|
extra_column_elements: {
|
|
@@ -209,150 +219,146 @@ var data = {
|
|
|
209
219
|
}
|
|
210
220
|
},
|
|
211
221
|
rows: [{
|
|
212
|
-
batch_db_id:
|
|
213
|
-
asset_name:
|
|
214
|
-
ingest_id:
|
|
215
|
-
ingest_db_id:
|
|
216
|
-
asset_type:
|
|
217
|
-
asset_db_id:
|
|
218
|
-
h1:
|
|
219
|
-
h2:
|
|
220
|
-
batch_name:
|
|
221
|
-
batch_regions: [
|
|
222
|
-
season_no:
|
|
223
|
-
episode_name:
|
|
222
|
+
batch_db_id: '603bcbfb9926b8145c94fd63',
|
|
223
|
+
asset_name: 'Monster Crocs Wrangler',
|
|
224
|
+
ingest_id: 'DYN1178',
|
|
225
|
+
ingest_db_id: '5f52160726d887294064842e',
|
|
226
|
+
asset_type: 'show',
|
|
227
|
+
asset_db_id: '5f51fe159926b8297fd057ba',
|
|
228
|
+
h1: 'Monster Crocs Wrangler',
|
|
229
|
+
h2: 'Sep 04 2020',
|
|
230
|
+
batch_name: 'Review Master 1',
|
|
231
|
+
batch_regions: ['India Tx'],
|
|
232
|
+
season_no: '1',
|
|
233
|
+
episode_name: '',
|
|
224
234
|
episode_no: 5,
|
|
225
|
-
snp_status:
|
|
226
|
-
pgm_status:
|
|
227
|
-
edit_process_status:
|
|
228
|
-
edit_process_initiated_by:
|
|
235
|
+
snp_status: 'In Progress',
|
|
236
|
+
pgm_status: 'Approval Pending',
|
|
237
|
+
edit_process_status: 'Pending',
|
|
238
|
+
edit_process_initiated_by: 'Pending',
|
|
229
239
|
creation: 1614531579000,
|
|
230
240
|
batch_creation: 1614531579000,
|
|
231
|
-
details:
|
|
232
|
-
actions: [
|
|
241
|
+
details: 'Show - S1 E5 - askfjlasjf laksjdflkajsldfk ajslfdkjalskdfj laksjflask',
|
|
242
|
+
actions: ['play', 'editprocess_initiate', 'qc'],
|
|
233
243
|
language_tracks: [{
|
|
234
|
-
language:
|
|
235
|
-
review_status:
|
|
244
|
+
language: 'Hindi',
|
|
245
|
+
review_status: 'Pending'
|
|
236
246
|
}, {
|
|
237
|
-
language:
|
|
238
|
-
review_status:
|
|
247
|
+
language: 'English',
|
|
248
|
+
review_status: 'Pending'
|
|
239
249
|
}],
|
|
240
250
|
assigned_to: {
|
|
241
251
|
column_elements: [{
|
|
242
|
-
title:
|
|
243
|
-
field:
|
|
244
|
-
type:
|
|
252
|
+
title: 'Language',
|
|
253
|
+
field: 'language',
|
|
254
|
+
type: 'string'
|
|
245
255
|
}, {
|
|
246
|
-
title:
|
|
247
|
-
field:
|
|
248
|
-
type:
|
|
256
|
+
title: 'Status',
|
|
257
|
+
field: 'status',
|
|
258
|
+
type: 'label'
|
|
249
259
|
}, {
|
|
250
|
-
title:
|
|
251
|
-
field:
|
|
252
|
-
type:
|
|
260
|
+
title: 'Batch Creation',
|
|
261
|
+
field: 'batch_creation',
|
|
262
|
+
type: 'datetime'
|
|
253
263
|
}],
|
|
254
264
|
|
|
255
265
|
rows: [{
|
|
256
|
-
language:
|
|
257
|
-
status:
|
|
266
|
+
language: 'Hindi',
|
|
267
|
+
status: 'In Progress',
|
|
258
268
|
batch_creation: 1614531579000
|
|
259
269
|
}]
|
|
260
270
|
}
|
|
261
271
|
}],
|
|
262
|
-
table_title:
|
|
272
|
+
table_title: 'Review History'
|
|
263
273
|
};
|
|
264
274
|
|
|
265
|
-
(0, _react3.storiesOf)(
|
|
275
|
+
(0, _react3.storiesOf)('Table').add('default', function () {
|
|
266
276
|
return _react2.default.createElement(
|
|
267
277
|
_storyHelpers.Example,
|
|
268
|
-
{ title:
|
|
278
|
+
{ title: 'default' },
|
|
269
279
|
_react2.default.createElement(
|
|
270
280
|
_components.Table,
|
|
271
281
|
{
|
|
272
|
-
theme:
|
|
282
|
+
theme: 'dark',
|
|
273
283
|
items: data.rows,
|
|
274
284
|
showSearchBox: true,
|
|
275
285
|
showTableHeader: false,
|
|
276
|
-
searchValue:
|
|
277
|
-
tableTitle:
|
|
286
|
+
searchValue: '',
|
|
287
|
+
tableTitle: 'Reports'
|
|
278
288
|
//videoPlayBtn={true}
|
|
279
289
|
, showActions: true,
|
|
280
290
|
maxShowNoOfColumns: data.columns.extra_column_elements.no_of_active_columns
|
|
281
291
|
// selectable={true}
|
|
282
292
|
, commonActions: data.columns.common_elements,
|
|
283
293
|
commonActionClickHandler: function commonActionClickHandler(actionItem, e) {
|
|
284
|
-
console.log(
|
|
294
|
+
console.log('actionClickHandler:::', actionItem, e);
|
|
285
295
|
},
|
|
286
296
|
actionClickHandler: function actionClickHandler(actionItem, e) {
|
|
287
|
-
console.log(
|
|
297
|
+
console.log('actionClickHandler:::', actionItem, e);
|
|
288
298
|
},
|
|
289
299
|
onToggleExtraDetails: function onToggleExtraDetails(e, index) {
|
|
290
|
-
console.log(
|
|
300
|
+
console.log('callback func : onToggleExtraDetails() ', index);
|
|
291
301
|
},
|
|
292
302
|
onVideoPlayClick: function onVideoPlayClick(e, index, obj) {
|
|
293
|
-
console.log(
|
|
303
|
+
console.log('callback func : onVideoPlayClick() ', index, obj);
|
|
294
304
|
}
|
|
295
305
|
// selectable
|
|
296
306
|
, rowSelectionChange: function rowSelectionChange(selectedRows) {
|
|
297
|
-
console.log(
|
|
298
|
-
}
|
|
299
|
-
tableLoading
|
|
307
|
+
console.log('rowSelectionChange::::', selectedRows);
|
|
308
|
+
}
|
|
309
|
+
// tableLoading={true}
|
|
310
|
+
, tableLoading: false,
|
|
300
311
|
actionLable: {
|
|
301
|
-
play:
|
|
302
|
-
subtitle:
|
|
303
|
-
clipping:
|
|
304
|
-
subtitle_request:
|
|
305
|
-
clipping_request:
|
|
306
|
-
comment:
|
|
307
|
-
reply:
|
|
308
|
-
ingest_delete:
|
|
309
|
-
tagging_ingest:
|
|
310
|
-
tagging:
|
|
311
|
-
tagging_request:
|
|
312
|
-
archive_ingest:
|
|
313
|
-
archive:
|
|
314
|
-
archive_request:
|
|
315
|
-
restore_ingest:
|
|
316
|
-
restore:
|
|
317
|
-
restore_request:
|
|
318
|
-
assign:
|
|
319
|
-
dubbing_assign:
|
|
320
|
-
restore_assign:
|
|
321
|
-
tagging_assign:
|
|
322
|
-
archive_assign:
|
|
323
|
-
snp_edit_assign:
|
|
324
|
-
qc:
|
|
325
|
-
editprocess_initiate:
|
|
326
|
-
assign_box_id:
|
|
327
|
-
initiate_tx_master:
|
|
328
|
-
snp_edit:
|
|
329
|
-
pgm_edit:
|
|
312
|
+
play: 'Play',
|
|
313
|
+
subtitle: 'Subtitle',
|
|
314
|
+
clipping: 'Clipping',
|
|
315
|
+
subtitle_request: 'Request Subtitle',
|
|
316
|
+
clipping_request: 'tv',
|
|
317
|
+
comment: 'Comment',
|
|
318
|
+
reply: 'Reply',
|
|
319
|
+
ingest_delete: 'Delete',
|
|
320
|
+
tagging_ingest: 'Tagging',
|
|
321
|
+
tagging: 'Tagging',
|
|
322
|
+
tagging_request: 'Request Tagging',
|
|
323
|
+
archive_ingest: 'Archive',
|
|
324
|
+
archive: 'Archive',
|
|
325
|
+
archive_request: 'Request Archive',
|
|
326
|
+
restore_ingest: 'Restore',
|
|
327
|
+
restore: 'Restore',
|
|
328
|
+
restore_request: 'Request Restore',
|
|
329
|
+
assign: 'Assign',
|
|
330
|
+
dubbing_assign: 'Assign',
|
|
331
|
+
restore_assign: 'Assign',
|
|
332
|
+
tagging_assign: 'Assign',
|
|
333
|
+
archive_assign: 'Assign',
|
|
334
|
+
snp_edit_assign: 'Assign',
|
|
335
|
+
qc: 'QC',
|
|
336
|
+
editprocess_initiate: 'Initiate Edit Process',
|
|
337
|
+
assign_box_id: 'Assign Box ID',
|
|
338
|
+
initiate_tx_master: 'Initiate TX Master',
|
|
339
|
+
snp_edit: 'S&P',
|
|
340
|
+
pgm_edit: 'PGM'
|
|
330
341
|
},
|
|
331
342
|
rowSelectedActions: _react2.default.createElement(
|
|
332
|
-
|
|
343
|
+
'div',
|
|
333
344
|
{
|
|
334
345
|
style: {
|
|
335
|
-
position:
|
|
336
|
-
height:
|
|
337
|
-
width:
|
|
346
|
+
position: 'relative',
|
|
347
|
+
height: '100%',
|
|
348
|
+
width: '100%'
|
|
338
349
|
}
|
|
339
350
|
},
|
|
340
351
|
_react2.default.createElement(
|
|
341
|
-
|
|
352
|
+
'span',
|
|
342
353
|
null,
|
|
343
|
-
|
|
354
|
+
'Hello!!!!'
|
|
344
355
|
)
|
|
345
356
|
)
|
|
346
357
|
},
|
|
347
358
|
data.columns.column_elements.sort(function (a, b) {
|
|
348
359
|
return a.index - b.index;
|
|
349
360
|
}).map(function (item) {
|
|
350
|
-
return _react2.default.createElement(_components.Table.Column, {
|
|
351
|
-
type: item.type,
|
|
352
|
-
field: item.field,
|
|
353
|
-
title: item.title,
|
|
354
|
-
key: item.index
|
|
355
|
-
});
|
|
361
|
+
return _react2.default.createElement(_components.Table.Column, { type: item.type, field: item.field, title: item.title, key: item.index });
|
|
356
362
|
})
|
|
357
363
|
)
|
|
358
364
|
);
|
|
@@ -374,4 +380,194 @@ var data = {
|
|
|
374
380
|
// </Table>
|
|
375
381
|
// {/* </ThemeProvider> */}
|
|
376
382
|
// </Example>
|
|
377
|
-
// ))
|
|
383
|
+
// ))
|
|
384
|
+
|
|
385
|
+
(0, _react3.storiesOf)('Table').add('light-theme', function () {
|
|
386
|
+
return _react2.default.createElement(
|
|
387
|
+
_storyHelpers.Example,
|
|
388
|
+
{ title: 'default' },
|
|
389
|
+
_react2.default.createElement(
|
|
390
|
+
_components.Table,
|
|
391
|
+
{
|
|
392
|
+
theme: 'light',
|
|
393
|
+
items: data.rows,
|
|
394
|
+
showSearchBox: true,
|
|
395
|
+
showTableHeader: false,
|
|
396
|
+
searchValue: '',
|
|
397
|
+
tableTitle: 'Reports'
|
|
398
|
+
//videoPlayBtn={true}
|
|
399
|
+
, showActions: true,
|
|
400
|
+
maxShowNoOfColumns: data.columns.extra_column_elements.no_of_active_columns
|
|
401
|
+
// selectable={true}
|
|
402
|
+
, commonActions: data.columns.common_elements,
|
|
403
|
+
commonActionClickHandler: function commonActionClickHandler(actionItem, e) {
|
|
404
|
+
console.log('actionClickHandler:::', actionItem, e);
|
|
405
|
+
},
|
|
406
|
+
actionClickHandler: function actionClickHandler(actionItem, e) {
|
|
407
|
+
console.log('actionClickHandler:::', actionItem, e);
|
|
408
|
+
},
|
|
409
|
+
onToggleExtraDetails: function onToggleExtraDetails(e, index) {
|
|
410
|
+
console.log('callback func : onToggleExtraDetails() ', index);
|
|
411
|
+
},
|
|
412
|
+
onVideoPlayClick: function onVideoPlayClick(e, index, obj) {
|
|
413
|
+
console.log('callback func : onVideoPlayClick() ', index, obj);
|
|
414
|
+
}
|
|
415
|
+
// selectable
|
|
416
|
+
, rowSelectionChange: function rowSelectionChange(selectedRows) {
|
|
417
|
+
console.log('rowSelectionChange::::', selectedRows);
|
|
418
|
+
}
|
|
419
|
+
// tableLoading={true}
|
|
420
|
+
, tableLoading: false,
|
|
421
|
+
actionLable: {
|
|
422
|
+
play: 'Play',
|
|
423
|
+
subtitle: 'Subtitle',
|
|
424
|
+
clipping: 'Clipping',
|
|
425
|
+
subtitle_request: 'Request Subtitle',
|
|
426
|
+
clipping_request: 'tv',
|
|
427
|
+
comment: 'Comment',
|
|
428
|
+
reply: 'Reply',
|
|
429
|
+
ingest_delete: 'Delete',
|
|
430
|
+
tagging_ingest: 'Tagging',
|
|
431
|
+
tagging: 'Tagging',
|
|
432
|
+
tagging_request: 'Request Tagging',
|
|
433
|
+
archive_ingest: 'Archive',
|
|
434
|
+
archive: 'Archive',
|
|
435
|
+
archive_request: 'Request Archive',
|
|
436
|
+
restore_ingest: 'Restore',
|
|
437
|
+
restore: 'Restore',
|
|
438
|
+
restore_request: 'Request Restore',
|
|
439
|
+
assign: 'Assign',
|
|
440
|
+
dubbing_assign: 'Assign',
|
|
441
|
+
restore_assign: 'Assign',
|
|
442
|
+
tagging_assign: 'Assign',
|
|
443
|
+
archive_assign: 'Assign',
|
|
444
|
+
snp_edit_assign: 'Assign',
|
|
445
|
+
qc: 'QC',
|
|
446
|
+
editprocess_initiate: 'Initiate Edit Process',
|
|
447
|
+
assign_box_id: 'Assign Box ID',
|
|
448
|
+
initiate_tx_master: 'Initiate TX Master',
|
|
449
|
+
snp_edit: 'S&P',
|
|
450
|
+
pgm_edit: 'PGM'
|
|
451
|
+
},
|
|
452
|
+
rowSelectedActions: _react2.default.createElement(
|
|
453
|
+
'div',
|
|
454
|
+
{
|
|
455
|
+
style: {
|
|
456
|
+
position: 'relative',
|
|
457
|
+
height: '100%',
|
|
458
|
+
width: '100%'
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
_react2.default.createElement(
|
|
462
|
+
'span',
|
|
463
|
+
null,
|
|
464
|
+
'Hello!!!!'
|
|
465
|
+
)
|
|
466
|
+
)
|
|
467
|
+
},
|
|
468
|
+
data.columns.column_elements.sort(function (a, b) {
|
|
469
|
+
return a.index - b.index;
|
|
470
|
+
}).map(function (item) {
|
|
471
|
+
return _react2.default.createElement(_components.Table.Column, { type: item.type, field: item.field, title: item.title, key: item.index });
|
|
472
|
+
})
|
|
473
|
+
)
|
|
474
|
+
);
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
(0, _react3.storiesOf)('Table').add('nexc theme', function () {
|
|
478
|
+
return _react2.default.createElement(
|
|
479
|
+
_storyHelpers.Example,
|
|
480
|
+
{ title: 'default' },
|
|
481
|
+
_react2.default.createElement(
|
|
482
|
+
_components.Table,
|
|
483
|
+
{
|
|
484
|
+
theme: 'nexc',
|
|
485
|
+
items: data.rows,
|
|
486
|
+
showSearchBox: true,
|
|
487
|
+
showTableHeader: false,
|
|
488
|
+
searchValue: '',
|
|
489
|
+
tableTitle: 'Reports'
|
|
490
|
+
//videoPlayBtn={true}
|
|
491
|
+
, showActions: true,
|
|
492
|
+
maxShowNoOfColumns: data.columns.extra_column_elements.no_of_active_columns
|
|
493
|
+
// selectable={true}
|
|
494
|
+
, commonActions: data.columns.common_elements,
|
|
495
|
+
commonActionClickHandler: function commonActionClickHandler(actionItem, e) {
|
|
496
|
+
console.log('actionClickHandler:::', actionItem, e);
|
|
497
|
+
},
|
|
498
|
+
actionClickHandler: function actionClickHandler(actionItem, e) {
|
|
499
|
+
console.log('actionClickHandler:::', actionItem, e);
|
|
500
|
+
},
|
|
501
|
+
onToggleExtraDetails: function onToggleExtraDetails(e, index) {
|
|
502
|
+
console.log('callback func : onToggleExtraDetails() ', index);
|
|
503
|
+
},
|
|
504
|
+
onVideoPlayClick: function onVideoPlayClick(e, index, obj) {
|
|
505
|
+
console.log('callback func : onVideoPlayClick() ', index, obj);
|
|
506
|
+
}
|
|
507
|
+
// selectable
|
|
508
|
+
, rowSelectionChange: function rowSelectionChange(selectedRows) {
|
|
509
|
+
console.log('rowSelectionChange::::', selectedRows);
|
|
510
|
+
}
|
|
511
|
+
// tableLoading={true}
|
|
512
|
+
, tableLoading: false,
|
|
513
|
+
actionLable: {
|
|
514
|
+
play: 'Play',
|
|
515
|
+
subtitle: 'Subtitle',
|
|
516
|
+
clipping: 'Clipping',
|
|
517
|
+
subtitle_request: 'Request Subtitle',
|
|
518
|
+
clipping_request: 'tv',
|
|
519
|
+
comment: 'Comment',
|
|
520
|
+
reply: 'Reply',
|
|
521
|
+
ingest_delete: 'Delete',
|
|
522
|
+
tagging_ingest: 'Tagging',
|
|
523
|
+
tagging: 'Tagging',
|
|
524
|
+
tagging_request: 'Request Tagging',
|
|
525
|
+
archive_ingest: 'Archive',
|
|
526
|
+
archive: 'Archive',
|
|
527
|
+
archive_request: 'Request Archive',
|
|
528
|
+
restore_ingest: 'Restore',
|
|
529
|
+
restore: 'Restore',
|
|
530
|
+
restore_request: 'Request Restore',
|
|
531
|
+
assign: 'Assign',
|
|
532
|
+
dubbing_assign: 'Assign',
|
|
533
|
+
restore_assign: 'Assign',
|
|
534
|
+
tagging_assign: 'Assign',
|
|
535
|
+
archive_assign: 'Assign',
|
|
536
|
+
snp_edit_assign: 'Assign',
|
|
537
|
+
qc: 'QC',
|
|
538
|
+
editprocess_initiate: 'Initiate Edit Process',
|
|
539
|
+
assign_box_id: 'Assign Box ID',
|
|
540
|
+
initiate_tx_master: 'Initiate TX Master',
|
|
541
|
+
snp_edit: 'S&P',
|
|
542
|
+
pgm_edit: 'PGM'
|
|
543
|
+
},
|
|
544
|
+
rowSelectedActions: _react2.default.createElement(
|
|
545
|
+
'div',
|
|
546
|
+
{
|
|
547
|
+
style: {
|
|
548
|
+
position: 'relative',
|
|
549
|
+
height: '100%',
|
|
550
|
+
width: '100%'
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
_react2.default.createElement(
|
|
554
|
+
'span',
|
|
555
|
+
null,
|
|
556
|
+
'Hello!!!!'
|
|
557
|
+
)
|
|
558
|
+
)
|
|
559
|
+
},
|
|
560
|
+
data.columns.column_elements.sort(function (a, b) {
|
|
561
|
+
return a.index - b.index;
|
|
562
|
+
}).map(function (item) {
|
|
563
|
+
return _react2.default.createElement(_components.Table.Column, {
|
|
564
|
+
theme: 'nexc',
|
|
565
|
+
type: item.type,
|
|
566
|
+
field: item.field,
|
|
567
|
+
title: item.title,
|
|
568
|
+
key: item.index
|
|
569
|
+
});
|
|
570
|
+
})
|
|
571
|
+
)
|
|
572
|
+
);
|
|
573
|
+
});
|