@themarioga/grid-editor 9.0.0-beta.3 → 9.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +30 -8
  3. package/dist/grideditor.bundle.min.js +2 -2
  4. package/dist/grideditor.css +187 -0
  5. package/dist/grideditor.d.ts +44 -0
  6. package/dist/grideditor.esm.js +35 -23
  7. package/dist/grideditor.js +35 -23
  8. package/dist/grideditor.min.css +1 -1
  9. package/dist/grideditor.min.css.map +1 -1
  10. package/dist/grideditor.min.js +1 -1
  11. package/dist/grideditor.min.js.map +3 -3
  12. package/dist/locales/grideditor.es.esm.js +20 -0
  13. package/dist/locales/grideditor.es.js +20 -0
  14. package/dist/locales/grideditor.es.min.js +2 -2
  15. package/dist/locales/grideditor.es.min.js.map +2 -2
  16. package/dist/plugins/grideditor.offcanvas.esm.js +728 -0
  17. package/dist/plugins/grideditor.offcanvas.js +733 -0
  18. package/dist/plugins/grideditor.offcanvas.min.js +1 -0
  19. package/dist/plugins/grideditor.offcanvas.min.js.map +7 -0
  20. package/dist/plugins/grideditor.popup.esm.js +267 -37
  21. package/dist/plugins/grideditor.popup.js +267 -37
  22. package/dist/plugins/grideditor.popup.min.js +1 -1
  23. package/dist/plugins/grideditor.popup.min.js.map +4 -4
  24. package/docs/events.md +10 -3
  25. package/docs/locale-keys.md +21 -1
  26. package/docs/plugins.md +21 -4
  27. package/example/containers.html +22 -4
  28. package/example/index.html +1 -1
  29. package/package.json +1 -1
  30. package/src/js/grideditor.js +41 -23
  31. package/src/js/locales/grideditor.es.js +20 -0
  32. package/src/js/plugins/grideditor.offcanvas.js +423 -0
  33. package/src/js/plugins/grideditor.popup.js +10 -70
  34. package/src/js/triggers/triggers.js +321 -0
  35. package/src/less/grideditor.less +60 -0
  36. package/types/grideditor.d.ts +44 -0
@@ -43,6 +43,7 @@ The tools in a drawer, and the buttons in the toolbar above the canvas.
43
43
  | `tool.carousel_move_forward` | Move forward | Slide drawer, moves the slide a place on |
44
44
  | `tool.rename` | Double click to rename | Tooltip of a pane's label, which is edited in place |
45
45
  | `tool.toggle_popup` | Fold this popup away while editing | Popup drawer. Editing shows a popup unfolded, and this folds it away |
46
+ | `tool.toggle_offcanvas` | Fold this offcanvas away while editing | Offcanvas drawer. Editing shows an offcanvas unfolded, and this folds it away |
46
47
  | `tool.element_info` | Element: {name} | Tooltip of the element drawer's info tool. `{name}` is the element's `data-ge-label`, its `data-ge-element` type, or both |
47
48
  | `tool.column_narrower` | Make column narrower\n(hold shift for min) | Column drawer, the `-` tool. Two lines |
48
49
  | `tool.column_wider` | Make column wider\n(hold shift for max) | Column drawer, the `+` tool. Two lines |
@@ -104,7 +105,7 @@ title. `{kind}` is one of the `panel.kind_*` keys, or a container's own label.
104
105
  container.*
105
106
  -----------
106
107
 
107
- The containers: tabs, accordions, popups, carousels and cards, and the panes inside them.
108
+ The containers: tabs, accordions, popups, offcanvases, carousels and cards, and the panes inside them.
108
109
 
109
110
  | Key | English | Where |
110
111
  | --- | --- | --- |
@@ -155,6 +156,25 @@ The containers: tabs, accordions, popups, carousels and cards, and the panes ins
155
156
  | `container.add_popup` | Popup | Toolbar button that adds a popup |
