agilebuilder-ui 1.1.65-tmp22 → 1.1.65-tmp24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.min.js +462 -281
- package/dist/style.css +181 -175
- package/es/chat-embed/src/chat-sender.vue.mjs +1 -1
- package/es/chat-embed/src/chat-sender.vue2.mjs +26 -28
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +29 -29
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +68 -68
- package/es/department-tree-mobile/src/department-tree-service.mjs +20 -18
- package/es/department-tree-mobile/src/dept-result.vue.mjs +12 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +3 -3
- package/es/department-user-tree-inline/src/department-user-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +1 -1
- package/es/fs-preview/src/fs-preview.vue.mjs +26 -18
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.mjs +1 -1
- package/es/index.mjs +7 -5
- package/es/src/components/Card/index.mjs +34 -31
- package/es/src/components/Scrollbar/index.vue.mjs +6 -6
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/utils/common-util.mjs +47 -39
- package/es/style.css +879 -873
- package/es/super-grid/src/apis.mjs +199 -173
- package/es/super-grid/src/components/mobile-table-card.mjs +53 -53
- package/es/super-grid/src/normal-column-content.vue.mjs +12 -12
- package/es/super-grid/src/normal-column.vue.mjs +4 -5
- package/es/super-grid/src/search-button.vue.mjs +4 -2
- package/es/super-grid/src/search-form-dialog.vue.mjs +22 -11
- package/es/super-grid/src/search-form-item.vue.mjs +5 -5
- package/es/super-grid/src/search-form-mobile.vue.mjs +19 -19
- package/es/super-grid/src/search-form-open.vue.mjs +5 -3
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +3 -1
- package/es/super-grid/src/search-form.vue.mjs +19 -13
- package/es/super-grid/src/super-grid.vue.mjs +271 -209
- package/es/super-grid/src/utils.mjs +346 -300
- package/es/utils/organization.mjs +24 -11
- package/lib/chat-embed/src/chat-sender.vue.cjs +1 -1
- package/lib/chat-embed/src/chat-sender.vue2.cjs +44 -46
- package/lib/chat-embed/src/index.vue.cjs +1 -1
- package/lib/chat-embed/src/index.vue2.cjs +14 -14
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +58 -58
- package/lib/department-tree-mobile/src/department-tree-service.cjs +10 -8
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +10 -10
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +16 -16
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +1 -1
- package/lib/fs-preview/src/fs-preview.vue.cjs +13 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +13 -13
- package/lib/index.cjs +7 -7
- package/lib/src/components/Card/index.cjs +14 -11
- package/lib/src/components/Scrollbar/index.vue.cjs +2 -2
- package/lib/src/i18n/langs/cn.cjs +1 -1
- package/lib/src/i18n/langs/en.cjs +1 -1
- package/lib/src/utils/common-util.cjs +24 -17
- package/lib/style.css +915 -909
- package/lib/super-grid/src/apis.cjs +190 -164
- package/lib/super-grid/src/components/mobile-table-card.cjs +37 -37
- package/lib/super-grid/src/normal-column-content.vue.cjs +2 -2
- package/lib/super-grid/src/normal-column.vue.cjs +10 -11
- package/lib/super-grid/src/search-button.vue.cjs +3 -1
- package/lib/super-grid/src/search-form-dialog.vue.cjs +19 -8
- package/lib/super-grid/src/search-form-item.vue.cjs +2 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +7 -7
- package/lib/super-grid/src/search-form-open.vue.cjs +7 -5
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +3 -1
- package/lib/super-grid/src/search-form.vue.cjs +15 -10
- package/lib/super-grid/src/super-grid.vue.cjs +220 -158
- package/lib/super-grid/src/utils.cjs +349 -274
- package/lib/utils/organization.cjs +35 -24
- package/package.json +1 -1
- package/src/components/Card/index.jsx +12 -2
- package/src/components/Scrollbar/index.vue +165 -154
- package/src/i18n/langs/cn.js +10 -2
- package/src/i18n/langs/en.js +10 -2
- package/src/styles/index.scss +9 -2
- package/src/styles/theme/default.scss +18 -13
- package/src/styles/theme/tiffany-blue-mobile/home.scss +44 -1
- package/src/utils/auth-api.js +1 -0
- package/src/utils/common-util.js +13 -0
- package/vite.config.js +0 -45
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("./search-methods.cjs"), t = require("./search-form-ordinarySearch.vue.cjs"), r = require("./search-form-advancedQuery.vue.cjs"), s = require("./store.cjs"), i = require("./utils.cjs"), a = require("vue"), n = require("./search-condition-input.vue.cjs"), c = require("./search-condition-list.vue.cjs"), l = require("./search-form-mobile.vue.cjs"), h = require("../../src/utils/common-util.cjs");
|
|
2
|
+
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("./search-methods.cjs"), t = require("./search-form-ordinarySearch.vue.cjs"), r = require("./search-form-advancedQuery.vue.cjs"), s = require("./store.cjs"), i = require("./utils.cjs"), a = require("vue"), n = require("./search-condition-input.vue.cjs"), c = require("./search-condition-list.vue.cjs"), l = require("./search-form-mobile.vue.cjs"), h = require("../../src/utils/common-util.cjs"), m = require("./eventBus.cjs");
|
|
3
3
|
require("./search-form.vue2.cjs");
|
|
4
|
-
const
|
|
4
|
+
const d = require("../../_virtual/_plugin-vue_export-helper.cjs"), p = { name: "SearchForm", components: { SearchConditionInput: n, SearchConditionList: c, searchFormOrdinarySearch: t, searchFormAdvancedQuery: r, SearchFormMobile: l }, provide() {
|
|
5
5
|
return { getListToolbarFormData: () => ({ listToolbarFormData: this.listToolbarFormData }) };
|
|
6
6
|
}, props: { columns: { type: Array, default: null }, code: { type: String, default: null }, url: { type: String, default: null }, pagination: { type: Object, default: null }, query: { type: Object, default: null }, searchParam: { type: Object, default: null }, initSearchProps: { type: Array, default: null }, isSql: { type: Boolean, default: false }, searchFormInfo: { type: Object, default: () => ({}) }, loadCompleteQuery: { type: Boolean, default: false }, listToolbarFormData: { type: Object, default: null } }, data() {
|
|
7
7
|
const e2 = /* @__PURE__ */ new Set(), o2 = s.get(this.code), t2 = {};
|
|
@@ -20,6 +20,9 @@ const m = require("../../_virtual/_plugin-vue_export-helper.cjs"), d = { name: "
|
|
|
20
20
|
return this.getSearchableColumns();
|
|
21
21
|
}, advancedQueryColumns() {
|
|
22
22
|
return this.getAdvancedQueryColumns();
|
|
23
|
+
}, mobileDrawerSize() {
|
|
24
|
+
const e2 = window.innerWidth;
|
|
25
|
+
return e2 <= 400 ? "85%" : e2 > 400 && e2 <= 768 ? "70%" : "60%";
|
|
23
26
|
} }, watch: { searchForm: { deep: true, handler(e2) {
|
|
24
27
|
this.searchFormInfo.data = e2;
|
|
25
28
|
} } }, created() {
|
|
@@ -97,7 +100,7 @@ const m = require("../../_virtual/_plugin-vue_export-helper.cjs"), d = { name: "
|
|
|
97
100
|
this.isMobile ? this.$refs.searchFormMobile.validateForm().then((o2) => {
|
|
98
101
|
if (!o2)
|
|
99
102
|
return false;
|
|
100
|
-
this.searchParams = this.packageSearchParam(), e.$emit(this, "search", this.searchParams);
|
|
103
|
+
this.isShowMobileForm = false, this.searchParams = this.packageSearchParam(), e.$emit(this, "search", this.searchParams);
|
|
101
104
|
}) : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.validateForm().then((o2) => {
|
|
102
105
|
if (!o2)
|
|
103
106
|
return false;
|
|
@@ -108,7 +111,7 @@ const m = require("../../_virtual/_plugin-vue_export-helper.cjs"), d = { name: "
|
|
|
108
111
|
this.loading = true, this.searchParams = this.packageSearchParam(), e.$emit(this, "search", this.searchParams);
|
|
109
112
|
});
|
|
110
113
|
}, resetForm() {
|
|
111
|
-
this.$refs.searchConditionList && (this.$refs.searchConditionList.editConditionId = null), this.isMobile ? this.$refs.searchFormMobile.resetForm() : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.resetForm() : "advanced" === this.searchType && (this.$refs.searchFormAdvancedQuery.resetForm(), e.$emit(this, "reset")),
|
|
114
|
+
this.$refs.searchConditionList && (this.$refs.searchConditionList.editConditionId = null), this.isMobile ? this.$refs.searchFormMobile.resetForm() : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.resetForm() : "advanced" === this.searchType && (this.$refs.searchFormAdvancedQuery.resetForm(), e.$emit(this, "reset")), m.$emit("reset");
|
|
112
115
|
}, setNumberValue(e2, o2, t2) {
|
|
113
116
|
let r2 = this.getFormItemValue(this.searchableColumns[this.fieldNum * (o2 - 1) + (t2 - 1)].prop);
|
|
114
117
|
r2 = e2, this.setValueToModelProp(this.searchableColumns[this.fieldNum * (o2 - 1) + (t2 - 1)].prop, r2);
|
|
@@ -181,9 +184,11 @@ const m = require("../../_virtual/_plugin-vue_export-helper.cjs"), d = { name: "
|
|
|
181
184
|
this.isShowMobileForm = false, e.$emit(this, "close-mobile-search");
|
|
182
185
|
}, showMobileSearch() {
|
|
183
186
|
this.isShowMobileForm = true;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
}, openFoldFunc(e2) {
|
|
188
|
+
this.$refs.searchFormOrdinarySearch && this.$refs.searchFormOrdinarySearch.openFoldFunc(e2);
|
|
189
|
+
} }, emits: ["search", "open-fold", "reset", "show-mobile-search", "close-mobile-search"] }, u = { class: "amb-agilebuilder-search-form-view" }, y = { class: "search-condition-mobile" }, C = { key: 3, style: { "padding-top": "10px", "padding-bottom": "10px", "text-align": "center" } }, f = { key: 0, style: { "margin-left": "10px" } };
|
|
190
|
+
const S = d(p, [["render", function(e2, o2, t2, r2, s2, i2) {
|
|
191
|
+
const n2 = a.resolveComponent("search-condition-list"), c2 = a.resolveComponent("search-form-mobile"), l2 = a.resolveComponent("el-drawer"), h2 = a.resolveComponent("search-form-ordinary-search"), m2 = a.resolveComponent("search-form-advanced-query"), d2 = a.resolveComponent("el-button"), p2 = a.resolveComponent("search-condition-input");
|
|
192
|
+
return a.openBlock(), a.createElementBlock("div", u, [s2.isMobile ? (a.openBlock(), a.createBlock(l2, { key: 0, modelValue: s2.isShowMobileForm, "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => s2.isShowMobileForm = e3), title: e2.$t("superGrid.searchCondition"), "close-on-click-modal": false, "close-on-press-escape": false, "show-close": false, direction: "rtl", size: i2.mobileDrawerSize, onClose: o2[5] || (o2[5] = (e3) => i2.closeMobileSearch()) }, { default: a.withCtx(() => [a.createElementVNode("div", y, [s2.searchConditions.length > 0 ? (a.openBlock(), a.createBlock(n2, { key: 0, ref: "searchConditionList", "search-conditions": s2.searchConditions, "search-type": s2.searchType, onRemoveCondition: i2.removeCondition, onSelectCondition: i2.selectCondition }, null, 8, ["search-conditions", "search-type", "onRemoveCondition", "onSelectCondition"])) : a.createCommentVNode("", true)]), s2.isMobile && "normal" === s2.searchType ? (a.openBlock(), a.createBlock(c2, { key: 0, ref: "searchFormMobile", code: t2.code, "is-sql": t2.isSql, "load-complete-query": t2.loadCompleteQuery, query: t2.query, rules: s2.rules, "search-form": s2.searchForm, "searchable-columns": i2.searchableColumns, onClose: o2[0] || (o2[0] = (e3) => s2.isShowMobileForm = false), onSubmitForm: o2[1] || (o2[1] = (e3) => i2.submitForm("searchForm")), onResetForm: o2[2] || (o2[2] = (e3) => i2.resetForm("searchForm")), onSaveCondition: o2[3] || (o2[3] = (e3) => i2.saveCondition()) }, null, 8, ["code", "is-sql", "load-complete-query", "query", "rules", "search-form", "searchable-columns"])) : a.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title", "size"])) : (a.openBlock(), a.createElementBlock(a.Fragment, { key: 1 }, [s2.searchConditions.length > 0 ? (a.openBlock(), a.createBlock(n2, { key: 0, ref: "searchConditionList", "search-conditions": s2.searchConditions, "search-type": s2.searchType, onRemoveCondition: i2.removeCondition, onSelectCondition: i2.selectCondition }, null, 8, ["search-conditions", "search-type", "onRemoveCondition", "onSelectCondition"])) : a.createCommentVNode("", true), "normal" === s2.searchType ? (a.openBlock(), a.createBlock(h2, { key: 1, ref: "searchFormOrdinarySearch", code: t2.code, "field-num": s2.fieldNum, "is-sql": t2.isSql, "label-width": s2.labelWidth, "load-complete-query": t2.loadCompleteQuery, query: t2.query, "row-num": s2.rowNum, rules: s2.rules, "search-form": s2.searchForm, "searchable-columns": i2.searchableColumns, "span-num": s2.spanNum, onSubmitForm: o2[6] || (o2[6] = (e3) => i2.submitForm("searchForm")), onResetForm: o2[7] || (o2[7] = (e3) => i2.resetForm("searchForm")), onSaveCondition: o2[8] || (o2[8] = (e3) => i2.saveCondition()), onOpenFold: i2.openFold }, null, 8, ["code", "field-num", "is-sql", "label-width", "load-complete-query", "query", "row-num", "rules", "search-form", "searchable-columns", "span-num", "onOpenFold"])) : a.createCommentVNode("", true), "advanced" === s2.searchType ? (a.openBlock(), a.createBlock(m2, { key: 2, ref: "searchFormAdvancedQuery", code: t2.code, "is-sql": t2.isSql, "prop-map": s2.propMap, "search-form-list": s2.searchFormList, "searchable-columns": i2.advancedQueryColumns, style: { "padding-bottom": "10px" }, onResetForm: i2.resetSearchFormList }, null, 8, ["code", "is-sql", "prop-map", "search-form-list", "searchable-columns", "onResetForm"])) : a.createCommentVNode("", true), "advanced" === s2.searchType ? (a.openBlock(), a.createElementBlock("div", C, [a.createVNode(d2, { loading: s2.loading, size: "default", type: "primary", onClick: o2[9] || (o2[9] = (e3) => i2.submitForm("searchForm")) }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading"]), a.createVNode(d2, { loading: s2.loading, size: "default", onClick: o2[10] || (o2[10] = (e3) => i2.resetForm("searchForm")) }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading"]), a.createVNode(d2, { size: "default", onClick: i2.saveCondition }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("superGrid.saveCondition")), 1)]), _: 1 }, 8, ["onClick"]), null !== s2.advancedQuery && void 0 !== s2.advancedQuery && true === s2.advancedQuery && null !== s2.normalQuery && void 0 !== s2.normalQuery && true === s2.normalQuery ? (a.openBlock(), a.createElementBlock("span", f, ["advanced" === s2.searchType ? (a.openBlock(), a.createBlock(d2, { key: 0, size: "default", onClick: o2[11] || (o2[11] = (e3) => s2.searchType = "normal") }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.switchToNormalQuery")), 1)]), _: 1 })) : a.createCommentVNode("", true), "normal" === s2.searchType ? (a.openBlock(), a.createBlock(d2, { key: 1, size: "default", onClick: o2[12] || (o2[12] = (e3) => s2.searchType = "advanced") }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.switchToAdvancedQuery")), 1)]), _: 1 })) : a.createCommentVNode("", true)])) : a.createCommentVNode("", true)])) : a.createCommentVNode("", true)], 64)), s2.isShowSearchCondition ? (a.openBlock(), a.createBlock(p2, { key: 2, onClose: i2.saveConditionValue }, null, 8, ["onClose"])) : a.createCommentVNode("", true)]);
|
|
193
|
+
}], ["__scopeId", "data-v-8f3059a4"]]);
|
|
194
|
+
module.exports = S;
|