@spectrum-web-components/dialog 0.10.7 → 0.10.9-devmode.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/package.json +36 -17
  2. package/sp-dialog-wrapper.dev.js +3 -0
  3. package/sp-dialog-wrapper.dev.js.map +7 -0
  4. package/sp-dialog-wrapper.js +3 -14
  5. package/sp-dialog-wrapper.js.map +7 -1
  6. package/sp-dialog.dev.js +3 -0
  7. package/sp-dialog.dev.js.map +7 -0
  8. package/sp-dialog.js +3 -14
  9. package/sp-dialog.js.map +7 -1
  10. package/src/Dialog.dev.js +208 -0
  11. package/src/Dialog.dev.js.map +7 -0
  12. package/src/Dialog.js +170 -182
  13. package/src/Dialog.js.map +7 -1
  14. package/src/DialogWrapper.dev.js +262 -0
  15. package/src/DialogWrapper.dev.js.map +7 -0
  16. package/src/DialogWrapper.js +205 -239
  17. package/src/DialogWrapper.js.map +7 -1
  18. package/src/dialog.css.dev.js +99 -0
  19. package/src/dialog.css.dev.js.map +7 -0
  20. package/src/dialog.css.js +3 -14
  21. package/src/dialog.css.js.map +7 -1
  22. package/src/index.dev.js +3 -0
  23. package/src/index.dev.js.map +7 -0
  24. package/src/index.js +3 -14
  25. package/src/index.js.map +7 -1
  26. package/src/spectrum-dialog.css.dev.js +97 -0
  27. package/src/spectrum-dialog.css.dev.js.map +7 -0
  28. package/src/spectrum-dialog.css.js +3 -14
  29. package/src/spectrum-dialog.css.js.map +7 -1
  30. package/stories/dialog-wrapper.stories.js +76 -87
  31. package/stories/dialog-wrapper.stories.js.map +7 -1
  32. package/stories/dialog.stories.js +20 -31
  33. package/stories/dialog.stories.js.map +7 -1
  34. package/stories/images.js +3 -14
  35. package/stories/images.js.map +7 -1
  36. package/test/benchmark/basic-test.js +5 -16
  37. package/test/benchmark/basic-test.js.map +7 -1
  38. package/test/dialog-wrapper.test-vrt.js +4 -15
  39. package/test/dialog-wrapper.test-vrt.js.map +7 -1
  40. package/test/dialog-wrapper.test.js +158 -156
  41. package/test/dialog-wrapper.test.js.map +7 -1
  42. package/test/dialog.test-vrt.js +4 -15
  43. package/test/dialog.test-vrt.js.map +7 -1
  44. package/test/dialog.test.js +46 -54
  45. package/test/dialog.test.js.map +7 -1
package/src/Dialog.js CHANGED
@@ -1,133 +1,118 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { __decorate } from "tslib";
13
- import { html, SpectrumElement, } from '@spectrum-web-components/base';
14
- import { property, query, } from '@spectrum-web-components/base/src/decorators.js';
15
- import { ifDefined } from '@spectrum-web-components/base/src/directives.js';
16
- import { conditionAttributeWithId } from '@spectrum-web-components/base/src/condition-attribute-with-id.js';
17
- import '@spectrum-web-components/divider/sp-divider.js';
18
- import '@spectrum-web-components/button/sp-close-button.js';
19
- import '@spectrum-web-components/button-group/sp-button-group.js';
20
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';
21
- import { FocusVisiblePolyfillMixin, ObserveSlotPresence, } from '@spectrum-web-components/shared';
22
- import styles from './dialog.css.js';
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result)
9
+ __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ SpectrumElement
15
+ } from "@spectrum-web-components/base";
16
+ import {
17
+ property,
18
+ query
19
+ } from "@spectrum-web-components/base/src/decorators.js";
20
+ import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
21
+ import { conditionAttributeWithId } from "@spectrum-web-components/base/src/condition-attribute-with-id.js";
22
+ import "@spectrum-web-components/divider/sp-divider.js";
23
+ import "@spectrum-web-components/button/sp-close-button.js";
24
+ import "@spectrum-web-components/button-group/sp-button-group.js";
25
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js";
26
+ import {
27
+ FocusVisiblePolyfillMixin,
28
+ ObserveSlotPresence
29
+ } from "@spectrum-web-components/shared";
30
+ import styles from "./dialog.css.js";
23
31
  function gatherAppliedIdsFromSlottedChildren(slot, idBase) {
24
- const assignedElements = slot.assignedElements();
25
- const ids = [];
26
- assignedElements.forEach((el, i) => {
27
- if (el.id) {
28
- ids.push(el.id);
29
- }
30
- else {
31
- const id = idBase + `-${i}`;
32
- el.id = id;
33
- ids.push(id);
34
- }
35
- });
36
- return ids;
32
+ const assignedElements = slot.assignedElements();
33
+ const ids = [];
34
+ assignedElements.forEach((el, i) => {
35
+ if (el.id) {
36
+ ids.push(el.id);
37
+ } else {
38
+ const id = idBase + `-${i}`;
39
+ el.id = id;
40
+ ids.push(id);
41
+ }
42
+ });
43
+ return ids;
37
44
  }
