@syncfusion/ej2-vue-inputs 20.3.57 → 20.4.40

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 (79) hide show
  1. package/CHANGELOG.md +8 -15
  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 +180 -3
  5. package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-inputs.es5.js +189 -3
  7. package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-inputs.min.js +2 -2
  9. package/package.json +11 -61
  10. package/rating.d.ts +4 -0
  11. package/rating.js +4 -0
  12. package/src/index.d.ts +1 -0
  13. package/src/index.js +1 -0
  14. package/src/rating/index.d.ts +1 -0
  15. package/src/rating/index.js +1 -0
  16. package/src/rating/rating.component.d.ts +39 -0
  17. package/src/rating/rating.component.js +190 -0
  18. package/src/uploader/uploader.component.js +1 -1
  19. package/styles/bootstrap-dark.css +265 -0
  20. package/styles/bootstrap-dark.scss +1 -0
  21. package/styles/bootstrap.css +265 -0
  22. package/styles/bootstrap.scss +1 -0
  23. package/styles/bootstrap4.css +268 -2
  24. package/styles/bootstrap4.scss +1 -0
  25. package/styles/bootstrap5-dark.css +266 -0
  26. package/styles/bootstrap5-dark.scss +1 -0
  27. package/styles/bootstrap5.css +266 -0
  28. package/styles/bootstrap5.scss +1 -0
  29. package/styles/color-picker/bootstrap4.css +2 -2
  30. package/styles/fabric-dark.css +265 -0
  31. package/styles/fabric-dark.scss +1 -0
  32. package/styles/fabric.css +265 -0
  33. package/styles/fabric.scss +1 -0
  34. package/styles/fluent-dark.css +265 -0
  35. package/styles/fluent-dark.scss +1 -0
  36. package/styles/fluent.css +265 -0
  37. package/styles/fluent.scss +1 -0
  38. package/styles/highcontrast-light.css +265 -0
  39. package/styles/highcontrast-light.scss +1 -0
  40. package/styles/highcontrast.css +265 -0
  41. package/styles/highcontrast.scss +1 -0
  42. package/styles/material-dark.css +265 -0
  43. package/styles/material-dark.scss +1 -0
  44. package/styles/material.css +265 -0
  45. package/styles/material.scss +1 -0
  46. package/styles/rating/bootstrap-dark.css +264 -0
  47. package/styles/rating/bootstrap-dark.scss +1 -0
  48. package/styles/rating/bootstrap.css +264 -0
  49. package/styles/rating/bootstrap.scss +1 -0
  50. package/styles/rating/bootstrap4.css +265 -0
  51. package/styles/rating/bootstrap4.scss +1 -0
  52. package/styles/rating/bootstrap5-dark.css +265 -0
  53. package/styles/rating/bootstrap5-dark.scss +1 -0
  54. package/styles/rating/bootstrap5.css +265 -0
  55. package/styles/rating/bootstrap5.scss +1 -0
  56. package/styles/rating/fabric-dark.css +264 -0
  57. package/styles/rating/fabric-dark.scss +1 -0
  58. package/styles/rating/fabric.css +264 -0
  59. package/styles/rating/fabric.scss +1 -0
  60. package/styles/rating/fluent-dark.css +264 -0
  61. package/styles/rating/fluent-dark.scss +1 -0
  62. package/styles/rating/fluent.css +264 -0
  63. package/styles/rating/fluent.scss +1 -0
  64. package/styles/rating/highcontrast-light.css +264 -0
  65. package/styles/rating/highcontrast-light.scss +1 -0
  66. package/styles/rating/highcontrast.css +264 -0
  67. package/styles/rating/highcontrast.scss +1 -0
  68. package/styles/rating/material-dark.css +265 -0
  69. package/styles/rating/material-dark.scss +1 -0
  70. package/styles/rating/material.css +265 -0
  71. package/styles/rating/material.scss +1 -0
  72. package/styles/rating/tailwind-dark.css +270 -0
  73. package/styles/rating/tailwind-dark.scss +1 -0
  74. package/styles/rating/tailwind.css +270 -0
  75. package/styles/rating/tailwind.scss +1 -0
  76. package/styles/tailwind-dark.css +271 -0
  77. package/styles/tailwind-dark.scss +1 -0
  78. package/styles/tailwind.css +271 -0
  79. package/styles/tailwind.scss +1 -0
@@ -1,4 +1,4 @@
1
- import { ColorPicker, MaskedTextBox, NumericTextBox, Signature, Slider, TextBox, Uploader } from '@syncfusion/ej2-inputs';
1
+ import { ColorPicker, MaskedTextBox, NumericTextBox, Rating, Signature, Slider, TextBox, Uploader } from '@syncfusion/ej2-inputs';
2
2
  import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
