@gravitee/ui-components 3.25.3-typescript-50960c3 → 3.25.3-typescript-9d19b68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/package.json +5 -13
  2. package/src/atoms/gv-autocomplete.js +422 -1
  3. package/src/atoms/gv-button.js +397 -1
  4. package/src/atoms/gv-checkbox.js +178 -1
  5. package/src/atoms/gv-date-picker-calendar.js +812 -1
  6. package/src/atoms/gv-date-picker-cell.js +174 -1
  7. package/src/atoms/gv-date-picker.js +638 -1
  8. package/src/atoms/gv-file-upload.js +348 -1
  9. package/src/atoms/gv-icon.js +93 -1
  10. package/src/atoms/gv-image.js +135 -1
  11. package/src/atoms/gv-input-message.js +78 -1
  12. package/src/atoms/gv-input.js +508 -1
  13. package/src/atoms/gv-link.js +204 -1
  14. package/src/atoms/gv-message.js +133 -1
  15. package/src/atoms/gv-metric.js +112 -1
  16. package/src/atoms/gv-relative-time.js +143 -1
  17. package/src/atoms/gv-select-native.js +363 -1
  18. package/src/atoms/gv-select.js +413 -1
  19. package/src/atoms/gv-spinner.js +54 -1
  20. package/src/atoms/gv-state.js +125 -1
  21. package/src/atoms/gv-switch.js +235 -1
  22. package/src/atoms/gv-tag.js +162 -1
  23. package/src/atoms/gv-text.js +160 -1
  24. package/src/charts/gv-chart-bar.js +101 -1
  25. package/src/charts/gv-chart-gauge.js +92 -1
  26. package/src/charts/gv-chart-histogram.js +78 -1
  27. package/src/charts/gv-chart-line.js +218 -1
  28. package/src/charts/gv-chart-map.js +111 -1
  29. package/src/charts/gv-chart-pie.js +89 -1
  30. package/src/index.js +77 -1
  31. package/src/lib/cron-expression.js +176 -1
  32. package/src/lib/date.js +43 -1
  33. package/src/lib/events.js +26 -1
  34. package/src/lib/http-client-schema-form.js +67 -1
  35. package/src/lib/http.js +237 -1
  36. package/src/lib/i18n.js +93 -1
  37. package/src/lib/item.js +110 -1
  38. package/src/lib/properties.js +171 -1
  39. package/src/lib/schema-form.js +39 -1
  40. package/src/lib/studio.js +144 -1
  41. package/src/lib/style.js +39 -1
  42. package/src/lib/text-format.js +65 -1
  43. package/src/lib/theme.js +60 -1
  44. package/src/lib/utils.js +106 -1
  45. package/src/mixins/chart-element.js +153 -1
  46. package/src/mixins/input-element.js +136 -1
  47. package/src/mixins/item-resource.js +102 -1
  48. package/src/mixins/keyboard-element.js +62 -1
  49. package/src/mixins/update-after-browser.js +30 -1
  50. package/src/mixins/with-resize-observer.js +62 -1
  51. package/src/mixins/with-skeleton-attribute.js +109 -1
  52. package/src/molecules/gv-card-full.js +209 -1
  53. package/src/molecules/gv-card-list.js +101 -1
  54. package/src/molecules/gv-card.js +130 -1
  55. package/src/molecules/gv-category-list.js +56 -1
  56. package/src/molecules/gv-category.js +163 -1
  57. package/src/molecules/gv-code.js +334 -1
  58. package/src/molecules/gv-confirm.js +175 -1
  59. package/src/molecules/gv-cron-editor.js +685 -1
  60. package/src/molecules/gv-dropdown-menu.js +108 -1
  61. package/src/molecules/gv-expandable.js +116 -1
  62. package/src/molecules/gv-expression-language.js +263 -1
  63. package/src/molecules/gv-identity-picture.js +139 -1
  64. package/src/molecules/gv-list.js +214 -1
  65. package/src/molecules/gv-metrics.js +147 -1
  66. package/src/molecules/gv-modal.js +203 -1
  67. package/src/molecules/gv-nav.js +180 -1
  68. package/src/molecules/gv-option.js +230 -1
  69. package/src/molecules/gv-plans.js +400 -1
  70. package/src/molecules/gv-popover.js +323 -1
  71. package/src/molecules/gv-promote.js +203 -1
  72. package/src/molecules/gv-rating-list.js +341 -1
  73. package/src/molecules/gv-rating.js +234 -1
  74. package/src/molecules/gv-row-expandable.js +42 -1
  75. package/src/molecules/gv-row.js +205 -1
  76. package/src/molecules/gv-stats.js +110 -1
  77. package/src/molecules/gv-stepper.js +274 -1
  78. package/src/molecules/gv-table.js +644 -1
  79. package/src/molecules/gv-tree.js +238 -1
  80. package/src/organisms/gv-documentation.js +205 -1
  81. package/src/organisms/gv-header.js +276 -1
  82. package/src/organisms/gv-http-client.js +258 -1
  83. package/src/organisms/gv-menu.js +258 -1
  84. package/src/organisms/gv-newsletter-subscription.js +258 -1
  85. package/src/organisms/gv-pagination.js +179 -1
  86. package/src/organisms/gv-properties.js +860 -1
  87. package/src/organisms/gv-resizable-views.js +371 -1
  88. package/src/organisms/gv-resources.js +496 -1
  89. package/src/organisms/gv-schema-form-array.js +237 -1
  90. package/src/organisms/gv-schema-form-control-object.js +141 -1
  91. package/src/organisms/gv-schema-form-control.js +419 -1
  92. package/src/organisms/gv-schema-form.js +700 -1
  93. package/src/organisms/gv-tabs.js +201 -1
  94. package/src/organisms/gv-user-menu.js +298 -1
  95. package/src/organisms/gv-vertical-menu.js +119 -1
  96. package/src/policy-studio/gv-flow-step.js +443 -1
  97. package/src/policy-studio/gv-flow.js +595 -1
  98. package/src/policy-studio/gv-policy-studio-menu.js +689 -1
  99. package/src/policy-studio/gv-policy-studio.js +1712 -1
  100. package/src/styles/empty.js +35 -1
  101. package/src/styles/input.js +262 -1
  102. package/src/styles/link.js +31 -1
  103. package/src/styles/shapes.js +17 -1
  104. package/src/styles/skeleton.js +52 -1
  105. package/src/styles/zoom.js +39 -1
  106. package/src/theme/gv-theme.js +197 -1
  107. package/wc/gv-autocomplete.js +1 -1
  108. package/wc/gv-button.js +1 -1
  109. package/wc/gv-card-full.js +1 -1
  110. package/wc/gv-card-list.js +1 -1
  111. package/wc/gv-card.js +1 -1
  112. package/wc/gv-category-list.js +1 -1
  113. package/wc/gv-category.js +1 -1
  114. package/wc/gv-chart-bar.js +1 -1
  115. package/wc/gv-chart-gauge.js +1 -1
  116. package/wc/gv-chart-histogram.js +1 -1
  117. package/wc/gv-chart-line.js +1 -1
  118. package/wc/gv-chart-map.js +1 -1
  119. package/wc/gv-chart-pie.js +1 -1
  120. package/wc/gv-checkbox.js +1 -1
  121. package/wc/gv-code.js +1 -1
  122. package/wc/gv-confirm.js +1 -1
  123. package/wc/gv-cron-editor.js +1 -1
  124. package/wc/gv-date-picker-calendar.js +1 -1
  125. package/wc/gv-date-picker-cell.js +1 -1
  126. package/wc/gv-date-picker.js +1 -1
  127. package/wc/gv-documentation.js +1 -1
  128. package/wc/gv-dropdown-menu.js +1 -1
  129. package/wc/gv-expandable.js +1 -1
  130. package/wc/gv-expression-language.js +1 -1
  131. package/wc/gv-file-upload.js +1 -1
  132. package/wc/gv-flow-step.js +1 -1
  133. package/wc/gv-flow.js +1 -1
  134. package/wc/gv-header.js +1 -1
  135. package/wc/gv-http-client.js +1 -1
  136. package/wc/gv-icon.js +1 -1
  137. package/wc/gv-identity-picture.js +1 -1
  138. package/wc/gv-image.js +1 -1
  139. package/wc/gv-input-message.js +1 -1
  140. package/wc/gv-input.js +1 -1
  141. package/wc/gv-link.js +1 -1
  142. package/wc/gv-list.js +1 -1
  143. package/wc/gv-menu.js +1 -1
  144. package/wc/gv-message.js +1 -1
  145. package/wc/gv-metric.js +1 -1
  146. package/wc/gv-metrics.js +1 -1
  147. package/wc/gv-modal.js +1 -1
  148. package/wc/gv-nav.js +1 -1
  149. package/wc/gv-newsletter-subscription.js +1 -1
  150. package/wc/gv-option.js +1 -1
  151. package/wc/gv-pagination.js +1 -1
  152. package/wc/gv-plans.js +1 -1
  153. package/wc/gv-policy-studio-menu.js +1 -1
  154. package/wc/gv-policy-studio.js +1 -1
  155. package/wc/gv-popover.js +1 -1
  156. package/wc/gv-promote.js +1 -1
  157. package/wc/gv-properties.js +1 -1
  158. package/wc/gv-rating-list.js +1 -1
  159. package/wc/gv-rating.js +1 -1
  160. package/wc/gv-relative-time.js +1 -1
  161. package/wc/gv-resizable-views.js +1 -1
  162. package/wc/gv-resources.js +1 -1
  163. package/wc/gv-row-expandable.js +1 -1
  164. package/wc/gv-row.js +1 -1
  165. package/wc/gv-schema-form-array.js +1 -1
  166. package/wc/gv-schema-form-control-object.js +1 -1
  167. package/wc/gv-schema-form-control.js +1 -1
  168. package/wc/gv-schema-form.js +1 -1
  169. package/wc/gv-select-native.js +1 -1
  170. package/wc/gv-select.js +1 -1
  171. package/wc/gv-spinner.js +1 -1
  172. package/wc/gv-state.js +1 -1
  173. package/wc/gv-stats.js +1 -1
  174. package/wc/gv-stepper.js +1 -1
  175. package/wc/gv-switch.js +1 -1
  176. package/wc/gv-table.js +1 -1
  177. package/wc/gv-tabs.js +1 -1
  178. package/wc/gv-tag.js +1 -1
  179. package/wc/gv-text.js +1 -1
  180. package/wc/gv-theme.js +1 -1
  181. package/wc/gv-tree.js +1 -1
  182. package/wc/gv-user-menu.js +1 -1
  183. package/wc/gv-vertical-menu.js +1 -1
