@ccs-ui/rc-pro 2.2.5 → 2.2.6-beta-2

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 (135) hide show
  1. package/es/{cascader → ccs-api-cascader}/index.js +1 -1
  2. package/es/{config.js → ccs-app-config.js} +2 -2
  3. package/es/{button → ccs-button}/dropdown.js +1 -1
  4. package/es/{button → ccs-button}/group.js +1 -1
  5. package/es/{button → ccs-button}/index.js +1 -1
  6. package/es/{dialog → ccs-dialog}/button.d.ts +1 -1
  7. package/es/{dialog → ccs-dialog}/button.js +2 -2
  8. package/es/{dialog → ccs-dialog}/hook.js +1 -1
  9. package/es/{dialog → ccs-dialog}/index.d.ts +13 -1
  10. package/es/ccs-dialog/index.js +20 -0
  11. package/es/{editor → ccs-editor}/javascript.js +1 -1
  12. package/es/{editor → ccs-editor}/json.js +1 -1
  13. package/es/{editor → ccs-editor}/sql.js +1 -1
  14. package/es/{full-screen → ccs-full-screen}/index.js +1 -1
  15. package/es/{layout-keep-alive → ccs-keep-alive}/page.js +1 -1
  16. package/es/{pro-table → ccs-pro-table}/operation.d.ts +1 -1
  17. package/es/{pro-table → ccs-pro-table}/table.js +5 -6
  18. package/es/{pro-table → ccs-pro-table}/tree.d.ts +1 -1
  19. package/es/{pro-table → ccs-pro-table}/tree.js +2 -2
  20. package/es/{layout-single-page → ccs-single-page}/index.js +1 -1
  21. package/es/{layout-single-page → ccs-single-page}/page.js +1 -1
  22. package/es/{table → ccs-table}/index.d.ts +1 -1
  23. package/es/{upload → ccs-upload}/upload-image.js +1 -1
  24. package/es/ccs.d.ts +1 -1
  25. package/es/context/index.d.ts +2 -2
  26. package/es/index.d.ts +33 -33
  27. package/es/index.js +33 -33
  28. package/es/{hooks/use-app.d.ts → use-app-config.d.ts} +1 -1
  29. package/es/{hooks/use-app.js → use-app-config.js} +1 -1
  30. package/es/{hooks/use-page.d.ts → use-ccs-page.d.ts} +1 -1
  31. package/es/{hooks/use-page.js → use-ccs-page.js} +1 -1
  32. package/es/use-ccs-tabs.d.ts +2 -0
  33. package/es/{hooks/use-tabs.js → use-ccs-tabs.js} +1 -1
  34. package/es/{hooks/use-window.d.ts → use-ccs-window.d.ts} +1 -1
  35. package/es/{hooks/use-window.js → use-ccs-window.js} +1 -1
  36. package/package.json +1 -1
  37. package/es/dialog/index.js +0 -12
  38. package/es/hooks/use-size-change +0 -0
  39. package/es/hooks/use-tabs.d.ts +0 -2
  40. /package/es/{aj-captcha → ccs-aj-captcha}/index.d.ts +0 -0
  41. /package/es/{aj-captcha → ccs-aj-captcha}/index.js +0 -0
  42. /package/es/{aj-captcha → ccs-aj-captcha}/index.less +0 -0
  43. /package/es/{cascader → ccs-api-cascader}/index.d.ts +0 -0
  44. /package/es/{select → ccs-api-select}/index.d.ts +0 -0
  45. /package/es/{select → ccs-api-select}/index.js +0 -0
  46. /package/es/{config.d.ts → ccs-app-config.d.ts} +0 -0
  47. /package/es/{auth → ccs-auth}/index.d.ts +0 -0
  48. /package/es/{auth → ccs-auth}/index.js +0 -0
  49. /package/es/{button → ccs-button}/dropdown.d.ts +0 -0
  50. /package/es/{button → ccs-button}/group.d.ts +0 -0
  51. /package/es/{button → ccs-button}/index.d.ts +0 -0
  52. /package/es/{button → ccs-button}/index.less +0 -0
  53. /package/es/{color-picker → ccs-color-picker}/index.d.ts +0 -0
  54. /package/es/{color-picker → ccs-color-picker}/index.js +0 -0
  55. /package/es/{color-picker → ccs-color-picker}/index.less +0 -0
  56. /package/es/{date-picker → ccs-date-picker}/index.d.ts +0 -0
  57. /package/es/{date-picker → ccs-date-picker}/index.js +0 -0
  58. /package/es/{dialog → ccs-dialog}/HookDrawer.d.ts +0 -0
  59. /package/es/{dialog → ccs-dialog}/HookDrawer.js +0 -0
  60. /package/es/{dialog → ccs-dialog}/HookModal.d.ts +0 -0
  61. /package/es/{dialog → ccs-dialog}/HookModal.js +0 -0
  62. /package/es/{dialog → ccs-dialog}/context.d.ts +0 -0
  63. /package/es/{dialog → ccs-dialog}/context.js +0 -0
  64. /package/es/{dialog → ccs-dialog}/drawer-footer.d.ts +0 -0
  65. /package/es/{dialog → ccs-dialog}/drawer-footer.js +0 -0
  66. /package/es/{dialog → ccs-dialog}/form.d.ts +0 -0
  67. /package/es/{dialog → ccs-dialog}/form.js +0 -0
  68. /package/es/{dialog → ccs-dialog}/hook.d.ts +0 -0
  69. /package/es/{dialog → ccs-dialog}/index.less +0 -0
  70. /package/es/{dialog → ccs-dialog}/usePatchElement.d.ts +0 -0
  71. /package/es/{dialog → ccs-dialog}/usePatchElement.js +0 -0
  72. /package/es/{editor → ccs-editor}/index.d.ts +0 -0
  73. /package/es/{editor → ccs-editor}/index.js +0 -0
  74. /package/es/{editor → ccs-editor}/index.less +0 -0
  75. /package/es/{editor → ccs-editor}/javascript.d.ts +0 -0
  76. /package/es/{editor → ccs-editor}/json.d.ts +0 -0
  77. /package/es/{editor → ccs-editor}/sql.d.ts +0 -0
  78. /package/es/{full-screen → ccs-full-screen}/index.d.ts +0 -0
  79. /package/es/{interval-button → ccs-interval-button}/index.d.ts +0 -0
  80. /package/es/{interval-button → ccs-interval-button}/index.js +0 -0
  81. /package/es/{layout-keep-alive → ccs-keep-alive}/index.d.ts +0 -0
  82. /package/es/{layout-keep-alive → ccs-keep-alive}/index.js +0 -0
  83. /package/es/{layout-keep-alive → ccs-keep-alive}/index.less +0 -0
  84. /package/es/{layout-keep-alive → ccs-keep-alive}/page.d.ts +0 -0
  85. /package/es/{ellipsis → ccs-lines-ellipsis}/index.d.ts +0 -0
  86. /package/es/{ellipsis → ccs-lines-ellipsis}/index.js +0 -0
  87. /package/es/{loading → ccs-loading}/index.d.ts +0 -0
  88. /package/es/{loading → ccs-loading}/index.js +0 -0
  89. /package/es/{pro-grid → ccs-pro-grid}/index.d.ts +0 -0
  90. /package/es/{pro-grid → ccs-pro-grid}/index.js +0 -0
  91. /package/es/{pro-grid → ccs-pro-grid}/index.less +0 -0
  92. /package/es/{pro-table → ccs-pro-table}/_utils.d.ts +0 -0
  93. /package/es/{pro-table → ccs-pro-table}/_utils.js +0 -0
  94. /package/es/{pro-table → ccs-pro-table}/form-item.d.ts +0 -0
  95. /package/es/{pro-table → ccs-pro-table}/form-item.js +0 -0
  96. /package/es/{pro-table → ccs-pro-table}/head.d.ts +0 -0
  97. /package/es/{pro-table → ccs-pro-table}/head.js +0 -0
  98. /package/es/{pro-table → ccs-pro-table}/index.d.ts +0 -0
  99. /package/es/{pro-table → ccs-pro-table}/index.js +0 -0
  100. /package/es/{pro-table → ccs-pro-table}/index.less +0 -0
  101. /package/es/{pro-table → ccs-pro-table}/operation.js +0 -0
  102. /package/es/{pro-table → ccs-pro-table}/size.d.ts +0 -0
  103. /package/es/{pro-table → ccs-pro-table}/size.js +0 -0
  104. /package/es/{pro-table → ccs-pro-table}/table.d.ts +0 -0
  105. /package/es/{pro-tabs → ccs-pro-tabs}/index.d.ts +0 -0
  106. /package/es/{pro-tabs → ccs-pro-tabs}/index.js +0 -0
  107. /package/es/{resize-observer.d.ts → ccs-resize-observer.d.ts} +0 -0
  108. /package/es/{resize-observer.js → ccs-resize-observer.js} +0 -0
  109. /package/es/{result → ccs-result}/icon.d.ts +0 -0
  110. /package/es/{result → ccs-result}/icon.js +0 -0
  111. /package/es/{result → ccs-result}/index.d.ts +0 -0
  112. /package/es/{result → ccs-result}/index.js +0 -0
  113. /package/es/{layout-single-page → ccs-single-page}/index.d.ts +0 -0
  114. /package/es/{layout-single-page → ccs-single-page}/index.less +0 -0
  115. /package/es/{layout-single-page → ccs-single-page}/page.d.ts +0 -0
  116. /package/es/{status-tag → ccs-status-tag}/index.d.ts +0 -0
  117. /package/es/{status-tag → ccs-status-tag}/index.js +0 -0
  118. /package/es/{table → ccs-table}/index.js +0 -0
  119. /package/es/{table → ccs-table}/index.less +0 -0
  120. /package/es/{time-picker → ccs-time-picker}/index.d.ts +0 -0
  121. /package/es/{time-picker → ccs-time-picker}/index.js +0 -0
  122. /package/es/{trigger → ccs-trigger}/index.d.ts +0 -0
  123. /package/es/{trigger → ccs-trigger}/index.js +0 -0
  124. /package/es/{trigger → ccs-trigger}/index.less +0 -0
  125. /package/es/{upload → ccs-upload}/index.d.ts +0 -0
  126. /package/es/{upload → ccs-upload}/index.js +0 -0
  127. /package/es/{upload → ccs-upload}/upload-image.d.ts +0 -0
  128. /package/es/{virtual-list → ccs-virtual-list}/index.d.ts +0 -0
  129. /package/es/{virtual-list → ccs-virtual-list}/index.js +0 -0
  130. /package/es/{water-mark → ccs-water-mark}/index.d.ts +0 -0
  131. /package/es/{water-mark → ccs-water-mark}/index.js +0 -0
  132. /package/es/{water-mark → ccs-water-mark}/relative.d.ts +0 -0
  133. /package/es/{water-mark → ccs-water-mark}/relative.js +0 -0
  134. /package/es/{hooks/use-once-event.d.ts → use-once-event.d.ts} +0 -0
  135. /package/es/{hooks/use-once-event.js → use-once-event.js} +0 -0
