@economic/taco 2.55.0-settings.5 → 2.55.1-footer.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/taco.d.ts CHANGED
@@ -441,7 +441,7 @@ export declare type CardContentProps = React_2.HTMLAttributes<HTMLDivElement> &
441
441
  noPadding?: boolean;
442
442
  };
443
443
 
444
- export declare type CardProps = React_2.HTMLAttributes<HTMLDivElement> & {
444
+ export declare type CardProps = Omit<React_2.HTMLAttributes<HTMLDivElement>, 'title'> & {
445
445
  /** Title of the Card */
446
446
  title: string | React_2.ReactElement;
447
447
  /** Menu component associated with the Card */
@@ -2505,9 +2505,7 @@ export declare type ProviderProps = {
2505
2505
  children?: any;
2506
2506
  /** Define localized texts and formatted data in your application */
2507
2507
  localization?: Localization;
2508
- loadSetting: TacoSettingsLoadHandler;
2509
- saveSetting: TacoSettingsSaveHandler;
2510
- userId: string;
2508
+ settings: TacoSettings;
2511
2509
  };
2512
2510
 
2513
2511
  export declare const RadioGroup: ForwardedRadioGroupWithStatics;
@@ -3007,7 +3005,7 @@ export declare interface Table3WithoutEditingWithServerProps<TType = unknown> ex
3007
3005
  onEditingSave?: never;
3008
3006
  }
3009
3007
 
3010
- export declare type TableChild = JSX.Element | boolean | null | undefined;
3008
+ export declare type TableChild = JSX.Element | JSX.Element[] | boolean | null | undefined;
3011
3009
 
3012
3010
  export declare interface TableClientProps<TType = unknown> extends TableCommonProps<TType> {
3013
3011
  length?: never;
@@ -3102,8 +3100,8 @@ export declare type TableCommonProps<TType = unknown> = TableFeatureProps<TType>
3102
3100
  data: TType[];
3103
3101
  id: string;
3104
3102
  customSettings?: TableCustomSettingsRenderer;
3105
- defaultColumnFreezingIndex?: TableDefaultColumnFreezingIndex;
3106
- defaultRowActiveIndex?: TableDefaultRowActiveIndex;
3103
+ defaultColumnFreezingIndex?: number;
3104
+ defaultRowActiveIndex?: number;
3107
3105
  defaultRowGroupColumnId?: keyof TType;
3108
3106
  defaultSettings?: TableSettings;
3109
3107
  emptyState?: TableEmptyStateRenderer;
@@ -3114,9 +3112,9 @@ export declare type TableCommonProps<TType = unknown> = TableFeatureProps<TType>
3114
3112
  rowExpansionRenderer?: TableRowExpansionRenderer<TType>;
3115
3113
  rowIdentityAccessor?: keyof TType;
3116
3114
  shortcuts?: TableShortcuts<TType>;
3117
- toolbarLeft?: TableToolbarRenderer;
3118
- toolbarRight?: TableToolbarRenderer;
3119
- toolbarPanel?: TableToolbarRenderer;
3115
+ toolbarLeft?: JSX.Element;
3116
+ toolbarRight?: JSX.Element;
3117
+ toolbarPanel?: JSX.Element;
3120
3118
  onEvent?: TableEventHandler;
3121
3119
  onRowClick?: TableRowClickHandler<TType>;
3122
3120
  onRowDrag?: TableRowDragHandler<TType>;
@@ -3125,18 +3123,14 @@ export declare type TableCommonProps<TType = unknown> = TableFeatureProps<TType>
3125
3123
  onRowSelect?: TableRowSelectHandler<TType>;
3126
3124
  onChangeFilter?: TableFilterHandler;
3127
3125
  onChangeSearch?: TableSearchHandler;
3126
+ onChangeSettings?: TableSettingsHandler;
3128
3127
  onChangeSort?: TableSortHandler;
3129
- _DEPRECATED_DO_NOT_USE_onChangeSettings?: TableSettingsHandler;
3130
3128
  };
3131
3129
 
3132
3130
  export declare type TableConditionalRowProp<TType = unknown> = boolean | ((row: TType) => boolean);
3133
3131
 
3134
3132
  export declare type TableCustomSettingsRenderer = (props: TableSettings) => React.ReactElement<MenuItemProps>[];
3135
3133
 
3136
- export declare type TableDefaultColumnFreezingIndex = number | ((settings: TableSettings) => number | undefined);
3137
-
3138
- export declare type TableDefaultRowActiveIndex = number | ((settings: TableSettings) => number | undefined);
3139
-
3140
3134
  export declare type TableEmptyStateReason = 'empty' | 'filtering' | 'searching';
3141
3135
 
3142
3136
  export declare type TableEmptyStateRenderer = (props: {
@@ -3224,13 +3218,6 @@ export declare type TableGroupProps = {
3224
3218
 
3225
3219
  export declare type TablePreset = 'complex' | 'list' | 'simple';
3226
3220
 
3227
- export declare type TablePrintSettings = {
3228
- allRows: boolean;
3229
- orientation: 'portrait' | 'landscape';
3230
- size: 'A3' | 'A4' | 'A5' | 'letter' | 'legal';
3231
- splitGroups: boolean;
3232
- };
3233
-
3234
3221
  export declare type TableProps<TType = unknown> = TableClientProps<TType> | TableServerProps<TType>;
3235
3222
 
3236
3223
  export declare type TableRef = HTMLTableElement & {
@@ -3293,7 +3280,6 @@ export declare type TableSettings = {
3293
3280
  columnVisibility?: VisibilityState;
3294
3281
  excludeUnmatchedRecordsInSearch?: boolean;
3295
3282
  fontSize?: TableFontSize;
3296
- print?: TablePrintSettings;
3297
3283
  rowHeight?: TableRowHeight;
3298
3284
  searchQuery?: string;
3299
3285
  sorting?: SortingState;
@@ -3464,8 +3450,6 @@ export declare type TableTexts = {
3464
3450
  };
3465
3451
  };
3466
3452
 
3467
- export declare type TableToolbarRenderer = JSX.Element | ((settings: TableSettings) => JSX.Element);
3468
-
3469
3453
  export declare type TabListProps = React_2.HTMLAttributes<HTMLDivElement>;
3470
3454
 
3471
3455
  export declare const Tabs: ForwardedTabsWithStatics;
@@ -3510,9 +3494,11 @@ export declare type TabTriggerProps = React_2.HTMLAttributes<HTMLButtonElement>
3510
3494
  tooltip?: string | JSX.Element;
3511
3495
  };
3512
3496
 
3513
- export declare type TacoSettingsLoadHandler = <TType = unknown>(key: string) => Promise<TType>;
3497
+ export declare const TacoContext: React_2.Context<TacoSettings>;
3514
3498
 
3515
- export declare type TacoSettingsSaveHandler = <TType = unknown>(key: string, setting: TType) => Promise<void>;
3499
+ export declare type TacoSettings = {
3500
+ uniqueUserIdentifier: string;
3501
+ };
3516
3502
 
3517
3503
  export declare const Tag: default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLSpanElement>, "children"> & {
3518
3504
  children: string;