@gct-paas/word 0.2.27-beta.3 → 0.2.27
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/assets/svgs/table/index.d.ts +0 -1
- package/dist/base/input/src/input-number.vue.d.ts +0 -1
- package/dist/base/message/src/Message.vue.d.ts +0 -2
- package/dist/base/message/src/message.d.ts +0 -2
- package/dist/base/modal/src/modal.type.d.ts +1 -3
- package/dist/base/select/src/basic-select.vue.d.ts +4 -16
- package/dist/base/utils/image-size-util.d.ts +6 -12
- package/dist/capabilities/model-field-runtime/types/field.d.ts +0 -4
- package/dist/core/command/commands/DeleteCol.d.ts +1 -1
- package/dist/core/command/commands/DeleteRow.d.ts +1 -1
- package/dist/core/command/commands/InsertTable.d.ts +1 -0
- package/dist/core/command/types.d.ts +0 -16
- package/dist/core/data/DataManager.d.ts +1 -6
- package/dist/core/data/types/runtime-config.d.ts +0 -13
- package/dist/core/event/handlers/IMEHandler.d.ts +0 -1
- package/dist/core/index.d.ts +0 -2
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -4
- package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +1 -37
- package/dist/core/model/overlays/Wlayout.d.ts +0 -4
- package/dist/core/view/Doc.d.ts +0 -5
- package/dist/core/widget/types.d.ts +2 -2
- package/dist/domain/active/active-types.d.ts +1 -3
- package/dist/domain/field/field-props-schema-type.d.ts +1 -1
- package/dist/domain/field/field-type.d.ts +2 -74
- package/dist/domain/field/form-value.d.ts +0 -6
- package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/material/types.d.ts +1 -2
- package/dist/domain/table/design/sub-model-matcher.d.ts +0 -2
- package/dist/domain/table/index.d.ts +0 -3
- package/dist/domain/table/registry.d.ts +2 -5
- package/dist/domain/table/runtime/table-runtime.d.ts +0 -3
- package/dist/domain/table/types.d.ts +3 -13
- package/dist/index.es.js +6677 -32391
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +2 -10
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +0 -6
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/interface/render.d.ts +1 -2
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +1 -54
- package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +0 -1
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +0 -1
- package/dist/runtime/validation/layout.d.ts +0 -20
- package/dist/runtime/validation/state.d.ts +3 -7
- package/dist/runtime/validation/useFormValidator.d.ts +0 -4
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +1 -1
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +0 -5
- package/dist/sdk/engine/index.d.ts +1 -2
- package/dist/sdk/setup.d.ts +0 -6
- package/dist/sdk/types/index.d.ts +0 -8
- package/dist/sdk/vue/index.d.ts +0 -6
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -3
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +5 -6
- package/dist/suites/edhr/panel-schema/index.d.ts +0 -1
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +3 -8
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -3
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -12
- package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +0 -1
- package/dist/utils/adapters/ServiceUtil.d.ts +0 -9
- package/dist/word.css +532 -1348
- package/package.json +4 -4
- package/dist/core/command/base/FloatingFieldCommand.d.ts +0 -9
- package/dist/core/command/commands/InsertFloatingField.d.ts +0 -9
- package/dist/core/command/commands/MoveFloatingField.d.ts +0 -10
- package/dist/core/command/commands/RemoveFloatingField.d.ts +0 -12
- package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +0 -19
- package/dist/core/data/enrichers/udi-enricher.d.ts +0 -23
- package/dist/core/data/formula/business-functions.d.ts +0 -10
- package/dist/core/data/formula/formula-params-cache.d.ts +0 -15
- package/dist/core/runtime/DocumentRuntimeManager.d.ts +0 -38
- package/dist/domain/document-business/business/product-release/profile.d.ts +0 -2
- package/dist/domain/document-business/business/product-release/service.d.ts +0 -2
- package/dist/domain/document-business/index.d.ts +0 -2
- package/dist/domain/document-business/registry.d.ts +0 -2
- package/dist/domain/document-business/runtime/field-query-runtime.d.ts +0 -4
- package/dist/domain/document-business/types.d.ts +0 -24
- package/dist/domain/document-rule/index.d.ts +0 -3
- package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +0 -13
- package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +0 -19
- package/dist/domain/document-rule/types.d.ts +0 -50
- package/dist/domain/field/query-filter.d.ts +0 -15
- package/dist/domain/field/seal/seal-binding.d.ts +0 -19
- package/dist/domain/field/seal/seal-display.d.ts +0 -34
- package/dist/domain/field/seal/seal-value.d.ts +0 -39
- package/dist/domain/table/business/device/maintenance/index.d.ts +0 -1
- package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +0 -9
- package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/device/maintenance/profile/index.d.ts +0 -3
- package/dist/domain/table/business/device/point-inspection/index.d.ts +0 -1
- package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +0 -9
- package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +0 -3
- package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +0 -13
- package/dist/domain/table/business/device/signature-lock.d.ts +0 -26
- package/dist/domain/table/business/material/material-consume/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +0 -3
- package/dist/domain/table/business/material/material-substitution/index.d.ts +0 -3
- package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +0 -41
- package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +0 -4
- package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +0 -1
- package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -6
- package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +0 -3
- package/dist/domain/table/design/validate-nested-table-insert.d.ts +0 -3
- package/dist/domain/table/runtime/option-fill-updates.d.ts +0 -6
- package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +0 -10
- package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +0 -6
- package/dist/runtime/interface/sterilization-date.d.ts +0 -9
- package/dist/runtime/interface/validate-designer-default.d.ts +0 -5
- package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +0 -5
- package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +0 -2
- package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +0 -3
- package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +0 -17
- package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +0 -7
- package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +0 -30
- package/dist/runtime/renderer/dialogs/seal/types.d.ts +0 -17
- package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +0 -27
- package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +0 -27
- package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +0 -30
- package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +0 -29
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +0 -17
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useMaterialSubstitutionSource.d.ts +0 -7
- package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +0 -3
- package/dist/sdk/doc-runtime/factories/runtime-data-sources.d.ts +0 -35
- package/dist/sdk/doc-runtime/factories/value-change-data-sources.d.ts +0 -5
- package/dist/sdk/doc-runtime/queries/template-placed-fields.d.ts +0 -7
- package/dist/sdk/types/placed-form-field.d.ts +0 -6
- package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +0 -7
- package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/business/product-release-qty-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +0 -1
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +0 -19
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +0 -16
- package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +0 -11
- package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +0 -8
- package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +0 -34
- package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +0 -3
- package/dist/utils/pdf/collect-seal-draw-ops.d.ts +0 -4
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type TablePathNode = {
|
|
2
|
-
component?: string;
|
|
3
|
-
};
|
|
4
|
-
/** 布局路径按外到内排列,右键操作应定位命中位置所属的最内层表格。 */
|
|
5
|
-
export declare function resolveInnermostTableContext<T extends TablePathNode>(nodes: readonly (T | undefined)[]): {
|
|
6
|
-
table?: T;
|
|
7
|
-
tableRow?: T;
|
|
8
|
-
tableCell?: T;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { OverlayLayout } from '../../../core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
widget: OverlayLayout;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: 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>;
|
|
6
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FieldDataBindingMeta } from '../../core/widget';
|
|
2
|
-
type FieldInstance = {
|
|
3
|
-
widgetMeta?: {
|
|
4
|
-
field?: FieldDataBindingMeta;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
/** 用 detail 返回的交易实例查询灭菌日期,首次加载时仅补齐主、子表字段的空值。 */
|
|
8
|
-
export declare function fillSterilizationDate(txnInstId: string | undefined, instances: FieldInstance[], rawData: Record<string, unknown>): Promise<void>;
|
|
9
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FieldDataBindingMeta } from '../../core/widget';
|
|
2
|
-
import { FieldMeta } from '../../capabilities/model-field-runtime';
|
|
3
|
-
import { ApiRule } from '../../domain/field/field-props-schema-type';
|
|
4
|
-
/** 每次文档初始化独立去重;只检查设计默认值,不写 rawData 或模板配置。 */
|
|
5
|
-
export declare function createDesignerDefaultValidator(loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>): (field: FieldDataBindingMeta, rule: ApiRule, value: string) => Promise<boolean>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
message: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { api } from '../../../../utils/adapters/api';
|
|
2
|
-
export interface SealDetail {
|
|
3
|
-
id?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
code?: string;
|
|
6
|
-
sealImage?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const sealRequestConfig: NonNullable<Parameters<typeof api.platform.sealManagement.getInfo>[1]> & {
|
|
9
|
-
errorMessageMode: 'none';
|
|
10
|
-
};
|
|
11
|
-
export declare const getSealDetail: (id: string) => Promise<SealDetail>;
|
|
12
|
-
export declare const verifySealPassword: (request: {
|
|
13
|
-
id: string;
|
|
14
|
-
password: string;
|
|
15
|
-
}) => Promise<boolean>;
|
|
16
|
-
export declare const getSealUserTime: () => string;
|
|
17
|
-
export declare function isValidSealDetail(detail: SealDetail, id: string): boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ConfirmResult, SealStepContext } from './types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
context: SealStepContext;
|
|
4
|
-
onResult(result: ConfirmResult): void;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Doc } from '../../../../core/view/Doc';
|
|
2
|
-
import { SealFieldEntry } from '../../../../domain/field/seal/seal-binding';
|
|
3
|
-
import { SealPosition } from '../../../../domain/field/seal/seal-value';
|
|
4
|
-
export declare function sealPermissions(doc: Doc, entry: SealFieldEntry): {
|
|
5
|
-
canMove: boolean;
|
|
6
|
-
canStamp: boolean;
|
|
7
|
-
};
|
|
8
|
-
/** The flow belongs to the field, not to a layout component that is recreated after a move. */
|
|
9
|
-
export declare class SealRuntime {
|
|
10
|
-
private doc;
|
|
11
|
-
private initializeField?;
|
|
12
|
-
private pending;
|
|
13
|
-
private busy;
|
|
14
|
-
private disposed;
|
|
15
|
-
private epoch;
|
|
16
|
-
private off;
|
|
17
|
-
constructor(doc: Doc, initializeField?: ((field: SealFieldEntry["field"]) => void) | undefined);
|
|
18
|
-
onInit(): Promise<void>;
|
|
19
|
-
onHydrate(): void;
|
|
20
|
-
onFieldChanges(): void;
|
|
21
|
-
private prune;
|
|
22
|
-
private cancel;
|
|
23
|
-
destroy(): void;
|
|
24
|
-
private entry;
|
|
25
|
-
isBusy(id: string): boolean;
|
|
26
|
-
stamp(id: string): Promise<void>;
|
|
27
|
-
clear(id: string): void;
|
|
28
|
-
move(id: string, position: SealPosition): void;
|
|
29
|
-
}
|
|
30
|
-
export declare function getSealRuntime(doc: Doc, initializeField?: (field: SealFieldEntry['field']) => void): SealRuntime;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SealStamp } from '../../../../domain/field/seal/seal-value';
|
|
2
|
-
export type SealUser = Pick<SealStamp, 'sealUserId' | 'sealUserName'>;
|
|
3
|
-
export interface SealFlowContext {
|
|
4
|
-
sealId: string;
|
|
5
|
-
getCurrentUser(): SealUser;
|
|
6
|
-
signal?: AbortSignal;
|
|
7
|
-
isActive(): boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface SealStepContext extends SealFlowContext {
|
|
10
|
-
registerInvalidate(invalidate: () => void): void;
|
|
11
|
-
}
|
|
12
|
-
export type ConfirmResult = {
|
|
13
|
-
action: 'done';
|
|
14
|
-
stamp: SealStamp;
|
|
15
|
-
} | {
|
|
16
|
-
action: 'cancel';
|
|
17
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SealStamp } from '../../../../domain/field/seal/seal-value';
|
|
2
|
-
import { SealDetail } from './seal-api';
|
|
3
|
-
import { SealUser } from './types';
|
|
4
|
-
export interface SealConfirmDependencies {
|
|
5
|
-
sealId: string;
|
|
6
|
-
getCurrentUser(): SealUser;
|
|
7
|
-
isActive(): boolean;
|
|
8
|
-
fetchDetail(id: string): Promise<SealDetail>;
|
|
9
|
-
verifyPassword(request: {
|
|
10
|
-
id: string;
|
|
11
|
-
password: string;
|
|
12
|
-
}): Promise<boolean>;
|
|
13
|
-
now(): string;
|
|
14
|
-
}
|
|
15
|
-
export declare function useSealConfirm(deps: SealConfirmDependencies): {
|
|
16
|
-
detail: import('vue').Ref<SealDetail | undefined, SealDetail | undefined>;
|
|
17
|
-
loading: import('vue').Ref<boolean, boolean>;
|
|
18
|
-
submitting: import('vue').Ref<boolean, boolean>;
|
|
19
|
-
password: import('vue').Ref<string, string>;
|
|
20
|
-
passwordStatus: import('vue').Ref<"idle" | "invalid" | "validating" | "valid", "idle" | "invalid" | "validating" | "valid">;
|
|
21
|
-
passwordError: import('vue').Ref<string, string>;
|
|
22
|
-
error: import('vue').Ref<string, string>;
|
|
23
|
-
loadDetail: () => Promise<void>;
|
|
24
|
-
validatePassword: () => Promise<boolean>;
|
|
25
|
-
confirm: () => Promise<SealStamp | undefined>;
|
|
26
|
-
dispose: () => void;
|
|
27
|
-
};
|
package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AuthenticationState } from './types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
defaultLoginAccount?: string;
|
|
4
|
-
enableSignPassword?: number;
|
|
5
|
-
imageDirection?: string;
|
|
6
|
-
showForm?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
submitCard: (code: string) => Promise<void>;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
-
authenticatePassword(): Promise<import('./types').AuthenticationAttempt | undefined>;
|
|
12
|
-
authenticateCard(code: string): Promise<import('./types').AuthenticationAttempt>;
|
|
13
|
-
hasInput(): boolean;
|
|
14
|
-
reset(): void;
|
|
15
|
-
invalidate(): void;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
-
"state-change": (state: AuthenticationState) => any;
|
|
18
|
-
"card-complete": () => any;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
-
"onState-change"?: ((state: AuthenticationState) => any) | undefined;
|
|
21
|
-
"onCard-complete"?: (() => any) | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
enableSignPassword: number;
|
|
25
|
-
showForm: boolean;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { SignInfo } from '../logic';
|
|
2
|
-
export type AuthenticationMethod = 'PASSWORD' | 'CARD';
|
|
3
|
-
export type AuthenticationCardStatus = 'waiting' | 'success' | 'warning' | 'error';
|
|
4
|
-
export interface AuthenticationAttempt {
|
|
5
|
-
info: SignInfo;
|
|
6
|
-
/** Recheck after asynchronous business validation, before committing. */
|
|
7
|
-
isCurrent(): boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface AuthenticationOptions {
|
|
10
|
-
defaultLoginAccount(): string | undefined;
|
|
11
|
-
enableSignPassword(): number;
|
|
12
|
-
imageDirection(): string | undefined;
|
|
13
|
-
isActive?: () => boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface AuthenticationExpose {
|
|
16
|
-
authenticatePassword(): Promise<AuthenticationAttempt | undefined>;
|
|
17
|
-
authenticateCard(code: string): Promise<AuthenticationAttempt>;
|
|
18
|
-
hasInput(): boolean;
|
|
19
|
-
reset(): void;
|
|
20
|
-
invalidate(): void;
|
|
21
|
-
}
|
|
22
|
-
export interface AuthenticationState {
|
|
23
|
-
ready: boolean;
|
|
24
|
-
loading: boolean;
|
|
25
|
-
method: AuthenticationMethod | '';
|
|
26
|
-
cardStatus: AuthenticationCardStatus;
|
|
27
|
-
}
|
|
28
|
-
export declare class AuthenticationCancelled extends Error {
|
|
29
|
-
constructor();
|
|
30
|
-
}
|
package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AuthenticationAttempt, AuthenticationMethod, AuthenticationOptions } from './types';
|
|
2
|
-
type Field = 'username' | 'password';
|
|
3
|
-
export declare function useSignatureAuthentication(options: AuthenticationOptions): {
|
|
4
|
-
formState: {
|
|
5
|
-
username?: string | undefined;
|
|
6
|
-
password?: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
errors: {
|
|
9
|
-
password: string;
|
|
10
|
-
username: string;
|
|
11
|
-
};
|
|
12
|
-
methods: import('vue').ComputedRef<("CARD" | "PASSWORD")[]>;
|
|
13
|
-
signMethod: import('vue').Ref<"" | AuthenticationMethod, "" | AuthenticationMethod>;
|
|
14
|
-
signWay: import('vue').ComputedRef<{
|
|
15
|
-
label: string;
|
|
16
|
-
type: string;
|
|
17
|
-
}>;
|
|
18
|
-
configLoading: import('vue').Ref<boolean, boolean>;
|
|
19
|
-
configError: import('vue').Ref<string, string>;
|
|
20
|
-
busy: import('vue').Ref<boolean, boolean>;
|
|
21
|
-
ready: import('vue').ComputedRef<boolean>;
|
|
22
|
-
authenticatePassword: () => Promise<AuthenticationAttempt | undefined>;
|
|
23
|
-
authenticateCard: (code: string) => Promise<AuthenticationAttempt>;
|
|
24
|
-
validateField: (field: Field) => Promise<void>;
|
|
25
|
-
hasInput: () => boolean;
|
|
26
|
-
reset: () => void;
|
|
27
|
-
invalidate: () => void;
|
|
28
|
-
};
|
|
29
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const materialConsumeHistoryColumns: ({
|
|
2
|
-
field: string;
|
|
3
|
-
type: string;
|
|
4
|
-
minWidth: number;
|
|
5
|
-
width: number;
|
|
6
|
-
showOverflow: boolean;
|
|
7
|
-
} | {
|
|
8
|
-
title: string;
|
|
9
|
-
field: string;
|
|
10
|
-
minWidth: number;
|
|
11
|
-
formatter: ({ row }: any) => unknown;
|
|
12
|
-
} | {
|
|
13
|
-
title: string;
|
|
14
|
-
field: string;
|
|
15
|
-
minWidth: number;
|
|
16
|
-
formatter?: undefined;
|
|
17
|
-
})[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Doc } from '../../../../../../core';
|
|
3
|
-
/** 被替换物料仅按当前行生产批查询,未选择时阻断;仅允许 SN 查询历史消耗。 */
|
|
4
|
-
export declare function useMaterialSubstitutionSource(doc: Ref<Doc>, enabled: () => boolean, runtimeValuePath: () => string, fieldName: () => string | undefined): {
|
|
5
|
-
message: import('vue').ComputedRef<string>;
|
|
6
|
-
resolveQuery: () => Promise<Record<string, unknown> | null>;
|
|
7
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Doc } from '../../../core';
|
|
2
|
-
import { DataSourceConfig, DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
3
|
-
interface RuntimeDataSourceOptions {
|
|
4
|
-
doc: Doc;
|
|
5
|
-
canExecute: NonNullable<DataSourceManagerOptions['canExecute']>;
|
|
6
|
-
getContext: DataSourceManagerOptions['getContext'];
|
|
7
|
-
getInstanceId: DataSourceManagerOptions['getInstanceId'];
|
|
8
|
-
adapters?: DataSourceManagerOptions['adapters'];
|
|
9
|
-
}
|
|
10
|
-
/** 为单份 Word 文档绑定数源与字段填充;初始化和释放由文档生命周期调度。 */
|
|
11
|
-
export declare function createRuntimeDataSourceBinding(options: RuntimeDataSourceOptions): {
|
|
12
|
-
manager: {
|
|
13
|
-
getSources: () => DataSourceConfig[];
|
|
14
|
-
getContext: () => Record<string, unknown>;
|
|
15
|
-
canExecute: () => boolean;
|
|
16
|
-
reload: (key: string) => Promise<unknown>;
|
|
17
|
-
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
18
|
-
states: {
|
|
19
|
-
readonly [x: string]: {
|
|
20
|
-
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
21
|
-
readonly data?: Readonly<unknown> | undefined;
|
|
22
|
-
readonly error?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
|
|
26
|
-
cancel: (key: string) => boolean;
|
|
27
|
-
getResult(key: string): unknown;
|
|
28
|
-
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
29
|
-
queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
|
|
30
|
-
dispose(): void;
|
|
31
|
-
};
|
|
32
|
-
refresh: () => void | undefined;
|
|
33
|
-
dispose(): void;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Doc } from '../../../core';
|
|
2
|
-
import { DocumentRuntimeExtension } from '../../../core/runtime/DocumentRuntimeManager';
|
|
3
|
-
import { DataSourceManager } from '@gct-paas/form-base';
|
|
4
|
-
/** 只响应完成依赖计算和 enrich 后的用户编辑;hydrate 回填不会再次触发取数。 */
|
|
5
|
-
export declare function createValueChangeDataSourceRuntime(doc: Doc, manager: Pick<DataSourceManager, 'queryOnValueChange'>, canExecute: () => boolean): DocumentRuntimeExtension;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PlacedFormField } from '../../types/placed-form-field';
|
|
2
|
-
/** 从已保存的 Word 模板数据提取指定类型的拖入字段。 */
|
|
3
|
-
export declare function collectPlacedFieldsFromTemplateJson(runtimeJson: string | object | null | undefined, mainModelKey: string | undefined, fieldType: string): PlacedFormField[];
|
|
4
|
-
/** 按模板 ID 查询已保存 Word 表单中拖入的指定类型字段,无需调用 useWord。 */
|
|
5
|
-
export declare function getPlacedFieldsByType(fieldType: string, templateId: string): Promise<PlacedFormField[]>;
|
|
6
|
-
/** 按模板 ID 查询已保存 Word 表单中拖入的印章字段。 */
|
|
7
|
-
export declare function getPlacedSealFields(templateId: string): Promise<PlacedFormField[]>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ImageWidget } from '../../../core/view/runs/ImageWidget';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
widget: ImageWidget;
|
|
4
|
-
modelId?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: 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>;
|
|
7
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const schema: import('../../../..').PanelSchema;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DecisionRuleCondition } from '../types';
|
|
2
|
-
import { DecisionRuleFieldOption } from '../utils/decision-rule';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
condition: DecisionRuleCondition;
|
|
5
|
-
fields: DecisionRuleFieldOption[];
|
|
6
|
-
usedFieldValues: string[];
|
|
7
|
-
removable: boolean;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
-
remove: () => any;
|
|
12
|
-
add: () => any;
|
|
13
|
-
change: () => any;
|
|
14
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onRemove?: (() => any) | undefined;
|
|
16
|
-
onAdd?: (() => any) | undefined;
|
|
17
|
-
onChange?: (() => any) | undefined;
|
|
18
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DecisionRuleGroup } from '../types';
|
|
2
|
-
import { DecisionRuleFieldOption } from '../utils/decision-rule';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
group: DecisionRuleGroup;
|
|
5
|
-
fields: DecisionRuleFieldOption[];
|
|
6
|
-
usedFieldValues: string[];
|
|
7
|
-
invalidKeys: Set<string>;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
-
remove: () => any;
|
|
11
|
-
change: () => any;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
-
onRemove?: (() => any) | undefined;
|
|
14
|
-
onChange?: (() => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Doc } from '../../../../../core';
|
|
2
|
-
import { InspectionDecisionRule } from '../types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
item: InspectionDecisionRule;
|
|
5
|
-
doc: Doc;
|
|
6
|
-
};
|
|
7
|
-
declare function onSave(): Promise<InspectionDecisionRule | null>;
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
-
onSave: typeof onSave;
|
|
10
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Doc } from '../../../../../core';
|
|
2
|
-
import { InspectionDecisionRule } from '../types';
|
|
3
|
-
interface InspectionDecisionModalContext {
|
|
4
|
-
item: InspectionDecisionRule;
|
|
5
|
-
doc: Doc;
|
|
6
|
-
}
|
|
7
|
-
export declare function openInspectionDecisionModal(ctx: InspectionDecisionModalContext): Promise<InspectionDecisionRule | null>;
|
|
8
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Doc } from '../../../../../core';
|
|
2
|
-
import { DecisionRuleCondition, DecisionRuleField, DecisionRuleGroup, DecisionRuleRightValue, InspectionDecisionRule } from '../types';
|
|
3
|
-
export declare const DECISION_RULE_FIELD_TYPES: Set<string>;
|
|
4
|
-
export declare const NUMBER_DECISION_FIELD_TYPES: Set<string>;
|
|
5
|
-
export declare const DECISION_RULE_OPERATORS: Record<'number' | 'enum' | 'boolean', Array<{
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}>>;
|
|
9
|
-
export interface DecisionRuleFieldOption extends DecisionRuleField {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
group: string;
|
|
13
|
-
icon?: string;
|
|
14
|
-
iconVersion?: 'v1' | 'v2';
|
|
15
|
-
}
|
|
16
|
-
/** 从编辑态字段选项中提取判定规则需要保存的字段信息。 */
|
|
17
|
-
export declare function toStoredDecisionRuleField(field: DecisionRuleField): DecisionRuleField;
|
|
18
|
-
/** 拉取并整理主表、子表、对象字段。 */
|
|
19
|
-
export declare function resolveDecisionRuleFields(doc: Doc): Promise<DecisionRuleFieldOption[]>;
|
|
20
|
-
export declare function getDecisionRuleOperators(type?: string): {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}[];
|
|
24
|
-
export declare function areDecisionFieldsCompatible(left?: DecisionRuleField, right?: DecisionRuleField): boolean;
|
|
25
|
-
export declare function createDecisionRuleCondition(pid: string, level: number): DecisionRuleCondition;
|
|
26
|
-
export declare function createDecisionRuleGroup(pid?: string, level?: number, withCondition?: boolean): DecisionRuleGroup;
|
|
27
|
-
export declare function parseDecisionRuleTree(dataRuleConfig?: string): DecisionRuleGroup;
|
|
28
|
-
/** 用最新元数据补齐历史 DataRulesContainer 配置缺少的 scope / 字段右值信息。 */
|
|
29
|
-
export declare function hydrateDecisionRuleTreeFields(root: DecisionRuleGroup, fields: DecisionRuleFieldOption[]): void;
|
|
30
|
-
export declare function getConditionQueryKey(condition: DecisionRuleCondition): string;
|
|
31
|
-
export declare function hasDecisionRuleValue(value?: DecisionRuleRightValue): boolean;
|
|
32
|
-
export declare function validateDecisionRuleTree(root: DecisionRuleGroup): Set<string>;
|
|
33
|
-
/** 生成与 DataRulesContainer 一致的条件查询数据。 */
|
|
34
|
-
export declare function serializeDecisionRule(root: DecisionRuleGroup, prompt: string, enabled?: boolean): InspectionDecisionRule;
|