@fileverse-dev/fortune-react 1.2.64-patch-6 → 1.2.64-patch-8
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/es/components/ConditionFormat/ConditionRules.d.ts +1 -0
- package/es/components/ConditionFormat/ConditionRules.js +253 -126
- package/es/components/ConditionFormat/formating.css +103 -0
- package/es/components/ConditionFormat/index.css +62 -5
- package/es/components/ConditionFormat/index.js +2 -4
- package/es/components/Toolbar/index.d.ts +1 -1
- package/es/components/Workbook/index.js +12 -1
- package/lib/components/ConditionFormat/ConditionRules.d.ts +1 -0
- package/lib/components/ConditionFormat/ConditionRules.js +251 -125
- package/lib/components/ConditionFormat/formating.css +103 -0
- package/lib/components/ConditionFormat/index.css +62 -5
- package/lib/components/ConditionFormat/index.js +1 -3
- package/lib/components/Toolbar/index.d.ts +1 -1
- package/lib/components/Workbook/index.js +12 -1
- package/package.json +2 -2
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.condition-rules-set-title {
|
|
118
|
-
margin:
|
|
118
|
+
margin: 0px 0px 16px 0px;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.condition-rules-setbox {
|
|
@@ -149,13 +149,23 @@
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.condition-rules-select-color {
|
|
152
|
-
background:
|
|
153
|
-
width:
|
|
154
|
-
height:
|
|
155
|
-
border-radius:
|
|
152
|
+
background: transparent;
|
|
153
|
+
width: 16px;
|
|
154
|
+
height: 4px;
|
|
155
|
+
border-radius: 0px;
|
|
156
|
+
border: none;
|
|
156
157
|
padding: 0;
|
|
157
158
|
margin: 0;
|
|
158
159
|
cursor: pointer;
|
|
160
|
+
outline: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
input[type="color"]::-webkit-color-swatch-wrapper {
|
|
164
|
+
padding: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
input[type="color"]::-webkit-color-swatch {
|
|
168
|
+
border: 1px solid #d4d4d4;
|
|
159
169
|
}
|
|
160
170
|
|
|
161
171
|
.condition-rules-between-box {
|
|
@@ -210,3 +220,50 @@ input[type="number"].condition-rules-project-input::-webkit-inner-spin-button {
|
|
|
210
220
|
input[type="number"].condition-rules-project-input {
|
|
211
221
|
-moz-appearance: textfield;
|
|
212
222
|
}
|
|
223
|
+
|
|
224
|
+
.condition-list-parent {
|
|
225
|
+
padding: 12px 8px;
|
|
226
|
+
gap: 12px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.condition-list-parent:hover {
|
|
230
|
+
background-color: hsl(var(--color-bg-default-hover));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.condition-list-pill {
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
justify-content: center;
|
|
237
|
+
width: 44px;
|
|
238
|
+
height: 56px;
|
|
239
|
+
padding: 4px 16px;
|
|
240
|
+
gap: 10px;
|
|
241
|
+
border-radius: 4px;
|
|
242
|
+
border: 1px solid #E8EBEC;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.condition-list-text {
|
|
246
|
+
font-family: "Helvetica Neue";
|
|
247
|
+
font-size: 14px;
|
|
248
|
+
font-style: normal;
|
|
249
|
+
font-weight: 500;
|
|
250
|
+
line-height: 20px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.condition-list-type {
|
|
254
|
+
color: hsl(var(--color-text-default, #363B3F));
|
|
255
|
+
font-family: "Helvetica Neue";
|
|
256
|
+
font-size: 14px;
|
|
257
|
+
font-style: normal;
|
|
258
|
+
font-weight: 500;
|
|
259
|
+
line-height: 20px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.condition-list-range {
|
|
263
|
+
color: hsl(var(--color-text-secondary, #77818A));
|
|
264
|
+
font-family: "Helvetica Neue";
|
|
265
|
+
font-size: 12px;
|
|
266
|
+
font-style: normal;
|
|
267
|
+
font-weight: 400;
|
|
268
|
+
line-height: 16px;
|
|
269
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useEffect, useRef } from "react";
|
|
2
2
|
import "./index.css";
|
|
3
|
-
import { locale
|
|
3
|
+
import { locale } from "@fileverse-dev/fortune-core";
|
|
4
4
|
import _ from "lodash";
|
|
5
5
|
import WorkbookContext from "../../context";
|
|
6
6
|
import Select, { Option } from "../Toolbar/Select";
|
|
@@ -227,9 +227,7 @@ var ConditionalFormat = function ConditionalFormat(_a) {
|
|
|
227
227
|
padding: "6px 10px"
|
|
228
228
|
},
|
|
229
229
|
onClick: function onClick() {
|
|
230
|
-
setContext(function (ctx) {
|
|
231
|
-
updateItem(ctx, "delSheet");
|
|
232
|
-
});
|
|
230
|
+
setContext(function (ctx) {});
|
|
233
231
|
},
|
|
234
232
|
tabIndex: 0
|
|
235
233
|
}, conditionformat[v]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Cell } from "@fileverse-dev/fortune-core";
|
|
3
3
|
import "./index.css";
|
|
4
|
-
export declare const getLucideIcon: (title: string) => "Ethereum" | "DollarSign" | "" | "ChevronDown" | "
|
|
4
|
+
export declare const getLucideIcon: (title: string) => "Ethereum" | "DollarSign" | "" | "ChevronDown" | "Bold" | "Italic" | "Underline" | "Strikethrough" | "PaintBucket" | "Undo" | "Redo" | "PaintRoller" | "AlignLeft" | "AlignCenter" | "AlignRight" | "ArrowUpFromLine" | "AlignVerticalMiddle" | "ArrowDownToLine" | "TextOverflow" | "WrapText" | "TextClip" | "Baseline" | "Border" | "MergeHorizontal" | "Percent" | "DecimalsArrowLeft" | "DecimalsArrowRight" | "PaintbrushVertical" | "Filter" | "Link" | "MessageSquarePlus" | "Image" | "Sigma" | "ShieldCheck" | "Search" | "DuneChart" | "Ellipsis";
|
|
5
5
|
export declare const CurrencySelector: ({ cell, defaultTextFormat, toolTipText, }: {
|
|
6
6
|
cell: Cell | null | undefined;
|
|
7
7
|
defaultTextFormat: string;
|
|
@@ -683,7 +683,18 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
683
683
|
}
|
|
684
684
|
return /*#__PURE__*/React.createElement(WorkbookContext.Provider, {
|
|
685
685
|
value: providerValue
|
|
686
|
-
}, /*#__PURE__*/React.createElement(
|
|
686
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
687
|
+
id: "placeholder-conditional-format",
|
|
688
|
+
style: {
|
|
689
|
+
width: "500px",
|
|
690
|
+
height: "500px",
|
|
691
|
+
position: "fixed",
|
|
692
|
+
zIndex: "1000",
|
|
693
|
+
backgroundColor: "white",
|
|
694
|
+
padding: "12px",
|
|
695
|
+
top: "100px"
|
|
696
|
+
}
|
|
697
|
+
}), /*#__PURE__*/React.createElement(ModalProvider, null, /*#__PURE__*/React.createElement("div", {
|
|
687
698
|
className: "fortune-container",
|
|
688
699
|
ref: workbookContainer,
|
|
689
700
|
onKeyDown: onKeyDown
|