fansunited-widget-poll 2.7.0 → 2.9.0

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/README.md CHANGED
@@ -98,6 +98,12 @@ const labels = {
98
98
  creationDate: 'Created at',
99
99
  actions: 'Actions',
100
100
  pageNo: 'Page No',
101
+ createFromTemplate: 'Create from template',
102
+ browsePolls: 'Browse Polls',
103
+ noTemplatePollsFound: 'No polls found',
104
+ expand: 'Expand',
105
+ import: 'Import',
106
+ translateAndImport: 'Translate to _language_ and Import',
101
107
  back: 'Back',
102
108
  create: 'Create',
103
109
  edit: 'Edit',
@@ -298,6 +304,12 @@ Here is all information about **`LabelsModel`**:
298
304
  | `creationDate` | Date of created poll in same format as given for **`timeFormat` prop** | Created at |
299
305
  | `actions` | Two icon buttons with different actions | Actions |
300
306
  | `pageNo` | Label before pagination buttons | Page No |
307
+ | `createFromTemplate` | Create from poll template button title | Create from template |
308
+ | `browsePolls` | Import polls from template modal header | Browse Polls |
309
+ | `noTemplatePollsFound` | Screen message when there are no template polls found | No polls were found. |
310
+ | `expand` | Expand row button tooltip | Expand |
311
+ | `import` | Import poll modal action button title | Import |
312
+ | `translateAndImport` | Import poll modal translate action button title | Translate to _language_ and Import |
301
313
  | `back` | Label next to back button | Back |
302
314
  | `create` | Label for management header | Create |
303
315
  | `edit` | Label for management header | Edit |
@@ -4,6 +4,7 @@ import { default as SelectOption } from '../../models/Select/SelectOption';
4
4
  type FiltersProps = {
5
5
  filters: PollFiltersModel;
6
6
  options: SelectOption[];
7
+ showStatusFilter?: boolean;
7
8
  setOptions: Dispatch<SetStateAction<SelectOption[]>>;
8
9
  setFilters: Dispatch<SetStateAction<PollFiltersModel>>;
9
10
  handleResetData: () => void;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ type ImportTemplateModalProps = {
3
+ isOpen: boolean;
4
+ onImport: () => void;
5
+ onClose: () => void;
6
+ };
7
+ declare const ImportTemplateModal: React.FC<ImportTemplateModalProps>;
8
+ export default ImportTemplateModal;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ type PollTemplateRowProps = {
4
+ row: PollBasicModel;
5
+ isSelected: boolean;
6
+ onRowSelect: (poll: PollBasicModel) => void;
7
+ };
8
+ declare const PollTemplateRow: React.FC<PollTemplateRowProps>;
9
+ export default PollTemplateRow;
@@ -1,13 +1,18 @@
1
1
  import { default as React } from 'react';
2
2
  import { PollBasicModel } from 'fansunited-sdk-esm';
3
+ import { SxProps } from '@mui/material';
3
4
  type PollsTableProps = {
4
5
  pagePolls: Map<number, PollBasicModel[]>;
5
6
  pageCount: number;
6
7
  pollsPerPage: number;
7
8
  getPreviousPage: () => void;
8
9
  getNextPage: () => void;
9
- onClickEdit: (id: string) => void;
10
- onDelete: () => void;
10
+ onClickEdit?: (id: string) => void;
11
+ onDelete?: () => void;
12
+ isGameTemplate?: boolean;
13
+ selectedGames?: string[];
14
+ onRowSelect?: (pollId: string) => void;
15
+ sx?: SxProps;
11
16
  };
12
17
  declare const PollsTable: React.FC<PollsTableProps>;
13
18
  export default PollsTable;
@@ -55,6 +55,10 @@ export declare const supportedLanguages: {
55
55
  key: string;
56
56
  name: string;
57
57
  };
58
+ hi: {
59
+ key: string;
60
+ name: string;
61
+ };
58
62
  hu: {
59
63
  key: string;
60
64
  name: string;
@@ -201,6 +205,10 @@ export declare const languagesMap: {
201
205
  key: string;
202
206
  name: string;
203
207
  };
208
+ hi: {
209
+ key: string;
210
+ name: string;
211
+ };
204
212
  hu: {
205
213
  key: string;
206
214
  name: string;
@@ -9,6 +9,12 @@ export default class LabelsModel {
9
9
  getPollsErrorMessage: string;
10
10
  title: string;
11
11
  noPollsFound: string;
12
+ createFromTemplate: string;
13
+ browsePolls: string;
14
+ noTemplatePollsFound: string;
15
+ expand: string;
16
+ translateAndImport: string;
17
+ import: string;
12
18
  status: string;
13
19
  votes: string;
14
20
  creationDate: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-widget-poll",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "main": "poll-manager.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",