zzz-pc-view 0.0.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.
Files changed (71) hide show
  1. package/package.json +29 -0
  2. package/src/api/org/list +96 -0
  3. package/src/api/org/type/list +18 -0
  4. package/src/api/own +3831 -0
  5. package/src/decorators/CurdKey/CurdApi.d.ts +221 -0
  6. package/src/decorators/CurdKey/RequestUtil.d.ts +55 -0
  7. package/src/decorators/CurdKey/index.d.ts +752 -0
  8. package/src/decorators/DeclareType.d.ts +35 -0
  9. package/src/decorators/Decorators.d.ts +5 -0
  10. package/src/decorators/FilterKey/index.d.ts +283 -0
  11. package/src/decorators/Loader/index.d.ts +179 -0
  12. package/src/decorators/NameKey/index.d.ts +68 -0
  13. package/src/decorators/PrimaryKey/index.d.ts +68 -0
  14. package/src/decorators/api.d.ts +21 -0
  15. package/src/decorators/decoratorStoreUtil.d.ts +68 -0
  16. package/src/decorators/index.d.ts +6 -0
  17. package/src/decorators/loadStore.d.ts +6 -0
  18. package/src/decorators/loadUtil.d.ts +25 -0
  19. package/src/decorators/util.d.ts +27 -0
  20. package/src/favicon.ico +0 -0
  21. package/src/index-decorators.d.ts +3 -0
  22. package/src/index.d.ts +10 -0
  23. package/src/index.es.js +10035 -0
  24. package/src/index.umd.js +2 -0
  25. package/src/pcViews/components/curd/CurdTableView.vue.d.ts +18 -0
  26. package/src/pcViews/components/curd/CurdView.vue.d.ts +22 -0
  27. package/src/pcViews/components/curd/CurdViewHandler.d.ts +1208 -0
  28. package/src/pcViews/components/curd/FilterView.vue.d.ts +19 -0
  29. package/src/pcViews/components/curd/FilterViewHandler.d.ts +6 -0
  30. package/src/pcViews/components/curd/index.d.ts +2 -0
  31. package/src/pcViews/components/forms/RadioButtonGroupView.vue.d.ts +19 -0
  32. package/src/pcViews/components/forms/SelectView.vue.d.ts +19 -0
  33. package/src/pcViews/components/forms/VModelView.vue.d.ts +20 -0
  34. package/src/pcViews/components/forms/index.d.ts +3 -0
  35. package/src/pcViews/components/index.d.ts +5 -0
  36. package/src/pcViews/components/layout/DataWrapperView.vue.d.ts +23 -0
  37. package/src/pcViews/components/layout/LayoutHeader.vue.d.ts +2 -0
  38. package/src/pcViews/components/layout/LayoutMainView.vue.d.ts +2 -0
  39. package/src/pcViews/components/layout/index.d.ts +2 -0
  40. package/src/pcViews/components/slots/VSlotView.vue.d.ts +20 -0
  41. package/src/pcViews/components/slots/index.d.ts +1 -0
  42. package/src/pcViews/components/utils.d.ts +33 -0
  43. package/src/pcViews/index.d.ts +1 -0
  44. package/src/utils/Date/ZDate.d.ts +557 -0
  45. package/src/utils/DeclareType.d.ts +39 -0
  46. package/src/utils/class/bind.d.ts +43 -0
  47. package/src/utils/class/combine.d.ts +109 -0
  48. package/src/utils/crypto/index.d.ts +44 -0
  49. package/src/utils/empty/index.d.ts +18 -0
  50. package/src/utils/httpRequest/HttpRequestError.d.ts +14 -0
  51. package/src/utils/httpRequest/httpRequestCreator.d.ts +61 -0
  52. package/src/utils/httpRequest/httpRequestUtil.d.ts +24 -0
  53. package/src/utils/httpRequest/index.d.ts +3 -0
  54. package/src/utils/index.d.ts +11 -0
  55. package/src/utils/math/toFixed.d.ts +11 -0
  56. package/src/utils/math/unitConvertor.d.ts +34 -0
  57. package/src/utils/mock/HttpResponse.d.ts +30 -0
  58. package/src/utils/mock/createDataTimes.d.ts +20 -0
  59. package/src/utils/mock/index.d.ts +2 -0
  60. package/src/utils/reduce/completeByDate.d.ts +51 -0
  61. package/src/utils/reduce/index.d.ts +9 -0
  62. package/src/utils/reduce/mappingBuilder.d.ts +69 -0
  63. package/src/utils/reduce/ratio.d.ts +104 -0
  64. package/src/utils/reduce/sort.d.ts +12 -0
  65. package/src/utils/reduce/sumByGroup.d.ts +53 -0
  66. package/src/utils/reduce/toGroup.d.ts +79 -0
  67. package/src/utils/reduce/tree.d.ts +570 -0
  68. package/src/utils/reduce/util.d.ts +14 -0
  69. package/src/utils/reduce/valueConvertor.d.ts +65 -0
  70. package/src/utils/reduce/verticalToHorizontal.d.ts +80 -0
  71. package/src/zzz-frame.css +7 -0