3
3
  import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
4
4
  import { Vue } from 'vue-class-component';
@@ -844,7 +844,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
844
844
  return c > 3 && r && Object.defineProperty(target, key, r), r;
845
845
  };
846
846
  // {{VueImport}}
847
- const properties$4 = ['isLazyUpdate', 'plugins', 'allowedExtensions', 'asyncSettings', 'autoUpload', 'buttons', 'cssClass', 'directoryUpload', 'dropArea', 'dropEffect', 'enablePersistence', 'enableRtl', 'enabled', 'files', 'htmlAttributes', 'locale', 'maxFileSize', 'minFileSize', 'multiple', 'sequentialUpload', 'showFileList', 'template', 'actionComplete', 'beforeRemove', 'beforeUpload', 'canceling', 'change', 'chunkFailure', 'chunkSuccess', 'chunkUploading', 'clearing', 'created', 'failure', 'fileListRendering', 'pausing', 'progress', 'removing', 'rendering', 'resuming', 'selected', 'success', 'uploading'];
847
+ const properties$4 = ['isLazyUpdate', 'plugins', 'allowedExtensions', 'asyncSettings', 'autoUpload', 'buttons', 'cssClass', 'directoryUpload', 'dropArea', 'dropEffect', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'files', 'htmlAttributes', 'locale', 'maxFileSize', 'minFileSize', 'multiple', 'sequentialUpload', 'showFileList', 'template', 'actionComplete', 'beforeRemove', 'beforeUpload', 'canceling', 'change', 'chunkFailure', 'chunkSuccess', 'chunkUploading', 'clearing', 'created', 'failure', 'fileListRendering', 'pausing', 'progress', 'removing', 'rendering', 'resuming', 'selected', 'success', 'uploading'];
848
848
  const modelProps$4 = [];
849
849
  const testProp$4 = getProps({ props: properties$4 });
850
850
  const props$4 = testProp$4[0];
@@ -1354,6 +1354,183 @@ const SignaturePlugin = {
1354
1354
  }
1355
1355
  };
1356
1356
 
