seat-editor 3.5.19 → 3.5.21
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.
|
@@ -64,7 +64,7 @@ const TableEditor = (props) => {
|
|
|
64
64
|
const hasUndefined = matchInitialValueWithComponents === null || matchInitialValueWithComponents === void 0 ? void 0 : matchInitialValueWithComponents.some((item) => item === undefined);
|
|
65
65
|
if (props === null || props === void 0 ? void 0 : props.hiddenStatusKey) {
|
|
66
66
|
matchInitialValueWithComponents = matchInitialValueWithComponents === null || matchInitialValueWithComponents === void 0 ? void 0 : matchInitialValueWithComponents.map((_, i) => {
|
|
67
|
-
const hidden = hiddenIdList.find((h) => (h === null || h === void 0 ? void 0 : h.key) === i); // find by key, bukan index
|
|
67
|
+
const hidden = hiddenIdList === null || hiddenIdList === void 0 ? void 0 : hiddenIdList.find((h) => (h === null || h === void 0 ? void 0 : h.key) === i); // find by key, bukan index
|
|
68
68
|
if (hidden) {
|
|
69
69
|
return hidden === null || hidden === void 0 ? void 0 : hidden.data;
|
|
70
70
|
}
|
|
@@ -93,10 +93,11 @@ const TableEditor = (props) => {
|
|
|
93
93
|
const convertComponentProps = () => {
|
|
94
94
|
let hiddenIdList = [];
|
|
95
95
|
let mappingData = componentProps === null || componentProps === void 0 ? void 0 : componentProps.map((item, i) => {
|
|
96
|
+
var _a, _b, _c;
|
|
96
97
|
const isHidden = item &&
|
|
97
|
-
(props === null || props === void 0 ? void 0 : props.hiddenStatusKey["key"]) &&
|
|
98
|
-
(item === null || item === void 0 ? void 0 : item[props === null || props === void 0 ? void 0 : props.hiddenStatusKey["key"]]) ===
|
|
99
|
-
(props === null || props === void 0 ? void 0 : props.hiddenStatusKey["value"]);
|
|
98
|
+
((_a = props === null || props === void 0 ? void 0 : props.hiddenStatusKey) === null || _a === void 0 ? void 0 : _a["key"]) &&
|
|
99
|
+
(item === null || item === void 0 ? void 0 : item[(_b = props === null || props === void 0 ? void 0 : props.hiddenStatusKey) === null || _b === void 0 ? void 0 : _b["key"]]) ===
|
|
100
|
+
((_c = props === null || props === void 0 ? void 0 : props.hiddenStatusKey) === null || _c === void 0 ? void 0 : _c["value"]);
|
|
100
101
|
if (isHidden) {
|
|
101
102
|
hiddenIdList.push({
|
|
102
103
|
key: i,
|
|
@@ -63,7 +63,7 @@ const TableEditor = (props) => {
|
|
|
63
63
|
const hasUndefined = matchInitialValueWithComponents === null || matchInitialValueWithComponents === void 0 ? void 0 : matchInitialValueWithComponents.some((item) => item === undefined);
|
|
64
64
|
if (props === null || props === void 0 ? void 0 : props.hiddenStatusKey) {
|
|
65
65
|
matchInitialValueWithComponents = matchInitialValueWithComponents === null || matchInitialValueWithComponents === void 0 ? void 0 : matchInitialValueWithComponents.map((_, i) => {
|
|
66
|
-
const hidden = hiddenIdList.find((h) => (h === null || h === void 0 ? void 0 : h.key) === i); // find by key, bukan index
|
|
66
|
+
const hidden = hiddenIdList === null || hiddenIdList === void 0 ? void 0 : hiddenIdList.find((h) => (h === null || h === void 0 ? void 0 : h.key) === i); // find by key, bukan index
|
|
67
67
|
if (hidden) {
|
|
68
68
|
return hidden === null || hidden === void 0 ? void 0 : hidden.data;
|
|
69
69
|
}
|
|
@@ -92,10 +92,11 @@ const TableEditor = (props) => {
|
|
|
92
92
|
const convertComponentProps = () => {
|
|
93
93
|
let hiddenIdList = [];
|
|
94
94
|
let mappingData = componentProps === null || componentProps === void 0 ? void 0 : componentProps.map((item, i) => {
|
|
95
|
+
var _a, _b, _c;
|
|
95
96
|
const isHidden = item &&
|
|
96
|
-
(props === null || props === void 0 ? void 0 : props.hiddenStatusKey["key"]) &&
|
|
97
|
-
(item === null || item === void 0 ? void 0 : item[props === null || props === void 0 ? void 0 : props.hiddenStatusKey["key"]]) ===
|
|
98
|
-
(props === null || props === void 0 ? void 0 : props.hiddenStatusKey["value"]);
|
|
97
|
+
((_a = props === null || props === void 0 ? void 0 : props.hiddenStatusKey) === null || _a === void 0 ? void 0 : _a["key"]) &&
|
|
98
|
+
(item === null || item === void 0 ? void 0 : item[(_b = props === null || props === void 0 ? void 0 : props.hiddenStatusKey) === null || _b === void 0 ? void 0 : _b["key"]]) ===
|
|
99
|
+
((_c = props === null || props === void 0 ? void 0 : props.hiddenStatusKey) === null || _c === void 0 ? void 0 : _c["value"]);
|
|
99
100
|
if (isHidden) {
|
|
100
101
|
hiddenIdList.push({
|
|
101
102
|
key: i,
|