@s_and_a/arrow-ui 0.2.18 → 0.2.20

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.
@@ -58,6 +58,19 @@ export interface ArPayslipProps {
58
58
  * 並べ方。auto=幅が狭いと列を縦に積む(既定)。wide=どの幅でも4列の横長の明細のまま、幅に合わせて小さく縮めて出す(スマホの「明細」表示)。
59
59
  */
60
60
  layout?: "auto" | "wide";
61
+ /**
62
+ * 列の高さを、この行数ぶんにそろえる(1.3)。項目の数が人によって違っても、明細の縦幅を同じにする。
63
+ * 項目が少ない列は下を白いまま伸ばし、4列の高さをそろえる。行数より項目が多い列は、その分だけ伸びる。
64
+ * 4列で並ぶとき(明細の幅 1000px 以上か layout="wide")だけ効く。省略すると項目の数の高さ(これまでどおり)。
65
+ */
66
+ rows?: number;
67
+ /**
68
+ * 備考(1.3)。渡すと、明細のいちばん下に幅いっぱいの「備考」の欄を出す(空の文字でも欄は出す=縦幅を変えない)。
69
+ * 改行はそのまま。入力にするときは note の slot に入力欄を置く。
70
+ */
71
+ note?: string;
72
+ /** 備考の欄の見出し(既定「備考」)。 */
73
+ noteLabel?: string;
61
74
  /** 行の高さ。md=38(マイページ)・sm=34(管理者。勤怠の列は30)。 */
62
75
  size?: "md" | "sm";
63
76
  /** 差が0のときの文字。 */
@@ -65,5 +78,5 @@ export interface ArPayslipProps {
65
78
  /** 「前」の文字。 */
66
79
  prevLabel?: string;
67
80
  }
68
- /** slot:toolbar(見出しの右)、column-0〜column-3(ArPayslipTableとArPayslipLineで構成する列)。 */
69
- export type ArPayslipPart = "root" | "head" | "title" | "period" | "meta" | "toolbar" | "columns" | "column" | "section" | "section-title" | "row" | "label" | "value" | "edited" | "diff" | "prev" | "totals" | "total" | "unit";
81
+ /** slot:toolbar(見出しの右)、column-0〜column-3(ArPayslipTableとArPayslipLineで構成する列)、note(備考の中身。入力欄など)。 */
82
+ export type ArPayslipPart = "root" | "head" | "title" | "period" | "meta" | "toolbar" | "columns" | "column" | "section" | "section-title" | "row" | "label" | "value" | "edited" | "diff" | "prev" | "totals" | "total" | "unit" | "note" | "note-title" | "note-body";
@@ -4,19 +4,24 @@ declare const __VLS_template: () => {
4
4
  [x: `column-${number}`]: ((props: {}) => any) | undefined;
5
5
  } & {
6
6
  toolbar?: (props: {}) => any;
7
+ } & {
8
+ note?: (props: {}) => any;
7
9
  };
8
10
  };
9
11
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
12
  declare const __VLS_base: import("vue").DefineComponent<ArPayslipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ArPayslipProps> & Readonly<{}>, {
11
13
  layout: "auto" | "wide";
14
+ note: string;
12
15
  meta: import("./ArPayslip.contract").ArPayslipMeta[];
13
16
  columns: (import("./ArPayslip.contract").ArPayslipSection | import("./ArPayslip.contract").ArPayslipSection[])[];
14
17
  size: "sm" | "md";
18
+ rows: number;
15
19
  compare: "off" | "prev" | "diff";
16
20
  zeroDiff: string;
17
21
  prevLabel: string;
18
22
  period: string;
19
23
  totals: ArPayslipTotal[];
24
+ noteLabel: string;
20
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
27
  declare const _default: typeof __VLS_export;
@@ -88,4 +88,4 @@ export interface ArTreeSelectEmits {
88
88
  }
89
89
  export type ArTreeSelectPart = "root" | "icon" | "value" | "placeholder" | "tags" | "tag" | "tag-label" | "tag-remove" | "clear" | "arrow" | "include-mark";
90
90
  /** プルダウン(data-ar="tree-select-panel")の部位。 */
91
- export type ArTreeSelectPanelPart = "search" | "list" | "node" | "switch" | "check" | "node-label" | "empty" | "footer" | "include" | "include-box" | "include-label" | "action";
91
+ export type ArTreeSelectPanelPart = "search" | "list" | "node" | "switch" | "check" | "node-label" | "node-check" | "empty" | "footer" | "include" | "include-box" | "include-label" | "action";
@@ -69,7 +69,7 @@ export declare const contracts: {
69
69
  readonly ArTimePicker: "1.0.0";
70
70
  readonly ArTimeRange: "1.3.0";
71
71
  readonly ArTransfer: "1.0.0";
72
- readonly ArTreeSelect: "1.2.0";
72
+ readonly ArTreeSelect: "1.3.0";
73
73
  readonly ArUpload: "1.2.0";
74
74
  readonly ArVariablePanel: "1.0.0";
75
75
  readonly ArWeekdayPicker: "1.1.0";
@@ -142,7 +142,7 @@ export declare const contracts: {
142
142
  readonly ArMobileHeader: "1.1.0";
143
143
  readonly ArMonthDayInput: "1.1.0";
144
144
  readonly ArPageHeading: "1.0.0";
145
- readonly ArPayslip: "1.2.0";
145
+ readonly ArPayslip: "1.3.0";
146
146
  readonly ArPayslipLine: "1.0.0";
147
147
  readonly ArPayslipTable: "1.0.0";
148
148
  readonly ArPeriodBox: "1.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s_and_a/arrow-ui",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "ARROW シリーズ共通の Vue 3 デザインライブラリ(部品・契約・デザインの差し替えの仕組み)",
5
5
  "type": "module",
6
6
  "sideEffects": [