@hortiview/shared-components 0.0.4540 → 0.0.4721
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/README.md +101 -29
- package/dist/{ListAreaService-CFOmATRF.js → ListAreaService-BQCdQv7a.js} +5 -5
- package/dist/assets/{main.css → DeleteModal.css} +2 -2
- package/dist/assets/Disclaimer.css +1 -0
- package/dist/assets/HeaderFilter.css +1 -0
- package/dist/assets/Scrollbar.css +1 -0
- package/dist/{component-D1YrRAXe.js → component-DCtofpGS.js} +61 -54
- package/dist/components/BaseView/BaseView.js +2 -2
- package/dist/components/BaseView/BaseView.test.js +15 -14
- package/dist/components/BasicHeading/BasicHeading.d.ts +2 -5
- package/dist/components/BasicHeading/BasicHeading.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.test.js +33 -333
- package/dist/components/BlockView/BlockView.js +5 -5
- package/dist/components/BlockView/BlockView.test.js +15 -14
- package/dist/components/DeleteModal/DeleteModal.d.ts +65 -0
- package/dist/components/DeleteModal/DeleteModal.js +4721 -0
- package/dist/components/DeleteModal/DeleteModal.test.d.ts +1 -0
- package/dist/components/DeleteModal/DeleteModal.test.js +85 -0
- package/dist/components/Disclaimer/Disclaimer.d.ts +33 -0
- package/dist/components/Disclaimer/Disclaimer.js +24 -0
- package/dist/components/Disclaimer/Disclaimer.test.d.ts +1 -0
- package/dist/components/Disclaimer/Disclaimer.test.js +13 -0
- package/dist/components/EmptyView/EmptyView.js +4 -4
- package/dist/components/EmptyView/EmptyView.test.js +14 -13
- package/dist/components/HashTabView/HashTabView.js +5 -5
- package/dist/components/HashTabView/HashTabView.test.js +9 -8
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +33 -0
- package/dist/components/HeaderFilter/HeaderFilter.js +7606 -0
- package/dist/components/HeaderFilter/HeaderFilter.test.d.ts +1 -0
- package/dist/components/HeaderFilter/HeaderFilter.test.js +46 -0
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/Iconify/Iconify.test.js +8 -7
- package/dist/components/ListArea/ListArea.js +298 -5351
- package/dist/components/ListArea/ListArea.test.js +4 -3
- package/dist/components/ListArea/ListAreaService.js +3 -3
- package/dist/components/Scrollbar/Scrollbar.d.ts +2 -0
- package/dist/components/Scrollbar/Scrollbar.js +9 -0
- package/dist/components/Scrollbar/scrollbar.test.d.ts +1 -0
- package/dist/components/Scrollbar/scrollbar.test.js +15 -0
- package/dist/components/SearchBar/SearchBar.js +2052 -3
- package/dist/components/SearchBar/SearchBar.test.js +16 -15
- package/dist/components/VerticalDivider/VerticalDivider.test.js +8 -7
- package/dist/{index.es-Cv6meSAn.js → index.es-3I3oam0G.js} +1 -1
- package/dist/{index.es-WZ1mqvGz.js → index.es-BahjEG5L.js} +104 -97
- package/dist/index.es-BcHAMD5J.js +5068 -0
- package/dist/index.es-C3EKMb0J.js +305 -0
- package/dist/{index.es-CUWXKh7P.js → index.es-CcfZlo4c.js} +8 -8
- package/dist/index.es-DVNdCQvl.js +1192 -0
- package/dist/{index.es-mBp_Btvi.js → index.es-STyHqa-8.js} +2 -2
- package/dist/{index.es-DYsXox--.js → index.es-hAl7Wxm5.js} +1 -1
- package/dist/{index.es-BD4kFWFx.js → index.es-z8RCxF8n.js} +3 -3
- package/dist/main.d.ts +5 -1
- package/dist/main.js +33 -23
- package/dist/react.esm-BeDwcQWb.js +12741 -0
- package/dist/services/UtilService.d.ts +6 -0
- package/dist/services/UtilService.js +4 -0
- package/dist/services/services.test.d.ts +1 -0
- package/dist/services/services.test.js +22 -0
- package/dist/vi.JYQecGiw-BbUbJcT8.js +9795 -0
- package/package.json +1 -1
- package/dist/SearchBar-CY2zfu6B.js +0 -3232
- package/dist/vi.JYQecGiw-8gz0k16C.js +0 -22532
|
@@ -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 @@
|
|
|
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)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as b, b as I, c as
|
|
1
|
+
import { a as b, b as I, c as E, _ as v } from "./tslib.es6-BOWp4lfV.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
|
|
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
|
|
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
|
|
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 (
|
|
137
|
+
if (h(t, i))
|
|
138
138
|
return t;
|
|
139
139
|
t = t.parentElement;
|
|
140
140
|
}
|
|
141
141
|
return null;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
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
|
|
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
|
|
179
|
-
return a === void 0 && (a = window),
|
|
184
|
+
function l(a) {
|
|
185
|
+
return a === void 0 && (a = window), F(a) ? { passive: !0 } : !1;
|
|
180
186
|
}
|
|
181
|
-
function
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
245
|
-
function
|
|
250
|
+
}, f;
|
|
251
|
+
function H(a, i) {
|
|
246
252
|
i === void 0 && (i = !1);
|
|
247
|
-
var t = a.CSS, e =
|
|
248
|
-
if (typeof
|
|
249
|
-
return
|
|
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 || (
|
|
260
|
+
return e = r || s, i || (f = e), e;
|
|
255
261
|
}
|
|
256
|
-
function
|
|
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
|
|
297
|
+
var C = [
|
|
292
298
|
"touchstart",
|
|
293
299
|
"pointerdown",
|
|
294
300
|
"mousedown",
|
|
295
301
|
"keydown"
|
|
296
|
-
],
|
|
302
|
+
], T = [
|
|
297
303
|
"touchend",
|
|
298
304
|
"pointerup",
|
|
299
305
|
"mouseup",
|
|
300
306
|
"contextmenu"
|
|
301
|
-
], p = [],
|
|
307
|
+
], p = [], P = (
|
|
302
308
|
/** @class */
|
|
303
309
|
function(a) {
|
|
304
|
-
|
|
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
|
|
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
|
|
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
|
|
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 && (
|
|
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_) :
|
|
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
|
-
|
|
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_),
|
|
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 = "",
|
|
493
|
+
var d = "", _ = "";
|
|
488
494
|
if (!this.adapter.isUnbounded()) {
|
|
489
|
-
var
|
|
490
|
-
d =
|
|
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,
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
}(
|
|
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
|
|
582
|
+
var L = (
|
|
577
583
|
/** @class */
|
|
578
584
|
function(a) {
|
|
579
|
-
|
|
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
|
|
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,
|
|
609
|
+
return document.documentElement.removeEventListener(e, n, l());
|
|
604
610
|
},
|
|
605
611
|
deregisterInteractionHandler: function(e, n) {
|
|
606
|
-
return t.root.removeEventListener(e, n,
|
|
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
|
|
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,
|
|
630
|
+
return document.documentElement.addEventListener(e, n, l());
|
|
625
631
|
},
|
|
626
632
|
registerInteractionHandler: function(e, n) {
|
|
627
|
-
return t.root.addEventListener(e, n,
|
|
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
|
|
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
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
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
|
-
|
|
678
|
+
h as m,
|
|
679
|
+
U as p
|
|
673
680
|
};
|
|
@@ -6,8 +6,8 @@ import { ListArea as z } from "../ListArea/ListArea.js";
|
|
|
6
6
|
import { VerticalDivider as M } from "../VerticalDivider/VerticalDivider.js";
|
|
7
7
|
import { a as S } from "../../useBreakpoint-DROHPVxO.js";
|
|
8
8
|
import { BasicHeading as T } from "../BasicHeading/BasicHeading.js";
|
|
9
|
-
import { d as V, P as e, c as x, _ as A } from "../../index.es-
|
|
10
|
-
import { G as k } from "../../index.es-
|
|
9
|
+
import { d as V, P as e, c as x, _ as A } from "../../index.es-BahjEG5L.js";
|
|
10
|
+
import { G as k } from "../../index.es-hAl7Wxm5.js";
|
|
11
11
|
const R = /* @__PURE__ */ E({}), j = {
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated _Use `variant`='airy' instead._
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as a, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { u as l } from "../../useBreakpoint-DROHPVxO.js";
|
|
3
3
|
import { BaseView as r } from "./BaseView.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { r as i, s as e, f as p } from "../../react.esm-BeDwcQWb.js";
|
|
5
|
+
import { d as u, b as m, t as n, g as t, v as c } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
|
+
u("BaseView Test", () => {
|
|
7
|
+
m(() => {
|
|
7
8
|
c.spyOn(l, "useBreakpoints").mockReturnValue({
|
|
8
9
|
isXs: !1,
|
|
9
10
|
isSm: !1,
|
|
@@ -38,8 +39,8 @@ p("BaseView Test", () => {
|
|
|
38
39
|
component: /* @__PURE__ */ a(s, { children: "Security selected" })
|
|
39
40
|
}
|
|
40
41
|
];
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
n("render BaseView with empty view and navigation list", () => {
|
|
43
|
+
i(
|
|
43
44
|
/* @__PURE__ */ a(
|
|
44
45
|
r,
|
|
45
46
|
{
|
|
@@ -53,8 +54,8 @@ p("BaseView Test", () => {
|
|
|
53
54
|
}
|
|
54
55
|
)
|
|
55
56
|
), t(e.getByText("user.noselection")).toBeInTheDocument(), t(e.getByText("user.personal-profile")).toBeInTheDocument(), t(e.getByText("user.personal_information")).toBeInTheDocument(), t(e.getByText("user.data_privacy")).toBeInTheDocument(), t(e.getByText("user.security")).toBeInTheDocument();
|
|
56
|
-
}),
|
|
57
|
-
|
|
57
|
+
}), n("render BaseView with data and navigation list", () => {
|
|
58
|
+
i(
|
|
58
59
|
/* @__PURE__ */ a(
|
|
59
60
|
r,
|
|
60
61
|
{
|
|
@@ -68,8 +69,8 @@ p("BaseView Test", () => {
|
|
|
68
69
|
}
|
|
69
70
|
)
|
|
70
71
|
), t(e.getByText("Personal information selected")).toBeInTheDocument(), t(e.getAllByText("account_circle")).toHaveLength(2), t(e.getAllByText("user.personal_information")).toHaveLength(2);
|
|
71
|
-
}),
|
|
72
|
-
|
|
72
|
+
}), n("render BaseView with custom detail title and no detail icon", () => {
|
|
73
|
+
i(
|
|
73
74
|
/* @__PURE__ */ a(
|
|
74
75
|
r,
|
|
75
76
|
{
|
|
@@ -83,7 +84,7 @@ p("BaseView Test", () => {
|
|
|
83
84
|
}
|
|
84
85
|
)
|
|
85
86
|
), t(e.getByText("Data Privacy selected")).toBeInTheDocument(), t(e.getByText("Data Privacy 2000")).toBeInTheDocument(), t(e.getAllByText("privacy_tip")).toHaveLength(1), t(e.getAllByText("user.data_privacy")).toHaveLength(1);
|
|
86
|
-
}),
|
|
87
|
+
}), n("hide empty view when screen is small", () => {
|
|
87
88
|
c.spyOn(l, "useBreakpoints").mockReturnValue({
|
|
88
89
|
isXs: !1,
|
|
89
90
|
isSm: !0,
|
|
@@ -91,7 +92,7 @@ p("BaseView Test", () => {
|
|
|
91
92
|
isLg: !1,
|
|
92
93
|
isXlg: !1,
|
|
93
94
|
active: "sm"
|
|
94
|
-
}),
|
|
95
|
+
}), i(
|
|
95
96
|
/* @__PURE__ */ a(
|
|
96
97
|
r,
|
|
97
98
|
{
|
|
@@ -105,8 +106,8 @@ p("BaseView Test", () => {
|
|
|
105
106
|
}
|
|
106
107
|
)
|
|
107
108
|
), t(e.queryByText("user.noselection")).not.toBeInTheDocument();
|
|
108
|
-
}),
|
|
109
|
-
|
|
109
|
+
}), n("render BaseView with selected detail section", () => {
|
|
110
|
+
i(
|
|
110
111
|
/* @__PURE__ */ a(
|
|
111
112
|
r,
|
|
112
113
|
{
|
|
@@ -119,6 +120,6 @@ p("BaseView Test", () => {
|
|
|
119
120
|
routerLinkElement: void 0
|
|
120
121
|
}
|
|
121
122
|
)
|
|
122
|
-
),
|
|
123
|
+
), p.click(e.getAllByRole("option")[1]), t(e.getByText("Data Privacy selected")).toBeInTheDocument();
|
|
123
124
|
});
|
|
124
125
|
});
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
1
2
|
export type BasicHeadingProps = {
|
|
2
3
|
/**
|
|
3
4
|
* the text content of the heading
|
|
4
5
|
*/
|
|
5
6
|
heading: string;
|
|
6
|
-
/**
|
|
7
|
-
* optional actions on the right side of the header
|
|
8
|
-
*/
|
|
9
|
-
children?: JSX.Element | JSX.Element[];
|
|
10
7
|
/**
|
|
11
8
|
* optional margin bottom
|
|
12
9
|
*/
|
|
@@ -45,4 +42,4 @@ export type BasicHeadingProps = {
|
|
|
45
42
|
*/
|
|
46
43
|
withAvatar?: boolean;
|
|
47
44
|
};
|
|
48
|
-
export declare const BasicHeading: ({ children, marginBottom, heading, icon, className, subHeading, subHeadingLevel, invisibleButton, level, fontWeight, withAvatar, }: BasicHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const BasicHeading: ({ children, marginBottom, heading, icon, className, subHeading, subHeadingLevel, invisibleButton, level, fontWeight, withAvatar, }: PropsWithChildren<BasicHeadingProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,8 +3,8 @@ import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
|
3
3
|
import { a as C } from "../../useBreakpoint-DROHPVxO.js";
|
|
4
4
|
import { Iconify as w } from "../Iconify/Iconify.js";
|
|
5
5
|
import { AvailableCustomIcons as y } from "../../enums/AvailableCustomIcons.js";
|
|
6
|
-
import {
|
|
7
|
-
import { I as B } from "../../index.es-
|
|
6
|
+
import { c as u, b as I } from "../../index.es-z8RCxF8n.js";
|
|
7
|
+
import { I as B } from "../../index.es-3I3oam0G.js";
|
|
8
8
|
const N = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", H = "_actionButtonContainer_fwns1_16", A = "_content_fwns1_25", W = "_leadingIcon_fwns1_31", $ = "_headingWrapper_fwns1_38", x = "_headingContainer_fwns1_43", T = "_invisible_fwns1_48", j = "_withAvatar_fwns1_52", z = "_iconContainer_fwns1_57", n = {
|
|
9
9
|
pageHeader: N,
|
|
10
10
|
headlineContainer: b,
|