Skip to content

Commit c3c0250

Browse files
author
pipeline
committed
v19.3.43 is released
1 parent edea554 commit c3c0250

File tree

1,595 files changed

+1675
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,595 files changed

+1675
-580
lines changed

components/barcodegenerator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-vue-barcode-generator",
3-
"version": "19.1.63",
3+
"version": "19.1.66",
44
"description": "Barcode generator component is a pure JavaScript library which will convert a string to Barcode and show it to the user. This supports major 1D and 2D barcodes including coda bar, code 128, QR Code. for Vue",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/barcodegenerator/src/barcode-generator/barcodegenerator.component.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Options } from 'vue-class-component';
22
import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base';
3-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
3+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
44

55
import { BarcodeGenerator } from '@syncfusion/ej2-barcode-generator';
66

@@ -49,15 +49,42 @@ export class BarcodeGeneratorComponent extends ComponentBase {
4949
public tagMapper: { [key: string]: Object } = {};
5050
public tagNameMapper: Object = {};
5151
public isVue3: boolean;
52-
52+
public templateCollection: any;
5353
constructor() {
5454
super(arguments);
5555
this.isVue3 = !isExecute;
5656
this.ej2Instances = new BarcodeGenerator({});
5757
this.bindProperties();
5858
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
5959
this.ej2Instances.setProperties = this.setProperties;
60+
this.ej2Instances.clearTemplate = this.clearTemplate;
61+
}
62+
63+
public clearTemplate(templateNames?: string[]): any {
64+
if (!templateNames){
65+
templateNames = Object.keys(this.templateCollection || {});
66+
}
67+
if (templateNames.length && this.templateCollection) {
68+
for (let tempName of templateNames){
69+
let elementCollection: any = this.templateCollection[tempName];
70+
if(elementCollection && elementCollection.length) {
71+
for(let ele of elementCollection) {
72+
let destroy: any = getValue('__vue__.$destroy', ele);
73+
if (destroy) {
74+
ele.__vue__.$destroy();
75+
}
76+
if (ele.innerHTML){
77+
ele.innerHTML = '';
78+
}
79+
}
80+
delete this.templateCollection[tempName];
81+
}
6082
}
83+
}
84+
}
85+
86+
87+
6188
public setProperties(prop: any, muteOnChange: boolean): void {
6289
if(this.isVue3) {
6390
this.models = !this.models ? this.ej2Instances.referModels : this.models;
@@ -73,6 +100,7 @@ export class BarcodeGeneratorComponent extends ComponentBase {
73100
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
74101
} else {
75102
(this as any).$emit('update:' + key, prop[key]);
103+
(this as any).$emit('modelchanged', prop[key]);
76104
}
77105
}
78106
});

components/barcodegenerator/src/datamatrix-generator/datamatrixgenerator.component.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Options } from 'vue-class-component';
22
import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base';
3-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
3+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
44

55
import { DataMatrixGenerator } from '@syncfusion/ej2-barcode-generator';
66

@@ -49,15 +49,42 @@ export class DataMatrixGeneratorComponent extends ComponentBase {
4949
public tagMapper: { [key: string]: Object } = {};
5050
public tagNameMapper: Object = {};
5151
public isVue3: boolean;
52-
52+
public templateCollection: any;
5353
constructor() {
5454
super(arguments);
5555
this.isVue3 = !isExecute;
5656
this.ej2Instances = new DataMatrixGenerator({});
5757
this.bindProperties();
5858
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
5959
this.ej2Instances.setProperties = this.setProperties;
60+
this.ej2Instances.clearTemplate = this.clearTemplate;
61+
}
62+
63+
public clearTemplate(templateNames?: string[]): any {
64+
if (!templateNames){
65+
templateNames = Object.keys(this.templateCollection || {});
66+
}
67+
if (templateNames.length && this.templateCollection) {
68+
for (let tempName of templateNames){
69+
let elementCollection: any = this.templateCollection[tempName];
70+
if(elementCollection && elementCollection.length) {
71+
for(let ele of elementCollection) {
72+
let destroy: any = getValue('__vue__.$destroy', ele);
73+
if (destroy) {
74+
ele.__vue__.$destroy();
75+
}
76+
if (ele.innerHTML){
77+
ele.innerHTML = '';
78+
}
79+
}
80+
delete this.templateCollection[tempName];
81+
}
6082
}
83+
}
84+
}
85+
86+
87+
6188
public setProperties(prop: any, muteOnChange: boolean): void {
6289
if(this.isVue3) {
6390
this.models = !this.models ? this.ej2Instances.referModels : this.models;
@@ -73,6 +100,7 @@ export class DataMatrixGeneratorComponent extends ComponentBase {
73100
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
74101
} else {
75102
(this as any).$emit('update:' + key, prop[key]);
103+
(this as any).$emit('modelchanged', prop[key]);
76104
}
77105
}
78106
});

