@vendure/dashboard 3.7.2-master-202607220305 → 3.7.2-master-202607240306
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/bundle/chunks/{2SSKDMRQ-BYUZEDFM.js → 2SSKDMRQ-9iBOrrzY.js} +2 -2
- package/dist/bundle/chunks/{AP7HFJJL-C9ElHHxz.js → AP7HFJJL-B_o_bgWo.js} +1 -1
- package/dist/bundle/chunks/{WDYDFRGG-Bfnowo_y.js → WDYDFRGG-Dp0MFYaF.js} +2 -2
- package/dist/bundle/chunks/{locale-M7cbtrsA.js → locale-D2wJ_XoL.js} +1 -1
- package/dist/bundle/chunks/{main-B51h5LxL.js → main-CkOpKEzi.js} +3 -3
- package/dist/bundle/chunks/{use-job-queue-polling-Dhe9AG6q.js → use-job-queue-polling-BN_9olfp.js} +238 -184
- package/dist/bundle/lib.js +126 -125
- package/dist/bundle/main.js +2 -2
- package/package.json +3 -3
- package/src/lib/components/data-input/default-relation-input.tsx +3 -0
- package/src/lib/framework/form-engine/use-generated-form.tsx +9 -0
- package/src/lib/framework/form-engine/utils.spec.ts +202 -0
- package/src/lib/framework/form-engine/utils.ts +85 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/dev-config.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/package.json +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/nav-modifier-plugin/nav-modifier-plugin.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/api/api-extensions.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/api/product-entity.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/api/product-review-admin.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/api/product-review-entity.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/api/product-review-shop.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/entities/product-review-translation.entity.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/entities/product-review.entity.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/generated-admin-types.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/generated-shop-types.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/reviews-plugin.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/test-plugins/reviews/types.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/dev-config.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/package.json +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/nav-modifier-plugin/nav-modifier-plugin.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/api/api-extensions.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/api/product-entity.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/api/product-review-admin.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/api/product-review-entity.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/api/product-review-shop.resolver.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/entities/product-review-translation.entity.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/entities/product-review.entity.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/generated-admin-types.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/generated-shop-types.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/reviews-plugin.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/compiler/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/test-plugins/reviews/types.js +0 -0
- /package/dist/vite/.vendure-dashboard-temp/gql-tada/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/schema.graphql +0 -0
- /package/dist/vite/.vendure-dashboard-temp/gql-tada/{3166-bc154fe9-9702-405a-90f5-1d05d7b6883a → 3349-7b221402-719c-4ad1-b80a-25776ba4cd28}/tsconfig.json +0 -0
- /package/dist/vite/.vendure-dashboard-temp/gql-tada/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/schema.graphql +0 -0
- /package/dist/vite/.vendure-dashboard-temp/gql-tada/{4123-4e97be61-5f56-4e62-9209-73d66356817b → 4304-94e53350-083f-4023-80d2-e80dee684ee6}/tsconfig.json +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./AP7HFJJL-
|
|
2
|
-
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./AP7HFJJL-B_o_bgWo.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-CkOpKEzi.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, m as memo, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, n as mutationSortFns, p as on, q as setAttribute, r as getSidedProp, v as use, w as convertRemToPixels, x as createUniqueId, y as batch, z as getQueryStatusLabel, A as getMutationStatusColor, B as getQueryStatusColor, C as getQueryStatusColorByLabel, D as displayValue, F as For, E as untrack, $ as $TRACK, G as useTransition, H as spread, I as mergeProps, J as createRoot, K as serialize, L as Index, M as updateNestedDataByPath, N as addEventListener, O as stringify, Q as Match, R as Switch, T as deleteNestedDataByPath, U as splitProps, V as Dynamic, W as createComputed } from "./main-
|
|
1
|
+
import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, m as memo, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, n as mutationSortFns, p as on, q as setAttribute, r as getSidedProp, v as use, w as convertRemToPixels, x as createUniqueId, y as batch, z as getQueryStatusLabel, A as getMutationStatusColor, B as getQueryStatusColor, C as getQueryStatusColorByLabel, D as displayValue, F as For, E as untrack, $ as $TRACK, G as useTransition, H as spread, I as mergeProps, J as createRoot, K as serialize, L as Index, M as updateNestedDataByPath, N as addEventListener, O as stringify, Q as Match, R as Switch, T as deleteNestedDataByPath, U as splitProps, V as Dynamic, W as createComputed } from "./main-CkOpKEzi.js";
|
|
2
2
|
var isNonNullable = (i2) => i2 != null;
|
|
3
3
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
4
4
|
function chain(callbacks) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./AP7HFJJL-
|
|
2
|
-
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./AP7HFJJL-B_o_bgWo.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-CkOpKEzi.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { on as normalizeDates$1, oo as startOfWeek$1, op as buildFormatLongFn$1, oq as buildLocalizeFn$1, or as buildMatchFn$1, os as buildMatchPatternFn$1, ot as toDate$1, ou as match$1l, ov as localize$1n, ow as formatRelative$1n, ox as formatDistance$1n, oy as DateLib, oz as enUS$1 } from "./use-job-queue-polling-BN_9olfp.js";
|
|
2
2
|
function isSameWeek$1(laterDate, earlierDate, options2) {
|
|
3
3
|
const [laterDate_, earlierDate_] = normalizeDates$1(
|
|
4
4
|
options2?.in,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { c as createLucideIcon,
|
|
2
|
+
import { c as createLucideIcon, nu as loadI18nMessages, nE as UserSettingsProvider, nF as ThemeProvider, nG as AuthProvider, nH as ServerConfigProvider, nI as ChannelProvider, nJ as AlertsProvider, l5 as CustomProviders, df as objectType, du as stringType, mV as useAuth, gv as LoginForm, hq as LoginBranding, gk as AppLayout, nK as endOfDay, nL as startOfMonth, bD as useUserSettings, nc as usePermissions, kx as getDashboardWidgetRegistry, eL as Page, eM as PageTitle, eN as PageActionBar, me as ActionBarItem, gi as DateRangePicker, dP as Button, eP as PageLayout, mp as FullWidthPageBlock, kA as WidgetFiltersProvider, i$ as GridLayout, ky as getDashboardWidget, nb as usePaginatedList, mF as api, kV as getMutationName, fA as DataTableBulkActionItem, nM as Trash, mN as graphql, gf as useGeneratedColumns, fU as DataTable, gY as CountrySelector, jt as Sheet, jA as SheetTrigger, jv as SheetContent, jy as SheetHeader, jz as SheetTitle, jw as SheetDescription, jm as ScrollArea, mx as ListPage, dQ as Plus, h3 as DetailPageButton, eX as BooleanDisplayBadge, dR as Badge, mS as setSettingsStoreValueDocument, nN as createColumnHelper, gX as CopyableText, jV as Switch$1, iE as Dialog, iM as DialogTrigger, iG as DialogContent, iJ as DialogHeader, iD as DialogTitle, iH as DialogDescription, eZ as JsonViewer, iI as DialogFooter, dO as Input, n7 as useLocalFormat, bR as DropdownMenu, bS as DropdownMenuTrigger, bT as Ellipsis, bV as DropdownMenuContent, bW as DropdownMenuItem, nO as Clock, nP as Check, nQ as RefreshCw, nR as ChevronDown, nS as EllipsisVertical, gJ as AssignToChannelBulkAction, mW as useChannel, hs as RemoveFromChannelBulkAction, mJ as configurableOperationFragment, nq as LS_KEY_SHIPPING_TEST_ADDRESS, hR as AccordionItem, hS as AccordionTrigger, hQ as AccordionContent, i_ as Form, eS as FormFieldWrapper, bF as Select, bG as SelectTrigger, bI as SelectValue, bJ as SelectContent, bK as SelectItem, nr as LS_KEY_SHIPPING_TEST_ORDER, nT as useReactTable, nU as getCoreRowModel, jW as Table, k0 as TableHeader, k1 as TableRow, j$ as TableHead, nV as flexRender, jX as TableBody, jZ as TableCell, hr as ProductVariantSelector, hJ as VendureImage, bZ as Trash2, e$ as Money, ij as Card, ip as CardHeader, iq as CardTitle, il as CardContent, i3 as Alert, i4 as AlertDescription, hP as Accordion, hG as RichTextDescriptionCell, nt as SUPER_ADMIN_ROLE_CODE, nl as CUSTOMER_ROLE_CODE, nW as Layers, gP as ChannelCodeLabel, hz as RoleCodeLabel, mH as getEntityDuplicatorsDocument, nX as getInitialConfigArgValue, gS as ConfigurableOperationInput, mG as duplicateEntityDocument, nY as Copy, h5 as ErrorPage, kI as extendDetailFormQuery, kP as addCustomFields, mA as getDetailQueryOptions, eJ as useDetailPage, eQ as PageBlock, eR as DetailFormGrid, jd as PasswordInput, eU as CustomFieldsPageBlock, mI as assetFragment, h7 as FacetValueSelector, h6 as FacetValueChip, gL as usePriceFactor, fF as FacetValueFacetedFilter, hC as StockLevelLabel, mM as errorResultFragment, mL as configurableOperationDefFragment, bC as useServerConfig, hD as CustomerCell, hE as OrderStateCell, hF as OrderMoneyCell, eH as NEW_ENTITY_PATH, hh as LanguageSelector, mP as schemaLanguageCodes, fb as NumberInput, hn as PaginatedListDataTable, hm as PaginatedListDataTableKey, h2 as CustomerSelector, nZ as useDebounce, bX as Folder, n_ as Search, n$ as ChevronRight, o0 as getExpandedRowModel, fO as getItemParentId, fR as calculateDragTargetPosition, fQ as isCircularReference, fS as calculateSiblingIndex, o1 as deleteAssetsDocument, cW as enumType, cP as coerce, gD as AssetGallery, mw as detailPageRouteLoader, hH as TaxCategorySelector, hO as ZoneSelector, k7 as Textarea, gV as ConfigurableOperationSelector, eT as TranslatableFormFieldWrapper, fq as RichTextInput, n5 as useGroupedPermissions, ke as TooltipProvider, kc as Tooltip, kf as TooltipTrigger, o2 as Info, kd as TooltipContent, gQ as ChannelSelector, gU as ConfigurableOperationMultiSelector, f7 as DateTimeInput, dS as X, cM as arrayType, nD as a, k2 as Tabs, k4 as TabsList, k5 as TabsTrigger, o3 as Link$1, k3 as TabsContent, iu as Command, iy as CommandInput, iA as CommandList, iw as CommandEmpty, iz as CommandItem, cO as booleanType, cl as ZodIssueCode, dq as recordType, C as Checkbox, iQ as Field, iT as FieldError, fa as MoneyInput, gW as ConfirmationDialog, hU as AlertDialog, hX as AlertDialogContent, h_ as AlertDialogHeader, hT as AlertDialogTitle, hY as AlertDialogDescription, hZ as AlertDialogFooter, hW as AlertDialogCancel, hV as AlertDialogAction, ho as PermissionGuard, na as usePage, fs as SlugInput, gN as AssignedFacetValues, gM as AssignedChannels, h4 as EntityAssets, dV as Separator, g_ as CustomFieldsForm, iV as FieldLabel, m$ as useDynamicTranslations, o4 as getTypeForState, bH as cn, nn as DEFAULT_CHANNEL_CODE, fp as createRelationSelectorConfig, fo as RelationSelector, j5 as Label, o5 as CircleAlert, mX as useCustomFieldConfig, gj as LabeledData, ir as Collapsible, is as CollapsibleTrigger, it as CollapsibleContent, o6 as Globe, md as HistoryEntry, o7 as SquarePen, hf as useHistoryNoteEditor, hd as HistoryTimelineWithGrouping, hc as HistoryNoteInput, ha as HistoryNoteEditor, hb as HistoryNoteEntry, jS as Skeleton, kR as getFieldsFromDocumentNode, fL as getColumnVisibility, o8 as Pencil, o9 as stateTypeToBadgeVariant, oa as ChevronLeft, g$ as CustomerAddressForm$1, ob as Users, h0 as CustomerGroupChip, h1 as CustomerGroupSelector, oc as Eye, i5 as AlertTitle, n6 as useJobQueuePolling, hB as SellerSelector, gZ as CurrencySelector, od as tagListDocument, oe as updateTagDocument, of as deleteTagDocument, og as createTagDocument, je as Popover, jj as PopoverTrigger, oh as ChevronsUpDown, jf as PopoverContent, ix as CommandGroup, oi as Settings2, oj as assetDetailDocument, ok as assetUpdateDocument, gB as AssetFocalPointEditor, gI as AssetProperties, gG as AssetPreviewSelector, ol as Focus, hA as RoleSelector, hj as MultiSelect, om as useRedirectToListOnNotFound, fh as SingleRelationInput, lD as useGeneratedForm, de as numberType, f0 as AffixedInput, iF as DialogClose, jU as Spinner, lq as useDashboardExtensions, kH as registerDefaults, l7 as executeDashboardExtensionCallbacks, jT as Toaster, mB as useExtendedRouter, mZ as useDisplayLocale, nh as useUiLanguageLoader, kL as setCustomFieldsMap, iN as DirectionProvider, kM as clearCustomFieldsMap } from "./use-job-queue-polling-BN_9olfp.js";
|
|
3
3
|
import { toast } from "sonner";
|
|
4
4
|
import { i18n } from "@lingui/core";
|
|
5
5
|
import { I18nProvider as I18nProvider$1, useLingui, Trans } from "@lingui/react";
|
|
@@ -2932,7 +2932,7 @@ var TanstackQueryDevtools = class {
|
|
|
2932
2932
|
if (this.#Component) {
|
|
2933
2933
|
Devtools = this.#Component;
|
|
2934
2934
|
} else {
|
|
2935
|
-
Devtools = lazy(() => import("./WDYDFRGG-
|
|
2935
|
+
Devtools = lazy(() => import("./WDYDFRGG-Dp0MFYaF.js"));
|
|
2936
2936
|
this.#Component = Devtools;
|
|
2937
2937
|
}
|
|
2938
2938
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -3070,7 +3070,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
3070
3070
|
if (this.#Component) {
|
|
3071
3071
|
Devtools = this.#Component;
|
|
3072
3072
|
} else {
|
|
3073
|
-
Devtools = lazy(() => import("./2SSKDMRQ-
|
|
3073
|
+
Devtools = lazy(() => import("./2SSKDMRQ-9iBOrrzY.js"));
|
|
3074
3074
|
this.#Component = Devtools;
|
|
3075
3075
|
}
|
|
3076
3076
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/dist/bundle/chunks/{use-job-queue-polling-Dhe9AG6q.js → use-job-queue-polling-BN_9olfp.js}
RENAMED
|
@@ -22588,6 +22588,44 @@ function stripNullNullableFields(values, fields) {
|
|
|
22588
22588
|
processFields(result, fields);
|
|
22589
22589
|
return result;
|
|
22590
22590
|
}
|
|
22591
|
+
function stripUntouchedTranslations(values, fields, dirtyFields) {
|
|
22592
|
+
if (!values) {
|
|
22593
|
+
return values;
|
|
22594
|
+
}
|
|
22595
|
+
const result = structuredClone(values);
|
|
22596
|
+
function process2(obj, dirty, fieldDefs) {
|
|
22597
|
+
for (const field of fieldDefs) {
|
|
22598
|
+
const value2 = obj?.[field.name];
|
|
22599
|
+
if (!value2 || typeof value2 !== "object" || !field.typeInfo) {
|
|
22600
|
+
continue;
|
|
22601
|
+
}
|
|
22602
|
+
const dirtyValue = dirty?.[field.name];
|
|
22603
|
+
if (Array.isArray(value2)) {
|
|
22604
|
+
const isTranslationsArray = field.typeInfo.some((f2) => f2.name === "languageCode");
|
|
22605
|
+
if (isTranslationsArray) {
|
|
22606
|
+
const kept = value2.filter((entry, i2) => isDirty$1(dirtyValue?.[i2]) || isPersisted(entry));
|
|
22607
|
+
obj[field.name] = kept.length ? kept : value2;
|
|
22608
|
+
}
|
|
22609
|
+
for (const [i2, item] of obj[field.name].entries()) {
|
|
22610
|
+
process2(item, dirtyValue?.[i2], field.typeInfo);
|
|
22611
|
+
}
|
|
22612
|
+
} else {
|
|
22613
|
+
process2(value2, dirtyValue, field.typeInfo);
|
|
22614
|
+
}
|
|
22615
|
+
}
|
|
22616
|
+
}
|
|
22617
|
+
process2(result, dirtyFields, fields);
|
|
22618
|
+
return result;
|
|
22619
|
+
}
|
|
22620
|
+
function isDirty$1(value2) {
|
|
22621
|
+
if (value2 != null && typeof value2 === "object") {
|
|
22622
|
+
return Object.values(value2).some(isDirty$1);
|
|
22623
|
+
}
|
|
22624
|
+
return value2 === true;
|
|
22625
|
+
}
|
|
22626
|
+
function isPersisted(entry) {
|
|
22627
|
+
return !!entry && typeof entry === "object" && entry.id != null && entry.id !== "";
|
|
22628
|
+
}
|
|
22591
22629
|
function isCustomFieldConfig(input) {
|
|
22592
22630
|
return input.hasOwnProperty("readonly");
|
|
22593
22631
|
}
|
|
@@ -33490,6 +33528,17 @@ const createEntityConfigs = (i18n2) => ({
|
|
|
33490
33528
|
}),
|
|
33491
33529
|
ProductVariant: createRelationSelectorConfig({
|
|
33492
33530
|
...createBaseEntityConfig("Product Variant", i18n2),
|
|
33531
|
+
buildSearchFilter: (term) => ({
|
|
33532
|
+
_or: [{
|
|
33533
|
+
name: {
|
|
33534
|
+
contains: term
|
|
33535
|
+
}
|
|
33536
|
+
}, {
|
|
33537
|
+
sku: {
|
|
33538
|
+
contains: term
|
|
33539
|
+
}
|
|
33540
|
+
}]
|
|
33541
|
+
}),
|
|
33493
33542
|
listQuery: graphql(`
|
|
33494
33543
|
query GetProductVariantsForRelationSelector($options: ProductVariantListOptions) {
|
|
33495
33544
|
productVariants(options: $options) {
|
|
@@ -39245,7 +39294,7 @@ function useDayPickerLocale() {
|
|
|
39245
39294
|
} = useDisplayLocale();
|
|
39246
39295
|
const [calendarLocale, setCalendarLocale] = useState(void 0);
|
|
39247
39296
|
useEffect(() => {
|
|
39248
|
-
import("./locale-
|
|
39297
|
+
import("./locale-D2wJ_XoL.js").then((mod) => {
|
|
39249
39298
|
setCalendarLocale(bcpTagToDatePickerLocale(bcp47Tag, mod));
|
|
39250
39299
|
});
|
|
39251
39300
|
}, [bcp47Tag]);
|
|
@@ -130325,6 +130374,9 @@ function useGeneratedForm(options) {
|
|
|
130325
130374
|
defaultValues: processedDefaultValues,
|
|
130326
130375
|
values
|
|
130327
130376
|
});
|
|
130377
|
+
const {
|
|
130378
|
+
dirtyFields
|
|
130379
|
+
} = form.formState;
|
|
130328
130380
|
let submitHandler = (event) => {
|
|
130329
130381
|
event.preventDefault();
|
|
130330
130382
|
};
|
|
@@ -130339,6 +130391,7 @@ function useGeneratedForm(options) {
|
|
|
130339
130391
|
}
|
|
130340
130392
|
const onSubmitWrapper = (values2) => {
|
|
130341
130393
|
let processed = convertEmptyStringsToNull(removeEmptyIdFields(values2, updateFields), updateFields);
|
|
130394
|
+
processed = stripUntouchedTranslations(processed, updateFields, dirtyFields);
|
|
130342
130395
|
if (!entity) {
|
|
130343
130396
|
processed = stripNullNullableFields(processed, updateFields);
|
|
130344
130397
|
}
|
|
@@ -131719,7 +131772,7 @@ export {
|
|
|
131719
131772
|
getDashboardWidget as ky,
|
|
131720
131773
|
WidgetFiltersContext as kz,
|
|
131721
131774
|
useTimeout as l,
|
|
131722
|
-
|
|
131775
|
+
isFloatStructField as l$,
|
|
131723
131776
|
includeOnlySelectedListFields as l0,
|
|
131724
131777
|
getDashboardCustomProvidersRegistry as l1,
|
|
131725
131778
|
registerDashboardCustomProvider as l2,
|
|
@@ -131738,25 +131791,25 @@ export {
|
|
|
131738
131791
|
removeEmptyIdFields as lF,
|
|
131739
131792
|
convertEmptyStringsToNull as lG,
|
|
131740
131793
|
stripNullNullableFields as lH,
|
|
131741
|
-
|
|
131742
|
-
|
|
131743
|
-
|
|
131744
|
-
|
|
131745
|
-
|
|
131746
|
-
|
|
131747
|
-
|
|
131748
|
-
|
|
131749
|
-
|
|
131750
|
-
|
|
131751
|
-
|
|
131752
|
-
|
|
131753
|
-
|
|
131754
|
-
|
|
131755
|
-
|
|
131756
|
-
|
|
131757
|
-
|
|
131758
|
-
|
|
131759
|
-
|
|
131794
|
+
stripUntouchedTranslations as lI,
|
|
131795
|
+
isCustomFieldConfig as lJ,
|
|
131796
|
+
isConfigurableArgDef as lK,
|
|
131797
|
+
isStringCustomFieldConfig as lL,
|
|
131798
|
+
isStringFieldWithOptions as lM,
|
|
131799
|
+
isLocaleStringCustomFieldConfig as lN,
|
|
131800
|
+
isTextCustomFieldConfig as lO,
|
|
131801
|
+
isLocaleTextCustomFieldConfig as lP,
|
|
131802
|
+
isBooleanCustomFieldConfig as lQ,
|
|
131803
|
+
isIntCustomFieldConfig as lR,
|
|
131804
|
+
isFloatCustomFieldConfig as lS,
|
|
131805
|
+
isDateTimeCustomFieldConfig as lT,
|
|
131806
|
+
isRelationCustomFieldConfig as lU,
|
|
131807
|
+
isStructCustomFieldConfig as lV,
|
|
131808
|
+
isStructFieldConfig as lW,
|
|
131809
|
+
isStringStructField as lX,
|
|
131810
|
+
isStringStructFieldWithOptions as lY,
|
|
131811
|
+
extractFieldOptions as lZ,
|
|
131812
|
+
isIntStructField as l_,
|
|
131760
131813
|
generateDisplayComponentKey as la,
|
|
131761
131814
|
addDisplayComponent as lb,
|
|
131762
131815
|
getInputComponent as lc,
|
|
@@ -131784,171 +131837,172 @@ export {
|
|
|
131784
131837
|
applyNullableSelectCustomFieldDefaults as ly,
|
|
131785
131838
|
getDefaultValueFromField as lz,
|
|
131786
131839
|
createSelector as m,
|
|
131787
|
-
|
|
131788
|
-
|
|
131789
|
-
|
|
131790
|
-
|
|
131791
|
-
|
|
131792
|
-
|
|
131793
|
-
|
|
131794
|
-
|
|
131795
|
-
|
|
131796
|
-
|
|
131797
|
-
|
|
131798
|
-
|
|
131799
|
-
|
|
131800
|
-
|
|
131801
|
-
|
|
131802
|
-
|
|
131803
|
-
|
|
131804
|
-
|
|
131805
|
-
|
|
131806
|
-
|
|
131807
|
-
|
|
131808
|
-
|
|
131809
|
-
|
|
131810
|
-
|
|
131811
|
-
|
|
131812
|
-
|
|
131813
|
-
|
|
131814
|
-
|
|
131815
|
-
|
|
131816
|
-
|
|
131817
|
-
|
|
131818
|
-
|
|
131819
|
-
|
|
131820
|
-
|
|
131821
|
-
|
|
131822
|
-
|
|
131823
|
-
|
|
131824
|
-
|
|
131825
|
-
|
|
131826
|
-
|
|
131827
|
-
|
|
131828
|
-
|
|
131829
|
-
|
|
131830
|
-
|
|
131831
|
-
|
|
131832
|
-
|
|
131833
|
-
|
|
131834
|
-
|
|
131835
|
-
|
|
131836
|
-
|
|
131837
|
-
|
|
131838
|
-
|
|
131839
|
-
|
|
131840
|
-
|
|
131841
|
-
|
|
131842
|
-
|
|
131843
|
-
|
|
131844
|
-
|
|
131845
|
-
|
|
131846
|
-
|
|
131847
|
-
|
|
131848
|
-
|
|
131849
|
-
|
|
131850
|
-
|
|
131840
|
+
useDynamicTranslations as m$,
|
|
131841
|
+
isBooleanStructField as m0,
|
|
131842
|
+
isDateTimeStructField as m1,
|
|
131843
|
+
isListField as m2,
|
|
131844
|
+
isReadonlyField as m3,
|
|
131845
|
+
hasPermissionRequirement as m4,
|
|
131846
|
+
isNullableField as m5,
|
|
131847
|
+
isFieldNullable as m6,
|
|
131848
|
+
handleNestedFormSubmit as m7,
|
|
131849
|
+
nativeValueTransformer as m8,
|
|
131850
|
+
jsonStringValueTransformer as m9,
|
|
131851
|
+
getDetailQueryOptions as mA,
|
|
131852
|
+
useExtendedRouter as mB,
|
|
131853
|
+
globalRegistry as mC,
|
|
131854
|
+
registerToolbarItem as mD,
|
|
131855
|
+
getToolbarItemRegistry as mE,
|
|
131856
|
+
api as mF,
|
|
131857
|
+
duplicateEntityDocument as mG,
|
|
131858
|
+
getEntityDuplicatorsDocument as mH,
|
|
131859
|
+
assetFragment as mI,
|
|
131860
|
+
configurableOperationFragment as mJ,
|
|
131861
|
+
configArgDefinitionFragment as mK,
|
|
131862
|
+
configurableOperationDefFragment as mL,
|
|
131863
|
+
errorResultFragment as mM,
|
|
131864
|
+
graphql as mN,
|
|
131865
|
+
readFragment as mO,
|
|
131866
|
+
schemaLanguageCodes as mP,
|
|
131867
|
+
schemaCurrencyCodes as mQ,
|
|
131868
|
+
getSettingsStoreValueDocument as mR,
|
|
131869
|
+
setSettingsStoreValueDocument as mS,
|
|
131870
|
+
useAlertsContext as mT,
|
|
131871
|
+
useAlerts as mU,
|
|
131872
|
+
useAuth as mV,
|
|
131873
|
+
useChannel as mW,
|
|
131874
|
+
useCustomFieldConfig as mX,
|
|
131875
|
+
useDataTableContext as mY,
|
|
131876
|
+
useDisplayLocale as mZ,
|
|
131877
|
+
useDragAndDrop as m_,
|
|
131878
|
+
getValueTransformer as ma,
|
|
131879
|
+
transformValue as mb,
|
|
131880
|
+
getCustomHistoryEntryForType as mc,
|
|
131881
|
+
HistoryEntry as md,
|
|
131882
|
+
ActionBarItem as me,
|
|
131883
|
+
ActionBarItemWrapper as mf,
|
|
131884
|
+
DevModeButton as mg,
|
|
131885
|
+
registerDashboardActionBarItem as mh,
|
|
131886
|
+
getDashboardActionBarItems as mi,
|
|
131887
|
+
registerDashboardPageBlock as mj,
|
|
131888
|
+
getDashboardPageBlocks as mk,
|
|
131889
|
+
LocationWrapper as ml,
|
|
131890
|
+
PageBlockContext as mm,
|
|
131891
|
+
PageContentWithOptionalForm as mn,
|
|
131892
|
+
PageActionBarLeft as mo,
|
|
131893
|
+
FullWidthPageBlock as mp,
|
|
131894
|
+
isOfType as mq,
|
|
131895
|
+
PageContext as mr,
|
|
131896
|
+
getNavMenuConfig as ms,
|
|
131897
|
+
setNavMenuConfig as mt,
|
|
131898
|
+
addNavMenuItem as mu,
|
|
131899
|
+
addNavMenuSection as mv,
|
|
131900
|
+
detailPageRouteLoader as mw,
|
|
131901
|
+
ListPage as mx,
|
|
131902
|
+
extensionRoutes as my,
|
|
131903
|
+
registerRoute as mz,
|
|
131851
131904
|
compareItemEquality as n,
|
|
131852
|
-
|
|
131853
|
-
|
|
131854
|
-
|
|
131855
|
-
|
|
131856
|
-
|
|
131857
|
-
|
|
131858
|
-
|
|
131859
|
-
|
|
131860
|
-
|
|
131861
|
-
|
|
131862
|
-
|
|
131863
|
-
|
|
131864
|
-
|
|
131865
|
-
|
|
131866
|
-
|
|
131867
|
-
|
|
131868
|
-
|
|
131869
|
-
|
|
131870
|
-
|
|
131871
|
-
|
|
131872
|
-
|
|
131873
|
-
|
|
131874
|
-
|
|
131875
|
-
|
|
131876
|
-
|
|
131877
|
-
|
|
131878
|
-
|
|
131879
|
-
|
|
131880
|
-
|
|
131881
|
-
|
|
131882
|
-
|
|
131883
|
-
|
|
131884
|
-
|
|
131885
|
-
|
|
131886
|
-
|
|
131887
|
-
|
|
131888
|
-
|
|
131889
|
-
|
|
131890
|
-
|
|
131891
|
-
|
|
131892
|
-
|
|
131893
|
-
|
|
131894
|
-
|
|
131895
|
-
|
|
131896
|
-
|
|
131897
|
-
|
|
131898
|
-
|
|
131899
|
-
|
|
131900
|
-
|
|
131901
|
-
|
|
131902
|
-
|
|
131903
|
-
|
|
131904
|
-
|
|
131905
|
-
|
|
131906
|
-
|
|
131907
|
-
|
|
131908
|
-
|
|
131909
|
-
|
|
131910
|
-
|
|
131911
|
-
|
|
131912
|
-
|
|
131913
|
-
|
|
131914
|
-
|
|
131915
|
-
|
|
131905
|
+
ChevronRight$1 as n$,
|
|
131906
|
+
useExtendedDetailQuery as n0,
|
|
131907
|
+
useExtendedListQuery as n1,
|
|
131908
|
+
getFacetValueListDocument as n2,
|
|
131909
|
+
useFacetValueBrowser as n3,
|
|
131910
|
+
useFloatingBulkActions as n4,
|
|
131911
|
+
useGroupedPermissions as n5,
|
|
131912
|
+
useJobQueuePolling as n6,
|
|
131913
|
+
useLocalFormat as n7,
|
|
131914
|
+
useIsMobile as n8,
|
|
131915
|
+
usePageBlock as n9,
|
|
131916
|
+
formatFileSize as nA,
|
|
131917
|
+
normalizeString as nB,
|
|
131918
|
+
removeReadonlyAndLocalizedCustomFields as nC,
|
|
131919
|
+
a$1 as nD,
|
|
131920
|
+
UserSettingsProvider as nE,
|
|
131921
|
+
ThemeProvider as nF,
|
|
131922
|
+
AuthProvider as nG,
|
|
131923
|
+
ServerConfigProvider as nH,
|
|
131924
|
+
ChannelProvider as nI,
|
|
131925
|
+
AlertsProvider as nJ,
|
|
131926
|
+
endOfDay as nK,
|
|
131927
|
+
startOfMonth as nL,
|
|
131928
|
+
Trash as nM,
|
|
131929
|
+
createColumnHelper as nN,
|
|
131930
|
+
Clock as nO,
|
|
131931
|
+
Check$1 as nP,
|
|
131932
|
+
RefreshCw as nQ,
|
|
131933
|
+
ChevronDown$1 as nR,
|
|
131934
|
+
EllipsisVertical as nS,
|
|
131935
|
+
useReactTable as nT,
|
|
131936
|
+
getCoreRowModel as nU,
|
|
131937
|
+
flexRender as nV,
|
|
131938
|
+
Layers as nW,
|
|
131939
|
+
getInitialConfigArgValue as nX,
|
|
131940
|
+
Copy as nY,
|
|
131941
|
+
useDebounce as nZ,
|
|
131942
|
+
Search$1 as n_,
|
|
131943
|
+
usePage as na,
|
|
131944
|
+
usePaginatedList as nb,
|
|
131945
|
+
usePermissions as nc,
|
|
131946
|
+
useSavedViews as nd,
|
|
131947
|
+
useIsServerConfigLoaded as ne,
|
|
131948
|
+
useTheme as nf,
|
|
131949
|
+
useResolvedTheme as ng,
|
|
131950
|
+
useUiLanguageLoader as nh,
|
|
131951
|
+
useWidgetDimensions as ni,
|
|
131952
|
+
useWidgetFilters as nj,
|
|
131953
|
+
AUTHENTICATED_ROUTE_PREFIX as nk,
|
|
131954
|
+
CUSTOMER_ROLE_CODE as nl,
|
|
131955
|
+
CurrencyCode as nm,
|
|
131956
|
+
DEFAULT_CHANNEL_CODE as nn,
|
|
131957
|
+
LS_KEY_SELECTED_CHANNEL_TOKEN as no,
|
|
131958
|
+
LS_KEY_SESSION_TOKEN as np,
|
|
131959
|
+
LS_KEY_SHIPPING_TEST_ADDRESS as nq,
|
|
131960
|
+
LS_KEY_SHIPPING_TEST_ORDER as nr,
|
|
131961
|
+
LS_KEY_USER_SETTINGS as ns,
|
|
131962
|
+
SUPER_ADMIN_ROLE_CODE as nt,
|
|
131963
|
+
loadI18nMessages as nu,
|
|
131964
|
+
motion as nv,
|
|
131965
|
+
useMotionValue as nw,
|
|
131966
|
+
useSpring as nx,
|
|
131967
|
+
useTransform as ny,
|
|
131968
|
+
camelCaseToTitleCase as nz,
|
|
131916
131969
|
hasNullItemLabel as o,
|
|
131917
|
-
|
|
131918
|
-
|
|
131919
|
-
|
|
131920
|
-
|
|
131921
|
-
|
|
131922
|
-
|
|
131923
|
-
|
|
131924
|
-
|
|
131925
|
-
|
|
131926
|
-
|
|
131927
|
-
|
|
131928
|
-
|
|
131929
|
-
|
|
131930
|
-
|
|
131931
|
-
|
|
131932
|
-
|
|
131933
|
-
|
|
131934
|
-
|
|
131935
|
-
|
|
131936
|
-
|
|
131937
|
-
|
|
131938
|
-
|
|
131939
|
-
|
|
131940
|
-
|
|
131941
|
-
|
|
131942
|
-
|
|
131943
|
-
|
|
131944
|
-
|
|
131945
|
-
|
|
131946
|
-
|
|
131947
|
-
|
|
131948
|
-
|
|
131949
|
-
|
|
131950
|
-
|
|
131951
|
-
|
|
131970
|
+
getExpandedRowModel as o0,
|
|
131971
|
+
deleteAssetsDocument as o1,
|
|
131972
|
+
Info$1 as o2,
|
|
131973
|
+
Link$1 as o3,
|
|
131974
|
+
getTypeForState as o4,
|
|
131975
|
+
CircleAlert as o5,
|
|
131976
|
+
Globe as o6,
|
|
131977
|
+
SquarePen as o7,
|
|
131978
|
+
Pencil as o8,
|
|
131979
|
+
stateTypeToBadgeVariant as o9,
|
|
131980
|
+
ChevronLeft$1 as oa,
|
|
131981
|
+
Users as ob,
|
|
131982
|
+
Eye as oc,
|
|
131983
|
+
tagListDocument as od,
|
|
131984
|
+
updateTagDocument as oe,
|
|
131985
|
+
deleteTagDocument as of,
|
|
131986
|
+
createTagDocument as og,
|
|
131987
|
+
ChevronsUpDown as oh,
|
|
131988
|
+
Settings2 as oi,
|
|
131989
|
+
assetDetailDocument as oj,
|
|
131990
|
+
assetUpdateDocument as ok,
|
|
131991
|
+
Focus as ol,
|
|
131992
|
+
useRedirectToListOnNotFound as om,
|
|
131993
|
+
normalizeDates as on,
|
|
131994
|
+
startOfWeek as oo,
|
|
131995
|
+
buildFormatLongFn as op,
|
|
131996
|
+
buildLocalizeFn as oq,
|
|
131997
|
+
buildMatchFn as or,
|
|
131998
|
+
buildMatchPatternFn as os,
|
|
131999
|
+
toDate as ot,
|
|
132000
|
+
match as ou,
|
|
132001
|
+
localize as ov,
|
|
132002
|
+
formatRelative as ow,
|
|
132003
|
+
formatDistance as ox,
|
|
132004
|
+
DateLib as oy,
|
|
132005
|
+
enUS as oz,
|
|
131952
132006
|
defaultItemEquality as p,
|
|
131953
132007
|
useFormContext as q,
|
|
131954
132008
|
round$1 as r,
|