copious-mail 0.0.0-stage → 0.9.1

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.
Files changed (182) hide show
  1. package/LICENSE +504 -0
  2. package/README.md +143 -2
  3. package/bin/index.js +345 -0
  4. package/client/copiousLogo.svg +123 -0
  5. package/client/hosted.html +5259 -0
  6. package/client/mail_styles.css +40 -0
  7. package/client/mikado.bundle.debug.js +1406 -0
  8. package/client/mikado.bundle.min.js +68 -0
  9. package/client/mikado.bundle.module.debug.js +1401 -0
  10. package/client/mikado.bundle.module.min.js +67 -0
  11. package/client/mikado.bundle.profiler.debug.js +1490 -0
  12. package/client/mikado.es5.debug.js +1995 -0
  13. package/client/mikado.es5.min.js +85 -0
  14. package/client/mikado.light.debug.js +535 -0
  15. package/client/mikado.light.min.js +29 -0
  16. package/client/mikado.light.module.debug.js +530 -0
  17. package/data/user_list.db +14 -0
  18. package/index.html +7242 -0
  19. package/index.js +5 -0
  20. package/jsconfig.json +32 -0
  21. package/lib/mail_repo_bridge_ops.js +1177 -0
  22. package/lib/utils.js +70 -0
  23. package/lib/websocket_con.js +249 -0
  24. package/mail_bridge.conf +10 -0
  25. package/package.json +41 -5
  26. package/svelte-src/App.svelte +2513 -0
  27. package/svelte-src/ContactGrid.svelte +98 -0
  28. package/svelte-src/FloatWindow.svelte +181 -0
  29. package/svelte-src/MessageDisplay.svelte +230 -0
  30. package/svelte-src/MessageEditor.svelte +664 -0
  31. package/svelte-src/MessageListEditor.svelte +133 -0
  32. package/svelte-src/Thing.svelte +190 -0
  33. package/svelte-src/ThingFull.svelte +117 -0
  34. package/svelte-src/ipfs_profile_proxy.js +923 -0
  35. package/svelte-src/main.js +10 -0
  36. package/svelte-src/search_box.js +69 -0
  37. package/svelte-src/utilities.js +180 -0
  38. package/test/c +28 -0
  39. package/test/copiousLogo.svg +123 -0
  40. package/test/index.html +4408 -0
  41. package/test/index.js +244 -0
  42. package/test/mail_styles.css +40 -0
  43. package/test/mikado.bundle.debug.js +1406 -0
  44. package/test/mikado.bundle.min.js +68 -0
  45. package/test/mikado.bundle.module.debug.js +1401 -0
  46. package/test/mikado.bundle.module.min.js +67 -0
  47. package/test/mikado.bundle.profiler.debug.js +1490 -0
  48. package/test/mikado.es5.debug.js +1995 -0
  49. package/test/mikado.es5.min.js +85 -0
  50. package/test/mikado.light.debug.js +535 -0
  51. package/test/mikado.light.min.js +29 -0
  52. package/test/mikado.light.module.debug.js +530 -0
  53. package/test/tpl/partial/attachment_edit.es5.js +1 -0
  54. package/test/tpl/partial/attachment_edit.html +5 -0
  55. package/test/tpl/partial/attachment_edit.js +1 -0
  56. package/test/tpl/partial/attachment_view.es5.js +1 -0
  57. package/test/tpl/partial/attachment_view.html +1 -0
  58. package/test/tpl/partial/attachment_view.js +1 -0
  59. package/test/tpl/partial/contact_list.es5.js +1 -0
  60. package/test/tpl/partial/contact_list.html +9 -0
  61. package/test/tpl/partial/contact_list.js +1 -0
  62. package/test/tpl/partial/draft_list.es5.js +1 -0
  63. package/test/tpl/partial/draft_list.html +8 -0
  64. package/test/tpl/partial/draft_list.js +1 -0
  65. package/test/tpl/partial/inbox_list.es5.js +1 -0
  66. package/test/tpl/partial/inbox_list.html +7 -0
  67. package/test/tpl/partial/inbox_list.js +1 -0
  68. package/test/tpl/partial/notify_list.es5.js +1 -0
  69. package/test/tpl/partial/notify_list.html +8 -0
  70. package/test/tpl/partial/notify_list.js +1 -0
  71. package/test/tpl/partial/sent_list.es5.js +1 -0
  72. package/test/tpl/partial/sent_list.html +7 -0
  73. package/test/tpl/partial/sent_list.js +1 -0
  74. package/test/tpl/partial/spam_list.es5.js +1 -0
  75. package/test/tpl/partial/spam_list.html +8 -0
  76. package/test/tpl/partial/spam_list.js +1 -0
  77. package/test/tpl/partial/trash_list.es5.js +1 -0
  78. package/test/tpl/partial/trash_list.html +7 -0
  79. package/test/tpl/partial/trash_list.js +1 -0
  80. package/test/tpl/partial/user.es5.js +1 -0
  81. package/test/tpl/partial/user.html +18 -0
  82. package/test/tpl/partial/user.js +1 -0
  83. package/tools/jsdoc.conf +47 -0
  84. package/tools/templates/docdash/publish.js +843 -0
  85. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  86. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  87. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  88. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  89. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  90. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  91. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  92. package/tools/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  93. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  94. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  95. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  96. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  97. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  98. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  99. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  100. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  101. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  102. package/tools/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  103. package/tools/templates/docdash/static/scripts/collapse.js +67 -0
  104. package/tools/templates/docdash/static/scripts/commonNav.js +28 -0
  105. package/tools/templates/docdash/static/scripts/linenumber.js +25 -0
  106. package/tools/templates/docdash/static/scripts/nav.js +12 -0
  107. package/tools/templates/docdash/static/scripts/polyfill.js +4 -0
  108. package/tools/templates/docdash/static/scripts/prettify/Apache-License-2.0.txt +202 -0
  109. package/tools/templates/docdash/static/scripts/prettify/lang-css.js +2 -0
  110. package/tools/templates/docdash/static/scripts/prettify/prettify.js +28 -0
  111. package/tools/templates/docdash/static/scripts/search.js +99 -0
  112. package/tools/templates/docdash/static/styles/jsdoc.css +803 -0
  113. package/tools/templates/docdash/static/styles/prettify.css +80 -0
  114. package/tools/templates/docdash/tmpl/augments.tmpl +10 -0
  115. package/tools/templates/docdash/tmpl/container.tmpl +203 -0
  116. package/tools/templates/docdash/tmpl/details.tmpl +152 -0
  117. package/tools/templates/docdash/tmpl/example.tmpl +2 -0
  118. package/tools/templates/docdash/tmpl/examples.tmpl +13 -0
  119. package/tools/templates/docdash/tmpl/exceptions.tmpl +32 -0
  120. package/tools/templates/docdash/tmpl/layout.tmpl +102 -0
  121. package/tools/templates/docdash/tmpl/mainpage.tmpl +15 -0
  122. package/tools/templates/docdash/tmpl/members.tmpl +38 -0
  123. package/tools/templates/docdash/tmpl/method.tmpl +132 -0
  124. package/tools/templates/docdash/tmpl/modifies.tmpl +14 -0
  125. package/tools/templates/docdash/tmpl/namespace.tmpl +133 -0
  126. package/tools/templates/docdash/tmpl/params.tmpl +132 -0
  127. package/tools/templates/docdash/tmpl/properties.tmpl +107 -0
  128. package/tools/templates/docdash/tmpl/returns.tmpl +19 -0
  129. package/tools/templates/docdash/tmpl/source.tmpl +8 -0
  130. package/tools/templates/docdash/tmpl/tutorial.tmpl +19 -0
  131. package/tools/templates/docdash/tmpl/type.tmpl +26 -0
  132. package/tools/templates/templates/docdash/publish.js +843 -0
  133. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  134. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  135. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  136. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  137. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  138. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  139. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  140. package/tools/templates/templates/docdash/static/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  141. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  142. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  143. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  144. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  145. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  146. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  147. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  148. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  149. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  150. package/tools/templates/templates/docdash/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  151. package/tools/templates/templates/docdash/static/scripts/collapse.js +67 -0
  152. package/tools/templates/templates/docdash/static/scripts/commonNav.js +28 -0
  153. package/tools/templates/templates/docdash/static/scripts/linenumber.js +25 -0
  154. package/tools/templates/templates/docdash/static/scripts/nav.js +12 -0
  155. package/tools/templates/templates/docdash/static/scripts/polyfill.js +4 -0
  156. package/tools/templates/templates/docdash/static/scripts/prettify/Apache-License-2.0.txt +202 -0
  157. package/tools/templates/templates/docdash/static/scripts/prettify/lang-css.js +2 -0
  158. package/tools/templates/templates/docdash/static/scripts/prettify/prettify.js +28 -0
  159. package/tools/templates/templates/docdash/static/scripts/search.js +99 -0
  160. package/tools/templates/templates/docdash/static/styles/jsdoc.css +803 -0
  161. package/tools/templates/templates/docdash/static/styles/prettify.css +80 -0
  162. package/tools/templates/templates/docdash/tmpl/augments.tmpl +10 -0
  163. package/tools/templates/templates/docdash/tmpl/container.tmpl +203 -0
  164. package/tools/templates/templates/docdash/tmpl/details.tmpl +152 -0
  165. package/tools/templates/templates/docdash/tmpl/example.tmpl +2 -0
  166. package/tools/templates/templates/docdash/tmpl/examples.tmpl +13 -0
  167. package/tools/templates/templates/docdash/tmpl/exceptions.tmpl +32 -0
  168. package/tools/templates/templates/docdash/tmpl/layout.tmpl +102 -0
  169. package/tools/templates/templates/docdash/tmpl/mainpage.tmpl +15 -0
  170. package/tools/templates/templates/docdash/tmpl/members.tmpl +38 -0
  171. package/tools/templates/templates/docdash/tmpl/method.tmpl +132 -0
  172. package/tools/templates/templates/docdash/tmpl/modifies.tmpl +14 -0
  173. package/tools/templates/templates/docdash/tmpl/namespace.tmpl +133 -0
  174. package/tools/templates/templates/docdash/tmpl/params.tmpl +132 -0
  175. package/tools/templates/templates/docdash/tmpl/properties.tmpl +107 -0
  176. package/tools/templates/templates/docdash/tmpl/returns.tmpl +19 -0
  177. package/tools/templates/templates/docdash/tmpl/source.tmpl +8 -0
  178. package/tools/templates/templates/docdash/tmpl/tutorial.tmpl +19 -0
  179. package/tools/templates/templates/docdash/tmpl/type.tmpl +26 -0
  180. package/tpl/partial/user.es5.js +1 -0
  181. package/tpl/partial/user.html +10 -0
  182. package/tpl/partial/user.js +1 -0
