@feedmepos/mf-financing 0.0.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 (54) hide show
  1. package/README.md +11 -0
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/Entry.vue.d.ts +2 -0
  4. package/dist/Financing-6bpYBvrC.js +14 -0
  5. package/dist/Forbidden-Dqw0MqyC.js +37 -0
  6. package/dist/api/index.d.ts +50 -0
  7. package/dist/api/pagination.d.ts +20 -0
  8. package/dist/api/restaurant/index.d.ts +6 -0
  9. package/dist/app.d.ts +13 -0
  10. package/dist/app.js +3687 -0
  11. package/dist/assets/icons/index.d.ts +21 -0
  12. package/dist/components/AdminLayout.vue.d.ts +21 -0
  13. package/dist/components/AsyncButton.vue.d.ts +21 -0
  14. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  15. package/dist/components/CursorTable/FmTableSelection.vue.d.ts +13 -0
  16. package/dist/components/CursorTable/index.vue.d.ts +64 -0
  17. package/dist/components/DateRangePicker.vue.d.ts +13 -0
  18. package/dist/components/ImagePreview.vue.d.ts +13 -0
  19. package/dist/components/Layout.vue.d.ts +21 -0
  20. package/dist/components/Modal.d.ts +3 -0
  21. package/dist/components/PDFViewer.vue.d.ts +25 -0
  22. package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
  23. package/dist/components/PagingTable/index.vue.d.ts +48 -0
  24. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  25. package/dist/components/RouteCell.vue.d.ts +7 -0
  26. package/dist/components/SelectAll.vue.d.ts +57 -0
  27. package/dist/composable/loading/index.d.ts +8 -0
  28. package/dist/composable/query/index.d.ts +2 -0
  29. package/dist/helpers/clipboard.d.ts +1 -0
  30. package/dist/helpers/date.d.ts +22 -0
  31. package/dist/helpers/db.d.ts +2 -0
  32. package/dist/helpers/dinero.d.ts +2 -0
  33. package/dist/helpers/error.d.ts +1 -0
  34. package/dist/helpers/export.d.ts +12 -0
  35. package/dist/helpers/grafana.d.ts +8 -0
  36. package/dist/helpers/idToDate.d.ts +1 -0
  37. package/dist/helpers/iteration.d.ts +15 -0
  38. package/dist/helpers/number.d.ts +22 -0
  39. package/dist/helpers/object.d.ts +1 -0
  40. package/dist/helpers/string.d.ts +12 -0
  41. package/dist/helpers/time.d.ts +7 -0
  42. package/dist/helpers/validator.d.ts +4 -0
  43. package/dist/i18n.d.ts +10 -0
  44. package/dist/main.d.ts +1 -0
  45. package/dist/model/pagination.d.ts +14 -0
  46. package/dist/modules.d.ts +1 -0
  47. package/dist/package.json +101 -0
  48. package/dist/plugins.d.ts +37 -0
  49. package/dist/router/index.d.ts +13 -0
  50. package/dist/stores/iframe.d.ts +14 -0
  51. package/dist/tsconfig.app.tsbuildinfo +1 -0
  52. package/dist/views/Financing.vue.d.ts +2 -0
  53. package/dist/views/Forbidden.vue.d.ts +2 -0
  54. package/package.json +101 -0
