@eodash/eodash 5.0.0-alpha.2 → 5.0.0-alpha.2.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 (29) hide show
  1. package/LICENSE +21 -0
  2. package/bin/serverConfig.js +1 -1
  3. package/core/SuspensedDashboard.ce.vue +8 -2
  4. package/core/components/DashboardLayout.vue +3 -13
  5. package/core/types.d.ts +2 -1
  6. package/core/views/Dashboard.vue +1 -1
  7. package/dist/DashboardLayout-Dp8AnYD9.js +141 -0
  8. package/dist/{DynamicWebComponent-BDOQsEcj.js → DynamicWebComponent-BrHVTesn.js} +1 -1
  9. package/dist/{EodashDatePicker-DlehqSgz.js → EodashDatePicker-D_udZ26j.js} +33 -33
  10. package/dist/{EodashItemFilter-TSp7XRGy.js → EodashItemFilter-BLAGx2UD.js} +2 -2
  11. package/dist/{EodashMap-DInb9cfS.js → EodashMap-Bxl_aqY2.js} +4 -4
  12. package/dist/{Footer-CIzHgJbK.js → Footer-AohCH8U7.js} +17 -17
  13. package/dist/{Header-C5PSB8Uc.js → Header-DC50S6GR.js} +21 -21
  14. package/dist/{IframeWrapper-DYHQQRUh.js → IframeWrapper-Dd9zrX9s.js} +1 -1
  15. package/dist/{MobileLayout-DZmqrpub.js → MobileLayout-CgToA7Gp.js} +5 -5
  16. package/dist/{VBtn-CFPhsIX8.js → VBtn-Bz7ruRUg.js} +35 -35
  17. package/dist/{VMain-deI9jyIf.js → VMain-BHfWJU2j.js} +2 -2
  18. package/dist/{WidgetsContainer-D_PLP1qf.js → WidgetsContainer-DxfCu0I3.js} +3 -3
  19. package/dist/{asWebComponent-BKe6Spni.js → asWebComponent-C8rb3b1D.js} +1237 -1237
  20. package/dist/{color-D72nEBIR.js → color-DpYEub1f.js} +12 -12
  21. package/dist/{decoder-kAoyGIq9-HAkjSTCt.js → decoder-kAoyGIq9-BBR5CgzS.js} +1 -1
  22. package/dist/{dimensions-BZkmIizV.js → dimensions-CJaGeSrj.js} +1 -1
  23. package/dist/eo-dash.js +1 -1
  24. package/dist/{index-8ch8xKfa.js → index-DTkOfh2g.js} +5 -5
  25. package/dist/{index-DIt8GjSR.js → index-Sa2Vg_gx.js} +1 -1
  26. package/dist/{lerc-C9VL9kri-DyVxBvsf.js → lerc-C9VL9kri-cIdbW0sg.js} +1 -1
  27. package/dist/{ssrBoot-Cm5pWM14.js → ssrBoot-D-b4-M19.js} +1 -1
  28. package/package.json +1 -1
  29. package/dist/DashboardLayout-YLfAa8wH.js +0 -168
@@ -1,4 +1,4 @@
1
- import { p as l, ah as c, c as u, aD as r, au as f, aE as d, aF as v, aG as C, aH as b } from "./asWebComponent-BKe6Spni.js";
1
+ import { p as l, af as c, c as u, aB as r, as as g, aC as d, aD as v, aE as C, aF as b } from "./asWebComponent-C8rb3b1D.js";
2
2
  const k = l({
3
3
  border: [Boolean, Number, String]
4
4
  }, "border");
@@ -16,7 +16,7 @@ function x(e) {
16
16
  })
17
17
  };
18
18
  }
