@dropins/storefront-purchase-order 1.2.0 → 1.2.1-beta.1
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/CHANGELOG.md +12 -0
- package/api/addPurchaseOrderComment/addPurchaseOrderComment.d.ts +16 -2
- package/api/addPurchaseOrderComment/graphql/addPurchaseOrderComment.graphql.d.ts +0 -1
- package/api/addPurchaseOrderComment/index.d.ts +0 -1
- package/api/addPurchaseOrderItemsToCart/addPurchaseOrderItemsToCart.d.ts +16 -2
- package/api/addPurchaseOrderItemsToCart/graphql/addPurchaseOrderItemsToCart.graphql.d.ts +0 -1
- package/api/addPurchaseOrderItemsToCart/index.d.ts +0 -1
- package/api/approvePurchaseOrders/approvePurchaseOrders.d.ts +0 -2
- package/api/approvePurchaseOrders/graphql/approvePurchaseOrders.graphql.d.ts +1 -2
- package/api/approvePurchaseOrders/index.d.ts +0 -1
- package/api/cancelPurchaseOrders/cancelPurchaseOrders.d.ts +0 -2
- package/api/cancelPurchaseOrders/graphql/cancelPurchaseOrders.graphql.d.ts +1 -2
- package/api/cancelPurchaseOrders/index.d.ts +0 -1
- package/api/createPurchaseOrderApprovalRule/createPurchaseOrderApprovalRule.d.ts +0 -2
- package/api/createPurchaseOrderApprovalRule/graphql/createPurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/createPurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/currencyInfo/currencyInfo.d.ts +0 -1
- package/api/currencyInfo/graphql/currencyInfo.graphql.d.ts +0 -1
- package/api/currencyInfo/index.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/deletePurchaseOrderApprovalRule.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/graphql/deletePurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/fetch-graphql/fetch-graphql.d.ts +3 -4
- package/api/fetch-graphql/index.d.ts +0 -1
- package/api/fragments.d.ts +0 -1
- package/api/getPurchaseOrder/getPurchaseOrder.d.ts +16 -2
- package/api/getPurchaseOrder/graphql/getPurchaseOrder.graphql.d.ts +1 -2
- package/api/getPurchaseOrder/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRule/getPurchaseOrderApprovalRule.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRule/graphql/getPurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRuleMetadata/getPurchaseOrderApprovalRuleMetadata.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRuleMetadata/graphql/getPurchaseOrderApprovalRuleMetadata.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRuleMetadata/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRules/getPurchaseOrderApprovalRules.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRules/graphql/getPurchaseOrderApprovalRules.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRules/index.d.ts +0 -1
- package/api/getPurchaseOrders/getPurchaseOrders.d.ts +16 -2
- package/api/getPurchaseOrders/graphql/getPurchaseOrders.graphql.d.ts +1 -2
- package/api/getPurchaseOrders/index.d.ts +0 -1
- package/api/graphql/PurchaseOrderQuoteFragment.d.ts +0 -1
- package/api/graphql/PurchaseOrdersFragment.graphql.d.ts +1 -2
- package/api/index.d.ts +0 -1
- package/api/initialize/index.d.ts +0 -1
- package/api/initialize/initialize.d.ts +19 -5
- package/api/permissions.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/graphql/placeOrderForPurchaseOrder.graphql.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/index.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/placeOrderForPurchaseOrder.d.ts +16 -2
- package/api/placePurchaseOrder/graphql/placePurchaseOrder.graphql.d.ts +1 -2
- package/api/placePurchaseOrder/index.d.ts +0 -1
- package/api/placePurchaseOrder/placePurchaseOrder.d.ts +16 -2
- package/api/rejectPurchaseOrders/graphql/rejectPurchaseOrders.graphql.d.ts +1 -2
- package/api/rejectPurchaseOrders/index.d.ts +0 -1
- package/api/rejectPurchaseOrders/rejectPurchaseOrders.d.ts +0 -2
- package/api/updatePurchaseOrderApprovalRule/graphql/updatePurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/updatePurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/updatePurchaseOrderApprovalRule/updatePurchaseOrderApprovalRule.d.ts +0 -2
- package/api/validatePurchaseOrders/graphql/validatePurchaseOrders.graphql.d.ts +1 -2
- package/api/validatePurchaseOrders/index.d.ts +0 -1
- package/api/validatePurchaseOrders/validatePurchaseOrders.d.ts +0 -2
- package/api.d.ts +1 -1
- package/api.js +12 -12
- package/api.js.map +1 -1
- package/chunks/components.js +1 -1
- package/chunks/components.js.map +1 -1
- package/components/ApprovalRuleDetailsContent/ApprovalRuleDetailsContent.d.ts +16 -2
- package/components/ApprovalRuleDetailsContent/index.d.ts +0 -1
- package/components/ApprovalRuleForm/ApprovalRuleForm.d.ts +16 -2
- package/components/ApprovalRuleForm/blocks/ErrorMessage.d.ts +16 -2
- package/components/ApprovalRuleForm/blocks/Form.d.ts +18 -4
- package/components/ApprovalRuleForm/blocks/index.d.ts +0 -1
- package/components/ApprovalRuleForm/index.d.ts +0 -1
- package/components/FormLoader/FormLoader.d.ts +16 -2
- package/components/FormLoader/index.d.ts +0 -1
- package/components/PurchaseOrderApprovalFlowContent/PurchaseOrderApprovalFlowContent.d.ts +16 -2
- package/components/PurchaseOrderApprovalFlowContent/index.d.ts +0 -1
- package/components/PurchaseOrderCommentFormContent/PurchaseOrderCommentFormContent.d.ts +16 -2
- package/components/PurchaseOrderCommentFormContent/index.d.ts +0 -1
- package/components/PurchaseOrderCommentsListContent/PurchaseOrderCommentsListContent.d.ts +16 -2
- package/components/PurchaseOrderCommentsListContent/index.d.ts +0 -1
- package/components/PurchaseOrderConfirmationContent/PurchaseOrderConfirmationContent.d.ts +16 -2
- package/components/PurchaseOrderConfirmationContent/index.d.ts +0 -1
- package/components/PurchaseOrderHistoryLogContent/PurchaseOrderHistoryLogContent.d.ts +16 -2
- package/components/PurchaseOrderHistoryLogContent/index.d.ts +0 -1
- package/components/PurchaseOrderStatusContent/PurchaseOrderStatusContent.d.ts +16 -2
- package/components/PurchaseOrderStatusContent/index.d.ts +0 -1
- package/components/PurchaseOrdersHeader/PurchaseOrdersHeader.d.ts +16 -2
- package/components/PurchaseOrdersHeader/index.d.ts +0 -1
- package/components/PurchaseOrdersTable/PurchaseOrdersTable.d.ts +16 -2
- package/components/PurchaseOrdersTable/index.d.ts +0 -1
- package/components/PurchaseOrdersTableActions/PurchaseOrdersTableActions.d.ts +16 -2
- package/components/PurchaseOrdersTableActions/index.d.ts +0 -1
- package/components/index.d.ts +0 -1
- package/configs/approvalRuleForm.config.d.ts +19 -5
- package/configs/companyPurchaseOrders.config.d.ts +16 -2
- package/configs/customerPurchaseOrders.config.d.ts +16 -2
- package/configs/index.d.ts +0 -1
- package/configs/pageSize.config.d.ts +0 -1
- package/configs/purchaseOrderApprovalRules.config.d.ts +16 -2
- package/containers/ApprovalRuleDetails/ApprovalRuleDetails.d.ts +17 -3
- package/containers/ApprovalRuleDetails/index.d.ts +0 -1
- package/containers/ApprovalRuleDetails.d.ts +1 -3
- package/containers/ApprovalRuleDetails.js +1 -1
- package/containers/ApprovalRuleForm/ApprovalRuleForm.d.ts +17 -3
- package/containers/ApprovalRuleForm/index.d.ts +0 -1
- package/containers/ApprovalRuleForm.d.ts +1 -3
- package/containers/ApprovalRuleForm.js +1 -1
- package/containers/ApprovalRulesList/ApprovalRulesList.d.ts +17 -3
- package/containers/ApprovalRulesList/index.d.ts +0 -1
- package/containers/ApprovalRulesList.d.ts +1 -3
- package/containers/ApprovalRulesList.js +1 -1
- package/containers/CompanyPurchaseOrders/CompanyPurchaseOrders.d.ts +17 -3
- package/containers/CompanyPurchaseOrders/index.d.ts +0 -1
- package/containers/CompanyPurchaseOrders.d.ts +1 -3
- package/containers/CompanyPurchaseOrders.js +1 -1
- package/containers/CustomerPurchaseOrders/CustomerPurchaseOrders.d.ts +17 -3
- package/containers/CustomerPurchaseOrders/index.d.ts +0 -1
- package/containers/CustomerPurchaseOrders.d.ts +1 -3
- package/containers/CustomerPurchaseOrders.js +1 -1
- package/containers/PurchaseOrderApprovalFlow/PurchaseOrderApprovalFlow.d.ts +17 -3
- package/containers/PurchaseOrderApprovalFlow/index.d.ts +0 -1
- package/containers/PurchaseOrderApprovalFlow.d.ts +1 -3
- package/containers/PurchaseOrderApprovalFlow.js +1 -1
- package/containers/PurchaseOrderCommentForm/PurchaseOrderCommentForm.d.ts +17 -3
- package/containers/PurchaseOrderCommentForm/index.d.ts +0 -1
- package/containers/PurchaseOrderCommentForm.d.ts +1 -3
- package/containers/PurchaseOrderCommentForm.js +1 -1
- package/containers/PurchaseOrderCommentsList/PurchaseOrderCommentsList.d.ts +17 -3
- package/containers/PurchaseOrderCommentsList/index.d.ts +0 -1
- package/containers/PurchaseOrderCommentsList.d.ts +1 -3
- package/containers/PurchaseOrderCommentsList.js +1 -1
- package/containers/PurchaseOrderConfirmation/PurchaseOrderConfirmation.d.ts +17 -3
- package/containers/PurchaseOrderConfirmation/index.d.ts +0 -1
- package/containers/PurchaseOrderConfirmation.d.ts +1 -3
- package/containers/PurchaseOrderConfirmation.js +1 -1
- package/containers/PurchaseOrderHistoryLog/PurchaseOrderHistoryLog.d.ts +17 -3
- package/containers/PurchaseOrderHistoryLog/index.d.ts +0 -1
- package/containers/PurchaseOrderHistoryLog.d.ts +1 -3
- package/containers/PurchaseOrderHistoryLog.js +1 -1
- package/containers/PurchaseOrderStatus/PurchaseOrderStatus.d.ts +17 -3
- package/containers/PurchaseOrderStatus/index.d.ts +0 -1
- package/containers/PurchaseOrderStatus.d.ts +1 -3
- package/containers/PurchaseOrderStatus.js +1 -1
- package/containers/RequireApprovalPurchaseOrders/RequireApprovalPurchaseOrders.d.ts +17 -3
- package/containers/RequireApprovalPurchaseOrders/index.d.ts +0 -1
- package/containers/RequireApprovalPurchaseOrders.d.ts +1 -3
- package/containers/RequireApprovalPurchaseOrders.js +1 -1
- package/containers/index.d.ts +0 -1
- package/data/models/cart-model.d.ts +0 -1
- package/data/models/customer-order-model.d.ts +0 -1
- package/data/models/customer-role-permissions-model.d.ts +0 -1
- package/data/models/index.d.ts +0 -1
- package/data/models/purchase-order-approval-rule-metadata-model.d.ts +0 -1
- package/data/models/purchase-order-approval-rule-model.d.ts +0 -1
- package/data/models/purchase-order-comment-model.d.ts +0 -1
- package/data/models/purchase-order-model.d.ts +0 -1
- package/data/transforms/index.d.ts +0 -1
- package/data/transforms/transform-cart.d.ts +16 -2
- package/data/transforms/transform-customer-order.d.ts +16 -2
- package/data/transforms/transform-customer-role-permissions.d.ts +16 -2
- package/data/transforms/transform-purchase-order-approval-rule-metadata.d.ts +16 -2
- package/data/transforms/transform-purchase-order-approval-rule.d.ts +16 -2
- package/data/transforms/transform-purchase-order-comment.d.ts +16 -2
- package/data/transforms/transform-purchase-order.d.ts +16 -2
- package/hooks/index.d.ts +0 -1
- package/hooks/useApprovalRuleDetails.d.ts +16 -2
- package/hooks/useApprovalRuleForm.d.ts +16 -2
- package/hooks/useApprovalRulesList.d.ts +16 -2
- package/hooks/useCustomerRolePermissions.d.ts +16 -2
- package/hooks/usePurchaseOrderData.d.ts +16 -2
- package/hooks/usePurchaseOrderStatus.d.ts +16 -2
- package/hooks/usePurchaseOrders.d.ts +16 -2
- package/lib/case-converter.d.ts +0 -1
- package/lib/cleanAndDeep.d.ts +0 -1
- package/lib/fetch-error.d.ts +0 -1
- package/lib/formValidation.d.ts +16 -2
- package/lib/formatDate.d.ts +0 -1
- package/lib/getRange.d.ts +0 -1
- package/lib/getStatusVariant.d.ts +0 -1
- package/lib/index.d.ts +1 -1
- package/lib/isValidUrl.d.ts +0 -1
- package/lib/navigation.d.ts +1 -0
- package/lib/network-error.d.ts +0 -1
- package/lib/transformToFormValues.d.ts +16 -2
- package/lib/updateFormFieldValue.d.ts +16 -2
- package/mocks/index.d.ts +2 -3
- package/mocks/storybook/approval-rules.d.ts +18 -0
- package/mocks/storybook/events-data.d.ts +6 -2
- package/mocks/storybook/index.d.ts +0 -1
- package/mocks/storybook/purchase-orders.d.ts +179 -0
- package/package.json +1 -1
- package/render/Provider.d.ts +16 -2
- package/render/index.d.ts +0 -1
- package/render/render.d.ts +17 -3
- package/render.d.ts +1 -1
- package/types/api/api.enums.types.d.ts +0 -1
- package/types/api/index.d.ts +0 -1
- package/types/components/approvalFlowContent.types.d.ts +0 -2
- package/types/components/approvalRuleDetailsContentProps.types.d.ts +16 -2
- package/types/components/approvalRuleForm.types.d.ts +16 -2
- package/types/components/historyLogContent.types.d.ts +0 -2
- package/types/components/index.d.ts +0 -1
- package/types/components/pagination.types.d.ts +0 -1
- package/types/components/purchaseOrderCommentFormContent.types.d.ts +0 -2
- package/types/components/purchaseOrderCommentsListContent.types.d.ts +0 -2
- package/types/components/purchaseOrderConfirmationContent.types.d.ts +16 -2
- package/types/components/purchaseOrderHistoryLogContent.types.d.ts +16 -2
- package/types/components/purchaseOrderStatusContent.types.d.ts +17 -3
- package/types/components/purchaseOrdersTable.types.d.ts +16 -2
- package/types/components/purchaseOrdersTableActions.d.ts +0 -1
- package/types/containers/approvalRuleDetailsProps.types.d.ts +0 -1
- package/types/containers/approvalRuleForm.types.d.ts +16 -2
- package/types/containers/approvalRulesList.types.d.ts +16 -2
- package/types/containers/companyPurchaseOrders.types.d.ts +16 -2
- package/types/containers/customerPurchaseOrders.types.d.ts +16 -2
- package/types/containers/historyLog.types.d.ts +0 -1
- package/types/containers/index.d.ts +0 -1
- package/types/containers/purchaseOrderApprovalFlow.types.d.ts +0 -1
- package/types/containers/purchaseOrderCommentForm.types.d.ts +0 -1
- package/types/containers/purchaseOrderCommentsList.types.d.ts +0 -1
- package/types/containers/purchaseOrderConfirmationProps.types.d.ts +16 -2
- package/types/containers/purchaseOrderHistoryLog.types.d.ts +0 -1
- package/types/containers/purchaseOrderStatus.types.d.ts +17 -3
- package/types/containers/requireApprovalPurchaseOrders.types.d.ts +16 -2
- package/types/hooks/index.d.ts +0 -1
- package/types/hooks/useApprovalRuleDetails.types.d.ts +0 -1
- package/types/hooks/useApprovalRuleForm.types.d.ts +16 -2
- package/types/hooks/useApprovalRulesList.types.d.ts +16 -2
- package/types/hooks/usePurchaseOrderStatus.types.d.ts +17 -3
- package/types/hooks/usePurchaseOrders.types.d.ts +16 -2
- package/i18n/en_US.json.d.ts +0 -310
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as l}from"@dropins/tools/lib.js";import"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import{A as s}from"../chunks/components.js";import"@dropins/tools/preact.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const
|
|
3
|
+
import{jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as l}from"@dropins/tools/lib.js";import"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import{A as s}from"../chunks/components.js";import"@dropins/tools/preact.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const u=({withHeader:o=!0,withWrapper:p=!0,className:t,approvalRuleID:a,routeApprovalRulesList:e,onSubmit:m,onChange:i})=>r("div",{"data-testid":"b2b-purchase-order-approval-rule-form-container",className:l(["b2b-purchase-order-approval-rule-form-container",t]),children:r(s,{withWrapper:p,withHeader:o,approvalRuleID:a,routeApprovalRulesList:e,onSubmit:m,onChange:i})});u.displayName="ApprovalRuleForm";export{u as ApprovalRuleForm,u as default};
|
|
4
4
|
//# sourceMappingURL=ApprovalRuleForm.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { ApprovalRulesListProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const ApprovalRulesList: Container<ApprovalRulesListProps>;
|
|
5
|
-
//# sourceMappingURL=ApprovalRulesList.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsx as e,jsxs as
|
|
3
|
+
import{jsx as e,jsxs as f}from"@dropins/tools/preact-jsx-runtime.js";import{classes as g}from"@dropins/tools/lib.js";import{u as y,m as x,P as A,b as N,d as k}from"../chunks/components.js";import{Button as B,Skeleton as S,SkeletonRow as z}from"@dropins/tools/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/preact.js";import{useText as D}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const E=({routeCreateApprovalRule:o,routeEditApprovalRule:i,routeApprovalRuleDetails:u,setColumns:d,setRowsData:p,className:n="",withHeader:c=!0,withWrapper:m=!0,skeletonRowCount:h=5,initialPageSize:O=k})=>{const r=D({headerText:"PurchaseOrders.approvalRulesList.containerTitle",ruleName:"PurchaseOrders.purchaseOrdersTable.tableColumns.ruleName",ruleType:"PurchaseOrders.purchaseOrdersTable.tableColumns.ruleType",appliesTo:"PurchaseOrders.purchaseOrdersTable.tableColumns.appliesTo",approver:"PurchaseOrders.purchaseOrdersTable.tableColumns.approver",createdBy:"PurchaseOrders.purchaseOrdersTable.tableColumns.createdBy",status:"PurchaseOrders.purchaseOrdersTable.tableColumns.status",actionEdit:"PurchaseOrders.purchaseOrdersTable.actionEdit",actionDelete:"PurchaseOrders.purchaseOrdersTable.actionDelete",addNewRule:"PurchaseOrders.approvalRulesList.buttons.newRule",actionView:"PurchaseOrders.purchaseOrdersTable.actionView",appliesToAll:"PurchaseOrders.purchaseOrdersTable.appliesToAll",emptyTitle:"PurchaseOrders.approvalRulesList.emptyTitle",ariaLabelEditRule:"PurchaseOrders.approvalRulesList.ariaLabel.editRule",ariaLabelDeleteRule:"PurchaseOrders.approvalRulesList.ariaLabel.deleteRule",ariaLabelViewRule:"PurchaseOrders.approvalRulesList.ariaLabel.viewRule"}),{permissions:l,loadingPermissions:a}=y(),{loading:t,tableConfig:s,paginationConfig:b,totalCount:T,pageSizeConfig:R,handleCreateUrl:P}=x({routeCreateApprovalRule:o,routeEditApprovalRule:i,routeApprovalRuleDetails:u,setColumns:d,setRowsData:p,permissions:l,initialPageSize:O,loadingPermissions:a,t:r}),{isAdmin:v,permissions:{manageApprovalRules:w}}=l,C=v||w?e(B,{variant:"primary",onClick:()=>{window.location.href=P("","new")},"data-testid":"add-new-rule-button",children:r.addNewRule}):null,L=t||a?e(S,{"data-testid":"approval-rules-skeleton",children:e(z,{variant:"row",size:"small"})}):C;return f("div",{className:g(["purchase-orders",n]),"data-testid":"purchase-orders-container",children:[c?e(A,{headerText:r.headerText}):null,e(N,{totalCount:T,columns:s.columns,rows:s.rows,expandedRows:s.expandedRows,paginationConfig:b,loading:t||a,skeletonRowCount:h,pageSizeConfig:R,emptyTitle:r.emptyTitle,withWrapper:m,footer:L})]})};E.displayName="ApprovalRulesList";export{E as ApprovalRulesList,E as default};
|
|
4
4
|
//# sourceMappingURL=ApprovalRulesList.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { CompanyPurchaseOrdersProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const CompanyPurchaseOrders: Container<CompanyPurchaseOrdersProps>;
|
|
5
|
-
//# sourceMappingURL=CompanyPurchaseOrders.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as
|
|
3
|
+
import{jsxs as x,jsx as s}from"@dropins/tools/preact-jsx-runtime.js";import{classes as A}from"@dropins/tools/lib.js";import{E as w,u as N,a as R,P as S,b as D,c as E,d as j}from"../chunks/components.js";import"@dropins/tools/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/preact.js";import{useText as v}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const V=({initialPageSize:t=j,routePurchaseOrderDetails:o,setColumns:d,setRowsData:u,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:a,tableConfig:r,paginationConfig:P,pageSizeConfig:b,selectedOrderIds:C,handleRejectSelected:T,handleApproveSelected:g,isAdmin:f,alertMessageConfig:y}=R({view:m,routePurchaseOrderDetails:o,setColumns:d,setRowsData:u,initialPageSize:t,permissions:h,loadingPermissions:p,t:e});return x("div",{className:A(["company-purchase-orders",c]),"data-testid":"company-purchase-orders-container",children:[l?s(S,{headerText:e.headerText}):null,s(D,{header:f?s(E,{loading:a,selectedCount:C.length,handleRejectSelected:T,handleApproveSelected:g}):null,totalCount:O,columns:r.columns,rows:r.rows,expandedRows:r.expandedRows,paginationConfig:P,loading:a,skeletonRowCount:i,pageSizeConfig:b,emptyTitle:e.noPurchaseOrders,alertMessageConfig:y,withWrapper:n})]})};V.displayName="CompanyPurchaseOrders";export{V as CompanyPurchaseOrders,V as default};
|
|
4
4
|
//# sourceMappingURL=CompanyPurchaseOrders.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { CustomerPurchaseOrdersProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const CustomerPurchaseOrders: Container<CustomerPurchaseOrdersProps>;
|
|
5
|
-
//# sourceMappingURL=CustomerPurchaseOrders.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as T,jsx as s}from"@dropins/tools/preact-jsx-runtime.js";import{classes as f}from"@dropins/tools/lib.js";import{E as g,u as x,a as w,P as R,b as
|
|
3
|
+
import{jsxs as T,jsx as s}from"@dropins/tools/preact-jsx-runtime.js";import{classes as f}from"@dropins/tools/lib.js";import{E as g,u as x,a as w,P as R,b as N,d as D}from"../chunks/components.js";import"@dropins/tools/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/preact.js";import{useText as E}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const S=({initialPageSize:a=D,routePurchaseOrderDetails:t,setColumns:o,setRowsData:u,className:d="",withHeader:c=!0,withWrapper:l=!0,skeletonRowCount:n=5})=>{const i=g.CUSTOMER_PURCHASE_ORDERS,e=E({headerText:"PurchaseOrders.customerPurchaseOrders.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",noPurchaseOrders:"PurchaseOrders.customerPurchaseOrders.noPurchaseOrders"}),{permissions:m,loadingPermissions:h}=x(),{pageSizeConfig:p,loading:O,paginationConfig:P,tableConfig:r,totalCount:b,alertMessageConfig:C}=w({view:i,routePurchaseOrderDetails:t,setColumns:o,setRowsData:u,initialPageSize:a,permissions:m,loadingPermissions:h,t:e});return T("div",{className:f(["purchase-orders",d]),"data-testid":"purchase-orders-container",children:[c?s(R,{headerText:e.headerText}):null,s(N,{totalCount:b,columns:r.columns,rows:r.rows,expandedRows:r.expandedRows,paginationConfig:P,loading:O,skeletonRowCount:n,pageSizeConfig:p,emptyTitle:e.noPurchaseOrders,alertMessageConfig:C,withWrapper:l})]})};S.displayName="CustomerPurchaseOrders";export{S as CustomerPurchaseOrders,S as default};
|
|
4
4
|
//# sourceMappingURL=CustomerPurchaseOrders.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { PurchaseOrderApprovalFlowProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const PurchaseOrderApprovalFlow: Container<PurchaseOrderApprovalFlowProps>;
|
|
5
|
-
//# sourceMappingURL=PurchaseOrderApprovalFlow.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as o,Fragment as m,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as u}from"@dropins/tools/lib.js";import{Skeleton as c,SkeletonRow as s,Card as h}from"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import{g as v,P as i,l as
|
|
3
|
+
import{jsxs as o,Fragment as m,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as u}from"@dropins/tools/lib.js";import{Skeleton as c,SkeletonRow as s,Card as h}from"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import{g as v,P as i,l as w}from"../chunks/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/preact.js";import{useText as f}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const x=({className:p,withHeader:t=!0,withWrapper:e=!0})=>{const{poDataLoading:n,purchaseOrderData:a}=v(),l=f({headerText:"PurchaseOrders.approvalFlow.headerText"}),d=o(m,{children:[t&&e?r(i,{headerText:l.headerText,divider:!0}):null,n?o(c,{rowGap:"medium","data-testid":"approval-flow-loader",children:[r(s,{size:"small",variant:"row",fullWidth:!0,lines:1,style:{maxWidth:300}}),r(s,{size:"medium",variant:"row",fullWidth:!0,lines:1})]}):r(w,{approvalFlow:(a==null?void 0:a.approvalFlow)||[]})]});return o("div",{className:u(["b2b-purchase-order-approval-flow",p]),"data-testid":"order-approval-flow-container",children:[t&&!e?r(i,{headerText:l.headerText}):null,e?r(h,{variant:"secondary","data-testid":"orderApprovalFlowCard",children:d}):d]})};x.displayName="PurchaseOrderApprovalFlow";export{x as PurchaseOrderApprovalFlow,x as default};
|
|
4
4
|
//# sourceMappingURL=PurchaseOrderApprovalFlow.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { PurchaseOrderCommentFormProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const PurchaseOrderCommentForm: Container<PurchaseOrderCommentFormProps>;
|
|
5
|
-
//# sourceMappingURL=PurchaseOrderCommentForm.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as
|
|
3
|
+
import{jsxs as a,Fragment as l,jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{classes as u}from"@dropins/tools/lib.js";import{Skeleton as h,SkeletonRow as d,Card as p}from"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import{g as x,P as s,k as P}from"../chunks/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/preact.js";import{useText as f}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const O=({withHeader:o=!0,withWrapper:r=!0,className:n})=>{const{poDataLoading:i,purchaseOrderData:c}=x(),t=f({headerText:"PurchaseOrders.comments.add.headerText",buttonText:"PurchaseOrders.comments.add.submit",textAreaPlaceholder:"PurchaseOrders.comments.add.placeholder"}),m=a(l,{children:[o&&r?e(s,{headerText:t.headerText,divider:!0}):null,i?a(h,{rowGap:"medium","data-testid":"comment-form-loader",children:[e(d,{size:"xlarge",variant:"row",fullWidth:!0,lines:2,style:{maxWidth:500}}),e(d,{size:"medium",variant:"row",lines:1})]}):e(P,{purchaseOrderData:c,t})]});return a("div",{className:u(["b2b-purchase-order-comment-form",n]),"data-testid":"order-history-log-container",children:[o&&!r?e(s,{headerText:t.headerText}):null,r?e(p,{variant:"secondary","data-testid":"orderCommentFormCard",children:m}):m]})};O.displayName="PurchaseOrderCommentForm";export{O as PurchaseOrderCommentForm,O as default};
|
|
4
4
|
//# sourceMappingURL=PurchaseOrderCommentForm.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { PurchaseOrderCommentsListProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const PurchaseOrderCommentsList: Container<PurchaseOrderCommentsListProps>;
|
|
5
|
-
//# sourceMappingURL=PurchaseOrderCommentsList.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as s,Fragment as h,jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{classes as
|
|
3
|
+
import{jsxs as s,Fragment as h,jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{classes as p}from"@dropins/tools/lib.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import{Skeleton as x,SkeletonRow as i,Card as f}from"@dropins/tools/components.js";import{g as C,P as d,j as L}from"../chunks/components.js";import{useText as v}from"@dropins/tools/i18n.js";import"@dropins/tools/preact.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const P=({withHeader:m=!0,withWrapper:t=!0,visibleRecordsLimit:n=5,className:l})=>{const{poDataLoading:c,purchaseOrderData:r}=C(),o=v({headerText:"PurchaseOrders.comments.view.headerText"}),u=(r==null?void 0:r.comments)||[],a=s(h,{children:[m&&t?e(d,{headerText:o.headerText,divider:!0}):null,c?s(x,{rowGap:"medium","data-testid":"comment-list-loader",children:[e(i,{size:"small",variant:"row",fullWidth:!0,lines:1,style:{maxWidth:300}}),e(i,{size:"medium",variant:"row",fullWidth:!0,lines:1})]}):e(L,{commentsList:u.reverse(),visibleRecordsLimit:n})]});return s("div",{className:p(["b2b-purchase-order-comment-list",l]),"data-testid":"order-comment-list-container",children:[m&&!t?e(d,{headerText:o.headerText}):null,t?e(f,{variant:"secondary","data-testid":"orderCommentListCard",children:a}):a]})};P.displayName="PurchaseOrderCommentsList";export{P as PurchaseOrderCommentsList,P as default};
|
|
4
4
|
//# sourceMappingURL=PurchaseOrderCommentsList.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { PurchaseOrderConfirmationProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const PurchaseOrderConfirmation: Container<PurchaseOrderConfirmationProps>;
|
|
5
|
-
//# sourceMappingURL=PurchaseOrderConfirmation.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsx as o}from"@dropins/tools/preact-jsx-runtime.js";import{classes as
|
|
3
|
+
import{jsx as o}from"@dropins/tools/preact-jsx-runtime.js";import{classes as a}from"@dropins/tools/lib.js";import"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import{i as n}from"../chunks/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/preact.js";import"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const e=({className:i,purchaseOrderNumber:r,routePurchaseOrderDetails:t,...m})=>r?o("div",{...m,className:a(["b2b-purchase-order-confirmation",i]),children:o(n,{purchaseOrderNumber:r,routePurchaseOrderDetails:t})}):null;e.displayName="PurchaseOrderConfirmation";export{e as PurchaseOrderConfirmation,e as default};
|
|
4
4
|
//# sourceMappingURL=PurchaseOrderConfirmation.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { PurchaseOrderHistoryLogProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const PurchaseOrderHistoryLog: Container<PurchaseOrderHistoryLogProps>;
|
|
5
|
-
//# sourceMappingURL=PurchaseOrderHistoryLog.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as o,Fragment as u,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as g}from"@dropins/tools/lib.js";import{Skeleton as
|
|
3
|
+
import{jsxs as o,Fragment as u,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{classes as g}from"@dropins/tools/lib.js";import{Skeleton as y,SkeletonRow as d,Card as p}from"@dropins/tools/components.js";import"@dropins/tools/event-bus.js";import{g as x,P as n,h as L}from"../chunks/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/preact.js";import{useText as f}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const P=({withHeader:s=!0,withWrapper:e=!0,visibleRecordsLimit:l=5,className:m})=>{const{poDataLoading:h,purchaseOrderData:t}=x(),a=f({headerText:"PurchaseOrders.historyLog.headerText"}),c=(t==null?void 0:t.historyLog)||[],i=o(u,{children:[s&&e?r(n,{headerText:a.headerText,divider:!0}):null,h?o(y,{rowGap:"medium","data-testid":"comment-list-loader",children:[r(d,{size:"small",variant:"row",fullWidth:!0,lines:1,style:{maxWidth:300}}),r(d,{size:"medium",variant:"row",fullWidth:!0,lines:1})]}):r(L,{historyLogRecords:c,visibleRecordsLimit:l})]});return o("div",{className:g(["b2b-purchase-order-history-log",m]),"data-testid":"order-history-log-container",children:[s&&!e?r(n,{headerText:a.headerText}):null,e?r(p,{variant:"secondary","data-testid":"orderHistoryLogCard",children:i}):i]})};P.displayName="PurchaseOrderHistoryLog";export{P as PurchaseOrderHistoryLog,P as default};
|
|
4
4
|
//# sourceMappingURL=PurchaseOrderHistoryLog.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { PurchaseOrderStatusProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const PurchaseOrderStatus: Container<PurchaseOrderStatusProps>;
|
|
5
|
-
//# sourceMappingURL=PurchaseOrderStatus.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as s,Fragment as b,jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{classes as C}from"@dropins/tools/lib.js";import{Skeleton as j,SkeletonRow as l,InLineAlert as A,Card as B}from"@dropins/tools/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import{e as D,P as c,f as L}from"../chunks/components.js";import"@dropins/tools/preact.js";import{useText as k,Text as z}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const
|
|
3
|
+
import{jsxs as s,Fragment as b,jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{classes as C}from"@dropins/tools/lib.js";import{Skeleton as j,SkeletonRow as l,InLineAlert as A,Card as B}from"@dropins/tools/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import{e as D,P as c,f as L}from"../chunks/components.js";import"@dropins/tools/preact.js";import{useText as k,Text as z}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const H=({className:h,withHeader:a=!0,withWrapper:t=!0,slots:m})=>{const{poId:p,status:u,availableActions:n,alertType:d,loading:O,poDataLoading:x,isDismissed:T,alertMessage:o,handleOnDismiss:P,handleApprove:S,handleReject:g,handleCancel:f,handlePlaceOrder:v}=D(),r=k({statusHeadingText:`PurchaseOrders.purchaseOrderStatus.status.${u.toLowerCase()}.title`,statusMessageText:`PurchaseOrders.purchaseOrderStatus.status.${u.toLowerCase()}.message`,approveButtonText:"PurchaseOrders.purchaseOrderStatus.buttons.approve",cancelButtonText:"PurchaseOrders.purchaseOrderStatus.buttons.cancel",rejectButtonText:"PurchaseOrders.purchaseOrderStatus.buttons.reject",placeOrderButtonText:"PurchaseOrders.purchaseOrderStatus.buttons.placeOrder"}),y=n.length>0;if(!p)return null;const i=s(b,{children:[a&&t?e(c,{headerText:r.statusHeadingText,divider:!0}):null,x?s(j,{"data-testid":"status-content-loader-skeleton-test-id",children:[e(l,{size:"small",variant:"row",fullWidth:!0,lines:1,style:{maxWidth:300}}),e(l,{size:"medium",variant:"row",fullWidth:!0,lines:1})]}):y?e(L,{t:r,loading:O,handleApprove:S,handleReject:g,handleCancel:f,handlePlaceOrder:v,availableActions:n,slots:m}):e("div",{className:"purchase-order-status__empty",children:e(z,{id:"PurchaseOrders.purchaseOrderStatus.emptyText"})})]});return s("div",{className:C(["purchase-order-status",h]),children:[!T&&o?e(A,{style:{marginBottom:"1rem",textTransform:"capitalize"},heading:d,onDismiss:P,description:o,type:d}):null,a&&!t?e(c,{headerText:r.statusHeadingText}):null,t?e(B,{variant:"secondary",children:i}):i]})};H.displayName="PurchaseOrderStatus";export{H as PurchaseOrderStatus,H as default};
|
|
4
4
|
//# sourceMappingURL=PurchaseOrderStatus.js.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
import { Container } from '@dropins/tools/lib';
|
|
2
18
|
import { RequireApprovalPurchaseOrdersProps } from '../../types/containers';
|
|
3
|
-
|
|
4
19
|
export declare const RequireApprovalPurchaseOrders: Container<RequireApprovalPurchaseOrdersProps>;
|
|
5
|
-
//# sourceMappingURL=RequireApprovalPurchaseOrders.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsxs as R,jsx as s}from"@dropins/tools/preact-jsx-runtime.js";import{classes as f}from"@dropins/tools/lib.js";import{E as w,u as x,a as D,P as M,b as j,c as
|
|
3
|
+
import{jsxs as R,jsx as s}from"@dropins/tools/preact-jsx-runtime.js";import{classes as f}from"@dropins/tools/lib.js";import{E as w,u as x,a as D,P as M,b as j,c as q,d as E}from"../chunks/components.js";import"@dropins/tools/components.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/preact.js";import{useText as S}from"@dropins/tools/i18n.js";import"../api.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact-compat.js";const N=({initialPageSize:o=E,routePurchaseOrderDetails:d,setColumns:l,setRowsData:u,className:c="",withHeader:i=!0,withWrapper:p=!0,skeletonRowCount:n=5})=>{const h=w.CUSTOMER_APPROVAL_PURCHASE_ORDERS,e=S({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}=x(),{totalCount:a,loading:t,tableConfig:r,paginationConfig:P,pageSizeConfig:b,selectedOrderIds:C,handleRejectSelected:T,handleApproveSelected:g,isRequireApprovalPOsView:A,alertMessageConfig:v}=D({view:h,routePurchaseOrderDetails:d,setColumns:l,setRowsData:u,initialPageSize:o,permissions:O,loadingPermissions:m,t:e});return R("div",{className:f(["require-approval-purchase-orders",c]),"data-testid":"require-approval-purchase-orders-container",children:[i?s(M,{headerText:e.headerText}):null,s(j,{header:A&&a>0?s(q,{loading:t,selectedCount:C.length,handleRejectSelected:T,handleApproveSelected:g}):null,totalCount:a,columns:r.columns,rows:r.rows,expandedRows:r.expandedRows,paginationConfig:P,loading:t,skeletonRowCount:n,pageSizeConfig:b,emptyTitle:e.noPurchaseOrders,alertMessageConfig:v,withWrapper:p})]})};N.displayName="RequireApprovalPurchaseOrders";export{N as RequireApprovalPurchaseOrders,N as default};
|
|
4
4
|
//# sourceMappingURL=RequireApprovalPurchaseOrders.js.map
|
package/containers/index.d.ts
CHANGED
package/data/models/index.d.ts
CHANGED