{"size": 1039, "ext": "js", "max_stars_repo_path": "dist/js/components/dialog.js", "max_stars_repo_name": "ollixx/node-red-contrib-webapp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/js/components/dialog.js", "max_issues_repo_name": "ollixx/node-red-contrib-webapp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/js/components/dialog.js", "max_forks_repo_name": "ollixx/node-red-contrib-webapp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.5869565217, "max_line_length": 141, "alphanum_fraction": 0.572666025}
Vue.component('GuiDialog', {
  mixins: [GuiMixin],
  computed: {
    title: function() {
      return this.resolve("title", this);
    },
  },
  methods: {
    slot: function(name) {
      let children = [];
      for (let ch of this.model.children) {
        if (ch.slot && ch.slot == name) {
          children.push(ch);
        }
      }
      return children;
    }
  },
  template:
`
<md-dialog :id="id" :md-active="!model.hide" md-backdrop="true" md-close-on-esc="true" md-click-outside-to-close="true" md-fullscreen="true">
  <md-dialog-title>{{model.title}}</md-dialog-title>
  
  <md-dialog-content>
  <component
    :key="child.id" 
    :is="child.type" 
    :model="child" 
    v-for="child in slot('content')"
    :parentContext="parentContext"
  ></component>
  </md-dialog-content>

  <md-dialog-actions>
    <component
      :key="child.id" 
      :is="child.type" 
      :model="child" 
      v-for="child in slot('actions')"
      :parentContext="parentContext"
    ></component>
  </md-dialog-actions>
</md-dialog>
`
});
