@spectrum-web-components/split-view 0.40.0 → 0.40.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -38,7 +38,13 @@ import { SplitView } from '@spectrum-web-components/split-view';
38
38
  ### Horizontal Resizable
39
39
 
40
40
  ```html
41
- <sp-split-view resizable primary-min="50" secondary-min="50" primary-size="100">
41
+ <sp-split-view
42
+ resizable
43
+ primary-min="50"
44
+ secondary-min="50"
45
+ primary-size="100"
46
+ label="Resize the horizontal panels"
47
+ >
42
48
  <div>
43
49
  <h1>Left panel</h1>
44
50
  <p>
@@ -59,7 +65,7 @@ import { SplitView } from '@spectrum-web-components/split-view';
59
65
  ### Horizontal Resizable & Collapsible
60
66
 
61
67
  ```html
62
- <sp-split-view resizable>
68
+ <sp-split-view resizable label="Resize the horizontal collapsible panels">
63
69
  <div>
64
70
  <h1>Left panel</h1>
65
71
  <p>
@@ -95,6 +101,7 @@ import { SplitView } from '@spectrum-web-components/split-view';
95
101
  primary-min="50"
96
102
  primary-max="150"
97
103
  secondary-min="50"
104
+ label="Resize the vertical panels"
98
105
  >
99
106
  <div>
100
107
  <h1>Top panel</h1>
@@ -116,7 +123,12 @@ import { SplitView } from '@spectrum-web-components/split-view';
116
123
  ### Vertical Resizable & Collapsible
117
124
 
118
125
  ```html
119
- <sp-split-view vertical resizable style="height: 300px;">
126
+ <sp-split-view
127
+ vertical
128
+ resizable
129
+ style="height: 300px;"
130
+ label="Resize the vertical collapsible panels"
131
+ >
120
132
  <div>
121
133
  <h1>Top panel</h1>
122
134
  <p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/split-view",
3
- "version": "0.40.0",
3
+ "version": "0.40.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -61,7 +61,7 @@
61
61
  "lit-html"
62
62
  ],
63
63
  "dependencies": {
64
- "@spectrum-web-components/base": "^0.40.0"
64
+ "@spectrum-web-components/base": "^0.40.2"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@spectrum-css/splitview": "^4.0.5"
@@ -72,5 +72,5 @@
72
72
  "./sp-*.js",
73
73
  "./**/*.dev.js"
74
74
  ],
75
- "gitHead": "24d5569a839da94892ecfd125428779587ffb1f5"
75
+ "gitHead": "e5fd35c7a98569150ca695ec0e0e7411c9c64c28"
76
76
  }
@@ -95,7 +95,7 @@ export class SplitView extends SpectrumElement {
95
95
  this.viewSize - this.splitterSize
96
96
  )
97
97
  };
98
- const label = this.label || this.resizable ? "Resize the panels" : void 0;
98
+ const label = this.label || (this.resizable ? "Resize the panels" : void 0);
99
99
  return html`
100
100
  <slot
