cedro 0.1.14 → 0.1.16
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/package.json +1 -2
- package/src/core/application.builder.tsx +1 -2
- package/src/core/html.entities.ts +12 -0
- package/src/ui/buttonstack.ui.tsx +1 -1
- package/src/ui/datagrid.ui.tsx +1 -1
- package/src/ui/draggable.ui.ts +1 -1
- package/src/ui/image.ui.tsx +1 -1
- package/src/ui/scroll.ui.ts +1 -1
- package/src/ui/tabs.ui.tsx +1 -1
- package/src/ui/toolbar.ui.tsx +2 -2
- package/src/ui/valuebar.ui.tsx +1 -1
- package/src/ui/widget.builder.ts +1 -1
- package/src/ui/widget.collection.ts +1 -1
- package/tsconfig.json +7 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cedro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@types/node": "^20.4.4",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"@types/react": "18.2.17",
|
|
13
13
|
"color": "4.2.3",
|
|
14
14
|
"glob": "^11.0.0",
|
|
15
|
-
"html-entities": "^2.5.2",
|
|
16
15
|
"material-icons": "1.13.12",
|
|
17
16
|
"navigo": "8.11.1",
|
|
18
17
|
"vite": "^5.0.8"
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
//import { createWidget } from "src/ui/builder/widget.builder";
|
|
2
1
|
import { Widget, WidgetAlignTypes } from "../ui";
|
|
3
2
|
import { createWidget } from "../ui/widget.builder";
|
|
4
3
|
import Application, { ApplicationProps } from "./application.core";
|
|
5
|
-
import { decode } from "html
|
|
4
|
+
import { decode } from "./html.entities";
|
|
6
5
|
|
|
7
6
|
function getApplicationProps(content: any): ApplicationProps {
|
|
8
7
|
let props: ApplicationProps = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const decode = (str: string): string => {
|
|
2
|
+
return str
|
|
3
|
+
.replaceAll("&", "&")
|
|
4
|
+
.replaceAll("<", "<")
|
|
5
|
+
.replaceAll(">", ">")
|
|
6
|
+
.replaceAll(""", '"')
|
|
7
|
+
.replaceAll("/", "/")
|
|
8
|
+
.replaceAll("-", "-")
|
|
9
|
+
.replaceAll("'", "'");
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { decode };
|
package/src/ui/datagrid.ui.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { Widget, WidgetAlignTypes, WidgetTypes } from "./widget.ui";
|
|
|
4
4
|
import { Scroll } from "./scroll.ui";
|
|
5
5
|
import { normalizeWidget, WidgetEventProps, WidgetProps } from "./widget.builder";
|
|
6
6
|
import { UID } from "../core/uid";
|
|
7
|
-
import { decode } from "html
|
|
7
|
+
import { decode } from "../core/html.entities";
|
|
8
8
|
import { Button } from "./button.ui";
|
|
9
9
|
import { IconButton } from "./IconButton.ui";
|
|
10
10
|
import { ProgressBar } from "./progressbar.ui";
|
package/src/ui/draggable.ui.ts
CHANGED
package/src/ui/image.ui.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { UID } from "../core/uid";
|
|
|
2
2
|
import "./styles/image.css";
|
|
3
3
|
import { normalizeWidget, WidgetProps } from "./widget.builder";
|
|
4
4
|
import { Widget, WidgetTypes, connectWidgetCallback, getOnlyEventProps } from "./widget.ui";
|
|
5
|
-
import { decode } from "html
|
|
5
|
+
import { decode } from "../core/html.entities";
|
|
6
6
|
|
|
7
7
|
export class Image extends Widget {
|
|
8
8
|
imageContainer: Widget;
|
package/src/ui/scroll.ui.ts
CHANGED
package/src/ui/tabs.ui.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./styles/tabs.css";
|
|
2
2
|
|
|
3
|
-
import { OrientationTypes } from "
|
|
3
|
+
import { OrientationTypes } from "../types/orientation.type";
|
|
4
4
|
import { Widget, WidgetAlignTypes, WidgetTypes } from "./widget.ui";
|
|
5
5
|
import { Toolbar } from "./toolbar.ui";
|
|
6
6
|
import { Label } from "./label.ui";
|
package/src/ui/toolbar.ui.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./styles/toolbar.css";
|
|
2
|
-
import { IWidget } from "
|
|
2
|
+
import { IWidget } from "../interfaces/widget.interface";
|
|
3
3
|
import { Widget, WidgetAlignTypes, WidgetTypes } from "./widget.ui";
|
|
4
4
|
import { IconButton } from "./IconButton.ui";
|
|
5
|
-
import { OrientationTypes } from "
|
|
5
|
+
import { OrientationTypes } from "../types/orientation.type";
|
|
6
6
|
import { WidgetProps, createWidget, normalizeWidget } from "./widget.builder";
|
|
7
7
|
import { UID } from "../core/uid";
|
|
8
8
|
|
package/src/ui/valuebar.ui.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./styles/valuebar.css";
|
|
2
|
-
import { OrientationTypes } from "
|
|
2
|
+
import { OrientationTypes } from "../types/orientation.type";
|
|
3
3
|
import { Widget, connectWidgetCallback, getOnlyEventProps } from "./widget.ui";
|
|
4
4
|
import { Draggable } from "./draggable.ui";
|
|
5
5
|
import { normalizeWidget, WidgetProps } from "./widget.builder";
|
package/src/ui/widget.builder.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { addNewWidget } from "./widget.collection";
|
|
|
4
4
|
import { createTextbox } from "./Textbox.ui";
|
|
5
5
|
import { createButton } from "./button.ui";
|
|
6
6
|
import { createLabel } from "./label.ui";
|
|
7
|
-
import { OrientationTypes } from "
|
|
7
|
+
import { OrientationTypes } from "../types/orientation.type";
|
|
8
8
|
import { createContainer } from "./container.ui";
|
|
9
9
|
import { createIconButton } from "./IconButton.ui";
|
|
10
10
|
import { createImage } from "./image.ui";
|
package/tsconfig.json
CHANGED
|
@@ -3,34 +3,31 @@
|
|
|
3
3
|
"jsx": "preserve",
|
|
4
4
|
"jsxFactory": "DOMcreateElement",
|
|
5
5
|
"jsxFragmentFactory": "DOMcreateFragment",
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
"target": "ES2020",
|
|
8
|
-
"sourceMap": true,
|
|
9
8
|
|
|
10
9
|
"useDefineForClassFields": true,
|
|
11
10
|
"module": "ESNext",
|
|
12
|
-
"lib": ["
|
|
11
|
+
"lib": ["ES2021", "DOM", "DOM.Iterable"],
|
|
13
12
|
"outDir": "dist",
|
|
14
|
-
"declaration": true,
|
|
15
13
|
"skipLibCheck": true,
|
|
16
14
|
|
|
17
15
|
/* Bundler mode */
|
|
18
16
|
"moduleResolution": "Node",
|
|
17
|
+
"allowImportingTsExtensions": true,
|
|
19
18
|
"resolveJsonModule": true,
|
|
20
19
|
"isolatedModules": true,
|
|
20
|
+
"noEmit": true,
|
|
21
21
|
|
|
22
22
|
/* Linting */
|
|
23
23
|
"strict": true,
|
|
24
|
-
"esModuleInterop": true,
|
|
25
24
|
"noUnusedLocals": true,
|
|
26
25
|
"noUnusedParameters": true,
|
|
27
26
|
"noFallthroughCasesInSwitch": true,
|
|
28
27
|
|
|
29
28
|
"baseUrl": ".",
|
|
30
|
-
|
|
31
|
-
"@root/*": ["src/*"]
|
|
32
|
-
}
|
|
29
|
+
|
|
33
30
|
},
|
|
34
|
-
"include": ["src"]
|
|
35
|
-
|
|
31
|
+
"include": ["src"]
|
|
32
|
+
|
|
36
33
|
}
|