@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.
- package/README.md +41 -41
- package/dist/ej2-vue-inputs.umd.min.js +2 -2
- package/dist/ej2-vue-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-inputs.es2015.js +159 -4
- package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-inputs.es5.js +163 -4
- package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
- package/package.json +12 -10
- package/smart-textarea.d.ts +4 -0
- package/smart-textarea.js +4 -0
- package/src/color-picker/colorpicker.component.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/otp-input/otpinput.component.js +1 -1
- package/src/smart-textarea/index.d.ts +1 -0
- package/src/smart-textarea/index.js +1 -0
- package/src/smart-textarea/smarttextarea.component.d.ts +38 -0
- package/src/smart-textarea/smarttextarea.component.js +162 -0
- package/styles/bootstrap-dark-lite.css +1 -0
- package/styles/bootstrap-dark-lite.scss +1 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap-lite.css +1 -0
- package/styles/bootstrap-lite.scss +1 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4-lite.css +1 -0
- package/styles/bootstrap4-lite.scss +1 -0
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark-lite.css +1 -0
- package/styles/bootstrap5-dark-lite.scss +1 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5-lite.css +1 -0
- package/styles/bootstrap5-lite.scss +1 -0
- package/styles/bootstrap5.3-lite.css +1 -0
- package/styles/bootstrap5.3-lite.scss +1 -0
- package/styles/bootstrap5.3.css +1 -0
- package/styles/bootstrap5.3.scss +13 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/color-picker/bootstrap5.3.css +1 -0
- package/styles/color-picker/bootstrap5.3.scss +1 -0
- package/styles/data-form/bootstrap5.3.css +1 -0
- package/styles/data-form/bootstrap5.3.scss +1 -0
- package/styles/fabric-dark-lite.css +1 -0
- package/styles/fabric-dark-lite.scss +1 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric-lite.css +1 -0
- package/styles/fabric-lite.scss +1 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark-lite.css +1 -0
- package/styles/fluent-dark-lite.scss +1 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent-lite.css +1 -0
- package/styles/fluent-lite.scss +1 -0
- package/styles/fluent.scss +1 -0
- package/styles/fluent2-lite.css +1 -0
- package/styles/fluent2-lite.scss +1 -0
- package/styles/fluent2.scss +1 -0
- package/styles/highcontrast-light-lite.css +1 -0
- package/styles/highcontrast-light-lite.scss +1 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast-lite.css +1 -0
- package/styles/highcontrast-lite.scss +1 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/input/bootstrap5.3.css +1 -0
- package/styles/input/bootstrap5.3.scss +1 -0
- package/styles/maskedtextbox/bootstrap5.3.css +1 -0
- package/styles/maskedtextbox/bootstrap5.3.scss +1 -0
- package/styles/material-dark-lite.css +1 -0
- package/styles/material-dark-lite.scss +1 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material-lite.css +1 -0
- package/styles/material-lite.scss +1 -0
- package/styles/material.scss +1 -0
- package/styles/material3-dark-lite.css +1 -0
- package/styles/material3-dark-lite.scss +1 -0
- package/styles/material3-dark.scss +1 -0
- package/styles/material3-lite.css +1 -0
- package/styles/material3-lite.scss +1 -0
- package/styles/material3.scss +1 -0
- package/styles/numerictextbox/bootstrap5.3.css +1 -0
- package/styles/numerictextbox/bootstrap5.3.scss +1 -0
- package/styles/otp-input/bootstrap5.3.css +1 -0
- package/styles/otp-input/bootstrap5.3.scss +1 -0
- package/styles/rating/bootstrap5.3.css +1 -0
- package/styles/rating/bootstrap5.3.scss +1 -0
- package/styles/signature/bootstrap5.3.css +1 -0
- package/styles/signature/bootstrap5.3.scss +1 -0
- package/styles/slider/bootstrap5.3.css +1 -0
- package/styles/slider/bootstrap5.3.scss +1 -0
- package/styles/smart-textarea/bootstrap-dark.css +1 -0
- package/styles/smart-textarea/bootstrap-dark.scss +1 -0
- package/styles/smart-textarea/bootstrap.css +1 -0
- package/styles/smart-textarea/bootstrap.scss +1 -0
- package/styles/smart-textarea/bootstrap4.css +1 -0
- package/styles/smart-textarea/bootstrap4.scss +1 -0
- package/styles/smart-textarea/bootstrap5-dark.css +1 -0
- package/styles/smart-textarea/bootstrap5-dark.scss +1 -0
- package/styles/smart-textarea/bootstrap5.3.css +1 -0
- package/styles/smart-textarea/bootstrap5.3.scss +1 -0
- package/styles/smart-textarea/bootstrap5.css +1 -0
- package/styles/smart-textarea/bootstrap5.scss +1 -0
- package/styles/smart-textarea/fabric-dark.css +1 -0
- package/styles/smart-textarea/fabric-dark.scss +1 -0
- package/styles/smart-textarea/fabric.css +1 -0
- package/styles/smart-textarea/fabric.scss +1 -0
- package/styles/smart-textarea/fluent-dark.css +1 -0
- package/styles/smart-textarea/fluent-dark.scss +1 -0
- package/styles/smart-textarea/fluent.css +1 -0
- package/styles/smart-textarea/fluent.scss +1 -0
- package/styles/smart-textarea/fluent2.css +1 -0
- package/styles/smart-textarea/fluent2.scss +1 -0
- package/styles/smart-textarea/highcontrast-light.css +1 -0
- package/styles/smart-textarea/highcontrast-light.scss +1 -0
- package/styles/smart-textarea/highcontrast.css +1 -0
- package/styles/smart-textarea/highcontrast.scss +1 -0
- package/styles/smart-textarea/material-dark.css +1 -0
- package/styles/smart-textarea/material-dark.scss +1 -0
- package/styles/smart-textarea/material.css +1 -0
- package/styles/smart-textarea/material.scss +1 -0
- package/styles/smart-textarea/material3-dark.css +1 -0
- package/styles/smart-textarea/material3-dark.scss +2 -0
- package/styles/smart-textarea/material3.css +1 -0
- package/styles/smart-textarea/material3.scss +2 -0
- package/styles/smart-textarea/tailwind-dark.css +1 -0
- package/styles/smart-textarea/tailwind-dark.scss +1 -0
- package/styles/smart-textarea/tailwind.css +1 -0
- package/styles/smart-textarea/tailwind.scss +1 -0
- package/styles/tailwind-dark-lite.css +1 -0
- package/styles/tailwind-dark-lite.scss +1 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind-lite.css +1 -0
- package/styles/tailwind-lite.scss +1 -0
- package/styles/tailwind.scss +1 -0
- package/styles/textarea/bootstrap5.3.css +1 -0
- package/styles/textarea/bootstrap5.3.scss +1 -0
- package/styles/textbox/bootstrap5.3.css +1 -0
- package/styles/textbox/bootstrap5.3.scss +1 -0
- package/styles/uploader/bootstrap5.3.css +1 -0
- 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';
|
|
@@ -997,7 +997,7 @@ var UploaderPlugin = {
|
|
|
997
997
|
}
|
|
998
998
|
};
|
|
999
999
|
|
|
1000
|
-
var 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'];
|
|
1000
|
+
var 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'];
|
|
1001
1001
|
var modelProps$6 = ['value'];
|
|
1002
1002
|
var testProp$6 = getProps({ props: properties$6 });
|
|
1003
1003
|
var props$6 = testProp$6[0], watch$6 = testProp$6[1], emitProbs$6 = Object.keys(watch$6);
|
|
@@ -1447,7 +1447,7 @@ var RatingPlugin = {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
};
|
|
1449
1449
|
|
|
1450
|
-
var properties$9 = ['isLazyUpdate', 'plugins', 'ariaLabels', 'cssClass', 'disabled', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'length', 'locale', 'placeholder', 'separator', 'stylingMode', 'type', 'value', 'blur', 'created', 'focus', 'input', 'valueChanged'];
|
|
1450
|
+
var properties$9 = ['isLazyUpdate', 'plugins', 'ariaLabels', 'autoFocus', 'cssClass', 'disabled', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'length', 'locale', 'placeholder', 'separator', 'stylingMode', 'textTransform', 'type', 'value', 'blur', 'created', 'focus', 'input', 'valueChanged'];
|
|
1451
1451
|
var modelProps$9 = ['value'];
|
|
1452
1452
|
var testProp$9 = getProps({ props: properties$9 });
|
|
1453
1453
|
var props$9 = testProp$9[0], watch$9 = testProp$9[1], emitProbs$9 = Object.keys(watch$9);
|
|
@@ -1600,5 +1600,164 @@ var OtpInputPlugin = {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
};
|
|
1602
1602
|
|
|
1603
|
-
|
|
1603
|
+
var 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'];
|
|
1604
|
+
var modelProps$a = ['value'];
|
|
1605
|
+
var testProp$a = getProps({ props: properties$a });
|
|
1606
|
+
var props$a = testProp$a[0], watch$a = testProp$a[1], emitProbs$a = Object.keys(watch$a);
|
|
1607
|
+
emitProbs$a.push('modelchanged', 'update:modelValue');
|
|
1608
|
+
for (var _i$a = 0, modelProps_1$a = modelProps$a; _i$a < modelProps_1$a.length; _i$a++) {
|
|
1609
|
+
var props_1$a = modelProps_1$a[_i$a];
|
|
1610
|
+
emitProbs$a.push('update:' + props_1$a);
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* Represents the Smart TextArea Component
|
|
1614
|
+
* ```html
|
|
1615
|
+
* <ejs-smarttextarea></ejs-smarttextarea>
|
|
1616
|
+
* ```
|
|
1617
|
+
*/
|
|
1618
|
+
var SmartTextAreaComponent = vueDefineComponent({
|
|
1619
|
+
name: 'SmartTextAreaComponent',
|
|
1620
|
+
mixins: [ComponentBase],
|
|
1621
|
+
props: props$a,
|
|
1622
|
+
watch: watch$a,
|
|
1623
|
+
emits: emitProbs$a,
|
|
1624
|
+
model: { event: 'modelchanged' },
|
|
1625
|
+
provide: function () { return { custom: this.custom }; },
|
|
1626
|
+
data: function () {
|
|
1627
|
+
return {
|
|
1628
|
+
ej2Instances: new SmartTextArea({}),
|
|
1629
|
+
propKeys: properties$a,
|
|
1630
|
+
models: modelProps$a,
|
|
1631
|
+
hasChildDirective: false,
|
|
1632
|
+
hasInjectedModules: false,
|
|
1633
|
+
tagMapper: {},
|
|
1634
|
+
tagNameMapper: {},
|
|
1635
|
+
isVue3: !isExecute,
|
|
1636
|
+
templateCollection: {},
|
|
1637
|
+
};
|
|
1638
|
+
},
|
|
1639
|
+
created: function () {
|
|
1640
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
1641
|
+
this.ej2Instances.trigger = this.trigger;
|
|
1642
|
+
this.bindProperties();
|
|
1643
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1644
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1645
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1646
|
+
this.updated = this.updated;
|
|
1647
|
+
},
|
|
1648
|
+
render: function (createElement) {
|
|
1649
|
+
var h = !isExecute ? gh : createElement;
|
|
1650
|
+
var slots = null;
|
|
1651
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1652
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1653
|
+
}
|
|
1654
|
+
return h('textarea', slots);
|
|
1655
|
+
},
|
|
1656
|
+
methods: {
|
|
1657
|
+
clearTemplate: function (templateNames) {
|
|
1658
|
+
if (!templateNames) {
|
|
1659
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1660
|
+
}
|
|
1661
|
+
if (templateNames.length && this.templateCollection) {
|
|
1662
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1663
|
+
var tempName = templateNames_1[_i];
|
|
1664
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1665
|
+
if (elementCollection && elementCollection.length) {
|
|
1666
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1667
|
+
var ele = elementCollection_1[_a];
|
|
1668
|
+
this.destroyPortals(ele);
|
|
1669
|
+
}
|
|
1670
|
+
delete this.templateCollection[tempName];
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
setProperties: function (prop, muteOnChange) {
|
|
1676
|
+
var _this = this;
|
|
1677
|
+
if (this.isVue3) {
|
|
1678
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1679
|
+
}
|
|
1680
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1681
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1682
|
+
}
|
|
1683
|
+
if (prop && this.models && this.models.length) {
|
|
1684
|
+
Object.keys(prop).map(function (key) {
|
|
1685
|
+
_this.models.map(function (model) {
|
|
1686
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1687
|
+
if (_this.isVue3) {
|
|
1688
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1689
|
+
}
|
|
1690
|
+
else {
|
|
1691
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1692
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
});
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
1700
|
+
if (!isExecute) {
|
|
1701
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1702
|
+
}
|
|
1703
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1704
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
1705
|
+
var propKey = key[0];
|
|
1706
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1707
|
+
if (!isExecute) {
|
|
1708
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1709
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1710
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
1711
|
+
}
|
|
1712
|
+
else {
|
|
1713
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
1714
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1715
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
1721
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1722
|
+
var propKey = key[0];
|
|
1723
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1724
|
+
if (!isExecute) {
|
|
1725
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1726
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1727
|
+
}
|
|
1728
|
+
else {
|
|
1729
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1730
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
1735
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
custom: function () {
|
|
1739
|
+
this.updated();
|
|
1740
|
+
},
|
|
1741
|
+
addAttributes: function (attributes) {
|
|
1742
|
+
return this.ej2Instances.addAttributes(attributes);
|
|
1743
|
+
},
|
|
1744
|
+
focusIn: function () {
|
|
1745
|
+
return this.ej2Instances.focusIn();
|
|
1746
|
+
},
|
|
1747
|
+
focusOut: function () {
|
|
1748
|
+
return this.ej2Instances.focusOut();
|
|
1749
|
+
},
|
|
1750
|
+
removeAttributes: function (attributes) {
|
|
1751
|
+
return this.ej2Instances.removeAttributes(attributes);
|
|
1752
|
+
},
|
|
1753
|
+
}
|
|
1754
|
+
});
|
|
1755
|
+
var SmartTextAreaPlugin = {
|
|
1756
|
+
name: 'ejs-smarttextarea',
|
|
1757
|
+
install: function (Vue) {
|
|
1758
|
+
Vue.component(SmartTextAreaPlugin.name, SmartTextAreaComponent);
|
|
1759
|
+
}
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
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 };
|
|
1604
1763
|
//# sourceMappingURL=ej2-vue-inputs.es5.js.map
|