@mobileaction/action-kit 1.59.0-beta.20260811115722 → 1.59.0-beta.20260819122907
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 +132 -137
- package/dist/{annotations-Dq0R03KN.js → annotations-B_NsgIXL.js} +1 -1
- package/dist/components/card/stories/nested-prop-usages.stories.d.ts +10 -0
- package/dist/components/country-select/index.vue.d.ts +2 -2
- package/dist/components/input-2/currency-input/MaCurrencyInput.vue.d.ts +6 -14
- package/dist/components/input-2/stories/MaTextInput.stories.d.ts +0 -20
- package/dist/components/input-2/text-input/MaTextInput.vue.d.ts +6 -16
- package/dist/components/input-2/types.d.ts +6 -11
- package/dist/components/select-2/index.vue.d.ts +3 -14
- package/dist/components/select-2/types.d.ts +1 -21
- package/dist/components/table/stories/nested-prop-usages.stories.d.ts +15 -0
- package/dist/{export-data-CuJ9ReXe.js → export-data-C-0lVbXZ.js} +1 -1
- package/dist/{exporting-nc_6q0_V.js → exporting-HiPd_Aj9.js} +1 -1
- package/dist/{funnel-r_ZJQIit.js → funnel-87npqEfw.js} +1 -1
- package/dist/{index-R-P7pjTo.js → index-ghyOcftA.js} +9227 -9531
- package/dist/index.d.ts +0 -5
- package/dist/{map-UbK2XIIQ.js → map-BviMasdu.js} +1 -1
- package/dist/{offline-exporting-D9Wo2Izw.js → offline-exporting-CTD4gQQc.js} +1 -1
- package/dist/{stock-CRh0Zz5Q.js → stock-Ed1ICxL3.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/table.css +9 -3
- package/dist/{venn-1c_wgmIa.js → venn-DbXKBj7V.js} +1 -1
- package/dist/{wordcloud-XHYbLvqw.js → wordcloud-Br0Z7XnF.js} +1 -1
- package/package.json +2 -7
- package/dist/components/input-2/stories/MaTextInput.stories.test.d.ts +0 -1
- package/dist/components/input-2/text-input/MaTextInput.formwerk.test.d.ts +0 -1
- package/dist/components/radio-2/card.vue.d.ts +0 -23
- package/dist/components/radio-2/composables/useRadioPresentation.d.ts +0 -20
- package/dist/components/radio-2/group.vue.d.ts +0 -35
- package/dist/components/radio-2/index.vue.d.ts +0 -23
- package/dist/components/radio-2/radio-2.test.d.ts +0 -1
- package/dist/components/radio-2/stories/card.stories.d.ts +0 -12
- package/dist/components/radio-2/stories/default.stories.d.ts +0 -11
- package/dist/components/radio-2/types.d.ts +0 -46
- package/dist/components/select-2/select.formwerk.test.d.ts +0 -1
- package/dist/components/select-2/stories/formwerk.stories.d.ts +0 -21
- package/dist/components/select-2/stories/formwerk.stories.test.d.ts +0 -1
package/dist/action-kit.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { e, j as
|
|
2
|
-
|
|
3
|
-
import { SelectOptGroup as ho } from "ant-design-vue";
|
|
1
|
+
import { e, j as t, k as o, z as M, A as n, a as i, 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 w, _ as L, y as k, E as R, M as E, F as _, G as x, 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 Z, W as Q, X, Y, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as ta, a3 as oa, a4 as Ma, a5 as na, a6 as ia, 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 wa, au as La, av as ka, aw as Ra, ax as Ea, ay as _a, az as xa, 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 Za, aN as Qa, aO as Xa, aP as Ya, aQ as $a, aR as as, aS as ss, aT as es, aU as ts, aV as os, aW as Ms, aX as ns, aY as is, 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 ws, bk as Ls, bl as ks, bm as Rs, bn as Es, bo as _s, bp as xs, 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 Zs, bD as Qs, bE as Xs, bF as Ys, bG as $s, bH as ae, bI as se, bJ as ee, bK as te, bL as oe, bM as Me, bN as ne, bO as ie, 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 we, ca as Le, cb as ke, cc as Re, cd as Ee, ce as _e, cf as xe, 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 Ze, ct as Qe, cu as Xe, cv as Ye, cw as $e, cx as at, cy as st, cz as et, cA as tt, cB as ot, cC as Mt, cD as nt, cE as it, cF as ct, cG as rt, cH as pt, cI as lt, cJ as bt, cK as ut, cL as St, cM as Tt, cN as dt, cO as mt } from "./index-ghyOcftA.js";
|
|
2
|
+
import { SelectOptGroup as Ct } from "ant-design-vue";
|
|
4
3
|
export {
|
|
5
4
|
e as ACTION_KIT_LOCALE_EN,
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
t as ACTION_KIT_LOCALE_JA,
|
|
6
|
+
o as ACTION_KIT_LOCALE_KO,
|
|
8
7
|
M as ACTION_KIT_LOCALE_ZH,
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
n as ASSETS,
|
|
9
|
+
i as ActionKit,
|
|
11
10
|
c as ActionKitSymbol,
|
|
12
11
|
r as Animations,
|
|
13
12
|
p as AppIconPlatforms,
|
|
@@ -30,16 +29,16 @@ export {
|
|
|
30
29
|
v as DisplayModes,
|
|
31
30
|
D as DisplayTypes,
|
|
32
31
|
O as LinkButtonColors,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
w as LinkButtonSizes,
|
|
33
|
+
L as MaActionSheet,
|
|
34
|
+
k as MaActionSheetItem,
|
|
35
|
+
R as MaAlert,
|
|
37
36
|
E as MaAlertSizeList,
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
_ as MaAlertTypeList,
|
|
38
|
+
x as MaAlertVariantList,
|
|
40
39
|
N as MaAnimation,
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
F as MaAppIcon,
|
|
41
|
+
f as MaAppTrackButton,
|
|
43
42
|
K as MaAvatar,
|
|
44
43
|
G as MaBadge,
|
|
45
44
|
V as MaBadgePropIconAlignments,
|
|
@@ -49,19 +48,19 @@ export {
|
|
|
49
48
|
J as MaBadgeShape,
|
|
50
49
|
j as MaBreadcrumb,
|
|
51
50
|
q as MaBreadcrumbItem,
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
Z as MaBreadcrumbSeparators,
|
|
52
|
+
Q as MaButton,
|
|
54
53
|
X as MaCard,
|
|
55
54
|
Y as MaCardAlignments,
|
|
56
55
|
$ as MaCardIconColors,
|
|
57
56
|
aa as MaCardSizes,
|
|
58
57
|
sa as MaCascader,
|
|
59
58
|
ea as MaChart,
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
ta as MaChatbot,
|
|
60
|
+
oa as MaChatbotSymbol,
|
|
62
61
|
Ma as MaCheckbox,
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
na as MaCheckbox2,
|
|
63
|
+
ia as MaCheckbox2Card,
|
|
65
64
|
ca as MaCheckbox2Group,
|
|
66
65
|
ra as MaCheckboxGroup,
|
|
67
66
|
pa as MaCollapse,
|
|
@@ -84,16 +83,16 @@ export {
|
|
|
84
83
|
va as MaDrawer,
|
|
85
84
|
Da as MaDropdown,
|
|
86
85
|
Oa as MaDropdownPlacements,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
wa as MaDropdownTriggers,
|
|
87
|
+
La as MaEllipsis,
|
|
88
|
+
ka as MaEmpty,
|
|
89
|
+
Ra as MaEmptyIcons,
|
|
91
90
|
Ea as MaEmptySizes,
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
_a as MaEmptyVariants,
|
|
92
|
+
xa as MaFlagIconRatios,
|
|
94
93
|
Na as MaForm,
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
Fa as MaForm2,
|
|
95
|
+
fa as MaFormItem,
|
|
97
96
|
Ka as MaFormItem2,
|
|
98
97
|
Ga as MaFormItem2Label,
|
|
99
98
|
Va as MaFormItem2Message,
|
|
@@ -103,19 +102,19 @@ export {
|
|
|
103
102
|
Ja as MaIconSizeClassNames,
|
|
104
103
|
ja as MaIconSizes,
|
|
105
104
|
qa as MaImage2,
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
Za as MaImageGroup2,
|
|
106
|
+
Qa as MaImagePreview,
|
|
108
107
|
Xa as MaInput,
|
|
109
108
|
Ya as MaInputBase,
|
|
110
109
|
$a as MaInputBaseSizes,
|
|
111
110
|
as as MaInputCurrencies,
|
|
112
111
|
ss as MaInputNumber,
|
|
113
112
|
es as MaInputSizes,
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
ts as MaInputTypes,
|
|
114
|
+
os as MaKeywordInput,
|
|
116
115
|
Ms as MaLinkButton,
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
ns as MaMenu,
|
|
117
|
+
is as MaMenuButtonPropSizes,
|
|
119
118
|
cs as MaMenuItem,
|
|
120
119
|
rs as MaModal,
|
|
121
120
|
ps as MaModal2,
|
|
@@ -137,106 +136,102 @@ export {
|
|
|
137
136
|
zs as MaProgressPercentAlignments,
|
|
138
137
|
vs as MaProgressTypes,
|
|
139
138
|
Ds as MaRadio,
|
|
140
|
-
Os as
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
Es as
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Ns as
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
Ne as
|
|
204
|
-
|
|
205
|
-
|
|
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
|
-
|
|
238
|
-
Co as modalManager,
|
|
239
|
-
yo as useActionKit,
|
|
240
|
-
go as useMaChatbot,
|
|
241
|
-
Po as useModal
|
|
139
|
+
Os as MaRadioCard,
|
|
140
|
+
ws as MaRadioGroup,
|
|
141
|
+
Ls as MaRadioTypes,
|
|
142
|
+
ks as MaRate,
|
|
143
|
+
Rs as MaRateColors,
|
|
144
|
+
Es as MaRateSizes,
|
|
145
|
+
_s as MaResult,
|
|
146
|
+
xs as MaSelect,
|
|
147
|
+
Ns as MaSelect2,
|
|
148
|
+
Fs as MaSelect2Option,
|
|
149
|
+
fs as MaSelect2OptionGroup,
|
|
150
|
+
Ct as MaSelectOptGroup,
|
|
151
|
+
Ks as MaSelectOption,
|
|
152
|
+
Gs as MaSideMenuAddNewAppButton,
|
|
153
|
+
Vs as MaSideMenuAppButton,
|
|
154
|
+
Hs as MaSideMenuButton,
|
|
155
|
+
Us as MaSideMenuButton2,
|
|
156
|
+
Ws as MaSideMenuIconButton,
|
|
157
|
+
Js as MaSideMenuItem,
|
|
158
|
+
js as MaSideMenuItem2,
|
|
159
|
+
qs as MaSideMenuItemColors,
|
|
160
|
+
Zs as MaSideMenuRoundIconButton,
|
|
161
|
+
Qs as MaSlider,
|
|
162
|
+
Xs as MaSocialButton,
|
|
163
|
+
Ys as MaSpin,
|
|
164
|
+
$s as MaSpinColors,
|
|
165
|
+
ae as MaSpinSizes,
|
|
166
|
+
se as MaSpinTypes,
|
|
167
|
+
ee as MaStep,
|
|
168
|
+
te as MaStepItem,
|
|
169
|
+
oe as MaStepItems,
|
|
170
|
+
Me as MaStepSizes,
|
|
171
|
+
ne as MaSteps,
|
|
172
|
+
ie as MaStepsDirections,
|
|
173
|
+
ce as MaSwitch,
|
|
174
|
+
re as MaTabButton2,
|
|
175
|
+
pe as MaTabIconAlignMents,
|
|
176
|
+
le as MaTabPane,
|
|
177
|
+
be as MaTabPane2,
|
|
178
|
+
ue as MaTabPanePlacements,
|
|
179
|
+
Se as MaTabPositions,
|
|
180
|
+
Te as MaTabTypes,
|
|
181
|
+
de as MaTabs,
|
|
182
|
+
me as MaTabs2,
|
|
183
|
+
Ie as MaTabsSizes,
|
|
184
|
+
Ce as MaTabsTypes,
|
|
185
|
+
ye as MaTagInput,
|
|
186
|
+
ge as MaTextInput,
|
|
187
|
+
Pe as MaTextarea,
|
|
188
|
+
Ae as MaToggle,
|
|
189
|
+
Be as MaTooltip,
|
|
190
|
+
he as MaTooltip2,
|
|
191
|
+
ze as MaTrackButton,
|
|
192
|
+
ve as MaTree,
|
|
193
|
+
De as MaTypography,
|
|
194
|
+
Oe as MaUpload,
|
|
195
|
+
we as MaUploadFileStatus,
|
|
196
|
+
Le as MaUploadSizes,
|
|
197
|
+
ke as MaUploadTypes,
|
|
198
|
+
Re as MaWatchlistButton,
|
|
199
|
+
Ee as ModalManager,
|
|
200
|
+
_e as ModalPositions,
|
|
201
|
+
xe as MultiSelectOptionCheckbox,
|
|
202
|
+
Ne as MultiSelectOptions,
|
|
203
|
+
Fe as NumericInputSizes,
|
|
204
|
+
fe as PageTypes,
|
|
205
|
+
Ke as Popconfirm2Variants,
|
|
206
|
+
Ge as Popover2Placements,
|
|
207
|
+
Ve as Popover2TriggerTypes,
|
|
208
|
+
He as SCALE_FACTORS,
|
|
209
|
+
Ue as SearchResultsDisplayTypes,
|
|
210
|
+
We as SelectModes,
|
|
211
|
+
Je as SelectOptionTypeRadio,
|
|
212
|
+
je as SelectOptionTypes,
|
|
213
|
+
qe as SelectSizes,
|
|
214
|
+
Ze as SocialButtonBrands,
|
|
215
|
+
Qe as SocialButtonVariants,
|
|
216
|
+
Xe as SwitchTypes,
|
|
217
|
+
Ye as ToggleSizes,
|
|
218
|
+
$e as Tooltip2Types,
|
|
219
|
+
at as TooltipPlacements,
|
|
220
|
+
st as TooltipTriggerTypes,
|
|
221
|
+
et as TooltipTypes,
|
|
222
|
+
tt as TrackButtonSizes,
|
|
223
|
+
ot as TreeModes,
|
|
224
|
+
Mt as TypographyTags,
|
|
225
|
+
nt as TypographyTypes,
|
|
226
|
+
it as TypographyWeights,
|
|
227
|
+
ct as createMaChatbot,
|
|
228
|
+
rt as currencyOptions,
|
|
229
|
+
pt as currencySymbols,
|
|
230
|
+
lt as loadIcon,
|
|
231
|
+
bt as maChartDefaultOptions,
|
|
232
|
+
ut as maCountry,
|
|
233
|
+
St as modalManager,
|
|
234
|
+
Tt as useActionKit,
|
|
235
|
+
dt as useMaChatbot,
|
|
236
|
+
mt as useModal
|
|
242
237
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import MaCard from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Size: StoryFn;
|
|
6
|
+
export declare const HeaderAlignment: StoryFn;
|
|
7
|
+
export declare const IconColor: StoryFn;
|
|
8
|
+
export declare const Bordered: StoryFn;
|
|
9
|
+
export declare const NoContentPadding: StoryFn;
|
|
10
|
+
export declare const Collapse: StoryFn;
|
|
@@ -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;
|
|
35
34
|
listHeight: number;
|
|
36
|
-
dropdownMatchSelectWidth: boolean;
|
|
37
35
|
showSelectedCountryCode: boolean;
|
|
38
36
|
iconRound: boolean;
|
|
39
37
|
iconRatio: MaFlagIconRatio;
|
|
38
|
+
dropdownClassName: string;
|
|
40
39
|
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,4 +1,8 @@
|
|
|
1
1
|
import type { MaCurrencyInputProps } from '../types';
|
|
2
|
+
type __VLS_Props = MaCurrencyInputProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
modelValue?: number | null;
|
|
5
|
+
};
|
|
2
6
|
declare var __VLS_12: {}, __VLS_14: {}, __VLS_16: {};
|
|
3
7
|
type __VLS_Slots = {} & {
|
|
4
8
|
suffix?: (props: typeof __VLS_12) => any;
|
|
@@ -7,32 +11,20 @@ type __VLS_Slots = {} & {
|
|
|
7
11
|
} & {
|
|
8
12
|
addonAfter?: (props: typeof __VLS_16) => any;
|
|
9
13
|
};
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
11
15
|
focus: () => void;
|
|
12
16
|
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>;
|
|
24
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
18
|
clear: () => any;
|
|
26
19
|
blur: (event: FocusEvent) => any;
|
|
27
20
|
focus: (event: FocusEvent) => any;
|
|
28
21
|
"update:modelValue": (value: number) => any;
|
|
29
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
30
23
|
onClear?: () => any;
|
|
31
24
|
onBlur?: (event: FocusEvent) => any;
|
|
32
25
|
onFocus?: (event: FocusEvent) => any;
|
|
33
26
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
34
27
|
}>, {
|
|
35
|
-
label: string;
|
|
36
28
|
size: import("..").MaInputBaseSize;
|
|
37
29
|
disabled: boolean;
|
|
38
30
|
readonly: boolean;
|
|
@@ -7,23 +7,3 @@ export declare const Basic: Story;
|
|
|
7
7
|
export declare const WithIcon: Story;
|
|
8
8
|
export declare const Clearable: Story;
|
|
9
9
|
export declare const States: Story;
|
|
10
|
-
/**
|
|
11
|
-
* MaTextInput registers itself as a Formwerk field, so validation needs no
|
|
12
|
-
* wrapper component and no per-field composable — just props.
|
|
13
|
-
*/
|
|
14
|
-
export declare const FormwerkHtmlConstraints: Story;
|
|
15
|
-
/**
|
|
16
|
-
* Same component, validated by a Standard Schema instead of HTML attributes.
|
|
17
|
-
*/
|
|
18
|
-
export declare const FormwerkSchema: Story;
|
|
19
|
-
/**
|
|
20
|
-
* The full replacement for a vee-validate form: one `useForm`, fields that
|
|
21
|
-
* register themselves by `name`, and a submit handler that only runs when valid.
|
|
22
|
-
*/
|
|
23
|
-
export declare const FormwerkForm: Story;
|
|
24
|
-
/**
|
|
25
|
-
* Browser-generated constraint messages come out in the *browser's* language,
|
|
26
|
-
* not the app's — a real problem for a product that ships en/ja/ko/zh. Turning
|
|
27
|
-
* HTML5 validation off keeps the constraint but hands you the message.
|
|
28
|
-
*/
|
|
29
|
-
export declare const FormwerkDisableHtmlValidation: Story;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { MaTextInputProps } from '../types';
|
|
2
|
+
type __VLS_Props = MaTextInputProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
};
|
|
2
6
|
declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
|
|
3
7
|
type __VLS_Slots = {} & {
|
|
4
8
|
prefix?: (props: typeof __VLS_9) => any;
|
|
@@ -9,35 +13,21 @@ type __VLS_Slots = {} & {
|
|
|
9
13
|
} & {
|
|
10
14
|
addonAfter?: (props: typeof __VLS_15) => any;
|
|
11
15
|
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
13
17
|
focus: () => void;
|
|
14
18
|
blur: () => void;
|
|
15
|
-
controlId: string;
|
|
16
|
-
labelProps: import("vue").Ref<import("@formwerk/core").AriaLabelProps, import("@formwerk/core").AriaLabelProps>;
|
|
17
|
-
descriptionProps: import("vue").Ref<import("@formwerk/core").AriaDescriptionProps, import("@formwerk/core").AriaDescriptionProps>;
|
|
18
|
-
errorMessageProps: import("vue").Ref<import("@formwerk/core").AriaErrorMessageProps, import("@formwerk/core").AriaErrorMessageProps>;
|
|
19
|
-
errorMessage: import("vue").Ref<string, string>;
|
|
20
|
-
errors: import("vue").Ref<string[], string[]>;
|
|
21
|
-
isDirty: import("vue").Ref<boolean, boolean>;
|
|
22
|
-
isTouched: import("vue").Ref<boolean, boolean>;
|
|
23
|
-
isValid: import("vue").Ref<boolean, boolean>;
|
|
24
|
-
setErrors: (messages: import("@formwerk/core").Arrayable<string>) => void;
|
|
25
|
-
setTouched: (touched: boolean) => void;
|
|
26
|
-
setValue: (value: string) => void;
|
|
27
|
-
validate: (mutate?: boolean) => Promise<import("@formwerk/core").ValidationResult>;
|
|
28
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
20
|
clear: () => any;
|
|
30
21
|
blur: (event: FocusEvent) => any;
|
|
31
22
|
focus: (event: FocusEvent) => any;
|
|
32
23
|
"update:modelValue": (value: string) => any;
|
|
33
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
34
25
|
onClear?: () => any;
|
|
35
26
|
onBlur?: (event: FocusEvent) => any;
|
|
36
27
|
onFocus?: (event: FocusEvent) => any;
|
|
37
28
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
38
29
|
}>, {
|
|
39
30
|
size: import("..").MaInputBaseSize;
|
|
40
|
-
type: import("@formwerk/core").TextInputDOMType;
|
|
41
31
|
disabled: boolean;
|
|
42
32
|
readonly: boolean;
|
|
43
33
|
clearable: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { NumberFieldProps, TextFieldProps } from '@formwerk/core';
|
|
2
1
|
export declare const MaInputBaseSizes: {
|
|
3
2
|
readonly sm: "sm";
|
|
4
3
|
readonly md: "md";
|
|
@@ -39,16 +38,9 @@ export interface MaInputExpose {
|
|
|
39
38
|
focus: () => void;
|
|
40
39
|
blur: () => void;
|
|
41
40
|
}
|
|
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'> {
|
|
41
|
+
export interface MaCurrencyInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
|
|
48
42
|
/** Custom id for the native input element. Auto-generated if not provided. */
|
|
49
43
|
id?: string;
|
|
50
|
-
/** Accessible label. Applied as `aria-label` since the input renders no label element. */
|
|
51
|
-
label?: string;
|
|
52
44
|
/** Native autocomplete hint for browser autofill behavior (e.g. 'off', 'email', 'new-password'). */
|
|
53
45
|
autocomplete?: string;
|
|
54
46
|
/**
|
|
@@ -69,10 +61,13 @@ export interface MaCurrencyInputProps extends Omit<MaInputBaseProps, 'focused' |
|
|
|
69
61
|
/** Placeholder for the native input element */
|
|
70
62
|
placeholder?: string;
|
|
71
63
|
}
|
|
72
|
-
export interface MaTextInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'
|
|
64
|
+
export interface MaTextInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
|
|
73
65
|
/** Custom id for the native input element. Auto-generated if not provided. */
|
|
74
66
|
id?: string;
|
|
75
|
-
|
|
67
|
+
/** Native autocomplete hint for browser autofill behavior (e.g. 'off', 'email', 'name'). */
|
|
68
|
+
autocomplete?: string;
|
|
69
|
+
/** Placeholder for the native input element */
|
|
70
|
+
placeholder?: string;
|
|
76
71
|
}
|
|
77
72
|
export interface MaNumberInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
|
|
78
73
|
/** Custom id for the native input element. Auto-generated if not provided. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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,17 +7,6 @@ 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>;
|
|
21
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
11
|
change: (value: MaSelectValue) => any;
|
|
23
12
|
"update:value": (value: MaSelectValue) => any;
|
|
@@ -41,11 +30,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
41
30
|
allowClear: boolean;
|
|
42
31
|
showSearch: boolean;
|
|
43
32
|
listHeight: number;
|
|
44
|
-
dropdownMatchSelectWidth: boolean;
|
|
45
33
|
dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
|
|
34
|
+
dropdownMatchSelectWidth: boolean;
|
|
46
35
|
checkboxPosition: import("./types").MaSelectOptionCheckboxPosition;
|
|
47
|
-
multiSelectionInput: import("./types").MaSelectMultiSelectionInput;
|
|
48
36
|
hideCheckIcon: boolean;
|
|
37
|
+
multiSelectionInput: import("./types").MaSelectMultiSelectionInput;
|
|
49
38
|
compact: boolean;
|
|
50
39
|
hideSuffix: boolean;
|
|
51
40
|
disableKeywordActions: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { StandardSchema } from '@formwerk/core';
|
|
2
1
|
import type { MaPopover2Props as MaPopoverProps } from '@/components/popover-2/index.vue';
|
|
3
2
|
export declare const MaSelectSizes: readonly ["small", "medium", "large"];
|
|
4
3
|
export declare const MaSelectOptionCheckboxPositions: readonly ["left", "right", "hidden"];
|
|
@@ -14,26 +13,7 @@ export interface MaSelectOption {
|
|
|
14
13
|
disabled?: boolean;
|
|
15
14
|
[key: string]: any;
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
* Formwerk field props accepted by MaSelect2.
|
|
19
|
-
*
|
|
20
|
-
* MaSelect2 keeps its own dropdown, virtual scroller and keyboard navigation —
|
|
21
|
-
* these register its value with a surrounding form and add schema validation via
|
|
22
|
-
* `useCustomField`, rather than handing the control over to `useSelect`.
|
|
23
|
-
*/
|
|
24
|
-
export interface MaSelectFieldProps {
|
|
25
|
-
/** Field name. Required for the value to be registered with a parent form. */
|
|
26
|
-
name?: string;
|
|
27
|
-
/** Accessible label, applied to the trigger button. */
|
|
28
|
-
label?: string;
|
|
29
|
-
/** Helper text describing the field, linked via `aria-describedby`. */
|
|
30
|
-
description?: string;
|
|
31
|
-
/** Standard Schema validator (Zod, Valibot, …) for the selected value. */
|
|
32
|
-
schema?: StandardSchema<MaSelectValue>;
|
|
33
|
-
/** Requires a selection before the form can submit. */
|
|
34
|
-
required?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface MaSelectProps extends MaSelectFieldProps {
|
|
16
|
+
export interface MaSelectProps {
|
|
37
17
|
/**
|
|
38
18
|
* Size of the select input
|
|
39
19
|
* @default small
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/vue3';
|
|
2
|
+
import '../assets/table.scss';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
disable: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: StoryFn;
|
|
13
|
+
export declare const Borderless: StoryFn;
|
|
14
|
+
export declare const NoRounded: StoryFn;
|
|
15
|
+
export declare const Secondary: StoryFn;
|