@ibiz-template/runtime 0.1.14 → 0.1.16
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 +675 -159
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +1 -1
- package/out/controller/common/base.controller.d.ts.map +1 -1
- package/out/controller/common/base.controller.js +2 -0
- package/out/controller/control/caption-bar/caption-bar.controller.js +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.js +2 -6
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.js +4 -2
- package/out/controller/control/grid/grid/grid.controller.d.ts +7 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +24 -0
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts +1 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +30 -23
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +1 -0
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +0 -1
- package/out/controller/utils/event/controller-event.d.ts +7 -0
- package/out/controller/utils/event/controller-event.d.ts.map +1 -1
- package/out/controller/utils/event/controller-event.js +17 -0
- package/out/controller/utils/index.d.ts +1 -0
- package/out/controller/utils/index.d.ts.map +1 -1
- package/out/controller/utils/index.js +1 -0
- package/out/controller/utils/value-ex/value-ex.d.ts +47 -0
- package/out/controller/utils/value-ex/value-ex.d.ts.map +1 -0
- package/out/controller/utils/value-ex/value-ex.js +48 -0
- package/out/engine/md-view.engine.d.ts +10 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +28 -8
- package/out/interface/common/i-modal/i-modal.d.ts +8 -0
- package/out/interface/common/i-modal/i-modal.d.ts.map +1 -1
- package/out/interface/controller/state/common/i-controller.state.d.ts +8 -0
- package/out/interface/controller/state/common/i-controller.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-grid.state.d.ts +14 -0
- package/out/interface/controller/state/control/i-grid.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-search-bar.state.d.ts +8 -0
- package/out/interface/controller/state/control/i-search-bar.state.d.ts.map +1 -1
- package/out/interface/service/code-list-item/code-list-item.d.ts +5 -0
- package/out/interface/service/code-list-item/code-list-item.d.ts.map +1 -1
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +3 -1
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +1 -0
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +3 -2
- package/out/ui-action/provider/backend-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/backend-ui-action-provider.js +4 -2
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +1 -0
- package/out/utils/handlebars/handlebars.d.ts +11 -2
- package/out/utils/handlebars/handlebars.d.ts.map +1 -1
- package/out/utils/handlebars/handlebars.js +24 -2
- package/out/utils/handlebars/helpers/and/and.d.ts +16 -0
- package/out/utils/handlebars/helpers/and/and.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/and/and.js +24 -0
- package/out/utils/handlebars/helpers/camel-case/camel-case.d.ts +16 -0
- package/out/utils/handlebars/helpers/camel-case/camel-case.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/camel-case/camel-case.js +23 -0
- package/out/utils/handlebars/helpers/concat/concat.d.ts +16 -0
- package/out/utils/handlebars/helpers/concat/concat.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/concat/concat.js +20 -0
- package/out/utils/handlebars/helpers/eq/eq.d.ts +16 -0
- package/out/utils/handlebars/helpers/eq/eq.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/eq/eq.js +22 -0
- package/out/utils/handlebars/helpers/eq-property-value/eq-property-value.d.ts +15 -0
- package/out/utils/handlebars/helpers/eq-property-value/eq-property-value.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/eq-property-value/eq-property-value.js +32 -0
- package/out/utils/handlebars/helpers/gt/gt.d.ts +16 -0
- package/out/utils/handlebars/helpers/gt/gt.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/gt/gt.js +22 -0
- package/out/utils/handlebars/helpers/gte/gte.d.ts +16 -0
- package/out/utils/handlebars/helpers/gte/gte.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/gte/gte.js +22 -0
- package/out/utils/handlebars/helpers/helper-base.d.ts +29 -0
- package/out/utils/handlebars/helpers/helper-base.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/helper-base.js +20 -0
- package/out/utils/handlebars/helpers/index.d.ts +9 -0
- package/out/utils/handlebars/helpers/index.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/index.js +45 -0
- package/out/utils/handlebars/helpers/json/json.d.ts +16 -0
- package/out/utils/handlebars/helpers/json/json.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/json/json.js +19 -0
- package/out/utils/handlebars/helpers/lower-case/lower-case.d.ts +16 -0
- package/out/utils/handlebars/helpers/lower-case/lower-case.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/lower-case/lower-case.js +22 -0
- package/out/utils/handlebars/helpers/lt/lt.d.ts +16 -0
- package/out/utils/handlebars/helpers/lt/lt.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/lt/lt.js +22 -0
- package/out/utils/handlebars/helpers/lte/lte.d.ts +16 -0
- package/out/utils/handlebars/helpers/lte/lte.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/lte/lte.js +22 -0
- package/out/utils/handlebars/helpers/neq/neq.d.ts +16 -0
- package/out/utils/handlebars/helpers/neq/neq.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/neq/neq.js +22 -0
- package/out/utils/handlebars/helpers/not/not.d.ts +16 -0
- package/out/utils/handlebars/helpers/not/not.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/not/not.js +21 -0
- package/out/utils/handlebars/helpers/or/or.d.ts +16 -0
- package/out/utils/handlebars/helpers/or/or.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/or/or.js +27 -0
- package/out/utils/handlebars/helpers/pascal-case/pascal-case.d.ts +16 -0
- package/out/utils/handlebars/helpers/pascal-case/pascal-case.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/pascal-case/pascal-case.js +23 -0
- package/out/utils/handlebars/helpers/snake-case/snake-case.d.ts +16 -0
- package/out/utils/handlebars/helpers/snake-case/snake-case.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/snake-case/snake-case.js +23 -0
- package/out/utils/handlebars/helpers/spinal-case/spinal-case.d.ts +16 -0
- package/out/utils/handlebars/helpers/spinal-case/spinal-case.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/spinal-case/spinal-case.js +23 -0
- package/out/utils/handlebars/helpers/upper-case/upper-case.d.ts +16 -0
- package/out/utils/handlebars/helpers/upper-case/upper-case.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/upper-case/upper-case.js +22 -0
- package/out/utils/handlebars/utils/helper/helper.d.ts +42 -0
- package/out/utils/handlebars/utils/helper/helper.d.ts.map +1 -0
- package/out/utils/handlebars/utils/helper/helper.js +69 -0
- package/out/utils/handlebars/utils/index.d.ts +2 -0
- package/out/utils/handlebars/utils/index.d.ts.map +1 -0
- package/out/utils/handlebars/utils/index.js +1 -0
- package/out/utils/modal/modal.d.ts +1 -0
- package/out/utils/modal/modal.d.ts.map +1 -1
- package/out/utils/modal/modal.js +5 -2
- package/out/utils/text-util/text-util.d.ts +12 -3
- package/out/utils/text-util/text-util.d.ts.map +1 -1
- package/out/utils/text-util/text-util.js +23 -4
- package/package.json +2 -2
- package/src/command/app/open-app-view/open-app-view.ts +1 -1
- package/src/controller/common/base.controller.ts +2 -0
- package/src/controller/control/caption-bar/caption-bar.controller.ts +1 -1
- package/src/controller/control/exp-bar/exp-bar.controller.ts +2 -6
- package/src/controller/control/form/form-detail/form-druipart/form-druipart.controller.ts +4 -2
- package/src/controller/control/grid/grid/grid.controller.ts +25 -0
- package/src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts +33 -26
- package/src/controller/control/search-bar/search-bar.controller.ts +1 -0
- package/src/controller/control/tree/tree.controller.ts +0 -1
- package/src/controller/utils/event/controller-event.ts +18 -0
- package/src/controller/utils/index.ts +1 -0
- package/src/controller/utils/value-ex/value-ex.ts +83 -0
- package/src/engine/md-view.engine.ts +31 -8
- package/src/interface/common/i-modal/i-modal.ts +9 -0
- package/src/interface/controller/state/common/i-controller.state.ts +9 -0
- package/src/interface/controller/state/control/i-grid.state.ts +16 -0
- package/src/interface/controller/state/control/i-search-bar.state.ts +9 -0
- package/src/interface/service/code-list-item/code-list-item.ts +6 -0
- package/src/service/dto/method.dto.ts +3 -1
- package/src/service/service/code-list/code-list.service.ts +1 -0
- package/src/service/service/entity/method/method.ts +9 -2
- package/src/ui-action/provider/backend-ui-action-provider.ts +4 -2
- package/src/ui-action/uiaction-util.ts +1 -0
- package/src/utils/handlebars/handlebars.ts +25 -3
- package/src/utils/handlebars/helpers/and/and.ts +26 -0
- package/src/utils/handlebars/helpers/camel-case/camel-case.ts +25 -0
- package/src/utils/handlebars/helpers/concat/concat.ts +22 -0
- package/src/utils/handlebars/helpers/eq/eq.ts +28 -0
- package/src/utils/handlebars/helpers/eq-property-value/eq-property-value.ts +41 -0
- package/src/utils/handlebars/helpers/gt/gt.ts +28 -0
- package/src/utils/handlebars/helpers/gte/gte.ts +28 -0
- package/src/utils/handlebars/helpers/helper-base.ts +31 -0
- package/src/utils/handlebars/helpers/index.ts +46 -0
- package/src/utils/handlebars/helpers/json/json.ts +25 -0
- package/src/utils/handlebars/helpers/lower-case/lower-case.ts +24 -0
- package/src/utils/handlebars/helpers/lt/lt.ts +28 -0
- package/src/utils/handlebars/helpers/lte/lte.ts +28 -0
- package/src/utils/handlebars/helpers/neq/neq.ts +28 -0
- package/src/utils/handlebars/helpers/not/not.ts +26 -0
- package/src/utils/handlebars/helpers/or/or.ts +28 -0
- package/src/utils/handlebars/helpers/pascal-case/pascal-case.ts +25 -0
- package/src/utils/handlebars/helpers/snake-case/snake-case.ts +25 -0
- package/src/utils/handlebars/helpers/spinal-case/spinal-case.ts +25 -0
- package/src/utils/handlebars/helpers/upper-case/upper-case.ts +24 -0
- package/src/utils/handlebars/utils/helper/helper.ts +75 -0
- package/src/utils/handlebars/utils/index.ts +1 -0
- package/src/utils/modal/modal.ts +6 -2
- package/src/utils/text-util/text-util.ts +22 -4
|
@@ -21,5 +21,13 @@ export interface IControllerState {
|
|
|
21
21
|
* @type {boolean}
|
|
22
22
|
*/
|
|
23
23
|
isMounted: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 控制器是否走完destroy生命周期
|
|
26
|
+
*
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2022-08-18 22:08:23
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
*/
|
|
31
|
+
isDestroyed: boolean;
|
|
24
32
|
}
|
|
25
33
|
//# sourceMappingURL=i-controller.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-controller.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/common/i-controller.state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"i-controller.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/common/i-controller.state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -137,5 +137,19 @@ export interface IColumnState {
|
|
|
137
137
|
* @type {boolean}
|
|
138
138
|
*/
|
|
139
139
|
hidden: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* 是否是操作列
|
|
142
|
+
* @author lxm
|
|
143
|
+
* @date 2023-08-31 04:54:58
|
|
144
|
+
* @type {boolean}
|
|
145
|
+
*/
|
|
146
|
+
uaColumn: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* 是否是固定列,固定在左侧还是右侧
|
|
149
|
+
* @author lxm
|
|
150
|
+
* @date 2023-08-31 04:55:24
|
|
151
|
+
* @type {('left' | 'right')}
|
|
152
|
+
*/
|
|
153
|
+
fixed?: 'left' | 'right';
|
|
140
154
|
}
|
|
141
155
|
//# sourceMappingURL=i-grid.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-grid.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-grid.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;IAEtB;;;;;;OAMG;IACH,YAAY,EAAE,YAAY,EAAE,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,EAAE,KAAK,CAAC;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;IAExB;;;;;OAKG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;;;;OAMG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAEvC;;;;;;OAMG;IACH,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;IAEpD;;;;;;OAMG;IACH,aAAa,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG;YACX,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;SACnB,CAAC;KACH,CAAC;IAEF;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"i-grid.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-grid.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;IAEtB;;;;;;OAMG;IACH,YAAY,EAAE,YAAY,EAAE,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,EAAE,KAAK,CAAC;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;IAExB;;;;;OAKG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;;;;OAMG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAEvC;;;;;;OAMG;IACH,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;IAEpD;;;;;;OAMG;IACH,aAAa,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG;YACX,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;SACnB,CAAC;KACH,CAAC;IAEF;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ISearchBarGroup } from '@ibiz/model-core';
|
|
1
2
|
import { IControlState } from './i-control.state';
|
|
2
3
|
export interface ISearchBarState extends IControlState {
|
|
3
4
|
/**
|
|
@@ -14,5 +15,12 @@ export interface ISearchBarState extends IControlState {
|
|
|
14
15
|
* @type {boolean}
|
|
15
16
|
*/
|
|
16
17
|
visible: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 选中的分组项
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2023-08-25 05:32:59
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
*/
|
|
24
|
+
selectedGroupItem: ISearchBarGroup | null;
|
|
17
25
|
}
|
|
18
26
|
//# sourceMappingURL=i-search-bar.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-search-bar.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-search-bar.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,OAAO,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"i-search-bar.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-search-bar.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,iBAAiB,EAAE,eAAe,GAAG,IAAI,CAAC;CAC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-list-item.d.ts","sourceRoot":"","sources":["../../../../src/interface/service/code-list-item/code-list-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"code-list-item.d.ts","sourceRoot":"","sources":["../../../../src/interface/service/code-list-item/code-list-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.dto.d.ts","sourceRoot":"","sources":["../../../src/service/dto/method.dto.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAGnE;;;;;;;GAOG;AACH,qBAAa,SAAS;IAYlB,SAAS,CAAC,MAAM,EAAE,cAAc;IAChC,SAAS,CAAC,GAAG,CAAC;IAZhB,SAAS,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC;IAE5B,SAAS,CAAC,MAAM,EAAG,oBAAoB,EAAE,CAAC;IAE1C,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAa;IAErD,IAAI,WAAW,IAAI,OAAO,CAEzB;gBAGW,MAAM,EAAE,cAAc,EACtB,GAAG,CAAC,6BAAiB;IAUjC;;;;;;;;OAQG;IACG,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"method.dto.d.ts","sourceRoot":"","sources":["../../../src/service/dto/method.dto.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAGnE;;;;;;;GAOG;AACH,qBAAa,SAAS;IAYlB,SAAS,CAAC,MAAM,EAAE,cAAc;IAChC,SAAS,CAAC,GAAG,CAAC;IAZhB,SAAS,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC;IAE5B,SAAS,CAAC,MAAM,EAAG,oBAAoB,EAAE,CAAC;IAE1C,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAa;IAErD,IAAI,WAAW,IAAI,OAAO,CAEzB;gBAGW,MAAM,EAAE,cAAc,EACtB,GAAG,CAAC,6BAAiB;IAUjC;;;;;;;;OAQG;IACG,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IA0CxD;;;;;;;;OAQG;IACG,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IA+BrE;;;;;;;;OAQG;cACa,WAAW,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,CAAC;CAgB7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-list.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/code-list/code-list.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;;;;GAOG;AACH,qBAAa,eAAe;IAoBd,SAAS,CAAC,QAAQ,EAAE,YAAY;IAnB5C;;;;;OAKG;IACH,SAAS,CAAC,YAAY,4BAAmC;IAEzD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,oBAAoB,CAAC,CAChE;gBAEU,QAAQ,EAAE,YAAY;IAE5C;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE;IAc3D;;;;;;;;OAQG;IACH,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAMzC;;;;;;;;OAQG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAIlD;;;;;;;;;OASG;IACH,SAAS,CAAC,iBAAiB,CACzB,SAAS,EAAE,SAAS,EAAE,EACtB,aAAa,EAAE,OAAO,GACrB,QAAQ,CAAC,YAAY,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"code-list.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/code-list/code-list.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;;;;GAOG;AACH,qBAAa,eAAe;IAoBd,SAAS,CAAC,QAAQ,EAAE,YAAY;IAnB5C;;;;;OAKG;IACH,SAAS,CAAC,YAAY,4BAAmC;IAEzD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,oBAAoB,CAAC,CAChE;gBAEU,QAAQ,EAAE,YAAY;IAE5C;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE;IAc3D;;;;;;;;OAQG;IACH,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAMzC;;;;;;;;OAQG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAIlD;;;;;;;;;OASG;IACH,SAAS,CAAC,iBAAiB,CACzB,SAAS,EAAE,SAAS,EAAE,EACtB,aAAa,EAAE,OAAO,GACrB,QAAQ,CAAC,YAAY,CAAC,EAAE;IAwB3B;;;;;;;;OAQG;cACa,kBAAkB,CAChC,QAAQ,EAAE,YAAY,EACtB,OAAO,GAAE,OAAY,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,YAAY,EAAE,CAAC;IAa1B;;;;;;;;;OASG;IACG,GAAG,CACP,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC;CAcpC"}
|
|
@@ -98,6 +98,7 @@ export class CodeListService {
|
|
|
98
98
|
value: isValueNumber ? Number(codeItem.value) : codeItem.value,
|
|
99
99
|
color: codeItem.color,
|
|
100
100
|
id: codeItem.codeName,
|
|
101
|
+
textCls: codeItem.textCls,
|
|
101
102
|
};
|
|
102
103
|
if ((_a = codeItem.codeItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
103
104
|
_codeItem.children = this.formatStaticItems(codeItem.codeItems, isValueNumber);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../../../src/service/service/entity/method/method.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../../../src/service/service/entity/method/method.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;;;;;GAOG;AACH,8BAAsB,MAAM;IAwDxB,SAAS,CAAC,MAAM,EAAE,cAAc;IAChC,SAAS,CAAC,MAAM,EAAE,YAAY;IAxDhC,SAAS,CAAC,GAAG,EAAG,WAAW,CAAC;IAE5B;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAG,WAAW,CAAC;IAE9B;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAG,YAAY,CAAC;IAEhC;;;;;;;OAOG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC;IAElC;;;;;;;;OAQG;IACH,SAAS,KAAK,WAAW,IAAI,OAAO,CAEnC;IAED;;;;;;;;OAQG;gBAES,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,YAAY;IAOhC;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,CACX,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,EACb,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,YAAY,CAAC;IAExB;;;;;;;;;;;OAWG;cACa,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,OAAO,GAEd,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAuC7B;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAM5C;;;;;;;OAOG;cACa,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC;IAOpD;;;;;;;;OAQG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,GAAG,WAAW,GAAG,WAAW;CAG/D"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import { RuntimeModelError } from '@ibiz-template/core';
|
|
3
|
+
import { notNilEmpty } from 'qx-util';
|
|
3
4
|
import { AppDataEntity } from '../../../app-data-entity/app-data-entity';
|
|
4
5
|
import { calcResPath } from '../../../utils';
|
|
5
6
|
import { MethodInput } from './method-input';
|
|
@@ -60,13 +61,13 @@ export class Method {
|
|
|
60
61
|
let res = null;
|
|
61
62
|
switch (requestMethod) {
|
|
62
63
|
case 'POST':
|
|
63
|
-
res = await this.app.net.post(`${path}/${methodName}`, data
|
|
64
|
+
res = await this.app.net.post(`${path}/${methodName}`, notNilEmpty(data) ? data : params);
|
|
64
65
|
break;
|
|
65
66
|
case 'GET':
|
|
66
67
|
res = await this.app.net.get(`${path}/${methodName}`, data);
|
|
67
68
|
break;
|
|
68
69
|
case 'PUT':
|
|
69
|
-
res = await this.app.net.put(`${path}/${methodName}`, data
|
|
70
|
+
res = await this.app.net.put(`${path}/${methodName}`, notNilEmpty(data) ? data : params);
|
|
70
71
|
break;
|
|
71
72
|
case 'DELETE':
|
|
72
73
|
res = await this.app.net.delete(`${path}/${methodName}`, data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/backend-ui-action-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAc,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IACzD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"backend-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/backend-ui-action-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAc,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IACzD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;CAsE5B"}
|
|
@@ -22,7 +22,7 @@ export class BackendUIActionProvider extends UIActionProviderBase {
|
|
|
22
22
|
}
|
|
23
23
|
// 处理参数
|
|
24
24
|
const { resultContext, resultParams, resultData } = await this.handleParams(action, context, data, params);
|
|
25
|
-
const tempParams = Object.assign(
|
|
25
|
+
const tempParams = Object.assign({}, resultParams);
|
|
26
26
|
// 如果有打开视图,打开视图,并把返回的数据作为子实体数据
|
|
27
27
|
const frontPSAppView = action.frontAppViewId;
|
|
28
28
|
if (frontPSAppView) {
|
|
@@ -42,7 +42,9 @@ export class BackendUIActionProvider extends UIActionProviderBase {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
const app = ibiz.hub.getApp(context === null || context === void 0 ? void 0 : context.srfappid);
|
|
45
|
-
const _data = resultData
|
|
45
|
+
const _data = resultData
|
|
46
|
+
.map(item => { var _a; return ((_a = item.getOrigin) === null || _a === void 0 ? void 0 : _a.call(item)) || item || {}; })
|
|
47
|
+
.map(item => Object.assign(item, tempParams)); // 界面行为视图参数和data合并一起传给后台
|
|
46
48
|
const isMultiData = ['MULTIKEY', 'MULTIDATA'].includes(action.actionTarget);
|
|
47
49
|
const res = await app.deService.exec(entityName, methodName, resultContext, isMultiData ? _data : _data[0], tempParams);
|
|
48
50
|
// 适配界面行为成功提示信息
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uiaction-util.d.ts","sourceRoot":"","sources":["../../src/ui-action/uiaction-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/D;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;;OASG;WACU,IAAI,CACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,eAAe,CAAC;IAS3B;;;;;;;OAOG;WACU,eAAe,CAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"uiaction-util.d.ts","sourceRoot":"","sources":["../../src/ui-action/uiaction-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/D;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;;OASG;WACU,IAAI,CACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,eAAe,CAAC;IAS3B;;;;;;;OAOG;WACU,eAAe,CAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;CAoBjB"}
|
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class HandlebarsUtil {
|
|
10
10
|
protected hsb: any;
|
|
11
|
+
/**
|
|
12
|
+
* 如果已经在请求中,则不再重复请求
|
|
13
|
+
*
|
|
14
|
+
* @author chitanda
|
|
15
|
+
* @date 2023-08-30 11:08:58
|
|
16
|
+
* @protected
|
|
17
|
+
* @type {(Promise<unknown> | null)}
|
|
18
|
+
*/
|
|
19
|
+
protected p: Promise<unknown> | null;
|
|
11
20
|
/**
|
|
12
21
|
* handlebars 是否已经初始化
|
|
13
22
|
*
|
|
@@ -22,9 +31,9 @@ export declare class HandlebarsUtil {
|
|
|
22
31
|
*
|
|
23
32
|
* @author chitanda
|
|
24
33
|
* @date 2023-08-28 17:08:24
|
|
25
|
-
* @return {*} {Promise<
|
|
34
|
+
* @return {*} {Promise<unknown>}
|
|
26
35
|
*/
|
|
27
|
-
init(): Promise<
|
|
36
|
+
init(): Promise<unknown>;
|
|
28
37
|
/**
|
|
29
38
|
* 异步绘制模板,返回渲染后的字符串
|
|
30
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlebars.d.ts","sourceRoot":"","sources":["../../../src/utils/handlebars/handlebars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handlebars.d.ts","sourceRoot":"","sources":["../../../src/utils/handlebars/handlebars.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,qBAAa,cAAc;IAEzB,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;IAEnB;;;;;;;OAOG;IACH,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAQ;IAE5C;;;;;;;OAOG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IAc9B;;;;;;;;OAQG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ5D;;;;;;;;;OASG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM;CAOlD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { installHelpers } from './helpers';
|
|
1
2
|
/**
|
|
2
3
|
* handlebars 渲染工具类
|
|
3
4
|
*
|
|
@@ -7,6 +8,17 @@
|
|
|
7
8
|
* @class HandlebarsUtil
|
|
8
9
|
*/
|
|
9
10
|
export class HandlebarsUtil {
|
|
11
|
+
constructor() {
|
|
12
|
+
/**
|
|
13
|
+
* 如果已经在请求中,则不再重复请求
|
|
14
|
+
*
|
|
15
|
+
* @author chitanda
|
|
16
|
+
* @date 2023-08-30 11:08:58
|
|
17
|
+
* @protected
|
|
18
|
+
* @type {(Promise<unknown> | null)}
|
|
19
|
+
*/
|
|
20
|
+
this.p = null;
|
|
21
|
+
}
|
|
10
22
|
/**
|
|
11
23
|
* handlebars 是否已经初始化
|
|
12
24
|
*
|
|
@@ -23,10 +35,20 @@ export class HandlebarsUtil {
|
|
|
23
35
|
*
|
|
24
36
|
* @author chitanda
|
|
25
37
|
* @date 2023-08-28 17:08:24
|
|
26
|
-
* @return {*} {Promise<
|
|
38
|
+
* @return {*} {Promise<unknown>}
|
|
27
39
|
*/
|
|
28
40
|
async init() {
|
|
29
|
-
this.
|
|
41
|
+
if (this.isInit) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (this.p) {
|
|
45
|
+
return this.p;
|
|
46
|
+
}
|
|
47
|
+
this.p = import('handlebars');
|
|
48
|
+
this.hsb = await this.p;
|
|
49
|
+
this.p = null;
|
|
50
|
+
installHelpers(this.hsb);
|
|
51
|
+
return this.hsb;
|
|
30
52
|
}
|
|
31
53
|
/**
|
|
32
54
|
* 异步绘制模板,返回渲染后的字符串
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 并且条件模式
|
|
4
|
+
*
|
|
5
|
+
* @description 判断: word wor2 word3 必须在判断中必须全部为 true, 用法: {{#and word word2 word3}}xxx{{else}}yyy{{/and}}、{{and word word2 word3}} 返回值为 boolean 类型
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2021-12-29 14:12:10
|
|
8
|
+
* @export
|
|
9
|
+
* @class HelperAnd
|
|
10
|
+
* @extends {HelperBase}
|
|
11
|
+
*/
|
|
12
|
+
export declare class HelperAnd extends HelperBase {
|
|
13
|
+
constructor(hbs: IData);
|
|
14
|
+
onExecute(...args: unknown[] | Handlebars.HelperOptions[]): string | boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=and.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"and.d.ts","sourceRoot":"","sources":["../../../../../src/utils/handlebars/helpers/and/and.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;GASG;AACH,qBAAa,SAAU,SAAQ,UAAU;gBAC3B,GAAG,EAAE,KAAK;IAItB,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,aAAa,EAAE,GAAG,MAAM,GAAG,OAAO;CAO7E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HelperUtil } from '../../utils';
|
|
2
|
+
import { HelperBase } from '../helper-base';
|
|
3
|
+
/**
|
|
4
|
+
* 并且条件模式
|
|
5
|
+
*
|
|
6
|
+
* @description 判断: word wor2 word3 必须在判断中必须全部为 true, 用法: {{#and word word2 word3}}xxx{{else}}yyy{{/and}}、{{and word word2 word3}} 返回值为 boolean 类型
|
|
7
|
+
* @author chitanda
|
|
8
|
+
* @date 2021-12-29 14:12:10
|
|
9
|
+
* @export
|
|
10
|
+
* @class HelperAnd
|
|
11
|
+
* @extends {HelperBase}
|
|
12
|
+
*/
|
|
13
|
+
export class HelperAnd extends HelperBase {
|
|
14
|
+
constructor(hbs) {
|
|
15
|
+
super(hbs, 'and');
|
|
16
|
+
}
|
|
17
|
+
onExecute(...args) {
|
|
18
|
+
const options = args[args.length - 1];
|
|
19
|
+
args.pop();
|
|
20
|
+
const arr = args.filter(item => !!item);
|
|
21
|
+
const bol = arr.length === args.length;
|
|
22
|
+
return HelperUtil.handleJudgmentExecute(this, bol, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 转驼峰
|
|
4
|
+
*
|
|
5
|
+
* @description 用法 {{camelCase xxx}},效果: this-is-my-name => thisIsMyName
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2021-12-24 15:12:59
|
|
8
|
+
* @export
|
|
9
|
+
* @class HelperCamelCase
|
|
10
|
+
* @extends {HelperBase}
|
|
11
|
+
*/
|
|
12
|
+
export declare class HelperCamelCase extends HelperBase {
|
|
13
|
+
constructor(hbs: IData);
|
|
14
|
+
onExecute(param: string): string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=camel-case.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camel-case.d.ts","sourceRoot":"","sources":["../../../../../src/utils/handlebars/helpers/camel-case/camel-case.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;GASG;AACH,qBAAa,eAAgB,SAAQ,UAAU;gBACjC,GAAG,EAAE,KAAK;IAItB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAMjC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { camelCase } from 'lodash-es';
|
|
2
|
+
import { HelperBase } from '../helper-base';
|
|
3
|
+
/**
|
|
4
|
+
* 转驼峰
|
|
5
|
+
*
|
|
6
|
+
* @description 用法 {{camelCase xxx}},效果: this-is-my-name => thisIsMyName
|
|
7
|
+
* @author chitanda
|
|
8
|
+
* @date 2021-12-24 15:12:59
|
|
9
|
+
* @export
|
|
10
|
+
* @class HelperCamelCase
|
|
11
|
+
* @extends {HelperBase}
|
|
12
|
+
*/
|
|
13
|
+
export class HelperCamelCase extends HelperBase {
|
|
14
|
+
constructor(hbs) {
|
|
15
|
+
super(hbs, 'camelCase');
|
|
16
|
+
}
|
|
17
|
+
onExecute(param) {
|
|
18
|
+
if (!param) {
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
return camelCase(param);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 字符串拼接
|
|
4
|
+
*
|
|
5
|
+
* @description 用法:{{concat string1 string2 string3}} 返回值为 string 类型
|
|
6
|
+
* @author mosher
|
|
7
|
+
* @date 2022-10-12 10:59:10
|
|
8
|
+
* @export
|
|
9
|
+
* @class HelperConcat
|
|
10
|
+
* @extends {HelperBase}
|
|
11
|
+
*/
|
|
12
|
+
export declare class HelperConcat extends HelperBase {
|
|
13
|
+
constructor(hbs: IData);
|
|
14
|
+
onExecute(...args: string[]): string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=concat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../src/utils/handlebars/helpers/concat/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;GASG;AACH,qBAAa,YAAa,SAAQ,UAAU;gBAC9B,GAAG,EAAE,KAAK;IAItB,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM;CAIrC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 字符串拼接
|
|
4
|
+
*
|
|
5
|
+
* @description 用法:{{concat string1 string2 string3}} 返回值为 string 类型
|
|
6
|
+
* @author mosher
|
|
7
|
+
* @date 2022-10-12 10:59:10
|
|
8
|
+
* @export
|
|
9
|
+
* @class HelperConcat
|
|
10
|
+
* @extends {HelperBase}
|
|
11
|
+
*/
|
|
12
|
+
export class HelperConcat extends HelperBase {
|
|
13
|
+
constructor(hbs) {
|
|
14
|
+
super(hbs, 'concat');
|
|
15
|
+
}
|
|
16
|
+
onExecute(...args) {
|
|
17
|
+
args.pop();
|
|
18
|
+
return args.join('');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 等于
|
|
4
|
+
*
|
|
5
|
+
* @description 判断: word === word2, 用法: {{#eq word word2}}xxx{{else}}yyy{{/eq}}、{{eq word 'xxx'}} 返回值为 boolean 类型
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2021-12-24 14:12:25
|
|
8
|
+
* @export
|
|
9
|
+
* @class HelperEq
|
|
10
|
+
* @extends {HelperBase}
|
|
11
|
+
*/
|
|
12
|
+
export declare class HelperEq extends HelperBase {
|
|
13
|
+
constructor(hbs: IData);
|
|
14
|
+
onExecute(param: unknown, param2: unknown, options: Handlebars.HelperOptions): string | boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=eq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eq.d.ts","sourceRoot":"","sources":["../../../../../src/utils/handlebars/helpers/eq/eq.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;GASG;AACH,qBAAa,QAAS,SAAQ,UAAU;gBAC1B,GAAG,EAAE,KAAK;IAItB,SAAS,CACP,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,aAAa,GAChC,MAAM,GAAG,OAAO;CAIpB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { eq } from 'lodash-es';
|
|
2
|
+
import { HelperUtil } from '../../utils';
|
|
3
|
+
import { HelperBase } from '../helper-base';
|
|
4
|
+
/**
|
|
5
|
+
* 等于
|
|
6
|
+
*
|
|
7
|
+
* @description 判断: word === word2, 用法: {{#eq word word2}}xxx{{else}}yyy{{/eq}}、{{eq word 'xxx'}} 返回值为 boolean 类型
|
|
8
|
+
* @author chitanda
|
|
9
|
+
* @date 2021-12-24 14:12:25
|
|
10
|
+
* @export
|
|
11
|
+
* @class HelperEq
|
|
12
|
+
* @extends {HelperBase}
|
|
13
|
+
*/
|
|
14
|
+
export class HelperEq extends HelperBase {
|
|
15
|
+
constructor(hbs) {
|
|
16
|
+
super(hbs, 'eq');
|
|
17
|
+
}
|
|
18
|
+
onExecute(param, param2, options) {
|
|
19
|
+
const bol = eq(param, param2);
|
|
20
|
+
return HelperUtil.handleJudgmentExecute(this, bol, options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 比较数组或对象是否存在某个属性的值
|
|
4
|
+
*
|
|
5
|
+
* @author zk
|
|
6
|
+
* @date 2023-06-15 09:06:37
|
|
7
|
+
* @export
|
|
8
|
+
* @class HelperHaCtrl
|
|
9
|
+
* @extends {HelperBase}
|
|
10
|
+
*/
|
|
11
|
+
export declare class HelperEqPropertyValue extends HelperBase {
|
|
12
|
+
constructor(hbs: IData);
|
|
13
|
+
onExecute(obj: unknown[] | unknown, key: string, val: unknown, options: Handlebars.HelperOptions): string | boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=eq-property-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eq-property-value.d.ts","sourceRoot":"","sources":["../../../../../src/utils/handlebars/helpers/eq-property-value/eq-property-value.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,UAAU;gBACvC,GAAG,EAAE,KAAK;IAItB,SAAS,CACP,GAAG,EAAE,OAAO,EAAE,GAAG,OAAO,EACxB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,UAAU,CAAC,aAAa,GAChC,MAAM,GAAG,OAAO;CAgBpB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { eq, findIndex, isArray } from 'lodash-es';
|
|
3
|
+
import { HelperUtil } from '../../utils';
|
|
4
|
+
import { HelperBase } from '../helper-base';
|
|
5
|
+
/**
|
|
6
|
+
* 比较数组或对象是否存在某个属性的值
|
|
7
|
+
*
|
|
8
|
+
* @author zk
|
|
9
|
+
* @date 2023-06-15 09:06:37
|
|
10
|
+
* @export
|
|
11
|
+
* @class HelperHaCtrl
|
|
12
|
+
* @extends {HelperBase}
|
|
13
|
+
*/
|
|
14
|
+
export class HelperEqPropertyValue extends HelperBase {
|
|
15
|
+
constructor(hbs) {
|
|
16
|
+
super(hbs, 'eqPropertyValue');
|
|
17
|
+
}
|
|
18
|
+
onExecute(obj, key, val, options) {
|
|
19
|
+
// 数组
|
|
20
|
+
let bol = false;
|
|
21
|
+
if (isArray(obj)) {
|
|
22
|
+
bol = !eq(findIndex(obj, o => eq(o[key], val)), -1);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
bol =
|
|
26
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
27
|
+
obj.hasOwnProperty(key) &&
|
|
28
|
+
(bol = eq(obj[key], val));
|
|
29
|
+
}
|
|
30
|
+
return HelperUtil.handleJudgmentExecute(this, bol, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 大于
|
|
4
|
+
*
|
|
5
|
+
* @description 判断: word > word2, 用法: {{#gt word word2}}xxx{{else}}yyy{{/gt}}、{{gt word word2}} 返回值为 boolean 类型
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2021-12-24 15:12:56
|
|
8
|
+
* @export
|
|
9
|
+
* @class HelperGt
|
|
10
|
+
* @extends {HelperBase}
|
|
11
|
+
*/
|
|
12
|
+
export declare class HelperGt extends HelperBase {
|
|
13
|
+
constructor(hbs: IData);
|
|
14
|
+
onExecute(param: unknown, param2: unknown, options: Handlebars.HelperOptions): string | boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=gt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gt.d.ts","sourceRoot":"","sources":["../../../../../src/utils/handlebars/helpers/gt/gt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;GASG;AACH,qBAAa,QAAS,SAAQ,UAAU;gBAC1B,GAAG,EAAE,KAAK;IAItB,SAAS,CACP,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,aAAa,GAChC,MAAM,GAAG,OAAO;CAIpB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { gt } from 'lodash-es';
|
|
2
|
+
import { HelperUtil } from '../../utils';
|
|
3
|
+
import { HelperBase } from '../helper-base';
|
|
4
|
+
/**
|
|
5
|
+
* 大于
|
|
6
|
+
*
|
|
7
|
+
* @description 判断: word > word2, 用法: {{#gt word word2}}xxx{{else}}yyy{{/gt}}、{{gt word word2}} 返回值为 boolean 类型
|
|
8
|
+
* @author chitanda
|
|
9
|
+
* @date 2021-12-24 15:12:56
|
|
10
|
+
* @export
|
|
11
|
+
* @class HelperGt
|
|
12
|
+
* @extends {HelperBase}
|
|
13
|
+
*/
|
|
14
|
+
export class HelperGt extends HelperBase {
|
|
15
|
+
constructor(hbs) {
|
|
16
|
+
super(hbs, 'gt');
|
|
17
|
+
}
|
|
18
|
+
onExecute(param, param2, options) {
|
|
19
|
+
const bol = gt(param, param2);
|
|
20
|
+
return HelperUtil.handleJudgmentExecute(this, bol, options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HelperBase } from '../helper-base';
|
|
2
|
+
/**
|
|
3
|
+
* 大于等于
|
|
4
|
+
*
|
|
5
|
+
* @description 判断: word >= word2, 用法 {{#gte word word2}}xxx{{else}}yyy{{/gte}}、{{gte word word2}} 返回值为 boolean 类型
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2021-12-24 15:12:35
|
|
8
|
+
* @export
|
|
9
|
+
* @class HelperGte
|
|
10
|
+
* @extends {HelperBase}
|
|
11
|
+
*/
|
|
12
|
+
export declare class HelperGte extends HelperBase {
|
|
13
|
+
constructor(hbs: IData);
|
|
14
|
+
onExecute(param: unknown, param2: unknown, options: Handlebars.HelperOptions): string | boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=gte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gte.d.ts","sourceRoot":"","sources":["../../../../../src/utils/handlebars/helpers/gte/gte.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;GASG;AACH,qBAAa,SAAU,SAAQ,UAAU;gBAC3B,GAAG,EAAE,KAAK;IAItB,SAAS,CACP,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,aAAa,GAChC,MAAM,GAAG,OAAO;CAIpB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { gte } from 'lodash-es';
|
|
2
|
+
import { HelperUtil } from '../../utils';
|
|
3
|
+
import { HelperBase } from '../helper-base';
|
|
4
|
+
/**
|
|
5
|
+
* 大于等于
|
|
6
|
+
*
|
|
7
|
+
* @description 判断: word >= word2, 用法 {{#gte word word2}}xxx{{else}}yyy{{/gte}}、{{gte word word2}} 返回值为 boolean 类型
|
|
8
|
+
* @author chitanda
|
|
9
|
+
* @date 2021-12-24 15:12:35
|
|
10
|
+
* @export
|
|
11
|
+
* @class HelperGte
|
|
12
|
+
* @extends {HelperBase}
|
|
13
|
+
*/
|
|
14
|
+
export class HelperGte extends HelperBase {
|
|
15
|
+
constructor(hbs) {
|
|
16
|
+
super(hbs, 'gte');
|
|
17
|
+
}
|
|
18
|
+
onExecute(param, param2, options) {
|
|
19
|
+
const bol = gte(param, param2);
|
|
20
|
+
return HelperUtil.handleJudgmentExecute(this, bol, options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* helper 基类
|
|
3
|
+
*
|
|
4
|
+
* @author chitanda
|
|
5
|
+
* @date 2021-12-29 14:12:34
|
|
6
|
+
* @export
|
|
7
|
+
* @class HelperBase
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class HelperBase {
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instance of HelperBase.
|
|
12
|
+
*
|
|
13
|
+
* @author chitanda
|
|
14
|
+
* @date 2021-12-29 14:12:47
|
|
15
|
+
* @param {string} tag 助手标识
|
|
16
|
+
*/
|
|
17
|
+
constructor(Handlebars: IData, tag: string);
|
|
18
|
+
/**
|
|
19
|
+
* 助手执行
|
|
20
|
+
*
|
|
21
|
+
* @author chitanda
|
|
22
|
+
* @date 2022-08-05 18:08:03
|
|
23
|
+
* @abstract
|
|
24
|
+
* @param {...unknown[]} args
|
|
25
|
+
* @return {*} {(string | boolean)}
|
|
26
|
+
*/
|
|
27
|
+
abstract onExecute(...args: unknown[]): string | boolean;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=helper-base.d.ts.map
|