@delta-comic/ui 0.0.0-semantically-released → 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.
@@ -0,0 +1,10 @@
1
+ import { uni } from '@delta-comic/model';
2
+ type __VLS_Props = {
3
+ author: {
4
+ $$plugin: string;
5
+ icon: string | uni.resource.RawResource | uni.image.RawImage;
6
+ };
7
+ sizeSpacing: number;
8
+ };
9
+ 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, {}, any>;
10
+ export default _default;
@@ -772,12 +772,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
772
772
  }> | null>>;
773
773
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
774
774
  load: (...args: any[]) => any;
775
- error: () => any;
776
775
  click: () => any;
776
+ error: () => any;
777
777
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
778
778
  onLoad?: ((...args: any[]) => any) | undefined;
779
- onError?: (() => any) | undefined;
780
779
  onClick?: (() => any) | undefined;
780
+ onError?: (() => any) | undefined;
781
781
  }>, {
782
782
  retryMax: number;
783
783
  fetchpriority: "high" | "low" | "auto";
@@ -0,0 +1,9 @@
1
+ import { uni } from '@delta-comic/model';
2
+ import { Component } from 'vue';
3
+ type __VLS_Props = {
4
+ icon: Component | uni.image.Image | uni.resource.Resource;
5
+ bgColor?: string;
6
+ sizeSpacing: number;
7
+ };
8
+ 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, {}, any>;
9
+ export default _default;
@@ -5,8 +5,8 @@ import { IfAny } from '@vueuse/core';
5
5
  import { RPromiseContent, Stream } from '@delta-comic/model';
6
6
  declare const _default: <T extends NonNullable<VirtualListProps["items"]>[number], PF extends ListFn<T>>(__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
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
- readonly onRetry?: ((then: () => void) => any) | undefined;
9
8
  readonly onNext?: ((then: () => void) => any) | undefined;
9
+ readonly onRetry?: ((then: () => void) => any) | undefined;
10
10
  readonly onReset?: (() => any) | undefined;
11
11
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext"> & {
12
12
  source: {
@@ -45,7 +45,7 @@ declare const _default: <T extends NonNullable<VirtualListProps["items"]>[number
45
45
  };
46
46
  }): any;
47
47
  };
48
- emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void);
48
+ emit: ((evt: "next", then: () => void) => void) & ((evt: "retry", then: () => void) => void) & ((evt: "reset") => void);
49
49
  }>) => import('vue').VNode & {
50
50
  __ctx?: Awaited<typeof __VLS_setup>;
51
51
  };
@@ -3,9 +3,9 @@ import { StyleValue } from 'vue';
3
3
  import { IfAny } from '@vueuse/core';
4
4
  declare const _default: <T = any, PF extends (d: T[]) => any[] = ((d: T[]) => T[]) | ((d: T[]) => T[])>(__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<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onNext?: ((then: () => void) => any) | undefined;
6
7
  readonly onCol?: ((args_0: 2, args_1: 2) => any) | undefined;
7
8
  readonly onRetry?: ((then: () => void) => any) | undefined;
8
- readonly onNext?: ((then: () => void) => any) | undefined;
9
9
  readonly onReset?: (() => any) | undefined;
10
10
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext" | "onCol"> & {
11
11
  source: {
@@ -44,7 +44,7 @@ declare const _default: <T = any, PF extends (d: T[]) => any[] = ((d: T[]) => T[
44
44
  length: number;
45
45
  }): any;
46
46
  };
47
- emit: ((evt: "col", args_0: 2, args_1: 2) => void) & ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void);
47
+ emit: ((evt: "next", then: () => void) => void) & ((evt: "col", args_0: 2, args_1: 2) => void) & ((evt: "retry", then: () => void) => void) & ((evt: "reset") => void);
48
48
  }>) => import('vue').VNode & {
49
49
  __ctx?: Awaited<typeof __VLS_setup>;
50
50
  };
