@digitalwalletcorp/vue-core 1.3.1 → 1.4.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 (110) hide show
  1. package/README.md +36 -0
  2. package/lib/accordion-section.d.cts +1 -1
  3. package/lib/accordion-section.d.ts +1 -1
  4. package/lib/components-BCJWnExf.cjs +1 -0
  5. package/lib/{components-BuTJ1wX8.js → components-CDIhw5uP.js} +5 -5
  6. package/lib/data-table.d.cts +101 -8
  7. package/lib/data-table.d.ts +101 -8
  8. package/lib/{types → helpers}/data-table.d.cts +47 -93
  9. package/lib/{types → helpers}/data-table.d.ts +47 -93
  10. package/lib/helpers/{show-floating-component.d.cts → floating-component.d.cts} +1 -1
  11. package/lib/helpers/{show-floating-component.d.ts → floating-component.d.ts} +1 -1
  12. package/lib/helpers/{show-modal-dialog.d.cts → modal-dialog.d.cts} +13 -1
  13. package/lib/helpers/{show-modal-dialog.d.ts → modal-dialog.d.ts} +13 -1
  14. package/lib/helpers/{show-overlay-box.d.ts → overlay-box.d.cts} +3 -1
  15. package/lib/helpers/{show-overlay-box.d.cts → overlay-box.d.ts} +3 -1
  16. package/lib/helpers/{show-snackbar.d.cts → snackbar.d.cts} +16 -1
  17. package/lib/helpers/{show-snackbar.d.ts → snackbar.d.ts} +16 -1
  18. package/lib/helpers/vue-core-options.d.cts +17 -0
  19. package/lib/helpers/vue-core-options.d.ts +17 -0
  20. package/lib/index.cjs +1 -1
  21. package/lib/index.d.cts +18 -18
  22. package/lib/index.d.ts +18 -18
  23. package/lib/index.js +187 -270
  24. package/lib/internal/data-table-controls.d.cts +3 -3
  25. package/lib/internal/data-table-controls.d.ts +3 -3
  26. package/lib/internal/floating-component.d.cts +1 -1
  27. package/lib/internal/floating-component.d.ts +1 -1
  28. package/lib/internal/movable-window.d.cts +1 -1
  29. package/lib/internal/movable-window.d.ts +1 -1
  30. package/lib/internal/pagination.d.cts +1 -1
  31. package/lib/internal/pagination.d.ts +1 -1
  32. package/lib/internal/snackbar-container.d.cts +1 -1
  33. package/lib/internal/snackbar-container.d.ts +1 -1
  34. package/lib/internal/use-movable-window.d.cts +1 -1
  35. package/lib/internal/use-movable-window.d.ts +1 -1
  36. package/lib/internal/{mount-window.d.cts → window-control.d.cts} +22 -1
  37. package/lib/internal/{mount-window.d.ts → window-control.d.ts} +22 -1
  38. package/lib/label-button.d.cts +1 -1
  39. package/lib/label-button.d.ts +1 -1
  40. package/lib/label-icon.d.cts +12 -2
  41. package/lib/label-icon.d.ts +12 -2
  42. package/lib/modal-dialog.d.cts +1 -1
  43. package/lib/modal-dialog.d.ts +1 -1
  44. package/lib/nuxt.cjs +1 -1
  45. package/lib/nuxt.js +1 -1
  46. package/lib/overlay-box.d.cts +1 -1
  47. package/lib/overlay-box.d.ts +1 -1
  48. package/lib/register.cjs +1 -1
  49. package/lib/register.js +1 -1
  50. package/lib/tab-content.d.cts +1 -1
  51. package/lib/tab-content.d.ts +1 -1
  52. package/lib/warning-popper.vue_vue_type_style_index_0_lang-BJxLA6aU.js +1954 -0
  53. package/lib/warning-popper.vue_vue_type_style_index_0_lang-TYmLM_h9.cjs +1 -0
  54. package/package.json +1 -1
  55. package/src/accordion-section.vue +1 -1
  56. package/src/data-table.vue +189 -49
  57. package/src/helpers/data-table.ts +250 -0
  58. package/src/helpers/{show-floating-component.ts → floating-component.ts} +2 -2
  59. package/src/helpers/{show-modal-dialog.ts → modal-dialog.ts} +17 -1
  60. package/src/helpers/{show-overlay-box.ts → overlay-box.ts} +5 -2
  61. package/src/helpers/{show-snackbar.ts → snackbar.ts} +19 -1
  62. package/src/helpers/vue-core-options.ts +20 -0
  63. package/src/index.ts +18 -18
  64. package/src/internal/data-table-controls.vue +1 -1
  65. package/src/internal/floating-component.vue +2 -2
  66. package/src/internal/movable-window.vue +1 -1
  67. package/src/internal/pagination.vue +1 -1
  68. package/src/internal/snackbar-container.vue +1 -1
  69. package/src/internal/use-movable-window.ts +1 -1
  70. package/src/internal/{mount-window.ts → window-control.ts} +31 -1
  71. package/src/label-button.vue +1 -1
  72. package/src/label-icon.vue +13 -2
  73. package/src/modal-dialog.vue +1 -1
  74. package/src/overlay-box.vue +3 -3
  75. package/src/tab-content.vue +2 -2
  76. package/src/tab-group.vue +2 -2
  77. package/lib/components-CKql5lWg.cjs +0 -1
  78. package/lib/helpers/data-table-csv.d.cts +0 -17
  79. package/lib/helpers/data-table-csv.d.ts +0 -17
  80. package/lib/internal/data-table-value.d.cts +0 -32
  81. package/lib/internal/data-table-value.d.ts +0 -32
  82. package/lib/internal/opened-overlay-boxes.d.cts +0 -2
  83. package/lib/internal/opened-overlay-boxes.d.ts +0 -2
  84. package/lib/internal/snackbar-item.d.cts +0 -17
  85. package/lib/internal/snackbar-item.d.ts +0 -17
  86. package/lib/internal/window-order.d.cts +0 -6
  87. package/lib/internal/window-order.d.ts +0 -6
  88. package/lib/types/label-preset.d.cts +0 -12
  89. package/lib/types/label-preset.d.ts +0 -12
  90. package/lib/types/modal-dialog.d.cts +0 -13
  91. package/lib/types/modal-dialog.d.ts +0 -13
  92. package/lib/types/movable-window.d.cts +0 -16
  93. package/lib/types/movable-window.d.ts +0 -16
  94. package/lib/warning-popper.vue_vue_type_style_index_0_lang-BKV_FX6k.js +0 -1837
  95. package/lib/warning-popper.vue_vue_type_style_index_0_lang-CHmkjVCO.cjs +0 -1
  96. package/src/helpers/data-table-csv.ts +0 -55
  97. package/src/internal/data-table-value.ts +0 -99
  98. package/src/internal/opened-overlay-boxes.ts +0 -2
  99. package/src/internal/snackbar-item.ts +0 -20
  100. package/src/internal/window-order.ts +0 -11
  101. package/src/types/data-table.ts +0 -196
  102. package/src/types/label-preset.ts +0 -13
  103. package/src/types/modal-dialog.ts +0 -16
  104. package/src/types/movable-window.ts +0 -18
  105. /package/lib/helpers/{show-screen-loading.d.cts → screen-loading.d.cts} +0 -0
  106. /package/lib/helpers/{show-screen-loading.d.ts → screen-loading.d.ts} +0 -0
  107. /package/lib/internal/{tab-group-context.d.cts → tab-group.d.cts} +0 -0
  108. /package/lib/internal/{tab-group-context.d.ts → tab-group.d.ts} +0 -0
  109. /package/src/helpers/{show-screen-loading.ts → screen-loading.ts} +0 -0
  110. /package/src/internal/{tab-group-context.ts → tab-group.ts} +0 -0