101
101
  id=${ifDefined(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["SplitView.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n LitElement,\n nothing,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n classMap,\n ifDefined,\n} from '@spectrum-web-components/base/src/directives.js';\nimport {\n property,\n query,\n state,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';\n\nimport { WithSWCResizeObserver } from './types';\n\nimport styles from './split-view.css.js';\n\nconst DEFAULT_MAX_SIZE = 3840;\n\nconst SPLITTERSIZE = 2;\n\nconst ARROW_KEY_CHANGE_VALUE = 10;\n\nconst PAGEUPDOWN_KEY_CHANGE_VALUE = 50;\n\nconst COLLAPSE_THREASHOLD = 50;\n\n/**\n * @element sp-split-view\n *\n * @slot Two sibling elements to be sized by the element attritubes\n * @fires change - Announces the new position of the splitter\n */\nexport class SplitView extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @state()\n public controlledEl?: HTMLElement;\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n @property({ type: Boolean, reflect: true })\n public resizable = false;\n\n @property({ type: Boolean, reflect: true })\n public collapsible = false;\n\n /** The minimum size of the primary pane */\n @property({ type: Number, attribute: 'primary-min' })\n public primaryMin = 0;\n\n /** The maximum size of the primary pane */\n @property({ type: Number, attribute: 'primary-max' })\n public primaryMax = DEFAULT_MAX_SIZE;\n\n /**\n * The start size of the primary pane, can be a real pixel number|string, percentage or \"auto\"\n * For example: \"100\", \"120px\", \"75%\" or \"auto\" are valid values\n * @type {number |\u00A0number + \"px\" | number + \"%\" | \"auto\"}\n * @attr\n */\n @property({ type: String, attribute: 'primary-size' })\n public primarySize?: string;\n\n /** The minimum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-min' })\n public secondaryMin = 0;\n\n /** The maximum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-max' })\n public secondaryMax = DEFAULT_MAX_SIZE;\n\n /** The current splitter position of split-view */\n @property({ type: Number, reflect: true, attribute: 'splitter-pos' })\n public splitterPos?: number;\n\n /** The current size of first pane of split-view */\n @property({ type: String, attribute: false })\n private firstPaneSize = 'auto';\n\n @property()\n public label?: string;\n\n @property({ type: Boolean, attribute: false })\n private enoughChildren = false;\n\n @property({ type: Number })\n private viewSize = 0;\n\n @query('slot')\n private paneSlot!: HTMLSlotElement;\n\n @query('#splitter')\n private splitter!: HTMLDivElement;\n\n private offset = 0;\n\n private minPos = 0;\n\n private maxPos = DEFAULT_MAX_SIZE;\n\n private observer?: WithSWCResizeObserver['ResizeObserver'];\n\n private rect?: DOMRect;\n\n private _splitterSize?: number;\n\n public constructor() {\n super();\n const RO = (window as unknown as WithSWCResizeObserver).ResizeObserver;\n if (RO) {\n this.observer = new RO(() => {\n this.rect = undefined;\n this.updateMinMax();\n });\n }\n }\n\n public override connectedCallback(): void {\n super.connectedCallback();\n this.observer?.observe(this);\n }\n\n public override disconnectedCallback(): void {\n this.observer?.unobserve(this);\n super.disconnectedCallback();\n }\n\n /**\n * @private\n **/\n public get splitterSize(): number {\n if (!this._splitterSize) {\n this._splitterSize =\n (this.splitter &&\n Math.round(\n parseFloat(\n window\n .getComputedStyle(this.splitter)\n .getPropertyValue(\n this.vertical ? 'height' : 'width'\n )\n )\n )) ||\n SPLITTERSIZE;\n }\n return this._splitterSize;\n }\n\n protected override render(): TemplateResult {\n const splitterClasses = {\n 'is-resized-start': this.splitterPos === this.minPos,\n 'is-resized-end': (this.splitterPos &&\n this.splitterPos > this.splitterSize &&\n this.splitterPos === this.maxPos) as boolean,\n 'is-collapsed-start': this.splitterPos === 0,\n 'is-collapsed-end': (this.splitterPos &&\n this.splitterPos >=\n Math.max(\n this.splitterSize,\n this.viewSize - this.splitterSize\n )) as boolean,\n };\n const label =\n this.label || this.resizable ? 'Resize the panels' : undefined;\n\n return html`\n <slot\n id=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n @slotchange=${this.onContentSlotChange}\n style=\"--spectrum-split-view-first-pane-size: ${this\n .firstPaneSize}\"\n ></slot>\n ${this.enoughChildren\n ? html`\n <div\n id=\"splitter\"\n class=${classMap(splitterClasses)}\n role=\"separator\"\n aria-controls=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n aria-label=${ifDefined(label)}\n aria-orientation=${this.vertical\n ? 'horizontal'\n : 'vertical'}\n aria-valuenow=${Math.round(\n (parseFloat(this.firstPaneSize) / this.viewSize) *\n 100\n )}\n tabindex=${ifDefined(\n this.resizable ? '0' : undefined\n )}\n @keydown=${this.onKeydown}\n ${streamingListener({\n start: ['pointerdown', this.onPointerdown],\n streamInside: ['pointermove', this.onPointermove],\n end: [\n [\n 'pointerup',\n 'pointercancel',\n 'pointerleave',\n ],\n this.onPointerup,\n ],\n })}\n >\n ${this.resizable\n ? html`\n <div id=\"gripper\"></div>\n `\n : nothing}\n </div>\n `\n : nothing}\n `;\n }\n\n private controlledElIDApplied = false;\n\n private onContentSlotChange(\n event: Event & { target: HTMLSlotElement }\n ): void {\n if (this.controlledEl && this.controlledElIDApplied) {\n this.controlledEl.removeAttribute('id');\n this.controlledElIDApplied = false;\n }\n this.controlledEl = event.target.assignedElements()[0] as HTMLElement;\n if (this.controlledEl && !this.controlledEl.id) {\n this.controlledEl.id = `${this.tagName.toLowerCase()}-${crypto\n .randomUUID()\n .slice(0, 8)}`;\n this.controlledElIDApplied = true;\n }\n this.enoughChildren = this.children.length > 1;\n this.checkResize();\n }\n\n private onPointerdown(event: PointerEvent): void {\n if (!this.resizable || (event.button && event.button !== 0)) {\n event.preventDefault();\n return;\n }\n this.splitter.setPointerCapture(event.pointerId);\n this.offset = this.getOffset();\n }\n\n private onPointermove(event: PointerEvent): void {\n event.preventDefault();\n let pos =\n this.vertical || this.isLTR\n ? this.getPosition(event) - this.offset\n : this.offset - this.getPosition(event);\n if (this.collapsible && pos < this.minPos - COLLAPSE_THREASHOLD) {\n pos = 0;\n }\n if (this.collapsible && pos > this.maxPos + COLLAPSE_THREASHOLD) {\n pos = this.viewSize - this.splitterSize;\n }\n this.updatePosition(pos);\n }\n\n private onPointerup(event: PointerEvent): void {\n this.splitter.releasePointerCapture(event.pointerId);\n }\n\n private getOffset(): number {\n if (!this.rect) {\n this.rect = this.getBoundingClientRect();\n }\n const offsetX = this.isLTR ? this.rect.left : this.rect.right;\n return this.vertical ? this.rect.top : offsetX;\n }\n\n private getPosition(event: PointerEvent): number {\n return this.vertical ? event.clientY : event.clientX;\n }\n\n private movePosition(event: KeyboardEvent, offset: number): void {\n event.preventDefault();\n if (this.splitterPos !== undefined) {\n this.updatePosition(this.splitterPos + offset);\n }\n }\n\n private onKeydown(event: KeyboardEvent): void {\n if (!this.resizable) {\n return;\n }\n let direction = 0;\n const isLTRorVertical = this.isLTR || this.vertical;\n switch (event.key) {\n case 'Home':\n event.preventDefault();\n this.updatePosition(this.collapsible ? 0 : this.minPos);\n return;\n case 'End':\n event.preventDefault();\n this.updatePosition(\n this.collapsible\n ? this.viewSize - this.splitterSize\n : this.maxPos\n );\n return;\n case 'ArrowLeft':\n direction = isLTRorVertical ? -1 : 1;\n break;\n case 'ArrowRight':\n direction = isLTRorVertical ? 1 : -1;\n break;\n case 'ArrowUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'ArrowDown':\n direction = this.vertical ? 1 : -1;\n break;\n case 'PageUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'PageDown':\n direction = this.vertical ? 1 : -1;\n break;\n }\n if (direction !== 0) {\n const moveBy = event.key.startsWith('Page')\n ? PAGEUPDOWN_KEY_CHANGE_VALUE\n : ARROW_KEY_CHANGE_VALUE;\n this.movePosition(event, moveBy * direction);\n }\n }\n\n private async checkResize(): Promise<void> {\n if (!this.enoughChildren) {\n return;\n }\n this.updateMinMax();\n if (this.splitterPos === undefined) {\n const startPos = await this.calcStartPos();\n this.updatePosition(startPos);\n }\n }\n\n private updateMinMax(): void {\n this.viewSize = this.vertical ? this.offsetHeight : this.offsetWidth;\n this.minPos = Math.max(\n this.primaryMin,\n this.viewSize - this.secondaryMax\n );\n this.maxPos = Math.min(\n this.primaryMax,\n this.viewSize - Math.max(this.secondaryMin, this.splitterSize)\n );\n }\n\n private updatePosition(x: number): void {\n let pos = this.getLimitedPosition(x);\n if (this.collapsible && x <= 0) {\n pos = 0;\n }\n if (\n this.collapsible &&\n x > this.maxPos &&\n x >= this.viewSize - this.splitterSize\n ) {\n pos = this.viewSize - this.splitterSize;\n }\n if (pos !== this.splitterPos) {\n this.splitterPos = pos;\n this.dispatchChangeEvent();\n }\n }\n\n private getLimitedPosition(input: number): number {\n if (input <= this.minPos) {\n return this.minPos;\n }\n if (input >= this.maxPos) {\n return this.maxPos;\n }\n return Math.max(this.minPos, Math.min(this.maxPos, input));\n }\n\n private async calcStartPos(): Promise<number> {\n if (\n this.primarySize !== undefined &&\n /^\\d+(px)?$/.test(this.primarySize)\n ) {\n return parseInt(this.primarySize, 10);\n }\n if (this.primarySize !== undefined && /^\\d+%$/.test(this.primarySize)) {\n return (parseInt(this.primarySize, 10) * this.viewSize) / 100;\n }\n if (this.primarySize === 'auto') {\n this.firstPaneSize = 'auto';\n const nodes = this.paneSlot.assignedNodes({ flatten: true });\n const firstEl = nodes.find(\n (node) => node instanceof HTMLElement\n ) as LitElement;\n if (typeof firstEl.updateComplete !== 'undefined') {\n await firstEl.updateComplete;\n }\n if (firstEl) {\n const size = window\n .getComputedStyle(firstEl)\n .getPropertyValue(this.vertical ? 'height' : 'width');\n const size_i = parseFloat(size);\n if (!isNaN(size_i)) {\n return this.getLimitedPosition(Math.ceil(size_i));\n }\n }\n }\n return this.viewSize / 2;\n }\n\n private dispatchChangeEvent(): void {\n const changeEvent = new Event('change', {\n bubbles: true,\n composed: true,\n });\n this.dispatchEvent(changeEvent);\n }\n\n protected override willUpdate(changed: PropertyValues): void {\n if (!this.hasUpdated || changed.has('primarySize')) {\n this.splitterPos = undefined;\n this.checkResize();\n }\n if (\n changed.has('splitterPos') &&\n this.splitterPos !== undefined &&\n this.enoughChildren\n ) {\n this.firstPaneSize = `${Math.round(this.splitterPos)}px`;\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EAEA;AAAA,EAEA;AAAA,OAEG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,yBAAyB;AAIlC,OAAO,YAAY;AAEnB,MAAM,mBAAmB;AAEzB,MAAM,eAAe;AAErB,MAAM,yBAAyB;AAE/B,MAAM,8BAA8B;AAEpC,MAAM,sBAAsB;AAQrB,aAAM,kBAAkB,gBAAgB;AAAA,EA6EpC,cAAc;AACjB,UAAM;AArEV,SAAO,WAAW;AAGlB,SAAO,YAAY;A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gBAAgB,CAAC;AAAA,GAnC7C,UAoCF;AAIA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,WAAW,gBAAgB,CAAC;AAAA,GAvC7C,UAwCF;AAIA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,eAAe,CAAC;AAAA,GA3C3D,UA4CF;AAIC;AAAA,EADP,SAAS,EAAE,MAAM,QAAQ,WAAW,MAAM,CAAC;AAAA,GA/CnC,UAgDD;AAGD;AAAA,EADN,SAAS;AAAA,GAlDD,UAmDF;AAGC;AAAA,EADP,SAAS,EAAE,MAAM,SAAS,WAAW,MAAM,CAAC;AAAA,GArDpC,UAsDD;AAGA;AAAA,EADP,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAxDjB,UAyDD;AAGA;AAAA,EADP,MAAM,MAAM;AAAA,GA3DJ,UA4DD;AAGA;AAAA,EADP,MAAM,WAAW;AAAA,GA9DT,UA+DD;",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n LitElement,\n nothing,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n classMap,\n ifDefined,\n} from '@spectrum-web-components/base/src/directives.js';\nimport {\n property,\n query,\n state,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';\n\nimport { WithSWCResizeObserver } from './types';\n\nimport styles from './split-view.css.js';\n\nconst DEFAULT_MAX_SIZE = 3840;\n\nconst SPLITTERSIZE = 2;\n\nconst ARROW_KEY_CHANGE_VALUE = 10;\n\nconst PAGEUPDOWN_KEY_CHANGE_VALUE = 50;\n\nconst COLLAPSE_THREASHOLD = 50;\n\n/**\n * @element sp-split-view\n *\n * @slot Two sibling elements to be sized by the element attritubes\n * @fires change - Announces the new position of the splitter\n */\nexport class SplitView extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @state()\n public controlledEl?: HTMLElement;\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n @property({ type: Boolean, reflect: true })\n public resizable = false;\n\n @property({ type: Boolean, reflect: true })\n public collapsible = false;\n\n /** The minimum size of the primary pane */\n @property({ type: Number, attribute: 'primary-min' })\n public primaryMin = 0;\n\n /** The maximum size of the primary pane */\n @property({ type: Number, attribute: 'primary-max' })\n public primaryMax = DEFAULT_MAX_SIZE;\n\n /**\n * The start size of the primary pane, can be a real pixel number|string, percentage or \"auto\"\n * For example: \"100\", \"120px\", \"75%\" or \"auto\" are valid values\n * @type {number |\u00A0number + \"px\" | number + \"%\" | \"auto\"}\n * @attr\n */\n @property({ type: String, attribute: 'primary-size' })\n public primarySize?: string;\n\n /** The minimum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-min' })\n public secondaryMin = 0;\n\n /** The maximum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-max' })\n public secondaryMax = DEFAULT_MAX_SIZE;\n\n /** The current splitter position of split-view */\n @property({ type: Number, reflect: true, attribute: 'splitter-pos' })\n public splitterPos?: number;\n\n /** The current size of first pane of split-view */\n @property({ type: String, attribute: false })\n private firstPaneSize = 'auto';\n\n @property()\n public label?: string;\n\n @property({ type: Boolean, attribute: false })\n private enoughChildren = false;\n\n @property({ type: Number })\n private viewSize = 0;\n\n @query('slot')\n private paneSlot!: HTMLSlotElement;\n\n @query('#splitter')\n private splitter!: HTMLDivElement;\n\n private offset = 0;\n\n private minPos = 0;\n\n private maxPos = DEFAULT_MAX_SIZE;\n\n private observer?: WithSWCResizeObserver['ResizeObserver'];\n\n private rect?: DOMRect;\n\n private _splitterSize?: number;\n\n public constructor() {\n super();\n const RO = (window as unknown as WithSWCResizeObserver).ResizeObserver;\n if (RO) {\n this.observer = new RO(() => {\n this.rect = undefined;\n this.updateMinMax();\n });\n }\n }\n\n public override connectedCallback(): void {\n super.connectedCallback();\n this.observer?.observe(this);\n }\n\n public override disconnectedCallback(): void {\n this.observer?.unobserve(this);\n super.disconnectedCallback();\n }\n\n /**\n * @private\n **/\n public get splitterSize(): number {\n if (!this._splitterSize) {\n this._splitterSize =\n (this.splitter &&\n Math.round(\n parseFloat(\n window\n .getComputedStyle(this.splitter)\n .getPropertyValue(\n this.vertical ? 'height' : 'width'\n )\n )\n )) ||\n SPLITTERSIZE;\n }\n return this._splitterSize;\n }\n\n protected override render(): TemplateResult {\n const splitterClasses = {\n 'is-resized-start': this.splitterPos === this.minPos,\n 'is-resized-end': (this.splitterPos &&\n this.splitterPos > this.splitterSize &&\n this.splitterPos === this.maxPos) as boolean,\n 'is-collapsed-start': this.splitterPos === 0,\n 'is-collapsed-end': (this.splitterPos &&\n this.splitterPos >=\n Math.max(\n this.splitterSize,\n this.viewSize - this.splitterSize\n )) as boolean,\n };\n const label =\n this.label || (this.resizable ? 'Resize the panels' : undefined);\n\n return html`\n <slot\n id=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n @slotchange=${this.onContentSlotChange}\n style=\"--spectrum-split-view-first-pane-size: ${this\n .firstPaneSize}\"\n ></slot>\n ${this.enoughChildren\n ? html`\n <div\n id=\"splitter\"\n class=${classMap(splitterClasses)}\n role=\"separator\"\n aria-controls=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n aria-label=${ifDefined(label)}\n aria-orientation=${this.vertical\n ? 'horizontal'\n : 'vertical'}\n aria-valuenow=${Math.round(\n (parseFloat(this.firstPaneSize) / this.viewSize) *\n 100\n )}\n tabindex=${ifDefined(\n this.resizable ? '0' : undefined\n )}\n @keydown=${this.onKeydown}\n ${streamingListener({\n start: ['pointerdown', this.onPointerdown],\n streamInside: ['pointermove', this.onPointermove],\n end: [\n [\n 'pointerup',\n 'pointercancel',\n 'pointerleave',\n ],\n this.onPointerup,\n ],\n })}\n >\n ${this.resizable\n ? html`\n <div id=\"gripper\"></div>\n `\n : nothing}\n </div>\n `\n : nothing}\n `;\n }\n\n private controlledElIDApplied = false;\n\n private onContentSlotChange(\n event: Event & { target: HTMLSlotElement }\n ): void {\n if (this.controlledEl && this.controlledElIDApplied) {\n this.controlledEl.removeAttribute('id');\n this.controlledElIDApplied = false;\n }\n this.controlledEl = event.target.assignedElements()[0] as HTMLElement;\n if (this.controlledEl && !this.controlledEl.id) {\n this.controlledEl.id = `${this.tagName.toLowerCase()}-${crypto\n .randomUUID()\n .slice(0, 8)}`;\n this.controlledElIDApplied = true;\n }\n this.enoughChildren = this.children.length > 1;\n this.checkResize();\n }\n\n private onPointerdown(event: PointerEvent): void {\n if (!this.resizable || (event.button && event.button !== 0)) {\n event.preventDefault();\n return;\n }\n this.splitter.setPointerCapture(event.pointerId);\n this.offset = this.getOffset();\n }\n\n private onPointermove(event: PointerEvent): void {\n event.preventDefault();\n let pos =\n this.vertical || this.isLTR\n ? this.getPosition(event) - this.offset\n : this.offset - this.getPosition(event);\n if (this.collapsible && pos < this.minPos - COLLAPSE_THREASHOLD) {\n pos = 0;\n }\n if (this.collapsible && pos > this.maxPos + COLLAPSE_THREASHOLD) {\n pos = this.viewSize - this.splitterSize;\n }\n this.updatePosition(pos);\n }\n\n private onPointerup(event: PointerEvent): void {\n this.splitter.releasePointerCapture(event.pointerId);\n }\n\n private getOffset(): number {\n if (!this.rect) {\n this.rect = this.getBoundingClientRect();\n }\n const offsetX = this.isLTR ? this.rect.left : this.rect.right;\n return this.vertical ? this.rect.top : offsetX;\n }\n\n private getPosition(event: PointerEvent): number {\n return this.vertical ? event.clientY : event.clientX;\n }\n\n private movePosition(event: KeyboardEvent, offset: number): void {\n event.preventDefault();\n if (this.splitterPos !== undefined) {\n this.updatePosition(this.splitterPos + offset);\n }\n }\n\n private onKeydown(event: KeyboardEvent): void {\n if (!this.resizable) {\n return;\n }\n let direction = 0;\n const isLTRorVertical = this.isLTR || this.vertical;\n switch (event.key) {\n case 'Home':\n event.preventDefault();\n this.updatePosition(this.collapsible ? 0 : this.minPos);\n return;\n case 'End':\n event.preventDefault();\n this.updatePosition(\n this.collapsible\n ? this.viewSize - this.splitterSize\n : this.maxPos\n );\n return;\n case 'ArrowLeft':\n direction = isLTRorVertical ? -1 : 1;\n break;\n case 'ArrowRight':\n direction = isLTRorVertical ? 1 : -1;\n break;\n case 'ArrowUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'ArrowDown':\n direction = this.vertical ? 1 : -1;\n break;\n case 'PageUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'PageDown':\n direction = this.vertical ? 1 : -1;\n break;\n }\n if (direction !== 0) {\n const moveBy = event.key.startsWith('Page')\n ? PAGEUPDOWN_KEY_CHANGE_VALUE\n : ARROW_KEY_CHANGE_VALUE;\n this.movePosition(event, moveBy * direction);\n }\n }\n\n private async checkResize(): Promise<void> {\n if (!this.enoughChildren) {\n return;\n }\n this.updateMinMax();\n if (this.splitterPos === undefined) {\n const startPos = await this.calcStartPos();\n this.updatePosition(startPos);\n }\n }\n\n private updateMinMax(): void {\n this.viewSize = this.vertical ? this.offsetHeight : this.offsetWidth;\n this.minPos = Math.max(\n this.primaryMin,\n this.viewSize - this.secondaryMax\n );\n this.maxPos = Math.min(\n this.primaryMax,\n this.viewSize - Math.max(this.secondaryMin, this.splitterSize)\n );\n }\n\n private updatePosition(x: number): void {\n let pos = this.getLimitedPosition(x);\n if (this.collapsible && x <= 0) {\n pos = 0;\n }\n if (\n this.collapsible &&\n x > this.maxPos &&\n x >= this.viewSize - this.splitterSize\n ) {\n pos = this.viewSize - this.splitterSize;\n }\n if (pos !== this.splitterPos) {\n this.splitterPos = pos;\n this.dispatchChangeEvent();\n }\n }\n\n private getLimitedPosition(input: number): number {\n if (input <= this.minPos) {\n return this.minPos;\n }\n if (input >= this.maxPos) {\n return this.maxPos;\n }\n return Math.max(this.minPos, Math.min(this.maxPos, input));\n }\n\n private async calcStartPos(): Promise<number> {\n if (\n this.primarySize !== undefined &&\n /^\\d+(px)?$/.test(this.primarySize)\n ) {\n return parseInt(this.primarySize, 10);\n }\n if (this.primarySize !== undefined && /^\\d+%$/.test(this.primarySize)) {\n return (parseInt(this.primarySize, 10) * this.viewSize) / 100;\n }\n if (this.primarySize === 'auto') {\n this.firstPaneSize = 'auto';\n const nodes = this.paneSlot.assignedNodes({ flatten: true });\n const firstEl = nodes.find(\n (node) => node instanceof HTMLElement\n ) as LitElement;\n if (typeof firstEl.updateComplete !== 'undefined') {\n await firstEl.updateComplete;\n }\n if (firstEl) {\n const size = window\n .getComputedStyle(firstEl)\n .getPropertyValue(this.vertical ? 'height' : 'width');\n const size_i = parseFloat(size);\n if (!isNaN(size_i)) {\n return this.getLimitedPosition(Math.ceil(size_i));\n }\n }\n }\n return this.viewSize / 2;\n }\n\n private dispatchChangeEvent(): void {\n const changeEvent = new Event('change', {\n bubbles: true,\n composed: true,\n });\n this.dispatchEvent(changeEvent);\n }\n\n protected override willUpdate(changed: PropertyValues): void {\n if (!this.hasUpdated || changed.has('primarySize')) {\n this.splitterPos = undefined;\n this.checkResize();\n }\n if (\n changed.has('splitterPos') &&\n this.splitterPos !== undefined &&\n this.enoughChildren\n ) {\n this.firstPaneSize = `${Math.round(this.splitterPos)}px`;\n }\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EAEA;AAAA,EAEA;AAAA,OAEG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,yBAAyB;AAIlC,OAAO,YAAY;AAEnB,MAAM,mBAAmB;AAEzB,MAAM,eAAe;AAErB,MAAM,yBAAyB;AAE/B,MAAM,8BAA8B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AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,WAAW,eAAe,CAAC;AAAA,GA/B5C,UAgCF;AAIA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,WAAW,gBAAgB,CAAC;AAAA,GAnC7C,UAoCF;AAIA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,WAAW,gBAAgB,CAAC;AAAA,GAvC7C,UAwCF;AAIA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,eAAe,CAAC;AAAA,GA3C3D,UA4CF;AAIC;AAAA,EADP,SAAS,EAAE,MAAM,QAAQ,WAAW,MAAM,CAAC;AAAA,GA/CnC,UAgDD;AAGD;AAAA,EADN,SAAS;AAAA,GAlDD,UAmDF;AAGC;AAAA,EADP,SAAS,EAAE,MAAM,SAAS,WAAW,MAAM,CAAC;AAAA,GArDpC,UAsDD;AAGA;AAAA,EADP,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAxDjB,UAyDD;AAGA;AAAA,EADP,MAAM,MAAM;AAAA,GA3DJ,UA4DD;AAGA;AAAA,EADP,MAAM,WAAW;AAAA,GA9DT,UA+DD;",
6
6
  "names": []
7
7
  }
package/src/SplitView.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var v=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var s=(l,a,t,e)=>{for(var i=e>1?void 0:e?f(a,t):a,o=l.length-1,h;o>=0;o--)(h=l[o])&&(i=(e?h(a,t,i):h(i))||i);return e&&i&&v(a,t,i),i};import{html as p,nothing as c,SpectrumElement as b}from"@spectrum-web-components/base";import{classMap as P,ifDefined as n}from"@spectrum-web-components/base/src/directives.js";import{property as r,query as u,state as z}from"@spectrum-web-components/base/src/decorators.js";import{streamingListener as y}from"@spectrum-web-components/base/src/streaming-listener.js";import E from"./split-view.css.js";const d=3840,S=2,g=10,M=50,m=50;export class SplitView extends b{constructor(){super();this.vertical=!1;this.resizable=!1;this.collapsible=!1;this.primaryMin=0;this.primaryMax=d;this.secondaryMin=0;this.secondaryMax=d;this.firstPaneSize="auto";this.enoughChildren=!1;this.viewSize=0;this.offset=0;this.minPos=0;this.maxPos=d;this.controlledElIDApplied=!1;const t=window.ResizeObserver;t&&(this.observer=new t(()=>{this.rect=void 0,this.updateMinMax()}))}static get styles(){return[E]}connectedCallback(){var t;super.connectedCallback(),(t=this.observer)==null||t.observe(this)}disconnectedCallback(){var t;(t=this.observer)==null||t.unobserve(this),super.disconnectedCallback()}get splitterSize(){return this._splitterSize||(this._splitterSize=this.splitter&&Math.round(parseFloat(window.getComputedStyle(this.splitter).getPropertyValue(this.vertical?"height":"width")))||S),this._splitterSize}render(){var i,o;const t={"is-resized-start":this.splitterPos===this.minPos,"is-resized-end":this.splitterPos&&this.splitterPos>this.splitterSize&&this.splitterPos===this.maxPos,"is-collapsed-start":this.splitterPos===0,"is-collapsed-end":this.splitterPos&&this.splitterPos>=Math.max(this.splitterSize,this.viewSize-this.splitterSize)},e=this.label||this.resizable?"Resize the panels":void 0;return p`
1
+ "use strict";var v=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var s=(l,a,t,e)=>{for(var i=e>1?void 0:e?f(a,t):a,o=l.length-1,h;o>=0;o--)(h=l[o])&&(i=(e?h(a,t,i):h(i))||i);return e&&i&&v(a,t,i),i};import{html as p,nothing as c,SpectrumElement as b}from"@spectrum-web-components/base";import{classMap as P,ifDefined as n}from"@spectrum-web-components/base/src/directives.js";import{property as r,query as u,state as z}from"@spectrum-web-components/base/src/decorators.js";import{streamingListener as y}from"@spectrum-web-components/base/src/streaming-listener.js";import E from"./split-view.css.js";const d=3840,S=2,g=10,M=50,m=50;export class SplitView extends b{constructor(){super();this.vertical=!1;this.resizable=!1;this.collapsible=!1;this.primaryMin=0;this.primaryMax=d;this.secondaryMin=0;this.secondaryMax=d;this.firstPaneSize="auto";this.enoughChildren=!1;this.viewSize=0;this.offset=0;this.minPos=0;this.maxPos=d;this.controlledElIDApplied=!1;const t=window.ResizeObserver;t&&(this.observer=new t(()=>{this.rect=void 0,this.updateMinMax()}))}static get styles(){return[E]}connectedCallback(){var t;super.connectedCallback(),(t=this.observer)==null||t.observe(this)}disconnectedCallback(){var t;(t=this.observer)==null||t.unobserve(this),super.disconnectedCallback()}get splitterSize(){return this._splitterSize||(this._splitterSize=this.splitter&&Math.round(parseFloat(window.getComputedStyle(this.splitter).getPropertyValue(this.vertical?"height":"width")))||S),this._splitterSize}render(){var i,o;const t={"is-resized-start":this.splitterPos===this.minPos,"is-resized-end":this.splitterPos&&this.splitterPos>this.splitterSize&&this.splitterPos===this.maxPos,"is-collapsed-start":this.splitterPos===0,"is-collapsed-end":this.splitterPos&&this.splitterPos>=Math.max(this.splitterSize,this.viewSize-this.splitterSize)},e=this.label||(this.resizable?"Resize the panels":void 0);return p`
2
2
  <slot
3
3
  id=${n(this.resizable?(i=this.controlledEl)==null?void 0:i.id:void 0)}
4
4
  @slotchange=${this.onContentSlotChange}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["SplitView.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n LitElement,\n nothing,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n classMap,\n ifDefined,\n} from '@spectrum-web-components/base/src/directives.js';\nimport {\n property,\n query,\n state,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';\n\nimport { WithSWCResizeObserver } from './types';\n\nimport styles from './split-view.css.js';\n\nconst DEFAULT_MAX_SIZE = 3840;\n\nconst SPLITTERSIZE = 2;\n\nconst ARROW_KEY_CHANGE_VALUE = 10;\n\nconst PAGEUPDOWN_KEY_CHANGE_VALUE = 50;\n\nconst COLLAPSE_THREASHOLD = 50;\n\n/**\n * @element sp-split-view\n *\n * @slot Two sibling elements to be sized by the element attritubes\n * @fires change - Announces the new position of the splitter\n */\nexport class SplitView extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @state()\n public controlledEl?: HTMLElement;\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n @property({ type: Boolean, reflect: true })\n public resizable = false;\n\n @property({ type: Boolean, reflect: true })\n public collapsible = false;\n\n /** The minimum size of the primary pane */\n @property({ type: Number, attribute: 'primary-min' })\n public primaryMin = 0;\n\n /** The maximum size of the primary pane */\n @property({ type: Number, attribute: 'primary-max' })\n public primaryMax = DEFAULT_MAX_SIZE;\n\n /**\n * The start size of the primary pane, can be a real pixel number|string, percentage or \"auto\"\n * For example: \"100\", \"120px\", \"75%\" or \"auto\" are valid values\n * @type {number |\u00A0number + \"px\" | number + \"%\" | \"auto\"}\n * @attr\n */\n @property({ type: String, attribute: 'primary-size' })\n public primarySize?: string;\n\n /** The minimum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-min' })\n public secondaryMin = 0;\n\n /** The maximum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-max' })\n public secondaryMax = DEFAULT_MAX_SIZE;\n\n /** The current splitter position of split-view */\n @property({ type: Number, reflect: true, attribute: 'splitter-pos' })\n public splitterPos?: number;\n\n /** The current size of first pane of split-view */\n @property({ type: String, attribute: false })\n private firstPaneSize = 'auto';\n\n @property()\n public label?: string;\n\n @property({ type: Boolean, attribute: false })\n private enoughChildren = false;\n\n @property({ type: Number })\n private viewSize = 0;\n\n @query('slot')\n private paneSlot!: HTMLSlotElement;\n\n @query('#splitter')\n private splitter!: HTMLDivElement;\n\n private offset = 0;\n\n private minPos = 0;\n\n private maxPos = DEFAULT_MAX_SIZE;\n\n private observer?: WithSWCResizeObserver['ResizeObserver'];\n\n private rect?: DOMRect;\n\n private _splitterSize?: number;\n\n public constructor() {\n super();\n const RO = (window as unknown as WithSWCResizeObserver).ResizeObserver;\n if (RO) {\n this.observer = new RO(() => {\n this.rect = undefined;\n this.updateMinMax();\n });\n }\n }\n\n public override connectedCallback(): void {\n super.connectedCallback();\n this.observer?.observe(this);\n }\n\n public override disconnectedCallback(): void {\n this.observer?.unobserve(this);\n super.disconnectedCallback();\n }\n\n /**\n * @private\n **/\n public get splitterSize(): number {\n if (!this._splitterSize) {\n this._splitterSize =\n (this.splitter &&\n Math.round(\n parseFloat(\n window\n .getComputedStyle(this.splitter)\n .getPropertyValue(\n this.vertical ? 'height' : 'width'\n )\n )\n )) ||\n SPLITTERSIZE;\n }\n return this._splitterSize;\n }\n\n protected override render(): TemplateResult {\n const splitterClasses = {\n 'is-resized-start': this.splitterPos === this.minPos,\n 'is-resized-end': (this.splitterPos &&\n this.splitterPos > this.splitterSize &&\n this.splitterPos === this.maxPos) as boolean,\n 'is-collapsed-start': this.splitterPos === 0,\n 'is-collapsed-end': (this.splitterPos &&\n this.splitterPos >=\n Math.max(\n this.splitterSize,\n this.viewSize - this.splitterSize\n )) as boolean,\n };\n const label =\n this.label || this.resizable ? 'Resize the panels' : undefined;\n\n return html`\n <slot\n id=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n @slotchange=${this.onContentSlotChange}\n style=\"--spectrum-split-view-first-pane-size: ${this\n .firstPaneSize}\"\n ></slot>\n ${this.enoughChildren\n ? html`\n <div\n id=\"splitter\"\n class=${classMap(splitterClasses)}\n role=\"separator\"\n aria-controls=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n aria-label=${ifDefined(label)}\n aria-orientation=${this.vertical\n ? 'horizontal'\n : 'vertical'}\n aria-valuenow=${Math.round(\n (parseFloat(this.firstPaneSize) / this.viewSize) *\n 100\n )}\n tabindex=${ifDefined(\n this.resizable ? '0' : undefined\n )}\n @keydown=${this.onKeydown}\n ${streamingListener({\n start: ['pointerdown', this.onPointerdown],\n streamInside: ['pointermove', this.onPointermove],\n end: [\n [\n 'pointerup',\n 'pointercancel',\n 'pointerleave',\n ],\n this.onPointerup,\n ],\n })}\n >\n ${this.resizable\n ? html`\n <div id=\"gripper\"></div>\n `\n : nothing}\n </div>\n `\n : nothing}\n `;\n }\n\n private controlledElIDApplied = false;\n\n private onContentSlotChange(\n event: Event & { target: HTMLSlotElement }\n ): void {\n if (this.controlledEl && this.controlledElIDApplied) {\n this.controlledEl.removeAttribute('id');\n this.controlledElIDApplied = false;\n }\n this.controlledEl = event.target.assignedElements()[0] as HTMLElement;\n if (this.controlledEl && !this.controlledEl.id) {\n this.controlledEl.id = `${this.tagName.toLowerCase()}-${crypto\n .randomUUID()\n .slice(0, 8)}`;\n this.controlledElIDApplied = true;\n }\n this.enoughChildren = this.children.length > 1;\n this.checkResize();\n }\n\n private onPointerdown(event: PointerEvent): void {\n if (!this.resizable || (event.button && event.button !== 0)) {\n event.preventDefault();\n return;\n }\n this.splitter.setPointerCapture(event.pointerId);\n this.offset = this.getOffset();\n }\n\n private onPointermove(event: PointerEvent): void {\n event.preventDefault();\n let pos =\n this.vertical || this.isLTR\n ? this.getPosition(event) - this.offset\n : this.offset - this.getPosition(event);\n if (this.collapsible && pos < this.minPos - COLLAPSE_THREASHOLD) {\n pos = 0;\n }\n if (this.collapsible && pos > this.maxPos + COLLAPSE_THREASHOLD) {\n pos = this.viewSize - this.splitterSize;\n }\n this.updatePosition(pos);\n }\n\n private onPointerup(event: PointerEvent): void {\n this.splitter.releasePointerCapture(event.pointerId);\n }\n\n private getOffset(): number {\n if (!this.rect) {\n this.rect = this.getBoundingClientRect();\n }\n const offsetX = this.isLTR ? this.rect.left : this.rect.right;\n return this.vertical ? this.rect.top : offsetX;\n }\n\n private getPosition(event: PointerEvent): number {\n return this.vertical ? event.clientY : event.clientX;\n }\n\n private movePosition(event: KeyboardEvent, offset: number): void {\n event.preventDefault();\n if (this.splitterPos !== undefined) {\n this.updatePosition(this.splitterPos + offset);\n }\n }\n\n private onKeydown(event: KeyboardEvent): void {\n if (!this.resizable) {\n return;\n }\n let direction = 0;\n const isLTRorVertical = this.isLTR || this.vertical;\n switch (event.key) {\n case 'Home':\n event.preventDefault();\n this.updatePosition(this.collapsible ? 0 : this.minPos);\n return;\n case 'End':\n event.preventDefault();\n this.updatePosition(\n this.collapsible\n ? this.viewSize - this.splitterSize\n : this.maxPos\n );\n return;\n case 'ArrowLeft':\n direction = isLTRorVertical ? -1 : 1;\n break;\n case 'ArrowRight':\n direction = isLTRorVertical ? 1 : -1;\n break;\n case 'ArrowUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'ArrowDown':\n direction = this.vertical ? 1 : -1;\n break;\n case 'PageUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'PageDown':\n direction = this.vertical ? 1 : -1;\n break;\n }\n if (direction !== 0) {\n const moveBy = event.key.startsWith('Page')\n ? PAGEUPDOWN_KEY_CHANGE_VALUE\n : ARROW_KEY_CHANGE_VALUE;\n this.movePosition(event, moveBy * direction);\n }\n }\n\n private async checkResize(): Promise<void> {\n if (!this.enoughChildren) {\n return;\n }\n this.updateMinMax();\n if (this.splitterPos === undefined) {\n const startPos = await this.calcStartPos();\n this.updatePosition(startPos);\n }\n }\n\n private updateMinMax(): void {\n this.viewSize = this.vertical ? this.offsetHeight : this.offsetWidth;\n this.minPos = Math.max(\n this.primaryMin,\n this.viewSize - this.secondaryMax\n );\n this.maxPos = Math.min(\n this.primaryMax,\n this.viewSize - Math.max(this.secondaryMin, this.splitterSize)\n );\n }\n\n private updatePosition(x: number): void {\n let pos = this.getLimitedPosition(x);\n if (this.collapsible && x <= 0) {\n pos = 0;\n }\n if (\n this.collapsible &&\n x > this.maxPos &&\n x >= this.viewSize - this.splitterSize\n ) {\n pos = this.viewSize - this.splitterSize;\n }\n if (pos !== this.splitterPos) {\n this.splitterPos = pos;\n this.dispatchChangeEvent();\n }\n }\n\n private getLimitedPosition(input: number): number {\n if (input <= this.minPos) {\n return this.minPos;\n }\n if (input >= this.maxPos) {\n return this.maxPos;\n }\n return Math.max(this.minPos, Math.min(this.maxPos, input));\n }\n\n private async calcStartPos(): Promise<number> {\n if (\n this.primarySize !== undefined &&\n /^\\d+(px)?$/.test(this.primarySize)\n ) {\n return parseInt(this.primarySize, 10);\n }\n if (this.primarySize !== undefined && /^\\d+%$/.test(this.primarySize)) {\n return (parseInt(this.primarySize, 10) * this.viewSize) / 100;\n }\n if (this.primarySize === 'auto') {\n this.firstPaneSize = 'auto';\n const nodes = this.paneSlot.assignedNodes({ flatten: true });\n const firstEl = nodes.find(\n (node) => node instanceof HTMLElement\n ) as LitElement;\n if (typeof firstEl.updateComplete !== 'undefined') {\n await firstEl.updateComplete;\n }\n if (firstEl) {\n const size = window\n .getComputedStyle(firstEl)\n .getPropertyValue(this.vertical ? 'height' : 'width');\n const size_i = parseFloat(size);\n if (!isNaN(size_i)) {\n return this.getLimitedPosition(Math.ceil(size_i));\n }\n }\n }\n return this.viewSize / 2;\n }\n\n private dispatchChangeEvent(): void {\n const changeEvent = new Event('change', {\n bubbles: true,\n composed: true,\n });\n this.dispatchEvent(changeEvent);\n }\n\n protected override willUpdate(changed: PropertyValues): void {\n if (!this.hasUpdated || changed.has('primarySize')) {\n this.splitterPos = undefined;\n this.checkResize();\n }\n if (\n changed.has('splitterPos') &&\n this.splitterPos !== undefined &&\n this.enoughChildren\n ) {\n this.firstPaneSize = `${Math.round(this.splitterPos)}px`;\n }\n }\n}\n"],
5
- "mappings": "qNAYA,OAEI,QAAAA,EAEA,WAAAC,EAEA,mBAAAC,MAEG,gCACP,OACI,YAAAC,EACA,aAAAC,MACG,kDACP,OACI,YAAAC,EACA,SAAAC,EACA,SAAAC,MACG,kDACP,OAAS,qBAAAC,MAAyB,0DAIlC,OAAOC,MAAY,sBAEnB,MAAMC,EAAmB,KAEnB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,EAAA,CADN/B,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAdjC,UAeF,2BAIA+B,EAAA,CADN/B,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,GAlB3C,UAmBF,0BAIA+B,EAAA,CADN/B,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,GAtB3C,UAuBF,0BASA+B,EAAA,CADN/B,EAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,CAAC,GA/B5C,UAgCF,2BAIA+B,EAAA,CADN/B,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,GAnC7C,UAoCF,4BAIA+B,EAAA,CADN/B,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,GAvC7C,UAwCF,4BAIA+B,EAAA,CADN/B,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,cAAe,CAAC,GA3C3D,UA4CF,2BAIC+B,EAAA,CADP/B,EAAS,CAAE,KAAM,OAAQ,UAAW,EAAM,CAAC,GA/CnC,UAgDD,6BAGD+B,EAAA,CADN/B,EAAS,GAlDD,UAmDF,qBAGC+B,EAAA,CADP/B,EAAS,CAAE,KAAM,QAAS,UAAW,EAAM,CAAC,GArDpC,UAsDD,8BAGA+B,EAAA,CADP/B,EAAS,CAAE,KAAM,MAAO,CAAC,GAxDjB,UAyDD,wBAGA+B,EAAA,CADP9B,EAAM,MAAM,GA3DJ,UA4DD,wBAGA8B,EAAA,CADP9B,EAAM,WAAW,GA9DT,UA+DD",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n LitElement,\n nothing,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n classMap,\n ifDefined,\n} from '@spectrum-web-components/base/src/directives.js';\nimport {\n property,\n query,\n state,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';\n\nimport { WithSWCResizeObserver } from './types';\n\nimport styles from './split-view.css.js';\n\nconst DEFAULT_MAX_SIZE = 3840;\n\nconst SPLITTERSIZE = 2;\n\nconst ARROW_KEY_CHANGE_VALUE = 10;\n\nconst PAGEUPDOWN_KEY_CHANGE_VALUE = 50;\n\nconst COLLAPSE_THREASHOLD = 50;\n\n/**\n * @element sp-split-view\n *\n * @slot Two sibling elements to be sized by the element attritubes\n * @fires change - Announces the new position of the splitter\n */\nexport class SplitView extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @state()\n public controlledEl?: HTMLElement;\n\n @property({ type: Boolean, reflect: true })\n public vertical = false;\n\n @property({ type: Boolean, reflect: true })\n public resizable = false;\n\n @property({ type: Boolean, reflect: true })\n public collapsible = false;\n\n /** The minimum size of the primary pane */\n @property({ type: Number, attribute: 'primary-min' })\n public primaryMin = 0;\n\n /** The maximum size of the primary pane */\n @property({ type: Number, attribute: 'primary-max' })\n public primaryMax = DEFAULT_MAX_SIZE;\n\n /**\n * The start size of the primary pane, can be a real pixel number|string, percentage or \"auto\"\n * For example: \"100\", \"120px\", \"75%\" or \"auto\" are valid values\n * @type {number |\u00A0number + \"px\" | number + \"%\" | \"auto\"}\n * @attr\n */\n @property({ type: String, attribute: 'primary-size' })\n public primarySize?: string;\n\n /** The minimum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-min' })\n public secondaryMin = 0;\n\n /** The maximum size of the secondary pane */\n @property({ type: Number, attribute: 'secondary-max' })\n public secondaryMax = DEFAULT_MAX_SIZE;\n\n /** The current splitter position of split-view */\n @property({ type: Number, reflect: true, attribute: 'splitter-pos' })\n public splitterPos?: number;\n\n /** The current size of first pane of split-view */\n @property({ type: String, attribute: false })\n private firstPaneSize = 'auto';\n\n @property()\n public label?: string;\n\n @property({ type: Boolean, attribute: false })\n private enoughChildren = false;\n\n @property({ type: Number })\n private viewSize = 0;\n\n @query('slot')\n private paneSlot!: HTMLSlotElement;\n\n @query('#splitter')\n private splitter!: HTMLDivElement;\n\n private offset = 0;\n\n private minPos = 0;\n\n private maxPos = DEFAULT_MAX_SIZE;\n\n private observer?: WithSWCResizeObserver['ResizeObserver'];\n\n private rect?: DOMRect;\n\n private _splitterSize?: number;\n\n public constructor() {\n super();\n const RO = (window as unknown as WithSWCResizeObserver).ResizeObserver;\n if (RO) {\n this.observer = new RO(() => {\n this.rect = undefined;\n this.updateMinMax();\n });\n }\n }\n\n public override connectedCallback(): void {\n super.connectedCallback();\n this.observer?.observe(this);\n }\n\n public override disconnectedCallback(): void {\n this.observer?.unobserve(this);\n super.disconnectedCallback();\n }\n\n /**\n * @private\n **/\n public get splitterSize(): number {\n if (!this._splitterSize) {\n this._splitterSize =\n (this.splitter &&\n Math.round(\n parseFloat(\n window\n .getComputedStyle(this.splitter)\n .getPropertyValue(\n this.vertical ? 'height' : 'width'\n )\n )\n )) ||\n SPLITTERSIZE;\n }\n return this._splitterSize;\n }\n\n protected override render(): TemplateResult {\n const splitterClasses = {\n 'is-resized-start': this.splitterPos === this.minPos,\n 'is-resized-end': (this.splitterPos &&\n this.splitterPos > this.splitterSize &&\n this.splitterPos === this.maxPos) as boolean,\n 'is-collapsed-start': this.splitterPos === 0,\n 'is-collapsed-end': (this.splitterPos &&\n this.splitterPos >=\n Math.max(\n this.splitterSize,\n this.viewSize - this.splitterSize\n )) as boolean,\n };\n const label =\n this.label || (this.resizable ? 'Resize the panels' : undefined);\n\n return html`\n <slot\n id=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n @slotchange=${this.onContentSlotChange}\n style=\"--spectrum-split-view-first-pane-size: ${this\n .firstPaneSize}\"\n ></slot>\n ${this.enoughChildren\n ? html`\n <div\n id=\"splitter\"\n class=${classMap(splitterClasses)}\n role=\"separator\"\n aria-controls=${ifDefined(\n this.resizable ? this.controlledEl?.id : undefined\n )}\n aria-label=${ifDefined(label)}\n aria-orientation=${this.vertical\n ? 'horizontal'\n : 'vertical'}\n aria-valuenow=${Math.round(\n (parseFloat(this.firstPaneSize) / this.viewSize) *\n 100\n )}\n tabindex=${ifDefined(\n this.resizable ? '0' : undefined\n )}\n @keydown=${this.onKeydown}\n ${streamingListener({\n start: ['pointerdown', this.onPointerdown],\n streamInside: ['pointermove', this.onPointermove],\n end: [\n [\n 'pointerup',\n 'pointercancel',\n 'pointerleave',\n ],\n this.onPointerup,\n ],\n })}\n >\n ${this.resizable\n ? html`\n <div id=\"gripper\"></div>\n `\n : nothing}\n </div>\n `\n : nothing}\n `;\n }\n\n private controlledElIDApplied = false;\n\n private onContentSlotChange(\n event: Event & { target: HTMLSlotElement }\n ): void {\n if (this.controlledEl && this.controlledElIDApplied) {\n this.controlledEl.removeAttribute('id');\n this.controlledElIDApplied = false;\n }\n this.controlledEl = event.target.assignedElements()[0] as HTMLElement;\n if (this.controlledEl && !this.controlledEl.id) {\n this.controlledEl.id = `${this.tagName.toLowerCase()}-${crypto\n .randomUUID()\n .slice(0, 8)}`;\n this.controlledElIDApplied = true;\n }\n this.enoughChildren = this.children.length > 1;\n this.checkResize();\n }\n\n private onPointerdown(event: PointerEvent): void {\n if (!this.resizable || (event.button && event.button !== 0)) {\n event.preventDefault();\n return;\n }\n this.splitter.setPointerCapture(event.pointerId);\n this.offset = this.getOffset();\n }\n\n private onPointermove(event: PointerEvent): void {\n event.preventDefault();\n let pos =\n this.vertical || this.isLTR\n ? this.getPosition(event) - this.offset\n : this.offset - this.getPosition(event);\n if (this.collapsible && pos < this.minPos - COLLAPSE_THREASHOLD) {\n pos = 0;\n }\n if (this.collapsible && pos > this.maxPos + COLLAPSE_THREASHOLD) {\n pos = this.viewSize - this.splitterSize;\n }\n this.updatePosition(pos);\n }\n\n private onPointerup(event: PointerEvent): void {\n this.splitter.releasePointerCapture(event.pointerId);\n }\n\n private getOffset(): number {\n if (!this.rect) {\n this.rect = this.getBoundingClientRect();\n }\n const offsetX = this.isLTR ? this.rect.left : this.rect.right;\n return this.vertical ? this.rect.top : offsetX;\n }\n\n private getPosition(event: PointerEvent): number {\n return this.vertical ? event.clientY : event.clientX;\n }\n\n private movePosition(event: KeyboardEvent, offset: number): void {\n event.preventDefault();\n if (this.splitterPos !== undefined) {\n this.updatePosition(this.splitterPos + offset);\n }\n }\n\n private onKeydown(event: KeyboardEvent): void {\n if (!this.resizable) {\n return;\n }\n let direction = 0;\n const isLTRorVertical = this.isLTR || this.vertical;\n switch (event.key) {\n case 'Home':\n event.preventDefault();\n this.updatePosition(this.collapsible ? 0 : this.minPos);\n return;\n case 'End':\n event.preventDefault();\n this.updatePosition(\n this.collapsible\n ? this.viewSize - this.splitterSize\n : this.maxPos\n );\n return;\n case 'ArrowLeft':\n direction = isLTRorVertical ? -1 : 1;\n break;\n case 'ArrowRight':\n direction = isLTRorVertical ? 1 : -1;\n break;\n case 'ArrowUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'ArrowDown':\n direction = this.vertical ? 1 : -1;\n break;\n case 'PageUp':\n direction = this.vertical ? -1 : 1;\n break;\n case 'PageDown':\n direction = this.vertical ? 1 : -1;\n break;\n }\n if (direction !== 0) {\n const moveBy = event.key.startsWith('Page')\n ? PAGEUPDOWN_KEY_CHANGE_VALUE\n : ARROW_KEY_CHANGE_VALUE;\n this.movePosition(event, moveBy * direction);\n }\n }\n\n private async checkResize(): Promise<void> {\n if (!this.enoughChildren) {\n return;\n }\n this.updateMinMax();\n if (this.splitterPos === undefined) {\n const startPos = await this.calcStartPos();\n this.updatePosition(startPos);\n }\n }\n\n private updateMinMax(): void {\n this.viewSize = this.vertical ? this.offsetHeight : this.offsetWidth;\n this.minPos = Math.max(\n this.primaryMin,\n this.viewSize - this.secondaryMax\n );\n this.maxPos = Math.min(\n this.primaryMax,\n this.viewSize - Math.max(this.secondaryMin, this.splitterSize)\n );\n }\n\n private updatePosition(x: number): void {\n let pos = this.getLimitedPosition(x);\n if (this.collapsible && x <= 0) {\n pos = 0;\n }\n if (\n this.collapsible &&\n x > this.maxPos &&\n x >= this.viewSize - this.splitterSize\n ) {\n pos = this.viewSize - this.splitterSize;\n }\n if (pos !== this.splitterPos) {\n this.splitterPos = pos;\n this.dispatchChangeEvent();\n }\n }\n\n private getLimitedPosition(input: number): number {\n if (input <= this.minPos) {\n return this.minPos;\n }\n if (input >= this.maxPos) {\n return this.maxPos;\n }\n return Math.max(this.minPos, Math.min(this.maxPos, input));\n }\n\n private async calcStartPos(): Promise<number> {\n if (\n this.primarySize !== undefined &&\n /^\\d+(px)?$/.test(this.primarySize)\n ) {\n return parseInt(this.primarySize, 10);\n }\n if (this.primarySize !== undefined && /^\\d+%$/.test(this.primarySize)) {\n return (parseInt(this.primarySize, 10) * this.viewSize) / 100;\n }\n if (this.primarySize === 'auto') {\n this.firstPaneSize = 'auto';\n const nodes = this.paneSlot.assignedNodes({ flatten: true });\n const firstEl = nodes.find(\n (node) => node instanceof HTMLElement\n ) as LitElement;\n if (typeof firstEl.updateComplete !== 'undefined') {\n await firstEl.updateComplete;\n }\n if (firstEl) {\n const size = window\n .getComputedStyle(firstEl)\n .getPropertyValue(this.vertical ? 'height' : 'width');\n const size_i = parseFloat(size);\n if (!isNaN(size_i)) {\n return this.getLimitedPosition(Math.ceil(size_i));\n }\n }\n }\n return this.viewSize / 2;\n }\n\n private dispatchChangeEvent(): void {\n const changeEvent = new Event('change', {\n bubbles: true,\n composed: true,\n });\n this.dispatchEvent(changeEvent);\n }\n\n protected override willUpdate(changed: PropertyValues): void {\n if (!this.hasUpdated || changed.has('primarySize')) {\n this.splitterPos = undefined;\n this.checkResize();\n }\n if (\n changed.has('splitterPos') &&\n this.splitterPos !== undefined &&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A9DT,UA+DD",
6
6
  "names": ["html", "nothing", "SpectrumElement", "classMap", "ifDefined", "property", "query", "state", "streamingListener", "styles", "DEFAULT_MAX_SIZE", "SPLITTERSIZE", "ARROW_KEY_CHANGE_VALUE", "PAGEUPDOWN_KEY_CHANGE_VALUE", "COLLAPSE_THREASHOLD", "RO", "_a", "_b", "splitterClasses", "label", "event", "pos", "offsetX", "offset", "direction", "isLTRorVertical", "moveBy", "startPos", "x", "input", "firstEl", "node", "size", "size_i", "changeEvent", "changed", "__decorateClass"]
7
7
  }
@@ -75,10 +75,6 @@ var(--spectrum-splitview-handle-width)
75
75
  --highcontrast-splitview-handle-background-color-focus,var(
76
76
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
77
77
  )
78
- );outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(
79
- --highcontrast-splitview-handle-background-color-focus,var(
80
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
81
- )
82
78
  );outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(
83
79
  --highcontrast-splitview-handle-background-color-focus,var(
84
80
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -91,14 +87,6 @@ var(--spectrum-splitview-handle-width)
91
87
  --highcontrast-splitview-handle-background-color-focus,var(
92
88
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
93
89
  )
94
- )}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(
95
- --highcontrast-splitview-handle-background-color-focus,var(
96
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
97
- )
98
- );box-shadow:0 0 0 1px var(
99
- --highcontrast-splitview-handle-background-color-focus,var(
100
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
101
- )
102
90
  )}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(
103
91
  --highcontrast-splitview-handle-background-color-focus,var(
104
92
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -111,10 +99,6 @@ var(--spectrum-splitview-handle-width)
111
99
  --highcontrast-splitview-handle-background-color-focus,var(
112
100
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
113
101
  )
114
- )}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(
115
- --highcontrast-splitview-handle-background-color-focus,var(
116
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
117
- )
118
102
  )}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(
119
103
  --highcontrast-splitview-handle-background-color-focus,var(
120
104
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-split-view.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;touch-action:none;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}\n`;\nexport default styles;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqKf,eAAe;",
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;touch-action:none;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqJf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -73,10 +73,6 @@ var(--spectrum-splitview-handle-width)
73
73
  --highcontrast-splitview-handle-background-color-focus,var(
74
74
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
75
75
  )
76
- );outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(
77
- --highcontrast-splitview-handle-background-color-focus,var(
78
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
79
- )
80
76
  );outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(
81
77
  --highcontrast-splitview-handle-background-color-focus,var(
82
78
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -89,14 +85,6 @@ var(--spectrum-splitview-handle-width)
89
85
  --highcontrast-splitview-handle-background-color-focus,var(
90
86
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
91
87
  )
92
- )}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(
93
- --highcontrast-splitview-handle-background-color-focus,var(
94
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
95
- )
96
- );box-shadow:0 0 0 1px var(
97
- --highcontrast-splitview-handle-background-color-focus,var(
98
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
99
- )
100
88
  )}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(
101
89
  --highcontrast-splitview-handle-background-color-focus,var(
102
90
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -109,10 +97,6 @@ var(--spectrum-splitview-handle-width)
109
97
  --highcontrast-splitview-handle-background-color-focus,var(
110
98
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
111
99
  )
112
- )}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(
113
- --highcontrast-splitview-handle-background-color-focus,var(
114
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
115
- )
116
100
  )}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(
117
101
  --highcontrast-splitview-handle-background-color-focus,var(
118
102
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-split-view.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;touch-action:none;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}\n`;\nexport default styles;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqKf,eAAeC",
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;touch-action:none;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqJf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -75,10 +75,6 @@ var(--spectrum-splitview-handle-width)
75
75
  --highcontrast-splitview-handle-background-color-focus,var(
76
76
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
77
77
  )
78
- );outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(
79
- --highcontrast-splitview-handle-background-color-focus,var(
80
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
81
- )
82
78
  );outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(
83
79
  --highcontrast-splitview-handle-background-color-focus,var(
84
80
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -91,14 +87,6 @@ var(--spectrum-splitview-handle-width)
91
87
  --highcontrast-splitview-handle-background-color-focus,var(
92
88
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
93
89
  )
94
- )}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(
95
- --highcontrast-splitview-handle-background-color-focus,var(
96
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
97
- )
98
- );box-shadow:0 0 0 1px var(
99
- --highcontrast-splitview-handle-background-color-focus,var(
100
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
101
- )
102
90
  )}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(
103
91
  --highcontrast-splitview-handle-background-color-focus,var(
104
92
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -111,10 +99,6 @@ var(--spectrum-splitview-handle-width)
111
99
  --highcontrast-splitview-handle-background-color-focus,var(
112
100
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
113
101
  )
114
- )}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(
115
- --highcontrast-splitview-handle-background-color-focus,var(
116
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
117
- )
118
102
  )}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(
119
103
  --highcontrast-splitview-handle-background-color-focus,var(
120
104
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["split-view.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}:host{--spectrum-split-view-first-pane-size:50%}::slotted(*){overflow:auto}::slotted(:first-child){order:1}:host(:not([vertical])) ::slotted(:first-child:not(:last-child)){width:var(--spectrum-split-view-first-pane-size)}:host([vertical]) ::slotted(:first-child:not(:last-child)){height:var(--spectrum-split-view-first-pane-size)}::slotted(:nth-child(2)){flex:1;order:3}::slotted(:nth-child(n+3)){display:none}#gripper{touch-action:none}#splitter{height:auto;order:2}:host([resizable]) #splitter{background-clip:content-box;cursor:ew-resize;margin:0 calc(var(--spectrum-global-dimension-static-size-125)*-1);padding:0 var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter{background-clip:content-box;cursor:ns-resize;margin:calc(var(--spectrum-global-dimension-static-size-125)*-1) 0;padding:var(--spectrum-global-dimension-static-size-125) 0}:host([resizable][dir=ltr]) #splitter.is-resized-start,:host([resizable][dir=rtl]) #splitter.is-resized-end{cursor:e-resize}:host([resizable][dir=ltr]) #splitter.is-resized-end,:host([resizable][dir=rtl]) #splitter.is-resized-start{cursor:w-resize}:host([vertical][resizable]) #splitter.is-resized-start{cursor:s-resize}:host([vertical][resizable]) #splitter.is-resized-end{cursor:n-resize}:host([resizable][collapsible]) #splitter.is-resized-end,:host([resizable][collapsible]) #splitter.is-resized-start{cursor:ew-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-start,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-end{cursor:e-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-end,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-start{cursor:w-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-start{cursor:s-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-end{cursor:n-resize}:host([vertical][resizable][collapsible]) #splitter.is-resized-end,:host([vertical][resizable][collapsible]) #splitter.is-resized-start{cursor:ns-resize}:host([dir=ltr][resizable]) #gripper{left:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([dir=rtl][resizable]) #gripper{right:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([vertical][resizable]) #gripper{left:50%;margin-top:var(--spectrum-global-dimension-static-size-125);right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-start #gripper{left:var(--spectrum-global-dimension-static-size-125)}:host([dir=rtl][resizable]) #splitter.is-collapsed-start #gripper{right:var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter.is-collapsed-start #gripper{left:50%;right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-end #gripper{left:var(--spectrum-global-dimension-static-size-25)}:host([dir=rtl][resizable]) #splitter.is-collapsed-end #gripper{right:var(--spectrum-global-dimension-static-size-25)}:host([vertical][resizable]) #splitter.is-collapsed-end #gripper{left:50%;margin-top:0;right:50%;top:var(--spectrum-global-dimension-static-size-25)}\n`;\nexport default styles;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiLf,eAAe;",
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}:host{--spectrum-split-view-first-pane-size:50%}::slotted(*){overflow:auto}::slotted(:first-child){order:1}:host(:not([vertical])) ::slotted(:first-child:not(:last-child)){width:var(--spectrum-split-view-first-pane-size)}:host([vertical]) ::slotted(:first-child:not(:last-child)){height:var(--spectrum-split-view-first-pane-size)}::slotted(:nth-child(2)){flex:1;order:3}::slotted(:nth-child(n+3)){display:none}#gripper{touch-action:none}#splitter{height:auto;order:2}:host([resizable]) #splitter{background-clip:content-box;cursor:ew-resize;margin:0 calc(var(--spectrum-global-dimension-static-size-125)*-1);padding:0 var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter{background-clip:content-box;cursor:ns-resize;margin:calc(var(--spectrum-global-dimension-static-size-125)*-1) 0;padding:var(--spectrum-global-dimension-static-size-125) 0}:host([resizable][dir=ltr]) #splitter.is-resized-start,:host([resizable][dir=rtl]) #splitter.is-resized-end{cursor:e-resize}:host([resizable][dir=ltr]) #splitter.is-resized-end,:host([resizable][dir=rtl]) #splitter.is-resized-start{cursor:w-resize}:host([vertical][resizable]) #splitter.is-resized-start{cursor:s-resize}:host([vertical][resizable]) #splitter.is-resized-end{cursor:n-resize}:host([resizable][collapsible]) #splitter.is-resized-end,:host([resizable][collapsible]) #splitter.is-resized-start{cursor:ew-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-start,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-end{cursor:e-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-end,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-start{cursor:w-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-start{cursor:s-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-end{cursor:n-resize}:host([vertical][resizable][collapsible]) #splitter.is-resized-end,:host([vertical][resizable][collapsible]) #splitter.is-resized-start{cursor:ns-resize}:host([dir=ltr][resizable]) #gripper{left:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([dir=rtl][resizable]) #gripper{right:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([vertical][resizable]) #gripper{left:50%;margin-top:var(--spectrum-global-dimension-static-size-125);right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-start #gripper{left:var(--spectrum-global-dimension-static-size-125)}:host([dir=rtl][resizable]) #splitter.is-collapsed-start #gripper{right:var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter.is-collapsed-start #gripper{left:50%;right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-end #gripper{left:var(--spectrum-global-dimension-static-size-25)}:host([dir=rtl][resizable]) #splitter.is-collapsed-end #gripper{right:var(--spectrum-global-dimension-static-size-25)}:host([vertical][resizable]) #splitter.is-collapsed-end #gripper{left:50%;margin-top:0;right:50%;top:var(--spectrum-global-dimension-static-size-25)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiKf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -73,10 +73,6 @@ var(--spectrum-splitview-handle-width)
73
73
  --highcontrast-splitview-handle-background-color-focus,var(
74
74
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
75
75
  )
76
- );outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(
77
- --highcontrast-splitview-handle-background-color-focus,var(
78
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
79
- )
80
76
  );outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(
81
77
  --highcontrast-splitview-handle-background-color-focus,var(
82
78
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -89,14 +85,6 @@ var(--spectrum-splitview-handle-width)
89
85
  --highcontrast-splitview-handle-background-color-focus,var(
90
86
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
91
87
  )
92
- )}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(
93
- --highcontrast-splitview-handle-background-color-focus,var(
94
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
95
- )
96
- );box-shadow:0 0 0 1px var(
97
- --highcontrast-splitview-handle-background-color-focus,var(
98
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
99
- )
100
88
  )}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(
101
89
  --highcontrast-splitview-handle-background-color-focus,var(
102
90
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -109,10 +97,6 @@ var(--spectrum-splitview-handle-width)
109
97
  --highcontrast-splitview-handle-background-color-focus,var(
110
98
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
111
99
  )
112
- )}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(
113
- --highcontrast-splitview-handle-background-color-focus,var(
114
- --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
115
- )
116
100
  )}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(
117
101
  --highcontrast-splitview-handle-background-color-focus,var(
118
102
  --mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["split-view.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}:host{--spectrum-split-view-first-pane-size:50%}::slotted(*){overflow:auto}::slotted(:first-child){order:1}:host(:not([vertical])) ::slotted(:first-child:not(:last-child)){width:var(--spectrum-split-view-first-pane-size)}:host([vertical]) ::slotted(:first-child:not(:last-child)){height:var(--spectrum-split-view-first-pane-size)}::slotted(:nth-child(2)){flex:1;order:3}::slotted(:nth-child(n+3)){display:none}#gripper{touch-action:none}#splitter{height:auto;order:2}:host([resizable]) #splitter{background-clip:content-box;cursor:ew-resize;margin:0 calc(var(--spectrum-global-dimension-static-size-125)*-1);padding:0 var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter{background-clip:content-box;cursor:ns-resize;margin:calc(var(--spectrum-global-dimension-static-size-125)*-1) 0;padding:var(--spectrum-global-dimension-static-size-125) 0}:host([resizable][dir=ltr]) #splitter.is-resized-start,:host([resizable][dir=rtl]) #splitter.is-resized-end{cursor:e-resize}:host([resizable][dir=ltr]) #splitter.is-resized-end,:host([resizable][dir=rtl]) #splitter.is-resized-start{cursor:w-resize}:host([vertical][resizable]) #splitter.is-resized-start{cursor:s-resize}:host([vertical][resizable]) #splitter.is-resized-end{cursor:n-resize}:host([resizable][collapsible]) #splitter.is-resized-end,:host([resizable][collapsible]) #splitter.is-resized-start{cursor:ew-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-start,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-end{cursor:e-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-end,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-start{cursor:w-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-start{cursor:s-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-end{cursor:n-resize}:host([vertical][resizable][collapsible]) #splitter.is-resized-end,:host([vertical][resizable][collapsible]) #splitter.is-resized-start{cursor:ns-resize}:host([dir=ltr][resizable]) #gripper{left:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([dir=rtl][resizable]) #gripper{right:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([vertical][resizable]) #gripper{left:50%;margin-top:var(--spectrum-global-dimension-static-size-125);right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-start #gripper{left:var(--spectrum-global-dimension-static-size-125)}:host([dir=rtl][resizable]) #splitter.is-collapsed-start #gripper{right:var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter.is-collapsed-start #gripper{left:50%;right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-end #gripper{left:var(--spectrum-global-dimension-static-size-25)}:host([dir=rtl][resizable]) #splitter.is-collapsed-end #gripper{right:var(--spectrum-global-dimension-static-size-25)}:host([vertical][resizable]) #splitter.is-collapsed-end #gripper{left:50%;margin-top:0;right:50%;top:var(--spectrum-global-dimension-static-size-25)}\n`;\nexport default styles;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiLf,eAAeC",
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-splitview-vertical-width:100%;--spectrum-splitview-vertical-gripper-width:50%;--spectrum-splitview-vertical-gripper-outer-width:100%;--spectrum-splitview-vertical-gripper-reset:0;--spectrum-splitview-background-color:var(--spectrum-gray-100);--spectrum-splitview-handle-background-color:var(--spectrum-gray-300);--spectrum-splitview-handle-background-color-hover:var(\n--spectrum-gray-400\n);--spectrum-splitview-handle-background-color-down:var(--spectrum-gray-800);--spectrum-splitview-handle-background-color-focus:var(\n--spectrum-focus-indicator-color\n);--spectrum-splitview-handle-width:var(--spectrum-border-width-200);--spectrum-splitview-gripper-border-radius:var(\n--spectrum-corner-radius-75\n);--spectrum-splitview-gripper-width:var(--spectrum-border-width-400);--spectrum-splitview-gripper-height:16px;--spectrum-splitview-gripper-border-width-horizontal:3px;--spectrum-splitview-gripper-border-width-vertical:var(\n--spectrum-border-width-400\n)}:host{display:flex;overflow:hidden}::slotted(*){background-color:var(\n--mod-splitview-background-color,var(--spectrum-splitview-background-color)\n);block-size:100%}#gripper{block-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);border-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-radius:var(\n--mod-splitview-gripper-border-radius,var(--spectrum-splitview-gripper-border-radius)\n);border-style:solid;content:\"\";display:block;inline-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);inset-block-start:50%;inset-inline-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);position:absolute;transform:translateY(-50%)}#gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n)}#splitter{background-color:var(\n--highcontrast-splitview-handle-background-color,var(\n--mod-splitview-handle-background-color,var(--spectrum-splitview-handle-background-color)\n)\n);block-size:100%;inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);position:relative;-webkit-user-select:none;user-select:none;z-index:1}#splitter.is-collapsed-end #gripper:before,#splitter.is-collapsed-start #gripper:before{block-size:100%;content:\"\";inline-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inset-block-start:0;inset-inline-start:calc(50% - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);position:absolute}#splitter.is-collapsed-start #gripper{inset-inline-start:0}#splitter.is-collapsed-end #gripper{inset-inline:auto 0}:host([resizable]) #splitter.is-hovered,:host([resizable]) #splitter:hover{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper,:host([resizable]) #splitter:hover #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-hovered #gripper:before,:host([resizable]) #splitter:hover #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-hover,var(\n--mod-splitview-handle-background-color-hover,var(--spectrum-splitview-handle-background-color-hover)\n)\n)}:host([resizable]) #splitter.is-active,:host([resizable]) #splitter:active{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper,:host([resizable]) #splitter:active #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter.is-active #gripper:before,:host([resizable]) #splitter:active #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-down,var(\n--mod-splitview-handle-background-color-down,var(--spectrum-splitview-handle-background-color-down)\n)\n)}:host([resizable]) #splitter:focus{outline:none}:host([resizable]) #splitter.focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter:focus-visible{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);outline:none}:host([resizable]) #splitter.focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper{border-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n);box-shadow:0 0 0 1px var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter.focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([resizable]) #splitter:focus-visible #gripper:before{background-color:var(\n--highcontrast-splitview-handle-background-color-focus,var(\n--mod-splitview-handle-background-color-focus,var(--spectrum-splitview-handle-background-color-focus)\n)\n)}:host([vertical]){flex-direction:column}:host([vertical]) ::slotted(*){block-size:auto;inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #gripper{block-size:var(\n--mod-splitview-gripper-width,var(--spectrum-splitview-gripper-width)\n);border-block-width:var(\n--mod-splitview-gripper-border-width-horizontal,var(--spectrum-splitview-gripper-border-width-horizontal)\n);border-inline-width:var(\n--mod-splitview-gripper-border-width-vertical,var(--spectrum-splitview-gripper-border-width-vertical)\n);inline-size:var(\n--mod-splitview-gripper-height,var(--spectrum-splitview-gripper-height)\n);inset-block-start:calc((var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n) + 2*var(--mod-splitview-gripper-border-width-vertical,\nvar(--spectrum-splitview-gripper-border-width-vertical)) - var(\n--mod-splitview-gripper-width,\nvar(--spectrum-splitview-gripper-width)\n))/2*-1);inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n);transform:translate(calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n)*-1))}:host([vertical]) #splitter{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-width,var(--spectrum-splitview-vertical-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper,:host([vertical]) #splitter.is-collapsed-start #gripper{inset-inline-start:var(\n--mod-splitview-vertical-gripper-width,var(--spectrum-splitview-vertical-gripper-width)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper:before,:host([vertical]) #splitter.is-collapsed-start #gripper:before{block-size:var(\n--mod-splitview-handle-width,var(--spectrum-splitview-handle-width)\n);inline-size:var(\n--mod-splitview-vertical-gripper-outer-width,var(--spectrum-splitview-vertical-gripper-outer-width)\n);inset-block-start:calc(var(\n--mod-splitview-vertical-gripper-width,\nvar(--spectrum-splitview-vertical-gripper-width)\n) - var(\n--mod-splitview-handle-width,\nvar(--spectrum-splitview-handle-width)\n)/2);inset-inline-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-start #gripper{inset-block-start:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n)}:host([vertical]) #splitter.is-collapsed-end #gripper{inset-block-end:var(\n--mod-splitview-vertical-gripper-reset,var(--spectrum-splitview-vertical-gripper-reset)\n);inset-block-start:auto}@media (forced-colors:active){:host{--highcontrast-splitview-handle-background-color:CanvasText;--highcontrast-splitview-handle-background-color-hover:CanvasText;--highcontrast-splitview-handle-background-color-down:CanvasText;--highcontrast-splitview-handle-background-color-focus:Highlight}}:host{--spectrum-split-view-first-pane-size:50%}::slotted(*){overflow:auto}::slotted(:first-child){order:1}:host(:not([vertical])) ::slotted(:first-child:not(:last-child)){width:var(--spectrum-split-view-first-pane-size)}:host([vertical]) ::slotted(:first-child:not(:last-child)){height:var(--spectrum-split-view-first-pane-size)}::slotted(:nth-child(2)){flex:1;order:3}::slotted(:nth-child(n+3)){display:none}#gripper{touch-action:none}#splitter{height:auto;order:2}:host([resizable]) #splitter{background-clip:content-box;cursor:ew-resize;margin:0 calc(var(--spectrum-global-dimension-static-size-125)*-1);padding:0 var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter{background-clip:content-box;cursor:ns-resize;margin:calc(var(--spectrum-global-dimension-static-size-125)*-1) 0;padding:var(--spectrum-global-dimension-static-size-125) 0}:host([resizable][dir=ltr]) #splitter.is-resized-start,:host([resizable][dir=rtl]) #splitter.is-resized-end{cursor:e-resize}:host([resizable][dir=ltr]) #splitter.is-resized-end,:host([resizable][dir=rtl]) #splitter.is-resized-start{cursor:w-resize}:host([vertical][resizable]) #splitter.is-resized-start{cursor:s-resize}:host([vertical][resizable]) #splitter.is-resized-end{cursor:n-resize}:host([resizable][collapsible]) #splitter.is-resized-end,:host([resizable][collapsible]) #splitter.is-resized-start{cursor:ew-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-start,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-end{cursor:e-resize}:host([resizable][dir=ltr][collapsible]) #splitter.is-collapsed-end,:host([resizable][dir=rtl][collapsible]) #splitter.is-collapsed-start{cursor:w-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-start{cursor:s-resize}:host([vertical][resizable][collapsible]) #splitter.is-collapsed-end{cursor:n-resize}:host([vertical][resizable][collapsible]) #splitter.is-resized-end,:host([vertical][resizable][collapsible]) #splitter.is-resized-start{cursor:ns-resize}:host([dir=ltr][resizable]) #gripper{left:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([dir=rtl][resizable]) #gripper{right:calc(var(--spectrum-global-dimension-static-size-125) + (var(\n--spectrum-dragbar-gripper-width,\nvar(--spectrum-global-dimension-static-size-50)\n) + 2*var(--spectrum-dragbar-gripper-border-width-horizontal, 3px) - var(\n--spectrum-dragbar-handle-width,\nvar(--spectrum-global-dimension-static-size-25)\n))/2*-1)}:host([vertical][resizable]) #gripper{left:50%;margin-top:var(--spectrum-global-dimension-static-size-125);right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-start #gripper{left:var(--spectrum-global-dimension-static-size-125)}:host([dir=rtl][resizable]) #splitter.is-collapsed-start #gripper{right:var(--spectrum-global-dimension-static-size-125)}:host([vertical][resizable]) #splitter.is-collapsed-start #gripper{left:50%;right:50%}:host([dir=ltr][resizable]) #splitter.is-collapsed-end #gripper{left:var(--spectrum-global-dimension-static-size-25)}:host([dir=rtl][resizable]) #splitter.is-collapsed-end #gripper{right:var(--spectrum-global-dimension-static-size-25)}:host([vertical][resizable]) #splitter.is-collapsed-end #gripper{left:50%;margin-top:0;right:50%;top:var(--spectrum-global-dimension-static-size-25)}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiKf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }