@oinone/kunlun-vue-admin-layout 6.4.9 → 7.2.0
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/dist/oinone-kunlun-vue-admin-layout.css +1 -1
- package/dist/oinone-kunlun-vue-admin-layout.esm.js +12 -12101
- package/dist/oinone-kunlun-vue-admin-layout.scss +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/src/basic/MaskWidget.d.ts +17 -17
- package/dist/types/src/basic/index.d.ts +2 -2
- package/dist/types/src/basic/register/index.d.ts +1 -1
- package/dist/types/src/basic/register/manager.d.ts +7 -7
- package/dist/types/src/basic/token/BaseMaskWidget.d.ts +55 -55
- package/dist/types/src/basic/token/index.d.ts +1 -1
- package/dist/types/src/component/app-switcher/AppSwitcher.vue.d.ts +87 -84
- package/dist/types/src/component/app-switcher/AppSwitcherMask.vue.d.ts +63 -61
- package/dist/types/src/component/app-switcher/AppSwitcherWidget.d.ts +33 -33
- package/dist/types/src/component/app-switcher/index.d.ts +3 -3
- package/dist/types/src/component/breadcrumb/BreadcrumbWidget.d.ts +33 -33
- package/dist/types/src/component/breadcrumb/DefaultBreadcrumb.vue.d.ts +1199 -58
- package/dist/types/src/component/breadcrumb/index.d.ts +2 -2
- package/dist/types/src/component/debug/Debug.vue.d.ts +13 -11
- package/dist/types/src/component/debug/DebugWidget.d.ts +8 -8
- package/dist/types/src/component/debug/constants.d.ts +2 -2
- package/dist/types/src/component/debug/index.d.ts +7 -7
- package/dist/types/src/component/debug/spi/DebugRouterInitializeService.d.ts +4 -4
- package/dist/types/src/component/debug/spi/index.d.ts +1 -1
- package/dist/types/src/component/debug/typing.d.ts +159 -159
- package/dist/types/src/component/debug/util.d.ts +16 -16
- package/dist/types/src/component/debug/view/DebugMainView.vue.d.ts +32 -28
- package/dist/types/src/component/debug/view/DebugMainViewWidget.d.ts +10 -10
- package/dist/types/src/component/debug/view/debug-api/DebugApiWidget.d.ts +32 -32
- package/dist/types/src/component/debug/view/debug-utils.d.ts +44 -44
- package/dist/types/src/component/debug/view/debug-view/DebugViewWidget.d.ts +26 -26
- package/dist/types/src/component/debug/view/index.d.ts +5 -5
- package/dist/types/src/component/debug/view/service/DebugRuntimeContextService.d.ts +18 -18
- package/dist/types/src/component/debug/view/service/DebugStackInfoService.d.ts +27 -27
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugDefaultRuntimeContextService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeActionService.d.ts +7 -7
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeDslService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeFieldService.d.ts +7 -7
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeLayoutService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeMaskService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeTemplateService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeViewService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugBizStackService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugConfigureService.d.ts +4 -4
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugDefaultStackInfoService.d.ts +8 -8
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugExceptionStackService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugFunctionService.d.ts +4 -4
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugHalfBizStackService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugModelService.d.ts +4 -4
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugPureBizStackService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceGqlRequestContextService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceSceneAnalysisService.d.ts +7 -7
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceSessionService.d.ts +6 -6
- package/dist/types/src/component/debug/view/service/index.d.ts +20 -20
- package/dist/types/src/component/debug/view/storage.d.ts +19 -19
- package/dist/types/src/component/debug/view/useDebugRequestInfo.d.ts +7 -7
- package/dist/types/src/component/divider/Divider.vue.d.ts +88 -2
- package/dist/types/src/component/divider/DividerWidget.d.ts +4 -4
- package/dist/types/src/component/divider/index.d.ts +1 -1
- package/dist/types/src/component/index.d.ts +14 -14
- package/dist/types/src/component/language/DefaultLanguage.vue.d.ts +1850 -34
- package/dist/types/src/component/language/LanguageWidget.d.ts +16 -16
- package/dist/types/src/component/language/index.d.ts +1 -1
- package/dist/types/src/component/layout/BaseMaskLayoutWidget.d.ts +4 -4
- package/dist/types/src/component/layout/MaskBlock.vue.d.ts +24 -24
- package/dist/types/src/component/layout/block/MaskBlockWidget.d.ts +4 -4
- package/dist/types/src/component/layout/block/index.d.ts +1 -1
- package/dist/types/src/component/layout/container/MaskContainerWidget.d.ts +4 -4
- package/dist/types/src/component/layout/container/index.d.ts +1 -1
- package/dist/types/src/component/layout/content/MaskContentWidget.d.ts +7 -7
- package/dist/types/src/component/layout/content/index.d.ts +1 -1
- package/dist/types/src/component/layout/grid/Grid.vue.d.ts +2 -2
- package/dist/types/src/component/layout/grid/GridWidget.d.ts +9 -9
- package/dist/types/src/component/layout/grid/index.d.ts +1 -1
- package/dist/types/src/component/layout/header/MaskHeaderWidget.d.ts +4 -4
- package/dist/types/src/component/layout/header/index.d.ts +1 -1
- package/dist/types/src/component/layout/index.d.ts +9 -9
- package/dist/types/src/component/layout/mask/MaskRootWidget.d.ts +4 -4
- package/dist/types/src/component/layout/mask/index.d.ts +1 -1
- package/dist/types/src/component/layout/sidebar/MaskSidebarWidget.d.ts +10 -10
- package/dist/types/src/component/layout/sidebar/index.d.ts +1 -1
- package/dist/types/src/component/layout/widget/MaskCommonWidget.d.ts +14 -14
- package/dist/types/src/component/layout/widget/index.d.ts +1 -1
- package/dist/types/src/component/menu/DefaultMenu.vue.d.ts +1130 -115
- package/dist/types/src/component/menu/DefaultSubMenu.vue.d.ts +122 -17
- package/dist/types/src/component/menu/MenuWidget.d.ts +71 -71
- package/dist/types/src/component/menu/index.d.ts +3 -3
- package/dist/types/src/component/multi-tabs/MultiTabs.vue.d.ts +553 -151
- package/dist/types/src/component/multi-tabs/MultiTabsWidget.d.ts +60 -60
- package/dist/types/src/component/multi-tabs/index.d.ts +2 -2
- package/dist/types/src/component/multi-tabs/typing.d.ts +6 -6
- package/dist/types/src/component/notification/DefaultNotification.vue.d.ts +1533 -61
- package/dist/types/src/component/notification/NotificationWidget.d.ts +139 -139
- package/dist/types/src/component/notification/index.d.ts +2 -2
- package/dist/types/src/component/order-statistic/OrderStatistic.vue.d.ts +6 -8
- package/dist/types/src/component/order-statistic/index.d.ts +14 -14
- package/dist/types/src/component/partner-switcher/PartnerSwitcher.vue.d.ts +428 -28
- package/dist/types/src/component/partner-switcher/PartnerSwitcherWidget.d.ts +15 -15
- package/dist/types/src/component/partner-switcher/index.d.ts +6 -6
- package/dist/types/src/component/partner-switcher/service/PartnerSwitcherService.d.ts +17 -17
- package/dist/types/src/component/partner-switcher/service/impl/PartnerSwitcherServiceImpl.d.ts +17 -17
- package/dist/types/src/component/partner-switcher/service/index.d.ts +2 -2
- package/dist/types/src/component/partner-switcher/session/PartnerInfoSession.d.ts +26 -26
- package/dist/types/src/component/partner-switcher/session/impl/DefaultPartnerInfoSession.d.ts +15 -15
- package/dist/types/src/component/partner-switcher/session/index.d.ts +2 -2
- package/dist/types/src/component/partner-switcher/spi/PartnerSwitcherMaskEditor.d.ts +6 -6
- package/dist/types/src/component/partner-switcher/spi/index.d.ts +1 -1
- package/dist/types/src/component/partner-switcher/typing/index.d.ts +1 -1
- package/dist/types/src/component/partner-switcher/typing/partner.d.ts +20 -20
- package/dist/types/src/component/quick-search/QuickSearch.vue.d.ts +2545 -29
- package/dist/types/src/component/quick-search/index.d.ts +24 -24
- package/dist/types/src/component/user/DefaultUser.vue.d.ts +35 -39
- package/dist/types/src/component/user/UserWidget.d.ts +18 -16
- package/dist/types/src/component/user/index.d.ts +2 -1
- package/dist/types/src/config/DebugConfig.d.ts +16 -16
- package/dist/types/src/config/PartnerSwitcherConfig.d.ts +16 -16
- package/dist/types/src/config/index.d.ts +2 -2
- package/dist/types/src/index.d.ts +10 -10
- package/dist/types/src/service/index.d.ts +5 -5
- package/dist/types/src/service/menu-service.d.ts +12 -12
- package/dist/types/src/service/message-service.d.ts +16 -16
- package/dist/types/src/service/module-service.d.ts +12 -12
- package/dist/types/src/service/top-bar-service.d.ts +11 -10
- package/dist/types/src/service/user-service.d.ts +4 -4
- package/dist/types/src/spi/index.d.ts +1 -1
- package/dist/types/src/spi/mask-editor.d.ts +59 -54
- package/dist/types/src/tags/Block.vue.d.ts +5 -5
- package/dist/types/src/tags/Breadcrumb.vue.d.ts +5 -5
- package/dist/types/src/tags/Container.vue.d.ts +5 -5
- package/dist/types/src/tags/Content.vue.d.ts +5 -5
- package/dist/types/src/tags/Header.vue.d.ts +5 -5
- package/dist/types/src/tags/Mask.vue.d.ts +5 -5
- package/dist/types/src/tags/MultiTabs.vue.d.ts +5 -5
- package/dist/types/src/tags/Sidebar.vue.d.ts +5 -5
- package/dist/types/src/tags/Widget.vue.d.ts +5 -5
- package/dist/types/src/tags/context/context.d.ts +8 -8
- package/dist/types/src/tags/context/index.d.ts +1 -1
- package/dist/types/src/tags/index.d.ts +6 -6
- package/dist/types/src/tags/mixin/MaskWidgetTagMixin.d.ts +2 -2
- package/dist/types/src/tags/mixin/index.d.ts +3 -3
- package/dist/types/src/tags/mixin/typing.d.ts +6 -6
- package/dist/types/src/tags/mixin/use-mask-widget-tag.d.ts +38 -38
- package/dist/types/src/tags/register/index.d.ts +1 -1
- package/dist/types/src/tags/register/manager.d.ts +9 -9
- package/dist/types/src/tags/resolve/index.d.ts +2 -2
- package/dist/types/src/tags/resolve/internal/index.d.ts +2 -2
- package/dist/types/src/tags/resolve/internal/typing.d.ts +5 -5
- package/dist/types/src/tags/resolve/internal/widget-resolve.d.ts +3 -3
- package/dist/types/src/tags/resolve/typing.d.ts +26 -26
- package/dist/types/src/tags/resolve/widget-resolve.d.ts +5 -5
- package/dist/types/src/template/default-mask.d.ts +2 -2
- package/dist/types/src/template/index.d.ts +6 -6
- package/dist/types/src/theme/index.d.ts +1 -1
- package/dist/types/src/typing/constant.d.ts +1 -1
- package/dist/types/src/typing/index.d.ts +3 -3
- package/dist/types/src/typing/menu.d.ts +12 -12
- package/dist/types/src/typing/stream-symble.d.ts +12 -12
- package/dist/types/src/util/HomepageUtils.d.ts +3 -3
- package/dist/types/src/util/MenuUtil.d.ts +5 -5
- package/dist/types/src/util/index.d.ts +3 -3
- package/dist/types/src/util/unauthorized-action.d.ts +14 -14
- package/dist/types/src/utils.d.ts +86 -86
- package/package.json +38 -27
- package/src/basic/MaskWidget.ts +3 -3
- package/src/basic/token/BaseMaskWidget.ts +8 -8
- package/src/component/app-switcher/AppSwitcher.vue +4 -4
- package/src/component/app-switcher/AppSwitcherMask.vue +8 -7
- package/src/component/app-switcher/AppSwitcherWidget.ts +4 -4
- package/src/component/breadcrumb/BreadcrumbWidget.ts +4 -4
- package/src/component/breadcrumb/DefaultBreadcrumb.vue +2 -2
- package/src/component/debug/Debug.vue +1 -1
- package/src/component/debug/spi/DebugMaskEditor.ts +8 -2
- package/src/component/debug/spi/DebugRouterInitializeService.ts +1 -1
- package/src/component/debug/typing.ts +1 -1
- package/src/component/debug/view/DebugMainView.vue +3 -3
- package/src/component/debug/view/DebugMainViewWidget.ts +1 -1
- package/src/component/debug/view/components/DebugDefaultInfo.vue +1 -1
- package/src/component/debug/view/components/DebugJsonView.vue +1 -1
- package/src/component/debug/view/components/DebugRequestInfoPanel.vue +12 -3
- package/src/component/debug/view/components/DebugResponsePanel.vue +2 -2
- package/src/component/debug/view/components/runtime-context/DebugRuntimeFieldComponent.vue +2 -2
- package/src/component/debug/view/debug-api/DebugApi.vue +3 -3
- package/src/component/debug/view/debug-api/DebugApiWidget.ts +1 -1
- package/src/component/debug/view/debug-utils.ts +2 -2
- package/src/component/debug/view/debug-view/DebugView.vue +4 -4
- package/src/component/debug/view/debug-view/DebugViewWidget.ts +6 -6
- package/src/component/debug/view/service/DebugRuntimeContextService.ts +2 -2
- package/src/component/debug/view/service/DebugStackInfoService.ts +1 -1
- package/src/component/debug/view/service/impl/runtime-context/DebugDefaultRuntimeContextService.ts +3 -3
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeActionService.ts +3 -3
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeDslService.ts +3 -3
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeFieldService.ts +3 -3
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeLayoutService.ts +3 -3
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeMaskService.ts +3 -3
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeTemplateService.ts +3 -3
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeViewService.ts +3 -3
- package/src/component/debug/view/service/impl/stack-info/DebugBizStackService.ts +2 -2
- package/src/component/debug/view/service/impl/stack-info/DebugConfigureService.ts +1 -1
- package/src/component/debug/view/service/impl/stack-info/DebugDefaultStackInfoService.ts +2 -2
- package/src/component/debug/view/service/impl/stack-info/DebugExceptionStackService.ts +2 -2
- package/src/component/debug/view/service/impl/stack-info/DebugFunctionService.ts +1 -1
- package/src/component/debug/view/service/impl/stack-info/DebugHalfBizStackService.ts +2 -2
- package/src/component/debug/view/service/impl/stack-info/DebugModelService.ts +1 -1
- package/src/component/debug/view/service/impl/stack-info/DebugPureBizStackService.ts +2 -2
- package/src/component/debug/view/service/impl/stack-info/DebugStacktraceGqlRequestContextService.ts +2 -2
- package/src/component/debug/view/service/impl/stack-info/DebugStacktraceSceneAnalysisService.ts +2 -2
- package/src/component/debug/view/service/impl/stack-info/DebugStacktraceSessionService.ts +2 -2
- package/src/component/debug/view/storage.ts +2 -2
- package/src/component/debug/view/useDebugRequestInfo.ts +1 -1
- package/src/component/language/DefaultLanguage.vue +2 -2
- package/src/component/language/LanguageWidget.ts +3 -3
- package/src/component/layout/BaseMaskLayoutWidget.ts +1 -1
- package/src/component/layout/MaskBlock.vue +2 -2
- package/src/component/layout/grid/GridWidget.ts +9 -7
- package/src/component/layout/widget/MaskCommonWidget.ts +4 -4
- package/src/component/menu/DefaultMenu.vue +3 -3
- package/src/component/menu/DefaultSubMenu.vue +2 -2
- package/src/component/menu/MenuWidget.ts +11 -5
- package/src/component/menu/style/common.scss +45 -0
- package/src/component/multi-tabs/MultiTabs.vue +9 -4
- package/src/component/multi-tabs/MultiTabsWidget.ts +7 -8
- package/src/component/multi-tabs/typing.ts +1 -1
- package/src/component/notification/DefaultNotification.vue +26 -28
- package/src/component/notification/NotificationWidget.ts +24 -23
- package/src/component/order-statistic/OrderStatistic.vue +1 -1
- package/src/component/partner-switcher/PartnerSwitcher.vue +2 -2
- package/src/component/partner-switcher/PartnerSwitcherWidget.ts +3 -3
- package/src/component/partner-switcher/service/PartnerSwitcherService.ts +1 -1
- package/src/component/partner-switcher/service/impl/PartnerSwitcherServiceImpl.ts +2 -2
- package/src/component/partner-switcher/session/PartnerInfoSession.ts +1 -1
- package/src/component/partner-switcher/session/impl/DefaultPartnerInfoSession.ts +2 -2
- package/src/component/partner-switcher/spi/PartnerSwitcherMaskEditor.ts +8 -2
- package/src/component/quick-search/index.ts +1 -1
- package/src/component/user/DefaultUser.vue +16 -12
- package/src/component/user/UserWidget.ts +24 -21
- package/src/component/user/index.ts +1 -0
- package/src/config/DebugConfig.ts +2 -2
- package/src/config/PartnerSwitcherConfig.ts +2 -2
- package/src/service/menu-service.ts +3 -3
- package/src/service/module-service.ts +3 -3
- package/src/service/top-bar-service.ts +6 -2
- package/src/service/user-service.ts +1 -1
- package/src/shim-translate.d.ts +5 -2
- package/src/spi/mask-editor.ts +7 -1
- package/src/tags/context/context.ts +1 -1
- package/src/tags/index.ts +1 -1
- package/src/tags/mixin/MaskWidgetTagMixin.ts +5 -5
- package/src/tags/mixin/typing.ts +1 -1
- package/src/tags/mixin/use-mask-widget-tag.ts +5 -5
- package/src/tags/register/manager.ts +2 -2
- package/src/tags/resolve/internal/typing.ts +1 -1
- package/src/tags/resolve/internal/widget-resolve.ts +4 -4
- package/src/tags/resolve/typing.ts +2 -2
- package/src/tags/resolve/widget-resolve.ts +2 -2
- package/src/template/index.ts +5 -5
- package/src/typing/menu.ts +1 -1
- package/src/util/HomepageUtils.ts +8 -7
- package/src/util/unauthorized-action.ts +8 -4
- package/src/utils.ts +8 -8
- package/dist/types/src/component/debug/spi/DebugMaskEditor.d.ts +0 -6
- package/dist/types/src/component/debug/view/components/DebugDefaultInfo.vue.d.ts +0 -22
- package/dist/types/src/component/debug/view/components/DebugJsonView.vue.d.ts +0 -29
- package/dist/types/src/component/debug/view/components/DebugRequestInfoPanel.vue.d.ts +0 -22
- package/dist/types/src/component/debug/view/components/DebugResponsePanel.vue.d.ts +0 -12
- package/dist/types/src/component/debug/view/debug-api/DebugApi.vue.d.ts +0 -62
- package/dist/types/src/component/debug/view/debug-view/DebugView.vue.d.ts +0 -78
- package/rollup.config.js +0 -33
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
export interface MaskContext {
|
|
3
|
-
parentHandle: ComputedRef<string>;
|
|
4
|
-
slotName: ComputedRef<string | undefined>;
|
|
5
|
-
}
|
|
6
|
-
export declare const defaultMaskContext: MaskContext;
|
|
7
|
-
export declare function useProviderMaskContext(state: Partial<MaskContext>): void;
|
|
8
|
-
export declare function useInjectMaskContext(): MaskContext;
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
export interface MaskContext {
|
|
3
|
+
parentHandle: ComputedRef<string>;
|
|
4
|
+
slotName: ComputedRef<string | undefined>;
|
|
5
|
+
}
|
|
6
|
+
export declare const defaultMaskContext: MaskContext;
|
|
7
|
+
export declare function useProviderMaskContext(state: Partial<MaskContext>): void;
|
|
8
|
+
export declare function useInjectMaskContext(): MaskContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './context';
|
|
1
|
+
export * from './context';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './register';
|
|
2
|
-
export declare function maskInstall(): void;
|
|
3
|
-
export * from './context';
|
|
4
|
-
export * from './mixin';
|
|
5
|
-
export * from './register';
|
|
6
|
-
export * from './resolve';
|
|
1
|
+
import './register';
|
|
2
|
+
export declare function maskInstall(): void;
|
|
3
|
+
export * from './context';
|
|
4
|
+
export * from './mixin';
|
|
5
|
+
export * from './register';
|
|
6
|
+
export * from './resolve';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
-
export declare const MaskWidgetTagMixin: ComponentOptionsMixin;
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
export declare const MaskWidgetTagMixin: ComponentOptionsMixin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './MaskWidgetTagMixin';
|
|
2
|
-
export * from './typing';
|
|
3
|
-
export * from './use-mask-widget-tag';
|
|
1
|
+
export * from './MaskWidgetTagMixin';
|
|
2
|
+
export * from './typing';
|
|
3
|
+
export * from './use-mask-widget-tag';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WidgetTagContext } from '@oinone/kunlun-vue-widget';
|
|
2
|
-
import { InternalMaskWidget } from '../resolve';
|
|
3
|
-
export interface MaskWidgetTagMixinContext extends WidgetTagContext {
|
|
4
|
-
getWidgetTag(): InternalMaskWidget | string;
|
|
5
|
-
getCustomProps(): Record<string, unknown>;
|
|
6
|
-
}
|
|
1
|
+
import type { WidgetTagContext } from '@oinone/kunlun-vue-widget';
|
|
2
|
+
import { InternalMaskWidget } from '../resolve';
|
|
3
|
+
export interface MaskWidgetTagMixinContext extends WidgetTagContext {
|
|
4
|
+
getWidgetTag(): InternalMaskWidget | string;
|
|
5
|
+
getCustomProps(): Record<string, unknown>;
|
|
6
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { DslDefinition } from '@oinone/kunlun-dsl';
|
|
2
|
-
import { RenderWidget, VueWidget } from '@oinone/kunlun-vue-widget';
|
|
3
|
-
import { ComponentOptionsMixin, Ref, SetupContext, Slots } from 'vue';
|
|
4
|
-
import { CreateMaskWidgetProps } from '../resolve';
|
|
5
|
-
/**
|
|
6
|
-
* 函数式组件标签混入可选项
|
|
7
|
-
* 使用此混入方式,必须使用setup调用{@link useMaskWidgetTag}方法
|
|
8
|
-
*/
|
|
9
|
-
export declare const UseMaskWidgetTagMixin: ComponentOptionsMixin;
|
|
10
|
-
export interface UseMaskWidgetTagContext {
|
|
11
|
-
dslDefinition?: DslDefinition;
|
|
12
|
-
slotName?: string;
|
|
13
|
-
inline?: boolean;
|
|
14
|
-
slotContext?: Record<string, unknown>;
|
|
15
|
-
}
|
|
16
|
-
export interface UseMaskWidgetTagOptions {
|
|
17
|
-
getWidgetTag?: () => string;
|
|
18
|
-
getParentHandle?: () => string;
|
|
19
|
-
getDslDefinition?: () => DslDefinition | undefined;
|
|
20
|
-
getSlotName?: () => string;
|
|
21
|
-
getCustomProps?: () => Record<string, unknown>;
|
|
22
|
-
getProps?: () => CreateMaskWidgetProps;
|
|
23
|
-
getCurrentSlots?: () => Slots | undefined;
|
|
24
|
-
createWidget?: (props: CreateMaskWidgetProps) => RenderWidget | undefined;
|
|
25
|
-
}
|
|
26
|
-
export interface UseMaskWidgetResult {
|
|
27
|
-
widgetHandle: Ref<string>;
|
|
28
|
-
widget: Ref<VueWidget | undefined>;
|
|
29
|
-
widgets: Ref<VueWidget[]>;
|
|
30
|
-
getWidgetTag: () => string;
|
|
31
|
-
getParentHandle: () => string;
|
|
32
|
-
getDslDefinition: () => DslDefinition | undefined;
|
|
33
|
-
getSlotName: () => string;
|
|
34
|
-
getCustomProps: () => Record<string, unknown>;
|
|
35
|
-
getProps: () => CreateMaskWidgetProps;
|
|
36
|
-
getCurrentSlots: () => Slots | undefined;
|
|
37
|
-
}
|
|
38
|
-
export declare function useMaskWidgetTag(props: UseMaskWidgetTagContext, context: SetupContext, options?: UseMaskWidgetTagOptions): UseMaskWidgetResult;
|
|
1
|
+
import { type DslDefinition } from '@oinone/kunlun-dsl';
|
|
2
|
+
import { type RenderWidget, VueWidget } from '@oinone/kunlun-vue-widget';
|
|
3
|
+
import { ComponentOptionsMixin, type Ref, type SetupContext, type Slots } from 'vue';
|
|
4
|
+
import { type CreateMaskWidgetProps } from '../resolve';
|
|
5
|
+
/**
|
|
6
|
+
* 函数式组件标签混入可选项
|
|
7
|
+
* 使用此混入方式,必须使用setup调用{@link useMaskWidgetTag}方法
|
|
8
|
+
*/
|
|
9
|
+
export declare const UseMaskWidgetTagMixin: ComponentOptionsMixin;
|
|
10
|
+
export interface UseMaskWidgetTagContext {
|
|
11
|
+
dslDefinition?: DslDefinition;
|
|
12
|
+
slotName?: string;
|
|
13
|
+
inline?: boolean;
|
|
14
|
+
slotContext?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export interface UseMaskWidgetTagOptions {
|
|
17
|
+
getWidgetTag?: () => string;
|
|
18
|
+
getParentHandle?: () => string;
|
|
19
|
+
getDslDefinition?: () => DslDefinition | undefined;
|
|
20
|
+
getSlotName?: () => string;
|
|
21
|
+
getCustomProps?: () => Record<string, unknown>;
|
|
22
|
+
getProps?: () => CreateMaskWidgetProps;
|
|
23
|
+
getCurrentSlots?: () => Slots | undefined;
|
|
24
|
+
createWidget?: (props: CreateMaskWidgetProps) => RenderWidget | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface UseMaskWidgetResult {
|
|
27
|
+
widgetHandle: Ref<string>;
|
|
28
|
+
widget: Ref<VueWidget | undefined>;
|
|
29
|
+
widgets: Ref<VueWidget[]>;
|
|
30
|
+
getWidgetTag: () => string;
|
|
31
|
+
getParentHandle: () => string;
|
|
32
|
+
getDslDefinition: () => DslDefinition | undefined;
|
|
33
|
+
getSlotName: () => string;
|
|
34
|
+
getCustomProps: () => Record<string, unknown>;
|
|
35
|
+
getProps: () => CreateMaskWidgetProps;
|
|
36
|
+
getCurrentSlots: () => Slots | undefined;
|
|
37
|
+
}
|
|
38
|
+
export declare function useMaskWidgetTag(props: UseMaskWidgetTagContext, context: SetupContext, options?: UseMaskWidgetTagOptions): UseMaskWidgetResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './manager';
|
|
1
|
+
export * from './manager';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
2
|
-
import { IMaskTagManager } from '../../basic/register';
|
|
3
|
-
export declare class InternalMaskTagManager implements IMaskTagManager<Component> {
|
|
4
|
-
private tags;
|
|
5
|
-
getComponents(): Component[];
|
|
6
|
-
isInternalWidget(dslNodeType: string): boolean;
|
|
7
|
-
register(dslNodeType: string): boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const MaskTagManager: InternalMaskTagManager;
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
import { type IMaskTagManager } from '../../basic/register';
|
|
3
|
+
export declare class InternalMaskTagManager implements IMaskTagManager<Component> {
|
|
4
|
+
private tags;
|
|
5
|
+
getComponents(): Component[];
|
|
6
|
+
isInternalWidget(dslNodeType: string): boolean;
|
|
7
|
+
register(dslNodeType: string): boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const MaskTagManager: InternalMaskTagManager;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './typing';
|
|
2
|
-
export * from './widget-resolve';
|
|
1
|
+
export * from './typing';
|
|
2
|
+
export * from './widget-resolve';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './typing';
|
|
2
|
-
export * from './widget-resolve';
|
|
1
|
+
export * from './typing';
|
|
2
|
+
export * from './widget-resolve';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateMaskWidgetProps } from '../typing';
|
|
2
|
-
export interface DslDefinitionTypeProps extends CreateMaskWidgetProps {
|
|
3
|
-
dslNodeType?: string;
|
|
4
|
-
widget?: string;
|
|
5
|
-
}
|
|
1
|
+
import type { CreateMaskWidgetProps } from '../typing';
|
|
2
|
+
export interface DslDefinitionTypeProps extends CreateMaskWidgetProps {
|
|
3
|
+
dslNodeType?: string;
|
|
4
|
+
widget?: string;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RenderWidget } from '@oinone/kunlun-vue-widget';
|
|
2
|
-
import { DslDefinitionTypeProps } from './typing';
|
|
3
|
-
export declare function createMaskWidgetByDslNodeType(props: DslDefinitionTypeProps): RenderWidget | undefined;
|
|
1
|
+
import { type RenderWidget } from '@oinone/kunlun-vue-widget';
|
|
2
|
+
import type { DslDefinitionTypeProps } from './typing';
|
|
3
|
+
export declare function createMaskWidgetByDslNodeType(props: DslDefinitionTypeProps): RenderWidget | undefined;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { DslDefinition } from '@oinone/kunlun-dsl';
|
|
2
|
-
import { BaseMaskWidgetProps } from '../../basic';
|
|
3
|
-
export interface CreateMaskWidgetProps extends BaseMaskWidgetProps {
|
|
4
|
-
automatic?: boolean;
|
|
5
|
-
template?: DslDefinition;
|
|
6
|
-
parentHandle: string;
|
|
7
|
-
slotName?: string;
|
|
8
|
-
slotContext?: Record<string, unknown>;
|
|
9
|
-
}
|
|
10
|
-
export declare enum InternalMaskWidget {
|
|
11
|
-
/**
|
|
12
|
-
* 根标签
|
|
13
|
-
*/
|
|
14
|
-
Mask = "mask",
|
|
15
|
-
/**
|
|
16
|
-
* 通用组件
|
|
17
|
-
*/
|
|
18
|
-
Widget = "widget",
|
|
19
|
-
Header = "header",
|
|
20
|
-
Container = "container",
|
|
21
|
-
Content = "content",
|
|
22
|
-
Block = "block",
|
|
23
|
-
Sidebar = "sidebar",
|
|
24
|
-
Breadcrumb = "breadcrumb",
|
|
25
|
-
MultiTabs = "multi-tabs"
|
|
26
|
-
}
|
|
1
|
+
import type { DslDefinition } from '@oinone/kunlun-dsl';
|
|
2
|
+
import type { BaseMaskWidgetProps } from '../../basic';
|
|
3
|
+
export interface CreateMaskWidgetProps extends BaseMaskWidgetProps {
|
|
4
|
+
automatic?: boolean;
|
|
5
|
+
template?: DslDefinition;
|
|
6
|
+
parentHandle: string;
|
|
7
|
+
slotName?: string;
|
|
8
|
+
slotContext?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare enum InternalMaskWidget {
|
|
11
|
+
/**
|
|
12
|
+
* 根标签
|
|
13
|
+
*/
|
|
14
|
+
Mask = "mask",
|
|
15
|
+
/**
|
|
16
|
+
* 通用组件
|
|
17
|
+
*/
|
|
18
|
+
Widget = "widget",
|
|
19
|
+
Header = "header",
|
|
20
|
+
Container = "container",
|
|
21
|
+
Content = "content",
|
|
22
|
+
Block = "block",
|
|
23
|
+
Sidebar = "sidebar",
|
|
24
|
+
Breadcrumb = "breadcrumb",
|
|
25
|
+
MultiTabs = "multi-tabs"
|
|
26
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RenderWidget } from '@oinone/kunlun-vue-widget';
|
|
2
|
-
import { BaseMaskWidgetProps } from '../../basic';
|
|
3
|
-
export
|
|
4
|
-
export declare function createMaskWidget(tag: string, props: BaseMaskWidgetProps): RenderWidget | undefined;
|
|
5
|
-
export declare function registerMaskWidgetFunction<T extends BaseMaskWidgetProps = BaseMaskWidgetProps>(tag: string, fn?: CreateMaskWidgetFunction<T>): boolean;
|
|
1
|
+
import type { RenderWidget } from '@oinone/kunlun-vue-widget';
|
|
2
|
+
import type { BaseMaskWidgetProps } from '../../basic';
|
|
3
|
+
export type CreateMaskWidgetFunction<T extends BaseMaskWidgetProps = BaseMaskWidgetProps> = (props: T) => RenderWidget | undefined;
|
|
4
|
+
export declare function createMaskWidget(tag: string, props: BaseMaskWidgetProps): RenderWidget | undefined;
|
|
5
|
+
export declare function registerMaskWidgetFunction<T extends BaseMaskWidgetProps = BaseMaskWidgetProps>(tag: string, fn?: CreateMaskWidgetFunction<T>): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DefaultMask = "<mask>\n <multi-tabs />\n <header>\n <widget widget=\"app-switcher\" />\n <block>\n <widget widget=\"notification\" />\n <widget widget=\"divider\" />\n <widget widget=\"language\" />\n <widget widget=\"divider\" />\n <widget widget=\"user\" />\n </block>\n </header>\n <container>\n <sidebar>\n <widget widget=\"nav-menu\" height=\"100%\" />\n </sidebar>\n <content>\n <breadcrumb />\n <block width=\"100%\">\n <widget width=\"100%\" widget=\"main-view\" />\n </block>\n </content>\n </container>\n</mask>";
|
|
2
|
-
export declare const InlineMultiTabsMaskXML = "<mask>\n <header>\n <widget widget=\"app-switcher\" />\n <block>\n <widget widget=\"notification\" />\n <widget widget=\"divider\" />\n <widget widget=\"language\" />\n <widget widget=\"divider\" />\n <widget widget=\"user\" />\n </block>\n </header>\n <container>\n <sidebar>\n <widget widget=\"nav-menu\" height=\"100%\" />\n </sidebar>\n <block height=\"100%\" flex=\"1 0 0\" flexDirection=\"column\" alignContent=\"flex-start\" flexWrap=\"nowrap\" overflow=\"hidden\">\n <multi-tabs inline=\"true\" />\n <content>\n <breadcrumb />\n <block width=\"100%\">\n <widget width=\"100%\" widget=\"main-view\" />\n </block>\n </content>\n </block>\n </container>\n</mask>";
|
|
1
|
+
export declare const DefaultMask = "<mask>\n <multi-tabs />\n <header>\n <widget widget=\"app-switcher\" />\n <block>\n <widget widget=\"notification\" />\n <widget widget=\"divider\" />\n <widget widget=\"language\" />\n <widget widget=\"divider\" />\n <widget widget=\"user\" />\n </block>\n </header>\n <container>\n <sidebar>\n <widget widget=\"nav-menu\" height=\"100%\" />\n </sidebar>\n <content>\n <breadcrumb />\n <block width=\"100%\">\n <widget width=\"100%\" widget=\"main-view\" />\n </block>\n </content>\n </container>\n</mask>";
|
|
2
|
+
export declare const InlineMultiTabsMaskXML = "<mask>\n <header>\n <widget widget=\"app-switcher\" />\n <block>\n <widget widget=\"notification\" />\n <widget widget=\"divider\" />\n <widget widget=\"language\" />\n <widget widget=\"divider\" />\n <widget widget=\"user\" />\n </block>\n </header>\n <container>\n <sidebar>\n <widget widget=\"nav-menu\" height=\"100%\" />\n </sidebar>\n <block height=\"100%\" flex=\"1 0 0\" flexDirection=\"column\" alignContent=\"flex-start\" flexWrap=\"nowrap\" overflow=\"hidden\">\n <multi-tabs inline=\"true\" />\n <content>\n <breadcrumb />\n <block width=\"100%\">\n <widget width=\"100%\" widget=\"main-view\" />\n </block>\n </content>\n </block>\n </container>\n</mask>";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DslDefinition } from '@oinone/kunlun-dsl';
|
|
2
|
-
import { MaskEditorContext } from '../spi';
|
|
3
|
-
import {
|
|
4
|
-
export declare function getDefaultMaskTemplate(): DslDefinition;
|
|
5
|
-
export declare function maskTemplateEdit(context: MaskEditorContext, dsl: DslDefinition): DslDefinition;
|
|
6
|
-
export { InlineMultiTabsMaskXML, DefaultMask };
|
|
1
|
+
import { type DslDefinition } from '@oinone/kunlun-dsl';
|
|
2
|
+
import { type MaskEditorContext } from '../spi';
|
|
3
|
+
import { DefaultMask, InlineMultiTabsMaskXML } from './default-mask';
|
|
4
|
+
export declare function getDefaultMaskTemplate(): DslDefinition;
|
|
5
|
+
export declare function maskTemplateEdit(context: MaskEditorContext, dsl: DslDefinition): DslDefinition;
|
|
6
|
+
export { InlineMultiTabsMaskXML, DefaultMask };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DEFAULT_PREFIX = "oio";
|
|
1
|
+
export declare const DEFAULT_PREFIX = "oio";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DEFAULT_APPLICATION_LOGO: () => string;
|
|
1
|
+
export declare const DEFAULT_APPLICATION_LOGO: () => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './constant';
|
|
2
|
-
export * from './menu';
|
|
3
|
-
export * from './stream-symble';
|
|
1
|
+
export * from './constant';
|
|
2
|
+
export * from './menu';
|
|
3
|
+
export * from './stream-symble';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IMenu } from '@oinone/kunlun-meta';
|
|
2
|
-
export interface RuntimeMenu extends IMenu {
|
|
3
|
-
title: string;
|
|
4
|
-
}
|
|
5
|
-
export interface MenuUrlParameters {
|
|
6
|
-
selectedKeys: string[];
|
|
7
|
-
openKeys: string[];
|
|
8
|
-
}
|
|
9
|
-
export interface MenuUrlParameterOptions {
|
|
10
|
-
selectedKeys?: string[];
|
|
11
|
-
openKeys?: string[];
|
|
12
|
-
}
|
|
1
|
+
import type { IMenu } from '@oinone/kunlun-meta';
|
|
2
|
+
export interface RuntimeMenu extends IMenu {
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MenuUrlParameters {
|
|
6
|
+
selectedKeys: string[];
|
|
7
|
+
openKeys: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface MenuUrlParameterOptions {
|
|
10
|
+
selectedKeys?: string[];
|
|
11
|
+
openKeys?: string[];
|
|
12
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 菜单折叠
|
|
3
|
-
*/
|
|
4
|
-
export declare const MenuCollapsedSymbol: unique symbol;
|
|
5
|
-
/**
|
|
6
|
-
* 修改用户
|
|
7
|
-
*/
|
|
8
|
-
export declare const pamirsUserSymbol: unique symbol;
|
|
9
|
-
/**
|
|
10
|
-
* 新增应用
|
|
11
|
-
*/
|
|
12
|
-
export declare const appFinderSymbol: unique symbol;
|
|
1
|
+
/**
|
|
2
|
+
* 菜单折叠
|
|
3
|
+
*/
|
|
4
|
+
export declare const MenuCollapsedSymbol: unique symbol;
|
|
5
|
+
/**
|
|
6
|
+
* 修改用户
|
|
7
|
+
*/
|
|
8
|
+
export declare const pamirsUserSymbol: unique symbol;
|
|
9
|
+
/**
|
|
10
|
+
* 新增应用
|
|
11
|
+
*/
|
|
12
|
+
export declare const appFinderSymbol: unique symbol;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare function gotoHomepage(module: string, moduleName: string, urlHomePage?: IURLAction, router?: Router): Promise<boolean>;
|
|
1
|
+
import { type IURLAction } from '@oinone/kunlun-meta';
|
|
2
|
+
import { Router } from '@oinone/kunlun-router';
|
|
3
|
+
export declare function gotoHomepage(module: string, moduleName: string, urlHomePage?: IURLAction, router?: Router): Promise<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 菜单收起util类
|
|
3
|
-
* 菜单收起后统一处理appSwitcher menu对应的变化
|
|
4
|
-
* */
|
|
5
|
-
export declare function maskCollapsed(collapsed: boolean): void;
|
|
1
|
+
/**
|
|
2
|
+
* 菜单收起util类
|
|
3
|
+
* 菜单收起后统一处理appSwitcher menu对应的变化
|
|
4
|
+
* */
|
|
5
|
+
export declare function maskCollapsed(collapsed: boolean): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './HomepageUtils';
|
|
2
|
-
export * from './MenuUtil';
|
|
3
|
-
export * from './unauthorized-action';
|
|
1
|
+
export * from './HomepageUtils';
|
|
2
|
+
export * from './MenuUtil';
|
|
3
|
+
export * from './unauthorized-action';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare const unauthorizedActionName = "unauthorized";
|
|
5
|
-
export declare const emptyHomepageModelName = "$$internal_empty_homepage_model";
|
|
6
|
-
export declare const urlHomepageModelName = "$$internal_url_homepage_model";
|
|
7
|
-
export declare const replaceStanderMainView: (dsl: DslDefinition) => DslDefinition;
|
|
8
|
-
export declare const getUnauthorizedAction: ({ moduleName, model, target, name, title }: {
|
|
9
|
-
moduleName: string;
|
|
10
|
-
model?: string
|
|
11
|
-
target?: ViewActionTarget
|
|
12
|
-
name: string;
|
|
13
|
-
title?: string
|
|
14
|
-
}) => RuntimeViewAction;
|
|
1
|
+
import { type DslDefinition } from '@oinone/kunlun-dsl';
|
|
2
|
+
import { type RuntimeViewAction } from '@oinone/kunlun-engine';
|
|
3
|
+
import { ViewActionTarget } from '@oinone/kunlun-meta';
|
|
4
|
+
export declare const unauthorizedActionName = "unauthorized";
|
|
5
|
+
export declare const emptyHomepageModelName = "$$internal_empty_homepage_model";
|
|
6
|
+
export declare const urlHomepageModelName = "$$internal_url_homepage_model";
|
|
7
|
+
export declare const replaceStanderMainView: (dsl: DslDefinition) => DslDefinition;
|
|
8
|
+
export declare const getUnauthorizedAction: ({ moduleName, model, target, name, title }: {
|
|
9
|
+
moduleName: string;
|
|
10
|
+
model?: string;
|
|
11
|
+
target?: ViewActionTarget;
|
|
12
|
+
name: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
}) => RuntimeViewAction;
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { RuntimeModel } from '@oinone/kunlun-engine';
|
|
2
|
-
import { Entity, IModel, isPromise } from '@oinone/kunlun-meta';
|
|
3
|
-
import { Condition } from '@oinone/kunlun-request';
|
|
4
|
-
declare const filterRsql: (searchValue: string) => string;
|
|
5
|
-
declare const getCondition: (model: IModel | null, content: Record<string, unknown>, extraContent?: {}, extraConditions?: {
|
|
6
|
-
leftValue: string[];
|
|
7
|
-
operator: string;
|
|
8
|
-
right: unknown;
|
|
9
|
-
}[]) => Condition;
|
|
10
|
-
/**
|
|
11
|
-
* 构造下拉框的搜索条件
|
|
12
|
-
* @param model 关联模型
|
|
13
|
-
* @param searchFieldName 搜索的字段名,可以是逗号分隔的多个字段
|
|
14
|
-
* @param searchValue 搜索的值
|
|
15
|
-
* @param domain 限定条件
|
|
16
|
-
*/
|
|
17
|
-
declare const buildSelectSearchCondition: (model: RuntimeModel | undefined, searchFieldName: string, searchValue: string, domain?: string
|
|
18
|
-
/**
|
|
19
|
-
* 构造下拉框的搜索条件
|
|
20
|
-
* @param searchFieldName 搜索的字段名,可以是逗号分隔的多个字段
|
|
21
|
-
* @param searchValue 搜索的值
|
|
22
|
-
* @param domain 限定条件
|
|
23
|
-
* @deprecated please using buildSelectSearchCondition
|
|
24
|
-
*/
|
|
25
|
-
declare const builderSelectSearchCondition: (searchFieldName: string, searchValue: string, domain?: string
|
|
26
|
-
/**
|
|
27
|
-
* 自动填充已选中的值到选项列表的头部,非表达式
|
|
28
|
-
* @param relationFieldKey
|
|
29
|
-
* @param selectedValue
|
|
30
|
-
* @param dataList
|
|
31
|
-
* @param labelFields
|
|
32
|
-
* @param separator labelFields的展示时的分隔符
|
|
33
|
-
*/
|
|
34
|
-
declare const autoFillSelectedValueToOptions: (relationFieldKey: string, selectedValue: any, dataList: Entity[], labelFields: string[], separator?: string) => Entity[];
|
|
35
|
-
/**
|
|
36
|
-
* 根据label变量表达式自动填充已选中的值到选项列表的头部
|
|
37
|
-
* @param relationFieldKey
|
|
38
|
-
* @param selectedValue
|
|
39
|
-
* @param dataList 可选项数据
|
|
40
|
-
* @param xmlOptionLabel xml配的label表达式
|
|
41
|
-
* @param modelLabel 元数据上的label表达式
|
|
42
|
-
* @param optionLabelContextArgs 表达式运行的数据源参数
|
|
43
|
-
*/
|
|
44
|
-
declare const autoFillSelectedValueToOptionsByLabel: (relationFieldKey: string, selectedValues: Entity | Entity[], dataList?: Entity[], xmlOptionLabel?: string
|
|
45
|
-
/**
|
|
46
|
-
* 根据labelFields组装展示数据
|
|
47
|
-
* @param relationFieldKey
|
|
48
|
-
* @param optionData
|
|
49
|
-
* @param labelFields
|
|
50
|
-
* @param separator
|
|
51
|
-
*/
|
|
52
|
-
export declare const autoFillByLabelFields: (relationFieldKey: string, optionData: Entity, labelFields: string[], separator?: string
|
|
53
|
-
/**
|
|
54
|
-
* 根据label组装展示数据
|
|
55
|
-
* @param relationFieldKey
|
|
56
|
-
* @param optionData
|
|
57
|
-
* @param realOptionLabel
|
|
58
|
-
* @param optionLabelContextArgs
|
|
59
|
-
*/
|
|
60
|
-
export declare const autoFillByLabel: (relationFieldKey: string, optionData: Entity, realOptionLabel?: string
|
|
61
|
-
/**
|
|
62
|
-
* 获取xml中配置的labelFields
|
|
63
|
-
* @param dslConfig xml配置
|
|
64
|
-
* @param labelFields 元数据上的labelFields
|
|
65
|
-
*/
|
|
66
|
-
declare const fetchLabelFieldsFromXmlConfig: (dslConfig: Entity, labelFields: string[]) => string[];
|
|
67
|
-
/**
|
|
68
|
-
* 判断对象是否为空
|
|
69
|
-
* @param obj
|
|
70
|
-
*/
|
|
71
|
-
declare const isEmptyObject: (obj: any) => boolean;
|
|
72
|
-
interface QueryExpression {
|
|
73
|
-
leftValue: string[];
|
|
74
|
-
operator: string;
|
|
75
|
-
right: unknown;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* 解析action上的domain到默认搜索条件
|
|
79
|
-
* @param model
|
|
80
|
-
* @param domain
|
|
81
|
-
*/
|
|
82
|
-
declare const parseActionDomain4search: (model: IModel, domain: string) => {
|
|
83
|
-
searchBody: {};
|
|
84
|
-
searchConditions: QueryExpression[];
|
|
85
|
-
};
|
|
86
|
-
export { isPromise, filterRsql, getCondition, buildSelectSearchCondition, builderSelectSearchCondition, autoFillSelectedValueToOptions, autoFillSelectedValueToOptionsByLabel, fetchLabelFieldsFromXmlConfig, isEmptyObject, parseActionDomain4search };
|
|
1
|
+
import { type RuntimeModel } from '@oinone/kunlun-engine';
|
|
2
|
+
import { type Entity, type IModel, isPromise } from '@oinone/kunlun-meta';
|
|
3
|
+
import { Condition } from '@oinone/kunlun-request';
|
|
4
|
+
declare const filterRsql: (searchValue: string) => string;
|
|
5
|
+
declare const getCondition: (model: IModel | null, content: Record<string, unknown>, extraContent?: {}, extraConditions?: {
|
|
6
|
+
leftValue: string[];
|
|
7
|
+
operator: string;
|
|
8
|
+
right: unknown;
|
|
9
|
+
}[]) => Condition;
|
|
10
|
+
/**
|
|
11
|
+
* 构造下拉框的搜索条件
|
|
12
|
+
* @param model 关联模型
|
|
13
|
+
* @param searchFieldName 搜索的字段名,可以是逗号分隔的多个字段
|
|
14
|
+
* @param searchValue 搜索的值
|
|
15
|
+
* @param domain 限定条件
|
|
16
|
+
*/
|
|
17
|
+
declare const buildSelectSearchCondition: (model: RuntimeModel | undefined, searchFieldName: string, searchValue: string, domain?: string) => Condition;
|
|
18
|
+
/**
|
|
19
|
+
* 构造下拉框的搜索条件
|
|
20
|
+
* @param searchFieldName 搜索的字段名,可以是逗号分隔的多个字段
|
|
21
|
+
* @param searchValue 搜索的值
|
|
22
|
+
* @param domain 限定条件
|
|
23
|
+
* @deprecated please using buildSelectSearchCondition
|
|
24
|
+
*/
|
|
25
|
+
declare const builderSelectSearchCondition: (searchFieldName: string, searchValue: string, domain?: string) => string;
|
|
26
|
+
/**
|
|
27
|
+
* 自动填充已选中的值到选项列表的头部,非表达式
|
|
28
|
+
* @param relationFieldKey
|
|
29
|
+
* @param selectedValue
|
|
30
|
+
* @param dataList
|
|
31
|
+
* @param labelFields
|
|
32
|
+
* @param separator labelFields的展示时的分隔符
|
|
33
|
+
*/
|
|
34
|
+
declare const autoFillSelectedValueToOptions: (relationFieldKey: string, selectedValue: any, dataList: Entity[], labelFields: string[], separator?: string) => Entity[];
|
|
35
|
+
/**
|
|
36
|
+
* 根据label变量表达式自动填充已选中的值到选项列表的头部
|
|
37
|
+
* @param relationFieldKey
|
|
38
|
+
* @param selectedValue
|
|
39
|
+
* @param dataList 可选项数据
|
|
40
|
+
* @param xmlOptionLabel xml配的label表达式
|
|
41
|
+
* @param modelLabel 元数据上的label表达式
|
|
42
|
+
* @param optionLabelContextArgs 表达式运行的数据源参数
|
|
43
|
+
*/
|
|
44
|
+
declare const autoFillSelectedValueToOptionsByLabel: (relationFieldKey: string, selectedValues: Entity | Entity[], dataList?: Entity[], xmlOptionLabel?: string, modelLabel?: string, optionLabelContextArgs?: string) => Entity[];
|
|
45
|
+
/**
|
|
46
|
+
* 根据labelFields组装展示数据
|
|
47
|
+
* @param relationFieldKey
|
|
48
|
+
* @param optionData
|
|
49
|
+
* @param labelFields
|
|
50
|
+
* @param separator
|
|
51
|
+
*/
|
|
52
|
+
export declare const autoFillByLabelFields: (relationFieldKey: string, optionData: Entity, labelFields: string[], separator?: string) => Entity;
|
|
53
|
+
/**
|
|
54
|
+
* 根据label组装展示数据
|
|
55
|
+
* @param relationFieldKey
|
|
56
|
+
* @param optionData
|
|
57
|
+
* @param realOptionLabel
|
|
58
|
+
* @param optionLabelContextArgs
|
|
59
|
+
*/
|
|
60
|
+
export declare const autoFillByLabel: (relationFieldKey: string, optionData: Entity, realOptionLabel?: string, optionLabelContextArgs?: string) => Entity;
|
|
61
|
+
/**
|
|
62
|
+
* 获取xml中配置的labelFields
|
|
63
|
+
* @param dslConfig xml配置
|
|
64
|
+
* @param labelFields 元数据上的labelFields
|
|
65
|
+
*/
|
|
66
|
+
declare const fetchLabelFieldsFromXmlConfig: (dslConfig: Entity, labelFields: string[]) => string[];
|
|
67
|
+
/**
|
|
68
|
+
* 判断对象是否为空
|
|
69
|
+
* @param obj
|
|
70
|
+
*/
|
|
71
|
+
declare const isEmptyObject: (obj: any) => boolean;
|
|
72
|
+
interface QueryExpression {
|
|
73
|
+
leftValue: string[];
|
|
74
|
+
operator: string;
|
|
75
|
+
right: unknown;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 解析action上的domain到默认搜索条件
|
|
79
|
+
* @param model
|
|
80
|
+
* @param domain
|
|
81
|
+
*/
|
|
82
|
+
declare const parseActionDomain4search: (model: IModel, domain: string) => {
|
|
83
|
+
searchBody: {};
|
|
84
|
+
searchConditions: QueryExpression[];
|
|
85
|
+
};
|
|
86
|
+
export { isPromise, filterRsql, getCondition, buildSelectSearchCondition, builderSelectSearchCondition, autoFillSelectedValueToOptions, autoFillSelectedValueToOptionsByLabel, fetchLabelFieldsFromXmlConfig, isEmptyObject, parseActionDomain4search };
|