mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +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
|