randmarcomps 1.60.0 → 1.62.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 +207 -43
- package/dist/randmarcomps.js +2817 -2587
- package/dist/randmarcomps.umd.cjs +59 -34
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -94,6 +94,16 @@ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
|
|
|
94
94
|
|
|
95
95
|
export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
96
96
|
|
|
97
|
+
declare interface IManufacturerCategory {
|
|
98
|
+
AutoReorder: boolean;
|
|
99
|
+
CategoryCode: string;
|
|
100
|
+
CategoryName: string;
|
|
101
|
+
ManufacturerId: string;
|
|
102
|
+
Niche: string;
|
|
103
|
+
QualificationRequired: boolean;
|
|
104
|
+
Starred: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
97
107
|
export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
98
108
|
|
|
99
109
|
export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
|
|
@@ -113,9 +123,197 @@ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">
|
|
|
113
123
|
onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
114
124
|
}
|
|
115
125
|
|
|
126
|
+
declare interface IOpportunityDetail {
|
|
127
|
+
Active: boolean;
|
|
128
|
+
BidNumber: string;
|
|
129
|
+
EndDate: string;
|
|
130
|
+
Opportunity: string;
|
|
131
|
+
ManufacturerId: string;
|
|
132
|
+
Price: number;
|
|
133
|
+
Product: IProduct;
|
|
134
|
+
RandmarSKU: string;
|
|
135
|
+
Rebate: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare interface IProduct {
|
|
139
|
+
ManufacturerName: string;
|
|
140
|
+
ManufacturerId: string;
|
|
141
|
+
Manufacturer: IProductManufacturer;
|
|
142
|
+
Orders: IProductOrder[];
|
|
143
|
+
Shipments: IProductShipment[];
|
|
144
|
+
Invoices: IProductInvoice[];
|
|
145
|
+
Credits: IProductCredit[];
|
|
146
|
+
Returns: IProductReturn[];
|
|
147
|
+
InstantRebate: IProductInstantRebate;
|
|
148
|
+
Newest: IProductNewest[];
|
|
149
|
+
RetailPricing: IProductRetailPricing[];
|
|
150
|
+
ManufacturerCategory: IManufacturerCategory;
|
|
151
|
+
Opportunities: IOpportunityDetail[];
|
|
152
|
+
Distribution?: {
|
|
153
|
+
Price: number;
|
|
154
|
+
RegularPrice: number;
|
|
155
|
+
MAP: number;
|
|
156
|
+
Inventory: IWarehouseInventory[];
|
|
157
|
+
};
|
|
158
|
+
MPN: string;
|
|
159
|
+
RandmarSKU: string;
|
|
160
|
+
RandmarTitle: string;
|
|
161
|
+
UPC: string;
|
|
162
|
+
UnitWeight: number;
|
|
163
|
+
SkidQuantity: number;
|
|
164
|
+
MasterCarton: number;
|
|
165
|
+
CanBeAllocated: boolean;
|
|
166
|
+
AvailableToBuy: boolean;
|
|
167
|
+
SerialNumber: boolean;
|
|
168
|
+
AutoUpdate: boolean;
|
|
169
|
+
LastMaintainedDate: number;
|
|
170
|
+
Category: string;
|
|
171
|
+
CreatedBy: string;
|
|
172
|
+
ProductType: string;
|
|
173
|
+
ShopifyProduct: object;
|
|
174
|
+
BodyHTML: string;
|
|
175
|
+
Title: string;
|
|
176
|
+
MAP: number;
|
|
177
|
+
State: string;
|
|
178
|
+
OpportunityOnly: boolean;
|
|
179
|
+
Receipts: IReceivingProduct[];
|
|
180
|
+
VoiceoverCaption: string;
|
|
181
|
+
SceneName: string;
|
|
182
|
+
Require3DScan: boolean;
|
|
183
|
+
TransparencyCode: boolean;
|
|
184
|
+
CountryCodeOfOrigin: string | undefined;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare interface IProductCredit {
|
|
188
|
+
RandmarSKU: string;
|
|
189
|
+
QuantityOrdered: number;
|
|
190
|
+
QuantityShipped: number;
|
|
191
|
+
CreditNumber: string;
|
|
192
|
+
Location: string;
|
|
193
|
+
ManufacturerPartNumber: string;
|
|
194
|
+
Category: string;
|
|
195
|
+
ResellerId: string;
|
|
196
|
+
ShipToName: string;
|
|
197
|
+
UnitPrice: number;
|
|
198
|
+
PONumber: string;
|
|
199
|
+
CreditDate: number;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare interface IProductInstantRebate {
|
|
203
|
+
RebateAmount: number;
|
|
204
|
+
StartDate: string;
|
|
205
|
+
EndDate: string;
|
|
206
|
+
MPN: string;
|
|
207
|
+
RandmarTitle: string;
|
|
208
|
+
RandmarSKU: string;
|
|
209
|
+
UPC: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare interface IProductInvoice {
|
|
213
|
+
RandmarSKU: string;
|
|
214
|
+
OrderNumber: string;
|
|
215
|
+
QuantityOrdered: number;
|
|
216
|
+
QuantityShipped: number;
|
|
217
|
+
InvoiceNumber: string;
|
|
218
|
+
Location: string;
|
|
219
|
+
ManufacturerPartNumber: string;
|
|
220
|
+
Category: string;
|
|
221
|
+
ResellerId: string;
|
|
222
|
+
ShipToName: string;
|
|
223
|
+
UnitPrice: number;
|
|
224
|
+
PONumber: string;
|
|
225
|
+
InvoiceDate: number;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare interface IProductManufacturer {
|
|
229
|
+
ManufacturerId: string;
|
|
230
|
+
PublicEmail: string;
|
|
231
|
+
PublicName: string;
|
|
232
|
+
Website: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare interface IProductNewest {
|
|
236
|
+
MPN: string;
|
|
237
|
+
RandmarTitle: string;
|
|
238
|
+
RandmarSKU: string;
|
|
239
|
+
UPC: string;
|
|
240
|
+
LastMaintainedDate: number;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare interface IProductOrder {
|
|
244
|
+
RandmarSKU: string;
|
|
245
|
+
OrderNumber: string;
|
|
246
|
+
Location: string;
|
|
247
|
+
ResellerId: string;
|
|
248
|
+
QuantityOrdered: number;
|
|
249
|
+
QuantityBackOrdered: number;
|
|
250
|
+
ShipToName: string;
|
|
251
|
+
UnitPrice: number;
|
|
252
|
+
PONumber: string;
|
|
253
|
+
ManufacturerPartNumber: string;
|
|
254
|
+
ShipmentDate: number;
|
|
255
|
+
OrderDate: number;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare interface IProductRetailPricing {
|
|
259
|
+
RetailerName: string;
|
|
260
|
+
Price: number;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare interface IProductReturn {
|
|
264
|
+
RandmarSKU: string;
|
|
265
|
+
Quantity: number;
|
|
266
|
+
InvoiceNumber: string;
|
|
267
|
+
CreditNumber: string;
|
|
268
|
+
WarehouseLocation: string;
|
|
269
|
+
ResellerId: number;
|
|
270
|
+
ContactEmail: string;
|
|
271
|
+
ReasonForReturn: string;
|
|
272
|
+
ReturnNumber: string;
|
|
273
|
+
Status: string;
|
|
274
|
+
RequestDate: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare interface IProductShipment {
|
|
278
|
+
ShipmentNumber: string;
|
|
279
|
+
Location: string;
|
|
280
|
+
QuantityOrdered: number;
|
|
281
|
+
QuantityShipped: number;
|
|
282
|
+
UnitPrice: number;
|
|
283
|
+
OrderNumber: string;
|
|
284
|
+
ShipToName: string;
|
|
285
|
+
PONumber: string;
|
|
286
|
+
ManufacturerPartNumber: string;
|
|
287
|
+
RandmarSKU: string;
|
|
288
|
+
ShipmentDate: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare interface IReceivingProduct {
|
|
292
|
+
RandmarSKU: string;
|
|
293
|
+
MPN: string;
|
|
294
|
+
Description: string;
|
|
295
|
+
Location: string;
|
|
296
|
+
Quantity: number;
|
|
297
|
+
VendorName: string;
|
|
298
|
+
ReceiptDate: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare interface IWarehouseInventory {
|
|
302
|
+
RandmarSKU: string;
|
|
303
|
+
WarehouseId: string;
|
|
304
|
+
WarehouseType: string;
|
|
305
|
+
Name: string;
|
|
306
|
+
City: string;
|
|
307
|
+
Province: string;
|
|
308
|
+
Country: string;
|
|
309
|
+
AvailableQuantity: number;
|
|
310
|
+
PurchaseOrderQuantity: number;
|
|
311
|
+
BinLocation: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
116
314
|
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
117
315
|
|
|
118
|
-
export declare function Layout({ children, rightMenu, routes, footer, handleValidSearch, dashboardTitle, onSignOut, }: LayoutProps): JSX.Element;
|
|
316
|
+
export declare function Layout({ children, rightMenu, routes, footer, handleValidSearch, dashboardTitle, onSignOut, searchPlaceholder }: LayoutProps): JSX.Element;
|
|
119
317
|
|
|
120
318
|
declare interface LayoutProps {
|
|
121
319
|
children: React.ReactNode;
|
|
@@ -125,6 +323,7 @@ declare interface LayoutProps {
|
|
|
125
323
|
handleValidSearch: (q: string) => void;
|
|
126
324
|
dashboardTitle?: string;
|
|
127
325
|
onSignOut?: () => void;
|
|
326
|
+
searchPlaceholder?: string;
|
|
128
327
|
}
|
|
129
328
|
|
|
130
329
|
declare type MaskType = "phone" | "postal-code-ca" | "zip-code-us";
|
|
@@ -145,57 +344,21 @@ export declare interface NavRoute {
|
|
|
145
344
|
showInNav?: boolean;
|
|
146
345
|
}
|
|
147
346
|
|
|
148
|
-
declare
|
|
149
|
-
Opportunity: string;
|
|
150
|
-
BidNumber: string;
|
|
151
|
-
Price: number;
|
|
152
|
-
Rebate: number;
|
|
153
|
-
EndDate?: string;
|
|
154
|
-
Active?: boolean;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export declare function ProductCard({ product, addToCart, syncToShopify, viewProductAction, addToCartAction, syncToShopifyAction, isActionLoading, }: ProductCardProps): JSX.Element;
|
|
347
|
+
export declare function ProductCard({ product, addToCart, syncToShopify, defaultOpportunityNumber, viewProductAction, addToCartAction, isAddToCartActionLoading, syncToShopifyAction, isSyncToShopifyActionLoading, }: ProductCardProps): JSX.Element;
|
|
158
348
|
|
|
159
349
|
export declare interface ProductCardProps {
|
|
160
|
-
product?:
|
|
161
|
-
RandmarSKU: string;
|
|
162
|
-
RandmarTitle: string;
|
|
163
|
-
Title?: string;
|
|
164
|
-
MPN?: string;
|
|
165
|
-
UPC?: string;
|
|
166
|
-
UnitWeight?: number;
|
|
167
|
-
MAP?: number;
|
|
168
|
-
AvailableToBuy?: boolean;
|
|
169
|
-
SerialNumber?: boolean;
|
|
170
|
-
TransparencyCode?: boolean;
|
|
171
|
-
ManufacturerCategory?: {
|
|
172
|
-
QualificationRequired?: boolean;
|
|
173
|
-
};
|
|
174
|
-
AutoUpdate?: boolean;
|
|
175
|
-
ShopifyProduct?: object;
|
|
176
|
-
Distribution?: {
|
|
177
|
-
RegularPrice: number;
|
|
178
|
-
Price: number;
|
|
179
|
-
Inventory?: {
|
|
180
|
-
AvailableQuantity?: number;
|
|
181
|
-
}[];
|
|
182
|
-
};
|
|
183
|
-
Opportunities?: Opportunity[];
|
|
184
|
-
InstantRebate?: {
|
|
185
|
-
EndDate?: string;
|
|
186
|
-
};
|
|
187
|
-
ManufacturerId?: string;
|
|
188
|
-
ManufacturerName?: string;
|
|
189
|
-
};
|
|
350
|
+
product?: IProduct;
|
|
190
351
|
addToCart?: boolean;
|
|
191
352
|
syncToShopify?: boolean;
|
|
353
|
+
defaultOpportunityNumber?: string;
|
|
192
354
|
viewProductAction?: () => void;
|
|
193
355
|
addToCartAction?: (state: {
|
|
194
356
|
quantity: number;
|
|
195
357
|
bidNumber: string | null;
|
|
196
358
|
}) => void;
|
|
359
|
+
isAddToCartActionLoading?: boolean;
|
|
197
360
|
syncToShopifyAction?: () => void;
|
|
198
|
-
|
|
361
|
+
isSyncToShopifyActionLoading?: boolean;
|
|
199
362
|
}
|
|
200
363
|
|
|
201
364
|
export declare function ProductImage({ randmarSKU, size, alt, secondaryContent }: ProductImageProps): JSX.Element;
|
|
@@ -375,12 +538,13 @@ export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProvide
|
|
|
375
538
|
|
|
376
539
|
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
377
540
|
|
|
378
|
-
export declare function Topbar({ onSignOut, handleValidSearch, rightMenu }: TopbarProps): JSX.Element;
|
|
541
|
+
export declare function Topbar({ onSignOut, handleValidSearch, rightMenu, searchPlaceholder }: TopbarProps): JSX.Element;
|
|
379
542
|
|
|
380
543
|
declare interface TopbarProps {
|
|
381
544
|
onSignOut?: () => void;
|
|
382
545
|
rightMenu?: React.ReactNode;
|
|
383
546
|
handleValidSearch: (q: string) => void;
|
|
547
|
+
searchPlaceholder?: string;
|
|
384
548
|
}
|
|
385
549
|
|
|
386
550
|
export declare function useIsMobile(): boolean;
|