@syncfusion/ej2-vue-inputs 26.2.13 → 27.1.48

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 (138) hide show
  1. package/README.md +41 -41
  2. package/dist/ej2-vue-inputs.umd.min.js +2 -2
  3. package/dist/ej2-vue-inputs.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-inputs.es2015.js +159 -4
  5. package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-inputs.es5.js +163 -4
  7. package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
  8. package/package.json +12 -10
  9. package/smart-textarea.d.ts +4 -0
  10. package/smart-textarea.js +4 -0
  11. package/src/color-picker/colorpicker.component.js +1 -1
  12. package/src/index.d.ts +1 -0
  13. package/src/index.js +1 -0
  14. package/src/otp-input/otpinput.component.js +1 -1
  15. package/src/smart-textarea/index.d.ts +1 -0
  16. package/src/smart-textarea/index.js +1 -0
  17. package/src/smart-textarea/smarttextarea.component.d.ts +38 -0
  18. package/src/smart-textarea/smarttextarea.component.js +162 -0
  19. package/styles/bootstrap-dark-lite.css +1 -0
  20. package/styles/bootstrap-dark-lite.scss +1 -0
  21. package/styles/bootstrap-dark.scss +1 -0
  22. package/styles/bootstrap-lite.css +1 -0
  23. package/styles/bootstrap-lite.scss +1 -0
  24. package/styles/bootstrap.scss +1 -0
  25. package/styles/bootstrap4-lite.css +1 -0
  26. package/styles/bootstrap4-lite.scss +1 -0
  27. package/styles/bootstrap4.scss +1 -0
  28. package/styles/bootstrap5-dark-lite.css +1 -0
  29. package/styles/bootstrap5-dark-lite.scss +1 -0
  30. package/styles/bootstrap5-dark.scss +1 -0
  31. package/styles/bootstrap5-lite.css +1 -0
  32. package/styles/bootstrap5-lite.scss +1 -0
  33. package/styles/bootstrap5.3-lite.css +1 -0
  34. package/styles/bootstrap5.3-lite.scss +1 -0
  35. package/styles/bootstrap5.3.css +1 -0
  36. package/styles/bootstrap5.3.scss +13 -0
  37. package/styles/bootstrap5.scss +1 -0
  38. package/styles/color-picker/bootstrap5.3.css +1 -0
  39. package/styles/color-picker/bootstrap5.3.scss +1 -0
  40. package/styles/data-form/bootstrap5.3.css +1 -0
  41. package/styles/data-form/bootstrap5.3.scss +1 -0
  42. package/styles/fabric-dark-lite.css +1 -0
  43. package/styles/fabric-dark-lite.scss +1 -0
  44. package/styles/fabric-dark.scss +1 -0
  45. package/styles/fabric-lite.css +1 -0
  46. package/styles/fabric-lite.scss +1 -0
  47. package/styles/fabric.scss +1 -0
  48. package/styles/fluent-dark-lite.css +1 -0
  49. package/styles/fluent-dark-lite.scss +1 -0
  50. package/styles/fluent-dark.scss +1 -0
  51. package/styles/fluent-lite.css +1 -0
  52. package/styles/fluent-lite.scss +1 -0
  53. package/styles/fluent.scss +1 -0
  54. package/styles/fluent2-lite.css +1 -0
  55. package/styles/fluent2-lite.scss +1 -0
  56. package/styles/fluent2.scss +1 -0
  57. package/styles/highcontrast-light-lite.css +1 -0
  58. package/styles/highcontrast-light-lite.scss +1 -0
  59. package/styles/highcontrast-light.scss +1 -0
  60. package/styles/highcontrast-lite.css +1 -0
  61. package/styles/highcontrast-lite.scss +1 -0
  62. package/styles/highcontrast.scss +1 -0
  63. package/styles/input/bootstrap5.3.css +1 -0
  64. package/styles/input/bootstrap5.3.scss +1 -0
  65. package/styles/maskedtextbox/bootstrap5.3.css +1 -0
  66. package/styles/maskedtextbox/bootstrap5.3.scss +1 -0
  67. package/styles/material-dark-lite.css +1 -0
  68. package/styles/material-dark-lite.scss +1 -0
  69. package/styles/material-dark.scss +1 -0
  70. package/styles/material-lite.css +1 -0
  71. package/styles/material-lite.scss +1 -0
  72. package/styles/material.scss +1 -0
  73. package/styles/material3-dark-lite.css +1 -0
  74. package/styles/material3-dark-lite.scss +1 -0
  75. package/styles/material3-dark.scss +1 -0
  76. package/styles/material3-lite.css +1 -0
  77. package/styles/material3-lite.scss +1 -0
  78. package/styles/material3.scss +1 -0
  79. package/styles/numerictextbox/bootstrap5.3.css +1 -0
  80. package/styles/numerictextbox/bootstrap5.3.scss +1 -0
  81. package/styles/otp-input/bootstrap5.3.css +1 -0
  82. package/styles/otp-input/bootstrap5.3.scss +1 -0
  83. package/styles/rating/bootstrap5.3.css +1 -0
  84. package/styles/rating/bootstrap5.3.scss +1 -0
  85. package/styles/signature/bootstrap5.3.css +1 -0
  86. package/styles/signature/bootstrap5.3.scss +1 -0
  87. package/styles/slider/bootstrap5.3.css +1 -0
  88. package/styles/slider/bootstrap5.3.scss +1 -0
  89. package/styles/smart-textarea/bootstrap-dark.css +1 -0
  90. package/styles/smart-textarea/bootstrap-dark.scss +1 -0
  91. package/styles/smart-textarea/bootstrap.css +1 -0
  92. package/styles/smart-textarea/bootstrap.scss +1 -0
  93. package/styles/smart-textarea/bootstrap4.css +1 -0
  94. package/styles/smart-textarea/bootstrap4.scss +1 -0
  95. package/styles/smart-textarea/bootstrap5-dark.css +1 -0
  96. package/styles/smart-textarea/bootstrap5-dark.scss +1 -0
  97. package/styles/smart-textarea/bootstrap5.3.css +1 -0
  98. package/styles/smart-textarea/bootstrap5.3.scss +1 -0
  99. package/styles/smart-textarea/bootstrap5.css +1 -0
  100. package/styles/smart-textarea/bootstrap5.scss +1 -0
  101. package/styles/smart-textarea/fabric-dark.css +1 -0
  102. package/styles/smart-textarea/fabric-dark.scss +1 -0
  103. package/styles/smart-textarea/fabric.css +1 -0
  104. package/styles/smart-textarea/fabric.scss +1 -0
  105. package/styles/smart-textarea/fluent-dark.css +1 -0
  106. package/styles/smart-textarea/fluent-dark.scss +1 -0
  107. package/styles/smart-textarea/fluent.css +1 -0
  108. package/styles/smart-textarea/fluent.scss +1 -0
  109. package/styles/smart-textarea/fluent2.css +1 -0
  110. package/styles/smart-textarea/fluent2.scss +1 -0
  111. package/styles/smart-textarea/highcontrast-light.css +1 -0
  112. package/styles/smart-textarea/highcontrast-light.scss +1 -0
  113. package/styles/smart-textarea/highcontrast.css +1 -0
  114. package/styles/smart-textarea/highcontrast.scss +1 -0
  115. package/styles/smart-textarea/material-dark.css +1 -0
  116. package/styles/smart-textarea/material-dark.scss +1 -0
  117. package/styles/smart-textarea/material.css +1 -0
  118. package/styles/smart-textarea/material.scss +1 -0
  119. package/styles/smart-textarea/material3-dark.css +1 -0
  120. package/styles/smart-textarea/material3-dark.scss +2 -0
  121. package/styles/smart-textarea/material3.css +1 -0
  122. package/styles/smart-textarea/material3.scss +2 -0
  123. package/styles/smart-textarea/tailwind-dark.css +1 -0
  124. package/styles/smart-textarea/tailwind-dark.scss +1 -0
  125. package/styles/smart-textarea/tailwind.css +1 -0
  126. package/styles/smart-textarea/tailwind.scss +1 -0
  127. package/styles/tailwind-dark-lite.css +1 -0
  128. package/styles/tailwind-dark-lite.scss +1 -0
  129. package/styles/tailwind-dark.scss +1 -0
  130. package/styles/tailwind-lite.css +1 -0
  131. package/styles/tailwind-lite.scss +1 -0
  132. package/styles/tailwind.scss +1 -0
  133. package/styles/textarea/bootstrap5.3.css +1 -0
  134. package/styles/textarea/bootstrap5.3.scss +1 -0
  135. package/styles/textbox/bootstrap5.3.css +1 -0
  136. package/styles/textbox/bootstrap5.3.scss +1 -0
  137. package/styles/uploader/bootstrap5.3.css +1 -0
  138. package/styles/uploader/bootstrap5.3.scss +1 -0