@@ -1,5 +1,17 @@
1
1
  import { AppContext, ClassValue, Component, StyleValue } from 'vue';
2
- import { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType } from '../types/modal-dialog.cjs';
2
+ /** モーダルダイアログの種類 */
3
+ export type ModalDialogType = 'info' | 'confirm' | 'warn' | 'error';
4
+ /** モーダルダイアログに並べるボタンの種類 */
5
+ export type ModalDialogButton = 'ok' | 'yes' | 'no' | 'cancel';
6
+ /** モーダルダイアログを閉じたボタン。Esc で閉じたときは cancel */
7
+ export type ModalDialogResult = ModalDialogButton;
8
+ /** モーダルダイアログに表示する画像。文字列は画像の URL */
9
+ export type ModalDialogImage = string | {
10
+ /** 画像の URL */
11
+ src: string;
12
+ /** 代替テキスト */
13
+ alt: string;
14
+ };
3
15
  export interface ShowModalDialogOptions {
4
16
  /** ダイアログの種類 */
5
17
  type?: ModalDialogType;
@@ -1,5 +1,17 @@
1
1
  import { AppContext, ClassValue, Component, StyleValue } from 'vue';
2
- import { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType } from '../types/modal-dialog';
2
+ /** モーダルダイアログの種類 */
3
+ export type ModalDialogType = 'info' | 'confirm' | 'warn' | 'error';
4
+ /** モーダルダイアログに並べるボタンの種類 */
5
+ export type ModalDialogButton = 'ok' | 'yes' | 'no' | 'cancel';
6
+ /** モーダルダイアログを閉じたボタン。Esc で閉じたときは cancel */
7
+ export type ModalDialogResult = ModalDialogButton;
8
+ /** モーダルダイアログに表示する画像。文字列は画像の URL */
9
+ export type ModalDialogImage = string | {
10
+ /** 画像の URL */
11
+ src: string;
12
+ /** 代替テキスト */
13
+ alt: string;
14
+ };
3
15
  export interface ShowModalDialogOptions {
4
16
  /** ダイアログの種類 */
5
17
  type?: ModalDialogType;
@@ -1,5 +1,7 @@
1
1
  import { AppContext, ClassValue, Component, StyleValue } from 'vue';
2
- import { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from '../types/movable-window';
2
+ import { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from '../internal/window-control.cjs';
3
+ /** 開いている OverlayBox を開いた順に持つ。Esc では最後に開いたものだけを閉じる */
4
+ export declare const openedOverlayBoxes: symbol[];
3
5
  /** showOverlayBox が中身のコンポーネントに props として渡す関数 */
4
6
  export type OverlayBoxContentProps = MovableWindowContentProps;
5
7
  /** showOverlayBox が返す、表示中のボックスを操作するためのハンドル */
@@ -1,5 +1,7 @@
1
1
  import { AppContext, ClassValue, Component, StyleValue } from 'vue';
2
- import { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from '../types/movable-window.cjs';
2
+ import { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from '../internal/window-control';
3
+ /** 開いている OverlayBox を開いた順に持つ。Esc では最後に開いたものだけを閉じる */
4
+ export declare const openedOverlayBoxes: symbol[];
3
5
  /** showOverlayBox が中身のコンポーネントに props として渡す関数 */
4
6
  export type OverlayBoxContentProps = MovableWindowContentProps;
5
7
  /** showOverlayBox が返す、表示中のボックスを操作するためのハンドル */
@@ -1,5 +1,20 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
- import { SnackbarDirection, SnackbarPlacement } from '../internal/snackbar-item.cjs';
2
+ /** snackbar を表示する画面上の位置 */
3
+ export type SnackbarPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
4
+ /** 同じ表示領域に並べる向き。overlap は同じ位置に重ねて新しいものを前面に出し、column は縦に積み、row は横に並べて端で折り返す */
5
+ export type SnackbarDirection = 'overlap' | 'column' | 'row';
6
+ /** 表示領域に並べる snackbar 1件分の内容 */
7
+ export interface SnackbarItem {
8
+ id: number;
9
+ message: string;
10
+ title?: string;
11
+ label?: string;
12
+ timestamp?: string;
13
+ clearable: boolean;
14
+ clearLabel: string;
15
+ class?: ClassValue;
16
+ style?: StyleValue;
17
+ }
3
18
  /** snackbar が閉じた理由。click はクリック、duration は表示時間の経過、clear は一括消去ボタンと closeAllSnackbars()、handle は SnackbarHandle の close() */
4
19
  export type SnackbarCloseReason = 'click' | 'duration' | 'clear' | 'handle';
5
20
  export interface ShowSnackbarOptions {
@@ -1,5 +1,20 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
- import { SnackbarDirection, SnackbarPlacement } from '../internal/snackbar-item';
2
+ /** snackbar を表示する画面上の位置 */
3
+ export type SnackbarPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
4
+ /** 同じ表示領域に並べる向き。overlap は同じ位置に重ねて新しいものを前面に出し、column は縦に積み、row は横に並べて端で折り返す */
5
+ export type SnackbarDirection = 'overlap' | 'column' | 'row';
6
+ /** 表示領域に並べる snackbar 1件分の内容 */
7
+ export interface SnackbarItem {
8
+ id: number;
9
+ message: string;
10
+ title?: string;
11
+ label?: string;
12
+ timestamp?: string;
13
+ clearable: boolean;
14
+ clearLabel: string;
15
+ class?: ClassValue;
16
+ style?: StyleValue;
17
+ }
3
18
  /** snackbar が閉じた理由。click はクリック、duration は表示時間の経過、clear は一括消去ボタンと closeAllSnackbars()、handle は SnackbarHandle の close() */
4
19
  export type SnackbarCloseReason = 'click' | 'duration' | 'clear' | 'handle';
5
20
  export interface ShowSnackbarOptions {
@@ -0,0 +1,17 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { Props } from '../data-table.cjs';
3
+ /**
4
+ * DataTable のアプリ既定の設定。vueCoreOptionsKey の dataTable で渡す。
5
+ * props のうちデータと表示の状態を除いた項目を持ち、DataTable の props に同じ名前の指定があればそちらが優先される
6
+ */
7
+ export type DataTableOptions = Partial<Omit<Props, 'dataList' | 'headers' | 'loading' | 'totalCount' | 'current' | 'limit'>>;
8
+ /** アプリ全体の設定 */
9
+ export type VueCoreOptions = {
10
+ /** DataTable のアプリ既定の設定 */
11
+ dataTable?: DataTableOptions;
12
+ };
13
+ /**
14
+ * アプリ全体の設定を provide/inject するためのキー
15
+ * provide は任意。画面の上位または app.provide で使う
16
+ */
17
+ export declare const vueCoreOptionsKey: InjectionKey<VueCoreOptions>;
@@ -0,0 +1,17 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { Props } from '../data-table';
3
+ /**
4
+ * DataTable のアプリ既定の設定。vueCoreOptionsKey の dataTable で渡す。
5
+ * props のうちデータと表示の状態を除いた項目を持ち、DataTable の props に同じ名前の指定があればそちらが優先される
6
+ */
7
+ export type DataTableOptions = Partial<Omit<Props, 'dataList' | 'headers' | 'loading' | 'totalCount' | 'current' | 'limit'>>;
8
+ /** アプリ全体の設定 */
9
+ export type VueCoreOptions = {
10
+ /** DataTable のアプリ既定の設定 */
11
+ dataTable?: DataTableOptions;
12
+ };
13
+ /**
14
+ * アプリ全体の設定を provide/inject するためのキー
15
+ * provide は任意。画面の上位または app.provide で使う
16
+ */
17
+ export declare const vueCoreOptionsKey: InjectionKey<VueCoreOptions>;
package/lib/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./warning-popper.vue_vue_type_style_index_0_lang-CHmkjVCO.cjs"),e=require("vue"),F=require("@digitalwalletcorp/vue-svg-icons"),W="$index",x=o=>{const t=[];for(const n of o)if(n.csv===!0)t.push({header:n,column:{}});else if(Array.isArray(n.csv))for(const a of n.csv)a.disabled||t.push({header:n,column:a});return t},N=o=>x(o).map(({header:t,column:n})=>r.resolveLabel(n.label??t.label)),P=(o,t,n)=>x(o).map(({header:a,column:l})=>{if(l.format)return l.format(t);const s=l.key??a.id;return s===W?n:r.getValueByPath(t,s)}),z=e.defineComponent({__name:"floating-component",props:{open:{type:Boolean},title:{},anchor:{},dragMode:{},loading:{type:Boolean},closeLabel:{},copyValue:{type:[String,Number,Function]},copyLabel:{},closeOnDblClick:{type:Boolean},lockScroll:{type:Boolean},initialSize:{},headerClass:{type:[Boolean,null,String,Object,Array]},headerStyle:{type:[Boolean,null,String,Object,Array]}},emits:["update:open","emit:close"],setup(o,{emit:t}){const n=o,a=t,l=e.ref(),s=e.ref(r.nextWindowOrder()),c=()=>{s.value=r.nextWindowOrder()},d=()=>{n.closeOnDblClick&&a("update:open",!1)},i=()=>{const u=l.value;if(!u?.element)return;const p=u.element.getBoundingClientRect();let m=n.initialSize?.width??p.width;window.innerWidth<m&&(m=window.innerWidth*.9);let f=n.initialSize?.height??-1;window.innerHeight<f&&(f=window.innerHeight*.9),u.size.width=m,u.size.height=f;const b=document.documentElement.scrollLeft,v=document.documentElement.scrollTop;if(n.anchor){const M={width:m,height:0<=f?f:p.height},V={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight},k=r.computeAnchoredPosition(n.anchor.getBoundingClientRect(),M,V,{placement:"bottom-start",offset:0,margin:0,arrowMargin:0});u.position.x=k.left+b,u.position.y=k.top+v}else u.position.x=10+b,u.position.y=10+v};return e.onMounted(()=>{n.open&&i()}),(u,p)=>(e.openBlock(),e.createBlock(e.Transition,{name:"dwui-floating-component-fade",onAfterLeave:p[1]||(p[1]=m=>a("emit:close"))},{default:e.withCtx(()=>[n.open?(e.openBlock(),e.createBlock(r._sfc_main,{key:0,ref_key:"refWindow",ref:l,class:e.normalizeClass(["dwui-floating-component",{"dwui-lock-scroll":n.lockScroll}]),name:"dwui-floating-component",style:e.normalizeStyle({"--dwui-order-window":s.value}),"drag-mode":n.dragMode,loading:n.loading,"close-label":n.closeLabel,"clamp-bottom":!1,"header-class":n.headerClass,"header-style":n.headerStyle,onPointerdownCapture:c,onDblclick:d,"onEmit:close":p[0]||(p[0]=m=>a("update:open",!1))},e.createSlots({title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:2},[n.copyValue!=null?{name:"actions",fn:e.withCtx(()=>[e.createVNode(r._sfc_main$1,{class:"dwui-floating-component-copy-button",value:n.copyValue,"aria-label":n.copyLabel},null,8,["value","aria-label"])]),key:"0"}:void 0]),1032,["class","style","drag-mode","loading","close-label","header-class","header-style"])):e.createCommentVNode("",!0)]),_:3}))}});function S(o,t,n){const a=document.createElement("div");document.body.appendChild(a);const l=e.ref(!0),s=e.ref(!1),c={close:()=>{l.value=!1},setLoading:u=>{s.value=u}},d=e.defineComponent(()=>()=>o({open:l.value,loading:s.value,"onUpdate:open":u=>{l.value=u},"onEmit:close":()=>{n.delete(c),e.render(null,a),a.remove(),t.onClosed?.(),t.onClose?.()}},c)),i=e.h(d);return t.appContext&&(i.appContext=t.appContext),e.render(i,a),n.add(c),c}function $(o){const t=e.getCurrentInstance();if(!t)throw new Error(`${o}() must be called inside setup().`);const n=new Set;return e.onBeforeUnmount(()=>{for(const a of n)a.close()}),{appContext:t.appContext,own:a=>{const l=a(()=>{n.delete(l)});return n.add(l),l}}}const L=new Set,h=(o,t,n)=>{const{appContext:a,onClose:l,...s}=t??{};return S((c,d)=>e.h(z,{closeLabel:"Close",copyLabel:"Copy",closeOnDblClick:!1,lockScroll:!1,...s,...c},{default:()=>o(d)}),{appContext:a,onClose:l,onClosed:n},L)},E=(o,t)=>n=>e.h(o,{...t,...n}),_=o=>typeof o=="string"?o:JSON.stringify(o,null,2),D=(o,t)=>()=>t&&typeof o=="string"?e.h("div",{class:"dwui-floating-component-message",innerHTML:o}):e.h("div",{class:"dwui-floating-component-message"},_(o));function I(o,t,n){return h(E(o,t),n)}function H(o,t){const{html:n,...a}=t??{};return h(D(o,n),{copyValue:_(o),...a})}function R(){for(const o of[...L])o.close()}function j(){const o=$("useFloatingComponent"),t=n=>({appContext:o.appContext,...n});return{showFloatingComponent:(n,a,l)=>o.own(s=>h(E(n,a),t(l),s)),showFloatingMessage:(n,a)=>{const{html:l,...s}=a??{};return o.own(c=>h(D(n,l),t({copyValue:_(n),...s}),c))}}}function g(o,t){const{icon:n,appContext:a,...l}=t??{};return new Promise(s=>{const c=document.createElement("div");document.body.appendChild(c);const d=e.h(r._sfc_main$2,{...l,message:o,open:!0,"onEmit:close":i=>{e.render(null,c),c.remove(),s(i)}},n?{icon:()=>e.h(n)}:void 0);a&&(d.appContext=a),e.render(d,c)})}function q(o,t){return g(o,{...t,type:"info"})}function G(o,t){return g(o,{...t,type:"confirm"})}function U(o,t){return g(o,{...t,type:"warn"})}function J(o,t){return g(o,{...t,type:"error"})}const O=new Set,T=(o,t,n,a)=>{const{appContext:l,onClose:s,...c}=n??{};return S((d,i)=>e.h(r._sfc_main$3,{...c,...d},{default:()=>e.h(o,{...t,close:i.close,setLoading:i.setLoading})}),{appContext:l,onClose:s,onClosed:a},O)};function K(o,t,n){return T(o,t,n)}function X(){for(const o of[...O])o.close()}function Y(){const o=$("useOverlayBox");return{showOverlayBox:(t,n,a)=>o.own(l=>T(t,n,{appContext:o.appContext,...a},l))}}function Q(o){const t=document.createElement("div");document.body.appendChild(t);const n=()=>{e.render(null,t),t.remove()};return e.render(e.h(r._sfc_main$4,{...o,loading:!0}),t),{close:n}}const Z=["aria-label","title"],ee=["title","onClick"],ne={key:0,class:"dwui-snackbar-header"},oe={key:0,class:"dwui-snackbar-title"},te={key:1,class:"dwui-snackbar-label"},ae={class:"dwui-snackbar-message"},le={key:1,class:"dwui-snackbar-timestamp"},se=e.defineComponent({__name:"snackbar-container",props:{placement:{},direction:{},items:{}},emits:["emit:close","emit:clear","emit:afterLeave"],setup(o,{emit:t}){const n=o,a=t,l=e.computed(()=>{const[c,d="center"]=n.placement.split("-");return[`dwui-snackbar-container-${c}`,`dwui-snackbar-container-${d}`,`dwui-snackbar-container-${n.direction}`]}),s=e.computed(()=>n.items.filter(c=>c.clearable).at(-1)?.clearLabel);return(c,d)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{tag:"div",name:"dwui-snackbar-fade",class:e.normalizeClass(["dwui-snackbar-container",l.value]),role:"status",onAfterLeave:d[1]||(d[1]=i=>a("emit:afterLeave"))},{default:e.withCtx(()=>[s.value!=null?(e.openBlock(),e.createElementBlock("button",{key:"clear",type:"button",class:"dwui-snackbar-clear-button","aria-label":s.value,title:s.value,onClick:d[0]||(d[0]=i=>a("emit:clear"))},[e.createVNode(e.unref(F.SvgWastebasket))],8,Z)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,i=>(e.openBlock(),e.createElementBlock("button",{key:i.id,type:"button",class:e.normalizeClass(["dwui-snackbar",i.class]),style:e.normalizeStyle(i.style),title:i.message,onClick:u=>a("emit:close",i.id)},[i.title||i.label?(e.openBlock(),e.createElementBlock("span",ne,[i.title?(e.openBlock(),e.createElementBlock("span",oe,e.toDisplayString(i.title),1)):e.createCommentVNode("",!0),i.label?(e.openBlock(),e.createElementBlock("span",te,e.toDisplayString(i.label),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("span",ae,e.toDisplayString(i.message),1),i.timestamp?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(i.timestamp),1)):e.createCommentVNode("",!0)],14,ee))),128))]),_:1},8,["class"]))}}),re=50,w=new Map,y=new Map;let B=0;const C=(o,t,n)=>{const a=o.findIndex(s=>s.id===t);if(a<0)return;o.splice(a,1);const l=y.get(t);y.delete(t),clearTimeout(l?.timer),l?.onClose?.(n)},A=o=>{const t=o.map(n=>n.id);for(let n=0;n<t.length;n++)setTimeout(()=>C(o,t[n],"clear"),re*n)},ie=(o,t)=>{const n=`${o} ${t}`,a=w.get(n);if(a)return a;const l=document.createElement("div");document.body.appendChild(l);const s=e.shallowReactive([]);return w.set(n,s),e.render(e.h(se,{placement:o,direction:t,items:s,"onEmit:close":c=>C(s,c,"click"),"onEmit:clear":()=>A(s),"onEmit:afterLeave":()=>{s.length===0&&w.get(n)===s&&(w.delete(n),e.render(null,l),l.remove())}}),l),s};function ce(o,t){const{placement:n="bottom",direction:a="overlap",duration:l,clearable:s=!1,clearLabel:c="Clear all",onClose:d,...i}=t??{},u=ie(n,a);B+=1;const p=B;return u.push({...i,id:p,message:o,clearable:s,clearLabel:c}),y.set(p,{timer:l?setTimeout(()=>C(u,p,"duration"),l):void 0,onClose:d}),{close:()=>C(u,p,"handle")}}function de(){for(const o of w.values())A(o)}exports.AccordionFieldset=r._sfc_main$5;exports.AccordionSection=r._sfc_main$6;exports.CopyButton=r._sfc_main$1;exports.DarkModeSelector=r._sfc_main$7;exports.DataTable=r._sfc_main$8;exports.HelpButton=r._sfc_main$9;exports.HelpPopper=r._sfc_main$10;exports.HourglassLoading=r._sfc_main$11;exports.IntersectionLazyComponent=r._sfc_main$12;exports.LabelButton=r._sfc_main$13;exports.LabelIcon=r._sfc_main$14;exports.ModalDialog=r._sfc_main$2;exports.OverlayBox=r._sfc_main$3;exports.PageSection=r._sfc_main$15;exports.PageTitle=r._sfc_main$16;exports.ScreenLoading=r._sfc_main$4;exports.TabContent=r._sfc_main$17;exports.TabGroup=r._sfc_main$18;exports.WarningPopper=r._sfc_main$19;exports.closeAllFloatingComponents=R;exports.closeAllOverlayBoxes=X;exports.closeAllSnackbars=de;exports.headersToCsvColumns=N;exports.rowToCsvColumns=P;exports.showConfirmationDialog=G;exports.showErrorDialog=J;exports.showFloatingComponent=I;exports.showFloatingMessage=H;exports.showInformationDialog=q;exports.showModalDialog=g;exports.showOverlayBox=K;exports.showScreenLoading=Q;exports.showSnackbar=ce;exports.showWarningDialog=U;exports.useFloatingComponent=j;exports.useOverlayBox=Y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./warning-popper.vue_vue_type_style_index_0_lang-TYmLM_h9.cjs"),e=require("vue"),O=require("@digitalwalletcorp/vue-svg-icons"),T=e.defineComponent({__name:"floating-component",props:{open:{type:Boolean},title:{},anchor:{},dragMode:{},loading:{type:Boolean},closeLabel:{},copyValue:{type:[String,Number,Function]},copyLabel:{},closeOnDblClick:{type:Boolean},lockScroll:{type:Boolean},initialSize:{},headerClass:{type:[Boolean,null,String,Object,Array]},headerStyle:{type:[Boolean,null,String,Object,Array]}},emits:["update:open","emit:close"],setup(o,{emit:t}){const n=o,a=t,s=e.ref(),i=e.ref(l.nextWindowOrder()),c=()=>{i.value=l.nextWindowOrder()},d=()=>{n.closeOnDblClick&&a("update:open",!1)},r=()=>{const u=s.value;if(!u?.element)return;const m=u.element.getBoundingClientRect();let p=n.initialSize?.width??m.width;window.innerWidth<p&&(p=window.innerWidth*.9);let f=n.initialSize?.height??-1;window.innerHeight<f&&(f=window.innerHeight*.9),u.size.width=p,u.size.height=f;const b=document.documentElement.scrollLeft,k=document.documentElement.scrollTop;if(n.anchor){const D={width:p,height:0<=f?f:m.height},E={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight},v=l.computeAnchoredPosition(n.anchor.getBoundingClientRect(),D,E,{placement:"bottom-start",offset:0,margin:0,arrowMargin:0});u.position.x=v.left+b,u.position.y=v.top+k}else u.position.x=10+b,u.position.y=10+k};return e.onMounted(()=>{n.open&&r()}),(u,m)=>(e.openBlock(),e.createBlock(e.Transition,{name:"dwui-floating-component-fade",onAfterLeave:m[1]||(m[1]=p=>a("emit:close"))},{default:e.withCtx(()=>[n.open?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,ref_key:"refWindow",ref:s,class:e.normalizeClass(["dwui-floating-component",{"dwui-lock-scroll":n.lockScroll}]),name:"dwui-floating-component",style:e.normalizeStyle({"--dwui-order-window":i.value}),"drag-mode":n.dragMode,loading:n.loading,"close-label":n.closeLabel,"clamp-bottom":!1,"header-class":n.headerClass,"header-style":n.headerStyle,onPointerdownCapture:c,onDblclick:d,"onEmit:close":m[0]||(m[0]=p=>a("update:open",!1))},e.createSlots({title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:2},[n.copyValue!=null?{name:"actions",fn:e.withCtx(()=>[e.createVNode(l._sfc_main$1,{class:"dwui-floating-component-copy-button",value:n.copyValue,"aria-label":n.copyLabel},null,8,["value","aria-label"])]),key:"0"}:void 0]),1032,["class","style","drag-mode","loading","close-label","header-class","header-style"])):e.createCommentVNode("",!0)]),_:3}))}}),S=new Set,h=(o,t,n)=>{const{appContext:a,onClose:s,...i}=t??{};return l.mountWindow((c,d)=>e.h(T,{closeLabel:"Close",copyLabel:"Copy",closeOnDblClick:!1,lockScroll:!1,...i,...c},{default:()=>o(d)}),{appContext:a,onClose:s,onClosed:n},S)},$=(o,t)=>n=>e.h(o,{...t,...n}),C=o=>typeof o=="string"?o:JSON.stringify(o,null,2),x=(o,t)=>()=>t&&typeof o=="string"?e.h("div",{class:"dwui-floating-component-message",innerHTML:o}):e.h("div",{class:"dwui-floating-component-message"},C(o));function M(o,t,n){return h($(o,t),n)}function V(o,t){const{html:n,...a}=t??{};return h(x(o,n),{copyValue:C(o),...a})}function A(){for(const o of[...S])o.close()}function F(){const o=l.useWindowOwner("useFloatingComponent"),t=n=>({appContext:o.appContext,...n});return{showFloatingComponent:(n,a,s)=>o.own(i=>h($(n,a),t(s),i)),showFloatingMessage:(n,a)=>{const{html:s,...i}=a??{};return o.own(c=>h(x(n,s),t({copyValue:C(n),...i}),c))}}}function g(o,t){const{icon:n,appContext:a,...s}=t??{};return new Promise(i=>{const c=document.createElement("div");document.body.appendChild(c);const d=e.h(l._sfc_main$2,{...s,message:o,open:!0,"onEmit:close":r=>{e.render(null,c),c.remove(),i(r)}},n?{icon:()=>e.h(n)}:void 0);a&&(d.appContext=a),e.render(d,c)})}function W(o,t){return g(o,{...t,type:"info"})}function N(o,t){return g(o,{...t,type:"confirm"})}function z(o,t){return g(o,{...t,type:"warn"})}function P(o,t){return g(o,{...t,type:"error"})}function I(o){const t=document.createElement("div");document.body.appendChild(t);const n=()=>{e.render(null,t),t.remove()};return e.render(e.h(l._sfc_main$3,{...o,loading:!0}),t),{close:n}}const H=["aria-label","title"],R=["title","onClick"],j={key:0,class:"dwui-snackbar-header"},q={key:0,class:"dwui-snackbar-title"},G={key:1,class:"dwui-snackbar-label"},K={class:"dwui-snackbar-message"},J={key:1,class:"dwui-snackbar-timestamp"},Q=e.defineComponent({__name:"snackbar-container",props:{placement:{},direction:{},items:{}},emits:["emit:close","emit:clear","emit:afterLeave"],setup(o,{emit:t}){const n=o,a=t,s=e.computed(()=>{const[c,d="center"]=n.placement.split("-");return[`dwui-snackbar-container-${c}`,`dwui-snackbar-container-${d}`,`dwui-snackbar-container-${n.direction}`]}),i=e.computed(()=>n.items.filter(c=>c.clearable).at(-1)?.clearLabel);return(c,d)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{tag:"div",name:"dwui-snackbar-fade",class:e.normalizeClass(["dwui-snackbar-container",s.value]),role:"status",onAfterLeave:d[1]||(d[1]=r=>a("emit:afterLeave"))},{default:e.withCtx(()=>[i.value!=null?(e.openBlock(),e.createElementBlock("button",{key:"clear",type:"button",class:"dwui-snackbar-clear-button","aria-label":i.value,title:i.value,onClick:d[0]||(d[0]=r=>a("emit:clear"))},[e.createVNode(e.unref(O.SvgWastebasket))],8,H)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("button",{key:r.id,type:"button",class:e.normalizeClass(["dwui-snackbar",r.class]),style:e.normalizeStyle(r.style),title:r.message,onClick:u=>a("emit:close",r.id)},[r.title||r.label?(e.openBlock(),e.createElementBlock("span",j,[r.title?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(r.title),1)):e.createCommentVNode("",!0),r.label?(e.openBlock(),e.createElementBlock("span",G,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("span",K,e.toDisplayString(r.message),1),r.timestamp?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(r.timestamp),1)):e.createCommentVNode("",!0)],14,R))),128))]),_:1},8,["class"]))}}),U=50,w=new Map,y=new Map;let B=0;const _=(o,t,n)=>{const a=o.findIndex(i=>i.id===t);if(a<0)return;o.splice(a,1);const s=y.get(t);y.delete(t),clearTimeout(s?.timer),s?.onClose?.(n)},L=o=>{const t=o.map(n=>n.id);for(let n=0;n<t.length;n++)setTimeout(()=>_(o,t[n],"clear"),U*n)},X=(o,t)=>{const n=`${o} ${t}`,a=w.get(n);if(a)return a;const s=document.createElement("div");document.body.appendChild(s);const i=e.shallowReactive([]);return w.set(n,i),e.render(e.h(Q,{placement:o,direction:t,items:i,"onEmit:close":c=>_(i,c,"click"),"onEmit:clear":()=>L(i),"onEmit:afterLeave":()=>{i.length===0&&w.get(n)===i&&(w.delete(n),e.render(null,s),s.remove())}}),s),i};function Y(o,t){const{placement:n="bottom",direction:a="overlap",duration:s,clearable:i=!1,clearLabel:c="Clear all",onClose:d,...r}=t??{},u=X(n,a);B+=1;const m=B;return u.push({...r,id:m,message:o,clearable:i,clearLabel:c}),y.set(m,{timer:s?setTimeout(()=>_(u,m,"duration"),s):void 0,onClose:d}),{close:()=>_(u,m,"handle")}}function Z(){for(const o of w.values())L(o)}exports.AccordionFieldset=l._sfc_main$4;exports.AccordionSection=l._sfc_main$5;exports.CopyButton=l._sfc_main$1;exports.DarkModeSelector=l._sfc_main$6;exports.DataTable=l._sfc_main$7;exports.HelpButton=l._sfc_main$8;exports.HelpPopper=l._sfc_main$9;exports.HourglassLoading=l._sfc_main$10;exports.IntersectionLazyComponent=l._sfc_main$11;exports.LabelButton=l._sfc_main$12;exports.LabelIcon=l._sfc_main$13;exports.ModalDialog=l._sfc_main$2;exports.OverlayBox=l._sfc_main$14;exports.PageSection=l._sfc_main$15;exports.PageTitle=l._sfc_main$16;exports.ScreenLoading=l._sfc_main$3;exports.TabContent=l._sfc_main$17;exports.TabGroup=l._sfc_main$18;exports.WarningPopper=l._sfc_main$19;exports.closeAllOverlayBoxes=l.closeAllOverlayBoxes;exports.headersToCsvColumns=l.headersToCsvColumns;exports.rowToCsvColumns=l.rowToCsvColumns;exports.showOverlayBox=l.showOverlayBox;exports.useOverlayBox=l.useOverlayBox;exports.vueCoreOptionsKey=l.vueCoreOptionsKey;exports.closeAllFloatingComponents=A;exports.closeAllSnackbars=Z;exports.showConfirmationDialog=N;exports.showErrorDialog=P;exports.showFloatingComponent=M;exports.showFloatingMessage=V;exports.showInformationDialog=W;exports.showModalDialog=g;exports.showScreenLoading=I;exports.showSnackbar=Y;exports.showWarningDialog=z;exports.useFloatingComponent=F;
package/lib/index.d.cts CHANGED
@@ -2,13 +2,14 @@ export * from './components.cjs';
2
2
  export type { Props as AccordionFieldsetProps, Slots as AccordionFieldsetSlots } from './accordion-fieldset.cjs';