@@ -1,4 +1,4 @@
1
- import { Configure, Result, SingleResult } from '../type';
1
+ import { Configure, FormRowSlot, Result } from '../type';
2
2
  declare const _default: <T extends Configure, O extends (keyof T)[] = (keyof T)[]>(__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
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:modelValue"?: ((value: Result<T>) => any) | undefined;
@@ -14,18 +14,20 @@ declare const _default: <T extends Configure, O extends (keyof T)[] = (keyof T)[
14
14
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
15
15
  attrs: any;
16
16
  slots: Readonly<{
17
- default?<K extends O[number], S extends T[K]>(args: {
18
- config: S;
19
- path: K;
20
- modelValue: SingleResult<S>;
21
- setModelValue(value: SingleResult<S>): void;
17
+ row?<K extends O[number]>(args: FormRowSlot<T, O, K>): any;
18
+ top?(args: {
19
+ config: T;
20
+ }): any;
21
+ bottom?(args: {
22
+ config: T;
22
23
  }): any;
23
24
  }> & {
24
- default?<K extends O[number], S extends T[K]>(args: {
25
- config: S;
26
- path: K;
27
- modelValue: SingleResult<S>;
28
- setModelValue(value: SingleResult<S>): void;
25
+ row?<K extends O[number]>(args: FormRowSlot<T, O, K>): any;
26
+ top?(args: {
27
+ config: T;
28
+ }): any;
29
+ bottom?(args: {
30
+ config: T;
29
31
  }): any;
30
32
  };
31
33
  emit: (evt: "update:modelValue", value: Result<T>) => void;
@@ -0,0 +1,5 @@
1
+ import { FormType } from '..';
2
+ export declare const createForm: <T extends FormType.Configure>(configs: T) => {
3
+ comp: import("vue/jsx-runtime").JSX.Element;
4
+ data: Promise<FormType.Result<T>>;
5
+ };
@@ -8,3 +8,9 @@ export type Result<T extends Configure> = {
8
8
  [K in keyof T]: SingleResult<T[K]>;
9
9
  };
10
10
  export * as Type from './row';
11
+ export interface FormRowSlot<T extends Configure, O extends (keyof T)[], K extends O[number]> {
12
+ config: T[K];
13
+ path: K;
14
+ modelValue: SingleResult<T[K]>;
15
+ setModelValue(value: SingleResult<T[K]>): void;
16
+ }
@@ -1,8 +1,10 @@
1
1
  import { MaybeRefOrGetter } from 'vue';
2
+ import { default as DcAuthorIcon } from './components/DcAuthorIcon.vue';
2
3
  import { default as DcAwait } from './components/DcAwait.vue';
3
4
  import { default as DcContent } from './components/DcContent.vue';
4
5
  import { default as DcFloatPopup } from './components/DcFloatPopup.vue';
5
6
  import { default as DcImage } from './components/DcImage.vue';
7
+ import { default as DcImagedIcon } from './components/DcImagedIcon.vue';
6
8
  import { default as DcList } from './components/DcList.vue';
7
9
  import { default as DcLoading } from './components/DcLoading.vue';
8
10
  import { default as DcPopup } from './components/DcPopup.vue';
@@ -21,7 +23,7 @@ import { default as DcFormPairs } from './form/components/DcFormPairs.vue';
21
23
  import { default as DcFormRadio } from './form/components/DcFormRadio.vue';
22
24
  import { default as DcFormString } from './form/components/DcFormString.vue';
23
25
  import { default as DcFormSwitch } from './form/components/DcFormSwitch.vue';
24
- export { DcAwait, DcContent, DcImage, DcFloatPopup, DcList, DcLoading, DcPopup, DcRouterTab, DcText, DcToggleIcon, DcVar, DcWaterfall };
26
+ export { DcAuthorIcon, DcImagedIcon, DcAwait, DcContent, DcImage, DcFloatPopup, DcList, DcLoading, DcPopup, DcRouterTab, DcText, DcToggleIcon, DcVar, DcWaterfall };
25
27
  declare module 'vue-router' {
26
28
  interface Router {
27
29
  force: {
@@ -37,4 +39,5 @@ declare module 'vue-router' {
37
39
  export * from './utils';
38
40
  export { DcForm, DcFormItem, DcFormCheckbox, DcFormString, DcFormPairs, DcFormDate, DcFormDateRange, DcFormRadio, DcFormNumber, DcFormSwitch };
39
41
  export * as FormType from './form/type';
42
+ export * from './form/functional';
40
43
  export * from './message';
package/dist/pack.tgz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-comic/ui",
3
- "version": "0.0.0-semantically-released",
3
+ "version": "0.0.2",
4
4
  "description": "空阙虱楼",
5
5
  "homepage": "https://github.com/delta-comic/delta-comic-core",
6
6
  "license": "AGPL-3.0-only",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@lhlyu/vue-virtual-waterfall": "^1.0.9",
39
+ "@lhlyu/vue-virtual-waterfall": "1.0.8",
40
40
  "@vant/use": "^1.6.0",
41
41
  "@vueuse/core": "^14.2.1",
42
42
  "dayjs": "^1.11.19",
@@ -53,20 +53,19 @@
53
53
  "oxfmt": "^0.32.0",
54
54
  "tailwindcss": "^4.1.18",
55
55
  "unplugin-vue-components": "31.0.0",
56
- "vue-component-type-helpers": "^3.2.4",
57
- "@delta-comic/model": "0.0.0-semantically-released",
58
- "@delta-comic/utils": "0.0.0-semantically-released",
59
- "@delta-comic/core": "0.0.0-semantically-released"
56
+ "vue-component-type-helpers": "^3.2.4"
60
57
  },
61
58
  "peerDependencies": {
62
59
  "naive-ui": "^2.43",
63
60
  "pinia": "^3.0",
64
61
  "vant": "^4.9",
65
62
  "vue": "^3.5",
66
- "vue-router": "^5.0"
63
+ "vue-router": "^5.0",
64
+ "@delta-comic/core": "0.0.2",
65
+ "@delta-comic/utils": "0.0.3",
66
+ "@delta-comic/model": "0.0.2"
67
67
  },
68
68
  "release": {
69
- "extends": "../../release.config.js",
70
69
  "tagFormat": "ui-${version}"
71
70
  },
72
71
  "dist": {
@@ -74,6 +73,9 @@
74
73
  },
75
74
  "readme": "./README.md",
76
75
  "scripts": {
77
- "build": "vite build && pnpm pack --out ./dist/pack.tgz"
76
+ "build": "vite build && pnpm pack --out ./dist/pack.tgz",
77
+ "version:major": "pnpm version major --no-git-tag-version",
78
+ "version:minor": "pnpm version minor --no-git-tag-version",
79
+ "version:patch": "pnpm version patch --no-git-tag-version"
78
80
  }
79
81
  }