@@ -1,4 +1,4 @@
1
- import { TextBox, TextArea, NumericTextBox, MaskedTextBox, Slider, Uploader, ColorPicker, Signature, Rating, OtpInput } from '@syncfusion/ej2-inputs';
1
+ import { TextBox, TextArea, NumericTextBox, MaskedTextBox, Slider, Uploader, ColorPicker, Signature, Rating, OtpInput, SmartTextArea } from '@syncfusion/ej2-inputs';
2
2
  export * from '@syncfusion/ej2-inputs';
3
3
  import { getProps, vueDefineComponent, ComponentBase, isExecute, gh } from '@syncfusion/ej2-vue-base';
4
4
  import { isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
@@ -973,7 +973,7 @@ const UploaderPlugin = {
973
973
  }
974
974
  };
975
975
 
976
- const properties$6 = ['isLazyUpdate', 'plugins', 'columns', 'createPopupOnClick', 'cssClass', 'disabled', 'enableOpacity', 'enablePersistence', 'enableRtl', 'inline', 'locale', 'mode', 'modeSwitcher', 'noColor', 'presetColors', 'showButtons', 'value', 'beforeClose', 'beforeModeSwitch', 'beforeOpen', 'beforeTileRender', 'change', 'created', 'onModeSwitch', 'open', 'select'];
976
+ const properties$6 = ['isLazyUpdate', 'plugins', 'columns', 'createPopupOnClick', 'cssClass', 'disabled', 'enableOpacity', 'enablePersistence', 'enableRtl', 'inline', 'locale', 'mode', 'modeSwitcher', 'noColor', 'presetColors', 'showButtons', 'showRecentColors', 'value', 'beforeClose', 'beforeModeSwitch', 'beforeOpen', 'beforeTileRender', 'change', 'created', 'onModeSwitch', 'open', 'select'];
977
977
  const modelProps$6 = ['value'];
