@pisell/materials 3.0.62 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/index.js +1 -1
- package/build/lowcode/meta.js +19 -2
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +26 -26
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/browserSelect/index.d.ts +21 -0
- package/es/components/browserSelect/index.js +58 -0
- package/es/components/browserSelect/index.less +64 -0
- package/es/components/checkbox/index.js +4 -4
- package/es/components/colorPicker/index.d.ts +4 -0
- package/es/components/colorPicker/index.js +6 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +67 -0
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceForm/formItem.js +58 -0
- package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
- package/es/components/dataSourceComponents/dataSourceForm/group/index.js +65 -0
- package/es/components/dataSourceComponents/dataSourceForm/group/index.less +42 -0
- package/es/components/dataSourceComponents/dataSourceForm/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceForm/index.js +25 -0
- package/es/components/dataSourceComponents/dataSourceForm/index.less +24 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +11 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js +7 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +26 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.js +11 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.js +7 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.d.ts +6 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.js +6 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider.d.ts +7 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider.js +42 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +148 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +254 -0
- package/es/components/dataSourceComponents/dataSourceForm/style.less +23 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +38 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +228 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.less +4 -0
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +18 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +50 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +360 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.js +4 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.js +4 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +10 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +15 -0
- package/es/components/dataSourceComponents/dataSourceShow/utils.d.ts +6 -0
- package/es/components/dataSourceComponents/dataSourceShow/utils.js +82 -0
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +4 -0
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +104 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +27 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +169 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.less +4 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.js +145 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +58 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +6 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.js +17 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +2 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +49 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +100 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +44 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +173 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/usePagination.js +14 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +78 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +261 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +80 -0
- package/es/components/dataSourceComponents/dataSourceTable/index.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceTable/index.js +13 -0
- package/es/components/dataSourceComponents/dataSourceTable/index.less +5 -0
- package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
- package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.js +4 -0
- package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.js +20 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +64 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.js +1 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +23 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +4 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/index.js +23 -0
- package/es/components/dataSourceComponents/fields/Checkbox/ReadPretty.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +24 -0
- package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/Checkbox/WithMode.js +7 -0
- package/es/components/dataSourceComponents/fields/Checkbox/index.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/Checkbox/index.js +18 -0
- package/es/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/Checkbox/type.js +1 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.js +11 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/WithMode.js +23 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/index.js +4 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/type.js +1 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +14 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
- package/es/components/{productCard/components/MultiDay/utils.js → dataSourceComponents/fields/DatePicker/WithMode.js} +9 -46
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/DatePicker/index.js +10 -0
- package/es/components/dataSourceComponents/fields/DatePicker/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/DatePicker/type.js +1 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.js +14 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/index.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/index.js +5 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/index.less +14 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.js +13 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Input/index.d.ts +18 -0
- package/es/components/dataSourceComponents/fields/Input/index.js +16 -0
- package/es/components/dataSourceComponents/fields/Input/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.js +13 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input.Email/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input.Email/WithMode.js +17 -0
- package/es/components/dataSourceComponents/fields/Input.Email/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Email/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Email/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.js +14 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.less +3 -0
- package/es/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Json/WithMode.js +45 -0
- package/es/components/dataSourceComponents/fields/Input.Json/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Json/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Json/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.js +23 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input.Password/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Password/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Input.Password/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Password/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Password/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/ReadPretty.js +28 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +11 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +132 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +59 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.js +13 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.js +16 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input.Url/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Url/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Input.Url/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Url/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Url/type.js +1 -0
- package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.js +33 -0
- package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/InputNumber/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/InputNumber/WithMode.js +36 -0
- package/es/components/dataSourceComponents/fields/InputNumber/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/InputNumber/index.js +11 -0
- package/es/components/dataSourceComponents/fields/InputNumber/type.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/InputNumber/type.js +1 -0
- package/es/components/dataSourceComponents/fields/InputNumber/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/InputNumber/utils.js +41 -0
- package/es/components/dataSourceComponents/fields/Radio/ReadPretty.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/Radio/ReadPretty.js +15 -0
- package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/Radio/WithMode.js +7 -0
- package/es/components/dataSourceComponents/fields/Radio/index.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/Radio/index.js +14 -0
- package/es/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/Radio/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Select/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Select/ReadPretty.js +10 -0
- package/es/components/dataSourceComponents/fields/Select/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Select/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +10 -0
- package/es/components/dataSourceComponents/fields/Select/index.js +12 -0
- package/es/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Select/type.js +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.js +13 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +109 -0
- package/es/components/dataSourceComponents/fields/TimePicker/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/TimePicker/index.js +10 -0
- package/es/components/dataSourceComponents/fields/TimePicker/style.less +86 -0
- package/es/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/TimePicker/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +111 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.js +13 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Translation/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Translation/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Translation/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Translation/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Translation/index.less +58 -0
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +15 -0
- package/es/components/dataSourceComponents/fields/Translation/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +542 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.js +44 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Upload/WithMode.js +45 -0
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/Upload/constants.js +9 -0
- package/es/components/dataSourceComponents/fields/Upload/fallback.png +0 -0
- package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Upload/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Upload/index.less +82 -0
- package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +17 -0
- package/es/components/dataSourceComponents/fields/Upload/serve.js +115 -0
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +27 -0
- package/es/components/dataSourceComponents/fields/Upload/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Upload/types.d.ts +48 -0
- package/es/components/dataSourceComponents/fields/Upload/types.js +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +16 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.js +262 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +68 -0
- package/es/components/dataSourceComponents/fields/index.js +38 -0
- package/es/components/dataSourceComponents/fields/type.d.ts +18 -0
- package/es/components/dataSourceComponents/fields/type.js +1 -0
- package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/utils.js +111 -0
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +17 -0
- package/es/components/dataSourceComponents/hooks/useActions.js +356 -0
- package/es/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
- package/es/components/dataSourceComponents/hooks/useComponentId.js +9 -0
- package/es/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
- package/es/components/dataSourceComponents/hooks/useCtxActions.js +14 -0
- package/es/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
- package/es/components/dataSourceComponents/hooks/useDataSource.js +11 -0
- package/es/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
- package/es/components/dataSourceComponents/hooks/useParseActionsVariable.js +61 -0
- package/es/components/dataSourceComponents/hooks/useValueMap.d.ts +8 -0
- package/es/components/dataSourceComponents/hooks/useValueMap.js +22 -0
- package/es/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
- package/es/components/dataSourceComponents/hooks/useVariables.js +6 -0
- package/es/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +6 -0
- package/es/components/dataSourceComponents/provider/actions/ActionsContext.js +3 -0
- package/es/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +9 -0
- package/es/components/{productCard/components/Sales/index.js → dataSourceComponents/provider/actions/ActionsProvider.js} +19 -30
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +104 -0
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.js +11 -0
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +79 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.js +10 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +103 -0
- package/es/components/dataSourceComponents/provider/variables/utils.d.ts +12 -0
- package/es/components/dataSourceComponents/provider/variables/utils.js +28 -0
- package/es/components/dataSourceComponents/utils/index.d.ts +0 -0
- package/es/components/dataSourceComponents/utils/index.js +0 -0
- package/es/components/date-picker/constants.d.ts +39 -0
- package/es/components/date-picker/constants.js +76 -0
- package/es/components/date-picker/datePickerCpt.d.ts +9 -0
- package/es/components/date-picker/datePickerCpt.js +374 -0
- package/es/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/es/components/date-picker/hooks/useMediaQuery.js +28 -0
- package/es/components/date-picker/index.less +1880 -0
- package/es/components/filter/components/Dropdown/index.d.ts +1 -0
- package/es/components/filter/components/Dropdown/index.js +6 -2
- package/es/components/filter/components/FilterButton/index.js +5 -3
- package/es/components/filter/components/FilterButton/types.d.ts +2 -0
- package/es/components/form/index.d.ts +2 -8
- package/es/components/form/index.js +3 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/page/index.js +5 -2
- package/es/components/pisellUpload/index.d.ts +11 -0
- package/es/components/pisellUpload/index.js +33 -0
- package/es/components/pisellUpload/index.less +15 -0
- package/es/components/radio/index.js +4 -4
- package/es/components/select/index.d.ts +8 -3
- package/es/components/select/index.js +82 -17
- package/es/components/select/index.less +19 -0
- package/es/components/sort/index.js +1 -1
- package/es/components/table/Actions/index.js +16 -7
- package/es/components/table/Gallery/index.d.ts +3 -3
- package/es/components/table/Gallery/index.js +28 -10
- package/es/components/table/Gallery/index.less +1 -0
- package/es/components/table/Header/index.d.ts +10 -3
- package/es/components/table/Header/index.js +37 -11
- package/es/components/table/Header/index.less +10 -2
- package/es/components/table/Table/index.js +17 -6
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/Table/utils.js +4 -0
- package/es/components/table/Tabs/index.d.ts +14 -0
- package/es/components/{productCard/components/Packages → table/Tabs}/index.js +35 -23
- package/es/components/table/hooks/useTransDataSource.js +0 -1
- package/es/components/table/hooks/useTriggerValuesChange.js +3 -0
- package/es/components/table/index.js +21 -4
- package/es/components/table/model.d.ts +1 -0
- package/es/components/table/model.js +7 -1
- package/es/components/table/types.d.ts +14 -2
- package/es/components/table/utils.d.ts +5 -6
- package/es/components/table/utils.js +7 -1
- package/es/components/typography/index.d.ts +2 -2
- package/es/components/typography/index.js +4 -3
- package/es/hooks/useSetRequest.d.ts +2 -0
- package/es/hooks/useSetRequest.js +8 -0
- package/es/hooks/useTranslationOriginal.d.ts +2 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +22 -3
- package/es/index.js +24 -6
- package/es/locales/en-US.d.ts +48 -0
- package/es/locales/en-US.js +71 -1
- package/es/locales/zh-CN.d.ts +48 -0
- package/es/locales/zh-CN.js +70 -1
- package/es/locales/zh-TW.d.ts +48 -0
- package/es/locales/zh-TW.js +71 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +2 -1
- package/es/utils/mergeWith.d.ts +1 -0
- package/es/utils/mergeWith.js +31 -0
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/browserSelect/index.d.ts +21 -0
- package/lib/components/{productCard/components/Note → browserSelect}/index.js +30 -21
- package/lib/components/browserSelect/index.less +64 -0
- package/lib/components/checkbox/index.js +4 -4
- package/lib/components/colorPicker/index.d.ts +4 -0
- package/lib/components/colorPicker/index.js +40 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +97 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +63 -0
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.js +87 -0
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.less +42 -0
- package/lib/components/dataSourceComponents/dataSourceForm/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceForm/index.js +55 -0
- package/lib/components/dataSourceComponents/dataSourceForm/index.less +24 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +11 -0
- package/lib/components/{productCard/status.js → dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js} +13 -46
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +55 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.js +41 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.js +41 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.d.ts +6 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.js +30 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider.d.ts +7 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider.js +52 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +148 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +142 -0
- package/lib/components/dataSourceComponents/dataSourceForm/style.less +23 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +38 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +165 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.less +4 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +18 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.js +17 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +50 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +364 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.js +38 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.js +38 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +10 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +44 -0
- package/lib/components/dataSourceComponents/dataSourceShow/utils.d.ts +6 -0
- package/lib/components/dataSourceComponents/dataSourceShow/utils.js +95 -0
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +4 -0
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +137 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +27 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +182 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.less +4 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.js +188 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +90 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +6 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.js +50 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +2 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +60 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +107 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +44 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +173 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/usePagination.js +37 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +78 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +254 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +83 -0
- package/lib/components/dataSourceComponents/dataSourceTable/index.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceTable/index.js +43 -0
- package/lib/components/dataSourceComponents/dataSourceTable/index.less +5 -0
- package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
- package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.js +33 -0
- package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.js +52 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +64 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.js +17 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +51 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +4 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.js +61 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +59 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.less +0 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +7 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.js +41 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/index.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/index.js +46 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +5 -0
- package/lib/components/{productCard/components/Divider/index.js → dataSourceComponents/fields/ColorPicker/ReadPretty.js} +13 -15
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.less +0 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/WithMode.js +65 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/lib/components/{productCard/components/Time/components/Like/index.js → dataSourceComponents/fields/DatePicker/ReadPretty.js} +16 -29
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +50 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/index.js +44 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.js +51 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/WithMode.js +42 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/index.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/index.js +39 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/index.less +14 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.js +50 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Input/index.d.ts +18 -0
- package/lib/components/dataSourceComponents/fields/Input/index.js +50 -0
- package/lib/components/dataSourceComponents/fields/Input/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.js +50 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/WithMode.js +57 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +5 -0
- package/lib/components/{productCard/components/Packages/index.js → dataSourceComponents/fields/Input.Json/ReadPretty.js} +14 -24
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.less +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.js +67 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.js +50 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/ReadPretty.js +58 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +143 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +55 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.js +50 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +5 -0
- package/lib/components/{productCard/components/Action/index.js → dataSourceComponents/fields/Input.Url/ReadPretty.js} +19 -21
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.js +66 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.js +73 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/index.js +45 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/type.d.ts +7 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/utils.js +63 -0
- package/lib/components/dataSourceComponents/fields/Radio/ReadPretty.d.ts +7 -0
- package/lib/components/dataSourceComponents/fields/Radio/ReadPretty.js +47 -0
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +7 -0
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.js +41 -0
- package/lib/components/dataSourceComponents/fields/Radio/index.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Radio/index.js +42 -0
- package/lib/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/Radio/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Select/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Select/ReadPretty.js +42 -0
- package/lib/components/dataSourceComponents/fields/Select/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Select/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +10 -0
- package/lib/components/dataSourceComponents/fields/Select/index.js +40 -0
- package/lib/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Select/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.js +50 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +137 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/index.js +44 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/style.less +86 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +115 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.js +50 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Translation/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Translation/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Translation/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Translation/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Translation/index.less +58 -0
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +15 -0
- package/lib/components/dataSourceComponents/fields/Translation/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +485 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.js +77 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Upload/WithMode.js +79 -0
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/Upload/constants.js +47 -0
- package/lib/components/dataSourceComponents/fields/Upload/fallback.png +0 -0
- package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Upload/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Upload/index.less +82 -0
- package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +17 -0
- package/lib/components/dataSourceComponents/fields/Upload/serve.js +96 -0
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +27 -0
- package/lib/components/dataSourceComponents/fields/Upload/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Upload/types.d.ts +48 -0
- package/lib/components/{productCard → dataSourceComponents/fields/Upload}/types.js +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +16 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.js +253 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +68 -0
- package/lib/components/dataSourceComponents/fields/index.js +75 -0
- package/lib/components/dataSourceComponents/fields/type.d.ts +18 -0
- package/lib/components/dataSourceComponents/fields/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/utils.js +134 -0
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +17 -0
- package/lib/components/dataSourceComponents/hooks/useActions.js +216 -0
- package/lib/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
- package/lib/components/dataSourceComponents/hooks/useComponentId.js +32 -0
- package/lib/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
- package/lib/components/dataSourceComponents/hooks/useCtxActions.js +41 -0
- package/lib/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
- package/lib/components/dataSourceComponents/hooks/useDataSource.js +41 -0
- package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
- package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.js +73 -0
- package/lib/components/dataSourceComponents/hooks/useValueMap.d.ts +8 -0
- package/lib/components/dataSourceComponents/hooks/useValueMap.js +39 -0
- package/lib/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
- package/lib/components/dataSourceComponents/hooks/useVariables.js +40 -0
- package/lib/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +6 -0
- package/lib/components/dataSourceComponents/provider/actions/ActionsContext.js +27 -0
- package/lib/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +9 -0
- package/lib/components/dataSourceComponents/provider/actions/ActionsProvider.js +46 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +104 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.js +40 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +108 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.js +43 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +134 -0
- package/lib/components/dataSourceComponents/provider/variables/utils.d.ts +12 -0
- package/lib/components/{productCard/components/Packages → dataSourceComponents/provider/variables}/utils.js +34 -17
- package/lib/components/dataSourceComponents/utils/index.d.ts +0 -0
- package/lib/components/dataSourceComponents/utils/index.js +0 -0
- package/lib/components/date-picker/constants.d.ts +39 -0
- package/lib/components/date-picker/constants.js +78 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +9 -0
- package/lib/components/date-picker/datePickerCpt.js +406 -0
- package/lib/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/lib/components/date-picker/hooks/useMediaQuery.js +43 -0
- package/lib/components/date-picker/index.less +1880 -0
- package/lib/components/filter/components/Dropdown/index.d.ts +1 -0
- package/lib/components/filter/components/Dropdown/index.js +6 -2
- package/lib/components/filter/components/FilterButton/index.js +5 -3
- package/lib/components/filter/components/FilterButton/types.d.ts +2 -0
- package/lib/components/form/index.d.ts +2 -8
- package/lib/components/form/index.js +3 -2
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/page/index.js +9 -3
- package/lib/components/pisellUpload/index.d.ts +11 -0
- package/lib/components/pisellUpload/index.js +51 -0
- package/lib/components/pisellUpload/index.less +15 -0
- package/lib/components/radio/index.js +4 -4
- package/lib/components/select/index.d.ts +8 -3
- package/lib/components/select/index.js +90 -14
- package/lib/components/select/index.less +19 -0
- package/lib/components/sort/index.js +1 -1
- package/lib/components/table/Actions/index.js +18 -9
- package/lib/components/table/Gallery/index.d.ts +3 -3
- package/lib/components/table/Gallery/index.js +17 -0
- package/lib/components/table/Gallery/index.less +1 -0
- package/lib/components/table/Header/index.d.ts +10 -3
- package/lib/components/table/Header/index.js +29 -4
- package/lib/components/table/Header/index.less +10 -2
- package/lib/components/table/Table/index.js +17 -6
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/Table/utils.js +4 -0
- package/lib/components/table/Tabs/index.d.ts +14 -0
- package/lib/components/table/Tabs/index.js +71 -0
- package/lib/components/table/hooks/useTransDataSource.js +0 -1
- package/lib/components/table/hooks/useTriggerValuesChange.js +3 -0
- package/lib/components/table/index.js +22 -3
- package/lib/components/table/model.d.ts +1 -0
- package/lib/components/table/model.js +5 -1
- package/lib/components/table/types.d.ts +14 -2
- package/lib/components/table/utils.d.ts +5 -6
- package/lib/components/table/utils.js +7 -1
- package/lib/components/typography/index.d.ts +2 -2
- package/lib/components/typography/index.js +4 -3
- package/lib/hooks/useSetRequest.d.ts +2 -0
- package/lib/hooks/useSetRequest.js +42 -0
- package/lib/hooks/useTranslationOriginal.d.ts +2 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +22 -3
- package/lib/index.js +95 -38
- package/lib/locales/en-US.d.ts +48 -0
- package/lib/locales/en-US.js +55 -1
- package/lib/locales/zh-CN.d.ts +48 -0
- package/lib/locales/zh-CN.js +54 -1
- package/lib/locales/zh-TW.d.ts +48 -0
- package/lib/locales/zh-TW.js +55 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +4 -1
- package/lib/utils/mergeWith.d.ts +1 -0
- package/lib/utils/mergeWith.js +56 -0
- package/lowcode/_utils/defaultSchema.ts +1480 -0
- package/lowcode/_utils/type.ts +5 -0
- package/lowcode/_utils/utils.ts +10 -0
- package/lowcode/button/meta.ts +2 -3
- package/lowcode/checkbox/meta.ts +1 -1
- package/lowcode/checkbox/snippets.ts +2 -2
- package/lowcode/checkbox.group/meta.ts +1 -1
- package/lowcode/collapse/meta.ts +1 -85
- package/lowcode/color-picker/__screenshots__/input-1.png +0 -0
- package/lowcode/color-picker/meta.ts +298 -0
- package/lowcode/color-picker/snippets.ts +10 -0
- package/lowcode/data-source-form/__screenshots__/add.png +0 -0
- package/lowcode/data-source-form/__screenshots__/detail.png +0 -0
- package/lowcode/data-source-form/__screenshots__/form-1.png +0 -0
- package/lowcode/data-source-form/constants.ts +96 -0
- package/lowcode/data-source-form/meta.ts +784 -0
- package/lowcode/data-source-form/snippets.ts +138 -0
- package/lowcode/data-source-form/utils.ts +546 -0
- package/lowcode/data-source-image/meta.ts +74 -0
- package/lowcode/data-source-image/snippets.ts +14 -0
- package/lowcode/data-source-qrcode/meta.ts +158 -0
- package/lowcode/data-source-qrcode/snippets.ts +20 -0
- package/lowcode/data-source-table/__screenshots__/table-1.png +0 -0
- package/lowcode/data-source-table/meta.ts +5050 -0
- package/lowcode/data-source-table/snippets.ts +90 -0
- package/lowcode/data-source-table/utils.tsx +484 -0
- package/lowcode/data-source-typography/meta.ts +54 -0
- package/lowcode/data-source-typography.text/meta.ts +212 -0
- package/lowcode/data-source-typography.text/snippets.ts +12 -0
- package/lowcode/data-source-wrapper/meta.ts +243 -0
- package/lowcode/data-source-wrapper/snippets.ts +11 -0
- package/lowcode/data-source-wrapper/utils.ts +45 -0
- package/lowcode/date-picker.old-range-picker/meta.ts +1 -1
- package/lowcode/date-picker.range-picker/meta.ts +0 -20
- package/lowcode/form/meta.ts +24 -22
- package/lowcode/form/snippets.ts +2 -481
- package/lowcode/form-group/__screenshots__/group.png +0 -0
- package/lowcode/form-group/meta.ts +345 -0
- package/lowcode/form-group/snippets.ts +18 -0
- package/lowcode/form-item-checkbox/meta.ts +108 -0
- package/lowcode/form-item-checkbox/snippets.ts +41 -0
- package/lowcode/form-item-checkbox.group/__screenshots__/checkbox-group-1.png +0 -0
- package/lowcode/form-item-checkbox.group/meta.ts +184 -0
- package/lowcode/form-item-color-picker/__screenshots__/input-1.png +0 -0
- package/lowcode/form-item-color-picker/meta.ts +314 -0
- package/lowcode/form-item-color-picker/snippets.ts +11 -0
- package/lowcode/form-item-date-picker/__screenshots__/date-picker-1.png +0 -0
- package/lowcode/form-item-date-picker/__screenshots__/date-picker-2.png +0 -0
- package/lowcode/form-item-date-picker/__screenshots__/date-picker-3.png +0 -0
- package/lowcode/form-item-date-picker/__screenshots__/date-picker-4.png +0 -0
- package/lowcode/form-item-date-picker/__screenshots__/date-picker-5.png +0 -0
- package/lowcode/form-item-date-picker/meta.ts +435 -0
- package/lowcode/form-item-date-picker/snippets.ts +53 -0
- package/lowcode/form-item-input/__screenshots__/input-1.png +0 -0
- package/lowcode/form-item-input/meta.ts +249 -0
- package/lowcode/form-item-input/snippets.ts +14 -0
- package/lowcode/form-item-input-number/__screenshots__/input-number-1.png +0 -0
- package/lowcode/form-item-input-number/meta.ts +411 -0
- package/lowcode/form-item-input-number/snippets.ts +27 -0
- package/lowcode/form-item-input.email/__screenshots__/email.png +0 -0
- package/lowcode/form-item-input.email/meta.ts +284 -0
- package/lowcode/form-item-input.email/snippets.ts +37 -0
- package/lowcode/form-item-input.json/meta.ts +213 -0
- package/lowcode/form-item-input.json/snippets.ts +31 -0
- package/lowcode/form-item-input.password/__screenshots__/input-password-1.png +0 -0
- package/lowcode/form-item-input.password/meta.ts +230 -0
- package/lowcode/form-item-input.password/snippets.ts +14 -0
- package/lowcode/form-item-input.phone/__screenshots__/phone.png +0 -0
- package/lowcode/form-item-input.phone/meta.ts +311 -0
- package/lowcode/form-item-input.phone/snippets.ts +18 -0
- package/lowcode/form-item-input.text-area/__screenshots__/input-text-area-1.png +0 -0
- package/lowcode/form-item-input.text-area/meta.ts +422 -0
- package/lowcode/form-item-input.text-area/snippets.ts +14 -0
- package/lowcode/form-item-input.url/__screenshots__/URL.png +0 -0
- package/lowcode/form-item-input.url/meta.ts +284 -0
- package/lowcode/form-item-input.url/snippets.ts +17 -0
- package/lowcode/form-item-radio/__screenshots__/radio-1.png +0 -0
- package/lowcode/form-item-radio/meta.ts +72 -0
- package/lowcode/form-item-radio/snippets.ts +40 -0
- package/lowcode/form-item-radio.group/__screenshots__/radio-group-1.png +0 -0
- package/lowcode/form-item-radio.group/meta.ts +239 -0
- package/lowcode/form-item-select/__screenshots__/select-1.png +0 -0
- package/lowcode/form-item-select/meta.ts +538 -0
- package/lowcode/form-item-select/snippets.ts +59 -0
- package/lowcode/form-item-time-picker/__screenshots__/time-picker-1.png +0 -0
- package/lowcode/form-item-time-picker/meta.ts +304 -0
- package/lowcode/form-item-time-picker/snippets.ts +13 -0
- package/lowcode/form-item-translation/meta.ts +249 -0
- package/lowcode/form-item-translation/snippets.ts +13 -0
- package/lowcode/form-item-upload/__screenshots__/upload.png +0 -0
- package/lowcode/form-item-upload/meta.ts +432 -0
- package/lowcode/form-item-upload/snippets.ts +12 -0
- package/lowcode/form-item-upload/utils.ts +230 -0
- package/lowcode/form.item/meta.ts +104 -25
- package/lowcode/input.text-area/meta.ts +1 -1
- package/lowcode/input.text-area/snippets.ts +1 -5
- package/lowcode/json-wrapper/meta.ts +65 -0
- package/lowcode/json-wrapper/snippets.ts +16 -0
- package/lowcode/pisell-adjust-price/meta.ts +1 -1
- package/lowcode/pisell-card/meta.ts +1 -1
- package/lowcode/pisell-countdown/snippets.ts +1 -1
- package/lowcode/pisell-empty/meta.ts +1 -1
- package/lowcode/pisell-loading/snippets.ts +1 -1
- package/lowcode/pisell-scan/snippets.ts +1 -1
- package/lowcode/pisell-text.amount/meta.ts +1 -1
- package/lowcode/pisell-tooltip/snippets.ts +1 -1
- package/lowcode/pisell-upload/__screenshots__/upload-1.png +0 -0
- package/lowcode/pisell-upload/meta.ts +508 -0
- package/lowcode/pisell-upload/snippets.ts +20 -0
- package/lowcode/pisell-wallet-pass-card/meta.ts +1 -1
- package/lowcode/segmented/meta.ts +1 -1
- package/lowcode/select/meta.ts +17 -0
- package/lowcode/select/snippets.ts +1 -0
- package/lowcode/sort/meta.ts +1 -1
- package/lowcode/submit-button/meta.ts +1079 -0
- package/lowcode/submit-button/snippets.ts +22 -0
- package/lowcode/table/snippets.ts +6 -0
- package/lowcode/test/meta.ts +1 -2
- package/package.json +6 -4
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/cardPro/index.js +0 -69
- package/es/components/cardPro/index.less +0 -55
- package/es/components/collapse/index.d.ts +0 -15
- package/es/components/collapse/index.js +0 -103
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/components/Action/index.js +0 -21
- package/es/components/productCard/components/Action/index.less +0 -14
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/components/AmountFooter/index.js +0 -58
- package/es/components/productCard/components/AmountFooter/index.less +0 -50
- package/es/components/productCard/components/Divider/index.d.ts +0 -4
- package/es/components/productCard/components/Divider/index.js +0 -11
- package/es/components/productCard/components/Divider/index.less +0 -13
- package/es/components/productCard/components/Header/index.d.ts +0 -4
- package/es/components/productCard/components/Header/index.js +0 -78
- package/es/components/productCard/components/Header/index.less +0 -64
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -4
- package/es/components/productCard/components/MultiDay/index.js +0 -79
- package/es/components/productCard/components/MultiDay/index.less +0 -34
- package/es/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/components/Note/index.d.ts +0 -4
- package/es/components/productCard/components/Note/index.js +0 -25
- package/es/components/productCard/components/Note/index.less +0 -20
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/es/components/productCard/components/Packages/components/collapsibleList/index.js +0 -96
- package/es/components/productCard/components/Packages/components/collapsibleList/index.less +0 -53
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +0 -39
- package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -4
- package/es/components/productCard/components/Packages/components/options/index.js +0 -23
- package/es/components/productCard/components/Packages/components/options/index.less +0 -29
- package/es/components/productCard/components/Packages/index.d.ts +0 -4
- package/es/components/productCard/components/Packages/index.less +0 -17
- package/es/components/productCard/components/Packages/utils.d.ts +0 -20
- package/es/components/productCard/components/Packages/utils.js +0 -40
- package/es/components/productCard/components/Sales/index.d.ts +0 -4
- package/es/components/productCard/components/Sales/index.less +0 -18
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -9
- package/es/components/productCard/components/Time/components/Like/index.js +0 -26
- package/es/components/productCard/components/Time/components/Like/index.less +0 -6
- package/es/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/es/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/es/components/productCard/components/Time/index.d.ts +0 -4
- package/es/components/productCard/components/Time/index.js +0 -46
- package/es/components/productCard/components/Time/index.less +0 -35
- package/es/components/productCard/hooks/useOpenNote.d.ts +0 -3
- package/es/components/productCard/hooks/useOpenNote.js +0 -66
- package/es/components/productCard/index.d.ts +0 -5
- package/es/components/productCard/index.js +0 -145
- package/es/components/productCard/index.less +0 -54
- package/es/components/productCard/locales.d.ts +0 -42
- package/es/components/productCard/locales.js +0 -47
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/status.js +0 -65
- package/es/components/productCard/types.d.ts +0 -76
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/productCard/utils.js +0 -72
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/cardPro/index.js +0 -101
- package/lib/components/cardPro/index.less +0 -55
- package/lib/components/collapse/index.d.ts +0 -15
- package/lib/components/collapse/index.js +0 -109
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/components/Action/index.less +0 -14
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/components/AmountFooter/index.js +0 -85
- package/lib/components/productCard/components/AmountFooter/index.less +0 -50
- package/lib/components/productCard/components/Divider/index.d.ts +0 -4
- package/lib/components/productCard/components/Divider/index.less +0 -13
- package/lib/components/productCard/components/Header/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/index.js +0 -90
- package/lib/components/productCard/components/Header/index.less +0 -64
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -4
- package/lib/components/productCard/components/MultiDay/index.js +0 -72
- package/lib/components/productCard/components/MultiDay/index.less +0 -34
- package/lib/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/components/MultiDay/utils.js +0 -77
- package/lib/components/productCard/components/Note/index.d.ts +0 -4
- package/lib/components/productCard/components/Note/index.less +0 -20
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.js +0 -93
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.less +0 -53
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +0 -53
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -4
- package/lib/components/productCard/components/Packages/components/options/index.js +0 -73
- package/lib/components/productCard/components/Packages/components/options/index.less +0 -29
- package/lib/components/productCard/components/Packages/index.d.ts +0 -4
- package/lib/components/productCard/components/Packages/index.less +0 -17
- package/lib/components/productCard/components/Packages/utils.d.ts +0 -20
- package/lib/components/productCard/components/Sales/index.d.ts +0 -4
- package/lib/components/productCard/components/Sales/index.js +0 -60
- package/lib/components/productCard/components/Sales/index.less +0 -18
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -9
- package/lib/components/productCard/components/Time/components/Like/index.less +0 -6
- package/lib/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/lib/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/lib/components/productCard/components/Time/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/index.js +0 -67
- package/lib/components/productCard/components/Time/index.less +0 -35
- package/lib/components/productCard/hooks/useOpenNote.d.ts +0 -3
- package/lib/components/productCard/hooks/useOpenNote.js +0 -84
- package/lib/components/productCard/index.d.ts +0 -5
- package/lib/components/productCard/index.js +0 -172
- package/lib/components/productCard/index.less +0 -54
- package/lib/components/productCard/locales.d.ts +0 -42
- package/lib/components/productCard/locales.js +0 -65
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -76
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/productCard/utils.js +0 -85
- package/lowcode/card-pro/meta.ts +0 -338
- package/lowcode/card-pro/snippe.ts +0 -39
- package/lowcode/product-card/meta.ts +0 -92
- package/lowcode/product-card/snippets.ts +0 -23
- /package/es/components/{productCard/types.js → dataSourceComponents/dataSourceForm/type.js} +0 -0
- /package/es/components/{collapse/index.less → dataSourceComponents/fields/Checkbox/ReadPretty.less} +0 -0
- /package/{lib/components/collapse/index.less → es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.less} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK"];
|
|
2
|
+
export declare const DEFAULT_MAX_COUNT = 9;
|
|
3
|
+
export declare const DEFAULT_UID = "-1";
|
|
4
|
+
export declare const MEDIA_TYPES: {
|
|
5
|
+
readonly VIDEO: "video/";
|
|
6
|
+
readonly AUDIO: "audio/";
|
|
7
|
+
};
|
|
8
|
+
export declare const IMAGE_QUALITY = 0.8;
|
|
9
|
+
export declare const IMAGE_TYPE = "image/jpeg";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/dataSourceComponents/fields/Upload/constants.ts
|
|
20
|
+
var constants_exports = {};
|
|
21
|
+
__export(constants_exports, {
|
|
22
|
+
DEFAULT_MAX_COUNT: () => DEFAULT_MAX_COUNT,
|
|
23
|
+
DEFAULT_UID: () => DEFAULT_UID,
|
|
24
|
+
IMAGE_QUALITY: () => IMAGE_QUALITY,
|
|
25
|
+
IMAGE_TYPE: () => IMAGE_TYPE,
|
|
26
|
+
MEDIA_TYPES: () => MEDIA_TYPES,
|
|
27
|
+
SUPPORTED_LANGUAGES: () => SUPPORTED_LANGUAGES
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(constants_exports);
|
|
30
|
+
var SUPPORTED_LANGUAGES = ["original", "en", "zh-CN", "zh-HK"];
|
|
31
|
+
var DEFAULT_MAX_COUNT = 9;
|
|
32
|
+
var DEFAULT_UID = "-1";
|
|
33
|
+
var MEDIA_TYPES = {
|
|
34
|
+
VIDEO: "video/",
|
|
35
|
+
AUDIO: "audio/"
|
|
36
|
+
};
|
|
37
|
+
var IMAGE_QUALITY = 0.8;
|
|
38
|
+
var IMAGE_TYPE = "image/jpeg";
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
DEFAULT_MAX_COUNT,
|
|
42
|
+
DEFAULT_UID,
|
|
43
|
+
IMAGE_QUALITY,
|
|
44
|
+
IMAGE_TYPE,
|
|
45
|
+
MEDIA_TYPES,
|
|
46
|
+
SUPPORTED_LANGUAGES
|
|
47
|
+
});
|
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/dataSourceComponents/fields/Upload/index.tsx
|
|
30
|
+
var Upload_exports = {};
|
|
31
|
+
__export(Upload_exports, {
|
|
32
|
+
default: () => Upload_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Upload_exports);
|
|
35
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
36
|
+
var import_WithMode = __toESM(require("./WithMode"));
|
|
37
|
+
var Upload = (0, import_utils.withFormItem)(import_WithMode.default);
|
|
38
|
+
var Upload_default = Upload;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
.pisell-lowcode-upload {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.pisell-upload-button {
|
|
5
|
+
border: 0;
|
|
6
|
+
background: none;
|
|
7
|
+
cursor: inherit;
|
|
8
|
+
color: #000;
|
|
9
|
+
|
|
10
|
+
.pisell-upload-text {
|
|
11
|
+
margin-top: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pisell-upload-globe-icon {
|
|
15
|
+
position: absolute;
|
|
16
|
+
right: 6px;
|
|
17
|
+
bottom: 6px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
color: #98A2B3;
|
|
20
|
+
font-size: 20px;
|
|
21
|
+
&:hover {
|
|
22
|
+
transition: color 0.3s;
|
|
23
|
+
color: var(--theme-color);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
// &[disabled] {
|
|
27
|
+
// opacity: 0.4;
|
|
28
|
+
// }
|
|
29
|
+
}
|
|
30
|
+
.pisell-data-source-upload {
|
|
31
|
+
.pisell-lowcode-upload-list-item-container {
|
|
32
|
+
.pisell-lowcode-upload-list-item-action {
|
|
33
|
+
&:hover {
|
|
34
|
+
background: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pisell-upload-multilingual-container {
|
|
41
|
+
padding: 24px 0;
|
|
42
|
+
|
|
43
|
+
.pisell-upload-multilingual-item {
|
|
44
|
+
margin-bottom: 24px;
|
|
45
|
+
&-title {
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
color: #344054;
|
|
49
|
+
margin-bottom: 8px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-content {
|
|
53
|
+
.ant-upload-wrapper {
|
|
54
|
+
.ant-upload-list {
|
|
55
|
+
.ant-upload-list-item-container {
|
|
56
|
+
width: 100px;
|
|
57
|
+
height: 100px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.ant-upload.ant-upload-select {
|
|
61
|
+
width: 100px;
|
|
62
|
+
height: 100px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pisell-upload-multilingual-icon {
|
|
70
|
+
color: #fff;
|
|
71
|
+
font-size: 16px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.pisell-lowcode-image-preview-wrap {
|
|
75
|
+
z-index: 1201 !important;
|
|
76
|
+
}
|
|
77
|
+
.pisell-lowcode-image-preview-mask {
|
|
78
|
+
z-index: 1201 !important;
|
|
79
|
+
}
|
|
80
|
+
.pisell-lowcode-image-preview-operations-wrapper {
|
|
81
|
+
z-index: 1202!important;
|
|
82
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取nocobase媒体数据列表
|
|
3
|
+
*/
|
|
4
|
+
export declare const getMediaTypeList: () => Promise<any>;
|
|
5
|
+
export interface MediaType {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
maxsize: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const useMediaConfig: () => {
|
|
11
|
+
data: any;
|
|
12
|
+
};
|
|
13
|
+
export declare const useMediaTypes: () => {
|
|
14
|
+
data: MediaType[];
|
|
15
|
+
getExtensionsByIds: (ids: number[]) => string[];
|
|
16
|
+
getMaxSizeByIds: (ids: number[]) => Record<number, number>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/dataSourceComponents/fields/Upload/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
getMediaTypeList: () => getMediaTypeList,
|
|
23
|
+
useMediaConfig: () => useMediaConfig,
|
|
24
|
+
useMediaTypes: () => useMediaTypes
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(serve_exports);
|
|
27
|
+
var import_ahooks = require("ahooks");
|
|
28
|
+
var import_utils = require("./utils");
|
|
29
|
+
var import_utils2 = require("../../../table/utils");
|
|
30
|
+
var getMediaTypeList = async () => {
|
|
31
|
+
const { data } = await import_utils2.request.getRequest().get(
|
|
32
|
+
`/media_type:list`,
|
|
33
|
+
{},
|
|
34
|
+
{
|
|
35
|
+
isNocobase: true,
|
|
36
|
+
fullResult: true,
|
|
37
|
+
headers: {
|
|
38
|
+
"x-data-source": "pisell2"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
return data;
|
|
43
|
+
};
|
|
44
|
+
var getMediaConfig = async () => {
|
|
45
|
+
const data = await import_utils2.request.getRequest().get(`/core/module/media/config`, {});
|
|
46
|
+
return data;
|
|
47
|
+
};
|
|
48
|
+
var useMediaConfig = () => {
|
|
49
|
+
const { data } = (0, import_ahooks.useRequest)(getMediaConfig, {
|
|
50
|
+
cacheKey: "media-config",
|
|
51
|
+
staleTime: 1e3 * 60 * 5,
|
|
52
|
+
// 5分钟后数据过期
|
|
53
|
+
cacheTime: 1e3 * 60 * 60
|
|
54
|
+
// 1小时后清除缓存
|
|
55
|
+
});
|
|
56
|
+
return { data };
|
|
57
|
+
};
|
|
58
|
+
var useMediaTypes = () => {
|
|
59
|
+
const { data } = (0, import_ahooks.useRequest)(getMediaTypeList, {
|
|
60
|
+
cacheKey: "media-type",
|
|
61
|
+
staleTime: 1e3 * 60 * 5,
|
|
62
|
+
// 5分钟后数据过期
|
|
63
|
+
cacheTime: 1e3 * 60 * 60
|
|
64
|
+
// 1小时后清除缓存
|
|
65
|
+
});
|
|
66
|
+
const getExtensionsByIds = (ids) => {
|
|
67
|
+
const extensions = [];
|
|
68
|
+
(data || []).forEach((item) => {
|
|
69
|
+
if (ids == null ? void 0 : ids.includes(item.id)) {
|
|
70
|
+
extensions.push(
|
|
71
|
+
...(item.extensions || []).map((item2) => (0, import_utils.getPointSuffix)(item2))
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
return extensions;
|
|
76
|
+
};
|
|
77
|
+
const getMaxSizeByIds = (ids) => {
|
|
78
|
+
const maxSizeMap = {};
|
|
79
|
+
(data || []).forEach((item) => {
|
|
80
|
+
if (ids == null ? void 0 : ids.includes(item.id)) {
|
|
81
|
+
item.extensions.forEach((extension) => {
|
|
82
|
+
const key = (0, import_utils.getPointSuffix)(extension);
|
|
83
|
+
maxSizeMap[key] = item.maxsize;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
return maxSizeMap;
|
|
88
|
+
};
|
|
89
|
+
return { data, getExtensionsByIds, getMaxSizeByIds };
|
|
90
|
+
};
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
getMediaTypeList,
|
|
94
|
+
useMediaConfig,
|
|
95
|
+
useMediaTypes
|
|
96
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
|
|
2
|
+
import type { UploadValue, UploadChangeHandler } from './types';
|
|
3
|
+
export interface UploadFile extends AntdUploadFile {
|
|
4
|
+
metadata?: {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
bitrate?: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface UploadProps {
|
|
12
|
+
renderMode?: string;
|
|
13
|
+
maxSize?: number;
|
|
14
|
+
minCount?: number;
|
|
15
|
+
maxCount?: number;
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
presetType?: string[];
|
|
18
|
+
customType?: string[];
|
|
19
|
+
enablePresetType?: boolean;
|
|
20
|
+
enableCustomType?: boolean;
|
|
21
|
+
allowPreview?: boolean;
|
|
22
|
+
value?: UploadValue;
|
|
23
|
+
typeMaxSizeMap?: Record<string, number>;
|
|
24
|
+
enableMultilingual?: boolean;
|
|
25
|
+
onChange?: UploadChangeHandler;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/dataSourceComponents/fields/Upload/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { UploadFile } from 'antd/es/upload/interface';
|
|
2
|
+
import { SUPPORTED_LANGUAGES } from './constants';
|
|
3
|
+
export declare type Language = typeof SUPPORTED_LANGUAGES[number];
|
|
4
|
+
export interface MediaMetadata {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
bitrate?: number;
|
|
9
|
+
cover?: File;
|
|
10
|
+
}
|
|
11
|
+
export interface FileCountValidation {
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
minCount: number;
|
|
14
|
+
maxCount: number;
|
|
15
|
+
valueLength: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ValidationResult {
|
|
18
|
+
success: boolean;
|
|
19
|
+
message?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface MultilingualFile extends UploadFile {
|
|
22
|
+
multilingual?: SingleMultilingualValue;
|
|
23
|
+
multilingualFileList?: Record<Language, UploadFile[]>;
|
|
24
|
+
response?: {
|
|
25
|
+
status: boolean;
|
|
26
|
+
data: {
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface FileListOptions {
|
|
32
|
+
enableMultilingual: boolean;
|
|
33
|
+
multiple: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare type SingleUploadValue = string;
|
|
36
|
+
export declare type MultipleUploadValue = string[];
|
|
37
|
+
export declare type SingleMultilingualValue = Record<Language, string>;
|
|
38
|
+
export declare type MultipleMultilingualValue = SingleMultilingualValue[];
|
|
39
|
+
export declare type UploadValue = SingleUploadValue | MultipleUploadValue | SingleMultilingualValue | MultipleMultilingualValue;
|
|
40
|
+
export interface MultilingualUploadResponse {
|
|
41
|
+
status: boolean;
|
|
42
|
+
data: {
|
|
43
|
+
url: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export declare type UploadChangeHandler = (value: UploadValue) => void;
|
|
47
|
+
export declare type NonNullMultilingualValue = NonNullable<SingleMultilingualValue>;
|
|
48
|
+
export declare type NonNullMultilingualArray = NonNullMultilingualValue[];
|
|
@@ -12,6 +12,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
12
12
|
};
|
|
13
13
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
14
|
|
|
15
|
-
// src/components/
|
|
15
|
+
// src/components/dataSourceComponents/fields/Upload/types.ts
|
|
16
16
|
var types_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RcFile, UploadFile } from 'antd/es/upload/interface';
|
|
2
|
+
import type { MediaMetadata, FileCountValidation, ValidationResult, MultilingualFile, FileListOptions, UploadValue, SingleMultilingualValue } from './types';
|
|
3
|
+
export declare const generateUid: () => string;
|
|
4
|
+
export declare const getSuffix: (name: string) => string;
|
|
5
|
+
export declare const getPointSuffix: (name: string) => string;
|
|
6
|
+
export declare const getFileType: (name: string) => string;
|
|
7
|
+
export declare const getFileName: (url: string) => string;
|
|
8
|
+
export declare const checkFileCount: ({ multiple, minCount, maxCount, valueLength, }: FileCountValidation) => ValidationResult;
|
|
9
|
+
export declare const getMediaMetadata: (file: RcFile) => Promise<MediaMetadata | null>;
|
|
10
|
+
export declare const genFileListByString: (value: string) => UploadFile[];
|
|
11
|
+
export declare const createMultilingualData: (value: string) => SingleMultilingualValue;
|
|
12
|
+
export declare const createMultilingualFileList: (value: string) => Record<string, UploadFile<any>[]>;
|
|
13
|
+
export declare const getDefaultFileList: (value: UploadValue | undefined, options: FileListOptions) => MultilingualFile[];
|
|
14
|
+
export declare const getFileMetadataParams: (file: RcFile & {
|
|
15
|
+
metadata?: MediaMetadata;
|
|
16
|
+
}) => Record<string, any>;
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/dataSourceComponents/fields/Upload/utils.tsx
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
checkFileCount: () => checkFileCount,
|
|
23
|
+
createMultilingualData: () => createMultilingualData,
|
|
24
|
+
createMultilingualFileList: () => createMultilingualFileList,
|
|
25
|
+
genFileListByString: () => genFileListByString,
|
|
26
|
+
generateUid: () => generateUid,
|
|
27
|
+
getDefaultFileList: () => getDefaultFileList,
|
|
28
|
+
getFileMetadataParams: () => getFileMetadataParams,
|
|
29
|
+
getFileName: () => getFileName,
|
|
30
|
+
getFileType: () => getFileType,
|
|
31
|
+
getMediaMetadata: () => getMediaMetadata,
|
|
32
|
+
getPointSuffix: () => getPointSuffix,
|
|
33
|
+
getSuffix: () => getSuffix
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(utils_exports);
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_locales = require("../../../../locales");
|
|
38
|
+
var import_constants = require("./constants");
|
|
39
|
+
var generateUid = () => {
|
|
40
|
+
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
41
|
+
};
|
|
42
|
+
var getSuffix = (name) => name.split(".").pop() || "";
|
|
43
|
+
var getPointSuffix = (name) => `.${getSuffix(name)}`;
|
|
44
|
+
var getFileType = (name) => getPointSuffix(getSuffix(name));
|
|
45
|
+
var getFileName = (url) => {
|
|
46
|
+
const parts = url.split("/");
|
|
47
|
+
return parts[parts.length - 1] || "";
|
|
48
|
+
};
|
|
49
|
+
var checkFileCount = ({
|
|
50
|
+
multiple,
|
|
51
|
+
minCount,
|
|
52
|
+
maxCount,
|
|
53
|
+
valueLength
|
|
54
|
+
}) => {
|
|
55
|
+
if (!multiple)
|
|
56
|
+
return { success: true };
|
|
57
|
+
if (minCount === maxCount && valueLength !== minCount) {
|
|
58
|
+
return {
|
|
59
|
+
success: false,
|
|
60
|
+
message: (0, import_locales.getText)("pisell-upload-count-error")(minCount)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (minCount !== maxCount && (valueLength < minCount || valueLength > maxCount)) {
|
|
64
|
+
return {
|
|
65
|
+
success: false,
|
|
66
|
+
message: (0, import_locales.getText)("pisell-upload-count-error")(`${minCount}-${maxCount}`)
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return { success: true };
|
|
70
|
+
};
|
|
71
|
+
var createVideoMetadata = async (file) => {
|
|
72
|
+
return new Promise((resolve) => {
|
|
73
|
+
const video = document.createElement("video");
|
|
74
|
+
const canvas = document.createElement("canvas");
|
|
75
|
+
video.preload = "metadata";
|
|
76
|
+
let hasMetadata = false;
|
|
77
|
+
let hasSeeked = false;
|
|
78
|
+
const tryResolve = () => {
|
|
79
|
+
if (!hasMetadata || !hasSeeked)
|
|
80
|
+
return;
|
|
81
|
+
canvas.width = video.videoWidth;
|
|
82
|
+
canvas.height = video.videoHeight;
|
|
83
|
+
const ctx = canvas.getContext("2d");
|
|
84
|
+
ctx == null ? void 0 : ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
85
|
+
canvas.toBlob(
|
|
86
|
+
(blob) => {
|
|
87
|
+
const metadata = {
|
|
88
|
+
width: video.videoWidth,
|
|
89
|
+
height: video.videoHeight,
|
|
90
|
+
duration: video.duration,
|
|
91
|
+
bitrate: file.size / video.duration
|
|
92
|
+
};
|
|
93
|
+
if (blob) {
|
|
94
|
+
metadata.cover = new File([blob], `${file.name}-cover.jpg`, {
|
|
95
|
+
type: import_constants.IMAGE_TYPE
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
URL.revokeObjectURL(video.src);
|
|
99
|
+
resolve(metadata);
|
|
100
|
+
},
|
|
101
|
+
import_constants.IMAGE_TYPE,
|
|
102
|
+
import_constants.IMAGE_QUALITY
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
video.onloadedmetadata = () => {
|
|
106
|
+
hasMetadata = true;
|
|
107
|
+
tryResolve();
|
|
108
|
+
};
|
|
109
|
+
video.onseeked = () => {
|
|
110
|
+
hasSeeked = true;
|
|
111
|
+
tryResolve();
|
|
112
|
+
};
|
|
113
|
+
video.src = URL.createObjectURL(file);
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
var createAudioMetadata = async (file) => {
|
|
117
|
+
return new Promise((resolve) => {
|
|
118
|
+
const audio = document.createElement("audio");
|
|
119
|
+
audio.preload = "metadata";
|
|
120
|
+
audio.src = URL.createObjectURL(file);
|
|
121
|
+
audio.onloadedmetadata = () => {
|
|
122
|
+
URL.revokeObjectURL(audio.src);
|
|
123
|
+
resolve({
|
|
124
|
+
duration: audio.duration,
|
|
125
|
+
bitrate: file.size / audio.duration
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
var getMediaMetadata = async (file) => {
|
|
131
|
+
if (file.type.startsWith(import_constants.MEDIA_TYPES.VIDEO)) {
|
|
132
|
+
return createVideoMetadata(file);
|
|
133
|
+
}
|
|
134
|
+
if (file.type.startsWith(import_constants.MEDIA_TYPES.AUDIO)) {
|
|
135
|
+
return createAudioMetadata(file);
|
|
136
|
+
}
|
|
137
|
+
return null;
|
|
138
|
+
};
|
|
139
|
+
var genFileListByString = (value) => {
|
|
140
|
+
if (!value)
|
|
141
|
+
return [];
|
|
142
|
+
return [{
|
|
143
|
+
uid: generateUid(),
|
|
144
|
+
name: getFileName(value),
|
|
145
|
+
status: "done",
|
|
146
|
+
url: value
|
|
147
|
+
}];
|
|
148
|
+
};
|
|
149
|
+
var createMultilingualData = (value) => {
|
|
150
|
+
return import_constants.SUPPORTED_LANGUAGES.reduce((acc, lang) => {
|
|
151
|
+
acc[lang] = value;
|
|
152
|
+
return acc;
|
|
153
|
+
}, {});
|
|
154
|
+
};
|
|
155
|
+
var createMultilingualFileList = (value) => {
|
|
156
|
+
return import_constants.SUPPORTED_LANGUAGES.reduce((acc, lang) => {
|
|
157
|
+
acc[lang] = genFileListByString(value);
|
|
158
|
+
return acc;
|
|
159
|
+
}, {});
|
|
160
|
+
};
|
|
161
|
+
var handleMultilingualSingleFile = (value, index = 1) => ({
|
|
162
|
+
uid: `-${index}`,
|
|
163
|
+
name: getFileName(value),
|
|
164
|
+
status: "done",
|
|
165
|
+
url: value,
|
|
166
|
+
multilingualFileList: createMultilingualFileList(value),
|
|
167
|
+
multilingual: createMultilingualData(value)
|
|
168
|
+
});
|
|
169
|
+
var handleMultilingualObject = (value, index = 1) => {
|
|
170
|
+
const defaultUrl = value.original || value.en || value["zh-CN"] || value["zh-HK"];
|
|
171
|
+
return {
|
|
172
|
+
uid: `-${index}`,
|
|
173
|
+
name: getFileName(defaultUrl),
|
|
174
|
+
status: "done",
|
|
175
|
+
url: defaultUrl,
|
|
176
|
+
multilingual: value,
|
|
177
|
+
multilingualFileList: import_constants.SUPPORTED_LANGUAGES.reduce((acc, lang) => {
|
|
178
|
+
acc[lang] = genFileListByString(value[lang]);
|
|
179
|
+
return acc;
|
|
180
|
+
}, {})
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
var getDefaultFileList = (value, options) => {
|
|
184
|
+
if (!value)
|
|
185
|
+
return [];
|
|
186
|
+
if (Object.values(value).filter((item) => !!item).length === 0)
|
|
187
|
+
return [];
|
|
188
|
+
const { enableMultilingual, multiple } = options;
|
|
189
|
+
if (enableMultilingual) {
|
|
190
|
+
if ((0, import_utils.isString)(value)) {
|
|
191
|
+
return [handleMultilingualSingleFile(value)];
|
|
192
|
+
}
|
|
193
|
+
if (Array.isArray(value)) {
|
|
194
|
+
return value.map((item, index) => {
|
|
195
|
+
if ((0, import_utils.isString)(item)) {
|
|
196
|
+
return handleMultilingualSingleFile(item, index);
|
|
197
|
+
}
|
|
198
|
+
if ((0, import_utils.isPlainObject)(item)) {
|
|
199
|
+
return handleMultilingualObject(item, index);
|
|
200
|
+
}
|
|
201
|
+
return [];
|
|
202
|
+
}).flat();
|
|
203
|
+
}
|
|
204
|
+
if ((0, import_utils.isPlainObject)(value)) {
|
|
205
|
+
return [handleMultilingualObject(value)];
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (multiple && Array.isArray(value)) {
|
|
209
|
+
return value.map((url, index) => ({
|
|
210
|
+
uid: `-${index}`,
|
|
211
|
+
name: getFileName(url),
|
|
212
|
+
status: "done",
|
|
213
|
+
url
|
|
214
|
+
}));
|
|
215
|
+
}
|
|
216
|
+
if ((0, import_utils.isString)(value)) {
|
|
217
|
+
return [{
|
|
218
|
+
uid: import_constants.DEFAULT_UID,
|
|
219
|
+
name: getFileName(value),
|
|
220
|
+
status: "done",
|
|
221
|
+
url: value
|
|
222
|
+
}];
|
|
223
|
+
}
|
|
224
|
+
return [];
|
|
225
|
+
};
|
|
226
|
+
var getFileMetadataParams = (file) => {
|
|
227
|
+
if (!file.metadata)
|
|
228
|
+
return {};
|
|
229
|
+
const metadataParams = {};
|
|
230
|
+
const metadataKeys = ["width", "height", "duration", "bitrate"];
|
|
231
|
+
metadataKeys.forEach((key) => {
|
|
232
|
+
var _a;
|
|
233
|
+
if (((_a = file.metadata) == null ? void 0 : _a[key]) !== void 0) {
|
|
234
|
+
metadataParams[`metadata[${key}]`] = file.metadata[key];
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
return metadataParams;
|
|
238
|
+
};
|
|
239
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
240
|
+
0 && (module.exports = {
|
|
241
|
+
checkFileCount,
|
|
242
|
+
createMultilingualData,
|
|
243
|
+
createMultilingualFileList,
|
|
244
|
+
genFileListByString,
|
|
245
|
+
generateUid,
|
|
246
|
+
getDefaultFileList,
|
|
247
|
+
getFileMetadataParams,
|
|
248
|
+
getFileName,
|
|
249
|
+
getFileType,
|
|
250
|
+
getMediaMetadata,
|
|
251
|
+
getPointSuffix,
|
|
252
|
+
getSuffix
|
|
253
|
+
});
|