@s_and_a/arrow-ui 0.1.7 → 0.1.10

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 (52) hide show
  1. package/dist/{contracts-VjHtiq_f.js → contracts-MUd_zk1T.js} +24 -12
  2. package/dist/{design-C6wA0w2Q.js → design-DJKcHbD1.js} +1 -1
  3. package/dist/design.js +2 -2
  4. package/dist/index.js +3844 -3519
  5. package/dist/{requirements-BX2_igHE.js → requirements-IDwMmOdp.js} +1 -1
  6. package/dist/requirements.js +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/types/components/ArAlert.vue.d.ts +4 -9
  9. package/dist/types/components/ArCalendar.contract.d.ts +5 -4
  10. package/dist/types/components/ArDatePicker.contract.d.ts +8 -0
  11. package/dist/types/components/ArDatePicker.vue.d.ts +3 -0
  12. package/dist/types/components/ArDescriptions.vue.d.ts +1 -1
  13. package/dist/types/components/ArDocumentBlock.contract.d.ts +2 -0
  14. package/dist/types/components/ArDocumentBlock.vue.d.ts +1 -0
  15. package/dist/types/components/ArFlagGroup.contract.d.ts +2 -0
  16. package/dist/types/components/ArFloatButton.contract.d.ts +3 -1
  17. package/dist/types/components/ArList.contract.d.ts +4 -3
  18. package/dist/types/components/ArList.vue.d.ts +3 -0
  19. package/dist/types/components/ArModal.contract.d.ts +4 -2
  20. package/dist/types/components/ArParagraph.contract.d.ts +3 -1
  21. package/dist/types/components/ArParagraph.vue.d.ts +1 -0
  22. package/dist/types/components/ArPayslip.contract.d.ts +4 -2
  23. package/dist/types/components/ArPayslip.vue.d.ts +5 -2
  24. package/dist/types/components/ArPayslipLine.contract.d.ts +17 -0
  25. package/dist/types/components/ArPayslipLine.vue.d.ts +26 -0
  26. package/dist/types/components/ArPayslipTable.contract.d.ts +5 -0
  27. package/dist/types/components/ArPayslipTable.vue.d.ts +16 -0
  28. package/dist/types/components/ArProfileCard.contract.d.ts +3 -1
  29. package/dist/types/components/ArProfileCard.vue.d.ts +1 -0
  30. package/dist/types/components/ArPunchPanel.contract.d.ts +4 -2
  31. package/dist/types/components/ArRichTextEditor.contract.d.ts +2 -0
  32. package/dist/types/components/ArRichTextEditor.vue.d.ts +1 -0
  33. package/dist/types/components/ArSectionHead.vue.d.ts +1 -1
  34. package/dist/types/components/ArSectionMenu.contract.d.ts +8 -0
  35. package/dist/types/components/ArSectionMenu.vue.d.ts +3 -0
  36. package/dist/types/components/ArStatistic.contract.d.ts +8 -2
  37. package/dist/types/components/ArStatistic.vue.d.ts +4 -1
  38. package/dist/types/components/ArSteps.contract.d.ts +1 -1
  39. package/dist/types/components/ArTable.contract.d.ts +3 -1
  40. package/dist/types/components/ArThumbnail.contract.d.ts +2 -0
  41. package/dist/types/components/ArThumbnail.vue.d.ts +1 -0
  42. package/dist/types/components/ArTimeRange.contract.d.ts +8 -1
  43. package/dist/types/components/ArTimeRange.vue.d.ts +4 -0
  44. package/dist/types/components/ArTreeSelect.contract.d.ts +5 -3
  45. package/dist/types/components/ArTreeSelect.vue.d.ts +1 -0
  46. package/dist/types/components/ArWizard.contract.d.ts +6 -0
  47. package/dist/types/components/ArWizard.vue.d.ts +2 -0
  48. package/dist/types/components.generated.d.ts +4 -0
  49. package/dist/types/contracts.d.ts +15 -13
  50. package/dist/types/internal/payslip.d.ts +11 -0
  51. package/dist/types/layout/ArSplit.vue.d.ts +3 -0
  52. package/package.json +1 -1
