@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
|
@@ -101,10 +101,10 @@ class WuSiteFooter {
|
|
|
101
101
|
const still = win?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
|
|
102
102
|
win?.scrollTo({ top: 0, behavior: still ? 'auto' : 'smooth' });
|
|
103
103
|
}
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
105
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuSiteFooter, isStandalone: true, selector: "wu-site-footer", inputs: { model: "model", social: "social", legal: "legal", brand: "brand", logo: "logo", description: "description", copyright: "copyright", look: "look", backToTop: "backToTop", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { onItemClick: "onItemClick" }, host: { classAttribute: "wu-site-footer-host" }, queries: [{ propertyName: "templates", predicate: WuTemplate }], ngImport: i0, template: "<footer [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-main\">\n <div class=\"wu-site-footer-brand\" *ngIf=\"brandTemplate || brand || logo || description || socials.length\">\n <ng-container *ngIf=\"brandTemplate; else ownBrand\">\n <ng-container *ngTemplateOutlet=\"brandTemplate\"></ng-container>\n </ng-container>\n <ng-template #ownBrand>\n <div class=\"wu-site-footer-name\" *ngIf=\"brand || logo\">\n <img *ngIf=\"logo\" class=\"wu-site-footer-logo\" [src]=\"logo\" alt=\"\" />\n <span *ngIf=\"brand\">{{ brand }}</span>\n </div>\n <p class=\"wu-site-footer-description\" *ngIf=\"description\">{{ description }}</p>\n </ng-template>\n <ul class=\"wu-site-footer-social\" *ngIf=\"socials.length\">\n <li *ngFor=\"let s of socials\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: s, cls: 'wu-site-footer-social-link', icon: true }\"></ng-container>\n </li>\n </ul>\n </div>\n\n <ul class=\"wu-site-footer-links\" *ngIf=\"links.length\">\n <li *ngFor=\"let l of links\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n\n <nav class=\"wu-site-footer-columns\" *ngIf=\"columns.length\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-column\" *ngFor=\"let c of columns; let i = index\" [class.wu-site-footer-column-open]=\"open.has(i)\">\n <button type=\"button\" class=\"wu-site-footer-heading\" [attr.aria-expanded]=\"open.has(i)\" (click)=\"toggle(i)\">\n <span>{{ c.label }}</span>\n <svg class=\"wu-site-footer-chevron\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg>\n </button>\n <ul class=\"wu-site-footer-list\">\n <li *ngFor=\"let l of c.items\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n </div>\n </nav>\n\n <div class=\"wu-site-footer-end\" *ngIf=\"endTemplate\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n\n <div class=\"wu-site-footer-bottom\" *ngIf=\"copyrightText || legals.length || bottomTemplate || showTop\">\n <span class=\"wu-site-footer-copyright\" *ngIf=\"copyrightText\">{{ copyrightText }} {{ words.rights }}</span>\n <ul class=\"wu-site-footer-legal\" *ngIf=\"legals.length\">\n <li *ngFor=\"let l of legals\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-legal-link' }\"></ng-container>\n </li>\n </ul>\n <ng-container *ngIf=\"bottomTemplate\">\n <ng-container *ngTemplateOutlet=\"bottomTemplate\"></ng-container>\n </ng-container>\n <button *ngIf=\"showTop\" type=\"button\" class=\"wu-site-footer-top\" (click)=\"top()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"></path></svg>\n <span>{{ words.backToTop }}</span>\n </button>\n </div>\n</footer>\n\n<ng-template #link let-item let-cls=\"cls\" let-icon=\"icon\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n [ngClass]=\"[cls, item.styleClass || '']\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.target]=\"item.target || null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n (click)=\"pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n <ng-template #plain>\n <a\n [ngClass]=\"[cls, item.styleClass || '']\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener' : null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n [attr.tabindex]=\"!item.url ? 0 : null\"\n [attr.role]=\"!item.url ? 'button' : null\"\n (click)=\"pick(item, $event)\"\n (keydown.enter)=\"!item.url && pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-site-footer{display:block}.wu-site-footer{box-sizing:border-box;container-type:inline-size;padding:var(--wu-site-footer-padding);border-top:1px solid var(--wu-site-footer-border);background:var(--wu-site-footer-bg);color:var(--wu-site-footer-color);font-family:var(--wu-font-family);font-size:.9375rem;line-height:var(--wu-line-height)}.wu-site-footer-main{display:flex;flex-wrap:wrap;gap:var(--wu-site-footer-gap)}.wu-site-footer-brand{display:flex;flex:1 1 15rem;flex-direction:column;gap:.75rem;max-width:22rem}.wu-site-footer-name{display:flex;align-items:center;gap:.625rem;color:var(--wu-site-footer-heading-color);font-size:1.125rem;font-weight:700}.wu-site-footer-logo{width:2rem;height:2rem;object-fit:contain}.wu-site-footer-description{margin:0}.wu-site-footer-social,.wu-site-footer-links,.wu-site-footer-list,.wu-site-footer-legal{margin:0;padding:0;list-style:none}.wu-site-footer-social{display:flex;flex-wrap:wrap;gap:.5rem}.wu-site-footer-social-link{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-site-footer-social-size);height:var(--wu-site-footer-social-size);border:1px solid var(--wu-site-footer-border);border-radius:50%;background:var(--wu-site-footer-social-bg);color:var(--wu-site-footer-heading-color);text-decoration:none;transition:background var(--wu-transition),color var(--wu-transition),transform var(--wu-transition)}.wu-site-footer-social-link:hover{border-color:var(--wu-site-footer-link-hover);background:var(--wu-site-footer-link-hover);color:var(--wu-primary-contrast);transform:translateY(-2px)}.wu-site-footer-columns{display:grid;flex:3 1 26rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:2rem}.wu-site-footer-heading{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 .75rem;padding:0;border:0;background:none;color:var(--wu-site-footer-heading-color);font:inherit;font-weight:600;text-align:start;pointer-events:none}.wu-site-footer-chevron{display:none;width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--wu-transition)}.wu-site-footer-list{display:flex;flex-direction:column;gap:.5rem}.wu-site-footer-link,.wu-site-footer-legal-link{color:var(--wu-site-footer-link-color);text-decoration:none;cursor:pointer;transition:color var(--wu-transition)}.wu-site-footer-link:hover,.wu-site-footer-legal-link:hover{color:var(--wu-site-footer-link-hover)}.wu-site-footer-link .wu-site-footer-icon{margin-right:.375rem}.wu-site-footer-social-link:focus-visible,.wu-site-footer-link:focus-visible,.wu-site-footer-legal-link:focus-visible,.wu-site-footer-heading:focus-visible,.wu-site-footer-top:focus-visible{border-radius:var(--wu-radius-sm);outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-site-footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}.wu-site-footer-end{flex:1 1 14rem}.wu-site-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;margin-top:var(--wu-site-footer-gap);padding-top:1.25rem;border-top:1px solid var(--wu-site-footer-border);font-size:.875rem}.wu-site-footer-copyright{margin-right:auto}.wu-site-footer-legal{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}.wu-site-footer-top{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border:1px solid var(--wu-site-footer-border);border-radius:999px;background:var(--wu-site-footer-social-bg);color:var(--wu-site-footer-heading-color);font:inherit;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition)}.wu-site-footer-top:hover{border-color:var(--wu-site-footer-link-hover);color:var(--wu-site-footer-link-hover)}.wu-site-footer-top svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wu-site-footer-simple .wu-site-footer-main{align-items:center;justify-content:space-between}.wu-site-footer-simple .wu-site-footer-brand{flex:0 1 auto}.wu-site-footer-simple .wu-site-footer-bottom{margin-top:1.5rem}.wu-site-footer-centered .wu-site-footer-main,.wu-site-footer-centered .wu-site-footer-bottom{flex-direction:column;align-items:center;text-align:center}.wu-site-footer-centered .wu-site-footer-brand{flex:none;align-items:center}.wu-site-footer-centered .wu-site-footer-social,.wu-site-footer-centered .wu-site-footer-links,.wu-site-footer-centered .wu-site-footer-legal{justify-content:center}.wu-site-footer-centered .wu-site-footer-columns{flex:none;width:100%;justify-items:center}.wu-site-footer-centered .wu-site-footer-list{align-items:center}.wu-site-footer-centered .wu-site-footer-copyright{margin-right:0}@container (max-width: 40rem){.wu-site-footer-main{gap:1.5rem}.wu-site-footer-brand{max-width:none}.wu-site-footer-columns{display:block;flex-basis:100%}.wu-site-footer-column{border-bottom:1px solid var(--wu-site-footer-border)}.wu-site-footer-heading{margin:0;padding:.875rem 0;cursor:pointer;pointer-events:auto}.wu-site-footer-chevron{display:block}.wu-site-footer-column-open .wu-site-footer-chevron{transform:rotate(180deg)}.wu-site-footer-list{display:none;padding-bottom:1rem}.wu-site-footer-column-open .wu-site-footer-list{display:flex}.wu-site-footer-centered .wu-site-footer-columns{text-align:start}.wu-site-footer-centered .wu-site-footer-list{align-items:flex-start}.wu-site-footer-copyright{flex-basis:100%}}}\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 }); }
|
|
104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSiteFooter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
105
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuSiteFooter, isStandalone: true, selector: "wu-site-footer", inputs: { model: "model", social: "social", legal: "legal", brand: "brand", logo: "logo", description: "description", copyright: "copyright", look: "look", backToTop: "backToTop", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { onItemClick: "onItemClick" }, host: { classAttribute: "wu-site-footer-host" }, queries: [{ propertyName: "templates", predicate: WuTemplate }], ngImport: i0, template: "<footer [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-main\">\n <div class=\"wu-site-footer-brand\" *ngIf=\"brandTemplate || brand || logo || description || socials.length\">\n <ng-container *ngIf=\"brandTemplate; else ownBrand\">\n <ng-container *ngTemplateOutlet=\"brandTemplate\"></ng-container>\n </ng-container>\n <ng-template #ownBrand>\n <div class=\"wu-site-footer-name\" *ngIf=\"brand || logo\">\n <img *ngIf=\"logo\" class=\"wu-site-footer-logo\" [src]=\"logo\" alt=\"\" />\n <span *ngIf=\"brand\">{{ brand }}</span>\n </div>\n <p class=\"wu-site-footer-description\" *ngIf=\"description\">{{ description }}</p>\n </ng-template>\n <ul class=\"wu-site-footer-social\" *ngIf=\"socials.length\">\n <li *ngFor=\"let s of socials\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: s, cls: 'wu-site-footer-social-link', icon: true }\"></ng-container>\n </li>\n </ul>\n </div>\n\n <ul class=\"wu-site-footer-links\" *ngIf=\"links.length\">\n <li *ngFor=\"let l of links\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n\n <nav class=\"wu-site-footer-columns\" *ngIf=\"columns.length\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-column\" *ngFor=\"let c of columns; let i = index\" [class.wu-site-footer-column-open]=\"open.has(i)\">\n <button type=\"button\" class=\"wu-site-footer-heading\" [attr.aria-expanded]=\"open.has(i)\" (click)=\"toggle(i)\">\n <span>{{ c.label }}</span>\n <svg class=\"wu-site-footer-chevron\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg>\n </button>\n <ul class=\"wu-site-footer-list\">\n <li *ngFor=\"let l of c.items\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n </div>\n </nav>\n\n <div class=\"wu-site-footer-end\" *ngIf=\"endTemplate\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n\n <div class=\"wu-site-footer-bottom\" *ngIf=\"copyrightText || legals.length || bottomTemplate || showTop\">\n <span class=\"wu-site-footer-copyright\" *ngIf=\"copyrightText\">{{ copyrightText }} {{ words.rights }}</span>\n <ul class=\"wu-site-footer-legal\" *ngIf=\"legals.length\">\n <li *ngFor=\"let l of legals\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-legal-link' }\"></ng-container>\n </li>\n </ul>\n <ng-container *ngIf=\"bottomTemplate\">\n <ng-container *ngTemplateOutlet=\"bottomTemplate\"></ng-container>\n </ng-container>\n <button *ngIf=\"showTop\" type=\"button\" class=\"wu-site-footer-top\" (click)=\"top()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"></path></svg>\n <span>{{ words.backToTop }}</span>\n </button>\n </div>\n</footer>\n\n<ng-template #link let-item let-cls=\"cls\" let-icon=\"icon\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n [ngClass]=\"[cls, item.styleClass || '']\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.target]=\"item.target || null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n (click)=\"pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n <ng-template #plain>\n <a\n [ngClass]=\"[cls, item.styleClass || '']\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener' : null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n [attr.tabindex]=\"!item.url ? 0 : null\"\n [attr.role]=\"!item.url ? 'button' : null\"\n (click)=\"pick(item, $event)\"\n (keydown.enter)=\"!item.url && pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-site-footer{display:block}.wu-site-footer{box-sizing:border-box;container-type:inline-size;padding:var(--wu-site-footer-padding);border-top:1px solid var(--wu-site-footer-border);background:var(--wu-site-footer-bg);color:var(--wu-site-footer-color);font-family:var(--wu-font-family);font-size:.9375rem;line-height:var(--wu-line-height)}.wu-site-footer-main{display:flex;flex-wrap:wrap;gap:var(--wu-site-footer-gap)}.wu-site-footer-brand{display:flex;flex:1 1 15rem;flex-direction:column;gap:.75rem;max-width:22rem}.wu-site-footer-name{display:flex;align-items:center;gap:.625rem;color:var(--wu-site-footer-heading-color);font-size:1.125rem;font-weight:700}.wu-site-footer-logo{width:2rem;height:2rem;object-fit:contain}.wu-site-footer-description{margin:0}.wu-site-footer-social,.wu-site-footer-links,.wu-site-footer-list,.wu-site-footer-legal{margin:0;padding:0;list-style:none}.wu-site-footer-social{display:flex;flex-wrap:wrap;gap:.5rem}.wu-site-footer-social-link{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-site-footer-social-size);height:var(--wu-site-footer-social-size);border:1px solid var(--wu-site-footer-border);border-radius:50%;background:var(--wu-site-footer-social-bg);color:var(--wu-site-footer-heading-color);text-decoration:none;transition:background var(--wu-transition),color var(--wu-transition),transform var(--wu-transition)}.wu-site-footer-social-link:hover{border-color:var(--wu-site-footer-link-hover);background:var(--wu-site-footer-link-hover);color:var(--wu-primary-contrast);transform:translateY(-2px)}.wu-site-footer-columns{display:grid;flex:3 1 26rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:2rem}.wu-site-footer-heading{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 .75rem;padding:0;border:0;background:none;color:var(--wu-site-footer-heading-color);font:inherit;font-weight:600;text-align:start;pointer-events:none}.wu-site-footer-chevron{display:none;width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--wu-transition)}.wu-site-footer-list{display:flex;flex-direction:column;gap:.5rem}.wu-site-footer-link,.wu-site-footer-legal-link{color:var(--wu-site-footer-link-color);text-decoration:none;cursor:pointer;transition:color var(--wu-transition)}.wu-site-footer-link:hover,.wu-site-footer-legal-link:hover{color:var(--wu-site-footer-link-hover)}.wu-site-footer-link .wu-site-footer-icon{margin-right:.375rem}.wu-site-footer-social-link:focus-visible,.wu-site-footer-link:focus-visible,.wu-site-footer-legal-link:focus-visible,.wu-site-footer-heading:focus-visible,.wu-site-footer-top:focus-visible{border-radius:var(--wu-radius-sm);outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-site-footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}.wu-site-footer-end{flex:1 1 14rem}.wu-site-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;margin-top:var(--wu-site-footer-gap);padding-top:1.25rem;border-top:1px solid var(--wu-site-footer-border);font-size:.875rem}.wu-site-footer-copyright{margin-right:auto}.wu-site-footer-legal{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}.wu-site-footer-top{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border:1px solid var(--wu-site-footer-border);border-radius:999px;background:var(--wu-site-footer-social-bg);color:var(--wu-site-footer-heading-color);font:inherit;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition)}.wu-site-footer-top:hover{border-color:var(--wu-site-footer-link-hover);color:var(--wu-site-footer-link-hover)}.wu-site-footer-top svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wu-site-footer-simple .wu-site-footer-main{align-items:center;justify-content:space-between}.wu-site-footer-simple .wu-site-footer-brand{flex:0 1 auto}.wu-site-footer-simple .wu-site-footer-bottom{margin-top:1.5rem}.wu-site-footer-centered .wu-site-footer-main,.wu-site-footer-centered .wu-site-footer-bottom{flex-direction:column;align-items:center;text-align:center}.wu-site-footer-centered .wu-site-footer-brand{flex:none;align-items:center}.wu-site-footer-centered .wu-site-footer-social,.wu-site-footer-centered .wu-site-footer-links,.wu-site-footer-centered .wu-site-footer-legal{justify-content:center}.wu-site-footer-centered .wu-site-footer-columns{flex:none;width:100%;justify-items:center}.wu-site-footer-centered .wu-site-footer-list{align-items:center}.wu-site-footer-centered .wu-site-footer-copyright{margin-right:0}@container (max-width: 40rem){.wu-site-footer-main{gap:1.5rem}.wu-site-footer-brand{max-width:none}.wu-site-footer-columns{display:block;flex-basis:100%}.wu-site-footer-column{border-bottom:1px solid var(--wu-site-footer-border)}.wu-site-footer-heading{margin:0;padding:.875rem 0;cursor:pointer;pointer-events:auto}.wu-site-footer-chevron{display:block}.wu-site-footer-column-open .wu-site-footer-chevron{transform:rotate(180deg)}.wu-site-footer-list{display:none;padding-bottom:1rem}.wu-site-footer-column-open .wu-site-footer-list{display:flex}.wu-site-footer-centered .wu-site-footer-columns{text-align:start}.wu-site-footer-centered .wu-site-footer-list{align-items:flex-start}.wu-site-footer-copyright{flex-basis:100%}}}\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 }); }
|
|
106
106
|
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSiteFooter, decorators: [{
|
|
108
108
|
type: Component,
|
|
109
109
|
args: [{ selector: 'wu-site-footer', standalone: true, imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-site-footer-host' }, template: "<footer [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-main\">\n <div class=\"wu-site-footer-brand\" *ngIf=\"brandTemplate || brand || logo || description || socials.length\">\n <ng-container *ngIf=\"brandTemplate; else ownBrand\">\n <ng-container *ngTemplateOutlet=\"brandTemplate\"></ng-container>\n </ng-container>\n <ng-template #ownBrand>\n <div class=\"wu-site-footer-name\" *ngIf=\"brand || logo\">\n <img *ngIf=\"logo\" class=\"wu-site-footer-logo\" [src]=\"logo\" alt=\"\" />\n <span *ngIf=\"brand\">{{ brand }}</span>\n </div>\n <p class=\"wu-site-footer-description\" *ngIf=\"description\">{{ description }}</p>\n </ng-template>\n <ul class=\"wu-site-footer-social\" *ngIf=\"socials.length\">\n <li *ngFor=\"let s of socials\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: s, cls: 'wu-site-footer-social-link', icon: true }\"></ng-container>\n </li>\n </ul>\n </div>\n\n <ul class=\"wu-site-footer-links\" *ngIf=\"links.length\">\n <li *ngFor=\"let l of links\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n\n <nav class=\"wu-site-footer-columns\" *ngIf=\"columns.length\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-column\" *ngFor=\"let c of columns; let i = index\" [class.wu-site-footer-column-open]=\"open.has(i)\">\n <button type=\"button\" class=\"wu-site-footer-heading\" [attr.aria-expanded]=\"open.has(i)\" (click)=\"toggle(i)\">\n <span>{{ c.label }}</span>\n <svg class=\"wu-site-footer-chevron\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg>\n </button>\n <ul class=\"wu-site-footer-list\">\n <li *ngFor=\"let l of c.items\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n </div>\n </nav>\n\n <div class=\"wu-site-footer-end\" *ngIf=\"endTemplate\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n\n <div class=\"wu-site-footer-bottom\" *ngIf=\"copyrightText || legals.length || bottomTemplate || showTop\">\n <span class=\"wu-site-footer-copyright\" *ngIf=\"copyrightText\">{{ copyrightText }} {{ words.rights }}</span>\n <ul class=\"wu-site-footer-legal\" *ngIf=\"legals.length\">\n <li *ngFor=\"let l of legals\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-legal-link' }\"></ng-container>\n </li>\n </ul>\n <ng-container *ngIf=\"bottomTemplate\">\n <ng-container *ngTemplateOutlet=\"bottomTemplate\"></ng-container>\n </ng-container>\n <button *ngIf=\"showTop\" type=\"button\" class=\"wu-site-footer-top\" (click)=\"top()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"></path></svg>\n <span>{{ words.backToTop }}</span>\n </button>\n </div>\n</footer>\n\n<ng-template #link let-item let-cls=\"cls\" let-icon=\"icon\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n [ngClass]=\"[cls, item.styleClass || '']\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.target]=\"item.target || null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n (click)=\"pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n <ng-template #plain>\n <a\n [ngClass]=\"[cls, item.styleClass || '']\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener' : null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n [attr.tabindex]=\"!item.url ? 0 : null\"\n [attr.role]=\"!item.url ? 'button' : null\"\n (click)=\"pick(item, $event)\"\n (keydown.enter)=\"!item.url && pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-site-footer{display:block}.wu-site-footer{box-sizing:border-box;container-type:inline-size;padding:var(--wu-site-footer-padding);border-top:1px solid var(--wu-site-footer-border);background:var(--wu-site-footer-bg);color:var(--wu-site-footer-color);font-family:var(--wu-font-family);font-size:.9375rem;line-height:var(--wu-line-height)}.wu-site-footer-main{display:flex;flex-wrap:wrap;gap:var(--wu-site-footer-gap)}.wu-site-footer-brand{display:flex;flex:1 1 15rem;flex-direction:column;gap:.75rem;max-width:22rem}.wu-site-footer-name{display:flex;align-items:center;gap:.625rem;color:var(--wu-site-footer-heading-color);font-size:1.125rem;font-weight:700}.wu-site-footer-logo{width:2rem;height:2rem;object-fit:contain}.wu-site-footer-description{margin:0}.wu-site-footer-social,.wu-site-footer-links,.wu-site-footer-list,.wu-site-footer-legal{margin:0;padding:0;list-style:none}.wu-site-footer-social{display:flex;flex-wrap:wrap;gap:.5rem}.wu-site-footer-social-link{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-site-footer-social-size);height:var(--wu-site-footer-social-size);border:1px solid var(--wu-site-footer-border);border-radius:50%;background:var(--wu-site-footer-social-bg);color:var(--wu-site-footer-heading-color);text-decoration:none;transition:background var(--wu-transition),color var(--wu-transition),transform var(--wu-transition)}.wu-site-footer-social-link:hover{border-color:var(--wu-site-footer-link-hover);background:var(--wu-site-footer-link-hover);color:var(--wu-primary-contrast);transform:translateY(-2px)}.wu-site-footer-columns{display:grid;flex:3 1 26rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:2rem}.wu-site-footer-heading{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 .75rem;padding:0;border:0;background:none;color:var(--wu-site-footer-heading-color);font:inherit;font-weight:600;text-align:start;pointer-events:none}.wu-site-footer-chevron{display:none;width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--wu-transition)}.wu-site-footer-list{display:flex;flex-direction:column;gap:.5rem}.wu-site-footer-link,.wu-site-footer-legal-link{color:var(--wu-site-footer-link-color);text-decoration:none;cursor:pointer;transition:color var(--wu-transition)}.wu-site-footer-link:hover,.wu-site-footer-legal-link:hover{color:var(--wu-site-footer-link-hover)}.wu-site-footer-link .wu-site-footer-icon{margin-right:.375rem}.wu-site-footer-social-link:focus-visible,.wu-site-footer-link:focus-visible,.wu-site-footer-legal-link:focus-visible,.wu-site-footer-heading:focus-visible,.wu-site-footer-top:focus-visible{border-radius:var(--wu-radius-sm);outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-site-footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}.wu-site-footer-end{flex:1 1 14rem}.wu-site-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;margin-top:var(--wu-site-footer-gap);padding-top:1.25rem;border-top:1px solid var(--wu-site-footer-border);font-size:.875rem}.wu-site-footer-copyright{margin-right:auto}.wu-site-footer-legal{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}.wu-site-footer-top{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border:1px solid var(--wu-site-footer-border);border-radius:999px;background:var(--wu-site-footer-social-bg);color:var(--wu-site-footer-heading-color);font:inherit;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition)}.wu-site-footer-top:hover{border-color:var(--wu-site-footer-link-hover);color:var(--wu-site-footer-link-hover)}.wu-site-footer-top svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wu-site-footer-simple .wu-site-footer-main{align-items:center;justify-content:space-between}.wu-site-footer-simple .wu-site-footer-brand{flex:0 1 auto}.wu-site-footer-simple .wu-site-footer-bottom{margin-top:1.5rem}.wu-site-footer-centered .wu-site-footer-main,.wu-site-footer-centered .wu-site-footer-bottom{flex-direction:column;align-items:center;text-align:center}.wu-site-footer-centered .wu-site-footer-brand{flex:none;align-items:center}.wu-site-footer-centered .wu-site-footer-social,.wu-site-footer-centered .wu-site-footer-links,.wu-site-footer-centered .wu-site-footer-legal{justify-content:center}.wu-site-footer-centered .wu-site-footer-columns{flex:none;width:100%;justify-items:center}.wu-site-footer-centered .wu-site-footer-list{align-items:center}.wu-site-footer-centered .wu-site-footer-copyright{margin-right:0}@container (max-width: 40rem){.wu-site-footer-main{gap:1.5rem}.wu-site-footer-brand{max-width:none}.wu-site-footer-columns{display:block;flex-basis:100%}.wu-site-footer-column{border-bottom:1px solid var(--wu-site-footer-border)}.wu-site-footer-heading{margin:0;padding:.875rem 0;cursor:pointer;pointer-events:auto}.wu-site-footer-chevron{display:block}.wu-site-footer-column-open .wu-site-footer-chevron{transform:rotate(180deg)}.wu-site-footer-list{display:none;padding-bottom:1rem}.wu-site-footer-column-open .wu-site-footer-list{display:flex}.wu-site-footer-centered .wu-site-footer-columns{text-align:start}.wu-site-footer-centered .wu-site-footer-list{align-items:flex-start}.wu-site-footer-copyright{flex-basis:100%}}}\n"] }]
|
|
110
110
|
}], ctorParameters: () => [], propDecorators: { model: [{
|
|
@@ -140,11 +140,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
140
140
|
|
|
141
141
|
/** For NgModule apps (with `WuTemplate` for the `brand`, `end` and `bottom` slots). Standalone apps can import `WuSiteFooter` directly. */
|
|
142
142
|
class WuSiteFooterModule {
|
|
143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
144
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
145
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
143
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSiteFooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
144
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuSiteFooterModule, imports: [WuSiteFooter, WuTemplate], exports: [WuSiteFooter, WuTemplate] }); }
|
|
145
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSiteFooterModule }); }
|
|
146
146
|
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSiteFooterModule, decorators: [{
|
|
148
148
|
type: NgModule,
|
|
149
149
|
args: [{
|
|
150
150
|
imports: [WuSiteFooter, WuTemplate],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-sitefooter.mjs","sources":["../../lib/sitefooter/sitefooter.component.ts","../../lib/sitefooter/sitefooter.component.html","../../lib/sitefooter/sitefooter.module.ts","../../lib/sitefooter/wirabyte-ui-sitefooter.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig, WuMenuItem, WuTemplate } from '@wirabyte/ui/config';\nimport { TH_LOCALE } from '@wirabyte/ui/core';\n\n/** `'columns'` (default): the brand beside columns of links. `'simple'`: one row. `'centered'`: everything centred. */\nexport type WuSiteFooterLook = 'columns' | 'simple' | 'centered';\n\n/** `(onItemClick)`: a link was clicked. */\nexport interface WuSiteFooterItemClickEvent {\n originalEvent: Event;\n item: WuMenuItem;\n}\n\n/**\n * The foot of a site or app: `<wu-site-footer brand=\"WiraUI\" [model]=\"columns\" [social]=\"social\" [legal]=\"legal\">`.\n * `model` items with `items` are columns of links (a heading each), items without are plain links; `social` are icon\n * links; `legal` sit in the bottom row after the copyright (default `© <year> <brand>`). Links are menu items (`label`,\n * `url`, `routerLink`, `command`, `target`). On narrow widths the columns fold into headings that open (the footer\n * measures its own width, so it works in any box). `backToTop` adds a button that scrolls the page back up. Slots:\n * `brand` (your own brand block), `end` (a newsletter form or app badges) and `bottom` (more in the bottom row).\n */\n@Component({\n selector: 'wu-site-footer',\n standalone: true,\n imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink],\n templateUrl: './sitefooter.component.html',\n styleUrls: ['./sitefooter.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-site-footer-host' },\n})\nexport class WuSiteFooter implements OnDestroy {\n /** Columns (items with `items`) or plain links. */\n @Input() model: WuMenuItem[] | null | undefined;\n /** Icon links: `{ icon: 'wi wi-github', url: '…', label: 'GitHub' }` (the label is read out). */\n @Input() social: WuMenuItem[] | null | undefined;\n /** Links in the bottom row: privacy, terms. */\n @Input() legal: WuMenuItem[] | null | undefined;\n @Input() brand?: string | null;\n /** A logo image beside the brand name. */\n @Input() logo?: string | null;\n @Input() description?: string | null;\n /** Default `© <this year> <brand>`; `''` for none. */\n @Input() copyright?: string | null;\n /** `'columns'` (default), `'simple'` or `'centered'`. */\n @Input() set look(v: WuSiteFooterLook | string | null | undefined) {\n this._look = v === 'simple' || v === 'centered' ? v : 'columns';\n }\n get look(): WuSiteFooterLook {\n return this._look;\n }\n /** A button that scrolls the page back to the top. */\n @Input() backToTop: 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 onItemClick = new EventEmitter<WuSiteFooterItemClickEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n\n /** Columns opened on narrow widths, by index. */\n readonly open = new Set<number>();\n\n private _look: WuSiteFooterLook = 'columns';\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get words(): (typeof TH_LOCALE)['siteFooter'] {\n return this.config.translation.siteFooter ?? TH_LOCALE.siteFooter;\n }\n get columns(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && Array.isArray(i.items));\n }\n get links(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && !Array.isArray(i.items));\n }\n get socials(): WuMenuItem[] {\n return (this.social || []).filter((i) => i && i.visible !== false);\n }\n get legals(): WuMenuItem[] {\n return (this.legal || []).filter((i) => i && i.visible !== false);\n }\n get copyrightText(): string {\n if (this.copyright !== undefined && this.copyright !== null) return this.copyright;\n return this.brand ? `© ${new Date().getFullYear()} ${this.brand}` : '';\n }\n get showTop(): boolean {\n return this.backToTop === '' || this.backToTop === true || this.backToTop === 'true';\n }\n get brandTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'brand');\n }\n get endTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'end');\n }\n get bottomTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'bottom');\n }\n get classes(): string[] {\n return ['wu-site-footer', `wu-site-footer-${this._look}`, this.styleClass || ''];\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 toggle(index: number): void {\n if (this.open.has(index)) this.open.delete(index);\n else this.open.add(index);\n }\n\n pick(item: WuMenuItem, event: Event): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !this.hasRoute(item)) event.preventDefault();\n item.command?.({ originalEvent: event, item });\n this.onItemClick.emit({ originalEvent: event, item });\n }\n\n top(): void {\n const win = this.doc.defaultView;\n const still = win?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n win?.scrollTo({ top: 0, behavior: still ? 'auto' : 'smooth' });\n }\n}\n","<footer [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-main\">\n <div class=\"wu-site-footer-brand\" *ngIf=\"brandTemplate || brand || logo || description || socials.length\">\n <ng-container *ngIf=\"brandTemplate; else ownBrand\">\n <ng-container *ngTemplateOutlet=\"brandTemplate\"></ng-container>\n </ng-container>\n <ng-template #ownBrand>\n <div class=\"wu-site-footer-name\" *ngIf=\"brand || logo\">\n <img *ngIf=\"logo\" class=\"wu-site-footer-logo\" [src]=\"logo\" alt=\"\" />\n <span *ngIf=\"brand\">{{ brand }}</span>\n </div>\n <p class=\"wu-site-footer-description\" *ngIf=\"description\">{{ description }}</p>\n </ng-template>\n <ul class=\"wu-site-footer-social\" *ngIf=\"socials.length\">\n <li *ngFor=\"let s of socials\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: s, cls: 'wu-site-footer-social-link', icon: true }\"></ng-container>\n </li>\n </ul>\n </div>\n\n <ul class=\"wu-site-footer-links\" *ngIf=\"links.length\">\n <li *ngFor=\"let l of links\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n\n <nav class=\"wu-site-footer-columns\" *ngIf=\"columns.length\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-column\" *ngFor=\"let c of columns; let i = index\" [class.wu-site-footer-column-open]=\"open.has(i)\">\n <button type=\"button\" class=\"wu-site-footer-heading\" [attr.aria-expanded]=\"open.has(i)\" (click)=\"toggle(i)\">\n <span>{{ c.label }}</span>\n <svg class=\"wu-site-footer-chevron\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg>\n </button>\n <ul class=\"wu-site-footer-list\">\n <li *ngFor=\"let l of c.items\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n </div>\n </nav>\n\n <div class=\"wu-site-footer-end\" *ngIf=\"endTemplate\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n\n <div class=\"wu-site-footer-bottom\" *ngIf=\"copyrightText || legals.length || bottomTemplate || showTop\">\n <span class=\"wu-site-footer-copyright\" *ngIf=\"copyrightText\">{{ copyrightText }} {{ words.rights }}</span>\n <ul class=\"wu-site-footer-legal\" *ngIf=\"legals.length\">\n <li *ngFor=\"let l of legals\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-legal-link' }\"></ng-container>\n </li>\n </ul>\n <ng-container *ngIf=\"bottomTemplate\">\n <ng-container *ngTemplateOutlet=\"bottomTemplate\"></ng-container>\n </ng-container>\n <button *ngIf=\"showTop\" type=\"button\" class=\"wu-site-footer-top\" (click)=\"top()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"></path></svg>\n <span>{{ words.backToTop }}</span>\n </button>\n </div>\n</footer>\n\n<ng-template #link let-item let-cls=\"cls\" let-icon=\"icon\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n [ngClass]=\"[cls, item.styleClass || '']\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.target]=\"item.target || null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n (click)=\"pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n <ng-template #plain>\n <a\n [ngClass]=\"[cls, item.styleClass || '']\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener' : null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n [attr.tabindex]=\"!item.url ? 0 : null\"\n [attr.role]=\"!item.url ? 'button' : null\"\n (click)=\"pick(item, $event)\"\n (keydown.enter)=\"!item.url && pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n </ng-template>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuSiteFooter } from './sitefooter.component';\n\n/** For NgModule apps (with `WuTemplate` for the `brand`, `end` and `bottom` slots). Standalone apps can import `WuSiteFooter` directly. */\n@NgModule({\n imports: [WuSiteFooter, WuTemplate],\n exports: [WuSiteFooter, WuTemplate],\n})\nexport class WuSiteFooterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate"],"mappings":";;;;;;;AA0BA;;;;;;;AAOG;MAWU,YAAY,CAAA;;IAcvB,IAAa,IAAI,CAAC,CAA+C,EAAA;AAC/D,QAAA,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,UAAU,GAAG,CAAC,GAAG,SAAS;IACjE;AACA,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK;IACnB;AAoBA,IAAA,WAAA,GAAA;;QAlBS,IAAA,CAAA,SAAS,GAAwC,KAAK;AAM5C,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAA8B;;AAKtE,QAAA,IAAA,C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uBAAC,UAAU;;;AErE7B;MAKa,kBAAkB,CAAA;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,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,kBAAkB,YAHnB,YAAY,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CACxB,YAAY,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;gHAEvB,kBAAkB,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACpC,iBAAA;;;ACRD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-sitefooter.mjs","sources":["../../lib/sitefooter/sitefooter.component.ts","../../lib/sitefooter/sitefooter.component.html","../../lib/sitefooter/sitefooter.module.ts","../../lib/sitefooter/wirabyte-ui-sitefooter.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig, WuMenuItem, WuTemplate } from '@wirabyte/ui/config';\nimport { TH_LOCALE } from '@wirabyte/ui/core';\n\n/** `'columns'` (default): the brand beside columns of links. `'simple'`: one row. `'centered'`: everything centred. */\nexport type WuSiteFooterLook = 'columns' | 'simple' | 'centered';\n\n/** `(onItemClick)`: a link was clicked. */\nexport interface WuSiteFooterItemClickEvent {\n originalEvent: Event;\n item: WuMenuItem;\n}\n\n/**\n * The foot of a site or app: `<wu-site-footer brand=\"WiraUI\" [model]=\"columns\" [social]=\"social\" [legal]=\"legal\">`.\n * `model` items with `items` are columns of links (a heading each), items without are plain links; `social` are icon\n * links; `legal` sit in the bottom row after the copyright (default `© <year> <brand>`). Links are menu items (`label`,\n * `url`, `routerLink`, `command`, `target`). On narrow widths the columns fold into headings that open (the footer\n * measures its own width, so it works in any box). `backToTop` adds a button that scrolls the page back up. Slots:\n * `brand` (your own brand block), `end` (a newsletter form or app badges) and `bottom` (more in the bottom row).\n */\n@Component({\n selector: 'wu-site-footer',\n standalone: true,\n imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink],\n templateUrl: './sitefooter.component.html',\n styleUrls: ['./sitefooter.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-site-footer-host' },\n})\nexport class WuSiteFooter implements OnDestroy {\n /** Columns (items with `items`) or plain links. */\n @Input() model: WuMenuItem[] | null | undefined;\n /** Icon links: `{ icon: 'wi wi-github', url: '…', label: 'GitHub' }` (the label is read out). */\n @Input() social: WuMenuItem[] | null | undefined;\n /** Links in the bottom row: privacy, terms. */\n @Input() legal: WuMenuItem[] | null | undefined;\n @Input() brand?: string | null;\n /** A logo image beside the brand name. */\n @Input() logo?: string | null;\n @Input() description?: string | null;\n /** Default `© <this year> <brand>`; `''` for none. */\n @Input() copyright?: string | null;\n /** `'columns'` (default), `'simple'` or `'centered'`. */\n @Input() set look(v: WuSiteFooterLook | string | null | undefined) {\n this._look = v === 'simple' || v === 'centered' ? v : 'columns';\n }\n get look(): WuSiteFooterLook {\n return this._look;\n }\n /** A button that scrolls the page back to the top. */\n @Input() backToTop: 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 onItemClick = new EventEmitter<WuSiteFooterItemClickEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n\n /** Columns opened on narrow widths, by index. */\n readonly open = new Set<number>();\n\n private _look: WuSiteFooterLook = 'columns';\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get words(): (typeof TH_LOCALE)['siteFooter'] {\n return this.config.translation.siteFooter ?? TH_LOCALE.siteFooter;\n }\n get columns(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && Array.isArray(i.items));\n }\n get links(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && !Array.isArray(i.items));\n }\n get socials(): WuMenuItem[] {\n return (this.social || []).filter((i) => i && i.visible !== false);\n }\n get legals(): WuMenuItem[] {\n return (this.legal || []).filter((i) => i && i.visible !== false);\n }\n get copyrightText(): string {\n if (this.copyright !== undefined && this.copyright !== null) return this.copyright;\n return this.brand ? `© ${new Date().getFullYear()} ${this.brand}` : '';\n }\n get showTop(): boolean {\n return this.backToTop === '' || this.backToTop === true || this.backToTop === 'true';\n }\n get brandTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'brand');\n }\n get endTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'end');\n }\n get bottomTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'bottom');\n }\n get classes(): string[] {\n return ['wu-site-footer', `wu-site-footer-${this._look}`, this.styleClass || ''];\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 toggle(index: number): void {\n if (this.open.has(index)) this.open.delete(index);\n else this.open.add(index);\n }\n\n pick(item: WuMenuItem, event: Event): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !this.hasRoute(item)) event.preventDefault();\n item.command?.({ originalEvent: event, item });\n this.onItemClick.emit({ originalEvent: event, item });\n }\n\n top(): void {\n const win = this.doc.defaultView;\n const still = win?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n win?.scrollTo({ top: 0, behavior: still ? 'auto' : 'smooth' });\n }\n}\n","<footer [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-main\">\n <div class=\"wu-site-footer-brand\" *ngIf=\"brandTemplate || brand || logo || description || socials.length\">\n <ng-container *ngIf=\"brandTemplate; else ownBrand\">\n <ng-container *ngTemplateOutlet=\"brandTemplate\"></ng-container>\n </ng-container>\n <ng-template #ownBrand>\n <div class=\"wu-site-footer-name\" *ngIf=\"brand || logo\">\n <img *ngIf=\"logo\" class=\"wu-site-footer-logo\" [src]=\"logo\" alt=\"\" />\n <span *ngIf=\"brand\">{{ brand }}</span>\n </div>\n <p class=\"wu-site-footer-description\" *ngIf=\"description\">{{ description }}</p>\n </ng-template>\n <ul class=\"wu-site-footer-social\" *ngIf=\"socials.length\">\n <li *ngFor=\"let s of socials\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: s, cls: 'wu-site-footer-social-link', icon: true }\"></ng-container>\n </li>\n </ul>\n </div>\n\n <ul class=\"wu-site-footer-links\" *ngIf=\"links.length\">\n <li *ngFor=\"let l of links\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n\n <nav class=\"wu-site-footer-columns\" *ngIf=\"columns.length\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-column\" *ngFor=\"let c of columns; let i = index\" [class.wu-site-footer-column-open]=\"open.has(i)\">\n <button type=\"button\" class=\"wu-site-footer-heading\" [attr.aria-expanded]=\"open.has(i)\" (click)=\"toggle(i)\">\n <span>{{ c.label }}</span>\n <svg class=\"wu-site-footer-chevron\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg>\n </button>\n <ul class=\"wu-site-footer-list\">\n <li *ngFor=\"let l of c.items\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n </div>\n </nav>\n\n <div class=\"wu-site-footer-end\" *ngIf=\"endTemplate\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n\n <div class=\"wu-site-footer-bottom\" *ngIf=\"copyrightText || legals.length || bottomTemplate || showTop\">\n <span class=\"wu-site-footer-copyright\" *ngIf=\"copyrightText\">{{ copyrightText }} {{ words.rights }}</span>\n <ul class=\"wu-site-footer-legal\" *ngIf=\"legals.length\">\n <li *ngFor=\"let l of legals\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-legal-link' }\"></ng-container>\n </li>\n </ul>\n <ng-container *ngIf=\"bottomTemplate\">\n <ng-container *ngTemplateOutlet=\"bottomTemplate\"></ng-container>\n </ng-container>\n <button *ngIf=\"showTop\" type=\"button\" class=\"wu-site-footer-top\" (click)=\"top()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"></path></svg>\n <span>{{ words.backToTop }}</span>\n </button>\n </div>\n</footer>\n\n<ng-template #link let-item let-cls=\"cls\" let-icon=\"icon\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n [ngClass]=\"[cls, item.styleClass || '']\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.target]=\"item.target || null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n (click)=\"pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n <ng-template #plain>\n <a\n [ngClass]=\"[cls, item.styleClass || '']\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener' : null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n [attr.tabindex]=\"!item.url ? 0 : null\"\n [attr.role]=\"!item.url ? 'button' : null\"\n (click)=\"pick(item, $event)\"\n (keydown.enter)=\"!item.url && pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n </ng-template>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuSiteFooter } from './sitefooter.component';\n\n/** For NgModule apps (with `WuTemplate` for the `brand`, `end` and `bottom` slots). Standalone apps can import `WuSiteFooter` directly. */\n@NgModule({\n imports: [WuSiteFooter, WuTemplate],\n exports: [WuSiteFooter, WuTemplate],\n})\nexport class WuSiteFooterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵrefreshOnTranslation","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate"],"mappings":";;;;;;;AA0BA;;;;;;;AAOG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;sBAEA,eAAe;uBAAC,UAAU;;;AErE7B;MAKa,kBAAkB,CAAA;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,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,kBAAkB,YAHnB,YAAY,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CACxB,YAAY,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;gHAEvB,kBAAkB,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACpC,iBAAA;;;ACRD;;AAEG;;"}
|
|
@@ -5,21 +5,21 @@ import { ɵassertSupportedAngular as _assertSupportedAngular, ɵWU_SKIP_VERSION_
|
|
|
5
5
|
/** Placeholder while content loads: `<wu-skeleton width="10rem" height="1rem">`, `<wu-skeleton shape="circle" size="3rem">`. */
|
|
6
6
|
class WuSkeleton {
|
|
7
7
|
constructor() {
|
|
8
|
-
this.shape = input('rectangle');
|
|
8
|
+
this.shape = input('rectangle', ...(ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []));
|
|
9
9
|
/** Width and height at once, e.g. `3rem` for an avatar placeholder. */
|
|
10
|
-
this.size = input();
|
|
11
|
-
this.width = input('100%');
|
|
12
|
-
this.height = input('1rem');
|
|
13
|
-
this.borderRadius = input();
|
|
14
|
-
this.animation = input('wave');
|
|
10
|
+
this.size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
11
|
+
this.width = input('100%', ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
12
|
+
this.height = input('1rem', ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
13
|
+
this.borderRadius = input(...(ngDevMode ? [undefined, { debugName: "borderRadius" }] : /* istanbul ignore next */ []));
|
|
14
|
+
this.animation = input('wave', ...(ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []));
|
|
15
15
|
/** Classes for the root element, as before (`styleClass="w-full"`). */
|
|
16
|
-
this.styleClass = input();
|
|
16
|
+
this.styleClass = input(...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
17
17
|
/** Inline styles for the root element, as an object: `[style]="{ width: '20rem' }"`. */
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
-
this.style = input();
|
|
19
|
+
this.style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
|
|
20
20
|
/** The `style` object for the root (a plain style attribute already styles the host). */
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
|
-
this.rootStyle = computed(() => { const s = this.style(); return s && typeof s === 'object' ? s : null; });
|
|
22
|
+
this.rootStyle = computed(() => { const s = this.style(); return s && typeof s === 'object' ? s : null; }, ...(ngDevMode ? [{ debugName: "rootStyle" }] : /* istanbul ignore next */ []));
|
|
23
23
|
this.classes = computed(() => {
|
|
24
24
|
const c = ['wu-skeleton', 'p-skeleton', 'p-component'];
|
|
25
25
|
if (this.shape() === 'circle')
|
|
@@ -30,24 +30,24 @@ class WuSkeleton {
|
|
|
30
30
|
if (extra)
|
|
31
31
|
c.push(extra);
|
|
32
32
|
return c.join(' ');
|
|
33
|
-
});
|
|
33
|
+
}, ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
34
34
|
_assertSupportedAngular(inject(_WU_SKIP_VERSION_CHECK, { optional: true }));
|
|
35
35
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.25", type: WuSkeleton, isStandalone: true, selector: "wu-skeleton", inputs: { shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n [class]=\"classes()\" [style]=\"rootStyle()\"\n [style.width]=\"size() || width()\"\n [style.height]=\"size() || height()\"\n [style.border-radius]=\"borderRadius() || null\"\n aria-hidden=\"true\"\n></div>\n", styles: ["@layer wiraui.components{wu-skeleton{display:block;max-width:100%}.wu-skeleton{position:relative;overflow:hidden;width:100%;height:1rem;max-width:100%;border-radius:var(--wu-radius-md);background:var(--wu-skeleton-bg)}.wu-skeleton-circle{border-radius:50%}.wu-skeleton:after{content:\"\";position:absolute;inset:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,var(--wu-skeleton-wave),transparent);animation:wu-skeleton-wave 1.2s infinite}.wu-skeleton-none:after{content:none}@keyframes wu-skeleton-wave{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){.wu-skeleton:after{animation:none}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSkeleton, decorators: [{
|
|
40
40
|
type: Component,
|
|
41
|
-
args: [{ selector: 'wu-skeleton', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [class]=\"classes()\" [style]=\"rootStyle()\"\n [style.width]=\"size() || width()\"\n [style.height]=\"size() || height()\"\n [style.border-radius]=\"borderRadius() || null\"\n aria-hidden=\"true\"\n></div>\n", styles: ["@layer wiraui.components{wu-skeleton{display:block;max-width:100%}.wu-skeleton{position:relative;overflow:hidden;width:100%;height:1rem;max-width:100%;border-radius:var(--wu-radius-md);background:var(--wu-skeleton-bg)}.wu-skeleton-circle{border-radius:50%}.wu-skeleton:after{content:\"\";position:absolute;inset:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,var(--wu-skeleton-wave),transparent);animation:wu-skeleton-wave 1.2s infinite}.wu-skeleton-none:after{content:none}@keyframes wu-skeleton-wave{to{transform:translate(100%)}}@media
|
|
42
|
-
}], ctorParameters: () => [] });
|
|
41
|
+
args: [{ selector: 'wu-skeleton', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [class]=\"classes()\" [style]=\"rootStyle()\"\n [style.width]=\"size() || width()\"\n [style.height]=\"size() || height()\"\n [style.border-radius]=\"borderRadius() || null\"\n aria-hidden=\"true\"\n></div>\n", styles: ["@layer wiraui.components{wu-skeleton{display:block;max-width:100%}.wu-skeleton{position:relative;overflow:hidden;width:100%;height:1rem;max-width:100%;border-radius:var(--wu-radius-md);background:var(--wu-skeleton-bg)}.wu-skeleton-circle{border-radius:50%}.wu-skeleton:after{content:\"\";position:absolute;inset:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,var(--wu-skeleton-wave),transparent);animation:wu-skeleton-wave 1.2s infinite}.wu-skeleton-none:after{content:none}@keyframes wu-skeleton-wave{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){.wu-skeleton:after{animation:none}}}\n"] }]
|
|
42
|
+
}], ctorParameters: () => [], propDecorators: { shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], borderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadius", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }] } });
|
|
43
43
|
|
|
44
44
|
/** For NgModule apps. Standalone apps can import `WuSkeleton` directly. */
|
|
45
45
|
class WuSkeletonModule {
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
48
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
47
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuSkeletonModule, imports: [WuSkeleton], exports: [WuSkeleton] }); }
|
|
48
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSkeletonModule }); }
|
|
49
49
|
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSkeletonModule, decorators: [{
|
|
51
51
|
type: NgModule,
|
|
52
52
|
args: [{
|
|
53
53
|
imports: [WuSkeleton],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-skeleton.mjs","sources":["../../lib/skeleton/skeleton.component.ts","../../lib/skeleton/skeleton.component.html","../../lib/skeleton/skeleton.module.ts","../../lib/skeleton/wirabyte-ui-skeleton.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';\nimport { WuSkeletonAnimation, WuSkeletonShape } from './skeleton.types';\n\n/** Placeholder while content loads: `<wu-skeleton width=\"10rem\" height=\"1rem\">`, `<wu-skeleton shape=\"circle\" size=\"3rem\">`. */\n@Component({\n selector: 'wu-skeleton',\n standalone: true,\n templateUrl: './skeleton.component.html',\n styleUrl: './skeleton.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuSkeleton {\n readonly shape = input<WuSkeletonShape>('rectangle');\n /** Width and height at once, e.g. `3rem` for an avatar placeholder. */\n readonly size = input<string>();\n readonly width = input<string>('100%');\n readonly height = input<string>('1rem');\n readonly borderRadius = input<string>();\n readonly animation = input<WuSkeletonAnimation>('wave');\n\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(() => { const s = this.style(); return s && typeof s === 'object' ? (s as Record<string, any>) : null; });\n readonly classes = computed(() => {\n const c = ['wu-skeleton', 'p-skeleton', 'p-component'];\n if (this.shape() === 'circle') c.push('wu-skeleton-circle', 'p-skeleton-circle');\n if (this.animation() === 'none') c.push('wu-skeleton-none', 'p-skeleton-none');\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n}\n","<div\n [class]=\"classes()\" [style]=\"rootStyle()\"\n [style.width]=\"size() || width()\"\n [style.height]=\"size() || height()\"\n [style.border-radius]=\"borderRadius() || null\"\n aria-hidden=\"true\"\n></div>\n","import { NgModule } from '@angular/core';\nimport { WuSkeleton } from './skeleton.component';\n\n/** For NgModule apps. Standalone apps can import `WuSkeleton` directly. */\n@NgModule({\n imports: [WuSkeleton],\n exports: [WuSkeleton],\n})\nexport class WuSkeletonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK"],"mappings":";;;;AAIA;MASa,UAAU,CAAA;AA0BrB,IAAA,WAAA,GAAA;AAzBS,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,WAAW,
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-skeleton.mjs","sources":["../../lib/skeleton/skeleton.component.ts","../../lib/skeleton/skeleton.component.html","../../lib/skeleton/skeleton.module.ts","../../lib/skeleton/wirabyte-ui-skeleton.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';\nimport { WuSkeletonAnimation, WuSkeletonShape } from './skeleton.types';\n\n/** Placeholder while content loads: `<wu-skeleton width=\"10rem\" height=\"1rem\">`, `<wu-skeleton shape=\"circle\" size=\"3rem\">`. */\n@Component({\n selector: 'wu-skeleton',\n standalone: true,\n templateUrl: './skeleton.component.html',\n styleUrl: './skeleton.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuSkeleton {\n readonly shape = input<WuSkeletonShape>('rectangle');\n /** Width and height at once, e.g. `3rem` for an avatar placeholder. */\n readonly size = input<string>();\n readonly width = input<string>('100%');\n readonly height = input<string>('1rem');\n readonly borderRadius = input<string>();\n readonly animation = input<WuSkeletonAnimation>('wave');\n\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(() => { const s = this.style(); return s && typeof s === 'object' ? (s as Record<string, any>) : null; });\n readonly classes = computed(() => {\n const c = ['wu-skeleton', 'p-skeleton', 'p-component'];\n if (this.shape() === 'circle') c.push('wu-skeleton-circle', 'p-skeleton-circle');\n if (this.animation() === 'none') c.push('wu-skeleton-none', 'p-skeleton-none');\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n}\n","<div\n [class]=\"classes()\" [style]=\"rootStyle()\"\n [style.width]=\"size() || width()\"\n [style.height]=\"size() || height()\"\n [style.border-radius]=\"borderRadius() || null\"\n aria-hidden=\"true\"\n></div>\n","import { NgModule } from '@angular/core';\nimport { WuSkeleton } from './skeleton.component';\n\n/** For NgModule apps. Standalone apps can import `WuSkeleton` directly. */\n@NgModule({\n imports: [WuSkeleton],\n exports: [WuSkeleton],\n})\nexport class WuSkeletonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK"],"mappings":";;;;AAIA;MASa,UAAU,CAAA;AA0BrB,IAAA,WAAA,GAAA;AAzBS,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,WAAW,4EAAC;;QAE3C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;AACtB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,MAAM,4EAAC;AAC7B,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,MAAM,6EAAC;QAC9B,IAAA,CAAA,YAAY,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;AAC9B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAsB,MAAM,gFAAC;;QAG9C,IAAA,CAAA,UAAU,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,YAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAA6B;;;QAG/C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAmD;;;AAGhE,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAK,EAAG,MAAM,CAAC,GAAG,IAAI,CAAC,KA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UAAA,EAAA,CAAA;kBARtB,SAAS;+BACE,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,aAAA,EAGD,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8NAAA,EAAA,MAAA,EAAA,CAAA,6nBAAA,CAAA,EAAA;;;AERjD;MAKa,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAhB,gBAAgB,EAAA,OAAA,EAAA,CAHjB,UAAU,CAAA,EAAA,OAAA,EAAA,CACV,UAAU,CAAA,EAAA,CAAA,CAAA;gHAET,gBAAgB,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,UAAU,CAAC;oBACrB,OAAO,EAAE,CAAC,UAAU,CAAC;AACtB,iBAAA;;;ACPD;;AAEG;;"}
|
|
@@ -208,12 +208,12 @@ class WuSlider {
|
|
|
208
208
|
event(e) {
|
|
209
209
|
return this._range ? { originalEvent: e, values: [this.values[0], this.values[1]] } : { originalEvent: e, value: this.values[0] };
|
|
210
210
|
}
|
|
211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
212
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSlider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
212
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuSlider, isStandalone: true, selector: "wu-slider", inputs: { min: "min", max: "max", step: "step", orientation: "orientation", range: "range", disabled: "disabled", styleClass: "styleClass", style: "style", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", tabindex: "tabindex", animate: "animate", autofocus: "autofocus" }, outputs: { onChange: "onChange", onSlideEnd: "onSlideEnd" }, host: { properties: { "class.wu-slider-host-vertical": "orientation === 'vertical'" }, classAttribute: "wu-slider-host" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => WuSlider), multi: true }], ngImport: i0, template: "<div\n class=\"wu-slider p-slider p-component\"\n [class.wu-slider-horizontal]=\"!vertical\"\n [class.p-slider-horizontal]=\"!vertical\"\n [class.wu-slider-vertical]=\"vertical\"\n [class.p-slider-vertical]=\"vertical\"\n [class.wu-slider-disabled]=\"disabled\"\n [class.p-disabled]=\"disabled\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n (pointerdown)=\"trackDown($event)\"\n>\n <span\n class=\"wu-slider-range p-slider-range\"\n [style.left.%]=\"vertical ? null : rangeStart\"\n [style.width.%]=\"vertical ? null : rangeSize\"\n [style.bottom.%]=\"vertical ? rangeStart : null\"\n [style.height.%]=\"vertical ? rangeSize : null\"\n ></span>\n <span\n *ngFor=\"let i of handles\"\n class=\"wu-slider-handle p-slider-handle\"\n role=\"slider\"\n [class.wu-slider-handle-start]=\"range && i === 0\"\n [class.wu-slider-handle-end]=\"range && i === 1\"\n [style.left.%]=\"vertical ? null : percent(values[i])\"\n [style.bottom.%]=\"vertical ? percent(values[i]) : null\"\n [attr.tabindex]=\"disabled ? null : tabindex\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"values[i]\"\n [attr.aria-orientation]=\"orientation\"\n [attr.aria-disabled]=\"disabled || null\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n (pointerdown)=\"handleDown($event, i)\"\n (keydown)=\"keydown($event, i)\"\n ></span>\n</div>\n", styles: ["@layer wiraui.components{wu-slider{display:block;max-width:100%;padding:calc(var(--wu-slider-handle-size) / 2) 0;touch-action:none}wu-slider.wu-slider-host-vertical{display:inline-block;height:12rem;padding:0 calc(var(--wu-slider-handle-size) / 2)}.wu-slider{position:relative;border-radius:var(--wu-radius-full);background:var(--wu-slider-track-bg);cursor:pointer}.wu-slider-horizontal{height:var(--wu-slider-track-size)}.wu-slider-vertical{width:var(--wu-slider-track-size);height:100%}.wu-slider:before{content:\"\";position:absolute;inset:calc(var(--wu-slider-handle-size) / -2) 0}.wu-slider-vertical:before{inset:0 calc(var(--wu-slider-handle-size) / -2)}.wu-slider-range{position:absolute;border-radius:inherit;background:var(--wu-primary-color)}.wu-slider-horizontal .wu-slider-range{top:0;height:100%}.wu-slider-vertical .wu-slider-range{left:0;width:100%}.wu-slider-handle{position:absolute;box-sizing:border-box;width:var(--wu-slider-handle-size);height:var(--wu-slider-handle-size);border:var(--wu-slider-handle-border-width) solid var(--wu-primary-color);border-radius:50%;background:var(--wu-slider-handle-bg);box-shadow:var(--wu-shadow-sm);cursor:grab;transition:box-shadow .15s,transform .15s}.wu-slider-horizontal .wu-slider-handle{top:50%;transform:translate(-50%,-50%)}.wu-slider-vertical .wu-slider-handle{left:50%;transform:translate(-50%,50%)}.wu-slider-handle:focus-visible{outline:none;box-shadow:0 0 0 .25rem color-mix(in srgb,var(--wu-primary-color) 25%,transparent)}.wu-slider-handle:active{cursor:grabbing}.wu-slider-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-slider-disabled .wu-slider-handle{cursor:default}@media(pointer:coarse){.wu-slider-handle{width:calc(var(--wu-slider-handle-size) * 1.35);height:calc(var(--wu-slider-handle-size) * 1.35)}}@media(prefers-reduced-motion:reduce){.wu-slider-handle{transition:none}}@media(pointer:coarse){.wu-slider-handle:after{content:\"\";position:absolute;inset:-.5rem;border-radius:50%}}}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
213
213
|
}
|
|
214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSlider, decorators: [{
|
|
215
215
|
type: Component,
|
|
216
|
-
args: [{ selector: 'wu-slider', standalone: true, imports: [NgFor, NgIf], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => WuSlider), multi: true }], host: { class: 'wu-slider-host', '[class.wu-slider-host-vertical]': "orientation === 'vertical'" }, template: "<div\n class=\"wu-slider p-slider p-component\"\n [class.wu-slider-horizontal]=\"!vertical\"\n [class.p-slider-horizontal]=\"!vertical\"\n [class.wu-slider-vertical]=\"vertical\"\n [class.p-slider-vertical]=\"vertical\"\n [class.wu-slider-disabled]=\"disabled\"\n [class.p-disabled]=\"disabled\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n (pointerdown)=\"trackDown($event)\"\n>\n <span\n class=\"wu-slider-range p-slider-range\"\n [style.left.%]=\"vertical ? null : rangeStart\"\n [style.width.%]=\"vertical ? null : rangeSize\"\n [style.bottom.%]=\"vertical ? rangeStart : null\"\n [style.height.%]=\"vertical ? rangeSize : null\"\n ></span>\n <span\n *ngFor=\"let i of handles\"\n class=\"wu-slider-handle p-slider-handle\"\n role=\"slider\"\n [class.wu-slider-handle-start]=\"range && i === 0\"\n [class.wu-slider-handle-end]=\"range && i === 1\"\n [style.left.%]=\"vertical ? null : percent(values[i])\"\n [style.bottom.%]=\"vertical ? percent(values[i]) : null\"\n [attr.tabindex]=\"disabled ? null : tabindex\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"values[i]\"\n [attr.aria-orientation]=\"orientation\"\n [attr.aria-disabled]=\"disabled || null\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n (pointerdown)=\"handleDown($event, i)\"\n (keydown)=\"keydown($event, i)\"\n ></span>\n</div>\n", styles: ["@layer wiraui.components{wu-slider{display:block;max-width:100%;padding:calc(var(--wu-slider-handle-size) / 2) 0;touch-action:none}wu-slider.wu-slider-host-vertical{display:inline-block;height:12rem;padding:0 calc(var(--wu-slider-handle-size) / 2)}.wu-slider{position:relative;border-radius:var(--wu-radius-full);background:var(--wu-slider-track-bg);cursor:pointer}.wu-slider-horizontal{height:var(--wu-slider-track-size)}.wu-slider-vertical{width:var(--wu-slider-track-size);height:100%}.wu-slider:before{content:\"\";position:absolute;inset:calc(var(--wu-slider-handle-size) / -2) 0}.wu-slider-vertical:before{inset:0 calc(var(--wu-slider-handle-size) / -2)}.wu-slider-range{position:absolute;border-radius:inherit;background:var(--wu-primary-color)}.wu-slider-horizontal .wu-slider-range{top:0;height:100%}.wu-slider-vertical .wu-slider-range{left:0;width:100%}.wu-slider-handle{position:absolute;box-sizing:border-box;width:var(--wu-slider-handle-size);height:var(--wu-slider-handle-size);border:var(--wu-slider-handle-border-width) solid var(--wu-primary-color);border-radius:50%;background:var(--wu-slider-handle-bg);box-shadow:var(--wu-shadow-sm);cursor:grab;transition:box-shadow .15s,transform .15s}.wu-slider-horizontal .wu-slider-handle{top:50%;transform:translate(-50%,-50%)}.wu-slider-vertical .wu-slider-handle{left:50%;transform:translate(-50%,50%)}.wu-slider-handle:focus-visible{outline:none;box-shadow:0 0 0 .25rem color-mix(in srgb,var(--wu-primary-color) 25%,transparent)}.wu-slider-handle:active{cursor:grabbing}.wu-slider-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-slider-disabled .wu-slider-handle{cursor:default}@media
|
|
216
|
+
args: [{ selector: 'wu-slider', standalone: true, imports: [NgFor, NgIf], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => WuSlider), multi: true }], host: { class: 'wu-slider-host', '[class.wu-slider-host-vertical]': "orientation === 'vertical'" }, template: "<div\n class=\"wu-slider p-slider p-component\"\n [class.wu-slider-horizontal]=\"!vertical\"\n [class.p-slider-horizontal]=\"!vertical\"\n [class.wu-slider-vertical]=\"vertical\"\n [class.p-slider-vertical]=\"vertical\"\n [class.wu-slider-disabled]=\"disabled\"\n [class.p-disabled]=\"disabled\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n (pointerdown)=\"trackDown($event)\"\n>\n <span\n class=\"wu-slider-range p-slider-range\"\n [style.left.%]=\"vertical ? null : rangeStart\"\n [style.width.%]=\"vertical ? null : rangeSize\"\n [style.bottom.%]=\"vertical ? rangeStart : null\"\n [style.height.%]=\"vertical ? rangeSize : null\"\n ></span>\n <span\n *ngFor=\"let i of handles\"\n class=\"wu-slider-handle p-slider-handle\"\n role=\"slider\"\n [class.wu-slider-handle-start]=\"range && i === 0\"\n [class.wu-slider-handle-end]=\"range && i === 1\"\n [style.left.%]=\"vertical ? null : percent(values[i])\"\n [style.bottom.%]=\"vertical ? percent(values[i]) : null\"\n [attr.tabindex]=\"disabled ? null : tabindex\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"values[i]\"\n [attr.aria-orientation]=\"orientation\"\n [attr.aria-disabled]=\"disabled || null\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n (pointerdown)=\"handleDown($event, i)\"\n (keydown)=\"keydown($event, i)\"\n ></span>\n</div>\n", styles: ["@layer wiraui.components{wu-slider{display:block;max-width:100%;padding:calc(var(--wu-slider-handle-size) / 2) 0;touch-action:none}wu-slider.wu-slider-host-vertical{display:inline-block;height:12rem;padding:0 calc(var(--wu-slider-handle-size) / 2)}.wu-slider{position:relative;border-radius:var(--wu-radius-full);background:var(--wu-slider-track-bg);cursor:pointer}.wu-slider-horizontal{height:var(--wu-slider-track-size)}.wu-slider-vertical{width:var(--wu-slider-track-size);height:100%}.wu-slider:before{content:\"\";position:absolute;inset:calc(var(--wu-slider-handle-size) / -2) 0}.wu-slider-vertical:before{inset:0 calc(var(--wu-slider-handle-size) / -2)}.wu-slider-range{position:absolute;border-radius:inherit;background:var(--wu-primary-color)}.wu-slider-horizontal .wu-slider-range{top:0;height:100%}.wu-slider-vertical .wu-slider-range{left:0;width:100%}.wu-slider-handle{position:absolute;box-sizing:border-box;width:var(--wu-slider-handle-size);height:var(--wu-slider-handle-size);border:var(--wu-slider-handle-border-width) solid var(--wu-primary-color);border-radius:50%;background:var(--wu-slider-handle-bg);box-shadow:var(--wu-shadow-sm);cursor:grab;transition:box-shadow .15s,transform .15s}.wu-slider-horizontal .wu-slider-handle{top:50%;transform:translate(-50%,-50%)}.wu-slider-vertical .wu-slider-handle{left:50%;transform:translate(-50%,50%)}.wu-slider-handle:focus-visible{outline:none;box-shadow:0 0 0 .25rem color-mix(in srgb,var(--wu-primary-color) 25%,transparent)}.wu-slider-handle:active{cursor:grabbing}.wu-slider-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-slider-disabled .wu-slider-handle{cursor:default}@media(pointer:coarse){.wu-slider-handle{width:calc(var(--wu-slider-handle-size) * 1.35);height:calc(var(--wu-slider-handle-size) * 1.35)}}@media(prefers-reduced-motion:reduce){.wu-slider-handle{transition:none}}@media(pointer:coarse){.wu-slider-handle:after{content:\"\";position:absolute;inset:-.5rem;border-radius:50%}}}\n"] }]
|
|
217
217
|
}], ctorParameters: () => [], propDecorators: { min: [{
|
|
218
218
|
type: Input
|
|
219
219
|
}], max: [{
|
|
@@ -248,11 +248,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
248
248
|
|
|
249
249
|
/** For NgModule apps. Standalone apps can import `WuSlider` directly. */
|
|
250
250
|
class WuSliderModule {
|
|
251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
252
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
253
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
251
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
252
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuSliderModule, imports: [WuSlider], exports: [WuSlider] }); }
|
|
253
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSliderModule }); }
|
|
254
254
|
}
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSliderModule, decorators: [{
|
|
256
256
|
type: NgModule,
|
|
257
257
|
args: [{
|
|
258
258
|
imports: [WuSlider],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-slider.mjs","sources":["../../lib/slider/slider.component.ts","../../lib/slider/slider.component.html","../../lib/slider/slider.module.ts","../../lib/slider/wirabyte-ui-slider.ts"],"sourcesContent":["import { NgFor, NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵassertSupportedAngular, ɵtoBool, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';\n\n/** `(onChange)` and `(onSlideEnd)`: the value, and both ends of a range. */\nexport interface WuSliderChangeEvent {\n event?: Event;\n originalEvent?: Event;\n value?: number;\n values?: number[];\n}\n\nconst toNumber = (v: unknown, fallback: number) => (v === null || v === undefined || v === '' || !Number.isFinite(Number(v)) ? fallback : Number(v));\n\n/**\n * A value (or a range, `[range]=\"true\"`) picked by dragging a handle along a track:\n * `<wu-slider [(ngModel)]=\"volume\" [min]=\"0\" [max]=\"100\" [step]=\"5\">`. Click the track to jump, drag a handle,\n * or use the keyboard (arrows, Page Up/Down, Home/End). `orientation=\"vertical\"` stands it up.\n */\n@Component({\n selector: 'wu-slider',\n standalone: true,\n imports: [NgFor, NgIf],\n templateUrl: './slider.component.html',\n styleUrls: ['./slider.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => WuSlider), multi: true }],\n host: { class: 'wu-slider-host', '[class.wu-slider-host-vertical]': \"orientation === 'vertical'\" },\n})\nexport class WuSlider implements ControlValueAccessor, OnDestroy {\n @Input() set min(v: unknown) { this._min = toNumber(v, 0); }\n get min(): number { return this._min; }\n @Input() set max(v: unknown) { this._max = toNumber(v, 100); }\n get max(): number { return this._max; }\n /** Values snap to this step. Default 1; 0 or none means any value. */\n @Input() set step(v: unknown) { this._step = toNumber(v, 1); }\n get step(): number { return this._step; }\n @Input() orientation: 'horizontal' | 'vertical' = 'horizontal';\n /** Two handles: the value is `[from, to]`. */\n @Input() set range(v: unknown) { this._range = ɵtoBool(v); }\n get range(): boolean { return this._range; }\n @Input() set disabled(v: unknown) { this._disabled = ɵtoBool(v); }\n get disabled(): boolean { return this._disabled || this.formDisabled; }\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n @Input() ariaLabel?: string;\n @Input() ariaLabelledBy?: string;\n @Input() tabindex: number | string = 0;\n /** Accepted for templates moving over. */\n @Input() animate: unknown;\n @Input() autofocus: unknown;\n\n @Output() readonly onChange = new EventEmitter<WuSliderChangeEvent>();\n @Output() readonly onSlideEnd = new EventEmitter<WuSliderChangeEvent>();\n\n values: number[] = [0, 0];\n private _min = 0;\n private _max = 100;\n private _step = 1;\n private _range = false;\n private _disabled = false;\n private formDisabled = false;\n private dragging = -1;\n private cleanup: (() => void) | null = null;\n private onModel: (v: unknown) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly zone = inject(NgZone);\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.cleanup?.();\n }\n\n // ---------- what the template reads ----------\n\n get vertical(): boolean {\n return this.orientation === 'vertical';\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 get handles(): number[] {\n return this._range ? [0, 1] : [0];\n }\n percent(v: number): number {\n const span = this._max - this._min;\n return span > 0 ? ((this.clamp(v) - this._min) * 100) / span : 0;\n }\n /** Where the filled part starts and how long it is, in %. */\n get rangeStart(): number {\n return this._range ? this.percent(Math.min(this.values[0], this.values[1])) : 0;\n }\n get rangeSize(): number {\n return this._range ? Math.abs(this.percent(this.values[1]) - this.percent(this.values[0])) : this.percent(this.values[0]);\n }\n\n // ---------- pointer ----------\n\n /** A press on the track moves the nearest handle there and keeps dragging it. */\n trackDown(event: PointerEvent): void {\n if (this.disabled || event.button !== 0) return;\n event.preventDefault();\n const v = this.valueAt(event);\n const i = this._range ? (Math.abs(v - this.values[0]) <= Math.abs(v - this.values[1]) ? 0 : 1) : 0;\n this.startDrag(i);\n this.setValue(i, v, event);\n }\n\n handleDown(event: PointerEvent, index: number): void {\n if (this.disabled || event.button !== 0) return;\n event.preventDefault();\n event.stopPropagation();\n this.startDrag(index);\n }\n\n private startDrag(index: number): void {\n this.dragging = index;\n (this.host.querySelectorAll('.wu-slider-handle')[index] as HTMLElement | undefined)?.focus();\n const doc = this.host.ownerDocument;\n const move = (e: PointerEvent) => this.zone.run(() => this.setValue(this.dragging, this.valueAt(e), e));\n const up = (e: PointerEvent) =>\n this.zone.run(() => {\n this.cleanup?.();\n this.cleanup = null;\n this.dragging = -1;\n this.onTouched();\n this.onSlideEnd.emit(this.event(e));\n this.cdr.markForCheck();\n });\n this.zone.runOutsideAngular(() => {\n doc.addEventListener('pointermove', move);\n doc.addEventListener('pointerup', up);\n doc.addEventListener('pointercancel', up);\n });\n this.cleanup = () => {\n doc.removeEventListener('pointermove', move);\n doc.removeEventListener('pointerup', up);\n doc.removeEventListener('pointercancel', up);\n };\n }\n\n // ---------- keyboard ----------\n\n keydown(event: KeyboardEvent, index: number): void {\n if (this.disabled) return;\n const step = this._step > 0 ? this._step : (this._max - this._min) / 100;\n const cur = this.values[index];\n let next: number;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n next = cur + step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n next = cur - step;\n break;\n case 'PageUp':\n next = cur + step * 10;\n break;\n case 'PageDown':\n next = cur - step * 10;\n break;\n case 'Home':\n next = this._min;\n break;\n case 'End':\n next = this._max;\n break;\n default:\n return;\n }\n event.preventDefault();\n this.setValue(index, next, event);\n this.onSlideEnd.emit(this.event(event));\n }\n\n // ---------- forms ----------\n\n writeValue(v: unknown): void {\n if (this._range) {\n const arr = Array.isArray(v) ? v : [this._min, this._max];\n this.values = [this.clamp(toNumber(arr[0], this._min)), this.clamp(toNumber(arr[1], this._max))];\n } else {\n this.values = [this.clamp(toNumber(v, this._min)), 0];\n }\n this.cdr.markForCheck();\n }\n registerOnChange(fn: (v: unknown) => void): void {\n this.onModel = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n setDisabledState(disabled: boolean): void {\n this.formDisabled = disabled;\n this.cdr.markForCheck();\n }\n\n // ---------- internals ----------\n\n private clamp(v: number): number {\n return Math.min(this._max, Math.max(this._min, v));\n }\n\n private snap(v: number): number {\n const s = this._step;\n if (!(s > 0)) return this.clamp(v);\n const n = Math.round((v - this._min) / s) * s + this._min;\n // Keep decimals of fractional steps tidy (0.1 + 0.2).\n const decimals = (String(s).split('.')[1] || '').length;\n return this.clamp(Number(n.toFixed(decimals)));\n }\n\n private valueAt(event: PointerEvent): number {\n const track = this.host.querySelector('.wu-slider') as HTMLElement;\n const r = track.getBoundingClientRect();\n const ratio = this.vertical ? (r.bottom - event.clientY) / r.height : (event.clientX - r.left) / r.width;\n return this._min + Math.min(1, Math.max(0, ratio)) * (this._max - this._min);\n }\n\n private setValue(index: number, raw: number, event: Event): void {\n if (index < 0) return;\n let v = this.snap(raw);\n if (this._range) {\n // The handles do not cross.\n if (index === 0) v = Math.min(v, this.values[1]);\n else v = Math.max(v, this.values[0]);\n }\n if (v === this.values[index]) return;\n this.values = this.values.map((x, i) => (i === index ? v : x));\n const value = this._range ? [this.values[0], this.values[1]] : this.values[0];\n this.onModel(value);\n this.onChange.emit(this._range ? { event, values: [this.values[0], this.values[1]] } : { event, value: this.values[0] });\n this.cdr.markForCheck();\n }\n\n private event(e: Event): WuSliderChangeEvent {\n return this._range ? { originalEvent: e, values: [this.values[0], this.values[1]] } : { originalEvent: e, value: this.values[0] };\n }\n}\n","<div\n class=\"wu-slider p-slider p-component\"\n [class.wu-slider-horizontal]=\"!vertical\"\n [class.p-slider-horizontal]=\"!vertical\"\n [class.wu-slider-vertical]=\"vertical\"\n [class.p-slider-vertical]=\"vertical\"\n [class.wu-slider-disabled]=\"disabled\"\n [class.p-disabled]=\"disabled\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n (pointerdown)=\"trackDown($event)\"\n>\n <span\n class=\"wu-slider-range p-slider-range\"\n [style.left.%]=\"vertical ? null : rangeStart\"\n [style.width.%]=\"vertical ? null : rangeSize\"\n [style.bottom.%]=\"vertical ? rangeStart : null\"\n [style.height.%]=\"vertical ? rangeSize : null\"\n ></span>\n <span\n *ngFor=\"let i of handles\"\n class=\"wu-slider-handle p-slider-handle\"\n role=\"slider\"\n [class.wu-slider-handle-start]=\"range && i === 0\"\n [class.wu-slider-handle-end]=\"range && i === 1\"\n [style.left.%]=\"vertical ? null : percent(values[i])\"\n [style.bottom.%]=\"vertical ? percent(values[i]) : null\"\n [attr.tabindex]=\"disabled ? null : tabindex\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"values[i]\"\n [attr.aria-orientation]=\"orientation\"\n [attr.aria-disabled]=\"disabled || null\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n (pointerdown)=\"handleDown($event, i)\"\n (keydown)=\"keydown($event, i)\"\n ></span>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuSlider } from './slider.component';\n\n/** For NgModule apps. Standalone apps can import `WuSlider` directly. */\n@NgModule({\n imports: [WuSlider],\n exports: [WuSlider],\n})\nexport class WuSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK"],"mappings":";;;;;;AA0BA,MAAM,QAAQ,GAAG,CAAC,CAAU,EAAE,QAAgB,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAEpJ;;;;AAIG;MAYU,QAAQ,CAAA;AACnB,IAAA,IAAa,GAAG,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,IAAI,GAAG,KAAa,OA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EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAd,cAAc,EAAA,OAAA,EAAA,CAHf,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA,CAAA;gHAEP,cAAc,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ,CAAC;AACpB,iBAAA;;;ACPD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-slider.mjs","sources":["../../lib/slider/slider.component.ts","../../lib/slider/slider.component.html","../../lib/slider/slider.module.ts","../../lib/slider/wirabyte-ui-slider.ts"],"sourcesContent":["import { NgFor, NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ɵassertSupportedAngular, ɵtoBool, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';\n\n/** `(onChange)` and `(onSlideEnd)`: the value, and both ends of a range. */\nexport interface WuSliderChangeEvent {\n event?: Event;\n originalEvent?: Event;\n value?: number;\n values?: number[];\n}\n\nconst toNumber = (v: unknown, fallback: number) => (v === null || v === undefined || v === '' || !Number.isFinite(Number(v)) ? fallback : Number(v));\n\n/**\n * A value (or a range, `[range]=\"true\"`) picked by dragging a handle along a track:\n * `<wu-slider [(ngModel)]=\"volume\" [min]=\"0\" [max]=\"100\" [step]=\"5\">`. Click the track to jump, drag a handle,\n * or use the keyboard (arrows, Page Up/Down, Home/End). `orientation=\"vertical\"` stands it up.\n */\n@Component({\n selector: 'wu-slider',\n standalone: true,\n imports: [NgFor, NgIf],\n templateUrl: './slider.component.html',\n styleUrls: ['./slider.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => WuSlider), multi: true }],\n host: { class: 'wu-slider-host', '[class.wu-slider-host-vertical]': \"orientation === 'vertical'\" },\n})\nexport class WuSlider implements ControlValueAccessor, OnDestroy {\n @Input() set min(v: unknown) { this._min = toNumber(v, 0); }\n get min(): number { return this._min; }\n @Input() set max(v: unknown) { this._max = toNumber(v, 100); }\n get max(): number { return this._max; }\n /** Values snap to this step. Default 1; 0 or none means any value. */\n @Input() set step(v: unknown) { this._step = toNumber(v, 1); }\n get step(): number { return this._step; }\n @Input() orientation: 'horizontal' | 'vertical' = 'horizontal';\n /** Two handles: the value is `[from, to]`. */\n @Input() set range(v: unknown) { this._range = ɵtoBool(v); }\n get range(): boolean { return this._range; }\n @Input() set disabled(v: unknown) { this._disabled = ɵtoBool(v); }\n get disabled(): boolean { return this._disabled || this.formDisabled; }\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n @Input() ariaLabel?: string;\n @Input() ariaLabelledBy?: string;\n @Input() tabindex: number | string = 0;\n /** Accepted for templates moving over. */\n @Input() animate: unknown;\n @Input() autofocus: unknown;\n\n @Output() readonly onChange = new EventEmitter<WuSliderChangeEvent>();\n @Output() readonly onSlideEnd = new EventEmitter<WuSliderChangeEvent>();\n\n values: number[] = [0, 0];\n private _min = 0;\n private _max = 100;\n private _step = 1;\n private _range = false;\n private _disabled = false;\n private formDisabled = false;\n private dragging = -1;\n private cleanup: (() => void) | null = null;\n private onModel: (v: unknown) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly zone = inject(NgZone);\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.cleanup?.();\n }\n\n // ---------- what the template reads ----------\n\n get vertical(): boolean {\n return this.orientation === 'vertical';\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 get handles(): number[] {\n return this._range ? [0, 1] : [0];\n }\n percent(v: number): number {\n const span = this._max - this._min;\n return span > 0 ? ((this.clamp(v) - this._min) * 100) / span : 0;\n }\n /** Where the filled part starts and how long it is, in %. */\n get rangeStart(): number {\n return this._range ? this.percent(Math.min(this.values[0], this.values[1])) : 0;\n }\n get rangeSize(): number {\n return this._range ? Math.abs(this.percent(this.values[1]) - this.percent(this.values[0])) : this.percent(this.values[0]);\n }\n\n // ---------- pointer ----------\n\n /** A press on the track moves the nearest handle there and keeps dragging it. */\n trackDown(event: PointerEvent): void {\n if (this.disabled || event.button !== 0) return;\n event.preventDefault();\n const v = this.valueAt(event);\n const i = this._range ? (Math.abs(v - this.values[0]) <= Math.abs(v - this.values[1]) ? 0 : 1) : 0;\n this.startDrag(i);\n this.setValue(i, v, event);\n }\n\n handleDown(event: PointerEvent, index: number): void {\n if (this.disabled || event.button !== 0) return;\n event.preventDefault();\n event.stopPropagation();\n this.startDrag(index);\n }\n\n private startDrag(index: number): void {\n this.dragging = index;\n (this.host.querySelectorAll('.wu-slider-handle')[index] as HTMLElement | undefined)?.focus();\n const doc = this.host.ownerDocument;\n const move = (e: PointerEvent) => this.zone.run(() => this.setValue(this.dragging, this.valueAt(e), e));\n const up = (e: PointerEvent) =>\n this.zone.run(() => {\n this.cleanup?.();\n this.cleanup = null;\n this.dragging = -1;\n this.onTouched();\n this.onSlideEnd.emit(this.event(e));\n this.cdr.markForCheck();\n });\n this.zone.runOutsideAngular(() => {\n doc.addEventListener('pointermove', move);\n doc.addEventListener('pointerup', up);\n doc.addEventListener('pointercancel', up);\n });\n this.cleanup = () => {\n doc.removeEventListener('pointermove', move);\n doc.removeEventListener('pointerup', up);\n doc.removeEventListener('pointercancel', up);\n };\n }\n\n // ---------- keyboard ----------\n\n keydown(event: KeyboardEvent, index: number): void {\n if (this.disabled) return;\n const step = this._step > 0 ? this._step : (this._max - this._min) / 100;\n const cur = this.values[index];\n let next: number;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n next = cur + step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n next = cur - step;\n break;\n case 'PageUp':\n next = cur + step * 10;\n break;\n case 'PageDown':\n next = cur - step * 10;\n break;\n case 'Home':\n next = this._min;\n break;\n case 'End':\n next = this._max;\n break;\n default:\n return;\n }\n event.preventDefault();\n this.setValue(index, next, event);\n this.onSlideEnd.emit(this.event(event));\n }\n\n // ---------- forms ----------\n\n writeValue(v: unknown): void {\n if (this._range) {\n const arr = Array.isArray(v) ? v : [this._min, this._max];\n this.values = [this.clamp(toNumber(arr[0], this._min)), this.clamp(toNumber(arr[1], this._max))];\n } else {\n this.values = [this.clamp(toNumber(v, this._min)), 0];\n }\n this.cdr.markForCheck();\n }\n registerOnChange(fn: (v: unknown) => void): void {\n this.onModel = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n setDisabledState(disabled: boolean): void {\n this.formDisabled = disabled;\n this.cdr.markForCheck();\n }\n\n // ---------- internals ----------\n\n private clamp(v: number): number {\n return Math.min(this._max, Math.max(this._min, v));\n }\n\n private snap(v: number): number {\n const s = this._step;\n if (!(s > 0)) return this.clamp(v);\n const n = Math.round((v - this._min) / s) * s + this._min;\n // Keep decimals of fractional steps tidy (0.1 + 0.2).\n const decimals = (String(s).split('.')[1] || '').length;\n return this.clamp(Number(n.toFixed(decimals)));\n }\n\n private valueAt(event: PointerEvent): number {\n const track = this.host.querySelector('.wu-slider') as HTMLElement;\n const r = track.getBoundingClientRect();\n const ratio = this.vertical ? (r.bottom - event.clientY) / r.height : (event.clientX - r.left) / r.width;\n return this._min + Math.min(1, Math.max(0, ratio)) * (this._max - this._min);\n }\n\n private setValue(index: number, raw: number, event: Event): void {\n if (index < 0) return;\n let v = this.snap(raw);\n if (this._range) {\n // The handles do not cross.\n if (index === 0) v = Math.min(v, this.values[1]);\n else v = Math.max(v, this.values[0]);\n }\n if (v === this.values[index]) return;\n this.values = this.values.map((x, i) => (i === index ? v : x));\n const value = this._range ? [this.values[0], this.values[1]] : this.values[0];\n this.onModel(value);\n this.onChange.emit(this._range ? { event, values: [this.values[0], this.values[1]] } : { event, value: this.values[0] });\n this.cdr.markForCheck();\n }\n\n private event(e: Event): WuSliderChangeEvent {\n return this._range ? { originalEvent: e, values: [this.values[0], this.values[1]] } : { originalEvent: e, value: this.values[0] };\n }\n}\n","<div\n class=\"wu-slider p-slider p-component\"\n [class.wu-slider-horizontal]=\"!vertical\"\n [class.p-slider-horizontal]=\"!vertical\"\n [class.wu-slider-vertical]=\"vertical\"\n [class.p-slider-vertical]=\"vertical\"\n [class.wu-slider-disabled]=\"disabled\"\n [class.p-disabled]=\"disabled\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n (pointerdown)=\"trackDown($event)\"\n>\n <span\n class=\"wu-slider-range p-slider-range\"\n [style.left.%]=\"vertical ? null : rangeStart\"\n [style.width.%]=\"vertical ? null : rangeSize\"\n [style.bottom.%]=\"vertical ? rangeStart : null\"\n [style.height.%]=\"vertical ? rangeSize : null\"\n ></span>\n <span\n *ngFor=\"let i of handles\"\n class=\"wu-slider-handle p-slider-handle\"\n role=\"slider\"\n [class.wu-slider-handle-start]=\"range && i === 0\"\n [class.wu-slider-handle-end]=\"range && i === 1\"\n [style.left.%]=\"vertical ? null : percent(values[i])\"\n [style.bottom.%]=\"vertical ? percent(values[i]) : null\"\n [attr.tabindex]=\"disabled ? null : tabindex\"\n [attr.aria-valuemin]=\"min\"\n [attr.aria-valuemax]=\"max\"\n [attr.aria-valuenow]=\"values[i]\"\n [attr.aria-orientation]=\"orientation\"\n [attr.aria-disabled]=\"disabled || null\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n (pointerdown)=\"handleDown($event, i)\"\n (keydown)=\"keydown($event, i)\"\n ></span>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuSlider } from './slider.component';\n\n/** For NgModule apps. Standalone apps can import `WuSlider` directly. */\n@NgModule({\n imports: [WuSlider],\n exports: [WuSlider],\n})\nexport class WuSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵtoBool","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK"],"mappings":";;;;;;AA0BA,MAAM,QAAQ,GAAG,CAAC,CAAU,EAAE,QAAgB,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAEpJ;;;;AAIG;MAYU,QAAQ,CAAA;AACnB,IAAA,IAAa,GAAG,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,IAAI,GAAG,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;AACtC,IAAA,IAAa,GAAG,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7D,IAAI,GAAG,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;;AAEtC,IAAA,IAAa,IAAI,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7D,IAAI,IAAI,KAAa,OAAO,IAAI,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AAuB,CAAC,MAAM,aACpC,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAA,IAAA,EAC3F,EAAE,KAAK,EAAE,gBAAgB,EAAE,iCAAiC,EAAE,4BAA4B,EAAE,EAAA,QAAA,EAAA,i9CAAA,EAAA,MAAA,EAAA,CAAA,+7DAAA,CAAA,EAAA;;sBAGjG;;sBAEA;;sBAGA;;sBAEA;;sBAEA;;sBAEA;;sBAEA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBAEA;;sBACA;;;AElEH;MAKa,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAd,cAAc,EAAA,OAAA,EAAA,CAHf,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA,CAAA;gHAEP,cAAc,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ,CAAC;AACpB,iBAAA;;;ACPD;;AAEG;;"}
|
|
@@ -110,10 +110,10 @@ class WuSplitButton {
|
|
|
110
110
|
this.menuOpen = false;
|
|
111
111
|
this.onMenuHide.emit();
|
|
112
112
|
}
|
|
113
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
114
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSplitButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
114
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuSplitButton, isStandalone: true, selector: "wu-splitbutton, wu-splitButton, wu-split-button", inputs: { label: "label", icon: "icon", iconPos: "iconPos", model: "model", severity: "severity", raised: "raised", rounded: "rounded", text: "text", outlined: "outlined", size: "size", disabled: "disabled", buttonDisabled: "buttonDisabled", menuButtonDisabled: "menuButtonDisabled", styleClass: "styleClass", style: "style", menuStyleClass: "menuStyleClass", menuStyle: "menuStyle", dropdownIcon: "dropdownIcon", ariaLabel: "ariaLabel", expandAriaLabel: "expandAriaLabel", appendTo: "appendTo", tooltip: "tooltip", tooltipOptions: "tooltipOptions", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex" }, outputs: { onClick: "onClick", onDropdownClick: "onDropdownClick", onMenuShow: "onMenuShow", onMenuHide: "onMenuHide" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true }], ngImport: i0, template: "<div class=\"wu-splitbutton p-splitbutton p-component\" [class.wu-splitbutton-disabled]=\"disabled\" [class]=\"styleClass || ''\" [style]=\"rootStyle\" (keydown)=\"keydown($event)\">\n <button type=\"button\" [class]=\"mainClass\" [disabled]=\"disabled || buttonDisabled\" [attr.aria-label]=\"ariaLabel || null\" (click)=\"mainClick($event)\">\n <span *ngIf=\"icon && iconPos === 'left'\" [class]=\"'wu-btn-icon p-button-icon p-button-icon-left ' + icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"label\" class=\"wu-btn-label p-button-label\">{{ label }}</span>\n <span *ngIf=\"icon && iconPos === 'right'\" [class]=\"'wu-btn-icon p-button-icon p-button-icon-right ' + icon\" aria-hidden=\"true\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"dropdownClass\"\n [disabled]=\"disabled || menuButtonDisabled\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"menuOpen\"\n [attr.aria-label]=\"expandLabel\"\n (click)=\"dropdownClick($event)\"\n >\n <span *ngIf=\"dropdownIcon; else chevron\" [class]=\"'wu-btn-icon ' + dropdownIcon\" aria-hidden=\"true\"></span>\n <ng-template #chevron>\n <svg class=\"wu-splitbutton-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4.5 6.5 3.5 3.5 3.5-3.5\"></path></svg>\n </ng-template>\n </button>\n <wu-menu #menu [model]=\"model\" [popup]=\"true\" [styleClass]=\"menuStyleClass || ''\" [style]=\"menuStyle || null\" (onShow)=\"shown()\" (onHide)=\"hidden()\"></wu-menu>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-splitbutton,wu-split-button){display:inline-flex;vertical-align:middle;max-width:100%}.wu-splitbutton{display:inline-flex;align-items:stretch;max-width:100%}.wu-splitbutton>.wu-splitbutton-main{flex:1 1 auto;min-width:0;border-top-right-radius:0;border-bottom-right-radius:0}.wu-splitbutton>.wu-splitbutton-dropdown{flex:none;margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.wu-splitbutton>.wu-splitbutton-dropdown:not(.wu-btn-outlined):not(.wu-btn-text){border-left-color:color-mix(in srgb,var(--_fg) 35%,var(--_bg))}.wu-splitbutton-chevron{display:block;width:1em;height:1em}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WuMenu, selector: "wu-menu", exportAs: ["wuMenu"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
115
115
|
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSplitButton, decorators: [{
|
|
117
117
|
type: Component,
|
|
118
118
|
args: [{ selector: 'wu-splitbutton, wu-splitButton, wu-split-button', standalone: true, imports: [NgIf, WuMenu], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"wu-splitbutton p-splitbutton p-component\" [class.wu-splitbutton-disabled]=\"disabled\" [class]=\"styleClass || ''\" [style]=\"rootStyle\" (keydown)=\"keydown($event)\">\n <button type=\"button\" [class]=\"mainClass\" [disabled]=\"disabled || buttonDisabled\" [attr.aria-label]=\"ariaLabel || null\" (click)=\"mainClick($event)\">\n <span *ngIf=\"icon && iconPos === 'left'\" [class]=\"'wu-btn-icon p-button-icon p-button-icon-left ' + icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"label\" class=\"wu-btn-label p-button-label\">{{ label }}</span>\n <span *ngIf=\"icon && iconPos === 'right'\" [class]=\"'wu-btn-icon p-button-icon p-button-icon-right ' + icon\" aria-hidden=\"true\"></span>\n </button>\n <button\n type=\"button\"\n [class]=\"dropdownClass\"\n [disabled]=\"disabled || menuButtonDisabled\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"menuOpen\"\n [attr.aria-label]=\"expandLabel\"\n (click)=\"dropdownClick($event)\"\n >\n <span *ngIf=\"dropdownIcon; else chevron\" [class]=\"'wu-btn-icon ' + dropdownIcon\" aria-hidden=\"true\"></span>\n <ng-template #chevron>\n <svg class=\"wu-splitbutton-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4.5 6.5 3.5 3.5 3.5-3.5\"></path></svg>\n </ng-template>\n </button>\n <wu-menu #menu [model]=\"model\" [popup]=\"true\" [styleClass]=\"menuStyleClass || ''\" [style]=\"menuStyle || null\" (onShow)=\"shown()\" (onHide)=\"hidden()\"></wu-menu>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-splitbutton,wu-split-button){display:inline-flex;vertical-align:middle;max-width:100%}.wu-splitbutton{display:inline-flex;align-items:stretch;max-width:100%}.wu-splitbutton>.wu-splitbutton-main{flex:1 1 auto;min-width:0;border-top-right-radius:0;border-bottom-right-radius:0}.wu-splitbutton>.wu-splitbutton-dropdown{flex:none;margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.wu-splitbutton>.wu-splitbutton-dropdown:not(.wu-btn-outlined):not(.wu-btn-text){border-left-color:color-mix(in srgb,var(--_fg) 35%,var(--_bg))}.wu-splitbutton-chevron{display:block;width:1em;height:1em}}\n"] }]
|
|
119
119
|
}], ctorParameters: () => [], propDecorators: { label: [{
|
|
@@ -181,11 +181,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
181
181
|
|
|
182
182
|
/** For NgModule apps. Standalone apps can import `WuSplitButton` directly. */
|
|
183
183
|
class WuSplitButtonModule {
|
|
184
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
185
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
186
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
184
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
185
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuSplitButtonModule, imports: [WuSplitButton], exports: [WuSplitButton] }); }
|
|
186
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSplitButtonModule, imports: [WuSplitButton] }); }
|
|
187
187
|
}
|
|
188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuSplitButtonModule, decorators: [{
|
|
189
189
|
type: NgModule,
|
|
190
190
|
args: [{
|
|
191
191
|
imports: [WuSplitButton],
|