1 line
6.8 KiB
JSON
1 line
6.8 KiB
JSON
{"ast":null,"code":"/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { r as registerInstance, e as createEvent, h, H as Host } from './index-1a99aeb7.js';\nimport { b as getIonMode } from './ionic-global-04e268e7.js';\nimport { G as GESTURE_CONTROLLER } from './gesture-controller-17e82006.js';\nconst backdropIosCss = \":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";\nconst backdropMdCss = \":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";\nconst Backdrop = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.ionBackdropTap = createEvent(this, \"ionBackdropTap\", 7);\n this.blocker = GESTURE_CONTROLLER.createBlocker({\n disableScroll: true\n });\n /**\n * If `true`, the backdrop will be visible.\n */\n\n this.visible = true;\n /**\n * If `true`, the backdrop will can be clicked and will emit the `ionBackdropTap` event.\n */\n\n this.tappable = true;\n /**\n * If `true`, the backdrop will stop propagation on tap.\n */\n\n this.stopPropagation = true;\n }\n\n connectedCallback() {\n if (this.stopPropagation) {\n this.blocker.block();\n }\n }\n\n disconnectedCallback() {\n this.blocker.unblock();\n }\n\n onMouseDown(ev) {\n this.emitTap(ev);\n }\n\n emitTap(ev) {\n if (this.stopPropagation) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n\n if (this.tappable) {\n this.ionBackdropTap.emit();\n }\n }\n\n render() {\n const mode = getIonMode(this);\n return h(Host, {\n tabindex: \"-1\",\n \"aria-hidden\": \"true\",\n class: {\n [mode]: true,\n 'backdrop-hide': !this.visible,\n 'backdrop-no-tappable': !this.tappable\n }\n });\n }\n\n};\nBackdrop.style = {\n ios: backdropIosCss,\n md: backdropMdCss\n};\nexport { Backdrop as ion_backdrop };","map":{"version":3,"names":["r","registerInstance","e","createEvent","h","H","Host","b","getIonMode","G","GESTURE_CONTROLLER","backdropIosCss","backdropMdCss","Backdrop","constructor","hostRef","ionBackdropTap","blocker","createBlocker","disableScroll","visible","tappable","stopPropagation","connectedCallback","block","disconnectedCallback","unblock","onMouseDown","ev","emitTap","preventDefault","emit","render","mode","tabindex","class","style","ios","md","ion_backdrop"],"sources":["D:/MobileDev/WRB/WrenchBoard2023a/node_modules/@ionic/core/dist/esm/ion-backdrop.entry.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { r as registerInstance, e as createEvent, h, H as Host } from './index-1a99aeb7.js';\nimport { b as getIonMode } from './ionic-global-04e268e7.js';\nimport { G as GESTURE_CONTROLLER } from './gesture-controller-17e82006.js';\n\nconst backdropIosCss = \":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";\n\nconst backdropMdCss = \":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";\n\nconst Backdrop = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.ionBackdropTap = createEvent(this, \"ionBackdropTap\", 7);\n this.blocker = GESTURE_CONTROLLER.createBlocker({\n disableScroll: true,\n });\n /**\n * If `true`, the backdrop will be visible.\n */\n this.visible = true;\n /**\n * If `true`, the backdrop will can be clicked and will emit the `ionBackdropTap` event.\n */\n this.tappable = true;\n /**\n * If `true`, the backdrop will stop propagation on tap.\n */\n this.stopPropagation = true;\n }\n connectedCallback() {\n if (this.stopPropagation) {\n this.blocker.block();\n }\n }\n disconnectedCallback() {\n this.blocker.unblock();\n }\n onMouseDown(ev) {\n this.emitTap(ev);\n }\n emitTap(ev) {\n if (this.stopPropagation) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n if (this.tappable) {\n this.ionBackdropTap.emit();\n }\n }\n render() {\n const mode = getIonMode(this);\n return (h(Host, { tabindex: \"-1\", \"aria-hidden\": \"true\", class: {\n [mode]: true,\n 'backdrop-hide': !this.visible,\n 'backdrop-no-tappable': !this.tappable,\n } }));\n }\n};\nBackdrop.style = {\n ios: backdropIosCss,\n md: backdropMdCss\n};\n\nexport { Backdrop as ion_backdrop };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,CAAC,IAAIC,gBAAd,EAAgCC,CAAC,IAAIC,WAArC,EAAkDC,CAAlD,EAAqDC,CAAC,IAAIC,IAA1D,QAAsE,qBAAtE;AACA,SAASC,CAAC,IAAIC,UAAd,QAAgC,4BAAhC;AACA,SAASC,CAAC,IAAIC,kBAAd,QAAwC,kCAAxC;AAEA,MAAMC,cAAc,GAAG,wWAAvB;AAEA,MAAMC,aAAa,GAAG,wWAAtB;AAEA,MAAMC,QAAQ,GAAG,MAAM;EACrBC,WAAW,CAACC,OAAD,EAAU;IACnBd,gBAAgB,CAAC,IAAD,EAAOc,OAAP,CAAhB;IACA,KAAKC,cAAL,GAAsBb,WAAW,CAAC,IAAD,EAAO,gBAAP,EAAyB,CAAzB,CAAjC;IACA,KAAKc,OAAL,GAAeP,kBAAkB,CAACQ,aAAnB,CAAiC;MAC9CC,aAAa,EAAE;IAD+B,CAAjC,CAAf;IAGA;AACJ;AACA;;IACI,KAAKC,OAA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