@feedmepos/mf-transaction 0.0.50-alpha.0 → 0.0.51

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.
@@ -0,0 +1,121 @@
1
+ export interface BaseOption {
2
+ [key: string]: any;
3
+ }
4
+ export interface SelectFilterOption {
5
+ label: string;
6
+ value: any;
7
+ [key: string]: any;
8
+ }
9
+ export interface Props {
10
+ /** Items to show in the menu (must contain label & value) */
11
+ items: SelectFilterOption[];
12
+ /** v-model value (single or multiple depending on `multiple`) */
13
+ modelValue?: any | any[] | null;
14
+ /** Enable multi-select */
15
+ multiple?: boolean;
16
+ /** Placeholder text when nothing selected */
17
+ placeholder?: string;
18
+ /** Search input placeholder */
19
+ searchPlaceholder?: string;
20
+ /** Disable the whole control */
21
+ disabled?: boolean;
22
+ /** Visual variant */
23
+ variant?: "default" | "dark";
24
+ /** Allow clearing selection with clear button (single only currently) */
25
+ clearable?: boolean;
26
+ /** Show search box */
27
+ searchable?: boolean;
28
+ /** Auto select first option when available */
29
+ autoSelectFirst?: boolean;
30
+ /** Custom icon for chip */
31
+ chipIcon?: string;
32
+ /** If true and multiple, show an All toggle entry */
33
+ showSelectAll?: boolean;
34
+ /** Max height for options scroll area */
35
+ maxHeight?: string | number;
36
+ /** When user selected some items, we should display like "selectedPrefix: <count>" */
37
+ selectedPrefix?: string;
38
+ }
39
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
40
+ items: () => never[];
41
+ multiple: boolean;
42
+ placeholder: string;
43
+ searchPlaceholder: string;
44
+ disabled: boolean;
45
+ variant: string;
46
+ clearable: boolean;
47
+ searchable: boolean;
48
+ autoSelectFirst: boolean;
49
+ chipIcon: string;
50
+ showSelectAll: boolean;
51
+ maxHeight: number;
52
+ selectedPrefix: string;
53
+ }>>, {
54
+ open: () => void | undefined;
55
+ close: () => void | undefined;
56
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
+ "update:modelValue": (value: any) => void;
58
+ change: (value: any) => void;
59
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
60
+ items: () => never[];
61
+ multiple: boolean;
62
+ placeholder: string;
63
+ searchPlaceholder: string;
64
+ disabled: boolean;
65
+ variant: string;
66
+ clearable: boolean;
67
+ searchable: boolean;
68
+ autoSelectFirst: boolean;
69
+ chipIcon: string;
70
+ showSelectAll: boolean;
71
+ maxHeight: number;
72
+ selectedPrefix: string;
73
+ }>>> & Readonly<{
74
+ onChange?: ((value: any) => any) | undefined;
75
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
76
+ }>, {
77
+ disabled: boolean;
78
+ variant: "default" | "dark";
79
+ items: SelectFilterOption[];
80
+ maxHeight: string | number;
81
+ placeholder: string;
82
+ searchable: boolean;
83
+ multiple: boolean;
84
+ autoSelectFirst: boolean;
85
+ searchPlaceholder: string;
86
+ clearable: boolean;
87
+ chipIcon: string;
88
+ showSelectAll: boolean;
89
+ selectedPrefix: string;
90
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
91
+ "menu-button"?(_: {}): any;
92
+ option?(_: {
93
+ option: SelectFilterOption;
94
+ selected: boolean;
95
+ toggle: () => void;
96
+ }): any;
97
+ "append-right"?(_: {}): any;
98
+ }>;
99
+ export default _default;
100
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
101
+ type __VLS_TypePropsToRuntimeProps<T> = {
102
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
103
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
104
+ } : {
105
+ type: import('vue').PropType<T[K]>;
106
+ required: true;
107
+ };
108
+ };
109
+ type __VLS_WithDefaults<P, D> = {
110
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
111
+ default: D[K];
112
+ }> : P[K];
113
+ };
114
+ type __VLS_Prettify<T> = {
115
+ [K in keyof T]: T[K];
116
+ } & {};
117
+ type __VLS_WithTemplateSlots<T, S> = T & {
118
+ new (): {
119
+ $slots: S;
120
+ };
121
+ };
@@ -2,7 +2,7 @@ import { type Ref } from "vue";
2
2
  interface Option<T> {
3
3
  value: T;
4
4
  }
5
- export declare function useFilterSelector<T>(options: Ref<Option<T>[]>, model: Ref<T[] | undefined | null>): {
5
+ export declare function useFilterSelector<T>(options: Ref<Option<T>[]>, model: Ref<T[] | undefined | null>, filteredOptions?: Ref<Option<T>[]>): {
6
6
  allCleared: Ref<boolean, boolean>;
7
7
  allSelected: import("vue").ComputedRef<boolean>;
8
8
  indeterminate: import("vue").ComputedRef<boolean>;
@@ -82,7 +82,7 @@ export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-st
82
82
  };
83
83
  assets: {
84
84
  groups: {
85
- key: "pos" | "portal";
85
+ key: "portal" | "pos";
86
86
  assets: {
87
87
  type: "image" | "lottie";
88
88
  key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
@@ -179,7 +179,7 @@ export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-st
179
179
  };
180
180
  assets: {
181
181
  groups: {
182
- key: "pos" | "portal";
182
+ key: "portal" | "pos";
183
183
  assets: {
184
184
  type: "image" | "lottie";
185
185
  key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-transaction",
3
- "version": "0.0.50-alpha.0",
3
+ "version": "0.0.51",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -17,9 +17,9 @@
17
17
  "dependencies": {
18
18
  "@feedmepos/core": "2.14.36",
19
19
  "@feedmepos/core-dart": "^0.2.6",
20
- "@feedmepos/kitchen": "^2.4.11",
20
+ "@feedmepos/kitchen": "^2.4.17",
21
21
  "@feedmepos/payment-entity": "0.1.3",
22
- "@feedmepos/print": "file:../../core-legacy-1.2.tar.gz",
22
+ "@feedmepos/print": "file:../../core-legacy-1.3.tar.gz",
23
23
  "@feedmepos/printer": "^0.0.8",
24
24
  "@feedmepos/ui-library": "1.7.0",
25
25
  "@vitejs/plugin-vue-jsx": "^4.0.0",
@@ -32,7 +32,7 @@
32
32
  "vue": "^3.5.16",
33
33
  "vue-i18n": "10.0.5",
34
34
  "xlsx": "^0.18.5",
35
- "@feedmepos/mf-common": "^1.27.2"
35
+ "@feedmepos/mf-common": "^1.27.5"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@casl/ability": "^3.4.0",