@@ -0,0 +1,19 @@
1
+ import { ZDecorators } from '../../../index-decorators';
2
+ declare const _default: <M extends object = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & Partial<{}> & {
4
+ viewHandler: ZDecorators.FilterKey.FilterHandler<M>;
5
+ position: ZDecorators.FilterKey.PositionEnum;
6
+ }> & import('vue').PublicProps;
7
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
8
+ attrs: any;
9
+ slots: {};
10
+ emit: {};
11
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
12
+ [key: string]: any;
13
+ }> & {
14
+ __ctx?: Awaited<typeof __VLS_setup>;
15
+ };
16
+ export default _default;
17
+ type __VLS_PrettifyLocal<T> = {
18
+ [K in keyof T]: T[K];
19
+ } & {};
@@ -0,0 +1,6 @@
1
+ import { ZDecorators } from '../../../index-decorators';
2
+ export declare class FilterViewHandler<Q extends object = object> extends ZDecorators.FilterKey
3
+ .FilterHandler<Q> {
4
+ protected onValidateQuerySuccess(): void;
5
+ protected onValidateQueryFail(error: Error): void;
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './CurdViewHandler';
2
+ export { default as CurdView } from './CurdView.vue';
@@ -0,0 +1,19 @@
1
+ import { BaseOptionViewProps, ModelValueEmit } from '../utils';
2
+ declare const _default: <T extends object = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onChange?: ((value: any) => any) | undefined;
5
+ readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & Partial<{}> & BaseOptionViewProps<any, object>> & import('vue').PublicProps;
7
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
8
+ attrs: any;
9
+ slots: {};
10
+ emit: ModelValueEmit<any>;
11
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
12
+ [key: string]: any;
13
+ }> & {
14
+ __ctx?: Awaited<typeof __VLS_setup>;
15
+ };
16
+ export default _default;
17
+ type __VLS_PrettifyLocal<T> = {
18
+ [K in keyof T]: T[K];
19
+ } & {};
@@ -0,0 +1,19 @@
1
+ import { BaseOptionViewProps, ModelValueEmit } from '../utils';
2
+ declare const _default: <T extends object = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onChange?: ((value: any) => any) | undefined;
5
+ readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & Partial<{}> & BaseOptionViewProps<any, object>> & import('vue').PublicProps;
7
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
8
+ attrs: any;
9
+ slots: {};
10
+ emit: ModelValueEmit<any>;
11
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
12
+ [key: string]: any;
13
+ }> & {
14
+ __ctx?: Awaited<typeof __VLS_setup>;
15
+ };
16
+ export default _default;
17
+ type __VLS_PrettifyLocal<T> = {
18
+ [K in keyof T]: T[K];
19
+ } & {};
@@ -0,0 +1,20 @@
1
+ import { ZDecorators } from '../../../index-decorators';
2
+ import { BaseViewProps } from '../utils';
3
+ export interface VModelViewProps<M extends object = object, ViewHandler extends ZDecorators.FilterKey.FilterHandler<M> = ZDecorators.FilterKey.FilterHandler<M>> extends BaseViewProps<M, ViewHandler> {
4
+ component?: any;
5
+ }
6
+ declare const _default: <M extends object = object, ViewHandler extends ZDecorators.FilterKey.FilterHandler<M> = ZDecorators.FilterKey.FilterHandler<M>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & Partial<{}> & VModelViewProps<M, ViewHandler>> & import('vue').PublicProps;
8
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ attrs: any;
10
+ slots: {};
11
+ emit: {};
12
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
13
+ [key: string]: any;
14
+ }> & {
15
+ __ctx?: Awaited<typeof __VLS_setup>;
16
+ };
17
+ export default _default;
18
+ type __VLS_PrettifyLocal<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
@@ -0,0 +1,3 @@
1
+ export { default as VModelView } from './VModelView.vue';
2
+ export { default as RadioButtonGroupView } from './RadioButtonGroupView.vue';
3
+ export { default as SelectView } from './SelectView.vue';
@@ -0,0 +1,5 @@
1
+ export * as curd from './curd';
2
+ export * from './utils';
3
+ export * as forms from './forms';
4
+ export * as slots from './slots';
5
+ export * as LayoutView from './layout';
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ bodyViewClass?: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ header?(_: {}): any;
8
+ body?(_: {}): any;
9
+ footer?(_: {}): any;
10
+ extra?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: 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>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -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, {}, HTMLDivElement>;
2
+ export default _default;
@@ -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, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Main } from './LayoutMainView.vue';
2
+ export { default as DataWrapper } from './DataWrapperView.vue';
@@ -0,0 +1,20 @@
1
+ import { ZDecorators } from '../../../index-decorators';
2
+ import { BaseViewProps } from '../utils';
3
+ export interface VSlotViewProps<M extends object = object, ViewHandler extends ZDecorators.FilterKey.FilterHandler<M> = ZDecorators.FilterKey.FilterHandler<M>> extends BaseViewProps<M, ViewHandler> {
4
+ component?: any;
5
+ }
6
+ declare const _default: <M extends object = object, ViewHandler extends ZDecorators.FilterKey.FilterHandler<M> = ZDecorators.FilterKey.FilterHandler<M>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & Partial<{}> & VSlotViewProps<M, ViewHandler>> & import('vue').PublicProps;
8
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ attrs: any;
10
+ slots: {};
11
+ emit: {};
12
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
13
+ [key: string]: any;
14
+ }> & {
15
+ __ctx?: Awaited<typeof __VLS_setup>;
16
+ };
17
+ export default _default;
18
+ type __VLS_PrettifyLocal<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
@@ -0,0 +1 @@
1
+ export { default as VSlotView } from './VSlotView.vue';
@@ -0,0 +1,33 @@
1
+ import { ZDecorators } from '../../index-decorators';
2
+ export interface BaseViewProps<M extends object = object, ViewHandler extends ZDecorators.FilterKey.FilterHandler<M> = ZDecorators.FilterKey.FilterHandler<M>> {
3
+ viewHandler: ViewHandler;
4
+ model: M;
5
+ prop: keyof M;
6
+ }
7
+ export interface BaseInputViewProps<V = any> {
8
+ modelValue: V;
9
+ }
10
+ export interface BaseOptionViewProps<V = any, T extends object = object> extends BaseInputViewProps<V> {
11
+ options: T[];
12
+ primaryKeyConfig: ZDecorators.PrimaryKey.Config<T>;
13
+ nameKeyConfig: ZDecorators.NameKey.Config<T>;
14
+ }
15
+ export interface ModelValueEmit<V = any> {
16
+ (e: 'update:modelValue' | 'change', value: V): void;
17
+ }
18
+ export declare const useMappingOption: <M extends object = object, ViewHandler extends ZDecorators.FilterKey.FilterHandler<M> = ZDecorators.FilterKey.FilterHandler<M>>(props: BaseViewProps<M, ViewHandler> & {
19
+ component?: any;
20
+ }, defaultOptionComponent: unknown, defaultInputComponent: unknown) => import('vue').ComputedRef<{
21
+ is: any;
22
+ readonly text: any;
23
+ props: {
24
+ readonly options: never[];
25
+ primaryKeyConfig: ZDecorators.PrimaryKey.Config<never>;
26
+ nameKeyConfig: ZDecorators.NameKey.Config<any>;
27
+ };
28
+ } | {
29
+ is: any;
30
+ text: M[keyof M];
31
+ props: {};
32
+ }>;
33
+ export declare const useModelValueBridgeComputed: <V = any>(props: BaseInputViewProps<V>, emit: ModelValueEmit<V>) => import('vue').WritableComputedRef<V, V>;
@@ -0,0 +1 @@
1
+ export * as components from './components';