@s_and_a/arrow-ui 0.1.10 → 0.1.11

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 (42) hide show
  1. package/dist/{contracts-MUd_zk1T.js → contracts-MlDifXRO.js} +6 -6
  2. package/dist/{design-DJKcHbD1.js → design-DQEH2c8P.js} +1 -1
  3. package/dist/design.js +2 -2
  4. package/dist/index.js +5371 -5093
  5. package/dist/{requirements-IDwMmOdp.js → requirements-D6YQEVU7.js} +1 -1
  6. package/dist/requirements.js +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/types/components/ArAffix.contract.d.ts +2 -0
  9. package/dist/types/components/ArAffix.vue.d.ts +1 -0
  10. package/dist/types/components/ArAuthPanel.contract.d.ts +4 -1
  11. package/dist/types/components/ArAuthPanel.vue.d.ts +2 -1
  12. package/dist/types/components/ArButton.contract.d.ts +4 -2
  13. package/dist/types/components/ArCalendar.contract.d.ts +2 -0
  14. package/dist/types/components/ArCalendar.vue.d.ts +1 -0
  15. package/dist/types/components/ArChangedValue.contract.d.ts +1 -0
  16. package/dist/types/components/ArChangedValue.vue.d.ts +17 -1
  17. package/dist/types/components/ArChoiceCard.contract.d.ts +3 -1
  18. package/dist/types/components/ArChoiceCard.vue.d.ts +1 -0
  19. package/dist/types/components/ArDropdown.contract.d.ts +1 -1
  20. package/dist/types/components/ArField.contract.d.ts +2 -1
  21. package/dist/types/components/ArField.vue.d.ts +4 -0
  22. package/dist/types/components/ArKanaText.vue.d.ts +0 -4
  23. package/dist/types/components/ArMenu.contract.d.ts +6 -0
  24. package/dist/types/components/ArModal.contract.d.ts +2 -2
  25. package/dist/types/components/ArModal.vue.d.ts +1 -1
  26. package/dist/types/components/ArPdfViewer.contract.d.ts +3 -1
  27. package/dist/types/components/ArPdfViewer.vue.d.ts +2 -0
  28. package/dist/types/components/ArSelect.vue.d.ts +2 -0
  29. package/dist/types/components/ArTable.contract.d.ts +11 -0
  30. package/dist/types/components/ArTabs.vue.d.ts +2 -2
  31. package/dist/types/components/ArTextInput.contract.d.ts +3 -0
  32. package/dist/types/components/ArTextInput.vue.d.ts +2 -0
  33. package/dist/types/components/ArWizard.contract.d.ts +2 -0
  34. package/dist/types/components/ArYearMonthInput.contract.d.ts +1 -0
  35. package/dist/types/components/ArYearMonthInput.vue.d.ts +1 -0
  36. package/dist/types/components/ArZipInput.contract.d.ts +4 -2
  37. package/dist/types/components/ArZipInput.vue.d.ts +1 -0
  38. package/dist/types/contracts.d.ts +6 -6
  39. package/dist/types/internal/ArTableCellBody.vue.d.ts +1 -0
  40. package/dist/types/internal/dialog.d.ts +3 -0
  41. package/dist/types/internal/overlay.d.ts +2 -0
  42. package/package.json +1 -1
