@hortiview/shared-components 0.0.4539 → 0.0.4624

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 (82) hide show
  1. package/README.md +101 -29
  2. package/dist/BlockView.module-8kbPxxc4.js +15 -0
  3. package/dist/HashTabView.module-BY0tbl3B.js +13 -0
  4. package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
  5. package/dist/_getTag-DNUtgXkb.js +136 -0
  6. package/dist/_stringToPath-BfzwTbL6.js +54 -0
  7. package/dist/assets/{main.css → DeleteModal.css} +2 -2
  8. package/dist/assets/HeaderFilter.css +1 -0
  9. package/dist/assets/Scrollbar.css +1 -0
  10. package/dist/assets/disclaimer.css +1 -0
  11. package/dist/baseView.module-DXWalo9p.js +7 -0
  12. package/dist/basicHeading.module-ClcvD7x2.js +16 -0
  13. package/dist/{component-D1YrRAXe.js → component-Rx4bNsGO.js} +61 -54
  14. package/dist/components/BaseView/BaseView.d.ts +5 -1
  15. package/dist/components/BaseView/BaseView.js +75 -75
  16. package/dist/components/BaseView/BaseView.test.js +15 -14
  17. package/dist/components/BasicHeading/BasicHeading.d.ts +2 -5
  18. package/dist/components/BasicHeading/BasicHeading.js +38 -49
  19. package/dist/components/BasicHeading/BasicHeading.test.js +33 -333
  20. package/dist/components/BlockView/BlockView.js +41 -51
  21. package/dist/components/BlockView/BlockView.test.js +15 -14
  22. package/dist/components/DeleteModal/DeleteModal.d.ts +65 -0
  23. package/dist/components/DeleteModal/DeleteModal.js +4719 -0
  24. package/dist/components/DeleteModal/DeleteModal.test.d.ts +1 -0
  25. package/dist/components/DeleteModal/DeleteModal.test.js +85 -0
  26. package/dist/components/Disclaimer/Disclaimer.d.ts +33 -0
  27. package/dist/components/Disclaimer/Disclaimer.js +21 -0
  28. package/dist/components/Disclaimer/Disclaimer.test.d.ts +1 -0
  29. package/dist/components/Disclaimer/Disclaimer.test.js +13 -0
  30. package/dist/components/EmptyView/EmptyView.js +4 -4
  31. package/dist/components/EmptyView/EmptyView.test.js +14 -13
  32. package/dist/components/HashTabView/HashTabView.js +60 -68
  33. package/dist/components/HashTabView/HashTabView.test.js +9 -8
  34. package/dist/components/HeaderFilter/HeaderFilter.d.ts +33 -0
  35. package/dist/components/HeaderFilter/HeaderFilter.js +7605 -0
  36. package/dist/components/HeaderFilter/HeaderFilter.test.d.ts +1 -0
  37. package/dist/components/HeaderFilter/HeaderFilter.test.js +46 -0
  38. package/dist/components/Iconify/Iconify.js +1 -1
  39. package/dist/components/Iconify/Iconify.test.js +8 -7
  40. package/dist/components/ListArea/ListArea.js +247 -5344
  41. package/dist/components/ListArea/ListArea.test.js +4 -3
  42. package/dist/components/ListArea/ListAreaService.js +56 -9
  43. package/dist/components/Scrollbar/Scrollbar.d.ts +2 -0
  44. package/dist/components/Scrollbar/Scrollbar.js +9 -0
  45. package/dist/components/Scrollbar/scrollbar.test.d.ts +1 -0
  46. package/dist/components/Scrollbar/scrollbar.test.js +15 -0
  47. package/dist/components/SearchBar/SearchBar.js +2051 -3
  48. package/dist/components/SearchBar/SearchBar.test.js +16 -15
  49. package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
  50. package/dist/components/VerticalDivider/VerticalDivider.test.js +8 -7
  51. package/dist/disclaimer.module-BZydt-Q_.js +8 -0
  52. package/dist/index.es-Ba9oZK_n.js +769 -0
  53. package/dist/{index.es-CUWXKh7P.js → index.es-C1ojb4Lq.js} +8 -8
  54. package/dist/{index.es-DYsXox--.js → index.es-CNBieliG.js} +1 -1
  55. package/dist/index.es-CQ3ep412.js +305 -0
  56. package/dist/{index.es-mBp_Btvi.js → index.es-CVCp4d0C.js} +2 -2
  57. package/dist/{index.es-WZ1mqvGz.js → index.es-Cct4Uapb.js} +106 -99
  58. package/dist/index.es-Cj9DW-2T.js +430 -0
  59. package/dist/{index.es-BD4kFWFx.js → index.es-Cm4X20_S.js} +4 -4
  60. package/dist/{index.es-Cv6meSAn.js → index.es-InSNsV4f.js} +1 -1
  61. package/dist/index.es-L0ZCcbUf.js +4939 -0
  62. package/dist/listArea.module-B04TR5bj.js +14 -0
  63. package/dist/main.d.ts +6 -0
  64. package/dist/main.js +33 -23
  65. package/dist/react.esm-BeDwcQWb.js +12741 -0
  66. package/dist/searchBar.module-9gKyrZRT.js +7 -0
  67. package/dist/services/UtilService.d.ts +6 -0
  68. package/dist/services/UtilService.js +4 -0
  69. package/dist/services/services.test.d.ts +1 -0
  70. package/dist/services/services.test.js +22 -0
  71. package/dist/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
  72. package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
  73. package/dist/vi.JYQecGiw-BbUbJcT8.js +9795 -0
  74. package/package.json +1 -1
  75. package/dist/ListAreaService-CFOmATRF.js +0 -68
  76. package/dist/SearchBar-CY2zfu6B.js +0 -3232
  77. package/dist/vi.JYQecGiw-8gz0k16C.js +0 -22532
  78. /package/dist/assets/{BaseView.css → baseView.css} +0 -0
  79. /package/dist/assets/{BasicHeading.css → basicHeading.css} +0 -0
  80. /package/dist/assets/{ListAreaService.css → listArea.css} +0 -0
  81. /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
  82. /package/dist/assets/{VerticalDivider.css → verticalDivider.css} +0 -0