156
157
  | `container.popup_title` | Title | Title of a new popup, in its modal header |
157
158
  | `container.popup_trigger` | Open | Label of the button a popup makes to open itself |
159
+ | `container.add_offcanvas` | Offcanvas | Toolbar button that adds an offcanvas |
160
+ | `container.offcanvas_title` | Title | Title of a new offcanvas, in its header |
161
+ | `container.offcanvas_trigger` | Open | Label of the button an offcanvas makes to open itself |
162
+ | `container.offcanvas_section` | Offcanvas | Heading of an offcanvas's section of its settings panel |
163
+ | `container.offcanvas_placement` | Placement | Its select for the edge it comes from |
164
+ | `container.offcanvas_start` | Start | Placement: the left in a left to right page |
165
+ | `container.offcanvas_end` | End | Placement: the right in a left to right page |
166
+ | `container.offcanvas_top` | Top | Placement: the top edge |
167
+ | `container.offcanvas_bottom` | Bottom | Placement: the bottom edge |
168
+ | `container.offcanvas_backdrop` | Backdrop | Its select for `data-bs-backdrop` |
169
+ | `container.offcanvas_backdrop_yes` | Yes | Backdrop: shown, and closes it on a click |
170
+ | `container.offcanvas_backdrop_no` | No | Backdrop: none |
171
+ | `container.offcanvas_backdrop_static` | Static | Backdrop: shown, and does not close it on a click |
172
+ | `container.offcanvas_scroll` | Allow body scroll | Its checkbox for `data-bs-scroll` |
173
+ | `container.offcanvas_keyboard` | Close with Esc | Its checkbox for `data-bs-keyboard` |
174
+ | `container.offcanvas_responsive` | Responsive | Its select for the breakpoint from which it is content |
175
+ | `container.offcanvas_responsive_never` | Always offcanvas | Responsive: a panel at every size |
176
+ | `container.offcanvas_responsive_from` | Inline from {breakpoint} | Responsive: content from that breakpoint up. `{breakpoint}` is `sm`, `md`… |
177
+ | `container.offcanvas_dark` | Dark theme | Its checkbox for `data-bs-theme="dark"` |
158
178
  | `container.add_card` | Card | Toolbar button that adds a card |
159
179
  | `container.card_title` | Card title | Title of a new card, in its header |
160
180
  | `container.card_footer` | Card footer | Text of a new card's footer, when it has one |
package/docs/plugins.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Writing a plugin
2
2
  ================
3
3
 
4
- Tabs, accordions, popups, carousels, cards and the element level controls are not built
4
+ Tabs, accordions, popups, offcanvases, carousels, cards and the element level controls are not built
5
5
  into grid-editor: each is a file you load beside it, and loading the file is
6
6
  what turns the feature on. `grideditor.card.js` is the shortest of them, and
7
7
  the one to read first if you are about to write your own.
@@ -10,6 +10,7 @@ the one to read first if you are about to write your own.
10
10
  <script src="dist/grideditor.min.js"></script>
11
11
  <script src="dist/plugins/grideditor.tabs.min.js"></script>
12
12
  <script src="dist/plugins/grideditor.popup.min.js"></script>
13
+ <script src="dist/plugins/grideditor.offcanvas.min.js"></script>
13
14
  <script src="dist/plugins/grideditor.card.min.js"></script>
14
15
  <script src="dist/plugins/grideditor.elements.min.js"></script>
15
16
  ```
@@ -74,10 +75,12 @@ GridEditor.containers.gallery = function(ge) {
74
75
  mark: function(container) { … }, // editing furniture on
75
76
  unmark: function(container) { … }, // and off again
76
77
  cleanMarkup: function(root, liveOf) { … }, // the same, on a copy: see "Reading on a copy"
78
+ references: ['data-ge-picture-id'], // optional: attributes of its own that point at an id
77
79
  afterPaneMove: function(container, pane) { … }, // optional
78
80
  tools: function(drawer, container) { … }, // optional, extra tools
79
81
  onInit: function() { … }, // optional, per canvas init
80
82
  onDeinit: function() { … }, // optional, per canvas deinit
83
+ onPreviewChange: function(previewing) { … }, // optional, the preview button pressed or let go
81
84
  };
82
85
  };
83
86
  ```