1357
- export { TextBoxComponent, TextBoxPlugin, NumericTextBoxComponent, NumericTextBoxPlugin, MaskedTextBoxComponent, MaskedTextBoxPlugin, SliderComponent, SliderPlugin, FilesDirective, UploadedFilesDirective, FilesPlugin, UploadedFilesPlugin, UploaderComponent, UploaderPlugin, ColorPickerComponent, ColorPickerPlugin, SignatureComponent, SignaturePlugin };
1357
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1358
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1359
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1360
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1361
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1362
+ };
1363
+ // {{VueImport}}
1364
+ const properties$7 = ['isLazyUpdate', 'plugins', 'allowReset', 'cssClass', 'disabled', 'emptyTemplate', 'enableAnimation', 'enablePersistence', 'enableRtl', 'enableSingleSelection', 'fullTemplate', 'itemsCount', 'labelPosition', 'labelTemplate', 'locale', 'min', 'precision', 'readOnly', 'showLabel', 'showTooltip', 'tooltipTemplate', 'value', 'visible', 'beforeItemRender', 'created', 'onItemHover', 'valueChanged'];
1365
+ const modelProps$7 = ['value'];
1366
+ const testProp$7 = getProps({ props: properties$7 });
1367
+ const props$7 = testProp$7[0];
1368
+ const watch$7 = testProp$7[1];
1369
+ const emitProbs$7 = Object.keys(watch$7);
1370
+ emitProbs$7.push('modelchanged', 'update:modelValue');
1371
+ for (let props of modelProps$7) {
1372
+ emitProbs$7.push('update:' + props);
1373
+ }
1374
+ /**
1375
+ * Represents the Essential JS 2 VueJS Rating Component
1376
+ * ```html
1377
+ * <ejs-rating v-bind:value='value'></ejs-rating>
1378
+ * ```
1379
+ */
1380
+ let RatingComponent =
1381
+ /* Start Options({
1382
+ props: props,
1383
+ watch: watch,
1384
+ emits: emitProbs,
1385
+ provide: function provide() {
1386
+ return {
1387
+ custom: this.custom
1388
+ };
1389
+ }
1390
+ }) End */
1391
+ class RatingComponent extends ComponentBase {
1392
+ constructor() {
1393
+ super(arguments);
1394
+ this.propKeys = properties$7;
1395
+ this.models = modelProps$7;
1396
+ this.hasChildDirective = false;
1397
+ this.hasInjectedModules = false;
1398
+ this.tagMapper = {};
1399
+ this.tagNameMapper = {};
1400
+ this.isVue3 = !isExecute;
1401
+ this.ej2Instances = new Rating({});
1402
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
1403
+ this.ej2Instances.trigger = this.trigger;
1404
+ this.bindProperties();
1405
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1406
+ this.ej2Instances.setProperties = this.setProperties;
1407
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1408
+ this.updated = this.updated;
1409
+ }
1410
+ clearTemplate(templateNames) {
1411
+ if (!templateNames) {
1412
+ templateNames = Object.keys(this.templateCollection || {});
1413
+ }
1414
+ if (templateNames.length && this.templateCollection) {
1415
+ for (let tempName of templateNames) {
1416
+ let elementCollection = this.templateCollection[tempName];
1417
+ if (elementCollection && elementCollection.length) {
1418
+ for (let ele of elementCollection) {
1419
+ let destroy = getValue('__vue__.$destroy', ele);
1420
+ if (destroy) {
1421
+ ele.__vue__.$destroy();
1422
+ }
1423
+ if (ele.innerHTML) {
1424
+ ele.innerHTML = '';
1425
+ }
1426
+ }
1427
+ delete this.templateCollection[tempName];
1428
+ }
1429
+ }
1430
+ }
1431
+ }
1432
+ setProperties(prop, muteOnChange) {
1433
+ if (this.isVue3) {
1434
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1435
+ }
1436
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1437
+ this.ej2Instances._setProperties(prop, muteOnChange);
1438
+ }
1439
+ if (prop && this.models && this.models.length) {
1440
+ Object.keys(prop).map((key) => {
1441
+ this.models.map((model) => {
1442
+ if ((key === model) && !(/datasource/i.test(key))) {
1443
+ if (this.isVue3) {
1444
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1445
+ }
1446
+ else {
1447
+ this.$emit('update:' + key, prop[key]);
1448
+ this.$emit('modelchanged', prop[key]);
1449
+ }
1450
+ }
1451
+ });
1452
+ });
1453
+ }
1454
+ }
1455
+ trigger(eventName, eventProp, successHandler) {
1456
+ if (!isExecute) {
1457
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1458
+ }
1459
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1460
+ let key = this.models.toString().match(/checked|value/) || [];
1461
+ let propKey = key[0];
1462
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1463
+ if (!isExecute) {
1464
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1465
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1466
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1467
+ }
1468
+ else {
1469
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1470
+ this.$emit('update:' + propKey, eventProp[propKey]);
1471
+ this.$emit('modelchanged', eventProp[propKey]);
1472
+ }
1473
+ }
1474
+ }
1475
+ }
1476
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1477
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
1478
+ let propKey = key[0];
1479
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1480
+ if (!isExecute) {
1481
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1482
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1483
+ }
1484
+ else {
1485
+ this.$emit('update:' + propKey, eventProp[propKey]);
1486
+ this.$emit('modelchanged', eventProp[propKey]);
1487
+ }
1488
+ }
1489
+ }
1490
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
1491
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1492
+ }
1493
+ }
1494
+ render(createElement) {
1495
+ let h = !isExecute ? gh : createElement;
1496
+ let slots = null;
1497
+ if (!isNullOrUndefined(this.$slots.default)) {
1498
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1499
+ }
1500
+ return h('input', slots);
1501
+ }
1502
+ custom() {
1503
+ this.updated();
1504
+ }
1505
+ reset() {
1506
+ return this.ej2Instances.reset();
1507
+ }
1508
+ };
1509
+ RatingComponent = __decorate$8([
1510
+ EJComponentDecorator({
1511
+ props: properties$7,
1512
+ model: {
1513
+ event: 'modelchanged'
1514
+ }
1515
+ }, isExecute)
1516
+ /* Start Options({
1517
+ props: props,
1518
+ watch: watch,
1519
+ emits: emitProbs,
1520
+ provide: function provide() {
1521
+ return {
1522
+ custom: this.custom
1523
+ };
1524
+ }
1525
+ }) End */
1526
+ ], RatingComponent);
1527
+ const RatingPlugin = {
1528
+ name: 'ejs-rating',
1529
+ install(Vue$$1) {
1530
+ Vue$$1.component(RatingPlugin.name, RatingComponent);
1531
+ }
1532
+ };
1533
+
1534
+ export { TextBoxComponent, TextBoxPlugin, NumericTextBoxComponent, NumericTextBoxPlugin, MaskedTextBoxComponent, MaskedTextBoxPlugin, SliderComponent, SliderPlugin, FilesDirective, UploadedFilesDirective, FilesPlugin, UploadedFilesPlugin, UploaderComponent, UploaderPlugin, ColorPickerComponent, ColorPickerPlugin, SignatureComponent, SignaturePlugin, RatingComponent, RatingPlugin };
1358
1535
  export * from '@syncfusion/ej2-inputs';
1359
1536
  //# sourceMappingURL=ej2-vue-inputs.es2015.js.map