@themarioga/grid-editor 8.0.0 → 8.2.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 +30 -0
- package/README.md +19 -2
- package/dist/grideditor.bundle.min.js +3 -3
- package/dist/grideditor.css +9 -0
- package/dist/grideditor.d.ts +18 -1
- package/dist/grideditor.esm.js +147 -32
- package/dist/grideditor.jquery.js +3 -1
- package/dist/grideditor.jquery.min.js +1 -1
- package/dist/grideditor.jquery.min.js.map +2 -2
- package/dist/grideditor.js +147 -32
- package/dist/grideditor.min.css +1 -1
- package/dist/grideditor.min.css.map +1 -1
- package/dist/grideditor.min.js +2 -2
- package/dist/grideditor.min.js.map +3 -3
- package/dist/locales/grideditor.es.esm.js +1 -0
- package/dist/locales/grideditor.es.js +1 -0
- package/dist/locales/grideditor.es.min.js +1 -1
- package/dist/locales/grideditor.es.min.js.map +2 -2
- package/dist/plugins/grideditor.inline-style.esm.js +9 -0
- package/dist/plugins/grideditor.inline-style.js +9 -0
- package/dist/plugins/grideditor.inline-style.min.js +3 -3
- package/dist/plugins/grideditor.inline-style.min.js.map +3 -3
- package/docs/events.md +7 -0
- package/docs/locale-keys.md +1 -0
- package/package.json +1 -1
- package/src/js/grideditor.jquery.js +2 -0
- package/src/js/grideditor.js +139 -27
- package/src/js/inline-style/fields.js +10 -0
- package/src/js/locales/grideditor.es.js +1 -0
- package/src/js/plugins/grideditor.inline-style.js +1 -0
- package/src/less/grideditor.less +10 -0
- package/types/grideditor.d.ts +18 -1
|
@@ -193,6 +193,7 @@ GridEditor.locales.es = {
|
|
|
193
193
|
"inline_style.shadow_color": "Color",
|
|
194
194
|
"inline_style.shadow_inset": "Interior",
|
|
195
195
|
"inline_style.shadow_text_mode": "Editar como texto",
|
|
196
|
+
"inline_style.shadow_builder_mode": "Editar con el constructor",
|
|
196
197
|
"inline_style.prop_width": "Ancho",
|
|
197
198
|
"inline_style.prop_height": "Alto",
|
|
198
199
|
"inline_style.prop_min_width": "Ancho m\xEDnimo",
|
|
@@ -199,6 +199,7 @@
|
|
|
199
199
|
"inline_style.shadow_color": "Color",
|
|
200
200
|
"inline_style.shadow_inset": "Interior",
|
|
201
201
|
"inline_style.shadow_text_mode": "Editar como texto",
|
|
202
|
+
"inline_style.shadow_builder_mode": "Editar con el constructor",
|
|
202
203
|
"inline_style.prop_width": "Ancho",
|
|
203
204
|
"inline_style.prop_height": "Alto",
|
|
204
205
|
"inline_style.prop_min_width": "Ancho m\xEDnimo",
|
|
@@ -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.section_general":"Id y 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","inline_style.section_title":"Estilo","inline_style.dialog_title":"Estilo: {kind}","inline_style.section_size":"Tama\xF1o","inline_style.section_spacing":"Espaciado","inline_style.section_border":"Borde","inline_style.section_background":"Fondo","inline_style.section_text":"Texto","inline_style.section_typography":"Tipograf\xEDa","inline_style.section_display":"Visualizaci\xF3n","inline_style.section_flex":"Flex","inline_style.section_position":"Posici\xF3n","inline_style.section_custom":"CSS libre","inline_style.all_sizes":"Se aplica a todos los tama\xF1os","inline_style.overridden":"La clase {class} tiene prioridad sobre este valor","inline_style.invalid":"Esta propiedad no acepta ese valor","inline_style.catalog":"Clases de Bootstrap","inline_style.shadow_x":"X","inline_style.shadow_y":"Y","inline_style.shadow_blur":"Desenfoque","inline_style.shadow_spread":"Extensi\xF3n","inline_style.shadow_color":"Color","inline_style.shadow_inset":"Interior","inline_style.shadow_text_mode":"Editar como texto","inline_style.prop_width":"Ancho","inline_style.prop_height":"Alto","inline_style.prop_min_width":"Ancho m\xEDnimo","inline_style.prop_min_height":"Alto m\xEDnimo","inline_style.prop_max_width":"Ancho m\xE1ximo","inline_style.prop_max_height":"Alto m\xE1ximo","inline_style.prop_margin_top":"Margen superior","inline_style.prop_margin_right":"Margen derecho","inline_style.prop_margin_bottom":"Margen inferior","inline_style.prop_margin_left":"Margen izquierdo","inline_style.prop_padding_top":"Relleno superior","inline_style.prop_padding_right":"Relleno derecho","inline_style.prop_padding_bottom":"Relleno inferior","inline_style.prop_padding_left":"Relleno izquierdo","inline_style.prop_border_width":"Grosor del borde","inline_style.prop_border_style":"Estilo del borde","inline_style.prop_border_color":"Color del borde","inline_style.prop_border_radius":"Radio del borde","inline_style.prop_box_shadow":"Sombra","inline_style.prop_background_color":"Color de fondo","inline_style.prop_background_image":"Imagen de fondo","inline_style.prop_background_size":"Tama\xF1o del fondo","inline_style.prop_background_position":"Posici\xF3n del fondo","inline_style.prop_background_repeat":"Repetici\xF3n del fondo","inline_style.prop_color":"Color","inline_style.prop_font_size":"Tama\xF1o de letra","inline_style.prop_text_align":"Alineaci\xF3n","inline_style.prop_text_shadow":"Sombra del texto","inline_style.prop_font_family":"Fuente","inline_style.prop_font_weight":"Grosor de letra","inline_style.prop_font_style":"Estilo de letra","inline_style.prop_line_height":"Interlineado","inline_style.prop_letter_spacing":"Espaciado entre letras","inline_style.prop_text_transform":"May\xFAsculas","inline_style.prop_text_decoration":"Decoraci\xF3n","inline_style.prop_display":"Display","inline_style.prop_opacity":"Opacidad","inline_style.prop_overflow":"Desbordamiento","inline_style.prop_visibility":"Visibilidad","inline_style.prop_position":"Posici\xF3n","inline_style.prop_top":"Arriba","inline_style.prop_right":"Derecha","inline_style.prop_bottom":"Abajo","inline_style.prop_left":"Izquierda","inline_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."};})();
|
|
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.section_general":"Id y 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","inline_style.section_title":"Estilo","inline_style.dialog_title":"Estilo: {kind}","inline_style.section_size":"Tama\xF1o","inline_style.section_spacing":"Espaciado","inline_style.section_border":"Borde","inline_style.section_background":"Fondo","inline_style.section_text":"Texto","inline_style.section_typography":"Tipograf\xEDa","inline_style.section_display":"Visualizaci\xF3n","inline_style.section_flex":"Flex","inline_style.section_position":"Posici\xF3n","inline_style.section_custom":"CSS libre","inline_style.all_sizes":"Se aplica a todos los tama\xF1os","inline_style.overridden":"La clase {class} tiene prioridad sobre este valor","inline_style.invalid":"Esta propiedad no acepta ese valor","inline_style.catalog":"Clases de Bootstrap","inline_style.shadow_x":"X","inline_style.shadow_y":"Y","inline_style.shadow_blur":"Desenfoque","inline_style.shadow_spread":"Extensi\xF3n","inline_style.shadow_color":"Color","inline_style.shadow_inset":"Interior","inline_style.shadow_text_mode":"Editar como texto","inline_style.shadow_builder_mode":"Editar con el constructor","inline_style.prop_width":"Ancho","inline_style.prop_height":"Alto","inline_style.prop_min_width":"Ancho m\xEDnimo","inline_style.prop_min_height":"Alto m\xEDnimo","inline_style.prop_max_width":"Ancho m\xE1ximo","inline_style.prop_max_height":"Alto m\xE1ximo","inline_style.prop_margin_top":"Margen superior","inline_style.prop_margin_right":"Margen derecho","inline_style.prop_margin_bottom":"Margen inferior","inline_style.prop_margin_left":"Margen izquierdo","inline_style.prop_padding_top":"Relleno superior","inline_style.prop_padding_right":"Relleno derecho","inline_style.prop_padding_bottom":"Relleno inferior","inline_style.prop_padding_left":"Relleno izquierdo","inline_style.prop_border_width":"Grosor del borde","inline_style.prop_border_style":"Estilo del borde","inline_style.prop_border_color":"Color del borde","inline_style.prop_border_radius":"Radio del borde","inline_style.prop_box_shadow":"Sombra","inline_style.prop_background_color":"Color de fondo","inline_style.prop_background_image":"Imagen de fondo","inline_style.prop_background_size":"Tama\xF1o del fondo","inline_style.prop_background_position":"Posici\xF3n del fondo","inline_style.prop_background_repeat":"Repetici\xF3n del fondo","inline_style.prop_color":"Color","inline_style.prop_font_size":"Tama\xF1o de letra","inline_style.prop_text_align":"Alineaci\xF3n","inline_style.prop_text_shadow":"Sombra del texto","inline_style.prop_font_family":"Fuente","inline_style.prop_font_weight":"Grosor de letra","inline_style.prop_font_style":"Estilo de letra","inline_style.prop_line_height":"Interlineado","inline_style.prop_letter_spacing":"Espaciado entre letras","inline_style.prop_text_transform":"May\xFAsculas","inline_style.prop_text_decoration":"Decoraci\xF3n","inline_style.prop_display":"Display","inline_style.prop_opacity":"Opacidad","inline_style.prop_overflow":"Desbordamiento","inline_style.prop_visibility":"Visibilidad","inline_style.prop_position":"Posici\xF3n","inline_style.prop_top":"Arriba","inline_style.prop_right":"Derecha","inline_style.prop_bottom":"Abajo","inline_style.prop_left":"Izquierda","inline_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.section_general': 'Id y 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 'inline_style.section_title': 'Estilo',\n 'inline_style.dialog_title': 'Estilo: {kind}',\n 'inline_style.section_size': 'Tama\u00F1o',\n 'inline_style.section_spacing': 'Espaciado',\n 'inline_style.section_border': 'Borde',\n 'inline_style.section_background': 'Fondo',\n 'inline_style.section_text': 'Texto',\n 'inline_style.section_typography': 'Tipograf\u00EDa',\n 'inline_style.section_display': 'Visualizaci\u00F3n',\n 'inline_style.section_flex': 'Flex',\n 'inline_style.section_position': 'Posici\u00F3n',\n 'inline_style.section_custom': 'CSS libre',\n 'inline_style.all_sizes': 'Se aplica a todos los tama\u00F1os',\n 'inline_style.overridden': 'La clase {class} tiene prioridad sobre este valor',\n 'inline_style.invalid': 'Esta propiedad no acepta ese valor',\n 'inline_style.catalog': 'Clases de Bootstrap',\n 'inline_style.shadow_x': 'X',\n 'inline_style.shadow_y': 'Y',\n 'inline_style.shadow_blur': 'Desenfoque',\n 'inline_style.shadow_spread': 'Extensi\u00F3n',\n 'inline_style.shadow_color': 'Color',\n 'inline_style.shadow_inset': 'Interior',\n 'inline_style.shadow_text_mode': 'Editar como texto',\n 'inline_style.prop_width': 'Ancho',\n 'inline_style.prop_height': 'Alto',\n 'inline_style.prop_min_width': 'Ancho m\u00EDnimo',\n 'inline_style.prop_min_height': 'Alto m\u00EDnimo',\n 'inline_style.prop_max_width': 'Ancho m\u00E1ximo',\n 'inline_style.prop_max_height': 'Alto m\u00E1ximo',\n 'inline_style.prop_margin_top': 'Margen superior',\n 'inline_style.prop_margin_right': 'Margen derecho',\n 'inline_style.prop_margin_bottom': 'Margen inferior',\n 'inline_style.prop_margin_left': 'Margen izquierdo',\n 'inline_style.prop_padding_top': 'Relleno superior',\n 'inline_style.prop_padding_right': 'Relleno derecho',\n 'inline_style.prop_padding_bottom': 'Relleno inferior',\n 'inline_style.prop_padding_left': 'Relleno izquierdo',\n 'inline_style.prop_border_width': 'Grosor del borde',\n 'inline_style.prop_border_style': 'Estilo del borde',\n 'inline_style.prop_border_color': 'Color del borde',\n 'inline_style.prop_border_radius': 'Radio del borde',\n 'inline_style.prop_box_shadow': 'Sombra',\n 'inline_style.prop_background_color': 'Color de fondo',\n 'inline_style.prop_background_image': 'Imagen de fondo',\n 'inline_style.prop_background_size': 'Tama\u00F1o del fondo',\n 'inline_style.prop_background_position': 'Posici\u00F3n del fondo',\n 'inline_style.prop_background_repeat': 'Repetici\u00F3n del fondo',\n 'inline_style.prop_color': 'Color',\n 'inline_style.prop_font_size': 'Tama\u00F1o de letra',\n 'inline_style.prop_text_align': 'Alineaci\u00F3n',\n 'inline_style.prop_text_shadow': 'Sombra del texto',\n 'inline_style.prop_font_family': 'Fuente',\n 'inline_style.prop_font_weight': 'Grosor de letra',\n 'inline_style.prop_font_style': 'Estilo de letra',\n 'inline_style.prop_line_height': 'Interlineado',\n 'inline_style.prop_letter_spacing': 'Espaciado entre letras',\n 'inline_style.prop_text_transform': 'May\u00FAsculas',\n 'inline_style.prop_text_decoration': 'Decoraci\u00F3n',\n 'inline_style.prop_display': 'Display',\n 'inline_style.prop_opacity': 'Opacidad',\n 'inline_style.prop_overflow': 'Desbordamiento',\n 'inline_style.prop_visibility': 'Visibilidad',\n 'inline_style.prop_position': 'Posici\u00F3n',\n 'inline_style.prop_top': 'Arriba',\n 'inline_style.prop_right': 'Derecha',\n 'inline_style.prop_bottom': 'Abajo',\n 'inline_style.prop_left': 'Izquierda',\n 'inline_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": "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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.section_general': 'Id y 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 'inline_style.section_title': 'Estilo',\n 'inline_style.dialog_title': 'Estilo: {kind}',\n 'inline_style.section_size': 'Tama\u00F1o',\n 'inline_style.section_spacing': 'Espaciado',\n 'inline_style.section_border': 'Borde',\n 'inline_style.section_background': 'Fondo',\n 'inline_style.section_text': 'Texto',\n 'inline_style.section_typography': 'Tipograf\u00EDa',\n 'inline_style.section_display': 'Visualizaci\u00F3n',\n 'inline_style.section_flex': 'Flex',\n 'inline_style.section_position': 'Posici\u00F3n',\n 'inline_style.section_custom': 'CSS libre',\n 'inline_style.all_sizes': 'Se aplica a todos los tama\u00F1os',\n 'inline_style.overridden': 'La clase {class} tiene prioridad sobre este valor',\n 'inline_style.invalid': 'Esta propiedad no acepta ese valor',\n 'inline_style.catalog': 'Clases de Bootstrap',\n 'inline_style.shadow_x': 'X',\n 'inline_style.shadow_y': 'Y',\n 'inline_style.shadow_blur': 'Desenfoque',\n 'inline_style.shadow_spread': 'Extensi\u00F3n',\n 'inline_style.shadow_color': 'Color',\n 'inline_style.shadow_inset': 'Interior',\n 'inline_style.shadow_text_mode': 'Editar como texto',\n 'inline_style.shadow_builder_mode': 'Editar con el constructor',\n 'inline_style.prop_width': 'Ancho',\n 'inline_style.prop_height': 'Alto',\n 'inline_style.prop_min_width': 'Ancho m\u00EDnimo',\n 'inline_style.prop_min_height': 'Alto m\u00EDnimo',\n 'inline_style.prop_max_width': 'Ancho m\u00E1ximo',\n 'inline_style.prop_max_height': 'Alto m\u00E1ximo',\n 'inline_style.prop_margin_top': 'Margen superior',\n 'inline_style.prop_margin_right': 'Margen derecho',\n 'inline_style.prop_margin_bottom': 'Margen inferior',\n 'inline_style.prop_margin_left': 'Margen izquierdo',\n 'inline_style.prop_padding_top': 'Relleno superior',\n 'inline_style.prop_padding_right': 'Relleno derecho',\n 'inline_style.prop_padding_bottom': 'Relleno inferior',\n 'inline_style.prop_padding_left': 'Relleno izquierdo',\n 'inline_style.prop_border_width': 'Grosor del borde',\n 'inline_style.prop_border_style': 'Estilo del borde',\n 'inline_style.prop_border_color': 'Color del borde',\n 'inline_style.prop_border_radius': 'Radio del borde',\n 'inline_style.prop_box_shadow': 'Sombra',\n 'inline_style.prop_background_color': 'Color de fondo',\n 'inline_style.prop_background_image': 'Imagen de fondo',\n 'inline_style.prop_background_size': 'Tama\u00F1o del fondo',\n 'inline_style.prop_background_position': 'Posici\u00F3n del fondo',\n 'inline_style.prop_background_repeat': 'Repetici\u00F3n del fondo',\n 'inline_style.prop_color': 'Color',\n 'inline_style.prop_font_size': 'Tama\u00F1o de letra',\n 'inline_style.prop_text_align': 'Alineaci\u00F3n',\n 'inline_style.prop_text_shadow': 'Sombra del texto',\n 'inline_style.prop_font_family': 'Fuente',\n 'inline_style.prop_font_weight': 'Grosor de letra',\n 'inline_style.prop_font_style': 'Estilo de letra',\n 'inline_style.prop_line_height': 'Interlineado',\n 'inline_style.prop_letter_spacing': 'Espaciado entre letras',\n 'inline_style.prop_text_transform': 'May\u00FAsculas',\n 'inline_style.prop_text_decoration': 'Decoraci\u00F3n',\n 'inline_style.prop_display': 'Display',\n 'inline_style.prop_opacity': 'Opacidad',\n 'inline_style.prop_overflow': 'Desbordamiento',\n 'inline_style.prop_visibility': 'Visibilidad',\n 'inline_style.prop_position': 'Posici\u00F3n',\n 'inline_style.prop_top': 'Arriba',\n 'inline_style.prop_right': 'Derecha',\n 'inline_style.prop_bottom': 'Abajo',\n 'inline_style.prop_left': 'Izquierda',\n 'inline_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": "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",
|
|
6
6
|
"names": ["GridEditor", "GridEditor"]
|
|
7
7
|
}
|
|
@@ -1410,6 +1410,14 @@ function shadowControl(ge, node, property, changed) {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
writeValue(input.value, input);
|
|
1412
1412
|
});
|
|
1413
|
+
if (parseShadow(value, box)) {
|
|
1414
|
+
var toBuilder = holder.appendChild(element("a", { href: "#", "class": "ge-inline-style-shadow-mode" }, ge.t("inline_style.shadow_builder_mode")));
|
|
1415
|
+
toBuilder.addEventListener("click", function(e) {
|
|
1416
|
+
e.preventDefault();
|
|
1417
|
+
textMode = false;
|
|
1418
|
+
render();
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1413
1421
|
}
|
|
1414
1422
|
var shown = null;
|
|
1415
1423
|
function render() {
|
|
@@ -1806,6 +1814,7 @@ Object.assign(GridEditor7.locales.en, {
|
|
|
1806
1814
|
"inline_style.shadow_color": "Color",
|
|
1807
1815
|
"inline_style.shadow_inset": "Inset",
|
|
1808
1816
|
"inline_style.shadow_text_mode": "Edit as text",
|
|
1817
|
+
"inline_style.shadow_builder_mode": "Edit with the builder",
|
|
1809
1818
|
"inline_style.prop_width": "Width",
|
|
1810
1819
|
"inline_style.prop_height": "Height",
|
|
1811
1820
|
"inline_style.prop_min_width": "Min width",
|
|
@@ -1406,6 +1406,14 @@
|
|
|
1406
1406
|
}
|
|
1407
1407
|
writeValue(input.value, input);
|
|
1408
1408
|
});
|
|
1409
|
+
if (parseShadow(value, box)) {
|
|
1410
|
+
var toBuilder = holder.appendChild(element("a", { href: "#", "class": "ge-inline-style-shadow-mode" }, ge.t("inline_style.shadow_builder_mode")));
|
|
1411
|
+
toBuilder.addEventListener("click", function(e) {
|
|
1412
|
+
e.preventDefault();
|
|
1413
|
+
textMode = false;
|
|
1414
|
+
render();
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1409
1417
|
}
|
|
1410
1418
|
var shown = null;
|
|
1411
1419
|
function render() {
|
|
@@ -1802,6 +1810,7 @@
|
|
|
1802
1810
|
"inline_style.shadow_color": "Color",
|
|
1803
1811
|
"inline_style.shadow_inset": "Inset",
|
|
1804
1812
|
"inline_style.shadow_text_mode": "Edit as text",
|
|
1813
|
+
"inline_style.shadow_builder_mode": "Edit with the builder",
|
|
1805
1814
|
"inline_style.prop_width": "Width",
|
|
1806
1815
|
"inline_style.prop_height": "Height",
|
|
1807
1816
|
"inline_style.prop_min_width": "Min width",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var A=window.GridEditor;if(!A||typeof A.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 P(e,t){return e?Array.prototype.slice.call(e.querySelectorAll(t)):[]}function N(e,t){return e?e.querySelector(t):null}function I(e,t){if(!e)return[];var n=P(e,t);return e.nodeType===1&&e.matches(t)&&n.unshift(e),n}function J(e,t){return e?Array.prototype.filter.call(e.children,function(n){return!t||n.matches(t)}):[]}function j(e,t){return J(e,t)[0]||null}function H(e,t){return!!e&&e.nodeType===1&&e.matches(t)}function g(e,t,n){var i=document.createElement(e);return Object.keys(t||{}).forEach(function(l){var o=t[l];o!=null&&o!==!1&&i.setAttribute(l,o)}),n!=null&&(i.textContent=n),i}function Z(e,t){return oe(t).forEach(function(n){e.classList.add(n)}),e}function D(e,t){return oe(t).forEach(function(n){e.classList.remove(n)}),e}function $(e,t,n){return oe(t).forEach(function(i){n===void 0?e.classList.toggle(i):e.classList.toggle(i,!!n)}),e}function R(e,t){return!!e&&e.nodeType===1&&e.classList.contains(t)}function oe(e){return String(e||"").split(/\s+/).filter(Boolean)}function W(e){return e.getAttribute("class")||e.removeAttribute("class"),e}function ae(e,t){return Object.keys(t).forEach(function(n){var i=t[n];typeof i=="number"&&!Ve[n]&&(i=i+"px"),e.style.setProperty(n,i==null?"":String(i))}),e}var Ve={opacity:!0,"z-index":!0,"flex-grow":!0,"flex-shrink":!0,order:!0},V={};function We(e){var t=e.nodeName;if(!V[t]){var n=document.body.appendChild(document.createElement(t));V[t]=getComputedStyle(n).display,n.remove(),V[t]==="none"&&(V[t]="block")}return V[t]}function qe(e){return e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=We(e)),e}function Xe(e){return e.style.display="none",e}function F(e,t){return t===void 0&&(t=!Ye(e)),t?qe(e):Xe(e)}function Ye(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}Object.assign(A.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 q=["0","1","2","3","4","5"],Je=["0",".25rem",".5rem","1rem","1.5rem","3rem"],Q=["","x","y","t","e","b","s"],Ze={"":["top","right","bottom","left"],x:["left","right"],y:["top","bottom"],t:["top"],e:["right"],b:["bottom"],s:["left"]},he=["","sm","md","lg","xl","xxl"],se={p:"padding",m:"margin"};function ve(e){return new RegExp("^"+e+"[xytbse]?-(?:(?:sm|md|lg|xl|xxl)-)?(?:[0-5]|auto)$")}function be(e,t){var n=Object.assign({values:q,scale:Je},t),i={p:ve("p"),m:ve("m")};function l(r,a){return a==="row"||a==="column"||a==="element"||H(r,"[data-ge-container]")}function o(r){return(r.getAttribute("class")||"").split(/\s+/)}function u(r,a){return o(r).some(function(p){return i[a].test(p)})}function c(r,a,p){for(var w=o(r),_=a.charAt(0)==="m"?q.concat(["auto"]):q,v=p;v>=0;v--)for(var E=0;E<_.length;E++){var O=a+(he[v]?"-"+he[v]:"")+"-"+_[E];if(w.indexOf(O)!==-1)return{tier:v,value:_[E]}}return null}function d(r,a){var p=r.getAttribute("class"),w,_={};return r.setAttribute("class",o(r).filter(function(v){return!i[a].test(v)}).join(" ")),w=getComputedStyle(r),["top","right","bottom","left"].forEach(function(v){_[v]=w.getPropertyValue(se[a]+"-"+v)}),p===null?r.removeAttribute("class"):r.setAttribute("class",p),_}function m(r,a,p){var w=e.breakpoints.indexOf(p),_={},v={},E=null;return Q.forEach(function(O,K){var k=c(r,a+O,w);k&&Ze[O].forEach(function(G){var Y=_[G];(!Y||k.tier>Y.tier||k.tier===Y.tier&&K>Y.order)&&(_[G]={tier:k.tier,order:K,value:k.value})})}),["top","right","bottom","left"].forEach(function(O){var K=_[O];K?v[se[a]+"-"+O]=K.value==="auto"?"auto":n.scale[K.value]:(E=E||d(r,a),v[se[a]+"-"+O]=E[O])}),v}function y(r,a){var p=o(r).filter(function(_){return i[a].test(_)}),w=Q.filter(function(_){return p.some(function(v){return v.indexOf(a+_+"-")===0})});return w.length?w[0]:""}function f(r){switch(r){case"x":return e.t("utility.side_x");case"y":return e.t("utility.side_y");case"t":return e.t("utility.side_t");case"b":return e.t("utility.side_b");case"s":return e.t("utility.side_s");case"e":return e.t("utility.side_e");default:return e.t("utility.side_all")}}function b(r,a,p){var w=g("div",{class:"ge-spacing-group","data-ge-spacing":a}),_=g("select",{class:"ge-spacing-side form-select form-select-sm"});w.appendChild(g("span",{class:"ge-utility-label"},p)),Q.forEach(function(E){_.appendChild(g("option",{value:E},f(E)))});var v=e.utilityField(r,a+y(r,a));return _.value=v.getAttribute("data-ge-family").slice(1),_.addEventListener("change",function(){var E=e.utilityField(r,a+this.value);v.replaceWith(E),v=E}),w.appendChild(_),w.appendChild(v),w}var S=".row, .column, .ge-element, [data-ge-container]";function T(r){I(r,S).forEach(function(a){var p=j(a,".ge-tools-drawer");if(!(!p||!l(a,e.kindOf(a)))){if(u(a,"p")){var w=getComputedStyle(a);ae(p,{"margin-top":"-"+w.paddingTop,"margin-left":"-"+w.paddingLeft,"margin-right":"-"+w.paddingRight,width:"calc(100% + "+w.paddingLeft+" + "+w.paddingRight+")"})}else ae(p,{"margin-top":"","margin-left":"","margin-right":"",width:""});if(R(a,"column")){var _=o(a).some(function(v){return/^p[xse]?-/.test(v)&&i.p.test(v)});P(p,".ge-spacing-gutter").forEach(function(v){F(v,_)})}}})}function s(r,a){var p=r==="m"?q.concat(["auto"]):q,w=n.values.concat(r==="m"?["auto"]:[]);return Q.map(function(_){return{name:r+_,prefix:r+_,values:p,appliesTo:["row","column","text","element","container"],labelKey:a,panel:!1,choices:function(){return p.filter(function(v){return w.indexOf(v)!==-1})}}})}return{families:s("p","utility.padding").concat(s("m","utility.margin")),panel:function(r,a){if(!l(r,a))return null;var p=g("div",{class:"ge-spacing"});return p.appendChild(b(r,"p",e.t("utility.padding"))),p.appendChild(b(r,"m",e.t("utility.margin"))),a==="column"&&p.appendChild(g("small",{class:"ge-spacing-gutter"},e.t("utility.spacing_gutter"))),p},preview:function(r,a,p){if(!l(r,a))return{};var w={};return["p","m"].forEach(function(_){u(r,_)&&Object.assign(w,m(r,_,p))}),w},onRefresh:T}}Object.assign(A.locales.en,{"utility.text_align":"Text alignment","utility.text_start":"Start","utility.text_center":"Center","utility.text_end":"End"});var Qe={start:"left",center:"center",end:"right"};function _e(e){function t(n){return n==="start"?e.t("utility.text_start"):n==="center"?e.t("utility.text_center"):e.t("utility.text_end")}return{families:[{name:"text-align",prefix:"text",values:["start","center","end"],appliesTo:["row","column","text","element","container"],labelKey:"utility.text_align",label:t,preview:function(n,i){return{"text-align":n===null?e.bareStyle(i,"text-align","text-align"):Qe[n]}}}]}}Object.assign(A.locales.en,{"utility.display":"Display","utility.visibility_hidden":"Hidden","tool.hide_in_view":"Hide in this view","tool.show_in_view":"Show in this view","badge.hidden_in":"Hidden at {breakpoints}"});var te=["none","inline","inline-block","block","grid","inline-grid","flex","inline-flex"],et=new RegExp("(?:^|\\s)d-(?:(?:sm|md|lg|xl|xxl)-)?(?:"+te.join("|")+")(?:\\s|$)"),tt=/^d-(?:(?:sm|md|lg|xl|xxl)-)?none$/,nt=".row, .column, .ge-content, .ge-element, [data-ge-container]",ee="data-ge-display";function xe(e,t){var n=Object.assign({drawer:!0},t);function i(s){return s==="row"?["none","flex"]:s==="text"||s==="plain"?["none","block"]:te}function l(s){return s==="row"?"flex":"block"}function o(s,r){return r==="row"||r==="column"||r==="element"||r==="text"||r==="plain"||H(s,"[data-ge-container]")}function u(s,r){return e.getUtility(s,"display",r)==="none"}function c(s){return e.breakpoints.filter(function(r){return u(s,r)})}function d(s){return e.view()==="all"?c(s).length===e.breakpoints.length:u(s,e.view())}function m(s){var r=e.breakpoints.indexOf(e.view());return r>0&&u(s,e.breakpoints[r-1])}function y(s,r){for(var a=e.breakpoints.indexOf(r)-1;a>=0;a--){var p=e.getUtility(s,"display",e.breakpoints[a]);if(p===null)return null;if(p!=="none")return p}return null}function f(s,r){var a=!d(s),p;e.view()==="all"?p=a?"none":null:a?p=m(s)?null:"none":p=m(s)?y(s,e.view())||l(r):null,e.setUtility(s,"display",p,{source:"tool"})}function b(s){var r=s.getAttribute("class");s.setAttribute("class",r.split(/\s+/).filter(function(p){return!tt.test(p)}).join(" "));var a=getComputedStyle(s).display;return s.setAttribute("class",r),a!=="none"&&te.indexOf(a)!==-1?a:"block"}function S(s){I(s,nt).forEach(function(r){var a=e.kindOf(r),p=o(r,a)&&et.test(r.getAttribute("class")||""),w=p?c(r):[],_=p&&d(r),v=p&&e.view()==="all"&&w.length>0&&!_;r.removeAttribute(ee),p&&getComputedStyle(r).display==="none"&&r.setAttribute(ee,b(r)),$(r,"ge-hidden-in-view",_),v?r.setAttribute("data-ge-hidden-in",e.t("badge.hidden_in",{breakpoints:w.join(", ")})):r.removeAttribute("data-ge-hidden-in"),J(r,".ge-tools-drawer").forEach(function(E){J(E,".ge-visibility-tool").forEach(function(O){O.setAttribute("title",_?e.t("tool.show_in_view"):e.t("tool.hide_in_view")),P(O,"i").forEach(function(K){K.setAttribute("class",_?"bi bi-eye-slash":"bi bi-eye")})})})})}function T(){P(e.canvas,".ge-hidden-in-view, [data-ge-hidden-in], ["+ee+"]").forEach(function(s){D(s,"ge-hidden-in-view"),s.removeAttribute("data-ge-hidden-in"),s.removeAttribute(ee),W(s)})}return{families:[{name:"display",prefix:"d",values:te,appliesTo:["row","column","text","element","container"],labelKey:"utility.display",choices:function(s,r){return i(r)},label:function(s){return s==="none"?e.t("utility.visibility_hidden"):s},preview:function(s,r){return s==="none"&&(s=y(r,e.view())),{display:s===null?e.bareStyle(r,"display","display"):s}}}],drawerTools:function(s,r,a){!n.drawer||!o(r,a)||e.createTool(s,e.t("tool.hide_in_view"),"ge-visibility-tool","bi bi-eye",function(){f(r,a)})},onRefresh:S,onDeinit:T}}Object.assign(A.locales.en,{"utility.flex_direction":"Direction","utility.flex_wrap":"Wrap","utility.justify_content":"Justify columns","utility.align_items":"Align columns","utility.align_content":"Align lines","utility.gap":"Gap","utility.row_gap":"Row gap","utility.column_gap":"Column gap","utility.flex_fill":"Fill","utility.flex_grow":"Grow","utility.flex_shrink":"Shrink"});var it={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"},rt=["0","1","2","3","4","5"],lt=["0",".25rem",".5rem","1rem","1.5rem","3rem"],ce=["row","column","element","container"],ne=["column","element","container"];function we(e,t){var n=t&&t.scale||lt;function i(c){var d=c.property||c.name;return Object.assign({prefix:c.name,panel:!1,preview:function(m,y){var f={};return f[d]=m===null?e.bareStyle(y,c.name,d):c.css(m),f}},c)}function l(c){return i(Object.assign({appliesTo:ce,preview:function(d){var m={};return m[c.name]=d===null?"normal":it[d],m}},c))}function o(c){return i(Object.assign({values:rt,appliesTo:ne,css:function(d){return n[d]}},c))}function u(c){return c}return{families:[i({name:"flex-direction",prefix:"flex",labelKey:"utility.flex_direction",values:["row","row-reverse","column","column-reverse"],appliesTo:ce,css:u}),i({name:"flex-wrap",prefix:"flex",labelKey:"utility.flex_wrap",values:["wrap","nowrap","wrap-reverse"],appliesTo:ce,css:u}),l({name:"justify-content",labelKey:"utility.justify_content",values:["start","center","end","between","around","evenly"]}),l({name:"align-items",labelKey:"utility.align_items",values:["start","center","end","baseline","stretch"]}),l({name:"align-content",labelKey:"utility.align_content",values:["start","center","end","between","around","stretch"]}),o({name:"gap",labelKey:"utility.gap"}),o({name:"row-gap",labelKey:"utility.row_gap"}),o({name:"column-gap",labelKey:"utility.column_gap"}),i({name:"flex-fill",prefix:"flex",property:"flex",labelKey:"utility.flex_fill",values:["fill"],appliesTo:ne,css:function(){return"1 1 auto"}}),i({name:"flex-grow",prefix:"flex",labelKey:"utility.flex_grow",values:["grow-0","grow-1"],appliesTo:ne,css:function(c){return c.slice(-1)}}),i({name:"flex-shrink",prefix:"flex",labelKey:"utility.flex_shrink",values:["shrink-0","shrink-1"],appliesTo:ne,css:function(c){return c.slice(-1)}})]}}Object.assign(A.locales.en,{"utility.float":"Float","utility.float_start":"Start","utility.float_end":"End","utility.float_none":"None"});var ot={start:"left",end:"right",none:"none"};function Ee(e){function t(n){return n==="start"?e.t("utility.float_start"):n==="end"?e.t("utility.float_end"):e.t("utility.float_none")}return{families:[{name:"float",prefix:"float",values:["start","end","none"],appliesTo:["element"],labelKey:"utility.float",label:t,preview:function(n,i){return{float:n===null?e.bareStyle(i,"float","float"):ot[n]}}}]}}Object.assign(A.locales.en,{"utility.sticky":"Sticky"});var at={top:{position:"sticky",top:"0","z-index":"1020"},bottom:{position:"sticky",bottom:"0","z-index":"1020"}};function Ce(e){return{families:[{name:"sticky",prefix:"sticky",values:["top","bottom"],appliesTo:["row","column","element","container"],labelKey:"utility.sticky",panel:!1,preview:function(t,n){return t!==null?at[t]:{position:e.bareStyle(n,"sticky","position")}}}]}}var st=".row, .column, .ge-element, [data-ge-container]",U="ge-drawer-out",ie="data-ge-drawer-out",ct=5,ut=/^(?:inline-)?(?:flex|grid)$/;function Se(e){var t=null,n={},i=null;function l(y){if(!n[y]){n[y]=!0,t||(t=document.head.appendChild(g("style",{"data-ge-drawer-flow":""})));var f=".ge-canvas.ge-editing ["+ie+'="'+y+'"]';t.appendChild(document.createTextNode(f+" { border-top-width: "+y+`px !important; }
|
|
1
|
+
(()=>{var T=window.GridEditor;if(!T||typeof T.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 P(e,t){return e?Array.prototype.slice.call(e.querySelectorAll(t)):[]}function N(e,t){return e?e.querySelector(t):null}function I(e,t){if(!e)return[];var n=P(e,t);return e.nodeType===1&&e.matches(t)&&n.unshift(e),n}function J(e,t){return e?Array.prototype.filter.call(e.children,function(n){return!t||n.matches(t)}):[]}function j(e,t){return J(e,t)[0]||null}function H(e,t){return!!e&&e.nodeType===1&&e.matches(t)}function g(e,t,n){var i=document.createElement(e);return Object.keys(t||{}).forEach(function(l){var o=t[l];o!=null&&o!==!1&&i.setAttribute(l,o)}),n!=null&&(i.textContent=n),i}function Z(e,t){return oe(t).forEach(function(n){e.classList.add(n)}),e}function D(e,t){return oe(t).forEach(function(n){e.classList.remove(n)}),e}function $(e,t,n){return oe(t).forEach(function(i){n===void 0?e.classList.toggle(i):e.classList.toggle(i,!!n)}),e}function R(e,t){return!!e&&e.nodeType===1&&e.classList.contains(t)}function oe(e){return String(e||"").split(/\s+/).filter(Boolean)}function W(e){return e.getAttribute("class")||e.removeAttribute("class"),e}function ae(e,t){return Object.keys(t).forEach(function(n){var i=t[n];typeof i=="number"&&!We[n]&&(i=i+"px"),e.style.setProperty(n,i==null?"":String(i))}),e}var We={opacity:!0,"z-index":!0,"flex-grow":!0,"flex-shrink":!0,order:!0},V={};function qe(e){var t=e.nodeName;if(!V[t]){var n=document.body.appendChild(document.createElement(t));V[t]=getComputedStyle(n).display,n.remove(),V[t]==="none"&&(V[t]="block")}return V[t]}function Xe(e){return e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=qe(e)),e}function Ye(e){return e.style.display="none",e}function F(e,t){return t===void 0&&(t=!Je(e)),t?Xe(e):Ye(e)}function Je(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}Object.assign(T.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 q=["0","1","2","3","4","5"],Ze=["0",".25rem",".5rem","1rem","1.5rem","3rem"],Q=["","x","y","t","e","b","s"],Qe={"":["top","right","bottom","left"],x:["left","right"],y:["top","bottom"],t:["top"],e:["right"],b:["bottom"],s:["left"]},he=["","sm","md","lg","xl","xxl"],se={p:"padding",m:"margin"};function ve(e){return new RegExp("^"+e+"[xytbse]?-(?:(?:sm|md|lg|xl|xxl)-)?(?:[0-5]|auto)$")}function be(e,t){var n=Object.assign({values:q,scale:Ze},t),i={p:ve("p"),m:ve("m")};function l(r,a){return a==="row"||a==="column"||a==="element"||H(r,"[data-ge-container]")}function o(r){return(r.getAttribute("class")||"").split(/\s+/)}function u(r,a){return o(r).some(function(p){return i[a].test(p)})}function c(r,a,p){for(var w=o(r),_=a.charAt(0)==="m"?q.concat(["auto"]):q,v=p;v>=0;v--)for(var E=0;E<_.length;E++){var O=a+(he[v]?"-"+he[v]:"")+"-"+_[E];if(w.indexOf(O)!==-1)return{tier:v,value:_[E]}}return null}function d(r,a){var p=r.getAttribute("class"),w,_={};return r.setAttribute("class",o(r).filter(function(v){return!i[a].test(v)}).join(" ")),w=getComputedStyle(r),["top","right","bottom","left"].forEach(function(v){_[v]=w.getPropertyValue(se[a]+"-"+v)}),p===null?r.removeAttribute("class"):r.setAttribute("class",p),_}function m(r,a,p){var w=e.breakpoints.indexOf(p),_={},v={},E=null;return Q.forEach(function(O,K){var A=c(r,a+O,w);A&&Qe[O].forEach(function(G){var Y=_[G];(!Y||A.tier>Y.tier||A.tier===Y.tier&&K>Y.order)&&(_[G]={tier:A.tier,order:K,value:A.value})})}),["top","right","bottom","left"].forEach(function(O){var K=_[O];K?v[se[a]+"-"+O]=K.value==="auto"?"auto":n.scale[K.value]:(E=E||d(r,a),v[se[a]+"-"+O]=E[O])}),v}function y(r,a){var p=o(r).filter(function(_){return i[a].test(_)}),w=Q.filter(function(_){return p.some(function(v){return v.indexOf(a+_+"-")===0})});return w.length?w[0]:""}function f(r){switch(r){case"x":return e.t("utility.side_x");case"y":return e.t("utility.side_y");case"t":return e.t("utility.side_t");case"b":return e.t("utility.side_b");case"s":return e.t("utility.side_s");case"e":return e.t("utility.side_e");default:return e.t("utility.side_all")}}function b(r,a,p){var w=g("div",{class:"ge-spacing-group","data-ge-spacing":a}),_=g("select",{class:"ge-spacing-side form-select form-select-sm"});w.appendChild(g("span",{class:"ge-utility-label"},p)),Q.forEach(function(E){_.appendChild(g("option",{value:E},f(E)))});var v=e.utilityField(r,a+y(r,a));return _.value=v.getAttribute("data-ge-family").slice(1),_.addEventListener("change",function(){var E=e.utilityField(r,a+this.value);v.replaceWith(E),v=E}),w.appendChild(_),w.appendChild(v),w}var S=".row, .column, .ge-element, [data-ge-container]";function k(r){I(r,S).forEach(function(a){var p=j(a,".ge-tools-drawer");if(!(!p||!l(a,e.kindOf(a)))){if(u(a,"p")){var w=getComputedStyle(a);ae(p,{"margin-top":"-"+w.paddingTop,"margin-left":"-"+w.paddingLeft,"margin-right":"-"+w.paddingRight,width:"calc(100% + "+w.paddingLeft+" + "+w.paddingRight+")"})}else ae(p,{"margin-top":"","margin-left":"","margin-right":"",width:""});if(R(a,"column")){var _=o(a).some(function(v){return/^p[xse]?-/.test(v)&&i.p.test(v)});P(p,".ge-spacing-gutter").forEach(function(v){F(v,_)})}}})}function s(r,a){var p=r==="m"?q.concat(["auto"]):q,w=n.values.concat(r==="m"?["auto"]:[]);return Q.map(function(_){return{name:r+_,prefix:r+_,values:p,appliesTo:["row","column","text","element","container"],labelKey:a,panel:!1,choices:function(){return p.filter(function(v){return w.indexOf(v)!==-1})}}})}return{families:s("p","utility.padding").concat(s("m","utility.margin")),panel:function(r,a){if(!l(r,a))return null;var p=g("div",{class:"ge-spacing"});return p.appendChild(b(r,"p",e.t("utility.padding"))),p.appendChild(b(r,"m",e.t("utility.margin"))),a==="column"&&p.appendChild(g("small",{class:"ge-spacing-gutter"},e.t("utility.spacing_gutter"))),p},preview:function(r,a,p){if(!l(r,a))return{};var w={};return["p","m"].forEach(function(_){u(r,_)&&Object.assign(w,m(r,_,p))}),w},onRefresh:k}}Object.assign(T.locales.en,{"utility.text_align":"Text alignment","utility.text_start":"Start","utility.text_center":"Center","utility.text_end":"End"});var et={start:"left",center:"center",end:"right"};function _e(e){function t(n){return n==="start"?e.t("utility.text_start"):n==="center"?e.t("utility.text_center"):e.t("utility.text_end")}return{families:[{name:"text-align",prefix:"text",values:["start","center","end"],appliesTo:["row","column","text","element","container"],labelKey:"utility.text_align",label:t,preview:function(n,i){return{"text-align":n===null?e.bareStyle(i,"text-align","text-align"):et[n]}}}]}}Object.assign(T.locales.en,{"utility.display":"Display","utility.visibility_hidden":"Hidden","tool.hide_in_view":"Hide in this view","tool.show_in_view":"Show in this view","badge.hidden_in":"Hidden at {breakpoints}"});var te=["none","inline","inline-block","block","grid","inline-grid","flex","inline-flex"],tt=new RegExp("(?:^|\\s)d-(?:(?:sm|md|lg|xl|xxl)-)?(?:"+te.join("|")+")(?:\\s|$)"),nt=/^d-(?:(?:sm|md|lg|xl|xxl)-)?none$/,it=".row, .column, .ge-content, .ge-element, [data-ge-container]",ee="data-ge-display";function xe(e,t){var n=Object.assign({drawer:!0},t);function i(s){return s==="row"?["none","flex"]:s==="text"||s==="plain"?["none","block"]:te}function l(s){return s==="row"?"flex":"block"}function o(s,r){return r==="row"||r==="column"||r==="element"||r==="text"||r==="plain"||H(s,"[data-ge-container]")}function u(s,r){return e.getUtility(s,"display",r)==="none"}function c(s){return e.breakpoints.filter(function(r){return u(s,r)})}function d(s){return e.view()==="all"?c(s).length===e.breakpoints.length:u(s,e.view())}function m(s){var r=e.breakpoints.indexOf(e.view());return r>0&&u(s,e.breakpoints[r-1])}function y(s,r){for(var a=e.breakpoints.indexOf(r)-1;a>=0;a--){var p=e.getUtility(s,"display",e.breakpoints[a]);if(p===null)return null;if(p!=="none")return p}return null}function f(s,r){var a=!d(s),p;e.view()==="all"?p=a?"none":null:a?p=m(s)?null:"none":p=m(s)?y(s,e.view())||l(r):null,e.setUtility(s,"display",p,{source:"tool"})}function b(s){var r=s.getAttribute("class");s.setAttribute("class",r.split(/\s+/).filter(function(p){return!nt.test(p)}).join(" "));var a=getComputedStyle(s).display;return s.setAttribute("class",r),a!=="none"&&te.indexOf(a)!==-1?a:"block"}function S(s){I(s,it).forEach(function(r){var a=e.kindOf(r),p=o(r,a)&&tt.test(r.getAttribute("class")||""),w=p?c(r):[],_=p&&d(r),v=p&&e.view()==="all"&&w.length>0&&!_;r.removeAttribute(ee),p&&getComputedStyle(r).display==="none"&&r.setAttribute(ee,b(r)),$(r,"ge-hidden-in-view",_),v?r.setAttribute("data-ge-hidden-in",e.t("badge.hidden_in",{breakpoints:w.join(", ")})):r.removeAttribute("data-ge-hidden-in"),J(r,".ge-tools-drawer").forEach(function(E){J(E,".ge-visibility-tool").forEach(function(O){O.setAttribute("title",_?e.t("tool.show_in_view"):e.t("tool.hide_in_view")),P(O,"i").forEach(function(K){K.setAttribute("class",_?"bi bi-eye-slash":"bi bi-eye")})})})})}function k(){P(e.canvas,".ge-hidden-in-view, [data-ge-hidden-in], ["+ee+"]").forEach(function(s){D(s,"ge-hidden-in-view"),s.removeAttribute("data-ge-hidden-in"),s.removeAttribute(ee),W(s)})}return{families:[{name:"display",prefix:"d",values:te,appliesTo:["row","column","text","element","container"],labelKey:"utility.display",choices:function(s,r){return i(r)},label:function(s){return s==="none"?e.t("utility.visibility_hidden"):s},preview:function(s,r){return s==="none"&&(s=y(r,e.view())),{display:s===null?e.bareStyle(r,"display","display"):s}}}],drawerTools:function(s,r,a){!n.drawer||!o(r,a)||e.createTool(s,e.t("tool.hide_in_view"),"ge-visibility-tool","bi bi-eye",function(){f(r,a)})},onRefresh:S,onDeinit:k}}Object.assign(T.locales.en,{"utility.flex_direction":"Direction","utility.flex_wrap":"Wrap","utility.justify_content":"Justify columns","utility.align_items":"Align columns","utility.align_content":"Align lines","utility.gap":"Gap","utility.row_gap":"Row gap","utility.column_gap":"Column gap","utility.flex_fill":"Fill","utility.flex_grow":"Grow","utility.flex_shrink":"Shrink"});var rt={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"},lt=["0","1","2","3","4","5"],ot=["0",".25rem",".5rem","1rem","1.5rem","3rem"],ce=["row","column","element","container"],ne=["column","element","container"];function we(e,t){var n=t&&t.scale||ot;function i(c){var d=c.property||c.name;return Object.assign({prefix:c.name,panel:!1,preview:function(m,y){var f={};return f[d]=m===null?e.bareStyle(y,c.name,d):c.css(m),f}},c)}function l(c){return i(Object.assign({appliesTo:ce,preview:function(d){var m={};return m[c.name]=d===null?"normal":rt[d],m}},c))}function o(c){return i(Object.assign({values:lt,appliesTo:ne,css:function(d){return n[d]}},c))}function u(c){return c}return{families:[i({name:"flex-direction",prefix:"flex",labelKey:"utility.flex_direction",values:["row","row-reverse","column","column-reverse"],appliesTo:ce,css:u}),i({name:"flex-wrap",prefix:"flex",labelKey:"utility.flex_wrap",values:["wrap","nowrap","wrap-reverse"],appliesTo:ce,css:u}),l({name:"justify-content",labelKey:"utility.justify_content",values:["start","center","end","between","around","evenly"]}),l({name:"align-items",labelKey:"utility.align_items",values:["start","center","end","baseline","stretch"]}),l({name:"align-content",labelKey:"utility.align_content",values:["start","center","end","between","around","stretch"]}),o({name:"gap",labelKey:"utility.gap"}),o({name:"row-gap",labelKey:"utility.row_gap"}),o({name:"column-gap",labelKey:"utility.column_gap"}),i({name:"flex-fill",prefix:"flex",property:"flex",labelKey:"utility.flex_fill",values:["fill"],appliesTo:ne,css:function(){return"1 1 auto"}}),i({name:"flex-grow",prefix:"flex",labelKey:"utility.flex_grow",values:["grow-0","grow-1"],appliesTo:ne,css:function(c){return c.slice(-1)}}),i({name:"flex-shrink",prefix:"flex",labelKey:"utility.flex_shrink",values:["shrink-0","shrink-1"],appliesTo:ne,css:function(c){return c.slice(-1)}})]}}Object.assign(T.locales.en,{"utility.float":"Float","utility.float_start":"Start","utility.float_end":"End","utility.float_none":"None"});var at={start:"left",end:"right",none:"none"};function Ee(e){function t(n){return n==="start"?e.t("utility.float_start"):n==="end"?e.t("utility.float_end"):e.t("utility.float_none")}return{families:[{name:"float",prefix:"float",values:["start","end","none"],appliesTo:["element"],labelKey:"utility.float",label:t,preview:function(n,i){return{float:n===null?e.bareStyle(i,"float","float"):at[n]}}}]}}Object.assign(T.locales.en,{"utility.sticky":"Sticky"});var st={top:{position:"sticky",top:"0","z-index":"1020"},bottom:{position:"sticky",bottom:"0","z-index":"1020"}};function Ce(e){return{families:[{name:"sticky",prefix:"sticky",values:["top","bottom"],appliesTo:["row","column","element","container"],labelKey:"utility.sticky",panel:!1,preview:function(t,n){return t!==null?st[t]:{position:e.bareStyle(n,"sticky","position")}}}]}}var ct=".row, .column, .ge-element, [data-ge-container]",U="ge-drawer-out",ie="data-ge-drawer-out",ut=5,pt=/^(?:inline-)?(?:flex|grid)$/;function Se(e){var t=null,n={},i=null;function l(y){if(!n[y]){n[y]=!0,t||(t=document.head.appendChild(g("style",{"data-ge-drawer-flow":""})));var f=".ge-canvas.ge-editing ["+ie+'="'+y+'"]';t.appendChild(document.createTextNode(f+" { border-top-width: "+y+`px !important; }
|
|
2
2
|
`+f+" > .ge-tools-drawer { top: -"+y+`px; }
|
|
3
|
-
`))}}function o(y){var f=getComputedStyle(y);return ut.test(f.display)?!(R(y,"row")&&f.flexDirection==="row"&&f.flexWrap==="wrap"):!1}function u(y,f){var b=Math.ceil(f.offsetHeight)+ct;l(b),y.setAttribute(ie,String(b))}function c(y){typeof ResizeObserver!="undefined"&&(i||(i=new ResizeObserver(function(f){f.forEach(function(b){var S=b.target.parentNode;S&&R(S,U)&&u(S,b.target)})})),i.observe(y))}function d(y){I(y,st).forEach(function(f){var b=j(f,".ge-tools-drawer");b&&(o(f)?(Z(f,U),u(f,b),c(b)):R(f,U)&&(D(f,U),f.removeAttribute(ie),W(f),i&&i.unobserve(b)))})}function m(){i&&i.disconnect(),i=null,P(e.canvas,"."+U).forEach(function(y){D(y,U),y.removeAttribute(ie),W(y)}),t&&t.remove(),t=null,n={}}return{families:[],onRefresh:d,onDeinit:m}}var L=["primary","secondary","success","danger","warning","info","light","dark"],ue=["top","end","bottom","start"],Oe=["10","25","50","75","100"];function C(e,t,n){return t.map(function(i){return e+i+(n||"")})}function x(e,t,n,i){return{classes:e,exclusive:t!==!1,notOn:n||[],onlyOn:i||null}}function h(e,t){return{name:e,labelKey:t.labelKey,type:t.type||"text",values:t.values||null,notOn:t.notOn||[]}}var B=["column"],ke=["element"],fe=[{key:"size",labelKey:"inline_style.section_size",properties:[h("width",{labelKey:"inline_style.prop_width",notOn:B}),h("height",{labelKey:"inline_style.prop_height",notOn:B}),h("min-width",{labelKey:"inline_style.prop_min_width"}),h("min-height",{labelKey:"inline_style.prop_min_height"}),h("max-width",{labelKey:"inline_style.prop_max_width"}),h("max-height",{labelKey:"inline_style.prop_max_height"})],catalog:[x(C("w-",["25","50","75","100","auto"]),!0,B),x(C("h-",["25","50","75","100","auto"]),!0,B),x(["mw-100","mh-100","vw-100","vh-100","min-vw-100","min-vh-100"],!1,B),x(["img-fluid","img-thumbnail"],!1,[],ke),x(C("object-fit-",["contain","cover","fill","scale","none"]),!0,[],ke)],parts:[]},{key:"spacing",labelKey:"inline_style.section_spacing",properties:[h("margin-top",{labelKey:"inline_style.prop_margin_top"}),h("margin-right",{labelKey:"inline_style.prop_margin_right"}),h("margin-bottom",{labelKey:"inline_style.prop_margin_bottom"}),h("margin-left",{labelKey:"inline_style.prop_margin_left"}),h("padding-top",{labelKey:"inline_style.prop_padding_top"}),h("padding-right",{labelKey:"inline_style.prop_padding_right"}),h("padding-bottom",{labelKey:"inline_style.prop_padding_bottom"}),h("padding-left",{labelKey:"inline_style.prop_padding_left"})],catalog:[],parts:["spacing"]},{key:"border",labelKey:"inline_style.section_border",properties:[h("border-width",{labelKey:"inline_style.prop_border_width"}),h("border-style",{labelKey:"inline_style.prop_border_style",type:"select",values:["none","solid","dashed","dotted","double","groove","ridge","inset","outset"]}),h("border-color",{labelKey:"inline_style.prop_border_color",type:"color"}),h("border-radius",{labelKey:"inline_style.prop_border_radius"}),h("box-shadow",{labelKey:"inline_style.prop_box_shadow",type:"shadow"})],catalog:[x(["border","border-0"].concat(C("border-",ue),C("border-",ue,"-0")),!1),x(C("border-",["1","2","3","4","5"])),x(C("border-",L.concat(["black","white"])).concat(C("border-",L,"-subtle"))),x(C("border-opacity-",Oe)),x(["rounded"].concat(C("rounded-",["0","1","2","3","4","5","circle","pill"]))),x(C("rounded-",ue),!1),x(["shadow-none","shadow-sm","shadow","shadow-lg"])],parts:[]},{key:"background",labelKey:"inline_style.section_background",properties:[h("background-color",{labelKey:"inline_style.prop_background_color",type:"color"}),h("background-image",{labelKey:"inline_style.prop_background_image",type:"url"}),h("background-size",{labelKey:"inline_style.prop_background_size"}),h("background-position",{labelKey:"inline_style.prop_background_position"}),h("background-repeat",{labelKey:"inline_style.prop_background_repeat",type:"select",values:["repeat","no-repeat","repeat-x","repeat-y","space","round"]})],catalog:[x(C("bg-",L.concat(["body","body-secondary","body-tertiary","white","black","transparent"])).concat(C("bg-",L,"-subtle"),C("text-bg-",L))),x(["bg-gradient"],!1),x(C("bg-opacity-",Oe))],parts:[]},{key:"text",labelKey:"inline_style.section_text",properties:[h("color",{labelKey:"inline_style.prop_color",type:"color"}),h("font-size",{labelKey:"inline_style.prop_font_size"}),h("text-align",{labelKey:"inline_style.prop_text_align",type:"select",values:["start","center","end","left","right","justify"]}),h("text-shadow",{labelKey:"inline_style.prop_text_shadow",type:"shadow"})],catalog:[x(C("text-",L.concat(["body","body-secondary","body-tertiary","white","black"])).concat(C("text-",L,"-emphasis"),["text-body-emphasis"])),x(C("text-opacity-",["25","50","75","100"])),x(C("fs-",["1","2","3","4","5","6"])),x(C("text-decoration-",["none","underline","line-through"]))],parts:["textalign"]},{key:"typography",labelKey:"inline_style.section_typography",properties:[h("font-family",{labelKey:"inline_style.prop_font_family"}),h("font-weight",{labelKey:"inline_style.prop_font_weight",type:"select",values:["100","200","300","400","500","600","700","800","900","normal","bold","lighter","bolder"]}),h("font-style",{labelKey:"inline_style.prop_font_style",type:"select",values:["normal","italic","oblique"]}),h("line-height",{labelKey:"inline_style.prop_line_height"}),h("letter-spacing",{labelKey:"inline_style.prop_letter_spacing"}),h("text-transform",{labelKey:"inline_style.prop_text_transform",type:"select",values:["none","uppercase","lowercase","capitalize"]}),h("text-decoration",{labelKey:"inline_style.prop_text_decoration",type:"select",values:["none","underline","line-through","overline"]})],catalog:[x(C("fw-",["lighter","light","normal","medium","semibold","bold","bolder"])),x(C("fst-",["italic","normal"])),x(C("lh-",["1","sm","base","lg"])),x(C("text-",["lowercase","uppercase","capitalize"])),x(["font-monospace"],!1),x(["text-wrap","text-nowrap"]),x(["text-break"],!1)],parts:[]},{key:"display",labelKey:"inline_style.section_display",properties:[h("display",{labelKey:"inline_style.prop_display",type:"select",values:["none","block","inline","inline-block","flex","inline-flex","grid","inline-grid"]}),h("opacity",{labelKey:"inline_style.prop_opacity"}),h("overflow",{labelKey:"inline_style.prop_overflow",type:"select",values:["visible","hidden","auto","scroll","clip"]}),h("visibility",{labelKey:"inline_style.prop_visibility",type:"select",values:["visible","hidden"]})],catalog:[x(C("opacity-",["0","25","50","75","100"])),x(C("overflow-",["auto","hidden","visible","scroll"])),x(["visible","invisible"])],parts:["display"]},{key:"flex",labelKey:"inline_style.section_flex",properties:[],catalog:[x(["vstack","hstack"],!0,["row"])],parts:["flex"]},{key:"position",labelKey:"inline_style.section_position",properties:[h("position",{labelKey:"inline_style.prop_position",type:"select",values:["static","relative","absolute","fixed","sticky"]}),h("top",{labelKey:"inline_style.prop_top",notOn:B}),h("right",{labelKey:"inline_style.prop_right",notOn:B}),h("bottom",{labelKey:"inline_style.prop_bottom",notOn:B}),h("left",{labelKey:"inline_style.prop_left",notOn:B}),h("z-index",{labelKey:"inline_style.prop_z_index"})],catalog:[x(C("position-",["static","relative","absolute","fixed","sticky"])),x(C("top-",["0","50","100"])),x(C("bottom-",["0","50","100"])),x(C("start-",["0","50","100"])),x(C("end-",["0","50","100"])),x(["translate-middle","translate-middle-x","translate-middle-y"]),x(["z-n1","z-0","z-1","z-2","z-3"]),x(["fixed-top","fixed-bottom"])],parts:["float","sticky"]},{key:"custom",labelKey:"inline_style.section_custom",properties:[],catalog:[],parts:[],custom:!0}];function Ke(e){return fe.filter(function(t){return t.key===e})[0]||null}function le(e,t){return e.onlyOn&&e.onlyOn.indexOf(t)===-1?!1:e.notOn.indexOf(t)===-1}var re="(?:(?:sm|md|lg|xl|xxl)-)?",pt="(?:[0-5]|auto)",dt="(?:"+L.join("|")+"|black|white)",ft="(?:"+L.join("|")+"|body|body-secondary|body-tertiary|white|black|transparent)",mt="(?:"+L.join("|")+"|body|body-secondary|body-tertiary|white|black|muted|black-50|white-50)",pe="border(?:-(?:top|end|bottom|start))?(?:-0)?",Ae="(?:"+L.join("|")+")-subtle",yt="(?:"+L.join("|")+"|body)-emphasis",Te="text-bg-(?:"+L.join("|")+")",de="sticky-"+re;function z(e,t){var n={top:"[ty]?",bottom:"[by]?",left:"[sx]?",right:"[ex]?"}[t];return new RegExp("^"+e+n+"-"+re+pt+"$")}var gt={width:/^(?:w-(?:25|50|75|100|auto)|vw-100)$/,height:/^(?:h-(?:25|50|75|100|auto)|vh-100)$/,"max-width":/^mw-100$/,"max-height":/^mh-100$/,"min-width":/^min-vw-100$/,"min-height":/^min-vh-100$/,"margin-top":z("m","top"),"margin-right":z("m","right"),"margin-bottom":z("m","bottom"),"margin-left":z("m","left"),"padding-top":z("p","top"),"padding-right":z("p","right"),"padding-bottom":z("p","bottom"),"padding-left":z("p","left"),"border-width":new RegExp("^(?:"+pe+"|border-[1-5])$"),"border-style":new RegExp("^"+pe+"$"),"border-color":new RegExp("^(?:"+pe+"|border-"+dt+"|border-"+Ae+")$"),"border-radius":/^rounded(?:-(?:[0-5]|circle|pill|top|end|bottom|start))?$/,"box-shadow":/^shadow(?:-(?:none|sm|lg))?$/,"background-color":new RegExp("^(?:bg-"+ft+"|bg-"+Ae+"|"+Te+")$"),"background-image":/^bg-gradient$/,color:new RegExp("^(?:text-"+mt+"|text-"+yt+"|"+Te+")$"),"font-size":/^fs-[1-6]$/,"text-align":new RegExp("^text-"+re+"(?:start|center|end)$"),"text-decoration":/^text-decoration-(?:none|underline|line-through)$/,"font-family":/^font-monospace$/,"font-weight":/^fw-(?:lighter|light|normal|medium|semibold|bold|bolder)$/,"font-style":/^fst-(?:italic|normal)$/,"line-height":/^lh-(?:1|sm|base|lg)$/,"text-transform":/^text-(?:lowercase|uppercase|capitalize)$/,display:new RegExp("^(?:d-"+re+"(?:none|inline|inline-block|block|grid|inline-grid|table|table-row|table-cell|flex|inline-flex)|vstack|hstack)$"),opacity:/^opacity-(?:0|25|50|75|100)$/,overflow:/^overflow-(?:auto|hidden|visible|scroll)$/,visibility:/^(?:visible|invisible)$/,position:new RegExp("^(?:position-(?:static|relative|absolute|fixed|sticky)|fixed-(?:top|bottom)|"+de+"(?:top|bottom))$"),top:new RegExp("^(?:top-(?:0|50|100)|fixed-top|"+de+"top)$"),bottom:new RegExp("^(?:bottom-(?:0|50|100)|fixed-bottom|"+de+"bottom)$"),left:/^start-(?:0|50|100)$/,right:/^end-(?:0|50|100)$/,"z-index":/^z-(?:n1|[0-3])$/};function Le(e,t){var n=gt[e];return n&&t.filter(function(i){return n.test(i)})[0]||null}function ht(e,t){var n={};return Object.keys(t||{}).forEach(function(i){Ke(i)||e.warn('inline_style.sections: there is no "'+i+'" section: ignored')}),fe.forEach(function(i){var l=t&&t[i.key]!==void 0?t[i.key]:!0;if(l!==!1){var o=i.properties.map(function(d){return d.name}),u=i.properties,c=!0;l&&typeof l=="object"&&(Array.isArray(l.properties)&&(l.properties.forEach(function(d){o.indexOf(d)===-1&&e.warn("inline_style.sections."+i.key+': "'+d+'" is not one of its properties: ignored')}),u=l.properties.filter(function(d){return o.indexOf(d)!==-1}).map(function(d){return i.properties[o.indexOf(d)]})),l.catalog===!1&&(c=!1)),n[i.key]={section:i,properties:u,catalog:c}}}),n}function Pe(e){var t=e.settings.inline_style||{};return{sections:ht(e,t.sections),spacing:t.spacing,visibility:t.visibility}}var Be=new WeakMap,vt=0;function bt(e){return(e.getAttribute("class")||"").split(/\s+/).filter(Boolean)}function je(e,t,n,i){var l=String(i==null?"":i).trim(),o=/\s*!\s*important\s*$/i.exec(l),u;return o&&(l=l.slice(0,o.index).trim(),u="important"),e.setHostStyle(t,n,l,u)}function ze(e,t,n){$(e,"is-invalid",!t),t?e.removeAttribute("title"):e.setAttribute("title",n.t("inline_style.invalid"))}function me(e,t){R(e,"is-invalid")||(e.value=t)}function X(e){return g("input",{type:"text",class:"form-control form-control-sm "+(e||"")})}var _t=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i;function Re(e){var t=_t.exec(e.trim());if(!t)return null;var n=t[1];return n.length===3&&(n=n.split("").map(function(i){return i+i}).join("")),"#"+n.toLowerCase()}function Ne(e){var t=g("div",{class:"input-group input-group-sm ge-inline-style-color"}),n=t.appendChild(g("input",{type:"color",class:"form-control form-control-color"})),i=t.appendChild(X());return n.addEventListener("input",function(){D(i,"is-invalid"),i.value=n.value,e(n.value,i)}),i.addEventListener("change",function(){var l=Re(i.value);l&&(n.value=l),e(i.value,i)}),{element:t,set:function(l){me(i,l);var o=Re(l);o&&(n.value=o)}}}var xt=/^url\(\s*(["']?)(.*)\1\s*\)$/i;function wt(e){var t=xt.exec(e.trim());return t?t[1]?t[2].replace(/\\(["\\])/g,"$1"):t[2]:e}function Et(e){return e=e.trim(),e===""||/^(?:none|inherit|initial|unset|revert)$/i.test(e)||/^[a-z-]+\(/i.test(e)?e:'url("'+e.replace(/(["\\])/g,"\\$1")+'")'}function Ct(e){for(var t=[],n=0,i="",l=0;l<e.length;l++){var o=e.charAt(l);o==="("&&n++,o===")"&&n--,n===0&&(o===" "||o===",")?(i&&t.push(i),o===","&&t.push(","),i=""):i+=o}return i&&t.push(i),t}var St=/^-?(?:\d*\.)?\d+(?:[a-z%]+)?$/i,$e=[{name:"x",labelKey:"inline_style.shadow_x"},{name:"y",labelKey:"inline_style.shadow_y"},{name:"blur",labelKey:"inline_style.shadow_blur"},{name:"spread",labelKey:"inline_style.shadow_spread"}];function Ot(e,t){if(e=e.trim(),e==="")return{inset:!1,lengths:[],color:""};if(/var\(/i.test(e))return null;var n=Ct(e);if(n.indexOf(",")!==-1)return null;var i=!1,l=[],o=[];return n.forEach(function(u){t&&u.toLowerCase()==="inset"?i=!0:St.test(u)?l.push(u):o.push(u)}),o.length>1||l.length<2||l.length>(t?4:3)||o.length&&/^(?:none|inherit|initial|unset|revert)$/i.test(o[0])?null:{inset:i,lengths:l,color:o[0]||""}}function kt(e,t){for(var n=e.lengths.slice(),i=n.length-1;i>=0;i--)n[i]===""&&n.slice(i+1).some(Boolean)&&(n[i]="0");if(n=n.filter(Boolean),!n.length&&!e.color&&!e.inset)return"";for(;n.length<2;)n.push("0");return(t&&e.inset?"inset ":"")+n.join(" ")+(e.color?" "+e.color:"")}function At(e,t,n,i){var l=n==="box-shadow",o=g("div",{class:"ge-inline-style-shadow"}),u=!1;function c(b,S){var T=je(e,t,n,b);return ze(S,T,e),T&&i(),T}function d(b){o.innerHTML="";var S=o.appendChild(g("div",{class:"ge-inline-style-shadow-builder"})),T=l?$e:$e.slice(0,3),s=T.map(function(E,O){var K=S.appendChild(g("label",{class:"ge-inline-style-shadow-part"}));K.appendChild(g("span",{class:"ge-inline-style-shadow-label"},e.t(E.labelKey)));var k=K.appendChild(X("ge-inline-style-shadow-"+E.name));return k.value=b.lengths[O]||"",k}),r=S.appendChild(g("label",{class:"ge-inline-style-shadow-part ge-inline-style-shadow-color"}));r.appendChild(g("span",{class:"ge-inline-style-shadow-label"},e.t("inline_style.shadow_color")));var a=Ne(function(){v()});r.appendChild(a.element),a.set(b.color);var p=null;if(l){var w=S.appendChild(g("label",{class:"form-check ge-inline-style-shadow-inset"}));p=w.appendChild(g("input",{type:"checkbox",class:"form-check-input"})),w.appendChild(g("span",{class:"form-check-label"},e.t("inline_style.shadow_inset"))),p.checked=b.inset,p.addEventListener("change",function(){v()})}s.forEach(function(E){E.addEventListener("change",function(){v()})});var _=o.appendChild(g("a",{href:"#",class:"ge-inline-style-shadow-mode"},e.t("inline_style.shadow_text_mode")));_.addEventListener("click",function(E){E.preventDefault(),u=!0,f()});function v(){var E=kt({inset:p?p.checked:!1,lengths:s.map(function(O){return O.value.trim()}),color:N(a.element,'input[type="text"]').value.trim()},l);c(E,s[0])}}function m(b){o.innerHTML="";var S=o.appendChild(X("ge-inline-style-shadow-text"));S.value=b,S.addEventListener("change",function(){if(S.value.trim()===""){c("",S)&&(u=!1,f());return}c(S.value,S)})}var y=null;function f(){if(!o.querySelector(".is-invalid")){var b=e.hostStyle(t,n).value,S=Ot(b,l);b===y&&o.firstChild&&u===!!o.querySelector(".ge-inline-style-shadow-text")||(y=b,u||!S?(u=!!b||u,m(b)):d(S))}}return{element:o,render:f,value:function(){return e.hostStyle(t,n).value}}}function He(e,t,n,i){var l=g("div",{class:"ge-inline-style-field","data-ge-inline-style-property":n.name}),o=l.appendChild(g("label",{class:"ge-inline-style-label"},e.t(n.labelKey))),u;function c(){return e.hostStyle(t,n.name).value}function d(s,r){var a=je(e,t,n.name,s);ze(r,a,e),a&&i()}if(n.type==="select"){var m=l.appendChild(g("select",{class:"form-select form-select-sm"}));m.addEventListener("change",function(){d(m.value,m)}),u=function(){var s=c(),r=n.values.slice();s&&r.indexOf(s)===-1&&r.push(s),m.innerHTML="",m.appendChild(g("option",{value:""},"")),r.forEach(function(a){m.appendChild(g("option",{value:a},a))}),m.value=s}}else if(n.type==="color"){var y=Ne(function(s,r){d(s,r)});l.appendChild(y.element),u=function(){y.set(c())}}else if(n.type==="url"){var f=l.appendChild(X());f.addEventListener("change",function(){d(Et(f.value),f)}),u=function(){me(f,wt(c()))}}else if(n.type==="shadow"){var b=At(e,t,n.name,i);l.appendChild(b.element),u=b.render}else{var S=l.appendChild(X());S.addEventListener("change",function(){d(S.value,S)}),u=function(){me(S,c())}}var T=l.querySelector("input, select");return T&&(T.id="ge-inline-style-field-"+ ++vt,o.setAttribute("for",T.id)),l.appendChild(g("small",{class:"ge-inline-style-note ge-inline-style-overridden"})),Be.set(l,function(){u();var s=c()?Le(n.name,bt(t)):null,r=j(l,".ge-inline-style-overridden");r.textContent=s?e.t("inline_style.overridden",{class:s}):"",F(r,!!s)}),ye(l),l}function ye(e){var t=Be.get(e);t&&t()}function De(e){return(e.getAttribute("class")||"").split(/\s+/).filter(Boolean)}function Tt(e,t,n,i){var l=e.detailsOf(t),o=l?N(l,".ge-classes"):null;if(o){var u=De(t).indexOf(i)!==-1,c=o.value.split(/\s+/).filter(Boolean).filter(function(d){return d===i?!1:!(n.exclusive&&!u&&n.classes.indexOf(d)!==-1)});u||c.push(i),o.value=c.join(" "),o.dispatchEvent(new Event("change",{bubbles:!0}))}}function Me(e,t,n,i){var l=i.filter(function(u){return le(u,n)});if(!l.length)return null;var o=g("div",{class:"ge-inline-style-catalog"});return o.appendChild(g("span",{class:"ge-inline-style-label"},e.t("inline_style.catalog"))),l.forEach(function(u){var c=o.appendChild(g("div",{class:"ge-inline-style-chips"}));u.classes.forEach(function(d){var m=c.appendChild(g("button",{type:"button",class:"btn btn-sm btn-outline-secondary ge-inline-style-chip","data-ge-class":d,"aria-pressed":"false"},d));m.addEventListener("click",function(){Tt(e,t,u,d)})})}),ge(o,t),o}function ge(e,t){var n=De(t);P(e,".ge-inline-style-chip").forEach(function(i){var l=n.indexOf(i.getAttribute("data-ge-class"))!==-1;$(i,"active",l),i.setAttribute("aria-pressed",l?"true":"false")})}function Kt(e){var t=document.createElement("div").style,n=[];t.setProperty(e,"initial");for(var i=0;i<t.length;i++)n.push(t[i]);return n.length?n:[e]}function Ie(e){var t=document.createElement("div").style;return t.cssText=e,t}function Fe(e,t,n,i){var l={};n.forEach(function(m){Kt(m).forEach(function(y){l[y]=!0})});var o=g("div",{class:"ge-inline-style-custom"}),u=o.appendChild(g("textarea",{class:"form-control form-control-sm font-monospace ge-inline-style-custom-css",rows:"4",spellcheck:"false","aria-label":e.t("inline_style.section_custom")}));function c(){for(var m=Ie(e.hostStyle(t)),y=document.createElement("div").style,f=0;f<m.length;f++){var b=m[f];l[b]||y.setProperty(b,m.getPropertyValue(b),m.getPropertyPriority(b))}return y}u.addEventListener("change",function(){var m=c(),y=Ie(u.value),f;for(f=0;f<m.length;f++)y.getPropertyValue(m[f])===""&&e.setHostStyle(t,m[f],"");for(f=0;f<y.length;f++)e.setHostStyle(t,y[f],y.getPropertyValue(y[f]),y.getPropertyPriority(y[f]));d(),i()});function d(){document.activeElement!==u&&(u.value=c().cssText.replace(/; /g,`;
|
|
4
|
-
`))}return d(),{element:o,render:d}}function Lt(e,t){return t==="row"||t==="column"||t==="element"||t==="section"||H(e,"[data-ge-container]")?!0:!!j(e,".ge-tools-drawer.ge-pane-drawer")}function Pt(e,t,n){return n==="plain"&&(n="text"),e.appliesTo.indexOf(n)!==-1?!0:e.appliesTo.indexOf("container")!==-1&&H(t,"[data-ge-container]")}function Rt(e,t,n,i){if(t.panel)return t.panel(n,i);var l=t.families.filter(function(u){return Pt(u,n,i)}).map(function(u){return e.utilityField(n,u.name)});if(l.length<2)return l[0]||null;var o=g("div",{class:"ge-inline-style-part-fields"});return l.forEach(function(u){o.appendChild(u)}),o}function
|
|
3
|
+
`))}}function o(y){var f=getComputedStyle(y);return pt.test(f.display)?!(R(y,"row")&&f.flexDirection==="row"&&f.flexWrap==="wrap"):!1}function u(y,f){var b=Math.ceil(f.offsetHeight)+ut;l(b),y.setAttribute(ie,String(b))}function c(y){typeof ResizeObserver!="undefined"&&(i||(i=new ResizeObserver(function(f){f.forEach(function(b){var S=b.target.parentNode;S&&R(S,U)&&u(S,b.target)})})),i.observe(y))}function d(y){I(y,ct).forEach(function(f){var b=j(f,".ge-tools-drawer");b&&(o(f)?(Z(f,U),u(f,b),c(b)):R(f,U)&&(D(f,U),f.removeAttribute(ie),W(f),i&&i.unobserve(b)))})}function m(){i&&i.disconnect(),i=null,P(e.canvas,"."+U).forEach(function(y){D(y,U),y.removeAttribute(ie),W(y)}),t&&t.remove(),t=null,n={}}return{families:[],onRefresh:d,onDeinit:m}}var L=["primary","secondary","success","danger","warning","info","light","dark"],ue=["top","end","bottom","start"],Oe=["10","25","50","75","100"];function C(e,t,n){return t.map(function(i){return e+i+(n||"")})}function x(e,t,n,i){return{classes:e,exclusive:t!==!1,notOn:n||[],onlyOn:i||null}}function h(e,t){return{name:e,labelKey:t.labelKey,type:t.type||"text",values:t.values||null,notOn:t.notOn||[]}}var B=["column"],ke=["element"],fe=[{key:"size",labelKey:"inline_style.section_size",properties:[h("width",{labelKey:"inline_style.prop_width",notOn:B}),h("height",{labelKey:"inline_style.prop_height",notOn:B}),h("min-width",{labelKey:"inline_style.prop_min_width"}),h("min-height",{labelKey:"inline_style.prop_min_height"}),h("max-width",{labelKey:"inline_style.prop_max_width"}),h("max-height",{labelKey:"inline_style.prop_max_height"})],catalog:[x(C("w-",["25","50","75","100","auto"]),!0,B),x(C("h-",["25","50","75","100","auto"]),!0,B),x(["mw-100","mh-100","vw-100","vh-100","min-vw-100","min-vh-100"],!1,B),x(["img-fluid","img-thumbnail"],!1,[],ke),x(C("object-fit-",["contain","cover","fill","scale","none"]),!0,[],ke)],parts:[]},{key:"spacing",labelKey:"inline_style.section_spacing",properties:[h("margin-top",{labelKey:"inline_style.prop_margin_top"}),h("margin-right",{labelKey:"inline_style.prop_margin_right"}),h("margin-bottom",{labelKey:"inline_style.prop_margin_bottom"}),h("margin-left",{labelKey:"inline_style.prop_margin_left"}),h("padding-top",{labelKey:"inline_style.prop_padding_top"}),h("padding-right",{labelKey:"inline_style.prop_padding_right"}),h("padding-bottom",{labelKey:"inline_style.prop_padding_bottom"}),h("padding-left",{labelKey:"inline_style.prop_padding_left"})],catalog:[],parts:["spacing"]},{key:"border",labelKey:"inline_style.section_border",properties:[h("border-width",{labelKey:"inline_style.prop_border_width"}),h("border-style",{labelKey:"inline_style.prop_border_style",type:"select",values:["none","solid","dashed","dotted","double","groove","ridge","inset","outset"]}),h("border-color",{labelKey:"inline_style.prop_border_color",type:"color"}),h("border-radius",{labelKey:"inline_style.prop_border_radius"}),h("box-shadow",{labelKey:"inline_style.prop_box_shadow",type:"shadow"})],catalog:[x(["border","border-0"].concat(C("border-",ue),C("border-",ue,"-0")),!1),x(C("border-",["1","2","3","4","5"])),x(C("border-",L.concat(["black","white"])).concat(C("border-",L,"-subtle"))),x(C("border-opacity-",Oe)),x(["rounded"].concat(C("rounded-",["0","1","2","3","4","5","circle","pill"]))),x(C("rounded-",ue),!1),x(["shadow-none","shadow-sm","shadow","shadow-lg"])],parts:[]},{key:"background",labelKey:"inline_style.section_background",properties:[h("background-color",{labelKey:"inline_style.prop_background_color",type:"color"}),h("background-image",{labelKey:"inline_style.prop_background_image",type:"url"}),h("background-size",{labelKey:"inline_style.prop_background_size"}),h("background-position",{labelKey:"inline_style.prop_background_position"}),h("background-repeat",{labelKey:"inline_style.prop_background_repeat",type:"select",values:["repeat","no-repeat","repeat-x","repeat-y","space","round"]})],catalog:[x(C("bg-",L.concat(["body","body-secondary","body-tertiary","white","black","transparent"])).concat(C("bg-",L,"-subtle"),C("text-bg-",L))),x(["bg-gradient"],!1),x(C("bg-opacity-",Oe))],parts:[]},{key:"text",labelKey:"inline_style.section_text",properties:[h("color",{labelKey:"inline_style.prop_color",type:"color"}),h("font-size",{labelKey:"inline_style.prop_font_size"}),h("text-align",{labelKey:"inline_style.prop_text_align",type:"select",values:["start","center","end","left","right","justify"]}),h("text-shadow",{labelKey:"inline_style.prop_text_shadow",type:"shadow"})],catalog:[x(C("text-",L.concat(["body","body-secondary","body-tertiary","white","black"])).concat(C("text-",L,"-emphasis"),["text-body-emphasis"])),x(C("text-opacity-",["25","50","75","100"])),x(C("fs-",["1","2","3","4","5","6"])),x(C("text-decoration-",["none","underline","line-through"]))],parts:["textalign"]},{key:"typography",labelKey:"inline_style.section_typography",properties:[h("font-family",{labelKey:"inline_style.prop_font_family"}),h("font-weight",{labelKey:"inline_style.prop_font_weight",type:"select",values:["100","200","300","400","500","600","700","800","900","normal","bold","lighter","bolder"]}),h("font-style",{labelKey:"inline_style.prop_font_style",type:"select",values:["normal","italic","oblique"]}),h("line-height",{labelKey:"inline_style.prop_line_height"}),h("letter-spacing",{labelKey:"inline_style.prop_letter_spacing"}),h("text-transform",{labelKey:"inline_style.prop_text_transform",type:"select",values:["none","uppercase","lowercase","capitalize"]}),h("text-decoration",{labelKey:"inline_style.prop_text_decoration",type:"select",values:["none","underline","line-through","overline"]})],catalog:[x(C("fw-",["lighter","light","normal","medium","semibold","bold","bolder"])),x(C("fst-",["italic","normal"])),x(C("lh-",["1","sm","base","lg"])),x(C("text-",["lowercase","uppercase","capitalize"])),x(["font-monospace"],!1),x(["text-wrap","text-nowrap"]),x(["text-break"],!1)],parts:[]},{key:"display",labelKey:"inline_style.section_display",properties:[h("display",{labelKey:"inline_style.prop_display",type:"select",values:["none","block","inline","inline-block","flex","inline-flex","grid","inline-grid"]}),h("opacity",{labelKey:"inline_style.prop_opacity"}),h("overflow",{labelKey:"inline_style.prop_overflow",type:"select",values:["visible","hidden","auto","scroll","clip"]}),h("visibility",{labelKey:"inline_style.prop_visibility",type:"select",values:["visible","hidden"]})],catalog:[x(C("opacity-",["0","25","50","75","100"])),x(C("overflow-",["auto","hidden","visible","scroll"])),x(["visible","invisible"])],parts:["display"]},{key:"flex",labelKey:"inline_style.section_flex",properties:[],catalog:[x(["vstack","hstack"],!0,["row"])],parts:["flex"]},{key:"position",labelKey:"inline_style.section_position",properties:[h("position",{labelKey:"inline_style.prop_position",type:"select",values:["static","relative","absolute","fixed","sticky"]}),h("top",{labelKey:"inline_style.prop_top",notOn:B}),h("right",{labelKey:"inline_style.prop_right",notOn:B}),h("bottom",{labelKey:"inline_style.prop_bottom",notOn:B}),h("left",{labelKey:"inline_style.prop_left",notOn:B}),h("z-index",{labelKey:"inline_style.prop_z_index"})],catalog:[x(C("position-",["static","relative","absolute","fixed","sticky"])),x(C("top-",["0","50","100"])),x(C("bottom-",["0","50","100"])),x(C("start-",["0","50","100"])),x(C("end-",["0","50","100"])),x(["translate-middle","translate-middle-x","translate-middle-y"]),x(["z-n1","z-0","z-1","z-2","z-3"]),x(["fixed-top","fixed-bottom"])],parts:["float","sticky"]},{key:"custom",labelKey:"inline_style.section_custom",properties:[],catalog:[],parts:[],custom:!0}];function Ke(e){return fe.filter(function(t){return t.key===e})[0]||null}function le(e,t){return e.onlyOn&&e.onlyOn.indexOf(t)===-1?!1:e.notOn.indexOf(t)===-1}var re="(?:(?:sm|md|lg|xl|xxl)-)?",dt="(?:[0-5]|auto)",ft="(?:"+L.join("|")+"|black|white)",mt="(?:"+L.join("|")+"|body|body-secondary|body-tertiary|white|black|transparent)",yt="(?:"+L.join("|")+"|body|body-secondary|body-tertiary|white|black|muted|black-50|white-50)",pe="border(?:-(?:top|end|bottom|start))?(?:-0)?",Ae="(?:"+L.join("|")+")-subtle",gt="(?:"+L.join("|")+"|body)-emphasis",Te="text-bg-(?:"+L.join("|")+")",de="sticky-"+re;function z(e,t){var n={top:"[ty]?",bottom:"[by]?",left:"[sx]?",right:"[ex]?"}[t];return new RegExp("^"+e+n+"-"+re+dt+"$")}var ht={width:/^(?:w-(?:25|50|75|100|auto)|vw-100)$/,height:/^(?:h-(?:25|50|75|100|auto)|vh-100)$/,"max-width":/^mw-100$/,"max-height":/^mh-100$/,"min-width":/^min-vw-100$/,"min-height":/^min-vh-100$/,"margin-top":z("m","top"),"margin-right":z("m","right"),"margin-bottom":z("m","bottom"),"margin-left":z("m","left"),"padding-top":z("p","top"),"padding-right":z("p","right"),"padding-bottom":z("p","bottom"),"padding-left":z("p","left"),"border-width":new RegExp("^(?:"+pe+"|border-[1-5])$"),"border-style":new RegExp("^"+pe+"$"),"border-color":new RegExp("^(?:"+pe+"|border-"+ft+"|border-"+Ae+")$"),"border-radius":/^rounded(?:-(?:[0-5]|circle|pill|top|end|bottom|start))?$/,"box-shadow":/^shadow(?:-(?:none|sm|lg))?$/,"background-color":new RegExp("^(?:bg-"+mt+"|bg-"+Ae+"|"+Te+")$"),"background-image":/^bg-gradient$/,color:new RegExp("^(?:text-"+yt+"|text-"+gt+"|"+Te+")$"),"font-size":/^fs-[1-6]$/,"text-align":new RegExp("^text-"+re+"(?:start|center|end)$"),"text-decoration":/^text-decoration-(?:none|underline|line-through)$/,"font-family":/^font-monospace$/,"font-weight":/^fw-(?:lighter|light|normal|medium|semibold|bold|bolder)$/,"font-style":/^fst-(?:italic|normal)$/,"line-height":/^lh-(?:1|sm|base|lg)$/,"text-transform":/^text-(?:lowercase|uppercase|capitalize)$/,display:new RegExp("^(?:d-"+re+"(?:none|inline|inline-block|block|grid|inline-grid|table|table-row|table-cell|flex|inline-flex)|vstack|hstack)$"),opacity:/^opacity-(?:0|25|50|75|100)$/,overflow:/^overflow-(?:auto|hidden|visible|scroll)$/,visibility:/^(?:visible|invisible)$/,position:new RegExp("^(?:position-(?:static|relative|absolute|fixed|sticky)|fixed-(?:top|bottom)|"+de+"(?:top|bottom))$"),top:new RegExp("^(?:top-(?:0|50|100)|fixed-top|"+de+"top)$"),bottom:new RegExp("^(?:bottom-(?:0|50|100)|fixed-bottom|"+de+"bottom)$"),left:/^start-(?:0|50|100)$/,right:/^end-(?:0|50|100)$/,"z-index":/^z-(?:n1|[0-3])$/};function Le(e,t){var n=ht[e];return n&&t.filter(function(i){return n.test(i)})[0]||null}function vt(e,t){var n={};return Object.keys(t||{}).forEach(function(i){Ke(i)||e.warn('inline_style.sections: there is no "'+i+'" section: ignored')}),fe.forEach(function(i){var l=t&&t[i.key]!==void 0?t[i.key]:!0;if(l!==!1){var o=i.properties.map(function(d){return d.name}),u=i.properties,c=!0;l&&typeof l=="object"&&(Array.isArray(l.properties)&&(l.properties.forEach(function(d){o.indexOf(d)===-1&&e.warn("inline_style.sections."+i.key+': "'+d+'" is not one of its properties: ignored')}),u=l.properties.filter(function(d){return o.indexOf(d)!==-1}).map(function(d){return i.properties[o.indexOf(d)]})),l.catalog===!1&&(c=!1)),n[i.key]={section:i,properties:u,catalog:c}}}),n}function Pe(e){var t=e.settings.inline_style||{};return{sections:vt(e,t.sections),spacing:t.spacing,visibility:t.visibility}}var je=new WeakMap,bt=0;function _t(e){return(e.getAttribute("class")||"").split(/\s+/).filter(Boolean)}function ze(e,t,n,i){var l=String(i==null?"":i).trim(),o=/\s*!\s*important\s*$/i.exec(l),u;return o&&(l=l.slice(0,o.index).trim(),u="important"),e.setHostStyle(t,n,l,u)}function Ne(e,t,n){$(e,"is-invalid",!t),t?e.removeAttribute("title"):e.setAttribute("title",n.t("inline_style.invalid"))}function me(e,t){R(e,"is-invalid")||(e.value=t)}function X(e){return g("input",{type:"text",class:"form-control form-control-sm "+(e||"")})}var xt=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i;function Re(e){var t=xt.exec(e.trim());if(!t)return null;var n=t[1];return n.length===3&&(n=n.split("").map(function(i){return i+i}).join("")),"#"+n.toLowerCase()}function He(e){var t=g("div",{class:"input-group input-group-sm ge-inline-style-color"}),n=t.appendChild(g("input",{type:"color",class:"form-control form-control-color"})),i=t.appendChild(X());return n.addEventListener("input",function(){D(i,"is-invalid"),i.value=n.value,e(n.value,i)}),i.addEventListener("change",function(){var l=Re(i.value);l&&(n.value=l),e(i.value,i)}),{element:t,set:function(l){me(i,l);var o=Re(l);o&&(n.value=o)}}}var wt=/^url\(\s*(["']?)(.*)\1\s*\)$/i;function Et(e){var t=wt.exec(e.trim());return t?t[1]?t[2].replace(/\\(["\\])/g,"$1"):t[2]:e}function Ct(e){return e=e.trim(),e===""||/^(?:none|inherit|initial|unset|revert)$/i.test(e)||/^[a-z-]+\(/i.test(e)?e:'url("'+e.replace(/(["\\])/g,"\\$1")+'")'}function St(e){for(var t=[],n=0,i="",l=0;l<e.length;l++){var o=e.charAt(l);o==="("&&n++,o===")"&&n--,n===0&&(o===" "||o===",")?(i&&t.push(i),o===","&&t.push(","),i=""):i+=o}return i&&t.push(i),t}var Ot=/^-?(?:\d*\.)?\d+(?:[a-z%]+)?$/i,$e=[{name:"x",labelKey:"inline_style.shadow_x"},{name:"y",labelKey:"inline_style.shadow_y"},{name:"blur",labelKey:"inline_style.shadow_blur"},{name:"spread",labelKey:"inline_style.shadow_spread"}];function Be(e,t){if(e=e.trim(),e==="")return{inset:!1,lengths:[],color:""};if(/var\(/i.test(e))return null;var n=St(e);if(n.indexOf(",")!==-1)return null;var i=!1,l=[],o=[];return n.forEach(function(u){t&&u.toLowerCase()==="inset"?i=!0:Ot.test(u)?l.push(u):o.push(u)}),o.length>1||l.length<2||l.length>(t?4:3)||o.length&&/^(?:none|inherit|initial|unset|revert)$/i.test(o[0])?null:{inset:i,lengths:l,color:o[0]||""}}function kt(e,t){for(var n=e.lengths.slice(),i=n.length-1;i>=0;i--)n[i]===""&&n.slice(i+1).some(Boolean)&&(n[i]="0");if(n=n.filter(Boolean),!n.length&&!e.color&&!e.inset)return"";for(;n.length<2;)n.push("0");return(t&&e.inset?"inset ":"")+n.join(" ")+(e.color?" "+e.color:"")}function At(e,t,n,i){var l=n==="box-shadow",o=g("div",{class:"ge-inline-style-shadow"}),u=!1;function c(b,S){var k=ze(e,t,n,b);return Ne(S,k,e),k&&i(),k}function d(b){o.innerHTML="";var S=o.appendChild(g("div",{class:"ge-inline-style-shadow-builder"})),k=l?$e:$e.slice(0,3),s=k.map(function(E,O){var K=S.appendChild(g("label",{class:"ge-inline-style-shadow-part"}));K.appendChild(g("span",{class:"ge-inline-style-shadow-label"},e.t(E.labelKey)));var A=K.appendChild(X("ge-inline-style-shadow-"+E.name));return A.value=b.lengths[O]||"",A}),r=S.appendChild(g("label",{class:"ge-inline-style-shadow-part ge-inline-style-shadow-color"}));r.appendChild(g("span",{class:"ge-inline-style-shadow-label"},e.t("inline_style.shadow_color")));var a=He(function(){v()});r.appendChild(a.element),a.set(b.color);var p=null;if(l){var w=S.appendChild(g("label",{class:"form-check ge-inline-style-shadow-inset"}));p=w.appendChild(g("input",{type:"checkbox",class:"form-check-input"})),w.appendChild(g("span",{class:"form-check-label"},e.t("inline_style.shadow_inset"))),p.checked=b.inset,p.addEventListener("change",function(){v()})}s.forEach(function(E){E.addEventListener("change",function(){v()})});var _=o.appendChild(g("a",{href:"#",class:"ge-inline-style-shadow-mode"},e.t("inline_style.shadow_text_mode")));_.addEventListener("click",function(E){E.preventDefault(),u=!0,f()});function v(){var E=kt({inset:p?p.checked:!1,lengths:s.map(function(O){return O.value.trim()}),color:N(a.element,'input[type="text"]').value.trim()},l);c(E,s[0])}}function m(b){o.innerHTML="";var S=o.appendChild(X("ge-inline-style-shadow-text"));if(S.value=b,S.addEventListener("change",function(){if(S.value.trim()===""){c("",S)&&(u=!1,f());return}c(S.value,S)}),Be(b,l)){var k=o.appendChild(g("a",{href:"#",class:"ge-inline-style-shadow-mode"},e.t("inline_style.shadow_builder_mode")));k.addEventListener("click",function(s){s.preventDefault(),u=!1,f()})}}var y=null;function f(){if(!o.querySelector(".is-invalid")){var b=e.hostStyle(t,n).value,S=Be(b,l);b===y&&o.firstChild&&u===!!o.querySelector(".ge-inline-style-shadow-text")||(y=b,u||!S?(u=!!b||u,m(b)):d(S))}}return{element:o,render:f,value:function(){return e.hostStyle(t,n).value}}}function De(e,t,n,i){var l=g("div",{class:"ge-inline-style-field","data-ge-inline-style-property":n.name}),o=l.appendChild(g("label",{class:"ge-inline-style-label"},e.t(n.labelKey))),u;function c(){return e.hostStyle(t,n.name).value}function d(s,r){var a=ze(e,t,n.name,s);Ne(r,a,e),a&&i()}if(n.type==="select"){var m=l.appendChild(g("select",{class:"form-select form-select-sm"}));m.addEventListener("change",function(){d(m.value,m)}),u=function(){var s=c(),r=n.values.slice();s&&r.indexOf(s)===-1&&r.push(s),m.innerHTML="",m.appendChild(g("option",{value:""},"")),r.forEach(function(a){m.appendChild(g("option",{value:a},a))}),m.value=s}}else if(n.type==="color"){var y=He(function(s,r){d(s,r)});l.appendChild(y.element),u=function(){y.set(c())}}else if(n.type==="url"){var f=l.appendChild(X());f.addEventListener("change",function(){d(Ct(f.value),f)}),u=function(){me(f,Et(c()))}}else if(n.type==="shadow"){var b=At(e,t,n.name,i);l.appendChild(b.element),u=b.render}else{var S=l.appendChild(X());S.addEventListener("change",function(){d(S.value,S)}),u=function(){me(S,c())}}var k=l.querySelector("input, select");return k&&(k.id="ge-inline-style-field-"+ ++bt,o.setAttribute("for",k.id)),l.appendChild(g("small",{class:"ge-inline-style-note ge-inline-style-overridden"})),je.set(l,function(){u();var s=c()?Le(n.name,_t(t)):null,r=j(l,".ge-inline-style-overridden");r.textContent=s?e.t("inline_style.overridden",{class:s}):"",F(r,!!s)}),ye(l),l}function ye(e){var t=je.get(e);t&&t()}function Me(e){return(e.getAttribute("class")||"").split(/\s+/).filter(Boolean)}function Tt(e,t,n,i){var l=e.detailsOf(t),o=l?N(l,".ge-classes"):null;if(o){var u=Me(t).indexOf(i)!==-1,c=o.value.split(/\s+/).filter(Boolean).filter(function(d){return d===i?!1:!(n.exclusive&&!u&&n.classes.indexOf(d)!==-1)});u||c.push(i),o.value=c.join(" "),o.dispatchEvent(new Event("change",{bubbles:!0}))}}function Ie(e,t,n,i){var l=i.filter(function(u){return le(u,n)});if(!l.length)return null;var o=g("div",{class:"ge-inline-style-catalog"});return o.appendChild(g("span",{class:"ge-inline-style-label"},e.t("inline_style.catalog"))),l.forEach(function(u){var c=o.appendChild(g("div",{class:"ge-inline-style-chips"}));u.classes.forEach(function(d){var m=c.appendChild(g("button",{type:"button",class:"btn btn-sm btn-outline-secondary ge-inline-style-chip","data-ge-class":d,"aria-pressed":"false"},d));m.addEventListener("click",function(){Tt(e,t,u,d)})})}),ge(o,t),o}function ge(e,t){var n=Me(t);P(e,".ge-inline-style-chip").forEach(function(i){var l=n.indexOf(i.getAttribute("data-ge-class"))!==-1;$(i,"active",l),i.setAttribute("aria-pressed",l?"true":"false")})}function Kt(e){var t=document.createElement("div").style,n=[];t.setProperty(e,"initial");for(var i=0;i<t.length;i++)n.push(t[i]);return n.length?n:[e]}function Fe(e){var t=document.createElement("div").style;return t.cssText=e,t}function Ue(e,t,n,i){var l={};n.forEach(function(m){Kt(m).forEach(function(y){l[y]=!0})});var o=g("div",{class:"ge-inline-style-custom"}),u=o.appendChild(g("textarea",{class:"form-control form-control-sm font-monospace ge-inline-style-custom-css",rows:"4",spellcheck:"false","aria-label":e.t("inline_style.section_custom")}));function c(){for(var m=Fe(e.hostStyle(t)),y=document.createElement("div").style,f=0;f<m.length;f++){var b=m[f];l[b]||y.setProperty(b,m.getPropertyValue(b),m.getPropertyPriority(b))}return y}u.addEventListener("change",function(){var m=c(),y=Fe(u.value),f;for(f=0;f<m.length;f++)y.getPropertyValue(m[f])===""&&e.setHostStyle(t,m[f],"");for(f=0;f<y.length;f++)e.setHostStyle(t,y[f],y.getPropertyValue(y[f]),y.getPropertyPriority(y[f]));d(),i()});function d(){document.activeElement!==u&&(u.value=c().cssText.replace(/; /g,`;
|
|
4
|
+
`))}return d(),{element:o,render:d}}function Lt(e,t){return t==="row"||t==="column"||t==="element"||t==="section"||H(e,"[data-ge-container]")?!0:!!j(e,".ge-tools-drawer.ge-pane-drawer")}function Pt(e,t,n){return n==="plain"&&(n="text"),e.appliesTo.indexOf(n)!==-1?!0:e.appliesTo.indexOf("container")!==-1&&H(t,"[data-ge-container]")}function Rt(e,t,n,i){if(t.panel)return t.panel(n,i);var l=t.families.filter(function(u){return Pt(u,n,i)}).map(function(u){return e.utilityField(n,u.name)});if(l.length<2)return l[0]||null;var o=g("div",{class:"ge-inline-style-part-fields"});return l.forEach(function(u){o.appendChild(u)}),o}function Ge(e,t,n,i){var l=Lt(t,n),o=g("div",{class:"accordion ge-inline-style"}),u=[],c=[],d=[],m=null,y=null,f=function(){s()};function b(r,a){var p=o.appendChild(g("div",{class:"accordion-item","data-ge-inline-style-section":r})),w=p.appendChild(g("h2",{class:"accordion-header"})),_=w.appendChild(g("button",{type:"button",class:"accordion-button collapsed","aria-expanded":"false"},e.t(a))),v=p.appendChild(g("div",{class:"accordion-collapse collapse"})),E=v.appendChild(g("div",{class:"accordion-body"}));return _.addEventListener("click",function(){var O=!R(v,"show");i.state.open=O?r:null,i.opened(i.state.open)}),{entry:p,body:E}}function S(r,a){$(N(r,".accordion-collapse"),"show",a);var p=N(r,".accordion-button");$(p,"collapsed",!a),p.setAttribute("aria-expanded",a?"true":"false")}if(Object.keys(i.sections).forEach(function(r){var a=i.sections[r],p=a.section;if(p.custom){l&&(y=b(r,p.labelKey));return}var w=p.parts.map(function(A){return i.parts[A]?Rt(e,i.parts[A],t,n):null}).filter(Boolean),_=l?a.properties.filter(function(A){return le(A,n)}):[],v=l&&a.catalog?Ie(e,t,n,p.catalog):null;if(!(!w.length&&!_.length&&!v)){var E=b(r,p.labelKey).body;if(w.forEach(function(A){E.appendChild(Z(A,"ge-inline-style-part"))}),_.length){var O=E.appendChild(g("small",{class:"ge-inline-style-note ge-inline-style-all-sizes"},e.t("inline_style.all_sizes")));d.push(O);var K=E.appendChild(g("div",{class:"ge-inline-style-fields"}));_.forEach(function(A){var G=De(e,t,A,f);u.push(G),K.appendChild(G)})}v&&(c.push(v),E.appendChild(v))}}),y&&(m=Ue(e,t,u.map(function(r){return r.getAttribute("data-ge-inline-style-property")}),f),y.body.appendChild(m.element),o.appendChild(y.entry)),!o.children.length)return null;function k(r){P(o,".accordion-item").forEach(function(a){S(a,a.getAttribute("data-ge-inline-style-section")===r)})}k(i.state.open);function s(){u.forEach(ye),c.forEach(function(r){ge(r,t)}),m&&m.render(),d.forEach(function(r){F(r,e.view()!=="all")})}return s(),{element:o,render:s,open:k}}Object.assign(T.locales.en,{"inline_style.section_title":"Style","inline_style.dialog_title":"Style: {kind}","inline_style.section_size":"Size","inline_style.section_spacing":"Spacing","inline_style.section_border":"Border","inline_style.section_background":"Background","inline_style.section_text":"Text","inline_style.section_typography":"Typography","inline_style.section_display":"Display","inline_style.section_flex":"Flex","inline_style.section_position":"Position","inline_style.section_custom":"Custom css","inline_style.all_sizes":"Applies to every size","inline_style.overridden":"The class {class} takes priority over this value","inline_style.invalid":"Not a value this property takes","inline_style.catalog":"Bootstrap classes","inline_style.shadow_x":"X","inline_style.shadow_y":"Y","inline_style.shadow_blur":"Blur","inline_style.shadow_spread":"Spread","inline_style.shadow_color":"Color","inline_style.shadow_inset":"Inset","inline_style.shadow_text_mode":"Edit as text","inline_style.shadow_builder_mode":"Edit with the builder","inline_style.prop_width":"Width","inline_style.prop_height":"Height","inline_style.prop_min_width":"Min width","inline_style.prop_min_height":"Min height","inline_style.prop_max_width":"Max width","inline_style.prop_max_height":"Max height","inline_style.prop_margin_top":"Margin top","inline_style.prop_margin_right":"Margin right","inline_style.prop_margin_bottom":"Margin bottom","inline_style.prop_margin_left":"Margin left","inline_style.prop_padding_top":"Padding top","inline_style.prop_padding_right":"Padding right","inline_style.prop_padding_bottom":"Padding bottom","inline_style.prop_padding_left":"Padding left","inline_style.prop_border_width":"Border width","inline_style.prop_border_style":"Border style","inline_style.prop_border_color":"Border color","inline_style.prop_border_radius":"Border radius","inline_style.prop_box_shadow":"Shadow","inline_style.prop_background_color":"Background color","inline_style.prop_background_image":"Background image","inline_style.prop_background_size":"Background size","inline_style.prop_background_position":"Background position","inline_style.prop_background_repeat":"Background repeat","inline_style.prop_color":"Color","inline_style.prop_font_size":"Font size","inline_style.prop_text_align":"Text align","inline_style.prop_text_shadow":"Text shadow","inline_style.prop_font_family":"Font family","inline_style.prop_font_weight":"Font weight","inline_style.prop_font_style":"Font style","inline_style.prop_line_height":"Line height","inline_style.prop_letter_spacing":"Letter spacing","inline_style.prop_text_transform":"Text transform","inline_style.prop_text_decoration":"Text decoration","inline_style.prop_display":"Display","inline_style.prop_opacity":"Opacity","inline_style.prop_overflow":"Overflow","inline_style.prop_visibility":"Visibility","inline_style.prop_position":"Position","inline_style.prop_top":"Top","inline_style.prop_right":"Right","inline_style.prop_bottom":"Bottom","inline_style.prop_left":"Left","inline_style.prop_z_index":"Z-index"});var Ve=["spacing","textalign","display","flex","float","sticky","drawerflow"];T.utilities["inline-style"]=function(e){var t=Pe(e),n={spacing:be(e,t.spacing),textalign:_e(e),display:xe(e,t.visibility),flex:we(e,t.spacing),float:Ee(e),sticky:Ce(e),drawerflow:Se(e)},i=[],l={sections:t.sections,parts:n,state:{open:null},opened:function(c){i.forEach(function(d){d.accordion.open(c)})}};function o(c){return function(){var d=arguments;Ve.forEach(function(m){n[m][c]&&n[m][c].apply(null,d)})}}var u=o("onRefresh");return{families:Ve.reduce(function(c,d){return c.concat(n[d].families.map(function(m){return Object.assign({},m,{panel:!1})}))},[]),panelSection:function(c,d){var m=Ge(e,c,d,l);return m?(i.push({node:c,accordion:m}),{labelKey:"inline_style.section_title",titleKey:"inline_style.dialog_title",body:m.element}):null},preview:function(c,d,m){return n.spacing.preview(c,d,m)},onRefresh:function(c){u(c),i=i.filter(function(d){return d.accordion.element.isConnected}),i.forEach(function(d){(d.node===c||c.contains(d.node))&&d.accordion.render()})},drawerTools:o("drawerTools"),onDeinit:function(){o("onDeinit")(),i=[]}}};})();
|