@@ -19,7 +19,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
19
19
  import { useRequest } from 'ahooks';
20
20
  import { Cascader } from 'antd';
21
21
  import { useEffect } from 'react';
22
- import { getDataFromFields } from "../select";
22
+ import { getDataFromFields } from "../ccs-api-select";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  function onIsArray(data) {
25
25
  if (Array.isArray(data)) return data;
@@ -14,10 +14,10 @@ import { darkTheme, defaultTheme } from '@ant-design/compatible';
14
14
  import { theme as antTheme, App, ConfigProvider, message, Modal, notification } from 'antd';
15
15
  import zhCN from 'antd/locale/zh_CN';
16
16
  import React, { useState } from 'react';
17
+ import { DialogElementsHolder } from "./ccs-dialog/hook";
18
+ import WaterMarkRelative from "./ccs-water-mark/relative";
17
19
  import { AppConfigContext } from "./context";
18
- import { DialogElementsHolder } from "./dialog/hook";
19
20
  import ThemeDialog from "./theme-dialog";
20
- import WaterMarkRelative from "./water-mark/relative";
21
21
  import { Fragment as _Fragment } from "react/jsx-runtime";
22
22
  import { jsxs as _jsxs } from "react/jsx-runtime";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,7 +11,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
11
11
  import { Dropdown } from 'antd';
12
12
  import React, { useContext, useMemo } from 'react';
13
13
  import { useCcsPage } from '..';
14
- import { TableSelectionContext } from "../pro-table/table";
14
+ import { TableSelectionContext } from "../ccs-pro-table/table";
15
15
 
16
16
  /**
17
17
  * 带权限的Dropdown组件
@@ -14,7 +14,7 @@ import { Button, Divider, Dropdown, Space } from 'antd';
14
14
  import { useContext, useRef } from 'react';
15
15
  import { ModalConfirm } from '.';
16
16
  import { useCcsPage } from '..';
17
- import { TableSelectionContext } from "../pro-table/table";
17
+ import { TableSelectionContext } from "../ccs-pro-table/table";
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
19
19
  import { Fragment as _Fragment } from "react/jsx-runtime";
20
20
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -17,7 +17,7 @@ import { ExclamationCircleOutlined } from '@ant-design/icons';
17
17
  import { Button, Input, Modal } from 'antd';
18
18
  import { useContext, useEffect, useRef } from 'react';
19
19
  import { useCcsPage } from '..';
20
- import { TableSelectionContext } from "../pro-table/table";
20
+ import { TableSelectionContext } from "../ccs-pro-table/table";
21
21
  import CssButtonDropdown from "./dropdown";
22
22
  import CssButtonGroup from "./group";
23
23
  import "./index.less";
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
16
16
  export type DialogButtonRef = {
17
17
  onSetButtons: (e: React.ReactElement) => void;
18
18
  };
19
- export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onClose" | "onOk" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
19
+ export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "onClose" | "onOk" | "auth" | "extraBtn" | "request" | "requestFieldNames" | "preventRequestHandle"> & {
20
20
  formRef: React.RefObject<DialogFormRef<TParams>>;
21
21
  formInitialValues: FormProps['initialValues'];
22
22
  buttonRef: RefObject<DialogButtonRef>;
@@ -17,8 +17,8 @@ import { CcsButton } from "./..";
17
17
  import { Button, Form } from 'antd';
18
18
  import React, { useEffect, useImperativeHandle, useState } from 'react';
19
19
  import CcsDialog from '.';
20
- import { useDialogFields } from "../hooks/use-app";
21
- import { getDataFromFields } from "../select";
20
+ import { getDataFromFields } from "../ccs-api-select";
21
+ import { useDialogFields } from "../use-app-config";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  import { Fragment as _Fragment } from "react/jsx-runtime";
24
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -14,7 +14,7 @@ import _debounce from 'lodash.debounce';
14
14
  import React from 'react';
15
15
  import { createRoot } from 'react-dom/client';
16
16
  import { useCcsPage } from '..';
17
- import useAppConfig from "../hooks/use-app";
17
+ import useAppConfig from "../use-app-config";
18
18
  import HookDrawer from "./HookDrawer";
19
19
  import HookModal from "./HookModal";
20
20
  import usePatchElement from "./usePatchElement";
@@ -13,6 +13,18 @@ type DialogInterface = {
13
13
  Buttons: typeof CcsDialogFooter;
14
14
  /** drawer footer */
15
15
  DrawerFooter: typeof CcsDrawerFooter;
16
+ /** ant message */
17
+ message: typeof ThemeDialog.message;
18
+ /** ant notice */
19
+ notice: typeof ThemeDialog.notice;
20
+ /** ant modal */
21
+ modal: typeof ThemeDialog.modal;
22
+ /** ant modal */
23
+ easyConfirm: typeof ThemeDialog.easyConfirm;
24
+ /** ant modal */
25
+ easyMessage: typeof ThemeDialog.easyMessage;
26
+ /** ant modal */
27
+ confirm: typeof ThemeDialog.confirm;
16
28
  };
