@omniumretail/component-library 1.1.33 → 1.1.34
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/package.json
CHANGED
|
@@ -137,7 +137,7 @@ export const CategoryContent = (props: categoryContent) => {
|
|
|
137
137
|
{t('components.categoryContent.yesNoAnswer')}
|
|
138
138
|
</Label>
|
|
139
139
|
<Form.Item
|
|
140
|
-
name={['
|
|
140
|
+
name={['isYesOrNo']}
|
|
141
141
|
>
|
|
142
142
|
<Switch onChange={(enabled: boolean) => { yesNoSwitchHandler(enabled) }} checked={switchYesOrNoAnswStatus} />
|
|
143
143
|
</Form.Item>
|
|
@@ -20,7 +20,8 @@ const Template: Story<ResponsiveTableCustomProps> = (args) => {
|
|
|
20
20
|
// For example, trigger an API call
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
return <ResponsiveTable
|
|
23
|
+
return <ResponsiveTable scroll={{ x: 4000 }}
|
|
24
|
+
columnsSortChange={handleSortByColumnChange} paginationInfo={setPageInfo} headingTranslationsKey={'tableHeadings'} rowSelectionInfo={setRowSelectionInfo} actionsArray={
|
|
24
25
|
[
|
|
25
26
|
{ key: '1', label: `${t('actions.one')}`, onClick: () => {
|
|
26
27
|
console.log('onClick');
|
|
@@ -30,7 +31,7 @@ const Template: Story<ResponsiveTableCustomProps> = (args) => {
|
|
|
30
31
|
key: '3', label: 'label 3'
|
|
31
32
|
}
|
|
32
33
|
]
|
|
33
|
-
} {...args}></ResponsiveTable>;
|
|
34
|
+
} fixedColumns={[{dataIndex: 'action' , side: 'right'}]} {...args}></ResponsiveTable>;
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
export const Primary = Template.bind({});
|
|
@@ -185,7 +186,7 @@ Primary.args = {
|
|
|
185
186
|
],
|
|
186
187
|
pagination: {
|
|
187
188
|
total: 24,
|
|
188
|
-
pageSize:
|
|
189
|
+
pageSize: 4
|
|
189
190
|
},
|
|
190
191
|
hiddenColumns: ['id'],
|
|
191
192
|
sortByColumns: true,
|
|
@@ -189,15 +189,14 @@ export const ResponsiveTable = (props: ResponsiveTableCustomProps) => {
|
|
|
189
189
|
|
|
190
190
|
}).filter(el => el !== undefined) as any;
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
const columnActions = {
|
|
193
193
|
key: 'action',
|
|
194
194
|
title: headingTranslationsKey ? t(`${headingTranslationsKey}.${'action'}`) : 'action',
|
|
195
|
-
dataIndex:
|
|
195
|
+
dataIndex: 'action',
|
|
196
196
|
ellipsis: false,
|
|
197
197
|
align: 'right',
|
|
198
198
|
render: () => {
|
|
199
|
-
if (!items?.[0]) return null;
|
|
200
|
-
|
|
199
|
+
if (!items?.[0]) return null;
|
|
201
200
|
return (
|
|
202
201
|
<Space size="middle">
|
|
203
202
|
<Dropdown menu={{ items }}>
|