@digitalwalletcorp/vue-core 1.2.1 → 1.3.0
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 +79 -3
- package/lib/accordion-fieldset.d.cts +14 -4
- package/lib/accordion-fieldset.d.ts +14 -4
- package/lib/accordion-section.d.cts +20 -10
- package/lib/accordion-section.d.ts +20 -10
- package/lib/components-2zQ2SZuY.js +26 -0
- package/lib/components-HaiHcseF.cjs +1 -0
- package/lib/components.d.cts +10 -0
- package/lib/components.d.ts +10 -0
- package/lib/copy-button.d.cts +34 -0
- package/lib/copy-button.d.ts +34 -0
- package/lib/dark-mode-selector.d.cts +32 -0
- package/lib/dark-mode-selector.d.ts +32 -0
- package/lib/data-table.d.cts +30 -0
- package/lib/data-table.d.ts +30 -0
- package/lib/help-button.d.cts +39 -0
- package/lib/help-button.d.ts +39 -0
- package/lib/help-popper.d.cts +39 -0
- package/lib/help-popper.d.ts +39 -0
- package/lib/helpers/data-table-csv.d.cts +17 -0
- package/lib/helpers/data-table-csv.d.ts +17 -0
- package/lib/helpers/show-floating-component.d.cts +82 -0
- package/lib/helpers/show-floating-component.d.ts +82 -0
- package/lib/helpers/show-modal-dialog.d.cts +73 -0
- package/lib/helpers/show-modal-dialog.d.ts +73 -0
- package/lib/helpers/show-overlay-box.d.cts +53 -0
- package/lib/helpers/show-overlay-box.d.ts +53 -0
- package/lib/helpers/show-screen-loading.d.cts +20 -0
- package/lib/helpers/show-screen-loading.d.ts +20 -0
- package/lib/helpers/show-snackbar.d.cts +47 -0
- package/lib/helpers/show-snackbar.d.ts +47 -0
- package/lib/hourglass-loading.d.cts +1 -1
- package/lib/hourglass-loading.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +34 -0
- package/lib/index.d.ts +34 -0
- package/lib/index.js +445 -18
- package/lib/internal/anchored-popover.d.cts +35 -0
- package/lib/internal/anchored-popover.d.ts +35 -0
- package/lib/internal/anchored-position.d.cts +50 -0
- package/lib/internal/anchored-position.d.ts +50 -0
- package/lib/internal/data-table-controls.d.cts +42 -0
- package/lib/internal/data-table-controls.d.ts +42 -0
- package/lib/internal/data-table-value.d.cts +32 -0
- package/lib/internal/data-table-value.d.ts +32 -0
- package/lib/internal/floating-component.d.cts +52 -0
- package/lib/internal/floating-component.d.ts +52 -0
- package/lib/internal/icon-popper.d.cts +32 -0
- package/lib/internal/icon-popper.d.ts +32 -0
- package/lib/internal/mount-window.d.cts +39 -0
- package/lib/internal/mount-window.d.ts +39 -0
- package/lib/internal/movable-window.d.cts +55 -0
- package/lib/internal/movable-window.d.ts +55 -0
- package/lib/internal/opened-overlay-boxes.d.cts +2 -0
- package/lib/internal/opened-overlay-boxes.d.ts +2 -0
- package/lib/internal/pagination.d.cts +22 -0
- package/lib/internal/pagination.d.ts +22 -0
- package/lib/internal/snackbar-container.d.cts +20 -0
- package/lib/internal/snackbar-container.d.ts +20 -0
- package/lib/internal/snackbar-item.d.cts +17 -0
- package/lib/internal/snackbar-item.d.ts +17 -0
- package/lib/internal/tab-group-context.d.cts +4 -2
- package/lib/internal/tab-group-context.d.ts +4 -2
- package/lib/internal/use-movable-window.d.cts +44 -0
- package/lib/internal/use-movable-window.d.ts +44 -0
- package/lib/internal/window-order.d.cts +6 -0
- package/lib/internal/window-order.d.ts +6 -0
- package/lib/intersection-lazy-component.d.cts +32 -0
- package/lib/intersection-lazy-component.d.ts +32 -0
- package/lib/label-button.d.cts +2 -2
- package/lib/label-button.d.ts +2 -2
- package/lib/label-icon.d.cts +2 -2
- package/lib/label-icon.d.ts +2 -2
- package/lib/modal-dialog.d.cts +67 -0
- package/lib/modal-dialog.d.ts +67 -0
- package/lib/nuxt.cjs +1 -1
- package/lib/nuxt.js +1 -1
- package/lib/overlay-box.d.cts +52 -0
- package/lib/overlay-box.d.ts +52 -0
- package/lib/page-section.d.cts +2 -2
- package/lib/page-section.d.ts +2 -2
- package/lib/page-title.d.cts +2 -2
- package/lib/page-title.d.ts +2 -2
- package/lib/register.cjs +1 -1
- package/lib/register.js +1 -1
- package/lib/screen-loading.d.cts +7 -0
- package/lib/screen-loading.d.ts +7 -0
- package/lib/style.css +1 -1
- package/lib/tab-content.d.cts +5 -5
- package/lib/tab-content.d.ts +5 -5
- package/lib/tab-group.d.cts +7 -10
- package/lib/tab-group.d.ts +7 -10
- package/lib/types/data-table.d.cts +185 -0
- package/lib/types/data-table.d.ts +185 -0
- package/lib/types/modal-dialog.d.cts +13 -0
- package/lib/types/modal-dialog.d.ts +13 -0
- package/lib/types/movable-window.d.cts +16 -0
- package/lib/types/movable-window.d.ts +16 -0
- package/lib/warning-popper.d.cts +39 -0
- package/lib/warning-popper.d.ts +39 -0
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-CxVzqsbn.cjs +1 -0
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-zt-jCsvz.js +1833 -0
- package/package.json +40 -14
- package/src/accordion-fieldset.vue +24 -19
- package/src/accordion-section.vue +33 -28
- package/src/components.ts +10 -0
- package/src/copy-button.vue +89 -0
- package/src/dark-mode-selector.vue +212 -0
- package/src/data-table.vue +643 -0
- package/src/help-button.vue +128 -0
- package/src/help-popper.vue +70 -0
- package/src/helpers/data-table-csv.ts +55 -0
- package/src/helpers/show-floating-component.ts +169 -0
- package/src/helpers/show-modal-dialog.ts +121 -0
- package/src/helpers/show-overlay-box.ts +106 -0
- package/src/helpers/show-screen-loading.ts +37 -0
- package/src/helpers/show-snackbar.ts +153 -0
- package/src/hourglass-loading.vue +1 -1
- package/src/index.ts +34 -0
- package/src/internal/anchored-popover.vue +192 -0
- package/src/internal/anchored-position.ts +135 -0
- package/src/internal/data-table-controls.vue +203 -0
- package/src/internal/data-table-value.ts +99 -0
- package/src/internal/floating-component.vue +202 -0
- package/src/internal/icon-popper.vue +185 -0
- package/src/internal/mount-window.ts +110 -0
- package/src/internal/movable-window.vue +315 -0
- package/src/internal/opened-overlay-boxes.ts +2 -0
- package/src/internal/pagination.vue +325 -0
- package/src/internal/snackbar-container.vue +258 -0
- package/src/internal/snackbar-item.ts +20 -0
- package/src/internal/tab-group-context.ts +4 -2
- package/src/internal/use-movable-window.ts +208 -0
- package/src/internal/window-order.ts +11 -0
- package/src/intersection-lazy-component.vue +84 -0
- package/src/label-button.vue +9 -6
- package/src/label-icon.vue +2 -2
- package/src/modal-dialog.vue +287 -0
- package/src/overlay-box.vue +218 -0
- package/src/page-section.vue +7 -7
- package/src/page-title.vue +4 -4
- package/src/screen-loading.vue +90 -0
- package/src/tab-content.vue +16 -15
- package/src/tab-group.vue +34 -36
- package/src/types/data-table.ts +196 -0
- package/src/types/modal-dialog.ts +16 -0
- package/src/types/movable-window.ts +18 -0
- package/src/warning-popper.vue +70 -0
- package/lib/accordion-fieldset.cjs +0 -1
- package/lib/accordion-fieldset.js +0 -4
- package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-Cf4czDXz.js +0 -66
- package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-DoM5QjpJ.cjs +0 -1
- package/lib/accordion-section.cjs +0 -1
- package/lib/accordion-section.js +0 -4
- package/lib/accordion-section.vue_vue_type_style_index_0_lang-CFDdUEnn.cjs +0 -1
- package/lib/accordion-section.vue_vue_type_style_index_0_lang-Gvjjx02P.js +0 -78
- package/lib/components-C63HJoCn.cjs +0 -1
- package/lib/components-q4Cf97bO.js +0 -24
- package/lib/hourglass-loading.cjs +0 -1
- package/lib/hourglass-loading.js +0 -4
- package/lib/hourglass-loading.vue_vue_type_style_index_0_lang-C72UVA9W.cjs +0 -1
- package/lib/hourglass-loading.vue_vue_type_style_index_0_lang-DkUGIxQ2.js +0 -22
- package/lib/label-button.cjs +0 -1
- package/lib/label-button.js +0 -4
- package/lib/label-button.vue_vue_type_style_index_0_lang-D7ZgfZOL.cjs +0 -1
- package/lib/label-button.vue_vue_type_style_index_0_lang-DqRYddVt.js +0 -44
- package/lib/label-icon.cjs +0 -1
- package/lib/label-icon.js +0 -4
- package/lib/label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs +0 -1
- package/lib/label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js +0 -38
- package/lib/page-section.cjs +0 -1
- package/lib/page-section.js +0 -4
- package/lib/page-section.vue_vue_type_style_index_0_lang-DEAkTLxd.cjs +0 -1
- package/lib/page-section.vue_vue_type_style_index_0_lang-DpVQe_rV.js +0 -54
- package/lib/page-title.cjs +0 -1
- package/lib/page-title.js +0 -4
- package/lib/page-title.vue_vue_type_style_index_0_lang-BqIsIks5.cjs +0 -1
- package/lib/page-title.vue_vue_type_style_index_0_lang-ChZot85K.js +0 -36
- package/lib/tab-content.cjs +0 -1
- package/lib/tab-content.js +0 -4
- package/lib/tab-content.vue_vue_type_style_index_0_lang-BeCi7Xkp.cjs +0 -1
- package/lib/tab-content.vue_vue_type_style_index_0_lang-CcQLHmIF.js +0 -44
- package/lib/tab-group.cjs +0 -1
- package/lib/tab-group.js +0 -4
- package/lib/tab-group.vue_vue_type_style_index_0_lang-C84mDEOC.js +0 -103
- package/lib/tab-group.vue_vue_type_style_index_0_lang-CMaufRJV.cjs +0 -1
- package/lib/use-shrinkable-CS2bmsJJ.js +0 -17
- package/lib/use-shrinkable-Cu9JQZll.cjs +0 -1
package/README.md
CHANGED
|
@@ -5,7 +5,6 @@ Basic UI components for Vue 3.
|
|
|
5
5
|
#### ✨ Features
|
|
6
6
|
|
|
7
7
|
* **Tree-shaking**: Only import what you use. Importing a single component won't bundle the rest of the library.
|
|
8
|
-
* **Fully typed**: Type definitions are included, allowing your editor to auto-complete props and default values automatically.
|
|
9
8
|
* **Easy overrides**: Default styles use zero specificity (`:where()`), so your own CSS always wins.
|
|
10
9
|
|
|
11
10
|
#### 📦 Installation
|
|
@@ -35,11 +34,11 @@ There are three ways to use the components.
|
|
|
35
34
|
|
|
36
35
|
```vue
|
|
37
36
|
<script setup lang="ts">
|
|
38
|
-
import {
|
|
37
|
+
import { CopyButton } from '@digitalwalletcorp/vue-core';
|
|
39
38
|
</script>
|
|
40
39
|
|
|
41
40
|
<template>
|
|
42
|
-
<
|
|
41
|
+
<CopyButton value="Order #12345" />
|
|
43
42
|
</template>
|
|
44
43
|
```
|
|
45
44
|
|
|
@@ -65,6 +64,24 @@ export default defineNuxtConfig({
|
|
|
65
64
|
});
|
|
66
65
|
```
|
|
67
66
|
|
|
67
|
+
##### 🔤 Types
|
|
68
|
+
|
|
69
|
+
The props, events and slots of each component are exported as types named `<Component>Props`, `<Component>Emits` and `<Component>Slots`, such as `ModalDialogProps` and `ModalDialogEmits`.
|
|
70
|
+
Use them when you wrap a component in your own component.
|
|
71
|
+
|
|
72
|
+
```vue
|
|
73
|
+
<script setup lang="ts">
|
|
74
|
+
import { ModalDialog } from '@digitalwalletcorp/vue-core';
|
|
75
|
+
import type { ModalDialogProps } from '@digitalwalletcorp/vue-core';
|
|
76
|
+
|
|
77
|
+
const props = defineProps<ModalDialogProps>();
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<template>
|
|
81
|
+
<ModalDialog v-bind="props" class="app-dialog" />
|
|
82
|
+
</template>
|
|
83
|
+
```
|
|
84
|
+
|
|
68
85
|
##### 📐 Stylesheet
|
|
69
86
|
|
|
70
87
|
Import the stylesheets to ensure default alignment and icon styles.
|
|
@@ -93,6 +110,30 @@ export default defineNuxtConfig({
|
|
|
93
110
|
>
|
|
94
111
|
> Components such as `AccordionFieldset` rely on [@digitalwalletcorp/vue-svg-icons](https://www.npmjs.com/package/@digitalwalletcorp/vue-svg-icons). Importing its stylesheet ensures icons align properly with text.
|
|
95
112
|
|
|
113
|
+
##### 📏 Sizes
|
|
114
|
+
|
|
115
|
+
The spaces around the texts, such as paddings, gaps, and margins, are set in `em`, so that they follow the font size of your application.
|
|
116
|
+
The defaults are the `em` values that give the pixel sizes below at a font size of `12px`.
|
|
117
|
+
Line elements (borders, outlines, shadows) and non-text component sizes are set in `px`.
|
|
118
|
+
|
|
119
|
+
| px | em |
|
|
120
|
+
| -- | ------ |
|
|
121
|
+
| 2 | 0.17 |
|
|
122
|
+
| 3 | 0.25 |
|
|
123
|
+
| 4 | 0.33 |
|
|
124
|
+
| 5 | 0.4 |
|
|
125
|
+
| 6 | 0.5 |
|
|
126
|
+
| 8 | 0.67 |
|
|
127
|
+
| 10 | 0.83 |
|
|
128
|
+
| 12 | 1 |
|
|
129
|
+
| 14 | 1.17 |
|
|
130
|
+
| 16 | 1.33 |
|
|
131
|
+
| 18 | 1.5 |
|
|
132
|
+
| 20 | 1.67 |
|
|
133
|
+
| 22 | 1.83 |
|
|
134
|
+
| 28 | 2.33 |
|
|
135
|
+
| 30 | 2.5 |
|
|
136
|
+
|
|
96
137
|
##### ⚙️ Adapting to your application
|
|
97
138
|
|
|
98
139
|
**🎨 Dark Mode & Theme Support**
|
|
@@ -131,18 +172,53 @@ export default defineNuxtConfig({
|
|
|
131
172
|
});
|
|
132
173
|
```
|
|
133
174
|
|
|
175
|
+
#### 🛠️ Helper Functions
|
|
176
|
+
|
|
177
|
+
Dialogs, snackbars and floating windows are shown from code, so you can call them from a click handler or a store action without placing a component in the template.
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
import { showConfirmationDialog, showSnackbar } from '@digitalwalletcorp/vue-core';
|
|
181
|
+
|
|
182
|
+
const onClickDelete = async () => {
|
|
183
|
+
const result = await showConfirmationDialog('Do you want to delete this item?', { title: 'Delete item' });
|
|
184
|
+
if (result === 'yes') {
|
|
185
|
+
await deleteItem();
|
|
186
|
+
showSnackbar('The item has been deleted.', { duration: 5000 });
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
| Function | Description |
|
|
192
|
+
| -------- | ----------- |
|
|
193
|
+
| [`showInformationDialog()` / `showConfirmationDialog()` / `showWarningDialog()` / `showErrorDialog()` / `showModalDialog()`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/modal-dialog.md) | Shows a modal dialog with a message and returns the button the user chose. |
|
|
194
|
+
| [`showSnackbar()` / `closeAllSnackbars()`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/snackbar.md) | Shows a short message at an edge of the screen. |
|
|
195
|
+
| [`showOverlayBox()` / `closeAllOverlayBoxes()` / `useOverlayBox()`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/overlay-box.md) | Shows a component in an `OverlayBox` and returns a handle to close it. |
|
|
196
|
+
| [`showFloatingComponent()` / `showFloatingMessage()` / `closeAllFloatingComponents()` / `useFloatingComponent()`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/floating-component.md) | Shows a component or a message in a window that floats over the page without a backdrop. |
|
|
197
|
+
| [`showScreenLoading()`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/screen-loading.md) | Covers the whole screen with a spinner until the returned handle is closed. |
|
|
198
|
+
| [`headersToCsvColumns()` / `rowToCsvColumns()`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/data-table.md) | Converts `DataTable` headers and rows into CSV columns. |
|
|
199
|
+
|
|
134
200
|
#### 🧰 Components
|
|
135
201
|
|
|
136
202
|
| Component | Description |
|
|
137
203
|
| --------- | ----------- |
|
|
138
204
|
| [`AccordionFieldset`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/accordion-fieldset.md) | A fieldset whose contents can be collapsed and expanded from the legend. |
|
|
139
205
|
| [`AccordionSection`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/accordion-section.md) | An area whose contents can be collapsed and expanded with a toggle button below them. |
|
|
206
|
+
| [`CopyButton`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/copy-button.md) | A button that copies a value to the clipboard. |
|
|
207
|
+
| [`DarkModeSelector`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/dark-mode-selector.md) | A switch that toggles between light and dark mode and remembers the choice. |
|
|
208
|
+
| [`DataTable`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/data-table.md) | A table for a list of records, with sortable and resizable headers, row selection, and paging controls. |
|
|
209
|
+
| [`HelpButton`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/help-button.md) | A question-mark button that shows its contents in a popover next to the button. |
|
|
210
|
+
| [`HelpPopper`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/help-popper.md) | A question-mark icon that shows its contents in a tooltip while hovered or focused. |
|
|
140
211
|
| [`HourglassLoading`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/hourglass-loading.md) | Shows an hourglass in place of a value while it is loading. |
|
|
212
|
+
| [`IntersectionLazyComponent`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/intersection-lazy-component.md) | Renders its contents only once it scrolls into view. |
|
|
141
213
|
| [`LabelIcon`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/label-icon.md) | Displays an icon and a text label side by side. |
|
|
142
214
|
| [`LabelButton`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/label-button.md) | Renders a button containing an icon and a text label. |
|
|
215
|
+
| [`ModalDialog`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/modal-dialog.md) | A dialog that shows a message and asks the user to answer with its buttons. |
|
|
216
|
+
| [`OverlayBox`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/overlay-box.md) | A window shown over a dimmed backdrop that covers the whole page, with a title and a close button. |
|
|
143
217
|
| [`PageSection`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/page-section.md) | A section of a page with a heading. |
|
|
144
218
|
| [`PageTitle`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/page-title.md) | The title bar of a page, with the contents of the default slot on its right side. |
|
|
219
|
+
| [`ScreenLoading`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/screen-loading.md) | Covers the whole screen with a dimmed backdrop and shows a spinner. |
|
|
145
220
|
| [`TabGroup` / `TabContent`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/tab-group.md) | Switches between contents with tab headers. |
|
|
221
|
+
| [`WarningPopper`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/warning-popper.md) | A warning icon that shows its contents in a tooltip while hovered or focused. |
|
|
146
222
|
|
|
147
223
|
#### 📜 License
|
|
148
224
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
interface Props {
|
|
1
|
+
export interface Props {
|
|
2
2
|
/** 凡例の文字。HTMLを含める場合は#legendスロットを使う */
|
|
3
3
|
legend?: string;
|
|
4
4
|
/** trueの場合、fieldsetを無効にする */
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
/** trueの場合、開いた状態で表示する デフォルト false */
|
|
6
|
+
/** trueの場合、開いた状態で表示する デフォルト false。v-model:expanded で束縛しないときの初期値 */
|
|
7
7
|
initialExpand?: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type __VLS_Props = Props;
|
|
10
|
+
export interface Slots {
|
|
10
11
|
/** 凡例の文字の前に表示するアイコン */
|
|
11
12
|
icon?(): unknown;
|
|
12
13
|
/** 凡例。legendより優先する */
|
|
@@ -14,7 +15,16 @@ interface Slots {
|
|
|
14
15
|
default?(): unknown;
|
|
15
16
|
}
|
|
16
17
|
type __VLS_Slots = Slots;
|
|
17
|
-
|
|
18
|
+
type __VLS_ModelProps = {
|
|
19
|
+
/** 親が v-model:expanded で束縛したときの開閉状態。束縛しなければ undefined */
|
|
20
|
+
'expanded'?: boolean | undefined;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:expanded": (value: boolean | undefined) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:expanded"?: ((value: boolean | undefined) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
29
|
declare const _default: typeof __VLS_export;
|
|
20
30
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
interface Props {
|
|
1
|
+
export interface Props {
|
|
2
2
|
/** 凡例の文字。HTMLを含める場合は#legendスロットを使う */
|
|
3
3
|
legend?: string;
|
|
4
4
|
/** trueの場合、fieldsetを無効にする */
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
/** trueの場合、開いた状態で表示する デフォルト false */
|
|
6
|
+
/** trueの場合、開いた状態で表示する デフォルト false。v-model:expanded で束縛しないときの初期値 */
|
|
7
7
|
initialExpand?: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type __VLS_Props = Props;
|
|
10
|
+
export interface Slots {
|
|
10
11
|
/** 凡例の文字の前に表示するアイコン */
|
|
11
12
|
icon?(): unknown;
|
|
12
13
|
/** 凡例。legendより優先する */
|
|
@@ -14,7 +15,16 @@ interface Slots {
|
|
|
14
15
|
default?(): unknown;
|
|
15
16
|
}
|
|
16
17
|
type __VLS_Slots = Slots;
|
|
17
|
-
|
|
18
|
+
type __VLS_ModelProps = {
|
|
19
|
+
/** 親が v-model:expanded で束縛したときの開閉状態。束縛しなければ undefined */
|
|
20
|
+
'expanded'?: boolean | undefined;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:expanded": (value: boolean | undefined) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:expanded"?: ((value: boolean | undefined) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
29
|
declare const _default: typeof __VLS_export;
|
|
20
30
|
export default _default;
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
import { LabelPreset } from './types/label-preset.cjs';
|
|
2
|
-
interface Props {
|
|
2
|
+
export interface Props {
|
|
3
3
|
/** trueの場合、開閉ボタンを無効にする */
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
/** trueの場合、開いた状態で表示する デフォルト false */
|
|
5
|
+
/** trueの場合、開いた状態で表示する デフォルト false。v-model:expanded で束縛しないときの初期値 */
|
|
6
6
|
initialExpand?: boolean;
|
|
7
7
|
/** trueの場合、縮めたときに中身の下側をぼかさない */
|
|
8
8
|
noGradient?: boolean;
|
|
9
9
|
/** 縮めているときの開閉ボタン(開く)のラベル */
|
|
10
|
-
|
|
10
|
+
expandLabel?: string;
|
|
11
11
|
/** 開いているときの開閉ボタン(閉じる)のラベル */
|
|
12
|
-
|
|
12
|
+
collapseLabel?: string;
|
|
13
13
|
/** 縮めているときの開閉ボタン(開く)のアイコンとラベル */
|
|
14
|
-
|
|
14
|
+
expandPreset?: LabelPreset;
|
|
15
15
|
/** 開いているときの開閉ボタン(閉じる)のアイコンとラベル */
|
|
16
|
-
|
|
16
|
+
collapsePreset?: LabelPreset;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
type __VLS_Props = Props;
|
|
19
|
+
export interface Slots {
|
|
19
20
|
/** 縮めているときの開閉ボタン(開く)のアイコン */
|
|
20
|
-
'
|
|
21
|
+
'expand-icon'?(): unknown;
|
|
21
22
|
/** 開いているときの開閉ボタン(閉じる)のアイコン */
|
|
22
|
-
'
|
|
23
|
+
'collapse-icon'?(): unknown;
|
|
23
24
|
default?(): unknown;
|
|
24
25
|
}
|
|
25
26
|
type __VLS_Slots = Slots;
|
|
26
|
-
|
|
27
|
+
type __VLS_ModelProps = {
|
|
28
|
+
/** 親が v-model:expanded で束縛したときの開閉状態。束縛しなければ undefined */
|
|
29
|
+
'expanded'?: boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
32
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
"update:expanded": (value: boolean | undefined) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
"onUpdate:expanded"?: ((value: boolean | undefined) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
38
|
declare const _default: typeof __VLS_export;
|
|
29
39
|
export default _default;
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
import { LabelPreset } from './types/label-preset';
|
|
2
|
-
interface Props {
|
|
2
|
+
export interface Props {
|
|
3
3
|
/** trueの場合、開閉ボタンを無効にする */
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
/** trueの場合、開いた状態で表示する デフォルト false */
|
|
5
|
+
/** trueの場合、開いた状態で表示する デフォルト false。v-model:expanded で束縛しないときの初期値 */
|
|
6
6
|
initialExpand?: boolean;
|
|
7
7
|
/** trueの場合、縮めたときに中身の下側をぼかさない */
|
|
8
8
|
noGradient?: boolean;
|
|
9
9
|
/** 縮めているときの開閉ボタン(開く)のラベル */
|
|
10
|
-
|
|
10
|
+
expandLabel?: string;
|
|
11
11
|
/** 開いているときの開閉ボタン(閉じる)のラベル */
|
|
12
|
-
|
|
12
|
+
collapseLabel?: string;
|
|
13
13
|
/** 縮めているときの開閉ボタン(開く)のアイコンとラベル */
|
|
14
|
-
|
|
14
|
+
expandPreset?: LabelPreset;
|
|
15
15
|
/** 開いているときの開閉ボタン(閉じる)のアイコンとラベル */
|
|
16
|
-
|
|
16
|
+
collapsePreset?: LabelPreset;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
type __VLS_Props = Props;
|
|
19
|
+
export interface Slots {
|
|
19
20
|
/** 縮めているときの開閉ボタン(開く)のアイコン */
|
|
20
|
-
'
|
|
21
|
+
'expand-icon'?(): unknown;
|
|
21
22
|
/** 開いているときの開閉ボタン(閉じる)のアイコン */
|
|
22
|
-
'
|
|
23
|
+
'collapse-icon'?(): unknown;
|
|
23
24
|
default?(): unknown;
|
|
24
25
|
}
|
|
25
26
|
type __VLS_Slots = Slots;
|
|
26
|
-
|
|
27
|
+
type __VLS_ModelProps = {
|
|
28
|
+
/** 親が v-model:expanded で束縛したときの開閉状態。束縛しなければ undefined */
|
|
29
|
+
'expanded'?: boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
32
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
"update:expanded": (value: boolean | undefined) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
"onUpdate:expanded"?: ((value: boolean | undefined) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
38
|
declare const _default: typeof __VLS_export;
|
|
29
39
|
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { f as a, h as s, a as n, i as _, j as o, k as e, l as c, m as i, o as t, p as m, q as f, b as r, d as l, s as $, t as p, e as d, u as b, v as g, w as u } from "./warning-popper.vue_vue_type_style_index_0_lang-zt-jCsvz.js";
|
|
2
|
+
const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
AccordionFieldset: a,
|
|
5
|
+
AccordionSection: s,
|
|
6
|
+
CopyButton: n,
|
|
7
|
+
DarkModeSelector: _,
|
|
8
|
+
DataTable: o,
|
|
9
|
+
HelpButton: e,
|
|
10
|
+
HelpPopper: c,
|
|
11
|
+
HourglassLoading: i,
|
|
12
|
+
IntersectionLazyComponent: t,
|
|
13
|
+
LabelButton: m,
|
|
14
|
+
LabelIcon: f,
|
|
15
|
+
ModalDialog: r,
|
|
16
|
+
OverlayBox: l,
|
|
17
|
+
PageSection: $,
|
|
18
|
+
PageTitle: p,
|
|
19
|
+
ScreenLoading: d,
|
|
20
|
+
TabContent: b,
|
|
21
|
+
TabGroup: g,
|
|
22
|
+
WarningPopper: u
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
24
|
+
export {
|
|
25
|
+
y as c
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./warning-popper.vue_vue_type_style_index_0_lang-CxVzqsbn.cjs"),_=Object.freeze(Object.defineProperty({__proto__:null,AccordionFieldset:n._sfc_main$5,AccordionSection:n._sfc_main$6,CopyButton:n._sfc_main$1,DarkModeSelector:n._sfc_main$7,DataTable:n._sfc_main$8,HelpButton:n._sfc_main$9,HelpPopper:n._sfc_main$10,HourglassLoading:n._sfc_main$11,IntersectionLazyComponent:n._sfc_main$12,LabelButton:n._sfc_main$13,LabelIcon:n._sfc_main$14,ModalDialog:n._sfc_main$2,OverlayBox:n._sfc_main$3,PageSection:n._sfc_main$15,PageTitle:n._sfc_main$16,ScreenLoading:n._sfc_main$4,TabContent:n._sfc_main$17,TabGroup:n._sfc_main$18,WarningPopper:n._sfc_main$19},Symbol.toStringTag,{value:"Module"}));exports.components=_;
|
package/lib/components.d.cts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
export { default as AccordionFieldset } from './accordion-fieldset.cjs';
|
|
2
2
|
export { default as AccordionSection } from './accordion-section.cjs';
|
|
3
|
+
export { default as CopyButton } from './copy-button.cjs';
|
|
4
|
+
export { default as DarkModeSelector } from './dark-mode-selector.cjs';
|
|
5
|
+
export { default as DataTable } from './data-table.cjs';
|
|
6
|
+
export { default as HelpButton } from './help-button.cjs';
|
|
7
|
+
export { default as HelpPopper } from './help-popper.cjs';
|
|
3
8
|
export { default as HourglassLoading } from './hourglass-loading.cjs';
|
|
9
|
+
export { default as IntersectionLazyComponent } from './intersection-lazy-component.cjs';
|
|
4
10
|
export { default as LabelButton } from './label-button.cjs';
|
|
5
11
|
export { default as LabelIcon } from './label-icon.cjs';
|
|
12
|
+
export { default as ModalDialog } from './modal-dialog.cjs';
|
|
13
|
+
export { default as OverlayBox } from './overlay-box.cjs';
|
|
6
14
|
export { default as PageSection } from './page-section.cjs';
|
|
7
15
|
export { default as PageTitle } from './page-title.cjs';
|
|
16
|
+
export { default as ScreenLoading } from './screen-loading.cjs';
|
|
8
17
|
export { default as TabContent } from './tab-content.cjs';
|
|
9
18
|
export { default as TabGroup } from './tab-group.cjs';
|
|
19
|
+
export { default as WarningPopper } from './warning-popper.cjs';
|
package/lib/components.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
export { default as AccordionFieldset } from './accordion-fieldset';
|
|
2
2
|
export { default as AccordionSection } from './accordion-section';
|
|
3
|
+
export { default as CopyButton } from './copy-button';
|
|
4
|
+
export { default as DarkModeSelector } from './dark-mode-selector';
|
|
5
|
+
export { default as DataTable } from './data-table';
|
|
6
|
+
export { default as HelpButton } from './help-button';
|
|
7
|
+
export { default as HelpPopper } from './help-popper';
|
|
3
8
|
export { default as HourglassLoading } from './hourglass-loading';
|
|
9
|
+
export { default as IntersectionLazyComponent } from './intersection-lazy-component';
|
|
4
10
|
export { default as LabelButton } from './label-button';
|
|
5
11
|
export { default as LabelIcon } from './label-icon';
|
|
12
|
+
export { default as ModalDialog } from './modal-dialog';
|
|
13
|
+
export { default as OverlayBox } from './overlay-box';
|
|
6
14
|
export { default as PageSection } from './page-section';
|
|
7
15
|
export { default as PageTitle } from './page-title';
|
|
16
|
+
export { default as ScreenLoading } from './screen-loading';
|
|
8
17
|
export { default as TabContent } from './tab-content';
|
|
9
18
|
export { default as TabGroup } from './tab-group';
|
|
19
|
+
export { default as WarningPopper } from './warning-popper';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
/** コピーする値。関数を渡すとクリック時に呼び出して値を得る */
|
|
3
|
+
value: string | number | (() => string | number);
|
|
4
|
+
/** ボタンの読み上げ名。スロットで文字を渡したときは使わない */
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Emits {
|
|
8
|
+
/** コピーに成功したときに、コピーした文字列を発行する */
|
|
9
|
+
(e: 'emit:copy', value: string): void;
|
|
10
|
+
/** コピーに失敗したときに、原因のエラーを発行する */
|
|
11
|
+
(e: 'emit:error', error: unknown): void;
|
|
12
|
+
}
|
|
13
|
+
export interface Slots {
|
|
14
|
+
/** ボタンの中身。未指定ならメモのアイコン */
|
|
15
|
+
default?(): unknown;
|
|
16
|
+
}
|
|
17
|
+
type __VLS_Slots = Slots;
|
|
18
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
"emit:copy": (value: string) => any;
|
|
20
|
+
"emit:error": (error: unknown) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
22
|
+
"onEmit:copy"?: ((value: string) => any) | undefined;
|
|
23
|
+
"onEmit:error"?: ((error: unknown) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
label: string;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
/** コピーする値。関数を渡すとクリック時に呼び出して値を得る */
|
|
3
|
+
value: string | number | (() => string | number);
|
|
4
|
+
/** ボタンの読み上げ名。スロットで文字を渡したときは使わない */
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Emits {
|
|
8
|
+
/** コピーに成功したときに、コピーした文字列を発行する */
|
|
9
|
+
(e: 'emit:copy', value: string): void;
|
|
10
|
+
/** コピーに失敗したときに、原因のエラーを発行する */
|
|
11
|
+
(e: 'emit:error', error: unknown): void;
|
|
12
|
+
}
|
|
13
|
+
export interface Slots {
|
|
14
|
+
/** ボタンの中身。未指定ならメモのアイコン */
|
|
15
|
+
default?(): unknown;
|
|
16
|
+
}
|
|
17
|
+
type __VLS_Slots = Slots;
|
|
18
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
"emit:copy": (value: string) => any;
|
|
20
|
+
"emit:error": (error: unknown) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
22
|
+
"onEmit:copy"?: ((value: string) => any) | undefined;
|
|
23
|
+
"onEmit:error"?: ((error: unknown) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
label: string;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type ColorScheme = 'light' | 'dark';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/** 選んだモードを保存する localStorage のキー */
|
|
4
|
+
storageKey?: string;
|
|
5
|
+
/** スイッチの読み上げ名 */
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Emits {
|
|
9
|
+
/** マウント時に決まったモードと、その後モードが変わるたびに、新しいモードを発行する */
|
|
10
|
+
(e: 'emit:change', value: ColorScheme): void;
|
|
11
|
+
}
|
|
12
|
+
export interface Slots {
|
|
13
|
+
'icon-light'?(): unknown;
|
|
14
|
+
'icon-dark'?(): unknown;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Slots = Slots;
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
"emit:change": (value: ColorScheme) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
+
"onEmit:change"?: ((value: ColorScheme) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
label: string;
|
|
23
|
+
storageKey: string;
|
|
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
|
+
type ColorScheme = 'light' | 'dark';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/** 選んだモードを保存する localStorage のキー */
|
|
4
|
+
storageKey?: string;
|
|
5
|
+
/** スイッチの読み上げ名 */
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Emits {
|
|
9
|
+
/** マウント時に決まったモードと、その後モードが変わるたびに、新しいモードを発行する */
|
|
10
|
+
(e: 'emit:change', value: ColorScheme): void;
|
|
11
|
+
}
|
|
12
|
+
export interface Slots {
|
|
13
|
+
'icon-light'?(): unknown;
|
|
14
|
+
'icon-dark'?(): unknown;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Slots = Slots;
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
"emit:change": (value: ColorScheme) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
+
"onEmit:change"?: ((value: ColorScheme) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
label: string;
|
|
23
|
+
storageKey: string;
|
|
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,30 @@
|
|
|
1
|
+
import { DataTableEmits, DataTableHeader, DataTableProps, DataTableSlots, DataTableSortContext } from './types/data-table.cjs';
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<DataTableProps<T> & {
|
|
4
|
+
"onEmit:selectRow"?: ((value: T | undefined, index: number) => any) | undefined;
|
|
5
|
+
"onEmit:changeSort"?: ((context: DataTableSortContext) => any) | undefined;
|
|
6
|
+
"onEmit:sortData"?: ((dataList: T[]) => any) | undefined;
|
|
7
|
+
"onEmit:updateHeader"?: ((headers: DataTableHeader<T>[]) => any) | undefined;
|
|
8
|
+
"onEmit:dblclickRow"?: ((value: T, index: number) => any) | undefined;
|
|
9
|
+
"onEmit:changeLimit"?: ((limit: number) => any) | undefined;
|
|
10
|
+
"onEmit:changePage"?: ((page: number) => any) | undefined;
|
|
11
|
+
"onEmit:downloadPage"?: (() => any) | undefined;
|
|
12
|
+
"onEmit:downloadAll"?: (() => any) | undefined;
|
|
13
|
+
}> & import('vue').PublicProps & (typeof globalThis extends {
|
|
14
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
15
|
+
} ? P : {});
|
|
16
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
17
|
+
/** ソートの状態を返す */
|
|
18
|
+
getSortContext: () => DataTableSortContext;
|
|
19
|
+
}>) => void;
|
|
20
|
+
attrs: any;
|
|
21
|
+
slots: DataTableSlots<T>;
|
|
22
|
+
emit: DataTableEmits<T>;
|
|
23
|
+
}>) => import('vue').VNode & {
|
|
24
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
[K in keyof T as K]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DataTableEmits, DataTableHeader, DataTableProps, DataTableSlots, DataTableSortContext } from './types/data-table';
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<DataTableProps<T> & {
|
|
4
|
+
"onEmit:selectRow"?: ((value: T | undefined, index: number) => any) | undefined;
|
|
5
|
+
"onEmit:changeSort"?: ((context: DataTableSortContext) => any) | undefined;
|
|
6
|
+
"onEmit:sortData"?: ((dataList: T[]) => any) | undefined;
|
|
7
|
+
"onEmit:updateHeader"?: ((headers: DataTableHeader<T>[]) => any) | undefined;
|
|
8
|
+
"onEmit:dblclickRow"?: ((value: T, index: number) => any) | undefined;
|
|
9
|
+
"onEmit:changeLimit"?: ((limit: number) => any) | undefined;
|
|
10
|
+
"onEmit:changePage"?: ((page: number) => any) | undefined;
|
|
11
|
+
"onEmit:downloadPage"?: (() => any) | undefined;
|
|
12
|
+
"onEmit:downloadAll"?: (() => any) | undefined;
|
|
13
|
+
}> & import('vue').PublicProps & (typeof globalThis extends {
|
|
14
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
15
|
+
} ? P : {});
|
|
16
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
17
|
+
/** ソートの状態を返す */
|
|
18
|
+
getSortContext: () => DataTableSortContext;
|
|
19
|
+
}>) => void;
|
|
20
|
+
attrs: any;
|
|
21
|
+
slots: DataTableSlots<T>;
|
|
22
|
+
emit: DataTableEmits<T>;
|
|
23
|
+
}>) => import('vue').VNode & {
|
|
24
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
[K in keyof T as K]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PopoverPlacement } from './internal/anchored-position.cjs';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/** ボタンに対するパネルの表示位置。収まらないときは反対側に出す */
|
|
4
|
+
placement?: PopoverPlacement;
|
|
5
|
+
/** ボタンを指す矢印をパネルに付ける */
|
|
6
|
+
arrow?: boolean;
|
|
7
|
+
/** ボタンの読み上げ名。aria-label 属性を渡したときはそちらが優先される */
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Emits {
|
|
11
|
+
(e: 'emit:open'): void;
|
|
12
|
+
(e: 'emit:close'): void;
|
|
13
|
+
}
|
|
14
|
+
export interface Slots {
|
|
15
|
+
/** ボタンのアイコン */
|
|
16
|
+
icon?(): unknown;
|
|
17
|
+
/** パネルに表示する中身 */
|
|
18
|
+
default?(): unknown;
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Slots = Slots;
|
|
21
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
22
|
+
"emit:open": () => any;
|
|
23
|
+
"emit:close": () => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
25
|
+
"onEmit:open"?: (() => any) | undefined;
|
|
26
|
+
"onEmit:close"?: (() => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
label: string;
|
|
29
|
+
placement: PopoverPlacement;
|
|
30
|
+
arrow: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|