@ezeep/ezeep-js 1.0.129 → 1.0.133
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/dist/cjs/ezeep.cjs.js +2 -2
- package/dist/cjs/ezp-auth_12.cjs.entry.js +13 -13
- package/dist/cjs/{index-d746ac43.js → index-a93095ed.js} +70 -61
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +1 -1
- package/dist/collection/components/ezp-printing/ezp-printing.js +1 -1
- package/dist/collection/components/ezp-select/ezp-select.js +1 -1
- package/dist/collection/components/ezp-stepper/ezp-stepper.js +1 -1
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +1 -1
- package/dist/custom-elements/index.js +25 -25
- package/dist/directives/proxies.ts +6 -3
- package/dist/esm/ezeep.js +2 -2
- package/dist/esm/ezp-auth_12.entry.js +13 -13
- package/dist/esm/{index-8acd6246.js → index-9ecf6ae0.js} +70 -61
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_12.entry.js +1 -1
- package/dist/esm-es5/{index-8acd6246.js → index-9ecf6ae0.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +1 -1
- package/dist/ezeep/{p-eb2573fa.system.entry.js → p-12ca28b7.system.entry.js} +1 -1
- package/dist/ezeep/{p-84296aaf.system.js → p-c488ee3f.system.js} +1 -1
- package/dist/ezeep/p-eb3b8dbd.system.js +1 -0
- package/dist/ezeep/p-f4d2e700.entry.js +1 -0
- package/dist/ezeep/{p-5446fa7a.js → p-ff843eb4.js} +1 -1
- package/loader/index.d.ts +0 -1
- package/package.json +2 -2
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +1 -1
- package/www/build/{p-eb2573fa.system.entry.js → p-12ca28b7.system.entry.js} +1 -1
- package/www/build/{p-84296aaf.system.js → p-c488ee3f.system.js} +1 -1
- package/www/build/p-eb3b8dbd.system.js +1 -0
- package/www/build/p-f4d2e700.entry.js +1 -0
- package/www/build/{p-5446fa7a.js → p-ff843eb4.js} +1 -1
- package/dist/ezeep/p-09df7591.system.js +0 -1
- package/dist/ezeep/p-51b6954d.entry.js +0 -1
- package/www/build/p-09df7591.system.js +0 -1
- 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
|
|
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
|
|
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
|
-
//
|
|
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
|
|
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
|
|
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) =>
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
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
|
-
|
|
1255
|
+
{
|
|
1256
|
+
self.attachShadow({ mode: 'open' });
|
|
1257
|
+
}
|
|
1249
1258
|
}
|
|
1250
1259
|
}
|
|
1251
1260
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
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
|
-
|
|
1259
|
-
|
|
1260
|
-
deferredConnectedCallbacks.push(this);
|
|
1274
|
+
disconnectedCallback() {
|
|
1275
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1261
1276
|
}
|
|
1262
|
-
|
|
1263
|
-
|
|
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
|
-
|
|
1267
|
-
|
|
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', '');
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
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.
|
|
5
|
+
Stencil Client Patch Esm v2.11.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
return promiseResolve();
|
package/dist/esm-es5/ezeep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
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)}));
|