@exhaustive-ui/core 22.0.0-alpha.10 → 22.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +5 -5
  2. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-basecomponent.mjs +6 -1
  4. package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +11 -4
  6. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-card.mjs +0 -4
  8. package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +5 -5
  10. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  12. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +11 -9
  13. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  14. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +18 -1
  15. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  16. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +6 -4
  17. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  18. package/fesm2022/exhaustive-ui-core-datepicker.mjs +42 -7
  19. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  20. package/fesm2022/exhaustive-ui-core-dialog.mjs +2 -1
  21. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  22. package/fesm2022/exhaustive-ui-core-drawer.mjs +11 -2
  23. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  24. package/fesm2022/exhaustive-ui-core-fieldset.mjs +2 -2
  25. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  26. package/fesm2022/exhaustive-ui-core-fileupload.mjs +22 -11
  27. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  28. package/fesm2022/exhaustive-ui-core-iconfield.mjs +16 -1
  29. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  30. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +9 -0
  31. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  32. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +54 -21
  33. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  34. package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -5
  35. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  36. package/fesm2022/exhaustive-ui-core-listbox.mjs +4 -2
  37. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  38. package/fesm2022/exhaustive-ui-core-megamenu.mjs +1 -0
  39. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  40. package/fesm2022/exhaustive-ui-core-menu.mjs +2 -2
  41. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  42. package/fesm2022/exhaustive-ui-core-metergroup.mjs +5 -5
  43. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  44. package/fesm2022/exhaustive-ui-core-multiselect.mjs +25 -14
  45. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  46. package/fesm2022/exhaustive-ui-core-orderlist.mjs +9 -2
  47. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  48. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +2 -2
  49. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  50. package/fesm2022/exhaustive-ui-core-paginator.mjs +4 -1
  51. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  52. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +7 -1
  53. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  54. package/fesm2022/exhaustive-ui-core-password.mjs +34 -14
  55. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  56. package/fesm2022/exhaustive-ui-core-picklist.mjs +4 -4
  57. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  58. package/fesm2022/exhaustive-ui-core-popover.mjs +26 -7
  59. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  60. package/fesm2022/exhaustive-ui-core-select.mjs +20 -14
  61. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  62. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +10 -6
  63. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  64. package/fesm2022/exhaustive-ui-core-slider.mjs +7 -3
  65. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  66. package/fesm2022/exhaustive-ui-core-splitter.mjs +5 -0
  67. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  68. package/fesm2022/exhaustive-ui-core-stepper.mjs +3 -0
  69. package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
  70. package/fesm2022/exhaustive-ui-core-table.mjs +97 -65
  71. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  72. package/fesm2022/exhaustive-ui-core-tabs.mjs +37 -7
  73. package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
  74. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +2 -1
  75. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  76. package/fesm2022/exhaustive-ui-core-toast.mjs +12 -1
  77. package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
  78. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +9 -2
  79. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  80. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +0 -2
  81. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  82. package/fesm2022/exhaustive-ui-core-tree.mjs +4 -4
  83. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  84. package/fesm2022/exhaustive-ui-core-treeselect.mjs +15 -3
  85. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  86. package/fesm2022/exhaustive-ui-core-treetable.mjs +4 -0
  87. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  88. package/package.json +5 -5
  89. package/schematics/migrate-from-primeflex/index.js +4 -2
  90. package/schematics/migrate-from-primeflex/schema.json +5 -0
  91. package/schematics/utils/package-json.js +17 -0
  92. package/schematics/utils/primeflex.js +45 -10
  93. package/schematics/utils/versions.json +8 -8
  94. package/types/exhaustive-ui-core-api.d.ts +4 -0
  95. package/types/exhaustive-ui-core-basecomponent.d.ts +1 -0
  96. package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
  97. package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
  98. package/types/exhaustive-ui-core-chart.d.ts +2 -2
  99. package/types/exhaustive-ui-core-confirmdialog.d.ts +3 -2
  100. package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
  101. package/types/exhaustive-ui-core-datepicker.d.ts +2 -1
  102. package/types/exhaustive-ui-core-drawer.d.ts +1 -0
  103. package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
  104. package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
  105. package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
  106. package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
  107. package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
  108. package/types/exhaustive-ui-core-orderlist.d.ts +6 -1
  109. package/types/exhaustive-ui-core-password.d.ts +7 -1
  110. package/types/exhaustive-ui-core-popover.d.ts +3 -0
  111. package/types/exhaustive-ui-core-select.d.ts +1 -0
  112. package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
  113. package/types/exhaustive-ui-core-splitter.d.ts +1 -0
  114. package/types/exhaustive-ui-core-stepper.d.ts +3 -2
  115. package/types/exhaustive-ui-core-table.d.ts +8 -1
  116. package/types/exhaustive-ui-core-tabs.d.ts +3 -0
  117. package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
  118. package/types/exhaustive-ui-core-treeselect.d.ts +6 -1
  119. package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
  120. package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
  121. package/types/exhaustive-ui-core-types-table.d.ts +1 -1
  122. package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
