@aplus-frontend/ui 7.1.1 → 7.3.0
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/es/index.mjs +207 -211
- package/es/src/ag-grid/index.vue.mjs +247 -239
- package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +197 -197
- package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +122 -2
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +2 -122
- package/es/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
- package/es/src/ap-pro-card/components/title/index.vue2.mjs +18 -13
- package/es/src/ap-pro-card/index.d.ts +1 -1
- package/es/src/ap-pro-card/index.mjs +2 -2
- package/es/src/ap-pro-card/statistic-card/index.d.ts +2 -0
- package/es/src/ap-pro-card/statistic-card/index.mjs +5 -0
- package/es/src/ap-table/ap-table.vue2.mjs +190 -190
- package/es/src/business/ag-grid-modal/hooks/use-modal-title.mjs +16 -13
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +2 -2
- package/es/src/business/ap-attachment/ApAttachment.mjs +2 -2
- package/es/src/business/ap-attachment/interface.d.ts +1 -1
- package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.mjs +3 -3
- package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue2.mjs +2 -2
- package/es/src/{ap-descriptions → business/ap-descriptions}/style/index.mjs +1 -1
- package/es/src/{ap-download → business/ap-download}/ap-download.vue.mjs +3 -3
- package/es/src/{ap-download → business/ap-download}/hooks/useStyle.mjs +3 -3
- package/es/src/{ap-download → business/ap-download}/style/index.mjs +1 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +45 -42
- package/es/src/business/ap-image/interface.d.ts +2 -0
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +11 -10
- package/es/src/business/ap-label/interface.d.ts +1 -1
- package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.mjs +7 -7
- package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue.mjs +2 -2
- package/es/src/{ap-tag → business/ap-tag}/style/group.d.ts +1 -1
- package/es/src/{ap-tag → business/ap-tag}/style/group.mjs +1 -1
- package/{lib/src → es/src/business}/ap-tag/style/index.d.ts +1 -1
- package/es/src/{ap-tag → business/ap-tag}/style/index.mjs +1 -1
- package/es/src/business/ap-title/ApTitle.vue2.mjs +24 -21
- package/es/src/business/ap-title/interface.d.ts +2 -0
- package/es/src/{ap-upload → business/ap-upload}/apUpload.vue.mjs +4 -4
- package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue2.mjs +4 -4
- package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue2.mjs +3 -3
- package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue2.mjs +4 -4
- package/es/src/{ap-upload → business/ap-upload}/hooks/useOss.d.ts +1 -1
- package/es/src/{ap-upload → business/ap-upload}/style/index.mjs +1 -1
- package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -0
- package/es/src/business/ap-upload/style/picture.d.ts +2 -0
- package/es/src/business/ap-upload/style/single-file.d.ts +2 -0
- package/{lib/src → es/src/business}/ap-upload/utils/accept.d.ts +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +2 -2
- package/es/src/business/hooks/index.d.ts +0 -2
- package/es/src/business/hooks/index.mjs +5 -9
- package/es/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/es/src/business/hooks/usePageListApGrid.mjs +35 -44
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/es/src/business/hooks/usePageListApTable.mjs +46 -48
- package/es/src/business/index.d.ts +4 -0
- package/es/src/business/index.mjs +58 -54
- package/es/src/config-provider/config-provider-props.d.ts +20 -3
- package/es/src/config-provider/config-provider-props.mjs +12 -0
- package/es/src/config-provider/config-provider.d.ts +33 -3
- package/es/src/config-provider/config-provider.mjs +35 -35
- package/es/src/config-provider/constants.d.ts +1 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/es/src/config-provider/hooks/use-locale.d.ts +2 -2
- package/es/src/config-provider/index.d.ts +49 -4
- package/es/src/index.d.ts +0 -4
- package/es/src/index.mjs +297 -305
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
- package/lib/src/ap-pro-card/components/title/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/index.d.ts +1 -1
- package/lib/src/ap-pro-card/index.js +1 -1
- package/lib/src/ap-pro-card/statistic-card/index.d.ts +2 -0
- package/lib/src/ap-pro-card/statistic-card/index.js +1 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-modal-title.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -0
- package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -0
- package/lib/src/business/ap-descriptions/style/index.js +1 -0
- package/lib/src/business/ap-download/ap-download.vue.js +1 -0
- package/lib/src/business/ap-download/hooks/useStyle.js +1 -0
- package/lib/src/business/ap-download/style/index.js +1 -0
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/interface.d.ts +2 -0
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -0
- package/lib/src/business/ap-tag/ap-tag.vue.js +1 -0
- package/lib/src/{ap-tag → business/ap-tag}/style/group.d.ts +1 -1
- package/lib/src/business/ap-tag/style/group.js +1 -0
- package/{es/src → lib/src/business}/ap-tag/style/index.d.ts +1 -1
- package/lib/src/business/ap-tag/style/index.js +1 -0
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-title/interface.d.ts +2 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -0
- package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -0
- package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -0
- package/lib/src/{ap-upload → business/ap-upload}/hooks/useOss.d.ts +1 -1
- package/lib/src/business/ap-upload/style/index.js +1 -0
- package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -0
- package/lib/src/business/ap-upload/style/picture.d.ts +2 -0
- package/lib/src/business/ap-upload/style/single-file.d.ts +2 -0
- package/{es/src → lib/src/business}/ap-upload/utils/accept.d.ts +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/hooks/index.d.ts +0 -2
- package/lib/src/business/hooks/index.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/index.d.ts +4 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +20 -3
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +33 -3
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +1 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/lib/src/config-provider/hooks/use-locale.d.ts +2 -2
- package/lib/src/config-provider/index.d.ts +49 -4
- package/lib/src/index.d.ts +0 -4
- package/lib/src/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +6 -5
- package/es/src/ap-upload/style/multiple-file.d.ts +0 -2
- package/es/src/ap-upload/style/picture.d.ts +0 -2
- package/es/src/ap-upload/style/single-file.d.ts +0 -2
- package/es/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/es/src/business/hooks/useGridRefresh.mjs +0 -16
- package/es/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/es/src/business/hooks/useTableRefresh.mjs +0 -57
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +0 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +0 -1
- package/lib/src/ap-descriptions/style/index.js +0 -1
- package/lib/src/ap-download/ap-download.vue.js +0 -1
- package/lib/src/ap-download/hooks/useStyle.js +0 -1
- package/lib/src/ap-download/style/index.js +0 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +0 -1
- package/lib/src/ap-tag/ap-tag.vue.js +0 -1
- package/lib/src/ap-tag/style/group.js +0 -1
- package/lib/src/ap-tag/style/index.js +0 -1
- package/lib/src/ap-upload/apUpload.vue.js +0 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +0 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +0 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +0 -1
- package/lib/src/ap-upload/style/index.js +0 -1
- package/lib/src/ap-upload/style/multiple-file.d.ts +0 -2
- package/lib/src/ap-upload/style/picture.d.ts +0 -2
- package/lib/src/ap-upload/style/single-file.d.ts +0 -2
- package/lib/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/lib/src/business/hooks/useGridRefresh.js +0 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/lib/src/business/hooks/useTableRefresh.js +0 -1
- package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue2.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/index.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/index.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/helper.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/helper.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/index.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/index.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/interface.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/interface.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/style/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/ap-download.vue.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/ap-download.vue2.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/hooks/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/hooks/index.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/hooks/useStyle.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/index.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/interface.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/interface.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/style/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/utils/getFileInfo.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/utils/getFileInfo.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue2.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue2.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/index.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/index.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/interface.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/interface.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/utils.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/utils.mjs +0 -0
- package/{lib/src → es/src/business}/ap-upload/apUpload.vue.d.ts +2 -2
- package/es/src/{ap-upload → business/ap-upload}/apUpload.vue2.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/apUploadTypes.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/apUploadTypes.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/assets/single-file-icon.png.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/hooks/useOss.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/index.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/index.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/index.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/multiple-file.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/picture.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/single-file.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/utils/accept.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/utils/returnData.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/utils/returnData.mjs +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue2.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/index.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/index.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/helper.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/helper.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/index.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/index.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/interface.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/interface.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/style/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/ap-download.vue.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/ap-download.vue2.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/hooks/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/hooks/index.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/hooks/useStyle.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/index.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/interface.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/interface.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/style/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/utils/getFileInfo.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/utils/getFileInfo.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag-group.vue2.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag.vue.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag.vue2.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/index.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/index.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/interface.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/interface.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/utils.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/utils.js +0 -0
- package/{es/src → lib/src/business}/ap-upload/apUpload.vue.d.ts +2 -2
- /package/lib/src/{ap-upload → business/ap-upload}/apUpload.vue2.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/apUploadTypes.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/apUploadTypes.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/assets/single-file-icon.png.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/Picture.vue.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/Picture.vue.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/hooks/useOss.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/index.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/index.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/index.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/multiple-file.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/picture.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/single-file.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/utils/accept.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/utils/returnData.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/utils/returnData.js +0 -0
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import { useGlobalConfig as
|
|
4
|
-
import { configProviderProps as
|
|
5
|
-
import { mergeAntdProviderConfigWithCache as
|
|
6
|
-
import { DEFAULT_NAMESPACE as
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { isVNode as P, ref as G, defineComponent as T, computed as a, unref as n, watch as h, onActivated as b, createVNode as w, renderSlot as A } from "vue";
|
|
2
|
+
import { ConfigProvider as D } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useGlobalConfig as F, provideGlobalConfig as N } from "./hooks/use-global-config.mjs";
|
|
4
|
+
import { configProviderProps as I } from "./config-provider-props.mjs";
|
|
5
|
+
import { mergeAntdProviderConfigWithCache as d, mergeAntdProvideConfig as l } from "../utils/config-provider-preset.mjs";
|
|
6
|
+
import { DEFAULT_NAMESPACE as M } from "./constants.mjs";
|
|
7
|
+
import { useDevWarning as k } from "../utils/warning.mjs";
|
|
8
|
+
function y(e) {
|
|
9
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !P(e);
|
|
9
10
|
}
|
|
10
|
-
const
|
|
11
|
+
const r = G({}), V = /* @__PURE__ */ T({
|
|
11
12
|
name: "AplusConfigProvider",
|
|
12
|
-
props:
|
|
13
|
+
props: I(),
|
|
13
14
|
setup(e, {
|
|
14
|
-
slots:
|
|
15
|
+
slots: u
|
|
15
16
|
}) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
k("ConfigProvider")(!e.uiMode, "breaking", "uiMode has been remove, see migrate guild https://aplus.aplnk.com/aplus-ui/guild/migrate-7.2.html");
|
|
18
|
+
const i = F();
|
|
19
|
+
let t = !0;
|
|
20
|
+
const c = a(() => e.namespace !== void 0 ? e.namespace : i.value?.namespace || M), g = a(() => e.apGrid !== void 0 ? e.apGrid : i.value?.apGrid), m = a(() => e.agGrid !== void 0 ? e.agGrid : i.value?.agGrid), f = a(() => e.apProCard !== void 0 ? e.apProCard : i.value?.apProCard), v = a(() => e.apImage !== void 0 ? e.apImage : i.value?.apImage), C = a(() => e.apTitle !== void 0 ? e.apTitle : i.value?.apTitle), p = a(() => ({
|
|
21
|
+
namespace: n(c),
|
|
20
22
|
aplusLocale: e.aplusLocale,
|
|
21
23
|
aplusToken: e.aplusToken,
|
|
22
24
|
api: e.api,
|
|
23
|
-
uiMode: a(d),
|
|
24
25
|
apUpload: e.apUpload,
|
|
25
26
|
apDescriptions: e.apDescriptions,
|
|
26
27
|
valueTypeMap: e.valueTypeMap,
|
|
@@ -29,35 +30,34 @@ const n = G({}), j = /* @__PURE__ */ M({
|
|
|
29
30
|
scrollYDomName: e.scrollYDomName,
|
|
30
31
|
viewCacheOption: e.viewCacheOption,
|
|
31
32
|
searchForm: e.searchForm,
|
|
32
|
-
apGrid:
|
|
33
|
-
agGrid:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
n
|
|
33
|
+
apGrid: n(g),
|
|
34
|
+
agGrid: n(m),
|
|
35
|
+
apProCard: n(f),
|
|
36
|
+
apImage: n(v),
|
|
37
|
+
apTitle: n(C)
|
|
38
|
+
})), s = N(p);
|
|
39
|
+
return h(() => e, (o) => {
|
|
40
|
+
r.value = d(l(o), r.value);
|
|
37
41
|
}, {
|
|
38
42
|
deep: !0,
|
|
39
43
|
immediate: !0
|
|
40
|
-
}),
|
|
41
|
-
if (
|
|
42
|
-
|
|
44
|
+
}), b(() => {
|
|
45
|
+
if (t) {
|
|
46
|
+
t = !1;
|
|
43
47
|
return;
|
|
44
48
|
}
|
|
45
|
-
|
|
46
|
-
}), typeof window < "u" && u(() => a(d), (i) => {
|
|
47
|
-
document.documentElement.dataset.aplusUiMode = i;
|
|
48
|
-
}, {
|
|
49
|
-
immediate: !0
|
|
49
|
+
r.value = d(l(e), r.value);
|
|
50
50
|
}), () => {
|
|
51
|
-
let
|
|
52
|
-
return
|
|
51
|
+
let o;
|
|
52
|
+
return w(D, r.value, y(o = A(u, "default", {
|
|
53
53
|
config: s?.value
|
|
54
|
-
})) ?
|
|
55
|
-
default: () => [
|
|
54
|
+
})) ? o : {
|
|
55
|
+
default: () => [o]
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
V as ConfigProvider,
|
|
62
|
+
r as globalConfigCached
|
|
63
63
|
};
|
|
@@ -8,9 +8,9 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
|
8
8
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
9
|
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
10
|
import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '../..';
|
|
11
|
+
import { UiModeType, ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
|
|
11
12
|
import { LocaleType } from '../../locale';
|
|
12
13
|
import { RecursivePartial } from '../../type';
|
|
13
|
-
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
|
|
14
14
|
export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
|
|
15
15
|
export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
|
|
16
16
|
export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
|
|
@@ -156,6 +156,21 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
156
156
|
rowSelection?: true | AgGridRowSelection<any> | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
};
|
|
159
|
+
apProCard: {
|
|
160
|
+
type: PropType<{
|
|
161
|
+
uiMode?: UiModeType;
|
|
162
|
+
}>;
|
|
163
|
+
};
|
|
164
|
+
apImage: {
|
|
165
|
+
type: PropType<{
|
|
166
|
+
uiMode?: UiModeType | undefined;
|
|
167
|
+
}>;
|
|
168
|
+
};
|
|
169
|
+
apTitle: {
|
|
170
|
+
type: PropType<{
|
|
171
|
+
uiMode?: UiModeType | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
};
|
|
159
174
|
aplusLocale: {
|
|
160
175
|
type: PropType<LocaleType>;
|
|
161
176
|
};
|
|
@@ -170,7 +185,7 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
170
185
|
default: () => {};
|
|
171
186
|
};
|
|
172
187
|
uiMode: {
|
|
173
|
-
type: PropType<
|
|
188
|
+
type: PropType<UiModeType>;
|
|
174
189
|
};
|
|
175
190
|
apUpload: {
|
|
176
191
|
type: PropType<ApUploadConfig>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MaybeRef } from '@aplus-frontend/utils';
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
|
-
import { LocaleType } from '../../locale/interface';
|
|
3
|
+
import { LangNames, LocaleType } from '../../locale/interface';
|
|
4
4
|
export type TranslatorOption = Record<string, string | number>;
|
|
5
5
|
export type Translator = (path: string, option?: TranslatorOption) => string;
|
|
6
6
|
export type LocaleContext = {
|
|
7
7
|
locale: Ref<LocaleType>;
|
|
8
|
-
lang: Ref<
|
|
8
|
+
lang: Ref<LangNames>;
|
|
9
9
|
t: Translator;
|
|
10
10
|
};
|
|
11
11
|
export declare const buildTranslator: (locale: MaybeRef<LocaleType>) => Translator;
|
|
@@ -6,9 +6,9 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
|
6
6
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
7
7
|
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
8
8
|
import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
|
|
9
|
+
import { UiModeType, ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
|
|
9
10
|
import { LocaleType } from '../locale';
|
|
10
11
|
import { RecursivePartial } from '../type';
|
|
11
|
-
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
|
|
12
12
|
export * from './config-provider-props';
|
|
13
13
|
export * from './constants';
|
|
14
14
|
export * from './hooks/use-global-config';
|
|
@@ -158,6 +158,21 @@ export declare const APConfigProvider: {
|
|
|
158
158
|
rowSelection?: true | AgGridRowSelection<any> | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
};
|
|
161
|
+
apProCard: {
|
|
162
|
+
type: PropType<{
|
|
163
|
+
uiMode?: UiModeType;
|
|
164
|
+
}>;
|
|
165
|
+
};
|
|
166
|
+
apImage: {
|
|
167
|
+
type: PropType<{
|
|
168
|
+
uiMode?: UiModeType | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
};
|
|
171
|
+
apTitle: {
|
|
172
|
+
type: PropType<{
|
|
173
|
+
uiMode?: UiModeType | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
};
|
|
161
176
|
aplusLocale: {
|
|
162
177
|
type: PropType<LocaleType>;
|
|
163
178
|
};
|
|
@@ -172,7 +187,7 @@ export declare const APConfigProvider: {
|
|
|
172
187
|
default: () => {};
|
|
173
188
|
};
|
|
174
189
|
uiMode: {
|
|
175
|
-
type: PropType<
|
|
190
|
+
type: PropType<UiModeType>;
|
|
176
191
|
};
|
|
177
192
|
apUpload: {
|
|
178
193
|
type: PropType<ApUploadConfig>;
|
|
@@ -393,6 +408,21 @@ export declare const APConfigProvider: {
|
|
|
393
408
|
rowSelection?: true | AgGridRowSelection<any> | undefined;
|
|
394
409
|
}>;
|
|
395
410
|
};
|
|
411
|
+
apProCard: {
|
|
412
|
+
type: PropType<{
|
|
413
|
+
uiMode?: UiModeType;
|
|
414
|
+
}>;
|
|
415
|
+
};
|
|
416
|
+
apImage: {
|
|
417
|
+
type: PropType<{
|
|
418
|
+
uiMode?: UiModeType | undefined;
|
|
419
|
+
}>;
|
|
420
|
+
};
|
|
421
|
+
apTitle: {
|
|
422
|
+
type: PropType<{
|
|
423
|
+
uiMode?: UiModeType | undefined;
|
|
424
|
+
}>;
|
|
425
|
+
};
|
|
396
426
|
aplusLocale: {
|
|
397
427
|
type: PropType<LocaleType>;
|
|
398
428
|
};
|
|
@@ -407,7 +437,7 @@ export declare const APConfigProvider: {
|
|
|
407
437
|
default: () => {};
|
|
408
438
|
};
|
|
409
439
|
uiMode: {
|
|
410
|
-
type: PropType<
|
|
440
|
+
type: PropType<UiModeType>;
|
|
411
441
|
};
|
|
412
442
|
apUpload: {
|
|
413
443
|
type: PropType<ApUploadConfig>;
|
|
@@ -625,6 +655,21 @@ export declare const APConfigProvider: {
|
|
|
625
655
|
rowSelection?: true | AgGridRowSelection<any> | undefined;
|
|
626
656
|
}>;
|
|
627
657
|
};
|
|
658
|
+
apProCard: {
|
|
659
|
+
type: PropType<{
|
|
660
|
+
uiMode?: UiModeType;
|
|
661
|
+
}>;
|
|
662
|
+
};
|
|
663
|
+
apImage: {
|
|
664
|
+
type: PropType<{
|
|
665
|
+
uiMode?: UiModeType | undefined;
|
|
666
|
+
}>;
|
|
667
|
+
};
|
|
668
|
+
apTitle: {
|
|
669
|
+
type: PropType<{
|
|
670
|
+
uiMode?: UiModeType | undefined;
|
|
671
|
+
}>;
|
|
672
|
+
};
|
|
628
673
|
aplusLocale: {
|
|
629
674
|
type: PropType<LocaleType>;
|
|
630
675
|
};
|
|
@@ -639,7 +684,7 @@ export declare const APConfigProvider: {
|
|
|
639
684
|
default: () => {};
|
|
640
685
|
};
|
|
641
686
|
uiMode: {
|
|
642
|
-
type: PropType<
|
|
687
|
+
type: PropType<UiModeType>;
|
|
643
688
|
};
|
|
644
689
|
apUpload: {
|
|
645
690
|
type: PropType<ApUploadConfig>;
|
package/es/src/index.d.ts
CHANGED
|
@@ -3,9 +3,6 @@ export * from './ap-form';
|
|
|
3
3
|
export * from './ap-field';
|
|
4
4
|
export * from './design-token';
|
|
5
5
|
export * from './ap-action';
|
|
6
|
-
export * from './ap-tag';
|
|
7
|
-
export * from './ap-upload';
|
|
8
|
-
export * from './ap-download';
|
|
9
6
|
export * from './check-card';
|
|
10
7
|
export * from './ap-modal';
|
|
11
8
|
export * from './ap-list';
|
|
@@ -15,7 +12,6 @@ export * from './ap-pro-card';
|
|
|
15
12
|
export * from './business';
|
|
16
13
|
export * from './ap-table';
|
|
17
14
|
export * from './editable-table';
|
|
18
|
-
export * from './ap-descriptions';
|
|
19
15
|
export * from './scroll-bar';
|
|
20
16
|
export * from './scroll-view';
|
|
21
17
|
export * from './portal';
|