diff --git a/components/doc/datatable/filter/advanceddoc.js b/components/doc/datatable/filter/advanceddoc.js index a828dc4185..26200537a2 100644 --- a/components/doc/datatable/filter/advanceddoc.js +++ b/components/doc/datatable/filter/advanceddoc.js @@ -1,3 +1,4 @@ +import DeferredDemo from '@/components/demo/DeferredDemo'; import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { FilterMatchMode, FilterOperator } from '@/components/lib/api/Api'; @@ -6,6 +7,8 @@ import { Calendar } from '@/components/lib/calendar/Calendar'; import { Column } from '@/components/lib/column/Column'; import { DataTable } from '@/components/lib/datatable/DataTable'; import { Dropdown } from '@/components/lib/dropdown/Dropdown'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; import { InputNumber } from '@/components/lib/inputnumber/InputNumber'; import { InputText } from '@/components/lib/inputtext/InputText'; import { MultiSelect } from '@/components/lib/multiselect/MultiSelect'; @@ -14,9 +17,8 @@ import { Slider } from '@/components/lib/slider/Slider'; import { Tag } from '@/components/lib/tag/Tag'; import { TriStateCheckbox } from '@/components/lib/tristatecheckbox/TriStateCheckbox'; import { classNames } from '@/components/lib/utils/Utils'; -import React, { useEffect, useState } from 'react'; +import React, { useState } from 'react'; import { CustomerService } from '../../../../service/CustomerService'; -import DeferredDemo from '@/components/demo/DeferredDemo'; export function AdvancedFilterDoc(props) { const [customers, setCustomers] = useState(null); @@ -117,10 +119,10 @@ export function AdvancedFilterDoc(props) { return (
); }; @@ -256,6 +258,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable } from 'primereact/datatable'; import { Column } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown } from 'primereact/dropdown'; import { InputNumber } from 'primereact/inputnumber'; import { Button } from 'primereact/button'; @@ -366,10 +370,10 @@ export default function AdvancedFilterDemo() { return (
); }; @@ -508,6 +512,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable, DataTableFilterMeta } from 'primereact/datatable'; import { Column, ColumnFilterElementTemplateOptions } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown'; import { InputNumber, InputNumberChangeEvent } from 'primereact/inputnumber'; import { Button } from 'primereact/button'; @@ -660,10 +666,10 @@ export default function AdvancedFilterDemo() { return (
); }; diff --git a/components/doc/datatable/filter/basicdoc.js b/components/doc/datatable/filter/basicdoc.js index 67a9173ed3..f0932fb8e2 100644 --- a/components/doc/datatable/filter/basicdoc.js +++ b/components/doc/datatable/filter/basicdoc.js @@ -1,17 +1,19 @@ +import DeferredDemo from '@/components/demo/DeferredDemo'; import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { FilterMatchMode } from '@/components/lib/api/Api'; import { Column } from '@/components/lib/column/Column'; import { DataTable } from '@/components/lib/datatable/DataTable'; import { Dropdown } from '@/components/lib/dropdown/Dropdown'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; import { InputText } from '@/components/lib/inputtext/InputText'; import { MultiSelect } from '@/components/lib/multiselect/MultiSelect'; import { Tag } from '@/components/lib/tag/Tag'; import { TriStateCheckbox } from '@/components/lib/tristatecheckbox/TriStateCheckbox'; import { classNames } from '@/components/lib/utils/Utils'; -import { useEffect, useState } from 'react'; +import { useState } from 'react'; import { CustomerService } from '../../../../service/CustomerService'; -import DeferredDemo from '@/components/demo/DeferredDemo'; export function BasicFilterDoc(props) { const [customers, setCustomers] = useState(null); @@ -86,10 +88,10 @@ export function BasicFilterDoc(props) { const renderHeader = () => { return (
- - + + - +
); }; @@ -182,6 +184,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable } from 'primereact/datatable'; import { Column } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown } from 'primereact/dropdown'; import { MultiSelect } from 'primereact/multiselect'; import { Tag } from 'primereact/tag'; @@ -261,10 +265,10 @@ export default function BasicFilterDemo() { const renderHeader = () => { return (
- - + + - +
); }; @@ -360,6 +364,8 @@ import { FilterMatchMode } from 'primereact/api'; import { DataTable, DataTableFilterMeta } from 'primereact/datatable'; import { Column, ColumnFilterElementTemplateOptions } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown'; import { MultiSelect, MultiSelectChangeEvent } from 'primereact/multiselect'; import { Tag } from 'primereact/tag'; @@ -464,10 +470,10 @@ export default function BasicFilterDemo() { const renderHeader = () => { return (
- - + + - +
); }; diff --git a/components/doc/datatable/filter/customdoc.js b/components/doc/datatable/filter/customdoc.js index 447681d38c..e279e896bb 100644 --- a/components/doc/datatable/filter/customdoc.js +++ b/components/doc/datatable/filter/customdoc.js @@ -5,6 +5,8 @@ import { FilterMatchMode, FilterService } from '@/components/lib/api/Api'; import { Column } from '@/components/lib/column/Column'; import { DataTable } from '@/components/lib/datatable/DataTable'; import { Dropdown } from '@/components/lib/dropdown/Dropdown'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; import { InputNumber } from '@/components/lib/inputnumber/InputNumber'; import { InputText } from '@/components/lib/inputtext/InputText'; import { MultiSelect } from '@/components/lib/multiselect/MultiSelect'; @@ -108,10 +110,10 @@ export function CustomFilterDoc(props) { const renderHeader = () => { return (
- - + + - +
); }; @@ -225,6 +227,8 @@ import { FilterMatchMode, FilterService } from 'primereact/api'; import { DataTable, DataTableFilterMeta } from 'primereact/datatable'; import { Column, ColumnFilterElementTemplateOptions } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown'; import { MultiSelect, MultiSelectChangeEvent } from 'primereact/multiselect'; import { Tag } from 'primereact/tag'; @@ -316,10 +320,10 @@ export default function CustomFilterDemo() { const renderHeader = () => { return (
- - + + - +
); }; @@ -426,6 +430,8 @@ import { FilterMatchMode, FilterService } from 'primereact/api'; import { DataTable, DataTableFilterMeta } from 'primereact/datatable'; import { Column, ColumnFilterElementTemplateOptions } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown'; import { MultiSelect, MultiSelectChangeEvent } from 'primereact/multiselect'; import { Tag } from 'primereact/tag'; @@ -542,10 +548,10 @@ export default function CustomFilterDemo() { const renderHeader = () => { return (
- - + + - +
); }; diff --git a/components/doc/datatable/samples/customersdoc.js b/components/doc/datatable/samples/customersdoc.js index 9763c01710..0986823e5b 100644 --- a/components/doc/datatable/samples/customersdoc.js +++ b/components/doc/datatable/samples/customersdoc.js @@ -1,3 +1,4 @@ +import DeferredDemo from '@/components/demo/DeferredDemo'; import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { FilterMatchMode, FilterOperator } from '@/components/lib/api/Api'; @@ -6,15 +7,16 @@ import { Calendar } from '@/components/lib/calendar/Calendar'; import { Column } from '@/components/lib/column/Column'; import { DataTable } from '@/components/lib/datatable/DataTable'; import { Dropdown } from '@/components/lib/dropdown/Dropdown'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; import { InputNumber } from '@/components/lib/inputnumber/InputNumber'; import { InputText } from '@/components/lib/inputtext/InputText'; import { MultiSelect } from '@/components/lib/multiselect/MultiSelect'; import { ProgressBar } from '@/components/lib/progressbar/ProgressBar'; import { Slider } from '@/components/lib/slider/Slider'; import { Tag } from '@/components/lib/tag/Tag'; -import React, { useEffect, useState } from 'react'; +import React, { useState } from 'react'; import { CustomerService } from '../../../../service/CustomerService'; -import DeferredDemo from '@/components/demo/DeferredDemo'; export const CustomersDoc = (props) => { const [customers, setCustomers] = useState([]); @@ -101,10 +103,10 @@ export const CustomersDoc = (props) => { return (

Customers

- - + + - +
); }; @@ -222,6 +224,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable } from 'primereact/datatable'; import { Column } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown } from 'primereact/dropdown'; import { InputNumber } from 'primereact/inputnumber'; import { Button } from 'primereact/button'; @@ -317,10 +321,10 @@ export default function CustomersDemo() { return (

Customers

- - + + - +
); }; @@ -441,6 +445,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable, DataTableFilterMeta } from 'primereact/datatable'; import { Column, ColumnFilterElementTemplateOptions } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown'; import { InputNumber, InputNumberValueChangeEvent } from 'primereact/inputnumber'; import { Button } from 'primereact/button'; @@ -559,10 +565,10 @@ export default function CustomersDemo() { return (

