alytus-ff 0.1.24 → 0.1.25

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