@themarioga/grid-editor 7.2.0 → 7.3.0
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.
- package/CHANGELOG.md +41 -0
- package/README.md +83 -14
- package/UPGRADING.md +31 -0
- package/dist/grideditor.bundle.min.js +2 -2
- package/dist/grideditor.css +102 -0
- package/dist/grideditor.d.ts +18 -0
- package/dist/grideditor.esm.js +291 -31
- package/dist/grideditor.js +291 -31
- package/dist/grideditor.min.css +1 -1
- package/dist/grideditor.min.css.map +1 -1
- package/dist/grideditor.min.js +1 -1
- package/dist/grideditor.min.js.map +3 -3
- package/dist/locales/grideditor.es.esm.js +67 -0
- package/dist/locales/grideditor.es.js +67 -0
- package/dist/locales/grideditor.es.min.js +1 -1
- package/dist/locales/grideditor.es.min.js.map +2 -2
- package/dist/plugins/grideditor.float.esm.js +10 -1
- package/dist/plugins/grideditor.float.js +8 -2
- package/dist/plugins/grideditor.float.min.js +1 -1
- package/dist/plugins/grideditor.float.min.js.map +4 -4
- package/dist/plugins/grideditor.spacing.esm.js +12 -3
- package/dist/plugins/grideditor.spacing.js +9 -3
- package/dist/plugins/grideditor.spacing.min.js +1 -1
- package/dist/plugins/grideditor.spacing.min.js.map +4 -4
- package/dist/plugins/grideditor.style.esm.js +1593 -0
- package/dist/plugins/grideditor.style.js +1592 -0
- package/dist/plugins/grideditor.style.min.js +2 -0
- package/dist/plugins/grideditor.style.min.js.map +7 -0
- package/dist/plugins/grideditor.textalign.esm.js +10 -1
- package/dist/plugins/grideditor.textalign.js +8 -2
- package/dist/plugins/grideditor.textalign.min.js +1 -1
- package/dist/plugins/grideditor.textalign.min.js.map +4 -4
- package/dist/plugins/grideditor.visibility.esm.js +12 -3
- package/dist/plugins/grideditor.visibility.js +9 -3
- package/dist/plugins/grideditor.visibility.min.js +1 -1
- package/dist/plugins/grideditor.visibility.min.js.map +4 -4
- package/docs/locale-keys.md +86 -7
- package/docs/plugins.md +49 -5
- package/example/index.html +14 -0
- package/example/style.html +151 -0
- package/example/utilities.html +15 -11
- package/package.json +1 -1
- package/src/js/grideditor.js +365 -27
- package/src/js/locales/grideditor.es.js +67 -0
- package/src/js/plugins/grideditor.float.js +8 -33
- package/src/js/plugins/grideditor.spacing.js +8 -273
- package/src/js/plugins/grideditor.style.js +179 -0
- package/src/js/plugins/grideditor.textalign.js +8 -39
- package/src/js/plugins/grideditor.visibility.js +8 -147
- package/src/js/style/accordion.js +157 -0
- package/src/js/style/catalog.js +76 -0
- package/src/js/style/custom.js +84 -0
- package/src/js/style/fields.js +382 -0
- package/src/js/style/float.js +46 -0
- package/src/js/style/options.js +75 -0
- package/src/js/style/sections.js +271 -0
- package/src/js/style/spacing.js +286 -0
- package/src/js/style/textalign.js +52 -0
- package/src/js/style/visibility.js +160 -0
- package/src/less/grideditor.less +111 -0
- package/types/grideditor.d.ts +18 -0
|
@@ -143,6 +143,73 @@ GridEditor.locales.es = {
|
|
|
143
143
|
"utility.float_end": "Fin",
|
|
144
144
|
"utility.float_none": "Ninguno",
|
|
145
145
|
"utility.spacing_gutter": "El relleno lateral de una columna es su espaciado: cambiarlo cambia el espacio entre columnas",
|
|
146
|
+
"style.section_title": "Estilo",
|
|
147
|
+
"style.dialog_title": "Estilo: {kind}",
|
|
148
|
+
"style.section_size": "Tama\xF1o",
|
|
149
|
+
"style.section_spacing": "Espaciado",
|
|
150
|
+
"style.section_border": "Borde",
|
|
151
|
+
"style.section_background": "Fondo",
|
|
152
|
+
"style.section_text": "Texto",
|
|
153
|
+
"style.section_typography": "Tipograf\xEDa",
|
|
154
|
+
"style.section_display": "Visualizaci\xF3n",
|
|
155
|
+
"style.section_position": "Posici\xF3n",
|
|
156
|
+
"style.section_custom": "CSS libre",
|
|
157
|
+
"style.all_sizes": "Se aplica a todos los tama\xF1os",
|
|
158
|
+
"style.overridden": "La clase {class} tiene prioridad sobre este valor",
|
|
159
|
+
"style.invalid": "Esta propiedad no acepta ese valor",
|
|
160
|
+
"style.catalog": "Clases de Bootstrap",
|
|
161
|
+
"style.shadow_x": "X",
|
|
162
|
+
"style.shadow_y": "Y",
|
|
163
|
+
"style.shadow_blur": "Desenfoque",
|
|
164
|
+
"style.shadow_spread": "Extensi\xF3n",
|
|
165
|
+
"style.shadow_color": "Color",
|
|
166
|
+
"style.shadow_inset": "Interior",
|
|
167
|
+
"style.shadow_text_mode": "Editar como texto",
|
|
168
|
+
"style.prop_width": "Ancho",
|
|
169
|
+
"style.prop_height": "Alto",
|
|
170
|
+
"style.prop_min_width": "Ancho m\xEDnimo",
|
|
171
|
+
"style.prop_min_height": "Alto m\xEDnimo",
|
|
172
|
+
"style.prop_max_width": "Ancho m\xE1ximo",
|
|
173
|
+
"style.prop_max_height": "Alto m\xE1ximo",
|
|
174
|
+
"style.prop_margin_top": "Margen superior",
|
|
175
|
+
"style.prop_margin_right": "Margen derecho",
|
|
176
|
+
"style.prop_margin_bottom": "Margen inferior",
|
|
177
|
+
"style.prop_margin_left": "Margen izquierdo",
|
|
178
|
+
"style.prop_padding_top": "Relleno superior",
|
|
179
|
+
"style.prop_padding_right": "Relleno derecho",
|
|
180
|
+
"style.prop_padding_bottom": "Relleno inferior",
|
|
181
|
+
"style.prop_padding_left": "Relleno izquierdo",
|
|
182
|
+
"style.prop_border_width": "Grosor del borde",
|
|
183
|
+
"style.prop_border_style": "Estilo del borde",
|
|
184
|
+
"style.prop_border_color": "Color del borde",
|
|
185
|
+
"style.prop_border_radius": "Radio del borde",
|
|
186
|
+
"style.prop_box_shadow": "Sombra",
|
|
187
|
+
"style.prop_background_color": "Color de fondo",
|
|
188
|
+
"style.prop_background_image": "Imagen de fondo",
|
|
189
|
+
"style.prop_background_size": "Tama\xF1o del fondo",
|
|
190
|
+
"style.prop_background_position": "Posici\xF3n del fondo",
|
|
191
|
+
"style.prop_background_repeat": "Repetici\xF3n del fondo",
|
|
192
|
+
"style.prop_color": "Color",
|
|
193
|
+
"style.prop_font_size": "Tama\xF1o de letra",
|
|
194
|
+
"style.prop_text_align": "Alineaci\xF3n",
|
|
195
|
+
"style.prop_text_shadow": "Sombra del texto",
|
|
196
|
+
"style.prop_font_family": "Fuente",
|
|
197
|
+
"style.prop_font_weight": "Grosor de letra",
|
|
198
|
+
"style.prop_font_style": "Estilo de letra",
|
|
199
|
+
"style.prop_line_height": "Interlineado",
|
|
200
|
+
"style.prop_letter_spacing": "Espaciado entre letras",
|
|
201
|
+
"style.prop_text_transform": "May\xFAsculas",
|
|
202
|
+
"style.prop_text_decoration": "Decoraci\xF3n",
|
|
203
|
+
"style.prop_display": "Display",
|
|
204
|
+
"style.prop_opacity": "Opacidad",
|
|
205
|
+
"style.prop_overflow": "Desbordamiento",
|
|
206
|
+
"style.prop_visibility": "Visibilidad",
|
|
207
|
+
"style.prop_position": "Posici\xF3n",
|
|
208
|
+
"style.prop_top": "Arriba",
|
|
209
|
+
"style.prop_right": "Derecha",
|
|
210
|
+
"style.prop_bottom": "Abajo",
|
|
211
|
+
"style.prop_left": "Izquierda",
|
|
212
|
+
"style.prop_z_index": "Z-index",
|
|
146
213
|
"error.sortable_missing": "\xA1SortableJS no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de Sortable; sin \xE9l no se puede arrastrar.",
|
|
147
214
|
"warning.setting_removed": "El ajuste {setting} se elimin\xF3 en la 4.0. Usa {replacement} en su lugar.",
|
|
148
215
|
"warning.already_editing": "Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\xF3.",
|
|
@@ -149,6 +149,73 @@
|
|
|
149
149
|
"utility.float_end": "Fin",
|
|
150
150
|
"utility.float_none": "Ninguno",
|
|
151
151
|
"utility.spacing_gutter": "El relleno lateral de una columna es su espaciado: cambiarlo cambia el espacio entre columnas",
|
|
152
|
+
"style.section_title": "Estilo",
|
|
153
|
+
"style.dialog_title": "Estilo: {kind}",
|
|
154
|
+
"style.section_size": "Tama\xF1o",
|
|
155
|
+
"style.section_spacing": "Espaciado",
|
|
156
|
+
"style.section_border": "Borde",
|
|
157
|
+
"style.section_background": "Fondo",
|
|
158
|
+
"style.section_text": "Texto",
|
|
159
|
+
"style.section_typography": "Tipograf\xEDa",
|
|
160
|
+
"style.section_display": "Visualizaci\xF3n",
|
|
161
|
+
"style.section_position": "Posici\xF3n",
|
|
162
|
+
"style.section_custom": "CSS libre",
|
|
163
|
+
"style.all_sizes": "Se aplica a todos los tama\xF1os",
|
|
164
|
+
"style.overridden": "La clase {class} tiene prioridad sobre este valor",
|
|
165
|
+
"style.invalid": "Esta propiedad no acepta ese valor",
|
|
166
|
+
"style.catalog": "Clases de Bootstrap",
|
|
167
|
+
"style.shadow_x": "X",
|
|
168
|
+
"style.shadow_y": "Y",
|
|
169
|
+
"style.shadow_blur": "Desenfoque",
|
|
170
|
+
"style.shadow_spread": "Extensi\xF3n",
|
|
171
|
+
"style.shadow_color": "Color",
|
|
172
|
+
"style.shadow_inset": "Interior",
|
|
173
|
+
"style.shadow_text_mode": "Editar como texto",
|
|
174
|
+
"style.prop_width": "Ancho",
|
|
175
|
+
"style.prop_height": "Alto",
|
|
176
|
+
"style.prop_min_width": "Ancho m\xEDnimo",
|
|
177
|
+
"style.prop_min_height": "Alto m\xEDnimo",
|
|
178
|
+
"style.prop_max_width": "Ancho m\xE1ximo",
|
|
179
|
+
"style.prop_max_height": "Alto m\xE1ximo",
|
|
180
|
+
"style.prop_margin_top": "Margen superior",
|
|
181
|
+
"style.prop_margin_right": "Margen derecho",
|
|
182
|
+
"style.prop_margin_bottom": "Margen inferior",
|
|
183
|
+
"style.prop_margin_left": "Margen izquierdo",
|
|
184
|
+
"style.prop_padding_top": "Relleno superior",
|
|
185
|
+
"style.prop_padding_right": "Relleno derecho",
|
|
186
|
+
"style.prop_padding_bottom": "Relleno inferior",
|
|
187
|
+
"style.prop_padding_left": "Relleno izquierdo",
|
|
188
|
+
"style.prop_border_width": "Grosor del borde",
|
|
189
|
+
"style.prop_border_style": "Estilo del borde",
|
|
190
|
+
"style.prop_border_color": "Color del borde",
|
|
191
|
+
"style.prop_border_radius": "Radio del borde",
|
|
192
|
+
"style.prop_box_shadow": "Sombra",
|
|
193
|
+
"style.prop_background_color": "Color de fondo",
|
|
194
|
+
"style.prop_background_image": "Imagen de fondo",
|
|
195
|
+
"style.prop_background_size": "Tama\xF1o del fondo",
|
|
196
|
+
"style.prop_background_position": "Posici\xF3n del fondo",
|
|
197
|
+
"style.prop_background_repeat": "Repetici\xF3n del fondo",
|
|
198
|
+
"style.prop_color": "Color",
|
|
199
|
+
"style.prop_font_size": "Tama\xF1o de letra",
|
|
200
|
+
"style.prop_text_align": "Alineaci\xF3n",
|
|
201
|
+
"style.prop_text_shadow": "Sombra del texto",
|
|
202
|
+
"style.prop_font_family": "Fuente",
|
|
203
|
+
"style.prop_font_weight": "Grosor de letra",
|
|
204
|
+
"style.prop_font_style": "Estilo de letra",
|
|
205
|
+
"style.prop_line_height": "Interlineado",
|
|
206
|
+
"style.prop_letter_spacing": "Espaciado entre letras",
|
|
207
|
+
"style.prop_text_transform": "May\xFAsculas",
|
|
208
|
+
"style.prop_text_decoration": "Decoraci\xF3n",
|
|
209
|
+
"style.prop_display": "Display",
|
|
210
|
+
"style.prop_opacity": "Opacidad",
|
|
211
|
+
"style.prop_overflow": "Desbordamiento",
|
|
212
|
+
"style.prop_visibility": "Visibilidad",
|
|
213
|
+
"style.prop_position": "Posici\xF3n",
|
|
214
|
+
"style.prop_top": "Arriba",
|
|
215
|
+
"style.prop_right": "Derecha",
|
|
216
|
+
"style.prop_bottom": "Abajo",
|
|
217
|
+
"style.prop_left": "Izquierda",
|
|
218
|
+
"style.prop_z_index": "Z-index",
|
|
152
219
|
"error.sortable_missing": "\xA1SortableJS no est\xE1 disponible! Aseg\xFArate de haber cargado el archivo js de Sortable; sin \xE9l no se puede arrastrar.",
|
|
153
220
|
"warning.setting_removed": "El ajuste {setting} se elimin\xF3 en la 4.0. Usa {replacement} en su lugar.",
|
|
154
221
|
"warning.already_editing": "Este elemento ya tiene un editor: se devuelve ese, con las opciones con las que se cre\xF3.",
|
|
@@ -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","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.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."};})();
|
|
@@ -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 '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": "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",
|
|
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": "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",
|
|
6
6
|
"names": ["GridEditor", "GridEditor"]
|
|
7
7
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// src/js/plugins/grideditor.float.js
|
|
2
|
+
import { GridEditor as GridEditor2 } from "../grideditor.esm.js";
|
|
3
|
+
|
|
4
|
+
// src/js/style/float.js
|
|
2
5
|
import { GridEditor } from "../grideditor.esm.js";
|
|
3
6
|
Object.assign(GridEditor.locales.en, {
|
|
4
7
|
"utility.float": "Float",
|
|
@@ -7,7 +10,7 @@ Object.assign(GridEditor.locales.en, {
|
|
|
7
10
|
"utility.float_none": "None"
|
|
8
11
|
});
|
|
9
12
|
var CSS = { start: "left", end: "right", none: "none" };
|
|
10
|
-
|
|
13
|
+
function floatPart(ge) {
|
|
11
14
|
function label(value) {
|
|
12
15
|
if (value === "start") {
|
|
13
16
|
return ge.t("utility.float_start");
|
|
@@ -31,4 +34,10 @@ GridEditor.utilities.float = function(ge) {
|
|
|
31
34
|
}
|
|
32
35
|
}]
|
|
33
36
|
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// src/js/plugins/grideditor.float.js
|
|
40
|
+
GridEditor2.utilities.float = function(ge) {
|
|
41
|
+
ge.warn('the "float" plugin is deprecated and will be removed in 8.0: load grideditor.style.js');
|
|
42
|
+
return floatPart(ge);
|
|
34
43
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
throw new Error("grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, its locales and grideditor.jquery.js");
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
// src/js/
|
|
8
|
+
// src/js/style/float.js
|
|
9
9
|
Object.assign(GridEditor.locales.en, {
|
|
10
10
|
"utility.float": "Float",
|
|
11
11
|
"utility.float_start": "Start",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"utility.float_none": "None"
|
|
14
14
|
});
|
|
15
15
|
var CSS = { start: "left", end: "right", none: "none" };
|
|
16
|
-
|
|
16
|
+
function floatPart(ge) {
|
|
17
17
|
function label(value) {
|
|
18
18
|
if (value === "start") {
|
|
19
19
|
return ge.t("utility.float_start");
|
|
@@ -37,5 +37,11 @@
|
|
|
37
37
|
}
|
|
38
38
|
}]
|
|
39
39
|
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// src/js/plugins/grideditor.float.js
|
|
43
|
+
GridEditor.utilities.float = function(ge) {
|
|
44
|
+
ge.warn('the "float" plugin is deprecated and will be removed in 8.0: load grideditor.style.js');
|
|
45
|
+
return floatPart(ge);
|
|
40
46
|
};
|
|
41
47
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var i=window.GridEditor;if(!i||typeof i.get!="function")throw new Error("grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, its locales and grideditor.jquery.js");Object.assign(i.locales.en,{"utility.float":"Float","utility.float_start":"Start","utility.float_end":"End","utility.float_none":"None"});var
|
|
1
|
+
(()=>{var i=window.GridEditor;if(!i||typeof i.get!="function")throw new Error("grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, its locales and grideditor.jquery.js");Object.assign(i.locales.en,{"utility.float":"Float","utility.float_start":"Start","utility.float_end":"End","utility.float_none":"None"});var n={start:"left",end:"right",none:"none"};function o(t){function e(r){return r==="start"?t.t("utility.float_start"):r==="end"?t.t("utility.float_end"):t.t("utility.float_none")}return{families:[{name:"float",prefix:"float",values:["start","end","none"],appliesTo:["element"],labelKey:"utility.float",label:e,preview:function(r,l){return{float:r===null?t.bareStyle(l,"float","float"):n[r]}}}]}}i.utilities.float=function(t){return t.warn('the "float" plugin is deprecated and will be removed in 8.0: load grideditor.style.js'),o(t)};})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/js/register.js", "../../src/js/plugins/grideditor.float.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 *
|
|
5
|
-
"mappings": "MASA,IAAIA,EAAa,OAAO,WAExB,GAAI,CAACA,GAAc,OAAOA,EAAW,KAAQ,WACzC,MAAM,IAAI,MAAM,wHAC0B,
|
|
6
|
-
"names": ["GridEditor", "GridEditor", "CSS", "ge", "label", "value", "node"]
|
|
3
|
+
"sources": ["../../src/js/register.js", "../../src/js/style/float.js", "../../src/js/plugins/grideditor.float.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 * Float, a part of the style plugin: floating an element per breakpoint, with Bootstrap's\n * float-{breakpoint}-start, -end and -none classes.\n *\n * The part is what the float plugin was up to 7.2 - its families, and\n * whatever it did on the canvas - as a function of the handle.\n * grideditor.style.js puts it in its sections; the deprecated\n * grideditor.float.js still registers it on its own, as it always did.\n */\nimport { GridEditor } from '../grideditor.js';\n\nObject.assign(GridEditor.locales.en, {\n 'utility.float': 'Float',\n 'utility.float_start': 'Start',\n 'utility.float_end': 'End',\n 'utility.float_none': 'None',\n});\n\n/** Start and end are left and right: Bootstrap's css is left to right. */\nvar CSS = { start: 'left', end: 'right', none: 'none' };\n\nexport function floatPart(ge) {\n\n function label(value) {\n if (value === 'start') { return ge.t('utility.float_start'); }\n if (value === 'end') { return ge.t('utility.float_end'); }\n\n return ge.t('utility.float_none');\n }\n\n return {\n families: [{\n name: 'float',\n prefix: 'float',\n values: ['start', 'end', 'none'],\n appliesTo: ['element'],\n labelKey: 'utility.float',\n label: label,\n\n /** With no class applying here, whatever the host's css floats it as. */\n preview: function(value, node) {\n return { float: value === null ? ge.bareStyle(node, 'float', 'float') : CSS[value] };\n },\n }],\n };\n}\n", "/**\n * Floating elements for grid-editor.\n *\n * A utility plugin: load this file after the editor and after the elements\n * plugin, and an element can float to the start or the end of its content\n * area per breakpoint, with the text around it, using Bootstrap's\n * float-{breakpoint}-start, -end and -none classes. What it can ask the\n * editor for is the handle its factory is called with, described in\n * docs/plugins.md.\n *\n * <script src=\"dist/grideditor.min.js\"></script>\n * <script src=\"dist/plugins/grideditor.elements.min.js\"></script>\n * <script src=\"dist/plugins/grideditor.float.min.js\"></script>\n *\n * Elements only. A floated row or column stops being part of the grid, and a\n * container sits beside the content areas rather than in their text.\n *\n * Deprecated since 7.3, and gone in 8.0: grideditor.style.js carries this\n * plugin's families, and edits them in its own sections. This file is that\n * part on its own, as it was, and says so once per editor. Loaded beside\n * the style plugin, it stands down.\n */\nimport { GridEditor } from '../grideditor.js';\nimport { floatPart } from '../style/float.js';\n\nGridEditor.utilities.float = function(ge) {\n ge.warn('the \"float\" plugin is deprecated and will be removed in 8.0: load grideditor.style.js');\n return floatPart(ge);\n};\n"],
|
|
5
|
+
"mappings": "MASA,IAAIA,EAAa,OAAO,WAExB,GAAI,CAACA,GAAc,OAAOA,EAAW,KAAQ,WACzC,MAAM,IAAI,MAAM,wHAC0B,ECF9C,OAAO,OAAOC,EAAW,QAAQ,GAAI,CACjC,gBAAiB,QACjB,sBAAuB,QACvB,oBAAqB,MACrB,qBAAsB,MAC1B,CAAC,EAGD,IAAIC,EAAM,CAAE,MAAO,OAAQ,IAAK,QAAS,KAAM,MAAO,EAE/C,SAASC,EAAUC,EAAI,CAE1B,SAASC,EAAMC,EAAO,CAClB,OAAIA,IAAU,QAAkBF,EAAG,EAAE,qBAAqB,EACtDE,IAAU,MAAgBF,EAAG,EAAE,mBAAmB,EAE/CA,EAAG,EAAE,oBAAoB,CACpC,CAEA,MAAO,CACH,SAAU,CAAC,CACP,KAAM,QACN,OAAQ,QACR,OAAQ,CAAC,QAAS,MAAO,MAAM,EAC/B,UAAW,CAAC,SAAS,EACrB,SAAU,gBACV,MAAOC,EAGP,QAAS,SAASC,EAAOC,EAAM,CAC3B,MAAO,CAAE,MAAOD,IAAU,KAAOF,EAAG,UAAUG,EAAM,QAAS,OAAO,EAAIL,EAAII,CAAK,CAAE,CACvF,CACJ,CAAC,CACL,CACJ,CCpBAE,EAAW,UAAU,MAAQ,SAASC,EAAI,CACtC,OAAAA,EAAG,KAAK,uFAAuF,EACxFC,EAAUD,CAAE,CACvB",
|
|
6
|
+
"names": ["GridEditor", "GridEditor", "CSS", "floatPart", "ge", "label", "value", "node", "GridEditor", "ge", "floatPart"]
|
|
7
7
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// src/js/plugins/grideditor.spacing.js
|
|
2
|
+
import { GridEditor as GridEditor2 } from "../grideditor.esm.js";
|
|
3
|
+
|
|
4
|
+
// src/js/style/spacing.js
|
|
2
5
|
import { GridEditor } from "../grideditor.esm.js";
|
|
3
6
|
|
|
4
7
|
// src/js/dom.js
|
|
@@ -90,7 +93,7 @@ function visible(node) {
|
|
|
90
93
|
return !!(node.offsetWidth || node.offsetHeight || node.getClientRects().length);
|
|
91
94
|
}
|
|
92
95
|
|
|
93
|
-
// src/js/
|
|
96
|
+
// src/js/style/spacing.js
|
|
94
97
|
Object.assign(GridEditor.locales.en, {
|
|
95
98
|
"utility.padding": "Padding",
|
|
96
99
|
"utility.margin": "Margin",
|
|
@@ -120,8 +123,8 @@ var PROPERTIES = { p: "padding", m: "margin" };
|
|
|
120
123
|
function pattern(key) {
|
|
121
124
|
return new RegExp("^" + key + "[xytbse]?-(?:(?:sm|md|lg|xl|xxl)-)?(?:[0-5]|auto)$");
|
|
122
125
|
}
|
|
123
|
-
|
|
124
|
-
var options = Object.assign({ values: VALUES, scale: SCALE },
|
|
126
|
+
function spacingPart(ge, given) {
|
|
127
|
+
var options = Object.assign({ values: VALUES, scale: SCALE }, given);
|
|
125
128
|
var patterns = { p: pattern("p"), m: pattern("m") };
|
|
126
129
|
function applies(node, kind) {
|
|
127
130
|
return kind === "row" || kind === "column" || kind === "element" || is(node, "[data-ge-container]");
|
|
@@ -315,4 +318,10 @@ GridEditor.utilities.spacing = function(ge) {
|
|
|
315
318
|
},
|
|
316
319
|
onRefresh: mark
|
|
317
320
|
};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// src/js/plugins/grideditor.spacing.js
|
|
324
|
+
GridEditor2.utilities.spacing = function(ge) {
|
|
325
|
+
ge.warn('the "spacing" plugin is deprecated and will be removed in 8.0: load grideditor.style.js');
|
|
326
|
+
return spacingPart(ge, ge.settings.utilities.spacing);
|
|
318
327
|
};
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
return !!(node.offsetWidth || node.offsetHeight || node.getClientRects().length);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// src/js/
|
|
97
|
+
// src/js/style/spacing.js
|
|
98
98
|
Object.assign(GridEditor.locales.en, {
|
|
99
99
|
"utility.padding": "Padding",
|
|
100
100
|
"utility.margin": "Margin",
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
function pattern(key) {
|
|
125
125
|
return new RegExp("^" + key + "[xytbse]?-(?:(?:sm|md|lg|xl|xxl)-)?(?:[0-5]|auto)$");
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
var options = Object.assign({ values: VALUES, scale: SCALE },
|
|
127
|
+
function spacingPart(ge, given) {
|
|
128
|
+
var options = Object.assign({ values: VALUES, scale: SCALE }, given);
|
|
129
129
|
var patterns = { p: pattern("p"), m: pattern("m") };
|
|
130
130
|
function applies(node, kind) {
|
|
131
131
|
return kind === "row" || kind === "column" || kind === "element" || is(node, "[data-ge-container]");
|
|
@@ -319,5 +319,11 @@
|
|
|
319
319
|
},
|
|
320
320
|
onRefresh: mark
|
|
321
321
|
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// src/js/plugins/grideditor.spacing.js
|
|
325
|
+
GridEditor.utilities.spacing = function(ge) {
|
|
326
|
+
ge.warn('the "spacing" plugin is deprecated and will be removed in 8.0: load grideditor.style.js');
|
|
327
|
+
return spacingPart(ge, ge.settings.utilities.spacing);
|
|
322
328
|
};
|
|
323
329
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var
|
|
1
|
+
(()=>{var v=window.GridEditor;if(!v||typeof v.get!="function")throw new Error("grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, its locales and grideditor.jquery.js");function w(t,n){return t?Array.prototype.slice.call(t.querySelectorAll(n)):[]}function _(t,n){if(!t)return[];var l=w(t,n);return t.nodeType===1&&t.matches(n)&&l.unshift(t),l}function V(t,n){return t?Array.prototype.filter.call(t.children,function(l){return!n||l.matches(n)}):[]}function B(t,n){return V(t,n)[0]||null}function j(t,n){return!!t&&t.nodeType===1&&t.matches(n)}function d(t,n,l){var s=document.createElement(t);return Object.keys(n||{}).forEach(function(m){var c=n[m];c!=null&&c!==!1&&s.setAttribute(m,c)}),l!=null&&(s.textContent=l),s}function R(t,n){return!!t&&t.nodeType===1&&t.classList.contains(n)}function A(t,n){return Object.keys(n).forEach(function(l){var s=n[l];typeof s=="number"&&!X[l]&&(s=s+"px"),t.style.setProperty(l,s==null?"":String(s))}),t}var X={opacity:!0,"z-index":!0,"flex-grow":!0,"flex-shrink":!0,order:!0},x={};function z(t){var n=t.nodeName;if(!x[n]){var l=document.body.appendChild(document.createElement(n));x[n]=getComputedStyle(l).display,l.remove(),x[n]==="none"&&(x[n]="block")}return x[n]}function K(t){return t.style.removeProperty("display"),getComputedStyle(t).display==="none"&&(t.style.display=z(t)),t}function Y(t){return t.style.display="none",t}function P(t,n){return n===void 0&&(n=!$(t)),n?K(t):Y(t)}function $(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}Object.assign(v.locales.en,{"utility.padding":"Padding","utility.margin":"Margin","utility.side_all":"All sides","utility.side_x":"Left and right","utility.side_y":"Top and bottom","utility.side_t":"Top","utility.side_b":"Bottom","utility.side_s":"Start","utility.side_e":"End","utility.spacing_gutter":"A column's side padding is its gutter: changing it changes the gutter"});var y=["0","1","2","3","4","5"],Q=["0",".25rem",".5rem","1rem","1.5rem","3rem"],b=["","x","y","t","e","b","s"],Z={"":["top","right","bottom","left"],x:["left","right"],y:["top","bottom"],t:["top"],e:["right"],b:["bottom"],s:["left"]},N=["","sm","md","lg","xl","xxl"],C={p:"padding",m:"margin"};function H(t){return new RegExp("^"+t+"[xytbse]?-(?:(?:sm|md|lg|xl|xxl)-)?(?:[0-5]|auto)$")}function I(t,n){var l=Object.assign({values:y,scale:Q},n),s={p:H("p"),m:H("m")};function m(e,r){return r==="row"||r==="column"||r==="element"||j(e,"[data-ge-container]")}function c(e){return(e.getAttribute("class")||"").split(/\s+/)}function S(e,r){return c(e).some(function(a){return s[r].test(a)})}function D(e,r,a){for(var u=c(e),o=r.charAt(0)==="m"?y.concat(["auto"]):y,i=a;i>=0;i--)for(var f=0;f<o.length;f++){var p=r+(N[i]?"-"+N[i]:"")+"-"+o[f];if(u.indexOf(p)!==-1)return{tier:i,value:o[f]}}return null}function F(e,r){var a=e.getAttribute("class"),u,o={};return e.setAttribute("class",c(e).filter(function(i){return!s[r].test(i)}).join(" ")),u=getComputedStyle(e),["top","right","bottom","left"].forEach(function(i){o[i]=u.getPropertyValue(C[r]+"-"+i)}),a===null?e.removeAttribute("class"):e.setAttribute("class",a),o}function U(e,r,a){var u=t.breakpoints.indexOf(a),o={},i={},f=null;return b.forEach(function(p,g){var h=D(e,r+p,u);h&&Z[p].forEach(function(O){var E=o[O];(!E||h.tier>E.tier||h.tier===E.tier&&g>E.order)&&(o[O]={tier:h.tier,order:g,value:h.value})})}),["top","right","bottom","left"].forEach(function(p){var g=o[p];g?i[C[r]+"-"+p]=g.value==="auto"?"auto":l.scale[g.value]:(f=f||F(e,r),i[C[r]+"-"+p]=f[p])}),i}function G(e,r){var a=c(e).filter(function(o){return s[r].test(o)}),u=b.filter(function(o){return a.some(function(i){return i.indexOf(r+o+"-")===0})});return u.length?u[0]:""}function M(e){switch(e){case"x":return t.t("utility.side_x");case"y":return t.t("utility.side_y");case"t":return t.t("utility.side_t");case"b":return t.t("utility.side_b");case"s":return t.t("utility.side_s");case"e":return t.t("utility.side_e");default:return t.t("utility.side_all")}}function T(e,r,a){var u=d("div",{class:"ge-spacing-group","data-ge-spacing":r}),o=d("select",{class:"ge-spacing-side form-select form-select-sm"});u.appendChild(d("span",{class:"ge-utility-label"},a)),b.forEach(function(f){o.appendChild(d("option",{value:f},M(f)))});var i=t.utilityField(e,r+G(e,r));return o.value=i.getAttribute("data-ge-family").slice(1),o.addEventListener("change",function(){var f=t.utilityField(e,r+this.value);i.replaceWith(f),i=f}),u.appendChild(o),u.appendChild(i),u}var q=".row, .column, .ge-element, [data-ge-container]";function W(e){_(e,q).forEach(function(r){var a=B(r,".ge-tools-drawer");if(!(!a||!m(r,t.kindOf(r)))){if(S(r,"p")){var u=getComputedStyle(r);A(a,{"margin-top":"-"+u.paddingTop,"margin-left":"-"+u.paddingLeft,"margin-right":"-"+u.paddingRight,width:"calc(100% + "+u.paddingLeft+" + "+u.paddingRight+")"})}else A(a,{"margin-top":"","margin-left":"","margin-right":"",width:""});if(R(r,"column")){var o=c(r).some(function(i){return/^p[xse]?-/.test(i)&&s.p.test(i)});w(a,".ge-spacing-gutter").forEach(function(i){P(i,o)})}}})}function L(e,r){var a=e==="m"?y.concat(["auto"]):y,u=l.values.concat(e==="m"?["auto"]:[]);return b.map(function(o){return{name:e+o,prefix:e+o,values:a,appliesTo:["row","column","text","element","container"],labelKey:r,panel:!1,choices:function(){return a.filter(function(i){return u.indexOf(i)!==-1})}}})}return{families:L("p","utility.padding").concat(L("m","utility.margin")),panel:function(e,r){if(!m(e,r))return null;var a=d("div",{class:"ge-spacing"});return a.appendChild(T(e,"p",t.t("utility.padding"))),a.appendChild(T(e,"m",t.t("utility.margin"))),r==="column"&&a.appendChild(d("small",{class:"ge-spacing-gutter"},t.t("utility.spacing_gutter"))),a},preview:function(e,r,a){if(!m(e,r))return{};var u={};return["p","m"].forEach(function(o){S(e,o)&&Object.assign(u,U(e,o,a))}),u},onRefresh:W}}v.utilities.spacing=function(t){return t.warn('the "spacing" plugin is deprecated and will be removed in 8.0: load grideditor.style.js'),I(t,t.settings.utilities.spacing)};})();
|