@opengeoweb/shared 12.9.1 → 12.11.0

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 (29) hide show
  1. package/index.esm.js +244 -292
  2. package/package.json +5 -2
  3. package/src/lib/components/Avatar/Avatar.stories.d.ts +1 -1
  4. package/src/lib/components/ConfirmationDialog/ConfirmationButtons.stories.d.ts +1 -1
  5. package/src/lib/components/CustomAccordion/CustomAccordion.stories.d.ts +1 -1
  6. package/src/lib/components/CustomDialog/CustomDialog.stories.d.ts +1 -1
  7. package/src/lib/components/CustomDialog/CustomDialogHeader.stories.d.ts +1 -1
  8. package/src/lib/components/CustomIconButton/CustomIconButton.stories.d.ts +1 -1
  9. package/src/lib/components/CustomSlider/CustomSlider.stories.d.ts +1 -1
  10. package/src/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +1 -1
  11. package/src/lib/components/CustomTooltip/CustomTooltip.d.ts +1 -4
  12. package/src/lib/components/ErrorBoundary/ErrorBoundary.stories.d.ts +1 -1
  13. package/src/lib/components/Filter/Filter.stories.d.ts +1 -1
  14. package/src/lib/components/Filter/FilterChip.d.ts +1 -0
  15. package/src/lib/components/LastUpdateTime/LastUpdateTime.stories.d.ts +1 -1
  16. package/src/lib/components/SearchHighlight/SearchHighlight.stories.d.ts +1 -1
  17. package/src/lib/components/Storybook/StorybookDocsWrapper.d.ts +0 -1
  18. package/src/lib/components/ToggleMenu/ToggleMenu.stories.d.ts +1 -1
  19. package/src/lib/components/ToolContainer/ToolContainer.stories.d.ts +1 -1
  20. package/src/lib/components/ToolContainer/ToolHeader.stories.d.ts +1 -1
  21. package/src/lib/components/ToolContainer/types.d.ts +0 -1
  22. package/src/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +1 -1
  23. package/src/lib/components/UserMenu/CheatSheet/CheatSheet.stories.d.ts +1 -1
  24. package/src/lib/components/UserMenu/UserMenu.stories.d.ts +1 -1
  25. package/src/lib/hooks/usePoller/usePoller.stories.d.ts +1 -1
  26. package/src/lib/types/types.d.ts +24 -0
  27. package/src/lib/utils/axiosErrorUtils/axiosErrorUtils.d.ts +1 -1
  28. package/src/lib/utils/dateUtils/dateUtils.d.ts +1 -1
  29. package/src/lib/components/components.stories.d.ts +0 -5
package/index.esm.js CHANGED
@@ -271,6 +271,9 @@ var sharedTranslations = {
271
271
  nl: nl
272
272
  };
273
273
 
274
+ function _OverloadYield(e, d) {
275
+ this.v = e, this.k = d;
276
+ }
274
277
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
275
278
  try {
276
279
  var i = n[a](c),
@@ -308,312 +311,254 @@ function _objectWithoutPropertiesLoose(r, e) {
308
311
  }
309
312
  return t;
310
313
  }
