@aplus-frontend/ui 0.4.2 → 0.4.4
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 +158 -152
- package/es/src/ap-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/helper.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +33 -25
- package/es/src/ap-field/date-range/index.vue.mjs +44 -43
- package/es/src/ap-field/interface.d.ts +0 -6
- package/es/src/ap-field/segmented/index.vue.d.ts +7 -1
- package/es/src/ap-field/select/index.vue.d.ts +4 -20
- package/es/src/ap-field/select/index.vue.mjs +11 -11
- package/es/src/ap-field/text/index.vue.d.ts +13 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +26 -2
- package/es/src/ap-table/constants.d.ts +28 -12
- package/es/src/ap-table/utils.d.ts +13 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
- package/es/src/business/ap-batch-action/index.d.ts +5 -3
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +12 -12
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +7 -7
- package/es/src/business/ap-group-search/index.d.ts +8 -34
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +2 -10
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -4
- package/es/src/business/batch-input-group/index.vue.d.ts +13 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -1
- package/es/src/config-provider/hooks/use-namespace.mjs +3 -3
- package/es/src/hooks/index.d.ts +2 -0
- package/es/src/hooks/index.mjs +7 -3
- package/es/src/hooks/useManualRef.d.ts +6 -0
- package/es/src/hooks/useManualRef.mjs +27 -0
- package/es/src/hooks/useThrottleRef.d.ts +2 -0
- package/es/src/hooks/useThrottleRef.mjs +31 -0
- package/es/src/index.d.ts +1 -1
- package/es/src/index.mjs +231 -228
- package/es/src/path-map.mjs +1 -1
- package/es/src/scroll-bar/hooks/use-track.d.ts +30 -0
- package/es/src/scroll-bar/hooks/use-track.mjs +76 -0
- package/es/src/scroll-bar/index.d.ts +4 -0
- package/es/src/scroll-bar/index.mjs +3 -0
- package/es/src/scroll-bar/index.vue.d.ts +52 -0
- package/es/src/scroll-bar/index.vue.mjs +77 -0
- package/es/src/scroll-bar/index.vue2.mjs +4 -0
- package/es/src/scroll-bar/interface.d.ts +66 -0
- package/es/src/scroll-bar/internal.vue.d.ts +22 -0
- package/es/src/scroll-bar/internal.vue.mjs +132 -0
- package/es/src/scroll-bar/internal.vue2.mjs +4 -0
- package/es/src/scroll-bar/style/css.js +1 -0
- package/es/src/scroll-bar/style/index.js +1 -0
- package/es/src/scroll-bar/utils/index.d.ts +22 -0
- package/es/src/scroll-bar/utils/index.mjs +17 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +0 -6
- package/lib/src/ap-field/segmented/index.vue.d.ts +7 -1
- package/lib/src/ap-field/select/index.vue.d.ts +4 -20
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +13 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +26 -2
- package/lib/src/ap-table/constants.d.ts +28 -12
- package/lib/src/ap-table/utils.d.ts +13 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +5 -3
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +8 -34
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +2 -10
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +13 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-namespace.js +1 -1
- package/lib/src/hooks/index.d.ts +2 -0
- package/lib/src/hooks/index.js +1 -1
- package/lib/src/hooks/useManualRef.d.ts +6 -0
- package/lib/src/hooks/useManualRef.js +1 -0
- package/lib/src/hooks/useThrottleRef.d.ts +2 -0
- package/lib/src/hooks/useThrottleRef.js +1 -0
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/scroll-bar/hooks/use-track.d.ts +30 -0
- package/lib/src/scroll-bar/hooks/use-track.js +1 -0
- package/lib/src/scroll-bar/index.d.ts +4 -0
- package/lib/src/scroll-bar/index.js +1 -0
- package/lib/src/scroll-bar/index.vue.d.ts +52 -0
- package/lib/src/scroll-bar/index.vue.js +1 -0
- package/lib/src/scroll-bar/index.vue2.js +1 -0
- package/lib/src/scroll-bar/interface.d.ts +66 -0
- package/lib/src/scroll-bar/internal.vue.d.ts +22 -0
- package/lib/src/scroll-bar/internal.vue.js +1 -0
- package/lib/src/scroll-bar/internal.vue2.js +1 -0
- package/lib/src/scroll-bar/style/css.cjs +1 -0
- package/lib/src/scroll-bar/style/index.cjs +1 -0
- package/lib/src/scroll-bar/utils/index.d.ts +22 -0
- package/lib/src/scroll-bar/utils/index.js +1 -0
- package/package.json +3 -3
- package/theme/index.css +36 -21
- package/theme/index.less +1 -1
- package/theme/scroll-bar/index.css +46 -0
- package/theme/scroll-bar/index.less +62 -0
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.mjs +0 -4
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +0 -116
- package/es/src/ap-scroll-bar/index.d.ts +0 -29
- package/es/src/ap-scroll-bar/index.mjs +0 -8
- package/es/src/ap-scroll-bar/interface.d.ts +0 -4
- package/es/src/ap-scroll-bar/style/css.js +0 -1
- package/es/src/ap-scroll-bar/style/index.js +0 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.js +0 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +0 -1
- package/lib/src/ap-scroll-bar/index.d.ts +0 -29
- package/lib/src/ap-scroll-bar/index.js +0 -1
- package/lib/src/ap-scroll-bar/interface.d.ts +0 -4
- package/lib/src/ap-scroll-bar/style/css.cjs +0 -1
- package/lib/src/ap-scroll-bar/style/index.cjs +0 -1
- /package/es/src/{ap-scroll-bar → scroll-bar}/interface.mjs +0 -0
- /package/es/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
- /package/es/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
- /package/lib/src/{ap-scroll-bar → scroll-bar}/interface.js +0 -0
- /package/lib/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
- /package/lib/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
package/es/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as o from "./src/index.mjs";
|
|
2
2
|
import { default as l } from "./src/path-map.mjs";
|
|
3
3
|
import "./src/hooks/index.mjs";
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
5
|
-
import { DEFAULT_NAMESPACE as
|
|
5
|
+
import { DEFAULT_NAMESPACE as s, DEFAULT_UIMODE as A, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { buildLocaleContext as
|
|
8
|
-
import { defaultNamespace as G, namespaceContextKey as
|
|
7
|
+
import { buildLocaleContext as b, buildTranslator as C, localeContextKey as D, translate as S, useLocale as g } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as G, namespaceContextKey as M, useGetDerivedNamespace as P, useNamespace as E } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as N, globalConfigCached as y } from "./src/config-provider/config-provider.mjs";
|
|
10
|
-
import { APConfigProvider as
|
|
10
|
+
import { APConfigProvider as w } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { ApFormItemText as v } from "./src/ap-form/items/text/index.mjs";
|
|
12
12
|
import { default as K } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as O } from "./src/ap-form/items/number/index.vue.mjs";
|
|
@@ -17,76 +17,76 @@ import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
|
17
17
|
import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
|
|
18
18
|
import { default as Q } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
19
19
|
import { default as Y } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
20
|
-
import { default as
|
|
21
|
-
import { ApForm as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { ApField as
|
|
34
|
-
import { ApFieldText as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { adminToken as
|
|
48
|
-
import { ApActionItem as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { DictCode as
|
|
54
|
-
import { createWorkOrderModal as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { NeedNameKeyDefault as
|
|
60
|
-
import { default as
|
|
61
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
62
|
-
import { default as
|
|
63
|
-
import { CheckCard as
|
|
64
|
-
import { default as
|
|
65
|
-
import { ApModal as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { ApDrawer as
|
|
70
|
-
import { ApTransformDataHelper as
|
|
71
|
-
import { default as
|
|
72
|
-
import { useTableModal as
|
|
73
|
-
import { useTableSelectModal as
|
|
20
|
+
import { default as ee } from "./src/ap-form/items/text/password.vue.mjs";
|
|
21
|
+
import { ApForm as re } from "./src/ap-form/index.mjs";
|
|
22
|
+
import { default as pe } from "./src/ap-form/item/index.vue.mjs";
|
|
23
|
+
import { default as fe } from "./src/ap-form/item-group/index.vue.mjs";
|
|
24
|
+
import { default as le } from "./src/ap-form/list/index.vue.mjs";
|
|
25
|
+
import { default as de } from "./src/ap-form/search-form/index.vue.mjs";
|
|
26
|
+
import { default as se } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
27
|
+
import { default as ne } from "./src/ap-form/dependency/index.vue.mjs";
|
|
28
|
+
import { default as ce } from "./src/ap-form/set/index.vue.mjs";
|
|
29
|
+
import { default as Ie } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
|
+
import { default as be } from "./src/ap-form/render/control.vue.mjs";
|
|
31
|
+
import { default as De } from "./src/ap-form/render/item.vue.mjs";
|
|
32
|
+
import { default as ge } from "./src/ap-form/provider/index.vue.mjs";
|
|
33
|
+
import { ApField as Ge } from "./src/ap-field/index.mjs";
|
|
34
|
+
import { ApFieldText as Pe } from "./src/ap-field/text/index.mjs";
|
|
35
|
+
import { default as Le } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
36
|
+
import { default as ye } from "./src/ap-field/date/index.vue.mjs";
|
|
37
|
+
import { default as we } from "./src/ap-field/number/index.vue.mjs";
|
|
38
|
+
import { default as ve } from "./src/ap-field/radio/index.vue.mjs";
|
|
39
|
+
import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
|
|
40
|
+
import { default as Oe } from "./src/ap-field/text-area/index.vue.mjs";
|
|
41
|
+
import { default as _e } from "./src/ap-field/date-range/index.vue.mjs";
|
|
42
|
+
import { default as He } from "./src/ap-field/select/index.vue.mjs";
|
|
43
|
+
import { default as $e } from "./src/ap-field/text/password.vue.mjs";
|
|
44
|
+
import { default as qe } from "./src/ap-field/slider/index.vue.mjs";
|
|
45
|
+
import { default as Qe } from "./src/ap-field/segmented/index.vue.mjs";
|
|
46
|
+
import { default as Ye } from "./src/ap-field/rate/index.vue.mjs";
|
|
47
|
+
import { adminToken as eo, aplusToken as oo } from "./src/design-token/index.mjs";
|
|
48
|
+
import { ApActionItem as to } from "./src/ap-action/index.mjs";
|
|
49
|
+
import { default as ao } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
50
|
+
import { default as mo } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
51
|
+
import { default as xo } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
52
|
+
import { default as so } from "./src/ap-action/group/index.vue.mjs";
|
|
53
|
+
import { DictCode as no, langMap as io } from "./src/work-order-modal/interfaces.mjs";
|
|
54
|
+
import { createWorkOrderModal as Fo } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
55
|
+
import { default as To } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
56
|
+
import { default as Co } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
57
|
+
import { default as So } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
58
|
+
import { default as ho } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
59
|
+
import { NeedNameKeyDefault as Mo } from "./src/ap-upload/apUploadTypes.mjs";
|
|
60
|
+
import { default as Eo } from "./src/ap-upload/apUpload.vue.mjs";
|
|
61
|
+
import { ApDownLoadNeedNameKeyDefault as No } from "./src/ap-download/interface.mjs";
|
|
62
|
+
import { default as Ro } from "./src/ap-download/ap-download.vue.mjs";
|
|
63
|
+
import { CheckCard as ko } from "./src/check-card/index.mjs";
|
|
64
|
+
import { default as Bo } from "./src/check-card/group.vue.mjs";
|
|
65
|
+
import { ApModal as Uo } from "./src/ap-modal/index.mjs";
|
|
66
|
+
import { default as Wo } from "./src/ap-list/index.vue.mjs";
|
|
67
|
+
import { default as zo } from "./src/ap-button/ap-button.vue.mjs";
|
|
68
|
+
import { default as Vo } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
69
|
+
import { ApDrawer as jo } from "./src/ap-drawer/index.mjs";
|
|
70
|
+
import { ApTransformDataHelper as Jo } from "./src/utils/ap-trans-data/index.mjs";
|
|
71
|
+
import { default as Xo } from "./src/business/ap-table-modal/index.mjs";
|
|
72
|
+
import { useTableModal as Zo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
73
|
+
import { useTableSelectModal as or } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
74
74
|
import { ApAttachment as tr } from "./src/business/ap-attachment/index.mjs";
|
|
75
75
|
import { ApBatchAction as ar } from "./src/business/ap-batch-action/index.mjs";
|
|
76
76
|
import { ApBatchActionGroup as mr } from "./src/business/ap-batch-action-group/index.mjs";
|
|
77
77
|
import { ApButtonGroup as xr } from "./src/business/ap-button-group/index.mjs";
|
|
78
78
|
import { ApCard as ur } from "./src/business/ap-card/index.mjs";
|
|
79
|
-
import { ApExpandAlert as
|
|
79
|
+
import { ApExpandAlert as Ar } from "./src/business/ap-expand-alert/index.mjs";
|
|
80
80
|
import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/interface.mjs";
|
|
81
81
|
import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
|
|
82
|
-
import { handleExportDownload as
|
|
82
|
+
import { handleExportDownload as Tr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
83
83
|
import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
84
|
-
import { ApImage as
|
|
84
|
+
import { ApImage as Sr } from "./src/business/ap-image/index.mjs";
|
|
85
85
|
import { ApInputRadio as hr } from "./src/business/ap-input-radio/index.mjs";
|
|
86
|
-
import { ApLabel as
|
|
87
|
-
import { locales as
|
|
86
|
+
import { ApLabel as Mr, ApLabelGroup as Pr } from "./src/business/ap-label/index.mjs";
|
|
87
|
+
import { locales as Lr } from "./src/business/ap-ladder/interface.mjs";
|
|
88
88
|
import { ApLadder as yr } from "./src/business/ap-ladder/index.mjs";
|
|
89
|
-
import { ApSelectLayout as
|
|
89
|
+
import { ApSelectLayout as wr } from "./src/business/ap-select-layout/index.mjs";
|
|
90
90
|
import { ApStatus as vr, ApStatusGroup as Br } from "./src/business/ap-status/index.mjs";
|
|
91
91
|
import { ApTitle as Ur } from "./src/business/ap-title/index.mjs";
|
|
92
92
|
import { usePageListApTable as Wr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
@@ -94,157 +94,163 @@ import { useTableRefresh as zr } from "./src/business/hooks/useTableRefresh.mjs"
|
|
|
94
94
|
import { computedRecords as Vr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
|
|
95
95
|
import { ApSummary as Qr } from "./src/business/ap-summary/index.mjs";
|
|
96
96
|
import { ApNeedNameKeyDefault as Yr } from "./src/business/ap-appendix/interface.mjs";
|
|
97
|
-
import { ApAppendix as
|
|
97
|
+
import { ApAppendix as et } from "./src/business/ap-appendix/index.mjs";
|
|
98
98
|
import { ApExtensionSelect as rt, ApGroupSearch as tt, ApPopoverSelect as pt } from "./src/business/ap-group-search/index.mjs";
|
|
99
99
|
import { default as ft } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
100
100
|
import { default as lt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
101
101
|
import { default as dt } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
102
|
-
import { ApSizeInput as
|
|
102
|
+
import { ApSizeInput as st } from "./src/business/ap-size-input/index.mjs";
|
|
103
103
|
import { useTablePaging as nt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
104
104
|
import { ApTable as ct } from "./src/ap-table/index.mjs";
|
|
105
105
|
import { default as It } from "./src/editable-table/index.vue.mjs";
|
|
106
|
-
import { default as
|
|
106
|
+
import { default as bt } from "./src/editable-table/form-item.vue.mjs";
|
|
107
107
|
import { default as Dt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
108
|
+
import { default as gt } from "./src/scroll-bar/index.vue.mjs";
|
|
109
|
+
import { default as Gt } from "./src/scroll-bar/internal.vue.mjs";
|
|
110
|
+
import { useMessage as Pt } from "./src/hooks/useMessage.mjs";
|
|
111
|
+
import { useControllableValue as Lt } from "./src/hooks/useControllableValue.mjs";
|
|
112
|
+
import { useManualRef as yt } from "./src/hooks/useManualRef.mjs";
|
|
113
|
+
import { useThrottleRef as wt } from "./src/hooks/useThrottleRef.mjs";
|
|
111
114
|
const a = {
|
|
112
115
|
install: (r) => {
|
|
113
|
-
for (const t in
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
+
for (const t in o) {
|
|
117
|
+
const e = o[t];
|
|
118
|
+
e.install && r.use(e);
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
};
|
|
119
122
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
w as APConfigProvider,
|
|
124
|
+
Vo as ApActionButton,
|
|
125
|
+
so as ApActionGroup,
|
|
126
|
+
to as ApActionItem,
|
|
127
|
+
xo as ApActionItemDropdown,
|
|
128
|
+
ao as ApActionItemModal,
|
|
129
|
+
mo as ApActionItemPopconfirm,
|
|
130
|
+
et as ApAppendix,
|
|
128
131
|
tr as ApAttachment,
|
|
129
132
|
ar as ApBatchAction,
|
|
130
133
|
mr as ApBatchActionGroup,
|
|
131
|
-
|
|
134
|
+
zo as ApButton,
|
|
132
135
|
xr as ApButtonGroup,
|
|
133
136
|
ur as ApCard,
|
|
134
137
|
Dt as ApDescriptions,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
No as ApDownLoadNeedNameKeyDefault,
|
|
139
|
+
Ro as ApDownload,
|
|
140
|
+
jo as ApDrawer,
|
|
141
|
+
Ar as ApExpandAlert,
|
|
139
142
|
Fr as ApExportGroup,
|
|
140
143
|
ir as ApExportGroupActionType,
|
|
141
144
|
rt as ApExtensionSelect,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
145
|
+
Ge as ApField,
|
|
146
|
+
Le as ApFieldCheckbox,
|
|
147
|
+
ye as ApFieldDate,
|
|
148
|
+
_e as ApFieldDateRange,
|
|
149
|
+
we as ApFieldNumber,
|
|
150
|
+
$e as ApFieldPassword,
|
|
151
|
+
ve as ApFieldRadio,
|
|
152
|
+
Ye as ApFieldRate,
|
|
153
|
+
Qe as ApFieldSegmented,
|
|
154
|
+
He as ApFieldSelect,
|
|
155
|
+
qe as ApFieldSlider,
|
|
156
|
+
Ke as ApFieldSwitch,
|
|
157
|
+
Pe as ApFieldText,
|
|
158
|
+
Oe as ApFieldTextArea,
|
|
159
|
+
re as ApForm,
|
|
160
|
+
be as ApFormControlRender,
|
|
161
|
+
ne as ApFormDependency,
|
|
162
|
+
Ie as ApFormDrawerForm,
|
|
163
|
+
pe as ApFormItem,
|
|
161
164
|
dt as ApFormItemBatchInput,
|
|
162
165
|
Y as ApFormItemCheckbox,
|
|
163
166
|
_ as ApFormItemDate,
|
|
164
167
|
H as ApFormItemDateRange,
|
|
165
|
-
|
|
168
|
+
fe as ApFormItemGroup,
|
|
166
169
|
O as ApFormItemNumber,
|
|
167
170
|
$ as ApFormItemRadio,
|
|
168
|
-
|
|
171
|
+
De as ApFormItemRender,
|
|
169
172
|
q as ApFormItemSelect,
|
|
170
173
|
Q as ApFormItemSwitch,
|
|
171
174
|
v as ApFormItemText,
|
|
172
175
|
K as ApFormItemTextArea,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
ee as ApFormItemTextPassword,
|
|
177
|
+
le as ApFormList,
|
|
178
|
+
se as ApFormModalForm,
|
|
179
|
+
ge as ApFormProvider,
|
|
180
|
+
de as ApFormSearchForm,
|
|
181
|
+
ce as ApFormSet,
|
|
179
182
|
tt as ApGroupSearch,
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
Sr as ApImage,
|
|
184
|
+
ho as ApInfoLayout,
|
|
182
185
|
hr as ApInputRadio,
|
|
183
|
-
|
|
184
|
-
|
|
186
|
+
Mr as ApLabel,
|
|
187
|
+
Pr as ApLabelGroup,
|
|
185
188
|
yr as ApLadder,
|
|
186
|
-
|
|
187
|
-
|
|
189
|
+
Wo as ApList,
|
|
190
|
+
Uo as ApModal,
|
|
188
191
|
Yr as ApNeedNameKeyDefault,
|
|
189
192
|
pt as ApPopoverSelect,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
At as ApSizeInput,
|
|
193
|
+
wr as ApSelectLayout,
|
|
194
|
+
st as ApSizeInput,
|
|
193
195
|
vr as ApStatus,
|
|
194
196
|
Br as ApStatusGroup,
|
|
195
197
|
Qr as ApSummary,
|
|
196
198
|
ct as ApTable,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
Xo as ApTableModal,
|
|
200
|
+
Co as ApTag,
|
|
201
|
+
So as ApTagGroup,
|
|
200
202
|
Ur as ApTitle,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
+
Jo as ApTransformDataHelper,
|
|
204
|
+
Eo as ApUpload,
|
|
203
205
|
ft as ApUploadSingle,
|
|
204
206
|
lt as BatchInputGroup,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
+
ko as CheckCard,
|
|
208
|
+
Bo as CheckCardGroup,
|
|
207
209
|
N as ConfigProvider,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
s as DEFAULT_NAMESPACE,
|
|
211
|
+
A as DEFAULT_UIMODE,
|
|
212
|
+
no as DictCode,
|
|
211
213
|
It as EditableTable,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
bt as EditableTableFormItem,
|
|
215
|
+
Gt as InternalScrollBar,
|
|
216
|
+
Mo as NeedNameKeyDefault,
|
|
217
|
+
gt as ScrollBar,
|
|
218
|
+
To as WorkOrderModal,
|
|
219
|
+
eo as adminToken,
|
|
220
|
+
oo as aplusToken,
|
|
221
|
+
b as buildLocaleContext,
|
|
218
222
|
C as buildTranslator,
|
|
219
223
|
Vr as computedRecords,
|
|
220
224
|
n as configProviderContextKey,
|
|
221
225
|
d as configProviderProps,
|
|
222
226
|
Cr as convertExportField,
|
|
223
|
-
|
|
227
|
+
Fo as createWorkOrderModal,
|
|
224
228
|
a as default,
|
|
225
229
|
G as defaultNamespace,
|
|
226
230
|
$r as flattenColumns,
|
|
227
231
|
jr as formatDataIndex,
|
|
228
232
|
qr as formatNumber,
|
|
229
233
|
y as globalConfigCached,
|
|
230
|
-
|
|
234
|
+
Tr as handleExportDownload,
|
|
231
235
|
c as keysOf,
|
|
232
|
-
|
|
236
|
+
io as langMap,
|
|
233
237
|
D as localeContextKey,
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
Lr as locales,
|
|
239
|
+
M as namespaceContextKey,
|
|
236
240
|
l as pathMap,
|
|
237
241
|
F as provideGlobalConfig,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
S as translate,
|
|
243
|
+
Lt as useControllableValue,
|
|
244
|
+
P as useGetDerivedNamespace,
|
|
241
245
|
I as useGlobalConfig,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
246
|
+
g as useLocale,
|
|
247
|
+
yt as useManualRef,
|
|
248
|
+
Pt as useMessage,
|
|
249
|
+
E as useNamespace,
|
|
245
250
|
Wr as usePageListApTable,
|
|
246
|
-
|
|
251
|
+
Zo as useTableModal,
|
|
247
252
|
nt as useTablePaging,
|
|
248
253
|
zr as useTableRefresh,
|
|
249
|
-
|
|
254
|
+
or as useTableSelectModal,
|
|
255
|
+
wt as useThrottleRef
|
|
250
256
|
};
|
|
@@ -7,5 +7,5 @@ export declare const formatDay: (d: Dayjs, f: string, begin?: boolean) => number
|
|
|
7
7
|
* @param timezone
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
export declare function formatDayWithTimezone(timezone?: ZoneAlias): (d: Dayjs, f
|
|
10
|
+
export declare function formatDayWithTimezone(timezone?: ZoneAlias): (d: Dayjs, f?: string, begin?: boolean) => number | null;
|
|
11
11
|
export declare const formatValue: (v: EventValue<Dayjs>) => number | null;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { getUtcTimestamp as m } from "@aplus-frontend/utils";
|
|
2
2
|
import n from "dayjs";
|
|
3
|
-
const i = (
|
|
4
|
-
if (!
|
|
3
|
+
const i = (e, r, o = !0) => {
|
|
4
|
+
if (!e)
|
|
5
5
|
return null;
|
|
6
|
-
let t =
|
|
7
|
-
return t = t.millisecond(0),
|
|
6
|
+
let t = e.clone();
|
|
7
|
+
return t = t.millisecond(0), r.indexOf("ss") === -1 && (t = t.second(o ? 0 : 59)), r.indexOf("mm") === -1 && (t = t.minute(o ? 0 : 59)), r.indexOf("HH") === -1 && (t = t.hour(o ? 0 : 23)), r.indexOf("DD") === -1 && (t = t.date(o ? 1 : 0), o || (t = t.month(t.month() + 1))), r.indexOf("MM") === -1 && (t = t.month(o ? 0 : 12)), t.valueOf();
|
|
8
8
|
};
|
|
9
|
-
function d(
|
|
10
|
-
return (
|
|
11
|
-
const f = i(
|
|
12
|
-
return
|
|
9
|
+
function d(e) {
|
|
10
|
+
return (r, o, t = !0) => {
|
|
11
|
+
const f = o ? i(r, o, t) : r.valueOf();
|
|
12
|
+
return e ? m(n(f), e) : f;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const l = (
|
|
15
|
+
const l = (e) => e && e.valueOf();
|
|
16
16
|
export {
|
|
17
17
|
i as formatDay,
|
|
18
18
|
d as formatDayWithTimezone,
|
|
@@ -87,20 +87,20 @@ const le = /* @__PURE__ */ b({
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["update:value"],
|
|
89
89
|
setup(h, { emit: B }) {
|
|
90
|
-
const e = h, k = B, { value: p, updateValue:
|
|
90
|
+
const e = h, k = B, { value: p, updateValue: c } = Z(
|
|
91
91
|
e,
|
|
92
92
|
k
|
|
93
|
-
), P = Y("Date", e),
|
|
93
|
+
), P = Y("Date", e), n = i(
|
|
94
94
|
() => I.indexOf(e.format) > -1
|
|
95
95
|
), d = i(
|
|
96
|
-
() =>
|
|
97
|
-
),
|
|
96
|
+
() => n.value ? H[e.format] : e.format
|
|
97
|
+
), m = i(() => {
|
|
98
98
|
if (y(t(p)))
|
|
99
99
|
return;
|
|
100
100
|
let o = r(t(p));
|
|
101
101
|
return e.timezone && (o = r(W(t(p), e.timezone))), o;
|
|
102
|
-
}), g = i(() => t(
|
|
103
|
-
const o = t(
|
|
102
|
+
}), g = i(() => t(n) ? e.picker ?? U[e.format] : e.picker), C = i(() => {
|
|
103
|
+
const o = t(n) ? K[e.format] : {};
|
|
104
104
|
return {
|
|
105
105
|
...$(e, [
|
|
106
106
|
"value",
|
|
@@ -114,39 +114,47 @@ const le = /* @__PURE__ */ b({
|
|
|
114
114
|
placeholder: t(P),
|
|
115
115
|
...o
|
|
116
116
|
};
|
|
117
|
-
}),
|
|
118
|
-
function
|
|
117
|
+
}), f = L(e.timezone);
|
|
118
|
+
function O(o) {
|
|
119
119
|
if (y(o)) {
|
|
120
|
-
|
|
120
|
+
c(null);
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
const
|
|
124
|
-
|
|
123
|
+
const l = r(o);
|
|
124
|
+
c(
|
|
125
|
+
f(l, t(n) ? t(d) : void 0)
|
|
126
|
+
);
|
|
125
127
|
}
|
|
126
|
-
function T(o,
|
|
128
|
+
function T(o, l) {
|
|
127
129
|
var s;
|
|
128
|
-
const u = r(o),
|
|
129
|
-
|
|
130
|
+
const u = r(o), a = o ? f(
|
|
131
|
+
u,
|
|
132
|
+
t(n) ? t(d) : void 0
|
|
133
|
+
) : null;
|
|
134
|
+
(s = e.onChange) == null || s.call(e, a, l);
|
|
130
135
|
}
|
|
131
136
|
function S(o) {
|
|
132
|
-
var
|
|
133
|
-
const
|
|
134
|
-
|
|
137
|
+
var a;
|
|
138
|
+
const l = r(o), u = o ? f(
|
|
139
|
+
l,
|
|
140
|
+
t(n) ? t(d) : void 0
|
|
141
|
+
) : null;
|
|
142
|
+
(a = e.onOk) == null || a.call(e, u);
|
|
135
143
|
}
|
|
136
|
-
return (o,
|
|
137
|
-
M(R(
|
|
138
|
-
], 64)) : (v(), F(t(j), A({ key: 1 },
|
|
139
|
-
value:
|
|
144
|
+
return (o, l) => o.mode === "read" ? (v(), _(w, { key: 0 }, [
|
|
145
|
+
M(R(m.value ? t(r)(m.value).format(d.value) : o.emptyText), 1)
|
|
146
|
+
], 64)) : (v(), F(t(j), A({ key: 1 }, C.value, {
|
|
147
|
+
value: m.value,
|
|
140
148
|
format: d.value,
|
|
141
149
|
picker: g.value,
|
|
142
|
-
"onUpdate:value":
|
|
150
|
+
"onUpdate:value": O,
|
|
143
151
|
onChange: T,
|
|
144
152
|
onOk: S
|
|
145
153
|
}), D({ _: 2 }, [
|
|
146
|
-
x(o.$slots, (u,
|
|
147
|
-
name:
|
|
154
|
+
x(o.$slots, (u, a) => ({
|
|
155
|
+
name: a,
|
|
148
156
|
fn: E((s) => [
|
|
149
|
-
V(o.$slots,
|
|
157
|
+
V(o.$slots, a, z(N(s || {})))
|
|
150
158
|
])
|
|
151
159
|
}))
|
|
152
160
|
]), 1040, ["value", "format", "picker"]));
|