@tmagic/editor 1.3.0-alpha.6 → 1.3.0-alpha.8

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 (38) hide show
  1. package/dist/style.css +17 -0
  2. package/dist/tmagic-editor.js +471 -264
  3. package/dist/tmagic-editor.js.map +1 -1
  4. package/dist/tmagic-editor.umd.cjs +474 -265
  5. package/dist/tmagic-editor.umd.cjs.map +1 -1
  6. package/package.json +12 -12
  7. package/src/Editor.vue +3 -0
  8. package/src/components/ContentMenu.vue +15 -8
  9. package/src/components/FunctionEditor.vue +6 -4
  10. package/src/components/SplitView.vue +2 -2
  11. package/src/fields/CodeLink.vue +4 -2
  12. package/src/fields/DataSourceInput.vue +11 -10
  13. package/src/index.ts +4 -2
  14. package/src/initService.ts +2 -0
  15. package/src/layouts/Framework.vue +4 -4
  16. package/src/layouts/PropsPanel.vue +2 -1
  17. package/src/layouts/sidebar/LayerMenu.vue +4 -3
  18. package/src/layouts/sidebar/LayerPanel.vue +55 -32
  19. package/src/layouts/workspace/Stage.vue +13 -3
  20. package/src/layouts/workspace/Workspace.vue +2 -2
  21. package/src/services/codeBlock.ts +3 -2
  22. package/src/services/keybinding.ts +148 -203
  23. package/src/services/storage.ts +3 -2
  24. package/src/theme/data-source-input.scss +18 -0
  25. package/src/theme/stage.scss +4 -0
  26. package/src/theme/theme.scss +1 -0
  27. package/src/type.ts +56 -0
  28. package/src/utils/config.ts +1 -1
  29. package/src/utils/keybinding-config.ts +120 -0
  30. package/src/utils/props.ts +34 -0
  31. package/types/components/ContentMenu.vue.d.ts +2 -0
  32. package/types/index.d.ts +2 -1
  33. package/types/initService.d.ts +1 -1
  34. package/types/layouts/workspace/Workspace.vue.d.ts +1 -1
  35. package/types/services/keybinding.d.ts +13 -5
  36. package/types/type.d.ts +53 -0
  37. package/types/utils/config.d.ts +1 -1
  38. package/types/utils/keybinding-config.d.ts +3 -0
package/dist/style.css CHANGED
@@ -675,6 +675,9 @@
675
675
  justify-content: center;
676
676
  align-items: center;
677
677
  }
678
+ .m-editor-stage:focus-visible {
679
+ outline: none;
680
+ }
678
681
  .m-editor-stage-container {
679
682
  width: 100%;
680
683
  height: 100%;
@@ -940,6 +943,20 @@
940
943
  justify-content: flex-end;
941
944
  margin-top: 15px;
942
945
  }
946
+ .tmagic-data-source-input-text .el-input__wrapper.tmagic-data-source-input-text-wrapper {
947
+ overflow: hidden;
948
+ padding-right: 30px;
949
+ }
950
+ .tmagic-data-source-input-text .el-input__inner {
951
+ display: flex;
952
+ align-items: center;
953
+ overflow: hidden;
954
+ white-space: nowrap;
955
+ }
956
+ .tmagic-data-source-input-text .tmagic-data-source-input-icon {
957
+ position: absolute;
958
+ right: 7px;
959
+ }
943
960
  .m-fields-key-value-item {
944
961
  display: flex;
945
962
  margin-bottom: 10px;