components/barcodegenerator/src/qrcode-generator/qrcodegenerator.component.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Options } from 'vue-class-component';
22
import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base';
3-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
3+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
44

55
import { QRCodeGenerator } from '@syncfusion/ej2-barcode-generator';
66

@@ -49,15 +49,42 @@ export class QRCodeGeneratorComponent extends ComponentBase {
4949
public tagMapper: { [key: string]: Object } = {};
5050
public tagNameMapper: Object = {};
5151
public isVue3: boolean;
52-
52+
public templateCollection: any;
5353
constructor() {
5454
super(arguments);
5555
this.isVue3 = !isExecute;
5656
this.ej2Instances = new QRCodeGenerator({});
5757
this.bindProperties();
5858
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
5959
this.ej2Instances.setProperties = this.setProperties;
60+
this.ej2Instances.clearTemplate = this.clearTemplate;
61+
}
62+
63+
public clearTemplate(templateNames?: string[]): any {
64+
if (!templateNames){
65+
templateNames = Object.keys(this.templateCollection || {});
66+
}
67+
if (templateNames.length && this.templateCollection) {
68+
for (let tempName of templateNames){
69+
let elementCollection: any = this.templateCollection[tempName];
70+
if(elementCollection && elementCollection.length) {
71+
for(let ele of elementCollection) {
72+
let destroy: any = getValue('__vue__.$destroy', ele);
73+
if (destroy) {
74+
ele.__vue__.$destroy();
75+
}
76+
if (ele.innerHTML){
77+
ele.innerHTML = '';
78+
}
79+
}
80+
delete this.templateCollection[tempName];
81+
}
6082
}
83+
}
84+
}
85+
86+
87+
6188
public setProperties(prop: any, muteOnChange: boolean): void {
6289
if(this.isVue3) {
6390
this.models = !this.models ? this.ej2Instances.referModels : this.models;
@@ -73,6 +100,7 @@ export class QRCodeGeneratorComponent extends ComponentBase {
73100
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
74101
} else {
75102
(this as any).$emit('update:' + key, prop[key]);
103+
(this as any).$emit('modelchanged', prop[key]);
76104
}
77105
}
78106
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-barcode-generator/styles/barcode/bootstrap5-dark.scss';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-barcode-generator/styles/barcode/bootstrap5.scss';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'barcode/bootstrap5-dark.scss';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'barcode/bootstrap5.scss';
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

components/buttons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-vue-buttons",
3-
"version": "19.2.55",
3+
"version": "18.24.0",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for Vue",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

components/buttons/src/button/button.component.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Options } from 'vue-class-component';
22
import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base';
3-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
3+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
44

55
import { Button } from '@syncfusion/ej2-buttons';
66

@@ -49,15 +49,42 @@ export class ButtonComponent extends ComponentBase {
4949
public tagMapper: { [key: string]: Object } = {};
5050
public tagNameMapper: Object = {};
5151
public isVue3: boolean;
52-
52+
public templateCollection: any;
5353
constructor() {
5454
super(arguments);
5555
this.isVue3 = !isExecute;
5656
this.ej2Instances = new Button({});
5757
this.bindProperties();
5858
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
5959
this.ej2Instances.setProperties = this.setProperties;
60+
this.ej2Instances.clearTemplate = this.clearTemplate;
61+
}
62+
63+
public clearTemplate(templateNames?: string[]): any {
64+
if (!templateNames){
65+
templateNames = Object.keys(this.templateCollection || {});
66+
}
67+
if (templateNames.length && this.templateCollection) {
68+
for (let tempName of templateNames){
69+
let elementCollection: any = this.templateCollection[tempName];
70+
if(elementCollection && elementCollection.length) {
71+
for(let ele of elementCollection) {
72+
let destroy: any = getValue('__vue__.$destroy', ele);
73+
if (destroy) {
74+
ele.__vue__.$destroy();
75+
}
76+
if (ele.innerHTML){
77+
ele.innerHTML = '';
78+
}
79+
}
80+
delete this.templateCollection[tempName];
81+
}
6082
}
83+
}
84+
}
85+
86+
87+
6188
public setProperties(prop: any, muteOnChange: boolean): void {
6289
if(this.isVue3) {
6390
this.models = !this.models ? this.ej2Instances.referModels : this.models;
@@ -73,6 +100,7 @@ export class ButtonComponent extends ComponentBase {
73100
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
74101
} else {
75102
(this as any).$emit('update:' + key, prop[key]);
103+
(this as any).$emit('modelchanged', prop[key]);
76104
}
77105
}
78106
});

components/buttons/src/check-box/checkbox.component.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Options } from 'vue-class-component';
22
import { isUndefined } from '@syncfusion/ej2-base';
33
import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base';
4-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
4+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
55