311
- function _regeneratorRuntime() {
312
- _regeneratorRuntime = function () {
313
- return e;
314
- };
315
- var t,
316
- e = {},
317
- r = Object.prototype,
318
- n = r.hasOwnProperty,
319
- o = Object.defineProperty || function (t, e, r) {
320
- t[e] = r.value;
321
- },
322
- i = "function" == typeof Symbol ? Symbol : {},
323
- a = i.iterator || "@@iterator",
324
- c = i.asyncIterator || "@@asyncIterator",
325
- u = i.toStringTag || "@@toStringTag";
326
- function define(t, e, r) {
327
- return Object.defineProperty(t, e, {
328
- value: r,
329
- enumerable: true,
330
- configurable: true,
331
- writable: true
332
- }), t[e];
333
- }
334
- try {
335
- define({}, "");
336
- } catch (t) {
337
- define = function (t, e, r) {
338
- return t[e] = r;
339
- };
340
- }
341
- function wrap(t, e, r, n) {
342
- var i = e && e.prototype instanceof Generator ? e : Generator,
343
- a = Object.create(i.prototype),
344
- c = new Context(n || []);
345
- return o(a, "_invoke", {
346
- value: makeInvokeMethod(t, r, c)
347
- }), a;
348
- }
349
- function tryCatch(t, e, r) {
350
- try {
351
- return {
352
- type: "normal",
353
- arg: t.call(e, r)
354
- };
355
- } catch (t) {
356
- return {
357
- type: "throw",
358
- arg: t
314
+ function _regenerator() {
315
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
316
+ var e,
317
+ t,
318
+ r = "function" == typeof Symbol ? Symbol : {},
319
+ n = r.iterator || "@@iterator",
320
+ o = r.toStringTag || "@@toStringTag";
321
+ function i(r, n, o, i) {
322
+ var c = n && n.prototype instanceof Generator ? n : Generator,
323
+ u = Object.create(c.prototype);
324
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
325
+ var i,
326
+ c,
327
+ u,
328
+ f = 0,
329
+ p = o || [],
330
+ y = false,
331
+ G = {
332
+ p: 0,
333
+ n: 0,
334
+ v: e,
335
+ a: d,
336
+ f: d.bind(e, 4),
337
+ d: function (t, r) {
338
+ return i = t, c = 0, u = e, G.n = r, a;
339
+ }
340
+ };
341
+ function d(r, n) {
342
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
343
+ var o,
344
+ i = p[t],
345
+ d = G.p,
346
+ l = i[2];
347
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
348
+ }
349
+ if (o || r > 1) return a;
350
+ throw y = true, n;
351
+ }
352
+ return function (o, p, l) {
353
+ if (f > 1) throw TypeError("Generator is already running");
354
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
355
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
356
+ try {
357
+ if (f = 2, i) {
358
+ if (c || (o = "next"), t = i[o]) {
359
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
360
+ if (!t.done) return t;
361
+ u = t.value, c < 2 && (c = 0);
362
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
363
+ i = e;
364
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
365
+ } catch (t) {
366
+ i = e, c = 1, u = t;
367
+ } finally {
368
+ f = 1;
369
+ }
370
+ }
371
+ return {
372
+ value: t,
373
+ done: y
374
+ };
359
375
  };
360
- }
376
+ }(r, o, i), true), u;
361
377
  }
362
- e.wrap = wrap;
363
- var h = "suspendedStart",
364
- l = "suspendedYield",
365
- f = "executing",
366
- s = "completed",
367
- y = {};
378
+ var a = {};
368
379
  function Generator() {}
369
380
  function GeneratorFunction() {}
370
381
  function GeneratorFunctionPrototype() {}
371
- var p = {};
372
- define(p, a, function () {
382
+ t = Object.getPrototypeOf;
383
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
384
+ return this;
385
+ }), t),
386
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
387
+ function f(e) {
388
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
389
+ }
390
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
373
391
  return this;
392
+ }), _regeneratorDefine(u, "toString", function () {
393
+ return "[object Generator]";
394
+ }), (_regenerator = function () {
395
+ return {
396
+ w: i,
397
+ m: f
398
+ };
399
+ })();
400
+ }
401
+ function _regeneratorAsync(n, e, r, t, o) {
402
+ var a = _regeneratorAsyncGen(n, e, r, t, o);
403
+ return a.next().then(function (n) {
404
+ return n.done ? n.value : a.next();
374
405
  });
375
- var d = Object.getPrototypeOf,
376
- v = d && d(d(values([])));
377
- v && v !== r && n.call(v, a) && (p = v);
378
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
379
- function defineIteratorMethods(t) {
380
- ["next", "throw", "return"].forEach(function (e) {
381
- define(t, e, function (t) {
382
- return this._invoke(e, t);
406
+ }
407
+ function _regeneratorAsyncGen(r, e, t, o, n) {
408
+ return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
409
+ }
410
+ function _regeneratorAsyncIterator(t, e) {
411
+ function n(r, o, i, f) {
412
+ try {
413
+ var c = t[r](o),
414
+ u = c.value;
415
+ return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
416
+ n("next", t, i, f);
417
+ }, function (t) {
418
+ n("throw", t, i, f);
419
+ }) : e.resolve(u).then(function (t) {
420
+ c.value = t, i(c);
421
+ }, function (t) {
422
+ return n("throw", t, i, f);
383
423
  });
384
- });
424
+ } catch (t) {
425
+ f(t);
426
+ }
385
427
  }
386
- function AsyncIterator(t, e) {
387
- function invoke(r, o, i, a) {
388
- var c = tryCatch(t[r], t, o);
389
- if ("throw" !== c.type) {
390
- var u = c.arg,
391
- h = u.value;
392
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
393
- invoke("next", t, i, a);
394
- }, function (t) {
395
- invoke("throw", t, i, a);
396
- }) : e.resolve(h).then(function (t) {
397
- u.value = t, i(u);
398
- }, function (t) {
399
- return invoke("throw", t, i, a);
428
+ var r;
429
+ this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
430
+ return this;
431
+ })), _regeneratorDefine(this, "_invoke", function (t, o, i) {
432
+ function f() {
433
+ return new e(function (e, r) {
434
+ n(t, i, e, r);
435
+ });
436
+ }
437
+ return r = r ? r.then(f, f) : f();
438
+ }, true);
439
+ }
440
+ function _regeneratorDefine(e, r, n, t) {
441
+ var i = Object.defineProperty;
442
+ try {
443
+ i({}, "", {});
444
+ } catch (e) {
445
+ i = 0;
446
+ }
447
+ _regeneratorDefine = function (e, r, n, t) {
448
+ if (r) i ? i(e, r, {
449
+ value: n,
450
+ enumerable: !t,
451
+ configurable: !t,
452
+ writable: !t
453
+ }) : e[r] = n;else {
454
+ function o(r, n) {
455
+ _regeneratorDefine(e, r, function (e) {
456
+ return this._invoke(r, n, e);
400
457
  });
401
458
  }
402
- a(c.arg);
459
+ o("next", 0), o("throw", 1), o("return", 2);
403
460
  }
404
- var r;
405
- o(this, "_invoke", {
406
- value: function (t, n) {
407
- function callInvokeWithMethodAndArg() {
408
- return new e(function (e, r) {
409
- invoke(t, n, e, r);
410
- });
411
- }
412
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
413
- }
414
- });
415
- }
416
- function makeInvokeMethod(e, r, n) {
417
- var o = h;
418
- return function (i, a) {
419
- if (o === f) throw Error("Generator is already running");
420
- if (o === s) {
421
- if ("throw" === i) throw a;
422
- return {
423
- value: t,
424
- done: true
461
+ }, _regeneratorDefine(e, r, n, t);
462
+ }
463
+ function _regeneratorKeys(e) {
464
+ var n = Object(e),
465
+ r = [];
466
+ for (var t in n) r.unshift(t);
467
+ return function e() {
468
+ for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
469
+ return e.done = true, e;
470
+ };
471
+ }
472
+ function _regeneratorValues(e) {
473
+ if (null != e) {
474
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
475
+ r = 0;
476
+ if (t) return t.call(e);
477
+ if ("function" == typeof e.next) return e;
478
+ if (!isNaN(e.length)) return {
479
+ next: function () {
480
+ return e && r >= e.length && (e = void 0), {
481
+ value: e && e[r++],
482
+ done: !e
425
483
  };
426
484
  }
427
- for (n.method = i, n.arg = a;;) {
428
- var c = n.delegate;
429
- if (c) {
430
- var u = maybeInvokeDelegate(c, n);
431
- if (u) {
432
- if (u === y) continue;
433
- return u;
434
- }
435
- }
436
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
437
- if (o === h) throw o = s, n.arg;
438
- n.dispatchException(n.arg);
439
- } else "return" === n.method && n.abrupt("return", n.arg);
440
- o = f;
441
- var p = tryCatch(e, r, n);
442
- if ("normal" === p.type) {
443
- if (o = n.done ? s : l, p.arg === y) continue;
444
- return {
445
- value: p.arg,
446
- done: n.done
447
- };
448
- }
449
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
450
- }
451
- };
452
- }
453
- function maybeInvokeDelegate(e, r) {
454
- var n = r.method,
455
- o = e.iterator[n];
456
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
457
- var i = tryCatch(o, e.iterator, r.arg);
458
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
459
- var a = i.arg;
460
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
461
- }
462
- function pushTryEntry(t) {
463
- var e = {
464
- tryLoc: t[0]
465
485
  };
466
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
467
- }
468
- function resetTryEntry(t) {
469
- var e = t.completion || {};
470
- e.type = "normal", delete e.arg, t.completion = e;
471
- }
472
- function Context(t) {
473
- this.tryEntries = [{
474
- tryLoc: "root"
475
- }], t.forEach(pushTryEntry, this), this.reset(true);
476
- }
477
- function values(e) {
478
- if (e || "" === e) {
479
- var r = e[a];
480
- if (r) return r.call(e);
481
- if ("function" == typeof e.next) return e;
482
- if (!isNaN(e.length)) {
483
- var o = -1,
484
- i = function next() {
485
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
486
- return next.value = t, next.done = true, next;
487
- };
488
- return i.next = i;
489
- }
490
- }
491
- throw new TypeError(typeof e + " is not iterable");
492
486
  }
493
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
494
- value: GeneratorFunctionPrototype,
495
- configurable: true
496
- }), o(GeneratorFunctionPrototype, "constructor", {
497
- value: GeneratorFunction,
498
- configurable: true
499
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
500
- var e = "function" == typeof t && t.constructor;
501
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
502
- }, e.mark = function (t) {
503
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
504
- }, e.awrap = function (t) {
505
- return {
506
- __await: t
507
- };
508
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
509
- return this;
510
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
511
- void 0 === i && (i = Promise);
512
- var a = new AsyncIterator(wrap(t, r, n, o), i);
513
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
514
- return t.done ? t.value : a.next();
515
- });
516
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
517
- return this;
518
- }), define(g, "toString", function () {
519
- return "[object Generator]";
520
- }), e.keys = function (t) {
521
- var e = Object(t),
522
- r = [];
523
- for (var n in e) r.push(n);
524
- return r.reverse(), function next() {
525
- for (; r.length;) {
526
- var t = r.pop();
527
- if (t in e) return next.value = t, next.done = false, next;
528
- }
529
- return next.done = true, next;
530
- };
531
- }, e.values = values, Context.prototype = {
532
- constructor: Context,
533
- reset: function (e) {
534
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
535
- },
536
- stop: function () {
537
- this.done = true;
538
- var t = this.tryEntries[0].completion;
539
- if ("throw" === t.type) throw t.arg;
540
- return this.rval;
541
- },
542
- dispatchException: function (e) {
543
- if (this.done) throw e;
544
- var r = this;
545
- function handle(n, o) {
546
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
547
- }
548
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
549
- var i = this.tryEntries[o],
550
- a = i.completion;
551
- if ("root" === i.tryLoc) return handle("end");
552
- if (i.tryLoc <= this.prev) {
553
- var c = n.call(i, "catchLoc"),
554
- u = n.call(i, "finallyLoc");
555
- if (c && u) {
556
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
557
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
558
- } else if (c) {
559
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
560
- } else {
561
- if (!u) throw Error("try statement without catch or finally");
562
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
563
- }
564
- }
565
- }
566
- },
567
- abrupt: function (t, e) {
568
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
569
- var o = this.tryEntries[r];
570
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
571
- var i = o;
572
- break;
573
- }
574
- }
575
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
576
- var a = i ? i.completion : {};
577
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
578
- },
579
- complete: function (t, e) {
580
- if ("throw" === t.type) throw t.arg;
581
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
582
- },
583
- finish: function (t) {
584
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
585
- var r = this.tryEntries[e];
586
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
587
- }
588
- },
589
- catch: function (t) {
590
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
591
- var r = this.tryEntries[e];
592
- if (r.tryLoc === t) {
593
- var n = r.completion;
594
- if ("throw" === n.type) {
595
- var o = n.arg;
596
- resetTryEntry(r);
597
- }
598
- return o;
599
- }
600
- }
601
- throw Error("illegal catch attempt");
602
- },
603
- delegateYield: function (e, r, n) {
604
- return this.delegate = {
605
- iterator: values(e),
606
- resultName: r,
607
- nextLoc: n
608
- }, "next" === this.method && (this.arg = t), y;
609
- }
610
- }, e;
487
+ throw new TypeError(typeof e + " is not iterable");
611
488
  }
