@feedmepos/mf-inventory-portal 1.3.14 → 1.3.16-dev.2

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.
Files changed (102) hide show
  1. package/dist/App-BckRpjrE.js +309 -0
  2. package/dist/{ApprovalView-BVszC4Cw.js → ApprovalView-C5rVI_O7.js} +17 -17
  3. package/dist/{BindingsDialog-B3L_3xdo.js → BindingsDialog-Y530TN7D.js} +13 -13
  4. package/dist/{BindingsPicker-A4togB2v.js → BindingsPicker-BbQ9Ygep.js} +2 -2
  5. package/dist/{BindingsTable-DacoMdY6.js → BindingsTable-ClHmMFLP.js} +3 -3
  6. package/dist/{ClosingDraftView-C9tvMgLl.js → ClosingDraftView-Dn16j97_.js} +15 -15
  7. package/dist/{ClosingHistoryView-CqqzqSqU.js → ClosingHistoryView-BK7KJbbf.js} +5 -5
  8. package/dist/{ClosingTemplateView-CLi0XE8S.js → ClosingTemplateView-D2petgop.js} +14 -14
  9. package/dist/DefaultView-CdCpGT5n.js +31 -0
  10. package/dist/{DeliveryOrderPrintPreview-DEHEfd80.js → DeliveryOrderPrintPreview-C_S4SG8h.js} +11 -11
  11. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-GT5YUrJz.js +76 -0
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-q8fQfbEV.js} +2 -2
  13. package/dist/{FmMultiselectDialog-CR2peMEL.js → FmMultiselectDialog-6JADZ5xC.js} +1 -1
  14. package/dist/{FmMultiselectDialog-FGR8t9rz.js → FmMultiselectDialog-BEkAAZZp.js} +16 -16
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DgXOsVLe.js → FmUnitInput.vue_vue_type_script_setup_true_lang-kaW8FwP5.js} +6 -5
  16. package/dist/{ImportView-CEI0QqGz.js → ImportView-D8i5_GO9.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-cRgKjHY0.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-baV8qK0P.js} +1 -1
  18. package/dist/{IngredientGroupView-DEELNMpl.js → IngredientGroupView-BiqFuJx0.js} +5 -5
  19. package/dist/{IngredientsView-D3OcjZdT.js → IngredientsView-CQHobUvF.js} +15 -15
  20. package/dist/{IntegrationExplorerView-ByPpT3hC.js → IntegrationExplorerView-BFbGH5-S.js} +5 -5
  21. package/dist/{IntegrationView-BSqlJBp-.js → IntegrationView-UF8UwPNk.js} +81 -81
  22. package/dist/{InventoryBindingForm-SgmyJvCs.js → InventoryBindingForm-DB4LwgzC.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dc0sxYMV.js} +5 -5
  24. package/dist/{InventoryBindingSummary-D6deGR6B.js → InventoryBindingSummary-Bwn4HZy5.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGDL-t7m.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BvBOo5wi.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ff1rPUJW.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2wiVygJ.js} +7 -7
  27. package/dist/{PublishView-7TAa2QQB.js → PublishView-BFac9M5C.js} +15 -15
  28. package/dist/{PurchaseOrderPrintPreview-DhcnInSW.js → PurchaseOrderPrintPreview-tree07u5.js} +11 -11
  29. package/dist/{ReceiveRequestView-Z3JYH3gf.js → ReceiveRequestView-DLERk28I.js} +30 -29
  30. package/dist/RecipeView-DDgN0DkI.js +2898 -0
  31. package/dist/{SettingsView-F_BWUxoq.js → SettingsView-BWw7AhqT.js} +4 -4
  32. package/dist/StockView-D0wW54eN.js +2439 -0
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxNgi5uv.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Btor1W6X.js} +1 -1
  34. package/dist/{SupplierView-DklOXwHD.js → SupplierView-Bd_PLuYt.js} +12 -12
  35. package/dist/{SurchargeView-DcImorUr.js → SurchargeView-F1B_fcv-.js} +16 -16
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-95m2qnoM.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bu4XKhII.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DHKDRFgr.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DMrRfwKD.js → TransferDetails.vue_vue_type_script_setup_true_lang-BC0PNCtM.js} +812 -828
  39. package/dist/{TransferTemplateView-DTdlSI2b.js → TransferTemplateView-DM8qOCpO.js} +20 -19
  40. package/dist/{UnitCostHistoryView-CQ_DJE-t.js → UnitCostHistoryView-Bzocbij3.js} +246 -243
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BDzz91rl.js} +4 -4
  42. package/dist/{UnitView-DzcCdCGw.js → UnitView-EndrhMnI.js} +7 -7
  43. package/dist/{WarehouseView-BYj9DD1N.js → WarehouseView-BJZELae1.js} +25 -25
  44. package/dist/{WastageTemplateView--w6an2Ar.js → WastageTemplateView-s6ZiQR8E.js} +14 -14
  45. package/dist/{app-CPlgHGkC.js → app-CaGW5ogt.js} +23768 -22367
  46. package/dist/app.d.ts +148 -6
  47. package/dist/app.js +5 -5
  48. package/dist/{closing-template-B9JOB9ah.js → closing-template-CUgXd6Na.js} +1 -1
  49. package/dist/components/HrmPermissionGuard.vue.d.ts +54 -0
  50. package/dist/composable/useHrmPermission.d.ts +17 -0
  51. package/dist/composable/useInventoryAccess.d.ts +11 -0
  52. package/dist/composable/useNavigationMenu.d.ts +14 -0
  53. package/dist/{date2-Ci9tlLMJ.js → date2-fQDP1Rtk.js} +1 -1
  54. package/dist/{dayjs.min-DTx2lmq6.js → dayjs.min-UwaUKDHA.js} +32 -32
  55. package/dist/{decimal-iKhH_VJO.js → decimal-CKysiOcn.js} +2 -2
  56. package/dist/{defineDeepModel-C25T8oyP.js → defineDeepModel-CwM7TJuT.js} +1 -1
  57. package/dist/{duplicate-template-BptIBRQ3.js → duplicate-template-Bb5b_40t.js} +1 -1
  58. package/dist/{empty-placeholder-wf6-BWE8.js → empty-placeholder-B0QU467o.js} +1 -1
  59. package/dist/{export-CKuVd5pP.js → export-nbyx5EYR.js} +1 -1
  60. package/dist/{feature-CXMSo4z7.js → feature-Dqme8-Xr.js} +22 -22
  61. package/dist/{format-time-from-id-Bk60g6lh.js → format-time-from-id-DsRN_JB-.js} +1 -1
  62. package/dist/{format-unit-display-C4nf8hG8.js → format-unit-display-Df1v6CMC.js} +11 -11
  63. package/dist/{import-export.helper-BDzsQcYD.js → import-export.helper-QInnTLhY.js} +6 -6
  64. package/dist/{index-CUVlQagt.js → index-BCwp1fKe.js} +3 -3
  65. package/dist/{index-DiKOwY5C.js → index-CbwjQK_M.js} +1 -1
  66. package/dist/{index-DTszDSPO.js → index-Cij7rBSm.js} +1 -1
  67. package/dist/{inventory-core-dart.default-Cn3sonot.js → inventory-core-dart.default-Bgq3Sd7C.js} +10 -10
  68. package/dist/{lodash-DGOK6ZkA.js → lodash-B15PREHg.js} +1 -1
  69. package/dist/{lz-string-QrWbdmw6.js → lz-string-DdnEcXDA.js} +21 -21
  70. package/dist/{netsuite-DglgyKcZ.js → netsuite-NcBlI9QO.js} +37 -37
  71. package/dist/{number-Ut7u2ZEE.js → number-DQ-rkxYN.js} +11 -11
  72. package/dist/{predefined-templates-DZtFebPU.js → predefined-templates-zYAuXO9-.js} +1 -1
  73. package/dist/{purchase-order-template-DhNVhXmD.js → purchase-order-template-DcoKKoiW.js} +1 -1
  74. package/dist/{recalculationUtils-CqJRd9B2.js → recalculationUtils-MW6hf5oz.js} +1 -1
  75. package/dist/router/name.d.ts +1 -0
  76. package/dist/router/route-permission.d.ts +10 -0
  77. package/dist/{rules-BIm67nl_.js → rules-CxC7ePEb.js} +2 -2
  78. package/dist/{stock-Dc4_U69J.js → stock-Bly2vXJq.js} +28 -27
  79. package/dist/{stock-CzdMn9n8.js → stock-Bqk5_C4b.js} +3 -3
  80. package/dist/{supplier-De5G6CeF.js → supplier-B0yIc028.js} +2 -2
  81. package/dist/{surcharge-CN5FtDZq.js → surcharge-BZa9y16I.js} +8 -8
  82. package/dist/tsconfig.app.tsbuildinfo +1 -1
  83. package/dist/{use-ingredient-select-dialog-Wy4CtYcZ.js → use-ingredient-select-dialog-BGPPfGO-.js} +2 -2
  84. package/dist/{use-inventory-binding-dialog-C1LCH0jV.js → use-inventory-binding-dialog-DUsjKdNr.js} +2 -2
  85. package/dist/{use-template-enabled-locations-BfZFcXZ_.js → use-template-enabled-locations-D2EWKhWK.js} +2 -2
  86. package/dist/use-transfer-locations-BRQbfZYI.js +116 -0
  87. package/dist/useHrmPermission-BZSfcBwi.js +16 -0
  88. package/dist/useNavigationMenu-C7F5h-H5.js +162 -0
  89. package/dist/views/DefaultView.vue.d.ts +2 -0
  90. package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +2 -5
  91. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorDialog.vue.d.ts +19 -0
  92. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorQueryStep.vue.d.ts +2 -0
  93. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorSummaryStep.vue.d.ts +2 -0
  94. package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +634 -0
  95. package/dist/{vue-i18n-CvVV4Xof.js → vue-i18n-BuXEP0EQ.js} +348 -348
  96. package/dist/{xlsx-lawW6Hwh.js → xlsx-C0BSmeBh.js} +1 -1
  97. package/dist/{xlsx.util-DSCqPt8v.js → xlsx.util-CyLHh8k-.js} +1 -1
  98. package/package.json +4 -3
  99. package/dist/App-BQZQFNKG.js +0 -411
  100. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BDZVaj3l.js +0 -188
  101. package/dist/RecipeView--ALwYD-O.js +0 -1692
  102. package/dist/StockView-BLrquJf2.js +0 -2406
