@univerjs/sheets-conditional-formatting-ui 0.5.4 → 0.5.5-experimental.20250123-34738ff

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.
Files changed (39) hide show
  1. package/lib/cjs/index.js +174 -183
  2. package/lib/cjs/locale/en-US.js +1 -1
  3. package/lib/cjs/locale/fa-IR.js +1 -1
  4. package/lib/cjs/locale/fr-FR.js +1 -1
  5. package/lib/cjs/locale/ru-RU.js +1 -1
  6. package/lib/cjs/locale/vi-VN.js +1 -1
  7. package/lib/cjs/locale/zh-CN.js +1 -1
  8. package/lib/cjs/locale/zh-TW.js +1 -1
  9. package/lib/es/index.js +5509 -5314
  10. package/lib/es/locale/en-US.js +2 -2
  11. package/lib/es/locale/fa-IR.js +2 -2
  12. package/lib/es/locale/fr-FR.js +2 -2
  13. package/lib/es/locale/ru-RU.js +2 -2
  14. package/lib/es/locale/vi-VN.js +2 -2
  15. package/lib/es/locale/zh-CN.js +2 -2
  16. package/lib/es/locale/zh-TW.js +2 -2
  17. package/lib/types/components/color-picker/index.d.ts +16 -2
  18. package/lib/types/components/conditional-style-editor/index.d.ts +1 -2
  19. package/lib/types/components/panel/index.d.ts +1 -2
  20. package/lib/types/components/panel/rule-edit/{colorScale.d.ts → ColorScale.d.ts} +1 -2
  21. package/lib/types/components/panel/rule-edit/{dataBar.d.ts → DataBar.d.ts} +1 -2
  22. package/lib/types/components/panel/rule-edit/{formula.d.ts → Formula.d.ts} +1 -2
  23. package/lib/types/components/panel/rule-edit/{highlightCell.d.ts → HighlightCell.d.ts} +1 -2
  24. package/lib/types/components/panel/rule-edit/{iconSet.d.ts → IconSet.d.ts} +1 -2
  25. package/lib/types/components/panel/rule-edit/{rank.d.ts → Rank.d.ts} +1 -2
  26. package/lib/types/components/panel/rule-edit/index.d.ts +1 -2
  27. package/lib/types/components/panel/rule-list/index.d.ts +1 -2
  28. package/lib/types/components/preview/index.d.ts +1 -2
  29. package/lib/types/components/wrapper-error/WrapperError.d.ts +1 -1
  30. package/lib/umd/index.js +174 -183
  31. package/lib/umd/locale/en-US.js +1 -1
  32. package/lib/umd/locale/fa-IR.js +1 -1
  33. package/lib/umd/locale/fr-FR.js +1 -1
  34. package/lib/umd/locale/ru-RU.js +1 -1
  35. package/lib/umd/locale/vi-VN.js +1 -1
  36. package/lib/umd/locale/zh-CN.js +1 -1
  37. package/lib/umd/locale/zh-TW.js +1 -1
  38. package/package.json +15 -15
  39. package/LICENSE +0 -176
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheet: {
3
3
  cf: {
4
4
  title: "Conditional Formatting",
@@ -158,5 +158,5 @@ const e = {
158
158
  }
159
159
  };
160
160
  export {
161
- e as default
161
+ locale as default
162
162
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheet: {
3
3
  cf: {
4
4
  title: "قالب‌بندی شرطی",
@@ -158,5 +158,5 @@ const e = {
158
158
  }
159
159
  };
160
160
  export {
161
- e as default
161
+ locale as default
162
162
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheet: {
3
3
  cf: {
4
4
  title: "Mise en forme conditionnelle",
@@ -158,5 +158,5 @@ const e = {
158
158
  }
159
159
  };
160
160
  export {
161
- e as default
161
+ locale as default
162
162
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheet: {
3
3
  cf: {
4
4
  title: "Условное форматирование",
@@ -158,5 +158,5 @@ const e = {
158
158
  }
159
159
  };
160
160
  export {
161
- e as default
161
+ locale as default
162
162
  };
@@ -1,4 +1,4 @@
1
- const n = {
1
+ const locale = {
2
2
  sheet: {
3
3
  cf: {
4
4
  title: "Định dạng có điều kiện",
@@ -158,5 +158,5 @@ const n = {
158
158
  }
159
159
  };
160
160
  export {
161
- n as default
161
+ locale as default
162
162
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheet: {
3
3
  cf: {
4
4
  title: "条件格式",
@@ -158,5 +158,5 @@ const e = {
158
158
  }
159
159
  };
160
160
  export {
161
- e as default
161
+ locale as default
162
162
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheet: {
3
3
  cf: {
4
4
  title: "條件格式",
@@ -158,5 +158,5 @@ const e = {
158
158
  }
159
159
  };
160
160
  export {
161
- e as default
161
+ locale as default
162
162
  };
@@ -1,4 +1,18 @@
1
- import { default as React } from 'react';
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  interface IColorPickerProps {
3
17
  color: string;
4
18
  onChange: (color: string) => void;
@@ -7,5 +21,5 @@ interface IColorPickerProps {
7
21
  className?: string;
8
22
  isNeedDropdownIcon?: boolean;
9
23
  }
10
- export declare const ColorPicker: (props: IColorPickerProps) => React.JSX.Element | undefined;
24
+ export declare const ColorPicker: (props: IColorPickerProps) => import("react/jsx-runtime").JSX.Element | undefined;
11
25
  export {};
@@ -1,9 +1,8 @@
1
1
  import { IHighlightCell } from '@univerjs/sheets-conditional-formatting';
2
- import { default as React } from 'react';
3
2
  interface IConditionalStyleEditorProps {
4
3
  className?: string;
5
4
  style?: IHighlightCell['style'];
6
5
  onChange: (style: IHighlightCell['style']) => void;
7
6
  }
8
- export declare const ConditionalStyleEditor: (props: IConditionalStyleEditorProps) => React.JSX.Element;
7
+ export declare const ConditionalStyleEditor: (props: IConditionalStyleEditorProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export {};
@@ -1,7 +1,6 @@
1
- import { default as React } from 'react';
2
1
  import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
3
2
  interface IConditionFormattingPanelProps {
4
3
  rule?: IConditionFormattingRule;
5
4
  }
6
- export declare const ConditionFormattingPanel: (props: IConditionFormattingPanelProps) => React.JSX.Element;
5
+ export declare const ConditionFormattingPanel: (props: IConditionFormattingPanelProps) => import("react/jsx-runtime").JSX.Element;
7
6
  export {};
@@ -1,3 +1,2 @@
1
1
  import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
- export declare const ColorScaleStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
2
+ export declare const ColorScaleStyleEditor: (props: IStyleEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
1
  import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
- export declare const DataBarStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
2
+ export declare const DataBarStyleEditor: (props: IStyleEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
1
  import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
- export declare const FormulaStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
2
+ export declare const FormulaStyleEditor: (props: IStyleEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import { INumberHighlightCell, ITextHighlightCell, ITimePeriodHighlightCell } from '@univerjs/sheets-conditional-formatting';
2
2
  import { IStyleEditorProps } from './type';
3
- import { default as React } from 'react';
4
- export declare const HighlightCellStyleEditor: (props: IStyleEditorProps<any, ITextHighlightCell | INumberHighlightCell | ITimePeriodHighlightCell>) => React.JSX.Element;
3
+ export declare const HighlightCellStyleEditor: (props: IStyleEditorProps<any, ITextHighlightCell | INumberHighlightCell | ITimePeriodHighlightCell>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import { IIconSet } from '@univerjs/sheets-conditional-formatting';
2
2
  import { IStyleEditorProps } from './type';
3
- import { default as React } from 'react';
4
- export declare const IconSet: (props: IStyleEditorProps<unknown, IIconSet>) => React.JSX.Element;
3
+ export declare const IconSet: (props: IStyleEditorProps<unknown, IIconSet>) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
1
  import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
- export declare const RankStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
2
+ export declare const RankStyleEditor: (props: IStyleEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
1
  import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
2
- import { default as React } from 'react';
3
2
  interface IRuleEditProps {
4
3
  rule?: IConditionFormattingRule;
5
4
  onCancel: () => void;
6
5
  }
7
- export declare const RuleEdit: (props: IRuleEditProps) => React.JSX.Element;
6
+ export declare const RuleEdit: (props: IRuleEditProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,10 +1,9 @@
1
1
  import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
2
- import { default as React } from 'react';
3
2
  import 'react-grid-layout/css/styles.css';
4
3
  import 'react-resizable/css/styles.css';
5
4
  interface IRuleListProps {
6
5
  onClick: (rule: IConditionFormattingRule) => void;
7
6
  onCreate: () => void;
8
7
  }
9
- export declare const RuleList: (props: IRuleListProps) => React.JSX.Element;
8
+ export declare const RuleList: (props: IRuleListProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { IConditionalFormattingRuleConfig } from '@univerjs/sheets-conditional-formatting';
3
2
  export declare const Preview: (props: {
4
3
  rule?: IConditionalFormattingRuleConfig;
5
- }) => React.JSX.Element | null | undefined;
4
+ }) => import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -2,4 +2,4 @@ import { default as React } from 'react';
2
2
  export declare const WrapperError: (props: {
3
3
  errorText: string;
4
4
  children: React.ReactElement;
5
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;