@gct-paas/word 0.2.11 → 0.2.14
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/index.es.js +2006 -1882
- package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +3 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSearchEnter.d.ts +18 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +2 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +2 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +2 -2
- package/dist/runtime/renderer/dropdowns/factories/dropdown-factory.d.ts +1 -5
- package/dist/word.css +31 -31
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FIELD_TYPE } from '../../../../domain/field/field-type';
|
|
2
2
|
import { ParseRules } from '../../../../suites/shared/panel/config/editor/qrcode-parse-editor/types';
|
|
3
|
+
import { ParseRuleConfig } from '../../../../suites/shared/panel/config/editor/qrcode-parse-editor/utils';
|
|
3
4
|
export type DeviceScanFieldInfo = {
|
|
4
5
|
key: string;
|
|
5
6
|
modelKey: string;
|
|
@@ -21,6 +22,8 @@ export type DeviceScanSubmitResult = {
|
|
|
21
22
|
ok: false;
|
|
22
23
|
message: string;
|
|
23
24
|
};
|
|
25
|
+
export declare function getRuleCodeByFieldType(parsed: Record<string, any>, config: ParseRuleConfig | undefined, fieldType?: FIELD_TYPE): string | undefined;
|
|
26
|
+
export declare function appendFillMapPayload(payload: Record<string, any>, parsed: Record<string, any>, parseRules: ParseRules | undefined, runtimeValuePath: string): void;
|
|
24
27
|
/** 解析条码、校验设备编码、查询设备并生成写入 payload */
|
|
25
28
|
export declare function submitDeviceScan(params: DeviceScanSubmitParams): Promise<DeviceScanSubmitResult>;
|
|
26
29
|
export declare function showDeviceScanError(message: string): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { FIELD_TYPE } from '../../../../../../domain/field/field-type';
|
|
3
|
+
import { RuleParseData } from '../../../../../../suites/shared/panel/config/editor/qrcode-parse-editor/utils';
|
|
4
|
+
import { ParseRules } from '../../../../../../suites/shared/panel/config/editor/qrcode-parse-editor/types';
|
|
5
|
+
import { FetcherResult } from './useSelectTable';
|
|
6
|
+
/** 防抖查询与回车查询共用关键词,但只有回车确认的最新结果可以自动回填。 */
|
|
7
|
+
export declare function useSearchEnter(options: {
|
|
8
|
+
keyword: Ref<string | undefined>;
|
|
9
|
+
filters?: () => unknown;
|
|
10
|
+
search: () => Promise<FetcherResult>;
|
|
11
|
+
fetchByCode: (code: string) => Promise<FetcherResult>;
|
|
12
|
+
parseRules: () => ParseRules | undefined;
|
|
13
|
+
fieldType: () => FIELD_TYPE | undefined;
|
|
14
|
+
select: (row: any, parsed?: RuleParseData) => unknown;
|
|
15
|
+
}): {
|
|
16
|
+
onSearchEnter: (event: KeyboardEvent) => Promise<void>;
|
|
17
|
+
scheduleSearch: import('lodash-es').DebouncedFunc<() => void>;
|
|
18
|
+
};
|
|
@@ -4,11 +4,12 @@ export interface TableDropdownSearchFilters {
|
|
|
4
4
|
deviceTypeId?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function useTableDropdown(props: any, searchFilters?: MaybeRef<TableDropdownSearchFilters | undefined>): {
|
|
7
|
-
fetcher: ({ keyword, pageNo, pageSize, deviceTypeId, }: {
|
|
7
|
+
fetcher: ({ keyword, pageNo, pageSize, deviceTypeId, exactCode, }: {
|
|
8
8
|
keyword?: string;
|
|
9
9
|
pageNo: number;
|
|
10
10
|
pageSize: number;
|
|
11
11
|
deviceTypeId?: string;
|
|
12
|
+
exactCode?: string;
|
|
12
13
|
}) => Promise<FetcherResult>;
|
|
13
14
|
columns: import('vue').ComputedRef<any>;
|
|
14
15
|
fieldInfo: import('vue').ComputedRef<import('../../../../../../capabilities/model-field-runtime').FieldMeta | null>;
|
|
@@ -16,7 +16,7 @@ type __VLS_Props = {
|
|
|
16
16
|
hasNextPage: boolean;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
-
search: () => any;
|
|
19
|
+
search: (event: KeyboardEvent) => any;
|
|
20
20
|
clear: () => any;
|
|
21
21
|
"load-more": () => any;
|
|
22
22
|
"change-select": (row: any) => any;
|
|
@@ -24,7 +24,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
24
24
|
"manual-input": () => any;
|
|
25
25
|
"device-type-change": (value?: string | undefined) => any;
|
|
26
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
onSearch?: (() => any) | undefined;
|
|
27
|
+
onSearch?: ((event: KeyboardEvent) => any) | undefined;
|
|
28
28
|
onClear?: (() => any) | undefined;
|
|
29
29
|
"onLoad-more"?: (() => any) | undefined;
|
|
30
30
|
"onChange-select"?: ((row: any) => any) | undefined;
|
|
@@ -22,8 +22,4 @@ export interface DropdownOverlayActionConfig {
|
|
|
22
22
|
/**
|
|
23
23
|
* 统一获取 overlay action 配置(icon + 行为 + 对应 body)
|
|
24
24
|
*/
|
|
25
|
-
export declare function getDropdownOverlayActionConfig(type: ExternalComponentType
|
|
26
|
-
enableScan?: boolean;
|
|
27
|
-
hasParseRules?: boolean;
|
|
28
|
-
scanMode?: boolean;
|
|
29
|
-
}): DropdownOverlayActionConfig;
|
|
25
|
+
export declare function getDropdownOverlayActionConfig(type: ExternalComponentType): DropdownOverlayActionConfig;
|