Skip to content

Commit

Permalink
Merge branch 'primefaces:master' into new-feature-primefaces#4134
Browse files Browse the repository at this point in the history
  • Loading branch information
userkks authored May 31, 2023
2 parents 3ff060b + 57d92b4 commit 5989b84
Show file tree
Hide file tree
Showing 17 changed files with 846 additions and 79 deletions.
208 changes: 208 additions & 0 deletions components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -29020,6 +29020,14 @@
"type": "ReactNode",
"default": "",
"description": "Used to get the child elements of the component."
},
{
"name": "pt",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughOptions",
"default": "",
"description": "Uses to pass attributes to DOM elements inside the component."
}
]
},
Expand Down Expand Up @@ -29084,6 +29092,192 @@
"interfaces": {
"description": "Defines the custom interfaces used by the module.",
"values": {
"OrderListPassThroughMethodOptions": {
"description": "Custom passthrough(pt) option method.",
"relatedProp": "",
"props": [
{
"name": "props",
"optional": false,
"readonly": false,
"type": "OrderListProps"
},
{
"name": "state",
"optional": false,
"readonly": false,
"type": "OrderListState"
},
{
"name": "context",
"optional": false,
"readonly": false,
"type": "OrderListContext"
}
],
"callbacks": []
},
"OrderListPassThroughOptions": {
"description": "Custom passthrough(pt) options.",
"relatedProp": "pt",
"props": [
{
"name": "root",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the root's DOM element."
},
{
"name": "controls",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the controls' DOM element."
},
{
"name": "moveUpButton",
"optional": true,
"readonly": false,
"type": "ButtonPassThroughOptions",
"description": "Uses to pass attributes to the Button component."
},
{
"name": "moveTopButton",
"optional": true,
"readonly": false,
"type": "ButtonPassThroughOptions",
"description": "Uses to pass attributes to the Button component."
},
{
"name": "moveDownButton",
"optional": true,
"readonly": false,
"type": "ButtonPassThroughOptions",
"description": "Uses to pass attributes to the Button component."
},
{
"name": "moveBottomButton",
"optional": true,
"readonly": false,
"type": "ButtonPassThroughOptions",
"description": "Uses to pass attributes to the Button component."
},
{
"name": "container",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the container's DOM element."
},
{
"name": "header",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the header's DOM element."
},
{
"name": "list",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLUListElement>>",
"description": "Uses to pass attributes to the list's DOM element."
},
{
"name": "item",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLLIElement>>",
"description": "Uses to pass attributes to the item's DOM element."
},
{
"name": "droppoint",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the item's DOM element."
},
{
"name": "icon",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLSpanElement> | SVGProps<SVGSVGElement>>",
"description": "Uses to pass attributes to the item's DOM element."
},
{
"name": "filterInput",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the item's DOM element."
},
{
"name": "filterIcon",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLSpanElement> | SVGProps<SVGSVGElement>>",
"description": "Uses to pass attributes to the item's DOM element."
},
{
"name": "filter",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the item's DOM element."
},
{
"name": "filterContainer",
"optional": true,
"readonly": false,
"type": "OrderListPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the item's DOM element."
}
],
"callbacks": []
},
"OrderListState": {
"description": "Defines current inline state in OrderList component.",
"relatedProp": "",
"props": [
{
"name": "selection",
"optional": false,
"readonly": false,
"type": "[]",
"description": "Current selection state as a boolean."
},
{
"name": "filterValue",
"optional": false,
"readonly": false,
"type": "string",
"description": "Current filter value as a string.s"
},
{
"name": "attributeSelector",
"optional": false,
"readonly": false,
"type": "string",
"description": "Current attribute selector state as a string."
}
],
"callbacks": []
},
"OrderListContext": {
"description": "Defines current options in OrderList component.",
"relatedProp": "",
"props": [
{
"name": "selected",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current selection state of the item as a boolean."
}
],
"callbacks": []
},
"OrderListFilterOptions": {
"description": "Custom filter options.",
"relatedProp": "",
Expand All @@ -29104,6 +29298,14 @@
"callbacks": []
}
}
},
"types": {
"description": "Defines the custom types used by the module.",
"values": {
"OrderListPassThroughType": {
"values": "PassThroughType<T, OrderListPassThroughMethodOptions>"
}
}
}
},
"organizationchart": {
Expand Down Expand Up @@ -32657,6 +32859,12 @@
"optional": false,
"readonly": false,
"type": "PickListState"
},
{
"name": "context",
"optional": false,
"readonly": false,
"type": "PickListContext"
}
],
"callbacks": []
Expand Down
69 changes: 66 additions & 3 deletions components/doc/keyfilter/presetsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ export function PresetsDoc(props) {
const code = {
basic: `
<InputText keyfilter="int" />
<InputText keyfilter="pint" />
<InputText keyfilter="num" />
<InputText keyfilter="pnum" />
<InputText keyfilter="money" />
<InputText keyfilter="hex" />
<InputText keyfilter="alpha" />
<InputText keyfilter="alphanum" />
<InputText keyfilter="email" />
`,
javascript: `
import React from 'react';
Expand Down Expand Up @@ -39,7 +42,7 @@ export default function PresetsDemo() {
<InputText id="money" keyfilter="money" className="w-full" />
</div>
</div>
<div className="flex flex-wrap gap-3">
<div className="flex flex-wrap gap-3 mb-4">
<div className="flex-auto">
<label htmlFor="hex" className="font-bold block mb-2">
Hex
Expand All @@ -59,6 +62,26 @@ export default function PresetsDemo() {
<InputText id="alphanumeric" keyfilter="alphanum" className="w-full" />
</div>
</div>
<div className="flex flex-wrap gap-3">
<div className="flex-auto">
<label htmlFor="pint" className="font-bold block mb-2">
Positive Integer
</label>
<InputText id="pint" keyfilter="pint" className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="pnum" className="font-bold block mb-2">
Positive Number
</label>
<InputText id="pnum" keyfilter="pnum" className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="email" className="font-bold block mb-2">
Email
</label>
<InputText id="email" keyfilter="email" className="w-full" />
</div>
</div>
</div>
)
}
Expand Down Expand Up @@ -90,7 +113,7 @@ export default function PresetsDemo() {
<InputText id="money" keyfilter="money" className="w-full" />
</div>
</div>
<div className="flex flex-wrap gap-3">
<div className="flex flex-wrap gap-3 mb-4">
<div className="flex-auto">
<label htmlFor="hex" className="font-bold block mb-2">
Hex
Expand All @@ -110,6 +133,26 @@ export default function PresetsDemo() {
<InputText id="alphanumeric" keyfilter="alphanum" className="w-full" />
</div>
</div>
<div className="flex flex-wrap gap-3">
<div className="flex-auto">
<label htmlFor="pint" className="font-bold block mb-2">
Positive Integer
</label>
<InputText id="pint" keyfilter="pint" className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="pnum" className="font-bold block mb-2">
Positive Number
</label>
<InputText id="pnum" keyfilter="pnum" className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="email" className="font-bold block mb-2">
Email
</label>
<InputText id="email" keyfilter="email" className="w-full" />
</div>
</div>
</div>
)
}
Expand Down Expand Up @@ -144,7 +187,7 @@ export default function PresetsDemo() {
<InputText id="money" keyfilter="money" className="w-full" />
</div>
</div>
<div className="flex flex-wrap gap-3">
<div className="flex flex-wrap gap-3 mb-4">
<div className="flex-auto">
<label htmlFor="hex" className="font-bold block mb-2">
Hex
Expand All @@ -164,6 +207,26 @@ export default function PresetsDemo() {
<InputText id="alphanumeric" keyfilter="alphanum" className="w-full" />
</div>
</div>
<div className="flex flex-wrap gap-3">
<div className="flex-auto">
<label htmlFor="pint" className="font-bold block mb-2">
Positive Integer
</label>
<InputText id="pint" keyfilter="pint" className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="pnum" className="font-bold block mb-2">
Positive Number
</label>
<InputText id="pnum" keyfilter="pnum" className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="email" className="font-bold block mb-2">
Email
</label>
<InputText id="email" keyfilter="email" className="w-full" />
</div>
</div>
</div>
<DocSectionCode code={code} />
</>
Expand Down
Loading

0 comments on commit 5989b84

Please sign in to comment.