@@ -118,8 +121,21 @@ written for 6.x.
118
121
  runs before reading the markup. Whatever `mark` added comes off here. What
119
122
  is left is what the host ships.
120
123
  - **`onInit`/`onDeinit`** are for work that is about the whole canvas rather
121
- than one container — the popup plugin wires up the host's
122
- `data-ge-popup-target` triggers there.
124
+ than one container — the popup and offcanvas plugins wire up the host's
125
+ `data-ge-popup-target` and `data-ge-offcanvas-target` triggers there.
126
+ - **`onPreviewChange(previewing)`** is called when the preview button is
127
+ pressed (`true`) and let go (`false`), before the `preview-change` event; not
128
+ while it is only hovered. Pressed, the canvas has lost `ge-editing` and the
129
+ page's own controls may work: the popup and offcanvas plugins give their
130
+ triggers and close buttons back to Bootstrap, and on letting go close what
131
+ is open and put back what Bootstrap changed. A `getHtml` in the middle of a
132
+ preview runs `deinit` and `init` as ever, with `ge.previewing()` still true,
133
+ so an `onInit` can carry on with it.
134
+ - **`references`** lists the attributes of the container's own that hold an id,
135
+ as the id itself or as a `#selector`, which `ge.freshNode` renames along with
136
+ the id they point at when a copy is made: a popup's `data-ge-popup-id` and
137
+ `data-ge-popup-target`. Bootstrap's own - `data-bs-target`, `aria-controls`
138
+ and the rest - are always followed.
123
139
 
124
140
 
125
141
  The handle
@@ -137,7 +153,7 @@ element, and where there may be several, an array.
137
153
  | `ge.t(key, params)` | A string from the locale |
138
154
  | `ge.warn(message)` | A console warning, prefixed like the editor's own |
139
155
  | `ge.containerId(type)` | A generated id, stable across a reset, for Bootstrap's toggles |
140
- | `ge.freshNode(html)` | The markup as a detached node, with new ids for those the page already has and the attributes that point at them - `data-bs-target`, `data-bs-parent`, `href="#…"`, `aria-controls`, `aria-labelledby`, `aria-describedby`, `for`, `data-ge-popup-id`, `data-ge-popup-target` - following. An id grid-editor generated gets a new one from `containerId`, any other a `-2`, `-3`… suffix. What the clipboard pastes, and what a host inserting saved markup should hand `ge.place`. Place each copy before making the next: it checks the page as it is |
156
+ | `ge.freshNode(html)` | The markup as a detached node, with new ids for those the page already has and the attributes that point at them - `data-bs-target`, `data-bs-parent`, `href="#…"`, `aria-controls`, `aria-labelledby`, `aria-describedby`, `for`, and the `references` of every container plugin in use - following. An id grid-editor generated gets a new one from `containerId`, any other a `-2`, `-3`… suffix. What the clipboard pastes, and what a host inserting saved markup should hand `ge.place`. Place each copy before making the next: it checks the page as it is |
141
157
  | `ge.defaultRegion()` | A row with one full width column: what an empty pane starts as |
142
158
  | `ge.createTool(drawer, title, className, iconClass, handlers)` | A tool in a drawer, which it returns. `handlers` is a click handler or `{ eventName: handler }`; each gets the DOM event, with `this` the tool |
143
159
  | `ge.createMoveTool(drawer)` | The drag handle, unless `drag_handle` says the whole drawer is one; the tool, or null |
@@ -155,6 +171,7 @@ element, and where there may be several, an array.
155
171
  | `ge.operate(body)` | Run `body` as one operation, so a handler calling back in is queued |
