@pisell/materials 1.0.279 → 1.0.280
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/table/hooks/useTableSetting.js +1 -1
- package/es/components/table/index.js +2 -1
- package/lib/components/table/hooks/useTableSetting.js +1 -1
- package/lib/components/table/index.js +3 -3
- package/package.json +1 -1
|
@@ -169,7 +169,7 @@ var useTableSetting = function useTableSetting(params) {
|
|
|
169
169
|
currentViewMode: currentViewMode,
|
|
170
170
|
currentSettingHash: currentSettingHash
|
|
171
171
|
});
|
|
172
|
-
if (isTerminal() && result) {
|
|
172
|
+
if (isTerminal !== null && isTerminal !== void 0 && isTerminal() && result) {
|
|
173
173
|
var _interaction$utils, _interaction$utils$po;
|
|
174
174
|
interaction === null || interaction === void 0 ? void 0 : (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 ? void 0 : (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 ? void 0 : _interaction$utils$po.call(_interaction$utils, {
|
|
175
175
|
module: "global",
|
|
@@ -108,8 +108,9 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
108
108
|
useEffect(function () {
|
|
109
109
|
var setting = getTableSettingFromLocalStorage(tableId);
|
|
110
110
|
if (setting.currentSettingHash !== currentSettingHash) {
|
|
111
|
+
var _utils$isTerminal;
|
|
111
112
|
clearTableSettingToLocalStorage(tableId);
|
|
112
|
-
if (utils !== null && utils !== void 0 && utils.isTerminal() && tableId) {
|
|
113
|
+
if (utils !== null && utils !== void 0 && (_utils$isTerminal = utils.isTerminal) !== null && _utils$isTerminal !== void 0 && _utils$isTerminal.call(utils) && tableId) {
|
|
113
114
|
var _utils$interaction, _utils$interaction$ut, _utils$interaction$ut2;
|
|
114
115
|
utils === null || utils === void 0 ? void 0 : (_utils$interaction = utils.interaction) === null || _utils$interaction === void 0 ? void 0 : (_utils$interaction$ut = _utils$interaction.utils) === null || _utils$interaction$ut === void 0 ? void 0 : (_utils$interaction$ut2 = _utils$interaction$ut.postMessageToApp) === null || _utils$interaction$ut2 === void 0 ? void 0 : _utils$interaction$ut2.call(_utils$interaction$ut, {
|
|
115
116
|
module: "global",
|
|
@@ -207,7 +207,7 @@ var useTableSetting = (params) => {
|
|
|
207
207
|
currentViewMode,
|
|
208
208
|
currentSettingHash
|
|
209
209
|
});
|
|
210
|
-
if (isTerminal() && result) {
|
|
210
|
+
if ((isTerminal == null ? void 0 : isTerminal()) && result) {
|
|
211
211
|
(_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b.call(_a2, {
|
|
212
212
|
module: "global",
|
|
213
213
|
key: "local_storage",
|
|
@@ -121,12 +121,12 @@ var GridView = (0, import_model.Provider)(
|
|
|
121
121
|
return currentSettingKey || (0, import_utils.getHash)(columns) || "";
|
|
122
122
|
}, [currentSettingKey, JSON.stringify(columns)]);
|
|
123
123
|
(0, import_react.useEffect)(() => {
|
|
124
|
-
var _a2, _b2, _c2;
|
|
124
|
+
var _a2, _b2, _c2, _d2;
|
|
125
125
|
const setting = (0, import_utils.getTableSettingFromLocalStorage)(tableId);
|
|
126
126
|
if (setting.currentSettingHash !== currentSettingHash) {
|
|
127
127
|
(0, import_utils.clearTableSettingToLocalStorage)(tableId);
|
|
128
|
-
if ((utils == null ? void 0 : utils.isTerminal()) && tableId) {
|
|
129
|
-
(
|
|
128
|
+
if (((_a2 = utils == null ? void 0 : utils.isTerminal) == null ? void 0 : _a2.call(utils)) && tableId) {
|
|
129
|
+
(_d2 = (_c2 = (_b2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _b2.utils) == null ? void 0 : _c2.postMessageToApp) == null ? void 0 : _d2.call(_c2, {
|
|
130
130
|
module: "global",
|
|
131
131
|
key: "local_storage",
|
|
132
132
|
data: {
|