@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.
Files changed (80) hide show
  1. package/atoms/avatar/avatar.js +1 -1
  2. package/atoms/avatar/avatar.story.js +46 -14
  3. package/atoms/badge/badge.js +13 -13
  4. package/atoms/badge/badge.story.js +91 -29
  5. package/atoms/button/button.js +81 -85
  6. package/atoms/button/button.story.js +342 -2
  7. package/atoms/card/card.js +43 -39
  8. package/atoms/card/card.story.js +74 -48
  9. package/atoms/cardStack/cardStack.js +182 -155
  10. package/atoms/cardStack/cardStack.story.js +131 -18
  11. package/atoms/cardV2/cardV2.js +23 -23
  12. package/atoms/cardV2/cardV2.story.js +196 -45
  13. package/atoms/cardV2/content.js +109 -87
  14. package/atoms/cardV2/thumbnail.js +85 -72
  15. package/atoms/cardV2/timeline.js +119 -107
  16. package/atoms/checkbox/checkbox.js +41 -32
  17. package/atoms/checkbox/checkbox.story.js +220 -99
  18. package/atoms/customSelect/customSelect.story.js +820 -582
  19. package/atoms/datePicker/datePicker.js +77 -83
  20. package/atoms/datePicker/datePicker.story.js +167 -1
  21. package/atoms/dateTime/dateTime.story.js +26 -1
  22. package/atoms/draftInputText/draftInputText.js +358 -0
  23. package/atoms/draftInputText/draftInputText.story.js +251 -0
  24. package/atoms/draftInputText/index.js +13 -0
  25. package/atoms/dropdown/dropdown.story.js +146 -18
  26. package/atoms/dropdownList/dropdownList.story.js +1598 -1091
  27. package/atoms/graphs/barGraph/barGraph.js +143 -130
  28. package/atoms/graphs/barGraph/barGraph.story.js +74 -40
  29. package/atoms/graphs/circleDonut/circleDonut.story.js +374 -220
  30. package/atoms/graphs/circleGraph/circleGraph.js +84 -80
  31. package/atoms/graphs/circleGraph/circleGraph.story.js +38 -26
  32. package/atoms/graphs/circleNested/circleNested.story.js +98 -103
  33. package/atoms/graphs/pieChart/pieChart.story.js +160 -81
  34. package/atoms/graphs/verticalBarGraph/verticalBarGraph.story.js +30 -28
  35. package/atoms/icon/icon.story.js +220 -163
  36. package/atoms/inputText/inputText.js +52 -49
  37. package/atoms/label/label.js +29 -29
  38. package/atoms/label/label.story.js +42 -30
  39. package/atoms/loader/CircleLoader.js +13 -4
  40. package/atoms/loader/CircleLoader.jsx +10 -4
  41. package/atoms/loader/ThreeDotLoader.js +8 -4
  42. package/atoms/loader/ThreeDotLoader.jsx +4 -4
  43. package/atoms/loader/loader.js +29 -30
  44. package/atoms/loader/loader.story.js +38 -23
  45. package/atoms/loader/spinningLoader.js +7 -4
  46. package/atoms/loader/spinningLoader.jsx +5 -5
  47. package/atoms/popup/popup.js +11 -11
  48. package/atoms/popup/popup.story.js +36 -4
  49. package/atoms/radio/radio.story.js +140 -2
  50. package/atoms/sideBar/sidebar.js +19 -5
  51. package/atoms/sideBar/sidebar.jsx +13 -8
  52. package/atoms/switch/switch.js +72 -66
  53. package/atoms/switch/switch.story.js +323 -78
  54. package/atoms/tag/tag.js +39 -39
  55. package/atoms/tag/tag.story.js +83 -2
  56. package/atoms/textarea/textarea.js +36 -34
  57. package/atoms/timeCodeInput/timCodeInput.story.js +10 -9
  58. package/atoms/timeCodeInput/timeCodeInput.js +108 -100
  59. package/atoms/timer/timer.js +127 -126
  60. package/atoms/toast/toast.js +24 -14
  61. package/atoms/toast/toast.story.js +22 -0
  62. package/atoms/videoCard/videoCard.js +226 -203
  63. package/atoms/videoCard/videoCard.story.js +547 -186
  64. package/components.js +69 -66
  65. package/index.js +5 -4
  66. package/molecules/carousel/carousel.js +55 -67
  67. package/molecules/filter/filter.js +133 -106
  68. package/molecules/filter/filter.story.js +215 -173
  69. package/molecules/graphCard/graphCard.js +34 -24
  70. package/molecules/graphCard/graphCard.story.js +169 -82
  71. package/molecules/graphDetailCard/graphDetailCard.js +207 -182
  72. package/molecules/pageHeader/pageHeader.js +3 -2
  73. package/molecules/pageHeader/pageHeader.story.js +40 -18
  74. package/molecules/pagination/pagination.js +66 -14
  75. package/molecules/pagination/pagination.story.js +24 -2
  76. package/molecules/table/table.js +368 -316
  77. package/molecules/table/table.story.js +404 -208
  78. package/molecules/tabs/tabs.js +15 -6
  79. package/molecules/tabs/tabs.story.js +26 -0
  80. package/package.json +2 -2
