@nmorph/nmorph-ui-kit 3.0.6 → 3.0.7

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,7 +1,7 @@
1
1
  import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
- viewBox: "0 0 1024 1024"
4
+ viewBox: "0 0 1024 1088"
5
5
  };
6
6
  function c(l, e) {
7
7
  return t(), o("svg", n, [...e[0] || (e[0] = [
@@ -9,7 +9,7 @@ function c(l, e) {
9
9
  "path",
10
10
  {
11
11
  fill: "currentColor",
12
- d: "M360 140c0-36.45 29.55-66 66-66s66 29.55 66 66v420h32V86c0-36.45 29.55-66 66-66s66 29.55 66 66v474h32V160c0-36.45 29.55-66 66-66s66 29.55 66 66v424h30V256c0-36.45 29.55-66 66-66s66 29.55 66 66v444c0 167.9-136.1 304-304 304h-82c-98.69 0-190.2-51.5-241.34-135.92l-244.93-233.2a70 70 0 0 1 120.06-71.76L360 780z"
12
+ d: "M360 131.2c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28v453.6h32V72.88c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28V584.8h32v-432c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28v457.92h30V256.48c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28V736c0 181.332-136.1 328.32-304 328.32h-82c-98.69 0-190.2-55.62-241.34-146.794L109.73 665.67a70 75.6 0 0 1 120.06-77.5L360 822.4z"
13
13
  },
14
14
  null,
15
15
  -1
@@ -1,18 +1,18 @@
1
1
  import './NmorphCalendar.css';
2
2
  import f from "./NmorphCalendar.vue2.js";
3
- import { openBlock as o, createElementBlock as n, normalizeStyle as k, normalizeClass as h, renderSlot as r, createVNode as s, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as C, createTextVNode as _, toDisplayString as m } from "vue";
3
+ import { openBlock as o, createElementBlock as r, normalizeStyle as k, normalizeClass as i, renderSlot as n, createVNode as s, mergeProps as C, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as m, createTextVNode as _, toDisplayString as v } from "vue";
4
4
  /* empty css */
5
- import v from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ import T from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const g = ["data-date", "onClick"];
7
- function T(d, p, B, a, M, w) {
8
- return o(), n(
7
+ function p(d, B, M, a, w, x) {
8
+ return o(), r(
9
9
  "div",
10
10
  {
11
- class: h(a.modifiers),
11
+ class: i(a.modifiers),
12
12
  style: k(a.styles)
13
13
  },
14
14
  [
15
- r(d.$slots, "header", {}, () => [
15
+ n(d.$slots, "header", {}, () => [
16
16
  s(a.NmorphCalendarHeader, {
17
17
  year: a.initialDate.getFullYear(),
18
18
  month: a.initialDate.getMonth(),
@@ -25,54 +25,52 @@ function T(d, p, B, a, M, w) {
25
25
  onClickToday: a.setTodayMonth
26
26
  }, null, 8, ["year", "month", "design", "show-previous-month-button", "show-today-button", "show-next-month-button"])
27
27
  ]),
28
- r(d.$slots, "content", {}, () => [
29
- s(a.NmorphTable, {
28
+ n(d.$slots, "content", {}, () => [
29
+ s(a.NmorphTable, C({
30
30
  data: a.calendar,
31
- bordered: "",
32
- "row-hover": !1,
33
- design: a.props.design
34
- }, {
31
+ "row-hover": !1
32
+ }, a.tableDesignProps), {
35
33
  default: l(() => [
36
- (o(!0), n(
34
+ (o(!0), r(
37
35
  c,
38
36
  null,
39
- y(a.days, (e) => (o(), D(a.NmorphTableColumn, {
40
- key: `${e}`,
41
- prop: e,
42
- label: e.toUpperCase()
37
+ y(a.days, (t) => (o(), D(a.NmorphTableColumn, {
38
+ key: `${t}`,
39
+ prop: t,
40
+ label: t.toUpperCase()
43
41
  }, {
44
42
  default: l(({ scope: b }) => [
45
- (o(!0), n(
43
+ (o(!0), r(
46
44
  c,
47
45
  null,
48
- y(b.rows, (t, i) => (o(), D(a.NmorphTableCell, {
49
- key: i,
50
- row: i
46
+ y(b.rows, (e, h) => (o(), D(a.NmorphTableCell, {
47
+ key: h,
48
+ row: h
51
49
  }, {
52
50
  default: l(() => [
53
- C("div", {
54
- "data-date": `${a.dateData(t[e]).date}`,
55
- class: h([
51
+ m("div", {
52
+ "data-date": `${a.dateData(e[t]).date}`,
53
+ class: i([
56
54
  "nmorph-calendar-date",
57
- `nmorph-calendar-date--${a.dateData(t[e]).monthType}`,
55
+ `nmorph-calendar-date--${a.dateData(e[t]).monthType}`,
58
56
  {
59
- "nmorph-calendar-date--today": a.dateData(t[e]).isToday && !a.dateData(t[e]).hidden && a.props.markToday
57
+ "nmorph-calendar-date--today": a.dateData(e[t]).isToday && !a.dateData(e[t]).hidden && a.props.markToday
60
58
  },
61
- { "nmorph-calendar-date--hidden": a.dateData(t[e]).hidden },
59
+ { "nmorph-calendar-date--hidden": a.dateData(e[t]).hidden },
62
60
  {
63
- "nmorph-calendar-date--selected": a.isValueSelected(a.dateData(t[e]).date)
61
+ "nmorph-calendar-date--selected": a.isValueSelected(a.dateData(e[t]).date)
64
62
  }
65
63
  ]),
66
- onClick: (x) => a.clickDate(a.dateData(t[e]))
64
+ onClick: (P) => a.clickDate(a.dateData(e[t]))
67
65
  }, [
68
- r(d.$slots, "date-cell", {
66
+ n(d.$slots, "date-cell", {
69
67
  scope: {
70
- ...a.dateData(t[e]),
71
- selected: a.isValueSelected(a.dateData(t[e]).date)
68
+ ...a.dateData(e[t]),
69
+ selected: a.isValueSelected(a.dateData(e[t]).date)
72
70
  }
73
71
  }, () => [
74
72
  _(
75
- m(a.dateData(t[e]).hidden ? "-" : a.dateData(t[e]).value),
73
+ v(a.dateData(e[t]).hidden ? "-" : a.dateData(e[t]).value),
76
74
  1
77
75
  /* TEXT */
78
76
  )
@@ -95,14 +93,14 @@ function T(d, p, B, a, M, w) {
95
93
  ]),
96
94
  _: 3
97
95
  /* FORWARDED */
98
- }, 8, ["data", "design"])
96
+ }, 16, ["data"])
99
97
  ])
100
98
  ],
101
99
  6
102
100
  /* CLASS, STYLE */
103
101
  );
104
102
  }
105
- const z = /* @__PURE__ */ v(f, [["render", T], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
103
+ const E = /* @__PURE__ */ T(f, [["render", p], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
106
104
  export {
107
- z as default
105
+ E as default
108
106
  };
@@ -1,14 +1,14 @@
1
1
  import './NmorphCalendar.css';
2
- import { defineComponent as R, ref as x, onMounted as O, reactive as k, watch as v, computed as s } from "vue";
3
- import { useModifiers as j } from "../../../utils/create-modifiers.js";
4
- import { createCssSizeVariables as z } from "../../../utils/common.js";
5
- import W from "./inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js";
6
- import { useCalendarTexts as Z } from "./hooks/use-calendar-texts.js";
7
- import { hasAnyRangeDateInPrevMonth as F, hasAnyRangeDateInNextMonth as G, isTodayInMonthRange as J, resetTimeToZero as d, getMonthDaysByWeek as K } from "./utils.js";
8
- import L from "../nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js";
9
- import Q from "../nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js";
10
- import U from "../nmorph-table/NmorphTable.vue.js";
11
- const ue = /* @__PURE__ */ R({
2
+ import { defineComponent as O, ref as x, onMounted as k, reactive as j, watch as h, computed as u } from "vue";
3
+ import { useModifiers as z } from "../../../utils/create-modifiers.js";
4
+ import { createCssSizeVariables as W } from "../../../utils/common.js";
5
+ import Z from "./inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js";
6
+ import { useCalendarTexts as F } from "./hooks/use-calendar-texts.js";
7
+ import { hasAnyRangeDateInPrevMonth as G, hasAnyRangeDateInNextMonth as J, isTodayInMonthRange as K, resetTimeToZero as d, getMonthDaysByWeek as L } from "./utils.js";
8
+ import Q from "../nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js";
9
+ import U from "../nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js";
10
+ import X from "../nmorph-table/NmorphTable.vue.js";
11
+ const se = /* @__PURE__ */ O({
12
12
  __name: "NmorphCalendar",
13
13
  props: {
14
14
  markToday: { type: Boolean, required: !1, default: !0 },
@@ -22,119 +22,121 @@ const ue = /* @__PURE__ */ R({
22
22
  emits: ["update:model-value", "update-initial-date"],
23
23
  setup(N, { expose: b, emit: _ }) {
24
24
  b();
25
- const r = N, i = _, { days: h } = Z(), y = () => {
26
- l.value = M.value;
25
+ const a = N, s = _, { days: v } = F(), y = () => {
26
+ o.value = M.value;
27
27
  }, C = () => {
28
- l.value = /* @__PURE__ */ new Date();
28
+ o.value = /* @__PURE__ */ new Date();
29
29
  }, g = () => {
30
- l.value = A.value;
31
- }, u = () => {
30
+ o.value = A.value;
31
+ }, i = () => {
32
32
  throw new Error("model value and type prop not matched");
33
33
  }, c = (e) => {
34
34
  if (e === null) return null;
35
- if (r.type === "date") {
35
+ if (a.type === "date") {
36
36
  if (e instanceof Date)
37
37
  return d(e);
38
- u();
38
+ i();
39
39
  }
40
- const o = Array.isArray(e) && e.every((a) => a instanceof Date);
41
- if (r.type === "dates") {
42
- if (o)
43
- return e.map((a) => d(a));
44
- u();
40
+ const l = Array.isArray(e) && e.every((r) => r instanceof Date);
41
+ if (a.type === "dates") {
42
+ if (l)
43
+ return e.map((r) => d(r));
44
+ i();
45
45
  }
46
- if (r.type === "daterange") {
47
- if (o)
48
- return e.map((a) => d(a)).slice(0, 2);
49
- u();
46
+ if (a.type === "daterange") {
47
+ if (l)
48
+ return e.map((r) => d(r)).slice(0, 2);
49
+ i();
50
50
  }
51
51
  }, q = (e) => {
52
52
  if (t.value === null) return;
53
- const { monthType: o, hidden: a } = e;
54
- if (a) return;
55
- o === "next" && g(), o === "previous" && y();
53
+ const { monthType: l, hidden: r } = e;
54
+ if (r) return;
55
+ l === "next" && g(), l === "previous" && y();
56
56
  const { date: n } = e;
57
- if (r.type === "date" && (t.value = n, i("update:model-value", t.value)), r.type === "dates") {
58
- if (!Array.isArray(t.value)) return u();
59
- const m = n.toDateString(), w = t.value.map((P) => P.toDateString()).indexOf(m);
60
- w !== -1 ? t.value.splice(w, 1) : t.value.push(n), i("update:model-value", t.value);
57
+ if (a.type === "date" && (t.value = n, s("update:model-value", t.value)), a.type === "dates") {
58
+ if (!Array.isArray(t.value)) return i();
59
+ const m = n.toDateString(), w = t.value.map((R) => R.toDateString()).indexOf(m);
60
+ w !== -1 ? t.value.splice(w, 1) : t.value.push(n), s("update:model-value", t.value);
61
61
  }
62
- if (r.type === "daterange") {
63
- if (!Array.isArray(t.value)) return u();
64
- t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n], i("update:model-value", t.value.slice(0, 2));
62
+ if (a.type === "daterange") {
63
+ if (!Array.isArray(t.value)) return i();
64
+ t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n], s("update:model-value", t.value.slice(0, 2));
65
65
  }
66
- }, D = (e, o) => {
67
- const [a, n] = o;
68
- return o.length === 1 ? e.toDateString() === a.toDateString() : a && n ? e >= d(a) && e <= d(n) : !1;
66
+ }, D = (e, l) => {
67
+ const [r, n] = l;
68
+ return l.length === 1 ? e.toDateString() === r.toDateString() : r && n ? e >= d(r) && e <= d(n) : !1;
69
69
  }, B = (e) => {
70
70
  if (t.value === null) return !1;
71
- if (r.type === "date")
72
- return Array.isArray(t.value) ? u() : t.value.toDateString() === e.toDateString();
73
- if (r.type === "dates")
74
- return Array.isArray(t.value) ? !!t.value.find((a) => a.toDateString() === e.toDateString()) : u();
75
- if (r.type === "daterange")
76
- return Array.isArray(t.value) ? D(e, t.value) : u();
77
- }, l = x(r.initialDate), t = x(c(r.modelValue));
78
- O(() => {
79
- i("update:model-value", t.value);
71
+ if (a.type === "date")
72
+ return Array.isArray(t.value) ? i() : t.value.toDateString() === e.toDateString();
73
+ if (a.type === "dates")
74
+ return Array.isArray(t.value) ? !!t.value.find((r) => r.toDateString() === e.toDateString()) : i();
75
+ if (a.type === "daterange")
76
+ return Array.isArray(t.value) ? D(e, t.value) : i();
77
+ }, o = x(a.initialDate), t = x(c(a.modelValue));
78
+ k(() => {
79
+ s("update:model-value", t.value);
80
80
  });
81
- let p = k([]);
81
+ let p = j([]);
82
82
  const f = () => {
83
- p = [], K(l, r.range).forEach((o) => {
84
- const a = {};
85
- o.forEach((n, m) => {
86
- const T = h[m];
87
- a[T] = n;
88
- }), p.push(a);
83
+ p = [], L(o, a.range).forEach((l) => {
84
+ const r = {};
85
+ l.forEach((n, m) => {
86
+ const T = v[m];
87
+ r[T] = n;
88
+ }), p.push(r);
89
89
  });
90
90
  };
91
- v(
92
- () => r.initialDate,
91
+ h(
92
+ () => a.initialDate,
93
93
  (e) => {
94
- l.value = e;
94
+ o.value = e;
95
95
  },
96
96
  {
97
97
  deep: !0
98
98
  }
99
- ), v(l, () => {
100
- f(), i("update-initial-date", l.value);
101
- }), v(
102
- () => r.modelValue,
99
+ ), h(o, () => {
100
+ f(), s("update-initial-date", o.value);
101
+ }), h(
102
+ () => a.modelValue,
103
103
  (e) => {
104
104
  t.value = c(e);
105
105
  }
106
106
  );
107
- const M = s(() => new Date(l.value.setMonth(l.value.getMonth() - 1))), A = s(() => new Date(l.value.setMonth(l.value.getMonth() + 1))), V = s(() => {
108
- const { range: e } = r, o = e ? F(l.value, e[0]) : !0, a = e ? G(l.value, e[1]) : !0, n = J(e);
107
+ const M = u(() => new Date(o.value.setMonth(o.value.getMonth() - 1))), A = u(() => new Date(o.value.setMonth(o.value.getMonth() + 1))), V = u(() => {
108
+ const { range: e } = a, l = e ? G(o.value, e[0]) : !0, r = e ? J(o.value, e[1]) : !0, n = K(e);
109
109
  return {
110
- showPreviousMonthButton: o,
111
- showNextMonthButton: a,
110
+ showPreviousMonthButton: l,
111
+ showNextMonthButton: r,
112
112
  showTodayButton: n
113
113
  };
114
- }), E = s(
115
- () => j({
114
+ }), E = u(
115
+ () => z({
116
116
  "nmorph-calendar": []
117
117
  })
118
- ), H = s(
119
- () => z({
120
- "--nmorph-private-calendar-cell-height": r.cellHeight
118
+ ), P = u(
119
+ () => W({
120
+ "--nmorph-private-calendar-cell-height": a.cellHeight
121
121
  })
122
+ ), H = u(
123
+ () => a.design === "plain" ? { design: "plain", bordered: !0 } : { design: "nmorph" }
122
124
  ), I = (e) => e;
123
125
  f();
124
- const S = { props: r, emit: i, days: h, setPreviousMonth: y, setTodayMonth: C, setNextMonth: g, wrongType: u, convertValue: c, clickDate: q, isDateInRange: D, isValueSelected: B, initialDate: l, selectedValue: t, get calendar() {
126
+ const S = { props: a, emit: s, days: v, setPreviousMonth: y, setTodayMonth: C, setNextMonth: g, wrongType: i, convertValue: c, clickDate: q, isDateInRange: D, isValueSelected: B, initialDate: o, selectedValue: t, get calendar() {
125
127
  return p;
126
128
  }, set calendar(e) {
127
129
  p = e;
128
- }, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons: V, modifiers: E, styles: H, dateData: I, get NmorphTable() {
129
- return U;
130
+ }, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons: V, modifiers: E, styles: P, tableDesignProps: H, dateData: I, get NmorphTable() {
131
+ return X;
130
132
  }, get NmorphTableColumn() {
131
- return Q;
133
+ return U;
132
134
  }, get NmorphTableCell() {
133
- return L;
134
- }, NmorphCalendarHeader: W };
135
+ return Q;
136
+ }, NmorphCalendarHeader: Z };
135
137
  return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
136
138
  }
137
139
  });
138
140
  export {
139
- ue as default
141
+ se as default
140
142
  };
@@ -1,96 +1,96 @@
1
1
  import './NmorphImagePreview.css';
2
2
  import _ from "./NmorphImagePreview.vue2.js";
3
- import { openBlock as n, createElementBlock as a, Fragment as g, normalizeStyle as v, normalizeClass as w, createElementVNode as d, renderList as p, withModifiers as k, createVNode as l, createSlots as m, withCtx as o, renderSlot as t, toDisplayString as y, createCommentVNode as c, createBlock as s, resolveDynamicComponent as f } from "vue";
3
+ import { openBlock as n, createElementBlock as a, Fragment as g, normalizeStyle as p, normalizeClass as w, createElementVNode as m, renderList as v, withModifiers as k, createVNode as l, createSlots as d, withCtx as o, renderSlot as t, toDisplayString as y, createCommentVNode as c, createBlock as s, resolveDynamicComponent as f } from "vue";
4
4
  /* empty css */
5
5
  import b from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const N = ["aria-label", "onClick"], C = {
7
7
  key: 0,
8
8
  class: "nmorph-image-preview__trigger-more"
9
9
  }, S = { class: "nmorph-image-preview__action-element" };
10
- function I(r, B, T, e, L, P) {
10
+ function I(e, T, B, r, P, z) {
11
11
  return n(), a(
12
12
  g,
13
13
  null,
14
14
  [
15
- e.props.showTrigger ? (n(), a(
15
+ r.props.showTrigger ? (n(), a(
16
16
  "div",
17
17
  {
18
18
  key: 0,
19
- class: w(e.modifiers),
20
- style: v(e.triggerStyle)
19
+ class: w(r.modifiers),
20
+ style: p(r.triggerStyle)
21
21
  },
22
22
  [
23
- d("div", {
23
+ m("div", {
24
24
  class: "nmorph-image-preview__trigger",
25
- onClick: e.clickHandler
25
+ onClick: r.clickHandler
26
26
  }, [
27
- e.showGalleryTrigger ? (n(!0), a(
27
+ r.showGalleryTrigger ? (n(!0), a(
28
28
  g,
29
29
  { key: 0 },
30
- p(e.triggerSources, (i) => (n(), a("button", {
30
+ v(r.triggerSources, (i) => (n(), a("button", {
31
31
  key: `${i.src}-${i.index}`,
32
32
  type: "button",
33
33
  class: "nmorph-image-preview__trigger-item",
34
- "aria-label": e.getTriggerLabel(i.index),
35
- onClick: k((h) => e.openPreviewAt(i.index), ["stop"])
34
+ "aria-label": r.getTriggerLabel(i.index),
35
+ onClick: k((h) => r.openPreviewAt(i.index), ["stop"])
36
36
  }, [
37
- l(e.NmorphImage, {
37
+ l(r.NmorphImage, {
38
38
  src: i.src,
39
- alt: e.getTriggerLabel(i.index),
40
- fit: e.props.fit,
39
+ alt: r.getTriggerLabel(i.index),
40
+ fit: r.props.fit,
41
41
  design: "plain",
42
42
  "frame-border": 0
43
- }, m({
43
+ }, d({
44
44
  _: 2
45
45
  /* DYNAMIC */
46
46
  }, [
47
- r.$slots.loading ? {
47
+ e.$slots.loading ? {
48
48
  name: "loading",
49
49
  fn: o(() => [
50
- t(r.$slots, "loading")
50
+ t(e.$slots, "loading")
51
51
  ]),
52
52
  key: "0"
53
53
  } : void 0,
54
- r.$slots.error ? {
54
+ e.$slots.error ? {
55
55
  name: "error",
56
56
  fn: o(() => [
57
- t(r.$slots, "error")
57
+ t(e.$slots, "error")
58
58
  ]),
59
59
  key: "1"
60
60
  } : void 0
61
61
  ]), 1032, ["src", "alt", "fit"]),
62
- i.index === e.lastVisibleTriggerIndex && e.hiddenTriggerCount > 0 ? (n(), a(
62
+ i.index === r.lastVisibleTriggerIndex && r.hiddenTriggerCount > 0 ? (n(), a(
63
63
  "span",
64
64
  C,
65
- " +" + y(e.hiddenTriggerCount),
65
+ " +" + y(r.hiddenTriggerCount),
66
66
  1
67
67
  /* TEXT */
68
68
  )) : c("v-if", !0)
69
69
  ], 8, N))),
70
70
  128
71
71
  /* KEYED_FRAGMENT */
72
- )) : (n(), s(e.NmorphImage, {
72
+ )) : (n(), s(r.NmorphImage, {
73
73
  key: 1,
74
- src: e.triggerSource,
75
- alt: e.props.alt,
76
- fit: e.props.fit,
74
+ src: r.triggerSource,
75
+ alt: r.props.alt,
76
+ fit: r.props.fit,
77
77
  design: "plain",
78
78
  "frame-border": 0
79
- }, m({
79
+ }, d({
80
80
  _: 2
81
81
  /* DYNAMIC */
82
82
  }, [
83
- r.$slots.loading ? {
83
+ e.$slots.loading ? {
84
84
  name: "loading",
85
85
  fn: o(() => [
86
- t(r.$slots, "loading")
86
+ t(e.$slots, "loading")
87
87
  ]),
88
88
  key: "0"
89
89
  } : void 0,
90
- r.$slots.error ? {
90
+ e.$slots.error ? {
91
91
  name: "error",
92
92
  fn: o(() => [
93
- t(r.$slots, "error")
93
+ t(e.$slots, "error")
94
94
  ]),
95
95
  key: "1"
96
96
  } : void 0
@@ -100,34 +100,34 @@ function I(r, B, T, e, L, P) {
100
100
  6
101
101
  /* CLASS, STYLE */
102
102
  )) : c("v-if", !0),
103
- e.open ? (n(), s(e.NmorphPreviewPortal, {
103
+ r.open ? (n(), s(r.NmorphPreviewPortal, {
104
104
  key: 1,
105
- show: e.open,
106
- "z-index": e.props.zIndex,
105
+ show: r.open,
106
+ "z-index": r.props.zIndex,
107
107
  "root-class": "nmorph-image-preview__portal",
108
- "state-class": e.modifiers,
108
+ "state-class": r.modifiers,
109
109
  "content-class": "nmorph-image-preview__content",
110
110
  "left-class": "nmorph-image-preview__left",
111
111
  "right-class": "nmorph-image-preview__right",
112
112
  "actions-class": "nmorph-image-preview__actions",
113
- "navigation-button-margin": e.props.navigationButtonMargin,
114
- "content-width": e.props.previewWidth,
115
- "content-height": e.props.previewHeight,
116
- "show-navigation": e.showNavigation,
117
- "show-action-bar": e.props.showActionBar,
118
- onClose: e.closeHandler,
119
- onPrevious: e.previousHandler,
120
- onNext: e.nextHandler
113
+ "navigation-button-margin": r.props.navigationButtonMargin,
114
+ "content-width": r.props.previewWidth,
115
+ "content-height": r.props.previewHeight,
116
+ "show-navigation": r.showNavigation,
117
+ "show-action-bar": r.props.showActionBar,
118
+ onClose: r.closeHandler,
119
+ onPrevious: r.previousHandler,
120
+ onNext: r.nextHandler
121
121
  }, {
122
122
  actions: o(() => [
123
123
  (n(), a(
124
124
  g,
125
125
  null,
126
- p(e.actions, (i, h) => d("div", {
126
+ v(r.actions, (i, h) => m("div", {
127
127
  key: h,
128
128
  class: "nmorph-image-preview__action-element"
129
129
  }, [
130
- l(e.NmorphButton, {
130
+ l(r.NmorphButton, {
131
131
  class: "nmorph-preview-portal__control-button",
132
132
  design: "plain",
133
133
  borderless: "",
@@ -135,7 +135,7 @@ function I(r, B, T, e, L, P) {
135
135
  }, {
136
136
  default: o(() => [
137
137
  l(
138
- e.NmorphIcon,
138
+ r.NmorphIcon,
139
139
  null,
140
140
  {
141
141
  default: o(() => [
@@ -155,18 +155,18 @@ function I(r, B, T, e, L, P) {
155
155
  64
156
156
  /* STABLE_FRAGMENT */
157
157
  )),
158
- d("div", S, [
159
- l(e.NmorphButton, {
158
+ m("div", S, [
159
+ l(r.NmorphButton, {
160
160
  class: "nmorph-preview-portal__control-button",
161
161
  design: "plain",
162
162
  borderless: "",
163
- disabled: e.scaleLevel === 1,
164
- onClick: e.enlargeShrinkActionData.handler
163
+ disabled: r.scaleLevel === 1,
164
+ onClick: r.enlargeShrinkActionData.handler
165
165
  }, {
166
166
  default: o(() => [
167
- l(e.NmorphIcon, null, {
167
+ l(r.NmorphIcon, null, {
168
168
  default: o(() => [
169
- (n(), s(f(e.enlargeShrinkActionData.icon)))
169
+ (n(), s(f(r.enlargeShrinkActionData.icon)))
170
170
  ]),
171
171
  _: 1
172
172
  /* STABLE */
@@ -178,28 +178,28 @@ function I(r, B, T, e, L, P) {
178
178
  ])
179
179
  ]),
180
180
  default: o(() => [
181
- l(e.NmorphImage, {
182
- src: e.triggerSource,
183
- alt: e.props.alt,
181
+ l(r.NmorphImage, {
182
+ src: r.triggerSource,
183
+ alt: r.props.alt,
184
184
  fit: "contain",
185
185
  design: "plain",
186
186
  "frame-border": 0,
187
- style: v({ transform: `rotate(${e.rotateLevel}deg) scale(${e.scaleLevel})` })
188
- }, m({
187
+ style: p({ transform: r.imageTransform })
188
+ }, d({
189
189
  _: 2
190
190
  /* DYNAMIC */
191
191
  }, [
192
- r.$slots.loading ? {
192
+ e.$slots.loading ? {
193
193
  name: "loading",
194
194
  fn: o(() => [
195
- t(r.$slots, "loading")
195
+ t(e.$slots, "loading")
196
196
  ]),
197
197
  key: "0"
198
198
  } : void 0,
199
- r.$slots.error ? {
199
+ e.$slots.error ? {
200
200
  name: "error",
201
201
  fn: o(() => [
202
- t(r.$slots, "error")
202
+ t(e.$slots, "error")
203
203
  ]),
204
204
  key: "1"
205
205
  } : void 0