@jt-home/mfe-components 1.0.59 → 1.0.60-beta.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.
@@ -7,6 +7,55 @@ type __VLS_Props = {
7
7
  actions: GlobalInfoActions;
8
8
  renderConfig?: GlobalInfoRenderConfig;
9
9
  };
10
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare var __VLS_10: string, __VLS_11: {
11
+ field: import("../index.ts").GlobalInfoField;
12
+ section: GlobalInfoSection;
13
+ sectionView: GlobalInfoSection;
14
+ node: GlobalInfoNode | null | undefined;
15
+ row: import("../index.ts").GlobalInfoRawRecord;
16
+ rowIndex: number;
17
+ editing: boolean;
18
+ modelValue: unknown;
19
+ value: unknown;
20
+ state: GlobalInfoState;
21
+ actions: GlobalInfoActions;
22
+ updateModelValue: (value: unknown) => void;
23
+ }, __VLS_22: string, __VLS_23: {
24
+ field: import("../index.ts").GlobalInfoField;
25
+ section: GlobalInfoSection;
26
+ sectionView: GlobalInfoSection;
27
+ node: GlobalInfoNode | null | undefined;
28
+ editing: boolean;
29
+ modelValue: unknown;
30
+ value: unknown;
31
+ state: GlobalInfoState;
32
+ actions: GlobalInfoActions;
33
+ updateModelValue: (value: unknown) => void;
34
+ }, __VLS_34: string, __VLS_35: {
35
+ field: import("../index.ts").GlobalInfoField;
36
+ section: GlobalInfoSection;
37
+ sectionView: GlobalInfoSection;
38
+ node: GlobalInfoNode | null | undefined;
39
+ editing: boolean;
40
+ modelValue: unknown;
41
+ value: unknown;
42
+ state: GlobalInfoState;
43
+ actions: GlobalInfoActions;
44
+ updateModelValue: (value: unknown) => void;
45
+ };
46
+ type __VLS_Slots = {} & {
47
+ [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
48
+ } & {
49
+ [K in NonNullable<typeof __VLS_22>]?: (props: typeof __VLS_23) => any;
50
+ } & {
51
+ [K in NonNullable<typeof __VLS_34>]?: (props: typeof __VLS_35) => any;
52
+ };
53
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
54
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
55
  declare const _default: typeof __VLS_export;
12
56
  export default _default;
57
+ type __VLS_WithSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
@@ -7,6 +7,8 @@ type __VLS_Props = {
7
7
  actions: GlobalInfoActions;
8
8
  model?: GlobalInfoRawRecord;
9
9
  onUpdateModel?: (model: GlobalInfoRawRecord) => void;
10
+ rowIndex?: number;
11
+ rows?: GlobalInfoRawRecord[];
10
12
  renderConfig?: GlobalInfoRenderConfig;
11
13
  };
12
14
  declare var __VLS_16: string, __VLS_17: {
@@ -0,0 +1,49 @@
1
+ import type { GlobalInfoActions, GlobalInfoNode, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoSection, GlobalInfoState } from '../model/types';
2
+ type __VLS_Props = {
3
+ section: GlobalInfoSection;
4
+ node?: GlobalInfoNode | null;
5
+ editing: boolean;
6
+ state: GlobalInfoState;
7
+ actions: GlobalInfoActions;
8
+ renderConfig?: GlobalInfoRenderConfig;
9
+ resolveRowSection?: (section: GlobalInfoSection, row: GlobalInfoRawRecord, rowIndex: number) => GlobalInfoSection;
10
+ onUpdateRows?: (rows: GlobalInfoRawRecord[], context: {
11
+ section: GlobalInfoSection;
12
+ rowIndex: number;
13
+ model: GlobalInfoRawRecord;
14
+ }) => void;
15
+ };
16
+ declare var __VLS_1: {
17
+ section: GlobalInfoSection;
18
+ sourceSection: GlobalInfoSection;
19
+ row: GlobalInfoRawRecord;
20
+ rowIndex: number;
21
+ editing: boolean;
22
+ state: GlobalInfoState;
23
+ actions: GlobalInfoActions;
24
+ }, __VLS_11: string, __VLS_12: {
25
+ field: import("../index.ts").GlobalInfoField;
26
+ section: GlobalInfoSection;
27
+ sectionView: GlobalInfoSection;
28
+ node: GlobalInfoNode | null | undefined;
29
+ editing: boolean;
30
+ modelValue: unknown;
31
+ value: unknown;
32
+ state: GlobalInfoState;
33
+ actions: GlobalInfoActions;
34
+ updateModelValue: (value: unknown) => void;
35
+ };
36
+ type __VLS_Slots = {} & {
37
+ [K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
38
+ } & {
39
+ itemHeader?: (props: typeof __VLS_1) => any;
40
+ };
41
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -1,9 +1,19 @@
1
1
  import type { GlobalInfoField, GlobalInfoFieldOptionsLoadOptions, GlobalInfoRawRecord } from '../model/types.js';
2
+ export type InitPreloadFetchOptions = {
3
+ sectionKey: string;
4
+ fields: GlobalInfoField[];
5
+ model: GlobalInfoRawRecord;
6
+ rowKey?: string;
7
+ getCachedPreloadKey: (key: string) => string | undefined;
8
+ setCachedPreloadKey: (key: string, value: string) => void;
9
+ loadFieldOptions: (field: GlobalInfoField, options: GlobalInfoFieldOptionsLoadOptions, value: unknown) => Promise<void> | void;
10
+ };
2
11
  export declare function isDynamicSelectField(field: GlobalInfoField): boolean;
3
- export declare function buildFieldOptionsPreloadKey(sectionKey: string, field: Pick<GlobalInfoField, 'key' | 'id' | 'code' | 'cascadeDependFields' | 'interface'>, model?: GlobalInfoRawRecord, rowKey?: string): string;
12
+ export declare function buildFieldOptionsPreloadKey(sectionKey: string, field: Pick<GlobalInfoField, 'code' | 'cascadeDependFields' | 'interface'>, model?: GlobalInfoRawRecord, rowKey?: string): string;
4
13
  export declare function shouldReuseLoadedFieldOptions(field: Pick<GlobalInfoField, 'options' | 'cascadeDependFields' | 'interface'>, cachedPreloadKey: string | undefined, currentPreloadKey: string): boolean;
5
14
  export declare function hasFieldOptionsSearchText(options?: GlobalInfoFieldOptionsLoadOptions): boolean;
6
- export declare function isFieldOptionsDependentOnChangedField(targetField: Pick<GlobalInfoField, 'cascadeDependFields' | 'interface'>, changedField: Pick<GlobalInfoField, 'key' | 'id' | 'code'>): boolean;
15
+ export declare function isFieldOptionsDependentOnChangedField(targetField: Pick<GlobalInfoField, 'cascadeDependFields' | 'interface'>, changedField: Pick<GlobalInfoField, 'code'>): boolean;
7
16
  export declare function shouldPreloadDynamicSelectField(field: GlobalInfoField, value: unknown, editing: boolean): boolean;
8
17
  export declare function resolveDynamicSelectPreloadValue(field: GlobalInfoField, model: GlobalInfoRawRecord): unknown;
9
18
  export declare function getDynamicSelectPreloadOptions(field: GlobalInfoField, value: unknown): GlobalInfoFieldOptionsLoadOptions;
19
+ export declare function initPreloadFetch(options: InitPreloadFetchOptions): Promise<void>;
@@ -4,7 +4,7 @@ export { JtButton } from './JtButton/index';
4
4
  export { JtAttachmentPreview, JtAttachmentPreviewByParams, setupJtAttachmentPreview, } from './JtAttachmentPreview/index';
5
5
  export { JtCascader, JtDatePicker, JtFormItems, JtInput, JtSelect } from './form/index';
6
6
  export { JtPageHeader } from './JtPageHeader/index';
7
- export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, useGlobalInfoController, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './globalInfo/index';
7
+ export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoLeftNav, GlobalInfoMultiFormRenderer, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, useGlobalInfoController, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoOptions, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './globalInfo/index';
8
8
  export type { JTCascaderFormItemConfig, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemCascaderOption, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JtOptionItem, } from './form/index';
9
9
  export type { JtPageHeaderOperate, JtPageHeaderProps } from './JtPageHeader/index';
10
10
  export type { JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, } from './JtAttachmentPreview/index';
@@ -4,5 +4,5 @@ import type { LocaleOptions } from './locale';
4
4
  export declare function install(app: App, options?: LocaleOptions): void;
5
5
  export { getLocale as getJtLocale, installLocale, normalizeLocale, resetLocale as resetJtLocale, setLocale as setJtLocale, } from './locale';
6
6
  export type { LocaleCode, LocaleOptions, LocaleSource, } from './locale';
7
- export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, JtAttachmentPreview, JtAttachmentPreviewByParams, JtCascader, JtButton, JtCrudTable, JtDatePicker, JtFilterBar, JtFormItems, JtInput, JtPageHeader, JtPagination, JtSelect, JtTable, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, setupJtAttachmentPreview, useGlobalInfoController, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './components/index';
7
+ export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoLeftNav, GlobalInfoMultiFormRenderer, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, JtAttachmentPreview, JtAttachmentPreviewByParams, JtCascader, JtButton, JtCrudTable, JtDatePicker, JtFilterBar, JtFormItems, JtInput, JtPageHeader, JtPagination, JtSelect, JtTable, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoOptions, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, setupJtAttachmentPreview, useGlobalInfoController, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './components/index';
8
8
  export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldHiddenContext, GlobalInfoFieldHiddenRule, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoRenderType, GlobalInfoRequiredInfoSetEmptyMessage, GlobalInfoRequiredInfoSetEmptyMessageContext, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, JTCascaderFormItemConfig, JtCrudColumn, JtCrudOption, JtDicItem, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JTFormItemCascaderOption, JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, JtOptionItem, JtPageHeaderOperate, JtPageHeaderProps, JtPaginationData, JtSearchType, } from './components/index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jt-home/mfe-components",
3
- "version": "1.0.59",
3
+ "version": "1.0.60-beta.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",