@@ -0,0 +1,530 @@
1
+ /**!
2
+ * Mikado.js v0.8.400 (Bundle/Debug)
3
+ * Copyright 2019-2024 Nextapps GmbH
4
+ * Author: Thomas Wilkerling
5
+ * Licence: Apache-2.0
6
+ * https://github.com/nextapps-de/mikado
7
+ */
8
+ var n;
9
+ function q(a, b, c) {
10
+ let d;
11
+ c && (d = a._mkc) && (a._mkc = null);
12
+ const h = b.length, k = [], e = {};
13
+ for (let l = 0, p, m, r, v, w = null; l < h; l++) {
14
+ p = b[l];
15
+ if (m = p.v) {
16
+ if (v = r = e[m], !v) {
17
+ a: {
18
+ var f = a, g = m;
19
+ for (let u = 0, A = g.length, y = ""; u < A; u++) {
20
+ const t = g[u];
21
+ y += t;
22
+ if (e[y]) {
23
+ f = e[y];
24
+ } else {
25
+ if (">" === t) {
26
+ f = f.firstChild;
27
+ } else {
28
+ if ("|" === t) {
29
+ r = [f.firstChild, f];
30
+ break a;
31
+ }
32
+ if ("@" === t) {
33
+ r = [f.style, f];
34
+ break a;
35
+ }
36
+ f = f.nextSibling;
37
+ }
38
+ e[y] = f;
39
+ }
40
+ }
41
+ r = [f];
42
+ }
43
+ v = r[0];
44
+ r = r[1] || v;
45
+ }
46
+ } else {
47
+ v = r = a;
48
+ }
49
+ c && (w = d ? d[l] : {}, r._mkc = w);
50
+ k[l] = new x(w, v, "");
51
+ }
52
+ return a._mkp = k;
53
+ }
54
+ function z(a, b, c, d, h, k) {
55
+ const e = h || (b.tag ? b.svg ? document.createElementNS("http://www.w3.org/2000/svg", b.tag) : document.createElement(b.tag) : document.createTextNode(b.text));
56
+ let f, g;
57
+ if (g = b.class) {
58
+ "object" === typeof g ? c.push(new x(f = {_c:""}, e, d)) : h || (e.className = g);
59
+ }
60
+ if (g = b.attr) {
61
+ for (const l in g) {
62
+ let p = g[l];
63
+ "object" === typeof p ? (f || c.push(new x(f = {}, e, d)), f["_a" + l] = !1) : h || e.setAttribute(l, p);
64
+ }
65
+ }
66
+ if (g = b.style) {
67
+ "object" === typeof g ? (c.push(new x(f || (f = {}), e.style, d + "@")), f._s = "") : h || (e.style.cssText = g);
68
+ }
69
+ if (g = b.text) {
70
+ "object" === typeof g ? (a = e, g = g[0], b.tag ? (d += "|", a = !h && e.firstChild, a || (a = document.createTextNode(g), e.appendChild(a))) : f = {}, (f || (f = {}))._t = g, c.push(new x(f, a, d))) : h || (b.tag ? e.textContent = g : e.nodeValue = g);
71
+ } else if (g = b.child) {
72
+ if (h && (h = h.firstChild, !h)) {
73
+ return console.warn("Hydration failed of template '" + a.name + "' because the existing DOM structure was incompatible. Falls back to factory construction instead."), null;
74
+ }
75
+ g.constructor !== Array && (g = [g]);
76
+ for (let l = 0, p, m = g.length; l < m; l++) {
77
+ if (p = g[l], d = l ? d + "+" : d + ">", b = z(a, p, c, d, h, 1), h) {
78
+ if (l < m - 1 && (h = h.nextSibling, !h)) {
79
+ return console.warn("Hydration failed of template '" + a.name + "' because the existing DOM structure was incompatible. Falls back to factory construction instead."), null;
80
+ }
81
+ } else {
82
+ e.appendChild(b);
83
+ }
84
+ }
85
+ } else if (g = b.html) {
86
+ "object" === typeof g ? (f || c.push(new x(f = {}, e, d)), f._h = "") : h || (e.innerHTML = g);
87
+ } else if (g = b.inc) {
88
+ f || c.push(new x(null, e, d));
89
+ let l;
90
+ if ("string" === typeof g) {
91
+ l = C[g];
92
+ if (!l) {
93
+ throw Error("The partial template '" + g + "' which is included by the root template '" + a.name + "' was not registered. When using named includes make sure you register all your includes by Mikado.register(tpl) before instantiating the Mikado view instance.");
94
+ }
95
+ if (!(l instanceof D)) {
96
+ d = l[0];
97
+ if (b = l[1]) {
98
+ b.async = !1, h && (b.root = h, b.hydrate = !0);
99
+ }
100
+ C[g] = l = new D(d, b);
101
+ }
102
+ } else if (1 !== g) {
103
+ d = a.inc.length;
104
+ if (!a.tpl.fn.length) {
105
+ throw Error("The template '" + a.name + "|" + d + "' has conflicts. It should provide a handler entry, but wasn't found.");
106
+ }
107
+ l = new D({name:a.name + "|" + d, tpl:g, key:g.key, cache:g.cache, fn:a.tpl.fn}, {recycle:a.recycle, cache:a.cache, pool:!!a.pool, state:a.state, mount:e, hydrate:!!h});
108
+ }
109
+ 1 !== g && a.inc.push(l);
110
+ }
111
+ f && (e._mkc = f);
112
+ k || (e._mkp = c);
113
+ return e;
114
+ }
115
+ const E = {checked:1, selected:1, hidden:1};
116
+ function x(a, b, c) {
117
+ this.c = a;
118
+ this.n = b;
119
+ this.v = c;
120
+ }
121
+ n = x.prototype;
122
+ n._a = function(a, b, c, d, h) {
123
+ if (this.c) {
124
+ if (d) {
125
+ if (h || 0 === h) {
126
+ d = d[h] || (d[h] = {});
127
+ }
128
+ d["_a" + a] = b;
129
+ }
130
+ if (this.c["_a" + a] === b) {
131
+ return;
132
+ }
133
+ this.c["_a" + a] = b;
134
+ }
135
+ !E[a] || c && "selected" === a ? !1 === b ? this.n.removeAttribute(a) : this.n.setAttribute(a, b) : this.n[a] = b;
136
+ };
137
+ n._t = function(a, b, c) {
138
+ if (this.c) {
139
+ if (b) {
140
+ if (c || 0 === c) {
141
+ b = b[c] || (b[c] = {});
142
+ }
143
+ b._t = a;
144
+ }
145
+ if (this.c._t === a) {
146
+ return;
147
+ }
148
+ this.c._t = a;
149
+ }
150
+ this.n.nodeValue = a;
151
+ };
152
+ n._c = function(a, b, c) {
153
+ if (this.c) {
154
+ if (b) {
155
+ if (c || 0 === c) {
156
+ b = b[c] || (b[c] = {});
157
+ }
158
+ b._c = a;
159
+ }
160
+ if (this.c._c === a) {
161
+ return;
162
+ }
163
+ this.c._c = a;
164
+ }
165
+ this.n.className = a;
166
+ };
167
+ n._s = function(a, b, c) {
168
+ if (this.c) {
169
+ if (b) {
170
+ if (c || 0 === c) {
171
+ b = b[c] || (b[c] = {});
172
+ }
173
+ b._s = a;
174
+ }
175
+ if (this.c._s === a) {
176
+ return;
177
+ }
178
+ this.c._s = a;
179
+ }
180
+ this.n.cssText = a;
181
+ };
182
+ n._h = function(a, b, c) {
183
+ if (this.c) {
184
+ if (b) {
185
+ if (c || 0 === c) {
186
+ b = b[c] || (b[c] = {});
187
+ }
188
+ b._h = a;
189
+ }
190
+ if (this.c._h === a) {
191
+ return;
192
+ }
193
+ this.c._h = a;
194
+ }
195
+ this.n.innerHTML = a;
196
+ };
197
+ const C = Object.create(null);
198
+ function D(a, b = {}) {
199
+ if (!(this instanceof D)) {
200
+ return new D(a, b);
201
+ }
202
+ if ("string" === typeof a) {
203
+ var c = C[a];
204
+ if (!c) {
205
+ throw Error("The template '" + a + "' is not registered.");
206
+ }
207
+ if (c instanceof D) {
208
+ return c;
209
+ }
210
+ a = c[0];
211
+ b || (b = c[1]);
212
+ }
213
+ if (!a) {
214
+ throw Error("Initialization Error: Template is not defined.");
215
+ }
216
+ if (!a.tpl) {
217
+ throw Error("Initialization Error: Template isn't supported.");
218
+ }
219
+ this.g = [];
220
+ this.length = 0;
221
+ this.root = b.root || b.mount || null;
222
+ this.recycle = !!b.recycle;
223
+ this.state = b.state || {};
224
+ this.shadow = b.shadow || !1;
225
+ this.key = a.key || "";
226
+ this.j = {};
227
+ c = a.fn;
228
+ a.m || c && (a.m = c.slice());
229
+ this.apply = c && c.pop();
230
+ this.tpl = a;
231
+ this.name = a.name;
232
+ this.inc = [];
233
+ this.pool = (c = this.recycle || !!this.key) && b.pool ? 1 : 0;
234
+ this.l = [];
235
+ this.h = new Map();
236
+ this.cache = c && (a.cache || !!b.cache);
237
+ this.root ? this.mount(this.root, b.hydrate) : this.i = null;
238
+ }
239
+ n = D.prototype;
240
+ n.mount = function(a, b) {
241
+ if (!a) {
242
+ throw Error("No target was passed to .mount()");
243
+ }
244
+ this.shadow && (a = a.shadowRoot || a.attachShadow({mode:"open"}));
245
+ const c = a._mki;
246
+ var d = this.root !== a;
247
+ if (c === this) {
248
+ if (!d) {
249
+ return this;
250
+ }
251
+ this.g = a._mkd;
252
+ this.length = this.g.length;
253
+ } else if (c) {
254
+ c.clear(), a._mkd = this.g = [], this.length = 0, a.firstChild && (a.textContent = "");
255
+ } else {
256
+ if (b) {
257
+ var h = a.children;
258
+ const k = h.length, e = Array(k);
259
+ for (let f = 0; f < k; f++) {
260
+ e[f] = h[f];
261
+ }
262
+ this.g = e;
263
+ this.length = this.g.length;
264
+ } else {
265
+ this.g = [], this.length = 0, a.firstChild && (a.textContent = "");
266
+ }
267
+ a._mkd = this.g;
268
+ }
269
+ if (this.key) {
270
+ if (d && this.root && (this.root._mkl = this.j), c === this) {
271
+ this.j = a._mkl;
272
+ } else {
273
+ d = {};
274
+ if (!c && b && this.length) {
275
+ for (let k = 0, e, f; k < this.length; k++) {
276
+ e = this.g[k], (f = e.getAttribute("key")) || console.warn("The template '" + this.name + "' runs in keyed mode, but the hydrated component don't have the attribute 'key' exported."), e._mkk = f, d[f] = e;
277
+ }
278
+ }
279
+ a._mkl = this.j = d;
280
+ }
281
+ }
282
+ a._mki = this;
283
+ this.root = a;
284
+ this.i || (b && this.length && (this.i = this.g[0].cloneNode(!0), z(this, this.tpl.tpl, [], "", this.i) && F(this)), this.tpl && (this.i = z(this, this.tpl.tpl, [], ""), F(this)));
285
+ return this;
286
+ };
287
+ function F(a) {
288
+ a.tpl.m && (a.tpl.fn = a.tpl.m, a.tpl.m = null);
289
+ a.tpl = null;
290
+ }
291
+ n.render = function(a, b) {
292
+ if (!this.root) {
293
+ throw Error("Template was not mounted or root was not found.");
294
+ }
295
+ if (this.root._mki !== this) {
296
+ throw Error("Another template is already assigned to this root. Please use '.mount(root_element)' before calling '.render()' to switch the context of a template.");
297
+ }
298
+ var c = this.length;
299
+ if (!a && !this.apply) {
300
+ return this.g[0] || this.add(), this;
301
+ }
302
+ if (Array.isArray(a)) {
303
+ var d = a.length;
304
+ if (!d) {
305
+ return this.remove(0, c);
306
+ }
307
+ } else {
308
+ a = [a], d = 1;
309
+ }
310
+ var h = this.key;
311
+ !c || h || this.recycle || (this.remove(0, c), c = 0);
312
+ var k = c < d ? c : d, e = 0;
313
+ if (e < k) {
314
+ for (let l, p; e < k; e++) {
315
+ l = this.g[e];
316
+ p = a[e];
317
+ if (h && l._mkk !== p[h]) {
318
+ c = this.g;
319
+ d = this.j;
320
+ h = this.key;
321
+ k = a.length;
322
+ let m = c.length, r = m > k ? m : k, v = 0;
323
+ for (e || (e = 0); e < r; e++) {
324
+ var f = void 0;
325
+ if (e < k) {
326
+ const w = a[e];
327
+ var g = e >= m;
328
+ let u, A, y;
329
+ if (!g && (u = c[e], A = w[h], y = u._mkk, y === A)) {
330
+ this.update(u, w, b, e);
331
+ continue;
332
+ }
333
+ if (g || !d[A]) {
334
+ g || !this.pool ? (m++, r = m > k ? m : k, this.add(w, b, e)) : this.replace(u, w, b, e);
335
+ continue;
336
+ }
337
+ let t, B;
338
+ for (g = e + 1; g < r; g++) {
339
+ if (!t && g < m && c[g]._mkk === A && (t = g + 1), !B && g < k && a[g][h] === y && (B = g + 1), t && B) {
340
+ t >= B + v ? (f = c[t - 1], this.root.insertBefore(f, u), this.update(f, w, b, e), t === B ? (1 < g - e && this.root.insertBefore(u, c[t]), c[e] = c[g], (c[g] = u) || console.error("reconcile.error 1")) : (t - 1 === e && console.error("reconcile.error 2"), G(c, t - 1, e), v++)) : (f = B - 1 + v, this.root.insertBefore(u, c[f] || null), (f > m ? m : f) - 1 === e && console.error("reconcile.error 3"), G(c, e, (f > m ? m : f) - 1), v--, e--);
341
+ f = 1;
342
+ break;
343
+ }
344
+ }
345
+ }
346
+ f || (this.remove(e), m--, r = m > k ? m : k, e--);
347
+ }
348
+ return this;
349
+ }
350
+ this.update(l, p, b, e);
351
+ }
352
+ }
353
+ if (e < d) {
354
+ for (; e < d; e++) {
355
+ this.add(a[e], b);
356
+ }
357
+ } else {
358
+ d < c && this.remove(d, c - d);
359
+ }
360
+ return this;
361
+ };
362
+ n.replace = function(a, b, c, d) {
363
+ "undefined" === typeof d && ("number" === typeof a ? (d = 0 > a ? this.length + a : a, a = this.g[d]) : d = this.index(a));
364
+ var h;
365
+ if (this.key) {
366
+ var k = b[this.key];
367
+ if (h = this.j[k]) {
368
+ if (h !== a) {
369
+ k = this.index(h);
370
+ const e = k < d ? h : a, f = k < d ? a : h;
371
+ let g = this.g[k < d ? k + 1 : d + 1];
372
+ this.g[d] = h;
373
+ this.g[k] = a;
374
+ g !== f ? this.root.insertBefore(e, f) : g = e;
375
+ this.root.insertBefore(f, g);
376
+ }
377
+ } else {
378
+ this.pool && (h = this.h.get(k)) && (this.h.delete(k), H(this, a), this.g[d] = h, a.replaceWith(h));
379
+ }
380
+ } else {
381
+ this.recycle && (h = a);
382
+ }
383
+ h ? this.apply && this.apply(b, c || this.state, d, h._mkp || q(h, this.i._mkp, this.cache)) : (b = this.create(b, c, d, 1), (this.key || this.pool) && H(this, a), this.g[d] = b, a.replaceWith(b));
384
+ return this;
385
+ };
386
+ n.update = function(a, b, c, d) {
387
+ if (!this.apply) {
388
+ return "number" !== typeof d && console.warn("The template '" + this.name + "' is a static template and should not be updated. Alternatively you can use .replace() to switch contents."), this;
389
+ }
390
+ "undefined" === typeof d && ("number" === typeof a ? (d = 0 > a ? this.length + a - 1 : a, a = this.g[d]) : d = this.index(a));
391
+ this.apply(b, c || this.state, d, a._mkp || q(a, this.i._mkp, this.cache));
392
+ return this;
393
+ };
394
+ n.create = function(a, b, c, d) {
395
+ const h = this.key, k = h && a[h];
396
+ let e;
397
+ var f;
398
+ let g, l;
399
+ this.pool && (h ? (f = this.h) && (e = f.get(k)) && (f.delete(k), l = 1) : (f = this.l) && f.length && (e = f.pop()));
400
+ e || (e = g = this.i, g || (this.i = e = g = z(this, this.tpl.tpl, [], ""), F(this)));
401
+ let p;
402
+ this.apply && (f = e._mkp || q(e, this.i._mkp, !!g || this.cache), p = g && this.cache && Array(f.length), this.apply(a, b || this.state, c, f, !!g, p));
403
+ g && (e = g.cloneNode(!0), p && !0 !== p && (e._mkc = p));
404
+ h && (l || (e._mkk = k), d && (this.j[k] = e));
405
+ return e;
406
+ };
407
+ n.add = function(a, b, c) {
408
+ let d;
409
+ "number" === typeof b ? (c = 0 > b ? this.length + b : b, b = null, d = c < this.length) : "number" === typeof c ? (0 > c && (c += this.length), d = c < this.length) : c = this.length;
410
+ a = this.create(a, b, c, 1);
411
+ d ? (this.root.insertBefore(a, this.g[c]), G(this.g, this.length - 1, c, a), this.length++) : (this.root.appendChild(a), this.g[this.length++] = a);
412
+ this.key && this.pool && this.pool < this.length && (this.pool = this.length);
413
+ return this;
414
+ };
415
+ function G(a, b, c, d) {
416
+ const h = d || a[b];
417
+ d && b++;
418
+ if (b < c) {
419
+ for (; b < c; b++) {
420
+ a[b] = a[b + 1];
421
+ }
422
+ } else {
423
+ for (; b > c; b--) {
424
+ a[b] = a[b - 1];
425
+ }
426
+ }
427
+ a[c] = h;
428
+ }
429
+ n.append = function(a, b, c) {
430
+ let d;
431
+ "number" === typeof b ? (c = 0 > b ? this.length + b : b, b = null, d = 1) : "number" === typeof c && (0 > c && (c += this.length), d = 1);
432
+ const h = a.length;
433
+ for (let k = 0; k < h; k++) {
434
+ this.add(a[k], b, d ? c++ : null);
435
+ }
436
+ return this;
437
+ };
438
+ n.clear = function() {
439
+ this.length && this.remove(0, this.length);
440
+ return this;
441
+ };
442
+ n.remove = function(a, b) {
443
+ let c = this.length;
444
+ c && a && ("number" !== typeof a ? a = this.index(a) : 0 > a && (a = c + a));
445
+ if (!c || a >= c) {
446
+ return this;
447
+ }
448
+ b ? 0 > b && (a -= b + 1, 0 > a && (a = 0), b *= -1) : b = 1;
449
+ let d;
450
+ !a && b >= c ? (d = this.g, b = d.length, this.root.textContent = "", this.root._mkd = this.g = [], c = 0) : (d = this.g.splice(a, b), c -= b);
451
+ const h = this.pool && !this.key, k = this.key || this.pool;
452
+ (a = this.key && this.pool) && b >= a && (this.h = new Map(), a = 0);
453
+ for (let e = 0, f; e < b; e++) {
454
+ f = d[h ? b - e - 1 : e], c && f.remove(), k && H(this, f, 1);
455
+ }
456
+ if (a && 0 < (a = this.h.size - a)) {
457
+ for (b = this.h.keys(); a--;) {
458
+ this.h.delete(b.next().value);
459
+ }
460
+ }
461
+ this.length = c;
462
+ return this;
463
+ };
464
+ n.index = function(a) {
465
+ return a ? this.g.indexOf(a) : -1;
466
+ };
467
+ n.node = function(a) {
468
+ return this.g[a];
469
+ };
470
+ function H(a, b, c) {
471
+ let d;
472
+ a.key && (d = b._mkk, a.j[d] = null);
473
+ a.pool && (d ? (a.h.set(d, b), !c && a.h.size > a.pool && a.h.delete(a.h.keys().next().value)) : a.l[a.l.length] = b);
474
+ }
475
+ n.flush = function() {
476
+ this.l = [];
477
+ this.h = new Map();
478
+ return this;
479
+ };
480
+ n.destroy = function() {
481
+ for (let a = 0, b; a < this.inc.length; a++) {
482
+ b = this.inc[a], C[b.name] || b.destroy();
483
+ }
484
+ this.key && (this.root && (this.root._mkl = null), this.j = null);
485
+ this.root && (this.root._mkd = this.root._mki = null);
486
+ this.h = this.l = this.g = this.root = this.tpl = this.apply = this.inc = this.state = this.i = null;
487
+ };
488
+ D.once = function(a, b, c, d) {
489
+ if (!a) {
490
+ throw Error("Root element is not defined.");
491
+ }
492
+ if (!b) {
493
+ throw Error("Template is not defined.");
494
+ }
495
+ if (c || b.fn) {
496
+ b = new D(b);
497
+ if (c && Array.isArray(c)) {
498
+ for (let h = 0; h < c.length; h++) {
499
+ a.append(b.create(c[h], d, h));
500
+ }
501
+ } else {
502
+ a.append(b.create(c, d));
503
+ }
504
+ b.destroy();
505
+ } else {
506
+ c = z({}, b.tpl, [], "", null, 1), a.append(c);
507
+ }
508
+ return D;
509
+ };
510
+ D.register = function(a, b) {
511
+ let c, d;
512
+ if ("string" === typeof a) {
513
+ if (c = d = a, a = C[c], a instanceof D || (a = a[0]), !a) {
514
+ throw Error("The template '" + c + "' was not found.");
515
+ }
516
+ } else {
517
+ c = a.name;
518
+ }
519
+ C[c] && (d ? console.info("The template '" + c + "' was replaced by a new definition.") : console.warn("The template '" + c + "' was already registered and is getting overwritten. When this isn't your intention, then please check your template names about uniqueness and collision!"));
520
+ C[c] = [a, b];
521
+ return D;
522
+ };
523
+ D.unregister = function(a) {
524
+ "object" === typeof a && (a = a.name);
525
+ const b = C[a];
526
+ b && (b instanceof D && b.destroy(), C[a] = null);
527
+ return D;
528
+ };
529
+ export default D;
530
+
@@ -0,0 +1 @@
1
+ Mikado.register({name:"partial/attachment_edit",tpl:{tag:"tr",child:[{tag:"td",class:"edit-attachments-cell-1",text:[]},{tag:"td",child:{tag:"button",attr:{"onclick":[]},text:"view"},class:"edit-attachments-cell-2"},{tag:"td",child:{tag:"button",attr:{"onclick":[]},text:"delete"},class:"edit-attachments-cell-3"}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.title;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[1];_x&&(_x[1]=_c={});_v='show_attachment('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v='remove_attachment('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);}]});
@@ -0,0 +1,5 @@
1
+ <tr>
2
+ <td class="edit-attachments-cell-1">{{data.title}}</td>
3
+ <td class="edit-attachments-cell-2"><button onclick="show_attachment({{data.id}})">view</button></td>
4
+ <td class="edit-attachments-cell-3"><button onclick="remove_attachment({{data.id}})">delete</button></td>
5
+ </tr>
@@ -0,0 +1 @@
1
+ export default{name:"partial/attachment_edit",tpl:{tag:"tr",child:[{tag:"td",class:"edit-attachments-cell-1",text:[]},{tag:"td",child:{tag:"button",attr:{"onclick":[]},text:"view"},class:"edit-attachments-cell-2"},{tag:"td",child:{tag:"button",attr:{"onclick":[]},text:"delete"},class:"edit-attachments-cell-3"}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.title;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[1];_x&&(_x[1]=_c={});_v='show_attachment('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v='remove_attachment('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);}]}
@@ -0,0 +1 @@
1
+ Mikado.register({name:"partial/attachment_view",tpl:{tag:"li",child:{tag:"button",attr:{"id":[],"onclick":[]},text:[]}},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v='attach-'+(data.id);_c&&(_c["_aid"]=_v);(_o.c&&_o.c["_aid"]===_v)||_o._a("id",_v,_f);_v='show_attachment('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v=data.title;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]});
@@ -0,0 +1 @@
1
+ <li><button id="attach-{{data.id}}" onclick="show_attachment({{data.id}})">{{data.title}}</button></li>
@@ -0,0 +1 @@
1
+ export default{name:"partial/attachment_view",tpl:{tag:"li",child:{tag:"button",attr:{"id":[],"onclick":[]},text:[]}},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v='attach-'+(data.id);_c&&(_c["_aid"]=_v);(_o.c&&_o.c["_aid"]===_v)||_o._a("id",_v,_f);_v='show_attachment('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v=data.title;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]}
@@ -0,0 +1 @@
1
+ Mikado.register({name:"partial/contact_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"contacts_check_select"},class:"contact-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"contact-name-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"contact-email-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"contact-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='view_from_contacts('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.name;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='view_from_contacts('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.email;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='view_from_contacts('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]});
@@ -0,0 +1,9 @@
1
+
2
+ <tr>
3
+ <td class="contact-checkbox-cell">
4
+ <input type="checkbox" class="contacts_check_select" value="{{data.id}}" onchange="update_check_box_pattern(event)" />
5
+ </td>
6
+ <td class="contact-name-cell" onclick="view_from_contacts({{data.id}})">{{ data.name }}</td>
7
+ <td class="contact-email-cell" onclick="view_from_contacts({{data.id}})">{{ data.email }}</td>
8
+ <td class="contact-date-cell" onclick="view_from_contacts({{data.id}})">{{ data.date }}</td>
9
+ </tr>
@@ -0,0 +1 @@
1
+ export default{name:"partial/contact_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"contacts_check_select"},class:"contact-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"contact-name-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"contact-email-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"contact-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='view_from_contacts('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.name;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='view_from_contacts('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.email;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='view_from_contacts('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]}
@@ -0,0 +1 @@
1
+ Mikado.register({name:"partial/draft_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"drafts_check_select"},class:"ed-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"ed-recipient-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"ed-subject-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"ed-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='edit_from_draft('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.recipient;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='edit_from_draft('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.subject;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='edit_from_draft('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]});
@@ -0,0 +1,8 @@
1
+
2
+ <tr>
3
+ <td class="ed-checkbox-cell" ><input type="checkbox" class="drafts_check_select" value="{{data.id}}" onchange="update_check_box_pattern(event)" /></td>
4
+ <td class="ed-recipient-cell" onclick="edit_from_draft({{data.id}})">{{ data.recipient }}</td>
5
+ <td class="ed-subject-cell" onclick="edit_from_draft({{data.id}})">{{ data.subject }}</td>
6
+ <td class="ed-date-cell" onclick="edit_from_draft({{data.id}})">{{ data.date }}</td>
7
+ </tr>
8
+
@@ -0,0 +1 @@
1
+ export default{name:"partial/draft_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"drafts_check_select"},class:"ed-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"ed-recipient-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"ed-subject-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"ed-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='edit_from_draft('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.recipient;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='edit_from_draft('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.subject;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='edit_from_draft('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]}
@@ -0,0 +1 @@
1
+ Mikado.register({name:"partial/inbox_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"inbox_check_select"},class:"in-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"in-recipient-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"in-subject-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"in-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='view_from_inbox('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.sender;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='view_from_inbox('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.subject;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='view_from_inbox('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]});
@@ -0,0 +1,7 @@
1
+
2
+ <tr>
3
+ <td class="in-checkbox-cell"><input type="checkbox" class="inbox_check_select" value="{{data.id}}" onchange="update_check_box_pattern(event)" /></td>
4
+ <td class="in-recipient-cell" onclick="view_from_inbox({{data.id}})">{{ data.sender }}</td>
5
+ <td class="in-subject-cell" onclick="view_from_inbox({{data.id}})">{{ data.subject }}</td>
6
+ <td class="in-date-cell" onclick="view_from_inbox({{data.id}})">{{ data.date }}</td>
7
+ </tr>
@@ -0,0 +1 @@
1
+ export default{name:"partial/inbox_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"inbox_check_select"},class:"in-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"in-recipient-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"in-subject-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"in-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='view_from_inbox('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.sender;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='view_from_inbox('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.subject;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='view_from_inbox('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]}
@@ -0,0 +1 @@
1
+ Mikado.register({name:"partial/notify_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"notify_check_select"},class:"notify-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"notify-recipient-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"notify-subject-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"notify-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='view_from_notify('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.sender;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='view_from_notify('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.subject;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='view_from_notify('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]});
@@ -0,0 +1,8 @@
1
+
2
+ <tr>
3
+ <td class="notify-checkbox-cell"><input type="checkbox" class="notify_check_select" value="{{data.id}}" onchange="update_check_box_pattern(event)" /></td>
4
+ <td class="notify-recipient-cell" onclick="view_from_notify({{data.id}})">{{ data.sender }}</td>
5
+ <td class="notify-subject-cell" onclick="view_from_notify({{data.id}})">{{ data.subject }}</td>
6
+ <td class="notify-date-cell" onclick="view_from_notify({{data.id}})">{{ data.date }}</td>
7
+ </tr>
8
+ </table>
@@ -0,0 +1 @@
1
+ export default{name:"partial/notify_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"notify_check_select"},class:"notify-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"notify-recipient-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"notify-subject-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"notify-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='view_from_notify('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.sender;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='view_from_notify('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.subject;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='view_from_notify('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]}
@@ -0,0 +1 @@
1
+ Mikado.register({name:"partial/sent_list",tpl:{tag:"tr",child:[{tag:"td",child:{tag:"input",attr:{"type":"checkbox","value":[],"onchange":"update_check_box_pattern(event)"},class:"sent_check_select"},class:"sent-checkbox-cell"},{tag:"td",attr:{"onclick":[]},class:"sent-recipient-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"sent-subject-cell",text:[]},{tag:"td",attr:{"onclick":[]},class:"sent-date-cell",text:[]}]},fn:[function(data,state,index,_p,_f,_x){let _o,_v,_c;_o=_p[0];_x&&(_x[0]=_c={});_v=data.id;_c&&(_c["_avalue"]=_v);(_o.c&&_o.c["_avalue"]===_v)||_o._a("value",_v,_f);_o=_p[1];_x&&(_x[1]=_c={});_v='view_from_sent('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[2];_x&&(_x[2]=_c={});_v=data.recipient;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[3];_x&&(_x[3]=_c={});_v='view_from_sent('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[4];_x&&(_x[4]=_c={});_v=data.subject;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);_o=_p[5];_x&&(_x[5]=_c={});_v='view_from_sent('+(data.id)+')';_c&&(_c["_aonclick"]=_v);(_o.c&&_o.c["_aonclick"]===_v)||_o._a("onclick",_v,_f);_o=_p[6];_x&&(_x[6]=_c={});_v=data.date;_c&&(_c._t=_v);(_o.c&&_o.c._t===_v)||_o._t(_v);}]});
@@ -0,0 +1,7 @@
1
+
2
+ <tr>
3
+ <td class="sent-checkbox-cell"><input type="checkbox" class="sent_check_select" value="{{data.id}}" onchange="update_check_box_pattern(event)" /></td>
4
+ <td class="sent-recipient-cell" onclick="view_from_sent({{data.id}})">{{ data.recipient }}</td>
5
+ <td class="sent-subject-cell" onclick="view_from_sent({{data.id}})">{{ data.subject }}</td>
6
+ <td class="sent-date-cell" onclick="view_from_sent({{data.id}})">{{ data.date }}</td>
7
+ </tr>