From 28407f64ac918eaab911cedc3d1a432c67fcfe68 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Wed, 23 Aug 2023 14:27:06 +0200 Subject: [PATCH] build widget --- .../browser/static/widget/dist/prod/main.css | 6 ++++-- .../browser/static/widget/dist/prod/main.css.map | 2 +- .../browser/static/widget/dist/prod/main.js | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css b/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css index bddffa0a..cdcd35d2 100644 --- a/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css +++ b/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css @@ -1,5 +1,7 @@ -.period-selector-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.period-selector-wrapper .block{-webkit-box-flex:1;-ms-flex:1 0 calc(25% - 1rem);flex-grow:1;flex-shrink:0;flex-basis:calc(25% - 1rem)} - +.period-selector-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;gap:2rem;padding-bottom:1rem}.period-selector-wrapper .period{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:1rem}.period-selector-wrapper .period .label{-webkit-box-flex:0;-ms-flex:0 0 0px;flex:0 0}.period-selector-wrapper .block{-webkit-box-flex:1;-ms-flex:1 0 calc(25% - 1rem);flex-grow:1;flex-shrink:0;flex-basis:calc(25% - 1rem)} +.days-table-wrapper table td,.days-table-wrapper table th{padding:.5rem;vertical-align:middle}.days-table-wrapper table th{background-color:#ececec} +.gates-rows{margin:3rem 0}.gates-rows .row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:1rem 0 0}.gates-rows .row input[type=text]{height:auto}.gates-rows .row+.row{margin-top:1rem}.gates-rows .row .column{margin-right:1rem}.gates-rows button.context{margin-top:1rem;font-size:1.25rem} +.pause-table-wrapper{margin-top:1rem}.pause-table-wrapper table td,.pause-table-wrapper table th{padding:.5rem;vertical-align:middle}.pause-table-wrapper table th{background-color:#ececec}.pause-table-wrapper table td.actions{width:50px}.pause-table-wrapper button.context{margin-top:1rem} #formfield-form-widgets-week_table_overrides .data-wrapper .json-row,.week-table-overrides-widget .data-wrapper .json-row{margin:10px;background-color:#fff;border:1px solid #ccc}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row button,.week-table-overrides-widget .data-wrapper .json-row button{font-size:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row button+strong,.week-table-overrides-widget .data-wrapper .json-row button+strong{margin-left:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header,.week-table-overrides-widget .data-wrapper .json-row .row-header{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f3f3f3}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header strong,.week-table-overrides-widget .data-wrapper .json-row .row-header strong{margin-right:auto}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header .actions button,.week-table-overrides-widget .data-wrapper .json-row .row-header .actions button{margin-left:.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-content,.week-table-overrides-widget .data-wrapper .json-row .row-content{padding:0 1rem 1rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-content .column.block,.week-table-overrides-widget .data-wrapper .json-row .row-content .column.block{padding-top:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .data-footer,.week-table-overrides-widget .data-wrapper .data-footer{padding:10px}#formfield-form-widgets-week_table_overrides .data-wrapper .data-footer button.context,.week-table-overrides-widget .data-wrapper .data-footer button.context{font-size:1.5rem} /*# sourceMappingURL=main.css.map*/ \ No newline at end of file diff --git a/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css.map b/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css.map index bf138cb0..91713524 100644 --- a/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css.map +++ b/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.css.map @@ -1 +1 @@ -{"version":3,"file":"main.css","sources":["webpack:///./src/redturtle/prenotazioni/browser/static/widget/js/fields/IntervalSelectorField.less","webpack:///./src/redturtle/prenotazioni/browser/static/widget/js/WidgetDataContainer/index.less"],"sourcesContent":[".period-selector-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.period-selector-wrapper .block{-webkit-box-flex:1;-ms-flex:1 0 calc(25% - 1rem);flex-grow:1;flex-shrink:0;flex-basis:calc(25% - 1rem)}","#formfield-form-widgets-week_table_overrides .data-wrapper .json-row,.week-table-overrides-widget .data-wrapper .json-row{margin:10px;background-color:#fff;border:1px solid #ccc}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row button,.week-table-overrides-widget .data-wrapper .json-row button{font-size:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row button+strong,.week-table-overrides-widget .data-wrapper .json-row button+strong{margin-left:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header,.week-table-overrides-widget .data-wrapper .json-row .row-header{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f3f3f3}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header strong,.week-table-overrides-widget .data-wrapper .json-row .row-header strong{margin-right:auto}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header .actions button,.week-table-overrides-widget .data-wrapper .json-row .row-header .actions button{margin-left:.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-content,.week-table-overrides-widget .data-wrapper .json-row .row-content{padding:0 1rem 1rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-content .column.block,.week-table-overrides-widget .data-wrapper .json-row .row-content .column.block{padding-top:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .data-footer,.week-table-overrides-widget .data-wrapper .data-footer{padding:10px}#formfield-form-widgets-week_table_overrides .data-wrapper .data-footer button.context,.week-table-overrides-widget .data-wrapper .data-footer button.context{font-size:1.5rem}"],"mappings":"AAAA;;ACAA;","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"main.css","sources":["webpack:///./src/redturtle/prenotazioni/browser/static/widget/js/fields/IntervalSelectorField.less","webpack:///./src/redturtle/prenotazioni/browser/static/widget/js/fields/DaysTableField.less","webpack:///./src/redturtle/prenotazioni/browser/static/widget/js/fields/GatesField.less","webpack:///./src/redturtle/prenotazioni/browser/static/widget/js/fields/PauseTableField.less","webpack:///./src/redturtle/prenotazioni/browser/static/widget/js/WidgetDataContainer/index.less"],"sourcesContent":[".period-selector-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;gap:2rem;padding-bottom:1rem}.period-selector-wrapper .period{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:1rem}.period-selector-wrapper .period .label{-webkit-box-flex:0;-ms-flex:0 0 0px;flex:0 0}.period-selector-wrapper .block{-webkit-box-flex:1;-ms-flex:1 0 calc(25% - 1rem);flex-grow:1;flex-shrink:0;flex-basis:calc(25% - 1rem)}",".days-table-wrapper table td,.days-table-wrapper table th{padding:.5rem;vertical-align:middle}.days-table-wrapper table th{background-color:#ececec}",".gates-rows{margin:3rem 0}.gates-rows .row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:1rem 0 0}.gates-rows .row input[type=text]{height:auto}.gates-rows .row+.row{margin-top:1rem}.gates-rows .row .column{margin-right:1rem}.gates-rows button.context{margin-top:1rem;font-size:1.25rem}",".pause-table-wrapper{margin-top:1rem}.pause-table-wrapper table td,.pause-table-wrapper table th{padding:.5rem;vertical-align:middle}.pause-table-wrapper table th{background-color:#ececec}.pause-table-wrapper table td.actions{width:50px}.pause-table-wrapper button.context{margin-top:1rem}","#formfield-form-widgets-week_table_overrides .data-wrapper .json-row,.week-table-overrides-widget .data-wrapper .json-row{margin:10px;background-color:#fff;border:1px solid #ccc}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row button,.week-table-overrides-widget .data-wrapper .json-row button{font-size:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row button+strong,.week-table-overrides-widget .data-wrapper .json-row button+strong{margin-left:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header,.week-table-overrides-widget .data-wrapper .json-row .row-header{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f3f3f3}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header strong,.week-table-overrides-widget .data-wrapper .json-row .row-header strong{margin-right:auto}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-header .actions button,.week-table-overrides-widget .data-wrapper .json-row .row-header .actions button{margin-left:.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-content,.week-table-overrides-widget .data-wrapper .json-row .row-content{padding:0 1rem 1rem}#formfield-form-widgets-week_table_overrides .data-wrapper .json-row .row-content .column.block,.week-table-overrides-widget .data-wrapper .json-row .row-content .column.block{padding-top:1.5rem}#formfield-form-widgets-week_table_overrides .data-wrapper .data-footer,.week-table-overrides-widget .data-wrapper .data-footer{padding:10px}#formfield-form-widgets-week_table_overrides .data-wrapper .data-footer button.context,.week-table-overrides-widget .data-wrapper .data-footer button.context{font-size:1.5rem}"],"mappings":"AAAA;ACAA;ACAA;ACAA;ACAA;","sourceRoot":""} \ No newline at end of file diff --git a/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.js b/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.js index 2fdb318f..93e17681 100644 --- a/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.js +++ b/src/redturtle/prenotazioni/browser/static/widget/dist/prod/main.js @@ -1,9 +1,9 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=69)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){e.exports=n(44)()},function(e,t,n){"use strict";var r=n(12),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function i(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(i)})),e.exports=s}).call(this,n(55))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}}]),t}(o.Component);m.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},m.defaultProps={minWidth:1,injectStyles:!0},t.default=m},function(e,t,n){"use strict"; +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=71)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){e.exports=n(44)()},function(e,t,n){"use strict";var r=n(12),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function i(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(i)})),e.exports=s}).call(this,n(57))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}}]),t}(o.Component);m.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},m.defaultProps={minWidth:1,injectStyles:!0},t.default=m},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=i(e),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const r=t<0?e.length+t:t;if(r>=0&&r(e=[...e],r(e,t,n),e),e.exports.mutate=r},function(e,t,n){"use strict"; +*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=i(e),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const r=t<0?e.length+t:t;if(r>=0&&r(e=[...e],r(e,t,n),e),e.exports.mutate=r},function(e,t,n){"use strict"; /** @license React v16.14.0 * react.production.min.js * @@ -11,7 +11,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(8),a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,s=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.forward_ref"):60112,d=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nj.length&&j.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case i:u=!0}}if(u)return r(a,t,""===n?"."+R(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;sj.length&&j.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case i:u=!0}}if(u)return r(a,t,""===n?"."+R(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s