@klauswuestefeld/jux-web 2024.2.2 → 2024.2.5

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.
@@ -0,0 +1 @@
1
+ export declare const query: (element: HTMLElement, endpoint: string, onResult: any, params?: any, onError?: any) => void;
package/dist/jux-web.js CHANGED
@@ -102,6 +102,22 @@ var juxWeb = (function (exports) {
102
102
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103
103
  PERFORMANCE OF THIS SOFTWARE.
104
104
  ***************************************************************************** */
105
+ /* global Reflect, Promise */
106
+
107
+ var extendStatics$2 = function(d, b) {
108
+ extendStatics$2 = Object.setPrototypeOf ||
109
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
110
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
111
+ return extendStatics$2(d, b);
112
+ };
113
+
114
+ function __extends$2(d, b) {
115
+ if (typeof b !== "function" && b !== null)
116
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
117
+ extendStatics$2(d, b);
118
+ function __() { this.constructor = d; }
119
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
120
+ }
105
121
 
106
122
  function __awaiter$2(thisArg, _arguments, P, generator) {
107
123
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -14607,6 +14623,26 @@ var juxWeb = (function (exports) {
14607
14623
  return result;
14608
14624
  };
14609
14625
 
14626
+ var QueryInit = /** @class */ (function () {
14627
+ function QueryInit(payload, onResult, onError) {
14628
+ this.payload = payload;
14629
+ this.onResult = onResult;
14630
+ this.onError = onError;
14631
+ }
14632
+ return QueryInit;
14633
+ }());
14634
+ var Query = /** @class */ (function (_super) {
14635
+ __extends$2(Query, _super);
14636
+ function Query(endpoint, onResult, params, onError) {
14637
+ var payload = new QueryInit(params, onResult, onError);
14638
+ return _super.call(this, endpoint, payload) || this;
14639
+ }
14640
+ return Query;
14641
+ }(CustomEvent));
14642
+ var query = function (element, endpoint, onResult, params, onError) {
14643
+ element.dispatchEvent(new Query(endpoint, onResult, params, onError));
14644
+ };
14645
+
14610
14646
  exports.chosenLanguage = chosenLanguage;
14611
14647
  exports.getTranslation = getTranslation;
14612
14648
  exports.handleMagicLinkRequest = handleMagicLinkRequest;
@@ -14616,6 +14652,7 @@ var juxWeb = (function (exports) {
14616
14652
  exports.loginPage = loginPage;
14617
14653
  exports.magicLinkModal = magicLinkModal;
14618
14654
  exports.onMicrosoftSignIn = onMicrosoftSignIn;
14655
+ exports.query = query;
14619
14656
  exports.reloadWithLanguageOverride = reloadWithLanguageOverride;
14620
14657
  exports.requestMagicLink = requestMagicLink;
14621
14658
 
package/dist/main.d.ts CHANGED
@@ -4,6 +4,7 @@ export { loginPage } from './login/login-page';
4
4
  export { handleMagicLinkRequest, initSession, onMicrosoftSignIn } from './login/session';
5
5
  export { requestMagicLink } from './api-client';
6
6
  export { magicLinkModal } from './login/magic-link-modal';
7
+ export { query } from './jux/query';
7
8
  declare global {
8
9
  interface Window {
9
10
  submitCaptcha: any;
package/dist/main.esm.js CHANGED
@@ -101,6 +101,22 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
101
101
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
102
102
  PERFORMANCE OF THIS SOFTWARE.
103
103
  ***************************************************************************** */
104
+ /* global Reflect, Promise */
105
+
106
+ var extendStatics = function(d, b) {
107
+ extendStatics = Object.setPrototypeOf ||
108
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
109
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
110
+ return extendStatics(d, b);
111
+ };
112
+
113
+ function __extends(d, b) {
114
+ if (typeof b !== "function" && b !== null)
115
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
116
+ extendStatics(d, b);
117
+ function __() { this.constructor = d; }
118
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
119
+ }
104
120
 
105
121
  function __awaiter(thisArg, _arguments, P, generator) {
106
122
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -1287,4 +1303,24 @@ var loginPage = function (clientApp, backgroundImg, onUserLogin, loginTypes) {
1287
1303
  return result;
1288
1304
  };
1289
1305
 
1290
- export { chosenLanguage, getTranslation, handleMagicLinkRequest, initLanguage, initSession, loginButton, loginPage, magicLinkModal, onMicrosoftSignIn, reloadWithLanguageOverride, requestMagicLink };
1306
+ var QueryInit = /** @class */ (function () {
1307
+ function QueryInit(payload, onResult, onError) {
1308
+ this.payload = payload;
1309
+ this.onResult = onResult;
1310
+ this.onError = onError;
1311
+ }
1312
+ return QueryInit;
1313
+ }());
1314
+ var Query = /** @class */ (function (_super) {
1315
+ __extends(Query, _super);
1316
+ function Query(endpoint, onResult, params, onError) {
1317
+ var payload = new QueryInit(params, onResult, onError);
1318
+ return _super.call(this, endpoint, payload) || this;
1319
+ }
1320
+ return Query;
1321
+ }(CustomEvent));
1322
+ var query = function (element, endpoint, onResult, params, onError) {
1323
+ element.dispatchEvent(new Query(endpoint, onResult, params, onError));
1324
+ };
1325
+
1326
+ export { chosenLanguage, getTranslation, handleMagicLinkRequest, initLanguage, initSession, loginButton, loginPage, magicLinkModal, onMicrosoftSignIn, query, reloadWithLanguageOverride, requestMagicLink };
package/dist/main.js CHANGED
@@ -125,6 +125,22 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
125
125
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
126
126
  PERFORMANCE OF THIS SOFTWARE.
127
127
  ***************************************************************************** */
128
+ /* global Reflect, Promise */
129
+
130
+ var extendStatics = function(d, b) {
131
+ extendStatics = Object.setPrototypeOf ||
132
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
133
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
134
+ return extendStatics(d, b);
135
+ };
136
+
137
+ function __extends(d, b) {
138
+ if (typeof b !== "function" && b !== null)
139
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
140
+ extendStatics(d, b);
141
+ function __() { this.constructor = d; }
142
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
143
+ }
128
144
 
129
145
  function __awaiter(thisArg, _arguments, P, generator) {
130
146
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -1311,6 +1327,26 @@ var loginPage = function (clientApp, backgroundImg, onUserLogin, loginTypes) {
1311
1327
  return result;
1312
1328
  };
1313
1329
 
1330
+ var QueryInit = /** @class */ (function () {
1331
+ function QueryInit(payload, onResult, onError) {
1332
+ this.payload = payload;
1333
+ this.onResult = onResult;
1334
+ this.onError = onError;
1335
+ }
1336
+ return QueryInit;
1337
+ }());
1338
+ var Query = /** @class */ (function (_super) {
1339
+ __extends(Query, _super);
1340
+ function Query(endpoint, onResult, params, onError) {
1341
+ var payload = new QueryInit(params, onResult, onError);
1342
+ return _super.call(this, endpoint, payload) || this;
1343
+ }
1344
+ return Query;
1345
+ }(CustomEvent));
1346
+ var query = function (element, endpoint, onResult, params, onError) {
1347
+ element.dispatchEvent(new Query(endpoint, onResult, params, onError));
1348
+ };
1349
+
1314
1350
  exports.chosenLanguage = chosenLanguage;
1315
1351
  exports.getTranslation = getTranslation;
1316
1352
  exports.handleMagicLinkRequest = handleMagicLinkRequest;
@@ -1320,5 +1356,6 @@ exports.loginButton = loginButton;
1320
1356
  exports.loginPage = loginPage;
1321
1357
  exports.magicLinkModal = magicLinkModal;
1322
1358
  exports.onMicrosoftSignIn = onMicrosoftSignIn;
1359
+ exports.query = query;
1323
1360
  exports.reloadWithLanguageOverride = reloadWithLanguageOverride;
1324
1361
  exports.requestMagicLink = requestMagicLink;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klauswuestefeld/jux-web",
3
- "version": "2024.2.2",
3
+ "version": "2024.2.5",
4
4
  "author": "Jux.House",
5
5
  "license": "Copyrighted",
6
6
  "description": "",