From 08451fa8e55a6a178e2a139dad21d31f54f45bbf Mon Sep 17 00:00:00 2001 From: Boone B Gorges Date: Thu, 26 Dec 2024 07:35:19 -0600 Subject: [PATCH] Update plugin: gravityformssurvery. Old version: 4.0.0 New Version: 4.1.1 See #3474. --- .../assets/css/dist/admin.css | 370 +++++++++--------- .../assets/css/dist/admin.min.css | 2 +- .../assets/css/dist/theme-foundation.css | 38 +- .../assets/css/dist/theme-foundation.min.css | 2 +- .../assets/css/dist/theme-framework.css | 85 ++-- .../assets/css/dist/theme-framework.min.css | 2 +- .../assets/css/dist/theme.css | 2 +- .../assets/css/dist/theme.min.css | 2 +- .../plugins/gravityformssurvey/change_log.txt | 13 + .../gravityformssurvey/class-gf-survey.php | 152 +++---- .../includes/class-gf-field-rating.php | 12 +- .../includes/class-gf-field-survey.php | 13 + .../js/gsurvey_form_editor.js | 21 +- .../js/gsurvey_form_editor.min.js | 2 +- .../languages/gravityformssurvey.pot | 70 ++-- .../plugins/gravityformssurvey/survey.php | 4 +- 16 files changed, 378 insertions(+), 412 deletions(-) diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.css index ee1887c598..542c0f5aad 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.css @@ -5,7 +5,7 @@ Gravity Forms Administration Styles For the Survey Add-On https://www.gravityforms.com Gravity Forms is a Rocketgenius project -copyright 2008-2023 Rocketgenius Inc. +copyright 2008-2024 Rocketgenius Inc. https://www.rocketgenius.com this may not be re-distributed without the express written permission of the author. @@ -25,13 +25,13 @@ AND ANY CHANGES MADE HERE WILL BE OVERWRITTEN. width: 312px !important; } -.gform-flyout--choices-ui--survey .gfield_choice_radio, .gform-flyout--choices-ui--survey input#field_choice_values_enabled, .gform-flyout--choices-ui--survey input#field_choice_values_enabled + label, .gform-flyout--choices-ui--survey .field-choice-label--radio, .gform-flyout--choices-ui--survey .field-choice-label--rank, .gform-flyout--choices-ui--survey .field-choice-label--rating, .gform-flyout--choices-ui--survey .field-choice-label--checkbox, .gform-flyout--choices-ui--survey .field-choice-label--select, .gform-flyout--choices-ui--survey .choice_with_value li input.field-choice-value, .gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_value, .gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_label { +.gform-flyout--choices-ui--survey .gfield_choice_radio, .gform-flyout--choices-ui--survey input#field_choice_values_enabled, .gform-flyout--choices-ui--survey input#field_choice_values_enabled + label, .gform-flyout--choices-ui--survey .field-choice-label--radio, .gform-flyout--choices-ui--survey .field-choice-label--rank, .gform-flyout--choices-ui--survey .field-choice-label--rating, .gform-flyout--choices-ui--survey .field-choice-label--checkbox, .gform-flyout--choices-ui--survey .field-choice-label--select, .gform-flyout--choices-ui--survey .field-choice-clear-default, .gform-flyout--choices-ui--survey .choice_with_value li input.field-choice-value, .gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_value, .gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_label { display: none !important; } .gform-flyout--choices-ui--survey:not(.gform-flyout--choices-ui--input-type-radio) .other_choice_setting { - display: none !important; - } + display: none !important; + } html[dir="rtl"] .gform-flyout--choices-ui--survey #gfield_settings_choices_container label:first-child { margin-right: 2rem; @@ -110,12 +110,12 @@ html:not([dir="rtl"]) .gform-flyout--choices-ui--survey #gfield_settings_choices } .gsurvey-likert-scoring-enabled .gsurvey-likert-column-score { - display: inline !important; -} + display: inline !important; + } .gsurvey-likert-scoring-enabled .gsurvey-likert-column-text { - width: 298px !important; -} + width: 298px !important; + } /*-- rank --*/ @@ -151,25 +151,6 @@ html:not([dir="rtl"]) .gform-flyout--choices-ui--survey #gfield_settings_choices display: none !important; } -.toplevel_page_gf_edit_forms .gravity-theme .gsurvey-rank-choice { - align-items: center; - background-image: none; - display: flex; - padding: 0; -} - -.toplevel_page_gf_edit_forms .gsurvey-rank-choice::before { - background: url(../../../images/arrow-handle.svg) center center no-repeat; - content: ""; - cursor: move; - display: inline-block; - height: 16px; - margin-right: 0.5rem; - position: relative; - white-space: nowrap; - width: 16px; -} - .gsurvey-likert-setting-columns-header { align-items: center; display: flex; @@ -183,145 +164,145 @@ html:not([dir="rtl"]) .gform-flyout--choices-ui--survey #gfield_settings_choices /* Likert ​--------------------------------------------------------------- */ -.gform-settings-panel__content table.gsurvey-likert { - border: none; - border-radius: 0; - border-spacing: 0; - box-shadow: none; - width: 100%; -} - .gform-settings-panel__content table.form-table table.gsurvey-likert tr:last-child td, .gform-settings-panel__content table.form-table table.gsurvey-likert tr:last-child th { - border-right: none !important; - border-top: none !important; -} + border-right: none !important; + border-top: none !important; + } + +.gform-settings-panel__content table.gsurvey-likert { + border: none; + border-radius: 0; + border-spacing: 0; + box-shadow: none; + width: 100%; + } .gform-settings-panel__content table.gsurvey-likert td { - border: 0; - overflow: hidden; - padding: 3px; - position: relative; - text-align: center; - vertical-align: middle; - width: 200px; -} + border: 0; + overflow: hidden; + padding: 3px; + position: relative; + text-align: center; + vertical-align: middle; + width: 200px; + } + +.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice { + background-image: none; + background-position: center center; + background-repeat: no-repeat; + background-size: 16px 16px; + height: 26px; + } + +.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice::after { + border: 1px solid #9092b2; + border-radius: 50%; + content: " "; + display: block; + height: 1.625rem; + left: calc(50% - 0.875rem); + position: absolute; + top: calc(50% - 0.875rem); + width: 1.625rem; + } + +.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover { + background-color: rgba(223, 239, 255, 0.4); + } + +.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus { + background-color: rgba(223, 239, 255, 1) !important; + } + +.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected { + background-color: transparent; + background-image: url(../../../images/green-check-icon.svg); + background-position: center; + background-repeat: no-repeat; + background-size: auto; + } + +.gform-settings-panel__content table.gsurvey-likert td input { + left: -9999px; + position: absolute; + top: 0; + } .gform-settings-panel__content table.gsurvey-likert tr { - height: 40px; -} + height: 40px; + } .gform-settings-panel__content table.gsurvey-likert tr th.gsurvey-likert-choice-label, .gform-settings-panel__content table.gsurvey-likert tr td.gsurvey-likert-choice-label { - color: #242748; - font-size: 13px; - font-weight: 600; -} + color: #242748; + font-size: 13px; + font-weight: 600; + } .gform-settings-panel__content table.gsurvey-likert tr td.gsurvey-likert-results { - background-color: transparent !important; -} + background-color: transparent !important; + } .gform-settings-panel__content table.gsurvey-likert tr td { - border-right: none; - border-top: none; -} + border-right: none; + border-top: none; + } .gform-settings-panel__content table.gsurvey-likert th.gsurvey-likert-choice-label { - background-color: transparent; - border-right: none; - border-top: none; - line-height: 1.2; - padding: 3px 0; - text-align: center; - vertical-align: middle; -} + background-color: transparent; + border-right: none; + border-top: none; + line-height: 1.2; + padding: 3px 0; + text-align: center; + vertical-align: middle; + } .gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-row-label { - background-color: transparent !important; - color: #242748; - font-weight: 600; - padding-left: 0.5rem; -} + background-color: transparent !important; + color: #242748; + font-weight: 600; + padding-left: 0.5rem; + } .gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-row-label, .gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-choice { - border-top: none; -} + border-top: none; + } .gform-settings-panel__content body.rtl table.gsurvey-likert th.gsurvey-likert-choice-label { - text-align: center !important; - vertical-align: middle; -} - -.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover { - background-color: rgba(223, 239, 255, 0.4); -} - -.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus { - background-color: rgba(223, 239, 255, 1) !important; -} - -.gform-settings-panel__content table.gsurvey-likert td input { - left: -9999px; - position: absolute; - top: 0; -} + text-align: center !important; + vertical-align: middle; + } .gform-settings-panel__content body.rtl table.gsurvey-likert td.gsurvey-likert-choice input[type="radio"] { - display: none; -} - -.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice::after { - border: 1px solid #9092b2; - border-radius: 50%; - content: " "; - display: block; - height: 1.625rem; - left: calc(50% - 0.875rem); - position: absolute; - top: calc(50% - 0.875rem); - width: 1.625rem; -} - -.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice { - background-image: none; - background-position: center center; - background-repeat: no-repeat; - background-size: 16px 16px; - height: 26px; -} - -.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected { - background-color: transparent; - background-image: url(../../../images/green-check-icon.svg); - background-position: center; - background-repeat: no-repeat; - background-size: auto; -} + display: none; + } /* Rank -------------------------------------------------------------------- */ .gform-settings__content .gsurvey-rank-field-results table { - border: none; - border-radius: 0; - border-spacing: 0; - box-shadow: none; - table-layout: fixed; - width: 100%; -} + border: none; + border-radius: 0; + border-spacing: 0; + box-shadow: none; + table-layout: fixed; + width: 100%; + } -.gform-settings-panel__content .gsurvey-rank-field-results table tr td.gresults-rank-field-label, .gform-settings-panel__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-rank, .gform-settings-panel__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-score { - color: #242748; - font-size: 13px; - font-weight: 600; - text-align: center !important; -} +.gform-settings__content .gsurvey-rank-field-results table tr td.gresults-rank-field-label, .gform-settings__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-rank, .gform-settings__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-score { + color: #242748; + font-size: 13px; + font-weight: 600; + text-align: center !important; + } -.gform-settings-panel__content .gsurvey-rank-field-results table tr td.gresults-rank-field-rank, .gform-settings-panel__content .gsurvey-rank-field-results table tr td.gresults-rank-field-score { - text-align: center; -} +.gform-settings__content .gsurvey-rank-field-results table tr td.gresults-rank-field-rank, .gform-settings__content .gsurvey-rank-field-results table tr td.gresults-rank-field-score { + text-align: center; + } -.gform-settings-panel__content .gsurvey-rank-field-results table tr { - height: 40px; -} +.gform-settings__content .gsurvey-rank-field-results table tr { + height: 40px; + } ul.gsurvey-rank.ui-sortable { display: inline-block; @@ -335,7 +316,26 @@ body:not(.wp-admin) ul.gsurvey-rank.ui-sortable { width: auto; } -.gsurvey-rank-choice { +.toplevel_page_gf_edit_forms .gravity-theme .gsurvey-rank-choice { + align-items: center; + background-image: none; + display: flex; + padding: 0; +} + +.toplevel_page_gf_edit_forms .gravity-theme .gsurvey-rank-choice::before { + background: url(../../../images/arrow-handle.svg) center center no-repeat; + content: ""; + cursor: move; + display: inline-block; + height: 16px; + margin-right: 0.5rem; + position: relative; + white-space: nowrap; + width: 16px; + } + +.gravity-theme .gsurvey-rank-choice { background-image: url(../../../images/arrow-handle.svg); background-position: 0 center; background-repeat: no-repeat; @@ -348,12 +348,12 @@ body:not(.wp-admin) ul.gsurvey-rank.ui-sortable { width: auto; } -body:not(.wp-admin) .gsurvey-rank-choice.ui-sortable-helper { +body:not(.wp-admin) .gravity-theme .gsurvey-rank-choice.ui-sortable-helper { border-bottom: 1px dashed rgba(204, 204, 204, 1); border-top: 1px dashed rgba(204, 204, 204, 1); } -html[dir="rtl"] .gsurvey-rank-choice, body.rtl .gsurvey-rank-choice, html[dir="rtl"] .gform_wrapper ul li.gsurvey-rank-choice, body.rtl .gform_wrapper ul li.gsurvey-rank-choice { +html[dir="rtl"] .gravity-theme .gsurvey-rank-choice, body.rtl .gravity-theme .gsurvey-rank-choice, html[dir="rtl"] .gravity-theme ul li.gsurvey-rank-choice, body.rtl .gravity-theme ul li.gsurvey-rank-choice { background-position: 100% center; padding-right: 1.5rem !important; } @@ -361,46 +361,58 @@ html[dir="rtl"] .gsurvey-rank-choice, body.rtl .gsurvey-rank-choice, html[dir="r /* Rating ---------------------------------------------------------------- */ .gform-settings-panel__content .gsurvey-rating:not(:checked) > input { - clip: rect(0, 0, 0, 0); - position: absolute; - } + clip: rect(0, 0, 0, 0); + position: absolute; + } .gform-settings-panel__content .gsurvey-rating:not(:checked) > label { - background-image: url(../../../images/star0.svg); - background-position: center center; - background-repeat: no-repeat; - background-size: 16px 16px; - color: #ddd; - cursor: pointer; - float: right; - font-size: 18px !important; - line-height: 18px; - overflow: hidden; - white-space: nowrap; - width: 18px; - } + background-image: url(../../../images/star0.svg); + background-position: center center; + background-repeat: no-repeat; + background-size: 16px 16px; + color: #ddd; + cursor: pointer; + float: right; + font-size: 18px !important; + line-height: 18px; + overflow: hidden; + white-space: nowrap; + width: 18px; + } + +.gform-settings-panel__content .gsurvey-rating:not(:checked) > label:hover, .gform-settings-panel__content .gsurvey-rating:not(:checked) > label:hover ~ label { + background-image: url(../../../images/star1.svg); + background-position: center center; + background-repeat: no-repeat; + background-size: 16px 16px; + } .gform-settings-panel__content .gsurvey-rating:not(:checked) > label::before { - content: "\00a0\00a0\00a0\00a0"; - } + content: "\00a0\00a0\00a0\00a0"; + } -.gform-settings-panel__content .gsurvey-rating > input:checked ~ label { - background-image: url(../../../images/star1.svg); - background-position: center center; - background-repeat: no-repeat; - background-size: 16px 16px; +.gform-settings-panel__content .gsurvey-rating { + float: left; } -.gform-settings-panel__content .gsurvey-rating:not(:checked) > label:hover, .gform-settings-panel__content .gsurvey-rating:not(:checked) > label:hover ~ label { - background-image: url(../../../images/star1.svg); - background-position: center center; - background-repeat: no-repeat; - background-size: 16px 16px; - } +.gform-settings-panel__content .gsurvey-rating > input:checked ~ label { + background-image: url(../../../images/star1.svg); + background-position: center center; + background-repeat: no-repeat; + background-size: 16px 16px; + } .gform-settings-panel__content .gsurvey-rating > input:checked + label:hover, .gform-settings-panel__content .gsurvey-rating > input:checked + label:hover ~ label, .gform-settings-panel__content .gsurvey-rating > input:checked ~ label:hover, .gform-settings-panel__content .gsurvey-rating > input:checked ~ label:hover ~ label, .gform-settings-panel__content .gsurvey-rating > label:hover ~ input:checked ~ label { - color: #ea0; - } + color: #ea0; + } + +.gform-settings-panel__content .gsurvey-rating > input[type="radio"] { + position: absolute; + } + +html[dir="rtl"] .gform-settings-panel__content .gsurvey-rating, body.rtl .gform-settings-panel__content .gsurvey-rating { + flex-direction: row-reverse; + } .gform-settings-panel__content .gsurvey-rating-wrapper::after { clear: both; @@ -409,19 +421,7 @@ html[dir="rtl"] .gsurvey-rank-choice, body.rtl .gsurvey-rank-choice, html[dir="r } html[dir="rtl"] .gform-settings-panel__content .gsurvey-rating-wrapper, body.rtl .gform-settings-panel__content .gsurvey-rating-wrapper, html[dir="rtl"] .gform-settings-panel__content .gsurvey-rating, body.rtl .gform-settings-panel__content .gsurvey-rating { - display: flex; - } - -.gform-settings-panel__content .gsurvey-rating { - float: left; - } - -html[dir="rtl"] .gform-settings-panel__content .gsurvey-rating, body.rtl .gform-settings-panel__content .gsurvey-rating { - flex-direction: row-reverse; - } - -.gform-settings-panel__content .gsurvey-rating > input[type="radio"] { - position: absolute; + display: flex; } @media only screen and (min-width: 769px) { diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.min.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.min.css index fabf7a05d0..f9104ecc1c 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.min.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/admin.min.css @@ -1 +1 @@ -.gsurvey-survey-field .choice_with_value .gfield_choice_header_label,.gsurvey-survey-field .choice_with_value .gfield_choice_header_value,.gsurvey-survey-field .choice_with_value li input.field-choice-value,.gsurvey-survey-field .field-choice-label--radio,.gsurvey-survey-field .field-choice-label--rank,.gsurvey-survey-field .field-choice-label--rating,.gsurvey-survey-field .gfield_choice_radio,.gsurvey-survey-field .label_setting,.gsurvey-survey-field .other_choice_setting,.gsurvey-survey-field input#field_choice_values_enabled,.gsurvey-survey-field input#field_choice_values_enabled+label{display:none!important}.gsurvey-survey-field .choice_with_value li input.field-choice-text{width:312px!important}.gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_label,.gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_value,.gform-flyout--choices-ui--survey .choice_with_value li input.field-choice-value,.gform-flyout--choices-ui--survey .field-choice-label--checkbox,.gform-flyout--choices-ui--survey .field-choice-label--radio,.gform-flyout--choices-ui--survey .field-choice-label--rank,.gform-flyout--choices-ui--survey .field-choice-label--rating,.gform-flyout--choices-ui--survey .field-choice-label--select,.gform-flyout--choices-ui--survey .gfield_choice_radio,.gform-flyout--choices-ui--survey input#field_choice_values_enabled,.gform-flyout--choices-ui--survey input#field_choice_values_enabled+label,.gform-flyout--choices-ui--survey:not(.gform-flyout--choices-ui--input-type-radio) .other_choice_setting{display:none!important}html[dir=rtl] .gform-flyout--choices-ui--survey #gfield_settings_choices_container label:first-child{margin-right:2rem}html:not([dir=rtl]) .gform-flyout--choices-ui--survey #gfield_settings_choices_container label:first-child{margin-left:2rem}.gsurvey-likert-field .choice_with_value .gfield_choice_header_label,.gsurvey-likert-field .choice_with_value .gfield_choice_header_value,.gsurvey-likert-field .choice_with_value li input.field-choice-value,.gsurvey-likert-field .choices_setting,.gsurvey-likert-field .duplicate_setting,.gsurvey-likert-field .other_choice_setting,.gsurvey-likert-field input#field_choice_values_enabled,.gsurvey-likert-field input#field_choice_values_enabled+label{display:none!important}#gsurvey-likert-columns-container,#gsurvey-likert-rows-container{border:1px solid #dfdfdf;margin:8px 0 14px;max-height:230px;overflow:auto;padding:2px 0 6px}.panel-block-tabs__body--settings #gsurvey-likert-columns-container,.panel-block-tabs__body--settings #gsurvey-likert-rows-container{border:0;box-sizing:border-box;margin:auto;padding:auto;width:100%}.panel-block-tabs__body--settings #gsurvey-likert-columns{margin:auto;padding:0}.panel-block-tabs__body--settings #gsurvey-likert-columns li.field-choice-row,.panel-block-tabs__body--settings #gsurvey-likert-rows li.field-choice-row{padding:0}.panel-block-tabs__body--settings #gsurvey-likert-columns .field-choice-row+.field-choice-row,.panel-block-tabs__body--settings #gsurvey-likert-rows .field-choice-row+.field-choice-row{margin-top:.5rem}.panel-block-tabs__body--settings .gsurvey-likert-scoring-enabled #gsurvey-likert-columns .gsurvey-likert-column-text{max-width:12rem}.panel-block-tabs__body--settings .gsurvey-likert-scoring-enabled #gsurvey-likert-columns .gsurvey-likert-column-score{margin:0 .3rem;width:3.5rem}.gsurvey-liket-column-handle,.gsurvey-liket-row-handle{cursor:move;vertical-align:middle}.gsurvey-likert-handle--legacy{border-right:1px solid #ccc}#gsurvey-likert-columns li:not(.field-choice-row),#gsurvey-likert-rows li:not(.field-choice-row){margin:0;padding:0 10px!important}#gsurvey-likert-columns li input.gsurvey-likert-column-text,#gsurvey-likert-rows li input.gsurvey-likert-row-text{max-width:16.125rem}.gsurvey-likert-column-score{display:none;text-align:center;width:28px}.gsurvey-likert-scoring-enabled .gsurvey-likert-column-score{display:inline!important}.gsurvey-likert-scoring-enabled .gsurvey-likert-column-text{width:298px!important}.gsurvey-rank-field .choice_with_value .gfield_choice_header_label,.gsurvey-rank-field .choice_with_value .gfield_choice_header_value,.gsurvey-rank-field .choice_with_value li input.field-choice-value,.gsurvey-rank-field .gfield_choice_radio,.gsurvey-rank-field .other_choice_setting,.gsurvey-rank-field .rules_setting,.gsurvey-rank-field input#field_choice_values_enabled,.gsurvey-rank-field input#field_choice_values_enabled+label{display:none!important}.gsurvey-rank-field .choice_with_value li input.field-choice-text{width:312px!important}.gsurvey-rating-field .choice_with_value .gfield_choice_header_label,.gsurvey-rating-field .choice_with_value .gfield_choice_header_value,.gsurvey-rating-field .choice_with_value li input.field-choice-value,.gsurvey-rating-field .duplicate_setting,.gsurvey-rating-field .other_choice_setting,.gsurvey-rating-field input#field_choice_values_enabled,.gsurvey-rating-field input#field_choice_values_enabled+label{display:none!important}.gsurvey-likert-field .choice_with_value li input.field-choice-text,.gsurvey-rank-field .choice_with_value li input.field-choice-text,.gsurvey-rating-field .choice_with_value li input.field-choice-text,.gsurvey-survey-field .choice_with_value li input.field-choice-text{width:312px!important}.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .field-choice-text--radio,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .field-choice-text--rank,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .field-choice-text--rating{max-width:18rem}.gsurvey-likert-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-likert-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value,.gsurvey-rank-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-rank-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value,.gsurvey-rating-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-rating-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value{display:none!important}.toplevel_page_gf_edit_forms .gravity-theme .gsurvey-rank-choice{align-items:center;background-image:none;display:flex;padding:0}.toplevel_page_gf_edit_forms .gsurvey-rank-choice:before{background:url(../../../images/arrow-handle.svg) 50% no-repeat;content:"";cursor:move;display:inline-block;height:16px;margin-right:.5rem;position:relative;white-space:nowrap;width:16px}.gsurvey-likert-setting-columns-header{align-items:center;display:flex;justify-content:space-between;padding:.5rem 0}.gsurvey-survey-field .panel-block-tabs__body--settings .gsurvey-likert-setting-columns-header>*{margin:0}.gform-settings-panel__content table.gsurvey-likert{border:none;border-radius:0;border-spacing:0;box-shadow:none;width:100%}.gform-settings-panel__content table.form-table table.gsurvey-likert tr:last-child td,.gform-settings-panel__content table.form-table table.gsurvey-likert tr:last-child th{border-right:none!important;border-top:none!important}.gform-settings-panel__content table.gsurvey-likert td{border:0;overflow:hidden;padding:3px;position:relative;text-align:center;vertical-align:middle;width:200px}.gform-settings-panel__content table.gsurvey-likert tr{height:40px}.gform-settings-panel__content table.gsurvey-likert tr td.gsurvey-likert-choice-label,.gform-settings-panel__content table.gsurvey-likert tr th.gsurvey-likert-choice-label{color:#242748;font-size:13px;font-weight:600}.gform-settings-panel__content table.gsurvey-likert tr td.gsurvey-likert-results{background-color:transparent!important}.gform-settings-panel__content table.gsurvey-likert tr td{border-right:none;border-top:none}.gform-settings-panel__content table.gsurvey-likert th.gsurvey-likert-choice-label{background-color:transparent;border-right:none;border-top:none;line-height:1.2;padding:3px 0;text-align:center;vertical-align:middle}.gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-row-label{background-color:transparent!important;color:#242748;font-weight:600;padding-left:.5rem}.gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-choice,.gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-row-label{border-top:none}.gform-settings-panel__content body.rtl table.gsurvey-likert th.gsurvey-likert-choice-label{text-align:center!important;vertical-align:middle}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover{background-color:rgba(223,239,255,.4)}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus{background-color:#dfefff!important}.gform-settings-panel__content table.gsurvey-likert td input{left:-9999px;position:absolute;top:0}.gform-settings-panel__content body.rtl table.gsurvey-likert td.gsurvey-likert-choice input[type=radio]{display:none}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice:after{border:1px solid #9092b2;border-radius:50%;content:" ";display:block;height:1.625rem;left:calc(50% - .875rem);position:absolute;top:calc(50% - .875rem);width:1.625rem}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice{background-image:none;background-position:50%;background-repeat:no-repeat;background-size:16px 16px;height:26px}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected{background-color:transparent;background-image:url(../../../images/green-check-icon.svg);background-position:50%;background-repeat:no-repeat;background-size:auto}.gform-settings__content .gsurvey-rank-field-results table{border:none;border-radius:0;border-spacing:0;box-shadow:none;table-layout:fixed;width:100%}.gform-settings-panel__content .gsurvey-rank-field-results table tr td.gresults-rank-field-label,.gform-settings-panel__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-rank,.gform-settings-panel__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-score{color:#242748;font-size:13px;font-weight:600;text-align:center!important}.gform-settings-panel__content .gsurvey-rank-field-results table tr td.gresults-rank-field-rank,.gform-settings-panel__content .gsurvey-rank-field-results table tr td.gresults-rank-field-score{text-align:center}.gform-settings-panel__content .gsurvey-rank-field-results table tr{height:40px}ul.gsurvey-rank.ui-sortable{list-style:none;padding-left:0}body:not(.wp-admin) ul.gsurvey-rank.ui-sortable,ul.gsurvey-rank.ui-sortable{display:inline-block;width:auto}.gsurvey-rank-choice{background-image:url(../../../images/arrow-handle.svg);background-position:0;background-repeat:no-repeat;background-size:16px 16px;border-bottom:1px solid hsla(0,0%,80%,0);border-top:1px solid hsla(0,0%,80%,0);cursor:move;padding:.5rem 1.5rem!important;white-space:nowrap;width:auto}body:not(.wp-admin) .gsurvey-rank-choice.ui-sortable-helper{border-bottom:1px dashed #ccc;border-top:1px dashed #ccc}body.rtl .gform_wrapper ul li.gsurvey-rank-choice,body.rtl .gsurvey-rank-choice,html[dir=rtl] .gform_wrapper ul li.gsurvey-rank-choice,html[dir=rtl] .gsurvey-rank-choice{background-position:100%;padding-right:1.5rem!important}.gform-settings-panel__content .gsurvey-rating:not(:checked)>input{clip:rect(0,0,0,0);position:absolute}.gform-settings-panel__content .gsurvey-rating:not(:checked)>label{background-image:url(../../../images/star0.svg);background-position:50%;background-repeat:no-repeat;background-size:16px 16px;color:#ddd;cursor:pointer;float:right;font-size:18px!important;line-height:18px;overflow:hidden;white-space:nowrap;width:18px}.gform-settings-panel__content .gsurvey-rating:not(:checked)>label:before{content:"\00a0\00a0\00a0\00a0"}.gform-settings-panel__content .gsurvey-rating:not(:checked)>label:hover,.gform-settings-panel__content .gsurvey-rating:not(:checked)>label:hover~label,.gform-settings-panel__content .gsurvey-rating>input:checked~label{background-image:url(../../../images/star1.svg);background-position:50%;background-repeat:no-repeat;background-size:16px 16px}.gform-settings-panel__content .gsurvey-rating>input:checked+label:hover,.gform-settings-panel__content .gsurvey-rating>input:checked+label:hover~label,.gform-settings-panel__content .gsurvey-rating>input:checked~label:hover,.gform-settings-panel__content .gsurvey-rating>input:checked~label:hover~label,.gform-settings-panel__content .gsurvey-rating>label:hover~input:checked~label{color:#ea0}.gform-settings-panel__content .gsurvey-rating-wrapper:after{clear:both;content:"";display:block}body.rtl .gform-settings-panel__content .gsurvey-rating,body.rtl .gform-settings-panel__content .gsurvey-rating-wrapper,html[dir=rtl] .gform-settings-panel__content .gsurvey-rating,html[dir=rtl] .gform-settings-panel__content .gsurvey-rating-wrapper{display:flex}.gform-settings-panel__content .gsurvey-rating{float:left}body.rtl .gform-settings-panel__content .gsurvey-rating,html[dir=rtl] .gform-settings-panel__content .gsurvey-rating{flex-direction:row-reverse}.gform-settings-panel__content .gsurvey-rating>input[type=radio]{position:absolute}@media only screen and (min-width:769px){.gform-settings-panel__content table.gsurvey-likert th.gsurvey-likert-row-label:first-child{border-right:none}} \ No newline at end of file +.gsurvey-survey-field .choice_with_value .gfield_choice_header_label,.gsurvey-survey-field .choice_with_value .gfield_choice_header_value,.gsurvey-survey-field .choice_with_value li input.field-choice-value,.gsurvey-survey-field .field-choice-label--radio,.gsurvey-survey-field .field-choice-label--rank,.gsurvey-survey-field .field-choice-label--rating,.gsurvey-survey-field .gfield_choice_radio,.gsurvey-survey-field .label_setting,.gsurvey-survey-field .other_choice_setting,.gsurvey-survey-field input#field_choice_values_enabled,.gsurvey-survey-field input#field_choice_values_enabled+label{display:none!important}.gsurvey-survey-field .choice_with_value li input.field-choice-text{width:312px!important}.gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_label,.gform-flyout--choices-ui--survey .choice_with_value .gfield_choice_header_value,.gform-flyout--choices-ui--survey .choice_with_value li input.field-choice-value,.gform-flyout--choices-ui--survey .field-choice-clear-default,.gform-flyout--choices-ui--survey .field-choice-label--checkbox,.gform-flyout--choices-ui--survey .field-choice-label--radio,.gform-flyout--choices-ui--survey .field-choice-label--rank,.gform-flyout--choices-ui--survey .field-choice-label--rating,.gform-flyout--choices-ui--survey .field-choice-label--select,.gform-flyout--choices-ui--survey .gfield_choice_radio,.gform-flyout--choices-ui--survey input#field_choice_values_enabled,.gform-flyout--choices-ui--survey input#field_choice_values_enabled+label{display:none!important}.gform-flyout--choices-ui--survey:not(.gform-flyout--choices-ui--input-type-radio) .other_choice_setting{display:none!important}html[dir=rtl] .gform-flyout--choices-ui--survey #gfield_settings_choices_container label:first-child{margin-right:2rem}html:not([dir=rtl]) .gform-flyout--choices-ui--survey #gfield_settings_choices_container label:first-child{margin-left:2rem}.gsurvey-likert-field .choice_with_value .gfield_choice_header_label,.gsurvey-likert-field .choice_with_value .gfield_choice_header_value,.gsurvey-likert-field .choice_with_value li input.field-choice-value,.gsurvey-likert-field .choices_setting,.gsurvey-likert-field .duplicate_setting,.gsurvey-likert-field .other_choice_setting,.gsurvey-likert-field input#field_choice_values_enabled,.gsurvey-likert-field input#field_choice_values_enabled+label{display:none!important}#gsurvey-likert-columns-container,#gsurvey-likert-rows-container{border:1px solid #dfdfdf;margin:8px 0 14px;max-height:230px;overflow:auto;padding:2px 0 6px}.panel-block-tabs__body--settings #gsurvey-likert-columns-container,.panel-block-tabs__body--settings #gsurvey-likert-rows-container{border:0 none;box-sizing:border-box;margin:auto;padding:auto;width:100%}.panel-block-tabs__body--settings #gsurvey-likert-columns{margin:auto;padding:0}.panel-block-tabs__body--settings #gsurvey-likert-columns li.field-choice-row,.panel-block-tabs__body--settings #gsurvey-likert-rows li.field-choice-row{padding:0}.panel-block-tabs__body--settings #gsurvey-likert-columns .field-choice-row+.field-choice-row,.panel-block-tabs__body--settings #gsurvey-likert-rows .field-choice-row+.field-choice-row{margin-top:.5rem}.panel-block-tabs__body--settings .gsurvey-likert-scoring-enabled #gsurvey-likert-columns .gsurvey-likert-column-text{max-width:12rem}.panel-block-tabs__body--settings .gsurvey-likert-scoring-enabled #gsurvey-likert-columns .gsurvey-likert-column-score{margin:0 .3rem;width:3.5rem}.gsurvey-liket-column-handle,.gsurvey-liket-row-handle{cursor:move;vertical-align:middle}.gsurvey-likert-handle--legacy{border-right:1px solid #ccc}#gsurvey-likert-columns li:not(.field-choice-row),#gsurvey-likert-rows li:not(.field-choice-row){margin:0;padding:0 10px!important}#gsurvey-likert-columns li input.gsurvey-likert-column-text,#gsurvey-likert-rows li input.gsurvey-likert-row-text{max-width:16.125rem}.gsurvey-likert-column-score{display:none;text-align:center;width:28px}.gsurvey-likert-scoring-enabled .gsurvey-likert-column-score{display:inline!important}.gsurvey-likert-scoring-enabled .gsurvey-likert-column-text{width:298px!important}.gsurvey-rank-field .choice_with_value .gfield_choice_header_label,.gsurvey-rank-field .choice_with_value .gfield_choice_header_value,.gsurvey-rank-field .choice_with_value li input.field-choice-value,.gsurvey-rank-field .gfield_choice_radio,.gsurvey-rank-field .other_choice_setting,.gsurvey-rank-field .rules_setting,.gsurvey-rank-field input#field_choice_values_enabled,.gsurvey-rank-field input#field_choice_values_enabled+label{display:none!important}.gsurvey-rank-field .choice_with_value li input.field-choice-text{width:312px!important}.gsurvey-rating-field .choice_with_value .gfield_choice_header_label,.gsurvey-rating-field .choice_with_value .gfield_choice_header_value,.gsurvey-rating-field .choice_with_value li input.field-choice-value,.gsurvey-rating-field .duplicate_setting,.gsurvey-rating-field .other_choice_setting,.gsurvey-rating-field input#field_choice_values_enabled,.gsurvey-rating-field input#field_choice_values_enabled+label{display:none!important}.gsurvey-rating-field .choice_with_value li input.field-choice-text{width:312px!important}.gsurvey-likert-field .choice_with_value li input.field-choice-text,.gsurvey-rank-field .choice_with_value li input.field-choice-text,.gsurvey-rating-field .choice_with_value li input.field-choice-text,.gsurvey-survey-field .choice_with_value li input.field-choice-text{width:312px!important}.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .field-choice-text--radio,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .field-choice-text--rank,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .field-choice-text--rating{max-width:18rem}.gsurvey-likert-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-likert-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value,.gsurvey-rank-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-rank-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value,.gsurvey-rating-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-rating-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_label,.gsurvey-survey-field #gfield_settings_choices_container.choice_with_value .gfield_choice_header_value{display:none!important}.gsurvey-likert-setting-columns-header{align-items:center;display:flex;justify-content:space-between;padding:.5rem 0}.gsurvey-survey-field .panel-block-tabs__body--settings .gsurvey-likert-setting-columns-header>*{margin:0}.gform-settings-panel__content table.form-table table.gsurvey-likert tr:last-child td,.gform-settings-panel__content table.form-table table.gsurvey-likert tr:last-child th{border-right:none!important;border-top:none!important}.gform-settings-panel__content table.gsurvey-likert{border:none;border-radius:0;border-spacing:0;box-shadow:none;width:100%}.gform-settings-panel__content table.gsurvey-likert td{border:0;overflow:hidden;padding:3px;position:relative;text-align:center;vertical-align:middle;width:200px}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice{background-image:none;background-position:center center;background-repeat:no-repeat;background-size:16px 16px;height:26px}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice::after{border:1px solid #9092b2;border-radius:50%;content:" ";display:block;height:1.625rem;left:calc(50% - .875rem);position:absolute;top:calc(50% - .875rem);width:1.625rem}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover{background-color:rgba(223,239,255,.4)}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus{background-color:#dfefff!important}.gform-settings-panel__content table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected{background-color:transparent;background-image:url(../../../images/green-check-icon.svg);background-position:center;background-repeat:no-repeat;background-size:auto}.gform-settings-panel__content table.gsurvey-likert td input{left:-9999px;position:absolute;top:0}.gform-settings-panel__content table.gsurvey-likert tr{height:40px}.gform-settings-panel__content table.gsurvey-likert tr td.gsurvey-likert-choice-label,.gform-settings-panel__content table.gsurvey-likert tr th.gsurvey-likert-choice-label{color:#242748;font-size:13px;font-weight:600}.gform-settings-panel__content table.gsurvey-likert tr td.gsurvey-likert-results{background-color:transparent!important}.gform-settings-panel__content table.gsurvey-likert tr td{border-right:none;border-top:none}.gform-settings-panel__content table.gsurvey-likert th.gsurvey-likert-choice-label{background-color:transparent;border-right:none;border-top:none;line-height:1.2;padding:3px 0;text-align:center;vertical-align:middle}.gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-row-label{background-color:transparent!important;color:#242748;font-weight:600;padding-left:.5rem}.gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-choice,.gform-settings-panel__content table.gsurvey-likert .gsurvey-likert-row-label{border-top:none}.gform-settings-panel__content body.rtl table.gsurvey-likert th.gsurvey-likert-choice-label{text-align:center!important;vertical-align:middle}.gform-settings-panel__content body.rtl table.gsurvey-likert td.gsurvey-likert-choice input[type=radio]{display:none}.gform-settings__content .gsurvey-rank-field-results table{border:none;border-radius:0;border-spacing:0;box-shadow:none;table-layout:fixed;width:100%}.gform-settings__content .gsurvey-rank-field-results table tr td.gresults-rank-field-label,.gform-settings__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-rank,.gform-settings__content .gsurvey-rank-field-results table tr:first-child td.gresults-rank-field-score{color:#242748;font-size:13px;font-weight:600;text-align:center!important}.gform-settings__content .gsurvey-rank-field-results table tr td.gresults-rank-field-rank,.gform-settings__content .gsurvey-rank-field-results table tr td.gresults-rank-field-score{text-align:center}.gform-settings__content .gsurvey-rank-field-results table tr{height:40px}ul.gsurvey-rank.ui-sortable{display:inline-block;list-style:none;padding-left:0;width:auto}body:not(.wp-admin) ul.gsurvey-rank.ui-sortable{display:inline-block;width:auto}.toplevel_page_gf_edit_forms .gravity-theme .gsurvey-rank-choice{align-items:center;background-image:none;display:flex;padding:0}.toplevel_page_gf_edit_forms .gravity-theme .gsurvey-rank-choice::before{background:url(../../../images/arrow-handle.svg) center center no-repeat;content:"";cursor:move;display:inline-block;height:16px;margin-right:.5rem;position:relative;white-space:nowrap;width:16px}.gravity-theme .gsurvey-rank-choice{background-image:url(../../../images/arrow-handle.svg);background-position:0 center;background-repeat:no-repeat;background-size:16px 16px;border-bottom:1px solid rgba(204,204,204,0);border-top:1px solid rgba(204,204,204,0);cursor:move;padding:.5rem 1.5rem!important;white-space:nowrap;width:auto}body:not(.wp-admin) .gravity-theme .gsurvey-rank-choice.ui-sortable-helper{border-bottom:1px dashed #ccc;border-top:1px dashed #ccc}body.rtl .gravity-theme .gsurvey-rank-choice,body.rtl .gravity-theme ul li.gsurvey-rank-choice,html[dir=rtl] .gravity-theme .gsurvey-rank-choice,html[dir=rtl] .gravity-theme ul li.gsurvey-rank-choice{background-position:100% center;padding-right:1.5rem!important}.gform-settings-panel__content .gsurvey-rating:not(:checked)>input{clip:rect(0,0,0,0);position:absolute}.gform-settings-panel__content .gsurvey-rating:not(:checked)>label{background-image:url(../../../images/star0.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px;color:#ddd;cursor:pointer;float:right;font-size:18px!important;line-height:18px;overflow:hidden;white-space:nowrap;width:18px}.gform-settings-panel__content .gsurvey-rating:not(:checked)>label:hover,.gform-settings-panel__content .gsurvey-rating:not(:checked)>label:hover~label{background-image:url(../../../images/star1.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px}.gform-settings-panel__content .gsurvey-rating:not(:checked)>label::before{content:"\00a0\00a0\00a0\00a0"}.gform-settings-panel__content .gsurvey-rating{float:left}.gform-settings-panel__content .gsurvey-rating>input:checked~label{background-image:url(../../../images/star1.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px}.gform-settings-panel__content .gsurvey-rating>input:checked+label:hover,.gform-settings-panel__content .gsurvey-rating>input:checked+label:hover~label,.gform-settings-panel__content .gsurvey-rating>input:checked~label:hover,.gform-settings-panel__content .gsurvey-rating>input:checked~label:hover~label,.gform-settings-panel__content .gsurvey-rating>label:hover~input:checked~label{color:#ea0}.gform-settings-panel__content .gsurvey-rating>input[type=radio]{position:absolute}body.rtl .gform-settings-panel__content .gsurvey-rating,html[dir=rtl] .gform-settings-panel__content .gsurvey-rating{flex-direction:row-reverse}.gform-settings-panel__content .gsurvey-rating-wrapper::after{clear:both;content:"";display:block}body.rtl .gform-settings-panel__content .gsurvey-rating,body.rtl .gform-settings-panel__content .gsurvey-rating-wrapper,html[dir=rtl] .gform-settings-panel__content .gsurvey-rating,html[dir=rtl] .gform-settings-panel__content .gsurvey-rating-wrapper{display:flex}@media only screen and (min-width:769px){.gform-settings-panel__content table.gsurvey-likert th.gsurvey-likert-row-label:first-child{border-right:none}} \ No newline at end of file diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.css index a4c01e666c..ee28c2ba54 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.css @@ -10,7 +10,7 @@ Survey Add-On. https://www.gravityforms.com Gravity Forms is a Rocketgenius project -copyright 2008-2023 Rocketgenius Inc. +copyright 2008-2024 Rocketgenius Inc. https://www.rocketgenius.com this may not be re-distributed without the express written permission of the author. @@ -24,17 +24,6 @@ AND ANY CHANGES MADE HERE WILL BE OVERWRITTEN. /* Fields */ -/* -NOTE: -Within the var() functions below, when two custom properties are specified, the first -value is the updated Theme Framework CSS API property and the second value is the -deprecated CSS API property. - -Deprecated version (core): 2.8 -End of support version (core): 2.9 -Deprecated version (survey): 3.8.1 -*/ - .gform-theme--foundation table.gsurvey-likert { inline-size: 100%; table-layout: fixed; @@ -42,18 +31,13 @@ Deprecated version (survey): 3.8.1 } .gform-theme--foundation table.gsurvey-likert th, .gform-theme--foundation table.gsurvey-likert td { - -webkit-padding-after: 8px; - padding-block-end: 8px; - -webkit-padding-before: 8px; - padding-block-start: 8px; + padding-block-end: 8px; + padding-block-start: 8px; vertical-align: middle; } .gform-theme--foundation table.gsurvey-likert .gsurvey-likert-row-label { - -webkit-padding-start: var(--gform-theme-padding-inline); - padding-inline-start: var(--gform-theme-padding-inline); - -webkit-padding-start: var(--gf-padding-x, var(--gform-theme-padding-inline)); - padding-inline-start: var(--gf-padding-x, var(--gform-theme-padding-inline)); + padding-inline-start: var(--gf-padding-x); text-align: start; } @@ -81,17 +65,6 @@ Deprecated version (survey): 3.8.1 } } -/* -NOTE: -Within the var() functions below, when two custom properties are specified, the first -value is the updated Theme Framework CSS API property and the second value is the -deprecated CSS API property. - -Deprecated version (core): 2.8 -End of support version (core): 2.9 -Deprecated version (survey): 3.8.1 -*/ - .gform-theme--foundation .gsurvey-rank { display: inline-block; inline-size: auto; @@ -101,8 +74,7 @@ Deprecated version (survey): 3.8.1 cursor: move; inline-size: auto; margin-inline: 0; - padding-block: calc(var(--gform-theme-field-choice-meta-spacing) / 2); - padding-block: calc(var(--gf-field-choice-meta-space, var(--gform-theme-field-choice-meta-spacing)) / 2); + padding-block: calc(var(--gf-field-choice-meta-space) / 2); } .gform-theme--foundation .gsurvey-rating { diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.min.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.min.css index b369a0397a..81d2a03af5 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.min.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-foundation.min.css @@ -1 +1 @@ -.gform-theme--foundation table.gsurvey-likert{inline-size:100%;table-layout:fixed;text-align:center}.gform-theme--foundation table.gsurvey-likert td,.gform-theme--foundation table.gsurvey-likert th{padding-block-end:8px;padding-block-start:8px;vertical-align:middle}.gform-theme--foundation table.gsurvey-likert .gsurvey-likert-row-label{padding-inline-start:var(--gform-theme-padding-inline);padding-inline-start:var(--gf-padding-x,var(--gform-theme-padding-inline));text-align:start}@media (min-device-width:768px) and (max-device-width:1024px),only screen and (max-width:761px){.gform-theme--foundation table.gsurvey-likert thead{left:-9999px;position:absolute;top:-9999px}.gform-theme--foundation table.gsurvey-likert tr{display:block}.gform-theme--foundation table.gsurvey-likert td{display:block;text-align:start;vertical-align:middle}.gform-theme--foundation .gform_fields table.gsurvey-likert td:after{content:attr(data-label);display:inline-block}}.gform-theme--foundation .gsurvey-rank{display:inline-block;inline-size:auto}.gform-theme--foundation .gsurvey-rank .gsurvey-rank-choice{cursor:move;inline-size:auto;margin-inline:0;padding-block:calc(var(--gform-theme-field-choice-meta-spacing)/2);padding-block:calc(var(--gf-field-choice-meta-space, var(--gform-theme-field-choice-meta-spacing))/2)}.gform-theme--foundation .gsurvey-rating{float:left}.gform-theme--foundation .gsurvey-rating>label span{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.gform-theme--foundation .gsurvey-rating:not(:checked)>input{clip:rect(0,0,0,0);position:absolute}.gform-theme--foundation .gsurvey-rating:not(:checked)>label{background-image:url(../../../images/star-unselected.svg);background-position:50%;background-repeat:no-repeat;background-size:28px;block-size:28px;cursor:pointer;float:right;inline-size:34px;overflow:hidden;padding-inline:15px;white-space:nowrap}.gform-theme--foundation .gsurvey-rating:not(:checked)>label:before{content:"\00a0\00a0\00a0\00a0"}.gform-theme--foundation .gsurvey-rating:not(:checked)>label:hover,.gform-theme--foundation .gsurvey-rating:not(:checked)>label:hover~label,.gform-theme--foundation .gsurvey-rating>input:checked~label{background-image:url(../../../images/star-selected.svg);background-position:50%;background-repeat:no-repeat;background-size:28px}body.rtl .gform-theme--foundation .gsurvey-rating,html[dir=rtl] .gform-theme--foundation .gsurvey-rating{flex-direction:row-reverse}.gform-theme--foundation .gsurvey-rating-wrapper:after{clear:both;content:"";display:block}body.rtl .gform-theme--foundation .gsurvey-rating,body.rtl .gform-theme--foundation .gsurvey-rating-wrapper,html[dir=rtl] .gform-theme--foundation .gsurvey-rating,html[dir=rtl] .gform-theme--foundation .gsurvey-rating-wrapper{display:flex} \ No newline at end of file +.gform-theme--foundation table.gsurvey-likert{inline-size:100%;table-layout:fixed;text-align:center}.gform-theme--foundation table.gsurvey-likert td,.gform-theme--foundation table.gsurvey-likert th{padding-block-end:8px;padding-block-start:8px;vertical-align:middle}.gform-theme--foundation table.gsurvey-likert .gsurvey-likert-row-label{padding-inline-start:var(--gf-padding-x);text-align:start}@media only screen and (max-width:761px),(min-device-width:768px) and (max-device-width:1024px){.gform-theme--foundation table.gsurvey-likert thead{left:-9999px;position:absolute;top:-9999px}.gform-theme--foundation table.gsurvey-likert tr{display:block}.gform-theme--foundation table.gsurvey-likert td{display:block;text-align:start;vertical-align:middle}.gform-theme--foundation .gform_fields table.gsurvey-likert td::after{content:attr(data-label);display:inline-block}}.gform-theme--foundation .gsurvey-rank{display:inline-block;inline-size:auto}.gform-theme--foundation .gsurvey-rank .gsurvey-rank-choice{cursor:move;inline-size:auto;margin-inline:0;padding-block:calc(var(--gf-field-choice-meta-space)/ 2)}.gform-theme--foundation .gsurvey-rating{float:left}.gform-theme--foundation .gsurvey-rating>label span{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.gform-theme--foundation .gsurvey-rating:not(:checked)>input{clip:rect(0,0,0,0);position:absolute}.gform-theme--foundation .gsurvey-rating:not(:checked)>label{background-image:url(../../../images/star-unselected.svg);background-position:center center;background-repeat:no-repeat;background-size:28px;block-size:28px;cursor:pointer;float:right;inline-size:34px;overflow:hidden;padding-inline:15px;white-space:nowrap}.gform-theme--foundation .gsurvey-rating:not(:checked)>label::before{content:"\00a0\00a0\00a0\00a0"}.gform-theme--foundation .gsurvey-rating:not(:checked)>label:hover,.gform-theme--foundation .gsurvey-rating:not(:checked)>label:hover~label,.gform-theme--foundation .gsurvey-rating>input:checked~label{background-image:url(../../../images/star-selected.svg);background-position:center center;background-repeat:no-repeat;background-size:28px}body.rtl .gform-theme--foundation .gsurvey-rating,html[dir=rtl] .gform-theme--foundation .gsurvey-rating{flex-direction:row-reverse}.gform-theme--foundation .gsurvey-rating-wrapper::after{clear:both;content:"";display:block}body.rtl .gform-theme--foundation .gsurvey-rating,body.rtl .gform-theme--foundation .gsurvey-rating-wrapper,html[dir=rtl] .gform-theme--foundation .gsurvey-rating,html[dir=rtl] .gform-theme--foundation .gsurvey-rating-wrapper{display:flex} \ No newline at end of file diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.css index ff39166aaf..d614412fc2 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.css @@ -12,7 +12,7 @@ Theme dependencies: - Gravity Forms Theme Foundation for Survey Add-On: theme-foundation.css Gravity Forms is a Rocketgenius project -copyright 2008-2023 Rocketgenius Inc. +copyright 2008-2024 Rocketgenius Inc. https://www.rocketgenius.com this may not be re-distributed without the express written permission of the author. @@ -61,32 +61,14 @@ AND ANY CHANGES MADE HERE WILL BE OVERWRITTEN. * * ----------------------------------------------------------------------------- */ -/* -NOTE: -Within the var() functions below, when two custom properties are specified, the first -value is the updated Theme Framework CSS API property and the second value is the -deprecated CSS API property. - -Deprecated version (core): 2.8 -End of support version (core): 2.9 -Deprecated version (survey): 3.8.1 -*/ - .gform-theme--framework table.gsurvey-likert .gsurvey-likert-choice-label, .gform-theme--framework table.gsurvey-likert .gsurvey-likert-row-label { - color: var(--gform-theme-control-label-color-primary); - color: var(--gf-ctrl-label-color-primary, var(--gform-theme-control-label-color-primary)); - font-family: var(--gform-theme-control-label-font-family-primary); - font-family: var(--gf-ctrl-label-font-family-primary, var(--gform-theme-control-label-font-family-primary)); - font-size: var(--gform-theme-control-label-font-size-primary); - font-size: var(--gf-ctrl-label-font-size-primary, var(--gform-theme-control-label-font-size-primary)); - font-style: var(--gform-theme-control-label-font-style-primary); - font-style: var(--gf-ctrl-label-font-style-primary, var(--gform-theme-control-label-font-style-primary)); - font-weight: var(--gform-theme-control-label-font-weight-primary); - font-weight: var(--gf-ctrl-label-font-weight-primary, var(--gform-theme-control-label-font-weight-primary)); - letter-spacing: var(--gform-theme-control-label-letter-spacing-primary); - letter-spacing: var(--gf-ctrl-label-letter-spacing-primary, var(--gform-theme-control-label-letter-spacing-primary)); - line-height: var(--gform-theme-control-label-line-height-primary); - line-height: var(--gf-ctrl-label-line-height-primary, var(--gform-theme-control-label-line-height-primary)); + color: var(--gf-ctrl-label-color-primary); + font-family: var(--gf-ctrl-label-font-family-primary); + font-size: var(--gf-ctrl-label-font-size-primary); + font-style: var(--gf-ctrl-label-font-style-primary); + font-weight: var(--gf-ctrl-label-font-weight-primary); + letter-spacing: var(--gf-ctrl-label-letter-spacing-primary); + line-height: var(--gf-ctrl-label-line-height-primary); } .gform-theme--framework table.gsurvey-likert tbody tr:nth-child(odd) { @@ -98,55 +80,39 @@ Deprecated version (survey): 3.8.1 } .gform-theme--framework table.gsurvey-likert td:first-child { - border-bottom-left-radius: min(var(--gform-theme-control-border-radius), 15px); - border-bottom-left-radius: min(var(--gf-radius, var(--gform-theme-control-border-radius)), 15px); - border-top-left-radius: min(var(--gform-theme-control-border-radius), 15px); - border-top-left-radius: min(var(--gf-radius, var(--gform-theme-control-border-radius)), 15px); + border-bottom-left-radius: min(var(--gf-radius), 15px); + border-top-left-radius: min(var(--gf-radius), 15px); } .gform-theme--framework table.gsurvey-likert td:last-child { - border-bottom-right-radius: min(var(--gform-theme-control-border-radius), 15px); - border-bottom-right-radius: min(var(--gf-radius, var(--gform-theme-control-border-radius)), 15px); - border-top-right-radius: min(var(--gform-theme-control-border-radius), 15px); - border-top-right-radius: min(var(--gf-radius, var(--gform-theme-control-border-radius)), 15px); + border-bottom-right-radius: min(var(--gf-radius), 15px); + border-top-right-radius: min(var(--gf-radius), 15px); } @media only screen and (max-width: 761px), (min-device-width: 768px) and (max-device-width: 1024px) { .gform-theme--framework table.gsurvey-likert tr { - border-radius: min(var(--gform-theme-control-border-radius), 15px); - border-radius: min(var(--gf-radius, var(--gform-theme-control-border-radius)), 15px); - -webkit-padding-after: 4px; - padding-block-end: 4px; + border-radius: min(var(--gf-radius), 15px); + padding-block-end: 4px; padding-inline: 12px; } .gform-theme--framework table.gsurvey-likert td::after { - color: var(--gform-theme-control-label-color-primary); - color: var(--gf-ctrl-label-color-primary, var(--gform-theme-control-label-color-primary)); - font-family: var(--gform-theme-control-label-font-family-primary); - font-family: var(--gf-ctrl-label-font-family-primary, var(--gform-theme-control-label-font-family-primary)); - font-size: var(--gform-theme-control-label-font-size-primary); - font-size: var(--gf-ctrl-label-font-size-primary, var(--gform-theme-control-label-font-size-primary)); - font-style: var(--gform-theme-control-label-font-style-primary); - font-style: var(--gf-ctrl-label-font-style-primary, var(--gform-theme-control-label-font-style-primary)); - font-weight: var(--gform-theme-control-label-font-weight-primary); - font-weight: var(--gf-ctrl-label-font-weight-primary, var(--gform-theme-control-label-font-weight-primary)); - letter-spacing: var(--gform-theme-control-label-letter-spacing-primary); - letter-spacing: var(--gf-ctrl-letter-spacing-primary, var(--gform-theme-control-label-letter-spacing-primary)); - line-height: var(--gform-theme-control-label-line-height-primary); - line-height: var(--gf-ctrl-label-line-height-primary, var(--gform-theme-control-label-line-height-primary)); - -webkit-padding-start: 8px; - padding-inline-start: 8px; + color: var(--gf-ctrl-label-color-primary); + font-family: var(--gf-ctrl-label-font-family-primary); + font-size: var(--gf-ctrl-label-font-size-primary); + font-style: var(--gf-ctrl-label-font-style-primary); + font-weight: var(--gf-ctrl-label-font-weight-primary); + letter-spacing: var(--gf-ctrl-letter-spacing-primary); + line-height: var(--gf-ctrl-label-line-height-primary); + padding-inline-start: 8px; position: relative; top: 2px; } .gform-theme--framework table.gsurvey-likert .gsurvey-likert-row-label { - -webkit-padding-after: 4px; - padding-block-end: 4px; - -webkit-padding-start: 0; - padding-inline-start: 0; + padding-block-end: 4px; + padding-inline-start: 0; } } @@ -155,8 +121,7 @@ Deprecated version (survey): 3.8.1 background-position: 0 center; background-repeat: no-repeat; background-size: 14px 14px; - -webkit-padding-start: 27px; - padding-inline-start: 27px; + padding-inline-start: 27px; } html[dir="rtl"] .gform-theme--framework .gsurvey-rank-choice, body.rtl .gform-theme--framework .gsurvey-rank-choice { diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.min.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.min.css index c73718a4d7..8d9a799181 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.min.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme-framework.min.css @@ -1 +1 @@ -.gform-theme--framework{--gf-survey-field-likert-row-odd-bg-color:#f2f3f5;--gf-survey-icon-control-rank:url("data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0a1 1 0 0 1 .707.293l3 3a1 1 0 0 1-1.414 1.414L4 2.414 1.707 4.707A1 1 0 0 1 .293 3.293l3-3A1 1 0 0 1 4 0ZM.293 9.293a1 1 0 0 1 1.414 0L4 11.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414Z' fill='%23686E77'/%3E%3C/svg%3E")}.gform-theme--framework table.gsurvey-likert .gsurvey-likert-choice-label,.gform-theme--framework table.gsurvey-likert .gsurvey-likert-row-label{color:var(--gform-theme-control-label-color-primary);color:var(--gf-ctrl-label-color-primary,var(--gform-theme-control-label-color-primary));font-family:var(--gform-theme-control-label-font-family-primary);font-family:var(--gf-ctrl-label-font-family-primary,var(--gform-theme-control-label-font-family-primary));font-size:var(--gform-theme-control-label-font-size-primary);font-size:var(--gf-ctrl-label-font-size-primary,var(--gform-theme-control-label-font-size-primary));font-style:var(--gform-theme-control-label-font-style-primary);font-style:var(--gf-ctrl-label-font-style-primary,var(--gform-theme-control-label-font-style-primary));font-weight:var(--gform-theme-control-label-font-weight-primary);font-weight:var(--gf-ctrl-label-font-weight-primary,var(--gform-theme-control-label-font-weight-primary));letter-spacing:var(--gform-theme-control-label-letter-spacing-primary);letter-spacing:var(--gf-ctrl-label-letter-spacing-primary,var(--gform-theme-control-label-letter-spacing-primary));line-height:var(--gform-theme-control-label-line-height-primary);line-height:var(--gf-ctrl-label-line-height-primary,var(--gform-theme-control-label-line-height-primary))}.gform-theme--framework table.gsurvey-likert tbody tr:nth-child(odd){background-color:var(--gf-survey-field-likert-row-odd-bg-color)}.gform-theme--framework table.gsurvey-likert tbody tr:nth-child(2n){background-color:transparent}.gform-theme--framework table.gsurvey-likert td:first-child{border-bottom-left-radius:min(var(--gform-theme-control-border-radius),15px);border-bottom-left-radius:min(var(--gf-radius,var(--gform-theme-control-border-radius)),15px);border-top-left-radius:min(var(--gform-theme-control-border-radius),15px);border-top-left-radius:min(var(--gf-radius,var(--gform-theme-control-border-radius)),15px)}.gform-theme--framework table.gsurvey-likert td:last-child{border-bottom-right-radius:min(var(--gform-theme-control-border-radius),15px);border-bottom-right-radius:min(var(--gf-radius,var(--gform-theme-control-border-radius)),15px);border-top-right-radius:min(var(--gform-theme-control-border-radius),15px);border-top-right-radius:min(var(--gf-radius,var(--gform-theme-control-border-radius)),15px)}@media (min-device-width:768px) and (max-device-width:1024px),only screen and (max-width:761px){.gform-theme--framework table.gsurvey-likert tr{border-radius:min(var(--gform-theme-control-border-radius),15px);border-radius:min(var(--gf-radius,var(--gform-theme-control-border-radius)),15px);padding-block-end:4px;padding-inline:12px}.gform-theme--framework table.gsurvey-likert td:after{color:var(--gform-theme-control-label-color-primary);color:var(--gf-ctrl-label-color-primary,var(--gform-theme-control-label-color-primary));font-family:var(--gform-theme-control-label-font-family-primary);font-family:var(--gf-ctrl-label-font-family-primary,var(--gform-theme-control-label-font-family-primary));font-size:var(--gform-theme-control-label-font-size-primary);font-size:var(--gf-ctrl-label-font-size-primary,var(--gform-theme-control-label-font-size-primary));font-style:var(--gform-theme-control-label-font-style-primary);font-style:var(--gf-ctrl-label-font-style-primary,var(--gform-theme-control-label-font-style-primary));font-weight:var(--gform-theme-control-label-font-weight-primary);font-weight:var(--gf-ctrl-label-font-weight-primary,var(--gform-theme-control-label-font-weight-primary));letter-spacing:var(--gform-theme-control-label-letter-spacing-primary);letter-spacing:var(--gf-ctrl-letter-spacing-primary,var(--gform-theme-control-label-letter-spacing-primary));line-height:var(--gform-theme-control-label-line-height-primary);line-height:var(--gf-ctrl-label-line-height-primary,var(--gform-theme-control-label-line-height-primary));padding-inline-start:8px;position:relative;top:2px}.gform-theme--framework table.gsurvey-likert .gsurvey-likert-row-label{padding-block-end:4px;padding-inline-start:0}}.gform-theme--framework .gsurvey-rank-choice{background-image:var(--gf-survey-icon-control-rank);background-position:0;background-repeat:no-repeat;background-size:14px 14px;padding-inline-start:27px}body.rtl .gform-theme--framework .gsurvey-rank-choice,html[dir=rtl] .gform-theme--framework .gsurvey-rank-choice{background-position:100%} \ No newline at end of file +.gform-theme--framework{--gf-survey-field-likert-row-odd-bg-color:#f2f3f5}.gform-theme--framework{--gf-survey-icon-control-rank:url("data:image/svg+xml,%3Csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0C4.26522 5.96046e-08 4.51957 0.105357 4.70711 0.292893L7.70711 3.29289C8.09763 3.68342 8.09763 4.31658 7.70711 4.70711C7.31658 5.09763 6.68342 5.09763 6.29289 4.70711L4 2.41421L1.70711 4.70711C1.31658 5.09763 0.683417 5.09763 0.292893 4.70711C-0.0976311 4.31658 -0.097631 3.68342 0.292893 3.29289L3.29289 0.292893C3.48043 0.105357 3.73478 0 4 0ZM0.292893 9.29289C0.683417 8.90237 1.31658 8.90237 1.70711 9.29289L4 11.5858L6.29289 9.29289C6.68342 8.90237 7.31658 8.90237 7.70711 9.29289C8.09763 9.68342 8.09763 10.3166 7.70711 10.7071L4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.0976311 9.68342 0.292893 9.29289Z' fill='%23686E77'/%3E%3C/svg%3E")}.gform-theme--framework table.gsurvey-likert .gsurvey-likert-choice-label,.gform-theme--framework table.gsurvey-likert .gsurvey-likert-row-label{color:var(--gf-ctrl-label-color-primary);font-family:var(--gf-ctrl-label-font-family-primary);font-size:var(--gf-ctrl-label-font-size-primary);font-style:var(--gf-ctrl-label-font-style-primary);font-weight:var(--gf-ctrl-label-font-weight-primary);letter-spacing:var(--gf-ctrl-label-letter-spacing-primary);line-height:var(--gf-ctrl-label-line-height-primary)}.gform-theme--framework table.gsurvey-likert tbody tr:nth-child(odd){background-color:var(--gf-survey-field-likert-row-odd-bg-color)}.gform-theme--framework table.gsurvey-likert tbody tr:nth-child(2n){background-color:transparent}.gform-theme--framework table.gsurvey-likert td:first-child{border-bottom-left-radius:min(var(--gf-radius),15px);border-top-left-radius:min(var(--gf-radius),15px)}.gform-theme--framework table.gsurvey-likert td:last-child{border-bottom-right-radius:min(var(--gf-radius),15px);border-top-right-radius:min(var(--gf-radius),15px)}@media only screen and (max-width:761px),(min-device-width:768px) and (max-device-width:1024px){.gform-theme--framework table.gsurvey-likert tr{border-radius:min(var(--gf-radius),15px);padding-block-end:4px;padding-inline:12px}.gform-theme--framework table.gsurvey-likert td::after{color:var(--gf-ctrl-label-color-primary);font-family:var(--gf-ctrl-label-font-family-primary);font-size:var(--gf-ctrl-label-font-size-primary);font-style:var(--gf-ctrl-label-font-style-primary);font-weight:var(--gf-ctrl-label-font-weight-primary);letter-spacing:var(--gf-ctrl-letter-spacing-primary);line-height:var(--gf-ctrl-label-line-height-primary);padding-inline-start:8px;position:relative;top:2px}.gform-theme--framework table.gsurvey-likert .gsurvey-likert-row-label{padding-block-end:4px;padding-inline-start:0}}.gform-theme--framework .gsurvey-rank-choice{background-image:var(--gf-survey-icon-control-rank);background-position:0 center;background-repeat:no-repeat;background-size:14px 14px;padding-inline-start:27px}body.rtl .gform-theme--framework .gsurvey-rank-choice,html[dir=rtl] .gform-theme--framework .gsurvey-rank-choice{background-position:100% center} \ No newline at end of file diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.css index ad8f9908bb..fbee5cee45 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.css @@ -12,7 +12,7 @@ Theme dependencies: - Gravity Forms Basic Theme: basic.css Gravity Forms is a Rocketgenius project -copyright 2008-2023 Rocketgenius Inc. +copyright 2008-2024 Rocketgenius Inc. https://www.rocketgenius.com this may not be re-distributed without the express written permission of the author. diff --git a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.min.css b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.min.css index 0557d16639..e69cde80a0 100644 --- a/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.min.css +++ b/wp-content/plugins/gravityformssurvey/assets/css/dist/theme.min.css @@ -1 +1 @@ -.gform_legacy_markup_wrapper table.gsurvey-likert *,.gravity-theme table.gsurvey-likert *{box-sizing:border-box}.gform_legacy_markup_wrapper table.gsurvey-likert,.gravity-theme table.gsurvey-likert{border:1px solid #ccc;border-right:none;border-spacing:0;border-top:none;table-layout:fixed;width:100%}.gform_legacy_markup_wrapper .form-table.entry-details table.gsurvey-likert,.gravity-theme .form-table.entry-details table.gsurvey-likert{table-layout:auto}.gform_legacy_markup_wrapper table.form-table table.gsurvey-likert tr:last-child td,.gform_legacy_markup_wrapper table.form-table table.gsurvey-likert tr:last-child th,.gravity-theme table.form-table table.gsurvey-likert tr:last-child td,.gravity-theme table.form-table table.gsurvey-likert tr:last-child th{border-right:1px solid #ccc!important;border-top:1px solid #ccc!important}.gform_legacy_markup_wrapper table.gsurvey-likert td,.gravity-theme table.gsurvey-likert td{background-clip:padding-box;border:0;overflow:hidden;padding:3px;position:relative;text-align:center;vertical-align:middle}.gform_legacy_markup_wrapper table.gsurvey-likert tr td,.gravity-theme table.gsurvey-likert tr td{border-right:1px solid #ccc;border-top:1px solid #ccc}.gform_legacy_markup_wrapper table.gsurvey-likert th.gsurvey-likert-choice-label,.gravity-theme table.gsurvey-likert th.gsurvey-likert-choice-label{background-color:#eee;border-right:1px solid #ccc;border-top:1px solid #ccc;line-height:1.2;padding:3px 0;text-align:center;vertical-align:middle}body.rtl .gform_legacy_markup_wrapper table.gsurvey-likert th.gsurvey-likert-choice-label,body.rtl .gravity-theme table.gsurvey-likert th.gsurvey-likert-choice-label{text-align:center!important;vertical-align:middle}.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert .gsurvey-likert-row-label{background-color:#eee;font-weight:700;padding-left:8px}.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-choice,.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert .gsurvey-likert-choice,.gravity-theme table.gsurvey-likert .gsurvey-likert-row-label{border-top:1px solid #ccc}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover{background-color:rgba(223,239,255,.4)}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus{background-color:#dfefff!important}.gform_legacy_markup_wrapper table.gsurvey-likert td input,.gravity-theme table.gsurvey-likert td input{left:-9999px;position:absolute;top:0}body.rtl .gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice input[type=radio],body.rtl .gravity-theme table.gsurvey-likert td.gsurvey-likert-choice input[type=radio]{display:none}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice{background-image:url(../../../images/active0.svg);background-position:50%;background-repeat:no-repeat;background-size:16px 16px;height:26px}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected{background-color:#dfefff;background-image:url(../../../images/active1.svg);background-position:50%;background-repeat:no-repeat;background-size:16px 16px}.gform_legacy_markup_wrapper .gsurvey-rating>label span,.gravity-theme .gsurvey-rating>label span{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>input,.gravity-theme .gsurvey-rating:not(:checked)>input{clip:rect(0,0,0,0);position:absolute}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label,.gravity-theme .gsurvey-rating:not(:checked)>label{background-image:url(../../../images/star0.svg);background-position:50%;background-repeat:no-repeat;background-size:16px 16px;color:#ddd;cursor:pointer;float:right;font-size:18px!important;line-height:18px;overflow:hidden;white-space:nowrap;width:18px}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label:before,.gravity-theme .gsurvey-rating:not(:checked)>label:before{content:"\00a0\00a0\00a0\00a0"}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label:hover,.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label:hover~label,.gform_legacy_markup_wrapper .gsurvey-rating>input:checked~label,.gravity-theme .gsurvey-rating:not(:checked)>label:hover,.gravity-theme .gsurvey-rating:not(:checked)>label:hover~label,.gravity-theme .gsurvey-rating>input:checked~label{background-image:url(../../../images/star1.svg);background-position:50%;background-repeat:no-repeat;background-size:16px 16px}.gform_legacy_markup_wrapper .gsurvey-rating>input:checked+label:hover,.gform_legacy_markup_wrapper .gsurvey-rating>input:checked+label:hover~label,.gform_legacy_markup_wrapper .gsurvey-rating>input:checked~label:hover,.gform_legacy_markup_wrapper .gsurvey-rating>input:checked~label:hover~label,.gform_legacy_markup_wrapper .gsurvey-rating>label:hover~input:checked~label,.gravity-theme .gsurvey-rating>input:checked+label:hover,.gravity-theme .gsurvey-rating>input:checked+label:hover~label,.gravity-theme .gsurvey-rating>input:checked~label:hover,.gravity-theme .gsurvey-rating>input:checked~label:hover~label,.gravity-theme .gsurvey-rating>label:hover~input:checked~label{color:#ea0}.gform_legacy_markup_wrapper .gsurvey-rating-wrapper:after,.gravity-theme .gsurvey-rating-wrapper:after{clear:both;content:"";display:block}body.rtl .gform_legacy_markup_wrapper .gsurvey-rating,body.rtl .gform_legacy_markup_wrapper .gsurvey-rating-wrapper,body.rtl .gravity-theme .gsurvey-rating,body.rtl .gravity-theme .gsurvey-rating-wrapper,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rating,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rating-wrapper,html[dir=rtl] .gravity-theme .gsurvey-rating,html[dir=rtl] .gravity-theme .gsurvey-rating-wrapper{display:flex}.gform_legacy_markup_wrapper .gsurvey-rating,.gravity-theme .gsurvey-rating{float:left}body.rtl .gform_legacy_markup_wrapper .gsurvey-rating,body.rtl .gravity-theme .gsurvey-rating,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rating,html[dir=rtl] .gravity-theme .gsurvey-rating{flex-direction:row-reverse}.gform_legacy_markup_wrapper ul.gsurvey-rank,.gravity-theme ul.gsurvey-rank{display:inline-block;list-style:none;list-style-type:none;padding-left:0;width:auto}.gform_legacy_markup_wrapper .gsurvey-rank-choice,.gravity-theme .gsurvey-rank-choice{background-image:url(../../../images/arrow-handle.svg);background-position:0;background-repeat:no-repeat;background-size:16px 16px;border-bottom:1px solid hsla(0,0%,80%,0);border-top:1px solid hsla(0,0%,80%,0);padding:8px 24px!important;white-space:nowrap;width:auto}body:not(.wp-admin) .gform_legacy_markup_wrapper .gsurvey-rank-choice,body:not(.wp-admin) .gravity-theme .gsurvey-rank-choice{cursor:move}body:not(.wp-admin) .gform_legacy_markup_wrapper ul.gsurvey-rank.ui-sortable,body:not(.wp-admin) .gravity-theme ul.gsurvey-rank.ui-sortable{display:inline-block;width:auto}body:not(.wp-admin) .gform_legacy_markup_wrapper .gsurvey-rank-choice.ui-sortable-helper,body:not(.wp-admin) .gravity-theme .gsurvey-rank-choice.ui-sortable-helper{border-bottom:1px dashed #ccc;border-top:1px dashed #ccc}body.rtl .gform_legacy_markup_wrapper .gsurvey-rank-choice,body.rtl .gform_legacy_markup_wrapper ul li.gsurvey-rank-choice,body.rtl .gravity-theme .gsurvey-rank-choice,body.rtl .gravity-theme ul li.gsurvey-rank-choice,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rank-choice,html[dir=rtl] .gform_legacy_markup_wrapper ul li.gsurvey-rank-choice,html[dir=rtl] .gravity-theme .gsurvey-rank-choice,html[dir=rtl] .gravity-theme ul li.gsurvey-rank-choice{background-position:100%;padding-right:24px!important}@media (min-device-width:768px) and (max-device-width:1024px),only screen and (max-width:761px){.gform_legacy_markup_wrapper table.gsurvey-likert thead,.gravity-theme table.gsurvey-likert thead{left:-9999px;position:absolute;top:-9999px}.gform_legacy_markup_wrapper table.gsurvey-likert tr,.gravity-theme table.gsurvey-likert tr{display:block}.gform_legacy_markup_wrapper table.gsurvey-likert td,.gravity-theme table.gsurvey-likert td{background-position:8px!important;display:block;line-height:2;min-height:2.4em;text-align:left;vertical-align:middle}body.rtl .gform_legacy_markup_wrapper table.gsurvey-likert td,body.rtl .gravity-theme table.gsurvey-likert td{background-position:99%!important}.gform_legacy_markup_wrapper .gform_fields table.gsurvey-likert td:after,.gravity-theme .gform_fields table.gsurvey-likert td:after{content:attr(data-label);display:inline-block;font-weight:400;line-height:2;margin-left:32px}body.rtl .gform_legacy_markup_wrapper .gform_fields table.gsurvey-likert td:after,body.rtl .gravity-theme .gform_fields table.gsurvey-likert td:after{margin-right:22px}}@media only screen and (min-width:641px){.gform_legacy_markup_wrapper ol.gsurvey-rank-entry li,.gravity-theme ol.gsurvey-rank-entry li{list-style:decimal none outside}}@media only screen and (min-width:769px){.gform_legacy_markup_wrapper table.gsurvey-likert tr th,.gravity-theme table.gsurvey-likert tr th{padding:8px!important}.gform_legacy_markup_wrapper table.gsurvey-likert th.gsurvey-likert-row-label:first-child,.gravity-theme table.gsurvey-likert th.gsurvey-likert-row-label:first-child{background:none;border-bottom:none;border-right:1px solid #ccc}.gform_legacy_markup_wrapper table.gsurvey-likert tr td,.gravity-theme table.gsurvey-likert tr td{border-top:none}.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert .gsurvey-likert-row-label{background-color:hsla(0,0%,93%,.6);font-weight:700;padding-left:0}.gform_legacy_markup_wrapper table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label{background-color:#eee}} \ No newline at end of file +.gform_legacy_markup_wrapper table.gsurvey-likert *,.gravity-theme table.gsurvey-likert *{box-sizing:border-box}.gform_legacy_markup_wrapper table.gsurvey-likert,.gravity-theme table.gsurvey-likert{border-bottom:1px solid #ccc;border-left:1px solid #ccc;border-right:none;border-spacing:0;border-top:none;table-layout:fixed;width:100%}.gform_legacy_markup_wrapper .form-table.entry-details table.gsurvey-likert,.gravity-theme .form-table.entry-details table.gsurvey-likert{table-layout:auto}.gform_legacy_markup_wrapper table.form-table table.gsurvey-likert tr:last-child td,.gform_legacy_markup_wrapper table.form-table table.gsurvey-likert tr:last-child th,.gravity-theme table.form-table table.gsurvey-likert tr:last-child td,.gravity-theme table.form-table table.gsurvey-likert tr:last-child th{border-right:1px solid #ccc!important;border-top:1px solid #ccc!important}.gform_legacy_markup_wrapper table.gsurvey-likert td,.gravity-theme table.gsurvey-likert td{background-clip:padding-box;border:0;overflow:hidden;padding:3px;position:relative;text-align:center;vertical-align:middle}.gform_legacy_markup_wrapper table.gsurvey-likert tr td,.gravity-theme table.gsurvey-likert tr td{border-right:1px solid #ccc;border-top:1px solid #ccc}.gform_legacy_markup_wrapper table.gsurvey-likert th.gsurvey-likert-choice-label,.gravity-theme table.gsurvey-likert th.gsurvey-likert-choice-label{background-color:#eee;border-right:1px solid #ccc;border-top:1px solid #ccc;line-height:1.2;padding:3px 0;text-align:center;vertical-align:middle}body.rtl .gform_legacy_markup_wrapper table.gsurvey-likert th.gsurvey-likert-choice-label,body.rtl .gravity-theme table.gsurvey-likert th.gsurvey-likert-choice-label{text-align:center!important;vertical-align:middle}.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert .gsurvey-likert-row-label{background-color:#eee;font-weight:700;padding-left:8px}.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-choice,.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert .gsurvey-likert-choice,.gravity-theme table.gsurvey-likert .gsurvey-likert-row-label{border-top:1px solid #ccc}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-hover{background-color:rgba(223,239,255,.4)}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-focus{background-color:#dfefff!important}.gform_legacy_markup_wrapper table.gsurvey-likert td input,.gravity-theme table.gsurvey-likert td input{left:-9999px;position:absolute;top:0}body.rtl .gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice input[type=radio],body.rtl .gravity-theme table.gsurvey-likert td.gsurvey-likert-choice input[type=radio]{display:none}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice{background-image:url(../../../images/active0.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px;height:26px}.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected{background-color:#dfefff;background-image:url(../../../images/active1.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px}.gform_legacy_markup_wrapper .gsurvey-rating>label span,.gravity-theme .gsurvey-rating>label span{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>input,.gravity-theme .gsurvey-rating:not(:checked)>input{clip:rect(0,0,0,0);position:absolute}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label,.gravity-theme .gsurvey-rating:not(:checked)>label{background-image:url(../../../images/star0.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px;color:#ddd;cursor:pointer;float:right;font-size:18px!important;line-height:18px;overflow:hidden;white-space:nowrap;width:18px}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label::before,.gravity-theme .gsurvey-rating:not(:checked)>label::before{content:"\00a0\00a0\00a0\00a0"}.gform_legacy_markup_wrapper .gsurvey-rating>input:checked~label,.gravity-theme .gsurvey-rating>input:checked~label{background-image:url(../../../images/star1.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px}.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label:hover,.gform_legacy_markup_wrapper .gsurvey-rating:not(:checked)>label:hover~label,.gravity-theme .gsurvey-rating:not(:checked)>label:hover,.gravity-theme .gsurvey-rating:not(:checked)>label:hover~label{background-image:url(../../../images/star1.svg);background-position:center center;background-repeat:no-repeat;background-size:16px 16px}.gform_legacy_markup_wrapper .gsurvey-rating>input:checked+label:hover,.gform_legacy_markup_wrapper .gsurvey-rating>input:checked+label:hover~label,.gform_legacy_markup_wrapper .gsurvey-rating>input:checked~label:hover,.gform_legacy_markup_wrapper .gsurvey-rating>input:checked~label:hover~label,.gform_legacy_markup_wrapper .gsurvey-rating>label:hover~input:checked~label,.gravity-theme .gsurvey-rating>input:checked+label:hover,.gravity-theme .gsurvey-rating>input:checked+label:hover~label,.gravity-theme .gsurvey-rating>input:checked~label:hover,.gravity-theme .gsurvey-rating>input:checked~label:hover~label,.gravity-theme .gsurvey-rating>label:hover~input:checked~label{color:#ea0}.gform_legacy_markup_wrapper .gsurvey-rating-wrapper::after,.gravity-theme .gsurvey-rating-wrapper::after{clear:both;content:"";display:block}body.rtl .gform_legacy_markup_wrapper .gsurvey-rating,body.rtl .gform_legacy_markup_wrapper .gsurvey-rating-wrapper,body.rtl .gravity-theme .gsurvey-rating,body.rtl .gravity-theme .gsurvey-rating-wrapper,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rating,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rating-wrapper,html[dir=rtl] .gravity-theme .gsurvey-rating,html[dir=rtl] .gravity-theme .gsurvey-rating-wrapper{display:flex}.gform_legacy_markup_wrapper .gsurvey-rating,.gravity-theme .gsurvey-rating{float:left}body.rtl .gform_legacy_markup_wrapper .gsurvey-rating,body.rtl .gravity-theme .gsurvey-rating,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rating,html[dir=rtl] .gravity-theme .gsurvey-rating{flex-direction:row-reverse}.gform_legacy_markup_wrapper ul.gsurvey-rank,.gravity-theme ul.gsurvey-rank{display:inline-block;list-style:none;list-style-type:none;padding-left:0;width:auto}.gform_legacy_markup_wrapper .gsurvey-rank-choice,.gravity-theme .gsurvey-rank-choice{background-image:url(../../../images/arrow-handle.svg);background-position:0 center;background-repeat:no-repeat;background-size:16px 16px;border-bottom:1px solid rgba(204,204,204,0);border-top:1px solid rgba(204,204,204,0);padding:8px 24px!important;white-space:nowrap;width:auto}body:not(.wp-admin) .gform_legacy_markup_wrapper .gsurvey-rank-choice,body:not(.wp-admin) .gravity-theme .gsurvey-rank-choice{cursor:move}body:not(.wp-admin) .gform_legacy_markup_wrapper ul.gsurvey-rank.ui-sortable,body:not(.wp-admin) .gravity-theme ul.gsurvey-rank.ui-sortable{display:inline-block;width:auto}body:not(.wp-admin) .gform_legacy_markup_wrapper .gsurvey-rank-choice.ui-sortable-helper,body:not(.wp-admin) .gravity-theme .gsurvey-rank-choice.ui-sortable-helper{border-bottom:1px dashed #ccc;border-top:1px dashed #ccc}body.rtl .gform_legacy_markup_wrapper .gsurvey-rank-choice,body.rtl .gform_legacy_markup_wrapper ul li.gsurvey-rank-choice,body.rtl .gravity-theme .gsurvey-rank-choice,body.rtl .gravity-theme ul li.gsurvey-rank-choice,html[dir=rtl] .gform_legacy_markup_wrapper .gsurvey-rank-choice,html[dir=rtl] .gform_legacy_markup_wrapper ul li.gsurvey-rank-choice,html[dir=rtl] .gravity-theme .gsurvey-rank-choice,html[dir=rtl] .gravity-theme ul li.gsurvey-rank-choice{background-position:100% center;padding-right:24px!important}@media only screen and (max-width:761px),(min-device-width:768px) and (max-device-width:1024px){.gform_legacy_markup_wrapper table.gsurvey-likert thead,.gravity-theme table.gsurvey-likert thead{left:-9999px;position:absolute;top:-9999px}.gform_legacy_markup_wrapper table.gsurvey-likert tr,.gravity-theme table.gsurvey-likert tr{display:block}.gform_legacy_markup_wrapper table.gsurvey-likert td,.gravity-theme table.gsurvey-likert td{background-position:8px center!important;display:block;line-height:2;min-height:2.4em;text-align:left;vertical-align:middle}body.rtl .gform_legacy_markup_wrapper table.gsurvey-likert td,body.rtl .gravity-theme table.gsurvey-likert td{background-position:99% center!important}.gform_legacy_markup_wrapper .gform_fields table.gsurvey-likert td::after,.gravity-theme .gform_fields table.gsurvey-likert td::after{content:attr(data-label);display:inline-block;font-weight:400;line-height:2;margin-left:32px}body.rtl .gform_legacy_markup_wrapper .gform_fields table.gsurvey-likert td::after,body.rtl .gravity-theme .gform_fields table.gsurvey-likert td::after{margin-right:22px}}@media only screen and (min-width:641px){.gform_legacy_markup_wrapper ol.gsurvey-rank-entry li,.gravity-theme ol.gsurvey-rank-entry li{list-style:decimal outside none}}@media only screen and (min-width:769px){.gform_legacy_markup_wrapper table.gsurvey-likert tr th,.gravity-theme table.gsurvey-likert tr th{padding:8px!important}.gform_legacy_markup_wrapper table.gsurvey-likert th.gsurvey-likert-row-label:first-child,.gravity-theme table.gsurvey-likert th.gsurvey-likert-row-label:first-child{background:0 0;border-bottom:none;border-right:1px solid #ccc}.gform_legacy_markup_wrapper table.gsurvey-likert tr td,.gravity-theme table.gsurvey-likert tr td{border-top:none}.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert .gsurvey-likert-row-label{background-color:rgba(238,238,238,.6);font-weight:700;padding-left:0}.gform_legacy_markup_wrapper table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label,.gravity-theme table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label{background-color:#eee}} \ No newline at end of file diff --git a/wp-content/plugins/gravityformssurvey/change_log.txt b/wp-content/plugins/gravityformssurvey/change_log.txt index 0c2682e48d..3bcb0afa97 100644 --- a/wp-content/plugins/gravityformssurvey/change_log.txt +++ b/wp-content/plugins/gravityformssurvey/change_log.txt @@ -1,3 +1,16 @@ +### 4.1.1 +- Updated Survey to be released with minified and non-minified assets. +- Fixed a bug that causes the Rating choices to not be saved when navigating between pages or failing validation. +- Fixed a bug that can cause PHP errors in the dashboard. + + +### 4.1.0 | 2024-10-02 +- Added the form editor icon for compact view. +- Removed the ability to clear default choices in the choices flyout. +- Updated the survey fields to support the Orbital form theme in the form editor. +- API: Removed the deprecated form Theme Framework global CSS API properties. + + ### 4.0.0 | 2024-01-11 - Added support for conditional logic to Survey fields. - Fixed a bug that prevents Rank choices from being draggable on iPads. diff --git a/wp-content/plugins/gravityformssurvey/class-gf-survey.php b/wp-content/plugins/gravityformssurvey/class-gf-survey.php index d674024da6..16bba8bd0c 100644 --- a/wp-content/plugins/gravityformssurvey/class-gf-survey.php +++ b/wp-content/plugins/gravityformssurvey/class-gf-survey.php @@ -21,6 +21,7 @@ class GFSurvey extends GFAddOn { protected $_short_title = 'Survey'; protected $_enable_rg_autoupgrade = true; protected $_enable_theme_layer = true; + protected $_asset_min; /** * Whether this add-on has access to the Gravity Forms settings renderer. @@ -53,6 +54,10 @@ class GFSurvey extends GFAddOn { public static function get_instance() { if ( self::$_instance == null ) { self::$_instance = new GFSurvey(); + + if ( ! isset( self::$_instance->_asset_min ) ) { + self::$_instance->_asset_min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || isset( $_GET['gform_debug'] ) ? '' : '.min'; + } } return self::$_instance; @@ -163,14 +168,14 @@ public function set_logging_supported( $plugins ) { * @return array */ public function scripts() { - - $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || isset( $_GET['gform_debug'] ) ? '' : '.min'; + $base_url = $this->get_base_url(); + $version = $this->_version; $scripts = array( array( 'handle' => 'gsurvey_form_editor_js', - 'src' => $this->get_base_url() . "/js/gsurvey_form_editor{$min}.js", - 'version' => $this->_version, + 'src' => $base_url . "/js/gsurvey_form_editor{$this->_asset_min}.js", + 'version' => $version, 'deps' => array( 'jquery' ), 'callback' => array( $this, 'localize_scripts' ), 'enqueue' => array( @@ -179,14 +184,12 @@ public function scripts() { ), array( 'handle' => 'gsurvey_js', - 'src' => $this->get_base_url() . "/js/gsurvey{$min}.js", - 'version' => $this->_version, + 'src' => $base_url . "/js/gsurvey{$this->_asset_min}.js", + 'version' => $version, 'deps' => array( 'jquery', 'jquery-ui-sortable', 'jquery-touch-punch' ), 'enqueue' => array( - array( $this, 'should_enqueue_gravity_theme' ), - array( - 'field_types' => array( 'survey' ) - ), + array( 'admin_page' => array( 'form_editor', 'block_editor' ) ), + array( 'field_types' => array( 'survey' ) ), ), ), ); @@ -196,8 +199,8 @@ public function scripts() { if ( ! empty( $merge_tags ) ) { $scripts[] = array( 'handle' => 'gform_survey_merge_tags', - 'src' => $this->get_base_url() . "/js/gsurvey_merge_tags{$min}.js", - 'version' => $this->_version, + 'src' => $base_url . "/js/gsurvey_merge_tags{$this->_asset_min}.js", + 'version' => $version, 'deps' => array( 'jquery' ), 'enqueue' => array( array( 'admin_page' => array( 'form_settings' ) ), @@ -217,14 +220,14 @@ public function scripts() { * @return array */ public function styles() { - - $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || isset( $_GET['gform_debug'] ) ? '' : '.min'; + $base_url = $this->get_base_url(); + $version = $this->_version; $styles = array( array( 'handle' => 'gsurvey_admin', - 'src' => $this->get_base_url() . "/assets/css/dist/admin{$min}.css", - 'version' => $this->_version, + 'src' => $base_url . "/assets/css/dist/admin{$this->_asset_min}.css", + 'version' => $version, 'enqueue' => array( array( 'admin_page' => array( 'form_editor' ) ), array( @@ -233,91 +236,87 @@ public function styles() { ), ), ), - array( + ); + + if ( ! $this->supports_theme_enqueuing() ) { + $styles[] = array( 'handle' => 'gsurvey_css', - 'src' => $this->get_base_url() . "/assets/css/dist/theme{$min}.css", + 'src' => $this->get_base_url() . "/assets/css/dist/theme{$this->_asset_min}.css", 'version' => $this->_version, - 'media' => 'screen', 'enqueue' => array( - array( $this, 'should_enqueue_gravity_theme' ), - array( - 'field_types' => array( 'survey' ) - ), + array( 'admin_page' => array( 'form_editor', 'block_editor' ) ), + array( 'field_types' => array( 'survey' ) ), ), - ), - array( + ); + $styles[] = array( 'handle' => 'gsurvey-theme-foundation', - 'src' => $this->get_base_url() . "/assets/css/dist/theme-foundation{$min}.css", + 'src' => $this->get_base_url() . "/assets/css/dist/theme-foundation{$this->_asset_min}.css", 'version' => $this->_version, - 'media' => 'screen', 'enqueue' => array( - array( $this, 'should_enqueue_theme_framework' ), + array( 'admin_page' => array( 'form_editor', 'block_editor' ) ), + array( 'field_types' => array( 'survey' ) ), ), - ), - array( + ); + $styles[] = array( 'handle' => 'gsurvey-theme-framework', - 'src' => $this->get_base_url() . "/assets/css/dist/theme-framework{$min}.css", + 'src' => $this->get_base_url() . "/assets/css/dist/theme-framework{$this->_asset_min}.css", 'version' => $this->_version, - 'media' => 'screen', 'enqueue' => array( - array( $this, 'should_enqueue_theme_framework' ), + array( 'admin_page' => array( 'form_editor', 'block_editor' ) ), + array( 'field_types' => array( 'survey' ) ), ), - ), - ); + ); + } return array_merge( parent::styles(), $styles ); } - /** - * Returns true if the Gravity Theme css file should be enqueued on this page. Returns false otherwise. + * An array of styles to enqueue. * - * @since 3.8 + * @since 1.6 * - * @param array $form Current form object. - * @param bool $is_ajax Whether form is being embedded with ajax enabled. + * @param $form + * @param $ajax + * @param $settings + * @param $block_settings * - * @return bool Returns true if the Gravity Theme css file should be enqueued on this page. Returns false otherwise. + * @return array|\string[][] */ - public function should_enqueue_gravity_theme( $form, $is_ajax ) { - // Always enqueue in the form editor. - if ( GFCommon::is_form_editor() ) { - return true; - } - - // In 2.7 and above, enqueue in the block editor - if ( $this->is_gravityforms_supported( '2.7-RC-1' ) ) { - return GFCommon::is_block_editor_page(); - } - - return false; + public function theme_layer_styles( $form, $ajax, $settings, $embed_settings = array() ) { + return $this->supports_theme_enqueuing() ? $this->get_theme_layer_styles( $form, 'survey' ) : array(); } /** - * Returns true if the theme framework css files should be enqueued on this page. Returns false otherwise. + * Get the themes that should be enqueued for the add-on. Uses the base class method and adds theme.css on the results page for forms with a survey field. * - * @since 3.8 + * @since 4.1.0 * - * @param array $form Current form object. - * @param bool $is_ajax Whether or not form is being embedded with ajax enabled. + * @param array $form The current form object to enqueue styles for. + * @param string|array $field_types The field type associated with the add-on. Themes will only be enqueued on the frontend if the form has a field with the specified field type. * - * @return bool Returns true if the theme framework css files should be enqueued on this page. Returns false otherwise. + * @return array Returns and array of theme slugs to enqueue. */ - public function should_enqueue_theme_framework( $form, $is_ajax ) { - if ( ! $this->is_gravityforms_supported( '2.7-RC-1' ) ) { - return false; - } - - // Always enqueue on block editor page. - if ( GFCommon::is_block_editor_page() ) { - return true; + public function get_themes_to_enqueue ( $form, $field_types = '' ) { + $themes = parent::get_themes_to_enqueue( $form, $field_types ); + + // Adding gravity theme on the results page if the form has a survey field. + if ( GFForms::get_page() === 'results' ) { + $form = GFAPI::get_form( rgget( 'id' ) ); + if ( GFCommon::get_fields_by_type( $form, $field_types ) ) { + $themes[] = 'gravity-theme'; + } } + return $themes; + } - // Enqueues theme framework when there is a survey field on a non-admin or preview page. - $has_survey_field = (bool) GFCommon::get_fields_by_type( $form, 'survey' ); - $is_gf_admin_page = GFForms::get_page(); - - return $has_survey_field && ! $is_gf_admin_page && ! $this->is_preview(); + /** + * Whether the Base Add-on class supports theme enqueuing logic (only available in Gravity Forms 2.9+) + * + * @since 4.1.0 + */ + public function supports_theme_enqueuing() { + return is_callable( array( $this, 'get_theme_layer_styles' ) ); } /** @@ -329,9 +328,10 @@ public function localize_scripts() { $protocol = isset( $_SERVER['HTTPS'] ) ? 'https://' : 'http://'; // Output admin-ajax.php URL with same protocol as current page $params = array( - 'ajaxurl' => admin_url( 'admin-ajax.php', $protocol ), - 'imagesUrl' => $this->get_base_url() . '/images', - 'strings' => array( + 'ajaxurl' => admin_url( 'admin-ajax.php', $protocol ), + 'imagesUrl' => $this->get_base_url() . '/images', + 'refreshPreview' => ! $this->is_gravityforms_supported( '2.9.0-beta-1' ), + 'strings' => array( 'untitledSurveyField' => wp_strip_all_tags( __( 'Untitled Survey Field', 'gravityformssurvey' ) ), ), ); @@ -875,6 +875,10 @@ public function conditional_logic_filters( $filters, $form, $id ) { */ public function is_value_match_rank( $is_match, $field_value, $target_value, $operation, $source_field, $rule ) { + if ( ! $source_field ) { + return $is_match; + } + if ( $source_field->type == 'survey' && $source_field->inputType == 'rank' ) { if ( '' === $target_value ) { // If a target value doesn't get saved, it's because the target value is 1. diff --git a/wp-content/plugins/gravityformssurvey/includes/class-gf-field-rating.php b/wp-content/plugins/gravityformssurvey/includes/class-gf-field-rating.php index dffc95fa51..338bafcc5d 100644 --- a/wp-content/plugins/gravityformssurvey/includes/class-gf-field-rating.php +++ b/wp-content/plugins/gravityformssurvey/includes/class-gf-field-rating.php @@ -90,7 +90,6 @@ public function get_rating_choices( $value, $disabled_text, $form_id ) { } $choice_id = 0; - $count = 1; $logic_event = version_compare( GFForms::$version, '2.4-beta-1', '<' ) ? $this->get_conditional_logic_event( 'click' ) : ''; @@ -105,9 +104,11 @@ public function get_rating_choices( $value, $disabled_text, $form_id ) { $choice_label = $choice['text']; $field_value = ! empty( $choice['value'] ) || $this->enableChoiceValue ? $choice['value'] : $choice['text']; - if ( rgblank( $value ) && RG_CURRENT_VIEW != 'entry' ) { + if ( rgblank( $value ) && GFForms::get_page() !== 'entry_detail' ) { $checked = rgar( $choice, 'isSelected' ) ? "checked='checked'" : ''; - } else { + } elseif ( $is_form_editor ) { + $checked = ''; + } else { $checked = RGFormsModel::choice_value_match( $this, $choice, $value ) ? "checked='checked'" : ''; } @@ -125,11 +126,6 @@ public function get_rating_choices( $value, $disabled_text, $form_id ) { $choice_label ); - if ( $is_form_editor && $count >= 5 ) { - break; - } - - $count ++; } } diff --git a/wp-content/plugins/gravityformssurvey/includes/class-gf-field-survey.php b/wp-content/plugins/gravityformssurvey/includes/class-gf-field-survey.php index 10bbeb36d7..fe3d0882a0 100644 --- a/wp-content/plugins/gravityformssurvey/includes/class-gf-field-survey.php +++ b/wp-content/plugins/gravityformssurvey/includes/class-gf-field-survey.php @@ -32,6 +32,19 @@ public function get_form_editor_button() { ); } + /** + * Returns the field's form editor icon. + * + * This could be an icon url or a gform-icon class. + * + * @since 4.1.0 + * + * @return string + */ + public function get_form_editor_field_icon() { + return 'gform-icon--survey'; + } + /** * Return the settings which should be available on the field in the form editor. * diff --git a/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.js b/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.js index 53122d80d2..97743df2a8 100644 --- a/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.js +++ b/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.js @@ -166,19 +166,19 @@ function gsurveyLikertGetFieldPreviewMarkup(field) { displayRows = numRows > 5 ? 5 : numRows; m = ""; - m += ''; + m += ''; if (field.gsurveyLikertEnableMultipleRows) m += ""; for (var i = 0; i < field.choices.length; i++) { var id = 'choice_' + field.id + '_' + i; - m += "'; + m += "'; } - m += ''; + m += ''; for (var r = 1; r <= displayRows; r++) { m += ''; if (field.gsurveyLikertEnableMultipleRows) - m += ''; + m += ''; for (var i = 0; i < field.choices.length; i++) { m += ""; } @@ -454,7 +454,7 @@ function gsurveyRankGetFieldPreviewMarkup(field) { for (var i = 0; i < field.choices.length; i++) { var id = 'choice_' + field.id + '_' + i; if (i < 5) - m += "
  • "; + m += "
  • " + field.choices[i].text + "
  • "; } if (field.choices.length > 5) m += "
  • " + gf_vars['editToViewAll'].replace('%d', field.choices.length) + '
  • '; @@ -514,18 +514,21 @@ jQuery(document).bind('gform_load_field_choices', function (event, field) { field.reversed = true; } - var fieldPreviewMarkup = gsurveyRatingGetFieldPreviewMarkup(field); - jQuery('.field_selected .gsurvey-rating').html(fieldPreviewMarkup); + if( gsurveyVars.refreshPreview ) { + var fieldPreviewMarkup = gsurveyRatingGetFieldPreviewMarkup(field); + jQuery('.field_selected .gsurvey-rating').html(fieldPreviewMarkup); + } + } }); function gsurveyRatingGetFieldPreviewMarkup(field) { - var m = "
    "; + var m = ""; for (var i = 0; i < field.choices.length; i++) { var id = 'choice_' + field.id + '_' + i; var checked = field.choices[i].isSelected ? 'checked' : ''; - m += "'; + m += "'; } return m; diff --git a/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.min.js b/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.min.js index 8f1461c66d..57a681cc56 100644 --- a/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.min.js +++ b/wp-content/plugins/gravityformssurvey/js/gsurvey_form_editor.min.js @@ -1 +1 @@ -var isLegacy="true"===gsurveyLikertStrings.isLegacy;function SetDefaultValues_survey(e){e.label=gsurveyVars.strings.untitledSurveyField,SetDefaultValues_likert(e)}function gform_new_choice_survey(e,r){return r=window["gform_new_choice_"+e.inputType]?window["gform_new_choice_"+e.inputType](e,r):new Choice("",GenerateSurveyDefaultChoiceValue(e))}function GenerateSurveyDefaultChoiceValue(e){return"gsurvey"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function StartChangeSurveyType(e){var r=GetSelectedField();return r.choices=null,window["SetDefaultValues_"+e]&&window["SetDefaultValues_"+e](r),jQuery("#gsurvey-field-type").val(e),"checkbox"!=e&&"radio"!=e&&"select"!=e||(r.choices=new Array(new Choice(gsurveyRankStrings.firstChoice,GenerateSurveyDefaultChoiceValue(r),!1),new Choice(gsurveyRankStrings.secondChoice,GenerateSurveyDefaultChoiceValue(r),!1),new Choice(gsurveyRankStrings.thirdChoice,GenerateSurveyDefaultChoiceValue(r),!1))),"text"!==e&&(r.inputMask=!1),StartChangeInputType(e,r)}function SetDefaultValues_likert(e){e.enableChoiceValue=!0,e.enablePrice=!1,e.gsurveyLikertEnableMultipleRows=!1,e.gsurveyLikertEnableScoring=!1,e.choices=new Array(new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel1,GenerateLikertChoiceValue(e),1),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel2,GenerateLikertChoiceValue(e),2),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel3,GenerateLikertChoiceValue(e),3),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel4,GenerateLikertChoiceValue(e),4),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel5,GenerateLikertChoiceValue(e),5)),e.gsurveyLikertRows=new Array(new gsurveyLikertRow(gsurveyLikertStrings.firstChoice),new gsurveyLikertRow(gsurveyLikertStrings.secondChoice),new gsurveyLikertRow(gsurveyLikertStrings.thirdChoice),new gsurveyLikertRow(gsurveyLikertStrings.fourthChoice),new gsurveyLikertRow(gsurveyLikertStrings.fifthChoice));e.id,e.gsurveyLikertRows[0].value;return e.inputType="likert",e.inputs=null,e}function gsurveyLikertUpdatePreview(e){e=gsurveyLikertGetFieldPreviewMarkup(e=null==e?GetSelectedField():e);jQuery(".field_selected .gsurvey-likert").parent().html(e)}function gsurveyLikertUpdateInputs(e){if(e.gsurveyLikertEnableMultipleRows){var r,t;e.inputs=new Array;for(var i=0,n=0;n";i+="
    ",e.gsurveyLikertEnableMultipleRows&&(i+="");for(var n=0;n";i+="";for(var s=1;s<=t;s++){i+="",e.gsurveyLikertEnableMultipleRows&&(i+="");for(n=0;n";i+=""}return 5"),i+="
    ' + field.gsurveyLikertRows[r - 1].text + '' + field.gsurveyLikertRows[r - 1].text + '
    "+e.gsurveyLikertRows[s-1].text+"
    "+gf_vars.editToViewAll.replace("%d",r)+"
    "}function gsurveyLikertChoice(e,r,t){this.text=e,this.value=r||e,this.isSelected=!1,this.score=t}function gsurveyLikertUpdateColumnsObject(){var s=GetSelectedField();jQuery("ul#gsurvey-likert-columns li").each(function(e){var r=($this=jQuery(this)).children("input.gsurvey-likert-column-text").val(),t=$this.children("input.gsurvey-likert-column-value").val(),i=$this.children("input.gsurvey-likert-column-score").val(),n=$this.data("index"),r=new gsurveyLikertChoice(r,t,i=void 0===i?n+1:i);s.choices[n]=r}),gsurveyLikertUpdateInputs(s)}function GenerateLikertChoiceValue(e){return"glikertcol"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gsurveyLikertInsertColumn(e){var r=GetSelectedField(),t=(gsurveyLikertUpdateColumnsObject(),new Choice("",GenerateLikertChoiceValue(r)));r.choices.splice(e,0,t),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(r)),gsurveyLikertUpdatePreview(r)}function gsurveyLikertDeleteColumn(e){var r=GetSelectedField();gsurveyLikertUpdateColumnsObject(),r.choices.splice(e,1),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(r)),gsurveyLikertUpdatePreview(r)}function gsurveyLikertMoveColumn(e,r){var t=GetSelectedField(),i=(gsurveyLikertUpdateColumnsObject(),t.choices[e]);t.choices.splice(e,1),t.choices.splice(r,0,i),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(t)),gsurveyLikertUpdateColumnsObject(),gsurveyLikertUpdatePreview(t)}function gsurveyLikertGetColumns(e){for(var r=gsurveyVars.imagesUrl,t="",i=0;i',add:'',remove:''};isLegacy&&(n={handle:''+gsurveyLikertStrings.dragToReOrder+'',add:''+gsurveyLikertStrings.addAnotherColumn+'',remove:''+gsurveyLikertStrings.removeThisColumn+''}),t=(t=(t+=isLegacy?'
  • ':'
  • ')+n.handle)+(""),void 0===e.choices[i].score&&(e.choices[i].score=i+1),t=(t=(t+="")+(""))+n.add,1"}return t}function gsurveyLikertUpdateRowsObject(){var n=GetSelectedField();jQuery("#gsurvey-likert-rows li").each(function(e){var r=jQuery(this).children("input.gsurvey-likert-row-text").val(),t=jQuery(this).children("input.gsurvey-likert-row-id").val(),i=jQuery(this).data("index"),r=new gsurveyLikertRow(r,t);n.gsurveyLikertRows[i]=r}),gsurveyLikertUpdateInputs(n)}function gsurveyLikertGenerateRowVal(){return"glikertrowxxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gsurveyLikertRow(e,r){this.text=e,this.value=null==r?gsurveyLikertGenerateRowVal():r}function gsurveyLikertInsertRow(e){var r=GetSelectedField(),t=(gsurveyLikertUpdateRowsObject(),new gsurveyLikertRow(""));r.gsurveyLikertRows.splice(e,0,t),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(r)),gsurveyLikertUpdatePreview(r)}function gsurveyLikertDeleteRow(e){var r=GetSelectedField();gsurveyLikertUpdateRowsObject(),r.gsurveyLikertRows.splice(e,1),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(r)),r.inputs.splice(e,1),gsurveyLikertUpdatePreview(r)}function gsurveyLikertMoveRow(e,r){var t=GetSelectedField(),i=(gsurveyLikertUpdateRowsObject(),t.gsurveyLikertRows[e]);t.gsurveyLikertRows.splice(e,1),t.gsurveyLikertRows.splice(r,0,i),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(t)),gsurveyLikertUpdateRowsObject(),gsurveyLikertUpdatePreview(t)}function gsurveyLikertGetRows(e){for(var r=gsurveyVars.imagesUrl,t="",i=0;i',add:'',remove:''};isLegacy&&(n={handle:""+gsurveyLikertStrings.dragToReOrder+" ",add:""+gsurveyLikertStrings.addAnotherRow+"',remove:""+gsurveyLikertStrings.removeThisRow+"'}),t=(t=(t=(t=(t+=isLegacy?'
  • ':'
  • ')+n.handle)+(""))+(""))+n.add,1"}return t}function SetDefaultValues_rank(e){return e.inputType="rank",e.inputs=null,e.enableChoiceValue=!0,e.enablePrice=!1,e.choices||(e.choices=new Array(new Choice(gsurveyRankStrings.firstChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.secondChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.thirdChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.fourthChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.fifthChoice,GenerateRankChoiceValue(e),!1))),e}function GenerateRankChoiceValue(e){return"grank"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gform_new_choice_rank(e,r){return"rank"==e.inputType&&(r.value=GenerateRankChoiceValue(e)),r}function gsurveyRankGetFieldPreviewMarkup(e){for(var r="",t=0;t"+e.choices[t].text+"
  • ")}return 5"+gf_vars.editToViewAll.replace("%d",e.choices.length)+""),r}function SetDefaultValues_rating(e){return e.inputType="rating",e.inputs=null,e.enableChoiceValue=!0,e.enablePrice=!1,e.reversed=!0,e.choices||(e.choices=new Array(new Choice(gsurveyRatingStrings.firstChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.secondChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.thirdChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.fourthChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.fifthChoice,GenerateRatingChoiceValue(e),!1))),e}function GenerateRatingChoiceValue(e){return"grating"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gform_new_choice_rating(e,r){return"rating"==e.inputType&&(r.value=GenerateRatingChoiceValue(e)),r}function gsurveyRatingGetFieldPreviewMarkup(e){for(var r="
    ",t=0;t"}return r}function filterLikertValues(e,r,t,i,n){var s,u=GetFieldById(i);return e=u.inputs&&(!0!==u.gsurveyLikertEnableMultipleRows||i.toString().match(/\.\d$/)||(s=u.inputs[0].id.toString().match(/\.\d+$/),i+=s[0]),0!==(s=u.inputs.filter(function(e){return e.id===i})).length)&&(u=s[0].name,e=e.replace(/glikertcol/g,u+":glikertcol"),(u=(s=(new DOMParser).parseFromString(e,"text/html")).querySelector('option[selected="selected"]'))&&-1!==u.value.indexOf(":glikertrow")&&(u.parentNode.removeChild(u),e=s.documentElement.outerHTML),-1!==(s=e.indexOf('value="'+n+'"')))?u=e.slice(0,s)+'selected="selected" '+e.slice(s):e}function filterRankValues(e,r,t,i,n){var i=GetFieldById(i),s=document.createElement("div"),u=(s.innerHTML=e,s.querySelector("select"));return u&&(u.innerHTML="",i.choices.forEach(function(e,r){var t=document.createElement("option"),r=r+1;t.value=r,t.text=r,u.appendChild(t)}),(i=u.querySelector('option[value="'+n+'"]'))&&i.setAttribute("selected","selected"),e=s.innerHTML),e}jQuery(document).bind("gform_load_field_settings",function(e,r,t){"survey"==r.type&&(jQuery("#gsurvey-field-type").val(r.inputType),jQuery("#gsurvey-question").val(r.label),has_entry(r.id)?jQuery("#gsurvey-field-type").attr("disabled",!0):jQuery("#gsurvey-field-type").removeAttr("disabled"))}),jQuery(document).bind("gform_load_field_settings",function(e,r,t){"likert"==r.inputType&&(void 0===r.gsurveyLikertEnableMultipleRows&&(r.gsurveyLikertEnableMultipleRows=!1),void 0===r.gsurveyLikertEnableScoring&&(r.gsurveyLikertEnableScoring=!1),jQuery("#gsurvey-likert-enable-multiple-rows").prop("checked",r.gsurveyLikertEnableMultipleRows),jQuery("#gsurvey-likert-enable-scoring").prop("checked",r.gsurveyLikertEnableScoring),jQuery("#gsurvey-field-type").val("likert"),r.gsurveyLikertEnableMultipleRows&&jQuery(".gsurvey-likert-setting-rows").show(),r.gsurveyLikertEnableScoring?jQuery("#gsurvey-likert-columns-container").addClass("gsurvey-likert-scoring-enabled"):jQuery("#gsurvey-likert-columns-container").removeClass("gsurvey-likert-scoring-enabled"),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(r)),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(r)))}),jQuery(document).bind("gform_load_field_choices",function(e,r){"rank"==r.inputType&&jQuery(".field_selected .gsurvey-rank").html(gsurveyRankGetFieldPreviewMarkup(r))}),jQuery(document).bind("gform_load_field_choices",function(e,r){var t;"rating"==r.inputType&&(void 0===r.reversed&&((t=jQuery("#field_choices")).children().each(function(e,r){t.prepend(r)}),r.choices=r.choices.reverse(),r.reversed=!0),r=gsurveyRatingGetFieldPreviewMarkup(r),jQuery(".field_selected .gsurvey-rating").html(r))}),jQuery(document).ready(function(){jQuery("#gsurvey-likert-columns").sortable({axis:"y",handle:isLegacy?".gsurvey-liket-column-handle":".field-choice-handle--column",update:function(e,r){gsurveyLikertMoveColumn(r.item.data("index"),r.item.index())}}),jQuery("#gsurvey-likert-rows").sortable({axis:"y",handle:isLegacy?".gsurvey-liket-row-handle":".field-choice-handle--row",update:function(e,r){gsurveyLikertMoveRow(r.item.data("index"),r.item.index())}})}),gform.addFilter("gform_conditional_logic_values_input",function(e,r,t,i,n){var s=GetFieldById(i);return e=s&&("likert"===GetInputType(s)&&(e=filterLikertValues(e,r,t,i,n)),"rank"===GetInputType(s))?filterRankValues(e,r,t,i,n):e}),gform.addFilter("gform_conditional_logic_operators",function(e,r,t){0==t&&(t=GetFirstRuleField());t=GetFieldById(t);return e=t&&("rank"===GetInputType(t)&&(e={is:gsurveyRankConditionStrings.is,isnot:gsurveyRankConditionStrings.isNot,">":gsurveyRankConditionStrings.greaterThan,"<":gsurveyRankConditionStrings.lessThan}),"likert"===GetInputType(t))?{is:gsurveyLikertConditionStrings.is,isnot:gsurveyLikertConditionStrings.isNot}:e}),gform.addFilter("gform_conditional_logic_fields",function(e,r,t){let s=e.slice();return r.fields.forEach(function(t){if("rank"==GetInputType(t)){const i=t.choices;var e=s.find(e=>e.value===t.id);const n=s.indexOf(e);s.splice(n,1),i.forEach(function(e,r){r=n+r;s.splice(r,0,{label:t.label+" ("+e.text+")",value:t.id+"."+i.indexOf(e)})})}}),e=s.slice()}); \ No newline at end of file +var isLegacy="true"===gsurveyLikertStrings.isLegacy;function SetDefaultValues_survey(e){e.label=gsurveyVars.strings.untitledSurveyField,SetDefaultValues_likert(e)}function gform_new_choice_survey(e,r){return r=window["gform_new_choice_"+e.inputType]?window["gform_new_choice_"+e.inputType](e,r):new Choice("",GenerateSurveyDefaultChoiceValue(e))}function GenerateSurveyDefaultChoiceValue(e){return"gsurvey"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function StartChangeSurveyType(e){var r=GetSelectedField();return r.choices=null,window["SetDefaultValues_"+e]&&window["SetDefaultValues_"+e](r),jQuery("#gsurvey-field-type").val(e),"checkbox"!=e&&"radio"!=e&&"select"!=e||(r.choices=new Array(new Choice(gsurveyRankStrings.firstChoice,GenerateSurveyDefaultChoiceValue(r),!1),new Choice(gsurveyRankStrings.secondChoice,GenerateSurveyDefaultChoiceValue(r),!1),new Choice(gsurveyRankStrings.thirdChoice,GenerateSurveyDefaultChoiceValue(r),!1))),"text"!==e&&(r.inputMask=!1),StartChangeInputType(e,r)}function SetDefaultValues_likert(e){e.enableChoiceValue=!0,e.enablePrice=!1,e.gsurveyLikertEnableMultipleRows=!1,e.gsurveyLikertEnableScoring=!1,e.choices=new Array(new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel1,GenerateLikertChoiceValue(e),1),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel2,GenerateLikertChoiceValue(e),2),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel3,GenerateLikertChoiceValue(e),3),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel4,GenerateLikertChoiceValue(e),4),new gsurveyLikertChoice(gsurveyLikertStrings.columnLabel5,GenerateLikertChoiceValue(e),5)),e.gsurveyLikertRows=new Array(new gsurveyLikertRow(gsurveyLikertStrings.firstChoice),new gsurveyLikertRow(gsurveyLikertStrings.secondChoice),new gsurveyLikertRow(gsurveyLikertStrings.thirdChoice),new gsurveyLikertRow(gsurveyLikertStrings.fourthChoice),new gsurveyLikertRow(gsurveyLikertStrings.fifthChoice));e.id,e.gsurveyLikertRows[0].value;return e.inputType="likert",e.inputs=null,e}function gsurveyLikertUpdatePreview(e){e=gsurveyLikertGetFieldPreviewMarkup(e=null==e?GetSelectedField():e);jQuery(".field_selected .gsurvey-likert").parent().html(e)}function gsurveyLikertUpdateInputs(e){if(e.gsurveyLikertEnableMultipleRows){var r;e.inputs=new Array;for(var t=0,i=0;i";i+="",e.gsurveyLikertEnableMultipleRows&&(i+="");for(var n=0;n";i+="";for(var s=1;s<=t;s++){i+="",e.gsurveyLikertEnableMultipleRows&&(i+=''+e.gsurveyLikertRows[s-1].text+"");for(n=0;n";i+=""}return 5"+gf_vars.editToViewAll.replace("%d",r)+""),i+=""}function gsurveyLikertChoice(e,r,t){this.text=e,this.value=r||e,this.isSelected=!1,this.score=t}function gsurveyLikertUpdateColumnsObject(){var s=GetSelectedField();jQuery("ul#gsurvey-likert-columns li").each(function(e){var r=($this=jQuery(this)).children("input.gsurvey-likert-column-text").val(),t=$this.children("input.gsurvey-likert-column-value").val(),i=$this.children("input.gsurvey-likert-column-score").val(),n=$this.data("index"),r=new gsurveyLikertChoice(r,t,i=void 0===i?n+1:i);s.choices[n]=r}),gsurveyLikertUpdateInputs(s)}function GenerateLikertChoiceValue(e){return"glikertcol"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gsurveyLikertInsertColumn(e){var r=GetSelectedField(),t=(gsurveyLikertUpdateColumnsObject(),new Choice("",GenerateLikertChoiceValue(r)));r.choices.splice(e,0,t),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(r)),gsurveyLikertUpdatePreview(r)}function gsurveyLikertDeleteColumn(e){var r=GetSelectedField();gsurveyLikertUpdateColumnsObject(),r.choices.splice(e,1),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(r)),gsurveyLikertUpdatePreview(r)}function gsurveyLikertMoveColumn(e,r){var t=GetSelectedField(),i=(gsurveyLikertUpdateColumnsObject(),t.choices[e]);t.choices.splice(e,1),t.choices.splice(r,0,i),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(t)),gsurveyLikertUpdateColumnsObject(),gsurveyLikertUpdatePreview(t)}function gsurveyLikertGetColumns(e){for(var r=gsurveyVars.imagesUrl,t="",i=0;i',add:'',remove:''};isLegacy&&(n={handle:''+gsurveyLikertStrings.dragToReOrder+'',add:''+gsurveyLikertStrings.addAnotherColumn+'',remove:''+gsurveyLikertStrings.removeThisColumn+''}),t=(t=(t+=isLegacy?'
  • ':'
  • ')+n.handle)+(""),void 0===e.choices[i].score&&(e.choices[i].score=i+1),t=(t=(t+="")+(""))+n.add,1"}return t}function gsurveyLikertUpdateRowsObject(){var n=GetSelectedField();jQuery("#gsurvey-likert-rows li").each(function(e){var r=jQuery(this).children("input.gsurvey-likert-row-text").val(),t=jQuery(this).children("input.gsurvey-likert-row-id").val(),i=jQuery(this).data("index"),r=new gsurveyLikertRow(r,t);n.gsurveyLikertRows[i]=r}),gsurveyLikertUpdateInputs(n)}function gsurveyLikertGenerateRowVal(){return"glikertrowxxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gsurveyLikertRow(e,r){this.text=e,this.value=null==r?gsurveyLikertGenerateRowVal():r}function gsurveyLikertInsertRow(e){var r=GetSelectedField(),t=(gsurveyLikertUpdateRowsObject(),new gsurveyLikertRow(""));r.gsurveyLikertRows.splice(e,0,t),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(r)),gsurveyLikertUpdatePreview(r)}function gsurveyLikertDeleteRow(e){var r=GetSelectedField();gsurveyLikertUpdateRowsObject(),r.gsurveyLikertRows.splice(e,1),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(r)),r.inputs.splice(e,1),gsurveyLikertUpdatePreview(r)}function gsurveyLikertMoveRow(e,r){var t=GetSelectedField(),i=(gsurveyLikertUpdateRowsObject(),t.gsurveyLikertRows[e]);t.gsurveyLikertRows.splice(e,1),t.gsurveyLikertRows.splice(r,0,i),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(t)),gsurveyLikertUpdateRowsObject(),gsurveyLikertUpdatePreview(t)}function gsurveyLikertGetRows(e){for(var r=gsurveyVars.imagesUrl,t="",i=0;i',add:'',remove:''};isLegacy&&(n={handle:""+gsurveyLikertStrings.dragToReOrder+" ",add:""+gsurveyLikertStrings.addAnotherRow+"',remove:""+gsurveyLikertStrings.removeThisRow+"'}),t=(t=(t=(t=(t+=isLegacy?'
  • ':'
  • ')+n.handle)+(""))+(""))+n.add,1"}return t}function SetDefaultValues_rank(e){return e.inputType="rank",e.inputs=null,e.enableChoiceValue=!0,e.enablePrice=!1,e.choices||(e.choices=new Array(new Choice(gsurveyRankStrings.firstChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.secondChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.thirdChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.fourthChoice,GenerateRankChoiceValue(e),!1),new Choice(gsurveyRankStrings.fifthChoice,GenerateRankChoiceValue(e),!1))),e}function GenerateRankChoiceValue(e){return"grank"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gform_new_choice_rank(e,r){return"rank"==e.inputType&&(r.value=GenerateRankChoiceValue(e)),r}function gsurveyRankGetFieldPreviewMarkup(e){for(var r="",t=0;t"+e.choices[t].text+"
  • ");return 5"+gf_vars.editToViewAll.replace("%d",e.choices.length)+""),r}function SetDefaultValues_rating(e){return e.inputType="rating",e.inputs=null,e.enableChoiceValue=!0,e.enablePrice=!1,e.reversed=!0,e.choices||(e.choices=new Array(new Choice(gsurveyRatingStrings.firstChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.secondChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.thirdChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.fourthChoice,GenerateRatingChoiceValue(e),!1),new Choice(gsurveyRatingStrings.fifthChoice,GenerateRatingChoiceValue(e),!1))),e}function GenerateRatingChoiceValue(e){return"grating"+e.id+"xxxxxxxx".replace(/[xy]/g,function(e){var r=16*Math.random()|0;return("x"==e?r:3&r|8).toString(16)})}function gform_new_choice_rating(e,r){return"rating"==e.inputType&&(r.value=GenerateRatingChoiceValue(e)),r}function gsurveyRatingGetFieldPreviewMarkup(e){for(var r="",t=0;t"}return r}function filterLikertValues(e,r,t,i,n){var s,l=GetFieldById(i);return e=l.inputs&&(!0!==l.gsurveyLikertEnableMultipleRows||i.toString().match(/\.\d$/)||(s=l.inputs[0].id.toString().match(/\.\d+$/),i+=s[0]),0!==(s=l.inputs.filter(function(e){return e.id===i})).length)&&(l=s[0].name,e=e.replace(/glikertcol/g,l+":glikertcol"),(l=(s=(new DOMParser).parseFromString(e,"text/html")).querySelector('option[selected="selected"]'))&&-1!==l.value.indexOf(":glikertrow")&&(l.parentNode.removeChild(l),e=s.documentElement.outerHTML),-1!==(s=e.indexOf('value="'+n+'"')))?l=e.slice(0,s)+'selected="selected" '+e.slice(s):e}function filterRankValues(e,r,t,i,n){var i=GetFieldById(i),s=document.createElement("div"),l=(s.innerHTML=e,s.querySelector("select"));return l&&(l.innerHTML="",i.choices.forEach(function(e,r){var t=document.createElement("option"),r=r+1;t.value=r,t.text=r,l.appendChild(t)}),(i=l.querySelector('option[value="'+n+'"]'))&&i.setAttribute("selected","selected"),e=s.innerHTML),e}jQuery(document).bind("gform_load_field_settings",function(e,r,t){"survey"==r.type&&(jQuery("#gsurvey-field-type").val(r.inputType),jQuery("#gsurvey-question").val(r.label),has_entry(r.id)?jQuery("#gsurvey-field-type").attr("disabled",!0):jQuery("#gsurvey-field-type").removeAttr("disabled"))}),jQuery(document).bind("gform_load_field_settings",function(e,r,t){"likert"==r.inputType&&(void 0===r.gsurveyLikertEnableMultipleRows&&(r.gsurveyLikertEnableMultipleRows=!1),void 0===r.gsurveyLikertEnableScoring&&(r.gsurveyLikertEnableScoring=!1),jQuery("#gsurvey-likert-enable-multiple-rows").prop("checked",r.gsurveyLikertEnableMultipleRows),jQuery("#gsurvey-likert-enable-scoring").prop("checked",r.gsurveyLikertEnableScoring),jQuery("#gsurvey-field-type").val("likert"),r.gsurveyLikertEnableMultipleRows&&jQuery(".gsurvey-likert-setting-rows").show(),r.gsurveyLikertEnableScoring?jQuery("#gsurvey-likert-columns-container").addClass("gsurvey-likert-scoring-enabled"):jQuery("#gsurvey-likert-columns-container").removeClass("gsurvey-likert-scoring-enabled"),jQuery("#gsurvey-likert-columns-container ul#gsurvey-likert-columns").html(gsurveyLikertGetColumns(r)),jQuery("#gsurvey-likert-rows-container ul#gsurvey-likert-rows").html(gsurveyLikertGetRows(r)))}),jQuery(document).bind("gform_load_field_choices",function(e,r){"rank"==r.inputType&&jQuery(".field_selected .gsurvey-rank").html(gsurveyRankGetFieldPreviewMarkup(r))}),jQuery(document).bind("gform_load_field_choices",function(e,r){var t;"rating"==r.inputType&&(void 0===r.reversed&&((t=jQuery("#field_choices")).children().each(function(e,r){t.prepend(r)}),r.choices=r.choices.reverse(),r.reversed=!0),gsurveyVars.refreshPreview)&&(r=gsurveyRatingGetFieldPreviewMarkup(r),jQuery(".field_selected .gsurvey-rating").html(r))}),jQuery(document).ready(function(){jQuery("#gsurvey-likert-columns").sortable({axis:"y",handle:isLegacy?".gsurvey-liket-column-handle":".field-choice-handle--column",update:function(e,r){gsurveyLikertMoveColumn(r.item.data("index"),r.item.index())}}),jQuery("#gsurvey-likert-rows").sortable({axis:"y",handle:isLegacy?".gsurvey-liket-row-handle":".field-choice-handle--row",update:function(e,r){gsurveyLikertMoveRow(r.item.data("index"),r.item.index())}})}),gform.addFilter("gform_conditional_logic_values_input",function(e,r,t,i,n){var s=GetFieldById(i);return e=s&&("likert"===GetInputType(s)&&(e=filterLikertValues(e,r,t,i,n)),"rank"===GetInputType(s))?filterRankValues(e,r,t,i,n):e}),gform.addFilter("gform_conditional_logic_operators",function(e,r,t){0==t&&(t=GetFirstRuleField());t=GetFieldById(t);return e=t&&("rank"===GetInputType(t)&&(e={is:gsurveyRankConditionStrings.is,isnot:gsurveyRankConditionStrings.isNot,">":gsurveyRankConditionStrings.greaterThan,"<":gsurveyRankConditionStrings.lessThan}),"likert"===GetInputType(t))?{is:gsurveyLikertConditionStrings.is,isnot:gsurveyLikertConditionStrings.isNot}:e}),gform.addFilter("gform_conditional_logic_fields",function(e,r,t){let s=e.slice();return r.fields.forEach(function(n){if("rank"==GetInputType(n)){let t=n.choices;var e=s.find(e=>e.value===n.id);let i=s.indexOf(e);s.splice(i,1),t.forEach(function(e,r){r=i+r;s.splice(r,0,{label:n.label+" ("+e.text+")",value:n.id+"."+t.indexOf(e)})})}}),e=s.slice()}); \ No newline at end of file diff --git a/wp-content/plugins/gravityformssurvey/languages/gravityformssurvey.pot b/wp-content/plugins/gravityformssurvey/languages/gravityformssurvey.pot index 7bbf231bf0..f9658e5828 100644 --- a/wp-content/plugins/gravityformssurvey/languages/gravityformssurvey.pot +++ b/wp-content/plugins/gravityformssurvey/languages/gravityformssurvey.pot @@ -2,16 +2,16 @@ # This file is distributed under the GPL-2.0+. msgid "" msgstr "" -"Project-Id-Version: Gravity Forms Survey Add-On 4.0.0\n" +"Project-Id-Version: Gravity Forms Survey Add-On 4.1.1\n" "Report-Msgid-Bugs-To: https://gravityforms.com/support\n" "Last-Translator: Gravity Forms \n" "Language-Team: Gravity Forms \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-01-11T17:05:48+00:00\n" +"POT-Creation-Date: 2024-11-12T10:02:14+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.8.1\n" +"X-Generator: WP-CLI 2.11.0\n" "X-Domain: gravityformssurvey\n" #. Plugin Name of the plugin @@ -173,116 +173,116 @@ msgstr "" msgid "Survey Total Score" msgstr "" -#: class-gf-survey.php:1105 -#: class-gf-survey.php:1126 +#: class-gf-survey.php:1109 +#: class-gf-survey.php:1130 msgid "Survey Question" msgstr "" -#: class-gf-survey.php:1105 +#: class-gf-survey.php:1109 msgid "Enter the question you would like to ask the user." msgstr "" -#: class-gf-survey.php:1106 -#: class-gf-survey.php:1138 +#: class-gf-survey.php:1110 +#: class-gf-survey.php:1142 msgid "Survey Field Type" msgstr "" -#: class-gf-survey.php:1106 +#: class-gf-survey.php:1110 msgid "Select the type of field that will be used for the survey." msgstr "" -#: class-gf-survey.php:1107 +#: class-gf-survey.php:1111 msgid "Likert Columns" msgstr "" -#: class-gf-survey.php:1107 +#: class-gf-survey.php:1111 msgid "Edit the choices for this likert field." msgstr "" -#: class-gf-survey.php:1108 -#: class-gf-survey.php:1188 +#: class-gf-survey.php:1112 +#: class-gf-survey.php:1192 msgid "Enable Multiple Rows" msgstr "" -#: class-gf-survey.php:1108 +#: class-gf-survey.php:1112 msgid "Select to add multiple rows to the likert field." msgstr "" -#: class-gf-survey.php:1109 +#: class-gf-survey.php:1113 msgid "Likert Rows" msgstr "" -#: class-gf-survey.php:1109 +#: class-gf-survey.php:1113 msgid "Edit the texts that will appear to the left of each row of choices." msgstr "" -#: class-gf-survey.php:1110 -#: class-gf-survey.php:1172 +#: class-gf-survey.php:1114 +#: class-gf-survey.php:1176 msgid "Enable Scoring" msgstr "" -#: class-gf-survey.php:1110 +#: class-gf-survey.php:1114 msgid "Scoring allows different scores for each column. Aggregate scores are displayed in the results page and can be used in merge tags." msgstr "" -#: class-gf-survey.php:1145 +#: class-gf-survey.php:1149 msgid "Likert" msgstr "" -#: class-gf-survey.php:1146 +#: class-gf-survey.php:1150 msgid "Rank" msgstr "" -#: class-gf-survey.php:1147 +#: class-gf-survey.php:1151 msgid "Rating" msgstr "" -#: class-gf-survey.php:1148 +#: class-gf-survey.php:1152 msgid "Radio Buttons" msgstr "" -#: class-gf-survey.php:1149 +#: class-gf-survey.php:1153 msgid "Checkboxes" msgstr "" -#: class-gf-survey.php:1150 +#: class-gf-survey.php:1154 msgid "Single Line Text" msgstr "" -#: class-gf-survey.php:1151 +#: class-gf-survey.php:1155 msgid "Paragraph Text" msgstr "" -#: class-gf-survey.php:1152 +#: class-gf-survey.php:1156 msgid "Drop Down" msgstr "" -#: class-gf-survey.php:1161 +#: class-gf-survey.php:1165 msgid "Columns" msgstr "" -#: class-gf-survey.php:1195 +#: class-gf-survey.php:1199 msgid "Rows" msgstr "" -#: class-gf-survey.php:1211 -#: class-gf-survey.php:1245 +#: class-gf-survey.php:1215 +#: class-gf-survey.php:1249 msgid "Survey Entries" msgstr "" -#: class-gf-survey.php:1242 +#: class-gf-survey.php:1246 msgid "This contact has not submitted any survey entries yet." msgstr "" -#: class-gf-survey.php:1250 +#: class-gf-survey.php:1254 msgid "Entry ID" msgstr "" -#: class-gf-survey.php:1253 +#: class-gf-survey.php:1257 msgid "Date" msgstr "" -#: class-gf-survey.php:1256 +#: class-gf-survey.php:1260 msgid "Form" msgstr "" diff --git a/wp-content/plugins/gravityformssurvey/survey.php b/wp-content/plugins/gravityformssurvey/survey.php index 50e6f398f1..b7b640ae9c 100644 --- a/wp-content/plugins/gravityformssurvey/survey.php +++ b/wp-content/plugins/gravityformssurvey/survey.php @@ -3,7 +3,7 @@ Plugin Name: Gravity Forms Survey Add-On Plugin URI: https://gravityforms.com Description: Allows you to quickly and easily deploy Surveys on your web site using the power of Gravity Forms. -Version: 4.0.0 +Version: 4.1.1 Author: Gravity Forms Author URI: https://gravityforms.com License: GPL-2.0+ @@ -33,7 +33,7 @@ die(); } -define( 'GF_SURVEY_VERSION', '4.0.0' ); +define( 'GF_SURVEY_VERSION', '4.1.1' ); add_action( 'gform_loaded', array( 'GF_Survey_Bootstrap', 'load' ), 5 );