@digitalwalletcorp/vue-core 1.2.1 → 1.3.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 (188) hide show
  1. package/README.md +79 -3
  2. package/lib/accordion-fieldset.d.cts +14 -4
  3. package/lib/accordion-fieldset.d.ts +14 -4
  4. package/lib/accordion-section.d.cts +20 -10
  5. package/lib/accordion-section.d.ts +20 -10
  6. package/lib/components-BuTJ1wX8.js +26 -0
  7. package/lib/components-CKql5lWg.cjs +1 -0
  8. package/lib/components.d.cts +10 -0
  9. package/lib/components.d.ts +10 -0
  10. package/lib/copy-button.d.cts +34 -0
  11. package/lib/copy-button.d.ts +34 -0
  12. package/lib/dark-mode-selector.d.cts +32 -0
  13. package/lib/dark-mode-selector.d.ts +32 -0
  14. package/lib/data-table.d.cts +29 -0
  15. package/lib/data-table.d.ts +29 -0
  16. package/lib/help-button.d.cts +39 -0
  17. package/lib/help-button.d.ts +39 -0
  18. package/lib/help-popper.d.cts +39 -0
  19. package/lib/help-popper.d.ts +39 -0
  20. package/lib/helpers/data-table-csv.d.cts +17 -0
  21. package/lib/helpers/data-table-csv.d.ts +17 -0
  22. package/lib/helpers/show-floating-component.d.cts +86 -0
  23. package/lib/helpers/show-floating-component.d.ts +86 -0
  24. package/lib/helpers/show-modal-dialog.d.cts +73 -0
  25. package/lib/helpers/show-modal-dialog.d.ts +73 -0
  26. package/lib/helpers/show-overlay-box.d.cts +53 -0
  27. package/lib/helpers/show-overlay-box.d.ts +53 -0
  28. package/lib/helpers/show-screen-loading.d.cts +20 -0
  29. package/lib/helpers/show-screen-loading.d.ts +20 -0
  30. package/lib/helpers/show-snackbar.d.cts +47 -0
  31. package/lib/helpers/show-snackbar.d.ts +47 -0
  32. package/lib/hourglass-loading.d.cts +1 -1
  33. package/lib/hourglass-loading.d.ts +1 -1
  34. package/lib/index.cjs +1 -1
  35. package/lib/index.d.cts +34 -0
  36. package/lib/index.d.ts +34 -0
  37. package/lib/index.js +445 -18
  38. package/lib/internal/anchored-popover.d.cts +35 -0
  39. package/lib/internal/anchored-popover.d.ts +35 -0
  40. package/lib/internal/anchored-position.d.cts +50 -0
  41. package/lib/internal/anchored-position.d.ts +50 -0
  42. package/lib/internal/data-table-controls.d.cts +42 -0
  43. package/lib/internal/data-table-controls.d.ts +42 -0
  44. package/lib/internal/data-table-value.d.cts +32 -0
  45. package/lib/internal/data-table-value.d.ts +32 -0
  46. package/lib/internal/floating-component.d.cts +52 -0
  47. package/lib/internal/floating-component.d.ts +52 -0
  48. package/lib/internal/icon-popper.d.cts +32 -0
  49. package/lib/internal/icon-popper.d.ts +32 -0
  50. package/lib/internal/mount-window.d.cts +39 -0
  51. package/lib/internal/mount-window.d.ts +39 -0
  52. package/lib/internal/movable-window.d.cts +55 -0
  53. package/lib/internal/movable-window.d.ts +55 -0
  54. package/lib/internal/opened-overlay-boxes.d.cts +2 -0
  55. package/lib/internal/opened-overlay-boxes.d.ts +2 -0
  56. package/lib/internal/pagination.d.cts +22 -0
  57. package/lib/internal/pagination.d.ts +22 -0
  58. package/lib/internal/snackbar-container.d.cts +20 -0
  59. package/lib/internal/snackbar-container.d.ts +20 -0
  60. package/lib/internal/snackbar-item.d.cts +17 -0
  61. package/lib/internal/snackbar-item.d.ts +17 -0
  62. package/lib/internal/tab-group-context.d.cts +4 -2
  63. package/lib/internal/tab-group-context.d.ts +4 -2
  64. package/lib/internal/use-movable-window.d.cts +44 -0
  65. package/lib/internal/use-movable-window.d.ts +44 -0
  66. package/lib/internal/window-order.d.cts +6 -0
  67. package/lib/internal/window-order.d.ts +6 -0
  68. package/lib/intersection-lazy-component.d.cts +32 -0
  69. package/lib/intersection-lazy-component.d.ts +32 -0
  70. package/lib/label-button.d.cts +2 -2
  71. package/lib/label-button.d.ts +2 -2
  72. package/lib/label-icon.d.cts +2 -2
  73. package/lib/label-icon.d.ts +2 -2
  74. package/lib/modal-dialog.d.cts +67 -0
  75. package/lib/modal-dialog.d.ts +67 -0
  76. package/lib/nuxt.cjs +1 -1
  77. package/lib/nuxt.js +1 -1
  78. package/lib/overlay-box.d.cts +52 -0
  79. package/lib/overlay-box.d.ts +52 -0
  80. package/lib/page-section.d.cts +2 -2
  81. package/lib/page-section.d.ts +2 -2
  82. package/lib/page-title.d.cts +2 -2
  83. package/lib/page-title.d.ts +2 -2
  84. package/lib/register.cjs +1 -1
  85. package/lib/register.js +1 -1
  86. package/lib/screen-loading.d.cts +7 -0
  87. package/lib/screen-loading.d.ts +7 -0
  88. package/lib/style.css +1 -1
  89. package/lib/tab-content.d.cts +5 -5
  90. package/lib/tab-content.d.ts +5 -5
  91. package/lib/tab-group.d.cts +7 -10
  92. package/lib/tab-group.d.ts +7 -10
  93. package/lib/types/data-table.d.cts +185 -0
  94. package/lib/types/data-table.d.ts +185 -0
  95. package/lib/types/modal-dialog.d.cts +13 -0
  96. package/lib/types/modal-dialog.d.ts +13 -0
  97. package/lib/types/movable-window.d.cts +16 -0
  98. package/lib/types/movable-window.d.ts +16 -0
  99. package/lib/warning-popper.d.cts +39 -0
  100. package/lib/warning-popper.d.ts +39 -0
  101. package/lib/warning-popper.vue_vue_type_style_index_0_lang-BKV_FX6k.js +1837 -0
  102. package/lib/warning-popper.vue_vue_type_style_index_0_lang-CHmkjVCO.cjs +1 -0
  103. package/package.json +40 -14
  104. package/src/accordion-fieldset.vue +24 -19
  105. package/src/accordion-section.vue +33 -28
  106. package/src/components.ts +10 -0
  107. package/src/copy-button.vue +89 -0
  108. package/src/dark-mode-selector.vue +212 -0
  109. package/src/data-table.vue +648 -0
  110. package/src/help-button.vue +128 -0
  111. package/src/help-popper.vue +70 -0
  112. package/src/helpers/data-table-csv.ts +55 -0
  113. package/src/helpers/show-floating-component.ts +177 -0
  114. package/src/helpers/show-modal-dialog.ts +121 -0
  115. package/src/helpers/show-overlay-box.ts +106 -0
  116. package/src/helpers/show-screen-loading.ts +37 -0
  117. package/src/helpers/show-snackbar.ts +153 -0
  118. package/src/hourglass-loading.vue +1 -1
  119. package/src/index.ts +34 -0
  120. package/src/internal/anchored-popover.vue +192 -0
  121. package/src/internal/anchored-position.ts +135 -0
  122. package/src/internal/data-table-controls.vue +203 -0
  123. package/src/internal/data-table-value.ts +99 -0
  124. package/src/internal/floating-component.vue +202 -0
  125. package/src/internal/icon-popper.vue +185 -0
  126. package/src/internal/mount-window.ts +110 -0
  127. package/src/internal/movable-window.vue +315 -0
  128. package/src/internal/opened-overlay-boxes.ts +2 -0
  129. package/src/internal/pagination.vue +325 -0
  130. package/src/internal/snackbar-container.vue +258 -0
  131. package/src/internal/snackbar-item.ts +20 -0
  132. package/src/internal/tab-group-context.ts +4 -2
  133. package/src/internal/use-movable-window.ts +208 -0
  134. package/src/internal/window-order.ts +11 -0
  135. package/src/intersection-lazy-component.vue +84 -0
  136. package/src/label-button.vue +9 -6
  137. package/src/label-icon.vue +2 -2
  138. package/src/modal-dialog.vue +287 -0
  139. package/src/overlay-box.vue +218 -0
  140. package/src/page-section.vue +7 -7
  141. package/src/page-title.vue +4 -4
  142. package/src/screen-loading.vue +90 -0
  143. package/src/tab-content.vue +16 -15
  144. package/src/tab-group.vue +34 -36
  145. package/src/types/data-table.ts +196 -0
  146. package/src/types/modal-dialog.ts +16 -0
  147. package/src/types/movable-window.ts +18 -0
  148. package/src/warning-popper.vue +70 -0
  149. package/lib/accordion-fieldset.cjs +0 -1
  150. package/lib/accordion-fieldset.js +0 -4
  151. package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-Cf4czDXz.js +0 -66
  152. package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-DoM5QjpJ.cjs +0 -1
  153. package/lib/accordion-section.cjs +0 -1
  154. package/lib/accordion-section.js +0 -4
  155. package/lib/accordion-section.vue_vue_type_style_index_0_lang-CFDdUEnn.cjs +0 -1
  156. package/lib/accordion-section.vue_vue_type_style_index_0_lang-Gvjjx02P.js +0 -78
  157. package/lib/components-C63HJoCn.cjs +0 -1
  158. package/lib/components-q4Cf97bO.js +0 -24
  159. package/lib/hourglass-loading.cjs +0 -1
  160. package/lib/hourglass-loading.js +0 -4
  161. package/lib/hourglass-loading.vue_vue_type_style_index_0_lang-C72UVA9W.cjs +0 -1
  162. package/lib/hourglass-loading.vue_vue_type_style_index_0_lang-DkUGIxQ2.js +0 -22
  163. package/lib/label-button.cjs +0 -1
  164. package/lib/label-button.js +0 -4
  165. package/lib/label-button.vue_vue_type_style_index_0_lang-D7ZgfZOL.cjs +0 -1
  166. package/lib/label-button.vue_vue_type_style_index_0_lang-DqRYddVt.js +0 -44
  167. package/lib/label-icon.cjs +0 -1
  168. package/lib/label-icon.js +0 -4
  169. package/lib/label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs +0 -1
  170. package/lib/label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js +0 -38
  171. package/lib/page-section.cjs +0 -1
  172. package/lib/page-section.js +0 -4
  173. package/lib/page-section.vue_vue_type_style_index_0_lang-DEAkTLxd.cjs +0 -1
  174. package/lib/page-section.vue_vue_type_style_index_0_lang-DpVQe_rV.js +0 -54
  175. package/lib/page-title.cjs +0 -1
  176. package/lib/page-title.js +0 -4
  177. package/lib/page-title.vue_vue_type_style_index_0_lang-BqIsIks5.cjs +0 -1
  178. package/lib/page-title.vue_vue_type_style_index_0_lang-ChZot85K.js +0 -36
  179. package/lib/tab-content.cjs +0 -1
  180. package/lib/tab-content.js +0 -4
  181. package/lib/tab-content.vue_vue_type_style_index_0_lang-BeCi7Xkp.cjs +0 -1
  182. package/lib/tab-content.vue_vue_type_style_index_0_lang-CcQLHmIF.js +0 -44
  183. package/lib/tab-group.cjs +0 -1
  184. package/lib/tab-group.js +0 -4
  185. package/lib/tab-group.vue_vue_type_style_index_0_lang-C84mDEOC.js +0 -103
  186. package/lib/tab-group.vue_vue_type_style_index_0_lang-CMaufRJV.cjs +0 -1
  187. package/lib/use-shrinkable-CS2bmsJJ.js +0 -17
  188. package/lib/use-shrinkable-Cu9JQZll.cjs +0 -1
