@ezeep/ezeep-js 1.0.214 → 1.0.217

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.
@@ -32600,11 +32600,6 @@ class EzpPrintService {
32600
32600
  },
32601
32601
  });
32602
32602
  const client = new BlockBlobClient(sasUri, pipeline);
32603
- // upload
32604
- // for (let index = 0; index < files.length; index++) {
32605
- // const file = files[index]
32606
- // console.log(response._response.status)
32607
- // }
32608
32603
  const response = await client.uploadData(file, {
32609
32604
  blockSize: 4 * 1024 * 1024,
32610
32605
  concurrency: 20,
@@ -32612,7 +32607,7 @@ class EzpPrintService {
32612
32607
  let progress = (100 * e.loadedBytes) / file.size;
32613
32608
  printStore.state.uploadProgress = progress;
32614
32609
  },
32615
- blobHTTPHeaders: { blobContentType: file.type },
32610
+ blobHTTPHeaders: { blobContentType: 'application/octet-stream' },
32616
32611
  });
32617
32612
  return response;
32618
32613
  }
@@ -33144,9 +33139,13 @@ let EzpPrinting = class {
33144
33139
  }
33145
33140
  /** Watchers */
33146
33141
  watchFileData(newValue, oldValue) {
33142
+ console.log(newValue);
33147
33143
  if (newValue !== oldValue && newValue.length > 0) {
33148
- const uint8array = new TextEncoder().encode(newValue);
33149
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33144
+ let array = new Uint8Array(newValue.length);
33145
+ for (let i = 0; i < newValue.length; i++) {
33146
+ array[i] = newValue.charCodeAt(i);
33147
+ }
33148
+ this.file = new File([array], this.filename);
33150
33149
  }
33151
33150
  }
33152
33151
  watchFilename(newValue, oldValue) {
@@ -33173,7 +33172,6 @@ let EzpPrinting = class {
33173
33172
  listenPrintCancel() {
33174
33173
  this.printOpen = false;
33175
33174
  this.printFinished.emit();
33176
- this.auth.revokeRefreshToken();
33177
33175
  }
33178
33176
  /** Description... */
33179
33177
  listenPrintSubmit() {
@@ -27,9 +27,13 @@ export class EzpPrinting {
27
27
  }
28
28
  /** Watchers */
29
29
  watchFileData(newValue, oldValue) {
30
+ console.log(newValue);
30
31
  if (newValue !== oldValue && newValue.length > 0) {
31
- const uint8array = new TextEncoder().encode(newValue);
32
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
32
+ let array = new Uint8Array(newValue.length);
33
+ for (let i = 0; i < newValue.length; i++) {
34
+ array[i] = newValue.charCodeAt(i);
35
+ }
36
+ this.file = new File([array], this.filename);
33
37
  }
34
38
  }
35
39
  watchFilename(newValue, oldValue) {
@@ -56,7 +60,6 @@ export class EzpPrinting {
56
60
  listenPrintCancel() {
57
61
  this.printOpen = false;
58
62
  this.printFinished.emit();
59
- this.auth.revokeRefreshToken();
60
63
  }
61
64
  /** Description... */
62
65
  listenPrintSubmit() {
@@ -140,11 +140,6 @@ export class EzpPrintService {
140
140
  },
141
141
  });
142
142
  const client = new BlockBlobClient(sasUri, pipeline);
143
- // upload
144
- // for (let index = 0; index < files.length; index++) {
145
- // const file = files[index]
146
- // console.log(response._response.status)
147
- // }
148
143
  const response = await client.uploadData(file, {
149
144
  blockSize: 4 * 1024 * 1024,
150
145
  concurrency: 20,
@@ -152,7 +147,7 @@ export class EzpPrintService {
152
147
  let progress = (100 * e.loadedBytes) / file.size;
153
148
  printStore.state.uploadProgress = progress;
154
149
  },
155
- blobHTTPHeaders: { blobContentType: file.type },
150
+ blobHTTPHeaders: { blobContentType: 'application/octet-stream' },
156
151
  });
157
152
  return response;
158
153
  }
@@ -32621,11 +32621,6 @@ class EzpPrintService {
32621
32621
  },
32622
32622
  });
32623
32623
  const client = new BlockBlobClient(sasUri, pipeline);
32624
- // upload
32625
- // for (let index = 0; index < files.length; index++) {
32626
- // const file = files[index]
32627
- // console.log(response._response.status)
32628
- // }
32629
32624
  const response = await client.uploadData(file, {
32630
32625
  blockSize: 4 * 1024 * 1024,
32631
32626
  concurrency: 20,
@@ -32633,7 +32628,7 @@ class EzpPrintService {
32633
32628
  let progress = (100 * e.loadedBytes) / file.size;
32634
32629
  printStore.state.uploadProgress = progress;
32635
32630
  },
32636
- blobHTTPHeaders: { blobContentType: file.type },
32631
+ blobHTTPHeaders: { blobContentType: 'application/octet-stream' },
32637
32632
  });
32638
32633
  return response;
32639
32634
  }
