@pisell/materials 1.0.449 → 1.0.451
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 +2 -2
- package/build/lowcode/preview.js +150 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +28 -28
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/collapse/index.d.ts +11 -2
- package/es/components/collapse/index.js +28 -22
- package/es/components/colorPicker/index.d.ts +4 -0
- package/es/components/colorPicker/index.js +6 -0
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceForm/formItem.js +46 -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 +75 -0
- package/es/components/dataSourceComponents/dataSourceForm/index.less +24 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +10 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js +6 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +24 -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/serve.d.ts +147 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +253 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +36 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +217 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.less +4 -0
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +16 -0
- package/es/components/dataSourceComponents/dataSourceForm/type.js +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +36 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +188 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +56 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +2 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +39 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +10 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +35 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +27 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +41 -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/useTableQuery.d.ts +19 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +51 -0
- package/es/components/dataSourceComponents/dataSourceTable/index.d.ts +4 -0
- package/es/components/dataSourceComponents/dataSourceTable/index.js +208 -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 +15 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Checkbox/ReadPretty.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +14 -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 +6 -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 +4 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.js +9 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/WithMode.js +5 -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 +4 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +7 -0
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +17 -0
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/DatePicker/index.js +4 -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/Input/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.js +5 -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 +13 -0
- package/es/components/dataSourceComponents/fields/Input/index.js +12 -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.Json/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.js +11 -0
- package/es/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Json/WithMode.js +5 -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 +4 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.js +5 -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.TextArea/ReadPretty.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.js +5 -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 +4 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.js +9 -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 +4 -0
- package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.js +7 -0
- package/es/components/dataSourceComponents/fields/InputNumber/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/InputNumber/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/InputNumber/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/InputNumber/index.js +4 -0
- package/es/components/dataSourceComponents/fields/InputNumber/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/InputNumber/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Radio/ReadPretty.d.ts +7 -0
- package/es/components/dataSourceComponents/fields/Radio/ReadPretty.js +14 -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 +6 -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 +9 -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 +3 -0
- package/es/components/dataSourceComponents/fields/Select/index.js +4 -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 +4 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.js +6 -0
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/TimePicker/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/TimePicker/index.js +4 -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/index.d.ts +16 -0
- package/es/components/dataSourceComponents/fields/index.js +27 -0
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +16 -0
- package/es/components/dataSourceComponents/hooks/useActions.js +302 -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/dataSourceComponents/provider/actions/ActionsProvider.js +28 -0
- package/es/components/dataSourceComponents/provider/fields/DataSourceContext.d.ts +75 -0
- package/es/components/dataSourceComponents/provider/fields/DataSourceContext.js +6 -0
- package/es/components/dataSourceComponents/provider/fields/DataSourceProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/provider/fields/DataSourceProvider.js +20 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +9 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.js +8 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +82 -0
- package/es/components/form/index.d.ts +2 -8
- package/es/components/form/index.js +3 -1
- package/es/components/page/index.js +3 -2
- package/es/components/pisellAnchor/index.js +0 -1
- package/es/components/pisellStatistic/index.js +0 -1
- package/es/components/pisellUpload/index.js +0 -1
- package/es/components/pisellUploadCrop/index.js +0 -1
- package/es/components/pisellWalletCard/index.js +0 -2
- package/es/components/pisellWalletPassCard/index.js +4 -1
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/{Actions → Action}/index.js +7 -6
- package/{lib/components/productCard/components/Actions → es/components/productCard/components/Action}/index.less +1 -1
- package/es/components/productCard/components/AmountFooter/index.d.ts +2 -2
- package/es/components/productCard/components/AmountFooter/index.js +13 -7
- package/es/components/productCard/components/AmountFooter/index.less +9 -0
- package/es/components/productCard/components/Header/index.d.ts +1 -1
- package/es/components/productCard/components/Header/index.js +17 -18
- package/es/components/productCard/components/Header/index.less +4 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -1
- package/es/components/productCard/components/Note/index.js +11 -4
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -1
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +14 -12
- package/es/components/productCard/components/Packages/components/options/index.less +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -1
- package/es/components/productCard/components/Packages/index.js +14 -5
- package/es/components/productCard/components/Sales/index.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.js +23 -6
- package/es/components/productCard/components/Time/components/Like/index.d.ts +2 -2
- package/es/components/productCard/components/Time/components/Like/index.js +3 -3
- package/es/components/productCard/components/Time/index.d.ts +1 -1
- package/es/components/productCard/components/Time/index.js +28 -14
- package/es/components/productCard/components/Time/index.less +10 -0
- package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/es/components/productCard/hooks/useOpenNote.js +58 -0
- package/es/components/productCard/index.js +76 -33
- package/es/components/productCard/index.less +8 -3
- package/es/components/productCard/locales.d.ts +24 -0
- package/es/components/productCard/locales.js +29 -0
- package/es/components/productCard/types.d.ts +6 -0
- package/es/components/productCard/utils.js +23 -5
- package/es/components/record-view/index.js +0 -3
- package/es/components/section-footers/index.js +0 -1
- package/es/components/select/index.d.ts +1 -1
- package/es/components/select/index.js +2 -1
- package/es/components/table/utils.d.ts +5 -6
- package/es/components/table/utils.js +7 -1
- package/es/components/tabs/index.js +0 -4
- package/es/hooks/useSetRequest.d.ts +2 -0
- package/es/hooks/useSetRequest.js +8 -0
- package/es/index.d.ts +13 -0
- package/es/index.js +16 -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/collapse/index.d.ts +11 -2
- package/lib/components/collapse/index.js +27 -21
- package/lib/components/colorPicker/index.d.ts +4 -0
- package/lib/components/{productCard/components/Holder → colorPicker}/index.js +9 -11
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +59 -0
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.js +80 -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 +103 -0
- package/lib/components/dataSourceComponents/dataSourceForm/index.less +24 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +10 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js +35 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +54 -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/serve.d.ts +147 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +141 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +36 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +157 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.less +4 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +16 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.js +17 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +36 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +177 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.d.ts +11 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +85 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +2 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +55 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +10 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +45 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +27 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +62 -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/useTableQuery.d.ts +19 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +56 -0
- package/lib/components/dataSourceComponents/dataSourceTable/index.d.ts +4 -0
- package/lib/components/dataSourceComponents/dataSourceTable/index.js +193 -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 +15 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.d.ts +7 -0
- package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +47 -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 +40 -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 +4 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.js +40 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/WithMode.js +39 -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 +4 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +41 -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 +38 -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/Input/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.js +39 -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 +13 -0
- package/lib/components/dataSourceComponents/fields/Input/index.js +46 -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.Json/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.js +45 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.js +39 -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 +4 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.js +39 -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.TextArea/ReadPretty.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.js +39 -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 +4 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.js +41 -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 +4 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.js +40 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.js +42 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/InputNumber/type.js +17 -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 +40 -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 +3 -0
- package/lib/components/dataSourceComponents/fields/Select/index.js +38 -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 +4 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.js +40 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/index.js +38 -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/index.d.ts +16 -0
- package/lib/components/dataSourceComponents/fields/index.js +64 -0
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +16 -0
- package/lib/components/dataSourceComponents/hooks/useActions.js +184 -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/fields/DataSourceContext.d.ts +75 -0
- package/lib/components/dataSourceComponents/provider/fields/DataSourceContext.js +35 -0
- package/lib/components/dataSourceComponents/provider/fields/DataSourceProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/provider/fields/DataSourceProvider.js +46 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +9 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.js +39 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +104 -0
- package/lib/components/form/index.d.ts +2 -8
- package/lib/components/form/index.js +3 -2
- package/lib/components/page/index.js +7 -3
- package/lib/components/pisellAnchor/index.js +0 -5
- package/lib/components/pisellStatistic/index.js +0 -5
- package/lib/components/pisellUpload/index.js +0 -5
- package/lib/components/pisellUploadCrop/index.js +0 -5
- package/lib/components/pisellWalletCard/index.js +0 -10
- package/lib/components/pisellWalletPassCard/index.js +3 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/{Actions → Action}/index.js +11 -10
- package/{es/components/productCard/components/Actions → lib/components/productCard/components/Action}/index.less +1 -1
- package/lib/components/productCard/components/AmountFooter/index.d.ts +2 -2
- package/lib/components/productCard/components/AmountFooter/index.js +8 -8
- package/lib/components/productCard/components/AmountFooter/index.less +9 -0
- package/lib/components/productCard/components/Header/index.d.ts +1 -1
- package/lib/components/productCard/components/Header/index.js +8 -8
- package/lib/components/productCard/components/Header/index.less +4 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -1
- package/lib/components/productCard/components/Note/index.js +14 -2
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -1
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +7 -3
- package/lib/components/productCard/components/Packages/components/options/index.less +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -1
- package/lib/components/productCard/components/Packages/index.js +7 -3
- package/lib/components/productCard/components/Sales/index.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.js +13 -3
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +2 -2
- package/lib/components/productCard/components/Time/components/Like/index.js +3 -3
- package/lib/components/productCard/components/Time/index.d.ts +1 -1
- package/lib/components/productCard/components/Time/index.js +17 -10
- package/lib/components/productCard/components/Time/index.less +10 -0
- package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
- package/lib/components/productCard/hooks/useOpenNote.js +79 -0
- package/lib/components/productCard/index.js +96 -43
- package/lib/components/productCard/index.less +8 -3
- package/lib/components/productCard/locales.d.ts +24 -0
- package/lib/components/productCard/locales.js +47 -0
- package/lib/components/productCard/types.d.ts +6 -0
- package/lib/components/productCard/utils.js +18 -3
- package/lib/components/record-view/index.js +0 -15
- package/lib/components/section-footers/index.js +0 -5
- package/lib/components/select/index.d.ts +1 -1
- package/lib/components/select/index.js +2 -1
- package/lib/components/table/utils.d.ts +5 -6
- package/lib/components/table/utils.js +7 -1
- package/lib/components/tabs/index.js +0 -20
- package/lib/hooks/useSetRequest.d.ts +2 -0
- package/lib/hooks/useSetRequest.js +42 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +39 -0
- 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 +430 -0
- package/lowcode/color-picker/__screenshots__/input-1.png +0 -0
- package/lowcode/color-picker/meta.ts +298 -0
- package/lowcode/color-picker/snippets.ts +9 -0
- package/lowcode/data-source-form/__screenshots__/form-1.png +0 -0
- package/lowcode/data-source-form/constants.ts +39 -0
- package/lowcode/data-source-form/meta.ts +797 -0
- package/lowcode/data-source-form/snippets.ts +130 -0
- package/lowcode/data-source-form/utils.ts +343 -0
- package/lowcode/data-source-table/__screenshots__/table-1.png +0 -0
- package/lowcode/data-source-table/meta.ts +2697 -0
- package/lowcode/data-source-table/snippets.ts +84 -0
- package/lowcode/data-source-table/utils.tsx +140 -0
- package/lowcode/form/meta.ts +118 -22
- package/lowcode/form/snippets.ts +2 -481
- package/lowcode/form-group/meta.ts +346 -0
- package/lowcode/form-group/snippets.ts +16 -0
- package/lowcode/form-item-checkbox/meta.ts +88 -0
- package/lowcode/form-item-checkbox/snippets.ts +35 -0
- package/lowcode/form-item-checkbox.group/__screenshots__/checkbox-group-1.png +0 -0
- package/lowcode/form-item-checkbox.group/meta.ts +159 -0
- package/lowcode/form-item-color-picker/__screenshots__/input-1.png +0 -0
- package/lowcode/form-item-color-picker/meta.ts +301 -0
- package/lowcode/form-item-color-picker/snippets.ts +9 -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 +290 -0
- package/lowcode/form-item-date-picker/snippets.ts +50 -0
- package/lowcode/form-item-input/__screenshots__/input-1.png +0 -0
- package/lowcode/form-item-input/meta.ts +227 -0
- package/lowcode/form-item-input/snippets.ts +12 -0
- package/lowcode/form-item-input-number/__screenshots__/input-number-1.png +0 -0
- package/lowcode/form-item-input-number/meta.ts +228 -0
- package/lowcode/form-item-input-number/snippets.ts +12 -0
- package/lowcode/form-item-input.json/meta.ts +213 -0
- package/lowcode/form-item-input.json/snippets.ts +16 -0
- package/lowcode/form-item-input.password/__screenshots__/input-password-1.png +0 -0
- package/lowcode/form-item-input.password/meta.ts +198 -0
- package/lowcode/form-item-input.password/snippets.ts +12 -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 +213 -0
- package/lowcode/form-item-input.text-area/snippets.ts +16 -0
- package/lowcode/form-item-input.url/meta.ts +213 -0
- package/lowcode/form-item-input.url/snippets.ts +15 -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 +36 -0
- package/lowcode/form-item-radio.group/__screenshots__/radio-group-1.png +0 -0
- package/lowcode/form-item-radio.group/meta.ts +221 -0
- package/lowcode/form-item-select/__screenshots__/select-1.png +0 -0
- package/lowcode/form-item-select/meta.ts +463 -0
- package/lowcode/form-item-select/snippets.ts +28 -0
- package/lowcode/form-item-time-picker/__screenshots__/time-picker-1.png +0 -0
- package/lowcode/form-item-time-picker/meta.ts +235 -0
- package/lowcode/form-item-time-picker/snippets.ts +10 -0
- package/lowcode/form.item/meta.ts +104 -25
- package/lowcode/pisell-text.amount/meta.ts +1 -1
- package/lowcode/product-card/snippets.ts +10 -2
- package/lowcode/submit-button/meta.ts +1002 -0
- package/lowcode/submit-button/snippets.ts +15 -0
- package/lowcode/timeline/meta.ts +1 -2
- package/package.json +2 -2
- package/es/components/productCard/components/Actions/index.d.ts +0 -4
- package/es/components/productCard/components/Holder/index.d.ts +0 -4
- package/es/components/productCard/components/Holder/index.js +0 -11
- package/es/components/productCard/components/Holder/index.less +0 -11
- package/lib/components/productCard/components/Actions/index.d.ts +0 -4
- package/lib/components/productCard/components/Holder/index.d.ts +0 -4
- package/lib/components/productCard/components/Holder/index.less +0 -11
|
@@ -0,0 +1,193 @@
|
|
|
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/dataSourceTable/index.tsx
|
|
30
|
+
var dataSourceTable_exports = {};
|
|
31
|
+
__export(dataSourceTable_exports, {
|
|
32
|
+
default: () => dataSourceTable_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(dataSourceTable_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_ahooks = require("ahooks");
|
|
37
|
+
var import_antd = require("antd");
|
|
38
|
+
var import_table = __toESM(require("../../table"));
|
|
39
|
+
var import_TableSettingProvider = __toESM(require("./provider/tableSetting/TableSettingProvider"));
|
|
40
|
+
var import_DataSourceProvider = __toESM(require("../provider/fields/DataSourceProvider"));
|
|
41
|
+
var import_useVariables = __toESM(require("../hooks/useVariables"));
|
|
42
|
+
var import_useColumns = __toESM(require("./hooks/useColumns"));
|
|
43
|
+
var import_usePagination = __toESM(require("./hooks/usePagination"));
|
|
44
|
+
var import_useActions = __toESM(require("../hooks/useActions"));
|
|
45
|
+
var import_ActionsProvider = __toESM(require("../provider/actions/ActionsProvider"));
|
|
46
|
+
var import_useDrawerState = __toESM(require("./hooks/useDrawerState"));
|
|
47
|
+
var import_useDesignMode = __toESM(require("./hooks/useDesignMode"));
|
|
48
|
+
var import_useTableQuery = __toESM(require("./hooks/useTableQuery"));
|
|
49
|
+
var import_useSetRequest = __toESM(require("../../../hooks/useSetRequest"));
|
|
50
|
+
var DRAWER_TITLES = {
|
|
51
|
+
detail: "详情",
|
|
52
|
+
edit: "编辑",
|
|
53
|
+
add: "添加"
|
|
54
|
+
};
|
|
55
|
+
var DataSourceTable = (props) => {
|
|
56
|
+
const {
|
|
57
|
+
columns: propsColumns,
|
|
58
|
+
dataSource,
|
|
59
|
+
detailContent,
|
|
60
|
+
editContent,
|
|
61
|
+
showDetailButton,
|
|
62
|
+
showEditButton,
|
|
63
|
+
showDeleteButton,
|
|
64
|
+
showAddButton,
|
|
65
|
+
addContent,
|
|
66
|
+
__designMode,
|
|
67
|
+
...others
|
|
68
|
+
} = props;
|
|
69
|
+
(0, import_useSetRequest.default)();
|
|
70
|
+
const { registerVariable } = (0, import_useVariables.default)();
|
|
71
|
+
const {
|
|
72
|
+
drawerVisible,
|
|
73
|
+
setDrawerVisible,
|
|
74
|
+
drawerType,
|
|
75
|
+
openDrawer,
|
|
76
|
+
closeDrawer
|
|
77
|
+
} = (0, import_useDrawerState.default)();
|
|
78
|
+
const { queryPageConfig, handleValuesChange, refreshData } = (0, import_useTableQuery.default)();
|
|
79
|
+
const { list, destroy } = (0, import_useActions.default)({
|
|
80
|
+
dataSource
|
|
81
|
+
});
|
|
82
|
+
const { data, loading, run, mutate } = (0, import_ahooks.useRequest)(list, {
|
|
83
|
+
manual: true
|
|
84
|
+
});
|
|
85
|
+
(0, import_useDesignMode.default)(props, { registerVariable, openDrawer, closeDrawer, data });
|
|
86
|
+
(0, import_react.useEffect)(() => {
|
|
87
|
+
if (dataSource) {
|
|
88
|
+
run(queryPageConfig);
|
|
89
|
+
} else {
|
|
90
|
+
mutate([]);
|
|
91
|
+
}
|
|
92
|
+
}, [dataSource, run, queryPageConfig]);
|
|
93
|
+
const handleOpenDrawer = (record, type) => {
|
|
94
|
+
openDrawer(type);
|
|
95
|
+
registerVariable == null ? void 0 : registerVariable({
|
|
96
|
+
currentRecord: record
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
const handleCloseDrawer = () => {
|
|
100
|
+
closeDrawer();
|
|
101
|
+
registerVariable == null ? void 0 : registerVariable({
|
|
102
|
+
currentRecord: null
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
const handleDelete = async (record) => {
|
|
106
|
+
registerVariable == null ? void 0 : registerVariable({
|
|
107
|
+
currentRecord: record
|
|
108
|
+
});
|
|
109
|
+
setTimeout(async () => {
|
|
110
|
+
await destroy(record.id);
|
|
111
|
+
refreshData();
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
const actionsColumns = (0, import_react.useMemo)(() => {
|
|
115
|
+
return [
|
|
116
|
+
{
|
|
117
|
+
title: "操作",
|
|
118
|
+
key: "actions",
|
|
119
|
+
showDetailButton,
|
|
120
|
+
showEditButton,
|
|
121
|
+
showDeleteButton,
|
|
122
|
+
render: (_, record) => {
|
|
123
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, showDetailButton && /* @__PURE__ */ import_react.default.createElement(
|
|
124
|
+
import_antd.Button,
|
|
125
|
+
{
|
|
126
|
+
onClick: () => handleOpenDrawer(record, "detail"),
|
|
127
|
+
type: "link"
|
|
128
|
+
},
|
|
129
|
+
"详情"
|
|
130
|
+
), showEditButton && /* @__PURE__ */ import_react.default.createElement(
|
|
131
|
+
import_antd.Button,
|
|
132
|
+
{
|
|
133
|
+
onClick: () => handleOpenDrawer(record, "edit"),
|
|
134
|
+
type: "link"
|
|
135
|
+
},
|
|
136
|
+
"编辑"
|
|
137
|
+
), showDeleteButton && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: () => handleDelete(record), type: "link", danger: true }, "删除"));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
];
|
|
141
|
+
}, [showDetailButton, showEditButton, showDeleteButton]);
|
|
142
|
+
const columns = (0, import_useColumns.default)({
|
|
143
|
+
columns: propsColumns,
|
|
144
|
+
fields: dataSource == null ? void 0 : dataSource.fields,
|
|
145
|
+
// 操作列
|
|
146
|
+
actionsColumns
|
|
147
|
+
});
|
|
148
|
+
const pagination = (0, import_usePagination.default)({ data });
|
|
149
|
+
const getDrawerContent = (type) => {
|
|
150
|
+
const contentMap = {
|
|
151
|
+
detail: detailContent,
|
|
152
|
+
edit: editContent,
|
|
153
|
+
add: addContent
|
|
154
|
+
};
|
|
155
|
+
return contentMap[type];
|
|
156
|
+
};
|
|
157
|
+
return /* @__PURE__ */ import_react.default.createElement(import_TableSettingProvider.default, null, /* @__PURE__ */ import_react.default.createElement(import_DataSourceProvider.default, { dataSource }, showAddButton && /* @__PURE__ */ import_react.default.createElement("div", { style: { marginBottom: 16 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
158
|
+
import_antd.Button,
|
|
159
|
+
{
|
|
160
|
+
type: "primary",
|
|
161
|
+
onClick: () => handleOpenDrawer(null, "add")
|
|
162
|
+
},
|
|
163
|
+
"添加"
|
|
164
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
165
|
+
import_table.default,
|
|
166
|
+
{
|
|
167
|
+
...others,
|
|
168
|
+
columns,
|
|
169
|
+
dataSource: (data == null ? void 0 : data.data) || [],
|
|
170
|
+
loading,
|
|
171
|
+
onValuesChange: handleValuesChange,
|
|
172
|
+
pagination
|
|
173
|
+
}
|
|
174
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
175
|
+
import_ActionsProvider.default,
|
|
176
|
+
{
|
|
177
|
+
visible: drawerVisible,
|
|
178
|
+
setVisible: setDrawerVisible,
|
|
179
|
+
refreshTableData: refreshData
|
|
180
|
+
},
|
|
181
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
182
|
+
import_antd.Drawer,
|
|
183
|
+
{
|
|
184
|
+
title: DRAWER_TITLES[drawerType],
|
|
185
|
+
open: drawerVisible,
|
|
186
|
+
onClose: handleCloseDrawer,
|
|
187
|
+
destroyOnClose: true
|
|
188
|
+
},
|
|
189
|
+
getDrawerContent(drawerType)
|
|
190
|
+
)
|
|
191
|
+
)));
|
|
192
|
+
};
|
|
193
|
+
var dataSourceTable_default = DataSourceTable;
|
|
@@ -0,0 +1,33 @@
|
|
|
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/dataSourceTable/provider/tableSetting/TableSettingContext.ts
|
|
20
|
+
var TableSettingContext_exports = {};
|
|
21
|
+
__export(TableSettingContext_exports, {
|
|
22
|
+
TableSettingContext: () => TableSettingContext,
|
|
23
|
+
default: () => TableSettingContext_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(TableSettingContext_exports);
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var initialContext = {};
|
|
28
|
+
var TableSettingContext = (0, import_react.createContext)(initialContext);
|
|
29
|
+
var TableSettingContext_default = TableSettingContext;
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
TableSettingContext
|
|
33
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableSettingContextType } from './TableSettingContext';
|
|
3
|
+
/**
|
|
4
|
+
* @title: 表单设置Provider
|
|
5
|
+
* @description: 提供表单设置信息
|
|
6
|
+
*/
|
|
7
|
+
declare const TableSettingProvider: React.FC<TableSettingContextType>;
|
|
8
|
+
export default TableSettingProvider;
|
|
@@ -0,0 +1,52 @@
|
|
|
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/dataSourceTable/provider/tableSetting/TableSettingProvider.tsx
|
|
30
|
+
var TableSettingProvider_exports = {};
|
|
31
|
+
__export(TableSettingProvider_exports, {
|
|
32
|
+
default: () => TableSettingProvider_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(TableSettingProvider_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_TableSettingContext = __toESM(require("./TableSettingContext"));
|
|
37
|
+
var TableSettingProvider = (props) => {
|
|
38
|
+
const { children, dataSource } = props;
|
|
39
|
+
const value = import_react.default.useMemo(() => {
|
|
40
|
+
return {
|
|
41
|
+
dataSource
|
|
42
|
+
};
|
|
43
|
+
}, [dataSource]);
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
45
|
+
import_TableSettingContext.default.Provider,
|
|
46
|
+
{
|
|
47
|
+
value
|
|
48
|
+
},
|
|
49
|
+
children
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
var TableSettingProvider_default = TableSettingProvider;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnType } from "antd/es/table";
|
|
3
|
+
import { DataSourceType } from "../provider/fields/DataSourceContext";
|
|
4
|
+
export interface DataSourceTableProps {
|
|
5
|
+
dataSource: DataSourceType;
|
|
6
|
+
columns: ColumnType<any>[];
|
|
7
|
+
showDetailButton?: boolean;
|
|
8
|
+
showEditButton?: boolean;
|
|
9
|
+
showDeleteButton?: boolean;
|
|
10
|
+
showAddButton?: boolean;
|
|
11
|
+
detailContent?: React.ReactNode;
|
|
12
|
+
editContent?: React.ReactNode;
|
|
13
|
+
addContent?: React.ReactNode;
|
|
14
|
+
__designMode: string;
|
|
15
|
+
}
|
|
@@ -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/dataSourceTable/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CheckboxProps, CheckboxGroupProps } from './type';
|
|
3
|
+
declare type CheckboxReadPrettyType = React.FC<CheckboxProps> & {
|
|
4
|
+
Group: React.FC<CheckboxGroupProps>;
|
|
5
|
+
};
|
|
6
|
+
declare const CheckboxReadPretty: CheckboxReadPrettyType;
|
|
7
|
+
export default CheckboxReadPretty;
|
|
@@ -0,0 +1,47 @@
|
|
|
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/Checkbox/ReadPretty.tsx
|
|
30
|
+
var ReadPretty_exports = {};
|
|
31
|
+
__export(ReadPretty_exports, {
|
|
32
|
+
default: () => ReadPretty_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ReadPretty_exports);
|
|
35
|
+
var import_useValueMap = __toESM(require("../../hooks/useValueMap"));
|
|
36
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
37
|
+
var CheckboxReadPretty = (props) => {
|
|
38
|
+
const { value } = props;
|
|
39
|
+
return (0, import_utils.renderValueWithMap)(value);
|
|
40
|
+
};
|
|
41
|
+
var CheckboxGroupReadPretty = (props) => {
|
|
42
|
+
const { value, options } = props;
|
|
43
|
+
const valueMap = (0, import_useValueMap.default)(options || []);
|
|
44
|
+
return (0, import_utils.renderValueWithMap)(value, valueMap);
|
|
45
|
+
};
|
|
46
|
+
CheckboxReadPretty.Group = CheckboxGroupReadPretty;
|
|
47
|
+
var ReadPretty_default = CheckboxReadPretty;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type CheckboxComponent = React.FC & {
|
|
3
|
+
Group: typeof CheckboxGroupWithMode;
|
|
4
|
+
};
|
|
5
|
+
declare const CheckboxWithMode: CheckboxComponent;
|
|
6
|
+
declare const CheckboxGroupWithMode: import("react").FC<import("./type").CheckboxGroupProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
7
|
+
export default CheckboxWithMode;
|
|
@@ -0,0 +1,41 @@
|
|
|
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/Checkbox/WithMode.ts
|
|
30
|
+
var WithMode_exports = {};
|
|
31
|
+
__export(WithMode_exports, {
|
|
32
|
+
default: () => WithMode_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WithMode_exports);
|
|
35
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
36
|
+
var import_checkbox = __toESM(require("../../../checkbox"));
|
|
37
|
+
var import_ReadPretty = __toESM(require("./ReadPretty"));
|
|
38
|
+
var CheckboxWithMode = (0, import_utils.withMode)(import_checkbox.default, import_ReadPretty.default);
|
|
39
|
+
var CheckboxGroupWithMode = (0, import_utils.withMode)(import_checkbox.default.Group, import_ReadPretty.default.Group);
|
|
40
|
+
CheckboxWithMode.Group = CheckboxGroupWithMode;
|
|
41
|
+
var WithMode_default = CheckboxWithMode;
|
|
@@ -0,0 +1,40 @@
|
|
|
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/Checkbox/index.tsx
|
|
30
|
+
var Checkbox_exports = {};
|
|
31
|
+
__export(Checkbox_exports, {
|
|
32
|
+
default: () => Checkbox_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Checkbox_exports);
|
|
35
|
+
var import_WithMode = __toESM(require("./WithMode"));
|
|
36
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
37
|
+
var Checkbox = (0, import_utils.withFormItem)(import_WithMode.default);
|
|
38
|
+
var CheckboxGroupWithFormItem = (0, import_utils.withFormItem)(import_WithMode.default.Group);
|
|
39
|
+
Checkbox.Group = CheckboxGroupWithFormItem;
|
|
40
|
+
var Checkbox_default = Checkbox;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CheckboxProps as AntCheckboxProps } from 'antd';
|
|
2
|
+
import { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
|
|
3
|
+
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
+
export interface CheckboxProps extends AntCheckboxProps {
|
|
5
|
+
renderMode: ModeType;
|
|
6
|
+
}
|
|
7
|
+
export interface CheckboxGroupProps extends AntCheckboxGroupProps {
|
|
8
|
+
renderMode: ModeType;
|
|
9
|
+
}
|
|
@@ -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/Checkbox/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
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/ColorPicker/ReadPretty.tsx
|
|
30
|
+
var ReadPretty_exports = {};
|
|
31
|
+
__export(ReadPretty_exports, {
|
|
32
|
+
default: () => ReadPretty_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ReadPretty_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var ColorPickerReadPretty = (props) => {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.ColorPicker, { ...props, open: false });
|
|
39
|
+
};
|
|
40
|
+
var ReadPretty_default = ColorPickerReadPretty;
|
|
@@ -0,0 +1,39 @@
|
|
|
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/ColorPicker/WithMode.ts
|
|
30
|
+
var WithMode_exports = {};
|
|
31
|
+
__export(WithMode_exports, {
|
|
32
|
+
default: () => WithMode_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WithMode_exports);
|
|
35
|
+
var import_antd = require("antd");
|
|
36
|
+
var import_ReadPretty = __toESM(require("./ReadPretty"));
|
|
37
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
38
|
+
var ColorPickerWithMode = (0, import_utils.withMode)(import_antd.ColorPicker, import_ReadPretty.default);
|
|
39
|
+
var WithMode_default = ColorPickerWithMode;
|
|
@@ -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/ColorPicker/index.tsx
|
|
30
|
+
var ColorPicker_exports = {};
|
|
31
|
+
__export(ColorPicker_exports, {
|
|
32
|
+
default: () => ColorPicker_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ColorPicker_exports);
|
|
35
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
36
|
+
var import_WithMode = __toESM(require("./WithMode"));
|
|
37
|
+
var ColorPicker = (0, import_utils.withFormItem)(import_WithMode.default);
|
|
38
|
+
var ColorPicker_default = ColorPicker;
|