@@ -0,0 +1 @@
1
+ ._filterSelect_923nc_1{width:300px;margin-left:10px}
@@ -0,0 +1 @@
1
+ ._scrollbarY_1m6g8_1{overflow-y:auto}._scrollbarX_1m6g8_5{overflow-x:auto}._scrollbarX_1m6g8_5::-webkit-scrollbar-track,._scrollbarY_1m6g8_1::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 4px rgba(0,0,0,.2);border-radius:.5rem;margin-right:.25rem;background-color:var(--lmnt-theme-background)}._scrollbarX_1m6g8_5::-webkit-scrollbar,._scrollbarY_1m6g8_1::-webkit-scrollbar{width:.5rem}._scrollbarX_1m6g8_5::-webkit-scrollbar-thumb,._scrollbarY_1m6g8_1::-webkit-scrollbar-thumb{border-radius:.5rem;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:var(--lmnt-theme-primary-100)}
@@ -0,0 +1 @@
1
+ ._disclaimer_1k38t_1{color:var(--lmnt-theme-danger);font-style:normal;line-height:20px}._iconArea_1k38t_7{display:flex;justify-content:center}
@@ -0,0 +1,7 @@
1
+ import "./assets/baseView.css";
2
+ const i = "_divider_anyyu_1", s = {
3
+ divider: i
4
+ };
5
+ export {
6
+ s
7
+ };
@@ -0,0 +1,16 @@
1
+ import "./assets/basicHeading.css";
2
+ const n = "_pageHeader_fwns1_1", e = "_headlineContainer_fwns1_11", t = "_actionButtonContainer_fwns1_16", a = "_content_fwns1_25", i = "_leadingIcon_fwns1_31", o = "_headingWrapper_fwns1_38", _ = "_headingContainer_fwns1_43", s = "_invisible_fwns1_48", r = "_withAvatar_fwns1_52", c = "_iconContainer_fwns1_57", w = {
3
+ pageHeader: n,
4
+ headlineContainer: e,
5
+ actionButtonContainer: t,
6
+ content: a,
7
+ leadingIcon: i,
8
+ headingWrapper: o,
9
+ headingContainer: _,
10
+ invisible: s,
11
+ withAvatar: r,
12
+ iconContainer: c
13
+ };
14
+ export {
15
+ w as s
16
+ };
@@ -1,4 +1,4 @@
1
- import { a as b, b as I, c as T, _ as v } from "./tslib.es6-BOWp4lfV.js";
1
+ import { b, c as I, _ as E, a as v } from "./tslib.es6-CIXEwqhg.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2016 Google Inc.
@@ -21,7 +21,7 @@ import { a as b, b as I, c as T, _ as v } from "./tslib.es6-BOWp4lfV.js";
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
22
  * THE SOFTWARE.
23
23
  */
