@vendure/dashboard 3.7.4-master-202609080211 → 3.7.4-master-202609100211
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-rQCpZsiI.js → 2SSKDMRQ-Dd_q4Uvh.js} +2 -2
- package/dist/bundle/chunks/{AP7HFJJL-BJdLqnVW.js → AP7HFJJL-B0AXbe_G.js} +1 -1
- package/dist/bundle/chunks/{WDYDFRGG-CplI2xmz.js → WDYDFRGG-E_633R0G.js} +2 -2
- package/dist/bundle/chunks/{locale-CZ2vSp8-.js → locale-BI0pkFra.js} +1 -1
- package/dist/bundle/chunks/{main-9UGYMBwq.js → main-AAM0FjY7.js} +106 -105
- package/dist/bundle/chunks/ne-GxEDW7xl.js +4 -0
- package/dist/bundle/chunks/nl-Bu05oX6i.js +4 -0
- package/dist/bundle/chunks/ru-D0VP-R2L.js +4 -0
- package/dist/bundle/chunks/sv-Cpe9Hzyu.js +4 -0
- package/dist/bundle/chunks/tr-B0ISqFC5.js +4 -0
- package/dist/bundle/chunks/uk-neV4Gq7f.js +4 -0
- package/dist/bundle/chunks/{use-job-queue-polling-BrMR-IHJ.js → use-job-queue-polling-BKkIiiI8.js} +10 -10
- package/dist/bundle/chunks/zh_Hans-BTypSurQ.js +4 -0
- package/dist/bundle/chunks/zh_Hant-BO7zLl4I.js +4 -0
- package/dist/bundle/lib.js +2 -2
- package/dist/bundle/main.js +2 -2
- package/dist/vite/utils/compiler.js +80 -13
- package/package.json +3 -3
- package/src/app/routes/_authenticated/_administrators/administrators.tsx +5 -11
- package/src/app/routes/_authenticated/_countries/countries.tsx +1 -11
- package/src/app/routes/_authenticated/_customer-groups/components/customer-group-members-table.tsx +4 -6
- package/src/app/routes/_authenticated/_customers/customers.tsx +5 -11
- package/src/app/routes/_authenticated/_orders/utils/order-detail-loaders.spec.ts +159 -0
- package/src/app/routes/_authenticated/_orders/utils/order-detail-loaders.tsx +38 -12
- package/src/app/routes/_authenticated/_product-variants/product-variants.tsx +1 -10
- package/src/app/routes/_authenticated/_products/products.tsx +5 -11
- package/src/app/routes/_authenticated/_promotions/promotions.tsx +1 -10
- package/src/i18n/locales/ne.po +1 -1
- package/src/i18n/locales/nl.po +1 -1
- package/src/i18n/locales/ru.po +1 -1
- package/src/i18n/locales/sv.po +1 -1
- package/src/i18n/locales/tr.po +1 -1
- package/src/i18n/locales/uk.po +1 -1
- package/src/i18n/locales/zh_Hans.po +1 -1
- package/src/i18n/locales/zh_Hant.po +1 -1
- package/src/lib/components/shared/custom-fields-form.tsx +15 -9
- package/src/lib/framework/page/list-page.stories.tsx +2 -30
- package/src/lib/framework/page/list-page.tsx +10 -3
- package/dist/bundle/chunks/ne-BD3118_c.js +0 -4
- package/dist/bundle/chunks/nl-D771TB5Y.js +0 -4
- package/dist/bundle/chunks/ru-DLXBQ5pw.js +0 -4
- package/dist/bundle/chunks/sv-BoUuixu3.js +0 -4
- package/dist/bundle/chunks/tr-BGoQAlej.js +0 -4
- package/dist/bundle/chunks/uk-89VJRPgI.js +0 -4
- package/dist/bundle/chunks/zh_Hans-tcFmBAl9.js +0 -4
- package/dist/bundle/chunks/zh_Hant-DHo2hB_C.js +0 -4
|
@@ -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-B0AXbe_G.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-AAM0FjY7.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-AAM0FjY7.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-B0AXbe_G.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-AAM0FjY7.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { op as normalizeDates$1, oq as startOfWeek$1, or as buildFormatLongFn$1, os as buildLocalizeFn$1, ot as buildMatchFn$1, ou as buildMatchPatternFn$1, ov as toDate$1, ow as match$1l, ox as localize$1n, oy as formatRelative$1n, oz as formatDistance$1n, oA as DateLib, oB as enUS$1 } from "./use-job-queue-polling-
|
|
1
|
+
import { op as normalizeDates$1, oq as startOfWeek$1, or as buildFormatLongFn$1, os as buildLocalizeFn$1, ot as buildMatchFn$1, ou as buildMatchPatternFn$1, ov as toDate$1, ow as match$1l, ox as localize$1n, oy as formatRelative$1n, oz as formatDistance$1n, oA as DateLib, oB as enUS$1 } from "./use-job-queue-polling-BKkIiiI8.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, 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, bF as Select, bG as SelectTrigger, bI as SelectValue, bJ as SelectContent, bK as SelectItem, gJ as AssignToChannelBulkAction, mW as useChannel, hs as RemoveFromChannelBulkAction, mJ as configurableOperationFragment, nq as LS_KEY_SHIPPING_TEST_ADDRESS, nT as useAvailableCountries, hR as AccordionItem, hS as AccordionTrigger, hQ as AccordionContent, i_ as Form, eS as FormFieldWrapper, nr as LS_KEY_SHIPPING_TEST_ORDER, nU as useReactTable, nV as getCoreRowModel, jW as Table, k0 as TableHeader, k1 as TableRow, j$ as TableHead, nW 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, nX as Layers, gP as ChannelCodeLabel, hz as RoleCodeLabel, mH as getEntityDuplicatorsDocument, nY as getInitialConfigArgValue, gS as ConfigurableOperationInput, mG as duplicateEntityDocument, nZ 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, n_ as useDebounce, bX as Folder, n$ as Search, o0 as ChevronRight, o1 as getExpandedRowModel, fO as getItemParentId, fR as calculateDragTargetPosition, fQ as isCircularReference, fS as calculateSiblingIndex, o2 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, o3 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, o4 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, o5 as getTypeForState, bH as cn, nn as DEFAULT_CHANNEL_CODE, fp as createRelationSelectorConfig, fo as RelationSelector, j5 as Label, o6 as CircleAlert, mX as useCustomFieldConfig, gj as LabeledData, ir as Collapsible, is as CollapsibleTrigger, it as CollapsibleContent, o7 as Globe, md as HistoryEntry, o8 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, o9 as Pencil, oa as stateTypeToBadgeVariant, ob as ChevronLeft, g$ as CustomerAddressForm$1, oc as Users, h0 as CustomerGroupChip, h1 as CustomerGroupSelector, od as availableCountriesQueryKey, oe as Eye, i5 as AlertTitle, n6 as useJobQueuePolling, hB as SellerSelector, gZ as CurrencySelector, of as tagListDocument, og as updateTagDocument, oh as deleteTagDocument, oi as createTagDocument, je as Popover, jj as PopoverTrigger, oj as ChevronsUpDown, jf as PopoverContent, ix as CommandGroup, ok as Settings2, ol as assetDetailDocument, om as assetUpdateDocument, gB as AssetFocalPointEditor, gI as AssetProperties, gG as AssetPreviewSelector, on as Focus, hA as RoleSelector, hj as MultiSelect, oo 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-
|
|
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, bF as Select, bG as SelectTrigger, bI as SelectValue, bJ as SelectContent, bK as SelectItem, gJ as AssignToChannelBulkAction, mW as useChannel, hs as RemoveFromChannelBulkAction, mJ as configurableOperationFragment, nq as LS_KEY_SHIPPING_TEST_ADDRESS, nT as useAvailableCountries, hR as AccordionItem, hS as AccordionTrigger, hQ as AccordionContent, i_ as Form, eS as FormFieldWrapper, nr as LS_KEY_SHIPPING_TEST_ORDER, nU as useReactTable, nV as getCoreRowModel, jW as Table, k0 as TableHeader, k1 as TableRow, j$ as TableHead, nW 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, nX as Layers, gP as ChannelCodeLabel, hz as RoleCodeLabel, mH as getEntityDuplicatorsDocument, nY as getInitialConfigArgValue, gS as ConfigurableOperationInput, mG as duplicateEntityDocument, nZ 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, n_ as useDebounce, bX as Folder, n$ as Search, o0 as ChevronRight, o1 as getExpandedRowModel, fO as getItemParentId, fR as calculateDragTargetPosition, fQ as isCircularReference, fS as calculateSiblingIndex, o2 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, o3 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, o4 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, o5 as getTypeForState, bH as cn, nn as DEFAULT_CHANNEL_CODE, fp as createRelationSelectorConfig, fo as RelationSelector, j5 as Label, o6 as CircleAlert, mX as useCustomFieldConfig, gj as LabeledData, ir as Collapsible, is as CollapsibleTrigger, it as CollapsibleContent, o7 as Globe, md as HistoryEntry, o8 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, o9 as Pencil, oa as stateTypeToBadgeVariant, ob as ChevronLeft, g$ as CustomerAddressForm$1, oc as Users, h0 as CustomerGroupChip, h1 as CustomerGroupSelector, od as availableCountriesQueryKey, oe as Eye, i5 as AlertTitle, n6 as useJobQueuePolling, hB as SellerSelector, gZ as CurrencySelector, of as tagListDocument, og as updateTagDocument, oh as deleteTagDocument, oi as createTagDocument, je as Popover, jj as PopoverTrigger, oj as ChevronsUpDown, jf as PopoverContent, ix as CommandGroup, ok as Settings2, ol as assetDetailDocument, om as assetUpdateDocument, gB as AssetFocalPointEditor, gI as AssetProperties, gG as AssetPreviewSelector, on as Focus, hA as RoleSelector, hj as MultiSelect, oo 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-BKkIiiI8.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";
|
|
@@ -2934,7 +2934,7 @@ var TanstackQueryDevtools = class {
|
|
|
2934
2934
|
if (this.#Component) {
|
|
2935
2935
|
Devtools = this.#Component;
|
|
2936
2936
|
} else {
|
|
2937
|
-
Devtools = lazy(() => import("./WDYDFRGG-
|
|
2937
|
+
Devtools = lazy(() => import("./WDYDFRGG-E_633R0G.js"));
|
|
2938
2938
|
this.#Component = Devtools;
|
|
2939
2939
|
}
|
|
2940
2940
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -3072,7 +3072,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
3072
3072
|
if (this.#Component) {
|
|
3073
3073
|
Devtools = this.#Component;
|
|
3074
3074
|
} else {
|
|
3075
|
-
Devtools = lazy(() => import("./2SSKDMRQ-
|
|
3075
|
+
Devtools = lazy(() => import("./2SSKDMRQ-Dd_q4Uvh.js"));
|
|
3076
3076
|
this.#Component = Devtools;
|
|
3077
3077
|
}
|
|
3078
3078
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -7012,20 +7012,16 @@ function PromotionListPage() {
|
|
|
7012
7012
|
endsAt: true
|
|
7013
7013
|
}, onSearchTermChange: (searchTerm) => {
|
|
7014
7014
|
return searchTerm ? {
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7015
|
+
_or: [{
|
|
7016
|
+
name: {
|
|
7017
|
+
contains: searchTerm
|
|
7018
|
+
}
|
|
7019
|
+
}, {
|
|
7020
|
+
couponCode: {
|
|
7021
|
+
contains: searchTerm
|
|
7022
|
+
}
|
|
7023
|
+
}]
|
|
7021
7024
|
} : {};
|
|
7022
|
-
}, transformVariables: (variables) => {
|
|
7023
|
-
return {
|
|
7024
|
-
options: {
|
|
7025
|
-
...variables.options,
|
|
7026
|
-
filterOperator: "OR"
|
|
7027
|
-
}
|
|
7028
|
-
};
|
|
7029
7025
|
}, customizeColumns: {
|
|
7030
7026
|
name: {
|
|
7031
7027
|
cell: ({
|
|
@@ -7834,15 +7830,19 @@ function ProductListPage$1() {
|
|
|
7834
7830
|
}
|
|
7835
7831
|
}, onSearchTermChange: (searchTerm) => {
|
|
7836
7832
|
return searchTerm ? {
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
}
|
|
7833
|
+
_or: [{
|
|
7834
|
+
name: {
|
|
7835
|
+
contains: searchTerm
|
|
7836
|
+
}
|
|
7837
|
+
}, {
|
|
7838
|
+
slug: {
|
|
7839
|
+
contains: searchTerm
|
|
7840
|
+
}
|
|
7841
|
+
}, {
|
|
7842
|
+
sku: {
|
|
7843
|
+
contains: searchTerm
|
|
7844
|
+
}
|
|
7845
|
+
}]
|
|
7846
7846
|
} : {};
|
|
7847
7847
|
}, additionalColumns: {
|
|
7848
7848
|
facetValueId: {
|
|
@@ -7862,13 +7862,6 @@ function ProductListPage$1() {
|
|
|
7862
7862
|
),
|
|
7863
7863
|
component: FacetValueFacetedFilter
|
|
7864
7864
|
}
|
|
7865
|
-
}, transformVariables: (variables) => {
|
|
7866
|
-
return {
|
|
7867
|
-
options: {
|
|
7868
|
-
...variables.options,
|
|
7869
|
-
filterOperator: "OR"
|
|
7870
|
-
}
|
|
7871
|
-
};
|
|
7872
7865
|
}, defaultSort: [{
|
|
7873
7866
|
id: "updatedAt",
|
|
7874
7867
|
desc: true
|
|
@@ -8252,20 +8245,16 @@ function ProductListPage() {
|
|
|
8252
8245
|
}
|
|
8253
8246
|
}, onSearchTermChange: (searchTerm) => {
|
|
8254
8247
|
return searchTerm ? {
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8248
|
+
_or: [{
|
|
8249
|
+
name: {
|
|
8250
|
+
contains: searchTerm
|
|
8251
|
+
}
|
|
8252
|
+
}, {
|
|
8253
|
+
sku: {
|
|
8254
|
+
contains: searchTerm
|
|
8255
|
+
}
|
|
8256
|
+
}]
|
|
8261
8257
|
} : {};
|
|
8262
|
-
}, transformVariables: (variables) => {
|
|
8263
|
-
return {
|
|
8264
|
-
options: {
|
|
8265
|
-
...variables.options,
|
|
8266
|
-
filterOperator: "OR"
|
|
8267
|
-
}
|
|
8268
|
-
};
|
|
8269
8258
|
}, route: Route$F });
|
|
8270
8259
|
}
|
|
8271
8260
|
const paymentMethodItemFragment = graphql(`
|
|
@@ -10340,23 +10329,20 @@ function CustomerListPage() {
|
|
|
10340
10329
|
id: "NihQNk"
|
|
10341
10330
|
} }), pageId: "customer-list", listQuery: customerListDocument, onSearchTermChange: (searchTerm) => {
|
|
10342
10331
|
return searchTerm ? {
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
}
|
|
10332
|
+
_or: [{
|
|
10333
|
+
lastName: {
|
|
10334
|
+
contains: searchTerm
|
|
10335
|
+
}
|
|
10336
|
+
}, {
|
|
10337
|
+
emailAddress: {
|
|
10338
|
+
contains: searchTerm
|
|
10339
|
+
}
|
|
10340
|
+
}, {
|
|
10341
|
+
phoneNumber: {
|
|
10342
|
+
contains: searchTerm
|
|
10343
|
+
}
|
|
10344
|
+
}]
|
|
10352
10345
|
} : {};
|
|
10353
|
-
}, transformVariables: (variables) => {
|
|
10354
|
-
return {
|
|
10355
|
-
options: {
|
|
10356
|
-
...variables.options,
|
|
10357
|
-
filterOperator: "OR"
|
|
10358
|
-
}
|
|
10359
|
-
};
|
|
10360
10346
|
}, route: Route$z, customizeColumns: {
|
|
10361
10347
|
user: {
|
|
10362
10348
|
header: () => /* @__PURE__ */ jsx(Trans, { .../*i18n*/
|
|
@@ -10610,12 +10596,15 @@ function CustomerGroupMembersTable({
|
|
|
10610
10596
|
setFilters(filters2);
|
|
10611
10597
|
}, onSearchTermChange: (searchTerm) => {
|
|
10612
10598
|
return {
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10599
|
+
_or: [{
|
|
10600
|
+
lastName: {
|
|
10601
|
+
contains: searchTerm
|
|
10602
|
+
}
|
|
10603
|
+
}, {
|
|
10604
|
+
emailAddress: {
|
|
10605
|
+
contains: searchTerm
|
|
10606
|
+
}
|
|
10607
|
+
}]
|
|
10619
10608
|
};
|
|
10620
10609
|
}, additionalColumns: {
|
|
10621
10610
|
name: {
|
|
@@ -10829,21 +10818,16 @@ function CountryListPage() {
|
|
|
10829
10818
|
enabled: true
|
|
10830
10819
|
}, onSearchTermChange: (searchTerm) => {
|
|
10831
10820
|
return searchTerm ? {
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
|
|
10821
|
+
_or: [{
|
|
10822
|
+
name: {
|
|
10823
|
+
contains: searchTerm
|
|
10824
|
+
}
|
|
10825
|
+
}, {
|
|
10826
|
+
code: {
|
|
10827
|
+
contains: searchTerm
|
|
10828
|
+
}
|
|
10829
|
+
}]
|
|
10838
10830
|
} : {};
|
|
10839
|
-
}, transformVariables: (variables) => {
|
|
10840
|
-
return {
|
|
10841
|
-
...variables,
|
|
10842
|
-
options: {
|
|
10843
|
-
...variables.options,
|
|
10844
|
-
filterOperator: "OR"
|
|
10845
|
-
}
|
|
10846
|
-
};
|
|
10847
10831
|
}, customizeColumns: {
|
|
10848
10832
|
name: {
|
|
10849
10833
|
cell: ({
|
|
@@ -12452,23 +12436,20 @@ function AdministratorListPage() {
|
|
|
12452
12436
|
id: "3zE1mx"
|
|
12453
12437
|
} }), listQuery: administratorListDocument, route: Route$s, onSearchTermChange: (searchTerm) => {
|
|
12454
12438
|
return searchTerm ? {
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
}
|
|
12439
|
+
_or: [{
|
|
12440
|
+
firstName: {
|
|
12441
|
+
contains: searchTerm
|
|
12442
|
+
}
|
|
12443
|
+
}, {
|
|
12444
|
+
lastName: {
|
|
12445
|
+
contains: searchTerm
|
|
12446
|
+
}
|
|
12447
|
+
}, {
|
|
12448
|
+
emailAddress: {
|
|
12449
|
+
contains: searchTerm
|
|
12450
|
+
}
|
|
12451
|
+
}]
|
|
12464
12452
|
} : {};
|
|
12465
|
-
}, transformVariables: (variables) => {
|
|
12466
|
-
return {
|
|
12467
|
-
options: {
|
|
12468
|
-
...variables.options,
|
|
12469
|
-
filterOperator: "OR"
|
|
12470
|
-
}
|
|
12471
|
-
};
|
|
12472
12453
|
}, additionalColumns: {
|
|
12473
12454
|
name: {
|
|
12474
12455
|
meta: {
|
|
@@ -19200,13 +19181,16 @@ function SellerOrdersCard({
|
|
|
19200
19181
|
] }, sellerOrder.id);
|
|
19201
19182
|
}) });
|
|
19202
19183
|
}
|
|
19203
|
-
async function ensureOrderWithIdExists(context, params) {
|
|
19184
|
+
async function ensureOrderWithIdExists(context, params, pageId2 = "order-detail") {
|
|
19204
19185
|
if (!params.id) {
|
|
19205
19186
|
throw new Error("ID param is required");
|
|
19206
19187
|
}
|
|
19207
|
-
const
|
|
19188
|
+
const {
|
|
19189
|
+
extendedQuery
|
|
19190
|
+
} = extendDetailFormQuery(addCustomFields(orderDetailDocument, {
|
|
19208
19191
|
includeNestedFragments: ["OrderLine", "Fulfillment"]
|
|
19209
|
-
}),
|
|
19192
|
+
}), pageId2);
|
|
19193
|
+
const result = await context.queryClient.ensureQueryData(getDetailQueryOptions(extendedQuery, {
|
|
19210
19194
|
id: params.id
|
|
19211
19195
|
}));
|
|
19212
19196
|
if (!result.order) {
|
|
@@ -19214,9 +19198,18 @@ async function ensureOrderWithIdExists(context, params) {
|
|
|
19214
19198
|
}
|
|
19215
19199
|
return result.order;
|
|
19216
19200
|
}
|
|
19217
|
-
|
|
19218
|
-
|
|
19201
|
+
function clearPreloadedOrder(context, id) {
|
|
19202
|
+
context.queryClient.removeQueries({
|
|
19203
|
+
queryKey: getDetailQueryOptions(orderDetailDocument, {
|
|
19204
|
+
id
|
|
19205
|
+
}).queryKey,
|
|
19206
|
+
exact: true
|
|
19207
|
+
});
|
|
19208
|
+
}
|
|
19209
|
+
async function commonRegularOrderLoader(context, params, pageId2 = "order-detail") {
|
|
19210
|
+
const order = await ensureOrderWithIdExists(context, params, pageId2);
|
|
19219
19211
|
if (order.state === "Draft") {
|
|
19212
|
+
clearPreloadedOrder(context, params.id);
|
|
19220
19213
|
throw redirect({
|
|
19221
19214
|
to: `/orders/draft/${params.id}`
|
|
19222
19215
|
});
|
|
@@ -19226,6 +19219,7 @@ async function commonRegularOrderLoader(context, params) {
|
|
|
19226
19219
|
async function loadRegularOrder(context, params) {
|
|
19227
19220
|
const order = await commonRegularOrderLoader(context, params);
|
|
19228
19221
|
if (order.state === "Modifying") {
|
|
19222
|
+
clearPreloadedOrder(context, params.id);
|
|
19229
19223
|
throw redirect({
|
|
19230
19224
|
to: `/orders/${params.id}/modify`
|
|
19231
19225
|
});
|
|
@@ -19243,6 +19237,7 @@ async function loadRegularOrder(context, params) {
|
|
|
19243
19237
|
async function loadDraftOrder(context, params) {
|
|
19244
19238
|
const order = await ensureOrderWithIdExists(context, params);
|
|
19245
19239
|
if (order.state !== "Draft") {
|
|
19240
|
+
clearPreloadedOrder(context, params.id);
|
|
19246
19241
|
throw redirect({
|
|
19247
19242
|
to: `/orders/${params.id}`
|
|
19248
19243
|
});
|
|
@@ -19258,8 +19253,9 @@ async function loadDraftOrder(context, params) {
|
|
|
19258
19253
|
};
|
|
19259
19254
|
}
|
|
19260
19255
|
async function loadModifyingOrder(context, params) {
|
|
19261
|
-
const order = await commonRegularOrderLoader(context, params);
|
|
19256
|
+
const order = await commonRegularOrderLoader(context, params, "order-modify");
|
|
19262
19257
|
if (order.state !== "Modifying") {
|
|
19258
|
+
clearPreloadedOrder(context, params.id);
|
|
19263
19259
|
throw redirect({
|
|
19264
19260
|
to: `/orders/${params.id}`
|
|
19265
19261
|
});
|
|
@@ -19283,9 +19279,12 @@ async function loadSellerOrder(context, params) {
|
|
|
19283
19279
|
if (!params.sellerOrderId || !params.aggregateOrderId) {
|
|
19284
19280
|
throw new Error("Both seller order ID and aggregate order ID params are required");
|
|
19285
19281
|
}
|
|
19286
|
-
const
|
|
19282
|
+
const {
|
|
19283
|
+
extendedQuery
|
|
19284
|
+
} = extendDetailFormQuery(addCustomFields(orderDetailDocument, {
|
|
19287
19285
|
includeNestedFragments: ["OrderLine", "Fulfillment"]
|
|
19288
|
-
}),
|
|
19286
|
+
}), "seller-order-detail");
|
|
19287
|
+
const result = await context.queryClient.ensureQueryData(getDetailQueryOptions(extendedQuery, {
|
|
19289
19288
|
id: params.sellerOrderId
|
|
19290
19289
|
}));
|
|
19291
19290
|
if (!result.order) {
|
|
@@ -19298,11 +19297,13 @@ async function loadSellerOrder(context, params) {
|
|
|
19298
19297
|
throw new Error(`Seller order ${params.sellerOrderId} does not belong to aggregate order ${params.aggregateOrderId}`);
|
|
19299
19298
|
}
|
|
19300
19299
|
if (result.order.state === "Draft") {
|
|
19300
|
+
clearPreloadedOrder(context, params.sellerOrderId);
|
|
19301
19301
|
throw redirect({
|
|
19302
19302
|
to: `/orders/draft/${params.sellerOrderId}`
|
|
19303
19303
|
});
|
|
19304
19304
|
}
|
|
19305
19305
|
if (result.order.state === "Modifying") {
|
|
19306
|
+
clearPreloadedOrder(context, params.sellerOrderId);
|
|
19306
19307
|
throw redirect({
|
|
19307
19308
|
to: `/orders/${params.sellerOrderId}/modify`
|
|
19308
19309
|
});
|