@web-atoms/web-controls 2.4.65 → 2.4.67

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 (64) hide show
  1. package/dist/basic/FilesDragDrop.d.ts +1 -0
  2. package/dist/basic/FilesDragDrop.d.ts.map +1 -1
  3. package/dist/basic/FilesDragDrop.global.less.css +4 -0
  4. package/dist/basic/FilesDragDrop.global.less.css.map +1 -0
  5. package/dist/basic/FilesDragDrop.js +3 -12
  6. package/dist/basic/FilesDragDrop.js.map +1 -1
  7. package/dist/basic/styles/pinch-zoom-view.global.less.css +1 -1
  8. package/dist/basic/styles/pinch-zoom-view.global.less.css.map +1 -1
  9. package/dist/basic/styles/zoom-view.global.less.css +1 -1
  10. package/dist/basic/styles/zoom-view.global.less.css.map +1 -1
  11. package/dist/dev/DevHost.d.ts +1 -0
  12. package/dist/dev/DevHost.d.ts.map +1 -1
  13. package/dist/dev/DevHost.js +4 -40
  14. package/dist/dev/DevHost.js.map +1 -1
  15. package/dist/dev/Devhost.global.less.css +33 -0
  16. package/dist/dev/Devhost.global.less.css.map +1 -0
  17. package/dist/html-editor/commands/AddLink.d.ts +1 -0
  18. package/dist/html-editor/commands/AddLink.d.ts.map +1 -1
  19. package/dist/html-editor/commands/AddLink.js +4 -10
  20. package/dist/html-editor/commands/AddLink.js.map +1 -1
  21. package/dist/html-editor/commands/AddLink.local.less.css +6 -0
  22. package/dist/html-editor/commands/AddLink.local.less.css.map +1 -0
  23. package/dist/html-editor/commands/ChangeColor.d.ts +1 -0
  24. package/dist/html-editor/commands/ChangeColor.d.ts.map +1 -1
  25. package/dist/html-editor/commands/ChangeColor.js +4 -29
  26. package/dist/html-editor/commands/ChangeColor.js.map +1 -1
  27. package/dist/html-editor/commands/ChangeColor.local.less.css +22 -0
  28. package/dist/html-editor/commands/ChangeColor.local.less.css.map +1 -0
  29. package/dist/html-editor/commands/ChangeFont.d.ts +1 -0
  30. package/dist/html-editor/commands/ChangeFont.d.ts.map +1 -1
  31. package/dist/html-editor/commands/ChangeFont.js +4 -9
  32. package/dist/html-editor/commands/ChangeFont.js.map +1 -1
  33. package/dist/html-editor/commands/ChangeFont.local.less.css +5 -0
  34. package/dist/html-editor/commands/ChangeFont.local.less.css.map +1 -0
  35. package/dist/html-editor/commands/Separator.d.ts +1 -0
  36. package/dist/html-editor/commands/Separator.d.ts.map +1 -1
  37. package/dist/html-editor/commands/Separator.global.less.css +11 -0
  38. package/dist/html-editor/commands/Separator.global.less.css.map +1 -0
  39. package/dist/html-editor/commands/Separator.js +5 -18
  40. package/dist/html-editor/commands/Separator.js.map +1 -1
  41. package/dist/html-editor/commands/Source.d.ts +1 -0
  42. package/dist/html-editor/commands/Source.d.ts.map +1 -1
  43. package/dist/html-editor/commands/Source.js +4 -11
  44. package/dist/html-editor/commands/Source.js.map +1 -1
  45. package/dist/html-editor/commands/Source.local.less.css +0 -0
  46. package/dist/html-editor/commands/Source.local.less.css.map +0 -0
  47. package/dist/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +1 -1
  49. package/src/basic/FilesDragDrop.global.less +5 -0
  50. package/src/basic/FilesDragDrop.ts +1 -8
  51. package/src/basic/styles/pinch-zoom-view.global.less +1 -1
  52. package/src/basic/styles/zoom-view.global.less +1 -1
  53. package/src/dev/DevHost.tsx +3 -36
  54. package/src/dev/Devhost.global.less +34 -0
  55. package/src/html-editor/commands/AddLink.local.less +5 -0
  56. package/src/html-editor/commands/AddLink.tsx +2 -6
  57. package/src/html-editor/commands/ChangeColor.local.less +23 -0
  58. package/src/html-editor/commands/ChangeColor.tsx +2 -26
  59. package/src/html-editor/commands/ChangeFont.local.less +4 -0
  60. package/src/html-editor/commands/ChangeFont.tsx +2 -5
  61. package/src/html-editor/commands/Separator.global.less +10 -0
  62. package/src/html-editor/commands/Separator.tsx +2 -12
  63. package/src/html-editor/commands/Source.local.less +3 -0
  64. package/src/html-editor/commands/Source.tsx +2 -7
