bard-attachment_field 0.4.3 → 0.4.4
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/input-attachment.js +55 -55
- data/input-attachment/README.md +0 -21
- data/input-attachment/src/components/attachment-file/attachment-file.css +0 -12
- data/input-attachment/src/components/input-attachment/input-attachment.css +0 -11
- data/input-attachment/src/components/upload-dialog/upload-dialog.css +0 -8
- data/lib/bard/attachment_field/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04bddaff94f9c015aa039498e113c791b3fbbf0c7325c3aa94a68ccdbf72cae7
|
|
4
|
+
data.tar.gz: 4c736628b7eef82d12f3e09242c5bf5233806dc4f8d2c1b18b806eef74c67919
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2853c195171581691a0b7a2b09549eb873ae932ee5e4755a6eae6f287de59d3accb61c1a38ecd4c6ab03e0bcdbfec2d10085afe26126e7fd024032f0246491e3
|
|
7
|
+
data.tar.gz: 949b105834979b089398e66422b7f6208a39d0a6bf1536fcecaa80028365162033b406d3607e13dd6b88f18e512c41d316b29a28e661ddef7510a49ac27078df
|
|
@@ -188,10 +188,10 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
188
188
|
hostRef.$renderCount$ = 0;
|
|
189
189
|
}
|
|
190
190
|
if (BUILD.method && BUILD.lazyLoad) {
|
|
191
|
-
hostRef.$onInstancePromise$ = new Promise((
|
|
191
|
+
hostRef.$onInstancePromise$ = new Promise((r3) => hostRef.$onInstanceResolve$ = r3);
|
|
192
192
|
}
|
|
193
193
|
if (BUILD.asyncLoading) {
|
|
194
|
-
hostRef.$onReadyPromise$ = new Promise((
|
|
194
|
+
hostRef.$onReadyPromise$ = new Promise((r3) => hostRef.$onReadyResolve$ = r3);
|
|
195
195
|
hostElement["s-p"] = [];
|
|
196
196
|
hostElement["s-rc"] = [];
|
|
197
197
|
}
|
|
@@ -1834,13 +1834,13 @@ var convertColonRule = (cssText, regExp, partReplacer) => {
|
|
|
1834
1834
|
return cssText.replace(regExp, (...m2) => {
|
|
1835
1835
|
if (m2[2]) {
|
|
1836
1836
|
const parts = m2[2].split(",");
|
|
1837
|
-
const
|
|
1837
|
+
const r3 = [];
|
|
1838
1838
|
for (let i2 = 0; i2 < parts.length; i2++) {
|
|
1839
1839
|
const p2 = parts[i2].trim();
|
|
1840
1840
|
if (!p2) break;
|
|
1841
|
-
|
|
1841
|
+
r3.push(partReplacer(_polyfillHostNoCombinator, p2, m2[3]));
|
|
1842
1842
|
}
|
|
1843
|
-
return
|
|
1843
|
+
return r3.join(",");
|
|
1844
1844
|
} else {
|
|
1845
1845
|
return _polyfillHostNoCombinator + m2[3];
|
|
1846
1846
|
}
|
|
@@ -2783,7 +2783,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2783
2783
|
node = hostContentNodes[j2];
|
|
2784
2784
|
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
2785
2785
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
2786
|
-
let relocateNodeData = relocateNodes.find((
|
|
2786
|
+
let relocateNodeData = relocateNodes.find((r3) => r3.$nodeToRelocate$ === node);
|
|
2787
2787
|
checkSlotFallbackVisibility = true;
|
|
2788
2788
|
node["s-sn"] = node["s-sn"] || slotName;
|
|
2789
2789
|
if (relocateNodeData) {
|
|
@@ -2799,14 +2799,14 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2799
2799
|
if (node["s-sr"]) {
|
|
2800
2800
|
relocateNodes.map((relocateNode) => {
|
|
2801
2801
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
2802
|
-
relocateNodeData = relocateNodes.find((
|
|
2802
|
+
relocateNodeData = relocateNodes.find((r3) => r3.$nodeToRelocate$ === node);
|
|
2803
2803
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
2804
2804
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
2805
2805
|
}
|
|
2806
2806
|
}
|
|
2807
2807
|
});
|
|
2808
2808
|
}
|
|
2809
|
-
} else if (!relocateNodes.some((
|
|
2809
|
+
} else if (!relocateNodes.some((r3) => r3.$nodeToRelocate$ === node)) {
|
|
2810
2810
|
relocateNodes.push({
|
|
2811
2811
|
$nodeToRelocate$: node
|
|
2812
2812
|
});
|
|
@@ -3046,9 +3046,9 @@ var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
|
3046
3046
|
if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
3047
3047
|
const index = ancestorComponent["s-p"].push(
|
|
3048
3048
|
new Promise(
|
|
3049
|
-
(
|
|
3049
|
+
(r3) => hostRef.$onRenderResolve$ = () => {
|
|
3050
3050
|
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
3051
|
-
|
|
3051
|
+
r3();
|
|
3052
3052
|
}
|
|
3053
3053
|
)
|
|
3054
3054
|
);
|
|
@@ -4114,8 +4114,8 @@ var a2 = { exports: {} };
|
|
|
4114
4114
|
a2.exports = (function() {
|
|
4115
4115
|
var t = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
4116
4116
|
function e2(t2, e3) {
|
|
4117
|
-
var i3 = t2[0], s2 = t2[1],
|
|
4118
|
-
s2 = ((s2 += ((
|
|
4117
|
+
var i3 = t2[0], s2 = t2[1], r4 = t2[2], n4 = t2[3];
|
|
4118
|
+
s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & r4 | ~s2 & n4) + e3[0] - 680876936 | 0) << 7 | i3 >>> 25) + s2 | 0) & s2 | ~i3 & r4) + e3[1] - 389564586 | 0) << 12 | n4 >>> 20) + i3 | 0) & i3 | ~n4 & s2) + e3[2] + 606105819 | 0) << 17 | r4 >>> 15) + n4 | 0) & n4 | ~r4 & i3) + e3[3] - 1044525330 | 0) << 22 | s2 >>> 10) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & r4 | ~s2 & n4) + e3[4] - 176418897 | 0) << 7 | i3 >>> 25) + s2 | 0) & s2 | ~i3 & r4) + e3[5] + 1200080426 | 0) << 12 | n4 >>> 20) + i3 | 0) & i3 | ~n4 & s2) + e3[6] - 1473231341 | 0) << 17 | r4 >>> 15) + n4 | 0) & n4 | ~r4 & i3) + e3[7] - 45705983 | 0) << 22 | s2 >>> 10) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & r4 | ~s2 & n4) + e3[8] + 1770035416 | 0) << 7 | i3 >>> 25) + s2 | 0) & s2 | ~i3 & r4) + e3[9] - 1958414417 | 0) << 12 | n4 >>> 20) + i3 | 0) & i3 | ~n4 & s2) + e3[10] - 42063 | 0) << 17 | r4 >>> 15) + n4 | 0) & n4 | ~r4 & i3) + e3[11] - 1990404162 | 0) << 22 | s2 >>> 10) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & r4 | ~s2 & n4) + e3[12] + 1804603682 | 0) << 7 | i3 >>> 25) + s2 | 0) & s2 | ~i3 & r4) + e3[13] - 40341101 | 0) << 12 | n4 >>> 20) + i3 | 0) & i3 | ~n4 & s2) + e3[14] - 1502002290 | 0) << 17 | r4 >>> 15) + n4 | 0) & n4 | ~r4 & i3) + e3[15] + 1236535329 | 0) << 22 | s2 >>> 10) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & n4 | r4 & ~n4) + e3[1] - 165796510 | 0) << 5 | i3 >>> 27) + s2 | 0) & r4 | s2 & ~r4) + e3[6] - 1069501632 | 0) << 9 | n4 >>> 23) + i3 | 0) & s2 | i3 & ~s2) + e3[11] + 643717713 | 0) << 14 | r4 >>> 18) + n4 | 0) & i3 | n4 & ~i3) + e3[0] - 373897302 | 0) << 20 | s2 >>> 12) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & n4 | r4 & ~n4) + e3[5] - 701558691 | 0) << 5 | i3 >>> 27) + s2 | 0) & r4 | s2 & ~r4) + e3[10] + 38016083 | 0) << 9 | n4 >>> 23) + i3 | 0) & s2 | i3 & ~s2) + e3[15] - 660478335 | 0) << 14 | r4 >>> 18) + n4 | 0) & i3 | n4 & ~i3) + e3[4] - 405537848 | 0) << 20 | s2 >>> 12) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & n4 | r4 & ~n4) + e3[9] + 568446438 | 0) << 5 | i3 >>> 27) + s2 | 0) & r4 | s2 & ~r4) + e3[14] - 1019803690 | 0) << 9 | n4 >>> 23) + i3 | 0) & s2 | i3 & ~s2) + e3[3] - 187363961 | 0) << 14 | r4 >>> 18) + n4 | 0) & i3 | n4 & ~i3) + e3[8] + 1163531501 | 0) << 20 | s2 >>> 12) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 & n4 | r4 & ~n4) + e3[13] - 1444681467 | 0) << 5 | i3 >>> 27) + s2 | 0) & r4 | s2 & ~r4) + e3[2] - 51403784 | 0) << 9 | n4 >>> 23) + i3 | 0) & s2 | i3 & ~s2) + e3[7] + 1735328473 | 0) << 14 | r4 >>> 18) + n4 | 0) & i3 | n4 & ~i3) + e3[12] - 1926607734 | 0) << 20 | s2 >>> 12) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 ^ r4 ^ n4) + e3[5] - 378558 | 0) << 4 | i3 >>> 28) + s2 | 0) ^ s2 ^ r4) + e3[8] - 2022574463 | 0) << 11 | n4 >>> 21) + i3 | 0) ^ i3 ^ s2) + e3[11] + 1839030562 | 0) << 16 | r4 >>> 16) + n4 | 0) ^ n4 ^ i3) + e3[14] - 35309556 | 0) << 23 | s2 >>> 9) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 ^ r4 ^ n4) + e3[1] - 1530992060 | 0) << 4 | i3 >>> 28) + s2 | 0) ^ s2 ^ r4) + e3[4] + 1272893353 | 0) << 11 | n4 >>> 21) + i3 | 0) ^ i3 ^ s2) + e3[7] - 155497632 | 0) << 16 | r4 >>> 16) + n4 | 0) ^ n4 ^ i3) + e3[10] - 1094730640 | 0) << 23 | s2 >>> 9) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 ^ r4 ^ n4) + e3[13] + 681279174 | 0) << 4 | i3 >>> 28) + s2 | 0) ^ s2 ^ r4) + e3[0] - 358537222 | 0) << 11 | n4 >>> 21) + i3 | 0) ^ i3 ^ s2) + e3[3] - 722521979 | 0) << 16 | r4 >>> 16) + n4 | 0) ^ n4 ^ i3) + e3[6] + 76029189 | 0) << 23 | s2 >>> 9) + r4 | 0, s2 = ((s2 += ((r4 = ((r4 += ((n4 = ((n4 += ((i3 = ((i3 += (s2 ^ r4 ^ n4) + e3[9] - 640364487 | 0) << 4 | i3 >>> 28) + s2 | 0) ^ s2 ^ r4) + e3[12] - 421815835 | 0) << 11 | n4 >>> 21) + i3 | 0) ^ i3 ^ s2) + e3[15] + 530742520 | 0) << 16 | r4 >>> 16) + n4 | 0) ^ n4 ^ i3) + e3[2] - 995338651 | 0) << 23 | s2 >>> 9) + r4 | 0, s2 = ((s2 += ((n4 = ((n4 += (s2 ^ ((i3 = ((i3 += (r4 ^ (s2 | ~n4)) + e3[0] - 198630844 | 0) << 6 | i3 >>> 26) + s2 | 0) | ~r4)) + e3[7] + 1126891415 | 0) << 10 | n4 >>> 22) + i3 | 0) ^ ((r4 = ((r4 += (i3 ^ (n4 | ~s2)) + e3[14] - 1416354905 | 0) << 15 | r4 >>> 17) + n4 | 0) | ~i3)) + e3[5] - 57434055 | 0) << 21 | s2 >>> 11) + r4 | 0, s2 = ((s2 += ((n4 = ((n4 += (s2 ^ ((i3 = ((i3 += (r4 ^ (s2 | ~n4)) + e3[12] + 1700485571 | 0) << 6 | i3 >>> 26) + s2 | 0) | ~r4)) + e3[3] - 1894986606 | 0) << 10 | n4 >>> 22) + i3 | 0) ^ ((r4 = ((r4 += (i3 ^ (n4 | ~s2)) + e3[10] - 1051523 | 0) << 15 | r4 >>> 17) + n4 | 0) | ~i3)) + e3[1] - 2054922799 | 0) << 21 | s2 >>> 11) + r4 | 0, s2 = ((s2 += ((n4 = ((n4 += (s2 ^ ((i3 = ((i3 += (r4 ^ (s2 | ~n4)) + e3[8] + 1873313359 | 0) << 6 | i3 >>> 26) + s2 | 0) | ~r4)) + e3[15] - 30611744 | 0) << 10 | n4 >>> 22) + i3 | 0) ^ ((r4 = ((r4 += (i3 ^ (n4 | ~s2)) + e3[6] - 1560198380 | 0) << 15 | r4 >>> 17) + n4 | 0) | ~i3)) + e3[13] + 1309151649 | 0) << 21 | s2 >>> 11) + r4 | 0, s2 = ((s2 += ((n4 = ((n4 += (s2 ^ ((i3 = ((i3 += (r4 ^ (s2 | ~n4)) + e3[4] - 145523070 | 0) << 6 | i3 >>> 26) + s2 | 0) | ~r4)) + e3[11] - 1120210379 | 0) << 10 | n4 >>> 22) + i3 | 0) ^ ((r4 = ((r4 += (i3 ^ (n4 | ~s2)) + e3[2] + 718787259 | 0) << 15 | r4 >>> 17) + n4 | 0) | ~i3)) + e3[9] - 343485551 | 0) << 21 | s2 >>> 11) + r4 | 0, t2[0] = i3 + t2[0] | 0, t2[1] = s2 + t2[1] | 0, t2[2] = r4 + t2[2] | 0, t2[3] = n4 + t2[3] | 0;
|
|
4119
4119
|
}
|
|
4120
4120
|
function i2(t2) {
|
|
4121
4121
|
var e3, i3 = [];
|
|
@@ -4127,10 +4127,10 @@ a2.exports = (function() {
|
|
|
4127
4127
|
for (e3 = 0; e3 < 64; e3 += 4) i3[e3 >> 2] = t2[e3] + (t2[e3 + 1] << 8) + (t2[e3 + 2] << 16) + (t2[e3 + 3] << 24);
|
|
4128
4128
|
return i3;
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4131
|
-
var s2,
|
|
4130
|
+
function r3(t2) {
|
|
4131
|
+
var s2, r4, n4, o4, a4, h4, c6 = t2.length, l3 = [1732584193, -271733879, -1732584194, 271733878];
|
|
4132
4132
|
for (s2 = 64; s2 <= c6; s2 += 64) e2(l3, i2(t2.substring(s2 - 64, s2)));
|
|
4133
|
-
for (
|
|
4133
|
+
for (r4 = (t2 = t2.substring(s2 - 64)).length, n4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], s2 = 0; s2 < r4; s2 += 1) n4[s2 >> 2] |= t2.charCodeAt(s2) << (s2 % 4 << 3);
|
|
4134
4134
|
if (n4[s2 >> 2] |= 128 << (s2 % 4 << 3), s2 > 55) for (e2(l3, n4), s2 = 0; s2 < 16; s2 += 1) n4[s2] = 0;
|
|
4135
4135
|
return o4 = (o4 = 8 * c6).toString(16).match(/(.*?)(.{0,8})$/), a4 = parseInt(o4[2], 16), h4 = parseInt(o4[1], 16) || 0, n4[14] = a4, n4[15] = h4, e2(l3, n4), l3;
|
|
4136
4136
|
}
|
|
@@ -4155,25 +4155,25 @@ a2.exports = (function() {
|
|
|
4155
4155
|
function c5() {
|
|
4156
4156
|
this.reset();
|
|
4157
4157
|
}
|
|
4158
|
-
return o3(
|
|
4158
|
+
return o3(r3("hello")), "undefined" == typeof ArrayBuffer || ArrayBuffer.prototype.slice || (function() {
|
|
4159
4159
|
function t2(t3, e3) {
|
|
4160
4160
|
return (t3 = 0 | t3 || 0) < 0 ? Math.max(t3 + e3, 0) : Math.min(t3, e3);
|
|
4161
4161
|
}
|
|
4162
4162
|
ArrayBuffer.prototype.slice = function(e3, i3) {
|
|
4163
|
-
var s2,
|
|
4164
|
-
return void 0 !== i3 && (c6 = t2(i3, a4)), h4 > c6 ? new ArrayBuffer(0) : (s2 = c6 - h4,
|
|
4163
|
+
var s2, r4, n4, o4, a4 = this.byteLength, h4 = t2(e3, a4), c6 = a4;
|
|
4164
|
+
return void 0 !== i3 && (c6 = t2(i3, a4)), h4 > c6 ? new ArrayBuffer(0) : (s2 = c6 - h4, r4 = new ArrayBuffer(s2), n4 = new Uint8Array(r4), o4 = new Uint8Array(this, h4, s2), n4.set(o4), r4);
|
|
4165
4165
|
};
|
|
4166
4166
|
})(), c5.prototype.append = function(t2) {
|
|
4167
4167
|
return this.appendBinary(a3(t2)), this;
|
|
4168
4168
|
}, c5.prototype.appendBinary = function(t2) {
|
|
4169
4169
|
this._buff += t2, this._length += t2.length;
|
|
4170
|
-
var s2,
|
|
4171
|
-
for (s2 = 64; s2 <=
|
|
4170
|
+
var s2, r4 = this._buff.length;
|
|
4171
|
+
for (s2 = 64; s2 <= r4; s2 += 64) e2(this._hash, i2(this._buff.substring(s2 - 64, s2)));
|
|
4172
4172
|
return this._buff = this._buff.substring(s2 - 64), this;
|
|
4173
4173
|
}, c5.prototype.end = function(t2) {
|
|
4174
|
-
var e3, i3, s2 = this._buff,
|
|
4175
|
-
for (e3 = 0; e3 <
|
|
4176
|
-
return this._finish(n4,
|
|
4174
|
+
var e3, i3, s2 = this._buff, r4 = s2.length, n4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
4175
|
+
for (e3 = 0; e3 < r4; e3 += 1) n4[e3 >> 2] |= s2.charCodeAt(e3) << (e3 % 4 << 3);
|
|
4176
|
+
return this._finish(n4, r4), i3 = o3(this._hash), t2 && (i3 = h3(i3)), this.reset(), i3;
|
|
4177
4177
|
}, c5.prototype.reset = function() {
|
|
4178
4178
|
return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
|
|
4179
4179
|
}, c5.prototype.getState = function() {
|
|
@@ -4183,24 +4183,24 @@ a2.exports = (function() {
|
|
|
4183
4183
|
}, c5.prototype.destroy = function() {
|
|
4184
4184
|
delete this._hash, delete this._buff, delete this._length;
|
|
4185
4185
|
}, c5.prototype._finish = function(t2, i3) {
|
|
4186
|
-
var s2,
|
|
4186
|
+
var s2, r4, n4, o4 = i3;
|
|
4187
4187
|
if (t2[o4 >> 2] |= 128 << (o4 % 4 << 3), o4 > 55) for (e2(this._hash, t2), o4 = 0; o4 < 16; o4 += 1) t2[o4] = 0;
|
|
4188
|
-
s2 = (s2 = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/),
|
|
4188
|
+
s2 = (s2 = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), r4 = parseInt(s2[2], 16), n4 = parseInt(s2[1], 16) || 0, t2[14] = r4, t2[15] = n4, e2(this._hash, t2);
|
|
4189
4189
|
}, c5.hash = function(t2, e3) {
|
|
4190
4190
|
return c5.hashBinary(a3(t2), e3);
|
|
4191
4191
|
}, c5.hashBinary = function(t2, e3) {
|
|
4192
|
-
var i3 = o3(
|
|
4192
|
+
var i3 = o3(r3(t2));
|
|
4193
4193
|
return e3 ? h3(i3) : i3;
|
|
4194
4194
|
}, (c5.ArrayBuffer = function() {
|
|
4195
4195
|
this.reset();
|
|
4196
4196
|
}).prototype.append = function(t2) {
|
|
4197
|
-
var i3,
|
|
4197
|
+
var i3, r4, n4, o4, a4 = (r4 = this._buff.buffer, n4 = t2, (o4 = new Uint8Array(r4.byteLength + n4.byteLength)).set(new Uint8Array(r4)), o4.set(new Uint8Array(n4), r4.byteLength), o4), h4 = a4.length;
|
|
4198
4198
|
for (this._length += t2.byteLength, i3 = 64; i3 <= h4; i3 += 64) e2(this._hash, s(a4.subarray(i3 - 64, i3)));
|
|
4199
4199
|
return this._buff = i3 - 64 < h4 ? new Uint8Array(a4.buffer.slice(i3 - 64)) : new Uint8Array(0), this;
|
|
4200
4200
|
}, c5.ArrayBuffer.prototype.end = function(t2) {
|
|
4201
|
-
var e3, i3, s2 = this._buff,
|
|
4202
|
-
for (e3 = 0; e3 <
|
|
4203
|
-
return this._finish(n4,
|
|
4201
|
+
var e3, i3, s2 = this._buff, r4 = s2.length, n4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
4202
|
+
for (e3 = 0; e3 < r4; e3 += 1) n4[e3 >> 2] |= s2[e3] << (e3 % 4 << 3);
|
|
4203
|
+
return this._finish(n4, r4), i3 = o3(this._hash), t2 && (i3 = h3(i3)), this.reset(), i3;
|
|
4204
4204
|
}, c5.ArrayBuffer.prototype.reset = function() {
|
|
4205
4205
|
return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
|
|
4206
4206
|
}, c5.ArrayBuffer.prototype.getState = function() {
|
|
@@ -4208,19 +4208,19 @@ a2.exports = (function() {
|
|
|
4208
4208
|
return t2.buff = String.fromCharCode.apply(null, new Uint8Array(t2.buff)), t2;
|
|
4209
4209
|
}, c5.ArrayBuffer.prototype.setState = function(t2) {
|
|
4210
4210
|
return t2.buff = (function(t3, e3) {
|
|
4211
|
-
var i3, s2 = t3.length,
|
|
4211
|
+
var i3, s2 = t3.length, r4 = new ArrayBuffer(s2), n4 = new Uint8Array(r4);
|
|
4212
4212
|
for (i3 = 0; i3 < s2; i3 += 1) n4[i3] = t3.charCodeAt(i3);
|
|
4213
|
-
return e3 ? n4 :
|
|
4213
|
+
return e3 ? n4 : r4;
|
|
4214
4214
|
})(t2.buff, true), c5.prototype.setState.call(this, t2);
|
|
4215
4215
|
}, c5.ArrayBuffer.prototype.destroy = c5.prototype.destroy, c5.ArrayBuffer.prototype._finish = c5.prototype._finish, c5.ArrayBuffer.hash = function(t2, i3) {
|
|
4216
|
-
var
|
|
4217
|
-
var i4,
|
|
4216
|
+
var r4 = o3((function(t3) {
|
|
4217
|
+
var i4, r5, n4, o4, a4, h4, c6 = t3.length, l3 = [1732584193, -271733879, -1732584194, 271733878];
|
|
4218
4218
|
for (i4 = 64; i4 <= c6; i4 += 64) e2(l3, s(t3.subarray(i4 - 64, i4)));
|
|
4219
|
-
for (
|
|
4219
|
+
for (r5 = (t3 = i4 - 64 < c6 ? t3.subarray(i4 - 64) : new Uint8Array(0)).length, n4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], i4 = 0; i4 < r5; i4 += 1) n4[i4 >> 2] |= t3[i4] << (i4 % 4 << 3);
|
|
4220
4220
|
if (n4[i4 >> 2] |= 128 << (i4 % 4 << 3), i4 > 55) for (e2(l3, n4), i4 = 0; i4 < 16; i4 += 1) n4[i4] = 0;
|
|
4221
4221
|
return o4 = (o4 = 8 * c6).toString(16).match(/(.*?)(.{0,8})$/), a4 = parseInt(o4[2], 16), h4 = parseInt(o4[1], 16) || 0, n4[14] = a4, n4[15] = h4, e2(l3, n4), l3;
|
|
4222
4222
|
})(new Uint8Array(t2)));
|
|
4223
|
-
return i3 ? h3(
|
|
4223
|
+
return i3 ? h3(r4) : r4;
|
|
4224
4224
|
}, c5;
|
|
4225
4225
|
})();
|
|
4226
4226
|
var h2 = a2.exports;
|
|
@@ -4256,8 +4256,8 @@ function d(t, e2) {
|
|
|
4256
4256
|
return "string" == typeof t && (e2 = t, t = document), t.querySelector(e2);
|
|
4257
4257
|
}
|
|
4258
4258
|
function u(t, e2, i2 = {}) {
|
|
4259
|
-
const { disabled: s } = t, { bubbles:
|
|
4260
|
-
a3.initEvent(e2,
|
|
4259
|
+
const { disabled: s } = t, { bubbles: r3, cancelable: n3, detail: o3 } = i2, a3 = document.createEvent("Event");
|
|
4260
|
+
a3.initEvent(e2, r3 || true, n3 || true), a3.detail = o3 || {};
|
|
4261
4261
|
try {
|
|
4262
4262
|
t.disabled = false, t.dispatchEvent(a3);
|
|
4263
4263
|
} finally {
|
|
@@ -4273,11 +4273,11 @@ var f = class {
|
|
|
4273
4273
|
this.file = t, this.attributes = { filename: t.name, content_type: t.type || "application/octet-stream", byte_size: t.size, checksum: e2 }, this.xhr = new XMLHttpRequest(), this.xhr.open("POST", i2, true), this.xhr.responseType = "json", this.xhr.setRequestHeader("Content-Type", "application/json"), this.xhr.setRequestHeader("Accept", "application/json"), this.xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"), Object.keys(s).forEach(((t2) => {
|
|
4274
4274
|
this.xhr.setRequestHeader(t2, s[t2]);
|
|
4275
4275
|
}));
|
|
4276
|
-
const
|
|
4276
|
+
const r3 = (function() {
|
|
4277
4277
|
const t2 = d(document.head, 'meta[name="csrf-token"]');
|
|
4278
4278
|
if (t2) return t2.getAttribute("content");
|
|
4279
4279
|
})();
|
|
4280
|
-
null !=
|
|
4280
|
+
null != r3 && this.xhr.setRequestHeader("X-CSRF-Token", r3), this.xhr.addEventListener("load", ((t2) => this.requestDidLoad(t2))), this.xhr.addEventListener("error", ((t2) => this.requestDidError(t2)));
|
|
4281
4281
|
}
|
|
4282
4282
|
get status() {
|
|
4283
4283
|
return this.xhr.status;
|
|
@@ -4381,7 +4381,7 @@ var w = class {
|
|
|
4381
4381
|
simulateResponseProgress(t) {
|
|
4382
4382
|
let e2 = 90;
|
|
4383
4383
|
const i2 = Date.now(), s = () => {
|
|
4384
|
-
const
|
|
4384
|
+
const r3 = Date.now() - i2, n3 = this.estimateResponseTime(), o3 = Math.min(r3 / n3, 1);
|
|
4385
4385
|
e2 = 90 + 9 * o3, this.dispatch("progress", { progress: e2 }), t.readyState !== XMLHttpRequest.DONE && e2 < 99 && requestAnimationFrame(s);
|
|
4386
4386
|
};
|
|
4387
4387
|
t.addEventListener("loadend", (() => {
|
|
@@ -4489,8 +4489,8 @@ var C = class {
|
|
|
4489
4489
|
}
|
|
4490
4490
|
dispatch(t, e2 = {}) {
|
|
4491
4491
|
return (function(t2, e3, i2 = {}) {
|
|
4492
|
-
const { disabled: s } = t2, { bubbles:
|
|
4493
|
-
a3.initEvent(e3,
|
|
4492
|
+
const { disabled: s } = t2, { bubbles: r3, cancelable: n3, detail: o3 } = i2, a3 = document.createEvent("Event");
|
|
4493
|
+
a3.initEvent(e3, r3 || true, n3 || true), a3.detail = o3 || {};
|
|
4494
4494
|
try {
|
|
4495
4495
|
t2.disabled = false, t2.dispatchEvent(a3);
|
|
4496
4496
|
} finally {
|
|
@@ -4677,8 +4677,8 @@ var X = class {
|
|
|
4677
4677
|
i2 instanceof window.FormData ? (s = i2, i2 = [...s].reduce(((t2, [e3, i3]) => t2.concat("string" == typeof i3 ? [[e3, i3]] : [])), [])) : i2 = i2 instanceof window.URLSearchParams ? i2.entries() : Object.entries(i2 || {}), (function(t2, e3) {
|
|
4678
4678
|
for (const [i3, s2] of e3) s2 instanceof window.File || (t2.has(i3) ? (t2.delete(i3), t2.set(i3, s2)) : t2.append(i3, s2));
|
|
4679
4679
|
})(e2, i2);
|
|
4680
|
-
const
|
|
4681
|
-
return
|
|
4680
|
+
const r3 = e2.toString();
|
|
4681
|
+
return r3.length > 0 ? `?${r3}` : "";
|
|
4682
4682
|
}
|
|
4683
4683
|
get url() {
|
|
4684
4684
|
return this.originalUrl.split("?")[0].split("#")[0] + this.query;
|
|
@@ -4779,7 +4779,7 @@ var H2 = proxyCustomElement(class extends H {
|
|
|
4779
4779
|
return { filename: [{ setMissingFiletype: 0 }] };
|
|
4780
4780
|
}
|
|
4781
4781
|
static get style() {
|
|
4782
|
-
return `:host{display:block;width:100%;max-width:100%;font-size:13px}figure{margin:0}.progress-details{position:relative;display:flex;align-items:center}progress-bar{flex:1 0;padding:0 10px}progress-bar.pending{opacity:0.5}progress-bar.complete{opacity:0.8}progress-bar:not(.complete)+.progress-icon{display:none}progress-bar.complete+.progress-icon{content:url('data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve"><g><path d="M6.3,9.1c0.2,0,0.5,0.1,0.7,0.4c0.5,0.5,1,1,1.4,1.4c0.3,0.3,0.3,0.3,0.6,0c1.4-1.3,2.7-2.6,4-3.9c0.3-0.3,0.6-0.4,1-0.4 c0.5,0.1,0.9,0.6,0.7,1.1c-0.1,0.2-0.2,0.4-0.3,0.6c-1.6,1.6-3.2,3.2-4.8,4.8c-0.5,0.5-1,0.5-1.6,0c-0.8-0.7-1.5-1.5-2.3-2.3 c-0.3-0.3-0.5-0.6-0.3-1.1C5.5,9.3,5.8,9.1,6.3,9.1z"/></g></svg>');filter:invert(100%)}.progress-icon{display:inline-block;flex:0 0 20px;width:28px;height:28px;background-size:contain;position:absolute;right:30px;z-index:1}progress-bar.error{background:var(--input-attachment-error-bg, rgba(74, 70, 70, 0.25));opacity:1}.progress-bar a{color:#fff}.download-link{padding-right:20px;color:#fff}.remove-media{display:inline-block;content:url('data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve"><g><path d="M0,19.9C0.2,8.5,9.2-0.1,20.1,0C31.8,0.1,40.2,9.5,40,20.4c-0.2,11-8.9,19.7-20.1,19.6C8,39.9,0,30.5,0,19.9z M20,3.7 c-9,0-16.3,7-16.3,16.2C3.7,29,10.9,36.3,20,36.3c9,0,16.3-7.1,16.4-16.3C36.3,11,29.2,3.8,20,3.7z"/><path d="M17.3,20c-0.2-0.2-0.3-0.4-0.5-0.6c-1-1-2-1.9-2.9-2.9c-0.5-0.5-0.8-1.1-0.7-1.9c0.1-0.7,0.5-1.2,1.2-1.4 c0.8-0.2,1.5,0,2.1,0.6c1,1,2,2,3,3.1c0.3,0.4,0.6,0.3,0.9,0c1-1,2-2,3-3c0.3-0.3,0.7-0.5,1.1-0.6c0.8-0.2,1.6,0.1,2,0.8 c0.4,0.8,0.3,1.7-0.4,2.4c-1,1-2,2-3,3c-0.2,0.2-0.3,0.4-0.5,0.6c1.2,1.2,2.3,2.3,3.4,3.4c0.6,0.6,0.9,1.3,0.6,2.2 c-0.4,1.1-1.7,1.6-2.6,1c-0.3-0.2-0.5-0.4-0.8-0.6c-1-1-1.9-1.9-2.9-2.9c-0.3-0.3-0.5-0.3-0.9,0c-1,1-2,2.1-3,3 c-0.4,0.4-1,0.6-1.5,0.8c-0.6,0.1-1.2-0.2-1.5-0.8c-0.4-0.6-0.5-1.3-0.1-1.9c0.2-0.3,0.4-0.5,0.6-0.7C15.1,22.3,16.2,21.2,17.3,20z "/></g></svg>');flex:0 0 25px;width:25px;height:20px;align-items:center;opacity:0.25}.remove-media:hover{opacity:1;filter:invert(50%)sepia(100%)saturate(10000%)}.remove-media span{display:inline-block;text-indent:-9999px;color:transparent}.retry-media{color:var(--input-attachment-error-color, #c00);font-size:12px;text-decoration:underline;cursor:pointer;padding-left:8px}.retry-media:hover{color:var(--input-attachment-error-color-hover, #900)}.validation-error{color:var(--input-attachment-error-color, #c00);font-size:12px;margin:4px 0 0 10px}
|
|
4782
|
+
return `:host{display:block;width:100%;max-width:100%;font-size:13px}figure{margin:0}.progress-details{position:relative;display:flex;align-items:center}progress-bar{flex:1 0;padding:0 10px}progress-bar.pending{opacity:0.5}progress-bar.complete{opacity:0.8}progress-bar:not(.complete)+.progress-icon{display:none}progress-bar.complete+.progress-icon{content:url('data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve"><g><path d="M6.3,9.1c0.2,0,0.5,0.1,0.7,0.4c0.5,0.5,1,1,1.4,1.4c0.3,0.3,0.3,0.3,0.6,0c1.4-1.3,2.7-2.6,4-3.9c0.3-0.3,0.6-0.4,1-0.4 c0.5,0.1,0.9,0.6,0.7,1.1c-0.1,0.2-0.2,0.4-0.3,0.6c-1.6,1.6-3.2,3.2-4.8,4.8c-0.5,0.5-1,0.5-1.6,0c-0.8-0.7-1.5-1.5-2.3-2.3 c-0.3-0.3-0.5-0.6-0.3-1.1C5.5,9.3,5.8,9.1,6.3,9.1z"/></g></svg>');filter:invert(100%)}.progress-icon{display:inline-block;flex:0 0 20px;width:28px;height:28px;background-size:contain;position:absolute;right:30px;z-index:1}progress-bar.error{background:var(--input-attachment-error-bg, rgba(74, 70, 70, 0.25));opacity:1}.progress-bar a{color:#fff}.download-link{padding-right:20px;color:#fff}.remove-media{display:inline-block;content:url('data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve"><g><path d="M0,19.9C0.2,8.5,9.2-0.1,20.1,0C31.8,0.1,40.2,9.5,40,20.4c-0.2,11-8.9,19.7-20.1,19.6C8,39.9,0,30.5,0,19.9z M20,3.7 c-9,0-16.3,7-16.3,16.2C3.7,29,10.9,36.3,20,36.3c9,0,16.3-7.1,16.4-16.3C36.3,11,29.2,3.8,20,3.7z"/><path d="M17.3,20c-0.2-0.2-0.3-0.4-0.5-0.6c-1-1-2-1.9-2.9-2.9c-0.5-0.5-0.8-1.1-0.7-1.9c0.1-0.7,0.5-1.2,1.2-1.4 c0.8-0.2,1.5,0,2.1,0.6c1,1,2,2,3,3.1c0.3,0.4,0.6,0.3,0.9,0c1-1,2-2,3-3c0.3-0.3,0.7-0.5,1.1-0.6c0.8-0.2,1.6,0.1,2,0.8 c0.4,0.8,0.3,1.7-0.4,2.4c-1,1-2,2-3,3c-0.2,0.2-0.3,0.4-0.5,0.6c1.2,1.2,2.3,2.3,3.4,3.4c0.6,0.6,0.9,1.3,0.6,2.2 c-0.4,1.1-1.7,1.6-2.6,1c-0.3-0.2-0.5-0.4-0.8-0.6c-1-1-1.9-1.9-2.9-2.9c-0.3-0.3-0.5-0.3-0.9,0c-1,1-2,2.1-3,3 c-0.4,0.4-1,0.6-1.5,0.8c-0.6,0.1-1.2-0.2-1.5-0.8c-0.4-0.6-0.5-1.3-0.1-1.9c0.2-0.3,0.4-0.5,0.6-0.7C15.1,22.3,16.2,21.2,17.3,20z "/></g></svg>');flex:0 0 25px;width:25px;height:20px;align-items:center;opacity:0.25}.remove-media:hover{opacity:1;filter:invert(50%)sepia(100%)saturate(10000%)}.remove-media span{display:inline-block;text-indent:-9999px;color:transparent}.retry-media{color:var(--input-attachment-error-color, #c00);font-size:12px;text-decoration:underline;cursor:pointer;padding-left:8px}.retry-media:hover{color:var(--input-attachment-error-color-hover, #900)}.validation-error{color:var(--input-attachment-error-color, #c00);font-size:12px;margin:4px 0 0 10px}`;
|
|
4783
4783
|
}
|
|
4784
4784
|
}, [769, "attachment-file", { name: [1537], accepts: [1537], max: [1538], url: [1537], value: [1537], filename: [1537], src: [1537], filetype: [1537], size: [1538], state: [1537], percent: [1538], preview: [1540], validationMessage: [1, "validation-message"] }, [[0, "direct-upload:initialize", "start"], [0, "direct-upload:start", "start"], [0, "direct-upload:progress", "progress"], [0, "direct-upload:error", "error"], [0, "direct-upload:end", "end"]], { filename: [{ setMissingFiletype: 0 }] }]);
|
|
4785
4785
|
|
|
@@ -4806,7 +4806,7 @@ var n2 = class extends HTMLElement {
|
|
|
4806
4806
|
static get observedAttributes() {
|
|
4807
4807
|
return ["percent"];
|
|
4808
4808
|
}
|
|
4809
|
-
attributeChangedCallback(n3,
|
|
4809
|
+
attributeChangedCallback(n3, r3, t) {
|
|
4810
4810
|
"percent" === n3 && (this._percent = Number(t) || 0, this.updateBar());
|
|
4811
4811
|
}
|
|
4812
4812
|
updateBar() {
|
|
@@ -5058,13 +5058,13 @@ var d2 = proxyCustomElement(class extends H {
|
|
|
5058
5058
|
return true;
|
|
5059
5059
|
}
|
|
5060
5060
|
static get style() {
|
|
5061
|
-
return ":host{display:block;padding:25px;color:var(--input-attachment-text-color, #000);font-size:13px}:host *{box-sizing:border-box;position:relative}file-drop{cursor:pointer;display:block;outline-offset:-10px;background:var(--input-attachment-drop-bg, rgba(255,255,255, 0.25));padding:20px;text-align:center;transition:all 0.15s;outline:2px dashed var(--input-attachment-drop-border, rgba(0,0,0,0.25));color:var(--input-attachment-drop-color, #444);font-size:14px}file-drop.-full{width:100%}p{padding:10px 20px;margin:0}.-dragover{background:var(--input-attachment-drop-bg-active, rgba(255,255,255,0.5));outline:2px dashed var(--input-attachment-drop-border, rgba(0,0,0,0.25))}.media-preview{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center}:host.separate-upload{padding:0 10px;margin-top:10px;font-size:0.9em}
|
|
5061
|
+
return ":host{display:block;padding:25px;color:var(--input-attachment-text-color, #000);font-size:13px}:host *{box-sizing:border-box;position:relative}file-drop{cursor:pointer;display:block;outline-offset:-10px;background:var(--input-attachment-drop-bg, rgba(255,255,255, 0.25));padding:20px;text-align:center;transition:all 0.15s;outline:2px dashed var(--input-attachment-drop-border, rgba(0,0,0,0.25));color:var(--input-attachment-drop-color, #444);font-size:14px}file-drop.-full{width:100%}p{padding:10px 20px;margin:0}.-dragover{background:var(--input-attachment-drop-bg-active, rgba(255,255,255,0.5));outline:2px dashed var(--input-attachment-drop-border, rgba(0,0,0,0.25))}.media-preview{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center}:host.separate-upload{padding:0 10px;margin-top:10px;font-size:0.9em}";
|
|
5062
5062
|
}
|
|
5063
5063
|
}, [833, "input-attachment", { name: [1], directupload: [1], multiple: [4], required: [4], accepts: [1], max: [2], preview: [4], disabled: [4], uploadDialog: [4, "upload-dialog"] }, [[0, "attachment-file:remove", "removeUploadedFile"], [0, "attachment-file:validation", "handleChildValidation"], [0, "attachment-file:ready", "handleChildReady"], [0, "direct-upload:end", "fireChangeEvent"]]]);
|
|
5064
5064
|
var c3 = d2;
|
|
5065
5065
|
|
|
5066
5066
|
// dist/components/upload-dialog.js
|
|
5067
|
-
var
|
|
5067
|
+
var r = proxyCustomElement(class extends H {
|
|
5068
5068
|
constructor(e2) {
|
|
5069
5069
|
super(), false !== e2 && this.__registerHost(), this.__attachShadow();
|
|
5070
5070
|
}
|
|
@@ -5098,22 +5098,22 @@ var d3 = proxyCustomElement(class extends H {
|
|
|
5098
5098
|
return h(Host, { key: "76874b06863ae2cab526de1f0e491bb04300c6fc" }, h("dialog", { key: "55b715d6d5fc6ee0c6a16df16c6374ca6e285aee", ref: (e2) => this.dialog = e2 }, h("div", { key: "bab0ae4ed41bb5a909351866d92f0da330858691", class: "direct-upload-wrapper" }, h("div", { key: "23fe0a67bd942f5f4a53df1bd61bec8863104b2c", class: "direct-upload-content" }, h("h3", { key: "d2e349d855c046a541c9dc3ac837873bcd75da22" }, "Uploading your media"), this.uploads.map(((e2) => h("progress-bar", { key: e2.id, class: { "direct-upload--pending": e2.pending, "direct-upload--complete": e2.complete, "direct-upload--error": !!e2.error }, percent: e2.percent, title: e2.error || void 0 }, e2.filename)))))));
|
|
5099
5099
|
}
|
|
5100
5100
|
static get style() {
|
|
5101
|
-
return "dialog{border:none;padding:0;background:transparent;max-width:100vw;max-height:100vh}dialog::backdrop{background:transparent}.direct-upload-wrapper{position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background:var(--input-attachment-overlay-bg, rgba(51, 51, 51, 0.9))}.direct-upload-content{display:block;background:var(--input-attachment-dialog-bg, #fcfcfc);color:var(--input-attachment-text-color, #000);padding:40px 60px 60px;border-radius:3px;width:60vw}.direct-upload-content h3{border-bottom:2px solid var(--input-attachment-dialog-border, #1f1f1f);margin-bottom:20px}.direct-upload--pending{opacity:0.6}.direct-upload--complete{opacity:0.4}.direct-upload--error{border-color:var(--input-attachment-error-color, red)}
|
|
5101
|
+
return "dialog{border:none;padding:0;background:transparent;max-width:100vw;max-height:100vh}dialog::backdrop{background:transparent}.direct-upload-wrapper{position:fixed;z-index:9999;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background:var(--input-attachment-overlay-bg, rgba(51, 51, 51, 0.9))}.direct-upload-content{display:block;background:var(--input-attachment-dialog-bg, #fcfcfc);color:var(--input-attachment-text-color, #000);padding:40px 60px 60px;border-radius:3px;width:60vw}.direct-upload-content h3{border-bottom:2px solid var(--input-attachment-dialog-border, #1f1f1f);margin-bottom:20px}.direct-upload--pending{opacity:0.6}.direct-upload--complete{opacity:0.4}.direct-upload--error{border-color:var(--input-attachment-error-color, red)}";
|
|
5102
5102
|
}
|
|
5103
5103
|
}, [513, "upload-dialog", { uploads: [32], open: [64], close: [64], addUpload: [64], startUpload: [64], updateProgress: [64], setError: [64], completeUpload: [64], removeUpload: [64] }]);
|
|
5104
|
-
var c4 =
|
|
5104
|
+
var c4 = r;
|
|
5105
5105
|
|
|
5106
5106
|
// dist/components/index.js
|
|
5107
|
-
var
|
|
5107
|
+
var r2 = (r3) => {
|
|
5108
5108
|
"undefined" != typeof customElements && [o, e, c3, c4].forEach(((e2) => {
|
|
5109
|
-
customElements.get(transformTag(e2.is)) || customElements.define(transformTag(e2.is), e2,
|
|
5109
|
+
customElements.get(transformTag(e2.is)) || customElements.define(transformTag(e2.is), e2, r3);
|
|
5110
5110
|
}));
|
|
5111
5111
|
};
|
|
5112
5112
|
|
|
5113
5113
|
// src/entry.js
|
|
5114
|
-
|
|
5114
|
+
r2();
|
|
5115
5115
|
export {
|
|
5116
|
-
|
|
5116
|
+
r2 as defineCustomElements,
|
|
5117
5117
|
getAssetPath,
|
|
5118
5118
|
render,
|
|
5119
5119
|
setAssetPath,
|
data/input-attachment/README.md
CHANGED
|
@@ -189,27 +189,6 @@ The components use Shadow DOM, so external CSS cannot reach their internals. Ins
|
|
|
189
189
|
| `--input-attachment-error-color-hover` | `#900` | Retry link hover color |
|
|
190
190
|
| `--input-attachment-error-bg` | `rgba(74, 70, 70, 0.25)` | Error state progress bar background |
|
|
191
191
|
|
|
192
|
-
### Dark Mode
|
|
193
|
-
|
|
194
|
-
The components automatically adapt to dark color schemes via `prefers-color-scheme: dark`. No configuration is needed — if the user's OS or browser is set to dark mode, the components will use appropriate colors.
|
|
195
|
-
|
|
196
|
-
To manually apply a dark theme (e.g., for a toggle-based dark mode), set the custom properties yourself:
|
|
197
|
-
|
|
198
|
-
```css
|
|
199
|
-
.dark-theme input-attachment {
|
|
200
|
-
--input-attachment-text-color: #e0e0e0;
|
|
201
|
-
--input-attachment-drop-bg: rgba(255,255,255, 0.08);
|
|
202
|
-
--input-attachment-drop-border: rgba(255,255,255, 0.25);
|
|
203
|
-
--input-attachment-drop-color: #bbb;
|
|
204
|
-
--input-attachment-drop-bg-active: rgba(255,255,255, 0.15);
|
|
205
|
-
--input-attachment-dialog-bg: #2a2a2a;
|
|
206
|
-
--input-attachment-dialog-border: #555;
|
|
207
|
-
--input-attachment-error-color: #f66;
|
|
208
|
-
--input-attachment-error-color-hover: #f99;
|
|
209
|
-
--input-attachment-error-bg: rgba(200, 100, 100, 0.2);
|
|
210
|
-
}
|
|
211
|
-
```
|
|
212
|
-
|
|
213
192
|
### Parts
|
|
214
193
|
|
|
215
194
|
Style the file-drop title using the `::part()` pseudo-element:
|
|
@@ -98,15 +98,3 @@ progress-bar.error{
|
|
|
98
98
|
font-size: 12px;
|
|
99
99
|
margin: 4px 0 0 10px;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
@media (prefers-color-scheme: dark) {
|
|
103
|
-
:host {
|
|
104
|
-
--input-attachment-error-color: #f66;
|
|
105
|
-
--input-attachment-error-color-hover: #f99;
|
|
106
|
-
--input-attachment-error-bg: rgba(200, 100, 100, 0.2);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.remove-media {
|
|
110
|
-
filter: invert(1);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
@@ -49,14 +49,3 @@ p{
|
|
|
49
49
|
margin-top: 10px;
|
|
50
50
|
font-size: 0.9em;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
@media (prefers-color-scheme: dark) {
|
|
54
|
-
:host {
|
|
55
|
-
--input-attachment-text-color: #e0e0e0;
|
|
56
|
-
--input-attachment-drop-bg: #333;
|
|
57
|
-
--input-attachment-drop-border: rgba(255,255,255, 0.25);
|
|
58
|
-
--input-attachment-drop-color: #bbb;
|
|
59
|
-
--input-attachment-drop-bg-active: #444;
|
|
60
|
-
--input-attachment-error-color: #f66;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -48,11 +48,3 @@ dialog::backdrop {
|
|
|
48
48
|
.direct-upload--error {
|
|
49
49
|
border-color: var(--input-attachment-error-color, red);
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
@media (prefers-color-scheme: dark) {
|
|
53
|
-
:host {
|
|
54
|
-
--input-attachment-dialog-bg: #2a2a2a;
|
|
55
|
-
--input-attachment-dialog-border: #555;
|
|
56
|
-
--input-attachment-error-color: #f66;
|
|
57
|
-
}
|
|
58
|
-
}
|