@wirabyte/ui 2.0.0-beta.0 → 3.0.0-beta.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/fesm2022/wirabyte-ui-accordion.mjs +49 -49
- package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-alert.mjs +14 -14
- package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-animate.mjs +10 -10
- package/fesm2022/wirabyte-ui-animate.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-api.mjs +4 -4
- package/fesm2022/wirabyte-ui-asidemenu.mjs +8 -8
- package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-autocomplete.mjs +10 -10
- package/fesm2022/wirabyte-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-avatar.mjs +24 -24
- package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-badge.mjs +20 -20
- package/fesm2022/wirabyte-ui-badge.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-blockui.mjs +8 -8
- package/fesm2022/wirabyte-ui-blockui.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-bottombar.mjs +8 -8
- package/fesm2022/wirabyte-ui-bottombar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-breadcrumb.mjs +8 -8
- package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-button.mjs +38 -38
- package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-card.mjs +34 -34
- package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-carousel.mjs +8 -8
- package/fesm2022/wirabyte-ui-carousel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chart.mjs +1243 -40
- package/fesm2022/wirabyte-ui-chart.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chartjs.mjs +10 -10
- package/fesm2022/wirabyte-ui-chartjs.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-checkbox.mjs +29 -29
- package/fesm2022/wirabyte-ui-checkbox.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chip.mjs +20 -20
- package/fesm2022/wirabyte-ui-chip.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-colorpicker.mjs +8 -8
- package/fesm2022/wirabyte-ui-colorpicker.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-config.mjs +20 -20
- package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-confirmdialog.mjs +14 -14
- package/fesm2022/wirabyte-ui-confirmdialog.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-contextmenu.mjs +7 -7
- package/fesm2022/wirabyte-ui-contextmenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-datepicker.mjs +83 -83
- package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-dialog.mjs +21 -21
- package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-divider.mjs +16 -16
- package/fesm2022/wirabyte-ui-divider.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-dock.mjs +8 -8
- package/fesm2022/wirabyte-ui-dock.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-dragdrop.mjs +10 -10
- package/fesm2022/wirabyte-ui-dragdrop.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-drawer.mjs +8 -8
- package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-editor.mjs +17 -17
- package/fesm2022/wirabyte-ui-editor.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-emptystate.mjs +7 -7
- package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-errorpage.mjs +8 -8
- package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-fieldset.mjs +21 -21
- package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-fileupload.mjs +11 -11
- package/fesm2022/wirabyte-ui-fileupload.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-floatlabel.mjs +7 -7
- package/fesm2022/wirabyte-ui-floatlabel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-flow.mjs +51 -51
- package/fesm2022/wirabyte-ui-flow.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-galleria.mjs +8 -8
- package/fesm2022/wirabyte-ui-galleria.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-i18n.mjs +17 -17
- package/fesm2022/wirabyte-ui-i18n.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-iconfield.mjs +10 -10
- package/fesm2022/wirabyte-ui-iconfield.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-image.mjs +11 -11
- package/fesm2022/wirabyte-ui-image.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-imagecompare.mjs +8 -8
- package/fesm2022/wirabyte-ui-imagecompare.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-imagecropper.mjs +8 -8
- package/fesm2022/wirabyte-ui-imagecropper.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inplace.mjs +7 -7
- package/fesm2022/wirabyte-ui-inplace.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputgroup.mjs +10 -10
- package/fesm2022/wirabyte-ui-inputgroup.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputmask.mjs +10 -10
- package/fesm2022/wirabyte-ui-inputmask.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputnumber.mjs +60 -60
- package/fesm2022/wirabyte-ui-inputnumber.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputotp.mjs +7 -7
- package/fesm2022/wirabyte-ui-inputotp.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputtext.mjs +12 -12
- package/fesm2022/wirabyte-ui-inputtext.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-keyfilter.mjs +7 -7
- package/fesm2022/wirabyte-ui-keyfilter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-knob.mjs +8 -8
- package/fesm2022/wirabyte-ui-knob.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-listbox.mjs +8 -8
- package/fesm2022/wirabyte-ui-listbox.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-menu.mjs +11 -11
- package/fesm2022/wirabyte-ui-menu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-menubar.mjs +11 -11
- package/fesm2022/wirabyte-ui-menubar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-message.mjs +30 -30
- package/fesm2022/wirabyte-ui-message.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-metergroup.mjs +35 -35
- package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-multiselect.mjs +11 -11
- package/fesm2022/wirabyte-ui-multiselect.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-navbar.mjs +8 -8
- package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-orderlist.mjs +10 -10
- package/fesm2022/wirabyte-ui-orderlist.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-organizationchart.mjs +8 -8
- package/fesm2022/wirabyte-ui-organizationchart.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-paginator.mjs +11 -11
- package/fesm2022/wirabyte-ui-paginator.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-panel.mjs +26 -26
- package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-panelmenu.mjs +11 -11
- package/fesm2022/wirabyte-ui-panelmenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-password.mjs +48 -48
- package/fesm2022/wirabyte-ui-password.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-picklist.mjs +11 -11
- package/fesm2022/wirabyte-ui-picklist.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-popover.mjs +11 -11
- package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-presets.mjs +2 -2
- package/fesm2022/wirabyte-ui-presets.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-progressbar.mjs +32 -32
- package/fesm2022/wirabyte-ui-progressbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-progressspinner.mjs +28 -28
- package/fesm2022/wirabyte-ui-progressspinner.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-radiobutton.mjs +28 -28
- package/fesm2022/wirabyte-ui-radiobutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-rating.mjs +25 -25
- package/fesm2022/wirabyte-ui-rating.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-result.mjs +7 -7
- package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-ripple.mjs +7 -7
- package/fesm2022/wirabyte-ui-ripple.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-scroller.mjs +8 -8
- package/fesm2022/wirabyte-ui-scroller.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-scrollpanel.mjs +7 -7
- package/fesm2022/wirabyte-ui-scrollpanel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-select.mjs +11 -11
- package/fesm2022/wirabyte-ui-select.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-selectbutton.mjs +33 -33
- package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-sitefooter.mjs +7 -7
- package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-skeleton.mjs +19 -19
- package/fesm2022/wirabyte-ui-skeleton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-slider.mjs +8 -8
- package/fesm2022/wirabyte-ui-slider.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-splitbutton.mjs +7 -7
- package/fesm2022/wirabyte-ui-splitbutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-splitter.mjs +11 -11
- package/fesm2022/wirabyte-ui-splitter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-stepper.mjs +42 -42
- package/fesm2022/wirabyte-ui-stepper.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-steps.mjs +11 -11
- package/fesm2022/wirabyte-ui-steps.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-table.mjs +86 -86
- package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tabs.mjs +74 -74
- package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tag.mjs +17 -17
- package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-terminal.mjs +10 -10
- package/fesm2022/wirabyte-ui-terminal.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-textarea.mjs +13 -13
- package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-thai.mjs +22 -22
- package/fesm2022/wirabyte-ui-tieredmenu.mjs +8 -8
- package/fesm2022/wirabyte-ui-tieredmenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-timeline.mjs +10 -10
- package/fesm2022/wirabyte-ui-timeline.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toast.mjs +14 -14
- package/fesm2022/wirabyte-ui-toast.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-togglebutton.mjs +30 -30
- package/fesm2022/wirabyte-ui-togglebutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toggleswitch.mjs +27 -27
- package/fesm2022/wirabyte-ui-toggleswitch.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toolbar.mjs +7 -7
- package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tooltip.mjs +7 -7
- package/fesm2022/wirabyte-ui-tooltip.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tree.mjs +8 -8
- package/fesm2022/wirabyte-ui-tree.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-treeselect.mjs +7 -7
- package/fesm2022/wirabyte-ui-treeselect.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-validation.mjs +16 -16
- package/fesm2022/wirabyte-ui-validation.mjs.map +1 -1
- package/fesm2022/wirabyte-ui.mjs +2 -2
- package/fesm2022/wirabyte-ui.mjs.map +1 -1
- package/package.json +123 -326
- package/schematics/ng-add/schema.json +27 -2
- package/theme/_version.scss +1 -1
- package/themes/glass/amber.css +1181 -0
- package/themes/glass/blue.css +1181 -0
- package/themes/glass/cyan.css +1181 -0
- package/themes/glass/emerald.css +1181 -0
- package/themes/glass/fuchsia.css +1181 -0
- package/themes/glass/green.css +1181 -0
- package/themes/glass/indigo.css +1181 -0
- package/themes/glass/lime.css +1181 -0
- package/themes/glass/orange.css +1181 -0
- package/themes/glass/pink.css +1181 -0
- package/themes/glass/purple.css +1181 -0
- package/themes/glass/red.css +1181 -0
- package/themes/glass/rose.css +1181 -0
- package/themes/glass/sky.css +1181 -0
- package/themes/glass/teal.css +1181 -0
- package/themes/glass/theme.css +1181 -0
- package/themes/glass/violet.css +1181 -0
- package/themes/glass/wira.css +1181 -0
- package/themes/glass/yellow.css +1181 -0
- package/themes/lanna/amber.css +1175 -0
- package/themes/lanna/blue.css +1175 -0
- package/themes/lanna/cyan.css +1175 -0
- package/themes/lanna/emerald.css +1175 -0
- package/themes/lanna/fuchsia.css +1175 -0
- package/themes/lanna/green.css +1175 -0
- package/themes/lanna/indigo.css +1175 -0
- package/themes/lanna/lime.css +1175 -0
- package/themes/lanna/orange.css +1175 -0
- package/themes/lanna/pink.css +1175 -0
- package/themes/lanna/purple.css +1175 -0
- package/themes/lanna/red.css +1175 -0
- package/themes/lanna/rose.css +1175 -0
- package/themes/lanna/sky.css +1175 -0
- package/themes/lanna/teal.css +1175 -0
- package/themes/lanna/theme.css +1175 -0
- package/themes/lanna/violet.css +1175 -0
- package/themes/lanna/wira.css +1175 -0
- package/themes/lanna/yellow.css +1175 -0
- package/themes/nakhon/amber.css +1175 -0
- package/themes/nakhon/blue.css +1175 -0
- package/themes/nakhon/cyan.css +1175 -0
- package/themes/nakhon/emerald.css +1175 -0
- package/themes/nakhon/fuchsia.css +1175 -0
- package/themes/nakhon/green.css +1175 -0
- package/themes/nakhon/indigo.css +1175 -0
- package/themes/nakhon/lime.css +1175 -0
- package/themes/nakhon/orange.css +1175 -0
- package/themes/nakhon/pink.css +1175 -0
- package/themes/nakhon/purple.css +1175 -0
- package/themes/nakhon/red.css +1175 -0
- package/themes/nakhon/rose.css +1175 -0
- package/themes/nakhon/sky.css +1175 -0
- package/themes/nakhon/teal.css +1175 -0
- package/themes/nakhon/theme.css +1175 -0
- package/themes/nakhon/violet.css +1175 -0
- package/themes/nakhon/wira.css +1175 -0
- package/themes/nakhon/yellow.css +1175 -0
- package/themes/siam/amber.css +1175 -0
- package/themes/siam/blue.css +1175 -0
- package/themes/siam/cyan.css +1175 -0
- package/themes/siam/emerald.css +1175 -0
- package/themes/siam/fuchsia.css +1175 -0
- package/themes/siam/green.css +1175 -0
- package/themes/siam/indigo.css +1175 -0
- package/themes/siam/lime.css +1175 -0
- package/themes/siam/orange.css +1175 -0
- package/themes/siam/pink.css +1175 -0
- package/themes/siam/purple.css +1175 -0
- package/themes/siam/red.css +1175 -0
- package/themes/siam/rose.css +1175 -0
- package/themes/siam/sky.css +1175 -0
- package/themes/siam/teal.css +1175 -0
- package/themes/siam/theme.css +1175 -0
- package/themes/siam/violet.css +1175 -0
- package/themes/siam/wira.css +1175 -0
- package/themes/siam/yellow.css +1175 -0
- package/themes/wira/amber.css +1175 -0
- package/themes/wira/blue.css +1175 -0
- package/themes/wira/cyan.css +1175 -0
- package/themes/wira/emerald.css +1175 -0
- package/themes/wira/fuchsia.css +1175 -0
- package/themes/wira/green.css +1175 -0
- package/themes/wira/indigo.css +1175 -0
- package/themes/wira/lime.css +1175 -0
- package/themes/wira/orange.css +1175 -0
- package/themes/wira/pink.css +1175 -0
- package/themes/wira/purple.css +1175 -0
- package/themes/wira/red.css +1175 -0
- package/themes/wira/rose.css +1175 -0
- package/themes/wira/sky.css +1175 -0
- package/themes/wira/teal.css +1175 -0
- package/themes/wira/theme.css +1175 -0
- package/themes/wira/violet.css +1175 -0
- package/themes/wira/wira.css +1175 -0
- package/themes/wira/yellow.css +1175 -0
- package/types/wirabyte-ui-accordion.d.ts +124 -0
- package/types/wirabyte-ui-alert.d.ts +254 -0
- package/types/wirabyte-ui-animate.d.ts +100 -0
- package/types/wirabyte-ui-api.d.ts +16 -0
- package/types/wirabyte-ui-asidemenu.d.ts +233 -0
- package/types/wirabyte-ui-autocomplete.d.ts +212 -0
- package/types/wirabyte-ui-avatar.d.ts +49 -0
- package/types/wirabyte-ui-badge.d.ts +66 -0
- package/types/wirabyte-ui-blockui.d.ts +51 -0
- package/types/wirabyte-ui-bottombar.d.ts +91 -0
- package/types/wirabyte-ui-breadcrumb.d.ts +52 -0
- package/types/wirabyte-ui-button.d.ts +132 -0
- package/types/wirabyte-ui-card.d.ts +66 -0
- package/types/wirabyte-ui-carousel.d.ts +202 -0
- package/types/wirabyte-ui-chart.d.ts +412 -0
- package/types/wirabyte-ui-chartjs.d.ts +98 -0
- package/types/wirabyte-ui-checkbox.d.ts +65 -0
- package/types/wirabyte-ui-chip.d.ts +40 -0
- package/types/wirabyte-ui-colorpicker.d.ts +98 -0
- package/types/wirabyte-ui-config.d.ts +330 -0
- package/types/wirabyte-ui-confirmdialog.d.ts +193 -0
- package/types/wirabyte-ui-contextmenu.d.ts +57 -0
- package/types/wirabyte-ui-core.d.ts +4296 -0
- package/types/wirabyte-ui-datepicker.d.ts +251 -0
- package/types/wirabyte-ui-dialog.d.ts +273 -0
- package/types/wirabyte-ui-divider.d.ts +34 -0
- package/types/wirabyte-ui-dock.d.ts +100 -0
- package/types/wirabyte-ui-dragdrop.d.ts +74 -0
- package/types/wirabyte-ui-drawer.d.ts +113 -0
- package/types/wirabyte-ui-editor.d.ts +500 -0
- package/types/wirabyte-ui-emptystate.d.ts +55 -0
- package/types/wirabyte-ui-errorpage.d.ts +84 -0
- package/types/wirabyte-ui-excel.d.ts +29 -0
- package/types/wirabyte-ui-fieldset.d.ts +40 -0
- package/types/wirabyte-ui-fileupload.d.ts +251 -0
- package/types/wirabyte-ui-floatlabel.d.ts +33 -0
- package/types/wirabyte-ui-flow.d.ts +1343 -0
- package/types/wirabyte-ui-galleria.d.ts +173 -0
- package/types/wirabyte-ui-i18n.d.ts +179 -0
- package/types/wirabyte-ui-iconfield.d.ts +40 -0
- package/types/wirabyte-ui-image.d.ts +100 -0
- package/types/wirabyte-ui-imagecompare.d.ts +78 -0
- package/types/wirabyte-ui-imagecropper.d.ts +396 -0
- package/types/wirabyte-ui-inplace.d.ts +69 -0
- package/types/wirabyte-ui-inputgroup.d.ts +36 -0
- package/types/wirabyte-ui-inputmask.d.ts +134 -0
- package/types/wirabyte-ui-inputnumber.d.ts +126 -0
- package/types/wirabyte-ui-inputotp.d.ts +139 -0
- package/types/wirabyte-ui-inputtext.d.ts +38 -0
- package/types/wirabyte-ui-keyfilter.d.ts +40 -0
- package/types/wirabyte-ui-knob.d.ts +104 -0
- package/types/wirabyte-ui-listbox.d.ts +197 -0
- package/types/wirabyte-ui-menu.d.ts +116 -0
- package/types/wirabyte-ui-menubar.d.ts +158 -0
- package/types/wirabyte-ui-message.d.ts +110 -0
- package/types/wirabyte-ui-metergroup.d.ts +107 -0
- package/types/wirabyte-ui-multiselect.d.ts +267 -0
- package/types/wirabyte-ui-navbar.d.ts +184 -0
- package/types/wirabyte-ui-orderlist.d.ts +166 -0
- package/types/wirabyte-ui-organizationchart.d.ts +98 -0
- package/types/wirabyte-ui-paginator.d.ts +122 -0
- package/types/wirabyte-ui-panel.d.ts +57 -0
- package/types/wirabyte-ui-panelmenu.d.ts +70 -0
- package/types/wirabyte-ui-password.d.ts +98 -0
- package/types/wirabyte-ui-picklist.d.ts +309 -0
- package/types/wirabyte-ui-popover.d.ts +81 -0
- package/types/wirabyte-ui-presets.d.ts +1 -0
- package/types/wirabyte-ui-progressbar.d.ts +75 -0
- package/types/wirabyte-ui-progressspinner.d.ts +65 -0
- package/types/wirabyte-ui-radiobutton.d.ts +89 -0
- package/types/wirabyte-ui-rating.d.ts +54 -0
- package/types/wirabyte-ui-result.d.ts +49 -0
- package/types/wirabyte-ui-ripple.d.ts +25 -0
- package/types/wirabyte-ui-scroller.d.ts +145 -0
- package/types/wirabyte-ui-scrollpanel.d.ts +37 -0
- package/types/wirabyte-ui-select.d.ts +250 -0
- package/types/wirabyte-ui-selectbutton.d.ts +80 -0
- package/types/wirabyte-ui-sitefooter.d.ts +81 -0
- package/types/wirabyte-ui-skeleton.d.ts +35 -0
- package/types/wirabyte-ui-slider.d.ts +90 -0
- package/types/wirabyte-ui-splitbutton.d.ts +85 -0
- package/types/wirabyte-ui-splitter.d.ts +146 -0
- package/types/wirabyte-ui-stepper.d.ts +251 -0
- package/types/wirabyte-ui-steps.d.ts +68 -0
- package/types/wirabyte-ui-table.d.ts +1108 -0
- package/types/wirabyte-ui-tabmenu.d.ts +1 -0
- package/types/wirabyte-ui-tabs.d.ts +229 -0
- package/types/wirabyte-ui-tag.d.ts +35 -0
- package/types/wirabyte-ui-terminal.d.ts +89 -0
- package/types/wirabyte-ui-textarea.d.ts +37 -0
- package/types/wirabyte-ui-thai.d.ts +67 -0
- package/types/wirabyte-ui-tieredmenu.d.ts +100 -0
- package/types/wirabyte-ui-timeline.d.ts +54 -0
- package/types/wirabyte-ui-toast.d.ts +151 -0
- package/types/wirabyte-ui-togglebutton.d.ts +62 -0
- package/types/wirabyte-ui-toggleswitch.d.ts +57 -0
- package/types/wirabyte-ui-toolbar.d.ts +40 -0
- package/types/wirabyte-ui-tooltip.d.ts +112 -0
- package/types/wirabyte-ui-tree.d.ts +160 -0
- package/types/wirabyte-ui-treeselect.d.ts +150 -0
- package/types/wirabyte-ui-validation.d.ts +81 -0
- package/types/wirabyte-ui.d.ts +4 -0
- package/accordion/accordion.component.d.ts +0 -102
- package/accordion/accordion.module.d.ts +0 -9
- package/accordion/accordion.types.d.ts +0 -10
- package/accordion/index.d.ts +0 -5
- package/accordion/public-api.d.ts +0 -3
- package/alert/alert-dialog.base.d.ts +0 -79
- package/alert/alert-dialog.component.d.ts +0 -8
- package/alert/alert.module.d.ts +0 -8
- package/alert/alert.service.d.ts +0 -73
- package/alert/alert.types.d.ts +0 -87
- package/alert/index.d.ts +0 -5
- package/alert/public-api.d.ts +0 -5
- package/animate/animate.directive.d.ts +0 -34
- package/animate/animate.module.d.ts +0 -11
- package/animate/animate.service.d.ts +0 -36
- package/animate/animate.styles.d.ts +0 -2
- package/animate/animate.types.d.ts +0 -20
- package/animate/index.d.ts +0 -5
- package/animate/public-api.d.ts +0 -4
- package/api/index.d.ts +0 -5
- package/api/public-api.d.ts +0 -15
- package/api/shared.module.d.ts +0 -8
- package/asidemenu/asidemenu.component.d.ts +0 -221
- package/asidemenu/asidemenu.module.d.ts +0 -9
- package/asidemenu/index.d.ts +0 -5
- package/asidemenu/public-api.d.ts +0 -2
- package/autocomplete/autocomplete.base.d.ts +0 -181
- package/autocomplete/autocomplete.component.d.ts +0 -10
- package/autocomplete/autocomplete.module.d.ts +0 -9
- package/autocomplete/autocomplete.types.d.ts +0 -10
- package/autocomplete/index.d.ts +0 -5
- package/autocomplete/public-api.d.ts +0 -4
- package/avatar/avatar.component.d.ts +0 -36
- package/avatar/avatar.module.d.ts +0 -8
- package/avatar/avatar.types.d.ts +0 -2
- package/avatar/index.d.ts +0 -5
- package/avatar/public-api.d.ts +0 -3
- package/badge/badge.component.d.ts +0 -20
- package/badge/badge.directive.d.ts +0 -32
- package/badge/badge.module.d.ts +0 -9
- package/badge/badge.styles.d.ts +0 -2
- package/badge/badge.types.d.ts +0 -3
- package/badge/index.d.ts +0 -5
- package/badge/public-api.d.ts +0 -4
- package/blockui/blockui.component.d.ts +0 -41
- package/blockui/blockui.module.d.ts +0 -8
- package/blockui/index.d.ts +0 -5
- package/blockui/public-api.d.ts +0 -2
- package/bottombar/bottombar.component.d.ts +0 -79
- package/bottombar/bottombar.module.d.ts +0 -9
- package/bottombar/index.d.ts +0 -5
- package/bottombar/public-api.d.ts +0 -2
- package/breadcrumb/breadcrumb.component.d.ts +0 -41
- package/breadcrumb/breadcrumb.module.d.ts +0 -8
- package/breadcrumb/index.d.ts +0 -5
- package/breadcrumb/public-api.d.ts +0 -2
- package/button/button-class.d.ts +0 -8
- package/button/button.component.d.ts +0 -49
- package/button/button.directive.d.ts +0 -53
- package/button/button.module.d.ts +0 -9
- package/button/button.styles.d.ts +0 -2
- package/button/button.types.d.ts +0 -8
- package/button/index.d.ts +0 -5
- package/button/public-api.d.ts +0 -7
- package/card/card-slots.d.ts +0 -11
- package/card/card.component.d.ts +0 -38
- package/card/card.module.d.ts +0 -10
- package/card/card.types.d.ts +0 -5
- package/card/index.d.ts +0 -5
- package/card/public-api.d.ts +0 -4
- package/carousel/carousel.component.d.ts +0 -169
- package/carousel/carousel.module.d.ts +0 -10
- package/carousel/carousel.types.d.ts +0 -21
- package/carousel/index.d.ts +0 -5
- package/carousel/public-api.d.ts +0 -3
- package/chart/chart.component.d.ts +0 -11
- package/chart/chart.module.d.ts +0 -8
- package/chart/index.d.ts +0 -5
- package/chart/public-api.d.ts +0 -3
- package/chartjs/chartjs.base.d.ts +0 -70
- package/chartjs/chartjs.component.d.ts +0 -10
- package/chartjs/chartjs.module.d.ts +0 -8
- package/chartjs/chartjs.types.d.ts +0 -8
- package/chartjs/index.d.ts +0 -5
- package/chartjs/public-api.d.ts +0 -4
- package/checkbox/checkbox.component.d.ts +0 -47
- package/checkbox/checkbox.module.d.ts +0 -8
- package/checkbox/checkbox.styles.d.ts +0 -2
- package/checkbox/checkbox.types.d.ts +0 -4
- package/checkbox/index.d.ts +0 -5
- package/checkbox/public-api.d.ts +0 -5
- package/chip/chip.component.d.ts +0 -30
- package/chip/chip.module.d.ts +0 -8
- package/chip/index.d.ts +0 -5
- package/chip/public-api.d.ts +0 -2
- package/colorpicker/colorpicker.component.d.ts +0 -87
- package/colorpicker/colorpicker.module.d.ts +0 -8
- package/colorpicker/index.d.ts +0 -5
- package/colorpicker/public-api.d.ts +0 -2
- package/config/forms.d.ts +0 -17
- package/config/index.d.ts +0 -5
- package/config/initializer.d.ts +0 -3
- package/config/menu-item.d.ts +0 -52
- package/config/options.d.ts +0 -48
- package/config/popup.d.ts +0 -48
- package/config/provide.d.ts +0 -23
- package/config/public-api.d.ts +0 -17
- package/config/ripple.d.ts +0 -2
- package/config/scroll-lock.d.ts +0 -5
- package/config/severity.d.ts +0 -5
- package/config/style-loader.d.ts +0 -12
- package/config/template.d.ts +0 -19
- package/config/theme.service.d.ts +0 -46
- package/config/version-guard.d.ts +0 -14
- package/config/version.d.ts +0 -6
- package/config/wu-config.service.d.ts +0 -24
- package/confirmdialog/confirmation.service.d.ts +0 -25
- package/confirmdialog/confirmdialog.base.d.ts +0 -110
- package/confirmdialog/confirmdialog.component.d.ts +0 -11
- package/confirmdialog/confirmdialog.module.d.ts +0 -9
- package/confirmdialog/confirmdialog.types.d.ts +0 -37
- package/confirmdialog/index.d.ts +0 -5
- package/confirmdialog/public-api.d.ts +0 -5
- package/contextmenu/contextmenu.component.d.ts +0 -47
- package/contextmenu/contextmenu.module.d.ts +0 -8
- package/contextmenu/index.d.ts +0 -5
- package/contextmenu/public-api.d.ts +0 -2
- package/core/carousel.d.ts +0 -27
- package/core/catalog.d.ts +0 -446
- package/core/chart/format.d.ts +0 -19
- package/core/chart/index.d.ts +0 -6
- package/core/chart/kinds.d.ts +0 -78
- package/core/chart/model.d.ts +0 -500
- package/core/chart/more.d.ts +0 -33
- package/core/chart/paths.d.ts +0 -41
- package/core/chart/scale.d.ts +0 -22
- package/core/color.d.ts +0 -31
- package/core/colorpicker.d.ts +0 -23
- package/core/compat.d.ts +0 -11
- package/core/config.d.ts +0 -64
- package/core/date.d.ts +0 -130
- package/core/datepicker.d.ts +0 -184
- package/core/dock.d.ts +0 -6
- package/core/editor.d.ts +0 -117
- package/core/errorpage.d.ts +0 -15
- package/core/excel.d.ts +0 -239
- package/core/exporters.d.ts +0 -18
- package/core/families.d.ts +0 -13
- package/core/fileupload.d.ts +0 -24
- package/core/flow/changes.d.ts +0 -63
- package/core/flow/edges.d.ts +0 -52
- package/core/flow/export.d.ts +0 -56
- package/core/flow/geometry.d.ts +0 -117
- package/core/flow/graph.d.ts +0 -104
- package/core/flow/history.d.ts +0 -54
- package/core/flow/index.d.ts +0 -13
- package/core/flow/interaction.d.ts +0 -140
- package/core/flow/layout.d.ts +0 -57
- package/core/flow/paths.d.ts +0 -76
- package/core/flow/text.d.ts +0 -18
- package/core/flow/types.d.ts +0 -217
- package/core/flow/viewport.d.ts +0 -48
- package/core/i18n.d.ts +0 -24
- package/core/imagecompare.d.ts +0 -12
- package/core/imagecropper.d.ts +0 -183
- package/core/index.d.ts +0 -39
- package/core/inputotp.d.ts +0 -20
- package/core/knob.d.ts +0 -28
- package/core/mask.d.ts +0 -43
- package/core/menu.d.ts +0 -29
- package/core/number.d.ts +0 -66
- package/core/organizationchart.d.ts +0 -39
- package/core/overrides.d.ts +0 -109
- package/core/picklist.d.ts +0 -81
- package/core/select.d.ts +0 -44
- package/core/splitter.d.ts +0 -17
- package/core/table.d.ts +0 -48
- package/core/terminal.d.ts +0 -12
- package/core/thai/buddhist.d.ts +0 -22
- package/core/thai/locale.d.ts +0 -358
- package/core/thai/text.d.ts +0 -32
- package/core/thai/thai-id.d.ts +0 -6
- package/core/tokens.d.ts +0 -69
- package/core/tree.d.ts +0 -50
- package/core/validation.d.ts +0 -18
- package/datepicker/datepicker.component.d.ts +0 -230
- package/datepicker/datepicker.module.d.ts +0 -8
- package/datepicker/datepicker.types.d.ts +0 -10
- package/datepicker/index.d.ts +0 -5
- package/datepicker/public-api.d.ts +0 -3
- package/dialog/dialog.base.d.ts +0 -147
- package/dialog/dialog.component.d.ts +0 -11
- package/dialog/dialog.module.d.ts +0 -10
- package/dialog/dialog.service.d.ts +0 -104
- package/dialog/dialog.types.d.ts +0 -3
- package/dialog/index.d.ts +0 -5
- package/dialog/public-api.d.ts +0 -5
- package/divider/divider.component.d.ts +0 -19
- package/divider/divider.module.d.ts +0 -8
- package/divider/divider.types.d.ts +0 -4
- package/divider/index.d.ts +0 -5
- package/divider/public-api.d.ts +0 -3
- package/dock/dock.component.d.ts +0 -88
- package/dock/dock.module.d.ts +0 -9
- package/dock/index.d.ts +0 -5
- package/dock/public-api.d.ts +0 -2
- package/dragdrop/dragdrop.directive.d.ts +0 -65
- package/dragdrop/dragdrop.module.d.ts +0 -8
- package/dragdrop/dragdrop.styles.d.ts +0 -2
- package/dragdrop/index.d.ts +0 -5
- package/dragdrop/public-api.d.ts +0 -2
- package/drawer/drawer.component.d.ts +0 -102
- package/drawer/drawer.module.d.ts +0 -8
- package/drawer/index.d.ts +0 -5
- package/drawer/public-api.d.ts +0 -5
- package/editor/editor-content.directive.d.ts +0 -10
- package/editor/editor-icon.directive.d.ts +0 -8
- package/editor/editor.base.d.ts +0 -367
- package/editor/editor.component.d.ts +0 -11
- package/editor/editor.dom.d.ts +0 -91
- package/editor/editor.icons.d.ts +0 -13
- package/editor/editor.module.d.ts +0 -10
- package/editor/editor.styles.d.ts +0 -2
- package/editor/editor.types.d.ts +0 -92
- package/editor/index.d.ts +0 -5
- package/editor/public-api.d.ts +0 -6
- package/emptystate/emptystate.component.d.ts +0 -44
- package/emptystate/emptystate.module.d.ts +0 -8
- package/emptystate/index.d.ts +0 -5
- package/emptystate/public-api.d.ts +0 -2
- package/errorpage/errorpage.component.d.ts +0 -73
- package/errorpage/errorpage.module.d.ts +0 -8
- package/errorpage/index.d.ts +0 -5
- package/errorpage/public-api.d.ts +0 -2
- package/esm2022/accordion/accordion.component.mjs +0 -285
- package/esm2022/accordion/accordion.module.mjs +0 -19
- package/esm2022/accordion/accordion.types.mjs +0 -17
- package/esm2022/accordion/public-api.mjs +0 -4
- package/esm2022/accordion/wirabyte-ui-accordion.mjs +0 -5
- package/esm2022/alert/alert-dialog.base.mjs +0 -355
- package/esm2022/alert/alert-dialog.component.mjs +0 -21
- package/esm2022/alert/alert.module.mjs +0 -17
- package/esm2022/alert/alert.service.mjs +0 -142
- package/esm2022/alert/alert.types.mjs +0 -2
- package/esm2022/alert/public-api.mjs +0 -6
- package/esm2022/alert/wirabyte-ui-alert.mjs +0 -5
- package/esm2022/animate/animate.directive.mjs +0 -71
- package/esm2022/animate/animate.module.mjs +0 -21
- package/esm2022/animate/animate.service.mjs +0 -183
- package/esm2022/animate/animate.styles.mjs +0 -3
- package/esm2022/animate/animate.types.mjs +0 -2
- package/esm2022/animate/public-api.mjs +0 -5
- package/esm2022/animate/wirabyte-ui-animate.mjs +0 -5
- package/esm2022/api/public-api.mjs +0 -11
- package/esm2022/api/shared.module.mjs +0 -17
- package/esm2022/api/wirabyte-ui-api.mjs +0 -5
- package/esm2022/asidemenu/asidemenu.component.mjs +0 -811
- package/esm2022/asidemenu/asidemenu.module.mjs +0 -18
- package/esm2022/asidemenu/public-api.mjs +0 -3
- package/esm2022/asidemenu/wirabyte-ui-asidemenu.mjs +0 -5
- package/esm2022/autocomplete/autocomplete.base.mjs +0 -567
- package/esm2022/autocomplete/autocomplete.component.mjs +0 -24
- package/esm2022/autocomplete/autocomplete.module.mjs +0 -18
- package/esm2022/autocomplete/autocomplete.types.mjs +0 -2
- package/esm2022/autocomplete/public-api.mjs +0 -5
- package/esm2022/autocomplete/wirabyte-ui-autocomplete.mjs +0 -5
- package/esm2022/avatar/avatar.component.mjs +0 -68
- package/esm2022/avatar/avatar.module.mjs +0 -17
- package/esm2022/avatar/avatar.types.mjs +0 -2
- package/esm2022/avatar/public-api.mjs +0 -4
- package/esm2022/avatar/wirabyte-ui-avatar.mjs +0 -5
- package/esm2022/badge/badge.component.mjs +0 -49
- package/esm2022/badge/badge.directive.mjs +0 -111
- package/esm2022/badge/badge.module.mjs +0 -18
- package/esm2022/badge/badge.styles.mjs +0 -3
- package/esm2022/badge/badge.types.mjs +0 -2
- package/esm2022/badge/public-api.mjs +0 -5
- package/esm2022/badge/wirabyte-ui-badge.mjs +0 -5
- package/esm2022/blockui/blockui.component.mjs +0 -152
- package/esm2022/blockui/blockui.module.mjs +0 -17
- package/esm2022/blockui/public-api.mjs +0 -3
- package/esm2022/blockui/wirabyte-ui-blockui.mjs +0 -5
- package/esm2022/bottombar/bottombar.component.mjs +0 -209
- package/esm2022/bottombar/bottombar.module.mjs +0 -18
- package/esm2022/bottombar/public-api.mjs +0 -3
- package/esm2022/bottombar/wirabyte-ui-bottombar.mjs +0 -5
- package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -86
- package/esm2022/breadcrumb/breadcrumb.module.mjs +0 -17
- package/esm2022/breadcrumb/public-api.mjs +0 -3
- package/esm2022/breadcrumb/wirabyte-ui-breadcrumb.mjs +0 -5
- package/esm2022/button/button-class.mjs +0 -26
- package/esm2022/button/button.component.mjs +0 -110
- package/esm2022/button/button.directive.mjs +0 -193
- package/esm2022/button/button.module.mjs +0 -18
- package/esm2022/button/button.styles.mjs +0 -3
- package/esm2022/button/button.types.mjs +0 -2
- package/esm2022/button/public-api.mjs +0 -8
- package/esm2022/button/wirabyte-ui-button.mjs +0 -5
- package/esm2022/card/card-slots.mjs +0 -27
- package/esm2022/card/card.component.mjs +0 -65
- package/esm2022/card/card.module.mjs +0 -19
- package/esm2022/card/card.types.mjs +0 -2
- package/esm2022/card/public-api.mjs +0 -5
- package/esm2022/card/wirabyte-ui-card.mjs +0 -5
- package/esm2022/carousel/carousel.component.mjs +0 -617
- package/esm2022/carousel/carousel.module.mjs +0 -19
- package/esm2022/carousel/carousel.types.mjs +0 -2
- package/esm2022/carousel/public-api.mjs +0 -4
- package/esm2022/carousel/wirabyte-ui-carousel.mjs +0 -5
- package/esm2022/chart/chart.component.mjs +0 -42
- package/esm2022/chart/chart.module.mjs +0 -17
- package/esm2022/chart/public-api.mjs +0 -3
- package/esm2022/chart/wirabyte-ui-chart.mjs +0 -5
- package/esm2022/chartjs/chartjs.base.mjs +0 -204
- package/esm2022/chartjs/chartjs.component.mjs +0 -41
- package/esm2022/chartjs/chartjs.module.mjs +0 -17
- package/esm2022/chartjs/chartjs.types.mjs +0 -2
- package/esm2022/chartjs/public-api.mjs +0 -5
- package/esm2022/chartjs/wirabyte-ui-chartjs.mjs +0 -5
- package/esm2022/checkbox/checkbox.component.mjs +0 -93
- package/esm2022/checkbox/checkbox.module.mjs +0 -17
- package/esm2022/checkbox/checkbox.styles.mjs +0 -3
- package/esm2022/checkbox/checkbox.types.mjs +0 -2
- package/esm2022/checkbox/public-api.mjs +0 -6
- package/esm2022/checkbox/wirabyte-ui-checkbox.mjs +0 -5
- package/esm2022/chip/chip.component.mjs +0 -59
- package/esm2022/chip/chip.module.mjs +0 -17
- package/esm2022/chip/public-api.mjs +0 -3
- package/esm2022/chip/wirabyte-ui-chip.mjs +0 -5
- package/esm2022/colorpicker/colorpicker.component.mjs +0 -308
- package/esm2022/colorpicker/colorpicker.module.mjs +0 -17
- package/esm2022/colorpicker/public-api.mjs +0 -3
- package/esm2022/colorpicker/wirabyte-ui-colorpicker.mjs +0 -5
- package/esm2022/config/forms.mjs +0 -38
- package/esm2022/config/initializer.mjs +0 -6
- package/esm2022/config/menu-item.mjs +0 -2
- package/esm2022/config/options.mjs +0 -3
- package/esm2022/config/popup.mjs +0 -153
- package/esm2022/config/provide.mjs +0 -45
- package/esm2022/config/public-api.mjs +0 -17
- package/esm2022/config/ripple.mjs +0 -13
- package/esm2022/config/scroll-lock.mjs +0 -31
- package/esm2022/config/severity.mjs +0 -9
- package/esm2022/config/style-loader.mjs +0 -32
- package/esm2022/config/template.mjs +0 -46
- package/esm2022/config/theme.service.mjs +0 -161
- package/esm2022/config/version-guard.mjs +0 -43
- package/esm2022/config/version.mjs +0 -3
- package/esm2022/config/wirabyte-ui-config.mjs +0 -5
- package/esm2022/config/wu-config.service.mjs +0 -50
- package/esm2022/confirmdialog/confirmation.service.mjs +0 -78
- package/esm2022/confirmdialog/confirmdialog.base.mjs +0 -274
- package/esm2022/confirmdialog/confirmdialog.component.mjs +0 -22
- package/esm2022/confirmdialog/confirmdialog.module.mjs +0 -18
- package/esm2022/confirmdialog/confirmdialog.types.mjs +0 -8
- package/esm2022/confirmdialog/public-api.mjs +0 -6
- package/esm2022/confirmdialog/wirabyte-ui-confirmdialog.mjs +0 -5
- package/esm2022/contextmenu/contextmenu.component.mjs +0 -159
- package/esm2022/contextmenu/contextmenu.module.mjs +0 -17
- package/esm2022/contextmenu/public-api.mjs +0 -3
- package/esm2022/contextmenu/wirabyte-ui-contextmenu.mjs +0 -5
- package/esm2022/core/carousel.mjs +0 -62
- package/esm2022/core/catalog.mjs +0 -203
- package/esm2022/core/chart/format.mjs +0 -66
- package/esm2022/core/chart/index.mjs +0 -7
- package/esm2022/core/chart/kinds.mjs +0 -1336
- package/esm2022/core/chart/model.mjs +0 -713
- package/esm2022/core/chart/more.mjs +0 -311
- package/esm2022/core/chart/paths.mjs +0 -160
- package/esm2022/core/chart/scale.mjs +0 -58
- package/esm2022/core/color.mjs +0 -94
- package/esm2022/core/colorpicker.mjs +0 -73
- package/esm2022/core/compat.mjs +0 -149
- package/esm2022/core/config.mjs +0 -163
- package/esm2022/core/date.mjs +0 -317
- package/esm2022/core/datepicker.mjs +0 -526
- package/esm2022/core/dock.mjs +0 -14
- package/esm2022/core/editor.mjs +0 -271
- package/esm2022/core/errorpage.mjs +0 -47
- package/esm2022/core/excel.mjs +0 -809
- package/esm2022/core/exporters.mjs +0 -241
- package/esm2022/core/families.mjs +0 -1756
- package/esm2022/core/fileupload.mjs +0 -48
- package/esm2022/core/flow/changes.mjs +0 -205
- package/esm2022/core/flow/edges.mjs +0 -87
- package/esm2022/core/flow/export.mjs +0 -231
- package/esm2022/core/flow/geometry.mjs +0 -309
- package/esm2022/core/flow/graph.mjs +0 -314
- package/esm2022/core/flow/history.mjs +0 -105
- package/esm2022/core/flow/index.mjs +0 -14
- package/esm2022/core/flow/interaction.mjs +0 -246
- package/esm2022/core/flow/layout.mjs +0 -586
- package/esm2022/core/flow/paths.mjs +0 -252
- package/esm2022/core/flow/text.mjs +0 -68
- package/esm2022/core/flow/types.mjs +0 -7
- package/esm2022/core/flow/viewport.mjs +0 -133
- package/esm2022/core/i18n.mjs +0 -78
- package/esm2022/core/imagecompare.mjs +0 -28
- package/esm2022/core/imagecropper.mjs +0 -483
- package/esm2022/core/index.mjs +0 -40
- package/esm2022/core/inputotp.mjs +0 -50
- package/esm2022/core/knob.mjs +0 -106
- package/esm2022/core/mask.mjs +0 -112
- package/esm2022/core/menu.mjs +0 -77
- package/esm2022/core/number.mjs +0 -131
- package/esm2022/core/organizationchart.mjs +0 -84
- package/esm2022/core/overrides.mjs +0 -169
- package/esm2022/core/picklist.mjs +0 -248
- package/esm2022/core/select.mjs +0 -161
- package/esm2022/core/splitter.mjs +0 -63
- package/esm2022/core/table.mjs +0 -174
- package/esm2022/core/terminal.mjs +0 -29
- package/esm2022/core/thai/buddhist.mjs +0 -129
- package/esm2022/core/thai/locale.mjs +0 -652
- package/esm2022/core/thai/text.mjs +0 -164
- package/esm2022/core/thai/thai-id.mjs +0 -22
- package/esm2022/core/tokens.mjs +0 -314
- package/esm2022/core/tree.mjs +0 -137
- package/esm2022/core/validation.mjs +0 -43
- package/esm2022/core/wirabyte-ui-core.mjs +0 -5
- package/esm2022/datepicker/datepicker.component.mjs +0 -715
- package/esm2022/datepicker/datepicker.module.mjs +0 -17
- package/esm2022/datepicker/datepicker.types.mjs +0 -2
- package/esm2022/datepicker/public-api.mjs +0 -4
- package/esm2022/datepicker/wirabyte-ui-datepicker.mjs +0 -5
- package/esm2022/dialog/dialog.base.mjs +0 -433
- package/esm2022/dialog/dialog.component.mjs +0 -18
- package/esm2022/dialog/dialog.module.mjs +0 -19
- package/esm2022/dialog/dialog.service.mjs +0 -237
- package/esm2022/dialog/dialog.types.mjs +0 -2
- package/esm2022/dialog/public-api.mjs +0 -6
- package/esm2022/dialog/wirabyte-ui-dialog.mjs +0 -5
- package/esm2022/divider/divider.component.mjs +0 -47
- package/esm2022/divider/divider.module.mjs +0 -17
- package/esm2022/divider/divider.types.mjs +0 -2
- package/esm2022/divider/public-api.mjs +0 -4
- package/esm2022/divider/wirabyte-ui-divider.mjs +0 -5
- package/esm2022/dock/dock.component.mjs +0 -287
- package/esm2022/dock/dock.module.mjs +0 -18
- package/esm2022/dock/public-api.mjs +0 -3
- package/esm2022/dock/wirabyte-ui-dock.mjs +0 -5
- package/esm2022/dragdrop/dragdrop.directive.mjs +0 -206
- package/esm2022/dragdrop/dragdrop.module.mjs +0 -17
- package/esm2022/dragdrop/dragdrop.styles.mjs +0 -3
- package/esm2022/dragdrop/public-api.mjs +0 -3
- package/esm2022/dragdrop/wirabyte-ui-dragdrop.mjs +0 -5
- package/esm2022/drawer/drawer.component.mjs +0 -300
- package/esm2022/drawer/drawer.module.mjs +0 -17
- package/esm2022/drawer/public-api.mjs +0 -6
- package/esm2022/drawer/wirabyte-ui-drawer.mjs +0 -5
- package/esm2022/editor/editor-content.directive.mjs +0 -24
- package/esm2022/editor/editor-icon.directive.mjs +0 -24
- package/esm2022/editor/editor.base.mjs +0 -2082
- package/esm2022/editor/editor.component.mjs +0 -20
- package/esm2022/editor/editor.dom.mjs +0 -787
- package/esm2022/editor/editor.icons.mjs +0 -106
- package/esm2022/editor/editor.module.mjs +0 -19
- package/esm2022/editor/editor.styles.mjs +0 -3
- package/esm2022/editor/editor.types.mjs +0 -6
- package/esm2022/editor/public-api.mjs +0 -7
- package/esm2022/editor/wirabyte-ui-editor.mjs +0 -5
- package/esm2022/emptystate/emptystate.component.mjs +0 -78
- package/esm2022/emptystate/emptystate.module.mjs +0 -17
- package/esm2022/emptystate/public-api.mjs +0 -3
- package/esm2022/emptystate/wirabyte-ui-emptystate.mjs +0 -5
- package/esm2022/errorpage/errorpage.component.mjs +0 -163
- package/esm2022/errorpage/errorpage.module.mjs +0 -17
- package/esm2022/errorpage/public-api.mjs +0 -3
- package/esm2022/errorpage/wirabyte-ui-errorpage.mjs +0 -5
- package/esm2022/excel/excel.mjs +0 -35
- package/esm2022/excel/public-api.mjs +0 -3
- package/esm2022/excel/wirabyte-ui-excel.mjs +0 -5
- package/esm2022/fieldset/fieldset.component.mjs +0 -53
- package/esm2022/fieldset/fieldset.module.mjs +0 -18
- package/esm2022/fieldset/public-api.mjs +0 -3
- package/esm2022/fieldset/wirabyte-ui-fieldset.mjs +0 -5
- package/esm2022/fileupload/fileupload.base.mjs +0 -563
- package/esm2022/fileupload/fileupload.component.mjs +0 -19
- package/esm2022/fileupload/fileupload.module.mjs +0 -18
- package/esm2022/fileupload/fileupload.types.mjs +0 -2
- package/esm2022/fileupload/public-api.mjs +0 -5
- package/esm2022/fileupload/wirabyte-ui-fileupload.mjs +0 -5
- package/esm2022/floatlabel/floatlabel.component.mjs +0 -53
- package/esm2022/floatlabel/floatlabel.module.mjs +0 -17
- package/esm2022/floatlabel/floatlabel.types.mjs +0 -2
- package/esm2022/floatlabel/public-api.mjs +0 -4
- package/esm2022/floatlabel/wirabyte-ui-floatlabel.mjs +0 -5
- package/esm2022/flow/flow-background.component.mjs +0 -183
- package/esm2022/flow/flow-controls.component.mjs +0 -267
- package/esm2022/flow/flow-handle.component.mjs +0 -130
- package/esm2022/flow/flow-history.directive.mjs +0 -129
- package/esm2022/flow/flow-host.mjs +0 -7
- package/esm2022/flow/flow-minimap.component.mjs +0 -322
- package/esm2022/flow/flow-node-outlet.mjs +0 -148
- package/esm2022/flow/flow-node-resizer.component.mjs +0 -208
- package/esm2022/flow/flow-node-toolbar.component.mjs +0 -119
- package/esm2022/flow/flow-panel.component.mjs +0 -37
- package/esm2022/flow/flow-templates.mjs +0 -100
- package/esm2022/flow/flow.component.mjs +0 -3245
- package/esm2022/flow/flow.module.mjs +0 -69
- package/esm2022/flow/flow.types.mjs +0 -7
- package/esm2022/flow/public-api.mjs +0 -17
- package/esm2022/flow/wirabyte-ui-flow.mjs +0 -5
- package/esm2022/galleria/galleria.component.mjs +0 -480
- package/esm2022/galleria/galleria.module.mjs +0 -17
- package/esm2022/galleria/public-api.mjs +0 -3
- package/esm2022/galleria/wirabyte-ui-galleria.mjs +0 -5
- package/esm2022/i18n/i18n.module.mjs +0 -37
- package/esm2022/i18n/i18n.service.mjs +0 -148
- package/esm2022/i18n/i18n.types.mjs +0 -3
- package/esm2022/i18n/language-switch.component.mjs +0 -91
- package/esm2022/i18n/public-api.mjs +0 -7
- package/esm2022/i18n/translate.pipe.mjs +0 -52
- package/esm2022/i18n/wirabyte-ui-i18n.mjs +0 -5
- package/esm2022/iconfield/iconfield.component.mjs +0 -73
- package/esm2022/iconfield/iconfield.module.mjs +0 -17
- package/esm2022/iconfield/public-api.mjs +0 -3
- package/esm2022/iconfield/wirabyte-ui-iconfield.mjs +0 -5
- package/esm2022/image/image.base.mjs +0 -183
- package/esm2022/image/image.component.mjs +0 -14
- package/esm2022/image/image.module.mjs +0 -18
- package/esm2022/image/public-api.mjs +0 -4
- package/esm2022/image/wirabyte-ui-image.mjs +0 -5
- package/esm2022/imagecompare/imagecompare.component.mjs +0 -200
- package/esm2022/imagecompare/imagecompare.module.mjs +0 -18
- package/esm2022/imagecompare/public-api.mjs +0 -3
- package/esm2022/imagecompare/wirabyte-ui-imagecompare.mjs +0 -5
- package/esm2022/imagecropper/imagecropper.component.mjs +0 -1253
- package/esm2022/imagecropper/imagecropper.module.mjs +0 -17
- package/esm2022/imagecropper/imagecropper.types.mjs +0 -6
- package/esm2022/imagecropper/public-api.mjs +0 -5
- package/esm2022/imagecropper/wirabyte-ui-imagecropper.mjs +0 -5
- package/esm2022/inplace/inplace.component.mjs +0 -145
- package/esm2022/inplace/inplace.module.mjs +0 -17
- package/esm2022/inplace/public-api.mjs +0 -3
- package/esm2022/inplace/wirabyte-ui-inplace.mjs +0 -5
- package/esm2022/inputgroup/inputgroup.component.mjs +0 -61
- package/esm2022/inputgroup/inputgroup.module.mjs +0 -17
- package/esm2022/inputgroup/public-api.mjs +0 -3
- package/esm2022/inputgroup/wirabyte-ui-inputgroup.mjs +0 -5
- package/esm2022/inputmask/inputmask.base.mjs +0 -319
- package/esm2022/inputmask/inputmask.component.mjs +0 -23
- package/esm2022/inputmask/inputmask.module.mjs +0 -17
- package/esm2022/inputmask/public-api.mjs +0 -4
- package/esm2022/inputmask/wirabyte-ui-inputmask.mjs +0 -5
- package/esm2022/inputnumber/inputnumber.component.mjs +0 -255
- package/esm2022/inputnumber/inputnumber.module.mjs +0 -17
- package/esm2022/inputnumber/inputnumber.types.mjs +0 -2
- package/esm2022/inputnumber/public-api.mjs +0 -4
- package/esm2022/inputnumber/wirabyte-ui-inputnumber.mjs +0 -5
- package/esm2022/inputotp/inputotp.component.mjs +0 -344
- package/esm2022/inputotp/inputotp.module.mjs +0 -18
- package/esm2022/inputotp/inputotp.types.mjs +0 -2
- package/esm2022/inputotp/public-api.mjs +0 -4
- package/esm2022/inputotp/wirabyte-ui-inputotp.mjs +0 -5
- package/esm2022/inputtext/inputtext.directive.mjs +0 -54
- package/esm2022/inputtext/inputtext.module.mjs +0 -17
- package/esm2022/inputtext/inputtext.styles.mjs +0 -3
- package/esm2022/inputtext/inputtext.types.mjs +0 -2
- package/esm2022/inputtext/public-api.mjs +0 -6
- package/esm2022/inputtext/wirabyte-ui-inputtext.mjs +0 -5
- package/esm2022/keyfilter/keyfilter.directive.mjs +0 -131
- package/esm2022/keyfilter/keyfilter.module.mjs +0 -17
- package/esm2022/keyfilter/public-api.mjs +0 -3
- package/esm2022/keyfilter/wirabyte-ui-keyfilter.mjs +0 -5
- package/esm2022/knob/knob.component.mjs +0 -207
- package/esm2022/knob/knob.module.mjs +0 -17
- package/esm2022/knob/public-api.mjs +0 -3
- package/esm2022/knob/wirabyte-ui-knob.mjs +0 -5
- package/esm2022/listbox/listbox.component.mjs +0 -520
- package/esm2022/listbox/listbox.module.mjs +0 -17
- package/esm2022/listbox/public-api.mjs +0 -3
- package/esm2022/listbox/wirabyte-ui-listbox.mjs +0 -5
- package/esm2022/menu/menu.base.mjs +0 -320
- package/esm2022/menu/menu.component.mjs +0 -19
- package/esm2022/menu/menu.module.mjs +0 -18
- package/esm2022/menu/public-api.mjs +0 -4
- package/esm2022/menu/wirabyte-ui-menu.mjs +0 -5
- package/esm2022/menubar/menubar.base.mjs +0 -568
- package/esm2022/menubar/menubar.component.mjs +0 -19
- package/esm2022/menubar/menubar.module.mjs +0 -18
- package/esm2022/menubar/public-api.mjs +0 -4
- package/esm2022/menubar/wirabyte-ui-menubar.mjs +0 -5
- package/esm2022/message/message.component.mjs +0 -78
- package/esm2022/message/message.module.mjs +0 -20
- package/esm2022/message/message.types.mjs +0 -2
- package/esm2022/message/messages.base.mjs +0 -109
- package/esm2022/message/messages.component.mjs +0 -66
- package/esm2022/message/public-api.mjs +0 -6
- package/esm2022/message/wirabyte-ui-message.mjs +0 -5
- package/esm2022/metergroup/metergroup.component.mjs +0 -87
- package/esm2022/metergroup/metergroup.module.mjs +0 -17
- package/esm2022/metergroup/metergroup.types.mjs +0 -26
- package/esm2022/metergroup/public-api.mjs +0 -4
- package/esm2022/metergroup/wirabyte-ui-metergroup.mjs +0 -5
- package/esm2022/multiselect/multiselect.base.mjs +0 -732
- package/esm2022/multiselect/multiselect.component.mjs +0 -26
- package/esm2022/multiselect/multiselect.module.mjs +0 -18
- package/esm2022/multiselect/multiselect.styles.mjs +0 -3
- package/esm2022/multiselect/multiselect.types.mjs +0 -2
- package/esm2022/multiselect/public-api.mjs +0 -6
- package/esm2022/multiselect/wirabyte-ui-multiselect.mjs +0 -5
- package/esm2022/navbar/navbar.component.mjs +0 -460
- package/esm2022/navbar/navbar.module.mjs +0 -18
- package/esm2022/navbar/public-api.mjs +0 -3
- package/esm2022/navbar/wirabyte-ui-navbar.mjs +0 -5
- package/esm2022/orderlist/orderlist.base.mjs +0 -411
- package/esm2022/orderlist/orderlist.component.mjs +0 -17
- package/esm2022/orderlist/orderlist.module.mjs +0 -18
- package/esm2022/orderlist/orderlist.types.mjs +0 -2
- package/esm2022/orderlist/public-api.mjs +0 -5
- package/esm2022/orderlist/wirabyte-ui-orderlist.mjs +0 -5
- package/esm2022/organizationchart/organizationchart.component.mjs +0 -200
- package/esm2022/organizationchart/organizationchart.module.mjs +0 -18
- package/esm2022/organizationchart/organizationchart.types.mjs +0 -2
- package/esm2022/organizationchart/public-api.mjs +0 -4
- package/esm2022/organizationchart/wirabyte-ui-organizationchart.mjs +0 -5
- package/esm2022/paginator/paginator.base.mjs +0 -188
- package/esm2022/paginator/paginator.component.mjs +0 -20
- package/esm2022/paginator/paginator.module.mjs +0 -17
- package/esm2022/paginator/paginator.types.mjs +0 -2
- package/esm2022/paginator/public-api.mjs +0 -5
- package/esm2022/paginator/wirabyte-ui-paginator.mjs +0 -5
- package/esm2022/panel/panel.component.mjs +0 -75
- package/esm2022/panel/panel.module.mjs +0 -19
- package/esm2022/panel/panel.types.mjs +0 -2
- package/esm2022/panel/public-api.mjs +0 -4
- package/esm2022/panel/wirabyte-ui-panel.mjs +0 -5
- package/esm2022/panelmenu/panelmenu.base.mjs +0 -181
- package/esm2022/panelmenu/panelmenu.component.mjs +0 -15
- package/esm2022/panelmenu/panelmenu.module.mjs +0 -18
- package/esm2022/panelmenu/public-api.mjs +0 -4
- package/esm2022/panelmenu/wirabyte-ui-panelmenu.mjs +0 -5
- package/esm2022/password/password.component.mjs +0 -171
- package/esm2022/password/password.module.mjs +0 -17
- package/esm2022/password/password.types.mjs +0 -14
- package/esm2022/password/public-api.mjs +0 -4
- package/esm2022/password/wirabyte-ui-password.mjs +0 -5
- package/esm2022/picklist/list-drag.mjs +0 -259
- package/esm2022/picklist/picklist.base.mjs +0 -649
- package/esm2022/picklist/picklist.component.mjs +0 -17
- package/esm2022/picklist/picklist.module.mjs +0 -18
- package/esm2022/picklist/picklist.styles.mjs +0 -3
- package/esm2022/picklist/picklist.types.mjs +0 -2
- package/esm2022/picklist/public-api.mjs +0 -8
- package/esm2022/picklist/wirabyte-ui-picklist.mjs +0 -5
- package/esm2022/popover/popover.base.mjs +0 -171
- package/esm2022/popover/popover.component.mjs +0 -17
- package/esm2022/popover/popover.module.mjs +0 -18
- package/esm2022/popover/public-api.mjs +0 -4
- package/esm2022/popover/wirabyte-ui-popover.mjs +0 -5
- package/esm2022/presets/public-api.mjs +0 -5
- package/esm2022/presets/wirabyte-ui-presets.mjs +0 -5
- package/esm2022/progressbar/progressbar.component.mjs +0 -75
- package/esm2022/progressbar/progressbar.module.mjs +0 -17
- package/esm2022/progressbar/progressbar.types.mjs +0 -19
- package/esm2022/progressbar/public-api.mjs +0 -4
- package/esm2022/progressbar/wirabyte-ui-progressbar.mjs +0 -5
- package/esm2022/progressspinner/progressspinner.component.mjs +0 -78
- package/esm2022/progressspinner/progressspinner.module.mjs +0 -17
- package/esm2022/progressspinner/progressspinner.types.mjs +0 -27
- package/esm2022/progressspinner/public-api.mjs +0 -4
- package/esm2022/progressspinner/wirabyte-ui-progressspinner.mjs +0 -5
- package/esm2022/public-api.mjs +0 -3
- package/esm2022/radiobutton/public-api.mjs +0 -7
- package/esm2022/radiobutton/radio-registry.mjs +0 -40
- package/esm2022/radiobutton/radiobutton.component.mjs +0 -88
- package/esm2022/radiobutton/radiobutton.module.mjs +0 -17
- package/esm2022/radiobutton/radiobutton.styles.mjs +0 -3
- package/esm2022/radiobutton/radiobutton.types.mjs +0 -2
- package/esm2022/radiobutton/wirabyte-ui-radiobutton.mjs +0 -5
- package/esm2022/rating/public-api.mjs +0 -4
- package/esm2022/rating/rating.component.mjs +0 -80
- package/esm2022/rating/rating.module.mjs +0 -17
- package/esm2022/rating/rating.types.mjs +0 -2
- package/esm2022/rating/wirabyte-ui-rating.mjs +0 -5
- package/esm2022/result/public-api.mjs +0 -3
- package/esm2022/result/result.component.mjs +0 -72
- package/esm2022/result/result.module.mjs +0 -17
- package/esm2022/result/wirabyte-ui-result.mjs +0 -5
- package/esm2022/ripple/public-api.mjs +0 -3
- package/esm2022/ripple/ripple.directive.mjs +0 -43
- package/esm2022/ripple/ripple.module.mjs +0 -17
- package/esm2022/ripple/ripple.styles.mjs +0 -3
- package/esm2022/ripple/wirabyte-ui-ripple.mjs +0 -5
- package/esm2022/scroller/public-api.mjs +0 -6
- package/esm2022/scroller/scroller.component.mjs +0 -305
- package/esm2022/scroller/scroller.module.mjs +0 -17
- package/esm2022/scroller/wirabyte-ui-scroller.mjs +0 -5
- package/esm2022/scrollpanel/public-api.mjs +0 -3
- package/esm2022/scrollpanel/scrollpanel.component.mjs +0 -67
- package/esm2022/scrollpanel/scrollpanel.module.mjs +0 -17
- package/esm2022/scrollpanel/wirabyte-ui-scrollpanel.mjs +0 -5
- package/esm2022/select/public-api.mjs +0 -7
- package/esm2022/select/select.base.mjs +0 -667
- package/esm2022/select/select.component.mjs +0 -26
- package/esm2022/select/select.module.mjs +0 -17
- package/esm2022/select/select.styles.mjs +0 -3
- package/esm2022/select/select.types.mjs +0 -2
- package/esm2022/select/wirabyte-ui-select.mjs +0 -5
- package/esm2022/selectbutton/public-api.mjs +0 -4
- package/esm2022/selectbutton/selectbutton.component.mjs +0 -125
- package/esm2022/selectbutton/selectbutton.module.mjs +0 -18
- package/esm2022/selectbutton/selectbutton.types.mjs +0 -2
- package/esm2022/selectbutton/wirabyte-ui-selectbutton.mjs +0 -5
- package/esm2022/sitefooter/public-api.mjs +0 -3
- package/esm2022/sitefooter/sitefooter.component.mjs +0 -139
- package/esm2022/sitefooter/sitefooter.module.mjs +0 -18
- package/esm2022/sitefooter/wirabyte-ui-sitefooter.mjs +0 -5
- package/esm2022/skeleton/public-api.mjs +0 -4
- package/esm2022/skeleton/skeleton.component.mjs +0 -42
- package/esm2022/skeleton/skeleton.module.mjs +0 -17
- package/esm2022/skeleton/skeleton.types.mjs +0 -2
- package/esm2022/skeleton/wirabyte-ui-skeleton.mjs +0 -5
- package/esm2022/slider/public-api.mjs +0 -3
- package/esm2022/slider/slider.component.mjs +0 -247
- package/esm2022/slider/slider.module.mjs +0 -17
- package/esm2022/slider/wirabyte-ui-slider.mjs +0 -5
- package/esm2022/splitbutton/public-api.mjs +0 -3
- package/esm2022/splitbutton/splitbutton.component.mjs +0 -180
- package/esm2022/splitbutton/splitbutton.module.mjs +0 -17
- package/esm2022/splitbutton/wirabyte-ui-splitbutton.mjs +0 -5
- package/esm2022/splitter/public-api.mjs +0 -5
- package/esm2022/splitter/splitter-panel.component.mjs +0 -32
- package/esm2022/splitter/splitter.component.mjs +0 -372
- package/esm2022/splitter/splitter.module.mjs +0 -19
- package/esm2022/splitter/splitter.types.mjs +0 -2
- package/esm2022/splitter/wirabyte-ui-splitter.mjs +0 -5
- package/esm2022/stepper/public-api.mjs +0 -4
- package/esm2022/stepper/stepper.base.mjs +0 -392
- package/esm2022/stepper/stepper.component.mjs +0 -209
- package/esm2022/stepper/stepper.module.mjs +0 -19
- package/esm2022/stepper/wirabyte-ui-stepper.mjs +0 -5
- package/esm2022/steps/public-api.mjs +0 -4
- package/esm2022/steps/steps.base.mjs +0 -148
- package/esm2022/steps/steps.component.mjs +0 -15
- package/esm2022/steps/steps.module.mjs +0 -17
- package/esm2022/steps/wirabyte-ui-steps.mjs +0 -5
- package/esm2022/table/public-api.mjs +0 -10
- package/esm2022/table/table-celleditor.component.mjs +0 -48
- package/esm2022/table/table-filter.component.mjs +0 -144
- package/esm2022/table/table.base.mjs +0 -1443
- package/esm2022/table/table.celleditor.mjs +0 -42
- package/esm2022/table/table.component.mjs +0 -21
- package/esm2022/table/table.directives.mjs +0 -1117
- package/esm2022/table/table.filter.mjs +0 -346
- package/esm2022/table/table.module.mjs +0 -93
- package/esm2022/table/table.types.mjs +0 -3
- package/esm2022/table/wirabyte-ui-table.mjs +0 -5
- package/esm2022/tabmenu/public-api.mjs +0 -3
- package/esm2022/tabmenu/wirabyte-ui-tabmenu.mjs +0 -5
- package/esm2022/tabs/public-api.mjs +0 -9
- package/esm2022/tabs/tabmenu.base.mjs +0 -196
- package/esm2022/tabs/tabmenu.component.mjs +0 -18
- package/esm2022/tabs/tabmenu.module.mjs +0 -18
- package/esm2022/tabs/tabs.component.mjs +0 -352
- package/esm2022/tabs/tabs.module.mjs +0 -20
- package/esm2022/tabs/tabs.styles.mjs +0 -3
- package/esm2022/tabs/tabs.types.mjs +0 -50
- package/esm2022/tabs/wirabyte-ui-tabs.mjs +0 -5
- package/esm2022/tag/public-api.mjs +0 -4
- package/esm2022/tag/tag.component.mjs +0 -42
- package/esm2022/tag/tag.module.mjs +0 -17
- package/esm2022/tag/tag.types.mjs +0 -2
- package/esm2022/tag/wirabyte-ui-tag.mjs +0 -5
- package/esm2022/terminal/public-api.mjs +0 -6
- package/esm2022/terminal/terminal.component.mjs +0 -150
- package/esm2022/terminal/terminal.module.mjs +0 -17
- package/esm2022/terminal/terminal.service.mjs +0 -35
- package/esm2022/terminal/wirabyte-ui-terminal.mjs +0 -5
- package/esm2022/textarea/public-api.mjs +0 -3
- package/esm2022/textarea/textarea.directive.mjs +0 -75
- package/esm2022/textarea/textarea.module.mjs +0 -17
- package/esm2022/textarea/wirabyte-ui-textarea.mjs +0 -5
- package/esm2022/thai/public-api.mjs +0 -4
- package/esm2022/thai/thai.module.mjs +0 -18
- package/esm2022/thai/thai.pipes.mjs +0 -115
- package/esm2022/thai/wirabyte-ui-thai.mjs +0 -5
- package/esm2022/tieredmenu/public-api.mjs +0 -3
- package/esm2022/tieredmenu/tieredmenu.component.mjs +0 -385
- package/esm2022/tieredmenu/tieredmenu.module.mjs +0 -17
- package/esm2022/tieredmenu/wirabyte-ui-tieredmenu.mjs +0 -5
- package/esm2022/timeline/public-api.mjs +0 -4
- package/esm2022/timeline/timeline.base.mjs +0 -66
- package/esm2022/timeline/timeline.component.mjs +0 -68
- package/esm2022/timeline/timeline.module.mjs +0 -18
- package/esm2022/timeline/wirabyte-ui-timeline.mjs +0 -5
- package/esm2022/toast/message.service.mjs +0 -34
- package/esm2022/toast/public-api.mjs +0 -6
- package/esm2022/toast/toast.base.mjs +0 -227
- package/esm2022/toast/toast.component.mjs +0 -17
- package/esm2022/toast/toast.module.mjs +0 -18
- package/esm2022/toast/toast.types.mjs +0 -2
- package/esm2022/toast/wirabyte-ui-toast.mjs +0 -5
- package/esm2022/togglebutton/public-api.mjs +0 -4
- package/esm2022/togglebutton/togglebutton.component.mjs +0 -93
- package/esm2022/togglebutton/togglebutton.module.mjs +0 -17
- package/esm2022/togglebutton/togglebutton.types.mjs +0 -2
- package/esm2022/togglebutton/wirabyte-ui-togglebutton.mjs +0 -5
- package/esm2022/toggleswitch/public-api.mjs +0 -4
- package/esm2022/toggleswitch/toggleswitch.component.mjs +0 -78
- package/esm2022/toggleswitch/toggleswitch.module.mjs +0 -17
- package/esm2022/toggleswitch/toggleswitch.types.mjs +0 -2
- package/esm2022/toggleswitch/wirabyte-ui-toggleswitch.mjs +0 -5
- package/esm2022/toolbar/public-api.mjs +0 -3
- package/esm2022/toolbar/toolbar.component.mjs +0 -67
- package/esm2022/toolbar/toolbar.module.mjs +0 -18
- package/esm2022/toolbar/wirabyte-ui-toolbar.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -4
- package/esm2022/tooltip/tooltip.directive.mjs +0 -370
- package/esm2022/tooltip/tooltip.module.mjs +0 -17
- package/esm2022/tooltip/tooltip.styles.mjs +0 -3
- package/esm2022/tooltip/tooltip.types.mjs +0 -2
- package/esm2022/tooltip/wirabyte-ui-tooltip.mjs +0 -5
- package/esm2022/tree/public-api.mjs +0 -3
- package/esm2022/tree/tree.component.mjs +0 -453
- package/esm2022/tree/tree.module.mjs +0 -17
- package/esm2022/tree/wirabyte-ui-tree.mjs +0 -5
- package/esm2022/treeselect/public-api.mjs +0 -3
- package/esm2022/treeselect/treeselect.component.mjs +0 -410
- package/esm2022/treeselect/treeselect.module.mjs +0 -17
- package/esm2022/treeselect/wirabyte-ui-treeselect.mjs +0 -5
- package/esm2022/validation/field-error.component.mjs +0 -84
- package/esm2022/validation/public-api.mjs +0 -4
- package/esm2022/validation/validation.module.mjs +0 -19
- package/esm2022/validation/validators.mjs +0 -84
- package/esm2022/validation/wirabyte-ui-validation.mjs +0 -5
- package/esm2022/wirabyte-ui.mjs +0 -5
- package/excel/excel.d.ts +0 -24
- package/excel/index.d.ts +0 -5
- package/excel/public-api.d.ts +0 -3
- package/fieldset/fieldset.component.d.ts +0 -29
- package/fieldset/fieldset.module.d.ts +0 -9
- package/fieldset/index.d.ts +0 -5
- package/fieldset/public-api.d.ts +0 -2
- package/fileupload/fileupload.base.d.ts +0 -175
- package/fileupload/fileupload.component.d.ts +0 -11
- package/fileupload/fileupload.module.d.ts +0 -9
- package/fileupload/fileupload.types.d.ts +0 -54
- package/fileupload/index.d.ts +0 -5
- package/fileupload/public-api.d.ts +0 -4
- package/floatlabel/floatlabel.component.d.ts +0 -21
- package/floatlabel/floatlabel.module.d.ts +0 -8
- package/floatlabel/floatlabel.types.d.ts +0 -1
- package/floatlabel/index.d.ts +0 -5
- package/floatlabel/public-api.d.ts +0 -3
- package/flow/flow-background.component.d.ts +0 -49
- package/flow/flow-controls.component.d.ts +0 -47
- package/flow/flow-handle.component.d.ts +0 -48
- package/flow/flow-history.directive.d.ts +0 -42
- package/flow/flow-host.d.ts +0 -48
- package/flow/flow-minimap.component.d.ts +0 -79
- package/flow/flow-node-outlet.d.ts +0 -46
- package/flow/flow-node-resizer.component.d.ts +0 -57
- package/flow/flow-node-toolbar.component.d.ts +0 -38
- package/flow/flow-panel.component.d.ts +0 -11
- package/flow/flow-templates.d.ts +0 -47
- package/flow/flow.component.d.ts +0 -633
- package/flow/flow.module.d.ts +0 -21
- package/flow/flow.types.d.ts +0 -210
- package/flow/index.d.ts +0 -5
- package/flow/public-api.d.ts +0 -16
- package/galleria/galleria.component.d.ts +0 -163
- package/galleria/galleria.module.d.ts +0 -8
- package/galleria/index.d.ts +0 -5
- package/galleria/public-api.d.ts +0 -2
- package/i18n/i18n.module.d.ts +0 -22
- package/i18n/i18n.service.d.ts +0 -54
- package/i18n/i18n.types.d.ts +0 -33
- package/i18n/index.d.ts +0 -5
- package/i18n/language-switch.component.d.ts +0 -50
- package/i18n/public-api.d.ts +0 -6
- package/i18n/translate.pipe.d.ts +0 -25
- package/iconfield/iconfield.component.d.ts +0 -30
- package/iconfield/iconfield.module.d.ts +0 -8
- package/iconfield/index.d.ts +0 -5
- package/iconfield/public-api.d.ts +0 -2
- package/image/image.base.d.ts +0 -83
- package/image/image.component.d.ts +0 -7
- package/image/image.module.d.ts +0 -9
- package/image/index.d.ts +0 -5
- package/image/public-api.d.ts +0 -3
- package/imagecompare/imagecompare.component.d.ts +0 -67
- package/imagecompare/imagecompare.module.d.ts +0 -9
- package/imagecompare/index.d.ts +0 -5
- package/imagecompare/public-api.d.ts +0 -2
- package/imagecropper/imagecropper.component.d.ts +0 -309
- package/imagecropper/imagecropper.module.d.ts +0 -8
- package/imagecropper/imagecropper.types.d.ts +0 -79
- package/imagecropper/index.d.ts +0 -5
- package/imagecropper/public-api.d.ts +0 -4
- package/index.d.ts +0 -5
- package/inplace/index.d.ts +0 -5
- package/inplace/inplace.component.d.ts +0 -59
- package/inplace/inplace.module.d.ts +0 -8
- package/inplace/public-api.d.ts +0 -2
- package/inputgroup/index.d.ts +0 -5
- package/inputgroup/inputgroup.component.d.ts +0 -26
- package/inputgroup/inputgroup.module.d.ts +0 -8
- package/inputgroup/public-api.d.ts +0 -2
- package/inputmask/index.d.ts +0 -5
- package/inputmask/inputmask.base.d.ts +0 -115
- package/inputmask/inputmask.component.d.ts +0 -10
- package/inputmask/inputmask.module.d.ts +0 -8
- package/inputmask/public-api.d.ts +0 -3
- package/inputnumber/index.d.ts +0 -5
- package/inputnumber/inputnumber.component.d.ts +0 -108
- package/inputnumber/inputnumber.module.d.ts +0 -8
- package/inputnumber/inputnumber.types.d.ts +0 -7
- package/inputnumber/public-api.d.ts +0 -3
- package/inputotp/index.d.ts +0 -5
- package/inputotp/inputotp.component.d.ts +0 -105
- package/inputotp/inputotp.module.d.ts +0 -9
- package/inputotp/inputotp.types.d.ts +0 -22
- package/inputotp/public-api.d.ts +0 -3
- package/inputtext/index.d.ts +0 -5
- package/inputtext/inputtext.directive.d.ts +0 -21
- package/inputtext/inputtext.module.d.ts +0 -8
- package/inputtext/inputtext.styles.d.ts +0 -2
- package/inputtext/inputtext.types.d.ts +0 -3
- package/inputtext/public-api.d.ts +0 -5
- package/keyfilter/index.d.ts +0 -5
- package/keyfilter/keyfilter.directive.d.ts +0 -29
- package/keyfilter/keyfilter.module.d.ts +0 -8
- package/keyfilter/public-api.d.ts +0 -2
- package/knob/index.d.ts +0 -5
- package/knob/knob.component.d.ts +0 -94
- package/knob/knob.module.d.ts +0 -8
- package/knob/public-api.d.ts +0 -2
- package/listbox/index.d.ts +0 -5
- package/listbox/listbox.component.d.ts +0 -186
- package/listbox/listbox.module.d.ts +0 -8
- package/listbox/public-api.d.ts +0 -2
- package/menu/index.d.ts +0 -5
- package/menu/menu.base.d.ts +0 -95
- package/menu/menu.component.d.ts +0 -11
- package/menu/menu.module.d.ts +0 -9
- package/menu/public-api.d.ts +0 -4
- package/menubar/index.d.ts +0 -5
- package/menubar/menubar.base.d.ts +0 -135
- package/menubar/menubar.component.d.ts +0 -11
- package/menubar/menubar.module.d.ts +0 -9
- package/menubar/public-api.d.ts +0 -4
- package/message/index.d.ts +0 -5
- package/message/message.component.d.ts +0 -39
- package/message/message.module.d.ts +0 -11
- package/message/message.types.d.ts +0 -5
- package/message/messages.base.d.ts +0 -50
- package/message/messages.component.d.ts +0 -7
- package/message/public-api.d.ts +0 -5
- package/metergroup/index.d.ts +0 -5
- package/metergroup/metergroup.component.d.ts +0 -54
- package/metergroup/metergroup.module.d.ts +0 -8
- package/metergroup/metergroup.types.d.ts +0 -42
- package/metergroup/public-api.d.ts +0 -3
- package/multiselect/index.d.ts +0 -5
- package/multiselect/multiselect.base.d.ts +0 -222
- package/multiselect/multiselect.component.d.ts +0 -11
- package/multiselect/multiselect.module.d.ts +0 -9
- package/multiselect/multiselect.styles.d.ts +0 -2
- package/multiselect/multiselect.types.d.ts +0 -20
- package/multiselect/public-api.d.ts +0 -5
- package/navbar/index.d.ts +0 -5
- package/navbar/navbar.component.d.ts +0 -172
- package/navbar/navbar.module.d.ts +0 -9
- package/navbar/public-api.d.ts +0 -2
- package/orderlist/index.d.ts +0 -5
- package/orderlist/orderlist.base.d.ts +0 -136
- package/orderlist/orderlist.component.d.ts +0 -10
- package/orderlist/orderlist.module.d.ts +0 -9
- package/orderlist/orderlist.types.d.ts +0 -10
- package/orderlist/public-api.d.ts +0 -4
- package/organizationchart/index.d.ts +0 -5
- package/organizationchart/organizationchart.component.d.ts +0 -76
- package/organizationchart/organizationchart.module.d.ts +0 -9
- package/organizationchart/organizationchart.types.d.ts +0 -10
- package/organizationchart/public-api.d.ts +0 -4
- package/paginator/index.d.ts +0 -5
- package/paginator/paginator.base.d.ts +0 -95
- package/paginator/paginator.component.d.ts +0 -10
- package/paginator/paginator.module.d.ts +0 -8
- package/paginator/paginator.types.d.ts +0 -7
- package/paginator/public-api.d.ts +0 -4
- package/panel/index.d.ts +0 -5
- package/panel/panel.component.d.ts +0 -42
- package/panel/panel.module.d.ts +0 -10
- package/panel/panel.types.d.ts +0 -2
- package/panel/public-api.d.ts +0 -3
- package/panelmenu/index.d.ts +0 -5
- package/panelmenu/panelmenu.base.d.ts +0 -53
- package/panelmenu/panelmenu.component.d.ts +0 -7
- package/panelmenu/panelmenu.module.d.ts +0 -9
- package/panelmenu/public-api.d.ts +0 -3
- package/password/index.d.ts +0 -5
- package/password/password.component.d.ts +0 -79
- package/password/password.module.d.ts +0 -8
- package/password/password.types.d.ts +0 -6
- package/password/public-api.d.ts +0 -3
- package/picklist/index.d.ts +0 -5
- package/picklist/list-drag.d.ts +0 -49
- package/picklist/picklist.base.d.ts +0 -217
- package/picklist/picklist.component.d.ts +0 -10
- package/picklist/picklist.module.d.ts +0 -9
- package/picklist/picklist.styles.d.ts +0 -2
- package/picklist/picklist.types.d.ts +0 -21
- package/picklist/public-api.d.ts +0 -7
- package/popover/index.d.ts +0 -5
- package/popover/popover.base.d.ts +0 -61
- package/popover/popover.component.d.ts +0 -10
- package/popover/popover.module.d.ts +0 -9
- package/popover/public-api.d.ts +0 -3
- package/presets/index.d.ts +0 -5
- package/presets/public-api.d.ts +0 -2
- package/progressbar/index.d.ts +0 -5
- package/progressbar/progressbar.component.d.ts +0 -48
- package/progressbar/progressbar.module.d.ts +0 -8
- package/progressbar/progressbar.types.d.ts +0 -16
- package/progressbar/public-api.d.ts +0 -3
- package/progressspinner/index.d.ts +0 -5
- package/progressspinner/progressspinner.component.d.ts +0 -44
- package/progressspinner/progressspinner.module.d.ts +0 -8
- package/progressspinner/progressspinner.types.d.ts +0 -9
- package/progressspinner/public-api.d.ts +0 -3
- package/public-api.d.ts +0 -2
- package/radiobutton/index.d.ts +0 -5
- package/radiobutton/public-api.d.ts +0 -6
- package/radiobutton/radio-registry.d.ts +0 -23
- package/radiobutton/radiobutton.component.d.ts +0 -50
- package/radiobutton/radiobutton.module.d.ts +0 -8
- package/radiobutton/radiobutton.styles.d.ts +0 -2
- package/radiobutton/radiobutton.types.d.ts +0 -4
- package/rating/index.d.ts +0 -5
- package/rating/public-api.d.ts +0 -3
- package/rating/rating.component.d.ts +0 -39
- package/rating/rating.module.d.ts +0 -8
- package/rating/rating.types.d.ts +0 -4
- package/result/index.d.ts +0 -5
- package/result/public-api.d.ts +0 -2
- package/result/result.component.d.ts +0 -39
- package/result/result.module.d.ts +0 -8
- package/ripple/index.d.ts +0 -5
- package/ripple/public-api.d.ts +0 -2
- package/ripple/ripple.directive.d.ts +0 -15
- package/ripple/ripple.module.d.ts +0 -8
- package/ripple/ripple.styles.d.ts +0 -2
- package/scroller/index.d.ts +0 -5
- package/scroller/public-api.d.ts +0 -5
- package/scroller/scroller.component.d.ts +0 -135
- package/scroller/scroller.module.d.ts +0 -8
- package/scrollpanel/index.d.ts +0 -5
- package/scrollpanel/public-api.d.ts +0 -2
- package/scrollpanel/scrollpanel.component.d.ts +0 -27
- package/scrollpanel/scrollpanel.module.d.ts +0 -8
- package/select/index.d.ts +0 -5
- package/select/public-api.d.ts +0 -6
- package/select/select.base.d.ts +0 -217
- package/select/select.component.d.ts +0 -11
- package/select/select.module.d.ts +0 -8
- package/select/select.styles.d.ts +0 -2
- package/select/select.types.d.ts +0 -9
- package/selectbutton/index.d.ts +0 -5
- package/selectbutton/public-api.d.ts +0 -3
- package/selectbutton/selectbutton.component.d.ts +0 -59
- package/selectbutton/selectbutton.module.d.ts +0 -9
- package/selectbutton/selectbutton.types.d.ts +0 -9
- package/sitefooter/index.d.ts +0 -5
- package/sitefooter/public-api.d.ts +0 -2
- package/sitefooter/sitefooter.component.d.ts +0 -69
- package/sitefooter/sitefooter.module.d.ts +0 -9
- package/skeleton/index.d.ts +0 -5
- package/skeleton/public-api.d.ts +0 -3
- package/skeleton/skeleton.component.d.ts +0 -22
- package/skeleton/skeleton.module.d.ts +0 -8
- package/skeleton/skeleton.types.d.ts +0 -2
- package/slider/index.d.ts +0 -5
- package/slider/public-api.d.ts +0 -2
- package/slider/slider.component.d.ts +0 -79
- package/slider/slider.module.d.ts +0 -8
- package/splitbutton/index.d.ts +0 -5
- package/splitbutton/public-api.d.ts +0 -2
- package/splitbutton/splitbutton.component.d.ts +0 -75
- package/splitbutton/splitbutton.module.d.ts +0 -8
- package/splitter/index.d.ts +0 -5
- package/splitter/public-api.d.ts +0 -4
- package/splitter/splitter-panel.component.d.ts +0 -20
- package/splitter/splitter.component.d.ts +0 -109
- package/splitter/splitter.module.d.ts +0 -10
- package/splitter/splitter.types.d.ts +0 -8
- package/stepper/index.d.ts +0 -5
- package/stepper/public-api.d.ts +0 -3
- package/stepper/stepper.base.d.ts +0 -200
- package/stepper/stepper.component.d.ts +0 -41
- package/stepper/stepper.module.d.ts +0 -9
- package/steps/index.d.ts +0 -5
- package/steps/public-api.d.ts +0 -3
- package/steps/steps.base.d.ts +0 -52
- package/steps/steps.component.d.ts +0 -7
- package/steps/steps.module.d.ts +0 -8
- package/table/index.d.ts +0 -5
- package/table/public-api.d.ts +0 -9
- package/table/table-celleditor.component.d.ts +0 -14
- package/table/table-filter.component.d.ts +0 -11
- package/table/table.base.d.ts +0 -410
- package/table/table.celleditor.d.ts +0 -20
- package/table/table.component.d.ts +0 -12
- package/table/table.directives.d.ts +0 -330
- package/table/table.filter.d.ts +0 -131
- package/table/table.module.d.ts +0 -12
- package/table/table.types.d.ts +0 -180
- package/tabmenu/index.d.ts +0 -5
- package/tabmenu/public-api.d.ts +0 -2
- package/tabs/index.d.ts +0 -5
- package/tabs/public-api.d.ts +0 -8
- package/tabs/tabmenu.base.d.ts +0 -59
- package/tabs/tabmenu.component.d.ts +0 -10
- package/tabs/tabmenu.module.d.ts +0 -9
- package/tabs/tabs.component.d.ts +0 -120
- package/tabs/tabs.module.d.ts +0 -10
- package/tabs/tabs.styles.d.ts +0 -2
- package/tabs/tabs.types.d.ts +0 -21
- package/tag/index.d.ts +0 -5
- package/tag/public-api.d.ts +0 -3
- package/tag/tag.component.d.ts +0 -20
- package/tag/tag.module.d.ts +0 -8
- package/tag/tag.types.d.ts +0 -2
- package/terminal/index.d.ts +0 -5
- package/terminal/public-api.d.ts +0 -5
- package/terminal/terminal.component.d.ts +0 -58
- package/terminal/terminal.module.d.ts +0 -8
- package/terminal/terminal.service.d.ts +0 -20
- package/textarea/index.d.ts +0 -5
- package/textarea/public-api.d.ts +0 -2
- package/textarea/textarea.directive.d.ts +0 -27
- package/textarea/textarea.module.d.ts +0 -8
- package/thai/index.d.ts +0 -5
- package/thai/public-api.d.ts +0 -3
- package/thai/thai.module.d.ts +0 -8
- package/thai/thai.pipes.d.ts +0 -57
- package/tieredmenu/index.d.ts +0 -5
- package/tieredmenu/public-api.d.ts +0 -2
- package/tieredmenu/tieredmenu.component.d.ts +0 -90
- package/tieredmenu/tieredmenu.module.d.ts +0 -8
- package/timeline/index.d.ts +0 -5
- package/timeline/public-api.d.ts +0 -3
- package/timeline/timeline.base.d.ts +0 -36
- package/timeline/timeline.component.d.ts +0 -7
- package/timeline/timeline.module.d.ts +0 -9
- package/toast/index.d.ts +0 -5
- package/toast/message.service.d.ts +0 -19
- package/toast/public-api.d.ts +0 -5
- package/toast/toast.base.d.ts +0 -84
- package/toast/toast.component.d.ts +0 -10
- package/toast/toast.module.d.ts +0 -9
- package/toast/toast.types.d.ts +0 -28
- package/togglebutton/index.d.ts +0 -5
- package/togglebutton/public-api.d.ts +0 -3
- package/togglebutton/togglebutton.component.d.ts +0 -47
- package/togglebutton/togglebutton.module.d.ts +0 -8
- package/togglebutton/togglebutton.types.d.ts +0 -4
- package/toggleswitch/index.d.ts +0 -5
- package/toggleswitch/public-api.d.ts +0 -3
- package/toggleswitch/toggleswitch.component.d.ts +0 -42
- package/toggleswitch/toggleswitch.module.d.ts +0 -8
- package/toggleswitch/toggleswitch.types.d.ts +0 -4
- package/toolbar/index.d.ts +0 -5
- package/toolbar/public-api.d.ts +0 -2
- package/toolbar/toolbar.component.d.ts +0 -29
- package/toolbar/toolbar.module.d.ts +0 -9
- package/tooltip/index.d.ts +0 -5
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip.directive.d.ts +0 -87
- package/tooltip/tooltip.module.d.ts +0 -8
- package/tooltip/tooltip.styles.d.ts +0 -2
- package/tooltip/tooltip.types.d.ts +0 -14
- package/tree/index.d.ts +0 -5
- package/tree/public-api.d.ts +0 -2
- package/tree/tree.component.d.ts +0 -149
- package/tree/tree.module.d.ts +0 -8
- package/treeselect/index.d.ts +0 -5
- package/treeselect/public-api.d.ts +0 -2
- package/treeselect/treeselect.component.d.ts +0 -140
- package/treeselect/treeselect.module.d.ts +0 -8
- package/validation/field-error.component.d.ts +0 -39
- package/validation/index.d.ts +0 -5
- package/validation/public-api.d.ts +0 -3
- package/validation/validation.module.d.ts +0 -9
- package/validation/validators.d.ts +0 -33
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-badge.mjs","sources":["../../lib/badge/badge.component.ts","../../lib/badge/badge.component.html","../../lib/badge/badge.styles.ts","../../lib/badge/badge.directive.ts","../../lib/badge/badge.module.ts","../../lib/badge/wirabyte-ui-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵseverity, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';\nimport { WuBadgeSeverity, WuBadgeSize } from './badge.types';\n\n/** Count or status pill: `<wu-badge value=\"8\" severity=\"danger\">`. Without a value it is a dot. */\n@Component({\n selector: 'wu-badge',\n standalone: true,\n templateUrl: './badge.component.html',\n styleUrl: './badge.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuBadge {\n readonly value = input<string | number | null>();\n readonly severity = input<WuBadgeSeverity>();\n readonly size = input<WuBadgeSize>();\n\n readonly hasValue = computed(() => this.value() !== undefined && this.value() !== null && this.value() !== '');\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n readonly styleClass = input<string | null | undefined>();\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly style = input<Record<string, any> | string | null | undefined>();\n /** The `style` object for the root (a plain style attribute already styles the host). */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly rootStyle = computed(() => {\n const s = this.style();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return s && typeof s === 'object' ? (s as Record<string, any>) : null;\n });\n readonly classes = computed(() => [this.baseClasses(), this.styleClass()].filter(Boolean).join(' '));\n readonly baseClasses = computed(() => {\n const sev = ɵseverity(this.severity());\n const c = ['wu-badge', 'p-badge', 'p-component'];\n if (sev !== 'primary') c.push('wu-badge-' + sev, 'p-badge-' + sev);\n const size = this.size();\n if (size === 'small') c.push('wu-badge-sm', 'p-badge-sm');\n if (size === 'large') c.push('wu-badge-lg', 'p-badge-lg');\n if (size === 'xlarge') c.push('wu-badge-xl', 'p-badge-xl');\n if (!this.hasValue()) c.push('wu-badge-dot', 'p-badge-dot');\n return c.join(' ');\n });\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n}\n","<span [class]=\"classes()\" [style]=\"rootStyle()\">{{ hasValue() ? value() : '' }}</span>\n","/** Generated by tools/sync-sources.mjs from packages/styles/badge.css. */\nexport const WU_BADGE_CSS = \"/* wu-badge. Shared by wiraui v1, v2 and v3. A count or status pill; with no value it is a dot. */\\n@layer wiraui.components {\\n wu-badge {\\n display: inline-flex;\\n vertical-align: middle;\\n }\\n .wu-badge {\\n --_bg: var(--wu-primary-color);\\n --_fg: var(--wu-primary-contrast);\\n --_size: var(--wu-badge-size);\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n box-sizing: border-box;\\n min-width: var(--_size);\\n height: var(--_size);\\n padding: 0 var(--wu-badge-padding-x);\\n border-radius: var(--wu-radius-full);\\n background: var(--_bg);\\n color: var(--_fg);\\n font-family: var(--wu-font-family);\\n font-size: var(--wu-badge-font-size);\\n font-weight: var(--wu-badge-font-weight);\\n line-height: 1;\\n white-space: nowrap;\\n }\\n .wu-badge-sm {\\n --_size: calc(var(--wu-badge-size) * 0.75);\\n font-size: calc(var(--wu-badge-font-size) * 0.85);\\n padding: 0 calc(var(--wu-badge-padding-x) * 0.6);\\n }\\n .wu-badge-lg {\\n --_size: calc(var(--wu-badge-size) * 1.5);\\n font-size: calc(var(--wu-badge-font-size) * 1.5);\\n }\\n .wu-badge-xl {\\n --_size: calc(var(--wu-badge-size) * 2);\\n font-size: calc(var(--wu-badge-font-size) * 2);\\n }\\n .wu-badge-dot {\\n --_size: var(--wu-badge-dot-size);\\n min-width: 0;\\n width: var(--_size);\\n padding: 0;\\n }\\n .wu-badge-secondary { --_bg: var(--wu-button-secondary-bg); --_fg: var(--wu-button-secondary-color); }\\n .wu-badge-success { --_bg: var(--wu-success-color); --_fg: var(--wu-success-contrast); }\\n .wu-badge-info { --_bg: var(--wu-info-color); --_fg: var(--wu-info-contrast); }\\n .wu-badge-warn { --_bg: var(--wu-warn-color); --_fg: var(--wu-warn-contrast); }\\n .wu-badge-danger { --_bg: var(--wu-danger-color); --_fg: var(--wu-danger-contrast); }\\n .wu-badge-help { --_bg: var(--wu-help-color); --_fg: var(--wu-help-contrast); }\\n .wu-badge-contrast { --_bg: var(--wu-text); --_fg: var(--wu-card-bg); }\\n /* wuBadge / pBadge: a badge on the corner of another element. */\\n .wu-overlay-badge {\\n position: relative;\\n }\\n .wu-overlay-badge > .wu-badge {\\n position: absolute;\\n top: 0;\\n right: 0;\\n margin: 0;\\n transform: translate(50%, -50%);\\n transform-origin: 100% 0;\\n pointer-events: none;\\n }\\n}\\n\";\n","import { Directive, ElementRef, inject, Input, OnDestroy, OnInit } from '@angular/core';\nimport { ɵseverity, ɵtoBool, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { WU_BADGE_CSS } from './badge.styles';\nimport { WuBadgeSeverity, WuBadgeSize } from './badge.types';\n\n/**\n * A badge on the corner of any element: `<i class=\"pi pi-bell\" wuBadge value=\"3\" severity=\"danger\"></i>`\n * (or `pBadge`). Without a value it is a dot; `[badgeDisabled]=\"true\"` hides it.\n */\n@Directive({\n selector: '[wuBadge], [pBadge]',\n standalone: true,\n host: { class: 'wu-overlay-badge p-overlay-badge' },\n})\nexport class WuBadgeDirective implements OnInit, OnDestroy {\n @Input() set value(v: string | number | null | undefined) {\n this._value = v;\n this.render();\n }\n @Input() set severity(v: WuBadgeSeverity | null | undefined) {\n this._severity = v;\n this.render();\n }\n /** `'small'`, `'large'` or `'xlarge'`; `badgeSize` is the same. */\n @Input() set size(v: WuBadgeSize | null | undefined) {\n this._size = v;\n this.render();\n }\n @Input() set badgeSize(v: WuBadgeSize | null | undefined) {\n this.size = v;\n }\n @Input() set badgeDisabled(v: unknown) {\n this._disabled = ɵtoBool(v);\n this.render();\n }\n @Input() set badgeStyleClass(v: string | null | undefined) {\n this._styleClass = v;\n this.render();\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() set badgeStyle(v: Record<string, any> | null | undefined) {\n this._style = v;\n this.render();\n }\n\n private _value: string | number | null | undefined;\n private _severity: WuBadgeSeverity | null | undefined;\n private _size: WuBadgeSize | null | undefined;\n private _disabled = false;\n private _styleClass: string | null | undefined;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _style: Record<string, any> | null | undefined;\n private badge: HTMLSpanElement | null = null;\n private ready = false;\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n\n constructor() {\n inject(ɵWuStyleLoader).load('badge', WU_BADGE_CSS);\n }\n\n ngOnInit(): void {\n this.ready = true;\n this.render();\n }\n\n ngOnDestroy(): void {\n this.badge?.remove();\n }\n\n private render(): void {\n if (!this.ready) return;\n if (this._disabled) {\n this.badge?.remove();\n this.badge = null;\n return;\n }\n if (!this.badge) {\n this.badge = this.host.ownerDocument.createElement('span');\n this.host.appendChild(this.badge);\n }\n const sev = ɵseverity(this._severity || undefined);\n const has = this._value !== undefined && this._value !== null && this._value !== '';\n const c = ['wu-badge', 'p-badge', 'p-component'];\n if (sev !== 'primary') c.push('wu-badge-' + sev, 'p-badge-' + sev);\n if (this._size === 'small') c.push('wu-badge-sm', 'p-badge-sm');\n if (this._size === 'large') c.push('wu-badge-lg', 'p-badge-lg');\n if (this._size === 'xlarge') c.push('wu-badge-xl', 'p-badge-xl');\n if (!has) c.push('wu-badge-dot', 'p-badge-dot');\n if (this._styleClass) c.push(this._styleClass);\n this.badge.className = c.join(' ');\n this.badge.textContent = has ? String(this._value) : '';\n this.badge.removeAttribute('style');\n for (const [k, v] of Object.entries(this._style || {})) this.badge.style.setProperty(k.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase()), String(v));\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuBadge } from './badge.component';\nimport { WuBadgeDirective } from './badge.directive';\n\n/** For NgModule apps: `wu-badge` and the `wuBadge` (`pBadge`) directive. */\n@NgModule({\n imports: [WuBadge, WuBadgeDirective],\n exports: [WuBadge, WuBadgeDirective],\n})\nexport class WuBadgeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵseverity","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵtoBool","ɵWuStyleLoader"],"mappings":";;;;AAIA;MASa,OAAO,CAAA;AA+BlB,IAAA,WAAA,GAAA;QA9BS,IAAA,CAAA,KAAK,GAAG,KAAK,EAA0B;QACvC,IAAA,CAAA,QAAQ,GAAG,KAAK,EAAmB;QACnC,IAAA,CAAA,IAAI,GAAG,KAAK,EAAe;QAE3B,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC;;QAErG,IAAA,CAAA,UAAU,GAAG,KAAK,EAA6B;;;QAG/C,IAAA,CAAA,KAAK,GAAG,KAAK,EAAmD;;;AAGhE,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAK;AACjC,YAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE;;AAEtB,YAAA,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,GAAI,CAAyB,GAAG,IAAI;AACvE,QAAA,CAAC,CAAC;AACO,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3F,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YACnC,MAAM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AAC,OAAO,EAAE,gBAAgB,CAAC;AACpC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC;AACrC,iBAAA;;;ACRD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-badge.mjs","sources":["../../lib/badge/badge.component.ts","../../lib/badge/badge.component.html","../../lib/badge/badge.styles.ts","../../lib/badge/badge.directive.ts","../../lib/badge/badge.module.ts","../../lib/badge/wirabyte-ui-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵseverity, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';\nimport { WuBadgeSeverity, WuBadgeSize } from './badge.types';\n\n/** Count or status pill: `<wu-badge value=\"8\" severity=\"danger\">`. Without a value it is a dot. */\n@Component({\n selector: 'wu-badge',\n standalone: true,\n templateUrl: './badge.component.html',\n styleUrl: './badge.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuBadge {\n readonly value = input<string | number | null>();\n readonly severity = input<WuBadgeSeverity>();\n readonly size = input<WuBadgeSize>();\n\n readonly hasValue = computed(() => this.value() !== undefined && this.value() !== null && this.value() !== '');\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n readonly styleClass = input<string | null | undefined>();\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly style = input<Record<string, any> | string | null | undefined>();\n /** The `style` object for the root (a plain style attribute already styles the host). */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly rootStyle = computed(() => {\n const s = this.style();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return s && typeof s === 'object' ? (s as Record<string, any>) : null;\n });\n readonly classes = computed(() => [this.baseClasses(), this.styleClass()].filter(Boolean).join(' '));\n readonly baseClasses = computed(() => {\n const sev = ɵseverity(this.severity());\n const c = ['wu-badge', 'p-badge', 'p-component'];\n if (sev !== 'primary') c.push('wu-badge-' + sev, 'p-badge-' + sev);\n const size = this.size();\n if (size === 'small') c.push('wu-badge-sm', 'p-badge-sm');\n if (size === 'large') c.push('wu-badge-lg', 'p-badge-lg');\n if (size === 'xlarge') c.push('wu-badge-xl', 'p-badge-xl');\n if (!this.hasValue()) c.push('wu-badge-dot', 'p-badge-dot');\n return c.join(' ');\n });\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n}\n","<span [class]=\"classes()\" [style]=\"rootStyle()\">{{ hasValue() ? value() : '' }}</span>\n","/** Generated by tools/sync-sources.mjs from packages/styles/badge.css. */\nexport const WU_BADGE_CSS = \"/* wu-badge. Shared by wiraui v1, v2 and v3. A count or status pill; with no value it is a dot. */\\n@layer wiraui.components {\\n wu-badge {\\n display: inline-flex;\\n vertical-align: middle;\\n }\\n .wu-badge {\\n --_bg: var(--wu-primary-color);\\n --_fg: var(--wu-primary-contrast);\\n --_size: var(--wu-badge-size);\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n box-sizing: border-box;\\n min-width: var(--_size);\\n height: var(--_size);\\n padding: 0 var(--wu-badge-padding-x);\\n border-radius: var(--wu-radius-full);\\n background: var(--_bg);\\n color: var(--_fg);\\n font-family: var(--wu-font-family);\\n font-size: var(--wu-badge-font-size);\\n font-weight: var(--wu-badge-font-weight);\\n line-height: 1;\\n white-space: nowrap;\\n }\\n .wu-badge-sm {\\n --_size: calc(var(--wu-badge-size) * 0.75);\\n font-size: calc(var(--wu-badge-font-size) * 0.85);\\n padding: 0 calc(var(--wu-badge-padding-x) * 0.6);\\n }\\n .wu-badge-lg {\\n --_size: calc(var(--wu-badge-size) * 1.5);\\n font-size: calc(var(--wu-badge-font-size) * 1.5);\\n }\\n .wu-badge-xl {\\n --_size: calc(var(--wu-badge-size) * 2);\\n font-size: calc(var(--wu-badge-font-size) * 2);\\n }\\n .wu-badge-dot {\\n --_size: var(--wu-badge-dot-size);\\n min-width: 0;\\n width: var(--_size);\\n padding: 0;\\n }\\n .wu-badge-secondary { --_bg: var(--wu-button-secondary-bg); --_fg: var(--wu-button-secondary-color); }\\n .wu-badge-success { --_bg: var(--wu-success-color); --_fg: var(--wu-success-contrast); }\\n .wu-badge-info { --_bg: var(--wu-info-color); --_fg: var(--wu-info-contrast); }\\n .wu-badge-warn { --_bg: var(--wu-warn-color); --_fg: var(--wu-warn-contrast); }\\n .wu-badge-danger { --_bg: var(--wu-danger-color); --_fg: var(--wu-danger-contrast); }\\n .wu-badge-help { --_bg: var(--wu-help-color); --_fg: var(--wu-help-contrast); }\\n .wu-badge-contrast { --_bg: var(--wu-text); --_fg: var(--wu-card-bg); }\\n /* wuBadge / pBadge: a badge on the corner of another element. */\\n .wu-overlay-badge {\\n position: relative;\\n }\\n .wu-overlay-badge > .wu-badge {\\n position: absolute;\\n top: 0;\\n right: 0;\\n margin: 0;\\n transform: translate(50%, -50%);\\n transform-origin: 100% 0;\\n pointer-events: none;\\n }\\n}\\n\";\n","import { Directive, ElementRef, inject, Input, OnDestroy, OnInit } from '@angular/core';\nimport { ɵseverity, ɵtoBool, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { WU_BADGE_CSS } from './badge.styles';\nimport { WuBadgeSeverity, WuBadgeSize } from './badge.types';\n\n/**\n * A badge on the corner of any element: `<i class=\"pi pi-bell\" wuBadge value=\"3\" severity=\"danger\"></i>`\n * (or `pBadge`). Without a value it is a dot; `[badgeDisabled]=\"true\"` hides it.\n */\n@Directive({\n selector: '[wuBadge], [pBadge]',\n standalone: true,\n host: { class: 'wu-overlay-badge p-overlay-badge' },\n})\nexport class WuBadgeDirective implements OnInit, OnDestroy {\n @Input() set value(v: string | number | null | undefined) {\n this._value = v;\n this.render();\n }\n @Input() set severity(v: WuBadgeSeverity | null | undefined) {\n this._severity = v;\n this.render();\n }\n /** `'small'`, `'large'` or `'xlarge'`; `badgeSize` is the same. */\n @Input() set size(v: WuBadgeSize | null | undefined) {\n this._size = v;\n this.render();\n }\n @Input() set badgeSize(v: WuBadgeSize | null | undefined) {\n this.size = v;\n }\n @Input() set badgeDisabled(v: unknown) {\n this._disabled = ɵtoBool(v);\n this.render();\n }\n @Input() set badgeStyleClass(v: string | null | undefined) {\n this._styleClass = v;\n this.render();\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() set badgeStyle(v: Record<string, any> | null | undefined) {\n this._style = v;\n this.render();\n }\n\n private _value: string | number | null | undefined;\n private _severity: WuBadgeSeverity | null | undefined;\n private _size: WuBadgeSize | null | undefined;\n private _disabled = false;\n private _styleClass: string | null | undefined;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _style: Record<string, any> | null | undefined;\n private badge: HTMLSpanElement | null = null;\n private ready = false;\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n\n constructor() {\n inject(ɵWuStyleLoader).load('badge', WU_BADGE_CSS);\n }\n\n ngOnInit(): void {\n this.ready = true;\n this.render();\n }\n\n ngOnDestroy(): void {\n this.badge?.remove();\n }\n\n private render(): void {\n if (!this.ready) return;\n if (this._disabled) {\n this.badge?.remove();\n this.badge = null;\n return;\n }\n if (!this.badge) {\n this.badge = this.host.ownerDocument.createElement('span');\n this.host.appendChild(this.badge);\n }\n const sev = ɵseverity(this._severity || undefined);\n const has = this._value !== undefined && this._value !== null && this._value !== '';\n const c = ['wu-badge', 'p-badge', 'p-component'];\n if (sev !== 'primary') c.push('wu-badge-' + sev, 'p-badge-' + sev);\n if (this._size === 'small') c.push('wu-badge-sm', 'p-badge-sm');\n if (this._size === 'large') c.push('wu-badge-lg', 'p-badge-lg');\n if (this._size === 'xlarge') c.push('wu-badge-xl', 'p-badge-xl');\n if (!has) c.push('wu-badge-dot', 'p-badge-dot');\n if (this._styleClass) c.push(this._styleClass);\n this.badge.className = c.join(' ');\n this.badge.textContent = has ? String(this._value) : '';\n this.badge.removeAttribute('style');\n for (const [k, v] of Object.entries(this._style || {})) this.badge.style.setProperty(k.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase()), String(v));\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuBadge } from './badge.component';\nimport { WuBadgeDirective } from './badge.directive';\n\n/** For NgModule apps: `wu-badge` and the `wuBadge` (`pBadge`) directive. */\n@NgModule({\n imports: [WuBadge, WuBadgeDirective],\n exports: [WuBadge, WuBadgeDirective],\n})\nexport class WuBadgeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵseverity","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵtoBool","ɵWuStyleLoader"],"mappings":";;;;AAIA;MASa,OAAO,CAAA;AA+BlB,IAAA,WAAA,GAAA;QA9BS,IAAA,CAAA,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAA0B;QACvC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAmB;QACnC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAe;QAE3B,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;;QAErG,IAAA,CAAA,UAAU,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,S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,iBAAA;;sBAEE;;sBAIA;;sBAKA;;sBAIA;;sBAGA;;sBAIA;;sBAKA;;;ACpCH;MAKa,aAAa,CAAA;+GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAHd,OAAO,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACzB,OAAO,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;gHAExB,aAAa,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC;AACpC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC;AACrC,iBAAA;;;ACRD;;AAEG;;"}
|
|
@@ -122,12 +122,12 @@ class WuBlockUI {
|
|
|
122
122
|
if (back?.isConnected)
|
|
123
123
|
back.focus({ preventScroll: true });
|
|
124
124
|
}
|
|
125
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
126
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
125
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBlockUI, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
126
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuBlockUI, isStandalone: true, selector: "wu-blockui, wu-blockUI, wu-block-ui", inputs: { blocked: "blocked", target: "target", styleClass: "styleClass", ariaLabel: "ariaLabel", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex" }, queries: [{ propertyName: "contentRef", first: true, predicate: ["content"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "maskRef", first: true, predicate: ["mask"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"blocked\">\n <div\n *ngIf=\"onElement; else page\"\n #mask\n class=\"wu-blockui p-blockui p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n tabindex=\"-1\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <ng-template #page>\n <dialog\n #mask\n class=\"wu-blockui wu-blockui-document p-blockui p-blockui-document p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n (cancel)=\"cancel($event)\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </dialog>\n </ng-template>\n</ng-container>\n\n<ng-template #body>\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</ng-template>\n", styles: ["@layer wiraui.components{:is(wu-blockui,wu-block-ui){display:contents}.wu-blockui{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;border-radius:inherit;background:var(--wu-blockui-target-mask);-webkit-backdrop-filter:blur(var(--wu-blockui-target-blur));backdrop-filter:blur(var(--wu-blockui-target-blur));color:var(--wu-blockui-target-color);font-weight:500;text-align:center;animation:wu-blockui-in .15s ease;outline:none}.wu-blockui-container{position:relative}.wu-blockui-document{position:fixed;box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:1rem;border:0;border-radius:0;background:var(--wu-blockui-mask);-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--wu-blockui-color)}.wu-blockui-document:not([open]){display:none}.wu-blockui-document::backdrop{background:transparent}@keyframes wu-blockui-in{0%{opacity:0}}@media(prefers-reduced-motion:reduce){.wu-blockui{animation:none}}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
127
127
|
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBlockUI, decorators: [{
|
|
129
129
|
type: Component,
|
|
130
|
-
args: [{ selector: 'wu-blockui, wu-blockUI, wu-block-ui', standalone: true, imports: [NgIf, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"blocked\">\n <div\n *ngIf=\"onElement; else page\"\n #mask\n class=\"wu-blockui p-blockui p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n tabindex=\"-1\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <ng-template #page>\n <dialog\n #mask\n class=\"wu-blockui wu-blockui-document p-blockui p-blockui-document p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n (cancel)=\"cancel($event)\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </dialog>\n </ng-template>\n</ng-container>\n\n<ng-template #body>\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</ng-template>\n", styles: ["@layer wiraui.components{:is(wu-blockui,wu-block-ui){display:contents}.wu-blockui{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;border-radius:inherit;background:var(--wu-blockui-target-mask);-webkit-backdrop-filter:blur(var(--wu-blockui-target-blur));backdrop-filter:blur(var(--wu-blockui-target-blur));color:var(--wu-blockui-target-color);font-weight:500;text-align:center;animation:wu-blockui-in .15s ease;outline:none}.wu-blockui-container{position:relative}.wu-blockui-document{position:fixed;box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:1rem;border:0;border-radius:0;background:var(--wu-blockui-mask);-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--wu-blockui-color)}.wu-blockui-document:not([open]){display:none}.wu-blockui-document::backdrop{background:transparent}@keyframes wu-blockui-in{0%{opacity:0}}@media
|
|
130
|
+
args: [{ selector: 'wu-blockui, wu-blockUI, wu-block-ui', standalone: true, imports: [NgIf, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"blocked\">\n <div\n *ngIf=\"onElement; else page\"\n #mask\n class=\"wu-blockui p-blockui p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n tabindex=\"-1\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <ng-template #page>\n <dialog\n #mask\n class=\"wu-blockui wu-blockui-document p-blockui p-blockui-document p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n (cancel)=\"cancel($event)\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </dialog>\n </ng-template>\n</ng-container>\n\n<ng-template #body>\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</ng-template>\n", styles: ["@layer wiraui.components{:is(wu-blockui,wu-block-ui){display:contents}.wu-blockui{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;border-radius:inherit;background:var(--wu-blockui-target-mask);-webkit-backdrop-filter:blur(var(--wu-blockui-target-blur));backdrop-filter:blur(var(--wu-blockui-target-blur));color:var(--wu-blockui-target-color);font-weight:500;text-align:center;animation:wu-blockui-in .15s ease;outline:none}.wu-blockui-container{position:relative}.wu-blockui-document{position:fixed;box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:1rem;border:0;border-radius:0;background:var(--wu-blockui-mask);-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--wu-blockui-color)}.wu-blockui-document:not([open]){display:none}.wu-blockui-document::backdrop{background:transparent}@keyframes wu-blockui-in{0%{opacity:0}}@media(prefers-reduced-motion:reduce){.wu-blockui{animation:none}}}\n"] }]
|
|
131
131
|
}], ctorParameters: () => [], propDecorators: { blocked: [{
|
|
132
132
|
type: Input
|
|
133
133
|
}], target: [{
|
|
@@ -153,11 +153,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
153
153
|
|
|
154
154
|
/** For NgModule apps. Standalone apps can import `WuBlockUI` directly. */
|
|
155
155
|
class WuBlockUIModule {
|
|
156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
157
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
158
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
156
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBlockUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
157
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuBlockUIModule, imports: [WuBlockUI], exports: [WuBlockUI] }); }
|
|
158
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBlockUIModule }); }
|
|
159
159
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBlockUIModule, decorators: [{
|
|
161
161
|
type: NgModule,
|
|
162
162
|
args: [{
|
|
163
163
|
imports: [WuBlockUI],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-blockui.mjs","sources":["../../lib/blockui/blockui.component.ts","../../lib/blockui/blockui.component.html","../../lib/blockui/blockui.module.ts","../../lib/blockui/wirabyte-ui-blockui.ts"],"sourcesContent":["import { DOCUMENT, NgIf, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n inject,\n Input,\n OnDestroy,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵlockScroll, ɵtoBool, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\n\n/** The element a `target` stands for: an element, an ElementRef, or a component that has one. */\nfunction targetElement(target: unknown): HTMLElement | null {\n if (!target) return null;\n if (typeof HTMLElement !== 'undefined' && target instanceof HTMLElement) return target;\n const t = target as {\n nativeElement?: unknown;\n getBlockableElement?: () => unknown;\n el?: unknown;\n host?: unknown;\n elementRef?: unknown;\n };\n if (typeof t.getBlockableElement === 'function') return targetElement(t.getBlockableElement());\n if (t.nativeElement) return targetElement(t.nativeElement);\n return targetElement(t.el) || targetElement(t.elementRef) || targetElement(t.host);\n}\n\n/**\n * Covers the page, or one element (`[target]=\"panel\"`), while something runs: `<wu-blockUI [blocked]=\"isApiSaving\">`\n * with what to show in the middle (a spinner, a message) as its content. The page is inert under the cover: no\n * clicks, no Tab into it; covering the whole page also stops it scrolling.\n */\n@Component({\n selector: 'wu-blockui, wu-blockUI, wu-block-ui',\n standalone: true,\n imports: [NgIf, NgTemplateOutlet],\n templateUrl: './blockui.component.html',\n styleUrls: ['./blockui.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuBlockUI implements AfterViewChecked, OnDestroy {\n @Input() set blocked(v: unknown) {\n const on = ɵtoBool(v);\n if (on === this._blocked) return;\n this._blocked = on;\n if (!on) this.release();\n this.pending = on;\n this.cdr.markForCheck();\n }\n get blocked(): boolean {\n return this._blocked;\n }\n /** Cover only this element (an element, an ElementRef or a component). Default: the whole page. */\n @Input() target: unknown;\n @Input() styleClass?: string | null;\n /** Read out while blocked. */\n @Input() ariaLabel?: string;\n /** Accepted for templates moving over: the page cover is in the top layer. */\n @Input() autoZIndex: unknown;\n @Input() baseZIndex: unknown;\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('content', { descendants: false }) protected contentRef?: unknown;\n @ViewChild('mask') protected maskRef?: ElementRef<HTMLElement>;\n\n private _blocked = false;\n private pending = false;\n private host: HTMLElement | null = null;\n private inerted: HTMLElement[] = [];\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly doc = inject(DOCUMENT);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get onElement(): boolean {\n return !!targetElement(this.target);\n }\n\n ngAfterViewChecked(): void {\n if (!this.pending) return;\n const mask = this.maskRef?.nativeElement;\n if (!mask) return;\n this.pending = false;\n const active = this.doc.activeElement as HTMLElement | null;\n const el = targetElement(this.target);\n if (el) {\n this.host = el;\n if (this.doc.defaultView?.getComputedStyle(el).position === 'static') el.classList.add('wu-blockui-container');\n el.setAttribute('aria-busy', 'true');\n // What was there goes inert; the cover itself stays live.\n for (const child of Array.from(el.children) as HTMLElement[]) {\n if (child === mask || child.hasAttribute('inert')) continue;\n child.setAttribute('inert', '');\n this.inerted.push(child);\n }\n el.appendChild(mask);\n if (active && el.contains(active)) {\n this.returnFocus = active;\n mask.focus({ preventScroll: true });\n }\n } else {\n const dialog = mask as HTMLDialogElement;\n if (typeof dialog.showModal === 'function' && !dialog.open) {\n try {\n dialog.showModal();\n } catch {\n dialog.setAttribute('open', '');\n }\n }\n this.unlockScroll = ɵlockScroll(this.doc);\n this.returnFocus = active && active !== this.doc.body ? active : null;\n }\n }\n\n ngOnDestroy(): void {\n this.release();\n // The cover was moved into the target; take it out with us.\n this.maskRef?.nativeElement.remove();\n }\n\n /** The browser's own close request (Escape): the cover stays until `blocked` is false. */\n cancel(event: Event): void {\n event.preventDefault();\n }\n\n private release(): void {\n this.pending = false;\n for (const el of this.inerted.splice(0)) el.removeAttribute('inert');\n if (this.host) {\n this.host.classList.remove('wu-blockui-container');\n this.host.removeAttribute('aria-busy');\n this.host = null;\n }\n const mask = this.maskRef?.nativeElement as HTMLDialogElement | undefined;\n if (mask && typeof mask.close === 'function' && mask.open) mask.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back?.isConnected) back.focus({ preventScroll: true });\n }\n}\n","<ng-container *ngIf=\"blocked\">\n <div\n *ngIf=\"onElement; else page\"\n #mask\n class=\"wu-blockui p-blockui p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n tabindex=\"-1\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <ng-template #page>\n <dialog\n #mask\n class=\"wu-blockui wu-blockui-document p-blockui p-blockui-document p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n (cancel)=\"cancel($event)\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </dialog>\n </ng-template>\n</ng-container>\n\n<ng-template #body>\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuBlockUI } from './blockui.component';\n\n/** For NgModule apps. Standalone apps can import `WuBlockUI` directly. */\n@NgModule({\n imports: [WuBlockUI],\n exports: [WuBlockUI],\n})\nexport class WuBlockUIModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate","ɵlockScroll"],"mappings":";;;;;AAmBA,MAAM,UAAU,GAAG,CAAC,CAAU,MAAmC,CAAC,YAAY,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC;AAErG;AACA,SAAS,aAAa,CAAC,MAAe,EAAA;AACpC,IAAA,IAAI,CAAC,MAAM;AAAE,QAAA,OAAO,IAAI;AACxB,IAAA,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,MAAM,YAAY,WAAW;AAAE,QAAA,OAAO,MAAM;IACtF,MAAM,CAAC,GAAG,MAMT;AACD,IAAA,IAAI,OAAO,CAAC,CAAC,mBAAmB,KAAK,UAAU;AAAE,QAAA,OAAO,aAAa,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC;IAC9F,IAAI,CAAC,CAAC,aAAa;AAAE,QAAA,OAAO,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC;IAC1D,OAAO,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC;AACpF;AAEA;;;;AAIG;MAUU,SAAS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CAAA,CAAA,EAAA;wDAGlC,OAAO,EAAA,CAAA;sBAAnB;gBAYQ,MAAM,EAAA,CAAA;sBAAd;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBAEQ,SAAS,EAAA,CAAA;sBAAjB;gBAEQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBAEsC,SAAS,EAAA,CAAA;sBAA/C,eAAe;uBAAC,UAAU;gBACgC,UAAU,EAAA,CAAA;sBAApE,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,SAAS,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;gBAClB,OAAO,EAAA,CAAA;sBAAnC,SAAS;uBAAC,MAAM;;;AEvEnB;MAKa,eAAe,CAAA;+GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAf,eAAe,EAAA,OAAA,EAAA,CAHhB,SAAS,CAAA,EAAA,OAAA,EAAA,CACT,SAAS,CAAA,EAAA,CAAA,CAAA;gHAER,eAAe,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,OAAO,EAAE,CAAC,SAAS,CAAC;AACrB,iBAAA;;;ACPD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-blockui.mjs","sources":["../../lib/blockui/blockui.component.ts","../../lib/blockui/blockui.component.html","../../lib/blockui/blockui.module.ts","../../lib/blockui/wirabyte-ui-blockui.ts"],"sourcesContent":["import { DOCUMENT, NgIf, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n inject,\n Input,\n OnDestroy,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵlockScroll, ɵtoBool, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\n\n/** The element a `target` stands for: an element, an ElementRef, or a component that has one. */\nfunction targetElement(target: unknown): HTMLElement | null {\n if (!target) return null;\n if (typeof HTMLElement !== 'undefined' && target instanceof HTMLElement) return target;\n const t = target as {\n nativeElement?: unknown;\n getBlockableElement?: () => unknown;\n el?: unknown;\n host?: unknown;\n elementRef?: unknown;\n };\n if (typeof t.getBlockableElement === 'function') return targetElement(t.getBlockableElement());\n if (t.nativeElement) return targetElement(t.nativeElement);\n return targetElement(t.el) || targetElement(t.elementRef) || targetElement(t.host);\n}\n\n/**\n * Covers the page, or one element (`[target]=\"panel\"`), while something runs: `<wu-blockUI [blocked]=\"isApiSaving\">`\n * with what to show in the middle (a spinner, a message) as its content. The page is inert under the cover: no\n * clicks, no Tab into it; covering the whole page also stops it scrolling.\n */\n@Component({\n selector: 'wu-blockui, wu-blockUI, wu-block-ui',\n standalone: true,\n imports: [NgIf, NgTemplateOutlet],\n templateUrl: './blockui.component.html',\n styleUrls: ['./blockui.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuBlockUI implements AfterViewChecked, OnDestroy {\n @Input() set blocked(v: unknown) {\n const on = ɵtoBool(v);\n if (on === this._blocked) return;\n this._blocked = on;\n if (!on) this.release();\n this.pending = on;\n this.cdr.markForCheck();\n }\n get blocked(): boolean {\n return this._blocked;\n }\n /** Cover only this element (an element, an ElementRef or a component). Default: the whole page. */\n @Input() target: unknown;\n @Input() styleClass?: string | null;\n /** Read out while blocked. */\n @Input() ariaLabel?: string;\n /** Accepted for templates moving over: the page cover is in the top layer. */\n @Input() autoZIndex: unknown;\n @Input() baseZIndex: unknown;\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('content', { descendants: false }) protected contentRef?: unknown;\n @ViewChild('mask') protected maskRef?: ElementRef<HTMLElement>;\n\n private _blocked = false;\n private pending = false;\n private host: HTMLElement | null = null;\n private inerted: HTMLElement[] = [];\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly doc = inject(DOCUMENT);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get onElement(): boolean {\n return !!targetElement(this.target);\n }\n\n ngAfterViewChecked(): void {\n if (!this.pending) return;\n const mask = this.maskRef?.nativeElement;\n if (!mask) return;\n this.pending = false;\n const active = this.doc.activeElement as HTMLElement | null;\n const el = targetElement(this.target);\n if (el) {\n this.host = el;\n if (this.doc.defaultView?.getComputedStyle(el).position === 'static') el.classList.add('wu-blockui-container');\n el.setAttribute('aria-busy', 'true');\n // What was there goes inert; the cover itself stays live.\n for (const child of Array.from(el.children) as HTMLElement[]) {\n if (child === mask || child.hasAttribute('inert')) continue;\n child.setAttribute('inert', '');\n this.inerted.push(child);\n }\n el.appendChild(mask);\n if (active && el.contains(active)) {\n this.returnFocus = active;\n mask.focus({ preventScroll: true });\n }\n } else {\n const dialog = mask as HTMLDialogElement;\n if (typeof dialog.showModal === 'function' && !dialog.open) {\n try {\n dialog.showModal();\n } catch {\n dialog.setAttribute('open', '');\n }\n }\n this.unlockScroll = ɵlockScroll(this.doc);\n this.returnFocus = active && active !== this.doc.body ? active : null;\n }\n }\n\n ngOnDestroy(): void {\n this.release();\n // The cover was moved into the target; take it out with us.\n this.maskRef?.nativeElement.remove();\n }\n\n /** The browser's own close request (Escape): the cover stays until `blocked` is false. */\n cancel(event: Event): void {\n event.preventDefault();\n }\n\n private release(): void {\n this.pending = false;\n for (const el of this.inerted.splice(0)) el.removeAttribute('inert');\n if (this.host) {\n this.host.classList.remove('wu-blockui-container');\n this.host.removeAttribute('aria-busy');\n this.host = null;\n }\n const mask = this.maskRef?.nativeElement as HTMLDialogElement | undefined;\n if (mask && typeof mask.close === 'function' && mask.open) mask.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back?.isConnected) back.focus({ preventScroll: true });\n }\n}\n","<ng-container *ngIf=\"blocked\">\n <div\n *ngIf=\"onElement; else page\"\n #mask\n class=\"wu-blockui p-blockui p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n tabindex=\"-1\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <ng-template #page>\n <dialog\n #mask\n class=\"wu-blockui wu-blockui-document p-blockui p-blockui-document p-component-overlay p-blockui-enter\"\n [class]=\"styleClass || ''\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel || null\"\n (cancel)=\"cancel($event)\"\n >\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </dialog>\n </ng-template>\n</ng-container>\n\n<ng-template #body>\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuBlockUI } from './blockui.component';\n\n/** For NgModule apps. Standalone apps can import `WuBlockUI` directly. */\n@NgModule({\n imports: [WuBlockUI],\n exports: [WuBlockUI],\n})\nexport class WuBlockUIModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate","ɵlockScroll"],"mappings":";;;;;AAmBA,MAAM,UAAU,GAAG,CAAC,CAAU,MAAmC,CAAC,YAAY,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC;AAErG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;ACPD;;AAEG;;"}
|
|
@@ -173,12 +173,12 @@ class WuBottomBar {
|
|
|
173
173
|
});
|
|
174
174
|
return best;
|
|
175
175
|
}
|
|
176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
177
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBottomBar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuBottomBar, isStandalone: true, selector: "wu-bottombar, wu-bottom-bar, wu-bottomBar", inputs: { model: "model", activeIndex: "activeIndex", look: "look", labels: "labels", action: "action", fixed: "fixed", hideOnScroll: "hideOnScroll", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { activeIndexChange: "activeIndexChange", onItemClick: "onItemClick" }, host: { classAttribute: "wu-bottombar-host" }, queries: [{ propertyName: "templates", predicate: WuTemplate }], ngImport: i0, template: "<nav [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"name\">\n <div class=\"wu-bottombar-inner\">\n <ng-container *ngFor=\"let item of items; let i = index\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.role]=\"item.url ? null : 'button'\"\n [attr.tabindex]=\"item.url ? null : 0\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n (keydown.enter)=\"!item.url && pick(item, i, $event)\"\n (keydown.space)=\"!item.url && pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n </ng-template>\n <span *ngIf=\"showFab && i === fabAfter\" class=\"wu-bottombar-fab-slot\">\n <button type=\"button\" class=\"wu-bottombar-fab\" [attr.aria-label]=\"action?.label || null\" [attr.title]=\"action?.label || null\" (click)=\"pick(action!, -1, $event)\">\n <span class=\"wu-bottombar-fab-icon\" [ngClass]=\"action?.icon || ''\" aria-hidden=\"true\"></span>\n </button>\n </span>\n </ng-container>\n </div>\n</nav>\n\n<ng-template #plainItem let-item>\n <span class=\"wu-bottombar-icon-wrap\">\n <span class=\"wu-bottombar-icon\" [ngClass]=\"item.icon || ''\" aria-hidden=\"true\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-bottombar-badge\">{{ item.badge }}</span>\n </span>\n <span class=\"wu-bottombar-label\">{{ item.label }}</span>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-bottombar,wu-bottom-bar,wu-bottomBar{display:block}.wu-bottombar{box-sizing:border-box;width:100%;font-family:var(--wu-font-family);transition:transform .25s ease}.wu-bottombar-fixed{position:fixed;right:0;bottom:0;left:0;z-index:var(--wu-bottombar-z);padding-bottom:env(safe-area-inset-bottom,0px)}.wu-bottombar-away{transform:translateY(calc(100% + 1rem))}.wu-bottombar-inner{position:relative;display:flex;align-items:stretch;min-height:var(--wu-bottombar-height);border-top:1px solid var(--wu-bottombar-border);background:var(--wu-bottombar-bg);box-shadow:var(--wu-bottombar-shadow)}.wu-bottombar-item{position:relative;display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-width:0;padding:.5rem .25rem;color:var(--wu-bottombar-color);font-size:.75rem;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color var(--wu-transition)}.wu-bottombar-item:focus-visible{border-radius:var(--wu-radius-md);outline:var(--wu-control-focus-outline);outline-offset:-4px;box-shadow:var(--wu-control-focus-shadow)}.wu-bottombar-item-disabled{opacity:.45;cursor:default}.wu-bottombar-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;width:4rem;height:2rem;border-radius:999px;transition:background var(--wu-transition),width var(--wu-transition)}.wu-bottombar-icon{font-size:1.375rem;line-height:1}.wu-bottombar-badge{position:absolute;top:-.125rem;left:calc(50% + .375rem);min-width:1.125rem;height:1.125rem;padding:0 .3rem;border-radius:999px;background:var(--wu-danger-color);color:#fff;font-size:.6875rem;font-weight:700;line-height:1.125rem;text-align:center}.wu-bottombar-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity var(--wu-transition),max-height var(--wu-transition)}.wu-bottombar-item-active{color:var(--wu-bottombar-active-color);font-weight:600}.wu-bottombar-item-active .wu-bottombar-icon-wrap{background:var(--wu-bottombar-indicator-bg)}.wu-bottombar-labels-active .wu-bottombar-item:not(.wu-bottombar-item-active) .wu-bottombar-label{max-height:0;opacity:0}.wu-bottombar-labels-active .wu-bottombar-label{max-height:1.25rem}.wu-bottombar-labels-never .wu-bottombar-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.wu-bottombar-look-pill{padding:0 .75rem .75rem}.wu-bottombar-look-pill.wu-bottombar-fixed{padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}.wu-bottombar-look-pill .wu-bottombar-inner{gap:.25rem;max-width:32rem;min-height:calc(var(--wu-bottombar-height) - .5rem);margin:0 auto;padding:.375rem;border:1px solid var(--wu-bottombar-border);border-radius:999px;box-shadow:var(--wu-bottombar-pill-shadow)}.wu-bottombar-look-pill .wu-bottombar-item{flex-direction:row;gap:.375rem;padding:0 .75rem;border-radius:999px;font-size:.8125rem;transition:flex-grow .3s ease,background var(--wu-transition),color var(--wu-transition)}.wu-bottombar-look-pill .wu-bottombar-item-active{flex-grow:2;background:var(--wu-bottombar-indicator-bg)}.wu-bottombar-look-pill .wu-bottombar-icon-wrap,.wu-bottombar-look-pill .wu-bottombar-item-active .wu-bottombar-icon-wrap{width:auto;height:auto;background:none}.wu-bottombar-look-pill.wu-bottombar-labels-active .wu-bottombar-item:not(.wu-bottombar-item-active) .wu-bottombar-label{max-width:0;max-height:none}.wu-bottombar-look-pill .wu-bottombar-label{max-height:none}.wu-bottombar-look-fab .wu-bottombar-inner{border-top:0;background:none;box-shadow:none}.wu-bottombar-look-fab .wu-bottombar-inner:before{position:absolute;inset:0;z-index:-1;border-top:1px solid var(--wu-bottombar-border);background:var(--wu-bottombar-bg);content:\"\";filter:drop-shadow(0 -1px 4px rgba(0,0,0,.08));-webkit-mask:radial-gradient(circle calc(var(--wu-bottombar-fab-size) / 2 + .5rem) at 50% 0,transparent 98%,#000 100%);mask:radial-gradient(circle calc(var(--wu-bottombar-fab-size) / 2 + .5rem) at 50% 0,transparent 98%,#000 100%)}.wu-bottombar-look-fab .wu-bottombar-inner{isolation:isolate}.wu-bottombar-fab-slot{position:relative;display:flex;flex:0 0 calc(var(--wu-bottombar-fab-size) + 1.5rem);justify-content:center}.wu-bottombar-fab{position:absolute;top:calc(var(--wu-bottombar-fab-size) / -2);display:inline-flex;align-items:center;justify-content:center;width:var(--wu-bottombar-fab-size);height:var(--wu-bottombar-fab-size);border:0;border-radius:50%;background:var(--wu-bottombar-fab-bg);color:var(--wu-bottombar-fab-color);box-shadow:var(--wu-bottombar-fab-shadow);cursor:pointer;transition:transform var(--wu-transition),box-shadow var(--wu-transition)}.wu-bottombar-fab:hover{transform:translateY(-2px) scale(1.04)}.wu-bottombar-fab:active{transform:scale(.94)}.wu-bottombar-fab:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-bottombar-fab-icon{font-size:1.5rem;line-height:1}@media(prefers-reduced-motion:reduce){.wu-bottombar,.wu-bottombar-item,.wu-bottombar-icon-wrap,.wu-bottombar-label,.wu-bottombar-fab{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
178
178
|
}
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBottomBar, decorators: [{
|
|
180
180
|
type: Component,
|
|
181
|
-
args: [{ selector: 'wu-bottombar, wu-bottom-bar, wu-bottomBar', standalone: true, imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-bottombar-host' }, template: "<nav [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"name\">\n <div class=\"wu-bottombar-inner\">\n <ng-container *ngFor=\"let item of items; let i = index\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.role]=\"item.url ? null : 'button'\"\n [attr.tabindex]=\"item.url ? null : 0\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n (keydown.enter)=\"!item.url && pick(item, i, $event)\"\n (keydown.space)=\"!item.url && pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n </ng-template>\n <span *ngIf=\"showFab && i === fabAfter\" class=\"wu-bottombar-fab-slot\">\n <button type=\"button\" class=\"wu-bottombar-fab\" [attr.aria-label]=\"action?.label || null\" [attr.title]=\"action?.label || null\" (click)=\"pick(action!, -1, $event)\">\n <span class=\"wu-bottombar-fab-icon\" [ngClass]=\"action?.icon || ''\" aria-hidden=\"true\"></span>\n </button>\n </span>\n </ng-container>\n </div>\n</nav>\n\n<ng-template #plainItem let-item>\n <span class=\"wu-bottombar-icon-wrap\">\n <span class=\"wu-bottombar-icon\" [ngClass]=\"item.icon || ''\" aria-hidden=\"true\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-bottombar-badge\">{{ item.badge }}</span>\n </span>\n <span class=\"wu-bottombar-label\">{{ item.label }}</span>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-bottombar,wu-bottom-bar,wu-bottomBar{display:block}.wu-bottombar{box-sizing:border-box;width:100%;font-family:var(--wu-font-family);transition:transform .25s ease}.wu-bottombar-fixed{position:fixed;right:0;bottom:0;left:0;z-index:var(--wu-bottombar-z);padding-bottom:env(safe-area-inset-bottom,0px)}.wu-bottombar-away{transform:translateY(calc(100% + 1rem))}.wu-bottombar-inner{position:relative;display:flex;align-items:stretch;min-height:var(--wu-bottombar-height);border-top:1px solid var(--wu-bottombar-border);background:var(--wu-bottombar-bg);box-shadow:var(--wu-bottombar-shadow)}.wu-bottombar-item{position:relative;display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-width:0;padding:.5rem .25rem;color:var(--wu-bottombar-color);font-size:.75rem;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color var(--wu-transition)}.wu-bottombar-item:focus-visible{border-radius:var(--wu-radius-md);outline:var(--wu-control-focus-outline);outline-offset:-4px;box-shadow:var(--wu-control-focus-shadow)}.wu-bottombar-item-disabled{opacity:.45;cursor:default}.wu-bottombar-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;width:4rem;height:2rem;border-radius:999px;transition:background var(--wu-transition),width var(--wu-transition)}.wu-bottombar-icon{font-size:1.375rem;line-height:1}.wu-bottombar-badge{position:absolute;top:-.125rem;left:calc(50% + .375rem);min-width:1.125rem;height:1.125rem;padding:0 .3rem;border-radius:999px;background:var(--wu-danger-color);color:#fff;font-size:.6875rem;font-weight:700;line-height:1.125rem;text-align:center}.wu-bottombar-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity var(--wu-transition),max-height var(--wu-transition)}.wu-bottombar-item-active{color:var(--wu-bottombar-active-color);font-weight:600}.wu-bottombar-item-active .wu-bottombar-icon-wrap{background:var(--wu-bottombar-indicator-bg)}.wu-bottombar-labels-active .wu-bottombar-item:not(.wu-bottombar-item-active) .wu-bottombar-label{max-height:0;opacity:0}.wu-bottombar-labels-active .wu-bottombar-label{max-height:1.25rem}.wu-bottombar-labels-never .wu-bottombar-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.wu-bottombar-look-pill{padding:0 .75rem .75rem}.wu-bottombar-look-pill.wu-bottombar-fixed{padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}.wu-bottombar-look-pill .wu-bottombar-inner{gap:.25rem;max-width:32rem;min-height:calc(var(--wu-bottombar-height) - .5rem);margin:0 auto;padding:.375rem;border:1px solid var(--wu-bottombar-border);border-radius:999px;box-shadow:var(--wu-bottombar-pill-shadow)}.wu-bottombar-look-pill .wu-bottombar-item{flex-direction:row;gap:.375rem;padding:0 .75rem;border-radius:999px;font-size:.8125rem;transition:flex-grow .3s ease,background var(--wu-transition),color var(--wu-transition)}.wu-bottombar-look-pill .wu-bottombar-item-active{flex-grow:2;background:var(--wu-bottombar-indicator-bg)}.wu-bottombar-look-pill .wu-bottombar-icon-wrap,.wu-bottombar-look-pill .wu-bottombar-item-active .wu-bottombar-icon-wrap{width:auto;height:auto;background:none}.wu-bottombar-look-pill.wu-bottombar-labels-active .wu-bottombar-item:not(.wu-bottombar-item-active) .wu-bottombar-label{max-width:0;max-height:none}.wu-bottombar-look-pill .wu-bottombar-label{max-height:none}.wu-bottombar-look-fab .wu-bottombar-inner{border-top:0;background:none;box-shadow:none}.wu-bottombar-look-fab .wu-bottombar-inner:before{position:absolute;inset:0;z-index:-1;border-top:1px solid var(--wu-bottombar-border);background:var(--wu-bottombar-bg);content:\"\";filter:drop-shadow(0 -1px 4px rgba(0,0,0,.08));-webkit-mask:radial-gradient(circle calc(var(--wu-bottombar-fab-size) / 2 + .5rem) at 50% 0,transparent 98%,#000 100%);mask:radial-gradient(circle calc(var(--wu-bottombar-fab-size) / 2 + .5rem) at 50% 0,transparent 98%,#000 100%)}.wu-bottombar-look-fab .wu-bottombar-inner{isolation:isolate}.wu-bottombar-fab-slot{position:relative;display:flex;flex:0 0 calc(var(--wu-bottombar-fab-size) + 1.5rem);justify-content:center}.wu-bottombar-fab{position:absolute;top:calc(var(--wu-bottombar-fab-size) / -2);display:inline-flex;align-items:center;justify-content:center;width:var(--wu-bottombar-fab-size);height:var(--wu-bottombar-fab-size);border:0;border-radius:50%;background:var(--wu-bottombar-fab-bg);color:var(--wu-bottombar-fab-color);box-shadow:var(--wu-bottombar-fab-shadow);cursor:pointer;transition:transform var(--wu-transition),box-shadow var(--wu-transition)}.wu-bottombar-fab:hover{transform:translateY(-2px) scale(1.04)}.wu-bottombar-fab:active{transform:scale(.94)}.wu-bottombar-fab:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-bottombar-fab-icon{font-size:1.5rem;line-height:1}@media
|
|
181
|
+
args: [{ selector: 'wu-bottombar, wu-bottom-bar, wu-bottomBar', standalone: true, imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-bottombar-host' }, template: "<nav [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"name\">\n <div class=\"wu-bottombar-inner\">\n <ng-container *ngFor=\"let item of items; let i = index\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.role]=\"item.url ? null : 'button'\"\n [attr.tabindex]=\"item.url ? null : 0\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n (keydown.enter)=\"!item.url && pick(item, i, $event)\"\n (keydown.space)=\"!item.url && pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n </ng-template>\n <span *ngIf=\"showFab && i === fabAfter\" class=\"wu-bottombar-fab-slot\">\n <button type=\"button\" class=\"wu-bottombar-fab\" [attr.aria-label]=\"action?.label || null\" [attr.title]=\"action?.label || null\" (click)=\"pick(action!, -1, $event)\">\n <span class=\"wu-bottombar-fab-icon\" [ngClass]=\"action?.icon || ''\" aria-hidden=\"true\"></span>\n </button>\n </span>\n </ng-container>\n </div>\n</nav>\n\n<ng-template #plainItem let-item>\n <span class=\"wu-bottombar-icon-wrap\">\n <span class=\"wu-bottombar-icon\" [ngClass]=\"item.icon || ''\" aria-hidden=\"true\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-bottombar-badge\">{{ item.badge }}</span>\n </span>\n <span class=\"wu-bottombar-label\">{{ item.label }}</span>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-bottombar,wu-bottom-bar,wu-bottomBar{display:block}.wu-bottombar{box-sizing:border-box;width:100%;font-family:var(--wu-font-family);transition:transform .25s ease}.wu-bottombar-fixed{position:fixed;right:0;bottom:0;left:0;z-index:var(--wu-bottombar-z);padding-bottom:env(safe-area-inset-bottom,0px)}.wu-bottombar-away{transform:translateY(calc(100% + 1rem))}.wu-bottombar-inner{position:relative;display:flex;align-items:stretch;min-height:var(--wu-bottombar-height);border-top:1px solid var(--wu-bottombar-border);background:var(--wu-bottombar-bg);box-shadow:var(--wu-bottombar-shadow)}.wu-bottombar-item{position:relative;display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-width:0;padding:.5rem .25rem;color:var(--wu-bottombar-color);font-size:.75rem;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color var(--wu-transition)}.wu-bottombar-item:focus-visible{border-radius:var(--wu-radius-md);outline:var(--wu-control-focus-outline);outline-offset:-4px;box-shadow:var(--wu-control-focus-shadow)}.wu-bottombar-item-disabled{opacity:.45;cursor:default}.wu-bottombar-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;width:4rem;height:2rem;border-radius:999px;transition:background var(--wu-transition),width var(--wu-transition)}.wu-bottombar-icon{font-size:1.375rem;line-height:1}.wu-bottombar-badge{position:absolute;top:-.125rem;left:calc(50% + .375rem);min-width:1.125rem;height:1.125rem;padding:0 .3rem;border-radius:999px;background:var(--wu-danger-color);color:#fff;font-size:.6875rem;font-weight:700;line-height:1.125rem;text-align:center}.wu-bottombar-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity var(--wu-transition),max-height var(--wu-transition)}.wu-bottombar-item-active{color:var(--wu-bottombar-active-color);font-weight:600}.wu-bottombar-item-active .wu-bottombar-icon-wrap{background:var(--wu-bottombar-indicator-bg)}.wu-bottombar-labels-active .wu-bottombar-item:not(.wu-bottombar-item-active) .wu-bottombar-label{max-height:0;opacity:0}.wu-bottombar-labels-active .wu-bottombar-label{max-height:1.25rem}.wu-bottombar-labels-never .wu-bottombar-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.wu-bottombar-look-pill{padding:0 .75rem .75rem}.wu-bottombar-look-pill.wu-bottombar-fixed{padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}.wu-bottombar-look-pill .wu-bottombar-inner{gap:.25rem;max-width:32rem;min-height:calc(var(--wu-bottombar-height) - .5rem);margin:0 auto;padding:.375rem;border:1px solid var(--wu-bottombar-border);border-radius:999px;box-shadow:var(--wu-bottombar-pill-shadow)}.wu-bottombar-look-pill .wu-bottombar-item{flex-direction:row;gap:.375rem;padding:0 .75rem;border-radius:999px;font-size:.8125rem;transition:flex-grow .3s ease,background var(--wu-transition),color var(--wu-transition)}.wu-bottombar-look-pill .wu-bottombar-item-active{flex-grow:2;background:var(--wu-bottombar-indicator-bg)}.wu-bottombar-look-pill .wu-bottombar-icon-wrap,.wu-bottombar-look-pill .wu-bottombar-item-active .wu-bottombar-icon-wrap{width:auto;height:auto;background:none}.wu-bottombar-look-pill.wu-bottombar-labels-active .wu-bottombar-item:not(.wu-bottombar-item-active) .wu-bottombar-label{max-width:0;max-height:none}.wu-bottombar-look-pill .wu-bottombar-label{max-height:none}.wu-bottombar-look-fab .wu-bottombar-inner{border-top:0;background:none;box-shadow:none}.wu-bottombar-look-fab .wu-bottombar-inner:before{position:absolute;inset:0;z-index:-1;border-top:1px solid var(--wu-bottombar-border);background:var(--wu-bottombar-bg);content:\"\";filter:drop-shadow(0 -1px 4px rgba(0,0,0,.08));-webkit-mask:radial-gradient(circle calc(var(--wu-bottombar-fab-size) / 2 + .5rem) at 50% 0,transparent 98%,#000 100%);mask:radial-gradient(circle calc(var(--wu-bottombar-fab-size) / 2 + .5rem) at 50% 0,transparent 98%,#000 100%)}.wu-bottombar-look-fab .wu-bottombar-inner{isolation:isolate}.wu-bottombar-fab-slot{position:relative;display:flex;flex:0 0 calc(var(--wu-bottombar-fab-size) + 1.5rem);justify-content:center}.wu-bottombar-fab{position:absolute;top:calc(var(--wu-bottombar-fab-size) / -2);display:inline-flex;align-items:center;justify-content:center;width:var(--wu-bottombar-fab-size);height:var(--wu-bottombar-fab-size);border:0;border-radius:50%;background:var(--wu-bottombar-fab-bg);color:var(--wu-bottombar-fab-color);box-shadow:var(--wu-bottombar-fab-shadow);cursor:pointer;transition:transform var(--wu-transition),box-shadow var(--wu-transition)}.wu-bottombar-fab:hover{transform:translateY(-2px) scale(1.04)}.wu-bottombar-fab:active{transform:scale(.94)}.wu-bottombar-fab:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-bottombar-fab-icon{font-size:1.5rem;line-height:1}@media(prefers-reduced-motion:reduce){.wu-bottombar,.wu-bottombar-item,.wu-bottombar-icon-wrap,.wu-bottombar-label,.wu-bottombar-fab{transition:none}}}\n"] }]
|
|
182
182
|
}], ctorParameters: () => [], propDecorators: { model: [{
|
|
183
183
|
type: Input
|
|
184
184
|
}], activeIndex: [{
|
|
@@ -210,11 +210,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
210
210
|
|
|
211
211
|
/** For NgModule apps (with `WuTemplate` for the `item` slot). Standalone apps can import `WuBottomBar` directly. */
|
|
212
212
|
class WuBottomBarModule {
|
|
213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
214
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
215
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
213
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBottomBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
214
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuBottomBarModule, imports: [WuBottomBar, WuTemplate], exports: [WuBottomBar, WuTemplate] }); }
|
|
215
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBottomBarModule }); }
|
|
216
216
|
}
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBottomBarModule, decorators: [{
|
|
218
218
|
type: NgModule,
|
|
219
219
|
args: [{
|
|
220
220
|
imports: [WuBottomBar, WuTemplate],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-bottombar.mjs","sources":["../../lib/bottombar/bottombar.component.ts","../../lib/bottombar/bottombar.component.html","../../lib/bottombar/bottombar.module.ts","../../lib/bottombar/wirabyte-ui-bottombar.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { IsActiveMatchOptions, NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig, WuMenuItem, WuTemplate } from '@wirabyte/ui/config';\nimport { TH_LOCALE } from '@wirabyte/ui/core';\n\n/** `'standard'` (default): a full-width bar. `'pill'`: a floating pill whose active item opens to show its name. `'fab'`: a bar with a raised round button in the middle (`action`). */\nexport type WuBottomBarLook = 'standard' | 'pill' | 'fab';\n\n/** Item names: `'always'` (default), only the `'active'` one, or `'never'` (still read out). */\nexport type WuBottomBarLabels = 'always' | 'active' | 'never';\n\n/** `(onItemClick)`: the item clicked; `index` is -1 for the middle button. */\nexport interface WuBottomBarItemClickEvent {\n originalEvent: Event;\n item: WuMenuItem;\n index: number;\n}\n\nconst SUBSET: IsActiveMatchOptions = { paths: 'subset', queryParams: 'subset', fragment: 'ignored', matrixParams: 'ignored' };\nconst EXACT: IsActiveMatchOptions = { paths: 'exact', queryParams: 'exact', fragment: 'ignored', matrixParams: 'ignored' };\n\n/**\n * The main menu of a phone app, along the bottom of the screen: `<wu-bottombar [model]=\"tabs\">`. Items are menu items\n * (`label`, `icon`, `routerLink`, `url`, `command`, `badge`, `disabled`). The active one follows `[(activeIndex)]`, or\n * the route when items have `routerLink` (the closest match; `routerLinkActiveOptions: { exact: true }` for home).\n * Looks: `standard`, `pill` and `fab` (with `action`, the round button in the middle). `labels` shows names always, for\n * the active item only, or never. It stays fixed to the bottom of the screen above the home indicator (`fixed`, default\n * true), and `hideOnScroll` slides it away while the page scrolls down. `<ng-template wuTemplate=\"item\" let-item let-active=\"active\">` draws an item.\n */\n@Component({\n selector: 'wu-bottombar, wu-bottom-bar, wu-bottomBar',\n standalone: true,\n imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink],\n templateUrl: './bottombar.component.html',\n styleUrls: ['./bottombar.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-bottombar-host' },\n})\nexport class WuBottomBar implements AfterViewInit, OnDestroy {\n @Input() model: WuMenuItem[] | null | undefined;\n /** The active item; default: from the route, else none. */\n @Input() set activeIndex(v: number | string | null | undefined) {\n const n = Number(v);\n this._index = v === null || v === undefined || v === '' || !Number.isInteger(n) ? null : n;\n }\n get activeIndex(): number | null {\n return this._index;\n }\n /** `'standard'` (default), `'pill'` or `'fab'`. */\n @Input() set look(v: WuBottomBarLook | string | null | undefined) {\n this._look = v === 'pill' || v === 'fab' ? v : 'standard';\n }\n get look(): WuBottomBarLook {\n return this._look;\n }\n /** `'always'` (default; pill: `'active'`), `'active'` or `'never'`. */\n @Input() labels?: WuBottomBarLabels | null;\n /** The round button in the middle (`look=\"fab\"`): `{ icon: 'wi wi-plus', label: 'สร้าง', command }`. */\n @Input() action?: WuMenuItem | null;\n /** Fixed to the bottom of the screen. Default true; false keeps it where it is in the page. */\n @Input() fixed: boolean | string | null | undefined = true;\n /** Slide away while the page scrolls down, back as it scrolls up. */\n @Input() hideOnScroll: boolean | string | null | undefined = false;\n @Input() ariaLabel?: string | null;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n @Output() readonly activeIndexChange = new EventEmitter<number>();\n @Output() readonly onItemClick = new EventEmitter<WuBottomBarItemClickEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n\n /** Away while the page scrolls down. */\n away = false;\n\n private _index: number | null = null;\n private _look: WuBottomBarLook = 'standard';\n private routeIndex: number | null = null;\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n private readonly router = inject(Router, { optional: true });\n private readonly i18n = ɵrefreshOnTranslation();\n private routes?: Subscription;\n private stopScroll: (() => void) | null = null;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n this.routes = this.router?.events.subscribe((e) => {\n if (!(e instanceof NavigationEnd)) return;\n this.routeIndex = this.fromRoute();\n this.cdr.markForCheck();\n });\n }\n\n ngAfterViewInit(): void {\n this.routeIndex = this.fromRoute();\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n if (!win) return;\n // Scrolling happens often: watch it outside change detection, touching only the bar's class.\n this.zone.runOutsideAngular(() => {\n let last = win.scrollY;\n const onScroll = () => {\n if (!this.on(this.hideOnScroll)) return;\n const y = win.scrollY;\n const away = y > last + 6 && y > 56 ? true : y < last - 6 ? false : this.away;\n last = y;\n if (away === this.away) return;\n this.away = away;\n this.host.querySelector('.wu-bottombar')?.classList.toggle('wu-bottombar-away', away);\n };\n win.addEventListener('scroll', onScroll, { passive: true });\n this.stopScroll = () => win.removeEventListener('scroll', onScroll);\n });\n }\n\n ngOnDestroy(): void {\n this.routes?.unsubscribe();\n this.stopScroll?.();\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get items(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false);\n }\n /** The active item: the one given, else the route's. */\n get current(): number {\n return this._index ?? this.routeIndex ?? -1;\n }\n get showFab(): boolean {\n return this._look === 'fab' && !!this.action && this.action.visible !== false;\n }\n /** The middle button goes after this item (half the items on its left). */\n get fabAfter(): number {\n return Math.ceil(this.items.length / 2) - 1;\n }\n get labelMode(): WuBottomBarLabels {\n return this.labels === 'active' || this.labels === 'never' || this.labels === 'always' ? this.labels : this._look === 'pill' ? 'active' : 'always';\n }\n get name(): string {\n return this.ariaLabel || this.config.translation.bottombar || TH_LOCALE.bottombar;\n }\n get itemTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'item');\n }\n get classes(): string[] {\n return [\n 'wu-bottombar',\n `wu-bottombar-look-${this._look}`,\n `wu-bottombar-labels-${this.labelMode}`,\n this.on(this.fixed) ? 'wu-bottombar-fixed' : '',\n this.away ? 'wu-bottombar-away' : '',\n this.styleClass || '',\n ];\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n hasRoute(item: WuMenuItem): boolean {\n return item.routerLink !== undefined && item.routerLink !== null && !item.disabled;\n }\n\n // ---------- events ----------\n\n pick(item: WuMenuItem, index: number, event: Event): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !this.hasRoute(item)) event.preventDefault();\n if (index >= 0 && index !== this.current) {\n this._index = index;\n this.activeIndexChange.emit(index);\n }\n item.command?.({ originalEvent: event, item, index });\n this.onItemClick.emit({ originalEvent: event, item, index });\n }\n\n // ---------- internals ----------\n\n private on(v: boolean | string | null | undefined): boolean {\n return v === '' || v === true || v === 'true';\n }\n\n /** The item whose route is open: the longest match, so `/students/12` picks Students over Home. */\n private fromRoute(): number | null {\n const router = this.router;\n if (!router) return null;\n let best: number | null = null;\n let bestLength = -1;\n this.items.forEach((item, i) => {\n if (!this.hasRoute(item)) return;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const link: any[] = Array.isArray(item.routerLink) ? item.routerLink : [item.routerLink];\n const tree = router.createUrlTree(link, { queryParams: item.queryParams as Record<string, unknown> | undefined });\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const exact = !!(item.routerLinkActiveOptions as any)?.exact;\n if (!router.isActive(tree, exact ? EXACT : SUBSET)) return;\n const length = router.serializeUrl(tree).length;\n if (length > bestLength) {\n best = i;\n bestLength = length;\n }\n });\n return best;\n }\n}\n","<nav [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"name\">\n <div class=\"wu-bottombar-inner\">\n <ng-container *ngFor=\"let item of items; let i = index\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.role]=\"item.url ? null : 'button'\"\n [attr.tabindex]=\"item.url ? null : 0\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n (keydown.enter)=\"!item.url && pick(item, i, $event)\"\n (keydown.space)=\"!item.url && pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n </ng-template>\n <span *ngIf=\"showFab && i === fabAfter\" class=\"wu-bottombar-fab-slot\">\n <button type=\"button\" class=\"wu-bottombar-fab\" [attr.aria-label]=\"action?.label || null\" [attr.title]=\"action?.label || null\" (click)=\"pick(action!, -1, $event)\">\n <span class=\"wu-bottombar-fab-icon\" [ngClass]=\"action?.icon || ''\" aria-hidden=\"true\"></span>\n </button>\n </span>\n </ng-container>\n </div>\n</nav>\n\n<ng-template #plainItem let-item>\n <span class=\"wu-bottombar-icon-wrap\">\n <span class=\"wu-bottombar-icon\" [ngClass]=\"item.icon || ''\" aria-hidden=\"true\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-bottombar-badge\">{{ item.badge }}</span>\n </span>\n <span class=\"wu-bottombar-label\">{{ item.label }}</span>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuBottomBar } from './bottombar.component';\n\n/** For NgModule apps (with `WuTemplate` for the `item` slot). Standalone apps can import `WuBottomBar` directly. */\n@NgModule({\n imports: [WuBottomBar, WuTemplate],\n exports: [WuBottomBar, WuTemplate],\n})\nexport class WuBottomBarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"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AA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHlB,WAAW,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CACvB,WAAW,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;gHAEtB,iBAAiB,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;AAClC,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;AACnC,iBAAA;;;ACRD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-bottombar.mjs","sources":["../../lib/bottombar/bottombar.component.ts","../../lib/bottombar/bottombar.component.html","../../lib/bottombar/bottombar.module.ts","../../lib/bottombar/wirabyte-ui-bottombar.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { IsActiveMatchOptions, NavigationEnd, Router, RouterLink } from '@angular/router';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig, WuMenuItem, WuTemplate } from '@wirabyte/ui/config';\nimport { TH_LOCALE } from '@wirabyte/ui/core';\n\n/** `'standard'` (default): a full-width bar. `'pill'`: a floating pill whose active item opens to show its name. `'fab'`: a bar with a raised round button in the middle (`action`). */\nexport type WuBottomBarLook = 'standard' | 'pill' | 'fab';\n\n/** Item names: `'always'` (default), only the `'active'` one, or `'never'` (still read out). */\nexport type WuBottomBarLabels = 'always' | 'active' | 'never';\n\n/** `(onItemClick)`: the item clicked; `index` is -1 for the middle button. */\nexport interface WuBottomBarItemClickEvent {\n originalEvent: Event;\n item: WuMenuItem;\n index: number;\n}\n\nconst SUBSET: IsActiveMatchOptions = { paths: 'subset', queryParams: 'subset', fragment: 'ignored', matrixParams: 'ignored' };\nconst EXACT: IsActiveMatchOptions = { paths: 'exact', queryParams: 'exact', fragment: 'ignored', matrixParams: 'ignored' };\n\n/**\n * The main menu of a phone app, along the bottom of the screen: `<wu-bottombar [model]=\"tabs\">`. Items are menu items\n * (`label`, `icon`, `routerLink`, `url`, `command`, `badge`, `disabled`). The active one follows `[(activeIndex)]`, or\n * the route when items have `routerLink` (the closest match; `routerLinkActiveOptions: { exact: true }` for home).\n * Looks: `standard`, `pill` and `fab` (with `action`, the round button in the middle). `labels` shows names always, for\n * the active item only, or never. It stays fixed to the bottom of the screen above the home indicator (`fixed`, default\n * true), and `hideOnScroll` slides it away while the page scrolls down. `<ng-template wuTemplate=\"item\" let-item let-active=\"active\">` draws an item.\n */\n@Component({\n selector: 'wu-bottombar, wu-bottom-bar, wu-bottomBar',\n standalone: true,\n imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink],\n templateUrl: './bottombar.component.html',\n styleUrls: ['./bottombar.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-bottombar-host' },\n})\nexport class WuBottomBar implements AfterViewInit, OnDestroy {\n @Input() model: WuMenuItem[] | null | undefined;\n /** The active item; default: from the route, else none. */\n @Input() set activeIndex(v: number | string | null | undefined) {\n const n = Number(v);\n this._index = v === null || v === undefined || v === '' || !Number.isInteger(n) ? null : n;\n }\n get activeIndex(): number | null {\n return this._index;\n }\n /** `'standard'` (default), `'pill'` or `'fab'`. */\n @Input() set look(v: WuBottomBarLook | string | null | undefined) {\n this._look = v === 'pill' || v === 'fab' ? v : 'standard';\n }\n get look(): WuBottomBarLook {\n return this._look;\n }\n /** `'always'` (default; pill: `'active'`), `'active'` or `'never'`. */\n @Input() labels?: WuBottomBarLabels | null;\n /** The round button in the middle (`look=\"fab\"`): `{ icon: 'wi wi-plus', label: 'สร้าง', command }`. */\n @Input() action?: WuMenuItem | null;\n /** Fixed to the bottom of the screen. Default true; false keeps it where it is in the page. */\n @Input() fixed: boolean | string | null | undefined = true;\n /** Slide away while the page scrolls down, back as it scrolls up. */\n @Input() hideOnScroll: boolean | string | null | undefined = false;\n @Input() ariaLabel?: string | null;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n @Output() readonly activeIndexChange = new EventEmitter<number>();\n @Output() readonly onItemClick = new EventEmitter<WuBottomBarItemClickEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n\n /** Away while the page scrolls down. */\n away = false;\n\n private _index: number | null = null;\n private _look: WuBottomBarLook = 'standard';\n private routeIndex: number | null = null;\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n private readonly router = inject(Router, { optional: true });\n private readonly i18n = ɵrefreshOnTranslation();\n private routes?: Subscription;\n private stopScroll: (() => void) | null = null;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n this.routes = this.router?.events.subscribe((e) => {\n if (!(e instanceof NavigationEnd)) return;\n this.routeIndex = this.fromRoute();\n this.cdr.markForCheck();\n });\n }\n\n ngAfterViewInit(): void {\n this.routeIndex = this.fromRoute();\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n if (!win) return;\n // Scrolling happens often: watch it outside change detection, touching only the bar's class.\n this.zone.runOutsideAngular(() => {\n let last = win.scrollY;\n const onScroll = () => {\n if (!this.on(this.hideOnScroll)) return;\n const y = win.scrollY;\n const away = y > last + 6 && y > 56 ? true : y < last - 6 ? false : this.away;\n last = y;\n if (away === this.away) return;\n this.away = away;\n this.host.querySelector('.wu-bottombar')?.classList.toggle('wu-bottombar-away', away);\n };\n win.addEventListener('scroll', onScroll, { passive: true });\n this.stopScroll = () => win.removeEventListener('scroll', onScroll);\n });\n }\n\n ngOnDestroy(): void {\n this.routes?.unsubscribe();\n this.stopScroll?.();\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get items(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false);\n }\n /** The active item: the one given, else the route's. */\n get current(): number {\n return this._index ?? this.routeIndex ?? -1;\n }\n get showFab(): boolean {\n return this._look === 'fab' && !!this.action && this.action.visible !== false;\n }\n /** The middle button goes after this item (half the items on its left). */\n get fabAfter(): number {\n return Math.ceil(this.items.length / 2) - 1;\n }\n get labelMode(): WuBottomBarLabels {\n return this.labels === 'active' || this.labels === 'never' || this.labels === 'always' ? this.labels : this._look === 'pill' ? 'active' : 'always';\n }\n get name(): string {\n return this.ariaLabel || this.config.translation.bottombar || TH_LOCALE.bottombar;\n }\n get itemTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'item');\n }\n get classes(): string[] {\n return [\n 'wu-bottombar',\n `wu-bottombar-look-${this._look}`,\n `wu-bottombar-labels-${this.labelMode}`,\n this.on(this.fixed) ? 'wu-bottombar-fixed' : '',\n this.away ? 'wu-bottombar-away' : '',\n this.styleClass || '',\n ];\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n hasRoute(item: WuMenuItem): boolean {\n return item.routerLink !== undefined && item.routerLink !== null && !item.disabled;\n }\n\n // ---------- events ----------\n\n pick(item: WuMenuItem, index: number, event: Event): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !this.hasRoute(item)) event.preventDefault();\n if (index >= 0 && index !== this.current) {\n this._index = index;\n this.activeIndexChange.emit(index);\n }\n item.command?.({ originalEvent: event, item, index });\n this.onItemClick.emit({ originalEvent: event, item, index });\n }\n\n // ---------- internals ----------\n\n private on(v: boolean | string | null | undefined): boolean {\n return v === '' || v === true || v === 'true';\n }\n\n /** The item whose route is open: the longest match, so `/students/12` picks Students over Home. */\n private fromRoute(): number | null {\n const router = this.router;\n if (!router) return null;\n let best: number | null = null;\n let bestLength = -1;\n this.items.forEach((item, i) => {\n if (!this.hasRoute(item)) return;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const link: any[] = Array.isArray(item.routerLink) ? item.routerLink : [item.routerLink];\n const tree = router.createUrlTree(link, { queryParams: item.queryParams as Record<string, unknown> | undefined });\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const exact = !!(item.routerLinkActiveOptions as any)?.exact;\n if (!router.isActive(tree, exact ? EXACT : SUBSET)) return;\n const length = router.serializeUrl(tree).length;\n if (length > bestLength) {\n best = i;\n bestLength = length;\n }\n });\n return best;\n }\n}\n","<nav [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"name\">\n <div class=\"wu-bottombar-inner\">\n <ng-container *ngFor=\"let item of items; let i = index\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-bottombar-item\"\n [class.wu-bottombar-item-active]=\"i === current\"\n [class.wu-bottombar-item-disabled]=\"item.disabled\"\n [ngClass]=\"item.styleClass || ''\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.role]=\"item.url ? null : 'button'\"\n [attr.tabindex]=\"item.url ? null : 0\"\n [attr.aria-current]=\"i === current ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-index]=\"i\"\n (click)=\"pick(item, i, $event)\"\n (keydown.enter)=\"!item.url && pick(item, i, $event)\"\n (keydown.space)=\"!item.url && pick(item, i, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate || plainItem; context: { $implicit: item, active: i === current, index: i }\"></ng-container>\n </a>\n </ng-template>\n <span *ngIf=\"showFab && i === fabAfter\" class=\"wu-bottombar-fab-slot\">\n <button type=\"button\" class=\"wu-bottombar-fab\" [attr.aria-label]=\"action?.label || null\" [attr.title]=\"action?.label || null\" (click)=\"pick(action!, -1, $event)\">\n <span class=\"wu-bottombar-fab-icon\" [ngClass]=\"action?.icon || ''\" aria-hidden=\"true\"></span>\n </button>\n </span>\n </ng-container>\n </div>\n</nav>\n\n<ng-template #plainItem let-item>\n <span class=\"wu-bottombar-icon-wrap\">\n <span class=\"wu-bottombar-icon\" [ngClass]=\"item.icon || ''\" aria-hidden=\"true\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-bottombar-badge\">{{ item.badge }}</span>\n </span>\n <span class=\"wu-bottombar-label\">{{ item.label }}</span>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuBottomBar } from './bottombar.component';\n\n/** For NgModule apps (with `WuTemplate` for the `item` slot). Standalone apps can import `WuBottomBar` directly. */\n@NgModule({\n imports: [WuBottomBar, WuTemplate],\n exports: [WuBottomBar, WuTemplate],\n})\nexport class WuBottomBarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate"],"mappings":";;;;;;;AAmCA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-54,12 +54,12 @@ class WuBreadcrumb {
|
|
|
54
54
|
item.command?.({ originalEvent: event, item });
|
|
55
55
|
this.onItemClick.emit({ originalEvent: event, item });
|
|
56
56
|
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
58
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuBreadcrumb, isStandalone: true, selector: "wu-breadcrumb", inputs: { model: "model", home: "home", homeAriaLabel: "homeAriaLabel", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { onItemClick: "onItemClick" }, queries: [{ propertyName: "itemRef", first: true, predicate: ["item"] }, { propertyName: "separatorRef", first: true, predicate: ["separator"] }, { propertyName: "templates", predicate: WuTemplate }], ngImport: i0, template: "<nav class=\"wu-breadcrumb p-breadcrumb p-component\" [class]=\"styleClass || ''\" [style]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || t.breadcrumb\">\n <ol class=\"wu-breadcrumb-list p-breadcrumb-list p-menuitem-list\">\n <li\n *ngIf=\"home\"\n class=\"wu-breadcrumb-item wu-breadcrumb-home p-breadcrumb-home-item p-menuitem\"\n [ngClass]=\"home.styleClass || ''\"\n [ngStyle]=\"home.style || null\"\n [class.wu-breadcrumb-item-disabled]=\"home.disabled\"\n [class.p-disabled]=\"home.disabled\"\n >\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: home, isHome: true, last: !items.length }\"></ng-container>\n </li>\n <ng-container *ngFor=\"let item of items; let i = index; let last = last\">\n <li *ngIf=\"home || i > 0\" class=\"wu-breadcrumb-separator p-breadcrumb-separator p-menuitem-separator\" aria-hidden=\"true\">\n <ng-container *ngIf=\"separatorTemplate; else chevron\">\n <ng-container *ngTemplateOutlet=\"separatorTemplate\"></ng-container>\n </ng-container>\n <ng-template #chevron>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m6.5 3.5 4.5 4.5-4.5 4.5\"></path></svg>\n </ng-template>\n </li>\n <li\n class=\"wu-breadcrumb-item p-breadcrumb-item p-menuitem\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-breadcrumb-item-disabled]=\"item.disabled\"\n [class.p-disabled]=\"item.disabled\"\n [class.wu-breadcrumb-current]=\"last\"\n >\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: item, isHome: false, last: last }\"></ng-container>\n </li>\n </ng-container>\n </ol>\n</nav>\n\n<ng-template #link let-item let-isHome=\"isHome\" let-last=\"last\">\n <a\n *ngIf=\"routed(item); else plain\"\n class=\"wu-breadcrumb-link p-breadcrumb-item-link p-menuitem-link\"\n [attr.aria-label]=\"isHome && !item.label ? homeLabel : null\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [attr.title]=\"item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-breadcrumb-link-active p-menuitem-link-active\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: true }\"\n (click)=\"itemClick($event, item)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, isHome: isHome }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-breadcrumb-link p-breadcrumb-item-link p-menuitem-link\"\n [class.wu-breadcrumb-link-static]=\"!item.url && !item.command\"\n [attr.href]=\"hrefOf(item)\"\n [attr.role]=\"!item.url && item.command ? 'button' : null\"\n [attr.tabindex]=\"!item.url && item.command && !item.disabled ? 0 : null\"\n [attr.aria-label]=\"isHome && !item.label ? homeLabel : null\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"item.title || null\"\n [attr.target]=\"item.url ? item.target || null : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item)\"\n (keydown.enter)=\"!item.url && itemClick($any($event), item)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, isHome: isHome }\"></ng-container>\n </a>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-isHome=\"isHome\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-breadcrumb-icon p-breadcrumb-item-icon p-menuitem-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <svg *ngIf=\"isHome && !item.icon\" class=\"wu-breadcrumb-icon wu-breadcrumb-home-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M2.5 7.25 8 2.75l5.5 4.5\"></path>\n <path d=\"M4 6.25v7h3V10h2v3.25h3v-7\"></path>\n </svg>\n <span *ngIf=\"item.label && item.escape !== false\" class=\"wu-breadcrumb-label p-breadcrumb-item-label p-menuitem-text\">{{ item.label }}</span>\n <span *ngIf=\"item.label && item.escape === false\" class=\"wu-breadcrumb-label p-breadcrumb-item-label p-menuitem-text\" [innerHTML]=\"item.label\"></span>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-breadcrumb{display:block;max-width:100%}.wu-breadcrumb{padding:var(--wu-breadcrumb-padding);border:var(--wu-breadcrumb-border-width) solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-breadcrumb-bg)}.wu-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wu-breadcrumb-gap);margin:0;padding:0;list-style:none}.wu-breadcrumb-item{display:flex;min-width:0}.wu-breadcrumb-link{display:inline-flex;align-items:center;gap:.5rem;min-width:0;border-radius:var(--wu-radius-sm);color:var(--wu-breadcrumb-link-color);text-decoration:none;cursor:pointer;transition:color .15s}.wu-breadcrumb-link:hover{color:var(--wu-breadcrumb-link-hover-color)}.wu-breadcrumb-link:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-breadcrumb-link-static{cursor:default}.wu-breadcrumb-current .wu-breadcrumb-link{color:var(--wu-breadcrumb-current-color);font-weight:var(--wu-breadcrumb-current-weight)}.wu-breadcrumb-item-disabled .wu-breadcrumb-link{opacity:var(--wu-disabled-opacity);cursor:default}.wu-breadcrumb-label{min-width:0;overflow-wrap:anywhere}.wu-breadcrumb-icon{flex:none}svg.wu-breadcrumb-icon{width:1rem;height:1rem}.wu-breadcrumb-separator{display:flex;align-items:center;color:var(--wu-text-muted)}.wu-breadcrumb-separator svg{width:.875rem;height:.875rem}@media(pointer:coarse){.wu-breadcrumb-link{position:relative}.wu-breadcrumb-link:after{content:\"\";position:absolute;inset:-.375rem}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBreadcrumb, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
|
-
args: [{ selector: 'wu-breadcrumb', standalone: true, imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink, RouterLinkActive], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav class=\"wu-breadcrumb p-breadcrumb p-component\" [class]=\"styleClass || ''\" [style]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || t.breadcrumb\">\n <ol class=\"wu-breadcrumb-list p-breadcrumb-list p-menuitem-list\">\n <li\n *ngIf=\"home\"\n class=\"wu-breadcrumb-item wu-breadcrumb-home p-breadcrumb-home-item p-menuitem\"\n [ngClass]=\"home.styleClass || ''\"\n [ngStyle]=\"home.style || null\"\n [class.wu-breadcrumb-item-disabled]=\"home.disabled\"\n [class.p-disabled]=\"home.disabled\"\n >\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: home, isHome: true, last: !items.length }\"></ng-container>\n </li>\n <ng-container *ngFor=\"let item of items; let i = index; let last = last\">\n <li *ngIf=\"home || i > 0\" class=\"wu-breadcrumb-separator p-breadcrumb-separator p-menuitem-separator\" aria-hidden=\"true\">\n <ng-container *ngIf=\"separatorTemplate; else chevron\">\n <ng-container *ngTemplateOutlet=\"separatorTemplate\"></ng-container>\n </ng-container>\n <ng-template #chevron>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m6.5 3.5 4.5 4.5-4.5 4.5\"></path></svg>\n </ng-template>\n </li>\n <li\n class=\"wu-breadcrumb-item p-breadcrumb-item p-menuitem\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-breadcrumb-item-disabled]=\"item.disabled\"\n [class.p-disabled]=\"item.disabled\"\n [class.wu-breadcrumb-current]=\"last\"\n >\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: item, isHome: false, last: last }\"></ng-container>\n </li>\n </ng-container>\n </ol>\n</nav>\n\n<ng-template #link let-item let-isHome=\"isHome\" let-last=\"last\">\n <a\n *ngIf=\"routed(item); else plain\"\n class=\"wu-breadcrumb-link p-breadcrumb-item-link p-menuitem-link\"\n [attr.aria-label]=\"isHome && !item.label ? homeLabel : null\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [attr.title]=\"item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-breadcrumb-link-active p-menuitem-link-active\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: true }\"\n (click)=\"itemClick($event, item)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, isHome: isHome }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-breadcrumb-link p-breadcrumb-item-link p-menuitem-link\"\n [class.wu-breadcrumb-link-static]=\"!item.url && !item.command\"\n [attr.href]=\"hrefOf(item)\"\n [attr.role]=\"!item.url && item.command ? 'button' : null\"\n [attr.tabindex]=\"!item.url && item.command && !item.disabled ? 0 : null\"\n [attr.aria-label]=\"isHome && !item.label ? homeLabel : null\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"item.title || null\"\n [attr.target]=\"item.url ? item.target || null : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item)\"\n (keydown.enter)=\"!item.url && itemClick($any($event), item)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, isHome: isHome }\"></ng-container>\n </a>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-isHome=\"isHome\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-breadcrumb-icon p-breadcrumb-item-icon p-menuitem-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <svg *ngIf=\"isHome && !item.icon\" class=\"wu-breadcrumb-icon wu-breadcrumb-home-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M2.5 7.25 8 2.75l5.5 4.5\"></path>\n <path d=\"M4 6.25v7h3V10h2v3.25h3v-7\"></path>\n </svg>\n <span *ngIf=\"item.label && item.escape !== false\" class=\"wu-breadcrumb-label p-breadcrumb-item-label p-menuitem-text\">{{ item.label }}</span>\n <span *ngIf=\"item.label && item.escape === false\" class=\"wu-breadcrumb-label p-breadcrumb-item-label p-menuitem-text\" [innerHTML]=\"item.label\"></span>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-breadcrumb{display:block;max-width:100%}.wu-breadcrumb{padding:var(--wu-breadcrumb-padding);border:var(--wu-breadcrumb-border-width) solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-breadcrumb-bg)}.wu-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wu-breadcrumb-gap);margin:0;padding:0;list-style:none}.wu-breadcrumb-item{display:flex;min-width:0}.wu-breadcrumb-link{display:inline-flex;align-items:center;gap:.5rem;min-width:0;border-radius:var(--wu-radius-sm);color:var(--wu-breadcrumb-link-color);text-decoration:none;cursor:pointer;transition:color .15s}.wu-breadcrumb-link:hover{color:var(--wu-breadcrumb-link-hover-color)}.wu-breadcrumb-link:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-breadcrumb-link-static{cursor:default}.wu-breadcrumb-current .wu-breadcrumb-link{color:var(--wu-breadcrumb-current-color);font-weight:var(--wu-breadcrumb-current-weight)}.wu-breadcrumb-item-disabled .wu-breadcrumb-link{opacity:var(--wu-disabled-opacity);cursor:default}.wu-breadcrumb-label{min-width:0;overflow-wrap:anywhere}.wu-breadcrumb-icon{flex:none}svg.wu-breadcrumb-icon{width:1rem;height:1rem}.wu-breadcrumb-separator{display:flex;align-items:center;color:var(--wu-text-muted)}.wu-breadcrumb-separator svg{width:.875rem;height:.875rem}@media
|
|
62
|
+
args: [{ selector: 'wu-breadcrumb', standalone: true, imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink, RouterLinkActive], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav class=\"wu-breadcrumb p-breadcrumb p-component\" [class]=\"styleClass || ''\" [style]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || t.breadcrumb\">\n <ol class=\"wu-breadcrumb-list p-breadcrumb-list p-menuitem-list\">\n <li\n *ngIf=\"home\"\n class=\"wu-breadcrumb-item wu-breadcrumb-home p-breadcrumb-home-item p-menuitem\"\n [ngClass]=\"home.styleClass || ''\"\n [ngStyle]=\"home.style || null\"\n [class.wu-breadcrumb-item-disabled]=\"home.disabled\"\n [class.p-disabled]=\"home.disabled\"\n >\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: home, isHome: true, last: !items.length }\"></ng-container>\n </li>\n <ng-container *ngFor=\"let item of items; let i = index; let last = last\">\n <li *ngIf=\"home || i > 0\" class=\"wu-breadcrumb-separator p-breadcrumb-separator p-menuitem-separator\" aria-hidden=\"true\">\n <ng-container *ngIf=\"separatorTemplate; else chevron\">\n <ng-container *ngTemplateOutlet=\"separatorTemplate\"></ng-container>\n </ng-container>\n <ng-template #chevron>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m6.5 3.5 4.5 4.5-4.5 4.5\"></path></svg>\n </ng-template>\n </li>\n <li\n class=\"wu-breadcrumb-item p-breadcrumb-item p-menuitem\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-breadcrumb-item-disabled]=\"item.disabled\"\n [class.p-disabled]=\"item.disabled\"\n [class.wu-breadcrumb-current]=\"last\"\n >\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: item, isHome: false, last: last }\"></ng-container>\n </li>\n </ng-container>\n </ol>\n</nav>\n\n<ng-template #link let-item let-isHome=\"isHome\" let-last=\"last\">\n <a\n *ngIf=\"routed(item); else plain\"\n class=\"wu-breadcrumb-link p-breadcrumb-item-link p-menuitem-link\"\n [attr.aria-label]=\"isHome && !item.label ? homeLabel : null\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [attr.title]=\"item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-breadcrumb-link-active p-menuitem-link-active\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: true }\"\n (click)=\"itemClick($event, item)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, isHome: isHome }\"></ng-container>\n </a>\n <ng-template #plain>\n <a\n class=\"wu-breadcrumb-link p-breadcrumb-item-link p-menuitem-link\"\n [class.wu-breadcrumb-link-static]=\"!item.url && !item.command\"\n [attr.href]=\"hrefOf(item)\"\n [attr.role]=\"!item.url && item.command ? 'button' : null\"\n [attr.tabindex]=\"!item.url && item.command && !item.disabled ? 0 : null\"\n [attr.aria-label]=\"isHome && !item.label ? homeLabel : null\"\n [attr.aria-current]=\"last ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"item.title || null\"\n [attr.target]=\"item.url ? item.target || null : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item)\"\n (keydown.enter)=\"!item.url && itemClick($any($event), item)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, isHome: isHome }\"></ng-container>\n </a>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-isHome=\"isHome\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-breadcrumb-icon p-breadcrumb-item-icon p-menuitem-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <svg *ngIf=\"isHome && !item.icon\" class=\"wu-breadcrumb-icon wu-breadcrumb-home-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M2.5 7.25 8 2.75l5.5 4.5\"></path>\n <path d=\"M4 6.25v7h3V10h2v3.25h3v-7\"></path>\n </svg>\n <span *ngIf=\"item.label && item.escape !== false\" class=\"wu-breadcrumb-label p-breadcrumb-item-label p-menuitem-text\">{{ item.label }}</span>\n <span *ngIf=\"item.label && item.escape === false\" class=\"wu-breadcrumb-label p-breadcrumb-item-label p-menuitem-text\" [innerHTML]=\"item.label\"></span>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-breadcrumb{display:block;max-width:100%}.wu-breadcrumb{padding:var(--wu-breadcrumb-padding);border:var(--wu-breadcrumb-border-width) solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-breadcrumb-bg)}.wu-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wu-breadcrumb-gap);margin:0;padding:0;list-style:none}.wu-breadcrumb-item{display:flex;min-width:0}.wu-breadcrumb-link{display:inline-flex;align-items:center;gap:.5rem;min-width:0;border-radius:var(--wu-radius-sm);color:var(--wu-breadcrumb-link-color);text-decoration:none;cursor:pointer;transition:color .15s}.wu-breadcrumb-link:hover{color:var(--wu-breadcrumb-link-hover-color)}.wu-breadcrumb-link:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-breadcrumb-link-static{cursor:default}.wu-breadcrumb-current .wu-breadcrumb-link{color:var(--wu-breadcrumb-current-color);font-weight:var(--wu-breadcrumb-current-weight)}.wu-breadcrumb-item-disabled .wu-breadcrumb-link{opacity:var(--wu-disabled-opacity);cursor:default}.wu-breadcrumb-label{min-width:0;overflow-wrap:anywhere}.wu-breadcrumb-icon{flex:none}svg.wu-breadcrumb-icon{width:1rem;height:1rem}.wu-breadcrumb-separator{display:flex;align-items:center;color:var(--wu-text-muted)}.wu-breadcrumb-separator svg{width:.875rem;height:.875rem}@media(pointer:coarse){.wu-breadcrumb-link{position:relative}.wu-breadcrumb-link:after{content:\"\";position:absolute;inset:-.375rem}}}\n"] }]
|
|
63
63
|
}], ctorParameters: () => [], propDecorators: { model: [{
|
|
64
64
|
type: Input
|
|
65
65
|
}], home: [{
|
|
@@ -87,11 +87,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
87
87
|
|
|
88
88
|
/** For NgModule apps. Standalone apps can import `WuBreadcrumb` directly. */
|
|
89
89
|
class WuBreadcrumbModule {
|
|
90
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
91
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
92
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
90
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
91
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuBreadcrumbModule, imports: [WuBreadcrumb], exports: [WuBreadcrumb] }); }
|
|
92
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBreadcrumbModule }); }
|
|
93
93
|
}
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuBreadcrumbModule, decorators: [{
|
|
95
95
|
type: NgModule,
|
|
96
96
|
args: [{
|
|
97
97
|
imports: [WuBreadcrumb],
|