@@ -1,207 +1,217 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- var _react = require("react");
3
+ var _react = require('react');
4
4
 
5
5
  var _react2 = _interopRequireDefault(_react);
6
6
 
7
- var _react3 = require("@storybook/react");
7
+ var _react3 = require('@storybook/react');
8
8
 
9
- var _storyHelpers = require("../../_helpers/story-helpers");
9
+ var _storyHelpers = require('../../_helpers/story-helpers');
10
10
 
11
- var _components = require("../../components");
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: "multi-select",
18
+ table_type: 'multi-select',
19
19
  entries_per_page: 4,
20
20
  columns: [{
21
- title: "Asset Name",
22
- field: "filename",
23
- type: "string"
21
+ title: 'Asset Name',
22
+ field: 'filename',
23
+ type: 'string'
24
24
  }, {
25
- title: "Format",
26
- field: "extension",
27
- type: "string"
25
+ title: 'Format',
26
+ field: 'extension',
27
+ type: 'string'
28
28
  }, {
29
- title: "Story Name",
30
- field: "story_name",
31
- type: "string"
29
+ title: 'Story Name',
30
+ field: 'story_name',
31
+ type: 'string'
32
32
  }, {
33
- title: "Location",
34
- field: "story_location",
35
- type: "string"
33
+ title: 'Location',
34
+ field: 'story_location',
35
+ type: 'string'
36
36
  }, {
37
- title: "Ingest Date",
38
- field: "creation",
39
- type: "date"
37
+ title: 'Ingest Date',
38
+ field: 'creation',
39
+ type: 'date'
40
40
  }, {
41
- title: "Ingest Time",
42
- field: "creation",
43
- type: "time"
41
+ title: 'Ingest Time',
42
+ field: 'creation',
43
+ type: 'time'
44
44
  }, {
45
- title: "Reporter",
46
- field: "reporter_profile",
47
- type: "avatar"
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: "Rupee_US_dollar_conversion_rate",
51
- extension: "MP4",
52
- story_name: "Rupee touches 71.56 against US",
53
- story_location: "Mumbai",
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: "Abc Pan",
57
- email: "abc@gmail.com",
58
- user_image: ""
66
+ name: 'Abc Pan',
67
+ email: 'abc@gmail.com',
68
+ user_image: ''
59
69
  },
60
- trans_status: "FINISHED",
70
+ trans_status: 'FINISHED',
61
71
  arch_status: {
62
- status: "inprogess",
72
+ status: 'inprogess',
63
73
  total: 33,
64
74
  completed: 12
65
75
  },
66
- actions: ["play", "archieve", "restore", "delete"]
76
+ actions: ['play', 'archieve', 'restore', 'delete']
67
77
  }, {
68
- filename: "Rupee_US_dollar_conversion_rate",
69
- extension: "AVI",
70
- story_name: "Rupee touches 71.56 against US",
71
- story_location: "Mumbai",
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: "Abc Pan",
75
- email: "abc@gmail.com",
76
- user_image: ""
84
+ name: 'Abc Pan',
85
+ email: 'abc@gmail.com',
86
+ user_image: ''
77
87
  },
