mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
1 line
8.3 KiB
JSON
1 line
8.3 KiB
JSON
{"ast":null,"code":"import { r as registerInstance, c as createEvent, h, g as getElement } from './core-f86805ad.js';\nconst PWAActionSheet = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.cancelable = true;\n this.options = [];\n this.open = false;\n this.onSelection = createEvent(this, \"onSelection\", 7);\n }\n componentDidLoad() {\n requestAnimationFrame(() => {\n this.open = true;\n });\n }\n dismiss() {\n if (this.cancelable) {\n this.close();\n }\n }\n close() {\n this.open = false;\n setTimeout(() => {\n this.el.parentNode.removeChild(this.el);\n }, 500);\n }\n handleOptionClick(e, i) {\n e.stopPropagation();\n this.onSelection.emit(i);\n this.close();\n }\n render() {\n return h(\"div\", {\n class: `wrapper${this.open ? ' open' : ''}`,\n onClick: () => this.dismiss()\n }, h(\"div\", {\n class: \"content\"\n }, h(\"div\", {\n class: \"title\"\n }, this.header), this.options.map((option, i) => h(\"div\", {\n class: \"action-sheet-option\",\n onClick: e => this.handleOptionClick(e, i)\n }, h(\"div\", {\n class: \"action-sheet-button\"\n }, option.title)))));\n }\n get el() {\n return getElement(this);\n }\n static get style() {\n return \":host{z-index:1000;position:fixed;top:0;left:0;width:100%;height:100%;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Roboto,sans-serif}.wrapper,:host{display:-ms-flexbox;display:flex}.wrapper{-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;-webkit-transition:background-color .4s cubic-bezier(.36,.66,.04,1);transition:background-color .4s cubic-bezier(.36,.66,.04,1)}.wrapper.open{background-color:rgba(0,0,0,.32)}.title{color:#999;height:23px;line-height:23px;padding-bottom:17px;-webkit-padding-end:16px;padding-inline-end:16px;-webkit-padding-start:16px;padding-inline-start:16px;padding-left:16px;padding-right:16px;padding-top:20px}.content{width:568px;-ms-flex-item-align:end;align-self:flex-end;background-color:#fff;-webkit-transition:-webkit-transform .4s cubic-bezier(.36,.66,.04,1);transition:-webkit-transform .4s cubic-bezier(.36,.66,.04,1);transition:transform .4s cubic-bezier(.36,.66,.04,1);transition:transform .4s cubic-bezier(.36,.66,.04,1),-webkit-transform .4s cubic-bezier(.36,.66,.04,1);-webkit-transform:translateY(100%);transform:translateY(100%)}.wrapper.open .content{-webkit-transform:translateY(0);transform:translateY(0)}\\@media only screen and (max-width:568px){.content{width:100%}}.action-sheet-option{cursor:pointer;height:52px;line-height:52px}.action-sheet-button{color:#262626;font-size:16px;-webkit-padding-end:16px;padding-inline-end:16px;-webkit-padding-start:16px;padding-inline-start:16px;padding-left:16px;padding-right:16px;padding-top:0}.action-sheet-button:hover{background-color:#f6f6f6}\";\n }\n};\nexport { PWAActionSheet as pwa_action_sheet };","map":{"version":3,"names":["r","registerInstance","c","createEvent","h","g","getElement","PWAActionSheet","constructor","hostRef","cancelable","options","open","onSelection","componentDidLoad","requestAnimationFrame","dismiss","close","setTimeout","el","parentNode","removeChild","handleOptionClick","e","i","stopPropagation","emit","render","class","onClick","header","map","option","title","style","pwa_action_sheet"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@ionic/pwa-elements/dist/esm/pwa-action-sheet.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, g as getElement } from './core-f86805ad.js';\n\nconst PWAActionSheet = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.cancelable = true;\n this.options = [];\n this.open = false;\n this.onSelection = createEvent(this, \"onSelection\", 7);\n }\n componentDidLoad() {\n requestAnimationFrame(() => {\n this.open = true;\n });\n }\n dismiss() {\n if (this.cancelable) {\n this.close();\n }\n }\n close() {\n this.open = false;\n setTimeout(() => {\n this.el.parentNode.removeChild(this.el);\n }, 500);\n }\n handleOptionClick(e, i) {\n e.stopPropagation();\n this.onSelection.emit(i);\n this.close();\n }\n render() {\n return (h(\"div\", { class: `wrapper${this.open ? ' open' : ''}`, onClick: () => this.dismiss() }, h(\"div\", { class: \"content\" }, h(\"div\", { class: \"title\" }, this.header), this.options.map((option, i) => h(\"div\", { class: \"action-sheet-option\", onClick: (e) => this.handleOptionClick(e, i) }, h(\"div\", { class: \"action-sheet-button\" }, option.title))))));\n }\n get el() { return getElement(this); }\n static get style() { return \":host{z-index:1000;position:fixed;top:0;left:0;width:100%;height:100%;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Roboto,sans-serif}.wrapper,:host{display:-ms-flexbox;display:flex}.wrapper{-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;-webkit-transition:background-color .4s cubic-bezier(.36,.66,.04,1);transition:background-color .4s cubic-bezier(.36,.66,.04,1)}.wrapper.open{background-color:rgba(0,0,0,.32)}.title{color:#999;height:23px;line-height:23px;padding-bottom:17px;-webkit-padding-end:16px;padding-inline-end:16px;-webkit-padding-start:16px;padding-inline-start:16px;padding-left:16px;padding-right:16px;padding-top:20px}.content{width:568px;-ms-flex-item-align:end;align-self:flex-end;background-color:#fff;-webkit-transition:-webkit-transform .4s cubic-bezier(.36,.66,.04,1);transition:-webkit-transform .4s cubic-bezier(.36,.66,.04,1);transition:transform .4s cubic-bezier(.36,.66,.04,1);transition:transform .4s cubic-bezier(.36,.66,.04,1),-webkit-transform .4s cubic-bezier(.36,.66,.04,1);-webkit-transform:translateY(100%);transform:translateY(100%)}.wrapper.open .content{-webkit-transform:translateY(0);transform:translateY(0)}\\@media only screen and (max-width:568px){.content{width:100%}}.action-sheet-option{cursor:pointer;height:52px;line-height:52px}.action-sheet-button{color:#262626;font-size:16px;-webkit-padding-end:16px;padding-inline-end:16px;-webkit-padding-start:16px;padding-inline-start:16px;padding-left:16px;padding-right:16px;padding-top:0}.action-sheet-button:hover{background-color:#f6f6f6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