@@ -0,0 +1,23 @@
1
+ .web-controls-html-editor-change-color {
2
+ width: 400px;
3
+ display: flex;
4
+ justify-content: space-evenly;
5
+
6
+ & > table {
7
+ display: inline-table;
8
+ }
9
+
10
+ & .color-button {
11
+ display: inline-block;
12
+ width: 20px;
13
+ height: 20px;
14
+ border-width: 1px;
15
+ margin: 1px;
16
+ cursor: pointer;
17
+ border-style: solid;
18
+ border-color: transparent;
19
+ &:hover {
20
+ border-color: black;
21
+ }
22
+ }
23
+ }
@@ -2,8 +2,7 @@ import Bind from "@web-atoms/core/dist/core/Bind";
2
2
  import XNode from "@web-atoms/core/dist/core/XNode";
3
3
  import PopupButton from "../../basic/PopupButton";
4
4
  import type AtomHtmlEditor from "../AtomHtmlEditor";
5
- import styled from "@web-atoms/core/dist/style/styled";
6
-
5
+ import "./ChangeColor.local.less";
7
6
  const gray = [
8
7
  "rgb(0,0,0)",
9
8
  "rgb(68,68,68)",
@@ -89,30 +88,7 @@ const all = [
89
88
  ]
90
89
  ];
91
90
 
92
- const colorSelectorCss = styled.css `
93
-
94
- width: 400px;
95
- display: flex;
96
- justify-content: space-evenly;
97
-
98
- & > table {
99
- display: inline-table;
100
- }
101
-
102
- & .color-button {
103
- display: inline-block;
104
- width: 20px;
105
- height: 20px;
106
- border-width: 1px;
107
- margin: 1px;
108
- cursor: pointer;
109
- border-style: solid;
110
- border-color: transparent;
111
- &:hover {
112
- border-color: black;
113
- }
114
- }
115
- `.installLocal();
91
+ const colorSelectorCss = "web-controls-html-editor-change-color";
116
92
 
117
93
  function TextColor(color: string) {
118
94
  return <div
@@ -0,0 +1,4 @@
1
+ .web-controls-html-editor-change-font {
2
+ padding: 5px;
3
+ width: 170px;
4
+ }
@@ -2,12 +2,9 @@ import Bind from "@web-atoms/core/dist/core/Bind";
2
2
  import XNode from "@web-atoms/core/dist/core/XNode";
3
3
  import PopupButton, { MenuItem } from "../../basic/PopupButton";
4
4
  import type AtomHtmlEditor from "../AtomHtmlEditor";
5
- import styled from "@web-atoms/core/dist/style/styled";
5
+ import "./ChangeFont.local.less";
6
6
 
7
- const fontMenuCSS = styled.css `
8
- padding: 5px;
9
- width: 170px;
10
- `.installLocal();
7
+ const fontMenuCSS = "web-controls-html-editor-change-font";
11
8
 
12
9
  const fonts: Array<[string, string[]]> = [
13
10
  ["Sans Serif", ["arial", "sans-serif"]],
@@ -0,0 +1,10 @@
1
+ [data-toolbar-item=separator] {
2
+ background-color: #a9a9a9;
3
+ margin-left: 4px;
4
+ margin-right: 4px;
5
+ display: inline-block;
6
+ margin-top: 4px;
7
+ height: 1rem;
8
+ width: 2px;
9
+ padding: 0;
10
+ }
@@ -1,17 +1,7 @@
1
1
  import XNode from "@web-atoms/core/dist/core/XNode";
2
- import styled from "@web-atoms/core/dist/style/styled";
3
2
 
4
- const separatorCss = styled.css `
5
- background-color: #a9a9a9;
6
- margin-left: 4px;
7
- margin-right: 4px;
8
- display: inline-block;
9
- margin-top: 4px;
10
- height: 1rem;
11
- width: 2px;
12
- padding: 0;
13
- `.installLocal();
3
+ import "./Separator.global.less";
14
4
 
15
5
  export default function Separator() {
16
- return <div class={separatorCss}></div>;
6
+ return <div data-toolbar-item="separator"/>;
17
7
  }
@@ -0,0 +1,3 @@
1
+ .web-controls-html-editor-source {
2
+
3
+ }
@@ -5,14 +5,9 @@ import PopupService, { PopupWindow } from "@web-atoms/core/dist/web/services/Pop
5
5
  import type AtomHtmlEditor from "../AtomHtmlEditor";
6
6
  import CommandButton from "./CommandButton";
7
7
  import HtmlCommands from "./HtmlCommands";
8
- import styled from "@web-atoms/core/dist/style/styled";
8
+ import "./Source.local.less";
9
9
 
10
- const css = styled.css `
11
- & > textarea {
12
- min-height: 500px;
13
- min-width: 700px;
14
- }
15
- `.installLocal();
10
+ const css = "web-controls-html-editor-source";
16
11
 
17
12
  async function showDialog(s: AtomHtmlEditor, e: Event): Promise<string> {
18
13