78
- trans_status: "INQUEUE",
88
+ trans_status: 'INQUEUE',
79
89
  arch_status: {
80
- status: "inprogess",
90
+ status: 'inprogess',
81
91
  total: 33,
82
92
  completed: 12
83
93
  },
84
- actions: ["play", "archieve", "restore", "delete"]
94
+ actions: ['play', 'archieve', 'restore', 'delete']
85
95
  }, {
86
- filename: "Rupee_US_dollar_conversion_rate",
87
- extension: "MXF",
88
- story_name: "Rupee touches 71.56 against US",
89
- story_location: "Mumbai",
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: "Abc Pan",
93
- email: "abc@gmail.com",
94
- user_image: ""
102
+ name: 'Abc Pan',
103
+ email: 'abc@gmail.com',
104
+ user_image: ''
95
105
  },
96
- trans_status: "STARTED",
106
+ trans_status: 'STARTED',
97
107
  arch_status: {
98
- status: "inprogess",
108
+ status: 'inprogess',
99
109
  total: 33,
100
110
  completed: 12
101
111
  },
102
- actions: ["play", "archieve", "restore", "delete"]
112
+ actions: ['play', 'archieve', 'restore', 'delete']
103
113
  }, {
104
- filename: "Rupee_US_dollar_conversion_rate",
105
- extension: "WAV",
106
- story_name: "Rupee touches 71.56 against US",
107
- story_location: "Mumbai",
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: "Abc Pan",
111
- email: "abc@gmail.com",
112
- user_image: ""
120
+ name: 'Abc Pan',
121
+ email: 'abc@gmail.com',
122
+ user_image: ''
113
123
  },
114
- trans_status: "PENDING",
124
+ trans_status: 'PENDING',
115
125
  arch_status: {
116
- status: "inprogess",
126
+ status: 'inprogess',
117
127
  total: 33,
118
128
  completed: 12
119
129
  },
120
- actions: ["play", "archieve", "restore", "delete"]
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: "default",
137
+ table_type: 'default',
128
138
  entries_per_page: 15,
