@fileverse-dev/fortune-react 1.2.0 → 1.2.1

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.
@@ -18,10 +18,13 @@ var RangeDialog = function RangeDialog() {
18
18
  rangeTxt2 = _c[0],
19
19
  setRangeTxt2 = _c[1];
20
20
  var close = useCallback(function () {
21
+ var _a;
21
22
  setContext(function (ctx) {
22
23
  ctx.rangeDialog.show = false;
23
24
  ctx.rangeDialog.singleSelect = false;
24
25
  });
26
+ console.log("rangeDialogType");
27
+ (_a = document.getElementById("data-verification-button")) === null || _a === void 0 ? void 0 : _a.click();
25
28
  if (!context.rangeDialog) return;
26
29
  var rangeDialogType = context.rangeDialog.type;
27
30
  if (rangeDialogType.indexOf("between") >= 0) {
@@ -36,6 +39,7 @@ var RangeDialog = function RangeDialog() {
36
39
  type: rulesType
37
40
  }), undefined, locale(context).conditionformat["conditionformat_".concat(rulesType)]);
38
41
  }
42
+ console.log("rangeDialogType", rangeDialogType);
39
43
  }, [setContext, showDialog, context]);
40
44
  useEffect(function () {
41
45
  setRangeTxt2(getDisplayedRangeTxt(context));
@@ -90,6 +94,7 @@ var RangeDialog = function RangeDialog() {
90
94
  minWidth: "80px"
91
95
  },
92
96
  onClick: function onClick() {
97
+ console.log("rangeTxt2", rangeTxt2);
93
98
  setContext(function (ctx) {
94
99
  ctx.rangeDialog.rangeTxt = rangeTxt2;
95
100
  });
@@ -1,5 +1,4 @@
1
- import { colLocation, colLocationByIndex, selectTitlesMap, selectTitlesRange, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, isAllowEdit, getFlowdata, fixColumnStyleOverflowInFreeze, handleColFreezeHandleMouseDown, getSheetIndex, fixPositionOnFrozenCells, showSelected } from "@fileverse-dev/fortune-core";
2
- import { api } from "@fileverse-dev/fortune-core";
1
+ import { colLocation, colLocationByIndex, selectTitlesMap, selectTitlesRange, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, isAllowEdit, getFlowdata, fixColumnStyleOverflowInFreeze, handleColFreezeHandleMouseDown, getSheetIndex, fixPositionOnFrozenCells, showSelected, api } from "@fileverse-dev/fortune-core";
3
2
  import _ from "lodash";
4
3
  import React, { useContext, useState, useRef, useCallback, useEffect, useMemo } from "react";
5
4
  import WorkbookContext from "../../context";
@@ -1,5 +1,4 @@
1
- import { rowLocation, rowLocationByIndex, selectTitlesMap, selectTitlesRange, handleContextMenu, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, fixRowStyleOverflowInFreeze, handleRowFreezeHandleMouseDown, getSheetIndex, showSelected, fixPositionOnFrozenCells } from "@fileverse-dev/fortune-core";
2
- import { api } from "@fileverse-dev/fortune-core";
1
+ import { rowLocation, rowLocationByIndex, selectTitlesMap, selectTitlesRange, handleContextMenu, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, fixRowStyleOverflowInFreeze, handleRowFreezeHandleMouseDown, getSheetIndex, showSelected, fixPositionOnFrozenCells, api } from "@fileverse-dev/fortune-core";
3
2
  import _ from "lodash";
4
3
  import React, { useContext, useState, useRef, useCallback, useEffect, useMemo } from "react";
5
4
  import WorkbookContext from "../../context";
@@ -123,8 +123,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
123
123
  return to.concat(ar || Array.prototype.slice.call(from));
124
124
  };
125
125
  import React, { useContext, useCallback, useRef, useEffect, useState } from "react";
126
- import { toolbarItemClickHandler, handleTextBackground, handleTextColor, handleTextSize, normalizedCellAttr, getFlowdata, newComment, editComment, deleteComment, showHideComment, showHideAllComments, autoSelectionFormula, handleSum, locale, handleMerge, handleBorder, toolbarItemSelectedFunc, handleFreeze, insertImage, showImgChooser, updateFormat, handleSort, handleHorizontalAlign, handleVerticalAlign, handleScreenShot, createFilter, clearFilter, applyLocation, insertDuneChart } from "@fileverse-dev/fortune-core";
127
- import { api } from "@fileverse-dev/fortune-core";
126
+ import { toolbarItemClickHandler, handleTextBackground, handleTextColor, handleTextSize, normalizedCellAttr, getFlowdata, newComment, editComment, deleteComment, showHideComment, showHideAllComments, autoSelectionFormula, handleSum, locale, handleMerge, handleBorder, toolbarItemSelectedFunc, handleFreeze, insertImage, showImgChooser, updateFormat, handleSort, handleHorizontalAlign, handleVerticalAlign, handleScreenShot, createFilter, clearFilter, applyLocation, insertDuneChart, api } from "@fileverse-dev/fortune-core";
128
127
  import _ from "lodash";
129
128
  import { IconButton, LucideIcon, Tooltip, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from "@fileverse/ui";
130
129
  import DataVerificationPortal from "./dataVerificationPortal";
@@ -27,10 +27,13 @@ var RangeDialog = function RangeDialog() {
27
27
  rangeTxt2 = _c[0],
28
28
  setRangeTxt2 = _c[1];
29
29
  var close = (0, _react.useCallback)(function () {
30
+ var _a;
30
31
  setContext(function (ctx) {
31
32
  ctx.rangeDialog.show = false;
32
33
  ctx.rangeDialog.singleSelect = false;
33
34
  });
35
+ console.log("rangeDialogType");
36
+ (_a = document.getElementById("data-verification-button")) === null || _a === void 0 ? void 0 : _a.click();
34
37
  if (!context.rangeDialog) return;
35
38
  var rangeDialogType = context.rangeDialog.type;
36
39
  if (rangeDialogType.indexOf("between") >= 0) {
@@ -45,6 +48,7 @@ var RangeDialog = function RangeDialog() {
45
48
  type: rulesType
46
49
  }), undefined, (0, _fortuneCore.locale)(context).conditionformat["conditionformat_".concat(rulesType)]);
47
50
  }
51
+ console.log("rangeDialogType", rangeDialogType);
48
52
  }, [setContext, showDialog, context]);
49
53
  (0, _react.useEffect)(function () {
50
54
  setRangeTxt2((0, _getDisplayedRangeTxt.getDisplayedRangeTxt)(context));
@@ -99,6 +103,7 @@ var RangeDialog = function RangeDialog() {
99
103
  minWidth: "80px"
100
104
  },
101
105
  onClick: function onClick() {
106
+ console.log("rangeTxt2", rangeTxt2);
102
107
  setContext(function (ctx) {
103
108
  ctx.rangeDialog.rangeTxt = rangeTxt2;
104
109
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "es/index.js",
@@ -16,7 +16,7 @@
16
16
  "tsc": "tsc"
17
17
  },
18
18
  "dependencies": {
19
- "@fileverse-dev/fortune-core": "1.2.0",
19
+ "@fileverse-dev/fortune-core": "1.2.1",
20
20
  "@fileverse/ui": "^4.1.7-patch-21",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",