mhz-ui 1.2.8 → 1.2.10
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_10h25_1{position:relative;display:inline-flex;flex-shrink:0;gap:8px;align-items:center;justify-content:center;height:40px;padding:16px 32px;overflow:hidden;font-size:.875rem;line-height:1.5;color:var(--color-white);white-space:nowrap;text-decoration:none;user-select:none;background:var(--color-primary);border:2px solid var(--color-transparent);border-radius:16px;transition:all .2s}._button_10h25_1:hover{color:var(--color-white);cursor:pointer;background:var(--color-primary-dark);border-color:var(--color-transparent)}._button_10h25_1:disabled{color:var(--color-gray-dark-extra);cursor:default;background:var(--color-gray-light-extra)}._button_10h25_1[data-large-font=true]{font-size:1.125rem}._button_10h25_1[data-narrow=true]{padding-right:14px;padding-left:14px}._button_10h25_1[data-tall=true]{padding-top:28px;padding-bottom:28px}._button_10h25_1[data-wrap=true]{text-align:left;white-space:normal}._button_10h25_1[data-layout=accent]{background:var(--color-accent)}._button_10h25_1[data-layout=accent]:hover{background:var(--color-accent-dark)}._button_10h25_1[data-layout=accent]:disabled{color:var(--color-gray-dark-extra);cursor:default;background:var(--color-gray-light-extra)}._button_10h25_1[data-layout=gradient]{font-weight:700;background:linear-gradient(340deg,var(--color-accent) 20%,var(--color-accent-light) 96%);border:linear-gradient(340deg,var(--color-accent) 20%,var(--color-accent-light) 96%)}._button_10h25_1[data-layout=gradient]:hover{filter:hue-rotate(15deg)}._button_10h25_1[data-layout=secondary]{color:var(--color-primary);background-color:var(--color-transparent);border-color:var(--color-primary)}._button_10h25_1[data-layout=secondary]:hover{color:var(--color-primary-dark);border-color:var(--color-primary-dark)}._button_10h25_1[data-layout=secondary]:disabled{color:var(--color-gray-dark-extra);cursor:default;background:var(--color-white);border-color:var(--color-gray-light-extra)}._button_10h25_1[data-layout=plain]{height:auto;padding:0;font-size:1rem;color:var(--color-primary);background:none;border:none;border-radius:0}._button_10h25_1[data-layout=plain]:hover{color:var(--color-primary-dark)}._button_10h25_1[data-layout=plain]:disabled{color:var(--color-gray-dark-extra)}
|
package/dist/UiChart/UiChart.js
CHANGED
|
@@ -4093,7 +4093,7 @@ class Xa extends vn {
|
|
|
4093
4093
|
function Ua(i) {
|
|
4094
4094
|
return !Mi() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? Ia : Xa;
|
|
4095
4095
|
}
|
|
4096
|
-
class
|
|
4096
|
+
class ut {
|
|
4097
4097
|
static defaults = {};
|
|
4098
4098
|
static defaultRoutes = void 0;
|
|
4099
4099
|
x;
|
|
@@ -4259,7 +4259,7 @@ function rl(i, t, e, s) {
|
|
|
4259
4259
|
rotation: d
|
|
4260
4260
|
};
|
|
4261
4261
|
}
|
|
4262
|
-
class Wt extends
|
|
4262
|
+
class Wt extends ut {
|
|
4263
4263
|
constructor(t) {
|
|
4264
4264
|
super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
|
|
4265
4265
|
left: 0,
|
|
@@ -4916,7 +4916,7 @@ function cl(i) {
|
|
|
4916
4916
|
}
|
|
4917
4917
|
class hl {
|
|
4918
4918
|
constructor() {
|
|
4919
|
-
this.controllers = new ve(ce, "datasets", !0), this.elements = new ve(
|
|
4919
|
+
this.controllers = new ve(ce, "datasets", !0), this.elements = new ve(ut, "elements"), this.plugins = new ve(Object, "plugins"), this.scales = new ve(Wt, "scales"), this._typedRegistries = [
|
|
4920
4920
|
this.controllers,
|
|
4921
4921
|
this.scales,
|
|
4922
4922
|
this.elements
|
|
@@ -5373,7 +5373,7 @@ function Pl(i, t, e) {
|
|
|
5373
5373
|
function Ol(i, t, e, s) {
|
|
5374
5374
|
return !e || i.type === "mouseout" ? null : s ? t : i;
|
|
5375
5375
|
}
|
|
5376
|
-
let
|
|
5376
|
+
let dt = class {
|
|
5377
5377
|
static defaults = z;
|
|
5378
5378
|
static instances = Ce;
|
|
5379
5379
|
static overrides = Pt;
|
|
@@ -5855,7 +5855,7 @@ let ut = class {
|
|
|
5855
5855
|
}
|
|
5856
5856
|
};
|
|
5857
5857
|
function Ss() {
|
|
5858
|
-
return L(
|
|
5858
|
+
return L(dt.instances, (i) => i._plugins.invalidate());
|
|
5859
5859
|
}
|
|
5860
5860
|
function Al(i, t, e) {
|
|
5861
5861
|
const { startAngle: s, x: n, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: h } = l, d = Math.min(c / r, et(s - e));
|
|
@@ -5968,7 +5968,7 @@ function El(i, t, e, s, n) {
|
|
|
5968
5968
|
}
|
|
5969
5969
|
p && Tl(i, t, g), l.selfJoin && g - r >= T && f === 0 && h !== "miter" && Al(i, t, g), o || (Le(i, t, e, s, g, n), i.stroke());
|
|
5970
5970
|
}
|
|
5971
|
-
class Fl extends
|
|
5971
|
+
class Fl extends ut {
|
|
5972
5972
|
static id = "arc";
|
|
5973
5973
|
static defaults = {
|
|
5974
5974
|
borderAlign: "center",
|
|
@@ -6107,7 +6107,7 @@ const $l = typeof Path2D == "function";
|
|
|
6107
6107
|
function Yl(i, t, e, s) {
|
|
6108
6108
|
$l && !t.options.segment ? Nl(i, t, e, s) : jl(i, t, e, s);
|
|
6109
6109
|
}
|
|
6110
|
-
class Xl extends
|
|
6110
|
+
class Xl extends ut {
|
|
6111
6111
|
static id = "line";
|
|
6112
6112
|
static defaults = {
|
|
6113
6113
|
borderCapStyle: "butt",
|
|
@@ -6203,7 +6203,7 @@ function ws(i, t, e, s) {
|
|
|
6203
6203
|
], s);
|
|
6204
6204
|
return Math.abs(t - o) < n.radius + n.hitRadius;
|
|
6205
6205
|
}
|
|
6206
|
-
class Ul extends
|
|
6206
|
+
class Ul extends ut {
|
|
6207
6207
|
static id = "point";
|
|
6208
6208
|
parsed;
|
|
6209
6209
|
skip;
|
|
@@ -6352,7 +6352,7 @@ function Ze(i, t, e = {}) {
|
|
|
6352
6352
|
radius: i.radius
|
|
6353
6353
|
};
|
|
6354
6354
|
}
|
|
6355
|
-
class Ql extends
|
|
6355
|
+
class Ql extends ut {
|
|
6356
6356
|
static id = "bar";
|
|
6357
6357
|
static defaults = {
|
|
6358
6358
|
borderSkipped: "start",
|
|
@@ -6466,7 +6466,7 @@ const Ps = (i, t) => {
|
|
|
6466
6466
|
itemHeight: Math.max(t, e)
|
|
6467
6467
|
};
|
|
6468
6468
|
}, ac = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
|
|
6469
|
-
class Os extends
|
|
6469
|
+
class Os extends ut {
|
|
6470
6470
|
constructor(t) {
|
|
6471
6471
|
super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
|
|
6472
6472
|
}
|
|
@@ -6770,7 +6770,7 @@ var uc = {
|
|
|
6770
6770
|
}
|
|
6771
6771
|
}
|
|
6772
6772
|
};
|
|
6773
|
-
class In extends
|
|
6773
|
+
class In extends ut {
|
|
6774
6774
|
constructor(t) {
|
|
6775
6775
|
super(), this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this._padding = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
|
|
6776
6776
|
}
|
|
@@ -7053,7 +7053,7 @@ function U(i, t, e, s) {
|
|
|
7053
7053
|
const n = i[t].call(e, s);
|
|
7054
7054
|
return typeof n > "u" ? En[t].call(e, s) : n;
|
|
7055
7055
|
}
|
|
7056
|
-
class Es extends
|
|
7056
|
+
class Es extends ut {
|
|
7057
7057
|
static positioners = qt;
|
|
7058
7058
|
constructor(t) {
|
|
7059
7059
|
super(), this.opacity = 0, this._active = [], this._eventPosition = void 0, this._size = void 0, this._cachedAnimations = void 0, this._tooltipItems = [], this.$animations = void 0, this.$context = void 0, this.chart = t.chart, this.options = t.options, this.dataPoints = void 0, this.title = void 0, this.beforeBody = void 0, this.body = void 0, this.afterBody = void 0, this.footer = void 0, this.xAlign = void 0, this.yAlign = void 0, this.x = void 0, this.y = void 0, this.height = void 0, this.width = void 0, this.caretX = void 0, this.caretY = void 0, this.labelColors = void 0, this.labelPointStyles = void 0, this.labelTextColors = void 0;
|
|
@@ -8008,7 +8008,7 @@ const Wc = li({
|
|
|
8008
8008
|
const r = () => {
|
|
8009
8009
|
if (!n.value) return;
|
|
8010
8010
|
const { type: c, data: h, options: d, plugins: u, datasetIdKey: f } = i, p = Bc(h, f), g = Fc(p, h);
|
|
8011
|
-
o.value = new
|
|
8011
|
+
o.value = new dt(n.value, {
|
|
8012
8012
|
type: c,
|
|
8013
8013
|
data: g,
|
|
8014
8014
|
options: {
|
|
@@ -8059,7 +8059,7 @@ const Wc = li({
|
|
|
8059
8059
|
}
|
|
8060
8060
|
});
|
|
8061
8061
|
function wi(i, t) {
|
|
8062
|
-
return
|
|
8062
|
+
return dt.register(t), li({
|
|
8063
8063
|
props: Fn,
|
|
8064
8064
|
setup(e, s) {
|
|
8065
8065
|
let { expose: n } = s;
|
|
@@ -8088,7 +8088,7 @@ const Hc = /* @__PURE__ */ wi("bar", ma), Vc = /* @__PURE__ */ wi("line", _a), N
|
|
|
8088
8088
|
},
|
|
8089
8089
|
setup(i) {
|
|
8090
8090
|
const t = i, e = Be(() => t.type === "Pie" ? Nc : t.type === "Line" ? Vc : Hc), s = Be(() => t.isShowLegend), n = Be(() => t.type === "Line" ? "inner" : "center");
|
|
8091
|
-
|
|
8091
|
+
dt.register(
|
|
8092
8092
|
gc,
|
|
8093
8093
|
Mc,
|
|
8094
8094
|
Ql,
|
|
@@ -8099,7 +8099,7 @@ const Hc = /* @__PURE__ */ wi("bar", ma), Vc = /* @__PURE__ */ wi("line", _a), N
|
|
|
8099
8099
|
Xl,
|
|
8100
8100
|
Ul,
|
|
8101
8101
|
uc
|
|
8102
|
-
),
|
|
8102
|
+
), dt.defaults.font.family = "base", dt.defaults.elements.point.radius = 4, dt.defaults.elements.point.hoverRadius = 5, dt.defaults.elements.line.borderWidth = 3.2, dt.defaults.elements.line.tension = 0.3;
|
|
8103
8103
|
const o = {
|
|
8104
8104
|
labels: [...t.labels],
|
|
8105
8105
|
datasets: [...t.datasets]
|
|
@@ -8109,7 +8109,7 @@ const Hc = /* @__PURE__ */ wi("bar", ma), Vc = /* @__PURE__ */ wi("line", _a), N
|
|
|
8109
8109
|
aspectRatio: 5 / 3,
|
|
8110
8110
|
ticks: { precision: 0 },
|
|
8111
8111
|
scales: {
|
|
8112
|
-
x: { ticks: { maxRotation: 0, minRotation: 0, align: n.value } },
|
|
8112
|
+
x: { ticks: { maxRotation: 0, minRotation: 0, align: n.value, autoSkipPadding: 30 } },
|
|
8113
8113
|
y: { beginAtZero: !0 }
|
|
8114
8114
|
},
|
|
8115
8115
|
plugins: {
|