@themarioga/grid-editor 7.3.0 → 8.0.0-beta.3

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 (103) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +34 -30
  3. package/UPGRADING.md +55 -0
  4. package/dist/grideditor.bundle.min.js +3 -3
  5. package/dist/grideditor.css +72 -6
  6. package/dist/grideditor.d.ts +24 -3
  7. package/dist/grideditor.esm.js +7 -58
  8. package/dist/grideditor.jquery.js +0 -13
  9. package/dist/grideditor.jquery.min.js +1 -1
  10. package/dist/grideditor.jquery.min.js.map +3 -3
  11. package/dist/grideditor.js +7 -58
  12. package/dist/grideditor.min.css +1 -1
  13. package/dist/grideditor.min.css.map +1 -1
  14. package/dist/grideditor.min.js +2 -2
  15. package/dist/grideditor.min.js.map +3 -3
  16. package/dist/locales/grideditor.es.esm.js +30 -6
  17. package/dist/locales/grideditor.es.js +30 -6
  18. package/dist/locales/grideditor.es.min.js +1 -1
  19. package/dist/locales/grideditor.es.min.js.map +2 -2
  20. package/dist/plugins/grideditor.accordion.min.js.map +2 -2
  21. package/dist/plugins/grideditor.alignment.esm.js +11 -38
  22. package/dist/plugins/grideditor.alignment.js +11 -38
  23. package/dist/plugins/grideditor.alignment.min.js +1 -1
  24. package/dist/plugins/grideditor.alignment.min.js.map +3 -3
  25. package/dist/plugins/grideditor.card.min.js.map +1 -1
  26. package/dist/plugins/grideditor.ckeditor.esm.js +0 -5
  27. package/dist/plugins/grideditor.ckeditor.js +0 -5
  28. package/dist/plugins/grideditor.ckeditor.min.js +1 -1
  29. package/dist/plugins/grideditor.ckeditor.min.js.map +3 -3
  30. package/dist/plugins/grideditor.clipboard.min.js.map +1 -1
  31. package/dist/plugins/grideditor.codemirror-inline.min.js.map +1 -1
  32. package/dist/plugins/grideditor.codemirror.min.js.map +1 -1
  33. package/dist/plugins/grideditor.elements.min.js.map +2 -2
  34. package/dist/plugins/grideditor.gutters.min.js.map +1 -1
  35. package/dist/plugins/grideditor.order.min.js.map +1 -1
  36. package/dist/plugins/grideditor.popup.min.js.map +1 -1
  37. package/dist/plugins/grideditor.sections.min.js.map +2 -2
  38. package/dist/plugins/grideditor.style.esm.js +393 -60
  39. package/dist/plugins/grideditor.style.js +387 -56
  40. package/dist/plugins/grideditor.style.min.js +4 -2
  41. package/dist/plugins/grideditor.style.min.js.map +4 -4
  42. package/dist/plugins/grideditor.summernote.min.js.map +2 -2
  43. package/dist/plugins/grideditor.tabs.esm.js +274 -6
  44. package/dist/plugins/grideditor.tabs.js +274 -6
  45. package/dist/plugins/grideditor.tabs.min.js +1 -1
  46. package/dist/plugins/grideditor.tabs.min.js.map +3 -3
  47. package/dist/plugins/grideditor.tinymce.esm.js +1 -8
  48. package/dist/plugins/grideditor.tinymce.js +1 -8
  49. package/dist/plugins/grideditor.tinymce.min.js +1 -1
  50. package/dist/plugins/grideditor.tinymce.min.js.map +3 -3
  51. package/docs/events.md +4 -6
  52. package/docs/locale-keys.md +35 -13
  53. package/docs/plugins.md +15 -35
  54. package/example/ckeditor.html +0 -5
  55. package/example/containers.html +64 -2
  56. package/example/index.html +5 -4
  57. package/example/style.html +16 -4
  58. package/example/utilities.html +12 -11
  59. package/package.json +1 -1
  60. package/src/js/dom.js +1 -2
  61. package/src/js/grideditor.jquery.js +7 -28
  62. package/src/js/grideditor.js +12 -81
  63. package/src/js/locales/grideditor.es.js +30 -6
  64. package/src/js/plugins/grideditor.alignment.js +21 -50
  65. package/src/js/plugins/grideditor.ckeditor.js +10 -23
  66. package/src/js/plugins/grideditor.style.js +18 -12
  67. package/src/js/plugins/grideditor.summernote.js +4 -5
  68. package/src/js/plugins/grideditor.tabs.js +311 -5
  69. package/src/js/plugins/grideditor.tinymce.js +4 -17
  70. package/src/js/style/accordion.js +14 -3
  71. package/src/js/style/display.js +229 -0
  72. package/src/js/style/drawerflow.js +118 -0
  73. package/src/js/style/flex.js +156 -0
  74. package/src/js/style/float.js +2 -4
  75. package/src/js/style/options.js +5 -20
  76. package/src/js/style/sections.js +42 -15
  77. package/src/js/style/spacing.js +2 -4
  78. package/src/js/style/sticky.js +39 -0
  79. package/src/js/style/textalign.js +2 -4
  80. package/src/js/text/grideditor.text.js +1 -1
  81. package/src/less/grideditor.less +68 -10
  82. package/types/grideditor.d.ts +24 -3
  83. package/dist/plugins/grideditor.float.esm.js +0 -43
  84. package/dist/plugins/grideditor.float.js +0 -47
  85. package/dist/plugins/grideditor.float.min.js +0 -1
  86. package/dist/plugins/grideditor.float.min.js.map +0 -7
  87. package/dist/plugins/grideditor.spacing.esm.js +0 -327
  88. package/dist/plugins/grideditor.spacing.js +0 -329
  89. package/dist/plugins/grideditor.spacing.min.js +0 -1
  90. package/dist/plugins/grideditor.spacing.min.js.map +0 -7
  91. package/dist/plugins/grideditor.textalign.esm.js +0 -49
  92. package/dist/plugins/grideditor.textalign.js +0 -53
  93. package/dist/plugins/grideditor.textalign.min.js +0 -1
  94. package/dist/plugins/grideditor.textalign.min.js.map +0 -7
  95. package/dist/plugins/grideditor.visibility.esm.js +0 -167
  96. package/dist/plugins/grideditor.visibility.js +0 -169
  97. package/dist/plugins/grideditor.visibility.min.js +0 -1
  98. package/dist/plugins/grideditor.visibility.min.js.map +0 -7
  99. package/src/js/plugins/grideditor.float.js +0 -29
  100. package/src/js/plugins/grideditor.spacing.js +0 -31
  101. package/src/js/plugins/grideditor.textalign.js +0 -27
  102. package/src/js/plugins/grideditor.visibility.js +0 -32
  103. package/src/js/style/visibility.js +0 -160