@@ -0,0 +1,44 @@
1
+ import { Ref } from 'vue';
2
+ import { MovableWindowDragMode } from '../types/movable-window.cjs';
3
+ /** リサイズで掴んでいる角 */
4
+ export type MovableWindowCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
5
+ interface MovableWindowOptions<T extends HTMLElement = HTMLElement> {
6
+ /** ウィンドウ本体の要素。ドラッグ終了時に画面内へ戻す判定と、リサイズの起点の寸法に使う */
7
+ target: Ref<T | undefined>;
8
+ /** ドラッグモードを返す関数。'body' / 'header' のどちらでもない場合はドラッグできない */
9
+ dragMode: () => MovableWindowDragMode | undefined;
10
+ /** リサイズ時の最小幅(px) */
11
+ minWidth?: number;
12
+ /** リサイズ時の最小高さ(px) */
13
+ minHeight?: number;
14
+ /**
15
+ * ドラッグ終了時に下端も画面内へ戻すか。
16
+ * スクロールで領域が広がる通常のページ上では false、画面に固定したウィンドウでは true にする
17
+ */
18
+ clampBottom?: boolean;
19
+ }
20
+ /**
21
+ * ウィンドウのドラッグによる移動と、角のつまみによるリサイズを扱う。
22
+ * マウス・タッチ・ペンを Pointer Events でまとめて扱う。
23
+ * 位置・サイズのリアクティブな状態と、テンプレートの pointerdown に結び付ける開始ハンドラを返す。
24
+ * 初期位置・初期サイズは呼び出し側が決める
25
+ *
26
+ * @param {MovableWindowOptions<T>} options
27
+ */
28
+ export declare function useMovableWindow<T extends HTMLElement = HTMLElement>(options: MovableWindowOptions<T>): {
29
+ moving: Ref<boolean, boolean>;
30
+ resizing: Ref<boolean, boolean>;
31
+ currentPosition: {
32
+ x: number;
33
+ y: number;
34
+ };
35
+ currentRect: {
36
+ width: number;
37
+ height: number;
38
+ };
39
+ onDragStart: (event: PointerEvent) => void;
40
+ onDragHeaderStart: (event: PointerEvent) => void;
41
+ onResizeStart: (event: PointerEvent, corner?: MovableWindowCorner) => void;
42
+ teardown: () => void;
43
+ };
44
+ export {};
@@ -0,0 +1,44 @@
1
+ import { Ref } from 'vue';
2
+ import { MovableWindowDragMode } from '../types/movable-window';
3
+ /** リサイズで掴んでいる角 */
4
+ export type MovableWindowCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
5
+ interface MovableWindowOptions<T extends HTMLElement = HTMLElement> {
6
+ /** ウィンドウ本体の要素。ドラッグ終了時に画面内へ戻す判定と、リサイズの起点の寸法に使う */
7
+ target: Ref<T | undefined>;
8
+ /** ドラッグモードを返す関数。'body' / 'header' のどちらでもない場合はドラッグできない */
9
+ dragMode: () => MovableWindowDragMode | undefined;
10
+ /** リサイズ時の最小幅(px) */
11
+ minWidth?: number;
12
+ /** リサイズ時の最小高さ(px) */
13
+ minHeight?: number;
14
+ /**
15
+ * ドラッグ終了時に下端も画面内へ戻すか。
16
+ * スクロールで領域が広がる通常のページ上では false、画面に固定したウィンドウでは true にする
17
+ */
18
+ clampBottom?: boolean;
19
+ }
20
+ /**
21
+ * ウィンドウのドラッグによる移動と、角のつまみによるリサイズを扱う。
22
+ * マウス・タッチ・ペンを Pointer Events でまとめて扱う。
23
+ * 位置・サイズのリアクティブな状態と、テンプレートの pointerdown に結び付ける開始ハンドラを返す。
24
+ * 初期位置・初期サイズは呼び出し側が決める
25
+ *
26
+ * @param {MovableWindowOptions<T>} options
27
+ */
28
+ export declare function useMovableWindow<T extends HTMLElement = HTMLElement>(options: MovableWindowOptions<T>): {
29
+ moving: Ref<boolean, boolean>;
30
+ resizing: Ref<boolean, boolean>;
31
+ currentPosition: {
32
+ x: number;
33
+ y: number;
34
+ };
35
+ currentRect: {
36
+ width: number;
37
+ height: number;
38
+ };
39
+ onDragStart: (event: PointerEvent) => void;
40
+ onDragHeaderStart: (event: PointerEvent) => void;
41
+ onResizeStart: (event: PointerEvent, corner?: MovableWindowCorner) => void;
42
+ teardown: () => void;
43
+ };
44
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ウィンドウ(OverlayBox / FloatingComponent)の重なり順を返す。後から呼んだものほど大きく、前面に出る
3
+ *
4
+ * @returns {number}
5
+ */
6
+ export declare const nextWindowOrder: () => number;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ウィンドウ(OverlayBox / FloatingComponent)の重なり順を返す。後から呼んだものほど大きく、前面に出る
3
+ *
4
+ * @returns {number}
5
+ */
6
+ export declare const nextWindowOrder: () => number;
@@ -0,0 +1,32 @@
1
+ export interface Props {
2
+ /** 交差を判定するスクロール領域の要素。未指定ならビューポート */
3
+ root?: Element | null;
4
+ /** 判定する領域を root の端から広げる、または狭める量。CSS の margin と同じ書式 */
5
+ rootMargin?: string;
6
+ /** 中身を描画する交差の割合(0〜1)。配列も渡せる */
7
+ threshold?: number | number[];
8
+ }
9
+ export interface Emits {
10
+ /** 初めて画面に入って中身を描画したときに発行する */
11
+ (e: 'emit:visible'): void;
12
+ }
13
+ export interface Slots {
14
+ /** 画面に入ってから描画する中身 */
15
+ default?(): unknown;
16
+ /** 画面に入るまでの間に表示する中身 */
17
+ placeholder?(): unknown;
18
+ }
19
+ type __VLS_Slots = Slots;
20
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "emit:visible": () => any;
22
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
23
+ "onEmit:visible"?: (() => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,32 @@
1
+ export interface Props {
2
+ /** 交差を判定するスクロール領域の要素。未指定ならビューポート */
3
+ root?: Element | null;
4
+ /** 判定する領域を root の端から広げる、または狭める量。CSS の margin と同じ書式 */
5
+ rootMargin?: string;
6
+ /** 中身を描画する交差の割合(0〜1)。配列も渡せる */
7
+ threshold?: number | number[];
8
+ }
9
+ export interface Emits {
10
+ /** 初めて画面に入って中身を描画したときに発行する */
11
+ (e: 'emit:visible'): void;
12
+ }
13
+ export interface Slots {
14
+ /** 画面に入ってから描画する中身 */
15
+ default?(): unknown;
16
+ /** 画面に入るまでの間に表示する中身 */
17
+ placeholder?(): unknown;
18
+ }
19
+ type __VLS_Slots = Slots;
20
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "emit:visible": () => any;
22
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
23
+ "onEmit:visible"?: (() => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -1,6 +1,6 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
2
  import { LabelPreset } from './types/label-preset.cjs';
3
- interface Props {
3
+ export interface Props {
4
4
  /** アイコンとラベルの組み合わせ */
5
5
  preset?: LabelPreset;
6
6
  /** アイコンとラベルの間隔。未指定ならLabelIconの既定値(0.25em) */
@@ -14,7 +14,7 @@ interface Props {
14
14
  /** ラベルに付けるstyle */
15
15
  labelStyle?: StyleValue;
16
16
  }
17
- interface Slots {
17
+ export interface Slots {
18
18
  icon?(): unknown;
19
19
  default?(): unknown;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
2
  import { LabelPreset } from './types/label-preset';
3
- interface Props {
3
+ export interface Props {
4
4
  /** アイコンとラベルの組み合わせ */
5
5
  preset?: LabelPreset;
6
6
  /** アイコンとラベルの間隔。未指定ならLabelIconの既定値(0.25em) */
@@ -14,7 +14,7 @@ interface Props {
14
14
  /** ラベルに付けるstyle */
15
15
  labelStyle?: StyleValue;
16
16
  }
17
- interface Slots {
17
+ export interface Slots {
18
18
  icon?(): unknown;
19
19
  default?(): unknown;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
2
  import { LabelPreset } from './types/label-preset.cjs';
3
- interface Props {
3
+ export interface Props {
4
4
  /** アイコンとラベルの組み合わせ */
5
5
  preset?: LabelPreset;
6
6
  /** アイコンとラベルの間隔。未指定なら既定値(0.25em) */
@@ -14,7 +14,7 @@ interface Props {
14
14
  /** ラベルに付けるstyle */
15
15
  labelStyle?: StyleValue;
16
16
  }
17
- interface Slots {
17
+ export interface Slots {
18
18
  icon?(): unknown;
19
19
  default?(): unknown;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
2
  import { LabelPreset } from './types/label-preset';
3
- interface Props {
3
+ export interface Props {
4
4
  /** アイコンとラベルの組み合わせ */
5
5
  preset?: LabelPreset;
6
6
  /** アイコンとラベルの間隔。未指定なら既定値(0.25em) */
@@ -14,7 +14,7 @@ interface Props {
14
14
  /** ラベルに付けるstyle */
15
15
  labelStyle?: StyleValue;
16
16
  }
17
- interface Slots {
17
+ export interface Slots {
18
18
  icon?(): unknown;
19
19
  default?(): unknown;
20
20
  }
@@ -0,0 +1,67 @@
1
+ import { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType } from './types/modal-dialog.cjs';
2
+ export interface Props {
3
+ /** ダイアログの種類 */
4
+ type?: ModalDialogType;
5
+ /** 見出し */
6
+ title?: string;
7
+ /** 表示する文字列。配列なら1要素を1段落として表示する */
8
+ message?: string | string[];
9
+ /** true の場合、見出しとメッセージを HTML として表示する */
10
+ html?: boolean;
11
+ /** メッセージの下に並べる画像 */
12
+ image?: ModalDialogImage | ModalDialogImage[];
13
+ /** 左から順に並べるボタン。未指定なら confirm は Yes と No、それ以外は OK */
14
+ buttons?: ModalDialogButton[];
15
+ /** OK ボタンの文字 */
16
+ okLabel?: string;
17
+ /** Yes ボタンの文字 */
18
+ yesLabel?: string;
19
+ /** No ボタンの文字 */
20
+ noLabel?: string;
21
+ /** Cancel ボタンの文字 */
22
+ cancelLabel?: string;
23
+ }
24
+ type __VLS_Props = Props;
25
+ export interface Emits {
26
+ /** ボタンか Esc でダイアログが閉じた */
27
+ (e: 'emit:close', result: ModalDialogResult): void;
28
+ }
29
+ export interface Slots {
30
+ /** 見出しの左に出すアイコン */
31
+ icon?(): unknown;
32
+ /** メッセージと画像に代えて表示する中身 */
33
+ default?(): unknown;
34
+ }
35
+ type __VLS_Slots = Slots;
36
+ type __VLS_ModelProps = {
37
+ /** 表示するか。ボタンか Esc で閉じると false になる */
38
+ 'open'?: boolean;
39
+ };
40
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
41
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ "update:open": (value: boolean) => any;
43
+ } & {
44
+ "emit:close": (result: ModalDialogButton) => any;
45
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
46
+ "onEmit:close"?: ((result: ModalDialogButton) => any) | undefined;
47
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
48
+ }>, {
49
+ html: boolean;
50
+ title: string;
51
+ image: ModalDialogImage | ModalDialogImage[];
52
+ type: ModalDialogType;
53
+ message: string | string[];
54
+ buttons: ModalDialogButton[];
55
+ okLabel: string;
56
+ yesLabel: string;
57
+ noLabel: string;
58
+ cancelLabel: string;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
60
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
+ declare const _default: typeof __VLS_export;
62
+ export default _default;
63
+ type __VLS_WithSlots<T, S> = T & {
64
+ new (): {
65
+ $slots: S;
66
+ };
67
+ };
@@ -0,0 +1,67 @@
1
+ import { ModalDialogButton, ModalDialogImage, ModalDialogResult, ModalDialogType } from './types/modal-dialog';
2
+ export interface Props {
3
+ /** ダイアログの種類 */
4
+ type?: ModalDialogType;
5
+ /** 見出し */
6
+ title?: string;
7
+ /** 表示する文字列。配列なら1要素を1段落として表示する */
8
+ message?: string | string[];
9
+ /** true の場合、見出しとメッセージを HTML として表示する */
10
+ html?: boolean;
11
+ /** メッセージの下に並べる画像 */
12
+ image?: ModalDialogImage | ModalDialogImage[];
13
+ /** 左から順に並べるボタン。未指定なら confirm は Yes と No、それ以外は OK */
14
+ buttons?: ModalDialogButton[];
15
+ /** OK ボタンの文字 */
16
+ okLabel?: string;
17
+ /** Yes ボタンの文字 */
18
+ yesLabel?: string;
19
+ /** No ボタンの文字 */
20
+ noLabel?: string;
21
+ /** Cancel ボタンの文字 */
22
+ cancelLabel?: string;
23
+ }
24
+ type __VLS_Props = Props;
25
+ export interface Emits {
26
+ /** ボタンか Esc でダイアログが閉じた */
27
+ (e: 'emit:close', result: ModalDialogResult): void;
28
+ }
29
+ export interface Slots {
30
+ /** 見出しの左に出すアイコン */
31
+ icon?(): unknown;
32
+ /** メッセージと画像に代えて表示する中身 */
33
+ default?(): unknown;
34
+ }
35
+ type __VLS_Slots = Slots;
36
+ type __VLS_ModelProps = {
37
+ /** 表示するか。ボタンか Esc で閉じると false になる */
38
+ 'open'?: boolean;
39
+ };
40
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
41
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ "update:open": (value: boolean) => any;
43
+ } & {
44
+ "emit:close": (result: ModalDialogButton) => any;
45
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
46
+ "onEmit:close"?: ((result: ModalDialogButton) => any) | undefined;
47
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
48
+ }>, {
49
+ html: boolean;
50
+ title: string;
51
+ image: ModalDialogImage | ModalDialogImage[];
52
+ type: ModalDialogType;
53
+ message: string | string[];
54
+ buttons: ModalDialogButton[];
55
+ okLabel: string;
56
+ yesLabel: string;
57
+ noLabel: string;
58
+ cancelLabel: string;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
60
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
+ declare const _default: typeof __VLS_export;
62
+ export default _default;
63
+ type __VLS_WithSlots<T, S> = T & {
64
+ new (): {
65
+ $slots: S;
66
+ };
67
+ };
package/lib/nuxt.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@nuxt/kit"),r=require("./components-C63HJoCn.cjs");var t=typeof document<"u"?document.currentScript:null;const u=e.defineNuxtModule({meta:{name:"@digitalwalletcorp/vue-core",configKey:"vueCore"},setup(){const n=e.createResolver(typeof document>"u"?require("url").pathToFileURL(__filename).href:t&&t.tagName.toUpperCase()==="SCRIPT"&&t.src||new URL("nuxt.cjs",document.baseURI).href);for(const o of Object.keys(r.components))e.addComponent({name:o,export:o,filePath:n.resolve("./index")})}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@nuxt/kit"),r=require("./components-CKql5lWg.cjs");var t=typeof document<"u"?document.currentScript:null;const u=e.defineNuxtModule({meta:{name:"@digitalwalletcorp/vue-core",configKey:"vueCore"},setup(){const n=e.createResolver(typeof document>"u"?require("url").pathToFileURL(__filename).href:t&&t.tagName.toUpperCase()==="SCRIPT"&&t.src||new URL("nuxt.cjs",document.baseURI).href);for(const o of Object.keys(r.components))e.addComponent({name:o,export:o,filePath:n.resolve("./index")})}});exports.default=u;
package/lib/nuxt.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineNuxtModule as t, createResolver as r, addComponent as n } from "@nuxt/kit";
2
- import { c as a } from "./components-q4Cf97bO.js";
2
+ import { c as a } from "./components-BuTJ1wX8.js";
3
3
  const c = t({
4
4
  meta: {
5
5
  name: "@digitalwalletcorp/vue-core",
@@ -0,0 +1,52 @@
1
+ import { MovableWindowDragMode } from './types/movable-window.cjs';
2
+ export interface Props {
3
+ /** 見出し。title スロットで差し替えられる */
4
+ title?: string;
5
+ /** ドラッグで移動するときに掴む範囲。body はウィンドウ全体、header は見出しだけ。未指定なら移動できない */
6
+ dragMode?: MovableWindowDragMode;
7
+ /** 暗幕のクリックで閉じる */
8
+ closeOnBackdrop?: boolean;
9
+ /** ウィンドウに暗幕とスピナーを重ね、中身を操作できなくする */
10
+ loading?: boolean;
11
+ /** 閉じるボタンの読み上げ名 */
12
+ closeLabel?: string;
13
+ }
14
+ type __VLS_Props = Props;
15
+ export interface Emits {
16
+ /** 閉じるアニメーションが終わり、ボックスが取り除かれた */
17
+ (e: 'emit:close'): void;
18
+ }
19
+ export interface Slots {
20
+ /** 見出し */
21
+ title?(): unknown;
22
+ /** ウィンドウに表示する中身 */
23
+ default?(): unknown;
24
+ }
25
+ type __VLS_Slots = Slots;
26
+ type __VLS_ModelProps = {
27
+ /** 表示するか。閉じる操作で false になる */
28
+ 'open'?: boolean;
29
+ };
30
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
31
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ "update:open": (value: boolean) => any;
33
+ } & {
34
+ "emit:close": () => any;
35
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ "onEmit:close"?: (() => any) | undefined;
37
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
38
+ }>, {
39
+ title: string;
40
+ loading: boolean;
41
+ dragMode: MovableWindowDragMode;
42
+ closeLabel: string;
43
+ closeOnBackdrop: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,52 @@
1
+ import { MovableWindowDragMode } from './types/movable-window';
2
+ export interface Props {
3
+ /** 見出し。title スロットで差し替えられる */
4
+ title?: string;
5
+ /** ドラッグで移動するときに掴む範囲。body はウィンドウ全体、header は見出しだけ。未指定なら移動できない */
6
+ dragMode?: MovableWindowDragMode;
7
+ /** 暗幕のクリックで閉じる */
8
+ closeOnBackdrop?: boolean;
9
+ /** ウィンドウに暗幕とスピナーを重ね、中身を操作できなくする */
10
+ loading?: boolean;
11
+ /** 閉じるボタンの読み上げ名 */
12
+ closeLabel?: string;
13
+ }
14
+ type __VLS_Props = Props;
15
+ export interface Emits {
16
+ /** 閉じるアニメーションが終わり、ボックスが取り除かれた */
17
+ (e: 'emit:close'): void;
18
+ }
19
+ export interface Slots {
20
+ /** 見出し */
21
+ title?(): unknown;
22
+ /** ウィンドウに表示する中身 */
23
+ default?(): unknown;
24
+ }
25
+ type __VLS_Slots = Slots;
26
+ type __VLS_ModelProps = {
27
+ /** 表示するか。閉じる操作で false になる */
28
+ 'open'?: boolean;
29
+ };
30
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
31
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ "update:open": (value: boolean) => any;
33
+ } & {
34
+ "emit:close": () => any;
35
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ "onEmit:close"?: (() => any) | undefined;
37
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
38
+ }>, {
39
+ title: string;
40
+ loading: boolean;
41
+ dragMode: MovableWindowDragMode;
42
+ closeLabel: string;
43
+ closeOnBackdrop: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -1,7 +1,7 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
2
  /** 見出しのアイコンとして選べるもの */
3
3
  type PageSectionIcon = 'diamond' | 'circle' | 'square' | 'pushpin' | 'round-pushpin';
4
- interface Props {
4
+ export interface Props {
5
5
  /** 見出しの文字。未指定なら見出しを表示しない */
6
6
  title?: string;
7
7
  /** 見出しのアイコン。これ以外のアイコンは#iconスロットで渡す デフォルト 'diamond' */
@@ -15,7 +15,7 @@ interface Props {
15
15
  /** 見出しに付けるstyle */
16
16
  titleStyle?: StyleValue;
17
17
  }
18
- interface Slots {
18
+ export interface Slots {
19
19
  /** 見出しの文字の前に表示するアイコン。iconより優先する */
20
20
  icon?(): unknown;
21
21
  default?(): unknown;
@@ -1,7 +1,7 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
2
  /** 見出しのアイコンとして選べるもの */
3
3
  type PageSectionIcon = 'diamond' | 'circle' | 'square' | 'pushpin' | 'round-pushpin';
4
- interface Props {
4
+ export interface Props {
5
5
  /** 見出しの文字。未指定なら見出しを表示しない */
6
6
  title?: string;
7
7
  /** 見出しのアイコン。これ以外のアイコンは#iconスロットで渡す デフォルト 'diamond' */
@@ -15,7 +15,7 @@ interface Props {
15
15
  /** 見出しに付けるstyle */
16
16
  titleStyle?: StyleValue;
17
17
  }
18
- interface Slots {
18
+ export interface Slots {
19
19
  /** 見出しの文字の前に表示するアイコン。iconより優先する */
20
20
  icon?(): unknown;
21
21
  default?(): unknown;
@@ -1,8 +1,8 @@
1
- interface Props {
1
+ export interface Props {
2
2
  /** タイトルの文字 */
3
3
  title: string;
4
4
  }
5
- interface Slots {
5
+ export interface Slots {
6
6
  /** タイトルの文字の前に表示するアイコン */
7
7
  icon?(): unknown;
8
8
  /** タイトルバーの右側に表示する内容 */
@@ -1,8 +1,8 @@
1
- interface Props {
1
+ export interface Props {
2
2
  /** タイトルの文字 */
3
3
  title: string;
4
4
  }
5
- interface Slots {
5
+ export interface Slots {
6
6
  /** タイトルの文字の前に表示するアイコン */
7
7
  icon?(): unknown;
8
8
  /** タイトルバーの右側に表示する内容 */
package/lib/register.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-C63HJoCn.cjs");function r(e){for(const[o,n]of Object.entries(t.components))e.component(o,n)}exports.registerComponents=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-CKql5lWg.cjs");function r(e){for(const[o,n]of Object.entries(t.components))e.component(o,n)}exports.registerComponents=r;
package/lib/register.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as t } from "./components-q4Cf97bO.js";
1
+ import { c as t } from "./components-BuTJ1wX8.js";
2
2
  function m(o) {
3
3
  for (const [n, e] of Object.entries(t))
4
4
  o.component(n, e);
@@ -0,0 +1,7 @@
1
+ export interface Props {
2
+ /** 読み込み中か */
3
+ loading: boolean;
4
+ }
5
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export interface Props {
2
+ /** 読み込み中か */
3
+ loading: boolean;
4
+ }
5
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;