xmlui 0.7.22 → 0.7.23
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/{apiInterceptorWorker-D8M55a0M.mjs → apiInterceptorWorker-BZ3Gd4mb.mjs} +1 -1
- package/dist/{index-BLoqesEB.mjs → index-C9zkAour.mjs} +16370 -16431
- package/dist/index.css +1 -1
- package/dist/scripts/src/components/Badge/Badge.js +2 -2
- package/dist/scripts/src/components/Badge/BadgeNative.js +3 -3
- package/dist/scripts/src/components/Bookmark/Bookmark.js +5 -1
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +5 -4
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +5 -2
- package/dist/scripts/src/components/ComponentProvider.js +0 -4
- package/dist/scripts/src/components/Heading/Heading.js +14 -1
- package/dist/scripts/src/components/Heading/HeadingNative.js +15 -3
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +32 -50
- package/dist/scripts/src/components/List/ListNative.js +143 -52
- package/dist/scripts/src/components/Slider/Slider.js +1 -1
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +4 -2
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +26 -21
- package/dist/scripts/src/components/Text/Text.js +1 -0
- package/dist/scripts/src/components-core/LoaderComponent.js +3 -0
- package/dist/scripts/src/components-core/TableOfContentsContext.js +11 -1
- package/dist/scripts/src/components-core/action/APICall.js +6 -6
- package/dist/scripts/src/components-core/loader/PageableLoader.js +4 -1
- package/dist/scripts/src/components-core/utils/extractParam.js +44 -0
- package/dist/style.css +1 -1
- package/dist/xmlui-metadata.mjs +3638 -3532
- package/dist/xmlui-metadata.umd.js +17 -17
- package/dist/xmlui-standalone.umd.js +139 -129
- package/dist/xmlui.mjs +1 -1
- package/package.json +1 -1
- package/dist/scripts/src/components/Chart/Chart.js +0 -24
- package/dist/scripts/src/components/Chart/ChartNative.js +0 -164
package/dist/xmlui.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, B as t, E as r, I as o, h as p, f as n, S as c, c as d, b as u, e as S, i as l, p as A, s as C, t as m, j as B, u as f } from "./index-
|
|
1
|
+
import { A as e, B as t, E as r, I as o, h as p, f as n, S as c, c as d, b as u, e as S, i as l, p as A, s as C, t as m, j as B, u as f } from "./index-C9zkAour.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AppRoot,
|
|
4
4
|
t as Button,
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.chartRenderer = exports.ChartMd = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const ComponentDefs_1 = require("../../abstractions/ComponentDefs");
|
|
6
|
-
const renderers_1 = require("../../components-core/renderers");
|
|
7
|
-
const ChartNative_1 = require("./ChartNative");
|
|
8
|
-
const COMP = "Chart";
|
|
9
|
-
exports.ChartMd = (0, ComponentDefs_1.createMetadata)({
|
|
10
|
-
status: "deprecated",
|
|
11
|
-
description: "(**OBSOLETE**) A chart component",
|
|
12
|
-
props: {
|
|
13
|
-
type: (0, ComponentDefs_1.d)("(**OBSOLETE**)"),
|
|
14
|
-
labels: (0, ComponentDefs_1.d)("(**OBSOLETE**)"),
|
|
15
|
-
series: (0, ComponentDefs_1.d)("(**OBSOLETE**)"),
|
|
16
|
-
stacked: (0, ComponentDefs_1.d)("(**OBSOLETE**)"),
|
|
17
|
-
showAxisLabels: (0, ComponentDefs_1.d)("(**OBSOLETE**)"),
|
|
18
|
-
tooltipEnabled: (0, ComponentDefs_1.d)("(**OBSOLETE**)"),
|
|
19
|
-
showLegend: (0, ComponentDefs_1.d)("(**OBSOLETE**)"),
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
exports.chartRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.ChartMd, ({ node, extractValue, lookupAction, layoutCss, registerComponentApi }) => {
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(ChartNative_1.Chart, { type: extractValue.asString(node.props.type), labels: extractValue(node.props.labels), series: extractValue(node.props.series), style: layoutCss, showLegend: extractValue.asOptionalBoolean(node.props.showLegend), stacked: extractValue.asOptionalBoolean(node.props.stacked), showAxisLabels: extractValue.asOptionalBoolean(node.props.showAxisLabels), tooltipEnabled: extractValue.asOptionalBoolean(node.props.tooltipEnabled) }));
|
|
24
|
-
});
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
36
|
-
var t = {};
|
|
37
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
38
|
-
t[p] = s[p];
|
|
39
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
40
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
42
|
-
t[p[i]] = s[p[i]];
|
|
43
|
-
}
|
|
44
|
-
return t;
|
|
45
|
-
};
|
|
46
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
47
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.Chart = void 0;
|
|
51
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
52
|
-
const react_1 = __importStar(require("react"));
|
|
53
|
-
const Chart_module_scss_1 = __importDefault(require("./Chart.module.scss"));
|
|
54
|
-
const hooks_1 = require("../../components-core/utils/hooks");
|
|
55
|
-
const ApexChart = react_1.default.lazy(() => Promise.resolve().then(() => __importStar(require("react-apexcharts"))));
|
|
56
|
-
const defaultOptions = {
|
|
57
|
-
chart: {
|
|
58
|
-
fontFamily: "inherit",
|
|
59
|
-
sparkline: {
|
|
60
|
-
enabled: false,
|
|
61
|
-
},
|
|
62
|
-
toolbar: {
|
|
63
|
-
show: false,
|
|
64
|
-
},
|
|
65
|
-
animations: {
|
|
66
|
-
enabled: false,
|
|
67
|
-
dynamicAnimation: {
|
|
68
|
-
enabled: true,
|
|
69
|
-
},
|
|
70
|
-
animateGradually: {
|
|
71
|
-
enabled: true,
|
|
72
|
-
},
|
|
73
|
-
speed: 300,
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
dataLabels: {
|
|
77
|
-
enabled: false,
|
|
78
|
-
},
|
|
79
|
-
fill: {
|
|
80
|
-
//--> area
|
|
81
|
-
opacity: 0.16,
|
|
82
|
-
type: "solid",
|
|
83
|
-
},
|
|
84
|
-
stroke: {
|
|
85
|
-
// width: [2, 1],
|
|
86
|
-
// dashArray: [0, 3],
|
|
87
|
-
width: 2,
|
|
88
|
-
lineCap: "round",
|
|
89
|
-
curve: "smooth",
|
|
90
|
-
},
|
|
91
|
-
tooltip: {
|
|
92
|
-
// --> should come from themes
|
|
93
|
-
theme: "dark",
|
|
94
|
-
},
|
|
95
|
-
grid: {
|
|
96
|
-
strokeDashArray: 4,
|
|
97
|
-
padding: {
|
|
98
|
-
// top: -20,
|
|
99
|
-
right: 0,
|
|
100
|
-
left: -4,
|
|
101
|
-
bottom: -4,
|
|
102
|
-
},
|
|
103
|
-
xaxis: {
|
|
104
|
-
lines: {
|
|
105
|
-
show: true,
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
plotOptions: {
|
|
110
|
-
bar: {
|
|
111
|
-
columnWidth: "50%",
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
xaxis: {
|
|
115
|
-
labels: {
|
|
116
|
-
// padding: 0,
|
|
117
|
-
},
|
|
118
|
-
tooltip: {
|
|
119
|
-
enabled: false,
|
|
120
|
-
},
|
|
121
|
-
axisBorder: {
|
|
122
|
-
show: false,
|
|
123
|
-
},
|
|
124
|
-
type: "datetime",
|
|
125
|
-
},
|
|
126
|
-
yaxis: {
|
|
127
|
-
labels: {
|
|
128
|
-
padding: 4,
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
legend: {
|
|
132
|
-
show: false,
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
exports.Chart = (0, react_1.forwardRef)(function Chart({ type, labels, series, style, stacked, showAxisLabels = true, tooltipEnabled = true, showLegend = false, }, ref) {
|
|
136
|
-
const colors = (0, hooks_1.useColors)({
|
|
137
|
-
name: "color-primary-500",
|
|
138
|
-
format: "hex",
|
|
139
|
-
}, {
|
|
140
|
-
name: "color-primary-400",
|
|
141
|
-
format: "hex",
|
|
142
|
-
}, {
|
|
143
|
-
name: "color-primary-300",
|
|
144
|
-
format: "hex",
|
|
145
|
-
}, {
|
|
146
|
-
name: "color-primary-200",
|
|
147
|
-
format: "hex",
|
|
148
|
-
});
|
|
149
|
-
const { fill } = defaultOptions, restOptions = __rest(defaultOptions, ["fill"]);
|
|
150
|
-
const options = (0, react_1.useMemo)(() => {
|
|
151
|
-
let opts = Object.assign(Object.assign({}, restOptions), { chart: Object.assign(Object.assign({}, restOptions.chart), { stacked, sparkline: {
|
|
152
|
-
enabled: !showAxisLabels,
|
|
153
|
-
} }), fill: type === "area" ? fill : {}, tooltip: Object.assign(Object.assign({}, defaultOptions.tooltip), { enabled: tooltipEnabled }), colors: Object.values(colors), labels: labels || [], legend: {
|
|
154
|
-
show: showLegend,
|
|
155
|
-
} });
|
|
156
|
-
if (!labels) {
|
|
157
|
-
delete opts.xaxis;
|
|
158
|
-
}
|
|
159
|
-
return opts;
|
|
160
|
-
}, [colors, fill, labels, restOptions, showAxisLabels, stacked, tooltipEnabled, type]);
|
|
161
|
-
return (
|
|
162
|
-
// TODO illesg TEMP FLEX 1 STAR SIZING
|
|
163
|
-
(0, jsx_runtime_1.jsx)("div", { style: Object.assign({}, style), className: Chart_module_scss_1.default.wrapper, ref: ref, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { children: !!series && (0, jsx_runtime_1.jsx)(ApexChart, { options: options, type: type, series: series, height: "100%", width: "100%" }) }) }));
|
|
164
|
-
});
|