17
- declare const CcsDialog: typeof ThemeDialog & DialogInterface;
29
+ declare const CcsDialog: DialogInterface;
18
30
  export default CcsDialog;
@@ -0,0 +1,20 @@
1
+ import ThemeDialog from "../theme-dialog";
2
+ import CcsDialogFooter from "./button";
3
+ import { useDialogContext } from "./context";
4
+ import CcsDrawerFooter from "./drawer-footer";
5
+ import useCcsDialog from "./hook";
6
+ import "./index.less";
7
+ import { Fragment as _Fragment } from "react/jsx-runtime";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ var CcsDialog = /*#__PURE__*/_jsx(_Fragment, {});
10
+ CcsDialog.message = ThemeDialog.message;
11
+ CcsDialog.notice = ThemeDialog.notice;
12
+ CcsDialog.modal = ThemeDialog.modal;
13
+ CcsDialog.easyConfirm = ThemeDialog.easyConfirm;
14
+ CcsDialog.easyMessage = ThemeDialog.easyMessage;
15
+ CcsDialog.confirm = ThemeDialog.confirm;
16
+ CcsDialog.Buttons = CcsDialogFooter;
17
+ CcsDialog.useDialog = useCcsDialog;
18
+ CcsDialog.useInstance = useDialogContext;
19
+ CcsDialog.DrawerFooter = CcsDrawerFooter;
20
+ export default CcsDialog;
@@ -10,7 +10,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  import { javascript } from '@codemirror/lang-javascript';
11
11
  import CodeMirror from '@uiw/react-codemirror';
