@fewangsit/wangsvue-gsts 1.0.0-alpha.38 → 1.0.0-alpha.39

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.
@@ -0,0 +1,40 @@
1
+ import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeClass as c, createElementVNode as r, normalizeProps as p, guardReactiveProps as i, createBlock as s, createCommentVNode as a, createTextVNode as d, toDisplayString as f } from "vue";
2
+ import { _ as l } from "../icon/index.es.js";
3
+ const m = ["colspan", "rowspan"], u = { class: "flex" }, k = /* @__PURE__ */ n({
4
+ __name: "HeaderCell",
5
+ props: {
6
+ col: {},
7
+ defaultHeaderRowSpan: {},
8
+ sortBy: {},
9
+ sortOrder: {},
10
+ preset: {}
11
+ },
12
+ setup(y) {
13
+ return (e, h) => (o(), t("th", {
14
+ class: c([e.col.headerClass, e.col.class]),
15
+ colspan: e.col.colspan,
16
+ rowspan: e.col.rowspan ?? e.defaultHeaderRowSpan
17
+ }, [
18
+ r("span", p(i(e.preset.headercellcontent)), [
19
+ r("span", u, [
20
+ d(f(e.col.header) + " ", 1),
21
+ e.col.info ? (o(), s(l, {
22
+ key: 0,
23
+ info: e.col.info,
24
+ severity: e.col.infoSeverity,
25
+ class: "w-[10px] h-[10px]",
26
+ icon: "info"
27
+ }, null, 8, ["info", "severity"])) : a("", !0)
28
+ ]),
29
+ e.col.sortable ? (o(), s(l, {
30
+ key: 0,
31
+ icon: !e.sortBy || e.sortBy != e.col.field ? "arrow-up-down" : e.sortOrder == 1 ? "sort-asc" : "sort-desc",
32
+ class: "text-base"
33
+ }, null, 8, ["icon"])) : a("", !0)
34
+ ], 16)
35
+ ], 10, m));
36
+ }
37
+ });
38
+ export {
39
+ k as _
40
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-gsts",
3
- "version": "1.0.0-alpha.38",
3
+ "version": "1.0.0-alpha.39",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Global Settings Tagsamurai VueJS Component Library",
6
6
  "type": "module",
@@ -17,6 +17,7 @@
17
17
  "dependencies": {
18
18
  "@wangs-ui/core": "latest",
19
19
  "@wangs-ui/vue": "latest",
20
+ "@vueuse/core": "^13.5.0",
20
21
  "xlsx": "npm:@e965/xlsx@0.20.3"
21
22
  },
22
23
  "sideEffects": false
@@ -144,7 +144,7 @@ export interface WangsVueInstance {
144
144
  componentName: ComponentName,
145
145
  ): WangsVueComponentConfig<ComponentName>;
146
146
  }
147
- declare const DEFAULT_GLOBAL_LOCALE_CONFIG: {
147
+ export declare const DEFAULT_GLOBAL_LOCALE_CONFIG: {
148
148
  startsWith: string;
149
149
  contains: string;
150
150
  notContains: string;