@ezeep/ezeep-js 1.0.126 → 1.0.130

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 (40) hide show
  1. package/dist/cjs/ezeep.cjs.js +2 -2
  2. package/dist/cjs/ezp-auth_12.cjs.entry.js +13 -13
  3. package/dist/cjs/{index-d746ac43.js → index-a93095ed.js} +70 -61
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +1 -1
  7. package/dist/collection/components/ezp-printing/ezp-printing.js +1 -1
  8. package/dist/collection/components/ezp-select/ezp-select.js +1 -1
  9. package/dist/collection/components/ezp-stepper/ezp-stepper.js +1 -1
  10. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
  11. package/dist/custom-elements/index.js +25 -25
  12. package/dist/directives/proxies.ts +6 -3
  13. package/dist/esm/ezeep.js +2 -2
  14. package/dist/esm/ezp-auth_12.entry.js +13 -13
  15. package/dist/esm/{index-8acd6246.js → index-9ecf6ae0.js} +70 -61
  16. package/dist/esm/loader.js +2 -2
  17. package/dist/esm-es5/ezeep.js +1 -1
  18. package/dist/esm-es5/ezp-auth_12.entry.js +1 -1
  19. package/dist/esm-es5/{index-8acd6246.js → index-9ecf6ae0.js} +1 -1
  20. package/dist/esm-es5/loader.js +1 -1
  21. package/dist/ezeep/ezeep.esm.js +1 -1
  22. package/dist/ezeep/ezeep.js +1 -1
  23. package/dist/ezeep/{p-eb2573fa.system.entry.js → p-12ca28b7.system.entry.js} +1 -1
  24. package/dist/ezeep/{p-84296aaf.system.js → p-c488ee3f.system.js} +1 -1
  25. package/dist/ezeep/p-eb3b8dbd.system.js +1 -0
  26. package/dist/ezeep/p-f4d2e700.entry.js +1 -0
  27. package/dist/ezeep/{p-5446fa7a.js → p-ff843eb4.js} +1 -1
  28. package/loader/index.d.ts +0 -1
  29. package/package.json +2 -2
  30. package/www/build/ezeep.esm.js +1 -1
  31. package/www/build/ezeep.js +1 -1
  32. package/www/build/{p-eb2573fa.system.entry.js → p-12ca28b7.system.entry.js} +1 -1
  33. package/www/build/{p-84296aaf.system.js → p-c488ee3f.system.js} +1 -1
  34. package/www/build/p-eb3b8dbd.system.js +1 -0
  35. package/www/build/p-f4d2e700.entry.js +1 -0
  36. package/www/build/{p-5446fa7a.js → p-ff843eb4.js} +1 -1
  37. package/dist/ezeep/p-09df7591.system.js +0 -1
  38. package/dist/ezeep/p-51b6954d.entry.js +0 -1
  39. package/www/build/p-09df7591.system.js +0 -1
  40. package/www/build/p-51b6954d.entry.js +0 -1
@@ -375,7 +375,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
375
375
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
376
376
  if (memberName === 'list') {
377
377
  isProp = false;
378
- // tslint:disable-next-line: triple-equals
379
378
  }
380
379
  else if (oldValue == null || elm[memberName] != n) {
381
380
  elm[memberName] = n;
@@ -1012,14 +1011,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1012
1011
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1013
1012
  plt.jmp(() => {
1014
1013
  const propName = attrNameToPropName.get(attrName);
1015
- // In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
1014
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1016
1015
  // in the case where an attribute was set inline.
1017
1016
  // ```html
1018
1017
  // <my-component some-attribute="some-value"></my-component>
1019
1018
  // ```
1020
1019
  //
1021
- // There is an edge case where a developer sets the attribute inline on a custom element and then programatically
1022
- // changes it before it has been upgraded as shown below:
1020
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1021
+ // programmatically changes it before it has been upgraded as shown below:
1023
1022
  //
1024
1023
  // ```html
1025
1024
  // <!-- this component has _not_ been upgraded yet -->
@@ -1029,13 +1028,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1029
1028
  // el = document.querySelector("#test");
1030
1029
  // el.someAttribute = "another-value";
1031
1030
  // // upgrade component
1032
- // cutsomElements.define('my-component', MyComponent);
1031
+ // customElements.define('my-component', MyComponent);
1033
1032
  // </script>
1034
1033
  // ```
1035
1034
  // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1036
1035
  // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1037
1036
  // to the value that was set inline i.e. "some-value" from above example. When
1038
- // the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
1037
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1039
1038
  //
1040
1039
  // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1041
1040
  // by connectedCallback as this attributeChangedCallback will not fire.
@@ -1049,6 +1048,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1049
1048
  newValue = this[propName];
1050
1049
  delete this[propName];
1051
1050
  }
1051
+ else if (prototype.hasOwnProperty(propName) &&
1052
+ typeof this[propName] === 'number' &&
1053
+ this[propName] == newValue) {
1054
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1055
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1056
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1057
+ return;
1058
+ }
1052
1059
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1053
1060
  });
