@ansible/ansible-ui-framework 2.4.300 → 2.4.302

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 (32) hide show
  1. package/framework/PageDialogs/MultiSelectDialog.d.ts +1 -1
  2. package/framework/PageDialogs/SelectSingleDialog.d.ts +1 -1
  3. package/framework/PageDialogs/useSelectDialog.d.ts +1 -1
  4. package/framework/PageInputs/PageAsyncMultiSelect.d.ts +2 -2
  5. package/framework/PageInputs/PageAsyncSingleSelect.d.ts +2 -2
  6. package/framework/PageInputs/PageSelectOption.d.ts +1 -3
  7. package/framework/PageInputs/PageSingleSelect.d.ts +1 -0
  8. package/framework/PageTable/PageTable.d.ts +2 -2
  9. package/framework/PageTable/PageTableColumn.d.ts +1 -1
  10. package/framework/{PageTable/PageToolbar → PageToolbar}/PageToolbar.d.ts +3 -3
  11. package/framework/PageToolbar/PageToolbarFilter.d.ts +19 -0
  12. package/framework/{PageTable/PageToolbar/PageToolbarFilterTypes → PageToolbar/PageToolbarFilters}/ToolbarDateRangeFilter.d.ts +2 -2
  13. package/framework/PageToolbar/PageToolbarFilters/ToolbarMultiSelectFilter.d.ts +15 -0
  14. package/framework/PageToolbar/PageToolbarFilters/ToolbarSingleSelectFilter.d.ts +17 -0
  15. package/framework/{PageTable/PageToolbar → PageToolbar}/PageToolbarSort.d.ts +1 -1
  16. package/framework/index.d.ts +2 -2
  17. package/framework/useInMemoryView.d.ts +1 -1
  18. package/framework/useView.d.ts +1 -1
  19. package/index.js +13455 -13412
  20. package/index.umd.cjs +249 -249
  21. package/package.json +1 -1
  22. package/style.css +1 -1
  23. package/framework/PageTable/PageToolbar/PageToolbarFilter.d.ts +0 -18
  24. package/framework/PageTable/PageToolbar/PageToolbarFilterTypes/Date.d.ts +0 -9
  25. package/framework/PageTable/PageToolbar/PageToolbarFilterTypes/ToolbarDateFilter.d.ts +0 -8
  26. package/framework/PageTable/PageToolbar/PageToolbarFilterTypes/ToolbarDateFilterWithOptions.d.ts +0 -21
  27. package/framework/PageTable/PageToolbar/PageToolbarFilterTypes/ToolbarSelectFilter.d.ts +0 -41
  28. /package/framework/{PageTable/PageToolbar → PageToolbar}/PageTableViewType.d.ts +0 -0
  29. /package/framework/{PageTable/PageToolbar/PageToolbarFilterTypes → PageToolbar/PageToolbarFilters}/ToolbarFilterCommon.d.ts +0 -0
  30. /package/framework/{PageTable/PageToolbar/PageToolbarFilterTypes → PageToolbar/PageToolbarFilters}/ToolbarFilters.cy.d.ts +0 -0
  31. /package/framework/{PageTable/PageToolbar/PageToolbarFilterTypes → PageToolbar/PageToolbarFilters}/ToolbarTextFilter.d.ts +0 -0
  32. /package/framework/{PageTable/PageToolbar → PageToolbar}/PageToolbarView.d.ts +0 -0
