@aplus-frontend/ui 0.4.24 → 0.4.25

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 (52) hide show
  1. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  2. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  3. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  4. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  5. package/es/src/ap-list/index.vue.d.ts +2 -4
  6. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  7. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  8. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  9. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  10. package/es/src/business/ap-attachment/ApAttachment.mjs +31 -31
  11. package/es/src/business/ap-attachment/interface.d.ts +2 -2
  12. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  13. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -32
  14. package/es/src/business/ap-batch-action-group/index.d.ts +16 -7
  15. package/es/src/business/ap-batch-action-group/interface.d.ts +5 -0
  16. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  17. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  18. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  19. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  20. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  21. package/es/src/editable-table/index.vue.d.ts +2 -4
  22. package/es/src/scroll-view/index.vue.d.ts +5 -5
  23. package/es/src/tests/wrapper.d.ts +4 -4
  24. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  25. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  26. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  27. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  28. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  29. package/lib/src/ap-list/index.vue.d.ts +2 -4
  30. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  31. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  32. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  33. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  34. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  35. package/lib/src/business/ap-attachment/interface.d.ts +2 -2
  36. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  37. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  38. package/lib/src/business/ap-batch-action-group/index.d.ts +16 -7
  39. package/lib/src/business/ap-batch-action-group/interface.d.ts +5 -0
  40. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  41. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  42. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  43. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  44. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  45. package/lib/src/editable-table/index.vue.d.ts +2 -4
  46. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  47. package/lib/src/tests/wrapper.d.ts +4 -4
  48. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  49. package/package.json +3 -3
  50. package/theme/ap-scroll-bar/index.css +31 -0
  51. package/theme/ap-scroll-bar/index.less +39 -0
  52. package/index.ts +0 -19
@@ -1,4 +1,4 @@
1
- import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, Plugin } from 'vue';
1
+ import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
2
2
  export * from './interface';
3
3
  declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
4
4
  attrs: any;
@@ -20,7 +20,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
20
20
  props: {
21
21
  readonly onExpand?: ((...args: any[]) => any) | undefined;
22
22
  readonly onChoose?: ((...args: any[]) => any) | undefined;
23
- type?: "warning" | "error" | "success" | "info" | "card" | undefined;
23
+ type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
24
24
  data?: string | T[] | undefined;
25
25
  prefix?: string | undefined;
26
26
  tipTitle?: string | undefined;
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
29
29
  separatorStyle?: CSSProperties | undefined;
30
30
  contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
31
31
  prefixStyle?: CSSProperties | undefined;
32
- rows?: (string | number) | undefined;
32
+ rows?: string | number | undefined;
33
33
  defaultExpand?: boolean | undefined;
34
34
  showIcon?: boolean | undefined;
35
35
  } & PublicProps;
@@ -51,9 +51,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
51
51
  }): any;
52
52
  };
53
53
  emit: (event: "expand" | "choose", ...args: any[]) => void;
54
- }>) => VNode<RendererNode, RendererElement, {
55
- [key: string]: any;
56
- }> & {
54
+ }>) => VNode & {
57
55
  __ctx?: Awaited<typeof __VLS_setup>;
58
56
  }) & ( Plugin & (new (...args: any[]) => {
59
57
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem } from './interface';
2
- import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, Plugin } from 'vue';
2
+ import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
3
3
  export * from './interface';
4
4
  declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
5
5
  attrs: any;
@@ -38,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
38
38
  (event: "afterEnter", el: Element): void;
39
39
  (event: "afterLeave", el: Element): void;
40
40
  };
41
- }>) => VNode<RendererNode, RendererElement, {
42
- [key: string]: any;
43
- }> & {
41
+ }>) => VNode & {
44
42
  __ctx?: Awaited<typeof __VLS_setup>;
45
43
  }) & ( Plugin & (new (...args: any[]) => {
46
44
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem, ApSelectLayoutProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends ApSelectItem>(__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<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onOnSelect?: ((value: T) => any) | undefined;
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
19
19
  (event: "afterEnter", el: Element): void;
20
20
  (event: "afterLeave", el: Element): void;
21
21
  };
22
- }>) => VNode<RendererNode, RendererElement, {
23
- [key: string]: any;
24
- }> & {
22
+ }>) => VNode & {
25
23
  __ctx?: Awaited<typeof __VLS_setup>;
26
24
  };