12
12
  import classNames from 'classnames';
13
- import useAppConfig from "../hooks/use-app";
13
+ import useAppConfig from "../use-app-config";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  export default function JavaScriptEditor(_ref) {
16
16
  var _ref$placeholder = _ref.placeholder,
@@ -12,7 +12,7 @@ import { syntaxTree } from '@codemirror/language';
12
12
  import { linter } from '@codemirror/lint';
13
13
  import CodeMirror from '@uiw/react-codemirror';
14
14
  import classNames from 'classnames';
15
- import useAppConfig from "../hooks/use-app";
15
+ import useAppConfig from "../use-app-config";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  var regexpLinter = linter(function (view) {
18
18
  var diagnostics = [];
@@ -10,7 +10,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  import { sql } from '@codemirror/lang-sql';
11
11
  import CodeMirror from '@uiw/react-codemirror';
12
12
  import classNames from 'classnames';
13
- import useAppConfig from "../hooks/use-app";
13
+ import useAppConfig from "../use-app-config";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  export default function SqlEditor(_ref) {
16
16
  var _ref$placeholder = _ref.placeholder,
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons';
8
8
  import { Button, Tooltip } from 'antd';
9
9
  import { useState } from 'react';
10
- import { classPrefix } from "../pro-table/table";
10
+ import { classPrefix } from "../ccs-pro-table/table";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  export default function FullScreen(_ref) {
13
13
  var onFullScreen = _ref.onFullScreen;
@@ -2,8 +2,8 @@ import { Breadcrumb } from 'antd';
2
2
  import classNames from 'classnames';
3
3
  import { memo, useRef } from 'react';
4
4
  import Scrollbars from 'react-custom-scrollbars';
5
+ import { DialogElementsHolder } from "../ccs-dialog/hook";
5
6
  import { PageContext } from "../context";
6
- import { DialogElementsHolder } from "../dialog/hook";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  export default /*#__PURE__*/memo(function (props) {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TableProps } from 'antd';
3
- import { TableRefType } from '../table';
3
+ import { TableRefType } from '../ccs-table';
4
4
  type PropsType = {
5
5
  /** 显示列 */
6
6
  columns?: any;
@@ -18,12 +18,11 @@ import { useSize, useUpdateEffect } from 'ahooks';
18
18
  import { Empty, Form, theme as antTheme } from 'antd';
19
19
  import classNames from 'classnames';
20
20
  import React, { useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
21
- import { useAppConfig } from '..';
22
- import { useCcsPage } from "../";
23
- import { onDefaultFormat } from "../config";
24
- import { useProTableFields } from "../hooks/use-app";
25
- import { getDataFromFields } from "../select";
26
- import CcsTable from "../table";
21
+ import { useAppConfig, useCcsPage } from '..';
22
+ import { getDataFromFields } from "../ccs-api-select";
23
+ import { onDefaultFormat } from "../ccs-app-config";
24
+ import CcsTable from "../ccs-table";
25
+ import { useProTableFields } from "../use-app-config";
27
26
  import { getAllChildrenId, getDataById, onTableInModalOrDrawer, onTableInTabItem } from "./_utils";
28
27
  import HeadComponent from "./head";
29
28
  import "./index.less";
@@ -2,8 +2,8 @@ import { TableProps } from 'antd';
2
2
  import { TableSticky } from 'rc-table/lib/interface';
3
3
  import { RefObject } from 'react';
4
4
  import CCS from '..';
5
+ import { TableRefType } from '../ccs-table';
5
6
  import { CcsFieldNamesType } from '../context';
6
- import { TableRefType } from '../table';
7
7
  import { CcsProTableProps } from './table';
8
8
  export type TreeInstance<T> = {
9
9
  onRequestTree: (query: any, record: T | any) => void;
@@ -20,8 +20,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  import CcsUtils from '@ccs-ui/utils';
21
21
  import { useImperativeHandle, useState } from 'react';
22
22
  import { CcsTable } from '..';
23
- import { useProTableTreeFields } from "../hooks/use-app";
24
- import { getDataFromFields } from "../select";
23
+ import { getDataFromFields } from "../ccs-api-select";
24
+ import { useProTableTreeFields } from "../use-app-config";
25
25
  import { jsx as _jsx } from "react/jsx-runtime";
26
26
  var TableTree = function TableTree(props) {
27
27
  var data = props.data,
@@ -2,7 +2,7 @@ import classnames from 'classnames';
2
2
  import { useMemo } from 'react';
3
3
  import { useLocation } from 'react-router';
4
4
  import { useOutlet } from 'react-router-dom';
5
- import CcsResult from "../result";
5
+ import CcsResult from "../ccs-result";
6
6
  import "./index.less";
7
7
  import Page from "./page";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  import { Breadcrumb } from 'antd';
2
2
  import { memo, useRef } from 'react';
3
3
  import Scrollbars from 'react-custom-scrollbars';
4
+ import { DialogElementsHolder } from "../ccs-dialog/hook";
4
5
  import { PageContext } from "../context";
5
- import { DialogElementsHolder } from "../dialog/hook";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  export default /*#__PURE__*/memo(function (props) {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CcsProTableProps, CcsTableProps } from '../pro-table/table';
2
+ import { CcsProTableProps, CcsTableProps } from '../ccs-pro-table/table';
3
3
  import './index.less';
4
4
  type TableProps<T> = Omit<CcsTableProps<T>, 'request' | 'requestParam' | 'title'> & Pick<CcsProTableProps<T>, 'showNumber'> & {
5
5
  title?: any;
@@ -20,7 +20,7 @@ import { PlusOutlined } from '@ant-design/icons';
20
20
  import { message, Upload } from 'antd';
21
21
  import ImgCrop from 'antd-img-crop';
22
22
  import { useState } from 'react';
23
- import CcsDialog from "../dialog";
23
+ import CcsDialog from "../ccs-dialog";
24
24
  import { uploadDefaultFlies } from "./index";
25
25
  import { jsx as _jsx } from "react/jsx-runtime";
26
26
  import { jsxs as _jsxs } from "react/jsx-runtime";
package/es/ccs.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ButtonProps, PaginationProps } from 'antd';
2
2
  import { Rule } from 'antd/es/form';
3
3
  import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
4
- import { TableColumn } from './pro-table/table';
4
+ import { TableColumn } from './ccs-pro-table/table';
5
5
  type MenuType = {
6
6
  /** 菜单ID */
7
7
  menuId: string;
@@ -3,8 +3,8 @@ import { Store } from 'antd/es/form/interface';
3
3
  import React from 'react';
4
4
  import { Location } from 'react-router';
5
5
  import CCS from '..';
6
- import { ElementsHolderRef } from '../dialog/hook';
7
- import { WaterMarkProps } from '../water-mark/relative';
6
+ import { ElementsHolderRef } from '../ccs-dialog/hook';
7
+ import { WaterMarkProps } from '../ccs-water-mark/relative';
8
8
  type CcsTabsChangeProps = {
9
9
  /** 当前激活tab面板的key */
10
10
  activeKey?: string;
package/es/index.d.ts CHANGED
@@ -1,35 +1,35 @@
1
- export { default as CcsAjCaptcha } from './aj-captcha';
2
- export { default as CcsAuth } from './auth';
3
- export { default as CcsButton } from './button';
4
- export { default as CcsApiCascader } from './cascader';
5
- export { default as CcsColorPicker } from './color-picker';
6
- export { default as CcsAppConfig } from './config';
7
- export { default as CcsDatePicker } from './date-picker';
8
- export { default as CcsDialog } from './dialog';
9
- export { default as CcsEditor } from './editor';
10
- export { default as CcsLinesEllipsis } from './ellipsis';
11
- export { default as CcsFullScreenButton } from './full-screen';
12
- export { default as useAppConfig } from './hooks/use-app';
13
- export { default as useCcsOnceEvent } from './hooks/use-once-event';
14
- export { default as useCcsPage } from './hooks/use-page';
15
- export { default as useCcsTabs } from './hooks/use-tabs';
16
- export { default as useCcsWindow } from './hooks/use-window';
17
- export { default as CcsIntervalButton } from './interval-button';
18
- export { default as CcsKeepAliveTabs } from './layout-keep-alive';
19
- export { default as CcsSinglePage } from './layout-single-page';
20
- export { default as CcsLoading } from './loading';
21
- export { default as CcsProGrid } from './pro-grid';
22
- export { default as CcsProTable } from './pro-table';
23
- export { default as CcsProTabs } from './pro-tabs';
24
- export { default as CcsResizeObserver } from './resize-observer';
25
- export { default as CcsResult } from './result';
26
- export { default as CcsApiSelect } from './select';
27
- export { default as CcsStatusTag } from './status-tag';
28
- export { default as CcsTable } from './table';
29
- export { default as CcsTimePicker } from './time-picker';
30
- export { default as CcsTrigger } from './trigger';
31
- export { default as CcsUpload } from './upload';
32
- export { default as CcsVirtualList } from './virtual-list';
33
- export { default as CcsWaterMark } from './water-mark';
1
+ export { default as CcsAjCaptcha } from './ccs-aj-captcha';
2
+ export { default as CcsApiCascader } from './ccs-api-cascader';
3
+ export { default as CcsApiSelect } from './ccs-api-select';
4
+ export { default as CcsAppConfig } from './ccs-app-config';
5
+ export { default as CcsAuth } from './ccs-auth';
6
+ export { default as CcsButton } from './ccs-button';
7
+ export { default as CcsColorPicker } from './ccs-color-picker';
8
+ export { default as CcsDatePicker } from './ccs-date-picker';
9
+ export { default as CcsDialog } from './ccs-dialog';
10
+ export { default as CcsEditor } from './ccs-editor';
11
+ export { default as CcsFullScreenButton } from './ccs-full-screen';
12
+ export { default as CcsIntervalButton } from './ccs-interval-button';
13
+ export { default as CcsKeepAliveTabs } from './ccs-keep-alive';
14
+ export { default as CcsLinesEllipsis } from './ccs-lines-ellipsis';
15
+ export { default as CcsLoading } from './ccs-loading';
16
+ export { default as CcsProGrid } from './ccs-pro-grid';
17
+ export { default as CcsProTable } from './ccs-pro-table';
18
+ export { default as CcsProTabs } from './ccs-pro-tabs';
19
+ export { default as CcsResizeObserver } from './ccs-resize-observer';
20
+ export { default as CcsResult } from './ccs-result';
21
+ export { default as CcsSinglePage } from './ccs-single-page';
22
+ export { default as CcsStatusTag } from './ccs-status-tag';
23
+ export { default as CcsTable } from './ccs-table';
24
+ export { default as CcsTimePicker } from './ccs-time-picker';
25
+ export { default as CcsTrigger } from './ccs-trigger';
26
+ export { default as CcsUpload } from './ccs-upload';
27
+ export { default as CcsVirtualList } from './ccs-virtual-list';
28
+ export { default as CcsWaterMark } from './ccs-water-mark';
29
+ export { default as useAppConfig } from './use-app-config';
30
+ export { default as useCcsPage } from './use-ccs-page';
31
+ export { default as useCcsTabs } from './use-ccs-tabs';
32
+ export { default as useCcsWindow } from './use-ccs-window';
33
+ export { default as useCcsOnceEvent } from './use-once-event';
34
34
  import * as CCS from './ccs';
35
35
  export default CCS;
package/es/index.js CHANGED
@@ -1,35 +1,35 @@
1
- export { default as CcsAjCaptcha } from "./aj-captcha";
2
- export { default as CcsAuth } from "./auth";
3
- export { default as CcsButton } from "./button";
4
- export { default as CcsApiCascader } from "./cascader";
5
- export { default as CcsColorPicker } from "./color-picker";
6
- export { default as CcsAppConfig } from "./config";
7
- export { default as CcsDatePicker } from "./date-picker";
8
- export { default as CcsDialog } from "./dialog";
9
- export { default as CcsEditor } from "./editor";
10
- export { default as CcsLinesEllipsis } from "./ellipsis";
11
- export { default as CcsFullScreenButton } from "./full-screen";
12
- export { default as useAppConfig } from "./hooks/use-app";
13
- export { default as useCcsOnceEvent } from "./hooks/use-once-event";
14
- export { default as useCcsPage } from "./hooks/use-page";
15
- export { default as useCcsTabs } from "./hooks/use-tabs";
16
- export { default as useCcsWindow } from "./hooks/use-window";
17
- export { default as CcsIntervalButton } from "./interval-button";
18
- export { default as CcsKeepAliveTabs } from "./layout-keep-alive";
19
- export { default as CcsSinglePage } from "./layout-single-page";
20
- export { default as CcsLoading } from "./loading";
21
- export { default as CcsProGrid } from "./pro-grid";
22
- export { default as CcsProTable } from "./pro-table";
23
- export { default as CcsProTabs } from "./pro-tabs";
24
- export { default as CcsResizeObserver } from "./resize-observer";
25
- export { default as CcsResult } from "./result";
26
- export { default as CcsApiSelect } from "./select";
27
- export { default as CcsStatusTag } from "./status-tag";
28
- export { default as CcsTable } from "./table";
29
- export { default as CcsTimePicker } from "./time-picker";
30
- export { default as CcsTrigger } from "./trigger";
31
- export { default as CcsUpload } from "./upload";
32
- export { default as CcsVirtualList } from "./virtual-list";
33
- export { default as CcsWaterMark } from "./water-mark";
1
+ export { default as CcsAjCaptcha } from "./ccs-aj-captcha";
2
+ export { default as CcsApiCascader } from "./ccs-api-cascader";
3
+ export { default as CcsApiSelect } from "./ccs-api-select";
4
+ export { default as CcsAppConfig } from "./ccs-app-config";
5
+ export { default as CcsAuth } from "./ccs-auth";
6
+ export { default as CcsButton } from "./ccs-button";
7
+ export { default as CcsColorPicker } from "./ccs-color-picker";
8
+ export { default as CcsDatePicker } from "./ccs-date-picker";
9
+ export { default as CcsDialog } from "./ccs-dialog";
10
+ export { default as CcsEditor } from "./ccs-editor";
11
+ export { default as CcsFullScreenButton } from "./ccs-full-screen";
12
+ export { default as CcsIntervalButton } from "./ccs-interval-button";
13
+ export { default as CcsKeepAliveTabs } from "./ccs-keep-alive";
14
+ export { default as CcsLinesEllipsis } from "./ccs-lines-ellipsis";
15
+ export { default as CcsLoading } from "./ccs-loading";
16
+ export { default as CcsProGrid } from "./ccs-pro-grid";
17
+ export { default as CcsProTable } from "./ccs-pro-table";
18
+ export { default as CcsProTabs } from "./ccs-pro-tabs";
19
+ export { default as CcsResizeObserver } from "./ccs-resize-observer";
20
+ export { default as CcsResult } from "./ccs-result";
21
+ export { default as CcsSinglePage } from "./ccs-single-page";
22
+ export { default as CcsStatusTag } from "./ccs-status-tag";
23
+ export { default as CcsTable } from "./ccs-table";
24
+ export { default as CcsTimePicker } from "./ccs-time-picker";
25
+ export { default as CcsTrigger } from "./ccs-trigger";
26
+ export { default as CcsUpload } from "./ccs-upload";
27
+ export { default as CcsVirtualList } from "./ccs-virtual-list";
28
+ export { default as CcsWaterMark } from "./ccs-water-mark";
29
+ export { default as useAppConfig } from "./use-app-config";
30
+ export { default as useCcsPage } from "./use-ccs-page";
31
+ export { default as useCcsTabs } from "./use-ccs-tabs";
32
+ export { default as useCcsWindow } from "./use-ccs-window";
33
+ export { default as useCcsOnceEvent } from "./use-once-event";
34
34
  import * as CCS from "./ccs";
35
35
  export default CCS;
@@ -2,7 +2,7 @@
2
2
  * app配置
3
3
  * @returns
4
4
  */
5
- declare const useAppConfig: () => import("../context").CssAppConfigType;
5
+ declare const useAppConfig: () => import("./context").CssAppConfigType;
6
6
  export declare const useProTableFields: () => {
7
7
  dataSource: string[];
8
8
  total: string[];
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { useContext } from 'react';
8
- import { AppConfigContext } from "../context";
8
+ import { AppConfigContext } from "./context";
9
9
 
10
10
  /**
11
11
  * app配置
@@ -3,7 +3,7 @@ declare const usePage: () => {
3
3
  id: string;
4
4
  location: import("react-router").Location<any>;
5
5
  isActive: boolean;
6
- dialogHolderRef: import("react").RefObject<import("../dialog/hook").ElementsHolderRef>;
6
+ dialogHolderRef: import("react").RefObject<import("./ccs-dialog/hook").ElementsHolderRef>;
7
7
  onDestroy: (path: string) => void;
8
8
  onAuth: (code: string) => boolean;
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import { useContext } from 'react';
2
- import { PageContext } from "../context";
2
+ import { PageContext } from "./context";
3
3
  var usePage = function usePage() {
4
4
  var context = useContext(PageContext);
5
5
  if (context === undefined) {
@@ -0,0 +1,2 @@
1
+ declare const useTabs: () => import("./context").CcsTabsContextType;
2
+ export default useTabs;
@@ -1,5 +1,5 @@
1
1
  import { useContext } from 'react';
2
- import { TabsContext } from "../context";
2
+ import { TabsContext } from "./context";
3
3
  var useTabs = function useTabs() {
4
4
  var context = useContext(TabsContext);
5
5
  if (context === undefined) {
@@ -1,5 +1,5 @@
1
1
  import { Store } from 'antd/es/form/interface';
2
- import { FnContextType } from '../context';
2
+ import { FnContextType } from './context';
3
3
  /**
4
4
  * @deprecated
5
5
  * @returns
@@ -1,5 +1,5 @@
1
1
  import { useContext } from 'react';
2
- import { DrawerAndModalContext } from "../context";
2
+ import { DrawerAndModalContext } from "./context";
3
3
 
4
4
  /**
5
5
  * @deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.2.5",
3
+ "version": "2.2.6-beta-2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1,12 +0,0 @@
1
- import ThemeDialog from "../theme-dialog";
2
- import CcsDialogFooter from "./button";
3
- import { useDialogContext } from "./context";
4
- import CcsDrawerFooter from "./drawer-footer";
5
- import useCcsDialog from "./hook";
6
- import "./index.less";
7
- var CcsDialog = ThemeDialog;
8
- CcsDialog.Buttons = CcsDialogFooter;
9
- CcsDialog.useDialog = useCcsDialog;
10
- CcsDialog.useInstance = useDialogContext;
11
- CcsDialog.DrawerFooter = CcsDrawerFooter;
12
- export default CcsDialog;
File without changes
@@ -1,2 +0,0 @@
1
- declare const useTabs: () => import("../context").CcsTabsContextType;
2
- export default useTabs;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes