@farris/jit-engine 1.4.101 → 1.4.102

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/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.4.102
2
+
3
+ 富文本支持批量上传图片
4
+
1
5
  1.4.101
2
6
 
3
7
  移动端附件支持为照片添加文本水印
@@ -16,23 +16,22 @@ class RichTextBox extends input_field_1.InputField {
16
16
  if (!obj) {
17
17
  return;
18
18
  }
19
- const keys = 'id,type,format,theme,customToolbarPosition,onEditorCreated,onContentChanged,onSelectionChanged,onFocus,onBlur,customEditorStyle,customToolbar,toolbar,limitImageSize,maxImgSize';
19
+ const keys = `id,type,format,theme,customToolbarPosition,onEditorCreated,onContentChanged,onSelectionChanged,onFocus,onBlur,
20
+ customEditorStyle,customToolbar,toolbar,limitImageSize,maxImgSize,multipleUpload`;
20
21
  Object.keys(obj).forEach(key => {
21
22
  if (keys.includes(key)) {
22
23
  if (key == "onEditorCreated" || key == "onContentChanged" || key == "onSelectionChanged" || key == "onFocus" || key == "onBlur") {
23
24
  this[key] = obj[key];
24
25
  }
25
- else if (key == "customToolbar") {
26
- this.customToolbar = utility_1.ToolHelper.createBinding(obj[key], false, this.externalComponentNameSpace, this.id);
27
- }
28
- else if (key == "limitImageSize") {
29
- this.limitImageSize = utility_1.ToolHelper.createBinding(obj[key], false, this.externalComponentNameSpace, this.id);
26
+ else if (key == "customToolbar" || key == "limitImageSize") {
27
+ this[key] = utility_1.ToolHelper.createBinding(obj[key], false, this.externalComponentNameSpace, this.id);
30
28
  }
31
29
  else {
32
30
  this[key] = obj[key];
33
31
  }
34
32
  }
35
33
  });
34
+ this.multipleUpload = utility_1.ToolHelper.createBinding(obj['multipleUpload'], false, this.externalComponentNameSpace, this.id);
36
35
  if (!this.limitImageSize) {
37
36
  this.maxImgSize = null;
38
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rich-textbox.js","sourceRoot":"","sources":["../../../../../../src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AAK,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE;gBACnE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;aAChC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,aAAa,EAAE,EAAE,WAAW,CAAC,CAAC;IACjE,CAAC;CACJ;AArFD,kCAqFC"}
@@ -39,7 +39,8 @@ div(class=(variable.appearance && variable.appearance.class) style=(variable.app
39
39
  if(variable.focusState)
40
40
  -attrs["[focusState]"]=variable.focusState+"";
41
41
  farris-html-editor(id=variable.replacedId "html-editor-end-edit" class="form-control" "htmlEditorRef" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined '[value]'=variable.value?variable.value:undefined '[format]'=variable.format?"'"+variable.format+"'":undefined '[theme]'=variable.theme?"'"+variable.theme+"'":undefined '[maxLength]'=variable.maxLength?"'"+variable.maxLength+"'":undefined '[minLength]'=variable.minLength?"'"+variable.minLength+"'":undefined '[required]'=variable.require?""+variable.require.value:undefined '[customToolbarPosition]'=variable.customToolbarPosition?"'"+variable.customToolbarPosition+"'":undefined '(onEditorCreated)'=variable.onEditorCreated?variable.onEditorCreated+"(param)":undefined '(onContentChanged)'=variable.onContentChanged?variable.onContentChanged+"(param)":undefined '(onSelectionChanged)'=variable.onSelectionChanged?variable.onSelectionChanged+"":undefined '(onFocus)'=variable.onFocus?variable.onFocus+"(param)":undefined '(onBlur)'=variable.onBlur?variable.onBlur+"(param)":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[styles]'=variable.customEditorStyle?""+variable.customEditorStyle:undefined '[showBorder]'=(variable.isTextArea ||variable.isTextArea==false)?""+variable.isTextArea:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined '[customToolbar]'=variable.customToolbar?""+variable.customToolbar.value:undefined '[toolbar]'=variable.toolbar?variable.toolbar:undefined '[maxHeight]'=(variable.maxHeight||variable.maxHeight==0)?""+variable.maxHeight:undefined
42
- '[limitImageSize]'=variable.limitImageSize?""+variable.limitImageSize.value:undefined '[maxImgSize]'=variable.maxImgSize?""+variable.maxImgSize:undefined
42
+ '[limitImageSize]'=variable.limitImageSize?""+variable.limitImageSize.value:undefined '[maxImgSize]'=variable.maxImgSize?""+variable.maxImgSize:undefined
43
+ '[multipleUpload]'=variable.multipleUpload?""+variable.multipleUpload.value:undefined
43
44
  )&attributes(attrs)
44
45
  if (variable.needValid && variable.binding && variable.binding.path)
45
46
  -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
@@ -20,7 +20,7 @@ div(class="farris-input-wrap")
20
20
  -attrs["[focusState]"]=variable.focusState+"";
21
21
  farris-html-editor(id=variable.replacedId "html-editor-end-edit" class="form-control" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined '[value]'=variable.value?variable.value:undefined '[format]'=variable.format?"'"+variable.format+"'":undefined '[theme]'=variable.theme?"'"+variable.theme+"'":undefined '[maxLength]'=variable.maxLength?"'"+variable.maxLength+"'":undefined '[minLength]'=variable.minLength?"'"+variable.minLength+"'":undefined '[required]'=variable.require?""+variable.require.value:undefined '[customToolbarPosition]'=variable.customToolbarPosition?"'"+variable.customToolbarPosition+"'":undefined '(onEditorCreated)'=variable.onEditorCreated?variable.onEditorCreated+"(param)":undefined '(onContentChanged)'=variable.onContentChanged?variable.onContentChanged+"(param)":undefined '(onSelectionChanged)'=variable.onSelectionChanged?variable.onSelectionChanged+"":undefined '(onFocus)'=variable.onFocus?variable.onFocus+"(param)":undefined '(onBlur)'=variable.onBlur?variable.onBlur+"(param)":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[styles]'=variable.customEditorStyle?""+variable.customEditorStyle:undefined '[showBorder]'=(variable.isTextArea ||variable.isTextArea==false)?""+variable.isTextArea:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
22
22
  '[limitImageSize]'=variable.limitImageSize?""+variable.limitImageSize.value:undefined '[maxImgSize]'=variable.maxImgSize?""+variable.maxImgSize:undefined
23
- )&attributes(attrs)
23
+ '[multipleUpload]'=variable.multipleUpload?""+variable.multipleUpload.value:undefined)&attributes(attrs)
24
24
  div(class="farris-feedback")
25
25
  if(variable.titleTipsTemplate)
26
26
  span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
package/package.json CHANGED
@@ -1,86 +1,57 @@
1
- {
2
- "_from": "@farris/jit-engine",
3
- "_id": "@farris/jit-engine@1.4.101",
4
- "_inBundle": false,
5
- "_integrity": "sha512-ygJuuEErt4Osk0ogq3tn7mmVl4fpGnShwcmVRGkNvbAb4F92FYdOC5aUJGis3NReubsdFQ34JSkawl2KqvLABQ==",
6
- "_location": "/@farris/jit-engine",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "tag",
10
- "registry": true,
11
- "raw": "@farris/jit-engine",
12
- "name": "@farris/jit-engine",
13
- "escapedName": "@farris%2fjit-engine",
14
- "scope": "@farris",
15
- "rawSpec": "",
16
- "saveSpec": null,
17
- "fetchSpec": "latest"
18
- },
19
- "_requiredBy": [
20
- "#USER",
21
- "/"
22
- ],
23
- "_resolved": "https://registry.npmjs.org/@farris/jit-engine/-/jit-engine-1.4.101.tgz",
24
- "_shasum": "ef58350b80d4d0e7f7af2067cc9e612ec00f5d25",
25
- "_spec": "@farris/jit-engine",
26
- "_where": "D:\\Downloads\\npm",
27
- "author": {
28
- "name": "Noah"
29
- },
30
- "bin": {
31
- "jit": "bin/index.js"
32
- },
33
- "bundleDependencies": false,
34
- "dependencies": {
35
- "fs-extra": "^8.1.0",
36
- "lodash": "^4.17.10",
37
- "prettier": "^1.18.2",
38
- "pug": "^2.0.0-rc.4",
39
- "read-package-tree": "^5.3.1",
40
- "typescript-ioc": "^1.2.4",
41
- "yargs": "^12.0.1"
42
- },
43
- "deprecated": false,
44
- "description": "1.4.98",
45
- "devDependencies": {
46
- "@types/fs-extra": "^8.1.1",
47
- "@types/jest": "24.0.15",
48
- "@types/lodash": "^4.14.91",
49
- "@types/node": "^12.6.1",
50
- "@types/prettier": "^1.18.0",
51
- "@types/pug": "^2.0.4",
52
- "@types/yargs": "^11.1.1",
53
- "jest": "^24.8.0",
54
- "ts-jest": "^24.0.2",
55
- "ts-node": "^8.3.0",
56
- "tslint": "^5.18.0",
57
- "typescript": "^3.5.3"
58
- },
59
- "engines": {
60
- "node": ">= 6.9.0",
61
- "npm": ">= 3.0.0"
62
- },
63
- "files": [
64
- "lib/",
65
- "bin/",
66
- "ioc.config"
67
- ],
68
- "keywords": [
69
- "jit",
70
- "engine",
71
- "jit-engine"
72
- ],
73
- "license": "ISC",
74
- "main": "./lib/index.js",
75
- "name": "@farris/jit-engine",
76
- "scripts": {
77
- "build": "npm run build-ts && npm run copy-static-assets",
78
- "build-q": "npm run build-ts",
79
- "build-ts": "tsc",
80
- "copy-static-assets": "ts-node copyStaticAssets.ts",
81
- "test": "jest --coverage ",
82
- "tslint": "tslint -c tslint.json -p tsconfig.json",
83
- "watch-test": "npm run test --watchAll"
84
- },
85
- "version": "1.4.101"
1
+ {
2
+ "name": "@farris/jit-engine",
3
+ "version": "1.4.102",
4
+ "description": "",
5
+ "main": "./lib/index.js",
6
+ "bin": {
7
+ "jit": "./bin/index.js"
8
+ },
9
+ "engines": {
10
+ "node": ">= 6.9.0",
11
+ "npm": ">= 3.0.0"
12
+ },
13
+ "files": [
14
+ "lib/",
15
+ "bin/",
16
+ "ioc.config"
17
+ ],
18
+ "scripts": {
19
+ "build": "npm run build-ts && npm run copy-static-assets",
20
+ "build-q": "npm run build-ts",
21
+ "test": "jest --coverage ",
22
+ "watch-test": "npm run test --watchAll",
23
+ "build-ts": "tsc",
24
+ "tslint": "tslint -c tslint.json -p tsconfig.json",
25
+ "copy-static-assets": "ts-node copyStaticAssets.ts"
26
+ },
27
+ "keywords": [
28
+ "jit",
29
+ "engine",
30
+ "jit-engine"
31
+ ],
32
+ "author": "Noah",
33
+ "license": "ISC",
34
+ "dependencies": {
35
+ "fs-extra": "^8.1.0",
36
+ "lodash": "^4.17.10",
37
+ "prettier": "^1.18.2",
38
+ "pug": "^2.0.0-rc.4",
39
+ "read-package-tree": "^5.3.1",
40
+ "typescript-ioc": "^1.2.4",
41
+ "yargs": "^12.0.1"
42
+ },
43
+ "devDependencies": {
44
+ "@types/fs-extra": "^8.1.1",
45
+ "@types/jest": "24.0.15",
46
+ "@types/lodash": "^4.14.91",
47
+ "@types/node": "^12.6.1",
48
+ "@types/prettier": "^1.18.0",
49
+ "@types/pug": "^2.0.4",
50
+ "@types/yargs": "^11.1.1",
51
+ "jest": "^24.8.0",
52
+ "ts-jest": "^24.0.2",
53
+ "ts-node": "^8.3.0",
54
+ "tslint": "^5.18.0",
55
+ "typescript": "^3.5.3"
56
+ }
86
57
  }