@aplus-frontend/ui 0.5.14 → 0.5.16
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 +41 -39
- package/es/src/ap-field/date/constant.d.ts +1 -1
- package/es/src/ap-field/date/constant.mjs +14 -2
- package/es/src/ap-field/date/index.vue.mjs +59 -58
- package/es/src/ap-field/date/interface.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +67 -66
- package/es/src/ap-field/interface.d.ts +8 -0
- package/es/src/ap-field/select/index.vue.mjs +2 -1
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +239 -236
- package/es/src/mask/index.d.ts +2 -0
- package/es/src/mask/index.mjs +1 -0
- package/es/src/mask/index.vue.d.ts +31 -0
- package/es/src/mask/index.vue.mjs +116 -0
- package/es/src/mask/index.vue2.mjs +4 -0
- package/es/src/mask/interface.d.ts +21 -0
- package/es/src/mask/utils.d.ts +2 -0
- package/es/src/mask/utils.mjs +21 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date/constant.d.ts +1 -1
- package/lib/src/ap-field/date/constant.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/interface.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +8 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/mask/index.d.ts +2 -0
- package/lib/src/mask/index.js +1 -0
- package/lib/src/mask/index.vue.d.ts +31 -0
- package/lib/src/mask/index.vue.js +1 -0
- package/lib/src/mask/index.vue2.js +1 -0
- package/lib/src/mask/interface.d.ts +21 -0
- package/lib/src/mask/utils.d.ts +2 -0
- package/lib/src/mask/utils.js +6 -0
- package/package.json +3 -3
- package/theme/index.css +54 -0
- package/theme/index.less +1 -0
- package/theme/mask/index.css +54 -0
- package/theme/mask/index.less +28 -0
- package/theme/mixins/animations.css +24 -0
- package/theme/mixins/animations.less +38 -0
package/es/index.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import { configProviderProps as d } from "./src/config-provider/config-provider-
|
|
|
5
5
|
import { DEFAULT_NAMESPACE as s, DEFAULT_UIMODE as A, configProviderContextKey as i } 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
7
|
import { buildLocaleContext as T, buildTranslator as S, localeContextKey as C, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
-
import { defaultNamespace as h, namespaceContextKey as P, useGetDerivedNamespace as E, useNamespace as
|
|
9
|
-
import { ConfigProvider as
|
|
8
|
+
import { defaultNamespace as h, namespaceContextKey as P, useGetDerivedNamespace as E, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as L, globalConfigCached as N } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as w } from "./src/config-provider/index.mjs";
|
|
11
|
-
import { ApFormItemText as
|
|
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 U } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
14
|
import { default as V } from "./src/ap-form/items/date/index.vue.mjs";
|
|
@@ -32,10 +32,10 @@ import { default as Ce } from "./src/ap-form/render/item.vue.mjs";
|
|
|
32
32
|
import { default as De } from "./src/ap-form/provider/index.vue.mjs";
|
|
33
33
|
import { ApField as he } from "./src/ap-field/index.mjs";
|
|
34
34
|
import { ApFieldText as Ee } from "./src/ap-field/text/index.mjs";
|
|
35
|
-
import { default as
|
|
35
|
+
import { default as Re } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
36
36
|
import { default as Ne } from "./src/ap-field/date/index.vue.mjs";
|
|
37
37
|
import { default as we } from "./src/ap-field/number/index.vue.mjs";
|
|
38
|
-
import { default as
|
|
38
|
+
import { default as ve } from "./src/ap-field/radio/index.vue.mjs";
|
|
39
39
|
import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
|
|
40
40
|
import { default as Ue } from "./src/ap-field/text-area/index.vue.mjs";
|
|
41
41
|
import { default as Ve } from "./src/ap-field/date-range/index.vue.mjs";
|
|
@@ -57,11 +57,11 @@ import { default as So } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
|
57
57
|
import { default as go } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
58
58
|
import { default as Go } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
59
59
|
import { NeedNameKeyDefault as Po } from "./src/ap-upload/apUploadTypes.mjs";
|
|
60
|
-
import { default as
|
|
61
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
60
|
+
import { default as Mo } from "./src/ap-upload/apUpload.vue.mjs";
|
|
61
|
+
import { ApDownLoadNeedNameKeyDefault as Lo } from "./src/ap-download/interface.mjs";
|
|
62
62
|
import { default as yo } from "./src/ap-download/ap-download.vue.mjs";
|
|
63
|
-
import { CheckCard as
|
|
64
|
-
import { default as
|
|
63
|
+
import { CheckCard as ko } from "./src/check-card/index.mjs";
|
|
64
|
+
import { default as Bo } from "./src/check-card/group.vue.mjs";
|
|
65
65
|
import { ApModal as Oo } from "./src/ap-modal/index.mjs";
|
|
66
66
|
import { default as zo } from "./src/ap-list/index.vue.mjs";
|
|
67
67
|
import { default as Wo } from "./src/ap-button/ap-button.vue.mjs";
|
|
@@ -84,10 +84,10 @@ import { handleExportDownload as Sr } from "./src/business/ap-export-group/handl
|
|
|
84
84
|
import { convertExportField as gr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
85
85
|
import { ApImage as Gr } from "./src/business/ap-image/index.mjs";
|
|
86
86
|
import { ApInputRadio as Pr } from "./src/business/ap-input-radio/index.mjs";
|
|
87
|
-
import { ApLabel as
|
|
87
|
+
import { ApLabel as Mr, ApLabelGroup as Rr } from "./src/business/ap-label/index.mjs";
|
|
88
88
|
import { locales as Nr } from "./src/business/ap-ladder/interface.mjs";
|
|
89
89
|
import { ApLadder as wr } from "./src/business/ap-ladder/index.mjs";
|
|
90
|
-
import { ApSelectLayout as
|
|
90
|
+
import { ApSelectLayout as vr } from "./src/business/ap-select-layout/index.mjs";
|
|
91
91
|
import { ApStatus as Kr, ApStatusGroup as Or } from "./src/business/ap-status/index.mjs";
|
|
92
92
|
import { ApTitle as zr } from "./src/business/ap-title/index.mjs";
|
|
93
93
|
import { usePageListApTable as Wr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
@@ -108,10 +108,10 @@ import { default as Ct } from "./src/editable-table/index.vue.mjs";
|
|
|
108
108
|
import { default as Dt } from "./src/editable-table/form-item.vue.mjs";
|
|
109
109
|
import { default as ht } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
110
110
|
import { ensureRangeValue as Et } from "./src/scroll-bar/utils/index.mjs";
|
|
111
|
-
import { default as
|
|
111
|
+
import { default as Rt } from "./src/scroll-bar/index.vue.mjs";
|
|
112
112
|
import { default as Nt } from "./src/scroll-bar/internal.vue.mjs";
|
|
113
113
|
import { default as wt } from "./src/scroll-view/index.vue.mjs";
|
|
114
|
-
import { default as
|
|
114
|
+
import { default as vt } from "./src/portal/index.vue.mjs";
|
|
115
115
|
import { default as Kt } from "./src/full-screen/index.vue.mjs";
|
|
116
116
|
import { default as Ut } from "./src/resize-observer/index.vue.mjs";
|
|
117
117
|
import { default as Vt } from "./src/ap-grid/index.vue.mjs";
|
|
@@ -119,12 +119,13 @@ import { default as _t } from "./src/ap-grid/editable/index.vue.mjs";
|
|
|
119
119
|
import { default as $t } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
120
120
|
import { default as qt } from "./src/text/index.vue.mjs";
|
|
121
121
|
import { default as Qt } from "./src/text/group.vue.mjs";
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
122
|
+
import { default as Yt } from "./src/mask/index.vue.mjs";
|
|
123
|
+
import { useMessage as ep } from "./src/hooks/useMessage.mjs";
|
|
124
|
+
import { useControllableValue as rp } from "./src/hooks/useControllableValue.mjs";
|
|
125
|
+
import { useManualRef as pp } from "./src/hooks/useManualRef.mjs";
|
|
126
|
+
import { useThrottleRef as fp } from "./src/hooks/useThrottleRef.mjs";
|
|
127
|
+
import { useFullScreen as lp } from "./src/hooks/useFullScreen.mjs";
|
|
128
|
+
import { useResize as dp } from "./src/hooks/useResize.mjs";
|
|
128
129
|
const a = {
|
|
129
130
|
install: (r) => {
|
|
130
131
|
for (const t in o) {
|
|
@@ -150,7 +151,7 @@ export {
|
|
|
150
151
|
Ar as ApCard,
|
|
151
152
|
jo as ApConfirmButton,
|
|
152
153
|
ht as ApDescriptions,
|
|
153
|
-
|
|
154
|
+
Lo as ApDownLoadNeedNameKeyDefault,
|
|
154
155
|
yo as ApDownload,
|
|
155
156
|
Jo as ApDrawer,
|
|
156
157
|
nr as ApExpandAlert,
|
|
@@ -158,12 +159,12 @@ export {
|
|
|
158
159
|
Fr as ApExportGroupActionType,
|
|
159
160
|
ft as ApExtensionSelect,
|
|
160
161
|
he as ApField,
|
|
161
|
-
|
|
162
|
+
Re as ApFieldCheckbox,
|
|
162
163
|
Ne as ApFieldDate,
|
|
163
164
|
Ve as ApFieldDateRange,
|
|
164
165
|
we as ApFieldNumber,
|
|
165
166
|
$e as ApFieldPassword,
|
|
166
|
-
|
|
167
|
+
ve as ApFieldRadio,
|
|
167
168
|
Ye as ApFieldRate,
|
|
168
169
|
Qe as ApFieldSegmented,
|
|
169
170
|
_e as ApFieldSelect,
|
|
@@ -186,7 +187,7 @@ export {
|
|
|
186
187
|
Ce as ApFormItemRender,
|
|
187
188
|
q as ApFormItemSelect,
|
|
188
189
|
Q as ApFormItemSwitch,
|
|
189
|
-
|
|
190
|
+
v as ApFormItemText,
|
|
190
191
|
K as ApFormItemTextArea,
|
|
191
192
|
ee as ApFormItemTextPassword,
|
|
192
193
|
le as ApFormList,
|
|
@@ -199,14 +200,14 @@ export {
|
|
|
199
200
|
Gr as ApImage,
|
|
200
201
|
Go as ApInfoLayout,
|
|
201
202
|
Pr as ApInputRadio,
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
Mr as ApLabel,
|
|
204
|
+
Rr as ApLabelGroup,
|
|
204
205
|
wr as ApLadder,
|
|
205
206
|
zo as ApList,
|
|
206
207
|
Oo as ApModal,
|
|
207
208
|
rt as ApNeedNameKeyDefault,
|
|
208
209
|
lt as ApPopoverSelect,
|
|
209
|
-
|
|
210
|
+
vr as ApSelectLayout,
|
|
210
211
|
ct as ApSizeInput,
|
|
211
212
|
Kr as ApStatus,
|
|
212
213
|
Or as ApStatusGroup,
|
|
@@ -219,12 +220,12 @@ export {
|
|
|
219
220
|
Qt as ApTextGroup,
|
|
220
221
|
zr as ApTitle,
|
|
221
222
|
Xo as ApTransformDataHelper,
|
|
222
|
-
|
|
223
|
+
Mo as ApUpload,
|
|
223
224
|
dt as ApUploadSingle,
|
|
224
225
|
st as BatchInputGroup,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
ko as CheckCard,
|
|
227
|
+
Bo as CheckCardGroup,
|
|
228
|
+
L as ConfigProvider,
|
|
228
229
|
s as DEFAULT_NAMESPACE,
|
|
229
230
|
A as DEFAULT_UIMODE,
|
|
230
231
|
io as DictCode,
|
|
@@ -234,10 +235,11 @@ export {
|
|
|
234
235
|
Dt as EditableTableFormItem,
|
|
235
236
|
Kt as FullScreen,
|
|
236
237
|
Nt as InternalScrollBar,
|
|
238
|
+
Yt as Mask,
|
|
237
239
|
Po as NeedNameKeyDefault,
|
|
238
|
-
|
|
240
|
+
vt as Portal,
|
|
239
241
|
Ut as ResizeObserver,
|
|
240
|
-
|
|
242
|
+
Rt as ScrollBar,
|
|
241
243
|
wt as ScrollView,
|
|
242
244
|
bo as WorkOrderModal,
|
|
243
245
|
eo as adminToken,
|
|
@@ -265,20 +267,20 @@ export {
|
|
|
265
267
|
l as pathMap,
|
|
266
268
|
F as provideGlobalConfig,
|
|
267
269
|
g as translate,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
+
rp as useControllableValue,
|
|
271
|
+
lp as useFullScreen,
|
|
270
272
|
E as useGetDerivedNamespace,
|
|
271
273
|
I as useGlobalConfig,
|
|
272
274
|
D as useLocale,
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
275
|
+
pp as useManualRef,
|
|
276
|
+
ep as useMessage,
|
|
277
|
+
M as useNamespace,
|
|
276
278
|
jr as usePageListApGrid,
|
|
277
279
|
Wr as usePageListApTable,
|
|
278
|
-
|
|
280
|
+
dp as useResize,
|
|
279
281
|
or as useTableModal,
|
|
280
282
|
It as useTablePaging,
|
|
281
283
|
Hr as useTableRefresh,
|
|
282
284
|
tr as useTableSelectModal,
|
|
283
|
-
|
|
285
|
+
fp as useThrottleRef
|
|
284
286
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
2
2
|
import { ApFormatPresetType } from './interface';
|
|
3
3
|
export declare const ApFieldDatePresetFormats: string[];
|
|
4
|
-
export declare const PRESET_FORMAT_MAP: Record<ApFormatPresetType, string>;
|
|
4
|
+
export declare const PRESET_FORMAT_MAP: Record<ApFormatPresetType, string | undefined>;
|
|
5
5
|
export declare const PRESET_FORMAT_PICK_MAP: Record<ApFormatPresetType, PickerMode>;
|
|
6
6
|
export declare const PRESET_FORMAT_TIME_MAP: Record<ApFormatPresetType, {
|
|
7
7
|
showTime: boolean;
|
|
@@ -1,31 +1,43 @@
|
|
|
1
1
|
const Y = [
|
|
2
2
|
"Y",
|
|
3
|
+
"Y-Q",
|
|
3
4
|
"Y-M",
|
|
5
|
+
"Y-W",
|
|
4
6
|
"Y-D",
|
|
5
7
|
"Y-h",
|
|
6
8
|
"Y-m",
|
|
7
9
|
"Y-s"
|
|
8
10
|
], e = {
|
|
9
11
|
Y: "YYYY",
|
|
12
|
+
"Y-Q": void 0,
|
|
10
13
|
"Y-M": "YYYY-MM",
|
|
14
|
+
"Y-W": void 0,
|
|
11
15
|
"Y-D": "YYYY-MM-DD",
|
|
12
16
|
"Y-h": "YYYY-MM-DD HH",
|
|
13
17
|
"Y-m": "YYYY-MM-DD HH:mm",
|
|
14
18
|
"Y-s": "YYYY-MM-DD HH:mm:ss"
|
|
15
19
|
}, s = {
|
|
16
20
|
Y: "year",
|
|
21
|
+
"Y-Q": "quarter",
|
|
17
22
|
"Y-M": "month",
|
|
23
|
+
"Y-W": "week",
|
|
18
24
|
"Y-D": "date",
|
|
19
25
|
"Y-h": "date",
|
|
20
26
|
"Y-m": "date",
|
|
21
27
|
"Y-s": "date"
|
|
22
|
-
},
|
|
28
|
+
}, o = {
|
|
23
29
|
Y: {
|
|
24
30
|
showTime: !1
|
|
25
31
|
},
|
|
32
|
+
"Y-Q": {
|
|
33
|
+
showTime: !1
|
|
34
|
+
},
|
|
26
35
|
"Y-M": {
|
|
27
36
|
showTime: !1
|
|
28
37
|
},
|
|
38
|
+
"Y-W": {
|
|
39
|
+
showTime: !1
|
|
40
|
+
},
|
|
29
41
|
"Y-D": {
|
|
30
42
|
showTime: !1
|
|
31
43
|
},
|
|
@@ -46,5 +58,5 @@ export {
|
|
|
46
58
|
Y as ApFieldDatePresetFormats,
|
|
47
59
|
e as PRESET_FORMAT_MAP,
|
|
48
60
|
s as PRESET_FORMAT_PICK_MAP,
|
|
49
|
-
|
|
61
|
+
o as PRESET_FORMAT_TIME_MAP
|
|
50
62
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { InputGroup as
|
|
4
|
-
import { ApFieldDatePresetFormats as
|
|
1
|
+
import { defineComponent as E, computed as u, unref as a, createElementBlock as g, createBlock as h, openBlock as s, Fragment as k, createTextVNode as w, toDisplayString as P, normalizeStyle as N, withCtx as f, createCommentVNode as j, createVNode as I, isRef as U, renderList as C, mergeProps as H, createSlots as K, renderSlot as $, normalizeProps as G, guardReactiveProps as L } from "vue";
|
|
2
|
+
import d from "dayjs";
|
|
3
|
+
import { InputGroup as W, Select as Y, SelectOption as Z, DatePicker as q } from "@aplus-frontend/antdv";
|
|
4
|
+
import { ApFieldDatePresetFormats as J, PRESET_FORMAT_MAP as S, PRESET_FORMAT_PICK_MAP as Q, PRESET_FORMAT_TIME_MAP as X } from "./constant.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import { isNil as T, omit as
|
|
7
|
-
import { formatDayWithTimezone as
|
|
8
|
-
import { getTimeFormatToZone as
|
|
9
|
-
import { useDefaultPlaceholder as
|
|
10
|
-
import { useDateTimezone as
|
|
11
|
-
import { useControllableValue as
|
|
12
|
-
const
|
|
6
|
+
import { isNil as T, omit as z } from "lodash-unified";
|
|
7
|
+
import { formatDayWithTimezone as ee } from "./helper.mjs";
|
|
8
|
+
import { getTimeFormatToZone as oe } from "@aplus-frontend/utils";
|
|
9
|
+
import { useDefaultPlaceholder as te } from "../hooks/use-default-placeholder.mjs";
|
|
10
|
+
import { useDateTimezone as ae } from "../hooks/use-date-timezone.mjs";
|
|
11
|
+
import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
|
|
12
|
+
const ye = /* @__PURE__ */ E({
|
|
13
13
|
name: "ApFieldDate",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -84,27 +84,28 @@ const ve = /* @__PURE__ */ x({
|
|
|
84
84
|
onChange: {},
|
|
85
85
|
onOk: {},
|
|
86
86
|
format: { default: "Y-D" },
|
|
87
|
+
shownFormat: {},
|
|
87
88
|
formatBegins: { type: Boolean, default: !0 },
|
|
88
89
|
timezone: {}
|
|
89
90
|
},
|
|
90
91
|
emits: ["update:value"],
|
|
91
92
|
setup(O, { emit: b }) {
|
|
92
|
-
const e = O,
|
|
93
|
+
const e = O, F = b, { value: c, updateValue: B } = ne(
|
|
93
94
|
e,
|
|
94
|
-
|
|
95
|
-
),
|
|
96
|
-
() =>
|
|
97
|
-
),
|
|
98
|
-
() =>
|
|
99
|
-
), v =
|
|
95
|
+
F
|
|
96
|
+
), _ = te("Date", e), { currentTimezone: i } = ae(e), l = u(
|
|
97
|
+
() => J.indexOf(e.format) > -1
|
|
98
|
+
), A = u(() => e.shownFormat ? e.shownFormat : l.value ? S[e.format] : e.format), m = u(
|
|
99
|
+
() => l.value ? S[e.format] : e.format
|
|
100
|
+
), v = u(() => {
|
|
100
101
|
if (T(a(c)))
|
|
101
102
|
return;
|
|
102
|
-
let t =
|
|
103
|
-
return e.timezone && (t =
|
|
104
|
-
}),
|
|
105
|
-
const t = a(
|
|
103
|
+
let t = d(a(c));
|
|
104
|
+
return e.timezone && (t = d(oe(a(c), i.value))), t;
|
|
105
|
+
}), R = u(() => a(l) ? e.picker ?? Q[e.format] : e.picker), M = u(() => {
|
|
106
|
+
const t = a(l) ? X[e.format] : {};
|
|
106
107
|
return {
|
|
107
|
-
...
|
|
108
|
+
...z(e, [
|
|
108
109
|
"value",
|
|
109
110
|
"defaultValue",
|
|
110
111
|
"onChange",
|
|
@@ -113,85 +114,85 @@ const ve = /* @__PURE__ */ x({
|
|
|
113
114
|
"onUpdate:value",
|
|
114
115
|
"mode"
|
|
115
116
|
]),
|
|
116
|
-
placeholder: a(
|
|
117
|
+
placeholder: a(_),
|
|
117
118
|
...t
|
|
118
119
|
};
|
|
119
|
-
}), y = (t, n, o = !0) =>
|
|
120
|
-
function
|
|
120
|
+
}), y = (t, n, o = !0) => ee(i.value)(t, n, o);
|
|
121
|
+
function D(t) {
|
|
121
122
|
if (T(t)) {
|
|
122
123
|
B(null);
|
|
123
124
|
return;
|
|
124
125
|
}
|
|
125
|
-
const n =
|
|
126
|
+
const n = d(t);
|
|
126
127
|
B(
|
|
127
128
|
y(
|
|
128
129
|
n,
|
|
129
|
-
a(
|
|
130
|
+
a(l) ? a(m) : void 0,
|
|
130
131
|
e.formatBegins
|
|
131
132
|
)
|
|
132
133
|
);
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function x(t, n) {
|
|
135
136
|
var p;
|
|
136
|
-
const o =
|
|
137
|
+
const o = d(t), r = t ? y(
|
|
137
138
|
o,
|
|
138
|
-
a(
|
|
139
|
+
a(l) ? a(m) : void 0,
|
|
139
140
|
e.formatBegins
|
|
140
141
|
) : null;
|
|
141
|
-
(p = e.onChange) == null || p.call(e,
|
|
142
|
+
(p = e.onChange) == null || p.call(e, r, n);
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
-
var
|
|
145
|
-
const n =
|
|
144
|
+
function V(t) {
|
|
145
|
+
var r;
|
|
146
|
+
const n = d(t), o = t ? y(
|
|
146
147
|
n,
|
|
147
|
-
a(
|
|
148
|
+
a(l) ? a(m) : void 0,
|
|
148
149
|
e.formatBegins
|
|
149
150
|
) : null;
|
|
150
|
-
(
|
|
151
|
+
(r = e.onOk) == null || r.call(e, o);
|
|
151
152
|
}
|
|
152
|
-
return (t, n) => t.mode === "read" ? (
|
|
153
|
-
P(
|
|
154
|
-
], 64)) : (
|
|
153
|
+
return (t, n) => t.mode === "read" ? (s(), g(k, { key: 0 }, [
|
|
154
|
+
w(P(v.value ? a(d)(v.value).format(m.value) : t.emptyText), 1)
|
|
155
|
+
], 64)) : (s(), h(a(W), {
|
|
155
156
|
key: 1,
|
|
156
157
|
compact: "",
|
|
157
|
-
style:
|
|
158
|
+
style: N({
|
|
158
159
|
display: Array.isArray(e.timezone) && e.timezone.length ? "flex" : "block"
|
|
159
160
|
})
|
|
160
161
|
}, {
|
|
161
162
|
default: f(() => [
|
|
162
|
-
Array.isArray(e.timezone) && e.timezone.length ? (
|
|
163
|
+
Array.isArray(e.timezone) && e.timezone.length ? (s(), h(a(Y), {
|
|
163
164
|
key: 0,
|
|
164
|
-
value: a(
|
|
165
|
-
"onUpdate:value": n[0] || (n[0] = (o) =>
|
|
165
|
+
value: a(i),
|
|
166
|
+
"onUpdate:value": n[0] || (n[0] = (o) => U(i) ? i.value = o : null),
|
|
166
167
|
"default-active-first-option": "",
|
|
167
168
|
"dropdown-match-select-width": !1,
|
|
168
169
|
style: { "max-width": "50%" }
|
|
169
170
|
}, {
|
|
170
171
|
default: f(() => [
|
|
171
|
-
(
|
|
172
|
+
(s(!0), g(k, null, C(e.timezone, (o) => (s(), h(a(Z), {
|
|
172
173
|
key: o == null ? void 0 : o.value,
|
|
173
174
|
value: o == null ? void 0 : o.value
|
|
174
175
|
}, {
|
|
175
176
|
default: f(() => [
|
|
176
|
-
P(
|
|
177
|
+
w(P((o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)), 1)
|
|
177
178
|
]),
|
|
178
179
|
_: 2
|
|
179
180
|
}, 1032, ["value"]))), 128))
|
|
180
181
|
]),
|
|
181
182
|
_: 1
|
|
182
|
-
}, 8, ["value"])) :
|
|
183
|
-
|
|
183
|
+
}, 8, ["value"])) : j("", !0),
|
|
184
|
+
I(a(q), H(M.value, {
|
|
184
185
|
value: v.value,
|
|
185
|
-
format:
|
|
186
|
-
picker:
|
|
187
|
-
"onUpdate:value":
|
|
188
|
-
onChange:
|
|
189
|
-
onOk:
|
|
190
|
-
}),
|
|
191
|
-
|
|
192
|
-
name:
|
|
186
|
+
format: A.value,
|
|
187
|
+
picker: R.value,
|
|
188
|
+
"onUpdate:value": D,
|
|
189
|
+
onChange: x,
|
|
190
|
+
onOk: V
|
|
191
|
+
}), K({ _: 2 }, [
|
|
192
|
+
C(t.$slots, (o, r) => ({
|
|
193
|
+
name: r,
|
|
193
194
|
fn: f((p) => [
|
|
194
|
-
|
|
195
|
+
$(t.$slots, r, G(L(p || {})))
|
|
195
196
|
])
|
|
196
197
|
}))
|
|
197
198
|
]), 1040, ["value", "format", "picker"])
|
|
@@ -201,5 +202,5 @@ const ve = /* @__PURE__ */ x({
|
|
|
201
202
|
}
|
|
202
203
|
});
|
|
203
204
|
export {
|
|
204
|
-
|
|
205
|
+
ye as default
|
|
205
206
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type OmitValue<T> = Omit<T, 'value' | 'defaultValue' | 'onChange' | 'mode' | 'format'>;
|
|
2
|
-
export type ApFormatPresetType = 'Y' | 'Y-M' | 'Y-D' | 'Y-h' | 'Y-m' | 'Y-s';
|
|
2
|
+
export type ApFormatPresetType = 'Y' | 'Y-Q' | 'Y-M' | 'Y-W' | 'Y-D' | 'Y-h' | 'Y-m' | 'Y-s';
|