66
import { CheckBox } from '@syncfusion/ej2-buttons';
77

@@ -53,7 +53,7 @@ export class CheckBoxComponent extends ComponentBase {
5353
public tagMapper: { [key: string]: Object } = {};
5454
public tagNameMapper: Object = {};
5555
public isVue3: boolean;
56-
56+
public templateCollection: any;
5757
constructor() {
5858
super(arguments);
5959
this.isVue3 = !isExecute;
@@ -63,7 +63,34 @@ export class CheckBoxComponent extends ComponentBase {
6363
this.bindProperties();
6464
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
6565
this.ej2Instances.setProperties = this.setProperties;
66+
this.ej2Instances.clearTemplate = this.clearTemplate;
67+
}
68+
69+
public clearTemplate(templateNames?: string[]): any {
70+
if (!templateNames){
71+
templateNames = Object.keys(this.templateCollection || {});
72+
}
73+
if (templateNames.length && this.templateCollection) {
74+
for (let tempName of templateNames){
75+
let elementCollection: any = this.templateCollection[tempName];
76+
if(elementCollection && elementCollection.length) {
77+
for(let ele of elementCollection) {
78+
let destroy: any = getValue('__vue__.$destroy', ele);
79+
if (destroy) {
80+
ele.__vue__.$destroy();
81+
}
82+
if (ele.innerHTML){
83+
ele.innerHTML = '';
84+
}
85+
}
86+
delete this.templateCollection[tempName];
87+
}
6688
}
89+
}
90+
}
91+
92+
93+
6794
public setProperties(prop: any, muteOnChange: boolean): void {
6895
if(this.isVue3) {
6996
this.models = !this.models ? this.ej2Instances.referModels : this.models;
@@ -79,6 +106,7 @@ export class CheckBoxComponent extends ComponentBase {
79106
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
80107
} else {
81108
(this as any).$emit('update:' + key, prop[key]);
109+
(this as any).$emit('modelchanged', prop[key]);
82110
}
83111
}
84112
});

components/buttons/src/chips/chiplist.component.ts

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Options } from 'vue-class-component';
22
import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base';
3-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
3+
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
44

55
import { ChipList } from '@syncfusion/ej2-buttons';
66
import { ChipsDirective, ChipDirective, ChipsPlugin, ChipPlugin } from './chips.directive'
@@ -50,15 +50,42 @@ export class ChipListComponent extends ComponentBase {
5050
public tagMapper: { [key: string]: Object } = {"e-chips":"e-chip"};
5151
public tagNameMapper: Object = {};
5252
public isVue3: boolean;
53-
53+
public templateCollection: any;
5454
constructor() {
5555
super(arguments);
5656
this.isVue3 = !isExecute;
5757
this.ej2Instances = new ChipList({});
5858
this.bindProperties();
5959
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
6060
this.ej2Instances.setProperties = this.setProperties;
61+
this.ej2Instances.clearTemplate = this.clearTemplate;
62+
}
63+
64+
public clearTemplate(templateNames?: string[]): any {
65+
if (!templateNames){
66+
templateNames = Object.keys(this.templateCollection || {});
67+
}
68+
if (templateNames.length && this.templateCollection) {
69+
for (let tempName of templateNames){
70+
let elementCollection: any = this.templateCollection[tempName];
71+
if(elementCollection && elementCollection.length) {
72+
for(let ele of elementCollection) {
73+
let destroy: any = getValue('__vue__.$destroy', ele);
74+
if (destroy) {
75+
ele.__vue__.$destroy();
76+
}
77+
if (ele.innerHTML){
78+
ele.innerHTML = '';
79+
}
80+
}
81+
delete this.templateCollection[tempName];
82+
}
6183
}
84+
}
85+
}
86+
87+
88+
6289
public setProperties(prop: any, muteOnChange: boolean): void {
6390
if(this.isVue3) {
6491
this.models = !this.models ? this.ej2Instances.referModels : this.models;
@@ -74,6 +101,7 @@ export class ChipListComponent extends ComponentBase {
74101
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
75102
} else {
76103
(this as any).$emit('update:' + key, prop[key]);
104+
(this as any).$emit('modelchanged', prop[key]);
77105
}
78106
}
79107
});

0 commit comments

Comments
 (0)