@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.
- package/README.md +36 -0
- package/lib/accordion-section.d.cts +1 -1
- package/lib/accordion-section.d.ts +1 -1
- package/lib/components-BCJWnExf.cjs +1 -0
- package/lib/{components-BuTJ1wX8.js → components-CDIhw5uP.js} +5 -5
- package/lib/data-table.d.cts +101 -8
- package/lib/data-table.d.ts +101 -8
- package/lib/{types → helpers}/data-table.d.cts +47 -93
- package/lib/{types → helpers}/data-table.d.ts +47 -93
- package/lib/helpers/{show-floating-component.d.cts → floating-component.d.cts} +1 -1
- package/lib/helpers/{show-floating-component.d.ts → floating-component.d.ts} +1 -1
- package/lib/helpers/{show-modal-dialog.d.cts → modal-dialog.d.cts} +13 -1
- package/lib/helpers/{show-modal-dialog.d.ts → modal-dialog.d.ts} +13 -1
- package/lib/helpers/{show-overlay-box.d.ts → overlay-box.d.cts} +3 -1
- package/lib/helpers/{show-overlay-box.d.cts → overlay-box.d.ts} +3 -1
- package/lib/helpers/{show-snackbar.d.cts → snackbar.d.cts} +16 -1
- package/lib/helpers/{show-snackbar.d.ts → snackbar.d.ts} +16 -1
- package/lib/helpers/vue-core-options.d.cts +17 -0
- package/lib/helpers/vue-core-options.d.ts +17 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +18 -18
- package/lib/index.d.ts +18 -18
- package/lib/index.js +187 -270
- package/lib/internal/data-table-controls.d.cts +3 -3
- package/lib/internal/data-table-controls.d.ts +3 -3
- package/lib/internal/floating-component.d.cts +1 -1
- package/lib/internal/floating-component.d.ts +1 -1
- package/lib/internal/movable-window.d.cts +1 -1
- package/lib/internal/movable-window.d.ts +1 -1
- package/lib/internal/pagination.d.cts +1 -1
- package/lib/internal/pagination.d.ts +1 -1
- package/lib/internal/snackbar-container.d.cts +1 -1
- package/lib/internal/snackbar-container.d.ts +1 -1
- package/lib/internal/use-movable-window.d.cts +1 -1
- package/lib/internal/use-movable-window.d.ts +1 -1
- package/lib/internal/{mount-window.d.cts → window-control.d.cts} +22 -1
- package/lib/internal/{mount-window.d.ts → window-control.d.ts} +22 -1
- package/lib/label-button.d.cts +1 -1
- package/lib/label-button.d.ts +1 -1
- package/lib/label-icon.d.cts +12 -2
- package/lib/label-icon.d.ts +12 -2
- package/lib/modal-dialog.d.cts +1 -1
- package/lib/modal-dialog.d.ts +1 -1
- package/lib/nuxt.cjs +1 -1
- package/lib/nuxt.js +1 -1
- package/lib/overlay-box.d.cts +1 -1
- package/lib/overlay-box.d.ts +1 -1
- package/lib/register.cjs +1 -1
- package/lib/register.js +1 -1
- package/lib/tab-content.d.cts +1 -1
- package/lib/tab-content.d.ts +1 -1
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-BJxLA6aU.js +1954 -0
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-TYmLM_h9.cjs +1 -0
- package/package.json +1 -1
- package/src/accordion-section.vue +1 -1
- package/src/data-table.vue +189 -49
- package/src/helpers/data-table.ts +250 -0
- package/src/helpers/{show-floating-component.ts → floating-component.ts} +2 -2
- package/src/helpers/{show-modal-dialog.ts → modal-dialog.ts} +17 -1
- package/src/helpers/{show-overlay-box.ts → overlay-box.ts} +5 -2
- package/src/helpers/{show-snackbar.ts → snackbar.ts} +19 -1
- package/src/helpers/vue-core-options.ts +20 -0
- package/src/index.ts +18 -18
- package/src/internal/data-table-controls.vue +1 -1
- package/src/internal/floating-component.vue +2 -2
- package/src/internal/movable-window.vue +1 -1
- package/src/internal/pagination.vue +1 -1
- package/src/internal/snackbar-container.vue +1 -1
- package/src/internal/use-movable-window.ts +1 -1
- package/src/internal/{mount-window.ts → window-control.ts} +31 -1
- package/src/label-button.vue +1 -1
- package/src/label-icon.vue +13 -2
- package/src/modal-dialog.vue +1 -1
- package/src/overlay-box.vue +3 -3
- package/src/tab-content.vue +2 -2
- package/src/tab-group.vue +2 -2
- package/lib/components-CKql5lWg.cjs +0 -1
- package/lib/helpers/data-table-csv.d.cts +0 -17
- package/lib/helpers/data-table-csv.d.ts +0 -17
- package/lib/internal/data-table-value.d.cts +0 -32
- package/lib/internal/data-table-value.d.ts +0 -32
- package/lib/internal/opened-overlay-boxes.d.cts +0 -2
- package/lib/internal/opened-overlay-boxes.d.ts +0 -2
- package/lib/internal/snackbar-item.d.cts +0 -17
- package/lib/internal/snackbar-item.d.ts +0 -17
- package/lib/internal/window-order.d.cts +0 -6
- package/lib/internal/window-order.d.ts +0 -6
- package/lib/types/label-preset.d.cts +0 -12
- package/lib/types/label-preset.d.ts +0 -12
- package/lib/types/modal-dialog.d.cts +0 -13
- package/lib/types/modal-dialog.d.ts +0 -13
- package/lib/types/movable-window.d.cts +0 -16
- package/lib/types/movable-window.d.ts +0 -16
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-BKV_FX6k.js +0 -1837
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-CHmkjVCO.cjs +0 -1
- package/src/helpers/data-table-csv.ts +0 -55
- package/src/internal/data-table-value.ts +0 -99
- package/src/internal/opened-overlay-boxes.ts +0 -2
- package/src/internal/snackbar-item.ts +0 -20
- package/src/internal/window-order.ts +0 -11
- package/src/types/data-table.ts +0 -196
- package/src/types/label-preset.ts +0 -13
- package/src/types/modal-dialog.ts +0 -16
- package/src/types/movable-window.ts +0 -18
- /package/lib/helpers/{show-screen-loading.d.cts → screen-loading.d.cts} +0 -0
- /package/lib/helpers/{show-screen-loading.d.ts → screen-loading.d.ts} +0 -0
- /package/lib/internal/{tab-group-context.d.cts → tab-group.d.cts} +0 -0
- /package/lib/internal/{tab-group-context.d.ts → tab-group.d.ts} +0 -0
- /package/src/helpers/{show-screen-loading.ts → screen-loading.ts} +0 -0
- /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,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,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
|
-
}
|