1mpacto-react-ui 1.0.0 → 1.0.2
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/assets/_mixins.scss +43 -43
- package/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/assets/icons/arrow-narrow-down.svg +3 -3
- package/dist/index.cjs +65 -65
- package/dist/index.mjs +2104 -2091
- package/dist/package.json.d.ts +131 -131
- package/dist/src/components/Table/Table.d.ts +1 -1
- package/dist/src/components/Table/Table.stories.d.ts +16 -2
- package/dist/src/hooks/useAsyncDebounce.d.ts +9 -0
- package/dist/src/hooks/useCombinedResizeObserver.d.ts +66 -0
- package/dist/src/hooks/useCountdown.d.ts +61 -0
- package/dist/src/hooks/useDeepCompareEffect.d.ts +13 -0
- package/dist/src/hooks/useElementOrWindowMediaQuery.d.ts +9 -0
- package/dist/src/hooks/useEventListener.d.ts +27 -0
- package/dist/src/hooks/useMasonry.d.ts +79 -0
- package/dist/src/hooks/useMergeRefs.d.ts +26 -0
- package/dist/src/hooks/useOtpInput.d.ts +157 -0
- package/dist/src/hooks/useStateRef.d.ts +8 -0
- package/dist/src/interfaces/components/Alert/index.d.ts +9 -1
- package/dist/src/interfaces/components/Badges/index.d.ts +28 -0
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +79 -0
- package/dist/src/interfaces/components/Button/index.d.ts +44 -0
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +36 -0
- package/dist/src/interfaces/components/ButtonPopover/index.d.ts +78 -0
- package/dist/src/interfaces/components/Calendar/index.d.ts +364 -0
- package/dist/src/interfaces/components/Chart/index.d.ts +460 -0
- package/dist/src/interfaces/components/Checkbox/index.d.ts +12 -0
- package/dist/src/interfaces/components/Chips/index.d.ts +36 -0
- package/dist/src/interfaces/components/Collapse/index.d.ts +60 -0
- package/dist/src/interfaces/components/DatePicker/index.d.ts +274 -0
- package/dist/src/interfaces/components/ErrorMessage/index.d.ts +16 -0
- package/dist/src/interfaces/components/FilterContainer/index.d.ts +102 -0
- package/dist/src/interfaces/components/Input/index.d.ts +180 -0
- package/dist/src/interfaces/components/Modal/index.d.ts +45 -0
- package/dist/src/interfaces/components/NumberFormat/index.d.ts +25 -0
- package/dist/src/interfaces/components/Pagination/index.d.ts +81 -0
- package/dist/src/interfaces/components/Popover/index.d.ts +95 -0
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +56 -0
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +44 -0
- package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +195 -1
- package/dist/src/interfaces/components/Sidebar/index.d.ts +226 -0
- package/dist/src/interfaces/components/Step/index.d.ts +153 -0
- package/dist/src/interfaces/components/Switch/index.d.ts +53 -0
- package/dist/src/interfaces/components/Table/index.d.ts +386 -1
- package/dist/src/interfaces/components/Tabs/index.d.ts +126 -0
- package/dist/src/interfaces/components/TextEditor/index.d.ts +12 -0
- package/dist/src/interfaces/components/Textarea/index.d.ts +156 -0
- package/dist/src/interfaces/components/TimeRange/index.d.ts +100 -0
- package/dist/src/interfaces/components/Timeline/index.d.ts +36 -0
- package/dist/src/interfaces/components/Tooltip/index.d.ts +56 -0
- package/dist/src/interfaces/components/TruncateComponent/index.d.ts +34 -0
- package/dist/src/interfaces/components/UploadFile/index.d.ts +184 -1
- package/dist/src/interfaces/components/Virtualization/ListVirtualization.d.ts +138 -0
- package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +143 -0
- package/dist/tinymce/CHANGELOG.md +3785 -3785
- package/dist/tinymce/js/tinymce/langs/README.md +3 -3
- package/dist/tinymce/js/tinymce/license.md +6 -6
- package/dist/tinymce/js/tinymce/notices.txt +21 -21
- package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +8 -8
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ar.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ca.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/cs.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/da.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/de.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/el.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/en.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/es.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/eu.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fa.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fi.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hi.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hr.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/id.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/it.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ja.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/kk.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ms.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nl.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pl.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ro.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ru.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sk.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th_TH.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/tr.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/uk.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/vi.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +86 -86
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +92 -92
- package/dist/tinymce/js/tinymce/skins/content/dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/default/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/default/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/document/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/document/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/writer/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/writer/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/tinymce.d.ts +3350 -3350
- package/dist/tinymce/js/tinymce/tinymce.min.js +10 -10
- package/dist/types-external/table.d.ts +15 -15
- package/package.json +131 -131
|
@@ -3,106 +3,470 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { AriaButtonOptions, DateValue, RangeCalendarProps } from 'react-aria';
|
|
4
4
|
import { CalendarState, CalendarStateOptions, DateRangePickerStateOptions, RangeCalendarState } from 'react-stately';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* [ID] : Tipe kalender (tanggal, bulan, tahun).
|
|
8
|
+
* [EN] : Calendar type (date, month, year).
|
|
9
|
+
*/
|
|
6
10
|
export type TCalendarType = 'date' | 'month' | 'year';
|
|
11
|
+
/**
|
|
12
|
+
* [ID] : Tipe data tanggal.
|
|
13
|
+
* [EN] : Date data type.
|
|
14
|
+
*/
|
|
7
15
|
export type TDateType = Date | string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* [ID] : Kunci lokal yang didukung.
|
|
18
|
+
* [EN] : Supported locale keys.
|
|
19
|
+
*/
|
|
8
20
|
export type TKeyLocale = 'id-ID' | 'en-US' | 'nl-NL' | 'zh-CN';
|
|
21
|
+
/**
|
|
22
|
+
* [ID] : Interface untuk ikon navigasi kalender.
|
|
23
|
+
* [EN] : Interface for calendar navigation icons.
|
|
24
|
+
*/
|
|
9
25
|
export interface ICalendarPrevNextIcon {
|
|
26
|
+
/**
|
|
27
|
+
* [ID] : Ikon sebelumnya (opsional).
|
|
28
|
+
* [EN] : Previous icon (optional).
|
|
29
|
+
*/
|
|
10
30
|
prevIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
|
31
|
+
/**
|
|
32
|
+
* [ID] : Ikon selanjutnya (opsional).
|
|
33
|
+
* [EN] : Next icon (optional).
|
|
34
|
+
*/
|
|
11
35
|
nextIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
|
12
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* [ID] : Interface untuk tombol konfirmasi kalender.
|
|
39
|
+
* [EN] : Interface for calendar confirmation buttons.
|
|
40
|
+
*/
|
|
13
41
|
export interface ICalendarButtonConfirm {
|
|
42
|
+
/**
|
|
43
|
+
* [ID] : Tombol reset (opsional).
|
|
44
|
+
* [EN] : Reset button (optional).
|
|
45
|
+
*/
|
|
14
46
|
buttonReset?: (() => ReactNode) | (() => ReactNode[]);
|
|
47
|
+
/**
|
|
48
|
+
* [ID] : Tombol submit (opsional).
|
|
49
|
+
* [EN] : Submit button (optional).
|
|
50
|
+
*/
|
|
15
51
|
buttonSubmit?: (() => ReactNode) | (() => ReactNode[]);
|
|
16
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* [ID] : Interface untuk waktu kalender.
|
|
55
|
+
* [EN] : Interface for calendar time.
|
|
56
|
+
*/
|
|
17
57
|
export interface ITimeCalendar {
|
|
58
|
+
/**
|
|
59
|
+
* [ID] : Jam (opsional).
|
|
60
|
+
* [EN] : Hour (optional).
|
|
61
|
+
*/
|
|
18
62
|
hour?: number;
|
|
63
|
+
/**
|
|
64
|
+
* [ID] : Menit (opsional).
|
|
65
|
+
* [EN] : Minute (optional).
|
|
66
|
+
*/
|
|
19
67
|
minut?: number;
|
|
68
|
+
/**
|
|
69
|
+
* [ID] : Detik (opsional).
|
|
70
|
+
* [EN] : Second (optional).
|
|
71
|
+
*/
|
|
20
72
|
second?: number;
|
|
21
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* [ID] : Interface untuk rentang waktu kalender.
|
|
76
|
+
* [EN] : Interface for calendar time range.
|
|
77
|
+
*/
|
|
22
78
|
export interface ITimeCalendarRange {
|
|
79
|
+
/**
|
|
80
|
+
* [ID] : Waktu mulai (opsional).
|
|
81
|
+
* [EN] : Start time (optional).
|
|
82
|
+
*/
|
|
23
83
|
start?: ITimeCalendar;
|
|
84
|
+
/**
|
|
85
|
+
* [ID] : Waktu selesai (opsional).
|
|
86
|
+
* [EN] : End time (optional).
|
|
87
|
+
*/
|
|
24
88
|
end?: ITimeCalendar;
|
|
25
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* [ID] : Interface utama untuk komponen Kalender.
|
|
92
|
+
* [EN] : Main interface for Calendar component.
|
|
93
|
+
*/
|
|
26
94
|
export interface ICalendar extends CalendarStateOptions<DateValue>, ICalendarPrevNextIcon, ICalendarButtonConfirm {
|
|
95
|
+
/**
|
|
96
|
+
* [ID] : Menampilkan tombol konfirmasi (opsional).
|
|
97
|
+
* [EN] : Show confirm buttons (optional).
|
|
98
|
+
*/
|
|
27
99
|
withConfirm?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* [ID] : Menggunakan waktu kustom (opsional).
|
|
102
|
+
* [EN] : Use custom time (optional).
|
|
103
|
+
*/
|
|
28
104
|
isCustomTime?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* [ID] : Tanggal minimum (opsional).
|
|
107
|
+
* [EN] : Minimum date (optional).
|
|
108
|
+
*/
|
|
29
109
|
minDate?: TDateType;
|
|
110
|
+
/**
|
|
111
|
+
* [ID] : Tanggal maksimum (opsional).
|
|
112
|
+
* [EN] : Maximum date (optional).
|
|
113
|
+
*/
|
|
30
114
|
maxDate?: TDateType;
|
|
115
|
+
/**
|
|
116
|
+
* [ID] : Rentang waktu (opsional).
|
|
117
|
+
* [EN] : Time range (optional).
|
|
118
|
+
*/
|
|
31
119
|
time?: ITimeCalendarRange;
|
|
120
|
+
/**
|
|
121
|
+
* [ID] : Tipe kalender yang aktif (opsional).
|
|
122
|
+
* [EN] : Active calendar type (optional).
|
|
123
|
+
*/
|
|
32
124
|
activeType?: TCalendarType;
|
|
125
|
+
/**
|
|
126
|
+
* [ID] : Menampilkan pilihan tanggal (opsional).
|
|
127
|
+
* [EN] : Show date selection (optional).
|
|
128
|
+
*/
|
|
33
129
|
withDateSelect?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* [ID] : Tipe-tipe kalender yang tersedia.
|
|
132
|
+
* [EN] : Available calendar types.
|
|
133
|
+
*/
|
|
34
134
|
type: TCalendarType[];
|
|
135
|
+
/**
|
|
136
|
+
* [ID] : Tipe waktu (SINGLE atau RANGE) (opsional).
|
|
137
|
+
* [EN] : Time type (SINGLE or RANGE) (optional).
|
|
138
|
+
*/
|
|
35
139
|
typeTime?: 'SINGLE' | 'RANGE';
|
|
140
|
+
/**
|
|
141
|
+
* [ID] : Menyembunyikan header (opsional).
|
|
142
|
+
* [EN] : Hide header (optional).
|
|
143
|
+
*/
|
|
36
144
|
hiddenHeader?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* [ID] : Handler perubahan waktu (opsional).
|
|
147
|
+
* [EN] : Time change handler (optional).
|
|
148
|
+
* @param v - [ID] : Rentang waktu baru. [EN] : New time range.
|
|
149
|
+
*/
|
|
37
150
|
handlerChangeTime?: (v: ITimeCalendarRange) => void;
|
|
151
|
+
/**
|
|
152
|
+
* [ID] : Handler reset kalender.
|
|
153
|
+
* [EN] : Calendar reset handler.
|
|
154
|
+
* @param v - [ID] : State kalender. [EN] : Calendar state.
|
|
155
|
+
*/
|
|
38
156
|
handlerReset: (v: CalendarState) => void;
|
|
157
|
+
/**
|
|
158
|
+
* [ID] : Handler submit kalender.
|
|
159
|
+
* [EN] : Calendar submit handler.
|
|
160
|
+
*/
|
|
39
161
|
handlerSubmit: () => void;
|
|
40
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* [ID] : Interface untuk pilihan tanggal kalender.
|
|
165
|
+
* [EN] : Interface for calendar date selection.
|
|
166
|
+
*/
|
|
41
167
|
export interface ICalendarDateSelect extends CalendarStateOptions<DateValue>, ICalendarPrevNextIcon {
|
|
168
|
+
/**
|
|
169
|
+
* [ID] : State kalender.
|
|
170
|
+
* [EN] : Calendar state.
|
|
171
|
+
*/
|
|
42
172
|
state: CalendarState;
|
|
173
|
+
/**
|
|
174
|
+
* [ID] : Menyembunyikan header (opsional).
|
|
175
|
+
* [EN] : Hide header (optional).
|
|
176
|
+
*/
|
|
43
177
|
hiddenHeader?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* [ID] : Fungsi untuk mengatur tipe kalender aktif.
|
|
180
|
+
* [EN] : Function to set active calendar type.
|
|
181
|
+
* @param v - [ID] : Tipe kalender. [EN] : Calendar type.
|
|
182
|
+
*/
|
|
44
183
|
setActiveTypeCalendar: (v: TCalendarType) => void;
|
|
45
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* [ID] : Interface untuk waktu kustom kalender.
|
|
187
|
+
* [EN] : Interface for custom calendar time.
|
|
188
|
+
*/
|
|
46
189
|
export interface ICustomTimeCalendar {
|
|
190
|
+
/**
|
|
191
|
+
* [ID] : Waktu (opsional).
|
|
192
|
+
* [EN] : Time (optional).
|
|
193
|
+
*/
|
|
47
194
|
time?: ITimeCalendar;
|
|
195
|
+
/**
|
|
196
|
+
* [ID] : Nilai tanggal (opsional).
|
|
197
|
+
* [EN] : Date value (optional).
|
|
198
|
+
*/
|
|
48
199
|
value?: DateValue | null | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* [ID] : Tanggal minimum (opsional).
|
|
202
|
+
* [EN] : Minimum date (optional).
|
|
203
|
+
*/
|
|
49
204
|
minDate?: TDateType;
|
|
205
|
+
/**
|
|
206
|
+
* [ID] : Tanggal maksimum (opsional).
|
|
207
|
+
* [EN] : Maximum date (optional).
|
|
208
|
+
*/
|
|
50
209
|
maxDate?: TDateType;
|
|
210
|
+
/**
|
|
211
|
+
* [ID] : Label waktu (opsional).
|
|
212
|
+
* [EN] : Time label (optional).
|
|
213
|
+
*/
|
|
51
214
|
timeLabel?: string;
|
|
215
|
+
/**
|
|
216
|
+
* [ID] : Menyembunyikan header (opsional).
|
|
217
|
+
* [EN] : Hide header (optional).
|
|
218
|
+
*/
|
|
52
219
|
hiddenHeader?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* [ID] : Tipe waktu (mulai atau selesai).
|
|
222
|
+
* [EN] : Time type (start or end).
|
|
223
|
+
*/
|
|
53
224
|
type: 'start' | 'end';
|
|
225
|
+
/**
|
|
226
|
+
* [ID] : Handler perubahan waktu (opsional).
|
|
227
|
+
* [EN] : Time change handler (optional).
|
|
228
|
+
* @param v - [ID] : Waktu baru. [EN] : New time.
|
|
229
|
+
*/
|
|
54
230
|
handlerChangeTime?: (v: ITimeCalendar) => void;
|
|
55
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* [ID] : Interface untuk tombol kalender.
|
|
234
|
+
* [EN] : Interface for calendar button.
|
|
235
|
+
*/
|
|
56
236
|
export interface ICalendarButton extends AriaButtonOptions<'button'> {
|
|
237
|
+
/**
|
|
238
|
+
* [ID] : Konten anak tombol.
|
|
239
|
+
* [EN] : Button child content.
|
|
240
|
+
*/
|
|
57
241
|
children: ReactNode | ReactNode[];
|
|
58
242
|
}
|
|
243
|
+
/**
|
|
244
|
+
* [ID] : Interface untuk sel kalender.
|
|
245
|
+
* [EN] : Interface for calendar cell.
|
|
246
|
+
*/
|
|
59
247
|
export interface ICalendarCell {
|
|
248
|
+
/**
|
|
249
|
+
* [ID] : State kalender.
|
|
250
|
+
* [EN] : Calendar state.
|
|
251
|
+
*/
|
|
60
252
|
state: RangeCalendarState | CalendarState;
|
|
253
|
+
/**
|
|
254
|
+
* [ID] : Tanggal sel.
|
|
255
|
+
* [EN] : Cell date.
|
|
256
|
+
*/
|
|
61
257
|
date: CalendarDate;
|
|
62
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* [ID] : Interface untuk tampilan bulan kalender.
|
|
261
|
+
* [EN] : Interface for calendar month view.
|
|
262
|
+
*/
|
|
63
263
|
export interface ICalendarMonth extends ICalendarPrevNextIcon {
|
|
264
|
+
/**
|
|
265
|
+
* [ID] : State kalender.
|
|
266
|
+
* [EN] : Calendar state.
|
|
267
|
+
*/
|
|
64
268
|
state: CalendarState | RangeCalendarState;
|
|
269
|
+
/**
|
|
270
|
+
* [ID] : Tipe-tipe kalender yang tersedia.
|
|
271
|
+
* [EN] : Available calendar types.
|
|
272
|
+
*/
|
|
65
273
|
type: TCalendarType[];
|
|
274
|
+
/**
|
|
275
|
+
* [ID] : Fungsi untuk mengatur tipe kalender aktif.
|
|
276
|
+
* [EN] : Function to set active calendar type.
|
|
277
|
+
* @param v - [ID] : Tipe kalender. [EN] : Calendar type.
|
|
278
|
+
*/
|
|
66
279
|
setActiveTypeCalendar: (v: TCalendarType) => void;
|
|
280
|
+
/**
|
|
281
|
+
* [ID] : Menampilkan pilihan tanggal (opsional).
|
|
282
|
+
* [EN] : Show date selection (optional).
|
|
283
|
+
*/
|
|
67
284
|
withDateSelect?: boolean;
|
|
285
|
+
/**
|
|
286
|
+
* [ID] : Handler perubahan bulan (opsional).
|
|
287
|
+
* [EN] : Month change handler (optional).
|
|
288
|
+
* @param v - [ID] : Tanggal baru. [EN] : New date.
|
|
289
|
+
*/
|
|
68
290
|
onChangeMonth?: (v: CalendarDate) => void;
|
|
291
|
+
/**
|
|
292
|
+
* [ID] : Menyembunyikan header (opsional).
|
|
293
|
+
* [EN] : Hide header (optional).
|
|
294
|
+
*/
|
|
69
295
|
hiddenHeader?: boolean;
|
|
70
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* [ID] : Interface untuk pengaturan tahun.
|
|
299
|
+
* [EN] : Interface for year setup.
|
|
300
|
+
*/
|
|
71
301
|
export interface ISetUpYear {
|
|
302
|
+
/**
|
|
303
|
+
* [ID] : Tahun mulai.
|
|
304
|
+
* [EN] : Start year.
|
|
305
|
+
*/
|
|
72
306
|
startYear: number;
|
|
307
|
+
/**
|
|
308
|
+
* [ID] : Akhir setelah tahun ini.
|
|
309
|
+
* [EN] : End after this year.
|
|
310
|
+
*/
|
|
73
311
|
endAfterThisYear: number;
|
|
74
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* [ID] : Interface untuk tampilan tahun kalender.
|
|
315
|
+
* [EN] : Interface for calendar year view.
|
|
316
|
+
*/
|
|
75
317
|
export interface ICalendarYear {
|
|
318
|
+
/**
|
|
319
|
+
* [ID] : Judul tampilan tahun.
|
|
320
|
+
* [EN] : Year view title.
|
|
321
|
+
*/
|
|
76
322
|
title: string;
|
|
323
|
+
/**
|
|
324
|
+
* [ID] : State kalender.
|
|
325
|
+
* [EN] : Calendar state.
|
|
326
|
+
*/
|
|
77
327
|
state: CalendarState | RangeCalendarState;
|
|
328
|
+
/**
|
|
329
|
+
* [ID] : Pengaturan tahun (opsional).
|
|
330
|
+
* [EN] : Year setup (optional).
|
|
331
|
+
*/
|
|
78
332
|
setUpYear?: ISetUpYear;
|
|
333
|
+
/**
|
|
334
|
+
* [ID] : Tipe-tipe kalender yang tersedia.
|
|
335
|
+
* [EN] : Available calendar types.
|
|
336
|
+
*/
|
|
79
337
|
type: TCalendarType[];
|
|
338
|
+
/**
|
|
339
|
+
* [ID] : Fungsi untuk mengatur tipe kalender aktif.
|
|
340
|
+
* [EN] : Function to set active calendar type.
|
|
341
|
+
* @param v - [ID] : Tipe kalender. [EN] : Calendar type.
|
|
342
|
+
*/
|
|
80
343
|
setActiveTypeCalendar: (v: TCalendarType) => void;
|
|
344
|
+
/**
|
|
345
|
+
* [ID] : Handler perubahan tahun (opsional).
|
|
346
|
+
* [EN] : Year change handler (optional).
|
|
347
|
+
* @param v - [ID] : Tanggal baru. [EN] : New date.
|
|
348
|
+
*/
|
|
81
349
|
onChangeYear?: (v: CalendarDate) => void;
|
|
350
|
+
/**
|
|
351
|
+
* [ID] : Menyembunyikan header (opsional).
|
|
352
|
+
* [EN] : Hide header (optional).
|
|
353
|
+
*/
|
|
82
354
|
hiddenHeader?: boolean;
|
|
83
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* [ID] : Interface untuk rentang tanggal.
|
|
358
|
+
* [EN] : Interface for date range.
|
|
359
|
+
*/
|
|
84
360
|
export interface IDateRange {
|
|
361
|
+
/**
|
|
362
|
+
* [ID] : Tanggal mulai.
|
|
363
|
+
* [EN] : Start date.
|
|
364
|
+
*/
|
|
85
365
|
startDate: TDateType;
|
|
366
|
+
/**
|
|
367
|
+
* [ID] : Tanggal selesai.
|
|
368
|
+
* [EN] : End date.
|
|
369
|
+
*/
|
|
86
370
|
endDate: TDateType;
|
|
371
|
+
/**
|
|
372
|
+
* [ID] : Label rentang (opsional).
|
|
373
|
+
* [EN] : Range label (optional).
|
|
374
|
+
*/
|
|
87
375
|
label?: string;
|
|
88
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* [ID] : Interface untuk kalender rentang tanggal.
|
|
379
|
+
* [EN] : Interface for date range calendar.
|
|
380
|
+
*/
|
|
89
381
|
export interface ICalendarDateRange extends RangeCalendarProps<DateValue>, ICalendarPrevNextIcon, ICalendarButtonConfirm {
|
|
382
|
+
/**
|
|
383
|
+
* [ID] : Menampilkan tombol konfirmasi (opsional).
|
|
384
|
+
* [EN] : Show confirm buttons (optional).
|
|
385
|
+
*/
|
|
90
386
|
withConfirm?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* [ID] : Menggunakan waktu kustom (opsional).
|
|
389
|
+
* [EN] : Use custom time (optional).
|
|
390
|
+
*/
|
|
91
391
|
isCustomTime?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* [ID] : Tanggal minimum (opsional).
|
|
394
|
+
* [EN] : Minimum date (optional).
|
|
395
|
+
*/
|
|
92
396
|
minDate?: TDateType;
|
|
397
|
+
/**
|
|
398
|
+
* [ID] : Tanggal maksimum (opsional).
|
|
399
|
+
* [EN] : Maximum date (optional).
|
|
400
|
+
*/
|
|
93
401
|
maxDate?: TDateType;
|
|
402
|
+
/**
|
|
403
|
+
* [ID] : Rentang waktu (opsional).
|
|
404
|
+
* [EN] : Time range (optional).
|
|
405
|
+
*/
|
|
94
406
|
time?: ITimeCalendarRange;
|
|
407
|
+
/**
|
|
408
|
+
* [ID] : Handler perubahan rentang waktu (opsional).
|
|
409
|
+
* [EN] : Time range change handler (optional).
|
|
410
|
+
* @param v - [ID] : Rentang waktu baru. [EN] : New time range.
|
|
411
|
+
*/
|
|
95
412
|
handlerChangeTimeRange?: (v: ITimeCalendarRange) => void;
|
|
413
|
+
/**
|
|
414
|
+
* [ID] : Handler submit.
|
|
415
|
+
* [EN] : Submit handler.
|
|
416
|
+
*/
|
|
96
417
|
handlerSubmit: () => void;
|
|
418
|
+
/**
|
|
419
|
+
* [ID] : Handler reset.
|
|
420
|
+
* [EN] : Reset handler.
|
|
421
|
+
* @param v - [ID] : State kalender rentang. [EN] : Range calendar state.
|
|
422
|
+
*/
|
|
97
423
|
handlerReset: (v: RangeCalendarState) => void;
|
|
98
424
|
}
|
|
425
|
+
/**
|
|
426
|
+
* [ID] : Interface untuk kalender rentang.
|
|
427
|
+
* [EN] : Interface for range calendar.
|
|
428
|
+
*/
|
|
99
429
|
export interface ICalendarRange extends DateRangePickerStateOptions, ICalendarPrevNextIcon, ICalendarButtonConfirm {
|
|
430
|
+
/**
|
|
431
|
+
* [ID] : Menampilkan tombol konfirmasi (opsional).
|
|
432
|
+
* [EN] : Show confirm buttons (optional).
|
|
433
|
+
*/
|
|
100
434
|
withConfirm?: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* [ID] : Menggunakan waktu kustom (opsional).
|
|
437
|
+
* [EN] : Use custom time (optional).
|
|
438
|
+
*/
|
|
101
439
|
isCustomTime?: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* [ID] : Tanggal minimum (opsional).
|
|
442
|
+
* [EN] : Minimum date (optional).
|
|
443
|
+
*/
|
|
102
444
|
minDate?: TDateType;
|
|
445
|
+
/**
|
|
446
|
+
* [ID] : Tanggal maksimum (opsional).
|
|
447
|
+
* [EN] : Maximum date (optional).
|
|
448
|
+
*/
|
|
103
449
|
maxDate?: TDateType;
|
|
450
|
+
/**
|
|
451
|
+
* [ID] : Rentang waktu (opsional).
|
|
452
|
+
* [EN] : Time range (optional).
|
|
453
|
+
*/
|
|
104
454
|
time?: ITimeCalendarRange;
|
|
455
|
+
/**
|
|
456
|
+
* [ID] : Handler perubahan rentang waktu (opsional).
|
|
457
|
+
* [EN] : Time range change handler (optional).
|
|
458
|
+
* @param v - [ID] : Rentang waktu baru. [EN] : New time range.
|
|
459
|
+
*/
|
|
105
460
|
handlerChangeTimeRange?: (v: ITimeCalendarRange) => void;
|
|
461
|
+
/**
|
|
462
|
+
* [ID] : Handler submit.
|
|
463
|
+
* [EN] : Submit handler.
|
|
464
|
+
*/
|
|
106
465
|
handlerSubmit: () => void;
|
|
466
|
+
/**
|
|
467
|
+
* [ID] : Handler reset.
|
|
468
|
+
* [EN] : Reset handler.
|
|
469
|
+
* @param v - [ID] : State kalender rentang. [EN] : Range calendar state.
|
|
470
|
+
*/
|
|
107
471
|
handlerReset: (v: RangeCalendarState) => void;
|
|
108
472
|
}
|