gm-printer-label 3.3.6-beta.0 → 3.3.6-beta.1

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.
Files changed (73) hide show
  1. package/.eslintrc.js +12 -0
  2. package/.github/workflows/release.yml +46 -0
  3. package/.prettierrc.js +5 -0
  4. package/.stylelintrc +3 -0
  5. package/babel.config.js +7 -0
  6. package/i18n.config.js +9 -0
  7. package/locales/en.json +42 -0
  8. package/locales/index.js +32 -0
  9. package/locales/th.json +42 -0
  10. package/locales/zh-HK.json +43 -0
  11. package/locales/zh.json +1 -0
  12. package/package.json +15 -11
  13. package/postcss.config.js +9 -0
  14. package/src/common/config.js +77 -0
  15. package/src/common/editor_compoents/component.js +481 -0
  16. package/src/common/editor_compoents/config_text.js +47 -0
  17. package/src/common/editor_compoents/context_menu.js +129 -0
  18. package/src/common/editor_compoents/edit.js +106 -0
  19. package/src/common/editor_compoents/edit_add_filed.js +54 -0
  20. package/src/common/editor_compoents/edit_modify_filed.js +199 -0
  21. package/src/common/editor_compoents/edit_select.js +212 -0
  22. package/src/common/editor_compoents/edit_title.js +110 -0
  23. package/src/common/editor_compoents/index.js +10 -0
  24. package/src/common/editor_compoents/store.js +381 -0
  25. package/src/common/editor_compoents/style.less +425 -0
  26. package/src/common/editor_compoents/with_shadow_dom_hoc.js +30 -0
  27. package/src/common/editor_compoents/with_store_hoc.js +92 -0
  28. package/src/components/css/animation.less +95 -0
  29. package/src/components/css/button.less +49 -0
  30. package/src/components/css/distance.less +324 -0
  31. package/src/components/css/text.less +74 -0
  32. package/src/components/css/variables.less +12 -0
  33. package/src/components/dialog/index.js +72 -0
  34. package/src/components/dialog/style.less +64 -0
  35. package/src/components/dropdown/drop_down.js +67 -0
  36. package/src/components/dropdown/drop_down_item.js +37 -0
  37. package/src/components/dropdown/drop_down_items.js +22 -0
  38. package/src/components/dropdown/index.js +9 -0
  39. package/src/components/dropdown/style.less +51 -0
  40. package/src/components/flex/index.js +103 -0
  41. package/src/components/flex/style.less +101 -0
  42. package/src/components/index.js +15 -0
  43. package/src/components/index.less +10 -0
  44. package/src/components/input_number/index.js +158 -0
  45. package/src/components/input_number/style.less +10 -0
  46. package/src/components/select/index.js +7 -0
  47. package/src/components/select/option.js +32 -0
  48. package/src/components/select/select.js +122 -0
  49. package/src/components/select/style.less +79 -0
  50. package/src/components/tip/index.js +48 -0
  51. package/src/components/tip/style.less +22 -0
  52. package/src/editor_label/edit_store.js +3 -0
  53. package/src/editor_label/editor.js +5 -0
  54. package/src/editor_label/editor_with_shadow_dom.js +4 -0
  55. package/src/editor_label/index.js +1 -0
  56. package/src/editor_presorting/edit_store.js +3 -0
  57. package/src/editor_presorting/editor_with_shadow_dom.js +6 -0
  58. package/src/editor_presorting/index.js +1 -0
  59. package/src/index.js +7 -0
  60. package/src/printer/barcode.js +38 -0
  61. package/src/printer/batch_printer.js +43 -0
  62. package/src/printer/block.js +544 -0
  63. package/src/printer/components/table_type.js +46 -0
  64. package/src/printer/index.js +111 -0
  65. package/src/printer/normalize.css +341 -0
  66. package/src/printer/page.js +26 -0
  67. package/src/printer/printer.js +71 -0
  68. package/src/printer/qrcode.js +17 -0
  69. package/src/printer/style.less +28 -0
  70. package/src/util.js +87 -0
  71. package/webpack.config.js +53 -0
  72. package/lib/main.js +0 -27
  73. package/lib/package.json +0 -96
