portal-design-system 0.0.912 → 0.0.913

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 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("devextreme/dist/css/dx.light.css");const o=require("devextreme-vue/data-grid"),F=require("./Button.vue_vue_type_script_setup_true_lang-DR3EbYfk.cjs"),P={class:"w-full relative"},z=e.defineComponent({__name:"DataGrid",props:{dataSource:{},columns:{},keyExpr:{default:"id"},hasActions:{type:Boolean},remoteOperations:{type:Boolean},enablePagination:{type:Boolean},enableFiltering:{type:Boolean},enableSearch:{type:Boolean},enableColumnFixing:{type:Boolean},enableColumnChooser:{type:Boolean},enableRowSelection:{type:Boolean},enableExport:{type:Boolean},pageSize:{default:15},exportFileName:{},backRoute:{},showBackButton:{type:Boolean},wordWrapEnabled:{type:Boolean},useFixedHeight:{type:Boolean,default:!1},hasCreate:{type:Boolean}},emits:["refresh","on-exporting","create"],setup(r,{expose:g,emit:x}){const w=x,C=[5,10,15,20,50],u=r,{dataSource:d,columns:c,keyExpr:B,remoteOperations:y=!1,enablePagination:i=!0,enableFiltering:f=!0,enableSearch:k=!0,enableColumnChooser:p=!0,enableExport:m=!0,pageSize:v=10,exportFileName:D="GridData"}=e.toRefs(u),N={caption:"Actions",dataType:"string",alignment:"center",sortable:!1,disableFilters:!0,fixed:!0,width:120,fixedPosition:"right",template:"actionsTemplate"},h=e.computed(()=>u.hasActions?[...c.value,N]:c.value),s=e.ref(null),b=()=>{var a,n;return(n=(a=s.value)==null?void 0:a.instance)==null?void 0:n.refresh()},S=()=>{var a,n,t;try{(t=(n=(a=s.value)==null?void 0:a.instance)==null?void 0:n.showColumnChooser)==null||t.call(n)}catch(l){console.warn("Column chooser API not available on the DataGrid instance",l)}},V=a=>{a.fileName=D,w("on-exporting",a)};return g({refresh:b}),(a,n)=>(e.openBlock(),e.createElementBlock("div",P,[e.unref(d)?(e.openBlock(),e.createBlock(e.unref(o.DxDataGrid),{key:0,class:e.normalizeClass(["datagrid-table",{"fixed-height":r.useFixedHeight}]),ref_key:"dataGrid",ref:s,"data-source":e.unref(d),"word-wrap-enabled":r.wordWrapEnabled,"hover-state-enabled":!0,"show-borders":!0,"allow-column-reordering":!0,"allow-column-resizing":!0,"column-hiding-enabled":!1,"show-column-lines":!0,"row-alternation-enabled":!0,"column-auto-width":!0,"remote-operations":e.unref(y),onExporting:V,"key-expr":e.unref(B)},e.createSlots({customRefreshButton:e.withCtx(()=>[e.renderSlot(a.$slots,"customRefreshButton",{refresh:b})]),exportButton:e.withCtx(()=>[e.renderSlot(a.$slots,"exportButton")]),createButton:e.withCtx(()=>[e.renderSlot(a.$slots,"createButton")]),toolbarLeft:e.withCtx(()=>[e.renderSlot(a.$slots,"toolbarLeft")]),customColumnChooser:e.withCtx(()=>[e.createVNode(F._sfc_main$1,{variant:"outline",onClick:S,text:"Column Chooser",size:"40",class:"datagrid-column-chooser-button gap-2","icon-config":{size:20},icon:"Convertshape"})]),toolbarRight:e.withCtx(()=>[e.renderSlot(a.$slots,"toolbarRight")]),default:e.withCtx(()=>[e.createVNode(e.unref(o.DxPaging),{enabled:e.unref(i),"page-size":e.unref(v)},null,8,["enabled","page-size"]),e.createVNode(e.unref(o.DxPager),{visible:e.unref(i),"allowed-page-sizes":C,"display-mode":"compact","show-page-size-selector":!0,"show-info":"","show-navigation-buttons":""},null,8,["visible"]),e.createVNode(e.unref(o.DxSearchPanel),{class:"search",width:350,visible:e.unref(k),"highlight-case-sensitive":""},null,8,["visible"]),e.createVNode(e.unref(o.DxFilterRow),{visible:e.unref(f)},null,8,["visible"]),e.createVNode(e.unref(o.DxHeaderFilter),{visible:e.unref(f)},null,8,["visible"]),e.unref(i)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(o.DxScrolling),{key:0,mode:"virtual","use-native":!1})),e.createVNode(e.unref(o.DxColumnChooser),{enabled:e.unref(p),mode:"select"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.DxPosition),{my:"right top",at:"right bottom",of:".datagrid-column-chooser-button"})]),_:1},8,["enabled"]),e.createVNode(e.unref(o.DxExport),{enabled:e.unref(m),"allow-export-selected-data":!0},null,8,["enabled"]),e.createVNode(e.unref(o.DxColumnFixing),{enabled:!r.enableRowSelection&&r.enableColumnFixing},null,8,["enabled"]),e.createVNode(e.unref(o.DxSelection),{mode:"multiple"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(t,l)=>(e.openBlock(),e.createBlock(e.unref(o.DxColumn),{key:l,"data-field":t.dataField,caption:t.caption,"data-type":t.dataType,alignment:t.alignment??"left","allow-sorting":t.sortable??!0,"allow-filtering":!t.disableFilters,"allow-header-filtering":!t.disableFilters,width:t.width,"cell-template":t.template,lookup:t.lookup,visible:t.visible??!0,"allow-hiding":t.allowHiding??!0,fixed:t.fixed,"fixed-position":t.fixedPosition},null,8,["data-field","caption","data-type","alignment","allow-sorting","allow-filtering","allow-header-filtering","width","cell-template","lookup","visible","allow-hiding","fixed","fixed-position"]))),128)),e.createVNode(e.unref(o.DxToolbar),null,{default:e.withCtx(()=>[e.createVNode(e.unref(o.DxItem),{location:"before",name:"searchPanel","locate-in-menu":"auto"}),e.createVNode(e.unref(o.DxItem),{location:"before",template:"toolbarLeft"}),e.createVNode(e.unref(o.DxItem),{location:"after",template:"toolbarRight","locate-in-menu":"auto"}),e.createVNode(e.unref(o.DxItem),{location:"after",template:"customRefreshButton"}),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(o.DxItem),{key:0,name:"exportButton","locate-in-menu":"auto",template:"exportButton"})):e.createCommentVNode("",!0),r.hasCreate?(e.openBlock(),e.createBlock(e.unref(o.DxItem),{key:1,location:"before",template:"createButton"})):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(e.unref(o.DxItem),{key:2,location:"after",template:"customColumnChooser","locate-in-menu":"auto"})):e.createCommentVNode("",!0)]),_:1})]),_:2},[e.renderList(h.value.filter(t=>t.template),t=>({name:t.template,fn:e.withCtx(l=>[e.renderSlot(a.$slots,t.template,e.normalizeProps(e.guardReactiveProps(l)))])}))]),1032,["class","data-source","word-wrap-enabled","remote-operations","key-expr"])):e.createCommentVNode("",!0)]))}});exports.default=z;
@@ -1,7 +1,7 @@
1
- import { defineComponent as L, toRefs as T, computed as I, ref as O, createElementBlock as v, openBlock as i, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as V, createSlots as W, withCtx as l, createVNode as o, Fragment as j, renderList as k, renderSlot as d, normalizeProps as q, guardReactiveProps as J } from "vue";
1
+ import { defineComponent as L, toRefs as T, computed as I, ref as O, createElementBlock as B, openBlock as i, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as V, createSlots as W, withCtx as l, createVNode as o, Fragment as j, renderList as k, renderSlot as d, normalizeProps as q, guardReactiveProps as J } from "vue";
2
2
  import "devextreme/dist/css/dx.light.css";