156
172
  | `ge.kindOf(node)` | What an event calls a node: `row`, `column`, `element`, a container's type… |
157
173
  | `ge.view()` | The view being edited: a breakpoint key, or `'all'` |
174
+ | `ge.previewing()` | Whether the preview button is pressed: not when it is only hovered |
158
175
  | `ge.viewTiers()` | The breakpoint key that view writes: the one being edited, or `xs` - the class with no breakpoint - in the all view |
159
176
  | `ge.breakpoints` | Every breakpoint key, smallest first |
160
177
  | `ge.getUtility(node, family, view?)` | A utility's value, as in the public method |
@@ -22,6 +22,7 @@
22
22
  <script src="../dist/plugins/grideditor.tabs.min.js"></script>
23
23
  <script src="../dist/plugins/grideditor.accordion.min.js"></script>
24
24
  <script src="../dist/plugins/grideditor.popup.min.js"></script>
25
+ <script src="../dist/plugins/grideditor.offcanvas.min.js"></script>
25
26
  <script src="../dist/plugins/grideditor.card.min.js"></script>
26
27
  <script src="../dist/plugins/grideditor.carousel.min.js"></script>
27
28
 
@@ -89,9 +90,9 @@
89
90
  A container holds regions, and every region is an ordinary
90
91
  one: rows, columns, content areas and elements nest inside
91
92
  it exactly as they do at the top level. The five buttons in
92
- the toolbar add a tabs container, an accordion, a popup, a
93
- carousel and a card &mdash; the first four hold a pane each, a card
94
- holds one region and an editable header.
93
+ the toolbar add a tabs container, an accordion, a popup, an
94
+ offcanvas, a carousel and a card &mdash; tabs, accordion and carousel
95
+ hold a pane each, the others hold one region.
95
96
  </p>
96
97
  <p class="form-text">
97
98
  While editing, a popup is unfolded in place and an
@@ -101,7 +102,9 @@
101
102
  asked to do any of it, so there is no backdrop and no focus
102
103
  trap to fight with. Double click a tab or item label to
103
104
  rename it, and a card&rsquo;s header and footer the same
104
- way. The row after the popup shows two levels: tabs inside
105
+ way. The offcanvas under the popup is the same panel
106
+ unfolded, and its gear says where it comes from and from
107
+ which breakpoint it is plain content. The row after it shows two levels: tabs inside
105
108
  an accordion item. A tabs container's gear has a Tabs
106
109
  section for its variant - tabs, pills or underline, full
107
110
  width, alignment, and vertical from a breakpoint up - and
@@ -171,6 +174,21 @@
171
174
  Grid editor leaves the markup alone and writes
172
175
  Bootstrap's attributes onto it in the output.
173
176
  </p>
177
+
178
+ <div data-ge-container="offcanvas" data-ge-offcanvas-id="example-offcanvas">
179
+ <button type="button" class="btn btn-primary ge-offcanvas-trigger" data-ge-offcanvas-target="example-offcanvas">Open the filters</button>
180
+ <div class="offcanvas offcanvas-end" tabindex="-1" id="example-offcanvas" aria-labelledby="example-offcanvas-label">
181
+ <div class="offcanvas-header">
182
+ <h5 class="offcanvas-title" id="example-offcanvas-label">Filters</h5>
183
+ <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
184
+ </div>
185
+ <div class="offcanvas-body">
186
+ <div class="row"><div class="col-lg-12">
187
+ <div class="ge-content" data-ge-content-type="tinymce"><p>An offcanvas slides in from the right, over the page.</p></div>
188
+ </div></div>
189
+ </div>
190
+ </div>
191
+ </div>
174
192
  </div>
175
193
  </div>
176
194
 
@@ -103,7 +103,7 @@
103
103
  <strong>Containers</strong>
104
104
  <code class="text-body-secondary">containers.html</code>
105
105
  </div>
