@commercelayer/app-elements 1.23.3 → 1.24.1
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/InputDateComponent-Cn_yEGmw.js +5658 -0
- package/dist/{main-B_1fTaUS.js → main-BPlS7o1x.js} +15911 -19685
- package/dist/main.d.ts +3 -3
- package/dist/main.js +122 -119
- package/dist/mocks/server.d.ts +1 -1
- package/dist/providers/TokenProvider/TokenProvider.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Icon/icons.d.ts +1 -0
- package/dist/ui/atoms/PageHeading.d.ts +22 -4
- package/dist/ui/composite/Dropdown/DropdownItem.d.ts +2 -2
- package/dist/ui/composite/PageLayout.d.ts +18 -4
- package/dist/ui/composite/PageSkeleton.d.ts +10 -6
- package/dist/ui/composite/SearchBar.d.ts +3 -2
- package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +1 -1
- package/dist/ui/forms/InputReadonly.d.ts +1 -1
- package/dist/ui/internals/InteractiveElement.className.d.ts +1 -1
- package/dist/ui/resources/ResourceAddress/ResourceAddressForm.d.ts +1 -44
- package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +52 -0
- package/dist/ui/resources/ResourceAddress/index.d.ts +2 -0
- package/dist/ui/resources/ResourceAddress/useResourceAddressOverlay.d.ts +11 -0
- package/dist/ui/resources/ResourceListItem/common.d.ts +1 -1
- package/dist/utils/children.d.ts +15 -0
- package/package.json +5 -5
- package/dist/InputDateComponent-Be7oufyy.js +0 -6884
package/dist/main.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ export { useIsChanged } from './hooks/useIsChanged';
|
|
|
16
16
|
export { useOnBlurFromContainer } from './hooks/useOnBlurFromContainer';
|
|
17
17
|
export { useOverlay } from './hooks/useOverlay';
|
|
18
18
|
export { CoreSdkProvider, useCoreApi, useCoreSdkProvider } from './providers/CoreSdkProvider';
|
|
19
|
+
export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp';
|
|
19
20
|
export { ErrorBoundary } from './providers/ErrorBoundary';
|
|
20
21
|
export { GTMProvider, useTagManager } from './providers/GTMProvider';
|
|
21
22
|
export { MetaTags, TokenProvider, useTokenProvider, type TokenProviderAllowedApp, type TokenProviderPermissionItem, type TokenProviderRoleActions, type TokenProviderRolePermissions, type TokenProviderTokenApplicationKind } from './providers/TokenProvider';
|
|
22
|
-
export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp';
|
|
23
23
|
export { A, type AProps } from './ui/atoms/A';
|
|
24
24
|
export { Alert, type AlertProps } from './ui/atoms/Alert';
|
|
25
25
|
export { Avatar, type AvatarProps } from './ui/atoms/Avatar';
|
|
@@ -65,7 +65,7 @@ export { ListDetailsItem, type ListDetailsItemProps } from './ui/composite/ListD
|
|
|
65
65
|
export { ListItem, type ListItemProps } from './ui/composite/ListItem';
|
|
66
66
|
export { PageError, type PageErrorProps } from './ui/composite/PageError';
|
|
67
67
|
export { PageLayout, type PageLayoutProps } from './ui/composite/PageLayout';
|
|
68
|
-
export { PageSkeleton
|
|
68
|
+
export { PageSkeleton } from './ui/composite/PageSkeleton';
|
|
69
69
|
export { Report, type ReportProps } from './ui/composite/Report';
|
|
70
70
|
export { SearchBar, type SearchBarProps } from './ui/composite/SearchBar';
|
|
71
71
|
export { TableData, type TableDataProps } from './ui/composite/TableData';
|
|
@@ -94,7 +94,7 @@ export { HookedInputToggleButton, InputToggleButton, type HookedInputToggleButto
|
|
|
94
94
|
export { Label, type LabelProps } from './ui/forms/Label';
|
|
95
95
|
export { Legend, type LegendProps } from './ui/forms/Legend';
|
|
96
96
|
export { HookedValidationApiError, HookedValidationError, setApiFormErrors, useValidationFeedback } from './ui/forms/ReactHookForm';
|
|
97
|
-
export { ResourceAddress, type ResourceAddressProps } from './ui/resources/ResourceAddress';
|
|
97
|
+
export { ResourceAddress, ResourceAddressFormFields, resourceAddressFormFieldsSchema, useResourceAddressOverlay, type ResourceAddressFormFieldsProps, type ResourceAddressProps } from './ui/resources/ResourceAddress';
|
|
98
98
|
export { ResourceLineItems, type ResourceLineItemsProps } from './ui/resources/ResourceLineItems';
|
|
99
99
|
export { ResourceList, type ResourceListProps } from './ui/resources/ResourceList';
|
|
100
100
|
export { ResourceListItem, type ResourceListItemProps } from './ui/resources/ResourceListItem';
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { aD as s, bg as t, aE as o, aF as r, aG as n, aH as u, aI as c, aJ as i, aK as l, aL as p, bh as d, aM as b, aN as g, at as m, bi as S, bj as I, bk as k, bl as T, aO as D, ax as R, ay as y, aP as h, aQ as A, bm as C, bz as F, bA as H, bC as P, bE as f, bG as v, bK as B, bM as L, bR as O, bU as N, bW as w, c1 as G, c3 as E, c5 as V, c7 as x, c9 as M, cd as W, ce as U, aR as J, aS as Y, bB as j, bD as q, bF as z, bH as Z, bJ as _, bL as $, bN as K, bO as Q, bP as X, bQ as aa, bS as ea, bT as sa, bV as ta, bX as oa, c2 as ra, c4 as na, c6 as ua, c8 as ca, ca as ia, cb as la, cc as pa, bn as da, bo as ba, bp as ga, bq as ma, aA as Sa, br as Ia, aT as ka, bs as Ta, bt as Da, aU as Ra, aV as ya, aW as ha, aX as Aa, bu as Ca, ch as Fa, ci as Ha, cl as Pa, cm as fa, cn as va, co as Ba, cp as La, cq as Oa, cr as Na, aY as wa, bv as Ga, aZ as Ea, a_ as Va, a$ as xa, b0 as Ma, b2 as Wa, b3 as Ua, b4 as Ja, b5 as Ya, b6 as ja, bb as qa, b7 as za, bw as Za, bc as _a, bd as $a, b8 as Ka, be as Qa, b9 as Xa, bx as ae, aB as ee, by as se, bf as te, ba as oe, a9 as re, aw as ne, ac as ue, ad as ce, Z as ie, a8 as le, bY as pe, bI as de, _ as be, $ as ge, a0 as me, aa as Se, ab as Ie, ae as ke, ct as Te, cu as De, bZ as Re, a1 as ye, a2 as he, a3 as Ae, a4 as Ce, cv as Fe, cw as He, cx as Pe, cy as fe, cz as ve, af as Be, ag as Le, cA as Oe, cB as Ne, cC as we, cD as Ge, ah as Ee, ai as Ve, cE as xe, cF as Me, cG as We, al as Ue, am as Je, U as Ye, aj as je, ak as qe, W as ze, b_ as Ze, b$ as _e, c0 as $e, V as Ke, Y as Qe, a5 as Xe, cj as as, cf as es, a6 as ss, a7 as ts, an as os, au as rs, av as ns, ao as us, ap as cs, aq as is, ar as ls, as as ps, ck as ds, cs as bs, az as gs, aC as ms, cg as Ss, b1 as Is } from "./main-BPlS7o1x.js";
|
|
3
3
|
export {
|
|
4
4
|
s as A,
|
|
5
5
|
t as ActionButtons,
|
|
@@ -7,15 +7,15 @@ export {
|
|
|
7
7
|
r as Avatar,
|
|
8
8
|
n as AvatarLetter,
|
|
9
9
|
u as Badge,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
c as Button,
|
|
11
|
+
i as ButtonFilter,
|
|
12
|
+
l as ButtonImageSelect,
|
|
13
|
+
p as Card,
|
|
14
|
+
d as CardDialog,
|
|
15
|
+
b as Container,
|
|
16
16
|
g as CopyToClipboard,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
m as CoreSdkProvider,
|
|
18
|
+
S as Dropdown,
|
|
19
19
|
I as DropdownDivider,
|
|
20
20
|
k as DropdownItem,
|
|
21
21
|
T as DropdownSearch,
|
|
@@ -23,35 +23,35 @@ export {
|
|
|
23
23
|
R as ErrorBoundary,
|
|
24
24
|
y as GTMProvider,
|
|
25
25
|
h as Grid,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
A as Hint,
|
|
27
|
+
C as HomePageLayout,
|
|
28
|
+
F as HookedForm,
|
|
29
|
+
H as HookedInput,
|
|
30
|
+
P as HookedInputCheckbox,
|
|
31
|
+
f as HookedInputCheckboxGroup,
|
|
32
32
|
v as HookedInputCurrency,
|
|
33
33
|
B as HookedInputDate,
|
|
34
34
|
L as HookedInputDateRange,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
O as HookedInputRadioGroup,
|
|
36
|
+
N as HookedInputResourceGroup,
|
|
37
|
+
w as HookedInputSelect,
|
|
38
|
+
G as HookedInputSimpleSelect,
|
|
39
39
|
E as HookedInputSpinner,
|
|
40
40
|
V as HookedInputSwitch,
|
|
41
41
|
x as HookedInputTextArea,
|
|
42
42
|
M as HookedInputToggleButton,
|
|
43
43
|
W as HookedValidationApiError,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
U as HookedValidationError,
|
|
45
|
+
J as Hr,
|
|
46
46
|
Y as Icon,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
j as Input,
|
|
48
|
+
q as InputCheckbox,
|
|
49
|
+
z as InputCheckboxGroup,
|
|
50
|
+
Z as InputCurrency,
|
|
51
|
+
_ as InputCurrencyRange,
|
|
52
|
+
$ as InputDate,
|
|
53
|
+
K as InputDateRange,
|
|
54
|
+
Q as InputFeedback,
|
|
55
55
|
X as InputFile,
|
|
56
56
|
aa as InputJson,
|
|
57
57
|
ea as InputRadioGroup,
|
|
@@ -61,15 +61,15 @@ export {
|
|
|
61
61
|
ra as InputSimpleSelect,
|
|
62
62
|
na as InputSpinner,
|
|
63
63
|
ua as InputSwitch,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
ca as InputTextArea,
|
|
65
|
+
ia as InputToggleButton,
|
|
66
|
+
la as Label,
|
|
67
|
+
pa as Legend,
|
|
68
|
+
da as List,
|
|
69
|
+
ba as ListDetails,
|
|
70
70
|
ga as ListDetailsItem,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
ma as ListItem,
|
|
72
|
+
Sa as MetaTags,
|
|
73
73
|
Ia as PageError,
|
|
74
74
|
ka as PageHeading,
|
|
75
75
|
Ta as PageLayout,
|
|
@@ -77,103 +77,106 @@ export {
|
|
|
77
77
|
Ra as Pagination,
|
|
78
78
|
ya as Progress,
|
|
79
79
|
ha as RadialProgress,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
Aa as RemoveButton,
|
|
81
|
+
Ca as Report,
|
|
82
|
+
Fa as ResourceAddress,
|
|
83
|
+
Ha as ResourceAddressFormFields,
|
|
84
|
+
Pa as ResourceLineItems,
|
|
84
85
|
fa as ResourceList,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
va as ResourceListItem,
|
|
87
|
+
Ba as ResourceMetadata,
|
|
88
|
+
La as ResourceOrderTimeline,
|
|
89
|
+
Oa as ResourceShipmentParcels,
|
|
89
90
|
Na as ResourceTags,
|
|
90
|
-
|
|
91
|
+
wa as ScrollToTop,
|
|
91
92
|
Ga as SearchBar,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
Ea as Section,
|
|
94
|
+
Va as Skeleton,
|
|
95
|
+
xa as SkeletonItem,
|
|
96
|
+
Ma as SkeletonTemplate,
|
|
97
|
+
Wa as Spacer,
|
|
98
|
+
Ua as Stack,
|
|
98
99
|
Ja as StatusDot,
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
Ya as StatusIcon,
|
|
101
|
+
ja as Steps,
|
|
101
102
|
qa as Tab,
|
|
102
103
|
za as Table,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
Za as TableData,
|
|
105
|
+
_a as Tabs,
|
|
106
|
+
$a as Tag,
|
|
107
|
+
Ka as Td,
|
|
108
|
+
Qa as Text,
|
|
109
|
+
Xa as Th,
|
|
110
|
+
ae as Timeline,
|
|
111
|
+
ee as TokenProvider,
|
|
112
|
+
se as Toolbar,
|
|
113
|
+
te as Tooltip,
|
|
114
|
+
oe as Tr,
|
|
115
|
+
re as computeFullname,
|
|
116
|
+
ne as createApp,
|
|
117
|
+
ue as createRoute,
|
|
118
|
+
ce as createTypedRoute,
|
|
118
119
|
ie as currencies,
|
|
119
120
|
le as downloadJsonAsFile,
|
|
120
121
|
pe as flatSelectValues,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
de as formatCentsToCurrency,
|
|
123
|
+
be as formatDate,
|
|
124
|
+
ge as formatDateRange,
|
|
125
|
+
me as formatDateWithPredicate,
|
|
125
126
|
Se as formatDisplayName,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
Ie as formatResourceName,
|
|
128
|
+
ke as getAvatarSrcFromRate,
|
|
129
|
+
Te as getCustomerDisplayStatus,
|
|
130
|
+
De as getCustomerStatusName,
|
|
131
|
+
Re as getDefaultValueFromFlatten,
|
|
132
|
+
ye as getEventDateInfo,
|
|
133
|
+
he as getIsoDateAtDayEdge,
|
|
134
|
+
Ae as getIsoDateAtDaysBefore,
|
|
134
135
|
Ce as getLastYearIsoRange,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
Fe as getOrderDisplayStatus,
|
|
137
|
+
He as getOrderFulfillmentStatusName,
|
|
138
|
+
Pe as getOrderPaymentStatusName,
|
|
138
139
|
fe as getOrderStatusName,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
ve as getOrderTransactionName,
|
|
141
|
+
Be as getParcelTrackingDetail,
|
|
142
|
+
Le as getParcelTrackingDetails,
|
|
143
|
+
Oe as getPromotionDisplayStatus,
|
|
143
144
|
Ne as getReturnDisplayStatus,
|
|
144
|
-
|
|
145
|
+
we as getReturnStatusName,
|
|
145
146
|
Ge as getShipmentDisplayStatus,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
Ee as getShipmentRate,
|
|
148
|
+
Ve as getShipmentRates,
|
|
149
|
+
xe as getShipmentStatusName,
|
|
150
|
+
Me as getStockTransferDisplayStatus,
|
|
151
|
+
We as getStockTransferStatusName,
|
|
152
|
+
Ue as getUnitOfWeightName,
|
|
152
153
|
Je as getUnitsOfWeightForSelect,
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
Ye as goBack,
|
|
155
|
+
je as hasBeenPurchased,
|
|
155
156
|
qe as hasSingleTracking,
|
|
156
157
|
ze as isAttachmentValidNote,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
is as
|
|
173
|
-
ls as
|
|
174
|
-
ps as
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
158
|
+
Ze as isGroupedSelectValues,
|
|
159
|
+
_e as isMultiValueSelected,
|
|
160
|
+
$e as isSingleValueSelected,
|
|
161
|
+
Ke as navigateTo,
|
|
162
|
+
Qe as referenceOrigins,
|
|
163
|
+
Xe as removeMillisecondsFromIsoDate,
|
|
164
|
+
as as resourceAddressFormFieldsSchema,
|
|
165
|
+
es as setApiFormErrors,
|
|
166
|
+
ss as sortAndGroupByDate,
|
|
167
|
+
ts as timeSeparator,
|
|
168
|
+
os as useClickAway,
|
|
169
|
+
rs as useCoreApi,
|
|
170
|
+
ns as useCoreSdkProvider,
|
|
171
|
+
us as useDelayShow,
|
|
172
|
+
cs as useEditMetadataOverlay,
|
|
173
|
+
is as useIsChanged,
|
|
174
|
+
ls as useOnBlurFromContainer,
|
|
175
|
+
ps as useOverlay,
|
|
176
|
+
ds as useResourceAddressOverlay,
|
|
177
|
+
bs as useResourceFilters,
|
|
178
|
+
gs as useTagManager,
|
|
179
|
+
ms as useTokenProvider,
|
|
180
|
+
Ss as useValidationFeedback,
|
|
181
|
+
Is as withSkeletonTemplate
|
|
179
182
|
};
|
package/dist/mocks/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const server: import('msw/
|
|
1
|
+
export declare const server: import('msw/node').SetupServerApi;
|
|
@@ -54,6 +54,7 @@ export interface TokenProviderProps {
|
|
|
54
54
|
}) => void;
|
|
55
55
|
/**
|
|
56
56
|
* The UI element to be used as loader (e.g. skeleton or spinner icon).
|
|
57
|
+
* This element is ignored when app is running within the dashboard, since it will use the standard PageSkeleton ad not-overridable ui loader.
|
|
57
58
|
*/
|
|
58
59
|
loadingElement?: ReactNode;
|
|
59
60
|
/**
|