@@ -2,6 +2,8 @@
2
2
  export interface ArAffixProps {
3
3
  /** 上に残すときの、スクロールする箱の上端からの距離(px)。 */
4
4
  offsetTop?: number;
5
+ /** 操作の横方向の配置。 */
6
+ justify?: "start" | "center" | "end" | "between";
5
7
  /** 渡すと下に残す(下端からの距離 px)。 */
6
8
  offsetBottom?: number;
7
9
  /** 残っているときだけ帯の見た目(半透明の白・ぼかし・下の線)にする。false なら常に帯の見た目。 */
@@ -10,6 +10,7 @@ declare const __VLS_base: import("vue").DefineComponent<ArAffixProps, {}, {}, {}
10
10
  }, string, import("vue").PublicProps, Readonly<ArAffixProps> & Readonly<{
11
11
  onChange?: ((affixed: boolean) => any) | undefined;
12
12
  }>, {
13
+ justify: "start" | "center" | "end" | "between";
13
14
  offsetTop: number;
14
15
  offsetBottom: number;
15
16
  bandWhenStuck: boolean;
@@ -1,10 +1,13 @@
1
+ import type { ArIconName } from "../icons";
1
2
  /** Shared sign-in/reset shell. The consumer owns credentials, authentication and routing. */
2
3
  export interface ArAuthPanelProps {
3
4
  title: string;
5
+ icon?: ArIconName;
4
6
  logo?: string;
5
7
  logoAlt?: string;
6
8
  companyName?: string;
7
9
  companyCode?: string;
8
10
  companyCodeLabel?: string;
11
+ companyIcon?: ArIconName;
9
12
  }
10
- export type ArAuthPanelPart = 'root' | 'logo' | 'card' | 'heading' | 'company' | 'company-name' | 'company-code' | 'body' | 'footer';
13
+ export type ArAuthPanelPart = "root" | "logo" | "card" | "heading" | "company" | "company-name" | "company-code" | "body" | "footer";
@@ -1,4 +1,4 @@
1
- import type { ArAuthPanelProps } from './ArAuthPanel.contract';
1
+ import type { ArAuthPanelProps } from "./ArAuthPanel.contract";
2
2
  declare const __VLS_template: () => {
3
3
  __VLS_Slots: {
4
4
  default?: (props: {}) => any;
@@ -8,6 +8,7 @@ declare const __VLS_template: () => {
8
8
  };
9
9
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
10
  declare const __VLS_base: import("vue").DefineComponent<ArAuthPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ArAuthPanelProps> & Readonly<{}>, {
11
+ icon: "search" | "repeat" | "shift" | "sort" | "filter" | "grid" | "layout" | "menu" | "upload" | "card" | "image" | "list" | "alert" | "info" | "cal" | "brief" | "calc" | "files" | "mega" | "bld" | "users" | "gear" | "todo" | "bell" | "cd" | "cl" | "cr" | "plus" | "x" | "pen" | "trash" | "more" | "lock" | "clock" | "layers" | "sheet" | "print" | "chart" | "gantt" | "check" | "pin" | "yen" | "minus" | "moon" | "play" | "store" | "eye" | "note" | "user" | "coffee" | "grip" | "undo" | "redo" | "panel" | "out" | "eyeoff" | "hand" | "swap" | "inbox" | "help" | "phone" | "mail" | "bug" | "speaker" | "hand2" | "dl" | "send" | "xls" | "star" | "copy" | "folder" | "file" | "home" | "up" | "down" | "zoom" | "reload" | "qmark" | "smile" | "drag" | "camera" | "unlock" | "pointer" | "movie" | "money" | "checkcircle" | "exclaim" | "schedule" | "comment" | "notice" | "cut" | "paste" | "save" | "return" | "zoomout" | "zoomreset" | "silhouette" | "twoperson" | "manager" | "nocard" | "keyboard" | "punchin" | "punchout" | "bank" | "hierarchy" | "status" | "chevrons" | "apply" | "umbrella" | "contract" | "switch-user" | "globe" | "walk";
11
12
  logoAlt: string;
12
13
  companyCodeLabel: string;
13
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -11,11 +11,11 @@ export interface ArButtonProps {
11
11
  * ghost:表の上の小さな操作(テーマ色の文字だけ)。
12
12
  * muted:目立たせない操作・アイコンだけのボタン(灰色の文字だけ)。
13
13
  * link:文中のリンクのような操作(下線)。
14
- * dashed:行や項目を足す(点線。block と合わせると表の上の「シフト追加」)。
14
+ * dashed:行や項目を足す(点線。追加操作は通常は内容幅、block は意図的に幅いっぱいにする場合だけ)。
15
15
  * danger:削除(塗り)。確かめの画面で最後に押すときだけ。danger-fill も同じ。
16
16
  * danger-subtle:削除(白地に赤い枠)。danger-outline も同じ。
17
17
  * danger-ghost:削除(赤い文字だけ)。
18
- * edit:編集・見出しの横の補助の操作(今の ARROW の edit:classic は緑の塗り、remix は subtle と同じ)。
18
+ * edit:編集・見出しの横の補助の操作(今の ARROW の edit:classic は緑の塗り、remix は淡い緑)。
19
19
  * dark:ロックなど、色の意味を持たない塗り(今の ARROW の lock・unlock・種類なし:classic は黒の塗り、remix は secondary と同じ)。
20
20
  * overlay:写真の上に重ねる丸いアイコンのボタン(今の ARROW の transround:半透明の黒い丸に白いアイコン)。
21
21
  *
@@ -23,6 +23,8 @@ export interface ArButtonProps {
23
23
  * lock・unlock・movie・なし→dark、bordered→dashed、text→ghost、transround→overlay。
24
24
  */
25
25
  tone?: ArButtonTone;
26
+ /** 操作の意味。画面のテーマ色に関係なく add は青、edit は緑、delete は赤。tone の形・大きさは保持する。 */
27
+ intent?: "add" | "edit" | "delete";
26
28
  /**
27
29
  * 大きさの段。`sm`=設定など密集した所、`md`=ふつう(既定)、`lg`=年末調整・スマホなど大きく押しやすくしたい所。同じ段なら入力・セレクト・時刻・日付・ボタンの高さがそろう(新しい見た目 30/36/42・角丸 9/10/11、今の見た目 antd の 24/32/40)。
28
30
  * xs=表の行の中の小さな操作(「シフトに入れる」)、xl=手順の「次へ」「戻る」などのいちばん大きい操作(新しい見た目では lg と同じ高さ)。
@@ -14,6 +14,8 @@ export interface ArCalendarProps {
14
14
  * 見出しはカレンダーの絵と title と extra slot だけ(年の選択・月/年の切り替えはない)、マスは角の丸い淡い地に日付・印(events の札)・小さな文字(events の note)、下に footer slot(凡例)。
15
15
  */
16
16
  size?: "default" | "mini";
17
+ /** board の情報密度。compact は個人用の勤務カレンダーなど、1日ごとの情報が少ない表示に使う。 */
18
+ density?: "default" | "compact";
17
19
  /** 見出しの文字(省くと「2026年11月」)。 */
18
20
  title?: string;
19
21
  /** 日ごとの状態の印(ロック中=斜線と鍵・非公開=目の印・注意=赤い枠)。 */
@@ -46,6 +46,7 @@ declare const __VLS_base: import("vue").DefineComponent<ArCalendarProps, {}, {},
46
46
  minYear: number;
47
47
  maxYear: number;
48
48
  today: string;
49
+ density: "default" | "compact";
49
50
  cellMarks: (date: string) => import("./ArCalendar.contract").ArCalendarCellMarks | undefined;
50
51
  weekStart: 0 | 1;
51
52
  weekendColors: boolean;
@@ -48,3 +48,4 @@ export interface ArChangedValueItem {
48
48
  after?: string | number | null;
49
49
  }
50
50
  export type ArChangedValuePart = "root" | "before" | "arrow" | "after" | "head" | "head-cell" | "row" | "label" | "cell" | "change";
51
+ /** Inline layout accepts before/after slots for rich values such as images or dated entries. Pass changed explicitly for slotted content; labels remain visible. */
@@ -1,5 +1,15 @@
1
1
  import type { ArChangedValueHeaders, ArChangedValueItem, ArChangedValueProps } from "./ArChangedValue.contract";
2
- declare const __VLS_export: import("vue").DefineComponent<ArChangedValueProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ArChangedValueProps> & Readonly<{}>, {
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ before?: (props: {}) => any;
5
+ } & {
6
+ after?: (props: {}) => any;
7
+ } & {
8
+ after?: (props: {}) => any;
9
+ };
10
+ };
11
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
12
+ declare const __VLS_base: import("vue").DefineComponent<ArChangedValueProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ArChangedValueProps> & Readonly<{}>, {
3
13
  layout: "text" | "list" | "table" | "inline";
4
14
  empty: string;
5
15
  caption: string;
@@ -14,5 +24,11 @@ declare const __VLS_export: import("vue").DefineComponent<ArChangedValueProps, {
14
24
  after: string | number | null;
15
25
  headers: Partial<ArChangedValueHeaders>;
16
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
28
  declare const _default: typeof __VLS_export;
18
29
  export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -18,6 +18,8 @@ export interface ArChoiceCardProps {
18
18
  * 新しく書くときは ArRadioGroup(variant="card"・size="lg"・columns)を使う。
19
19
  */
20
20
  variant?: "card" | "option" | "tile" | "radio";
21
+ /** option の右端に遷移先を示す矢印を表示する。選択状態の印とは区別する。 */
22
+ chevron?: boolean;
21
23
  /** 1つを選ぶ組で使うときの、この札の値。v-model(modelValue)と同じなら選ばれている。渡すと role="radio"。 */
22
24
  value?: ArChoiceValue;
23
25
  /** 組の今の値(v-model)。 */
@@ -45,4 +47,4 @@ export interface ArChoiceCardEmits {
45
47
  select: [value: ArChoiceValue | undefined];
46
48
  }
47
49
  /** slot:default(説明の下に足す中身)。 */
48
- export type ArChoiceCardPart = "root" | "check" | "icon" | "body" | "title" | "tag" | "description" | "reason";
50
+ export type ArChoiceCardPart = "root" | "check" | "icon" | "body" | "title" | "tag" | "description" | "reason" | "chevron";
@@ -25,6 +25,7 @@ declare const __VLS_base: import("vue").DefineComponent<ArChoiceCardProps, {}, {
25
25
  modelValue: ArChoiceValue | null;
26
26
  selected: boolean;
27
27
  reason: string;
28
+ chevron: boolean;
28
29
  tagTone: "accent" | "ok" | "neutral";
29
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -40,4 +40,4 @@ export interface ArDropdownEmits {
40
40
  click: [event: MouseEvent];
41
41
  }
42
42
  /** default slot(押すもの)は { open, toggle, attrs } を受け取る。attrs を押す要素に v-bind すると aria が付く。 */
43
- export type ArDropdownPart = "content" | "root" | "trigger" | "icon" | "label" | "caret" | "list" | "group" | "item" | "icon-box" | "text" | "description" | "divider";
43
+ export type ArDropdownPart = "content" | "root" | "trigger" | "icon" | "label" | "caret" | "list" | "group" | "item" | "icon-box" | "text" | "description" | "divider" | "disabled-reason";
@@ -1,4 +1,5 @@
1
- /** ArField 1.0 の契約。ラベル・必須・説明・間違いを1つにまとめ、中の入力と結ぶ。 */
1
+ /** Optional label-extra slot places a help trigger beside the label without nesting it in the label.
2
+ * ArField 1.0 の契約。ラベル・必須・説明・間違いを1つにまとめ、中の入力と結ぶ。 */
2
3
  export interface ArFieldProps {
3
4
  /** 項目名(.lbl 12.5px 太字)。 */
4
5
  label: string;
@@ -1,6 +1,10 @@
1
1
  import type { ArFieldControlProps, ArFieldProps } from "./ArField.contract";
2
2
  type __VLS_Slots = {
3
3
  default(props: ArFieldControlProps): unknown;
4
+ /** Supplementary text and an optional detail action, beneath the control. */
5
+ help?(): unknown;
6
+ /** A separate help button alongside the label; never nested inside the label. */
7
+ "label-extra"?(): unknown;
4
8
  };
5
9
  declare const __VLS_base: import("vue").DefineComponent<ArFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ArFieldProps> & Readonly<{}>, {
6
10
  required: boolean;
@@ -1,7 +1,3 @@
1
- /**
2
- * ArKanaText 1.0 — フリガナつきの氏名(今の Kana)。名前の上に小さくフリガナを出す。
3
- * 幅が狭い画面(768px 以下)と layout="inline" では「名前(フリガナ)」の1行にする。
4
- */
5
1
  import type { ArKanaTextProps } from "./ArKanaText.contract";
6
2
  declare const __VLS_template: () => {
7
3
  __VLS_Slots: {
@@ -13,6 +13,10 @@ export interface ArMenuItem {
13
13
  description?: string;
14
14
  /** 危ない項目(削除など)。赤で出す。区切り線のあと・最後に置く。 */
15
15
  danger?: boolean;
16
+ /** 編集操作の色。danger が true のときは危険色を優先する。 */
17
+ tone?: "edit";
18
+ /** 選べない理由。浮かぶメニューでは操作の説明とは別の行に表示する。 */
19
+ disabledReason?: string;
16
20
  /** 選べない。 */
17
21
  disabled?: boolean;
18
22
  /** 権限がない。鍵のアイコンと灰色で出し、選べない。 */
@@ -21,6 +25,8 @@ export interface ArMenuItem {
21
25
  children?: readonly ArMenuItem[];
22
26
  /** 渡すとリンク(a 要素)にする。 */
23
27
  href?: string;
28
+ /** 外部資料を別タブで開く。別タブでは noopener noreferrer を付ける。 */
29
+ target?: "_blank";
24
30
  }
25
31
  export interface ArMenuProps {
26
32
  /** 項目の並び。 */
@@ -45,8 +45,8 @@ export interface ArModalProps {
45
45
  footerNoteAlign?: "start" | "end";
46
46
  /** 主なボタンの文字。渡すと足に「キャンセル」と主なボタンを出す(#footer があればそちらが優先)。 */
47
47
  okText?: string;
48
- /** 主なボタンの種類。削除は danger(赤)。 */
49
- okTone?: "primary" | "danger";
48
+ /** 主なボタンの種類。保存は edit(緑)、削除は danger(赤)。 */
49
+ okTone?: "primary" | "edit" | "danger";
50
50
  okIcon?: ArIconName;
51
51
  okDisabled?: boolean;
52
52
  okLoading?: boolean;
@@ -46,7 +46,7 @@ declare const __VLS_base: import("vue").DefineComponent<ArModalProps, {}, {}, {}
46
46
  footerNote: string;
47
47
  footerNoteAlign: "start" | "end";
48
48
  okText: string;
49
- okTone: "danger" | "primary";
49
+ okTone: "danger" | "primary" | "edit";
50
50
  okIcon: "search" | "repeat" | "shift" | "sort" | "filter" | "grid" | "layout" | "menu" | "upload" | "card" | "image" | "list" | "alert" | "info" | "cal" | "brief" | "calc" | "files" | "mega" | "bld" | "users" | "gear" | "todo" | "bell" | "cd" | "cl" | "cr" | "plus" | "x" | "pen" | "trash" | "more" | "lock" | "clock" | "layers" | "sheet" | "print" | "chart" | "gantt" | "check" | "pin" | "yen" | "minus" | "moon" | "play" | "store" | "eye" | "note" | "user" | "coffee" | "grip" | "undo" | "redo" | "panel" | "out" | "eyeoff" | "hand" | "swap" | "inbox" | "help" | "phone" | "mail" | "bug" | "speaker" | "hand2" | "dl" | "send" | "xls" | "star" | "copy" | "folder" | "file" | "home" | "up" | "down" | "zoom" | "reload" | "qmark" | "smile" | "drag" | "camera" | "unlock" | "pointer" | "movie" | "money" | "checkcircle" | "exclaim" | "schedule" | "comment" | "notice" | "cut" | "paste" | "save" | "return" | "zoomout" | "zoomreset" | "silhouette" | "twoperson" | "manager" | "nocard" | "keyboard" | "punchin" | "punchout" | "bank" | "hierarchy" | "status" | "chevrons" | "apply" | "umbrella" | "contract" | "switch-user" | "globe" | "walk";
51
51
  okDisabled: boolean;
52
52
  okLoading: boolean;
@@ -30,8 +30,10 @@ export interface ArPdfViewerProps {
30
30
  pageLabel?: (page: number) => string;
31
31
  /** 上の段(ページ送り・大きさ)を出す。false で見本の枠だけ。 */
32
32
  toolbar?: boolean;
33
- /** 紙の幅(100% のとき)。 */
33
+ /** 紙の幅(100% のとき)。page slot の width はその実測幅(CSS px)で、画面幅変更にも追従する。 */
34
34
  paperWidth?: string;
35
+ /** 100% 表示を表示枠に収めるときの最大幅(CSS px)。指定時は paperWidth より優先し、拡大時はこの基準幅から拡大する。 */
36
+ fitWidth?: number;
35
37
  /** 紙の高さの下限(100% のとき。A4 の見本なら 780px)。 */
36
38
  paperMinHeight?: string;
37
39
  /** 全体の高さ(例:"640px")。省くと中身の高さ。 */
@@ -2,6 +2,7 @@ import type { ArPdfViewerLabels, ArPdfViewerProps } from "./ArPdfViewer.contract
2
2
  type __VLS_Slots = {
3
3
  page?: (p: {
4
4
  page: number;
5
+ width: number | undefined;
5
6
  }) => unknown;
6
7
  "toolbar-end"?: () => unknown;
7
8
  };
@@ -25,6 +26,7 @@ declare const __VLS_base: import("vue").DefineComponent<ArPdfViewerProps, {}, {}
25
26
  pageCount: number;
26
27
  zoomSteps: readonly number[];
27
28
  pageLabel: (page: number) => string;
29
+ fitWidth: number;
28
30
  paperMinHeight: string;
29
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -5,12 +5,14 @@ declare const __VLS_export: import("vue").DefineComponent<ArSelectProps, {
5
5
  close: () => void;
6
6
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  search: (query: string) => any;
8
+ select: (value: ArSelectValue | null) => any;
8
9
  change: (value: ArSelectValue | ArSelectValue[] | null) => any;
9
10
  "update:modelValue": (value: ArSelectValue | ArSelectValue[] | null) => any;
10
11
  "open-change": (open: boolean) => any;
11
12
  action: (value: string) => any;
12
13
  }, string, import("vue").PublicProps, Readonly<ArSelectProps> & Readonly<{
13
14
  onSearch?: ((query: string) => any) | undefined;
15
+ onSelect?: ((value: ArSelectValue | null) => any) | undefined;
14
16
  onChange?: ((value: ArSelectValue | ArSelectValue[] | null) => any) | undefined;
15
17
  "onUpdate:modelValue"?: ((value: ArSelectValue | ArSelectValue[] | null) => any) | undefined;
16
18
  "onOpen-change"?: ((open: boolean) => any) | undefined;
@@ -58,6 +58,8 @@ export interface ArTableRowEdit<Row> {
58
58
  export type ArRowKey = string | number;
59
59
  /** 名前の列の頭文字の丸。 */
60
60
  export interface ArTableAvatar {
61
+ /** 写真URL。読み込めない場合は頭文字へ戻る。表示内容のサムネイル設定も適用する。 */
62
+ src?: string;
61
63
  /** 丸に出す文字。省くと値の1文字目。 */
62
64
  text?: string;
63
65
  /** 色。省くと seed から人ごとの色を選ぶ(seed もなければテーマ色)。 */
@@ -217,6 +219,15 @@ export interface ArTableProps<Row> {
217
219
  fit?: boolean;
218
220
  /** 列。 */
219
221
  columns: readonly ArTableColumn<Row>[];
222
+ /** 列・サムネイルの表示を ArViewOptions で切り替える。先頭列と操作列は常に表示する。 */
223
+ viewOptions?: boolean;
224
+ viewOptionsLabels?: {
225
+ label?: string;
226
+ columns?: string;
227
+ avatar?: string;
228
+ all?: string;
229
+ close?: string;
230
+ };
220
231
  /** 行のデータ(並べ替え・絞り込み・ページ分けは製品がしたもの)。 */
221
232
  rows: readonly Row[];
222
233
  /** 行を見分ける値(キーの名前か関数)。 */
@@ -1,12 +1,12 @@
1
1
  import type { ArTabsProps } from "./ArTabs.contract";
2
2
  declare const __VLS_export: import("vue").DefineComponent<ArTabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  close: (key: string) => any;
4
- "update:modelValue": (key: string) => any;
5
4
  add: () => any;
5
+ "update:modelValue": (key: string) => any;
6
6
  }, string, import("vue").PublicProps, Readonly<ArTabsProps> & Readonly<{
7
7
  onClose?: ((key: string) => any) | undefined;
8
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
9
8
  onAdd?: (() => any) | undefined;
9
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
10
10
  }>, {
11
11
  size: "sm" | "md";
12
12
  variant: "card" | "line" | "band";
@@ -66,6 +66,9 @@ export interface ArTextInputProps {
66
66
  autofocus?: boolean;
67
67
  /** 消すボタンの読み上げ。 */
68
68
  clearLabel?: string;
69
+ /** パスワードを見せる・隠すボタンの読み上げ。 */
70
+ showPasswordLabel?: string;
71
+ hidePasswordLabel?: string;
69
72
  /** 中の input に付ける class(今の ARROW の text_input・tabindexkey など、input を class で探すとき)。 */
70
73
  inputClass?: string | readonly string[] | Record<string, boolean>;
71
74
  /** 中の input に付ける style。 */
@@ -46,6 +46,8 @@ declare const __VLS_export: import("vue").DefineComponent<ArTextInputProps, {
46
46
  maxlength: number;
47
47
  autocomplete: string;
48
48
  clearLabel: string;
49
+ showPasswordLabel: string;
50
+ hidePasswordLabel: string;
49
51
  inputClass: string | readonly string[] | Record<string, boolean>;
50
52
  inputStyle: string | Record<string, string | number>;
51
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,6 +6,8 @@ export interface ArWizardOption {
6
6
  isNext?: boolean;
7
7
  prevText?: string;
8
8
  nextText?: string;
9
+ /** Semantic intent for this step’s final action; navigation steps keep the theme colour. */
10
+ nextIntent?: "add" | "edit" | "delete";
9
11
  }
10
12
  export interface ArWizardProps {
11
13
  value: number;
@@ -20,6 +20,7 @@ export interface ArYearMonthInputProps {
20
20
  labels?: {
21
21
  year: string;
22
22
  month: string;
23
+ empty?: string;
23
24
  };
24
25
  }
25
26
  export interface ArYearMonthInputEmits {
@@ -11,6 +11,7 @@ declare const __VLS_export: import("vue").DefineComponent<ArYearMonthInputProps,
11
11
  labels: {
12
12
  year: string;
13
13
  month: string;
14
+ empty?: string;
14
15
  };
15
16
  disabled: boolean;
16
17
  initialYear: number;
@@ -1,10 +1,11 @@
1
- /** ArZipInput 1.2 の契約。class・style は外側、ほかの属性(tabindex・aria-*)とイベントは中の入力へ。ref から focus()・blur()・select()・input。郵便番号の入力(今の ARROW の Zip:「###-####」の形と、住所を引く)。 */
1
+ /** ArZipInput 1.3 の契約。class・style は外側、ほかの属性(tabindex・aria-*)とイベントは中の入力へ。ref から focus()・blur()・select()・input。郵便番号の入力(今の ARROW の Zip:「###-####」の形と、住所を引く)。 */
2
2
  export interface ArZipInputProps {
3
3
  /** "123-4567"。空なら null。 */
4
4
  modelValue: string | null;
5
5
  /**
6
6
  * 7桁そろったときに住所を引く関数(製品が渡す。例:郵便番号の API を呼ぶ)。
7
7
  * 住所の文字を返すと address を出す。見つからなければ null。渡さなければ引かない。
8
+ * 渡した場合は、入力済みの番号から検索・再試行できるボタンも表示する。
8
9
  */
9
10
  lookup?: (zip: string) => Promise<string | null>;
10
11
  invalid?: boolean;
@@ -19,6 +20,7 @@ export interface ArZipInputProps {
19
20
  searching: string;
20
21
  notFound: string;
21
22
  failed: string;
23
+ lookup?: string;
22
24
  };
23
25
  }
24
26
  export interface ArZipInputEmits {
@@ -27,4 +29,4 @@ export interface ArZipInputEmits {
27
29
  /** 住所が見つかったとき。 */
28
30
  address: [address: string, zip: string];
29
31
  }
30
- export type ArZipInputPart = "root" | "status";
32
+ export type ArZipInputPart = "root" | "lookup" | "status";
@@ -19,6 +19,7 @@ declare const __VLS_export: import("vue").DefineComponent<ArZipInputProps, {
19
19
  searching: string;
20
20
  notFound: string;
21
21
  failed: string;
22
+ lookup?: string;
22
23
  };
23
24
  disabled: boolean;
24
25
  placeholder: string;
@@ -16,7 +16,7 @@ export declare const contracts: {
16
16
  readonly ArSplit: "1.0.0";
17
17
  readonly ArSplitter: "1.0.0";
18
18
  readonly ArStack: "1.0.0";
19
- readonly ArButton: "1.0.0";
19
+ readonly ArButton: "1.1.0";
20
20
  readonly ArFloatButton: "1.0.0";
21
21
  readonly ArIcon: "1.0.0";
22
22
  readonly ArLink: "1.0.0";
@@ -27,8 +27,8 @@ export declare const contracts: {
27
27
  readonly ArAffix: "1.0.0";
28
28
  readonly ArAnchor: "1.0.0";
29
29
  readonly ArBreadcrumb: "1.0.0";
30
- readonly ArDropdown: "1.1.0";
31
- readonly ArMenu: "1.0.0";
30
+ readonly ArDropdown: "1.2.0";
31
+ readonly ArMenu: "1.1.0";
32
32
  readonly ArPagination: "1.0.0";
33
33
  readonly ArSectionMenu: "1.1.0";
34
34
  readonly ArSteps: "1.1.0";
@@ -95,7 +95,7 @@ export declare const contracts: {
95
95
  readonly ArQRCode: "1.0.0";
96
96
  readonly ArRibbon: "1.0.0";
97
97
  readonly ArStatistic: "1.0.0";
98
- readonly ArTable: "1.5.0";
98
+ readonly ArTable: "1.6.0";
99
99
  readonly ArTag: "1.0.0";
100
100
  readonly ArTimeline: "1.0.0";
101
101
  readonly ArTooltip: "1.1.0";
@@ -157,8 +157,8 @@ export declare const contracts: {
157
157
  readonly ArViewOptions: "1.1.0";
158
158
  readonly ArYearInput: "1.1.0";
159
159
  readonly ArYearMonthInput: "1.1.0";
160
- readonly ArZipInput: "1.2.0";
161
- readonly ArAuthPanel: "1.0.0";
160
+ readonly ArZipInput: "1.3.0";
161
+ readonly ArAuthPanel: "1.1.0";
162
162
  readonly ArTableHeader: "1.0.0";
163
163
  };
164
164
  export type ArComponentName = keyof typeof contracts;
@@ -2,6 +2,7 @@ import type { ArTableColumn, ArTableEditValue, ArTableLabels } from "../componen
2
2
  type Row = object;
3
3
  type __VLS_Props = {
4
4
  row: Row;
5
+ showAvatar?: boolean;
5
6
  col: ArTableColumn<Row>;
6
7
  /** セルの値(段に分けた列では、その段の値)。 */
7
8
  value: unknown;
@@ -18,8 +18,11 @@ export declare function useDialog(opts: {
18
18
  onEscape: () => void;
19
19
  /** 後ろのページを止めるか(その場に出すときは止めない)。 */
20
20
  lockScroll?: () => boolean;
21
+ zIndex?: () => number | undefined;
22
+ baseLayer?: number;
21
23
  }): {
22
24
  onKeydown: (e: KeyboardEvent) => void;
23
25
  palette: Ref<string | undefined, string | undefined>;
24
26
  focusables: () => HTMLElement[];
27
+ layer: Ref<number | undefined, number | undefined>;
25
28
  };
@@ -0,0 +1,2 @@
1
+ export declare function acquireOverlayLayer(id: symbol, base?: number, explicit?: number): number;
2
+ export declare function releaseOverlayLayer(id: symbol): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s_and_a/arrow-ui",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "ARROW シリーズ共通の Vue 3 デザインライブラリ(部品・契約・デザインの差し替えの仕組み)",
5
5
  "type": "module",
6
6
  "sideEffects": [