@s_and_a/arrow-ui 0.2.14 → 0.2.16

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.
@@ -1,4 +1,4 @@
1
- /** ArBottomNav 1.1 の契約。スマホの下に固定するメニュー(5つ)。子のメニューと「メニュー(その他)」の一覧を持つ。 */
1
+ /** ArBottomNav 1.3 の契約。スマホの下に固定するメニュー(5つ)。子のメニューと「メニュー(その他)」の一覧を持つ。 */
2
2
  import type { ArIconName } from "../icons";
3
3
  import type { ArAppNavItem } from "./ArAppHeader.contract";
4
4
  export interface ArBottomNavProps {
@@ -18,6 +18,8 @@ export interface ArBottomNavProps {
18
18
  more?: boolean | "always";
19
19
  /** 「メニュー」を押したときに下から一覧を出す(既定 true)。false なら more だけを出す(製品がメニューのページへ移るとき)。 */
20
20
  moreSheet?: boolean;
21
+ /** 1.3:「メニュー」を今いる項目にする(並べた項目にないページ=メニューから開くページにいるとき)。 */
22
+ moreCurrent?: boolean;
21
23
  /** 「メニュー」のアイコン(既定 menu)。 */
22
24
  moreIcon?: ArIconName;
23
25
  /** 下から出る一覧が開いているか(v-model:moreOpen。渡さなければ中で持つ)。 */
@@ -18,6 +18,7 @@ declare const __VLS_export: import("vue").DefineComponent<ArBottomNavProps, {},
18
18
  };
19
19
  current: string;
20
20
  moreSheet: boolean;
21
+ moreCurrent: boolean;
21
22
  moreIcon: "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" | "payment" | "gift" | "briefcase" | "calcheck" | "logout" | "apps";
22
23
  moreOpen: boolean;
23
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,71 @@
1
+ /**
2
+ * ArCatalog 1.0 の契約。書類・集計表・テンプレートなどを「分類の一覧(左)・項目の一覧(中)・選んだ項目の説明(右)」で探して選ぶ画面。
3
+ * 左:すべてから探す(検索)・すべて・よく使う・分類ごとの件数。中:よく使う(☆を押すと並ぶ)・分類ごとの一覧(形式の印・別のページで作る印)。
4
+ * 右:選んだ項目の説明(中身は製品が detail スロットで描く)。
5
+ * 画面が狭いと(1180px 以下)説明は右から出る引き出し、900px 以下は分類が横に並ぶ、700px 以下は説明が下から出る。
6
+ */
7
+ export type ArCatalogFormat = "PDF" | "CSV" | "Excel";
8
+ export interface ArCatalogItem {
9
+ key: string;
10
+ /** 名前(「扶養控除等申告書」)。 */
11
+ title: string;
12
+ /** 出力できる形式(行の右に印)。 */
13
+ formats?: readonly ArCatalogFormat[];
14
+ /** 別のページで作る(行の右の印が「外へ」になる)。 */
15
+ external?: boolean;
16
+ /** 行の札(「出力不可:設定が必要」など)。 */
17
+ warning?: string;
18
+ /** 検索に使う言葉(省くと title)。 */
19
+ keywords?: string;
20
+ }
21
+ export interface ArCatalogGroup {
22
+ key: string;
23
+ /** 分類の名前(「入社」)。 */
24
+ title: string;
25
+ /** 分類の印(ArIcon の名前)。 */
26
+ icon?: string;
27
+ items: readonly ArCatalogItem[];
28
+ }
29
+ export interface ArCatalogProps {
30
+ /** 上の帯の題名(「書類・集計」)。 */
31
+ title: string;
32
+ /** 帯の印。 */
33
+ icon?: string;
34
+ groups: readonly ArCatalogGroup[];
35
+ /** 選んでいる項目(v-model:selected)。 */
36
+ selected?: string | null;
37
+ /** よく使う項目(v-model:favorites。☆の順)。 */
38
+ favorites?: readonly string[];
39
+ /** 画面の文字。 */
40
+ labels?: Partial<ArCatalogLabels>;
41
+ }
42
+ export interface ArCatalogLabels {
43
+ search: string;
44
+ all: string;
45
+ favorites: string;
46
+ categories: string;
47
+ favoritesHint: string;
48
+ allTitle: string;
49
+ /** 「{q}」の検索結果 */
50
+ searchTitle: string;
51
+ /** {n}件 */
52
+ count: string;
53
+ clearSearch: string;
54
+ /** 「{q}」に当てはまるものはありません… */
55
+ empty: string;
56
+ /** よく使うがまだないとき */
57
+ favoritesEmpty: string;
58
+ external: string;
59
+ /** {title}をよく使うに入れる */
60
+ addFavorite: string;
61
+ removeFavorite: string;
62
+ placeholder: string;
63
+ close: string;
64
+ legend: string;
65
+ }
66
+ export interface ArCatalogEmits {
67
+ "update:selected": [key: string | null];
68
+ "update:favorites": [keys: string[]];
69
+ }
70
+ /** slot:detail({ item, group }。選んだ項目の説明と出力ボタン)、band-end(帯の右)、group-end({ group }。分類の一覧の下)。 */
71
+ export type ArCatalogPart = "root" | "band" | "body" | "nav" | "search" | "nav-list" | "nav-item" | "nav-head" | "nav-count" | "main" | "favorites" | "chip" | "heading" | "legend" | "empty" | "group" | "group-head" | "list" | "row" | "star" | "pick" | "row-title" | "row-group" | "warning" | "formats" | "format" | "end" | "aside" | "aside-head" | "aside-tag" | "aside-title" | "placeholder" | "scrim";
@@ -0,0 +1,36 @@
1
+ import type { ArCatalogGroup, ArCatalogItem, ArCatalogLabels, ArCatalogProps } from "./ArCatalog.contract";
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ 'band-end'?: (props: {}) => any;
5
+ } & {
6
+ 'group-end'?: (props: {
7
+ group: ArCatalogGroup;
8
+ }) => any;
9
+ } & {
10
+ detail?: (props: {
11
+ item: ArCatalogItem;
12
+ group: ArCatalogGroup | null;
13
+ }) => any;
14
+ };
15
+ };
16
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
17
+ declare const __VLS_base: import("vue").DefineComponent<ArCatalogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:selected": (key: string | null) => any;
19
+ "update:favorites": (keys: string[]) => any;
20
+ }, string, import("vue").PublicProps, Readonly<ArCatalogProps> & Readonly<{
21
+ "onUpdate:selected"?: ((key: string | null) => any) | undefined;
22
+ "onUpdate:favorites"?: ((keys: string[]) => any) | undefined;
23
+ }>, {
24
+ icon: string;
25
+ labels: Partial<ArCatalogLabels>;
26
+ selected: string | null;
27
+ favorites: readonly string[];
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -27,6 +27,8 @@ export interface ArMenuItem {
27
27
  href?: string;
28
28
  /** 外部資料を別タブで開く。別タブでは noopener noreferrer を付ける。 */
29
29
  target?: "_blank";
30
+ /** ArSectionMenu 1.2:探す欄で見出しのほかに当てる言葉(そのページにある設定の名前など)。空白区切り。 */
31
+ keywords?: string;
30
32
  }
31
33
  export interface ArMenuProps {
32
34
  /** 項目の並び。 */
@@ -115,6 +115,7 @@ export { default as ArAppHeader } from "./components/ArAppHeader.vue";
115
115
  export { default as ArApprovalFlow } from "./components/ArApprovalFlow.vue";
116
116
  export { default as ArBalloon } from "./components/ArBalloon.vue";
117
117
  export { default as ArBottomNav } from "./components/ArBottomNav.vue";
118
+ export { default as ArCatalog } from "./components/ArCatalog.vue";
118
119
  export { default as ArChangedValue } from "./components/ArChangedValue.vue";
119
120
  export { default as ArChip } from "./components/ArChip.vue";
120
121
  export { default as ArDateView } from "./components/ArDateView.vue";
@@ -261,6 +262,7 @@ export type * from "./components/ArAppHeader.contract";
261
262
  export type * from "./components/ArApprovalFlow.contract";
262
263
  export type * from "./components/ArBalloon.contract";
263
264
  export type * from "./components/ArBottomNav.contract";
265
+ export type * from "./components/ArCatalog.contract";
264
266
  export type * from "./components/ArChangedValue.contract";
265
267
  export type * from "./components/ArChip.contract";
266
268
  export type * from "./components/ArDateView.contract";
@@ -30,10 +30,10 @@ export declare const contracts: {
30
30
  readonly ArDropdown: "1.2.0";
31
31
  readonly ArMenu: "1.1.0";
32
32
  readonly ArPagination: "1.0.0";
33
- readonly ArSectionMenu: "1.1.0";
33
+ readonly ArSectionMenu: "1.2.0";
34
34
  readonly ArSteps: "1.1.0";
35
35
  readonly ArStepSelect: "1.0.0";
36
- readonly ArTabs: "1.1.0";
36
+ readonly ArTabs: "1.2.0";
37
37
  readonly ArWizard: "1.3.0";
38
38
  readonly ArAutoComplete: "1.0.0";
39
39
  readonly ArCascader: "1.0.0";
@@ -121,7 +121,8 @@ export declare const contracts: {
121
121
  readonly ArAppHeader: "1.2.0";
122
122
  readonly ArApprovalFlow: "1.2.0";
123
123
  readonly ArBalloon: "1.0.0";
124
- readonly ArBottomNav: "1.2.0";
124
+ readonly ArBottomNav: "1.3.0";
125
+ readonly ArCatalog: "1.0.0";
125
126
  readonly ArChangedValue: "1.2.0";
126
127
  readonly ArChip: "1.0.0";
127
128
  readonly ArDateView: "1.1.0";
@@ -167,7 +168,7 @@ export declare const componentNames: ArComponentName[];
167
168
  /** 見た目を持たず、デザインのライブラリが対応しなくてよい部品(並べるための基礎と仕組み)。 */
168
169
  export declare const structuralComponents: readonly ArComponentName[];
169
170
  /** デザインが見た目を用意しなければならない部品。 */
170
- export declare const designedComponents: ("ArThemeScope" | "ArUiProvider" | "ArCluster" | "ArCompact" | "ArDivider" | "ArGrid" | "ArLayout" | "ArMasonry" | "ArSplit" | "ArSplitter" | "ArStack" | "ArButton" | "ArFloatButton" | "ArIcon" | "ArLink" | "ArParagraph" | "ArSegmented" | "ArText" | "ArTitle" | "ArAffix" | "ArAnchor" | "ArBreadcrumb" | "ArDropdown" | "ArMenu" | "ArPagination" | "ArSectionMenu" | "ArSteps" | "ArStepSelect" | "ArTabs" | "ArWizard" | "ArAutoComplete" | "ArCascader" | "ArCheckbox" | "ArCheckboxGroup" | "ArChoiceCard" | "ArColorPicker" | "ArColorSwatches" | "ArDateInput" | "ArDatePicker" | "ArDateRange" | "ArDateTimeInput" | "ArDurationInput" | "ArField" | "ArForm" | "ArInputNumber" | "ArItem" | "ArMentions" | "ArOtpInput" | "ArPills" | "ArRadio" | "ArRadioGroup" | "ArRate" | "ArRichTextEditor" | "ArSelect" | "ArSlider" | "ArStepper" | "ArSubItem" | "ArSwitch" | "ArTextarea" | "ArTextInput" | "ArTimeInput" | "ArTimePicker" | "ArTimeRange" | "ArTransfer" | "ArTreeSelect" | "ArUpload" | "ArVariablePanel" | "ArWeekdayPicker" | "ArZoomControl" | "ArAvatar" | "ArAvatarGroup" | "ArBadge" | "ArCalendar" | "ArCard" | "ArCarousel" | "ArCollapse" | "ArCountdown" | "ArDescriptions" | "ArEmpty" | "ArImage" | "ArList" | "ArMapPreview" | "ArOrgChart" | "ArPdfViewer" | "ArPointerBadge" | "ArPopover" | "ArProfileCard" | "ArQRCode" | "ArRibbon" | "ArStatistic" | "ArTable" | "ArTag" | "ArTimeline" | "ArTooltip" | "ArTour" | "ArTree" | "ArTreeTable" | "ArAlert" | "ArBorderBeam" | "ArDrawer" | "ArMessage" | "ArMessageHost" | "ArModal" | "ArNotification" | "ArNotificationHost" | "ArPopconfirm" | "ArProgress" | "ArResult" | "ArSkeleton" | "ArSpin" | "ArToast" | "ArWatermark" | "ArAppFooter" | "ArAppHeader" | "ArApprovalFlow" | "ArBalloon" | "ArBottomNav" | "ArChangedValue" | "ArChip" | "ArDateView" | "ArDaySummary" | "ArDocumentBlock" | "ArEllipsis" | "ArExample" | "ArFlagGroup" | "ArFlagView" | "ArInfo" | "ArKanaInput" | "ArKanaText" | "ArLogoSpin" | "ArMascot" | "ArMenuTile" | "ArMobileHeader" | "ArMonthDayInput" | "ArPageHeading" | "ArPayslip" | "ArPayslipLine" | "ArPayslipTable" | "ArPeriodBox" | "ArPeriodNav" | "ArPunchButton" | "ArPunchPanel" | "ArSaveBar" | "ArSectionHead" | "ArShiftChart" | "ArShiftDaySheet" | "ArShiftGrid" | "ArShiftViewTable" | "ArThumbnail" | "ArTimeChart" | "ArViewOptions" | "ArYearInput" | "ArYearMonthInput" | "ArZipInput" | "ArAuthPanel" | "ArTableHeader")[];
171
+ export declare const designedComponents: ("ArThemeScope" | "ArUiProvider" | "ArCluster" | "ArCompact" | "ArDivider" | "ArGrid" | "ArLayout" | "ArMasonry" | "ArSplit" | "ArSplitter" | "ArStack" | "ArButton" | "ArFloatButton" | "ArIcon" | "ArLink" | "ArParagraph" | "ArSegmented" | "ArText" | "ArTitle" | "ArAffix" | "ArAnchor" | "ArBreadcrumb" | "ArDropdown" | "ArMenu" | "ArPagination" | "ArSectionMenu" | "ArSteps" | "ArStepSelect" | "ArTabs" | "ArWizard" | "ArAutoComplete" | "ArCascader" | "ArCheckbox" | "ArCheckboxGroup" | "ArChoiceCard" | "ArColorPicker" | "ArColorSwatches" | "ArDateInput" | "ArDatePicker" | "ArDateRange" | "ArDateTimeInput" | "ArDurationInput" | "ArField" | "ArForm" | "ArInputNumber" | "ArItem" | "ArMentions" | "ArOtpInput" | "ArPills" | "ArRadio" | "ArRadioGroup" | "ArRate" | "ArRichTextEditor" | "ArSelect" | "ArSlider" | "ArStepper" | "ArSubItem" | "ArSwitch" | "ArTextarea" | "ArTextInput" | "ArTimeInput" | "ArTimePicker" | "ArTimeRange" | "ArTransfer" | "ArTreeSelect" | "ArUpload" | "ArVariablePanel" | "ArWeekdayPicker" | "ArZoomControl" | "ArAvatar" | "ArAvatarGroup" | "ArBadge" | "ArCalendar" | "ArCard" | "ArCarousel" | "ArCollapse" | "ArCountdown" | "ArDescriptions" | "ArEmpty" | "ArImage" | "ArList" | "ArMapPreview" | "ArOrgChart" | "ArPdfViewer" | "ArPointerBadge" | "ArPopover" | "ArProfileCard" | "ArQRCode" | "ArRibbon" | "ArStatistic" | "ArTable" | "ArTag" | "ArTimeline" | "ArTooltip" | "ArTour" | "ArTree" | "ArTreeTable" | "ArAlert" | "ArBorderBeam" | "ArDrawer" | "ArMessage" | "ArMessageHost" | "ArModal" | "ArNotification" | "ArNotificationHost" | "ArPopconfirm" | "ArProgress" | "ArResult" | "ArSkeleton" | "ArSpin" | "ArToast" | "ArWatermark" | "ArAppFooter" | "ArAppHeader" | "ArApprovalFlow" | "ArBalloon" | "ArBottomNav" | "ArCatalog" | "ArChangedValue" | "ArChip" | "ArDateView" | "ArDaySummary" | "ArDocumentBlock" | "ArEllipsis" | "ArExample" | "ArFlagGroup" | "ArFlagView" | "ArInfo" | "ArKanaInput" | "ArKanaText" | "ArLogoSpin" | "ArMascot" | "ArMenuTile" | "ArMobileHeader" | "ArMonthDayInput" | "ArPageHeading" | "ArPayslip" | "ArPayslipLine" | "ArPayslipTable" | "ArPeriodBox" | "ArPeriodNav" | "ArPunchButton" | "ArPunchPanel" | "ArSaveBar" | "ArSectionHead" | "ArShiftChart" | "ArShiftDaySheet" | "ArShiftGrid" | "ArShiftViewTable" | "ArThumbnail" | "ArTimeChart" | "ArViewOptions" | "ArYearInput" | "ArYearMonthInput" | "ArZipInput" | "ArAuthPanel" | "ArTableHeader")[];
171
172
  /** 説明のための情報(分類・日本語の名前)。 */
172
173
  export declare const componentMeta: Record<ArComponentName, {
173
174
  group: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s_and_a/arrow-ui",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "ARROW シリーズ共通の Vue 3 デザインライブラリ(部品・契約・デザインの差し替えの仕組み)",
5
5
  "type": "module",
6
6
  "sideEffects": [