package/lib/package.json DELETED
@@ -1,96 +0,0 @@
1
- {
2
- "name": "gm-printer-label",
3
- "version": "3.3.5",
4
- "description": "",
5
- "main": "main.js",
6
- "scripts": {
7
- "precommit": "lint-staged",
8
- "start": "webpack-dev-server",
9
- "build": "webpack --progress --colors --config ./webpack.config.prod.js",
10
- "publish-latest": "npm publish --force-publish --registry https://registry.npmjs.org/",
11
- "publish-beta": "npm publish --force-publish --dist-tag beta --preid beta --registry https://registry.npmjs.org/",
12
- "publish-alpha": "npm publish --force-publish --dist-tag alpha --preid alpha --registry https://registry.npmjs.org/",
13
- "release": "bumpp"
14
- },
15
- "lint-staged": {
16
- "./src/**/*.js": [
17
- "eslint --cache --fix",
18
- "git add"
19
- ]
20
- },
21
- "files": [
22
- "lib"
23
- ],
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/gmfe/gm-printer-label.git"
27
- },
28
- "author": "",
29
- "license": "ISC",
30
- "bugs": {
31
- "url": "https://github.com/gmfe/gm-printer-label/issues"
32
- },
33
- "homepage": "https://github.com/gmfe/gm-printer-label#readme",
34
- "dependencies": {
35
- "bumpp": "^9.1.0",
36
- "clipboard": "^2.0.1",
37
- "gm-svg": "^0.3.10",
38
- "gm-util": "^5.10.4",
39
- "mobx": "^4.3.0",
40
- "mobx-react": "^6.1.1",
41
- "precss": "^4.0.0",
42
- "qrcode.react": "^0.9.2"
43
- },
44
- "devDependencies": {
45
- "@babel/cli": "^7.6.0",
46
- "@babel/core": "^7.5.5",
47
- "@babel/preset-env": "^7.5.4",
48
- "@babel/runtime": "^7.5.5",
49
- "@babel/runtime-corejs3": "^7.12.1",
50
- "@svgr/webpack": "^4.3.3",
51
- "autoprefixer": "^8.5.1",
52
- "babel-eslint": "^10.0.2",
53
- "babel-loader": "^8.3.0",
54
- "babel-preset-gmfe": "^2.0.0",
55
- "big.js": "^5.1.2",
56
- "classnames": "^2.2.5",
57
- "clipboard": "^2.0.6",
58
- "css-loader": "^0.28.11",
59
- "eslint": "^5.0.1",
60
- "eslint-config-standard": "^11.0.0",
61
- "eslint-config-standard-jsx": "^5.0.0",
62
- "eslint-plugin-import": "^2.13.0",
63
- "eslint-plugin-node": "^6.0.1",
64
- "eslint-plugin-promise": "^3.8.0",
65
- "eslint-plugin-react": "^7.10.0",
66
- "eslint-plugin-standard": "^3.1.0",
67
- "file-loader": "^1.1.11",
68
- "gm-svg": "^0.3.23",
69
- "gm-util": "^5.12.3",
70
- "gm_static_storage": "^1.2.0",
71
- "husky": "^0.14.3",
72
- "jsbarcode": "^3.11.0",
73
- "less": "^3.0.4",
74
- "less-loader": "^4.1.0",
75
- "lint-staged": "^7.2.2",
76
- "lodash": "^4.17.10",
77
- "mobx": "^4.3.0",
78
- "mobx-react": "^6.1.1",
79
- "moment": "^2.22.2",
80
- "normalize.css": "^8.0.0",
81
- "postcss-loader": "^2.1.5",
82
- "precss": "^3.1.2",
83
- "prop-types": "^15.6.1",
84
- "query-string": "^6.2.0",
85
- "raw-loader": "^4.0.2",
86
- "react": "^16.8.5",
87
- "react-dom": "^16.8.5",
88
- "react-hot-loader": "^3.1.3",
89
- "style-loader": "^0.21.0",
90
- "stylelint-config-standard": "^18.2.0",
91
- "url-loader": "^1.0.1",
92
- "webpack": "^4.47.0",
93
- "webpack-cli": "^3.3.12",
94
- "webpack-dev-server": "^3.1.4"
95
- }
96
- }