27
25
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { EditableColumnType, EditableTableFormItemProps } from './interface';
2
2
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
4
  import { UnwrapRefSimple } from '@vue/reactivity';
5
5
  declare const _default: <RecordType = any>(__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<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
@@ -48,9 +48,7 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
48
48
  }) => void;
49
49
  };
50
50
  emit: {};
51
- }>) => VNode<RendererNode, RendererElement, {
52
- [key: string]: any;
53
- }> & {
51
+ }>) => VNode & {
54
52
  __ctx?: Awaited<typeof __VLS_setup>;
55
53
  };
56
54
  export default _default;
@@ -2,7 +2,7 @@ import { EditableTableProps, EditableColumnType } from './interface';
2
2
  import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
3
3
  import { Recordable } from '../type';
4
4
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
5
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
5
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
6
6
  declare const _default: <RecordType extends Recordable = any>(__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
8
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -53,9 +53,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
53
53
  }) => void;
54
54
  };
55
55
  emit: (event: "update:value", ...args: any[]) => void;
56
- }>) => VNode<RendererNode, RendererElement, {
57
- [key: string]: any;
58
- }> & {
56
+ }>) => VNode & {
59
57
  __ctx?: Awaited<typeof __VLS_setup>;
60
58
  };
61
59
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ScrollOptions, ScrollViewProps } from './interface';
2
- import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
2
+ import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
3
3
  import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
4
4
  declare function scroll(x?: number, y?: number): void;
5
5
  declare function scrollTo({ smooth, left, top }: ScrollOptions): void;
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
106
106
  onScroll?: ((percent: number) => void) | undefined;
107
107
  disabled?: boolean | undefined;
108
108
  trackSpeed?: number | undefined;
109
- barColor?: ColorType;
110
- trackColor?: ColorType;
109
+ barColor?: import("csstype").Property.BackgroundColor | undefined;
110
+ trackColor?: import("csstype").Property.BackgroundColor | undefined;
111
111
  trackWidth?: number | undefined;
112
112
  showTrack?: boolean | undefined;
113
113
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
118
118
  onScroll?: ((percent: number) => void) | undefined;
119
119
  disabled?: boolean | undefined;
120
120
  trackSpeed?: number | undefined;
121
- barColor?: ColorType;
122
- trackColor?: ColorType;
121
+ barColor?: import("csstype").Property.BackgroundColor | undefined;
122
+ trackColor?: import("csstype").Property.BackgroundColor | undefined;
123
123
  trackWidth?: number | undefined;
124
124
  showTrack?: boolean | undefined;
