@dropins/storefront-purchase-order 0.0.2-alpha4 → 0.0.3-alpha1
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/components/PurchaseOrderConfirmationContent/index.d.ts +11 -3
- package/containers/CompanyPurchaseOrders.js +1 -1
- package/containers/PurchaseOrderConfirmation.js +1 -1
- package/containers/PurchaseOrderConfirmation.js.map +1 -1
- package/containers/RequireApprovalPurchaseOrders.js +1 -1
- package/containers/index.d.ts +16 -0
- package/package.json +1 -1
- package/types/components/purchaseOrderConfirmationContent.types.d.ts +0 -5
- package/types/containers/purchaseOrderConfirmationProps.types.d.ts +0 -5
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
2
5
|
* Copyright 2025 Adobe
|
|
3
6
|
* All Rights Reserved.
|
|
4
7
|
*
|
|
5
|
-
* NOTICE:
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
8
16
|
*******************************************************************/
|
|
9
17
|
export * from './PurchaseOrderConfirmationContent';
|
|
10
18
|
export { PurchaseOrderConfirmationContent as default } from './PurchaseOrderConfirmationContent';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as y,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as x}from"@dropins/tools/lib.js";import{E as w,u as N,a as S,P as D,b as R,d as E}from"../chunks/useCustomerRolePermissions.js";import{P as j}from"../chunks/PurchaseOrdersTableActions.js"
|
|
3
|
+
import{jsxs as y,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as x}from"@dropins/tools/lib.js";import{E as w,u as N,a as S,P as D,b as R,d as E}from"../chunks/useCustomerRolePermissions.js";import{P as j}from"../chunks/PurchaseOrdersTableActions.js";/* empty css */import{useText as v}from"@dropins/tools/i18n.js";import"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/preact-hooks.js";import"../chunks/getPurchaseOrders.js";import"@dropins/tools/fetch-graphql.js";const q=({initialPageSize:t=E,routePurchaseOrderDetails:o,setColumns:u,setRowsData:d,className:c="",withHeader:l=!0,withWrapper:n=!0,skeletonRowCount:i=5})=>{const m=w.COMPANY_PURCHASE_ORDERS,e=v({headerText:"PurchaseOrders.companyPurchaseOrders.containerTitle",actionView:"PurchaseOrders.purchaseOrdersTable.actionView",poNumber:"PurchaseOrders.purchaseOrdersTable.tableColumns.poNumber",orderNumber:"PurchaseOrders.purchaseOrdersTable.tableColumns.orderNumber",createdDate:"PurchaseOrders.purchaseOrdersTable.tableColumns.createdDate",updatedDate:"PurchaseOrders.purchaseOrdersTable.tableColumns.updatedDate",createdBy:"PurchaseOrders.purchaseOrdersTable.tableColumns.createdBy",status:"PurchaseOrders.purchaseOrdersTable.tableColumns.status",total:"PurchaseOrders.purchaseOrdersTable.tableColumns.total",action:"PurchaseOrders.purchaseOrdersTable.tableColumns.action",selectAllAriaLabel:"PurchaseOrders.purchaseOrdersTable.tableColumns.selectAllAriaLabel",noPurchaseOrders:"PurchaseOrders.companyPurchaseOrders.noPurchaseOrders"}),{permissions:h,loadingPermissions:p}=N(),{totalCount:O,loading:s,tableConfig:a,paginationConfig:P,pageSizeConfig:b,selectedOrderIds:C,handleRejectSelected:T,handleApproveSelected:f,isAdmin:g,alertMessageConfig:A}=S({view:m,routePurchaseOrderDetails:o,setColumns:u,setRowsData:d,initialPageSize:t,permissions:h,loadingPermissions:p,t:e});return y("div",{className:x(["company-purchase-orders",c]),"data-testid":"company-purchase-orders-container",children:[l?r(D,{headerText:e.headerText}):null,r(R,{header:g?r(j,{loading:s,selectedCount:C.length,handleRejectSelected:T,handleApproveSelected:f}):null,totalCount:O,columns:a.columns,rows:a.rows,paginationConfig:P,loading:s,skeletonRowCount:i,pageSizeConfig:b,emptyTitle:e.noPurchaseOrders,alertMessageConfig:A,withWrapper:n})]})};export{q as CompanyPurchaseOrders,q as default};
|
|
4
4
|
//# sourceMappingURL=CompanyPurchaseOrders.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as s,jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{classes as
|
|
3
|
+
import{jsxs as s,jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{classes as c}from"@dropins/tools/lib.js";import"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";/* empty css */import{useText as a}from"@dropins/tools/i18n.js";const d=({className:t,purchaseOrderNumber:r,routePurchaseOrderDetails:n,...o})=>{const i=a({title:"PurchaseOrders.purchaseOrderConfirmation.title",description:"PurchaseOrders.purchaseOrderConfirmation.description",helpText:"PurchaseOrders.purchaseOrderConfirmation.helpText",button:"PurchaseOrders.purchaseOrderConfirmation.button"});return s("div",{...o,className:c(["purchase-orders-confirmation-content",t]),children:[e("h1",{className:"purchase-orders-confirmation-content__title",children:i.title}),s("p",{className:"purchase-orders-confirmation-content__description",children:[i.description,s("a",{className:"purchase-orders-confirmation-content__order-link",href:n()??"",children:["#",r]})]}),e("p",{className:"purchase-orders-confirmation-content__help-text",children:i.helpText})]})},O=({className:t,purchaseOrderNumber:r,routePurchaseOrderDetails:n,...o})=>r?e("div",{...o,className:c(["b2b-purchase-order-confirmation",t]),children:e(d,{purchaseOrderNumber:r,routePurchaseOrderDetails:n})}):null;export{O as PurchaseOrderConfirmation,O as default};
|
|
4
4
|
//# sourceMappingURL=PurchaseOrderConfirmation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PurchaseOrderConfirmation.js","sources":["/@dropins/storefront-purchase-order/src/components/PurchaseOrderConfirmationContent/PurchaseOrderConfirmationContent.tsx","/@dropins/storefront-purchase-order/src/containers/PurchaseOrderConfirmation/PurchaseOrderConfirmation.tsx"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { FunctionComponent } from 'preact';\nimport { classes
|
|
1
|
+
{"version":3,"file":"PurchaseOrderConfirmation.js","sources":["/@dropins/storefront-purchase-order/src/components/PurchaseOrderConfirmationContent/PurchaseOrderConfirmationContent.tsx","/@dropins/storefront-purchase-order/src/containers/PurchaseOrderConfirmation/PurchaseOrderConfirmation.tsx"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { FunctionComponent } from 'preact';\nimport { classes } from '@adobe-commerce/elsie/lib';\nimport { PurchaseOrderConfirmationContentProps } from '@/b2b-purchase-order/types/components';\nimport { useText } from '@adobe-commerce/elsie/i18n';\nimport '@/b2b-purchase-order/components/PurchaseOrderConfirmationContent/PurchaseOrderConfirmationContent.css';\n\nexport const PurchaseOrderConfirmationContent: FunctionComponent<\n PurchaseOrderConfirmationContentProps\n> = ({\n className,\n purchaseOrderNumber,\n routePurchaseOrderDetails,\n ...props\n}) => {\n const t = useText({\n title: 'PurchaseOrders.purchaseOrderConfirmation.title',\n description: 'PurchaseOrders.purchaseOrderConfirmation.description',\n helpText: 'PurchaseOrders.purchaseOrderConfirmation.helpText',\n button: 'PurchaseOrders.purchaseOrderConfirmation.button',\n });\n\n return (\n <div\n {...props}\n className={classes(['purchase-orders-confirmation-content', className])}\n >\n <h1 className=\"purchase-orders-confirmation-content__title\">{t.title}</h1>\n <p className=\"purchase-orders-confirmation-content__description\">\n {t.description}\n <a\n className=\"purchase-orders-confirmation-content__order-link\"\n href={routePurchaseOrderDetails() ?? ''}\n >\n #{purchaseOrderNumber}\n </a>\n </p>\n <p className=\"purchase-orders-confirmation-content__help-text\">\n {t.helpText}\n </p>\n </div>\n );\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { classes, Container } from '@adobe-commerce/elsie/lib';\nimport { PurchaseOrderConfirmationContent } from '@/b2b-purchase-order/components';\nimport { PurchaseOrderConfirmationProps } from '@/b2b-purchase-order/types/containers';\n\nexport const PurchaseOrderConfirmation: Container<\n PurchaseOrderConfirmationProps\n> = ({\n className,\n purchaseOrderNumber,\n routePurchaseOrderDetails,\n ...props\n}) => {\n if (!purchaseOrderNumber) return null;\n\n return (\n <div\n {...props}\n className={classes(['b2b-purchase-order-confirmation', className])}\n >\n <PurchaseOrderConfirmationContent\n purchaseOrderNumber={purchaseOrderNumber}\n routePurchaseOrderDetails={routePurchaseOrderDetails}\n />\n </div>\n );\n};\n"],"names":["PurchaseOrderConfirmationContent","className","purchaseOrderNumber","routePurchaseOrderDetails","props","t","useText","jsxs","classes","jsx","PurchaseOrderConfirmation"],"mappings":"qSAuBO,MAAMA,EAET,CAAC,CACH,UAAAC,EACA,oBAAAC,EACA,0BAAAC,EACA,GAAGC,CACL,IAAM,CACJ,MAAMC,EAAIC,EAAQ,CAChB,MAAO,iDACP,YAAa,uDACb,SAAU,oDACV,OAAQ,iDAAA,CACT,EAED,OACEC,EAAC,MAAA,CACE,GAAGH,EACJ,UAAWI,EAAQ,CAAC,uCAAwCP,CAAS,CAAC,EAEtE,SAAA,CAAAQ,EAAC,KAAA,CAAG,UAAU,8CAA+C,SAAAJ,EAAE,MAAM,EACrEE,EAAC,IAAA,CAAE,UAAU,oDACV,SAAA,CAAAF,EAAE,YACHE,EAAC,IAAA,CACC,UAAU,mDACV,KAAMJ,KAA+B,GACtC,SAAA,CAAA,IACGD,CAAA,CAAA,CAAA,CACJ,EACF,EACAO,EAAC,IAAA,CAAE,UAAU,kDACV,WAAE,QAAA,CACL,CAAA,CAAA,CAAA,CAGN,ECrCaC,EAET,CAAC,CACH,UAAAT,EACA,oBAAAC,EACA,0BAAAC,EACA,GAAGC,CACL,IACOF,EAGHO,EAAC,MAAA,CACE,GAAGL,EACJ,UAAWI,EAAQ,CAAC,kCAAmCP,CAAS,CAAC,EAEjE,SAAAQ,EAACT,EAAA,CACC,oBAAAE,EACA,0BAAAC,CAAA,CAAA,CACF,CAAA,EAV6B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as f,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as R}from"@dropins/tools/lib.js";import{E as D,u as M,a as j,P as w,b as x,d as E}from"../chunks/useCustomerRolePermissions.js";import{P as S}from"../chunks/PurchaseOrdersTableActions.js"
|
|
3
|
+
import{jsxs as f,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as R}from"@dropins/tools/lib.js";import{E as D,u as M,a as j,P as w,b as x,d as E}from"../chunks/useCustomerRolePermissions.js";import{P as S}from"../chunks/PurchaseOrdersTableActions.js";/* empty css */import{useText as q}from"@dropins/tools/i18n.js";import"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/preact-hooks.js";import"../chunks/getPurchaseOrders.js";import"@dropins/tools/fetch-graphql.js";const F=({initialPageSize:o=E,routePurchaseOrderDetails:l,setColumns:d,setRowsData:u,className:c="",withHeader:i=!0,withWrapper:p=!0,skeletonRowCount:n=5})=>{const h=D.CUSTOMER_APPROVAL_PURCHASE_ORDERS,e=q({headerText:"PurchaseOrders.requireApprovalPurchaseOrders.containerTitle",actionView:"PurchaseOrders.purchaseOrdersTable.actionView",poNumber:"PurchaseOrders.purchaseOrdersTable.tableColumns.poNumber",orderNumber:"PurchaseOrders.purchaseOrdersTable.tableColumns.orderNumber",createdDate:"PurchaseOrders.purchaseOrdersTable.tableColumns.createdDate",updatedDate:"PurchaseOrders.purchaseOrdersTable.tableColumns.updatedDate",createdBy:"PurchaseOrders.purchaseOrdersTable.tableColumns.createdBy",status:"PurchaseOrders.purchaseOrdersTable.tableColumns.status",total:"PurchaseOrders.purchaseOrdersTable.tableColumns.total",action:"PurchaseOrders.purchaseOrdersTable.tableColumns.action",selectAllAriaLabel:"PurchaseOrders.purchaseOrdersTable.tableColumns.selectAllAriaLabel",noPurchaseOrders:"PurchaseOrders.requireApprovalPurchaseOrders.noPurchaseOrders",alertHeaderApprove:"PurchaseOrders.alertMessages.header.approve",alertHeaderReject:"PurchaseOrders.alertMessages.header.reject",alertHeaderError:"PurchaseOrders.alertMessages.header.error",alertDescriptionApprove:"PurchaseOrders.alertMessages.description.approve",alertDescriptionReject:"PurchaseOrders.alertMessages.description.reject",alertDescriptionError:"PurchaseOrders.alertMessages.description.error"}),{permissions:O,loadingPermissions:m}=M(),{totalCount:s,loading:a,tableConfig:t,paginationConfig:P,pageSizeConfig:b,selectedOrderIds:C,handleRejectSelected:T,handleApproveSelected:g,isRequireApprovalPOsView:A,alertMessageConfig:v}=j({view:h,routePurchaseOrderDetails:l,setColumns:d,setRowsData:u,initialPageSize:o,permissions:O,loadingPermissions:m,t:e});return f("div",{className:R(["require-approval-purchase-orders",c]),"data-testid":"require-approval-purchase-orders-container",children:[i?r(w,{headerText:e.headerText}):null,r(x,{header:A&&s>0?r(S,{loading:a,selectedCount:C.length,handleRejectSelected:T,handleApproveSelected:g}):null,totalCount:s,columns:t.columns,rows:t.rows,paginationConfig:P,loading:a,skeletonRowCount:n,pageSizeConfig:b,emptyTitle:e.noPurchaseOrders,alertMessageConfig:v,withWrapper:p})]})};export{F as RequireApprovalPurchaseOrders,F as default};
|
|
4
4
|
//# sourceMappingURL=RequireApprovalPurchaseOrders.js.map
|
package/containers/index.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
export * from './CustomerPurchaseOrders';
|
|
2
18
|
export * from './CompanyPurchaseOrders';
|
|
3
19
|
export * from './RequireApprovalPurchaseOrders';
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-purchase-order", "version": "0.0.
|
|
1
|
+
{"name": "@dropins/storefront-purchase-order", "version": "0.0.3-alpha1", "@dropins/tools": "1.5.1", "license": "SEE LICENSE IN LICENSE.md"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
2
1
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
2
|
|
|
4
3
|
export interface PurchaseOrderConfirmationContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
slots?: {
|
|
6
|
-
PurchaseOrderConfirmationCta?: SlotProps;
|
|
7
|
-
};
|
|
8
4
|
purchaseOrderNumber: string | number;
|
|
9
5
|
routePurchaseOrderDetails: () => string;
|
|
10
|
-
routePrimaryCta: () => string;
|
|
11
6
|
}
|
|
12
7
|
//# sourceMappingURL=purchaseOrderConfirmationContent.types.d.ts.map
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
2
1
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
2
|
|
|
4
3
|
export interface PurchaseOrderConfirmationProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
slots?: {
|
|
6
|
-
PurchaseOrderConfirmationCta?: SlotProps;
|
|
7
|
-
};
|
|
8
4
|
purchaseOrderNumber: string | number;
|
|
9
5
|
routePurchaseOrderDetails: () => string;
|
|
10
|
-
routePrimaryCta: () => string;
|
|
11
6
|
}
|
|
12
7
|
//# sourceMappingURL=purchaseOrderConfirmationProps.types.d.ts.map
|