24
- var E = (
24
+ var S = (
25
25
  /** @class */
26
26
  function() {
27
27
  function a(i) {
@@ -87,7 +87,7 @@ var D = (
87
87
  this.root = i, this.initialize.apply(this, b([], I(e))), this.foundation = t === void 0 ? this.getDefaultFoundation() : t, this.foundation.init(), this.initialSyncWithDOM();
88
88
  }
89
89
  return a.attachTo = function(i) {
90
- return new a(i, new E({}));
90
+ return new a(i, new S({}));
91
91
  }, a.prototype.initialize = function() {
92
92
  }, a.prototype.getDefaultFoundation = function() {
93
93
  throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class");
@@ -130,21 +130,21 @@ var D = (
130
130
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
131
131
  * THE SOFTWARE.
132
132
  */
133
- function P(a, i) {
133
+ function R(a, i) {
134
134
  if (a.closest)
135
135
  return a.closest(i);
136
136
  for (var t = a; t; ) {
137
- if (S(t, i))
137
+ if (h(t, i))
138
138
  return t;
139
139
  t = t.parentElement;
140
140
  }
141
141
  return null;
142
142
  }
143
- function S(a, i) {
143
+ function h(a, i) {
144
144
  var t = a.matches || a.webkitMatchesSelector || a.msMatchesSelector;
145
145
  return t.call(a, i);
146
146
  }
147
- function M(a) {
147
+ function w(a) {
148
148
  var i = a;
149
149
  if (i.offsetParent !== null)
150
150
  return i.scrollWidth;
@@ -153,6 +153,12 @@ function M(a) {
153
153
  var e = t.scrollWidth;
154
154
  return document.documentElement.removeChild(t), e;
155
155
  }
156
+ const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
157
+ __proto__: null,
158
+ closest: R,
159
+ estimateScrollWidth: w,
160
+ matches: h
161
+ }, Symbol.toStringTag, { value: "Module" }));
156
162
  /**
157
163
  * @license
158
164
  * Copyright 2019 Google Inc.
@@ -175,10 +181,10 @@ function M(a) {
175
181
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
176
182
  * THE SOFTWARE.
177
183
  */
178
- function f(a) {
179
- return a === void 0 && (a = window), R(a) ? { passive: !0 } : !1;
184
+ function l(a) {
185
+ return a === void 0 && (a = window), F(a) ? { passive: !0 } : !1;
180
186
  }
181
- function R(a) {
187
+ function F(a) {
182
188
  a === void 0 && (a = window);
183
189
  var i = !1;
184
190
  try {
@@ -218,7 +224,7 @@ function R(a) {
218
224
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
219
225
  * THE SOFTWARE.
220
226
  */
221
- var w = {
227
+ var V = {
222
228
  // Ripple is a special case where the "root" component is really a "mixin" of sorts,
223
229
  // given that it's an 'upgrade' to an existing component. That being said it is the root
224
230
  // CSS class that all other CSS classes derive from.
@@ -227,33 +233,33 @@ var w = {
227
233
  FG_DEACTIVATION: "mdc-ripple-upgraded--foreground-deactivation",
228
234
  ROOT: "mdc-ripple-upgraded",
229
235
  UNBOUNDED: "mdc-ripple-upgraded--unbounded"
230
- }, F = {
236
+ }, O = {
231
237
  VAR_FG_SCALE: "--mdc-ripple-fg-scale",
232
238
  VAR_FG_SIZE: "--mdc-ripple-fg-size",
233
239
  VAR_FG_TRANSLATE_END: "--mdc-ripple-fg-translate-end",
234
240
  VAR_FG_TRANSLATE_START: "--mdc-ripple-fg-translate-start",
235
241
  VAR_LEFT: "--mdc-ripple-left",
236
242
  VAR_TOP: "--mdc-ripple-top"
237
- }, g = {
243
+ }, y = {
238
244
  DEACTIVATION_TIMEOUT_MS: 225,
239
245
  FG_DEACTIVATION_MS: 150,
240
246
  INITIAL_ORIGIN_SCALE: 0.6,
241
247
  PADDING: 10,
242
248
  TAP_DELAY_MS: 300
243
249
  // Delay between touch and simulated mouse events on touch devices
244
- }, l;
245
- function V(a, i) {
250
+ }, f;
251
+ function H(a, i) {
246
252
  i === void 0 && (i = !1);
247
- var t = a.CSS, e = l;
248
- if (typeof l == "boolean" && !i)
249
- return l;
253
+ var t = a.CSS, e = f;
254
+ if (typeof f == "boolean" && !i)
255
+ return f;
250
256
  var n = t && typeof t.supports == "function";
251
257
  if (!n)
252
258
  return !1;
253
259
  var r = t.supports("--css-vars", "yes"), s = t.supports("(--css-vars: yes)") && t.supports("color", "#00000000");
254
- return e = r || s, i || (l = e), e;
260
+ return e = r || s, i || (f = e), e;
255
261
  }
256
- function O(a, i, t) {
262
+ function N(a, i, t) {
257
263
  if (!a)
258
264
  return { x: 0, y: 0 };
259
265
  var e = i.x, n = i.y, r = e + t.left, s = n + t.top, o, u;
@@ -288,20 +294,20 @@ function O(a, i, t) {
288
294
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
289
295
  * THE SOFTWARE.
290
296
  */
291
- var y = [
297
+ var C = [
292
298
  "touchstart",
293
299
  "pointerdown",
294
300
  "mousedown",
295
301
  "keydown"
296
- ], C = [
302
+ ], T = [
297
303
  "touchend",
298
304
  "pointerup",
299
305
  "mouseup",
300
306
  "contextmenu"
301
- ], p = [], H = (
307
+ ], p = [], P = (
302
308
  /** @class */
303
309
  function(a) {
304
- T(i, a);
310
+ E(i, a);
305
311
  function i(t) {
306
312
  var e = a.call(this, v(v({}, i.defaultAdapter), t)) || this;
307
313
  return e.activationAnimationHasEnded_ = !1, e.activationTimer_ = 0, e.fgDeactivationRemovalTimer_ = 0, e.fgScale_ = "0", e.frame_ = { width: 0, height: 0 }, e.initialSize_ = 0, e.layoutFrame_ = 0, e.maxRadius_ = 0, e.unboundedCoords_ = { left: 0, top: 0 }, e.activationState_ = e.defaultActivationState_(), e.activationTimerCallback_ = function() {
@@ -320,19 +326,19 @@ var y = [
320
326
  }
321
327
  return Object.defineProperty(i, "cssClasses", {
322
328
  get: function() {
323
- return w;
329
+ return V;
324
330
  },
325
331
  enumerable: !1,
326
332
  configurable: !0
327
333
  }), Object.defineProperty(i, "strings", {
328
334
  get: function() {
329
- return F;
335
+ return O;
330
336
  },
331
337
  enumerable: !1,
332
338
  configurable: !0
333
339
  }), Object.defineProperty(i, "numbers", {
334
340
  get: function() {
335
- return g;
341
+ return y;
336
342
  },
337
343
  enumerable: !1,
338
344
  configurable: !0
@@ -435,22 +441,22 @@ var y = [
435
441
  };
436
442
  }, i.prototype.registerRootHandlers_ = function(t) {
437
443
  var e = this;
438
- t && (y.forEach(function(n) {
444
+ t && (C.forEach(function(n) {
439
445
  e.adapter.registerInteractionHandler(n, e.activateHandler_);
440
446
  }), this.adapter.isUnbounded() && this.adapter.registerResizeHandler(this.resizeHandler_)), this.adapter.registerInteractionHandler("focus", this.focusHandler_), this.adapter.registerInteractionHandler("blur", this.blurHandler_);
441
447
  }, i.prototype.registerDeactivationHandlers_ = function(t) {
442
448
  var e = this;
443
- t.type === "keydown" ? this.adapter.registerInteractionHandler("keyup", this.deactivateHandler_) : C.forEach(function(n) {
449
+ t.type === "keydown" ? this.adapter.registerInteractionHandler("keyup", this.deactivateHandler_) : T.forEach(function(n) {
444
450
  e.adapter.registerDocumentInteractionHandler(n, e.deactivateHandler_);
445
451
  });
446
452
  }, i.prototype.deregisterRootHandlers_ = function() {
447
453
  var t = this;
448
- y.forEach(function(e) {
454
+ C.forEach(function(e) {
449
455
  t.adapter.deregisterInteractionHandler(e, t.activateHandler_);
450
456
  }), this.adapter.deregisterInteractionHandler("focus", this.focusHandler_), this.adapter.deregisterInteractionHandler("blur", this.blurHandler_), this.adapter.isUnbounded() && this.adapter.deregisterResizeHandler(this.resizeHandler_);
451
457
  }, i.prototype.deregisterDeactivationHandlers_ = function() {
452
458
  var t = this;
453
- this.adapter.deregisterInteractionHandler("keyup", this.deactivateHandler_), C.forEach(function(e) {
459
+ this.adapter.deregisterInteractionHandler("keyup", this.deactivateHandler_), T.forEach(function(e) {
454
460
  t.adapter.deregisterDocumentInteractionHandler(e, t.deactivateHandler_);
455
461
  });
456
462
  }, i.prototype.removeCssVars_ = function() {
@@ -484,17 +490,17 @@ var y = [
484
490
  }, i.prototype.animateActivation_ = function() {
485
491
  var t = this, e = i.strings, n = e.VAR_FG_TRANSLATE_START, r = e.VAR_FG_TRANSLATE_END, s = i.cssClasses, o = s.FG_DEACTIVATION, u = s.FG_ACTIVATION, c = i.numbers.DEACTIVATION_TIMEOUT_MS;
486
492
  this.layoutInternal_();
487
- var d = "", h = "";
493
+ var d = "", _ = "";
488
494
  if (!this.adapter.isUnbounded()) {
489
- var _ = this.getFgTranslationCoordinates_(), m = _.startPoint, A = _.endPoint;
490
- d = m.x + "px, " + m.y + "px", h = A.x + "px, " + A.y + "px";
495
+ var m = this.getFgTranslationCoordinates_(), A = m.startPoint, g = m.endPoint;
496
+ d = A.x + "px, " + A.y + "px", _ = g.x + "px, " + g.y + "px";
491
497
  }
492
- this.adapter.updateCssVariable(n, d), this.adapter.updateCssVariable(r, h), clearTimeout(this.activationTimer_), clearTimeout(this.fgDeactivationRemovalTimer_), this.rmBoundedActivationClasses_(), this.adapter.removeClass(o), this.adapter.computeBoundingRect(), this.adapter.addClass(u), this.activationTimer_ = setTimeout(function() {
498
+ this.adapter.updateCssVariable(n, d), this.adapter.updateCssVariable(r, _), clearTimeout(this.activationTimer_), clearTimeout(this.fgDeactivationRemovalTimer_), this.rmBoundedActivationClasses_(), this.adapter.removeClass(o), this.adapter.computeBoundingRect(), this.adapter.addClass(u), this.activationTimer_ = setTimeout(function() {
493
499
  return t.activationTimerCallback_();
494
500
  }, c);
495
501
  }, i.prototype.getFgTranslationCoordinates_ = function() {
496
502
  var t = this.activationState_, e = t.activationEvent, n = t.wasActivatedByPointer, r;
497
- n ? r = O(e, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()) : r = {
503
+ n ? r = N(e, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()) : r = {
498
504
  x: this.frame_.width / 2,
499
505
  y: this.frame_.height / 2
500
506
  }, r = {
@@ -510,7 +516,7 @@ var y = [
510
516
  var t = this, e = i.cssClasses.FG_DEACTIVATION, n = this.activationState_, r = n.hasDeactivationUXRun, s = n.isActivated, o = r || !s;
511
517
  o && this.activationAnimationHasEnded_ && (this.rmBoundedActivationClasses_(), this.adapter.addClass(e), this.fgDeactivationRemovalTimer_ = setTimeout(function() {
512
518
  t.adapter.removeClass(e);
513
- }, g.FG_DEACTIVATION_MS));
519
+ }, y.FG_DEACTIVATION_MS));
514
520
  }, i.prototype.rmBoundedActivationClasses_ = function() {
515
521
  var t = i.cssClasses.FG_ACTIVATION;
516
522
  this.adapter.removeClass(t), this.activationAnimationHasEnded_ = !1, this.adapter.computeBoundingRect();
@@ -549,7 +555,7 @@ var y = [
549
555
  top: Math.round(this.frame_.height / 2 - this.initialSize_ / 2)
550
556
  }, this.adapter.updateCssVariable(n, this.unboundedCoords_.left + "px"), this.adapter.updateCssVariable(r, this.unboundedCoords_.top + "px"));
551
557
  }, i;
552
- }(E)
558
+ }(S)
553
559
  );
554
560
  /**
555
561
  * @license
@@ -573,10 +579,10 @@ var y = [
573
579
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
574
580
  * THE SOFTWARE.
575
581
  */
576
- var U = (
582
+ var L = (
577
583
  /** @class */
578
584
  function(a) {
579
- T(i, a);
585
+ E(i, a);
580
586
  function i() {
581
587
  var t = a !== null && a.apply(this, arguments) || this;
582
588
  return t.disabled = !1, t;
@@ -591,7 +597,7 @@ var U = (
591
597
  return t.root.classList.add(e);
592
598
  },
593
599
  browserSupportsCssVars: function() {
594
- return V(window);
600
+ return H(window);
595
601
  },
596
602
  computeBoundingRect: function() {
597
603
  return t.root.getBoundingClientRect();
@@ -600,10 +606,10 @@ var U = (
600
606
  return t.root.contains(e);
601
607
  },
602
608
  deregisterDocumentInteractionHandler: function(e, n) {
603
- return document.documentElement.removeEventListener(e, n, f());
609
+ return document.documentElement.removeEventListener(e, n, l());
604
610
  },
605
611
  deregisterInteractionHandler: function(e, n) {
606
- return t.root.removeEventListener(e, n, f());
612
+ return t.root.removeEventListener(e, n, l());
607
613
  },
608
614
  deregisterResizeHandler: function(e) {
609
615
  return window.removeEventListener("resize", e);
@@ -612,7 +618,7 @@ var U = (
612
618
  return { x: window.pageXOffset, y: window.pageYOffset };
613
619
  },
614
620
  isSurfaceActive: function() {
615
- return S(t.root, ":active");
621
+ return h(t.root, ":active");
616
622
  },
617
623
  isSurfaceDisabled: function() {
618
624
  return !!t.disabled;
@@ -621,10 +627,10 @@ var U = (
621
627
  return !!t.unbounded;
622
628
  },
623
629
  registerDocumentInteractionHandler: function(e, n) {
624
- return document.documentElement.addEventListener(e, n, f());
630
+ return document.documentElement.addEventListener(e, n, l());
625
631
  },
626
632
  registerInteractionHandler: function(e, n) {
627
- return t.root.addEventListener(e, n, f());
633
+ return t.root.addEventListener(e, n, l());
628
634
  },
629
635
  registerResizeHandler: function(e) {
630
636
  return window.addEventListener("resize", e);
@@ -652,7 +658,7 @@ var U = (
652
658
  }, i.prototype.layout = function() {
653
659
  this.foundation.layout();
654
660
  }, i.prototype.getDefaultFoundation = function() {
655
- return new H(i.createAdapter(this));
661
+ return new P(i.createAdapter(this));
656
662
  }, i.prototype.initialSyncWithDOM = function() {
657
663
  var t = this.root;
658
664
  this.unbounded = "mdcRippleIsUnbounded" in t.dataset;
@@ -662,12 +668,13 @@ var U = (
662
668
  }(D)
663
669
  );
664
670
  export {
665
- U as M,
666
- E as a,
667
- f as b,
668
- D as c,
669
- H as d,
670
- M as e,
671
+ L as M,
672
+ S as a,
673
+ D as b,
674
+ R as c,
675
+ l as d,
676
+ w as e,
671
677
  P as f,
672
- S as m
678
+ h as m,
679
+ U as p
673
680
  };
@@ -41,6 +41,10 @@ type BaseViewProps = {
41
41
  * listMaxHeight is the max height of the list, @default 'calc(100vh - 200px)'
42
42
  */
43
43
  listMaxHeight?: string;
44
+ /**
45
+ * searchPlaceholder is the placeholder of the search input, @default ''
46
+ */
47
+ searchPlaceholder?: string;
44
48
  /**
45
49
  * routerLinkElement is the element to be used for the elements link, use react-router Link component for the best experience.
46
50
  * If the element has `noNavigation=false` and the `routerLinkElement` is undefined an `<a>` tag is used.
@@ -51,5 +55,5 @@ type BaseViewProps = {
51
55
  /**
52
56
  * `BaseView` is a layout component that displays a main (a list) and a detail section.
53
57
  */
54
- export declare const BaseView: ({ action, heading, elements, emptyText, hasSearch, isSorted, className, withAvatar, listMaxHeight, pathname, routerLinkElement, }: BaseViewProps) => import("react/jsx-runtime").JSX.Element;
58
+ export declare const BaseView: ({ action, heading, elements, emptyText, hasSearch, isSorted, className, withAvatar, listMaxHeight, pathname, routerLinkElement, searchPlaceholder, }: BaseViewProps) => import("react/jsx-runtime").JSX.Element;
55
59
  export {};
@@ -1,14 +1,14 @@
1
- import "../../assets/BaseView.css";
2
- import { jsx as p, Fragment as $, jsxs as C } from "react/jsx-runtime";
3
- import G, { forwardRef as N, useMemo as g, useRef as H, useImperativeHandle as O, useContext as B, createContext as E } from "react";
1
+ import { jsx as p, Fragment as $, jsxs as G } from "react/jsx-runtime";
2
+ import b, { forwardRef as P, useMemo as f, useRef as H, useImperativeHandle as O, useContext as B, createContext as E } from "react";
4
3
  import { EmptyView as D } from "../EmptyView/EmptyView.js";
5
4
  import { ListArea as z } from "../ListArea/ListArea.js";
6
5
  import { VerticalDivider as M } from "../VerticalDivider/VerticalDivider.js";
7
- import { u as S } from "../../useBreakpoint-DyAmuka7.js";
6
+ import { s as S } from "../../baseView.module-DXWalo9p.js";
7
+ import { u as V } from "../../useBreakpoint-DyAmuka7.js";
8
8
  import { BasicHeading as T } from "../BasicHeading/BasicHeading.js";
9
- import { d as V, P as e, c as P, _ as x } from "../../index.es-WZ1mqvGz.js";
10
- import { G as k } from "../../index.es-DYsXox--.js";
11
- const R = /* @__PURE__ */ E({}), j = {
9
+ import { d as j, P as e, c as x, _ as A } from "../../index.es-Cct4Uapb.js";
10
+ import { G as k } from "../../index.es-CNBieliG.js";
11
+ const R = /* @__PURE__ */ E({}), I = {
12
12
  /**
13
13
  * @deprecated _Use `variant`='airy' instead._
14
14
  *
@@ -16,7 +16,7 @@ const R = /* @__PURE__ */ E({}), j = {
16
16
  *
17
17
  * Defaults to **undefined**.
18
18
  */
19
- airy: V(e.bool, "Grid", 'Use `variant`="airy" instead.'),
19
+ airy: j(e.bool, "Grid", 'Use `variant`="airy" instead.'),
20
20
  /**
21
21
  * Accepts GridCol or GridRow.
22
22
  *
@@ -77,7 +77,7 @@ const R = /* @__PURE__ */ E({}), j = {
77
77
  * Defaults to **'standard'**.
78
78
  */
79
79
  variant: e.oneOf(["standard", "airy", "none"])
80
- }, I = {
80
+ }, L = {
81
81
  airy: void 0,
82
82
  children: null,
83
83
  className: void 0,
@@ -89,7 +89,7 @@ const R = /* @__PURE__ */ E({}), j = {
89
89
  style: void 0,
90
90
  useMaxWidth: !1,
91
91
  variant: "standard"
92
- }, L = {
92
+ }, q = {
93
93
  /**
94
94
  * Alignment of cell within the row: top, middle, bottom. If omitted the col will stretch to the height of the row.
95
95
  *
@@ -150,7 +150,7 @@ const R = /* @__PURE__ */ E({}), j = {
150
150
  * Defaults to **'top'**.
151
151
  */
152
152
  verticalAlign: e.oneOf(["top", "middle", "bottom"])
153
- }, q = {
153
+ }, F = {
154
154
  align: void 0,
155
155
  children: null,
156
156
  className: void 0,
@@ -161,7 +161,7 @@ const R = /* @__PURE__ */ E({}), j = {
161
161
  phoneCol: null,
162
162
  tabletCol: null,
163
163
  verticalAlign: "top"
164
- }, F = {
164
+ }, U = {
165
165
  /**
166
166
  * Content to be rendered inside the GridRow. Accepts any valid markup.
167
167
  *
@@ -174,71 +174,71 @@ const R = /* @__PURE__ */ E({}), j = {
174
174
  * Defaults to **undefined**.
175
175
  */
176
176
  className: e.string
177
- }, U = {
177
+ }, J = {
178
178
  children: null,
179
179
  className: void 0
180
- }, b = /* @__PURE__ */ N((c, u) => {
180
+ }, w = /* @__PURE__ */ P((c, u) => {
181
181
  const {
182
- airy: r,
182
+ airy: o,
183
183
  children: m,
184
184
  className: d,
185
185
  columnGap: n,
186
186
  fullHeight: t,
187
187
  fullWidth: a,
188
188
  gridAlign: s,
189
- rowGap: o,
190
- style: f,
191
- useMaxWidth: i,
192
- variant: l,
193
- ...y
194
- } = c, h = r ? "airy" : l, _ = g(() => ({
189
+ rowGap: i,
190
+ style: h,
191
+ useMaxWidth: g,
192
+ variant: r,
193
+ ...l
194
+ } = c, y = o ? "airy" : r, _ = f(() => ({
195
195
  fullHeight: t,
196
- rowGap: o,
196
+ rowGap: i,
197
197
  columnGap: n
198
- }), [n, t, o]), A = H();
199
- O(u, () => A.current, []);
200
- const W = g(() => P("lmnt", "mdc-layout-grid", "lmnt-layout-grid", `mdc-layout-grid mdc-layout-grid--align-${s}`, (h === "airy" || r) && "mdc-grid-cell-wrapper-airy-tablet mdc-grid-cell-wrapper-airy-desktop", l === "none" && "mdc-grid-cell-wrapper-none-tablet mdc-grid-cell-wrapper-none-desktop mdc-grid-cell-wrapper-none-phone ", a && "lmnt-layout-grid--full-width", t && "lmnt-layout-grid--full-height", i && "lmnt-layout-grid--with-max-width", d), [r, d, h, t, a, s, i, l]);
201
- return /* @__PURE__ */ G.createElement(R.Provider, {
198
+ }), [n, t, i]), v = H();
199
+ O(u, () => v.current, []);
200
+ const W = f(() => x("lmnt", "mdc-layout-grid", "lmnt-layout-grid", `mdc-layout-grid mdc-layout-grid--align-${s}`, (y === "airy" || o) && "mdc-grid-cell-wrapper-airy-tablet mdc-grid-cell-wrapper-airy-desktop", r === "none" && "mdc-grid-cell-wrapper-none-tablet mdc-grid-cell-wrapper-none-desktop mdc-grid-cell-wrapper-none-phone ", a && "lmnt-layout-grid--full-width", t && "lmnt-layout-grid--full-height", g && "lmnt-layout-grid--with-max-width", d), [o, d, y, t, a, s, g, r]);
201
+ return /* @__PURE__ */ b.createElement(R.Provider, {
202
202
  value: _
203
- }, /* @__PURE__ */ G.createElement("div", x({
204
- ref: A,
203
+ }, /* @__PURE__ */ b.createElement("div", A({
204
+ ref: v,
205
205
  className: W
206
- }, y), m));
206
+ }, l), m));
207
207
  });
208
- b.displayName = "Grid";
209
- b.propTypes = j;
210
- b.defaultProps = I;
211
- const v = /* @__PURE__ */ N((c, u) => {
208
+ w.displayName = "Grid";
209
+ w.propTypes = I;
210
+ w.defaultProps = L;
211
+ const C = /* @__PURE__ */ P((c, u) => {
212
212
  const {
213
- align: r,
213
+ align: o,
214
214
  children: m,
215
215
  className: d,
216
216
  columns: n,
217
217
  desktopCol: t,
218
218
  gridColStart: a,
219
219
  horizontalAlign: s,
220
- order: o,
221
- phoneCol: f,
222
- style: i,
223
- tabletCol: l,
224
- verticalAlign: y,
225
- ...h
226
- } = c, _ = g(() => ({
227
- ...i,
220
+ order: i,
221
+ phoneCol: h,
222
+ style: g,
223
+ tabletCol: r,
224
+ verticalAlign: l,
225
+ ...y
226
+ } = c, _ = f(() => ({
227
+ ...g,
228
228
  gridColumnStart: a
229
- }), [a, i]);
230
- return /* @__PURE__ */ G.createElement("div", x({
229
+ }), [a, g]);
230
+ return /* @__PURE__ */ b.createElement("div", A({
231
231
  ref: u,
232
232
  style: _,
233
- className: P("lmnt", `lmnt-layout-grid__cell--vertical-align-${y}`, `lmnt-layout-grid__cell--horizontal-align-${s}`, "mdc-layout-grid__cell", !n && !f && !l && !t && ["mdc-layout-grid__cell"], o && `mdc-layout-grid__cell--order-${o}`, r && `mdc-layout-grid__cell--align-${r}`, n && [`mdc-layout-grid__cell--span-${n}`], f && [`mdc-layout-grid__cell--span-${f}-phone`], l && [`mdc-layout-grid__cell--span-${l}-tablet`], t && [`mdc-layout-grid__cell--span-${t}-desktop`], "lmnt-layout-grid__cell", d)
234
- }, h), m);
233
+ className: x("lmnt", `lmnt-layout-grid__cell--vertical-align-${l}`, `lmnt-layout-grid__cell--horizontal-align-${s}`, "mdc-layout-grid__cell", !n && !h && !r && !t && ["mdc-layout-grid__cell"], i && `mdc-layout-grid__cell--order-${i}`, o && `mdc-layout-grid__cell--align-${o}`, n && [`mdc-layout-grid__cell--span-${n}`], h && [`mdc-layout-grid__cell--span-${h}-phone`], r && [`mdc-layout-grid__cell--span-${r}-tablet`], t && [`mdc-layout-grid__cell--span-${t}-desktop`], "lmnt-layout-grid__cell", d)
234
+ }, y), m);
235
235
  });
236
- v.displayName = "GridCol";
237
- v.propTypes = L;
238
- v.defaultProps = q;
239
- const w = /* @__PURE__ */ N((c, u) => {
236
+ C.displayName = "GridCol";
237
+ C.propTypes = q;
238
+ C.defaultProps = F;
239
+ const N = /* @__PURE__ */ P((c, u) => {
240
240
  const {
241
- children: r,
241
+ children: o,
242
242
  className: m,
243
243
  style: d,
244
244
  ...n
@@ -246,56 +246,56 @@ const w = /* @__PURE__ */ N((c, u) => {
246
246
  fullHeight: t,
247
247
  rowGap: a,
248
248
  columnGap: s
249
- } = B(R), o = g(() => ({
249
+ } = B(R), i = f(() => ({
250
250
  ...d,
251
251
  height: t ? "100%" : "",
252
252
  rowGap: a,
253
253
  columnGap: s
254
254
  }), [d, t, a, s]);
255
- return /* @__PURE__ */ G.createElement("div", x({
255
+ return /* @__PURE__ */ b.createElement("div", A({
256
256
  ref: u,
257
- className: P("lmnt", "mdc-layout-grid__inner", "lmnt-layout-grid__inner", m),
258
- style: o
259
- }, n), r);
257
+ className: x("lmnt", "mdc-layout-grid__inner", "lmnt-layout-grid__inner", m),
258
+ style: i
259
+ }, n), o);
260
260
  });
261
- w.displayName = "GridRow";
262
- w.propTypes = F;
263
- w.defaultProps = U;
264
- const J = "_divider_anyyu_1", K = {
265
- divider: J
266
- }, ne = ({
261
+ N.displayName = "GridRow";
262
+ N.propTypes = U;
263
+ N.defaultProps = J;
264
+ const ie = ({
267
265
  action: c,
268
266
  heading: u,
269
- elements: r,
267
+ elements: o,
270
268
  emptyText: m,
271
269
  hasSearch: d = !0,
272
270
  isSorted: n = !0,
273
271
  className: t,
274
272
  withAvatar: a = !1,
275
273
  listMaxHeight: s = "calc(100vh - 200px)",
276
- pathname: o,
277
- routerLinkElement: f
274
+ pathname: i,
275
+ routerLinkElement: h,
276
+ searchPlaceholder: g
278
277
  }) => {
279
- const { isLg: i } = S(), l = g(() => r.find((_) => _.route === o), [o, r]), y = g(() => l?.component ?? (i ? /* @__PURE__ */ p(D, { subtitle: m }) : /* @__PURE__ */ p($, {})), [l, i, m]), h = g(() => i ? !0 : !l, [l, i]);
280
- return /* @__PURE__ */ p(b, { className: t ?? "", fullHeight: !0, fullWidth: !0, columnGap: 0, children: /* @__PURE__ */ C(w, { children: [
281
- h && /* @__PURE__ */ C(v, { desktopCol: 4, tabletCol: 12, phoneCol: 12, children: [
282
- /* @__PURE__ */ C(k, { direction: "vertical", fullWidth: !0, children: [
278
+ const { isLg: r } = V(), l = f(() => o.find((v) => v.route === i), [i, o]), y = f(() => l?.component ?? (r ? /* @__PURE__ */ p(D, { subtitle: m }) : /* @__PURE__ */ p($, {})), [l, r, m]), _ = f(() => r ? !0 : !l, [l, r]);
279
+ return /* @__PURE__ */ p(w, { className: t ?? "", fullHeight: !0, fullWidth: !0, columnGap: 0, children: /* @__PURE__ */ G(N, { children: [
280
+ _ && /* @__PURE__ */ G(C, { desktopCol: 4, tabletCol: 12, phoneCol: 12, children: [
281
+ /* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
283
282
  u && /* @__PURE__ */ p(T, { heading: u, level: 4, marginBottom: 0, children: c }),
284
283
  /* @__PURE__ */ p(
285
284
  z,
286
285
  {
287
- elements: r,
286
+ elements: o,
288
287
  hasSearch: d,
289
288
  maxHeight: s,
290
289
  isSorted: n,
291
- pathname: o,
292
- routerLinkElement: f
290
+ pathname: i,
291
+ routerLinkElement: h,
292
+ searchPlaceholder: g
293
293
  }
294
294
  )
295
295
  ] }),
296
- i && /* @__PURE__ */ p(M, { className: K.divider, height: "100%" })
296
+ r && /* @__PURE__ */ p(M, { className: S.divider, height: "100%" })
297
297
  ] }),
298
- /* @__PURE__ */ p(v, { desktopCol: 8, tabletCol: 12, phoneCol: 12, children: /* @__PURE__ */ C(k, { direction: "vertical", fullWidth: !0, children: [
298
+ /* @__PURE__ */ p(C, { desktopCol: 8, tabletCol: 12, phoneCol: 12, children: /* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
299
299
  /* @__PURE__ */ p(
300
300
  T,
301
301
  {
@@ -313,5 +313,5 @@ const J = "_divider_anyyu_1", K = {
313
313
  ] }) });
314
314
  };
315
315
  export {
316
- ne as BaseView
316
+ ie as BaseView
317
317
  };