3
3
  export type { Props as AccordionSectionProps, Slots as AccordionSectionSlots } from './accordion-section.cjs';
4
4
  export type { Props as CopyButtonProps, Emits as CopyButtonEmits, Slots as CopyButtonSlots } from './copy-button.cjs';
5
+ export type { Props as DataTableProps, Emits as DataTableEmits, Slots as DataTableSlots } from './data-table.cjs';
5
6
  export type { Props as DarkModeSelectorProps, Emits as DarkModeSelectorEmits, Slots as DarkModeSelectorSlots } from './dark-mode-selector.cjs';
6
7
  export type { Props as HelpButtonProps, Emits as HelpButtonEmits, Slots as HelpButtonSlots } from './help-button.cjs';
7
8
  export type { Props as HelpPopperProps, Emits as HelpPopperEmits, Slots as HelpPopperSlots } from './help-popper.cjs';
8
9
  export type { Props as HourglassLoadingProps } from './hourglass-loading.cjs';
9
10
  export type { Props as IntersectionLazyComponentProps, Emits as IntersectionLazyComponentEmits, Slots as IntersectionLazyComponentSlots } from './intersection-lazy-component.cjs';
10
11
  export type { Props as LabelButtonProps, Slots as LabelButtonSlots } from './label-button.cjs';
