@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.
- package/dist/basic/FilesDragDrop.d.ts +1 -0
- package/dist/basic/FilesDragDrop.d.ts.map +1 -1
- package/dist/basic/FilesDragDrop.global.less.css +4 -0
- package/dist/basic/FilesDragDrop.global.less.css.map +1 -0
- package/dist/basic/FilesDragDrop.js +3 -12
- package/dist/basic/FilesDragDrop.js.map +1 -1
- package/dist/basic/styles/pinch-zoom-view.global.less.css +1 -1
- package/dist/basic/styles/pinch-zoom-view.global.less.css.map +1 -1
- package/dist/basic/styles/zoom-view.global.less.css +1 -1
- package/dist/basic/styles/zoom-view.global.less.css.map +1 -1
- package/dist/dev/DevHost.d.ts +1 -0
- package/dist/dev/DevHost.d.ts.map +1 -1
- package/dist/dev/DevHost.js +4 -40
- package/dist/dev/DevHost.js.map +1 -1
- package/dist/dev/Devhost.global.less.css +33 -0
- package/dist/dev/Devhost.global.less.css.map +1 -0
- package/dist/html-editor/commands/AddLink.d.ts +1 -0
- package/dist/html-editor/commands/AddLink.d.ts.map +1 -1
- package/dist/html-editor/commands/AddLink.js +4 -10
- package/dist/html-editor/commands/AddLink.js.map +1 -1
- package/dist/html-editor/commands/AddLink.local.less.css +6 -0
- package/dist/html-editor/commands/AddLink.local.less.css.map +1 -0
- package/dist/html-editor/commands/ChangeColor.d.ts +1 -0
- package/dist/html-editor/commands/ChangeColor.d.ts.map +1 -1
- package/dist/html-editor/commands/ChangeColor.js +4 -29
- package/dist/html-editor/commands/ChangeColor.js.map +1 -1
- package/dist/html-editor/commands/ChangeColor.local.less.css +22 -0
- package/dist/html-editor/commands/ChangeColor.local.less.css.map +1 -0
- package/dist/html-editor/commands/ChangeFont.d.ts +1 -0
- package/dist/html-editor/commands/ChangeFont.d.ts.map +1 -1
- package/dist/html-editor/commands/ChangeFont.js +4 -9
- package/dist/html-editor/commands/ChangeFont.js.map +1 -1
- package/dist/html-editor/commands/ChangeFont.local.less.css +5 -0
- package/dist/html-editor/commands/ChangeFont.local.less.css.map +1 -0
- package/dist/html-editor/commands/Separator.d.ts +1 -0
- package/dist/html-editor/commands/Separator.d.ts.map +1 -1
- package/dist/html-editor/commands/Separator.global.less.css +11 -0
- package/dist/html-editor/commands/Separator.global.less.css.map +1 -0
- package/dist/html-editor/commands/Separator.js +5 -18
- package/dist/html-editor/commands/Separator.js.map +1 -1
- package/dist/html-editor/commands/Source.d.ts +1 -0
- package/dist/html-editor/commands/Source.d.ts.map +1 -1
- package/dist/html-editor/commands/Source.js +4 -11
- package/dist/html-editor/commands/Source.js.map +1 -1
- package/dist/html-editor/commands/Source.local.less.css +0 -0
- package/dist/html-editor/commands/Source.local.less.css.map +0 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/basic/FilesDragDrop.global.less +5 -0
- package/src/basic/FilesDragDrop.ts +1 -8
- package/src/basic/styles/pinch-zoom-view.global.less +1 -1
- package/src/basic/styles/zoom-view.global.less +1 -1
- package/src/dev/DevHost.tsx +3 -36
- package/src/dev/Devhost.global.less +34 -0
- package/src/html-editor/commands/AddLink.local.less +5 -0
- package/src/html-editor/commands/AddLink.tsx +2 -6
- package/src/html-editor/commands/ChangeColor.local.less +23 -0
- package/src/html-editor/commands/ChangeColor.tsx +2 -26
- package/src/html-editor/commands/ChangeFont.local.less +4 -0
- package/src/html-editor/commands/ChangeFont.tsx +2 -5
- package/src/html-editor/commands/Separator.global.less +10 -0
- package/src/html-editor/commands/Separator.tsx +2 -12
- package/src/html-editor/commands/Source.local.less +3 -0
- 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
|
|
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 =
|
|
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
|
|
@@ -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
|
|
5
|
+
import "./ChangeFont.local.less";
|
|
6
6
|
|
|
7
|
-
const fontMenuCSS =
|
|
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"]],
|
|
@@ -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
|
-
|
|
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
|
|
6
|
+
return <div data-toolbar-item="separator"/>;
|
|
17
7
|
}
|
|
@@ -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
|
|
8
|
+
import "./Source.local.less";
|
|
9
9
|
|
|
10
|
-
const 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
|
|