@guodun/antdv 1.7.7 → 1.7.9
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/es/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.vue.mjs +132 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +209 -246
- package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +395 -325
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +1047 -1015
- package/dist/es/components/pro-contract-template-designer/src/composables/use-auto-pagination.mjs +122 -63
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +192 -162
- package/dist/es/components/pro-contract-template-designer/src/extensions/template-variable.mjs +70 -68
- package/dist/es/components/pro-contract-template-designer/src/utils/advanced-controls.mjs +63 -25
- package/dist/es/components/pro-contract-template-designer/src/utils/caret-viewport.mjs +41 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +129 -75
- package/dist/es/components/pro-contract-template-designer/src/utils/template-variable-render.mjs +17 -5
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/index.mjs +22 -22
- package/dist/es/node_modules/@tiptap/pm/dist/transform/index.mjs +1 -0
- package/dist/es/node_modules/prosemirror-transform/dist/index.mjs +161 -67
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +1 -2
- package/dist/lib/components/pro-contract-template-designer/src/DesignerPage.vue.cjs +2 -2
- package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-auto-pagination.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +4 -4
- package/dist/lib/components/pro-contract-template-designer/src/extensions/template-variable.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/advanced-controls.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/caret-viewport.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +3 -3
- package/dist/lib/components/pro-contract-template-designer/src/utils/template-variable-render.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/node_modules/@tiptap/pm/dist/transform/index.cjs +1 -0
- package/dist/lib/node_modules/prosemirror-transform/dist/index.cjs +2 -2
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.vue.d.ts +12 -0
- package/dist/types/components/pro-contract-template-designer/src/DesignerPage.vue.d.ts +14 -0
- package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +2 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-auto-pagination.d.ts +17 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +5 -1
- package/dist/types/components/pro-contract-template-designer/src/types.d.ts +15 -2
- package/dist/types/components/pro-contract-template-designer/src/utils/advanced-controls.d.ts +10 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/caret-viewport.d.ts +18 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/template-variable-render.d.ts +7 -0
- package/package.json +5 -5
- package/dist/theme/dept-selector.css +0 -1
- package/dist/theme/pro-selector-group.css +0 -1
- package/dist/theme/role-selector.css +0 -1
package/dist/es/index.mjs
CHANGED
|
@@ -60,25 +60,25 @@ import { MAX_SIGNING_MARK_DIMENSION as qe, MIN_SIGNING_MARK_DIMENSION as Je, SIG
|
|
|
60
60
|
import { CONTRACT_TEXT_STYLE_PRESETS as st, CONTRACT_TEXT_STYLE_PRESET_COMMANDS as ct, DEFAULT_CONTRACT_FONT_FAMILY as lt, DEFAULT_FONT_FAMILY_OPTIONS as ut, DEFAULT_FONT_SIZE_PRESETS as dt, DEFAULT_TEXT_ALIGN_OPTIONS as ft, getContractTextStylePreset as pt, normalizeFontFamilyValue as mt, resolveContractTextStylePresetCommands as ht, resolveFontFamilyOptions as gt } from "./components/pro-contract-template-designer/src/constants.mjs";
|
|
61
61
|
import { CONTRACT_SIGNING_RENDER_ORIGIN_OFFSET as _t, CONTRACT_SIGNING_SNAP_THRESHOLD_PX as vt, canResizeContractSigningPlacement as yt, clampContractSigningPlacement as bt, clampContractSigningZoom as xt, displayPointToContractPoint as St, getContractSigningPlacementDistances as Ct, getContractSigningPlacementSize as wt, getContractSigningRuleGeometry as Tt, moveContractSigningPlacementByDisplayDelta as Et, normalizeContractSigningCoordinateDimension as Dt, normalizeContractSigningCoordinateScale as Ot, resizeContractSigningSealGeometry as kt, resolveContractSigningSealSizeLimit as At, resolveContractSigningSizeProfile as jt, snapContractSigningPlacement as Mt } from "./components/contract-signing-location/src/coordinates.mjs";
|
|
62
62
|
import { isContractTemplateAdvancedChoiceFieldType as Nt, isContractTemplateBuiltinSelectorFieldType as Pt, isContractTemplateFieldType as Ft } from "./components/pro-contract-template-designer/src/types.mjs";
|
|
63
|
-
import {
|
|
64
|
-
import { ALL_DEFAULT_FIELD_TYPES as
|
|
65
|
-
import { isSafeContractImageUrl as
|
|
66
|
-
import { buildInitialRenderValues as
|
|
67
|
-
import { buildContractSigningTemplateRenderPages as
|
|
68
|
-
import { ContractSigningLocationBuildError as
|
|
69
|
-
import { CONTRACT_SIGNING_FALLBACK_PAGE_SIZE as
|
|
70
|
-
import { formatContractSigningDate as
|
|
71
|
-
import
|
|
72
|
-
import { DEFAULT_CONTRACT_IMAGE_COMPRESSION as
|
|
73
|
-
import { CUSTOM_SIGNING_LAYOUT as
|
|
74
|
-
import { CONTRACT_TEMPLATE_DRAFT_CACHE_VERSION as
|
|
75
|
-
import { cloneContractTemplateFiles as
|
|
76
|
-
import
|
|
77
|
-
import { CONTRACT_SIGNING_FLOW_ACTION_LABELS as
|
|
78
|
-
import { buildConnectList as
|
|
79
|
-
import
|
|
80
|
-
import { useContractTemplateAgent as
|
|
81
|
-
import { adaptContractTemplateAgentSpec as
|
|
82
|
-
import
|
|
83
|
-
import { setupAppConfig as
|
|
84
|
-
export { Kt as ALL_DEFAULT_FIELD_TYPES, we as CONTRACT_PRINT_FONT_UNCONFIGURED_MESSAGE, Oe as CONTRACT_SIGNING_AUTO_SCROLL_EDGE_PX, ke as CONTRACT_SIGNING_CSS_PX_PER_POINT, pr as CONTRACT_SIGNING_FALLBACK_PAGE_SIZE, Ui as CONTRACT_SIGNING_FLOW_ACTION_LABELS, Wi as CONTRACT_SIGNING_FLOW_IDENTITY_OPTIONS, Gi as CONTRACT_SIGNING_FLOW_MAX_ZOOM, Ki as CONTRACT_SIGNING_FLOW_MIN_ZOOM, qi as CONTRACT_SIGNING_FLOW_SEAL_TYPES, Ji as CONTRACT_SIGNING_FLOW_SIGN_ACTIONS, Yi as CONTRACT_SIGNING_FLOW_ZOOM_STEP, Ae as CONTRACT_SIGNING_MIN_PLACEMENT_SIZE, mr as CONTRACT_SIGNING_PAGE_GAP, je as CONTRACT_SIGNING_PLACEMENT_LABELS, Me as CONTRACT_SIGNING_PLACEMENT_MIME, Ne as CONTRACT_SIGNING_PREVIEW_CONCURRENCY, Pe as CONTRACT_SIGNING_PX_PER_MM, _t as CONTRACT_SIGNING_RENDER_ORIGIN_OFFSET, Fe as CONTRACT_SIGNING_SEAL_MAX_SIZE, Ie as CONTRACT_SIGNING_SEAL_MIN_SIZE, Le as CONTRACT_SIGNING_SEAL_TYPE_OPTIONS, Re as CONTRACT_SIGNING_SEAL_TYPE_PRESETS, ze as CONTRACT_SIGNING_SIZE_PROFILES, vt as CONTRACT_SIGNING_SNAP_THRESHOLD_PX, hr as CONTRACT_SIGNING_VIRTUAL_BUFFER_PAGES, Be as CONTRACT_SIGNING_VISIBLE_PAGES_DEBOUNCE_MS, hi as CONTRACT_TEMPLATE_DRAFT_CACHE_VERSION, gi as CONTRACT_TEMPLATE_FILES_DRAFT_CACHE_VERSION, qt as CONTRACT_TEMPLATE_RENDERER_VERSION, Jt as CONTRACT_TEMPLATE_RESERVED_VARIABLE_KEYS, Yt as CONTRACT_TEMPLATE_STYLE_VERSION, Xt as CONTRACT_TEMPLATE_VARIABLE_KEY_PATTERN, st as CONTRACT_TEXT_STYLE_PRESETS, ct as CONTRACT_TEXT_STYLE_PRESET_COMMANDS, Yr as CUSTOM_SIGNING_LAYOUT, Qn as ContractSigningLocationBuildError, Zt as ContractTemplatePageDecorationValidationError, u as CoverScrollbarProps, Qt as DEFAULT_ADVANCED_CHOICE_FIELD_TYPES, $t as DEFAULT_BUILTIN_SELECTOR_FIELD_TYPES, lt as DEFAULT_CONTRACT_FONT_FAMILY, zr as DEFAULT_CONTRACT_IMAGE_COMPRESSION, en as DEFAULT_CUSTOM_FIELD_TYPES, _i as DEFAULT_DRAFT_CACHE_INTERVAL, vi as DEFAULT_DRAFT_CACHE_KEY, yi as DEFAULT_DRAFT_CACHE_MAX_BYTES, tn as DEFAULT_FIELD_STYLE, nn as DEFAULT_FIELD_TYPES, ut as DEFAULT_FONT_FAMILY_OPTIONS, dt as DEFAULT_FONT_SIZE_PRESETS, rn as DEFAULT_MULTILINE_LINE_HEIGHT, an as DEFAULT_MULTILINE_ROWS, on as DEFAULT_PAGE_SIZE, ft as DEFAULT_TEXT_ALIGN_OPTIONS, Se as DRAWER_SIZE_WIDTH, Xr as DUAL_PARTY_SIGNING_LAYOUT, fe as FORM_RENDER_CONTEXT_KEY, pe as FormItemProps, me as FormRenderProps, ne as GET_DEPT_TREE_URL, J as GTE_OPTIONS_URL, M as GTE_ORGTREE_URL, t as GdAntCollapseTranstion, Rr as GdAntContractSigningLocation, d as GdAntCoverScrollBar, ae as GdAntDeptSelector, T as GdAntIcon, A as GdAntPlusUpload, b as GdAntProArea, _e as GdAntProCell, ve as GdAntProCellGroup, da as GdAntProContractSigningFlow, ha as GdAntProContractTemplateAgentPanel, ga as GdAntProContractTemplateAgentPreview, ma as GdAntProContractTemplateAgentWorkbench, Vi as GdAntProContractTemplateDesigner, Hi as GdAntProContractTemplateRenderer, Ce as GdAntProDrawer, xe as GdAntProDynamicTags, he as GdAntProFormRender, k as GdAntProLoading, le as GdAntProMenuTree, a as GdAntProModal, j as GdAntProOverlay, _ as GdAntProPicker, Q as GdAntProRoleSelector, V as GdAntProSelector, be as GdAntProSelectorGroup, S as GdAntProSignature, w as GdAntProTable, m as GdAntProTag, de as GdAntProTagGroup, s as GdAntProTitle, O as GdAntProUpload, q as GdAntProUserAvatar, k as GdAntProloading, Z as GdAntRoleSelector, f as GdAntScaleVirtualList, l as GdAntScrollBar, K as GdAntUserAvatar, H as GdAntUserSelector, U as GdAntUserSelectorCheckbox, W as GdAntUserSelectorDirectory, G as GdAntUserSelectorDrilldown, Br as MAX_CONTRACT_IMAGE_BYTES, Vr as MAX_CONTRACT_IMAGE_DIMENSION, Zr as MAX_SIGNING_LAYOUT_PARTY_COUNT, qe as MAX_SIGNING_MARK_DIMENSION, oe as MENU_TREE_URL, Hr as MIN_CONTRACT_IMAGE_DIMENSION, Qr as MIN_SIGNING_LAYOUT_PARTY_COUNT, Je as MIN_SIGNING_MARK_DIMENSION, sn as PAGE_SIZE_OPTIONS, ge as PRO_CELL_GROUP_KEY, h as PickerApiEnum, v as ProAreaProps, g as ProPickerProps, x as ProSignatureProps, ue as ProTagGroupProps, L as ProUserSelector, z as ProUserSelectorCheckbox, R as ProUserSelectorDrilldown, $r as SIGNING_LAYOUT_ARRANGEMENTS, ei as SIGNING_LAYOUT_ARRANGEMENT_LABELS, ti as SIGNING_LAYOUT_ATTRIBUTE_VALUES, ni as SIGNING_LAYOUT_FIELD_KEYS, ri as SIGNING_LAYOUT_FIELD_LABELS, ii as SIGNING_LAYOUT_PRESETS, ai as SIGNING_LAYOUT_PRESET_KEYS, Ye as SIGNING_MARK_DEFAULT_LABELS, Xe as SIGNING_MARK_DEFAULT_SIZES, Ze as SIGNING_MARK_TYPE_LABELS, o as TitleProps, E as UploadContextKey, N as UserSelectorProps, pa as adaptContractTemplateAgentSpec, ea as buildConnectList, $n as buildContractSigningLocationOutput, er as buildContractSigningLocationRules, qn as buildContractSigningTemplateRenderPages, oi as buildDualPartySigningLayoutPreset, Ln as buildInitialRenderValues, gr as buildPageLayouts, si as buildSigningLayoutContent, ci as buildSigningLayoutPresetContent, li as buildSigningLayoutPreviewModel, Qe as buildSigningMarkAttrs, cn as buildTemplateExpressionHtml, ln as buildTemplateHtml, un as buildTemplatePreviewHtml, dn as buildTemplatePreviewPages, Rn as buildTemplateRenderHtml, zn as buildTemplateRenderPages, Bn as buildTemplateVariableData, yt as canResizeContractSigningPlacement, bt as clampContractSigningPlacement, xt as clampContractSigningZoom, bi as clearTemplateDraftCache, tr as cloneContractSigningLocationValue, ji as cloneContractTemplateFiles, fn as cloneTemplateValue, e as collapseProps, pn as collectTemplateValueVariableKeys, mn as collectTemplateVariableKeys, Ur as compressContractImage, Te as configureContractPrintFonts, Mi as constrainContractTemplateFiles, hn as constrainTemplatePageSizes, _r as contentPointToPagePoint, gn as createBlankPage, _n as createBlankTemplate, nr as createContractSigningLocationValue, rr as createContractSigningPlacement, Ni as createContractTemplateFile, vn as createDefaultPage, ta as createDefaultSignRule, yn as createDefaultTemplate, bn as createDesignerId, xi as createDraftCacheStatus, na as createEndNode, ra as createId, ia as createInitialFlow, aa as createSignNode, oa as createStartNode, xn as createTemplateBodySync, Sn as createTemplateVariable, It as decodeContractTemplateJsonAttribute, re as deptSelectorEmits, ie as deptSelectorProps, ui as describeSigningLayoutOptions, St as displayPointToContractPoint, Lt as encodeContractTemplateJsonAttribute, Si as estimateDraftCacheBytes, Pi as exportContractTemplateFiles, Cn as exportTemplateValue, ir as findContractSigningPage, vr as findPageAtOffset, wn as findPageSizeOption, Cr as formatContractSigningDate, Rt as formatContractTemplateRenderValue, Ci as formatDraftCacheSavedAt, ee as generatePalette, wi as getBrowserDraftCacheStorage, yr as getContractSigningAutoScrollDelta, wr as getContractSigningDateDataUrl, Tr as getContractSigningDateSvgDataUrl, ar as getContractSigningHomePage, Er as getContractSigningPlacementDataUrl, Ct as getContractSigningPlacementDistances, wt as getContractSigningPlacementSize, Dr as getContractSigningPlacementVisual, Tt as getContractSigningRuleGeometry, Or as getContractSigningSealDataUrl, kr as getContractSigningSealLabel, Ar as getContractSigningSealSvgDataUrl, jr as getContractSigningSignatureDataUrl, Mr as getContractSigningSignaturePngDataUrl, Nr as getContractSigningSignatureSvgDataUrl, Jn as getContractSigningTemplateDisplayError, pt as getContractTextStylePreset, Tn as getFieldOption, br as getPageLayoutScrollTop, xr as getPageLayoutsContentSize, En as getPageSizeKey, Dn as getPageSizeOption, $e as getSigningMarkDefaultLabel, et as getSigningMarkDefaultSize, Sr as getVisibleRange, $ as inferPageFormat, zt as isAllowedContractTemplateRemoteUrl, Ti as isBlankTemplateDraftValue, Ei as isBlankTemplateFilesDraftValue, Xi as isContractSigningFlowInteractiveTarget, or as isContractSigningPageUsable, Yn as isContractSigningTemplateFile, Xn as isContractSigningTemplateSource, Pr as isContractSigningVisualDataUrl, Nt as isContractTemplateAdvancedChoiceFieldType, Pt as isContractTemplateBuiltinSelectorFieldType, Ft as isContractTemplateFieldType, Bt as isContractTemplateSelectionValue, tt as isContractTemplateSigningMarkType, Vn as isEmptyRenderValue, In as isSafeContractImageUrl, Fr as isSafeContractSigningVisualDataUrl, di as isSigningLayoutAttributeValue, fi as isSigningLayoutPresetKey, Di as loadTemplateDraftCache, Oi as loadTemplateFilesDraftCache, Ve as millimetersToContractSigningCssPixels, He as millimetersToContractSigningPixels, Et as moveContractSigningPlacementByDisplayDelta, Fi as moveContractTemplateFile, Wr as normalizeContractImageCompression, Gr as normalizeContractImageDimension, Dt as normalizeContractSigningCoordinateDimension, Ot as normalizeContractSigningCoordinateScale, sa as normalizeContractSigningFlow, Zi as normalizeContractSigningFlowZoom, sr as normalizeContractSigningLocationValue, cr as normalizeContractSigningProviderValue, Vt as normalizeContractTemplateControlOptions, Ii as normalizeContractTemplateFiles, Ht as normalizeContractTemplateJsonObject, On as normalizeContractTemplateMaxPages, Ut as normalizeContractTemplateRequestTimeout, Wt as normalizeContractTemplateSelectionValue, Gt as normalizeContractTemplateSelectionValues, mt as normalizeFontFamilyValue, kn as normalizePageSizeOptions, Hn as normalizeRenderValues, ca as normalizeSignRule, pi as normalizeSigningLayoutOptions, nt as normalizeSigningMarkDimension, An as normalizeTemplateValue, lr as patchContractSigningPlacement, se as proMenuTreeEmits, ce as proMenuTreeProps, n as proModalEmits, p as proTagProps, Kr as processContractImageFile, qr as readContractImageFileAsDataUrl, Li as removeContractTemplateFile, Ri as renameContractTemplateFile, zi as replaceContractTemplateFile, kt as resizeContractSigningSealGeometry, Ee as resolveContractFontBaseUrl, Jr as resolveContractImageResizeDimensions, ur as resolveContractSigningDefaultSealTypes, Qi as resolveContractSigningFlowZoomShortcut, $i as resolveContractSigningFlowZoomShortcutForTarget, dr as resolveContractSigningPreviewPageSize, Ir as resolveContractSigningSealLabel, Ue as resolveContractSigningSealSizeInCssPixels, We as resolveContractSigningSealSizeInPixels, At as resolveContractSigningSealSizeLimit, Ge as resolveContractSigningSealTypeOption, jt as resolveContractSigningSizeProfile, Bi as resolveContractTemplateActiveFileId, ht as resolveContractTextStylePresetCommands, gt as resolveFontFamilyOptions, jn as resolvePageSize, mi as resolvePartyName, rt as resolveSigningMarkPresentation, it as resolveSigningMarkResizeDimensions, at as resolveSigningMarkResizeHandles, ot as resolveSigningMarkSealAspectRatio, Un as resolveTemplateRenderSubmitErrors, P as resolveUserSelectorMaxCount, Y as roleSelectorEmits, X as roleSelectorProps, Wn as sanitizeContractRendererHtml, ki as saveTemplateDraftCache, Ai as saveTemplateFilesDraftCache, c as scrollbarProps, ye as selectContextKey, F as selectUserContextKey, _a as setupAppConfig, te as setupTheme, Mt as snapContractSigningPlacement, Mn as splitPageContentByMeasurements, Nn as syncTemplateVariablesWithPages, De as toAbsoluteContractFontBaseUrl, Ke as toContractSigningRulePageSize, Lr as toContractSigningSvgDataUrl, va as useBasicAppConfig, la as useContractSigningFlow, fa as useContractTemplateAgent, y as useProArea, r as useProModal, i as useProModalInit, C as useProTable, D as useUpload, B as useUserSelector, I as userSelectorEmits, ua as validateContractSigningFlow, fr as validateContractSigningLocationValue, Zn as validateContractSigningTemplateFile, Pn as validateContractTemplateVariableKey, Gn as validateTemplateRenderStructure, Kn as validateTemplateRenderValues, Fn as validateTemplateValue };
|
|
63
|
+
import { buildRadioOptionNodes as It, buildRadioOptionsHtml as Lt, decodeContractTemplateJsonAttribute as Rt, encodeContractTemplateJsonAttribute as zt, formatContractTemplateRenderValue as Bt, isAllowedContractTemplateRemoteUrl as Vt, isContractTemplateSelectionValue as Ht, normalizeContractTemplateControlOptions as Ut, normalizeContractTemplateJsonObject as Wt, normalizeContractTemplateRequestTimeout as Gt, normalizeContractTemplateSelectionValue as Kt, normalizeContractTemplateSelectionValues as qt, readContractTemplateControlOptions as Jt } from "./components/pro-contract-template-designer/src/utils/advanced-controls.mjs";
|
|
64
|
+
import { ALL_DEFAULT_FIELD_TYPES as Yt, CONTRACT_TEMPLATE_RENDERER_VERSION as Xt, CONTRACT_TEMPLATE_RESERVED_VARIABLE_KEYS as Zt, CONTRACT_TEMPLATE_STYLE_VERSION as Qt, CONTRACT_TEMPLATE_VARIABLE_KEY_PATTERN as $t, ContractTemplatePageDecorationValidationError as en, DEFAULT_ADVANCED_CHOICE_FIELD_TYPES as tn, DEFAULT_BUILTIN_SELECTOR_FIELD_TYPES as nn, DEFAULT_CHECKBOX_FIELD_TYPE as rn, DEFAULT_CUSTOM_FIELD_TYPES as an, DEFAULT_FIELD_STYLE as on, DEFAULT_FIELD_TYPES as sn, DEFAULT_IMAGE_FIELD_TYPE as cn, DEFAULT_MULTILINE_LINE_HEIGHT as ln, DEFAULT_MULTILINE_ROWS as un, DEFAULT_PAGE_SIZE as dn, PAGE_SIZE_OPTIONS as fn, buildTemplateExpressionHtml as pn, buildTemplateHtml as mn, buildTemplatePreviewHtml as hn, buildTemplatePreviewPages as gn, cloneTemplateValue as _n, collectTemplateValueVariableKeys as vn, collectTemplateVariableKeys as yn, constrainTemplatePageSizes as bn, createBlankPage as xn, createBlankTemplate as Sn, createDefaultPage as Cn, createDefaultTemplate as wn, createDesignerId as Tn, createTemplateBodySync as En, createTemplateVariable as Dn, exportTemplateValue as On, findPageSizeOption as kn, getFieldOption as An, getPageSizeKey as jn, getPageSizeOption as $, inferPageFormat as Mn, normalizeContractTemplateMaxPages as Nn, normalizePageSizeOptions as Pn, normalizeTemplateValue as Fn, resolvePageSize as In, splitPageContentByMeasurements as Ln, syncTemplateVariablesWithPages as Rn, validateContractTemplateVariableKey as zn, validateTemplateValue as Bn } from "./components/pro-contract-template-designer/src/composables/use-template-designer.mjs";
|
|
65
|
+
import { isSafeContractImageUrl as Vn } from "./components/pro-contract-template-designer/src/utils/image-url.mjs";
|
|
66
|
+
import { buildInitialRenderValues as Hn, buildTemplateRenderHtml as Un, buildTemplateRenderPages as Wn, buildTemplateVariableData as Gn, isEmptyRenderValue as Kn, normalizeRenderValues as qn, resolveTemplateRenderSubmitErrors as Jn, sanitizeContractRendererHtml as Yn, validateTemplateRenderStructure as Xn, validateTemplateRenderValues as Zn } from "./components/pro-contract-template-designer/src/utils/template-renderer.mjs";
|
|
67
|
+
import { buildContractSigningTemplateRenderPages as Qn, getContractSigningTemplateDisplayError as $n, isContractSigningTemplateFile as er, isContractSigningTemplateSource as tr, validateContractSigningTemplateFile as nr } from "./components/contract-signing-location/src/template-source.mjs";
|
|
68
|
+
import { ContractSigningLocationBuildError as rr, buildContractSigningLocationOutput as ir, buildContractSigningLocationRules as ar, cloneContractSigningLocationValue as or, createContractSigningLocationValue as sr, createContractSigningPlacement as cr, findContractSigningPage as lr, getContractSigningHomePage as ur, isContractSigningPageUsable as dr, normalizeContractSigningLocationValue as fr, normalizeContractSigningProviderValue as pr, patchContractSigningPlacement as mr, resolveContractSigningDefaultSealTypes as hr, resolveContractSigningPreviewPageSize as gr, validateContractSigningLocationValue as _r } from "./components/contract-signing-location/src/location-rules.mjs";
|
|
69
|
+
import { CONTRACT_SIGNING_FALLBACK_PAGE_SIZE as vr, CONTRACT_SIGNING_PAGE_GAP as yr, CONTRACT_SIGNING_VIRTUAL_BUFFER_PAGES as br, buildPageLayouts as xr, contentPointToPagePoint as Sr, findPageAtOffset as Cr, getContractSigningAutoScrollDelta as wr, getPageLayoutScrollTop as Tr, getPageLayoutsContentSize as Er, getVisibleRange as Dr } from "./components/contract-signing-location/src/page-layout.mjs";
|
|
70
|
+
import { formatContractSigningDate as Or, getContractSigningDateDataUrl as kr, getContractSigningDateSvgDataUrl as Ar, getContractSigningPlacementDataUrl as jr, getContractSigningPlacementVisual as Mr, getContractSigningSealDataUrl as Nr, getContractSigningSealLabel as Pr, getContractSigningSealSvgDataUrl as Fr, getContractSigningSignatureDataUrl as Ir, getContractSigningSignaturePngDataUrl as Lr, getContractSigningSignatureSvgDataUrl as Rr, isContractSigningVisualDataUrl as zr, isSafeContractSigningVisualDataUrl as Br, resolveContractSigningSealLabel as Vr, toContractSigningSvgDataUrl as Hr } from "./components/contract-signing-location/src/signing-visuals.mjs";
|
|
71
|
+
import Ur from "./components/contract-signing-location/index.mjs";
|
|
72
|
+
import { DEFAULT_CONTRACT_IMAGE_COMPRESSION as Wr, MAX_CONTRACT_IMAGE_BYTES as Gr, MAX_CONTRACT_IMAGE_DIMENSION as Kr, MIN_CONTRACT_IMAGE_DIMENSION as qr, compressContractImage as Jr, normalizeContractImageCompression as Yr, normalizeContractImageDimension as Xr, processContractImageFile as Zr, readContractImageFileAsDataUrl as Qr, resolveContractImageResizeDimensions as $r } from "./components/pro-contract-template-designer/src/utils/content-image.mjs";
|
|
73
|
+
import { CUSTOM_SIGNING_LAYOUT as ei, DUAL_PARTY_SIGNING_LAYOUT as ti, MAX_SIGNING_LAYOUT_PARTY_COUNT as ni, MIN_SIGNING_LAYOUT_PARTY_COUNT as ri, SIGNING_LAYOUT_ARRANGEMENTS as ii, SIGNING_LAYOUT_ARRANGEMENT_LABELS as ai, SIGNING_LAYOUT_ATTRIBUTE_VALUES as oi, SIGNING_LAYOUT_FIELD_KEYS as si, SIGNING_LAYOUT_FIELD_LABELS as ci, SIGNING_LAYOUT_PRESETS as li, SIGNING_LAYOUT_PRESET_KEYS as ui, buildDualPartySigningLayoutPreset as di, buildSigningLayoutContent as fi, buildSigningLayoutPresetContent as pi, buildSigningLayoutPreviewModel as mi, describeSigningLayoutOptions as hi, isSigningLayoutAttributeValue as gi, isSigningLayoutPresetKey as _i, normalizeSigningLayoutOptions as vi, resolvePartyName as yi } from "./components/pro-contract-template-designer/src/utils/signing-layout-presets.mjs";
|
|
74
|
+
import { CONTRACT_TEMPLATE_DRAFT_CACHE_VERSION as bi, CONTRACT_TEMPLATE_FILES_DRAFT_CACHE_VERSION as xi, DEFAULT_DRAFT_CACHE_INTERVAL as Si, DEFAULT_DRAFT_CACHE_KEY as Ci, DEFAULT_DRAFT_CACHE_MAX_BYTES as wi, clearTemplateDraftCache as Ti, createDraftCacheStatus as Ei, estimateDraftCacheBytes as Di, formatDraftCacheSavedAt as Oi, getBrowserDraftCacheStorage as ki, isBlankTemplateDraftValue as Ai, isBlankTemplateFilesDraftValue as ji, loadTemplateDraftCache as Mi, loadTemplateFilesDraftCache as Ni, saveTemplateDraftCache as Pi, saveTemplateFilesDraftCache as Fi } from "./components/pro-contract-template-designer/src/composables/use-template-draft-cache.mjs";
|
|
75
|
+
import { cloneContractTemplateFiles as Ii, constrainContractTemplateFiles as Li, createContractTemplateFile as Ri, exportContractTemplateFiles as zi, moveContractTemplateFile as Bi, normalizeContractTemplateFiles as Vi, removeContractTemplateFile as Hi, renameContractTemplateFile as Ui, replaceContractTemplateFile as Wi, resolveContractTemplateActiveFileId as Gi } from "./components/pro-contract-template-designer/src/composables/use-template-files.mjs";
|
|
76
|
+
import Ki, { GdAntProContractTemplateRenderer as qi } from "./components/pro-contract-template-designer/index.mjs";
|
|
77
|
+
import { CONTRACT_SIGNING_FLOW_ACTION_LABELS as Ji, CONTRACT_SIGNING_FLOW_IDENTITY_OPTIONS as Yi, CONTRACT_SIGNING_FLOW_MAX_ZOOM as Xi, CONTRACT_SIGNING_FLOW_MIN_ZOOM as Zi, CONTRACT_SIGNING_FLOW_SEAL_TYPES as Qi, CONTRACT_SIGNING_FLOW_SIGN_ACTIONS as $i, CONTRACT_SIGNING_FLOW_ZOOM_STEP as ea, isContractSigningFlowInteractiveTarget as ta, normalizeContractSigningFlowZoom as na, resolveContractSigningFlowZoomShortcut as ra, resolveContractSigningFlowZoomShortcutForTarget as ia } from "./components/pro-contract-signing-flow/src/constants.mjs";
|
|
78
|
+
import { buildConnectList as aa, createDefaultSignRule as oa, createEndNode as sa, createId as ca, createInitialFlow as la, createSignNode as ua, createStartNode as da, normalizeContractSigningFlow as fa, normalizeSignRule as pa, useContractSigningFlow as ma, validateContractSigningFlow as ha } from "./components/pro-contract-signing-flow/src/composables/use-contract-signing-flow.mjs";
|
|
79
|
+
import ga from "./components/pro-contract-signing-flow/index.mjs";
|
|
80
|
+
import { useContractTemplateAgent as _a } from "./components/pro-contract-template-agent/src/composables/use-contract-template-agent.mjs";
|
|
81
|
+
import { adaptContractTemplateAgentSpec as va } from "./components/pro-contract-template-agent/src/utils/contract-template-agent-adapter.mjs";
|
|
82
|
+
import ya, { GdAntProContractTemplateAgentPanel as ba, GdAntProContractTemplateAgentPreview as xa } from "./components/pro-contract-template-agent/index.mjs";
|
|
83
|
+
import { setupAppConfig as Sa, useBasicAppConfig as Ca } from "./components/hooks/use-basic-app-config.mjs";
|
|
84
|
+
export { Yt as ALL_DEFAULT_FIELD_TYPES, we as CONTRACT_PRINT_FONT_UNCONFIGURED_MESSAGE, Oe as CONTRACT_SIGNING_AUTO_SCROLL_EDGE_PX, ke as CONTRACT_SIGNING_CSS_PX_PER_POINT, vr as CONTRACT_SIGNING_FALLBACK_PAGE_SIZE, Ji as CONTRACT_SIGNING_FLOW_ACTION_LABELS, Yi as CONTRACT_SIGNING_FLOW_IDENTITY_OPTIONS, Xi as CONTRACT_SIGNING_FLOW_MAX_ZOOM, Zi as CONTRACT_SIGNING_FLOW_MIN_ZOOM, Qi as CONTRACT_SIGNING_FLOW_SEAL_TYPES, $i as CONTRACT_SIGNING_FLOW_SIGN_ACTIONS, ea as CONTRACT_SIGNING_FLOW_ZOOM_STEP, Ae as CONTRACT_SIGNING_MIN_PLACEMENT_SIZE, yr as CONTRACT_SIGNING_PAGE_GAP, je as CONTRACT_SIGNING_PLACEMENT_LABELS, Me as CONTRACT_SIGNING_PLACEMENT_MIME, Ne as CONTRACT_SIGNING_PREVIEW_CONCURRENCY, Pe as CONTRACT_SIGNING_PX_PER_MM, _t as CONTRACT_SIGNING_RENDER_ORIGIN_OFFSET, Fe as CONTRACT_SIGNING_SEAL_MAX_SIZE, Ie as CONTRACT_SIGNING_SEAL_MIN_SIZE, Le as CONTRACT_SIGNING_SEAL_TYPE_OPTIONS, Re as CONTRACT_SIGNING_SEAL_TYPE_PRESETS, ze as CONTRACT_SIGNING_SIZE_PROFILES, vt as CONTRACT_SIGNING_SNAP_THRESHOLD_PX, br as CONTRACT_SIGNING_VIRTUAL_BUFFER_PAGES, Be as CONTRACT_SIGNING_VISIBLE_PAGES_DEBOUNCE_MS, bi as CONTRACT_TEMPLATE_DRAFT_CACHE_VERSION, xi as CONTRACT_TEMPLATE_FILES_DRAFT_CACHE_VERSION, Xt as CONTRACT_TEMPLATE_RENDERER_VERSION, Zt as CONTRACT_TEMPLATE_RESERVED_VARIABLE_KEYS, Qt as CONTRACT_TEMPLATE_STYLE_VERSION, $t as CONTRACT_TEMPLATE_VARIABLE_KEY_PATTERN, st as CONTRACT_TEXT_STYLE_PRESETS, ct as CONTRACT_TEXT_STYLE_PRESET_COMMANDS, ei as CUSTOM_SIGNING_LAYOUT, rr as ContractSigningLocationBuildError, en as ContractTemplatePageDecorationValidationError, u as CoverScrollbarProps, tn as DEFAULT_ADVANCED_CHOICE_FIELD_TYPES, nn as DEFAULT_BUILTIN_SELECTOR_FIELD_TYPES, rn as DEFAULT_CHECKBOX_FIELD_TYPE, lt as DEFAULT_CONTRACT_FONT_FAMILY, Wr as DEFAULT_CONTRACT_IMAGE_COMPRESSION, an as DEFAULT_CUSTOM_FIELD_TYPES, Si as DEFAULT_DRAFT_CACHE_INTERVAL, Ci as DEFAULT_DRAFT_CACHE_KEY, wi as DEFAULT_DRAFT_CACHE_MAX_BYTES, on as DEFAULT_FIELD_STYLE, sn as DEFAULT_FIELD_TYPES, ut as DEFAULT_FONT_FAMILY_OPTIONS, dt as DEFAULT_FONT_SIZE_PRESETS, cn as DEFAULT_IMAGE_FIELD_TYPE, ln as DEFAULT_MULTILINE_LINE_HEIGHT, un as DEFAULT_MULTILINE_ROWS, dn as DEFAULT_PAGE_SIZE, ft as DEFAULT_TEXT_ALIGN_OPTIONS, Se as DRAWER_SIZE_WIDTH, ti as DUAL_PARTY_SIGNING_LAYOUT, fe as FORM_RENDER_CONTEXT_KEY, pe as FormItemProps, me as FormRenderProps, ne as GET_DEPT_TREE_URL, J as GTE_OPTIONS_URL, M as GTE_ORGTREE_URL, t as GdAntCollapseTranstion, Ur as GdAntContractSigningLocation, d as GdAntCoverScrollBar, ae as GdAntDeptSelector, T as GdAntIcon, A as GdAntPlusUpload, b as GdAntProArea, _e as GdAntProCell, ve as GdAntProCellGroup, ga as GdAntProContractSigningFlow, ba as GdAntProContractTemplateAgentPanel, xa as GdAntProContractTemplateAgentPreview, ya as GdAntProContractTemplateAgentWorkbench, Ki as GdAntProContractTemplateDesigner, qi as GdAntProContractTemplateRenderer, Ce as GdAntProDrawer, xe as GdAntProDynamicTags, he as GdAntProFormRender, k as GdAntProLoading, le as GdAntProMenuTree, a as GdAntProModal, j as GdAntProOverlay, _ as GdAntProPicker, Q as GdAntProRoleSelector, V as GdAntProSelector, be as GdAntProSelectorGroup, S as GdAntProSignature, w as GdAntProTable, m as GdAntProTag, de as GdAntProTagGroup, s as GdAntProTitle, O as GdAntProUpload, q as GdAntProUserAvatar, k as GdAntProloading, Z as GdAntRoleSelector, f as GdAntScaleVirtualList, l as GdAntScrollBar, K as GdAntUserAvatar, H as GdAntUserSelector, U as GdAntUserSelectorCheckbox, W as GdAntUserSelectorDirectory, G as GdAntUserSelectorDrilldown, Gr as MAX_CONTRACT_IMAGE_BYTES, Kr as MAX_CONTRACT_IMAGE_DIMENSION, ni as MAX_SIGNING_LAYOUT_PARTY_COUNT, qe as MAX_SIGNING_MARK_DIMENSION, oe as MENU_TREE_URL, qr as MIN_CONTRACT_IMAGE_DIMENSION, ri as MIN_SIGNING_LAYOUT_PARTY_COUNT, Je as MIN_SIGNING_MARK_DIMENSION, fn as PAGE_SIZE_OPTIONS, ge as PRO_CELL_GROUP_KEY, h as PickerApiEnum, v as ProAreaProps, g as ProPickerProps, x as ProSignatureProps, ue as ProTagGroupProps, L as ProUserSelector, z as ProUserSelectorCheckbox, R as ProUserSelectorDrilldown, ii as SIGNING_LAYOUT_ARRANGEMENTS, ai as SIGNING_LAYOUT_ARRANGEMENT_LABELS, oi as SIGNING_LAYOUT_ATTRIBUTE_VALUES, si as SIGNING_LAYOUT_FIELD_KEYS, ci as SIGNING_LAYOUT_FIELD_LABELS, li as SIGNING_LAYOUT_PRESETS, ui as SIGNING_LAYOUT_PRESET_KEYS, Ye as SIGNING_MARK_DEFAULT_LABELS, Xe as SIGNING_MARK_DEFAULT_SIZES, Ze as SIGNING_MARK_TYPE_LABELS, o as TitleProps, E as UploadContextKey, N as UserSelectorProps, va as adaptContractTemplateAgentSpec, aa as buildConnectList, ir as buildContractSigningLocationOutput, ar as buildContractSigningLocationRules, Qn as buildContractSigningTemplateRenderPages, di as buildDualPartySigningLayoutPreset, Hn as buildInitialRenderValues, xr as buildPageLayouts, It as buildRadioOptionNodes, Lt as buildRadioOptionsHtml, fi as buildSigningLayoutContent, pi as buildSigningLayoutPresetContent, mi as buildSigningLayoutPreviewModel, Qe as buildSigningMarkAttrs, pn as buildTemplateExpressionHtml, mn as buildTemplateHtml, hn as buildTemplatePreviewHtml, gn as buildTemplatePreviewPages, Un as buildTemplateRenderHtml, Wn as buildTemplateRenderPages, Gn as buildTemplateVariableData, yt as canResizeContractSigningPlacement, bt as clampContractSigningPlacement, xt as clampContractSigningZoom, Ti as clearTemplateDraftCache, or as cloneContractSigningLocationValue, Ii as cloneContractTemplateFiles, _n as cloneTemplateValue, e as collapseProps, vn as collectTemplateValueVariableKeys, yn as collectTemplateVariableKeys, Jr as compressContractImage, Te as configureContractPrintFonts, Li as constrainContractTemplateFiles, bn as constrainTemplatePageSizes, Sr as contentPointToPagePoint, xn as createBlankPage, Sn as createBlankTemplate, sr as createContractSigningLocationValue, cr as createContractSigningPlacement, Ri as createContractTemplateFile, Cn as createDefaultPage, oa as createDefaultSignRule, wn as createDefaultTemplate, Tn as createDesignerId, Ei as createDraftCacheStatus, sa as createEndNode, ca as createId, la as createInitialFlow, ua as createSignNode, da as createStartNode, En as createTemplateBodySync, Dn as createTemplateVariable, Rt as decodeContractTemplateJsonAttribute, re as deptSelectorEmits, ie as deptSelectorProps, hi as describeSigningLayoutOptions, St as displayPointToContractPoint, zt as encodeContractTemplateJsonAttribute, Di as estimateDraftCacheBytes, zi as exportContractTemplateFiles, On as exportTemplateValue, lr as findContractSigningPage, Cr as findPageAtOffset, kn as findPageSizeOption, Or as formatContractSigningDate, Bt as formatContractTemplateRenderValue, Oi as formatDraftCacheSavedAt, ee as generatePalette, ki as getBrowserDraftCacheStorage, wr as getContractSigningAutoScrollDelta, kr as getContractSigningDateDataUrl, Ar as getContractSigningDateSvgDataUrl, ur as getContractSigningHomePage, jr as getContractSigningPlacementDataUrl, Ct as getContractSigningPlacementDistances, wt as getContractSigningPlacementSize, Mr as getContractSigningPlacementVisual, Tt as getContractSigningRuleGeometry, Nr as getContractSigningSealDataUrl, Pr as getContractSigningSealLabel, Fr as getContractSigningSealSvgDataUrl, Ir as getContractSigningSignatureDataUrl, Lr as getContractSigningSignaturePngDataUrl, Rr as getContractSigningSignatureSvgDataUrl, $n as getContractSigningTemplateDisplayError, pt as getContractTextStylePreset, An as getFieldOption, Tr as getPageLayoutScrollTop, Er as getPageLayoutsContentSize, jn as getPageSizeKey, $ as getPageSizeOption, $e as getSigningMarkDefaultLabel, et as getSigningMarkDefaultSize, Dr as getVisibleRange, Mn as inferPageFormat, Vt as isAllowedContractTemplateRemoteUrl, Ai as isBlankTemplateDraftValue, ji as isBlankTemplateFilesDraftValue, ta as isContractSigningFlowInteractiveTarget, dr as isContractSigningPageUsable, er as isContractSigningTemplateFile, tr as isContractSigningTemplateSource, zr as isContractSigningVisualDataUrl, Nt as isContractTemplateAdvancedChoiceFieldType, Pt as isContractTemplateBuiltinSelectorFieldType, Ft as isContractTemplateFieldType, Ht as isContractTemplateSelectionValue, tt as isContractTemplateSigningMarkType, Kn as isEmptyRenderValue, Vn as isSafeContractImageUrl, Br as isSafeContractSigningVisualDataUrl, gi as isSigningLayoutAttributeValue, _i as isSigningLayoutPresetKey, Mi as loadTemplateDraftCache, Ni as loadTemplateFilesDraftCache, Ve as millimetersToContractSigningCssPixels, He as millimetersToContractSigningPixels, Et as moveContractSigningPlacementByDisplayDelta, Bi as moveContractTemplateFile, Yr as normalizeContractImageCompression, Xr as normalizeContractImageDimension, Dt as normalizeContractSigningCoordinateDimension, Ot as normalizeContractSigningCoordinateScale, fa as normalizeContractSigningFlow, na as normalizeContractSigningFlowZoom, fr as normalizeContractSigningLocationValue, pr as normalizeContractSigningProviderValue, Ut as normalizeContractTemplateControlOptions, Vi as normalizeContractTemplateFiles, Wt as normalizeContractTemplateJsonObject, Nn as normalizeContractTemplateMaxPages, Gt as normalizeContractTemplateRequestTimeout, Kt as normalizeContractTemplateSelectionValue, qt as normalizeContractTemplateSelectionValues, mt as normalizeFontFamilyValue, Pn as normalizePageSizeOptions, qn as normalizeRenderValues, pa as normalizeSignRule, vi as normalizeSigningLayoutOptions, nt as normalizeSigningMarkDimension, Fn as normalizeTemplateValue, mr as patchContractSigningPlacement, se as proMenuTreeEmits, ce as proMenuTreeProps, n as proModalEmits, p as proTagProps, Zr as processContractImageFile, Qr as readContractImageFileAsDataUrl, Jt as readContractTemplateControlOptions, Hi as removeContractTemplateFile, Ui as renameContractTemplateFile, Wi as replaceContractTemplateFile, kt as resizeContractSigningSealGeometry, Ee as resolveContractFontBaseUrl, $r as resolveContractImageResizeDimensions, hr as resolveContractSigningDefaultSealTypes, ra as resolveContractSigningFlowZoomShortcut, ia as resolveContractSigningFlowZoomShortcutForTarget, gr as resolveContractSigningPreviewPageSize, Vr as resolveContractSigningSealLabel, Ue as resolveContractSigningSealSizeInCssPixels, We as resolveContractSigningSealSizeInPixels, At as resolveContractSigningSealSizeLimit, Ge as resolveContractSigningSealTypeOption, jt as resolveContractSigningSizeProfile, Gi as resolveContractTemplateActiveFileId, ht as resolveContractTextStylePresetCommands, gt as resolveFontFamilyOptions, In as resolvePageSize, yi as resolvePartyName, rt as resolveSigningMarkPresentation, it as resolveSigningMarkResizeDimensions, at as resolveSigningMarkResizeHandles, ot as resolveSigningMarkSealAspectRatio, Jn as resolveTemplateRenderSubmitErrors, P as resolveUserSelectorMaxCount, Y as roleSelectorEmits, X as roleSelectorProps, Yn as sanitizeContractRendererHtml, Pi as saveTemplateDraftCache, Fi as saveTemplateFilesDraftCache, c as scrollbarProps, ye as selectContextKey, F as selectUserContextKey, Sa as setupAppConfig, te as setupTheme, Mt as snapContractSigningPlacement, Ln as splitPageContentByMeasurements, Rn as syncTemplateVariablesWithPages, De as toAbsoluteContractFontBaseUrl, Ke as toContractSigningRulePageSize, Hr as toContractSigningSvgDataUrl, Ca as useBasicAppConfig, ma as useContractSigningFlow, _a as useContractTemplateAgent, y as useProArea, r as useProModal, i as useProModalInit, C as useProTable, D as useUpload, B as useUserSelector, I as userSelectorEmits, ha as validateContractSigningFlow, _r as validateContractSigningLocationValue, nr as validateContractSigningTemplateFile, zn as validateContractTemplateVariableKey, Xn as validateTemplateRenderStructure, Zn as validateTemplateRenderValues, Bn as validateTemplateValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../../../prosemirror-transform/dist/index.mjs";
|
|
@@ -434,7 +434,7 @@ function D(e, t, n) {
|
|
|
434
434
|
}
|
|
435
435
|
return !1;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function ee(e, t, n, r) {
|
|
438
438
|
let i = [], a = [], o, s;
|
|
439
439
|
e.doc.nodesBetween(t, n, (e, c, l) => {
|
|
440
440
|
if (!e.isInline) return;
|
|
@@ -446,7 +446,7 @@ function O(e, t, n, r) {
|
|
|
446
446
|
}
|
|
447
447
|
}), i.forEach((t) => e.step(t)), a.forEach((t) => e.step(t));
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function te(e, t, r, i) {
|
|
450
450
|
let a = [], o = 0;
|
|
451
451
|
e.doc.nodesBetween(t, r, (e, s) => {
|
|
452
452
|
if (!e.isInline) return;
|
|
@@ -474,7 +474,7 @@ function k(e, t, r, i) {
|
|
|
474
474
|
}
|
|
475
475
|
}), a.forEach((t) => e.step(new S(t.from, t.to, t.style)));
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function O(t, n, r, a = r.contentMatch, o = !0) {
|
|
478
478
|
let s = t.doc.nodeAt(n), c = [], l = n + 1;
|
|
479
479
|
for (let n = 0; n < s.childCount; n++) {
|
|
480
480
|
let u = s.child(n), d = l + u.nodeSize, f = a.matchType(u.type);
|
|
@@ -495,14 +495,53 @@ function A(t, n, r, a = r.contentMatch, o = !0) {
|
|
|
495
495
|
}
|
|
496
496
|
for (let e = c.length - 1; e >= 0; e--) t.step(c[e]);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function ne(e, t, n) {
|
|
499
|
+
return (t == 0 || e.canReplace(t, e.childCount)) && (n == e.childCount || e.canReplace(0, n));
|
|
500
|
+
}
|
|
501
|
+
function re(e) {
|
|
502
|
+
let t = e.parent.content.cutByIndex(e.startIndex, e.endIndex);
|
|
503
|
+
for (let n = e.depth, r = 0, i = 0;; --n) {
|
|
504
|
+
let a = e.$from.node(n), o = e.$from.index(n) + r, s = e.$to.indexAfter(n) - i;
|
|
505
|
+
if (n < e.depth && a.canReplace(o, s, t)) return n;
|
|
506
|
+
if (n == 0 || a.type.spec.isolating || !ne(a, o, s)) break;
|
|
507
|
+
o && (r = 1), s < a.childCount && (i = 1);
|
|
508
|
+
}
|
|
509
|
+
return null;
|
|
510
|
+
}
|
|
511
|
+
function ie(t, n, r) {
|
|
499
512
|
let { $from: a, $to: o, depth: s } = n, c = a.before(s + 1), l = o.after(s + 1), u = c, d = l, f = e.empty, p = 0;
|
|
500
513
|
for (let t = s, n = !1; t > r; t--) n || a.index(t) > 0 ? (n = !0, f = e.from(a.node(t).copy(f)), p++) : u--;
|
|
501
514
|
let m = e.empty, h = 0;
|
|
502
515
|
for (let t = s, n = !1; t > r; t--) n || o.after(t + 1) < o.end(t) ? (n = !0, m = e.from(o.node(t).copy(m)), h++) : d++;
|
|
503
516
|
t.step(new E(u, d, c, l, new i(f.append(m), p, h), f.size - p, !0));
|
|
504
517
|
}
|
|
505
|
-
function
|
|
518
|
+
function ae(e, t, n = null, r = e) {
|
|
519
|
+
let i = oe(e, t), a = i && se(r, t);
|
|
520
|
+
return a ? i.map(k).concat({
|
|
521
|
+
type: t,
|
|
522
|
+
attrs: n
|
|
523
|
+
}).concat(a.map(k)) : null;
|
|
524
|
+
}
|
|
525
|
+
function k(e) {
|
|
526
|
+
return {
|
|
527
|
+
type: e,
|
|
528
|
+
attrs: null
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
function oe(e, t) {
|
|
532
|
+
let { parent: n, startIndex: r, endIndex: i } = e, a = n.contentMatchAt(r).findWrapping(t);
|
|
533
|
+
if (!a) return null;
|
|
534
|
+
let o = a.length ? a[0] : t;
|
|
535
|
+
return n.canReplaceWith(r, i, o) ? a : null;
|
|
536
|
+
}
|
|
537
|
+
function se(e, t) {
|
|
538
|
+
let { parent: n, startIndex: r, endIndex: i } = e, a = n.child(r), o = t.contentMatch.findWrapping(a.type);
|
|
539
|
+
if (!o) return null;
|
|
540
|
+
let s = (o.length ? o[o.length - 1] : t).contentMatch;
|
|
541
|
+
for (let e = r; s && e < i; e++) s = s.matchType(n.child(e).type);
|
|
542
|
+
return !s || !s.validEnd ? null : o;
|
|
543
|
+
}
|
|
544
|
+
function A(t, n, r) {
|
|
506
545
|
let a = e.empty;
|
|
507
546
|
for (let t = r.length - 1; t >= 0; t--) {
|
|
508
547
|
if (a.size) {
|
|
@@ -514,24 +553,24 @@ function j(t, n, r) {
|
|
|
514
553
|
let o = n.start, s = n.end;
|
|
515
554
|
t.step(new E(o, s, o, s, new i(a, 0, 0), r.length, !0));
|
|
516
555
|
}
|
|
517
|
-
function
|
|
556
|
+
function j(t, n, r, a, o) {
|
|
518
557
|
if (!a.isTextblock) throw RangeError("Type given to setBlockType should be a textblock");
|
|
519
558
|
let s = t.steps.length;
|
|
520
559
|
t.doc.nodesBetween(n, r, (n, r) => {
|
|
521
560
|
let c = typeof o == "function" ? o(n) : o;
|
|
522
|
-
if (n.isTextblock && !n.hasMarkup(a, c) &&
|
|
561
|
+
if (n.isTextblock && !n.hasMarkup(a, c) && P(t.doc, t.mapping.slice(s).map(r), a)) {
|
|
523
562
|
let o = null;
|
|
524
563
|
if (a.schema.linebreakReplacement) {
|
|
525
564
|
let e = a.whitespace == "pre", t = !!a.contentMatch.matchType(a.schema.linebreakReplacement);
|
|
526
565
|
e && !t ? o = !1 : !e && t && (o = !0);
|
|
527
566
|
}
|
|
528
|
-
o === !1 &&
|
|
567
|
+
o === !1 && N(t, n, r, s), O(t, t.mapping.slice(s).map(r, 1), a, void 0, o === null);
|
|
529
568
|
let l = t.mapping.slice(s), u = l.map(r, 1), d = l.map(r + n.nodeSize, 1);
|
|
530
|
-
return t.step(new E(u, d, u + 1, d - 1, new i(e.from(a.create(c, null, n.marks)), 0, 0), 1, !0)), o === !0 &&
|
|
569
|
+
return t.step(new E(u, d, u + 1, d - 1, new i(e.from(a.create(c, null, n.marks)), 0, 0), 1, !0)), o === !0 && M(t, n, r, s), !1;
|
|
531
570
|
}
|
|
532
571
|
});
|
|
533
572
|
}
|
|
534
|
-
function
|
|
573
|
+
function M(e, t, n, r) {
|
|
535
574
|
t.forEach((i, a) => {
|
|
536
575
|
if (i.isText) {
|
|
537
576
|
let o, s = /\r?\n|\r/g;
|
|
@@ -542,7 +581,7 @@ function N(e, t, n, r) {
|
|
|
542
581
|
}
|
|
543
582
|
});
|
|
544
583
|
}
|
|
545
|
-
function
|
|
584
|
+
function N(e, t, n, r) {
|
|
546
585
|
t.forEach((i, a) => {
|
|
547
586
|
if (i.type == i.type.schema.linebreakReplacement) {
|
|
548
587
|
let i = e.mapping.slice(r).map(n + 1 + a);
|
|
@@ -550,11 +589,11 @@ function P(e, t, n, r) {
|
|
|
550
589
|
}
|
|
551
590
|
});
|
|
552
591
|
}
|
|
553
|
-
function
|
|
592
|
+
function P(e, t, n) {
|
|
554
593
|
let r = e.resolve(t), i = r.index();
|
|
555
594
|
return r.parent.canReplaceWith(i, i + 1, n);
|
|
556
595
|
}
|
|
557
|
-
function
|
|
596
|
+
function F(t, n, r, a, o) {
|
|
558
597
|
let s = t.doc.nodeAt(n);
|
|
559
598
|
if (!s) throw RangeError("No node at given position");
|
|
560
599
|
r ||= s.type;
|
|
@@ -563,7 +602,21 @@ function I(t, n, r, a, o) {
|
|
|
563
602
|
if (!r.validContent(s.content)) throw RangeError("Invalid content for node type " + r.name);
|
|
564
603
|
t.step(new E(n, n + s.nodeSize, n + 1, n + s.nodeSize - 1, new i(e.from(c), 0, 0), 1, !0));
|
|
565
604
|
}
|
|
566
|
-
function
|
|
605
|
+
function ce(e, t, n = 1, r) {
|
|
606
|
+
let i = e.resolve(t), a = i.depth - n, o = r && r[r.length - 1] || i.parent;
|
|
607
|
+
if (a < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !o.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount))) return !1;
|
|
608
|
+
for (let e = i.depth - 1, t = n - 2; e > a; e--, t--) {
|
|
609
|
+
let n = i.node(e), a = i.index(e);
|
|
610
|
+
if (n.type.spec.isolating) return !1;
|
|
611
|
+
let o = n.content.cutByIndex(a, n.childCount), s = r && r[t + 1];
|
|
612
|
+
s && (o = o.replaceChild(0, s.type.create(s.attrs)));
|
|
613
|
+
let c = r && r[t] || n;
|
|
614
|
+
if (!n.canReplace(a + 1, n.childCount) || !c.type.validContent(o)) return !1;
|
|
615
|
+
}
|
|
616
|
+
let s = i.indexAfter(a), c = r && r[0];
|
|
617
|
+
return i.node(a).canReplaceWith(s, s, c ? c.type : i.node(a + 1).type);
|
|
618
|
+
}
|
|
619
|
+
function le(t, n, r = 1, a) {
|
|
567
620
|
let o = t.doc.resolve(n), s = e.empty, c = e.empty;
|
|
568
621
|
for (let t = o.depth, n = o.depth - r, i = r - 1; t > n; t--, i--) {
|
|
569
622
|
s = e.from(o.node(t).copy(s));
|
|
@@ -572,7 +625,32 @@ function L(t, n, r = 1, a) {
|
|
|
572
625
|
}
|
|
573
626
|
t.step(new T(n, n, new i(s.append(c), r, r), !0));
|
|
574
627
|
}
|
|
575
|
-
function
|
|
628
|
+
function ue(e, t) {
|
|
629
|
+
let n = e.resolve(t), r = n.index();
|
|
630
|
+
return I(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
|
|
631
|
+
}
|
|
632
|
+
function de(e, t) {
|
|
633
|
+
t.content.size || e.type.compatibleContent(t.type);
|
|
634
|
+
let n = e.contentMatchAt(e.childCount), { linebreakReplacement: r } = e.type.schema;
|
|
635
|
+
for (let i = 0; i < t.childCount; i++) {
|
|
636
|
+
let a = t.child(i), o = a.type == r ? e.type.schema.nodes.text : a.type;
|
|
637
|
+
if (n = n.matchType(o), !n || !e.type.allowsMarks(a.marks)) return !1;
|
|
638
|
+
}
|
|
639
|
+
return n.validEnd;
|
|
640
|
+
}
|
|
641
|
+
function I(e, t) {
|
|
642
|
+
return !!(e && t && !e.isLeaf && de(e, t));
|
|
643
|
+
}
|
|
644
|
+
function L(e, t, n = -1) {
|
|
645
|
+
let r = e.resolve(t);
|
|
646
|
+
for (let e = r.depth;; e--) {
|
|
647
|
+
let i, a, o = r.index(e);
|
|
648
|
+
if (e == r.depth ? (i = r.nodeBefore, a = r.nodeAfter) : n > 0 ? (i = r.node(e + 1), o++, a = r.node(e).maybeChild(o)) : (i = r.node(e).maybeChild(o - 1), a = r.node(e + 1)), i && !i.isTextblock && I(i, a) && r.node(e).canReplace(o, o + 1)) return t;
|
|
649
|
+
if (e == 0) break;
|
|
650
|
+
t = n < 0 ? r.before(e) : r.after(e);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
function R(e, t, n) {
|
|
576
654
|
let r = null, { linebreakReplacement: a } = e.doc.type.schema, o = e.doc.resolve(t - n), s = o.node().type;
|
|
577
655
|
if (a && s.inlineContent) {
|
|
578
656
|
let e = s.whitespace == "pre", t = !!s.contentMatch.matchType(a);
|
|
@@ -581,17 +659,17 @@ function te(e, t, n) {
|
|
|
581
659
|
let c = e.steps.length;
|
|
582
660
|
if (r === !1) {
|
|
583
661
|
let r = e.doc.resolve(t + n);
|
|
584
|
-
|
|
662
|
+
N(e, r.node(), r.before(), c);
|
|
585
663
|
}
|
|
586
|
-
s.inlineContent &&
|
|
664
|
+
s.inlineContent && O(e, t + n - 1, s, o.node().contentMatchAt(o.index()), r == null);
|
|
587
665
|
let l = e.mapping.slice(c), u = l.map(t - n);
|
|
588
666
|
if (e.step(new T(u, l.map(t + n, -1), i.empty, !0)), r === !0) {
|
|
589
667
|
let t = e.doc.resolve(u);
|
|
590
|
-
|
|
668
|
+
M(e, t.node(), t.before(), e.steps.length);
|
|
591
669
|
}
|
|
592
670
|
return e;
|
|
593
671
|
}
|
|
594
|
-
function
|
|
672
|
+
function z(e, t, n) {
|
|
595
673
|
let r = e.resolve(t);
|
|
596
674
|
if (r.parent.canReplaceWith(r.index(), r.index(), n)) return t;
|
|
597
675
|
if (r.parentOffset == 0) for (let e = r.depth - 1; e >= 0; e--) {
|
|
@@ -606,15 +684,31 @@ function ne(e, t, n) {
|
|
|
606
684
|
}
|
|
607
685
|
return null;
|
|
608
686
|
}
|
|
609
|
-
function
|
|
687
|
+
function B(e, t, n) {
|
|
688
|
+
let r = e.resolve(t);
|
|
689
|
+
if (!n.content.size) return t;
|
|
690
|
+
let i = n.content;
|
|
691
|
+
for (let e = 0; e < n.openStart; e++) i = i.firstChild.content;
|
|
692
|
+
for (let e = 1; e <= (n.openStart == 0 && n.size ? 2 : 1); e++) for (let t = r.depth; t >= 0; t--) {
|
|
693
|
+
let n = t == r.depth ? 0 : r.pos <= (r.start(t + 1) + r.end(t + 1)) / 2 ? -1 : 1, a = r.index(t) + +(n > 0), o = r.node(t), s = !1;
|
|
694
|
+
if (e == 1) s = o.canReplace(a, a, i);
|
|
695
|
+
else {
|
|
696
|
+
let e = o.contentMatchAt(a).findWrapping(i.firstChild.type);
|
|
697
|
+
s = e && o.canReplaceWith(a, a, e[0]);
|
|
698
|
+
}
|
|
699
|
+
if (s) return n == 0 ? r.pos : n < 0 ? r.before(t + 1) : r.after(t + 1);
|
|
700
|
+
}
|
|
701
|
+
return null;
|
|
702
|
+
}
|
|
703
|
+
function V(e, t, n = t, r = i.empty) {
|
|
610
704
|
if (t == n && !r.size) return null;
|
|
611
705
|
let a = e.resolve(t), o = e.resolve(n);
|
|
612
|
-
return
|
|
706
|
+
return H(a, o, r) ? new T(t, n, r) : new fe(a, o, r).fit();
|
|
613
707
|
}
|
|
614
|
-
function
|
|
708
|
+
function H(e, t, n) {
|
|
615
709
|
return !n.openStart && !n.openEnd && e.start() == t.start() && e.parent.canReplace(e.index(), t.index(), n.content);
|
|
616
710
|
}
|
|
617
|
-
var
|
|
711
|
+
var fe = class {
|
|
618
712
|
constructor(t, n, r) {
|
|
619
713
|
this.$from = t, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = e.empty;
|
|
620
714
|
for (let e = 0; e <= t.depth; e++) {
|
|
@@ -653,7 +747,7 @@ var z = class {
|
|
|
653
747
|
}
|
|
654
748
|
for (let n = 1; n <= 2; n++) for (let r = n == 1 ? t : this.unplaced.openStart; r >= 0; r--) {
|
|
655
749
|
let t, i = null;
|
|
656
|
-
r ? (i =
|
|
750
|
+
r ? (i = G(this.unplaced.content, r - 1).firstChild, t = i.content) : t = this.unplaced.content;
|
|
657
751
|
let a = t.firstChild;
|
|
658
752
|
for (let t = this.depth; t >= 0; t--) {
|
|
659
753
|
let { type: o, match: s } = this.frontier[t], c, l = null;
|
|
@@ -674,15 +768,15 @@ var z = class {
|
|
|
674
768
|
}
|
|
675
769
|
}
|
|
676
770
|
openMore() {
|
|
677
|
-
let { content: e, openStart: t, openEnd: n } = this.unplaced, r =
|
|
771
|
+
let { content: e, openStart: t, openEnd: n } = this.unplaced, r = G(e, t);
|
|
678
772
|
return !r.childCount || r.firstChild.isLeaf ? !1 : (this.unplaced = new i(e, t + 1, Math.max(n, r.size + t >= e.size - n ? t + 1 : 0)), !0);
|
|
679
773
|
}
|
|
680
774
|
dropNode() {
|
|
681
|
-
let { content: e, openStart: t, openEnd: n } = this.unplaced, r =
|
|
775
|
+
let { content: e, openStart: t, openEnd: n } = this.unplaced, r = G(e, t);
|
|
682
776
|
if (r.childCount <= 1 && t > 0) {
|
|
683
777
|
let a = e.size - t <= t + r.size;
|
|
684
|
-
this.unplaced = new i(
|
|
685
|
-
} else this.unplaced = new i(
|
|
778
|
+
this.unplaced = new i(U(e, t - 1, 1), t - 1, a ? t - 1 : n);
|
|
779
|
+
} else this.unplaced = new i(U(e, t, 1), t, n);
|
|
686
780
|
}
|
|
687
781
|
placeNodes({ sliceDepth: t, frontierDepth: n, parent: r, inject: a, wrap: o }) {
|
|
688
782
|
for (; this.depth > n;) this.closeFrontierNode();
|
|
@@ -696,10 +790,10 @@ var z = class {
|
|
|
696
790
|
for (; u < c.childCount;) {
|
|
697
791
|
let e = c.child(u), t = f.matchType(e.type);
|
|
698
792
|
if (!t) break;
|
|
699
|
-
u++, (u > 1 || l == 0 || e.content.size) && (f = t, d.push(
|
|
793
|
+
u++, (u > 1 || l == 0 || e.content.size) && (f = t, d.push(K(e.mark(p.allowedMarks(e.marks)), u == 1 ? l : 0, u == c.childCount ? m : -1)));
|
|
700
794
|
}
|
|
701
795
|
let h = u == c.childCount;
|
|
702
|
-
h || (m = -1), this.placed =
|
|
796
|
+
h || (m = -1), this.placed = W(this.placed, n, e.from(d)), this.frontier[n].match = f, h && m < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
703
797
|
for (let e = 0, t = c; e < m; e++) {
|
|
704
798
|
let e = t.lastChild;
|
|
705
799
|
this.frontier.push({
|
|
@@ -707,22 +801,22 @@ var z = class {
|
|
|
707
801
|
match: e.contentMatchAt(e.childCount)
|
|
708
802
|
}), t = e.content;
|
|
709
803
|
}
|
|
710
|
-
this.unplaced = h ? t == 0 ? i.empty : new i(
|
|
804
|
+
this.unplaced = h ? t == 0 ? i.empty : new i(U(s.content, t - 1, 1), t - 1, m < 0 ? s.openEnd : t - 1) : new i(U(s.content, t, u), s.openStart, s.openEnd);
|
|
711
805
|
}
|
|
712
806
|
mustMoveInline() {
|
|
713
807
|
if (!this.$to.parent.isTextblock) return -1;
|
|
714
808
|
let e = this.frontier[this.depth], t;
|
|
715
|
-
if (!e.type.isTextblock || !
|
|
809
|
+
if (!e.type.isTextblock || !q(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth) return -1;
|
|
716
810
|
let { depth: n } = this.$to, r = this.$to.after(n);
|
|
717
811
|
for (; n > 1 && r == this.$to.end(--n);) ++r;
|
|
718
812
|
return r;
|
|
719
813
|
}
|
|
720
814
|
findCloseLevel(e) {
|
|
721
815
|
scan: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
|
|
722
|
-
let { match: n, type: r } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), a =
|
|
816
|
+
let { match: n, type: r } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), a = q(e, t, r, n, i);
|
|
723
817
|
if (a) {
|
|
724
818
|
for (let n = t - 1; n >= 0; n--) {
|
|
725
|
-
let { match: t, type: r } = this.frontier[n], i =
|
|
819
|
+
let { match: t, type: r } = this.frontier[n], i = q(e, n, r, t, !0);
|
|
726
820
|
if (!i || i.childCount) continue scan;
|
|
727
821
|
}
|
|
728
822
|
return {
|
|
@@ -737,7 +831,7 @@ var z = class {
|
|
|
737
831
|
let t = this.findCloseLevel(e);
|
|
738
832
|
if (!t) return null;
|
|
739
833
|
for (; this.depth > t.depth;) this.closeFrontierNode();
|
|
740
|
-
t.fit.childCount && (this.placed =
|
|
834
|
+
t.fit.childCount && (this.placed = W(this.placed, t.depth, t.fit)), e = t.move;
|
|
741
835
|
for (let n = t.depth + 1; n <= e.depth; n++) {
|
|
742
836
|
let t = e.node(n), r = t.type.contentMatch.fillBefore(t.content, !0, e.index(n));
|
|
743
837
|
this.openFrontierNode(t.type, t.attrs, r);
|
|
@@ -746,48 +840,48 @@ var z = class {
|
|
|
746
840
|
}
|
|
747
841
|
openFrontierNode(t, n = null, r) {
|
|
748
842
|
let i = this.frontier[this.depth];
|
|
749
|
-
i.match = i.match.matchType(t), this.placed =
|
|
843
|
+
i.match = i.match.matchType(t), this.placed = W(this.placed, this.depth, e.from(t.create(n, r))), this.frontier.push({
|
|
750
844
|
type: t,
|
|
751
845
|
match: t.contentMatch
|
|
752
846
|
});
|
|
753
847
|
}
|
|
754
848
|
closeFrontierNode() {
|
|
755
849
|
let t = this.frontier.pop().match.fillBefore(e.empty, !0);
|
|
756
|
-
t.childCount && (this.placed =
|
|
850
|
+
t.childCount && (this.placed = W(this.placed, this.frontier.length, t));
|
|
757
851
|
}
|
|
758
852
|
};
|
|
759
|
-
function
|
|
760
|
-
return t == 0 ? e.cutByIndex(n, e.childCount) : e.replaceChild(0, e.firstChild.copy(
|
|
853
|
+
function U(e, t, n) {
|
|
854
|
+
return t == 0 ? e.cutByIndex(n, e.childCount) : e.replaceChild(0, e.firstChild.copy(U(e.firstChild.content, t - 1, n)));
|
|
761
855
|
}
|
|
762
|
-
function
|
|
763
|
-
return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(
|
|
856
|
+
function W(e, t, n) {
|
|
857
|
+
return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(W(e.lastChild.content, t - 1, n)));
|
|
764
858
|
}
|
|
765
|
-
function
|
|
859
|
+
function G(e, t) {
|
|
766
860
|
for (let n = 0; n < t; n++) e = e.firstChild.content;
|
|
767
861
|
return e;
|
|
768
862
|
}
|
|
769
|
-
function
|
|
863
|
+
function K(t, n, r) {
|
|
770
864
|
if (n <= 0) return t;
|
|
771
865
|
let i = t.content;
|
|
772
|
-
return n > 1 && (i = i.replaceChild(0,
|
|
866
|
+
return n > 1 && (i = i.replaceChild(0, K(i.firstChild, n - 1, i.childCount == 1 ? r - 1 : 0))), n > 0 && (i = t.type.contentMatch.fillBefore(i).append(i), r <= 0 && (i = i.append(t.type.contentMatch.matchFragment(i).fillBefore(e.empty, !0)))), t.copy(i);
|
|
773
867
|
}
|
|
774
|
-
function
|
|
868
|
+
function q(e, t, n, r, i) {
|
|
775
869
|
let a = e.node(t), o = i ? e.indexAfter(t) : e.index(t);
|
|
776
870
|
if (o == a.childCount && !n.compatibleContent(a.type)) return null;
|
|
777
871
|
let s = r.fillBefore(a.content, !0, o);
|
|
778
|
-
return s && !
|
|
872
|
+
return s && !pe(n, a.content, o) ? s : null;
|
|
779
873
|
}
|
|
780
|
-
function
|
|
874
|
+
function pe(e, t, n) {
|
|
781
875
|
for (let r = n; r < t.childCount; r++) if (!e.allowsMarks(t.child(r).marks)) return !0;
|
|
782
876
|
return !1;
|
|
783
877
|
}
|
|
784
|
-
function
|
|
878
|
+
function me(e) {
|
|
785
879
|
return e.spec.defining || e.spec.definingForContent;
|
|
786
880
|
}
|
|
787
|
-
function
|
|
881
|
+
function he(e, t, n, r) {
|
|
788
882
|
if (!r.size) return e.deleteRange(t, n);
|
|
789
883
|
let a = e.doc.resolve(t), o = e.doc.resolve(n);
|
|
790
|
-
if (
|
|
884
|
+
if (H(a, o, r)) return e.step(new T(t, n, r));
|
|
791
885
|
let s = X(a, o);
|
|
792
886
|
s[s.length - 1] == 0 && s.pop();
|
|
793
887
|
let c = -(a.depth + 1);
|
|
@@ -804,7 +898,7 @@ function q(e, t, n, r) {
|
|
|
804
898
|
e = n.content;
|
|
805
899
|
}
|
|
806
900
|
for (let e = d - 1; e >= 0; e--) {
|
|
807
|
-
let t = u[e], n =
|
|
901
|
+
let t = u[e], n = me(t.type);
|
|
808
902
|
if (n && !t.sameMarkup(a.node(Math.abs(c) - 1))) d = e;
|
|
809
903
|
else if (n || !t.type.isTextblock) break;
|
|
810
904
|
}
|
|
@@ -836,12 +930,12 @@ function J(t, n, r, i, a) {
|
|
|
836
930
|
}
|
|
837
931
|
function Y(t, n, r, a) {
|
|
838
932
|
if (!a.isInline && n == r && t.doc.resolve(n).parent.content.size) {
|
|
839
|
-
let e =
|
|
933
|
+
let e = z(t.doc, n, a.type);
|
|
840
934
|
e != null && (n = r = e);
|
|
841
935
|
}
|
|
842
936
|
t.replaceRange(n, r, new i(e.from(a), 0, 0));
|
|
843
937
|
}
|
|
844
|
-
function
|
|
938
|
+
function ge(e, t, n) {
|
|
845
939
|
let r = e.doc.resolve(t), i = e.doc.resolve(n);
|
|
846
940
|
if (r.parent.isTextblock && i.parent.isTextblock && r.start() != i.start() && r.parentOffset == 0 && i.parentOffset == 0) {
|
|
847
941
|
let a = r.sharedDepth(n), o = !1;
|
|
@@ -946,7 +1040,7 @@ $ = function e(t) {
|
|
|
946
1040
|
let n = Error.call(this, t);
|
|
947
1041
|
return n.__proto__ = e.prototype, n;
|
|
948
1042
|
}, $.prototype = Object.create(Error.prototype), $.prototype.constructor = $, $.prototype.name = "TransformError";
|
|
949
|
-
var
|
|
1043
|
+
var _e = class {
|
|
950
1044
|
constructor(e) {
|
|
951
1045
|
this.doc = e, this.steps = [], this.docs = [], this.mapping = new g();
|
|
952
1046
|
}
|
|
@@ -982,7 +1076,7 @@ var ae = class {
|
|
|
982
1076
|
this.docs.push(this.doc), this.steps.push(e), this.mapping.appendMap(e.getMap()), this.doc = t;
|
|
983
1077
|
}
|
|
984
1078
|
replace(e, t = e, n = i.empty) {
|
|
985
|
-
let r =
|
|
1079
|
+
let r = V(this.doc, e, t, n);
|
|
986
1080
|
return r && this.step(r), this;
|
|
987
1081
|
}
|
|
988
1082
|
replaceWith(t, n, r) {
|
|
@@ -995,28 +1089,28 @@ var ae = class {
|
|
|
995
1089
|
return this.replaceWith(e, e, t);
|
|
996
1090
|
}
|
|
997
1091
|
replaceRange(e, t, n) {
|
|
998
|
-
return
|
|
1092
|
+
return he(this, e, t, n), this;
|
|
999
1093
|
}
|
|
1000
1094
|
replaceRangeWith(e, t, n) {
|
|
1001
1095
|
return Y(this, e, t, n), this;
|
|
1002
1096
|
}
|
|
1003
1097
|
deleteRange(e, t) {
|
|
1004
|
-
return
|
|
1098
|
+
return ge(this, e, t), this;
|
|
1005
1099
|
}
|
|
1006
1100
|
lift(e, t) {
|
|
1007
|
-
return
|
|
1101
|
+
return ie(this, e, t), this;
|
|
1008
1102
|
}
|
|
1009
1103
|
join(e, t = 1) {
|
|
1010
|
-
return
|
|
1104
|
+
return R(this, e, t), this;
|
|
1011
1105
|
}
|
|
1012
1106
|
wrap(e, t) {
|
|
1013
|
-
return
|
|
1107
|
+
return A(this, e, t), this;
|
|
1014
1108
|
}
|
|
1015
1109
|
setBlockType(e, t = e, n, r = null) {
|
|
1016
|
-
return
|
|
1110
|
+
return j(this, e, t, n, r), this;
|
|
1017
1111
|
}
|
|
1018
1112
|
setNodeMarkup(e, t, n = null, r) {
|
|
1019
|
-
return
|
|
1113
|
+
return F(this, e, t, n, r), this;
|
|
1020
1114
|
}
|
|
1021
1115
|
setNodeAttribute(e, t, n) {
|
|
1022
1116
|
return this.step(new Z(e, t, n)), this;
|
|
@@ -1039,17 +1133,17 @@ var ae = class {
|
|
|
1039
1133
|
return this;
|
|
1040
1134
|
}
|
|
1041
1135
|
split(e, t = 1, n) {
|
|
1042
|
-
return
|
|
1136
|
+
return le(this, e, t, n), this;
|
|
1043
1137
|
}
|
|
1044
1138
|
addMark(e, t, n) {
|
|
1045
|
-
return
|
|
1139
|
+
return ee(this, e, t, n), this;
|
|
1046
1140
|
}
|
|
1047
1141
|
removeMark(e, t, n) {
|
|
1048
|
-
return
|
|
1142
|
+
return te(this, e, t, n), this;
|
|
1049
1143
|
}
|
|
1050
1144
|
clearIncompatible(e, t, n) {
|
|
1051
|
-
return
|
|
1145
|
+
return O(this, e, t, n), this;
|
|
1052
1146
|
}
|
|
1053
1147
|
};
|
|
1054
1148
|
//#endregion
|
|
1055
|
-
export { g as Mapping, E as ReplaceAroundStep, T as ReplaceStep,
|
|
1149
|
+
export { x as AddMarkStep, C as AddNodeMarkStep, Z as AttrStep, Q as DocAttrStep, m as MapResult, g as Mapping, S as RemoveMarkStep, w as RemoveNodeMarkStep, E as ReplaceAroundStep, T as ReplaceStep, v as Step, h as StepMap, y as StepResult, _e as Transform, $ as TransformError, ue as canJoin, ce as canSplit, B as dropPoint, ae as findWrapping, z as insertPoint, L as joinPoint, re as liftTarget, V as replaceStep };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=require(`./ContractTemplateChoiceOptionsEditor.vue.cjs`).default;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);let e=require(`vue`),t=require(`ant-design-vue`),n=require(`@ant-design/icons-vue`);var r={class:`gd-contract-choice-options`},i={key:0,class:`gd-contract-choice-options__error`},a={class:`gd-contract-choice-options__actions`},o=(0,e.defineComponent)({name:`ContractTemplateChoiceOptionsEditor`,__name:`ContractTemplateChoiceOptionsEditor`,props:{options:{},variableType:{},readonly:{type:Boolean}},emits:[`change`],setup(o,{emit:s}){let c=o,l=s,u=(0,e.ref)((c.options??[]).map(e=>({label:e.label??``,value:String(e.value??``)}))),d=(0,e.computed)(()=>u.value.map((e,t)=>f(u.value,t)));function f(e,t){let n=e[t]?.label.trim()??``,r=e[t]?.value.trim()??``;return n?r?e.some((e,n)=>n!==t&&e.value.trim()===r)?`选项值不能重复`:``:`选项值不能为空`:`显示文本不能为空`}function p(){c.readonly||d.value.some(Boolean)||l(`change`,u.value.map(e=>({value:e.value.trim(),label:e.label.trim(),type:c.variableType||`select`})))}function m(e,t){c.readonly||(u.value=u.value.map((n,r)=>r===e?{...n,...t}:n),p())}function h(e,t){if(c.readonly)return;let n=e+t;if(n<0||n>=u.value.length)return;let r=u.value.slice(),[i]=r.splice(e,1);r.splice(n,0,i),u.value=r,p()}function g(e){c.readonly||(u.value=u.value.filter((t,n)=>n!==e),p())}function _(){if(c.readonly)return;let e=new Set(u.value.flatMap(e=>[e.label.trim(),e.value.trim()])),t=u.value.length+1;for(;e.has(`选项${t}`)||e.has(`option${t}`);)t+=1;u.value=[...u.value,{label:`选项${t}`,value:`option${t}`}],p()}return(s,c)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,r,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(u.value,(r,s)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:s,class:(0,e.normalizeClass)([`gd-contract-choice-options__row`,{"is-invalid":!!d.value[s]}])},[(0,e.createVNode)((0,e.unref)(t.Input),{value:r.label,disabled:o.readonly,placeholder:`显示文本`,"aria-label":`选项 ${s+1} 显示文本`,"onUpdate:value":e=>m(s,{label:String(e??``)})},null,8,[`value`,`disabled`,`aria-label`,`onUpdate:value`]),(0,e.createVNode)((0,e.unref)(t.Input),{value:r.value,disabled:o.readonly,placeholder:`选项值`,"aria-label":`选项 ${s+1} 选项值`,"onUpdate:value":e=>m(s,{value:String(e??``)})},null,8,[`value`,`disabled`,`aria-label`,`onUpdate:value`]),d.value[s]?((0,e.openBlock)(),(0,e.createElementBlock)(`p`,i,(0,e.toDisplayString)(d.value[s]),1)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,a,[(0,e.createVNode)((0,e.unref)(t.Button),{type:`text`,size:`small`,disabled:o.readonly||s===0,"aria-label":`上移选项`,onClick:e=>h(s,-1)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.ArrowUpOutlined),{"aria-hidden":`true`})]),_:1},8,[`disabled`,`onClick`]),(0,e.createVNode)((0,e.unref)(t.Button),{type:`text`,size:`small`,disabled:o.readonly||s===u.value.length-1,"aria-label":`下移选项`,onClick:e=>h(s,1)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.ArrowDownOutlined),{"aria-hidden":`true`})]),_:1},8,[`disabled`,`onClick`]),(0,e.createVNode)((0,e.unref)(t.Button),{type:`text`,size:`small`,danger:``,disabled:o.readonly,"aria-label":`删除选项`,onClick:e=>g(s)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.DeleteOutlined),{"aria-hidden":`true`})]),_:1},8,[`disabled`,`onClick`])])],2))),128)),(0,e.createVNode)((0,e.unref)(t.Button),{block:``,disabled:o.readonly,"aria-label":`添加选项`,onClick:_},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.PlusOutlined),{"aria-hidden":`true`}),c[0]||=(0,e.createTextVNode)(` 添加选项 `,-1)]),_:1},8,[`disabled`])]))}});exports.default=o;
|