@zvoove/unity-ui 2.35.3 → 2.37.0
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/bin/cli.mjs +3692 -3800
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.d.ts +35 -2
- package/dist/unity-ui.es.js +161 -157
- package/package.json +22 -22
package/dist/unity-ui.d.ts
CHANGED
|
@@ -906,6 +906,7 @@ export declare const commonIconsMap: {
|
|
|
906
906
|
readonly timer: Icon_2;
|
|
907
907
|
readonly 'time-sheet-download': Icon_2;
|
|
908
908
|
readonly 'time-sheet-upload': Icon_2;
|
|
909
|
+
readonly toolbox: Icon_2;
|
|
909
910
|
readonly train: Icon_2;
|
|
910
911
|
readonly translate: Icon_2;
|
|
911
912
|
readonly travel: Icon_2;
|
|
@@ -1076,15 +1077,31 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
|
|
|
1076
1077
|
* - `week` — a whole ISO 8601 calendar week. The input becomes read-only (the
|
|
1077
1078
|
* week can only be chosen from the popup), clicking any day selects its week,
|
|
1078
1079
|
* and the selected week is highlighted as a full row.
|
|
1080
|
+
* - `month` — a single month/year pair. The input becomes read-only, and the
|
|
1081
|
+
* popup shows only a month picker (list or card, per `monthView`) with its
|
|
1082
|
+
* own year navigation.
|
|
1079
1083
|
*
|
|
1080
1084
|
* @default 'date'
|
|
1081
1085
|
*/
|
|
1082
|
-
mode?: 'date' | 'week';
|
|
1086
|
+
mode?: 'date' | 'week' | 'month';
|
|
1083
1087
|
/**
|
|
1084
1088
|
* The placeholder shown when `mode="week"` and no week is selected. <br/>
|
|
1085
1089
|
* If not provided, a locale-aware default is used (e.g. 'KW auswählen' for 'de-DE').
|
|
1086
1090
|
*/
|
|
1087
1091
|
weekPlaceholder?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* The placeholder shown when `mode="month"` and no month is selected. <br/>
|
|
1094
|
+
* If not provided, a locale-aware default is used (e.g. 'Monat auswählen' for 'de-DE').
|
|
1095
|
+
*/
|
|
1096
|
+
monthPlaceholder?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* When provided, selecting a month in `mode="month"` calls this callback
|
|
1099
|
+
* with the chosen month/year, as `{ month, year }` where `month` is
|
|
1100
|
+
* 0-indexed (0 = January, 11 = December), matching `Date#getMonth()`.
|
|
1101
|
+
* The dialog closes after selection.
|
|
1102
|
+
* Called with `null` when the selection is cleared via Backspace/Delete.
|
|
1103
|
+
*/
|
|
1104
|
+
onMonthChange?: (value: MonthYear | null) => void;
|
|
1088
1105
|
/**
|
|
1089
1106
|
* When true, a "KW" column is prepended to the calendar grid showing ISO 8601
|
|
1090
1107
|
* week numbers. The grid switches from 7 to 8 columns.
|
|
@@ -1094,8 +1111,9 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
|
|
|
1094
1111
|
* When provided, clicking any day in a calendar row (or the KW cell) calls this
|
|
1095
1112
|
* callback with the ISO 8601 week of that row instead of the normal day selection.
|
|
1096
1113
|
* The dialog closes after selection.
|
|
1114
|
+
* Called with `null` when the selection is cleared via Backspace/Delete.
|
|
1097
1115
|
*/
|
|
1098
|
-
onWeekChange?: (week: IsoWeek) => void;
|
|
1116
|
+
onWeekChange?: (week: IsoWeek | null) => void;
|
|
1099
1117
|
/**
|
|
1100
1118
|
* Forces the calendar dialog to open above or below the input.
|
|
1101
1119
|
* When not set, the dialog auto-detects based on available viewport space.
|
|
@@ -1111,6 +1129,15 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
|
|
|
1111
1129
|
* @default 'calendar'
|
|
1112
1130
|
*/
|
|
1113
1131
|
weekView?: 'calendar' | 'list' | 'strip';
|
|
1132
|
+
/**
|
|
1133
|
+
* Controls how the month picker is presented
|
|
1134
|
+
*
|
|
1135
|
+
* - `list` — scrollable list of month names (default).
|
|
1136
|
+
* - `card` — grid of clickable month options.
|
|
1137
|
+
*
|
|
1138
|
+
* @default 'list'
|
|
1139
|
+
*/
|
|
1140
|
+
monthView?: 'list' | 'card';
|
|
1114
1141
|
}
|
|
1115
1142
|
|
|
1116
1143
|
export declare const DEFAULT_ANNOUNCEMENTS: {
|
|
@@ -2031,6 +2058,7 @@ declare const iconMap: {
|
|
|
2031
2058
|
readonly timer: Icon_2;
|
|
2032
2059
|
readonly 'time-sheet-download': Icon_2;
|
|
2033
2060
|
readonly 'time-sheet-upload': Icon_2;
|
|
2061
|
+
readonly toolbox: Icon_2;
|
|
2034
2062
|
readonly train: Icon_2;
|
|
2035
2063
|
readonly translate: Icon_2;
|
|
2036
2064
|
readonly travel: Icon_2;
|
|
@@ -2572,6 +2600,11 @@ export declare type MidSectionMenusProps<T extends ElementType = 'a'> = {
|
|
|
2572
2600
|
onItemClick?: (item: ListMenuItem<T>) => void;
|
|
2573
2601
|
};
|
|
2574
2602
|
|
|
2603
|
+
declare type MonthYear = {
|
|
2604
|
+
month: number;
|
|
2605
|
+
year: number;
|
|
2606
|
+
};
|
|
2607
|
+
|
|
2575
2608
|
declare type NonNullable_2<T> = Exclude<T, null | undefined>;
|
|
2576
2609
|
export { NonNullable_2 as NonNullable }
|
|
2577
2610
|
|