@ibiz-template/vue3-components 0.7.38-alpha.21 → 0.7.38-alpha.31
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/ibiz-markdown-editor-BZ8j-yda.js +1 -0
- package/dist/{index-CiEIUSX9.js → index-CnCC-cC2.js} +1 -1
- package/dist/index-Q4QqDXYJ.js +4 -0
- package/dist/{index-HW5stxcy.js → index-X3QXftIl.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Btv6GIhJ.js +1 -0
- package/dist/{xlsx-util-BlkeQIMu.js → xlsx-util-DbA3TyD9.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +2 -0
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/gantt-setting/gantt-setting.css +1 -1
- package/es/common/gantt-setting/gantt-setting.d.ts +10 -0
- package/es/common/gantt-setting/gantt-setting.mjs +23 -3
- package/es/common/grid-setting/grid-setting.d.ts +1 -0
- package/es/common/grid-setting/grid-setting.mjs +1 -1
- package/es/common/view-message/view-message.d.ts +2 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +8 -6
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +1 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +51 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -1
- package/es/control/dashboard/dashboard.mjs +13 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +7 -3
- package/es/control/drbar/drbar.controller.mjs +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +19 -7
- package/es/control/drtab/drtab.controller.mjs +36 -9
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +21 -2
- package/es/control/form/form-detail/form-item/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +100 -0
- package/es/control/form/search-form/index.d.ts +9 -0
- package/es/control/form/search-form/search-form.d.ts +9 -0
- package/es/control/form/search-form/search-form.mjs +4 -0
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +1 -0
- package/es/control/gantt/gantt.mjs +79 -30
- package/es/control/gantt/index.d.ts +1 -0
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +38 -2
- package/es/control/grid/grid/grid.mjs +11 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +17 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +8 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/span/span/span.mjs +7 -1
- package/es/editor/span/span-editor.controller.d.ts +7 -0
- package/es/editor/span/span-editor.controller.mjs +10 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +24 -6
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.mjs +32 -5
- package/es/editor/text-box/text-box-editor.controller.d.ts +7 -0
- package/es/editor/text-box/text-box-editor.controller.mjs +10 -0
- package/es/editor/upload/use/use-iview-upload.mjs +1 -1
- package/es/locale/en/index.d.ts +16 -0
- package/es/locale/en/index.mjs +10 -2
- package/es/locale/zh-CN/index.d.ts +16 -0
- package/es/locale/zh-CN/index.mjs +10 -2
- package/es/panel-component/auth-sso/auth-sso.css +1 -0
- package/es/panel-component/auth-sso/auth-sso.d.ts +26 -0
- package/es/panel-component/auth-sso/auth-sso.mjs +100 -0
- package/es/panel-component/auth-sso/auth-sso.provider.d.ts +6 -0
- package/es/panel-component/auth-sso/auth-sso.provider.mjs +21 -0
- package/es/panel-component/auth-sso/index.d.ts +23 -0
- package/es/panel-component/auth-sso/index.mjs +12 -0
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +46 -1
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +92 -1
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +4 -1
- package/es/panel-component/coop-pos/coop-pos.mjs +23 -3
- package/es/panel-component/coop-pos/index.d.ts +3 -0
- package/es/panel-component/index.mjs +2 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -3
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +2 -2
- package/es/util/notification-util/upload-manager/upload-manager.mjs +1 -1
- package/es/view/login-view/login-view.mjs +18 -0
- package/es/view-engine/edit-view.engine.mjs +14 -0
- package/es/view-engine/login-view.engine.mjs +1 -0
- package/es/view-engine/opt-view.engine.d.ts +1 -0
- package/es/view-engine/opt-view.engine.mjs +41 -1
- package/es/view-engine/tab-search-view.engine.d.ts +9 -1
- package/es/view-engine/tab-search-view.engine.mjs +52 -2
- package/es/web-app/attach-environment-config.mjs +5 -1
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +21 -14
- package/es/web-app/guard/auth-guard/auth-guard.mjs +26 -19
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +1 -1
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +2 -1
- package/es/web-app/main.mjs +3 -1
- package/es/web-app/router/index.d.ts +3 -2
- package/es/web-app/router/index.mjs +15 -4
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/lib/common/data-import2/data-import2.cjs +1 -1
- package/lib/common/gantt-setting/gantt-setting.cjs +23 -3
- package/lib/common/gantt-setting/gantt-setting.css +1 -1
- package/lib/common/grid-setting/grid-setting.cjs +1 -1
- package/lib/control/app-menu/app-menu.cjs +8 -6
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -0
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +10 -3
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -1
- package/lib/control/dashboard/dashboard.cjs +13 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +7 -3
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +36 -9
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +20 -1
- package/lib/control/form/search-form/search-form.cjs +4 -0
- package/lib/control/gantt/gantt.cjs +78 -29
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +37 -1
- package/lib/control/grid/grid/grid.cjs +11 -2
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +17 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +8 -2
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/span/span/span.cjs +7 -1
- package/lib/editor/span/span-editor.controller.cjs +10 -0
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +24 -6
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/editor/text-box/input/input.cjs +32 -5
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/text-box-editor.controller.cjs +10 -0
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
- package/lib/locale/en/index.cjs +10 -2
- package/lib/locale/zh-CN/index.cjs +10 -2
- package/lib/panel-component/auth-sso/auth-sso.cjs +102 -0
- package/lib/panel-component/auth-sso/auth-sso.css +1 -0
- package/lib/panel-component/auth-sso/auth-sso.provider.cjs +23 -0
- package/lib/panel-component/auth-sso/index.cjs +17 -0
- package/lib/panel-component/coop-pos/coop-pos.cjs +22 -2
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +91 -0
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/index.cjs +38 -36
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -3
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +1 -1
- package/lib/util/app-popover/app-popover-component.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +2 -2
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +1 -1
- package/lib/view/login-view/login-view.cjs +18 -0
- package/lib/view-engine/edit-view.engine.cjs +14 -0
- package/lib/view-engine/login-view.engine.cjs +1 -0
- package/lib/view-engine/opt-view.engine.cjs +40 -0
- package/lib/view-engine/tab-search-view.engine.cjs +52 -2
- package/lib/web-app/attach-environment-config.cjs +5 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +26 -19
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +2 -1
- package/lib/web-app/main.cjs +3 -1
- package/lib/web-app/router/index.cjs +15 -4
- package/package.json +10 -10
- package/dist/ibiz-markdown-editor-B4c6yGAW.js +0 -1
- package/dist/index-3cxXHoLs.js +0 -4
- package/dist/wang-editor-BUIAd4uJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-input-number{display:flex;align-items:center;height:100%}.ibiz-input-number .el-input .el-input__inner{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color);text-align:left;border-color:var(--ibiz-form-item-border-color)}.ibiz-input-number .el-input-number.is-without-controls .el-input__wrapper{padding-right:11px;padding-left:11px}.ibiz-input-number .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-input-number .el-input.is-disabled .el-input__wrapper{background-color:var(--ibiz-form-item-disabled-bg-color)}.ibiz-input-number .ibiz-input-number-input{flex-grow:1;width:auto;height:var(--ibiz-editor-default-line-height)}.ibiz-input-number--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color);word-break:break-word;white-space:pre-wrap}.ibiz-input-number .ibiz-input-number__unit{flex:0 0 auto;margin-left:var(--ibiz-spacing-tight);font-size:var(--ibiz-form-item-font-size);font-style:normal}.ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input{display:block}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__decrease,.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__increase{top:var(--ibiz-spacing-super-tight)}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-input{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-input{display:block}
|
|
1
|
+
.ibiz-input-number{display:flex;align-items:center;height:100%}.ibiz-input-number .el-input .el-input__inner{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color);text-align:left;border-color:var(--ibiz-form-item-border-color)}.ibiz-input-number .el-input-number.is-without-controls .el-input__wrapper{padding-right:11px;padding-left:11px}.ibiz-input-number .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-input-number .el-input.is-disabled .el-input__wrapper{background-color:var(--ibiz-form-item-disabled-bg-color)}.ibiz-input-number .ibiz-input-number-input{flex-grow:1;width:auto;height:var(--ibiz-editor-default-line-height)}.ibiz-input-number--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color);word-break:break-word;white-space:pre-wrap}.ibiz-input-number .ibiz-input-number__unit{flex:0 0 auto;margin-left:var(--ibiz-spacing-tight);font-size:var(--ibiz-form-item-font-size);font-style:normal}.ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number__unit{display:block}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input{display:block}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__decrease,.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__increase{top:var(--ibiz-spacing-super-tight)}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-input{display:none}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number__unit{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number__unit{display:block}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-input{display:block}
|
|
@@ -151,8 +151,14 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
151
151
|
let content = null;
|
|
152
152
|
if (this.readonly) {
|
|
153
153
|
content = isNilOrEmpty(this.currentVal) ? "" : "".concat(this.currentFormatVal);
|
|
154
|
-
if (
|
|
155
|
-
|
|
154
|
+
if (unitName) {
|
|
155
|
+
if (this.c.emptyHiddenUnit) {
|
|
156
|
+
if (content) {
|
|
157
|
+
content += unitName;
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
content += unitName;
|
|
161
|
+
}
|
|
156
162
|
}
|
|
157
163
|
} else {
|
|
158
164
|
content = [!this.enablethousands ? createVNode(resolveComponent("el-input-number"), mergeProps({
|
|
@@ -184,12 +190,24 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
184
190
|
"class": this.ns.e("unit")
|
|
185
191
|
}, [unitName])];
|
|
186
192
|
}
|
|
187
|
-
const formDefaultContent =
|
|
188
|
-
|
|
189
|
-
|
|
193
|
+
const formDefaultContent = () => {
|
|
194
|
+
let unit = "";
|
|
195
|
+
if (unitName) {
|
|
196
|
+
if (this.c.emptyHiddenUnit) {
|
|
197
|
+
if (this.currentFormatVal) {
|
|
198
|
+
unit = unitName;
|
|
199
|
+
}
|
|
200
|
+
} else {
|
|
201
|
+
unit = unitName;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return createVNode("div", {
|
|
205
|
+
"class": this.ns.b("form-default-content")
|
|
206
|
+
}, [this.currentVal || this.currentVal === 0 ? this.currentFormatVal + unit : "-"]);
|
|
207
|
+
};
|
|
190
208
|
return createVNode("div", {
|
|
191
209
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
192
|
-
}, [this.showFormDefaultContent && formDefaultContent, content]);
|
|
210
|
+
}, [this.showFormDefaultContent && formDefaultContent(), content]);
|
|
193
211
|
}
|
|
194
212
|
});
|
|
195
213
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-input{width:100%;height:100%;font-size:var(--ibiz-form-item-font-size);font-weight:var(--ibiz-form-item-regular);--ibiz-input-min-height:var(--ibiz-editor-default-line-height)}.ibiz-input__ai-chat{display:flex;align-items:center;justify-content:center;position:absolute;right:var(--ibiz-spacing-base-loose);bottom:var(--ibiz-spacing-base-loose);width:calc(var(--ibiz-width-icon-medium) + 2 * var(--ibiz-spacing-tight));height:calc(var(--ibiz-width-icon-medium) + 2 * var(--ibiz-spacing-tight));padding:var(--ibiz-spacing-tight);font-size:var(--ibiz-width-icon-medium);color:var(--ibiz-color-primary-text);cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-circle)}.ibiz-input__ai-chat:hover{color:var(--ibiz-color-primary-hover-text);background-color:var(--ibiz-color-primary-hover)}.ibiz-input .el-input .el-input__inner{height:100%}.ibiz-input .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-textarea .el-textarea__inner{height:100%}.ibiz-input .el-textarea .el-textarea__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-textarea .el-textarea__inner::placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-input__count{bottom:0}.ibiz-input .ibiz-input-input{height:100%}.ibiz-input .ibiz-input-input .el-input__wrapper{width:100%;min-height:var(--ibiz-input-min-height)}.ibiz-input--readonly{height:auto;overflow:auto;line-height:var(--ibiz-input-min-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-input .el-input__suffix .ibiz-input__unit{font-style:normal}.ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-textarea{padding:var(--ibiz-form-item-hover-edit-padding);overflow:hidden}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-form-default-content{display:block}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-input{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-input{display:inline-flex}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color);word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input{display:none;font-family:Arial,sans-serif}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input.el-textarea .el-textarea__inner{word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-input{display:inline-flex}
|
|
1
|
+
.ibiz-input{width:100%;height:100%;font-size:var(--ibiz-form-item-font-size);font-weight:var(--ibiz-form-item-regular);--ibiz-input-min-height:var(--ibiz-editor-default-line-height)}.ibiz-input__ai-chat{display:flex;align-items:center;justify-content:center;position:absolute;right:var(--ibiz-spacing-base-loose);bottom:var(--ibiz-spacing-base-loose);width:calc(var(--ibiz-width-icon-medium) + 2 * var(--ibiz-spacing-tight));height:calc(var(--ibiz-width-icon-medium) + 2 * var(--ibiz-spacing-tight));padding:var(--ibiz-spacing-tight);font-size:var(--ibiz-width-icon-medium);color:var(--ibiz-color-primary-text);cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-circle)}.ibiz-input__ai-chat:hover{color:var(--ibiz-color-primary-hover-text);background-color:var(--ibiz-color-primary-hover)}.ibiz-input .el-input .el-input__inner{height:100%}.ibiz-input .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-textarea .el-textarea__inner{height:100%}.ibiz-input .el-textarea .el-textarea__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-textarea .el-textarea__inner::placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-input__count{bottom:0}.ibiz-input .ibiz-input-input{height:100%}.ibiz-input .ibiz-input-input .el-input__wrapper{width:100%;min-height:var(--ibiz-input-min-height)}.ibiz-input--readonly{height:auto;overflow:auto;line-height:var(--ibiz-input-min-height);color:var(--ibiz-form-item-readonly-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-input__suffix .ibiz-input__unit{font-style:normal}.ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-textarea{padding:var(--ibiz-form-item-hover-edit-padding);overflow:hidden}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-form-default-content{display:block}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-input{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-input{display:inline-flex}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color);word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input{display:none;font-family:Arial,sans-serif}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input.el-textarea .el-textarea__inner{word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-input{display:inline-flex}
|
|
@@ -69,10 +69,23 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
immediate: true
|
|
70
70
|
});
|
|
71
71
|
const currentFormatVal = computed(() => {
|
|
72
|
+
let text = "";
|
|
73
|
+
const {
|
|
74
|
+
unitName
|
|
75
|
+
} = props.controller.parent;
|
|
72
76
|
if (currentVal.value) {
|
|
73
|
-
|
|
77
|
+
text = props.controller.formatValue(currentVal.value);
|
|
78
|
+
}
|
|
79
|
+
if (unitName) {
|
|
80
|
+
if (c.emptyHiddenUnit) {
|
|
81
|
+
if (text) {
|
|
82
|
+
text += unitName;
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
text += unitName;
|
|
86
|
+
}
|
|
74
87
|
}
|
|
75
|
-
return
|
|
88
|
+
return text;
|
|
76
89
|
});
|
|
77
90
|
const onEmit = (val, eventName = "blur") => {
|
|
78
91
|
if (eventName === c.triggerMode) {
|
|
@@ -231,8 +244,14 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
231
244
|
unitName
|
|
232
245
|
} = props.controller.parent;
|
|
233
246
|
let text = "".concat(props.controller.formatValue(currentVal.value));
|
|
234
|
-
if (
|
|
235
|
-
|
|
247
|
+
if (unitName) {
|
|
248
|
+
if (c.emptyHiddenUnit) {
|
|
249
|
+
if (text) {
|
|
250
|
+
text += unitName;
|
|
251
|
+
}
|
|
252
|
+
} else {
|
|
253
|
+
text += unitName;
|
|
254
|
+
}
|
|
236
255
|
}
|
|
237
256
|
return text;
|
|
238
257
|
});
|
|
@@ -305,9 +324,17 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
305
324
|
const slots = {};
|
|
306
325
|
if (unitName) {
|
|
307
326
|
slots.suffix = () => {
|
|
327
|
+
let unitText = "";
|
|
328
|
+
if (this.c.emptyHiddenUnit) {
|
|
329
|
+
if (this.currentVal) {
|
|
330
|
+
unitText = unitName;
|
|
331
|
+
}
|
|
332
|
+
} else {
|
|
333
|
+
unitText = unitName;
|
|
334
|
+
}
|
|
308
335
|
return createVNode("i", {
|
|
309
336
|
"class": this.ns.e("unit")
|
|
310
|
-
}, [
|
|
337
|
+
}, [unitText]);
|
|
311
338
|
};
|
|
312
339
|
}
|
|
313
340
|
if (predefinedType === "AUTH_USERID") {
|
|
@@ -80,5 +80,12 @@ export declare class TextBoxEditorController extends CodeListEditorController<IT
|
|
|
80
80
|
* @Date: 2023-05-24 10:55:50
|
|
81
81
|
*/
|
|
82
82
|
codeList: IAppCodeList | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* 无值隐藏单位
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof TextBoxEditorController
|
|
88
|
+
*/
|
|
89
|
+
emptyHiddenUnit: boolean;
|
|
83
90
|
protected onInit(): Promise<void>;
|
|
84
91
|
}
|
|
@@ -81,6 +81,13 @@ class TextBoxEditorController extends CodeListEditorController {
|
|
|
81
81
|
* @Date: 2023-05-24 10:55:50
|
|
82
82
|
*/
|
|
83
83
|
__publicField(this, "codeList");
|
|
84
|
+
/**
|
|
85
|
+
* 无值隐藏单位
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof TextBoxEditorController
|
|
89
|
+
*/
|
|
90
|
+
__publicField(this, "emptyHiddenUnit", true);
|
|
84
91
|
}
|
|
85
92
|
async onInit() {
|
|
86
93
|
await super.onInit();
|
|
@@ -132,6 +139,9 @@ class TextBoxEditorController extends CodeListEditorController {
|
|
|
132
139
|
const app = await ibiz.hub.getApp(this.context.srfappid);
|
|
133
140
|
this.codeList = app.codeList.getCodeList(this.model.appCodeListId);
|
|
134
141
|
}
|
|
142
|
+
if (this.extraParams) {
|
|
143
|
+
this.emptyHiddenUnit = this.extraParams.emptyHiddenUnit;
|
|
144
|
+
}
|
|
135
145
|
}
|
|
136
146
|
}
|
|
137
147
|
|
|
@@ -6,7 +6,7 @@ import { ref, watch, computed } from 'vue';
|
|
|
6
6
|
function useIViewUpload(props, valueChange, c) {
|
|
7
7
|
const files = ref([]);
|
|
8
8
|
const headers = ref({
|
|
9
|
-
Authorization: "Bearer ".concat(getCookie(CoreConst.TOKEN))
|
|
9
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(getCookie(CoreConst.TOKEN))
|
|
10
10
|
});
|
|
11
11
|
const uploadUrl = ref("");
|
|
12
12
|
const downloadUrl = ref("");
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -527,6 +527,14 @@ declare const _default: {
|
|
|
527
527
|
processedWithout: string;
|
|
528
528
|
noExistProcessed: string;
|
|
529
529
|
missingDetreeColumnId: string;
|
|
530
|
+
thirdAuth: {
|
|
531
|
+
noSupported: string;
|
|
532
|
+
corpidError: string;
|
|
533
|
+
dingTalkCodeErrir: string;
|
|
534
|
+
dingTalkAuthError: string;
|
|
535
|
+
appIdError: string;
|
|
536
|
+
noImplemented: string;
|
|
537
|
+
};
|
|
530
538
|
};
|
|
531
539
|
uiAction: {
|
|
532
540
|
noEntityOrBehavior: string;
|
|
@@ -1022,6 +1030,7 @@ declare const _default: {
|
|
|
1022
1030
|
checkTitle: string;
|
|
1023
1031
|
baseSet: string;
|
|
1024
1032
|
filterTitle: string;
|
|
1033
|
+
selectAll: string;
|
|
1025
1034
|
};
|
|
1026
1035
|
};
|
|
1027
1036
|
form: {
|
|
@@ -1182,6 +1191,8 @@ declare const _default: {
|
|
|
1182
1191
|
headerCaption: string;
|
|
1183
1192
|
optionalAttribute: string;
|
|
1184
1193
|
selectedAttribute: string;
|
|
1194
|
+
limitsize: string;
|
|
1195
|
+
reachedMaximum: string;
|
|
1185
1196
|
};
|
|
1186
1197
|
actionToolbar: {
|
|
1187
1198
|
more: string;
|
|
@@ -1293,6 +1304,11 @@ declare const _default: {
|
|
|
1293
1304
|
authUserinfo: {
|
|
1294
1305
|
visitor: string;
|
|
1295
1306
|
};
|
|
1307
|
+
authSsO: {
|
|
1308
|
+
noSupported: string;
|
|
1309
|
+
dingLogin: string;
|
|
1310
|
+
wechatLogin: string;
|
|
1311
|
+
};
|
|
1296
1312
|
coopPos: {
|
|
1297
1313
|
view: string;
|
|
1298
1314
|
edit: string;
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -343,7 +343,8 @@ var index = {
|
|
|
343
343
|
ctrlPlaceholder: "Please enter a control name",
|
|
344
344
|
checkTitle: "This parameter is valid for all reports in the data set",
|
|
345
345
|
baseSet: "Basic setup",
|
|
346
|
-
filterTitle: "Filter porlet"
|
|
346
|
+
filterTitle: "Filter porlet",
|
|
347
|
+
selectAll: "Select all"
|
|
347
348
|
}
|
|
348
349
|
},
|
|
349
350
|
form: {
|
|
@@ -504,7 +505,9 @@ var index = {
|
|
|
504
505
|
resultDefault: "Restore defaults",
|
|
505
506
|
headerCaption: "Header display attributes",
|
|
506
507
|
optionalAttribute: "Optional attributes",
|
|
507
|
-
selectedAttribute: "Selected attributes"
|
|
508
|
+
selectedAttribute: "Selected attributes",
|
|
509
|
+
limitsize: "Maximum limit {max}",
|
|
510
|
+
reachedMaximum: "Reached maximum value"
|
|
508
511
|
},
|
|
509
512
|
actionToolbar: {
|
|
510
513
|
more: "More"
|
|
@@ -617,6 +620,11 @@ var index = {
|
|
|
617
620
|
authUserinfo: {
|
|
618
621
|
visitor: "Visitor"
|
|
619
622
|
},
|
|
623
|
+
authSsO: {
|
|
624
|
+
noSupported: "Login with {type} is not supported",
|
|
625
|
+
dingLogin: "DingTalk Login in",
|
|
626
|
+
wechatLogin: "Wechat Login in"
|
|
627
|
+
},
|
|
620
628
|
coopPos: {
|
|
621
629
|
view: "{username} is browsing",
|
|
622
630
|
edit: "{username} is editing",
|
|
@@ -525,6 +525,14 @@ declare const _default: {
|
|
|
525
525
|
processedWithout: string;
|
|
526
526
|
noExistProcessed: string;
|
|
527
527
|
missingDetreeColumnId: string;
|
|
528
|
+
thirdAuth: {
|
|
529
|
+
noSupported: string;
|
|
530
|
+
corpidError: string;
|
|
531
|
+
dingTalkCodeErrir: string;
|
|
532
|
+
dingTalkAuthError: string;
|
|
533
|
+
appIdError: string;
|
|
534
|
+
noImplemented: string;
|
|
535
|
+
};
|
|
528
536
|
};
|
|
529
537
|
uiAction: {
|
|
530
538
|
noEntityOrBehavior: string;
|
|
@@ -1016,6 +1024,7 @@ declare const _default: {
|
|
|
1016
1024
|
checkTitle: string;
|
|
1017
1025
|
baseSet: string;
|
|
1018
1026
|
filterTitle: string;
|
|
1027
|
+
selectAll: string;
|
|
1019
1028
|
};
|
|
1020
1029
|
};
|
|
1021
1030
|
form: {
|
|
@@ -1176,6 +1185,8 @@ declare const _default: {
|
|
|
1176
1185
|
headerCaption: string;
|
|
1177
1186
|
optionalAttribute: string;
|
|
1178
1187
|
selectedAttribute: string;
|
|
1188
|
+
limitsize: string;
|
|
1189
|
+
reachedMaximum: string;
|
|
1179
1190
|
};
|
|
1180
1191
|
actionToolbar: {
|
|
1181
1192
|
more: string;
|
|
@@ -1287,6 +1298,11 @@ declare const _default: {
|
|
|
1287
1298
|
authUserinfo: {
|
|
1288
1299
|
visitor: string;
|
|
1289
1300
|
};
|
|
1301
|
+
authSsO: {
|
|
1302
|
+
noSupported: string;
|
|
1303
|
+
dingLogin: string;
|
|
1304
|
+
wechatLogin: string;
|
|
1305
|
+
};
|
|
1290
1306
|
coopPos: {
|
|
1291
1307
|
view: string;
|
|
1292
1308
|
edit: string;
|
|
@@ -339,7 +339,8 @@ var index = {
|
|
|
339
339
|
ctrlPlaceholder: "\u8BF7\u8F93\u5165\u90E8\u4EF6\u540D\u79F0",
|
|
340
340
|
checkTitle: "\u5BF9\u6570\u636E\u96C6\u4E0B\u6240\u6709\u62A5\u8868\u751F\u6548",
|
|
341
341
|
baseSet: "\u57FA\u672C\u8BBE\u7F6E",
|
|
342
|
-
filterTitle: "\u7B5B\u9009\u90E8\u4EF6"
|
|
342
|
+
filterTitle: "\u7B5B\u9009\u90E8\u4EF6",
|
|
343
|
+
selectAll: "\u5168\u9009"
|
|
343
344
|
}
|
|
344
345
|
},
|
|
345
346
|
form: {
|
|
@@ -500,7 +501,9 @@ var index = {
|
|
|
500
501
|
resultDefault: "\u6062\u590D\u9ED8\u8BA4\u503C",
|
|
501
502
|
headerCaption: "\u8868\u5934\u663E\u793A\u5C5E\u6027",
|
|
502
503
|
optionalAttribute: "\u53EF\u9009\u62E9\u5C5E\u6027",
|
|
503
|
-
selectedAttribute: "\u5DF2\u9009\u62E9\u5C5E\u6027"
|
|
504
|
+
selectedAttribute: "\u5DF2\u9009\u62E9\u5C5E\u6027",
|
|
505
|
+
limitsize: "\u4E0A\u9650{max}\u4E2A",
|
|
506
|
+
reachedMaximum: "\u5DF2\u8FBE\u6700\u5927\u503C"
|
|
504
507
|
},
|
|
505
508
|
actionToolbar: {
|
|
506
509
|
more: "\u66F4\u591A"
|
|
@@ -613,6 +616,11 @@ var index = {
|
|
|
613
616
|
authUserinfo: {
|
|
614
617
|
visitor: "\u6E38\u5BA2"
|
|
615
618
|
},
|
|
619
|
+
authSsO: {
|
|
620
|
+
noSupported: "\u6682\u4E0D\u652F\u6301{type}\u767B\u5F55",
|
|
621
|
+
dingLogin: "\u9489\u9489\u767B\u5F55",
|
|
622
|
+
wechatLogin: "\u5FAE\u4FE1\u767B\u5F55"
|
|
623
|
+
},
|
|
616
624
|
coopPos: {
|
|
617
625
|
view: "{username} \u6B63\u5728\u6D4F\u89C8",
|
|
618
626
|
edit: "{username} \u6B63\u5728\u7F16\u8F91",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-auth-sso{--ibiz-auth-sso-icon-width:var(--ibiz-editor-default-line-height);--ibiz-auth-sso-icon-height:var(--ibiz-editor-default-line-height);--ibiz-auth-sso-gap:var(--ibiz-spacing-base);display:flex;gap:var(--ibiz-auth-sso-gap);justify-content:center;width:100%}.ibiz-auth-sso__sign-btn{width:var(--ibiz-auth-sso-icon-width);height:var(--ibiz-auth-sso-icon-height);cursor:pointer}.ibiz-auth-sso__sign-btn svg{width:100%;height:100%}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
3
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
4
|
+
import './auth-sso.scss';
|
|
5
|
+
export declare const AuthSso: import("vue").DefineComponent<{
|
|
6
|
+
modelData: {
|
|
7
|
+
type: PropType<IPanelRawItem>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
controller: {
|
|
11
|
+
type: typeof PanelItemController;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
+
handleThridLogin: (type: string) => void;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelData: {
|
|
19
|
+
type: PropType<IPanelRawItem>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
controller: {
|
|
23
|
+
type: typeof PanelItemController;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}>>, {}, {}>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent, createVNode } from 'vue';
|
|
2
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
3
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
+
import './auth-sso.css';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const AuthSso = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "IBizAuthSsO",
|
|
9
|
+
props: {
|
|
10
|
+
modelData: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
controller: {
|
|
15
|
+
type: PanelItemController,
|
|
16
|
+
required: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup() {
|
|
20
|
+
const ns = useNamespace("auth-sso");
|
|
21
|
+
const dingtalkHandleClick = async () => {
|
|
22
|
+
ibiz.thirdAuth.auth("DINGTALK", "THIRD");
|
|
23
|
+
};
|
|
24
|
+
const wxWorkHandleClick = async () => {
|
|
25
|
+
ibiz.thirdAuth.auth("WXWORK", "THIRD");
|
|
26
|
+
};
|
|
27
|
+
const handleThridLogin = (type) => {
|
|
28
|
+
if (!type)
|
|
29
|
+
return;
|
|
30
|
+
switch (type) {
|
|
31
|
+
case "DINGDING":
|
|
32
|
+
dingtalkHandleClick();
|
|
33
|
+
break;
|
|
34
|
+
case "WXWORK":
|
|
35
|
+
wxWorkHandleClick();
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
console.log(ibiz.i18n.t("panelComponent.authSsO.noSupported", {
|
|
39
|
+
type
|
|
40
|
+
}));
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
ns,
|
|
46
|
+
handleThridLogin
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
render() {
|
|
50
|
+
return createVNode("div", {
|
|
51
|
+
"class": this.ns.b()
|
|
52
|
+
}, [createVNode("div", {
|
|
53
|
+
"class": [this.ns.e("sign-btn"), this.ns.m("dingding")],
|
|
54
|
+
"onClick": () => this.handleThridLogin("DINGDING"),
|
|
55
|
+
"title": ibiz.i18n.t("panelComponent.authSsO.dingLogin")
|
|
56
|
+
}, [createVNode("svg", {
|
|
57
|
+
"class": "icon",
|
|
58
|
+
"viewBox": "0 0 1024 1024",
|
|
59
|
+
"version": "1.1",
|
|
60
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
61
|
+
"p-id": "651",
|
|
62
|
+
"width": "48",
|
|
63
|
+
"height": "48"
|
|
64
|
+
}, [createVNode("defs", null, [createVNode("style", {
|
|
65
|
+
"type": "text/css"
|
|
66
|
+
}, null)]), createVNode("path", {
|
|
67
|
+
"d": "M512 2C230.2 2 2 230.2 2 512s228.2 510 510 510 510-228.2 510-510S793.3 2 512 2z m235.9 442c-1 4.6-3.6 10.8-7.2 19.1l-0.5 0.5c-21.6 45.8-77.3 135.5-77.3 135.5l-0.5-0.5-16.5 28.3h78.8L574.3 826.8l34-136h-61.8l21.6-90.2c-17.5 4.1-38.1 9.8-62.3 18 0 0-33 19.1-94.8-37.1 0 0-41.7-37.1-17.5-45.8 10.3-4.1 50-8.8 81.4-12.9 42.2-5.7 68.5-8.8 68.5-8.8s-130.3 2.1-161.2-3.1c-30.9-4.6-70.1-56.7-78.3-102 0 0-12.9-24.7 27.8-12.9 40.2 11.8 209.2 45.8 209.2 45.8S321.4 375 307 358.5c-14.4-16.5-42.8-89.6-39.2-134.5 0 0 1.5-11.3 12.9-8.2 0 0 161.8 74.2 272.5 114.4C664.5 371.4 760.8 392 747.9 444z",
|
|
68
|
+
"fill": "#3296FA",
|
|
69
|
+
"p-id": "652"
|
|
70
|
+
}, null)])]), createVNode("div", {
|
|
71
|
+
"class": [this.ns.e("sign-btn"), this.ns.m("wx")],
|
|
72
|
+
"onClick": () => this.handleThridLogin("WXWORK"),
|
|
73
|
+
"title": ibiz.i18n.t("panelComponent.authSsO.wechatLogin")
|
|
74
|
+
}, [createVNode("svg", {
|
|
75
|
+
"class": "icon",
|
|
76
|
+
"width": "200px",
|
|
77
|
+
"height": "200.00px",
|
|
78
|
+
"viewBox": "0 0 1024 1024",
|
|
79
|
+
"version": "1.1",
|
|
80
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
81
|
+
}, [createVNode("path", {
|
|
82
|
+
"fill": "#36ab60",
|
|
83
|
+
"d": "M352.814545 385.396364m-33.512727 0a33.512727 33.512727 0 1 0 67.025455 0 33.512727 33.512727 0 1 0-67.025455 0Z"
|
|
84
|
+
}, null), createVNode("path", {
|
|
85
|
+
"fill": "#36ab60",
|
|
86
|
+
"d": "M502.690909 384.465455m-33.512727 0a33.512727 33.512727 0 1 0 67.025454 0 33.512727 33.512727 0 1 0-67.025454 0Z"
|
|
87
|
+
}, null), createVNode("path", {
|
|
88
|
+
"fill": "#36ab60",
|
|
89
|
+
"d": "M576.232727 534.341818m-23.272727 0a23.272727 23.272727 0 1 0 46.545455 0 23.272727 23.272727 0 1 0-46.545455 0Z"
|
|
90
|
+
}, null), createVNode("path", {
|
|
91
|
+
"fill": "#36ab60",
|
|
92
|
+
"d": "M694.458182 536.203636m-23.272727 0a23.272727 23.272727 0 1 0 46.545454 0 23.272727 23.272727 0 1 0-46.545454 0Z"
|
|
93
|
+
}, null), createVNode("path", {
|
|
94
|
+
"fill": "#36ab60",
|
|
95
|
+
"d": "M512 0C229.003636 0 0 229.003636 0 512s229.003636 512 512 512 512-229.003636 512-512S794.996364 0 512 0z m-87.505455 630.225455c-26.996364 0-48.407273-5.585455-75.403636-11.17091l-75.403636 37.236364 21.410909-64.232727c-53.992727-37.236364-85.643636-85.643636-85.643637-145.221818 0-102.4 96.814545-182.458182 215.04-182.458182 105.192727 0 198.283636 64.232727 216.901819 150.807273-6.516364-0.930909-13.963636-0.930909-20.48-0.93091-102.4 0-182.458182 76.334545-182.458182 170.356364 0 15.825455 2.792727 30.72 6.516363 44.683636-7.447273 0-13.963636 0.930909-20.48 0.93091z m314.647273 75.403636l15.825455 53.992727-58.647273-32.581818c-21.410909 5.585455-42.821818 11.170909-64.232727 11.170909-102.4 0-182.458182-69.818182-182.458182-155.461818s80.058182-155.461818 182.458182-155.461818c96.814545 0 182.458182 69.818182 182.458182 155.461818 0 47.476364-31.650909 90.298182-75.403637 122.88z"
|
|
96
|
+
}, null)])])]);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export { AuthSso };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
2
|
+
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
3
|
+
export declare class AuthSsoProvider implements IPanelItemProvider {
|
|
4
|
+
component: string;
|
|
5
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class AuthSsoProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
__publicField(this, "component", "IBizAuthSsO");
|
|
13
|
+
}
|
|
14
|
+
async createController(panelItem, panel, parent) {
|
|
15
|
+
const c = new PanelItemController(panelItem, panel, parent);
|
|
16
|
+
await c.init();
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { AuthSsoProvider };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const IBizAuthSso: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
modelData: {
|
|
3
|
+
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
controller: {
|
|
7
|
+
type: typeof import("@ibiz-template/runtime").PanelItemController;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
+
handleThridLogin: (type: string) => void;
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
modelData: {
|
|
15
|
+
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
controller: {
|
|
19
|
+
type: typeof import("@ibiz-template/runtime").PanelItemController;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>>, {}, {}>>;
|
|
23
|
+
export default IBizAuthSso;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { AuthSso } from './auth-sso.mjs';
|
|
4
|
+
import { AuthSsoProvider } from './auth-sso.provider.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const IBizAuthSso = withInstall(AuthSso, function(v) {
|
|
8
|
+
v.component(AuthSso.name, AuthSso);
|
|
9
|
+
registerPanelItemProvider("RAWITEM_AUTH_SSO", () => new AuthSsoProvider());
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export { IBizAuthSso, IBizAuthSso as default };
|
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
import { IAlertParams, PanelItemController } from '@ibiz-template/runtime';
|
|
1
|
+
import { CodeListItem, IAlertParams, PanelItemController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IPanelRawItem } from '@ibiz/model-core';
|
|
3
3
|
import { CoopPosState } from './coop-pos.state';
|
|
4
4
|
export declare class CoopPosController extends PanelItemController<IPanelRawItem> {
|
|
5
5
|
state: CoopPosState;
|
|
6
|
+
/**
|
|
7
|
+
*云系统操作者
|
|
8
|
+
*
|
|
9
|
+
* @memberof CoopPosController
|
|
10
|
+
*/
|
|
11
|
+
operator: readonly CodeListItem[];
|
|
12
|
+
/**
|
|
13
|
+
* @description 自定义补充参数
|
|
14
|
+
* @type {IData}
|
|
15
|
+
* @memberof CoopPosController
|
|
16
|
+
*/
|
|
17
|
+
rawItemParams: IData;
|
|
18
|
+
/**
|
|
19
|
+
* @description 显示模式
|
|
20
|
+
* @type {('avatar' | 'default')}
|
|
21
|
+
* @memberof CoopPosController
|
|
22
|
+
*/
|
|
23
|
+
showMode: 'avatar' | 'default';
|
|
6
24
|
protected createState(): CoopPosState;
|
|
25
|
+
protected onInit(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* @description 处理自定义补充参数
|
|
28
|
+
* @protected
|
|
29
|
+
* @memberof CoopPosController
|
|
30
|
+
*/
|
|
31
|
+
protected handleRawItemParams(): void;
|
|
7
32
|
/**
|
|
8
33
|
* 消息模式映射
|
|
9
34
|
* - 视图打开数据模式映射消息类型
|
|
@@ -25,4 +50,24 @@ export declare class CoopPosController extends PanelItemController<IPanelRawItem
|
|
|
25
50
|
* @memberof CoopPosController
|
|
26
51
|
*/
|
|
27
52
|
updateMessage(params: IAlertParams): void;
|
|
53
|
+
/**
|
|
54
|
+
* @description 获取云系统操作者代码表
|
|
55
|
+
* @return {*} {Promise<void>}
|
|
56
|
+
* @memberof CoopPosController
|
|
57
|
+
*/
|
|
58
|
+
getOperator(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @description 根据名称获取图标
|
|
61
|
+
* @param {string} name
|
|
62
|
+
* @return {*} {string}
|
|
63
|
+
* @memberof CoopPosController
|
|
64
|
+
*/
|
|
65
|
+
getIconUrlByName(name: string): string;
|
|
66
|
+
/**
|
|
67
|
+
* @description 获取头像下载地址
|
|
68
|
+
* @param {string} url
|
|
69
|
+
* @return {*} {string}
|
|
70
|
+
* @memberof CoopPosController
|
|
71
|
+
*/
|
|
72
|
+
getDownloadUrl(url: string): string;
|
|
28
73
|
}
|