@exhaustive-ui/core 22.0.0-alpha.9 → 22.0.0-rc.2
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/exhaustive-ui-core-accordion.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +25 -14
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +12 -3
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +34 -4
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs +4 -2
- package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +35 -13
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-card.mjs +2 -6
- package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +9 -4
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +12 -11
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-config.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +65 -26
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +28 -5
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +15 -8
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +188 -95
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +31 -13
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-divider.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-divider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +2 -2
- 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 +24 -6
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +25 -14
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-floatlabel.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 +5 -5
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +18 -3
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +12 -4
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +11 -2
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +31 -7
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +85 -25
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +9 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +8 -9
- 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 +2 -2
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +17 -6
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -3
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +15 -4
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +64 -15
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +2 -4
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +7 -7
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -27
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +19 -6
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +6 -4
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +9 -11
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +43 -15
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +93 -25
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +33 -12
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +27 -8
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressbar.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-progressspinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-rating.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 +2 -2
- 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 +102 -29
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +13 -7
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-skeleton.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +18 -5
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +2 -2
- 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 +29 -8
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +535 -203
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tag.mjs +2 -2
- 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 +9 -4
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +31 -16
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +17 -5
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +11 -4
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -4
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +30 -11
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +53 -6
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +93 -21
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-usestyle.mjs +49 -0
- package/fesm2022/exhaustive-ui-core-usestyle.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 +5 -5
- package/schematics/migrate-from-primeflex/index.js +4 -2
- package/schematics/migrate-from-primeflex/schema.json +5 -0
- package/schematics/utils/package-json.js +17 -0
- package/schematics/utils/primeflex.js +45 -10
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +6 -0
- package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
- package/types/exhaustive-ui-core-badge.d.ts +1 -0
- package/types/exhaustive-ui-core-basecomponent.d.ts +16 -0
- package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
- package/types/exhaustive-ui-core-button.d.ts +12 -1
- package/types/exhaustive-ui-core-cascadeselect.d.ts +2 -1
- package/types/exhaustive-ui-core-chart.d.ts +2 -2
- package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
- package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
- package/types/exhaustive-ui-core-datepicker.d.ts +10 -2
- package/types/exhaustive-ui-core-dialog.d.ts +2 -0
- package/types/exhaustive-ui-core-drawer.d.ts +1 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
- package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
- package/types/exhaustive-ui-core-image.d.ts +6 -1
- package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
- package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
- package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
- package/types/exhaustive-ui-core-menu.d.ts +2 -0
- package/types/exhaustive-ui-core-menubar.d.ts +6 -0
- package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
- package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
- package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
- package/types/exhaustive-ui-core-paginator.d.ts +1 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +7 -0
- package/types/exhaustive-ui-core-password.d.ts +9 -1
- package/types/exhaustive-ui-core-picklist.d.ts +8 -3
- package/types/exhaustive-ui-core-popover.d.ts +3 -0
- package/types/exhaustive-ui-core-select.d.ts +13 -1
- package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
- package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
- package/types/exhaustive-ui-core-splitter.d.ts +7 -1
- package/types/exhaustive-ui-core-stepper.d.ts +3 -2
- package/types/exhaustive-ui-core-table.d.ts +34 -4
- package/types/exhaustive-ui-core-tabs.d.ts +4 -0
- package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
- package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
- package/types/exhaustive-ui-core-tree.d.ts +2 -0
- package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
- package/types/exhaustive-ui-core-treetable.d.ts +22 -2
- package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
- package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
- package/types/exhaustive-ui-core-usestyle.d.ts +17 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject,
|
|
2
|
+
import { Injectable, inject, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { SharedModule } from '@exhaustive-ui/core/api';
|
|
4
4
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
5
5
|
import * as i1 from '@exhaustive-ui/core/bind';
|
|
@@ -41,6 +41,15 @@ const style = /*css*/ `
|
|
|
41
41
|
.p-inputgroup > p-inputmask > .p-inputtext {
|
|
42
42
|
width: 100%;
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
/* A button in an addon fills the height of the group, whatever the input height of the preset */
|
|
46
|
+
.p-inputgroupaddon:has(.p-button) {
|
|
47
|
+
align-items: stretch;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.p-inputgroupaddon > p-button {
|
|
51
|
+
display: flex;
|
|
52
|
+
}
|
|
44
53
|
`;
|
|
45
54
|
const classes = {
|
|
46
55
|
root: ({ instance }) => [
|
|
@@ -87,7 +96,7 @@ class InputGroup extends BaseComponent {
|
|
|
87
96
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
88
97
|
constructor() {
|
|
89
98
|
super();
|
|
90
|
-
|
|
99
|
+
this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
|
|
91
100
|
}
|
|
92
101
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
93
102
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.1", type: InputGroup, isStandalone: true, selector: "p-inputgroup, p-inputGroup, p-input-group", host: { properties: { "class": "cx('root')" } }, providers: [InputGroupStyle, { provide: PARENT_INSTANCE, useExisting: InputGroup }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, dependencies: [{ kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-inputgroup.mjs","sources":["../../src/inputgroup/style/inputgroupstyle.ts","../../src/inputgroup/inputgroup.ts","../../src/inputgroup/exhaustive-ui-core-inputgroup.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as inputgroup_style } from '@exhaustive-ui/styles/inputgroup';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${inputgroup_style}\n\n /*For Exhaustive */\n\n .p-inputgroup > .p-component,\n .p-inputgroup > .p-inputwrapper > .p-component,\n .p-inputgroup:first-child > p-button > .p-button,\n .p-inputgroup > .p-floatlabel > .p-component,\n .p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,\n .p-inputgroup > .p-iftalabel > .p-component,\n .p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {\n border-radius: 0;\n margin: 0;\n }\n\n .p-inputgroup p-button:first-child,\n .p-inputgroup p-button:last-child {\n display: inline-flex;\n }\n\n .p-inputgroup:has(> p-button:first-child) .p-button {\n border-start-start-radius: dt('inputgroup.addon.border.radius');\n border-end-start-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup:has(> p-button:last-child) .p-button {\n border-start-end-radius: dt('inputgroup.addon.border.radius');\n border-end-end-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup > p-inputmask > .p-inputtext {\n width: 100%;\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-inputgroup',\n {\n 'p-inputgroup-fluid': instance.fluid\n }\n ]\n};\n\n@Injectable()\nexport class InputGroupStyle extends BaseStyle {\n name = 'inputgroup';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * InputGroup displays text, icon, buttons and other content can be grouped next to an input.\n *\n * [Live Demo](https://exhaustive-ui.com/inputgroup/)\n *\n * @module inputgroupstyle\n *\n */\n\nexport enum InputGroupClasses {\n /**\n * Class name of the root element\n */\n root = 'p-inputgroup'\n}\n\nexport interface InputGroupStyle extends BaseStyle {}\n","import {
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-inputgroup.mjs","sources":["../../src/inputgroup/style/inputgroupstyle.ts","../../src/inputgroup/inputgroup.ts","../../src/inputgroup/exhaustive-ui-core-inputgroup.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as inputgroup_style } from '@exhaustive-ui/styles/inputgroup';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n ${inputgroup_style}\n\n /*For Exhaustive */\n\n .p-inputgroup > .p-component,\n .p-inputgroup > .p-inputwrapper > .p-component,\n .p-inputgroup:first-child > p-button > .p-button,\n .p-inputgroup > .p-floatlabel > .p-component,\n .p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,\n .p-inputgroup > .p-iftalabel > .p-component,\n .p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {\n border-radius: 0;\n margin: 0;\n }\n\n .p-inputgroup p-button:first-child,\n .p-inputgroup p-button:last-child {\n display: inline-flex;\n }\n\n .p-inputgroup:has(> p-button:first-child) .p-button {\n border-start-start-radius: dt('inputgroup.addon.border.radius');\n border-end-start-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup:has(> p-button:last-child) .p-button {\n border-start-end-radius: dt('inputgroup.addon.border.radius');\n border-end-end-radius: dt('inputgroup.addon.border.radius');\n }\n\n .p-inputgroup > p-inputmask > .p-inputtext {\n width: 100%;\n }\n\n /* A button in an addon fills the height of the group, whatever the input height of the preset */\n .p-inputgroupaddon:has(.p-button) {\n align-items: stretch;\n }\n\n .p-inputgroupaddon > p-button {\n display: flex;\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-inputgroup',\n {\n 'p-inputgroup-fluid': instance.fluid\n }\n ]\n};\n\n@Injectable()\nexport class InputGroupStyle extends BaseStyle {\n name = 'inputgroup';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * InputGroup displays text, icon, buttons and other content can be grouped next to an input.\n *\n * [Live Demo](https://exhaustive-ui.com/inputgroup/)\n *\n * @module inputgroupstyle\n *\n */\n\nexport enum InputGroupClasses {\n /**\n * Class name of the root element\n */\n root = 'p-inputgroup'\n}\n\nexport interface InputGroupStyle extends BaseStyle {}\n","import { ChangeDetectionStrategy, Component, inject, NgModule } from '@angular/core';\nimport { SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { InputGroupPassThrough } from '@exhaustive-ui/core/types/inputgroup';\nimport { InputGroupStyle } from './style/inputgroupstyle';\n\n/**\n * InputGroup displays text, icon, buttons and other content can be grouped next to an input.\n * @group Components\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'p-inputgroup, p-inputGroup, p-input-group',\n imports: [BindModule],\n template: ` <ng-content></ng-content> `,\n providers: [InputGroupStyle, { provide: PARENT_INSTANCE, useExisting: InputGroup }],\n hostDirectives: [Bind],\n host: {\n '[class]': \"cx('root')\"\n }\n})\nexport class InputGroup extends BaseComponent<InputGroupPassThrough> {\n componentName = 'InputGroup';\n\n _componentStyle = inject(InputGroupStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n}\n\n@NgModule({\n imports: [InputGroup, SharedModule],\n exports: [InputGroup, SharedModule]\n})\nexport class InputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["inputgroup_style"],"mappings":";;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CrB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,cAAc;AACd,QAAA;YACI,oBAAoB,EAAE,QAAQ,CAAC;AAClC;AACJ;CACJ;AAGK,MAAO,eAAgB,SAAQ,SAAS,CAAA;IAC1C,IAAI,GAAG,YAAY;IAEnB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAf,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B;;AASD;;;;;;;;AAQG;IAES;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,cAAqB;AACzB,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,GAAA,EAAA,CAAA,CAAA;;ACtE7B;;;AAGG;AAYG,MAAO,UAAW,SAAQ,aAAoC,CAAA;IAChE,aAAa,GAAG,YAAY;AAE5B,IAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IAEzC,qBAAqB,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEpD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,E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CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAjBhB,UAAU,EAcG,YAAY,CAAA,EAAA,OAAA,EAAA,CAdzB,UAAU,EAeG,YAAY,CAAA,EAAA,CAAA;AAEzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,OAAA,EAAA,CAHf,UAAU,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;ACtCD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject,
|
|
2
|
+
import { Injectable, inject, input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { SharedModule } from '@exhaustive-ui/core/api';
|
|
4
4
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
5
5
|
import * as i1 from '@exhaustive-ui/core/bind';
|
|
@@ -29,7 +29,7 @@ class InputGroupAddon extends BaseComponent {
|
|
|
29
29
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
30
30
|
constructor() {
|
|
31
31
|
super();
|
|
32
|
-
|
|
32
|
+
this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Inline style of the element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-inputgroupaddon.mjs","sources":["../../src/inputgroupaddon/style/inputgroupaddonstyle.ts","../../src/inputgroupaddon/inputgroupaddon.ts","../../src/inputgroupaddon/exhaustive-ui-core-inputgroupaddon.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: 'p-inputgroupaddon'\n};\n\n@Injectable()\nexport class InputGroupAddonStyle extends BaseStyle {\n name = 'inputgroupaddon';\n\n classes = classes;\n}\n","import {
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-inputgroupaddon.mjs","sources":["../../src/inputgroupaddon/style/inputgroupaddonstyle.ts","../../src/inputgroupaddon/inputgroupaddon.ts","../../src/inputgroupaddon/exhaustive-ui-core-inputgroupaddon.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: 'p-inputgroupaddon'\n};\n\n@Injectable()\nexport class InputGroupAddonStyle extends BaseStyle {\n name = 'inputgroupaddon';\n\n classes = classes;\n}\n","import { ChangeDetectionStrategy, Component, inject, input, NgModule } from '@angular/core';\nimport { SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { InputGroupAddonPassThrough } from '@exhaustive-ui/core/types/inputgroupaddon';\nimport { InputGroupAddonStyle } from './style/inputgroupaddonstyle';\n\n/**\n * InputGroupAddon displays text, icon, buttons and other content can be grouped next to an input.\n * @group Components\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'p-inputgroup-addon, p-inputGroupAddon',\n template: ` <ng-content></ng-content> `,\n imports: [BindModule],\n host: {\n '[class]': \"cn(cx('root'), styleClass())\",\n '[style]': 'style()'\n },\n providers: [InputGroupAddonStyle, { provide: PARENT_INSTANCE, useExisting: InputGroupAddon }],\n hostDirectives: [Bind]\n})\nexport class InputGroupAddon extends BaseComponent<InputGroupAddonPassThrough> {\n componentName = 'InputGroupAddon';\n\n _componentStyle = inject(InputGroupAddonStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n\n /**\n * Inline style of the element.\n * @group Props\n */\n readonly style = input<{ [klass: string]: any } | null | undefined>();\n /**\n * Class of the element.\n * @group Props\n */\n readonly styleClass = input<string | undefined>();\n}\n\n@NgModule({\n imports: [InputGroupAddon, SharedModule],\n exports: [InputGroupAddon, SharedModule]\n})\nexport class InputGroupAddonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAGA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE;CACT;AAGK,MAAO,oBAAqB,SAAQ,SAAS,CAAA;IAC/C,IAAI,GAAG,iBAAiB;IAExB,OAAO,GAAG,OAAO;uGAHR,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAApB,oBAAoB,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;;ACAD;;;AAGG;AAaG,MAAO,eAAgB,SAAQ,aAAyC,CAAA;IAC1E,aAAa,GAAG,iBAAiB;AAEjC,IAAA,eAAe,GAAG,MAAM,CAAC,oBAAoB,CAAC;IAE9C,qBAAqB,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEpD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;QACP,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,qBAAqB,EAAE,MAAM,IAAI,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AqB,CAAA;uGAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YA5BrB,eAAe,EAyBG,YAAY,CAAA,EAAA,OAAA,EAAA,CAzB9B,eAAe,EA0BG,YAAY,CAAA,EAAA,CAAA;AAE9B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAAA,OAAA,EAAA,CAHpB,eAAe,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAE9B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;AACxC,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,YAAY;AAC1C,iBAAA;;;AClDD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, input, inject,
|
|
2
|
+
import { Injectable, input, inject, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { SharedModule } from '@exhaustive-ui/core/api';
|
|
4
4
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
5
5
|
import * as i1 from '@exhaustive-ui/core/bind';
|
|
@@ -31,7 +31,7 @@ class InputIcon extends BaseComponent {
|
|
|
31
31
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
32
32
|
constructor() {
|
|
33
33
|
super();
|
|
34
|
-
|
|
34
|
+
this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
|
|
35
35
|
}
|
|
36
36
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: InputIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
37
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: InputIcon, isStandalone: true, selector: "p-inputicon, p-inputIcon", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cx('root')" } }, providers: [InputIconStyle, { provide: PARENT_INSTANCE, useExisting: InputIcon }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-inputicon.mjs","sources":["../../src/inputicon/style/inputiconstyle.ts","../../src/inputicon/inputicon.ts","../../src/inputicon/exhaustive-ui-core-inputicon.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: 'p-inputicon'\n};\n\n@Injectable()\nexport class InputIconStyle extends BaseStyle {\n name = 'inputicon';\n\n classes = classes;\n}\n","import {
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-inputicon.mjs","sources":["../../src/inputicon/style/inputiconstyle.ts","../../src/inputicon/inputicon.ts","../../src/inputicon/exhaustive-ui-core-inputicon.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: 'p-inputicon'\n};\n\n@Injectable()\nexport class InputIconStyle extends BaseStyle {\n name = 'inputicon';\n\n classes = classes;\n}\n","import { ChangeDetectionStrategy, Component, inject, input, NgModule, ViewEncapsulation } from '@angular/core';\nimport { SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { InputIconPassThrough } from '@exhaustive-ui/core/types/inputicon';\nimport { InputIconStyle } from './style/inputiconstyle';\n\n/**\n * InputIcon displays an icon.\n * @group Components\n */\n@Component({\n selector: 'p-inputicon, p-inputIcon',\n imports: [SharedModule, BindModule],\n template: `<ng-content></ng-content>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [InputIconStyle, { provide: PARENT_INSTANCE, useExisting: InputIcon }],\n hostDirectives: [Bind],\n host: {\n '[class]': \"cx('root')\"\n }\n})\nexport class InputIcon extends BaseComponent<InputIconPassThrough> {\n componentName = 'InputIcon';\n\n readonly hostName = input<any>('');\n\n _componentStyle = inject(InputIconStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n}\n\n@NgModule({\n imports: [InputIcon, SharedModule],\n exports: [InputIcon, SharedModule]\n})\nexport class InputIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAGA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE;CACT;AAGK,MAAO,cAAe,SAAQ,SAAS,CAAA;IACzC,IAAI,GAAG,WAAW;IAElB,OAAO,GAAG,OAAO;uGAHR,cAAc,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAd,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B;;;ACAD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@@ export * from '@exhaustive-ui/core/types/inputmask';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject, input, booleanAttribute, output, computed, signal, linkedSignal, effect, afterNextRender, Directive, forwardRef, untracked,
|
|
5
|
+
import { Injectable, InjectionToken, inject, input, booleanAttribute, output, computed, signal, linkedSignal, effect, afterNextRender, Directive, forwardRef, untracked, contentChild, contentChildren, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { getUserAgent, isClient } from '@exhaustive-ui/utils';
|
|
8
8
|
import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
@@ -578,8 +578,14 @@ class InputMaskDirective extends BaseComponent {
|
|
|
578
578
|
}
|
|
579
579
|
else {
|
|
580
580
|
this.checkVal(true);
|
|
581
|
-
|
|
582
|
-
|
|
581
|
+
if (oldVal != null && this.inputElement.value === oldVal) {
|
|
582
|
+
// The mask rejected the typed character: put the caret back where it was before the input.
|
|
583
|
+
pos.begin = Math.max(pos.begin - (curVal.length - oldVal.length), 0);
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
while (pos.begin < this.len() && !this.tests()[pos.begin])
|
|
587
|
+
pos.begin++;
|
|
588
|
+
}
|
|
583
589
|
setTimeout(() => {
|
|
584
590
|
this.caret(pos.begin, pos.begin);
|
|
585
591
|
this.onUnmaskedChange.emit(this.getUnmaskedValue());
|
|
@@ -659,6 +665,10 @@ class InputMaskDirective extends BaseComponent {
|
|
|
659
665
|
lastMatch = i;
|
|
660
666
|
break;
|
|
661
667
|
}
|
|
668
|
+
if (c === this.getPlaceholder(i)) {
|
|
669
|
+
// An empty slot of an already formatted value stays empty instead of pulling the next characters into it.
|
|
670
|
+
break;
|
|
671
|
+
}
|
|
662
672
|
}
|
|
663
673
|
if (pos > test.length) {
|
|
664
674
|
this.clearBuffer(i + 1, this.len());
|
|
@@ -742,13 +752,17 @@ class InputMask extends BaseInput {
|
|
|
742
752
|
this.mask();
|
|
743
753
|
if (maskBound) {
|
|
744
754
|
untracked(() => {
|
|
755
|
+
const hadValue = this.value() != null && this.value() !== '';
|
|
745
756
|
this.writeValue('');
|
|
746
|
-
|
|
757
|
+
// Only report the cleared value when there was one: a programmatic mask change must not mark an empty control dirty.
|
|
758
|
+
if (hadValue) {
|
|
759
|
+
this.onModelChange(this.value());
|
|
760
|
+
}
|
|
747
761
|
});
|
|
748
762
|
}
|
|
749
763
|
maskBound = true;
|
|
750
764
|
});
|
|
751
|
-
|
|
765
|
+
this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
|
|
752
766
|
}
|
|
753
767
|
ptmParams = computed(() => ({ context: { filled: this.$variant() === 'filled' } }), /* @ts-ignore */
|
|
754
768
|
...(ngDevMode ? [{ debugName: "ptmParams" }] : /* istanbul ignore next */ []));
|
|
@@ -1114,8 +1128,14 @@ class InputMask extends BaseInput {
|
|
|
1114
1128
|
}
|
|
1115
1129
|
else {
|
|
1116
1130
|
this.checkVal(true);
|
|
1117
|
-
|
|
1118
|
-
|
|
1131
|
+
if (oldVal != null && this.inputViewChild()?.nativeElement.value === oldVal) {
|
|
1132
|
+
// The mask rejected the typed character: put the caret back where it was before the input.
|
|
1133
|
+
pos.begin = Math.max(pos.begin - (curVal.length - oldVal.length), 0);
|
|
1134
|
+
}
|
|
1135
|
+
else {
|
|
1136
|
+
while (pos.begin < this.len() && !this.tests()[pos.begin])
|
|
1137
|
+
pos.begin++;
|
|
1138
|
+
}
|
|
1119
1139
|
setTimeout(() => {
|
|
1120
1140
|
this.caret(pos.begin, pos.begin);
|
|
1121
1141
|
this.updateModel(e);
|
|
@@ -1277,6 +1297,10 @@ class InputMask extends BaseInput {
|
|
|
1277
1297
|
lastMatch = i;
|
|
1278
1298
|
break;
|
|
1279
1299
|
}
|
|
1300
|
+
if (c === this.getPlaceholder(i)) {
|
|
1301
|
+
// An empty slot of an already formatted value stays empty instead of pulling the next characters into it.
|
|
1302
|
+
break;
|
|
1303
|
+
}
|
|
1280
1304
|
}
|
|
1281
1305
|
if (pos > test.length) {
|
|
1282
1306
|
this.clearBuffer(i + 1, this.len());
|