106
- <span class="text-body-secondary">Tabs, accordions, popups and cards, two levels deep, and the export opened as a real page</span>
106
+ <span class="text-body-secondary">Tabs, accordions, popups, offcanvases and cards, two levels deep, and the export opened as a real page</span>
107
107
  </a>
108
108
 
109
109
  <a class="list-group-item list-group-item-action" href="elements.html">
package/package.json CHANGED
@@ -32,7 +32,7 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "version": "9.0.0-beta.3",
35
+ "version": "9.0.0-beta.5",
36
36
  "main": "dist/grideditor.js",
37
37
  "module": "dist/grideditor.esm.js",
38
38
  "types": "dist/grideditor.d.ts",
@@ -52,9 +52,10 @@ var PLACEMENTS = ['appendTo', 'prependTo', 'insertAfter', 'insertBefore'];
52
52
  * The attributes that point at an id, as the id itself or as a #selector.
53
53
  * A copy that has to take new ids (see freshNode) takes them here too, so
54
54
  * its tabs, its accordion and its popups still point at their own panes.
55
+ * A container plugin adds its own, as `references` on its definition.
55
56
  */
56
57
  var REFERENCES = ['data-bs-target', 'data-bs-parent', 'href', 'aria-controls', 'aria-labelledby',
57
- 'aria-describedby', 'for', 'data-ge-popup-id', 'data-ge-popup-target'];
58
+ 'aria-describedby', 'for'];
58
59
 
59
60
  /** An id grid-editor generated: ge-{type}-{counter}-{random}. */
60
61
  var GENERATED_ID = /^ge-([a-z][a-z-]*?)-\d+-[a-z0-9]+$/;
