@hortiview/shared-components 0.0.4540 → 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.
- package/README.md +101 -29
- package/dist/BlockView.module-8kbPxxc4.js +15 -0
- package/dist/HashTabView.module-BY0tbl3B.js +13 -0
- package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
- package/dist/_getTag-DNUtgXkb.js +136 -0
- package/dist/_stringToPath-BfzwTbL6.js +54 -0
- package/dist/assets/{main.css → DeleteModal.css} +1 -1
- package/dist/assets/HeaderFilter.css +1 -0
- package/dist/assets/Scrollbar.css +1 -0
- package/dist/assets/disclaimer.css +1 -0
- package/dist/baseView.module-DXWalo9p.js +7 -0
- package/dist/basicHeading.module-ClcvD7x2.js +16 -0
- package/dist/{component-D1YrRAXe.js → component-Rx4bNsGO.js} +61 -54
- package/dist/components/BaseView/BaseView.js +28 -30
- package/dist/components/BaseView/BaseView.test.js +16 -15
- package/dist/components/BasicHeading/BasicHeading.d.ts +2 -5
- package/dist/components/BasicHeading/BasicHeading.js +40 -51
- package/dist/components/BasicHeading/BasicHeading.test.js +33 -333
- package/dist/components/BlockView/BlockView.js +41 -51
- package/dist/components/BlockView/BlockView.test.js +15 -14
- package/dist/components/DeleteModal/DeleteModal.d.ts +65 -0
- package/dist/components/DeleteModal/DeleteModal.js +4719 -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 +21 -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 +60 -68
- package/dist/components/HashTabView/HashTabView.test.js +9 -8
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +33 -0
- package/dist/components/HeaderFilter/HeaderFilter.js +7605 -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 +247 -5344
- package/dist/components/ListArea/ListArea.test.js +4 -3
- package/dist/components/ListArea/ListAreaService.js +56 -9
- 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 +2051 -3
- package/dist/components/SearchBar/SearchBar.test.js +16 -15
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
- package/dist/components/VerticalDivider/VerticalDivider.test.js +8 -7
- package/dist/disclaimer.module-BZydt-Q_.js +8 -0
- package/dist/hooks/useBreakpoint.js +2 -2
- package/dist/index.es-Ba9oZK_n.js +769 -0
- package/dist/{index.es-CUWXKh7P.js → index.es-C1ojb4Lq.js} +8 -8
- package/dist/{index.es-DYsXox--.js → index.es-CNBieliG.js} +1 -1
- package/dist/index.es-CQ3ep412.js +305 -0
- package/dist/{index.es-mBp_Btvi.js → index.es-CVCp4d0C.js} +2 -2
- package/dist/{index.es-WZ1mqvGz.js → index.es-Cct4Uapb.js} +106 -99
- package/dist/index.es-Cj9DW-2T.js +430 -0
- package/dist/{index.es-BD4kFWFx.js → index.es-Cm4X20_S.js} +4 -4
- package/dist/{index.es-Cv6meSAn.js → index.es-InSNsV4f.js} +1 -1
- package/dist/index.es-L0ZCcbUf.js +4939 -0
- package/dist/listArea.module-B04TR5bj.js +14 -0
- package/dist/main.d.ts +5 -0
- package/dist/main.js +33 -23
- package/dist/react.esm-BeDwcQWb.js +12741 -0
- package/dist/searchBar.module-9gKyrZRT.js +7 -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/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
- package/dist/{useBreakpoint-DROHPVxO.js → useBreakpoint-DyAmuka7.js} +2 -2
- package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
- package/dist/vi.JYQecGiw-BbUbJcT8.js +9795 -0
- package/package.json +1 -1
- package/dist/ListAreaService-CFOmATRF.js +0 -68
- package/dist/SearchBar-CY2zfu6B.js +0 -3232
- package/dist/vi.JYQecGiw-8gz0k16C.js +0 -22532
- /package/dist/assets/{BaseView.css → baseView.css} +0 -0
- /package/dist/assets/{BasicHeading.css → basicHeading.css} +0 -0
- /package/dist/assets/{ListAreaService.css → listArea.css} +0 -0
- /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
- /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,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 {
|
|
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
|
|
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
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../assets/BaseView.css";
|
|
2
1
|
import { jsx as p, Fragment as $, jsxs as G } from "react/jsx-runtime";
|
|
3
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 {
|
|
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
|
|
10
|
-
import { G as k } from "../../index.es-
|
|
11
|
-
const R = /* @__PURE__ */ E({}),
|
|
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:
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
164
|
+
}, U = {
|
|
165
165
|
/**
|
|
166
166
|
* Content to be rendered inside the GridRow. Accepts any valid markup.
|
|
167
167
|
*
|
|
@@ -174,7 +174,7 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
174
174
|
* Defaults to **undefined**.
|
|
175
175
|
*/
|
|
176
176
|
className: e.string
|
|
177
|
-
},
|
|
177
|
+
}, J = {
|
|
178
178
|
children: null,
|
|
179
179
|
className: void 0
|
|
180
180
|
}, w = /* @__PURE__ */ P((c, u) => {
|
|
@@ -195,20 +195,20 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
195
195
|
fullHeight: t,
|
|
196
196
|
rowGap: i,
|
|
197
197
|
columnGap: n
|
|
198
|
-
}), [n, t, i]),
|
|
199
|
-
O(u, () =>
|
|
198
|
+
}), [n, t, i]), v = H();
|
|
199
|
+
O(u, () => v.current, []);
|
|
200
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
201
|
return /* @__PURE__ */ b.createElement(R.Provider, {
|
|
202
202
|
value: _
|
|
203
203
|
}, /* @__PURE__ */ b.createElement("div", A({
|
|
204
|
-
ref:
|
|
204
|
+
ref: v,
|
|
205
205
|
className: W
|
|
206
206
|
}, l), m));
|
|
207
207
|
});
|
|
208
208
|
w.displayName = "Grid";
|
|
209
|
-
w.propTypes =
|
|
210
|
-
w.defaultProps =
|
|
211
|
-
const
|
|
209
|
+
w.propTypes = I;
|
|
210
|
+
w.defaultProps = L;
|
|
211
|
+
const C = /* @__PURE__ */ P((c, u) => {
|
|
212
212
|
const {
|
|
213
213
|
align: o,
|
|
214
214
|
children: m,
|
|
@@ -233,9 +233,9 @@ const v = /* @__PURE__ */ P((c, u) => {
|
|
|
233
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
234
|
}, y), m);
|
|
235
235
|
});
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
C.displayName = "GridCol";
|
|
237
|
+
C.propTypes = q;
|
|
238
|
+
C.defaultProps = F;
|
|
239
239
|
const N = /* @__PURE__ */ P((c, u) => {
|
|
240
240
|
const {
|
|
241
241
|
children: o,
|
|
@@ -259,11 +259,9 @@ const N = /* @__PURE__ */ P((c, u) => {
|
|
|
259
259
|
}, n), o);
|
|
260
260
|
});
|
|
261
261
|
N.displayName = "GridRow";
|
|
262
|
-
N.propTypes =
|
|
263
|
-
N.defaultProps =
|
|
264
|
-
const
|
|
265
|
-
divider: J
|
|
266
|
-
}, ne = ({
|
|
262
|
+
N.propTypes = U;
|
|
263
|
+
N.defaultProps = J;
|
|
264
|
+
const ie = ({
|
|
267
265
|
action: c,
|
|
268
266
|
heading: u,
|
|
269
267
|
elements: o,
|
|
@@ -277,9 +275,9 @@ const J = "_divider_anyyu_1", K = {
|
|
|
277
275
|
routerLinkElement: h,
|
|
278
276
|
searchPlaceholder: g
|
|
279
277
|
}) => {
|
|
280
|
-
const { isLg: r } =
|
|
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]);
|
|
281
279
|
return /* @__PURE__ */ p(w, { className: t ?? "", fullHeight: !0, fullWidth: !0, columnGap: 0, children: /* @__PURE__ */ G(N, { children: [
|
|
282
|
-
_ && /* @__PURE__ */ G(
|
|
280
|
+
_ && /* @__PURE__ */ G(C, { desktopCol: 4, tabletCol: 12, phoneCol: 12, children: [
|
|
283
281
|
/* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
|
|
284
282
|
u && /* @__PURE__ */ p(T, { heading: u, level: 4, marginBottom: 0, children: c }),
|
|
285
283
|
/* @__PURE__ */ p(
|
|
@@ -295,9 +293,9 @@ const J = "_divider_anyyu_1", K = {
|
|
|
295
293
|
}
|
|
296
294
|
)
|
|
297
295
|
] }),
|
|
298
|
-
r && /* @__PURE__ */ p(M, { className:
|
|
296
|
+
r && /* @__PURE__ */ p(M, { className: S.divider, height: "100%" })
|
|
299
297
|
] }),
|
|
300
|
-
/* @__PURE__ */ p(
|
|
298
|
+
/* @__PURE__ */ p(C, { desktopCol: 8, tabletCol: 12, phoneCol: 12, children: /* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
|
|
301
299
|
/* @__PURE__ */ p(
|
|
302
300
|
T,
|
|
303
301
|
{
|
|
@@ -315,5 +313,5 @@ const J = "_divider_anyyu_1", K = {
|
|
|
315
313
|
] }) });
|
|
316
314
|
};
|
|
317
315
|
export {
|
|
318
|
-
|
|
316
|
+
ie as BaseView
|
|
319
317
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as a, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as l } from "../../useBreakpoint-DyAmuka7.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;
|