@gct-paas/design 0.1.4-dev.12 → 0.1.4-dev.13
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/loader.esm.min.js +6719 -0
- package/es/components/design-icon-button/design-icon-button.mjs +1 -1
- package/es/components/design-save-tip/design-save-tip.mjs +1 -1
- package/es/components/design-step-check/design-step-check.mjs +1 -1
- package/es/components/design-view-layout/design-view-layout.mjs +1 -1
- package/es/components/editor/style/border-editor/border-box.vue_vue_type_script_setup_true_name_border-box_lang.mjs +1 -1
- package/es/components/editor/style/border-editor/border-editor.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/editor/style/border-editor/border-radius.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/editor/style/font-editor/align-group.vue_vue_type_script_setup_true_name_align-group_lang.mjs +1 -1
- package/es/components/editor/style/font-editor/font-editor.vue_vue_type_script_setup_true_name_font-editor_lang.mjs +1 -1
- package/es/components/editor/style/font-editor/font-style-group.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/editor/style/position-editor/position-editor.vue_vue_type_script_setup_true_name_position-editor_lang.mjs +1 -1
- package/es/components/editor/style/spacing-editor/spacing-editor.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/field-cascader/src/hooks.mjs +1 -1
- package/es/components/field-transfer/components/Cascader/FieldCascader.mjs +1 -1
- package/es/components/field-transfer/components/Transfer/AdvancedTransfer.mjs +1 -1
- package/es/components/field-transfer/components/Transfer/FieldTransfer.mjs +1 -1
- package/es/components/field-transfer/components/Transfer/TransferTree.mjs +1 -1
- package/es/components/field-transfer/components/Transfer/TreeItem.mjs +1 -1
- package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_script_setup_true_name_field-transfer-modal_lang.mjs +1 -1
- package/es/components/field-transfer/useFieldTransfer.mjs +1 -1
- package/es/components/mobile-container/mobile-container.mjs +1 -1
- package/es/components/modal-name-editor/modal-name-editor.mjs +1 -1
- package/es/components/user-occupy/useUserOccupy.mjs +1 -1
- package/es/components/user-occupy/user-lock.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/user-occupy/user-occupy.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/constant/page-designer.d.ts +1 -12
- package/es/constant/page-designer.mjs +2 -15
- package/es/data/design-node/design-node.mjs +3 -3
- package/es/hooks/design-view/design-state.mjs +1 -1
- package/es/hooks/design-view/designer/useDesignModal.mjs +1 -1
- package/es/hooks/design-view/designer/useDesignPreview.mjs +1 -1
- package/es/hooks/design-view/global/useGlobal.mjs +1 -1
- package/es/hooks/design-view/layout/useScope.mjs +1 -1
- package/es/hooks/design-view/layout/useToolkit.mjs +1 -1
- package/es/hooks/design-view/page/usePage.mjs +1 -1
- package/es/hooks/design-view/useDesigner.mjs +1 -1
- package/es/hooks/design-view/widget/useSelectedWidget.mjs +1 -1
- package/es/hooks/design-view/widget/useWidget.mjs +1 -1
- package/es/hooks/design-view/widget/useWidgetQuery.mjs +1 -1
- package/es/hooks/design-view/widget/useWidgetRegistry.mjs +1 -1
- package/es/hooks/develop/useCacheHistory.mjs +1 -1
- package/es/hooks/develop/useKeyParser.mjs +1 -1
- package/es/hooks/use-model-field/use-model-field.mjs +1 -1
- package/es/hooks/widgets/useAsyncFields.mjs +1 -1
- package/es/index.mjs +3 -2
- package/es/loader.d.ts +1 -0
- package/es/schema/common-config/column-editor-config.d.ts +6 -0
- package/es/schema/common-config/column-editor-config.mjs +28 -0
- package/es/schema/index.d.ts +1 -0
- package/es/schema/index.mjs +1 -0
- package/es/utils/design-view/index.mjs +1 -1
- package/package.json +8 -8
- package/dist/index.esm.min.js +0 -16912
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './design-icon-button.css';/* empty css */
|
|
2
|
-
import { computed, createVNode, defineComponent, ref, resolveComponent } from "vue";
|
|
3
2
|
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { computed, createVNode, defineComponent, ref, resolveComponent } from "vue";
|
|
4
4
|
//#region src/components/design-icon-button/design-icon-button.tsx
|
|
5
5
|
var DesignIconButton = /* @__PURE__ */ defineComponent({
|
|
6
6
|
name: "DesignIconButton",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './design-save-tip.css';/* empty css */
|
|
2
|
-
import { createVNode, defineComponent, isVNode, resolveComponent } from "vue";
|
|
3
2
|
import { t, useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { createVNode, defineComponent, isVNode, resolveComponent } from "vue";
|
|
4
4
|
//#region src/components/design-save-tip/design-save-tip.tsx
|
|
5
5
|
function _isSlot(s) {
|
|
6
6
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './design-step-check.css';/* empty css */
|
|
2
|
-
import { createVNode, defineComponent, nextTick, onMounted, ref, toRefs, watch } from "vue";
|
|
3
2
|
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { createVNode, defineComponent, nextTick, onMounted, ref, toRefs, watch } from "vue";
|
|
4
4
|
//#region src/components/design-step-check/design-step-check.tsx
|
|
5
5
|
/**
|
|
6
6
|
* 设计界面步骤选择
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DesignStepCheck } from "../design-step-check/design-step-check.mjs";
|
|
2
2
|
import { ModalNameEditor } from "../modal-name-editor/modal-name-editor.mjs";
|
|
3
3
|
import './design-view-layout.css';/* empty css */
|
|
4
|
-
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, ref, resolveComponent, toRefs } from "vue";
|
|
5
4
|
import { t, useNamespace } from "@gct-paas/core";
|
|
5
|
+
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, ref, resolveComponent, toRefs } from "vue";
|
|
6
6
|
//#region src/components/design-view-layout/design-view-layout.tsx
|
|
7
7
|
function _isSlot(s) {
|
|
8
8
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseBorderItem, parsePos, parseValueUnit as parseValueUnit$1 } from "./util.mjs";
|
|
2
|
-
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, normalizeClass, normalizeStyle, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
2
|
import { BorderStyle, emitFieldSet, presetColor, t } from "@gct-paas/core";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, normalizeClass, normalizeStyle, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
4
|
//#region src/components/editor/style/border-editor/border-box.vue?vue&type=script&setup=true&name=border-box&lang.ts
|
|
5
5
|
var _hoisted_1 = { class: "border-box" };
|
|
6
6
|
var _hoisted_2 = { class: "border-div" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import border_box_default from "./border-box.vue.mjs";
|
|
2
2
|
import border_radius_default from "./border-radius.vue.mjs";
|
|
3
3
|
import { pick } from "lodash-es";
|
|
4
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, isRef, normalizeClass, openBlock, unref } from "vue";
|
|
5
4
|
import { emitFieldSet, useNamespace } from "@gct-paas/core";
|
|
5
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, isRef, normalizeClass, openBlock, unref } from "vue";
|
|
6
6
|
//#region src/components/editor/style/border-editor/border-editor.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var border_editor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "border-editor",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseRadiusType, parseValueUnit as parseValueUnit$1 } from "./util.mjs";
|
|
2
|
-
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
2
|
import { emitFieldSet, t } from "@gct-paas/core";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
4
|
//#region src/components/editor/style/border-editor/border-radius.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = { class: "radius-box" };
|
|
6
6
|
var _hoisted_2 = { class: "radius-div" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, resolveComponent, toDisplayString, withCtx } from "vue";
|
|
2
1
|
import { TextAlign, t } from "@gct-paas/core";
|
|
2
|
+
import { Fragment, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, resolveComponent, toDisplayString, withCtx } from "vue";
|
|
3
3
|
//#region src/components/editor/style/font-editor/align-group.vue?vue&type=script&setup=true&name=align-group&lang.ts
|
|
4
4
|
var _hoisted_1 = { class: "align-group-box" };
|
|
5
5
|
var _hoisted_2 = ["onClick"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefaultFont } from "./util.mjs";
|
|
2
2
|
import font_style_group_default from "./font-style-group.vue.mjs";
|
|
3
3
|
import align_group_default from "./align-group.vue.mjs";
|
|
4
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, openBlock, resolveComponent, unref } from "vue";
|
|
5
4
|
import { emitFieldSet } from "@gct-paas/core";
|
|
5
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, openBlock, resolveComponent, unref } from "vue";
|
|
6
6
|
//#region src/components/editor/style/font-editor/font-editor.vue?vue&type=script&setup=true&name=font-editor&lang.ts
|
|
7
7
|
var _hoisted_1 = { class: "font-editor" };
|
|
8
8
|
var _hoisted_2 = { class: "ks-row-middle mb5px" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultFont } from "./util.mjs";
|
|
2
|
-
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
2
|
import { TextDecoration, emitFieldSet, t } from "@gct-paas/core";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
4
|
import { BoldOutlined, ItalicOutlined, StrikethroughOutlined, UnderlineOutlined } from "@ant-design/icons-vue";
|
|
5
5
|
//#region src/components/editor/style/font-editor/font-style-group.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = { class: "font-style-box" };
|
|
@@ -3,8 +3,8 @@ import downleft_icon_default from "../../../icon/downleft-icon.vue.mjs";
|
|
|
3
3
|
import downright_icon_default from "../../../icon/downright-icon.vue.mjs";
|
|
4
4
|
import upright_icon_default from "../../../icon/upright-icon.vue.mjs";
|
|
5
5
|
import { merge } from "lodash-es";
|
|
6
|
-
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, openBlock, resolveComponent, unref, vModelText, withCtx, withDirectives } from "vue";
|
|
7
6
|
import { Postion, emitFieldSet, t } from "@gct-paas/core";
|
|
7
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, openBlock, resolveComponent, unref, vModelText, withCtx, withDirectives } from "vue";
|
|
8
8
|
//#region src/components/editor/style/position-editor/position-editor.vue?vue&type=script&setup=true&name=position-editor&lang.ts
|
|
9
9
|
var _hoisted_1 = { class: "position-editor" };
|
|
10
10
|
var _hoisted_2 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, normalizeClass, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
2
1
|
import { emitFieldSet, parseValueUnit } from "@gct-paas/core";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, normalizeClass, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
3
|
//#region src/components/editor/style/spacing-editor/spacing-editor.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var _hoisted_1 = { class: "spacing-editor" };
|
|
5
5
|
var _hoisted_2 = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import SearchInput_default from "./SearchInput.vue.mjs";
|
|
2
|
-
import { computed, createTextVNode, createVNode, h, onMounted, reactive, ref } from "vue";
|
|
3
2
|
import { FIELD_TYPE } from "@gct-paas/core";
|
|
3
|
+
import { computed, createTextVNode, createVNode, h, onMounted, reactive, ref } from "vue";
|
|
4
4
|
//#region src/components/field-cascader/src/hooks.tsx
|
|
5
5
|
function useFieldCascader(props, { onFieldClick }) {
|
|
6
6
|
const { fieldMetaList, modelName, maxLevel, filterFieldByFunction = () => true } = props;
|
|
@@ -2,8 +2,8 @@ import { useModelField } from "../../../../hooks/use-model-field/use-model-field
|
|
|
2
2
|
import "../../../../hooks/index.mjs";
|
|
3
3
|
import '../../less/FieldCascader.css';/* empty css */
|
|
4
4
|
import { has, isEmpty } from "lodash-es";
|
|
5
|
-
import { Fragment, computed, createTextVNode, createVNode, defineComponent, ref } from "vue";
|
|
6
5
|
import { FIELD_TYPE, SCOPEINFO, t } from "@gct-paas/core";
|
|
6
|
+
import { Fragment, computed, createTextVNode, createVNode, defineComponent, ref } from "vue";
|
|
7
7
|
import { DownOutlined } from "@ant-design/icons-vue";
|
|
8
8
|
import { Cascader, Tooltip } from "ant-design-vue";
|
|
9
9
|
//#region src/components/field-transfer/components/Cascader/FieldCascader.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import TransferTree_default from "./TransferTree.mjs";
|
|
2
2
|
import '../../less/AdvancedTransfer.css';/* empty css */
|
|
3
|
-
import { computed, createVNode, defineComponent, ref, toRefs, watch } from "vue";
|
|
4
3
|
import { FieldIconMap, t } from "@gct-paas/core";
|
|
4
|
+
import { computed, createVNode, defineComponent, ref, toRefs, watch } from "vue";
|
|
5
5
|
import { Empty, Transfer } from "ant-design-vue";
|
|
6
6
|
//#region src/components/field-transfer/components/Transfer/AdvancedTransfer.tsx
|
|
7
7
|
var AdvancedTransfer_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2,8 +2,8 @@ import { useModelField } from "../../../../hooks/use-model-field/use-model-field
|
|
|
2
2
|
import "../../../../hooks/index.mjs";
|
|
3
3
|
import AdvancedColumnSetting_default from "./AdvancedColumnSetting.mjs";
|
|
4
4
|
import { isEmpty } from "lodash-es";
|
|
5
|
-
import { computed, createVNode, defineComponent, toRaw } from "vue";
|
|
6
5
|
import { SCOPEINFO } from "@gct-paas/core";
|
|
6
|
+
import { computed, createVNode, defineComponent, toRaw } from "vue";
|
|
7
7
|
//#region src/components/field-transfer/components/Transfer/FieldTransfer.tsx
|
|
8
8
|
var FieldTransfer_default = /* @__PURE__ */ defineComponent({
|
|
9
9
|
name: "FieldTransfer",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { traverseFilter } from "../../utils/tree-tool.mjs";
|
|
2
2
|
import TreeItem_default from "./TreeItem.mjs";
|
|
3
3
|
import '../../less/TransferTree.css';/* empty css */
|
|
4
|
-
import { computed, createVNode, defineComponent, ref, toRefs } from "vue";
|
|
5
4
|
import { FieldIconMap, t } from "@gct-paas/core";
|
|
5
|
+
import { computed, createVNode, defineComponent, ref, toRefs } from "vue";
|
|
6
6
|
import { Empty, Input, Tree } from "ant-design-vue";
|
|
7
7
|
//#region src/components/field-transfer/components/Transfer/TransferTree.tsx
|
|
8
8
|
var TransferTree_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../less/TreeItem.css';/* empty css */
|
|
2
|
-
import { computed, createVNode, defineComponent } from "vue";
|
|
3
2
|
import { t } from "@gct-paas/core";
|
|
3
|
+
import { computed, createVNode, defineComponent } from "vue";
|
|
4
4
|
import { Tooltip } from "ant-design-vue";
|
|
5
5
|
//#region src/components/field-transfer/components/Transfer/TreeItem.tsx
|
|
6
6
|
var TreeItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -3,8 +3,8 @@ import "../../../hooks/index.mjs";
|
|
|
3
3
|
import FieldCascader_default from "./Cascader/FieldCascader.mjs";
|
|
4
4
|
import FieldTransfer_default from "./Transfer/FieldTransfer.mjs";
|
|
5
5
|
import { isEmpty, pick } from "lodash-es";
|
|
6
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, onBeforeMount, openBlock, ref, resolveComponent, toDisplayString, toRaw, unref, watch, withCtx } from "vue";
|
|
7
6
|
import { SCOPEINFO, t } from "@gct-paas/core";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, onBeforeMount, openBlock, ref, resolveComponent, toDisplayString, toRaw, unref, watch, withCtx } from "vue";
|
|
8
8
|
import { BasicModal, useModalInner } from "@gct-paas/core-web";
|
|
9
9
|
//#region src/components/field-transfer/components/field-transfer-modal.vue?vue&type=script&setup=true&name=field-transfer-modal&lang.ts
|
|
10
10
|
var _hoisted_1 = { class: "field-transfer-container" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import modal_wrapper_default from "./components/modal-wrapper.vue.mjs";
|
|
2
2
|
import { has } from "lodash-es";
|
|
3
|
-
import { ref, unref } from "vue";
|
|
4
3
|
import { OverlayContainer } from "@gct-paas/core";
|
|
4
|
+
import { ref, unref } from "vue";
|
|
5
5
|
//#region src/components/field-transfer/useFieldTransfer.ts
|
|
6
6
|
function useFieldTransfer() {
|
|
7
7
|
let app = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './mobile-container.css';/* empty css */
|
|
2
|
-
import { createVNode, defineComponent, ref } from "vue";
|
|
3
2
|
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { createVNode, defineComponent, ref } from "vue";
|
|
4
4
|
import { CloseOutlined } from "@ant-design/icons-vue";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
//#region src/components/mobile-container/mobile-container.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './modal-name-editor.css';/* empty css */
|
|
2
|
-
import { computed, createVNode, defineComponent, nextTick, ref, resolveComponent, watch } from "vue";
|
|
3
2
|
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { computed, createVNode, defineComponent, nextTick, ref, resolveComponent, watch } from "vue";
|
|
4
4
|
import { onClickOutside } from "@vueuse/core";
|
|
5
5
|
//#region src/components/modal-name-editor/modal-name-editor.tsx
|
|
6
6
|
var ModalNameEditor = /* @__PURE__ */ defineComponent({
|
|
@@ -4,8 +4,8 @@ import "../../hooks/design-view/page/usePage.mjs";
|
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { OCCUPY_MQTT_KEY } from "./occupy.const.mjs";
|
|
6
6
|
import { throttle } from "lodash-es";
|
|
7
|
-
import { computed, createVNode, ref } from "vue";
|
|
8
7
|
import { t } from "@gct-paas/core";
|
|
8
|
+
import { computed, createVNode, ref } from "vue";
|
|
9
9
|
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
|
10
10
|
import { Modal } from "ant-design-vue";
|
|
11
11
|
//#region src/components/user-occupy/useUserOccupy.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useUserOccupy } from "./useUserOccupy.mjs";
|
|
2
|
-
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
3
2
|
import { t } from "@gct-paas/core";
|
|
3
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
4
4
|
//#region src/components/user-occupy/user-lock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = { class: "user-lock-info" };
|
|
6
6
|
var user_lock_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useUserOccupy } from "./useUserOccupy.mjs";
|
|
2
|
-
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, resolveComponent, toDisplayString, unref } from "vue";
|
|
3
2
|
import { t } from "@gct-paas/core";
|
|
3
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, resolveComponent, toDisplayString, unref } from "vue";
|
|
4
4
|
//#region src/components/user-occupy/user-occupy.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = {
|
|
6
6
|
key: 0,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormDesignEnum, PrintTypeEnum } from '@gct-paas/core';
|
|
1
2
|
export declare enum MenuClickEvent {
|
|
2
3
|
NEW = "new",
|
|
3
4
|
EDIT = "edit",
|
|
@@ -35,23 +36,11 @@ export declare enum ScriptTypeEnum {
|
|
|
35
36
|
/** 编排 */
|
|
36
37
|
ORCHESTRATION = "so_module"
|
|
37
38
|
}
|
|
38
|
-
export declare enum PrintTypeEnum {
|
|
39
|
-
/** 标签 */
|
|
40
|
-
LABEL = "label_module",
|
|
41
|
-
/** 单据 */
|
|
42
|
-
RECEIPT = "document_module"
|
|
43
|
-
}
|
|
44
39
|
export declare enum ProcessTypeEnum {
|
|
45
40
|
/** 业务流 */
|
|
46
41
|
/** 审批流 */
|
|
47
42
|
APPROVAL = "approval_process_module"
|
|
48
43
|
}
|
|
49
|
-
export declare enum FormDesignEnum {
|
|
50
|
-
/**在线表单 */
|
|
51
|
-
ONLINE_FORM = "online_form_module",
|
|
52
|
-
/**eDHR */
|
|
53
|
-
EDHR = "edhr_module"
|
|
54
|
-
}
|
|
55
44
|
export declare const CategoryEnum: {
|
|
56
45
|
ONLINE_FORM: FormDesignEnum.ONLINE_FORM;
|
|
57
46
|
EDHR: FormDesignEnum.EDHR;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormDesignEnum, PrintTypeEnum } from "@gct-paas/core";
|
|
1
2
|
//#region src/constant/page-designer.ts
|
|
2
3
|
var MenuClickEvent = /* @__PURE__ */ function(MenuClickEvent) {
|
|
3
4
|
MenuClickEvent["NEW"] = "new";
|
|
@@ -40,26 +41,12 @@ var ScriptTypeEnum = /* @__PURE__ */ function(ScriptTypeEnum) {
|
|
|
40
41
|
ScriptTypeEnum["ORCHESTRATION"] = "so_module";
|
|
41
42
|
return ScriptTypeEnum;
|
|
42
43
|
}({});
|
|
43
|
-
var PrintTypeEnum = /* @__PURE__ */ function(PrintTypeEnum) {
|
|
44
|
-
/** 标签 */
|
|
45
|
-
PrintTypeEnum["LABEL"] = "label_module";
|
|
46
|
-
/** 单据 */
|
|
47
|
-
PrintTypeEnum["RECEIPT"] = "document_module";
|
|
48
|
-
return PrintTypeEnum;
|
|
49
|
-
}({});
|
|
50
44
|
var ProcessTypeEnum = /* @__PURE__ */ function(ProcessTypeEnum) {
|
|
51
45
|
/** 业务流 */
|
|
52
46
|
/** 审批流 */
|
|
53
47
|
ProcessTypeEnum["APPROVAL"] = "approval_process_module";
|
|
54
48
|
return ProcessTypeEnum;
|
|
55
49
|
}({});
|
|
56
|
-
var FormDesignEnum = /* @__PURE__ */ function(FormDesignEnum) {
|
|
57
|
-
/**在线表单 */
|
|
58
|
-
FormDesignEnum["ONLINE_FORM"] = "online_form_module";
|
|
59
|
-
/**eDHR */
|
|
60
|
-
FormDesignEnum["EDHR"] = "edhr_module";
|
|
61
|
-
return FormDesignEnum;
|
|
62
|
-
}({});
|
|
63
50
|
var CategoryEnum = {
|
|
64
51
|
...ModelTypeEnum,
|
|
65
52
|
...PageTypeEnum,
|
|
@@ -69,4 +56,4 @@ var CategoryEnum = {
|
|
|
69
56
|
...FormDesignEnum
|
|
70
57
|
};
|
|
71
58
|
//#endregion
|
|
72
|
-
export { CategoryEnum,
|
|
59
|
+
export { CategoryEnum, MenuClickEvent, ModelTypeEnum, PageTypeEnum, ProcessTypeEnum, ScriptTypeEnum };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { createUUID } from "qx-util";
|
|
1
2
|
import { cloneDeep } from "lodash-es";
|
|
2
|
-
import { uuid } from "@jsplumb/browser-ui";
|
|
3
3
|
//#region src/data/design-node/design-node.tsx
|
|
4
4
|
/**
|
|
5
5
|
* 界面设计节点
|
|
@@ -37,11 +37,11 @@ var DesignNode = class {
|
|
|
37
37
|
*/
|
|
38
38
|
init(data) {
|
|
39
39
|
if (data) {
|
|
40
|
-
this.id = data.id ||
|
|
40
|
+
this.id = data.id || createUUID();
|
|
41
41
|
this.type = data.type || this.type;
|
|
42
42
|
this.updateDate = data.updateDate || Date.now();
|
|
43
43
|
} else {
|
|
44
|
-
this.id =
|
|
44
|
+
this.id = createUUID();
|
|
45
45
|
this.updateDate = Date.now();
|
|
46
46
|
}
|
|
47
47
|
let params = this.createData();
|
|
@@ -3,8 +3,8 @@ import "../../utils/index.mjs";
|
|
|
3
3
|
import { widget } from "../../schema/modal/modal.mjs";
|
|
4
4
|
import "../../schema/index.mjs";
|
|
5
5
|
import { cloneDeep } from "lodash-es";
|
|
6
|
-
import { computed, reactive, ref } from "vue";
|
|
7
6
|
import { pageLayoutModeEnum } from "@gct-paas/core";
|
|
7
|
+
import { computed, reactive, ref } from "vue";
|
|
8
8
|
import { getWidgetInfo } from "@gct-paas/schema";
|
|
9
9
|
//#region src/hooks/design-view/design-state.ts
|
|
10
10
|
/**
|
|
@@ -4,8 +4,8 @@ import { modalDesignId, modalDesignState, modalInfo, pageJson, subTableModalId,
|
|
|
4
4
|
import { useScope } from "../layout/useScope.mjs";
|
|
5
5
|
import { useGlobal } from "../global/useGlobal.mjs";
|
|
6
6
|
import { cloneDeep } from "lodash-es";
|
|
7
|
-
import { computed } from "vue";
|
|
8
7
|
import { BuiltinType, TreeHelper } from "@gct-paas/core";
|
|
8
|
+
import { computed } from "vue";
|
|
9
9
|
//#region src/hooks/design-view/designer/useDesignModal.ts
|
|
10
10
|
/**
|
|
11
11
|
* 弹框管理 Hook
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { platform } from "../../../utils/design-view/index.mjs";
|
|
2
2
|
import "../design-state.mjs";
|
|
3
|
-
import { ref } from "vue";
|
|
4
3
|
import { Platform, genUrl, getTenant, getToken, openWindow } from "@gct-paas/core";
|
|
4
|
+
import { ref } from "vue";
|
|
5
5
|
import { useDebounceFn } from "@vueuse/core";
|
|
6
6
|
//#region src/hooks/design-view/designer/useDesignPreview.ts
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { modalInfo, pageJson } from "../design-state.mjs";
|
|
2
|
-
import { computed, ref, toRef } from "vue";
|
|
3
2
|
import { BuiltinType, SCOPE } from "@gct-paas/core";
|
|
3
|
+
import { computed, ref, toRef } from "vue";
|
|
4
4
|
//#region src/hooks/design-view/layout/useScope.ts
|
|
5
5
|
/**作用域:当前应当递归遍历的数据集合(页面数据或者模态框body/footer数据) */
|
|
6
6
|
var scope = ref(SCOPE.PAGE);
|
|
@@ -2,8 +2,8 @@ import { useWidgetRegistry } from "../widget/useWidgetRegistry.mjs";
|
|
|
2
2
|
import { useModelField } from "../../use-model-field/use-model-field.mjs";
|
|
3
3
|
import "../../index.mjs";
|
|
4
4
|
import { clone, cloneDeep } from "lodash-es";
|
|
5
|
-
import { ref } from "vue";
|
|
6
5
|
import { CategoryTypeEnum, FormComponents, Platform, ToolkitEnum } from "@gct-paas/core";
|
|
6
|
+
import { ref } from "vue";
|
|
7
7
|
import { getWidgetInfo } from "@gct-paas/schema";
|
|
8
8
|
//#region src/hooks/design-view/layout/useToolkit.ts
|
|
9
9
|
var toolkit = ref(ToolkitEnum.OUTLINE);
|
|
@@ -10,8 +10,8 @@ import { useDesigner } from "../useDesigner.mjs";
|
|
|
10
10
|
import { useUserOccupy } from "../../../components/user-occupy/useUserOccupy.mjs";
|
|
11
11
|
import "../../../components/index.mjs";
|
|
12
12
|
import { isEmpty, isNil } from "lodash-es";
|
|
13
|
-
import { computed, createVNode, ref } from "vue";
|
|
14
13
|
import { FormComponents, PanelEnum, Platform, t } from "@gct-paas/core";
|
|
14
|
+
import { computed, createVNode, ref } from "vue";
|
|
15
15
|
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
|
16
16
|
import { Modal } from "ant-design-vue";
|
|
17
17
|
//#region src/hooks/design-view/page/usePage.ts
|
|
@@ -8,8 +8,8 @@ import { useSelectedWidget } from "./widget/useSelectedWidget.mjs";
|
|
|
8
8
|
import { useDesignCache } from "./designer/useDesignCache.mjs";
|
|
9
9
|
import { useDesignSave } from "./designer/useDesignSave.mjs";
|
|
10
10
|
import { useDesignHistory } from "./designer/useDesignHistory.mjs";
|
|
11
|
-
import { inject } from "vue";
|
|
12
11
|
import { FormComponents, Platform } from "@gct-paas/core";
|
|
12
|
+
import { inject } from "vue";
|
|
13
13
|
//#region src/hooks/design-view/useDesigner.ts
|
|
14
14
|
/**
|
|
15
15
|
* 设计器核心聚合层
|
|
@@ -5,8 +5,8 @@ import { useScope } from "../layout/useScope.mjs";
|
|
|
5
5
|
import { usePage } from "../page/usePage.mjs";
|
|
6
6
|
import { useWidgetQuery } from "./useWidgetQuery.mjs";
|
|
7
7
|
import { get, has, isArray, isEmpty } from "lodash-es";
|
|
8
|
-
import { computed, ref } from "vue";
|
|
9
8
|
import { BuiltinType, FIELD_TYPE, FormComponents, PanelEnum, TreeHelper } from "@gct-paas/core";
|
|
9
|
+
import { computed, ref } from "vue";
|
|
10
10
|
import { getCompPos } from "@gct-paas/schema";
|
|
11
11
|
//#region src/hooks/design-view/widget/useSelectedWidget.ts
|
|
12
12
|
var fieldFormEvents = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSelectedWidget } from "./useSelectedWidget.mjs";
|
|
2
2
|
import { has } from "lodash-es";
|
|
3
|
-
import { computed } from "vue";
|
|
4
3
|
import { FormComponents } from "@gct-paas/core";
|
|
4
|
+
import { computed } from "vue";
|
|
5
5
|
//#region src/hooks/design-view/widget/useWidget.ts
|
|
6
6
|
/**不需要遮罩 */
|
|
7
7
|
var NotMask = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useScope } from "../layout/useScope.mjs";
|
|
2
|
-
import { computed } from "vue";
|
|
3
2
|
import { FIELD_TYPE, FormComponents, TreeHelper } from "@gct-paas/core";
|
|
3
|
+
import { computed } from "vue";
|
|
4
4
|
import { getCompPos } from "@gct-paas/schema";
|
|
5
5
|
//#region src/hooks/design-view/widget/useWidgetQuery.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { designRegister, platform } from "../../../utils/design-view/index.mjs";
|
|
2
2
|
import { pluginConfigs, widgetInfo } from "../design-state.mjs";
|
|
3
|
-
import { computed } from "vue";
|
|
4
3
|
import { Platform } from "@gct-paas/core";
|
|
4
|
+
import { computed } from "vue";
|
|
5
5
|
//#region src/hooks/design-view/widget/useWidgetRegistry.ts
|
|
6
6
|
/**
|
|
7
7
|
* 组件注册查询 Hook
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isRef, ref, unref, watch } from "vue";
|
|
2
1
|
import { ProjectName } from "@gct-paas/core";
|
|
2
|
+
import { isRef, ref, unref, watch } from "vue";
|
|
3
3
|
//#region src/hooks/develop/useKeyParser.ts
|
|
4
4
|
var SourceTypeEnum = /* @__PURE__ */ function(SourceTypeEnum) {
|
|
5
5
|
SourceTypeEnum["SELF_BUILT"] = "SELF_BUILT";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cloneDeep, has } from "lodash-es";
|
|
2
|
-
import { reactive, toRaw, toRefs, watch } from "vue";
|
|
3
2
|
import { CreateType, FIELD_TYPE, SCOPEINFO } from "@gct-paas/core";
|
|
3
|
+
import { reactive, toRaw, toRefs, watch } from "vue";
|
|
4
4
|
//#region src/hooks/use-model-field/use-model-field.ts
|
|
5
5
|
var objInfo = {
|
|
6
6
|
modelKey: "",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useScope } from "../design-view/layout/useScope.mjs";
|
|
2
2
|
import { useSelectedWidget } from "../design-view/widget/useSelectedWidget.mjs";
|
|
3
3
|
import { cloneDeep, difference, get, has, xor } from "lodash-es";
|
|
4
|
-
import { computed, watch } from "vue";
|
|
5
4
|
import { MaterialEnum, TreeHelper } from "@gct-paas/core";
|
|
5
|
+
import { computed, watch } from "vue";
|
|
6
6
|
//#region src/hooks/widgets/useAsyncFields.ts
|
|
7
7
|
var needAsyncAttrs = [
|
|
8
8
|
"label",
|
package/es/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignerRegister } from "./register/designer-register/designer-register.mjs";
|
|
2
2
|
import { DesignEditorType } from "./constant/design-editor-type.mjs";
|
|
3
|
-
import { CategoryEnum,
|
|
3
|
+
import { CategoryEnum, MenuClickEvent, ModelTypeEnum, PageTypeEnum, ProcessTypeEnum, ScriptTypeEnum } from "./constant/page-designer.mjs";
|
|
4
4
|
import { ControllerType, DesignItemActionTag, DesignItemAttribute, DesignNodeMode, DesignNodePrefix, DesignNodeType, DesignViewPrefix, InsertNodeMode, MaterialGroup } from "./constant/index.mjs";
|
|
5
5
|
import { MaterialRegister } from "./register/material/material.register.mjs";
|
|
6
6
|
import "./register/index.mjs";
|
|
@@ -34,6 +34,7 @@ import { buttonEditor, buttonProps, buttonStyleEditor } from "./schema/common-co
|
|
|
34
34
|
import { formItemProps } from "./schema/common-config/formItem-editor-config.mjs";
|
|
35
35
|
import { deviceEvent } from "./schema/common-config/common-event-config.mjs";
|
|
36
36
|
import { getAutofillEditor } from "./schema/common-config/autofill-editor-config.mjs";
|
|
37
|
+
import { fixedAlignEditor } from "./schema/common-config/column-editor-config.mjs";
|
|
37
38
|
import { BaseSearch, getSearchOptions } from "./schema/search/BaseSearch.mjs";
|
|
38
39
|
import { BaseDate } from "./schema/search/BaseDate.mjs";
|
|
39
40
|
import "./schema/index.mjs";
|
|
@@ -89,4 +90,4 @@ function onInit() {
|
|
|
89
90
|
}
|
|
90
91
|
onInit();
|
|
91
92
|
//#endregion
|
|
92
|
-
export { BaseDate, BaseSearch, CategoryEnum, ControllerType, DesignContainerNode, DesignEditorNode, DesignEditorType, DesignItemActionTag, DesignItemAttribute, DesignNode, DesignNodeMode, DesignNodePrefix, DesignNodeType, DesignSaveTip, DesignStepCheck, DesignViewHooks, DesignViewLayout, DesignViewPrefix, DesignerRegister, FieldCascader_default as FieldCascader, FieldSchema,
|
|
93
|
+
export { BaseDate, BaseSearch, CategoryEnum, ControllerType, DesignContainerNode, DesignEditorNode, DesignEditorType, DesignItemActionTag, DesignItemAttribute, DesignNode, DesignNodeMode, DesignNodePrefix, DesignNodeType, DesignSaveTip, DesignStepCheck, DesignViewHooks, DesignViewLayout, DesignViewPrefix, DesignerRegister, FieldCascader_default as FieldCascader, FieldSchema, InsertNodeMode, MaterialGroup, MaterialRegister, MenuClickEvent, ModalNameEditor, ModelTypeEnum, NotMask, PageTypeEnum, PluginPgkUtil, ProcessTypeEnum, SCREditorUtils, ScriptTypeEnum, user_lock_default as UserLock, user_occupy_default as UserOccupy, baseBtnEditor, baseBtnProp, basicAttrsUtils, basicFieldEditor, beginDrag, BTN_TYPE_COLOR as btnTypeColor, buildRunJs, buildRuntimeJson, buttonEditor, buttonProps, buttonStyleEditor, commonStyle, createWidgetByType, createWidgetProvider, currentPanel, customMenu, deptFilter, designCreateAppVue, designInterceptors, designRegister, designSetupApp, destroyOccupyTimer, deviceEvent, displayEditor, displayProps, explainEditor, findAllChildrenTypes, fixedAlignEditor, flatten, formItemProps, formulaFilter, getAutofillEditor, getBindCmpTypeEditor, getInputAttrEditor, getSearchOptions, hiddenButtonProps, initFieldWidgetRuntime, initMethodMap, isModified, loadPageInfo, loadPageOccupyInfo, loading, lockPage, methodMap, modal_exports as modalCfg, modalDesignId, modalDesignState, modalInfo, multiFieldEditor, newKeyTag, noMore, nodeContainerProps, nodeEditorProps, nodeProps, notNeedPxStyle, occupyPage, onWidgetInfoInit, openFormulaEditorByDesign, pageDesignHistoryList, pageInfo, pageJson, pageJsonSnapshot, pageNo, pageOccupyInfo, pagePermissions, permissionEditor, placeholderEditor, platform, pluginConfigs, PRESET_COLOR as presetColor, propEditorProps, propsToStyle, regRoot, regexEditor, rgba2hex, schemaToStyle, shadeColor, styleEditorProps, subTableModalId, subTableModalState, submitInHideEditor, togglePanel, transformField2Component, transformPageJson, unlockAvailable, uploadDraggerEditor, useAsyncFieldConfig, useAsyncFileAttrs, useAsyncOperateField, useCacheHistory, useCacheHistoryInner, useDesignCache, useDesignHistory, useDesignModal, useDesignPreview, useDesignSave, useDesigner, useDesignerController, useFieldTransfer, useGlobal, useKeyParser, useModelField, usePage, usePageOccupy, usePropEditor, useScope, useSelectedWidget, useStyle, useStyleEditor, useToolkit, useUserOccupy, useWidget, useWidgetQuery, useWidgetRegistry, validatorEditor, wfNodesModalId, wfNodesModalState, widgetInfo, widgetProps, widgetWrapperProps, workflowModalId, workflowModalState };
|
package/es/loader.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Platform, PropGroup, fixedAlignENUM } from "@gct-paas/core";
|
|
2
|
+
//#region src/schema/common-config/column-editor-config.ts
|
|
3
|
+
/** 列固定config */
|
|
4
|
+
var fixedAlignEditor = [{
|
|
5
|
+
component: "radio-icon-editor",
|
|
6
|
+
name: "fixedAlign",
|
|
7
|
+
label: "sys.pageDesigner.columnFixed",
|
|
8
|
+
group: PropGroup.SHOW,
|
|
9
|
+
_config: { options: [
|
|
10
|
+
{
|
|
11
|
+
label: "sys.pageDesigner.left",
|
|
12
|
+
value: fixedAlignENUM.LEFT
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: "sys.pageDesigner.none",
|
|
16
|
+
value: fixedAlignENUM.NONE
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: "sys.pageDesigner.right",
|
|
20
|
+
value: fixedAlignENUM.RIGHT
|
|
21
|
+
}
|
|
22
|
+
] },
|
|
23
|
+
hidden(widget) {
|
|
24
|
+
return widget.platform === Platform.PAD;
|
|
25
|
+
}
|
|
26
|
+
}];
|
|
27
|
+
//#endregion
|
|
28
|
+
export { fixedAlignEditor };
|
package/es/schema/index.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export * from './common-config/button-editor-config';
|
|
|
10
10
|
export * from './common-config/formItem-editor-config';
|
|
11
11
|
export * from './common-config/common-event-config';
|
|
12
12
|
export * from './common-config/autofill-editor-config';
|
|
13
|
+
export * from './common-config/column-editor-config';
|
|
13
14
|
export * from './search/BaseSearch';
|
|
14
15
|
export * from './search/BaseDate';
|
package/es/schema/index.mjs
CHANGED
|
@@ -9,5 +9,6 @@ import "./common-config/button-editor-config.mjs";
|
|
|
9
9
|
import "./common-config/formItem-editor-config.mjs";
|
|
10
10
|
import "./common-config/common-event-config.mjs";
|
|
11
11
|
import "./common-config/autofill-editor-config.mjs";
|
|
12
|
+
import "./common-config/column-editor-config.mjs";
|
|
12
13
|
import "./search/BaseSearch.mjs";
|
|
13
14
|
import "./search/BaseDate.mjs";
|