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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 30 additions & 2 deletions
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

Lines changed: 30 additions & 2 deletions
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

Lines changed: 30 additions & 2 deletions
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
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-barcode-generator/styles/barcode/bootstrap5-dark.scss';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'ej2-barcode-generator/styles/barcode/bootstrap5.scss';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'barcode/bootstrap5-dark.scss';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'barcode/bootstrap5.scss';
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)