@@ -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 { afterEveryRender, 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 afterEveryRender(() => this.bindDirectiveInstance.setAttrs(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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AA,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
+ {"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 { afterEveryRender, 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 afterEveryRender(() => this.bindDirectiveInstance.setAttrs(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,G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AA,EAAA,EAAA,MAAA,EAAA,EAAA,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;;;;"}
@@ -413,6 +413,10 @@ class InputNumber extends BaseInput {
413
413
  ...(ngDevMode ? [{ debugName: "timer" }] : /* istanbul ignore next */ []));
414
414
  lastValue = signal(undefined, /* @ts-ignore */
415
415
  ...(ngDevMode ? [{ debugName: "lastValue" }] : /* istanbul ignore next */ []));
416
+ blurChangePending = signal(false, /* @ts-ignore */
417
+ ...(ngDevMode ? [{ debugName: "blurChangePending" }] : /* istanbul ignore next */ []));
418
+ pasted = signal(null, /* @ts-ignore */
419
+ ...(ngDevMode ? [{ debugName: "pasted" }] : /* istanbul ignore next */ []));
416
420
  _numeral = computed(() => {
417
421
  const numerals = [...new Intl.NumberFormat(this.locale(), { useGrouping: false }).format(9876543210)].reverse();
418
422
  return new RegExp(`[${numerals.join('')}]`, 'g');
@@ -573,7 +577,16 @@ class InputNumber extends BaseInput {
573
577
  spin(event, dir) {
574
578
  let step = (this.step() ?? 1) * dir;
575
579
  let currentValue = this.parseValue(this.input().nativeElement.value) || 0;
576
- let newValue = this.validateValue(currentValue + step);
580
+ let sum = currentValue + step;
581
+ if (typeof sum === 'number') {
582
+ // round the sum to the decimals of its operands: 0.2 + 0.1 must give 0.3, not 0.30000000000000004
583
+ const decimalsOf = (operand) => {
584
+ const [mantissa, exponent] = String(operand).split('e-');
585
+ return (mantissa.split('.')[1]?.length ?? 0) + (exponent ? +exponent : 0);
586
+ };
587
+ sum = +sum.toFixed(Math.min(Math.max(decimalsOf(currentValue), decimalsOf(step)), 100));
588
+ }
589
+ let newValue = this.validateValue(sum);
577
590
  const max = this.maxlength();
578
591
  if (max && max < this.formatValue(newValue).length) {
579
592
  return;
@@ -655,7 +668,10 @@ class InputNumber extends BaseInput {
655
668
  }
656
669
  const target = event.target;
657
670
  const { inputType, data } = event;
658
- if (this.isSpecialChar()) {
671
+ if (inputType === 'insertFromPaste' && this.pasted()) {
672
+ this.insertPasted(event, target);
673
+ }
674
+ else if (this.isSpecialChar()) {
659
675
  target.value = this.lastValue();
660
676
  }
661
677
  else if (inputType === 'insertText' && data && this.lastValue() != null) {
@@ -866,19 +882,28 @@ class InputNumber extends BaseInput {
866
882
  }
867
883
  onPaste(event) {
868
884
  if (!this.$disabled() && !this.readonly()) {
869
- event.preventDefault();
870
- let data = (event.clipboardData || this.document.defaultView['clipboardData']).getData('Text');
871
- if (this.inputId() === 'integeronly' && /[^\d-]/.test(data)) {
872
- return;
885
+ // Let the native paste land (cancelling it flags the input as paste-preventing) and sanitize it in onUserInput
886
+ const { value, selectionStart, selectionEnd } = event.target;
887
+ const data = (event.clipboardData || this.document.defaultView['clipboardData']).getData('Text');
888
+ this.pasted.set({ value, selectionStart, selectionEnd, data });
889
+ }
890
+ }
891
+ insertPasted(event, target) {
892
+ const { value, selectionStart, selectionEnd } = this.pasted();
893
+ let data = this.pasted().data;
894
+ this.pasted.set(null);
895
+ target.value = value;
896
+ target.setSelectionRange(selectionStart ?? value.length, selectionEnd ?? value.length);
897
+ if (this.inputId() === 'integeronly' && /[^\d-]/.test(data)) {
898
+ return;
899
+ }
900
+ if (data) {
901
+ if (this.maxlength()) {
902
+ data = data.toString().substring(0, this.maxlength());
873
903
  }
874
- if (data) {
875
- if (this.maxlength()) {
876
- data = data.toString().substring(0, this.maxlength());
877
- }
878
- let filteredData = this.parseValue(data);
879
- if (filteredData != null) {
880
- this.insert(event, filteredData.toString());
881
- }
904
+ let filteredData = this.parseValue(data);
905
+ if (filteredData != null) {
906
+ this.insert(event, filteredData.toString());
882
907
  }
883
908
  }
884
909
  }
@@ -956,8 +981,9 @@ class InputNumber extends BaseInput {
956
981
  this.updateValue(event, newValueStr, text, 'insert');
957
982
  }
958
983
  else if (decimalCharIndex === -1 && this.maxFractionDigits()) {
959
- newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
960
- this.updateValue(event, newValueStr, text, 'insert');
984
+ // a decimal separator typed in an empty input starts the fraction of 0
985
+ newValueStr = inputValue ? this.insertText(inputValue, text, selectionStart, selectionEnd) : '0' + text;
986
+ this.updateValue(event, newValueStr, inputValue ? text : newValueStr, 'insert');
961
987
  }
962
988
  }
963
989
  else {
@@ -1085,6 +1111,11 @@ class InputNumber extends BaseInput {
1085
1111
  if (valueStr != null) {
1086
1112
  newValue = this.parseValue(valueStr);
1087
1113
  newValue = !newValue && !this.allowEmpty() ? 0 : newValue;
1114
+ // maxlength counts the characters of the formatted value, as the spin buttons do: reject an insertion beyond it
1115
+ const maxlength = this.maxlength();
1116
+ if (maxlength && currentValue && (operation === 'insert' || operation === 'range-insert') && this.formatValue(newValue).length > maxlength) {
1117
+ return;
1118
+ }
1088
1119
  this.updateInput(newValue, insertedValueStr, operation, valueStr);
1089
1120
  this.handleOnInput(event, currentValue, newValue);
1090
1121
  }
@@ -1259,10 +1290,16 @@ class InputNumber extends BaseInput {
1259
1290
  if (this.value() !== value) {
1260
1291
  this.value.set(value);
1261
1292
  if (!(isBlurUpdateOnMode && this.focused())) {
1293
+ this.blurChangePending.set(false);
1262
1294
  this.onModelChange(value);
1263
1295
  }
1296
+ else {
1297
+ this.blurChangePending.set(true);
1298
+ }
1264
1299
  }
1265
- else if (isBlurUpdateOnMode) {
1300
+ else if (isBlurUpdateOnMode && !this.focused() && this.blurChangePending()) {
1301
+ // report the change deferred while focused, but not a blur without an edit (it would mark the control dirty)
1302
+ this.blurChangePending.set(false);
1266
1303
  this.onModelChange(value);
1267
1304
  }
1268
1305
  }
@@ -1320,8 +1357,6 @@ class InputNumber extends BaseInput {
1320
1357
  [attr.minlength]="minlength()"
1321
1358
  [attr.tabindex]="tabindex()"
1322
1359
  [attr.aria-required]="ariaRequired()"
1323
- [attr.min]="min()"
1324
- [attr.max]="max()"
1325
1360
  [attr.step]="step() ?? 1"
1326
1361
  [attr.required]="required() ? '' : undefined"
1327
1362
  [attr.readonly]="readonly() ? '' : undefined"
@@ -1488,8 +1523,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1488
1523
  [attr.minlength]="minlength()"
1489
1524
  [attr.tabindex]="tabindex()"
1490
1525
  [attr.aria-required]="ariaRequired()"
1491
- [attr.min]="min()"
1492
- [attr.max]="max()"
1493
1526
  [attr.step]="step() ?? 1"
1494
1527
  [attr.required]="required() ? '' : undefined"
1495
1528
  [attr.readonly]="readonly() ? '' : undefined"