@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,32 +0,0 @@
1
- import { DataTableValueType } from '../types/data-table.cjs';
2
- /**
3
- * ドット区切りのパスで入れ子の値を取り出す。途中が null なら undefined
4
- *
5
- * @param {unknown} obj
6
- * @param {string} path 'a.b.c' の形。'a[0].b' は 'a.0.b' と同じ
7
- * @returns {unknown}
8
- */
9
- export declare const getValueByPath: (obj: unknown, path: string) => unknown;
10
- /**
11
- * 文字列または文字列を返す関数から文字列を得る
12
- *
13
- * @param {string | (() => string)} label
14
- * @returns {string}
15
- */
16
- export declare const resolveLabel: (label: string | (() => string) | undefined) => string;
17
- /**
18
- * 型に応じて2つの値を比較する。null / undefined は最小として扱う
19
- *
20
- * @param {unknown} a
21
- * @param {unknown} b
22
- * @param {DataTableValueType} type
23
- * @returns {number} a が前なら負の数、後ろなら正の数、等しければ 0
24
- */
25
- export declare const compareValues: (a: unknown, b: unknown, type: DataTableValueType) => number;
26
- /**
27
- * 行の同一性の判定に使う文字列にする。bigint は文字列にし、循環参照は空文字にする
28
- *
29
- * @param {unknown} value
30
- * @returns {string}
31
- */
32
- export declare const stringifyValue: (value: unknown) => string;
@@ -1,32 +0,0 @@
1
- import { DataTableValueType } from '../types/data-table';
2
- /**
3
- * ドット区切りのパスで入れ子の値を取り出す。途中が null なら undefined
4
- *
5
- * @param {unknown} obj
6
- * @param {string} path 'a.b.c' の形。'a[0].b' は 'a.0.b' と同じ
7
- * @returns {unknown}
8
- */
9
- export declare const getValueByPath: (obj: unknown, path: string) => unknown;
10
- /**
11
- * 文字列または文字列を返す関数から文字列を得る
12
- *
13
- * @param {string | (() => string)} label
14
- * @returns {string}
15
- */
16
- export declare const resolveLabel: (label: string | (() => string) | undefined) => string;
17
- /**
18
- * 型に応じて2つの値を比較する。null / undefined は最小として扱う
19
- *
20
- * @param {unknown} a
21
- * @param {unknown} b
22
- * @param {DataTableValueType} type
23
- * @returns {number} a が前なら負の数、後ろなら正の数、等しければ 0
24
- */
25
- export declare const compareValues: (a: unknown, b: unknown, type: DataTableValueType) => number;
26
- /**
27
- * 行の同一性の判定に使う文字列にする。bigint は文字列にし、循環参照は空文字にする
28
- *
29
- * @param {unknown} value
30
- * @returns {string}
31
- */
32
- export declare const stringifyValue: (value: unknown) => string;
@@ -1,2 +0,0 @@
1
- /** 開いている OverlayBox を開いた順に持つ。Esc では最後に開いたものだけを閉じる */
2
- export declare const openedOverlayBoxes: symbol[];
@@ -1,2 +0,0 @@
1
- /** 開いている OverlayBox を開いた順に持つ。Esc では最後に開いたものだけを閉じる */
2
- export declare const openedOverlayBoxes: symbol[];
@@ -1,17 +0,0 @@
1
- import { ClassValue, StyleValue } from 'vue';
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
- }
@@ -1,17 +0,0 @@
1
- import { ClassValue, StyleValue } from 'vue';
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
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * ウィンドウ(OverlayBox / FloatingComponent)の重なり順を返す。後から呼んだものほど大きく、前面に出る
3
- *
4
- * @returns {number}
5
- */
6
- export declare const nextWindowOrder: () => number;
@@ -1,6 +0,0 @@
1
- /**
2
- * ウィンドウ(OverlayBox / FloatingComponent)の重なり順を返す。後から呼んだものほど大きく、前面に出る
3
- *
4
- * @returns {number}
5
- */
6
- export declare const nextWindowOrder: () => number;
@@ -1,12 +0,0 @@
1
- import { Component } from 'vue';
2
- /**
3
- * アイコンとラベルの組み合わせ
4
- */
5
- export interface LabelPreset {
6
- /** アイコンのコンポーネント */
7
- icon: Component;
8
- /** アイコンに渡すProps */
9
- iconProps?: Record<string, unknown>;
10
- /** ラベル。言語切替に追従させる場合は、描画のたびに呼ばれる関数で渡す */
11
- label: string | (() => string);
12
- }
@@ -1,12 +0,0 @@
1
- import { Component } from 'vue';
2
- /**
3
- * アイコンとラベルの組み合わせ
4
- */
5
- export interface LabelPreset {
6
- /** アイコンのコンポーネント */
7
- icon: Component;
8
- /** アイコンに渡すProps */
9
- iconProps?: Record<string, unknown>;
10
- /** ラベル。言語切替に追従させる場合は、描画のたびに呼ばれる関数で渡す */
11
- label: string | (() => string);
12
- }
@@ -1,13 +0,0 @@
1
- /** モーダルダイアログの種類 */
2
- export type ModalDialogType = 'info' | 'confirm' | 'warn' | 'error';
3
- /** モーダルダイアログに並べるボタンの種類 */
4
- export type ModalDialogButton = 'ok' | 'yes' | 'no' | 'cancel';
5
- /** モーダルダイアログを閉じたボタン。Esc で閉じたときは cancel */
6
- export type ModalDialogResult = ModalDialogButton;
7
- /** モーダルダイアログに表示する画像。文字列は画像の URL */
8
- export type ModalDialogImage = string | {
9
- /** 画像の URL */
10
- src: string;
11
- /** 代替テキスト */
12
- alt: string;
13
- };
@@ -1,13 +0,0 @@
1
- /** モーダルダイアログの種類 */
2
- export type ModalDialogType = 'info' | 'confirm' | 'warn' | 'error';
3
- /** モーダルダイアログに並べるボタンの種類 */
4
- export type ModalDialogButton = 'ok' | 'yes' | 'no' | 'cancel';
5
- /** モーダルダイアログを閉じたボタン。Esc で閉じたときは cancel */
6
- export type ModalDialogResult = ModalDialogButton;
7
- /** モーダルダイアログに表示する画像。文字列は画像の URL */
8
- export type ModalDialogImage = string | {
9
- /** 画像の URL */
10
- src: string;
11
- /** 代替テキスト */
12
- alt: string;
13
- };
@@ -1,16 +0,0 @@
1
- /** ドラッグで移動するときに掴む範囲。body はウィンドウ全体、header は見出しだけ */
2
- export type MovableWindowDragMode = 'body' | 'header';
3
- /** showOverlayBox / showFloatingComponent が中身のコンポーネントに props として渡す関数 */
4
- export interface MovableWindowContentProps {
5
- /** ウィンドウを閉じる */
6
- close: () => void;
7
- /** ウィンドウのローディング表示を切り替える */
8
- setLoading: (loading: boolean) => void;
9
- }
10
- /** showOverlayBox / showFloatingComponent が返す、表示中のウィンドウを操作するためのハンドル */
11
- export interface MovableWindowHandle {
12
- /** ウィンドウを閉じ、閉じ終わったら取り外す */
13
- close: () => void;
14
- /** ウィンドウのローディング表示を切り替える */
15
- setLoading: (loading: boolean) => void;
16
- }
@@ -1,16 +0,0 @@
1
- /** ドラッグで移動するときに掴む範囲。body はウィンドウ全体、header は見出しだけ */
2
- export type MovableWindowDragMode = 'body' | 'header';
3
- /** showOverlayBox / showFloatingComponent が中身のコンポーネントに props として渡す関数 */
4
- export interface MovableWindowContentProps {
5
- /** ウィンドウを閉じる */
6
- close: () => void;
7
- /** ウィンドウのローディング表示を切り替える */
8
- setLoading: (loading: boolean) => void;
9
- }
10
- /** showOverlayBox / showFloatingComponent が返す、表示中のウィンドウを操作するためのハンドル */
11
- export interface MovableWindowHandle {
12
- /** ウィンドウを閉じ、閉じ終わったら取り外す */
13
- close: () => void;
14
- /** ウィンドウのローディング表示を切り替える */
15
- setLoading: (loading: boolean) => void;
16
- }