@digitalwalletcorp/vue-core 1.0.1 → 1.2.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 +7 -4
- package/lib/accordion-fieldset.cjs +1 -1
- package/lib/accordion-fieldset.d.cts +25 -0
- package/lib/accordion-fieldset.d.ts +0 -2
- package/lib/accordion-fieldset.js +1 -1
- package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-n-IZxUiu.js +66 -0
- package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-t9NqmoZW.cjs +1 -0
- package/lib/accordion-section.cjs +1 -0
- package/lib/accordion-section.d.cts +34 -0
- package/lib/accordion-section.d.ts +34 -0
- package/lib/accordion-section.js +4 -0
- package/lib/accordion-section.vue_vue_type_style_index_0_lang-CFDdUEnn.cjs +1 -0
- package/lib/accordion-section.vue_vue_type_style_index_0_lang-Gvjjx02P.js +78 -0
- package/lib/components-CNOeuZPu.cjs +1 -0
- package/lib/components-DBK8NUBh.js +24 -0
- package/lib/components.d.cts +9 -0
- package/lib/components.d.ts +3 -0
- package/lib/global.d.cts +7 -0
- package/lib/hourglass-loading.d.cts +23 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +3 -0
- package/lib/index.js +18 -12
- package/lib/internal/tab-group-context.d.cts +16 -0
- package/lib/internal/use-shrinkable.d.cts +12 -0
- package/lib/internal/use-shrinkable.d.ts +12 -0
- package/lib/label-button.cjs +1 -1
- package/lib/label-button.d.cts +30 -0
- package/lib/label-button.js +1 -1
- package/lib/{label-button.vue_vue_type_script_setup_true_lang-DqhdCgmJ.cjs → label-button.vue_vue_type_script_setup_true_lang-BwVOxaJP.cjs} +1 -1
- package/lib/{label-button.vue_vue_type_script_setup_true_lang-CoHrTUSs.js → label-button.vue_vue_type_script_setup_true_lang-DorC4pKz.js} +1 -1
- package/lib/label-icon.cjs +1 -1
- package/lib/label-icon.d.cts +30 -0
- package/lib/label-icon.js +1 -1
- package/lib/{label-icon.vue_vue_type_style_index_0_lang-C2URq6GP.cjs → label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs} +1 -1
- package/lib/{label-icon.vue_vue_type_style_index_0_lang-bQFkQ_gC.js → label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js} +1 -1
- package/lib/nuxt.cjs +1 -1
- package/lib/nuxt.d.cts +10 -0
- package/lib/nuxt.js +1 -1
- package/lib/page-section.cjs +1 -0
- package/lib/page-section.d.cts +34 -0
- package/lib/page-section.d.ts +34 -0
- package/lib/page-section.js +4 -0
- package/lib/page-section.vue_vue_type_style_index_0_lang-DEAkTLxd.cjs +1 -0
- package/lib/page-section.vue_vue_type_style_index_0_lang-DpVQe_rV.js +54 -0
- package/lib/page-title.cjs +1 -0
- package/lib/page-title.d.cts +20 -0
- package/lib/page-title.d.ts +20 -0
- package/lib/page-title.js +4 -0
- package/lib/page-title.vue_vue_type_style_index_0_lang-BqIsIks5.cjs +1 -0
- package/lib/page-title.vue_vue_type_style_index_0_lang-ChZot85K.js +36 -0
- package/lib/register.cjs +1 -1
- package/lib/register.d.cts +9 -0
- package/lib/register.js +1 -1
- package/lib/style.css +1 -1
- package/lib/tab-content.d.cts +39 -0
- package/lib/tab-group.cjs +1 -1
- package/lib/tab-group.d.cts +44 -0
- package/lib/tab-group.js +1 -1
- package/lib/{tab-group.vue_vue_type_style_index_0_lang-CjnBkvvZ.js → tab-group.vue_vue_type_style_index_0_lang-C84mDEOC.js} +1 -1
- package/lib/{tab-group.vue_vue_type_style_index_0_lang-CwVGYZAo.cjs → tab-group.vue_vue_type_style_index_0_lang-CMaufRJV.cjs} +1 -1
- package/lib/types/label-preset.d.cts +12 -0
- package/lib/use-shrinkable-CS2bmsJJ.js +17 -0
- package/lib/use-shrinkable-Cu9JQZll.cjs +1 -0
- package/package.json +25 -10
- package/src/accordion-fieldset.vue +4 -35
- package/src/accordion-section.vue +194 -0
- package/src/components.ts +3 -0
- package/src/internal/use-shrinkable.ts +37 -0
- package/src/label-icon.vue +2 -2
- package/src/page-section.vue +103 -0
- package/src/page-title.vue +56 -0
- package/src/tab-content.vue +7 -7
- package/src/tab-group.vue +15 -15
- package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-Cod0KnrE.cjs +0 -1
- package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-Dk5Id0dl.js +0 -79
- package/lib/components-CvmuAs2C.cjs +0 -1
- package/lib/components-p1BluzXb.js +0 -18
package/README.md
CHANGED
|
@@ -101,10 +101,10 @@ We recommend keeping a `vue-core-variables.css` in your application that connect
|
|
|
101
101
|
```css
|
|
102
102
|
/* vue-core-variables.css */
|
|
103
103
|
:root {
|
|
104
|
-
--dwui-tab-header
|
|
105
|
-
--dwui-tab-header
|
|
106
|
-
--dwui-tab-header-selected
|
|
107
|
-
--dwui-tab-header-selected
|
|
104
|
+
--dwui-background-tab-header: var(--app-tab-header-background);
|
|
105
|
+
--dwui-color-text-tab-header: var(--app-tab-header-text);
|
|
106
|
+
--dwui-background-tab-header-selected: var(--app-tab-header-selected-background);
|
|
107
|
+
--dwui-color-text-tab-header-selected: var(--app-tab-header-selected-text);
|
|
108
108
|
}
|
|
109
109
|
```
|
|
110
110
|
|
|
@@ -125,9 +125,12 @@ export default defineNuxtConfig({
|
|
|
125
125
|
| Component | Description |
|
|
126
126
|
| --------- | ----------- |
|
|
127
127
|
| [`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. |
|
|
128
|
+
| [`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. |
|
|
128
129
|
| [`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. |
|
|
129
130
|
| [`LabelIcon`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/label-icon.md) | Displays an icon and a text label side by side. |
|
|
130
131
|
| [`LabelButton`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/label-button.md) | Renders a button containing an icon and a text label. |
|
|
132
|
+
| [`PageSection`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/page-section.md) | A section of a page with a heading. |
|
|
133
|
+
| [`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. |
|
|
131
134
|
| [`TabGroup` / `TabContent`](https://github.com/digitalwalletcorp/vue-core/blob/main/docs/components/tab-group.md) | Switches between contents with tab headers. |
|
|
132
135
|
|
|
133
136
|
#### 📜 License
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./accordion-fieldset.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./accordion-fieldset.vue_vue_type_style_index_0_lang-t9NqmoZW.cjs");exports.default=e._sfc_main;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/** 凡例の文字。HTMLを含める場合は#legendスロットを使う */
|
|
3
|
+
legend?: string;
|
|
4
|
+
/** trueの場合、fieldsetを無効にする */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** trueの場合、開いた状態で表示する デフォルト false */
|
|
7
|
+
initialExpand?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface Slots {
|
|
10
|
+
/** 凡例の文字の前に表示するアイコン */
|
|
11
|
+
icon?(): unknown;
|
|
12
|
+
/** 凡例。legendより優先する */
|
|
13
|
+
legend?(): unknown;
|
|
14
|
+
default?(): unknown;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Slots = Slots;
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as f, useSlots as m, ref as g, reactive as x, onMounted as _, openBlock as i, createElementBlock as k, createElementVNode as d, createVNode as C, unref as s, createBlock as b, createSlots as y, withCtx as r, renderSlot as l, createTextVNode as h, toDisplayString as w, createCommentVNode as B, normalizeClass as S } from "vue";
|
|
2
|
+
import { SvgTriangleButton as v } from "@digitalwalletcorp/vue-svg-icons";
|
|
3
|
+
import { _ as E } from "./label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js";
|
|
4
|
+
import { u as N } from "./use-shrinkable-CS2bmsJJ.js";
|
|
5
|
+
const V = ["disabled"], $ = ["aria-expanded"], q = /* @__PURE__ */ f({
|
|
6
|
+
__name: "accordion-fieldset",
|
|
7
|
+
props: {
|
|
8
|
+
legend: {},
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
initialExpand: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
setup(c) {
|
|
13
|
+
const n = c, o = m(), a = g(), e = x({
|
|
14
|
+
expanded: !0
|
|
15
|
+
}), p = N(a), u = () => {
|
|
16
|
+
e.expanded = !e.expanded;
|
|
17
|
+
};
|
|
18
|
+
return _(() => {
|
|
19
|
+
e.expanded = !!n.initialExpand;
|
|
20
|
+
}), (t, T) => (i(), k("fieldset", {
|
|
21
|
+
class: "dwui-accordion-fieldset",
|
|
22
|
+
disabled: n.disabled
|
|
23
|
+
}, [
|
|
24
|
+
d("legend", null, [
|
|
25
|
+
d("button", {
|
|
26
|
+
type: "button",
|
|
27
|
+
class: "dwui-accordion-toggle",
|
|
28
|
+
"aria-expanded": e.expanded,
|
|
29
|
+
onClick: u
|
|
30
|
+
}, [
|
|
31
|
+
C(s(v), {
|
|
32
|
+
direction: e.expanded ? "up" : "down"
|
|
33
|
+
}, null, 8, ["direction"]),
|
|
34
|
+
n.legend != null || o.legend != null || o.icon != null ? (i(), b(E, { key: 0 }, y({ _: 2 }, [
|
|
35
|
+
o.icon != null ? {
|
|
36
|
+
name: "icon",
|
|
37
|
+
fn: r(() => [
|
|
38
|
+
l(t.$slots, "icon")
|
|
39
|
+
]),
|
|
40
|
+
key: "0"
|
|
41
|
+
} : void 0,
|
|
42
|
+
n.legend != null || o.legend != null ? {
|
|
43
|
+
name: "default",
|
|
44
|
+
fn: r(() => [
|
|
45
|
+
l(t.$slots, "legend", {}, () => [
|
|
46
|
+
h(w(n.legend), 1)
|
|
47
|
+
])
|
|
48
|
+
]),
|
|
49
|
+
key: "1"
|
|
50
|
+
} : void 0
|
|
51
|
+
]), 1024)) : B("", !0)
|
|
52
|
+
], 8, $)
|
|
53
|
+
]),
|
|
54
|
+
d("div", {
|
|
55
|
+
ref_key: "refContents",
|
|
56
|
+
ref: a,
|
|
57
|
+
class: S(["dwui-accordion-contents", s(p) ? e.expanded ? "dwui-expanded" : "dwui-shrunk" : ""])
|
|
58
|
+
}, [
|
|
59
|
+
l(t.$slots, "default")
|
|
60
|
+
], 2)
|
|
61
|
+
], 8, V));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
q as _
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),r=require("@digitalwalletcorp/vue-svg-icons"),c=require("./label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs"),u=require("./use-shrinkable-Cu9JQZll.cjs"),p=["disabled"],_=["aria-expanded"],f=e.defineComponent({__name:"accordion-fieldset",props:{legend:{},disabled:{type:Boolean},initialExpand:{type:Boolean}},setup(a){const t=a,o=e.useSlots(),l=e.ref(),n=e.reactive({expanded:!0}),i=u.useShrinkable(l),s=()=>{n.expanded=!n.expanded};return e.onMounted(()=>{n.expanded=!!t.initialExpand}),(d,g)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"dwui-accordion-fieldset",disabled:t.disabled},[e.createElementVNode("legend",null,[e.createElementVNode("button",{type:"button",class:"dwui-accordion-toggle","aria-expanded":n.expanded,onClick:s},[e.createVNode(e.unref(r.SvgTriangleButton),{direction:n.expanded?"up":"down"},null,8,["direction"]),t.legend!=null||o.legend!=null||o.icon!=null?(e.openBlock(),e.createBlock(c._sfc_main,{key:0},e.createSlots({_:2},[o.icon!=null?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"icon")]),key:"0"}:void 0,t.legend!=null||o.legend!=null?{name:"default",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"legend",{},()=>[e.createTextVNode(e.toDisplayString(t.legend),1)])]),key:"1"}:void 0]),1024)):e.createCommentVNode("",!0)],8,_)]),e.createElementVNode("div",{ref_key:"refContents",ref:l,class:e.normalizeClass(["dwui-accordion-contents",e.unref(i)?n.expanded?"dwui-expanded":"dwui-shrunk":""])},[e.renderSlot(d.$slots,"default")],2)],8,p))}});exports._sfc_main=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./accordion-section.vue_vue_type_style_index_0_lang-CFDdUEnn.cjs");exports.default=e._sfc_main;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LabelPreset } from './types/label-preset.cjs';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** trueの場合、開閉ボタンを無効にする */
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** trueの場合、開いた状態で表示する デフォルト false */
|
|
6
|
+
initialExpand?: boolean;
|
|
7
|
+
/** trueの場合、縮めたときに中身の下側をぼかさない */
|
|
8
|
+
noGradient?: boolean;
|
|
9
|
+
/** 縮めているときの開閉ボタン(開く)のラベル */
|
|
10
|
+
openLabel?: string;
|
|
11
|
+
/** 開いているときの開閉ボタン(閉じる)のラベル */
|
|
12
|
+
closeLabel?: string;
|
|
13
|
+
/** 縮めているときの開閉ボタン(開く)のアイコンとラベル */
|
|
14
|
+
openPreset?: LabelPreset;
|
|
15
|
+
/** 開いているときの開閉ボタン(閉じる)のアイコンとラベル */
|
|
16
|
+
closePreset?: LabelPreset;
|
|
17
|
+
}
|
|
18
|
+
interface Slots {
|
|
19
|
+
/** 縮めているときの開閉ボタン(開く)のアイコン */
|
|
20
|
+
'open-icon'?(): unknown;
|
|
21
|
+
/** 開いているときの開閉ボタン(閉じる)のアイコン */
|
|
22
|
+
'close-icon'?(): unknown;
|
|
23
|
+
default?(): unknown;
|
|
24
|
+
}
|
|
25
|
+
type __VLS_Slots = Slots;
|
|
26
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, 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
|
+
import { LabelPreset } from './types/label-preset';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** trueの場合、開閉ボタンを無効にする */
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** trueの場合、開いた状態で表示する デフォルト false */
|
|
6
|
+
initialExpand?: boolean;
|
|
7
|
+
/** trueの場合、縮めたときに中身の下側をぼかさない */
|
|
8
|
+
noGradient?: boolean;
|
|
9
|
+
/** 縮めているときの開閉ボタン(開く)のラベル */
|
|
10
|
+
openLabel?: string;
|
|
11
|
+
/** 開いているときの開閉ボタン(閉じる)のラベル */
|
|
12
|
+
closeLabel?: string;
|
|
13
|
+
/** 縮めているときの開閉ボタン(開く)のアイコンとラベル */
|
|
14
|
+
openPreset?: LabelPreset;
|
|
15
|
+
/** 開いているときの開閉ボタン(閉じる)のアイコンとラベル */
|
|
16
|
+
closePreset?: LabelPreset;
|
|
17
|
+
}
|
|
18
|
+
interface Slots {
|
|
19
|
+
/** 縮めているときの開閉ボタン(開く)のアイコン */
|
|
20
|
+
'open-icon'?(): unknown;
|
|
21
|
+
/** 開いているときの開閉ボタン(閉じる)のアイコン */
|
|
22
|
+
'close-icon'?(): unknown;
|
|
23
|
+
default?(): unknown;
|
|
24
|
+
}
|
|
25
|
+
type __VLS_Slots = Slots;
|
|
26
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, 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 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),k=require("@digitalwalletcorp/vue-svg-icons"),v=require("./label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs"),x=require("./use-shrinkable-Cu9JQZll.cjs"),f={class:"dwui-accordion-section"},g={key:0,class:"dwui-accordion-section-control"},m=["disabled","aria-expanded"],b=e.defineComponent({__name:"accordion-section",props:{disabled:{type:Boolean},initialExpand:{type:Boolean},noGradient:{type:Boolean},openLabel:{},closeLabel:{},openPreset:{},closePreset:{}},setup(u){const o=u,l=e.useSlots(),r=e.ref(),n=e.reactive({expanded:!0}),d=x.useShrinkable(r),s=e.computed(()=>n.expanded?o.closePreset:o.openPreset),a=()=>(n.expanded?l["close-icon"]:l["open-icon"])??s.value?.icon,p=()=>(n.expanded?l["close-icon"]:l["open-icon"])==null?s.value?.iconProps:void 0,i=e.computed(()=>{const t=n.expanded?o.closeLabel:o.openLabel;if(t!=null)return t;const c=s.value?.label;return typeof c=="function"?c():c}),_=()=>{n.expanded=!n.expanded};return e.onMounted(()=>{n.expanded=!!o.initialExpand}),(t,c)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",{ref_key:"refContents",ref:r,class:e.normalizeClass(["dwui-accordion-section-contents",[e.unref(d)?n.expanded?"dwui-expanded":"dwui-shrunk":"",{"dwui-no-gradient":o.noGradient}]])},[e.renderSlot(t.$slots,"default")],2),e.unref(d)?(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("button",{type:"button",class:"dwui-accordion-section-toggle",disabled:o.disabled,"aria-expanded":n.expanded,onClick:e.withModifiers(_,["stop"])},[a()!=null||i.value!=null?(e.openBlock(),e.createBlock(v._sfc_main,{key:0},e.createSlots({_:2},[a()!=null?{name:"icon",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a()),e.normalizeProps(e.guardReactiveProps(p())),null,16))]),key:"0"}:void 0,i.value!=null?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value),1)]),key:"1"}:void 0]),1024)):(e.openBlock(),e.createBlock(e.unref(k.SvgTriangleButton),{key:1,direction:n.expanded?"up":"down"},null,8,["direction"]))],8,m)])):e.createCommentVNode("",!0)]))}});exports._sfc_main=b;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as k, useSlots as y, ref as w, reactive as C, computed as m, onMounted as h, openBlock as t, createElementBlock as f, createElementVNode as x, normalizeClass as P, unref as d, renderSlot as B, withModifiers as L, createBlock as r, createSlots as S, withCtx as g, resolveDynamicComponent as E, normalizeProps as N, guardReactiveProps as T, createTextVNode as V, toDisplayString as z, createCommentVNode as D } from "vue";
|
|
2
|
+
import { SvgTriangleButton as G } from "@digitalwalletcorp/vue-svg-icons";
|
|
3
|
+
import { _ as I } from "./label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js";
|
|
4
|
+
import { u as M } from "./use-shrinkable-CS2bmsJJ.js";
|
|
5
|
+
const $ = { class: "dwui-accordion-section" }, R = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "dwui-accordion-section-control"
|
|
8
|
+
}, j = ["disabled", "aria-expanded"], J = /* @__PURE__ */ k({
|
|
9
|
+
__name: "accordion-section",
|
|
10
|
+
props: {
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
initialExpand: { type: Boolean },
|
|
13
|
+
noGradient: { type: Boolean },
|
|
14
|
+
openLabel: {},
|
|
15
|
+
closeLabel: {},
|
|
16
|
+
openPreset: {},
|
|
17
|
+
closePreset: {}
|
|
18
|
+
},
|
|
19
|
+
setup(_) {
|
|
20
|
+
const o = _, s = y(), p = w(), e = C({
|
|
21
|
+
expanded: !0
|
|
22
|
+
}), u = M(p), l = m(() => e.expanded ? o.closePreset : o.openPreset), i = () => (e.expanded ? s["close-icon"] : s["open-icon"]) ?? l.value?.icon, b = () => (e.expanded ? s["close-icon"] : s["open-icon"]) == null ? l.value?.iconProps : void 0, c = m(() => {
|
|
23
|
+
const n = e.expanded ? o.closeLabel : o.openLabel;
|
|
24
|
+
if (n != null)
|
|
25
|
+
return n;
|
|
26
|
+
const a = l.value?.label;
|
|
27
|
+
return typeof a == "function" ? a() : a;
|
|
28
|
+
}), v = () => {
|
|
29
|
+
e.expanded = !e.expanded;
|
|
30
|
+
};
|
|
31
|
+
return h(() => {
|
|
32
|
+
e.expanded = !!o.initialExpand;
|
|
33
|
+
}), (n, a) => (t(), f("div", $, [
|
|
34
|
+
x("div", {
|
|
35
|
+
ref_key: "refContents",
|
|
36
|
+
ref: p,
|
|
37
|
+
class: P(["dwui-accordion-section-contents", [
|
|
38
|
+
d(u) ? e.expanded ? "dwui-expanded" : "dwui-shrunk" : "",
|
|
39
|
+
{ "dwui-no-gradient": o.noGradient }
|
|
40
|
+
]])
|
|
41
|
+
}, [
|
|
42
|
+
B(n.$slots, "default")
|
|
43
|
+
], 2),
|
|
44
|
+
d(u) ? (t(), f("div", R, [
|
|
45
|
+
x("button", {
|
|
46
|
+
type: "button",
|
|
47
|
+
class: "dwui-accordion-section-toggle",
|
|
48
|
+
disabled: o.disabled,
|
|
49
|
+
"aria-expanded": e.expanded,
|
|
50
|
+
onClick: L(v, ["stop"])
|
|
51
|
+
}, [
|
|
52
|
+
i() != null || c.value != null ? (t(), r(I, { key: 0 }, S({ _: 2 }, [
|
|
53
|
+
i() != null ? {
|
|
54
|
+
name: "icon",
|
|
55
|
+
fn: g(() => [
|
|
56
|
+
(t(), r(E(i()), N(T(b())), null, 16))
|
|
57
|
+
]),
|
|
58
|
+
key: "0"
|
|
59
|
+
} : void 0,
|
|
60
|
+
c.value != null ? {
|
|
61
|
+
name: "default",
|
|
62
|
+
fn: g(() => [
|
|
63
|
+
V(z(c.value), 1)
|
|
64
|
+
]),
|
|
65
|
+
key: "1"
|
|
66
|
+
} : void 0
|
|
67
|
+
]), 1024)) : (t(), r(d(G), {
|
|
68
|
+
key: 1,
|
|
69
|
+
direction: e.expanded ? "up" : "down"
|
|
70
|
+
}, null, 8, ["direction"]))
|
|
71
|
+
], 8, j)
|
|
72
|
+
])) : D("", !0)
|
|
73
|
+
]));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
J as _
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./accordion-fieldset.vue_vue_type_style_index_0_lang-t9NqmoZW.cjs"),_=require("./accordion-section.vue_vue_type_style_index_0_lang-CFDdUEnn.cjs"),n=require("./hourglass-loading.vue_vue_type_style_index_0_lang-C72UVA9W.cjs"),t=require("./label-button.vue_vue_type_script_setup_true_lang-BwVOxaJP.cjs"),i=require("./label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs"),o=require("./page-section.vue_vue_type_style_index_0_lang-DEAkTLxd.cjs"),c=require("./page-title.vue_vue_type_style_index_0_lang-BqIsIks5.cjs"),s=require("./tab-content.vue_vue_type_style_index_0_lang-BeCi7Xkp.cjs"),u=require("./tab-group.vue_vue_type_style_index_0_lang-CMaufRJV.cjs"),a=Object.freeze(Object.defineProperty({__proto__:null,AccordionFieldset:e._sfc_main,AccordionSection:_._sfc_main,HourglassLoading:n._sfc_main,LabelButton:t._sfc_main,LabelIcon:i._sfc_main,PageSection:o._sfc_main,PageTitle:c._sfc_main,TabContent:s._sfc_main,TabGroup:u._sfc_main},Symbol.toStringTag,{value:"Module"}));exports.components=a;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { _ as o } from "./accordion-fieldset.vue_vue_type_style_index_0_lang-n-IZxUiu.js";
|
|
2
|
+
import { _ } from "./accordion-section.vue_vue_type_style_index_0_lang-Gvjjx02P.js";
|
|
3
|
+
import { _ as a } from "./hourglass-loading.vue_vue_type_style_index_0_lang-DkUGIxQ2.js";
|
|
4
|
+
import { _ as m } from "./label-button.vue_vue_type_script_setup_true_lang-DorC4pKz.js";
|
|
5
|
+
import { _ as r } from "./label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js";
|
|
6
|
+
import { _ as i } from "./page-section.vue_vue_type_style_index_0_lang-DpVQe_rV.js";
|
|
7
|
+
import { _ as t } from "./page-title.vue_vue_type_style_index_0_lang-ChZot85K.js";
|
|
8
|
+
import { _ as n } from "./tab-content.vue_vue_type_style_index_0_lang-CcQLHmIF.js";
|
|
9
|
+
import { _ as s } from "./tab-group.vue_vue_type_style_index_0_lang-C84mDEOC.js";
|
|
10
|
+
const u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
+
__proto__: null,
|
|
12
|
+
AccordionFieldset: o,
|
|
13
|
+
AccordionSection: _,
|
|
14
|
+
HourglassLoading: a,
|
|
15
|
+
LabelButton: m,
|
|
16
|
+
LabelIcon: r,
|
|
17
|
+
PageSection: i,
|
|
18
|
+
PageTitle: t,
|
|
19
|
+
TabContent: n,
|
|
20
|
+
TabGroup: s
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
22
|
+
export {
|
|
23
|
+
u as c
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AccordionFieldset } from './accordion-fieldset.cjs';
|
|
2
|
+
export { default as AccordionSection } from './accordion-section.cjs';
|
|
3
|
+
export { default as HourglassLoading } from './hourglass-loading.cjs';
|
|
4
|
+
export { default as LabelButton } from './label-button.cjs';
|
|
5
|
+
export { default as LabelIcon } from './label-icon.cjs';
|
|
6
|
+
export { default as PageSection } from './page-section.cjs';
|
|
7
|
+
export { default as PageTitle } from './page-title.cjs';
|
|
8
|
+
export { default as TabContent } from './tab-content.cjs';
|
|
9
|
+
export { default as TabGroup } from './tab-group.cjs';
|
package/lib/components.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { default as AccordionFieldset } from './accordion-fieldset';
|
|
2
|
+
export { default as AccordionSection } from './accordion-section';
|
|
2
3
|
export { default as HourglassLoading } from './hourglass-loading';
|
|
3
4
|
export { default as LabelButton } from './label-button';
|
|
4
5
|
export { default as LabelIcon } from './label-icon';
|
|
6
|
+
export { default as PageSection } from './page-section';
|
|
7
|
+
export { default as PageTitle } from './page-title';
|
|
5
8
|
export { default as TabContent } from './tab-content';
|
|
6
9
|
export { default as TabGroup } from './tab-group';
|
package/lib/global.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
/** ローディング表示するか */
|
|
3
|
+
loading: boolean;
|
|
4
|
+
/** 砂が落ち切るまでの秒数。未指定ならSvgHourglassの既定値に任せる */
|
|
5
|
+
duration?: number;
|
|
6
|
+
/** 表示サイズ(高さ)。数値はpxとして扱う */
|
|
7
|
+
size?: number | string;
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_8: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_8) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
size: number | string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./accordion-fieldset.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./accordion-fieldset.vue_vue_type_style_index_0_lang-t9NqmoZW.cjs"),_=require("./accordion-section.vue_vue_type_style_index_0_lang-CFDdUEnn.cjs"),n=require("./hourglass-loading.vue_vue_type_style_index_0_lang-C72UVA9W.cjs"),t=require("./label-button.vue_vue_type_script_setup_true_lang-BwVOxaJP.cjs"),i=require("./label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs"),a=require("./page-section.vue_vue_type_style_index_0_lang-DEAkTLxd.cjs"),u=require("./page-title.vue_vue_type_style_index_0_lang-BqIsIks5.cjs"),o=require("./tab-content.vue_vue_type_style_index_0_lang-BeCi7Xkp.cjs"),s=require("./tab-group.vue_vue_type_style_index_0_lang-CMaufRJV.cjs");exports.AccordionFieldset=e._sfc_main;exports.AccordionSection=_._sfc_main;exports.HourglassLoading=n._sfc_main;exports.LabelButton=t._sfc_main;exports.LabelIcon=i._sfc_main;exports.PageSection=a._sfc_main;exports.PageTitle=u._sfc_main;exports.TabContent=o._sfc_main;exports.TabGroup=s._sfc_main;
|
package/lib/index.d.cts
ADDED
package/lib/index.js
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as t } from "./
|
|
3
|
-
import { _ as p } from "./
|
|
4
|
-
import { _ as m } from "./label-
|
|
5
|
-
import { _ as x } from "./
|
|
6
|
-
import { _ as
|
|
1
|
+
import { _ as e } from "./accordion-fieldset.vue_vue_type_style_index_0_lang-n-IZxUiu.js";
|
|
2
|
+
import { _ as t } from "./accordion-section.vue_vue_type_style_index_0_lang-Gvjjx02P.js";
|
|
3
|
+
import { _ as p } from "./hourglass-loading.vue_vue_type_style_index_0_lang-DkUGIxQ2.js";
|
|
4
|
+
import { _ as m } from "./label-button.vue_vue_type_script_setup_true_lang-DorC4pKz.js";
|
|
5
|
+
import { _ as x } from "./label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js";
|
|
6
|
+
import { _ as c } from "./page-section.vue_vue_type_style_index_0_lang-DpVQe_rV.js";
|
|
7
|
+
import { _ as l } from "./page-title.vue_vue_type_style_index_0_lang-ChZot85K.js";
|
|
8
|
+
import { _ as d } from "./tab-content.vue_vue_type_style_index_0_lang-CcQLHmIF.js";
|
|
9
|
+
import { _ as u } from "./tab-group.vue_vue_type_style_index_0_lang-C84mDEOC.js";
|
|
7
10
|
export {
|
|
8
|
-
|
|
9
|
-
t as
|
|
10
|
-
p as
|
|
11
|
-
m as
|
|
12
|
-
x as
|
|
13
|
-
|
|
11
|
+
e as AccordionFieldset,
|
|
12
|
+
t as AccordionSection,
|
|
13
|
+
p as HourglassLoading,
|
|
14
|
+
m as LabelButton,
|
|
15
|
+
x as LabelIcon,
|
|
16
|
+
c as PageSection,
|
|
17
|
+
l as PageTitle,
|
|
18
|
+
d as TabContent,
|
|
19
|
+
u as TabGroup
|
|
14
20
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey, Ref, Slot } from 'vue';
|
|
2
|
+
/** タブの見出しの状態 */
|
|
3
|
+
export type TabContentStatus = 'warn' | 'error';
|
|
4
|
+
/**
|
|
5
|
+
* TabGroupからTabContentへ渡す状態
|
|
6
|
+
* TabGroupとTabContentの間だけで使い、利用側には公開しない
|
|
7
|
+
*/
|
|
8
|
+
export interface TabGroupContext {
|
|
9
|
+
/** 選択中のタブのlabelId */
|
|
10
|
+
activeLabelId: ComputedRef<string | undefined>;
|
|
11
|
+
/** TabGroupがマウント済みか */
|
|
12
|
+
mounted: Ref<boolean>;
|
|
13
|
+
/** TabGroupの#loadingスロット。未指定ならTabContentは既定の読み込み中表示を出す */
|
|
14
|
+
loadingSlot: () => Slot | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare const tabGroupContextKey: InjectionKey<TabGroupContext>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/** 縮めたときの中身の高さ(px)。中身がこれより低い場合は開閉しない */
|
|
3
|
+
export declare const SHRUNK_HEIGHT = 70;
|
|
4
|
+
/**
|
|
5
|
+
* 中身が縮めたときの高さ以上あり、開閉できるかを返す
|
|
6
|
+
* 中身の大きさが変わるたびに測り直すため、隠れたタブの中にあって後から表示された場合や、中身が増減した場合も再判定される
|
|
7
|
+
* 縮めている間も中身の本来の高さで判定する
|
|
8
|
+
*
|
|
9
|
+
* @param {Ref<HTMLElement | undefined>} contents 開閉する中身の要素
|
|
10
|
+
* @returns {Ref<boolean>}
|
|
11
|
+
*/
|
|
12
|
+
export declare function useShrinkable(contents: Ref<HTMLElement | undefined>): Ref<boolean>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/** 縮めたときの中身の高さ(px)。中身がこれより低い場合は開閉しない */
|
|
3
|
+
export declare const SHRUNK_HEIGHT = 70;
|
|
4
|
+
/**
|
|
5
|
+
* 中身が縮めたときの高さ以上あり、開閉できるかを返す
|
|
6
|
+
* 中身の大きさが変わるたびに測り直すため、隠れたタブの中にあって後から表示された場合や、中身が増減した場合も再判定される
|
|
7
|
+
* 縮めている間も中身の本来の高さで判定する
|
|
8
|
+
*
|
|
9
|
+
* @param {Ref<HTMLElement | undefined>} contents 開閉する中身の要素
|
|
10
|
+
* @returns {Ref<boolean>}
|
|
11
|
+
*/
|
|
12
|
+
export declare function useShrinkable(contents: Ref<HTMLElement | undefined>): Ref<boolean>;
|
package/lib/label-button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./label-button.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./label-button.vue_vue_type_script_setup_true_lang-BwVOxaJP.cjs");exports.default=e._sfc_main;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ClassValue, StyleValue } from 'vue';
|
|
2
|
+
import { LabelPreset } from './types/label-preset.cjs';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** アイコンとラベルの組み合わせ */
|
|
5
|
+
preset?: LabelPreset;
|
|
6
|
+
/** アイコンとラベルの間隔。未指定ならLabelIconの既定値(0.25em) */
|
|
7
|
+
gap?: string;
|
|
8
|
+
/** presetのアイコンに付けるclass。スロットで渡したアイコンには、スロット側で直接指定する */
|
|
9
|
+
iconClass?: ClassValue;
|
|
10
|
+
/** presetのアイコンに付けるstyle。スロットで渡したアイコンには、スロット側で直接指定する */
|
|
11
|
+
iconStyle?: StyleValue;
|
|
12
|
+
/** ラベルに付けるclass */
|
|
13
|
+
labelClass?: ClassValue;
|
|
14
|
+
/** ラベルに付けるstyle */
|
|
15
|
+
labelStyle?: StyleValue;
|
|
16
|
+
}
|
|
17
|
+
interface Slots {
|
|
18
|
+
icon?(): unknown;
|
|
19
|
+
default?(): unknown;
|
|
20
|
+
}
|
|
21
|
+
type __VLS_Slots = Slots;
|
|
22
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
package/lib/label-button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./label-icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs"),o=e.defineComponent({__name:"label-button",props:{preset:{},gap:{},iconClass:{type:[Boolean,null,String,Object,Array]},iconStyle:{type:[Boolean,null,String,Object,Array]},labelClass:{type:[Boolean,null,String,Object,Array]},labelStyle:{type:[Boolean,null,String,Object,Array]}},setup(s){const l=s,t=e.useSlots();return(n,c)=>(e.openBlock(),e.createElementBlock("button",null,[e.createVNode(a._sfc_main,{preset:l.preset,gap:l.gap,"icon-class":l.iconClass,"icon-style":l.iconStyle,"label-class":l.labelClass,"label-style":l.labelStyle},e.createSlots({_:2},[t.icon!=null?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"icon")]),key:"0"}:void 0,t.default!=null?{name:"default",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),key:"1"}:void 0]),1032,["preset","gap","icon-class","icon-style","label-class","label-style"])]))}});exports._sfc_main=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, useSlots as r, openBlock as c, createElementBlock as i, createVNode as p, createSlots as y, withCtx as n, renderSlot as o } from "vue";
|
|
2
|
-
import { _ as u } from "./label-icon.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as u } from "./label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js";
|
|
3
3
|
const f = /* @__PURE__ */ s({
|
|
4
4
|
__name: "label-button",
|
|
5
5
|
props: {
|
package/lib/label-icon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./label-icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs");exports.default=e._sfc_main;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ClassValue, StyleValue } from 'vue';
|
|
2
|
+
import { LabelPreset } from './types/label-preset.cjs';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** アイコンとラベルの組み合わせ */
|
|
5
|
+
preset?: LabelPreset;
|
|
6
|
+
/** アイコンとラベルの間隔。未指定なら既定値(0.25em) */
|
|
7
|
+
gap?: string;
|
|
8
|
+
/** presetのアイコンに付けるclass。スロットで渡したアイコンには、スロット側で直接指定する */
|
|
9
|
+
iconClass?: ClassValue;
|
|
10
|
+
/** presetのアイコンに付けるstyle。スロットで渡したアイコンには、スロット側で直接指定する */
|
|
11
|
+
iconStyle?: StyleValue;
|
|
12
|
+
/** ラベルに付けるclass */
|
|
13
|
+
labelClass?: ClassValue;
|
|
14
|
+
/** ラベルに付けるstyle */
|
|
15
|
+
labelStyle?: StyleValue;
|
|
16
|
+
}
|
|
17
|
+
interface Slots {
|
|
18
|
+
icon?(): unknown;
|
|
19
|
+
default?(): unknown;
|
|
20
|
+
}
|
|
21
|
+
type __VLS_Slots = Slots;
|
|
22
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
package/lib/label-icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),s=e.defineComponent({__name:"label-icon",props:{preset:{},gap:{},iconClass:{type:[Boolean,null,String,Object,Array]},iconStyle:{type:[Boolean,null,String,Object,Array]},labelClass:{type:[Boolean,null,String,Object,Array]},labelStyle:{type:[Boolean,null,String,Object,Array]}},setup(n){const l=n,o=e.useSlots();return(t,a)=>(e.openBlock(),e.createElementBlock("span",{class:"dwui-label-icon",style:e.normalizeStyle(l.gap==null?void 0:{"--dwui-label-icon
|
|
1
|
+
"use strict";const e=require("vue"),s=e.defineComponent({__name:"label-icon",props:{preset:{},gap:{},iconClass:{type:[Boolean,null,String,Object,Array]},iconStyle:{type:[Boolean,null,String,Object,Array]},labelClass:{type:[Boolean,null,String,Object,Array]},labelStyle:{type:[Boolean,null,String,Object,Array]}},setup(n){const l=n,o=e.useSlots();return(t,a)=>(e.openBlock(),e.createElementBlock("span",{class:"dwui-label-icon",style:e.normalizeStyle(l.gap==null?void 0:{"--dwui-gap-label-icon":l.gap})},[e.renderSlot(t.$slots,"icon",{},()=>[l.preset!=null?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.preset.icon),e.mergeProps({key:0},l.preset.iconProps,{class:l.iconClass,style:l.iconStyle}),null,16,["class","style"])):e.createCommentVNode("",!0)]),o.default!=null||l.preset!=null?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["dwui-label",l.labelClass]),style:e.normalizeStyle(l.labelStyle)},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(typeof l.preset?.label=="function"?l.preset.label():l.preset?.label),1)])],6)):e.createCommentVNode("",!0)],4))}});exports._sfc_main=s;
|
|
@@ -13,7 +13,7 @@ const f = /* @__PURE__ */ p({
|
|
|
13
13
|
const e = r, c = i();
|
|
14
14
|
return (t, g) => (l(), s("span", {
|
|
15
15
|
class: "dwui-label-icon",
|
|
16
|
-
style: n(e.gap == null ? void 0 : { "--dwui-label-icon
|
|
16
|
+
style: n(e.gap == null ? void 0 : { "--dwui-gap-label-icon": e.gap })
|
|
17
17
|
}, [
|
|
18
18
|
o(t.$slots, "icon", {}, () => [
|
|
19
19
|
e.preset != null ? (l(), y(u(e.preset.icon), b({ key: 0 }, e.preset.iconProps, {
|
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-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@nuxt/kit"),r=require("./components-CNOeuZPu.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;
|