@pisell/materials 6.11.10 → 6.11.11
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +21 -21
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +17 -17
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +10 -0
- package/es/components/PisellBasicGrid/hooks/index.d.ts +1 -0
- package/es/components/PisellBasicGrid/hooks/useGridStyle.d.ts +37 -0
- package/es/components/PisellBasicGrid/index.d.ts +6 -0
- package/es/components/PisellBasicGrid/types.d.ts +221 -0
- package/es/components/PisellBasicGrid/utils/index.d.ts +63 -0
- package/es/components/PisellCards/PisellCards.d.ts +8 -0
- package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +19 -0
- package/es/components/PisellCards/components/MultilevelCard/components/CardWrapper.d.ts +7 -0
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
- package/es/components/PisellCards/components/MultilevelCard/components/index.d.ts +2 -0
- package/es/components/PisellCards/components/MultilevelCard/hooks/index.d.ts +2 -0
- package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +31 -0
- package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardHover.d.ts +28 -0
- package/es/components/PisellCards/components/MultilevelCard/index.d.ts +2 -0
- package/es/components/PisellCards/components/MultilevelCard/types.d.ts +202 -0
- package/es/components/PisellCards/components/MultilevelCard/utils/index.d.ts +6 -0
- package/es/components/PisellCards/components/PisellImageCard/components/index.d.ts +0 -0
- package/es/components/PisellCards/components/PisellImageCard/hooks/index.d.ts +5 -0
- package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +11 -0
- package/es/components/PisellCards/components/PisellImageCard/hooks/usePisellImageCardStyle.d.ts +10 -0
- package/es/components/PisellCards/components/PisellImageCard/types.d.ts +74 -0
- package/es/components/PisellCards/components/PisellImageCard/utils/getImageObjectFit.d.ts +7 -0
- package/es/components/PisellCards/components/PisellImageCard/utils/getTruncatedText.d.ts +7 -0
- package/es/components/PisellCards/components/PisellImageCard/utils/index.d.ts +5 -0
- package/es/components/PisellCards/components/TabCard/TabCard.d.ts +4 -0
- package/es/components/PisellCards/components/TabCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/TabCard/types.d.ts +70 -0
- package/es/components/PisellCards/components/TextCard/hooks/index.d.ts +0 -0
- package/es/components/PisellCards/components/TextCard/utils/index.d.ts +0 -0
- package/es/components/PisellCards/hooks/index.d.ts +0 -0
- package/es/components/PisellCards/types.d.ts +48 -0
- package/es/components/PisellCards/utils/index.d.ts +0 -0
- package/es/components/PisellProcedure/PisellProcedure.d.ts +22 -0
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/es/components/PisellProcedure/components/FooterActions.d.ts +24 -0
- package/es/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
- package/es/components/PisellProcedure/components/ProcedureContent.d.ts +23 -0
- package/es/components/PisellProcedure/components/ProcedureFooter.d.ts +38 -0
- package/es/components/PisellProcedure/components/ProcedureHeader.d.ts +34 -0
- package/es/components/PisellProcedure/components/ProcedureSidebar.d.ts +38 -0
- package/es/components/PisellProcedure/components/index.d.ts +12 -0
- package/es/components/PisellProcedure/hooks/index.d.ts +8 -0
- package/es/components/PisellProcedure/hooks/useElementSize.d.ts +38 -0
- package/es/components/PisellProcedure/hooks/useOverflowActions.d.ts +43 -0
- package/es/components/PisellProcedure/hooks/useResponsiveClass.d.ts +6 -0
- package/es/components/PisellProcedure/hooks/useSidebarHeight.d.ts +16 -0
- package/es/components/PisellProcedure/hooks/useStepManager.d.ts +50 -0
- package/es/components/PisellProcedure/index.d.ts +5 -0
- package/es/components/PisellProcedure/types.d.ts +363 -0
- package/es/components/PisellProcedure/utils/classNames.d.ts +33 -0
- package/es/components/PisellProcedure/utils/extractText.d.ts +20 -0
- package/es/components/PisellProcedure/utils/footerPosition.d.ts +41 -0
- package/es/components/PisellProcedure/utils/index.d.ts +8 -0
- package/es/components/PisellProcedure/utils/layoutRatio.d.ts +42 -0
- package/es/components/PisellProcedure/utils/slotHelper.d.ts +27 -0
- package/es/components/PisellScrollView/PisellScrollView.d.ts +5 -0
- package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
- package/es/components/PisellScrollView/components/Actions/index.d.ts +12 -0
- package/es/components/PisellScrollView/hooks/index.d.ts +3 -0
- package/es/components/PisellScrollView/hooks/useIntersection.d.ts +8 -0
- package/es/components/PisellScrollView/hooks/useScrollEvents.d.ts +20 -0
- package/es/components/PisellScrollView/hooks/useScrollState.d.ts +13 -0
- package/es/components/PisellScrollView/index.d.ts +3 -0
- package/es/components/PisellScrollView/types.d.ts +203 -0
- package/es/components/PisellScrollView/utils/index.d.ts +0 -0
- package/es/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
- package/es/components/PisellSteps/hooks/index.d.ts +4 -0
- package/es/components/PisellSteps/hooks/useAnchor.d.ts +9 -0
- package/es/components/PisellSteps/hooks/useResponsive.d.ts +8 -0
- package/es/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
- package/es/components/PisellSteps/hooks/useStepsState.d.ts +9 -0
- package/es/components/PisellSteps/index.d.ts +3 -0
- package/es/components/PisellSteps/types.d.ts +257 -0
- package/es/components/PisellSteps/utils/index.d.ts +54 -0
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
- package/es/components/PisellSuperTabs/components/index.d.ts +0 -0
- package/es/components/PisellSuperTabs/hooks/index.d.ts +1 -0
- package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
- package/es/components/PisellSuperTabs/index.d.ts +3 -0
- package/es/components/PisellSuperTabs/types.d.ts +212 -0
- package/es/components/PisellSuperTabs/utils/getRowKey.d.ts +8 -0
- package/es/components/PisellSuperTabs/utils/index.d.ts +1 -0
- package/es/components/PisellTabbar/constants.d.ts +47 -0
- package/es/components/PisellTabbar/hooks/index.d.ts +2 -0
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/es/components/PisellTabbar/locales.d.ts +23 -0
- package/es/components/PisellTabbar/mock.d.ts +47 -0
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/es/components/PisellTabbar/template/index.d.ts +0 -0
- package/es/components/PisellTabbar/types.d.ts +90 -0
- package/es/components/PisellTabbar/utils/index.d.ts +69 -0
- package/es/components/PisellTabbar2/constants.d.ts +46 -0
- package/es/components/PisellTabbar2/hooks/index.d.ts +2 -0
- package/es/components/PisellTabbar2/hooks/useActiveKey.d.ts +50 -0
- package/es/components/PisellTabbar2/hooks/useExpand.d.ts +41 -0
- package/es/components/PisellTabbar2/locales.d.ts +23 -0
- package/es/components/PisellTabbar2/mock.d.ts +205 -0
- package/es/components/PisellTabbar2/types.d.ts +117 -0
- package/es/components/PisellTabbar2/utils/index.d.ts +35 -0
- package/es/components/PisellTabbar3/locales.d.ts +23 -0
- package/es/components/PisellTabbar3/mock.d.ts +47 -0
- package/es/components/PisellTabbar3/types.d.ts +111 -0
- package/es/components/Template/PisellSteps.d.ts +0 -0
- package/es/components/Template/components/index.d.ts +0 -0
- package/es/components/Template/hooks/index.d.ts +0 -0
- package/es/components/Template/index.d.ts +0 -0
- package/es/components/Template/types.d.ts +0 -0
- package/es/components/Template/utils/index.d.ts +0 -0
- package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/es/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +7 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
- package/es/components/keyboard/index.d.ts +22 -0
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellBatchActionBar/types.d.ts +237 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/pisellDataSourceContainer/utils/formatData.d.ts +9 -0
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +0 -2
- package/es/components/pisellDateTimeDisplay/types.d.ts +352 -0
- package/es/components/pisellDateTimeDisplay/utils/formatTime.d.ts +19 -0
- package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +18 -0
- package/es/components/pisellEmail/constants/emailDomains.d.ts +5 -0
- package/es/components/pisellEmail/constants/emailRegex.d.ts +13 -0
- package/es/components/pisellEmail/utils/domainSuggestions.d.ts +15 -0
- package/es/components/pisellGridPro/GridPro.d.ts +9 -0
- package/es/components/pisellGridPro/GridView/index.d.ts +6 -0
- package/es/components/pisellGridPro/GridView/type.d.ts +3 -0
- package/es/components/pisellGridPro/ToolBar/index.d.ts +6 -0
- package/es/components/pisellGridPro/ToolBar/type.d.ts +10 -0
- package/es/components/pisellGridPro/components/DataCard/components/StatCard/index.d.ts +10 -0
- package/es/components/pisellGridPro/components/DataCard/index.d.ts +6 -0
- package/es/components/pisellGridPro/components/DataCard/types.d.ts +70 -0
- package/es/components/pisellGridPro/components/Footer/index.d.ts +9 -0
- package/es/components/pisellGridPro/components/Header/index.d.ts +12 -0
- package/es/components/pisellGridPro/index.d.ts +4 -0
- package/es/components/pisellLayout/index.d.ts +14 -0
- package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/es/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
- package/es/components/pisellLookup/components/HotWords.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/es/components/pisellLookup/components/SearchHistory.d.ts +7 -0
- package/es/components/pisellLookup/components/SuggestWords.d.ts +7 -0
- package/es/components/pisellLookup/components/index.d.ts +9 -0
- package/es/components/pisellLookup/hooks/index.d.ts +6 -0
- package/es/components/pisellLookup/hooks/useDebounceSearch.d.ts +40 -0
- package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
- package/es/components/pisellLookup/hooks/useSearchState.d.ts +80 -0
- package/es/components/pisellLookup/index.d.ts +6 -0
- package/es/components/pisellLookup/types.d.ts +667 -0
- package/es/components/pisellLookup/utils/index.d.ts +5 -0
- package/es/components/pisellLookup/utils/storage.d.ts +42 -0
- package/es/components/pisellLookup/utils/trigger.d.ts +42 -0
- package/es/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
- package/es/components/pisellMetricCard/components/MetricTitle.d.ts +12 -0
- package/es/components/pisellMetricCard/components/MetricValue.d.ts +12 -0
- package/es/components/pisellMetricCard/components/TrendIcon.d.ts +14 -0
- package/es/components/pisellMetricCard/components/index.d.ts +7 -0
- package/es/components/pisellMetricCard/index.d.ts +6 -0
- package/es/components/pisellMetricCard/types.d.ts +201 -0
- package/es/components/pisellMetricCard/utils/calculateTrend.d.ts +14 -0
- package/es/components/pisellPercent/utils/rangeConverter.d.ts +36 -0
- package/es/components/pisellPhone/utils/phoneFormatter.d.ts +39 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +32 -8
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +8 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +482 -249
- package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +122 -16
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +38 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +4 -2
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +92 -13
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +7 -3
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -1
- package/es/components/pisellRecordBoard/types.d.ts +311 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +21 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +112 -15
- package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/es/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
- package/es/components/pisellShellFrame/index.d.ts +2 -0
- package/es/components/pisellShellFrame/types.d.ts +56 -0
- package/es/components/pisellSort/index.d.ts +4 -0
- package/es/components/pisellSort/type.d.ts +7 -0
- package/es/components/pisellStatisticList/index.d.ts +22 -0
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
- package/es/components/pisellTimeRangeDisplay/index.d.ts +3 -0
- package/es/components/pisellTimeRangeDisplay/types.d.ts +137 -0
- package/es/components/pisellTimeRangeDisplay/utils/formatDuration.d.ts +14 -0
- package/es/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +23 -0
- package/es/components/pisellUrl/utils/index.d.ts +6 -0
- package/es/components/pisellUrl/utils/urlFormatter.d.ts +38 -0
- package/es/components/pisellUrl/utils/urlHelper.d.ts +63 -0
- package/es/components/pisellUrl/utils/urlValidator.d.ts +46 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/locales.d.ts +163 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +85 -0
- package/es/components/select/index.d.ts +9 -0
- package/es/components/sort/types.d.ts +39 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/types/index.d.ts +33 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +44 -0
- package/es/hooks/useMobile.d.ts +8 -0
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/en-US.js +2 -0
- package/es/locales/ja.d.ts +2 -0
- package/es/locales/ja.js +2 -0
- package/es/locales/pt.d.ts +2 -0
- package/es/locales/pt.js +2 -0
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +2 -0
- package/es/locales/zh-TW.d.ts +2 -0
- package/es/locales/zh-TW.js +2 -0
- package/es/theme/tokens.d.ts +22 -0
- package/es/utils/tagColor.d.ts +7 -0
- package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +10 -0
- package/lib/components/PisellBasicGrid/hooks/index.d.ts +1 -0
- package/lib/components/PisellBasicGrid/hooks/useGridStyle.d.ts +37 -0
- package/lib/components/PisellBasicGrid/index.d.ts +6 -0
- package/lib/components/PisellBasicGrid/types.d.ts +221 -0
- package/lib/components/PisellBasicGrid/utils/index.d.ts +63 -0
- package/lib/components/PisellCards/PisellCards.d.ts +8 -0
- package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +19 -0
- package/lib/components/PisellCards/components/MultilevelCard/components/CardWrapper.d.ts +7 -0
- package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
- package/lib/components/PisellCards/components/MultilevelCard/components/index.d.ts +2 -0
- package/lib/components/PisellCards/components/MultilevelCard/hooks/index.d.ts +2 -0
- package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +31 -0
- package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardHover.d.ts +28 -0
- package/lib/components/PisellCards/components/MultilevelCard/index.d.ts +2 -0
- package/lib/components/PisellCards/components/MultilevelCard/types.d.ts +202 -0
- package/lib/components/PisellCards/components/MultilevelCard/utils/index.d.ts +6 -0
- package/lib/components/PisellCards/components/PisellImageCard/components/index.d.ts +0 -0
- package/lib/components/PisellCards/components/PisellImageCard/hooks/index.d.ts +5 -0
- package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +11 -0
- package/lib/components/PisellCards/components/PisellImageCard/hooks/usePisellImageCardStyle.d.ts +10 -0
- package/lib/components/PisellCards/components/PisellImageCard/types.d.ts +74 -0
- package/lib/components/PisellCards/components/PisellImageCard/utils/getImageObjectFit.d.ts +7 -0
- package/lib/components/PisellCards/components/PisellImageCard/utils/getTruncatedText.d.ts +7 -0
- package/lib/components/PisellCards/components/PisellImageCard/utils/index.d.ts +5 -0
- package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +4 -0
- package/lib/components/PisellCards/components/TabCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/TabCard/types.d.ts +70 -0
- package/lib/components/PisellCards/components/TextCard/hooks/index.d.ts +0 -0
- package/lib/components/PisellCards/components/TextCard/utils/index.d.ts +0 -0
- package/lib/components/PisellCards/hooks/index.d.ts +0 -0
- package/lib/components/PisellCards/types.d.ts +48 -0
- package/lib/components/PisellCards/utils/index.d.ts +0 -0
- package/lib/components/PisellProcedure/PisellProcedure.d.ts +22 -0
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/lib/components/PisellProcedure/components/FooterActions.d.ts +24 -0
- package/lib/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
- package/lib/components/PisellProcedure/components/ProcedureContent.d.ts +23 -0
- package/lib/components/PisellProcedure/components/ProcedureFooter.d.ts +38 -0
- package/lib/components/PisellProcedure/components/ProcedureHeader.d.ts +34 -0
- package/lib/components/PisellProcedure/components/ProcedureSidebar.d.ts +38 -0
- package/lib/components/PisellProcedure/components/index.d.ts +12 -0
- package/lib/components/PisellProcedure/hooks/index.d.ts +8 -0
- package/lib/components/PisellProcedure/hooks/useElementSize.d.ts +38 -0
- package/lib/components/PisellProcedure/hooks/useOverflowActions.d.ts +43 -0
- package/lib/components/PisellProcedure/hooks/useResponsiveClass.d.ts +6 -0
- package/lib/components/PisellProcedure/hooks/useSidebarHeight.d.ts +16 -0
- package/lib/components/PisellProcedure/hooks/useStepManager.d.ts +50 -0
- package/lib/components/PisellProcedure/index.d.ts +5 -0
- package/lib/components/PisellProcedure/types.d.ts +363 -0
- package/lib/components/PisellProcedure/utils/classNames.d.ts +33 -0
- package/lib/components/PisellProcedure/utils/extractText.d.ts +20 -0
- package/lib/components/PisellProcedure/utils/footerPosition.d.ts +41 -0
- package/lib/components/PisellProcedure/utils/index.d.ts +8 -0
- package/lib/components/PisellProcedure/utils/layoutRatio.d.ts +42 -0
- package/lib/components/PisellProcedure/utils/slotHelper.d.ts +27 -0
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +5 -0
- package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
- package/lib/components/PisellScrollView/components/Actions/index.d.ts +12 -0
- package/lib/components/PisellScrollView/hooks/index.d.ts +3 -0
- package/lib/components/PisellScrollView/hooks/useIntersection.d.ts +8 -0
- package/lib/components/PisellScrollView/hooks/useScrollEvents.d.ts +20 -0
- package/lib/components/PisellScrollView/hooks/useScrollState.d.ts +13 -0
- package/lib/components/PisellScrollView/index.d.ts +3 -0
- package/lib/components/PisellScrollView/types.d.ts +203 -0
- package/lib/components/PisellScrollView/utils/index.d.ts +0 -0
- package/lib/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
- package/lib/components/PisellSteps/hooks/index.d.ts +4 -0
- package/lib/components/PisellSteps/hooks/useAnchor.d.ts +9 -0
- package/lib/components/PisellSteps/hooks/useResponsive.d.ts +8 -0
- package/lib/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
- package/lib/components/PisellSteps/hooks/useStepsState.d.ts +9 -0
- package/lib/components/PisellSteps/index.d.ts +3 -0
- package/lib/components/PisellSteps/types.d.ts +257 -0
- package/lib/components/PisellSteps/utils/index.d.ts +54 -0
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
- package/lib/components/PisellSuperTabs/components/index.d.ts +0 -0
- package/lib/components/PisellSuperTabs/hooks/index.d.ts +1 -0
- package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
- package/lib/components/PisellSuperTabs/index.d.ts +3 -0
- package/lib/components/PisellSuperTabs/types.d.ts +212 -0
- package/lib/components/PisellSuperTabs/utils/getRowKey.d.ts +8 -0
- package/lib/components/PisellSuperTabs/utils/index.d.ts +1 -0
- package/lib/components/PisellTabbar/constants.d.ts +47 -0
- package/lib/components/PisellTabbar/hooks/index.d.ts +2 -0
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/lib/components/PisellTabbar/locales.d.ts +23 -0
- package/lib/components/PisellTabbar/mock.d.ts +47 -0
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/lib/components/PisellTabbar/template/index.d.ts +0 -0
- package/lib/components/PisellTabbar/types.d.ts +90 -0
- package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
- package/lib/components/PisellTabbar2/constants.d.ts +46 -0
- package/lib/components/PisellTabbar2/hooks/index.d.ts +2 -0
- package/lib/components/PisellTabbar2/hooks/useActiveKey.d.ts +50 -0
- package/lib/components/PisellTabbar2/hooks/useExpand.d.ts +41 -0
- package/lib/components/PisellTabbar2/locales.d.ts +23 -0
- package/lib/components/PisellTabbar2/mock.d.ts +205 -0
- package/lib/components/PisellTabbar2/types.d.ts +117 -0
- package/lib/components/PisellTabbar2/utils/index.d.ts +35 -0
- package/lib/components/PisellTabbar3/locales.d.ts +23 -0
- package/lib/components/PisellTabbar3/mock.d.ts +47 -0
- package/lib/components/PisellTabbar3/types.d.ts +111 -0
- package/lib/components/Template/PisellSteps.d.ts +0 -0
- package/lib/components/Template/components/index.d.ts +0 -0
- package/lib/components/Template/hooks/index.d.ts +0 -0
- package/lib/components/Template/index.d.ts +0 -0
- package/lib/components/Template/types.d.ts +0 -0
- package/lib/components/Template/utils/index.d.ts +0 -0
- package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/lib/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +7 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
- package/lib/components/keyboard/index.d.ts +22 -0
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellBatchActionBar/types.d.ts +237 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/pisellDataSourceContainer/utils/formatData.d.ts +9 -0
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +0 -2
- package/lib/components/pisellDateTimeDisplay/types.d.ts +352 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatTime.d.ts +19 -0
- package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +18 -0
- package/lib/components/pisellEmail/constants/emailDomains.d.ts +5 -0
- package/lib/components/pisellEmail/constants/emailRegex.d.ts +13 -0
- package/lib/components/pisellEmail/utils/domainSuggestions.d.ts +15 -0
- package/lib/components/pisellGridPro/GridPro.d.ts +9 -0
- package/lib/components/pisellGridPro/GridView/index.d.ts +6 -0
- package/lib/components/pisellGridPro/GridView/type.d.ts +3 -0
- package/lib/components/pisellGridPro/ToolBar/index.d.ts +6 -0
- package/lib/components/pisellGridPro/ToolBar/type.d.ts +10 -0
- package/lib/components/pisellGridPro/components/DataCard/components/StatCard/index.d.ts +10 -0
- package/lib/components/pisellGridPro/components/DataCard/index.d.ts +6 -0
- package/lib/components/pisellGridPro/components/DataCard/types.d.ts +70 -0
- package/lib/components/pisellGridPro/components/Footer/index.d.ts +9 -0
- package/lib/components/pisellGridPro/components/Header/index.d.ts +12 -0
- package/lib/components/pisellGridPro/index.d.ts +4 -0
- package/lib/components/pisellLayout/index.d.ts +14 -0
- package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/lib/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
- package/lib/components/pisellLookup/components/HotWords.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/lib/components/pisellLookup/components/SearchHistory.d.ts +7 -0
- package/lib/components/pisellLookup/components/SuggestWords.d.ts +7 -0
- package/lib/components/pisellLookup/components/index.d.ts +9 -0
- package/lib/components/pisellLookup/hooks/index.d.ts +6 -0
- package/lib/components/pisellLookup/hooks/useDebounceSearch.d.ts +40 -0
- package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
- package/lib/components/pisellLookup/hooks/useSearchState.d.ts +80 -0
- package/lib/components/pisellLookup/index.d.ts +6 -0
- package/lib/components/pisellLookup/types.d.ts +667 -0
- package/lib/components/pisellLookup/utils/index.d.ts +5 -0
- package/lib/components/pisellLookup/utils/storage.d.ts +42 -0
- package/lib/components/pisellLookup/utils/trigger.d.ts +42 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
- package/lib/components/pisellMetricCard/components/MetricTitle.d.ts +12 -0
- package/lib/components/pisellMetricCard/components/MetricValue.d.ts +12 -0
- package/lib/components/pisellMetricCard/components/TrendIcon.d.ts +14 -0
- package/lib/components/pisellMetricCard/components/index.d.ts +7 -0
- package/lib/components/pisellMetricCard/index.d.ts +6 -0
- package/lib/components/pisellMetricCard/types.d.ts +201 -0
- package/lib/components/pisellMetricCard/utils/calculateTrend.d.ts +14 -0
- package/lib/components/pisellPercent/utils/rangeConverter.d.ts +36 -0
- package/lib/components/pisellPhone/utils/phoneFormatter.d.ts +39 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +30 -6
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +8 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +159 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +95 -9
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +38 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +4 -2
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +88 -3
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -2
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -1
- package/lib/components/pisellRecordBoard/types.d.ts +311 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +21 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +60 -0
- package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
- package/lib/components/pisellShellFrame/index.d.ts +2 -0
- package/lib/components/pisellShellFrame/types.d.ts +56 -0
- package/lib/components/pisellSort/index.d.ts +4 -0
- package/lib/components/pisellSort/type.d.ts +7 -0
- package/lib/components/pisellStatisticList/index.d.ts +22 -0
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
- package/lib/components/pisellTimeRangeDisplay/index.d.ts +3 -0
- package/lib/components/pisellTimeRangeDisplay/types.d.ts +137 -0
- package/lib/components/pisellTimeRangeDisplay/utils/formatDuration.d.ts +14 -0
- package/lib/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +23 -0
- package/lib/components/pisellUrl/utils/index.d.ts +6 -0
- package/lib/components/pisellUrl/utils/urlFormatter.d.ts +38 -0
- package/lib/components/pisellUrl/utils/urlHelper.d.ts +63 -0
- package/lib/components/pisellUrl/utils/urlValidator.d.ts +46 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/locales.d.ts +163 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +85 -0
- package/lib/components/select/index.d.ts +9 -0
- package/lib/components/sort/types.d.ts +39 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/types/index.d.ts +33 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +44 -0
- package/lib/hooks/useMobile.d.ts +8 -0
- package/lib/locales/en-US.d.ts +2 -0
- package/lib/locales/en-US.js +2 -0
- package/lib/locales/ja.d.ts +2 -0
- package/lib/locales/ja.js +2 -0
- package/lib/locales/pt.d.ts +2 -0
- package/lib/locales/pt.js +2 -0
- package/lib/locales/zh-CN.d.ts +2 -0
- package/lib/locales/zh-CN.js +2 -0
- package/lib/locales/zh-TW.d.ts +2 -0
- package/lib/locales/zh-TW.js +2 -0
- package/lib/theme/tokens.d.ts +22 -0
- package/lib/utils/tagColor.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
import type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, ContainerStyleConfig, TextStyleConfig, TextAlign } from '../pisellDateTimeDisplay/types';
|
|
4
|
+
export type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, ContainerStyleConfig, TextStyleConfig, TextAlign, };
|
|
5
|
+
/**
|
|
6
|
+
* 字段类型(时间区间、日期、星期、持续时长)
|
|
7
|
+
* - time: 时间区间块(HH:mm-HH:mm 或跨天起止)
|
|
8
|
+
* - date: 日期块
|
|
9
|
+
* - weekday: 星期块
|
|
10
|
+
* - duration: 持续时长块
|
|
11
|
+
*/
|
|
12
|
+
export declare type TimeRangeFieldType = 'time' | 'date' | 'weekday' | 'duration';
|
|
13
|
+
/**
|
|
14
|
+
* 持续时长格式配置
|
|
15
|
+
*/
|
|
16
|
+
export interface DurationFormatConfig {
|
|
17
|
+
/**
|
|
18
|
+
* 是否显示秒
|
|
19
|
+
* @default false
|
|
20
|
+
* @example true -> "2h30m23s" | false -> "2h30m"
|
|
21
|
+
*/
|
|
22
|
+
showSeconds?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 字段配置
|
|
26
|
+
*/
|
|
27
|
+
export interface TimeRangeFieldConfig {
|
|
28
|
+
/**
|
|
29
|
+
* 是否显示时间区间块
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
showTimeRange?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 是否显示日期块
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
showDate?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 是否显示星期块
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
showWeekday?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 是否显示持续时长块
|
|
45
|
+
* @default true
|
|
46
|
+
*/
|
|
47
|
+
showDuration?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 字段顺序(四类块可任意排序;默认 时间 日期 星期 持续时长,可实现「持续时间在前」等)
|
|
50
|
+
* @default ['weekday', 'date', 'time', 'duration'] 换行顺序:先持续时间 → 结束时间(跨天)→ 开始/结束时间与日期 → 星期
|
|
51
|
+
*/
|
|
52
|
+
fieldOrder?: TimeRangeFieldType[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* startAt / endAt 的 dayjs 兼容值
|
|
56
|
+
*/
|
|
57
|
+
export declare type DayjsLike = Dayjs | string | number;
|
|
58
|
+
/**
|
|
59
|
+
* PisellTimeRangeDisplay 组件 Props
|
|
60
|
+
*/
|
|
61
|
+
export interface PisellTimeRangeDisplayProps {
|
|
62
|
+
/**
|
|
63
|
+
* 开始时间(dayjs 兼容值)
|
|
64
|
+
*/
|
|
65
|
+
startAt: DayjsLike;
|
|
66
|
+
/**
|
|
67
|
+
* 结束时间(dayjs 兼容值)
|
|
68
|
+
*/
|
|
69
|
+
endAt: DayjsLike;
|
|
70
|
+
/**
|
|
71
|
+
* 文本对齐方式(单行/多行均生效)
|
|
72
|
+
* @default 'center'
|
|
73
|
+
*/
|
|
74
|
+
textAlign?: TextAlign;
|
|
75
|
+
/**
|
|
76
|
+
* 字段显示与排序配置
|
|
77
|
+
*/
|
|
78
|
+
fields?: TimeRangeFieldConfig;
|
|
79
|
+
/**
|
|
80
|
+
* 同一天时是否显示具体日期
|
|
81
|
+
* @default true
|
|
82
|
+
*/
|
|
83
|
+
showDateForSameDay?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* 时间格式配置(复用 PisellDateTimeDisplay)
|
|
86
|
+
*/
|
|
87
|
+
timeFormat?: TimeFormatConfig;
|
|
88
|
+
/**
|
|
89
|
+
* 日期格式配置(复用 PisellDateTimeDisplay)
|
|
90
|
+
*/
|
|
91
|
+
dateFormat?: DateFormatConfig;
|
|
92
|
+
/**
|
|
93
|
+
* 星期格式配置(复用 PisellDateTimeDisplay)
|
|
94
|
+
*/
|
|
95
|
+
weekdayFormat?: WeekdayFormatConfig;
|
|
96
|
+
/**
|
|
97
|
+
* 持续时长格式配置
|
|
98
|
+
*/
|
|
99
|
+
durationFormat?: DurationFormatConfig;
|
|
100
|
+
/**
|
|
101
|
+
* 容器样式
|
|
102
|
+
*/
|
|
103
|
+
containerStyle?: ContainerStyleConfig;
|
|
104
|
+
/**
|
|
105
|
+
* 时间区间文本样式
|
|
106
|
+
*/
|
|
107
|
+
timeStyle?: TextStyleConfig;
|
|
108
|
+
/**
|
|
109
|
+
* 日期文本样式
|
|
110
|
+
*/
|
|
111
|
+
dateStyle?: TextStyleConfig;
|
|
112
|
+
/**
|
|
113
|
+
* 星期文本样式
|
|
114
|
+
*/
|
|
115
|
+
weekdayStyle?: TextStyleConfig;
|
|
116
|
+
/**
|
|
117
|
+
* 持续时长文本样式
|
|
118
|
+
*/
|
|
119
|
+
durationStyle?: TextStyleConfig;
|
|
120
|
+
/**
|
|
121
|
+
* dayjs locale(语言代码)
|
|
122
|
+
* @default 优先使用全局配置,其次浏览器语言
|
|
123
|
+
*/
|
|
124
|
+
locale?: string;
|
|
125
|
+
/**
|
|
126
|
+
* 自定义类名
|
|
127
|
+
*/
|
|
128
|
+
className?: string;
|
|
129
|
+
/**
|
|
130
|
+
* 自定义样式
|
|
131
|
+
*/
|
|
132
|
+
style?: CSSProperties;
|
|
133
|
+
/**
|
|
134
|
+
* 点击回调
|
|
135
|
+
*/
|
|
136
|
+
onClick?: () => void;
|
|
137
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 将毫秒数格式化为持续时间字符串(d h m s 或 天/时/分/秒)
|
|
3
|
+
*
|
|
4
|
+
* @param ms 持续时间(毫秒)
|
|
5
|
+
* @param showSeconds 是否显示秒,默认 false
|
|
6
|
+
* @param locale 语言代码,zh 时使用「天/时/分/秒」,否则使用 d/h/m/s
|
|
7
|
+
* @returns 如 "2h30m"、"1d2h30m23s" 或 "2时30分"、"1天2时30分23秒"
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* formatDuration(9000000, false) // => "2h30m"
|
|
11
|
+
* formatDuration(9000000, false, 'zh-cn') // => "2时30分"
|
|
12
|
+
* formatDuration(86400000, false) // => "1d"
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatDuration(ms: number, showSeconds?: boolean, locale?: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Dayjs } from 'dayjs';
|
|
2
|
+
import type { DayjsLike } from '../types';
|
|
3
|
+
export interface ParseTimeRangeResult {
|
|
4
|
+
/** 开始时间(已应用 locale) */
|
|
5
|
+
start: Dayjs;
|
|
6
|
+
/** 结束时间(已应用 locale) */
|
|
7
|
+
end: Dayjs;
|
|
8
|
+
/** 是否同一天(按本地时区自然日判定) */
|
|
9
|
+
isSameDay: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 解析 startAt / endAt 为 Dayjs,并判定是否同一天
|
|
13
|
+
*
|
|
14
|
+
* @param startAt 开始时间(dayjs 兼容值)
|
|
15
|
+
* @param endAt 结束时间(dayjs 兼容值)
|
|
16
|
+
* @param locale dayjs locale,可选
|
|
17
|
+
* @returns { start, end, isSameDay }
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* parseTimeRange('2026-02-04 09:00', '2026-02-04 18:00', 'zh-cn')
|
|
21
|
+
* // => { start: Dayjs, end: Dayjs, isSameDay: true }
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseTimeRange(startAt: DayjsLike, endAt: DayjsLike, locale?: string): ParseTimeRangeResult;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* URL 格式化工具函数
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 格式化 URL 显示
|
|
6
|
+
* @param url URL 地址
|
|
7
|
+
* @param options 格式化选项
|
|
8
|
+
* @returns 格式化后的 URL
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* formatUrlDisplay('https://www.example.com/path', { showProtocol: false })
|
|
12
|
+
* // 'www.example.com/path'
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatUrlDisplay(url: string, options: {
|
|
15
|
+
showProtocol?: boolean;
|
|
16
|
+
showWww?: boolean;
|
|
17
|
+
showPathname?: boolean;
|
|
18
|
+
displayFormat?: 'full' | 'domain' | 'custom';
|
|
19
|
+
customFormat?: (url: string) => string;
|
|
20
|
+
}): string;
|
|
21
|
+
/**
|
|
22
|
+
* 隐藏 URL 协议
|
|
23
|
+
* @param url URL 地址
|
|
24
|
+
* @returns 隐藏协议后的 URL
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* hideUrlProtocol('https://example.com') // 'example.com'
|
|
28
|
+
*/
|
|
29
|
+
export declare function hideUrlProtocol(url: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* 隐藏 www 前缀
|
|
32
|
+
* @param url URL 地址
|
|
33
|
+
* @returns 隐藏 www 后的 URL
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* hideWwwPrefix('https://www.example.com') // 'https://example.com'
|
|
37
|
+
*/
|
|
38
|
+
export declare function hideWwwPrefix(url: string): string;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* URL 辅助函数
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 规范化 URL(补全协议)
|
|
6
|
+
* @param url URL 地址
|
|
7
|
+
* @param defaultProtocol 默认协议
|
|
8
|
+
* @returns 规范化后的 URL
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* normalizeUrl('example.com', 'https://') // 'https://example.com'
|
|
12
|
+
* normalizeUrl('http://example.com', 'https://') // 'http://example.com'
|
|
13
|
+
*/
|
|
14
|
+
export declare function normalizeUrl(url: string, defaultProtocol?: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* 智能补全协议(识别 localhost)
|
|
17
|
+
* @param url URL 地址
|
|
18
|
+
* @returns 规范化后的 URL
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* smartNormalizeUrl('localhost:3000') // 'http://localhost:3000'
|
|
22
|
+
* smartNormalizeUrl('example.com') // 'https://example.com'
|
|
23
|
+
*/
|
|
24
|
+
export declare function smartNormalizeUrl(url: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* 提取域名
|
|
27
|
+
* @param url URL 地址
|
|
28
|
+
* @returns 域名
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* extractDomain('https://www.example.com/path') // 'www.example.com'
|
|
32
|
+
*/
|
|
33
|
+
export declare function extractDomain(url: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* 处理链接跳转(安全性保障)
|
|
36
|
+
* @param url URL 地址
|
|
37
|
+
* @param openInNewWindow 是否新窗口打开
|
|
38
|
+
* @param defaultProtocol 默认协议
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* handleUrlClick('example.com', true, 'https://')
|
|
42
|
+
*/
|
|
43
|
+
export declare function handleUrlClick(url: string, openInNewWindow?: boolean, defaultProtocol?: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* 检测是否为安全链接(HTTPS)
|
|
46
|
+
* @param url URL 地址
|
|
47
|
+
* @returns 是否为 HTTPS
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* isSecureUrl('https://example.com') // true
|
|
51
|
+
* isSecureUrl('http://example.com') // false
|
|
52
|
+
*/
|
|
53
|
+
export declare function isSecureUrl(url: string): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 提取 URL 参数
|
|
56
|
+
* @param url URL 地址
|
|
57
|
+
* @returns 参数对象
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* extractUrlParams('https://example.com?foo=bar&baz=qux')
|
|
61
|
+
* // { foo: 'bar', baz: 'qux' }
|
|
62
|
+
*/
|
|
63
|
+
export declare function extractUrlParams(url: string): Record<string, string>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* URL 校验工具函数
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* URL 格式校验(使用 URL 构造函数)
|
|
6
|
+
* @param url URL 地址
|
|
7
|
+
* @returns 是否通过校验
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* validateUrl('https://example.com') // true
|
|
11
|
+
* validateUrl('invalid-url') // false
|
|
12
|
+
*/
|
|
13
|
+
export declare function validateUrl(url: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* URL 正则校验(备选方法)
|
|
16
|
+
* @param url URL 地址
|
|
17
|
+
* @returns 是否通过校验
|
|
18
|
+
*/
|
|
19
|
+
export declare function validateUrlByRegex(url: string): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 解析 URL 各部分
|
|
22
|
+
* @param url URL 地址
|
|
23
|
+
* @returns URL 各部分或 null
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* parseUrl('https://example.com:8080/path?key=value#hash')
|
|
27
|
+
* // { protocol: 'https', host: 'example.com', port: '8080', ... }
|
|
28
|
+
*/
|
|
29
|
+
export declare function parseUrl(url: string): {
|
|
30
|
+
protocol: string;
|
|
31
|
+
host: string;
|
|
32
|
+
port: string;
|
|
33
|
+
pathname: string;
|
|
34
|
+
search: string;
|
|
35
|
+
hash: string;
|
|
36
|
+
} | null;
|
|
37
|
+
/**
|
|
38
|
+
* 协议白名单校验
|
|
39
|
+
* @param url URL 地址
|
|
40
|
+
* @param allowedProtocols 允许的协议列表
|
|
41
|
+
* @returns 校验结果
|
|
42
|
+
*/
|
|
43
|
+
export declare function validateUrlProtocol(url: string, allowedProtocols: string[]): {
|
|
44
|
+
isValid: boolean;
|
|
45
|
+
errors: string[];
|
|
46
|
+
};
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.discount.reason': string;
|
|
4
|
+
'pisell2.cart.sku-card.more': string;
|
|
5
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
6
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
7
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
8
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
9
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
10
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
11
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
12
|
+
'pisell2.product.card.discount.note': string;
|
|
13
|
+
'pisell2.product.card.edit': string;
|
|
14
|
+
'pisell2.product.card.discount.add.note': string;
|
|
15
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
16
|
+
'pisell2.product.card.confirm': string;
|
|
17
|
+
'pisell2.product.card.cancel': string;
|
|
18
|
+
'pisell2.product.card.note.pla': string;
|
|
19
|
+
'pisell2.product.card.items.package': string;
|
|
20
|
+
'pisell2.product.card.view-all': string;
|
|
21
|
+
'pisell2.product.card.view-less': string;
|
|
22
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
23
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
24
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
25
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
26
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
27
|
+
'pisell2.product.card.sales': string;
|
|
28
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
29
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
30
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
31
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
32
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
33
|
+
};
|
|
34
|
+
'zh-CN': {
|
|
35
|
+
'pisell2.product.card.discount.reason': string;
|
|
36
|
+
'pisell2.cart.sku-card.more': string;
|
|
37
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
38
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
39
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
40
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
41
|
+
'pisell2.product.card.edit': string;
|
|
42
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
43
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
44
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
45
|
+
'pisell2.product.card.discount.note': string;
|
|
46
|
+
'pisell2.product.card.discount.add.note': string;
|
|
47
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
48
|
+
'pisell2.product.card.confirm': string;
|
|
49
|
+
'pisell2.product.card.cancel': string;
|
|
50
|
+
'pisell2.product.card.note.pla': string;
|
|
51
|
+
'pisell2.product.card.items.package': string;
|
|
52
|
+
'pisell2.product.card.view-all': string;
|
|
53
|
+
'pisell2.product.card.view-less': string;
|
|
54
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
55
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
56
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
57
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
58
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
59
|
+
'pisell2.product.card.sales': string;
|
|
60
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
61
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
62
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
63
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
64
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
65
|
+
};
|
|
66
|
+
'zh-HK': {
|
|
67
|
+
'pisell2.product.card.discount.reason': string;
|
|
68
|
+
'pisell2.cart.sku-card.more': string;
|
|
69
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
70
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
71
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
72
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
73
|
+
'pisell2.product.card.edit': string;
|
|
74
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
75
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
76
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
77
|
+
'pisell2.product.card.discount.note': string;
|
|
78
|
+
'pisell2.product.card.discount.add.note': string;
|
|
79
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
80
|
+
'pisell2.product.card.confirm': string;
|
|
81
|
+
'pisell2.product.card.cancel': string;
|
|
82
|
+
'pisell2.product.card.note.pla': string;
|
|
83
|
+
'pisell2.product.card.items.package': string;
|
|
84
|
+
'pisell2.product.card.view-all': string;
|
|
85
|
+
'pisell2.product.card.view-less': string;
|
|
86
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
87
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
88
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
89
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
90
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
91
|
+
'pisell2.product.card.sales': string;
|
|
92
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
93
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
94
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
95
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
96
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
97
|
+
};
|
|
98
|
+
ja: {
|
|
99
|
+
'pisell2.product.card.discount.reason': string;
|
|
100
|
+
'pisell2.cart.sku-card.more': string;
|
|
101
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
102
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
103
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
104
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
105
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
106
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
107
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
108
|
+
'pisell2.product.card.discount.note': string;
|
|
109
|
+
'pisell2.product.card.edit': string;
|
|
110
|
+
'pisell2.product.card.discount.add.note': string;
|
|
111
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
112
|
+
'pisell2.product.card.confirm': string;
|
|
113
|
+
'pisell2.product.card.cancel': string;
|
|
114
|
+
'pisell2.product.card.note.pla': string;
|
|
115
|
+
'pisell2.product.card.items.package': string;
|
|
116
|
+
'pisell2.product.card.view-all': string;
|
|
117
|
+
'pisell2.product.card.view-less': string;
|
|
118
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
119
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
120
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
121
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
122
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
123
|
+
'pisell2.product.card.sales': string;
|
|
124
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
125
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
126
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
127
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
128
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
129
|
+
};
|
|
130
|
+
pt: {
|
|
131
|
+
'pisell2.product.card.discount.reason': string;
|
|
132
|
+
'pisell2.cart.sku-card.more': string;
|
|
133
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
134
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
135
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
136
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
137
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
138
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
139
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
140
|
+
'pisell2.product.card.discount.note': string;
|
|
141
|
+
'pisell2.product.card.edit': string;
|
|
142
|
+
'pisell2.product.card.discount.add.note': string;
|
|
143
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
144
|
+
'pisell2.product.card.confirm': string;
|
|
145
|
+
'pisell2.product.card.cancel': string;
|
|
146
|
+
'pisell2.product.card.note.pla': string;
|
|
147
|
+
'pisell2.product.card.items.package': string;
|
|
148
|
+
'pisell2.product.card.view-all': string;
|
|
149
|
+
'pisell2.product.card.view-less': string;
|
|
150
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
151
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
152
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
153
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
154
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
155
|
+
'pisell2.product.card.sales': string;
|
|
156
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
157
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
158
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
159
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
160
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export default _default;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ProductCardTypes, bundleType, optionType, productType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 套餐数据
|
|
4
|
+
* @description:
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2025-01-02 23:21
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultBundle: bundleType;
|
|
10
|
+
/**
|
|
11
|
+
* @description: 单规格
|
|
12
|
+
* @return {*}
|
|
13
|
+
* @Author: WangHan
|
|
14
|
+
* @Date: 2025-01-02 23:00
|
|
15
|
+
*/
|
|
16
|
+
export declare const defaultOption: optionType;
|
|
17
|
+
/**
|
|
18
|
+
* @title: 商品商品类型
|
|
19
|
+
* @description:
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: WangHan
|
|
22
|
+
* @Date: 2025-01-02 22:48
|
|
23
|
+
*/
|
|
24
|
+
export declare const defaultProduct: productType;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 默认数据
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2024-12-12 16:49
|
|
31
|
+
*/
|
|
32
|
+
export declare const defaultValue: ProductCardTypes;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare type bundleType = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
num: number;
|
|
5
|
+
price: number;
|
|
6
|
+
total: number;
|
|
7
|
+
origin_total?: number;
|
|
8
|
+
price_type?: string;
|
|
9
|
+
options?: optionType[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description:
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: WangHan
|
|
15
|
+
* @Date: 2025-01-02 23:00
|
|
16
|
+
*/
|
|
17
|
+
export declare type optionType = {
|
|
18
|
+
id: number;
|
|
19
|
+
name: string;
|
|
20
|
+
num: number;
|
|
21
|
+
price: number;
|
|
22
|
+
total: number;
|
|
23
|
+
origin_total?: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @title: 商品商品类型
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2025-01-02 22:48
|
|
31
|
+
*/
|
|
32
|
+
export declare type productType = {
|
|
33
|
+
_id: string | number;
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
price: number;
|
|
37
|
+
total: number;
|
|
38
|
+
num: number;
|
|
39
|
+
origin_total?: number;
|
|
40
|
+
image?: string;
|
|
41
|
+
isShowNote?: boolean;
|
|
42
|
+
note?: string;
|
|
43
|
+
like_status?: string;
|
|
44
|
+
bundle?: bundleType[];
|
|
45
|
+
options?: optionType[];
|
|
46
|
+
isShowAction?: boolean;
|
|
47
|
+
actionText?: string;
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
product_option_string?: string;
|
|
50
|
+
discount_reason?: string;
|
|
51
|
+
relation_products?: any[];
|
|
52
|
+
resource_id?: string | number;
|
|
53
|
+
relation_form_name?: string;
|
|
54
|
+
holder_title?: string;
|
|
55
|
+
start_date?: string;
|
|
56
|
+
end_date?: string;
|
|
57
|
+
is_show_duration?: boolean;
|
|
58
|
+
is_show_week?: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 排序总配置
|
|
62
|
+
*/
|
|
63
|
+
export declare type ProductCardTypes = {
|
|
64
|
+
dataSource: productType;
|
|
65
|
+
isShowImage?: boolean;
|
|
66
|
+
isShowHolder?: boolean;
|
|
67
|
+
isShowNote?: boolean;
|
|
68
|
+
isShowPackageNote?: boolean;
|
|
69
|
+
isShowDelete?: boolean;
|
|
70
|
+
isShowAmountFooter?: boolean;
|
|
71
|
+
disabledEdit?: boolean;
|
|
72
|
+
locale?: string;
|
|
73
|
+
symbol?: string;
|
|
74
|
+
isShowChangeHolder?: boolean;
|
|
75
|
+
isShowChangeResource?: boolean;
|
|
76
|
+
isShowChangeDate?: boolean;
|
|
77
|
+
onAction?: (val: any) => void;
|
|
78
|
+
onDelete?: (val: any) => void;
|
|
79
|
+
onNote?: (val: any) => void;
|
|
80
|
+
onLike?: (val: any) => void;
|
|
81
|
+
onCard?: (val: any) => void;
|
|
82
|
+
onChangeResource?: (val: any) => void;
|
|
83
|
+
osWarnTips?: Array<string>;
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Select as OriginalSelect } from 'antd';
|
|
3
|
+
import type { SelectProps } from 'antd';
|
|
4
|
+
import './index.less';
|
|
5
|
+
interface CompoundedComponent extends React.ForwardRefExoticComponent<SelectProps> {
|
|
6
|
+
Option: typeof OriginalSelect.Option;
|
|
7
|
+
}
|
|
8
|
+
declare const Select: CompoundedComponent;
|
|
9
|
+
export default Select;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MenuProps } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
/** 单个排序子项(如 A→Z、0→9),由组件的 getSortItems 返回 */
|
|
4
|
+
export declare type SortOptionItem = {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type SortItemProps = {
|
|
9
|
+
/** 排序类型,与 sortChildrenMap 对应;当 getSortItems 存在时可省略 */
|
|
10
|
+
type?: "date" | "string" | "number" | "option";
|
|
11
|
+
label?: string;
|
|
12
|
+
name?: string | string[];
|
|
13
|
+
isCustom: boolean;
|
|
14
|
+
columnKey?: string;
|
|
15
|
+
localFilter?: boolean;
|
|
16
|
+
isHidden?: boolean;
|
|
17
|
+
/** 由组件内置导出:直接返回该列的排序子项,优先于 type */
|
|
18
|
+
getSortItems?: (fieldKey: string) => SortOptionItem[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 组件侧导出的排序支持契约(如 PisellSingleLineText.SortOptions)。
|
|
22
|
+
* 支持两种形态:
|
|
23
|
+
* - getSortItems:组件内置完整排序项(key + label),优先使用;
|
|
24
|
+
* - type:仅类型,由 Sort 的 sortChildrenMap 生成子项(兼容旧用法)。
|
|
25
|
+
*/
|
|
26
|
+
export declare type SortOptionType = (Pick<SortItemProps, "type"> & Partial<Pick<SortItemProps, "label" | "localFilter" | "isHidden">>) | {
|
|
27
|
+
getSortItems: (fieldKey: string) => SortOptionItem[];
|
|
28
|
+
label?: string;
|
|
29
|
+
isHidden?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare type SortListProps = {
|
|
32
|
+
list: SortItemProps[];
|
|
33
|
+
onChange?: (val: string, detail: Parameters<Required<MenuProps>["onClick"]>[0]) => void;
|
|
34
|
+
button?: React.ReactNode;
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
|
+
value?: any;
|
|
37
|
+
placement?: "bottom" | "bottomLeft" | "bottomRight" | "top" | "topLeft" | "topRight";
|
|
38
|
+
localPagination?: boolean;
|
|
39
|
+
};
|