@s_and_a/arrow-ui 0.2.2 → 0.2.4
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* ArTimeChart 1.1 の契約。時間の横棒のチャート(勤怠の月のチャート・1日のチャート)。
|
|
3
3
|
* month:1行=1日。帯(通常勤務・残業・休日勤務・休憩)と、上の細い線=シフト、下の細い線=深夜。日付を押すと select(その日の大きなチャート)。
|
|
4
4
|
* day:1行=1つの内容(シフト・勤務・休憩・深夜勤務)。帯の中に「18:00〜27:00」などの文字。
|
|
5
|
+
* stack:1日を積み上げで出す(旧 ARROW の勤怠の1日のチャート)。縦が量、横が時間。rows の順が層の順で、先頭の行(打刻の勤務)が下の1段、2つ目から(法定外・休日・深夜の割増)が上に半段ずつ重なる。kind が shift の帯は下の細い線。休憩は帯を作らず空ける。
|
|
5
6
|
* 帯に乗せると「種類・時間帯・時間数」の吹き出し。時刻は 0:00 からの分(翌日の 3:00 は 1620。前日の 23:00 は -60)。
|
|
6
7
|
* デザインが選べる形(ArDesign.forms.ArTimeChart):
|
|
7
8
|
* - tick:"180"(既定。3時間ごとの目盛り)/"60"(1時間ごと。今の ARROW の勤怠の月のチャート。classic)。tickStep で上書きできる。
|
|
@@ -53,8 +54,8 @@ export interface ArTimeChartRow {
|
|
|
53
54
|
tracks?: readonly ArTimeChartTrack[];
|
|
54
55
|
}
|
|
55
56
|
export interface ArTimeChartProps {
|
|
56
|
-
/** month:1行=1日(日付を押せる)。day:1行=1つの内容。 */
|
|
57
|
-
mode?: "month" | "day";
|
|
57
|
+
/** month:1行=1日(日付を押せる)。day:1行=1つの内容。stack:1日の積み上げ(rows の順が下からの層)。 */
|
|
58
|
+
mode?: "month" | "day" | "stack";
|
|
58
59
|
rows: readonly ArTimeChartRow[];
|
|
59
60
|
/** 横軸の範囲(分)。既定は month が [-60, 1680](前日23時〜翌4時)、day は帯から決める(前後1時間)。 */
|
|
60
61
|
range?: readonly [number, number];
|
|
@@ -7,7 +7,7 @@ declare const __VLS_export: import("vue").DefineComponent<ArTimeChartProps, {},
|
|
|
7
7
|
label: string;
|
|
8
8
|
legend: boolean | readonly ArTimeChartKind[];
|
|
9
9
|
labels: Partial<ArTimeChartLabels>;
|
|
10
|
-
mode: "month" | "day";
|
|
10
|
+
mode: "stack" | "month" | "day";
|
|
11
11
|
range: readonly [number, number];
|
|
12
12
|
hint: string;
|
|
13
13
|
tickStep: number;
|