125
125
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -1,8 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  export declare const Wrapper: DefineComponent<{
3
- uiMode?: ("admin" | "aplus") | undefined;
4
- lang?: ("en" | "zh-cn") | undefined;
3
+ uiMode?: "admin" | "aplus" | undefined;
4
+ lang?: "en" | "zh-cn" | undefined;
5
5
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
6
- uiMode?: ("admin" | "aplus") | undefined;
7
- lang?: ("en" | "zh-cn") | undefined;
6
+ uiMode?: "admin" | "aplus" | undefined;
7
+ lang?: "en" | "zh-cn" | undefined;
8
8
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,14 +1,13 @@
1
1
  import { WorkOrderModalProps } from './interfaces';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
3
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
4
- import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { Options } from '../../node_modules/scroll-into-view-if-needed';
9
9
  import { Recordable } from '../type';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -113,7 +112,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
113
112
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
114
113
  readonly initialValues?: Recordable | undefined;
115
114
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
116
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
115
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
117
116
  readonly syncToUrlPriority?: boolean | undefined;
118
117
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
119
118
  $attrs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.4.24",
3
+ "version": "0.4.25",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -65,8 +65,8 @@
65
65
  "sortablejs": "^1.15.2",
66
66
  "vue-virtual-scroller": "2.0.0-beta.8",
67
67
  "vuedraggable": "^4.1.0",
68
- "@aplus-frontend/utils": "1.0.50",
69
- "@aplus-frontend/hooks": "1.0.7"
68
+ "@aplus-frontend/hooks": "1.0.7",
69
+ "@aplus-frontend/utils": "1.0.50"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@aplus-frontend/antdv": "^1.0.12",
@@ -0,0 +1,31 @@
1
+ .aplus-ap-scroll-bar {
2
+ position: relative;
3
+ background-color: var(--ap-scroll-bar-background, rgba(0, 0, 0, 0.05));
4
+ }
5
+ .aplus-ap-scroll-bar--horizontal {
6
+ height: 10px;
7
+ }
8
+ .aplus-ap-scroll-bar--vertical {
9
+ width: 10px;
10
+ height: 100%;
11
+ }
12
+ .aplus-ap-scroll-bar__bar {
13
+ position: absolute;
14
+ border-radius: 8px;
15
+ background-color: rgba(144, 147, 153, 0.3);
16
+ background-color: var(--ap-scroll-bar-bar, rgba(144, 147, 153, 0.3));
17
+ box-shadow: var(--ap-scroll-bar-bar-shadow, inset 0 0 6px rgba(0, 0, 0, 0.2));
18
+ }
19
+ .aplus-ap-scroll-bar__bar--horizontal {
20
+ height: 8px;
21
+ top: 1px;
22
+ }
23
+ .aplus-ap-scroll-bar__bar--vertical {
24
+ width: 8px;
25
+ left: 1px;
26
+ }
27
+ .aplus-ap-scroll-bar__bar:hover,
28
+ .aplus-ap-scroll-bar__bar:focus,
29
+ .aplus-ap-scroll-bar__bar:active {
30
+ background-color: var(--ap-scroll-bar-bar-active, rgba(144, 147, 153, 0.5));
31
+ }
@@ -0,0 +1,39 @@
1
+ @import '../mixins/mixins.less';
2
+ @import '../mixins/config.less';
3
+
4
+ .b('ap-scroll-bar', {
5
+ position: relative;
6
+ // z-index: 999;
7
+ background-color: var(--ap-scroll-bar-background, rgb(0 0 0 / 5%));
8
+
9
+ &--horizontal {
10
+ height: 10px;
11
+ }
12
+
13
+ &--vertical {
14
+ width: 10px;
15
+ height: 100%;
16
+ }
17
+
18
+ &__bar {
19
+ position: absolute;
20
+ border-radius: 8px;
21
+ background-color: rgb(144 147 153 / 30%);
22
+ background-color: var(--ap-scroll-bar-bar, rgb(144 147 153 / 30%));
23
+ box-shadow: var(--ap-scroll-bar-bar-shadow, inset 0 0 6px rgb(0 0 0 / 20%)); ;
24
+
25
+ &--horizontal {
26
+ height: 8px;
27
+ top: 1px;
28
+ }
29
+
30
+ &--vertical {
31
+ width: 8px;
32
+ left: 1px;
33
+ }
34
+
35
+ &:hover, &:focus, &:active {
36
+ background-color: var(--ap-scroll-bar-bar-active, rgb(144 147 153 / 50%));
37
+ }
38
+ }
39
+ });
package/index.ts DELETED
@@ -1,19 +0,0 @@
1
- import * as components from './src/index';
2
- import { App } from 'vue';
3
- import pathMap from './src/path-map';
4
-
5
- export * from './src/index';
6
- export * from './src/hooks';
7
-
8
- export { pathMap };
9
-
10
- export default {
11
- install: (app: App) => {
12
- for (const c in components) {
13
- const comp = (components as any)[c];
14
- if (comp.install) {
15
- app.use(comp);
16
- }
17
- }
18
- }
19
- };