@commercelayer/app-elements 4.2.1 → 4.3.0
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/{CodeEditorComponent-B1vUaKHY.js → CodeEditorComponent-DFffheNf.js} +1 -1
- package/dist/{InputDateComponent-BgWWEfYN.js → InputDateComponent-B8gXpqya.js} +1 -1
- package/dist/{main-Bztm6h_T.js → main-BIAgds5W.js} +3388 -3380
- package/dist/main.d.ts +1 -0
- package/dist/main.js +194 -193
- package/dist/ui/composite/Address.d.ts +53 -0
- package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +13 -42
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export { Tag, type TagProps } from './ui/atoms/Tag';
|
|
|
58
58
|
export { Text, type TextProps } from './ui/atoms/Text';
|
|
59
59
|
export { Tooltip, type TooltipProps, type TooltipRefProps } from './ui/atoms/Tooltip';
|
|
60
60
|
export { ActionButtons, type ActionButtonsProps } from './ui/composite/ActionButtons';
|
|
61
|
+
export { Address, type AddressProps } from './ui/composite/Address';
|
|
61
62
|
export { CardDialog, type CardDialogProps } from './ui/composite/CardDialog';
|
|
62
63
|
export { Dropdown, DropdownDivider, DropdownItem, DropdownSearch, type DropdownDividerProps, type DropdownItemProps, type DropdownProps, type DropdownSearchProps } from './ui/composite/Dropdown';
|
|
63
64
|
export { HomePageLayout, type HomePageLayoutProps } from './ui/composite/HomePageLayout';
|
package/dist/main.js
CHANGED
|
@@ -1,202 +1,203 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ad as s, aT as t,
|
|
2
|
+
import { ad as s, aT as t, aU as o, ae as r, af as n, ag as u, ah as c, ai as i, aj as d, ak as l, al as p, aV as b, am as g, bg as m, an as S, ao as I, _ as k, aW as T, aX as D, aY as R, aZ as y, ap as h, a2 as C, a3 as P, b9 as A, aq as H, ar as F, a_ as v, bh as f, bi as B, bj as L, bl as O, bn as E, bq as N, bt as G, bv as M, bA as w, bC as x, bH as V, bM as W, bO as J, bQ as U, bS as q, bU as Y, bY as j, bZ as z, b_ as K, as as Q, a6 as X, at as Z, bk as _, bm as $, bo as aa, br as ea, bs as sa, bu as ta, bw as oa, bx as ra, by as na, bz as ua, bB as ca, bD as ia, bI as da, bN as la, bP as pa, bR as ba, bT as ga, bV as ma, bW as Sa, bX as Ia, a$ as ka, b0 as Ta, b1 as Da, b2 as Ra, ba as ya, ab as ha, b3 as Ca, au as Pa, b4 as Aa, b5 as Ha, av as Fa, aw as va, ax as fa, ay as Ba, b6 as La, c2 as Oa, c3 as Ea, c5 as Na, c6 as Ga, c7 as Ma, c8 as wa, c9 as xa, cb as Va, cc as Wa, cd as Ja, bb as Ua, az as qa, bc as Ya, aA as ja, aB as za, aC as Ka, aD as Qa, aF as Xa, aG as Za, aH as _a, aI as $a, aJ as ae, aO as ee, aK as se, bd as te, aP as oe, aQ as re, aL as ne, aR as ue, aM as ce, be as ie, ac as de, bf as le, aS as pe, aN as be, a8 as ge, D as me, a1 as Se, b7 as Ie, b8 as ke, l as Te, m as De, C as Re, aa as ye, bF as he, bp as Ce, p as Pe, q as Ae, s as He, E as Fe, F as ve, H as fe, cg as Be, ch as Le, bG as Oe, t as Ee, v as Ne, x as Ge, ci as Me, cj as we, ck as xe, cl as Ve, cm as We, J as Je, K as Ue, ca as qe, cn as Ye, c1 as je, G as ze, co as Ke, cp as Qe, cq as Xe, L as Ze, M as _e, cr as $e, cs as as, ct as es, P as ss, Q as ts, h as os, N as rs, O as ns, a5 as us, k as cs, bJ as is, bK as ds, bL as ls, y as ps, n as bs, r as gs, z as ms, b$ as Ss, A as Is, a7 as ks, B as Ts, S as Ds, T as Rs, $ as ys, a0 as hs, U as Cs, V as Ps, W as As, bE as Hs, X as Fs, Y as vs, Z as fs, c4 as Bs, ce as Ls, cf as Os, a4 as Es, u as Ns, a9 as Gs, c0 as Ms, aE as ws } from "./main-BIAgds5W.js";
|
|
3
3
|
export {
|
|
4
4
|
s as A,
|
|
5
5
|
t as ActionButtons,
|
|
6
|
-
o as
|
|
7
|
-
r as
|
|
8
|
-
n as
|
|
9
|
-
u as
|
|
6
|
+
o as Address,
|
|
7
|
+
r as Alert,
|
|
8
|
+
n as Avatar,
|
|
9
|
+
u as AvatarLetter,
|
|
10
|
+
c as Badge,
|
|
10
11
|
i as Button,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
12
|
+
d as ButtonFilter,
|
|
13
|
+
l as ButtonImageSelect,
|
|
14
|
+
p as Card,
|
|
15
|
+
b as CardDialog,
|
|
16
|
+
g as CodeBlock,
|
|
17
|
+
m as CodeEditor,
|
|
18
|
+
S as Container,
|
|
19
|
+
I as CopyToClipboard,
|
|
20
|
+
k as CoreSdkProvider,
|
|
21
|
+
T as Dropdown,
|
|
22
|
+
D as DropdownDivider,
|
|
23
|
+
R as DropdownItem,
|
|
24
|
+
y as DropdownSearch,
|
|
25
|
+
h as EmptyState,
|
|
26
|
+
C as ErrorBoundary,
|
|
27
|
+
P as GTMProvider,
|
|
28
|
+
A as GenericPageNotFound,
|
|
29
|
+
H as Grid,
|
|
30
|
+
F as Hint,
|
|
31
|
+
v as HomePageLayout,
|
|
32
|
+
f as HookedCodeEditor,
|
|
33
|
+
B as HookedForm,
|
|
34
|
+
L as HookedInput,
|
|
35
|
+
O as HookedInputCheckbox,
|
|
36
|
+
E as HookedInputCheckboxGroup,
|
|
37
|
+
N as HookedInputCurrency,
|
|
38
|
+
G as HookedInputDate,
|
|
39
|
+
M as HookedInputDateRange,
|
|
40
|
+
w as HookedInputRadioGroup,
|
|
41
|
+
x as HookedInputResourceGroup,
|
|
42
|
+
V as HookedInputSelect,
|
|
43
|
+
W as HookedInputSimpleSelect,
|
|
44
|
+
J as HookedInputSpinner,
|
|
45
|
+
U as HookedInputSwitch,
|
|
46
|
+
q as HookedInputTextArea,
|
|
47
|
+
Y as HookedInputToggleButton,
|
|
48
|
+
j as HookedMarketWithCurrencySelector,
|
|
49
|
+
z as HookedValidationApiError,
|
|
50
|
+
K as HookedValidationError,
|
|
51
|
+
Q as Hr,
|
|
52
|
+
X as I18NProvider,
|
|
53
|
+
Z as Icon,
|
|
54
|
+
_ as Input,
|
|
55
|
+
$ as InputCheckbox,
|
|
56
|
+
aa as InputCheckboxGroup,
|
|
57
|
+
ea as InputCurrency,
|
|
58
|
+
sa as InputCurrencyRange,
|
|
59
|
+
ta as InputDate,
|
|
60
|
+
oa as InputDateRange,
|
|
61
|
+
ra as InputFeedback,
|
|
62
|
+
na as InputFile,
|
|
63
|
+
ua as InputJson,
|
|
64
|
+
ca as InputRadioGroup,
|
|
64
65
|
ia as InputResourceGroup,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
66
|
+
da as InputSelect,
|
|
67
|
+
la as InputSimpleSelect,
|
|
68
|
+
pa as InputSpinner,
|
|
69
|
+
ba as InputSwitch,
|
|
70
|
+
ga as InputTextArea,
|
|
71
|
+
ma as InputToggleButton,
|
|
72
|
+
Sa as Label,
|
|
73
|
+
Ia as Legend,
|
|
74
|
+
ka as List,
|
|
75
|
+
Ta as ListDetails,
|
|
76
|
+
Da as ListDetailsItem,
|
|
77
|
+
Ra as ListItem,
|
|
78
|
+
ya as LoadingPage,
|
|
79
|
+
ha as MetaTags,
|
|
80
|
+
Ca as PageError,
|
|
81
|
+
Pa as PageHeading,
|
|
82
|
+
Aa as PageLayout,
|
|
83
|
+
Ha as PageSkeleton,
|
|
84
|
+
Fa as Pagination,
|
|
85
|
+
va as Progress,
|
|
86
|
+
fa as RadialProgress,
|
|
87
|
+
Ba as RemoveButton,
|
|
88
|
+
La as Report,
|
|
89
|
+
Oa as ResourceAddress,
|
|
90
|
+
Ea as ResourceAddressFormFields,
|
|
91
|
+
Na as ResourceDetails,
|
|
92
|
+
Ga as ResourceLineItems,
|
|
93
|
+
Ma as ResourceListItem,
|
|
94
|
+
wa as ResourceMetadata,
|
|
95
|
+
xa as ResourceOrderTimeline,
|
|
96
|
+
Va as ResourcePaymentMethod,
|
|
97
|
+
Wa as ResourceShipmentParcels,
|
|
98
|
+
Ja as ResourceTags,
|
|
99
|
+
Ua as Routes,
|
|
100
|
+
qa as ScrollToTop,
|
|
101
|
+
Ya as SearchBar,
|
|
102
|
+
ja as Section,
|
|
103
|
+
za as Skeleton,
|
|
104
|
+
Ka as SkeletonItem,
|
|
105
|
+
Qa as SkeletonTemplate,
|
|
106
|
+
Xa as Spacer,
|
|
107
|
+
Za as Stack,
|
|
108
|
+
_a as StatusDot,
|
|
109
|
+
$a as StatusIcon,
|
|
110
|
+
ae as Steps,
|
|
111
|
+
ee as Tab,
|
|
112
|
+
se as Table,
|
|
113
|
+
te as TableData,
|
|
114
|
+
oe as Tabs,
|
|
115
|
+
re as Tag,
|
|
116
|
+
ne as Td,
|
|
117
|
+
ue as Text,
|
|
118
|
+
ce as Th,
|
|
118
119
|
ie as Timeline,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
120
|
+
de as TokenProvider,
|
|
121
|
+
le as Toolbar,
|
|
122
|
+
pe as Tooltip,
|
|
123
|
+
be as Tr,
|
|
124
|
+
ge as Trans,
|
|
125
|
+
me as computeFullname,
|
|
126
|
+
Se as createApp,
|
|
127
|
+
Ie as createRoute,
|
|
128
|
+
ke as createTypedRoute,
|
|
129
|
+
Te as currencies,
|
|
130
|
+
De as currencyInputSelectOptions,
|
|
131
|
+
Re as downloadJsonAsFile,
|
|
132
|
+
ye as encodeExtras,
|
|
133
|
+
he as flatSelectValues,
|
|
134
|
+
Ce as formatCentsToCurrency,
|
|
135
|
+
Pe as formatDate,
|
|
136
|
+
Ae as formatDateRange,
|
|
137
|
+
He as formatDateWithPredicate,
|
|
138
|
+
Fe as formatDisplayName,
|
|
139
|
+
ve as formatResourceName,
|
|
140
|
+
fe as getAvatarSrcFromRate,
|
|
141
|
+
Be as getCustomerDisplayStatus,
|
|
142
|
+
Le as getCustomerStatusName,
|
|
143
|
+
Oe as getDefaultValueFromFlatten,
|
|
144
|
+
Ee as getEventDateInfo,
|
|
145
|
+
Ne as getIsoDateAtDayEdge,
|
|
146
|
+
Ge as getIsoDateAtDaysBefore,
|
|
147
|
+
Me as getOrderDisplayStatus,
|
|
148
|
+
we as getOrderFulfillmentStatusName,
|
|
149
|
+
xe as getOrderPaymentStatusName,
|
|
150
|
+
Ve as getOrderStatusName,
|
|
151
|
+
We as getOrderTransactionName,
|
|
152
|
+
Je as getParcelTrackingDetail,
|
|
153
|
+
Ue as getParcelTrackingDetails,
|
|
154
|
+
qe as getPaymentMethodLogoSrc,
|
|
155
|
+
Ye as getPromotionDisplayStatus,
|
|
156
|
+
je as getResourceAddressFormFieldsSchema,
|
|
157
|
+
ze as getResourceEndpoint,
|
|
158
|
+
Ke as getReturnDisplayStatus,
|
|
159
|
+
Qe as getReturnStatusName,
|
|
160
|
+
Xe as getShipmentDisplayStatus,
|
|
161
|
+
Ze as getShipmentRate,
|
|
162
|
+
_e as getShipmentRates,
|
|
163
|
+
$e as getShipmentStatusName,
|
|
164
|
+
as as getStockTransferDisplayStatus,
|
|
165
|
+
es as getStockTransferStatusName,
|
|
166
|
+
ss as getUnitOfWeightName,
|
|
167
|
+
ts as getUnitsOfWeightForSelect,
|
|
168
|
+
os as goBack,
|
|
169
|
+
rs as hasBeenPurchased,
|
|
170
|
+
ns as hasSingleTracking,
|
|
171
|
+
us as i18nLocales,
|
|
172
|
+
cs as isAttachmentValidNote,
|
|
172
173
|
is as isGroupedSelectValues,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
174
|
+
ds as isMultiValueSelected,
|
|
175
|
+
ls as isSingleValueSelected,
|
|
176
|
+
ps as makeDateYearsRange,
|
|
177
|
+
bs as navigateTo,
|
|
178
|
+
gs as referenceOrigins,
|
|
179
|
+
ms as removeMillisecondsFromIsoDate,
|
|
180
|
+
Ss as setApiFormErrors,
|
|
181
|
+
Is as sortAndGroupByDate,
|
|
182
|
+
ks as t,
|
|
183
|
+
Ts as timeSeparator,
|
|
184
|
+
Ds as useAppLinking,
|
|
185
|
+
Rs as useClickAway,
|
|
186
|
+
ys as useCoreApi,
|
|
187
|
+
hs as useCoreSdkProvider,
|
|
188
|
+
Cs as useDelayShow,
|
|
189
|
+
Ps as useEditMetadataOverlay,
|
|
190
|
+
As as useEditTagsOverlay,
|
|
191
|
+
Hs as useInputResourceGroupOverlay,
|
|
192
|
+
Fs as useIsChanged,
|
|
193
|
+
vs as useOnBlurFromContainer,
|
|
194
|
+
fs as useOverlay,
|
|
195
|
+
Bs as useResourceAddressOverlay,
|
|
196
|
+
Ls as useResourceFilters,
|
|
197
|
+
Os as useResourceList,
|
|
198
|
+
Es as useTagManager,
|
|
199
|
+
Ns as useTokenProvider,
|
|
200
|
+
Gs as useTranslation,
|
|
201
|
+
Ms as useValidationFeedback,
|
|
202
|
+
ws as withSkeletonTemplate
|
|
202
203
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Address as AddressType } from '@commercelayer/sdk';
|
|
2
|
+
export interface AddressProps {
|
|
3
|
+
/**
|
|
4
|
+
* The address to be visualized
|
|
5
|
+
*/
|
|
6
|
+
address?: Pick<AddressType, 'first_name' | 'last_name' | 'company' | 'line_1' | 'line_2' | 'city' | 'state_code' | 'zip_code' | 'country_code' | 'billing_info' | 'phone' | 'notes'> | null;
|
|
7
|
+
/**
|
|
8
|
+
* Optional address title (if added it will be shown in bold on top of address infos)
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
showBillingInfo?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
showNotes?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* When set, the component will render an edit button on the right side of the address.
|
|
23
|
+
* The implemented method get triggered every time the edit button is clicked.
|
|
24
|
+
*/
|
|
25
|
+
onEdit?: () => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Renders an all-in-one visualization to deal with a given address
|
|
29
|
+
*/
|
|
30
|
+
export declare const Address: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
31
|
+
address?: (Pick<AddressType, "first_name" | "last_name" | "company" | "line_1" | "line_2" | "city" | "state_code" | "zip_code" | "country_code" | "billing_info" | "phone" | "notes"> | null) | undefined;
|
|
32
|
+
title?: string
|
|
33
|
+
/**
|
|
34
|
+
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
| undefined;
|
|
38
|
+
showBillingInfo?: boolean
|
|
39
|
+
/**
|
|
40
|
+
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
| undefined;
|
|
44
|
+
showNotes?: boolean
|
|
45
|
+
/**
|
|
46
|
+
* When set, the component will render an edit button on the right side of the address.
|
|
47
|
+
* The implemented method get triggered every time the edit button is clicked.
|
|
48
|
+
*/
|
|
49
|
+
| undefined;
|
|
50
|
+
onEdit?: (() => void) | undefined;
|
|
51
|
+
delayMs?: number | undefined;
|
|
52
|
+
isLoading?: boolean | undefined;
|
|
53
|
+
}>;
|
|
@@ -1,80 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { AddressProps } from '../../composite/Address';
|
|
2
|
+
import { Address as AddressType } from '@commercelayer/sdk';
|
|
3
|
+
export type ResourceAddressProps = Pick<AddressProps, 'showBillingInfo' | 'showNotes' | 'title'> & {
|
|
3
4
|
/**
|
|
4
5
|
* Resource of type `Address`
|
|
5
6
|
*/
|
|
6
|
-
address?:
|
|
7
|
-
/**
|
|
8
|
-
* Optional address title (if added it will be shown in bold on top of address infos)
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
7
|
+
address?: AddressType | null;
|
|
11
8
|
/**
|
|
12
9
|
* Optional setting to define if given address is editable (if set the Edit button and Overlay will be enabled).
|
|
13
10
|
* Given the setting the component will also verify user abilities to ensure if he is enabled to update the
|
|
14
11
|
* requested resource before to render editable related functionalities.
|
|
15
12
|
*/
|
|
16
13
|
editable?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
showBillingInfo?: boolean;
|
|
22
14
|
/**
|
|
23
15
|
* Optional setting to define if given `Address` `billing_info` data is required.
|
|
24
16
|
* @default false
|
|
25
17
|
*/
|
|
26
18
|
requiresBillingInfo?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
29
|
-
* @default true
|
|
30
|
-
*/
|
|
31
|
-
showNotes?: boolean;
|
|
32
19
|
/**
|
|
33
20
|
* Get triggered as soon as the new address is created.
|
|
34
21
|
*/
|
|
35
|
-
onCreate?: (createdAddress:
|
|
22
|
+
onCreate?: (createdAddress: AddressType) => void;
|
|
36
23
|
/**
|
|
37
24
|
* Get triggered every time the address is updated.
|
|
38
25
|
*/
|
|
39
|
-
onUpdate?: (updatedAddress:
|
|
40
|
-
}
|
|
26
|
+
onUpdate?: (updatedAddress: AddressType) => void;
|
|
27
|
+
};
|
|
41
28
|
/**
|
|
42
29
|
* Renders an all-in-one visualization and editing solution to deal with a given resource of type `Address`
|
|
43
30
|
*/
|
|
44
31
|
export declare const ResourceAddress: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
* Given the setting the component will also verify user abilities to ensure if he is enabled to update the
|
|
50
|
-
* requested resource before to render editable related functionalities.
|
|
51
|
-
*/
|
|
52
|
-
| undefined;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
showBillingInfo?: boolean | undefined;
|
|
34
|
+
showNotes?: boolean | undefined;
|
|
35
|
+
address?: (AddressType | null) | undefined;
|
|
53
36
|
editable?: boolean
|
|
54
|
-
/**
|
|
55
|
-
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
56
|
-
* @default false
|
|
57
|
-
*/
|
|
58
|
-
| undefined;
|
|
59
|
-
showBillingInfo?: boolean
|
|
60
37
|
/**
|
|
61
38
|
* Optional setting to define if given `Address` `billing_info` data is required.
|
|
62
39
|
* @default false
|
|
63
40
|
*/
|
|
64
41
|
| undefined;
|
|
65
42
|
requiresBillingInfo?: boolean
|
|
66
|
-
/**
|
|
67
|
-
* Optional setting to define if given `Address` `billing_info` data is visible.
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
| undefined;
|
|
71
|
-
showNotes?: boolean
|
|
72
43
|
/**
|
|
73
44
|
* Get triggered as soon as the new address is created.
|
|
74
45
|
*/
|
|
75
46
|
| undefined;
|
|
76
|
-
onCreate?: ((createdAddress:
|
|
77
|
-
onUpdate?: ((updatedAddress:
|
|
47
|
+
onCreate?: ((createdAddress: AddressType) => void) | undefined;
|
|
48
|
+
onUpdate?: ((updatedAddress: AddressType) => void) | undefined;
|
|
78
49
|
delayMs?: number | undefined;
|
|
79
50
|
isLoading?: boolean | undefined;
|
|
80
51
|
}>;
|