19
- const h = l({
19
+ const y = l({
20
20
  elevation: {
21
21
  type: [Number, String],
22
22
  validator(e) {
@@ -27,7 +27,7 @@ const h = l({
27
27
  }
28
28
  }
29
29
  }, "elevation");
30
- function y(e) {
30
+ function h(e) {
31
31
  return {
32
32
  elevationClasses: u(() => {
33
33
  const n = r(e) ? e.value : e.elevation, t = [];
@@ -42,7 +42,7 @@ const S = l({
42
42
  },
43
43
  tile: Boolean
44
44
  }, "rounded");
45
- function $(e) {
45
+ function B(e) {
46
46
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : c();
47
47
  return {
48
48
  roundedClasses: u(() => {
@@ -50,8 +50,8 @@ function $(e) {
50
50
  if (t === !0 || t === "")
51
51
  a.push(`${s}--rounded`);
52
52
  else if (typeof t == "string" || t === 0)
53
- for (const g of String(t).split(" "))
54
- a.push(`rounded-${g}`);
53
+ for (const f of String(t).split(" "))
54
+ a.push(`rounded-${f}`);
55
55
  else
56
56
  o && a.push("rounded-0");
57
57
  return a;
@@ -59,7 +59,7 @@ function $(e) {
59
59
  };
60
60
  }
61
61
  function i(e) {
62
- return f(() => {
62
+ return g(() => {
63
63
  const s = [], n = {};
64
64
  if (e.value.background)
65
65
  if (d(e.value.background)) {
@@ -78,7 +78,7 @@ function i(e) {
78
78
  };
79
79
  });
80
80
  }
81
- function B(e, s) {
81
+ function $(e, s) {
82
82
  const n = u(() => ({
83
83
  text: r(e) ? e.value : s ? e[s] : null
84
84
  })), {
@@ -104,12 +104,12 @@ function N(e, s) {
104
104
  }
105
105
  export {
106
106
  N as a,
107
- $ as b,
107
+ B as b,
108
108
  k as c,
109
- h as d,
109
+ y as d,
110
110
  x as e,
111
- y as f,
111
+ h as f,
112
112
  i as g,
113
113
  S as m,
114
- B as u
114
+ $ as u
115
115
  };
@@ -1,4 +1,4 @@
1
- import { V as e } from "./EodashMap-DInb9cfS.js";
1
+ import { V as e } from "./EodashMap-Bxl_aqY2.js";
2
2
  var t = Worker;
3
3
  const i = /* @__PURE__ */ e(t);
4
4
  function I() {
@@ -1,4 +1,4 @@
1
- import { g as u, aC as h, q as g, p as n, c as l, v as t } from "./asWebComponent-BKe6Spni.js";
1
+ import { g as u, aA as h, q as g, p as n, c as l, v as t } from "./asWebComponent-C8rb3b1D.js";
2
2
  const c = n({
3
3
  defaults: Object,
4
4
  disabled: Boolean,
package/dist/eo-dash.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aQ as r, aR as e, aS as o } from "./asWebComponent-BKe6Spni.js";
1
+ import { aO as r, aP as e, aQ as o } from "./asWebComponent-C8rb3b1D.js";
2
2
  export {
3
3
  r as Eodash,
4
4
  e as register,
@@ -1,5 +1,5 @@
1
- import { g as c, aB as x, ay as g, aa as p, p as S, a9 as b } from "./asWebComponent-BKe6Spni.js";
2
- const _ = S({
1
+ import { g as c, az as x, aw as g, a8 as p, p as S, a7 as b } from "./asWebComponent-C8rb3b1D.js";
2
+ const w = S({
3
3
  disabled: Boolean,
4
4
  group: Boolean,
5
5
  hideOnLeave: Boolean,
@@ -10,7 +10,7 @@ const _ = S({
10
10
  function s(o, d, i) {
11
11
  return c()({
12
12
  name: o,
13
- props: _({
13
+ props: w({
14
14
  mode: i,
15
15
  origin: d
16
16
  }),
@@ -143,10 +143,10 @@ s("slide-x-transition");
143
143
  s("slide-x-reverse-transition");
144
144
  const L = s("slide-y-transition");
145
145
  s("slide-y-reverse-transition");
146
- const A = h("expand-transition", m()), B = h("expand-x-transition", m("", !0));
146
+ const A = h("expand-transition", m()), E = h("expand-x-transition", m("", !0));
147
147
  export {
148
148
  T as V,
149
149
  A as a,
150
150
  L as b,
151
- B as c
151
+ E as c
152
152
  };
@@ -1,4 +1,4 @@
1
- import { p as v, aa as b, m as d, aB as l, ay as g, Y as _ } from "./asWebComponent-BKe6Spni.js";
1
+ import { p as v, a8 as b, m as d, az as l, aw as g, W as _ } from "./asWebComponent-C8rb3b1D.js";
2
2
  const j = v({
3
3
  transition: {
4
4
  type: [Boolean, String, Object],
@@ -1,5 +1,5 @@
1
1
  import { b as tA } from "./pako.esm-C3kYPGGQ-BMki8cQY.js";
2
- import { D as sA, G as gA, V as rA } from "./EodashMap-DInb9cfS.js";
2
+ import { D as sA, G as gA, V as rA } from "./EodashMap-Bxl_aqY2.js";
3
3
  import { g as DA } from "./basedecoder-Qm25PwVp-CHo5Pomv.js";
4
4
  var iA = { exports: {} };
5
5
  (function(W) {
@@ -1,4 +1,4 @@
1
- import { s, C as t, c as e, a7 as n } from "./asWebComponent-BKe6Spni.js";
1
+ import { s, C as t, c as e, a5 as n } from "./asWebComponent-C8rb3b1D.js";
2
2
  function i() {
3
3
  const o = s(!1);
4
4
  return t(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eodash/eodash",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.2.1",
4
4
  "type": "module",
5
5
  "types": "./core/types.d.ts",
6
6
  "files": [
@@ -1,168 +0,0 @@
1
- import { y as k, z as v, A as m, r as C, R as A, S as L, D as o, E as n, G as l, T as y, J as e, U as b, a as c, H as f, m as _, K as w, F as V, L as E, N as $, V as B } from "./asWebComponent-BKe6Spni.js";
2
- import { V as S, b as z } from "./VBtn-CFPhsIX8.js";
3
- import { V as H } from "./VMain-deI9jyIf.js";
4
- class M extends HTMLElement {
5
- static get observedAttributes() {
6
- return ["gap"];
7
- }
8
- constructor() {
9
- super(), this.attachShadow({ mode: "open" }), this.render();
10
- }
11
- render() {
12
- this.shadowRoot.innerHTML = `
13
- <style>
14
- :host {
15
- display: grid;
16
- padding: ${this.getAttribute("gap") || 0}px;
17
- height: 100%;
18
- box-sizing: border-box;
19
- gap: ${this.getAttribute("gap") || "0"}px;
20
- grid-template-columns: repeat(12, 1fr);
21
- grid-template-rows: repeat(12, 1fr);
22
- }
23
- </style>
24
- <slot></slot>
25
- `;
26
- }
27
- attributeChangedCallback(a, r, s) {
28
- r !== s && (this[a] = s), this.render();
29
- }
30
- }
31
- class T extends HTMLElement {
32
- static get observedAttributes() {
33
- return ["x", "y", "w", "h"];
34
- }
35
- constructor() {
36
- super(), this.attachShadow({ mode: "open" }), this.render();
37
- }
38
- render() {
39
- this.shadowRoot.innerHTML = `
40
- <style>
41
- :host {
42
- background: lightgrey;
43
- border: 1px solid darkgrey;
44
- border-radius: 4px;
45
- padding: 4px 8px;
46
- overflow: hidden;
47
-
48
-
49
- grid-column: ${parseInt(this.getAttribute("x")) + 1} / span ${this.getAttribute("w")};
50
- grid-row: ${parseInt(this.getAttribute("y")) + 1} / span ${this.getAttribute("h")};
51
- }
52
- </style>
53
- <slot></slot>
54
- `;
55
- }
56
- attributeChangedCallback(a, r, s) {
57
- r !== s && (this[a] = s), this.render();
58
- }
59
- }
60
- customElements.define("eox-layout", M);
61
- customElements.define("eox-layout-item", T);
62
- const D = ["gap"], I = {
63
- style: { "z-index": "0" },
64
- x: "0",
65
- y: "0",
66
- h: "12",
67
- w: "12"
68
- }, N = ["x", "y", "h", "w"], G = {
69
- __name: "DashboardLayout",
70
- setup(p) {
71
- const a = (
72
- /** @type {import("@/types").Eodash} */
73
- k(v)
74
- ), [r] = m([a.template?.background]), s = a.template?.widgets, u = m(s), h = C([]), { slideBtns: i, slideInOut: x } = A(h, s);
75
- return (R, W) => {
76
- const g = L("Loading");
77
- return o(), n(H, null, {
78
- default: l(() => [
79
- y("eox-layout", {
80
- gap: e(a).template.gap ?? 2
81
- }, [
82
- y("eox-layout-item", I, [
83
- (o(), n(b, null, {
84
- fallback: l(() => [
85
- c(g)
86
- ]),
87
- default: l(() => [
88
- (o(), n(
89
- f(e(r).component),
90
- _({ id: "bg-widget" }, e(r).props),
91
- null,
92
- 16
93
- /* FULL_PROPS */
94
- ))
95
- ]),
96
- _: 1
97
- /* STABLE */
98
- }))
99
- ]),
100
- (o(!0), w(
101
- V,
102
- null,
103
- E(e(s), (d, t) => (o(), w("eox-layout-item", {
104
- ref_for: !0,
105
- ref_key: "itemEls",
106
- ref: h,
107
- key: t,
108
- style: { position: "relative", overflow: "visible", "z-index": "1", "border-radius": "0px", background: "rgb(var(--v-theme-surface))" },
109
- x: d.layout.x,
110
- y: d.layout.y,
111
- h: d.layout.h,
112
- w: d.layout.w
113
- }, [
114
- e(i)[t].enabled ? (o(), n(S, {
115
- key: 0,
116
- position: "absolute",
117
- variant: "tonal",
118
- style: $(e(i)[t].style),
119
- class: "slide-btn",
120
- onClick: (F) => e(x)(t)
121
- }, {
122
- default: l(() => [
123
- c(z, {
124
- icon: e(i)[t].active ? e(i)[t].icon.in : e(i)[t].icon.out
125
- }, null, 8, ["icon"])
126
- ]),
127
- _: 2
128
- /* DYNAMIC */
129
- }, 1032, ["style", "onClick"])) : B("v-if", !0),
130
- (o(), n(
131
- b,
132
- null,
133
- {
134
- fallback: l(() => [
135
- c(g)
136
- ]),
137
- default: l(() => [
138
- (o(), n(
139
- f(e(u)[t].value.component),
140
- _({
141
- key: e(u)[t].value.id
142
- }, e(u)[t].value.props),
143
- null,
144
- 16
145
- /* FULL_PROPS */
146
- ))
147
- ]),
148
- _: 2
149
- /* DYNAMIC */
150
- },
151
- 1024
152
- /* DYNAMIC_SLOTS */
153
- ))
154
- ], 8, N))),
155
- 128
156
- /* KEYED_FRAGMENT */
157
- ))
158
- ], 8, D)
159
- ]),
160
- _: 1
161
- /* STABLE */
162
- });
163
- };
164
- }
165
- };
166
- export {
167
- G as default
168
- };