@thebase/ui 0.0.11 → 0.0.12
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/CHANGELOG.md +9 -0
- package/dist/baseui.esm.js +9 -9
- package/dist/baseui.min.css +1 -1
- package/dist/baseui.min.js +10 -10
- package/dist/baseui.registry.json +7 -6
- package/dist/baseui.templates.xml +204 -222
- package/docs/components/tabs.md +34 -1
- package/docs/components/toast.md +23 -7
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
</t>
|
|
12
12
|
<t t-name="AlertDialog" t-call="baseui.AlertDialog"/>
|
|
13
13
|
<t t-name="baseui.AlertDialogTrigger">
|
|
14
|
-
<
|
|
14
|
+
<Button variant="'outline'" attrs="attrs" className="'bu-alert-dialog-trigger'" style="props.style" onClick="() => this.onClick()">
|
|
15
15
|
<t t-slot="default"/>
|
|
16
|
-
</
|
|
16
|
+
</Button>
|
|
17
17
|
</t>
|
|
18
18
|
<t t-name="AlertDialogTrigger" t-call="baseui.AlertDialogTrigger"/>
|
|
19
19
|
<t t-name="baseui.AlertDialogContent">
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
<t t-name="AlertDialogDescription" t-call="baseui.AlertDialogDescription"/>
|
|
57
57
|
|
|
58
58
|
<t t-name="baseui.AlertDialogCancel">
|
|
59
|
-
<
|
|
59
|
+
<Button variant="'outline'" attrs="attrs" className="'bu-alert-dialog-cancel'" style="props.style" onClick="() => this.onClick()">
|
|
60
60
|
<t t-slot="default"/>
|
|
61
|
-
</
|
|
61
|
+
</Button>
|
|
62
62
|
</t>
|
|
63
63
|
<t t-name="AlertDialogCancel" t-call="baseui.AlertDialogCancel"/>
|
|
64
64
|
<t t-name="baseui.AlertDialogAction">
|
|
65
|
-
<
|
|
65
|
+
<Button attrs="attrs" className="'bu-alert-dialog-action'" style="props.style" onClick="() => this.onClick()">
|
|
66
66
|
<t t-slot="default"/>
|
|
67
|
-
</
|
|
67
|
+
</Button>
|
|
68
68
|
</t>
|
|
69
69
|
<t t-name="AlertDialogAction" t-call="baseui.AlertDialogAction"/>
|
|
70
70
|
<t t-name="baseui.alert">
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<t t-name="baseui.Alert">
|
|
74
74
|
<div data-slot="alert" t-att-class="classNames" t-att-style="props.style" role="alert" t-ref="root">
|
|
75
75
|
<t t-slot="default"/>
|
|
76
|
-
<
|
|
76
|
+
<Button t-if="props.dismissible" unstyled="true" className="'btn-close'" attrs="{ 'data-bs-dismiss': 'alert', 'aria-label': 'Close' }"/>
|
|
77
77
|
</div>
|
|
78
78
|
</t>
|
|
79
79
|
<t t-name="Alert" t-call="baseui.Alert"/>
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
<t t-name="AccordionItem" t-call="baseui.AccordionItem"/>
|
|
105
105
|
<t t-name="baseui.AccordionTrigger">
|
|
106
106
|
<div class="bu-accordion-header" t-att-style="props.style">
|
|
107
|
-
<
|
|
107
|
+
<Button unstyled="true" className="'bu-accordion-trigger'" attrs="triggerAttrs" onClick="() => this.onClick()">
|
|
108
108
|
<t t-slot="default"/>
|
|
109
109
|
<Icon name="'chevron-down'" className="'bu-accordion-trigger-icon'"/>
|
|
110
|
-
</
|
|
110
|
+
</Button>
|
|
111
111
|
</div>
|
|
112
112
|
</t>
|
|
113
113
|
<t t-name="AccordionTrigger" t-call="baseui.AccordionTrigger"/>
|
|
@@ -156,37 +156,30 @@
|
|
|
156
156
|
<div t-att-class="'bu-attachment-actions' + (props.className ? ' ' + props.className : '')" data-slot="attachment-actions" t-att-style="props.style"><t t-slot="default"/></div>
|
|
157
157
|
</t>
|
|
158
158
|
<t t-name="baseui.AttachmentAction">
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
159
|
+
<Button
|
|
160
|
+
variant="variant"
|
|
161
|
+
size="size"
|
|
162
|
+
type="props.type || 'button'"
|
|
163
|
+
disabled="props.disabled"
|
|
164
|
+
label="props.label"
|
|
165
|
+
className="className"
|
|
166
|
+
aria-label="ariaLabel"
|
|
167
|
+
style="props.style"
|
|
168
|
+
attrs="{'data-slot': 'attachment-action'}"
|
|
169
|
+
onClick="(event) => this.onClick(event)"
|
|
170
|
+
><t t-slot="default"/></Button>
|
|
168
171
|
</t>
|
|
169
172
|
<t t-name="baseui.AttachmentTrigger">
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
data-slot
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
></a>
|
|
181
|
-
<button
|
|
182
|
-
t-else=""
|
|
183
|
-
t-att-class="classNames"
|
|
184
|
-
t-att-type="props.type || 'button'"
|
|
185
|
-
t-att-aria-label="ariaLabel"
|
|
186
|
-
data-slot="attachment-trigger"
|
|
187
|
-
t-att-style="props.style"
|
|
188
|
-
t-on-click="onClick"
|
|
189
|
-
></button>
|
|
173
|
+
<Button
|
|
174
|
+
unstyled="true"
|
|
175
|
+
href="props.href"
|
|
176
|
+
type="props.type || 'button'"
|
|
177
|
+
className="classNames"
|
|
178
|
+
aria-label="ariaLabel"
|
|
179
|
+
style="props.style"
|
|
180
|
+
attrs="{'data-slot': 'attachment-trigger', 'target': props.target, 'rel': props.rel || (props.target === '_blank' ? 'noreferrer' : undefined)}"
|
|
181
|
+
onClick="(event) => this.onClick(event)"
|
|
182
|
+
/>
|
|
190
183
|
</t>
|
|
191
184
|
<t t-name="baseui.AttachmentGroup">
|
|
192
185
|
<div t-att-class="classNames" data-slot="attachment-group" t-att-style="props.style"><t t-slot="default"/></div>
|
|
@@ -409,6 +402,7 @@
|
|
|
409
402
|
<t t-name="baseui.Button">
|
|
410
403
|
<a
|
|
411
404
|
t-if="props.href"
|
|
405
|
+
t-ref="root"
|
|
412
406
|
t-att-class="classNames"
|
|
413
407
|
t-att-href="props.href"
|
|
414
408
|
data-slot="button"
|
|
@@ -421,6 +415,7 @@
|
|
|
421
415
|
t-att-data-icon-only="isIconOnly ? 'true' : undefined"
|
|
422
416
|
t-att-data-icon="props.icon ? 'inline-' + iconPosition : undefined"
|
|
423
417
|
t-att-style="props.style"
|
|
418
|
+
t-att="props.attrs || {}"
|
|
424
419
|
t-on-click="onClick"
|
|
425
420
|
>
|
|
426
421
|
<Icon t-if="props.icon && iconPosition !== 'end'" name="props.icon"/>
|
|
@@ -430,6 +425,7 @@
|
|
|
430
425
|
</a>
|
|
431
426
|
<button
|
|
432
427
|
t-else=""
|
|
428
|
+
t-ref="root"
|
|
433
429
|
t-att-class="classNames"
|
|
434
430
|
t-att-type="props.type || 'button'"
|
|
435
431
|
data-slot="button"
|
|
@@ -442,6 +438,7 @@
|
|
|
442
438
|
t-att-data-icon-only="isIconOnly ? 'true' : undefined"
|
|
443
439
|
t-att-data-icon="props.icon ? 'inline-' + iconPosition : undefined"
|
|
444
440
|
t-att-style="props.style"
|
|
441
|
+
t-att="props.attrs || {}"
|
|
445
442
|
t-on-click="onClick"
|
|
446
443
|
>
|
|
447
444
|
<Icon t-if="props.icon && iconPosition !== 'end'" name="props.icon"/>
|
|
@@ -489,14 +486,14 @@
|
|
|
489
486
|
<div class="bu-calendar__grid">
|
|
490
487
|
<t t-foreach="days" t-as="cell" t-key="cell_index">
|
|
491
488
|
<span t-if="!cell"/>
|
|
492
|
-
<
|
|
489
|
+
<Button
|
|
493
490
|
t-else=""
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
491
|
+
unstyled="true"
|
|
492
|
+
attrs="{ 'aria-pressed': cell.selected ? 'true' : 'false' }"
|
|
493
|
+
onClick="() => this.onSelect(cell.value)"
|
|
497
494
|
>
|
|
498
495
|
<t t-esc="cell.day"/>
|
|
499
|
-
</
|
|
496
|
+
</Button>
|
|
500
497
|
</t>
|
|
501
498
|
</div>
|
|
502
499
|
</div>
|
|
@@ -559,11 +556,11 @@
|
|
|
559
556
|
</t>
|
|
560
557
|
<t t-name="CarouselSlide" t-call="baseui.CarouselSlide"/>
|
|
561
558
|
<t t-name="baseui.CarouselPrevious">
|
|
562
|
-
<
|
|
559
|
+
<Button unstyled="true" className="'bu-carousel-prev'" style="props.style" onClick="() => this.onClick()"><t t-slot="default"/></Button>
|
|
563
560
|
</t>
|
|
564
561
|
<t t-name="CarouselPrevious" t-call="baseui.CarouselPrevious"/>
|
|
565
562
|
<t t-name="baseui.CarouselNext">
|
|
566
|
-
<
|
|
563
|
+
<Button unstyled="true" className="'bu-carousel-next'" style="props.style" onClick="() => this.onClick()"><t t-slot="default"/></Button>
|
|
567
564
|
</t>
|
|
568
565
|
<t t-name="CarouselNext" t-call="baseui.CarouselNext"/>
|
|
569
566
|
<t t-name="baseui.chart">
|
|
@@ -597,20 +594,19 @@
|
|
|
597
594
|
</t>
|
|
598
595
|
<t t-name="Checkbox" t-call="baseui.Checkbox"/>
|
|
599
596
|
<t t-name="baseui.ClipboardButton">
|
|
600
|
-
<
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
597
|
+
<Button
|
|
598
|
+
unstyled="true"
|
|
599
|
+
className="classNames"
|
|
600
|
+
style="props.style"
|
|
601
|
+
disabled="props.disabled"
|
|
602
|
+
ariaLabel="ariaLabel"
|
|
603
|
+
attrs="attrs"
|
|
604
|
+
icon="iconName"
|
|
605
|
+
label="label"
|
|
606
|
+
onClick="(event) => this.onClick(event)"
|
|
609
607
|
>
|
|
610
|
-
<
|
|
611
|
-
|
|
612
|
-
<t t-else="" t-slot="default"/>
|
|
613
|
-
</button>
|
|
608
|
+
<t t-slot="default"/>
|
|
609
|
+
</Button>
|
|
614
610
|
</t>
|
|
615
611
|
<t t-name="ClipboardButton" t-call="baseui.ClipboardButton"/>
|
|
616
612
|
<t t-name="baseui.collapsible">
|
|
@@ -623,9 +619,9 @@
|
|
|
623
619
|
</t>
|
|
624
620
|
<t t-name="Collapsible" t-call="baseui.Collapsible"/>
|
|
625
621
|
<t t-name="baseui.CollapsibleTrigger">
|
|
626
|
-
<
|
|
622
|
+
<Button unstyled="true" className="'bu-collapsible-trigger'" style="props.style" attrs="attrs" onClick="() => this.onClick()">
|
|
627
623
|
<t t-slot="default"/>
|
|
628
|
-
</
|
|
624
|
+
</Button>
|
|
629
625
|
</t>
|
|
630
626
|
<t t-name="CollapsibleTrigger" t-call="baseui.CollapsibleTrigger"/>
|
|
631
627
|
<t t-name="baseui.CollapsibleContent">
|
|
@@ -733,15 +729,15 @@
|
|
|
733
729
|
t-att-class="column.align === 'right' ? 'text-end' : column.align === 'center' ? 'text-center' : ''"
|
|
734
730
|
t-att-b-att-sort="state.sortKey === column.key ? (state.sortDir === 1 ? 'asc' : 'desc') : undefined"
|
|
735
731
|
>
|
|
736
|
-
<
|
|
732
|
+
<Button
|
|
737
733
|
t-if="isColumnSortable(column)"
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
734
|
+
unstyled="true"
|
|
735
|
+
className="'bu-data-table__header-button'"
|
|
736
|
+
onClick="() => this.sortBy(column.key)"
|
|
741
737
|
>
|
|
742
738
|
<span><t t-esc="columnLabel(column)"/></span>
|
|
743
739
|
<span class="bu-data-table__sort-icon" t-att-data-icon="sortIcon(column.key)" aria-hidden="true"></span>
|
|
744
|
-
</
|
|
740
|
+
</Button>
|
|
745
741
|
<t t-else="" t-esc="columnLabel(column)"/>
|
|
746
742
|
</th>
|
|
747
743
|
<th t-if="rowActions.length" class="bu-data-table__actions-cell"><span class="visually-hidden">Actions</span></th>
|
|
@@ -842,17 +838,17 @@
|
|
|
842
838
|
</div>
|
|
843
839
|
</div>
|
|
844
840
|
<div t-if="openRowAction" t-portal="'body'" class="bu-data-table__actions-menu" role="menu" data-state="open" t-att-style="state.actionMenuStyle" t-ref="actionsMenu">
|
|
845
|
-
<
|
|
841
|
+
<Button
|
|
846
842
|
t-foreach="rowActions"
|
|
847
843
|
t-as="action"
|
|
848
844
|
t-key="action.label"
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
845
|
+
unstyled="true"
|
|
846
|
+
className="'bu-data-table__actions-item'"
|
|
847
|
+
attrs="{ role: 'menuitem' }"
|
|
848
|
+
onClick="() => this.onAction(action, openRowAction.row, openRowAction.index)"
|
|
853
849
|
>
|
|
854
850
|
<t t-esc="action.label"/>
|
|
855
|
-
</
|
|
851
|
+
</Button>
|
|
856
852
|
</div>
|
|
857
853
|
</div>
|
|
858
854
|
</t>
|
|
@@ -927,10 +923,17 @@
|
|
|
927
923
|
<div class="modal-dialog modal-dialog-centered">
|
|
928
924
|
<div t-att-class="'modal-content bu-dialog-panel' + (props.className ? ' ' + props.className : '')" data-slot="dialog-content">
|
|
929
925
|
<t t-slot="default"/>
|
|
930
|
-
<
|
|
931
|
-
|
|
926
|
+
<Button
|
|
927
|
+
t-if="showCloseButton"
|
|
928
|
+
variant="'ghost'"
|
|
929
|
+
size="'icon-sm'"
|
|
930
|
+
className="'bu-dialog-close bu-dialog-close-control'"
|
|
931
|
+
aria-label="'Close'"
|
|
932
|
+
icon="'x'"
|
|
933
|
+
attrs="{'data-slot': 'dialog-close', 'data-bs-dismiss': 'modal'}"
|
|
934
|
+
>
|
|
932
935
|
<span class="visually-hidden">Close</span>
|
|
933
|
-
</
|
|
936
|
+
</Button>
|
|
934
937
|
</div>
|
|
935
938
|
</div>
|
|
936
939
|
</div>
|
|
@@ -966,9 +969,14 @@
|
|
|
966
969
|
<t t-name="DialogDescription" t-call="baseui.DialogDescription"/>
|
|
967
970
|
|
|
968
971
|
<t t-name="baseui.DialogClose">
|
|
969
|
-
<
|
|
972
|
+
<Button
|
|
973
|
+
variant="'outline'"
|
|
974
|
+
className="'bu-dialog-close' + (props.className ? ' ' + props.className : '')"
|
|
975
|
+
style="props.style"
|
|
976
|
+
attrs="{'data-slot': 'dialog-close', 'data-bs-dismiss': 'modal'}"
|
|
977
|
+
>
|
|
970
978
|
<t t-slot="default"/>
|
|
971
|
-
</
|
|
979
|
+
</Button>
|
|
972
980
|
</t>
|
|
973
981
|
<t t-name="DialogClose" t-call="baseui.DialogClose"/>
|
|
974
982
|
<t t-name="baseui.direction"><div b-ui="direction"><t t-esc="props.content"/></div></t>
|
|
@@ -980,7 +988,7 @@
|
|
|
980
988
|
<t t-name="baseui.Drawer"><t t-slot="default"/></t>
|
|
981
989
|
<t t-name="Drawer" t-call="baseui.Drawer"/>
|
|
982
990
|
<t t-name="baseui.DrawerTrigger">
|
|
983
|
-
<
|
|
991
|
+
<Button variant="'outline'" className="'bu-drawer-trigger'" style="props.style" onClick="() => this.onClick()"><t t-slot="default"/></Button>
|
|
984
992
|
</t>
|
|
985
993
|
<t t-name="DrawerTrigger" t-call="baseui.DrawerTrigger"/>
|
|
986
994
|
<t t-name="baseui.DrawerContent">
|
|
@@ -1000,7 +1008,7 @@
|
|
|
1000
1008
|
<t t-name="baseui.DrawerDescription"><p class="bu-drawer-description" t-att-style="props.style"><t t-slot="default"/></p></t>
|
|
1001
1009
|
<t t-name="DrawerDescription" t-call="baseui.DrawerDescription"/>
|
|
1002
1010
|
<t t-name="baseui.DrawerClose">
|
|
1003
|
-
<
|
|
1011
|
+
<Button variant="'outline'" attrs="attrs" className="'bu-drawer-close'" style="props.style"><t t-slot="default"/></Button>
|
|
1004
1012
|
</t>
|
|
1005
1013
|
<t t-name="DrawerClose" t-call="baseui.DrawerClose"/>
|
|
1006
1014
|
<t t-name="baseui.dropdown-menu">
|
|
@@ -1016,9 +1024,9 @@
|
|
|
1016
1024
|
</t>
|
|
1017
1025
|
<t t-name="DropdownMenu" t-call="baseui.DropdownMenu"/>
|
|
1018
1026
|
<t t-name="baseui.DropdownMenuTrigger">
|
|
1019
|
-
<
|
|
1027
|
+
<Button unstyled="true" getRef="getRef" className="classNames" style="props.style" attrs="attrs" onClick="() => this.onClick()">
|
|
1020
1028
|
<t t-slot="default"/>
|
|
1021
|
-
</
|
|
1029
|
+
</Button>
|
|
1022
1030
|
</t>
|
|
1023
1031
|
<t t-name="DropdownMenuTrigger" t-call="baseui.DropdownMenuTrigger"/>
|
|
1024
1032
|
<t t-name="baseui.DropdownMenuContent">
|
|
@@ -1339,16 +1347,16 @@
|
|
|
1339
1347
|
><t t-slot="default"/></div>
|
|
1340
1348
|
</t>
|
|
1341
1349
|
<t t-name="baseui.InputGroupButton">
|
|
1342
|
-
<
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
><t t-
|
|
1350
|
+
<Button
|
|
1351
|
+
unstyled="true"
|
|
1352
|
+
className="classNames"
|
|
1353
|
+
style="props.style"
|
|
1354
|
+
type="props.type"
|
|
1355
|
+
disabled="props.disabled"
|
|
1356
|
+
label="props.label"
|
|
1357
|
+
attrs="buttonAttrs"
|
|
1358
|
+
onClick="(event) => this.onClick(event)"
|
|
1359
|
+
><t t-slot="default"/></Button>
|
|
1352
1360
|
</t>
|
|
1353
1361
|
<t t-name="baseui.InputGroupText">
|
|
1354
1362
|
<span t-att-class="classNames" t-att-style="props.style" data-slot="input-group-text"><t t-slot="default"/></span>
|
|
@@ -1623,9 +1631,9 @@
|
|
|
1623
1631
|
</t>
|
|
1624
1632
|
<t t-name="Popover" t-call="baseui.Popover"/>
|
|
1625
1633
|
<t t-name="baseui.PopoverTrigger">
|
|
1626
|
-
<
|
|
1634
|
+
<Button unstyled="true" getRef="getRef" className="'btn bu-button btn-outline-secondary bu-popover-trigger'" attrs="attrs" style="props.style" onClick="() => this.onClick()">
|
|
1627
1635
|
<t t-slot="default"/>
|
|
1628
|
-
</
|
|
1636
|
+
</Button>
|
|
1629
1637
|
</t>
|
|
1630
1638
|
<t t-name="PopoverTrigger" t-call="baseui.PopoverTrigger"/>
|
|
1631
1639
|
<!-- Rendered but never shown: Owl keeps this reactive so PopoverTrigger
|
|
@@ -1663,7 +1671,7 @@
|
|
|
1663
1671
|
<t t-name="baseui.Pwa"><t t-slot="default"/></t>
|
|
1664
1672
|
<t t-name="Pwa" t-call="baseui.Pwa"/>
|
|
1665
1673
|
<t t-name="baseui.PwaTrigger">
|
|
1666
|
-
<
|
|
1674
|
+
<Button variant="'default'" className="'bu-pwa-trigger'" style="props.style" onClick="() => this.onClick()"><t t-slot="default"/></Button>
|
|
1667
1675
|
</t>
|
|
1668
1676
|
<t t-name="PwaTrigger" t-call="baseui.PwaTrigger"/>
|
|
1669
1677
|
<t t-name="baseui.PwaContent">
|
|
@@ -1703,7 +1711,7 @@
|
|
|
1703
1711
|
<t t-name="baseui.PwaFooter"><div class="bu-pwa-footer" t-att-style="props.style"><t t-slot="default"/></div></t>
|
|
1704
1712
|
<t t-name="PwaFooter" t-call="baseui.PwaFooter"/>
|
|
1705
1713
|
<t t-name="baseui.PwaClose">
|
|
1706
|
-
<
|
|
1714
|
+
<Button variant="'outline'" className="'bu-pwa-close'" style="props.style" onClick="() => this.onClick()"><t t-slot="default"/></Button>
|
|
1707
1715
|
</t>
|
|
1708
1716
|
<t t-name="PwaClose" t-call="baseui.PwaClose"/>
|
|
1709
1717
|
<t t-name="baseui.questionnaire">
|
|
@@ -1720,15 +1728,15 @@
|
|
|
1720
1728
|
</t>
|
|
1721
1729
|
<t t-name="QuestionnaireStep" t-call="baseui.QuestionnaireStep"/>
|
|
1722
1730
|
<t t-name="baseui.QuestionnairePrevious">
|
|
1723
|
-
<
|
|
1731
|
+
<Button unstyled="true" className="'bu-questionnaire-prev'" style="props.style" disabled="disabled" onClick="() => this.onClick()">
|
|
1724
1732
|
<t t-slot="default"/>
|
|
1725
|
-
</
|
|
1733
|
+
</Button>
|
|
1726
1734
|
</t>
|
|
1727
1735
|
<t t-name="QuestionnairePrevious" t-call="baseui.QuestionnairePrevious"/>
|
|
1728
1736
|
<t t-name="baseui.QuestionnaireNext">
|
|
1729
|
-
<
|
|
1737
|
+
<Button unstyled="true" className="'bu-questionnaire-next'" style="props.style" onClick="() => this.onClick()">
|
|
1730
1738
|
<t t-slot="default"/>
|
|
1731
|
-
</
|
|
1739
|
+
</Button>
|
|
1732
1740
|
</t>
|
|
1733
1741
|
<t t-name="QuestionnaireNext" t-call="baseui.QuestionnaireNext"/>
|
|
1734
1742
|
<t t-name="baseui.radio-group">
|
|
@@ -1784,16 +1792,15 @@
|
|
|
1784
1792
|
</t>
|
|
1785
1793
|
<t t-name="Select" t-call="baseui.Select"/>
|
|
1786
1794
|
<t t-name="baseui.SelectTrigger">
|
|
1787
|
-
<
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
t-on-click="onClick"
|
|
1795
|
+
<Button
|
|
1796
|
+
unstyled="true"
|
|
1797
|
+
className="'bu-select-trigger'"
|
|
1798
|
+
attrs="attrs"
|
|
1799
|
+
style="props.style"
|
|
1800
|
+
onClick="() => this.onClick()"
|
|
1794
1801
|
>
|
|
1795
1802
|
<t t-slot="default"/>
|
|
1796
|
-
</
|
|
1803
|
+
</Button>
|
|
1797
1804
|
</t>
|
|
1798
1805
|
<t t-name="SelectTrigger" t-call="baseui.SelectTrigger"/>
|
|
1799
1806
|
<t t-name="baseui.SelectContent">
|
|
@@ -1833,8 +1840,10 @@
|
|
|
1833
1840
|
onOpenChange="(open) => !open and this.dismissToast()">
|
|
1834
1841
|
<div t-esc="props.toast.message"/>
|
|
1835
1842
|
<t t-if="props.toast.actionLabel">
|
|
1836
|
-
<
|
|
1837
|
-
|
|
1843
|
+
<t t-set-slot="action">
|
|
1844
|
+
<Button variant="'outline'" size="'sm'"
|
|
1845
|
+
label="props.toast.actionLabel" onClick="() => this.runToastAction()"/>
|
|
1846
|
+
</t>
|
|
1838
1847
|
</t>
|
|
1839
1848
|
</Toast>
|
|
1840
1849
|
</t>
|
|
@@ -1906,7 +1915,7 @@
|
|
|
1906
1915
|
<div t-if="authState" t-att-class="'bu-shell-user' + (props.className ? ' ' + props.className : '')" t-att-style="props.style">
|
|
1907
1916
|
<t t-slot="default">
|
|
1908
1917
|
<span class="bu-shell-user-name" t-esc="authState.username"/>
|
|
1909
|
-
<
|
|
1918
|
+
<Button variant="'outline'" size="'sm'" label="'Logout'" onClick="() => this.logout()"/>
|
|
1910
1919
|
</t>
|
|
1911
1920
|
</div>
|
|
1912
1921
|
</t>
|
|
@@ -1928,7 +1937,7 @@
|
|
|
1928
1937
|
<t t-name="baseui.Sheet"><t t-slot="default"/></t>
|
|
1929
1938
|
<t t-name="Sheet" t-call="baseui.Sheet"/>
|
|
1930
1939
|
<t t-name="baseui.SheetTrigger">
|
|
1931
|
-
<
|
|
1940
|
+
<Button variant="'outline'" className="'bu-sheet-trigger'" style="props.style" onClick="() => this.onClick()"><t t-slot="default"/></Button>
|
|
1932
1941
|
</t>
|
|
1933
1942
|
<t t-name="SheetTrigger" t-call="baseui.SheetTrigger"/>
|
|
1934
1943
|
<t t-name="baseui.SheetContent">
|
|
@@ -1948,7 +1957,7 @@
|
|
|
1948
1957
|
<t t-name="baseui.SheetDescription"><p class="bu-sheet-description" t-att-style="props.style"><t t-slot="default"/></p></t>
|
|
1949
1958
|
<t t-name="SheetDescription" t-call="baseui.SheetDescription"/>
|
|
1950
1959
|
<t t-name="baseui.SheetClose">
|
|
1951
|
-
<
|
|
1960
|
+
<Button variant="'outline'" className="'bu-sheet-close'" style="props.style" attrs="{'data-bs-dismiss': 'offcanvas'}"><t t-slot="default"/></Button>
|
|
1952
1961
|
</t>
|
|
1953
1962
|
<t t-name="SheetClose" t-call="baseui.SheetClose"/>
|
|
1954
1963
|
<t t-name="baseui.sidebar">
|
|
@@ -1998,15 +2007,13 @@
|
|
|
1998
2007
|
</t>
|
|
1999
2008
|
<t t-name="SidebarInset" t-call="baseui.SidebarInset"/>
|
|
2000
2009
|
<t t-name="baseui.SidebarRail">
|
|
2001
|
-
<
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
data-sidebar
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
tabindex="-1"
|
|
2009
|
-
t-on-click="onClick"/>
|
|
2010
|
+
<Button type="'button'" unstyled="true"
|
|
2011
|
+
className="'bu-sidebar-rail' + (props.className ? ' ' + props.className : '')"
|
|
2012
|
+
style="props.style"
|
|
2013
|
+
attrs="{ 'data-sidebar': 'rail', 'data-slot': 'sidebar-rail', tabindex: '-1' }"
|
|
2014
|
+
ariaLabel="'Toggle Sidebar'"
|
|
2015
|
+
title="'Toggle Sidebar'"
|
|
2016
|
+
onClick="() => this.onClick()"/>
|
|
2010
2017
|
</t>
|
|
2011
2018
|
<t t-name="SidebarRail" t-call="baseui.SidebarRail"/>
|
|
2012
2019
|
<t t-name="baseui.SidebarInput">
|
|
@@ -2024,18 +2031,17 @@
|
|
|
2024
2031
|
</t>
|
|
2025
2032
|
<t t-name="SidebarSeparator" t-call="baseui.SidebarSeparator"/>
|
|
2026
2033
|
<t t-name="baseui.SidebarClose">
|
|
2027
|
-
<
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
data-sidebar
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
t-on-click="onClick">
|
|
2034
|
+
<Button type="'button'" unstyled="true"
|
|
2035
|
+
className="'bu-sidebar-close' + (props.className ? ' ' + props.className : '')"
|
|
2036
|
+
style="props.style"
|
|
2037
|
+
attrs="{ 'data-sidebar': 'close', 'data-slot': 'sidebar-close' }"
|
|
2038
|
+
ariaLabel="props.label || 'Close Sidebar'"
|
|
2039
|
+
onClick="() => this.onClick()">
|
|
2034
2040
|
<Icon name="props.icon || 'x'" className="'bu-sidebar-close-icon'"/>
|
|
2035
2041
|
<span t-if="props.label"><t t-esc="props.label"/></span>
|
|
2036
2042
|
<span t-else="" class="visually-hidden">Close Sidebar</span>
|
|
2037
2043
|
<t t-slot="default"/>
|
|
2038
|
-
</
|
|
2044
|
+
</Button>
|
|
2039
2045
|
</t>
|
|
2040
2046
|
<t t-name="SidebarClose" t-call="baseui.SidebarClose"/>
|
|
2041
2047
|
<t t-name="baseui.SidebarGroup">
|
|
@@ -2054,16 +2060,15 @@
|
|
|
2054
2060
|
</t>
|
|
2055
2061
|
<t t-name="SidebarGroupLabel" t-call="baseui.SidebarGroupLabel"/>
|
|
2056
2062
|
<t t-name="baseui.SidebarGroupAction">
|
|
2057
|
-
<
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
data-sidebar
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
<Icon t-if="props.icon" name="props.icon"/>
|
|
2063
|
+
<Button type="'button'" unstyled="true"
|
|
2064
|
+
className="'bu-sidebar-group-action' + (props.className ? ' ' + props.className : '')"
|
|
2065
|
+
style="props.style"
|
|
2066
|
+
attrs="{ 'data-sidebar': 'group-action', 'data-slot': 'sidebar-group-action' }"
|
|
2067
|
+
ariaLabel="ariaLabel"
|
|
2068
|
+
icon="props.icon"
|
|
2069
|
+
onClick="(event) => this.onClick(event)">
|
|
2065
2070
|
<t t-slot="default"/>
|
|
2066
|
-
</
|
|
2071
|
+
</Button>
|
|
2067
2072
|
</t>
|
|
2068
2073
|
<t t-name="SidebarGroupAction" t-call="baseui.SidebarGroupAction"/>
|
|
2069
2074
|
<t t-name="baseui.SidebarGroupContent">
|
|
@@ -2074,15 +2079,13 @@
|
|
|
2074
2079
|
<t t-name="SidebarGroupContent" t-call="baseui.SidebarGroupContent"/>
|
|
2075
2080
|
<t t-name="baseui.SidebarGroupCollapsible">
|
|
2076
2081
|
<div t-att-class="'bu-sidebar-group' + (props.className ? ' ' + props.className : '')" t-att-style="props.style">
|
|
2077
|
-
<
|
|
2078
|
-
|
|
2079
|
-
data-sidebar
|
|
2080
|
-
|
|
2081
|
-
t-att-aria-expanded="open ? 'true' : 'false'"
|
|
2082
|
-
t-on-click="toggle">
|
|
2082
|
+
<Button type="'button'" unstyled="true"
|
|
2083
|
+
className="'bu-sidebar-group-trigger'"
|
|
2084
|
+
attrs="{ 'data-sidebar': 'group-label', 'data-slot': 'sidebar-group-label', 'aria-expanded': open ? 'true' : 'false' }"
|
|
2085
|
+
onClick="() => this.toggle()">
|
|
2083
2086
|
<t t-esc="props.label"/>
|
|
2084
2087
|
<Icon name="'chevron-down'" className="'bu-sidebar-group-chevron' + (open ? ' is-open' : '')"/>
|
|
2085
|
-
</
|
|
2088
|
+
</Button>
|
|
2086
2089
|
<div t-if="open" class="bu-sidebar-group-content">
|
|
2087
2090
|
<t t-slot="default"/>
|
|
2088
2091
|
</div>
|
|
@@ -2102,47 +2105,27 @@
|
|
|
2102
2105
|
</t>
|
|
2103
2106
|
<t t-name="SidebarMenuItem" t-call="baseui.SidebarMenuItem"/>
|
|
2104
2107
|
<t t-name="baseui.SidebarMenuButton">
|
|
2105
|
-
<
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
t-att-data-active="isActive ? 'true' : undefined"
|
|
2112
|
-
t-att-data-size="props.size || 'default'"
|
|
2113
|
-
t-att-aria-current="isActive ? 'page' : undefined"
|
|
2114
|
-
t-att-aria-disabled="props.disabled ? 'true' : undefined"
|
|
2115
|
-
t-on-click="onClick">
|
|
2116
|
-
<Icon t-if="props.icon" name="props.icon" className="'bu-sidebar-menu-icon'"/>
|
|
2117
|
-
<span class="bu-sidebar-menu-label"><t t-slot="default"/></span>
|
|
2118
|
-
</a>
|
|
2119
|
-
<button t-else=""
|
|
2120
|
-
type="button"
|
|
2121
|
-
t-att-class="classNames"
|
|
2122
|
-
t-att-style="props.style"
|
|
2123
|
-
data-sidebar="menu-button"
|
|
2124
|
-
data-slot="sidebar-menu-button"
|
|
2125
|
-
t-att-data-active="isActive ? 'true' : undefined"
|
|
2126
|
-
t-att-data-size="props.size || 'default'"
|
|
2127
|
-
t-att-aria-current="isActive ? 'page' : undefined"
|
|
2128
|
-
t-att-disabled="props.disabled"
|
|
2129
|
-
t-on-click="onClick">
|
|
2108
|
+
<Button href="props.href" unstyled="true"
|
|
2109
|
+
className="classNames"
|
|
2110
|
+
style="props.style"
|
|
2111
|
+
attrs="{ 'data-sidebar': 'menu-button', 'data-slot': 'sidebar-menu-button', 'data-active': isActive ? 'true' : undefined, 'data-size': props.size || 'default', 'aria-current': isActive ? 'page' : undefined }"
|
|
2112
|
+
disabled="props.disabled"
|
|
2113
|
+
onClick="(event) => this.onClick(event)">
|
|
2130
2114
|
<Icon t-if="props.icon" name="props.icon" className="'bu-sidebar-menu-icon'"/>
|
|
2131
2115
|
<span class="bu-sidebar-menu-label"><t t-slot="default"/></span>
|
|
2132
|
-
</
|
|
2116
|
+
</Button>
|
|
2133
2117
|
</t>
|
|
2134
2118
|
<t t-name="SidebarMenuButton" t-call="baseui.SidebarMenuButton"/>
|
|
2135
2119
|
<t t-name="baseui.SidebarMenuAction">
|
|
2136
|
-
<
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
data-sidebar
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
<Icon t-if="props.icon" name="props.icon"/>
|
|
2120
|
+
<Button type="'button'" unstyled="true"
|
|
2121
|
+
className="'bu-sidebar-menu-action' + (props.showOnHover ? ' show-on-hover' : '') + (props.className ? ' ' + props.className : '')"
|
|
2122
|
+
style="props.style"
|
|
2123
|
+
attrs="{ 'data-sidebar': 'menu-action', 'data-slot': 'sidebar-menu-action' }"
|
|
2124
|
+
ariaLabel="ariaLabel"
|
|
2125
|
+
icon="props.icon"
|
|
2126
|
+
onClick="(event) => this.onClick(event)">
|
|
2144
2127
|
<t t-slot="default"/>
|
|
2145
|
-
</
|
|
2128
|
+
</Button>
|
|
2146
2129
|
</t>
|
|
2147
2130
|
<t t-name="SidebarMenuAction" t-call="baseui.SidebarMenuAction"/>
|
|
2148
2131
|
<t t-name="baseui.SidebarMenuSub">
|
|
@@ -2171,27 +2154,27 @@
|
|
|
2171
2154
|
</t>
|
|
2172
2155
|
<t t-name="SidebarMenuSubItem" t-call="baseui.SidebarMenuSubItem"/>
|
|
2173
2156
|
<t t-name="baseui.SidebarMenuSubButton">
|
|
2174
|
-
<
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2157
|
+
<Button href="props.href" unstyled="true"
|
|
2158
|
+
className="classNames"
|
|
2159
|
+
style="props.style"
|
|
2160
|
+
attrs="{ 'data-sidebar': 'menu-sub-button', 'data-slot': 'sidebar-menu-sub-button', 'data-active': (props.active || props.isActive) ? 'true' : undefined }"
|
|
2161
|
+
onClick="(event) => this.onClick(event)">
|
|
2178
2162
|
<t t-slot="default"/>
|
|
2179
|
-
</
|
|
2163
|
+
</Button>
|
|
2180
2164
|
</t>
|
|
2181
2165
|
<t t-name="SidebarMenuSubButton" t-call="baseui.SidebarMenuSubButton"/>
|
|
2182
2166
|
<t t-name="baseui.SidebarTrigger">
|
|
2183
|
-
<
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
data-sidebar
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
t-on-click="onClick">
|
|
2167
|
+
<Button type="'button'" unstyled="true"
|
|
2168
|
+
className="'bu-sidebar-trigger' + (props.className ? ' ' + props.className : '')"
|
|
2169
|
+
style="props.style"
|
|
2170
|
+
attrs="{ 'data-sidebar': 'trigger', 'data-slot': 'sidebar-trigger' }"
|
|
2171
|
+
ariaLabel="'Toggle Sidebar'"
|
|
2172
|
+
onClick="() => this.onClick()">
|
|
2190
2173
|
<Icon name="props.icon || 'panel-left'" className="'bu-sidebar-trigger-icon'"/>
|
|
2191
2174
|
<span t-if="props.label"><t t-esc="props.label"/></span>
|
|
2192
2175
|
<span t-else="" class="visually-hidden">Toggle Sidebar</span>
|
|
2193
2176
|
<t t-slot="default"/>
|
|
2194
|
-
</
|
|
2177
|
+
</Button>
|
|
2195
2178
|
</t>
|
|
2196
2179
|
<t t-name="SidebarTrigger" t-call="baseui.SidebarTrigger"/>
|
|
2197
2180
|
<t t-name="baseui.slider"><input b-ui="slider" type="range"/></t>
|
|
@@ -2244,23 +2227,23 @@
|
|
|
2244
2227
|
</t>
|
|
2245
2228
|
<t t-name="Table" t-call="baseui.Table"/>
|
|
2246
2229
|
<t t-name="baseui.Tabs">
|
|
2247
|
-
<div t-att-class="
|
|
2230
|
+
<div t-att-class="classNames" t-att-data-orientation="orientation" t-att-style="props.style">
|
|
2248
2231
|
<t t-slot="default"/>
|
|
2249
2232
|
</div>
|
|
2250
2233
|
</t>
|
|
2251
2234
|
<t t-name="Tabs" t-call="baseui.Tabs"/>
|
|
2252
2235
|
|
|
2253
2236
|
<t t-name="baseui.TabsList">
|
|
2254
|
-
<div t-ref="list" role="tablist" t-att-class="
|
|
2237
|
+
<div t-ref="list" role="tablist" t-att-class="classNames" t-att-style="props.style" t-on-keydown="onKeyDown">
|
|
2255
2238
|
<t t-slot="default"/>
|
|
2256
2239
|
</div>
|
|
2257
2240
|
</t>
|
|
2258
2241
|
<t t-name="TabsList" t-call="baseui.TabsList"/>
|
|
2259
2242
|
|
|
2260
2243
|
<t t-name="baseui.TabTrigger">
|
|
2261
|
-
<
|
|
2244
|
+
<Button unstyled="true" className="classNames" style="props.style" disabled="props.disabled" attrs="tabAttrs" getRef="(el) => this.onRootRef(el)" onClick="() => this.onClick()">
|
|
2262
2245
|
<t t-slot="default"/>
|
|
2263
|
-
</
|
|
2246
|
+
</Button>
|
|
2264
2247
|
</t>
|
|
2265
2248
|
<t t-name="TabTrigger" t-call="baseui.TabTrigger"/>
|
|
2266
2249
|
|
|
@@ -2273,11 +2256,7 @@
|
|
|
2273
2256
|
|
|
2274
2257
|
<t t-name="baseui.TabContent">
|
|
2275
2258
|
<div t-att-id="panelId" role="tabpanel" t-att-class="'tab-pane fade bu-tabs-panel' + (initialActive ? ' show active' : '') + (props.className ? ' ' + props.className : '')" t-att-style="props.style">
|
|
2276
|
-
<
|
|
2277
|
-
<CardBody>
|
|
2278
|
-
<t t-slot="default"/>
|
|
2279
|
-
</CardBody>
|
|
2280
|
-
</Card>
|
|
2259
|
+
<t t-slot="default"/>
|
|
2281
2260
|
</div>
|
|
2282
2261
|
</t>
|
|
2283
2262
|
<t t-name="TabContent" t-call="baseui.TabContent"/>
|
|
@@ -2320,19 +2299,19 @@
|
|
|
2320
2299
|
</t>
|
|
2321
2300
|
<t t-name="TextEditor" t-call="baseui.TextEditor"/>
|
|
2322
2301
|
<t t-name="baseui.ThemeButton">
|
|
2323
|
-
<
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2302
|
+
<Button
|
|
2303
|
+
unstyled="true"
|
|
2304
|
+
className="classNames"
|
|
2305
|
+
style="props.style"
|
|
2306
|
+
attrs="attrs"
|
|
2307
|
+
ariaLabel="label"
|
|
2308
|
+
title="label"
|
|
2309
|
+
ariaPressed="pressed"
|
|
2310
|
+
onClick="() => this.onClick()"
|
|
2332
2311
|
>
|
|
2333
2312
|
<Icon name="iconName" base-url="baseUrl"/>
|
|
2334
2313
|
<span class="visually-hidden" b-theme-button-label="" t-esc="label"/>
|
|
2335
|
-
</
|
|
2314
|
+
</Button>
|
|
2336
2315
|
</t>
|
|
2337
2316
|
<t t-name="ThemeButton" t-call="baseui.ThemeButton"/>
|
|
2338
2317
|
<t t-name="baseui.toast">
|
|
@@ -2340,8 +2319,11 @@
|
|
|
2340
2319
|
</t>
|
|
2341
2320
|
<t t-name="baseui.Toast">
|
|
2342
2321
|
<div t-ref="root" t-att-class="classNames" t-att-style="props.style" t-att-role="role">
|
|
2343
|
-
<t t-slot="default"
|
|
2344
|
-
<
|
|
2322
|
+
<div class="bu-toast-content"><t t-slot="default"/></div>
|
|
2323
|
+
<div class="bu-toast-actions">
|
|
2324
|
+
<t t-if="hasActionSlot" t-slot="action"/>
|
|
2325
|
+
<Button variant="'ghost'" size="'icon-sm'" className="'bu-toast-close'" aria-label="'Close'" onClick="() => this.close()">x</Button>
|
|
2326
|
+
</div>
|
|
2345
2327
|
</div>
|
|
2346
2328
|
</t>
|
|
2347
2329
|
<t t-name="Toast" t-call="baseui.Toast"/>
|
|
@@ -2371,9 +2353,9 @@
|
|
|
2371
2353
|
<button type="button"><t t-out="props.label"/></button>
|
|
2372
2354
|
</t>
|
|
2373
2355
|
<t t-name="baseui.Toggle">
|
|
2374
|
-
<
|
|
2356
|
+
<Button unstyled="true" className="classNames" style="props.style" aria-pressed="pressed ? 'true' : 'false'" onClick="() => this.onClick()">
|
|
2375
2357
|
<t t-slot="default"/>
|
|
2376
|
-
</
|
|
2358
|
+
</Button>
|
|
2377
2359
|
</t>
|
|
2378
2360
|
<t t-name="Toggle" t-call="baseui.Toggle"/>
|
|
2379
2361
|
<t t-name="baseui.toggle-group">
|
|
@@ -2390,15 +2372,15 @@
|
|
|
2390
2372
|
</t>
|
|
2391
2373
|
<t t-name="ToggleGroup" t-call="baseui.ToggleGroup"/>
|
|
2392
2374
|
<t t-name="baseui.ToggleGroupItem">
|
|
2393
|
-
<
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2375
|
+
<Button
|
|
2376
|
+
unstyled="true"
|
|
2377
|
+
className="'btn btn-outline-secondary'"
|
|
2378
|
+
style="props.style"
|
|
2379
|
+
ariaPressed="pressed ? 'true' : 'false'"
|
|
2380
|
+
onClick="() => this.onClick()"
|
|
2399
2381
|
>
|
|
2400
2382
|
<t t-slot="default"/>
|
|
2401
|
-
</
|
|
2383
|
+
</Button>
|
|
2402
2384
|
</t>
|
|
2403
2385
|
<t t-name="ToggleGroupItem" t-call="baseui.ToggleGroupItem"/>
|
|
2404
2386
|
<t t-name="baseui.typography">
|