From 98304ea85331935862701e7bbc6781b8a2f85ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 10 Mar 2023 17:00:58 +0300 Subject: [PATCH] .d.ts default false value updates --- components/blockui/BlockUI.d.ts | 2 ++ components/chips/Chips.d.ts | 3 ++- components/column/Column.d.ts | 9 +++++++++ components/confirmationoptions/ConfirmationOptions.d.ts | 1 + components/dropdown/Dropdown.d.ts | 6 ++++++ components/editor/Editor.d.ts | 1 + components/inputswitch/InputSwitch.d.ts | 1 + components/organizationchart/OrganizationChart.d.ts | 5 +++-- components/panel/Panel.d.ts | 2 ++ components/portal/Portal.d.ts | 1 + components/radiobutton/RadioButton.d.ts | 1 + components/textarea/Textarea.d.ts | 1 + components/tieredmenu/TieredMenu.d.ts | 2 ++ components/tree/Tree.d.ts | 3 +++ components/treetable/TreeTable.d.ts | 2 ++ 15 files changed, 37 insertions(+), 3 deletions(-) diff --git a/components/blockui/BlockUI.d.ts b/components/blockui/BlockUI.d.ts index d0c150e89..5ca626cf1 100755 --- a/components/blockui/BlockUI.d.ts +++ b/components/blockui/BlockUI.d.ts @@ -16,10 +16,12 @@ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; export interface BlockUIProps { /** * Controls the blocked state. + * @defaultValue false */ blocked?: boolean | undefined; /** * When enabled, the whole document gets blocked. + * @defaultValue false */ fullScreen?: boolean | undefined; /** diff --git a/components/chips/Chips.d.ts b/components/chips/Chips.d.ts index c11ff5fab..3bae15853 100755 --- a/components/chips/Chips.d.ts +++ b/components/chips/Chips.d.ts @@ -46,11 +46,12 @@ export interface ChipsProps { max?: number | undefined; /** * Whether to add an item when the input loses focus. + * @defaultValue false */ addOnBlur?: boolean | undefined; /** * Whether to allow duplicate values or not. - * @defaultValue true. + * @defaultValue true */ allowDuplicate?: boolean | undefined; /** diff --git a/components/column/Column.d.ts b/components/column/Column.d.ts index 01489f0ea..7bd646f7d 100755 --- a/components/column/Column.d.ts +++ b/components/column/Column.d.ts @@ -94,6 +94,7 @@ export interface ColumnProps { dataType?: string | undefined; /** * Defines if a column is sortable. + * @defaultValue false */ sortable?: boolean | undefined; /** @@ -177,6 +178,7 @@ export interface ColumnProps { maxConstraints?: number | undefined; /** * Whether to exclude from global filtering or not. + * @defaultValue false */ excludeGlobalFilter?: boolean | undefined; /** @@ -201,6 +203,7 @@ export interface ColumnProps { selectionMode?: 'single' | 'multiple' | undefined; /** * Displays an icon to toggle row expansion. + * @defaultValue false */ expander?: boolean | undefined; /** @@ -213,6 +216,7 @@ export interface ColumnProps { rowspan?: number | undefined; /** * Whether this column displays an icon to reorder the rows. + * @defaultValue false */ rowReorder?: boolean | undefined; /** @@ -222,14 +226,17 @@ export interface ColumnProps { rowReorderIcon?: string | undefined; /** * Defines if the column itself can be reordered with dragging. + * @defaultValue false */ reorderableColumn?: boolean | undefined; /** * When enabled, column displays row editor controls. + * @defaultValue false */ rowEditor?: boolean | undefined; /** * Whether the column is fixed in horizontal scrolling. + * @defaultValue false */ frozen?: boolean | undefined; /** @@ -239,6 +246,7 @@ export interface ColumnProps { alignFrozen?: 'left' | 'right' | undefined; /** * Whether the column is included in data export. + * @defaultValue false */ exportable?: boolean | undefined; /** @@ -255,6 +263,7 @@ export interface ColumnProps { filterMatchMode?: string | undefined; /** * Whether the column is rendered. + * @defaultValue false */ hidden?: boolean | undefined; } diff --git a/components/confirmationoptions/ConfirmationOptions.d.ts b/components/confirmationoptions/ConfirmationOptions.d.ts index 83913f691..51484757b 100644 --- a/components/confirmationoptions/ConfirmationOptions.d.ts +++ b/components/confirmationoptions/ConfirmationOptions.d.ts @@ -37,6 +37,7 @@ export interface ConfirmationOptions { icon?: string | undefined; /** * Whether background scroll should be blocked when dialog is visible. + * @defaultValue false */ blockScroll?: boolean | undefined; /** diff --git a/components/dropdown/Dropdown.d.ts b/components/dropdown/Dropdown.d.ts index 832030bb9..28637f493 100755 --- a/components/dropdown/Dropdown.d.ts +++ b/components/dropdown/Dropdown.d.ts @@ -80,6 +80,7 @@ export interface DropdownProps { scrollHeight?: string | undefined; /** * When specified, displays a filter input at header. + * @defaultValue false */ filter?: boolean | undefined; /** @@ -101,6 +102,7 @@ export interface DropdownProps { filterFields?: string[] | undefined; /** * When present, custom value instead of predefined options can be entered using the editable input field. + * @defaultValue false */ editable?: boolean | undefined; /** @@ -109,6 +111,7 @@ export interface DropdownProps { placeholder?: string | undefined; /** * When present, it specifies that the component should be disabled. + * @defaultValue false */ disabled?: boolean | undefined; /** @@ -117,6 +120,7 @@ export interface DropdownProps { dataKey?: string | undefined; /** * When enabled, a clear icon is displayed to clear the value. + * @defaultValue false */ showClear?: boolean | undefined; /** @@ -162,6 +166,7 @@ export interface DropdownProps { appendTo?: 'body' | 'self' | string | undefined | HTMLElement; /** * Whether the dropdown is in loading state. + * @defaultValue false */ loading?: boolean | undefined; /** @@ -186,6 +191,7 @@ export interface DropdownProps { loadingIcon?: string | undefined; /** * Clears the filter value when hiding the dropdown. + * @defaultValue false */ resetFilterOnHide?: boolean; /** diff --git a/components/editor/Editor.d.ts b/components/editor/Editor.d.ts index a5972b45f..7aee7c2c8 100755 --- a/components/editor/Editor.d.ts +++ b/components/editor/Editor.d.ts @@ -91,6 +91,7 @@ export interface EditorProps { placeholder?: string | undefined; /** * Whether to instantiate the editor to readonly mode. + * @defaultValue false */ readonly?: boolean | undefined; /** diff --git a/components/inputswitch/InputSwitch.d.ts b/components/inputswitch/InputSwitch.d.ts index a9c8d6f12..6b280cc50 100755 --- a/components/inputswitch/InputSwitch.d.ts +++ b/components/inputswitch/InputSwitch.d.ts @@ -16,6 +16,7 @@ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; export interface InputSwitchProps { /** * Specifies whether a inputswitch should be checked or not. + * @defaultValue false */ modelValue?: boolean | string | undefined; /** diff --git a/components/organizationchart/OrganizationChart.d.ts b/components/organizationchart/OrganizationChart.d.ts index 1d706b712..b39eec1aa 100755 --- a/components/organizationchart/OrganizationChart.d.ts +++ b/components/organizationchart/OrganizationChart.d.ts @@ -32,12 +32,12 @@ export interface OrganizationChartNode { data?: any; /** * Whether node is selectable when selection is enabled. - * Default value is true. + * @defaultValue true */ selectable?: boolean; /** * Whether node is collapsible when node expansion is enabled. - * Default value is true. + * @defaultValue true */ collapsible?: boolean; /** @@ -86,6 +86,7 @@ export interface OrganizationChartProps { collapsedKeys?: OrganizationChartCollapsedKeys; /** * Whether the nodes can be expanded or toggled. + * @defaultValue false */ collapsible?: boolean; } diff --git a/components/panel/Panel.d.ts b/components/panel/Panel.d.ts index 22d1fbe18..5ebceb1c2 100755 --- a/components/panel/Panel.d.ts +++ b/components/panel/Panel.d.ts @@ -35,10 +35,12 @@ export interface PanelProps { header?: string; /** * Defines if content of panel can be expanded and collapsed. + * @defaultValue false */ toggleable?: boolean; /** * Defines the initial state of panel content. + * @defaultValue false */ collapsed?: boolean; /** diff --git a/components/portal/Portal.d.ts b/components/portal/Portal.d.ts index 792f358a4..42cb9e9bb 100644 --- a/components/portal/Portal.d.ts +++ b/components/portal/Portal.d.ts @@ -12,6 +12,7 @@ export interface PortalProps { appendTo?: PortalAppendToType; /** * If disabled, the Portal feature is eliminated and the content is displayed directly. + * @defaultValue false */ disabled?: boolean | undefined; } diff --git a/components/radiobutton/RadioButton.d.ts b/components/radiobutton/RadioButton.d.ts index 58a847388..5550884ec 100755 --- a/components/radiobutton/RadioButton.d.ts +++ b/components/radiobutton/RadioButton.d.ts @@ -28,6 +28,7 @@ export interface RadioButtonProps { name?: string | undefined; /** * When present, it specifies that the component should be disabled. + * @defaultValue false */ disabled?: boolean | undefined; /** diff --git a/components/textarea/Textarea.d.ts b/components/textarea/Textarea.d.ts index e1304206d..23332f145 100755 --- a/components/textarea/Textarea.d.ts +++ b/components/textarea/Textarea.d.ts @@ -21,6 +21,7 @@ export interface TextareaProps extends TextareaHTMLAttributes { modelValue?: string | undefined; /** * When present, height of textarea changes as being typed. + * @defaultValue false */ autoResize?: boolean | undefined; } diff --git a/components/tieredmenu/TieredMenu.d.ts b/components/tieredmenu/TieredMenu.d.ts index b95ca55e1..aa13d9d98 100755 --- a/components/tieredmenu/TieredMenu.d.ts +++ b/components/tieredmenu/TieredMenu.d.ts @@ -21,6 +21,7 @@ export interface TieredMenuProps { model?: MenuItem[] | undefined; /** * Defines if menu would displayed as a popup. + * @defaultValue false */ popup?: boolean | undefined; /** @@ -45,6 +46,7 @@ export interface TieredMenuProps { exact?: boolean | undefined; /** * When present, it specifies that the component should be disabled. + * @defaultValue false */ disabled?: boolean | undefined; /** diff --git a/components/tree/Tree.d.ts b/components/tree/Tree.d.ts index d7b06ea5e..ecbaefff8 100755 --- a/components/tree/Tree.d.ts +++ b/components/tree/Tree.d.ts @@ -48,10 +48,12 @@ export interface TreeNode { styleClass?: string; /** * Whether the node is selectable when selection mode is enabled. + * @defaultValue false */ selectable?: boolean; /** * Specifies if the node has children. Used in lazy loading. + * @defaultValue false */ leaf?: boolean; /** @@ -126,6 +128,7 @@ export interface TreeProps { loadingIcon?: string | undefined; /** * When specified, displays an input field to filter the items. + * @defaultValue false */ filter?: boolean | undefined; /** diff --git a/components/treetable/TreeTable.d.ts b/components/treetable/TreeTable.d.ts index b05d45034..51872f952 100755 --- a/components/treetable/TreeTable.d.ts +++ b/components/treetable/TreeTable.d.ts @@ -196,6 +196,7 @@ export interface TreeTableProps { totalRecords?: number | undefined; /** * When specified as true, enables the pagination. + * @defaultValue false */ paginator?: boolean | undefined; /** @@ -314,6 +315,7 @@ export interface TreeTableProps { filterLocale?: string | undefined; /** * When enabled, columns can be resized using drag and drop. + * @defaultValue false */ resizableColumns?: boolean | undefined; /**