@cloudbase/cals 1.1.14 → 1.2.0
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/lib/{parser → cjs/parser}/cals/index.d.ts +1 -1
- package/lib/cjs/parser/cals/index.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/get-component-namespace.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/merge-dataset.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/merge-listeners.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/merge-resources.d.ts.map +1 -0
- package/lib/{parser → cjs/parser}/cals/utils/block/helpers/remap-component-ids.d.ts +2 -2
- package/lib/cjs/parser/cals/utils/block/helpers/remap-component-ids.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/renew-id-in-code.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/renew-id-in-expr.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/renew-id-in-resource.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/helpers/resolve-new-id.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/block/index.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/code/index.d.ts.map +1 -0
- package/lib/{parser → cjs/parser}/cals/utils/common.d.ts +1 -1
- package/lib/cjs/parser/cals/utils/common.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/getUsedReference.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/getUsedResources.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/runtime.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/spinoff/index.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/style.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/template.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/version/common.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/version/config.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/version/index.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/version/parses.d.ts.map +1 -0
- package/lib/cjs/parser/cals/utils/version/utils.d.ts.map +1 -0
- package/lib/cjs/parser/dependiencies/index.d.ts.map +1 -0
- package/lib/cjs/parser/expression/index.d.ts.map +1 -0
- package/lib/cjs/parser/index.d.ts.map +1 -0
- package/lib/cjs/parser/plugins/postcss-rpx2clac.d.ts.map +1 -0
- package/lib/cjs/types/basic/app.d.ts.map +1 -0
- package/lib/cjs/types/basic/common.d.ts.map +1 -0
- package/lib/cjs/types/basic/component.d.ts.map +1 -0
- package/lib/cjs/types/basic/datasource.d.ts.map +1 -0
- package/lib/cjs/types/index.d.ts.map +1 -0
- package/lib/{types → cjs/types}/lcds.d.ts +4 -4
- package/lib/cjs/types/lcds.d.ts.map +1 -0
- package/lib/{types → cjs/types}/platform/app.d.ts +2 -2
- package/lib/cjs/types/platform/app.d.ts.map +1 -0
- package/lib/cjs/types/platform/common.d.ts.map +1 -0
- package/lib/{types → cjs/types}/platform/component.d.ts +1 -1
- package/lib/cjs/types/platform/component.d.ts.map +1 -0
- package/lib/{types → cjs/types}/platform/datasource.d.ts +4 -4
- package/lib/cjs/types/platform/datasource.d.ts.map +1 -0
- package/lib/cjs/types/platform/eventFlow.d.ts.map +1 -0
- package/lib/cjs/types/platform/query.d.ts.map +1 -0
- package/lib/{types → cjs/types}/platform/theme.d.ts +4 -4
- package/lib/cjs/types/platform/theme.d.ts.map +1 -0
- package/lib/cjs/utils/CSSProperty.d.ts.map +1 -0
- package/lib/cjs/utils/color-generator/core.d.ts.map +1 -0
- package/lib/cjs/utils/color-generator/generate.d.ts.map +1 -0
- package/lib/cjs/utils/color-generator/utils.d.ts.map +1 -0
- package/lib/cjs/utils/constant.d.ts.map +1 -0
- package/lib/cjs/utils/dts/auto-generated.d.ts.map +1 -0
- package/lib/{utils → cjs/utils}/dts/build.d.ts.map +1 -1
- package/lib/cjs/utils/dts/index.d.ts.map +1 -0
- package/lib/cjs/utils/index.d.ts.map +1 -0
- package/lib/cjs/utils/version/common.d.ts.map +1 -0
- package/lib/cjs/utils/version/featureChecker.d.ts.map +1 -0
- package/lib/cjs/utils/version/migrations/version4.d.ts.map +1 -0
- package/lib/esm/parser/cals/index.d.ts +625 -0
- package/lib/esm/parser/cals/index.d.ts.map +1 -0
- package/lib/esm/parser/cals/index.js +1548 -0
- package/lib/esm/parser/cals/utils/block/helpers/get-component-namespace.d.ts +2 -0
- package/lib/esm/parser/cals/utils/block/helpers/get-component-namespace.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/get-component-namespace.js +5 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-dataset.d.ts +6 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-dataset.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-dataset.js +13 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-listeners.d.ts +6 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-listeners.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-listeners.js +10 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-resources.d.ts +6 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-resources.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/merge-resources.js +25 -0
- package/lib/esm/parser/cals/utils/block/helpers/remap-component-ids.d.ts +30 -0
- package/lib/esm/parser/cals/utils/block/helpers/remap-component-ids.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/remap-component-ids.js +125 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-code.d.ts +7 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-code.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-code.js +9 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-expr.d.ts +8 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-expr.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-expr.js +56 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-resource.d.ts +15 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-resource.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/renew-id-in-resource.js +13 -0
- package/lib/esm/parser/cals/utils/block/helpers/resolve-new-id.d.ts +7 -0
- package/lib/esm/parser/cals/utils/block/helpers/resolve-new-id.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/helpers/resolve-new-id.js +17 -0
- package/lib/esm/parser/cals/utils/block/index.d.ts +67 -0
- package/lib/esm/parser/cals/utils/block/index.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/block/index.js +451 -0
- package/lib/esm/parser/cals/utils/code/index.d.ts +36 -0
- package/lib/esm/parser/cals/utils/code/index.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/code/index.js +401 -0
- package/lib/esm/parser/cals/utils/common.d.ts +35 -0
- package/lib/esm/parser/cals/utils/common.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/common.js +301 -0
- package/lib/esm/parser/cals/utils/getUsedReference.d.ts +8 -0
- package/lib/esm/parser/cals/utils/getUsedReference.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/getUsedReference.js +54 -0
- package/lib/esm/parser/cals/utils/getUsedResources.d.ts +10 -0
- package/lib/esm/parser/cals/utils/getUsedResources.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/getUsedResources.js +132 -0
- package/lib/esm/parser/cals/utils/runtime.d.ts +14 -0
- package/lib/esm/parser/cals/utils/runtime.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/runtime.js +254 -0
- package/lib/esm/parser/cals/utils/spinoff/index.d.ts +10 -0
- package/lib/esm/parser/cals/utils/spinoff/index.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/spinoff/index.js +95 -0
- package/lib/esm/parser/cals/utils/style.d.ts +43 -0
- package/lib/esm/parser/cals/utils/style.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/style.js +463 -0
- package/lib/esm/parser/cals/utils/template.d.ts +6 -0
- package/lib/esm/parser/cals/utils/template.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/template.js +221 -0
- package/lib/esm/parser/cals/utils/version/common.d.ts +5 -0
- package/lib/esm/parser/cals/utils/version/common.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/version/common.js +375 -0
- package/lib/esm/parser/cals/utils/version/config.d.ts +16 -0
- package/lib/esm/parser/cals/utils/version/config.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/version/config.js +241 -0
- package/lib/esm/parser/cals/utils/version/index.d.ts +3 -0
- package/lib/esm/parser/cals/utils/version/index.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/version/index.js +68 -0
- package/lib/esm/parser/cals/utils/version/parses.d.ts +16 -0
- package/lib/esm/parser/cals/utils/version/parses.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/version/parses.js +560 -0
- package/lib/esm/parser/cals/utils/version/utils.d.ts +14 -0
- package/lib/esm/parser/cals/utils/version/utils.d.ts.map +1 -0
- package/lib/esm/parser/cals/utils/version/utils.js +129 -0
- package/lib/esm/parser/dependiencies/index.d.ts +143 -0
- package/lib/esm/parser/dependiencies/index.d.ts.map +1 -0
- package/lib/esm/parser/dependiencies/index.js +684 -0
- package/lib/esm/parser/expression/index.d.ts +123 -0
- package/lib/esm/parser/expression/index.d.ts.map +1 -0
- package/lib/esm/parser/expression/index.js +296 -0
- package/lib/esm/parser/index.d.ts +13 -0
- package/lib/esm/parser/index.d.ts.map +1 -0
- package/lib/esm/parser/index.js +12 -0
- package/lib/esm/parser/plugins/postcss-rpx2clac.d.ts +18 -0
- package/lib/esm/parser/plugins/postcss-rpx2clac.d.ts.map +1 -0
- package/lib/esm/parser/plugins/postcss-rpx2clac.js +67 -0
- package/lib/esm/types/basic/app.d.ts +76 -0
- package/lib/esm/types/basic/app.d.ts.map +1 -0
- package/lib/esm/types/basic/app.js +1 -0
- package/lib/esm/types/basic/common.d.ts +125 -0
- package/lib/esm/types/basic/common.d.ts.map +1 -0
- package/lib/esm/types/basic/common.js +1 -0
- package/lib/esm/types/basic/component.d.ts +212 -0
- package/lib/esm/types/basic/component.d.ts.map +1 -0
- package/lib/esm/types/basic/component.js +1 -0
- package/lib/esm/types/basic/datasource.d.ts +50 -0
- package/lib/esm/types/basic/datasource.d.ts.map +1 -0
- package/lib/esm/types/basic/datasource.js +1 -0
- package/lib/esm/types/index.d.ts +12 -0
- package/lib/esm/types/index.d.ts.map +1 -0
- package/lib/esm/types/index.js +14 -0
- package/lib/esm/types/lcds.d.ts +610 -0
- package/lib/esm/types/lcds.d.ts.map +1 -0
- package/lib/esm/types/lcds.js +22 -0
- package/lib/esm/types/platform/app.d.ts +276 -0
- package/lib/esm/types/platform/app.d.ts.map +1 -0
- package/lib/esm/types/platform/app.js +8 -0
- package/lib/esm/types/platform/common.d.ts +190 -0
- package/lib/esm/types/platform/common.d.ts.map +1 -0
- package/lib/esm/types/platform/common.js +84 -0
- package/lib/esm/types/platform/component.d.ts +166 -0
- package/lib/esm/types/platform/component.d.ts.map +1 -0
- package/lib/esm/types/platform/component.js +8 -0
- package/lib/esm/types/platform/datasource.d.ts +500 -0
- package/lib/esm/types/platform/datasource.d.ts.map +1 -0
- package/lib/esm/types/platform/datasource.js +6 -0
- package/lib/esm/types/platform/eventFlow.d.ts +20 -0
- package/lib/esm/types/platform/eventFlow.d.ts.map +1 -0
- package/lib/esm/types/platform/eventFlow.js +1 -0
- package/lib/esm/types/platform/query.d.ts +78 -0
- package/lib/esm/types/platform/query.d.ts.map +1 -0
- package/lib/esm/types/platform/query.js +12 -0
- package/lib/esm/types/platform/theme.d.ts +47 -0
- package/lib/esm/types/platform/theme.d.ts.map +1 -0
- package/lib/esm/types/platform/theme.js +1 -0
- package/lib/esm/utils/CSSProperty.d.ts +64 -0
- package/lib/esm/utils/CSSProperty.d.ts.map +1 -0
- package/lib/esm/utils/CSSProperty.js +86 -0
- package/lib/esm/utils/color-generator/core.d.ts +52 -0
- package/lib/esm/utils/color-generator/core.d.ts.map +1 -0
- package/lib/esm/utils/color-generator/core.js +57 -0
- package/lib/esm/utils/color-generator/generate.d.ts +67 -0
- package/lib/esm/utils/color-generator/generate.d.ts.map +1 -0
- package/lib/esm/utils/color-generator/generate.js +92 -0
- package/lib/esm/utils/color-generator/utils.d.ts +15 -0
- package/lib/esm/utils/color-generator/utils.d.ts.map +1 -0
- package/lib/esm/utils/color-generator/utils.js +30 -0
- package/lib/esm/utils/constant.d.ts +65 -0
- package/lib/esm/utils/constant.d.ts.map +1 -0
- package/lib/esm/utils/constant.js +69 -0
- package/lib/esm/utils/dts/auto-generated.d.ts +2 -0
- package/lib/esm/utils/dts/auto-generated.d.ts.map +1 -0
- package/lib/esm/utils/dts/auto-generated.js +1796 -0
- package/lib/esm/utils/dts/build.d.ts +2 -0
- package/lib/esm/utils/dts/build.d.ts.map +1 -0
- package/lib/esm/utils/dts/build.js +147 -0
- package/lib/esm/utils/dts/index.d.ts +141 -0
- package/lib/esm/utils/dts/index.d.ts.map +1 -0
- package/lib/esm/utils/dts/index.js +1071 -0
- package/lib/esm/utils/index.d.ts +9 -0
- package/lib/esm/utils/index.d.ts.map +1 -0
- package/lib/esm/utils/index.js +8 -0
- package/lib/esm/utils/version/common.d.ts +3 -0
- package/lib/esm/utils/version/common.d.ts.map +1 -0
- package/lib/esm/utils/version/common.js +22 -0
- package/lib/esm/utils/version/featureChecker.d.ts +5 -0
- package/lib/esm/utils/version/featureChecker.d.ts.map +1 -0
- package/lib/esm/utils/version/featureChecker.js +32 -0
- package/lib/esm/utils/version/migrations/version4.d.ts +3 -0
- package/lib/esm/utils/version/migrations/version4.d.ts.map +1 -0
- package/lib/esm/utils/version/migrations/version4.js +192 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +7 -5
- package/lib/parser/cals/index.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/get-component-namespace.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/merge-dataset.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/merge-listeners.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/merge-resources.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/remap-component-ids.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/renew-id-in-code.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/renew-id-in-expr.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/renew-id-in-resource.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/helpers/resolve-new-id.d.ts.map +0 -1
- package/lib/parser/cals/utils/block/index.d.ts.map +0 -1
- package/lib/parser/cals/utils/code/index.d.ts.map +0 -1
- package/lib/parser/cals/utils/common.d.ts.map +0 -1
- package/lib/parser/cals/utils/getUsedReference.d.ts.map +0 -1
- package/lib/parser/cals/utils/getUsedResources.d.ts.map +0 -1
- package/lib/parser/cals/utils/runtime.d.ts.map +0 -1
- package/lib/parser/cals/utils/spinoff/index.d.ts.map +0 -1
- package/lib/parser/cals/utils/style.d.ts.map +0 -1
- package/lib/parser/cals/utils/template.d.ts.map +0 -1
- package/lib/parser/cals/utils/version/common.d.ts.map +0 -1
- package/lib/parser/cals/utils/version/config.d.ts.map +0 -1
- package/lib/parser/cals/utils/version/index.d.ts.map +0 -1
- package/lib/parser/cals/utils/version/parses.d.ts.map +0 -1
- package/lib/parser/cals/utils/version/utils.d.ts.map +0 -1
- package/lib/parser/dependiencies/index.d.ts.map +0 -1
- package/lib/parser/expression/index.d.ts.map +0 -1
- package/lib/parser/index.d.ts.map +0 -1
- package/lib/parser/plugins/postcss-rpx2clac.d.ts.map +0 -1
- package/lib/types/basic/app.d.ts.map +0 -1
- package/lib/types/basic/common.d.ts.map +0 -1
- package/lib/types/basic/component.d.ts.map +0 -1
- package/lib/types/basic/datasource.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/lcds.d.ts.map +0 -1
- package/lib/types/platform/app.d.ts.map +0 -1
- package/lib/types/platform/common.d.ts.map +0 -1
- package/lib/types/platform/component.d.ts.map +0 -1
- package/lib/types/platform/datasource.d.ts.map +0 -1
- package/lib/types/platform/eventFlow.d.ts.map +0 -1
- package/lib/types/platform/query.d.ts.map +0 -1
- package/lib/types/platform/theme.d.ts.map +0 -1
- package/lib/utils/CSSProperty.d.ts.map +0 -1
- package/lib/utils/color-generator/core.d.ts.map +0 -1
- package/lib/utils/color-generator/generate.d.ts.map +0 -1
- package/lib/utils/color-generator/utils.d.ts.map +0 -1
- package/lib/utils/constant.d.ts.map +0 -1
- package/lib/utils/dts/auto-generated.d.ts.map +0 -1
- package/lib/utils/dts/index.d.ts.map +0 -1
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/version/common.d.ts.map +0 -1
- package/lib/utils/version/featureChecker.d.ts.map +0 -1
- package/lib/utils/version/migrations/version4.d.ts.map +0 -1
- /package/lib/{parser → cjs/parser}/cals/index.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/get-component-namespace.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/get-component-namespace.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/merge-dataset.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/merge-dataset.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/merge-listeners.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/merge-listeners.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/merge-resources.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/merge-resources.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/remap-component-ids.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/renew-id-in-code.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/renew-id-in-code.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/renew-id-in-expr.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/renew-id-in-expr.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/renew-id-in-resource.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/renew-id-in-resource.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/resolve-new-id.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/helpers/resolve-new-id.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/index.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/block/index.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/code/index.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/code/index.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/common.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/getUsedReference.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/getUsedReference.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/getUsedResources.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/getUsedResources.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/runtime.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/runtime.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/spinoff/index.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/spinoff/index.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/style.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/style.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/template.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/template.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/common.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/common.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/config.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/config.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/index.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/index.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/parses.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/parses.js +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/utils.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/cals/utils/version/utils.js +0 -0
- /package/lib/{parser → cjs/parser}/dependiencies/index.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/dependiencies/index.js +0 -0
- /package/lib/{parser → cjs/parser}/expression/index.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/expression/index.js +0 -0
- /package/lib/{parser → cjs/parser}/index.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/index.js +0 -0
- /package/lib/{parser → cjs/parser}/plugins/postcss-rpx2clac.d.ts +0 -0
- /package/lib/{parser → cjs/parser}/plugins/postcss-rpx2clac.js +0 -0
- /package/lib/{types → cjs/types}/basic/app.d.ts +0 -0
- /package/lib/{types → cjs/types}/basic/app.js +0 -0
- /package/lib/{types → cjs/types}/basic/common.d.ts +0 -0
- /package/lib/{types → cjs/types}/basic/common.js +0 -0
- /package/lib/{types → cjs/types}/basic/component.d.ts +0 -0
- /package/lib/{types → cjs/types}/basic/component.js +0 -0
- /package/lib/{types → cjs/types}/basic/datasource.d.ts +0 -0
- /package/lib/{types → cjs/types}/basic/datasource.js +0 -0
- /package/lib/{types → cjs/types}/index.d.ts +0 -0
- /package/lib/{types → cjs/types}/index.js +0 -0
- /package/lib/{types → cjs/types}/lcds.js +0 -0
- /package/lib/{types → cjs/types}/platform/app.js +0 -0
- /package/lib/{types → cjs/types}/platform/common.d.ts +0 -0
- /package/lib/{types → cjs/types}/platform/common.js +0 -0
- /package/lib/{types → cjs/types}/platform/component.js +0 -0
- /package/lib/{types → cjs/types}/platform/datasource.js +0 -0
- /package/lib/{types → cjs/types}/platform/eventFlow.d.ts +0 -0
- /package/lib/{types → cjs/types}/platform/eventFlow.js +0 -0
- /package/lib/{types → cjs/types}/platform/query.d.ts +0 -0
- /package/lib/{types → cjs/types}/platform/query.js +0 -0
- /package/lib/{types → cjs/types}/platform/theme.js +0 -0
- /package/lib/{utils → cjs/utils}/CSSProperty.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/CSSProperty.js +0 -0
- /package/lib/{utils → cjs/utils}/color-generator/core.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/color-generator/core.js +0 -0
- /package/lib/{utils → cjs/utils}/color-generator/generate.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/color-generator/generate.js +0 -0
- /package/lib/{utils → cjs/utils}/color-generator/utils.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/color-generator/utils.js +0 -0
- /package/lib/{utils → cjs/utils}/constant.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/constant.js +0 -0
- /package/lib/{utils → cjs/utils}/dts/auto-generated.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/dts/auto-generated.js +0 -0
- /package/lib/{utils → cjs/utils}/dts/build.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/dts/build.js +0 -0
- /package/lib/{utils → cjs/utils}/dts/index.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/dts/index.js +0 -0
- /package/lib/{utils → cjs/utils}/index.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/index.js +0 -0
- /package/lib/{utils → cjs/utils}/version/common.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/version/common.js +0 -0
- /package/lib/{utils → cjs/utils}/version/featureChecker.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/version/featureChecker.js +0 -0
- /package/lib/{utils → cjs/utils}/version/migrations/version4.d.ts +0 -0
- /package/lib/{utils → cjs/utils}/version/migrations/version4.js +0 -0
|
@@ -0,0 +1,1796 @@
|
|
|
1
|
+
export const wedaDTS = `declare class UserWidget {
|
|
2
|
+
// FIXME: 暂时不对外暴露
|
|
3
|
+
// 内置命名空间
|
|
4
|
+
// get sys(): {
|
|
5
|
+
// readonly id: string;
|
|
6
|
+
// readonly module: string;
|
|
7
|
+
// readonly component: string;
|
|
8
|
+
// readonly parent: UserWidget;
|
|
9
|
+
// readonly children: UserWidget[];
|
|
10
|
+
|
|
11
|
+
// closest(filter?: (parentWidget: UserWidget) => boolean): UserWidget | null;
|
|
12
|
+
// };
|
|
13
|
+
|
|
14
|
+
// FIXME: 暂时不对外暴露
|
|
15
|
+
// 自定义命名空间
|
|
16
|
+
// get custom(): { [key: string]: any };
|
|
17
|
+
|
|
18
|
+
// ========== 快捷访问方式 ========== //
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 组件 ID,微搭中一般由编辑器生成
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
* 组件库名
|
|
26
|
+
*/
|
|
27
|
+
readonly module: string;
|
|
28
|
+
/**
|
|
29
|
+
* 组件名
|
|
30
|
+
*/
|
|
31
|
+
readonly component: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 父组件引用
|
|
35
|
+
*/
|
|
36
|
+
readonly parent: UserWidget;
|
|
37
|
+
/**
|
|
38
|
+
* 子组件集合
|
|
39
|
+
*/
|
|
40
|
+
readonly children: UserWidget[];
|
|
41
|
+
|
|
42
|
+
// FIXME: 暂时不对外暴露
|
|
43
|
+
// closest(filter?: (parentWidget: UserWidget) => boolean): UserWidget | null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Used Components Inner Begin
|
|
47
|
+
// Used Components - Don't touch me
|
|
48
|
+
// Used Components Inner End
|
|
49
|
+
|
|
50
|
+
// Redefine Any Type Inner Begin
|
|
51
|
+
// Redefine Any Type - Don't touch me
|
|
52
|
+
// Redefine Any Type Inner End
|
|
53
|
+
|
|
54
|
+
declare namespace $app {
|
|
55
|
+
/**
|
|
56
|
+
* 应用 ID
|
|
57
|
+
*
|
|
58
|
+
* @privateForWeDa
|
|
59
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "应用 ID"}
|
|
60
|
+
*/
|
|
61
|
+
const id: string;
|
|
62
|
+
/**
|
|
63
|
+
* 应用名称
|
|
64
|
+
*
|
|
65
|
+
* @privateForWeDa
|
|
66
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "应用名称"}
|
|
67
|
+
*/
|
|
68
|
+
const label: string;
|
|
69
|
+
/**
|
|
70
|
+
* 应用版本
|
|
71
|
+
*
|
|
72
|
+
* @privateForWeDa
|
|
73
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "应用版本"}
|
|
74
|
+
*/
|
|
75
|
+
const version: string;
|
|
76
|
+
/**
|
|
77
|
+
* 小程序APPID
|
|
78
|
+
*
|
|
79
|
+
* @privateForWeDa
|
|
80
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "小程序APPID"}
|
|
81
|
+
*/
|
|
82
|
+
const mpAppId: string;
|
|
83
|
+
/**
|
|
84
|
+
* 小程序名称
|
|
85
|
+
*
|
|
86
|
+
* @privateForWeDa
|
|
87
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "小程序名称"}
|
|
88
|
+
*/
|
|
89
|
+
const mpAppName: string;
|
|
90
|
+
|
|
91
|
+
namespace dataset {
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* 全局变量对象
|
|
95
|
+
*/
|
|
96
|
+
const state: {
|
|
97
|
+
// Global State Inner Begin
|
|
98
|
+
// Global State 全局变量 - Don't touch me
|
|
99
|
+
// Global State Inner End
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* 全局 common 方法
|
|
105
|
+
*/
|
|
106
|
+
namespace common {
|
|
107
|
+
// Global Common Inner Begin
|
|
108
|
+
// Global Common 全局方法 - Don't touch me
|
|
109
|
+
// Global Common Inner End
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 已废弃,请改用 $w.utils
|
|
114
|
+
*/
|
|
115
|
+
const utils: any
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 设置页面变量
|
|
119
|
+
*/
|
|
120
|
+
function setState(data: Object): void;
|
|
121
|
+
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare const app = $app;
|
|
125
|
+
|
|
126
|
+
declare namespace __w__ {
|
|
127
|
+
/**
|
|
128
|
+
* 当前应用实例
|
|
129
|
+
*
|
|
130
|
+
* @privateForWeDa
|
|
131
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "应用信息", "schema": {"type":"object","properties":{"id":{"type":"string","title":"应用 ID"},"label":{"type":"string","title":"应用名称"},"version":{"type":"string","title":"应用版本"},"mpAppName":{"type":"string","title":"小程序名称"},"mpAppId":{"type":"string","title":"小程序APPID"}}}}
|
|
132
|
+
*/
|
|
133
|
+
const app = $app;
|
|
134
|
+
|
|
135
|
+
// Widget Page Begin
|
|
136
|
+
/**
|
|
137
|
+
* 当前页面信息
|
|
138
|
+
*
|
|
139
|
+
* @privateForWeDa
|
|
140
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "当前页面信息", "schema": {"type":"object","properties":{"id":{"type":"string","title":"页面 ID"},"label":{"type":"string","title":"页面名称"},"path":{"type":"string","title":"页面路径"}}}}
|
|
141
|
+
*/
|
|
142
|
+
const page = $page;
|
|
143
|
+
// Widget Page End
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* 用户权限相关方法和属性
|
|
147
|
+
*/
|
|
148
|
+
namespace auth {
|
|
149
|
+
interface CurrentUserInfo {
|
|
150
|
+
/**
|
|
151
|
+
* 用户 ID
|
|
152
|
+
*
|
|
153
|
+
* @privateForWeDa
|
|
154
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "用户 ID"}
|
|
155
|
+
*/
|
|
156
|
+
userId?: string;
|
|
157
|
+
/**
|
|
158
|
+
* 手机
|
|
159
|
+
*
|
|
160
|
+
* @privateForWeDa
|
|
161
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "手机"}
|
|
162
|
+
*/
|
|
163
|
+
phone?: string;
|
|
164
|
+
/**
|
|
165
|
+
* 用户类型
|
|
166
|
+
*
|
|
167
|
+
* @privateForWeDa
|
|
168
|
+
* {"group": "sysVar", "displayType": "number", "displayName": "用户类型"}
|
|
169
|
+
*/
|
|
170
|
+
type?: number;
|
|
171
|
+
/**
|
|
172
|
+
* 用户关联角色
|
|
173
|
+
*
|
|
174
|
+
* @privateForWeDa
|
|
175
|
+
* {"group": "sysVar", "displayType": "array", "displayName": "用户关联角色"}
|
|
176
|
+
*/
|
|
177
|
+
relatedRoles?: {
|
|
178
|
+
/**
|
|
179
|
+
* 角色 ID
|
|
180
|
+
*
|
|
181
|
+
* @privateForWeDa
|
|
182
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "角色 ID"}
|
|
183
|
+
*/
|
|
184
|
+
id?: string;
|
|
185
|
+
/**
|
|
186
|
+
* 环境 ID
|
|
187
|
+
*
|
|
188
|
+
* @privateForWeDa
|
|
189
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "环境 ID"}
|
|
190
|
+
*/
|
|
191
|
+
envId?: string;
|
|
192
|
+
/**
|
|
193
|
+
* 角色名称
|
|
194
|
+
*
|
|
195
|
+
* @privateForWeDa
|
|
196
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "角色名称"}
|
|
197
|
+
*/
|
|
198
|
+
name?: string;
|
|
199
|
+
/**
|
|
200
|
+
* 角色标识
|
|
201
|
+
*
|
|
202
|
+
* @privateForWeDa
|
|
203
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "角色标识"}
|
|
204
|
+
*/
|
|
205
|
+
roleIdentity?: string;
|
|
206
|
+
}[];
|
|
207
|
+
/**
|
|
208
|
+
* 微信 openId
|
|
209
|
+
*
|
|
210
|
+
* @privateForWeDa
|
|
211
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "微信 openId"}
|
|
212
|
+
*/
|
|
213
|
+
openId?: string;
|
|
214
|
+
/**
|
|
215
|
+
* 用户名称
|
|
216
|
+
*
|
|
217
|
+
* @privateForWeDa
|
|
218
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "用户名称"}
|
|
219
|
+
*/
|
|
220
|
+
name?: string;
|
|
221
|
+
/**
|
|
222
|
+
* 用户昵称
|
|
223
|
+
*
|
|
224
|
+
* @privateForWeDa
|
|
225
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "用户昵称"}
|
|
226
|
+
*/
|
|
227
|
+
nickName?: string;
|
|
228
|
+
/**
|
|
229
|
+
* 用户头像
|
|
230
|
+
*
|
|
231
|
+
* @privateForWeDa
|
|
232
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "用户头像"}
|
|
233
|
+
*/
|
|
234
|
+
avatarUrl?: string;
|
|
235
|
+
/**
|
|
236
|
+
* 邮箱
|
|
237
|
+
*
|
|
238
|
+
* @privateForWeDa
|
|
239
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "邮箱"}
|
|
240
|
+
*/
|
|
241
|
+
email?: string;
|
|
242
|
+
/**
|
|
243
|
+
* 主岗部门
|
|
244
|
+
*
|
|
245
|
+
* @privateForWeDa
|
|
246
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "主岗部门"}
|
|
247
|
+
*/
|
|
248
|
+
mainOrg?: {
|
|
249
|
+
/**
|
|
250
|
+
* 主岗部门 ID
|
|
251
|
+
*
|
|
252
|
+
* @privateForWeDa
|
|
253
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "主岗部门 ID"}
|
|
254
|
+
*/
|
|
255
|
+
id?: string;
|
|
256
|
+
/**
|
|
257
|
+
* 主岗部门名称
|
|
258
|
+
*
|
|
259
|
+
* @privateForWeDa
|
|
260
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "主岗部门名称"}
|
|
261
|
+
*/
|
|
262
|
+
name?: string;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* 兼岗部门
|
|
266
|
+
*
|
|
267
|
+
* @privateForWeDa
|
|
268
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "兼岗部门"}
|
|
269
|
+
*/
|
|
270
|
+
orgs?: {
|
|
271
|
+
/**
|
|
272
|
+
* 兼岗部门 ID
|
|
273
|
+
*
|
|
274
|
+
* @privateForWeDa
|
|
275
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "兼岗部门 ID"}
|
|
276
|
+
*/
|
|
277
|
+
id?: string;
|
|
278
|
+
/**
|
|
279
|
+
* 兼岗部门名称
|
|
280
|
+
*
|
|
281
|
+
* @privateForWeDa
|
|
282
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "兼岗部门名称"}
|
|
283
|
+
*/
|
|
284
|
+
name?: string;
|
|
285
|
+
}[];
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* 获取用户信息
|
|
290
|
+
*/
|
|
291
|
+
function getUserInfo(): CurrentUserInfo;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* 登录用户信息
|
|
296
|
+
*
|
|
297
|
+
* @privateForWeDa
|
|
298
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "登录用户信息", "schema": {"type":"object","properties":{"userId":{"type":"string","title":"用户 ID"},"phone":{"type":"string","title":"手机"},"type":{"type":"number","title":"用户类型"},"relatedRoles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"角色 ID"},"envId":{"type":"string","title":"环境 ID"},"name":{"type":"string","title":"角色名称"},"roleIdentity":{"type":"string","title":"角色标识"}}},"title":"用户关联角色"},"openId":{"type":"string","title":"微信 openId"},"name":{"type":"string","title":"用户名称"},"nickName":{"type":"string","title":"用户昵称"},"avatarUrl":{"type":"string","title":"用户头像"},"email":{"type":"string","title":"邮箱"},"mainOrg":{"type":"object","properties":{"id":{"type":"string","title":"主岗部门 ID"},"name":{"type":"string","title":"主岗部门名称"}},"title":"主岗部门"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"兼岗部门 ID"},"name":{"type":"string","title":"兼岗部门名称"}}},"title":"兼岗部门"}}}, "doc": "https://docs.cloudbase.net/lowcode/framework/app/app#authgetuserinfoauthcurrentuser"}
|
|
299
|
+
*/
|
|
300
|
+
const currentUser: CurrentUserInfo;
|
|
301
|
+
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* 数据源等云端能力集合
|
|
306
|
+
*/
|
|
307
|
+
namespace cloud {
|
|
308
|
+
interface ICallDataSourceParams {
|
|
309
|
+
/**
|
|
310
|
+
* 数据源标志
|
|
311
|
+
*/
|
|
312
|
+
dataSourceName: string;
|
|
313
|
+
/**
|
|
314
|
+
* 数据源方法名
|
|
315
|
+
*/
|
|
316
|
+
methodName: string;
|
|
317
|
+
/**
|
|
318
|
+
* 方法参数,根据方法实际入参填写
|
|
319
|
+
*/
|
|
320
|
+
params: Object;
|
|
321
|
+
}
|
|
322
|
+
interface ICallFunctionParams {
|
|
323
|
+
/**
|
|
324
|
+
* TCB云函数名称
|
|
325
|
+
*/
|
|
326
|
+
name: string;
|
|
327
|
+
/**
|
|
328
|
+
* 云函数接收的参数,根据自己创建的云函数入参而定
|
|
329
|
+
*/
|
|
330
|
+
data?: any;
|
|
331
|
+
}
|
|
332
|
+
interface IParseOptions {
|
|
333
|
+
/**
|
|
334
|
+
* 解析 云开发云函数的通用response 包装。为true, 则返回 res.result, 此时会丢失 res.requestId 信息
|
|
335
|
+
*/
|
|
336
|
+
unwrapResult?: boolean;
|
|
337
|
+
/**
|
|
338
|
+
* 解析业务信息,需配合 unwrapResult 使用。为 true 时, res.result.code 非 0 抛出错误, 为 0 则返回 res.result.data
|
|
339
|
+
*/
|
|
340
|
+
parseBusinessInfo?: boolean;
|
|
341
|
+
}
|
|
342
|
+
interface ICallWorkflowParams {
|
|
343
|
+
/**
|
|
344
|
+
* 方法名称
|
|
345
|
+
*/
|
|
346
|
+
action: string;
|
|
347
|
+
/**
|
|
348
|
+
* 方法的自定义参数,其中 envType, envId, uid, source 均无需填写
|
|
349
|
+
*/
|
|
350
|
+
data?: Record<string, any>;
|
|
351
|
+
/**
|
|
352
|
+
* 是否自动将 data 的key 改为大写驼峰。默认为 true, 即使用时 data 可以采用小驼峰的 key
|
|
353
|
+
*/
|
|
354
|
+
capitalizeDataKey?: boolean;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* 调用数据源
|
|
359
|
+
*
|
|
360
|
+
* @privateForWeDa
|
|
361
|
+
* {"group": "cloud", "displayType": "function", "description": "调用数据源"}
|
|
362
|
+
*/
|
|
363
|
+
function callDataSource(params: ICallDataSourceParams): any;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* 通过 cloudid 获取静态文件的 http 访问地址
|
|
367
|
+
*
|
|
368
|
+
* @privateForWeDa
|
|
369
|
+
* {"group": "cloud", "displayType": "function", "description": "通过 cloudid 获取静态文件的 http 访问地址"}
|
|
370
|
+
*/
|
|
371
|
+
function getTempFileURL(params: string | string[]): Promise<string | string[]>;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* 调用流程
|
|
375
|
+
*
|
|
376
|
+
* @privateForWeDa
|
|
377
|
+
* {"group": "cloud", "displayType": "function", "description": "调用流程"}
|
|
378
|
+
*/
|
|
379
|
+
function callWorkflow(action: ICallWorkflowParams): Promise<any>;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* 调用云开发的云函数, 与 $w.cloud.getCloudInstance 示例中的效果大体一致
|
|
383
|
+
*
|
|
384
|
+
* @privateForWeDa
|
|
385
|
+
* {"group": "cloud", "displayType": "function", "description": "调用云开发的云函数, 与 $w.cloud.getCloudInstance 示例中的效果大体一致"}
|
|
386
|
+
*/
|
|
387
|
+
function callFunction(params: ICallFunctionParams, parseOptions?: IParseOptions): Promise<any>;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* 返回云开发web-sdk初始化后的实例(无需关心tcb环境信息及认证登录的处理), 即 tcb.init 后返回的对象, 可用该对象直接调用tcb的各种能力
|
|
391
|
+
*
|
|
392
|
+
* @privateForWeDa
|
|
393
|
+
* {"group": "cloud", "displayType": "function", "description": "返回云开发web-sdk初始化后的实例(无需关心tcb环境信息及认证登录的处理), 即 tcb.init 后返回的对象, 可用该对象直接调用tcb的各种能力"}
|
|
394
|
+
*/
|
|
395
|
+
function getCloudInstance(): Promise<CloudInstance>;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* 在登录认证源设置中,h5开启 微信小程序OPENID登录 后,使用此函数可以返回带有微信小程序授权登录token参数的h5跳转链接,可以用于微信小程序webview中的h5页面openid静默授权登录
|
|
399
|
+
*
|
|
400
|
+
* @privateForWeDa
|
|
401
|
+
* {"group": "cloud", "displayType": "function", "description": "在登录认证源设置中,h5开启 微信小程序OPENID登录 后,使用此函数可以返回带有微信小程序授权登录token参数的h5跳转链接,可以用于微信小程序webview中的h5页面openid静默授权登录"}
|
|
402
|
+
*/
|
|
403
|
+
function getUrlWithOpenidToken(src: string): Promise<string>;
|
|
404
|
+
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* 平台工具方法集合
|
|
409
|
+
*/
|
|
410
|
+
namespace utils {
|
|
411
|
+
interface navigatorOptions {
|
|
412
|
+
/**
|
|
413
|
+
* 子应用包地址,例如 packages/subapp
|
|
414
|
+
*/
|
|
415
|
+
packageName?: string;
|
|
416
|
+
/**
|
|
417
|
+
* 页面 ID
|
|
418
|
+
*/
|
|
419
|
+
pageId: string;
|
|
420
|
+
data?: Record<string, any>;
|
|
421
|
+
/**
|
|
422
|
+
* query object 对象
|
|
423
|
+
*/
|
|
424
|
+
params?: Record<string, any>;
|
|
425
|
+
events?: Record<string, (data: any) => void>;
|
|
426
|
+
success?: (res: any) => void;
|
|
427
|
+
fail?: (res: any) => void;
|
|
428
|
+
complete?: (res: any) => void;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
interface navigateBackOptions {
|
|
432
|
+
/**
|
|
433
|
+
* 返回的页面数,如果 delta 大于现有页面数,则返回到首页。
|
|
434
|
+
*/
|
|
435
|
+
delta: number;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* 显示提示框
|
|
440
|
+
*/
|
|
441
|
+
function showToast(options);
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* 显示全局加载中提示
|
|
445
|
+
*/
|
|
446
|
+
function showLoading(options);
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* 隐藏全局加载中提示
|
|
450
|
+
*/
|
|
451
|
+
function hideLoading();
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* 显示模态弹框
|
|
455
|
+
*/
|
|
456
|
+
function showModal(options);
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* 拨打电话
|
|
460
|
+
*/
|
|
461
|
+
function callPhone(options);
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* 扫描二维码
|
|
465
|
+
*/
|
|
466
|
+
function scanCode(options: {
|
|
467
|
+
/**
|
|
468
|
+
* 是否只能从相机扫码,不允许从相册选择图片
|
|
469
|
+
*/
|
|
470
|
+
onlyFromCamera?: boolean;
|
|
471
|
+
enableDefaultBehavior?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* 扫码类型
|
|
474
|
+
*/
|
|
475
|
+
scanType?: ('barCode' | 'qrCode')[];
|
|
476
|
+
/**
|
|
477
|
+
* 接口调用成功的回调函数
|
|
478
|
+
*/
|
|
479
|
+
success?: (res: { result: string; scanType: string }) => void;
|
|
480
|
+
/**
|
|
481
|
+
* 接口调用失败的回调函数
|
|
482
|
+
*/
|
|
483
|
+
fail?: (err: Error) => void;
|
|
484
|
+
/**
|
|
485
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
486
|
+
*/
|
|
487
|
+
complete?: () => void;
|
|
488
|
+
}): Promise<ScanCodeResult> | ScanCodeResult;
|
|
489
|
+
|
|
490
|
+
/** 微信能力 */
|
|
491
|
+
/**
|
|
492
|
+
* 消息订阅
|
|
493
|
+
* @param options
|
|
494
|
+
*/
|
|
495
|
+
function requestSubscribeMessage(options);
|
|
496
|
+
/**
|
|
497
|
+
* 地图导航
|
|
498
|
+
* @param options
|
|
499
|
+
*/
|
|
500
|
+
function openLocation(options);
|
|
501
|
+
/**
|
|
502
|
+
* 预约视频号直播
|
|
503
|
+
* @param options
|
|
504
|
+
*/
|
|
505
|
+
function reserveChannelsLive(options);
|
|
506
|
+
/**
|
|
507
|
+
* 打开视频号主页
|
|
508
|
+
* @param options
|
|
509
|
+
*/
|
|
510
|
+
function openChannelsUserProfile(options);
|
|
511
|
+
/**
|
|
512
|
+
* 打开视频号直播
|
|
513
|
+
* @param options
|
|
514
|
+
*/
|
|
515
|
+
function openChannelsLive(options);
|
|
516
|
+
/**
|
|
517
|
+
* 打开视频号活动页
|
|
518
|
+
* @param options
|
|
519
|
+
*/
|
|
520
|
+
function openChannelsEvent(options);
|
|
521
|
+
/**
|
|
522
|
+
* 打开视频号视频
|
|
523
|
+
* @param options
|
|
524
|
+
*/
|
|
525
|
+
function openChannelsActivity(options);
|
|
526
|
+
/**
|
|
527
|
+
* 获取视频号直播预告信息
|
|
528
|
+
* @param options
|
|
529
|
+
*/
|
|
530
|
+
function getChannelsLiveNoticeInfo(options);
|
|
531
|
+
/**
|
|
532
|
+
* 获取视频号直播信息
|
|
533
|
+
* @param options
|
|
534
|
+
*/
|
|
535
|
+
function getChannelsLiveInfo(options);
|
|
536
|
+
/**
|
|
537
|
+
* 创建激励视频广告
|
|
538
|
+
* @param options
|
|
539
|
+
*/
|
|
540
|
+
function createRewardedVideoAd(options);
|
|
541
|
+
/**
|
|
542
|
+
* 创建插屏广告
|
|
543
|
+
* @param options
|
|
544
|
+
*/
|
|
545
|
+
function createInterstitialAd(options);
|
|
546
|
+
|
|
547
|
+
// 特制路由
|
|
548
|
+
function navigateTo(options: navigatorOptions);
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* 关闭当前页面,跳转到应用内的某个页面
|
|
552
|
+
*/
|
|
553
|
+
function redirectTo(options: navigatorOptions);
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* 关闭所有页面,打开到应用内的某个页面
|
|
557
|
+
*/
|
|
558
|
+
function reLaunch(options: navigatorOptions);
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* 返回首页
|
|
562
|
+
*/
|
|
563
|
+
function relaunchHome();
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* 关闭当前页面,返回上一页面或多级页面
|
|
567
|
+
*/
|
|
568
|
+
function navigateBack(options: navigateBackOptions);
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* 格式化枚举
|
|
572
|
+
*/
|
|
573
|
+
function formatEnum(path, optionname, app);
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* 获取枚举值
|
|
577
|
+
*/
|
|
578
|
+
function getEnumValue({
|
|
579
|
+
enumOptions,
|
|
580
|
+
optionSetName,
|
|
581
|
+
key,
|
|
582
|
+
}: {
|
|
583
|
+
enumOptions?: { key: any; value: any }[] | { response?: { data?: { items?: any } } } | any;
|
|
584
|
+
optionSetName?: string;
|
|
585
|
+
key?: any;
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* 修改页面标题
|
|
590
|
+
*/
|
|
591
|
+
function setTitle(newTitle: string): Promise<unknown>;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* 获取素材地址
|
|
595
|
+
*/
|
|
596
|
+
function resolveStaticResourceUrl(url: string): string;
|
|
597
|
+
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* 设备信息
|
|
602
|
+
*
|
|
603
|
+
* @privateForWeDa
|
|
604
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "设备信息", "schema": {"type":"object","properties":{"viewport":{"type":"object","title":"窗口","properties":{"width":{"type":"number","title":"窗口宽度"},"height":{"type":"number","title":"窗口高度"}}},"networkType":{"type":"string","title":"网络类型"}}}}
|
|
605
|
+
*/
|
|
606
|
+
namespace device {
|
|
607
|
+
/**
|
|
608
|
+
* 网络类型
|
|
609
|
+
* pc端为空字符串
|
|
610
|
+
*/
|
|
611
|
+
enum NETWORK_TYPE {
|
|
612
|
+
'wifi' = 'wifi',
|
|
613
|
+
'2g' = '2g',
|
|
614
|
+
'3g' = '3g',
|
|
615
|
+
'4g' = '4g',
|
|
616
|
+
'5g' = '5g',
|
|
617
|
+
'other' = 'other',
|
|
618
|
+
'unknown' = '',
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* 窗口信息
|
|
623
|
+
*/
|
|
624
|
+
interface IViewport {
|
|
625
|
+
/**
|
|
626
|
+
* 窗口宽度
|
|
627
|
+
*
|
|
628
|
+
* @privateForWeDa
|
|
629
|
+
* {"group": "sysVar", "displayType": "number", "displayName": "窗口宽度"}
|
|
630
|
+
*/
|
|
631
|
+
width: number;
|
|
632
|
+
/**
|
|
633
|
+
* 窗口高度
|
|
634
|
+
*
|
|
635
|
+
* @privateForWeDa
|
|
636
|
+
* {"group": "sysVar", "displayType": "number", "displayName": "窗口高度"}
|
|
637
|
+
*/
|
|
638
|
+
height: number;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* 窗口
|
|
643
|
+
*
|
|
644
|
+
* @privateForWeDa
|
|
645
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "窗口"}
|
|
646
|
+
*/
|
|
647
|
+
const viewport: IViewport;
|
|
648
|
+
/**
|
|
649
|
+
* 网络类型
|
|
650
|
+
*
|
|
651
|
+
* @privateForWeDa
|
|
652
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "网络类型"}
|
|
653
|
+
*/
|
|
654
|
+
const networkType: NETWORK_TYPE;
|
|
655
|
+
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* 环境信息
|
|
660
|
+
*
|
|
661
|
+
* @privateForWeDa
|
|
662
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "环境信息", "schema": {"type":"object","properties":{"envId":{"type":"string","title":"环境 ID"},"type":{"type":"string","title":"环境类型"}}}}
|
|
663
|
+
*/
|
|
664
|
+
namespace env {
|
|
665
|
+
enum ENV_TYPE {
|
|
666
|
+
/**
|
|
667
|
+
* 生产
|
|
668
|
+
*/
|
|
669
|
+
'production' = 'production',
|
|
670
|
+
/**
|
|
671
|
+
* 预览
|
|
672
|
+
*/
|
|
673
|
+
'preview' = 'preview',
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* 环境类型
|
|
678
|
+
*
|
|
679
|
+
* @privateForWeDa
|
|
680
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "环境类型"}
|
|
681
|
+
*/
|
|
682
|
+
const type: ENV_TYPE;
|
|
683
|
+
/**
|
|
684
|
+
* 环境 ID
|
|
685
|
+
*
|
|
686
|
+
* @privateForWeDa
|
|
687
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "环境 ID"}
|
|
688
|
+
*/
|
|
689
|
+
const envId: string;
|
|
690
|
+
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* 上下文信息
|
|
695
|
+
*
|
|
696
|
+
* @privateForWeDa
|
|
697
|
+
* {"group": "sysVar", "displayType": "object", "displayName": "上下文信息", "schema": {"type":"object","properties":{"platforms":{"type":"array","title":"应用运行终端","items":{"type":"stirng"}},"isEditorMode":{"type":"boolean","title":"是否在编辑区"}}}}
|
|
698
|
+
*/
|
|
699
|
+
namespace wedaContext {
|
|
700
|
+
/**
|
|
701
|
+
* 是否在编辑区
|
|
702
|
+
*
|
|
703
|
+
* @privateForWeDa
|
|
704
|
+
* {"group": "sysVar", "displayType": "boolean", "displayName": "是否在编辑区"}
|
|
705
|
+
*/
|
|
706
|
+
const isEditorMode: boolean;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* 应用运行终端
|
|
710
|
+
*
|
|
711
|
+
* @privateForWeDa
|
|
712
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "应用运行终端"}
|
|
713
|
+
*/
|
|
714
|
+
const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
715
|
+
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
// Global Query Inner Begin
|
|
719
|
+
// Global Query 全局查询 - Don't touch me
|
|
720
|
+
// Global Query Inner End
|
|
721
|
+
|
|
722
|
+
// Page Query Inner Begin
|
|
723
|
+
// Page Query 页面查询 - Don't touch me
|
|
724
|
+
// Page Query Inner End
|
|
725
|
+
|
|
726
|
+
// Page EventFlow Inner Begin
|
|
727
|
+
// EventFlow 事件流 - Don't touch me
|
|
728
|
+
// Page EventFlow Inner End
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* 绝对值
|
|
732
|
+
*
|
|
733
|
+
* @remarks
|
|
734
|
+
* 计算传入数字的绝对值
|
|
735
|
+
*
|
|
736
|
+
* @privateForWeDa
|
|
737
|
+
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}
|
|
738
|
+
*/
|
|
739
|
+
function ABS(num: number): number;
|
|
740
|
+
/**
|
|
741
|
+
* 最小值
|
|
742
|
+
*
|
|
743
|
+
* @remarks
|
|
744
|
+
* 返回一组数字中的最小值
|
|
745
|
+
*
|
|
746
|
+
* @privateForWeDa
|
|
747
|
+
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}
|
|
748
|
+
*/
|
|
749
|
+
function Min(...args: number[]): number;
|
|
750
|
+
/**
|
|
751
|
+
* 最大值
|
|
752
|
+
*
|
|
753
|
+
* @remarks
|
|
754
|
+
* 返回一组数字中的最大值
|
|
755
|
+
*
|
|
756
|
+
* @privateForWeDa
|
|
757
|
+
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}
|
|
758
|
+
*/
|
|
759
|
+
function Max(...args: number[]): number;
|
|
760
|
+
/**
|
|
761
|
+
* 平均值
|
|
762
|
+
*
|
|
763
|
+
* @remarks
|
|
764
|
+
* 返回一组数字中的平均值
|
|
765
|
+
*
|
|
766
|
+
* @privateForWeDa
|
|
767
|
+
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}
|
|
768
|
+
*/
|
|
769
|
+
function Average(...args: number[]): number;
|
|
770
|
+
/**
|
|
771
|
+
* 向下取整
|
|
772
|
+
*
|
|
773
|
+
* @remarks
|
|
774
|
+
* 返回传入数字向下取整的结果
|
|
775
|
+
*
|
|
776
|
+
* @privateForWeDa
|
|
777
|
+
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}
|
|
778
|
+
*/
|
|
779
|
+
function Floor(num: number): number;
|
|
780
|
+
/**
|
|
781
|
+
* 向上取整
|
|
782
|
+
*
|
|
783
|
+
* @remarks
|
|
784
|
+
* 返回传入数字向上取整的结果
|
|
785
|
+
*
|
|
786
|
+
* @privateForWeDa
|
|
787
|
+
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}
|
|
788
|
+
*/
|
|
789
|
+
function Ceiling(num: number): number;
|
|
790
|
+
/**
|
|
791
|
+
* 四舍五入
|
|
792
|
+
*
|
|
793
|
+
* @remarks
|
|
794
|
+
* 返回传入数字四舍五入后的结果
|
|
795
|
+
*
|
|
796
|
+
* @privateForWeDa
|
|
797
|
+
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}
|
|
798
|
+
*/
|
|
799
|
+
function Round(num: number): number;
|
|
800
|
+
/**
|
|
801
|
+
* 求和
|
|
802
|
+
*
|
|
803
|
+
* @remarks
|
|
804
|
+
* 返回一组数字中的和
|
|
805
|
+
*
|
|
806
|
+
* @privateForWeDa
|
|
807
|
+
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}
|
|
808
|
+
*/
|
|
809
|
+
function Sum(...args: number[]): number;
|
|
810
|
+
/**
|
|
811
|
+
* 随机数
|
|
812
|
+
*
|
|
813
|
+
* @remarks
|
|
814
|
+
* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数
|
|
815
|
+
*
|
|
816
|
+
* @privateForWeDa
|
|
817
|
+
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}
|
|
818
|
+
*/
|
|
819
|
+
function Rand(num: number): number;
|
|
820
|
+
|
|
821
|
+
interface IIfObjectParam {
|
|
822
|
+
condition: boolean;
|
|
823
|
+
consequent?: any;
|
|
824
|
+
alternate?: any;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* 条件分支
|
|
828
|
+
*
|
|
829
|
+
* @remarks
|
|
830
|
+
* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。
|
|
831
|
+
*
|
|
832
|
+
* @privateForWeDa
|
|
833
|
+
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}
|
|
834
|
+
*/
|
|
835
|
+
function If(params: IIfObjectParam): any;
|
|
836
|
+
function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
837
|
+
/**
|
|
838
|
+
* 是否为空
|
|
839
|
+
*
|
|
840
|
+
* @remarks
|
|
841
|
+
* 判断传入的文本是否为空
|
|
842
|
+
*
|
|
843
|
+
* @privateForWeDa
|
|
844
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}
|
|
845
|
+
*/
|
|
846
|
+
function IsEmpty(text: string | string[]): boolean;
|
|
847
|
+
/**
|
|
848
|
+
* 与
|
|
849
|
+
*
|
|
850
|
+
* @remarks
|
|
851
|
+
* 用于确定所有判断条件是否为真
|
|
852
|
+
*
|
|
853
|
+
* @privateForWeDa
|
|
854
|
+
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}
|
|
855
|
+
*/
|
|
856
|
+
function And(...args: boolean[]): boolean;
|
|
857
|
+
/**
|
|
858
|
+
* 或
|
|
859
|
+
*
|
|
860
|
+
* @remarks
|
|
861
|
+
* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否
|
|
862
|
+
*
|
|
863
|
+
* @privateForWeDa
|
|
864
|
+
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}
|
|
865
|
+
*/
|
|
866
|
+
function Or(...args: boolean[]): boolean;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* 获取文本长度
|
|
870
|
+
*
|
|
871
|
+
* @remarks
|
|
872
|
+
* 获取传入文本的字符数
|
|
873
|
+
*
|
|
874
|
+
* @privateForWeDa
|
|
875
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}
|
|
876
|
+
*/
|
|
877
|
+
function Len(text: string): number;
|
|
878
|
+
/**
|
|
879
|
+
* 是否包含指定文本
|
|
880
|
+
*
|
|
881
|
+
* @remarks
|
|
882
|
+
* 判断文本 1 是否包含文本 2
|
|
883
|
+
*
|
|
884
|
+
* @privateForWeDa
|
|
885
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}
|
|
886
|
+
*/
|
|
887
|
+
function Contains(text1: string, text2: string): boolean;
|
|
888
|
+
/**
|
|
889
|
+
* 拆分文本
|
|
890
|
+
*
|
|
891
|
+
* @remarks
|
|
892
|
+
* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")
|
|
893
|
+
*
|
|
894
|
+
* @privateForWeDa
|
|
895
|
+
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split('张三,李四,王五', ',')" , "definition": "Split(文本1,文本2):文本数组"}
|
|
896
|
+
*/
|
|
897
|
+
function Split(text1: string, text2: string): string[];
|
|
898
|
+
/**
|
|
899
|
+
* 删除开头/结尾空格和制表符
|
|
900
|
+
*
|
|
901
|
+
* @remarks
|
|
902
|
+
* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除
|
|
903
|
+
*
|
|
904
|
+
* @privateForWeDa
|
|
905
|
+
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}
|
|
906
|
+
*/
|
|
907
|
+
function Trim(text: string): string;
|
|
908
|
+
/**
|
|
909
|
+
* 转换为大写
|
|
910
|
+
*
|
|
911
|
+
* @remarks
|
|
912
|
+
* 将传入的文本转为全大写文本
|
|
913
|
+
*
|
|
914
|
+
* @privateForWeDa
|
|
915
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}
|
|
916
|
+
*/
|
|
917
|
+
function Upper(text: string): string;
|
|
918
|
+
/**
|
|
919
|
+
* 转换为小写
|
|
920
|
+
*
|
|
921
|
+
* @remarks
|
|
922
|
+
* 将传入的文本转为全小写文本
|
|
923
|
+
*
|
|
924
|
+
* @privateForWeDa
|
|
925
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}
|
|
926
|
+
*/
|
|
927
|
+
function Lower(text: string): string;
|
|
928
|
+
/**
|
|
929
|
+
* 文本拼接
|
|
930
|
+
*
|
|
931
|
+
* @remarks
|
|
932
|
+
* 返回多个文本拼接后的新文本
|
|
933
|
+
*
|
|
934
|
+
* @privateForWeDa
|
|
935
|
+
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}
|
|
936
|
+
*/
|
|
937
|
+
function Concat(...text: string[]): string;
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* 获取现在时间
|
|
941
|
+
*
|
|
942
|
+
* @remarks
|
|
943
|
+
* 返回当前系统时间,通常与其他日期时间函数搭配使用
|
|
944
|
+
*
|
|
945
|
+
* @privateForWeDa
|
|
946
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}
|
|
947
|
+
*/
|
|
948
|
+
function Now(): number;
|
|
949
|
+
/**
|
|
950
|
+
* 获取时间戳
|
|
951
|
+
*
|
|
952
|
+
* @remarks
|
|
953
|
+
* 根据输入的日期时间返回时间戳
|
|
954
|
+
*
|
|
955
|
+
* @privateForWeDa
|
|
956
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}
|
|
957
|
+
*/
|
|
958
|
+
function Timestamp(arg: number | string | Date): number;
|
|
959
|
+
/**
|
|
960
|
+
* 获取秒数
|
|
961
|
+
*
|
|
962
|
+
* @remarks
|
|
963
|
+
* 根据输入的日期时间返回该时间的秒数
|
|
964
|
+
*
|
|
965
|
+
* @privateForWeDa
|
|
966
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}
|
|
967
|
+
*/
|
|
968
|
+
function Second(arg: number | string | Date): number;
|
|
969
|
+
/**
|
|
970
|
+
* 获取分钟数
|
|
971
|
+
*
|
|
972
|
+
* @remarks
|
|
973
|
+
* 根据输入的日期时间返回该时间的分钟部分
|
|
974
|
+
*
|
|
975
|
+
* @privateForWeDa
|
|
976
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}
|
|
977
|
+
*/
|
|
978
|
+
function Minute(arg: number | string | Date): number;
|
|
979
|
+
/**
|
|
980
|
+
* 获取小时数
|
|
981
|
+
*
|
|
982
|
+
* @remarks
|
|
983
|
+
* 根据输入的日期时间返回该时间的小时部分,24小时制
|
|
984
|
+
*
|
|
985
|
+
* @privateForWeDa
|
|
986
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}
|
|
987
|
+
*/
|
|
988
|
+
function Hour(arg: number | string | Date): number;
|
|
989
|
+
/**
|
|
990
|
+
* 获取天数
|
|
991
|
+
*
|
|
992
|
+
* @remarks
|
|
993
|
+
* 根据输入的日期时间返回该时间的日部分,范围为 1-31
|
|
994
|
+
*
|
|
995
|
+
* @privateForWeDa
|
|
996
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}
|
|
997
|
+
*/
|
|
998
|
+
function Day(arg: number | string | Date): number;
|
|
999
|
+
/**
|
|
1000
|
+
* 获取星期数
|
|
1001
|
+
*
|
|
1002
|
+
* @remarks
|
|
1003
|
+
* 根据输入的日期时间返回该时间的星期数
|
|
1004
|
+
*
|
|
1005
|
+
* @privateForWeDa
|
|
1006
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}
|
|
1007
|
+
*/
|
|
1008
|
+
function DayOfWeek(arg: number | string | Date): number;
|
|
1009
|
+
/**
|
|
1010
|
+
* 获取月数
|
|
1011
|
+
*
|
|
1012
|
+
* @remarks
|
|
1013
|
+
* 根据输入的日期时间返回该时间的月份
|
|
1014
|
+
*
|
|
1015
|
+
* @privateForWeDa
|
|
1016
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}
|
|
1017
|
+
*/
|
|
1018
|
+
function Month(arg: number | string | Date): number;
|
|
1019
|
+
/**
|
|
1020
|
+
* 获取年份
|
|
1021
|
+
*
|
|
1022
|
+
* @remarks
|
|
1023
|
+
* 根据输入的日期时间返回该时间的年份
|
|
1024
|
+
*
|
|
1025
|
+
* @privateForWeDa
|
|
1026
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}
|
|
1027
|
+
*/
|
|
1028
|
+
function Year(arg: number | string | Date): number;
|
|
1029
|
+
/**
|
|
1030
|
+
* 使用年月日创建日期时间
|
|
1031
|
+
*
|
|
1032
|
+
* @remarks
|
|
1033
|
+
* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)
|
|
1034
|
+
*
|
|
1035
|
+
* @privateForWeDa
|
|
1036
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}
|
|
1037
|
+
*/
|
|
1038
|
+
function GetDate(year: number, month: number, day: number): number;
|
|
1039
|
+
/**
|
|
1040
|
+
* 使用时间日期文本创建日期时间
|
|
1041
|
+
*
|
|
1042
|
+
* @remarks
|
|
1043
|
+
* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")
|
|
1044
|
+
*
|
|
1045
|
+
* @privateForWeDa
|
|
1046
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue('2021-12-11 01:19:12', 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateTimeValue(文本, 文本):日期时间"}
|
|
1047
|
+
*/
|
|
1048
|
+
function DateTimeValue(arg: string, val: string): number;
|
|
1049
|
+
/**
|
|
1050
|
+
* 计算年龄
|
|
1051
|
+
*
|
|
1052
|
+
* @remarks
|
|
1053
|
+
* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))
|
|
1054
|
+
*
|
|
1055
|
+
* @privateForWeDa
|
|
1056
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}
|
|
1057
|
+
*/
|
|
1058
|
+
function Age(arg: number | string | Date, val: number | string | Date): number;
|
|
1059
|
+
/**
|
|
1060
|
+
* 计算当前年龄
|
|
1061
|
+
*
|
|
1062
|
+
* @remarks
|
|
1063
|
+
* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))
|
|
1064
|
+
*
|
|
1065
|
+
* @privateForWeDa
|
|
1066
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}
|
|
1067
|
+
*/
|
|
1068
|
+
function AgeOfNow(arg: number | string | Date): number;
|
|
1069
|
+
/**
|
|
1070
|
+
* 增加 X 天
|
|
1071
|
+
*
|
|
1072
|
+
* @remarks
|
|
1073
|
+
* 在传入的日期时间上增加 X 天,支持负数
|
|
1074
|
+
*
|
|
1075
|
+
* @privateForWeDa
|
|
1076
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}
|
|
1077
|
+
*/
|
|
1078
|
+
function DateAdd(arg: number | string | Date, day: number): number;
|
|
1079
|
+
/**
|
|
1080
|
+
* 增加 X 月
|
|
1081
|
+
*
|
|
1082
|
+
* @remarks
|
|
1083
|
+
* 在传入的日期和时间上增加 X 月,支持负数
|
|
1084
|
+
*
|
|
1085
|
+
* @privateForWeDa
|
|
1086
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}
|
|
1087
|
+
*/
|
|
1088
|
+
function MonthAdd(arg: number | string | Date, month: number): number;
|
|
1089
|
+
/**
|
|
1090
|
+
* 增加 X 年
|
|
1091
|
+
*
|
|
1092
|
+
* @remarks
|
|
1093
|
+
* 在传入的日期和时间上增加 X 年,支持负数
|
|
1094
|
+
*
|
|
1095
|
+
* @privateForWeDa
|
|
1096
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}
|
|
1097
|
+
*/
|
|
1098
|
+
function YearAdd(arg: number | string | Date, year: number): number;
|
|
1099
|
+
/**
|
|
1100
|
+
* 天数差
|
|
1101
|
+
*
|
|
1102
|
+
* @remarks
|
|
1103
|
+
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1104
|
+
*
|
|
1105
|
+
* @privateForWeDa
|
|
1106
|
+
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}
|
|
1107
|
+
*/
|
|
1108
|
+
function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1109
|
+
/**
|
|
1110
|
+
* 小时差
|
|
1111
|
+
*
|
|
1112
|
+
* @remarks
|
|
1113
|
+
* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零
|
|
1114
|
+
*
|
|
1115
|
+
* @privateForWeDa
|
|
1116
|
+
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}
|
|
1117
|
+
*/
|
|
1118
|
+
function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1119
|
+
/**
|
|
1120
|
+
* 分钟差
|
|
1121
|
+
*
|
|
1122
|
+
* @remarks
|
|
1123
|
+
* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零
|
|
1124
|
+
*
|
|
1125
|
+
* @privateForWeDa
|
|
1126
|
+
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}
|
|
1127
|
+
*/
|
|
1128
|
+
function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1129
|
+
/**
|
|
1130
|
+
* 秒数差
|
|
1131
|
+
*
|
|
1132
|
+
* @remarks
|
|
1133
|
+
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1134
|
+
*
|
|
1135
|
+
* @privateForWeDa
|
|
1136
|
+
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}
|
|
1137
|
+
*/
|
|
1138
|
+
function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1139
|
+
/**
|
|
1140
|
+
* 月数差
|
|
1141
|
+
*
|
|
1142
|
+
* @remarks
|
|
1143
|
+
* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零
|
|
1144
|
+
*
|
|
1145
|
+
* @privateForWeDa
|
|
1146
|
+
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}
|
|
1147
|
+
*/
|
|
1148
|
+
function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1149
|
+
/**
|
|
1150
|
+
* 年数差
|
|
1151
|
+
*
|
|
1152
|
+
* @remarks
|
|
1153
|
+
* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零
|
|
1154
|
+
*
|
|
1155
|
+
* @privateForWeDa
|
|
1156
|
+
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}
|
|
1157
|
+
*/
|
|
1158
|
+
function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1159
|
+
/**
|
|
1160
|
+
* 日期时间格式化
|
|
1161
|
+
*
|
|
1162
|
+
* @remarks
|
|
1163
|
+
* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")
|
|
1164
|
+
*
|
|
1165
|
+
* @privateForWeDa
|
|
1166
|
+
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateText(日期时间, 文本):文本"}
|
|
1167
|
+
*/
|
|
1168
|
+
function DateText(createdTime: number | string | Date, text: string): string;
|
|
1169
|
+
/**
|
|
1170
|
+
* 时间格式化
|
|
1171
|
+
*
|
|
1172
|
+
* @remarks
|
|
1173
|
+
* 格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, "HH:mm")
|
|
1174
|
+
*
|
|
1175
|
+
* @privateForWeDa
|
|
1176
|
+
* {"group": "formula", "displayType": "function", "displayName": "时间格式化", "insertText": "TimeText(28800000, 'HH:mm')", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils#.E6.97.B6.E9.97.B4.E6.97.A5.E6.9C.9F" , "description": "格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, 'HH:mm')" , "definition": "TimeText(时间, 文本):文本"}
|
|
1177
|
+
*/
|
|
1178
|
+
function TimeText(createdTime: number, text: string): string;
|
|
1179
|
+
/**
|
|
1180
|
+
* 是否为今天
|
|
1181
|
+
*
|
|
1182
|
+
* @remarks
|
|
1183
|
+
* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))
|
|
1184
|
+
*
|
|
1185
|
+
* @privateForWeDa
|
|
1186
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}
|
|
1187
|
+
*/
|
|
1188
|
+
function IsToday(date: number | string | Date): boolean;
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
// used widgets Inner Begin
|
|
1192
|
+
// used widgets - Don't touch me
|
|
1193
|
+
// used widgets Inner End
|
|
1194
|
+
|
|
1195
|
+
// repeater scope Inner Begin
|
|
1196
|
+
// repeater scope - Don't touch me
|
|
1197
|
+
// repeater scope Inner End
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
// 为了 $w.xxx 不报错
|
|
1201
|
+
declare const $w: typeof __w__ & {
|
|
1202
|
+
[key: string]: any;
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
// Global For Begin
|
|
1206
|
+
declare const $for: {
|
|
1207
|
+
// Global For Inner Begin
|
|
1208
|
+
// For 循环变量 - Don't touch me
|
|
1209
|
+
// Global For Inner End
|
|
1210
|
+
};
|
|
1211
|
+
declare const forItems = $for;
|
|
1212
|
+
// Global For End
|
|
1213
|
+
|
|
1214
|
+
// $page Begin
|
|
1215
|
+
declare namespace $page {
|
|
1216
|
+
/**
|
|
1217
|
+
* 页面 ID
|
|
1218
|
+
*
|
|
1219
|
+
* @privateForWeDa
|
|
1220
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "页面 ID"}
|
|
1221
|
+
*/
|
|
1222
|
+
const id: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* 页面名称
|
|
1225
|
+
*
|
|
1226
|
+
* @privateForWeDa
|
|
1227
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "页面名称"}
|
|
1228
|
+
*/
|
|
1229
|
+
const label: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* 页面路径
|
|
1232
|
+
*
|
|
1233
|
+
* @privateForWeDa
|
|
1234
|
+
* {"group": "sysVar", "displayType": "string", "displayName": "页面路径"}
|
|
1235
|
+
*/
|
|
1236
|
+
const path: string;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* 页面数据对象
|
|
1240
|
+
*/
|
|
1241
|
+
namespace dataset {
|
|
1242
|
+
/**
|
|
1243
|
+
* 页面变量
|
|
1244
|
+
*/
|
|
1245
|
+
const state: {
|
|
1246
|
+
// Page State Inner Begin
|
|
1247
|
+
// Page State 页面变量 - Don't touch me
|
|
1248
|
+
// Page State Inner End
|
|
1249
|
+
};
|
|
1250
|
+
/**
|
|
1251
|
+
* 页面参数
|
|
1252
|
+
*/
|
|
1253
|
+
const params: {
|
|
1254
|
+
// Page Param Inner Begin
|
|
1255
|
+
// Page Param 页面参数 - Don't touch me
|
|
1256
|
+
// Page Param Inner End
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* 页面定义 handler 方法
|
|
1262
|
+
*/
|
|
1263
|
+
namespace handler {
|
|
1264
|
+
// Page Handler Inner Begin
|
|
1265
|
+
// Page Handler 页面方法 - Don't touch me
|
|
1266
|
+
// Page Handler Inner End
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* 设置页面变量
|
|
1271
|
+
*/
|
|
1272
|
+
function setState(userSetState: Record<string, any>): void;
|
|
1273
|
+
|
|
1274
|
+
}
|
|
1275
|
+
// $page End
|
|
1276
|
+
|
|
1277
|
+
// $comp Begin
|
|
1278
|
+
declare namespace $comp {
|
|
1279
|
+
namespace props {
|
|
1280
|
+
const data: {
|
|
1281
|
+
// Comp Prop Data Inner Begin
|
|
1282
|
+
// Comp Prop Data 组件属性 - Don't touch me
|
|
1283
|
+
// Comp Prop Data Inner End
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
namespace events {
|
|
1287
|
+
// Comp Prop Events Inner Begin
|
|
1288
|
+
// Comp Prop Events 组件事件 - Don't touch me
|
|
1289
|
+
// Comp Prop Events Inner End
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
namespace dataset {
|
|
1294
|
+
const state: {
|
|
1295
|
+
// Comp State Inner Begin
|
|
1296
|
+
// Comp State 组件变量 - Don't touch me
|
|
1297
|
+
// Comp State Inner End
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
namespace handler {
|
|
1302
|
+
// Comp Handler Inner Begin
|
|
1303
|
+
// Comp Handler 组件方法 - Don't touch me
|
|
1304
|
+
// Comp Handler Inner End
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
// $comp End
|
|
1308
|
+
|
|
1309
|
+
// Global Formula Begin
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* 绝对值
|
|
1313
|
+
*
|
|
1314
|
+
* @remarks
|
|
1315
|
+
* 计算传入数字的绝对值
|
|
1316
|
+
*
|
|
1317
|
+
* @privateForWeDa
|
|
1318
|
+
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}
|
|
1319
|
+
*/
|
|
1320
|
+
declare function ABS(num: number): number;
|
|
1321
|
+
/**
|
|
1322
|
+
* 最小值
|
|
1323
|
+
*
|
|
1324
|
+
* @remarks
|
|
1325
|
+
* 返回一组数字中的最小值
|
|
1326
|
+
*
|
|
1327
|
+
* @privateForWeDa
|
|
1328
|
+
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}
|
|
1329
|
+
*/
|
|
1330
|
+
declare function Min(...args: number[]): number;
|
|
1331
|
+
/**
|
|
1332
|
+
* 最大值
|
|
1333
|
+
*
|
|
1334
|
+
* @remarks
|
|
1335
|
+
* 返回一组数字中的最大值
|
|
1336
|
+
*
|
|
1337
|
+
* @privateForWeDa
|
|
1338
|
+
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}
|
|
1339
|
+
*/
|
|
1340
|
+
declare function Max(...args: number[]): number;
|
|
1341
|
+
/**
|
|
1342
|
+
* 平均值
|
|
1343
|
+
*
|
|
1344
|
+
* @remarks
|
|
1345
|
+
* 返回一组数字中的平均值
|
|
1346
|
+
*
|
|
1347
|
+
* @privateForWeDa
|
|
1348
|
+
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}
|
|
1349
|
+
*/
|
|
1350
|
+
declare function Average(...args: number[]): number;
|
|
1351
|
+
/**
|
|
1352
|
+
* 向下取整
|
|
1353
|
+
*
|
|
1354
|
+
* @remarks
|
|
1355
|
+
* 返回传入数字向下取整的结果
|
|
1356
|
+
*
|
|
1357
|
+
* @privateForWeDa
|
|
1358
|
+
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}
|
|
1359
|
+
*/
|
|
1360
|
+
declare function Floor(num: number): number;
|
|
1361
|
+
/**
|
|
1362
|
+
* 向上取整
|
|
1363
|
+
*
|
|
1364
|
+
* @remarks
|
|
1365
|
+
* 返回传入数字向上取整的结果
|
|
1366
|
+
*
|
|
1367
|
+
* @privateForWeDa
|
|
1368
|
+
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}
|
|
1369
|
+
*/
|
|
1370
|
+
declare function Ceiling(num: number): number;
|
|
1371
|
+
/**
|
|
1372
|
+
* 四舍五入
|
|
1373
|
+
*
|
|
1374
|
+
* @remarks
|
|
1375
|
+
* 返回传入数字四舍五入后的结果
|
|
1376
|
+
*
|
|
1377
|
+
* @privateForWeDa
|
|
1378
|
+
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}
|
|
1379
|
+
*/
|
|
1380
|
+
declare function Round(num: number): number;
|
|
1381
|
+
/**
|
|
1382
|
+
* 求和
|
|
1383
|
+
*
|
|
1384
|
+
* @remarks
|
|
1385
|
+
* 返回一组数字中的和
|
|
1386
|
+
*
|
|
1387
|
+
* @privateForWeDa
|
|
1388
|
+
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}
|
|
1389
|
+
*/
|
|
1390
|
+
declare function Sum(...args: number[]): number;
|
|
1391
|
+
/**
|
|
1392
|
+
* 随机数
|
|
1393
|
+
*
|
|
1394
|
+
* @remarks
|
|
1395
|
+
* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数
|
|
1396
|
+
*
|
|
1397
|
+
* @privateForWeDa
|
|
1398
|
+
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}
|
|
1399
|
+
*/
|
|
1400
|
+
declare function Rand(num: number): number;
|
|
1401
|
+
|
|
1402
|
+
declare interface IIfObjectParam {
|
|
1403
|
+
condition: boolean;
|
|
1404
|
+
consequent?: any;
|
|
1405
|
+
alternate?: any;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* 条件分支
|
|
1409
|
+
*
|
|
1410
|
+
* @remarks
|
|
1411
|
+
* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。
|
|
1412
|
+
*
|
|
1413
|
+
* @privateForWeDa
|
|
1414
|
+
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}
|
|
1415
|
+
*/
|
|
1416
|
+
declare function If(params: IIfObjectParam): any;
|
|
1417
|
+
declare function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
1418
|
+
/**
|
|
1419
|
+
* 是否为空
|
|
1420
|
+
*
|
|
1421
|
+
* @remarks
|
|
1422
|
+
* 判断传入的文本是否为空
|
|
1423
|
+
*
|
|
1424
|
+
* @privateForWeDa
|
|
1425
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}
|
|
1426
|
+
*/
|
|
1427
|
+
declare function IsEmpty(text: string | string[]): boolean;
|
|
1428
|
+
/**
|
|
1429
|
+
* 与
|
|
1430
|
+
*
|
|
1431
|
+
* @remarks
|
|
1432
|
+
* 用于确定所有判断条件是否为真
|
|
1433
|
+
*
|
|
1434
|
+
* @privateForWeDa
|
|
1435
|
+
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}
|
|
1436
|
+
*/
|
|
1437
|
+
declare function And(...args: boolean[]): boolean;
|
|
1438
|
+
/**
|
|
1439
|
+
* 或
|
|
1440
|
+
*
|
|
1441
|
+
* @remarks
|
|
1442
|
+
* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否
|
|
1443
|
+
*
|
|
1444
|
+
* @privateForWeDa
|
|
1445
|
+
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}
|
|
1446
|
+
*/
|
|
1447
|
+
declare function Or(...args: boolean[]): boolean;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* 获取文本长度
|
|
1451
|
+
*
|
|
1452
|
+
* @remarks
|
|
1453
|
+
* 获取传入文本的字符数
|
|
1454
|
+
*
|
|
1455
|
+
* @privateForWeDa
|
|
1456
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}
|
|
1457
|
+
*/
|
|
1458
|
+
declare function Len(text: string): number;
|
|
1459
|
+
/**
|
|
1460
|
+
* 是否包含指定文本
|
|
1461
|
+
*
|
|
1462
|
+
* @remarks
|
|
1463
|
+
* 判断文本 1 是否包含文本 2
|
|
1464
|
+
*
|
|
1465
|
+
* @privateForWeDa
|
|
1466
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}
|
|
1467
|
+
*/
|
|
1468
|
+
declare function Contains(text1: string, text2: string): boolean;
|
|
1469
|
+
/**
|
|
1470
|
+
* 拆分文本
|
|
1471
|
+
*
|
|
1472
|
+
* @remarks
|
|
1473
|
+
* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")
|
|
1474
|
+
*
|
|
1475
|
+
* @privateForWeDa
|
|
1476
|
+
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split('张三,李四,王五', ',')" , "definition": "Split(文本1,文本2):文本数组"}
|
|
1477
|
+
*/
|
|
1478
|
+
declare function Split(text1: string, text2: string): string[];
|
|
1479
|
+
/**
|
|
1480
|
+
* 删除开头/结尾空格和制表符
|
|
1481
|
+
*
|
|
1482
|
+
* @remarks
|
|
1483
|
+
* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除
|
|
1484
|
+
*
|
|
1485
|
+
* @privateForWeDa
|
|
1486
|
+
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}
|
|
1487
|
+
*/
|
|
1488
|
+
declare function Trim(text: string): string;
|
|
1489
|
+
/**
|
|
1490
|
+
* 转换为大写
|
|
1491
|
+
*
|
|
1492
|
+
* @remarks
|
|
1493
|
+
* 将传入的文本转为全大写文本
|
|
1494
|
+
*
|
|
1495
|
+
* @privateForWeDa
|
|
1496
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}
|
|
1497
|
+
*/
|
|
1498
|
+
declare function Upper(text: string): string;
|
|
1499
|
+
/**
|
|
1500
|
+
* 转换为小写
|
|
1501
|
+
*
|
|
1502
|
+
* @remarks
|
|
1503
|
+
* 将传入的文本转为全小写文本
|
|
1504
|
+
*
|
|
1505
|
+
* @privateForWeDa
|
|
1506
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}
|
|
1507
|
+
*/
|
|
1508
|
+
declare function Lower(text: string): string;
|
|
1509
|
+
/**
|
|
1510
|
+
* 文本拼接
|
|
1511
|
+
*
|
|
1512
|
+
* @remarks
|
|
1513
|
+
* 返回多个文本拼接后的新文本
|
|
1514
|
+
*
|
|
1515
|
+
* @privateForWeDa
|
|
1516
|
+
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}
|
|
1517
|
+
*/
|
|
1518
|
+
declare function Concat(...text: string[]): string;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* 获取现在时间
|
|
1522
|
+
*
|
|
1523
|
+
* @remarks
|
|
1524
|
+
* 返回当前系统时间,通常与其他日期时间函数搭配使用
|
|
1525
|
+
*
|
|
1526
|
+
* @privateForWeDa
|
|
1527
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}
|
|
1528
|
+
*/
|
|
1529
|
+
declare function Now(): number;
|
|
1530
|
+
/**
|
|
1531
|
+
* 获取时间戳
|
|
1532
|
+
*
|
|
1533
|
+
* @remarks
|
|
1534
|
+
* 根据输入的日期时间返回时间戳
|
|
1535
|
+
*
|
|
1536
|
+
* @privateForWeDa
|
|
1537
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}
|
|
1538
|
+
*/
|
|
1539
|
+
declare function Timestamp(arg: number | string | Date): number;
|
|
1540
|
+
/**
|
|
1541
|
+
* 获取秒数
|
|
1542
|
+
*
|
|
1543
|
+
* @remarks
|
|
1544
|
+
* 根据输入的日期时间返回该时间的秒数
|
|
1545
|
+
*
|
|
1546
|
+
* @privateForWeDa
|
|
1547
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}
|
|
1548
|
+
*/
|
|
1549
|
+
declare function Second(arg: number | string | Date): number;
|
|
1550
|
+
/**
|
|
1551
|
+
* 获取分钟数
|
|
1552
|
+
*
|
|
1553
|
+
* @remarks
|
|
1554
|
+
* 根据输入的日期时间返回该时间的分钟部分
|
|
1555
|
+
*
|
|
1556
|
+
* @privateForWeDa
|
|
1557
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}
|
|
1558
|
+
*/
|
|
1559
|
+
declare function Minute(arg: number | string | Date): number;
|
|
1560
|
+
/**
|
|
1561
|
+
* 获取小时数
|
|
1562
|
+
*
|
|
1563
|
+
* @remarks
|
|
1564
|
+
* 根据输入的日期时间返回该时间的小时部分,24小时制
|
|
1565
|
+
*
|
|
1566
|
+
* @privateForWeDa
|
|
1567
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}
|
|
1568
|
+
*/
|
|
1569
|
+
declare function Hour(arg: number | string | Date): number;
|
|
1570
|
+
/**
|
|
1571
|
+
* 获取天数
|
|
1572
|
+
*
|
|
1573
|
+
* @remarks
|
|
1574
|
+
* 根据输入的日期时间返回该时间的日部分,范围为 1-31
|
|
1575
|
+
*
|
|
1576
|
+
* @privateForWeDa
|
|
1577
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}
|
|
1578
|
+
*/
|
|
1579
|
+
declare function Day(arg: number | string | Date): number;
|
|
1580
|
+
/**
|
|
1581
|
+
* 获取星期数
|
|
1582
|
+
*
|
|
1583
|
+
* @remarks
|
|
1584
|
+
* 根据输入的日期时间返回该时间的星期数
|
|
1585
|
+
*
|
|
1586
|
+
* @privateForWeDa
|
|
1587
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}
|
|
1588
|
+
*/
|
|
1589
|
+
declare function DayOfWeek(arg: number | string | Date): number;
|
|
1590
|
+
/**
|
|
1591
|
+
* 获取月数
|
|
1592
|
+
*
|
|
1593
|
+
* @remarks
|
|
1594
|
+
* 根据输入的日期时间返回该时间的月份
|
|
1595
|
+
*
|
|
1596
|
+
* @privateForWeDa
|
|
1597
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}
|
|
1598
|
+
*/
|
|
1599
|
+
declare function Month(arg: number | string | Date): number;
|
|
1600
|
+
/**
|
|
1601
|
+
* 获取年份
|
|
1602
|
+
*
|
|
1603
|
+
* @remarks
|
|
1604
|
+
* 根据输入的日期时间返回该时间的年份
|
|
1605
|
+
*
|
|
1606
|
+
* @privateForWeDa
|
|
1607
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}
|
|
1608
|
+
*/
|
|
1609
|
+
declare function Year(arg: number | string | Date): number;
|
|
1610
|
+
/**
|
|
1611
|
+
* 使用年月日创建日期时间
|
|
1612
|
+
*
|
|
1613
|
+
* @remarks
|
|
1614
|
+
* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)
|
|
1615
|
+
*
|
|
1616
|
+
* @privateForWeDa
|
|
1617
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}
|
|
1618
|
+
*/
|
|
1619
|
+
declare function GetDate(year: number, month: number, day: number): number;
|
|
1620
|
+
/**
|
|
1621
|
+
* 使用时间日期文本创建日期时间
|
|
1622
|
+
*
|
|
1623
|
+
* @remarks
|
|
1624
|
+
* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")
|
|
1625
|
+
*
|
|
1626
|
+
* @privateForWeDa
|
|
1627
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue('2021-12-11 01:19:12', 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateTimeValue(文本, 文本):日期时间"}
|
|
1628
|
+
*/
|
|
1629
|
+
declare function DateTimeValue(arg: string, val: string): number;
|
|
1630
|
+
/**
|
|
1631
|
+
* 计算年龄
|
|
1632
|
+
*
|
|
1633
|
+
* @remarks
|
|
1634
|
+
* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))
|
|
1635
|
+
*
|
|
1636
|
+
* @privateForWeDa
|
|
1637
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}
|
|
1638
|
+
*/
|
|
1639
|
+
declare function Age(arg: number | string | Date, val: number | string | Date): number;
|
|
1640
|
+
/**
|
|
1641
|
+
* 计算当前年龄
|
|
1642
|
+
*
|
|
1643
|
+
* @remarks
|
|
1644
|
+
* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))
|
|
1645
|
+
*
|
|
1646
|
+
* @privateForWeDa
|
|
1647
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}
|
|
1648
|
+
*/
|
|
1649
|
+
declare function AgeOfNow(arg: number | string | Date): number;
|
|
1650
|
+
/**
|
|
1651
|
+
* 增加 X 天
|
|
1652
|
+
*
|
|
1653
|
+
* @remarks
|
|
1654
|
+
* 在传入的日期时间上增加 X 天,支持负数
|
|
1655
|
+
*
|
|
1656
|
+
* @privateForWeDa
|
|
1657
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}
|
|
1658
|
+
*/
|
|
1659
|
+
declare function DateAdd(arg: number | string | Date, day: number): number;
|
|
1660
|
+
/**
|
|
1661
|
+
* 增加 X 月
|
|
1662
|
+
*
|
|
1663
|
+
* @remarks
|
|
1664
|
+
* 在传入的日期和时间上增加 X 月,支持负数
|
|
1665
|
+
*
|
|
1666
|
+
* @privateForWeDa
|
|
1667
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}
|
|
1668
|
+
*/
|
|
1669
|
+
declare function MonthAdd(arg: number | string | Date, month: number): number;
|
|
1670
|
+
/**
|
|
1671
|
+
* 增加 X 年
|
|
1672
|
+
*
|
|
1673
|
+
* @remarks
|
|
1674
|
+
* 在传入的日期和时间上增加 X 年,支持负数
|
|
1675
|
+
*
|
|
1676
|
+
* @privateForWeDa
|
|
1677
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}
|
|
1678
|
+
*/
|
|
1679
|
+
declare function YearAdd(arg: number | string | Date, year: number): number;
|
|
1680
|
+
/**
|
|
1681
|
+
* 天数差
|
|
1682
|
+
*
|
|
1683
|
+
* @remarks
|
|
1684
|
+
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1685
|
+
*
|
|
1686
|
+
* @privateForWeDa
|
|
1687
|
+
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}
|
|
1688
|
+
*/
|
|
1689
|
+
declare function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1690
|
+
/**
|
|
1691
|
+
* 小时差
|
|
1692
|
+
*
|
|
1693
|
+
* @remarks
|
|
1694
|
+
* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零
|
|
1695
|
+
*
|
|
1696
|
+
* @privateForWeDa
|
|
1697
|
+
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}
|
|
1698
|
+
*/
|
|
1699
|
+
declare function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1700
|
+
/**
|
|
1701
|
+
* 分钟差
|
|
1702
|
+
*
|
|
1703
|
+
* @remarks
|
|
1704
|
+
* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零
|
|
1705
|
+
*
|
|
1706
|
+
* @privateForWeDa
|
|
1707
|
+
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}
|
|
1708
|
+
*/
|
|
1709
|
+
declare function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1710
|
+
/**
|
|
1711
|
+
* 秒数差
|
|
1712
|
+
*
|
|
1713
|
+
* @remarks
|
|
1714
|
+
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1715
|
+
*
|
|
1716
|
+
* @privateForWeDa
|
|
1717
|
+
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}
|
|
1718
|
+
*/
|
|
1719
|
+
declare function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1720
|
+
/**
|
|
1721
|
+
* 月数差
|
|
1722
|
+
*
|
|
1723
|
+
* @remarks
|
|
1724
|
+
* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零
|
|
1725
|
+
*
|
|
1726
|
+
* @privateForWeDa
|
|
1727
|
+
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}
|
|
1728
|
+
*/
|
|
1729
|
+
declare function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1730
|
+
/**
|
|
1731
|
+
* 年数差
|
|
1732
|
+
*
|
|
1733
|
+
* @remarks
|
|
1734
|
+
* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零
|
|
1735
|
+
*
|
|
1736
|
+
* @privateForWeDa
|
|
1737
|
+
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}
|
|
1738
|
+
*/
|
|
1739
|
+
declare function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1740
|
+
/**
|
|
1741
|
+
* 日期时间格式化
|
|
1742
|
+
*
|
|
1743
|
+
* @remarks
|
|
1744
|
+
* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")
|
|
1745
|
+
*
|
|
1746
|
+
* @privateForWeDa
|
|
1747
|
+
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateText(日期时间, 文本):文本"}
|
|
1748
|
+
*/
|
|
1749
|
+
declare function DateText(createdTime: number | string | Date, text: string): string;
|
|
1750
|
+
/**
|
|
1751
|
+
* 时间格式化
|
|
1752
|
+
*
|
|
1753
|
+
* @remarks
|
|
1754
|
+
* 格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, "HH:mm")
|
|
1755
|
+
*
|
|
1756
|
+
* @privateForWeDa
|
|
1757
|
+
* {"group": "formula", "displayType": "function", "displayName": "时间格式化", "insertText": "TimeText(28800000, 'HH:mm')", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils#.E6.97.B6.E9.97.B4.E6.97.A5.E6.9C.9F" , "description": "格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, 'HH:mm')" , "definition": "TimeText(时间, 文本):文本"}
|
|
1758
|
+
*/
|
|
1759
|
+
declare function TimeText(createdTime: number, text: string): string;
|
|
1760
|
+
/**
|
|
1761
|
+
* 是否为今天
|
|
1762
|
+
*
|
|
1763
|
+
* @remarks
|
|
1764
|
+
* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))
|
|
1765
|
+
*
|
|
1766
|
+
* @privateForWeDa
|
|
1767
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}
|
|
1768
|
+
*/
|
|
1769
|
+
declare function IsToday(date: number | string | Date): boolean;
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
// Global Formula End
|
|
1773
|
+
|
|
1774
|
+
// event 支持 detail 等对象
|
|
1775
|
+
interface Event {
|
|
1776
|
+
detail: any;
|
|
1777
|
+
}
|
|
1778
|
+
let event: Event | undefined;
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* wx API
|
|
1782
|
+
*/
|
|
1783
|
+
const wx: any;
|
|
1784
|
+
|
|
1785
|
+
declare namespace SERVER {
|
|
1786
|
+
// Server side state Inner Begin
|
|
1787
|
+
// Server side state - Don't touch me
|
|
1788
|
+
// Server side state Inner End
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
let params: any;
|
|
1792
|
+
|
|
1793
|
+
// DTS String Inner Begin
|
|
1794
|
+
// DTS String - Don't touch me
|
|
1795
|
+
// DTS String Inner End
|
|
1796
|
+
`;
|