orbcafe-ui 1.4.0 → 1.4.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/index.d.mts +39 -8
- package/dist/index.d.ts +39 -8
- package/dist/index.js +16 -16
- package/dist/index.mjs +15 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -204,6 +204,9 @@ interface CValueHelpProps<TRecord extends CValueHelpRecord = CValueHelpRecord> e
|
|
|
204
204
|
noResultsText?: string;
|
|
205
205
|
loading?: boolean;
|
|
206
206
|
clearable?: boolean;
|
|
207
|
+
allowManualInput?: boolean;
|
|
208
|
+
validateManualInput?: boolean;
|
|
209
|
+
manualInputErrorText?: string;
|
|
207
210
|
selectedItems?: TRecord[];
|
|
208
211
|
displayValue?: string;
|
|
209
212
|
getOptionValue?: (item: TRecord) => CValueHelpPrimitive;
|
|
@@ -212,7 +215,7 @@ interface CValueHelpProps<TRecord extends CValueHelpRecord = CValueHelpRecord> e
|
|
|
212
215
|
onChange?: (value: CValueHelpSelectionValue, selection: TRecord | TRecord[] | null) => void;
|
|
213
216
|
onSearch?: (query: string) => Promise<TRecord[] | void> | TRecord[] | void;
|
|
214
217
|
}
|
|
215
|
-
declare const CValueHelp: <TRecord extends CValueHelpRecord = CValueHelpRecord>({ value, items, columns, mode, dialogTitle, searchPlaceholder, selectLabel, clearLabel, cancelLabel, valueHelpLabel, noResultsText, loading, clearable, selectedItems, displayValue, getOptionValue, getOptionLabel, getOptionDescription, onChange, onSearch, disabled, InputProps, onKeyDown, ...textFieldProps }: CValueHelpProps<TRecord>) => react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare const CValueHelp: <TRecord extends CValueHelpRecord = CValueHelpRecord>({ value, items, columns, mode, dialogTitle, searchPlaceholder, selectLabel, clearLabel, cancelLabel, valueHelpLabel, noResultsText, loading, clearable, allowManualInput, validateManualInput, manualInputErrorText, selectedItems, displayValue, getOptionValue, getOptionLabel, getOptionDescription, onChange, onSearch, disabled, InputProps, onFocus, onBlur, onKeyDown, error, helperText, ...textFieldProps }: CValueHelpProps<TRecord>) => react_jsx_runtime.JSX.Element;
|
|
216
219
|
|
|
217
220
|
interface CustomizeAgentSettings {
|
|
218
221
|
baseUrl: string;
|
|
@@ -1321,6 +1324,10 @@ declare const en: {
|
|
|
1321
1324
|
readonly 'common.delete': "Delete";
|
|
1322
1325
|
readonly 'common.loading': "Loading...";
|
|
1323
1326
|
readonly 'header.searchPlaceholder': "Ask me...";
|
|
1327
|
+
readonly 'header.searchAddFeature': "Add feature";
|
|
1328
|
+
readonly 'header.searchSend': "Send";
|
|
1329
|
+
readonly 'header.searchStartVoice': "Start voice input";
|
|
1330
|
+
readonly 'header.searchStopVoice': "Stop voice input";
|
|
1324
1331
|
readonly 'header.theme.system': "Theme: System";
|
|
1325
1332
|
readonly 'header.theme.dark': "Theme: Dark";
|
|
1326
1333
|
readonly 'header.theme.light': "Theme: Light";
|
|
@@ -1585,6 +1592,7 @@ interface CAppHeaderProps {
|
|
|
1585
1592
|
onLocaleChange?: (locale: OrbcafeLocale) => void;
|
|
1586
1593
|
searchPlaceholder?: string;
|
|
1587
1594
|
onSearch?: (query: string) => void;
|
|
1595
|
+
onSearchAdd?: () => void;
|
|
1588
1596
|
user?: CAppHeaderUser;
|
|
1589
1597
|
onUserSetting?: () => void;
|
|
1590
1598
|
onUserLogout?: () => void;
|
|
@@ -1607,6 +1615,7 @@ interface CAppPageLayoutProps {
|
|
|
1607
1615
|
userMenuItems?: CAppHeaderUserMenuItem[];
|
|
1608
1616
|
logo?: ReactNode;
|
|
1609
1617
|
onSearch?: (query: string) => void;
|
|
1618
|
+
onSearchAdd?: () => void;
|
|
1610
1619
|
rightHeaderSlot?: ReactNode;
|
|
1611
1620
|
leftHeaderSlot?: ReactNode;
|
|
1612
1621
|
contentSx?: SxProps<Theme>;
|
|
@@ -1616,9 +1625,9 @@ interface CAppPageLayoutProps {
|
|
|
1616
1625
|
showNavigationModeToggle?: boolean;
|
|
1617
1626
|
}
|
|
1618
1627
|
|
|
1619
|
-
declare const CAppPageLayout: ({ appTitle, menuData, children, showNavigation, locale, localeLabel, localeOptions, onLocaleChange, user, onUserSetting, onUserLogout, userMenuItems, logo, onSearch, rightHeaderSlot, leftHeaderSlot, contentSx, navigationMode, defaultNavigationMode, onNavigationModeChange, showNavigationModeToggle, }: CAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1628
|
+
declare const CAppPageLayout: ({ appTitle, menuData, children, showNavigation, locale, localeLabel, localeOptions, onLocaleChange, user, onUserSetting, onUserLogout, userMenuItems, logo, onSearch, onSearchAdd, rightHeaderSlot, leftHeaderSlot, contentSx, navigationMode, defaultNavigationMode, onNavigationModeChange, showNavigationModeToggle, }: CAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1620
1629
|
|
|
1621
|
-
declare const CAppHeader: ({ appTitle, logo, mode, onToggleMode, locale: localeProp, localeLabel, localeOptions, onLocaleChange, searchPlaceholder, onSearch, user, onUserSetting, onUserLogout, userMenuItems, leftSlot, rightSlot, }: CAppHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1630
|
+
declare const CAppHeader: ({ appTitle, logo, mode, onToggleMode, locale: localeProp, localeLabel, localeOptions, onLocaleChange, searchPlaceholder, onSearch, onSearchAdd, user, onUserSetting, onUserLogout, userMenuItems, leftSlot, rightSlot, }: CAppHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1622
1631
|
|
|
1623
1632
|
interface UsePageLayoutOptions {
|
|
1624
1633
|
menuData?: TreeMenuItem[];
|
|
@@ -1921,6 +1930,7 @@ interface PAppPageLayoutProps {
|
|
|
1921
1930
|
containerSx?: SxProps<Theme>;
|
|
1922
1931
|
user?: CAppHeaderUser;
|
|
1923
1932
|
onSearch?: (query: string) => void;
|
|
1933
|
+
onSearchAdd?: () => void;
|
|
1924
1934
|
defaultNavigationOpen?: boolean;
|
|
1925
1935
|
navOpen?: boolean;
|
|
1926
1936
|
onNavOpenChange?: (open: boolean) => void;
|
|
@@ -1996,7 +2006,7 @@ declare const PNavIsland: ({ collapsed, onToggle, className, maxHeight, menuData
|
|
|
1996
2006
|
|
|
1997
2007
|
declare const PTable: React__default.FC<PTableProps>;
|
|
1998
2008
|
|
|
1999
|
-
declare const PAppPageLayout: ({ appTitle, children, menuData, workloadItems, workloadSelectedId, showNavigation, showWorkloadNav, orientation, logo, headerSlot, actionSlot, portraitBottomSlot, contentSx, containerSx, user, onSearch, defaultNavigationOpen, navOpen, onNavOpenChange, onWorkloadSelect, locale, localeLabel, localeOptions, onLocaleChange, onUserSetting, onUserLogout, userMenuItems, leftHeaderSlot, rightHeaderSlot, }: PAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
2009
|
+
declare const PAppPageLayout: ({ appTitle, children, menuData, workloadItems, workloadSelectedId, showNavigation, showWorkloadNav, orientation, logo, headerSlot, actionSlot, portraitBottomSlot, contentSx, containerSx, user, onSearch, onSearchAdd, defaultNavigationOpen, navOpen, onNavOpenChange, onWorkloadSelect, locale, localeLabel, localeOptions, onLocaleChange, onUserSetting, onUserLogout, userMenuItems, leftHeaderSlot, rightHeaderSlot, }: PAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
2000
2010
|
|
|
2001
2011
|
interface UseVoiceInputOptions {
|
|
2002
2012
|
onTextUpdate?: (text: string) => void;
|
|
@@ -2259,6 +2269,9 @@ interface PlanningGanttSummaryItem {
|
|
|
2259
2269
|
tone?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
2260
2270
|
}
|
|
2261
2271
|
interface CPlanningGanttProps {
|
|
2272
|
+
appId?: string;
|
|
2273
|
+
tableKey?: string;
|
|
2274
|
+
serviceUrl?: string;
|
|
2262
2275
|
title?: string;
|
|
2263
2276
|
subtitle?: string;
|
|
2264
2277
|
extraTools?: ReactNode | ReactNode[];
|
|
@@ -2282,6 +2295,11 @@ interface CPlanningGanttProps {
|
|
|
2282
2295
|
activeTask: PlanningTaskRecord;
|
|
2283
2296
|
targetTask: PlanningTaskRecord;
|
|
2284
2297
|
}) => void;
|
|
2298
|
+
layout?: any;
|
|
2299
|
+
layoutVariant?: any;
|
|
2300
|
+
layoutVariantLoadKey?: number;
|
|
2301
|
+
onLayoutIdChange?: (layoutId: string) => void;
|
|
2302
|
+
onLayoutSave?: (layout: any) => void;
|
|
2285
2303
|
summaryItems?: PlanningGanttSummaryItem[];
|
|
2286
2304
|
emptyLabel?: string;
|
|
2287
2305
|
sx?: SxProps<Theme>;
|
|
@@ -2289,12 +2307,23 @@ interface CPlanningGanttProps {
|
|
|
2289
2307
|
|
|
2290
2308
|
interface UsePlanningGanttOptions {
|
|
2291
2309
|
tasks: PlanningTaskRecord[];
|
|
2310
|
+
appId?: string;
|
|
2311
|
+
tableKey?: string;
|
|
2292
2312
|
defaultScale?: PlanningGanttScale;
|
|
2293
2313
|
defaultSelectedTaskId?: string;
|
|
2294
2314
|
initialFilters?: Record<string, FilterValue>;
|
|
2295
2315
|
filterFields?: FilterField[];
|
|
2316
|
+
/**
|
|
2317
|
+
* @deprecated Use appId so SmartFilter variants and table layouts share one persistence namespace.
|
|
2318
|
+
*/
|
|
2296
2319
|
filterAppId?: string;
|
|
2320
|
+
/**
|
|
2321
|
+
* @deprecated Use tableKey so SmartFilter variants and table layouts share one persistence scope.
|
|
2322
|
+
*/
|
|
2297
2323
|
filterTableKey?: string;
|
|
2324
|
+
serviceUrl?: CSmartFilterProps['serviceUrl'];
|
|
2325
|
+
variantService?: CSmartFilterProps['variantService'];
|
|
2326
|
+
layout?: CPlanningGanttProps['layout'];
|
|
2298
2327
|
columns?: CPlanningGanttProps['columns'];
|
|
2299
2328
|
page?: CPlanningGanttProps['page'];
|
|
2300
2329
|
rowsPerPage?: CPlanningGanttProps['rowsPerPage'];
|
|
@@ -2306,6 +2335,8 @@ interface UsePlanningGanttOptions {
|
|
|
2306
2335
|
onFilterVariantLoad?: CSmartFilterProps['onVariantLoad'];
|
|
2307
2336
|
enableRowReorder?: CPlanningGanttProps['enableRowReorder'];
|
|
2308
2337
|
onTaskReorder?: CPlanningGanttProps['onTaskReorder'];
|
|
2338
|
+
onLayoutIdChange?: CPlanningGanttProps['onLayoutIdChange'];
|
|
2339
|
+
onLayoutSave?: CPlanningGanttProps['onLayoutSave'];
|
|
2309
2340
|
}
|
|
2310
2341
|
interface UsePlanningGanttResult {
|
|
2311
2342
|
scale: PlanningGanttScale;
|
|
@@ -2315,10 +2346,10 @@ interface UsePlanningGanttResult {
|
|
|
2315
2346
|
filters: Record<string, FilterValue>;
|
|
2316
2347
|
setFilters: (filters: Record<string, FilterValue>) => void;
|
|
2317
2348
|
filteredTasks: PlanningTaskRecord[];
|
|
2318
|
-
smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey'>;
|
|
2319
|
-
planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'page' | 'rowsPerPage' | 'rowsPerPageOptions' | 'count' | 'onPageChange' | 'onRowsPerPageChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
|
|
2349
|
+
smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey' | 'currentLayoutId' | 'layoutRefs' | 'variantService' | 'serviceUrl'>;
|
|
2350
|
+
planningGanttProps: Pick<CPlanningGanttProps, 'appId' | 'tableKey' | 'serviceUrl' | 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'page' | 'rowsPerPage' | 'rowsPerPageOptions' | 'count' | 'onPageChange' | 'onRowsPerPageChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder' | 'layout' | 'layoutVariant' | 'layoutVariantLoadKey' | 'onLayoutIdChange' | 'onLayoutSave'>;
|
|
2320
2351
|
}
|
|
2321
|
-
declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, columns, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2352
|
+
declare const usePlanningGantt: ({ tasks, appId, tableKey, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, serviceUrl, variantService, layout, columns, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, onLayoutIdChange, onLayoutSave, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2322
2353
|
|
|
2323
2354
|
interface CPlanningLayoutProps {
|
|
2324
2355
|
filterProps: CSmartFilterProps;
|
|
@@ -2336,7 +2367,7 @@ interface UsePlanningLayoutResult extends UsePlanningGanttResult {
|
|
|
2336
2367
|
}
|
|
2337
2368
|
declare const usePlanningLayout: (options: UsePlanningLayoutOptions) => UsePlanningLayoutResult;
|
|
2338
2369
|
|
|
2339
|
-
declare const CPlanningGantt: ({ title, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2370
|
+
declare const CPlanningGantt: ({ appId, tableKey, serviceUrl, title, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, layout, layoutVariant, layoutVariantLoadKey, onLayoutIdChange, onLayoutSave, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2340
2371
|
|
|
2341
2372
|
interface MarkdownRendererProps {
|
|
2342
2373
|
markdown?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -204,6 +204,9 @@ interface CValueHelpProps<TRecord extends CValueHelpRecord = CValueHelpRecord> e
|
|
|
204
204
|
noResultsText?: string;
|
|
205
205
|
loading?: boolean;
|
|
206
206
|
clearable?: boolean;
|
|
207
|
+
allowManualInput?: boolean;
|
|
208
|
+
validateManualInput?: boolean;
|
|
209
|
+
manualInputErrorText?: string;
|
|
207
210
|
selectedItems?: TRecord[];
|
|
208
211
|
displayValue?: string;
|
|
209
212
|
getOptionValue?: (item: TRecord) => CValueHelpPrimitive;
|
|
@@ -212,7 +215,7 @@ interface CValueHelpProps<TRecord extends CValueHelpRecord = CValueHelpRecord> e
|
|
|
212
215
|
onChange?: (value: CValueHelpSelectionValue, selection: TRecord | TRecord[] | null) => void;
|
|
213
216
|
onSearch?: (query: string) => Promise<TRecord[] | void> | TRecord[] | void;
|
|
214
217
|
}
|
|
215
|
-
declare const CValueHelp: <TRecord extends CValueHelpRecord = CValueHelpRecord>({ value, items, columns, mode, dialogTitle, searchPlaceholder, selectLabel, clearLabel, cancelLabel, valueHelpLabel, noResultsText, loading, clearable, selectedItems, displayValue, getOptionValue, getOptionLabel, getOptionDescription, onChange, onSearch, disabled, InputProps, onKeyDown, ...textFieldProps }: CValueHelpProps<TRecord>) => react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare const CValueHelp: <TRecord extends CValueHelpRecord = CValueHelpRecord>({ value, items, columns, mode, dialogTitle, searchPlaceholder, selectLabel, clearLabel, cancelLabel, valueHelpLabel, noResultsText, loading, clearable, allowManualInput, validateManualInput, manualInputErrorText, selectedItems, displayValue, getOptionValue, getOptionLabel, getOptionDescription, onChange, onSearch, disabled, InputProps, onFocus, onBlur, onKeyDown, error, helperText, ...textFieldProps }: CValueHelpProps<TRecord>) => react_jsx_runtime.JSX.Element;
|
|
216
219
|
|
|
217
220
|
interface CustomizeAgentSettings {
|
|
218
221
|
baseUrl: string;
|
|
@@ -1321,6 +1324,10 @@ declare const en: {
|
|
|
1321
1324
|
readonly 'common.delete': "Delete";
|
|
1322
1325
|
readonly 'common.loading': "Loading...";
|
|
1323
1326
|
readonly 'header.searchPlaceholder': "Ask me...";
|
|
1327
|
+
readonly 'header.searchAddFeature': "Add feature";
|
|
1328
|
+
readonly 'header.searchSend': "Send";
|
|
1329
|
+
readonly 'header.searchStartVoice': "Start voice input";
|
|
1330
|
+
readonly 'header.searchStopVoice': "Stop voice input";
|
|
1324
1331
|
readonly 'header.theme.system': "Theme: System";
|
|
1325
1332
|
readonly 'header.theme.dark': "Theme: Dark";
|
|
1326
1333
|
readonly 'header.theme.light': "Theme: Light";
|
|
@@ -1585,6 +1592,7 @@ interface CAppHeaderProps {
|
|
|
1585
1592
|
onLocaleChange?: (locale: OrbcafeLocale) => void;
|
|
1586
1593
|
searchPlaceholder?: string;
|
|
1587
1594
|
onSearch?: (query: string) => void;
|
|
1595
|
+
onSearchAdd?: () => void;
|
|
1588
1596
|
user?: CAppHeaderUser;
|
|
1589
1597
|
onUserSetting?: () => void;
|
|
1590
1598
|
onUserLogout?: () => void;
|
|
@@ -1607,6 +1615,7 @@ interface CAppPageLayoutProps {
|
|
|
1607
1615
|
userMenuItems?: CAppHeaderUserMenuItem[];
|
|
1608
1616
|
logo?: ReactNode;
|
|
1609
1617
|
onSearch?: (query: string) => void;
|
|
1618
|
+
onSearchAdd?: () => void;
|
|
1610
1619
|
rightHeaderSlot?: ReactNode;
|
|
1611
1620
|
leftHeaderSlot?: ReactNode;
|
|
1612
1621
|
contentSx?: SxProps<Theme>;
|
|
@@ -1616,9 +1625,9 @@ interface CAppPageLayoutProps {
|
|
|
1616
1625
|
showNavigationModeToggle?: boolean;
|
|
1617
1626
|
}
|
|
1618
1627
|
|
|
1619
|
-
declare const CAppPageLayout: ({ appTitle, menuData, children, showNavigation, locale, localeLabel, localeOptions, onLocaleChange, user, onUserSetting, onUserLogout, userMenuItems, logo, onSearch, rightHeaderSlot, leftHeaderSlot, contentSx, navigationMode, defaultNavigationMode, onNavigationModeChange, showNavigationModeToggle, }: CAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1628
|
+
declare const CAppPageLayout: ({ appTitle, menuData, children, showNavigation, locale, localeLabel, localeOptions, onLocaleChange, user, onUserSetting, onUserLogout, userMenuItems, logo, onSearch, onSearchAdd, rightHeaderSlot, leftHeaderSlot, contentSx, navigationMode, defaultNavigationMode, onNavigationModeChange, showNavigationModeToggle, }: CAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1620
1629
|
|
|
1621
|
-
declare const CAppHeader: ({ appTitle, logo, mode, onToggleMode, locale: localeProp, localeLabel, localeOptions, onLocaleChange, searchPlaceholder, onSearch, user, onUserSetting, onUserLogout, userMenuItems, leftSlot, rightSlot, }: CAppHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1630
|
+
declare const CAppHeader: ({ appTitle, logo, mode, onToggleMode, locale: localeProp, localeLabel, localeOptions, onLocaleChange, searchPlaceholder, onSearch, onSearchAdd, user, onUserSetting, onUserLogout, userMenuItems, leftSlot, rightSlot, }: CAppHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1622
1631
|
|
|
1623
1632
|
interface UsePageLayoutOptions {
|
|
1624
1633
|
menuData?: TreeMenuItem[];
|
|
@@ -1921,6 +1930,7 @@ interface PAppPageLayoutProps {
|
|
|
1921
1930
|
containerSx?: SxProps<Theme>;
|
|
1922
1931
|
user?: CAppHeaderUser;
|
|
1923
1932
|
onSearch?: (query: string) => void;
|
|
1933
|
+
onSearchAdd?: () => void;
|
|
1924
1934
|
defaultNavigationOpen?: boolean;
|
|
1925
1935
|
navOpen?: boolean;
|
|
1926
1936
|
onNavOpenChange?: (open: boolean) => void;
|
|
@@ -1996,7 +2006,7 @@ declare const PNavIsland: ({ collapsed, onToggle, className, maxHeight, menuData
|
|
|
1996
2006
|
|
|
1997
2007
|
declare const PTable: React__default.FC<PTableProps>;
|
|
1998
2008
|
|
|
1999
|
-
declare const PAppPageLayout: ({ appTitle, children, menuData, workloadItems, workloadSelectedId, showNavigation, showWorkloadNav, orientation, logo, headerSlot, actionSlot, portraitBottomSlot, contentSx, containerSx, user, onSearch, defaultNavigationOpen, navOpen, onNavOpenChange, onWorkloadSelect, locale, localeLabel, localeOptions, onLocaleChange, onUserSetting, onUserLogout, userMenuItems, leftHeaderSlot, rightHeaderSlot, }: PAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
2009
|
+
declare const PAppPageLayout: ({ appTitle, children, menuData, workloadItems, workloadSelectedId, showNavigation, showWorkloadNav, orientation, logo, headerSlot, actionSlot, portraitBottomSlot, contentSx, containerSx, user, onSearch, onSearchAdd, defaultNavigationOpen, navOpen, onNavOpenChange, onWorkloadSelect, locale, localeLabel, localeOptions, onLocaleChange, onUserSetting, onUserLogout, userMenuItems, leftHeaderSlot, rightHeaderSlot, }: PAppPageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
2000
2010
|
|
|
2001
2011
|
interface UseVoiceInputOptions {
|
|
2002
2012
|
onTextUpdate?: (text: string) => void;
|
|
@@ -2259,6 +2269,9 @@ interface PlanningGanttSummaryItem {
|
|
|
2259
2269
|
tone?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
2260
2270
|
}
|
|
2261
2271
|
interface CPlanningGanttProps {
|
|
2272
|
+
appId?: string;
|
|
2273
|
+
tableKey?: string;
|
|
2274
|
+
serviceUrl?: string;
|
|
2262
2275
|
title?: string;
|
|
2263
2276
|
subtitle?: string;
|
|
2264
2277
|
extraTools?: ReactNode | ReactNode[];
|
|
@@ -2282,6 +2295,11 @@ interface CPlanningGanttProps {
|
|
|
2282
2295
|
activeTask: PlanningTaskRecord;
|
|
2283
2296
|
targetTask: PlanningTaskRecord;
|
|
2284
2297
|
}) => void;
|
|
2298
|
+
layout?: any;
|
|
2299
|
+
layoutVariant?: any;
|
|
2300
|
+
layoutVariantLoadKey?: number;
|
|
2301
|
+
onLayoutIdChange?: (layoutId: string) => void;
|
|
2302
|
+
onLayoutSave?: (layout: any) => void;
|
|
2285
2303
|
summaryItems?: PlanningGanttSummaryItem[];
|
|
2286
2304
|
emptyLabel?: string;
|
|
2287
2305
|
sx?: SxProps<Theme>;
|
|
@@ -2289,12 +2307,23 @@ interface CPlanningGanttProps {
|
|
|
2289
2307
|
|
|
2290
2308
|
interface UsePlanningGanttOptions {
|
|
2291
2309
|
tasks: PlanningTaskRecord[];
|
|
2310
|
+
appId?: string;
|
|
2311
|
+
tableKey?: string;
|
|
2292
2312
|
defaultScale?: PlanningGanttScale;
|
|
2293
2313
|
defaultSelectedTaskId?: string;
|
|
2294
2314
|
initialFilters?: Record<string, FilterValue>;
|
|
2295
2315
|
filterFields?: FilterField[];
|
|
2316
|
+
/**
|
|
2317
|
+
* @deprecated Use appId so SmartFilter variants and table layouts share one persistence namespace.
|
|
2318
|
+
*/
|
|
2296
2319
|
filterAppId?: string;
|
|
2320
|
+
/**
|
|
2321
|
+
* @deprecated Use tableKey so SmartFilter variants and table layouts share one persistence scope.
|
|
2322
|
+
*/
|
|
2297
2323
|
filterTableKey?: string;
|
|
2324
|
+
serviceUrl?: CSmartFilterProps['serviceUrl'];
|
|
2325
|
+
variantService?: CSmartFilterProps['variantService'];
|
|
2326
|
+
layout?: CPlanningGanttProps['layout'];
|
|
2298
2327
|
columns?: CPlanningGanttProps['columns'];
|
|
2299
2328
|
page?: CPlanningGanttProps['page'];
|
|
2300
2329
|
rowsPerPage?: CPlanningGanttProps['rowsPerPage'];
|
|
@@ -2306,6 +2335,8 @@ interface UsePlanningGanttOptions {
|
|
|
2306
2335
|
onFilterVariantLoad?: CSmartFilterProps['onVariantLoad'];
|
|
2307
2336
|
enableRowReorder?: CPlanningGanttProps['enableRowReorder'];
|
|
2308
2337
|
onTaskReorder?: CPlanningGanttProps['onTaskReorder'];
|
|
2338
|
+
onLayoutIdChange?: CPlanningGanttProps['onLayoutIdChange'];
|
|
2339
|
+
onLayoutSave?: CPlanningGanttProps['onLayoutSave'];
|
|
2309
2340
|
}
|
|
2310
2341
|
interface UsePlanningGanttResult {
|
|
2311
2342
|
scale: PlanningGanttScale;
|
|
@@ -2315,10 +2346,10 @@ interface UsePlanningGanttResult {
|
|
|
2315
2346
|
filters: Record<string, FilterValue>;
|
|
2316
2347
|
setFilters: (filters: Record<string, FilterValue>) => void;
|
|
2317
2348
|
filteredTasks: PlanningTaskRecord[];
|
|
2318
|
-
smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey'>;
|
|
2319
|
-
planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'page' | 'rowsPerPage' | 'rowsPerPageOptions' | 'count' | 'onPageChange' | 'onRowsPerPageChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
|
|
2349
|
+
smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey' | 'currentLayoutId' | 'layoutRefs' | 'variantService' | 'serviceUrl'>;
|
|
2350
|
+
planningGanttProps: Pick<CPlanningGanttProps, 'appId' | 'tableKey' | 'serviceUrl' | 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'page' | 'rowsPerPage' | 'rowsPerPageOptions' | 'count' | 'onPageChange' | 'onRowsPerPageChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder' | 'layout' | 'layoutVariant' | 'layoutVariantLoadKey' | 'onLayoutIdChange' | 'onLayoutSave'>;
|
|
2320
2351
|
}
|
|
2321
|
-
declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, columns, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2352
|
+
declare const usePlanningGantt: ({ tasks, appId, tableKey, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, serviceUrl, variantService, layout, columns, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, onLayoutIdChange, onLayoutSave, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2322
2353
|
|
|
2323
2354
|
interface CPlanningLayoutProps {
|
|
2324
2355
|
filterProps: CSmartFilterProps;
|
|
@@ -2336,7 +2367,7 @@ interface UsePlanningLayoutResult extends UsePlanningGanttResult {
|
|
|
2336
2367
|
}
|
|
2337
2368
|
declare const usePlanningLayout: (options: UsePlanningLayoutOptions) => UsePlanningLayoutResult;
|
|
2338
2369
|
|
|
2339
|
-
declare const CPlanningGantt: ({ title, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2370
|
+
declare const CPlanningGantt: ({ appId, tableKey, serviceUrl, title, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, layout, layoutVariant, layoutVariantLoadKey, onLayoutIdChange, onLayoutSave, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2340
2371
|
|
|
2341
2372
|
interface MarkdownRendererProps {
|
|
2342
2373
|
markdown?: string;
|