@aplus-frontend/ui 0.6.0-beta.11 → 0.6.0-beta.13
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 +79 -77
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-form/dependency/index.vue.mjs +29 -24
- package/es/src/ap-form/interface.d.ts +3 -3
- package/es/src/ap-form/item/index.vue.mjs +39 -35
- package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/index.vue.mjs +2 -2
- package/es/src/ap-table/ap-table.vue2.mjs +17 -17
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +41 -44
- package/es/src/ap-table/constants.d.ts +18 -18
- package/es/src/ap-table/utils.d.ts +18 -18
- package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/es/src/business/ap-copy/ApCopy.mjs +79 -0
- package/es/src/business/ap-copy/constans.d.ts +24 -0
- package/es/src/business/ap-copy/constans.mjs +25 -0
- package/es/src/business/ap-copy/index.d.ts +102 -0
- package/es/src/business/ap-copy/index.mjs +7 -0
- package/es/src/business/ap-copy/interface.d.ts +8 -0
- package/es/src/business/ap-copy/interface.mjs +1 -0
- package/es/src/business/ap-copy/style/css.d.ts +0 -0
- package/es/src/business/ap-copy/style/css.js +1 -0
- package/es/src/business/ap-copy/style/index.d.ts +0 -0
- package/es/src/business/ap-copy/style/index.js +1 -0
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -53
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
- package/es/src/business/ap-radio-group/index.d.ts +5 -0
- package/es/src/business/hooks/usePageListApGrid.d.ts +0 -2
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -65
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +20 -18
- package/es/src/components.d.ts +1 -0
- package/es/src/index.mjs +58 -56
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/path-map.mjs +1 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/test/setup.d.ts +5 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -3
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +18 -18
- package/lib/src/ap-table/utils.d.ts +18 -18
- package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/lib/src/business/ap-copy/ApCopy.js +1 -0
- package/lib/src/business/ap-copy/constans.d.ts +24 -0
- package/lib/src/business/ap-copy/constans.js +1 -0
- package/lib/src/business/ap-copy/index.d.ts +102 -0
- package/lib/src/business/ap-copy/index.js +1 -0
- package/lib/src/business/ap-copy/interface.d.ts +8 -0
- package/lib/src/business/ap-copy/interface.js +1 -0
- package/lib/src/business/ap-copy/style/css.cjs +1 -0
- package/lib/src/business/ap-copy/style/css.d.ts +0 -0
- package/lib/src/business/ap-copy/style/index.cjs +1 -0
- package/lib/src/business/ap-copy/style/index.d.ts +0 -0
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +5 -0
- package/lib/src/business/hooks/usePageListApGrid.d.ts +0 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/test/setup.d.ts +5 -0
- package/package.json +5 -8
- package/theme/antd-global-overwrite/admin/index.css +11 -9
- package/theme/antd-global-overwrite/admin/modal.css +9 -6
- package/theme/antd-global-overwrite/admin/modal.less +8 -6
- package/theme/antd-global-overwrite/admin/table.css +2 -3
- package/theme/antd-global-overwrite/admin/table.less +2 -3
- package/theme/antd-global-overwrite/aplus/index.css +11 -8
- package/theme/antd-global-overwrite/aplus/modal.css +9 -6
- package/theme/antd-global-overwrite/aplus/modal.less +8 -6
- package/theme/antd-global-overwrite/aplus/table.css +2 -2
- package/theme/antd-global-overwrite/aplus/table.less +2 -2
- package/theme/ap-action/item-dropdown.css +2 -2
- package/theme/ap-action/item.css +19 -8
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +8 -8
- package/theme/ap-appendix/ap-appendix.less +6 -6
- package/theme/ap-attachment/ap-attachment.css +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +5 -5
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +2 -2
- package/theme/ap-card/ap-card.css +2 -2
- package/theme/ap-copy/ap-copy.css +94 -0
- package/theme/ap-copy/ap-copy.less +59 -0
- package/theme/ap-descriptions/ap-descriptions.css +6 -6
- package/theme/ap-descriptions/ap-descriptions.less +4 -4
- package/theme/ap-download/ap-download.css +2 -2
- package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
- package/theme/ap-field/checkbox.css +2 -2
- package/theme/ap-field/index.css +2 -2
- package/theme/ap-field/number.css +2 -2
- package/theme/ap-field/radio.css +2 -2
- package/theme/ap-field/text-area.css +2 -2
- package/theme/ap-form/ap-form-item-group.css +2 -2
- package/theme/ap-form/ap-form-item.css +6 -6
- package/theme/ap-form/ap-form-item.less +4 -4
- package/theme/ap-form/drawer-form.css +2 -2
- package/theme/ap-form/index.css +13 -13
- package/theme/ap-form/item-text-group.css +2 -2
- package/theme/ap-form/item-text.css +2 -2
- package/theme/ap-form/modal-form.css +2 -2
- package/theme/ap-form/search-form-sorter.css +6 -6
- package/theme/ap-form/search-form-sorter.less +4 -4
- package/theme/ap-form/search-form.css +13 -13
- package/theme/ap-form/search-form.less +3 -3
- package/theme/ap-grid/editable.css +2 -2
- package/theme/ap-grid/index.css +43 -24
- package/theme/ap-grid/index.less +14 -3
- package/theme/ap-group-search/ap-extension-select.css +2 -2
- package/theme/ap-group-search/ap-group-search.css +2 -2
- package/theme/ap-group-search/ap-popover-select.css +2 -2
- package/theme/ap-image/ap-image.css +2 -2
- package/theme/ap-input-radio/ap-input-radio.css +2 -2
- package/theme/ap-label/ap-label.css +2 -2
- package/theme/ap-ladder/ap-ladder.css +2 -2
- package/theme/ap-layout/ap-info-layout.css +2 -2
- package/theme/ap-list/index.css +2 -2
- package/theme/ap-product-info/ap-product-info.css +22 -32
- package/theme/ap-product-info/ap-product-info.less +28 -42
- package/theme/ap-radio-group/ap-radio-group.css +8 -7
- package/theme/ap-radio-group/ap-radio-group.less +7 -5
- package/theme/ap-select-layout/ap-select-layout.css +2 -2
- package/theme/ap-size-input/ap-size-input.css +2 -2
- package/theme/ap-status/ap-status.css +2 -2
- package/theme/ap-summary/index.css +2 -2
- package/theme/ap-table/ap-table-index.css +2 -2
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -3
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +59 -37
- package/theme/ap-table/ap-table.less +14 -7
- package/theme/ap-table/setting/index.css +14 -9
- package/theme/ap-table/setting/modal.css +7 -3
- package/theme/ap-table/setting/modal.less +5 -1
- package/theme/ap-table/setting/select-group.css +2 -2
- package/theme/ap-table/setting/sortable-item-meta.css +4 -4
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +2 -2
- package/theme/ap-table/setting/sorter.css +7 -6
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +59 -37
- package/theme/ap-tag/ap-tag-group.css +2 -2
- package/theme/ap-tag/ap-tag.css +3 -3
- package/theme/ap-tag/ap-tag.less +1 -1
- package/theme/ap-title/ap-title.css +2 -2
- package/theme/ap-upload/index.css +2 -2
- package/theme/ap-upload/multiple-file.css +2 -2
- package/theme/ap-upload/picture.css +2 -2
- package/theme/ap-upload/single-file.css +2 -2
- package/theme/ap-upload/upload.css +2 -2
- package/theme/ap-upload-single/index.css +6 -6
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +9 -9
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +4 -4
- package/theme/batch-input-group/popover-input.css +4 -4
- package/theme/batch-input-group/popover-input.less +2 -2
- package/theme/check-card/index.css +7 -7
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +30 -19
- package/theme/full-screen/index.css +2 -2
- package/theme/index.css +229 -206
- package/theme/index.less +1 -0
- package/theme/mask/index.css +2 -2
- package/theme/mixins/mixins.css +2 -2
- package/theme/mixins/mixins.less +2 -2
- package/theme/scroll-bar/index.css +2 -2
- package/theme/scroll-view/index.css +2 -2
- package/theme/splitter/index.css +5 -5
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +2 -2
- package/theme/text/index.css +6 -6
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +44 -90
- package/theme/ui-mode.less +90 -90
- package/theme/work-order-modal/index.css +2 -2
package/es/index.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import "./src/hooks/index.mjs";
|
|
|
5
5
|
import { configProviderProps as A } from "./src/config-provider/config-provider-props.mjs";
|
|
6
6
|
import { DEFAULT_NAMESPACE as n, DEFAULT_UIMODE as c, configProviderContextKey as F } from "./src/config-provider/constants.mjs";
|
|
7
7
|
import { keysOf as T, provideGlobalConfig as S, useGlobalConfig as b } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
8
|
-
import { buildLocaleContext as
|
|
8
|
+
import { buildLocaleContext as g, buildTranslator as D, localeContextKey as G, translate as h, useLocale as E } from "./src/config-provider/hooks/use-locale.mjs";
|
|
9
9
|
import { defaultNamespace as R, namespaceContextKey as L, useGetDerivedNamespace as M, useNamespace as N } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
import { ConfigProvider as
|
|
10
|
+
import { ConfigProvider as v, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
|
|
11
11
|
import { APConfigProvider as B } from "./src/config-provider/index.mjs";
|
|
12
12
|
import { ApFormItemText as K } from "./src/ap-form/items/text/index.mjs";
|
|
13
13
|
import { default as V } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
@@ -28,13 +28,13 @@ import { default as ne } from "./src/ap-form/search-form/index.vue.mjs";
|
|
|
28
28
|
import { default as Fe } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
29
29
|
import { default as Te } from "./src/ap-form/dependency/index.vue.mjs";
|
|
30
30
|
import { default as be } from "./src/ap-form/set/index.vue.mjs";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as ge } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
32
32
|
import { default as Ge } from "./src/ap-form/render/control.vue.mjs";
|
|
33
33
|
import { default as Ee } from "./src/ap-form/render/item.vue.mjs";
|
|
34
34
|
import { default as Re } from "./src/ap-form/provider/index.vue.mjs";
|
|
35
35
|
import { ApField as Me } from "./src/ap-field/index.mjs";
|
|
36
|
-
import { ApFieldText as
|
|
37
|
-
import { default as
|
|
36
|
+
import { ApFieldText as ye } from "./src/ap-field/text/index.mjs";
|
|
37
|
+
import { default as we } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
38
38
|
import { default as Be } from "./src/ap-field/date/index.vue.mjs";
|
|
39
39
|
import { default as Ke } from "./src/ap-field/number/index.vue.mjs";
|
|
40
40
|
import { default as Ve } from "./src/ap-field/radio/index.vue.mjs";
|
|
@@ -53,13 +53,13 @@ import { default as Ao } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
|
53
53
|
import { default as no } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
54
54
|
import { default as Fo } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
55
55
|
import { default as To } from "./src/ap-action/group/index.vue.mjs";
|
|
56
|
-
import { DictCode as bo, langMap as
|
|
56
|
+
import { DictCode as bo, langMap as Co } from "./src/work-order-modal/interfaces.mjs";
|
|
57
57
|
import { createWorkOrderModal as Do } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
58
58
|
import { default as ho } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
59
59
|
import { default as Po } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
60
60
|
import { default as Lo } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
61
61
|
import { default as No } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
62
|
-
import { NeedNameKeyDefault as
|
|
62
|
+
import { NeedNameKeyDefault as vo } from "./src/ap-upload/apUploadTypes.mjs";
|
|
63
63
|
import { default as ko } from "./src/ap-upload/apUpload.vue.mjs";
|
|
64
64
|
import { ApDownLoadNeedNameKeyDefault as Oo } from "./src/ap-download/interface.mjs";
|
|
65
65
|
import { default as Uo } from "./src/ap-download/ap-download.vue.mjs";
|
|
@@ -80,13 +80,13 @@ import { ApBatchAction as ir } from "./src/business/ap-batch-action/index.mjs";
|
|
|
80
80
|
import { ApBatchActionGroup as cr } from "./src/business/ap-batch-action-group/index.mjs";
|
|
81
81
|
import { ApButtonGroup as Ir } from "./src/business/ap-button-group/index.mjs";
|
|
82
82
|
import { ApCard as Sr } from "./src/business/ap-card/index.mjs";
|
|
83
|
-
import { ApExpandAlert as
|
|
83
|
+
import { ApExpandAlert as Cr } from "./src/business/ap-expand-alert/index.mjs";
|
|
84
84
|
import { ApExportGroupActionType as Dr } from "./src/business/ap-export-group/interface.mjs";
|
|
85
85
|
import { ApExportGroup as hr } from "./src/business/ap-export-group/index.mjs";
|
|
86
86
|
import { handleExportDownload as Pr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
87
87
|
import { convertExportField as Lr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
88
88
|
import { ApImage as Nr } from "./src/business/ap-image/index.mjs";
|
|
89
|
-
import { ApInputRadio as
|
|
89
|
+
import { ApInputRadio as vr } from "./src/business/ap-input-radio/index.mjs";
|
|
90
90
|
import { ApLabel as kr, ApLabelGroup as Br } from "./src/business/ap-label/index.mjs";
|
|
91
91
|
import { locales as Kr } from "./src/business/ap-ladder/interface.mjs";
|
|
92
92
|
import { ApLadder as Vr } from "./src/business/ap-ladder/index.mjs";
|
|
@@ -104,37 +104,38 @@ import { ApAppendix as At } from "./src/business/ap-appendix/index.mjs";
|
|
|
104
104
|
import { ApExtensionSelect as nt, ApGroupSearch as ct, ApPopoverSelect as Ft } from "./src/business/ap-group-search/index.mjs";
|
|
105
105
|
import { default as Tt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
106
106
|
import { default as bt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
107
|
-
import { default as
|
|
107
|
+
import { default as gt } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
108
108
|
import { ApSizeInput as Gt } from "./src/business/ap-size-input/index.mjs";
|
|
109
109
|
import { ApProductInfo as Et } from "./src/business/ap-product-info/index.mjs";
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import { default as Kt } from "./src/editable-table/
|
|
116
|
-
import { default as Vt } from "./src/
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import { default as jt } from "./src/scroll-bar/
|
|
120
|
-
import { default as Jt } from "./src/scroll-
|
|
121
|
-
import { default as Xt } from "./src/
|
|
122
|
-
import { default as Zt } from "./src/
|
|
123
|
-
import { default as op } from "./src/
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import { default as mp } from "./src/ap-grid/
|
|
127
|
-
import { default as xp } from "./src/ap-grid/editable/
|
|
128
|
-
import { default as up } from "./src/
|
|
129
|
-
import { default as Ap } from "./src/text/
|
|
130
|
-
import { default as np } from "./src/
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
110
|
+
import { ApCopy as Rt } from "./src/business/ap-copy/index.mjs";
|
|
111
|
+
import { ApView as Mt } from "./src/business/ap-view/index.mjs";
|
|
112
|
+
import { ApRadioGroup as yt } from "./src/business/ap-radio-group/index.mjs";
|
|
113
|
+
import { useTablePaging as wt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
114
|
+
import { ApTable as Bt } from "./src/ap-table/index.mjs";
|
|
115
|
+
import { default as Kt } from "./src/editable-table/index.vue.mjs";
|
|
116
|
+
import { default as Vt } from "./src/editable-table/form-item.vue.mjs";
|
|
117
|
+
import { default as zt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
118
|
+
import { ensureRangeValue as $t } from "./src/scroll-bar/utils/index.mjs";
|
|
119
|
+
import { default as jt } from "./src/scroll-bar/index.vue.mjs";
|
|
120
|
+
import { default as Jt } from "./src/scroll-bar/internal.vue.mjs";
|
|
121
|
+
import { default as Xt } from "./src/scroll-view/index.vue.mjs";
|
|
122
|
+
import { default as Zt } from "./src/portal/index.vue.mjs";
|
|
123
|
+
import { default as op } from "./src/full-screen/index.vue.mjs";
|
|
124
|
+
import { default as tp } from "./src/resize-observer/index.vue.mjs";
|
|
125
|
+
import { ROW_SELECTION_FIELD as ap } from "./src/ap-grid/constants.mjs";
|
|
126
|
+
import { default as mp } from "./src/ap-grid/index.vue.mjs";
|
|
127
|
+
import { default as xp } from "./src/ap-grid/editable/index.vue.mjs";
|
|
128
|
+
import { default as up } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
129
|
+
import { default as Ap } from "./src/text/index.vue.mjs";
|
|
130
|
+
import { default as np } from "./src/text/group.vue.mjs";
|
|
131
|
+
import { default as Fp } from "./src/mask/index.vue.mjs";
|
|
132
|
+
import { Splitter as Tp } from "./src/splitter/index.mjs";
|
|
133
|
+
import { useMessage as bp } from "./src/hooks/useMessage.mjs";
|
|
134
|
+
import { useControllableValue as gp } from "./src/hooks/useControllableValue.mjs";
|
|
135
|
+
import { useManualRef as Gp } from "./src/hooks/useManualRef.mjs";
|
|
136
|
+
import { useThrottleRef as Ep } from "./src/hooks/useThrottleRef.mjs";
|
|
137
|
+
import { useFullScreen as Rp } from "./src/hooks/useFullScreen.mjs";
|
|
138
|
+
import { useResize as Mp } from "./src/hooks/useResize.mjs";
|
|
138
139
|
const a = console.log;
|
|
139
140
|
a(`APlus-UI version ${p}.`);
|
|
140
141
|
const l = {
|
|
@@ -161,16 +162,17 @@ export {
|
|
|
161
162
|
Ir as ApButtonGroup,
|
|
162
163
|
Sr as ApCard,
|
|
163
164
|
er as ApConfirmButton,
|
|
164
|
-
|
|
165
|
+
Rt as ApCopy,
|
|
166
|
+
zt as ApDescriptions,
|
|
165
167
|
Oo as ApDownLoadNeedNameKeyDefault,
|
|
166
168
|
Uo as ApDownload,
|
|
167
169
|
rr as ApDrawer,
|
|
168
|
-
|
|
170
|
+
Cr as ApExpandAlert,
|
|
169
171
|
hr as ApExportGroup,
|
|
170
172
|
Dr as ApExportGroupActionType,
|
|
171
173
|
nt as ApExtensionSelect,
|
|
172
174
|
Me as ApField,
|
|
173
|
-
|
|
175
|
+
we as ApFieldCheckbox,
|
|
174
176
|
Be as ApFieldDate,
|
|
175
177
|
je as ApFieldDateRange,
|
|
176
178
|
Ke as ApFieldNumber,
|
|
@@ -181,15 +183,15 @@ export {
|
|
|
181
183
|
Je as ApFieldSelect,
|
|
182
184
|
Ze as ApFieldSlider,
|
|
183
185
|
ze as ApFieldSwitch,
|
|
184
|
-
|
|
186
|
+
ye as ApFieldText,
|
|
185
187
|
$e as ApFieldTextArea,
|
|
186
188
|
ao as ApFieldTreeSelect,
|
|
187
189
|
me as ApForm,
|
|
188
190
|
Ge as ApFormControlRender,
|
|
189
191
|
Te as ApFormDependency,
|
|
190
|
-
|
|
192
|
+
ge as ApFormDrawerForm,
|
|
191
193
|
xe as ApFormItem,
|
|
192
|
-
|
|
194
|
+
gt as ApFormItemBatchInput,
|
|
193
195
|
oe as ApFormItemCheckbox,
|
|
194
196
|
$ as ApFormItemDate,
|
|
195
197
|
j as ApFormItemDateRange,
|
|
@@ -208,11 +210,11 @@ export {
|
|
|
208
210
|
Re as ApFormProvider,
|
|
209
211
|
ne as ApFormSearchForm,
|
|
210
212
|
be as ApFormSet,
|
|
211
|
-
|
|
213
|
+
mp as ApGrid,
|
|
212
214
|
ct as ApGroupSearch,
|
|
213
215
|
Nr as ApImage,
|
|
214
216
|
No as ApInfoLayout,
|
|
215
|
-
|
|
217
|
+
vr as ApInputRadio,
|
|
216
218
|
kr as ApLabel,
|
|
217
219
|
Br as ApLabelGroup,
|
|
218
220
|
Vr as ApLadder,
|
|
@@ -221,48 +223,48 @@ export {
|
|
|
221
223
|
ut as ApNeedNameKeyDefault,
|
|
222
224
|
Ft as ApPopoverSelect,
|
|
223
225
|
Et as ApProductInfo,
|
|
224
|
-
|
|
226
|
+
yt as ApRadioGroup,
|
|
225
227
|
zr as ApSelectLayout,
|
|
226
228
|
Gt as ApSizeInput,
|
|
227
229
|
$r as ApStatus,
|
|
228
230
|
Hr as ApStatusGroup,
|
|
229
231
|
xt as ApSummary,
|
|
230
|
-
|
|
232
|
+
Bt as ApTable,
|
|
231
233
|
fr as ApTableModal,
|
|
232
234
|
Po as ApTag,
|
|
233
235
|
Lo as ApTagGroup,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
+
Ap as ApText,
|
|
237
|
+
np as ApTextGroup,
|
|
236
238
|
qr as ApTitle,
|
|
237
239
|
pr as ApTransformDataHelper,
|
|
238
240
|
ko as ApUpload,
|
|
239
241
|
Tt as ApUploadSingle,
|
|
240
|
-
|
|
242
|
+
Mt as ApView,
|
|
241
243
|
bt as BatchInputGroup,
|
|
242
244
|
_o as CheckCard,
|
|
243
245
|
Wo as CheckCardGroup,
|
|
244
|
-
|
|
246
|
+
v as ConfigProvider,
|
|
245
247
|
n as DEFAULT_NAMESPACE,
|
|
246
248
|
c as DEFAULT_UIMODE,
|
|
247
249
|
bo as DictCode,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
250
|
+
xp as EditableGrid,
|
|
251
|
+
up as EditableGridFormItem,
|
|
252
|
+
Kt as EditableTable,
|
|
253
|
+
Vt as EditableTableFormItem,
|
|
254
|
+
op as FullScreen,
|
|
255
|
+
Jt as InternalScrollBar,
|
|
256
|
+
Fp as Mask,
|
|
257
|
+
vo as NeedNameKeyDefault,
|
|
258
|
+
Zt as Portal,
|
|
259
|
+
ap as ROW_SELECTION_FIELD,
|
|
260
|
+
tp as ResizeObserver,
|
|
261
|
+
jt as ScrollBar,
|
|
262
|
+
Xt as ScrollView,
|
|
263
|
+
Tp as Splitter,
|
|
262
264
|
ho as WorkOrderModal,
|
|
263
265
|
mo as adminToken,
|
|
264
266
|
lo as aplusToken,
|
|
265
|
-
|
|
267
|
+
g as buildLocaleContext,
|
|
266
268
|
D as buildTranslator,
|
|
267
269
|
pt as computedRecords,
|
|
268
270
|
F as configProviderContextKey,
|
|
@@ -271,35 +273,35 @@ export {
|
|
|
271
273
|
Do as createWorkOrderModal,
|
|
272
274
|
l as default,
|
|
273
275
|
R as defaultNamespace,
|
|
274
|
-
|
|
276
|
+
$t as ensureRangeValue,
|
|
275
277
|
at as flattenColumns,
|
|
276
278
|
ft as formatDataIndex,
|
|
277
279
|
mt as formatNumber,
|
|
278
|
-
|
|
280
|
+
w as globalConfigCached,
|
|
279
281
|
Pr as handleExportDownload,
|
|
280
282
|
T as keysOf,
|
|
281
|
-
|
|
283
|
+
Co as langMap,
|
|
282
284
|
G as localeContextKey,
|
|
283
285
|
Kr as locales,
|
|
284
286
|
L as namespaceContextKey,
|
|
285
287
|
u as pathMap,
|
|
286
288
|
S as provideGlobalConfig,
|
|
287
289
|
h as translate,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
+
gp as useControllableValue,
|
|
291
|
+
Rp as useFullScreen,
|
|
290
292
|
M as useGetDerivedNamespace,
|
|
291
293
|
b as useGlobalConfig,
|
|
292
294
|
rt as useGridRefresh,
|
|
293
295
|
E as useLocale,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
+
Gp as useManualRef,
|
|
297
|
+
bp as useMessage,
|
|
296
298
|
N as useNamespace,
|
|
297
299
|
et as usePageListApGrid,
|
|
298
300
|
Qr as usePageListApTable,
|
|
299
|
-
|
|
301
|
+
Mp as useResize,
|
|
300
302
|
lr as useTableModal,
|
|
301
|
-
|
|
303
|
+
wt as useTablePaging,
|
|
302
304
|
Yr as useTableRefresh,
|
|
303
305
|
dr as useTableSelectModal,
|
|
304
|
-
|
|
306
|
+
Ep as useThrottleRef
|
|
305
307
|
};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ref as o, watch as m } from "vue";
|
|
2
|
+
import { isUndefined as u } from "lodash-unified";
|
|
3
|
+
const n = (e) => {
|
|
4
|
+
var r;
|
|
5
|
+
return Array.isArray(e) ? (r = e[0]) == null ? void 0 : r.value : e;
|
|
6
|
+
}, c = (e) => {
|
|
7
|
+
const r = o(n(e.timezone));
|
|
8
|
+
return m(
|
|
9
|
+
() => e.timezone,
|
|
10
|
+
(t, i) => {
|
|
11
|
+
u(i) && (r.value = n(t));
|
|
12
|
+
}
|
|
13
|
+
), {
|
|
14
|
+
currentTimezone: r
|
|
15
|
+
};
|
|
16
|
+
};
|
|
8
17
|
export {
|
|
9
|
-
|
|
18
|
+
c as useDateTimezone
|
|
10
19
|
};
|
|
@@ -1,37 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useInjectForm as
|
|
3
|
-
import { isArray as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as m, ref as _, watchEffect as g, unref as h, renderSlot as y } from "vue";
|
|
2
|
+
import { useInjectForm as V } from "../context.mjs";
|
|
3
|
+
import { isArray as d, isNumber as x, cloneDeep as b } from "lodash-unified";
|
|
4
|
+
const k = /* @__PURE__ */ m({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
nameList: {}
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
function
|
|
11
|
-
return
|
|
9
|
+
setup(c) {
|
|
10
|
+
function f(t, n) {
|
|
11
|
+
return d(n) ? n.reduce((o, e) => o == null ? void 0 : o[e], t) : t == null ? void 0 : t[n];
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
model:
|
|
15
|
-
} =
|
|
16
|
-
function
|
|
17
|
-
let e =
|
|
18
|
-
for (let
|
|
19
|
-
const
|
|
20
|
-
|
|
13
|
+
const a = c, {
|
|
14
|
+
model: l
|
|
15
|
+
} = V(), r = _({});
|
|
16
|
+
function i(t, n, o) {
|
|
17
|
+
let e = n;
|
|
18
|
+
for (let s = 0; s < t.length; s++) {
|
|
19
|
+
const u = t[s];
|
|
20
|
+
if (s === t.length - 1)
|
|
21
|
+
e[u] = o;
|
|
22
|
+
else {
|
|
23
|
+
const p = t[s + 1];
|
|
24
|
+
(typeof e[u] != "object" || e[u] === null) && (e[u] = x(p) ? [] : {}), e = e[u];
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
|
-
return
|
|
24
|
-
const t = b(
|
|
25
|
-
for (const
|
|
26
|
-
const o = [
|
|
27
|
-
|
|
28
|
+
return g(() => {
|
|
29
|
+
const t = b(r.value);
|
|
30
|
+
for (const n of a.nameList) {
|
|
31
|
+
const o = [n].flat(1), e = f(h(l), o);
|
|
32
|
+
i(o, t, e);
|
|
28
33
|
}
|
|
29
|
-
|
|
30
|
-
}), (t,
|
|
31
|
-
values:
|
|
34
|
+
r.value = t;
|
|
35
|
+
}), (t, n) => y(t.$slots, "default", {
|
|
36
|
+
values: r.value
|
|
32
37
|
});
|
|
33
38
|
}
|
|
34
39
|
});
|
|
35
40
|
export {
|
|
36
|
-
|
|
41
|
+
k as default
|
|
37
42
|
};
|
|
@@ -243,9 +243,9 @@ export type ApFormDrawerFormExpose = ApFormExpose;
|
|
|
243
243
|
* ApFormItem支持的插槽
|
|
244
244
|
*/
|
|
245
245
|
export type ApFormItemSlots = {
|
|
246
|
-
help
|
|
247
|
-
label
|
|
248
|
-
extra
|
|
246
|
+
help?: any;
|
|
247
|
+
label?: any;
|
|
248
|
+
extra?: any;
|
|
249
249
|
default: () => VNode[];
|
|
250
250
|
};
|
|
251
251
|
export type ApFormDependencyProps = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as D, useSlots as $, ref as
|
|
1
|
+
import { defineComponent as D, useSlots as $, ref as d, onMounted as j, computed as F, unref as t, watch as q, cloneVNode as E, createBlock as g, openBlock as h, mergeProps as K, createSlots as O, withCtx as i, createCommentVNode as Q, resolveDynamicComponent as U, renderList as Y, createElementVNode as G, normalizeClass as H, createVNode as p, normalizeStyle as J, renderSlot as M, normalizeProps as W, guardReactiveProps as X } from "vue";
|
|
2
2
|
import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { isFunction as B, cloneDeep as
|
|
3
|
+
import { useToken as te } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { isFunction as B, cloneDeep as le, isArray as re, omit as C } from "lodash-unified";
|
|
5
5
|
import { apFormItemColPropKeys as ae } from "../constant.mjs";
|
|
6
6
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { useInjectForm as ie } from "../context.mjs";
|
|
9
9
|
import { isPromise as se } from "@fruits-chain/utils";
|
|
10
10
|
import { getSingleVNode as ue, getValidVNodeList as me } from "../../utils/slot.mjs";
|
|
11
|
-
import { useNamespace as
|
|
11
|
+
import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
const Ce = /* @__PURE__ */ D({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "index",
|
|
@@ -54,17 +54,17 @@ const Ce = /* @__PURE__ */ D({
|
|
|
54
54
|
transform: {},
|
|
55
55
|
description: {}
|
|
56
56
|
},
|
|
57
|
-
setup(
|
|
58
|
-
const o =
|
|
57
|
+
setup(x, { expose: N }) {
|
|
58
|
+
const o = x, a = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: k } = fe("ap-form-item"), f = d(!1), n = d(), [, P] = te();
|
|
59
59
|
j(async () => {
|
|
60
60
|
let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
61
61
|
se(e) && (e = await e), m == null || m.registerField({
|
|
62
62
|
name: o.name,
|
|
63
|
-
initialValue:
|
|
63
|
+
initialValue: le(e),
|
|
64
64
|
transform: o.transform
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
-
const y = F(() => o.name ? re(o.name) ? o.name.reduce((e,
|
|
67
|
+
const y = F(() => o.name ? re(o.name) ? o.name.reduce((e, l) => e == null ? void 0 : e[l], t(s)) : s == null ? void 0 : s.value[o.name] : null), v = d(ue(a.default));
|
|
68
68
|
q(
|
|
69
69
|
() => {
|
|
70
70
|
var e;
|
|
@@ -74,25 +74,25 @@ const Ce = /* @__PURE__ */ D({
|
|
|
74
74
|
v.value = me(e)[0];
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
function
|
|
77
|
+
function S(e) {
|
|
78
78
|
u == null || u(o.name, e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
80
|
+
function w() {
|
|
81
|
+
f.value = !0;
|
|
82
82
|
}
|
|
83
83
|
function T() {
|
|
84
|
-
|
|
84
|
+
f.value = !1;
|
|
85
85
|
}
|
|
86
86
|
const V = F(() => {
|
|
87
|
-
var
|
|
87
|
+
var l, r;
|
|
88
88
|
if (!o.name)
|
|
89
|
-
return (
|
|
90
|
-
const e =
|
|
89
|
+
return (l = a.default()) == null ? void 0 : l[0];
|
|
90
|
+
const e = t(v);
|
|
91
91
|
return e ? E(e, {
|
|
92
|
-
[o.valuePropName]:
|
|
93
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
92
|
+
[o.valuePropName]: t(y),
|
|
93
|
+
[`onUpdate:${o.valuePropName}`]: S,
|
|
94
94
|
bordered: o.bordered ? !1 : (r = e == null ? void 0 : e.props) == null ? void 0 : r.bordered,
|
|
95
|
-
onFocus:
|
|
95
|
+
onFocus: w,
|
|
96
96
|
onBlur: T
|
|
97
97
|
}) : null;
|
|
98
98
|
});
|
|
@@ -113,29 +113,29 @@ const Ce = /* @__PURE__ */ D({
|
|
|
113
113
|
(e = n.value) == null || e.resetField();
|
|
114
114
|
}
|
|
115
115
|
function R(e = !1) {
|
|
116
|
-
const
|
|
116
|
+
const l = t(y);
|
|
117
117
|
if (!e || !o.transform)
|
|
118
|
-
return
|
|
118
|
+
return l;
|
|
119
119
|
const r = B(o.transform) ? o.transform : o.transform.transformer;
|
|
120
|
-
return o.transform ? r(
|
|
120
|
+
return o.transform ? r(l) : l;
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return N({
|
|
123
123
|
onFieldBlur: I,
|
|
124
124
|
onFieldChange: z,
|
|
125
125
|
clearValidate: A,
|
|
126
126
|
resetField: L,
|
|
127
127
|
getFieldValue: R
|
|
128
|
-
}), (e,
|
|
128
|
+
}), (e, l) => (h(), g(t(Z).Item, K(
|
|
129
129
|
{
|
|
130
130
|
ref_key: "formItemRef",
|
|
131
131
|
ref: n
|
|
132
132
|
},
|
|
133
|
-
|
|
133
|
+
t(C)(o, [...t(ae), "tooltip", "label", "description"]),
|
|
134
134
|
{
|
|
135
135
|
class: {
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
136
|
+
[t(c)("bordered")]: e.bordered,
|
|
137
|
+
[t(c)("focused")]: e.bordered && f.value,
|
|
138
|
+
[t(k)()]: !0
|
|
139
139
|
},
|
|
140
140
|
colon: e.bordered ? !1 : o.colon
|
|
141
141
|
}
|
|
@@ -148,15 +148,19 @@ const Ce = /* @__PURE__ */ D({
|
|
|
148
148
|
o.tooltip ? {
|
|
149
149
|
name: "tooltip",
|
|
150
150
|
fn: i(({ class: r }) => [
|
|
151
|
-
|
|
152
|
-
class:
|
|
151
|
+
G("span", {
|
|
152
|
+
class: H(r)
|
|
153
153
|
}, [
|
|
154
|
-
p(
|
|
154
|
+
p(t(ee), {
|
|
155
155
|
title: o.tooltip
|
|
156
156
|
}, {
|
|
157
157
|
default: i(() => [
|
|
158
|
-
p(
|
|
159
|
-
style:
|
|
158
|
+
p(t(ne), {
|
|
159
|
+
style: J({
|
|
160
|
+
color: t(P).colorTextTertiary,
|
|
161
|
+
fontSize: "14px",
|
|
162
|
+
transform: "translateY(1px)"
|
|
163
|
+
})
|
|
160
164
|
}, null, 8, ["style"])
|
|
161
165
|
]),
|
|
162
166
|
_: 1
|
|
@@ -168,7 +172,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
168
172
|
e.label ? {
|
|
169
173
|
name: "label",
|
|
170
174
|
fn: i(() => [
|
|
171
|
-
p(
|
|
175
|
+
p(t(oe), {
|
|
172
176
|
content: e.label,
|
|
173
177
|
ellipsis: { tooltip: e.label },
|
|
174
178
|
style: { "min-width": "0px", flex: "1" }
|
|
@@ -176,10 +180,10 @@ const Ce = /* @__PURE__ */ D({
|
|
|
176
180
|
]),
|
|
177
181
|
key: "1"
|
|
178
182
|
} : void 0,
|
|
179
|
-
|
|
183
|
+
Y(t(C)(a, "default"), (r, b) => ({
|
|
180
184
|
name: b,
|
|
181
185
|
fn: i((_) => [
|
|
182
|
-
|
|
186
|
+
M(e.$slots, b, W(X(_ || {})))
|
|
183
187
|
])
|
|
184
188
|
}))
|
|
185
189
|
]), 1040, ["class", "colon"]));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as a, watch as u, computed as
|
|
2
|
-
import { useToken as
|
|
1
|
+
import { ref as a, watch as u, computed as p, unref as i } from "vue";
|
|
2
|
+
import { useToken as m } from "@aplus-frontend/antdv/es/theme/internal";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { renderWithColumns as l } from "../utils/renderer.mjs";
|
|
5
5
|
import { useNamespace as s } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
6
|
import { useGlobalConfig as f } from "../../config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
const
|
|
8
|
-
const [, o] =
|
|
7
|
+
const h = (e) => {
|
|
8
|
+
const [, o] = m(), { be: t } = s("ap-grid"), n = f("valueTypeMap"), r = a(Date.now());
|
|
9
9
|
return u(
|
|
10
10
|
() => e.value,
|
|
11
11
|
() => {
|
|
@@ -15,15 +15,15 @@ const w = (e) => {
|
|
|
15
15
|
deep: !0
|
|
16
16
|
}
|
|
17
17
|
), {
|
|
18
|
-
renderConfig:
|
|
18
|
+
renderConfig: p(() => l(
|
|
19
19
|
e.value,
|
|
20
|
-
o.value.
|
|
20
|
+
o.value.colorTextTertiary,
|
|
21
21
|
t("table-header", "title"),
|
|
22
|
-
|
|
22
|
+
i(n)
|
|
23
23
|
)),
|
|
24
24
|
updateSignal: r
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
h as useRenderColumns
|
|
29
29
|
};
|
|
@@ -221,7 +221,7 @@ const To = /* @__PURE__ */ Be({
|
|
|
221
221
|
},
|
|
222
222
|
renderConfig: n(() => ({
|
|
223
223
|
className: le("table-header", "title"),
|
|
224
|
-
color: d.value.
|
|
224
|
+
color: d.value.colorTextTertiary
|
|
225
225
|
})),
|
|
226
226
|
dataSource: n(() => o(f).records),
|
|
227
227
|
getSearchFormValues: U,
|
|
@@ -444,7 +444,7 @@ const To = /* @__PURE__ */ Be({
|
|
|
444
444
|
direction: "horizontal",
|
|
445
445
|
"scroll-container": ce.value,
|
|
446
446
|
"extra-size": -4.2,
|
|
447
|
-
"bar-color": "var(--
|
|
447
|
+
"bar-color": "var(--ap-scrollbar-thumb-color-base)",
|
|
448
448
|
"track-color": "var(--ap-table-header-bg, #f2f6f9)"
|
|
449
449
|
}, null, 8, ["scroll-container"])) : y("", !0),
|
|
450
450
|
e.pagination !== !1 ? (i(), m(o($e), h({
|