@finmars/ui 1.0.13 → 1.0.15
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/finmars-ui.css +1 -1
- package/dist/finmars-ui.es.js +47 -48
- package/dist/finmars-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/finmars-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as
|
|
1
|
+
import { Fragment as le, capitalize as ma, reactive as Ye, computed as g, watchEffect as Ke, toRefs as ga, shallowRef as ne, warn as vn, getCurrentInstance as xi, inject as ye, ref as J, unref as G, provide as Be, defineComponent as Ii, camelize as ha, h as _t, onBeforeUnmount as _e, watch as Y, readonly as ya, onScopeDispose as be, effectScope as mn, toRaw as ba, TransitionGroup as gn, Transition as Te, createVNode as d, mergeProps as X, isRef as Ze, toRef as q, onBeforeMount as Ca, nextTick as Pe, withDirectives as Fe, resolveDirective as Mt, vShow as hn, onMounted as Rt, onUpdated as Vi, Text as Pi, resolveDynamicComponent as ka, Teleport as Li, onDeactivated as $i, openBlock as j, createElementBlock as ie, normalizeStyle as st, normalizeClass as He, renderSlot as ct, createCommentVNode as ge, createBlock as fe, resolveComponent as Ai, onUnmounted as Oi, withCtx as N, createTextVNode as ke, toDisplayString as Se, createElementVNode as ue, renderList as Pt } from "vue";
|
|
2
2
|
import { createVuetify as Ei } from "vuetify";
|
|
3
3
|
function _(e, t) {
|
|
4
4
|
return (n) => Object.keys(e).reduce((a, i) => {
|
|
@@ -132,7 +132,7 @@ function We() {
|
|
|
132
132
|
return a;
|
|
133
133
|
}
|
|
134
134
|
function Ia(e) {
|
|
135
|
-
return e.map((t) => t.type ===
|
|
135
|
+
return e.map((t) => t.type === le ? Ia(t.children) : t).flat();
|
|
136
136
|
}
|
|
137
137
|
function Re() {
|
|
138
138
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
@@ -1508,7 +1508,7 @@ const wo = {
|
|
|
1508
1508
|
"aria-label": e.alt,
|
|
1509
1509
|
role: e.alt ? "img" : void 0
|
|
1510
1510
|
}), {
|
|
1511
|
-
additional: () => d(
|
|
1511
|
+
additional: () => d(le, null, [d(T, null, null), d(B, null, null), d(F, null, null), d(I, null, null), d(D, null, null)]),
|
|
1512
1512
|
default: a.default
|
|
1513
1513
|
}), [[Mt("intersect"), {
|
|
1514
1514
|
handler: h,
|
|
@@ -1575,7 +1575,7 @@ function et(e) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
const Vo = ["elevated", "flat", "tonal", "outlined", "text", "plain"];
|
|
1577
1577
|
function In(e, t) {
|
|
1578
|
-
return d(
|
|
1578
|
+
return d(le, null, [e && d("span", {
|
|
1579
1579
|
key: "overlay",
|
|
1580
1580
|
class: `${t}__overlay`
|
|
1581
1581
|
}, null), d("span", {
|
|
@@ -3139,7 +3139,7 @@ const ra = U()({
|
|
|
3139
3139
|
onBlur: $,
|
|
3140
3140
|
id: p.value
|
|
3141
3141
|
}
|
|
3142
|
-
})) ?? d(
|
|
3142
|
+
})) ?? d(le, null, [r.value && d(he, {
|
|
3143
3143
|
key: "icon",
|
|
3144
3144
|
icon: r.value
|
|
3145
3145
|
}, null), F])]), [[Mt("ripple"), e.ripple && [!e.disabled && !e.readonly, null, ["center", "circle"]]]])]), B && d(tr, {
|
|
@@ -4375,12 +4375,12 @@ const yi = _({
|
|
|
4375
4375
|
function ae() {
|
|
4376
4376
|
i("afterEnter");
|
|
4377
4377
|
}
|
|
4378
|
-
function
|
|
4378
|
+
function se() {
|
|
4379
4379
|
h(), i("afterLeave");
|
|
4380
4380
|
}
|
|
4381
4381
|
return Q(() => {
|
|
4382
4382
|
var H;
|
|
4383
|
-
return d(
|
|
4383
|
+
return d(le, null, [(H = n.activator) == null ? void 0 : H.call(n, {
|
|
4384
4384
|
isActive: c.value,
|
|
4385
4385
|
targetRef: I,
|
|
4386
4386
|
props: X({
|
|
@@ -4411,7 +4411,7 @@ const yi = _({
|
|
|
4411
4411
|
transition: e.transition,
|
|
4412
4412
|
target: T.value,
|
|
4413
4413
|
onAfterEnter: ae,
|
|
4414
|
-
onAfterLeave:
|
|
4414
|
+
onAfterLeave: se
|
|
4415
4415
|
}, {
|
|
4416
4416
|
default: () => {
|
|
4417
4417
|
var ee;
|
|
@@ -4700,7 +4700,7 @@ const Hr = _({
|
|
|
4700
4700
|
icon: e.prependIcon
|
|
4701
4701
|
}
|
|
4702
4702
|
}
|
|
4703
|
-
}, n.prepend) : d(
|
|
4703
|
+
}, n.prepend) : d(le, null, [e.prependAvatar && d(ut, {
|
|
4704
4704
|
key: "prepend-avatar",
|
|
4705
4705
|
density: e.density,
|
|
4706
4706
|
image: e.prependAvatar
|
|
@@ -4740,7 +4740,7 @@ const Hr = _({
|
|
|
4740
4740
|
icon: e.appendIcon
|
|
4741
4741
|
}
|
|
4742
4742
|
}
|
|
4743
|
-
}, n.append) : d(
|
|
4743
|
+
}, n.append) : d(le, null, [e.appendIcon && d(he, {
|
|
4744
4744
|
key: "append-icon",
|
|
4745
4745
|
density: e.density,
|
|
4746
4746
|
icon: e.appendIcon
|
|
@@ -5010,7 +5010,7 @@ const Hr = _({
|
|
|
5010
5010
|
backgroundColorClasses: S,
|
|
5011
5011
|
backgroundColorStyles: C
|
|
5012
5012
|
} = w;
|
|
5013
|
-
return d(
|
|
5013
|
+
return d(le, null, [E, d("div", {
|
|
5014
5014
|
class: ["v-switch__thumb", {
|
|
5015
5015
|
"v-switch__thumb--filled": k || e.loading
|
|
5016
5016
|
}, e.inset || f ? void 0 : S.value],
|
|
@@ -5150,7 +5150,7 @@ const Hr = _({
|
|
|
5150
5150
|
}), t({
|
|
5151
5151
|
isActive: o,
|
|
5152
5152
|
isNestedActive: r
|
|
5153
|
-
}), (m, v) => (j(), ie(
|
|
5153
|
+
}), (m, v) => (j(), ie(le, null, [
|
|
5154
5154
|
e.to && !e.children ? (j(), fe(ka(u.value), {
|
|
5155
5155
|
key: 0,
|
|
5156
5156
|
to: e.to,
|
|
@@ -5193,7 +5193,7 @@ const Hr = _({
|
|
|
5193
5193
|
key: 2,
|
|
5194
5194
|
class: He(["sidebar-item", e.classes])
|
|
5195
5195
|
}, [
|
|
5196
|
-
|
|
5196
|
+
ue("div", null, [
|
|
5197
5197
|
d(St, {
|
|
5198
5198
|
onClick: v[0] || (v[0] = (y) => a.value = !a.value),
|
|
5199
5199
|
isActive: e.isOnlyIcon && r.value,
|
|
@@ -5208,8 +5208,8 @@ const Hr = _({
|
|
|
5208
5208
|
_: 1
|
|
5209
5209
|
}, 8, ["isActive", "isOnlyIcon", "appendIcon", "icon", "level"])
|
|
5210
5210
|
]),
|
|
5211
|
-
Fe(
|
|
5212
|
-
(j(!0), ie(
|
|
5211
|
+
Fe(ue("div", null, [
|
|
5212
|
+
(j(!0), ie(le, null, Pt(e.children, (y, h) => (j(), fe(bi, {
|
|
5213
5213
|
key: y.key,
|
|
5214
5214
|
ref_for: !0,
|
|
5215
5215
|
ref: f(h),
|
|
@@ -5276,7 +5276,7 @@ const Hr = _({
|
|
|
5276
5276
|
_: 1
|
|
5277
5277
|
}, 8, ["variant", "disabled", "size"]));
|
|
5278
5278
|
}
|
|
5279
|
-
}, il = { class: "overflow-y-scroll max-h-[calc(100vh-132px)]" }, ol = { class: "mt-auto flex grow-0 items-center justify-end h-[48px] px-[12px] py-[16px] border-solid border-t border-t-sidenavFooter-borderColor bg-sidenavFooter-backgroundColor" }, rl = {
|
|
5279
|
+
}, il = { class: "scroll-variant-thin overflow-y-scroll max-h-[calc(100vh-132px)]" }, ol = { class: "mt-auto flex grow-0 items-center justify-end h-[48px] px-[12px] py-[16px] border-solid border-t border-t-sidenavFooter-borderColor bg-sidenavFooter-backgroundColor" }, rl = {
|
|
5280
5280
|
__name: "Navigation",
|
|
5281
5281
|
props: {
|
|
5282
5282
|
isFloat: Boolean,
|
|
@@ -5306,8 +5306,8 @@ const Hr = _({
|
|
|
5306
5306
|
}
|
|
5307
5307
|
]])
|
|
5308
5308
|
}, [
|
|
5309
|
-
|
|
5310
|
-
(j(!0), ie(
|
|
5309
|
+
ue("div", il, [
|
|
5310
|
+
(j(!0), ie(le, null, Pt(e.items, (u) => (j(), fe(bi, {
|
|
5311
5311
|
key: u.key,
|
|
5312
5312
|
label: u.label,
|
|
5313
5313
|
icon: u.icon,
|
|
@@ -5323,7 +5323,7 @@ const Hr = _({
|
|
|
5323
5323
|
level: 0
|
|
5324
5324
|
}, null, 8, ["label", "icon", "action", "to", "href", "style", "classes", "children", "isOnlyIcon", "alternativeLink", "route"]))), 128))
|
|
5325
5325
|
]),
|
|
5326
|
-
|
|
5326
|
+
ue("div", ol, [
|
|
5327
5327
|
d(fn, {
|
|
5328
5328
|
style: {
|
|
5329
5329
|
color: "var(--sidenavToggleButton-color)"
|
|
@@ -5350,7 +5350,7 @@ const Hr = _({
|
|
|
5350
5350
|
})
|
|
5351
5351
|
], 2));
|
|
5352
5352
|
}
|
|
5353
|
-
}, Ci = /* @__PURE__ */ On(rl, [["__scopeId", "data-v-
|
|
5353
|
+
}, Ci = /* @__PURE__ */ On(rl, [["__scopeId", "data-v-b9e2b474"]]), ll = {
|
|
5354
5354
|
__name: "NavigationPortal",
|
|
5355
5355
|
props: {
|
|
5356
5356
|
isFloat: {
|
|
@@ -5443,7 +5443,7 @@ const Hr = _({
|
|
|
5443
5443
|
label: "Portfolios",
|
|
5444
5444
|
action: void 0,
|
|
5445
5445
|
to: "",
|
|
5446
|
-
href: i("/data/
|
|
5446
|
+
href: i("/data/portfolio")
|
|
5447
5447
|
},
|
|
5448
5448
|
{
|
|
5449
5449
|
key: "registers",
|
|
@@ -5744,7 +5744,7 @@ const Hr = _({
|
|
|
5744
5744
|
label: "Explorer",
|
|
5745
5745
|
icon: "mdi-folder-outline",
|
|
5746
5746
|
action: void 0,
|
|
5747
|
-
to: o("/explorer"),
|
|
5747
|
+
to: o("/explorer", n.value.params),
|
|
5748
5748
|
classes: "separator-side-nav",
|
|
5749
5749
|
href: ""
|
|
5750
5750
|
},
|
|
@@ -6289,7 +6289,7 @@ const Hr = _({
|
|
|
6289
6289
|
image: String
|
|
6290
6290
|
},
|
|
6291
6291
|
setup(e) {
|
|
6292
|
-
return (t, n) => (j(), ie(
|
|
6292
|
+
return (t, n) => (j(), ie(le, null, [
|
|
6293
6293
|
e.image ? (j(), fe(G(ut), {
|
|
6294
6294
|
key: 0,
|
|
6295
6295
|
image: e.image,
|
|
@@ -6411,7 +6411,7 @@ var pi = { exports: {} };
|
|
|
6411
6411
|
return M ? Ae : Ae.endOf(u);
|
|
6412
6412
|
}, Z = function(we, oe) {
|
|
6413
6413
|
return P.w(x.toDate()[we].apply(x.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(oe)), x);
|
|
6414
|
-
}, K = this.$W, ae = this.$M,
|
|
6414
|
+
}, K = this.$W, ae = this.$M, se = this.$D, H = "set" + (this.$u ? "UTC" : "");
|
|
6415
6415
|
switch (R) {
|
|
6416
6416
|
case v:
|
|
6417
6417
|
return M ? z(1, 0) : z(31, 11);
|
|
@@ -6419,7 +6419,7 @@ var pi = { exports: {} };
|
|
|
6419
6419
|
return M ? z(1, ae) : z(0, ae + 1);
|
|
6420
6420
|
case c:
|
|
6421
6421
|
var ee = this.$locale().weekStart || 0, Ce = (K < ee ? K + 7 : K) - ee;
|
|
6422
|
-
return z(M ?
|
|
6422
|
+
return z(M ? se - Ce : se + (6 - Ce), ae);
|
|
6423
6423
|
case u:
|
|
6424
6424
|
case y:
|
|
6425
6425
|
return Z(H + "Hours", 0);
|
|
@@ -6449,8 +6449,8 @@ var pi = { exports: {} };
|
|
|
6449
6449
|
var x, M = this;
|
|
6450
6450
|
C = Number(C);
|
|
6451
6451
|
var R = P.p(A), z = function(ae) {
|
|
6452
|
-
var
|
|
6453
|
-
return P.w(
|
|
6452
|
+
var se = F(M);
|
|
6453
|
+
return P.w(se.date(se.date() + Math.round(ae * C)), M);
|
|
6454
6454
|
};
|
|
6455
6455
|
if (R === f) return this.set(f, this.$M + C);
|
|
6456
6456
|
if (R === v) return this.set(v, this.$y + C);
|
|
@@ -6463,7 +6463,7 @@ var pi = { exports: {} };
|
|
|
6463
6463
|
}, S.format = function(C) {
|
|
6464
6464
|
var A = this, x = this.$locale();
|
|
6465
6465
|
if (!this.isValid()) return x.invalidDate || h;
|
|
6466
|
-
var M = C || "YYYY-MM-DDTHH:mm:ssZ", R = P.z(this), z = this.$H, Z = this.$m, K = this.$M, ae = x.weekdays,
|
|
6466
|
+
var M = C || "YYYY-MM-DDTHH:mm:ssZ", R = P.z(this), z = this.$H, Z = this.$m, K = this.$M, ae = x.weekdays, se = x.months, H = x.meridiem, ee = function(oe, Ae, tt, yt) {
|
|
6467
6467
|
return oe && (oe[Ae] || oe(A, M)) || tt[Ae].slice(0, yt);
|
|
6468
6468
|
}, Ce = function(oe) {
|
|
6469
6469
|
return P.s(z % 12 || 12, oe, "0");
|
|
@@ -6483,9 +6483,9 @@ var pi = { exports: {} };
|
|
|
6483
6483
|
case "MM":
|
|
6484
6484
|
return P.s(K + 1, 2, "0");
|
|
6485
6485
|
case "MMM":
|
|
6486
|
-
return ee(x.monthsShort, K,
|
|
6486
|
+
return ee(x.monthsShort, K, se, 3);
|
|
6487
6487
|
case "MMMM":
|
|
6488
|
-
return ee(
|
|
6488
|
+
return ee(se, K);
|
|
6489
6489
|
case "D":
|
|
6490
6490
|
return A.$D;
|
|
6491
6491
|
case "DD":
|
|
@@ -6529,18 +6529,18 @@ var pi = { exports: {} };
|
|
|
6529
6529
|
}, S.utcOffset = function() {
|
|
6530
6530
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6531
6531
|
}, S.diff = function(C, A, x) {
|
|
6532
|
-
var M, R = this, z = P.p(A), Z = F(C), K = (Z.utcOffset() - this.utcOffset()) * a, ae = this - Z,
|
|
6532
|
+
var M, R = this, z = P.p(A), Z = F(C), K = (Z.utcOffset() - this.utcOffset()) * a, ae = this - Z, se = function() {
|
|
6533
6533
|
return P.m(R, Z);
|
|
6534
6534
|
};
|
|
6535
6535
|
switch (z) {
|
|
6536
6536
|
case v:
|
|
6537
|
-
M =
|
|
6537
|
+
M = se() / 12;
|
|
6538
6538
|
break;
|
|
6539
6539
|
case f:
|
|
6540
|
-
M =
|
|
6540
|
+
M = se();
|
|
6541
6541
|
break;
|
|
6542
6542
|
case m:
|
|
6543
|
-
M =
|
|
6543
|
+
M = se() / 3;
|
|
6544
6544
|
break;
|
|
6545
6545
|
case c:
|
|
6546
6546
|
M = (ae - K) / 6048e5;
|
|
@@ -6693,7 +6693,6 @@ const yl = /* @__PURE__ */ Si(hl), bl = { class: "flex w-full items-center max-h
|
|
|
6693
6693
|
return at().diff(at(o), "hours") > 12 ? at(o).format("DD.MM.YYYY HH:mm") : at(o).fromNow();
|
|
6694
6694
|
}
|
|
6695
6695
|
return (o, r) => (j(), ie("header", bl, [
|
|
6696
|
-
r[11] || (r[11] = le("div", null, null, -1)),
|
|
6697
6696
|
d(vl, {
|
|
6698
6697
|
logo: e.logo,
|
|
6699
6698
|
class: "mr-12"
|
|
@@ -6719,20 +6718,20 @@ const yl = /* @__PURE__ */ Si(hl), bl = { class: "flex w-full items-center max-h
|
|
|
6719
6718
|
default: N(() => [
|
|
6720
6719
|
d(G(lt), null, {
|
|
6721
6720
|
default: N(() => [
|
|
6722
|
-
|
|
6723
|
-
e.notifications.length ? (j(), ie(
|
|
6724
|
-
(j(!0), ie(
|
|
6721
|
+
ue("div", Cl, [
|
|
6722
|
+
e.notifications.length ? (j(), ie(le, { key: 0 }, [
|
|
6723
|
+
(j(!0), ie(le, null, Pt(e.notifications, (l, s) => (j(), ie("div", {
|
|
6725
6724
|
class: "fm_message_item",
|
|
6726
6725
|
key: s
|
|
6727
6726
|
}, [
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6727
|
+
ue("div", kl, [
|
|
6728
|
+
ue("div", Sl, Se(i(l.created)), 1),
|
|
6729
|
+
ue("div", pl, Se(a[l.section]), 1)
|
|
6731
6730
|
]),
|
|
6732
|
-
|
|
6733
|
-
|
|
6731
|
+
ue("div", wl, Se(l.title), 1),
|
|
6732
|
+
ue("div", xl, Se(l.description.length > 65 ? l.description.slice(0, 65) + "..." : l.description), 1)
|
|
6734
6733
|
]))), 128)),
|
|
6735
|
-
|
|
6734
|
+
ue("div", Il, [
|
|
6736
6735
|
d(Oe, {
|
|
6737
6736
|
to: "/home",
|
|
6738
6737
|
type: "action"
|
|
@@ -6767,7 +6766,7 @@ const yl = /* @__PURE__ */ Si(hl), bl = { class: "flex w-full items-center max-h
|
|
|
6767
6766
|
default: N(() => [
|
|
6768
6767
|
d(G(lt), null, {
|
|
6769
6768
|
default: N(() => [
|
|
6770
|
-
|
|
6769
|
+
ue("div", Pl, [
|
|
6771
6770
|
d(Oe, {
|
|
6772
6771
|
href: e.documentationUrl,
|
|
6773
6772
|
onClick: r[1] || (r[1] = (l) => n("documentation")),
|
|
@@ -6814,7 +6813,7 @@ const yl = /* @__PURE__ */ Si(hl), bl = { class: "flex w-full items-center max-h
|
|
|
6814
6813
|
default: N(() => [
|
|
6815
6814
|
d(G(lt), null, {
|
|
6816
6815
|
default: N(() => [
|
|
6817
|
-
(j(!0), ie(
|
|
6816
|
+
(j(!0), ie(le, null, Pt(e.workspaces, (l, s) => (j(), ie("div", {
|
|
6818
6817
|
key: s,
|
|
6819
6818
|
onClick: (u) => n("setCurrent", l)
|
|
6820
6819
|
}, Se(l.name), 9, Ll))), 128))
|
|
@@ -6833,7 +6832,7 @@ const yl = /* @__PURE__ */ Si(hl), bl = { class: "flex w-full items-center max-h
|
|
|
6833
6832
|
default: N(() => [
|
|
6834
6833
|
d(ml, { image: e.avatar }, {
|
|
6835
6834
|
default: N(() => [
|
|
6836
|
-
|
|
6835
|
+
ue("span", $l, Se(e.letters), 1)
|
|
6837
6836
|
]),
|
|
6838
6837
|
_: 1
|
|
6839
6838
|
}, 8, ["image"])
|
|
@@ -6846,7 +6845,7 @@ const yl = /* @__PURE__ */ Si(hl), bl = { class: "flex w-full items-center max-h
|
|
|
6846
6845
|
default: N(() => [
|
|
6847
6846
|
d(G(lt), null, {
|
|
6848
6847
|
default: N(() => [
|
|
6849
|
-
|
|
6848
|
+
ue("div", Al, [
|
|
6850
6849
|
d(Oe, {
|
|
6851
6850
|
onClick: r[3] || (r[3] = (l) => n("profile")),
|
|
6852
6851
|
variant: "text",
|