@webority/ui-react 0.167.0 → 0.169.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/canvas-kit/kit.js +216 -216
- package/dist/canvas-kit/manifest.json +3776 -2325
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAvatar.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppEntryGrid.js +1 -1
- package/dist/components/AppGantt.js +1 -0
- package/dist/components/AppIdleTimeoutDialog.js +1 -0
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppLoadMore.js +1 -0
- package/dist/components/AppQueryBuilder.js +1 -0
- package/dist/components/AppSavedViews.js +1 -0
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppTransferList.js +1 -0
- package/dist/components/AppTreePicker.js +1 -0
- package/dist/components/AppWorkspaceSwitcher.js +1 -1
- package/dist/guidance.json +204 -2
- package/dist/lib/queryBuilder/querySerialise.js +1 -0
- package/dist/lib/queryBuilder/queryTree.js +1 -0
- package/dist/lib/queryBuilder/queryTypes.js +1 -0
- package/dist/lib/queryBuilderView/QueryAppliedBar.js +1 -0
- package/dist/lib/queryBuilderView/QueryConditionRow.js +1 -0
- package/dist/lib/queryBuilderView/QueryGroupBox.js +1 -0
- package/dist/lib/queryBuilderView/QueryRulePanel.js +1 -0
- package/dist/lib/queryBuilderView/QueryValueInput.js +1 -0
- package/dist/lib/queryBuilderView/queryDisplay.js +1 -0
- package/dist/lib/transferList/transferKeys.js +1 -0
- package/dist/lib/transferList/transferState.js +1 -0
- package/dist/lib/transferListView/TransferPanel.js +1 -0
- package/dist/lib/transferListView/TransferRow.js +1 -0
- package/dist/types/components/AppChart.d.ts +3 -2
- package/dist/types/components/AppDataTable.d.ts +6 -0
- package/dist/types/components/AppEntryGrid.d.ts +3 -0
- package/dist/types/components/AppGantt.d.ts +75 -0
- package/dist/types/components/AppIdleTimeoutDialog.d.ts +43 -0
- package/dist/types/components/AppLoadMore.d.ts +47 -0
- package/dist/types/components/AppPopover.d.ts +2 -0
- package/dist/types/components/AppQueryBuilder.d.ts +37 -0
- package/dist/types/components/AppSavedViews.d.ts +21 -0
- package/dist/types/components/AppSearch.d.ts +6 -0
- package/dist/types/components/AppTransferList.d.ts +131 -0
- package/dist/types/components/AppTreePicker.d.ts +92 -0
- package/dist/types/components/AppTreeView.d.ts +4 -0
- package/dist/types/index.d.ts +13 -1
- package/dist/types/lib/queryBuilder/querySerialise.d.ts +31 -0
- package/dist/types/lib/queryBuilder/queryTree.d.ts +37 -0
- package/dist/types/lib/queryBuilder/queryTypes.d.ts +57 -0
- package/dist/types/lib/queryBuilderView/QueryAppliedBar.d.ts +24 -0
- package/dist/types/lib/queryBuilderView/QueryConditionRow.d.ts +16 -0
- package/dist/types/lib/queryBuilderView/QueryGroupBox.d.ts +27 -0
- package/dist/types/lib/queryBuilderView/QueryRulePanel.d.ts +18 -0
- package/dist/types/lib/queryBuilderView/QueryValueInput.d.ts +15 -0
- package/dist/types/lib/queryBuilderView/queryDisplay.d.ts +29 -0
- package/dist/types/lib/transferList/transferKeys.d.ts +44 -0
- package/dist/types/lib/transferList/transferState.d.ts +24 -0
- package/dist/types/lib/transferListView/TransferPanel.d.ts +33 -0
- package/dist/types/lib/transferListView/TransferRow.d.ts +10 -0
- package/dist/ui-react.js +1 -1
- package/dist/web-core/dist/errors/extractApiError.js +2 -2
- package/package.json +9 -9
- package/dist/lib/initials.js +0 -1
- package/dist/types/lib/initials.d.ts +0 -5
package/dist/guidance.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"format": "webority-guidance/1",
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@webority/ui-react",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.169.0"
|
|
6
6
|
},
|
|
7
7
|
"components": [
|
|
8
8
|
{
|
|
@@ -2193,7 +2193,10 @@
|
|
|
2193
2193
|
}
|
|
2194
2194
|
],
|
|
2195
2195
|
"hiddenColumns": []
|
|
2196
|
-
}
|
|
2196
|
+
},
|
|
2197
|
+
"handlers": [
|
|
2198
|
+
"onToggle"
|
|
2199
|
+
]
|
|
2197
2200
|
}
|
|
2198
2201
|
}
|
|
2199
2202
|
},
|
|
@@ -4212,6 +4215,36 @@
|
|
|
4212
4215
|
]
|
|
4213
4216
|
}
|
|
4214
4217
|
},
|
|
4218
|
+
{
|
|
4219
|
+
"name": "AppGantt",
|
|
4220
|
+
"usage": {
|
|
4221
|
+
"when": [
|
|
4222
|
+
"A project plan whose tasks have a start and an end date, where the reader needs to see what is due when, what waits on what and what is late."
|
|
4223
|
+
],
|
|
4224
|
+
"whenNot": [
|
|
4225
|
+
{
|
|
4226
|
+
"text": "Events on a month grid.",
|
|
4227
|
+
"instead": "AppCalendar"
|
|
4228
|
+
},
|
|
4229
|
+
{
|
|
4230
|
+
"text": "A vertical history of what happened.",
|
|
4231
|
+
"instead": "AppTimeline"
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
"text": "A value series over time.",
|
|
4235
|
+
"instead": "AppChart"
|
|
4236
|
+
}
|
|
4237
|
+
],
|
|
4238
|
+
"do": [],
|
|
4239
|
+
"dont": [],
|
|
4240
|
+
"a11y": [
|
|
4241
|
+
"Each bar is a focusable list item with one sentence read aloud: its name, dates, percent, status and predecessors.",
|
|
4242
|
+
"Arrow keys move between bars. Enter chooses a row (the lanes layout opens its details card) and Escape clears it.",
|
|
4243
|
+
"In the table layout the task table has row and column headers, so a screen reader reads each date with its column name.",
|
|
4244
|
+
"The zoom is a radio group. The Today flag is text, never colour alone, and status is also written in each bar's label."
|
|
4245
|
+
]
|
|
4246
|
+
}
|
|
4247
|
+
},
|
|
4215
4248
|
{
|
|
4216
4249
|
"name": "AppHoverCard",
|
|
4217
4250
|
"usage": {
|
|
@@ -4361,6 +4394,31 @@
|
|
|
4361
4394
|
]
|
|
4362
4395
|
}
|
|
4363
4396
|
},
|
|
4397
|
+
{
|
|
4398
|
+
"name": "AppIdleTimeoutDialog",
|
|
4399
|
+
"usage": {
|
|
4400
|
+
"when": [
|
|
4401
|
+
"A person has been idle long enough that the app is about to sign them out for their security."
|
|
4402
|
+
],
|
|
4403
|
+
"whenNot": [
|
|
4404
|
+
{
|
|
4405
|
+
"text": "The app is about to sign out for a reason other than inactivity.",
|
|
4406
|
+
"instead": "AppConfirmDialog"
|
|
4407
|
+
},
|
|
4408
|
+
{
|
|
4409
|
+
"text": "A notice that does not need an answer.",
|
|
4410
|
+
"instead": "AppBanner"
|
|
4411
|
+
}
|
|
4412
|
+
],
|
|
4413
|
+
"do": [],
|
|
4414
|
+
"dont": [],
|
|
4415
|
+
"a11y": [
|
|
4416
|
+
"The dialog is a modal: focus moves into it, Tab stays inside it and focus returns when it closes.",
|
|
4417
|
+
"Escape does not close it; the person answers with Stay signed in or Sign out.",
|
|
4418
|
+
"Both answers are native buttons, reached with Tab and used with Enter or Space."
|
|
4419
|
+
]
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4364
4422
|
{
|
|
4365
4423
|
"name": "AppImagePicker",
|
|
4366
4424
|
"usage": {
|
|
@@ -4993,6 +5051,32 @@
|
|
|
4993
5051
|
]
|
|
4994
5052
|
}
|
|
4995
5053
|
},
|
|
5054
|
+
{
|
|
5055
|
+
"name": "AppLoadMore",
|
|
5056
|
+
"usage": {
|
|
5057
|
+
"when": [
|
|
5058
|
+
"A long feed, notification list or chat history that loads its next page on request or as the reader scrolls."
|
|
5059
|
+
],
|
|
5060
|
+
"whenNot": [
|
|
5061
|
+
{
|
|
5062
|
+
"text": "Moving between numbered pages of a table.",
|
|
5063
|
+
"instead": "AppTablePagination"
|
|
5064
|
+
},
|
|
5065
|
+
{
|
|
5066
|
+
"text": "The first page of a feed is loading.",
|
|
5067
|
+
"instead": "AppAsyncBlock"
|
|
5068
|
+
}
|
|
5069
|
+
],
|
|
5070
|
+
"do": [],
|
|
5071
|
+
"dont": [],
|
|
5072
|
+
"a11y": [
|
|
5073
|
+
"Loading is announced by the spinner label.",
|
|
5074
|
+
"A failed page is a polite status with a text-labelled Try again button.",
|
|
5075
|
+
"The finished text is a polite status.",
|
|
5076
|
+
"With infinite, the Load more button stays focusable, so keyboard users load the next page without scrolling."
|
|
5077
|
+
]
|
|
5078
|
+
}
|
|
5079
|
+
},
|
|
4996
5080
|
{
|
|
4997
5081
|
"name": "AppMarkdown",
|
|
4998
5082
|
"usage": {
|
|
@@ -6075,6 +6159,32 @@
|
|
|
6075
6159
|
]
|
|
6076
6160
|
}
|
|
6077
6161
|
},
|
|
6162
|
+
{
|
|
6163
|
+
"name": "AppQueryBuilder",
|
|
6164
|
+
"usage": {
|
|
6165
|
+
"when": [
|
|
6166
|
+
"A list needs a rule with or, or with nested groups that a flat filter bar cannot say."
|
|
6167
|
+
],
|
|
6168
|
+
"whenNot": [
|
|
6169
|
+
{
|
|
6170
|
+
"text": "One value per facet with no or.",
|
|
6171
|
+
"instead": "AppFilterBar"
|
|
6172
|
+
},
|
|
6173
|
+
{
|
|
6174
|
+
"text": "A fixed set of choices shown as a list you pick from.",
|
|
6175
|
+
"instead": "AppSelect or AppTreePicker"
|
|
6176
|
+
}
|
|
6177
|
+
],
|
|
6178
|
+
"do": [],
|
|
6179
|
+
"dont": [],
|
|
6180
|
+
"a11y": [
|
|
6181
|
+
"The Filters button opens the panel as a dialog named by its title; Escape, Cancel and the close button leave the applied rule as it was.",
|
|
6182
|
+
"Every select and icon button has a name: Field, Operator, Value, Remove condition, Remove group.",
|
|
6183
|
+
"An incomplete condition shows Enter a value under its value, and the footer says how many are incomplete while Apply is disabled.",
|
|
6184
|
+
"Enter in a text value applies the panel when Apply is enabled."
|
|
6185
|
+
]
|
|
6186
|
+
}
|
|
6187
|
+
},
|
|
6078
6188
|
{
|
|
6079
6189
|
"name": "AppRadio",
|
|
6080
6190
|
"usage": {
|
|
@@ -6782,6 +6892,27 @@
|
|
|
6782
6892
|
]
|
|
6783
6893
|
}
|
|
6784
6894
|
},
|
|
6895
|
+
{
|
|
6896
|
+
"name": "AppSavedViews",
|
|
6897
|
+
"usage": {
|
|
6898
|
+
"when": [
|
|
6899
|
+
"A list page whose filters people reuse.",
|
|
6900
|
+
"Reports with a fixed set of filters opened most days."
|
|
6901
|
+
],
|
|
6902
|
+
"whenNot": [
|
|
6903
|
+
{
|
|
6904
|
+
"text": "Hiding or ordering the columns of a table.",
|
|
6905
|
+
"instead": "AppColumnMenu"
|
|
6906
|
+
}
|
|
6907
|
+
],
|
|
6908
|
+
"do": [],
|
|
6909
|
+
"dont": [],
|
|
6910
|
+
"a11y": [
|
|
6911
|
+
"The Views button announces expanded or collapsed; Escape closes the menu and returns focus to it.",
|
|
6912
|
+
"Each Delete button is named for its view, such as Delete Open orders."
|
|
6913
|
+
]
|
|
6914
|
+
}
|
|
6915
|
+
},
|
|
6785
6916
|
{
|
|
6786
6917
|
"name": "AppScoreScale",
|
|
6787
6918
|
"usage": {
|
|
@@ -9439,6 +9570,77 @@
|
|
|
9439
9570
|
]
|
|
9440
9571
|
}
|
|
9441
9572
|
},
|
|
9573
|
+
{
|
|
9574
|
+
"name": "AppTransferList",
|
|
9575
|
+
"usage": {
|
|
9576
|
+
"when": [
|
|
9577
|
+
"A person builds an ordered or unordered set by moving rows between Available and Chosen."
|
|
9578
|
+
],
|
|
9579
|
+
"whenNot": [
|
|
9580
|
+
{
|
|
9581
|
+
"text": "A flat pick from a long list, with no need to see the rest.",
|
|
9582
|
+
"instead": "AppSelect"
|
|
9583
|
+
},
|
|
9584
|
+
{
|
|
9585
|
+
"text": "A pick from a hierarchy.",
|
|
9586
|
+
"instead": "AppTreePicker"
|
|
9587
|
+
},
|
|
9588
|
+
{
|
|
9589
|
+
"text": "Reordering one list only.",
|
|
9590
|
+
"instead": "AppSortableList"
|
|
9591
|
+
}
|
|
9592
|
+
],
|
|
9593
|
+
"do": [],
|
|
9594
|
+
"dont": [],
|
|
9595
|
+
"a11y": [
|
|
9596
|
+
"Each row action names its row: Add Alpha, Remove Alpha.",
|
|
9597
|
+
"Every move is announced in a polite status line.",
|
|
9598
|
+
"Enter on a row moves it between the lists, and focus follows the row to its new list.",
|
|
9599
|
+
"Space lifts a Chosen row and the arrow keys move it; Escape cancels."
|
|
9600
|
+
]
|
|
9601
|
+
}
|
|
9602
|
+
},
|
|
9603
|
+
{
|
|
9604
|
+
"name": "AppTreePicker",
|
|
9605
|
+
"usage": {
|
|
9606
|
+
"when": [
|
|
9607
|
+
"A form needs one or many leaves of a hierarchy, such as departments and their teams."
|
|
9608
|
+
],
|
|
9609
|
+
"whenNot": [
|
|
9610
|
+
{
|
|
9611
|
+
"text": "A flat set of options.",
|
|
9612
|
+
"instead": "AppSelect"
|
|
9613
|
+
},
|
|
9614
|
+
{
|
|
9615
|
+
"text": "A browsable hierarchy that is not a form field.",
|
|
9616
|
+
"instead": "AppTreeView"
|
|
9617
|
+
},
|
|
9618
|
+
{
|
|
9619
|
+
"text": "Moving rows between two lists.",
|
|
9620
|
+
"instead": "AppTransferList"
|
|
9621
|
+
}
|
|
9622
|
+
],
|
|
9623
|
+
"do": [],
|
|
9624
|
+
"dont": [],
|
|
9625
|
+
"a11y": [
|
|
9626
|
+
"Follows the WAI-ARIA tree pattern: ArrowDown and ArrowUp move between rows, Home and End jump to the first and last row, and typing jumps to the next row whose label starts with the text typed.",
|
|
9627
|
+
"ArrowRight opens a closed parent or moves to its first child; ArrowLeft closes an open parent or moves to its parent.",
|
|
9628
|
+
"Only one row is in the tab order (a roving tabindex), so Tab reaches the tree once and the arrow keys move the focus between rows.",
|
|
9629
|
+
"Enter and Space pick the focused row. In multiple selection they tick or untick it; in single selection they choose a leaf and do nothing on a parent. A disabled row ignores both keys.",
|
|
9630
|
+
"In multiple selection the tree is multiselectable and each row reports aria-checked as true, false or mixed. A parent is mixed when some of its enabled leaves are chosen. Ticking a parent picks every enabled leaf under it, and ticking a parent whose leaves are all chosen clears them.",
|
|
9631
|
+
"In single selection each leaf reports aria-selected; a parent never does.",
|
|
9632
|
+
"Each row reports its depth, a parent reports aria-expanded, and a disabled row reports aria-disabled.",
|
|
9633
|
+
"The visible checkboxes and expand chevrons are hidden from assistive technology and skipped by Tab; the row itself is the control.",
|
|
9634
|
+
"The search box is named by the search label. ArrowDown and ArrowUp move from it into the tree. Typing matches labels ignoring case, keeps each match with its whole subtree and opens every parent of a match. When nothing matches, the no-match text with the query appears under the search box; it is not announced.",
|
|
9635
|
+
"Backspace in an empty search box removes the last chosen item, in multiple selection only.",
|
|
9636
|
+
"The Chosen panel lists each chosen leaf under its parent's label. Each item has a Remove button named with the remove label and the item's name. Clear all empties the selection and is disabled when nothing is chosen.",
|
|
9637
|
+
"A polite status line under the Chosen panel announces the count, such as '2 selected', whenever the number of chosen items changes.",
|
|
9638
|
+
"The tree is named by the visible label through aria-labelledby; ariaLabel replaces that name when it is set.",
|
|
9639
|
+
"After Remove or Clear all, focus moves to the next Remove button, else the previous one, else the search box.",
|
|
9640
|
+
"The error or helper text is linked to the field with aria-describedby."
|
|
9641
|
+
]
|
|
9642
|
+
}
|
|
9643
|
+
},
|
|
9442
9644
|
{
|
|
9443
9645
|
"name": "AppTreeView",
|
|
9444
9646
|
"usage": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isGroup as e,pruneIncomplete as t}from"./queryTree.js";function n(e,n){return JSON.stringify(r(t(e,n)))}function r(t){return{op:t.op,items:t.items.map(t=>e(t)?r(t):{field:t.field,operator:t.operator,value:i(t.value)})}}function i(e){return typeof e!=`object`||!e||a(e)?e:`unit`in e?{amount:e.amount,unit:e.unit}:{from:e.from,to:e.to}}function a(e){return Array.isArray(e)}export{n as serialiseQuery};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DURATION_UNITS as e,QUERY_OPERATORS as t,assertNever as n,fieldOperators as r}from"./queryTypes.js";function i(){return{op:`and`,items:[]}}function a(e){return`items`in e}function o(e,t){let n=e;for(let e of t){if(!a(n))return;let t=n.items[e];if(t===void 0)return;n=t}return n}function s(e){return b(e)}function c(e){return e.length+1}function l(e){return e.items.reduce((e,t)=>a(t)?e+1+l(t):e,0)}function u(e){return e.items.reduce((e,t)=>a(t)?e+u(t):e+1,0)}function d(e,t,n,r){let i=n[0];if(i===void 0)return e;let a={field:i.key,operator:x(i),value:null};return S(e,t,e=>w(e,r,a))}function f(e,t,n){return c(t)+1>3?e:S(e,t,e=>w(e,n,{op:e.op,items:[]}))}function p(e,t){let n=t[t.length-1];if(n===void 0)return e;let r=t.slice(0,-1),i=S(e,r,e=>n<e.items.length?C(e,e.items.filter((e,t)=>t!==n)):e);if(i===e)return e;let s=o(i,r);return r.length>0&&s!==void 0&&a(s)&&s.items.length===0?p(i,r):i}function m(e,t,n,r){let i=t[t.length-1];return i===void 0?e:S(e,t.slice(0,-1),e=>{let t=e.items[i];if(t===void 0||a(t))return e;let o=T(t,n,r);return o.field===t.field&&o.operator===t.operator&&o.value===t.value?e:C(e,e.items.map((e,t)=>t===i?o:e))})}function h(e,t,n){return S(e,t,e=>e.op===n?e:{...e,op:n})}function g(e,t){let n=t.find(t=>t.key===e.field);return n===void 0?{code:`unknownField`,message:`No field is named "${e.field}".`}:O(e.operator)?r(n).includes(e.operator)?P(e.operator,n,e.value):{code:`badOperator`,message:`"${e.operator}" is not allowed on ${n.label}.`}:{code:`unknownOperator`,message:`"${e.operator}" is not a query operator.`}}function _(e,t,n=3){if(!Number.isInteger(n)||n<1)throw RangeError(`maxDepth must be a whole number of 1 or more, got ${n}.`);let r=Math.min(n,3),i=[],o=(e,n,s)=>{s>r&&i.push({path:n,code:`tooDeep`,message:`Groups nest deeper than ${r} levels.`}),n.length>0&&e.items.length===0&&i.push({path:n,code:`emptyGroup`,message:`A group has no conditions.`}),e.items.forEach((e,r)=>{let c=[...n,r];if(a(e)){o(e,c,s+1);return}let l=g(e,t);l!==null&&i.push({path:c,...l})})};return o(e,[],1),i}function v(e,t){return y(e,t)}function y(e,t){let n=!1,r=[];for(let i of e.items)if(a(i)){let e=y(i,t);e.items.length>0&&r.push(e),(e!==i||e.items.length===0)&&(n=!0)}else g(i,t)===null?r.push(i):n=!0;return n?{...e,items:r}:e}function b(e){let t=0;for(let n of e.items)a(n)&&(t=Math.max(t,b(n)));return 1+t}function x(e){let[t]=r(e);if(t===void 0)throw RangeError(`Field "${e.key}" has no operator.`);return t}function S(e,t,n){let[r,...i]=t;if(r===void 0)return n(e);let o=e.items[r];if(o===void 0||!a(o))return e;let s=S(o,i,n);return s===o?e:C(e,e.items.map((e,t)=>t===r?s:e))}function C(e,t){return{...e,items:t}}function w(e,t,n){let r=t===void 0?e.items.length:Math.min(Math.max(t,0),e.items.length);return C(e,[...e.items.slice(0,r),n,...e.items.slice(r)])}function T(e,t,n){let i=t.field??e.field;if(i!==e.field){let a=n.find(e=>e.key===i),o=a===void 0?void 0:r(a)[0];return{field:i,operator:t.operator??o??e.operator,value:t.value??null}}let a=t.operator??e.operator;if(t.value!==void 0)return{field:e.field,operator:a,value:t.value};if(a===e.operator)return e;let o=D(e.value)===E[a];return{field:e.field,operator:a,value:o?e.value:null}}var E={is:`scalar`,isNot:`scalar`,contains:`scalar`,gt:`scalar`,lt:`scalar`,isAnyOf:`list`,between:`range`,inLast:`duration`,isEmpty:`none`};function D(e){return e===null?`none`:Array.isArray(e)?`list`:typeof e==`object`?`unit`in e?`duration`:`range`:`scalar`}function O(e){return t.some(t=>t===e)}function k(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t===null)return!1;let n=Number(t[1]),r=Number(t[2]),i=Number(t[3]),a=new Date(Date.UTC(n,r-1,i));return a.getUTCFullYear()===n&&a.getUTCMonth()===r-1&&a.getUTCDate()===i}function A(e,t){switch(e.kind){case`text`:return typeof t==`string`;case`enum`:return typeof t==`string`&&(e.options===void 0||e.options.some(e=>e.value===t));case`number`:return typeof t==`number`&&Number.isFinite(t);case`money`:return typeof t==`number`&&Number.isInteger(t);case`date`:return typeof t==`string`&&k(t);case`boolean`:return typeof t==`boolean`;default:return n(e.kind)}}var j=e=>e==null||typeof e==`string`||typeof e==`number`;function M(e){if(typeof e!=`object`||!e||Array.isArray(e)||`unit`in e)return!1;let t=`from`in e?e.from:void 0,n=`to`in e?e.to:void 0;return j(t)&&j(n)}function N(e){return typeof e==`object`&&!!e&&`amount`in e&&typeof e.amount==`number`&&`unit`in e&&typeof e.unit==`string`}function P(t,r,i){let a=e=>({code:`badValue`,message:e}),o=()=>({code:`missingValue`,message:`${r.label} needs a value.`});if(t===`isEmpty`)return i===null?null:a(`"is empty" takes no value.`);if(i==null||typeof i==`string`&&i.trim()===``)return o();switch(t){case`isAnyOf`:return Array.isArray(i)?i.length===0?o():i.every(e=>A(r,e))?null:a(`${r.label} has a value it does not accept.`):a(`${r.label} needs a list of values.`);case`between`:{if(!M(i))return a(`${r.label} needs a from and a to value.`);if(i.from===void 0||i.from===null||i.to===void 0||i.to===null)return o();if(!A(r,i.from)||!A(r,i.to))return a(`${r.label} has a value it does not accept.`);let{from:e,to:t}=i;return(typeof e==`number`&&typeof t==`number`||typeof e==`string`&&typeof t==`string`)&&e<=t?null:a(`${r.label} starts after it ends.`)}case`inLast`:return N(i)?!Number.isInteger(i.amount)||i.amount<=0?a(`The amount must be a positive whole number.`):e.some(e=>e===i.unit)?null:a(`The unit must be days, weeks or months.`):a(`${r.label} needs an amount and a unit.`);case`is`:case`isNot`:case`contains`:case`gt`:case`lt`:return typeof i==`object`?a(`${r.label} needs a single value.`):A(r,i)?null:a(`${r.label} has a value it does not accept.`);default:return n(t)}}export{d as addCondition,f as addGroup,g as conditionIssue,u as countConditions,l as countGroups,i as emptyQuery,c as groupDepthOf,a as isGroup,o as nodeAt,v as pruneIncomplete,s as queryDepth,p as removeNode,h as setGroupOp,m as updateCondition,_ as validateQuery};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`is`,`isNot`,`isAnyOf`,`contains`,`gt`,`lt`,`between`,`inLast`,`isEmpty`],t={text:[`contains`,`is`,`isNot`,`isAnyOf`,`isEmpty`],number:[`is`,`isNot`,`isAnyOf`,`gt`,`lt`,`between`,`isEmpty`],money:[`is`,`isNot`,`gt`,`lt`,`between`,`isEmpty`],date:[`is`,`gt`,`lt`,`between`,`inLast`,`isEmpty`],enum:[`is`,`isNot`,`isAnyOf`,`isEmpty`],boolean:[`is`]},n={text:[`is`,`isAnyOf`,`contains`],number:[`is`,`isAnyOf`],money:[`is`],date:[`is`,`between`],enum:[`is`,`isAnyOf`],boolean:[`is`]};function r(e){let r=e.operators;if(r!==void 0){let n=t[e.kind].filter(e=>r.includes(e));if(n.length>0)return n}return n[e.kind]}var i=[`days`,`weeks`,`months`];function a(e){throw RangeError(`Unhandled query value: ${String(e)}`)}export{n as DEFAULT_OPERATORS_BY_KIND,i as DURATION_UNITS,t as OPERATORS_BY_KIND,e as QUERY_OPERATORS,a as assertNever,r as fieldOperators};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../components/AppButton.js";import t from"../../components/AppChip.js";import n from"../../components/AppPopover.js";import{Fragment as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{fillText as o}from"@webority/ui-elements/text";function s(s){let{clauses:c,connector:l,conditionCount:u,text:d,ariaLabel:f,titleId:p,disabled:m,open:h,onOpenChange:g,onRemoveClause:_,onClear:v,children:y}=s,b=u>0?o(d.filtersCountLabel,{count:u}):d.filtersLabel,x=/* @__PURE__ */ new Map,S=c.map((e,t)=>{let n=x.get(e)??0;return x.set(e,n+1),{clause:e,index:t,key:`${e}#${n}`}});return/* @__PURE__ */ a(`div`,{role:`group`,"aria-label":f,className:`wui-query-bar d-flex align-items-center gap-2 flex-wrap`,children:[/* @__PURE__ */ i(n,{open:h,onOpenChange:g,role:`dialog`,labelledBy:p,autoFocus:!0,placement:`bottom`,className:`wui-query-panel`,trigger:/* @__PURE__ */ i(e,{variant:`soft`,tone:`neutral`,size:`sm`,leftIcon:`filter`,disabled:m,onClick:()=>g(!h),children:b}),children:y}),S.map(e=>/* @__PURE__ */ a(r,{children:[e.index>0?/* @__PURE__ */ i(`span`,{className:`small text-secondary`,children:l}):null,/* @__PURE__ */ i(t,{className:`wui-query-chip mw-100 h-auto text-wrap`,variant:`outline`,label:e.clause,disabled:m,removeLabel:o(d.removeClauseLabel,{clause:e.clause}),onRemove:()=>_(e.index)})]},e.key)),c.length>0?/* @__PURE__ */ i(e,{className:`text-nowrap`,variant:`link`,tone:`neutral`,size:`sm`,disabled:m,onClick:v,children:d.clearAllLabel}):null]})}export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../components/AppActionIcon.js";import t from"../../components/AppSelect.js";import{fieldOperators as n}from"../queryBuilder/queryTypes.js";import r from"./QueryValueInput.js";import{operatorLabel as i,pathKey as a}from"./queryDisplay.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c({condition:c,path:l,fields:u,text:d,disabled:f,incomplete:p,onUpdate:m,onRemove:h}){let g=u.find(e=>e.key===c.field);return/* @__PURE__ */ s(`div`,{className:`wui-query-row`,"data-query-path":a(l),"data-query-kind":`condition`,children:[/* @__PURE__ */ o(t,{controlOnly:!0,size:`sm`,density:`compact`,"aria-label":d.fieldLabel,options:u.map(e=>({value:e.key,label:e.label})),value:c.field,disabled:f,onChange:e=>m(l,{field:e})}),g===void 0?/* @__PURE__ */ o(`span`,{}):/* @__PURE__ */ o(t,{controlOnly:!0,size:`sm`,density:`compact`,"aria-label":d.operatorLabel,options:n(g).map(e=>({value:e,label:i(e,g.kind,d)})),value:c.operator,disabled:f,onChange:e=>{let t=n(g).find(t=>t===e);if(t===void 0)throw RangeError(`Operator ${e} is not offered for ${g.key}`);m(l,{operator:t})}}),g===void 0?/* @__PURE__ */ o(`span`,{}):/* @__PURE__ */ s(`div`,{className:`min-w-0`,children:[/* @__PURE__ */ o(r,{field:g,operator:c.operator,value:c.value,text:d,disabled:f,invalid:p,onChange:e=>m(l,{value:e})}),p?/* @__PURE__ */ o(`div`,{className:`small text-danger mt-1`,children:d.valueRequiredText}):null]}),/* @__PURE__ */ o(e,{icon:`x`,label:d.removeConditionLabel,density:`compact`,tone:`neutral`,disabled:f,onClick:()=>h(l)})]})}export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../components/AppActionIcon.js";import t from"../../components/AppButton.js";import n from"../../components/AppSegmented.js";import r from"./QueryConditionRow.js";import{pathKey as i}from"./queryDisplay.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s({group:c,path:l,depth:u,fields:d,maxDepth:f,text:p,disabled:m,incompletePaths:h,onUpdate:g,onRemove:_,onAddCondition:v,onAddGroup:y,onSetOp:b}){let x=l.length===0,S={fields:d,maxDepth:f,text:p,disabled:m,incompletePaths:h,onUpdate:g,onRemove:_,onAddCondition:v,onAddGroup:y,onSetOp:b};return/* @__PURE__ */ o(`div`,{className:x?void 0:`border rounded-3 p-3`,"data-query-path":i(l),"data-query-kind":`group`,children:[/* @__PURE__ */ o(`div`,{className:`d-flex align-items-center gap-2 mb-3`,children:[/* @__PURE__ */ a(`span`,{className:`small fw-medium`,children:p.matchLabel}),/* @__PURE__ */ a(n,{size:`sm`,label:p.matchLabel,labelVisible:!1,options:[{value:`and`,label:p.matchAllLabel},{value:`or`,label:p.matchAnyLabel}],value:c.op,disabled:m,onChange:e=>{if(e!==`and`&&e!==`or`)throw RangeError(`Unknown group operator: ${e}`);b(l,e)}}),/* @__PURE__ */ a(`span`,{className:`small text-secondary`,children:p.matchSuffixText}),x?null:/* @__PURE__ */ a(`div`,{className:`ms-auto`,children:/* @__PURE__ */ a(e,{icon:`trash`,label:p.removeGroupLabel,density:`compact`,tone:`danger`,disabled:m,onClick:()=>_(l)})})]}),/* @__PURE__ */ a(`div`,{className:`d-flex flex-column gap-2`,children:c.items.length===0?/* @__PURE__ */ o(`div`,{className:`wui-query-empty text-center text-secondary py-4 border rounded-3`,children:[/* @__PURE__ */ a(`div`,{className:`fw-medium text-body`,children:p.emptyTitle}),/* @__PURE__ */ a(`div`,{className:`small mb-3`,children:p.emptyText}),/* @__PURE__ */ a(t,{size:`sm`,variant:`soft`,tone:`neutral`,leftIcon:`plus`,disabled:m,onClick:()=>v(l),children:p.addConditionLabel})]}):c.items.map((e,t)=>{let n=[...l,t],o=i(n);return`items`in e?/* @__PURE__ */ a(s,{...S,group:e,path:n,depth:u+1},o):/* @__PURE__ */ a(r,{condition:e,path:n,fields:d,text:p,disabled:m,incomplete:h.includes(o),onUpdate:g,onRemove:_},o)})}),c.items.length>0?/* @__PURE__ */ o(`div`,{className:`d-flex gap-1 mt-3`,children:[/* @__PURE__ */ a(t,{size:`sm`,variant:`ghost`,tone:`neutral`,leftIcon:`plus`,disabled:m,onClick:()=>v(l),children:p.addConditionLabel}),/* @__PURE__ */ a(t,{size:`sm`,variant:`ghost`,tone:`neutral`,leftIcon:`plus`,disabled:m||u>=f,onClick:()=>y(l),children:p.addGroupLabel})]}):null]})}export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../components/AppActionIcon.js";import t from"../../components/AppButton.js";import n from"./QueryGroupBox.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{pluralText as a}from"@webority/ui-elements/text";function o({draft:o,titleId:s,summary:c,incompleteCount:l,canApply:u,onClear:d,onCancel:f,onApply:p,fields:m,maxDepth:h,text:g,disabled:_,incompletePaths:v,onUpdate:y,onRemove:b,onAddCondition:x,onAddGroup:S,onSetOp:C}){return/* @__PURE__ */ i(`div`,{"data-query-panel":``,onKeyDown:e=>{if(e.key!==`Enter`||e.nativeEvent.isComposing||e.keyCode===229)return;let t=e.target;t instanceof HTMLInputElement&&t.type===`text`&&t.closest(`wui-select, wui-datepicker`)===null&&u&&(e.preventDefault(),p())},children:[/* @__PURE__ */ i(`div`,{className:`px-3 pt-3 pb-2 d-flex align-items-center`,children:[/* @__PURE__ */ r(`strong`,{id:s,children:g.panelTitle}),/* @__PURE__ */ r(`div`,{className:`ms-auto`,children:/* @__PURE__ */ r(e,{icon:`x`,label:g.closeLabel,density:`compact`,tone:`neutral`,onClick:f})})]}),/* @__PURE__ */ r(`div`,{className:`wui-query-panel-body px-3 pb-3`,children:/* @__PURE__ */ r(n,{group:o,path:[],depth:1,fields:m,maxDepth:h,text:g,disabled:_,incompletePaths:v,onUpdate:y,onRemove:b,onAddCondition:x,onAddGroup:S,onSetOp:C})}),/* @__PURE__ */ i(`div`,{className:`px-3 py-2 border-top d-flex align-items-center gap-2`,children:[/* @__PURE__ */ r(`div`,{className:`small text-secondary me-auto min-w-0`,children:l>0?/* @__PURE__ */ r(`span`,{className:`text-danger`,children:a(g,`incompleteText`,l)}):c}),/* @__PURE__ */ r(t,{className:`text-nowrap`,size:`sm`,variant:`ghost`,tone:`neutral`,disabled:_||o.items.length===0,onClick:d,children:g.clearAllLabel}),/* @__PURE__ */ r(t,{className:`text-nowrap`,size:`sm`,variant:`soft`,tone:`neutral`,onClick:f,children:g.cancelLabel}),/* @__PURE__ */ r(t,{className:`text-nowrap`,size:`sm`,disabled:!u,onClick:p,children:g.applyLabel})]})]})}export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../components/AppDatePicker.js";import t from"../../components/AppInput.js";import n from"../../components/AppNumberInput.js";import r from"../../components/AppSegmented.js";import i from"../../components/AppSelect.js";import{DURATION_UNITS as a}from"../queryBuilder/queryTypes.js";import{isDuration as o,isRange as s,unitLabel as c}from"./queryDisplay.js";import{useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f=84,p=e=>Array.isArray(e)?e.map(String):[],m=e=>s(e)?e:{};function h({field:r,label:i,placeholder:a,value:o,disabled:s,invalid:c,onChange:l}){if(r.kind===`money`||r.kind===`number`){let e=r.kind===`money`,t=typeof o==`number`?e?o/100:o:null;return/* @__PURE__ */ d(`div`,{className:`d-flex align-items-center gap-2`,children:[e?/* @__PURE__ */ u(`span`,{className:`text-secondary`,children:`₹`}):null,/* @__PURE__ */ u(n,{controlOnly:!0,className:`w-100`,size:`sm`,"aria-label":i,"aria-invalid":c?!0:void 0,placeholder:a,value:t,precision:e?2:0,grouping:e?`indian`:`none`,disabled:s,onChange:t=>l(t===null?null:e?Math.round(t*100):t)})]})}return r.kind===`date`?/* @__PURE__ */ u(e,{className:`w-100`,size:`sm`,ariaLabel:i,"aria-invalid":c?!0:void 0,placeholder:a,value:typeof o==`string`?o:``,disabled:s,onChange:e=>l(e===``?null:e)}):/* @__PURE__ */ u(t,{controlOnly:!0,className:`w-100`,size:`sm`,"aria-label":i,"aria-invalid":c?!0:void 0,placeholder:a,value:typeof o==`string`?o:``,disabled:s,onChange:e=>l(e.target.value===``?null:e.target.value)})}function g({value:e,text:n,disabled:i,invalid:s,onChange:p}){let m=o(e)?e:null,[h,g]=l(m?.unit??`days`),_=m?.amount;return/* @__PURE__ */ d(`div`,{className:`d-flex gap-2`,children:[/* @__PURE__ */ u(`div`,{style:{width:f},children:/* @__PURE__ */ u(t,{controlOnly:!0,size:`sm`,inputMode:`numeric`,"aria-label":n.valueLabel,"aria-invalid":s?!0:void 0,value:_===void 0?``:String(_),disabled:i,onChange:e=>{let t=Number.parseInt(e.target.value,10);p(Number.isInteger(t)&&t>0?{amount:t,unit:h}:null)}})}),/* @__PURE__ */ u(r,{size:`sm`,label:n.unitLabel,labelVisible:!1,options:a.map(e=>({value:e,label:c(e,n)})),value:h,disabled:i,onChange:e=>{let t=a.find(t=>t===e);if(t===void 0)throw RangeError(`Unknown duration unit: ${e}`);g(t),_!==void 0&&p({amount:_,unit:t})}})]})}function _({field:e,operator:t,value:n,text:a,disabled:o,invalid:s=!1,onChange:c}){if(t===`isEmpty`)return null;if(t===`inLast`)return/* @__PURE__ */ u(g,{value:n,text:a,disabled:o,invalid:s,onChange:c});if(t===`between`){let t=m(n),r=e=>n=>c({...t,[e]:n});return/* @__PURE__ */ d(`div`,{className:`wui-query-range d-flex align-items-center gap-2 w-100`,children:[/* @__PURE__ */ u(h,{field:e,label:a.minPlaceholder,placeholder:a.minPlaceholder,value:t.from,disabled:o,invalid:s,onChange:r(`from`)}),/* @__PURE__ */ u(`span`,{className:`text-secondary small`,children:a.rangeJoinText}),/* @__PURE__ */ u(h,{field:e,label:a.maxPlaceholder,placeholder:a.maxPlaceholder,value:t.to,disabled:o,invalid:s,onChange:r(`to`)})]})}if(t===`isAnyOf`)return e.kind===`enum`?/* @__PURE__ */ u(i,{className:`w-100`,size:`sm`,density:`compact`,mode:`multiple`,"aria-label":a.valueLabel,"aria-invalid":s?!0:void 0,options:e.options??[],value:p(n),placeholder:a.multiPlaceholder,disabled:o,onChange:e=>c(e)}):/* @__PURE__ */ u(i,{className:`w-100`,size:`sm`,density:`compact`,mode:`tag`,"aria-label":a.valueLabel,"aria-invalid":s?!0:void 0,options:[],value:p(n),placeholder:a.multiPlaceholder,disabled:o,onChange:t=>c(e.kind===`number`?t.map(Number).filter(e=>Number.isFinite(e)):t)});if(e.kind===`enum`)return/* @__PURE__ */ u(i,{controlOnly:!0,className:`w-100`,size:`sm`,density:`compact`,"aria-label":a.valueLabel,"aria-invalid":s?!0:void 0,options:e.options??[],value:typeof n==`string`?n:``,placeholder:a.singlePlaceholder,disabled:o,onChange:e=>c(e===``?null:e)});if(e.kind===`boolean`)return/* @__PURE__ */ u(r,{size:`sm`,label:a.valueLabel,labelVisible:!1,options:[{value:`true`,label:a.yesLabel},{value:`false`,label:a.noLabel}],...typeof n==`boolean`?{value:String(n)}:{},disabled:o,onChange:e=>c(e===`true`)});let l=e.kind===`date`?a.datePlaceholder:e.kind===`text`?a.textPlaceholder:a.valueLabel;return/* @__PURE__ */ u(h,{field:e,label:a.valueLabel,placeholder:l,value:typeof n==`string`||typeof n==`number`?n:null,disabled:o,invalid:s,onChange:c})}export{_ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{groupIndianText as e}from"../indianGrouping.js";import{countConditions as t,countGroups as n,queryDepth as r}from"../queryBuilder/queryTree.js";import{pluralText as i}from"@webority/ui-elements/text";var a=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],o=/^(\d{4})-(\d{2})-(\d{2})$/;function s(e,t){return{is:e.operatorIs,isNot:e.operatorIsNot,isAnyOf:e.operatorIsAnyOf,contains:e.operatorContains,gt:t?e.operatorGtDate:e.operatorGt,lt:t?e.operatorLtDate:e.operatorLt,between:e.operatorBetween,inLast:e.operatorInLast,isEmpty:e.operatorIsEmpty}}function c(e,t,n){return s(n,t===`date`)[e]}function l(e,t){return{days:t.unitDays,weeks:t.unitWeeks,months:t.unitMonths}[e]}function u(e){let t=o.exec(e);if(t===null)return null;let n=a[Number(t[2])-1],r=Number(t[3]);return n===void 0||r<1||r>31?null:`${t[3]}-${n}-${t[1]}`}function d(t){if(!Number.isSafeInteger(t))return null;let n=Math.abs(t),r=e(String(Math.trunc(n/100))),i=n%100,a=i===0?``:`.${String(i).padStart(2,`0`)}`;return`${t<0?`-`:``}₹${r}${a}`}function f(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(`unit`in e)}function p(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`unit`in e}function m(e,t,n){if(e==null||e===``)return null;let r=t?.kind??`text`;if(r===`money`)return typeof e==`number`?d(e):null;if(r===`date`)return typeof e==`string`?u(e):null;if(r===`boolean`)return typeof e==`boolean`?e?n.yesLabel:n.noLabel:null;if(r===`enum`){let n=t?.options?.find(t=>t.value===e);return n===void 0?String(e):n.label}return typeof e==`number`?Number.isFinite(e)?String(e):null:typeof e==`string`?e:null}function h(e,t,n){let{operator:r,value:i}=e;if(r===`isEmpty`)return``;if(r===`inLast`)return!p(i)||!Number.isFinite(i.amount)?n.emptyValueText:`${i.amount} ${l(i.unit,n)}`;if(r===`between`){if(!f(i))return n.emptyValueText;let e=m(i.from,t,n),r=m(i.to,t,n);return e===null||r===null?n.emptyValueText:`${e} ${n.rangeJoinText} ${r}`}if(Array.isArray(i)){let e=i.map(e=>m(e,t,n));return e.length===0||e.includes(null)?n.emptyValueText:e.join(`, `)}return m(i,t,n)??n.emptyValueText}function g(e,t,n){return{field:t?.label??e.field,operator:c(e.operator,t?.kind??`text`,n),value:h(e,t,n)}}var _=e=>e.join(`.`);function v(e,t,n){if(`field`in e){let r=g(e,t.find(t=>t.key===e.field),n);return r.value===``?`${r.field} ${r.operator}`:`${r.field} ${r.operator} ${r.value}`}let r=e.op===`and`?n.andLabel:n.orLabel;return e.items.map(e=>`items`in e?`(${v(e,t,n)})`:v(e,t,n)).join(` ${r} `)}function y(e,a,o){let s=t(e);if(s===0)return o.emptySummaryText;if(r(e)>=3)return`${i(o,`conditionCountText`,s)} ${i(o,`groupCountText`,n(e)+1)}`;let c=e.op===`and`?o.andLabel:o.orLabel,l=e.items.some(e=>`items`in e)?`, ${c} `:` ${c} `;return e.items.map(e=>v(e,a,o)).join(l)}export{g as chipParts,v as clauseText,u as formatDate,d as formatMoney,p as isDuration,f as isRange,c as operatorLabel,_ as pathKey,y as querySummary,l as unitLabel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isImeSafeEnter as e}from"@webority/ui-elements/helpers";var t={type:`none`},n=(e,n)=>{switch(e){case`ArrowUp`:return n.side===`chosen`&&n.reorderable?{type:`nudge`,delta:-1}:t;case`ArrowDown`:return n.side===`chosen`&&n.reorderable?{type:`nudge`,delta:1}:t;case`Home`:return n.side===`chosen`&&n.reorderable?{type:`nudge`,delta:`first`}:t;case`End`:return n.side===`chosen`&&n.reorderable?{type:`nudge`,delta:`last`}:t;case`ArrowLeft`:return n.side===`chosen`?{type:`crossList`,to:`available`}:t;case`ArrowRight`:return n.side===`available`?{type:`crossList`,to:`chosen`}:t;case` `:case`Enter`:return{type:`drop`};case`Escape`:return{type:`cancelPickUp`};default:return t}},r=e=>{switch(e){case`ArrowDown`:return{type:`move`,to:`next`};case`ArrowUp`:return{type:`move`,to:`prev`};case`Home`:return{type:`move`,to:`first`};case`End`:return{type:`move`,to:`last`};default:return null}},i=(e,n)=>e.key===` `?n.rowDisabled?t:{type:`tick`}:e.altKey===!0&&e.key===`ArrowRight`?n.side===`available`&&!n.rowDisabled?{type:`transfer`,direction:`toChosen`}:t:e.altKey===!0&&e.key===`ArrowLeft`&&n.side===`chosen`&&!n.rowDisabled?{type:`transfer`,direction:`toAvailable`}:t,a=(n,r)=>e(n)?r.rowDisabled?t:{type:`transfer`,direction:r.side===`available`?`toChosen`:`toAvailable`}:n.key===` `?r.rowDisabled?t:{type:`pickUp`}:t;function o(o,s){return o.key===`Enter`&&!e(o)||(o.ctrlKey===!0||o.metaKey===!0)&&/^[a-z]$/i.test(o.key)?t:s.pickedUp?n(o.key,s):r(o.key)||(s.layout===`arrows`?i(o,s):a(o,s))}export{o as transferKeyAction};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=e=>[...new Set(e)],t=(e,t,n)=>Math.min(Math.max(e,t),n),n=e=>new Map(e.map(e=>[e.id,e]));function r(e,t){let r=n(e),i=/* @__PURE__ */ new Set,a=[];for(let e of t){let t=r.get(e);t&&!i.has(e)&&(i.add(e),a.push(t))}return{available:e.filter(e=>!i.has(e.id)),chosen:a}}function i(r,i,a,o){let s=n(a),c=e(r),l=new Set(c),u=[];for(let e of i){let t=s.get(e);t&&t.disabled!==!0&&!l.has(e)&&(l.add(e),u.push(e))}let d=o===void 0?c.length:t(o,0,c.length);return[...c.slice(0,d),...u,...c.slice(d)]}function a(t,n){let r=new Set(n);return e(t).filter(e=>!r.has(e))}function o(n,r,i){let a=e(n);if(!a.includes(r))return a;let o=a.filter(e=>e!==r);return o.splice(t(i,0,o.length),0,r),o}function s(e,t){let n=t.trim().toLowerCase();return n===``?[...e]:e.filter(e=>e.label.toLowerCase().includes(n)||(e.secondary??``).toLowerCase().includes(n))}function c(e,t,n,r){return t===`chosen`?`${e} added to Chosen, position ${n} of ${r}.`:`${e} removed from Chosen.`}export{s as filterItems,c as moveAnnouncement,a as moveToAvailable,i as moveToChosen,o as reorderChosen,r as splitItems};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../components/AppBadge.js";import t from"../../components/AppButton.js";import n from"../../components/AppEmptyState.js";import r from"../../components/AppSearch.js";import i from"../../components/AppSortableList.js";import a from"./TransferRow.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c(c){let{side:l,title:u,items:d,totalCount:f,query:p,searchable:m,rowAction:h,reorder:g,disabled:_}=c,v=p.trim()!==``;return/* @__PURE__ */ s(`div`,{className:`border rounded-3 bg-body d-flex flex-column`,style:{minWidth:0},children:[/* @__PURE__ */ s(`div`,{className:`d-flex align-items-center justify-content-between px-3 py-2 border-bottom`,children:[/* @__PURE__ */ s(`span`,{className:`fw-semibold`,children:[u,` `,/* @__PURE__ */ o(e,{tone:`neutral`,children:v?d.length:f})]}),/* @__PURE__ */ o(t,{variant:`ghost`,tone:`neutral`,size:`sm`,disabled:c.bulkDisabled||_,onClick:c.onBulk,children:c.bulkLabel})]}),m?/* @__PURE__ */ o(`div`,{className:`p-2`,children:/* @__PURE__ */ o(r,{ariaLabel:c.searchLabel,placeholder:c.searchPlaceholder,value:p,onChange:c.onQueryChange,disabled:_})}):null,/* @__PURE__ */ s(`div`,{className:`px-2 pb-2`,style:{minHeight:230},children:[g?/* @__PURE__ */ o(i,{ref:c.listRef,ariaLabel:c.listLabel,handle:!0,bordered:!1,disabled:_,items:d.map(e=>({id:e.id,label:e.label,disabled:e.disabled,content:/* @__PURE__ */ o(a,{item:e,side:l,action:h,disabled:_})})),onReorder:g.onReorder}):/* @__PURE__ */ o(`section`,{ref:c.listRef,role:`list`,"aria-label":c.listLabel,className:`d-flex flex-column`,children:d.map(e=>/* @__PURE__ */ o(`div`,{role:`listitem`,"data-id":e.id,"data-disabled":e.disabled?``:void 0,className:`d-flex align-items-center px-1 py-2 border-bottom`,children:/* @__PURE__ */ o(a,{item:e,side:l,action:h,disabled:_})},e.id))}),d.length===0?v?/* @__PURE__ */ o(`div`,{className:`small text-secondary p-3 text-center`,children:c.noMatchText}):/* @__PURE__ */ o(n,{size:`sm`,title:c.emptyTitle,description:c.emptyText}):null]}),c.hint===null?null:/* @__PURE__ */ o(`div`,{className:`small text-secondary px-3 pb-2`,children:c.hint})]})}export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../components/AppActionIcon.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";function r({item:r,side:i,action:a,disabled:o}){return/* @__PURE__ */ n(`span`,{className:`d-flex align-items-center justify-content-between w-100 gap-2`,children:[/* @__PURE__ */ n(`span`,{children:[r.label,r.secondary?/* @__PURE__ */ t(`span`,{className:`small text-secondary ms-1`,children:r.secondary}):null]}),/* @__PURE__ */ t(e,{icon:i===`available`?`plus`:`x`,label:a.label(r),disabled:o||r.disabled,onClick:()=>a.onAct(r.id),"data-transfer-row-action":r.id})]})}export{r as default};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, CSSProperties } from "react";
|
|
2
2
|
export type ChartType = "line" | "area" | "column" | "bar" | "donut" | "heatmap" | "calendar" | "funnel" | "gauge" | "waterfall" | "treemap" | "sankey" | "scatter" | "bubble" | "multiples";
|
|
3
3
|
export type ChartStack = "none" | "stacked" | "percent";
|
|
4
|
-
/** How a value prints. Every part is optional
|
|
4
|
+
/** How a value prints. Every part is optional except `currency` when the style is currency. */
|
|
5
5
|
export interface ChartFormat {
|
|
6
6
|
style?: "number" | "currency" | "percent" | "compact" | "duration" | "date" | undefined;
|
|
7
|
+
/** An ISO 4217 code such as "INR". Required when style is "currency". */
|
|
7
8
|
currency?: string | undefined;
|
|
8
9
|
unit?: "rupees" | "paise" | "ms" | "s" | "min" | "h" | undefined;
|
|
9
10
|
decimals?: number | undefined;
|
|
@@ -171,7 +172,7 @@ export interface AppChartProps extends Omit<ComponentPropsWithoutRef<"div">, "on
|
|
|
171
172
|
* title="Revenue by month"
|
|
172
173
|
* data={[{ month: "Aug", revenue: 4120000 }, { month: "Sep", revenue: 4630000 }]}
|
|
173
174
|
* x={{ key: "month" }}
|
|
174
|
-
* series={[{ key: "revenue", label: "Revenue", format: { style: "currency" } }]}
|
|
175
|
+
* series={[{ key: "revenue", label: "Revenue", format: { style: "currency", currency: "INR" } }]}
|
|
175
176
|
* onSelect={(detail) => console.log(detail.x, detail.value)}
|
|
176
177
|
* />
|
|
177
178
|
* ```
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ApiError } from "@webority/web-core/errors";
|
|
1
2
|
import { type ComponentPropsWithoutRef, type CSSProperties, type JSX, type ReactNode } from "react";
|
|
2
3
|
import type { AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
4
|
import { type AppRowActionEntry } from "./AppRowActions.tsx";
|
|
@@ -48,6 +49,7 @@ export interface AppDataTableColumn<Row> {
|
|
|
48
49
|
/** Renders this column's cell of a totals row in a tfoot. */
|
|
49
50
|
footer?: ((rows: readonly Row[]) => ReactNode) | undefined;
|
|
50
51
|
}
|
|
52
|
+
export type AppDataTableError = Pick<ApiError, "message">;
|
|
51
53
|
export interface AppDataTableProps<Row> extends Omit<ComponentPropsWithoutRef<"div">, "children"> {
|
|
52
54
|
/** The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align, grow and rowHeader. */
|
|
53
55
|
columns: readonly AppDataTableColumn<Row>[];
|
|
@@ -79,6 +81,10 @@ export interface AppDataTableProps<Row> extends Omit<ComponentPropsWithoutRef<"d
|
|
|
79
81
|
empty?: ReactNode | undefined;
|
|
80
82
|
/** Shown when there are no rows and sourceCount is unset or above 0. */
|
|
81
83
|
emptyFiltered?: ReactNode | undefined;
|
|
84
|
+
/** A failed fetch, with a message the error state shows. With no rows it replaces the empty state, with a retry button when onRetry is set. Rows present are replaced by it too. Ignored while loading. An ApiError from the web-core helpers fits. */
|
|
85
|
+
error?: AppDataTableError | null | undefined;
|
|
86
|
+
/** Adds a retry button to the error state. Without it the error shows no button. The table does not fetch; refetching is yours. */
|
|
87
|
+
onRetry?: (() => void) | undefined;
|
|
82
88
|
/** The number of rows before filtering. 0 means the source is empty and empty shows; unset means the table was filtered. */
|
|
83
89
|
sourceCount?: number | undefined;
|
|
84
90
|
/** The row's actions as a list: icon buttons from sm up, one "more" menu below it. Leave an action out of the list to hide it for a row. */
|
|
@@ -33,6 +33,7 @@ export interface AppEntryGridProps<Row> {
|
|
|
33
33
|
/** The key, as rowKey returns it, of the row the person is working on; that row is drawn as active. */
|
|
34
34
|
activeRowKey?: string | null | undefined;
|
|
35
35
|
onActiveRowChange?: ((rowKey: string) => void) | undefined;
|
|
36
|
+
/** Draws one cell. A row redraws only when its row object, active state, status or one of these callbacks changes, so keep the callbacks stable (useCallback) and replace only the edited row object. */
|
|
36
37
|
renderCell: (row: Row, column: AppEntryGridColumn<Row>, isActive: boolean) => ReactNode;
|
|
37
38
|
rowState?: ((row: Row) => AppEntryGridRowStatus) | undefined;
|
|
38
39
|
/** The failure shown under a failed row (role alert). */
|
|
@@ -135,6 +136,8 @@ export interface AppEntryGridProps<Row> {
|
|
|
135
136
|
* @default "Remove line"
|
|
136
137
|
*/
|
|
137
138
|
removeLineLabel?: string | undefined;
|
|
139
|
+
/** Caps the grid's height so the lines scroll inside it and the totals row stays in view. Set it when the grid sits in a dialog or page that scrolls. */
|
|
140
|
+
maxHeight?: string | number | undefined;
|
|
138
141
|
/**
|
|
139
142
|
* Extra class names added to the grid's root element.
|
|
140
143
|
* @default ""
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type GanttLayout, type GanttRow, type GanttState, type GanttZoom } from "@webority/ui-elements/helpers";
|
|
2
|
+
import type { ComponentPropsWithoutRef, CSSProperties, JSX, Ref } from "react";
|
|
3
|
+
export type { GanttLayout, GanttRow, GanttState, GanttStatus, GanttZoom } from "@webority/ui-elements/helpers";
|
|
4
|
+
export interface AppGanttProps extends Omit<ComponentPropsWithoutRef<"div">, "title" | "onSelect"> {
|
|
5
|
+
/** The tasks, flat: one entry per task. A row with no start is not drawn. A row with a start and no end is a milestone. A repeated key, an end before its start, a progress outside 0 to 100, or a dependsOn that names no row or loops throws, naming the key. */
|
|
6
|
+
rows: GanttRow[];
|
|
7
|
+
/** Names the plan for assistive technology and its exported files. */
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* How the plan is drawn. table puts a task table (task, owner, start, end, done) beside the bars. lanes prints each name on its bar and opens a details card for a chosen bar.
|
|
11
|
+
* @default "table"
|
|
12
|
+
*/
|
|
13
|
+
layout?: GanttLayout | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The time scale: day, week or month. Controlled when given.
|
|
16
|
+
* @default "week"
|
|
17
|
+
*/
|
|
18
|
+
zoom?: GanttZoom | undefined;
|
|
19
|
+
onZoomChange?: ((zoom: GanttZoom) => void) | undefined;
|
|
20
|
+
/** First day of the window, YYYY-MM-DD. Absent: the window the zoom picks around today. Controlled when given. */
|
|
21
|
+
from?: string | undefined;
|
|
22
|
+
onFromChange?: ((from: string) => void) | undefined;
|
|
23
|
+
/** Names of the phase lanes that are folded. Controlled when given. */
|
|
24
|
+
folded?: string[] | undefined;
|
|
25
|
+
onFoldedChange?: ((folded: string[]) => void) | undefined;
|
|
26
|
+
/** Key of the chosen row. The table layout highlights it; the lanes layout opens its details card. null chooses none. Controlled when given. */
|
|
27
|
+
selected?: string | null | undefined;
|
|
28
|
+
onSelectedChange?: ((key: string | null) => void) | undefined;
|
|
29
|
+
/** Today, YYYY-MM-DD. Absent: today in Asia/Kolkata. */
|
|
30
|
+
today?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* ready draws the plan; loading, empty and error draw their own message.
|
|
33
|
+
* @default "ready"
|
|
34
|
+
*/
|
|
35
|
+
state?: GanttState | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The plan is loading. Wins over state.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
loading?: boolean | undefined;
|
|
41
|
+
/** The curated message to show when the plan failed. Wins over loading and state. */
|
|
42
|
+
error?: string | undefined;
|
|
43
|
+
/** The message when there are no tasks. Defaults to the built-in copy. */
|
|
44
|
+
emptyText?: string | undefined;
|
|
45
|
+
/** The message under error when none is given. Defaults to the built-in copy. */
|
|
46
|
+
errorText?: string | undefined;
|
|
47
|
+
/** The text read aloud while the plan loads. Defaults to the built-in copy. */
|
|
48
|
+
loadingText?: string | undefined;
|
|
49
|
+
onAddTask?: (() => void) | undefined;
|
|
50
|
+
onRetry?: (() => void) | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Extra class names on the plan.
|
|
53
|
+
* @default ""
|
|
54
|
+
*/
|
|
55
|
+
className?: string | undefined;
|
|
56
|
+
style?: CSSProperties | undefined;
|
|
57
|
+
/** Receives the `<wui-gantt>` element. */
|
|
58
|
+
ref?: Ref<HTMLElement> | undefined;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A project plan drawn as bars on a time scale: each task's bar runs from its start to its end, a
|
|
62
|
+
* milestone is a dated point, rows fold into phase lanes, and a finish-to-start dependency is
|
|
63
|
+
* drawn between rows. The shared `<wui-gantt>` element draws it from one spec, the same one the
|
|
64
|
+
* Razor `<app-gantt>` writes, so the two surfaces cannot drift.
|
|
65
|
+
*
|
|
66
|
+
* `layout` picks the task table beside the bars (the default) or the labelled lanes with a details card.
|
|
67
|
+
*
|
|
68
|
+
* Zoom, window, folded phases and the selected row are controlled when their prop is given; when it
|
|
69
|
+
* is not, the component keeps that piece itself. The component never writes the URL: a page that
|
|
70
|
+
* wants the view in the address bar reads the `on*Change` callbacks and sets the prop.
|
|
71
|
+
*
|
|
72
|
+
* A row that breaks the rules (a repeated key, an end before its start, a progress outside 0 to 100,
|
|
73
|
+
* a dependency on a missing row or a loop) throws, naming the row's key.
|
|
74
|
+
*/
|
|
75
|
+
export default function AppGantt(props: AppGanttProps): JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface AppIdleTimeoutDialogProps {
|
|
3
|
+
/** True while the timer is in its warning phase. The dialog draws only while open. */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Time left before sign-out, in milliseconds, from useIdleTimeout. Drawn as minutes and seconds. */
|
|
6
|
+
remainingMs: number;
|
|
7
|
+
onStay: () => void;
|
|
8
|
+
onSignOut: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Replaces the built-in English text, for other languages.
|
|
11
|
+
* @default "Are you still there?"
|
|
12
|
+
*/
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* {time} is filled with the time left. Replaces the built-in English text, for other languages.
|
|
16
|
+
* @default "You will be signed out in {time} because there has been no activity."
|
|
17
|
+
*/
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Replaces the built-in English text, for other languages.
|
|
21
|
+
* @default "Stay signed in"
|
|
22
|
+
*/
|
|
23
|
+
stayLabel?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Replaces the built-in English text, for other languages.
|
|
26
|
+
* @default "Sign out"
|
|
27
|
+
*/
|
|
28
|
+
signOutLabel?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Extra classes on the dialog.
|
|
31
|
+
* @default ""
|
|
32
|
+
*/
|
|
33
|
+
className?: string | undefined;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The idle sign-out warning: a confirm dialog that says the person will be signed out for lack
|
|
37
|
+
* of activity, with Stay signed in and Sign out. Presentational: the page takes `open` and
|
|
38
|
+
* `remainingMs` from `useIdleTimeout` and answers Stay through its `stayActive()`.
|
|
39
|
+
*
|
|
40
|
+
* Built on `AppConfirmDialog`. It never closes on Escape or a backdrop click, because closing it
|
|
41
|
+
* is a decision the person has to make.
|
|
42
|
+
*/
|
|
43
|
+
export default function AppIdleTimeoutDialog(props: AppIdleTimeoutDialogProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { PagedListPaging } from "@webority/web-core/query";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactElement } from "react";
|
|
3
|
+
export interface AppLoadMoreProps extends Omit<ComponentPropsWithoutRef<"div">, "children"> {
|
|
4
|
+
/** The paging object that useInfiniteDataState returns: hasMore, loadingMore, errorMore, loadMore and retryMore. The component only reads it. */
|
|
5
|
+
paging: PagedListPaging;
|
|
6
|
+
/**
|
|
7
|
+
* Loads the next page when the footer scrolls into view. The Load more button stays for keyboard users.
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
infinite?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Extra classes on the wrapper.
|
|
13
|
+
* @default ""
|
|
14
|
+
*/
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Replaces the built-in English text, for other languages.
|
|
18
|
+
* @default "Load more"
|
|
19
|
+
*/
|
|
20
|
+
loadMoreLabel?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Replaces the built-in English text, for other languages.
|
|
23
|
+
* @default "Loading more"
|
|
24
|
+
*/
|
|
25
|
+
loadingLabel?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Replaces the built-in English text, for other languages.
|
|
28
|
+
* @default "Could not load more"
|
|
29
|
+
*/
|
|
30
|
+
failedText?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Replaces the built-in English text, for other languages.
|
|
33
|
+
* @default "Try again"
|
|
34
|
+
*/
|
|
35
|
+
retryLabel?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Replaces the built-in English text, for other languages.
|
|
38
|
+
* @default "You are all caught up."
|
|
39
|
+
*/
|
|
40
|
+
finishedText?: string | undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The footer of a long feed: a Load more button, a loading state, a failed state with a retry and a
|
|
44
|
+
* finished state. React-only by design: it runs on client fetch state, which a server-rendered page
|
|
45
|
+
* does not have.
|
|
46
|
+
*/
|
|
47
|
+
export default function AppLoadMore(props: AppLoadMoreProps): ReactElement;
|
|
@@ -55,6 +55,8 @@ export interface AppPopoverProps extends Omit<ComponentPropsWithoutRef<"div">, "
|
|
|
55
55
|
* AppDropdown (a flat action menu), and AppInfoTip (a hover "?" help popover). Renders
|
|
56
56
|
* `<wui-popover>`, which Razor `<app-popover>` renders too, so both surfaces share one panel.
|
|
57
57
|
*
|
|
58
|
+
* The panel body stays mounted while the popover is closed, so an effect or fetch in `children` runs at page load, not on open, and form fields inside keep their values. To run work on open, hold the open state from `onOpenChange` and render the body only while open.
|
|
59
|
+
*
|
|
58
60
|
* @param trigger The element the panel opens from.
|
|
59
61
|
* @param children The panel body.
|
|
60
62
|
* @param title
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type QueryBuilderText } from "@webority/ui-elements/text";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { type QueryField, type QueryGroup } from "../lib/queryBuilder/queryTypes.ts";
|
|
4
|
+
export type AppQueryBuilderField = QueryField;
|
|
5
|
+
export interface AppQueryBuilderProps extends Partial<QueryBuilderText>, Omit<ComponentPropsWithoutRef<"div">, "defaultValue" | "onChange"> {
|
|
6
|
+
/** The fields a condition can name. Keys are unique. */
|
|
7
|
+
fields: AppQueryBuilderField[];
|
|
8
|
+
/** The query, controlled: a group { op: and | or, items } of conditions and nested groups. */
|
|
9
|
+
value?: QueryGroup | undefined;
|
|
10
|
+
/** The starting query when value is not given. Same shape as value. */
|
|
11
|
+
defaultValue?: QueryGroup | undefined;
|
|
12
|
+
/** Receives the applied rule, without incomplete conditions, when the person applies the panel, removes a chip or clears all, and only when the rule changed. */
|
|
13
|
+
onChange?: ((query: QueryGroup) => void) | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The deepest group level allowed, from 1 to 3. A larger value is capped at 3.
|
|
16
|
+
* @default 3
|
|
17
|
+
*/
|
|
18
|
+
maxDepth?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Stops every edit and keeps the panel closed.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean | undefined;
|
|
24
|
+
/** Names the group that holds the Filters button and the chips. Defaults to the Filters text. */
|
|
25
|
+
ariaLabel?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Extra classes on the wrapper.
|
|
28
|
+
* @default ""
|
|
29
|
+
*/
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Builds a rule of conditions and nested match-all or match-any groups in a panel. Nothing is reported until the
|
|
34
|
+
* person applies it.
|
|
35
|
+
*/
|
|
36
|
+
declare const AppQueryBuilder: import("react").ForwardRefExoticComponent<AppQueryBuilderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export default AppQueryBuilder;
|