129
139
  columns: {
130
- action_elements: ["play", "task_assignment", "editprocess_initiate"],
131
- common_elements: ["play", "task_assignment", "editprocess_initiate"],
140
+ action_elements: ['play', 'task_assignment', 'editprocess_initiate'],
141
+ common_elements: ['play', 'task_assignment', 'editprocess_initiate'],
132
142
  column_elements: [{
133
- title: "Asset Name",
134
- field: "asset_name",
135
- access: "read",
136
- type: "link_text",
143
+ title: 'Asset Name',
144
+ field: 'asset_name',
145
+ access: 'read',
146
+ type: 'link_text',
137
147
  index: 1
138
148
  }, {
139
- title: "Details",
140
- field: "details",
141
- access: "read",
142
- type: "string",
149
+ title: 'Details',
150
+ field: 'details',
151
+ access: 'read',
152
+ type: 'string',
143
153
  index: 2
144
154
  }, {
145
- title: "S&P Status",
146
- field: "snp_status",
147
- access: "read",
148
- type: "label",
155
+ title: 'S&P Status',
156
+ field: 'snp_status',
157
+ access: 'read',
158
+ type: 'label',
149
159
  index: 3
150
160
  }, {
151
- title: "Language",
152
- field: "language_tracks",
153
- access: "read",
154
- type: "dubbing_status",
161
+ title: 'Language',
162
+ field: 'language_tracks',
163
+ access: 'read',
164
+ type: 'dubbing_status',
155
165
  index: 4
156
166
  }, {
157
- title: "PGM Status",
158
- field: "pgm_status",
159
- access: "read",
160
- type: "label",
167
+ title: 'PGM Status',
168
+ field: 'pgm_status',
169
+ access: 'read',
170
+ type: 'label',
161
171
  index: 5
162
172
  }, {
163
- title: "Edit Status",
164
- field: "edit_process_status",
165
- access: "read",
166
- type: "label",
173
+ title: 'Edit Status',
174
+ field: 'edit_process_status',
175
+ access: 'read',
176
+ type: 'label',
167
177
  index: 6
168
178
  }, {
169
- title: "Actions",
170
- field: "actions",
171
- access: "write",
172
- type: "action_icon",
179
+ title: 'Actions',
180
+ field: 'actions',
181
+ access: 'write',
182
+ type: 'action_icon',
173
183
  index: 7
174
184
  }, {
175
- title: "Batch",
176
- field: "batch_name",
177
- access: "read",
178
- type: "string",
179
- admin_column: ["snp_edit_admin"],
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: "Delivery Location",
183
- field: "batch_regions",
184
- access: "read",
185
- type: "string",
186
- admin_column: ["snp_edit_admin"],
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: "Ingest Id",
190
- field: "ingest_id",
191
- access: "read",
192
- type: "string",
199
+ title: 'Ingest Id',
200
+ field: 'ingest_id',
201
+ access: 'read',
202
+ type: 'string',
193
203
  index: 10
194
204
  }, {
195
- access: "read",
196
- field: "creation",
197
- title: "Ingest Date",
198
- type: "datetime",
205
+ access: 'read',
206
+ field: 'creation',
207
+ title: 'Ingest Date',
208
+ type: 'datetime',
199
209
  index: 11
200
210
  }, {
201
- access: "read",
202
- field: "assigned_to",
203
- title: "",
204
- type: "table",
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: "603bcbfb9926b8145c94fd63",
213
- asset_name: "Monster Crocs Wrangler",
214
- ingest_id: "DYN1178",
215
- ingest_db_id: "5f52160726d887294064842e",
216
- asset_type: "show",
217
- asset_db_id: "5f51fe159926b8297fd057ba",
218
- h1: "Monster Crocs Wrangler",
219
- h2: "Sep 04 2020",
220
- batch_name: "Review Master 1",
221
- batch_regions: ["India Tx"],
222
- season_no: "1",
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: "In Progress",
226
- pgm_status: "Approval Pending",
227
- edit_process_status: "Pending",
228
- edit_process_initiated_by: "Pending",
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: "Show - S1 E5 - askfjlasjf laksjdflkajsldfk ajslfdkjalskdfj laksjflask",
232
- actions: ["play", "editprocess_initiate", "qc"],
241
+ details: 'Show - S1 E5 - askfjlasjf laksjdflkajsldfk ajslfdkjalskdfj laksjflask',
242
+ actions: ['play', 'editprocess_initiate', 'qc'],
233
243
  language_tracks: [{
234
- language: "Hindi",
235
- review_status: "Pending"
244
+ language: 'Hindi',
245
+ review_status: 'Pending'
236
246
  }, {
237
- language: "English",
238
- review_status: "Pending"
247
+ language: 'English',
248
+ review_status: 'Pending'
239
249
  }],
240
250
  assigned_to: {
241
251
  column_elements: [{
242
- title: "Language",
243
- field: "language",
244
- type: "string"
252
+ title: 'Language',
253
+ field: 'language',
254
+ type: 'string'
245
255
  }, {
246
- title: "Status",
247
- field: "status",
248
- type: "label"
256
+ title: 'Status',
257
+ field: 'status',
258
+ type: 'label'
249
259
  }, {
250
- title: "Batch Creation",
251
- field: "batch_creation",
252
- type: "datetime"
260
+ title: 'Batch Creation',
261
+ field: 'batch_creation',
262
+ type: 'datetime'
253
263
  }],
254
264
 
255
265
  rows: [{
256
- language: "Hindi",
257
- status: "In Progress",
266
+ language: 'Hindi',
267
+ status: 'In Progress',
258
268
  batch_creation: 1614531579000
259
269
  }]
260
270
  }
261
271
  }],
262
- table_title: "Review History"
272
+ table_title: 'Review History'
263
273
  };