package/dist/app.d.ts CHANGED
@@ -18,6 +18,10 @@ export declare const i18nMessages: {
18
18
  comparePlans: string;
19
19
  callUs: string;
20
20
  };
21
+ noPermission: {
22
+ title: string;
23
+ description: string;
24
+ };
21
25
  table: {
22
26
  toolbar: {
23
27
  filterItems: string;
@@ -752,6 +756,132 @@ export declare const i18nMessages: {
752
756
  };
753
757
  enableRecipeV2: string;
754
758
  recipeV2Warning: string;
759
+ applyToRecipes: {
760
+ title: string;
761
+ confirm: {
762
+ title: string;
763
+ message: string;
764
+ };
765
+ step1: {
766
+ title: string;
767
+ description: string;
768
+ selectLabel: string;
769
+ selectPlaceholder: string;
770
+ noSkuWarning: string;
771
+ ruleHint: string;
772
+ sublabel: {
773
+ ingredient: string;
774
+ ingredients: string;
775
+ subRecipe: string;
776
+ subRecipes: string;
777
+ v2: string;
778
+ noBindings: string;
779
+ };
780
+ };
781
+ step2: {
782
+ title: string;
783
+ description: string;
784
+ noResults: string;
785
+ overridden: string;
786
+ clearOverride: string;
787
+ match: {
788
+ directSku: string;
789
+ alreadyBound: string;
790
+ };
791
+ flag: {
792
+ differentAmount: string;
793
+ alreadySubRecipe: string;
794
+ };
795
+ };
796
+ step3: {
797
+ title: string;
798
+ description: string;
799
+ noSelection: string;
800
+ confirmButton: string;
801
+ successTitle: string;
802
+ successMessage: string;
803
+ partialErrorTitle: string;
804
+ partialErrorMessage: string;
805
+ errorTitle: string;
806
+ errorMessage: string;
807
+ unknownError: string;
808
+ };
809
+ };
810
+ bulkEditor: {
811
+ title: string;
812
+ query: {
813
+ nameSearchPlaceholder: string;
814
+ ingredientFilterLabel: string;
815
+ ingredientPlaceholder: string;
816
+ amountLabel: string;
817
+ amountOptional: string;
818
+ amountPlaceholder: string;
819
+ selectAll: string;
820
+ noResults: string;
821
+ selectionCount: string;
822
+ };
823
+ editor: {
824
+ emptyPrompt: string;
825
+ editingLabel: string;
826
+ applyButton: string;
827
+ revertButton: string;
828
+ applyToAllButton: string;
829
+ reviewButton: string;
830
+ };
831
+ applyToAll: {
832
+ confirmTitle: string;
833
+ confirmMessage: string;
834
+ confirmButton: string;
835
+ disabledVersionChange: string;
836
+ };
837
+ status: {
838
+ willUpdate: string;
839
+ alreadySatisfied: string;
840
+ partiallyIgnored: string;
841
+ blocked: string;
842
+ noApplicableChanges: string;
843
+ };
844
+ step3: {
845
+ confirmTitle: string;
846
+ confirmMessage: string;
847
+ confirmButton: string;
848
+ successTitle: string;
849
+ successMessage: string;
850
+ partialErrorTitle: string;
851
+ partialErrorMessage: string;
852
+ errorTitle: string;
853
+ errorMessage: string;
854
+ unknownError: string;
855
+ };
856
+ stepLabel: {
857
+ editor: string;
858
+ summary: string;
859
+ };
860
+ summary: {
861
+ title: string;
862
+ backButton: string;
863
+ nothingToSubmit: string;
864
+ countWillUpdate: string;
865
+ countPartiallyIgnored: string;
866
+ countAlreadySatisfied: string;
867
+ countBlocked: string;
868
+ countNoChanges: string;
869
+ noChangesDetail: string;
870
+ changeRemove: string;
871
+ changeAdd: string;
872
+ changeReplace: string;
873
+ changeUpdateRule: string;
874
+ changeUpdateAlternatives: string;
875
+ outcomeApplied: string;
876
+ outcomeIgnored: string;
877
+ outcomeAlreadySatisfied: string;
878
+ outcomeBlocked: string;
879
+ footerApplied: string;
880
+ footerSatisfied: string;
881
+ footerIgnored: string;
882
+ footerBlocked: string;
883
+ };
884
+ };
755
885
  };
756
886
  unit: {
757
887
  title: string;
@@ -1339,6 +1469,10 @@ export declare const i18nMessages: {
1339
1469
  comparePlans: string;
1340
1470
  callUs: string;
1341
1471
  };
1472
+ noPermission: {
1473
+ title: string;
1474
+ description: string;
1475
+ };
1342
1476
  table: {
1343
1477
  toolbar: {
1344
1478
  filterItems: string;
@@ -2652,6 +2786,10 @@ export declare const i18nMessages: {
2652
2786
  comparePlans: string;
2653
2787
  callUs: string;
2654
2788
  };
2789
+ noPermission: {
2790
+ title: string;
2791
+ description: string;
2792
+ };
2655
2793
  table: {
2656
2794
  toolbar: {
2657
2795
  filterItems: string;
@@ -3965,6 +4103,10 @@ export declare const i18nMessages: {
3965
4103
  comparePlans: string;
3966
4104
  callUs: string;
3967
4105
  };
4106
+ noPermission: {
4107
+ title: string;
4108
+ description: string;
4109
+ };
3968
4110
  table: {
3969
4111
  toolbar: {
3970
4112
  filterItems: string;
@@ -5331,12 +5473,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
5331
5473
  }[]>;
5332
5474
  default: () => never[];
5333
5475
  };
5334
- iframeMode: {
5335
- type: import("vue").PropType<boolean>;
5336
- };
5337
5476
  excludeBindingId: {
5338
5477
  type: import("vue").PropType<string>;
5339
5478
  };
5479
+ iframeMode: {
5480
+ type: import("vue").PropType<boolean>;
5481
+ };
5340
5482
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5341
5483
  "update:modelValue": (bindings: {
5342
5484
  measurement?: {
@@ -5430,12 +5572,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
5430
5572
  }[]>;
5431
5573
  default: () => never[];
5432
5574
  };
5433
- iframeMode: {
5434
- type: import("vue").PropType<boolean>;
5435
- };
5436
5575
  excludeBindingId: {
5437
5576
  type: import("vue").PropType<string>;
5438
5577
  };
5578
+ iframeMode: {
5579
+ type: import("vue").PropType<boolean>;
5580
+ };
5439
5581
  }>> & Readonly<{
5440
5582
  "onUpdate:modelValue"?: ((bindings: {
5441
5583
  measurement?: {
package/dist/app.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import "vue";
2
- import { at as r, au as e, av as o, as as t, aw as i, a as m } from "./app-CPlgHGkC.js";
2
+ import { aw as s, ax as e, ay as o, av as m, am as t, a as i } from "./app-CaGW5ogt.js";
3
3
  export {
4
- r as FmApp,
4
+ s as FmApp,
5
5
  e as InventoryBindingForm,
6
6
  o as InventoryBindingSummary,
7
- t as i18nMessages,
8
- i as routers,
9
- m as useInventoryStore
7
+ m as i18nMessages,
8
+ t as routers,
9
+ i as useInventoryStore
10
10
  };
@@ -1,4 +1,4 @@
1
- import { o as c } from "./app-CPlgHGkC.js";
1
+ import { m as c } from "./app-CaGW5ogt.js";
2
2
  import { useCoreStore as u } from "@feedmepos/mf-common";
3
3
  const d = c((s, a) => {
4
4
  function r() {
@@ -0,0 +1,54 @@
1
+ import type { CaslPermission } from '@feedmepos/hrm-permission';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ /** Single CASL permission to check */
4
+ permission?: CaslPermission | undefined;
5
+ /** Multiple CASL permissions to check */
6
+ permissions?: CaslPermission[] | undefined;
7
+ /** Check mode: 'all' requires every permission, 'any' requires at least one */
8
+ mode?: "all" | "any" | undefined;
9
+ }>, {
10
+ permission: undefined;
11
+ permissions: undefined;
12
+ mode: string;
13
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
+ /** Single CASL permission to check */
15
+ permission?: CaslPermission | undefined;
16
+ /** Multiple CASL permissions to check */
17
+ permissions?: CaslPermission[] | undefined;
18
+ /** Check mode: 'all' requires every permission, 'any' requires at least one */
19
+ mode?: "all" | "any" | undefined;
20
+ }>, {
21
+ permission: undefined;
22
+ permissions: undefined;
23
+ mode: string;
24
+ }>>> & Readonly<{}>, {
25
+ permissions: CaslPermission[];
26
+ mode: "all" | "any";
27
+ permission: CaslPermission;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
29
+ default?(_: {}): any;
30
+ fallback?(_: {}): any;
31
+ }>;
32
+ export default _default;
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToRuntimeProps<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
@@ -0,0 +1,17 @@
1
+ import type { MaybeRefOrGetter, ComputedRef } from 'vue';
2
+ import type { CaslPermission } from '@feedmepos/hrm-permission';
3
+ /**
4
+ * Reactively checks HRM permissions against the current session user.
5
+ *
6
+ * @param permissions CASL permission objects to check.
7
+ * @param mode Permission matching mode: `all` requires every permission, `any` requires at least one.
8
+ * @returns Object containing a computed `hasPermission` boolean.
9
+ *
10
+ * @example
11
+ * const { hasPermission } = useHrmPermission([
12
+ * { action: Permission.read, subject: 'inventory' }
13
+ * ])
14
+ */
15
+ export declare function useHrmPermission(permissions: MaybeRefOrGetter<CaslPermission[]>, mode?: MaybeRefOrGetter<'all' | 'any'>): {
16
+ hasPermission: ComputedRef<boolean>;
17
+ };
@@ -0,0 +1,11 @@
1
+ import type { ComputedRef } from 'vue';
2
+ /**
3
+ * Checks whether the current session user has at least one reachable
4
+ * inventory route in the current app configuration.
5
+ *
6
+ * This is intentionally aligned with navigation routing so feature-gated
7
+ * routes do not count as accessible entry points.
8
+ */
9
+ export declare function useInventoryAccess(): {
10
+ hasAnyAccessibleInventoryRoute: ComputedRef<boolean>;
11
+ };
@@ -0,0 +1,14 @@
1
+ import type { ComputedRef } from 'vue';
2
+ import { RouteName } from '@/router/name';
3
+ export interface NavigationMenuItem {
4
+ label: string;
5
+ value?: string;
6
+ icon?: string;
7
+ disabled?: boolean;
8
+ children?: NavigationMenuItem[];
9
+ }
10
+ export interface UseNavigationMenuReturn {
11
+ menuItems: ComputedRef<NavigationMenuItem[]>;
12
+ firstAccessibleRouteName: ComputedRef<RouteName | null>;
13
+ }
14
+ export declare function useNavigationMenu(): UseNavigationMenuReturn;
@@ -1,4 +1,4 @@
1
- import { d as l } from "./dayjs.min-DTx2lmq6.js";
1
+ import { d as l } from "./dayjs.min-UwaUKDHA.js";
2
2
  const T = new Intl.DateTimeFormat("en-US", {
3
3
  year: "numeric",
4
4
  month: "2-digit",
@@ -1,10 +1,10 @@
1
- import { V as Q, A as K } from "./app-CPlgHGkC.js";
2
- var z = { exports: {} };
3
- (function(E, X) {
1
+ import { U as Q, y as K } from "./app-CaGW5ogt.js";
2
+ var E = { exports: {} };
3
+ (function(V, X) {
4
4
  (function(W, k) {
5
- E.exports = k();
5
+ V.exports = k();
6
6
  })(Q, function() {
7
- var W = 1e3, k = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", v = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
7
+ var W = 1e3, k = 6e4, F = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", N = "quarter", y = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
8
8
  var n = ["th", "st", "nd", "rd"], t = s % 100;
9
9
  return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
10
10
  } }, I = function(s, n, t) {
@@ -20,13 +20,13 @@ var z = { exports: {} };
20
20
  }, a: function(s) {
21
21
  return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
22
22
  }, p: function(s) {
23
- return { M: m, y: v, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
23
+ return { M: m, y, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: N }[s] || String(s || "").toLowerCase().replace(/s$/, "");
24
24
  }, u: function(s) {
25
25
  return s === void 0;
26
26
  } }, x = "en", D = {};
27
27
  D[x] = G;
28
- var V = "$isDayjsObject", F = function(s) {
29
- return s instanceof C || !(!s || !s[V]);
28
+ var Z = "$isDayjsObject", U = function(s) {
29
+ return s instanceof C || !(!s || !s[Z]);
30
30
  }, j = function s(n, t, r) {
31
31
  var e;
32
32
  if (!n) return x;
@@ -41,16 +41,16 @@ var z = { exports: {} };
41
41
  }
42
42
  return !r && e && (x = e), e || !r && x;
43
43
  }, f = function(s, n) {
44
- if (F(s)) return s.clone();
44
+ if (U(s)) return s.clone();
45
45
  var t = typeof n == "object" ? n : {};
46
46
  return t.date = s, t.args = arguments, new C(t);
47
47
  }, a = P;
48
- a.l = j, a.i = F, a.w = function(s, n) {
48
+ a.l = j, a.i = U, a.w = function(s, n) {
49
49
  return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
50
50
  };
51
51
  var C = function() {
52
52
  function s(t) {
53
- this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[V] = !0;
53
+ this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
54
54
  }
55
55
  var n = s.prototype;
56
56
  return n.parse = function(t) {
@@ -90,13 +90,13 @@ var z = { exports: {} };
90
90
  return this.$d.getTime();
91
91
  }, n.startOf = function(t, r) {
92
92
  var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
93
- var y = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
94
- return i ? y : y.endOf(M);
93
+ var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
94
+ return i ? v : v.endOf(M);
95
95
  }, c = function(p, $) {
96
96
  return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
97
97
  }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
98
98
  switch (u) {
99
- case v:
99
+ case y:
100
100
  return i ? o(1, 0) : o(31, 11);
101
101
  case m:
102
102
  return i ? o(1, d) : o(0, d + 1);
@@ -118,8 +118,8 @@ var z = { exports: {} };
118
118
  }, n.endOf = function(t) {
119
119
  return this.startOf(t, !1);
120
120
  }, n.$set = function(t, r) {
121
- var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[v] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
122
- if (i === m || i === v) {
121
+ var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
122
+ if (i === m || i === y) {
123
123
  var h = this.clone().set(_, 1);
124
124
  h.$d[o](c), h.init(), this.$d = h.set(_, Math.min(this.$D, h.daysInMonth())).$d;
125
125
  } else o && this.$d[o](c);
@@ -136,26 +136,26 @@ var z = { exports: {} };
136
136
  return a.w(l.date(l.date() + Math.round(d * t)), i);
137
137
  };
138
138
  if (u === m) return this.set(m, this.$M + t);
139
- if (u === v) return this.set(v, this.$y + t);
139
+ if (u === y) return this.set(y, this.$y + t);
140
140
  if (u === M) return o(1);
141
141
  if (u === T) return o(7);
142
- var c = (e = {}, e[w] = k, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
142
+ var c = (e = {}, e[w] = k, e[O] = F, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
143
143
  return a.w(h, this);
144
144
  }, n.subtract = function(t, r) {
145
145
  return this.add(-1 * t, r);
146
146
  }, n.format = function(t) {
147
147
  var r = this, e = this.$locale();
148
148
  if (!this.isValid()) return e.invalidDate || J;
149
- var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, y, H, L) {
150
- return $ && ($[y] || $(r, i)) || H[y].slice(0, L);
149
+ var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, L) {
150
+ return $ && ($[v] || $(r, i)) || H[v].slice(0, L);
151
151
  }, Y = function($) {
152
152
  return a.s(o % 12 || 12, $, "0");
153
- }, p = b || function($, y, H) {
153
+ }, p = b || function($, v, H) {
154
154
  var L = $ < 12 ? "AM" : "PM";
155
155
  return H ? L.toLowerCase() : L;
156
156
  };
157
- return i.replace(B, function($, y) {
158
- return y || function(H) {
157
+ return i.replace(B, function($, v) {
158
+ return v || function(H) {
159
159
  switch (H) {
160
160
  case "YY":
161
161
  return String(r.$y).slice(-2);
@@ -216,13 +216,13 @@ var z = { exports: {} };
216
216
  return a.m(u, c);
217
217
  };
218
218
  switch (o) {
219
- case v:
219
+ case y:
220
220
  i = l() / 12;
221
221
  break;
222
222
  case m:
223
223
  i = l();
224
224
  break;
225
- case U:
225
+ case N:
226
226
  i = l() / 3;
227
227
  break;
228
228
  case T:
@@ -232,7 +232,7 @@ var z = { exports: {} };
232
232
  i = (d - h) / 864e5;
233
233
  break;
234
234
  case O:
235
- i = d / N;
235
+ i = d / F;
236
236
  break;
237
237
  case w:
238
238
  i = d / k;
@@ -263,19 +263,19 @@ var z = { exports: {} };
263
263
  }, n.toString = function() {
264
264
  return this.$d.toUTCString();
265
265
  }, s;
266
- }(), Z = C.prototype;
267
- return f.prototype = Z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", v], ["$D", _]].forEach(function(s) {
268
- Z[s[1]] = function(n) {
266
+ }(), z = C.prototype;
267
+ return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", y], ["$D", _]].forEach(function(s) {
268
+ z[s[1]] = function(n) {
269
269
  return this.$g(n, s[0], s[1]);
270
270
  };
271
271
  }), f.extend = function(s, n) {
272
272
  return s.$i || (s(n, C, f), s.$i = !0), f;
273
- }, f.locale = j, f.isDayjs = F, f.unix = function(s) {
273
+ }, f.locale = j, f.isDayjs = U, f.unix = function(s) {
274
274
  return f(1e3 * s);
275
275
  }, f.en = D[x], f.Ls = D, f.p = {}, f;
276
276
  });
277
- })(z);
278
- var R = z.exports;
277
+ })(E);
278
+ var R = E.exports;
279
279
  const et = /* @__PURE__ */ K(R);
280
280
  export {
281
281
  et as d
@@ -1,5 +1,5 @@
1
- import "./dayjs.min-DTx2lmq6.js";
2
- import "./app-CPlgHGkC.js";
1
+ import "./dayjs.min-UwaUKDHA.js";
2
+ import "./app-CaGW5ogt.js";
3
3
  function m(a) {
4
4
  function t(o, n = !0) {
5
5
  const e = Math.round(Math.log10(o));
@@ -1,4 +1,4 @@
1
- import { c as a, a1 as u } from "./app-CPlgHGkC.js";
1
+ import { c as a, a1 as u } from "./app-CaGW5ogt.js";
2
2
  import { getCurrentInstance as d, reactive as l, watch as o } from "vue";
3
3
  function g(i = "modelValue", e) {
4
4
  var n, c;
@@ -1,4 +1,4 @@
1
- import { o as p } from "./app-CPlgHGkC.js";
1
+ import { m as p } from "./app-CaGW5ogt.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = p((s, n) => {
4
4
  function o() {