portal-design-system 0.0.913 → 0.0.914

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 +0,0 @@
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;
package/dist/datagrid.cjs DELETED
@@ -1 +0,0 @@
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;
@@ -1,126 +0,0 @@
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 };
package/dist/datagrid.js DELETED
@@ -1,5 +0,0 @@
1
- import { defineAsyncComponent as o } from "vue";
2
- const n = o(() => import("./DataGrid-Qfk5j1uR.js"));
3
- export {
4
- n as DataGrid
5
- };