Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / quickedit / js / models / AppModel.es6.js
1 /**
2  * @file
3  * A Backbone Model for the state of the in-place editing application.
4  *
5  * @see Drupal.quickedit.AppView
6  */
7
8 (function (Backbone, Drupal) {
9   /**
10    * @constructor
11    *
12    * @augments Backbone.Model
13    */
14   Drupal.quickedit.AppModel = Backbone.Model.extend(/** @lends Drupal.quickedit.AppModel# */{
15
16     /**
17      * @type {object}
18      *
19      * @prop {Drupal.quickedit.FieldModel} highlightedField
20      * @prop {Drupal.quickedit.FieldModel} activeField
21      * @prop {Drupal.dialog~dialogDefinition} activeModal
22      */
23     defaults: /** @lends Drupal.quickedit.AppModel# */{
24
25       /**
26        * The currently state='highlighted' Drupal.quickedit.FieldModel, if any.
27        *
28        * @type {Drupal.quickedit.FieldModel}
29        *
30        * @see Drupal.quickedit.FieldModel.states
31        */
32       highlightedField: null,
33
34       /**
35        * The currently state = 'active' Drupal.quickedit.FieldModel, if any.
36        *
37        * @type {Drupal.quickedit.FieldModel}
38        *
39        * @see Drupal.quickedit.FieldModel.states
40        */
41       activeField: null,
42
43       /**
44        * Reference to a {@link Drupal.dialog} instance if a state change
45        * requires confirmation.
46        *
47        * @type {Drupal.dialog~dialogDefinition}
48        */
49       activeModal: null,
50     },
51
52   });
53 }(Backbone, Drupal));