978
978
  const testProp$6 = getProps({ props: properties$6 });
979
979
  const props$6 = testProp$6[0], watch$6 = testProp$6[1], emitProbs$6 = Object.keys(watch$6);
@@ -1411,7 +1411,7 @@ const RatingPlugin = {
1411
1411
  }
1412
1412
  };
1413
1413
 
1414
- const properties$9 = ['isLazyUpdate', 'plugins', 'ariaLabels', 'cssClass', 'disabled', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'length', 'locale', 'placeholder', 'separator', 'stylingMode', 'type', 'value', 'blur', 'created', 'focus', 'input', 'valueChanged'];
1414
+ const properties$9 = ['isLazyUpdate', 'plugins', 'ariaLabels', 'autoFocus', 'cssClass', 'disabled', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'length', 'locale', 'placeholder', 'separator', 'stylingMode', 'textTransform', 'type', 'value', 'blur', 'created', 'focus', 'input', 'valueChanged'];
1415
1415
  const modelProps$9 = ['value'];
1416
1416
  const testProp$9 = getProps({ props: properties$9 });
1417
1417
  const props$9 = testProp$9[0], watch$9 = testProp$9[1], emitProbs$9 = Object.keys(watch$9);
@@ -1560,5 +1560,160 @@ const OtpInputPlugin = {
1560
1560
  }
1561
1561
  };
1562
1562
 
