panel.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. /*!
  2. * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
  4. * v1.0.0-beta.82
  5. */
  6. import { Component, Element, Event, Method, Prop, Watch, h, Fragment } from "@stencil/core";
  7. import { CSS, HEADING_LEVEL, ICONS, SLOTS, TEXT } from "./resources";
  8. import { getElementDir, getSlotted, toAriaBoolean } from "../../utils/dom";
  9. import { Heading } from "../functional/Heading";
  10. import { SLOTS as ACTION_MENU_SLOTS } from "../action-menu/resources";
  11. import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
  12. import { updateHostInteraction } from "../../utils/interactive";
  13. import { createObserver } from "../../utils/observers";
  14. /**
  15. * @slot - A slot for adding custom content.
  16. * @slot header-actions-start - A slot for adding actions or content to the start side of the panel header.
  17. * @slot header-actions-end - A slot for adding actions or content to the end side of the panel header.
  18. * @slot header-content - A slot for adding custom content to the header.
  19. * @slot header-menu-actions - A slot for adding an overflow menu with actions inside a dropdown.
  20. * @slot fab - A slot for adding a `calcite-fab` (floating action button) to perform an action.
  21. * @slot footer-actions - A slot for adding buttons to the footer.
  22. * @slot footer - A slot for adding custom content to the footer.
  23. */
  24. export class Panel {
  25. constructor() {
  26. // --------------------------------------------------------------------------
  27. //
  28. // Properties
  29. //
  30. // --------------------------------------------------------------------------
  31. /**
  32. * Hides the panel.
  33. */
  34. this.dismissed = false;
  35. /**
  36. * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
  37. */
  38. this.disabled = false;
  39. /**
  40. * Displays a close button in the trailing side of the header.
  41. */
  42. this.dismissible = false;
  43. /**
  44. * Shows a back button in the header.
  45. */
  46. this.showBackButton = false;
  47. /**
  48. * When true, content is waiting to be loaded. This state shows a busy indicator.
  49. */
  50. this.loading = false;
  51. /**
  52. * Opens the action menu.
  53. */
  54. this.menuOpen = false;
  55. this.resizeObserver = createObserver("resize", () => this.resizeHandler());
  56. // --------------------------------------------------------------------------
  57. //
  58. // Private Methods
  59. //
  60. // --------------------------------------------------------------------------
  61. this.resizeHandler = () => {
  62. const { panelScrollEl } = this;
  63. if (!panelScrollEl ||
  64. typeof panelScrollEl.scrollHeight !== "number" ||
  65. typeof panelScrollEl.offsetHeight !== "number") {
  66. return;
  67. }
  68. panelScrollEl.tabIndex = panelScrollEl.scrollHeight > panelScrollEl.offsetHeight ? 0 : -1;
  69. };
  70. this.setContainerRef = (node) => {
  71. this.containerEl = node;
  72. };
  73. this.setDismissRef = (node) => {
  74. this.dismissButtonEl = node;
  75. };
  76. this.setBackRef = (node) => {
  77. this.backButtonEl = node;
  78. };
  79. this.panelKeyDownHandler = (event) => {
  80. if (event.key === "Escape") {
  81. this.dismiss();
  82. }
  83. };
  84. this.dismiss = () => {
  85. this.dismissed = true;
  86. this.calcitePanelDismiss.emit();
  87. };
  88. this.panelScrollHandler = () => {
  89. this.calcitePanelScroll.emit();
  90. };
  91. this.backButtonClick = () => {
  92. this.calcitePanelBackClick.emit();
  93. };
  94. this.setPanelScrollEl = (el) => {
  95. var _a, _b;
  96. this.panelScrollEl = el;
  97. (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
  98. if (el) {
  99. (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
  100. this.resizeHandler();
  101. }
  102. };
  103. }
  104. dismissedHandler() {
  105. this.calcitePanelDismissedChange.emit();
  106. }
  107. //--------------------------------------------------------------------------
  108. //
  109. // Lifecycle
  110. //
  111. //--------------------------------------------------------------------------
  112. componentDidRender() {
  113. updateHostInteraction(this);
  114. }
  115. // --------------------------------------------------------------------------
  116. //
  117. // Lifecycle
  118. //
  119. // --------------------------------------------------------------------------
  120. connectedCallback() {
  121. connectConditionalSlotComponent(this);
  122. }
  123. disconnectedCallback() {
  124. var _a;
  125. disconnectConditionalSlotComponent(this);
  126. (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
  127. }
  128. // --------------------------------------------------------------------------
  129. //
  130. // Methods
  131. //
  132. // --------------------------------------------------------------------------
  133. /** Sets focus on the component. */
  134. async setFocus(focusId) {
  135. var _a, _b, _c;
  136. if (focusId === "dismiss-button") {
  137. (_a = this.dismissButtonEl) === null || _a === void 0 ? void 0 : _a.setFocus();
  138. return;
  139. }
  140. if (focusId === "back-button") {
  141. (_b = this.backButtonEl) === null || _b === void 0 ? void 0 : _b.setFocus();
  142. return;
  143. }
  144. (_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
  145. }
  146. /** Scrolls panel content to a particular set of coordinates.
  147. *
  148. * ```
  149. * myCalcitePanel.scrollContentTo({
  150. * left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
  151. * top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
  152. * behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
  153. * });
  154. * ```
  155. */
  156. async scrollContentTo(options) {
  157. var _a;
  158. (_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
  159. }
  160. // --------------------------------------------------------------------------
  161. //
  162. // Render Methods
  163. //
  164. // --------------------------------------------------------------------------
  165. renderBackButton() {
  166. const { el } = this;
  167. const rtl = getElementDir(el) === "rtl";
  168. const { showBackButton, intlBack, backButtonClick } = this;
  169. const label = intlBack || TEXT.back;
  170. const icon = rtl ? ICONS.backRight : ICONS.backLeft;
  171. return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS.headerActionsStart, text: label })) : null;
  172. }
  173. renderHeaderContent() {
  174. const { heading, headingLevel, summary } = this;
  175. const headingNode = heading ? (h(Heading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, heading)) : null;
  176. const summaryNode = summary ? h("span", { class: CSS.summary }, summary) : null;
  177. return headingNode || summaryNode ? (h("div", { class: CSS.headerContent, key: "header-content" },
  178. headingNode,
  179. summaryNode)) : null;
  180. }
  181. /**
  182. * Allows user to override the entire header-content node.
  183. */
  184. renderHeaderSlottedContent() {
  185. return (h("div", { class: CSS.headerContent, key: "slotted-header-content" },
  186. h("slot", { name: SLOTS.headerContent })));
  187. }
  188. renderHeaderStartActions() {
  189. const { el } = this;
  190. const hasStartActions = getSlotted(el, SLOTS.headerActionsStart);
  191. return hasStartActions ? (h("div", { class: { [CSS.headerActionsStart]: true, [CSS.headerActions]: true }, key: "header-actions-start" },
  192. h("slot", { name: SLOTS.headerActionsStart }))) : null;
  193. }
  194. renderHeaderActionsEnd() {
  195. const { dismiss, dismissible, el, intlClose } = this;
  196. const text = intlClose || TEXT.close;
  197. const dismissibleNode = dismissible ? (h("calcite-action", { "aria-label": text, icon: ICONS.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
  198. const slotNode = h("slot", { name: SLOTS.headerActionsEnd });
  199. const hasEndActions = getSlotted(el, SLOTS.headerActionsEnd);
  200. return hasEndActions || dismissibleNode ? (h("div", { class: { [CSS.headerActionsEnd]: true, [CSS.headerActions]: true }, key: "header-actions-end" },
  201. slotNode,
  202. dismissibleNode)) : null;
  203. }
  204. renderMenu() {
  205. const { el, intlOptions, menuOpen } = this;
  206. const hasMenuItems = getSlotted(el, SLOTS.headerMenuActions);
  207. return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" },
  208. h("calcite-action", { icon: ICONS.menu, slot: ACTION_MENU_SLOTS.trigger, text: intlOptions || TEXT.options }),
  209. h("slot", { name: SLOTS.headerMenuActions }))) : null;
  210. }
  211. renderHeaderNode() {
  212. const { el, showBackButton } = this;
  213. const backButtonNode = this.renderBackButton();
  214. const hasHeaderSlottedContent = getSlotted(el, SLOTS.headerContent);
  215. const headerContentNode = hasHeaderSlottedContent
  216. ? this.renderHeaderSlottedContent()
  217. : this.renderHeaderContent();
  218. const actionsNodeStart = this.renderHeaderStartActions();
  219. const actionsNodeEnd = this.renderHeaderActionsEnd();
  220. const headerMenuNode = this.renderMenu();
  221. return actionsNodeStart ||
  222. headerContentNode ||
  223. actionsNodeEnd ||
  224. headerMenuNode ||
  225. showBackButton ? (h("header", { class: CSS.header },
  226. backButtonNode,
  227. actionsNodeStart,
  228. headerContentNode,
  229. actionsNodeEnd,
  230. headerMenuNode)) : null;
  231. }
  232. renderFooterNode() {
  233. const { el } = this;
  234. const hasFooterSlottedContent = getSlotted(el, SLOTS.footer);
  235. const hasFooterActions = getSlotted(el, SLOTS.footerActions);
  236. return hasFooterSlottedContent || hasFooterActions ? (h("footer", { class: CSS.footer, key: "footer" },
  237. hasFooterSlottedContent ? h("slot", { key: "footer-slot", name: SLOTS.footer }) : null,
  238. hasFooterActions ? h("slot", { key: "footer-actions-slot", name: SLOTS.footerActions }) : null)) : null;
  239. }
  240. renderContent() {
  241. const { el } = this;
  242. const hasFab = getSlotted(el, SLOTS.fab);
  243. const defaultSlotNode = h("slot", { key: "default-slot" });
  244. const contentWrapperKey = "content-wrapper";
  245. return hasFab ? (h("div", { class: { [CSS.contentWrapper]: true, [CSS.contentHeight]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl },
  246. h("section", { class: CSS.contentContainer }, defaultSlotNode),
  247. this.renderFab())) : (h("section", { class: { [CSS.contentWrapper]: true, [CSS.contentContainer]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl }, defaultSlotNode));
  248. }
  249. renderFab() {
  250. return (h("div", { class: CSS.fabContainer },
  251. h("slot", { name: SLOTS.fab })));
  252. }
  253. render() {
  254. const { dismissed, dismissible, loading, panelKeyDownHandler } = this;
  255. const panelNode = (h("article", { "aria-busy": toAriaBoolean(loading), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 },
  256. this.renderHeaderNode(),
  257. this.renderContent(),
  258. this.renderFooterNode()));
  259. return (h(Fragment, null,
  260. loading ? h("calcite-scrim", { loading: loading }) : null,
  261. panelNode));
  262. }
  263. static get is() { return "calcite-panel"; }
  264. static get encapsulation() { return "shadow"; }
  265. static get originalStyleUrls() { return {
  266. "$": ["panel.scss"]
  267. }; }
  268. static get styleUrls() { return {
  269. "$": ["panel.css"]
  270. }; }
  271. static get properties() { return {
  272. "dismissed": {
  273. "type": "boolean",
  274. "mutable": true,
  275. "complexType": {
  276. "original": "boolean",
  277. "resolved": "boolean",
  278. "references": {}
  279. },
  280. "required": false,
  281. "optional": false,
  282. "docs": {
  283. "tags": [],
  284. "text": "Hides the panel."
  285. },
  286. "attribute": "dismissed",
  287. "reflect": true,
  288. "defaultValue": "false"
  289. },
  290. "beforeBack": {
  291. "type": "unknown",
  292. "mutable": false,
  293. "complexType": {
  294. "original": "() => Promise<void>",
  295. "resolved": "() => Promise<void>",
  296. "references": {
  297. "Promise": {
  298. "location": "global"
  299. }
  300. }
  301. },
  302. "required": false,
  303. "optional": true,
  304. "docs": {
  305. "tags": [],
  306. "text": "When provided, this method will be called before it is removed from the parent flow."
  307. }
  308. },
  309. "disabled": {
  310. "type": "boolean",
  311. "mutable": false,
  312. "complexType": {
  313. "original": "boolean",
  314. "resolved": "boolean",
  315. "references": {}
  316. },
  317. "required": false,
  318. "optional": false,
  319. "docs": {
  320. "tags": [],
  321. "text": "When true, disabled prevents interaction. This state shows items with lower opacity/grayed."
  322. },
  323. "attribute": "disabled",
  324. "reflect": true,
  325. "defaultValue": "false"
  326. },
  327. "dismissible": {
  328. "type": "boolean",
  329. "mutable": false,
  330. "complexType": {
  331. "original": "boolean",
  332. "resolved": "boolean",
  333. "references": {}
  334. },
  335. "required": false,
  336. "optional": false,
  337. "docs": {
  338. "tags": [],
  339. "text": "Displays a close button in the trailing side of the header."
  340. },
  341. "attribute": "dismissible",
  342. "reflect": true,
  343. "defaultValue": "false"
  344. },
  345. "headingLevel": {
  346. "type": "number",
  347. "mutable": false,
  348. "complexType": {
  349. "original": "HeadingLevel",
  350. "resolved": "1 | 2 | 3 | 4 | 5 | 6",
  351. "references": {
  352. "HeadingLevel": {
  353. "location": "import",
  354. "path": "../functional/Heading"
  355. }
  356. }
  357. },
  358. "required": false,
  359. "optional": false,
  360. "docs": {
  361. "tags": [],
  362. "text": "Number at which section headings should start for this component."
  363. },
  364. "attribute": "heading-level",
  365. "reflect": false
  366. },
  367. "showBackButton": {
  368. "type": "boolean",
  369. "mutable": false,
  370. "complexType": {
  371. "original": "boolean",
  372. "resolved": "boolean",
  373. "references": {}
  374. },
  375. "required": false,
  376. "optional": false,
  377. "docs": {
  378. "tags": [],
  379. "text": "Shows a back button in the header."
  380. },
  381. "attribute": "show-back-button",
  382. "reflect": true,
  383. "defaultValue": "false"
  384. },
  385. "intlBack": {
  386. "type": "string",
  387. "mutable": false,
  388. "complexType": {
  389. "original": "string",
  390. "resolved": "string",
  391. "references": {}
  392. },
  393. "required": false,
  394. "optional": true,
  395. "docs": {
  396. "tags": [],
  397. "text": "'Back' text string."
  398. },
  399. "attribute": "intl-back",
  400. "reflect": false
  401. },
  402. "heightScale": {
  403. "type": "string",
  404. "mutable": false,
  405. "complexType": {
  406. "original": "Scale",
  407. "resolved": "\"l\" | \"m\" | \"s\"",
  408. "references": {
  409. "Scale": {
  410. "location": "import",
  411. "path": "../interfaces"
  412. }
  413. }
  414. },
  415. "required": false,
  416. "optional": true,
  417. "docs": {
  418. "tags": [],
  419. "text": "Specifies the maximum height of the panel."
  420. },
  421. "attribute": "height-scale",
  422. "reflect": true
  423. },
  424. "widthScale": {
  425. "type": "string",
  426. "mutable": false,
  427. "complexType": {
  428. "original": "Scale",
  429. "resolved": "\"l\" | \"m\" | \"s\"",
  430. "references": {
  431. "Scale": {
  432. "location": "import",
  433. "path": "../interfaces"
  434. }
  435. }
  436. },
  437. "required": false,
  438. "optional": true,
  439. "docs": {
  440. "tags": [],
  441. "text": "This sets width of the panel."
  442. },
  443. "attribute": "width-scale",
  444. "reflect": true
  445. },
  446. "loading": {
  447. "type": "boolean",
  448. "mutable": false,
  449. "complexType": {
  450. "original": "boolean",
  451. "resolved": "boolean",
  452. "references": {}
  453. },
  454. "required": false,
  455. "optional": false,
  456. "docs": {
  457. "tags": [],
  458. "text": "When true, content is waiting to be loaded. This state shows a busy indicator."
  459. },
  460. "attribute": "loading",
  461. "reflect": true,
  462. "defaultValue": "false"
  463. },
  464. "intlClose": {
  465. "type": "string",
  466. "mutable": false,
  467. "complexType": {
  468. "original": "string",
  469. "resolved": "string",
  470. "references": {}
  471. },
  472. "required": false,
  473. "optional": true,
  474. "docs": {
  475. "tags": [],
  476. "text": "'Close' text string for the close button. The close button will only be shown when 'dismissible' is true."
  477. },
  478. "attribute": "intl-close",
  479. "reflect": false
  480. },
  481. "intlOptions": {
  482. "type": "string",
  483. "mutable": false,
  484. "complexType": {
  485. "original": "string",
  486. "resolved": "string",
  487. "references": {}
  488. },
  489. "required": false,
  490. "optional": true,
  491. "docs": {
  492. "tags": [],
  493. "text": "'Options' text string for the actions menu."
  494. },
  495. "attribute": "intl-options",
  496. "reflect": false
  497. },
  498. "heading": {
  499. "type": "string",
  500. "mutable": false,
  501. "complexType": {
  502. "original": "string",
  503. "resolved": "string",
  504. "references": {}
  505. },
  506. "required": false,
  507. "optional": true,
  508. "docs": {
  509. "tags": [],
  510. "text": "Heading text."
  511. },
  512. "attribute": "heading",
  513. "reflect": false
  514. },
  515. "summary": {
  516. "type": "string",
  517. "mutable": false,
  518. "complexType": {
  519. "original": "string",
  520. "resolved": "string",
  521. "references": {}
  522. },
  523. "required": false,
  524. "optional": true,
  525. "docs": {
  526. "tags": [],
  527. "text": "Summary text. A description displayed underneath the heading."
  528. },
  529. "attribute": "summary",
  530. "reflect": false
  531. },
  532. "menuOpen": {
  533. "type": "boolean",
  534. "mutable": false,
  535. "complexType": {
  536. "original": "boolean",
  537. "resolved": "boolean",
  538. "references": {}
  539. },
  540. "required": false,
  541. "optional": false,
  542. "docs": {
  543. "tags": [],
  544. "text": "Opens the action menu."
  545. },
  546. "attribute": "menu-open",
  547. "reflect": true,
  548. "defaultValue": "false"
  549. }
  550. }; }
  551. static get events() { return [{
  552. "method": "calcitePanelDismiss",
  553. "name": "calcitePanelDismiss",
  554. "bubbles": true,
  555. "cancelable": true,
  556. "composed": true,
  557. "docs": {
  558. "tags": [],
  559. "text": "Emitted when the close button has been clicked."
  560. },
  561. "complexType": {
  562. "original": "any",
  563. "resolved": "any",
  564. "references": {}
  565. }
  566. }, {
  567. "method": "calcitePanelDismissedChange",
  568. "name": "calcitePanelDismissedChange",
  569. "bubbles": true,
  570. "cancelable": true,
  571. "composed": true,
  572. "docs": {
  573. "tags": [{
  574. "name": "deprecated",
  575. "text": "use calcitePanelDismiss instead."
  576. }],
  577. "text": "Emitted when the close button has been clicked."
  578. },
  579. "complexType": {
  580. "original": "any",
  581. "resolved": "any",
  582. "references": {}
  583. }
  584. }, {
  585. "method": "calcitePanelScroll",
  586. "name": "calcitePanelScroll",
  587. "bubbles": true,
  588. "cancelable": true,
  589. "composed": true,
  590. "docs": {
  591. "tags": [],
  592. "text": "Emitted when the content has been scrolled."
  593. },
  594. "complexType": {
  595. "original": "any",
  596. "resolved": "any",
  597. "references": {}
  598. }
  599. }, {
  600. "method": "calcitePanelBackClick",
  601. "name": "calcitePanelBackClick",
  602. "bubbles": true,
  603. "cancelable": true,
  604. "composed": true,
  605. "docs": {
  606. "tags": [],
  607. "text": "Emitted when the back button has been clicked."
  608. },
  609. "complexType": {
  610. "original": "any",
  611. "resolved": "any",
  612. "references": {}
  613. }
  614. }]; }
  615. static get methods() { return {
  616. "setFocus": {
  617. "complexType": {
  618. "signature": "(focusId?: \"dismiss-button\" | \"back-button\") => Promise<void>",
  619. "parameters": [{
  620. "tags": [],
  621. "text": ""
  622. }],
  623. "references": {
  624. "Promise": {
  625. "location": "global"
  626. }
  627. },
  628. "return": "Promise<void>"
  629. },
  630. "docs": {
  631. "text": "Sets focus on the component.",
  632. "tags": []
  633. }
  634. },
  635. "scrollContentTo": {
  636. "complexType": {
  637. "signature": "(options?: ScrollToOptions) => Promise<void>",
  638. "parameters": [{
  639. "tags": [],
  640. "text": ""
  641. }],
  642. "references": {
  643. "Promise": {
  644. "location": "global"
  645. },
  646. "ScrollToOptions": {
  647. "location": "global"
  648. }
  649. },
  650. "return": "Promise<void>"
  651. },
  652. "docs": {
  653. "text": "Scrolls panel content to a particular set of coordinates.\n\n```\n myCalcitePanel.scrollContentTo({\n left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.\n top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element\n behavior: \"auto\" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).\n });\n```",
  654. "tags": []
  655. }
  656. }
  657. }; }
  658. static get elementRef() { return "el"; }
  659. static get watchers() { return [{
  660. "propName": "dismissed",
  661. "methodName": "dismissedHandler"
  662. }]; }
  663. }