@ibiz-template/runtime 0.7.41-alpha.51 → 0.7.41-alpha.53
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.esm.js +272 -86
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/md-control.controller.d.ts +6 -0
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +7 -0
- package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
- package/out/controller/control/chart/chart.controller.js +3 -2
- package/out/controller/control/form/form/form.controller.d.ts +7 -0
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +11 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts +6 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +19 -1
- package/out/controller/control/report-panel/generator/base-generator.d.ts +3 -2
- package/out/controller/control/report-panel/generator/base-generator.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/base-generator.js +1 -0
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +16 -8
- package/out/controller/ctx/ctx.d.ts +6 -4
- package/out/controller/ctx/ctx.d.ts.map +1 -1
- package/out/controller/ctx/ctx.js +1 -0
- package/out/controller/hub.controller.d.ts +8 -4
- package/out/controller/hub.controller.d.ts.map +1 -1
- package/out/controller/hub.controller.js +5 -3
- package/out/interface/api/app/i-api-app-hub-controller.d.ts +23 -19
- package/out/interface/api/app/i-api-app-hub-controller.d.ts.map +1 -1
- package/out/interface/api/app/i-api-app-hub-service.d.ts +9 -9
- package/out/interface/api/app/i-micro-app-config-center.d.ts +3 -3
- package/out/interface/api/call/i-api-data-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-edit-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-grid-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-list-view.call.d.ts +2 -2
- package/out/interface/api/call/i-api-login-view.call.d.ts +21 -5
- package/out/interface/api/call/i-api-login-view.call.d.ts.map +1 -1
- package/out/interface/api/call/i-api-md-custom-view.call.d.ts +3 -3
- package/out/interface/api/call/i-api-md-view.call.d.ts +6 -6
- package/out/interface/api/call/i-api-mob-wf-dyna-edit-view.call.d.ts +1 -1
- package/out/interface/api/call/i-api-tree-exp-view.call.d.ts +4 -4
- package/out/interface/api/call/i-api-tree-grid-ex-view.call.d.ts +1 -1
- package/out/interface/api/call/i-api-tree-grid-view.call.d.ts +4 -7
- package/out/interface/api/call/i-api-tree-grid-view.call.d.ts.map +1 -1
- package/out/interface/api/call/i-api-tree-view.call.d.ts +4 -4
- package/out/interface/api/call/i-api-view.call.d.ts +1 -1
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts +0 -1
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts.map +1 -1
- package/out/interface/api/common/i-api-ctx.d.ts +41 -0
- package/out/interface/api/common/i-api-ctx.d.ts.map +1 -0
- package/out/interface/api/common/i-api-ctx.js +1 -0
- package/out/interface/api/common/i-api-error-handler.d.ts +15 -0
- package/out/interface/api/common/i-api-error-handler.d.ts.map +1 -0
- package/out/interface/api/common/i-api-error-handler.js +1 -0
- package/out/interface/api/common/i-api-modal-option.d.ts +50 -0
- package/out/interface/api/common/i-api-modal-option.d.ts.map +1 -0
- package/out/interface/api/common/i-api-modal-option.js +1 -0
- package/out/interface/api/common/i-api-overlay-container-options.d.ts +3 -3
- package/out/interface/api/common/i-api-overlay-container-options.d.ts.map +1 -1
- package/out/interface/api/common/i-api-ui-action-result.d.ts +51 -0
- package/out/interface/api/common/i-api-ui-action-result.d.ts.map +1 -0
- package/out/interface/api/common/i-api-ui-action-result.js +1 -0
- package/out/interface/api/common/i-api-ui-logic-params.d.ts +52 -0
- package/out/interface/api/common/i-api-ui-logic-params.d.ts.map +1 -0
- package/out/interface/api/common/i-api-ui-logic-params.js +1 -0
- package/out/interface/api/common/index.d.ts +5 -0
- package/out/interface/api/common/index.d.ts.map +1 -1
- package/out/interface/api/controller/common/i-api-enforceable.controller.d.ts +1 -1
- package/out/interface/api/controller/control/form-detail/i-api-form-button-controller.d.ts +3 -3
- package/out/interface/api/controller/control/form-detail/i-api-form-button-list.controller.d.ts +6 -6
- package/out/interface/api/controller/control/form-detail/i-api-form-detail.controller.d.ts +1 -0
- package/out/interface/api/controller/control/form-detail/i-api-form-detail.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/form-detail/i-api-form-group-panel.controller.d.ts +3 -3
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-form.controller.d.ts +1 -7
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-repeater.controller.d.ts +2 -2
- package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl.controller.d.ts +2 -2
- package/out/interface/api/controller/control/grid-column/i-api-grid-column.controller.d.ts +1 -1
- package/out/interface/api/controller/control/grid-column/i-api-grid-field-column.controller.d.ts +6 -6
- package/out/interface/api/controller/control/grid-column/i-api-grid-field-edit-column.controller.d.ts +3 -3
- package/out/interface/api/controller/control/grid-column/i-api-grid-ua-column.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-calendar.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-chart.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-control.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-data-view-control.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts +7 -6
- package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-exp-bar-control.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-form.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-grid.controller.d.ts +4 -4
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +2 -3
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-list.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-map.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-md-control.controller.d.ts +7 -7
- package/out/interface/api/controller/control/i-api-medit-view-panel.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-mob-md-ctrl.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-pickup-view-panel.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-report-panel.controller.d.ts +4 -3
- package/out/interface/api/controller/control/i-api-report-panel.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +4 -3
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts +3 -2
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-tab-exp-panel.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-toolbar.controller.d.ts +4 -4
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-tree-grid.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-tree.controller.d.ts +3 -3
- package/out/interface/api/controller/control/index.d.ts +2 -1
- package/out/interface/api/controller/control/index.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.js +1 -0
- package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts +11 -7
- package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.d.ts +33 -0
- package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.d.ts.map +1 -0
- package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.js +1 -0
- package/out/interface/api/controller/control/report-panel/index.d.ts +2 -0
- package/out/interface/api/controller/control/report-panel/index.d.ts.map +1 -0
- package/out/interface/api/controller/control/report-panel/index.js +1 -0
- package/out/interface/api/controller/view/i-api-view.controller.d.ts +3 -3
- package/out/interface/api/service/i-api-app-de.service.d.ts +46 -44
- package/out/interface/api/service/i-api-app-de.service.d.ts.map +1 -1
- package/out/interface/api/service/i-api-auth-result.d.ts +4 -4
- package/out/interface/api/service/i-api-auth-result.d.ts.map +1 -1
- package/out/interface/api/service/i-api-code-list.service.d.ts +5 -5
- package/out/interface/api/service/i-api-de-service-util.d.ts +7 -7
- package/out/interface/api/service/index.d.ts +1 -0
- package/out/interface/api/service/index.d.ts.map +1 -1
- package/out/interface/api/service/vo/i-api-control.vo.d.ts +89 -0
- package/out/interface/api/service/vo/i-api-control.vo.d.ts.map +1 -0
- package/out/interface/api/service/vo/i-api-control.vo.js +1 -0
- package/out/interface/api/service/vo/i-api-ui-map-field.d.ts +54 -0
- package/out/interface/api/service/vo/i-api-ui-map-field.d.ts.map +1 -0
- package/out/interface/api/service/vo/i-api-ui-map-field.js +1 -0
- package/out/interface/api/service/vo/index.d.ts +3 -0
- package/out/interface/api/service/vo/index.d.ts.map +1 -0
- package/out/interface/api/service/vo/index.js +1 -0
- package/out/interface/api/state/common/i-api-button-container.state.d.ts +1 -1
- package/out/interface/api/state/common/i-api-button.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-app-menu.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-calendar.state.d.ts +33 -2
- package/out/interface/api/state/control/i-api-calendar.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-chart.state.d.ts +48 -9
- package/out/interface/api/state/control/i-api-chart.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-control.state.d.ts +0 -1
- package/out/interface/api/state/control/i-api-control.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-grid.state.d.ts +4 -3
- package/out/interface/api/state/control/i-api-grid.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-medit-view-panel.state.d.ts +8 -8
- package/out/interface/api/state/control/i-api-medit-view-panel.state.d.ts.map +1 -1
- package/out/interface/api/state/control/portlet/i-api-portlet.state.d.ts +1 -1
- package/out/interface/api/state/view/i-api-view-session.d.ts +1 -1
- package/out/interface/api/util/i-api-ai-chat-util.d.ts +99 -22
- package/out/interface/api/util/i-api-ai-chat-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-app-util.d.ts +31 -27
- package/out/interface/api/util/i-api-app-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-confirm-util.d.ts +4 -4
- package/out/interface/api/util/i-api-encryption-util.d.ts +15 -0
- package/out/interface/api/util/i-api-encryption-util.d.ts.map +1 -0
- package/out/interface/api/util/i-api-encryption-util.js +1 -0
- package/out/interface/api/util/i-api-error-handle-center.d.ts +21 -0
- package/out/interface/api/util/i-api-error-handle-center.d.ts.map +1 -0
- package/out/interface/api/util/i-api-error-handle-center.js +1 -0
- package/out/interface/api/util/i-api-excel-util.d.ts +25 -0
- package/out/interface/api/util/i-api-excel-util.d.ts.map +1 -0
- package/out/interface/api/util/i-api-excel-util.js +1 -0
- package/out/interface/api/util/i-api-file-util.d.ts +17 -17
- package/out/interface/api/util/i-api-file-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-fullscreen-util.d.ts +5 -4
- package/out/interface/api/util/i-api-fullscreen-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-global-util.d.ts +58 -1
- package/out/interface/api/util/i-api-global-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-handlebars-util.d.ts +4 -4
- package/out/interface/api/util/i-api-html2canvas-util.d.ts +4 -4
- package/out/interface/api/util/i-api-inline-ai-util.d.ts +12 -12
- package/out/interface/api/util/i-api-inline-ai-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-json-util.d.ts +15 -14
- package/out/interface/api/util/i-api-json-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-message-util.d.ts +2 -3
- package/out/interface/api/util/i-api-message-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-modal-util.d.ts +6 -6
- package/out/interface/api/util/i-api-notification-util.d.ts +5 -5
- package/out/interface/api/util/i-api-open-view-util.d.ts +33 -29
- package/out/interface/api/util/i-api-open-view-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-qrcode-util.d.ts +5 -4
- package/out/interface/api/util/i-api-qrcode-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-raw-value-util.d.ts +2 -2
- package/out/interface/api/util/i-api-short-cut-util.d.ts +24 -8
- package/out/interface/api/util/i-api-short-cut-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-text-util.d.ts +7 -0
- package/out/interface/api/util/i-api-text-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-ui-action-util.d.ts +36 -0
- package/out/interface/api/util/i-api-ui-action-util.d.ts.map +1 -0
- package/out/interface/api/util/i-api-ui-action-util.js +1 -0
- package/out/interface/api/util/i-api-voice-util.d.ts +3 -4
- package/out/interface/api/util/i-api-voice-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-water-mark-util.d.ts +3 -3
- package/out/interface/api/util/i-api-wechat-util.d.ts +11 -3
- package/out/interface/api/util/i-api-wechat-util.d.ts.map +1 -1
- package/out/interface/api/util/index.d.ts +4 -0
- package/out/interface/api/util/index.d.ts.map +1 -1
- package/out/interface/common/i-error-handler/i-error-handler.d.ts +3 -8
- package/out/interface/common/i-error-handler/i-error-handler.d.ts.map +1 -1
- package/out/interface/common/i-modal-options/i-modal-options.d.ts +2 -55
- package/out/interface/common/i-modal-options/i-modal-options.d.ts.map +1 -1
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts +3 -57
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
- package/out/interface/common/i-ui-logic-params/i-ui-logic-params.d.ts +3 -36
- package/out/interface/common/i-ui-logic-params/i-ui-logic-params.d.ts.map +1 -1
- package/out/interface/controller/controller/i.controller.d.ts +6 -0
- package/out/interface/controller/controller/i.controller.d.ts.map +1 -1
- package/out/interface/util/i-encryption-uitl/i-encryption-uitl.d.ts +3 -10
- package/out/interface/util/i-encryption-uitl/i-encryption-uitl.d.ts.map +1 -1
- package/out/interface/util/i-excel-util/i-excel-util.d.ts +3 -12
- package/out/interface/util/i-excel-util/i-excel-util.d.ts.map +1 -1
- package/out/model/utils/util.d.ts +28 -1
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +138 -0
- package/out/ui-action/uiaction-util.d.ts +8 -0
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +12 -0
- package/out/utils/error-handler/error-handler-center.d.ts +3 -2
- package/out/utils/error-handler/error-handler-center.d.ts.map +1 -1
- package/out/utils/error-handler/error-handler-center.js +1 -0
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +4 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-global-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-global-util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"i-api-global-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-global-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,kBAAkB,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,MAAM,CAAC;IAE/B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAEpC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAElC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC;IAEvC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAEpC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAE1C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAExC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAEtC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEhC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;IAE5C;;;OAGG;IACH,cAAc,IAAI,IAAI,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,IAAI,IAAI,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;;;OAIG;IACH,cAAc,IAAI,UAAU,CAAC;IAE7B;;;;OAIG;IACH,eAAe,IAAI,UAAU,EAAE,CAAC;IAEhC;;;;;OAKG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,cAAc,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;CAChE"}
|
|
@@ -7,16 +7,16 @@ import { IApiData } from '@ibiz-template/core';
|
|
|
7
7
|
export interface IApiHandlebarsUtil {
|
|
8
8
|
/**
|
|
9
9
|
* @description 异步绘制模板,返回渲染后的字符串
|
|
10
|
-
* @param {string} template
|
|
11
|
-
* @param {IApiData} data
|
|
10
|
+
* @param {string} template 模板字符串
|
|
11
|
+
* @param {IApiData} data 业务数据
|
|
12
12
|
* @returns {*} {Promise<string>}
|
|
13
13
|
* @memberof IApiHandlebarsUtil
|
|
14
14
|
*/
|
|
15
15
|
render(template: string, data: IApiData): Promise<string>;
|
|
16
16
|
/**
|
|
17
17
|
* @description 同步绘制模板,返回渲染后的字符串
|
|
18
|
-
* @param {string} template
|
|
19
|
-
* @param {IApiData} data
|
|
18
|
+
* @param {string} template 模板字符串
|
|
19
|
+
* @param {IApiData} data 业务数据
|
|
20
20
|
* @returns {*} {string}
|
|
21
21
|
* @memberof IApiHandlebarsUtil
|
|
22
22
|
*/
|
|
@@ -138,16 +138,16 @@ export interface IApiHtml2canvasOption {
|
|
|
138
138
|
export interface IApiHtml2canvasUtil {
|
|
139
139
|
/**
|
|
140
140
|
* @description 导出canvas
|
|
141
|
-
* @param {HTMLElement} dom
|
|
142
|
-
* @param {IApiHtml2canvasOption} [option]
|
|
141
|
+
* @param {HTMLElement} dom 元素
|
|
142
|
+
* @param {IApiHtml2canvasOption} [option] html2canvas配置
|
|
143
143
|
* @returns {*} {Promise<void>}
|
|
144
144
|
* @memberof IApiHtml2canvasUtil
|
|
145
145
|
*/
|
|
146
146
|
exportCanvas(dom: HTMLElement, option?: IApiHtml2canvasOption): Promise<void>;
|
|
147
147
|
/**
|
|
148
148
|
* @description 获取节点转化的canvas
|
|
149
|
-
* @param {HTMLElement} dom
|
|
150
|
-
* @param {IApiHtml2canvasOption} [option]
|
|
149
|
+
* @param {HTMLElement} dom 元素
|
|
150
|
+
* @param {IApiHtml2canvasOption} [option] html2canvas配置
|
|
151
151
|
* @returns {*} {Promise<HTMLCanvasElement>}
|
|
152
152
|
* @memberof IApiHtml2canvasUtil
|
|
153
153
|
*/
|
|
@@ -43,7 +43,7 @@ export interface IApiInLineAiChatOptions {
|
|
|
43
43
|
export interface IApiInLineAIUtil {
|
|
44
44
|
/**
|
|
45
45
|
* @description 计算上下文菜单
|
|
46
|
-
* @param {IAppDEACMode | undefined} deACMode
|
|
46
|
+
* @param {IAppDEACMode | undefined} deACMode 自填模式
|
|
47
47
|
* @param {(tag: string) => void} clickCallBack 项点击回调
|
|
48
48
|
* @returns {IApiData[]}
|
|
49
49
|
* @memberof IApiInLineAIUtil
|
|
@@ -51,21 +51,21 @@ export interface IApiInLineAIUtil {
|
|
|
51
51
|
calcContextMenus(deACMode: IAppDEACMode | undefined, clickCallBack: (tag: string) => void): IApiData[];
|
|
52
52
|
/**
|
|
53
53
|
* @description 显示上下文菜单
|
|
54
|
-
* @param {number} x
|
|
55
|
-
* @param {number} y
|
|
56
|
-
* @param {IApiData[]} menus
|
|
57
|
-
* @param {IData} [options]
|
|
54
|
+
* @param {number} x 距离左侧距离
|
|
55
|
+
* @param {number} y 距离上方距离
|
|
56
|
+
* @param {IApiData[]} menus 菜单集合
|
|
57
|
+
* @param {IData} [options] 菜单配置
|
|
58
58
|
* @memberof IApiInLineAIUtil
|
|
59
59
|
*/
|
|
60
|
-
showContextMenus(x: number, y: number, menus: IApiData[], options?:
|
|
60
|
+
showContextMenus(x: number, y: number, menus: IApiData[], options?: IApiData): void;
|
|
61
61
|
/**
|
|
62
62
|
* @description 显示AI聊天
|
|
63
|
-
* @param {IApiContext} context
|
|
64
|
-
* @param {IApiParams} params
|
|
65
|
-
* @param {IApiData} data
|
|
66
|
-
* @param {string} selectText
|
|
67
|
-
* @param {IAppDEACMode} deACMode
|
|
68
|
-
* @param {IApiInLineAiChatOptions} options
|
|
63
|
+
* @param {IApiContext} context 上下文参数
|
|
64
|
+
* @param {IApiParams} params 视图参数
|
|
65
|
+
* @param {IApiData} data 业务数据
|
|
66
|
+
* @param {string} selectText 选中文本
|
|
67
|
+
* @param {IAppDEACMode} deACMode 自填模式
|
|
68
|
+
* @param {IApiInLineAiChatOptions} options 聊天配置
|
|
69
69
|
* @memberof IApiInLineAIUtil
|
|
70
70
|
*/
|
|
71
71
|
showAIChat(context: IApiContext, params: IApiParams, data: IApiData, selectText: string, deACMode: IAppDEACMode, options: IApiInLineAiChatOptions): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-inline-ai-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-inline-ai-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,gBAAgB,CACd,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GACnC,QAAQ,EAAE,CAAC;IAEd;;;;;;;OAOG;IACH,gBAAgB,CACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,QAAQ,EAAE,EACjB,OAAO,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"i-api-inline-ai-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-inline-ai-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,gBAAgB,CACd,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GACnC,QAAQ,EAAE,CAAC;IAEd;;;;;;;OAOG;IACH,gBAAgB,CACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,QAAQ,EAAE,EACjB,OAAO,CAAC,EAAE,QAAQ,GACjB,IAAI,CAAC;IAER;;;;;;;;;OASG;IACH,UAAU,CACR,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,uBAAuB,GAC/B,IAAI,CAAC;IAER;;;OAGG;IACH,UAAU,IAAI,IAAI,CAAC;CACpB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IApiData } from '@ibiz-template/core';
|
|
1
2
|
export interface IApiJsonRepairOption {
|
|
2
3
|
/**
|
|
3
4
|
* @description 是否返回对象
|
|
@@ -33,10 +34,10 @@ export interface IApiJsonRepairResult {
|
|
|
33
34
|
success: boolean;
|
|
34
35
|
/**
|
|
35
36
|
* @description json数据
|
|
36
|
-
* @type {(
|
|
37
|
+
* @type {(IApiData | IApiData[] | undefined)}
|
|
37
38
|
* @memberof IApiJsonRepairResult
|
|
38
39
|
*/
|
|
39
|
-
data:
|
|
40
|
+
data: IApiData | IApiData[] | undefined;
|
|
40
41
|
/**
|
|
41
42
|
* @description 数据类型
|
|
42
43
|
* @type {('jsonobject' | 'jsonarray' | 'unknown')}
|
|
@@ -56,38 +57,38 @@ export interface IApiJsonRepairResult {
|
|
|
56
57
|
export interface IApiJsonUtil {
|
|
57
58
|
/**
|
|
58
59
|
* @description json修复,用于提取大语言模型中的json数据
|
|
59
|
-
* @param {string} value
|
|
60
|
-
* @param {IApiJsonRepairOption} [options]
|
|
61
|
-
* @returns {*} {(
|
|
60
|
+
* @param {string} value json字符串
|
|
61
|
+
* @param {IApiJsonRepairOption} [options] 修复配置
|
|
62
|
+
* @returns {*} {(IApiData | IApiData[] | string)}
|
|
62
63
|
* @memberof IApiJsonUtil
|
|
63
64
|
*/
|
|
64
|
-
repairJson(value: string, options?: IApiJsonRepairOption):
|
|
65
|
+
repairJson(value: string, options?: IApiJsonRepairOption): IApiData | IApiData[] | string;
|
|
65
66
|
/**
|
|
66
67
|
* @description 加载字符串中的JSON数据,直接返回json数据对象
|
|
67
|
-
* @param {string} value
|
|
68
|
-
* @param {IApiJsonRepairOption} [options]
|
|
69
|
-
* @returns {*} {
|
|
68
|
+
* @param {string} value json字符串
|
|
69
|
+
* @param {IApiJsonRepairOption} [options] 修复配置
|
|
70
|
+
* @returns {*} {IApiData | IApiData[]}
|
|
70
71
|
* @memberof IApiJsonUtil
|
|
71
72
|
*/
|
|
72
|
-
loads(value: string, options?: IApiJsonRepairOption):
|
|
73
|
+
loads(value: string, options?: IApiJsonRepairOption): IApiData | IApiData[];
|
|
73
74
|
/**
|
|
74
75
|
* @description 判断是否为json对象
|
|
75
|
-
* @param {*} value
|
|
76
|
+
* @param {*} value 待判断值
|
|
76
77
|
* @returns {boolean}
|
|
77
78
|
* @memberof IApiJsonUtil
|
|
78
79
|
*/
|
|
79
80
|
isJsonObject(value: unknown): boolean;
|
|
80
81
|
/**
|
|
81
82
|
* @description 检测是否为json数组
|
|
82
|
-
* @param {*} value
|
|
83
|
+
* @param {*} value 待检测值
|
|
83
84
|
* @returns {boolean}
|
|
84
85
|
* @memberof IApiJsonUtil
|
|
85
86
|
*/
|
|
86
87
|
isJsonArray(value: unknown): boolean;
|
|
87
88
|
/**
|
|
88
89
|
* @description 解析字符串中的json数据,用于获取大语言模型中的json数据
|
|
89
|
-
* @param {string} value
|
|
90
|
-
* @param {IApiJsonRepairOption} [options]
|
|
90
|
+
* @param {string} value json字符串
|
|
91
|
+
* @param {IApiJsonRepairOption} [options] 修复配置
|
|
91
92
|
* @returns {*} {IApiJsonRepairResult}
|
|
92
93
|
* @memberof IApiJsonUtil
|
|
93
94
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-json-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-json-util.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"i-api-json-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-json-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,IAAI,EAAE,QAAQ,GAAG,QAAQ,EAAE,GAAG,SAAS,CAAC;IAExC;;;;OAIG;IACH,SAAS,EAAE,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;IAElD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,UAAU,CACR,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,oBAAoB,GAC7B,QAAQ,GAAG,QAAQ,EAAE,GAAG,MAAM,CAAC;IAElC;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAE5E;;;;;OAKG;IACH,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IAEtC;;;;;OAKG;IACH,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IAErC;;;;;;OAMG;IACH,SAAS,CACP,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,oBAAoB,GAC7B,oBAAoB,CAAC;CACzB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IApiData } from '@ibiz-template/core';
|
|
2
1
|
/**
|
|
3
2
|
* @description 消息提示参数接口
|
|
4
3
|
* @export
|
|
@@ -76,9 +75,9 @@ export interface IApiMessageUtil {
|
|
|
76
75
|
error(msg: string, duration?: number, closable?: boolean): void;
|
|
77
76
|
/**
|
|
78
77
|
* @description 通用消息方法
|
|
79
|
-
* @param {
|
|
78
|
+
* @param {IApiMessageParams} params 配置详细的参数,详情参见:https://element-plus.org/zh-CN/component/message.html#message-%E9%85%8D%E7%BD%AE%E9%A1%B9
|
|
80
79
|
* @memberof IApiMessageUtil
|
|
81
80
|
*/
|
|
82
|
-
notice(params:
|
|
81
|
+
notice(params: IApiMessageParams): void;
|
|
83
82
|
}
|
|
84
83
|
//# sourceMappingURL=i-api-message-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-message-util.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"i-api-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-message-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/D;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAElE;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClE;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAChE;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -62,42 +62,42 @@ export interface IApiModalParams {
|
|
|
62
62
|
export interface IApiModalUtil {
|
|
63
63
|
/**
|
|
64
64
|
* @description 弹出普通信息
|
|
65
|
-
* @param {IApiModalParams} params
|
|
65
|
+
* @param {IApiModalParams} params 确认框参数
|
|
66
66
|
* @returns {*} {Promise<void>}
|
|
67
67
|
* @memberof IApiModalUtil
|
|
68
68
|
*/
|
|
69
69
|
info(params: IApiModalParams): Promise<void>;
|
|
70
70
|
/**
|
|
71
71
|
* @description 弹出成功信息
|
|
72
|
-
* @param {IApiModalParams} params
|
|
72
|
+
* @param {IApiModalParams} params 确认框参数
|
|
73
73
|
* @returns {*} {Promise<void>}
|
|
74
74
|
* @memberof IApiModalUtil
|
|
75
75
|
*/
|
|
76
76
|
success(params: IApiModalParams): Promise<void>;
|
|
77
77
|
/**
|
|
78
78
|
* @description 弹出警告信息
|
|
79
|
-
* @param {IApiModalParams} params
|
|
79
|
+
* @param {IApiModalParams} params 确认框参数
|
|
80
80
|
* @returns {*} {Promise<void>}
|
|
81
81
|
* @memberof IApiModalUtil
|
|
82
82
|
*/
|
|
83
83
|
warning(params: IApiModalParams): Promise<void>;
|
|
84
84
|
/**
|
|
85
85
|
* @description 弹出错误信息
|
|
86
|
-
* @param {IApiModalParams} params
|
|
86
|
+
* @param {IApiModalParams} params 确认框参数
|
|
87
87
|
* @returns {*} {Promise<void>}
|
|
88
88
|
* @memberof IApiModalUtil
|
|
89
89
|
*/
|
|
90
90
|
error(params: IApiModalParams): Promise<void>;
|
|
91
91
|
/**
|
|
92
92
|
* @description 弹出确认操作
|
|
93
|
-
* @param {IApiModalParams} params
|
|
93
|
+
* @param {IApiModalParams} params 确认框参数
|
|
94
94
|
* @returns {*} {Promise<boolean>}
|
|
95
95
|
* @memberof IApiModalUtil
|
|
96
96
|
*/
|
|
97
97
|
confirm(params: IApiModalParams): Promise<boolean>;
|
|
98
98
|
/**
|
|
99
99
|
* @description 弹出确认操作,返回确认结果(yes | no | cancel)
|
|
100
|
-
* @param {IApiModalParams} params
|
|
100
|
+
* @param {IApiModalParams} params 确认框参数
|
|
101
101
|
* @returns {*} {(Promise<'yes' | 'no' | 'cancel'>)}
|
|
102
102
|
* @memberof IApiModalUtil
|
|
103
103
|
*/
|
|
@@ -54,31 +54,31 @@ export interface IApiNotificationParams {
|
|
|
54
54
|
export interface IApiNotificationUtil {
|
|
55
55
|
/**
|
|
56
56
|
* @description 弹出默认通知
|
|
57
|
-
* @param {IApiNotificationParams} params
|
|
57
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
58
58
|
* @memberof IApiNotificationUtil
|
|
59
59
|
*/
|
|
60
60
|
default(params: IApiNotificationParams): void;
|
|
61
61
|
/**
|
|
62
62
|
* @description 弹出普通通知
|
|
63
|
-
* @param {IApiNotificationParams} params
|
|
63
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
64
64
|
* @memberof IApiNotificationUtil
|
|
65
65
|
*/
|
|
66
66
|
info(params: IApiNotificationParams): void;
|
|
67
67
|
/**
|
|
68
68
|
* @description 弹出成功通知
|
|
69
|
-
* @param {IApiNotificationParams} params
|
|
69
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
70
70
|
* @memberof IApiNotificationUtil
|
|
71
71
|
*/
|
|
72
72
|
success(params: IApiNotificationParams): void;
|
|
73
73
|
/**
|
|
74
74
|
* @description 弹出警告通知
|
|
75
|
-
* @param {IApiNotificationParams} params
|
|
75
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
76
76
|
* @memberof IApiNotificationUtil
|
|
77
77
|
*/
|
|
78
78
|
warning(params: IApiNotificationParams): void;
|
|
79
79
|
/**
|
|
80
80
|
* @description 弹出失败通知
|
|
81
|
-
* @param {IApiNotificationParams} params
|
|
81
|
+
* @param {IApiNotificationParams} params 通知参数
|
|
82
82
|
* @memberof IApiNotificationUtil
|
|
83
83
|
*/
|
|
84
84
|
error(params: IApiNotificationParams): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiContext,
|
|
1
|
+
import { IApiContext, IApiParams } from '@ibiz-template/core';
|
|
2
2
|
import { IApiModalData, IApiOverlayContainerOptions, IApiPopoverOptions } from '../common';
|
|
3
3
|
/**
|
|
4
4
|
* @description 打开视图工具类
|
|
@@ -8,75 +8,79 @@ import { IApiModalData, IApiOverlayContainerOptions, IApiPopoverOptions } from '
|
|
|
8
8
|
export interface IApiOpenViewUtil {
|
|
9
9
|
/**
|
|
10
10
|
* @description 直接路径打开视图
|
|
11
|
-
* @param {string} path
|
|
11
|
+
* @param {string} path 视图路径
|
|
12
12
|
* @returns {*} {Promise<IApiModalData>}
|
|
13
13
|
* @memberof IApiOpenViewUtil
|
|
14
14
|
*/
|
|
15
15
|
push(path: string): Promise<IApiModalData>;
|
|
16
16
|
/**
|
|
17
17
|
* @description 打开顶级视图(一般为路由打开)
|
|
18
|
-
* @param {string} appViewId
|
|
19
|
-
* @param {IApiContext} context
|
|
20
|
-
* @param {IApiParams} [params]
|
|
21
|
-
* @param {
|
|
18
|
+
* @param {string} appViewId 应用视图id
|
|
19
|
+
* @param {IApiContext} context 上下文参数
|
|
20
|
+
* @param {IApiParams} [params] 视图参数
|
|
21
|
+
* @param {{
|
|
22
|
+
* replace?: boolean; // 是否替换当前路由
|
|
23
|
+
* }} [modalOptions] 配置
|
|
22
24
|
* @returns {*} {Promise<IApiModalData>}
|
|
23
25
|
* @memberof IApiOpenViewUtil
|
|
24
26
|
*/
|
|
25
|
-
root(appViewId: string, context: IApiContext, params?: IApiParams, modalOptions?:
|
|
27
|
+
root(appViewId: string, context: IApiContext, params?: IApiParams, modalOptions?: {
|
|
28
|
+
replace?: boolean;
|
|
29
|
+
}): Promise<IApiModalData>;
|
|
26
30
|
/**
|
|
27
31
|
* @description 打开顶级视图(模态方式打开)
|
|
28
|
-
* @param {string} appViewId
|
|
29
|
-
* @param {IApiContext} context
|
|
30
|
-
* @param {IApiParams} [params]
|
|
32
|
+
* @param {string} appViewId 应用视图id
|
|
33
|
+
* @param {IApiContext} context 上下文参数
|
|
34
|
+
* @param {IApiParams} [params] 视图参数
|
|
31
35
|
* @returns {*} {Promise<IApiModalData>}
|
|
32
36
|
* @memberof IApiOpenViewUtil
|
|
33
37
|
*/
|
|
34
38
|
rootByModal(appViewId: string, context: IApiContext, params?: IApiParams): Promise<IApiModalData>;
|
|
35
39
|
/**
|
|
36
40
|
* @description 打开模态视图
|
|
37
|
-
* @param {string} appViewId
|
|
38
|
-
* @param {IApiContext} context
|
|
39
|
-
* @param {IApiParams} [params]
|
|
40
|
-
* @param {IApiOverlayContainerOptions} [options]
|
|
41
|
+
* @param {string} appViewId 应用视图id
|
|
42
|
+
* @param {IApiContext} context 上下文参数
|
|
43
|
+
* @param {IApiParams} [params] 视图参数
|
|
44
|
+
* @param {IApiOverlayContainerOptions} [options] 模态配置
|
|
41
45
|
* @returns {*} {Promise<IApiModalData>}
|
|
42
46
|
* @memberof IApiOpenViewUtil
|
|
43
47
|
*/
|
|
44
48
|
modal(appViewId: string, context: IApiContext, params?: IApiParams, options?: IApiOverlayContainerOptions): Promise<IApiModalData>;
|
|
45
49
|
/**
|
|
46
50
|
* @description 气泡模式打开
|
|
47
|
-
* @param {string} appViewId
|
|
48
|
-
* @param {MouseEvent} event
|
|
49
|
-
* @param {IApiContext} context
|
|
50
|
-
* @param {IApiParams} [params]
|
|
51
|
-
* @param {(IApiPopoverOptions & IApiOverlayContainerOptions)} [options]
|
|
51
|
+
* @param {string} appViewId 应用视图id
|
|
52
|
+
* @param {MouseEvent} event 鼠标事件
|
|
53
|
+
* @param {IApiContext} context 上下文参数
|
|
54
|
+
* @param {IApiParams} [params] 视图参数
|
|
55
|
+
* @param {(IApiPopoverOptions & IApiOverlayContainerOptions)} [options] 气泡飘窗配置
|
|
52
56
|
* @returns {*} {Promise<IApiModalData>}
|
|
53
57
|
* @memberof IApiOpenViewUtil
|
|
54
58
|
*/
|
|
55
59
|
popover(appViewId: string, event: MouseEvent, context: IApiContext, params?: IApiParams, options?: IApiPopoverOptions & IApiOverlayContainerOptions): Promise<IApiModalData>;
|
|
56
60
|
/**
|
|
57
61
|
* @description 抽屉模式打开
|
|
58
|
-
* @param {string} appViewId
|
|
59
|
-
* @param {IApiContext} context
|
|
60
|
-
* @param {IApiParams} [params]
|
|
61
|
-
* @param {IApiOverlayContainerOptions} [options]
|
|
62
|
+
* @param {string} appViewId 应用视图id
|
|
63
|
+
* @param {IApiContext} context 上下文参数
|
|
64
|
+
* @param {IApiParams} [params] 视图参数
|
|
65
|
+
* @param {IApiOverlayContainerOptions} [options] 抽屉配置
|
|
62
66
|
* @returns {*} {Promise<IApiModalData>}
|
|
63
67
|
* @memberof IApiOpenViewUtil
|
|
64
68
|
*/
|
|
65
69
|
drawer(appViewId: string, context: IApiContext, params?: IApiParams, options?: IApiOverlayContainerOptions): Promise<IApiModalData>;
|
|
66
70
|
/**
|
|
67
71
|
* @description 自定义打开方式
|
|
68
|
-
* @param {string} appViewId
|
|
69
|
-
* @param {IApiContext} context
|
|
70
|
-
* @param {IApiParams} [params]
|
|
72
|
+
* @param {string} appViewId 应用视图id
|
|
73
|
+
* @param {IApiContext} context 上下文参数
|
|
74
|
+
* @param {IApiParams} [params] 视图参数
|
|
71
75
|
* @returns {*} {Promise<IApiModalData>}
|
|
72
76
|
* @memberof IApiOpenViewUtil
|
|
73
77
|
*/
|
|
74
78
|
custom(appViewId: string, context: IApiContext, params?: IApiParams): Promise<IApiModalData>;
|
|
75
79
|
/**
|
|
76
80
|
* @description 独立程序打开
|
|
77
|
-
* @param {string} appViewId
|
|
78
|
-
* @param {IApiContext} context
|
|
79
|
-
* @param {IApiParams} [params]
|
|
81
|
+
* @param {string} appViewId 应用视图id
|
|
82
|
+
* @param {IApiContext} context 上下文参数
|
|
83
|
+
* @param {IApiParams} [params] 视图参数
|
|
80
84
|
* @returns {*} {Promise<void>}
|
|
81
85
|
* @memberof IApiOpenViewUtil
|
|
82
86
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-open-view-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-open-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"i-api-open-view-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-open-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAEnB;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE3C;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,UAAU,EACnB,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,GACA,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;;OAOG;IACH,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;;;OAQG;IACH,KAAK,CACH,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;;;;OASG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,kBAAkB,GAAG,2BAA2B,GACzD,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;;;OAQG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;;OAOG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;;;;OAOG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IApiData, IApiParams } from '@ibiz-template/core';
|
|
2
|
+
import { IApiModalOptions } from '../common';
|
|
2
3
|
/**
|
|
3
4
|
* @description 二维码工具
|
|
4
5
|
* @export
|
|
@@ -7,18 +8,18 @@ import { IApiData, IApiParams } from '@ibiz-template/core';
|
|
|
7
8
|
export interface IApiQrcodeUtil {
|
|
8
9
|
/**
|
|
9
10
|
* @description 扫描二维码
|
|
10
|
-
* @param {
|
|
11
|
+
* @param {IApiModalOptions} [options] 模态配置
|
|
11
12
|
* @returns {*} {Promise<IApiData>}
|
|
12
13
|
* @memberof IApiQrcodeUtil
|
|
13
14
|
*/
|
|
14
|
-
scanQrcode(options?:
|
|
15
|
+
scanQrcode(options?: IApiModalOptions): Promise<IApiData>;
|
|
15
16
|
/**
|
|
16
17
|
* @description 创建二维码
|
|
17
18
|
* @param {string} value 创建二维码需要的文本值
|
|
18
|
-
* @param {
|
|
19
|
+
* @param {IApiParams} [options] 创建二维码参数配置
|
|
19
20
|
* @returns {*} {IApiParams}
|
|
20
21
|
* @memberof IApiQrcodeUtil
|
|
21
22
|
*/
|
|
22
|
-
createQrcode(value: string, options?: IApiParams
|
|
23
|
+
createQrcode(value: string, options?: IApiParams): IApiParams;
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=i-api-qrcode-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-qrcode-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-qrcode-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"i-api-qrcode-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-qrcode-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE1D;;;;;;OAMG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CAC/D"}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
export interface IApiRawValueUtil {
|
|
7
7
|
/**
|
|
8
8
|
* @description 字符串是否完全由整数/浮点数组成
|
|
9
|
-
* @param {string} str
|
|
9
|
+
* @param {string} str 字符串
|
|
10
10
|
* @returns {*} {boolean}
|
|
11
11
|
* @memberof IApiRawValueUtil
|
|
12
12
|
*/
|
|
13
13
|
isNumber(str: string): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @description 转换直接值
|
|
16
|
-
* @param {(string | undefined)} val
|
|
16
|
+
* @param {(string | undefined)} val 直接值
|
|
17
17
|
* @returns {*} {(number | boolean | string | undefined)}
|
|
18
18
|
* @memberof IApiRawValueUtil
|
|
19
19
|
*/
|
|
@@ -75,44 +75,60 @@ export interface IApiShortCutUtil {
|
|
|
75
75
|
mode: 'horizontal' | 'vertical';
|
|
76
76
|
/**
|
|
77
77
|
* @description 设置快捷方式模式
|
|
78
|
-
* @param {('horizontal' | 'vertical')} mode
|
|
78
|
+
* @param {('horizontal' | 'vertical')} mode 快捷方式模式
|
|
79
79
|
* @memberof IApiShortCutUtil
|
|
80
80
|
*/
|
|
81
81
|
setShortCutMode(mode: 'horizontal' | 'vertical'): void;
|
|
82
82
|
/**
|
|
83
83
|
* @description 订阅数据改变事件
|
|
84
|
-
* @param {(data: IApiShortCutData[]) => void} callback
|
|
84
|
+
* @param {(data: IApiShortCutData[]) => void} callback 回调函数
|
|
85
85
|
* @memberof IApiShortCutUtil
|
|
86
86
|
*/
|
|
87
87
|
onChange(callback: (data: IApiShortCutData[]) => void): void;
|
|
88
88
|
/**
|
|
89
89
|
* @description 取消订阅数据改变事件
|
|
90
|
-
* @param {(data: IApiShortCutData[]) => void} callback
|
|
90
|
+
* @param {(data: IApiShortCutData[]) => void} callback 回调函数
|
|
91
91
|
* @memberof IApiShortCutUtil
|
|
92
92
|
*/
|
|
93
93
|
offChange(callback: (data: IApiShortCutData[]) => void): void;
|
|
94
|
+
/**
|
|
95
|
+
* @description 计算快捷方式key
|
|
96
|
+
* @param {{
|
|
97
|
+
* context: IApiContext; // 上下文参数
|
|
98
|
+
* appViewId: string; // 应用视图id
|
|
99
|
+
* }} {
|
|
100
|
+
* context,
|
|
101
|
+
* appViewId,
|
|
102
|
+
* }
|
|
103
|
+
* @returns {*} {Promise<string>}
|
|
104
|
+
* @memberof IApiShortCutUtil
|
|
105
|
+
*/
|
|
106
|
+
calcShortCutKey({ context, appViewId, }: {
|
|
107
|
+
context: IApiContext;
|
|
108
|
+
appViewId: string;
|
|
109
|
+
}): Promise<string>;
|
|
94
110
|
/**
|
|
95
111
|
* @description 添加快捷方式
|
|
96
|
-
* @param {IApiShortCutData} shortCut
|
|
112
|
+
* @param {IApiShortCutData} shortCut 快捷方式数据
|
|
97
113
|
* @memberof IApiShortCutUtil
|
|
98
114
|
*/
|
|
99
115
|
addShortCut(shortCut: IApiShortCutData): void;
|
|
100
116
|
/**
|
|
101
117
|
* @description 删除快捷方式
|
|
102
|
-
* @param {string} key
|
|
118
|
+
* @param {string} key 快捷方式数据标识
|
|
103
119
|
* @memberof IApiShortCutUtil
|
|
104
120
|
*/
|
|
105
121
|
removeShortCut(key: string): void;
|
|
106
122
|
/**
|
|
107
123
|
* @description 改变顺序
|
|
108
|
-
* @param {number} newIndex
|
|
109
|
-
* @param {number} oldIndex
|
|
124
|
+
* @param {number} newIndex 新索引
|
|
125
|
+
* @param {number} oldIndex 旧索引
|
|
110
126
|
* @memberof IApiShortCutUtil
|
|
111
127
|
*/
|
|
112
128
|
changeIndex(newIndex: number, oldIndex: number): void;
|
|
113
129
|
/**
|
|
114
130
|
* @description 是否存在最小化
|
|
115
|
-
* @param {string} key
|
|
131
|
+
* @param {string} key 快捷方式数据标识
|
|
116
132
|
* @returns {*} {boolean}
|
|
117
133
|
* @memberof IApiShortCutUtil
|
|
118
134
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-short-cut-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-short-cut-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAEzB;;;;OAIG;IACH,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;IAEhC;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,IAAI,CAAC;IAEvD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,IAAI,GAAG,IAAI,CAAC;IAE7D;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,IAAI,GAAG,IAAI,CAAC;IAE9D;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE9C;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;;;OAKG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;;;;OAKG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B"}
|
|
1
|
+
{"version":3,"file":"i-api-short-cut-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-short-cut-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAEzB;;;;OAIG;IACH,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;IAEhC;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,IAAI,CAAC;IAEvD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,IAAI,GAAG,IAAI,CAAC;IAE7D;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,IAAI,GAAG,IAAI,CAAC;IAE9D;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EACd,OAAO,EACP,SAAS,GACV,EAAE;QACD,OAAO,EAAE,WAAW,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE9C;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;;;OAKG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;;;;OAKG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B"}
|
|
@@ -40,5 +40,12 @@ export interface IApiTextUtil {
|
|
|
40
40
|
* @memberof IApiTextUtil
|
|
41
41
|
*/
|
|
42
42
|
stringToHexColor(text: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* @description 获取文本缩写
|
|
45
|
+
* @param {string} text 文本
|
|
46
|
+
* @returns {*} {(string | void)}
|
|
47
|
+
* @memberof IApiTextUtil
|
|
48
|
+
*/
|
|
49
|
+
abbreviation(text: string): string | void;
|
|
43
50
|
}
|
|
44
51
|
//# sourceMappingURL=i-api-text-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-text-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-text-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAE9C;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAE7B;;;;;OAKG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzC;;;;;OAKG;IACH,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3C;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"i-api-text-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-text-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAE9C;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAE7B;;;;;OAKG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzC;;;;;OAKG;IACH,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3C;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvC;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC3C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IApiUIActionResult, IApiUILogicParams } from '../common';
|
|
2
|
+
/**
|
|
3
|
+
* @description 界面行为工具类
|
|
4
|
+
* @export
|
|
5
|
+
* @interface IApiUIActionUtil
|
|
6
|
+
*/
|
|
7
|
+
export interface IApiUIActionUtil {
|
|
8
|
+
/**
|
|
9
|
+
* @description 执行界面行为
|
|
10
|
+
* @param {string} actionId 界面行为id
|
|
11
|
+
* @param {IApiUILogicParams} params 界面行为参数
|
|
12
|
+
* @param {string} appId 应用标识
|
|
13
|
+
* @returns {*} {Promise<IApiUIActionResult>}
|
|
14
|
+
* @memberof IApiUIActionUtil
|
|
15
|
+
*/
|
|
16
|
+
exec(actionId: string, params: IApiUILogicParams, appId: string): Promise<IApiUIActionResult>;
|
|
17
|
+
/**
|
|
18
|
+
* @description 执行界面逻辑
|
|
19
|
+
* @param {string} appDEUILogicId 界面逻辑id
|
|
20
|
+
* @param {string} appDataEntityId 实体标识
|
|
21
|
+
* @param {IApiUILogicParams} args 界面逻辑参数
|
|
22
|
+
* @returns {*} {Promise<unknown>}
|
|
23
|
+
* @memberof IApiUIActionUtil
|
|
24
|
+
*/
|
|
25
|
+
execUILogic(appDEUILogicId: string, appDataEntityId: string, args: IApiUILogicParams): Promise<unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* @description 执行界面行为并处理返回值
|
|
28
|
+
* @param {string} actionId 界面行为id
|
|
29
|
+
* @param {IApiUILogicParams} params 界面行为参数
|
|
30
|
+
* @param {string} appId 应用标识
|
|
31
|
+
* @returns {*} {Promise<void>}
|
|
32
|
+
* @memberof IApiUIActionUtil
|
|
33
|
+
*/
|
|
34
|
+
execAndResolved(actionId: string, params: IApiUILogicParams, appId: string): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=i-api-ui-action-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-api-ui-action-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-ui-action-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;OAOG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE/B;;;;;;;OAOG;IACH,WAAW,CACT,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;;;OAOG;IACH,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IApiParams } from '@ibiz-template/core';
|
|
2
1
|
/**
|
|
3
2
|
* @description 语音工具类
|
|
4
3
|
* @export
|
|
@@ -7,11 +6,11 @@ import { IApiParams } from '@ibiz-template/core';
|
|
|
7
6
|
export interface IApiVoiceUtil {
|
|
8
7
|
/**
|
|
9
8
|
* @description 文字转语音
|
|
10
|
-
* @param {string} text
|
|
11
|
-
* @param {
|
|
9
|
+
* @param {string} text 文字
|
|
10
|
+
* @param {SpeechSynthesisUtterance} [options] 语音配置
|
|
12
11
|
* @returns {*} {Promise<boolean>}
|
|
13
12
|
* @memberof IApiVoiceUtil
|
|
14
13
|
*/
|
|
15
|
-
textToSpeech(text: string, options?:
|
|
14
|
+
textToSpeech(text: string, options?: SpeechSynthesisUtterance): Promise<boolean>;
|
|
16
15
|
}
|
|
17
16
|
//# sourceMappingURL=i-api-voice-util.d.ts.map
|