@@ -1,18 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { IToolbarDateRangeFilter } from './PageToolbarFilterTypes/ToolbarDateRangeFilter';
3
- import { IToolbarMultiSelectFilter, IToolbarSingleSelectFilter } from './PageToolbarFilterTypes/ToolbarSelectFilter';
4
- import { IToolbarTextFilter } from './PageToolbarFilterTypes/ToolbarTextFilter';
5
- export declare enum ToolbarFilterType {
6
- Text = "text",
7
- SingleSelect = "singleselect",
8
- MultiSelect = "multiselect",
9
- DateRange = "daterange"
10
- }
11
- export type IToolbarFilter = IToolbarTextFilter | IToolbarSingleSelectFilter | IToolbarMultiSelectFilter | IToolbarDateRangeFilter;
12
- export type IFilterState = Record<string, string[] | undefined>;
13
- export type PageToolbarFiltersProps = {
14
- toolbarFilters?: IToolbarFilter[];
15
- filterState: IFilterState;
16
- setFilterState: Dispatch<SetStateAction<IFilterState>>;
17
- };
18
- export declare function PageToolbarFilters(props: PageToolbarFiltersProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import React, { FunctionComponent } from 'react';
2
- interface Props {
3
- categoryKey: string;
4
- value?: string;
5
- setValue?: (event: React.FormEvent<HTMLInputElement>, value: string) => void;
6
- validators?: ((date: Date) => string)[];
7
- }
8
- declare const DateInput: FunctionComponent<Props>;
9
- export default DateInput;
@@ -1,8 +0,0 @@
1
- import { SelectOptionObject } from '@patternfly/react-core';
2
- type AttributeType = string | string[] | SelectOptionObject | SelectOptionObject[] | boolean;
3
- export declare function ToolbarDateFilter(props: {
4
- endDate: string;
5
- startDate: string;
6
- setFilters: (type: string | undefined, value: AttributeType | undefined) => void;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,21 +0,0 @@
1
- import { SelectOptionObject } from '@patternfly/react-core';
2
- import { ToolbarFilterCommon } from './ToolbarFilterCommon';
3
- export interface IToolbarDateFilter extends ToolbarFilterCommon {
4
- type: 'dateWithOptions';
5
- }
6
- type AttributeType = string | string[] | SelectOptionObject | SelectOptionObject[] | boolean;
7
- export declare function ToolbarDateFilterWithOptions(props: {
8
- filters: Record<string, AttributeType>;
9
- setFilters: (type: string | undefined, value: AttributeType | undefined) => void;
10
- values: {
11
- quick_date_range: {
12
- label: string;
13
- value: string;
14
- }[];
15
- granularity: {
16
- label: string;
17
- value: string;
18
- }[];
19
- };
20
- }): import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,41 +0,0 @@
1
- import { SelectVariant } from '@patternfly/react-core';
2
- import { ToolbarFilterType } from '../PageToolbarFilter';
3
- import { ToolbarFilterCommon } from './ToolbarFilterCommon';
4
- import './ToolbarSelectFilter.css';
5
- export interface IToolbarSingleSelectFilter extends ToolbarFilterCommon {
6
- type: ToolbarFilterType.SingleSelect;
7
- options: IToolbarFilterOption[];
8
- isRequired?: boolean;
9
- defaultValue?: string;
10
- hasSearch?: boolean;
11
- onSearchTextChange?: (searchText: string) => void;
12
- }
13
- export interface IToolbarMultiSelectFilter extends ToolbarFilterCommon {
14
- type: ToolbarFilterType.MultiSelect;
15
- options: IToolbarFilterOption[];
16
- hasSearch?: boolean;
17
- onSearchTextChange?: (searchText: string) => void;
18
- }
19
- export interface IToolbarFilterOption {
20
- label: string;
21
- description?: string;
22
- value: string;
23
- }
24
- export declare function ToolbarSelectFilter(props: {
25
- id?: string;
26
- addFilter: (value: string) => void;
27
- removeFilter: (value: string) => void;
28
- options: {
29
- label: string;
30
- value: string;
31
- }[];
32
- values: string[];
33
- placeholder?: string;
34
- hasSearch?: boolean;
35
- variant?: SelectVariant;
36
- onSearchTextChange?: (text: string) => void;
37
- label?: string;
38
- hasClear?: boolean;
39
- isRequired?: boolean;
40
- defaultValue?: string;
41
- }): import("react/jsx-runtime").JSX.Element;