golden-logic-ui 1.3.34 → 1.3.35

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.
@@ -1,24 +1,30 @@
1
- import { createElementBlock as d, openBlock as m, toDisplayString as p } from "vue";
2
- import f from "../../../_virtual/_plugin-vue_export-helper.js";
3
- const l = {
4
- props: ["field", "row", "tdProps"],
1
+ import { createElementBlock as d, openBlock as l, toDisplayString as m } from "vue";
2
+ import p from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ const u = {
4
+ props: {
5
+ field: null,
6
+ row: null,
7
+ tdProps: null,
8
+ // Texts in the table's language; without it the time reads AM / PM.
9
+ language: { type: Object, default: () => ({}) }
10
+ },
5
11
  computed: {
6
12
  formattedDate() {
7
13
  if (!this.row[this.field])
8
14
  return "";
9
- const e = new Date(this.row[this.field]), o = e.getFullYear(), a = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0");
15
+ const e = new Date(this.row[this.field]), r = e.getFullYear(), o = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
10
16
  let t = e.getHours();
11
- const r = String(e.getMinutes()).padStart(2, "0"), n = String(e.getSeconds()).padStart(2, "0"), c = t >= 12 ? "PM" : "AM";
17
+ const a = String(e.getMinutes()).padStart(2, "0"), s = String(e.getSeconds()).padStart(2, "0"), i = t >= 12 ? this.language?.pm ?? "PM" : this.language?.am ?? "AM";
12
18
  t = t % 12, t = t || 12;
13
- const i = String(t).padStart(2, "0");
14
- return `${s}-${a}-${o}, ${i}:${r}:${n} ${c}`;
19
+ const c = String(t).padStart(2, "0");
20
+ return `${n}-${o}-${r}, ${c}:${a}:${s} ${i}`;
15
21
  }
16
22
  }
17
- }, u = { class: "w-full" };
18
- function g(e, o, a, s, t, r) {
19
- return m(), d("div", u, p(r.formattedDate), 1);
23
+ }, f = { class: "w-full" };
24
+ function g(e, r, o, n, t, a) {
25
+ return l(), d("div", f, m(a.formattedDate), 1);
20
26
  }
21
- const h = /* @__PURE__ */ f(l, [["render", g]]);
27
+ const $ = /* @__PURE__ */ p(u, [["render", g]]);
22
28
  export {
23
- h as default
29
+ $ as default
24
30
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "The most popular library of interactive components built with Vuejs && Tailwind CSS",
4
4
  "type": "module",
5
5
  "private": false,
6
- "version": "1.3.34",
6
+ "version": "1.3.35",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/mrgiant/GoldenLogicUi.git"