@gct-paas/core-web 0.1.6-dev.18 → 0.1.6-dev.19
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/{JsBarcode-BHGaO9dz.js → JsBarcode-nqhcZPvn.js} +2 -2
- package/dist/{_plugin-vue_export-helper-CVA7dXVu.js → _plugin-vue_export-helper-CyelNe0I.js} +2 -2
- package/dist/{chunk-BNkb119g.js → chunk-C9ZKDnvz.js} +1 -1
- package/dist/components-DtFY5KCF.js +2 -0
- package/dist/{cropper-CYj8Bfd1.js → cropper-BuY_n52N.js} +2 -2
- package/dist/{de_DE-CqvjMewI.js → de_DE-B3kLT_zG.js} +2 -2
- package/dist/{defineProperty-YzDFxjHJ.js → defineProperty-DiReHMuo.js} +1 -1
- package/dist/{diagram-config-item-C0dNHnv8.js → diagram-config-item-DYCiDqAy.js} +2 -2
- package/dist/{diagram-config-item-reverse-CPqmFsFd.js → diagram-config-item-reverse-BKf_yXvB.js} +2 -2
- package/dist/{diagram-config-item-virtual-CqPkYosK.js → diagram-config-item-virtual-Dw36zOeJ.js} +2 -2
- package/dist/{en_US-Cy3_1Rt6.js → en_US-tZ7NgN80.js} +2 -2
- package/dist/{es_ES-C6ghJagB.js → es_ES-DY2QXYwT.js} +2 -2
- package/dist/{fr_FR-B_boR4BS.js → fr_FR-DbN-1gO0.js} +2 -2
- package/dist/{hooks-BqvX2KLt.js → hooks-BuOffqGU.js} +2 -2
- package/dist/{icon-next-picker-CMsbLe7r.js → icon-next-picker-BmnIn29K.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-DhLuasFw.js → ja_JP-BRcXbHEH.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/{monaco-editor-Cl_E7g__.js → monaco-editor-CHnBEX6V.js} +2 -2
- package/dist/{objectSpread2-B962Mxf_.js → objectSpread2-BHKS0stT.js} +1 -1
- package/dist/{overlayscrollbars-vue-BfwUd3EM.js → overlayscrollbars-vue-Cc8URtSg.js} +1 -1
- package/dist/{pt_PT-BdlIINyT.js → pt_PT-DjiZFPmH.js} +2 -2
- package/dist/{relationship-diagram-config-GxEGtkql.js → relationship-diagram-config-BwVOMUAb.js} +2 -2
- package/dist/{rich-editor-D7vzpB9U.js → rich-editor-DfsJmv_B.js} +2 -2
- package/dist/{ru_RU-Bw0Fk9MV.js → ru_RU-Dw9N99Ox.js} +2 -2
- package/dist/template-D-UpvSne.js +2 -0
- package/dist/{tr_TR-CUUs9qjY.js → tr_TR-DCCv6rhK.js} +2 -2
- package/dist/{useMonacoEditor-BDC4VLbE.js → useMonacoEditor-C3S2BSui.js} +2 -2
- package/dist/{vi_VN--jG2lM6p.js → vi_VN-BNMXRAom.js} +2 -2
- package/dist/{zh_CN-Br1qCqWn.js → zh_CN-ywcxTWfr.js} +2 -2
- package/dist/{zh_TW-BMGkBv3z.js → zh_TW-DL4FRJVy.js} +2 -2
- package/es/components/design-view-layout/design-view-layout.mjs +3 -2
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +11 -1
- package/es/components/ui/basic-grid/basic-grid.vue.d.ts +81 -0
- package/es/components/ui/basic-grid/basic-grid.vue.mjs +7 -0
- package/es/components/ui/basic-grid/basic-grid.vue_vue_type_script_setup_true_name_basic-grid_lang.mjs +134 -0
- package/es/components/ui/basic-grid/basic-grid.vue_vue_type_style_index_0_scoped_e9d09c1d_lang.css +90 -0
- package/es/components/ui/basic-grid/index.d.ts +3 -0
- package/es/components/ui/basic-grid/index.mjs +1 -0
- package/es/components/ui/basic-grid/types.d.ts +6 -0
- package/es/components/ui/embed-grid/embed-grid.vue.d.ts +62 -0
- package/es/components/ui/embed-grid/embed-grid.vue.mjs +7 -0
- package/es/components/ui/embed-grid/embed-grid.vue_vue_type_script_setup_true_name_embed-grid_lang.mjs +73 -0
- package/es/components/ui/embed-grid/index.d.ts +3 -0
- package/es/components/ui/embed-grid/index.mjs +1 -0
- package/es/components/ui/embed-grid/types.d.ts +5 -0
- package/es/components/ui/form-alert/form-alert.vue.d.ts +10 -0
- package/es/components/ui/form-alert/form-alert.vue.mjs +7 -0
- package/es/components/ui/form-alert/form-alert.vue_vue_type_script_setup_true_name_form-alert_lang.mjs +31 -0
- package/es/components/ui/form-alert/form-alert.vue_vue_type_style_index_0_scoped_a6bdad9c_lang.css +64 -0
- package/es/components/ui/grid-btns/grid-btns.vue.d.ts +2 -0
- package/es/components/ui/grid-btns/grid-btns.vue.mjs +7 -0
- package/es/components/ui/grid-btns/grid-btns.vue_vue_type_script_setup_true_name_grid-btns_lang.mjs +15 -0
- package/es/components/ui/grid-btns/grid-btns.vue_vue_type_style_index_0_scoped_e3385a9e_lang.css +70 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue.d.ts +12 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue.mjs +7 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue_vue_type_script_setup_true_name_grid-pagination_lang.mjs +57 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue_vue_type_style_index_0_scoped_4905eabf_lang.css +68 -0
- package/es/components/ui/grid-pagination/index.d.ts +3 -0
- package/es/components/ui/grid-pagination/index.mjs +1 -0
- package/es/components/ui/grid-pagination/types.d.ts +24 -0
- package/es/components/ui/highlight/highlight.vue.d.ts +6 -0
- package/es/components/ui/highlight/highlight.vue.mjs +7 -0
- package/es/components/ui/highlight/highlight.vue_vue_type_script_setup_true_name_highlight_lang.mjs +30 -0
- package/es/components/ui/highlight/highlight.vue_vue_type_style_index_0_scoped_e17c6606_lang.css +6 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue.d.ts +10 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue.mjs +7 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue_vue_type_script_setup_true_name_icon-tooltip_lang.mjs +27 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue_vue_type_style_index_0_scoped_a35580e4_lang.css +68 -0
- package/es/components/ui/index.d.ts +10 -0
- package/es/components/ui/index.mjs +12 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue.d.ts +26 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue.mjs +7 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue_vue_type_script_setup_true_name_modal-wrapper_lang.mjs +78 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue_vue_type_style_index_0_scoped_6b8a9609_lang.css +28 -0
- package/es/components/ui/notice/index.d.ts +8 -0
- package/es/components/ui/notice/index.mjs +31 -0
- package/es/index.mjs +11 -2
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/package.json +9 -7
- package/dist/components-DjUk_DX6.js +0 -2
- package/dist/template-CbCwf9Cr.js +0 -2
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
keyword: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import highlight_vue_vue_type_script_setup_true_name_highlight_lang_default from "./highlight.vue_vue_type_script_setup_true_name_highlight_lang.mjs";
|
|
3
|
+
import './highlight.vue_vue_type_style_index_0_scoped_e17c6606_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/ui/highlight/highlight.vue
|
|
5
|
+
var highlight_default = /* @__PURE__ */ _plugin_vue_export_helper_default(highlight_vue_vue_type_script_setup_true_name_highlight_lang_default, [["__scopeId", "data-v-e17c6606"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { highlight_default as default };
|
package/es/components/ui/highlight/highlight.vue_vue_type_script_setup_true_name_highlight_lang.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Fragment, computed, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString } from "vue";
|
|
2
|
+
//#region src/components/ui/highlight/highlight.vue?vue&type=script&setup=true&name=highlight&lang.ts
|
|
3
|
+
var _hoisted_1 = { class: /* @__PURE__ */ normalizeClass(["highlight"]) };
|
|
4
|
+
var _hoisted_2 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "highlight__keyword"
|
|
7
|
+
};
|
|
8
|
+
var highlight_vue_vue_type_script_setup_true_name_highlight_lang_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "highlight",
|
|
10
|
+
props: {
|
|
11
|
+
text: {},
|
|
12
|
+
keyword: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const keyword = computed(() => props.keyword);
|
|
17
|
+
const arr = computed(() => {
|
|
18
|
+
if (!props.keyword) return [props.text];
|
|
19
|
+
const regex = new RegExp(`(${props.keyword})`, "gi");
|
|
20
|
+
return props.text.split(regex).filter(Boolean);
|
|
21
|
+
});
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(arr.value, (part, index) => {
|
|
24
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [part.toLowerCase() === keyword.value.toLowerCase() ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(part), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part), 1)], 64))], 64);
|
|
25
|
+
}), 128))]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { highlight_vue_vue_type_script_setup_true_name_highlight_lang_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 图标 */
|
|
3
|
+
icon?: string;
|
|
4
|
+
/** 提示文本 */
|
|
5
|
+
tooltip: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
icon: string;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import icon_tooltip_vue_vue_type_script_setup_true_name_icon_tooltip_lang_default from "./icon-tooltip.vue_vue_type_script_setup_true_name_icon-tooltip_lang.mjs";
|
|
3
|
+
import './icon-tooltip.vue_vue_type_style_index_0_scoped_a35580e4_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/ui/icon-tooltip/icon-tooltip.vue
|
|
5
|
+
var icon_tooltip_default = /* @__PURE__ */ _plugin_vue_export_helper_default(icon_tooltip_vue_vue_type_script_setup_true_name_icon_tooltip_lang_default, [["__scopeId", "data-v-a35580e4"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { icon_tooltip_default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createBlock, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
2
|
+
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { IconNext } from "@gct-paas/core-components";
|
|
4
|
+
//#region src/components/ui/icon-tooltip/icon-tooltip.vue?vue&type=script&setup=true&name=icon-tooltip&lang.ts
|
|
5
|
+
var icon_tooltip_vue_vue_type_script_setup_true_name_icon_tooltip_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "icon-tooltip",
|
|
7
|
+
props: {
|
|
8
|
+
icon: { default: "icon-bangzhu" },
|
|
9
|
+
tooltip: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const ns = useNamespace("icon-tooltip");
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
15
|
+
return openBlock(), createBlock(_component_a_tooltip, { class: normalizeClass([unref(ns).b()]) }, {
|
|
16
|
+
title: withCtx(() => [createTextVNode(toDisplayString(__props.tooltip), 1)]),
|
|
17
|
+
default: withCtx(() => [createVNode(unref(IconNext), {
|
|
18
|
+
value: __props.icon,
|
|
19
|
+
color: "#9a9a9a"
|
|
20
|
+
}, null, 8, ["value"])]),
|
|
21
|
+
_: 1
|
|
22
|
+
}, 8, ["class"]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { icon_tooltip_vue_vue_type_script_setup_true_name_icon_tooltip_lang_default as default };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-icon-tooltip[data-v-a35580e4] {
|
|
66
|
+
vertical-align: middle;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as FormAlert } from './form-alert/form-alert.vue';
|
|
2
|
+
import { default as GridBtns } from './grid-btns/grid-btns.vue';
|
|
3
|
+
import { default as IconTooltip } from './icon-tooltip/icon-tooltip.vue';
|
|
4
|
+
import { default as ModalWrapper } from './modal-wrapper/modal-wrapper.vue';
|
|
5
|
+
import { default as HightLight } from './highlight/highlight.vue';
|
|
6
|
+
export * from './basic-grid';
|
|
7
|
+
export * from './embed-grid';
|
|
8
|
+
export * from './grid-pagination';
|
|
9
|
+
export * from './notice';
|
|
10
|
+
export { GridBtns, FormAlert, IconTooltip, ModalWrapper, HightLight };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./form-alert/form-alert.vue.mjs";
|
|
2
|
+
import "./grid-btns/grid-btns.vue.mjs";
|
|
3
|
+
import "./icon-tooltip/icon-tooltip.vue.mjs";
|
|
4
|
+
import "./modal-wrapper/modal-wrapper.vue.mjs";
|
|
5
|
+
import "./highlight/highlight.vue.mjs";
|
|
6
|
+
import "./grid-pagination/grid-pagination.vue.mjs";
|
|
7
|
+
import "./grid-pagination/index.mjs";
|
|
8
|
+
import "./basic-grid/basic-grid.vue.mjs";
|
|
9
|
+
import "./basic-grid/index.mjs";
|
|
10
|
+
import "./embed-grid/embed-grid.vue.mjs";
|
|
11
|
+
import "./embed-grid/index.mjs";
|
|
12
|
+
import "./notice/index.mjs";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IModalData, IModalOptions } from '@gct-paas/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
opts?: IModalOptions;
|
|
4
|
+
disabledOk?: boolean;
|
|
5
|
+
doCancel?: () => Promise<boolean>;
|
|
6
|
+
doOk?: () => Promise<false | IModalData>;
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
opts: IModalOptions;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import modal_wrapper_vue_vue_type_script_setup_true_name_modal_wrapper_lang_default from "./modal-wrapper.vue_vue_type_script_setup_true_name_modal-wrapper_lang.mjs";
|
|
3
|
+
import './modal-wrapper.vue_vue_type_style_index_0_scoped_6b8a9609_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/ui/modal-wrapper/modal-wrapper.vue
|
|
5
|
+
var modal_wrapper_default = /* @__PURE__ */ _plugin_vue_export_helper_default(modal_wrapper_vue_vue_type_script_setup_true_name_modal_wrapper_lang_default, [["__scopeId", "data-v-6b8a9609"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { modal_wrapper_default as default };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, normalizeClass, openBlock, renderSlot, resolveComponent, toDisplayString, watch, withCtx } from "vue";
|
|
2
|
+
import { t } from "@gct-paas/core";
|
|
3
|
+
//#region src/components/ui/modal-wrapper/modal-wrapper.vue?vue&type=script&setup=true&name=modal-wrapper&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "modal-wrapper__content" };
|
|
5
|
+
var _hoisted_2 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "modal-wrapper__footer"
|
|
8
|
+
};
|
|
9
|
+
/** 模态控制器 */
|
|
10
|
+
var modal_wrapper_vue_vue_type_script_setup_true_name_modal_wrapper_lang_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "modal-wrapper",
|
|
12
|
+
props: {
|
|
13
|
+
opts: { default: () => ({}) },
|
|
14
|
+
disabledOk: { type: Boolean },
|
|
15
|
+
doCancel: {},
|
|
16
|
+
doOk: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const modal = inject("modal");
|
|
20
|
+
if (!modal) console.error("modal不存在");
|
|
21
|
+
const props = __props;
|
|
22
|
+
/** 是否显示底部按钮 */
|
|
23
|
+
const showFooter = computed(() => {
|
|
24
|
+
return props.opts.showFooter !== false;
|
|
25
|
+
});
|
|
26
|
+
const _options = computed(() => {
|
|
27
|
+
return {
|
|
28
|
+
okText: t("sys.okText"),
|
|
29
|
+
cancelText: t("sys.cancelText"),
|
|
30
|
+
showOkBtn: true,
|
|
31
|
+
showCancelBtn: true,
|
|
32
|
+
...props.opts,
|
|
33
|
+
showFooter: false
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
watch(() => _options.value, (val) => {
|
|
37
|
+
if (val) modal.setOptions(val);
|
|
38
|
+
}, {
|
|
39
|
+
immediate: true,
|
|
40
|
+
deep: true
|
|
41
|
+
});
|
|
42
|
+
/** 触发取消模态 */
|
|
43
|
+
const onCancel = async () => {
|
|
44
|
+
if (props.doCancel) {
|
|
45
|
+
if (!await props.doCancel()) return;
|
|
46
|
+
}
|
|
47
|
+
modal.dismiss();
|
|
48
|
+
};
|
|
49
|
+
/** 触发确认模态 */
|
|
50
|
+
const onOk = async () => {
|
|
51
|
+
if (props.doOk) {
|
|
52
|
+
const data = await props.doOk();
|
|
53
|
+
if (!data) return;
|
|
54
|
+
modal.dismiss(data);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
const _component_a_button = resolveComponent("a-button");
|
|
59
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["modal-wrapper", _options.value.height && "modal-wrapper--has-height"]) }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), showFooter.value ? (openBlock(), createElementBlock("div", _hoisted_2, [_options.value.showCancelBtn ? (openBlock(), createBlock(_component_a_button, {
|
|
60
|
+
key: 0,
|
|
61
|
+
onClick: onCancel
|
|
62
|
+
}, {
|
|
63
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_options.value.cancelText), 1)]),
|
|
64
|
+
_: 1
|
|
65
|
+
})) : createCommentVNode("", true), _options.value.showOkBtn ? (openBlock(), createBlock(_component_a_button, {
|
|
66
|
+
key: 1,
|
|
67
|
+
disabled: __props.disabledOk,
|
|
68
|
+
type: "primary",
|
|
69
|
+
onClick: onOk
|
|
70
|
+
}, {
|
|
71
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_options.value.okText), 1)]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["disabled"])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 2);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
//#endregion
|
|
78
|
+
export { modal_wrapper_vue_vue_type_script_setup_true_name_modal_wrapper_lang_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.modal-wrapper[data-v-6b8a9609] {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
.modal-wrapper--has-height .modal-wrapper__content[data-v-6b8a9609] {
|
|
7
|
+
height: 1px;
|
|
8
|
+
}
|
|
9
|
+
.modal-wrapper__content[data-v-6b8a9609] {
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
}
|
|
12
|
+
.modal-wrapper__footer[data-v-6b8a9609] {
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
flex-grow: 0;
|
|
15
|
+
border-top: 1px solid #e0e3eb;
|
|
16
|
+
height: 64px;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
.modal-wrapper__footer[data-v-6b8a9609] .ant-btn {
|
|
22
|
+
margin-right: 16px;
|
|
23
|
+
}
|
|
24
|
+
.modal-wrapper__footer[data-v-6b8a9609] .ant-btn.ant-btn-primary[disabled] {
|
|
25
|
+
background: #bfd8f2;
|
|
26
|
+
border-color: #bfd8f2 !important;
|
|
27
|
+
color: #ffffff;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
import { t } from "@gct-paas/core";
|
|
3
|
+
import { Modal as Modal$1 } from "ant-design-vue";
|
|
4
|
+
import { ExclamationCircleFilled } from "@ant-design/icons-vue";
|
|
5
|
+
//#region src/components/ui/notice/index.ts
|
|
6
|
+
/**
|
|
7
|
+
* ant确认提示框样式封装
|
|
8
|
+
* @export
|
|
9
|
+
* @param arg
|
|
10
|
+
* @return {*}
|
|
11
|
+
*/
|
|
12
|
+
function modalConfirm(arg) {
|
|
13
|
+
return new Promise((resolve) => {
|
|
14
|
+
Modal$1.confirm({
|
|
15
|
+
icon: createVNode(ExclamationCircleFilled),
|
|
16
|
+
okText: t("sys.ok2"),
|
|
17
|
+
cancelText: t("sys.cancel"),
|
|
18
|
+
closable: false,
|
|
19
|
+
centered: true,
|
|
20
|
+
...arg,
|
|
21
|
+
onOk: async () => {
|
|
22
|
+
resolve(true);
|
|
23
|
+
},
|
|
24
|
+
onCancel: () => {
|
|
25
|
+
resolve(false);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { modalConfirm };
|
package/es/index.mjs
CHANGED
|
@@ -84,9 +84,9 @@ import { BatchSelectList } from "./components/batch-select-list/batch-select-lis
|
|
|
84
84
|
import { DataRulesModal } from "./components/data-rules-modal/data-rules-modal.mjs";
|
|
85
85
|
import { DesignSaveTip } from "./components/design-save-tip/design-save-tip.mjs";
|
|
86
86
|
import { DesignStepCheck } from "./components/design-step-check/design-step-check.mjs";
|
|
87
|
+
import { ModalNameEditor } from "./components/modal-name-editor/modal-name-editor.mjs";
|
|
87
88
|
import { DesignViewLayout } from "./components/design-view-layout/design-view-layout.mjs";
|
|
88
89
|
import { CodeEditor } from "./components/code-editor/code-editor.mjs";
|
|
89
|
-
import { ModalNameEditor } from "./components/modal-name-editor/modal-name-editor.mjs";
|
|
90
90
|
import { ViewContainer } from "./components/layout/view-container/view-container.mjs";
|
|
91
91
|
import { Vue3GridDndItem } from "./components/vue3-grid-dnd-item/vue3-grid-dnd-item.mjs";
|
|
92
92
|
import FieldCascader_default from "./components/field-cascader/src/FieldCascader.vue.mjs";
|
|
@@ -126,6 +126,15 @@ import select_user_modal_default from "./components/select-user-modal/select-use
|
|
|
126
126
|
import { ControllerKey, SceneType, getController, useController } from "./components/open-select-user-modal/controller/index.mjs";
|
|
127
127
|
import { openSelectUserModal } from "./components/open-select-user-modal/index.mjs";
|
|
128
128
|
import number_range_default from "./components/number-range/number-range.vue.mjs";
|
|
129
|
+
import form_alert_default from "./components/ui/form-alert/form-alert.vue.mjs";
|
|
130
|
+
import grid_btns_default from "./components/ui/grid-btns/grid-btns.vue.mjs";
|
|
131
|
+
import icon_tooltip_default from "./components/ui/icon-tooltip/icon-tooltip.vue.mjs";
|
|
132
|
+
import modal_wrapper_default from "./components/ui/modal-wrapper/modal-wrapper.vue.mjs";
|
|
133
|
+
import highlight_default from "./components/ui/highlight/highlight.vue.mjs";
|
|
134
|
+
import grid_pagination_default from "./components/ui/grid-pagination/grid-pagination.vue.mjs";
|
|
135
|
+
import basic_grid_default from "./components/ui/basic-grid/basic-grid.vue.mjs";
|
|
136
|
+
import embed_grid_default from "./components/ui/embed-grid/embed-grid.vue.mjs";
|
|
137
|
+
import { modalConfirm } from "./components/ui/notice/index.mjs";
|
|
129
138
|
import "./components/index.mjs";
|
|
130
139
|
import category_modal_default from "./modules/category/category-modal.vue.mjs";
|
|
131
140
|
import category_sider_default from "./modules/category/category-sider.vue.mjs";
|
|
@@ -168,4 +177,4 @@ function onInit() {
|
|
|
168
177
|
}
|
|
169
178
|
onInit();
|
|
170
179
|
//#endregion
|
|
171
|
-
export { base_button_default as BaseButton, basic_button_default as BasicButton, BasicModal, BatchSelectList, BoolOptions, ButtonTextEnum, CONTENT_TYPE, category_modal_default as CategoryModal, category_sider_default as CategorySider, Ch_FieldTypeName, Ch_Operator, Ch_Perm_Operator, Ch_SystemVars, Ch_ValueType, CodeEditor, color_editor_default as ColorEditor, ColorPicker_default as ColorPicker, ComponentTypeEnum, ControllerKey, CopperFreeModal_default as CopperFreeModal, CopperModal_default as CopperModal, copy_module_key_default as CopyModuleKey, CropperAvatar_default as CropperAvatar, CropperFree_default as CropperFree, Cropper_default as CropperImage, DATA_TYPE, DataRoleSetTabsEnum, data_rules_container_default as DataRulesContainer, DataRulesModal, DataTypeOptions, DateSystemEnum, DateSystemKeys, DesignSaveTip, DesignStepCheck, DesignViewLayout, double_input_default as DoubleInput, EditFormController, EditorController, EditorRegister, EditorRegisterConst, EditorType, FORM_CONTROLLER_INJECT_TAG, FieldCascader_default as FieldCascader, field_role_container_default as FieldRoleContainer, FieldUpload, FormCollapseController, FormCollapsePaneController, FormCollapsePaneState, FormCollapseState, FormEditItemController, FormEditItemState, FormGroupController, FormGroupState, FormHiddenItemController, FormItemBasicController, FormItemBasicState, FormItemController, FormItemRegister, FormItemState, FormLineController, FormLineState, FormState, FormTabController, FormTabPaneController, FormTabPaneState, FormTabState, full_screen_default as FullScreen, GCT_DND_INSERT_POS, GctDndContainer, GctDndDropLine, GctDndItem, GctFormCollapseModel, GctFormCollapsePaneModel, GctFormController, GctFormGroupModel, GctFormHiddenItemModel, GctFormItemModel, GctFormLineModel, GctFormTabModel, GctFormTabPaneModel, GctFormTitleGroupModel, GctTableController, i18n_modal_default as I18Modal, i18n_select_btn_default as I18nSelectBtn, i18n_select_input_default as I18nSelectInput, i18n_select_input_form_default as I18nSelectInputForm, i18n_select_textarea_default as I18nSelectTextarea, i18n_select_textarea_form_default as I18nSelectTextareaForm, picture_preview_default as ImagePreview, ImageUpload, panelComps as LabelDesignControlComps, designer_default as LabelDesigner, label_params_select_default as LabelParamsSelect, Lang, MessageUtil, ModalNameEditor, ModalTypeEnum, MonacoEditor, MultiOperatorTypes, number_range_default as NumberRange, OperatorTypeEnum, OverlayController, PRINT_ELE_TYPE, paas_bpmn_log_default as PaasBpmnLog, Prop, QR_CODE_TYPE, RangTypeEnum, RelationTypeEnum, SceneType, SearchTypeEnum, select_user_modal_default as SelectUserModal, serial_number_container_default as SerialNumberContainer, ShrinkPanel, stage_canvas_default as StageCanvas, stage_view_default as StageView, TableActionItemController, TableEditItemController, TableEditItemState, TableEditorRegister, TableITemState, TableItemController, TableRowController, TableRowState, TableState, Theme, TreeEx, tree_select_ex_default as TreeSelectEx, UseDragByLine, PickType as UserPickType, UserSystemEnum, UserSystemKeys, ValueTypeEnum, ViewContainer, Vue3GridDndItem, WUJIE_FORMULA_EVENTS, calcTreeChildLevel, coreWebCreateAppVue, coreWebSetupApp, createImgPreview, dropNode, filterTreeData, findRecursiveChild, findTreePathById, gctFieldSortPopover, gctFieldTreeSelect, gctFormItemEditorProps, getCmpConfig, getController, getSpecificationsForSize, getValue, print_tmpl_modal_default as labelTmplModal, loadLabelInfo, monacoLoader, openFormulaEditor, openSelectUserModal, overlay, recursiveIterate, recursiveTransfer, setIdentify, setValue, sizeOpt, transformCoordinateByDpi, transformsize, useAntTableScrollHeight, useController, useEditFormController, useEditorConsole, useEditorConsoleInner, useForm, useFormItemController, useFormValue, useGctFormValue, useGctFormValueByText, useI18nSelect, useKeyParser, useModalPicker as useLabelModalPicker, useLocale, useModal, useModalContext, useModalDragMove, useModalInner, useModalPicker$1 as useModalPicker, usePage, usePrinter, useProp, useTableController, useTheme, useTreeList, validateFieldDefaultForLength, validateFieldDefaultForValue, validateLengthRange, widthEditorInstall, withInstall };
|
|
180
|
+
export { base_button_default as BaseButton, basic_button_default as BasicButton, basic_grid_default as BasicGrid, BasicModal, BatchSelectList, BoolOptions, ButtonTextEnum, CONTENT_TYPE, category_modal_default as CategoryModal, category_sider_default as CategorySider, Ch_FieldTypeName, Ch_Operator, Ch_Perm_Operator, Ch_SystemVars, Ch_ValueType, CodeEditor, color_editor_default as ColorEditor, ColorPicker_default as ColorPicker, ComponentTypeEnum, ControllerKey, CopperFreeModal_default as CopperFreeModal, CopperModal_default as CopperModal, copy_module_key_default as CopyModuleKey, CropperAvatar_default as CropperAvatar, CropperFree_default as CropperFree, Cropper_default as CropperImage, DATA_TYPE, DataRoleSetTabsEnum, data_rules_container_default as DataRulesContainer, DataRulesModal, DataTypeOptions, DateSystemEnum, DateSystemKeys, DesignSaveTip, DesignStepCheck, DesignViewLayout, double_input_default as DoubleInput, EditFormController, EditorController, EditorRegister, EditorRegisterConst, EditorType, embed_grid_default as EmbedGrid, FORM_CONTROLLER_INJECT_TAG, FieldCascader_default as FieldCascader, field_role_container_default as FieldRoleContainer, FieldUpload, form_alert_default as FormAlert, FormCollapseController, FormCollapsePaneController, FormCollapsePaneState, FormCollapseState, FormEditItemController, FormEditItemState, FormGroupController, FormGroupState, FormHiddenItemController, FormItemBasicController, FormItemBasicState, FormItemController, FormItemRegister, FormItemState, FormLineController, FormLineState, FormState, FormTabController, FormTabPaneController, FormTabPaneState, FormTabState, full_screen_default as FullScreen, GCT_DND_INSERT_POS, GctDndContainer, GctDndDropLine, GctDndItem, GctFormCollapseModel, GctFormCollapsePaneModel, GctFormController, GctFormGroupModel, GctFormHiddenItemModel, GctFormItemModel, GctFormLineModel, GctFormTabModel, GctFormTabPaneModel, GctFormTitleGroupModel, GctTableController, grid_btns_default as GridBtns, grid_pagination_default as GridPagination, highlight_default as HightLight, i18n_modal_default as I18Modal, i18n_select_btn_default as I18nSelectBtn, i18n_select_input_default as I18nSelectInput, i18n_select_input_form_default as I18nSelectInputForm, i18n_select_textarea_default as I18nSelectTextarea, i18n_select_textarea_form_default as I18nSelectTextareaForm, icon_tooltip_default as IconTooltip, picture_preview_default as ImagePreview, ImageUpload, panelComps as LabelDesignControlComps, designer_default as LabelDesigner, label_params_select_default as LabelParamsSelect, Lang, MessageUtil, ModalNameEditor, ModalTypeEnum, modal_wrapper_default as ModalWrapper, MonacoEditor, MultiOperatorTypes, number_range_default as NumberRange, OperatorTypeEnum, OverlayController, PRINT_ELE_TYPE, paas_bpmn_log_default as PaasBpmnLog, Prop, QR_CODE_TYPE, RangTypeEnum, RelationTypeEnum, SceneType, SearchTypeEnum, select_user_modal_default as SelectUserModal, serial_number_container_default as SerialNumberContainer, ShrinkPanel, stage_canvas_default as StageCanvas, stage_view_default as StageView, TableActionItemController, TableEditItemController, TableEditItemState, TableEditorRegister, TableITemState, TableItemController, TableRowController, TableRowState, TableState, Theme, TreeEx, tree_select_ex_default as TreeSelectEx, UseDragByLine, PickType as UserPickType, UserSystemEnum, UserSystemKeys, ValueTypeEnum, ViewContainer, Vue3GridDndItem, WUJIE_FORMULA_EVENTS, calcTreeChildLevel, coreWebCreateAppVue, coreWebSetupApp, createImgPreview, dropNode, filterTreeData, findRecursiveChild, findTreePathById, gctFieldSortPopover, gctFieldTreeSelect, gctFormItemEditorProps, getCmpConfig, getController, getSpecificationsForSize, getValue, print_tmpl_modal_default as labelTmplModal, loadLabelInfo, modalConfirm, monacoLoader, openFormulaEditor, openSelectUserModal, overlay, recursiveIterate, recursiveTransfer, setIdentify, setValue, sizeOpt, transformCoordinateByDpi, transformsize, useAntTableScrollHeight, useController, useEditFormController, useEditorConsole, useEditorConsoleInner, useForm, useFormItemController, useFormValue, useGctFormValue, useGctFormValueByText, useI18nSelect, useKeyParser, useModalPicker as useLabelModalPicker, useLocale, useModal, useModalContext, useModalDragMove, useModalInner, useModalPicker$1 as useModalPicker, usePage, usePrinter, useProp, useTableController, useTheme, useTreeList, validateFieldDefaultForLength, validateFieldDefaultForValue, validateLengthRange, widthEditorInstall, withInstall };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValue } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import './gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-date/gct-table-date.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValueByText } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import '../gct-table-date/gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-text/gct-table-text.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core-web",
|
|
3
|
-
"version": "0.1.6-dev.
|
|
3
|
+
"version": "0.1.6-dev.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端核心包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -65,18 +65,20 @@
|
|
|
65
65
|
"vxe-table": "npm:@gct-paas/vxe-table@4.6.19",
|
|
66
66
|
"wujie": "^1.0.29",
|
|
67
67
|
"wujie-vue3": "^1.0.29",
|
|
68
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
69
|
-
"@gct-paas/core-components": "0.1.6-dev.
|
|
70
|
-
"@gct-paas/scss": "0.1.6-dev.
|
|
68
|
+
"@gct-paas/core": "0.1.6-dev.19",
|
|
69
|
+
"@gct-paas/core-components": "0.1.6-dev.19",
|
|
70
|
+
"@gct-paas/scss": "0.1.6-dev.19",
|
|
71
|
+
"@gct-paas/v-ben": "0.1.6-dev.19"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"@gct-paas/api": "^0.1.6-dev.11",
|
|
74
75
|
"@types/sortablejs": "^1.15.1",
|
|
75
76
|
"vant": ">=4",
|
|
76
77
|
"vue": ">=3",
|
|
77
|
-
"@gct-paas/core
|
|
78
|
-
"@gct-paas/
|
|
79
|
-
"@gct-paas/
|
|
78
|
+
"@gct-paas/core": "0.1.6-dev.19",
|
|
79
|
+
"@gct-paas/scss": "0.1.6-dev.19",
|
|
80
|
+
"@gct-paas/v-ben": "0.1.6-dev.19",
|
|
81
|
+
"@gct-paas/core-components": "0.1.6-dev.19"
|
|
80
82
|
},
|
|
81
83
|
"devDependencies": {
|
|
82
84
|
"@types/bwip-js": "^3.2.3",
|