@exhaustive-ui/core 22.0.0-alpha.0 → 22.0.0-alpha.10
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/README.md +24 -6
- package/fesm2022/exhaustive-ui-core-accordion.mjs +7 -1
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +7 -5
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +20 -9
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +6 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +8 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +31 -9
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-buttongroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-buttongroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +56 -19
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +9 -3
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +9 -4
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +131 -87
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +28 -11
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-divider.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-divider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +12 -3
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +10 -6
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fluid.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iftalabel.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-iftalabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +11 -3
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +30 -6
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +30 -3
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +16 -4
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +12 -3
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +18 -7
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +58 -14
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +14 -12
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +11 -5
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +4 -0
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +8 -10
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +33 -13
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +57 -9
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +14 -7
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressbar.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +7 -2
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-ripple.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-ripple.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +14 -4
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +11 -3
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +47 -14
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-skeleton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +11 -2
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +23 -7
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +11 -10
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +242 -103
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +16 -10
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tag.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-tag.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +10 -2
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +28 -14
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +6 -2
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +25 -6
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +37 -2
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +77 -9
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +6 -6
- package/schematics/migrate-from-primeng/index.js +1 -1
- package/schematics/migrations/remove-dead-inputs/migration.js +5 -4
- package/schematics/migrations/remove-dead-outputs/migration.js +6 -5
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +1 -1
- package/types/exhaustive-ui-core-autocomplete.d.ts +3 -1
- package/types/exhaustive-ui-core-autofocus.d.ts +1 -1
- package/types/exhaustive-ui-core-avatar.d.ts +1 -1
- package/types/exhaustive-ui-core-avatargroup.d.ts +1 -1
- package/types/exhaustive-ui-core-badge.d.ts +1 -1
- package/types/exhaustive-ui-core-blockui.d.ts +1 -1
- package/types/exhaustive-ui-core-breadcrumb.d.ts +1 -1
- package/types/exhaustive-ui-core-button.d.ts +13 -2
- package/types/exhaustive-ui-core-buttongroup.d.ts +1 -1
- package/types/exhaustive-ui-core-card.d.ts +1 -1
- package/types/exhaustive-ui-core-carousel.d.ts +1 -1
- package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
- package/types/exhaustive-ui-core-chart.d.ts +1 -1
- package/types/exhaustive-ui-core-checkbox.d.ts +1 -1
- package/types/exhaustive-ui-core-chip.d.ts +1 -1
- package/types/exhaustive-ui-core-colorpicker.d.ts +1 -1
- package/types/exhaustive-ui-core-confirmdialog.d.ts +15 -4
- package/types/exhaustive-ui-core-confirmpopup.d.ts +1 -1
- package/types/exhaustive-ui-core-contextmenu.d.ts +1 -1
- package/types/exhaustive-ui-core-dataview.d.ts +1 -1
- package/types/exhaustive-ui-core-datepicker.d.ts +8 -2
- package/types/exhaustive-ui-core-dialog.d.ts +3 -1
- package/types/exhaustive-ui-core-divider.d.ts +1 -1
- package/types/exhaustive-ui-core-dock.d.ts +1 -1
- package/types/exhaustive-ui-core-drawer.d.ts +1 -1
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +3 -3
- package/types/exhaustive-ui-core-editor.d.ts +1 -1
- package/types/exhaustive-ui-core-fieldset.d.ts +1 -1
- package/types/exhaustive-ui-core-fileupload.d.ts +1 -1
- package/types/exhaustive-ui-core-floatlabel.d.ts +1 -1
- package/types/exhaustive-ui-core-fluid.d.ts +1 -1
- package/types/exhaustive-ui-core-galleria.d.ts +1 -1
- package/types/exhaustive-ui-core-iconfield.d.ts +1 -1
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +1 -1
- package/types/exhaustive-ui-core-iftalabel.d.ts +1 -1
- package/types/exhaustive-ui-core-image.d.ts +7 -2
- package/types/exhaustive-ui-core-imagecompare.d.ts +1 -1
- package/types/exhaustive-ui-core-inplace.d.ts +1 -1
- package/types/exhaustive-ui-core-inputgroup.d.ts +1 -1
- package/types/exhaustive-ui-core-inputmask.d.ts +1 -1
- package/types/exhaustive-ui-core-inputnumber.d.ts +1 -1
- package/types/exhaustive-ui-core-inputotp.d.ts +1 -1
- package/types/exhaustive-ui-core-inputtext.d.ts +1 -1
- package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
- package/types/exhaustive-ui-core-knob.d.ts +1 -1
- package/types/exhaustive-ui-core-listbox.d.ts +1 -1
- package/types/exhaustive-ui-core-megamenu.d.ts +1 -1
- package/types/exhaustive-ui-core-menu.d.ts +3 -1
- package/types/exhaustive-ui-core-menubar.d.ts +6 -1
- package/types/exhaustive-ui-core-message.d.ts +1 -1
- package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
- package/types/exhaustive-ui-core-multiselect.d.ts +2 -2
- package/types/exhaustive-ui-core-orderlist.d.ts +7 -2
- package/types/exhaustive-ui-core-organizationchart.d.ts +1 -1
- package/types/exhaustive-ui-core-paginator.d.ts +2 -1
- package/types/exhaustive-ui-core-panel.d.ts +1 -1
- package/types/exhaustive-ui-core-panelmenu.d.ts +6 -1
- package/types/exhaustive-ui-core-password.d.ts +3 -1
- package/types/exhaustive-ui-core-picklist.d.ts +4 -4
- package/types/exhaustive-ui-core-progressbar.d.ts +1 -1
- package/types/exhaustive-ui-core-progressspinner.d.ts +1 -1
- package/types/exhaustive-ui-core-radiobutton.d.ts +1 -1
- package/types/exhaustive-ui-core-rating.d.ts +1 -1
- package/types/exhaustive-ui-core-ripple.d.ts +1 -1
- package/types/exhaustive-ui-core-scroller.d.ts +1 -1
- package/types/exhaustive-ui-core-scrollpanel.d.ts +1 -1
- package/types/exhaustive-ui-core-scrolltop.d.ts +1 -1
- package/types/exhaustive-ui-core-select.d.ts +4 -2
- package/types/exhaustive-ui-core-selectbutton.d.ts +1 -1
- package/types/exhaustive-ui-core-skeleton.d.ts +1 -1
- package/types/exhaustive-ui-core-slider.d.ts +1 -1
- package/types/exhaustive-ui-core-speeddial.d.ts +1 -1
- package/types/exhaustive-ui-core-splitbutton.d.ts +3 -2
- package/types/exhaustive-ui-core-splitter.d.ts +7 -2
- package/types/exhaustive-ui-core-stepper.d.ts +1 -1
- package/types/exhaustive-ui-core-steps.d.ts +1 -1
- package/types/exhaustive-ui-core-table.d.ts +9 -3
- package/types/exhaustive-ui-core-tabs.d.ts +2 -1
- package/types/exhaustive-ui-core-tag.d.ts +1 -1
- package/types/exhaustive-ui-core-terminal.d.ts +1 -1
- package/types/exhaustive-ui-core-textarea.d.ts +1 -1
- package/types/exhaustive-ui-core-tieredmenu.d.ts +3 -1
- package/types/exhaustive-ui-core-timeline.d.ts +1 -1
- package/types/exhaustive-ui-core-toast.d.ts +1 -1
- package/types/exhaustive-ui-core-togglebutton.d.ts +1 -1
- package/types/exhaustive-ui-core-toggleswitch.d.ts +1 -1
- package/types/exhaustive-ui-core-toolbar.d.ts +1 -1
- package/types/exhaustive-ui-core-tooltip.d.ts +1 -1
- package/types/exhaustive-ui-core-tree.d.ts +3 -1
- package/types/exhaustive-ui-core-treeselect.d.ts +7 -1
- package/types/exhaustive-ui-core-treetable.d.ts +23 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-textarea.mjs","sources":["../../src/textarea/style/textareastyle.ts","../../src/textarea/textarea.ts","../../src/textarea/exhaustive-ui-core-textarea.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as textarea_style } from '@exhaustive-ui/styles/textarea';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${textarea_style}\n\n /* For Exhaustive */\n .p-textarea.ng-invalid.ng-dirty {\n border-color: dt('textarea.invalid.border.color');\n }\n .p-textarea.ng-invalid.ng-dirty::placeholder {\n color: dt('textarea.invalid.placeholder.color');\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-textarea p-component',\n {\n 'p-filled': instance.$filled(),\n 'p-textarea-resizable ': instance.autoResize(),\n 'p-variant-filled': instance.$variant() === 'filled',\n 'p-textarea-fluid': instance.hasFluid(),\n 'p-inputfield-sm p-textarea-sm': instance.pSize() === 'small',\n 'p-textarea-lg p-inputfield-lg': instance.pSize() === 'large',\n 'p-invalid': instance.invalid()\n }\n ]\n};\n\n@Injectable()\nexport class TextareaStyle extends BaseStyle {\n name = 'textarea';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Textarea is a multi-line text input element.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/textarea/)\n *\n * @module textareastyle\n *\n */\nexport enum TextareaClasses {\n /**\n * Class name of the root element\n */\n root = 'p-textarea'\n}\n\nexport interface TextareaStyle extends BaseStyle {}\n","import { afterEveryRender, booleanAttribute, computed, DestroyRef, Directive, effect, HostListener, inject, input, NgModule, output } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { BaseModelHolder } from '@exhaustive-ui/core/basemodelholder';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { Fluid } from '@exhaustive-ui/core/fluid';\nimport { TextareaPassThrough } from '@exhaustive-ui/core/types/textarea';\nimport { TextareaStyle } from './style/textareastyle';\n\n/**\n * Textarea adds styling and autoResize functionality to standard textarea element.\n * @group Components\n */\n@Directive({\n selector: '[pTextarea], [pInputTextarea]',\n host: {\n '[class]': \"cx('root')\"\n },\n providers: [TextareaStyle, { provide: PARENT_INSTANCE, useExisting: Textarea }],\n hostDirectives: [Bind]\n})\nexport class Textarea extends BaseModelHolder<TextareaPassThrough> {\n componentName = 'Textarea';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n /**\n * Used to pass attributes to DOM elements inside the Textarea component.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaPT = input<TextareaPassThrough>();\n /**\n * Indicates whether the component should be rendered without styles.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaUnstyled = input<boolean | undefined>();\n\n /**\n * When present, textarea size changes as being typed.\n * @group Props\n */\n readonly autoResize = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n /**\n * Defines the size of the component.\n * @group Props\n */\n readonly pSize = input<'large' | 'small' | undefined>();\n /**\n * Specifies the input variant of the component.\n * @defaultValue undefined\n * @group Props\n */\n variant = input<'filled' | 'outlined' | undefined>();\n /**\n * Spans 100% width of the container when enabled.\n * @defaultValue undefined\n * @group Props\n */\n fluid = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have invalid state style.\n * @defaultValue false\n * @group Props\n */\n invalid = input(undefined, { transform: booleanAttribute });\n\n $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant());\n /**\n * Callback to invoke on textarea resize.\n * @param {(Event | {})} event - Custom resize event.\n * @group Emits\n */\n readonly onResize = output<Event | {}>();\n\n destroyRef = inject(DestroyRef);\n\n _componentStyle = inject(TextareaStyle);\n\n ngControl = inject(NgControl, { optional: true, self: true });\n\n pcFluid: Fluid | null = inject(Fluid, { optional: true, host: true, skipSelf: true });\n\n readonly hasFluid = computed(() => this.fluid() ?? !!this.pcFluid);\n\n constructor() {\n super();\n effect(() => {\n const pt = this.pTextareaPT();\n pt && this.directivePT.set(pt);\n });\n\n effect(() => {\n this.pTextareaUnstyled() && this.directiveUnstyled.set(this.pTextareaUnstyled());\n });\n\n afterEveryRender(() => {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n });\n }\n\n onInit() {\n if (this.ngControl) {\n (this.ngControl as any).valueChanges.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.updateState();\n });\n }\n }\n\n onDoCheck() {\n this.writeModelValue(this.ngControl?.value ?? this.el.nativeElement.value);\n }\n\n onAfterViewChecked() {\n if (this.autoResize()) {\n this.resize();\n }\n }\n\n @HostListener('input', ['$event'])\n onInput(e: Event) {\n this.writeModelValue((e.target as HTMLTextAreaElement)?.value);\n this.updateState();\n }\n\n resize(event?: Event) {\n this.el.nativeElement.style.height = 'auto';\n this.el.nativeElement.style.height = this.el.nativeElement.scrollHeight + 'px';\n\n if (parseFloat(this.el.nativeElement.style.height) >= parseFloat(this.el.nativeElement.style.maxHeight)) {\n this.el.nativeElement.style.overflowY = 'scroll';\n this.el.nativeElement.style.height = this.el.nativeElement.style.maxHeight;\n } else {\n this.el.nativeElement.style.overflow = 'hidden';\n }\n\n this.onResize.emit(event || {});\n }\n\n updateState() {\n if (this.autoResize()) {\n this.resize();\n }\n }\n}\n\n@NgModule({\n imports: [Textarea],\n exports: [Textarea]\n})\nexport class TextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["textarea_style"],"mappings":";;;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAc;;;;;;;;;CASnB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,wBAAwB;AACxB,QAAA;AACI,YAAA,UAAU,EAAE,QAAQ,CAAC,OAAO,EAAE;AAC9B,YAAA,uBAAuB,EAAE,QAAQ,CAAC,UAAU,EAAE;AAC9C,YAAA,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,QAAQ;AACpD,YAAA,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE;AACvC,YAAA,+BAA+B,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,OAAO;AAC7D,YAAA,+BAA+B,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,OAAO;AAC7D,YAAA,WAAW,EAAE,QAAQ,CAAC,OAAO;AAChC;AACJ;CACJ;AAGK,MAAO,aAAc,SAAQ,SAAS,CAAA;IACxC,IAAI,GAAG,UAAU;IAEjB,KAAK,GAAG,KAAK;IAEb,OAAO,G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AC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACrB,iBAAA;;;ACvJD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-textarea.mjs","sources":["../../src/textarea/style/textareastyle.ts","../../src/textarea/textarea.ts","../../src/textarea/exhaustive-ui-core-textarea.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as textarea_style } from '@exhaustive-ui/styles/textarea';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${textarea_style}\n\n /* For Exhaustive */\n .p-textarea.ng-invalid.ng-dirty {\n border-color: dt('textarea.invalid.border.color');\n }\n .p-textarea.ng-invalid.ng-dirty::placeholder {\n color: dt('textarea.invalid.placeholder.color');\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-textarea p-component',\n {\n 'p-filled': instance.$filled(),\n 'p-textarea-resizable ': instance.autoResize(),\n 'p-variant-filled': instance.$variant() === 'filled',\n 'p-textarea-fluid': instance.hasFluid(),\n 'p-inputfield-sm p-textarea-sm': instance.pSize() === 'small',\n 'p-textarea-lg p-inputfield-lg': instance.pSize() === 'large',\n 'p-invalid': instance.invalid()\n }\n ]\n};\n\n@Injectable()\nexport class TextareaStyle extends BaseStyle {\n name = 'textarea';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Textarea is a multi-line text input element.\n *\n * [Live Demo](https://exhaustive-ui.com/textarea/)\n *\n * @module textareastyle\n *\n */\nexport enum TextareaClasses {\n /**\n * Class name of the root element\n */\n root = 'p-textarea'\n}\n\nexport interface TextareaStyle extends BaseStyle {}\n","import { afterEveryRender, booleanAttribute, computed, DestroyRef, Directive, effect, HostListener, inject, input, NgModule, output } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { BaseModelHolder } from '@exhaustive-ui/core/basemodelholder';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { Fluid } from '@exhaustive-ui/core/fluid';\nimport { TextareaPassThrough } from '@exhaustive-ui/core/types/textarea';\nimport { TextareaStyle } from './style/textareastyle';\n\n/**\n * Textarea adds styling and autoResize functionality to standard textarea element.\n * @group Components\n */\n@Directive({\n selector: '[pTextarea], [pInputTextarea]',\n host: {\n '[class]': \"cx('root')\"\n },\n providers: [TextareaStyle, { provide: PARENT_INSTANCE, useExisting: Textarea }],\n hostDirectives: [Bind]\n})\nexport class Textarea extends BaseModelHolder<TextareaPassThrough> {\n componentName = 'Textarea';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n /**\n * Used to pass attributes to DOM elements inside the Textarea component.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaPT = input<TextareaPassThrough>();\n /**\n * Indicates whether the component should be rendered without styles.\n * @defaultValue undefined\n * @group Props\n */\n pTextareaUnstyled = input<boolean | undefined>();\n\n /**\n * When present, textarea size changes as being typed.\n * @group Props\n */\n readonly autoResize = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n /**\n * Defines the size of the component.\n * @group Props\n */\n readonly pSize = input<'large' | 'small' | undefined>();\n /**\n * Specifies the input variant of the component.\n * @defaultValue undefined\n * @group Props\n */\n variant = input<'filled' | 'outlined' | undefined>();\n /**\n * Spans 100% width of the container when enabled.\n * @defaultValue undefined\n * @group Props\n */\n fluid = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have invalid state style.\n * @defaultValue false\n * @group Props\n */\n invalid = input(undefined, { transform: booleanAttribute });\n\n $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant());\n /**\n * Callback to invoke on textarea resize.\n * @param {(Event | {})} event - Custom resize event.\n * @group Emits\n */\n readonly onResize = output<Event | {}>();\n\n destroyRef = inject(DestroyRef);\n\n _componentStyle = inject(TextareaStyle);\n\n ngControl = inject(NgControl, { optional: true, self: true });\n\n pcFluid: Fluid | null = inject(Fluid, { optional: true, host: true, skipSelf: true });\n\n readonly hasFluid = computed(() => this.fluid() ?? !!this.pcFluid);\n\n constructor() {\n super();\n effect(() => {\n const pt = this.pTextareaPT();\n pt && this.directivePT.set(pt);\n });\n\n effect(() => {\n this.pTextareaUnstyled() && this.directiveUnstyled.set(this.pTextareaUnstyled());\n });\n\n afterEveryRender(() => {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n });\n }\n\n onInit() {\n if (this.ngControl) {\n // Signal Forms provide an NgControl without valueChanges; typed values still reach updateState through the input event, and autoResize runs after each view check.\n (this.ngControl as any).valueChanges?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.updateState();\n });\n }\n }\n\n onDoCheck() {\n this.writeModelValue(this.ngControl?.value ?? this.el.nativeElement.value);\n }\n\n onAfterViewChecked() {\n if (this.autoResize()) {\n this.resize();\n }\n }\n\n @HostListener('input', ['$event'])\n onInput(e: Event) {\n this.writeModelValue((e.target as HTMLTextAreaElement)?.value);\n this.updateState();\n }\n\n resize(event?: Event) {\n // Collapsing the height to measure scrollHeight shrinks the scroll containers for a moment, which clamps their scroll position.\n const scrollPositions: [HTMLElement, number][] = [];\n for (let parent: HTMLElement | null = this.el.nativeElement.parentElement; parent; parent = parent.parentElement) {\n if (parent.scrollTop) scrollPositions.push([parent, parent.scrollTop]);\n }\n\n this.el.nativeElement.style.height = 'auto';\n this.el.nativeElement.style.height = this.el.nativeElement.scrollHeight + 'px';\n\n if (parseFloat(this.el.nativeElement.style.height) >= parseFloat(this.el.nativeElement.style.maxHeight)) {\n this.el.nativeElement.style.overflowY = 'scroll';\n this.el.nativeElement.style.height = this.el.nativeElement.style.maxHeight;\n } else {\n this.el.nativeElement.style.overflow = 'hidden';\n }\n\n scrollPositions.forEach(([parent, scrollTop]) => (parent.scrollTop = scrollTop));\n\n this.onResize.emit(event || {});\n }\n\n updateState() {\n if (this.autoResize()) {\n this.resize();\n }\n }\n}\n\n@NgModule({\n imports: [Textarea],\n exports: [Textarea]\n})\nexport class TextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["textarea_style"],"mappings":";;;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAc;;;;;;;;;CASnB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,wBAAwB;AACxB,QAAA;AACI,YAAA,UAAU,EAAE,QAAQ,CAAC,OAAO,EAAE;AAC9B,YAAA,uBAAuB,EAAE,QAAQ,CAAC,UAAU,EAAE;AAC9C,YAAA,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,QAAQ;AACpD,YAAA,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE;AACvC,YAAA,+BAA+B,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,OAAO;AAC7D,YAAA,+BAA+B,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,OAAO;AAC7D,YAAA,WAAW,EAAE,QAAQ,CAAC,OAAO;AAChC;AACJ;CACJ;AAGK,MAAO,aAAc,SAAQ,SAAS,CAAA;IACxC,IAAI,GAAG,UAAU;IAEjB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAb,aAAa,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,eAAe,EAAA;AACvB;;AAEG;AACH,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,YAAmB;AACvB,CAAC,EALW,eAAe,KAAf,eAAe,GAAA,EAAA,CAAA,CAAA;;ACvC3B;;;AAGG;AASG,MAAO,QAAS,SAAQ,eAAoC,CAAA;IAC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AAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACrB,iBAAA;;;AChKD;;AAEG;;;;"}
|
|
@@ -7,7 +7,7 @@ import * as i2 from '@angular/common';
|
|
|
7
7
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
8
8
|
import * as i3 from '@angular/router';
|
|
9
9
|
import { RouterModule } from '@angular/router';
|
|
10
|
-
import { nestedPosition, resolve, isNotEmpty, uuid, isEmpty, focus,
|
|
10
|
+
import { nestedPosition, resolve, isNotEmpty, uuid, isEmpty, focus, isPrintableCharacter, findSingle, addStyle, relativePosition, absolutePosition, getOuterWidth, appendChild, findLastIndex, isTouchDevice } from '@exhaustive-ui/utils';
|
|
11
11
|
import { SharedModule, OverlayService, PrimeTemplate } from '@exhaustive-ui/core/api';
|
|
12
12
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
13
13
|
import * as i1 from '@exhaustive-ui/core/bind';
|
|
@@ -67,7 +67,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
67
67
|
*
|
|
68
68
|
* TieredMenu displays submenus in nested overlays.
|
|
69
69
|
*
|
|
70
|
-
* [Live Demo](https://exhaustive-ui.
|
|
70
|
+
* [Live Demo](https://exhaustive-ui.com/menu/)
|
|
71
71
|
*
|
|
72
72
|
* @module tieredmenustyle
|
|
73
73
|
*
|
|
@@ -237,10 +237,13 @@ class TieredMenuSub extends BaseComponent {
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
+
/** Type of the pointer that last entered an item: a tap's emulated mouseenter comes after a touch pointerenter. */
|
|
241
|
+
lastPointerType;
|
|
240
242
|
onItemMouseEnter(param) {
|
|
241
243
|
if (this.autoDisplay()) {
|
|
242
244
|
const { event, processedItem } = param;
|
|
243
|
-
|
|
245
|
+
// an event re-emitted by a nested submenu already carries the pointer type of its own item
|
|
246
|
+
this.itemMouseEnter.emit({ originalEvent: event, processedItem, pointerType: param.pointerType ?? this.lastPointerType });
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
249
|
onItemClick(event, processedItem) {
|
|
@@ -313,7 +316,13 @@ class TieredMenuSub extends BaseComponent {
|
|
|
313
316
|
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
314
317
|
[pTooltipUnstyled]="unstyled()"
|
|
315
318
|
>
|
|
316
|
-
<div
|
|
319
|
+
<div
|
|
320
|
+
[class]="cx('itemContent')"
|
|
321
|
+
[pBind]="getPTOptions(processedItem, index, 'itemContent')"
|
|
322
|
+
(click)="onItemClick($event, processedItem)"
|
|
323
|
+
(pointerenter)="lastPointerType = $event.pointerType"
|
|
324
|
+
(mouseenter)="onItemMouseEnter({ $event, processedItem })"
|
|
325
|
+
>
|
|
317
326
|
@if (!itemTemplate()) {
|
|
318
327
|
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
319
328
|
<a
|
|
@@ -508,7 +517,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
508
517
|
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
509
518
|
[pTooltipUnstyled]="unstyled()"
|
|
510
519
|
>
|
|
511
|
-
<div
|
|
520
|
+
<div
|
|
521
|
+
[class]="cx('itemContent')"
|
|
522
|
+
[pBind]="getPTOptions(processedItem, index, 'itemContent')"
|
|
523
|
+
(click)="onItemClick($event, processedItem)"
|
|
524
|
+
(pointerenter)="lastPointerType = $event.pointerType"
|
|
525
|
+
(mouseenter)="onItemMouseEnter({ $event, processedItem })"
|
|
526
|
+
>
|
|
512
527
|
@if (!itemTemplate()) {
|
|
513
528
|
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
514
529
|
<a
|
|
@@ -954,20 +969,19 @@ class TieredMenu extends BaseComponent {
|
|
|
954
969
|
}
|
|
955
970
|
else {
|
|
956
971
|
const rootProcessedItem = root ? processedItem : this.activeItemPath().find((p) => p.parentKey === '');
|
|
957
|
-
|
|
972
|
+
// a popup gives the focus back to its trigger, an inline menu keeps it
|
|
973
|
+
this.hide(originalEvent, this.popup());
|
|
958
974
|
this.changeFocusedItemIndex(originalEvent, rootProcessedItem?.index ?? -1);
|
|
959
|
-
focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
975
|
+
!this.popup() && focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
960
976
|
}
|
|
961
977
|
}
|
|
962
978
|
}
|
|
963
979
|
onItemMouseEnter(event) {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
else {
|
|
970
|
-
this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay() }, 'hover');
|
|
980
|
+
// a tap fires an emulated mouseenter right before its click: opening the submenu here made that
|
|
981
|
+
// click close it again, so a touch pointer leaves it to the click. The pointer type is checked
|
|
982
|
+
// rather than the device, so a mouse on a touchscreen laptop still opens submenus on hover.
|
|
983
|
+
if (event.pointerType !== 'touch' && this.dirty()) {
|
|
984
|
+
this.onItemChange(event, 'hover');
|
|
971
985
|
}
|
|
972
986
|
}
|
|
973
987
|
onKeyDown(event) {
|