612
489
  function _setPrototypeOf(t, e) {
613
490
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
614
491
  return t.__proto__ = e, t;
615
492
  }, _setPrototypeOf(t, e);
616
493
  }
494
+ function _regeneratorRuntime() {
495
+
496
+ var r = _regenerator(),
497
+ e = r.m(_regeneratorRuntime),
498
+ t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
499
+ function n(r) {
500
+ var e = "function" == typeof r && r.constructor;
501
+ return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
502
+ }
503
+ var o = {
504
+ throw: 1,
505
+ return: 2,
506
+ break: 3,
507
+ continue: 3
508
+ };
509
+ function a(r) {
510
+ var e, t;
511
+ return function (n) {
512
+ e || (e = {
513
+ stop: function () {
514
+ return t(n.a, 2);
515
+ },
516
+ catch: function () {
517
+ return n.v;
518
+ },
519
+ abrupt: function (r, e) {
520
+ return t(n.a, o[r], e);
521
+ },
522
+ delegateYield: function (r, o, a) {
523
+ return e.resultName = o, t(n.d, _regeneratorValues(r), a);
524
+ },
525
+ finish: function (r) {
526
+ return t(n.f, r);
527
+ }
528
+ }, t = function (r, t, o) {
529
+ n.p = e.prev, n.n = e.next;
530
+ try {
531
+ return r(t, o);
532
+ } finally {
533
+ e.next = n.n;
534
+ }
535
+ }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
536
+ try {
537
+ return r.call(this, e);
538
+ } finally {
539
+ n.p = e.prev, n.n = e.next;
540
+ }
541
+ };
542
+ }
543
+ return (_regeneratorRuntime = function () {
544
+ return {
545
+ wrap: function (e, t, n, o) {
546
+ return r.w(a(e), t, n, o && o.reverse());
547
+ },
548
+ isGeneratorFunction: n,
549
+ mark: r.m,
550
+ awrap: function (r, e) {
551
+ return new _OverloadYield(r, e);
552
+ },
553
+ AsyncIterator: _regeneratorAsyncIterator,
554
+ async: function (r, e, t, o, u) {
555
+ return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
556
+ },
557
+ keys: _regeneratorKeys,
558
+ values: _regeneratorValues
559
+ };
560
+ })();
561
+ }
617
562
 
618
563
  var _excluded$e = ["content", "color", "icon"];
619
564
  var bgColors = {
@@ -3659,7 +3604,7 @@ var UserMenuItemSentryRecording = function UserMenuItemSentryRecording(_ref) {
3659
3604
  setOpen(true);
3660
3605
  };
3661
3606
  var enableHTMLRecording = /*#__PURE__*/function () {
3662
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3607
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3663
3608
  var _yield$import, replayIntegration;
3664
3609
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3665
3610
  while (1) switch (_context.prev = _context.next) {
@@ -3706,7 +3651,7 @@ var UserMenuItemSentryRecording = function UserMenuItemSentryRecording(_ref) {
3706
3651
  };
3707
3652
  }();
3708
3653
  var enableHTMLAndCanvasRecording = /*#__PURE__*/function () {
3709
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
3654
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
3710
3655
  var _yield$import2, replayIntegration, replayCanvasIntegration;
3711
3656
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3712
3657
  while (1) switch (_context2.prev = _context2.next) {
@@ -4143,7 +4088,7 @@ var BaseSelect = styled(Select, {
4143
4088
  return Object.assign({}, !skipLocalStyling && tooltipContainerStyles(theme, !!isEnabled, hasBackgroundColor));
4144
4089
  });
4145
4090
  // Style the menu pop-over
4146
- var StyledSelect = styled( /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
4091
+ var StyledSelect = styled(/*#__PURE__*/React.forwardRef(function (_ref3, ref) {
4147
4092
  var className = _ref3.className,
4148
4093
  additionalStyling = _ref3.additionalStyling,
4149
4094
  props = _objectWithoutPropertiesLoose(_ref3, _excluded2);
@@ -4223,7 +4168,7 @@ var tooltipContainerStyles = function tooltipContainerStyles(theme, isEnabled, h
4223
4168
  '& .MuiOutlinedInput-notchedOutline': {
4224
4169
  borderColor: 'transparent!important'
4225
4170
  },
4226
- '&:hover': {
4171
+ '&:hover:not(.Mui-disabled)': {
4227
4172
  backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill,
4228
4173
  borderRadius: 0
4229
4174
  },
@@ -4240,7 +4185,7 @@ var tooltipContainerStyles = function tooltipContainerStyles(theme, isEnabled, h
4240
4185
  paddingLeft: '8px!important'
4241
4186
  }
4242
4187
  }, theme.palette.geowebColors.tooltips.tooltipSelect.select, hasBackgroundColor && {
4243
- '&:hover': {
4188
+ '&:hover:not(.Mui-disabled)': {
4244
4189
  backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill,
4245
4190
  borderRadius: 0
4246
4191
  },
@@ -4254,7 +4199,7 @@ var tooltipContainerStyles = function tooltipContainerStyles(theme, isEnabled, h
4254
4199
  borderRadius: 0,
4255
4200
  backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill
4256
4201
  },
4257
- '&:hover&.MuiButton-root': {
4202
+ '&:hover:not(.Mui-disabled)&.MuiButton-root': {
4258
4203
  backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill
4259
4204
  },
4260
4205
  '&:focus&.MuiButton-root': {
@@ -4974,6 +4919,7 @@ var FilterChip = function FilterChip(_ref) {
4974
4919
  _ref$handleClick = _ref.handleClick,
4975
4920
  handleClick = _ref$handleClick === void 0 ? function () {} : _ref$handleClick,
4976
4921
  onClick = _ref.onClick,
4922
+ onClickIcon = _ref.onClickIcon,
4977
4923
  actionIcon = _ref.actionIcon,
4978
4924
  _ref$size = _ref.size,
4979
4925
  size = _ref$size === void 0 ? 'small' : _ref$size;
@@ -4982,6 +4928,9 @@ var FilterChip = function FilterChip(_ref) {
4982
4928
  var clickHandler = function clickHandler() {
4983
4929
  return onClick ? onClick(chipRef.current) : handleClick(id, isSelected);
4984
4930
  };
4931
+ var clickIconHandler = function clickIconHandler() {
4932
+ return onClickIcon == null ? void 0 : onClickIcon(chipRef.current);
4933
+ };
4985
4934
  return jsx(Chip, {
4986
4935
  ref: chipRef,
4987
4936
  size: size,
@@ -4991,7 +4940,7 @@ var FilterChip = function FilterChip(_ref) {
4991
4940
  variant: isSelected ? 'filled' : 'outlined',
4992
4941
  color: isSelected ? 'secondary' : 'default',
4993
4942
  sx: {
4994
- borderColor: "" + theme.palette.geowebColors.buttons.tertiary["default"].borderColor,
4943
+ borderColor: isDisabled ? 'none' : theme.palette.geowebColors.buttons.tertiary["default"].borderColor,
4995
4944
  padding: '0px 4px',
4996
4945
  '& .MuiSvgIcon-root, .MuiChip-deleteIcon': {
4997
4946
  fill: isSelected ? theme.palette.geowebColors.buttons.secondary.active.color : theme.palette.geowebColors.buttons.flat["default"].color,
@@ -5002,11 +4951,14 @@ var FilterChip = function FilterChip(_ref) {
5002
4951
  },
5003
4952
  '&.MuiChip-sizeMedium > .MuiChip-label': {
5004
4953
  overflow: 'visible'
4954
+ },
4955
+ '&.Mui-disabled': {
4956
+ borderColor: 'transparent'
5005
4957
  }
5006
4958
  },
5007
4959
  onClick: clickHandler,
5008
4960
  deleteIcon: actionIcon,
5009
- onDelete: actionIcon ? clickHandler : undefined
4961
+ onDelete: onClickIcon ? clickIconHandler : undefined
5010
4962
  });
5011
4963
  };
5012
4964
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "12.9.1",
3
+ "version": "12.11.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/theme": "12.9.1",
11
+ "@opengeoweb/theme": "12.11.0",
12
12
  "react-draggable": "^4.4.6",
13
13
  "re-resizable": "^6.9.11",
14
14
  "lodash": "^4.17.21",
@@ -24,6 +24,9 @@
24
24
  "@emotion/react": "*",
25
25
  "@emotion/styled": "*"
26
26
  },
27
+ "devDependencies": {
28
+ "eslint-plugin-storybook": "9.0.17"
29
+ },
27
30
  "module": "./index.esm.js",
28
31
  "type": "module",
29
32
  "main": "./index.esm.js",
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import Avatar from './Avatar';
3
3
  declare const meta: Meta<typeof Avatar>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ConfirmationButtons } from './ConfirmationButtons';
3
3
  declare const meta: Meta<typeof ConfirmationButtons>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { CustomAccordion } from './CustomAccordion';
3
3
  declare const meta: Meta<typeof CustomAccordion>;
4
4
  export default meta;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  import { CustomDialog } from './CustomDialog';
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { CustomDialogHeader } from './CustomDialogHeader';
3
3
  type Story = StoryObj<typeof CustomDialogHeader>;
4
4
  declare const meta: Meta<typeof CustomDialogHeader>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { CustomIconButton } from './CustomIconButton';
3
3
  declare const meta: Meta<typeof CustomIconButton>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { CustomSlider } from './CustomSlider';
3
3
  declare const meta: Meta<typeof CustomSlider>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { CustomToggleButton } from './CustomToggleButton';
3
3
  declare const meta: Meta<typeof CustomToggleButton>;
4
4
  export default meta;
@@ -1,8 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { TooltipProps } from '@mui/material';
3
3
  export declare const defaultDelay = 1000;
4
- export declare const useControlledTooltip: () => [
5
- boolean,
6
- React.Dispatch<React.SetStateAction<boolean>>
7
- ];
4
+ export declare const useControlledTooltip: () => [boolean, React.Dispatch<React.SetStateAction<boolean>>];
8
5
  export declare const CustomTooltip: React.FC<TooltipProps>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ErrorBoundary } from './ErrorBoundary';
3
3
  declare const meta: Meta<typeof ErrorBoundary>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import Filter from './Filter';
3
3
  declare const meta: Meta<typeof Filter>;
4
4
  export default meta;
@@ -7,6 +7,7 @@ export interface FilterChipProps {
7
7
  handleClick?: (label: string, isSelected?: boolean) => void;
8
8
  actionIcon?: React.ReactElement;
9
9
  onClick?: (ref: HTMLElement | null) => void;
10
+ onClickIcon?: (ref: HTMLElement | null) => void;
10
11
  size?: 'small' | 'medium';
11
12
  }
12
13
  declare const FilterChip: React.FC<FilterChipProps>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import LastUpdateTime from './LastUpdateTime';
3
3
  declare const meta: Meta<typeof LastUpdateTime>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import SearchHighlight from './SearchHighlight';
3
3
  declare const meta: Meta<typeof SearchHighlight>;
4
4
  export default meta;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BoxProps } from '@mui/material';
3
2
  interface StorybookDocsWrapperProps extends BoxProps {
4
3
  isDark?: boolean;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ToggleMenu } from './ToggleMenu';
3
3
  declare const meta: Meta<typeof ToggleMenu>;
4
4
  export default meta;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { Meta, StoryObj } from '@storybook/react';
2
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
3
3
  import { ToolContainer } from '.';
4
4
  declare const meta: Meta<typeof ToolContainer>;
5
5
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ToolHeader } from '.';
3
3
  declare const meta: Meta<typeof ToolHeader>;
4
4
  export default meta;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaperProps } from '@mui/material';
3
2
  export type HeaderSize = 'xxs' | 'xs' | 'small' | 'medium' | 'large';
4
3
  export interface ToolHeaderProps {
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { TooltipSelect } from './TooltipSelect';
3
3
  declare const meta: Meta<typeof TooltipSelect>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import CheatSheet from './CheatSheet';
3
3
  declare const meta: Meta<typeof CheatSheet>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { UserMenu } from '.';
3
3
  declare const meta: Meta<typeof UserMenu>;
4
4
  export default meta;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { usePoller } from './usePoller';
3
3
  declare const meta: Meta<typeof usePoller>;
4
4
  export default meta;
@@ -37,6 +37,7 @@ export interface ConfigType {
37
37
  GW_FEATURE_INITIALIZE_SENTRY?: boolean;
38
38
  GW_FEATURE_ENABLE_SPECIAL_THEMES?: boolean;
39
39
  GW_FEATURE_TAF_AUTOTAF_ENABLED?: boolean;
40
+ GW_WARNINGS_MARITIME_WARNINGS?: boolean;
40
41
  GW_LANGUAGE?: string;
41
42
  }
42
43
  export interface SoundingsCollection {
@@ -90,6 +91,29 @@ export interface PlotParameter {
90
91
  };
91
92
  }
92
93
  export type PlotType = 'bar' | 'line' | 'scatter';
94
+ export interface EdrParameter {
95
+ type: string;
96
+ label?: string;
97
+ description?: string;
98
+ 'data-type'?: string;
99
+ unit?: {
100
+ label: string;
101
+ symbol: {
102
+ value: string;
103
+ type: string;
104
+ };
105
+ };
106
+ observedProperty: {
107
+ label: string;
108
+ id: string;
109
+ description?: string;
110
+ };
111
+ measurementType?: {
112
+ method: string;
113
+ duration: string;
114
+ };
115
+ }
116
+ export type EdrParameters = Record<string, EdrParameter>;
93
117
  export interface EDRInstance {
94
118
  id: string;
95
119
  data_queries?: {
@@ -1,6 +1,6 @@
1
1
  import { AxiosError } from 'axios';
2
2
  export declare const DEFAULT_ERROR_MESSAGE = "An error has occurred";
3
- export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError<unknown, any>;
3
+ export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError;
4
4
  export declare const isAxiosAuthError: (error: AxiosError | Error) => boolean;
5
5
  export declare const getAxiosErrorMessage: (error: AxiosError) => string;
6
6
  export declare const getErrorMessage: (error: Error | AxiosError) => string;
@@ -198,7 +198,7 @@ export declare const differenceInMinutes: (dateLeft: Date | number, dateRight: D
198
198
  * @param dateRight - the earlier date
199
199
  * @returns {number} the number of hours
200
200
  */
201
- export declare const differenceInHours: (dateLeft: Date | number, dateRight: Date | number, roundingMethod?: 'ceil' | 'floor' | 'round' | 'trunc') => number;
201
+ export declare const differenceInHours: (dateLeft: Date | number, dateRight: Date | number, roundingMethod?: "ceil" | "floor" | "round" | "trunc") => number;
202
202
  /**
203
203
  * Finds the number of seconds between to dates
204
204
  *
@@ -1,5 +0,0 @@
1
- export * from './ErrorBoundary/ErrorBoundary.stories';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;