1563
- export { ColorPickerComponent, ColorPickerPlugin, FilesDirective, FilesPlugin, MaskedTextBoxComponent, MaskedTextBoxPlugin, NumericTextBoxComponent, NumericTextBoxPlugin, OtpInputComponent, OtpInputPlugin, RatingComponent, RatingPlugin, SignatureComponent, SignaturePlugin, SliderComponent, SliderPlugin, TextAreaComponent, TextAreaPlugin, TextBoxComponent, TextBoxPlugin, UploadedFilesDirective, UploadedFilesPlugin, UploaderComponent, UploaderPlugin };
1563
+ const properties$a = ['isLazyUpdate', 'plugins', 'UserPhrases', 'aiSuggestionHandler', 'cols', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'maxLength', 'placeholder', 'readonly', 'resizeMode', 'rows', 'showClearButton', 'showSuggestionOnPopup', 'userRole', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus', 'input'];
1564
+ const modelProps$a = ['value'];
1565
+ const testProp$a = getProps({ props: properties$a });
1566
+ const props$a = testProp$a[0], watch$a = testProp$a[1], emitProbs$a = Object.keys(watch$a);
1567
+ emitProbs$a.push('modelchanged', 'update:modelValue');
1568
+ for (let props of modelProps$a) {
1569
+ emitProbs$a.push('update:' + props);
1570
+ }
1571
+ /**
1572
+ * Represents the Smart TextArea Component
1573
+ * ```html
1574
+ * <ejs-smarttextarea></ejs-smarttextarea>
1575
+ * ```
1576
+ */
1577
+ let SmartTextAreaComponent = vueDefineComponent({
1578
+ name: 'SmartTextAreaComponent',
1579
+ mixins: [ComponentBase],
1580
+ props: props$a,
1581
+ watch: watch$a,
1582
+ emits: emitProbs$a,
1583
+ model: { event: 'modelchanged' },
1584
+ provide() { return { custom: this.custom }; },
1585
+ data() {
1586
+ return {
1587
+ ej2Instances: new SmartTextArea({}),
1588
+ propKeys: properties$a,
1589
+ models: modelProps$a,
1590
+ hasChildDirective: false,
1591
+ hasInjectedModules: false,
1592
+ tagMapper: {},
1593
+ tagNameMapper: {},
1594
+ isVue3: !isExecute,
1595
+ templateCollection: {},
1596
+ };
1597
+ },
1598
+ created() {
1599
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
1600
+ this.ej2Instances.trigger = this.trigger;
1601
+ this.bindProperties();
1602
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1603
+ this.ej2Instances.setProperties = this.setProperties;
1604
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1605
+ this.updated = this.updated;
1606
+ },
1607
+ render(createElement) {
1608
+ let h = !isExecute ? gh : createElement;
1609
+ let slots = null;
1610
+ if (!isNullOrUndefined(this.$slots.default)) {
1611
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1612
+ }
1613
+ return h('textarea', slots);
1614
+ },
1615
+ methods: {
1616
+ clearTemplate(templateNames) {
1617
+ if (!templateNames) {
1618
+ templateNames = Object.keys(this.templateCollection || {});
1619
+ }
1620
+ if (templateNames.length && this.templateCollection) {
1621
+ for (let tempName of templateNames) {
1622
+ let elementCollection = this.templateCollection[tempName];
1623
+ if (elementCollection && elementCollection.length) {
1624
+ for (let ele of elementCollection) {
1625
+ this.destroyPortals(ele);
1626
+ }
1627
+ delete this.templateCollection[tempName];
1628
+ }
1629
+ }
1630
+ }
1631
+ },
1632
+ setProperties(prop, muteOnChange) {
1633
+ if (this.isVue3) {
1634
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1635
+ }
1636
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1637
+ this.ej2Instances._setProperties(prop, muteOnChange);
1638
+ }
1639
+ if (prop && this.models && this.models.length) {
1640
+ Object.keys(prop).map((key) => {
1641
+ this.models.map((model) => {
1642
+ if ((key === model) && !(/datasource/i.test(key))) {
1643
+ if (this.isVue3) {
1644
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1645
+ }
1646
+ else {
1647
+ this.$emit('update:' + key, prop[key]);
1648
+ this.$emit('modelchanged', prop[key]);
1649
+ }
1650
+ }
1651
+ });
1652
+ });
1653
+ }
1654
+ },
1655
+ trigger(eventName, eventProp, successHandler) {
1656
+ if (!isExecute) {
1657
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1658
+ }
1659
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1660
+ let key = this.models.toString().match(/checked|value/) || [];
1661
+ let propKey = key[0];
1662
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1663
+ if (!isExecute) {
1664
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1665
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1666
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1667
+ }
1668
+ else {
1669
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1670
+ this.$emit('update:' + propKey, eventProp[propKey]);
1671
+ this.$emit('modelchanged', eventProp[propKey]);
1672
+ }
1673
+ }
1674
+ }
1675
+ }
1676
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1677
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
1678
+ let propKey = key[0];
1679
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1680
+ if (!isExecute) {
1681
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1682
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1683
+ }
1684
+ else {
1685
+ this.$emit('update:' + propKey, eventProp[propKey]);
1686
+ this.$emit('modelchanged', eventProp[propKey]);
1687
+ }
1688
+ }
1689
+ }
1690
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
1691
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1692
+ }
1693
+ },
1694
+ custom() {
1695
+ this.updated();
1696
+ },
1697
+ addAttributes(attributes) {
1698
+ return this.ej2Instances.addAttributes(attributes);
1699
+ },
1700
+ focusIn() {
1701
+ return this.ej2Instances.focusIn();
1702
+ },
1703
+ focusOut() {
1704
+ return this.ej2Instances.focusOut();
1705
+ },
1706
+ removeAttributes(attributes) {
1707
+ return this.ej2Instances.removeAttributes(attributes);
1708
+ },
1709
+ }
1710
+ });
1711
+ const SmartTextAreaPlugin = {
1712
+ name: 'ejs-smarttextarea',
1713
+ install(Vue) {
1714
+ Vue.component(SmartTextAreaPlugin.name, SmartTextAreaComponent);
1715
+ }
1716
+ };
1717
+
1718
+ export { ColorPickerComponent, ColorPickerPlugin, FilesDirective, FilesPlugin, MaskedTextBoxComponent, MaskedTextBoxPlugin, NumericTextBoxComponent, NumericTextBoxPlugin, OtpInputComponent, OtpInputPlugin, RatingComponent, RatingPlugin, SignatureComponent, SignaturePlugin, SliderComponent, SliderPlugin, SmartTextAreaComponent, SmartTextAreaPlugin, TextAreaComponent, TextAreaPlugin, TextBoxComponent, TextBoxPlugin, UploadedFilesDirective, UploadedFilesPlugin, UploaderComponent, UploaderPlugin };
1564
1719
  //# sourceMappingURL=ej2-vue-inputs.es2015.js.map