@@ -466,6 +467,7 @@ function build(instance, baseElem, optionsOrMethod) {
466
467
  var confirmDialog = null; // The delete confirmation, built when first needed
467
468
  var sizePicker = null; // The open column size picker, if there is one
468
469
  var sourceOpen = false; // Whether the canvas is being edited as html
470
+ var previewing = false; // Whether the preview button is pressed: not while the mouse is only over it
469
471
  var dropMarker = null; // The line showing where a dragged toolbar button would land
470
472
  var activeTarget = null; // The column or region the toolbar adds to, with active_target
471
473
  var toolbarLifetime = null; // Aborted when the toolbar is rebuilt or taken away
@@ -1096,12 +1098,6 @@ function build(instance, baseElem, optionsOrMethod) {
1096
1098
  /* A click on the host's plain content offers to make it a text */
1097
1099
  dom.delegate(canvas, 'click', '.ge-content', onContentClick, signal);
1098
1100
 
1099
- /* A trigger is often a link, and a link still navigates even
1100
- with its Bootstrap attributes suspended */
1101
- dom.delegate(canvas, 'click', '.ge-popup-trigger, [data-ge-popup-target]', function(e) {
1102
- if (dom.hasClass(canvas, 'ge-editing')) { e.preventDefault(); }
1103
- }, signal);
1104
-
1105
1101
  var sidebarMode = panelMode() === 'sidebar';
1106
1102
 
1107
1103
  if (settings.active_target || sidebarMode) {
@@ -1343,21 +1339,20 @@ function build(instance, baseElem, optionsOrMethod) {
1343
1339
  btnGroup.appendChild(htmlButton);
1344
1340
  }
1345
1341
 
1342
+ // Over it, the canvas looks as the page will; pressed, it stays
1343
+ // that way and the page's own controls work
1346
1344
  var previewButton = dom.create('<button type="button" class="btn btn-sm btn-primary gm-preview"><i class="bi bi-eye-fill"></i></button>');
1347
- var endPreview = function() {
1348
- if (!dom.hasClass(previewButton, 'active')) {
1349
- dom.addClass(canvas, 'ge-editing');
1350
- }
1351
- };
1352
1345
  previewButton.setAttribute('title', t('tool.preview'));
1346
+ dom.toggleClass(previewButton, 'active btn-danger', previewing);
1353
1347
  previewButton.addEventListener('mouseenter', function() {
1354
1348
  dom.removeClass(canvas, 'ge-editing');
1355
1349
  });
1356
1350
  previewButton.addEventListener('click', function() {
1357
- dom.toggleClass(previewButton, 'active btn-danger');
1358
- endPreview();
1351
+ setPreview(!previewing);
1352
+ });
1353
+ previewButton.addEventListener('mouseleave', function() {
1354
+ if (!previewing) { dom.addClass(canvas, 'ge-editing'); }
1359
1355
  });
1360
- previewButton.addEventListener('mouseleave', endPreview);
1361
1356
  btnGroup.appendChild(previewButton);
1362
1357
 
1363
1358
  // Floated right after the source and preview buttons, so it
@@ -1472,14 +1467,8 @@ function build(instance, baseElem, optionsOrMethod) {
1472
1467
  // then - or taken away for good
1473
1468
  if (!mainControls || destroyed) { return; }
1474
1469
 
1475
- var previewing = !!dom.one(mainControls, '.gm-preview.active');
1476
-
1477
1470
  removeMainControls();
1478
1471
  createMainControls();
1479
-
1480
- if (previewing) {
1481
- dom.addClass(dom.one(mainControls, '.gm-preview'), 'active btn-danger');
1482
- }
1483
1472
  onScroll();
1484
1473
  }
1485
1474
 
@@ -2168,6 +2157,25 @@ function build(instance, baseElem, optionsOrMethod) {
2168
2157
  init();
2169
2158
  }
2170
2159
 
2160
+ /**
2161
+ * The preview button pressed, or let go: the one way the preview
2162
+ * changes, told only when it does. Pressed, the canvas stops looking
2163
+ * edited and a plugin lets the page's own controls work - a popup's
2164
+ * trigger opens it - until it is let go. Only hovering the button
2165
+ * previews the look alone, and tells no one.
2166
+ */
2167
+ function setPreview(on) {
2168
+ on = !!on;
2169
+ if (on === previewing) { return; }
2170
+
2171
+ previewing = on;
2172
+ var button = mainControls ? dom.one(mainControls, '.gm-preview') : null;
2173
+ if (button) { dom.toggleClass(button, 'active btn-danger', on); }
2174
+ dom.toggleClass(canvas, 'ge-editing', !on);
2175
+ plugins('onPreviewChange', on);
2176
+ emit('preview-change', { canvas: canvas, previewing: on });
2177
+ }
2178
+
2171
2179
  /**
2172
2180
  * The canvas as html, in the textarea in its place, to edit by hand.
2173
2181
  * A feature plugin's onSourceOpen may put a code editor over the
@@ -2175,6 +2183,7 @@ function build(instance, baseElem, optionsOrMethod) {
2175
2183
  * what the canvas is made of again.
2176
2184
  */
2177
2185
  function openSource() {
2186
+ setPreview(false);
2178
2187
  deinit();
2179
2188
  // The canvas is made again from the html when it comes back
2180
2189
  changeTarget(null);
@@ -2250,7 +2259,8 @@ function build(instance, baseElem, optionsOrMethod) {
2250
2259
  }
2251
2260
 
2252
2261
  runFilter(true);
2253
- dom.addClass(canvas, 'ge-editing');
2262
+ // A getHtml in the middle of a preview comes back to it
2263
+ dom.toggleClass(canvas, 'ge-editing', !previewing);
2254
2264
  dom.toggleClass(canvas, 'ge-drag-drawer', settings.drag_handle === 'drawer');
2255
2265
  addAllColClasses();
2256
2266
  var cutter = textCutter();
@@ -2470,6 +2480,8 @@ function build(instance, baseElem, optionsOrMethod) {
2470
2480
  }
2471
2481
  }
2472
2482
 
2483
+ // What a preview opened goes with the markup it was in
2484
+ setPreview(false);
2473
2485
  deinit();
2474
2486
  dom.setHtml(canvas, html);
2475
2487
  init();
@@ -2486,6 +2498,7 @@ function build(instance, baseElem, optionsOrMethod) {
2486
2498
  plugins('onDestroy');
2487
2499
  // The html being edited is what the canvas is left with
2488
2500
  if (sourceOpen) { closeSource(); }
2501
+ setPreview(false);
2489
2502
  deinit();
2490
2503
  activeTarget = null;
2491
2504
  selected = null;
@@ -2598,6 +2611,7 @@ function build(instance, baseElem, optionsOrMethod) {
2598
2611
  operate: operate,
2599
2612
  kindOf: kindOf,
2600
2613
  view: getView,
2614
+ previewing: function() { return previewing; },
2601
2615
  viewTiers: function() {
2602
2616
  return tiersFor(curView).map(function(tier) { return tier.key; });
2603
2617
  },
@@ -3381,8 +3395,12 @@ function build(instance, baseElem, optionsOrMethod) {
3381
3395
 
3382
3396
  if (!Object.keys(renamed).length) { return node; }
3383
3397
 
3398
+ var references = Object.keys(CONTAINERS).reduce(function(names, type) {
3399
+ return names.concat(CONTAINERS[type].references || []);
3400
+ }, REFERENCES);
3401
+
3384
3402
  dom.selfAndAll(node, '*').forEach(function(element) {
3385
- REFERENCES.forEach(function(name) {
3403
+ references.forEach(function(name) {
3386
3404
  var value = element.getAttribute(name);
3387
3405
  if (value === null) { return; }
3388
3406
  if (name === 'href' && value.charAt(0) !== '#') { return; }
@@ -44,6 +44,7 @@ GridEditor.locales.es = {
44
44
  'tool.delete_pane': 'Borrar panel',
45
45
  'tool.rename': 'Haz doble clic para renombrar',
46
46
  'tool.toggle_popup': 'Plegar esta ventana mientras editas',
47
+ 'tool.toggle_offcanvas': 'Plegar este panel mientras editas',
47
48
  'tool.element_info': 'Elemento: {name}',
48
49
  'tool.column_narrower': 'Estrechar columna\n(Mayús para el mínimo)',
49
50
  'tool.column_wider': 'Ensanchar columna\n(Mayús para el máximo)',
@@ -134,6 +135,25 @@ GridEditor.locales.es = {
134
135
  'container.add_popup': 'Ventana emergente',
135
136
  'container.popup_title': 'Título',
136
137
  'container.popup_trigger': 'Abrir',
138
+ 'container.add_offcanvas': 'Panel deslizante',
139
+ 'container.offcanvas_title': 'Título',
140
+ 'container.offcanvas_trigger': 'Abrir',
141
+ 'container.offcanvas_section': 'Panel deslizante',
142
+ 'container.offcanvas_placement': 'Posición',
143
+ 'container.offcanvas_start': 'Izquierda',
144
+ 'container.offcanvas_end': 'Derecha',
145
+ 'container.offcanvas_top': 'Arriba',
146
+ 'container.offcanvas_bottom': 'Abajo',
147
+ 'container.offcanvas_backdrop': 'Fondo',
148
+ 'container.offcanvas_backdrop_yes': 'Sí',
149
+ 'container.offcanvas_backdrop_no': 'No',
150
+ 'container.offcanvas_backdrop_static': 'Estático',
151
+ 'container.offcanvas_scroll': 'Permitir scroll de la página',
152
+ 'container.offcanvas_keyboard': 'Cerrar con Esc',
153
+ 'container.offcanvas_responsive': 'Responsive',
154
+ 'container.offcanvas_responsive_never': 'Siempre panel',
155
+ 'container.offcanvas_responsive_from': 'Contenido normal desde {breakpoint}',
156
+ 'container.offcanvas_dark': 'Tema oscuro',
137
157
  'container.add_card': 'Tarjeta',
138
158
  'container.card_title': 'Título de la tarjeta',
139
159
  'container.card_footer': 'Pie de la tarjeta',