@omniumretail/component-library 1.2.36 → 1.2.38
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
|
@@ -74,7 +74,8 @@ Primary.args = {
|
|
|
74
74
|
mecanographicNumber: "232",
|
|
75
75
|
store: `Levi's Sta Catarina`,
|
|
76
76
|
role: `Gerente`,
|
|
77
|
-
type: `Efetivo
|
|
77
|
+
type: `Efetivo`,
|
|
78
|
+
Status: "A"
|
|
78
79
|
},
|
|
79
80
|
{
|
|
80
81
|
id: `2`,
|
|
@@ -82,7 +83,8 @@ Primary.args = {
|
|
|
82
83
|
mecanographicNumber: "32",
|
|
83
84
|
store: `Levi's Sta Catarina`,
|
|
84
85
|
role: `Comercial`,
|
|
85
|
-
type: `NEfetivo
|
|
86
|
+
type: `NEfetivo`,
|
|
87
|
+
Status: "A"
|
|
86
88
|
},
|
|
87
89
|
{
|
|
88
90
|
id: `3`,
|
|
@@ -90,7 +92,8 @@ Primary.args = {
|
|
|
90
92
|
mecanographicNumber: "3212",
|
|
91
93
|
store: `Levi's Sta Catarina`,
|
|
92
94
|
role: `Funcionário`,
|
|
93
|
-
type: `NEfetivo
|
|
95
|
+
type: `NEfetivo`,
|
|
96
|
+
Status: "I"
|
|
94
97
|
},
|
|
95
98
|
{
|
|
96
99
|
id: `4`,
|
|
@@ -328,6 +328,13 @@ export const ResponsiveTable = (props: ResponsiveTableCustomProps) => {
|
|
|
328
328
|
}
|
|
329
329
|
) : null}
|
|
330
330
|
rowKey={rowKeyValue}
|
|
331
|
+
onRow={(record: any) => {
|
|
332
|
+
return {
|
|
333
|
+
style: {
|
|
334
|
+
opacity: record.Status === "I" ? 0.5 : 1,
|
|
335
|
+
},
|
|
336
|
+
};
|
|
337
|
+
}}
|
|
331
338
|
{...(tableMaxHeight ? { scroll: { y: tableMaxHeight } } : {})}
|
|
332
339
|
/>
|
|
333
340
|
{
|
|
@@ -24,10 +24,10 @@ export interface customTagProps extends TagProps {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export const TagField = (props: customTagProps) => {
|
|
27
|
-
const { customTags = [], advancedTags, disable, defaultAdvancedFilters = [], hideAdvancedFilters =
|
|
27
|
+
const { customTags = [], advancedTags, disable, defaultAdvancedFilters = [], hideAdvancedFilters = true, inputPlacehold, inputDefaultAdvancedFilter = "" } = props;
|
|
28
28
|
|
|
29
29
|
const [tags, setTags] = useState<string[]>(customTags.filter(tag => !tag.includes('=')));
|
|
30
|
-
const [inputVisible, setInputVisible] = useState<boolean>(false);
|
|
30
|
+
const [inputVisible, setInputVisible] = useState<boolean>(inputDefaultAdvancedFilter !== "" ? true : false);
|
|
31
31
|
const [inputValue, setInputValue] = useState(
|
|
32
32
|
inputDefaultAdvancedFilter !== "" ? inputDefaultAdvancedFilter + '=' : ''
|
|
33
33
|
); // const [switchValue, setSwitchValue] = useState<boolean>(false);
|