@rotki/ui-library 2.6.3 → 2.7.0
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/components/accordions/accordion/RuiAccordion.vue.d.ts +2 -2
- package/dist/components/alerts/RuiAlert.vue.d.ts +3 -3
- package/dist/components/buttons/button/RuiButton.vue.d.ts +2 -2
- package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +2 -2
- package/dist/components/cards/RuiCard.vue.d.ts +6 -6
- package/dist/components/date-time-picker/use-input-handler.d.ts +2 -2
- package/dist/components/date-time-picker/use-keyboard-handler.d.ts +2 -2
- package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +18 -18
- package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +2 -2
- package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +2 -2
- package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +2 -2
- package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +4 -4
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +2 -2
- package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +3 -3
- package/dist/components/forms/text-field/RuiTextField.vue.d.ts +3 -3
- package/dist/components/index.es.js +2781 -2829
- package/dist/components/overlays/badge/RuiBadge.vue.d.ts +3 -3
- package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +2 -2
- package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +2 -2
- package/dist/components/overlays/menu/RuiMenu.vue.d.ts +3 -3
- package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +2 -2
- package/dist/components/overlays/notification/RuiNotification.vue.d.ts +2 -2
- package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +3 -3
- package/dist/components/tables/RuiDataTable.vue.d.ts +2 -2
- package/dist/components/tables/RuiExpandButton.vue.d.ts +2 -2
- package/dist/components/tables/RuiTableHead.vue.d.ts +2 -2
- package/dist/components/tabs/tab/RuiTab.vue.d.ts +1 -1
- package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +3 -3
- package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +2 -2
- package/dist/composables/icons.d.ts +1 -1
- package/dist/composables/index-D7DVd8pO.js +717 -0
- package/dist/composables/index.es.js +2 -1
- package/dist/composables/popper.d.ts +11 -11
- package/dist/composables/timeout-manager.d.ts +5 -0
- package/dist/consts/colors-D563Ic3q.js +1 -0
- package/dist/consts/forms/auto-complete/index-l0sNRNKZ.js +1 -0
- package/dist/consts/time-accuracy-BnKA5GyT.js +1 -0
- package/dist/i18n/keys-CNGXWOJX.js +1 -0
- package/dist/icons/icons_1.d.ts +12 -12
- package/dist/icons/icons_1.es.js +955 -954
- package/dist/icons/icons_2.d.ts +23 -23
- package/dist/icons/icons_2.es.js +1088 -1087
- package/dist/icons/icons_3.d.ts +29 -29
- package/dist/icons/icons_3.es.js +1100 -1099
- package/dist/icons/icons_4.d.ts +35 -0
- package/dist/icons/icons_4.es.js +447 -306
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.es.js +1577 -1541
- package/dist/index-cTPqOSmm.js +54 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1603 -1567
- package/dist/style.css +1 -1
- package/dist/theme/index.es.js +1 -0
- package/dist/types/index-CN6Ip1GL.js +1 -0
- package/dist/types/theme.d.ts +1 -1
- package/dist/utils/index-D-sENcA8.js +158 -0
- package/dist/vendor-X3mXJl51.js +1931 -0
- package/dist/web-types.json +16 -16
- package/package.json +38 -37
- package/dist/composables/index-DRJor0yQ.js +0 -727
- package/dist/index-BpodgU9n.js +0 -54
- package/dist/utils/index-lIBwzXNM.js +0 -157
- package/dist/vendor-Dt9dVBgA.js +0 -1896
package/dist/index-BpodgU9n.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { l as b, m, R as s, b as u, T as f, I as p } from "./composables/index-DRJor0yQ.js";
|
|
2
|
-
import "./types/index-CN6Ip1GL.js";
|
|
3
|
-
import r from "dayjs";
|
|
4
|
-
import { u as c, h as n, i as g } from "./vendor-Dt9dVBgA.js";
|
|
5
|
-
import "./components/index.es.js";
|
|
6
|
-
import "./consts/colors-D563Ic3q.js";
|
|
7
|
-
import "./i18n/keys-CNGXWOJX.js";
|
|
8
|
-
import "./icons/index.es.js";
|
|
9
|
-
import "./utils/index-lIBwzXNM.js";
|
|
10
|
-
import "./icons/icons_1.es.js";
|
|
11
|
-
import "./icons/icons_2.es.js";
|
|
12
|
-
import "./icons/icons_3.es.js";
|
|
13
|
-
import "./icons/icons_4.es.js";
|
|
14
|
-
function z(t) {
|
|
15
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
16
|
-
}
|
|
17
|
-
function C(t = {}) {
|
|
18
|
-
var l, a;
|
|
19
|
-
const { theme: o } = t, e = Object.freeze({
|
|
20
|
-
icons: m({
|
|
21
|
-
registeredIcons: (l = t.theme) == null ? void 0 : l.icons
|
|
22
|
-
}),
|
|
23
|
-
table: b((a = t.defaults) == null ? void 0 : a.table)
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
defaults: e,
|
|
27
|
-
install: (i) => {
|
|
28
|
-
u().init({ ...o }), i.provide(f, e.table), i.provide(p, e.icons), r.extend(c), r.extend(n), r.extend(g);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function F(t) {
|
|
33
|
-
if (!t || typeof t != "object")
|
|
34
|
-
throw new Error("i18nInstance must be an object");
|
|
35
|
-
if (!t.global || typeof t.global != "object")
|
|
36
|
-
throw new Error("i18nInstance must have a global property");
|
|
37
|
-
if (!t.global.t || typeof t.global.t != "function")
|
|
38
|
-
throw new Error("i18nInstance.global.t must be a function");
|
|
39
|
-
if (!t.global.te || typeof t.global.te != "function")
|
|
40
|
-
throw new Error("i18nInstance.global.te must be a function");
|
|
41
|
-
return {
|
|
42
|
-
install: (o) => {
|
|
43
|
-
o.provide(s, {
|
|
44
|
-
t: t.global.t.bind(t.global),
|
|
45
|
-
te: t.global.te.bind(t.global)
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
F as a,
|
|
52
|
-
C as c,
|
|
53
|
-
z as g
|
|
54
|
-
};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { logicOr as p } from "@vueuse/math";
|
|
2
|
-
import { computed as m, ref as b } from "vue";
|
|
3
|
-
import { get as g, objectPick as w, objectOmit as M, set as x } from "@vueuse/shared";
|
|
4
|
-
import { c as A } from "../vendor-Dt9dVBgA.js";
|
|
5
|
-
import { createGlobalState as C } from "@vueuse/core";
|
|
6
|
-
class I extends Error {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
super(e ?? "AssertionError"), this.name = "AssertionError";
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function K(t, e) {
|
|
12
|
-
if (!t)
|
|
13
|
-
throw new I(e);
|
|
14
|
-
}
|
|
15
|
-
function T(t, e) {
|
|
16
|
-
const r = m(() => {
|
|
17
|
-
let o = g(t);
|
|
18
|
-
return typeof o == "string" && (o = [o]), o.filter((f) => !!f);
|
|
19
|
-
}), s = m(() => {
|
|
20
|
-
let o = g(e);
|
|
21
|
-
return typeof o == "string" && (o = [o]), o.filter((f) => !!f);
|
|
22
|
-
}), i = m(() => g(r).length > 0), c = m(() => g(s).length > 0), a = p(i, c);
|
|
23
|
-
return {
|
|
24
|
-
formattedErrorMessages: r,
|
|
25
|
-
formattedSuccessMessages: s,
|
|
26
|
-
hasError: i,
|
|
27
|
-
hasMessages: a,
|
|
28
|
-
hasSuccess: c
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function O(t, { fractionDigits: e = 2 }) {
|
|
32
|
-
return new Intl.NumberFormat(void 0, {
|
|
33
|
-
maximumFractionDigits: e,
|
|
34
|
-
minimumFractionDigits: e
|
|
35
|
-
}).format(Number(t));
|
|
36
|
-
}
|
|
37
|
-
function V(t) {
|
|
38
|
-
return O(t, { fractionDigits: 0 });
|
|
39
|
-
}
|
|
40
|
-
function y(t) {
|
|
41
|
-
return Object.keys(t).filter(
|
|
42
|
-
(e) => e.startsWith("data-")
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
function W(t, e = ["class"]) {
|
|
46
|
-
return w(t, [...y(t), ...e]);
|
|
47
|
-
}
|
|
48
|
-
function q(t, e = ["class"]) {
|
|
49
|
-
return M(t, [...y(t), ...e]);
|
|
50
|
-
}
|
|
51
|
-
function G(t, e) {
|
|
52
|
-
return t && Object.keys(t).reduce((r, s) => (r[A(s)] = t[s], r), {});
|
|
53
|
-
}
|
|
54
|
-
function L(t) {
|
|
55
|
-
return t ? t.toString().toLowerCase().replace(/[^\da-z]/gi, "") : "";
|
|
56
|
-
}
|
|
57
|
-
function P(t) {
|
|
58
|
-
return t === void 0 || typeof t == "string" && isNaN(Number(t)) ? t : `${t}px`;
|
|
59
|
-
}
|
|
60
|
-
function h(t, e) {
|
|
61
|
-
if (t === e)
|
|
62
|
-
return !0;
|
|
63
|
-
if (t == null || e == null)
|
|
64
|
-
return t === e;
|
|
65
|
-
if (typeof t != typeof e)
|
|
66
|
-
return !1;
|
|
67
|
-
if (Array.isArray(t)) {
|
|
68
|
-
if (!Array.isArray(e) || t.length !== e.length)
|
|
69
|
-
return !1;
|
|
70
|
-
for (const [r, s] of t.entries())
|
|
71
|
-
if (!h(s, e[r]))
|
|
72
|
-
return !1;
|
|
73
|
-
return !0;
|
|
74
|
-
}
|
|
75
|
-
if (typeof t == "object") {
|
|
76
|
-
const r = Object.keys(t), s = Object.keys(e);
|
|
77
|
-
if (r.length !== s.length)
|
|
78
|
-
return !1;
|
|
79
|
-
for (const i of r)
|
|
80
|
-
if (!h(t[i], e[i]))
|
|
81
|
-
return !1;
|
|
82
|
-
return !0;
|
|
83
|
-
}
|
|
84
|
-
return !1;
|
|
85
|
-
}
|
|
86
|
-
const S = C(() => {
|
|
87
|
-
const t = b(0);
|
|
88
|
-
return { count: t, nextId: () => {
|
|
89
|
-
const r = g(t) + 1;
|
|
90
|
-
return x(t, r), r;
|
|
91
|
-
} };
|
|
92
|
-
});
|
|
93
|
-
function U(t = "") {
|
|
94
|
-
const { nextId: e } = S();
|
|
95
|
-
return `${t}-${e()}`;
|
|
96
|
-
}
|
|
97
|
-
const n = new Array(4);
|
|
98
|
-
function j(t) {
|
|
99
|
-
for (let e = 0; e < n.length; e++) n[e] = 0;
|
|
100
|
-
for (let e = 0; e < t.length; e++)
|
|
101
|
-
n[e % 4] = (n[e % 4] << 5) - n[e % 4] + t.charCodeAt(e);
|
|
102
|
-
}
|
|
103
|
-
function u() {
|
|
104
|
-
const t = n[0] ^ n[0] << 11;
|
|
105
|
-
return n[0] = n[1], n[1] = n[2], n[2] = n[3], n[3] = n[3] ^ n[3] >> 19 ^ t ^ t >> 8, (n[3] >>> 0) / (1 << 31 >>> 0);
|
|
106
|
-
}
|
|
107
|
-
function d() {
|
|
108
|
-
const t = Math.floor(u() * 360), e = `${u() * 60 + 40}%`, r = `${(u() + u() + u() + u()) * 25}%`;
|
|
109
|
-
return `hsl(${t},${e},${r})`;
|
|
110
|
-
}
|
|
111
|
-
function k(t) {
|
|
112
|
-
const e = t, r = t, s = Math.ceil(e / 2), i = e - s, c = [];
|
|
113
|
-
for (let a = 0; a < r; a++) {
|
|
114
|
-
let o = [];
|
|
115
|
-
for (let l = 0; l < s; l++)
|
|
116
|
-
o[l] = Math.floor(u() * 2.3);
|
|
117
|
-
const f = o.slice(0, i);
|
|
118
|
-
f.reverse(), o = o.concat(f);
|
|
119
|
-
for (const l of o) c.push(l);
|
|
120
|
-
}
|
|
121
|
-
return c;
|
|
122
|
-
}
|
|
123
|
-
function E(t) {
|
|
124
|
-
const e = {};
|
|
125
|
-
return e.seed = t.seed || Math.floor(Math.random() * 10 ** 16).toString(16), j(e.seed), e.size = t.size || 8, e.scale = t.scale || 8, e.color = t.color || d(), e.bgcolor = t.bgcolor || d(), e.spotColor = t.spotColor || d(), e;
|
|
126
|
-
}
|
|
127
|
-
function $(t, e) {
|
|
128
|
-
const r = E(t || {}), s = k(r.size), i = Math.sqrt(s.length);
|
|
129
|
-
e.width = e.height = r.size * r.scale;
|
|
130
|
-
const c = e.getContext("2d");
|
|
131
|
-
if (c) {
|
|
132
|
-
c.fillStyle = r.bgcolor, c.fillRect(0, 0, e.width, e.height), c.fillStyle = r.color;
|
|
133
|
-
for (const [a, o] of s.entries())
|
|
134
|
-
if (o) {
|
|
135
|
-
const f = Math.floor(a / i), l = a % i;
|
|
136
|
-
c.fillStyle = o === 1 ? r.color : r.spotColor, c.fillRect(l * r.scale, f * r.scale, r.scale, r.scale);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return e;
|
|
140
|
-
}
|
|
141
|
-
function B(t) {
|
|
142
|
-
const e = document.createElement("canvas");
|
|
143
|
-
return $(t, e), e.toDataURL("image/jpeg");
|
|
144
|
-
}
|
|
145
|
-
export {
|
|
146
|
-
q as a,
|
|
147
|
-
L as b,
|
|
148
|
-
K as c,
|
|
149
|
-
U as d,
|
|
150
|
-
P as e,
|
|
151
|
-
V as f,
|
|
152
|
-
W as g,
|
|
153
|
-
B as h,
|
|
154
|
-
h as i,
|
|
155
|
-
G as t,
|
|
156
|
-
T as u
|
|
157
|
-
};
|