@@ -1 +1,371 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvResizableViews=void 0;const t=require("lit"),e=require("lit/directives/class-map"),o=require("../lib/events");class i extends t.LitElement{static get properties(){return{direction:{type:String,reflect:!0},noOverflow:{type:Boolean,attribute:"no-overflow"}}}constructor(){super(),this.direction="vertical"}split(){this.resize()}maximizeTop(){this.resize(85,15)}maximizeBottom(){this.resize(20,80)}resize(t=50,e=50){this.shadowRoot.querySelector(".top").style.height=`${t}%`,this.shadowRoot.querySelector(".bottom").style.height=`${e}%`,setTimeout((()=>{(0,o.dispatchCustomEvent)(this,"resize",{top:t,bottom:e})}),350)}resizable(t){const e=t.getAttribute("data-direction")||"horizontal",i=t.previousElementSibling,r=t.nextElementSibling;let s=0,n=0,l=0,a=0;const c=this.shadowRoot,d=this,h=function(c){const h=c.clientX-s,v=c.clientY-n;if((0,o.dispatchCustomEvent)(d,"move",{direction:e}),"vertical"===e)i.style.height=100*(l+v)/t.parentNode.getBoundingClientRect().height+"%",r.style.height=100-100*(l+v)/t.parentNode.getBoundingClientRect().height+"%";else i.style.width=100*(a+h)/t.parentNode.getBoundingClientRect().width+"%";const u="horizontal"===e?"col-resize":"row-resize";t.style.cursor=u,t.classList.add("drag"),document.body.style.cursor=u,i.style.userSelect="none",i.style.pointerEvents="none",r.style.userSelect="none",r.style.pointerEvents="none"},v=function(){t.style.removeProperty("cursor"),t.classList.remove("drag"),document.body.style.removeProperty("cursor"),i.style.removeProperty("user-select"),i.style.removeProperty("pointer-events"),r.style.removeProperty("user-select"),r.style.removeProperty("pointer-events"),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v),c.querySelector(".box").classList.add("transition")};t.addEventListener("mousedown",(function(t){if(!t.target.classList.contains("action")){c.querySelector(".box").classList.remove("transition"),s=t.clientX,n=t.clientY;const e=i.getBoundingClientRect();l=e.height,a=e.width,document.addEventListener("mousemove",h),document.addEventListener("mouseup",v)}}))}firstUpdated(){this.shadowRoot.querySelectorAll(".resizer").forEach((t=>this.resizable(t)))}get shape(){return"horizontal"===this.direction?"design:vertical":"design:horizontal"}render(){return t.html`<div class="${(0,e.classMap)({box:!0,transition:!0,"no-overflow":this.noOverflow})}"><div class="top"><slot name="top"></slot></div><div class="resizer" data-direction="${this.direction}"><gv-icon shape="${this.shape}"></gv-icon><div class="actions"><gv-icon class="layout-icon" shape="layout:layout-right-panel-2"></gv-icon><gv-button small link class="action" icon="layout:layout-bottom-panel" title="Maximize top" @gv-button:click="${this.maximizeTop}"></gv-button><gv-button small link class="action" icon="layout:layout-horizontal-2" title="Split screen" @gv-button:click="${this.split}"></gv-button><gv-button small link class="action" icon="layout:layout-top-panel-6" title="Maximize bottom" @gv-button:click="${this.maximizeBottom}"></gv-button></div></div><div class="bottom"><slot name="bottom"></slot></div></div>`}static get styles(){return[t.css`.box{display:flex;height:100%;flex:1 1 0;flex-direction:column}:host([direction=horizontal]) .box{flex-direction:row}:host([direction=horizontal]) .layout-icon{display:none}*{box-sizing:border-box}::slotted(*){display:inline-block;width:100%}.no-overflow ::slotted(*){height:100%;position:relative}.bottom,.top{position:relative}.no-overflow .bottom,.no-overflow .top{overflow:hidden}.bottom{display:flex;flex-grow:1}.left{width:70%}.left,.right{padding:.2rem;overflow:auto}.bottom,.top{border-left:1px solid #bfbfbf;border-right:1px solid #bfbfbf;height:100%}:host([direction=horizontal]) .top{border-right:0}:host([direction=horizontal]) .bottom{border-left:0}.transition .bottom,.transition .top{transition:height 350ms ease-in-out}.top{overflow-y:auto;overflow-x:hidden;height:50%}.bottom{overflow-y:auto;overflow-x:hidden;height:50%}:host([direction=horizontal]) .bottom,:host([direction=horizontal]) .top{height:100%;width:50%}.resizer{z-index:10;background-color:#d9d9d9;--gv-icon--s:20px;display:flex;align-items:center;justify-content:flex-end;--gv-icon--c:#28444f;transition:all .2s ease-in-out;position:relative}.resizer.drag{border-width:4px 0;border-style:double;border-color:#d9d9d9;background-color:#fff}.resizer .actions,.resizer gv-icon{transition:all .2s ease-in-out}.resizer.drag .actions,.resizer.drag gv-icon{visibility:hidden;opacity:0}:host([direction=horizontal]) .resizer.drag{border-width:0 4px}.resizer>gv-icon{position:absolute}:host([direction=horizontal]) .resizer{align-items:flex-start}:host([direction=vertical]) .resizer gv-icon{right:45px}:host([direction=horizontal]) .resizer gv-icon{left:-9px;top:45px}.resizer[data-direction=vertical]{cursor:ns-resize;height:2px;width:100%}.resizer[data-direction=horizontal]{cursor:ew-resize;height:100%;width:2px}.actions{margin-top:-22px;margin-right:15px;padding:0 .2rem;border-radius:4px 4px 0 0;background-color:#d9d9d9}.actions gv-button{margin:.2rem .1rem;visibility:hidden;opacity:0;display:none;transition:all 250ms ease-in-out}.actions:focus-within,.actions:hover{padding:.2rem;margin-top:-66px}.actions:focus-within gv-button,.actions:hover gv-button{display:block;opacity:1;visibility:visible}.actions:focus-within gv-icon,.actions:hover gv-icon{display:none;opacity:0;visibility:hidden}`]}}exports.GvResizableViews=i,window.customElements.define("gv-resizable-views",i);
1
+ /*
2
+ * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { css, LitElement, html } from 'lit';
17
+ import { classMap } from 'lit/directives/class-map';
18
+ import { dispatchCustomEvent } from '../lib/events';
19
+ /**
20
+ * Resizable views component
21
+ *
22
+ * @fires gv-resizable-views:resize - when user click to resize action
23
+ * @fires gv-resizable-views:move - when user move the resize cursor
24
+ *
25
+ * @slot top - The top content
26
+ * @slot bottom - The bottom content
27
+ *
28
+ * @attr {String} direction - the direction [vertical|horizonal]
29
+ * @attr {Boolean} no-overflow - true if slot containers should have `overflow: hidden`
30
+ */
31
+ export class GvResizableViews extends LitElement {
32
+ static get properties() {
33
+ return {
34
+ direction: { type: String, reflect: true },
35
+ noOverflow: { type: Boolean, attribute: 'no-overflow' },
36
+ };
37
+ }
38
+ constructor() {
39
+ super();
40
+ this.direction = 'vertical';
41
+ }
42
+ split() {
43
+ this.resize();
44
+ }
45
+ maximizeTop() {
46
+ this.resize(85, 15);
47
+ }
48
+ maximizeBottom() {
49
+ this.resize(20, 80);
50
+ }
51
+ resize(top = 50, bottom = 50) {
52
+ this.shadowRoot.querySelector('.top').style.height = `${top}%`;
53
+ this.shadowRoot.querySelector('.bottom').style.height = `${bottom}%`;
54
+ // Dispatch event after transition
55
+ setTimeout(() => {
56
+ dispatchCustomEvent(this, 'resize', { top, bottom });
57
+ }, 350);
58
+ }
59
+ resizable(resizer) {
60
+ const direction = resizer.getAttribute('data-direction') || 'horizontal';
61
+ const prevSibling = resizer.previousElementSibling;
62
+ const nextSibling = resizer.nextElementSibling;
63
+ // The current position of mouse
64
+ let x = 0;
65
+ let y = 0;
66
+ let prevSiblingHeight = 0;
67
+ let prevSiblingWidth = 0;
68
+ const shadowRoot = this.shadowRoot;
69
+ const me = this;
70
+ // Handle the mousedown event
71
+ // that's triggered when user drags the resizer
72
+ const mouseDownHandler = function (e) {
73
+ if (!e.target.classList.contains('action')) {
74
+ // Get the current mouse position
75
+ shadowRoot.querySelector('.box').classList.remove('transition');
76
+ x = e.clientX;
77
+ y = e.clientY;
78
+ const rect = prevSibling.getBoundingClientRect();
79
+ prevSiblingHeight = rect.height;
80
+ prevSiblingWidth = rect.width;
81
+ // Attach the listeners to `document`
82
+ document.addEventListener('mousemove', mouseMoveHandler);
83
+ document.addEventListener('mouseup', mouseUpHandler);
84
+ }
85
+ };
86
+ const mouseMoveHandler = function (e) {
87
+ // How far the mouse has been moved
88
+ const dx = e.clientX - x;
89
+ const dy = e.clientY - y;
90
+ dispatchCustomEvent(me, 'move', { direction });
91
+ switch (direction) {
92
+ case 'vertical':
93
+ prevSibling.style.height = `${((prevSiblingHeight + dy) * 100) / resizer.parentNode.getBoundingClientRect().height}%`;
94
+ nextSibling.style.height = `${100 - ((prevSiblingHeight + dy) * 100) / resizer.parentNode.getBoundingClientRect().height}%`;
95
+ break;
96
+ case 'horizontal':
97
+ default:
98
+ prevSibling.style.width = `${((prevSiblingWidth + dx) * 100) / resizer.parentNode.getBoundingClientRect().width}%`;
99
+ break;
100
+ }
101
+ const cursor = direction === 'horizontal' ? 'col-resize' : 'row-resize';
102
+ resizer.style.cursor = cursor;
103
+ resizer.classList.add('drag');
104
+ document.body.style.cursor = cursor;
105
+ prevSibling.style.userSelect = 'none';
106
+ prevSibling.style.pointerEvents = 'none';
107
+ nextSibling.style.userSelect = 'none';
108
+ nextSibling.style.pointerEvents = 'none';
109
+ };
110
+ const mouseUpHandler = function () {
111
+ resizer.style.removeProperty('cursor');
112
+ resizer.classList.remove('drag');
113
+ document.body.style.removeProperty('cursor');
114
+ prevSibling.style.removeProperty('user-select');
115
+ prevSibling.style.removeProperty('pointer-events');
116
+ nextSibling.style.removeProperty('user-select');
117
+ nextSibling.style.removeProperty('pointer-events');
118
+ // Remove the handlers of `mousemove` and `mouseup`
119
+ document.removeEventListener('mousemove', mouseMoveHandler);
120
+ document.removeEventListener('mouseup', mouseUpHandler);
121
+ shadowRoot.querySelector('.box').classList.add('transition');
122
+ };
123
+ // Attach the handler
124
+ resizer.addEventListener('mousedown', mouseDownHandler);
125
+ }
126
+ firstUpdated() {
127
+ this.shadowRoot.querySelectorAll('.resizer').forEach((elt) => this.resizable(elt));
128
+ }
129
+ get shape() {
130
+ if (this.direction === 'horizontal') {
131
+ return 'design:vertical';
132
+ }
133
+ return 'design:horizontal';
134
+ }
135
+ render() {
136
+ return html `
137
+ <div class="${classMap({ box: true, transition: true, 'no-overflow': this.noOverflow })}">
138
+ <div class="top"><slot name="top"></slot></div>
139
+ <div class="resizer" data-direction="${this.direction}">
140
+ <gv-icon shape="${this.shape}"></gv-icon>
141
+ <div class="actions">
142
+ <gv-icon class="layout-icon" shape="layout:layout-right-panel-2"></gv-icon>
143
+ <gv-button
144
+ small
145
+ link
146
+ class="action"
147
+ icon="layout:layout-bottom-panel"
148
+ title="Maximize top"
149
+ @gv-button:click="${this.maximizeTop}"
150
+ ></gv-button>
151
+ <gv-button
152
+ small
153
+ link
154
+ class="action"
155
+ icon="layout:layout-horizontal-2"
156
+ title="Split screen"
157
+ @gv-button:click="${this.split}"
158
+ ></gv-button>
159
+ <gv-button
160
+ small
161
+ link
162
+ class="action"
163
+ icon="layout:layout-top-panel-6"
164
+ title="Maximize bottom"
165
+ @gv-button:click="${this.maximizeBottom}"
166
+ ></gv-button>
167
+ </div>
168
+ </div>
169
+ <div class="bottom"><slot name="bottom"></slot></div>
170
+ </div>
171
+ `;
172
+ }
173
+ static get styles() {
174
+ return [
175
+ // language=css
176
+ css `
177
+ .box {
178
+ display: flex;
179
+ height: 100%;
180
+ flex: 1 1 0;
181
+ flex-direction: column;
182
+ }
183
+
184
+ :host([direction='horizontal']) .box {
185
+ flex-direction: row;
186
+ }
187
+
188
+ :host([direction='horizontal']) .layout-icon {
189
+ display: none;
190
+ }
191
+
192
+ * {
193
+ box-sizing: border-box;
194
+ }
195
+
196
+ ::slotted(*) {
197
+ display: inline-block;
198
+ width: 100%;
199
+ }
200
+
201
+ .no-overflow ::slotted(*) {
202
+ height: 100%;
203
+ position: relative;
204
+ }
205
+
206
+ .top,
207
+ .bottom {
208
+ position: relative;
209
+ }
210
+
211
+ .no-overflow .top,
212
+ .no-overflow .bottom {
213
+ overflow: hidden;
214
+ }
215
+
216
+ .bottom {
217
+ display: flex;
218
+ flex-grow: 1;
219
+ }
220
+
221
+ .left {
222
+ width: 70%;
223
+ }
224
+
225
+ .left,
226
+ .right {
227
+ padding: 0.2rem;
228
+ overflow: auto;
229
+ }
230
+
231
+ .top,
232
+ .bottom {
233
+ border-left: 1px solid #bfbfbf;
234
+ border-right: 1px solid #bfbfbf;
235
+ height: 100%;
236
+ }
237
+
238
+ :host([direction='horizontal']) .top {
239
+ border-right: 0;
240
+ }
241
+
242
+ :host([direction='horizontal']) .bottom {
243
+ border-left: 0;
244
+ }
245
+
246
+ .transition .top,
247
+ .transition .bottom {
248
+ transition: height 350ms ease-in-out;
249
+ }
250
+
251
+ .top {
252
+ overflow-y: auto;
253
+ overflow-x: hidden;
254
+ height: 50%;
255
+ }
256
+
257
+ .bottom {
258
+ overflow-y: auto;
259
+ overflow-x: hidden;
260
+ height: 50%;
261
+ }
262
+
263
+ :host([direction='horizontal']) .top,
264
+ :host([direction='horizontal']) .bottom {
265
+ height: 100%;
266
+ width: 50%;
267
+ }
268
+
269
+ .resizer {
270
+ z-index: 10;
271
+ background-color: #d9d9d9;
272
+ --gv-icon--s: 20px;
273
+ display: flex;
274
+ align-items: center;
275
+ justify-content: flex-end;
276
+ --gv-icon--c: #28444f;
277
+ transition: all 0.2s ease-in-out;
278
+ position: relative;
279
+ }
280
+
281
+ .resizer.drag {
282
+ border-width: 4px 0;
283
+ border-style: double;
284
+ border-color: #d9d9d9;
285
+ background-color: white;
286
+ }
287
+
288
+ .resizer gv-icon,
289
+ .resizer .actions {
290
+ transition: all 0.2s ease-in-out;
291
+ }
292
+
293
+ .resizer.drag gv-icon,
294
+ .resizer.drag .actions {
295
+ visibility: hidden;
296
+ opacity: 0;
297
+ }
298
+
299
+ :host([direction='horizontal']) .resizer.drag {
300
+ border-width: 0 4px;
301
+ }
302
+
303
+ .resizer > gv-icon {
304
+ position: absolute;
305
+ }
306
+
307
+ :host([direction='horizontal']) .resizer {
308
+ align-items: flex-start;
309
+ }
310
+
311
+ :host([direction='vertical']) .resizer gv-icon {
312
+ right: 45px;
313
+ }
314
+
315
+ :host([direction='horizontal']) .resizer gv-icon {
316
+ left: -9px;
317
+ top: 45px;
318
+ }
319
+
320
+ .resizer[data-direction='vertical'] {
321
+ cursor: ns-resize;
322
+ height: 2px;
323
+ width: 100%;
324
+ }
325
+
326
+ .resizer[data-direction='horizontal'] {
327
+ cursor: ew-resize;
328
+ height: 100%;
329
+ width: 2px;
330
+ }
331
+
332
+ .actions {
333
+ margin-top: -22px;
334
+ margin-right: 15px;
335
+ padding: 0 0.2rem;
336
+ border-radius: 4px 4px 0 0;
337
+ background-color: #d9d9d9;
338
+ }
339
+
340
+ .actions gv-button {
341
+ margin: 0.2rem 0.1rem;
342
+ visibility: hidden;
343
+ opacity: 0;
344
+ display: none;
345
+ transition: all 250ms ease-in-out;
346
+ }
347
+
348
+ .actions:focus-within,
349
+ .actions:hover {
350
+ padding: 0.2rem;
351
+ margin-top: -66px;
352
+ }
353
+
354
+ .actions:focus-within gv-button,
355
+ .actions:hover gv-button {
356
+ display: block;
357
+ opacity: 1;
358
+ visibility: visible;
359
+ }
360
+
361
+ .actions:focus-within gv-icon,
362
+ .actions:hover gv-icon {
363
+ display: none;
364
+ opacity: 0;
365
+ visibility: hidden;
366
+ }
367
+ `,
368
+ ];
369
+ }
370
+ }
371
+ window.customElements.define('gv-resizable-views', GvResizableViews);