@nmorph/nmorph-ui-kit 2.2.27 → 2.2.29
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/data/nmorph-image-preview/NmorphImagePreview.vue.js +36 -34
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/package.json.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import './NmorphImagePreview.css';
|
|
2
2
|
import p from "./NmorphImagePreview.vue2.js";
|
|
3
|
-
import { openBlock as n, createElementBlock as
|
|
3
|
+
import { openBlock as n, createElementBlock as l, Fragment as h, normalizeStyle as c, normalizeClass as v, createElementVNode as a, createVNode as e, createSlots as _, withCtx as r, renderSlot as t, createCommentVNode as d, createBlock as m, Teleport as k, withDirectives as w, renderList as y, resolveDynamicComponent as g, vShow as N } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import C from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const I = { class: "nmorph-image-preview__content" }, S = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-image-preview__left"
|
|
9
|
-
},
|
|
9
|
+
}, b = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "nmorph-image-preview__right"
|
|
12
|
-
},
|
|
12
|
+
}, B = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "nmorph-image-preview__actions"
|
|
15
|
-
},
|
|
16
|
-
function
|
|
17
|
-
return n(),
|
|
15
|
+
}, D = { class: "nmorph-image-preview__action-element" };
|
|
16
|
+
function z(i, H, L, o, O, A) {
|
|
17
|
+
return n(), l(
|
|
18
18
|
h,
|
|
19
19
|
null,
|
|
20
20
|
[
|
|
21
|
-
o.props.showTrigger ? (n(),
|
|
21
|
+
o.props.showTrigger ? (n(), l(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
24
|
key: 0,
|
|
25
25
|
class: v(o.modifiers),
|
|
26
|
-
style:
|
|
26
|
+
style: c(o.triggerStyle)
|
|
27
27
|
},
|
|
28
28
|
[
|
|
29
29
|
a("div", {
|
|
@@ -39,17 +39,17 @@ function B(l, z, D, o, H, L) {
|
|
|
39
39
|
_: 2
|
|
40
40
|
/* DYNAMIC */
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
i.$slots.loading ? {
|
|
43
43
|
name: "loading",
|
|
44
44
|
fn: r(() => [
|
|
45
|
-
t(
|
|
45
|
+
t(i.$slots, "loading")
|
|
46
46
|
]),
|
|
47
47
|
key: "0"
|
|
48
48
|
} : void 0,
|
|
49
|
-
|
|
49
|
+
i.$slots.error ? {
|
|
50
50
|
name: "error",
|
|
51
51
|
fn: r(() => [
|
|
52
|
-
t(
|
|
52
|
+
t(i.$slots, "error")
|
|
53
53
|
]),
|
|
54
54
|
key: "1"
|
|
55
55
|
} : void 0
|
|
@@ -59,12 +59,12 @@ function B(l, z, D, o, H, L) {
|
|
|
59
59
|
6
|
|
60
60
|
/* CLASS, STYLE */
|
|
61
61
|
)) : d("v-if", !0),
|
|
62
|
-
(n(),
|
|
63
|
-
a(
|
|
62
|
+
(n(), m(k, { to: "body" }, [
|
|
63
|
+
w(a(
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
66
|
class: v(["nmorph-image-preview__portal", o.modifiers]),
|
|
67
|
-
style:
|
|
67
|
+
style: c(o.portalStyle)
|
|
68
68
|
},
|
|
69
69
|
[
|
|
70
70
|
e(o.NmorphOverlay, {
|
|
@@ -76,34 +76,34 @@ function B(l, z, D, o, H, L) {
|
|
|
76
76
|
onOnEscapeKeydown: o.closeHandler
|
|
77
77
|
}, {
|
|
78
78
|
default: r(() => [
|
|
79
|
-
a("div",
|
|
79
|
+
a("div", I, [
|
|
80
80
|
e(o.NmorphImage, {
|
|
81
81
|
src: o.triggerSource,
|
|
82
82
|
alt: o.props.alt,
|
|
83
83
|
fit: "contain",
|
|
84
84
|
"frame-border": 0,
|
|
85
|
-
style:
|
|
85
|
+
style: c({ transform: `rotate(${o.rotateLevel}deg) scale(${o.scaleLevel})` })
|
|
86
86
|
}, _({
|
|
87
87
|
_: 2
|
|
88
88
|
/* DYNAMIC */
|
|
89
89
|
}, [
|
|
90
|
-
|
|
90
|
+
i.$slots.loading ? {
|
|
91
91
|
name: "loading",
|
|
92
92
|
fn: r(() => [
|
|
93
|
-
t(
|
|
93
|
+
t(i.$slots, "loading")
|
|
94
94
|
]),
|
|
95
95
|
key: "0"
|
|
96
96
|
} : void 0,
|
|
97
|
-
|
|
97
|
+
i.$slots.error ? {
|
|
98
98
|
name: "error",
|
|
99
99
|
fn: r(() => [
|
|
100
|
-
t(
|
|
100
|
+
t(i.$slots, "error")
|
|
101
101
|
]),
|
|
102
102
|
key: "1"
|
|
103
103
|
} : void 0
|
|
104
104
|
]), 1032, ["src", "alt", "style"])
|
|
105
105
|
]),
|
|
106
|
-
o.showNavigation ? (n(),
|
|
106
|
+
o.showNavigation ? (n(), l("div", S, [
|
|
107
107
|
e(o.NmorphButton, { onClick: o.previousHandler }, {
|
|
108
108
|
default: r(() => [
|
|
109
109
|
e(o.NmorphIcon, null, {
|
|
@@ -118,7 +118,7 @@ function B(l, z, D, o, H, L) {
|
|
|
118
118
|
/* STABLE */
|
|
119
119
|
})
|
|
120
120
|
])) : d("v-if", !0),
|
|
121
|
-
o.showNavigation ? (n(),
|
|
121
|
+
o.showNavigation ? (n(), l("div", b, [
|
|
122
122
|
e(o.NmorphButton, { onClick: o.nextHandler }, {
|
|
123
123
|
default: r(() => [
|
|
124
124
|
e(o.NmorphIcon, null, {
|
|
@@ -133,11 +133,11 @@ function B(l, z, D, o, H, L) {
|
|
|
133
133
|
/* STABLE */
|
|
134
134
|
})
|
|
135
135
|
])) : d("v-if", !0),
|
|
136
|
-
o.props.showActionBar ? (n(),
|
|
137
|
-
(n(),
|
|
136
|
+
o.props.showActionBar ? (n(), l("div", B, [
|
|
137
|
+
(n(), l(
|
|
138
138
|
h,
|
|
139
139
|
null,
|
|
140
|
-
|
|
140
|
+
y(o.actions, (s, f) => a("div", {
|
|
141
141
|
key: f,
|
|
142
142
|
class: "nmorph-image-preview__action-element"
|
|
143
143
|
}, [
|
|
@@ -150,7 +150,7 @@ function B(l, z, D, o, H, L) {
|
|
|
150
150
|
null,
|
|
151
151
|
{
|
|
152
152
|
default: r(() => [
|
|
153
|
-
(n(),
|
|
153
|
+
(n(), m(g(s.icon)))
|
|
154
154
|
]),
|
|
155
155
|
_: 2
|
|
156
156
|
/* DYNAMIC */
|
|
@@ -166,7 +166,7 @@ function B(l, z, D, o, H, L) {
|
|
|
166
166
|
64
|
|
167
167
|
/* STABLE_FRAGMENT */
|
|
168
168
|
)),
|
|
169
|
-
a("div",
|
|
169
|
+
a("div", D, [
|
|
170
170
|
e(o.NmorphButton, {
|
|
171
171
|
disabled: o.scaleLevel === 1,
|
|
172
172
|
onClick: o.enlargeShrinkActionData.handler
|
|
@@ -174,7 +174,7 @@ function B(l, z, D, o, H, L) {
|
|
|
174
174
|
default: r(() => [
|
|
175
175
|
e(o.NmorphIcon, null, {
|
|
176
176
|
default: r(() => [
|
|
177
|
-
(n(),
|
|
177
|
+
(n(), m(g(o.enlargeShrinkActionData.icon)))
|
|
178
178
|
]),
|
|
179
179
|
_: 1
|
|
180
180
|
/* STABLE */
|
|
@@ -192,14 +192,16 @@ function B(l, z, D, o, H, L) {
|
|
|
192
192
|
],
|
|
193
193
|
6
|
|
194
194
|
/* CLASS, STYLE */
|
|
195
|
-
)
|
|
195
|
+
), [
|
|
196
|
+
[N, o.open]
|
|
197
|
+
])
|
|
196
198
|
]))
|
|
197
199
|
],
|
|
198
200
|
64
|
|
199
201
|
/* STABLE_FRAGMENT */
|
|
200
202
|
);
|
|
201
203
|
}
|
|
202
|
-
const
|
|
204
|
+
const j = /* @__PURE__ */ C(p, [["render", z], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-image-preview/NmorphImagePreview.vue"]]);
|
|
203
205
|
export {
|
|
204
|
-
|
|
206
|
+
j as default
|
|
205
207
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-dialog{position:absolute;top:50%;left:50%;display:flex;flex-direction:column;box-sizing:border-box;width:var(--width);max-width:var(--nmorph-dialog-max-width, calc(100vw - 32px) );max-height:var(--nmorph-dialog-max-height, var(--nmorph-dialog-default-max-height));padding:var(--indentation-
|
|
1
|
+
.nmorph-dialog{position:absolute;top:50%;left:50%;display:flex;flex-direction:column;box-sizing:border-box;width:var(--width);max-width:var(--nmorph-dialog-max-width, calc(100vw - 32px) );max-height:var(--nmorph-dialog-max-height, var(--nmorph-dialog-default-max-height));padding:var(--indentation-03);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);transform:translate(-50%,-50%);--width: var(--nmorph-dialog-width);--nmorph-dialog-default-max-height: calc(100vh - 32px) }@supports (height: 100dvh){.nmorph-dialog{--nmorph-dialog-default-max-height: calc(100dvh - 32px) }}.nmorph-dialog .nmorph-dialog__header{display:flex;flex:0 0 auto;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--indentation-02);font-weight:600;font-size:var(--font-size-large);line-height:var(--line-height-loose)}.nmorph-dialog .nmorph-dialog__close-icon{flex:0 0 auto;cursor:pointer}.nmorph-dialog .nmorph-dialog__content{flex:1 1 auto;box-sizing:border-box;min-height:0;padding:var(--indentation-02);overflow:hidden auto}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-file-upload .nmorph-file-upload__trigger{position:relative}.nmorph-file-upload input{display:none}.nmorph-file-upload .nmorph-file-upload__list{margin-top:var(--indentation-03)}.nmorph-file-upload .nmorph-file-upload__file{display:flex;
|
|
1
|
+
.nmorph-file-upload .nmorph-file-upload__trigger{position:relative}.nmorph-file-upload input{display:none}.nmorph-file-upload .nmorph-file-upload__list{margin-top:var(--indentation-03)}.nmorph-file-upload .nmorph-file-upload__file{display:flex;gap:var(--indentation-02);align-items:center;box-sizing:border-box;min-width:0;margin-bottom:var(--indentation-02);padding:var(--indentation-02) var(--indentation-03);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-file-upload .nmorph-file-upload__file>.nmorph-image-preview{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-info{display:flex;flex:1 1 auto;gap:var(--indentation-02);align-items:center;min-width:0}.nmorph-file-upload .nmorph-file-upload__file-info>.nmorph-icon{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-upload .nmorph-file-upload__remove-file{flex:0 0 auto}
|