randmarcomps 1.392.0 → 1.394.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/randmarcomps.d.ts +11 -1
- package/dist/randmarcomps.js +36 -3
- package/dist/randmarcomps.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
32
32
|
import * as React_2 from 'react';
|
|
33
33
|
import { ReactNode } from 'react';
|
|
34
34
|
import { RefAttributes } from 'react';
|
|
35
|
+
import { Requisition } from 'randmar-api-client';
|
|
35
36
|
import { Reseller } from 'randmar-api-client';
|
|
36
37
|
import { Return } from 'randmar-api-client';
|
|
37
38
|
import { SalesData } from 'randmar-api-client';
|
|
@@ -340,6 +341,15 @@ export declare interface CountryFlagProps {
|
|
|
340
341
|
className?: string;
|
|
341
342
|
}
|
|
342
343
|
|
|
344
|
+
declare type CustomProduct = Product & {
|
|
345
|
+
Requisitions?: CustomRequisition[] | null;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
declare type CustomRequisition = Requisition & {
|
|
349
|
+
QuantityOutstanding?: number;
|
|
350
|
+
QuantityReceived?: number;
|
|
351
|
+
};
|
|
352
|
+
|
|
343
353
|
/**
|
|
344
354
|
* Defines the structure for a single data point in the chart.
|
|
345
355
|
* The first key is assumed to be the x-axis label.
|
|
@@ -548,7 +558,7 @@ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">
|
|
|
548
558
|
declare interface IProps {
|
|
549
559
|
applicationId: string;
|
|
550
560
|
sku?: string;
|
|
551
|
-
product?:
|
|
561
|
+
product?: CustomProduct;
|
|
552
562
|
productDefaultOpportunityNumber?: string;
|
|
553
563
|
productOnAddToCart?: (state: {
|
|
554
564
|
quantity: number;
|
package/dist/randmarcomps.js
CHANGED
|
@@ -93743,6 +93743,27 @@ function RequisitionsTable({
|
|
|
93743
93743
|
enableSorting: !0,
|
|
93744
93744
|
enableFiltering: !0
|
|
93745
93745
|
},
|
|
93746
|
+
{
|
|
93747
|
+
accessorKey: "QuantityOrdered",
|
|
93748
|
+
header: "Quantity Ordered",
|
|
93749
|
+
cell: ({ row: S }) => S.original.QuantityOrdered ?? "—",
|
|
93750
|
+
enableSorting: !0,
|
|
93751
|
+
enableFiltering: !0
|
|
93752
|
+
},
|
|
93753
|
+
{
|
|
93754
|
+
accessorKey: "QuantityOutstanding",
|
|
93755
|
+
header: "Quantity Outstanding",
|
|
93756
|
+
cell: ({ row: S }) => S.original.QuantityOutstanding ?? "—",
|
|
93757
|
+
enableSorting: !0,
|
|
93758
|
+
enableFiltering: !0
|
|
93759
|
+
},
|
|
93760
|
+
{
|
|
93761
|
+
accessorKey: "QuantityReceived",
|
|
93762
|
+
header: "Quantity Received",
|
|
93763
|
+
cell: ({ row: S }) => S.original.QuantityReceived ?? "—",
|
|
93764
|
+
enableSorting: !0,
|
|
93765
|
+
enableFiltering: !0
|
|
93766
|
+
},
|
|
93746
93767
|
{
|
|
93747
93768
|
accessorKey: "SubTotal",
|
|
93748
93769
|
header: "Sub Total",
|
|
@@ -93829,6 +93850,18 @@ function RequisitionsTable({
|
|
|
93829
93850
|
new Set(
|
|
93830
93851
|
o.map((_) => _.RequisitionDate).filter((_) => _ != null).map(String)
|
|
93831
93852
|
)
|
|
93853
|
+
), S.QuantityOrdered = Array.from(
|
|
93854
|
+
new Set(
|
|
93855
|
+
o.map((_) => _.QuantityOrdered).filter((_) => _ != null).map(String)
|
|
93856
|
+
)
|
|
93857
|
+
), S.QuantityOutstanding = Array.from(
|
|
93858
|
+
new Set(
|
|
93859
|
+
o.map((_) => _.QuantityOutstanding).filter((_) => _ != null).map(String)
|
|
93860
|
+
)
|
|
93861
|
+
), S.QuantityReceived = Array.from(
|
|
93862
|
+
new Set(
|
|
93863
|
+
o.map((_) => _.QuantityReceived).filter((_) => _ != null).map(String)
|
|
93864
|
+
)
|
|
93832
93865
|
), S.Location = Array.from(
|
|
93833
93866
|
new Set(o.map((_) => _.Location).filter((_) => _ != null))
|
|
93834
93867
|
), S.RequestedBy = Array.from(
|
|
@@ -94462,13 +94495,13 @@ function OpportunitiesTable({
|
|
|
94462
94495
|
id: "actions",
|
|
94463
94496
|
header: "Actions",
|
|
94464
94497
|
cell: ({ row: ne }) => {
|
|
94465
|
-
var
|
|
94498
|
+
var Fe, je;
|
|
94466
94499
|
const ae = ne.original;
|
|
94467
94500
|
if (!ae.BidNumber)
|
|
94468
94501
|
return /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "Actions unavailable" });
|
|
94469
|
-
const $e = ae.BidNumber, Ne = (
|
|
94502
|
+
const $e = ae.BidNumber, Ne = (Fe = l[$e]) == null ? void 0 : Fe.isSettingDefault, oe = (_ == null ? void 0 : _.BidNumber) === $e && ((je = l[$e]) == null ? void 0 : je.isSendingReport), Ae = Ne || oe, ge = ae.CanBeSetAsDefault === !0, Ve = E != null && E.IsManufacturer ? `/${t}/Opportunity/${ae.BidNumber}` : `/${t}/Opportunity/${ae.ManufacturerId}/${ae.BidNumber}`;
|
|
94470
94503
|
return /* @__PURE__ */ jsxs("div", { className: "flex space-x-2", children: [
|
|
94471
|
-
/* @__PURE__ */ jsx(Link, { to:
|
|
94504
|
+
/* @__PURE__ */ jsx(Link, { to: Ve, children: /* @__PURE__ */ jsxs(Button$1, { variant: "outline", size: "sm", className: "flex items-center", children: [
|
|
94472
94505
|
/* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
|
|
94473
94506
|
" View"
|
|
94474
94507
|
] }) }),
|