@yoka-ui/ui 1.0.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.
- package/@Docs-yoka/exports.generated.md +93 -0
- package/@Docs-yoka/llms.txt +23 -0
- package/README.md +113 -0
- package/dist/es/Themes/InputTheme/index.d.ts +6 -0
- package/dist/es/Themes/InputTheme/index.js +22 -0
- package/dist/es/Themes/InputTheme/index.js.map +7 -0
- package/dist/es/Themes/TableTheme/index.d.ts +7 -0
- package/dist/es/Themes/TableTheme/index.js +31 -0
- package/dist/es/Themes/TableTheme/index.js.map +7 -0
- package/dist/es/Themes/TableTheme/index.less +46 -0
- package/dist/es/assets/image/YKUI-logo.png +0 -0
- package/dist/es/assets/less/ant-reset.less +402 -0
- package/dist/es/assets/less/index.less +1 -0
- package/dist/es/assets/less/variables.less +16 -0
- package/dist/es/business/AiChat/MarkdownRender.d.ts +9 -0
- package/dist/es/business/AiChat/MarkdownRender.js +72 -0
- package/dist/es/business/AiChat/MarkdownRender.js.map +7 -0
- package/dist/es/business/AiChat/index.d.ts +16 -0
- package/dist/es/business/AiChat/index.js +733 -0
- package/dist/es/business/AiChat/index.js.map +7 -0
- package/dist/es/business/AiChat/intentRecognizer.d.ts +33 -0
- package/dist/es/business/AiChat/intentRecognizer.js +166 -0
- package/dist/es/business/AiChat/intentRecognizer.js.map +7 -0
- package/dist/es/business/AiChat/navigationManager.d.ts +94 -0
- package/dist/es/business/AiChat/navigationManager.js +208 -0
- package/dist/es/business/AiChat/navigationManager.js.map +7 -0
- package/dist/es/business/AiChat/sse.d.ts +16 -0
- package/dist/es/business/AiChat/sse.js +171 -0
- package/dist/es/business/AiChat/sse.js.map +7 -0
- package/dist/es/business/AiChat/type.d.ts +156 -0
- package/dist/es/business/AiChat/type.js +1 -0
- package/dist/es/business/AiChat/type.js.map +7 -0
- package/dist/es/business/AiChat/useAiChat.d.ts +2 -0
- package/dist/es/business/AiChat/useAiChat.js +268 -0
- package/dist/es/business/AiChat/useAiChat.js.map +7 -0
- package/dist/es/business/AiChat/useTaskWorkflow.d.ts +25 -0
- package/dist/es/business/AiChat/useTaskWorkflow.js +196 -0
- package/dist/es/business/AiChat/useTaskWorkflow.js.map +7 -0
- package/dist/es/business/DrawerPageInfo/index.d.ts +35 -0
- package/dist/es/business/DrawerPageInfo/index.js +133 -0
- package/dist/es/business/DrawerPageInfo/index.js.map +7 -0
- package/dist/es/business/DrawerPageInfo/index.module.less +87 -0
- package/dist/es/business/DrawerPageInfo/test.png +0 -0
- package/dist/es/business/Editor/index.d.ts +11 -0
- package/dist/es/business/Editor/index.js +86 -0
- package/dist/es/business/Editor/index.js.map +7 -0
- package/dist/es/business/Editor/index.less +31 -0
- package/dist/es/business/Empty/empty.png +0 -0
- package/dist/es/business/Empty/index.d.ts +19 -0
- package/dist/es/business/Empty/index.js +51 -0
- package/dist/es/business/Empty/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/assets/images/empty.png +0 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconClose.d.ts +13 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconClose.js +51 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconClose.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconXiala.d.ts +13 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconXiala.js +51 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconXiala.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.d.ts +25 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.js +30 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.module.less +97 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.d.ts +18 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js +74 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.d.ts +37 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js +216 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.d.ts +26 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js +102 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.d.ts +51 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.js +71 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.module.less +260 -0
- package/dist/es/business/ModCommonFilter/index.d.ts +53 -0
- package/dist/es/business/ModCommonFilter/index.js +129 -0
- package/dist/es/business/ModCommonFilter/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/index.module.less +7 -0
- package/dist/es/business/ModCommonFilter/typing.d.ts +20 -0
- package/dist/es/business/ModCommonFilter/typing.js +1 -0
- package/dist/es/business/ModCommonFilter/typing.js.map +7 -0
- package/dist/es/business/YkPorjectSelect/icon-product.png +0 -0
- package/dist/es/business/YkPorjectSelect/index.d.ts +51 -0
- package/dist/es/business/YkPorjectSelect/index.js +260 -0
- package/dist/es/business/YkPorjectSelect/index.js.map +7 -0
- package/dist/es/business/YkPorjectSelect/index.module.less +334 -0
- package/dist/es/business/YkPorjectSelect/product-close.png +0 -0
- package/dist/es/components/Clock/index.d.ts +19 -0
- package/dist/es/components/Clock/index.js +55 -0
- package/dist/es/components/Clock/index.js.map +7 -0
- package/dist/es/components/DebounceInput/index.d.ts +16 -0
- package/dist/es/components/DebounceInput/index.js +77 -0
- package/dist/es/components/DebounceInput/index.js.map +7 -0
- package/dist/es/components/DebounceInput/index.module.less +23 -0
- package/dist/es/components/MultipleSelect/index.d.ts +23 -0
- package/dist/es/components/MultipleSelect/index.js +249 -0
- package/dist/es/components/MultipleSelect/index.js.map +7 -0
- package/dist/es/components/MultipleSelect/index.module.less +174 -0
- package/dist/es/components/NumericInput/index.d.ts +19 -0
- package/dist/es/components/NumericInput/index.js +56 -0
- package/dist/es/components/NumericInput/index.js.map +7 -0
- package/dist/es/components/RefreshButton/index.d.ts +8 -0
- package/dist/es/components/RefreshButton/index.js +21 -0
- package/dist/es/components/RefreshButton/index.js.map +7 -0
- package/dist/es/components/SearchWithHistory/index.d.ts +21 -0
- package/dist/es/components/SearchWithHistory/index.js +115 -0
- package/dist/es/components/SearchWithHistory/index.js.map +7 -0
- package/dist/es/components/SearchWithHistory/index.module.less +64 -0
- package/dist/es/components/TextWithInput/index.d.ts +15 -0
- package/dist/es/components/TextWithInput/index.js +35 -0
- package/dist/es/components/TextWithInput/index.js.map +7 -0
- package/dist/es/components/TextWithToolTip/index.d.ts +17 -0
- package/dist/es/components/TextWithToolTip/index.js +118 -0
- package/dist/es/components/TextWithToolTip/index.js.map +7 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +28 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js +161 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js.map +7 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.less +151 -0
- package/dist/es/components/TreeTransfer/index.d.ts +28 -0
- package/dist/es/components/TreeTransfer/index.js +210 -0
- package/dist/es/components/TreeTransfer/index.js.map +7 -0
- package/dist/es/components/TreeTransfer/index.less +69 -0
- package/dist/es/components/TreeTransfer/types.d.ts +122 -0
- package/dist/es/components/TreeTransfer/types.js +6 -0
- package/dist/es/components/TreeTransfer/types.js.map +7 -0
- package/dist/es/components/TreeTransfer/utils/index.d.ts +120 -0
- package/dist/es/components/TreeTransfer/utils/index.js +195 -0
- package/dist/es/components/TreeTransfer/utils/index.js.map +7 -0
- package/dist/es/components/YkDateRangePicker/YkDateRangePicker.mdx +180 -0
- package/dist/es/components/YkDateRangePicker/index.d.ts +61 -0
- package/dist/es/components/YkDateRangePicker/index.js +317 -0
- package/dist/es/components/YkDateRangePicker/index.js.map +7 -0
- package/dist/es/components/YkDateRangePicker/index.module.less +304 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +16 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +193 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +31 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +576 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +16 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js +55 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/index.d.ts +62 -0
- package/dist/es/components/YkRangeDateWithVS/index.js +130 -0
- package/dist/es/components/YkRangeDateWithVS/index.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/index.module.less +566 -0
- package/dist/es/components/YkRangeDateWithVS/styles.d.ts +2 -0
- package/dist/es/components/YkRangeDateWithVS/styles.js +18 -0
- package/dist/es/components/YkRangeDateWithVS/styles.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/typing.d.ts +15 -0
- package/dist/es/components/YkRangeTimeWithRecent/constants.d.ts +48 -0
- package/dist/es/components/YkRangeTimeWithRecent/constants.js +288 -0
- package/dist/es/components/YkRangeTimeWithRecent/constants.js.map +7 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.d.ts +26 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.js +647 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.js.map +7 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.module.less +263 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.d.ts +17 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.js +103 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.js.map +7 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.less +106 -0
- package/dist/es/creative/ButtonWithProgress/index.d.ts +11 -0
- package/dist/es/creative/ButtonWithProgress/index.js +79 -0
- package/dist/es/creative/ButtonWithProgress/index.js.map +7 -0
- package/dist/es/creative/ButtonWithProgress/index.less +66 -0
- package/dist/es/global.less +12 -0
- package/dist/es/index.d.ts +43 -0
- package/dist/es/index.js +87 -0
- package/dist/es/index.js.map +7 -0
- package/dist/es/index.less +35 -0
- package/dist/es/layout/FlexGrid/index.d.ts +25 -0
- package/dist/es/layout/FlexGrid/index.js +63 -0
- package/dist/es/layout/FlexGrid/index.js.map +7 -0
- package/dist/es/layout/YkContainer/index.d.ts +27 -0
- package/dist/es/layout/YkContainer/index.js +79 -0
- package/dist/es/layout/YkContainer/index.js.map +7 -0
- package/dist/es/layout/YkDrawer/index.d.ts +22 -0
- package/dist/es/layout/YkDrawer/index.js +160 -0
- package/dist/es/layout/YkDrawer/index.js.map +7 -0
- package/dist/es/layout/YkDrawer/index.module.less +45 -0
- package/dist/es/ui/LabelSelect/demo.d.ts +3 -0
- package/dist/es/ui/LabelSelect/demo.js +83 -0
- package/dist/es/ui/LabelSelect/demo.js.map +7 -0
- package/dist/es/ui/LabelSelect/index.d.ts +41 -0
- package/dist/es/ui/LabelSelect/index.js +136 -0
- package/dist/es/ui/LabelSelect/index.js.map +7 -0
- package/dist/es/ui/LogicOperator/index.d.ts +10 -0
- package/dist/es/ui/LogicOperator/index.js +12 -0
- package/dist/es/ui/LogicOperator/index.js.map +7 -0
- package/dist/es/ui/LogicOperator/index.module.less +97 -0
- package/dist/es/ui/YkButton/index.d.ts +9 -0
- package/dist/es/ui/YkButton/index.js +59 -0
- package/dist/es/ui/YkButton/index.js.map +7 -0
- package/dist/es/ui/YkCard/index.d.ts +4 -0
- package/dist/es/ui/YkCard/index.js +79 -0
- package/dist/es/ui/YkCard/index.js.map +7 -0
- package/dist/es/ui/YkCard/index.module.less +30 -0
- package/dist/es/ui/YkCheckbox/index.d.ts +4 -0
- package/dist/es/ui/YkCheckbox/index.js +45 -0
- package/dist/es/ui/YkCheckbox/index.js.map +7 -0
- package/dist/es/ui/YkCheckbox/index.module.less +22 -0
- package/dist/es/ui/YkDescriptions/index.d.ts +4 -0
- package/dist/es/ui/YkDescriptions/index.js +41 -0
- package/dist/es/ui/YkDescriptions/index.js.map +7 -0
- package/dist/es/ui/YkPagination/index.d.ts +4 -0
- package/dist/es/ui/YkPagination/index.js +63 -0
- package/dist/es/ui/YkPagination/index.js.map +7 -0
- package/dist/es/ui/YkPagination/index.module.less +22 -0
- package/dist/es/ui/YkRadio/index.d.ts +4 -0
- package/dist/es/ui/YkRadio/index.js +51 -0
- package/dist/es/ui/YkRadio/index.js.map +7 -0
- package/dist/es/ui/YkRadio/index.module.less +22 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.d.ts +15 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.js +23 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.js.map +7 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.module.less +112 -0
- package/dist/es/ui/YkSegmented/index.d.ts +4 -0
- package/dist/es/ui/YkSegmented/index.js +41 -0
- package/dist/es/ui/YkSegmented/index.js.map +7 -0
- package/dist/es/ui/YkSelect/index.d.ts +7 -0
- package/dist/es/ui/YkSelect/index.js +54 -0
- package/dist/es/ui/YkSelect/index.js.map +7 -0
- package/dist/es/ui/YkSpin/index.d.ts +4 -0
- package/dist/es/ui/YkSpin/index.js +41 -0
- package/dist/es/ui/YkSpin/index.js.map +7 -0
- package/dist/es/ui/YkStatistic/index.d.ts +4 -0
- package/dist/es/ui/YkStatistic/index.js +41 -0
- package/dist/es/ui/YkStatistic/index.js.map +7 -0
- package/dist/es/ui/YkSwitch/index.d.ts +4 -0
- package/dist/es/ui/YkSwitch/index.js +51 -0
- package/dist/es/ui/YkSwitch/index.js.map +7 -0
- package/dist/es/ui/YkTabs/index.d.ts +12 -0
- package/dist/es/ui/YkTabs/index.js +75 -0
- package/dist/es/ui/YkTabs/index.js.map +7 -0
- package/dist/es/ui/YkTabs/index.module.less +11 -0
- package/dist/es/ui/YkTooltip/index.d.ts +4 -0
- package/dist/es/ui/YkTooltip/index.js +50 -0
- package/dist/es/ui/YkTooltip/index.js.map +7 -0
- package/dist/es/utils/styleUtils.d.ts +18 -0
- package/dist/es/utils/styleUtils.js +57 -0
- package/dist/es/utils/styleUtils.js.map +7 -0
- package/dist/es/utils/ykStorybookDoc.d.ts +17 -0
- package/dist/es/utils/ykStorybookDoc.js +18 -0
- package/dist/es/utils/ykStorybookDoc.js.map +7 -0
- package/dist/lib/Themes/InputTheme/index.d.ts +6 -0
- package/dist/lib/Themes/InputTheme/index.js +52 -0
- package/dist/lib/Themes/InputTheme/index.js.map +7 -0
- package/dist/lib/Themes/TableTheme/index.d.ts +7 -0
- package/dist/lib/Themes/TableTheme/index.js +61 -0
- package/dist/lib/Themes/TableTheme/index.js.map +7 -0
- package/dist/lib/Themes/TableTheme/index.less +46 -0
- package/dist/lib/assets/image/YKUI-logo.png +0 -0
- package/dist/lib/assets/less/ant-reset.less +402 -0
- package/dist/lib/assets/less/index.less +1 -0
- package/dist/lib/assets/less/variables.less +16 -0
- package/dist/lib/business/AiChat/MarkdownRender.d.ts +9 -0
- package/dist/lib/business/AiChat/MarkdownRender.js +102 -0
- package/dist/lib/business/AiChat/MarkdownRender.js.map +7 -0
- package/dist/lib/business/AiChat/index.d.ts +16 -0
- package/dist/lib/business/AiChat/index.js +723 -0
- package/dist/lib/business/AiChat/index.js.map +7 -0
- package/dist/lib/business/AiChat/intentRecognizer.d.ts +33 -0
- package/dist/lib/business/AiChat/intentRecognizer.js +193 -0
- package/dist/lib/business/AiChat/intentRecognizer.js.map +7 -0
- package/dist/lib/business/AiChat/navigationManager.d.ts +94 -0
- package/dist/lib/business/AiChat/navigationManager.js +214 -0
- package/dist/lib/business/AiChat/navigationManager.js.map +7 -0
- package/dist/lib/business/AiChat/sse.d.ts +16 -0
- package/dist/lib/business/AiChat/sse.js +171 -0
- package/dist/lib/business/AiChat/sse.js.map +7 -0
- package/dist/lib/business/AiChat/type.d.ts +156 -0
- package/dist/lib/business/AiChat/type.js +18 -0
- package/dist/lib/business/AiChat/type.js.map +7 -0
- package/dist/lib/business/AiChat/useAiChat.d.ts +2 -0
- package/dist/lib/business/AiChat/useAiChat.js +252 -0
- package/dist/lib/business/AiChat/useAiChat.js.map +7 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.d.ts +25 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.js +182 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.js.map +7 -0
- package/dist/lib/business/DrawerPageInfo/index.d.ts +35 -0
- package/dist/lib/business/DrawerPageInfo/index.js +163 -0
- package/dist/lib/business/DrawerPageInfo/index.js.map +7 -0
- package/dist/lib/business/DrawerPageInfo/index.module.less +87 -0
- package/dist/lib/business/DrawerPageInfo/test.png +0 -0
- package/dist/lib/business/Editor/index.d.ts +11 -0
- package/dist/lib/business/Editor/index.js +99 -0
- package/dist/lib/business/Editor/index.js.map +7 -0
- package/dist/lib/business/Editor/index.less +31 -0
- package/dist/lib/business/Empty/empty.png +0 -0
- package/dist/lib/business/Empty/index.d.ts +19 -0
- package/dist/lib/business/Empty/index.js +65 -0
- package/dist/lib/business/Empty/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/assets/images/empty.png +0 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconClose.d.ts +13 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconClose.js +50 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconClose.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconXiala.d.ts +13 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconXiala.js +50 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconXiala.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.d.ts +25 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.js +60 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.module.less +97 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.d.ts +18 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js +69 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.d.ts +37 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js +211 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.d.ts +26 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js +97 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.d.ts +51 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.js +101 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.module.less +260 -0
- package/dist/lib/business/ModCommonFilter/index.d.ts +53 -0
- package/dist/lib/business/ModCommonFilter/index.js +143 -0
- package/dist/lib/business/ModCommonFilter/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/index.module.less +7 -0
- package/dist/lib/business/ModCommonFilter/typing.d.ts +20 -0
- package/dist/lib/business/ModCommonFilter/typing.js +18 -0
- package/dist/lib/business/ModCommonFilter/typing.js.map +7 -0
- package/dist/lib/business/YkPorjectSelect/icon-product.png +0 -0
- package/dist/lib/business/YkPorjectSelect/index.d.ts +51 -0
- package/dist/lib/business/YkPorjectSelect/index.js +235 -0
- package/dist/lib/business/YkPorjectSelect/index.js.map +7 -0
- package/dist/lib/business/YkPorjectSelect/index.module.less +334 -0
- package/dist/lib/business/YkPorjectSelect/product-close.png +0 -0
- package/dist/lib/components/Clock/index.d.ts +19 -0
- package/dist/lib/components/Clock/index.js +85 -0
- package/dist/lib/components/Clock/index.js.map +7 -0
- package/dist/lib/components/DebounceInput/index.d.ts +16 -0
- package/dist/lib/components/DebounceInput/index.js +107 -0
- package/dist/lib/components/DebounceInput/index.js.map +7 -0
- package/dist/lib/components/DebounceInput/index.module.less +23 -0
- package/dist/lib/components/MultipleSelect/index.d.ts +23 -0
- package/dist/lib/components/MultipleSelect/index.js +279 -0
- package/dist/lib/components/MultipleSelect/index.js.map +7 -0
- package/dist/lib/components/MultipleSelect/index.module.less +174 -0
- package/dist/lib/components/NumericInput/index.d.ts +19 -0
- package/dist/lib/components/NumericInput/index.js +67 -0
- package/dist/lib/components/NumericInput/index.js.map +7 -0
- package/dist/lib/components/RefreshButton/index.d.ts +8 -0
- package/dist/lib/components/RefreshButton/index.js +51 -0
- package/dist/lib/components/RefreshButton/index.js.map +7 -0
- package/dist/lib/components/SearchWithHistory/index.d.ts +21 -0
- package/dist/lib/components/SearchWithHistory/index.js +145 -0
- package/dist/lib/components/SearchWithHistory/index.js.map +7 -0
- package/dist/lib/components/SearchWithHistory/index.module.less +64 -0
- package/dist/lib/components/TextWithInput/index.d.ts +15 -0
- package/dist/lib/components/TextWithInput/index.js +65 -0
- package/dist/lib/components/TextWithInput/index.js.map +7 -0
- package/dist/lib/components/TextWithToolTip/index.d.ts +17 -0
- package/dist/lib/components/TextWithToolTip/index.js +134 -0
- package/dist/lib/components/TextWithToolTip/index.js.map +7 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +28 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js +191 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js.map +7 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.less +151 -0
- package/dist/lib/components/TreeTransfer/index.d.ts +28 -0
- package/dist/lib/components/TreeTransfer/index.js +214 -0
- package/dist/lib/components/TreeTransfer/index.js.map +7 -0
- package/dist/lib/components/TreeTransfer/index.less +69 -0
- package/dist/lib/components/TreeTransfer/types.d.ts +122 -0
- package/dist/lib/components/TreeTransfer/types.js +30 -0
- package/dist/lib/components/TreeTransfer/types.js.map +7 -0
- package/dist/lib/components/TreeTransfer/utils/index.d.ts +120 -0
- package/dist/lib/components/TreeTransfer/utils/index.js +208 -0
- package/dist/lib/components/TreeTransfer/utils/index.js.map +7 -0
- package/dist/lib/components/YkDateRangePicker/YkDateRangePicker.mdx +180 -0
- package/dist/lib/components/YkDateRangePicker/index.d.ts +61 -0
- package/dist/lib/components/YkDateRangePicker/index.js +338 -0
- package/dist/lib/components/YkDateRangePicker/index.js.map +7 -0
- package/dist/lib/components/YkDateRangePicker/index.module.less +304 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +16 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +223 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +31 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +587 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +16 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js +85 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/index.d.ts +62 -0
- package/dist/lib/components/YkRangeDateWithVS/index.js +140 -0
- package/dist/lib/components/YkRangeDateWithVS/index.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/index.module.less +566 -0
- package/dist/lib/components/YkRangeDateWithVS/styles.d.ts +2 -0
- package/dist/lib/components/YkRangeDateWithVS/styles.js +48 -0
- package/dist/lib/components/YkRangeDateWithVS/styles.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/typing.d.ts +15 -0
- package/dist/lib/components/YkRangeTimeWithRecent/constants.d.ts +48 -0
- package/dist/lib/components/YkRangeTimeWithRecent/constants.js +333 -0
- package/dist/lib/components/YkRangeTimeWithRecent/constants.js.map +7 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.d.ts +26 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.js +647 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.js.map +7 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.module.less +263 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.d.ts +17 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.js +102 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.js.map +7 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.less +106 -0
- package/dist/lib/creative/ButtonWithProgress/index.d.ts +11 -0
- package/dist/lib/creative/ButtonWithProgress/index.js +70 -0
- package/dist/lib/creative/ButtonWithProgress/index.js.map +7 -0
- package/dist/lib/creative/ButtonWithProgress/index.less +66 -0
- package/dist/lib/global.less +12 -0
- package/dist/lib/index.d.ts +43 -0
- package/dist/lib/index.js +161 -0
- package/dist/lib/index.js.map +7 -0
- package/dist/lib/index.less +35 -0
- package/dist/lib/layout/FlexGrid/index.d.ts +25 -0
- package/dist/lib/layout/FlexGrid/index.js +77 -0
- package/dist/lib/layout/FlexGrid/index.js.map +7 -0
- package/dist/lib/layout/YkContainer/index.d.ts +27 -0
- package/dist/lib/layout/YkContainer/index.js +79 -0
- package/dist/lib/layout/YkContainer/index.js.map +7 -0
- package/dist/lib/layout/YkDrawer/index.d.ts +22 -0
- package/dist/lib/layout/YkDrawer/index.js +152 -0
- package/dist/lib/layout/YkDrawer/index.js.map +7 -0
- package/dist/lib/layout/YkDrawer/index.module.less +45 -0
- package/dist/lib/ui/LabelSelect/demo.d.ts +3 -0
- package/dist/lib/ui/LabelSelect/demo.js +113 -0
- package/dist/lib/ui/LabelSelect/demo.js.map +7 -0
- package/dist/lib/ui/LabelSelect/index.d.ts +41 -0
- package/dist/lib/ui/LabelSelect/index.js +124 -0
- package/dist/lib/ui/LabelSelect/index.js.map +7 -0
- package/dist/lib/ui/LogicOperator/index.d.ts +10 -0
- package/dist/lib/ui/LogicOperator/index.js +42 -0
- package/dist/lib/ui/LogicOperator/index.js.map +7 -0
- package/dist/lib/ui/LogicOperator/index.module.less +97 -0
- package/dist/lib/ui/YkButton/index.d.ts +9 -0
- package/dist/lib/ui/YkButton/index.js +55 -0
- package/dist/lib/ui/YkButton/index.js.map +7 -0
- package/dist/lib/ui/YkCard/index.d.ts +4 -0
- package/dist/lib/ui/YkCard/index.js +76 -0
- package/dist/lib/ui/YkCard/index.js.map +7 -0
- package/dist/lib/ui/YkCard/index.module.less +30 -0
- package/dist/lib/ui/YkCheckbox/index.d.ts +4 -0
- package/dist/lib/ui/YkCheckbox/index.js +42 -0
- package/dist/lib/ui/YkCheckbox/index.js.map +7 -0
- package/dist/lib/ui/YkCheckbox/index.module.less +22 -0
- package/dist/lib/ui/YkDescriptions/index.d.ts +4 -0
- package/dist/lib/ui/YkDescriptions/index.js +41 -0
- package/dist/lib/ui/YkDescriptions/index.js.map +7 -0
- package/dist/lib/ui/YkPagination/index.d.ts +4 -0
- package/dist/lib/ui/YkPagination/index.js +60 -0
- package/dist/lib/ui/YkPagination/index.js.map +7 -0
- package/dist/lib/ui/YkPagination/index.module.less +22 -0
- package/dist/lib/ui/YkRadio/index.d.ts +4 -0
- package/dist/lib/ui/YkRadio/index.js +51 -0
- package/dist/lib/ui/YkRadio/index.js.map +7 -0
- package/dist/lib/ui/YkRadio/index.module.less +22 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.d.ts +15 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.js +53 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.js.map +7 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.module.less +112 -0
- package/dist/lib/ui/YkSegmented/index.d.ts +4 -0
- package/dist/lib/ui/YkSegmented/index.js +41 -0
- package/dist/lib/ui/YkSegmented/index.js.map +7 -0
- package/dist/lib/ui/YkSelect/index.d.ts +7 -0
- package/dist/lib/ui/YkSelect/index.js +54 -0
- package/dist/lib/ui/YkSelect/index.js.map +7 -0
- package/dist/lib/ui/YkSpin/index.d.ts +4 -0
- package/dist/lib/ui/YkSpin/index.js +41 -0
- package/dist/lib/ui/YkSpin/index.js.map +7 -0
- package/dist/lib/ui/YkStatistic/index.d.ts +4 -0
- package/dist/lib/ui/YkStatistic/index.js +41 -0
- package/dist/lib/ui/YkStatistic/index.js.map +7 -0
- package/dist/lib/ui/YkSwitch/index.d.ts +4 -0
- package/dist/lib/ui/YkSwitch/index.js +51 -0
- package/dist/lib/ui/YkSwitch/index.js.map +7 -0
- package/dist/lib/ui/YkTabs/index.d.ts +12 -0
- package/dist/lib/ui/YkTabs/index.js +70 -0
- package/dist/lib/ui/YkTabs/index.js.map +7 -0
- package/dist/lib/ui/YkTabs/index.module.less +11 -0
- package/dist/lib/ui/YkTooltip/index.d.ts +4 -0
- package/dist/lib/ui/YkTooltip/index.js +45 -0
- package/dist/lib/ui/YkTooltip/index.js.map +7 -0
- package/dist/lib/utils/styleUtils.d.ts +18 -0
- package/dist/lib/utils/styleUtils.js +84 -0
- package/dist/lib/utils/styleUtils.js.map +7 -0
- package/dist/lib/utils/ykStorybookDoc.d.ts +17 -0
- package/dist/lib/utils/ykStorybookDoc.js +41 -0
- package/dist/lib/utils/ykStorybookDoc.js.map +7 -0
- package/package.json +148 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/*
|
|
2
|
+
基本样式
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@primaryColor: #3b86f9;
|
|
6
|
+
@iconPrimaryColor: #0a6bfd;
|
|
7
|
+
@fontPrimaryColor: #0a6bfd;
|
|
8
|
+
@borderPrimaryColor: #b0cffe;
|
|
9
|
+
@globalBgColor: #edeff4;
|
|
10
|
+
|
|
11
|
+
@ykFontFamilySemibold: 'PingFangSC-Semibold', 'PingFang SC', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
|
|
12
|
+
sans-serif;
|
|
13
|
+
@ykFontFamilyRegular: 'PingFangSC-Regular', 'PingFang SC', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
|
|
14
|
+
sans-serif;
|
|
15
|
+
@ykFontFamilyMedium: 'PingFangSC-Medium', 'PingFang SC', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
|
|
16
|
+
sans-serif;
|
|
17
|
+
|
|
18
|
+
.popconfirm-reset.ant-popconfirm {
|
|
19
|
+
.ant-popover-inner {
|
|
20
|
+
padding: 15px 15px 20px;
|
|
21
|
+
box-shadow: 0px 0px 8px 1px rgba(202, 200, 200, 0.5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ant-popconfirm-title {
|
|
25
|
+
margin-bottom: 12px;
|
|
26
|
+
color: #666;
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ant-popconfirm-buttons {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row-reverse;
|
|
33
|
+
|
|
34
|
+
button {
|
|
35
|
+
width: 80px;
|
|
36
|
+
height: 30px;
|
|
37
|
+
|
|
38
|
+
&:last-of-type {
|
|
39
|
+
margin-inline-start: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.popconfirm-delete-reset.ant-popconfirm {
|
|
46
|
+
.ant-popover-inner {
|
|
47
|
+
padding: 20px 34px;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ant-popconfirm-message {
|
|
53
|
+
align-items: center;
|
|
54
|
+
margin-bottom: 15px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ant-popconfirm-message-icon {
|
|
58
|
+
span {
|
|
59
|
+
font-size: 16px !important;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ant-popconfirm-title {
|
|
64
|
+
color: #333333;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
font-family: @ykFontFamilyRegular;
|
|
68
|
+
font-style: normal;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ant-popconfirm-buttons {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: row-reverse;
|
|
74
|
+
|
|
75
|
+
button {
|
|
76
|
+
width: 80px;
|
|
77
|
+
height: 30px;
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
border-radius: 2px;
|
|
80
|
+
|
|
81
|
+
&.ant-btn-default {
|
|
82
|
+
color: #666666;
|
|
83
|
+
background: #f9fafc;
|
|
84
|
+
border-color: #f0f1f3;
|
|
85
|
+
margin-inline-start: 15px;
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
background: #eff1f5;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:last-of-type {
|
|
93
|
+
margin-inline-start: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.modalWrapResetMixin(@labelWidth) {
|
|
100
|
+
&.ant-modal-wrap {
|
|
101
|
+
.ant-modal-content {
|
|
102
|
+
padding: 15px 20px 30px;
|
|
103
|
+
border-radius: 4px;
|
|
104
|
+
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
|
|
105
|
+
|
|
106
|
+
.ant-modal-close {
|
|
107
|
+
.ant-modal-close-x {
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ant-modal-header {
|
|
113
|
+
margin-bottom: 30px;
|
|
114
|
+
padding-bottom: 15px;
|
|
115
|
+
border-bottom: 1px solid #ededed;
|
|
116
|
+
|
|
117
|
+
.ant-modal-title {
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ant-modal-body {
|
|
123
|
+
.ant-form {
|
|
124
|
+
.ant-form-item {
|
|
125
|
+
.ant-form-item-label {
|
|
126
|
+
flex: 0 0 @labelWidth;
|
|
127
|
+
max-width: @labelWidth;
|
|
128
|
+
|
|
129
|
+
> label {
|
|
130
|
+
color: #666;
|
|
131
|
+
|
|
132
|
+
&::before {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&::after {
|
|
137
|
+
content: '';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ant-form-item-required {
|
|
143
|
+
&::before {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&::after {
|
|
148
|
+
content: '';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ant-input-affix-wrapper {
|
|
155
|
+
border-radius: 2px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ant-modal-body {
|
|
160
|
+
margin-bottom: 30px;
|
|
161
|
+
|
|
162
|
+
:has(.ant-form) {
|
|
163
|
+
margin-bottom: 6px;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ant-modal-footer {
|
|
168
|
+
margin-top: 0;
|
|
169
|
+
|
|
170
|
+
> div {
|
|
171
|
+
justify-content: flex-start !important;
|
|
172
|
+
padding-left: @labelWidth;
|
|
173
|
+
|
|
174
|
+
> div {
|
|
175
|
+
flex-direction: row-reverse;
|
|
176
|
+
gap: 15px !important;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
button {
|
|
181
|
+
width: 100px;
|
|
182
|
+
height: 30px;
|
|
183
|
+
line-height: 20px;
|
|
184
|
+
border-radius: 2px;
|
|
185
|
+
|
|
186
|
+
&:last-of-type {
|
|
187
|
+
margin-inline-start: 0;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.modal-reset-20 {
|
|
196
|
+
.modalWrapResetMixin(20%);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.modal-reset-25 {
|
|
200
|
+
.modalWrapResetMixin(25%);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// table sticky属性出现两个横向滚动条,偏移sticky元素使其重叠
|
|
204
|
+
.ant-table-sticky-scroll {
|
|
205
|
+
transform: translateY(-8px);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.radio-button-reset {
|
|
209
|
+
text-align: center;
|
|
210
|
+
background: #fff;
|
|
211
|
+
border-color: #e7e7e7;
|
|
212
|
+
|
|
213
|
+
&:first-child {
|
|
214
|
+
border-start-start-radius: 2px;
|
|
215
|
+
border-end-start-radius: 2px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&:last-child {
|
|
219
|
+
border-start-end-radius: 2px;
|
|
220
|
+
border-end-end-radius: 2px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// 水印
|
|
225
|
+
.ant-pro-layout-watermark {
|
|
226
|
+
z-index: 99 !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ant-picker-panel-layout {
|
|
230
|
+
.ant-picker-presets {
|
|
231
|
+
ul {
|
|
232
|
+
display: flex;
|
|
233
|
+
flex-direction: row;
|
|
234
|
+
flex-wrap: wrap;
|
|
235
|
+
align-content: flex-start;
|
|
236
|
+
justify-content: space-between;
|
|
237
|
+
max-width: 150px;
|
|
238
|
+
padding: 15px 10px 10px 10px !important;
|
|
239
|
+
|
|
240
|
+
li {
|
|
241
|
+
position: relative;
|
|
242
|
+
width: 60px;
|
|
243
|
+
height: 30px;
|
|
244
|
+
margin-top: 0 !important;
|
|
245
|
+
margin-bottom: 10px;
|
|
246
|
+
line-height: 30px;
|
|
247
|
+
text-align: center;
|
|
248
|
+
border: 1px solid #ededed;
|
|
249
|
+
border-radius: 2px !important;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.ant-picker-presets-li {
|
|
253
|
+
position: absolute;
|
|
254
|
+
top: 0;
|
|
255
|
+
right: 0;
|
|
256
|
+
bottom: 0;
|
|
257
|
+
left: 0;
|
|
258
|
+
width: 100%;
|
|
259
|
+
height: 100%;
|
|
260
|
+
|
|
261
|
+
&.ant-picker-presets-li-item {
|
|
262
|
+
color: #fff;
|
|
263
|
+
background-color: #3b86f9;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.ant-checkbox {
|
|
271
|
+
.ant-checkbox-inner {
|
|
272
|
+
border-radius: 2px;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// 会引发样式问题,但忘记为啥要添加这段样式
|
|
277
|
+
// .ant-picker-panels {
|
|
278
|
+
// .ant-picker-panel {
|
|
279
|
+
// .ant-picker-content {
|
|
280
|
+
// .ant-picker-cell {
|
|
281
|
+
// &:not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-start) {
|
|
282
|
+
// div {
|
|
283
|
+
// color: #666;
|
|
284
|
+
// }
|
|
285
|
+
// }
|
|
286
|
+
// }
|
|
287
|
+
// }
|
|
288
|
+
// }
|
|
289
|
+
// }
|
|
290
|
+
|
|
291
|
+
.ant-picker-dropdown .ant-picker-cell-disabled {
|
|
292
|
+
cursor: default;
|
|
293
|
+
pointer-events: auto;
|
|
294
|
+
|
|
295
|
+
.ant-picker-cell-inner {
|
|
296
|
+
background: #f5f5f5 !important;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// 全局滚动条样式
|
|
301
|
+
.scroll-reset {
|
|
302
|
+
&::-webkit-scrollbar {
|
|
303
|
+
width: 4px;
|
|
304
|
+
height: 8px;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&::-webkit-scrollbar-track-piece {
|
|
308
|
+
background: #fff;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
&::-webkit-scrollbar-thumb {
|
|
312
|
+
background: #fbfbfb;
|
|
313
|
+
border-radius: 4px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
317
|
+
background: #cbcbcb;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&::-webkit-scrollbar-corner {
|
|
321
|
+
background: #fff;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.ant-pro-base-menu-inline-item-text {
|
|
326
|
+
flex: 1;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ant-cascader-dropdown {
|
|
330
|
+
max-height: 350px;
|
|
331
|
+
overflow-y: auto;
|
|
332
|
+
background-color: #fff;
|
|
333
|
+
border-radius: 2px;
|
|
334
|
+
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
|
|
335
|
+
|
|
336
|
+
.ant-cascader-menus {
|
|
337
|
+
.ant-cascader-menu {
|
|
338
|
+
.ant-cascader-menu-item-content {
|
|
339
|
+
color: #666666;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ant-cascader-menu-item-active {
|
|
343
|
+
.ant-cascader-menu-item-content {
|
|
344
|
+
color: #0a6bfd;
|
|
345
|
+
background: #fafafc;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ant-picker-dropdown {
|
|
353
|
+
.ant-picker-panels {
|
|
354
|
+
.ant-picker-date-panel {
|
|
355
|
+
width: 350px;
|
|
356
|
+
|
|
357
|
+
.ant-picker-body {
|
|
358
|
+
padding: 8px 8px;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.ant-picker-week-panel {
|
|
363
|
+
width: 350px;
|
|
364
|
+
|
|
365
|
+
.ant-picker-body {
|
|
366
|
+
padding: 8px 8px;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.ant-picker-month-panel {
|
|
371
|
+
width: 300px;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.ant-radio-group {
|
|
377
|
+
.ant-radio-button-wrapper:first-child {
|
|
378
|
+
border-start-start-radius: 2px;
|
|
379
|
+
border-end-start-radius: 2px;
|
|
380
|
+
}
|
|
381
|
+
.ant-radio-button-wrapper:last-child {
|
|
382
|
+
border-start-end-radius: 2px;
|
|
383
|
+
border-end-end-radius: 2px;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.global-event-name-edit-name-btn {
|
|
388
|
+
opacity: 0;
|
|
389
|
+
}
|
|
390
|
+
.ant-table-cell-row-hover {
|
|
391
|
+
.global-event-name-edit-name-btn {
|
|
392
|
+
opacity: 1;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.ant-btn,
|
|
397
|
+
.ant-input,
|
|
398
|
+
.ant-select {
|
|
399
|
+
height: 30px;
|
|
400
|
+
line-height: 28px;
|
|
401
|
+
border-radius: 2px;
|
|
402
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './ant-reset.less';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
基本样式
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@primaryColor: #3b86f9;
|
|
6
|
+
@iconPrimaryColor: #0a6bfd;
|
|
7
|
+
@fontPrimaryColor: #0a6bfd;
|
|
8
|
+
@borderPrimaryColor: #b0cffe;
|
|
9
|
+
@globalBgColor: #edeff4;
|
|
10
|
+
|
|
11
|
+
@ykFontFamilySemibold: 'PingFangSC-Semibold', 'PingFang SC', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
|
|
12
|
+
sans-serif;
|
|
13
|
+
@ykFontFamilyRegular: 'PingFangSC-Regular', 'PingFang SC', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
|
|
14
|
+
sans-serif;
|
|
15
|
+
@ykFontFamilyMedium: 'PingFangSC-Medium', 'PingFang SC', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
|
|
16
|
+
sans-serif;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// src/business/AiChat/MarkdownRender.tsx
|
|
2
|
+
import { CopyOutlined } from "@ant-design/icons";
|
|
3
|
+
import { message, Tooltip } from "antd";
|
|
4
|
+
import React from "react";
|
|
5
|
+
var MarkdownRender = ({ content, msgId, isAi, onDelete }) => {
|
|
6
|
+
const copy = (c) => {
|
|
7
|
+
navigator.clipboard.writeText(c);
|
|
8
|
+
message.success("已复制");
|
|
9
|
+
};
|
|
10
|
+
const getKey = (part, i) => part.startsWith("```") ? `code-${part.slice(3, 20)}` : `text-${i}`;
|
|
11
|
+
return /* @__PURE__ */ React.createElement("div", { style: { position: "relative", lineHeight: 1.7 } }, content.split(/(```[\s\S]*?```)/g).map((part, i) => {
|
|
12
|
+
const key = getKey(part, i);
|
|
13
|
+
if (part.startsWith("```")) {
|
|
14
|
+
const m = part.match(/```(\w+)?\n([\s\S]*?)```/);
|
|
15
|
+
const code = (m == null ? void 0 : m[2]) || "";
|
|
16
|
+
return /* @__PURE__ */ React.createElement(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
key,
|
|
20
|
+
style: {
|
|
21
|
+
position: "relative",
|
|
22
|
+
background: "#f6f6f6",
|
|
23
|
+
padding: 12,
|
|
24
|
+
borderRadius: 8,
|
|
25
|
+
margin: "8px 0"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
/* @__PURE__ */ React.createElement(Tooltip, { title: "复制代码" }, /* @__PURE__ */ React.createElement(
|
|
29
|
+
CopyOutlined,
|
|
30
|
+
{
|
|
31
|
+
onClick: () => copy(code),
|
|
32
|
+
style: {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
right: 10,
|
|
35
|
+
top: 10,
|
|
36
|
+
cursor: "pointer"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
)),
|
|
40
|
+
/* @__PURE__ */ React.createElement("pre", { style: { margin: 0, whiteSpace: "pre-wrap", fontSize: 12 } }, code)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ React.createElement("div", { key, style: { whiteSpace: "pre-wrap" } }, part);
|
|
44
|
+
}), isAi && msgId && onDelete && /* @__PURE__ */ React.createElement(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
onClick: (e) => onDelete(msgId, e),
|
|
48
|
+
style: {
|
|
49
|
+
position: "absolute",
|
|
50
|
+
top: -6,
|
|
51
|
+
right: -6,
|
|
52
|
+
width: 18,
|
|
53
|
+
height: 18,
|
|
54
|
+
borderRadius: "50%",
|
|
55
|
+
background: "#fff",
|
|
56
|
+
display: "flex",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
justifyContent: "center",
|
|
59
|
+
cursor: "pointer",
|
|
60
|
+
color: "#999",
|
|
61
|
+
fontSize: 12,
|
|
62
|
+
border: "1px solid #eee"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"×"
|
|
66
|
+
));
|
|
67
|
+
};
|
|
68
|
+
var MarkdownRender_default = MarkdownRender;
|
|
69
|
+
export {
|
|
70
|
+
MarkdownRender_default as default
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=MarkdownRender.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/business/AiChat/MarkdownRender.tsx"],
|
|
4
|
+
"sourcesContent": ["import { CopyOutlined } from '@ant-design/icons';\nimport { message, Tooltip } from 'antd';\nimport React from 'react';\n\ninterface Props {\n content: string;\n msgId?: string;\n isAi?: boolean;\n onDelete?: (id: string, e: React.MouseEvent) => void;\n}\n\nconst MarkdownRender: React.FC<Props> = ({ content, msgId, isAi, onDelete }) => {\n const copy = (c: string) => {\n navigator.clipboard.writeText(c);\n message.success('已复制');\n };\n\n const getKey = (part: string, i: number) => (part.startsWith('```') ? `code-${part.slice(3, 20)}` : `text-${i}`);\n\n return (\n <div style={{ position: 'relative', lineHeight: 1.7 }}>\n {content.split(/(```[\\s\\S]*?```)/g).map((part, i) => {\n const key = getKey(part, i);\n if (part.startsWith('```')) {\n const m = part.match(/```(\\w+)?\\n([\\s\\S]*?)```/);\n const code = m?.[2] || '';\n return (\n <div\n key={key}\n style={{\n position: 'relative',\n background: '#f6f6f6',\n padding: 12,\n borderRadius: 8,\n margin: '8px 0',\n }}\n >\n <Tooltip title='复制代码'>\n <CopyOutlined\n onClick={() => copy(code)}\n style={{\n position: 'absolute',\n right: 10,\n top: 10,\n cursor: 'pointer',\n }}\n />\n </Tooltip>\n <pre style={{ margin: 0, whiteSpace: 'pre-wrap', fontSize: 12 }}>{code}</pre>\n </div>\n );\n }\n return (\n <div key={key} style={{ whiteSpace: 'pre-wrap' }}>\n {part}\n </div>\n );\n })}\n\n {isAi && msgId && onDelete && (\n <div\n onClick={(e) => onDelete(msgId, e)}\n style={{\n position: 'absolute',\n top: -6,\n right: -6,\n width: 18,\n height: 18,\n borderRadius: '50%',\n background: '#fff',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer',\n color: '#999',\n fontSize: 12,\n border: '1px solid #eee',\n }}\n >\n ×\n </div>\n )}\n </div>\n );\n};\n\nexport default MarkdownRender;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,oBAAoB;AAC7B,SAAS,SAAS,eAAe;AACjC,OAAO,WAAW;AASlB,IAAM,iBAAkC,CAAC,EAAE,SAAS,OAAO,MAAM,SAAS,MAAM;AAC9E,QAAM,OAAO,CAAC,MAAc;AAC1B,cAAU,UAAU,UAAU,CAAC;AAC/B,YAAQ,QAAQ,KAAK;AAAA,EACvB;AAEA,QAAM,SAAS,CAAC,MAAc,MAAe,KAAK,WAAW,KAAK,IAAI,QAAQ,KAAK,MAAM,GAAG,EAAE,MAAM,QAAQ;AAE5G,SACE,oCAAC,SAAI,OAAO,EAAE,UAAU,YAAY,YAAY,IAAI,KACjD,QAAQ,MAAM,mBAAmB,EAAE,IAAI,CAAC,MAAM,MAAM;AACnD,UAAM,MAAM,OAAO,MAAM,CAAC;AAC1B,QAAI,KAAK,WAAW,KAAK,GAAG;AAC1B,YAAM,IAAI,KAAK,MAAM,0BAA0B;AAC/C,YAAM,QAAO,uBAAI,OAAM;AACvB,aACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,OAAO;AAAA,YACL,UAAU;AAAA,YACV,YAAY;AAAA,YACZ,SAAS;AAAA,YACT,cAAc;AAAA,YACd,QAAQ;AAAA,UACV;AAAA;AAAA,QAEA,oCAAC,WAAQ,OAAM,UACb;AAAA,UAAC;AAAA;AAAA,YACC,SAAS,MAAM,KAAK,IAAI;AAAA,YACxB,OAAO;AAAA,cACL,UAAU;AAAA,cACV,OAAO;AAAA,cACP,KAAK;AAAA,cACL,QAAQ;AAAA,YACV;AAAA;AAAA,QACF,CACF;AAAA,QACA,oCAAC,SAAI,OAAO,EAAE,QAAQ,GAAG,YAAY,YAAY,UAAU,GAAG,KAAI,IAAK;AAAA,MACzE;AAAA,IAEJ;AACA,WACE,oCAAC,SAAI,KAAU,OAAO,EAAE,YAAY,WAAW,KAC5C,IACH;AAAA,EAEJ,CAAC,GAEA,QAAQ,SAAS,YAChB;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,CAAC,MAAM,SAAS,OAAO,CAAC;AAAA,MACjC,OAAO;AAAA,QACL,UAAU;AAAA,QACV,KAAK;AAAA,QACL,OAAO;AAAA,QACP,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,cAAc;AAAA,QACd,YAAY;AAAA,QACZ,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,UAAU;AAAA,QACV,QAAQ;AAAA,MACV;AAAA;AAAA,IACD;AAAA,EAED,CAEJ;AAEJ;AAEA,IAAO,yBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CSSProperties, FC, ReactNode } from 'react';
|
|
2
|
+
import type { AiChatConfig, EnhancedAiChatConfig } from './type';
|
|
3
|
+
export interface AiChatProps extends AiChatConfig, Partial<EnhancedAiChatConfig> {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
renderTrigger?: ReactNode;
|
|
7
|
+
renderHeader?: ReactNode;
|
|
8
|
+
renderFooter?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const AiChat: FC<AiChatProps>;
|
|
11
|
+
export default AiChat;
|
|
12
|
+
export { generateSuggestions, isTaskCreationIntent, parseTaskDescription, recognizeIntent } from './intentRecognizer';
|
|
13
|
+
export { delay, NavigationManager } from './navigationManager';
|
|
14
|
+
export type { AiChatConfig, ChatSession, EnhancedAiChatConfig, Intent, IntentType, Message, NavigationOptions, Task, TaskCategory, TaskCreationResult, TaskPriority, TaskStatus, UseAiChatOptions, UseAiChatReturn, } from './type';
|
|
15
|
+
export { useAiChat } from './useAiChat';
|
|
16
|
+
export { useTaskWorkflow } from './useTaskWorkflow';
|