@ibiz-template/vue3-components 0.6.8 → 0.6.10
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-Udkmmoqt.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Zc_Y0dGt.js +1 -0
- package/dist/{xlsx-util-Ivrrn3GI.js → xlsx-util-2FgdNqpT.js} +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/drbar/drbar.controller.d.ts +14 -0
- package/es/control/drbar/drbar.controller.mjs +57 -4
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drbar/drbar.d.ts +1 -0
- package/es/control/drbar/drbar.mjs +18 -2
- package/es/control/drbar/index.d.ts +1 -0
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.mjs +3 -3
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.mjs +3 -3
- package/es/control/exp-bar/chart-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.mjs +3 -3
- package/es/control/exp-bar/data-view-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.mjs +3 -3
- package/es/control/exp-bar/grid-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.mjs +3 -3
- package/es/control/exp-bar/render-util.d.ts +2 -2
- package/es/control/exp-bar/render-util.mjs +16 -3
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.mjs +3 -3
- package/es/control/form/form/form.mjs +16 -2
- package/es/control/form/form-detail/form-item/form-item.mjs +2 -1
- package/es/control/search-bar/filter-mode-select/filter-mode-select.d.ts +12 -0
- package/es/control/search-bar/filter-mode-select/filter-mode-select.mjs +6 -0
- package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +3 -3
- package/es/control/search-bar/filter-tree/filter-tree.mjs +90 -9
- package/es/control/toolbar/toolbar.mjs +12 -2
- package/es/editor/array/ibiz-array/ibiz-array.mjs +5 -5
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +3 -3
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +3 -3
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +3 -3
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.mjs +3 -3
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +3 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +3 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +3 -3
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +5 -5
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +3 -3
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +4 -4
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +5 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +4 -4
- package/es/editor/html/wang-editor/wang-editor.css +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +8 -2
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +5 -5
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +5 -5
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +3 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +3 -3
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +3 -3
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +3 -3
- package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +3 -3
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +3 -3
- package/es/editor/text-box/input/input.mjs +3 -3
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +3 -3
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +3 -3
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +5 -5
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +3 -3
- package/es/view-engine/exp-view.engine.d.ts +2 -1
- package/es/view-engine/exp-view.engine.mjs +10 -0
- package/es/view-engine/index.mjs +5 -0
- package/es/view-engine/tab-search-view.engine.d.ts +61 -0
- package/es/view-engine/tab-search-view.engine.mjs +105 -0
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +0 -7
- package/es/web-app/guard/auth-guard/auth-guard.mjs +24 -34
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/drbar/drbar.cjs +18 -2
- package/lib/control/drbar/drbar.controller.cjs +57 -4
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/exp-bar/calendar-exp-bar/calendar-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/chart-exp-bar/chart-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/grid-exp-bar/grid-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/list-exp-bar/list-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/render-util.cjs +15 -2
- package/lib/control/exp-bar/tree-exp-bar/tree-exp-bar.cjs +3 -3
- package/lib/control/form/form/form.cjs +15 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +2 -1
- package/lib/control/search-bar/filter-mode-select/filter-mode-select.cjs +6 -0
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +90 -9
- package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +12 -2
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -4
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +2 -2
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +2 -2
- package/lib/editor/check-box/ibiz-checkbox/ibiz-checkbox.cjs +2 -2
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -2
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +4 -4
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +3 -3
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +4 -4
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +3 -3
- package/lib/editor/html/wang-editor/wang-editor.cjs +8 -2
- package/lib/editor/html/wang-editor/wang-editor.css +1 -1
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +4 -4
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +4 -4
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -2
- package/lib/editor/rate/ibiz-rate/ibiz-rate.cjs +2 -2
- package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +2 -2
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +2 -2
- package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +2 -2
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +2 -2
- package/lib/editor/text-box/input/input.cjs +2 -2
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +2 -2
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +2 -2
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +4 -4
- package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -2
- package/lib/view-engine/exp-view.engine.cjs +10 -0
- package/lib/view-engine/index.cjs +5 -0
- package/lib/view-engine/tab-search-view.engine.cjs +107 -0
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +22 -32
- package/package.json +8 -8
- package/dist/index-I0JaiEjL.js +0 -4
- package/dist/wang-editor-R2mUYWuB.js +0 -1
|
@@ -145,11 +145,11 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
|
|
|
145
145
|
return vue.createVNode("div", {
|
|
146
146
|
"class": [this.ns.b(), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
147
147
|
"ref": "editorRef"
|
|
148
|
-
}, [this.multiple ? vue.createVNode(vue.resolveComponent("el-checkbox-group"), {
|
|
148
|
+
}, [this.multiple ? vue.createVNode(vue.resolveComponent("el-checkbox-group"), vue.mergeProps({
|
|
149
149
|
"class": this.ns.b("checkbox"),
|
|
150
150
|
"modelValue": this.selectArray,
|
|
151
151
|
"onChange": this.onSelectArrayChange
|
|
152
|
-
}, _isSlot(_slot = this.items.map((item, index) => vue.createVNode(vue.resolveComponent("el-checkbox"), {
|
|
152
|
+
}, this.$attrs), _isSlot(_slot = this.items.map((item, index) => vue.createVNode(vue.resolveComponent("el-checkbox"), {
|
|
153
153
|
"key": index,
|
|
154
154
|
"label": item.value,
|
|
155
155
|
"disabled": this.disabled || this.readonly || item.disableSelect === true
|
|
@@ -159,10 +159,10 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
|
|
|
159
159
|
}, [item.text])]
|
|
160
160
|
}))) ? _slot : {
|
|
161
161
|
default: () => [_slot]
|
|
162
|
-
}) : vue.createVNode(vue.resolveComponent("el-radio-group"), {
|
|
162
|
+
}) : vue.createVNode(vue.resolveComponent("el-radio-group"), vue.mergeProps({
|
|
163
163
|
"class": this.ns.b("radio"),
|
|
164
164
|
"modelValue": this.selectArray[0]
|
|
165
|
-
}, _isSlot(_slot2 = this.items.map((item, index) => vue.createVNode(vue.resolveComponent("el-radio"), {
|
|
165
|
+
}, this.$attrs), _isSlot(_slot2 = this.items.map((item, index) => vue.createVNode(vue.resolveComponent("el-radio"), {
|
|
166
166
|
"key": index,
|
|
167
167
|
"label": item.value,
|
|
168
168
|
"disabled": this.disabled || this.readonly || item.disableSelect === true,
|
|
@@ -138,7 +138,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
138
138
|
render() {
|
|
139
139
|
const editContent = vue.createVNode("div", {
|
|
140
140
|
"class": this.ns.b("input")
|
|
141
|
-
}, [vue.createVNode(vue.resolveComponent("el-input-number"), {
|
|
141
|
+
}, [vue.createVNode(vue.resolveComponent("el-input-number"), vue.mergeProps({
|
|
142
142
|
"min": this.min,
|
|
143
143
|
"modelValue": this.minValue,
|
|
144
144
|
"disabled": this.disabled,
|
|
@@ -150,9 +150,9 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
150
150
|
"onKeyup": this.handleKeyUp,
|
|
151
151
|
"onFocus": this.onFocus,
|
|
152
152
|
"onBlur": this.onBlur
|
|
153
|
-
}, null), vue.createVNode("div", {
|
|
153
|
+
}, this.$attrs), null), vue.createVNode("div", {
|
|
154
154
|
"class": this.ns.b("separator")
|
|
155
|
-
}, [this.rangeSeparator]), vue.createVNode(vue.resolveComponent("el-input-number"), {
|
|
155
|
+
}, [this.rangeSeparator]), vue.createVNode(vue.resolveComponent("el-input-number"), vue.mergeProps({
|
|
156
156
|
"min": typeof this.minValue === "number" ? this.minValue + 1 : -Infinity,
|
|
157
157
|
"max": this.max,
|
|
158
158
|
"modelValue": this.maxValue,
|
|
@@ -165,7 +165,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
165
165
|
"onKeyup": this.handleKeyUp,
|
|
166
166
|
"onFocus": this.onFocus,
|
|
167
167
|
"onBlur": this.onBlur
|
|
168
|
-
}, null)]);
|
|
168
|
+
}, this.$attrs), null)]);
|
|
169
169
|
const readonlyContent = vue.createVNode("div", {
|
|
170
170
|
"class": (this.ns.b(), this.ns.m("readonly"))
|
|
171
171
|
}, [this.valueText]);
|
|
@@ -78,11 +78,11 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
78
|
return vue.createVNode("div", {
|
|
79
79
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
80
80
|
"ref": "editorRef"
|
|
81
|
-
}, [this.readonly ? this.valueText : vue.createVNode(vue.resolveComponent("el-radio-group"), {
|
|
81
|
+
}, [this.readonly ? this.valueText : vue.createVNode(vue.resolveComponent("el-radio-group"), vue.mergeProps({
|
|
82
82
|
"class": this.ns.e("group"),
|
|
83
83
|
"model-value": qxUtil.notNilEmpty(this.value) ? String(this.value) : "",
|
|
84
84
|
"onChange": this.onSelectValueChange
|
|
85
|
-
}, _isSlot(_slot = this.items.map((_item, index) => this.renderMode === "radio" ? vue.createVNode(vue.resolveComponent("el-radio"), {
|
|
85
|
+
}, this.$attrs), _isSlot(_slot = this.items.map((_item, index) => this.renderMode === "radio" ? vue.createVNode(vue.resolveComponent("el-radio"), {
|
|
86
86
|
"key": index,
|
|
87
87
|
"label": qxUtil.notNilEmpty(_item.value) ? String(_item.value) : "",
|
|
88
88
|
"disabled": this.disabled || _item.disableSelect === true
|
|
@@ -74,7 +74,7 @@ const IBizRate = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
74
|
return vue.createVNode("div", {
|
|
75
75
|
"class": [this.ns.b(), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
76
76
|
"ref": "editorRef"
|
|
77
|
-
}, [vue.createVNode(vue.resolveComponent("el-rate"), {
|
|
77
|
+
}, [vue.createVNode(vue.resolveComponent("el-rate"), vue.mergeProps({
|
|
78
78
|
"modelValue": this.currentVal,
|
|
79
79
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
80
80
|
"disabled": this.disabled || this.readonly,
|
|
@@ -83,7 +83,7 @@ const IBizRate = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
83
|
"showText": this.showText,
|
|
84
84
|
"texts": this.texts,
|
|
85
85
|
"onChange": this.handleChange
|
|
86
|
-
}, null)]);
|
|
86
|
+
}, this.$attrs), null)]);
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
|
|
@@ -112,7 +112,7 @@ const IBizSlider = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
112
|
return vue.createVNode("div", {
|
|
113
113
|
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.showText ? this.ns.e("text") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
114
114
|
"ref": "editorRef"
|
|
115
|
-
}, [vue.createVNode(vue.resolveComponent("el-slider"), {
|
|
115
|
+
}, [vue.createVNode(vue.resolveComponent("el-slider"), vue.mergeProps({
|
|
116
116
|
"modelValue": this.currentVal,
|
|
117
117
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
118
118
|
"disabled": this.disabled || this.readonly,
|
|
@@ -123,7 +123,7 @@ const IBizSlider = /* @__PURE__ */ vue.defineComponent({
|
|
|
123
123
|
"range": this.range,
|
|
124
124
|
"showInput": this.showInput,
|
|
125
125
|
"onChange": this.handleChange
|
|
126
|
-
}, null), this.showText ? vue.createVNode("span", {
|
|
126
|
+
}, this.$attrs), null), this.showText ? vue.createVNode("span", {
|
|
127
127
|
"class": [this.ns.em("text", "val")]
|
|
128
128
|
}, [this.textVal]) : null]);
|
|
129
129
|
}
|
|
@@ -79,7 +79,7 @@ const IBizStepper = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
79
|
if (this.readonly) {
|
|
80
80
|
content = "".concat(this.currentVal);
|
|
81
81
|
} else {
|
|
82
|
-
content = [vue.createVNode(vue.resolveComponent("el-input-number"), {
|
|
82
|
+
content = [vue.createVNode(vue.resolveComponent("el-input-number"), vue.mergeProps({
|
|
83
83
|
"ref": "inputRef",
|
|
84
84
|
"modelValue": this.currentVal,
|
|
85
85
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
@@ -92,7 +92,7 @@ const IBizStepper = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
92
|
"onChange": this.handleChange,
|
|
93
93
|
"onFocus": this.onFocus,
|
|
94
94
|
"onBlur": this.onBlur
|
|
95
|
-
}, null)];
|
|
95
|
+
}, this.$attrs), null)];
|
|
96
96
|
}
|
|
97
97
|
return vue.createVNode("div", {
|
|
98
98
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
@@ -83,14 +83,14 @@ const IBizSwitch = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
83
|
return vue.createVNode("div", {
|
|
84
84
|
"class": [this.ns.b(), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
85
85
|
"ref": "editorRef"
|
|
86
|
-
}, [vue.createVNode(vue.resolveComponent("el-switch"), {
|
|
86
|
+
}, [vue.createVNode(vue.resolveComponent("el-switch"), vue.mergeProps({
|
|
87
87
|
"modelValue": this.currentVal,
|
|
88
88
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
89
89
|
"disabled": this.disabled || this.readonly,
|
|
90
90
|
"activeText": this.activeText,
|
|
91
91
|
"inactiveText": this.inactiveText,
|
|
92
92
|
"onChange": this.handleChange
|
|
93
|
-
}, null)]);
|
|
93
|
+
}, this.$attrs), null)]);
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
|
|
@@ -104,7 +104,7 @@ const IBizInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
104
|
content += unitName;
|
|
105
105
|
}
|
|
106
106
|
} else {
|
|
107
|
-
content = [vue.createVNode(vue.resolveComponent("el-input-number"), {
|
|
107
|
+
content = [vue.createVNode(vue.resolveComponent("el-input-number"), vue.mergeProps({
|
|
108
108
|
"ref": "editorRef",
|
|
109
109
|
"class": [this.ns.b("input")],
|
|
110
110
|
"model-value": this.currentVal,
|
|
@@ -118,7 +118,7 @@ const IBizInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
|
118
118
|
"onFocus": this.onFocus,
|
|
119
119
|
"onBlur": this.onBlur,
|
|
120
120
|
"onKeyup": this.handleKeyUp
|
|
121
|
-
}, null), unitName && vue.createVNode("i", {
|
|
121
|
+
}, this.$attrs), null), unitName && vue.createVNode("i", {
|
|
122
122
|
"class": this.ns.e("unit")
|
|
123
123
|
}, [unitName])];
|
|
124
124
|
}
|
|
@@ -270,7 +270,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
270
270
|
"name": "unlock-alt"
|
|
271
271
|
}, null);
|
|
272
272
|
}
|
|
273
|
-
content = vue.createVNode(vue.resolveComponent("el-input"), {
|
|
273
|
+
content = vue.createVNode(vue.resolveComponent("el-input"), vue.mergeProps({
|
|
274
274
|
"ref": "editorRef",
|
|
275
275
|
"clearable": true,
|
|
276
276
|
"modelValue": this.currentVal,
|
|
@@ -291,7 +291,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
291
291
|
"disabled": this.disabled,
|
|
292
292
|
"show-password": this.type === "password",
|
|
293
293
|
"autocomplete": this.shouldAutoComplete
|
|
294
|
-
}, _isSlot(slots) ? slots : {
|
|
294
|
+
}, this.$attrs), _isSlot(slots) ? slots : {
|
|
295
295
|
default: () => [slots]
|
|
296
296
|
});
|
|
297
297
|
}
|
|
@@ -66,7 +66,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
66
|
return vue.createVNode("div", {
|
|
67
67
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
68
68
|
"ref": "componentRef"
|
|
69
|
-
}, [vue.createVNode(vue.resolveComponent("el-upload"), {
|
|
69
|
+
}, [vue.createVNode(vue.resolveComponent("el-upload"), vue.mergeProps({
|
|
70
70
|
"class": [this.ns.b("icon"), this.ns.is("not-show", this.noUploadIcon)],
|
|
71
71
|
"file-list": this.files,
|
|
72
72
|
"action": this.uploadUrl,
|
|
@@ -81,7 +81,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
"onError": this.onError,
|
|
82
82
|
"onRemove": this.onRemove,
|
|
83
83
|
"onPreview": this.onDownload
|
|
84
|
-
}, {
|
|
84
|
+
}, this.$attrs), {
|
|
85
85
|
default: () => [this.noUploadIcon ? null : vue.createVNode(vue.resolveComponent("el-button"), {
|
|
86
86
|
"class": [this.ns.b("button")],
|
|
87
87
|
"size": this.isGridEditor ? "small" : "default"
|
|
@@ -30,11 +30,11 @@ const IBizImagePreview = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
30
|
"onClick": (e) => {
|
|
31
31
|
e.stopPropagation();
|
|
32
32
|
}
|
|
33
|
-
}, [vue.createVNode(vue.resolveComponent("el-image"), {
|
|
33
|
+
}, [vue.createVNode(vue.resolveComponent("el-image"), vue.mergeProps({
|
|
34
34
|
"fit": "contain",
|
|
35
35
|
"src": this.value,
|
|
36
36
|
"preview-src-list": [this.value]
|
|
37
|
-
}, null)]);
|
|
37
|
+
}, this.$attrs), null)]);
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -95,7 +95,7 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
95
95
|
"class": this.ns.e("remove-icon"),
|
|
96
96
|
"onClick": () => this.onRemove(item),
|
|
97
97
|
"name": "remove"
|
|
98
|
-
}, null)])]))]), vue.createVNode(vue.resolveComponent("el-upload"), {
|
|
98
|
+
}, null)])]))]), vue.createVNode(vue.resolveComponent("el-upload"), vue.mergeProps({
|
|
99
99
|
"ref": "imageUpload",
|
|
100
100
|
"class": [this.ns.b("icon"), this.ns.is("not-show", this.noUploadIcon)],
|
|
101
101
|
"file-list": this.files,
|
|
@@ -112,19 +112,19 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
112
|
"onError": this.onError,
|
|
113
113
|
"onRemove": this.onRemove,
|
|
114
114
|
"onPreview": this.onDownload
|
|
115
|
-
}, {
|
|
115
|
+
}, this.$attrs), {
|
|
116
116
|
default: () => [vue.createVNode("ion-icon", {
|
|
117
117
|
"name": "add-outline",
|
|
118
118
|
"class": this.ns.e("image-upload-add")
|
|
119
119
|
}, null)]
|
|
120
|
-
}), this.dialogVisible ? vue.createVNode(vue.resolveComponent("el-image-viewer"), {
|
|
120
|
+
}), this.dialogVisible ? vue.createVNode(vue.resolveComponent("el-image-viewer"), vue.mergeProps({
|
|
121
121
|
"onClose": () => this.onDialogVisibleChange(false),
|
|
122
122
|
"url-list": [this.dialogImageUrl],
|
|
123
123
|
"hide-on-click-modal": true,
|
|
124
124
|
"close-on-press-escape": true,
|
|
125
125
|
"teleported": true,
|
|
126
126
|
"z-index": 9999
|
|
127
|
-
}, null) : null]);
|
|
127
|
+
}, this.$attrs), null) : null]);
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
|
|
@@ -154,7 +154,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
|
|
|
154
154
|
if (this.readonly) {
|
|
155
155
|
content = qxUtil.isNilOrEmpty(this.currentVal) ? "" : "".concat(this.currentVal);
|
|
156
156
|
} else {
|
|
157
|
-
content = [vue.createVNode(vue.resolveComponent("el-input"), {
|
|
157
|
+
content = [vue.createVNode(vue.resolveComponent("el-input"), vue.mergeProps({
|
|
158
158
|
"ref": "editorRef",
|
|
159
159
|
"class": [this.ns.b("input")],
|
|
160
160
|
"model-value": this.currentVal,
|
|
@@ -166,7 +166,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
|
|
|
166
166
|
"onFocus": this.onFocus,
|
|
167
167
|
"onBlur": this.onBlur,
|
|
168
168
|
"onKeyup": this.handleKeyUp
|
|
169
|
-
}, null), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
169
|
+
}, this.$attrs), null), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
170
170
|
"ref": "filterButtonRef",
|
|
171
171
|
"type": "primary",
|
|
172
172
|
"title": "\u7F16\u8F91",
|
|
@@ -38,6 +38,16 @@ class ExpViewEngine extends runtime.MDViewEngine {
|
|
|
38
38
|
get xdataControl() {
|
|
39
39
|
return this.expBar.xDataController;
|
|
40
40
|
}
|
|
41
|
+
constructor(view) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const modelData = (_b = (_a = view.model.viewLayoutPanel) == null ? void 0 : _a.controls) == null ? void 0 : _b.find(
|
|
44
|
+
(item) => item.id === "searchbar"
|
|
45
|
+
);
|
|
46
|
+
if (modelData && !modelData.name) {
|
|
47
|
+
modelData.name = "searchbar";
|
|
48
|
+
}
|
|
49
|
+
super(view);
|
|
50
|
+
}
|
|
41
51
|
/**
|
|
42
52
|
* 组件创建
|
|
43
53
|
*
|
|
@@ -44,6 +44,7 @@ var reportView_engine = require('./report-view.engine.cjs');
|
|
|
44
44
|
var ganttView_engine = require('./gantt-view.engine.cjs');
|
|
45
45
|
var deIndexViewEngine = require('./de-index-view-engine.cjs');
|
|
46
46
|
var subAppRefView_engine = require('./sub-app-ref-view.engine.cjs');
|
|
47
|
+
var tabSearchView_engine = require('./tab-search-view.engine.cjs');
|
|
47
48
|
|
|
48
49
|
"use strict";
|
|
49
50
|
const IBizViewEngine = {
|
|
@@ -276,6 +277,10 @@ const IBizViewEngine = {
|
|
|
276
277
|
"VIEW_DEINDEXVIEW",
|
|
277
278
|
(c) => new deIndexViewEngine.DEIndexViewEngine(c)
|
|
278
279
|
);
|
|
280
|
+
ibiz.engine.register(
|
|
281
|
+
"VIEW_DETABSEARCHVIEW",
|
|
282
|
+
(c) => new tabSearchView_engine.TabSearchViewEngine(c)
|
|
283
|
+
);
|
|
279
284
|
}
|
|
280
285
|
};
|
|
281
286
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var tabExpView_engine = require('./tab-exp-view.engine.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class TabSearchViewEngine extends tabExpView_engine.TabExpViewEngine {
|
|
8
|
+
/**
|
|
9
|
+
* 搜索表单控制器
|
|
10
|
+
* @author lxm
|
|
11
|
+
* @date 2023-05-22 01:56:25
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
get searchForm() {
|
|
15
|
+
return this.view.getController("searchform");
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 搜索栏控制器
|
|
19
|
+
* @author lxm
|
|
20
|
+
* @date 2023-05-22 01:56:25
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
get searchBar() {
|
|
24
|
+
return this.view.getController("searchbar");
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 分页导航面板控制器
|
|
28
|
+
* @author lxm
|
|
29
|
+
* @date 2023-05-22 01:56:25
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
get tabExpPanel() {
|
|
33
|
+
return this.view.getController("tabexppanel");
|
|
34
|
+
}
|
|
35
|
+
async onCreated() {
|
|
36
|
+
await super.onCreated();
|
|
37
|
+
const { childNames } = this.view;
|
|
38
|
+
childNames.push("searchform", "searchbar");
|
|
39
|
+
}
|
|
40
|
+
async onMounted() {
|
|
41
|
+
await super.onMounted();
|
|
42
|
+
const controller = this.viewLayoutPanel.panelItems.view_searchform;
|
|
43
|
+
if (controller) {
|
|
44
|
+
const formExists = !!this.searchForm;
|
|
45
|
+
controller.state.keepAlive = formExists;
|
|
46
|
+
controller.state.visible = formExists;
|
|
47
|
+
}
|
|
48
|
+
const searchbarC = this.viewLayoutPanel.panelItems.view_searchbar;
|
|
49
|
+
if (searchbarC) {
|
|
50
|
+
const visible = this.searchBar && !!(this.searchBar.model.enableQuickSearch || this.searchBar.model.enableGroup || this.searchBar.model.enableFilter === true);
|
|
51
|
+
searchbarC.state.visible = visible;
|
|
52
|
+
}
|
|
53
|
+
if (this.searchForm) {
|
|
54
|
+
this.searchForm.evt.on("onSearch", () => {
|
|
55
|
+
this.calcViewParams();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
if (this.searchBar) {
|
|
59
|
+
this.searchBar.evt.on("onSearch", () => {
|
|
60
|
+
this.calcViewParams();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
65
|
+
async call(key, args) {
|
|
66
|
+
if (key === runtime.SysUIActionTag.SEARCH) {
|
|
67
|
+
await this.searchForm.search();
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
if (key === runtime.SysUIActionTag.RESET) {
|
|
71
|
+
await this.searchForm.reset();
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
if (key === runtime.SysUIActionTag.REFRESH) {
|
|
75
|
+
await this.calcViewParams();
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return super.call(key, args);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 获取搜索相关的查询参数
|
|
82
|
+
* @author lxm
|
|
83
|
+
* @date 2023-05-22 03:26:04
|
|
84
|
+
* @return {*} {IParams}
|
|
85
|
+
*/
|
|
86
|
+
getSearchParams() {
|
|
87
|
+
const params = {};
|
|
88
|
+
if (this.searchForm) {
|
|
89
|
+
Object.assign(params, this.searchForm.getFilterParams());
|
|
90
|
+
}
|
|
91
|
+
if (this.searchBar) {
|
|
92
|
+
Object.assign(params, this.searchBar.getFilterParams());
|
|
93
|
+
}
|
|
94
|
+
return params;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 重新计算视图参数
|
|
98
|
+
* @author lxm
|
|
99
|
+
* @date 2024-03-18 05:00:02
|
|
100
|
+
*/
|
|
101
|
+
calcViewParams() {
|
|
102
|
+
this.tabExpPanel.state.expViewParams = this.getSearchParams();
|
|
103
|
+
this.tabExpPanel.refresh();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
exports.TabSearchViewEngine = TabSearchViewEngine;
|
|
@@ -105,11 +105,29 @@ class AuthGuard {
|
|
|
105
105
|
* @return {*} {Promise<void>}
|
|
106
106
|
*/
|
|
107
107
|
async appInit() {
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
try {
|
|
109
|
+
if (ibiz.env.isSaaSMode === true) {
|
|
110
|
+
await this.loadOrgData();
|
|
111
|
+
}
|
|
112
|
+
await this.loadAppData();
|
|
113
|
+
} catch (error) {
|
|
114
|
+
const responseStatus = error.status;
|
|
115
|
+
const remember = qxUtil.getCookie(core.CoreConst.TOKEN_REMEMBER);
|
|
116
|
+
const refreshToken = qxUtil.getCookie(core.CoreConst.REFRESH_TOKEN);
|
|
117
|
+
if (responseStatus === 401 && remember && refreshToken != null && refreshToken !== "") {
|
|
118
|
+
try {
|
|
119
|
+
await ibiz.auth.refreshToken();
|
|
120
|
+
if (ibiz.env.isSaaSMode === true) {
|
|
121
|
+
await this.loadOrgData();
|
|
122
|
+
}
|
|
123
|
+
await this.loadAppData();
|
|
124
|
+
} catch (refreshTokenError) {
|
|
125
|
+
throw error;
|
|
126
|
+
}
|
|
127
|
+
} else {
|
|
128
|
+
throw error;
|
|
129
|
+
}
|
|
110
130
|
}
|
|
111
|
-
await this.refreshToken();
|
|
112
|
-
await this.loadAppData();
|
|
113
131
|
await this.initModel();
|
|
114
132
|
await ibiz.auth.extendLogin();
|
|
115
133
|
await ibiz.hub.notice.init();
|
|
@@ -217,34 +235,6 @@ class AuthGuard {
|
|
|
217
235
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
218
236
|
});
|
|
219
237
|
}
|
|
220
|
-
/**
|
|
221
|
-
* 根据refreshToken获取新token
|
|
222
|
-
* @return {*}
|
|
223
|
-
* @author: zhujiamin
|
|
224
|
-
* @Date: 2024-03-05 11:38:20
|
|
225
|
-
*/
|
|
226
|
-
async refreshToken() {
|
|
227
|
-
const remember = qxUtil.getCookie(core.CoreConst.TOKEN_REMEMBER);
|
|
228
|
-
const token = qxUtil.getCookie(core.CoreConst.TOKEN);
|
|
229
|
-
const refreshToken = qxUtil.getCookie(core.CoreConst.REFRESH_TOKEN);
|
|
230
|
-
const cacheDay = remember ? 7 : 0;
|
|
231
|
-
if (!token && refreshToken != null && refreshToken !== "") {
|
|
232
|
-
const res = await ibiz.net.get("/uaa/refresh_token/".concat(refreshToken));
|
|
233
|
-
if (res.ok) {
|
|
234
|
-
qxUtil.setCookie(core.CoreConst.TOKEN, res.data.token, cacheDay, true);
|
|
235
|
-
const expiredDate = (/* @__PURE__ */ new Date()).getTime() + (res.data.expirein || 7199) * 1e3;
|
|
236
|
-
qxUtil.setCookie(core.CoreConst.TOKEN_EXPIRES, "".concat(expiredDate), cacheDay, true);
|
|
237
|
-
if (res.data.refresh_token) {
|
|
238
|
-
qxUtil.setCookie(
|
|
239
|
-
core.CoreConst.REFRESH_TOKEN,
|
|
240
|
-
res.data.refresh_token,
|
|
241
|
-
cacheDay,
|
|
242
|
-
true
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
238
|
}
|
|
249
239
|
|
|
250
240
|
exports.AuthGuard = AuthGuard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.3-alpha.41",
|
|
33
|
-
"@ibiz-template/core": "0.6.
|
|
33
|
+
"@ibiz-template/core": "0.6.11",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.6.
|
|
36
|
-
"@ibiz-template/runtime": "0.6.
|
|
35
|
+
"@ibiz-template/model-helper": "0.6.11",
|
|
36
|
+
"@ibiz-template/runtime": "0.6.11",
|
|
37
37
|
"@ibiz-template/theme": "^0.6.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.6.
|
|
39
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.6.11",
|
|
39
|
+
"@ibiz-template/web-theme": "^1.1.12",
|
|
40
|
+
"@ibiz/model-core": "^0.1.17",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@ibiz-template/runtime": "^0.6.0",
|
|
101
101
|
"@ibiz-template/theme": "^0.6.0",
|
|
102
102
|
"@ibiz-template/vue3-util": "^0.6.0",
|
|
103
|
-
"@ibiz/model-core": "^0.1.
|
|
103
|
+
"@ibiz/model-core": "^0.1.17",
|
|
104
104
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
105
105
|
"@monaco-editor/loader": "^1.3.3",
|
|
106
106
|
"@wangeditor/editor": "^5.1.23",
|