38
- /**
39
- * @element sp-dialog
40
- *
41
- * @slot hero - Accepts a hero image to display at the top of the dialog
42
- * @slot heading - Acts as the heading of the dialog. This should be an actual heading tag `<h1-6 />`
43
- * @slot - Content not addressed to a specific slot will be interpreted as the main content of the dialog
44
- * @slot footer - Content addressed to the `footer` will be placed below the main content and to the side of any `[slot='button']` content
45
- * @slot button - Button elements addressed to this slot may be placed below the content when not delivered in a fullscreen mode
46
- * @fires close - Announces that the dialog has been closed.
47
- */
48
- export class Dialog extends FocusVisiblePolyfillMixin(ObserveSlotPresence(SpectrumElement, [
49
- '[slot="hero"]',
50
- '[slot="footer"]',
51
- '[slot="button"]',
45
+ const _Dialog = class extends FocusVisiblePolyfillMixin(ObserveSlotPresence(SpectrumElement, [
46
+ '[slot="hero"]',
47
+ '[slot="footer"]',
48
+ '[slot="button"]'
52
49
  ])) {
53
- constructor() {
54
- super(...arguments);
55
- this.error = false;
56
- this.dismissable = false;
57
- this.noDivider = false;
58
- this.shouldManageTabOrderForScrolling = () => {
59
- const { offsetHeight, scrollHeight } = this.contentElement;
60
- if (offsetHeight < scrollHeight) {
61
- this.contentElement.tabIndex = 0;
62
- }
63
- else {
64
- this.contentElement.removeAttribute('tabindex');
65
- }
66
- };
67
- this.labelledbyId = `sp-dialog-label-${Dialog.instanceCount++}`;
68
- this.describedbyId = `sp-dialog-description-${Dialog.instanceCount++}`;
69
- }
70
- static get styles() {
71
- return [styles];
72
- }
73
- get hasFooter() {
74
- return this.getSlotContentPresence('[slot="footer"]');
75
- }
76
- get hasButtons() {
77
- return this.getSlotContentPresence('[slot="button"]');
78
- }
79
- get hasHero() {
80
- return this.getSlotContentPresence('[slot="hero"]');
81
- }
82
- close() {
83
- this.dispatchEvent(new Event('close', {
84
- bubbles: true,
85
- composed: true,
86
- cancelable: true,
87
- }));
88
- }
89
- render() {
90
- return html `
50
+ constructor() {
51
+ super(...arguments);
52
+ this.error = false;
53
+ this.dismissable = false;
54
+ this.noDivider = false;
55
+ this.shouldManageTabOrderForScrolling = () => {
56
+ const { offsetHeight, scrollHeight } = this.contentElement;
57
+ if (offsetHeight < scrollHeight) {
58
+ this.contentElement.tabIndex = 0;
59
+ } else {
60
+ this.contentElement.removeAttribute("tabindex");
61
+ }
62
+ };
63
+ this.labelledbyId = `sp-dialog-label-${_Dialog.instanceCount++}`;
64
+ this.describedbyId = `sp-dialog-description-${_Dialog.instanceCount++}`;
65
+ }
66
+ static get styles() {
67
+ return [styles];
68
+ }
69
+ get hasFooter() {
70
+ return this.getSlotContentPresence('[slot="footer"]');
71
+ }
72
+ get hasButtons() {
73
+ return this.getSlotContentPresence('[slot="button"]');
74
+ }
75
+ get hasHero() {
76
+ return this.getSlotContentPresence('[slot="hero"]');
77
+ }
78
+ close() {
79
+ this.dispatchEvent(new Event("close", {
80
+ bubbles: true,
81
+ composed: true,
82
+ cancelable: true
83
+ }));
84
+ }
85
+ render() {
86
+ return html`
91
87
  <div class="grid">
92
88
  <slot name="hero"></slot>
93
89
  <slot
94
90
  name="heading"
95
- class=${ifDefined(this.hasHero ? this.hasHero : undefined)}
91
+ class=${ifDefined(this.hasHero ? this.hasHero : void 0)}
96
92
  @slotchange=${this.onHeadingSlotchange}
97
93
  ></slot>
98
- ${this.error
99
- ? html `
94
+ ${this.error ? html`
100
95
  <sp-icon-alert class="type-icon"></sp-icon-alert>
101
- `
102
- : html ``}
103
- ${this.noDivider
104
- ? html ``
105
- : html `
96
+ ` : html``}
97
+ ${this.noDivider ? html`` : html`
106
98
  <sp-divider size="m" class="divider"></sp-divider>
107
99
  `}
108
100
  <div class="content">
109
101
  <slot @slotchange=${this.onContentSlotChange}></slot>
110
102
  </div>
111
- ${this.hasFooter
112
- ? html `
103
+ ${this.hasFooter ? html`
113
104
  <div class="footer">
114
105
  <slot name="footer"></slot>
115
106
  </div>
116
- `
117
- : html ``}
118
- ${this.hasButtons
119
- ? html `
107
+ ` : html``}
108
+ ${this.hasButtons ? html`
120
109
  <sp-button-group
121
- class="button-group ${this.hasFooter
122
- ? ''
123
- : 'button-group--noFooter'}"
110
+ class="button-group ${this.hasFooter ? "" : "button-group--noFooter"}"
124
111
  >
125
112
  <slot name="button"></slot>
126
113
  </sp-button-group>
127
- `
128
- : html ``}
129
- ${this.dismissable
130
- ? html `
114
+ ` : html``}
115
+ ${this.dismissable ? html`
131
116
  <sp-close-button
132
117
  class="close-button"
133
118
  label="Close"
@@ -135,86 +120,89 @@ export class Dialog extends FocusVisiblePolyfillMixin(ObserveSlotPresence(Spectr
135
120
  size="m"
136
121
  @click=${this.close}
137
122
  ></sp-close-button>
138
- `
139
- : html ``}
123
+ ` : html``}
140
124
  </div>
141
125
  `;
126
+ }
127
+ shouldUpdate(changes) {
128
+ if (changes.has("mode") && !!this.mode) {
129
+ this.dismissable = false;
142
130
  }
143
- shouldUpdate(changes) {
144
- if (changes.has('mode') && !!this.mode) {
145
- this.dismissable = false;
146
- }
147
- if (changes.has('dismissable') && this.dismissable) {
148
- this.dismissable = !this.mode;
149
- }
150
- return super.shouldUpdate(changes);
131
+ if (changes.has("dismissable") && this.dismissable) {
132
+ this.dismissable = !this.mode;
151
133
  }
152
- firstUpdated(changes) {
153
- super.firstUpdated(changes);
154
- this.setAttribute('role', 'dialog');
134
+ return super.shouldUpdate(changes);
135
+ }
136
+ firstUpdated(changes) {
137
+ super.firstUpdated(changes);
138
+ this.setAttribute("role", "dialog");
139
+ }
140
+ onHeadingSlotchange({
141
+ target
142
+ }) {
143
+ if (this.conditionLabelledby) {
144
+ this.conditionLabelledby();
145
+ delete this.conditionLabelledby;
155
146
  }
156
- onHeadingSlotchange({ target, }) {
157
- if (this.conditionLabelledby) {
158
- this.conditionLabelledby();
159
- delete this.conditionLabelledby;
160
- }
161
- const ids = gatherAppliedIdsFromSlottedChildren(target, this.labelledbyId);
162
- if (ids.length) {
163
- this.conditionLabelledby = conditionAttributeWithId(this, 'aria-labelledby', ids);
164
- }
147
+ const ids = gatherAppliedIdsFromSlottedChildren(target, this.labelledbyId);
148
+ if (ids.length) {
149
+ this.conditionLabelledby = conditionAttributeWithId(this, "aria-labelledby", ids);
165
150
  }
166
- onContentSlotChange({ target, }) {
167
- if (this.conditionDescribedby) {
168
- this.conditionDescribedby();
169
- delete this.conditionDescribedby;
170
- }
171
- const ids = gatherAppliedIdsFromSlottedChildren(target, this.describedbyId);
172
- if (ids.length && ids.length < 4) {
173
- this.conditionDescribedby = conditionAttributeWithId(this, 'aria-describedby', ids);
174
- }
175
- else if (!ids.length) {
176
- const idProvided = !!this.id;
177
- if (!idProvided)
178
- this.id = this.describedbyId;
179
- const conditionDescribedby = conditionAttributeWithId(this, 'aria-describedby', this.id);
180
- this.conditionDescribedby = () => {
181
- conditionDescribedby();
182
- if (!idProvided) {
183
- this.removeAttribute('id');
184
- }
185
- };
186
- }
187
- }
188
- connectedCallback() {
189
- super.connectedCallback();
190
- this.tabIndex = 0;
191
- window.addEventListener('resize', this.shouldManageTabOrderForScrolling);
151
+ }
152
+ onContentSlotChange({
153
+ target
154
+ }) {
155
+ if (this.conditionDescribedby) {
156
+ this.conditionDescribedby();
157
+ delete this.conditionDescribedby;
192
158
  }
193
- disconnectedCallback() {
194
- window.removeEventListener('resize', this.shouldManageTabOrderForScrolling);
195
- super.disconnectedCallback();
159
+ const ids = gatherAppliedIdsFromSlottedChildren(target, this.describedbyId);
160
+ if (ids.length && ids.length < 4) {
161
+ this.conditionDescribedby = conditionAttributeWithId(this, "aria-describedby", ids);
162
+ } else if (!ids.length) {
163
+ const idProvided = !!this.id;
164
+ if (!idProvided)
165
+ this.id = this.describedbyId;
166
+ const conditionDescribedby = conditionAttributeWithId(this, "aria-describedby", this.id);
167
+ this.conditionDescribedby = () => {
168
+ conditionDescribedby();
169
+ if (!idProvided) {
170
+ this.removeAttribute("id");
171
+ }
172
+ };
196
173
  }
197
- }
174
+ }
175
+ connectedCallback() {
176
+ super.connectedCallback();
177
+ this.tabIndex = 0;
178
+ window.addEventListener("resize", this.shouldManageTabOrderForScrolling);
179
+ }
180
+ disconnectedCallback() {
181
+ window.removeEventListener("resize", this.shouldManageTabOrderForScrolling);
182
+ super.disconnectedCallback();
183
+ }
184
+ };
185
+ export let Dialog = _Dialog;
198
186
  Dialog.instanceCount = 0;
199
- __decorate([
200
- query('.close-button')
201
- ], Dialog.prototype, "closeButton", void 0);
202
- __decorate([
203
- query('.content')
204
- ], Dialog.prototype, "contentElement", void 0);
205
- __decorate([
206
- property({ type: Boolean, reflect: true })
207
- ], Dialog.prototype, "error", void 0);
208
- __decorate([
209
- property({ type: Boolean, reflect: true })
210
- ], Dialog.prototype, "dismissable", void 0);
211
- __decorate([
212
- property({ type: Boolean, reflect: true, attribute: 'no-divider' })
213
- ], Dialog.prototype, "noDivider", void 0);
214
- __decorate([
215
- property({ type: String, reflect: true })
216
- ], Dialog.prototype, "mode", void 0);
217
- __decorate([
218
- property({ type: String, reflect: true })
219
- ], Dialog.prototype, "size", void 0);
220
- //# sourceMappingURL=Dialog.js.map
187
+ __decorateClass([
188
+ query(".close-button")
189
+ ], Dialog.prototype, "closeButton", 2);
190
+ __decorateClass([
191
+ query(".content")
192
+ ], Dialog.prototype, "contentElement", 2);
193
+ __decorateClass([
194
+ property({ type: Boolean, reflect: true })
195
+ ], Dialog.prototype, "error", 2);
196
+ __decorateClass([
197
+ property({ type: Boolean, reflect: true })
198
+ ], Dialog.prototype, "dismissable", 2);
199
+ __decorateClass([
200
+ property({ type: Boolean, reflect: true, attribute: "no-divider" })
201
+ ], Dialog.prototype, "noDivider", 2);
202
+ __decorateClass([
203
+ property({ type: String, reflect: true })
204
+ ], Dialog.prototype, "mode", 2);
205
+ __decorateClass([
206
+ property({ type: String, reflect: true })
207
+ ], Dialog.prototype, "size", 2);
208
+ //# sourceMappingURL=Dialog.js.map
package/src/Dialog.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["Dialog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EAEJ,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,QAAQ,EACR,KAAK,GACR,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAE5G,OAAO,gDAAgD,CAAC;AACxD,OAAO,oDAAoD,CAAC;AAC5D,OAAO,0DAA0D,CAAC;AAClE,OAAO,gEAAgE,CAAC;AACxE,OAAO,EACH,yBAAyB,EACzB,mBAAmB,GACtB,MAAM,iCAAiC,CAAC;AAEzC,O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CACtB;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAChB;AAe3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;yCAC3C;AAGzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oCACQ;AAGlD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oCACZ","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 PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport { conditionAttributeWithId } from '@spectrum-web-components/base/src/condition-attribute-with-id.js';\n\nimport '@spectrum-web-components/divider/sp-divider.js';\nimport '@spectrum-web-components/button/sp-close-button.js';\nimport '@spectrum-web-components/button-group/sp-button-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';\nimport {\n FocusVisiblePolyfillMixin,\n ObserveSlotPresence,\n} from '@spectrum-web-components/shared';\n\nimport styles from './dialog.css.js';\nimport type { CloseButton } from '@spectrum-web-components/button';\n\nfunction gatherAppliedIdsFromSlottedChildren(\n slot: HTMLSlotElement,\n idBase: string\n): string[] {\n const assignedElements = slot.assignedElements();\n const ids: string[] = [];\n assignedElements.forEach((el, i) => {\n if (el.id) {\n ids.push(el.id);\n } else {\n const id = idBase + `-${i}`;\n el.id = id;\n ids.push(id);\n }\n });\n return ids;\n}\n\n/**\n * @element sp-dialog\n *\n * @slot hero - Accepts a hero image to display at the top of the dialog\n * @slot heading - Acts as the heading of the dialog. This should be an actual heading tag `<h1-6 />`\n * @slot - Content not addressed to a specific slot will be interpreted as the main content of the dialog\n * @slot footer - Content addressed to the `footer` will be placed below the main content and to the side of any `[slot='button']` content\n * @slot button - Button elements addressed to this slot may be placed below the content when not delivered in a fullscreen mode\n * @fires close - Announces that the dialog has been closed.\n */\nexport class Dialog extends FocusVisiblePolyfillMixin(\n ObserveSlotPresence(SpectrumElement, [\n '[slot=\"hero\"]',\n '[slot=\"footer\"]',\n '[slot=\"button\"]',\n ])\n) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @query('.close-button')\n closeButton?: CloseButton;\n\n @query('.content')\n private contentElement!: HTMLDivElement;\n\n @property({ type: Boolean, reflect: true })\n public error = false;\n\n @property({ type: Boolean, reflect: true })\n public dismissable = false;\n\n protected get hasFooter(): boolean {\n return this.getSlotContentPresence('[slot=\"footer\"]');\n }\n\n protected get hasButtons(): boolean {\n return this.getSlotContentPresence('[slot=\"button\"]');\n }\n\n protected get hasHero(): boolean {\n return this.getSlotContentPresence('[slot=\"hero\"]');\n }\n\n @property({ type: Boolean, reflect: true, attribute: 'no-divider' })\n public noDivider = false;\n\n @property({ type: String, reflect: true })\n public mode?: 'fullscreen' | 'fullscreenTakeover';\n\n @property({ type: String, reflect: true })\n public size?: 's' | 'm' | 'l';\n\n public close(): void {\n this.dispatchEvent(\n new Event('close', {\n bubbles: true,\n composed: true,\n cancelable: true,\n })\n );\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"grid\">\n <slot name=\"hero\"></slot>\n <slot\n name=\"heading\"\n class=${ifDefined(this.hasHero ? this.hasHero : undefined)}\n @slotchange=${this.onHeadingSlotchange}\n ></slot>\n ${this.error\n ? html`\n <sp-icon-alert class=\"type-icon\"></sp-icon-alert>\n `\n : html``}\n ${this.noDivider\n ? html``\n : html`\n <sp-divider size=\"m\" class=\"divider\"></sp-divider>\n `}\n <div class=\"content\">\n <slot @slotchange=${this.onContentSlotChange}></slot>\n </div>\n ${this.hasFooter\n ? html`\n <div class=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n `\n : html``}\n ${this.hasButtons\n ? html`\n <sp-button-group\n class=\"button-group ${this.hasFooter\n ? ''\n : 'button-group--noFooter'}\"\n >\n <slot name=\"button\"></slot>\n </sp-button-group>\n `\n : html``}\n ${this.dismissable\n ? html`\n <sp-close-button\n class=\"close-button\"\n label=\"Close\"\n quiet\n size=\"m\"\n @click=${this.close}\n ></sp-close-button>\n `\n : html``}\n </div>\n `;\n }\n\n public shouldManageTabOrderForScrolling = (): void => {\n const { offsetHeight, scrollHeight } = this.contentElement;\n if (offsetHeight < scrollHeight) {\n this.contentElement.tabIndex = 0;\n } else {\n this.contentElement.removeAttribute('tabindex');\n }\n };\n\n protected override shouldUpdate(changes: PropertyValues): boolean {\n if (changes.has('mode') && !!this.mode) {\n this.dismissable = false;\n }\n if (changes.has('dismissable') && this.dismissable) {\n this.dismissable = !this.mode;\n }\n return super.shouldUpdate(changes);\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n this.setAttribute('role', 'dialog');\n }\n\n static instanceCount = 0;\n private labelledbyId = `sp-dialog-label-${Dialog.instanceCount++}`;\n private conditionLabelledby?: () => void;\n private conditionDescribedby?: () => void;\n\n private onHeadingSlotchange({\n target,\n }: Event & { target: HTMLSlotElement }): void {\n if (this.conditionLabelledby) {\n this.conditionLabelledby();\n delete this.conditionLabelledby;\n }\n const ids = gatherAppliedIdsFromSlottedChildren(\n target,\n this.labelledbyId\n );\n if (ids.length) {\n this.conditionLabelledby = conditionAttributeWithId(\n this,\n 'aria-labelledby',\n ids\n );\n }\n }\n\n private describedbyId = `sp-dialog-description-${Dialog.instanceCount++}`;\n\n protected onContentSlotChange({\n target,\n }: Event & { target: HTMLSlotElement }): void {\n if (this.conditionDescribedby) {\n this.conditionDescribedby();\n delete this.conditionDescribedby;\n }\n const ids = gatherAppliedIdsFromSlottedChildren(\n target,\n this.describedbyId\n );\n if (ids.length && ids.length < 4) {\n this.conditionDescribedby = conditionAttributeWithId(\n this,\n 'aria-describedby',\n ids\n );\n } else if (!ids.length) {\n const idProvided = !!this.id;\n if (!idProvided) this.id = this.describedbyId;\n const conditionDescribedby = conditionAttributeWithId(\n this,\n 'aria-describedby',\n this.id\n );\n this.conditionDescribedby = () => {\n conditionDescribedby();\n if (!idProvided) {\n this.removeAttribute('id');\n }\n };\n }\n }\n\n public override connectedCallback(): void {\n super.connectedCallback();\n this.tabIndex = 0;\n window.addEventListener(\n 'resize',\n this.shouldManageTabOrderForScrolling\n );\n }\n\n public override disconnectedCallback(): void {\n window.removeEventListener(\n 'resize',\n this.shouldManageTabOrderForScrolling\n );\n super.disconnectedCallback();\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["Dialog.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 PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport { conditionAttributeWithId } from '@spectrum-web-components/base/src/condition-attribute-with-id.js';\n\nimport '@spectrum-web-components/divider/sp-divider.js';\nimport '@spectrum-web-components/button/sp-close-button.js';\nimport '@spectrum-web-components/button-group/sp-button-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-alert.js';\nimport {\n FocusVisiblePolyfillMixin,\n ObserveSlotPresence,\n} from '@spectrum-web-components/shared';\n\nimport styles from './dialog.css.js';\nimport type { CloseButton } from '@spectrum-web-components/button';\n\nfunction gatherAppliedIdsFromSlottedChildren(\n slot: HTMLSlotElement,\n idBase: string\n): string[] {\n const assignedElements = slot.assignedElements();\n const ids: string[] = [];\n assignedElements.forEach((el, i) => {\n if (el.id) {\n ids.push(el.id);\n } else {\n const id = idBase + `-${i}`;\n el.id = id;\n ids.push(id);\n }\n });\n return ids;\n}\n\n/**\n * @element sp-dialog\n *\n * @slot hero - Accepts a hero image to display at the top of the dialog\n * @slot heading - Acts as the heading of the dialog. This should be an actual heading tag `<h1-6 />`\n * @slot - Content not addressed to a specific slot will be interpreted as the main content of the dialog\n * @slot footer - Content addressed to the `footer` will be placed below the main content and to the side of any `[slot='button']` content\n * @slot button - Button elements addressed to this slot may be placed below the content when not delivered in a fullscreen mode\n * @fires close - Announces that the dialog has been closed.\n */\nexport class Dialog extends FocusVisiblePolyfillMixin(\n ObserveSlotPresence(SpectrumElement, [\n '[slot=\"hero\"]',\n '[slot=\"footer\"]',\n '[slot=\"button\"]',\n ])\n) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @query('.close-button')\n closeButton?: CloseButton;\n\n @query('.content')\n private contentElement!: HTMLDivElement;\n\n @property({ type: Boolean, reflect: true })\n public error = false;\n\n @property({ type: Boolean, reflect: true })\n public dismissable = false;\n\n protected get hasFooter(): boolean {\n return this.getSlotContentPresence('[slot=\"footer\"]');\n }\n\n protected get hasButtons(): boolean {\n return this.getSlotContentPresence('[slot=\"button\"]');\n }\n\n protected get hasHero(): boolean {\n return this.getSlotContentPresence('[slot=\"hero\"]');\n }\n\n @property({ type: Boolean, reflect: true, attribute: 'no-divider' })\n public noDivider = false;\n\n @property({ type: String, reflect: true })\n public mode?: 'fullscreen' | 'fullscreenTakeover';\n\n @property({ type: String, reflect: true })\n public size?: 's' | 'm' | 'l';\n\n public close(): void {\n this.dispatchEvent(\n new Event('close', {\n bubbles: true,\n composed: true,\n cancelable: true,\n })\n );\n }\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"grid\">\n <slot name=\"hero\"></slot>\n <slot\n name=\"heading\"\n class=${ifDefined(this.hasHero ? this.hasHero : undefined)}\n @slotchange=${this.onHeadingSlotchange}\n ></slot>\n ${this.error\n ? html`\n <sp-icon-alert class=\"type-icon\"></sp-icon-alert>\n `\n : html``}\n ${this.noDivider\n ? html``\n : html`\n <sp-divider size=\"m\" class=\"divider\"></sp-divider>\n `}\n <div class=\"content\">\n <slot @slotchange=${this.onContentSlotChange}></slot>\n </div>\n ${this.hasFooter\n ? html`\n <div class=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n `\n : html``}\n ${this.hasButtons\n ? html`\n <sp-button-group\n class=\"button-group ${this.hasFooter\n ? ''\n : 'button-group--noFooter'}\"\n >\n <slot name=\"button\"></slot>\n </sp-button-group>\n `\n : html``}\n ${this.dismissable\n ? html`\n <sp-close-button\n class=\"close-button\"\n label=\"Close\"\n quiet\n size=\"m\"\n @click=${this.close}\n ></sp-close-button>\n `\n : html``}\n </div>\n `;\n }\n\n public shouldManageTabOrderForScrolling = (): void => {\n const { offsetHeight, scrollHeight } = this.contentElement;\n if (offsetHeight < scrollHeight) {\n this.contentElement.tabIndex = 0;\n } else {\n this.contentElement.removeAttribute('tabindex');\n }\n };\n\n protected override shouldUpdate(changes: PropertyValues): boolean {\n if (changes.has('mode') && !!this.mode) {\n this.dismissable = false;\n }\n if (changes.has('dismissable') && this.dismissable) {\n this.dismissable = !this.mode;\n }\n return super.shouldUpdate(changes);\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n this.setAttribute('role', 'dialog');\n }\n\n static instanceCount = 0;\n private labelledbyId = `sp-dialog-label-${Dialog.instanceCount++}`;\n private conditionLabelledby?: () => void;\n private conditionDescribedby?: () => void;\n\n private onHeadingSlotchange({\n target,\n }: Event & { target: HTMLSlotElement }): void {\n if (this.conditionLabelledby) {\n this.conditionLabelledby();\n delete this.conditionLabelledby;\n }\n const ids = gatherAppliedIdsFromSlottedChildren(\n target,\n this.labelledbyId\n );\n if (ids.length) {\n this.conditionLabelledby = conditionAttributeWithId(\n this,\n 'aria-labelledby',\n ids\n );\n }\n }\n\n private describedbyId = `sp-dialog-description-${Dialog.instanceCount++}`;\n\n protected onContentSlotChange({\n target,\n }: Event & { target: HTMLSlotElement }): void {\n if (this.conditionDescribedby) {\n this.conditionDescribedby();\n delete this.conditionDescribedby;\n }\n const ids = gatherAppliedIdsFromSlottedChildren(\n target,\n this.describedbyId\n );\n if (ids.length && ids.length < 4) {\n this.conditionDescribedby = conditionAttributeWithId(\n this,\n 'aria-describedby',\n ids\n );\n } else if (!ids.length) {\n const idProvided = !!this.id;\n if (!idProvided) this.id = this.describedbyId;\n const conditionDescribedby = conditionAttributeWithId(\n this,\n 'aria-describedby',\n this.id\n );\n this.conditionDescribedby = () => {\n conditionDescribedby();\n if (!idProvided) {\n this.removeAttribute('id');\n }\n };\n }\n }\n\n public override connectedCallback(): void {\n super.connectedCallback();\n this.tabIndex = 0;\n window.addEventListener(\n 'resize',\n this.shouldManageTabOrderForScrolling\n );\n }\n\n public override disconnectedCallback(): void {\n window.removeEventListener(\n 'resize',\n this.shouldManageTabOrderForScrolling\n );\n super.disconnectedCallback();\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAOA;AAAA;AAAA;AAAA;AAIA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAKA;AAGA,6CACI,MACA,QACQ;AACR,QAAM,mBAAmB,KAAK,iBAAiB;AAC/C,QAAM,MAAgB,CAAC;AACvB,mBAAi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