@@ -0,0 +1,21 @@
1
+ declare const arrowLeftIcon = "chevron_left";
2
+ declare const arrowDownIcon = "expand_more";
3
+ declare const arrowRightIcon = "chevron_right";
4
+ declare const arrowUpIcon = "expand_less";
5
+ declare const checkmarkSolidIcon = "check_circle";
6
+ declare const closeIcon = "close";
7
+ declare const copyIcon = "o_file_copy";
8
+ declare const dashIcon = "remove";
9
+ declare const deleteIcon = "o_delete";
10
+ declare const downloadIcon = "download";
11
+ declare const editIcon = "o_edit";
12
+ declare const locationIcon = "fa-solid fa-location-dot";
13
+ declare const mailIcon = "fa-solid fa-envelope";
14
+ declare const phoneIcon = "phone_in_talk";
15
+ declare const searchIcon = "search";
16
+ declare const unlinkIcon = "link_off";
17
+ declare const uploadIcon = "o_file_upload";
18
+ declare const visibleIcon = "visibility";
19
+ declare const visibleOffIcon = "visibility_off";
20
+ declare const warningIcon = "fa-solid fa-circle-exclamation";
21
+ export { arrowLeftIcon, arrowDownIcon, arrowRightIcon, arrowUpIcon, checkmarkSolidIcon, closeIcon, copyIcon, dashIcon, deleteIcon, downloadIcon, editIcon, locationIcon, mailIcon, phoneIcon, searchIcon, unlinkIcon, uploadIcon, visibleIcon, visibleOffIcon, warningIcon, };
@@ -0,0 +1,21 @@
1
+ import { type FmPageHeadAction } from '@feedmepos/ui-library';
2
+ type __VLS_Props = {
3
+ loading: boolean;
4
+ title: string;
5
+ onBack?: () => void;
6
+ businessFilter?: boolean;
7
+ restaurantFilter?: boolean;
8
+ };
9
+ export type LayoutAction = {
10
+ label: string;
11
+ fn: () => void;
12
+ } & Omit<FmPageHeadAction, 'value'>;
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,21 @@
1
+ import { type FmButtonProps } from '@feedmepos/ui-library';
2
+ import type { PropType } from 'vue';
3
+ type AsyncFunction = () => Promise<void>;
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ button: {
6
+ type: PropType<FmButtonProps>;
7
+ };
8
+ handler: {
9
+ type: PropType<AsyncFunction>;
10
+ required: true;
11
+ };
12
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ button: {
14
+ type: PropType<FmButtonProps>;
15
+ };
16
+ handler: {
17
+ type: PropType<AsyncFunction>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ data: string;
3
+ extra?: string;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
@@ -0,0 +1,13 @@
1
+ export interface FmTableSelectionProps {
2
+ value: number;
3
+ items: {
4
+ label: string;
5
+ value: number;
6
+ }[];
7
+ }
8
+ declare const _default: import("vue").DefineComponent<FmTableSelectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ "update:modelValue": (value: number) => any;
10
+ }, string, import("vue").PublicProps, Readonly<FmTableSelectionProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,64 @@
1
+ import { type PaginatedResult } from '@/model/pagination';
2
+ import { type ColumnDef } from '@feedmepos/ui-library';
3
+ export type CursorTableController<T> = {
4
+ /**
5
+ * Reset pagination and all loaded data, and perform load for first page data
6
+ */
7
+ reset: () => {};
8
+ /**
9
+ * All data from the server, will be keep on looping cursor until there's no cursor.
10
+ */
11
+ allData: () => Promise<T[]>;
12
+ /**
13
+ * All loaded data, before transform
14
+ */
15
+ data: () => T[];
16
+ /**
17
+ * Current page of the data, before transform
18
+ */
19
+ pageData: () => T[];
20
+ /**
21
+ * Replace page data by page index
22
+ */
23
+ replaceData: (index: number, value: T) => void;
24
+ };
25
+ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
26
+ readonly columnDefs: ColumnDef<R>[];
27
+ readonly rowsDefs: (a: T) => R;
28
+ readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
29
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
30
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
31
+ attrs: any;
32
+ slots: {};
33
+ emit: (event: 'row-click', data: T) => any;
34
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>) => void) | undefined, __VLS_setup?: Promise<{
35
+ props: {
36
+ readonly columnDefs: ColumnDef<R>[];
37
+ readonly rowsDefs: (a: T) => R;
38
+ readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
39
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
40
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
41
+ expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
42
+ attrs: any;
43
+ slots: {};
44
+ emit: (event: 'row-click', data: T) => any;
45
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
+ [key: string]: any;
47
+ }> & {
48
+ __ctx?: {
49
+ props: {
50
+ readonly columnDefs: ColumnDef<R>[];
51
+ readonly rowsDefs: (a: T) => R;
52
+ readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
53
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
54
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
55
+ expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
56
+ attrs: any;
57
+ slots: {};
58
+ emit: (event: 'row-click', data: T) => any;
59
+ } | undefined;
60
+ };
61
+ export default _default;
62
+ type __VLS_PrettifyLocal<T> = {
63
+ [K in keyof T]: T[K];
64
+ } & {};
@@ -0,0 +1,13 @@
1
+ type DateRange = {
2
+ startDate: string;
3
+ endDate: string;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: DateRange;
7
+ };
8
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (value: DateRange) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: DateRange) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ image: string;
4
+ };
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
6
+ default?(_: {}): any;
7
+ }>;
8
+ export default _default;
9
+ type __VLS_WithTemplateSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,21 @@
1
+ import { type FmPageHeadAction } from '@feedmepos/ui-library';
2
+ type __VLS_Props = {
3
+ loading: boolean;
4
+ title: string;
5
+ description?: string;
6
+ onBack?: () => void;
7
+ actions?: LayoutAction[];
8
+ };
9
+ export type LayoutAction = {
10
+ label: string;
11
+ fn: () => void;
12
+ } & Omit<FmPageHeadAction, 'value'>;
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,3 @@
1
+ import { type DialogProvider } from "@feedmepos/ui-library";
2
+ declare const warningConfirm: (dialog: DialogProvider, title: string, message: string, onConfirm?: () => unknown, onCancel?: () => unknown) => void;
3
+ export { warningConfirm };
@@ -0,0 +1,25 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ pdf: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ height: {
7
+ type: NumberConstructor;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ pdf: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ height: {
15
+ type: NumberConstructor;
16
+ };
17
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>, {
18
+ "top-right"?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,13 @@
1
+ export interface FmTableSelectionProps {
2
+ value: number;
3
+ items: {
4
+ label: string;
5
+ value: number;
6
+ }[];
7
+ }
8
+ declare const _default: import("vue").DefineComponent<FmTableSelectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ "update:modelValue": (value: number) => any;
10
+ }, string, import("vue").PublicProps, Readonly<FmTableSelectionProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,48 @@
1
+ import { type ColumnDef } from '@feedmepos/ui-library';
2
+ import type { PaginatedResponse } from '@/api/pagination';
3
+ export type PagingTableController = {
4
+ /**
5
+ * Reset pagination and all loaded data, and perform load for first page data
6
+ */
7
+ reset: () => {};
8
+ };
9
+ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
10
+ readonly columnDefs: ColumnDef<R>[];
11
+ readonly rowsDefs: (a: T) => R;
12
+ readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
13
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
14
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
15
+ attrs: any;
16
+ slots: {};
17
+ emit: (event: 'row-click', data: T) => any;
18
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<PagingTableController>) => void) | undefined, __VLS_setup?: Promise<{
19
+ props: {
20
+ readonly columnDefs: ColumnDef<R>[];
21
+ readonly rowsDefs: (a: T) => R;
22
+ readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
23
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
24
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
25
+ expose(exposed: import("vue").ShallowUnwrapRef<PagingTableController>): void;
26
+ attrs: any;
27
+ slots: {};
28
+ emit: (event: 'row-click', data: T) => any;
29
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
+ [key: string]: any;
31
+ }> & {
32
+ __ctx?: {
33
+ props: {
34
+ readonly columnDefs: ColumnDef<R>[];
35
+ readonly rowsDefs: (a: T) => R;
36
+ readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
37
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
38
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
39
+ expose(exposed: import("vue").ShallowUnwrapRef<PagingTableController>): void;
40
+ attrs: any;
41
+ slots: {};
42
+ emit: (event: 'row-click', data: T) => any;
43
+ } | undefined;
44
+ };
45
+ export default _default;
46
+ type __VLS_PrettifyLocal<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
@@ -0,0 +1,2 @@
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
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { type RouteLocationRaw } from 'vue-router';
2
+ type __VLS_Props = {
3
+ data: string;
4
+ route: RouteLocationRaw;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import { type ISelectItem } from '@feedmepos/ui-library';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ label: {
4
+ type: StringConstructor;
5
+ };
6
+ items: {
7
+ type: {
8
+ (arrayLength: number): ISelectItem[];
9
+ (...items: ISelectItem[]): ISelectItem[];
10
+ new (arrayLength: number): ISelectItem[];
11
+ new (...items: ISelectItem[]): ISelectItem[];
12
+ isArray(arg: any): arg is any[];
13
+ readonly prototype: any[];
14
+ from<T>(arrayLike: ArrayLike<T>): T[];
15
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
16
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
17
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
18
+ of<T_4>(...items: T_4[]): T_4[];
19
+ readonly [Symbol.species]: ArrayConstructor;
20
+ };
21
+ required: true;
22
+ };
23
+ modelValue: {
24
+ type: import("vue").PropType<any[]>;
25
+ required: true;
26
+ };
27
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ "update:modelValue": (value: any[]) => any;
29
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
+ label: {
31
+ type: StringConstructor;
32
+ };
33
+ items: {
34
+ type: {
35
+ (arrayLength: number): ISelectItem[];
36
+ (...items: ISelectItem[]): ISelectItem[];
37
+ new (arrayLength: number): ISelectItem[];
38
+ new (...items: ISelectItem[]): ISelectItem[];
39
+ isArray(arg: any): arg is any[];
40
+ readonly prototype: any[];
41
+ from<T>(arrayLike: ArrayLike<T>): T[];
42
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
43
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
44
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
45
+ of<T_4>(...items: T_4[]): T_4[];
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ required: true;
49
+ };
50
+ modelValue: {
51
+ type: import("vue").PropType<any[]>;
52
+ required: true;
53
+ };
54
+ }>> & Readonly<{
55
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
56
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export declare const useLoading: (initial?: boolean) => {
2
+ isLoading: import("vue").Ref<boolean, boolean>;
3
+ startLoading: () => void;
4
+ stopLoading: () => void;
5
+ startAsyncCall: <T>(cb: () => Promise<T>) => Promise<T>;
6
+ startAsyncCallFn: <T_1>(cb: () => Promise<T_1>) => () => Promise<T_1>;
7
+ startAsyncCallWithErr: <T_2>(cb: () => Promise<T_2>) => Promise<T_2>;
8
+ };
@@ -0,0 +1,2 @@
1
+ import { type Ref } from "vue";
2
+ export declare const useQueryPath: <T extends Record<string, any>>(sources: T) => { [K in keyof T]: Ref<T[K], T[K]>; };
@@ -0,0 +1 @@
1
+ export declare function clipboardCopy(text: string): void;
@@ -0,0 +1,22 @@
1
+ export declare function formatDuration(totalMinutes: number): string;
2
+ export declare class DateRange {
3
+ private range;
4
+ constructor(dateRange: {
5
+ start: Date;
6
+ end: Date;
7
+ });
8
+ private format;
9
+ formatWith(format?: string, divider?: string): string;
10
+ }
11
+ export declare class Days {
12
+ private days;
13
+ constructor(days: string[]);
14
+ private static weekday;
15
+ private static weekend;
16
+ static list: readonly string[];
17
+ private validateInclude;
18
+ get isDaily(): boolean;
19
+ get includeWeekday(): boolean;
20
+ get includeWeekend(): boolean;
21
+ format(): string;
22
+ }
@@ -0,0 +1,2 @@
1
+ declare function checkIndexedDbUsable(): Promise<boolean>;
2
+ export { checkIndexedDbUsable };
@@ -0,0 +1,2 @@
1
+ import { FdoDinero } from '@feedmepos/core/entity';
2
+ export declare function dineroToDisplay(dinero: FdoDinero): string;
@@ -0,0 +1 @@
1
+ export declare function unknownErrorToMessage(err: unknown): string;
@@ -0,0 +1,12 @@
1
+ export interface ExportExcelCol<T> {
2
+ name: string;
3
+ selector: keyof T | ((v: T) => ExcelColValue);
4
+ }
5
+ export interface ExportExcelSheet<T> {
6
+ name: string;
7
+ data: T[];
8
+ columns: ExportExcelCol<T>[];
9
+ }
10
+ type ExcelColValue = string | number | Date | null;
11
+ export declare function exportExcel<T>(sheets: ExportExcelSheet<T>[], fileName: string): Promise<void>;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ type QueryTarget = {
2
+ id?: string;
3
+ type: "span" | "resource";
4
+ queryKey: string;
5
+ queryValue: string | string[];
6
+ };
7
+ declare const getGrafanaOtelURL: (extras: QueryTarget[], startAt?: string) => string;
8
+ export default getGrafanaOtelURL;
@@ -0,0 +1 @@
1
+ export default function idToDate(id: any): Date | null;
@@ -0,0 +1,15 @@
1
+ type Selector<T> = keyof T | ((item: T) => string);
2
+ declare function sort<T>(arr: T[], option?: {
3
+ selector?: Selector<T>;
4
+ descending?: boolean;
5
+ } | undefined): T[];
6
+ declare function group<T>(arr: T[], by: Selector<T>): {
7
+ [key: string]: T[];
8
+ };
9
+ declare function insertIfNotExist<T>(arr: T[], value: T): T[];
10
+ declare function remove<T>(arr: T[], target: T, selector?: Selector<T>): T[];
11
+ declare function insertOrUpdate<T>(arr: T[], value: T, selector?: keyof T): T[];
12
+ declare function insertOrRemove<T>(arr: T[], value: T): T[];
13
+ declare function intersperse(iterable: any[], separator: any): Generator<any, void, unknown>;
14
+ declare function chunk<T>(list: T[], size: number): T[][];
15
+ export { sort, group, insertIfNotExist, remove, insertOrUpdate, insertOrRemove, intersperse, chunk, };
@@ -0,0 +1,22 @@
1
+ export interface Percentage {
2
+ amount: number;
3
+ precision: number;
4
+ }
5
+ export interface AdjustmentAmount {
6
+ amount: number;
7
+ precision: number;
8
+ }
9
+ export declare enum AdjustmentType {
10
+ byPercentage = "BY_PERCENTAGE",
11
+ byAmount = "BY_AMOUNT",
12
+ toAmount = "TO_AMOUNT"
13
+ }
14
+ export interface AdjustmentOptions {
15
+ type: AdjustmentType;
16
+ amount: AdjustmentAmount;
17
+ inclusive?: boolean;
18
+ }
19
+ export declare function toAdjustmentWithPrecision(amt: string | number, precision?: number, allowNegative?: boolean): {
20
+ amount: number;
21
+ precision: number;
22
+ };
@@ -0,0 +1 @@
1
+ export declare function clone<T>(value: T, exceptKey?: string[]): T;
@@ -0,0 +1,12 @@
1
+ declare function randomString(length: number, config?: {
2
+ includeSpecialCase: boolean;
3
+ }): string;
4
+ declare const filter: {
5
+ alphabetOnly(word: string): string;
6
+ alphaNumeric(word: string): string;
7
+ numericOnly(word: string): string;
8
+ };
9
+ declare const validate: {
10
+ email(input: string): RegExpMatchArray | null;
11
+ };
12
+ export { filter, validate, randomString, };
@@ -0,0 +1,7 @@
1
+ export declare function dateRangeWithTime(ori: {
2
+ start: string;
3
+ end: string;
4
+ }, time: string): {
5
+ start: string;
6
+ end: string;
7
+ };
@@ -0,0 +1,4 @@
1
+ import { type ValidationRule } from "@feedmepos/ui-library";
2
+ import { ZodSchema } from "zod";
3
+ declare function zodRule(...zs: ZodSchema[]): ValidationRule[];
4
+ export default zodRule;
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { type App } from "vue";
2
+ export declare const appLocale: Readonly<{
3
+ defaultLocale: "zh";
4
+ supportedLocales: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ }>;
9
+ export declare const i18nPromise: Promise<import("i18next").TFunction>;
10
+ export default function (app: App): App<any>;
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ import "@/assets/base.css";
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ export declare const PaginationMetaDto: z.ZodObject<{
3
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ cursor?: string | null | undefined;
6
+ }, {
7
+ cursor?: string | null | undefined;
8
+ }>;
9
+ export type PaginatedResult<T> = {
10
+ data: T[];
11
+ meta: PaginationMetaDto;
12
+ };
13
+ export declare function paginateResult<T>(limit: number, results: T[]): PaginatedResult<T>;
14
+ export type PaginationMetaDto = z.infer<typeof PaginationMetaDto>;
@@ -0,0 +1 @@
1
+ declare module "vue-signature-pad";