Sha256: fae20f6e10d811a888412b2069a0d2c26a49088d9db2a27f46394d8fcb5ea4c2

Contents?: true

Size: 906 Bytes

Versions: 16

Compression:

Stored size: 906 Bytes

Contents

import { CocoComponent } from "@js/coco";

export default CocoComponent("appToast", () => {
  return {
    use: false,

    notificationType: "toast",
    options: ["show", "dismiss", "showDelay", "dismissDelay", "position"],

    root: {
      "x-options": "options",
      "x-notification": "notificationType",
      "x-show": "notification.shown && !notification.dismissed",
      "x-transition:enter": "toast-enter",
      "x-transition:enter-start": "toast-enter-start",
      "x-transition:enter-end": "toast-enter-end",
      "x-transition:leave": "toast-leave",
      "x-transition:leave-start": "toast-leave-start",
      "x-transition:leave-end": "toast-leave-end",
      "@mouseover": "notification.clearAutoDismiss",
      "@mouseout": "notification.startAutoDismiss",
      "@alert:dismiss": "notification.dismiss",
      "@toast:show.document": "notification.clearFromQueue",
    },
  };
});

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
coveragebook_components-0.7.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.7.0 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.6.5 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.6.4 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.6.3 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.6.2 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.6.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.6.0 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.7 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.6 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.5 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.4 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.3 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.2 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.1 app/components/coco/app/elements/toast/toast.js
coveragebook_components-0.5.0 app/components/coco/app/elements/toast/toast.js