1054
1061
  };
@@ -1131,7 +1138,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1131
1138
  const ancestorComponent = hostRef.$ancestorComponent$;
1132
1139
  const schedule = () => scheduleUpdate(hostRef, true);
1133
1140
  if (ancestorComponent && ancestorComponent['s-rc']) {
1134
- // this is the intial load and this component it has an ancestor component
1141
+ // this is the initial load and this component it has an ancestor component
1135
1142
  // but the ancestor component has NOT fired its will update lifecycle yet
1136
1143
  // so let's just cool our jets and wait for the ancestor to continue first
1137
1144
  // this will get fired off when the ancestor component
@@ -1214,68 +1221,70 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1214
1221
  let isBootstrapping = true;
1215
1222
  Object.assign(plt, options);
1216
1223
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1217
- lazyBundles.map((lazyBundle) => lazyBundle[1].map((compactMeta) => {
1218
- const cmpMeta = {
1219
- $flags$: compactMeta[0],
1220
- $tagName$: compactMeta[1],
1221
- $members$: compactMeta[2],
1222
- $listeners$: compactMeta[3],
1223
- };
1224
- {
1225
- cmpMeta.$members$ = compactMeta[2];
1226
- }
1227
- {
1228
- cmpMeta.$listeners$ = compactMeta[3];
1229
- }
1230
- {
1231
- cmpMeta.$watchers$ = {};
1232
- }
1233
- const tagName = cmpMeta.$tagName$;
1234
- const HostElement = class extends HTMLElement {
1235
- // StencilLazyHost
1236
- constructor(self) {
1237
- // @ts-ignore
1238
- super(self);
1239
- self = this;
1240
- registerHost(self, cmpMeta);
1241
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1242
- // this component is using shadow dom
1243
- // and this browser supports shadow dom
1244
- // add the read-only property "shadowRoot" to the host element
1245
- // adding the shadow root build conditionals to minimize runtime
1246
- {
1224
+ lazyBundles.map((lazyBundle) => {
1225
+ lazyBundle[1].map((compactMeta) => {
1226
+ const cmpMeta = {
1227
+ $flags$: compactMeta[0],
1228
+ $tagName$: compactMeta[1],
1229
+ $members$: compactMeta[2],
1230
+ $listeners$: compactMeta[3],
1231
+ };
1232
+ {
1233
+ cmpMeta.$members$ = compactMeta[2];
1234
+ }
1235
+ {
1236
+ cmpMeta.$listeners$ = compactMeta[3];
1237
+ }
1238
+ {
1239
+ cmpMeta.$watchers$ = {};
1240
+ }
1241
+ const tagName = cmpMeta.$tagName$;
1242
+ const HostElement = class extends HTMLElement {
1243
+ // StencilLazyHost
1244
+ constructor(self) {
1245
+ // @ts-ignore
1246
+ super(self);
1247
+ self = this;
1248
+ registerHost(self, cmpMeta);
1249
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1250
+ // this component is using shadow dom
1251
+ // and this browser supports shadow dom
1252
+ // add the read-only property "shadowRoot" to the host element
1253
+ // adding the shadow root build conditionals to minimize runtime
1247
1254
  {
1248
- self.attachShadow({ mode: 'open' });
1255
+ {
1256
+ self.attachShadow({ mode: 'open' });
1257
+ }
1249
1258
  }
1250
1259
  }
1251
1260
  }
1252
- }
1253
- connectedCallback() {
1254
- if (appLoadFallback) {
1255
- clearTimeout(appLoadFallback);
1256
- appLoadFallback = null;
1261
+ connectedCallback() {
1262
+ if (appLoadFallback) {
1263
+ clearTimeout(appLoadFallback);
1264
+ appLoadFallback = null;
1265
+ }
1266
+ if (isBootstrapping) {
1267
+ // connectedCallback will be processed once all components have been registered
1268
+ deferredConnectedCallbacks.push(this);
1269
+ }
1270
+ else {
1271
+ plt.jmp(() => connectedCallback(this));
1272
+ }
1257
1273
  }
1258
- if (isBootstrapping) {
1259
- // connectedCallback will be processed once all components have been registered
1260
- deferredConnectedCallbacks.push(this);
1274
+ disconnectedCallback() {
1275
+ plt.jmp(() => disconnectedCallback(this));
1261
1276
  }
1262
- else {
1263
- plt.jmp(() => connectedCallback(this));
1277
+ componentOnReady() {
1278
+ return getHostRef(this).$onReadyPromise$;
1264
1279
  }
1280
+ };
1281
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1282
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1283
+ cmpTags.push(tagName);
1284
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1265
1285
  }
1266
- disconnectedCallback() {
1267
- plt.jmp(() => disconnectedCallback(this));
1268
- }
1269
- componentOnReady() {
1270
- return getHostRef(this).$onReadyPromise$;
1271
- }
1272
- };
1273
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1274
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1275
- cmpTags.push(tagName);
1276
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1277
- }
1278
- }));
1286
+ });
1287
+ });
1279
1288
  {
1280
1289
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1281
1290
  visibilityStyle.setAttribute('data-styles', '');
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-8acd6246.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-9ecf6ae0.js';
2
2
  import { g as globalScripts } from './app-globals-28960cbc.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Esm v2.8.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Esm v2.11.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchEsm = () => {
8
8
  return promiseResolve();
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-8acd6246.js";import{g as globalScripts}from"./app-globals-28960cbc.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["ezp-auth_12",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],printOpen:[32],authOpen:[32],open:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authShow","listenAuthShow"],[0,"printShow","listenPrintShow"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1],fileurl:[1],filetype:[1],loading:[32],options:[32],printInProgress:[32],userMenuOpen:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedProperties:[32],previouslySelectedProperties:[32]},[[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],auth:[32],authURI:[32],accessToken:[32]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],expanded:[32],selected:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-progress",{status:[1]}],[1,"ezp-text-button",{blank:[4],disabled:[4],href:[1],level:[1],label:[1],type:[1]}],[1,"ezp-icon-button",{blank:[4],disabled:[4],href:[1],icon:[1],level:[1],type:[1]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon",{name:[1],size:[1]}],[1,"ezp-label",{ellipsis:[4],level:[1],noWrap:[4,"no-wrap"],text:[1],weight:[1]}]]]],e)}));
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-9ecf6ae0.js";import{g as globalScripts}from"./app-globals-28960cbc.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["ezp-auth_12",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],printOpen:[32],authOpen:[32],open:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authShow","listenAuthShow"],[0,"printShow","listenPrintShow"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1],fileurl:[1],filetype:[1],loading:[32],options:[32],printInProgress:[32],userMenuOpen:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedProperties:[32],previouslySelectedProperties:[32]},[[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],auth:[32],authURI:[32],accessToken:[32]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],expanded:[32],selected:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-progress",{status:[1]}],[1,"ezp-text-button",{blank:[4],disabled:[4],href:[1],level:[1],label:[1],type:[1]}],[1,"ezp-icon-button",{blank:[4],disabled:[4],href:[1],icon:[1],level:[1],type:[1]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon",{name:[1],size:[1]}],[1,"ezp-label",{ellipsis:[4],level:[1],noWrap:[4,"no-wrap"],text:[1],weight:[1]}]]]],e)}));