@nmorph/nmorph-ui-kit 3.0.7 → 3.0.9
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/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -1
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +26 -24
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +80 -30
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.js +21 -14
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue2.js +20 -16
- package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +13 -14
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +28 -25
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +17 -13
- package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -1
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +5 -5
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +66 -64
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.css +1 -1
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +101 -96
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +84 -60
- package/dist/emoji/index.d.ts +1 -1
- package/dist/emoji/index.js +1 -1
- package/dist/emoji/locales/en.d.ts +4 -0
- package/dist/emoji/locales/en.js +1 -1
- package/dist/emoji/locales/ru.d.ts +4 -0
- package/dist/emoji/locales/ru.js +1 -1
- package/dist/emoji/locales/zh.d.ts +4 -0
- package/dist/emoji/locales/zh.js +1 -1
- package/dist/hooks/use-z-index.js +10 -10
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +10 -10
- package/dist/locales/en.js +0 -1
- package/dist/locales/ru.js +0 -1
- package/dist/locales/zh.js +0 -1
- package/dist/outside-hooks/use-nmorph-theme.js +1 -1
- package/dist/package.json.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/src/components/basic/index.d.ts +2 -0
- package/dist/src/components/data/index.d.ts +13 -0
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-carousel/types.d.ts +1 -0
- package/dist/src/{emoji → components/data/nmorph-emoji-picker/emoji}/base.d.ts +1 -1
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +0 -1
- package/dist/src/components/data/nmorph-image/types.d.ts +0 -2
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +4 -0
- package/dist/src/components/feedback/index.d.ts +3 -0
- package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +2 -1
- package/dist/src/components/form/index.d.ts +14 -0
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +1 -1
- package/dist/src/components/navigation/index.d.ts +4 -0
- package/dist/src/components/others/index.d.ts +1 -0
- package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +3 -1
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +2 -0
- package/dist/src/main.d.ts +1 -1
- package/dist/src/plugin.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +14 -25
- /package/dist/{emoji → components/data/nmorph-emoji-picker/emoji}/base.js +0 -0
- /package/dist/outside-utils/{index.js → nmorph-log.js} +0 -0
- /package/dist/src/{emoji → components/data/nmorph-emoji-picker/emoji}/index.d.ts +0 -0
- /package/dist/src/{emoji → components/data/nmorph-emoji-picker/emoji}/locales/en.d.ts +0 -0
- /package/dist/src/{emoji → components/data/nmorph-emoji-picker/emoji}/locales/ru.d.ts +0 -0
- /package/dist/src/{emoji → components/data/nmorph-emoji-picker/emoji}/locales/zh.d.ts +0 -0
- /package/dist/src/outside-utils/{index.d.ts → nmorph-log.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-button{display:inline-block;width:auto;height:auto;min-height:var(--nmorph-private-control-height)}.nmorph-button.nmorph--basic-component,.nmorph-button.nmorph--thin-component,.nmorph-button.nmorph--thick-component{height:auto}.nmorph-button.nmorph--fill{width:100%}.nmorph-button .nmorph-button__content{display:flex;gap:var(--indentation-02);justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:auto;min-height:var(--nmorph-private-control-height);padding:var(--
|
|
1
|
+
.nmorph-button{--nmorph-private-button-padding-y: max(var(--indentation-01), calc(var(--nmorph-private-control-height) * .1));display:inline-block;width:auto;height:auto;min-height:var(--nmorph-private-control-height)}.nmorph-button.nmorph--basic-component,.nmorph-button.nmorph--thin-component,.nmorph-button.nmorph--extra-thin-component,.nmorph-button.nmorph--thick-component{height:auto}.nmorph-button.nmorph--fill{width:100%}.nmorph-button .nmorph-button__content{display:flex;gap:var(--indentation-02);justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:auto;min-height:var(--nmorph-private-control-height);padding:var(--nmorph-private-button-padding-y) var(--indentation-04);color:var(--nmorph-private-button-color, var(--nmorph-text-color));line-height:var(--nmorph-private-control-line-height, var(--line-height-regular));background:var(--nmorph-main-color);border:none;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);cursor:pointer}.nmorph-button .nmorph-button__content span{color:var(--nmorph-private-button-color, var(--nmorph-text-color));--nmorph-private-icon-color: var(--nmorph-private-button-color, var(--nmorph-text-color))}.nmorph-button .nmorph-button__label{display:inline-block;min-width:0;line-height:var(--line-height-regular);white-space:normal;text-align:center;overflow-wrap:anywhere;transform:translateY(var(--nmorph-private-control-text-offset-y))}.nmorph-button .nmorph-button__content>.nmorph-icon{flex-shrink:0;--nmorph-private-icon-color: var(--nmorph-private-button-color, var(--nmorph-text-color))}.nmorph-button .nmorph-button__content:disabled{pointer-events:none}.nmorph-button .nmorph-button__content[loading=true]{cursor:default}.nmorph-button.nmorph-button--ripple .nmorph-button__content{position:relative;overflow:hidden}.nmorph-button.nmorph-button--ripple .nmorph-button__content:after{position:absolute;top:0;left:0;width:100%;height:100%;background-image:radial-gradient(circle,var(--nmorph-main-color) 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:scale(10);opacity:0;transition:transform .3s,opacity 1s;content:""}.nmorph-button.nmorph-button--ripple .nmorph-button__content:active:after{transform:scale(0);opacity:.3;transition:0s}.nmorph-button.nmorph-button--accent-bg-on-hover .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-white-color);background:var(--nmorph-accent-color);box-shadow:none}.nmorph-button.nmorph-button--accent-bg-on-hover .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-button.nmorph-button--accent-bg-on-hover .nmorph-button__content:not(:disabled,[loading=true]):hover span{color:var(--nmorph-white-color)}.nmorph-button.nmorph-button--active .nmorph-button__content{color:var(--nmorph-focus-text-color);background:var(--nmorph-accent-color);box-shadow:var(--nmorph-shadow-inset)}.nmorph-button.nmorph-button--active .nmorph-button__content span,.nmorph-button.nmorph-button--active .nmorph-button__content .nmorph-icon{color:var(--nmorph-focus-text-color);--nmorph-private-icon-color: var(--nmorph-focus-text-color)}.nmorph-button.nmorph-button--danger .nmorph-button__content{color:var(--nmorph-error-text-color);--nmorph-private-button-color: var(--nmorph-error-text-color)}.nmorph-button.nmorph-button--round .nmorph-button__content{border-radius:var(--border-radius-200)}.nmorph-button.nmorph-button--circle{width:var(--nmorph-private-control-height);height:var(--nmorph-private-control-height);min-height:var(--nmorph-private-control-height)}.nmorph-button.nmorph-button--circle .nmorph-button__content{height:var(--nmorph-private-control-height);min-height:var(--nmorph-private-control-height);border-radius:var(--border-radius-circular)}.nmorph-button.nmorph-button--plain{padding:var(--indentation-00)}.nmorph-button.nmorph-button--plain .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-accent-color);background:transparent;border-color:var(--nmorph-accent-color);box-shadow:none}.nmorph-button.nmorph-button--plain.nmorph-button--custom-color .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-private-button-hover-color);border-color:var(--nmorph-private-button-hover-color)}.nmorph-button.nmorph-button--plain .nmorph-button__content:not(:disabled,[loading=true]):hover span{color:var(--nmorph-accent-color)}.nmorph-button.nmorph-button--plain.nmorph-button--custom-color .nmorph-button__content:not(:disabled,[loading=true]):hover span{color:var(--nmorph-private-button-hover-color);--nmorph-private-icon-color: var(--nmorph-private-button-hover-color)}.nmorph-button.nmorph-button--plain .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-accent-color)}.nmorph-button.nmorph-button--plain.nmorph-button--custom-color .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-private-button-hover-color)}.nmorph-button.nmorph-button--plain .nmorph-button__content{color:var(--nmorph-private-button-color, var(--nmorph-private-button-plain-color, var(--nmorph-text-color)));background:transparent;border:var(--nmorph-plain-border);border-color:var(--nmorph-private-button-color, var(--nmorph-private-button-plain-color, var(--nmorph-text-color)));box-shadow:none}.nmorph-button.nmorph-button--plain .nmorph-button__content span{color:var(--nmorph-private-button-color, var(--nmorph-private-button-plain-color, var(--nmorph-text-color)));--nmorph-private-icon-color: var( --nmorph-private-button-color, var(--nmorph-private-button-plain-color, var(--nmorph-text-color)) )}.nmorph-button.nmorph-button--plain .nmorph-button__content .nmorph-icon{--nmorph-private-icon-color: var( --nmorph-private-button-color, var(--nmorph-private-button-plain-color, var(--nmorph-text-color)) )}.nmorph-button.nmorph-button--plain.nmorph-button--borderless .nmorph-button__content,.nmorph-button.nmorph-button--plain.nmorph-button--borderless .nmorph-button__content:not(:disabled,[loading=true]):hover{border:none}.nmorph-button.nmorph-button--square{width:var(--nmorph-private-control-height);height:var(--nmorph-private-control-height);min-height:var(--nmorph-private-control-height)}.nmorph-button.nmorph-button--square .nmorph-button__content{height:var(--nmorph-private-control-height);min-height:var(--nmorph-private-control-height)}.nmorph-button.nmorph-button--icon-only{width:var(--nmorph-private-control-height);height:var(--nmorph-private-control-height);min-height:var(--nmorph-private-control-height)}.nmorph-button.nmorph-button--icon-only .nmorph-button__content{height:var(--nmorph-private-control-height);min-height:var(--nmorph-private-control-height);padding:0;line-height:0}.nmorph-button.nmorph-button--disabled{cursor:not-allowed;opacity:.6}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-icon
|
|
1
|
+
.nmorph-icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-icon-width);min-width:var(--nmorph-private-icon-width);height:var(--nmorph-private-icon-height);min-height:var(--nmorph-private-icon-height);color:var(--nmorph-private-icon-color)}.nmorph-icon .nmorph-icon__content{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-icon-width);min-width:var(--nmorph-private-icon-width);height:var(--nmorph-private-icon-height);min-height:var(--nmorph-private-icon-height)}.nmorph-icon svg{width:100%;height:100%;fill:var(--nmorph-private-icon-color)}.nmorph-icon svg,.nmorph-icon svg *{color:var(--nmorph-private-icon-color)}.nmorph-icon path[stroke],.nmorph-icon path[stroke-width],.nmorph-icon path[fill=none],.nmorph-icon rect[stroke],.nmorph-icon rect[stroke-width],.nmorph-icon rect[fill=none],.nmorph-icon line[stroke],.nmorph-icon line[stroke-width],.nmorph-icon polyline[stroke],.nmorph-icon polyline[stroke-width],.nmorph-icon polygon[stroke],.nmorph-icon polygon[stroke-width]{stroke:var(--nmorph-private-icon-color)}.nmorph-icon.nmorph-icon--small{--nmorph-private-icon-width: 14px;--nmorph-private-icon-height: 14px}.nmorph-icon.nmorph-icon--medium{--nmorph-private-icon-width: 20px;--nmorph-private-icon-height: 20px}.nmorph-icon.nmorph-icon--large{--nmorph-private-icon-width: 32px;--nmorph-private-icon-height: 32px}.nmorph-icon{--nmorph-private-icon-color: var(--nmorph-text-color)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-carousel{--nmorph-private-carousel-height: 500px;--nmorph-private-carousel-frame-border: 10px;--nmorph-private-carousel-action-size: 36px;--nmorph-private-carousel-action-offset: var(--indentation-02);position:relative;box-sizing:border-box;height:var(--nmorph-private-carousel-height);overflow:hidden;border-radius:var(--default-border-radius)}.nmorph-carousel .nmorph-carousel__wrapper{display:flex;height:100%}.nmorph-carousel .transition-enabled{transition:transform .4s ease}.nmorph-carousel .nmorph-carousel__element-indicator-wrapper{padding:4px;cursor:pointer}.nmorph-carousel .nmorph-carousel__elements-indicator{position:absolute;bottom:16px;display:flex;justify-content:center;width:100%}.nmorph-carousel .nmorph-carousel__element-indicator{width:30px;height:2px;margin-right:var(--indentation-02);background:var(--nmorph-gray-color)}.nmorph-carousel .nmorph-carousel__element-indicator--active{background:var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__action-btn{position:absolute;top:50%;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:var(--nmorph-private-carousel-action-size);height:var(--nmorph-private-carousel-action-size);padding:0;background:var(--nmorph-info-color);border-radius:var(--default-border-radius);transform:translateY(-50%);cursor:pointer}.nmorph-carousel .nmorph-carousel__action-btn:hover{background:var(--nmorph-info-color)}.nmorph-carousel .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__prev{
|
|
1
|
+
.nmorph-carousel{--nmorph-private-carousel-height: 500px;--nmorph-private-carousel-frame-border: 10px;--nmorph-private-carousel-action-size: 36px;--nmorph-private-carousel-action-offset: var(--indentation-02);position:relative;box-sizing:border-box;height:var(--nmorph-private-carousel-height);overflow:hidden;border-radius:var(--default-border-radius)}.nmorph-carousel .nmorph-carousel__wrapper{display:flex;height:100%}.nmorph-carousel .transition-enabled{transition:transform .4s ease}.nmorph-carousel .nmorph-carousel__element-indicator-wrapper{padding:4px;cursor:pointer}.nmorph-carousel .nmorph-carousel__elements-indicator{position:absolute;bottom:16px;display:flex;justify-content:center;width:100%}.nmorph-carousel .nmorph-carousel__element-indicator{width:30px;height:2px;margin-right:var(--indentation-02);background:var(--nmorph-gray-color)}.nmorph-carousel .nmorph-carousel__element-indicator--active{background:var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__action-btn{position:absolute;top:50%;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:var(--nmorph-private-carousel-action-size);height:var(--nmorph-private-carousel-action-size);padding:0;background:var(--nmorph-info-color);border-radius:var(--default-border-radius);transform:translateY(-50%);cursor:pointer}.nmorph-carousel .nmorph-carousel__action-btn:hover{background:var(--nmorph-info-color)}.nmorph-carousel .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__prev{left:var(--nmorph-private-carousel-action-offset)}.nmorph-carousel .nmorph-carousel__next{right:var(--nmorph-private-carousel-action-offset)}.nmorph-carousel .nmorph-carousel__item{flex-shrink:0;width:100%;height:100%}.nmorph-carousel--nmorph{background:var(--nmorph-main-color);border:var(--nmorph-private-carousel-frame-border) solid var(--nmorph-main-color)}.nmorph-carousel--plain{background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn{color:var(--nmorph-text-color);background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-carousel--plain .nmorph-carousel__action-btn:hover{color:var(--nmorph-accent-color);background:var(--nmorph-main-color);border-color:var(--nmorph-accent-color)}
|
|
@@ -1,51 +1,53 @@
|
|
|
1
1
|
import './NmorphCarousel.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as e, createElementBlock as o, normalizeClass as
|
|
2
|
+
import _ from "./NmorphCarousel.vue2.js";
|
|
3
|
+
import { openBlock as e, createElementBlock as o, normalizeClass as i, createElementVNode as n, normalizeStyle as h, Fragment as c, renderList as s, createVNode as l, withCtx as m, renderSlot as p } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import u from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
7
|
-
function k(
|
|
6
|
+
const f = ["id"], v = { class: "nmorph-carousel__elements-indicator" }, C = ["onClick"];
|
|
7
|
+
function k(d, N, b, r, y, I) {
|
|
8
8
|
return e(), o(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
class:
|
|
11
|
+
class: i(r.modifiers)
|
|
12
12
|
},
|
|
13
13
|
[
|
|
14
14
|
n(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
ref: "wrapperRef",
|
|
18
|
+
class: i(["nmorph-carousel__wrapper", { "transition-enabled": r.transitionEnabled }]),
|
|
19
|
+
style: h({ transform: r.translateX }),
|
|
20
|
+
onTransitionend: r.wrapperTransitionEndHandler
|
|
19
21
|
},
|
|
20
22
|
[
|
|
21
23
|
(e(!0), o(
|
|
22
|
-
|
|
24
|
+
c,
|
|
23
25
|
null,
|
|
24
|
-
s(r.
|
|
25
|
-
id:
|
|
26
|
-
key: a,
|
|
26
|
+
s(r.renderedCarouselItems, (a) => (e(), o("div", {
|
|
27
|
+
id: a.id,
|
|
28
|
+
key: a.key,
|
|
27
29
|
class: "nmorph-carousel__item"
|
|
28
|
-
}, null, 8,
|
|
30
|
+
}, null, 8, f))),
|
|
29
31
|
128
|
|
30
32
|
/* KEYED_FRAGMENT */
|
|
31
33
|
))
|
|
32
34
|
],
|
|
33
|
-
|
|
34
|
-
/* STYLE */
|
|
35
|
+
38
|
|
36
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
35
37
|
),
|
|
36
|
-
n("div",
|
|
38
|
+
n("div", v, [
|
|
37
39
|
(e(!0), o(
|
|
38
|
-
|
|
40
|
+
c,
|
|
39
41
|
null,
|
|
40
42
|
s(r.carouselData, (a, t) => (e(), o("div", {
|
|
41
43
|
key: t,
|
|
42
44
|
class: "nmorph-carousel__element-indicator-wrapper",
|
|
43
|
-
onClick: (
|
|
45
|
+
onClick: (w) => r.elementIndicator(t)
|
|
44
46
|
}, [
|
|
45
47
|
n(
|
|
46
48
|
"div",
|
|
47
49
|
{
|
|
48
|
-
class:
|
|
50
|
+
class: i(["nmorph-carousel__element-indicator", { "nmorph-carousel__element-indicator--active": r.isCurrentElementActive(t) }])
|
|
49
51
|
},
|
|
50
52
|
null,
|
|
51
53
|
2
|
|
@@ -58,11 +60,11 @@ function k(_, N, I, r, b, y) {
|
|
|
58
60
|
]),
|
|
59
61
|
n("div", {
|
|
60
62
|
class: "nmorph-carousel__action-btn nmorph-carousel__prev",
|
|
61
|
-
onClick: r.
|
|
63
|
+
onClick: r.prevSlide
|
|
62
64
|
}, [
|
|
63
65
|
l(r.NmorphIcon, null, {
|
|
64
66
|
default: m(() => [
|
|
65
|
-
l(r.
|
|
67
|
+
l(r.NmorphIconChevronLeft)
|
|
66
68
|
]),
|
|
67
69
|
_: 1
|
|
68
70
|
/* STABLE */
|
|
@@ -70,23 +72,23 @@ function k(_, N, I, r, b, y) {
|
|
|
70
72
|
]),
|
|
71
73
|
n("div", {
|
|
72
74
|
class: "nmorph-carousel__action-btn nmorph-carousel__next",
|
|
73
|
-
onClick: r.
|
|
75
|
+
onClick: r.nextSlide
|
|
74
76
|
}, [
|
|
75
77
|
l(r.NmorphIcon, null, {
|
|
76
78
|
default: m(() => [
|
|
77
|
-
l(r.
|
|
79
|
+
l(r.NmorphIconChevronRight)
|
|
78
80
|
]),
|
|
79
81
|
_: 1
|
|
80
82
|
/* STABLE */
|
|
81
83
|
})
|
|
82
84
|
]),
|
|
83
|
-
p(
|
|
85
|
+
p(d.$slots, "default")
|
|
84
86
|
],
|
|
85
87
|
2
|
|
86
88
|
/* CLASS */
|
|
87
89
|
);
|
|
88
90
|
}
|
|
89
|
-
const z = /* @__PURE__ */ u(
|
|
91
|
+
const z = /* @__PURE__ */ u(_, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-carousel/NmorphCarousel.vue"]]);
|
|
90
92
|
export {
|
|
91
93
|
z as default
|
|
92
94
|
};
|
|
@@ -1,47 +1,97 @@
|
|
|
1
1
|
import './NmorphCarousel.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { generateUUID as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
2
|
+
import { defineComponent as j, ref as i, computed as m, provide as F, watch as y, nextTick as U } from "vue";
|
|
3
|
+
import { useModifiers as X } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { generateUUID as z } from "../../../utils/common.js";
|
|
5
|
+
import B from "../../../assets/icons/chevron-right.svg.js";
|
|
6
|
+
import H from "../../../assets/icons/chevron-left.svg.js";
|
|
7
|
+
import J from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
8
|
+
const V = /* @__PURE__ */ j({
|
|
9
9
|
__name: "NmorphCarousel",
|
|
10
10
|
props: {
|
|
11
11
|
design: { type: null, required: !1, default: "nmorph" },
|
|
12
12
|
loop: { type: Boolean, required: !1, default: !0 }
|
|
13
13
|
},
|
|
14
14
|
emits: ["change"],
|
|
15
|
-
setup(
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
() =>
|
|
19
|
-
nmorph: [
|
|
20
|
-
"nmorph-carousel": [
|
|
15
|
+
setup(N, { expose: $, emit: b }) {
|
|
16
|
+
$();
|
|
17
|
+
const r = i(0), a = i(0), c = i(!0), o = i(null), C = i(null), l = N, S = b, w = m(
|
|
18
|
+
() => X({
|
|
19
|
+
nmorph: [l.design === "nmorph" ? "shadow-outset" : ""],
|
|
20
|
+
"nmorph-carousel": [l.design]
|
|
21
21
|
})
|
|
22
|
-
),
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
), u = i([]), f = z(), n = m(() => u.value.length), v = m(() => l.loop && n.value > 1);
|
|
23
|
+
F("carousel-data", { data: u, carouselId: f, hasLoopClones: v });
|
|
24
|
+
const p = (e, t) => `nmorph-carousel-item-${f}-${e}${t ? `-${t}` : ""}`, h = (e) => n.value ? l.loop ? (e + n.value) % n.value : Math.min(Math.max(e, 0), n.value - 1) : 0, d = (e) => v.value ? e + 1 : e, T = async () => {
|
|
25
|
+
await U(), C.value?.offsetWidth;
|
|
26
|
+
const e = typeof requestAnimationFrame == "function" ? requestAnimationFrame : (t) => setTimeout(() => t(Date.now()), 0);
|
|
27
|
+
e(() => {
|
|
28
|
+
e(() => {
|
|
29
|
+
c.value = !0;
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}, I = (e) => {
|
|
33
|
+
c.value = !1, a.value = e, T();
|
|
34
|
+
}, g = (e) => {
|
|
35
|
+
const t = h(e);
|
|
36
|
+
t !== r.value && (r.value = t, o.value = null, c.value = !0, a.value = d(t));
|
|
37
|
+
}, x = (e) => {
|
|
38
|
+
if (!n.value) return;
|
|
39
|
+
if (!l.loop || !v.value) {
|
|
40
|
+
g(r.value + e);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const t = r.value, s = h(t + e);
|
|
44
|
+
if (s !== t) {
|
|
45
|
+
if (r.value = s, c.value = !0, e > 0 && t === n.value - 1) {
|
|
46
|
+
a.value = n.value + 1, o.value = 1;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (e < 0 && t === 0) {
|
|
50
|
+
a.value = 0, o.value = n.value;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
o.value = null, a.value = d(s);
|
|
54
|
+
}
|
|
55
|
+
}, R = () => x(-1), q = () => x(1), A = m(() => `translateX(-${a.value * 100}%)`), M = m(() => {
|
|
56
|
+
const e = u.value.map((k) => ({
|
|
57
|
+
id: p(k),
|
|
58
|
+
key: k
|
|
59
|
+
}));
|
|
60
|
+
if (!v.value || !e.length) return e;
|
|
61
|
+
const t = u.value[0], s = u.value[u.value.length - 1];
|
|
62
|
+
return [
|
|
63
|
+
{
|
|
64
|
+
id: p(s, "before"),
|
|
65
|
+
key: `${s}-loop-before`
|
|
66
|
+
},
|
|
67
|
+
...e,
|
|
68
|
+
{
|
|
69
|
+
id: p(t, "after"),
|
|
70
|
+
key: `${t}-loop-after`
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
}), D = (e) => e === r.value, E = (e) => {
|
|
74
|
+
g(e);
|
|
75
|
+
}, L = (e) => {
|
|
76
|
+
if (e.target !== e.currentTarget || o.value === null) return;
|
|
77
|
+
const t = o.value;
|
|
78
|
+
o.value = null, I(t);
|
|
29
79
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}),
|
|
33
|
-
|
|
80
|
+
y([n, () => l.loop], ([e]) => {
|
|
81
|
+
r.value > e - 1 && (r.value = Math.max(e - 1, 0)), o.value = null, I(d(r.value));
|
|
82
|
+
}), y(r, () => {
|
|
83
|
+
S("change", r.value);
|
|
34
84
|
});
|
|
35
|
-
const
|
|
36
|
-
return
|
|
85
|
+
const _ = { currentSlide: r, trackIndex: a, transitionEnabled: c, loopResetTrackIndex: o, wrapperRef: C, props: l, emit: S, modifiers: w, carouselData: u, carouselId: f, slideCount: n, hasLoopClones: v, getCarouselItemId: p, normalizeSlideIndex: h, getRealTrackIndex: d, enableTransitionAfterJump: T, jumpToTrackIndex: I, goToSlide: g, moveSlide: x, prevSlide: R, nextSlide: q, translateX: A, renderedCarouselItems: M, isCurrentElementActive: D, elementIndicator: E, wrapperTransitionEndHandler: L, get NmorphIcon() {
|
|
86
|
+
return J;
|
|
37
87
|
}, get NmorphIconChevronLeft() {
|
|
38
|
-
return
|
|
88
|
+
return H;
|
|
39
89
|
}, get NmorphIconChevronRight() {
|
|
40
|
-
return
|
|
90
|
+
return B;
|
|
41
91
|
} };
|
|
42
|
-
return Object.defineProperty(
|
|
92
|
+
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
43
93
|
}
|
|
44
94
|
});
|
|
45
95
|
export {
|
|
46
|
-
|
|
96
|
+
V as default
|
|
47
97
|
};
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { openBlock as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
return
|
|
1
|
+
import m from "./NmorphCarouselItem.vue2.js";
|
|
2
|
+
import { openBlock as r, createElementBlock as t, normalizeClass as s, Fragment as l, renderList as a, createBlock as c, Teleport as i, renderSlot as p, createCommentVNode as d } from "vue";
|
|
3
|
+
import u from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function f(n, _, h, e, k, C) {
|
|
5
|
+
return e.isMounted ? (r(), t(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
8
|
key: 0,
|
|
9
|
-
class:
|
|
9
|
+
class: s(e.modifiers)
|
|
10
10
|
},
|
|
11
11
|
[
|
|
12
|
-
(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
(r(!0), t(
|
|
13
|
+
l,
|
|
14
|
+
null,
|
|
15
|
+
a(e.teleportTargets, (o) => (r(), c(i, {
|
|
16
|
+
key: o,
|
|
17
|
+
to: o
|
|
18
|
+
}, [
|
|
19
|
+
p(n.$slots, "default")
|
|
20
|
+
], 8, ["to"]))),
|
|
21
|
+
128
|
|
22
|
+
/* KEYED_FRAGMENT */
|
|
23
|
+
))
|
|
17
24
|
],
|
|
18
25
|
2
|
|
19
26
|
/* CLASS */
|
|
20
|
-
)) :
|
|
27
|
+
)) : d("v-if", !0);
|
|
21
28
|
}
|
|
22
|
-
const
|
|
29
|
+
const N = /* @__PURE__ */ u(m, [["render", f], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue"]]);
|
|
23
30
|
export {
|
|
24
|
-
|
|
31
|
+
N as default
|
|
25
32
|
};
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModifiers as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as l, computed as u, inject as c, ref as d, onMounted as _, onBeforeUnmount as h } from "vue";
|
|
2
|
+
import { useModifiers as v } from "../../../../../utils/create-modifiers.js";
|
|
3
|
+
const C = /* @__PURE__ */ l({
|
|
4
4
|
__name: "NmorphCarouselItem",
|
|
5
5
|
props: {
|
|
6
6
|
name: { type: String, required: !0 }
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
() =>
|
|
8
|
+
setup(i, { expose: m }) {
|
|
9
|
+
m();
|
|
10
|
+
const r = i, p = u(
|
|
11
|
+
() => v({
|
|
12
12
|
"nmorph-carousel-item": []
|
|
13
13
|
})
|
|
14
|
-
), e =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
), e = c("carousel-data"), o = d(!1), n = (t, a) => `#nmorph-carousel-item-${e?.carouselId}-${t}${a ? `-${a}` : ""}`, f = u(() => {
|
|
15
|
+
if (!e) return [];
|
|
16
|
+
const t = [n(r.name)], a = e.data.value;
|
|
17
|
+
return !e.hasLoopClones.value || !a.length || (r.name === a[0] && t.push(n(r.name, "after")), r.name === a[a.length - 1] && t.push(n(r.name, "before"))), t;
|
|
18
|
+
});
|
|
19
|
+
_(() => {
|
|
20
|
+
o.value = !0, e && e.data.value.push(r.name);
|
|
21
|
+
}), h(() => {
|
|
18
22
|
if (!e) return;
|
|
19
|
-
const
|
|
20
|
-
|
|
23
|
+
const t = e.data.value.indexOf(r.name);
|
|
24
|
+
t !== -1 && e.data.value.splice(t, 1);
|
|
21
25
|
});
|
|
22
|
-
const
|
|
23
|
-
return Object.defineProperty(
|
|
26
|
+
const s = { props: r, modifiers: p, carouselData: e, isMounted: o, getCarouselItemId: n, teleportTargets: f };
|
|
27
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
24
28
|
}
|
|
25
29
|
});
|
|
26
30
|
export {
|
|
27
|
-
|
|
31
|
+
C as default
|
|
28
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-private-empty-min-height);padding:var(--nmorph-private-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-empty-icon-size);height:var(--nmorph-private-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__description{max-width:min(420px,100%);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--nmorph-typography-body-font-weight);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__action{display:flex;justify-content:center;max-width:100%;margin-top:4px}.nmorph-empty.nmorph-empty--nmorph{background:var(--nmorph-main-color)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-inset{box-shadow:var(--nmorph-shadow-inset)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-outset{box-shadow:var(--nmorph-shadow-outset)}.nmorph-empty.nmorph-empty--plain{
|
|
1
|
+
.nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-private-empty-min-height);padding:var(--nmorph-private-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-empty-icon-size);height:var(--nmorph-private-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__description{max-width:min(420px,100%);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--nmorph-typography-body-font-weight);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__action{display:flex;justify-content:center;max-width:100%;margin-top:4px}.nmorph-empty.nmorph-empty--nmorph{background:var(--nmorph-main-color)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-inset{box-shadow:var(--nmorph-shadow-inset)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-outset{box-shadow:var(--nmorph-shadow-outset)}.nmorph-empty.nmorph-empty--plain{background:color-mix(in srgb,var(--nmorph-overlay-color) 42%,transparent)}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import './NmorphImage.css';
|
|
2
2
|
import { defineComponent as S, computed as t, ref as s } from "vue";
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { createCssSizeVariables as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import
|
|
3
|
+
import { useModifiers as _ } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssSizeVariables as q } from "../../../utils/common.js";
|
|
5
|
+
import { useI18n as b } from "vue-i18n";
|
|
6
|
+
import x from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
7
7
|
import I from "../../../assets/icons/loading.svg.js";
|
|
8
8
|
const C = /* @__PURE__ */ S({
|
|
9
9
|
__name: "NmorphImage",
|
|
10
10
|
props: {
|
|
11
11
|
design: { type: null, required: !1, default: "nmorph" },
|
|
12
|
-
loadingText: { type: String, required: !1, default: "" },
|
|
13
12
|
loadFailedText: { type: String, required: !1, default: "" },
|
|
14
13
|
frameBorder: { type: Number, required: !1, default: 2.67 },
|
|
15
14
|
src: { type: String, required: !1 },
|
|
@@ -22,32 +21,32 @@ const C = /* @__PURE__ */ S({
|
|
|
22
21
|
emits: ["error", "load"],
|
|
23
22
|
setup(u, { expose: p, emit: f }) {
|
|
24
23
|
p();
|
|
25
|
-
const { t: l } =
|
|
24
|
+
const { t: l } = b(), e = u, c = t(() => e.loadFailedText ? e.loadFailedText : l("loadFailedText")), r = s(!1), o = s(!1), a = f, h = (d) => {
|
|
26
25
|
r.value = !0, o.value = !1, a("load", d);
|
|
27
|
-
},
|
|
26
|
+
}, g = (d) => {
|
|
28
27
|
r.value = !0, o.value = !0, a("error", d);
|
|
29
|
-
},
|
|
30
|
-
() =>
|
|
28
|
+
}, m = t(() => r.value && o.value), i = t(() => e.design || "nmorph"), v = t(
|
|
29
|
+
() => _({
|
|
31
30
|
nmorph: [i.value === "nmorph" ? "shadow-combined" : ""],
|
|
32
31
|
"nmorph-image": [
|
|
33
32
|
i.value,
|
|
34
33
|
e.frameBorder > 0 && "framed",
|
|
35
|
-
(
|
|
34
|
+
(m.value || !r.value) && "hide"
|
|
36
35
|
]
|
|
37
36
|
})
|
|
38
37
|
), y = t(() => ({
|
|
39
|
-
...
|
|
38
|
+
...q({
|
|
40
39
|
"--nmorph-private-image-width": e.width,
|
|
41
40
|
"--nmorph-private-image-height": e.height
|
|
42
41
|
}),
|
|
43
42
|
"--nmorph-private-image-fit": e.fit || "cover",
|
|
44
43
|
"--nmorph-private-image-frame-border": `${e.frameBorder}px`
|
|
45
|
-
})),
|
|
46
|
-
return
|
|
44
|
+
})), n = { t: l, props: e, computedLoadFailedText: c, imageLoadFinished: r, imageLoadError: o, emit: a, onImageLoad: h, onImageError: g, loadingFailed: m, resolvedDesign: i, modifiers: v, styles: y, get NmorphIcon() {
|
|
45
|
+
return x;
|
|
47
46
|
}, get NmorphIconLoader() {
|
|
48
47
|
return I;
|
|
49
48
|
} };
|
|
50
|
-
return Object.defineProperty(
|
|
49
|
+
return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
52
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-media-tile{position:relative;display:flex;justify-content:center;align-items:center;
|
|
1
|
+
.nmorph-media-tile{position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:0;overflow:hidden;background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-media-tile.nmorph-media-tile--video{aspect-ratio:16/9}.nmorph-media-tile.nmorph-media-tile--fill{width:100%;height:100%;aspect-ratio:auto}.nmorph-media-tile .nmorph-media-tile__video{width:100%;height:100%;object-fit:cover}.nmorph-media-tile.nmorph-media-tile--contain .nmorph-media-tile__video{object-fit:contain}.nmorph-media-tile.nmorph-media-tile--mirrored .nmorph-media-tile__video{transform:scaleX(-1)}.nmorph-media-tile .nmorph-media-tile__fallback{display:flex;flex-direction:column;gap:var(--indentation-02);justify-content:center;align-items:center;width:100%;height:100%;padding:var(--indentation-04);color:var(--nmorph-text-color);text-align:center}.nmorph-media-tile .nmorph-media-tile__initials{display:flex;justify-content:center;align-items:center;width:72px;height:72px;color:var(--nmorph-focus-text-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-title-large-font-size);background:var(--nmorph-accent-color);border-radius:var(--border-radius-circular)}.nmorph-media-tile .nmorph-media-tile__name,.nmorph-media-tile .nmorph-media-tile__error-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-media-tile .nmorph-media-tile__error-text{color:var(--nmorph-error-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-media-tile .nmorph-media-tile__status{position:absolute;right:var(--indentation-03);bottom:var(--indentation-03);display:flex;gap:var(--indentation-02)}.nmorph-media-tile .nmorph-media-tile__status-item{color:var(--nmorph-text-color)}.nmorph-media-tile .nmorph-media-tile__status-item .nmorph-button__content{width:28px;min-width:28px;height:24px;min-height:24px;padding:0;color:currentColor;background:color-mix(in srgb,var(--nmorph-main-color) 86%,transparent);border-color:color-mix(in srgb,currentColor 35%,transparent);border-radius:var(--default-border-radius)}.nmorph-media-tile.nmorph-media-tile--selected{outline:2px solid var(--nmorph-accent-color)}.nmorph-media-tile.nmorph-media-tile--speaking{outline:3px solid var(--nmorph-success-color)}.nmorph-media-tile.nmorph-media-tile--error{outline:2px solid var(--nmorph-error-color)}.nmorph-media-tile.nmorph-media-tile--plain{border:var(--nmorph-plain-border);box-shadow:none}.nmorph-media-tile.nmorph-media-tile--screen-sharing{box-shadow:0 0 0 2px var(--nmorph-success-color)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './NmorphMediaTile.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as e, createElementBlock as
|
|
2
|
+
import d from "./NmorphMediaTile.vue2.js";
|
|
3
|
+
import { openBlock as e, createElementBlock as a, normalizeClass as m, withDirectives as p, createElementVNode as c, vShow as _, createCommentVNode as r, createBlock as i, withCtx as l, createVNode as n, toDisplayString as t, renderSlot as h } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import f from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const v = ["src", "muted", "autoplay", "playsinline"], y = ["muted", "autoplay"], k = {
|
|
@@ -19,8 +19,8 @@ const v = ["src", "muted", "autoplay", "playsinline"], y = ["muted", "autoplay"]
|
|
|
19
19
|
key: 2,
|
|
20
20
|
class: "nmorph-media-tile__status"
|
|
21
21
|
};
|
|
22
|
-
function S(
|
|
23
|
-
return e(),
|
|
22
|
+
function S(s, x, V, o, B, M) {
|
|
23
|
+
return e(), a(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
class: m(o.modifiers)
|
|
@@ -36,16 +36,16 @@ function S(d, x, V, o, B, M) {
|
|
|
36
36
|
}, null, 8, v), [
|
|
37
37
|
[_, o.videoVisible && !o.props.loading]
|
|
38
38
|
]),
|
|
39
|
-
o.needsSeparateAudioOutput ? (e(),
|
|
39
|
+
o.needsSeparateAudioOutput ? (e(), a("audio", {
|
|
40
40
|
key: 0,
|
|
41
41
|
ref: "audioRef",
|
|
42
42
|
class: "nmorph-media-tile__audio",
|
|
43
43
|
muted: o.props.muted,
|
|
44
44
|
autoplay: o.props.autoplay,
|
|
45
45
|
preload: "auto"
|
|
46
|
-
}, null, 8, y)) :
|
|
47
|
-
o.props.showFallback && (!o.videoVisible || o.props.loading) ? (e(),
|
|
48
|
-
o.props.loading ? (e(),
|
|
46
|
+
}, null, 8, y)) : r("v-if", !0),
|
|
47
|
+
o.props.showFallback && (!o.videoVisible || o.props.loading) ? (e(), a("div", k, [
|
|
48
|
+
o.props.loading ? (e(), i(o.NmorphIcon, {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "nmorph-media-tile__loader",
|
|
51
51
|
size: "large"
|
|
@@ -55,39 +55,40 @@ function S(d, x, V, o, B, M) {
|
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
57
57
|
/* STABLE */
|
|
58
|
-
})) : o.props.avatarSrc ? (e(),
|
|
58
|
+
})) : o.props.avatarSrc ? (e(), i(o.NmorphAvatar, {
|
|
59
59
|
key: 1,
|
|
60
60
|
src: o.props.avatarSrc,
|
|
61
61
|
name: o.props.name,
|
|
62
62
|
size: 72,
|
|
63
63
|
design: "plain"
|
|
64
|
-
}, null, 8, ["src", "name"])) : (e(),
|
|
64
|
+
}, null, 8, ["src", "name"])) : (e(), a(
|
|
65
65
|
"div",
|
|
66
66
|
b,
|
|
67
67
|
t(o.fallbackLabel),
|
|
68
68
|
1
|
|
69
69
|
/* TEXT */
|
|
70
70
|
)),
|
|
71
|
-
o.props.name ? (e(),
|
|
71
|
+
o.props.name ? (e(), a(
|
|
72
72
|
"span",
|
|
73
73
|
N,
|
|
74
74
|
t(o.props.name),
|
|
75
75
|
1
|
|
76
76
|
/* TEXT */
|
|
77
|
-
)) :
|
|
78
|
-
o.props.error && o.props.errorText ? (e(),
|
|
77
|
+
)) : r("v-if", !0),
|
|
78
|
+
o.props.error && o.props.errorText ? (e(), a(
|
|
79
79
|
"span",
|
|
80
80
|
u,
|
|
81
81
|
t(o.props.errorText),
|
|
82
82
|
1
|
|
83
83
|
/* TEXT */
|
|
84
|
-
)) :
|
|
85
|
-
])) :
|
|
86
|
-
o.props.showStatus ? (e(),
|
|
87
|
-
o.props.micMuted ? (e(),
|
|
84
|
+
)) : r("v-if", !0)
|
|
85
|
+
])) : r("v-if", !0),
|
|
86
|
+
o.props.showStatus ? (e(), a("div", g, [
|
|
87
|
+
o.props.micMuted ? (e(), i(o.NmorphButton, {
|
|
88
88
|
key: 0,
|
|
89
89
|
class: "nmorph-media-tile__status-item",
|
|
90
90
|
design: "plain",
|
|
91
|
+
borderless: "",
|
|
91
92
|
tabindex: -1,
|
|
92
93
|
"aria-label": "Microphone muted"
|
|
93
94
|
}, {
|
|
@@ -96,11 +97,12 @@ function S(d, x, V, o, B, M) {
|
|
|
96
97
|
]),
|
|
97
98
|
_: 1
|
|
98
99
|
/* STABLE */
|
|
99
|
-
})) :
|
|
100
|
-
o.props.videoOff ? (e(),
|
|
100
|
+
})) : r("v-if", !0),
|
|
101
|
+
o.props.videoOff ? (e(), i(o.NmorphButton, {
|
|
101
102
|
key: 1,
|
|
102
103
|
class: "nmorph-media-tile__status-item",
|
|
103
104
|
design: "plain",
|
|
105
|
+
borderless: "",
|
|
104
106
|
tabindex: -1,
|
|
105
107
|
"aria-label": "Video off"
|
|
106
108
|
}, {
|
|
@@ -109,11 +111,12 @@ function S(d, x, V, o, B, M) {
|
|
|
109
111
|
]),
|
|
110
112
|
_: 1
|
|
111
113
|
/* STABLE */
|
|
112
|
-
})) :
|
|
113
|
-
o.props.screenSharing ? (e(),
|
|
114
|
+
})) : r("v-if", !0),
|
|
115
|
+
o.props.screenSharing ? (e(), i(o.NmorphButton, {
|
|
114
116
|
key: 2,
|
|
115
117
|
class: "nmorph-media-tile__status-item",
|
|
116
118
|
design: "plain",
|
|
119
|
+
borderless: "",
|
|
117
120
|
tabindex: -1,
|
|
118
121
|
"aria-label": "Screen sharing"
|
|
119
122
|
}, {
|
|
@@ -122,15 +125,15 @@ function S(d, x, V, o, B, M) {
|
|
|
122
125
|
]),
|
|
123
126
|
_: 1
|
|
124
127
|
/* STABLE */
|
|
125
|
-
})) :
|
|
126
|
-
])) :
|
|
127
|
-
h(
|
|
128
|
+
})) : r("v-if", !0)
|
|
129
|
+
])) : r("v-if", !0),
|
|
130
|
+
h(s.$slots, "overlay")
|
|
128
131
|
],
|
|
129
132
|
2
|
|
130
133
|
/* CLASS */
|
|
131
134
|
);
|
|
132
135
|
}
|
|
133
|
-
const z = /* @__PURE__ */ f(
|
|
136
|
+
const z = /* @__PURE__ */ f(d, [["render", S], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-tile/NmorphMediaTile.vue"]]);
|
|
134
137
|
export {
|
|
135
138
|
z as default
|
|
136
139
|
};
|