diff --git a/README.txt b/README.txt index 758dacea..6785060e 100755 --- a/README.txt +++ b/README.txt @@ -166,6 +166,7 @@ Yes, you should be registered in Zoom. Also, depending on the zoom account plan * Fixed: Search in host to WP page. * Fixed: FSE theme join via browser page not working. * Updated: WebSDK to version 2.12.2 +* Fixed: Responsive fixed for shortcode table views. * Bug fixes = 4.1.11 May 3rd, 2023 = diff --git a/assets/public/js/shortcode.js b/assets/public/js/shortcode.js index 9ac17410..7529d03a 100644 --- a/assets/public/js/shortcode.js +++ b/assets/public/js/shortcode.js @@ -149,6 +149,7 @@ var __webpack_exports__ = {}; $(document).on('click', '.vczapi-view-recording', this.openModal.bind(this)); $(document).on('click', '.vczapi-modal-close', this.closeModal.bind(this)); if ($('.vczapi-recordings-list-table').length > 0) { + console.log('here'); $('.vczapi-recordings-list-table').DataTable({ responsive: true, language: vczapi_dt_i18n, diff --git a/assets/public/js/shortcode.min.js b/assets/public/js/shortcode.min.js index aa9a873b..67b3b810 100644 --- a/assets/public/js/shortcode.min.js +++ b/assets/public/js/shortcode.min.js @@ -1 +1 @@ -!function(){var e,i,a,t;e=jQuery,i={init:function(){this.cacheDOM(),this.defaultActions()},cacheDOM:function(){if(this.$wrapper=e(".vczapi-user-meeting-list"),void 0===this.$wrapper||this.$wrapper.length<1)return!1},defaultActions:function(){this.$wrapper.DataTable({responsive:!0,language:vczapi_dt_i18n})}},a={paginationHandler:function(){e(document).on("click",".vczapi-list-zoom-meetings--pagination .page-numbers",(function(i){i.preventDefault();var a=e(i.target),t=a.parents(".vczapi-list-zoom-meetings"),n=parseInt(a.text()),r=t.data(),c=1;a.hasClass("next")?(c=t.find(".vczapi-list-zoom-meetings--pagination").find(".page-numbers.current"),n=parseInt(c.next().text())):a.hasClass("prev")&&(c=t.find(".vczapi-list-zoom-meetings--pagination").find(".page-numbers.current"),n=parseInt(c.prev().text())),r.page_num=n;var o=t.find("form.vczapi-filters").serializeArray().reduce((function(e,i){return e[i.name]=i.value,e}),{});e.ajax({type:"POST",url:vczapi_ajax.ajaxurl,data:{action:"vczapi_list_meeting_shortcode_ajax_handler",data:r,form_data:o},beforeSend:function(){t.addClass("loading")},success:function(e){t.removeClass("loading"),t.find(".vczapi-items-wrap").html(e.content),t.find(".vczapi-list-zoom-meetings--pagination").html(e.pagination)},error:function(e,i,a){}})}))},filterFormSubmitHandler:function(){e("form.vczapi-filters").on("submit",(function(i){i.preventDefault();var a=e(this).parents(".vczapi-list-zoom-meetings"),t=e(this).serializeArray().reduce((function(e,i){return e[i.name]=i.value,e}),{}),n=a.data();n.page_num=1,e.ajax({type:"POST",url:vczapi_ajax.ajaxurl,data:{action:"vczapi_list_meeting_shortcode_ajax_handler",data:n,form_data:t},beforeSend:function(){a.addClass("loading")},success:function(e){a.removeClass("loading"),a.find(".vczapi-items-wrap").html(e.content),a.find(".vczapi-list-zoom-meetings--pagination").html(e.pagination)},error:function(e,i,a){}})}))},filterOnChangeHandler:function(){e("form.vczapi-filters").find("select").on("change",(function(i){i.preventDefault(),e(this).parents("form.vczapi-filters").submit()}))},eventListeners:function(){this.paginationHandler(),this.filterOnChangeHandler(),this.filterFormSubmitHandler()},init:function(){this.eventListeners()}},t={init:function(){this.cacheDOM(),this.evntHandlers()},cacheDOM:function(){this.$recordingsDatePicker=e(".vczapi-check-recording-date")},evntHandlers:function(){e(document).on("click",".vczapi-view-recording",this.openModal.bind(this)),e(document).on("click",".vczapi-modal-close",this.closeModal.bind(this)),e(".vczapi-recordings-list-table").length>0&&e(".vczapi-recordings-list-table").DataTable({responsive:!0,language:vczapi_dt_i18n,order:[3,"desc"],columnDefs:[{orderable:!1,targets:[2,5]}]}),e(this.$recordingsDatePicker).length>0&&this.$recordingsDatePicker.datepicker({changeMonth:!0,changeYear:!0,showButtonPanel:!0,dateFormat:"MM yy",beforeShow:function(i,a){setTimeout((function(){a.dpDiv.css({top:e(".vczapi-check-recording-date").offset().top+35,left:e(".vczapi-check-recording-date").offset().left})}),0)}}).focus((function(){var i=e(this);e(".ui-datepicker-calendar").detach(),e(".ui-datepicker-close").click((function(){var a=e("#ui-datepicker-div .ui-datepicker-month :selected").val(),t=e("#ui-datepicker-div .ui-datepicker-year :selected").val();i.datepicker("setDate",new Date(t,a,1))}))}))},closeModal:function(i){i.preventDefault(),e(".vczapi-modal-content").remove(),e(".vczapi-modal").hide()},openModal:function(i){i.preventDefault();var a={recording_id:e(i.currentTarget).data("recording-id"),action:"get_recording",downlable:vczapi_recordings_data.downloadable};e(".vczapi-modal").html('
'+vczapi_recordings_data.loading+"
").show(),e.get(vczapi_ajax.ajaxurl,a).done((function(i){e(".vczapi-modal").html(i.data).show()}))}},e((function(){a.init(),i.init(),t.init()}))}(); \ No newline at end of file +!function(){var e,i,a,t;e=jQuery,i={init:function(){this.cacheDOM(),this.defaultActions()},cacheDOM:function(){if(this.$wrapper=e(".vczapi-user-meeting-list"),void 0===this.$wrapper||this.$wrapper.length<1)return!1},defaultActions:function(){this.$wrapper.DataTable({responsive:!0,language:vczapi_dt_i18n})}},a={paginationHandler:function(){e(document).on("click",".vczapi-list-zoom-meetings--pagination .page-numbers",(function(i){i.preventDefault();var a=e(i.target),t=a.parents(".vczapi-list-zoom-meetings"),n=parseInt(a.text()),r=t.data(),c=1;a.hasClass("next")?(c=t.find(".vczapi-list-zoom-meetings--pagination").find(".page-numbers.current"),n=parseInt(c.next().text())):a.hasClass("prev")&&(c=t.find(".vczapi-list-zoom-meetings--pagination").find(".page-numbers.current"),n=parseInt(c.prev().text())),r.page_num=n;var o=t.find("form.vczapi-filters").serializeArray().reduce((function(e,i){return e[i.name]=i.value,e}),{});e.ajax({type:"POST",url:vczapi_ajax.ajaxurl,data:{action:"vczapi_list_meeting_shortcode_ajax_handler",data:r,form_data:o},beforeSend:function(){t.addClass("loading")},success:function(e){t.removeClass("loading"),t.find(".vczapi-items-wrap").html(e.content),t.find(".vczapi-list-zoom-meetings--pagination").html(e.pagination)},error:function(e,i,a){}})}))},filterFormSubmitHandler:function(){e("form.vczapi-filters").on("submit",(function(i){i.preventDefault();var a=e(this).parents(".vczapi-list-zoom-meetings"),t=e(this).serializeArray().reduce((function(e,i){return e[i.name]=i.value,e}),{}),n=a.data();n.page_num=1,e.ajax({type:"POST",url:vczapi_ajax.ajaxurl,data:{action:"vczapi_list_meeting_shortcode_ajax_handler",data:n,form_data:t},beforeSend:function(){a.addClass("loading")},success:function(e){a.removeClass("loading"),a.find(".vczapi-items-wrap").html(e.content),a.find(".vczapi-list-zoom-meetings--pagination").html(e.pagination)},error:function(e,i,a){}})}))},filterOnChangeHandler:function(){e("form.vczapi-filters").find("select").on("change",(function(i){i.preventDefault(),e(this).parents("form.vczapi-filters").submit()}))},eventListeners:function(){this.paginationHandler(),this.filterOnChangeHandler(),this.filterFormSubmitHandler()},init:function(){this.eventListeners()}},t={init:function(){this.cacheDOM(),this.evntHandlers()},cacheDOM:function(){this.$recordingsDatePicker=e(".vczapi-check-recording-date")},evntHandlers:function(){e(document).on("click",".vczapi-view-recording",this.openModal.bind(this)),e(document).on("click",".vczapi-modal-close",this.closeModal.bind(this)),e(".vczapi-recordings-list-table").length>0&&(console.log("here"),e(".vczapi-recordings-list-table").DataTable({responsive:!0,language:vczapi_dt_i18n,order:[3,"desc"],columnDefs:[{orderable:!1,targets:[2,5]}]})),e(this.$recordingsDatePicker).length>0&&this.$recordingsDatePicker.datepicker({changeMonth:!0,changeYear:!0,showButtonPanel:!0,dateFormat:"MM yy",beforeShow:function(i,a){setTimeout((function(){a.dpDiv.css({top:e(".vczapi-check-recording-date").offset().top+35,left:e(".vczapi-check-recording-date").offset().left})}),0)}}).focus((function(){var i=e(this);e(".ui-datepicker-calendar").detach(),e(".ui-datepicker-close").click((function(){var a=e("#ui-datepicker-div .ui-datepicker-month :selected").val(),t=e("#ui-datepicker-div .ui-datepicker-year :selected").val();i.datepicker("setDate",new Date(t,a,1))}))}))},closeModal:function(i){i.preventDefault(),e(".vczapi-modal-content").remove(),e(".vczapi-modal").hide()},openModal:function(i){i.preventDefault();var a={recording_id:e(i.currentTarget).data("recording-id"),action:"get_recording",downlable:vczapi_recordings_data.downloadable};e(".vczapi-modal").html(''+vczapi_recordings_data.loading+"
").show(),e.get(vczapi_ajax.ajaxurl,a).done((function(i){e(".vczapi-modal").html(i.data).show()}))}},e((function(){a.init(),i.init(),t.init()}))}(); \ No newline at end of file diff --git a/build/index.asset.php b/build/index.asset.php index 19321253..53487873 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render', 'wp-url'), 'version' => '386a5d6c4d7b5c670ecf'); + array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render', 'wp-url'), 'version' => 'ae3cfe0dde73cf597d23'); diff --git a/build/index.css b/build/index.css index a5fa804e..0f7017df 100644 --- a/build/index.css +++ b/build/index.css @@ -1,3 +1 @@ -.vczapi-blocks-form{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%}.vczapi-blocks-form--group{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:1.5em}.vczapi-blocks-form .radio-inline,.vczapi-blocks-form .toggle-inline{width:100%}.vczapi-blocks-form .radio-inline .components-base-control__field,.vczapi-blocks-form .toggle-inline .components-base-control__field{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;width:100%}.vczapi-blocks-form .radio-inline .components-base-control__field .components-base-control__label,.vczapi-blocks-form .toggle-inline .components-base-control__field .components-base-control__label{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.vczapi-blocks-form .radio-inline .components-base-control__field label,.vczapi-blocks-form .toggle-inline .components-base-control__field label{margin-right:10px}.vczapi-blocks-form .toggle-inline{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.vczapi-blocks-form .toggle-inline--full{width:100%}.vczapi-blocks-form .toggle-inline--full .components-base-control__field{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vczapi-blocks-form .toggle-inline--full .components-base-control__field label{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.vczapi-blocks-form .range-control{width:100%}.vczapi-blocks-form .text-input{width:100%}.vczapi-blocks-form .text-input .components-base-control__field,.vczapi-blocks-form .text-input .components-base-control__label,.vczapi-blocks-form .text-input .components-base-control__input{width:100%}.vczapi-blocks-form--input-label{width:100%}.vczapi-blocks-form--select{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;margin:0 8px 0 0}.vczapi-blocks-form--selected-meeting{width:100%;margin-bottom:2em;border-bottom:1px solid}.vczapi-blocks-form .vczapi-blocks-pagination{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:20px}.vczapi-blocks-form .vczapi-blocks-pagination button.selected{background:var(--wp-admin-theme-color);color:#fff}.vczapi-singleMeetingSkeleton h5{text-align:center}.vczapi-singleMeetingSkeleton img{max-width:100%} - -/*# sourceMappingURL=index.css.map*/ \ No newline at end of file +.vczapi-blocks-form,.vczapi-blocks-form--group{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}.vczapi-blocks-form--group{margin-bottom:1.5em}.vczapi-blocks-form .radio-inline,.vczapi-blocks-form .toggle-inline{width:100%}.vczapi-blocks-form .radio-inline .components-base-control__field,.vczapi-blocks-form .toggle-inline .components-base-control__field{-ms-flex-line-pack:center;-webkit-align-content:center;align-content:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%}.vczapi-blocks-form .radio-inline .components-base-control__field .components-base-control__label,.vczapi-blocks-form .toggle-inline .components-base-control__field .components-base-control__label{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.vczapi-blocks-form .radio-inline .components-base-control__field label,.vczapi-blocks-form .toggle-inline .components-base-control__field label{margin-right:10px}.vczapi-blocks-form .toggle-inline{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.vczapi-blocks-form .toggle-inline--full{width:100%}.vczapi-blocks-form .toggle-inline--full .components-base-control__field{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;width:100%}.vczapi-blocks-form .toggle-inline--full .components-base-control__field label{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.vczapi-blocks-form .range-control,.vczapi-blocks-form .text-input,.vczapi-blocks-form .text-input .components-base-control__field,.vczapi-blocks-form .text-input .components-base-control__input,.vczapi-blocks-form .text-input .components-base-control__label,.vczapi-blocks-form--input-label{width:100%}.vczapi-blocks-form--select{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;margin:0 8px 0 0}.vczapi-blocks-form--selected-meeting{border-bottom:1px solid;margin-bottom:2em;width:100%}.vczapi-blocks-form .vczapi-blocks-pagination{-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;margin-top:20px;width:100%}.vczapi-blocks-form .vczapi-blocks-pagination button.selected{background:var(--wp-admin-theme-color);color:#fff}.vczapi-singleMeetingSkeleton h5{text-align:center}.vczapi-singleMeetingSkeleton img{max-width:100%} diff --git a/build/index.css.map b/build/index.css.map deleted file mode 100644 index 974c0d15..00000000 --- a/build/index.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.css","mappings":"AAAA,oBACE,0EACA,yDACA,6FACA,WAEA,2BACE,WACA,0EACA,yDACA,6FACA,oBAGF,qEACE,WAEA,qIACE,0EACA,4EACA,WAEA,qMACE,yEAGF,iJACE,kBAKN,mCACE,0EAEA,yCACE,WAEA,yEACE,0EACA,WACA,yJAEA,+EACE,yEAOR,mCACE,WAGF,gCACE,WAEA,gMAGE,WAIJ,iCACE,WAGF,4BACE,yEACA,iBAGF,sCACE,WACA,kBACA,wBAGF,8CACE,WACA,0EAEA,mGACA,gBAGE,8DACE,uCACA,WAON,iCACE,kBAGF,kCACE,e","sources":["webpack://video-conferencing-with-zoom-api/./src/block/editor.scss"],"sourcesContent":[".vczapi-blocks-form {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n //intende to create gaps between for fields - keep separate from other class modifiers\n &--group {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n margin-bottom: 1.5em;\n }\n\n .radio-inline, .toggle-inline {\n width: 100%;\n\n .components-base-control__field {\n display: flex;\n align-content: center;\n width: 100%;\n\n .components-base-control__label {\n flex: 1 1 auto;\n }\n\n label {\n margin-right: 10px;\n }\n }\n }\n\n .toggle-inline {\n display: flex;\n\n &--full {\n width: 100%;\n\n .components-base-control__field {\n display: flex;\n width: 100%;\n flex-direction: row-reverse;\n\n label {\n flex: 1 1 auto;\n }\n }\n }\n }\n\n\n .range-control {\n width: 100%;\n }\n\n .text-input {\n width: 100%;\n\n .components-base-control__field,\n .components-base-control__label,\n .components-base-control__input {\n width: 100%;\n }\n }\n\n &--input-label {\n width: 100%;\n }\n\n &--select {\n flex: 1 1 auto;\n margin: 0 8px 0 0;\n }\n\n &--selected-meeting {\n width: 100%;\n margin-bottom: 2em;\n border-bottom: 1px solid;\n }\n\n .vczapi-blocks-pagination {\n width: 100%;\n display: flex;\n /* align-items: center; */\n justify-content: center;\n margin-top: 20px;\n\n button {\n &.selected {\n background: var(--wp-admin-theme-color);\n color: #fff;\n }\n }\n }\n}\n//for the skeleton\n.vczapi-singleMeetingSkeleton {\n h5 {\n text-align: center;\n }\n\n img {\n max-width: 100%;\n }\n}"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/build/index.js b/build/index.js index d2c1a7d0..fe8a2fda 100644 --- a/build/index.js +++ b/build/index.js @@ -1,2 +1 @@ -!function(){"use strict";var e,t={4697:function(e,t,n){var o=n(1526),r=n(6411),i=n(6686),a=n(7563),u=n(211),s=n(8160),c=n(2190),l=function(e,t,n){for(var o=0,i=0;o=i,i=(0,r.fj)(),38===o&&12===i&&(t[n]=1),!(0,r.r)(i);)(0,r.lp)();return(0,r.tP)(e,r.FK)},f=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||f.get(n))&&!o){f.set(e,!0);for(var a=[],u=function(e,t){return(0,r.cE)(function(e,t){var n=-1,o=44;do{switch((0,r.r)(o)){case 0:38===o&&12===(0,r.fj)()&&(t[n]=1),e[n]+=l(r.FK-1,t,n);break;case 2:e[n]+=(0,r.iF)(o);break;case 4:if(44===o){e[++n]=58===(0,r.fj)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,i.Dp)(o)}}while(o=(0,r.lp)());return e}((0,r.un)(e),t))}(t,a),s=n.props,c=0,p=0;c{__('Embed Join via a browser',\n 'video-conferencing-with-zoom-api')}
{__(\"Show recordings from Zoom\", \"video-conferencing-with-zoom-api\")}
{__(\"Get a meeting directly from Zoom\", \"video-conferencing-with-zoom-api\")}
diff --git a/templates/shortcode/list-webinars-host.php b/templates/shortcode/list-webinars-host.php index 723bfec5..09722f5b 100644 --- a/templates/shortcode/list-webinars-host.php +++ b/templates/shortcode/list-webinars-host.php @@ -10,7 +10,7 @@ */ ?> - |
---|
diff --git a/templates/shortcode/zoom-recordings-by-meeting.php b/templates/shortcode/zoom-recordings-by-meeting.php index 56a16c09..116501cd 100644 --- a/templates/shortcode/zoom-recordings-by-meeting.php +++ b/templates/shortcode/zoom-recordings-by-meeting.php @@ -47,7 +47,7 @@ - |
---|
diff --git a/templates/shortcode/zoom-recordings.php b/templates/shortcode/zoom-recordings.php index b6e41c95..e7ef4435 100644 --- a/templates/shortcode/zoom-recordings.php +++ b/templates/shortcode/zoom-recordings.php @@ -16,7 +16,7 @@ - |
---|