Customers

- - + + - +
); }; diff --git a/components/doc/datatable/samples/productsdoc.js b/components/doc/datatable/samples/productsdoc.js index 3c4c750012..d5eeba8b1a 100644 --- a/components/doc/datatable/samples/productsdoc.js +++ b/components/doc/datatable/samples/productsdoc.js @@ -1,9 +1,12 @@ +import DeferredDemo from '@/components/demo/DeferredDemo'; import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { Button } from '@/components/lib/button/Button'; import { Column } from '@/components/lib/column/Column'; import { DataTable } from '@/components/lib/datatable/DataTable'; import { Dialog } from '@/components/lib/dialog/Dialog'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; import { InputNumber } from '@/components/lib/inputnumber/InputNumber'; import { InputText } from '@/components/lib/inputtext/InputText'; import { InputTextarea } from '@/components/lib/inputtextarea/InputTextarea'; @@ -13,9 +16,8 @@ import { Tag } from '@/components/lib/tag/Tag'; import { Toast } from '@/components/lib/toast/Toast'; import { Toolbar } from '@/components/lib/toolbar/Toolbar'; import { classNames } from '@/components/lib/utils/Utils'; -import React, { useEffect, useRef, useState } from 'react'; +import React, { useRef, useState } from 'react'; import { ProductService } from '../../../../service/ProductService'; -import DeferredDemo from '@/components/demo/DeferredDemo'; export function ProductsDoc(props) { let emptyProduct = { @@ -235,10 +237,10 @@ export function ProductsDoc(props) { const header = (

Manage Products

- - + + setGlobalFilter(e.target.value)} placeholder="Search..." /> - +
); const productDialogFooter = ( @@ -290,6 +292,8 @@ import { FileUpload } from 'primereact/fileupload'; import { Rating } from 'primereact/rating'; import { Toolbar } from 'primereact/toolbar'; import { InputTextarea } from 'primereact/inputtextarea'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { RadioButton } from 'primereact/radiobutton'; import { InputNumber } from 'primereact/inputnumber'; import { Dialog } from 'primereact/dialog'; @@ -514,10 +518,10 @@ export default function ProductsDemo() { const header = (

Manage Products

- - + + setGlobalFilter(e.target.value)} placeholder="Search..." /> - +
); const productDialogFooter = ( @@ -648,6 +652,8 @@ import { FileUpload } from 'primereact/fileupload'; import { Rating } from 'primereact/rating'; import { Toolbar } from 'primereact/toolbar'; import { InputTextarea } from 'primereact/inputtextarea'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { RadioButton, RadioButtonChangeEvent } from 'primereact/radiobutton'; import { InputNumber,InputNumberValueChangeEvent } from 'primereact/inputnumber'; import { Dialog } from 'primereact/dialog'; @@ -898,10 +904,10 @@ export default function ProductsDemo() { const header = (

Manage Products

- - - {const target = e.target as HTMLInputElement; setGlobalFilter(target.value);}} /> - + + + {const target = e.target as HTMLInputElement; setGlobalFilter(target.value);}} /> +
); const productDialogFooter = ( diff --git a/components/doc/datatable/statefuldoc.js b/components/doc/datatable/statefuldoc.js index c96490a1ce..5d36a08401 100644 --- a/components/doc/datatable/statefuldoc.js +++ b/components/doc/datatable/statefuldoc.js @@ -1,15 +1,17 @@ +import DeferredDemo from '@/components/demo/DeferredDemo'; import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { FilterMatchMode, FilterOperator } from '@/components/lib/api/Api'; import { Column } from '@/components/lib/column/Column'; import { DataTable } from '@/components/lib/datatable/DataTable'; import { Dropdown } from '@/components/lib/dropdown/Dropdown'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; import { InputText } from '@/components/lib/inputtext/InputText'; import { MultiSelect } from '@/components/lib/multiselect/MultiSelect'; import { Tag } from '@/components/lib/tag/Tag'; import { useState } from 'react'; import { CustomerService } from '../../../service/CustomerService'; -import DeferredDemo from '@/components/demo/DeferredDemo'; export function StatefulDoc(props) { const [customers, setCustomers] = useState(null); @@ -117,10 +119,10 @@ export function StatefulDoc(props) { const value = filters.global ? filters.global.value : ''; return ( - - + + onGlobalFilterChange(e)} placeholder="Global Search" /> - + ); }; @@ -144,6 +146,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable } from 'primereact/datatable'; import { Column } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { MultiSelect } from 'primereact/multiselect'; import { Dropdown } from 'primereact/dropdown'; import { Tag } from 'primereact/tag'; @@ -255,10 +259,10 @@ export default function BasicDemo() { const value = filters['global'] ? filters['global'].value : ''; return ( - - + + onGlobalFilterChange(e)} placeholder="Global Search" /> - + ); }; @@ -285,6 +289,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable, DataTableFilterMeta } from 'primereact/datatable'; import { Column, ColumnFilterElementTemplateOptions } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { MultiSelect, MultiSelectChangeEvent } from 'primereact/multiselect'; import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown'; import { Tag } from 'primereact/tag'; @@ -414,10 +420,10 @@ export default function BasicDemo() { const value = filters['global'] ? filters['global'].value : ''; return ( - - + + onGlobalFilterChange(e)} placeholder="Global Search" /> - + ); }; diff --git a/components/doc/datatable/theming/tailwinddoc.js b/components/doc/datatable/theming/tailwinddoc.js index 558dc2e625..e69525cfd8 100644 --- a/components/doc/datatable/theming/tailwinddoc.js +++ b/components/doc/datatable/theming/tailwinddoc.js @@ -315,6 +315,8 @@ import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable } from 'primereact/datatable'; import { Column } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { Dropdown } from 'primereact/dropdown'; import { InputNumber } from 'primereact/inputnumber'; import { Button } from 'primereact/button'; @@ -425,10 +427,10 @@ export default function UnstyledDemo() { return (
); }; diff --git a/components/doc/toolbar/basicdoc.js b/components/doc/toolbar/basicdoc.js index 04cc867043..643fd0cb29 100644 --- a/components/doc/toolbar/basicdoc.js +++ b/components/doc/toolbar/basicdoc.js @@ -1,9 +1,11 @@ import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { Button } from '@/components/lib/button/Button'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; +import { InputText } from '@/components/lib/inputtext/InputText'; import { SplitButton } from '@/components/lib/splitbutton/SplitButton'; import { Toolbar } from '@/components/lib/toolbar/Toolbar'; -import { InputText } from '@/components/lib/inputtext/InputText'; import React from 'react'; export function BasicDoc(props) { @@ -27,10 +29,10 @@ export function BasicDoc(props) { ); const centerContent = ( - - + + - + ); const endContent = ( @@ -49,6 +51,8 @@ import { Toolbar } from 'primereact/toolbar'; import { Button } from 'primereact/button'; import { SplitButton } from 'primereact/splitbutton'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; export default function BasicDemo() { const items = [ @@ -71,10 +75,10 @@ export default function BasicDemo() { ); const centerContent = ( - - + + - + ); const endContent = ( @@ -97,6 +101,8 @@ import { Button } from 'primereact/button'; import { MenuItem } from 'primereact/menuitem'; import { SplitButton } from 'primereact/splitbutton'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; export default function BasicDemo() { const items: MenuItem[] = [ @@ -119,10 +125,10 @@ export default function BasicDemo() { ); const centerContent = ( - - + + - + ); const endContent = ( diff --git a/components/doc/treetable/filterdoc.js b/components/doc/treetable/filterdoc.js index f3e5830893..e2b4e0641e 100644 --- a/components/doc/treetable/filterdoc.js +++ b/components/doc/treetable/filterdoc.js @@ -1,6 +1,8 @@ import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { Column } from '@/components/lib/column/Column'; +import { IconField } from '@/components/lib/iconfield/IconField'; +import { InputIcon } from '@/components/lib/inputicon/InputIcon'; import { InputText } from '@/components/lib/inputtext/InputText'; import { SelectButton } from '@/components/lib/selectbutton/SelectButton'; import { TreeTable } from '@/components/lib/treetable/TreeTable'; @@ -23,10 +25,10 @@ export function FilterDoc(props) { const getHeader = () => { return (
-
- + + setGlobalFilter(e.target.value)} placeholder="Global Search" /> -
+
); }; @@ -48,6 +50,8 @@ import React, { useState, useEffect } from 'react'; import { TreeTable } from 'primereact/treetable'; import { Column } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { SelectButton } from 'primereact/selectbutton'; import { NodeService } from './service/NodeService'; @@ -67,10 +71,10 @@ export default function FilterDemo() { const getHeader = () => { return (
-
- + + setGlobalFilter(e.target.value)} placeholder="Global Search" /> -
+
); }; @@ -96,6 +100,8 @@ import React, { useState, useEffect } from 'react'; import { TreeTable } from 'primereact/treetable'; import { Column } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; +import { IconField } from 'primereact/iconfield'; +import { InputIcon } from 'primereact/inputicon'; import { SelectButton } from 'primereact/selectbutton'; import { TreeNode } from 'primereact/treenode'; import { NodeService } from './service/NodeService'; @@ -121,10 +127,10 @@ export default function FilterDemo() { const getHeader = () => { return (
-
- + + setGlobalFilter(e.target.value)} placeholder="Global Search" /> -
+
); };