ranui 0.1.1-alpha.8 → 0.1.2
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/_commonjs-dynamic-modules-2ceabb0b.js +12 -0
- package/dist/{add-user.98b805f1.js → add-user-d07564bd.js} +0 -1
- package/dist/{book.c3235430.js → book-2a5a596c.js} +0 -1
- package/dist/{check-circle.711c4f31.js → check-circle-2c986969.js} +0 -1
- package/dist/{check-circle-fill.0a9e8a28.js → check-circle-fill-62eaa796.js} +0 -1
- package/dist/{close-circle.dda355df.js → close-circle-2afb6e94.js} +0 -1
- package/dist/{close-circle-fill.726bf59c.js → close-circle-fill-b6906239.js} +0 -1
- package/dist/{close.9954c08c.js → close-ee3ba1d1.js} +0 -1
- package/dist/colz-746223ab.js +241 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/preview/colz.d.ts +72 -0
- package/dist/components/preview/docx.d.ts +8 -0
- package/dist/components/preview/excel/excel.d.ts +11 -0
- package/dist/components/preview/excel/index.d.ts +1 -0
- package/dist/components/preview/excel/media.d.ts +37 -0
- package/dist/components/preview/index.d.ts +2 -0
- package/dist/components/preview/pdf.d.ts +1 -0
- package/dist/components/preview/pptx/index.d.ts +16 -0
- package/dist/components/preview/pptx/process_pptx.d.ts +23 -0
- package/dist/components/preview/pptx/t_xml.d.ts +1 -0
- package/dist/components/preview/pptx/worker.d.ts +1 -0
- package/dist/components/video/index.d.ts +393 -0
- package/dist/docx-5262a8f1.js +2635 -0
- package/dist/{eye.c904f80b.js → eye-bd60afe1.js} +0 -1
- package/dist/{eye-close.a954b46e.js → eye-close-bde3c1fc.js} +0 -1
- package/dist/{home.f5970edc.js → home-f824d8f4.js} +0 -1
- package/dist/index-714a1eb8.js +85622 -0
- package/dist/index-c8a90f0d.js +23078 -0
- package/dist/index-f6ee5c1a.js +1761 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +11 -1229
- package/dist/index.umd.cjs +53 -2
- package/dist/{info-circle.718e6ac4.js → info-circle-59333e1c.js} +0 -1
- package/dist/{info-circle-fill.9dfc3b5e.js → info-circle-fill-3ab7660d.js} +0 -1
- package/dist/jszip.min-97cf7c6a.js +2655 -0
- package/dist/{loading.876d0293.js → loading-407d8249.js} +0 -1
- package/dist/{lock.26244026.js → lock-6d20715b.js} +0 -1
- package/dist/{message.5379338a.js → message-ee4fe153.js} +0 -1
- package/dist/pdf-d8fcfb67.js +112 -0
- package/dist/playwright.config.d.ts +11 -0
- package/dist/plugins/auto-import-file.d.ts +10 -0
- package/dist/plugins/load-style.d.ts +6 -0
- package/dist/plugins/load-svg.d.ts +9 -0
- package/dist/{power-off.050e4c26.js → power-off-bbec6b5f.js} +0 -1
- package/dist/{preview.de4d53cc.js → preview-164a4944.js} +0 -1
- package/dist/{setting.7917f3b2.js → setting-735a1963.js} +0 -1
- package/dist/style.css +1 -1
- package/dist/{team.b3a3196b.js → team-42573142.js} +0 -1
- package/dist/tests/button.spec.d.ts +1 -0
- package/dist/{unlock.1e7bed93.js → unlock-ae33c6f7.js} +0 -1
- package/dist/{user.21cfbfa6.js → user-b7098183.js} +0 -1
- package/dist/utils/index.d.ts +14 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/{warning-circle.b1792bd4.js → warning-circle-536d4749.js} +0 -1
- package/dist/{warning-circle-fill.b87fec04.js → warning-circle-fill-e4be98bc.js} +0 -1
- package/package.json +25 -42
- package/readme.md +7 -9
- package/dist/add-user.98b805f1.js.map +0 -1
- package/dist/book.c3235430.js.map +0 -1
- package/dist/check-circle-fill.0a9e8a28.js.map +0 -1
- package/dist/check-circle.711c4f31.js.map +0 -1
- package/dist/close-circle-fill.726bf59c.js.map +0 -1
- package/dist/close-circle.dda355df.js.map +0 -1
- package/dist/close.9954c08c.js.map +0 -1
- package/dist/eye-close.a954b46e.js.map +0 -1
- package/dist/eye.c904f80b.js.map +0 -1
- package/dist/home.f5970edc.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.umd.cjs.map +0 -1
- package/dist/info-circle-fill.9dfc3b5e.js.map +0 -1
- package/dist/info-circle.718e6ac4.js.map +0 -1
- package/dist/loading.876d0293.js.map +0 -1
- package/dist/lock.26244026.js.map +0 -1
- package/dist/message.5379338a.js.map +0 -1
- package/dist/power-off.050e4c26.js.map +0 -1
- package/dist/preview.de4d53cc.js.map +0 -1
- package/dist/setting.7917f3b2.js.map +0 -1
- package/dist/team.b3a3196b.js.map +0 -1
- package/dist/typings.d.ts +0 -46
- package/dist/unlock.1e7bed93.js.map +0 -1
- package/dist/user.21cfbfa6.js.map +0 -1
- package/dist/warning-circle-fill.b87fec04.js.map +0 -1
- package/dist/warning-circle.b1792bd4.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,1230 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { i, a, b, c, d, e, f, g, h } from "./index-f6ee5c1a.js";
|
|
2
|
+
export {
|
|
3
|
+
i as button,
|
|
4
|
+
a as icon,
|
|
5
|
+
b as image,
|
|
6
|
+
c as input,
|
|
7
|
+
d as message,
|
|
8
|
+
e as preview,
|
|
9
|
+
f as skeleton,
|
|
10
|
+
g as tabpane,
|
|
11
|
+
h as tabs
|
|
6
12
|
};
|
|
7
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc$7 = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}:host{position:relative;display:inline-block;font-weight:400;white-space:nowrap;text-align:center;background-image:none;border:1px solid transparent;box-shadow:0 2px #00000004;cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:manipulation;line-height:22px;font-size:14px;border-radius:2px;color:#000000d9;border-color:#d9d9d9;background:#fff;overflow:hidden;pointer-events:auto}:host,:host(:active),:host(:focus){outline:0}:host(:not([disabled]):hover){border-color:#1890ff;color:#1890ff}:host([type="primary"]){border-color:#1890ff;background-color:#1890ff;color:#fff}:host([type="primary"]:not([disabled])):after{background-image:radial-gradient(circle,#fff 10%,transparent 10.01%)}:host([type="primary"]:not([disabled]):hover){background-color:#40a9ff;color:#fff}:host([type="warning"]){border-color:#ff4d4f;background-color:#ff4d4f;color:#fff}:host([type="warning"]:not([disabled])):after{background-image:radial-gradient(circle,#fff 10%,transparent 10.01%)}:host([type="warning"]:not([disabled]):hover){border-color:#ff4d4f;background-color:#ff4d4f;color:#fff}:host([type="text"]){border:none}:host([disabled]){cursor:not-allowed;pointer-events:all;opacity:.6}:host(:not([disabled]):active):after{transform:translate(-50%,-50%) scale(0);opacity:.3;transition:0s}:host(:active) .btn:before{opacity:.2}:host(:not([disabled],[effect])):after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--ran-x, 0);top:var(--ran-y, 0);pointer-events:none;background-image:radial-gradient(circle,#1890ff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}:host .slot{display:block}.btn{display:flex;justify-content:space-between;align-items:center;padding:4px 15px}.btn .icon{margin-right:2px}\n';
|
|
8
|
-
const falseList = [false, "false", null, void 0];
|
|
9
|
-
const isDisabled = (element) => {
|
|
10
|
-
const status = element.hasAttribute("disabled");
|
|
11
|
-
const value = element.getAttribute("disabled");
|
|
12
|
-
if (status && !falseList.includes(value))
|
|
13
|
-
return true;
|
|
14
|
-
return false;
|
|
15
|
-
};
|
|
16
|
-
const setElementClass = (element, addClass) => {
|
|
17
|
-
const classList = element.classList;
|
|
18
|
-
if (!classList.contains(addClass)) {
|
|
19
|
-
classList.add(addClass);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
const deleteElementChildClass = (parent, deleteClass) => {
|
|
23
|
-
const pre = parent.querySelectorAll(`.${deleteClass}`);
|
|
24
|
-
if (pre.length > 0) {
|
|
25
|
-
pre.forEach((item) => item.classList.remove(deleteClass));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
class CustomError$1 {
|
|
29
|
-
constructor(message2 = "document is undefined or r-button is exist") {
|
|
30
|
-
__publicField(this, "message");
|
|
31
|
-
this.message = message2;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function Custom$4() {
|
|
35
|
-
if (typeof document !== "undefined" && !customElements.get("r-button")) {
|
|
36
|
-
class Button extends HTMLElement {
|
|
37
|
-
constructor() {
|
|
38
|
-
super();
|
|
39
|
-
__publicField(this, "_btn");
|
|
40
|
-
__publicField(this, "_iconElement");
|
|
41
|
-
__publicField(this, "_slot");
|
|
42
|
-
__publicField(this, "setIcon", () => {
|
|
43
|
-
if (this.icon) {
|
|
44
|
-
const { width, height } = this._slot.getBoundingClientRect();
|
|
45
|
-
const size = Math.min(width, height);
|
|
46
|
-
if (this._iconElement) {
|
|
47
|
-
this._iconElement.setAttribute("name", this.icon);
|
|
48
|
-
} else {
|
|
49
|
-
this._iconElement = document.createElement("r-icon");
|
|
50
|
-
this._iconElement.setAttribute("name", this.icon);
|
|
51
|
-
this._iconElement.setAttribute("color", "currentColor");
|
|
52
|
-
this._iconElement.setAttribute("class", "icon");
|
|
53
|
-
this._slot.insertAdjacentElement("beforebegin", this._iconElement);
|
|
54
|
-
}
|
|
55
|
-
if (this.iconSize) {
|
|
56
|
-
this._iconElement.setAttribute("size", this.iconSize);
|
|
57
|
-
} else {
|
|
58
|
-
this._iconElement.setAttribute("size", `${size - 5}`);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
__publicField(this, "mousedown", (event) => {
|
|
63
|
-
if (!this.disabled || this.disabled === "false") {
|
|
64
|
-
const { left, top } = this.getBoundingClientRect();
|
|
65
|
-
this.style.setProperty("--ran-x", event.clientX - left + "px");
|
|
66
|
-
this.style.setProperty("--ran-y", event.clientY - top + "px");
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
__publicField(this, "mouseLeave", () => {
|
|
70
|
-
this.style.removeProperty("--ran-x");
|
|
71
|
-
this.style.removeProperty("--ran-y");
|
|
72
|
-
});
|
|
73
|
-
this._slot = document.createElement("slot");
|
|
74
|
-
this._btn = document.createElement("div");
|
|
75
|
-
this._btn.setAttribute("class", "btn");
|
|
76
|
-
this._btn.appendChild(this._slot);
|
|
77
|
-
this._slot.setAttribute("class", "slot");
|
|
78
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
79
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
80
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc$7;
|
|
81
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
82
|
-
shadowRoot.appendChild(this._btn);
|
|
83
|
-
}
|
|
84
|
-
static get observedAttributes() {
|
|
85
|
-
return ["disabled", "icon", "effect", "iconSize"];
|
|
86
|
-
}
|
|
87
|
-
get disabled() {
|
|
88
|
-
return isDisabled(this);
|
|
89
|
-
}
|
|
90
|
-
set disabled(value) {
|
|
91
|
-
if (!value || value === "false") {
|
|
92
|
-
this.removeAttribute("disabled");
|
|
93
|
-
} else {
|
|
94
|
-
this.setAttribute("disabled", "");
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
get iconSize() {
|
|
98
|
-
return this.getAttribute("iconSize");
|
|
99
|
-
}
|
|
100
|
-
set iconSize(value) {
|
|
101
|
-
if (!value || value === "false") {
|
|
102
|
-
this.removeAttribute("iconSize");
|
|
103
|
-
} else {
|
|
104
|
-
this.setAttribute("iconSize", value);
|
|
105
|
-
this.setIcon();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
get icon() {
|
|
109
|
-
return this.getAttribute("icon");
|
|
110
|
-
}
|
|
111
|
-
set icon(value) {
|
|
112
|
-
if (!value || value === "false") {
|
|
113
|
-
this.removeAttribute("icon");
|
|
114
|
-
} else {
|
|
115
|
-
this.setAttribute("icon", value);
|
|
116
|
-
this.setIcon();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
get effect() {
|
|
120
|
-
return this.getAttribute("effect");
|
|
121
|
-
}
|
|
122
|
-
set effect(value) {
|
|
123
|
-
if (falseList.includes(value) || !value) {
|
|
124
|
-
this.removeAttribute("effect");
|
|
125
|
-
} else {
|
|
126
|
-
this.setAttribute("effect", value);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
connectedCallback() {
|
|
130
|
-
this._btn.addEventListener("mousedown", this.mousedown);
|
|
131
|
-
this._btn.addEventListener("mouseleave", this.mouseLeave);
|
|
132
|
-
this.setIcon();
|
|
133
|
-
}
|
|
134
|
-
disconnectCallback() {
|
|
135
|
-
this._btn.removeEventListener("mousedown", this.mousedown);
|
|
136
|
-
this._btn.removeEventListener("mouseleave", this.mouseLeave);
|
|
137
|
-
}
|
|
138
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
139
|
-
if (name === "disabled" && this._btn) {
|
|
140
|
-
if (!newValue || newValue === "false") {
|
|
141
|
-
this._btn.setAttribute("disabled", "");
|
|
142
|
-
} else {
|
|
143
|
-
this._btn.removeAttribute("disabled");
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if (name === "icon" && this._btn) {
|
|
147
|
-
if (oldValue !== newValue) {
|
|
148
|
-
this.setIcon();
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
if (name === "iconSize" && this._btn) {
|
|
152
|
-
if (oldValue !== newValue) {
|
|
153
|
-
this._btn.setAttribute("iconSize", newValue);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
customElements.define("r-button", Button);
|
|
159
|
-
return Button;
|
|
160
|
-
} else {
|
|
161
|
-
return CustomError$1;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
Custom$4();
|
|
165
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
166
|
-
const v = glob[path];
|
|
167
|
-
if (v) {
|
|
168
|
-
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
169
|
-
}
|
|
170
|
-
return new Promise((_, reject) => {
|
|
171
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc$6 = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}:host{display:inline-flex}:host .icon{display:block}:host([spin]){animation-name:rotate;animation-duration:1.4s;animation-timing-function:linear;animation-iteration-count:infinite}@keyframes rotate{to{transform:rotate(360deg)}}\n';
|
|
175
|
-
const fs = {};
|
|
176
|
-
let fileSystem = fs;
|
|
177
|
-
if (typeof process !== "undefined" && typeof fileSystem.Stats === "function") {
|
|
178
|
-
fileSystem._identification = true;
|
|
179
|
-
} else {
|
|
180
|
-
fileSystem = { _identification: false, message: "require is not defined" };
|
|
181
|
-
}
|
|
182
|
-
const str2Xml = (xmlStr, format = "text/xml") => {
|
|
183
|
-
if (window.DOMParser)
|
|
184
|
-
return new window.DOMParser().parseFromString(xmlStr, format).documentElement;
|
|
185
|
-
if (typeof window.ActiveXObject !== "undefined" && new window.ActiveXObject("Microsoft.XMLDOM")) {
|
|
186
|
-
const xmlDoc = new window.ActiveXObject("Microsoft.XMLDOM");
|
|
187
|
-
xmlDoc.async = "false";
|
|
188
|
-
xmlDoc.loadXML(xmlStr);
|
|
189
|
-
return xmlDoc;
|
|
190
|
-
}
|
|
191
|
-
return void 0;
|
|
192
|
-
};
|
|
193
|
-
function vnode$1(sel, data, children, text, elm) {
|
|
194
|
-
const key = data === void 0 ? void 0 : data.key;
|
|
195
|
-
return { sel, data, children, text, elm, key };
|
|
196
|
-
}
|
|
197
|
-
vnode$1("", {}, [], void 0, void 0);
|
|
198
|
-
function Custom$3() {
|
|
199
|
-
if (typeof window !== "undefined" && !customElements.get("r-icon")) {
|
|
200
|
-
class CustomElement2 extends HTMLElement {
|
|
201
|
-
constructor() {
|
|
202
|
-
super();
|
|
203
|
-
__publicField(this, "_icon");
|
|
204
|
-
__publicField(this, "_div");
|
|
205
|
-
__publicField(this, "loadLocal", () => {
|
|
206
|
-
return new Promise((resolve, reject) => {
|
|
207
|
-
__variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../assets/icons/add-user.svg": () => import("./add-user.98b805f1.js"), "../../assets/icons/book.svg": () => import("./book.c3235430.js"), "../../assets/icons/check-circle-fill.svg": () => import("./check-circle-fill.0a9e8a28.js"), "../../assets/icons/check-circle.svg": () => import("./check-circle.711c4f31.js"), "../../assets/icons/close-circle-fill.svg": () => import("./close-circle-fill.726bf59c.js"), "../../assets/icons/close-circle.svg": () => import("./close-circle.dda355df.js"), "../../assets/icons/close.svg": () => import("./close.9954c08c.js"), "../../assets/icons/eye-close.svg": () => import("./eye-close.a954b46e.js"), "../../assets/icons/eye.svg": () => import("./eye.c904f80b.js"), "../../assets/icons/home.svg": () => import("./home.f5970edc.js"), "../../assets/icons/info-circle-fill.svg": () => import("./info-circle-fill.9dfc3b5e.js"), "../../assets/icons/info-circle.svg": () => import("./info-circle.718e6ac4.js"), "../../assets/icons/loading.svg": () => import("./loading.876d0293.js"), "../../assets/icons/lock.svg": () => import("./lock.26244026.js"), "../../assets/icons/message.svg": () => import("./message.5379338a.js"), "../../assets/icons/power-off.svg": () => import("./power-off.050e4c26.js"), "../../assets/icons/preview.svg": () => import("./preview.de4d53cc.js"), "../../assets/icons/setting.svg": () => import("./setting.7917f3b2.js"), "../../assets/icons/team.svg": () => import("./team.b3a3196b.js"), "../../assets/icons/unlock.svg": () => import("./unlock.1e7bed93.js"), "../../assets/icons/user.svg": () => import("./user.21cfbfa6.js"), "../../assets/icons/warning-circle-fill.svg": () => import("./warning-circle-fill.b87fec04.js"), "../../assets/icons/warning-circle.svg": () => import("./warning-circle.b1792bd4.js") }), `../../assets/icons/${this.name}.svg`).then((result) => {
|
|
208
|
-
if (result && result.default && result.default._identification) {
|
|
209
|
-
const { data } = result.default;
|
|
210
|
-
this._icon && this._div.removeChild(this._icon);
|
|
211
|
-
this._icon = str2Xml(data, "image/svg+xml");
|
|
212
|
-
if (this._icon) {
|
|
213
|
-
this._div.appendChild(this._icon);
|
|
214
|
-
this.setSize();
|
|
215
|
-
this.setColor();
|
|
216
|
-
resolve();
|
|
217
|
-
}
|
|
218
|
-
} else {
|
|
219
|
-
this.loadNs();
|
|
220
|
-
reject(
|
|
221
|
-
`
|
|
222
|
-
couldn't be loaded by r-icon, message: ${this.name} icon is undefined`
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
}).catch((error) => {
|
|
226
|
-
this.loadNs();
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
__publicField(this, "loadNs", () => {
|
|
231
|
-
if (this._icon && this._div) {
|
|
232
|
-
this._div.removeChild(this._icon);
|
|
233
|
-
}
|
|
234
|
-
this._icon = document.createElement("svg");
|
|
235
|
-
this._icon.setAttribute("class", "icon");
|
|
236
|
-
this._icon.setAttribute("viewBox", "0 0 1024 1024");
|
|
237
|
-
this._icon.setAttribute("width", "100");
|
|
238
|
-
this._icon.setAttribute("height", "100");
|
|
239
|
-
const xLinksNs = "http://www.w3.org/1999/xlink";
|
|
240
|
-
const use = document.createElementNS(xLinksNs, "use");
|
|
241
|
-
use.setAttributeNS(
|
|
242
|
-
xLinksNs,
|
|
243
|
-
"xlink:href",
|
|
244
|
-
`../../assets/iconfont/icon.svg#icon-${this.name}`
|
|
245
|
-
);
|
|
246
|
-
this._icon.appendChild(use);
|
|
247
|
-
this._div.appendChild(this._icon);
|
|
248
|
-
});
|
|
249
|
-
__publicField(this, "setIcon", async () => {
|
|
250
|
-
if (this.name) {
|
|
251
|
-
this.loadLocal();
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
__publicField(this, "setSize", () => {
|
|
255
|
-
if (this._icon && this.size) {
|
|
256
|
-
this._icon.setAttribute("width", this.size);
|
|
257
|
-
this._icon.setAttribute("height", this.size);
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
__publicField(this, "setColor", () => {
|
|
261
|
-
if (this._icon) {
|
|
262
|
-
this.color ? this._icon.setAttribute("fill", this.color) : this._icon.setAttribute("fill", "currentColor");
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
__publicField(this, "setSpin", () => {
|
|
266
|
-
if (this.spin) {
|
|
267
|
-
this.style.setProperty("animation-duration", `${this.spin}s`);
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
this._div = document.createElement("div");
|
|
271
|
-
this._div.setAttribute("class", "icon");
|
|
272
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
273
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
274
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc$6;
|
|
275
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
276
|
-
shadowRoot.appendChild(this._div);
|
|
277
|
-
}
|
|
278
|
-
static get observedAttributes() {
|
|
279
|
-
return ["name", "size", "color", "spin"];
|
|
280
|
-
}
|
|
281
|
-
get name() {
|
|
282
|
-
return this.getAttribute("name");
|
|
283
|
-
}
|
|
284
|
-
set name(value) {
|
|
285
|
-
if (value)
|
|
286
|
-
this.setAttribute("name", value);
|
|
287
|
-
}
|
|
288
|
-
get size() {
|
|
289
|
-
return this.getAttribute("size");
|
|
290
|
-
}
|
|
291
|
-
set size(value) {
|
|
292
|
-
if (value)
|
|
293
|
-
this.setAttribute("size", value);
|
|
294
|
-
}
|
|
295
|
-
get color() {
|
|
296
|
-
return this.getAttribute("color");
|
|
297
|
-
}
|
|
298
|
-
set color(value) {
|
|
299
|
-
if (value)
|
|
300
|
-
this.setAttribute("color", value);
|
|
301
|
-
}
|
|
302
|
-
get spin() {
|
|
303
|
-
return this.getAttribute("spin");
|
|
304
|
-
}
|
|
305
|
-
set spin(value) {
|
|
306
|
-
if (value != null)
|
|
307
|
-
this.setAttribute("spin", value);
|
|
308
|
-
}
|
|
309
|
-
connectedCallback() {
|
|
310
|
-
this.setIcon();
|
|
311
|
-
}
|
|
312
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
313
|
-
if (newValue !== oldValue) {
|
|
314
|
-
if (name === "name")
|
|
315
|
-
this.setIcon();
|
|
316
|
-
if (name === "size")
|
|
317
|
-
this.setSize();
|
|
318
|
-
if (name === "color")
|
|
319
|
-
this.setColor();
|
|
320
|
-
if (name === "spin")
|
|
321
|
-
this.setSpin();
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
customElements.define("r-icon", CustomElement2);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
Custom$3();
|
|
329
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc$5 = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}\n';
|
|
330
|
-
const failImage = `
|
|
331
|
-
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==
|
|
332
|
-
`;
|
|
333
|
-
function Custom$2() {
|
|
334
|
-
if (typeof window !== "undefined" && !customElements.get("r-img")) {
|
|
335
|
-
class CustomElement2 extends HTMLElement {
|
|
336
|
-
constructor() {
|
|
337
|
-
super();
|
|
338
|
-
__publicField(this, "_image");
|
|
339
|
-
__publicField(this, "_container");
|
|
340
|
-
this._container = document.createElement("div");
|
|
341
|
-
this._container.setAttribute("class", "r-image");
|
|
342
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
343
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
344
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc$5;
|
|
345
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
346
|
-
shadowRoot.appendChild(this._container);
|
|
347
|
-
}
|
|
348
|
-
static get observedAttributes() {
|
|
349
|
-
return ["fallback"];
|
|
350
|
-
}
|
|
351
|
-
get fallback() {
|
|
352
|
-
return this.getAttribute("fallback") || failImage;
|
|
353
|
-
}
|
|
354
|
-
set fallback(value) {
|
|
355
|
-
if (value) {
|
|
356
|
-
this.setAttribute("fallback", value);
|
|
357
|
-
} else {
|
|
358
|
-
this.removeAttribute("fallback");
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
listenFallback(name, value) {
|
|
362
|
-
if (name === "fallback" && this._image) {
|
|
363
|
-
if (value) {
|
|
364
|
-
this._image.setAttribute("fallback", value);
|
|
365
|
-
} else {
|
|
366
|
-
this._image.removeAttribute("fallback");
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
connectedCallback() {
|
|
371
|
-
const src = this.getAttribute("src") || "";
|
|
372
|
-
this._image = new Image();
|
|
373
|
-
this._image.src = src;
|
|
374
|
-
this._image.addEventListener("error", () => {
|
|
375
|
-
if (this._image && this.fallback) {
|
|
376
|
-
this._image.src = this.fallback;
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
this._image.addEventListener("load", () => {
|
|
380
|
-
if (this._image) {
|
|
381
|
-
this._container.appendChild(this._image);
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
386
|
-
this.listenFallback(name, newValue);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
customElements.define("r-img", CustomElement2);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
Custom$2();
|
|
393
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc$4 = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}.input{position:relative;display:flex;width:100%;min-width:0;padding:2px 8px;color:#000000d9;font-size:12px;line-height:1.5715;background-color:#fff;background-image:none;border-width:1px;border-style:solid;border-color:#d9d9d9;border-radius:2px;transition:all .3s}.input:active{border-color:#40a9ff;box-shadow:0 0 0 2px #1890ff33;border-right-width:1px;outline:0}.input:hover{border-color:#40a9ff;border-right-width:1px}.input>.input-main:hover~.input-label{color:#40a9ff}.input[value]>.input-label{transform:translateY(calc(-50% - .43em)) scale(.8);color:#00000040}.input[status=error]{border-color:#ff4d4f}.input[status=error]>.input-main~.input-label{color:#ff4d4f}.input[status=warning]{border-color:#ff7875}.input[status=warning]>.input-main~.input-label{color:#ff7875}.input[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.input[disabled]>.input-main{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.input[disabled]>.input-main~.input-label{color:#00000040;background-color:#f5f5f5}.input[disabled]>.input-label{color:#999;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed}.input-main{writing-mode:horizontal-tb;text-rendering:auto;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0px;text-shadow:none;text-align:start;-webkit-rtl-ordering:logical;cursor:text;touch-action:manipulation;-webkit-appearance:none;text-overflow:ellipsis;box-sizing:border-box;margin:0;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";position:relative;border:none;width:100%;min-width:0;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;transition:all .3s}.input-main:focus,.input-main:hover{border:none;outline:0}.input-main::placeholder{color:#999}.input-main:placeholder-shown~.input-label{transform:translateY(calc(-50% - .43em)) scale(.8)}.input-main:focus~.input-label{transform:translateY(calc(-50% - .43em)) scale(.8)}.input-label{pointer-events:none;position:absolute;font-size:14px;left:8px;transition:transform .3s,color .3s,background-color .3s,backdrop-filter .3s;transform-origin:left;padding:0 .2em;color:#999;background:#fff;opacity:.9}\n';
|
|
394
|
-
class CustomError {
|
|
395
|
-
constructor(message2 = "document is undefined or r-input is exist") {
|
|
396
|
-
__publicField(this, "message");
|
|
397
|
-
this.message = message2;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
function Custom$1() {
|
|
401
|
-
if (typeof window !== "undefined" && !customElements.get("r-input")) {
|
|
402
|
-
class CustomElement2 extends HTMLElement {
|
|
403
|
-
constructor() {
|
|
404
|
-
super();
|
|
405
|
-
__publicField(this, "_container");
|
|
406
|
-
__publicField(this, "_label");
|
|
407
|
-
__publicField(this, "_input");
|
|
408
|
-
__publicField(this, "_icon");
|
|
409
|
-
__publicField(this, "inputValue", (event) => {
|
|
410
|
-
event.stopPropagation();
|
|
411
|
-
const target = event.target;
|
|
412
|
-
this.value = target ? target.value : "";
|
|
413
|
-
this.change();
|
|
414
|
-
this.dispatchEvent(
|
|
415
|
-
new CustomEvent("input", {
|
|
416
|
-
detail: {
|
|
417
|
-
value: this.value
|
|
418
|
-
}
|
|
419
|
-
})
|
|
420
|
-
);
|
|
421
|
-
});
|
|
422
|
-
__publicField(this, "change", () => {
|
|
423
|
-
this.dispatchEvent(
|
|
424
|
-
new CustomEvent("change", {
|
|
425
|
-
detail: {
|
|
426
|
-
value: this.value
|
|
427
|
-
}
|
|
428
|
-
})
|
|
429
|
-
);
|
|
430
|
-
});
|
|
431
|
-
__publicField(this, "focus", () => {
|
|
432
|
-
this.dispatchEvent(
|
|
433
|
-
new CustomEvent("focus", {
|
|
434
|
-
detail: {
|
|
435
|
-
value: this.value
|
|
436
|
-
}
|
|
437
|
-
})
|
|
438
|
-
);
|
|
439
|
-
});
|
|
440
|
-
__publicField(this, "dealIcon", () => {
|
|
441
|
-
if (!this._icon) {
|
|
442
|
-
this._icon = document.createElement("r-icon");
|
|
443
|
-
const { width, height } = this._input.getBoundingClientRect();
|
|
444
|
-
const size = Math.min(width, height);
|
|
445
|
-
this._icon.setAttribute("size", `${size}`);
|
|
446
|
-
this._input.insertAdjacentElement("beforebegin", this._icon);
|
|
447
|
-
}
|
|
448
|
-
this.icon && this._icon.setAttribute("name", this.icon);
|
|
449
|
-
});
|
|
450
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
451
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
452
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc$4;
|
|
453
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
454
|
-
this._container = document.createElement("div");
|
|
455
|
-
this._container.setAttribute("class", "input");
|
|
456
|
-
this._input = document.createElement("input");
|
|
457
|
-
this._input.setAttribute("class", "input-main");
|
|
458
|
-
this._container.appendChild(this._input);
|
|
459
|
-
shadowRoot.appendChild(this._container);
|
|
460
|
-
}
|
|
461
|
-
static get observedAttributes() {
|
|
462
|
-
return [
|
|
463
|
-
"label",
|
|
464
|
-
"disabled",
|
|
465
|
-
"name",
|
|
466
|
-
"placeholder",
|
|
467
|
-
"type",
|
|
468
|
-
"icon",
|
|
469
|
-
"status"
|
|
470
|
-
];
|
|
471
|
-
}
|
|
472
|
-
get value() {
|
|
473
|
-
return this.getAttribute("value");
|
|
474
|
-
}
|
|
475
|
-
set value(value) {
|
|
476
|
-
if (!isDisabled(this) && value) {
|
|
477
|
-
this.setAttribute("value", value);
|
|
478
|
-
this._container.setAttribute("value", value);
|
|
479
|
-
} else {
|
|
480
|
-
this.removeAttribute("value");
|
|
481
|
-
this._container.removeAttribute("value");
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
get placeholder() {
|
|
485
|
-
return this.getAttribute("placeholder");
|
|
486
|
-
}
|
|
487
|
-
set placeholder(value) {
|
|
488
|
-
if (value) {
|
|
489
|
-
this.setAttribute("placeholder", value);
|
|
490
|
-
} else {
|
|
491
|
-
this.removeAttribute("placeholder");
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
get required() {
|
|
495
|
-
return this.getAttribute("required");
|
|
496
|
-
}
|
|
497
|
-
set required(value) {
|
|
498
|
-
if (!value || value === "false") {
|
|
499
|
-
this.removeAttribute("required");
|
|
500
|
-
} else {
|
|
501
|
-
this.setAttribute("required", "");
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
get disabled() {
|
|
505
|
-
return isDisabled(this);
|
|
506
|
-
}
|
|
507
|
-
set disabled(value) {
|
|
508
|
-
if (falseList.includes(value)) {
|
|
509
|
-
this.removeAttribute("disabled");
|
|
510
|
-
this._container.removeAttribute("disabled");
|
|
511
|
-
this._input.removeAttribute("disabled");
|
|
512
|
-
} else {
|
|
513
|
-
this.setAttribute("disabled", "");
|
|
514
|
-
this._container.setAttribute("disabled", "");
|
|
515
|
-
this._input.setAttribute("disabled", "");
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
get label() {
|
|
519
|
-
return this.getAttribute("label") || "";
|
|
520
|
-
}
|
|
521
|
-
set label(value) {
|
|
522
|
-
this.setAttribute("label", value);
|
|
523
|
-
}
|
|
524
|
-
get status() {
|
|
525
|
-
return this.getAttribute("status") || "";
|
|
526
|
-
}
|
|
527
|
-
set status(value) {
|
|
528
|
-
if (value) {
|
|
529
|
-
this.setAttribute("status", value);
|
|
530
|
-
this._container.setAttribute("status", value);
|
|
531
|
-
} else {
|
|
532
|
-
this.removeAttribute("status");
|
|
533
|
-
this._container.removeAttribute("status");
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
get name() {
|
|
537
|
-
return this.getAttribute("name") || "";
|
|
538
|
-
}
|
|
539
|
-
set name(value) {
|
|
540
|
-
this.setAttribute("name", value);
|
|
541
|
-
}
|
|
542
|
-
get min() {
|
|
543
|
-
return this.getAttribute("min") || "";
|
|
544
|
-
}
|
|
545
|
-
set min(value) {
|
|
546
|
-
if (this.type === "number")
|
|
547
|
-
this.setAttribute("min", value);
|
|
548
|
-
}
|
|
549
|
-
get max() {
|
|
550
|
-
return this.getAttribute("max") || "";
|
|
551
|
-
}
|
|
552
|
-
set max(value) {
|
|
553
|
-
if (this.type === "number")
|
|
554
|
-
this.setAttribute("max", value);
|
|
555
|
-
}
|
|
556
|
-
get step() {
|
|
557
|
-
return this.getAttribute("step") || "";
|
|
558
|
-
}
|
|
559
|
-
set step(value) {
|
|
560
|
-
if (this.type === "number")
|
|
561
|
-
this.setAttribute("step", value);
|
|
562
|
-
}
|
|
563
|
-
get icon() {
|
|
564
|
-
return this.getAttribute("icon");
|
|
565
|
-
}
|
|
566
|
-
set icon(value) {
|
|
567
|
-
if (value) {
|
|
568
|
-
this.setAttribute("icon", value);
|
|
569
|
-
} else {
|
|
570
|
-
this.removeAttribute("icon");
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
get type() {
|
|
574
|
-
return this.getAttribute("type");
|
|
575
|
-
}
|
|
576
|
-
set type(value) {
|
|
577
|
-
if (value) {
|
|
578
|
-
this.setAttribute("type", value);
|
|
579
|
-
} else {
|
|
580
|
-
this.removeAttribute("type");
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
listenPlaceholder(name, value) {
|
|
584
|
-
if (name === "placeholder" && this._input) {
|
|
585
|
-
if (value != null) {
|
|
586
|
-
this._input.setAttribute("placeholder", value);
|
|
587
|
-
} else {
|
|
588
|
-
this._input.removeAttribute("placeholder");
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
listenLabel(name, value) {
|
|
593
|
-
if (name === "label" && this._input) {
|
|
594
|
-
if (value != null) {
|
|
595
|
-
if (this._label) {
|
|
596
|
-
this._label.innerHTML = value;
|
|
597
|
-
} else {
|
|
598
|
-
this._label = document.createElement("label");
|
|
599
|
-
this._label.innerHTML = value;
|
|
600
|
-
this._label.setAttribute("class", "input-label");
|
|
601
|
-
this._container.appendChild(this._label);
|
|
602
|
-
}
|
|
603
|
-
} else {
|
|
604
|
-
this._container.removeAttribute("label");
|
|
605
|
-
if (this._label) {
|
|
606
|
-
this._container.removeChild(this._label);
|
|
607
|
-
this._label = void 0;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
listenType(name, value) {
|
|
613
|
-
if (name === "type" && this._input) {
|
|
614
|
-
if (value) {
|
|
615
|
-
this._input.setAttribute("type", value);
|
|
616
|
-
} else {
|
|
617
|
-
this._input.removeAttribute("type");
|
|
618
|
-
this._input.removeAttribute("min");
|
|
619
|
-
this._input.removeAttribute("max");
|
|
620
|
-
this._input.removeAttribute("step");
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
listenStatus(name, value) {
|
|
625
|
-
if (name === "status" && this._container) {
|
|
626
|
-
if (value) {
|
|
627
|
-
this._container.setAttribute("status", value);
|
|
628
|
-
} else {
|
|
629
|
-
this._container.removeAttribute("status");
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
listenDisabled(name, value) {
|
|
634
|
-
if (name === "disabled" && this._container) {
|
|
635
|
-
if (falseList.includes(value)) {
|
|
636
|
-
this._container.removeAttribute("disabled");
|
|
637
|
-
} else {
|
|
638
|
-
this._container.setAttribute("disabled", "");
|
|
639
|
-
this._input.setAttribute("disabled", "");
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
listenIcon(name, value, oldValue) {
|
|
644
|
-
if (name === "icon" && value && value !== oldValue) {
|
|
645
|
-
this.removeAttribute("label");
|
|
646
|
-
this.setAttribute("icon", value);
|
|
647
|
-
this.dealIcon();
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
listenEvent(name, oldValue, newValue) {
|
|
651
|
-
this.listenPlaceholder(name, newValue);
|
|
652
|
-
this.listenLabel(name, newValue);
|
|
653
|
-
this.listenStatus(name, newValue);
|
|
654
|
-
this.listenDisabled(name, newValue);
|
|
655
|
-
this.listenIcon(name, newValue, oldValue);
|
|
656
|
-
}
|
|
657
|
-
connectedCallback() {
|
|
658
|
-
if (this.value) {
|
|
659
|
-
this._input.value = this.value;
|
|
660
|
-
this._container.setAttribute("value", this.value);
|
|
661
|
-
}
|
|
662
|
-
if (this.status) {
|
|
663
|
-
this._container.setAttribute("status", this.status);
|
|
664
|
-
}
|
|
665
|
-
if (isDisabled(this)) {
|
|
666
|
-
this._container.setAttribute("disabled", "");
|
|
667
|
-
this._input.setAttribute("disabled", "");
|
|
668
|
-
}
|
|
669
|
-
if (this.type) {
|
|
670
|
-
this._input.setAttribute("type", this.type);
|
|
671
|
-
}
|
|
672
|
-
this._input.addEventListener("input", this.inputValue);
|
|
673
|
-
this._input.addEventListener("focus", this.focus);
|
|
674
|
-
if (document.readyState === "complete") {
|
|
675
|
-
this.dealIcon();
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
disconnectCallback() {
|
|
679
|
-
this._input.removeEventListener("input", this.inputValue);
|
|
680
|
-
}
|
|
681
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
682
|
-
this.listenEvent(name, oldValue, newValue);
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
customElements.define("r-input", CustomElement2);
|
|
686
|
-
return CustomElement2;
|
|
687
|
-
} else {
|
|
688
|
-
return CustomError;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
Custom$1();
|
|
692
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc$3 = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}@keyframes MessageMoveUpIn{0%{transform:translateY(-100%);transform-origin:0 0;opacity:0}to{transform:translateY(0);transform-origin:0 0;opacity:1}}@keyframes MessageMoveOut{0%{max-height:150px;padding:8px;opacity:1}to{max-height:0;padding:0;opacity:0}}:host([type="toast"]){--ranui-message-background: rgba(0, 0, 0, .7);--ranui-message-color: #fff;--ranui-message-border-radius: 7px}.message-notice{padding:8px;text-align:center;max-width:90%;margin:0 auto;word-break:break-all}.message-notice-content{display:inline-block;padding:10px 16px;background:var(--ranui-message-background, #fff);border-radius:var(--ranui-message-border-radius, 2px);box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;pointer-events:all}.message-notice-content-info{align-items:center;display:flex}.message-notice-content-info span{margin:0;padding:0;color:var(--ranui-message-color, #000000d9);font-size:14px;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";z-index:1010;width:100%;pointer-events:none}.message-leave{animation-name:MessageMoveOut;animation-duration:.3s}.message-in{animation-name:MessageMoveUpIn;animation-duration:.2s;animation-fill-mode:both}\n';
|
|
693
|
-
const AnimationTime = 300;
|
|
694
|
-
const defaultDuration = 3e3;
|
|
695
|
-
const typeMapIcon = /* @__PURE__ */ new Map([
|
|
696
|
-
["success", "check-circle-fill"],
|
|
697
|
-
["warning", "warning-circle-fill"],
|
|
698
|
-
["error", "close-circle-fill"],
|
|
699
|
-
["info", "info-circle-fill"],
|
|
700
|
-
["toast", null]
|
|
701
|
-
]);
|
|
702
|
-
const typeMapColor = /* @__PURE__ */ new Map([
|
|
703
|
-
["success", "#52c41a"],
|
|
704
|
-
["warning", "#faad14"],
|
|
705
|
-
["error", "#ff4d4f"],
|
|
706
|
-
["info", "#1890ff"],
|
|
707
|
-
["toast", "rgba(0, 0, 0, 0.7)"]
|
|
708
|
-
]);
|
|
709
|
-
function Custom() {
|
|
710
|
-
if (typeof window !== "undefined" && !customElements.get("r-message")) {
|
|
711
|
-
class CustomElement2 extends HTMLElement {
|
|
712
|
-
constructor() {
|
|
713
|
-
super();
|
|
714
|
-
__publicField(this, "_info");
|
|
715
|
-
__publicField(this, "_notice");
|
|
716
|
-
__publicField(this, "_content");
|
|
717
|
-
__publicField(this, "_icon");
|
|
718
|
-
__publicField(this, "_span");
|
|
719
|
-
__publicField(this, "timeId");
|
|
720
|
-
__publicField(this, "close");
|
|
721
|
-
__publicField(this, "setIcon", (value) => {
|
|
722
|
-
var _a, _b, _c, _d;
|
|
723
|
-
const icon = typeMapIcon.get(value);
|
|
724
|
-
const color = typeMapColor.get(value);
|
|
725
|
-
if (icon) {
|
|
726
|
-
(_a = this._icon) == null ? void 0 : _a.setAttribute("name", icon);
|
|
727
|
-
(_b = this._icon) == null ? void 0 : _b.style.setProperty("margin-right", "8px");
|
|
728
|
-
(_c = this._icon) == null ? void 0 : _c.setAttribute("size", "18");
|
|
729
|
-
color && ((_d = this._icon) == null ? void 0 : _d.setAttribute("color", color));
|
|
730
|
-
}
|
|
731
|
-
});
|
|
732
|
-
this._notice = document.createElement("div");
|
|
733
|
-
this._notice.setAttribute("class", "message-notice");
|
|
734
|
-
this._content = document.createElement("div");
|
|
735
|
-
this._content.setAttribute("class", "message-notice-content");
|
|
736
|
-
this._info = document.createElement("div");
|
|
737
|
-
this._info.setAttribute("class", "message-notice-content-info");
|
|
738
|
-
this._icon = document.createElement("r-icon");
|
|
739
|
-
this._span = document.createElement("span");
|
|
740
|
-
this._info.appendChild(this._icon);
|
|
741
|
-
this._info.appendChild(this._span);
|
|
742
|
-
this._content.appendChild(this._info);
|
|
743
|
-
this._notice.appendChild(this._content);
|
|
744
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
745
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
746
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc$3;
|
|
747
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
748
|
-
shadowRoot.appendChild(this._notice);
|
|
749
|
-
}
|
|
750
|
-
static get observedAttributes() {
|
|
751
|
-
return ["type", "content"];
|
|
752
|
-
}
|
|
753
|
-
get type() {
|
|
754
|
-
return this.getAttribute("type");
|
|
755
|
-
}
|
|
756
|
-
set type(value) {
|
|
757
|
-
if (value)
|
|
758
|
-
this.setAttribute("type", value);
|
|
759
|
-
}
|
|
760
|
-
get content() {
|
|
761
|
-
return this.getAttribute("content");
|
|
762
|
-
}
|
|
763
|
-
set content(value) {
|
|
764
|
-
if (value)
|
|
765
|
-
this.setAttribute("content", value);
|
|
766
|
-
}
|
|
767
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
768
|
-
if (name === "content" && oldValue !== newValue) {
|
|
769
|
-
this._span.textContent = newValue;
|
|
770
|
-
}
|
|
771
|
-
if (name === "type" && oldValue !== newValue) {
|
|
772
|
-
this.setIcon(newValue);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
customElements.define("r-message", CustomElement2);
|
|
777
|
-
const container = document.createElement("div");
|
|
778
|
-
const div = document.createElement("div");
|
|
779
|
-
div.setAttribute("class", "ranui-message");
|
|
780
|
-
document.body.appendChild(container);
|
|
781
|
-
container.appendChild(div);
|
|
782
|
-
const commonPrompt = (type) => {
|
|
783
|
-
return (options) => {
|
|
784
|
-
const message2 = new CustomElement2();
|
|
785
|
-
message2.setAttribute("class", "message");
|
|
786
|
-
message2.timeId && clearTimeout(message2.timeId);
|
|
787
|
-
message2.setAttribute("type", type);
|
|
788
|
-
let duration = defaultDuration;
|
|
789
|
-
let close;
|
|
790
|
-
if (typeof options === "string") {
|
|
791
|
-
message2.setAttribute("content", options);
|
|
792
|
-
} else {
|
|
793
|
-
message2.setAttribute("content", options.content);
|
|
794
|
-
close = options.close;
|
|
795
|
-
duration = options.duration || defaultDuration;
|
|
796
|
-
}
|
|
797
|
-
const time = setTimeout(() => {
|
|
798
|
-
message2.classList.remove("message-in");
|
|
799
|
-
message2.classList.add("message-leave");
|
|
800
|
-
clearTimeout(time);
|
|
801
|
-
}, duration - AnimationTime);
|
|
802
|
-
message2.timeId = setTimeout(() => {
|
|
803
|
-
div.removeChild(message2);
|
|
804
|
-
if (close)
|
|
805
|
-
close();
|
|
806
|
-
}, duration);
|
|
807
|
-
div.appendChild(message2);
|
|
808
|
-
message2.classList.add("message-in");
|
|
809
|
-
};
|
|
810
|
-
};
|
|
811
|
-
return {
|
|
812
|
-
info: commonPrompt("info"),
|
|
813
|
-
success: commonPrompt("success"),
|
|
814
|
-
error: commonPrompt("error"),
|
|
815
|
-
warning: commonPrompt("warning"),
|
|
816
|
-
toast: commonPrompt("toast")
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
const message = Custom();
|
|
821
|
-
if (typeof window !== "undefined" && message) {
|
|
822
|
-
window.message = message;
|
|
823
|
-
}
|
|
824
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc$2 = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}@keyframes skeleton{0%{transform:translate(-37.5%)}to{transform:translate(37.5%)}}.skeleton{position:relative;z-index:0;overflow:hidden;background:0 0;width:100%;height:16px;background:rgba(0,0,0,.06);border-radius:4px}.skeleton:after{position:absolute;top:0;inset-inline-end:-150%;bottom:0;inset-inline-start:-150%;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);animation-name:skeleton;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite;content:""}\n';
|
|
825
|
-
function Skeleton() {
|
|
826
|
-
if (typeof window !== "undefined" && !customElements.get("r-skeleton")) {
|
|
827
|
-
class CustomElement2 extends HTMLElement {
|
|
828
|
-
constructor() {
|
|
829
|
-
super();
|
|
830
|
-
__publicField(this, "_div");
|
|
831
|
-
this._div = document.createElement("div");
|
|
832
|
-
this._div.setAttribute("class", "skeleton");
|
|
833
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
834
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
835
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc$2;
|
|
836
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
837
|
-
shadowRoot.appendChild(this._div);
|
|
838
|
-
}
|
|
839
|
-
static get observedAttributes() {
|
|
840
|
-
return ["disabled"];
|
|
841
|
-
}
|
|
842
|
-
connectedCallback() {
|
|
843
|
-
}
|
|
844
|
-
disconnectCallback() {
|
|
845
|
-
}
|
|
846
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
window.customElements.define("r-skeleton", CustomElement2);
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
Skeleton();
|
|
853
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc$1 = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}\n';
|
|
854
|
-
function CustomElement$1() {
|
|
855
|
-
if (typeof window !== "undefined" && !customElements.get("r-tab")) {
|
|
856
|
-
class TabPane extends HTMLElement {
|
|
857
|
-
constructor() {
|
|
858
|
-
super();
|
|
859
|
-
__publicField(this, "_div");
|
|
860
|
-
__publicField(this, "parent");
|
|
861
|
-
__publicField(this, "initAttribute", () => {
|
|
862
|
-
var _a, _b, _c;
|
|
863
|
-
this.parent = this.parentNode;
|
|
864
|
-
this.key && ((_a = this.parent) == null ? void 0 : _a.updateAttribute(this.key, "icon", this.icon));
|
|
865
|
-
this.key && ((_b = this.parent) == null ? void 0 : _b.updateAttribute(this.key, "iconSize", this.iconSize));
|
|
866
|
-
this.key && ((_c = this.parent) == null ? void 0 : _c.updateAttribute(this.key, "effect", this.effect));
|
|
867
|
-
});
|
|
868
|
-
this._div = document.createElement("slot");
|
|
869
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
870
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
871
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc$1;
|
|
872
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
873
|
-
shadowRoot.appendChild(this._div);
|
|
874
|
-
}
|
|
875
|
-
static get observedAttributes() {
|
|
876
|
-
return ["label", "key", "disabled", "icon", "effect", "iconSize"];
|
|
877
|
-
}
|
|
878
|
-
get label() {
|
|
879
|
-
return this.getAttribute("label") || "";
|
|
880
|
-
}
|
|
881
|
-
set label(value) {
|
|
882
|
-
this.setAttribute("label", value);
|
|
883
|
-
}
|
|
884
|
-
get icon() {
|
|
885
|
-
return this.getAttribute("icon");
|
|
886
|
-
}
|
|
887
|
-
set icon(value) {
|
|
888
|
-
if (!value || value === "false") {
|
|
889
|
-
this.removeAttribute("icon");
|
|
890
|
-
} else {
|
|
891
|
-
this.setAttribute("icon", value);
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
get iconSize() {
|
|
895
|
-
return this.getAttribute("iconSize");
|
|
896
|
-
}
|
|
897
|
-
set iconSize(value) {
|
|
898
|
-
if (!value || value === "false") {
|
|
899
|
-
this.removeAttribute("iconSize");
|
|
900
|
-
} else {
|
|
901
|
-
this.setAttribute("iconSize", value);
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
get key() {
|
|
905
|
-
return this.getAttribute("r-key");
|
|
906
|
-
}
|
|
907
|
-
set key(value) {
|
|
908
|
-
if (value) {
|
|
909
|
-
this.setAttribute("r-key", value);
|
|
910
|
-
} else {
|
|
911
|
-
this.removeAttribute("r-key");
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
get disabled() {
|
|
915
|
-
return this.getAttribute("disabled");
|
|
916
|
-
}
|
|
917
|
-
set disabled(value) {
|
|
918
|
-
if (!value || value === "false") {
|
|
919
|
-
this.removeAttribute("disabled");
|
|
920
|
-
} else {
|
|
921
|
-
this.setAttribute("disabled", value);
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
get effect() {
|
|
925
|
-
return this.getAttribute("effect");
|
|
926
|
-
}
|
|
927
|
-
set effect(value) {
|
|
928
|
-
if (!value || value === "false") {
|
|
929
|
-
this.removeAttribute("effect");
|
|
930
|
-
} else {
|
|
931
|
-
this.setAttribute("effect", value);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
onClick(e) {
|
|
935
|
-
console.log("e", e);
|
|
936
|
-
}
|
|
937
|
-
connectedCallback() {
|
|
938
|
-
this._div.addEventListener("click", this.onClick);
|
|
939
|
-
document.addEventListener("DOMContentLoaded", this.initAttribute);
|
|
940
|
-
}
|
|
941
|
-
disconnectCallback() {
|
|
942
|
-
document.removeEventListener("DOMContentLoaded", this.initAttribute);
|
|
943
|
-
}
|
|
944
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
945
|
-
var _a, _b, _c, _d, _e;
|
|
946
|
-
if (oldValue !== newValue && this.key && ((_a = this.parent) == null ? void 0 : _a.updateAttribute)) {
|
|
947
|
-
if (name === "icon")
|
|
948
|
-
(_b = this.parent) == null ? void 0 : _b.updateAttribute(this.key, "icon", newValue);
|
|
949
|
-
if (name === "iconSize")
|
|
950
|
-
(_c = this.parent) == null ? void 0 : _c.updateAttribute(this.key, "iconSize", newValue);
|
|
951
|
-
if (name === "effect")
|
|
952
|
-
(_d = this.parent) == null ? void 0 : _d.updateAttribute(this.key, "effect", newValue);
|
|
953
|
-
if (name === "disabled")
|
|
954
|
-
(_e = this.parent) == null ? void 0 : _e.updateAttribute(this.key, "disabled", newValue);
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
customElements.define("r-tab", TabPane);
|
|
959
|
-
return TabPane;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
CustomElement$1();
|
|
963
|
-
const f7170ee498e0dd32cbdcb63fba8f75cc = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(./assets/icons/close.svg) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}.tab ::slotted(r-tab){box-sizing:border-box;width:100%;height:100%;padding:10px;flex-shrink:0;overflow:auto;text-align:start}.tab-header{position:relative;overflow:hidden;scroll-behavior:smooth}.tab-header_nav{display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center}.tab-header_nav::-webkit-scrollbar{display:none}.tab-header_nav__item{flex-shrink:0}.tab-header_nav .active{color:var(--active-color, #1890ff)}.tab-header_line{position:absolute;width:0;margin-top:-2px;height:2px;border-radius:2px;background:var(--line-color, #1890ff);transition:.2s}.tab-content{overflow:hidden}.tab-content_wrap{display:flex;width:100%;height:100%;transition:.2s}:host([type="line"]) .tab-header_nav__item{border:solid 1px transparent}:host([type="line"]) .tab-header_nav .active{color:var(--line-color, #1890ff);border:solid 1px transparent;border-color:var(--border-color, rgba(0, 0, 0, .2)) var(--border-color, rgba(0, 0, 0, .2)) transparent;border-radius:var(--border-radius, .25em) var(--border-radius, .25em) 0 0}:host([type="line"]) .tab-header_line{transition:none;visibility:hidden}:host([type="line"]) .tab-header_line:after,:host([type="line"]) .tab-header_line:before{content:"";position:absolute;visibility:visible;width:9999px;height:1px;bottom:0;background:var(--border-color, rgba(0, 0, 0, .2))}:host([type="line"]) .tab-header_line:after{left:100%}:host([type="line"]) .tab-header_line:before{right:100%}:host([align="center"]) .tab-header_nav{justify-content:center}:host([align="center"]) .tab-header_line{left:50%}:host([align="end"]) .tab-header_nav{justify-content:flex-end}\n';
|
|
964
|
-
function CustomElement() {
|
|
965
|
-
if (typeof window !== "undefined" && !customElements.get("r-tabs")) {
|
|
966
|
-
class Tabs extends HTMLElement {
|
|
967
|
-
constructor() {
|
|
968
|
-
super();
|
|
969
|
-
__publicField(this, "_container");
|
|
970
|
-
__publicField(this, "_header");
|
|
971
|
-
__publicField(this, "_nav");
|
|
972
|
-
__publicField(this, "_line");
|
|
973
|
-
__publicField(this, "_content");
|
|
974
|
-
__publicField(this, "_wrap");
|
|
975
|
-
__publicField(this, "_slot");
|
|
976
|
-
__publicField(this, "tabHeaderKeyMapIndex");
|
|
977
|
-
__publicField(this, "initTabHeaderKeyMapIndex", (key, index) => {
|
|
978
|
-
const value = this.tabHeaderKeyMapIndex[key];
|
|
979
|
-
if (value) {
|
|
980
|
-
throw new Error(
|
|
981
|
-
"tab \u7EC4\u4EF6\u7684 key \u503C\u5B58\u5728\u91CD\u590D, \u6216\u8005\u67D0\u4E2A tab \u7EC4\u4EF6\u7F3A\u5C11 key \u5C5E\u6027"
|
|
982
|
-
);
|
|
983
|
-
} else {
|
|
984
|
-
this.tabHeaderKeyMapIndex[key] = index;
|
|
985
|
-
}
|
|
986
|
-
});
|
|
987
|
-
__publicField(this, "initTabLineAlignCenter", () => {
|
|
988
|
-
const { length } = this._nav.children;
|
|
989
|
-
let left = 0;
|
|
990
|
-
for (let i = 0; i < length; i++) {
|
|
991
|
-
const { width = 0 } = this._nav.children[i].getBoundingClientRect();
|
|
992
|
-
left += width;
|
|
993
|
-
}
|
|
994
|
-
this._line.style.setProperty("left", `calc(50% - ${left / 2}px)`);
|
|
995
|
-
});
|
|
996
|
-
__publicField(this, "initTabLineAlignEnd", () => {
|
|
997
|
-
const { length } = this._nav.children;
|
|
998
|
-
let left = 0;
|
|
999
|
-
for (let i = 0; i < length; i++) {
|
|
1000
|
-
const { width = 0 } = this._nav.children[i].getBoundingClientRect();
|
|
1001
|
-
left += width;
|
|
1002
|
-
}
|
|
1003
|
-
this._line.style.setProperty("left", `calc(100% - ${left}px)`);
|
|
1004
|
-
});
|
|
1005
|
-
__publicField(this, "setTabLine", (key) => {
|
|
1006
|
-
if (key) {
|
|
1007
|
-
const index = this.tabHeaderKeyMapIndex[key];
|
|
1008
|
-
const TabHeader = this._nav.children[index];
|
|
1009
|
-
const { width = 0 } = TabHeader.getBoundingClientRect();
|
|
1010
|
-
this._line.style.setProperty("width", `${width}px`);
|
|
1011
|
-
let distance = 0;
|
|
1012
|
-
for (let i = 0; i < index; i++) {
|
|
1013
|
-
const item = this._nav.children[i];
|
|
1014
|
-
const { width: width2 = 0 } = item.getBoundingClientRect();
|
|
1015
|
-
distance += width2;
|
|
1016
|
-
}
|
|
1017
|
-
this._line.style.setProperty("transform", `translateX(${distance}px)`);
|
|
1018
|
-
}
|
|
1019
|
-
});
|
|
1020
|
-
__publicField(this, "setTabContent", (key) => {
|
|
1021
|
-
if (key) {
|
|
1022
|
-
const index = this.tabHeaderKeyMapIndex[key];
|
|
1023
|
-
this._wrap.style.setProperty(
|
|
1024
|
-
"transform",
|
|
1025
|
-
`translateX(${index * -100}%)`
|
|
1026
|
-
);
|
|
1027
|
-
}
|
|
1028
|
-
});
|
|
1029
|
-
__publicField(this, "clickTabHead", (e) => {
|
|
1030
|
-
const tabHeader = e.target;
|
|
1031
|
-
const key = tabHeader.getAttribute("r-key");
|
|
1032
|
-
const disabled = isDisabled(tabHeader);
|
|
1033
|
-
if (!disabled && key) {
|
|
1034
|
-
this.setAttribute("active", key);
|
|
1035
|
-
this.setTabLine(key);
|
|
1036
|
-
this.setTabContent(key);
|
|
1037
|
-
deleteElementChildClass(this._nav, "active");
|
|
1038
|
-
setElementClass(tabHeader, "active");
|
|
1039
|
-
}
|
|
1040
|
-
});
|
|
1041
|
-
__publicField(this, "updateAttribute", (key, attribute, value = "") => {
|
|
1042
|
-
var _a, _b;
|
|
1043
|
-
const index = this.tabHeaderKeyMapIndex[key];
|
|
1044
|
-
if (key && value && this._nav.children[index]) {
|
|
1045
|
-
(_a = this._nav.children[index]) == null ? void 0 : _a.setAttribute(attribute, value);
|
|
1046
|
-
} else {
|
|
1047
|
-
(_b = this._nav.children[index]) == null ? void 0 : _b.removeAttribute(attribute);
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
1050
|
-
__publicField(this, "initActive", () => {
|
|
1051
|
-
const tabHeaderList = [...this._nav.children];
|
|
1052
|
-
const initTabList = tabHeaderList.filter((item) => !isDisabled(item));
|
|
1053
|
-
let initTabHeader;
|
|
1054
|
-
if (this.active != null) {
|
|
1055
|
-
initTabHeader = initTabList.find(
|
|
1056
|
-
(item) => item.getAttribute("r-key") === this.active
|
|
1057
|
-
);
|
|
1058
|
-
initTabHeader == null ? void 0 : initTabHeader.setAttribute("r-key", this.active);
|
|
1059
|
-
}
|
|
1060
|
-
if (!initTabHeader) {
|
|
1061
|
-
initTabHeader = initTabList.shift();
|
|
1062
|
-
}
|
|
1063
|
-
if (!initTabHeader)
|
|
1064
|
-
return;
|
|
1065
|
-
const index = tabHeaderList.findIndex((item) => item === initTabHeader);
|
|
1066
|
-
const key = (initTabHeader == null ? void 0 : initTabHeader.getAttribute("r-key")) || `${index}`;
|
|
1067
|
-
if (key != null) {
|
|
1068
|
-
this.setAttribute("active", `${key}`);
|
|
1069
|
-
setElementClass(initTabHeader, "active");
|
|
1070
|
-
this.setTabContent(key);
|
|
1071
|
-
setTimeout(() => {
|
|
1072
|
-
this.setTabLine(key);
|
|
1073
|
-
}, 200);
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
__publicField(this, "listenSlotChange", () => {
|
|
1077
|
-
const slots = this._slot.assignedElements();
|
|
1078
|
-
slots.forEach((item, index) => {
|
|
1079
|
-
const tabPane = this.createTabHeader(item, index);
|
|
1080
|
-
this._nav.appendChild(tabPane);
|
|
1081
|
-
tabPane.addEventListener("click", this.clickTabHead);
|
|
1082
|
-
});
|
|
1083
|
-
this.initActive();
|
|
1084
|
-
if (this.align) {
|
|
1085
|
-
if (this.align === "center")
|
|
1086
|
-
this.initTabLineAlignCenter();
|
|
1087
|
-
if (this.align === "end")
|
|
1088
|
-
this.initTabLineAlignEnd();
|
|
1089
|
-
}
|
|
1090
|
-
});
|
|
1091
|
-
__publicField(this, "initTab", () => {
|
|
1092
|
-
this._slot.addEventListener("slotchange", this.listenSlotChange);
|
|
1093
|
-
});
|
|
1094
|
-
__publicField(this, "unloadTab", () => {
|
|
1095
|
-
this._slot.removeEventListener("slotchange", this.listenSlotChange);
|
|
1096
|
-
});
|
|
1097
|
-
this._container = document.createElement("div");
|
|
1098
|
-
this._container.setAttribute("class", "tab");
|
|
1099
|
-
this._header = document.createElement("div");
|
|
1100
|
-
this._header.setAttribute("class", "tab-header");
|
|
1101
|
-
this._nav = document.createElement("div");
|
|
1102
|
-
this._nav.setAttribute("class", "tab-header_nav");
|
|
1103
|
-
this._line = document.createElement("div");
|
|
1104
|
-
this._line.setAttribute("class", "tab-header_line");
|
|
1105
|
-
this._content = document.createElement("div");
|
|
1106
|
-
this._content.setAttribute("class", "tab-content");
|
|
1107
|
-
this._wrap = document.createElement("div");
|
|
1108
|
-
this._wrap.setAttribute("class", "tab-content_wrap");
|
|
1109
|
-
this._slot = document.createElement("slot");
|
|
1110
|
-
this._wrap.appendChild(this._slot);
|
|
1111
|
-
this._content.appendChild(this._wrap);
|
|
1112
|
-
this._header.appendChild(this._nav);
|
|
1113
|
-
this._header.appendChild(this._line);
|
|
1114
|
-
this._container.appendChild(this._header);
|
|
1115
|
-
this._container.appendChild(this._content);
|
|
1116
|
-
this.tabHeaderKeyMapIndex = {};
|
|
1117
|
-
const shadowRoot = this.attachShadow({ mode: "closed" });
|
|
1118
|
-
const F7170EE498E0DD32CBDCB63FBA8F75CC = document.createElement("style");
|
|
1119
|
-
F7170EE498E0DD32CBDCB63FBA8F75CC.textContent = f7170ee498e0dd32cbdcb63fba8f75cc;
|
|
1120
|
-
shadowRoot.appendChild(F7170EE498E0DD32CBDCB63FBA8F75CC);
|
|
1121
|
-
shadowRoot.appendChild(this._container);
|
|
1122
|
-
}
|
|
1123
|
-
static get observedAttributes() {
|
|
1124
|
-
return ["active", "forceRender", "type", "align", "effect"];
|
|
1125
|
-
}
|
|
1126
|
-
get align() {
|
|
1127
|
-
return this.getAttribute("align") || "start";
|
|
1128
|
-
}
|
|
1129
|
-
set align(value) {
|
|
1130
|
-
this.setAttribute("align", value);
|
|
1131
|
-
}
|
|
1132
|
-
set type(value) {
|
|
1133
|
-
this.setAttribute("type", value);
|
|
1134
|
-
}
|
|
1135
|
-
get type() {
|
|
1136
|
-
return this.getAttribute("type") || "flat";
|
|
1137
|
-
}
|
|
1138
|
-
get active() {
|
|
1139
|
-
return this.getAttribute("active");
|
|
1140
|
-
}
|
|
1141
|
-
set active(value) {
|
|
1142
|
-
if (value) {
|
|
1143
|
-
this.setAttribute("active", value);
|
|
1144
|
-
this.setTabLine(value);
|
|
1145
|
-
this.setTabContent(value);
|
|
1146
|
-
} else {
|
|
1147
|
-
this.removeAttribute("active");
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
get effect() {
|
|
1151
|
-
return this.getAttribute("effect");
|
|
1152
|
-
}
|
|
1153
|
-
set effect(value) {
|
|
1154
|
-
if (!value || value === "false") {
|
|
1155
|
-
this.removeAttribute("effect");
|
|
1156
|
-
} else {
|
|
1157
|
-
this.setAttribute("effect", value);
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
createTabHeader(tabPane, index) {
|
|
1161
|
-
const label = tabPane.getAttribute("label") || "";
|
|
1162
|
-
const icon = tabPane.getAttribute("icon") || "";
|
|
1163
|
-
const iconSize = tabPane.getAttribute("iconSize") || "";
|
|
1164
|
-
const key = tabPane.getAttribute("r-key") || `${index}`;
|
|
1165
|
-
const type = tabPane.getAttribute("type") || "text";
|
|
1166
|
-
this.initTabHeaderKeyMapIndex(key, index);
|
|
1167
|
-
const tabHeader = document.createElement("r-button");
|
|
1168
|
-
tabHeader.setAttribute("class", "tab-header_nav__item");
|
|
1169
|
-
tabHeader.setAttribute("type", type);
|
|
1170
|
-
icon && tabHeader.setAttribute("icon", icon);
|
|
1171
|
-
iconSize && tabHeader.setAttribute("iconSize", iconSize);
|
|
1172
|
-
isDisabled(tabPane) && tabHeader.setAttribute("disabled", "");
|
|
1173
|
-
tabHeader.setAttribute("r-key", key);
|
|
1174
|
-
if (this.effect) {
|
|
1175
|
-
tabPane.setAttribute("effect", this.effect);
|
|
1176
|
-
this._line.style.setProperty("display", "none");
|
|
1177
|
-
}
|
|
1178
|
-
tabPane.setAttribute("r-key", key);
|
|
1179
|
-
tabHeader.innerHTML = label;
|
|
1180
|
-
return tabHeader;
|
|
1181
|
-
}
|
|
1182
|
-
connectedCallback() {
|
|
1183
|
-
this.initTab();
|
|
1184
|
-
}
|
|
1185
|
-
disconnectCallback() {
|
|
1186
|
-
this.unloadTab();
|
|
1187
|
-
}
|
|
1188
|
-
attributeChangedCallback(name, oldValue, newValue) {
|
|
1189
|
-
if (oldValue !== newValue) {
|
|
1190
|
-
this.dispatchEvent(
|
|
1191
|
-
new CustomEvent("change", {
|
|
1192
|
-
detail: {
|
|
1193
|
-
active: this.active
|
|
1194
|
-
}
|
|
1195
|
-
})
|
|
1196
|
-
);
|
|
1197
|
-
if (name === "align") {
|
|
1198
|
-
if (newValue === "center")
|
|
1199
|
-
this.initTabLineAlignCenter();
|
|
1200
|
-
if (newValue === "end")
|
|
1201
|
-
this.initTabLineAlignEnd();
|
|
1202
|
-
}
|
|
1203
|
-
if (name === "effect") {
|
|
1204
|
-
const tabHeaderList = [...this._nav.children];
|
|
1205
|
-
tabHeaderList.forEach((item) => {
|
|
1206
|
-
if (!this.effect || this.effect === "false") {
|
|
1207
|
-
item.removeAttribute("effect");
|
|
1208
|
-
} else {
|
|
1209
|
-
item.setAttribute("effect", newValue);
|
|
1210
|
-
}
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
if (name === "active") {
|
|
1214
|
-
this.setAttribute(name, newValue);
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
customElements.define("r-tabs", Tabs);
|
|
1220
|
-
return Tabs;
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
CustomElement();
|
|
1224
|
-
const styles = '.ranui-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.r-preview-mask{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:1081}.r-preview-mask .r-preview-options{width:100%;background:rgba(0,0,0,.1);pointer-events:auto;display:flex;flex-flow:row-reverse nowrap;align-items:center;justify-content:space-between}.r-preview-mask .r-preview-options-close{margin:14px;border:none;cursor:pointer;transition:all .3s;user-select:none;width:25px;height:25px;background:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjg4Mzc4MDE2NjYzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI2MDgiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48cGF0aCBkPSJNNTY4IDUxNS4wMDhsMjU0LjAxNi0yNTUuMDA4cTEyLTExLjAwOCAxMi0yNy40ODh0LTExLjQ4OC0yOC0yOC0xMS40ODgtMjcuNDg4IDEybC0yNTUuMDA4IDI1NC4wMTYtMjU1LjAwOC0yNTQuMDE2cS0xMS4wMDgtMTItMjcuNDg4LTEydC0yOCAxMS40ODgtMTEuNDg4IDI4IDEyIDI3LjQ4OGwyNTQuMDE2IDI1NS4wMDgtMjU0LjAxNiAyNTUuMDA4cS0xMiAxMS4wMDgtMTIgMjcuNDg4dDExLjQ4OCAyOCAyOCAxMS40ODggMjcuNDg4LTEybDI1NS4wMDgtMjU1LjAwOCAyNTUuMDA4IDI1NS4wMDhxMTEuMDA4IDEyIDI3LjQ4OCAxMnQyOC0xMS40ODggMTEuNDg4LTI4LTEyLTI3LjQ4OHoiIHAtaWQ9IjI2MDkiID48L3BhdGg+PC9zdmc+) no-repeat center center;background-size:contain}.r-preview-mask .r-preview-contain{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context{height:calc(100vh - 44px);overflow:auto}.r-preview-mask .r-preview-contain .r-preview-context section{width:100%;height:690px;position:relative;border:1px solid #333;background-color:#efefef;text-align:center;border-radius:10px;box-shadow:1px 1px 3px #aaa;overflow:hidden}.r-preview-mask .r-preview-contain .r-preview-context section div.block{position:absolute;top:0;left:0;width:100%}.r-preview-mask .r-preview-contain .r-preview-context section div.content{display:flex;flex-direction:column}.r-preview-mask .r-preview-contain .r-preview-context section div.v-up{justify-content:flex-start}.r-preview-mask .r-preview-contain .r-preview-context section div.v-mid{justify-content:center}.r-preview-mask .r-preview-contain .r-preview-context section div.v-down{justify-content:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.h-left{align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.h-mid{align-items:center;text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section div.h-right{align-items:flex-end;text-align:right}.r-preview-mask .r-preview-contain .r-preview-context section div.up-left{justify-content:flex-start;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.up-center{justify-content:flex-start;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.up-right{justify-content:flex-start;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.center-left{justify-content:center;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.center-center{justify-content:center;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.center-right{justify-content:center;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context section div.down-left{justify-content:flex-end;align-items:flex-start;text-align:left}.r-preview-mask .r-preview-contain .r-preview-context section div.down-center{justify-content:flex-end;align-items:center}.r-preview-mask .r-preview-contain .r-preview-context section div.down-right{justify-content:flex-end;align-items:flex-end}.r-preview-mask .r-preview-contain .r-preview-context li.slide{margin:10px 0;font-size:18px}.r-preview-mask .r-preview-contain .r-preview-context div.footer{text-align:center}.r-preview-mask .r-preview-contain .r-preview-context section table{position:absolute}.r-preview-mask .r-preview-contain .r-preview-context section table,.r-preview-mask .r-preview-contain .r-preview-context section th,.r-preview-mask .r-preview-contain .r-preview-context section td{border:1px solid black}.r-preview-mask .r-preview-contain .r-preview-context section svg.drawing{position:absolute;overflow:visible}\n';
|
|
1225
|
-
if (typeof document !== "undefined") {
|
|
1226
|
-
const style = document.createElement("style");
|
|
1227
|
-
style.textContent = styles;
|
|
1228
|
-
document.body.appendChild(style);
|
|
1229
|
-
}
|
|
1230
|
-
//# sourceMappingURL=index.js.map
|