@@ -33169,9 +33164,13 @@ let EzpPrinting$1 = class extends HTMLElement {
33169
33164
  }
33170
33165
  /** Watchers */
33171
33166
  watchFileData(newValue, oldValue) {
33167
+ console.log(newValue);
33172
33168
  if (newValue !== oldValue && newValue.length > 0) {
33173
- const uint8array = new TextEncoder().encode(newValue);
33174
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33169
+ let array = new Uint8Array(newValue.length);
33170
+ for (let i = 0; i < newValue.length; i++) {
33171
+ array[i] = newValue.charCodeAt(i);
33172
+ }
33173
+ this.file = new File([array], this.filename);
33175
33174
  }
33176
33175
  }
33177
33176
  watchFilename(newValue, oldValue) {
@@ -33198,7 +33197,6 @@ let EzpPrinting$1 = class extends HTMLElement {
33198
33197
  listenPrintCancel() {
33199
33198
  this.printOpen = false;
33200
33199
  this.printFinished.emit();
33201
- this.auth.revokeRefreshToken();
33202
33200
  }
33203
33201
  /** Description... */
33204
33202
  listenPrintSubmit() {
@@ -32596,11 +32596,6 @@ class EzpPrintService {
32596
32596
  },
32597
32597
  });
32598
32598
  const client = new BlockBlobClient(sasUri, pipeline);
32599
- // upload
32600
- // for (let index = 0; index < files.length; index++) {
32601
- // const file = files[index]
32602
- // console.log(response._response.status)
32603
- // }
32604
32599
  const response = await client.uploadData(file, {
32605
32600
  blockSize: 4 * 1024 * 1024,
32606
32601
  concurrency: 20,
@@ -32608,7 +32603,7 @@ class EzpPrintService {
32608
32603
  let progress = (100 * e.loadedBytes) / file.size;
32609
32604
  printStore.state.uploadProgress = progress;
32610
32605
  },
32611
- blobHTTPHeaders: { blobContentType: file.type },
32606
+ blobHTTPHeaders: { blobContentType: 'application/octet-stream' },
32612
32607
  });
32613
32608
  return response;
32614
32609
  }
@@ -33140,9 +33135,13 @@ let EzpPrinting = class {
33140
33135
  }
33141
33136
  /** Watchers */
33142
33137
  watchFileData(newValue, oldValue) {
33138
+ console.log(newValue);
33143
33139
  if (newValue !== oldValue && newValue.length > 0) {
33144
- const uint8array = new TextEncoder().encode(newValue);
33145
- this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33140
+ let array = new Uint8Array(newValue.length);
33141
+ for (let i = 0; i < newValue.length; i++) {
33142
+ array[i] = newValue.charCodeAt(i);
33143
+ }
33144
+ this.file = new File([array], this.filename);
33146
33145
  }
33147
33146
  }
33148
33147
  watchFilename(newValue, oldValue) {
@@ -33169,7 +33168,6 @@ let EzpPrinting = class {
33169
33168
  listenPrintCancel() {
33170
33169
  this.printOpen = false;
33171
33170
  this.printFinished.emit();
33172
- this.auth.revokeRefreshToken();
33173
33171
  }
33174
33172
  /** Description... */
33175
33173
  listenPrintSubmit() {