@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
package/es/view/common/view.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { IAppView, IControl } from '@ibiz/model-core';
|
|
|
3
3
|
import { PropType, VNode } from 'vue';
|
|
4
4
|
import './view.scss';
|
|
5
5
|
export declare const View: import("vue").DefineComponent<{
|
|
6
|
-
context: PropType<
|
|
6
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
7
7
|
params: {
|
|
8
|
-
type: PropType<
|
|
8
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
9
9
|
default: () => {};
|
|
10
10
|
};
|
|
11
11
|
modelData: {
|
|
@@ -16,7 +16,7 @@ export declare const View: import("vue").DefineComponent<{
|
|
|
16
16
|
type: PropType<IModal>;
|
|
17
17
|
};
|
|
18
18
|
state: {
|
|
19
|
-
type: PropType<
|
|
19
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
20
20
|
};
|
|
21
21
|
provider: {
|
|
22
22
|
type: PropType<IViewProvider>;
|
|
@@ -33,9 +33,9 @@ export declare const View: import("vue").DefineComponent<{
|
|
|
33
33
|
getCtrlTeleportTag: (ctrl: IControl) => string | undefined;
|
|
34
34
|
getControlStyle: () => {};
|
|
35
35
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
-
context: PropType<
|
|
36
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
37
37
|
params: {
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
39
39
|
default: () => {};
|
|
40
40
|
};
|
|
41
41
|
modelData: {
|
|
@@ -46,12 +46,12 @@ export declare const View: import("vue").DefineComponent<{
|
|
|
46
46
|
type: PropType<IModal>;
|
|
47
47
|
};
|
|
48
48
|
state: {
|
|
49
|
-
type: PropType<
|
|
49
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
50
50
|
};
|
|
51
51
|
provider: {
|
|
52
52
|
type: PropType<IViewProvider>;
|
|
53
53
|
};
|
|
54
54
|
}>>, {
|
|
55
|
-
params:
|
|
55
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
56
56
|
}, {}>;
|
|
57
57
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -3,36 +3,45 @@ import { IAppDERedirectView } from '@ibiz/model-core';
|
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
export declare const DeRedirectView: import("vue").DefineComponent<{
|
|
5
5
|
context: {
|
|
6
|
-
type: PropType<
|
|
6
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
9
|
params: {
|
|
10
|
-
type: PropType<
|
|
10
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
11
11
|
default: () => {};
|
|
12
12
|
};
|
|
13
13
|
modelData: {
|
|
14
14
|
type: PropType<IAppDERedirectView>;
|
|
15
15
|
required: true;
|
|
16
16
|
};
|
|
17
|
+
isEmbedCtrlNav: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
17
21
|
}, {
|
|
18
22
|
c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
19
23
|
toViewId: import("vue").Ref<string | undefined>;
|
|
20
|
-
toViewContext: import("vue").Ref<
|
|
21
|
-
toViewParams: import("vue").Ref<
|
|
24
|
+
toViewContext: import("vue").Ref<import("@ibiz-template/core").IApiContext | undefined>;
|
|
25
|
+
toViewParams: import("vue").Ref<import("@ibiz-template/core").IApiParams | undefined>;
|
|
22
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
27
|
context: {
|
|
24
|
-
type: PropType<
|
|
28
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
25
29
|
required: true;
|
|
26
30
|
};
|
|
27
31
|
params: {
|
|
28
|
-
type: PropType<
|
|
32
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
29
33
|
default: () => {};
|
|
30
34
|
};
|
|
31
35
|
modelData: {
|
|
32
36
|
type: PropType<IAppDERedirectView>;
|
|
33
37
|
required: true;
|
|
34
38
|
};
|
|
39
|
+
isEmbedCtrlNav: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
35
43
|
}>>, {
|
|
36
|
-
params:
|
|
44
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
45
|
+
isEmbedCtrlNav: boolean;
|
|
37
46
|
}, {}>;
|
|
38
47
|
//# sourceMappingURL=de-redirect-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/de-redirect-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,
|
|
1
|
+
{"version":3,"file":"de-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/de-redirect-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAKT,MAAM,KAAK,CAAC;AAGb,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuEzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, toRaw, h, resolveComponent, withDirectives, createVNode, resolveDirective } from 'vue';
|
|
1
|
+
import { defineComponent, ref, toRaw, watch, h, resolveComponent, withDirectives, createVNode, resolveDirective } from 'vue';
|
|
2
2
|
import { RuntimeError } from '@ibiz-template/core';
|
|
3
3
|
import { ViewController, getDERedirectToView } from '@ibiz-template/runtime';
|
|
4
4
|
import '../../use/index.mjs';
|
|
@@ -19,6 +19,10 @@ const DeRedirectView = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
modelData: {
|
|
20
20
|
type: Object,
|
|
21
21
|
required: true
|
|
22
|
+
},
|
|
23
|
+
isEmbedCtrlNav: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
28
|
setup(props) {
|
|
@@ -37,6 +41,18 @@ const DeRedirectView = /* @__PURE__ */ defineComponent({
|
|
|
37
41
|
}
|
|
38
42
|
});
|
|
39
43
|
});
|
|
44
|
+
if (props.isEmbedCtrlNav) {
|
|
45
|
+
watch(() => [c.context, c.params], () => {
|
|
46
|
+
getDERedirectToView(toRaw(props.modelData), toRaw(c.context), toRaw(c.params)).then(async (result) => {
|
|
47
|
+
if (result.type === "view") {
|
|
48
|
+
toViewId.value = result.viewId;
|
|
49
|
+
toViewContext.value = result.context;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}, {
|
|
53
|
+
deep: true
|
|
54
|
+
});
|
|
55
|
+
}
|
|
40
56
|
return {
|
|
41
57
|
c,
|
|
42
58
|
toViewId,
|
|
@@ -1,35 +1,44 @@
|
|
|
1
1
|
export declare const IBizDeRedirectView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
context: {
|
|
3
|
-
type: import("vue").PropType<
|
|
3
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
params: {
|
|
7
|
-
type: import("vue").PropType<
|
|
7
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
8
8
|
default: () => {};
|
|
9
9
|
};
|
|
10
10
|
modelData: {
|
|
11
11
|
type: import("vue").PropType<import("@ibiz/model-core").IAppDERedirectView>;
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
|
+
isEmbedCtrlNav: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
14
18
|
}, {
|
|
15
19
|
c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
16
20
|
toViewId: import("vue").Ref<string | undefined>;
|
|
17
|
-
toViewContext: import("vue").Ref<
|
|
18
|
-
toViewParams: import("vue").Ref<
|
|
21
|
+
toViewContext: import("vue").Ref<import("@ibiz-template/core").IApiContext | undefined>;
|
|
22
|
+
toViewParams: import("vue").Ref<import("@ibiz-template/core").IApiParams | undefined>;
|
|
19
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
24
|
context: {
|
|
21
|
-
type: import("vue").PropType<
|
|
25
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
22
26
|
required: true;
|
|
23
27
|
};
|
|
24
28
|
params: {
|
|
25
|
-
type: import("vue").PropType<
|
|
29
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
26
30
|
default: () => {};
|
|
27
31
|
};
|
|
28
32
|
modelData: {
|
|
29
33
|
type: import("vue").PropType<import("@ibiz/model-core").IAppDERedirectView>;
|
|
30
34
|
required: true;
|
|
31
35
|
};
|
|
36
|
+
isEmbedCtrlNav: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
32
40
|
}>>, {
|
|
33
|
-
params:
|
|
41
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
42
|
+
isEmbedCtrlNav: boolean;
|
|
34
43
|
}, {}>>;
|
|
35
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAU9B,CAAC"}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IAppDEHtmlView } from '@ibiz/model-core';
|
|
2
|
+
import { ViewController } from '@ibiz-template/runtime';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
import './html-view.scss';
|
|
5
5
|
export declare const HtmlView: import("vue").DefineComponent<{
|
|
6
|
-
context: PropType<
|
|
6
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
7
7
|
params: {
|
|
8
|
-
type: PropType<
|
|
8
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
9
9
|
default: () => {};
|
|
10
10
|
};
|
|
11
11
|
modelData: {
|
|
12
|
-
type: PropType<
|
|
12
|
+
type: PropType<IAppDEHtmlView>;
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
15
|
modal: {
|
|
16
|
-
type: PropType<
|
|
16
|
+
type: PropType<IAppDEHtmlView>;
|
|
17
17
|
};
|
|
18
18
|
state: {
|
|
19
|
-
type: PropType<
|
|
19
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
20
20
|
};
|
|
21
21
|
}, {
|
|
22
22
|
c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
23
23
|
ns: import("@ibiz-template/core").Namespace;
|
|
24
24
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
25
25
|
viewClassNames: (string | undefined)[];
|
|
26
|
-
url: import("vue").ComputedRef<
|
|
26
|
+
url: import("vue").ComputedRef<string>;
|
|
27
27
|
isLoading: import("vue").Ref<boolean>;
|
|
28
28
|
onLoad: () => void;
|
|
29
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
-
context: PropType<
|
|
30
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
31
31
|
params: {
|
|
32
|
-
type: PropType<
|
|
32
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
33
33
|
default: () => {};
|
|
34
34
|
};
|
|
35
35
|
modelData: {
|
|
36
|
-
type: PropType<
|
|
36
|
+
type: PropType<IAppDEHtmlView>;
|
|
37
37
|
required: true;
|
|
38
38
|
};
|
|
39
39
|
modal: {
|
|
40
|
-
type: PropType<
|
|
40
|
+
type: PropType<IAppDEHtmlView>;
|
|
41
41
|
};
|
|
42
42
|
state: {
|
|
43
|
-
type: PropType<
|
|
43
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
44
44
|
};
|
|
45
45
|
}>>, {
|
|
46
|
-
params:
|
|
46
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
47
47
|
}, {}>;
|
|
48
48
|
//# sourceMappingURL=html-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-view.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/html-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"html-view.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/html-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAwB,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAGL,QAAQ,EAKT,MAAM,KAAK,CAAC;AAEb,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+DnB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onBeforeMount, withDirectives, createVNode, resolveDirective, h, resolveComponent } from 'vue';
|
|
2
|
+
import { StringUtil } from '@ibiz-template/core';
|
|
2
3
|
import { ViewController, getErrorViewProvider } from '@ibiz-template/runtime';
|
|
3
4
|
import '../../use/index.mjs';
|
|
4
5
|
import './html-view.css';
|
|
@@ -40,14 +41,11 @@ const HtmlView = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
const viewClassNames = [ns.b(), ns.b(typeClass), ns.m(codeName), sysCssName];
|
|
41
42
|
const isLoading = ref(false);
|
|
42
43
|
const url = computed(() => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return htmlUrl;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
44
|
+
const {
|
|
45
|
+
htmlUrl
|
|
46
|
+
} = c.model;
|
|
47
|
+
if (htmlUrl)
|
|
48
|
+
return StringUtil.fill(htmlUrl, c.context, c.params);
|
|
51
49
|
return "";
|
|
52
50
|
});
|
|
53
51
|
onBeforeMount(() => {
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
context: import("vue").PropType<
|
|
2
|
+
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
3
3
|
params: {
|
|
4
|
-
type: import("vue").PropType<
|
|
4
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
7
|
modelData: {
|
|
8
|
-
type: import("vue").PropType<import("@ibiz/model-core").
|
|
8
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppDEHtmlView>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
modal: {
|
|
12
|
-
type: import("vue").PropType<import("@ibiz-
|
|
12
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppDEHtmlView>;
|
|
13
13
|
};
|
|
14
14
|
state: {
|
|
15
|
-
type: import("vue").PropType<
|
|
15
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
18
|
c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
19
19
|
ns: import("@ibiz-template/core").Namespace;
|
|
20
20
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
21
21
|
viewClassNames: (string | undefined)[];
|
|
22
|
-
url: import("vue").ComputedRef<
|
|
22
|
+
url: import("vue").ComputedRef<string>;
|
|
23
23
|
isLoading: import("vue").Ref<boolean>;
|
|
24
24
|
onLoad: () => void;
|
|
25
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
context: import("vue").PropType<
|
|
26
|
+
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
27
27
|
params: {
|
|
28
|
-
type: import("vue").PropType<
|
|
28
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
29
29
|
default: () => {};
|
|
30
30
|
};
|
|
31
31
|
modelData: {
|
|
32
|
-
type: import("vue").PropType<import("@ibiz/model-core").
|
|
32
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppDEHtmlView>;
|
|
33
33
|
required: true;
|
|
34
34
|
};
|
|
35
35
|
modal: {
|
|
36
|
-
type: import("vue").PropType<import("@ibiz-
|
|
36
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppDEHtmlView>;
|
|
37
37
|
};
|
|
38
38
|
state: {
|
|
39
|
-
type: import("vue").PropType<
|
|
39
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
40
40
|
};
|
|
41
41
|
}>>, {
|
|
42
|
-
params:
|
|
42
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
43
43
|
}, {}>>;
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const IBizPortalView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
context: import("vue").PropType<
|
|
2
|
+
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
3
3
|
params: {
|
|
4
|
-
type: import("vue").PropType<
|
|
4
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
7
|
modelData: {
|
|
@@ -12,7 +12,7 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
|
|
|
12
12
|
type: import("vue").PropType<import("@ibiz-template/runtime").IModal>;
|
|
13
13
|
};
|
|
14
14
|
state: {
|
|
15
|
-
type: import("vue").PropType<
|
|
15
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
18
|
c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
@@ -20,9 +20,9 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
|
|
|
20
20
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
21
21
|
viewClassNames: (string | undefined)[];
|
|
22
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
context: import("vue").PropType<
|
|
23
|
+
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
24
24
|
params: {
|
|
25
|
-
type: import("vue").PropType<
|
|
25
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
26
26
|
default: () => {};
|
|
27
27
|
};
|
|
28
28
|
modelData: {
|
|
@@ -33,9 +33,9 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
|
|
|
33
33
|
type: import("vue").PropType<import("@ibiz-template/runtime").IModal>;
|
|
34
34
|
};
|
|
35
35
|
state: {
|
|
36
|
-
type: import("vue").PropType<
|
|
36
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
37
37
|
};
|
|
38
38
|
}>>, {
|
|
39
|
-
params:
|
|
39
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
40
40
|
}, {}>>;
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,9 +2,9 @@ import { IModal, ViewController } from '@ibiz-template/runtime';
|
|
|
2
2
|
import { IAppPortalView } from '@ibiz/model-core';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
export declare const PortalView: import("vue").DefineComponent<{
|
|
5
|
-
context: PropType<
|
|
5
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
6
6
|
params: {
|
|
7
|
-
type: PropType<
|
|
7
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
8
8
|
default: () => {};
|
|
9
9
|
};
|
|
10
10
|
modelData: {
|
|
@@ -15,7 +15,7 @@ export declare const PortalView: import("vue").DefineComponent<{
|
|
|
15
15
|
type: PropType<IModal>;
|
|
16
16
|
};
|
|
17
17
|
state: {
|
|
18
|
-
type: PropType<
|
|
18
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
21
21
|
c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
@@ -23,9 +23,9 @@ export declare const PortalView: import("vue").DefineComponent<{
|
|
|
23
23
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
24
24
|
viewClassNames: (string | undefined)[];
|
|
25
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
context: PropType<
|
|
26
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
27
27
|
params: {
|
|
28
|
-
type: PropType<
|
|
28
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
29
29
|
default: () => {};
|
|
30
30
|
};
|
|
31
31
|
modelData: {
|
|
@@ -36,9 +36,9 @@ export declare const PortalView: import("vue").DefineComponent<{
|
|
|
36
36
|
type: PropType<IModal>;
|
|
37
37
|
};
|
|
38
38
|
state: {
|
|
39
|
-
type: PropType<
|
|
39
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
40
40
|
};
|
|
41
41
|
}>>, {
|
|
42
|
-
params:
|
|
42
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
43
43
|
}, {}>;
|
|
44
44
|
//# sourceMappingURL=portal-view.d.ts.map
|
|
@@ -25,6 +25,10 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
25
25
|
},
|
|
26
26
|
viewId: {
|
|
27
27
|
type: String
|
|
28
|
+
},
|
|
29
|
+
// 解决打开浮动容器(模态、抽屉、弹出框)ctx丢失问题
|
|
30
|
+
ctx: {
|
|
31
|
+
type: Object
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
34
|
setup(props, {
|
|
@@ -36,6 +40,9 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
40
|
const provider = vue.ref();
|
|
37
41
|
const viewModelData = vue.ref();
|
|
38
42
|
const hasAuthority = vue.ref(true);
|
|
43
|
+
if (props.ctx) {
|
|
44
|
+
vue.provide("ctx", props.ctx);
|
|
45
|
+
}
|
|
39
46
|
const context = vue.ref(props.context);
|
|
40
47
|
const params = vue.ref(props.params || {});
|
|
41
48
|
let dynaViewCacheKey = "";
|
|
@@ -130,6 +137,8 @@ const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
130
137
|
context.value.srfsessionid = domain.id;
|
|
131
138
|
}
|
|
132
139
|
const app = ibiz.hub.getApp(viewModel.appId);
|
|
140
|
+
if (!context.value.srfappid)
|
|
141
|
+
context.value.srfappid = viewModel.appId;
|
|
133
142
|
const service = await app.deService.getService(context.value, appDataEntityId);
|
|
134
143
|
const res = await service.get(context.value, params.value || {});
|
|
135
144
|
if (res.ok && res.data) {
|
|
@@ -6,21 +6,40 @@ var qxUtil = require('qx-util');
|
|
|
6
6
|
class AppHooks {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* 创建 Vue
|
|
10
|
-
*
|
|
11
|
-
* @author chitanda
|
|
12
|
-
* @date 2024-02-04 17:02:41
|
|
9
|
+
* @description 创建 Vue 应用实例钩子
|
|
13
10
|
* @static
|
|
11
|
+
* @memberof AppHooks
|
|
14
12
|
*/
|
|
15
13
|
AppHooks.createApp = new qxUtil.SyncSeriesHook();
|
|
16
14
|
/**
|
|
17
|
-
* 用于在多实例下,挂载到已经创建的 Vue
|
|
18
|
-
*
|
|
19
|
-
* @author chitanda
|
|
20
|
-
* @date 2024-02-04 18:02:49
|
|
15
|
+
* @description 用于在多实例下,挂载到已经创建的 Vue 实例上插件钩子
|
|
21
16
|
* @static
|
|
17
|
+
* @memberof AppHooks
|
|
22
18
|
*/
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
19
|
AppHooks.useComponent = new qxUtil.SyncSeriesHook();
|
|
20
|
+
/**
|
|
21
|
+
* @description 应用初始化前钩子
|
|
22
|
+
* @static
|
|
23
|
+
* @memberof AppHooks
|
|
24
|
+
*/
|
|
25
|
+
AppHooks.beforeInitApp = new qxUtil.AsyncSeriesHook();
|
|
26
|
+
/**
|
|
27
|
+
* @description 应用授权完成钩子
|
|
28
|
+
* @static
|
|
29
|
+
* @memberof AppHooks
|
|
30
|
+
*/
|
|
31
|
+
AppHooks.authedApp = new qxUtil.AsyncSeriesHook();
|
|
32
|
+
/**
|
|
33
|
+
* @description 应用初始化完成钩子
|
|
34
|
+
* @static
|
|
35
|
+
* @memberof AppHooks
|
|
36
|
+
*/
|
|
37
|
+
AppHooks.initedApp = new qxUtil.AsyncSeriesHook();
|
|
38
|
+
/**
|
|
39
|
+
* @description 应用销毁钩子
|
|
40
|
+
* @static
|
|
41
|
+
* @memberof AppHooks
|
|
42
|
+
*/
|
|
43
|
+
AppHooks.destoryApp = new qxUtil.AsyncSeriesHook();
|
|
25
44
|
|
|
26
45
|
exports.AppHooks = AppHooks;
|
package/lib/index.cjs
CHANGED
|
@@ -85,6 +85,7 @@ var vue = require('./use/vue/vue.cjs');
|
|
|
85
85
|
var codelistListen = require('./use/codeList-listen/codelist-listen.cjs');
|
|
86
86
|
var index$p = require('./use/storage/index.cjs');
|
|
87
87
|
var autofocusBlur = require('./use/autofocus-blur/autofocus-blur.cjs');
|
|
88
|
+
var popover = require('./use/popover/popover.cjs');
|
|
88
89
|
var overlayContainer = require('./util/overlay-container/overlay-container.cjs');
|
|
89
90
|
var overlayPopoverContainer = require('./util/overlay-popover-container/overlay-popover-container.cjs');
|
|
90
91
|
var routerCallback = require('./util/router-callback/router-callback.cjs');
|
|
@@ -211,6 +212,9 @@ exports.usePropsWatch = vue.usePropsWatch;
|
|
|
211
212
|
exports.useCodeListListen = codelistListen.useCodeListListen;
|
|
212
213
|
exports.useLocalCacheKey = index$p.useLocalCacheKey;
|
|
213
214
|
exports.useAutoFocusBlur = autofocusBlur.useAutoFocusBlur;
|
|
215
|
+
exports.shareCommonAncestor = popover.shareCommonAncestor;
|
|
216
|
+
exports.usePopoverVisible = popover.usePopoverVisible;
|
|
217
|
+
exports.usePopoverzIndex = popover.usePopoverzIndex;
|
|
214
218
|
exports.OverlayContainer = overlayContainer.OverlayContainer;
|
|
215
219
|
exports.OverlayPopoverContainer = overlayPopoverContainer.OverlayPopoverContainer;
|
|
216
220
|
exports.routerCallback = routerCallback.routerCallback;
|
|
@@ -39,7 +39,8 @@ const PanelContainerImage = /* @__PURE__ */ vue.defineComponent({
|
|
|
39
39
|
let imgStr = "";
|
|
40
40
|
if (image == null ? void 0 : image.rawContent) {
|
|
41
41
|
if (core.isSvg(image.rawContent)) {
|
|
42
|
-
|
|
42
|
+
const rawContent = image.rawContent.replace(/[\u4e00-\u9fff]/g, "");
|
|
43
|
+
imgStr = "url(data:image/svg+xml;base64,".concat(btoa(rawContent), ")");
|
|
43
44
|
} else {
|
|
44
45
|
imgStr = "url(".concat(image.rawContent, ")");
|
|
45
46
|
}
|
package/lib/use/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ var vue = require('./vue/vue.cjs');
|
|
|
12
12
|
var codelistListen = require('./codeList-listen/codelist-listen.cjs');
|
|
13
13
|
var index$1 = require('./storage/index.cjs');
|
|
14
14
|
var autofocusBlur = require('./autofocus-blur/autofocus-blur.cjs');
|
|
15
|
+
var popover = require('./popover/popover.cjs');
|
|
15
16
|
var useControlController = require('./control/use-control-controller/use-control-controller.cjs');
|
|
16
17
|
var useViewController = require('./view/use-view-controller/use-view-controller.cjs');
|
|
17
18
|
var useViewOperation = require('./view/use-view-operation/use-view-operation.cjs');
|
|
@@ -37,6 +38,9 @@ exports.usePropsWatch = vue.usePropsWatch;
|
|
|
37
38
|
exports.useCodeListListen = codelistListen.useCodeListListen;
|
|
38
39
|
exports.useLocalCacheKey = index$1.useLocalCacheKey;
|
|
39
40
|
exports.useAutoFocusBlur = autofocusBlur.useAutoFocusBlur;
|
|
41
|
+
exports.shareCommonAncestor = popover.shareCommonAncestor;
|
|
42
|
+
exports.usePopoverVisible = popover.usePopoverVisible;
|
|
43
|
+
exports.usePopoverzIndex = popover.usePopoverzIndex;
|
|
40
44
|
exports.useControlController = useControlController.useControlController;
|
|
41
45
|
exports.useViewController = useViewController.useViewController;
|
|
42
46
|
exports.useViewOperation = useViewOperation.useViewOperation;
|