@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.
- package/CHANGELOG.md +8 -15
- 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 +180 -3
- package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-inputs.es5.js +189 -3
- package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
- package/dist/global/ej2-vue-inputs.min.js +2 -2
- package/package.json +11 -61
- package/rating.d.ts +4 -0
- package/rating.js +4 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/rating/index.d.ts +1 -0
- package/src/rating/index.js +1 -0
- package/src/rating/rating.component.d.ts +39 -0
- package/src/rating/rating.component.js +190 -0
- package/src/uploader/uploader.component.js +1 -1
- package/styles/bootstrap-dark.css +265 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +265 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +268 -2
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +266 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +266 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/color-picker/bootstrap4.css +2 -2
- package/styles/fabric-dark.css +265 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +265 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +265 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +265 -0
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +265 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +265 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +265 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +265 -0
- package/styles/material.scss +1 -0
- package/styles/rating/bootstrap-dark.css +264 -0
- package/styles/rating/bootstrap-dark.scss +1 -0
- package/styles/rating/bootstrap.css +264 -0
- package/styles/rating/bootstrap.scss +1 -0
- package/styles/rating/bootstrap4.css +265 -0
- package/styles/rating/bootstrap4.scss +1 -0
- package/styles/rating/bootstrap5-dark.css +265 -0
- package/styles/rating/bootstrap5-dark.scss +1 -0
- package/styles/rating/bootstrap5.css +265 -0
- package/styles/rating/bootstrap5.scss +1 -0
- package/styles/rating/fabric-dark.css +264 -0
- package/styles/rating/fabric-dark.scss +1 -0
- package/styles/rating/fabric.css +264 -0
- package/styles/rating/fabric.scss +1 -0
- package/styles/rating/fluent-dark.css +264 -0
- package/styles/rating/fluent-dark.scss +1 -0
- package/styles/rating/fluent.css +264 -0
- package/styles/rating/fluent.scss +1 -0
- package/styles/rating/highcontrast-light.css +264 -0
- package/styles/rating/highcontrast-light.scss +1 -0
- package/styles/rating/highcontrast.css +264 -0
- package/styles/rating/highcontrast.scss +1 -0
- package/styles/rating/material-dark.css +265 -0
- package/styles/rating/material-dark.scss +1 -0
- package/styles/rating/material.css +265 -0
- package/styles/rating/material.scss +1 -0
- package/styles/rating/tailwind-dark.css +270 -0
- package/styles/rating/tailwind-dark.scss +1 -0
- package/styles/rating/tailwind.css +270 -0
- package/styles/rating/tailwind.scss +1 -0
- package/styles/tailwind-dark.css +271 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +271 -0
- 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';
|
|
@@ -905,7 +905,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
905
905
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
906
906
|
};
|
|
907
907
|
// {{VueImport}}
|
|
908
|
-
var 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'];
|
|
908
|
+
var 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'];
|
|
909
909
|
var modelProps$4 = [];
|
|
910
910
|
var testProp$4 = getProps({ props: properties$4 });
|
|
911
911
|
var props$4 = testProp$4[0];
|
|
@@ -1429,6 +1429,192 @@ var SignaturePlugin = {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
};
|
|
1431
1431
|
|
|
1432
|
-
|
|
1432
|
+
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
1433
|
+
var extendStatics = function (d, b) {
|
|
1434
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1435
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1436
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1437
|
+
return extendStatics(d, b);
|
|
1438
|
+
};
|
|
1439
|
+
return function (d, b) {
|
|
1440
|
+
extendStatics(d, b);
|
|
1441
|
+
function __() { this.constructor = d; }
|
|
1442
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1443
|
+
};
|
|
1444
|
+
})();
|
|
1445
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1446
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1447
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1448
|
+
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;
|
|
1449
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1450
|
+
};
|
|
1451
|
+
// {{VueImport}}
|
|
1452
|
+
var 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'];
|
|
1453
|
+
var modelProps$7 = ['value'];
|
|
1454
|
+
var testProp$7 = getProps({ props: properties$7 });
|
|
1455
|
+
var props$7 = testProp$7[0];
|
|
1456
|
+
var watch$7 = testProp$7[1];
|
|
1457
|
+
var emitProbs$7 = Object.keys(watch$7);
|
|
1458
|
+
emitProbs$7.push('modelchanged', 'update:modelValue');
|
|
1459
|
+
for (var _i$7 = 0, modelProps_1$7 = modelProps$7; _i$7 < modelProps_1$7.length; _i$7++) {
|
|
1460
|
+
var props_1$7 = modelProps_1$7[_i$7];
|
|
1461
|
+
emitProbs$7.push('update:' + props_1$7);
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* Represents the Essential JS 2 VueJS Rating Component
|
|
1465
|
+
* ```html
|
|
1466
|
+
* <ejs-rating v-bind:value='value'></ejs-rating>
|
|
1467
|
+
* ```
|
|
1468
|
+
*/
|
|
1469
|
+
var RatingComponent = /** @__PURE__ @class */ (function (_super) {
|
|
1470
|
+
__extends$8(RatingComponent, _super);
|
|
1471
|
+
function RatingComponent() {
|
|
1472
|
+
var _this = _super.call(this, arguments) || this;
|
|
1473
|
+
_this.propKeys = properties$7;
|
|
1474
|
+
_this.models = modelProps$7;
|
|
1475
|
+
_this.hasChildDirective = false;
|
|
1476
|
+
_this.hasInjectedModules = false;
|
|
1477
|
+
_this.tagMapper = {};
|
|
1478
|
+
_this.tagNameMapper = {};
|
|
1479
|
+
_this.isVue3 = !isExecute;
|
|
1480
|
+
_this.ej2Instances = new Rating({});
|
|
1481
|
+
_this.ej2Instances._trigger = _this.ej2Instances.trigger;
|
|
1482
|
+
_this.ej2Instances.trigger = _this.trigger;
|
|
1483
|
+
_this.bindProperties();
|
|
1484
|
+
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
|
|
1485
|
+
_this.ej2Instances.setProperties = _this.setProperties;
|
|
1486
|
+
_this.ej2Instances.clearTemplate = _this.clearTemplate;
|
|
1487
|
+
_this.updated = _this.updated;
|
|
1488
|
+
return _this;
|
|
1489
|
+
}
|
|
1490
|
+
RatingComponent.prototype.clearTemplate = function (templateNames) {
|
|
1491
|
+
if (!templateNames) {
|
|
1492
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1493
|
+
}
|
|
1494
|
+
if (templateNames.length && this.templateCollection) {
|
|
1495
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1496
|
+
var tempName = templateNames_1[_i];
|
|
1497
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1498
|
+
if (elementCollection && elementCollection.length) {
|
|
1499
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1500
|
+
var ele = elementCollection_1[_a];
|
|
1501
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1502
|
+
if (destroy) {
|
|
1503
|
+
ele.__vue__.$destroy();
|
|
1504
|
+
}
|
|
1505
|
+
if (ele.innerHTML) {
|
|
1506
|
+
ele.innerHTML = '';
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
delete this.templateCollection[tempName];
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
};
|
|
1514
|
+
RatingComponent.prototype.setProperties = function (prop, muteOnChange) {
|
|
1515
|
+
var _this = this;
|
|
1516
|
+
if (this.isVue3) {
|
|
1517
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1518
|
+
}
|
|
1519
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1520
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1521
|
+
}
|
|
1522
|
+
if (prop && this.models && this.models.length) {
|
|
1523
|
+
Object.keys(prop).map(function (key) {
|
|
1524
|
+
_this.models.map(function (model) {
|
|
1525
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1526
|
+
if (_this.isVue3) {
|
|
1527
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1528
|
+
}
|
|
1529
|
+
else {
|
|
1530
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1531
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
};
|
|
1538
|
+
RatingComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
1539
|
+
if (!isExecute) {
|
|
1540
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1541
|
+
}
|
|
1542
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1543
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
1544
|
+
var propKey = key[0];
|
|
1545
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1546
|
+
if (!isExecute) {
|
|
1547
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1548
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1549
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
1553
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1554
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
1560
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1561
|
+
var propKey = key[0];
|
|
1562
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1563
|
+
if (!isExecute) {
|
|
1564
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1565
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1566
|
+
}
|
|
1567
|
+
else {
|
|
1568
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1569
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
1574
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
RatingComponent.prototype.render = function (createElement) {
|
|
1578
|
+
var h = !isExecute ? gh : createElement;
|
|
1579
|
+
var slots = null;
|
|
1580
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1581
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1582
|
+
}
|
|
1583
|
+
return h('input', slots);
|
|
1584
|
+
};
|
|
1585
|
+
RatingComponent.prototype.custom = function () {
|
|
1586
|
+
this.updated();
|
|
1587
|
+
};
|
|
1588
|
+
RatingComponent.prototype.reset = function () {
|
|
1589
|
+
return this.ej2Instances.reset();
|
|
1590
|
+
};
|
|
1591
|
+
RatingComponent = __decorate$8([
|
|
1592
|
+
EJComponentDecorator({
|
|
1593
|
+
props: properties$7,
|
|
1594
|
+
model: {
|
|
1595
|
+
event: 'modelchanged'
|
|
1596
|
+
}
|
|
1597
|
+
}, isExecute)
|
|
1598
|
+
,Options({
|
|
1599
|
+
props: props,
|
|
1600
|
+
watch: watch,
|
|
1601
|
+
emits: emitProbs,
|
|
1602
|
+
provide: function provide() {
|
|
1603
|
+
return {
|
|
1604
|
+
custom: this.custom
|
|
1605
|
+
};
|
|
1606
|
+
}
|
|
1607
|
+
})
|
|
1608
|
+
], RatingComponent);
|
|
1609
|
+
return RatingComponent;
|
|
1610
|
+
}(ComponentBase));
|
|
1611
|
+
var RatingPlugin = {
|
|
1612
|
+
name: 'ejs-rating',
|
|
1613
|
+
install: function (Vue$$1) {
|
|
1614
|
+
Vue$$1.component(RatingPlugin.name, RatingComponent);
|
|
1615
|
+
}
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
export { TextBoxComponent, TextBoxPlugin, NumericTextBoxComponent, NumericTextBoxPlugin, MaskedTextBoxComponent, MaskedTextBoxPlugin, SliderComponent, SliderPlugin, FilesDirective, UploadedFilesDirective, FilesPlugin, UploadedFilesPlugin, UploaderComponent, UploaderPlugin, ColorPickerComponent, ColorPickerPlugin, SignatureComponent, SignaturePlugin, RatingComponent, RatingPlugin };
|
|
1433
1619
|
export * from '@syncfusion/ej2-inputs';
|
|
1434
1620
|
//# sourceMappingURL=ej2-vue-inputs.es5.js.map
|