@@ -10,11 +10,17 @@ export interface ArWizardOption {
10
10
  export interface ArWizardProps {
11
11
  value: number;
12
12
  options: readonly ArWizardOption[];
13
+ /** Actual destination when the consumer skips optional steps; navigation remains consumer-owned. */
14
+ nextValue?: number;
13
15
  disabled?: boolean;
16
+ /** form は読みやすい幅で中央に配置。fluid は従来どおり配置先の全幅を使う。 */
17
+ layout?: "fluid" | "form";
18
+ /** nextStep may contain {step}; an explicit option.nextText still takes precedence. */
14
19
  labels?: {
15
20
  steps: string;
16
21
  prev: string;
17
22
  next: string;
23
+ nextStep?: string;
18
24
  };
19
25
  scrollOnChange?: boolean;
20
26
  }
@@ -12,10 +12,12 @@ declare const __VLS_base: import("vue").DefineComponent<ArWizardProps, {}, {}, {
12
12
  onPrev?: (() => any) | undefined;
13
13
  onNext?: (() => any) | undefined;
14
14
  }>, {
15
+ layout: "form" | "fluid";
15
16
  labels: {
16
17
  steps: string;
17
18
  prev: string;
18
19
  next: string;
20
+ nextStep?: string;
19
21
  };
20
22
  disabled: boolean;
21
23
  scrollOnChange: boolean;
@@ -133,6 +133,8 @@ export { default as ArMobileHeader } from "./components/ArMobileHeader.vue";
133
133
  export { default as ArMonthDayInput } from "./components/ArMonthDayInput.vue";
134
134
  export { default as ArPageHeading } from "./components/ArPageHeading.vue";
135
135
  export { default as ArPayslip } from "./components/ArPayslip.vue";
136
+ export { default as ArPayslipLine } from "./components/ArPayslipLine.vue";
137
+ export { default as ArPayslipTable } from "./components/ArPayslipTable.vue";
136
138
  export { default as ArPeriodBox } from "./components/ArPeriodBox.vue";
137
139
  export { default as ArPeriodNav } from "./components/ArPeriodNav.vue";
138
140
  export { default as ArPunchButton } from "./components/ArPunchButton.vue";
@@ -276,6 +278,8 @@ export type * from "./components/ArMobileHeader.contract";
276
278
  export type * from "./components/ArMonthDayInput.contract";
277
279
  export type * from "./components/ArPageHeading.contract";
278
280
  export type * from "./components/ArPayslip.contract";
281
+ export type * from "./components/ArPayslipLine.contract";
282
+ export type * from "./components/ArPayslipTable.contract";
279
283
  export type * from "./components/ArPeriodBox.contract";
280
284
  export type * from "./components/ArPeriodNav.contract";
281
285
  export type * from "./components/ArPunchButton.contract";
@@ -20,7 +20,7 @@ export declare const contracts: {
20
20
  readonly ArFloatButton: "1.0.0";
21
21
  readonly ArIcon: "1.0.0";
22
22
  readonly ArLink: "1.0.0";
23
- readonly ArParagraph: "1.0.0";
23
+ readonly ArParagraph: "1.1.0";
24
24
  readonly ArSegmented: "1.2.0";
25
25
  readonly ArText: "1.0.0";
26
26
  readonly ArTitle: "1.0.0";
@@ -30,11 +30,11 @@ export declare const contracts: {
30
30
  readonly ArDropdown: "1.1.0";
31
31
  readonly ArMenu: "1.0.0";
32
32
  readonly ArPagination: "1.0.0";
33
- readonly ArSectionMenu: "1.0.0";
33
+ readonly ArSectionMenu: "1.1.0";
34
34
  readonly ArSteps: "1.1.0";
35
35
  readonly ArStepSelect: "1.0.0";
36
36
  readonly ArTabs: "1.1.0";
37
- readonly ArWizard: "1.0.0";
37
+ readonly ArWizard: "1.2.0";
38
38
  readonly ArAutoComplete: "1.0.0";
39
39
  readonly ArCascader: "1.0.0";
40
40
  readonly ArCheckbox: "1.1.0";
@@ -57,7 +57,7 @@ export declare const contracts: {
57
57
  readonly ArRadio: "1.1.0";
58
58
  readonly ArRadioGroup: "1.2.0";
59
59
  readonly ArRate: "1.0.0";
60
- readonly ArRichTextEditor: "1.0.0";
60
+ readonly ArRichTextEditor: "1.1.0";
61
61
  readonly ArSelect: "1.3.0";
62
62
  readonly ArSlider: "1.0.0";
63
63
  readonly ArStepper: "1.1.0";
@@ -67,9 +67,9 @@ export declare const contracts: {
67
67
  readonly ArTextInput: "1.1.0";
68
68
  readonly ArTimeInput: "1.1.0";
69
69
  readonly ArTimePicker: "1.0.0";
70
- readonly ArTimeRange: "1.1.0";
70
+ readonly ArTimeRange: "1.3.0";
71
71
  readonly ArTransfer: "1.0.0";
72
- readonly ArTreeSelect: "1.1.0";
72
+ readonly ArTreeSelect: "1.2.0";
73
73
  readonly ArUpload: "1.2.0";
74
74
  readonly ArVariablePanel: "1.0.0";
75
75
  readonly ArWeekdayPicker: "1.1.0";
@@ -77,7 +77,7 @@ export declare const contracts: {
77
77
  readonly ArAvatar: "1.1.1";
78
78
  readonly ArAvatarGroup: "1.0.0";
79
79
  readonly ArBadge: "1.1.0";
80
- readonly ArCalendar: "1.2.0";
80
+ readonly ArCalendar: "1.3.0";
81
81
  readonly ArCard: "1.1.0";
82
82
  readonly ArCarousel: "1.0.0";
83
83
  readonly ArCollapse: "1.1.0";
@@ -85,7 +85,7 @@ export declare const contracts: {
85
85
  readonly ArDescriptions: "1.1.0";
86
86
  readonly ArEmpty: "1.0.0";
87
87
  readonly ArImage: "1.0.0";
88
- readonly ArList: "1.0.0";
88
+ readonly ArList: "1.1.0";
89
89
  readonly ArMapPreview: "1.0.0";
90
90
  readonly ArOrgChart: "1.1.0";
91
91
  readonly ArPdfViewer: "1.0.0";
@@ -129,7 +129,7 @@ export declare const contracts: {
129
129
  readonly ArDocumentBlock: "1.0.0";
130
130
  readonly ArEllipsis: "1.0.0";
131
131
  readonly ArExample: "1.0.0";
132
- readonly ArFlagGroup: "1.1.0";
132
+ readonly ArFlagGroup: "1.2.0";
133
133
  readonly ArFlagView: "1.0.0";
134
134
  readonly ArInfo: "1.0.0";
135
135
  readonly ArKanaInput: "1.0.0";
@@ -139,18 +139,20 @@ export declare const contracts: {
139
139
  readonly ArMobileHeader: "1.1.0";
140
140
  readonly ArMonthDayInput: "1.1.0";
141
141
  readonly ArPageHeading: "1.0.0";
142
- readonly ArPayslip: "1.0.0";
142
+ readonly ArPayslip: "1.1.0";
143
+ readonly ArPayslipLine: "1.0.0";
144
+ readonly ArPayslipTable: "1.0.0";
143
145
  readonly ArPeriodBox: "1.0.0";
144
146
  readonly ArPeriodNav: "1.1.0";
145
147
  readonly ArPunchButton: "1.0.0";
146
- readonly ArPunchPanel: "1.0.0";
148
+ readonly ArPunchPanel: "1.1.0";
147
149
  readonly ArSaveBar: "1.0.0";
148
150
  readonly ArSectionHead: "1.0.0";
149
151
  readonly ArShiftChart: "1.0.0";
150
152
  readonly ArShiftDaySheet: "1.0.0";
151
153
  readonly ArShiftGrid: "1.1.0";
152
154
  readonly ArShiftViewTable: "1.0.0";
153
- readonly ArThumbnail: "1.2.0";
155
+ readonly ArThumbnail: "1.3.0";
154
156
  readonly ArTimeChart: "1.1.0";
155
157
  readonly ArViewOptions: "1.1.0";
156
158
  readonly ArYearInput: "1.1.0";
@@ -164,7 +166,7 @@ export declare const componentNames: ArComponentName[];
164
166
  /** 見た目を持たず、デザインのライブラリが対応しなくてよい部品(並べるための基礎と仕組み)。 */
165
167
  export declare const structuralComponents: readonly ArComponentName[];
166
168
  /** デザインが見た目を用意しなければならない部品。 */
167
- 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" | "ArMenuTile" | "ArMobileHeader" | "ArMonthDayInput" | "ArPageHeading" | "ArPayslip" | "ArPeriodBox" | "ArPeriodNav" | "ArPunchButton" | "ArPunchPanel" | "ArSaveBar" | "ArSectionHead" | "ArShiftChart" | "ArShiftDaySheet" | "ArShiftGrid" | "ArShiftViewTable" | "ArThumbnail" | "ArTimeChart" | "ArViewOptions" | "ArYearInput" | "ArYearMonthInput" | "ArZipInput" | "ArAuthPanel" | "ArTableHeader")[];
169
+ 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" | "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")[];
168
170
  /** 説明のための情報(分類・日本語の名前)。 */
169
171
  export declare const componentMeta: Record<ArComponentName, {
170
172
  group: string;
@@ -0,0 +1,11 @@
1
+ /** 明細の表示専用整形。金額の業務計算・丸めは利用側が所有する。 */
2
+ export declare const formatPayslipValue: (value: number | string) => string;
3
+ export declare const isNegativePayslipValue: (value: number | string) => boolean;
4
+ export declare function payslipDifference(item: {
5
+ value: number | string;
6
+ prev?: number | null;
7
+ diff?: string;
8
+ }, zeroDiff: string): {
9
+ text: string;
10
+ sign: string;
11
+ } | null;
@@ -5,6 +5,8 @@
5
5
  import type { ArSpace } from "./types";
6
6
  type __VLS_Props = {
7
7
  start?: "sm" | "md" | "lg" | "xl";
8
+ /** 幅を固定する側。end は本文の右に補助欄を置く。幅の段階は start を使う。 */
9
+ fixed?: "start" | "end";
8
10
  gap?: ArSpace;
9
11
  stackBelow?: "sm" | "md" | "lg" | "xl";
10
12
  align?: "start" | "stretch";
@@ -18,6 +20,7 @@ declare const __VLS_template: () => {
18
20
  };
19
21
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ fixed: "start" | "end";
21
24
  start: "sm" | "md" | "lg" | "xl";
22
25
  gap: 0 | 7 | 1 | 2 | 3 | 4 | 5 | 6 | 8;
23
26
  align: "start" | "stretch";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s_and_a/arrow-ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.10",
4
4
  "description": "ARROW シリーズ共通の Vue 3 デザインライブラリ(部品・契約・デザインの差し替えの仕組み)",
5
5
  "type": "module",
6
6
  "sideEffects": [