@feedmepos/mf-inventory-portal 0.0.19-dev.9 → 0.0.20-dev.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/dist/App.vue.d.ts +1 -1
- package/dist/{ApprovalView-Bcxk6B7K.js → ApprovalView-CF-RhtHH.js} +5 -5
- package/dist/{BindingsDialog-XDkcjW_c.js → BindingsDialog-0_fCmf7t.js} +26 -26
- package/dist/{BindingsPicker-CgbiqX72.js → BindingsPicker-CT-56t-W.js} +17 -17
- package/dist/BindingsTable-DEftAnTN.js +120 -0
- package/dist/Entry.vue.d.ts +1 -1
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-6yg6_JPe.js +308 -0
- package/dist/IngredientsView-Au6oRwF2.js +1663 -0
- package/dist/{IntegrationView-CErHEVAO.js → IntegrationView-D7hqf0P5.js} +278 -278
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-XXoPyhlc.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-HcOKpAlW.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BpyUheXn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BTOE1vFl.js} +1 -1
- package/dist/PurchaseOrderPrintPreview-C92PdleC.js +152 -0
- package/dist/{ReceiveRequestView-BKbeFDxm.js → ReceiveRequestView-BaxEQWOD.js} +8 -8
- package/dist/{RecipeView-Drp4l4gL.js → RecipeView-CDgZpLPk.js} +181 -181
- package/dist/Standalone.vue.d.ts +1 -1
- package/dist/{StockView-Cj6fErwD.js → StockView-B77CrARl.js} +498 -502
- package/dist/SupplierView-DQ3hB7q2.js +819 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-lsyakQIl.js +738 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DN7NCT72.js +1435 -0
- package/dist/TransferTemplateView-Dt04xMCK.js +1290 -0
- package/dist/{UnitView-C_tAxIpq.js → UnitView-DlmlVNOx.js} +242 -242
- package/dist/{WarehouseView-BAqVtbD6.js → WarehouseView-DXWls5vv.js} +360 -362
- package/dist/api/bill.d.ts +238 -84
- package/dist/api/inventory.d.ts +3 -3
- package/dist/api/purchase-order-template.d.ts +4 -0
- package/dist/api/stock.d.ts +0 -8
- package/dist/api/supplier.d.ts +2 -0
- package/dist/app-P7rGzGsF.js +68600 -0
- package/dist/app.d.ts +200 -7
- package/dist/app.js +3 -3
- package/dist/{array-AvWd53LI.js → array-ClJzD_Lt.js} +3 -3
- package/dist/components/ChangeLocationComponent.vue.d.ts +14 -1
- package/dist/components/DeferableLoading.vue.d.ts +1 -1
- package/dist/components/DeleteDialog.vue.d.ts +1 -1
- package/dist/components/FmCoordinateInput.vue.d.ts +3 -3
- package/dist/components/FmDroppableField.vue.d.ts +6 -6
- package/dist/components/FmFilterableSelect.vue.d.ts +3 -3
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +19 -10
- package/dist/components/FmMinMaxInput.vue.d.ts +20 -0
- package/dist/components/FmMinMaxInputProps.d.ts +16 -0
- package/dist/components/FmMinMaxInputRules.d.ts +4 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +5 -5
- package/dist/components/FmMultiselectDialogProps.d.ts +14 -1
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/MultiSelectDialog.vue.d.ts +1 -1
- package/dist/components/NavigationTab.vue.d.ts +1 -1
- package/dist/components/NumberPrecisionInput.vue.d.ts +3 -3
- package/dist/components/PremiumBadge.vue.d.ts +3 -3
- package/dist/components/PreviewBadge.vue.d.ts +3 -3
- package/dist/components/StockForecast.vue.d.ts +1 -1
- package/dist/components/TableActionableRow.vue.d.ts +4 -4
- package/dist/components/UnitDisplayControl.vue.d.ts +1 -1
- package/dist/components/icons/IconCommunity.vue.d.ts +1 -1
- package/dist/components/icons/IconDocumentation.vue.d.ts +1 -1
- package/dist/components/icons/IconEcosystem.vue.d.ts +1 -1
- package/dist/components/icons/IconSupport.vue.d.ts +1 -1
- package/dist/components/icons/IconTooling.vue.d.ts +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +6 -6
- package/dist/components/map/CoordinateDialog.vue.d.ts +4 -4
- package/dist/components/map/GoogleMap.vue.d.ts +6 -6
- package/dist/components/nested-multiselect/FmNestedMultiselectDialog.vue.d.ts +3 -3
- package/dist/components/row-action.enum.d.ts +3 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +3 -3
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +6 -6
- package/dist/components/ui-library/FmDateRangePickerChip.vue.d.ts +5 -5
- package/dist/composable/useIframe.d.ts +1 -1
- package/dist/composable/useSearch.d.ts +1 -1
- package/dist/{decimal-D3KXLC4T.js → decimal-4ONRlhOO.js} +1 -1
- package/dist/format-unit-display-DJpElzu_.js +707 -0
- package/dist/helper/number.d.ts +2 -0
- package/dist/{id-to-date-Cj02m808.js → id-to-date-D8Ey2CVj.js} +1 -1
- package/dist/is-linked-ingredient-error-fJ2TJb3z.js +37 -0
- package/dist/layout/InventoryLayout.vue.d.ts +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +6 -5
- package/dist/layout/components/NavigationButton.vue.d.ts +4 -4
- package/dist/layout-D-zXtsSp.js +151 -0
- package/dist/row-action.enum-PMKMRrZR.js +50 -0
- package/dist/stores/feature.d.ts +5 -1
- package/dist/stores/inventory.d.ts +4 -4
- package/dist/stores/location.d.ts +185 -152
- package/dist/stores/supplier.d.ts +666 -12
- package/dist/stores/warehouse.d.ts +17 -5
- package/dist/supplier-DsUIjl-L.js +69 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/InventoryView.vue.d.ts +1 -1
- package/dist/views/SelectBussinessDialog.vue.d.ts +1 -1
- package/dist/views/approval/ApprovalView.vue.d.ts +1 -1
- package/dist/views/dev/ComponentPreview.vue.d.ts +1 -1
- package/dist/views/dev/components/CoordinateTest.vue.d.ts +1 -1
- package/dist/views/dev/components/DateRange.vue.d.ts +1 -1
- package/dist/views/dev/components/FmDecimalInputTest.vue.d.ts +1 -1
- package/dist/views/dev/components/FmMultiselectDialogGrouped.vue.d.ts +2 -0
- package/dist/views/dev/components/FmSelectTest.vue.d.ts +1 -1
- package/dist/views/dev/components/InventoryIframe.vue.d.ts +1 -1
- package/dist/views/dev/components/LayoutDev.vue.d.ts +1 -1
- package/dist/views/dev/components/MfCommontTest.vue.d.ts +1 -1
- package/dist/views/dev/components/NestedSelection.vue.d.ts +1 -1
- package/dist/views/dev/components/NumberStepper.vue.d.ts +1 -1
- package/dist/views/dev/components/TabStorageTest.vue.d.ts +1 -1
- package/dist/views/dev/components/UnitInput.vue.d.ts +1 -1
- package/dist/views/dev/helpers/pinia-test.d.ts +1 -1
- package/dist/views/home/HomeView.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-dialog/BindingsDialog.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-picker/BindingsPicker.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-table/BindingsTable.vue.d.ts +1 -1
- package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -1
- package/dist/views/ingredients/components/cannot-delete/CannotDelete.vue.d.ts +4 -4
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +3 -3
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +1 -1
- package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItem.vue.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialog.vue.d.ts +5 -5
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +6 -6
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +8 -8
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/IntegrationView.vue.d.ts +1 -1
- package/dist/views/integration/components/ApplyAddon.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +5 -5
- package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +1 -1
- package/dist/views/receive-request/components/select-template-dialog/SelectTemplateDialog.vue.d.ts +8 -0
- package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistory.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -32
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +8 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +6 -6
- package/dist/views/receive-request/components/transfer-form/components/TransferItem.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/composables/use-backdate-po.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-compare-price.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -9
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1016 -70
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +36 -36
- package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +1 -1
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -1
- package/dist/views/recipe/components/recipe-dialog/RecipeDialog.vue.d.ts +5 -5
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +4 -4
- package/dist/views/recipe/composables/use-recipe-form.d.ts +8 -8
- package/dist/views/stock/StockView.vue.d.ts +1 -1
- package/dist/views/stock/components/StockHeaderPreview.vue.d.ts +1 -1
- package/dist/views/stock/components/StockHistory.vue.d.ts +3 -3
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +123 -46
- package/dist/views/stock/components/dialog/AdjustSkuDialog.vue.d.ts +4 -4
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +5 -5
- package/dist/views/stock/components/dialog/ConvertSkuDialog.vue.d.ts +4 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +11 -11
- package/dist/views/stock/helper/stock-row-action.d.ts +4 -2
- package/dist/views/supplier/SupplierView.vue.d.ts +1 -1
- package/dist/views/supplier/components/SupplierDialog.vue.d.ts +4 -4
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +10 -10
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -3
- package/dist/views/supplier/composables/use-supplier-table.d.ts +3 -3
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +20 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +9 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +3 -3
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +7 -7
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +15 -9
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1428 -43
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +893 -13
- package/dist/views/unit/UnitView.vue.d.ts +1 -1
- package/dist/views/unit/components/unit-dialog/UnitDialog.vue.d.ts +5 -5
- package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +4 -4
- package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +3 -3
- package/dist/views/unit/components/unit-used-by/UnitUsedBy.vue.d.ts +1 -1
- package/dist/views/unit/composables/use-unit-form.d.ts +8 -8
- package/dist/views/warehouse/WarehouseView.vue.d.ts +1 -1
- package/dist/views/warehouse/components/WarehouseDialog.vue.d.ts +4 -4
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +38 -14
- package/dist/{xlsx-B-2KyDJq.js → xlsx-zfERRe6K.js} +3383 -3383
- package/dist/{xlsx.util-D6EzRE71.js → xlsx.util-DnbiJzsk.js} +4 -4
- package/package.json +6 -5
- package/dist/BindingsTable-xNXNsBAd.js +0 -145
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DFPkUHl-.js +0 -272
- package/dist/IngredientsView-DD7ns3mP.js +0 -1751
- package/dist/PurchaseOrderPrintPreview-L_iaaURb.js +0 -152
- package/dist/SupplierView-EFsHWet-.js +0 -801
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kM5fyqq6.js +0 -745
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-CyFMCmXw.js +0 -1605
- package/dist/TransferTemplateView-Cymhrayh.js +0 -933
- package/dist/app-CeUU5Gd8.js +0 -66938
- package/dist/is-linked-ingredient-error-C6AghEwR.js +0 -37
- package/dist/layout-2zzAZIVO.js +0 -147
- package/dist/purchase-order-transaction-type-Dz0YF5qh.js +0 -294
- package/dist/row-action.enum-7jVyol1k.js +0 -36
- package/dist/supplier-mDVKd7Ge.js +0 -54
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as s, createElementBlock as r, createElementVNode as o, createTextVNode as a, toDisplayString as i, Fragment as u, renderList as p } from "vue";
|
|
2
|
+
const c = { class: "w-[400px] h-[100px]" }, f = { class: "font-bold text-neutral-500 mx-1" }, y = { class: "mt-3" }, x = /* @__PURE__ */ m({
|
|
3
|
+
__name: "CannotDelete",
|
|
4
|
+
props: {
|
|
5
|
+
subject: {
|
|
6
|
+
type: String
|
|
7
|
+
},
|
|
8
|
+
items: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: () => []
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (n, t) => (s(), r("div", c, [
|
|
15
|
+
o("div", null, [
|
|
16
|
+
t[0] || (t[0] = a(" Cannot delete ")),
|
|
17
|
+
o("span", f, i(e.subject), 1),
|
|
18
|
+
t[1] || (t[1] = a(" because this unit is linked in these inventory items: "))
|
|
19
|
+
]),
|
|
20
|
+
o("ol", y, [
|
|
21
|
+
(s(!0), r(u, null, p(e.items, (l, d) => (s(), r("li", {
|
|
22
|
+
class: "pl-5 font-bold text-neutral-500",
|
|
23
|
+
key: d
|
|
24
|
+
}, " • (" + i(l.module) + ") " + i(l.name), 1))), 128))
|
|
25
|
+
])
|
|
26
|
+
]));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
function _(e) {
|
|
30
|
+
return e.errorResponse.error === "validation failed" && Array.isArray(e.errorResponse.message) && e.errorResponse.message.every(
|
|
31
|
+
(n) => typeof n.module == "string" && typeof n.name == "string"
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
x as _,
|
|
36
|
+
_ as i
|
|
37
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -7,27 +7,28 @@ export interface SingleColumnLayoutProps {
|
|
|
7
7
|
showBackButton?: boolean;
|
|
8
8
|
defaultPadding?: boolean;
|
|
9
9
|
breadcrumbs?: Breadcrumbs[];
|
|
10
|
+
usingBusinessHelperText?: string;
|
|
10
11
|
}
|
|
11
12
|
export interface SingleColumnLayoutEvents {
|
|
12
13
|
(event: 'click:action', actionName: string): void;
|
|
13
14
|
}
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleColumnLayoutProps>, {
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleColumnLayoutProps>, {
|
|
15
16
|
actions: () => never[];
|
|
16
17
|
breadcrumbs: () => never[];
|
|
17
18
|
title: string;
|
|
18
|
-
}
|
|
19
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
20
|
"click:action": (actionName: string) => void;
|
|
20
21
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleColumnLayoutProps>, {
|
|
21
22
|
actions: () => never[];
|
|
22
23
|
breadcrumbs: () => never[];
|
|
23
24
|
title: string;
|
|
24
|
-
}>>> & {
|
|
25
|
+
}>>> & Readonly<{
|
|
25
26
|
"onClick:action"?: ((actionName: string) => any) | undefined;
|
|
26
|
-
}
|
|
27
|
+
}>, {
|
|
27
28
|
actions: FmPageHeadAction[];
|
|
28
29
|
title: string;
|
|
29
30
|
breadcrumbs: Breadcrumbs[];
|
|
30
|
-
}, {}>, {
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
31
32
|
default?(_: {}): any;
|
|
32
33
|
}>;
|
|
33
34
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LayoutRoute } from '../type';
|
|
2
2
|
import { type PropType } from 'vue';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
route: {
|
|
5
5
|
type: PropType<LayoutRoute>;
|
|
6
6
|
required: true;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
expandChild: {
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
route: {
|
|
13
13
|
type: PropType<LayoutRoute>;
|
|
14
14
|
required: true;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
expandChild: {
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
};
|
|
19
|
-
}
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
20
|
expandChild: boolean;
|
|
21
|
-
}, {}>;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
22
|
export default _default;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { useI18n as R } from "@feedmepos/mf-common";
|
|
2
|
+
import { components as I, useBreakpoints as B } from "@feedmepos/ui-library";
|
|
3
|
+
import { h as s, defineComponent as F, computed as M, openBlock as a, createBlock as V, resolveDynamicComponent as x, unref as p, normalizeClass as z, withCtx as D, createElementVNode as c, renderSlot as L, normalizeProps as N, guardReactiveProps as P, createElementBlock as m, Fragment as k, renderList as _, createVNode as b, createCommentVNode as w } from "vue";
|
|
4
|
+
import { ai as E } from "./app-P7rGzGsF.js";
|
|
5
|
+
const { FmMenu: S, FmButton: $, FmMenuItem: j } = I;
|
|
6
|
+
function U(o, r) {
|
|
7
|
+
return s(
|
|
8
|
+
S,
|
|
9
|
+
{
|
|
10
|
+
trigger: "click",
|
|
11
|
+
stopClickPropagation: !0
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"menu-button": () => s($, {
|
|
15
|
+
type: "button",
|
|
16
|
+
variant: "tertiary",
|
|
17
|
+
icon: "more_vert",
|
|
18
|
+
iconColor: "#000000",
|
|
19
|
+
size: "md"
|
|
20
|
+
}),
|
|
21
|
+
default: () => s(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
style: {
|
|
25
|
+
backgroundColor: "white",
|
|
26
|
+
padding: "4px",
|
|
27
|
+
width: "160px"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
o.map(({ translationKey: l, color: e, value: t }) => {
|
|
31
|
+
const { t: u } = R(), n = u(l);
|
|
32
|
+
return s(
|
|
33
|
+
j,
|
|
34
|
+
{
|
|
35
|
+
onClick() {
|
|
36
|
+
r(t ?? n);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: () => s(
|
|
41
|
+
"span",
|
|
42
|
+
{
|
|
43
|
+
class: e
|
|
44
|
+
},
|
|
45
|
+
n
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* vue-table
|
|
56
|
+
*
|
|
57
|
+
* Copyright (c) TanStack
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the MIT license found in the
|
|
60
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
61
|
+
*
|
|
62
|
+
* @license MIT
|
|
63
|
+
*/
|
|
64
|
+
const y = F({
|
|
65
|
+
props: ["render", "props"],
|
|
66
|
+
setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? s(o.render, o.props) : o.render
|
|
67
|
+
}), A = { class: "flex gap-4 w-full" }, H = { class: "flex-1" }, T = { class: "flex flex-col" }, q = { key: 0 }, G = { key: 0 }, W = /* @__PURE__ */ F({
|
|
68
|
+
__name: "TableActionableRow",
|
|
69
|
+
props: {
|
|
70
|
+
row: {},
|
|
71
|
+
onRowClick: {},
|
|
72
|
+
actionColumnId: { default: "action" }
|
|
73
|
+
},
|
|
74
|
+
setup(o) {
|
|
75
|
+
const r = o, l = M(
|
|
76
|
+
() => r.row.getVisibleCells().reduce(
|
|
77
|
+
(e, t) => (e[t.column.id] = t, e),
|
|
78
|
+
{}
|
|
79
|
+
)
|
|
80
|
+
);
|
|
81
|
+
return (e, t) => (a(), V(x(e.onRowClick ? p(I).FmListItem : "div"), {
|
|
82
|
+
class: z([
|
|
83
|
+
"w-full border-b border-fm-color-neutral-gray-100",
|
|
84
|
+
{
|
|
85
|
+
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
86
|
+
"cursor-pointer": typeof e.onRowClick == "function"
|
|
87
|
+
}
|
|
88
|
+
]),
|
|
89
|
+
onClick: t[0] || (t[0] = (u) => {
|
|
90
|
+
var n;
|
|
91
|
+
return (n = e.onRowClick) == null ? void 0 : n.call(e, e.row.original);
|
|
92
|
+
})
|
|
93
|
+
}, {
|
|
94
|
+
default: D(() => {
|
|
95
|
+
var u, n, f, d, C;
|
|
96
|
+
return [
|
|
97
|
+
c("div", A, [
|
|
98
|
+
c("div", H, [
|
|
99
|
+
L(e.$slots, "default", N(P(l.value)), () => [
|
|
100
|
+
c("div", T, [
|
|
101
|
+
(a(!0), m(k, null, _(r.row.getVisibleCells(), (i) => {
|
|
102
|
+
var g, v, h;
|
|
103
|
+
return a(), m(k, {
|
|
104
|
+
key: i.id
|
|
105
|
+
}, [
|
|
106
|
+
i.column.id !== e.actionColumnId ? (a(), m("div", q, [
|
|
107
|
+
b(p(y), {
|
|
108
|
+
render: (v = (g = i.column) == null ? void 0 : g.columnDef) == null ? void 0 : v.cell,
|
|
109
|
+
props: (h = i.getContext) == null ? void 0 : h.call(i)
|
|
110
|
+
}, null, 8, ["render", "props"])
|
|
111
|
+
])) : w("", !0)
|
|
112
|
+
], 64);
|
|
113
|
+
}), 128))
|
|
114
|
+
])
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
l.value[e.actionColumnId ?? ""] ? (a(), m("div", G, [
|
|
118
|
+
c("div", null, [
|
|
119
|
+
b(p(y), {
|
|
120
|
+
render: (f = (n = (u = l.value[e.actionColumnId ?? ""]) == null ? void 0 : u.column) == null ? void 0 : n.columnDef) == null ? void 0 : f.cell,
|
|
121
|
+
props: (C = (d = l.value[e.actionColumnId ?? ""]) == null ? void 0 : d.getContext) == null ? void 0 : C.call(d)
|
|
122
|
+
}, null, 8, ["render", "props"])
|
|
123
|
+
])
|
|
124
|
+
])) : w("", !0)
|
|
125
|
+
])
|
|
126
|
+
];
|
|
127
|
+
}),
|
|
128
|
+
_: 3
|
|
129
|
+
}, 8, ["class"]));
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
function X() {
|
|
133
|
+
return {
|
|
134
|
+
get tableHeight() {
|
|
135
|
+
const o = E(), { breakpoints: r } = B();
|
|
136
|
+
return o.isIframeMode ? r.value.xs || r.value.sm ? {
|
|
137
|
+
height: "calc(100dvh - 180px)"
|
|
138
|
+
} : {
|
|
139
|
+
height: "calc(100dvh - 124px)"
|
|
140
|
+
} : {
|
|
141
|
+
height: "calc(100dvh - 180px)"
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export {
|
|
147
|
+
y as F,
|
|
148
|
+
W as _,
|
|
149
|
+
U as c,
|
|
150
|
+
X as u
|
|
151
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var e = /* @__PURE__ */ ((t) => (t.READ = "READ", t.UPDATE = "UPDATE", t.CREATE = "CREATE", t))(e || {}), r = /* @__PURE__ */ ((t) => (t.Add = "Add", t.Create = "Create", t.Print = "Print", t.Update = "Update", t.Details = "Details", t.Edit = "Edit", t.Delete = "Delete", t))(r || {});
|
|
2
|
+
const a = {
|
|
3
|
+
Add: {
|
|
4
|
+
translationKey: "common.add",
|
|
5
|
+
color: "text-fm-color-typo-primary",
|
|
6
|
+
value: "Add"
|
|
7
|
+
/* Add */
|
|
8
|
+
},
|
|
9
|
+
Create: {
|
|
10
|
+
translationKey: "common.create",
|
|
11
|
+
color: "text-fm-color-typo-primary",
|
|
12
|
+
value: "Create"
|
|
13
|
+
/* Create */
|
|
14
|
+
},
|
|
15
|
+
Update: {
|
|
16
|
+
translationKey: "common.update",
|
|
17
|
+
color: "text-fm-color-typo-primary",
|
|
18
|
+
value: "Update"
|
|
19
|
+
/* Update */
|
|
20
|
+
},
|
|
21
|
+
Details: {
|
|
22
|
+
translationKey: "inventory.common.details",
|
|
23
|
+
color: "text-fm-color-typo-primary",
|
|
24
|
+
value: "Details"
|
|
25
|
+
/* Details */
|
|
26
|
+
},
|
|
27
|
+
Print: {
|
|
28
|
+
translationKey: "inventory.common.print",
|
|
29
|
+
color: "text-fm-color-typo-primary",
|
|
30
|
+
value: "Print"
|
|
31
|
+
/* Print */
|
|
32
|
+
},
|
|
33
|
+
Edit: {
|
|
34
|
+
translationKey: "common.edit",
|
|
35
|
+
color: "text-fm-color-typo-primary",
|
|
36
|
+
value: "Edit"
|
|
37
|
+
/* Edit */
|
|
38
|
+
},
|
|
39
|
+
Delete: {
|
|
40
|
+
translationKey: "common.delete",
|
|
41
|
+
color: "text-fm-color-typo-error",
|
|
42
|
+
value: "Delete"
|
|
43
|
+
/* Delete */
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
a as D,
|
|
48
|
+
e as F,
|
|
49
|
+
r as R
|
|
50
|
+
};
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export declare const useFeatureStore: () => {
|
|
2
2
|
readonly businessDbName: string;
|
|
3
3
|
readonly isWarehouse: boolean;
|
|
4
|
-
readonly restaurantPosVersion:
|
|
4
|
+
readonly restaurantPosVersion: string | null | undefined;
|
|
5
5
|
readonly enableTotalCost: boolean;
|
|
6
6
|
readonly enableBackdatePo: boolean;
|
|
7
7
|
readonly autoReceiveWarehouse: boolean;
|
|
8
8
|
readonly manualReceive: boolean;
|
|
9
|
+
readonly enablePoTemplate: boolean;
|
|
10
|
+
readonly enableSupplierMasterList: boolean;
|
|
11
|
+
readonly mustUsePoTemplate: boolean;
|
|
12
|
+
readonly mustManageBusinessOnlyPoTemplate: boolean;
|
|
9
13
|
};
|
|
@@ -87,11 +87,11 @@ export declare function useInventoryStore(): {
|
|
|
87
87
|
precision: number;
|
|
88
88
|
};
|
|
89
89
|
} | null | undefined;
|
|
90
|
+
operationalGroup?: string | null | undefined;
|
|
90
91
|
thresholds?: {
|
|
91
92
|
low: number;
|
|
92
93
|
mid: number;
|
|
93
94
|
} | null | undefined;
|
|
94
|
-
operationalGroup?: string | null | undefined;
|
|
95
95
|
unit: {
|
|
96
96
|
_id: string;
|
|
97
97
|
name: string;
|
|
@@ -792,11 +792,11 @@ export declare function useInventoryStore(): {
|
|
|
792
792
|
precision: number;
|
|
793
793
|
};
|
|
794
794
|
} | null | undefined;
|
|
795
|
+
operationalGroup?: string | null | undefined;
|
|
795
796
|
thresholds?: {
|
|
796
797
|
low: number;
|
|
797
798
|
mid: number;
|
|
798
799
|
} | null | undefined;
|
|
799
|
-
operationalGroup?: string | null | undefined;
|
|
800
800
|
unit: {
|
|
801
801
|
_id: string;
|
|
802
802
|
name: string;
|
|
@@ -1959,11 +1959,11 @@ export declare function useInventoryStore(): {
|
|
|
1959
1959
|
precision: number;
|
|
1960
1960
|
};
|
|
1961
1961
|
} | null | undefined;
|
|
1962
|
+
operationalGroup?: string | null | undefined;
|
|
1962
1963
|
thresholds?: {
|
|
1963
1964
|
low: number;
|
|
1964
1965
|
mid: number;
|
|
1965
1966
|
} | null | undefined;
|
|
1966
|
-
operationalGroup?: string | null | undefined;
|
|
1967
1967
|
unit: {
|
|
1968
1968
|
_id: string;
|
|
1969
1969
|
name: string;
|
|
@@ -2022,11 +2022,11 @@ export declare function useInventoryStore(): {
|
|
|
2022
2022
|
precision: number;
|
|
2023
2023
|
};
|
|
2024
2024
|
} | null | undefined;
|
|
2025
|
+
operationalGroup?: string | null | undefined;
|
|
2025
2026
|
thresholds?: {
|
|
2026
2027
|
low: number;
|
|
2027
2028
|
mid: number;
|
|
2028
2029
|
} | null | undefined;
|
|
2029
|
-
operationalGroup?: string | null | undefined;
|
|
2030
2030
|
unit: {
|
|
2031
2031
|
_id: string;
|
|
2032
2032
|
name: string;
|