@ibiz-template/vue3-util 0.7.38-alpha.57 → 0.7.40-alpha.8
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.
- package/LICENSE +1 -1
- package/README.md +105 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/common/code-list/code-list.d.ts +1 -1
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +7 -7
- package/es/common/view-shell/view-shell.d.ts +13 -7
- package/es/common/view-shell/view-shell.d.ts.map +1 -1
- package/es/common/view-shell/view-shell.mjs +10 -1
- package/es/control/panel/panel/index.d.ts +7 -7
- package/es/control/panel/panel/panel.d.ts +7 -7
- package/es/control/panel/view-layout-panel/index.d.ts +7 -7
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +7 -7
- package/es/hooks/app/app.hooks.d.ts +38 -13
- package/es/hooks/app/app.hooks.d.ts.map +1 -1
- package/es/hooks/app/app.hooks.mjs +29 -10
- package/es/index.mjs +1 -0
- package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.mjs +2 -1
- package/es/panel-component/panel-field/index.d.ts +2 -2
- package/es/panel-component/panel-field/panel-field.d.ts +2 -2
- package/es/props/editor/array.d.ts +2 -2
- package/es/props/editor/autocomplete.d.ts +2 -2
- package/es/props/editor/cascader.d.ts +2 -2
- package/es/props/editor/check-box-list.d.ts +2 -2
- package/es/props/editor/check-box.d.ts +2 -2
- package/es/props/editor/code.d.ts +2 -2
- package/es/props/editor/color-picker.d.ts +2 -2
- package/es/props/editor/common.d.ts +1 -1
- package/es/props/editor/data-picker.d.ts +2 -2
- package/es/props/editor/date-picker.d.ts +2 -2
- package/es/props/editor/date-range.d.ts +2 -2
- package/es/props/editor/dropdown-list.d.ts +2 -2
- package/es/props/editor/html.d.ts +2 -2
- package/es/props/editor/list-box.d.ts +2 -2
- package/es/props/editor/number-range.d.ts +2 -2
- package/es/props/editor/radio-button-list.d.ts +2 -2
- package/es/props/editor/rate.d.ts +2 -2
- package/es/props/editor/raw.d.ts +2 -2
- package/es/props/editor/slider.d.ts +2 -2
- package/es/props/editor/span.d.ts +2 -2
- package/es/props/editor/stepper.d.ts +2 -2
- package/es/props/editor/switch.d.ts +2 -2
- package/es/props/editor/text-box.d.ts +6 -6
- package/es/props/editor/upload.d.ts +2 -2
- package/es/use/index.d.ts +1 -0
- package/es/use/index.d.ts.map +1 -1
- package/es/use/index.mjs +1 -0
- package/es/use/popover/popover.d.ts +38 -0
- package/es/use/popover/popover.d.ts.map +1 -0
- package/es/use/popover/popover.mjs +92 -0
- package/es/use/view/use-view-operation/use-view-operation.d.ts.map +1 -1
- package/es/use/view/use-view-operation/use-view-operation.mjs +8 -3
- package/es/view/common/index.d.ts +9 -9
- package/es/view/common/view.d.ts +7 -7
- package/es/view/de-redirect-view/de-redirect-view.d.ts +16 -7
- package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
- package/es/view/de-redirect-view/de-redirect-view.mjs +17 -1
- package/es/view/de-redirect-view/index.d.ts +16 -7
- package/es/view/de-redirect-view/index.d.ts.map +1 -1
- package/es/view/html-view/html-view.d.ts +14 -14
- package/es/view/html-view/html-view.d.ts.map +1 -1
- package/es/view/html-view/html-view.mjs +6 -8
- package/es/view/html-view/index.d.ts +12 -12
- package/es/view/portal-view/index.d.ts +7 -7
- package/es/view/portal-view/portal-view.d.ts +7 -7
- package/lib/common/view-shell/view-shell.cjs +9 -0
- package/lib/hooks/app/app.hooks.cjs +28 -9
- package/lib/index.cjs +4 -0
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +2 -1
- package/lib/use/index.cjs +4 -0
- package/lib/use/popover/popover.cjs +96 -0
- package/lib/use/view/use-view-operation/use-view-operation.cjs +8 -3
- package/lib/view/de-redirect-view/de-redirect-view.cjs +16 -0
- package/lib/view/html-view/html-view.cjs +6 -8
- package/package.json +10 -13
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
export declare const ControlLoadingPlaceholder: import("vue").DefineComponent<{
|
|
3
3
|
modelData: {
|
|
4
|
-
type: PropType<
|
|
4
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
context: {
|
|
8
|
-
type: PropType<
|
|
8
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
params: {
|
|
12
|
-
type: PropType<
|
|
12
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
13
13
|
default: () => {};
|
|
14
14
|
};
|
|
15
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
modelData: {
|
|
17
|
-
type: PropType<
|
|
17
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
context: {
|
|
21
|
-
type: PropType<
|
|
21
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
24
|
params: {
|
|
25
|
-
type: PropType<
|
|
25
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
26
26
|
default: () => {};
|
|
27
27
|
};
|
|
28
28
|
}>>, {
|
|
29
|
-
params:
|
|
29
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
30
30
|
}, {}>;
|
|
31
31
|
//# sourceMappingURL=control-loading-placeholder.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IViewProvider, RedrawViewEvent } from '@ibiz-template/runtime';
|
|
1
|
+
import { IViewProvider, RedrawViewEvent, CTX } from '@ibiz-template/runtime';
|
|
2
2
|
import { PropType, Ref } from 'vue';
|
|
3
3
|
import { IAppView } from '@ibiz/model-core';
|
|
4
4
|
import './view-shell.scss';
|
|
5
5
|
export declare const IBizViewShell: import("vue").DefineComponent<{
|
|
6
6
|
context: {
|
|
7
|
-
type: PropType<
|
|
7
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
params: {
|
|
11
|
-
type: PropType<
|
|
11
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
12
12
|
};
|
|
13
13
|
modelData: {
|
|
14
14
|
type: PropType<IAppView>;
|
|
@@ -16,6 +16,9 @@ export declare const IBizViewShell: import("vue").DefineComponent<{
|
|
|
16
16
|
viewId: {
|
|
17
17
|
type: StringConstructor;
|
|
18
18
|
};
|
|
19
|
+
ctx: {
|
|
20
|
+
type: PropType<CTX<import("@ibiz-template/runtime").IViewController<IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>>>;
|
|
21
|
+
};
|
|
19
22
|
}, {
|
|
20
23
|
ns: import("@ibiz-template/core").Namespace;
|
|
21
24
|
errMsg: Ref<string>;
|
|
@@ -24,15 +27,15 @@ export declare const IBizViewShell: import("vue").DefineComponent<{
|
|
|
24
27
|
hasAuthority: Ref<boolean>;
|
|
25
28
|
viewModelData: Ref<IAppView | undefined>;
|
|
26
29
|
redrawView: (event: RedrawViewEvent) => Promise<void>;
|
|
27
|
-
curContext: Ref<
|
|
28
|
-
curParams: Ref<
|
|
30
|
+
curContext: Ref<import("@ibiz-template/core").IApiContext>;
|
|
31
|
+
curParams: Ref<import("@ibiz-template/core").IApiParams>;
|
|
29
32
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
33
|
context: {
|
|
31
|
-
type: PropType<
|
|
34
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
32
35
|
required: true;
|
|
33
36
|
};
|
|
34
37
|
params: {
|
|
35
|
-
type: PropType<
|
|
38
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
36
39
|
};
|
|
37
40
|
modelData: {
|
|
38
41
|
type: PropType<IAppView>;
|
|
@@ -40,5 +43,8 @@ export declare const IBizViewShell: import("vue").DefineComponent<{
|
|
|
40
43
|
viewId: {
|
|
41
44
|
type: StringConstructor;
|
|
42
45
|
};
|
|
46
|
+
ctx: {
|
|
47
|
+
type: PropType<CTX<import("@ibiz-template/runtime").IViewController<IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>>>;
|
|
48
|
+
};
|
|
43
49
|
}>>, {}, {}>;
|
|
44
50
|
//# sourceMappingURL=view-shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-shell.d.ts","sourceRoot":"","sources":["../../../src/common/view-shell/view-shell.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,aAAa,EAGb,eAAe,
|
|
1
|
+
{"version":3,"file":"view-shell.d.ts","sourceRoot":"","sources":["../../../src/common/view-shell/view-shell.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,aAAa,EAGb,eAAe,EAEf,GAAG,EACJ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,QAAQ,EAER,GAAG,EAIJ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAK5C,OAAO,mBAAmB,CAAC;AAE3B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;wBAqNW,eAAe,KAAG,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;YAiElE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, h, resolveComponent, withDirectives, createVNode, resolveDirective } from 'vue';
|
|
1
|
+
import { defineComponent, ref, provide, watch, h, resolveComponent, withDirectives, createVNode, resolveDirective } from 'vue';
|
|
2
2
|
import { calcDynaSysParams, getViewProvider, getErrorViewProvider } from '@ibiz-template/runtime';
|
|
3
3
|
import { RuntimeError } from '@ibiz-template/core';
|
|
4
4
|
import { createUUID } from 'qx-util';
|
|
@@ -23,6 +23,10 @@ const IBizViewShell = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
},
|
|
24
24
|
viewId: {
|
|
25
25
|
type: String
|
|
26
|
+
},
|
|
27
|
+
// 解决打开浮动容器(模态、抽屉、弹出框)ctx丢失问题
|
|
28
|
+
ctx: {
|
|
29
|
+
type: Object
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
setup(props, {
|
|
@@ -34,6 +38,9 @@ const IBizViewShell = /* @__PURE__ */ defineComponent({
|
|
|
34
38
|
const provider = ref();
|
|
35
39
|
const viewModelData = ref();
|
|
36
40
|
const hasAuthority = ref(true);
|
|
41
|
+
if (props.ctx) {
|
|
42
|
+
provide("ctx", props.ctx);
|
|
43
|
+
}
|
|
37
44
|
const context = ref(props.context);
|
|
38
45
|
const params = ref(props.params || {});
|
|
39
46
|
let dynaViewCacheKey = "";
|
|
@@ -128,6 +135,8 @@ const IBizViewShell = /* @__PURE__ */ defineComponent({
|
|
|
128
135
|
context.value.srfsessionid = domain.id;
|
|
129
136
|
}
|
|
130
137
|
const app = ibiz.hub.getApp(viewModel.appId);
|
|
138
|
+
if (!context.value.srfappid)
|
|
139
|
+
context.value.srfappid = viewModel.appId;
|
|
131
140
|
const service = await app.deService.getService(context.value, appDataEntityId);
|
|
132
141
|
const res = await service.get(context.value, params.value || {});
|
|
133
142
|
if (res.ok && res.data) {
|
|
@@ -4,11 +4,11 @@ export declare const IBizPanelControl: import("../../../util").TypeWithInstall<i
|
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
context: {
|
|
7
|
-
type: import("vue").PropType<
|
|
7
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
params: {
|
|
11
|
-
type: import("vue").PropType<
|
|
11
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
12
12
|
default: () => {};
|
|
13
13
|
};
|
|
14
14
|
provider: {
|
|
@@ -17,7 +17,7 @@ export declare const IBizPanelControl: import("../../../util").TypeWithInstall<i
|
|
|
17
17
|
container: {
|
|
18
18
|
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
19
19
|
};
|
|
20
|
-
data: import("vue").PropType<
|
|
20
|
+
data: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
21
21
|
loadDefault: {
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
default: boolean;
|
|
@@ -31,11 +31,11 @@ export declare const IBizPanelControl: import("../../../util").TypeWithInstall<i
|
|
|
31
31
|
required: true;
|
|
32
32
|
};
|
|
33
33
|
context: {
|
|
34
|
-
type: import("vue").PropType<
|
|
34
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
35
35
|
required: true;
|
|
36
36
|
};
|
|
37
37
|
params: {
|
|
38
|
-
type: import("vue").PropType<
|
|
38
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
39
39
|
default: () => {};
|
|
40
40
|
};
|
|
41
41
|
provider: {
|
|
@@ -44,13 +44,13 @@ export declare const IBizPanelControl: import("../../../util").TypeWithInstall<i
|
|
|
44
44
|
container: {
|
|
45
45
|
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
46
46
|
};
|
|
47
|
-
data: import("vue").PropType<
|
|
47
|
+
data: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
48
48
|
loadDefault: {
|
|
49
49
|
type: BooleanConstructor;
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
52
|
}>>, {
|
|
53
|
-
params:
|
|
53
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
54
54
|
loadDefault: boolean;
|
|
55
55
|
}, {}>>;
|
|
56
56
|
export default IBizPanelControl;
|
|
@@ -11,11 +11,11 @@ export declare const PanelControl: import("vue").DefineComponent<{
|
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
context: {
|
|
14
|
-
type: PropType<
|
|
14
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
15
15
|
required: true;
|
|
16
16
|
};
|
|
17
17
|
params: {
|
|
18
|
-
type: PropType<
|
|
18
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
19
19
|
default: () => {};
|
|
20
20
|
};
|
|
21
21
|
provider: {
|
|
@@ -24,7 +24,7 @@ export declare const PanelControl: import("vue").DefineComponent<{
|
|
|
24
24
|
container: {
|
|
25
25
|
type: PropType<IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
26
26
|
};
|
|
27
|
-
data: PropType<
|
|
27
|
+
data: PropType<import("@ibiz-template/core").IApiData>;
|
|
28
28
|
loadDefault: {
|
|
29
29
|
type: BooleanConstructor;
|
|
30
30
|
default: boolean;
|
|
@@ -38,11 +38,11 @@ export declare const PanelControl: import("vue").DefineComponent<{
|
|
|
38
38
|
required: true;
|
|
39
39
|
};
|
|
40
40
|
context: {
|
|
41
|
-
type: PropType<
|
|
41
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
42
42
|
required: true;
|
|
43
43
|
};
|
|
44
44
|
params: {
|
|
45
|
-
type: PropType<
|
|
45
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
46
46
|
default: () => {};
|
|
47
47
|
};
|
|
48
48
|
provider: {
|
|
@@ -51,13 +51,13 @@ export declare const PanelControl: import("vue").DefineComponent<{
|
|
|
51
51
|
container: {
|
|
52
52
|
type: PropType<IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
53
53
|
};
|
|
54
|
-
data: PropType<
|
|
54
|
+
data: PropType<import("@ibiz-template/core").IApiData>;
|
|
55
55
|
loadDefault: {
|
|
56
56
|
type: BooleanConstructor;
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
59
|
}>>, {
|
|
60
|
-
params:
|
|
60
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
61
61
|
loadDefault: boolean;
|
|
62
62
|
}, {}>;
|
|
63
63
|
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -4,11 +4,11 @@ export declare const IBizViewLayoutPanelControl: import("../../../util").TypeWit
|
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
context: {
|
|
7
|
-
type: import("vue").PropType<
|
|
7
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
params: {
|
|
11
|
-
type: import("vue").PropType<
|
|
11
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
12
12
|
default: () => {};
|
|
13
13
|
};
|
|
14
14
|
provider: {
|
|
@@ -17,7 +17,7 @@ export declare const IBizViewLayoutPanelControl: import("../../../util").TypeWit
|
|
|
17
17
|
container: {
|
|
18
18
|
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
19
19
|
};
|
|
20
|
-
data: import("vue").PropType<
|
|
20
|
+
data: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
21
21
|
}, {
|
|
22
22
|
c: import("@ibiz-template/runtime").ViewLayoutPanelController;
|
|
23
23
|
ns: import("@ibiz-template/core").Namespace;
|
|
@@ -37,11 +37,11 @@ export declare const IBizViewLayoutPanelControl: import("../../../util").TypeWit
|
|
|
37
37
|
required: true;
|
|
38
38
|
};
|
|
39
39
|
context: {
|
|
40
|
-
type: import("vue").PropType<
|
|
40
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
41
41
|
required: true;
|
|
42
42
|
};
|
|
43
43
|
params: {
|
|
44
|
-
type: import("vue").PropType<
|
|
44
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
45
45
|
default: () => {};
|
|
46
46
|
};
|
|
47
47
|
provider: {
|
|
@@ -50,9 +50,9 @@ export declare const IBizViewLayoutPanelControl: import("../../../util").TypeWit
|
|
|
50
50
|
container: {
|
|
51
51
|
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
52
52
|
};
|
|
53
|
-
data: import("vue").PropType<
|
|
53
|
+
data: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
54
54
|
}>>, {
|
|
55
|
-
params:
|
|
55
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
56
56
|
}, {}>>;
|
|
57
57
|
export default IBizViewLayoutPanelControl;
|
|
58
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,11 +11,11 @@ export declare const ViewLayoutPanelControl: import("vue").DefineComponent<{
|
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
context: {
|
|
14
|
-
type: PropType<
|
|
14
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
15
15
|
required: true;
|
|
16
16
|
};
|
|
17
17
|
params: {
|
|
18
|
-
type: PropType<
|
|
18
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
19
19
|
default: () => {};
|
|
20
20
|
};
|
|
21
21
|
provider: {
|
|
@@ -24,7 +24,7 @@ export declare const ViewLayoutPanelControl: import("vue").DefineComponent<{
|
|
|
24
24
|
container: {
|
|
25
25
|
type: PropType<IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
26
26
|
};
|
|
27
|
-
data: PropType<
|
|
27
|
+
data: PropType<import("@ibiz-template/core").IApiData>;
|
|
28
28
|
}, {
|
|
29
29
|
c: ViewLayoutPanelController;
|
|
30
30
|
ns: import("@ibiz-template/core").Namespace;
|
|
@@ -42,11 +42,11 @@ export declare const ViewLayoutPanelControl: import("vue").DefineComponent<{
|
|
|
42
42
|
required: true;
|
|
43
43
|
};
|
|
44
44
|
context: {
|
|
45
|
-
type: PropType<
|
|
45
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
46
46
|
required: true;
|
|
47
47
|
};
|
|
48
48
|
params: {
|
|
49
|
-
type: PropType<
|
|
49
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
50
50
|
default: () => {};
|
|
51
51
|
};
|
|
52
52
|
provider: {
|
|
@@ -55,8 +55,8 @@ export declare const ViewLayoutPanelControl: import("vue").DefineComponent<{
|
|
|
55
55
|
container: {
|
|
56
56
|
type: PropType<IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
57
57
|
};
|
|
58
|
-
data: PropType<
|
|
58
|
+
data: PropType<import("@ibiz-template/core").IApiData>;
|
|
59
59
|
}>>, {
|
|
60
|
-
params:
|
|
60
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
61
61
|
}, {}>;
|
|
62
62
|
//# sourceMappingURL=view-layout-panel.d.ts.map
|
|
@@ -1,29 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAppService } from '@ibiz-template/runtime';
|
|
2
|
+
import { AsyncSeriesHook, SyncSeriesHook } from 'qx-util';
|
|
2
3
|
import { App } from 'vue';
|
|
3
4
|
/**
|
|
4
|
-
* 应用钩子
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2024-02-04 17:02:18
|
|
5
|
+
* @description 应用钩子
|
|
8
6
|
* @export
|
|
9
7
|
* @class AppHooks
|
|
10
8
|
*/
|
|
11
9
|
export declare class AppHooks {
|
|
12
10
|
/**
|
|
13
|
-
* 创建 Vue
|
|
14
|
-
*
|
|
15
|
-
* @author chitanda
|
|
16
|
-
* @date 2024-02-04 17:02:41
|
|
11
|
+
* @description 创建 Vue 应用实例钩子
|
|
17
12
|
* @static
|
|
13
|
+
* @memberof AppHooks
|
|
18
14
|
*/
|
|
19
15
|
static createApp: SyncSeriesHook<App<any>, null>;
|
|
20
16
|
/**
|
|
21
|
-
* 用于在多实例下,挂载到已经创建的 Vue
|
|
22
|
-
*
|
|
23
|
-
* @author chitanda
|
|
24
|
-
* @date 2024-02-04 18:02:49
|
|
17
|
+
* @description 用于在多实例下,挂载到已经创建的 Vue 实例上插件钩子
|
|
25
18
|
* @static
|
|
19
|
+
* @memberof AppHooks
|
|
26
20
|
*/
|
|
27
21
|
static useComponent: SyncSeriesHook<any, null>;
|
|
22
|
+
/**
|
|
23
|
+
* @description 应用初始化前钩子
|
|
24
|
+
* @static
|
|
25
|
+
* @memberof AppHooks
|
|
26
|
+
*/
|
|
27
|
+
static beforeInitApp: AsyncSeriesHook<[], {
|
|
28
|
+
context: IParams;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* @description 应用授权完成钩子
|
|
32
|
+
* @static
|
|
33
|
+
* @memberof AppHooks
|
|
34
|
+
*/
|
|
35
|
+
static authedApp: AsyncSeriesHook<[], {
|
|
36
|
+
context: IParams;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* @description 应用初始化完成钩子
|
|
40
|
+
* @static
|
|
41
|
+
* @memberof AppHooks
|
|
42
|
+
*/
|
|
43
|
+
static initedApp: AsyncSeriesHook<[], {
|
|
44
|
+
context: IParams;
|
|
45
|
+
app: IAppService;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* @description 应用销毁钩子
|
|
49
|
+
* @static
|
|
50
|
+
* @memberof AppHooks
|
|
51
|
+
*/
|
|
52
|
+
static destoryApp: AsyncSeriesHook<[], any>;
|
|
28
53
|
}
|
|
29
54
|
//# sourceMappingURL=app.hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.hooks.d.ts","sourceRoot":"","sources":["../../../src/hooks/app/app.hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.hooks.d.ts","sourceRoot":"","sources":["../../../src/hooks/app/app.hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;;GAIG;AACH,qBAAa,QAAQ;IACnB;;;;OAIG;IACH,MAAM,CAAC,SAAS,iCAA6B;IAE7C;;;;OAIG;IACH,MAAM,CAAC,YAAY,4BAA6B;IAEhD;;;;OAIG;IACH,MAAM,CAAC,aAAa;iBAAsC,OAAO;OAAM;IAEvE;;;;OAIG;IACH,MAAM,CAAC,SAAS;iBAAsC,OAAO;OAAM;IAEnE;;;;OAIG;IACH,MAAM,CAAC,SAAS;iBAEH,OAAO;aAAO,WAAW;OAClC;IAEJ;;;;OAIG;IACH,MAAM,CAAC,UAAU,2BAAkC;CACpD"}
|
|
@@ -1,24 +1,43 @@
|
|
|
1
|
-
import { SyncSeriesHook } from 'qx-util';
|
|
1
|
+
import { SyncSeriesHook, AsyncSeriesHook } from 'qx-util';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
class AppHooks {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* 创建 Vue
|
|
8
|
-
*
|
|
9
|
-
* @author chitanda
|
|
10
|
-
* @date 2024-02-04 17:02:41
|
|
7
|
+
* @description 创建 Vue 应用实例钩子
|
|
11
8
|
* @static
|
|
9
|
+
* @memberof AppHooks
|
|
12
10
|
*/
|
|
13
11
|
AppHooks.createApp = new SyncSeriesHook();
|
|
14
12
|
/**
|
|
15
|
-
* 用于在多实例下,挂载到已经创建的 Vue
|
|
16
|
-
*
|
|
17
|
-
* @author chitanda
|
|
18
|
-
* @date 2024-02-04 18:02:49
|
|
13
|
+
* @description 用于在多实例下,挂载到已经创建的 Vue 实例上插件钩子
|
|
19
14
|
* @static
|
|
15
|
+
* @memberof AppHooks
|
|
20
16
|
*/
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
17
|
AppHooks.useComponent = new SyncSeriesHook();
|
|
18
|
+
/**
|
|
19
|
+
* @description 应用初始化前钩子
|
|
20
|
+
* @static
|
|
21
|
+
* @memberof AppHooks
|
|
22
|
+
*/
|
|
23
|
+
AppHooks.beforeInitApp = new AsyncSeriesHook();
|
|
24
|
+
/**
|
|
25
|
+
* @description 应用授权完成钩子
|
|
26
|
+
* @static
|
|
27
|
+
* @memberof AppHooks
|
|
28
|
+
*/
|
|
29
|
+
AppHooks.authedApp = new AsyncSeriesHook();
|
|
30
|
+
/**
|
|
31
|
+
* @description 应用初始化完成钩子
|
|
32
|
+
* @static
|
|
33
|
+
* @memberof AppHooks
|
|
34
|
+
*/
|
|
35
|
+
AppHooks.initedApp = new AsyncSeriesHook();
|
|
36
|
+
/**
|
|
37
|
+
* @description 应用销毁钩子
|
|
38
|
+
* @static
|
|
39
|
+
* @memberof AppHooks
|
|
40
|
+
*/
|
|
41
|
+
AppHooks.destoryApp = new AsyncSeriesHook();
|
|
23
42
|
|
|
24
43
|
export { AppHooks };
|
package/es/index.mjs
CHANGED
|
@@ -83,6 +83,7 @@ export { EmptyVNode, getOrigin, isEmptyVNode, useController, useForce, useForceT
|
|
|
83
83
|
export { useCodeListListen } from './use/codeList-listen/codelist-listen.mjs';
|
|
84
84
|
export { useLocalCacheKey } from './use/storage/index.mjs';
|
|
85
85
|
export { useAutoFocusBlur } from './use/autofocus-blur/autofocus-blur.mjs';
|
|
86
|
+
export { shareCommonAncestor, usePopoverVisible, usePopoverzIndex } from './use/popover/popover.mjs';
|
|
86
87
|
export { OverlayContainer } from './util/overlay-container/overlay-container.mjs';
|
|
87
88
|
export { OverlayPopoverContainer } from './util/overlay-popover-container/overlay-popover-container.mjs';
|
|
88
89
|
export { routerCallback } from './util/router-callback/router-callback.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-container-image.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container-image/panel-container-image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAGjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"panel-container-image.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container-image/panel-container-image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAGjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;YAyF9B,CAAC"}
|
|
@@ -37,7 +37,8 @@ const PanelContainerImage = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
let imgStr = "";
|
|
38
38
|
if (image == null ? void 0 : image.rawContent) {
|
|
39
39
|
if (isSvg(image.rawContent)) {
|
|
40
|
-
|
|
40
|
+
const rawContent = image.rawContent.replace(/[\u4e00-\u9fff]/g, "");
|
|
41
|
+
imgStr = "url(data:image/svg+xml;base64,".concat(btoa(rawContent), ")");
|
|
41
42
|
} else {
|
|
42
43
|
imgStr = "url(".concat(image.rawContent, ")");
|
|
43
44
|
}
|
|
@@ -9,7 +9,7 @@ export declare const IBizPanelField: import("../../util").TypeWithInstall<import
|
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
attrs: {
|
|
12
|
-
type: import("vue").PropType<
|
|
12
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
13
13
|
require: boolean;
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
@@ -26,7 +26,7 @@ export declare const IBizPanelField: import("../../util").TypeWithInstall<import
|
|
|
26
26
|
required: true;
|
|
27
27
|
};
|
|
28
28
|
attrs: {
|
|
29
|
-
type: import("vue").PropType<
|
|
29
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
30
30
|
require: boolean;
|
|
31
31
|
};
|
|
32
32
|
}>>, {}, {}>>;
|
|
@@ -12,7 +12,7 @@ export declare const PanelField: import("vue").DefineComponent<{
|
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
14
|
attrs: {
|
|
15
|
-
type: PropType<
|
|
15
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
16
16
|
require: boolean;
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
@@ -29,7 +29,7 @@ export declare const PanelField: import("vue").DefineComponent<{
|
|
|
29
29
|
required: true;
|
|
30
30
|
};
|
|
31
31
|
attrs: {
|
|
32
|
-
type: PropType<
|
|
32
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
33
33
|
require: boolean;
|
|
34
34
|
};
|
|
35
35
|
}>>, {}, {}>;
|
|
@@ -36,7 +36,7 @@ export declare function getArrayProps<C>(): {
|
|
|
36
36
|
readonly [Symbol.species]: ArrayConstructor;
|
|
37
37
|
})[];
|
|
38
38
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
39
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
39
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
40
40
|
disabled: {
|
|
41
41
|
type: BooleanConstructor;
|
|
42
42
|
};
|
|
@@ -97,7 +97,7 @@ export declare function getGridArrayProps<C>(): {
|
|
|
97
97
|
readonly [Symbol.species]: ArrayConstructor;
|
|
98
98
|
})[];
|
|
99
99
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
100
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
100
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
101
101
|
disabled: {
|
|
102
102
|
type: BooleanConstructor;
|
|
103
103
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export declare function getAutoCompleteProps<C>(): {
|
|
11
11
|
value: (StringConstructor | NumberConstructor)[];
|
|
12
12
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
13
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
13
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
14
14
|
disabled: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
};
|
|
@@ -45,7 +45,7 @@ export declare function getGridAutoCompleteProps<C>(): {
|
|
|
45
45
|
};
|
|
46
46
|
value: (StringConstructor | NumberConstructor)[];
|
|
47
47
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
48
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
48
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
49
49
|
disabled: {
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export declare function getCascaderProps<C>(): {
|
|
11
11
|
value: StringConstructor;
|
|
12
12
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
13
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
13
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
14
14
|
disabled: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
};
|
|
@@ -45,7 +45,7 @@ export declare function getGridCascaderProps<C>(): {
|
|
|
45
45
|
};
|
|
46
46
|
value: StringConstructor;
|
|
47
47
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
48
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
48
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
49
49
|
disabled: {
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export declare function getCheckboxListProps<C>(): {
|
|
11
11
|
value: (StringConstructor | NumberConstructor)[];
|
|
12
12
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
13
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
13
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
14
14
|
disabled: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
};
|
|
@@ -45,7 +45,7 @@ export declare function getGridCheckboxListProps<C>(): {
|
|
|
45
45
|
};
|
|
46
46
|
value: (StringConstructor | NumberConstructor)[];
|
|
47
47
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
48
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
48
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
49
49
|
disabled: {
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export declare function getCheckboxProps<C>(): {
|
|
11
11
|
value: (StringConstructor | NumberConstructor)[];
|
|
12
12
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
13
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
13
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
14
14
|
disabled: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
};
|
|
@@ -45,7 +45,7 @@ export declare function getGridCheckboxProps<C>(): {
|
|
|
45
45
|
};
|
|
46
46
|
value: (StringConstructor | NumberConstructor)[];
|
|
47
47
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
48
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
48
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
49
49
|
disabled: {
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
};
|
|
@@ -25,7 +25,7 @@ export declare function getCodeProps<C>(): {
|
|
|
25
25
|
* @template C
|
|
26
26
|
* @returns {*}
|
|
27
27
|
*/
|
|
28
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
28
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
29
29
|
disabled: {
|
|
30
30
|
type: BooleanConstructor;
|
|
31
31
|
};
|
|
@@ -75,7 +75,7 @@ export declare function getGridCodeProps<C>(): {
|
|
|
75
75
|
* @template C
|
|
76
76
|
* @returns {*}
|
|
77
77
|
*/
|
|
78
|
-
data: import("..").RequiredProp<import("vue").PropType<
|
|
78
|
+
data: import("..").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
79
79
|
disabled: {
|
|
80
80
|
type: BooleanConstructor;
|
|
81
81
|
};
|