3
3
  import { DxDataGrid as K, DxPaging as M, DxPager as Q, DxSearchPanel as U, DxFilterRow as X, DxHeaderFilter as Y, DxScrolling as Z, DxColumnChooser as _, DxPosition as ee, DxExport as te, DxColumnFixing as oe, DxSelection as ae, DxColumn as le, DxToolbar as ne, DxItem as r } from "devextreme-vue/data-grid";
4
- import { Button as ie } from "./index.js";
4
+ import { a as ie } from "./Button.vue_vue_type_script_setup_true_lang-CpVvHLQi.js";
5
5
  const re = { class: "w-full relative" }, pe = /* @__PURE__ */ L({
6
6
  __name: "DataGrid",
7
7
  props: {
@@ -49,7 +49,7 @@ const re = { class: "w-full relative" }, pe = /* @__PURE__ */ L({
49
49
  width: 120,
50
50
  fixedPosition: "right",
51
51
  template: "actionsTemplate"
52
- }, C = I(() => h.hasActions ? [...g.value, N] : g.value), b = O(null), B = () => {
52
+ }, C = I(() => h.hasActions ? [...g.value, N] : g.value), b = O(null), v = () => {
53
53
  var a, n;
54
54
  return (n = (a = b.value) == null ? void 0 : a.instance) == null ? void 0 : n.refresh();
55
55
  }, A = () => {
@@ -62,7 +62,7 @@ const re = { class: "w-full relative" }, pe = /* @__PURE__ */ L({
62
62
  }, H = (a) => {
63
63
  a.fileName = G, S("on-exporting", a);
64
64
  };
65
- return D({ refresh: B }), (a, n) => (i(), v("div", re, [
65
+ return D({ refresh: v }), (a, n) => (i(), B("div", re, [
66
66
  e(f) ? (i(), u(e(K), {
67
67
  key: 0,
68
68
  class: V(["datagrid-table", { "fixed-height": s.useFixedHeight }]),
@@ -83,7 +83,7 @@ const re = { class: "w-full relative" }, pe = /* @__PURE__ */ L({
83
83
  "key-expr": e(z)
84
84
  }, W({
85
85
  customRefreshButton: l(() => [
86
- d(a.$slots, "customRefreshButton", { refresh: B })
86
+ d(a.$slots, "customRefreshButton", { refresh: v })
87
87
  ]),
88
88
  exportButton: l(() => [
89
89
  d(a.$slots, "exportButton")
@@ -155,7 +155,7 @@ const re = { class: "w-full relative" }, pe = /* @__PURE__ */ L({
155
155
  enabled: !s.enableRowSelection && s.enableColumnFixing
156
156
  }, null, 8, ["enabled"]),
157
157
  o(e(ae), { mode: "multiple" }),
158
- (i(!0), v(j, null, k(C.value, (t, c) => (i(), u(e(le), {
158
+ (i(!0), B(j, null, k(C.value, (t, c) => (i(), u(e(le), {
159
159
  key: c,
160
160
  "data-field": t.dataField,
161
161
  caption: t.caption,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DataGrid-CFoHugFj.cjs")));exports.DataGrid=r;
@@ -0,0 +1,126 @@
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
2
+ import { DxCustomColumn } from './types/dev-express-types';
3
+ declare const DataGrid: {
4
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
5
+ dataSource: any;
6
+ columns: DxCustomColumn[];
7
+ keyExpr?: string;
8
+ hasActions?: boolean;
9
+ remoteOperations?: boolean;
10
+ enablePagination?: boolean;
11
+ enableFiltering?: boolean;
12
+ enableSearch?: boolean;
13
+ enableColumnFixing?: boolean;
14
+ enableColumnChooser?: boolean;
15
+ enableRowSelection?: boolean;
16
+ enableExport?: boolean;
17
+ pageSize?: 5 | 10 | 15 | 20 | 50;
18
+ exportFileName?: string;
19
+ backRoute?: string;
20
+ showBackButton?: boolean;
21
+ wordWrapEnabled?: boolean;
22
+ useFixedHeight?: boolean;
23
+ hasCreate?: boolean;
24
+ }> & Readonly<{
25
+ onRefresh?: ((...args: any[]) => any) | undefined;
26
+ "onOn-exporting"?: ((...args: any[]) => any) | undefined;
27
+ onCreate?: ((...args: any[]) => any) | undefined;
28
+ }>, {
29
+ refresh: () => Promise<void> | undefined;
30
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
31
+ refresh: (...args: any[]) => void;
32
+ "on-exporting": (...args: any[]) => void;
33
+ create: (...args: any[]) => void;
34
+ }, PublicProps, {
35
+ keyExpr: string;
36
+ pageSize: 5 | 10 | 15 | 20 | 50;
37
+ useFixedHeight: boolean;
38
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
39
+ dataGrid: unknown;
40
+ }, HTMLDivElement, ComponentProvideOptions, {
41
+ P: {};
42
+ B: {};
43
+ D: {};
44
+ C: {};
45
+ M: {};
46
+ Defaults: {};
47
+ }, Readonly<{
48
+ dataSource: any;
49
+ columns: DxCustomColumn[];
50
+ keyExpr?: string;
51
+ hasActions?: boolean;
52
+ remoteOperations?: boolean;
53
+ enablePagination?: boolean;
54
+ enableFiltering?: boolean;
55
+ enableSearch?: boolean;
56
+ enableColumnFixing?: boolean;
57
+ enableColumnChooser?: boolean;
58
+ enableRowSelection?: boolean;
59
+ enableExport?: boolean;
60
+ pageSize?: 5 | 10 | 15 | 20 | 50;
61
+ exportFileName?: string;
62
+ backRoute?: string;
63
+ showBackButton?: boolean;
64
+ wordWrapEnabled?: boolean;
65
+ useFixedHeight?: boolean;
66
+ hasCreate?: boolean;
67
+ }> & Readonly<{
68
+ onRefresh?: ((...args: any[]) => any) | undefined;
69
+ "onOn-exporting"?: ((...args: any[]) => any) | undefined;
70
+ onCreate?: ((...args: any[]) => any) | undefined;
71
+ }>, {
72
+ refresh: () => Promise<void> | undefined;
73
+ }, {}, {}, {}, {
74
+ keyExpr: string;
75
+ pageSize: 5 | 10 | 15 | 20 | 50;
76
+ useFixedHeight: boolean;
77
+ }>;
78
+ __isFragment?: never;
79
+ __isTeleport?: never;
80
+ __isSuspense?: never;
81
+ } & ComponentOptionsBase<Readonly<{
82
+ dataSource: any;
83
+ columns: DxCustomColumn[];
84
+ keyExpr?: string;
85
+ hasActions?: boolean;
86
+ remoteOperations?: boolean;
87
+ enablePagination?: boolean;
88
+ enableFiltering?: boolean;
89
+ enableSearch?: boolean;
90
+ enableColumnFixing?: boolean;
91
+ enableColumnChooser?: boolean;
92
+ enableRowSelection?: boolean;
93
+ enableExport?: boolean;
94
+ pageSize?: 5 | 10 | 15 | 20 | 50;
95
+ exportFileName?: string;
96
+ backRoute?: string;
97
+ showBackButton?: boolean;
98
+ wordWrapEnabled?: boolean;
99
+ useFixedHeight?: boolean;
100
+ hasCreate?: boolean;
101
+ }> & Readonly<{
102
+ onRefresh?: ((...args: any[]) => any) | undefined;
103
+ "onOn-exporting"?: ((...args: any[]) => any) | undefined;
104
+ onCreate?: ((...args: any[]) => any) | undefined;
105
+ }>, {
106
+ refresh: () => Promise<void> | undefined;
107
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
108
+ refresh: (...args: any[]) => void;
109
+ "on-exporting": (...args: any[]) => void;
110
+ create: (...args: any[]) => void;
111
+ }, string, {
112
+ keyExpr: string;
113
+ pageSize: 5 | 10 | 15 | 20 | 50;
114
+ useFixedHeight: boolean;
115
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
116
+ $slots: Partial<Record<string, (_: any) => any>> & {
117
+ customRefreshButton?(_: {
118
+ refresh: () => Promise<void> | undefined;
119
+ }): any;
120
+ exportButton?(_: {}): any;
121
+ createButton?(_: {}): any;
122
+ toolbarLeft?(_: {}): any;
123
+ toolbarRight?(_: {}): any;
124
+ };
125
+ });
126
+ export { DataGrid };
@@ -0,0 +1,5 @@
1
+ import { defineAsyncComponent as o } from "vue";
2
+ const n = o(() => import("./DataGrid-Qfk5j1uR.js"));
3
+ export {
4
+ n as DataGrid
5
+ };