@@ -57,6 +57,23 @@ GridEditor.locales.es = {
57
57
  "container.add_tabs": "Pesta\xF1as",
58
58
  "container.add_tab": "A\xF1adir pesta\xF1a",
59
59
  "container.tab_label": "Pesta\xF1a {number}",
60
+ "container.tabs_section": "Pesta\xF1as",
61
+ "container.tabs_style": "Estilo",
62
+ "container.tabs_style_tabs": "Pesta\xF1as",
63
+ "container.tabs_style_pills": "Pills",
64
+ "container.tabs_style_underline": "Subrayado",
65
+ "container.tabs_width": "Ancho",
66
+ "container.tabs_width_natural": "Natural",
67
+ "container.tabs_width_fill": "Rellenar",
68
+ "container.tabs_width_justified": "Justificado",
69
+ "container.tabs_align": "Alineaci\xF3n",
70
+ "container.tabs_align_start": "Inicio",
71
+ "container.tabs_align_center": "Centro",
72
+ "container.tabs_align_end": "Fin",
73
+ "container.tabs_layout": "Disposici\xF3n",
74
+ "container.tabs_layout_horizontal": "Horizontal",
75
+ "container.tabs_layout_vertical": "Vertical",
76
+ "container.tabs_layout_vertical_from": "Vertical desde {breakpoint}",
60
77
  "container.add_accordion": "Acorde\xF3n",
61
78
  "container.add_accordion_item": "A\xF1adir apartado",
62
79
  "container.accordion_label": "Apartado {number}",
@@ -107,9 +124,8 @@ GridEditor.locales.es = {
107
124
  "utility.default": "Por defecto",
108
125
  "utility.inherit": "Hereda: {value} (de {breakpoint})",
109
126
  "utility.varies": "Cambia en {breakpoints}; elegir aqu\xED lo sustituye",
110
- "utility.visibility": "Visibilidad",
127
+ "utility.display": "Display",
111
128
  "utility.visibility_hidden": "Oculto",
112
- "utility.visibility_shown": "Visible",
113
129
  "tool.hide_in_view": "Ocultar en esta vista",
114
130
  "tool.show_in_view": "Mostrar en esta vista",
115
131
  "badge.hidden_in": "Oculto en {breakpoints}",
@@ -121,6 +137,16 @@ GridEditor.locales.es = {
121
137
  "badge.order": "Orden: {value}",
122
138
  "utility.justify_content": "Justificar columnas",
123
139
  "utility.align_items": "Alinear columnas",
140
+ "utility.align_content": "Alinear l\xEDneas",
141
+ "utility.flex_direction": "Direcci\xF3n",
142
+ "utility.flex_wrap": "Salto de l\xEDnea",
143
+ "utility.gap": "Separaci\xF3n",
144
+ "utility.row_gap": "Separaci\xF3n entre filas",
145
+ "utility.column_gap": "Separaci\xF3n entre columnas",
146
+ "utility.flex_fill": "Rellenar",
147
+ "utility.flex_grow": "Crecer",
148
+ "utility.flex_shrink": "Encoger",
149
+ "utility.sticky": "Fijo al desplazar",
124
150
  "utility.align_self": "Alinearse",
125
151
  "utility.gutters": "Espaciado entre columnas",
126
152
  "utility.gutters_x": "Espaciado horizontal",
@@ -152,6 +178,7 @@ GridEditor.locales.es = {
152
178
  "style.section_text": "Texto",
153
179
  "style.section_typography": "Tipograf\xEDa",
154
180
  "style.section_display": "Visualizaci\xF3n",
181
+ "style.section_flex": "Flex",
155
182
  "style.section_position": "Posici\xF3n",
156
183
  "style.section_custom": "CSS libre",
157
184
  "style.all_sizes": "Se aplica a todos los tama\xF1os",
@@ -211,15 +238,12 @@ GridEditor.locales.es = {
211
238
  "style.prop_left": "Izquierda",
212
239
  "style.prop_z_index": "Z-index",
213
240
  "error.sortable_missing": "\xA1SortableJS no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de Sortable; sin \xE9l no se puede arrastrar.",
214
- "warning.setting_removed": "El ajuste {setting} se elimin\xF3 en la 4.0. Usa {replacement} en su lugar.",
215
241
  "warning.already_editing": "Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\xF3.",
216
242
  "warning.destroyed": "Se ha llamado a {method}() en un editor destruido, y no hace nada.",
217
243
  "warning.duplicate_build": "grideditor.js se ha cargado dos veces: se mantiene el primer GridEditor.",
218
- "warning.plugin_6x": 'El plugin "{name}" est\xE1 escrito para grid-editor 6 y no se carga. Desde la 7.0 los plugins se registran en GridEditor: consulta UPGRADING.md.',
219
244
  "warning.adapter_no_jquery": "grideditor.jquery.js necesita jQuery 4 y la p\xE1gina no tiene jQuery: la API de jQuery no est\xE1 disponible.",
220
- "warning.oninit_removed": "La opci\xF3n oninit de tinyMCE se elimin\xF3 en la 7.0 y se ignora: usa init_instance_callback.",
221
245
  "error.tinymce_missing": "\xA1tinyMCE no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de tinyMCE.",
222
- "error.ckeditor_missing": "\xA1CKEditor 5 no est\xE1 disponible! Aseg\xFArate de haber cargado su archivo ckeditor5.umd.js: CKEditor 4 ya no est\xE1 soportado.",
246
+ "error.ckeditor_missing": "\xA1CKEditor 5 no est\xE1 disponible! Aseg\xFArate de haber cargado su archivo ckeditor5.umd.js.",
223
247
  "error.ckeditor_start": "CKEditor no ha podido arrancar: {message}",
224
248
  "warning.ckeditor_plugin": "CKEditor no tiene ning\xFAn plugin llamado {name}, as\xED que se deja fuera.",
225
249
  "error.codemirror_missing": "\xA1CodeMirror no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de CodeMirror; sin \xE9l el c\xF3digo se edita en un textarea normal.",
@@ -63,6 +63,23 @@
63
63
  "container.add_tabs": "Pesta\xF1as",
64
64
  "container.add_tab": "A\xF1adir pesta\xF1a",
65
65
  "container.tab_label": "Pesta\xF1a {number}",
66
+ "container.tabs_section": "Pesta\xF1as",
67
+ "container.tabs_style": "Estilo",
68
+ "container.tabs_style_tabs": "Pesta\xF1as",
69
+ "container.tabs_style_pills": "Pills",
70
+ "container.tabs_style_underline": "Subrayado",
71
+ "container.tabs_width": "Ancho",
72
+ "container.tabs_width_natural": "Natural",
73
+ "container.tabs_width_fill": "Rellenar",
74
+ "container.tabs_width_justified": "Justificado",
75
+ "container.tabs_align": "Alineaci\xF3n",
76
+ "container.tabs_align_start": "Inicio",
77
+ "container.tabs_align_center": "Centro",
78
+ "container.tabs_align_end": "Fin",
79
+ "container.tabs_layout": "Disposici\xF3n",
80
+ "container.tabs_layout_horizontal": "Horizontal",
81
+ "container.tabs_layout_vertical": "Vertical",
82
+ "container.tabs_layout_vertical_from": "Vertical desde {breakpoint}",
66
83
  "container.add_accordion": "Acorde\xF3n",
67
84
  "container.add_accordion_item": "A\xF1adir apartado",
68
85
  "container.accordion_label": "Apartado {number}",
@@ -113,9 +130,8 @@
113
130
  "utility.default": "Por defecto",
114
131
  "utility.inherit": "Hereda: {value} (de {breakpoint})",
115
132
  "utility.varies": "Cambia en {breakpoints}; elegir aqu\xED lo sustituye",
116
- "utility.visibility": "Visibilidad",
133
+ "utility.display": "Display",
117
134
  "utility.visibility_hidden": "Oculto",
118
- "utility.visibility_shown": "Visible",
119
135
  "tool.hide_in_view": "Ocultar en esta vista",
120
136
  "tool.show_in_view": "Mostrar en esta vista",
121
137
  "badge.hidden_in": "Oculto en {breakpoints}",
@@ -127,6 +143,16 @@
127
143
  "badge.order": "Orden: {value}",
128
144
  "utility.justify_content": "Justificar columnas",
129
145
  "utility.align_items": "Alinear columnas",
146
+ "utility.align_content": "Alinear l\xEDneas",
147
+ "utility.flex_direction": "Direcci\xF3n",
148
+ "utility.flex_wrap": "Salto de l\xEDnea",
149
+ "utility.gap": "Separaci\xF3n",
150
+ "utility.row_gap": "Separaci\xF3n entre filas",
151
+ "utility.column_gap": "Separaci\xF3n entre columnas",
152
+ "utility.flex_fill": "Rellenar",
153
+ "utility.flex_grow": "Crecer",
154
+ "utility.flex_shrink": "Encoger",
155
+ "utility.sticky": "Fijo al desplazar",
130
156
  "utility.align_self": "Alinearse",
131
157
  "utility.gutters": "Espaciado entre columnas",
132
158
  "utility.gutters_x": "Espaciado horizontal",
@@ -158,6 +184,7 @@
158
184
  "style.section_text": "Texto",
159
185
  "style.section_typography": "Tipograf\xEDa",
160
186
  "style.section_display": "Visualizaci\xF3n",
187
+ "style.section_flex": "Flex",
161
188
  "style.section_position": "Posici\xF3n",
162
189
  "style.section_custom": "CSS libre",
163
190
  "style.all_sizes": "Se aplica a todos los tama\xF1os",
@@ -217,15 +244,12 @@
217
244
  "style.prop_left": "Izquierda",
218
245
  "style.prop_z_index": "Z-index",
219
246
  "error.sortable_missing": "\xA1SortableJS no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de Sortable; sin \xE9l no se puede arrastrar.",
220
- "warning.setting_removed": "El ajuste {setting} se elimin\xF3 en la 4.0. Usa {replacement} en su lugar.",
221
247
  "warning.already_editing": "Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\xF3.",
222
248
  "warning.destroyed": "Se ha llamado a {method}() en un editor destruido, y no hace nada.",
223
249
  "warning.duplicate_build": "grideditor.js se ha cargado dos veces: se mantiene el primer GridEditor.",
224
- "warning.plugin_6x": 'El plugin "{name}" est\xE1 escrito para grid-editor 6 y no se carga. Desde la 7.0 los plugins se registran en GridEditor: consulta UPGRADING.md.',
225
250
  "warning.adapter_no_jquery": "grideditor.jquery.js necesita jQuery 4 y la p\xE1gina no tiene jQuery: la API de jQuery no est\xE1 disponible.",
226
- "warning.oninit_removed": "La opci\xF3n oninit de tinyMCE se elimin\xF3 en la 7.0 y se ignora: usa init_instance_callback.",
227
251
  "error.tinymce_missing": "\xA1tinyMCE no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de tinyMCE.",
228
- "error.ckeditor_missing": "\xA1CKEditor 5 no est\xE1 disponible! Aseg\xFArate de haber cargado su archivo ckeditor5.umd.js: CKEditor 4 ya no est\xE1 soportado.",
252
+ "error.ckeditor_missing": "\xA1CKEditor 5 no est\xE1 disponible! Aseg\xFArate de haber cargado su archivo ckeditor5.umd.js.",
229
253
  "error.ckeditor_start": "CKEditor no ha podido arrancar: {message}",
230
254
  "warning.ckeditor_plugin": "CKEditor no tiene ning\xFAn plugin llamado {name}, as\xED que se deja fuera.",
231
255
  "error.codemirror_missing": "\xA1CodeMirror no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de CodeMirror; sin \xE9l el c\xF3digo se edita en un textarea normal.",
@@ -3,4 +3,4 @@
3
3
  (May\xFAs para el m\xEDnimo)`,"tool.column_wider":`Ensanchar columna
4
4
  (May\xFAs para el m\xE1ximo)`,"tool.indent_decrease":`Reducir sangr\xEDa
5
5
  (May\xFAs para quitarla)`,"tool.indent_increase":`Aumentar sangr\xEDa
6
- (May\xFAs para el m\xE1ximo)`,"tool.edit_source":"Editar el c\xF3digo fuente","tool.preview":"Vista previa","panel.title":"Ajustes: {kind}","panel.close":"Cerrar","panel.done":"Hecho","panel.id":"Id","panel.classes":"Clases","panel.editor":"Editor","panel.kind_row":"Fila","panel.kind_column":"Columna","panel.kind_text":"Texto","panel.kind_element":"Elemento","panel.kind_section":"Secci\xF3n","panel.kind_tab":"Pesta\xF1a","panel.kind_accordion_item":"Elemento de acorde\xF3n","tool.id_placeholder":"id","tool.id_title":"Asignar un identificador \xFAnico","tool.classes_placeholder":"clases","tool.classes_title":"Clases css, separadas por espacios","tool.toggle_class":'Aplicar o quitar el estilo "{label}"',"row.add":"A\xF1adir fila {layout}","row.add_row_cols":"A\xF1adir una fila de {columns} columnas, {counts} por fila","container.add_tabs":"Pesta\xF1as","container.add_tab":"A\xF1adir pesta\xF1a","container.tab_label":"Pesta\xF1a {number}","container.add_accordion":"Acorde\xF3n","container.add_accordion_item":"A\xF1adir apartado","container.accordion_label":"Apartado {number}","container.add_popup":"Ventana emergente","container.popup_title":"T\xEDtulo","container.popup_trigger":"Abrir","container.add_card":"Tarjeta","container.card_title":"T\xEDtulo de la tarjeta","container.card_footer":"Pie de la tarjeta","confirm.title":"Confirmar","confirm.ok":"Borrar","confirm.cancel":"Cancelar","confirm.delete_row":"\xBFSeguro que quieres borrar esta fila?","confirm.delete_column":"\xBFSeguro que quieres borrar esta columna?","confirm.delete_text":"\xBFSeguro que quieres borrar este texto?","confirm.delete_plain":"\xBFSeguro que quieres borrar este contenido?","confirm.delete_element":"\xBFSeguro que quieres borrar este elemento?","confirm.delete_container":"\xBFSeguro que quieres borrar este contenedor y todo su contenido?","confirm.delete_tab":"\xBFSeguro que quieres borrar esta pesta\xF1a y todo su contenido?","confirm.delete_accordion_item":"\xBFSeguro que quieres borrar este apartado y todo su contenido?","view.all":"Todos los tama\xF1os","view.xs":"M\xF3vil","view.sm":"Tablet","view.md":"Escritorio peque\xF1o","view.lg":"Escritorio","view.xl":"Escritorio grande","view.xxl":"Pantalla panor\xE1mica","utility.section":"Responsive: {view}","utility.col_width":"Ancho","utility.col_equal":"Igual","utility.col_auto":"Auto","section.add":"Secci\xF3n","section.width":"Ancho","section.fixed":"Fijo","section.fluid":"Ancho completo","section.from":"Fijo desde {breakpoint}","tool.add_row_to_section":"A\xF1adir fila","tool.delete_section":"Quitar secci\xF3n","confirm.delete_section":"\xBFSeguro que quieres borrar esta secci\xF3n y todo su contenido?","tool.copy":"Copiar","tool.paste":"Pegar","clipboard.paste_row":"Pegar fila","clipboard.paste_section":"Pegar secci\xF3n","utility.col_from_row":"De la fila: {count}","utility.row_cols":"Columnas por fila","badge.row_cols":"{count} por fila","badge.row_cols_auto":"Tan anchas como su contenido","utility.default":"Por defecto","utility.inherit":"Hereda: {value} (de {breakpoint})","utility.varies":"Cambia en {breakpoints}; elegir aqu\xED lo sustituye","utility.visibility":"Visibilidad","utility.visibility_hidden":"Oculto","utility.visibility_shown":"Visible","tool.hide_in_view":"Ocultar en esta vista","tool.show_in_view":"Mostrar en esta vista","badge.hidden_in":"Oculto en {breakpoints}","utility.order":"Orden","utility.order_first":"Primero","utility.order_last":"\xDAltimo","tool.order_earlier":"Antes en esta vista","tool.order_later":"Despu\xE9s en esta vista","badge.order":"Orden: {value}","utility.justify_content":"Justificar columnas","utility.align_items":"Alinear columnas","utility.align_self":"Alinearse","utility.gutters":"Espaciado entre columnas","utility.gutters_x":"Espaciado horizontal","utility.gutters_y":"Espaciado vertical","utility.padding":"Relleno","utility.margin":"Margen","utility.side_all":"Todos los lados","utility.side_x":"Izquierda y derecha","utility.side_y":"Arriba y abajo","utility.side_t":"Arriba","utility.side_b":"Abajo","utility.side_s":"Inicio","utility.side_e":"Fin","utility.text_align":"Alineaci\xF3n del texto","utility.text_start":"Inicio","utility.text_center":"Centro","utility.text_end":"Fin","utility.float":"Flotar","utility.float_start":"Inicio","utility.float_end":"Fin","utility.float_none":"Ninguno","utility.spacing_gutter":"El relleno lateral de una columna es su espaciado: cambiarlo cambia el espacio entre columnas","style.section_title":"Estilo","style.dialog_title":"Estilo: {kind}","style.section_size":"Tama\xF1o","style.section_spacing":"Espaciado","style.section_border":"Borde","style.section_background":"Fondo","style.section_text":"Texto","style.section_typography":"Tipograf\xEDa","style.section_display":"Visualizaci\xF3n","style.section_position":"Posici\xF3n","style.section_custom":"CSS libre","style.all_sizes":"Se aplica a todos los tama\xF1os","style.overridden":"La clase {class} tiene prioridad sobre este valor","style.invalid":"Esta propiedad no acepta ese valor","style.catalog":"Clases de Bootstrap","style.shadow_x":"X","style.shadow_y":"Y","style.shadow_blur":"Desenfoque","style.shadow_spread":"Extensi\xF3n","style.shadow_color":"Color","style.shadow_inset":"Interior","style.shadow_text_mode":"Editar como texto","style.prop_width":"Ancho","style.prop_height":"Alto","style.prop_min_width":"Ancho m\xEDnimo","style.prop_min_height":"Alto m\xEDnimo","style.prop_max_width":"Ancho m\xE1ximo","style.prop_max_height":"Alto m\xE1ximo","style.prop_margin_top":"Margen superior","style.prop_margin_right":"Margen derecho","style.prop_margin_bottom":"Margen inferior","style.prop_margin_left":"Margen izquierdo","style.prop_padding_top":"Relleno superior","style.prop_padding_right":"Relleno derecho","style.prop_padding_bottom":"Relleno inferior","style.prop_padding_left":"Relleno izquierdo","style.prop_border_width":"Grosor del borde","style.prop_border_style":"Estilo del borde","style.prop_border_color":"Color del borde","style.prop_border_radius":"Radio del borde","style.prop_box_shadow":"Sombra","style.prop_background_color":"Color de fondo","style.prop_background_image":"Imagen de fondo","style.prop_background_size":"Tama\xF1o del fondo","style.prop_background_position":"Posici\xF3n del fondo","style.prop_background_repeat":"Repetici\xF3n del fondo","style.prop_color":"Color","style.prop_font_size":"Tama\xF1o de letra","style.prop_text_align":"Alineaci\xF3n","style.prop_text_shadow":"Sombra del texto","style.prop_font_family":"Fuente","style.prop_font_weight":"Grosor de letra","style.prop_font_style":"Estilo de letra","style.prop_line_height":"Interlineado","style.prop_letter_spacing":"Espaciado entre letras","style.prop_text_transform":"May\xFAsculas","style.prop_text_decoration":"Decoraci\xF3n","style.prop_display":"Display","style.prop_opacity":"Opacidad","style.prop_overflow":"Desbordamiento","style.prop_visibility":"Visibilidad","style.prop_position":"Posici\xF3n","style.prop_top":"Arriba","style.prop_right":"Derecha","style.prop_bottom":"Abajo","style.prop_left":"Izquierda","style.prop_z_index":"Z-index","error.sortable_missing":"\xA1SortableJS no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de Sortable; sin \xE9l no se puede arrastrar.","warning.setting_removed":"El ajuste {setting} se elimin\xF3 en la 4.0. Usa {replacement} en su lugar.","warning.already_editing":"Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\xF3.","warning.destroyed":"Se ha llamado a {method}() en un editor destruido, y no hace nada.","warning.duplicate_build":"grideditor.js se ha cargado dos veces: se mantiene el primer GridEditor.","warning.plugin_6x":'El plugin "{name}" est\xE1 escrito para grid-editor 6 y no se carga. Desde la 7.0 los plugins se registran en GridEditor: consulta UPGRADING.md.',"warning.adapter_no_jquery":"grideditor.jquery.js necesita jQuery 4 y la p\xE1gina no tiene jQuery: la API de jQuery no est\xE1 disponible.","warning.oninit_removed":"La opci\xF3n oninit de tinyMCE se elimin\xF3 en la 7.0 y se ignora: usa init_instance_callback.","error.tinymce_missing":"\xA1tinyMCE no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de tinyMCE.","error.ckeditor_missing":"\xA1CKEditor 5 no est\xE1 disponible! Aseg\xFArate de haber cargado su archivo ckeditor5.umd.js: CKEditor 4 ya no est\xE1 soportado.","error.ckeditor_start":"CKEditor no ha podido arrancar: {message}","warning.ckeditor_plugin":"CKEditor no tiene ning\xFAn plugin llamado {name}, as\xED que se deja fuera.","error.codemirror_missing":"\xA1CodeMirror no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de CodeMirror; sin \xE9l el c\xF3digo se edita en un textarea normal.","error.summernote_missing":"\xA1Summernote no est\xE1 disponible! Aseg\xFArate de haber cargado jQuery y el archivo js de Summernote."};})();
6
+ (May\xFAs para el m\xE1ximo)`,"tool.edit_source":"Editar el c\xF3digo fuente","tool.preview":"Vista previa","panel.title":"Ajustes: {kind}","panel.close":"Cerrar","panel.done":"Hecho","panel.id":"Id","panel.classes":"Clases","panel.editor":"Editor","panel.kind_row":"Fila","panel.kind_column":"Columna","panel.kind_text":"Texto","panel.kind_element":"Elemento","panel.kind_section":"Secci\xF3n","panel.kind_tab":"Pesta\xF1a","panel.kind_accordion_item":"Elemento de acorde\xF3n","tool.id_placeholder":"id","tool.id_title":"Asignar un identificador \xFAnico","tool.classes_placeholder":"clases","tool.classes_title":"Clases css, separadas por espacios","tool.toggle_class":'Aplicar o quitar el estilo "{label}"',"row.add":"A\xF1adir fila {layout}","row.add_row_cols":"A\xF1adir una fila de {columns} columnas, {counts} por fila","container.add_tabs":"Pesta\xF1as","container.add_tab":"A\xF1adir pesta\xF1a","container.tab_label":"Pesta\xF1a {number}","container.tabs_section":"Pesta\xF1as","container.tabs_style":"Estilo","container.tabs_style_tabs":"Pesta\xF1as","container.tabs_style_pills":"Pills","container.tabs_style_underline":"Subrayado","container.tabs_width":"Ancho","container.tabs_width_natural":"Natural","container.tabs_width_fill":"Rellenar","container.tabs_width_justified":"Justificado","container.tabs_align":"Alineaci\xF3n","container.tabs_align_start":"Inicio","container.tabs_align_center":"Centro","container.tabs_align_end":"Fin","container.tabs_layout":"Disposici\xF3n","container.tabs_layout_horizontal":"Horizontal","container.tabs_layout_vertical":"Vertical","container.tabs_layout_vertical_from":"Vertical desde {breakpoint}","container.add_accordion":"Acorde\xF3n","container.add_accordion_item":"A\xF1adir apartado","container.accordion_label":"Apartado {number}","container.add_popup":"Ventana emergente","container.popup_title":"T\xEDtulo","container.popup_trigger":"Abrir","container.add_card":"Tarjeta","container.card_title":"T\xEDtulo de la tarjeta","container.card_footer":"Pie de la tarjeta","confirm.title":"Confirmar","confirm.ok":"Borrar","confirm.cancel":"Cancelar","confirm.delete_row":"\xBFSeguro que quieres borrar esta fila?","confirm.delete_column":"\xBFSeguro que quieres borrar esta columna?","confirm.delete_text":"\xBFSeguro que quieres borrar este texto?","confirm.delete_plain":"\xBFSeguro que quieres borrar este contenido?","confirm.delete_element":"\xBFSeguro que quieres borrar este elemento?","confirm.delete_container":"\xBFSeguro que quieres borrar este contenedor y todo su contenido?","confirm.delete_tab":"\xBFSeguro que quieres borrar esta pesta\xF1a y todo su contenido?","confirm.delete_accordion_item":"\xBFSeguro que quieres borrar este apartado y todo su contenido?","view.all":"Todos los tama\xF1os","view.xs":"M\xF3vil","view.sm":"Tablet","view.md":"Escritorio peque\xF1o","view.lg":"Escritorio","view.xl":"Escritorio grande","view.xxl":"Pantalla panor\xE1mica","utility.section":"Responsive: {view}","utility.col_width":"Ancho","utility.col_equal":"Igual","utility.col_auto":"Auto","section.add":"Secci\xF3n","section.width":"Ancho","section.fixed":"Fijo","section.fluid":"Ancho completo","section.from":"Fijo desde {breakpoint}","tool.add_row_to_section":"A\xF1adir fila","tool.delete_section":"Quitar secci\xF3n","confirm.delete_section":"\xBFSeguro que quieres borrar esta secci\xF3n y todo su contenido?","tool.copy":"Copiar","tool.paste":"Pegar","clipboard.paste_row":"Pegar fila","clipboard.paste_section":"Pegar secci\xF3n","utility.col_from_row":"De la fila: {count}","utility.row_cols":"Columnas por fila","badge.row_cols":"{count} por fila","badge.row_cols_auto":"Tan anchas como su contenido","utility.default":"Por defecto","utility.inherit":"Hereda: {value} (de {breakpoint})","utility.varies":"Cambia en {breakpoints}; elegir aqu\xED lo sustituye","utility.display":"Display","utility.visibility_hidden":"Oculto","tool.hide_in_view":"Ocultar en esta vista","tool.show_in_view":"Mostrar en esta vista","badge.hidden_in":"Oculto en {breakpoints}","utility.order":"Orden","utility.order_first":"Primero","utility.order_last":"\xDAltimo","tool.order_earlier":"Antes en esta vista","tool.order_later":"Despu\xE9s en esta vista","badge.order":"Orden: {value}","utility.justify_content":"Justificar columnas","utility.align_items":"Alinear columnas","utility.align_content":"Alinear l\xEDneas","utility.flex_direction":"Direcci\xF3n","utility.flex_wrap":"Salto de l\xEDnea","utility.gap":"Separaci\xF3n","utility.row_gap":"Separaci\xF3n entre filas","utility.column_gap":"Separaci\xF3n entre columnas","utility.flex_fill":"Rellenar","utility.flex_grow":"Crecer","utility.flex_shrink":"Encoger","utility.sticky":"Fijo al desplazar","utility.align_self":"Alinearse","utility.gutters":"Espaciado entre columnas","utility.gutters_x":"Espaciado horizontal","utility.gutters_y":"Espaciado vertical","utility.padding":"Relleno","utility.margin":"Margen","utility.side_all":"Todos los lados","utility.side_x":"Izquierda y derecha","utility.side_y":"Arriba y abajo","utility.side_t":"Arriba","utility.side_b":"Abajo","utility.side_s":"Inicio","utility.side_e":"Fin","utility.text_align":"Alineaci\xF3n del texto","utility.text_start":"Inicio","utility.text_center":"Centro","utility.text_end":"Fin","utility.float":"Flotar","utility.float_start":"Inicio","utility.float_end":"Fin","utility.float_none":"Ninguno","utility.spacing_gutter":"El relleno lateral de una columna es su espaciado: cambiarlo cambia el espacio entre columnas","style.section_title":"Estilo","style.dialog_title":"Estilo: {kind}","style.section_size":"Tama\xF1o","style.section_spacing":"Espaciado","style.section_border":"Borde","style.section_background":"Fondo","style.section_text":"Texto","style.section_typography":"Tipograf\xEDa","style.section_display":"Visualizaci\xF3n","style.section_flex":"Flex","style.section_position":"Posici\xF3n","style.section_custom":"CSS libre","style.all_sizes":"Se aplica a todos los tama\xF1os","style.overridden":"La clase {class} tiene prioridad sobre este valor","style.invalid":"Esta propiedad no acepta ese valor","style.catalog":"Clases de Bootstrap","style.shadow_x":"X","style.shadow_y":"Y","style.shadow_blur":"Desenfoque","style.shadow_spread":"Extensi\xF3n","style.shadow_color":"Color","style.shadow_inset":"Interior","style.shadow_text_mode":"Editar como texto","style.prop_width":"Ancho","style.prop_height":"Alto","style.prop_min_width":"Ancho m\xEDnimo","style.prop_min_height":"Alto m\xEDnimo","style.prop_max_width":"Ancho m\xE1ximo","style.prop_max_height":"Alto m\xE1ximo","style.prop_margin_top":"Margen superior","style.prop_margin_right":"Margen derecho","style.prop_margin_bottom":"Margen inferior","style.prop_margin_left":"Margen izquierdo","style.prop_padding_top":"Relleno superior","style.prop_padding_right":"Relleno derecho","style.prop_padding_bottom":"Relleno inferior","style.prop_padding_left":"Relleno izquierdo","style.prop_border_width":"Grosor del borde","style.prop_border_style":"Estilo del borde","style.prop_border_color":"Color del borde","style.prop_border_radius":"Radio del borde","style.prop_box_shadow":"Sombra","style.prop_background_color":"Color de fondo","style.prop_background_image":"Imagen de fondo","style.prop_background_size":"Tama\xF1o del fondo","style.prop_background_position":"Posici\xF3n del fondo","style.prop_background_repeat":"Repetici\xF3n del fondo","style.prop_color":"Color","style.prop_font_size":"Tama\xF1o de letra","style.prop_text_align":"Alineaci\xF3n","style.prop_text_shadow":"Sombra del texto","style.prop_font_family":"Fuente","style.prop_font_weight":"Grosor de letra","style.prop_font_style":"Estilo de letra","style.prop_line_height":"Interlineado","style.prop_letter_spacing":"Espaciado entre letras","style.prop_text_transform":"May\xFAsculas","style.prop_text_decoration":"Decoraci\xF3n","style.prop_display":"Display","style.prop_opacity":"Opacidad","style.prop_overflow":"Desbordamiento","style.prop_visibility":"Visibilidad","style.prop_position":"Posici\xF3n","style.prop_top":"Arriba","style.prop_right":"Derecha","style.prop_bottom":"Abajo","style.prop_left":"Izquierda","style.prop_z_index":"Z-index","error.sortable_missing":"\xA1SortableJS no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de Sortable; sin \xE9l no se puede arrastrar.","warning.already_editing":"Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\xF3.","warning.destroyed":"Se ha llamado a {method}() en un editor destruido, y no hace nada.","warning.duplicate_build":"grideditor.js se ha cargado dos veces: se mantiene el primer GridEditor.","warning.adapter_no_jquery":"grideditor.jquery.js necesita jQuery 4 y la p\xE1gina no tiene jQuery: la API de jQuery no est\xE1 disponible.","error.tinymce_missing":"\xA1tinyMCE no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de tinyMCE.","error.ckeditor_missing":"\xA1CKEditor 5 no est\xE1 disponible! Aseg\xFArate de haber cargado su archivo ckeditor5.umd.js.","error.ckeditor_start":"CKEditor no ha podido arrancar: {message}","warning.ckeditor_plugin":"CKEditor no tiene ning\xFAn plugin llamado {name}, as\xED que se deja fuera.","error.codemirror_missing":"\xA1CodeMirror no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de CodeMirror; sin \xE9l el c\xF3digo se edita en un textarea normal.","error.summernote_missing":"\xA1Summernote no est\xE1 disponible! Aseg\xFArate de haber cargado jQuery y el archivo js de Summernote."};})();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/js/register.js", "../../src/js/locales/grideditor.es.js"],
4
- "sourcesContent": ["/**\n * What a plugin's or a locale's classic script imports in place of the\n * editor: the GridEditor the page already loaded.\n *\n * The build points `import { GridEditor } from '../grideditor.js'` here for\n * the classic scripts, so each registers on the editor the page has rather\n * than bringing its own. Loaded before the editor there is nothing to\n * register on, and saying so is better than a TypeError three calls later.\n */\nvar GridEditor = window.GridEditor;\n\nif (!GridEditor || typeof GridEditor.get !== 'function') {\n throw new Error('grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, ' +\n 'its locales and grideditor.jquery.js');\n}\n\nexport { GridEditor };\nexport default GridEditor;\n", "/**\n * Spanish strings for grid-editor.\n *\n * Load after the editor and select with `locale: 'es'`:\n *\n * <script src=\"dist/grideditor.min.js\"></script>\n * <script src=\"dist/locales/grideditor.es.js\"></script>\n * <script>new GridEditor('#myGrid', { locale: 'es' });</script>\n *\n * or, as a module, `import '@themarioga/grid-editor/locales/es'`.\n *\n * This is one of the two locales grid-editor ships, so it is held to complete\n * coverage of `GridEditor.locales.en`: test/locales.js fails when a key\n * is missing. Add the Spanish string in the same change that adds the English\n * one, and keep the wording short enough to fit the tooltip or the dropdown\n * item it appears in.\n */\nimport { GridEditor } from '../grideditor.js';\n\nGridEditor.locales.es = {\n 'tool.move': 'Mover',\n 'tool.settings': 'Configuraci\u00F3n',\n 'tool.add_row': 'A\u00F1adir fila',\n 'tool.delete_text': 'Quitar texto',\n 'tool.delete_plain': 'Quitar contenido',\n 'tool.edit_html': 'Editar html',\n 'codemirror.apply': 'Aplicar',\n 'codemirror.cancel': 'Cancelar',\n 'tool.convert_type': 'Editar como texto de {editor}',\n 'text.add': 'Texto',\n 'text.add_type': 'Texto ({editor})',\n 'text.no_editor': 'No hay cargado ning\u00FAn editor de texto \"{type}\": este texto se puede mover y borrar, pero no editar',\n 'text.tinymce': 'tinyMCE',\n 'text.ckeditor': 'CKEditor',\n 'text.summernote': 'Summernote',\n 'tool.add_column': 'A\u00F1adir columna\\n(mant\u00E9n pulsado para elegir el ancho)',\n 'tool.column_size': '{size} de 12',\n 'tool.column_equal': 'Igual: reparte lo que queda de la fila',\n 'tool.column_auto': 'Auto: tan ancha como su contenido',\n 'tool.delete_row': 'Borrar fila',\n 'tool.delete_column': 'Borrar columna',\n 'tool.delete_element': 'Borrar elemento',\n 'tool.delete_container': 'Borrar contenedor',\n 'tool.delete_pane': 'Borrar panel',\n 'tool.rename': 'Haz doble clic para renombrar',\n 'tool.toggle_popup': 'Plegar esta ventana mientras editas',\n 'tool.element_info': 'Elemento: {name}',\n 'tool.column_narrower': 'Estrechar columna\\n(May\u00FAs para el m\u00EDnimo)',\n 'tool.column_wider': 'Ensanchar columna\\n(May\u00FAs para el m\u00E1ximo)',\n 'tool.indent_decrease': 'Reducir sangr\u00EDa\\n(May\u00FAs para quitarla)',\n 'tool.indent_increase': 'Aumentar sangr\u00EDa\\n(May\u00FAs para el m\u00E1ximo)',\n 'tool.edit_source': 'Editar el c\u00F3digo fuente',\n 'tool.preview': 'Vista previa',\n 'panel.title': 'Ajustes: {kind}',\n 'panel.close': 'Cerrar',\n 'panel.done': 'Hecho',\n 'panel.id': 'Id',\n 'panel.classes': 'Clases',\n 'panel.editor': 'Editor',\n 'panel.kind_row': 'Fila',\n 'panel.kind_column': 'Columna',\n 'panel.kind_text': 'Texto',\n 'panel.kind_element': 'Elemento',\n 'panel.kind_section': 'Secci\u00F3n',\n 'panel.kind_tab': 'Pesta\u00F1a',\n 'panel.kind_accordion_item': 'Elemento de acorde\u00F3n',\n 'tool.id_placeholder': 'id',\n 'tool.id_title': 'Asignar un identificador \u00FAnico',\n 'tool.classes_placeholder': 'clases',\n 'tool.classes_title': 'Clases css, separadas por espacios',\n 'tool.toggle_class': 'Aplicar o quitar el estilo \"{label}\"',\n 'row.add': 'A\u00F1adir fila {layout}',\n 'row.add_row_cols': 'A\u00F1adir una fila de {columns} columnas, {counts} por fila',\n 'container.add_tabs': 'Pesta\u00F1as',\n 'container.add_tab': 'A\u00F1adir pesta\u00F1a',\n 'container.tab_label': 'Pesta\u00F1a {number}',\n 'container.add_accordion': 'Acorde\u00F3n',\n 'container.add_accordion_item': 'A\u00F1adir apartado',\n 'container.accordion_label': 'Apartado {number}',\n 'container.add_popup': 'Ventana emergente',\n 'container.popup_title': 'T\u00EDtulo',\n 'container.popup_trigger': 'Abrir',\n 'container.add_card': 'Tarjeta',\n 'container.card_title': 'T\u00EDtulo de la tarjeta',\n 'container.card_footer': 'Pie de la tarjeta',\n 'confirm.title': 'Confirmar',\n 'confirm.ok': 'Borrar',\n 'confirm.cancel': 'Cancelar',\n 'confirm.delete_row': '\u00BFSeguro que quieres borrar esta fila?',\n 'confirm.delete_column': '\u00BFSeguro que quieres borrar esta columna?',\n 'confirm.delete_text': '\u00BFSeguro que quieres borrar este texto?',\n 'confirm.delete_plain': '\u00BFSeguro que quieres borrar este contenido?',\n 'confirm.delete_element': '\u00BFSeguro que quieres borrar este elemento?',\n 'confirm.delete_container': '\u00BFSeguro que quieres borrar este contenedor y todo su contenido?',\n 'confirm.delete_tab': '\u00BFSeguro que quieres borrar esta pesta\u00F1a y todo su contenido?',\n 'confirm.delete_accordion_item': '\u00BFSeguro que quieres borrar este apartado y todo su contenido?',\n 'view.all': 'Todos los tama\u00F1os',\n 'view.xs': 'M\u00F3vil',\n 'view.sm': 'Tablet',\n 'view.md': 'Escritorio peque\u00F1o',\n 'view.lg': 'Escritorio',\n 'view.xl': 'Escritorio grande',\n 'view.xxl': 'Pantalla panor\u00E1mica',\n 'utility.section': 'Responsive: {view}',\n 'utility.col_width': 'Ancho',\n 'utility.col_equal': 'Igual',\n 'utility.col_auto': 'Auto',\n 'section.add': 'Secci\u00F3n',\n 'section.width': 'Ancho',\n 'section.fixed': 'Fijo',\n 'section.fluid': 'Ancho completo',\n 'section.from': 'Fijo desde {breakpoint}',\n 'tool.add_row_to_section': 'A\u00F1adir fila',\n 'tool.delete_section': 'Quitar secci\u00F3n',\n 'confirm.delete_section': '\u00BFSeguro que quieres borrar esta secci\u00F3n y todo su contenido?',\n 'tool.copy': 'Copiar',\n 'tool.paste': 'Pegar',\n 'clipboard.paste_row': 'Pegar fila',\n 'clipboard.paste_section': 'Pegar secci\u00F3n',\n 'utility.col_from_row': 'De la fila: {count}',\n 'utility.row_cols': 'Columnas por fila',\n 'badge.row_cols': '{count} por fila',\n 'badge.row_cols_auto': 'Tan anchas como su contenido',\n 'utility.default': 'Por defecto',\n 'utility.inherit': 'Hereda: {value} (de {breakpoint})',\n 'utility.varies': 'Cambia en {breakpoints}; elegir aqu\u00ED lo sustituye',\n 'utility.visibility': 'Visibilidad',\n 'utility.visibility_hidden': 'Oculto',\n 'utility.visibility_shown': 'Visible',\n 'tool.hide_in_view': 'Ocultar en esta vista',\n 'tool.show_in_view': 'Mostrar en esta vista',\n 'badge.hidden_in': 'Oculto en {breakpoints}',\n 'utility.order': 'Orden',\n 'utility.order_first': 'Primero',\n 'utility.order_last': '\u00DAltimo',\n 'tool.order_earlier': 'Antes en esta vista',\n 'tool.order_later': 'Despu\u00E9s en esta vista',\n 'badge.order': 'Orden: {value}',\n 'utility.justify_content': 'Justificar columnas',\n 'utility.align_items': 'Alinear columnas',\n 'utility.align_self': 'Alinearse',\n 'utility.gutters': 'Espaciado entre columnas',\n 'utility.gutters_x': 'Espaciado horizontal',\n 'utility.gutters_y': 'Espaciado vertical',\n 'utility.padding': 'Relleno',\n 'utility.margin': 'Margen',\n 'utility.side_all': 'Todos los lados',\n 'utility.side_x': 'Izquierda y derecha',\n 'utility.side_y': 'Arriba y abajo',\n 'utility.side_t': 'Arriba',\n 'utility.side_b': 'Abajo',\n 'utility.side_s': 'Inicio',\n 'utility.side_e': 'Fin',\n 'utility.text_align': 'Alineaci\u00F3n del texto',\n 'utility.text_start': 'Inicio',\n 'utility.text_center': 'Centro',\n 'utility.text_end': 'Fin',\n 'utility.float': 'Flotar',\n 'utility.float_start': 'Inicio',\n 'utility.float_end': 'Fin',\n 'utility.float_none': 'Ninguno',\n 'utility.spacing_gutter': 'El relleno lateral de una columna es su espaciado: cambiarlo cambia el espacio entre columnas',\n 'style.section_title': 'Estilo',\n 'style.dialog_title': 'Estilo: {kind}',\n 'style.section_size': 'Tama\u00F1o',\n 'style.section_spacing': 'Espaciado',\n 'style.section_border': 'Borde',\n 'style.section_background': 'Fondo',\n 'style.section_text': 'Texto',\n 'style.section_typography': 'Tipograf\u00EDa',\n 'style.section_display': 'Visualizaci\u00F3n',\n 'style.section_position': 'Posici\u00F3n',\n 'style.section_custom': 'CSS libre',\n 'style.all_sizes': 'Se aplica a todos los tama\u00F1os',\n 'style.overridden': 'La clase {class} tiene prioridad sobre este valor',\n 'style.invalid': 'Esta propiedad no acepta ese valor',\n 'style.catalog': 'Clases de Bootstrap',\n 'style.shadow_x': 'X',\n 'style.shadow_y': 'Y',\n 'style.shadow_blur': 'Desenfoque',\n 'style.shadow_spread': 'Extensi\u00F3n',\n 'style.shadow_color': 'Color',\n 'style.shadow_inset': 'Interior',\n 'style.shadow_text_mode': 'Editar como texto',\n 'style.prop_width': 'Ancho',\n 'style.prop_height': 'Alto',\n 'style.prop_min_width': 'Ancho m\u00EDnimo',\n 'style.prop_min_height': 'Alto m\u00EDnimo',\n 'style.prop_max_width': 'Ancho m\u00E1ximo',\n 'style.prop_max_height': 'Alto m\u00E1ximo',\n 'style.prop_margin_top': 'Margen superior',\n 'style.prop_margin_right': 'Margen derecho',\n 'style.prop_margin_bottom': 'Margen inferior',\n 'style.prop_margin_left': 'Margen izquierdo',\n 'style.prop_padding_top': 'Relleno superior',\n 'style.prop_padding_right': 'Relleno derecho',\n 'style.prop_padding_bottom': 'Relleno inferior',\n 'style.prop_padding_left': 'Relleno izquierdo',\n 'style.prop_border_width': 'Grosor del borde',\n 'style.prop_border_style': 'Estilo del borde',\n 'style.prop_border_color': 'Color del borde',\n 'style.prop_border_radius': 'Radio del borde',\n 'style.prop_box_shadow': 'Sombra',\n 'style.prop_background_color': 'Color de fondo',\n 'style.prop_background_image': 'Imagen de fondo',\n 'style.prop_background_size': 'Tama\u00F1o del fondo',\n 'style.prop_background_position': 'Posici\u00F3n del fondo',\n 'style.prop_background_repeat': 'Repetici\u00F3n del fondo',\n 'style.prop_color': 'Color',\n 'style.prop_font_size': 'Tama\u00F1o de letra',\n 'style.prop_text_align': 'Alineaci\u00F3n',\n 'style.prop_text_shadow': 'Sombra del texto',\n 'style.prop_font_family': 'Fuente',\n 'style.prop_font_weight': 'Grosor de letra',\n 'style.prop_font_style': 'Estilo de letra',\n 'style.prop_line_height': 'Interlineado',\n 'style.prop_letter_spacing': 'Espaciado entre letras',\n 'style.prop_text_transform': 'May\u00FAsculas',\n 'style.prop_text_decoration': 'Decoraci\u00F3n',\n 'style.prop_display': 'Display',\n 'style.prop_opacity': 'Opacidad',\n 'style.prop_overflow': 'Desbordamiento',\n 'style.prop_visibility': 'Visibilidad',\n 'style.prop_position': 'Posici\u00F3n',\n 'style.prop_top': 'Arriba',\n 'style.prop_right': 'Derecha',\n 'style.prop_bottom': 'Abajo',\n 'style.prop_left': 'Izquierda',\n 'style.prop_z_index': 'Z-index',\n 'error.sortable_missing': '\u00A1SortableJS no est\u00E1 disponible! Aseg\u00FArate de haber cargado el archivo js de Sortable; sin \u00E9l no se puede arrastrar.',\n 'warning.setting_removed': 'El ajuste {setting} se elimin\u00F3 en la 4.0. Usa {replacement} en su lugar.',\n 'warning.already_editing': 'Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\u00F3.',\n 'warning.destroyed': 'Se ha llamado a {method}() en un editor destruido, y no hace nada.',\n 'warning.duplicate_build': 'grideditor.js se ha cargado dos veces: se mantiene el primer GridEditor.',\n 'warning.plugin_6x': 'El plugin \"{name}\" est\u00E1 escrito para grid-editor 6 y no se carga. Desde la 7.0 los plugins se registran en GridEditor: consulta UPGRADING.md.',\n 'warning.adapter_no_jquery': 'grideditor.jquery.js necesita jQuery 4 y la p\u00E1gina no tiene jQuery: la API de jQuery no est\u00E1 disponible.',\n 'warning.oninit_removed': 'La opci\u00F3n oninit de tinyMCE se elimin\u00F3 en la 7.0 y se ignora: usa init_instance_callback.',\n 'error.tinymce_missing': '\u00A1tinyMCE no est\u00E1 disponible! Aseg\u00FArate de haber cargado el archivo js de tinyMCE.',\n 'error.ckeditor_missing': '\u00A1CKEditor 5 no est\u00E1 disponible! Aseg\u00FArate de haber cargado su archivo ckeditor5.umd.js: CKEditor 4 ya no est\u00E1 soportado.',\n 'error.ckeditor_start': 'CKEditor no ha podido arrancar: {message}',\n 'warning.ckeditor_plugin': 'CKEditor no tiene ning\u00FAn plugin llamado {name}, as\u00ED que se deja fuera.',\n 'error.codemirror_missing': '\u00A1CodeMirror no est\u00E1 disponible! Aseg\u00FArate de haber cargado el archivo js de CodeMirror; sin \u00E9l el c\u00F3digo se edita en un textarea normal.',\n 'error.summernote_missing': '\u00A1Summernote no est\u00E1 disponible! Aseg\u00FArate de haber cargado jQuery y el archivo js de Summernote.',\n};\n\n"],
5
- "mappings": "MASA,IAAIA,EAAa,OAAO,WAExB,GAAI,CAACA,GAAc,OAAOA,EAAW,KAAQ,WACzC,MAAM,IAAI,MAAM,wHAC0B,ECM9CC,EAAW,QAAQ,GAAK,CACpB,YAAa,QACb,gBAAiB,mBACjB,eAAgB,iBAChB,mBAAoB,eACpB,oBAAqB,mBACrB,iBAAkB,cAClB,mBAAoB,UACpB,oBAAqB,WACrB,oBAAqB,gCACrB,WAAY,QACZ,gBAAiB,mBACjB,iBAAkB,wGAClB,eAAgB,UAChB,gBAAiB,WACjB,kBAAmB,aACnB,kBAAmB;AAAA,0CACnB,mBAAoB,eACpB,oBAAqB,yCACrB,mBAAoB,oCACpB,kBAAmB,cACnB,qBAAsB,iBACtB,sB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BAC/B,6BAA8B,sBAC9B,iCAAkC,wBAClC,+BAAgC,0BAChC,mBAAoB,QACpB,uBAAwB,qBACxB,wBAAyB,gBACzB,yBAA0B,mBAC1B,yBAA0B,SAC1B,yBAA0B,kBAC1B,wBAAyB,kBACzB,yBAA0B,eAC1B,4BAA6B,yBAC7B,4BAA6B,gBAC7B,6BAA8B,gBAC9B,qBAAsB,UACtB,qBAAsB,WACtB,sBAAuB,iBACvB,wBAAyB,cACzB,sBAAuB,cACvB,iBAAkB,SAClB,mBAAoB,UACpB,oBAAqB,QACrB,kBAAmB,YACnB,qBAAsB,UACtB,yBAA0B,kIAC1B,0BAA2B,8EAC3B,0BAA2B,8FAC3B,oBAAqB,qEACrB,0BAA2B,2EAC3B,oBAAqB,mJACrB,4BAA6B,iHAC7B,yBAA0B,kGAC1B,wBAAyB,6FACzB,yBAA0B,uIAC1B,uBAAwB,4CACxB,0BAA2B,+EAC3B,2BAA4B,0JAC5B,2BAA4B,2GAChC",
4
+ "sourcesContent": ["/**\n * What a plugin's or a locale's classic script imports in place of the\n * editor: the GridEditor the page already loaded.\n *\n * The build points `import { GridEditor } from '../grideditor.js'` here for\n * the classic scripts, so each registers on the editor the page has rather\n * than bringing its own. Loaded before the editor there is nothing to\n * register on, and saying so is better than a TypeError three calls later.\n */\nvar GridEditor = window.GridEditor;\n\nif (!GridEditor || typeof GridEditor.get !== 'function') {\n throw new Error('grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, ' +\n 'its locales and grideditor.jquery.js');\n}\n\nexport { GridEditor };\nexport default GridEditor;\n", "/**\n * Spanish strings for grid-editor.\n *\n * Load after the editor and select with `locale: 'es'`:\n *\n * <script src=\"dist/grideditor.min.js\"></script>\n * <script src=\"dist/locales/grideditor.es.js\"></script>\n * <script>new GridEditor('#myGrid', { locale: 'es' });</script>\n *\n * or, as a module, `import '@themarioga/grid-editor/locales/es'`.\n *\n * This is one of the two locales grid-editor ships, so it is held to complete\n * coverage of `GridEditor.locales.en`: test/locales.js fails when a key\n * is missing. Add the Spanish string in the same change that adds the English\n * one, and keep the wording short enough to fit the tooltip or the dropdown\n * item it appears in.\n */\nimport { GridEditor } from '../grideditor.js';\n\nGridEditor.locales.es = {\n 'tool.move': 'Mover',\n 'tool.settings': 'Configuraci\u00F3n',\n 'tool.add_row': 'A\u00F1adir fila',\n 'tool.delete_text': 'Quitar texto',\n 'tool.delete_plain': 'Quitar contenido',\n 'tool.edit_html': 'Editar html',\n 'codemirror.apply': 'Aplicar',\n 'codemirror.cancel': 'Cancelar',\n 'tool.convert_type': 'Editar como texto de {editor}',\n 'text.add': 'Texto',\n 'text.add_type': 'Texto ({editor})',\n 'text.no_editor': 'No hay cargado ning\u00FAn editor de texto \"{type}\": este texto se puede mover y borrar, pero no editar',\n 'text.tinymce': 'tinyMCE',\n 'text.ckeditor': 'CKEditor',\n 'text.summernote': 'Summernote',\n 'tool.add_column': 'A\u00F1adir columna\\n(mant\u00E9n pulsado para elegir el ancho)',\n 'tool.column_size': '{size} de 12',\n 'tool.column_equal': 'Igual: reparte lo que queda de la fila',\n 'tool.column_auto': 'Auto: tan ancha como su contenido',\n 'tool.delete_row': 'Borrar fila',\n 'tool.delete_column': 'Borrar columna',\n 'tool.delete_element': 'Borrar elemento',\n 'tool.delete_container': 'Borrar contenedor',\n 'tool.delete_pane': 'Borrar panel',\n 'tool.rename': 'Haz doble clic para renombrar',\n 'tool.toggle_popup': 'Plegar esta ventana mientras editas',\n 'tool.element_info': 'Elemento: {name}',\n 'tool.column_narrower': 'Estrechar columna\\n(May\u00FAs para el m\u00EDnimo)',\n 'tool.column_wider': 'Ensanchar columna\\n(May\u00FAs para el m\u00E1ximo)',\n 'tool.indent_decrease': 'Reducir sangr\u00EDa\\n(May\u00FAs para quitarla)',\n 'tool.indent_increase': 'Aumentar sangr\u00EDa\\n(May\u00FAs para el m\u00E1ximo)',\n 'tool.edit_source': 'Editar el c\u00F3digo fuente',\n 'tool.preview': 'Vista previa',\n 'panel.title': 'Ajustes: {kind}',\n 'panel.close': 'Cerrar',\n 'panel.done': 'Hecho',\n 'panel.id': 'Id',\n 'panel.classes': 'Clases',\n 'panel.editor': 'Editor',\n 'panel.kind_row': 'Fila',\n 'panel.kind_column': 'Columna',\n 'panel.kind_text': 'Texto',\n 'panel.kind_element': 'Elemento',\n 'panel.kind_section': 'Secci\u00F3n',\n 'panel.kind_tab': 'Pesta\u00F1a',\n 'panel.kind_accordion_item': 'Elemento de acorde\u00F3n',\n 'tool.id_placeholder': 'id',\n 'tool.id_title': 'Asignar un identificador \u00FAnico',\n 'tool.classes_placeholder': 'clases',\n 'tool.classes_title': 'Clases css, separadas por espacios',\n 'tool.toggle_class': 'Aplicar o quitar el estilo \"{label}\"',\n 'row.add': 'A\u00F1adir fila {layout}',\n 'row.add_row_cols': 'A\u00F1adir una fila de {columns} columnas, {counts} por fila',\n 'container.add_tabs': 'Pesta\u00F1as',\n 'container.add_tab': 'A\u00F1adir pesta\u00F1a',\n 'container.tab_label': 'Pesta\u00F1a {number}',\n 'container.tabs_section': 'Pesta\u00F1as',\n 'container.tabs_style': 'Estilo',\n 'container.tabs_style_tabs': 'Pesta\u00F1as',\n 'container.tabs_style_pills': 'Pills',\n 'container.tabs_style_underline': 'Subrayado',\n 'container.tabs_width': 'Ancho',\n 'container.tabs_width_natural': 'Natural',\n 'container.tabs_width_fill': 'Rellenar',\n 'container.tabs_width_justified': 'Justificado',\n 'container.tabs_align': 'Alineaci\u00F3n',\n 'container.tabs_align_start': 'Inicio',\n 'container.tabs_align_center': 'Centro',\n 'container.tabs_align_end': 'Fin',\n 'container.tabs_layout': 'Disposici\u00F3n',\n 'container.tabs_layout_horizontal': 'Horizontal',\n 'container.tabs_layout_vertical': 'Vertical',\n 'container.tabs_layout_vertical_from': 'Vertical desde {breakpoint}',\n 'container.add_accordion': 'Acorde\u00F3n',\n 'container.add_accordion_item': 'A\u00F1adir apartado',\n 'container.accordion_label': 'Apartado {number}',\n 'container.add_popup': 'Ventana emergente',\n 'container.popup_title': 'T\u00EDtulo',\n 'container.popup_trigger': 'Abrir',\n 'container.add_card': 'Tarjeta',\n 'container.card_title': 'T\u00EDtulo de la tarjeta',\n 'container.card_footer': 'Pie de la tarjeta',\n 'confirm.title': 'Confirmar',\n 'confirm.ok': 'Borrar',\n 'confirm.cancel': 'Cancelar',\n 'confirm.delete_row': '\u00BFSeguro que quieres borrar esta fila?',\n 'confirm.delete_column': '\u00BFSeguro que quieres borrar esta columna?',\n 'confirm.delete_text': '\u00BFSeguro que quieres borrar este texto?',\n 'confirm.delete_plain': '\u00BFSeguro que quieres borrar este contenido?',\n 'confirm.delete_element': '\u00BFSeguro que quieres borrar este elemento?',\n 'confirm.delete_container': '\u00BFSeguro que quieres borrar este contenedor y todo su contenido?',\n 'confirm.delete_tab': '\u00BFSeguro que quieres borrar esta pesta\u00F1a y todo su contenido?',\n 'confirm.delete_accordion_item': '\u00BFSeguro que quieres borrar este apartado y todo su contenido?',\n 'view.all': 'Todos los tama\u00F1os',\n 'view.xs': 'M\u00F3vil',\n 'view.sm': 'Tablet',\n 'view.md': 'Escritorio peque\u00F1o',\n 'view.lg': 'Escritorio',\n 'view.xl': 'Escritorio grande',\n 'view.xxl': 'Pantalla panor\u00E1mica',\n 'utility.section': 'Responsive: {view}',\n 'utility.col_width': 'Ancho',\n 'utility.col_equal': 'Igual',\n 'utility.col_auto': 'Auto',\n 'section.add': 'Secci\u00F3n',\n 'section.width': 'Ancho',\n 'section.fixed': 'Fijo',\n 'section.fluid': 'Ancho completo',\n 'section.from': 'Fijo desde {breakpoint}',\n 'tool.add_row_to_section': 'A\u00F1adir fila',\n 'tool.delete_section': 'Quitar secci\u00F3n',\n 'confirm.delete_section': '\u00BFSeguro que quieres borrar esta secci\u00F3n y todo su contenido?',\n 'tool.copy': 'Copiar',\n 'tool.paste': 'Pegar',\n 'clipboard.paste_row': 'Pegar fila',\n 'clipboard.paste_section': 'Pegar secci\u00F3n',\n 'utility.col_from_row': 'De la fila: {count}',\n 'utility.row_cols': 'Columnas por fila',\n 'badge.row_cols': '{count} por fila',\n 'badge.row_cols_auto': 'Tan anchas como su contenido',\n 'utility.default': 'Por defecto',\n 'utility.inherit': 'Hereda: {value} (de {breakpoint})',\n 'utility.varies': 'Cambia en {breakpoints}; elegir aqu\u00ED lo sustituye',\n 'utility.display': 'Display',\n 'utility.visibility_hidden': 'Oculto',\n 'tool.hide_in_view': 'Ocultar en esta vista',\n 'tool.show_in_view': 'Mostrar en esta vista',\n 'badge.hidden_in': 'Oculto en {breakpoints}',\n 'utility.order': 'Orden',\n 'utility.order_first': 'Primero',\n 'utility.order_last': '\u00DAltimo',\n 'tool.order_earlier': 'Antes en esta vista',\n 'tool.order_later': 'Despu\u00E9s en esta vista',\n 'badge.order': 'Orden: {value}',\n 'utility.justify_content': 'Justificar columnas',\n 'utility.align_items': 'Alinear columnas',\n 'utility.align_content': 'Alinear l\u00EDneas',\n 'utility.flex_direction': 'Direcci\u00F3n',\n 'utility.flex_wrap': 'Salto de l\u00EDnea',\n 'utility.gap': 'Separaci\u00F3n',\n 'utility.row_gap': 'Separaci\u00F3n entre filas',\n 'utility.column_gap': 'Separaci\u00F3n entre columnas',\n 'utility.flex_fill': 'Rellenar',\n 'utility.flex_grow': 'Crecer',\n 'utility.flex_shrink': 'Encoger',\n 'utility.sticky': 'Fijo al desplazar',\n 'utility.align_self': 'Alinearse',\n 'utility.gutters': 'Espaciado entre columnas',\n 'utility.gutters_x': 'Espaciado horizontal',\n 'utility.gutters_y': 'Espaciado vertical',\n 'utility.padding': 'Relleno',\n 'utility.margin': 'Margen',\n 'utility.side_all': 'Todos los lados',\n 'utility.side_x': 'Izquierda y derecha',\n 'utility.side_y': 'Arriba y abajo',\n 'utility.side_t': 'Arriba',\n 'utility.side_b': 'Abajo',\n 'utility.side_s': 'Inicio',\n 'utility.side_e': 'Fin',\n 'utility.text_align': 'Alineaci\u00F3n del texto',\n 'utility.text_start': 'Inicio',\n 'utility.text_center': 'Centro',\n 'utility.text_end': 'Fin',\n 'utility.float': 'Flotar',\n 'utility.float_start': 'Inicio',\n 'utility.float_end': 'Fin',\n 'utility.float_none': 'Ninguno',\n 'utility.spacing_gutter': 'El relleno lateral de una columna es su espaciado: cambiarlo cambia el espacio entre columnas',\n 'style.section_title': 'Estilo',\n 'style.dialog_title': 'Estilo: {kind}',\n 'style.section_size': 'Tama\u00F1o',\n 'style.section_spacing': 'Espaciado',\n 'style.section_border': 'Borde',\n 'style.section_background': 'Fondo',\n 'style.section_text': 'Texto',\n 'style.section_typography': 'Tipograf\u00EDa',\n 'style.section_display': 'Visualizaci\u00F3n',\n 'style.section_flex': 'Flex',\n 'style.section_position': 'Posici\u00F3n',\n 'style.section_custom': 'CSS libre',\n 'style.all_sizes': 'Se aplica a todos los tama\u00F1os',\n 'style.overridden': 'La clase {class} tiene prioridad sobre este valor',\n 'style.invalid': 'Esta propiedad no acepta ese valor',\n 'style.catalog': 'Clases de Bootstrap',\n 'style.shadow_x': 'X',\n 'style.shadow_y': 'Y',\n 'style.shadow_blur': 'Desenfoque',\n 'style.shadow_spread': 'Extensi\u00F3n',\n 'style.shadow_color': 'Color',\n 'style.shadow_inset': 'Interior',\n 'style.shadow_text_mode': 'Editar como texto',\n 'style.prop_width': 'Ancho',\n 'style.prop_height': 'Alto',\n 'style.prop_min_width': 'Ancho m\u00EDnimo',\n 'style.prop_min_height': 'Alto m\u00EDnimo',\n 'style.prop_max_width': 'Ancho m\u00E1ximo',\n 'style.prop_max_height': 'Alto m\u00E1ximo',\n 'style.prop_margin_top': 'Margen superior',\n 'style.prop_margin_right': 'Margen derecho',\n 'style.prop_margin_bottom': 'Margen inferior',\n 'style.prop_margin_left': 'Margen izquierdo',\n 'style.prop_padding_top': 'Relleno superior',\n 'style.prop_padding_right': 'Relleno derecho',\n 'style.prop_padding_bottom': 'Relleno inferior',\n 'style.prop_padding_left': 'Relleno izquierdo',\n 'style.prop_border_width': 'Grosor del borde',\n 'style.prop_border_style': 'Estilo del borde',\n 'style.prop_border_color': 'Color del borde',\n 'style.prop_border_radius': 'Radio del borde',\n 'style.prop_box_shadow': 'Sombra',\n 'style.prop_background_color': 'Color de fondo',\n 'style.prop_background_image': 'Imagen de fondo',\n 'style.prop_background_size': 'Tama\u00F1o del fondo',\n 'style.prop_background_position': 'Posici\u00F3n del fondo',\n 'style.prop_background_repeat': 'Repetici\u00F3n del fondo',\n 'style.prop_color': 'Color',\n 'style.prop_font_size': 'Tama\u00F1o de letra',\n 'style.prop_text_align': 'Alineaci\u00F3n',\n 'style.prop_text_shadow': 'Sombra del texto',\n 'style.prop_font_family': 'Fuente',\n 'style.prop_font_weight': 'Grosor de letra',\n 'style.prop_font_style': 'Estilo de letra',\n 'style.prop_line_height': 'Interlineado',\n 'style.prop_letter_spacing': 'Espaciado entre letras',\n 'style.prop_text_transform': 'May\u00FAsculas',\n 'style.prop_text_decoration': 'Decoraci\u00F3n',\n 'style.prop_display': 'Display',\n 'style.prop_opacity': 'Opacidad',\n 'style.prop_overflow': 'Desbordamiento',\n 'style.prop_visibility': 'Visibilidad',\n 'style.prop_position': 'Posici\u00F3n',\n 'style.prop_top': 'Arriba',\n 'style.prop_right': 'Derecha',\n 'style.prop_bottom': 'Abajo',\n 'style.prop_left': 'Izquierda',\n 'style.prop_z_index': 'Z-index',\n 'error.sortable_missing': '\u00A1SortableJS no est\u00E1 disponible! Aseg\u00FArate de haber cargado el archivo js de Sortable; sin \u00E9l no se puede arrastrar.',\n 'warning.already_editing': 'Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\u00F3.',\n 'warning.destroyed': 'Se ha llamado a {method}() en un editor destruido, y no hace nada.',\n 'warning.duplicate_build': 'grideditor.js se ha cargado dos veces: se mantiene el primer GridEditor.',\n 'warning.adapter_no_jquery': 'grideditor.jquery.js necesita jQuery 4 y la p\u00E1gina no tiene jQuery: la API de jQuery no est\u00E1 disponible.',\n 'error.tinymce_missing': '\u00A1tinyMCE no est\u00E1 disponible! Aseg\u00FArate de haber cargado el archivo js de tinyMCE.',\n 'error.ckeditor_missing': '\u00A1CKEditor 5 no est\u00E1 disponible! Aseg\u00FArate de haber cargado su archivo ckeditor5.umd.js.',\n 'error.ckeditor_start': 'CKEditor no ha podido arrancar: {message}',\n 'warning.ckeditor_plugin': 'CKEditor no tiene ning\u00FAn plugin llamado {name}, as\u00ED que se deja fuera.',\n 'error.codemirror_missing': '\u00A1CodeMirror no est\u00E1 disponible! Aseg\u00FArate de haber cargado el archivo js de CodeMirror; sin \u00E9l el c\u00F3digo se edita en un textarea normal.',\n 'error.summernote_missing': '\u00A1Summernote no est\u00E1 disponible! Aseg\u00FArate de haber cargado jQuery y el archivo js de Summernote.',\n};\n\n"],
5
+ "mappings": "MASA,IAAIA,EAAa,OAAO,WAExB,GAAI,CAACA,GAAc,OAAOA,EAAW,KAAQ,WACzC,MAAM,IAAI,MAAM,wHAC0B,ECM9CC,EAAW,QAAQ,GAAK,CACpB,YAAa,QACb,gBAAiB,mBACjB,eAAgB,iBAChB,mBAAoB,eACpB,oBAAqB,mBACrB,iBAAkB,cAClB,mBAAoB,UACpB,oBAAqB,WACrB,oBAAqB,gCACrB,WAAY,QACZ,gBAAiB,mBACjB,iBAAkB,wGAClB,eAAgB,UAChB,gBAAiB,WACjB,kBAAmB,aACnB,kBAAmB;AAAA,0CACnB,mBAAoB,eACpB,oBAAqB,yCACrB,mBAAoB,oCACpB,kBAAmB,cACnB,qBAAsB,iBACtB,sBAAuB,kBACvB,wBAAyB,oBACzB,mBAAoB,eACpB,cAAe,gCACf,oBAAqB,sCACrB,oBAAqB,mBACrB,uBAAwB;AAAA,8BACxB,oBAAqB;AAAA,8BACrB,uBAAwB;AAAA,0BACxB,uBAAwB;AAAA,8BACxB,mBAAoB,6BACpB,eAAgB,eAChB,cAAe,kBACf,cAAe,SACf,aAAc,QACd,WAAY,KACZ,gBAAiB,SACjB,eAAgB,SAChB,iBAAkB,OAClB,oBAAqB,UACrB,kBAAmB,QACnB,qBAAsB,WACtB,qBAAsB,aACtB,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2BAA4B,kBAC5B,wBAAyB,SACzB,8BAA+B,iBAC/B,8BAA+B,kBAC/B,6BAA8B,sBAC9B,iCAAkC,wBAClC,+BAAgC,0BAChC,mBAAoB,QACpB,uBAAwB,qBACxB,wBAAyB,gBACzB,yBAA0B,mBAC1B,yBAA0B,SAC1B,yBAA0B,kBAC1B,wBAAyB,kBACzB,yBAA0B,eAC1B,4BAA6B,yBAC7B,4BAA6B,gBAC7B,6BAA8B,gBAC9B,qBAAsB,UACtB,qBAAsB,WACtB,sBAAuB,iBACvB,wBAAyB,cACzB,sBAAuB,cACvB,iBAAkB,SAClB,mBAAoB,UACpB,oBAAqB,QACrB,kBAAmB,YACnB,qBAAsB,UACtB,yBAA0B,kIAC1B,0BAA2B,8FAC3B,oBAAqB,qEACrB,0BAA2B,2EAC3B,4BAA6B,iHAC7B,wBAAyB,6FACzB,yBAA0B,mGAC1B,uBAAwB,4CACxB,0BAA2B,+EAC3B,2BAA4B,0JAC5B,2BAA4B,2GAChC",
6
6
  "names": ["GridEditor", "GridEditor"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/js/register.js", "../../src/js/dom.js", "../../src/js/plugins/grideditor.accordion.js"],
4
- "sourcesContent": ["/**\n * What a plugin's or a locale's classic script imports in place of the\n * editor: the GridEditor the page already loaded.\n *\n * The build points `import { GridEditor } from '../grideditor.js'` here for\n * the classic scripts, so each registers on the editor the page has rather\n * than bringing its own. Loaded before the editor there is nothing to\n * register on, and saying so is better than a TypeError three calls later.\n */\nvar GridEditor = window.GridEditor;\n\nif (!GridEditor || typeof GridEditor.get !== 'function') {\n throw new Error('grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, ' +\n 'its locales and grideditor.jquery.js');\n}\n\nexport { GridEditor };\nexport default GridEditor;\n", "/**\n * The DOM, the way grid-editor uses it.\n *\n * Small helpers over the browser's own API, for the core and the shipped\n * plugins. Not a public API: a plugin of a host's own is free to write its\n * DOM code however it likes, and this file makes no promise to it.\n *\n * Stateless on purpose. The build puts a copy of this file in each plugin's\n * classic script, so anything kept here would be kept once per copy; a\n * module that needs to remember something about a node keeps its own\n * WeakMap.\n */\n\n/** Every element under `root` matching `selector`, as an array. */\nexport function all(root, selector) {\n return root ? Array.prototype.slice.call(root.querySelectorAll(selector)) : [];\n}\n\n/** The first element under `root` matching `selector`, or null. */\nexport function one(root, selector) {\n return root ? root.querySelector(selector) : null;\n}\n\n/** `root` itself when it matches, then every element under it that does. */\nexport function selfAndAll(root, selector) {\n if (!root) { return []; }\n\n var found = all(root, selector);\n if (root.nodeType === 1 && root.matches(selector)) { found.unshift(root); }\n return found;\n}\n\n/** The element children of `node`, those matching `selector` if one is given. */\nexport function children(node, selector) {\n if (!node) { return []; }\n\n return Array.prototype.filter.call(node.children, function(each) {\n return !selector || each.matches(selector);\n });\n}\n\n/** The first element child matching `selector`, or null. */\nexport function child(node, selector) {\n return children(node, selector)[0] || null;\n}\n\n/** The nearest ancestor-or-self matching `selector` below `stopAt`, or null. */\nexport function closest(node, selector, stopAt) {\n var found = node && node.nodeType === 1 ? node.closest(selector) : null;\n\n if (found && stopAt && found !== stopAt && !stopAt.contains(found)) { return null; }\n return found;\n}\n\n/** Whether `node` is an element matching `selector`. */\nexport function is(node, selector) {\n return !!node && node.nodeType === 1 && node.matches(selector);\n}\n\n/** Whether `node` is in the document. */\nexport function attached(node) {\n return !!node && document.documentElement.contains(node);\n}\n\n/** The element siblings after `node` that match `selector`. */\nexport function nextAll(node, selector) {\n var found = [];\n\n for (var next = node.nextElementSibling; next; next = next.nextElementSibling) {\n if (!selector || next.matches(selector)) { found.push(next); }\n }\n return found;\n}\n\n/** The ancestors of `node` up to, and not including, `stop`, nearest first. */\nexport function parentsUntil(node, stop) {\n var found = [];\n\n for (var parent = node.parentElement; parent && parent !== stop; parent = parent.parentElement) {\n found.push(parent);\n }\n return found;\n}\n\n/**\n * The nodes the html parses into, detached. Parsed the way innerHTML parses,\n * so a <script> in it never runs, here or once it is in the page.\n */\nexport function parse(html) {\n var template = document.createElement('template');\n template.innerHTML = html;\n return Array.prototype.slice.call(template.content.childNodes);\n}\n\n/** The one element the html is, detached. */\nexport function create(html) {\n var nodes = parse(html.trim());\n\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].nodeType === 1) { return nodes[i]; }\n }\n return null;\n}\n\n/** An element of `tag`, with `attributes` and `text`. */\nexport function element(tag, attributes, text) {\n var node = document.createElement(tag);\n\n Object.keys(attributes || {}).forEach(function(name) {\n var value = attributes[name];\n if (value !== null && value !== undefined && value !== false) { node.setAttribute(name, value); }\n });\n if (text !== undefined && text !== null) { node.textContent = text; }\n\n return node;\n}\n\n/** Replace what `node` holds with `html`. A <script> in it does not run. */\nexport function setHtml(node, html) {\n node.innerHTML = html === undefined || html === null ? '' : String(html);\n return node;\n}\n\n/** Add one or several space separated classes. */\nexport function addClass(node, names) {\n split(names).forEach(function(name) { node.classList.add(name); });\n return node;\n}\n\nexport function removeClass(node, names) {\n split(names).forEach(function(name) { node.classList.remove(name); });\n return node;\n}\n\n/** Each class on, or off, or flipped when `on` is not given. */\nexport function toggleClass(node, names, state) {\n split(names).forEach(function(name) {\n if (state === undefined) {\n node.classList.toggle(name);\n } else {\n node.classList.toggle(name, !!state);\n }\n });\n return node;\n}\n\nexport function hasClass(node, name) {\n return !!node && node.nodeType === 1 && node.classList.contains(name);\n}\n\nfunction split(names) {\n return String(names || '').split(/\\s+/).filter(Boolean);\n}\n\n/** Take the class attribute off when there is nothing left in it. */\nexport function dropEmptyClass(node) {\n if (!node.getAttribute('class')) { node.removeAttribute('class'); }\n return node;\n}\n\n/** Take the style attribute off when there is nothing left in it. */\nexport function dropEmptyStyle(node) {\n if (!node.getAttribute('style')) { node.removeAttribute('style'); }\n return node;\n}\n\n/** Set attributes; a null or undefined value takes the attribute off. */\nexport function attr(node, attributes) {\n Object.keys(attributes).forEach(function(name) {\n var value = attributes[name];\n\n if (value === null || value === undefined) {\n node.removeAttribute(name);\n } else {\n node.setAttribute(name, value);\n }\n });\n return node;\n}\n\n/**\n * Inline styles, by css property name. A number is pixels for the properties\n * that take a length, as jQuery had it; an empty string takes one off.\n */\nexport function css(node, styles) {\n Object.keys(styles).forEach(function(property) {\n var value = styles[property];\n\n if (typeof value === 'number' && !UNITLESS[property]) { value = value + 'px'; }\n node.style.setProperty(property, value === null || value === undefined ? '' : String(value));\n });\n return node;\n}\n\nvar UNITLESS = { opacity: true, 'z-index': true, 'flex-grow': true, 'flex-shrink': true, order: true };\n\n/** What an element of this tag shows as when nothing hides it. */\nvar defaultDisplays = {};\n\nfunction defaultDisplay(node) {\n var tag = node.nodeName;\n\n if (!defaultDisplays[tag]) {\n var probe = document.body.appendChild(document.createElement(tag));\n defaultDisplays[tag] = getComputedStyle(probe).display;\n probe.remove();\n if (defaultDisplays[tag] === 'none') { defaultDisplays[tag] = 'block'; }\n }\n return defaultDisplays[tag];\n}\n\n/** Show a node: its inline display:none off, and a display of its own if a stylesheet hides it. */\nexport function show(node) {\n node.style.removeProperty('display');\n if (getComputedStyle(node).display === 'none') { node.style.display = defaultDisplay(node); }\n return node;\n}\n\nexport function hide(node) {\n node.style.display = 'none';\n return node;\n}\n\n/** Show or hide; flip when `on` is not given. */\nexport function toggle(node, state) {\n if (state === undefined) { state = !visible(node); }\n return state ? show(node) : hide(node);\n}\n\n/** Whether a node takes up room: what jQuery's :visible meant. */\nexport function visible(node) {\n return !!(node.offsetWidth || node.offsetHeight || node.getClientRects().length);\n}\n\n/** The border box's width, fractions included. */\nexport function outerWidth(node) {\n return node.getBoundingClientRect().width;\n}\n\nexport function outerHeight(node) {\n return node.getBoundingClientRect().height;\n}\n\n/** The content box's height, which is what jQuery's height() gave. */\nexport function contentHeight(node) {\n var style = getComputedStyle(node);\n return node.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);\n}\n\n/** Where a node is on the page, not in the window. */\nexport function offset(node) {\n var box = node.getBoundingClientRect();\n return { top: box.top + window.pageYOffset, left: box.left + window.pageXOffset };\n}\n\n/** Its index among its parent's element children, those matching `selector` if given. */\nexport function indexIn(node, selector) {\n return children(node.parentElement, selector).indexOf(node);\n}\n\n/** Put `node` right after `reference`. */\nexport function insertAfter(node, reference) {\n reference.parentNode.insertBefore(node, reference.nextSibling);\n return node;\n}\n\n/** Replace `node` with what it holds. */\nexport function unwrap(node) {\n var parent = node.parentNode;\n\n while (node.firstChild) { parent.insertBefore(node.firstChild, node); }\n node.remove();\n}\n\n/** Put `node` inside `wrapper`, where `node` was. */\nexport function wrap(node, wrapper) {\n node.parentNode.insertBefore(wrapper, node);\n wrapper.appendChild(node);\n return wrapper;\n}\n\n/**\n * Listen on `root` for `types` (space separated) on descendants that match\n * `selector`, with `this` the matched element, as jQuery's delegated\n * handlers had it. Hands back the listener, for removeEventListener; a\n * signal in `options` removes it too.\n */\nexport function delegate(root, types, selector, handler, options) {\n var listener = function(event) {\n var match = closest(event.target, selector, root);\n if (match && root.contains(match)) { return handler.call(match, event); }\n return undefined;\n };\n\n split(types).forEach(function(type) { root.addEventListener(type, listener, options); });\n return listener;\n}\n\n/** Listen for several space separated event types with one handler. */\nexport function on(target, types, handler, options) {\n split(types).forEach(function(type) { target.addEventListener(type, handler, options); });\n return handler;\n}\n\nexport function off(target, types, handler, options) {\n split(types).forEach(function(type) { target.removeEventListener(type, handler, options); });\n}\n\n/** A mouse event of `type` sent to `node`, the way a pointer would. */\nexport function fire(node, type) {\n node.dispatchEvent(new MouseEvent(type, { bubbles: type !== 'mouseenter' && type !== 'mouseleave' }));\n}\n\n/* ------------------------------------------------------------------\n * Taking a node away, visibly.\n *\n * The durations are the ones 6.x had through jQuery: 400 ms unless the\n * caller says otherwise. `done` runs once the node is out of sight, which is\n * when the caller removes it; a node that is already out of sight is done at\n * once, on the next task, as jQuery had it.\n * ------------------------------------------------------------------ */\n\nvar DEFAULT_DURATION = 400;\n\nfunction animateAway(node, frames, duration, done) {\n duration = duration === undefined ? DEFAULT_DURATION : duration;\n\n var finish = function() {\n hide(node);\n if (done) { done(); }\n };\n\n if (!visible(node) || !node.animate || duration <= 0) {\n window.setTimeout(finish, 0);\n return;\n }\n\n var animation = node.animate(frames(getComputedStyle(node)), {\n duration: duration,\n easing: 'ease-in-out',\n });\n var called = false;\n var once = function() {\n if (called) { return; }\n called = true;\n finish();\n };\n\n animation.onfinish = once;\n animation.oncancel = once;\n}\n\n/** Fold a node up to nothing, then hide it. */\nexport function slideUp(node, duration, done) {\n if (typeof duration === 'function') {\n done = duration;\n duration = undefined;\n }\n\n node.style.overflow = 'hidden';\n animateAway(node, function(style) {\n return [\n {\n height: style.height,\n paddingTop: style.paddingTop,\n paddingBottom: style.paddingBottom,\n marginTop: style.marginTop,\n marginBottom: style.marginBottom,\n },\n { height: '0px', paddingTop: '0px', paddingBottom: '0px', marginTop: '0px', marginBottom: '0px' },\n ];\n }, duration, function() {\n node.style.removeProperty('overflow');\n if (done) { done(); }\n });\n}\n\n/** Fade a node out, then hide it. */\nexport function fadeOut(node, duration, done) {\n animateAway(node, function(style) {\n return [{ opacity: style.opacity }, { opacity: 0 }];\n }, duration, done);\n}\n\n/** Fade and fold a node, in height and, with `width`, sideways too, then hide it. */\nexport function shrinkAway(node, duration, done, width) {\n node.style.overflow = 'hidden';\n animateAway(node, function(style) {\n var from = { opacity: style.opacity, height: style.height };\n var to = { opacity: 0, height: '0px' };\n\n if (width) {\n from.width = style.width;\n to.width = '0px';\n }\n return [from, to];\n }, duration, function() {\n node.style.removeProperty('overflow');\n if (done) { done(); }\n });\n}\n", "/**\n * Accordions for grid-editor.\n *\n * A container plugin: load this file after the editor and the toolbar offers\n * an accordion. What it can ask the editor for is the handle its factory is\n * called with, described in docs/plugins.md.\n *\n * <script src=\"dist/grideditor.min.js\"></script>\n * <script src=\"dist/plugins/grideditor.accordion.min.js\"></script>\n */\nimport { GridEditor } from '../grideditor.js';\nimport * as dom from '../dom.js';\n\nObject.assign(GridEditor.locales.en, {\n 'container.add_accordion': 'Accordion',\n 'container.add_accordion_item': 'Add item',\n 'container.accordion_label': 'Item {number}',\n 'confirm.delete_accordion_item': 'Delete this item and everything in it?',\n});\n\nGridEditor.containers.accordion = function(ge) {\n\n // The buttons whose clicks the editor answers itself, bound once each\n var answered = new WeakSet();\n\n function collapseOf(item) {\n return dom.child(item, '.accordion-collapse');\n }\n\n function staysOpen(container, ignore) {\n var items = dom.all(container, ':scope > .accordion > .accordion-item > .accordion-collapse');\n\n if (ignore) {\n var ignored = collapseOf(ignore);\n items = items.filter(function(collapse) { return collapse !== ignored; });\n }\n\n return items.length > 0 && !items.filter(function(collapse) {\n return collapse.hasAttribute('data-bs-parent');\n }).length;\n }\n\n function addAccordionItemTo(container, options) {\n options = options || {};\n\n var accordion = dom.child(container, '.accordion');\n var id = ge.containerId('acc-item');\n var number = dom.children(accordion, '.accordion-item').length + 1;\n var open = options.open === undefined ? number === 1 : !!options.open;\n var stayOpen = options.stay_open === undefined ? staysOpen(container) : !!options.stay_open;\n\n var item = accordion.appendChild(dom.element('div', { 'class': 'accordion-item ge-accordion-item' }));\n\n var header = item.appendChild(dom.element('h2', { 'class': 'accordion-header' }));\n var button = header.appendChild(dom.element('button', {\n 'class': 'accordion-button',\n type: 'button',\n 'data-bs-toggle': 'collapse',\n 'data-bs-target': '#' + id,\n 'aria-expanded': open ? 'true' : 'false',\n }));\n dom.toggleClass(button, 'collapsed', !open);\n button.appendChild(dom.element('span', { 'class': 'ge-pane-label' },\n options.label || ge.t('container.accordion_label', { number: number })));\n\n var collapse = item.appendChild(dom.element('div', {\n 'class': 'accordion-collapse collapse',\n id: id,\n 'data-ge-open': open ? 'true' : 'false',\n }));\n dom.toggleClass(collapse, 'show', open);\n\n if (!stayOpen) { collapse.setAttribute('data-bs-parent', '#' + accordion.getAttribute('id')); }\n\n var body = collapse.appendChild(dom.element('div', { 'class': 'accordion-body' }));\n body.appendChild(ge.defaultRegion());\n return body;\n }\n\n function toggleAccordionItem(container, item) {\n var collapse = collapseOf(item);\n var opening = collapse.getAttribute('data-ge-open') !== 'true';\n\n if (opening && !staysOpen(container)) {\n dom.all(container, ':scope > .accordion > .accordion-item').forEach(function(other) {\n if (other !== item) { setAccordionItemOpen(other, false); }\n });\n }\n\n setAccordionItemOpen(item, opening);\n }\n\n function setAccordionItemOpen(item, open) {\n var collapse = collapseOf(item);\n if (collapse) {\n collapse.setAttribute('data-ge-open', open ? 'true' : 'false');\n dom.toggleClass(collapse, 'show', open);\n }\n\n dom.all(item, ':scope > .accordion-header .accordion-button').forEach(function(button) {\n dom.toggleClass(button, 'collapsed', !open);\n button.setAttribute('aria-expanded', open ? 'true' : 'false');\n });\n }\n\n function reparentAccordionItem(container, item) {\n var accordion = item.closest('.accordion');\n var collapse = collapseOf(item);\n if (!collapse) { return; }\n\n // The item that just arrived still carries the parent it had\n // where it came from, so it is not asked what this accordion does\n if (staysOpen(container, item)) {\n collapse.removeAttribute('data-bs-parent');\n } else {\n collapse.setAttribute('data-bs-parent', '#' + accordion.getAttribute('id'));\n }\n }\n\n return {\n labelKey: 'container.add_accordion',\n\n // Items sort within their accordion and into any other one\n onSortable: function(sortable) {\n sortable(dom.all(ge.canvas, '.ge-container-accordion > .accordion'), {\n draggable: '.ge-accordion-item',\n group: 'accordion',\n });\n },\n addPaneKey: 'container.add_accordion_item',\n paneKind: 'accordion-item',\n\n create: function(options) {\n var container = dom.element('div', { 'data-ge-container': 'accordion' });\n var labels = options.labels || [];\n var count = options.items || labels.length || 2;\n\n container.appendChild(dom.element('div', { 'class': 'accordion', id: ge.containerId('accordion') }));\n\n for (var i = 0; i < count; i++) {\n addAccordionItemTo(container, {\n label: labels[i],\n open: i === 0,\n stay_open: options.stay_open,\n });\n }\n\n return container;\n },\n\n addPane: addAccordionItemTo,\n\n mark: function(container) {\n dom.all(container, ':scope > .accordion > .accordion-item').forEach(function(item) {\n dom.addClass(item, 'ge-accordion-item');\n var collapse = collapseOf(item);\n\n // What the author wanted, before Bootstrap's own\n // toggles get a chance to change it while editing.\n // Every item is shown while editing (the stylesheet\n // does that), so this is the only record of it.\n if (collapse && !collapse.hasAttribute('data-ge-open')) {\n collapse.setAttribute('data-ge-open', dom.hasClass(collapse, 'show') ? 'true' : 'false');\n }\n\n var button = dom.one(item, ':scope > .accordion-header .accordion-button');\n\n if (button) {\n // Bootstrap's collapse stays out of it, and the editor\n // answers the click itself\n ge.suspendToggles(button);\n ge.makeLabelEditable(ge.labelIn(button));\n\n if (!answered.has(button)) {\n answered.add(button);\n button.addEventListener('click', function(e) {\n if (ge.labelIn(button).getAttribute('contenteditable') === 'true') { return; }\n\n e.preventDefault();\n toggleAccordionItem(container, item);\n });\n }\n }\n\n if (dom.child(item, '.ge-tools-drawer')) { return; }\n\n ge.createPaneControls(item, 'accordion-item', ge.settings.accordion_tools,\n ge.t('confirm.delete_accordion_item'), function(removed) {\n dom.slideUp(item, 200, removed);\n });\n });\n },\n\n unmark: function(container) {\n ge.resumeToggles(container);\n\n // What the canvas was showing is what the page ships\n dom.all(container, ':scope > .accordion > .accordion-item').forEach(function(item) {\n var collapse = collapseOf(item);\n setAccordionItemOpen(item, !!collapse && collapse.getAttribute('data-ge-open') === 'true');\n });\n\n dom.all(container, '.ge-accordion-item').forEach(function(item) {\n dom.removeClass(item, 'ge-accordion-item');\n });\n ge.unwrapLabels(container);\n },\n\n afterPaneMove: function(container, item) {\n reparentAccordionItem(container, item);\n },\n };\n};\n"],
5
- "mappings": "MASA,IAAIA,EAAa,OAAO,WAExB,GAAI,CAACA,GAAc,OAAOA,EAAW,KAAQ,WACzC,MAAM,IAAI,MAAM,wHAC0B,ECCvC,SAASC,EAAIC,EAAMC,EAAU,CAChC,OAAOD,EAAO,MAAM,UAAU,MAAM,KAAKA,EAAK,iBAAiBC,CAAQ,CAAC,EAAI,CAAC,CACjF,CAGO,SAASC,EAAIF,EAAMC,EAAU,CAChC,OAAOD,EAAOA,EAAK,cAAcC,CAAQ,EAAI,IACjD,CAYO,SAASE,EAASC,EAAMC,EAAU,CACrC,OAAKD,EAEE,MAA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D,EAAM,kBAAkB,GAEtCH,EAAG,mBAAmBG,EAAM,iBAAkBH,EAAG,SAAS,gBACtDA,EAAG,EAAE,+BAA+B,EAAG,SAASsC,EAAS,CACjDC,EAAQpC,EAAM,IAAKmC,CAAO,CAClC,CAAC,CACT,CAAC,CACL,EAEA,OAAQ,SAAShC,EAAW,CACxBN,EAAG,cAAcM,CAAS,EAGtBG,EAAIH,EAAW,uCAAuC,EAAE,QAAQ,SAASH,EAAM,CAC/E,IAAIQ,EAAWT,EAAWC,CAAI,EAC9ByB,EAAqBzB,EAAM,CAAC,CAACQ,GAAYA,EAAS,aAAa,cAAc,IAAM,MAAM,CAC7F,CAAC,EAEGF,EAAIH,EAAW,oBAAoB,EAAE,QAAQ,SAASH,EAAM,CACxDqC,EAAYrC,EAAM,mBAAmB,CAC7C,CAAC,EACDH,EAAG,aAAaM,CAAS,CAC7B,EAEA,cAAe,SAASA,EAAWH,EAAM,CACrC0B,EAAsBvB,EAAWH,CAAI,CACzC,CACJ,CACJ",
4
+ "sourcesContent": ["/**\n * What a plugin's or a locale's classic script imports in place of the\n * editor: the GridEditor the page already loaded.\n *\n * The build points `import { GridEditor } from '../grideditor.js'` here for\n * the classic scripts, so each registers on the editor the page has rather\n * than bringing its own. Loaded before the editor there is nothing to\n * register on, and saying so is better than a TypeError three calls later.\n */\nvar GridEditor = window.GridEditor;\n\nif (!GridEditor || typeof GridEditor.get !== 'function') {\n throw new Error('grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, ' +\n 'its locales and grideditor.jquery.js');\n}\n\nexport { GridEditor };\nexport default GridEditor;\n", "/**\n * The DOM, the way grid-editor uses it.\n *\n * Small helpers over the browser's own API, for the core and the shipped\n * plugins. Not a public API: a plugin of a host's own is free to write its\n * DOM code however it likes, and this file makes no promise to it.\n *\n * Stateless on purpose. The build puts a copy of this file in each plugin's\n * classic script, so anything kept here would be kept once per copy; a\n * module that needs to remember something about a node keeps its own\n * WeakMap.\n */\n\n/** Every element under `root` matching `selector`, as an array. */\nexport function all(root, selector) {\n return root ? Array.prototype.slice.call(root.querySelectorAll(selector)) : [];\n}\n\n/** The first element under `root` matching `selector`, or null. */\nexport function one(root, selector) {\n return root ? root.querySelector(selector) : null;\n}\n\n/** `root` itself when it matches, then every element under it that does. */\nexport function selfAndAll(root, selector) {\n if (!root) { return []; }\n\n var found = all(root, selector);\n if (root.nodeType === 1 && root.matches(selector)) { found.unshift(root); }\n return found;\n}\n\n/** The element children of `node`, those matching `selector` if one is given. */\nexport function children(node, selector) {\n if (!node) { return []; }\n\n return Array.prototype.filter.call(node.children, function(each) {\n return !selector || each.matches(selector);\n });\n}\n\n/** The first element child matching `selector`, or null. */\nexport function child(node, selector) {\n return children(node, selector)[0] || null;\n}\n\n/** The nearest ancestor-or-self matching `selector` below `stopAt`, or null. */\nexport function closest(node, selector, stopAt) {\n var found = node && node.nodeType === 1 ? node.closest(selector) : null;\n\n if (found && stopAt && found !== stopAt && !stopAt.contains(found)) { return null; }\n return found;\n}\n\n/** Whether `node` is an element matching `selector`. */\nexport function is(node, selector) {\n return !!node && node.nodeType === 1 && node.matches(selector);\n}\n\n/** Whether `node` is in the document. */\nexport function attached(node) {\n return !!node && document.documentElement.contains(node);\n}\n\n/** The element siblings after `node` that match `selector`. */\nexport function nextAll(node, selector) {\n var found = [];\n\n for (var next = node.nextElementSibling; next; next = next.nextElementSibling) {\n if (!selector || next.matches(selector)) { found.push(next); }\n }\n return found;\n}\n\n/** The ancestors of `node` up to, and not including, `stop`, nearest first. */\nexport function parentsUntil(node, stop) {\n var found = [];\n\n for (var parent = node.parentElement; parent && parent !== stop; parent = parent.parentElement) {\n found.push(parent);\n }\n return found;\n}\n\n/**\n * The nodes the html parses into, detached. Parsed the way innerHTML parses,\n * so a <script> in it never runs, here or once it is in the page.\n */\nexport function parse(html) {\n var template = document.createElement('template');\n template.innerHTML = html;\n return Array.prototype.slice.call(template.content.childNodes);\n}\n\n/** The one element the html is, detached. */\nexport function create(html) {\n var nodes = parse(html.trim());\n\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].nodeType === 1) { return nodes[i]; }\n }\n return null;\n}\n\n/** An element of `tag`, with `attributes` and `text`. */\nexport function element(tag, attributes, text) {\n var node = document.createElement(tag);\n\n Object.keys(attributes || {}).forEach(function(name) {\n var value = attributes[name];\n if (value !== null && value !== undefined && value !== false) { node.setAttribute(name, value); }\n });\n if (text !== undefined && text !== null) { node.textContent = text; }\n\n return node;\n}\n\n/** Replace what `node` holds with `html`. A <script> in it does not run. */\nexport function setHtml(node, html) {\n node.innerHTML = html === undefined || html === null ? '' : String(html);\n return node;\n}\n\n/** Add one or several space separated classes. */\nexport function addClass(node, names) {\n split(names).forEach(function(name) { node.classList.add(name); });\n return node;\n}\n\nexport function removeClass(node, names) {\n split(names).forEach(function(name) { node.classList.remove(name); });\n return node;\n}\n\n/** Each class on, or off, or flipped when `on` is not given. */\nexport function toggleClass(node, names, state) {\n split(names).forEach(function(name) {\n if (state === undefined) {\n node.classList.toggle(name);\n } else {\n node.classList.toggle(name, !!state);\n }\n });\n return node;\n}\n\nexport function hasClass(node, name) {\n return !!node && node.nodeType === 1 && node.classList.contains(name);\n}\n\nfunction split(names) {\n return String(names || '').split(/\\s+/).filter(Boolean);\n}\n\n/** Take the class attribute off when there is nothing left in it. */\nexport function dropEmptyClass(node) {\n if (!node.getAttribute('class')) { node.removeAttribute('class'); }\n return node;\n}\n\n/** Take the style attribute off when there is nothing left in it. */\nexport function dropEmptyStyle(node) {\n if (!node.getAttribute('style')) { node.removeAttribute('style'); }\n return node;\n}\n\n/** Set attributes; a null or undefined value takes the attribute off. */\nexport function attr(node, attributes) {\n Object.keys(attributes).forEach(function(name) {\n var value = attributes[name];\n\n if (value === null || value === undefined) {\n node.removeAttribute(name);\n } else {\n node.setAttribute(name, value);\n }\n });\n return node;\n}\n\n/**\n * Inline styles, by css property name. A number is pixels for the properties\n * that take a length, as jQuery had it; an empty string takes one off.\n */\nexport function css(node, styles) {\n Object.keys(styles).forEach(function(property) {\n var value = styles[property];\n\n if (typeof value === 'number' && !UNITLESS[property]) { value = value + 'px'; }\n node.style.setProperty(property, value === null || value === undefined ? '' : String(value));\n });\n return node;\n}\n\nvar UNITLESS = { opacity: true, 'z-index': true, 'flex-grow': true, 'flex-shrink': true, order: true };\n\n/** What an element of this tag shows as when nothing hides it. */\nvar defaultDisplays = {};\n\nfunction defaultDisplay(node) {\n var tag = node.nodeName;\n\n if (!defaultDisplays[tag]) {\n var probe = document.body.appendChild(document.createElement(tag));\n defaultDisplays[tag] = getComputedStyle(probe).display;\n probe.remove();\n if (defaultDisplays[tag] === 'none') { defaultDisplays[tag] = 'block'; }\n }\n return defaultDisplays[tag];\n}\n\n/** Show a node: its inline display:none off, and a display of its own if a stylesheet hides it. */\nexport function show(node) {\n node.style.removeProperty('display');\n if (getComputedStyle(node).display === 'none') { node.style.display = defaultDisplay(node); }\n return node;\n}\n\nexport function hide(node) {\n node.style.display = 'none';\n return node;\n}\n\n/** Show or hide; flip when `on` is not given. */\nexport function toggle(node, state) {\n if (state === undefined) { state = !visible(node); }\n return state ? show(node) : hide(node);\n}\n\n/** Whether a node takes up room: what jQuery's :visible meant. */\nexport function visible(node) {\n return !!(node.offsetWidth || node.offsetHeight || node.getClientRects().length);\n}\n\n/** The border box's width, fractions included. */\nexport function outerWidth(node) {\n return node.getBoundingClientRect().width;\n}\n\nexport function outerHeight(node) {\n return node.getBoundingClientRect().height;\n}\n\n/** The content box's height, which is what jQuery's height() gave. */\nexport function contentHeight(node) {\n var style = getComputedStyle(node);\n return node.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);\n}\n\n/** Where a node is on the page, not in the window. */\nexport function offset(node) {\n var box = node.getBoundingClientRect();\n return { top: box.top + window.pageYOffset, left: box.left + window.pageXOffset };\n}\n\n/** Its index among its parent's element children, those matching `selector` if given. */\nexport function indexIn(node, selector) {\n return children(node.parentElement, selector).indexOf(node);\n}\n\n/** Put `node` right after `reference`. */\nexport function insertAfter(node, reference) {\n reference.parentNode.insertBefore(node, reference.nextSibling);\n return node;\n}\n\n/** Replace `node` with what it holds. */\nexport function unwrap(node) {\n var parent = node.parentNode;\n\n while (node.firstChild) { parent.insertBefore(node.firstChild, node); }\n node.remove();\n}\n\n/** Put `node` inside `wrapper`, where `node` was. */\nexport function wrap(node, wrapper) {\n node.parentNode.insertBefore(wrapper, node);\n wrapper.appendChild(node);\n return wrapper;\n}\n\n/**\n * Listen on `root` for `types` (space separated) on descendants that match\n * `selector`, with `this` the matched element, as jQuery's delegated\n * handlers had it. Hands back the listener, for removeEventListener; a\n * signal in `options` removes it too.\n */\nexport function delegate(root, types, selector, handler, options) {\n var listener = function(event) {\n var match = closest(event.target, selector, root);\n if (match && root.contains(match)) { return handler.call(match, event); }\n return undefined;\n };\n\n split(types).forEach(function(type) { root.addEventListener(type, listener, options); });\n return listener;\n}\n\n/** Listen for several space separated event types with one handler. */\nexport function on(target, types, handler, options) {\n split(types).forEach(function(type) { target.addEventListener(type, handler, options); });\n return handler;\n}\n\nexport function off(target, types, handler, options) {\n split(types).forEach(function(type) { target.removeEventListener(type, handler, options); });\n}\n\n/** A mouse event of `type` sent to `node`, the way a pointer would. */\nexport function fire(node, type) {\n node.dispatchEvent(new MouseEvent(type, { bubbles: type !== 'mouseenter' && type !== 'mouseleave' }));\n}\n\n/* ------------------------------------------------------------------\n * Taking a node away, visibly.\n *\n * The durations are jQuery's: 400 ms unless the caller says otherwise. `done` runs once the node is out of sight, which is\n * when the caller removes it; a node that is already out of sight is done at\n * once, on the next task, as jQuery had it.\n * ------------------------------------------------------------------ */\n\nvar DEFAULT_DURATION = 400;\n\nfunction animateAway(node, frames, duration, done) {\n duration = duration === undefined ? DEFAULT_DURATION : duration;\n\n var finish = function() {\n hide(node);\n if (done) { done(); }\n };\n\n if (!visible(node) || !node.animate || duration <= 0) {\n window.setTimeout(finish, 0);\n return;\n }\n\n var animation = node.animate(frames(getComputedStyle(node)), {\n duration: duration,\n easing: 'ease-in-out',\n });\n var called = false;\n var once = function() {\n if (called) { return; }\n called = true;\n finish();\n };\n\n animation.onfinish = once;\n animation.oncancel = once;\n}\n\n/** Fold a node up to nothing, then hide it. */\nexport function slideUp(node, duration, done) {\n if (typeof duration === 'function') {\n done = duration;\n duration = undefined;\n }\n\n node.style.overflow = 'hidden';\n animateAway(node, function(style) {\n return [\n {\n height: style.height,\n paddingTop: style.paddingTop,\n paddingBottom: style.paddingBottom,\n marginTop: style.marginTop,\n marginBottom: style.marginBottom,\n },\n { height: '0px', paddingTop: '0px', paddingBottom: '0px', marginTop: '0px', marginBottom: '0px' },\n ];\n }, duration, function() {\n node.style.removeProperty('overflow');\n if (done) { done(); }\n });\n}\n\n/** Fade a node out, then hide it. */\nexport function fadeOut(node, duration, done) {\n animateAway(node, function(style) {\n return [{ opacity: style.opacity }, { opacity: 0 }];\n }, duration, done);\n}\n\n/** Fade and fold a node, in height and, with `width`, sideways too, then hide it. */\nexport function shrinkAway(node, duration, done, width) {\n node.style.overflow = 'hidden';\n animateAway(node, function(style) {\n var from = { opacity: style.opacity, height: style.height };\n var to = { opacity: 0, height: '0px' };\n\n if (width) {\n from.width = style.width;\n to.width = '0px';\n }\n return [from, to];\n }, duration, function() {\n node.style.removeProperty('overflow');\n if (done) { done(); }\n });\n}\n", "/**\n * Accordions for grid-editor.\n *\n * A container plugin: load this file after the editor and the toolbar offers\n * an accordion. What it can ask the editor for is the handle its factory is\n * called with, described in docs/plugins.md.\n *\n * <script src=\"dist/grideditor.min.js\"></script>\n * <script src=\"dist/plugins/grideditor.accordion.min.js\"></script>\n */\nimport { GridEditor } from '../grideditor.js';\nimport * as dom from '../dom.js';\n\nObject.assign(GridEditor.locales.en, {\n 'container.add_accordion': 'Accordion',\n 'container.add_accordion_item': 'Add item',\n 'container.accordion_label': 'Item {number}',\n 'confirm.delete_accordion_item': 'Delete this item and everything in it?',\n});\n\nGridEditor.containers.accordion = function(ge) {\n\n // The buttons whose clicks the editor answers itself, bound once each\n var answered = new WeakSet();\n\n function collapseOf(item) {\n return dom.child(item, '.accordion-collapse');\n }\n\n function staysOpen(container, ignore) {\n var items = dom.all(container, ':scope > .accordion > .accordion-item > .accordion-collapse');\n\n if (ignore) {\n var ignored = collapseOf(ignore);\n items = items.filter(function(collapse) { return collapse !== ignored; });\n }\n\n return items.length > 0 && !items.filter(function(collapse) {\n return collapse.hasAttribute('data-bs-parent');\n }).length;\n }\n\n function addAccordionItemTo(container, options) {\n options = options || {};\n\n var accordion = dom.child(container, '.accordion');\n var id = ge.containerId('acc-item');\n var number = dom.children(accordion, '.accordion-item').length + 1;\n var open = options.open === undefined ? number === 1 : !!options.open;\n var stayOpen = options.stay_open === undefined ? staysOpen(container) : !!options.stay_open;\n\n var item = accordion.appendChild(dom.element('div', { 'class': 'accordion-item ge-accordion-item' }));\n\n var header = item.appendChild(dom.element('h2', { 'class': 'accordion-header' }));\n var button = header.appendChild(dom.element('button', {\n 'class': 'accordion-button',\n type: 'button',\n 'data-bs-toggle': 'collapse',\n 'data-bs-target': '#' + id,\n 'aria-expanded': open ? 'true' : 'false',\n }));\n dom.toggleClass(button, 'collapsed', !open);\n button.appendChild(dom.element('span', { 'class': 'ge-pane-label' },\n options.label || ge.t('container.accordion_label', { number: number })));\n\n var collapse = item.appendChild(dom.element('div', {\n 'class': 'accordion-collapse collapse',\n id: id,\n 'data-ge-open': open ? 'true' : 'false',\n }));\n dom.toggleClass(collapse, 'show', open);\n\n if (!stayOpen) { collapse.setAttribute('data-bs-parent', '#' + accordion.getAttribute('id')); }\n\n var body = collapse.appendChild(dom.element('div', { 'class': 'accordion-body' }));\n body.appendChild(ge.defaultRegion());\n return body;\n }\n\n function toggleAccordionItem(container, item) {\n var collapse = collapseOf(item);\n var opening = collapse.getAttribute('data-ge-open') !== 'true';\n\n if (opening && !staysOpen(container)) {\n dom.all(container, ':scope > .accordion > .accordion-item').forEach(function(other) {\n if (other !== item) { setAccordionItemOpen(other, false); }\n });\n }\n\n setAccordionItemOpen(item, opening);\n }\n\n function setAccordionItemOpen(item, open) {\n var collapse = collapseOf(item);\n if (collapse) {\n collapse.setAttribute('data-ge-open', open ? 'true' : 'false');\n dom.toggleClass(collapse, 'show', open);\n }\n\n dom.all(item, ':scope > .accordion-header .accordion-button').forEach(function(button) {\n dom.toggleClass(button, 'collapsed', !open);\n button.setAttribute('aria-expanded', open ? 'true' : 'false');\n });\n }\n\n function reparentAccordionItem(container, item) {\n var accordion = item.closest('.accordion');\n var collapse = collapseOf(item);\n if (!collapse) { return; }\n\n // The item that just arrived still carries the parent it had\n // where it came from, so it is not asked what this accordion does\n if (staysOpen(container, item)) {\n collapse.removeAttribute('data-bs-parent');\n } else {\n collapse.setAttribute('data-bs-parent', '#' + accordion.getAttribute('id'));\n }\n }\n\n return {\n labelKey: 'container.add_accordion',\n\n // Items sort within their accordion and into any other one\n onSortable: function(sortable) {\n sortable(dom.all(ge.canvas, '.ge-container-accordion > .accordion'), {\n draggable: '.ge-accordion-item',\n group: 'accordion',\n });\n },\n addPaneKey: 'container.add_accordion_item',\n paneKind: 'accordion-item',\n\n create: function(options) {\n var container = dom.element('div', { 'data-ge-container': 'accordion' });\n var labels = options.labels || [];\n var count = options.items || labels.length || 2;\n\n container.appendChild(dom.element('div', { 'class': 'accordion', id: ge.containerId('accordion') }));\n\n for (var i = 0; i < count; i++) {\n addAccordionItemTo(container, {\n label: labels[i],\n open: i === 0,\n stay_open: options.stay_open,\n });\n }\n\n return container;\n },\n\n addPane: addAccordionItemTo,\n\n mark: function(container) {\n dom.all(container, ':scope > .accordion > .accordion-item').forEach(function(item) {\n dom.addClass(item, 'ge-accordion-item');\n var collapse = collapseOf(item);\n\n // What the author wanted, before Bootstrap's own\n // toggles get a chance to change it while editing.\n // Every item is shown while editing (the stylesheet\n // does that), so this is the only record of it.\n if (collapse && !collapse.hasAttribute('data-ge-open')) {\n collapse.setAttribute('data-ge-open', dom.hasClass(collapse, 'show') ? 'true' : 'false');\n }\n\n var button = dom.one(item, ':scope > .accordion-header .accordion-button');\n\n if (button) {\n // Bootstrap's collapse stays out of it, and the editor\n // answers the click itself\n ge.suspendToggles(button);\n ge.makeLabelEditable(ge.labelIn(button));\n\n if (!answered.has(button)) {\n answered.add(button);\n button.addEventListener('click', function(e) {\n if (ge.labelIn(button).getAttribute('contenteditable') === 'true') { return; }\n\n e.preventDefault();\n toggleAccordionItem(container, item);\n });\n }\n }\n\n if (dom.child(item, '.ge-tools-drawer')) { return; }\n\n ge.createPaneControls(item, 'accordion-item', ge.settings.accordion_tools,\n ge.t('confirm.delete_accordion_item'), function(removed) {\n dom.slideUp(item, 200, removed);\n });\n });\n },\n\n unmark: function(container) {\n ge.resumeToggles(container);\n\n // What the canvas was showing is what the page ships\n dom.all(container, ':scope > .accordion > .accordion-item').forEach(function(item) {\n var collapse = collapseOf(item);\n setAccordionItemOpen(item, !!collapse && collapse.getAttribute('data-ge-open') === 'true');\n });\n\n dom.all(container, '.ge-accordion-item').forEach(function(item) {\n dom.removeClass(item, 'ge-accordion-item');\n });\n ge.unwrapLabels(container);\n },\n\n afterPaneMove: function(container, item) {\n reparentAccordionItem(container, item);\n },\n };\n};\n"],
5
+ "mappings": "MASA,IAAIA,EAAa,OAAO,WAExB,GAAI,CAACA,GAAc,OAAOA,EAAW,KAAQ,WACzC,MAAM,IAAI,MAAM,wHAC0B,ECCvC,SAASC,EAAIC,EAAMC,EAAU,CAChC,OAAOD,EAAO,MAAM,UAAU,MAAM,KAAKA,EAAK,iBAAiBC,CAAQ,CAAC,EAAI,CAAC,CACjF,CAGO,SAASC,EAAIF,EAAMC,EAAU,CAChC,OAAOD,EAAOA,EAAK,cAAcC,CAAQ,EAAI,IACjD,CAYO,SAASE,EAASC,EAAMC,EAAU,CACrC,OAAKD,EAEE,MAAM,UAAU,OAAO,KAAKA,EAAK,SAAU,SAASE,EAAM,CAC7D,MAAO,CAACD,GAAYC,EAAK,QAAQD,CAAQ,CAC7C,CAAC,EAJmB,CAAC,CAKzB,CAGO,SAASE,EAAMH,EAAM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O,CAClC,CAAC,CACT,CAAC,CACL,EAEA,OAAQ,SAAShC,EAAW,CACxBN,EAAG,cAAcM,CAAS,EAGtBG,EAAIH,EAAW,uCAAuC,EAAE,QAAQ,SAASH,EAAM,CAC/E,IAAIQ,EAAWT,EAAWC,CAAI,EAC9ByB,EAAqBzB,EAAM,CAAC,CAACQ,GAAYA,EAAS,aAAa,cAAc,IAAM,MAAM,CAC7F,CAAC,EAEGF,EAAIH,EAAW,oBAAoB,EAAE,QAAQ,SAASH,EAAM,CACxDqC,EAAYrC,EAAM,mBAAmB,CAC7C,CAAC,EACDH,EAAG,aAAaM,CAAS,CAC7B,EAEA,cAAe,SAASA,EAAWH,EAAM,CACrC0B,EAAsBvB,EAAWH,CAAI,CACzC,CACJ,CACJ",
6
6
  "names": ["GridEditor", "all", "root", "selector", "one", "children", "node", "selector", "each", "child", "element", "tag", "attributes", "text", "node", "name", "value", "addClass", "node", "names", "split", "name", "removeClass", "toggleClass", "state", "hasClass", "hide", "node", "visible", "node", "DEFAULT_DURATION", "animateAway", "node", "frames", "duration", "done", "finish", "hide", "visible", "animation", "called", "once", "slideUp", "style", "GridEditor", "ge", "answered", "collapseOf", "item", "child", "staysOpen", "container", "ignore", "items", "all", "ignored", "collapse", "addAccordionItemTo", "options", "accordion", "id", "number", "children", "open", "stayOpen", "element", "header", "button", "toggleClass", "body", "toggleAccordionItem", "opening", "other", "setAccordionItemOpen", "reparentAccordionItem", "sortable", "labels", "count", "i", "addClass", "hasClass", "one", "e", "removed", "slideUp", "removeClass"]
7
7
  }
@@ -1,55 +1,28 @@
1
1
  // src/js/plugins/grideditor.alignment.js
2
2
  import { GridEditor } from "../grideditor.esm.js";
3
3
  Object.assign(GridEditor.locales.en, {
4
- "utility.justify_content": "Justify columns",
5
- "utility.align_items": "Align columns",
6
4
  "utility.align_self": "Align self"
7
5
  });
8
6
  var FLEX = {
9
7
  start: "flex-start",
10
8
  end: "flex-end",
11
9
  center: "center",
12
- between: "space-between",
13
- around: "space-around",
14
- evenly: "space-evenly",
15
10
  baseline: "baseline",
16
11
  stretch: "stretch",
17
12
  auto: "auto"
18
13
  };
19
- function family(definition) {
20
- return Object.assign({
21
- prefix: definition.name,
22
- preview: function(value) {
23
- var styles = {};
24
- styles[definition.name] = value === null ? definition.none : FLEX[value];
25
- return styles;
26
- }
27
- }, definition);
28
- }
29
14
  GridEditor.utilities.alignment = function() {
30
15
  return {
31
- families: [
32
- family({
33
- name: "justify-content",
34
- labelKey: "utility.justify_content",
35
- values: ["start", "center", "end", "between", "around", "evenly"],
36
- appliesTo: ["row"],
37
- none: "normal"
38
- }),
39
- family({
40
- name: "align-items",
41
- labelKey: "utility.align_items",
42
- values: ["start", "center", "end", "baseline", "stretch"],
43
- appliesTo: ["row"],
44
- none: "normal"
45
- }),
46
- family({
47
- name: "align-self",
48
- labelKey: "utility.align_self",
49
- values: ["auto", "start", "center", "end", "baseline", "stretch"],
50
- appliesTo: ["column"],
51
- none: "auto"
52
- })
53
- ]
16
+ families: [{
17
+ name: "align-self",
18
+ prefix: "align-self",
19
+ labelKey: "utility.align_self",
20
+ values: ["auto", "start", "center", "end", "baseline", "stretch"],
21
+ appliesTo: ["column"],
22
+ /** Without a class, auto: what the row's align-items says. */
23
+ preview: function(value) {
24
+ return { "align-self": value === null ? "auto" : FLEX[value] };
25
+ }
26
+ }]
54
27
  };
55
28
  };