@mobileaction/action-kit 1.59.0-beta.20260809144416 → 1.59.0-beta.20260811115722
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/dist/action-kit.mjs +128 -124
- package/dist/{annotations-B5lA-0pY.js → annotations-Dq0R03KN.js} +1 -1
- package/dist/components/country-select/index.vue.d.ts +2 -2
- package/dist/components/input-2/currency-input/MaCurrencyInput.vue.d.ts +14 -6
- package/dist/components/input-2/types.d.ts +9 -2
- package/dist/components/radio-2/card.vue.d.ts +23 -0
- package/dist/components/radio-2/composables/useRadioPresentation.d.ts +20 -0
- package/dist/components/radio-2/group.vue.d.ts +35 -0
- package/dist/components/radio-2/index.vue.d.ts +23 -0
- package/dist/components/radio-2/radio-2.test.d.ts +1 -0
- package/dist/components/radio-2/stories/card.stories.d.ts +12 -0
- package/dist/components/radio-2/stories/default.stories.d.ts +11 -0
- package/dist/components/radio-2/types.d.ts +46 -0
- package/dist/components/select-2/index.vue.d.ts +14 -3
- package/dist/components/select-2/select.formwerk.test.d.ts +1 -0
- package/dist/components/select-2/stories/formwerk.stories.d.ts +21 -0
- package/dist/components/select-2/stories/formwerk.stories.test.d.ts +1 -0
- package/dist/components/select-2/types.d.ts +21 -1
- package/dist/{export-data-C5Wb7jQZ.js → export-data-CuJ9ReXe.js} +1 -1
- package/dist/{exporting-BM-HqHVT.js → exporting-nc_6q0_V.js} +1 -1
- package/dist/{funnel-UT9H_vvC.js → funnel-r_ZJQIit.js} +1 -1
- package/dist/{index-B6cXk0VH.js → index-R-P7pjTo.js} +8980 -8709
- package/dist/index.d.ts +4 -0
- package/dist/{map-DA3zc2Ri.js → map-UbK2XIIQ.js} +1 -1
- package/dist/{offline-exporting-DqqHzP7s.js → offline-exporting-D9Wo2Izw.js} +1 -1
- package/dist/{stock-DQ0iL05g.js → stock-CRh0Zz5Q.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{venn-B7KM-fLV.js → venn-1c_wgmIa.js} +1 -1
- package/dist/{wordcloud-D577R1W_.js → wordcloud-XHYbLvqw.js} +1 -1
- package/package.json +1 -1
package/dist/action-kit.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e, j as
|
|
1
|
+
import { e, j as o, k as t, z as M, A as i, a as n, b as c, c as r, d as p, f as l, B as b, h as u, i as S, l as T, m as d, n as m, o as I, C, p as y, q as g, r as P, s as A, t as B, D as h, u as z, v, w as D, L as O, x as R, _ as w, y as L, E as k, M as E, F as x, G as _, H as N, I as f, J as F, K, N as G, O as V, P as H, Q as U, R as W, S as J, T as j, U as q, V as Q, W as Z, X, Y, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as oa, a3 as ta, a4 as Ma, a5 as ia, a6 as na, a7 as ca, a8 as ra, a9 as pa, aa as la, ab as ba, ac as ua, ad as Sa, ae as Ta, af as da, ag as ma, ah as Ia, ai as Ca, aj as ya, ak as ga, al as Pa, am as Aa, an as Ba, ao as ha, ap as za, aq as va, ar as Da, as as Oa, at as Ra, au as wa, av as La, aw as ka, ax as Ea, ay as xa, az as _a, aA as Na, aB as fa, aC as Fa, aD as Ka, aE as Ga, aF as Va, aG as Ha, aH as Ua, aI as Wa, aJ as Ja, aK as ja, aL as qa, aM as Qa, aN as Za, aO as Xa, aP as Ya, aQ as $a, aR as as, aS as ss, aT as es, aU as os, aV as ts, aW as Ms, aX as is, aY as ns, aZ as cs, a_ as rs, a$ as ps, b0 as ls, b1 as bs, b2 as us, b3 as Ss, b4 as Ts, b5 as ds, b6 as ms, b7 as Is, b8 as Cs, b9 as ys, ba as gs, bb as Ps, bc as As, bd as Bs, be as hs, bf as zs, bg as vs, bh as Ds, bi as Os, bj as Rs, bk as ws, bl as Ls, bm as ks, bn as Es, bo as xs, bp as _s, bq as Ns, br as fs, bs as Fs, bt as Ks, bu as Gs, bv as Vs, bw as Hs, bx as Us, by as Ws, bz as Js, bA as js, bB as qs, bC as Qs, bD as Zs, bE as Xs, bF as Ys, bG as $s, bH as ae, bI as se, bJ as ee, bK as oe, bL as te, bM as Me, bN as ie, bO as ne, bP as ce, bQ as re, bR as pe, bS as le, bT as be, bU as ue, bV as Se, bW as Te, bX as de, bY as me, bZ as Ie, b_ as Ce, b$ as ye, c0 as ge, c1 as Pe, c2 as Ae, c3 as Be, c4 as he, c5 as ze, c6 as ve, c7 as De, c8 as Oe, c9 as Re, ca as we, cb as Le, cc as ke, cd as Ee, ce as xe, cf as _e, cg as Ne, ch as fe, ci as Fe, cj as Ke, ck as Ge, cl as Ve, cm as He, cn as Ue, co as We, cp as Je, cq as je, cr as qe, cs as Qe, ct as Ze, cu as Xe, cv as Ye, cw as $e, cx as ao, cy as so, cz as eo, cA as oo, cB as to, cC as Mo, cD as io, cE as no, cF as co, cG as ro, cH as po, cI as lo, cJ as bo, cK as uo, cL as So, cM as To, cN as mo, cO as Io, cP as Co, cQ as yo, cR as go, cS as Po } from "./index-R-P7pjTo.js";
|
|
2
2
|
export * from "@formwerk/core";
|
|
3
|
-
import { SelectOptGroup as
|
|
3
|
+
import { SelectOptGroup as ho } from "ant-design-vue";
|
|
4
4
|
export {
|
|
5
5
|
e as ACTION_KIT_LOCALE_EN,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
o as ACTION_KIT_LOCALE_JA,
|
|
7
|
+
t as ACTION_KIT_LOCALE_KO,
|
|
8
8
|
M as ACTION_KIT_LOCALE_ZH,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
i as ASSETS,
|
|
10
|
+
n as ActionKit,
|
|
11
11
|
c as ActionKitSymbol,
|
|
12
12
|
r as Animations,
|
|
13
13
|
p as AppIconPlatforms,
|
|
@@ -30,10 +30,10 @@ export {
|
|
|
30
30
|
v as DisplayModes,
|
|
31
31
|
D as DisplayTypes,
|
|
32
32
|
O as LinkButtonColors,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
R as LinkButtonSizes,
|
|
34
|
+
w as MaActionSheet,
|
|
35
|
+
L as MaActionSheetItem,
|
|
36
|
+
k as MaAlert,
|
|
37
37
|
E as MaAlertSizeList,
|
|
38
38
|
x as MaAlertTypeList,
|
|
39
39
|
_ as MaAlertVariantList,
|
|
@@ -49,19 +49,19 @@ export {
|
|
|
49
49
|
J as MaBadgeShape,
|
|
50
50
|
j as MaBreadcrumb,
|
|
51
51
|
q as MaBreadcrumbItem,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
Q as MaBreadcrumbSeparators,
|
|
53
|
+
Z as MaButton,
|
|
54
54
|
X as MaCard,
|
|
55
55
|
Y as MaCardAlignments,
|
|
56
56
|
$ as MaCardIconColors,
|
|
57
57
|
aa as MaCardSizes,
|
|
58
58
|
sa as MaCascader,
|
|
59
59
|
ea as MaChart,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
oa as MaChatbot,
|
|
61
|
+
ta as MaChatbotSymbol,
|
|
62
62
|
Ma as MaCheckbox,
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
ia as MaCheckbox2,
|
|
64
|
+
na as MaCheckbox2Card,
|
|
65
65
|
ca as MaCheckbox2Group,
|
|
66
66
|
ra as MaCheckboxGroup,
|
|
67
67
|
pa as MaCollapse,
|
|
@@ -84,10 +84,10 @@ export {
|
|
|
84
84
|
va as MaDrawer,
|
|
85
85
|
Da as MaDropdown,
|
|
86
86
|
Oa as MaDropdownPlacements,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
Ra as MaDropdownTriggers,
|
|
88
|
+
wa as MaEllipsis,
|
|
89
|
+
La as MaEmpty,
|
|
90
|
+
ka as MaEmptyIcons,
|
|
91
91
|
Ea as MaEmptySizes,
|
|
92
92
|
xa as MaEmptyVariants,
|
|
93
93
|
_a as MaFlagIconRatios,
|
|
@@ -103,19 +103,19 @@ export {
|
|
|
103
103
|
Ja as MaIconSizeClassNames,
|
|
104
104
|
ja as MaIconSizes,
|
|
105
105
|
qa as MaImage2,
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
Qa as MaImageGroup2,
|
|
107
|
+
Za as MaImagePreview,
|
|
108
108
|
Xa as MaInput,
|
|
109
109
|
Ya as MaInputBase,
|
|
110
110
|
$a as MaInputBaseSizes,
|
|
111
111
|
as as MaInputCurrencies,
|
|
112
112
|
ss as MaInputNumber,
|
|
113
113
|
es as MaInputSizes,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
os as MaInputTypes,
|
|
115
|
+
ts as MaKeywordInput,
|
|
116
116
|
Ms as MaLinkButton,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
is as MaMenu,
|
|
118
|
+
ns as MaMenuButtonPropSizes,
|
|
119
119
|
cs as MaMenuItem,
|
|
120
120
|
rs as MaModal,
|
|
121
121
|
ps as MaModal2,
|
|
@@ -137,102 +137,106 @@ export {
|
|
|
137
137
|
zs as MaProgressPercentAlignments,
|
|
138
138
|
vs as MaProgressTypes,
|
|
139
139
|
Ds as MaRadio,
|
|
140
|
-
Os as
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
Es as
|
|
146
|
-
xs as
|
|
147
|
-
_s as
|
|
148
|
-
Ns as
|
|
149
|
-
fs as
|
|
150
|
-
Fs as
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Us as
|
|
157
|
-
Ws as
|
|
158
|
-
Js as
|
|
159
|
-
js as
|
|
160
|
-
qs as
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
Xs as
|
|
164
|
-
Ys as
|
|
165
|
-
$s as
|
|
166
|
-
ae as
|
|
167
|
-
se as
|
|
168
|
-
ee as
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
Me as
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
ce as
|
|
175
|
-
re as
|
|
176
|
-
pe as
|
|
177
|
-
le as
|
|
178
|
-
be as
|
|
179
|
-
ue as
|
|
180
|
-
Se as
|
|
181
|
-
Te as
|
|
182
|
-
de as
|
|
183
|
-
me as
|
|
184
|
-
Ie as
|
|
185
|
-
Ce as
|
|
186
|
-
ye as
|
|
187
|
-
ge as
|
|
188
|
-
Pe as
|
|
189
|
-
Ae as
|
|
190
|
-
Be as
|
|
191
|
-
he as
|
|
192
|
-
ze as
|
|
193
|
-
ve as
|
|
194
|
-
De as
|
|
195
|
-
Oe as
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Ee as
|
|
201
|
-
xe as
|
|
202
|
-
_e as
|
|
203
|
-
Ne as
|
|
204
|
-
fe as
|
|
205
|
-
Fe as
|
|
206
|
-
Ke as
|
|
207
|
-
Ge as
|
|
208
|
-
Ve as
|
|
209
|
-
He as
|
|
210
|
-
Ue as
|
|
211
|
-
We as
|
|
212
|
-
Je as
|
|
213
|
-
je as
|
|
214
|
-
qe as
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
Xe as
|
|
218
|
-
Ye as
|
|
219
|
-
$e as
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
140
|
+
Os as MaRadio2,
|
|
141
|
+
Rs as MaRadio2Group,
|
|
142
|
+
ws as MaRadio2Sizes,
|
|
143
|
+
Ls as MaRadioCard,
|
|
144
|
+
ks as MaRadioCard2,
|
|
145
|
+
Es as MaRadioGroup,
|
|
146
|
+
xs as MaRadioTypes,
|
|
147
|
+
_s as MaRate,
|
|
148
|
+
Ns as MaRateColors,
|
|
149
|
+
fs as MaRateSizes,
|
|
150
|
+
Fs as MaResult,
|
|
151
|
+
Ks as MaSelect,
|
|
152
|
+
Gs as MaSelect2,
|
|
153
|
+
Vs as MaSelect2Option,
|
|
154
|
+
Hs as MaSelect2OptionGroup,
|
|
155
|
+
ho as MaSelectOptGroup,
|
|
156
|
+
Us as MaSelectOption,
|
|
157
|
+
Ws as MaSideMenuAddNewAppButton,
|
|
158
|
+
Js as MaSideMenuAppButton,
|
|
159
|
+
js as MaSideMenuButton,
|
|
160
|
+
qs as MaSideMenuButton2,
|
|
161
|
+
Qs as MaSideMenuIconButton,
|
|
162
|
+
Zs as MaSideMenuItem,
|
|
163
|
+
Xs as MaSideMenuItem2,
|
|
164
|
+
Ys as MaSideMenuItemColors,
|
|
165
|
+
$s as MaSideMenuRoundIconButton,
|
|
166
|
+
ae as MaSlider,
|
|
167
|
+
se as MaSocialButton,
|
|
168
|
+
ee as MaSpin,
|
|
169
|
+
oe as MaSpinColors,
|
|
170
|
+
te as MaSpinSizes,
|
|
171
|
+
Me as MaSpinTypes,
|
|
172
|
+
ie as MaStep,
|
|
173
|
+
ne as MaStepItem,
|
|
174
|
+
ce as MaStepItems,
|
|
175
|
+
re as MaStepSizes,
|
|
176
|
+
pe as MaSteps,
|
|
177
|
+
le as MaStepsDirections,
|
|
178
|
+
be as MaSwitch,
|
|
179
|
+
ue as MaTabButton2,
|
|
180
|
+
Se as MaTabIconAlignMents,
|
|
181
|
+
Te as MaTabPane,
|
|
182
|
+
de as MaTabPane2,
|
|
183
|
+
me as MaTabPanePlacements,
|
|
184
|
+
Ie as MaTabPositions,
|
|
185
|
+
Ce as MaTabTypes,
|
|
186
|
+
ye as MaTabs,
|
|
187
|
+
ge as MaTabs2,
|
|
188
|
+
Pe as MaTabsSizes,
|
|
189
|
+
Ae as MaTabsTypes,
|
|
190
|
+
Be as MaTagInput,
|
|
191
|
+
he as MaTextInput,
|
|
192
|
+
ze as MaTextarea,
|
|
193
|
+
ve as MaToggle,
|
|
194
|
+
De as MaTooltip,
|
|
195
|
+
Oe as MaTooltip2,
|
|
196
|
+
Re as MaTrackButton,
|
|
197
|
+
we as MaTree,
|
|
198
|
+
Le as MaTypography,
|
|
199
|
+
ke as MaUpload,
|
|
200
|
+
Ee as MaUploadFileStatus,
|
|
201
|
+
xe as MaUploadSizes,
|
|
202
|
+
_e as MaUploadTypes,
|
|
203
|
+
Ne as MaWatchlistButton,
|
|
204
|
+
fe as ModalManager,
|
|
205
|
+
Fe as ModalPositions,
|
|
206
|
+
Ke as MultiSelectOptionCheckbox,
|
|
207
|
+
Ge as MultiSelectOptions,
|
|
208
|
+
Ve as NumericInputSizes,
|
|
209
|
+
He as PageTypes,
|
|
210
|
+
Ue as Popconfirm2Variants,
|
|
211
|
+
We as Popover2Placements,
|
|
212
|
+
Je as Popover2TriggerTypes,
|
|
213
|
+
je as SCALE_FACTORS,
|
|
214
|
+
qe as SearchResultsDisplayTypes,
|
|
215
|
+
Qe as SelectModes,
|
|
216
|
+
Ze as SelectOptionTypeRadio,
|
|
217
|
+
Xe as SelectOptionTypes,
|
|
218
|
+
Ye as SelectSizes,
|
|
219
|
+
$e as SocialButtonBrands,
|
|
220
|
+
ao as SocialButtonVariants,
|
|
221
|
+
so as SwitchTypes,
|
|
222
|
+
eo as ToggleSizes,
|
|
223
|
+
oo as Tooltip2Types,
|
|
224
|
+
to as TooltipPlacements,
|
|
225
|
+
Mo as TooltipTriggerTypes,
|
|
226
|
+
io as TooltipTypes,
|
|
227
|
+
no as TrackButtonSizes,
|
|
228
|
+
co as TreeModes,
|
|
229
|
+
ro as TypographyTags,
|
|
230
|
+
po as TypographyTypes,
|
|
231
|
+
lo as TypographyWeights,
|
|
232
|
+
bo as createMaChatbot,
|
|
233
|
+
uo as currencyOptions,
|
|
234
|
+
So as currencySymbols,
|
|
235
|
+
To as loadIcon,
|
|
236
|
+
mo as maChartDefaultOptions,
|
|
237
|
+
Io as maCountry,
|
|
238
|
+
Co as modalManager,
|
|
239
|
+
yo as useActionKit,
|
|
240
|
+
go as useMaChatbot,
|
|
241
|
+
Po as useModal
|
|
238
242
|
};
|
|
@@ -31,13 +31,13 @@ declare const __VLS_component: import("vue").DefineComponent<MaCountrySelectProp
|
|
|
31
31
|
size: MaSelectSize;
|
|
32
32
|
multiple: boolean;
|
|
33
33
|
showSearch: boolean;
|
|
34
|
+
dropdownClassName: string;
|
|
34
35
|
listHeight: number;
|
|
36
|
+
dropdownMatchSelectWidth: boolean;
|
|
35
37
|
showSelectedCountryCode: boolean;
|
|
36
38
|
iconRound: boolean;
|
|
37
39
|
iconRatio: MaFlagIconRatio;
|
|
38
|
-
dropdownClassName: string;
|
|
39
40
|
badgeProps: MaBadgeProps;
|
|
40
|
-
dropdownMatchSelectWidth: boolean;
|
|
41
41
|
countries: MaCountry[];
|
|
42
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { MaCurrencyInputProps } from '../types';
|
|
2
|
-
type __VLS_Props = MaCurrencyInputProps;
|
|
3
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
-
modelValue?: number | null;
|
|
5
|
-
};
|
|
6
2
|
declare var __VLS_12: {}, __VLS_14: {}, __VLS_16: {};
|
|
7
3
|
type __VLS_Slots = {} & {
|
|
8
4
|
suffix?: (props: typeof __VLS_12) => any;
|
|
@@ -11,20 +7,32 @@ type __VLS_Slots = {} & {
|
|
|
11
7
|
} & {
|
|
12
8
|
addonAfter?: (props: typeof __VLS_16) => any;
|
|
13
9
|
};
|
|
14
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<MaCurrencyInputProps, {
|
|
15
11
|
focus: () => void;
|
|
16
12
|
blur: () => void;
|
|
13
|
+
/** Formwerk field id — pass to MaFormItem2's `labelFor` to link the label. */
|
|
14
|
+
controlId: string;
|
|
15
|
+
errorMessage: import("vue").Ref<string, string>;
|
|
16
|
+
errors: import("vue").Ref<string[], string[]>;
|
|
17
|
+
isDirty: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
isTouched: import("vue").Ref<boolean, boolean>;
|
|
19
|
+
isValid: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
setErrors: (messages: import("@formwerk/core").Arrayable<string>) => void;
|
|
21
|
+
setTouched: (touched: boolean) => void;
|
|
22
|
+
setValue: (value: number) => void;
|
|
23
|
+
validate: (mutate?: boolean) => Promise<import("@formwerk/core").ValidationResult>;
|
|
17
24
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
25
|
clear: () => any;
|
|
19
26
|
blur: (event: FocusEvent) => any;
|
|
20
27
|
focus: (event: FocusEvent) => any;
|
|
21
28
|
"update:modelValue": (value: number) => any;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<MaCurrencyInputProps> & Readonly<{
|
|
23
30
|
onClear?: () => any;
|
|
24
31
|
onBlur?: (event: FocusEvent) => any;
|
|
25
32
|
onFocus?: (event: FocusEvent) => any;
|
|
26
33
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
27
34
|
}>, {
|
|
35
|
+
label: string;
|
|
28
36
|
size: import("..").MaInputBaseSize;
|
|
29
37
|
disabled: boolean;
|
|
30
38
|
readonly: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextFieldProps } from '@formwerk/core';
|
|
1
|
+
import type { NumberFieldProps, TextFieldProps } from '@formwerk/core';
|
|
2
2
|
export declare const MaInputBaseSizes: {
|
|
3
3
|
readonly sm: "sm";
|
|
4
4
|
readonly md: "md";
|
|
@@ -39,9 +39,16 @@ export interface MaInputExpose {
|
|
|
39
39
|
focus: () => void;
|
|
40
40
|
blur: () => void;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
/**
|
|
43
|
+
* `label` is dropped from formwerk's props and redeclared optional, as on
|
|
44
|
+
* MaTextInput. `formatOptions` is dropped because `currency` and `locale` derive
|
|
45
|
+
* it — accepting both would let the two disagree.
|
|
46
|
+
*/
|
|
47
|
+
export interface MaCurrencyInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'>, Omit<NumberFieldProps, 'label' | 'formatOptions'> {
|
|
43
48
|
/** Custom id for the native input element. Auto-generated if not provided. */
|
|
44
49
|
id?: string;
|
|
50
|
+
/** Accessible label. Applied as `aria-label` since the input renders no label element. */
|
|
51
|
+
label?: string;
|
|
45
52
|
/** Native autocomplete hint for browser autofill behavior (e.g. 'off', 'email', 'new-password'). */
|
|
46
53
|
autocomplete?: string;
|
|
47
54
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MaRadio2CardProps } from './types';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/** Card body, replacing the label text. */
|
|
4
|
+
default?: () => unknown;
|
|
5
|
+
/** Secondary text under the label. */
|
|
6
|
+
hintText?: () => unknown;
|
|
7
|
+
/** Trailing content, e.g. a price or badge. */
|
|
8
|
+
suffix?: () => unknown;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<MaRadio2CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaRadio2CardProps> & Readonly<{}>, {
|
|
11
|
+
label: string;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
hasError: boolean;
|
|
15
|
+
hintText: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import type { MaRadio2Size } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Presentation-only context. Formwerk's own radio group already carries value,
|
|
5
|
+
* name, selection and disabled state — this exists solely so a group can cascade
|
|
6
|
+
* look-and-feel (size, error styling) down to its radios, which formwerk has no
|
|
7
|
+
* opinion about.
|
|
8
|
+
*/
|
|
9
|
+
export interface MaRadio2PresentationContext {
|
|
10
|
+
hasError: ComputedRef<boolean>;
|
|
11
|
+
size: ComputedRef<MaRadio2Size>;
|
|
12
|
+
}
|
|
13
|
+
export declare const MaRadio2PresentationKey: InjectionKey<MaRadio2PresentationContext>;
|
|
14
|
+
export declare function useRadioPresentation(props: {
|
|
15
|
+
hasError?: boolean;
|
|
16
|
+
size?: MaRadio2Size;
|
|
17
|
+
}): {
|
|
18
|
+
effectiveHasError: ComputedRef<boolean>;
|
|
19
|
+
effectiveSize: ComputedRef<"small" | "medium">;
|
|
20
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { MaRadio2GroupProps } from './types';
|
|
2
|
+
declare var __VLS_4: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_4) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<MaRadio2GroupProps, {
|
|
7
|
+
groupId: string;
|
|
8
|
+
fieldValue: import("vue").Ref<string | number, string | number>;
|
|
9
|
+
errorMessage: import("vue").Ref<string, string>;
|
|
10
|
+
errors: import("vue").Ref<string[], string[]>;
|
|
11
|
+
isDirty: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
isTouched: import("vue").Ref<boolean, boolean>;
|
|
13
|
+
isValid: import("vue").Ref<boolean, boolean>;
|
|
14
|
+
setErrors: (messages: import("@formwerk/core").Arrayable<string>) => void;
|
|
15
|
+
setTouched: (touched: boolean) => void;
|
|
16
|
+
setValue: (value: string | number) => void;
|
|
17
|
+
validate: (mutate?: boolean) => Promise<import("@formwerk/core").ValidationResult>;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: string | number) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<MaRadio2GroupProps> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
22
|
+
}>, {
|
|
23
|
+
label: string;
|
|
24
|
+
size: import("./types").MaRadio2Size;
|
|
25
|
+
options: (string | import("./types").MaRadio2GroupOption)[];
|
|
26
|
+
hasError: boolean;
|
|
27
|
+
orientation: import("@formwerk/core").Orientation;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MaRadio2Props } from './types';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Customized label area
|
|
5
|
+
*/
|
|
6
|
+
default?: () => unknown;
|
|
7
|
+
/**
|
|
8
|
+
* Hint text area
|
|
9
|
+
*/
|
|
10
|
+
hintText?: () => unknown;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<MaRadio2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaRadio2Props> & Readonly<{}>, {
|
|
13
|
+
label: string;
|
|
14
|
+
hasError: boolean;
|
|
15
|
+
hintText: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { MaRadioCard2 as MaRadioCard } from '@/index';
|
|
3
|
+
declare const meta: Meta<typeof MaRadioCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MaRadioCard>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithSuffix: Story;
|
|
8
|
+
export declare const States: Story;
|
|
9
|
+
/**
|
|
10
|
+
* The whole point of the rewrite: cards that register with a form by `name`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const InAForm: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { MaRadio2Group as MaRadioGroup } from '@/index';
|
|
3
|
+
declare const meta: Meta<typeof MaRadioGroup>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MaRadioGroup>;
|
|
6
|
+
export declare const WithStringOptions: Story;
|
|
7
|
+
export declare const WithObjectOptions: Story;
|
|
8
|
+
export declare const Horizontal: Story;
|
|
9
|
+
export declare const Sizes: Story;
|
|
10
|
+
export declare const WithSlottedRadios: Story;
|
|
11
|
+
export declare const States: Story;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { RadioGroupProps, RadioProps } from '@formwerk/core';
|
|
2
|
+
export declare const MaRadio2Sizes: readonly ["small", "medium"];
|
|
3
|
+
export type MaRadio2Size = (typeof MaRadio2Sizes)[number];
|
|
4
|
+
export interface MaRadio2GroupOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hintText?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* `label` and `value` are dropped from formwerk's props and redeclared optional:
|
|
12
|
+
* formwerk marks both required, but MaRadio2 takes its label from the default
|
|
13
|
+
* slot, and a card can be rendered for display without a value.
|
|
14
|
+
*/
|
|
15
|
+
export interface MaRadio2Props extends Partial<Omit<RadioProps<string | number>, 'label' | 'value'>> {
|
|
16
|
+
/** Value this radio contributes to its group when selected. */
|
|
17
|
+
value?: string | number;
|
|
18
|
+
/** Accessible label. Falls back to the default slot's content. */
|
|
19
|
+
label?: string;
|
|
20
|
+
/** Error state. Inherited from the group when not set. */
|
|
21
|
+
hasError?: boolean;
|
|
22
|
+
/** Secondary text rendered beneath the label. */
|
|
23
|
+
hintText?: string;
|
|
24
|
+
/** Size variant. Inherited from the group when not set. @default 'small' */
|
|
25
|
+
size?: MaRadio2Size;
|
|
26
|
+
}
|
|
27
|
+
export interface MaRadio2CardProps extends MaRadio2Props {
|
|
28
|
+
/** Card width. @default '250px' */
|
|
29
|
+
width?: string;
|
|
30
|
+
/** Card height. @default '100px' */
|
|
31
|
+
height?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* `label` is dropped and redeclared optional, as on MaRadio2 — formwerk requires
|
|
35
|
+
* it, but the group can be labelled by a surrounding MaFormItem2 instead.
|
|
36
|
+
*/
|
|
37
|
+
export interface MaRadio2GroupProps extends Omit<RadioGroupProps<string | number>, 'label'> {
|
|
38
|
+
/** Accessible label for the group. */
|
|
39
|
+
label?: string;
|
|
40
|
+
/** Options to render. Strings are expanded to `{ label, value }`. */
|
|
41
|
+
options?: (string | MaRadio2GroupOption)[];
|
|
42
|
+
/** Puts every radio in the group into the error state. */
|
|
43
|
+
hasError?: boolean;
|
|
44
|
+
/** Size variant applied to every radio in the group. @default 'small' */
|
|
45
|
+
size?: MaRadio2Size;
|
|
46
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MaSelectProps, MaSelectSlots, MaSelectValue } from './types';
|
|
1
|
+
import type { MaSelectOptionValue, MaSelectProps, MaSelectSlots, MaSelectValue } from './types';
|
|
2
2
|
type __VLS_Props = MaSelectProps;
|
|
3
3
|
type __VLS_Slots = MaSelectSlots;
|
|
4
4
|
type __VLS_PublicProps = __VLS_Props & {
|
|
@@ -7,6 +7,17 @@ type __VLS_PublicProps = __VLS_Props & {
|
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
9
9
|
setSearchValue: (value?: string) => string;
|
|
10
|
+
/** Formwerk field id — pass to MaFormItem2's `labelFor` to link the label. */
|
|
11
|
+
controlId: string;
|
|
12
|
+
errorMessage: import("vue").Ref<string, string>;
|
|
13
|
+
errors: import("vue").Ref<string[], string[]>;
|
|
14
|
+
isDirty: import("vue").Ref<boolean, boolean>;
|
|
15
|
+
isTouched: import("vue").Ref<boolean, boolean>;
|
|
16
|
+
isValid: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
setErrors: (messages: import("@formwerk/core").Arrayable<string>) => void;
|
|
18
|
+
setTouched: (touched: boolean) => void;
|
|
19
|
+
setValue: (value: import("@formwerk/core").Arrayable<MaSelectOptionValue>) => void;
|
|
20
|
+
validate: (mutate?: boolean) => Promise<import("@formwerk/core").ValidationResult>;
|
|
10
21
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
22
|
change: (value: MaSelectValue) => any;
|
|
12
23
|
"update:value": (value: MaSelectValue) => any;
|
|
@@ -30,11 +41,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
30
41
|
allowClear: boolean;
|
|
31
42
|
showSearch: boolean;
|
|
32
43
|
listHeight: number;
|
|
33
|
-
dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
|
|
34
44
|
dropdownMatchSelectWidth: boolean;
|
|
45
|
+
dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
|
|
35
46
|
checkboxPosition: import("./types").MaSelectOptionCheckboxPosition;
|
|
36
|
-
hideCheckIcon: boolean;
|
|
37
47
|
multiSelectionInput: import("./types").MaSelectMultiSelectionInput;
|
|
48
|
+
hideCheckIcon: boolean;
|
|
38
49
|
compact: boolean;
|
|
39
50
|
hideSuffix: boolean;
|
|
40
51
|
disableKeywordActions: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { MaSelect2 as MaSelect } from '@/index';
|
|
3
|
+
declare const meta: Meta<typeof MaSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MaSelect>;
|
|
6
|
+
/**
|
|
7
|
+
* A standalone field: no surrounding form, validation driven purely by `schema`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WithSchema: Story;
|
|
10
|
+
/**
|
|
11
|
+
* The real use case: a select inside a form, registered by `name`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const InAForm: Story;
|
|
14
|
+
/**
|
|
15
|
+
* Multi-select registers an array, so the schema validates the array.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MultipleInAForm: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Two fields in one form, to show values collecting under their own names.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AlongsideOtherFields: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|