11
- export type { Props as LabelIconProps, Slots as LabelIconSlots } from './label-icon.cjs';
12
+ export type { Props as LabelIconProps, Slots as LabelIconSlots, LabelPreset } from './label-icon.cjs';
12
13
  export type { Props as ModalDialogProps, Emits as ModalDialogEmits, Slots as ModalDialogSlots } from './modal-dialog.cjs';
13
14
  export type { Props as OverlayBoxProps, Emits as OverlayBoxEmits, Slots as OverlayBoxSlots } from './overlay-box.cjs';
14
15
  export type { Props as PageSectionProps, Slots as PageSectionSlots } from './page-section.cjs';
@@ -17,21 +18,20 @@ export type { Props as ScreenLoadingProps } from './screen-loading.cjs';
17
18
  export type { Props as TabContentProps, Slots as TabContentSlots } from './tab-content.cjs';
18
19
  export type { Props as TabGroupProps, Slots as TabGroupSlots } from './tab-group.cjs';
19
20
  export type { Props as WarningPopperProps, Emits as WarningPopperEmits, Slots as WarningPopperSlots } from './warning-popper.cjs';
20
- export { headersToCsvColumns, rowToCsvColumns } from './helpers/data-table-csv.cjs';
21
- export type { DataTableControlsPlacement, DataTableCsvColumn, DataTableEmits, DataTableHeader, DataTableLabels, DataTableProps, DataTableResolvedLabels, DataTableSlots, DataTableSortContext, DataTableSortMode, DataTableValueType } from './types/data-table.cjs';
22
- export { closeAllFloatingComponents, showFloatingComponent, showFloatingMessage, useFloatingComponent } from './helpers/show-floating-component.cjs';
23
- export type { FloatingComponentContentProps, FloatingComponentHandle, ShowFloatingComponentOptions, ShowFloatingMessageOptions } from './helpers/show-floating-component.cjs';
24
- export { showConfirmationDialog, showErrorDialog, showInformationDialog, showModalDialog, showWarningDialog } from './helpers/show-modal-dialog.cjs';
25
- export type { ShowModalDialogOptions } from './helpers/show-modal-dialog.cjs';
26
- export type { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType } from './types/modal-dialog.cjs';
27
- export { closeAllOverlayBoxes, showOverlayBox, useOverlayBox } from './helpers/show-overlay-box.cjs';
28
- export type { OverlayBoxContentProps, OverlayBoxHandle, ShowOverlayBoxOptions } from './helpers/show-overlay-box.cjs';
29
- export { showScreenLoading } from './helpers/show-screen-loading.cjs';
30
- export type { ScreenLoadingHandle, ShowScreenLoadingOptions } from './helpers/show-screen-loading.cjs';
31
- export { closeAllSnackbars, showSnackbar } from './helpers/show-snackbar.cjs';
32
- export type { ShowSnackbarOptions, SnackbarCloseReason, SnackbarHandle } from './helpers/show-snackbar.cjs';
33
- export type { SnackbarDirection, SnackbarPlacement } from './internal/snackbar-item.cjs';
34
- export type { LabelPreset } from './types/label-preset.cjs';
35
- export type { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from './types/movable-window.cjs';
36
- export type { TabContentStatus } from './internal/tab-group-context.cjs';
21
+ export { headersToCsvColumns, rowToCsvColumns } from './helpers/data-table.cjs';
22
+ export type { DataTableControlsPlacement, DataTableCsvColumn, DataTableHeader, DataTableLabels, DataTableResolvedLabels, DataTableSortContext, DataTableSortMode, DataTableValueType } from './helpers/data-table.cjs';
23
+ export { closeAllFloatingComponents, showFloatingComponent, showFloatingMessage, useFloatingComponent } from './helpers/floating-component.cjs';
24
+ export type { FloatingComponentContentProps, FloatingComponentHandle, ShowFloatingComponentOptions, ShowFloatingMessageOptions } from './helpers/floating-component.cjs';
25
+ export { showConfirmationDialog, showErrorDialog, showInformationDialog, showModalDialog, showWarningDialog } from './helpers/modal-dialog.cjs';
26
+ export type { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType, ShowModalDialogOptions } from './helpers/modal-dialog.cjs';
27
+ export { closeAllOverlayBoxes, showOverlayBox, useOverlayBox } from './helpers/overlay-box.cjs';
28
+ export type { OverlayBoxContentProps, OverlayBoxHandle, ShowOverlayBoxOptions } from './helpers/overlay-box.cjs';
29
+ export { showScreenLoading } from './helpers/screen-loading.cjs';
30
+ export type { ScreenLoadingHandle, ShowScreenLoadingOptions } from './helpers/screen-loading.cjs';
31
+ export { closeAllSnackbars, showSnackbar } from './helpers/snackbar.cjs';
32
+ export type { ShowSnackbarOptions, SnackbarCloseReason, SnackbarDirection, SnackbarHandle, SnackbarPlacement } from './helpers/snackbar.cjs';
33
+ export type { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from './internal/window-control.cjs';
34
+ export type { TabContentStatus } from './internal/tab-group.cjs';
35
+ export { vueCoreOptionsKey } from './helpers/vue-core-options.cjs';
36
+ export type { DataTableOptions, VueCoreOptions } from './helpers/vue-core-options.cjs';
37
37
  export type { PopoverPlacement } from './internal/anchored-position.cjs';
package/lib/index.d.ts CHANGED
@@ -2,13 +2,14 @@ export * from './components';
2
2
  export type { Props as AccordionFieldsetProps, Slots as AccordionFieldsetSlots } from './accordion-fieldset';
3
3
  export type { Props as AccordionSectionProps, Slots as AccordionSectionSlots } from './accordion-section';
4
4
  export type { Props as CopyButtonProps, Emits as CopyButtonEmits, Slots as CopyButtonSlots } from './copy-button';
5
+ export type { Props as DataTableProps, Emits as DataTableEmits, Slots as DataTableSlots } from './data-table';
5
6
  export type { Props as DarkModeSelectorProps, Emits as DarkModeSelectorEmits, Slots as DarkModeSelectorSlots } from './dark-mode-selector';
6
7
  export type { Props as HelpButtonProps, Emits as HelpButtonEmits, Slots as HelpButtonSlots } from './help-button';
7
8
  export type { Props as HelpPopperProps, Emits as HelpPopperEmits, Slots as HelpPopperSlots } from './help-popper';
8
9
  export type { Props as HourglassLoadingProps } from './hourglass-loading';
9
10
  export type { Props as IntersectionLazyComponentProps, Emits as IntersectionLazyComponentEmits, Slots as IntersectionLazyComponentSlots } from './intersection-lazy-component';
10
11
  export type { Props as LabelButtonProps, Slots as LabelButtonSlots } from './label-button';
11
- export type { Props as LabelIconProps, Slots as LabelIconSlots } from './label-icon';
12
+ export type { Props as LabelIconProps, Slots as LabelIconSlots, LabelPreset } from './label-icon';
12
13
  export type { Props as ModalDialogProps, Emits as ModalDialogEmits, Slots as ModalDialogSlots } from './modal-dialog';
13
14
  export type { Props as OverlayBoxProps, Emits as OverlayBoxEmits, Slots as OverlayBoxSlots } from './overlay-box';
14
15
  export type { Props as PageSectionProps, Slots as PageSectionSlots } from './page-section';
@@ -17,21 +18,20 @@ export type { Props as ScreenLoadingProps } from './screen-loading';
17
18
  export type { Props as TabContentProps, Slots as TabContentSlots } from './tab-content';
18
19
  export type { Props as TabGroupProps, Slots as TabGroupSlots } from './tab-group';
19
20
  export type { Props as WarningPopperProps, Emits as WarningPopperEmits, Slots as WarningPopperSlots } from './warning-popper';
20
- export { headersToCsvColumns, rowToCsvColumns } from './helpers/data-table-csv';
21
- export type { DataTableControlsPlacement, DataTableCsvColumn, DataTableEmits, DataTableHeader, DataTableLabels, DataTableProps, DataTableResolvedLabels, DataTableSlots, DataTableSortContext, DataTableSortMode, DataTableValueType } from './types/data-table';
22
- export { closeAllFloatingComponents, showFloatingComponent, showFloatingMessage, useFloatingComponent } from './helpers/show-floating-component';
23
- export type { FloatingComponentContentProps, FloatingComponentHandle, ShowFloatingComponentOptions, ShowFloatingMessageOptions } from './helpers/show-floating-component';
24
- export { showConfirmationDialog, showErrorDialog, showInformationDialog, showModalDialog, showWarningDialog } from './helpers/show-modal-dialog';
25
- export type { ShowModalDialogOptions } from './helpers/show-modal-dialog';
26
- export type { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType } from './types/modal-dialog';
27
- export { closeAllOverlayBoxes, showOverlayBox, useOverlayBox } from './helpers/show-overlay-box';
28
- export type { OverlayBoxContentProps, OverlayBoxHandle, ShowOverlayBoxOptions } from './helpers/show-overlay-box';
29
- export { showScreenLoading } from './helpers/show-screen-loading';
30
- export type { ScreenLoadingHandle, ShowScreenLoadingOptions } from './helpers/show-screen-loading';
31
- export { closeAllSnackbars, showSnackbar } from './helpers/show-snackbar';
32
- export type { ShowSnackbarOptions, SnackbarCloseReason, SnackbarHandle } from './helpers/show-snackbar';
33
- export type { SnackbarDirection, SnackbarPlacement } from './internal/snackbar-item';
34
- export type { LabelPreset } from './types/label-preset';
35
- export type { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from './types/movable-window';
36
- export type { TabContentStatus } from './internal/tab-group-context';
21
+ export { headersToCsvColumns, rowToCsvColumns } from './helpers/data-table';
22
+ export type { DataTableControlsPlacement, DataTableCsvColumn, DataTableHeader, DataTableLabels, DataTableResolvedLabels, DataTableSortContext, DataTableSortMode, DataTableValueType } from './helpers/data-table';
23
+ export { closeAllFloatingComponents, showFloatingComponent, showFloatingMessage, useFloatingComponent } from './helpers/floating-component';
24
+ export type { FloatingComponentContentProps, FloatingComponentHandle, ShowFloatingComponentOptions, ShowFloatingMessageOptions } from './helpers/floating-component';
25
+ export { showConfirmationDialog, showErrorDialog, showInformationDialog, showModalDialog, showWarningDialog } from './helpers/modal-dialog';
26
+ export type { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType, ShowModalDialogOptions } from './helpers/modal-dialog';
27
+ export { closeAllOverlayBoxes, showOverlayBox, useOverlayBox } from './helpers/overlay-box';
28
+ export type { OverlayBoxContentProps, OverlayBoxHandle, ShowOverlayBoxOptions } from './helpers/overlay-box';
29
+ export { showScreenLoading } from './helpers/screen-loading';
30
+ export type { ScreenLoadingHandle, ShowScreenLoadingOptions } from './helpers/screen-loading';
31
+ export { closeAllSnackbars, showSnackbar } from './helpers/snackbar';
32
+ export type { ShowSnackbarOptions, SnackbarCloseReason, SnackbarDirection, SnackbarHandle, SnackbarPlacement } from './helpers/snackbar';
33
+ export type { MovableWindowContentProps, MovableWindowDragMode, MovableWindowHandle } from './internal/window-control';
34
+ export type { TabContentStatus } from './internal/tab-group';
35
+ export { vueCoreOptionsKey } from './helpers/vue-core-options';
36
+ export type { DataTableOptions, VueCoreOptions } from './helpers/vue-core-options';
37
37
  export type { PopoverPlacement } from './internal/anchored-position';