@hortiview/shared-components 0.0.4721 → 0.0.4723
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/dist/BlockView.module-8kbPxxc4.js +15 -0
- package/dist/BlockView.module-ypKp14Lt.cjs +1 -0
- package/dist/HashTabView.module-B20c3S70.cjs +1 -0
- package/dist/HashTabView.module-BY0tbl3B.js +13 -0
- package/dist/HeaderFilter.module-DSCJz6-s.cjs +1 -0
- package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
- package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
- package/dist/_getTag-DNUtgXkb.js +136 -0
- package/dist/_getTag-DSIzMwlx.cjs +1 -0
- package/dist/_stringToPath-B-GSTJ2e.cjs +1 -0
- package/dist/_stringToPath-BfzwTbL6.js +54 -0
- package/dist/assets/DeleteModal.css +1 -1
- package/dist/baseView.module--VUY4h_X.cjs +1 -0
- package/dist/baseView.module-DXWalo9p.js +7 -0
- package/dist/basicHeading.module-BbcVMp42.cjs +1 -0
- package/dist/basicHeading.module-ClcvD7x2.js +16 -0
- package/dist/component-DJvMx3oL.cjs +148 -0
- package/dist/{component-DCtofpGS.js → component-Rx4bNsGO.js} +1 -1
- package/dist/components/BaseView/BaseView.js +28 -30
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.js +40 -51
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +41 -51
- package/dist/components/DeleteModal/DeleteModal.js +34 -36
- package/dist/components/Disclaimer/Disclaimer.js +11 -14
- package/dist/components/EmptyView/EmptyView.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +60 -68
- package/dist/components/HeaderFilter/HeaderFilter.js +628 -629
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +189 -233
- package/dist/components/ListArea/ListArea.test.js +2 -2
- package/dist/components/ListArea/ListAreaService.js +56 -9
- package/dist/components/SearchBar/SearchBar.js +47 -48
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
- package/dist/disclaimer.module-BZydt-Q_.js +8 -0
- package/dist/disclaimer.module-BfrBh-Rf.cjs +1 -0
- package/dist/hooks/useBreakpoint.js +2 -2
- package/dist/index.es-80RhGkCD.cjs +1 -0
- package/dist/index.es-Ba9oZK_n.js +769 -0
- package/dist/{index.es-CcfZlo4c.js → index.es-C1ojb4Lq.js} +1 -1
- package/dist/index.es-CEydmFbW.cjs +23 -0
- package/dist/index.es-CKdjg72r.cjs +64 -0
- package/dist/{index.es-hAl7Wxm5.js → index.es-CNBieliG.js} +1 -1
- package/dist/index.es-CPRODq-I.cjs +127 -0
- package/dist/{index.es-C3EKMb0J.js → index.es-CQ3ep412.js} +3 -3
- package/dist/index.es-CSD_u-fK.cjs +1 -0
- package/dist/{index.es-STyHqa-8.js → index.es-CVCp4d0C.js} +2 -2
- package/dist/{index.es-BahjEG5L.js → index.es-Cct4Uapb.js} +28 -28
- package/dist/index.es-Cj9DW-2T.js +430 -0
- package/dist/{index.es-z8RCxF8n.js → index.es-Cm4X20_S.js} +2 -2
- package/dist/index.es-Cqx46S1V.cjs +540 -0
- package/dist/index.es-DiO-sp-V.cjs +1 -0
- package/dist/index.es-DyXn5zZ8.cjs +1 -0
- package/dist/{index.es-3I3oam0G.js → index.es-InSNsV4f.js} +1 -1
- package/dist/index.es-J3ub0jmR.cjs +1 -0
- package/dist/{index.es-BcHAMD5J.js → index.es-L0ZCcbUf.js} +1676 -1805
- package/dist/index.es-gvcK6-6t.cjs +1 -0
- package/dist/listArea.module-B04TR5bj.js +14 -0
- package/dist/listArea.module-CMO-yRdf.cjs +1 -0
- package/dist/magic-string.es-EQkD18No.cjs +10 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +6 -6
- package/dist/react.esm-CMNZXU0t.cjs +93 -0
- package/dist/searchBar.module-9gKyrZRT.js +7 -0
- package/dist/searchBar.module-CFi8D8zn.cjs +1 -0
- package/dist/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
- package/dist/tslib.es6-D1TYK0An.cjs +1 -0
- package/dist/{useBreakpoint-DROHPVxO.js → useBreakpoint-DyAmuka7.js} +2 -2
- package/dist/useBreakpoint-PUopk3AO.cjs +1 -0
- package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
- package/dist/verticalDivider.module-Ciw9Fnt1.cjs +1 -0
- package/dist/vi.JYQecGiw-M1q0RI3O.cjs +512 -0
- package/package.json +1 -1
- package/dist/ListAreaService-BQCdQv7a.js +0 -68
- package/dist/index.es-DVNdCQvl.js +0 -1192
- /package/dist/assets/{BaseView.css → baseView.css} +0 -0
- /package/dist/assets/{BasicHeading.css → basicHeading.css} +0 -0
- /package/dist/assets/{Disclaimer.css → disclaimer.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,148 @@
|
|
|
1
|
+
"use strict";const d=require("./tslib.es6-D1TYK0An.cjs");/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2016 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
* furnished to do so, subject to the following conditions:
|
|
11
|
+
*
|
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
|
13
|
+
* all copies or substantial portions of the Software.
|
|
14
|
+
*
|
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
* THE SOFTWARE.
|
|
22
|
+
*/var h=function(){function a(i){i===void 0&&(i={}),this.adapter=i}return Object.defineProperty(a,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(a,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(a,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(a,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),a.prototype.init=function(){},a.prototype.destroy=function(){},a}();/**
|
|
23
|
+
* @license
|
|
24
|
+
* Copyright 2016 Google Inc.
|
|
25
|
+
*
|
|
26
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
27
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
28
|
+
* in the Software without restriction, including without limitation the rights
|
|
29
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
30
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
31
|
+
* furnished to do so, subject to the following conditions:
|
|
32
|
+
*
|
|
33
|
+
* The above copyright notice and this permission notice shall be included in
|
|
34
|
+
* all copies or substantial portions of the Software.
|
|
35
|
+
*
|
|
36
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
37
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
38
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
39
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
40
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
41
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
42
|
+
* THE SOFTWARE.
|
|
43
|
+
*/var S=function(){function a(i,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];this.root=i,this.initialize.apply(this,d.__spreadArray([],d.__read(e))),this.foundation=t===void 0?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return a.attachTo=function(i){return new a(i,new h({}))},a.prototype.initialize=function(){},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(i,t,e){this.root.addEventListener(i,t,e)},a.prototype.unlisten=function(i,t,e){this.root.removeEventListener(i,t,e)},a.prototype.emit=function(i,t,e){e===void 0&&(e=!1);var n;typeof CustomEvent=="function"?n=new CustomEvent(i,{bubbles:e,detail:t}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(i,e,!1,t)),this.root.dispatchEvent(n)},a}();/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2018 Google Inc.
|
|
46
|
+
*
|
|
47
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
48
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
49
|
+
* in the Software without restriction, including without limitation the rights
|
|
50
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
51
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
52
|
+
* furnished to do so, subject to the following conditions:
|
|
53
|
+
*
|
|
54
|
+
* The above copyright notice and this permission notice shall be included in
|
|
55
|
+
* all copies or substantial portions of the Software.
|
|
56
|
+
*
|
|
57
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
58
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
59
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
60
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
61
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
62
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
63
|
+
* THE SOFTWARE.
|
|
64
|
+
*/function b(a,i){if(a.closest)return a.closest(i);for(var t=a;t;){if(_(t,i))return t;t=t.parentElement}return null}function _(a,i){var t=a.matches||a.webkitMatchesSelector||a.msMatchesSelector;return t.call(a,i)}function D(a){var i=a;if(i.offsetParent!==null)return i.scrollWidth;var t=i.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);var e=t.scrollWidth;return document.documentElement.removeChild(t),e}const R=Object.freeze(Object.defineProperty({__proto__:null,closest:b,estimateScrollWidth:D,matches:_},Symbol.toStringTag,{value:"Module"}));/**
|
|
65
|
+
* @license
|
|
66
|
+
* Copyright 2019 Google Inc.
|
|
67
|
+
*
|
|
68
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
69
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
70
|
+
* in the Software without restriction, including without limitation the rights
|
|
71
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
72
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
73
|
+
* furnished to do so, subject to the following conditions:
|
|
74
|
+
*
|
|
75
|
+
* The above copyright notice and this permission notice shall be included in
|
|
76
|
+
* all copies or substantial portions of the Software.
|
|
77
|
+
*
|
|
78
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
79
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
80
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
81
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
82
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
83
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
84
|
+
* THE SOFTWARE.
|
|
85
|
+
*/function l(a){return a===void 0&&(a=window),F(a)?{passive:!0}:!1}function F(a){a===void 0&&(a=window);var i=!1;try{var t={get passive(){return i=!0,!1}},e=function(){};a.document.addEventListener("test",e,t),a.document.removeEventListener("test",e,t)}catch{i=!1}return i}/**
|
|
86
|
+
* @license
|
|
87
|
+
* Copyright 2016 Google Inc.
|
|
88
|
+
*
|
|
89
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
90
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
91
|
+
* in the Software without restriction, including without limitation the rights
|
|
92
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
93
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
94
|
+
* furnished to do so, subject to the following conditions:
|
|
95
|
+
*
|
|
96
|
+
* The above copyright notice and this permission notice shall be included in
|
|
97
|
+
* all copies or substantial portions of the Software.
|
|
98
|
+
*
|
|
99
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
100
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
101
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
102
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
103
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
104
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
105
|
+
* THE SOFTWARE.
|
|
106
|
+
*/var w={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},V={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},C={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},p;function O(a,i){i===void 0&&(i=!1);var t=a.CSS,e=p;if(typeof p=="boolean"&&!i)return p;var n=t&&typeof t.supports=="function";if(!n)return!1;var r=t.supports("--css-vars","yes"),s=t.supports("(--css-vars: yes)")&&t.supports("color","#00000000");return e=r||s,i||(p=e),e}function H(a,i,t){if(!a)return{x:0,y:0};var e=i.x,n=i.y,r=e+t.left,s=n+t.top,o,u;if(a.type==="touchstart"){var f=a;o=f.changedTouches[0].pageX-r,u=f.changedTouches[0].pageY-s}else{var c=a;o=c.pageX-r,u=c.pageY-s}return{x:o,y:u}}/**
|
|
107
|
+
* @license
|
|
108
|
+
* Copyright 2016 Google Inc.
|
|
109
|
+
*
|
|
110
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
111
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
112
|
+
* in the Software without restriction, including without limitation the rights
|
|
113
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
114
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
115
|
+
* furnished to do so, subject to the following conditions:
|
|
116
|
+
*
|
|
117
|
+
* The above copyright notice and this permission notice shall be included in
|
|
118
|
+
* all copies or substantial portions of the Software.
|
|
119
|
+
*
|
|
120
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
121
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
122
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
123
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
124
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
125
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
126
|
+
* THE SOFTWARE.
|
|
127
|
+
*/var T=["touchstart","pointerdown","mousedown","keydown"],E=["touchend","pointerup","mouseup","contextmenu"],v=[],I=function(a){d.__extends(i,a);function i(t){var e=a.call(this,d.__assign(d.__assign({},i.defaultAdapter),t))||this;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(){e.activationAnimationHasEnded_=!0,e.runDeactivationUXLogicIfReady_()},e.activateHandler_=function(n){return e.activate_(n)},e.deactivateHandler_=function(){return e.deactivate_()},e.focusHandler_=function(){return e.handleFocus()},e.blurHandler_=function(){return e.handleBlur()},e.resizeHandler_=function(){return e.layout()},e}return Object.defineProperty(i,"cssClasses",{get:function(){return w},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return V},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),i.prototype.init=function(){var t=this,e=this.supportsPressRipple_();if(this.registerRootHandlers_(e),e){var n=i.cssClasses,r=n.ROOT,s=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(s),t.layoutInternal_())})}},i.prototype.destroy=function(){var t=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(i.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(i.cssClasses.FG_DEACTIVATION));var e=i.cssClasses,n=e.ROOT,r=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(r),t.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},i.prototype.activate=function(t){this.activate_(t)},i.prototype.deactivate=function(){this.deactivate_()},i.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){t.layoutInternal_(),t.layoutFrame_=0})},i.prototype.setUnbounded=function(t){var e=i.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},i.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(i.cssClasses.BG_FOCUSED)})},i.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(i.cssClasses.BG_FOCUSED)})},i.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},i.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},i.prototype.registerRootHandlers_=function(t){var e=this;t&&(T.forEach(function(n){e.adapter.registerInteractionHandler(n,e.activateHandler_)}),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},i.prototype.registerDeactivationHandlers_=function(t){var e=this;t.type==="keydown"?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):E.forEach(function(n){e.adapter.registerDocumentInteractionHandler(n,e.deactivateHandler_)})},i.prototype.deregisterRootHandlers_=function(){var t=this;T.forEach(function(e){t.adapter.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},i.prototype.deregisterDeactivationHandlers_=function(){var t=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),E.forEach(function(e){t.adapter.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})},i.prototype.removeCssVars_=function(){var t=this,e=i.strings,n=Object.keys(e);n.forEach(function(r){r.indexOf("VAR_")===0&&t.adapter.updateCssVariable(e[r],null)})},i.prototype.activate_=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var r=this.previousActivationEvent_,s=r&&t!==void 0&&r.type!==t.type;if(!s){n.isActivated=!0,n.isProgrammatic=t===void 0,n.activationEvent=t,n.wasActivatedByPointer=n.isProgrammatic?!1:t!==void 0&&(t.type==="mousedown"||t.type==="touchstart"||t.type==="pointerdown");var o=t!==void 0&&v.length>0&&v.some(function(u){return e.adapter.containsEventTarget(u)});if(o){this.resetActivationState_();return}t!==void 0&&(v.push(t.target),this.registerDeactivationHandlers_(t)),n.wasElementMadeActive=this.checkElementMadeActive_(t),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){v=[],!n.wasElementMadeActive&&t!==void 0&&(t.key===" "||t.keyCode===32)&&(n.wasElementMadeActive=e.checkElementMadeActive_(t),n.wasElementMadeActive&&e.animateActivation_()),n.wasElementMadeActive||(e.activationState_=e.defaultActivationState_())})}}}},i.prototype.checkElementMadeActive_=function(t){return t!==void 0&&t.type==="keydown"?this.adapter.isSurfaceActive():!0},i.prototype.animateActivation_=function(){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,f=i.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var c="",m="";if(!this.adapter.isUnbounded()){var A=this.getFgTranslationCoordinates_(),g=A.startPoint,y=A.endPoint;c=g.x+"px, "+g.y+"px",m=y.x+"px, "+y.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(r,m),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(u),this.activationTimer_=setTimeout(function(){return t.activationTimerCallback_()},f)},i.prototype.getFgTranslationCoordinates_=function(){var t=this.activationState_,e=t.activationEvent,n=t.wasActivatedByPointer,r;n?r=H(e,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):r={x:this.frame_.width/2,y:this.frame_.height/2},r={x:r.x-this.initialSize_/2,y:r.y-this.initialSize_/2};var s={x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2};return{startPoint:r,endPoint:s}},i.prototype.runDeactivationUXLogicIfReady_=function(){var t=this,e=i.cssClasses.FG_DEACTIVATION,n=this.activationState_,r=n.hasDeactivationUXRun,s=n.isActivated,o=r||!s;o&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer_=setTimeout(function(){t.adapter.removeClass(e)},C.FG_DEACTIVATION_MS))},i.prototype.rmBoundedActivationClasses_=function(){var t=i.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},i.prototype.resetActivationState_=function(){var t=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return t.previousActivationEvent_=void 0},i.numbers.TAP_DELAY_MS)},i.prototype.deactivate_=function(){var t=this,e=this.activationState_;if(e.isActivated){var n=d.__assign({},e);e.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(n),t.resetActivationState_()}))}},i.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady_()},i.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter.computeBoundingRect();var e=Math.max(this.frame_.height,this.frame_.width),n=function(){var s=Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2));return s+i.numbers.PADDING};this.maxRadius_=this.adapter.isUnbounded()?e:n();var r=Math.floor(e*i.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!==0?this.initialSize_=r-1:this.initialSize_=r,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},i.prototype.updateLayoutCssVars_=function(){var t=i.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,r=t.VAR_TOP,s=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize_+"px"),this.adapter.updateCssVariable(s,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords_.top+"px"))},i}(h);/**
|
|
128
|
+
* @license
|
|
129
|
+
* Copyright 2016 Google Inc.
|
|
130
|
+
*
|
|
131
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
132
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
133
|
+
* in the Software without restriction, including without limitation the rights
|
|
134
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
135
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
136
|
+
* furnished to do so, subject to the following conditions:
|
|
137
|
+
*
|
|
138
|
+
* The above copyright notice and this permission notice shall be included in
|
|
139
|
+
* all copies or substantial portions of the Software.
|
|
140
|
+
*
|
|
141
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
142
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
143
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
144
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
145
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
146
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
147
|
+
* THE SOFTWARE.
|
|
148
|
+
*/var N=function(a){d.__extends(i,a);function i(){var t=a!==null&&a.apply(this,arguments)||this;return t.disabled=!1,t}return i.attachTo=function(t,e){e===void 0&&(e={isUnbounded:void 0});var n=new i(t);return e.isUnbounded!==void 0&&(n.unbounded=e.isUnbounded),n},i.createAdapter=function(t){return{addClass:function(e){return t.root.classList.add(e)},browserSupportsCssVars:function(){return O(window)},computeBoundingRect:function(){return t.root.getBoundingClientRect()},containsEventTarget:function(e){return t.root.contains(e)},deregisterDocumentInteractionHandler:function(e,n){return document.documentElement.removeEventListener(e,n,l())},deregisterInteractionHandler:function(e,n){return t.root.removeEventListener(e,n,l())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return _(t.root,":active")},isSurfaceDisabled:function(){return!!t.disabled},isUnbounded:function(){return!!t.unbounded},registerDocumentInteractionHandler:function(e,n){return document.documentElement.addEventListener(e,n,l())},registerInteractionHandler:function(e,n){return t.root.addEventListener(e,n,l())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(e){return t.root.classList.remove(e)},updateCssVariable:function(e,n){return t.root.style.setProperty(e,n)}}},Object.defineProperty(i.prototype,"unbounded",{get:function(){return!!this.unbounded_},set:function(t){this.unbounded_=!!t,this.setUnbounded_()},enumerable:!1,configurable:!0}),i.prototype.activate=function(){this.foundation.activate()},i.prototype.deactivate=function(){this.foundation.deactivate()},i.prototype.layout=function(){this.foundation.layout()},i.prototype.getDefaultFoundation=function(){return new I(i.createAdapter(this))},i.prototype.initialSyncWithDOM=function(){var t=this.root;this.unbounded="mdcRippleIsUnbounded"in t.dataset},i.prototype.setUnbounded_=function(){this.foundation.setUnbounded(!!this.unbounded_)},i}(S);exports.MDCComponent=S;exports.MDCFoundation=h;exports.MDCRipple=N;exports.MDCRippleFoundation=I;exports.applyPassive=l;exports.closest=b;exports.estimateScrollWidth=D;exports.matches=_;exports.ponyfill=R;
|
|
@@ -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,5 +1,5 @@
|
|
|
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
4
|
import { r as i, s as e, f as p } from "../../react.esm-BeDwcQWb.js";
|
|
5
5
|
import { d as u, b as m, t as n, g as t, v as c } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
@@ -1,75 +1,64 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { AvailableCustomIcons as
|
|
6
|
-
import { c as
|
|
7
|
-
import { I as
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
headlineContainer: b,
|
|
11
|
-
actionButtonContainer: H,
|
|
12
|
-
content: A,
|
|
13
|
-
leadingIcon: W,
|
|
14
|
-
headingWrapper: $,
|
|
15
|
-
headingContainer: x,
|
|
16
|
-
invisible: T,
|
|
17
|
-
withAvatar: j,
|
|
18
|
-
iconContainer: z
|
|
19
|
-
}, L = ({ icon: e }) => e ? typeof e != "string" ? /* @__PURE__ */ a("div", { className: n.iconContainer, children: e }) : e in y ? /* @__PURE__ */ a(
|
|
20
|
-
w,
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { u as v } from "../../useBreakpoint-DyAmuka7.js";
|
|
3
|
+
import { Iconify as N } from "../Iconify/Iconify.js";
|
|
4
|
+
import { s as e } from "../../basicHeading.module-ClcvD7x2.js";
|
|
5
|
+
import { AvailableCustomIcons as I } from "../../enums/AvailableCustomIcons.js";
|
|
6
|
+
import { c as B, b as C } from "../../index.es-Cm4X20_S.js";
|
|
7
|
+
import { I as $ } from "../../index.es-InSNsV4f.js";
|
|
8
|
+
const b = ({ icon: a }) => a ? typeof a != "string" ? /* @__PURE__ */ i("div", { className: e.iconContainer, children: a }) : a in I ? /* @__PURE__ */ i(
|
|
9
|
+
N,
|
|
21
10
|
{
|
|
22
|
-
icon:
|
|
23
|
-
className:
|
|
11
|
+
icon: a,
|
|
12
|
+
className: e.leadingIcon,
|
|
24
13
|
iconSize: "large",
|
|
25
14
|
iconType: "filled"
|
|
26
15
|
}
|
|
27
|
-
) : /* @__PURE__ */
|
|
28
|
-
children:
|
|
29
|
-
marginBottom:
|
|
30
|
-
heading:
|
|
16
|
+
) : /* @__PURE__ */ i($, { iconSize: "large", iconType: "filled", icon: a, className: e.leadingIcon }) : null, S = ({
|
|
17
|
+
children: a,
|
|
18
|
+
marginBottom: t,
|
|
19
|
+
heading: c,
|
|
31
20
|
icon: d,
|
|
32
|
-
className:
|
|
33
|
-
subHeading:
|
|
34
|
-
subHeadingLevel:
|
|
21
|
+
className: m,
|
|
22
|
+
subHeading: s,
|
|
23
|
+
subHeadingLevel: p = 2,
|
|
35
24
|
invisibleButton: f = !1,
|
|
36
|
-
level:
|
|
37
|
-
fontWeight:
|
|
38
|
-
withAvatar:
|
|
25
|
+
level: n = 4,
|
|
26
|
+
fontWeight: o = 400,
|
|
27
|
+
withAvatar: y = !1
|
|
39
28
|
}) => {
|
|
40
|
-
const { isLg:
|
|
41
|
-
if (
|
|
42
|
-
return typeof
|
|
29
|
+
const { isLg: l } = v(), g = l ? n : n + 1, h = o === "bold" ? 500 : o, u = () => {
|
|
30
|
+
if (t !== void 0)
|
|
31
|
+
return typeof t == "number" ? `${t}px` : "2rem";
|
|
43
32
|
};
|
|
44
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ r(
|
|
45
34
|
"div",
|
|
46
35
|
{
|
|
47
|
-
className:
|
|
48
|
-
style: { marginBottom:
|
|
36
|
+
className: e.pageHeader,
|
|
37
|
+
style: { marginBottom: u() },
|
|
49
38
|
"data-testid": "HeaderContainer",
|
|
50
39
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
40
|
+
/* @__PURE__ */ r("div", { className: `${y && l ? e.withAvatar : ""} ${e.headingWrapper}`, children: [
|
|
41
|
+
/* @__PURE__ */ i(b, { icon: d }),
|
|
42
|
+
/* @__PURE__ */ r("div", { className: s ? e.headingContainer : "", children: [
|
|
43
|
+
/* @__PURE__ */ i(
|
|
44
|
+
B,
|
|
56
45
|
{
|
|
57
|
-
level:
|
|
46
|
+
level: g,
|
|
58
47
|
"data-testid": "Header",
|
|
59
|
-
className:
|
|
48
|
+
className: m ?? "",
|
|
60
49
|
style: { fontWeight: h },
|
|
61
|
-
children:
|
|
50
|
+
children: c
|
|
62
51
|
}
|
|
63
52
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ i(C, { level: p, children: s })
|
|
65
54
|
] })
|
|
66
55
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ i(
|
|
68
57
|
"div",
|
|
69
58
|
{
|
|
70
|
-
className: `${
|
|
59
|
+
className: `${e.actionButtonContainer} ${f && e.invisible}`,
|
|
71
60
|
"data-testid": "RightPart",
|
|
72
|
-
children:
|
|
61
|
+
children: a
|
|
73
62
|
}
|
|
74
63
|
)
|
|
75
64
|
]
|
|
@@ -77,5 +66,5 @@ const N = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", H = "_action
|
|
|
77
66
|
);
|
|
78
67
|
};
|
|
79
68
|
export {
|
|
80
|
-
|
|
69
|
+
S as BasicHeading
|
|
81
70
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { BasicHeading as a } from "./BasicHeading.js";
|
|
3
3
|
import { r as i, s as n } from "../../react.esm-BeDwcQWb.js";
|
|
4
4
|
import { d as g, t as s, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
|
-
import { B as h } from "../../index.es-
|
|
5
|
+
import { B as h } from "../../index.es-CQ3ep412.js";
|
|
6
6
|
g("BasicHeading-Test", () => {
|
|
7
7
|
s("render small container without content", () => {
|
|
8
8
|
i(/* @__PURE__ */ o(a, { heading: "Test" }));
|
|
@@ -1,73 +1,63 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { getBlockNumberByDto as
|
|
5
|
-
import { a as
|
|
6
|
-
const
|
|
7
|
-
grid: A,
|
|
8
|
-
black: D,
|
|
9
|
-
blockLayout: E,
|
|
10
|
-
blockRow: S,
|
|
11
|
-
block: V,
|
|
12
|
-
active: M,
|
|
13
|
-
error: j,
|
|
14
|
-
empty: q,
|
|
15
|
-
blockText: F
|
|
16
|
-
}, O = ({
|
|
1
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as B, useEffect as C, useMemo as A } from "react";
|
|
3
|
+
import { s as e } from "../../BlockView.module-8kbPxxc4.js";
|
|
4
|
+
import { getBlockNumberByDto as D } from "../../services/BlockService.js";
|
|
5
|
+
import { a as E, c as S } from "../../index.es-Cm4X20_S.js";
|
|
6
|
+
const R = ({
|
|
17
7
|
rows: s,
|
|
18
8
|
columns: t,
|
|
19
|
-
hideText:
|
|
20
|
-
errorBlocks:
|
|
9
|
+
hideText: n = !1,
|
|
10
|
+
errorBlocks: k = [],
|
|
21
11
|
showNumbers: y = !0,
|
|
22
|
-
clickable:
|
|
23
|
-
size:
|
|
24
|
-
onClick:
|
|
25
|
-
currentBlock:
|
|
26
|
-
blocks:
|
|
12
|
+
clickable: N = !0,
|
|
13
|
+
size: d = 15,
|
|
14
|
+
onClick: u = null,
|
|
15
|
+
currentBlock: c,
|
|
16
|
+
blocks: b,
|
|
27
17
|
blockViewTitle: v,
|
|
28
|
-
blockLabel:
|
|
18
|
+
blockLabel: $
|
|
29
19
|
}) => {
|
|
30
|
-
const [
|
|
31
|
-
|
|
32
|
-
if (!
|
|
20
|
+
const [p, h] = B(0);
|
|
21
|
+
C(() => {
|
|
22
|
+
if (!c)
|
|
33
23
|
return;
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
!
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
24
|
+
const o = D(c, t);
|
|
25
|
+
h(o);
|
|
26
|
+
}, [c, t]);
|
|
27
|
+
const g = A(() => s * t, [s, t]), w = (o) => {
|
|
28
|
+
u && u(o, c ?? void 0);
|
|
29
|
+
}, x = ({ row: o, column: l }) => b.length === 0 ? !0 : b.some((a) => a.position?.row === o && a.position?.column === l);
|
|
30
|
+
return /* @__PURE__ */ f("div", { className: e.grid, children: [
|
|
31
|
+
!n && /* @__PURE__ */ i(E, { level: 1, bold: !0, className: e.black, children: v }),
|
|
32
|
+
/* @__PURE__ */ i("div", { className: e.blockLayout, style: { width: `${d}rem`, height: `${d}rem` }, children: Array.from({ length: s }).map((o, l) => /* @__PURE__ */ i("div", { className: e.blockRow, children: Array.from({ length: t }).map((a, m) => {
|
|
33
|
+
const r = t * l + m + 1;
|
|
34
|
+
return /* @__PURE__ */ i(
|
|
45
35
|
"div",
|
|
46
36
|
{
|
|
47
37
|
"data-testid": "blockViewBlock",
|
|
48
|
-
className: `${
|
|
49
|
-
id: `block${
|
|
50
|
-
onClick:
|
|
51
|
-
|
|
38
|
+
className: `${e.block} ${p === r ? e.active : ""} ${x({ row: l + 1, column: m + 1 }) ? "" : e.empty} ${k.includes(r) ? e.error : ""}`,
|
|
39
|
+
id: `block${r}`,
|
|
40
|
+
onClick: N ? () => {
|
|
41
|
+
h(r), w({ row: l + 1, column: m + 1 });
|
|
52
42
|
} : void 0,
|
|
53
|
-
children: y && /* @__PURE__ */
|
|
43
|
+
children: y && /* @__PURE__ */ i(
|
|
54
44
|
"div",
|
|
55
45
|
{
|
|
56
|
-
className: `${
|
|
57
|
-
children:
|
|
46
|
+
className: `${e.blockText} ${p === r ? e.black : ""}`,
|
|
47
|
+
children: r
|
|
58
48
|
}
|
|
59
49
|
)
|
|
60
50
|
},
|
|
61
|
-
|
|
51
|
+
r
|
|
62
52
|
);
|
|
63
|
-
}) },
|
|
64
|
-
!
|
|
65
|
-
|
|
53
|
+
}) }, l)) }),
|
|
54
|
+
!n && /* @__PURE__ */ f(S, { themeColor: "primary", level: 6, children: [
|
|
55
|
+
g,
|
|
66
56
|
" ",
|
|
67
|
-
|
|
57
|
+
$
|
|
68
58
|
] })
|
|
69
59
|
] });
|
|
70
60
|
};
|
|
71
61
|
export {
|
|
72
|
-
|
|
62
|
+
R as BlockView
|
|
73
63
|
};
|