@s_and_a/arrow-ui 0.2.18 → 0.2.19
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/dist/{contracts-CGGrhrRF.js → contracts-CNHPsiUm.js} +1 -1
- package/dist/{design-DIjWwf3L.js → design-C6P8YHfl.js} +1 -1
- package/dist/design.js +2 -2
- package/dist/index.js +496 -485
- package/dist/{requirements-COZ-k03c.js → requirements-C_hrn0cj.js} +1 -1
- package/dist/requirements.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/ArPayslip.contract.d.ts +15 -2
- package/dist/types/components/ArPayslip.vue.d.ts +5 -0
- package/dist/types/contracts.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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.
|
|
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";
|