alytus-ff 0.1.21 → 0.1.22
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/README.md +5 -1
- package/dist/App.vue.d.ts +11 -0
- package/dist/alytus-ff.js +58 -53
- package/dist/alytus-ff.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,12 +6,16 @@
|
|
|
6
6
|
docker-compose up
|
|
7
7
|
````
|
|
8
8
|
|
|
9
|
-
# Publish
|
|
9
|
+
# Publish new version
|
|
10
10
|
|
|
11
11
|
````commandline
|
|
12
|
+
? npm login
|
|
13
|
+
|
|
12
14
|
npm version patch # Increment patch version (1.0.0 → 1.0.1)
|
|
13
15
|
npm version minor # Increment minor version (1.0.0 → 1.1.0)
|
|
14
16
|
npm version major # Increment major version (1.0.0 → 2.0.0)
|
|
15
17
|
|
|
18
|
+
npm publish
|
|
16
19
|
|
|
20
|
+
git push && git push --tags
|
|
17
21
|
````
|
package/dist/App.vue.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
2
|
showDialog: import('vue').Ref<boolean, boolean>;
|
|
3
3
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
4
|
+
PageSubtitle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
subtitle: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
subtitle: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
15
|
UserAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
16
|
user: {
|
|
6
17
|
type: import('vue').PropType<import('.').IUser>;
|
package/dist/alytus-ff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const U =
|
|
1
|
+
import { defineComponent as f, createElementBlock as $, openBlock as a, createElementVNode as c, createCommentVNode as b, toDisplayString as p, renderSlot as u, resolveComponent as r, createBlock as m, withCtx as l, createVNode as _, normalizeClass as y, createTextVNode as N, computed as S } from "vue";
|
|
2
|
+
const U = f({
|
|
3
3
|
name: "PageTitle",
|
|
4
4
|
props: {
|
|
5
5
|
title: {
|
|
@@ -11,7 +11,7 @@ const U = m({
|
|
|
11
11
|
default: null
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
}),
|
|
14
|
+
}), v = (e, t) => {
|
|
15
15
|
const o = e.__vccOpts || e;
|
|
16
16
|
for (const [s, n] of t)
|
|
17
17
|
o[s] = n;
|
|
@@ -22,16 +22,16 @@ const U = m({
|
|
|
22
22
|
};
|
|
23
23
|
function B(e, t, o, s, n, i) {
|
|
24
24
|
return a(), $("div", q, [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
e.description ? (a(), $("div", w,
|
|
25
|
+
c("div", null, [
|
|
26
|
+
c("span", A, p(e.title), 1),
|
|
27
|
+
e.description ? (a(), $("div", w, p(e.description), 1)) : b("", !0)
|
|
28
28
|
]),
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
c("div", null, [
|
|
30
|
+
u(e.$slots, "buttons")
|
|
31
31
|
])
|
|
32
32
|
]);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const Q = /* @__PURE__ */ v(U, [["render", B]]), T = f({
|
|
35
35
|
name: "PageSubtitle",
|
|
36
36
|
props: {
|
|
37
37
|
subtitle: {
|
|
@@ -39,17 +39,22 @@ const K = /* @__PURE__ */ f(U, [["render", B]]), T = m({
|
|
|
39
39
|
required: !0
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
}), D = { class: "text-h6 font-weight-bold
|
|
43
|
-
function
|
|
44
|
-
return a(), $("div", D,
|
|
42
|
+
}), D = { class: "mt-7 mb-4 ff-page-subtitle" }, V = { class: "text-h6 font-weight-bold" };
|
|
43
|
+
function P(e, t, o, s, n, i) {
|
|
44
|
+
return a(), $("div", D, [
|
|
45
|
+
c("div", V, p(e.subtitle), 1),
|
|
46
|
+
c("div", null, [
|
|
47
|
+
u(e.$slots, "buttons")
|
|
48
|
+
])
|
|
49
|
+
]);
|
|
45
50
|
}
|
|
46
|
-
const
|
|
47
|
-
var
|
|
48
|
-
const
|
|
51
|
+
const W = /* @__PURE__ */ v(T, [["render", P]]);
|
|
52
|
+
var R = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
|
|
53
|
+
const E = f({
|
|
49
54
|
name: "CustomDialog",
|
|
50
55
|
methods: {
|
|
51
56
|
mdiClose() {
|
|
52
|
-
return
|
|
57
|
+
return R;
|
|
53
58
|
}
|
|
54
59
|
},
|
|
55
60
|
props: {
|
|
@@ -70,10 +75,10 @@ const R = m({
|
|
|
70
75
|
default: !1
|
|
71
76
|
}
|
|
72
77
|
}
|
|
73
|
-
}),
|
|
74
|
-
function
|
|
75
|
-
const
|
|
76
|
-
return a(),
|
|
78
|
+
}), F = { class: "close-btn" };
|
|
79
|
+
function I(e, t, o, s, n, i) {
|
|
80
|
+
const d = r("v-btn"), g = r("v-card-text"), h = r("v-spacer"), C = r("v-card-actions"), k = r("v-card"), L = r("v-dialog");
|
|
81
|
+
return a(), m(L, {
|
|
77
82
|
"model-value": e.value,
|
|
78
83
|
"max-width": "960",
|
|
79
84
|
persistent: e.persistent,
|
|
@@ -82,11 +87,11 @@ function F(e, t, o, s, n, i) {
|
|
|
82
87
|
"onUpdate:modelValue": t[1] || (t[1] = (z) => e.$emit("close"))
|
|
83
88
|
}, {
|
|
84
89
|
default: l(() => [
|
|
85
|
-
|
|
90
|
+
u(e.$slots, "card", {}, () => [
|
|
86
91
|
_(k, { title: e.title }, {
|
|
87
92
|
append: l(() => [
|
|
88
|
-
|
|
89
|
-
_(
|
|
93
|
+
c("div", F, [
|
|
94
|
+
_(d, {
|
|
90
95
|
variant: "text",
|
|
91
96
|
icon: e.mdiClose(),
|
|
92
97
|
onClick: t[0] || (t[0] = (z) => e.$emit("close"))
|
|
@@ -96,15 +101,15 @@ function F(e, t, o, s, n, i) {
|
|
|
96
101
|
default: l(() => [
|
|
97
102
|
_(g, null, {
|
|
98
103
|
default: l(() => [
|
|
99
|
-
|
|
104
|
+
u(e.$slots, "default")
|
|
100
105
|
]),
|
|
101
106
|
_: 3
|
|
102
107
|
}),
|
|
103
|
-
e.noFooter ?
|
|
108
|
+
e.noFooter ? b("", !0) : (a(), m(C, { key: 0 }, {
|
|
104
109
|
default: l(() => [
|
|
105
|
-
|
|
110
|
+
u(e.$slots, "left-footer"),
|
|
106
111
|
_(h),
|
|
107
|
-
|
|
112
|
+
u(e.$slots, "footer")
|
|
108
113
|
]),
|
|
109
114
|
_: 3
|
|
110
115
|
}))
|
|
@@ -116,7 +121,7 @@ function F(e, t, o, s, n, i) {
|
|
|
116
121
|
_: 3
|
|
117
122
|
}, 8, ["model-value", "persistent", "fullscreen"]);
|
|
118
123
|
}
|
|
119
|
-
const
|
|
124
|
+
const X = /* @__PURE__ */ v(E, [["render", I]]), O = f({
|
|
120
125
|
name: "AccountAvatar",
|
|
121
126
|
props: {
|
|
122
127
|
item: {
|
|
@@ -129,19 +134,19 @@ const W = /* @__PURE__ */ f(R, [["render", F]]), I = m({
|
|
|
129
134
|
}
|
|
130
135
|
}
|
|
131
136
|
});
|
|
132
|
-
function
|
|
133
|
-
const
|
|
134
|
-
return a(),
|
|
135
|
-
class:
|
|
137
|
+
function M(e, t, o, s, n, i) {
|
|
138
|
+
const d = r("v-avatar");
|
|
139
|
+
return a(), m(d, {
|
|
140
|
+
class: y(`ff-avatar avatar-${e.size}-${e.item.initials.length >= 3 ? "l" : "s"}`),
|
|
136
141
|
size: e.size
|
|
137
142
|
}, {
|
|
138
143
|
default: l(() => [
|
|
139
|
-
N(
|
|
144
|
+
N(p(e.item.initials), 1)
|
|
140
145
|
]),
|
|
141
146
|
_: 1
|
|
142
147
|
}, 8, ["class", "size"]);
|
|
143
148
|
}
|
|
144
|
-
const
|
|
149
|
+
const Y = /* @__PURE__ */ v(O, [["render", M]]), Z = (e) => e.surname ? `${e.name} ${e.surname}` : e.name, G = f({
|
|
145
150
|
name: "UserAvatar",
|
|
146
151
|
props: {
|
|
147
152
|
user: {
|
|
@@ -158,41 +163,41 @@ const X = /* @__PURE__ */ f(I, [["render", O]]), M = (e) => e.surname ? `${e.nam
|
|
|
158
163
|
}
|
|
159
164
|
},
|
|
160
165
|
setup(e) {
|
|
161
|
-
return { fullName: S(() =>
|
|
166
|
+
return { fullName: S(() => Z(e.user)) };
|
|
162
167
|
}
|
|
163
|
-
}),
|
|
164
|
-
function
|
|
165
|
-
const
|
|
166
|
-
return a(),
|
|
168
|
+
}), H = { key: 1 };
|
|
169
|
+
function J(e, t, o, s, n, i) {
|
|
170
|
+
const d = r("v-img"), g = r("v-avatar");
|
|
171
|
+
return a(), m(g, {
|
|
167
172
|
color: e.user.avatar_thumb ? "light_grey_bg" : e.user.color ?? "primary",
|
|
168
|
-
class:
|
|
173
|
+
class: y(`avatar-${e.size}-${e.user.initials.length >= 3 ? "l" : "s"}`),
|
|
169
174
|
size: e.size
|
|
170
175
|
}, {
|
|
171
176
|
default: l(() => [
|
|
172
|
-
e.user.avatar_thumb ? (a(),
|
|
177
|
+
e.user.avatar_thumb ? (a(), m(d, {
|
|
173
178
|
key: 0,
|
|
174
179
|
alt: e.fullName,
|
|
175
180
|
src: `${e.baseUrl}/${e.user.avatar_thumb}`
|
|
176
|
-
}, null, 8, ["alt", "src"])) : (a(), $("span",
|
|
181
|
+
}, null, 8, ["alt", "src"])) : (a(), $("span", H, p(e.user.initials), 1))
|
|
177
182
|
]),
|
|
178
183
|
_: 1
|
|
179
184
|
}, 8, ["color", "class", "size"]);
|
|
180
185
|
}
|
|
181
|
-
const
|
|
186
|
+
const j = /* @__PURE__ */ v(G, [["render", J]]), x = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "", ee = (e) => {
|
|
182
187
|
let t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
183
188
|
return t ? decodeURIComponent(t[3]) : null;
|
|
184
|
-
},
|
|
189
|
+
}, te = (e, t, o, s) => {
|
|
185
190
|
let n, i;
|
|
186
191
|
return s == null && (s = "/"), i = "", o && (n = /* @__PURE__ */ new Date(), n.setTime(n.getTime() + o * 24 * 60 * 60 * 1e3), i = "; expires=" + n.toUTCString()), document.cookie = encodeURIComponent(e) + "=" + encodeURIComponent(t) + i + "; path=" + s, !0;
|
|
187
192
|
};
|
|
188
193
|
export {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
Y as AccountAvatar,
|
|
195
|
+
X as CustomDialog,
|
|
196
|
+
W as PageSubtitle,
|
|
197
|
+
Q as PageTitle,
|
|
198
|
+
j as UserAvatar,
|
|
199
|
+
Z as formatFullName,
|
|
200
|
+
ee as getCookie,
|
|
201
|
+
x as nl2br,
|
|
202
|
+
te as setCookie
|
|
198
203
|
};
|
package/dist/alytus-ff.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["Alytus FF"]={},n.Vue))})(this,function(n,e){"use strict";const m=e.defineComponent({name:"PageTitle",props:{title:{type:String,required:!0},description:{type:String,default:null}}}),i=(t,o)=>{const s=t.__vccOpts||t;for(const[
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["Alytus FF"]={},n.Vue))})(this,function(n,e){"use strict";const m=e.defineComponent({name:"PageTitle",props:{title:{type:String,required:!0},description:{type:String,default:null}}}),i=(t,o)=>{const s=t.__vccOpts||t;for(const[l,r]of o)s[l]=r;return s},f={class:"mt-6 mb-3 ff-page-title"},u={class:"text-h5 ff-title"},_={key:0,class:"text-body-2 ff-description"};function $(t,o,s,l,r,a){return e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",null,[e.createElementVNode("span",u,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("div",_,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"buttons")])])}const g=i(m,[["render",$]]),C=e.defineComponent({name:"PageSubtitle",props:{subtitle:{type:String,required:!0}}}),y={class:"mt-7 mb-4 ff-page-subtitle"},h={class:"text-h6 font-weight-bold"};function k(t,o,s,l,r,a){return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",h,e.toDisplayString(t.subtitle),1),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"buttons")])])}const b=i(C,[["render",k]]);var S="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";const B=e.defineComponent({name:"CustomDialog",methods:{mdiClose(){return S}},props:{value:{type:Boolean,required:!0},title:{type:String,default:null},persistent:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1}}}),N={class:"close-btn"};function V(t,o,s,l,r,a){const c=e.resolveComponent("v-btn"),d=e.resolveComponent("v-card-text"),O=e.resolveComponent("v-spacer"),R=e.resolveComponent("v-card-actions"),I=e.resolveComponent("v-card"),M=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(M,{"model-value":t.value,"max-width":"960",persistent:t.persistent,fullscreen:t.$vuetify.display.smAndDown,class:"ff-dialog","onUpdate:modelValue":o[1]||(o[1]=j=>t.$emit("close"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"card",{},()=>[e.createVNode(I,{title:t.title},{append:e.withCtx(()=>[e.createElementVNode("div",N,[e.createVNode(c,{variant:"text",icon:t.mdiClose(),onClick:o[0]||(o[0]=j=>t.$emit("close"))},null,8,["icon"])])]),default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}),t.noFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(R,{key:0},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"left-footer"),e.createVNode(O),e.renderSlot(t.$slots,"footer")]),_:3}))]),_:3},8,["title"])])]),_:3},8,["model-value","persistent","fullscreen"])}const w=i(B,[["render",V]]),z=e.defineComponent({name:"AccountAvatar",props:{item:{type:Object,required:!0},size:{type:Number,default:32}}});function L(t,o,s,l,r,a){const c=e.resolveComponent("v-avatar");return e.openBlock(),e.createBlock(c,{class:e.normalizeClass(`ff-avatar avatar-${t.size}-${t.item.initials.length>=3?"l":"s"}`),size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.item.initials),1)]),_:1},8,["class","size"])}const A=i(z,[["render",L]]),p=t=>t.surname?`${t.name} ${t.surname}`:t.name,E=e.defineComponent({name:"UserAvatar",props:{user:{type:Object,required:!0},size:{type:Number,required:!0},baseUrl:{type:String,required:!0}},setup(t){return{fullName:e.computed(()=>p(t.user))}}}),D={key:1};function T(t,o,s,l,r,a){const c=e.resolveComponent("v-img"),d=e.resolveComponent("v-avatar");return e.openBlock(),e.createBlock(d,{color:t.user.avatar_thumb?"light_grey_bg":t.user.color??"primary",class:e.normalizeClass(`avatar-${t.size}-${t.user.initials.length>=3?"l":"s"}`),size:t.size},{default:e.withCtx(()=>[t.user.avatar_thumb?(e.openBlock(),e.createBlock(c,{key:0,alt:t.fullName,src:`${t.baseUrl}/${t.user.avatar_thumb}`},null,8,["alt","src"])):(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(t.user.initials),1))]),_:1},8,["color","class","size"])}const U=i(E,[["render",T]]),q=t=>t?t.replace(/(?:\r\n|\r|\n)/g,"<br>"):"",P=t=>{let o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},F=(t,o,s,l)=>{let r,a;return l==null&&(l="/"),a="",s&&(r=new Date,r.setTime(r.getTime()+s*24*60*60*1e3),a="; expires="+r.toUTCString()),document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(o)+a+"; path="+l,!0};n.AccountAvatar=A,n.CustomDialog=w,n.PageSubtitle=b,n.PageTitle=g,n.UserAvatar=U,n.formatFullName=p,n.getCookie=P,n.nl2br=q,n.setCookie=F,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|