264
274
 
265
- (0, _react3.storiesOf)("Table").add("default", function () {
275
+ (0, _react3.storiesOf)('Table').add('default', function () {
266
276
  return _react2.default.createElement(
267
277
  _storyHelpers.Example,
268
- { title: "default" },
278
+ { title: 'default' },
269
279
  _react2.default.createElement(
270
280
  _components.Table,
271
281
  {
272
- theme: "dark",
282
+ theme: 'dark',
273
283
  items: data.rows,
274
284
  showSearchBox: true,
275
285
  showTableHeader: false,
276
- searchValue: "",
277
- tableTitle: "Reports"
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("actionClickHandler:::", actionItem, e);
294
+ console.log('actionClickHandler:::', actionItem, e);
285
295
  },
286
296
  actionClickHandler: function actionClickHandler(actionItem, e) {
287
- console.log("actionClickHandler:::", actionItem, e);
297
+ console.log('actionClickHandler:::', actionItem, e);
288
298
  },
289
299
  onToggleExtraDetails: function onToggleExtraDetails(e, index) {
290
- console.log("callback func : onToggleExtraDetails() ", index);
300
+ console.log('callback func : onToggleExtraDetails() ', index);
291
301
  },
292
302
  onVideoPlayClick: function onVideoPlayClick(e, index, obj) {
293
- console.log("callback func : onVideoPlayClick() ", index, obj);
303
+ console.log('callback func : onVideoPlayClick() ', index, obj);
294
304
  }
295
305
  // selectable
296
306
  , rowSelectionChange: function rowSelectionChange(selectedRows) {
297
- console.log("rowSelectionChange::::", selectedRows);
298
- },
299
- tableLoading: true,
307
+ console.log('rowSelectionChange::::', selectedRows);
308
+ }
309
+ // tableLoading={true}
310
+ , tableLoading: false,
300
311
  actionLable: {
301
- play: "Play",
302
- subtitle: "Subtitle",
303
- clipping: "Clipping",
304
- subtitle_request: "Request Subtitle",
305
- clipping_request: "tv",
306
- comment: "Comment",
307
- reply: "Reply",
308
- ingest_delete: "Delete",
309
- tagging_ingest: "Tagging",
310
- tagging: "Tagging",
311
- tagging_request: "Request Tagging",
312
- archive_ingest: "Archive",
313
- archive: "Archive",
314
- archive_request: "Request Archive",
315
- restore_ingest: "Restore",
316
- restore: "Restore",
317
- restore_request: "Request Restore",
318
- assign: "Assign",
319
- dubbing_assign: "Assign",
320
- restore_assign: "Assign",
321
- tagging_assign: "Assign",
322
- archive_assign: "Assign",
323
- snp_edit_assign: "Assign",
324
- qc: "QC",
325
- editprocess_initiate: "Initiate Edit Process",
326
- assign_box_id: "Assign Box ID",
327
- initiate_tx_master: "Initiate TX Master",
328
- snp_edit: "S&P",
329
- pgm_edit: "PGM"
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
- "div",
343
+ 'div',
333
344
  {
334
345
  style: {
335
- position: "relative",
336
- height: "100%",
337
- width: "100%"
346
+ position: 'relative',
347
+ height: '100%',
348
+ width: '100%'
338
349
  }
339
350
  },
340
351
  _react2.default.createElement(
341
- "span",
352
+ 'span',
342
353
  null,
343
- "Hello!!!!"
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
+ });